(function(){var f,aa=aa||{},m=this;function n(a){return void 0!==a}function q(a,b,c){a=a.split(".");c=c||m;a[0]in c||!c.execScript||c.execScript("var "+a[0]);for(var d;a.length&&(d=a.shift());)!a.length&&n(b)?c[d]=b:c[d]?c=c[d]:c=c[d]={}}function t(a,b){for(var c=a.split("."),d=b||m,e;e=c.shift();)if(null!=d[e])d=d[e];else return null;return d}function u(){}function da(a){a.getInstance=function(){return a.Eb?a.Eb:a.Eb=new a}}
function ea(a){var b=typeof a;if("object"==b)if(a){if(a instanceof Array)return"array";if(a instanceof Object)return b;var c=Object.prototype.toString.call(a);if("[object Window]"==c)return"object";if("[object Array]"==c||"number"==typeof a.length&&"undefined"!=typeof a.splice&&"undefined"!=typeof a.propertyIsEnumerable&&!a.propertyIsEnumerable("splice"))return"array";if("[object Function]"==c||"undefined"!=typeof a.call&&"undefined"!=typeof a.propertyIsEnumerable&&!a.propertyIsEnumerable("call"))return"function"}else return"null";
else if("function"==b&&"undefined"==typeof a.call)return"object";return b}function fa(a){return null===a}function ga(a){return"array"==ea(a)}function ha(a){var b=ea(a);return"array"==b||"object"==b&&"number"==typeof a.length}function w(a){return"string"==typeof a}function ia(a){return"number"==typeof a}function ka(a){return"function"==ea(a)}function la(a){var b=typeof a;return"object"==b&&null!=a||"function"==b}function ma(a){return a[na]||(a[na]=++oa)}
var na="closure_uid_"+(1E9*Math.random()>>>0),oa=0;function pa(a,b,c){return a.call.apply(a.bind,arguments)}function qa(a,b,c){if(!a)throw Error();if(2<arguments.length){var d=Array.prototype.slice.call(arguments,2);return function(){var c=Array.prototype.slice.call(arguments);Array.prototype.unshift.apply(c,d);return a.apply(b,c)}}return function(){return a.apply(b,arguments)}}
function y(a,b,c){y=Function.prototype.bind&&-1!=Function.prototype.bind.toString().indexOf("native code")?pa:qa;return y.apply(null,arguments)}function z(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)}}function ra(a,b){for(var c in b)a[c]=b[c]}var A=Date.now||function(){return+new Date};
function B(a,b){function c(){}c.prototype=b.prototype;a.H=b.prototype;a.prototype=new c;a.prototype.constructor=a;a.base=function(a,c,g){for(var h=Array(arguments.length-2),k=2;k<arguments.length;k++)h[k-2]=arguments[k];return b.prototype[c].apply(a,h)}}Function.prototype.bind=Function.prototype.bind||function(a,b){if(1<arguments.length){var c=Array.prototype.slice.call(arguments,1);c.unshift(this,a);return y.apply(null,c)}return y(this,a)};function sa(a){if(Error.captureStackTrace)Error.captureStackTrace(this,sa);else{var b=Error().stack;b&&(this.stack=b)}a&&(this.message=String(a))}B(sa,Error);sa.prototype.name="CustomError";var ua;function va(a,b){var c=a.length-b.length;return 0<=c&&a.indexOf(b,c)==c}function C(a){return/^[\s\xa0]*$/.test(a)}var wa=String.prototype.trim?function(a){return a.trim()}:function(a){return a.replace(/^[\s\xa0]+|[\s\xa0]+$/g,"")};function xa(a){return encodeURIComponent(String(a))}function ya(a){return decodeURIComponent(a.replace(/\+/g," "))}
function za(a){if(!Aa.test(a))return a;-1!=a.indexOf("&")&&(a=a.replace(Ba,"&amp;"));-1!=a.indexOf("<")&&(a=a.replace(Ca,"&lt;"));-1!=a.indexOf(">")&&(a=a.replace(Da,"&gt;"));-1!=a.indexOf('"')&&(a=a.replace(Ea,"&quot;"));-1!=a.indexOf("'")&&(a=a.replace(Fa,"&#39;"));-1!=a.indexOf("\x00")&&(a=a.replace(Ga,"&#0;"));return a}var Ba=/&/g,Ca=/</g,Da=/>/g,Ea=/"/g,Fa=/'/g,Ga=/\x00/g,Aa=/[\x00&<>"']/;function Ha(a){return Ia(a,"&")?"document"in m?Ja(a):Ka(a):a}
function Ja(a){var b={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"'},c;c=m.document.createElement("div");return a.replace(La,function(a,e){var g=b[a];if(g)return g;if("#"==e.charAt(0)){var h=Number("0"+e.substr(1));isNaN(h)||(g=String.fromCharCode(h))}g||(c.innerHTML=a+" ",g=c.firstChild.nodeValue.slice(0,-1));return b[a]=g})}
function Ka(a){return a.replace(/&([^;]+);/g,function(a,c){switch(c){case "amp":return"&";case "lt":return"<";case "gt":return">";case "quot":return'"';default:if("#"==c.charAt(0)){var d=Number("0"+c.substr(1));if(!isNaN(d))return String.fromCharCode(d)}return a}})}var La=/&([^;\s<&]+);?/g;function Ia(a,b){return-1!=a.indexOf(b)}function Ma(a,b){return Ia(a.toLowerCase(),b.toLowerCase())}function Na(a){return String(a).replace(/([-()\[\]{}+?*.$\^|,:#<!\\])/g,"\\$1").replace(/\x08/g,"\\x08")}
function Oa(a,b){return Array(b+1).join(a)}function Pa(a){a=n(void 0)?a.toFixed(void 0):String(a);var b=a.indexOf(".");-1==b&&(b=a.length);return Oa("0",Math.max(0,2-b))+a}function D(a){return null==a?"":String(a)}function Qa(a){return Array.prototype.join.call(arguments,"")}
function Ra(a,b){for(var c=0,d=wa(String(a)).split("."),e=wa(String(b)).split("."),g=Math.max(d.length,e.length),h=0;0==c&&h<g;h++){var k=d[h]||"",l=e[h]||"",p=RegExp("(\\d*)(\\D*)","g"),r=RegExp("(\\d*)(\\D*)","g");do{var v=p.exec(k)||["","",""],x=r.exec(l)||["","",""];if(0==v[0].length&&0==x[0].length)break;c=Sa(0==v[1].length?0:parseInt(v[1],10),0==x[1].length?0:parseInt(x[1],10))||Sa(0==v[2].length,0==x[2].length)||Sa(v[2],x[2])}while(0==c)}return c}function Sa(a,b){return a<b?-1:a>b?1:0}
function Ta(a){for(var b=0,c=0;c<a.length;++c)b=31*b+a.charCodeAt(c),b%=4294967296;return b}var Ua=2147483648*Math.random()|0;function Va(){return"goog_"+Ua++}function Wa(a){var b=Number(a);return 0==b&&C(a)?NaN:b}function Xa(a){return String(a).replace(/\-([a-z])/g,function(a,c){return c.toUpperCase()})}function Ya(a){var b=w(void 0)?Na(void 0):"\\s";return a.replace(new RegExp("(^"+(b?"|["+b+"]+":"")+")([a-z])","g"),function(a,b,e){return b+e.toUpperCase()})}
function Za(a){isFinite(a)&&(a=String(a));return w(a)?/^\s*-?0x/i.test(a)?parseInt(a,16):parseInt(a,10):NaN};function $a(){};function ab(a){return a[a.length-1]}
var bb=Array.prototype,cb=bb.indexOf?function(a,b,c){return bb.indexOf.call(a,b,c)}:function(a,b,c){c=null==c?0:0>c?Math.max(0,a.length+c):c;if(w(a))return w(b)&&1==b.length?a.indexOf(b,c):-1;for(;c<a.length;c++)if(c in a&&a[c]===b)return c;return-1},db=bb.lastIndexOf?function(a,b,c){return bb.lastIndexOf.call(a,b,null==c?a.length-1:c)}:function(a,b,c){c=null==c?a.length-1:c;0>c&&(c=Math.max(0,a.length+c));if(w(a))return w(b)&&1==b.length?a.lastIndexOf(b,c):-1;for(;0<=c;c--)if(c in a&&a[c]===b)return c;
return-1},E=bb.forEach?function(a,b,c){bb.forEach.call(a,b,c)}:function(a,b,c){for(var d=a.length,e=w(a)?a.split(""):a,g=0;g<d;g++)g in e&&b.call(c,e[g],g,a)},eb=bb.filter?function(a,b,c){return bb.filter.call(a,b,c)}:function(a,b,c){for(var d=a.length,e=[],g=0,h=w(a)?a.split(""):a,k=0;k<d;k++)if(k in h){var l=h[k];b.call(c,l,k,a)&&(e[g++]=l)}return e},F=bb.map?function(a,b,c){return bb.map.call(a,b,c)}:function(a,b,c){for(var d=a.length,e=Array(d),g=w(a)?a.split(""):a,h=0;h<d;h++)h in g&&(e[h]=b.call(c,
g[h],h,a));return e},fb=bb.reduce?function(a,b,c,d){d&&(b=y(b,d));return bb.reduce.call(a,b,c)}:function(a,b,c,d){var e=c;E(a,function(c,h){e=b.call(d,e,c,h,a)});return e},gb=bb.some?function(a,b,c){return bb.some.call(a,b,c)}:function(a,b,c){for(var d=a.length,e=w(a)?a.split(""):a,g=0;g<d;g++)if(g in e&&b.call(c,e[g],g,a))return!0;return!1},hb=bb.every?function(a,b,c){return bb.every.call(a,b,c)}:function(a,b,c){for(var d=a.length,e=w(a)?a.split(""):a,g=0;g<d;g++)if(g in e&&!b.call(c,e[g],g,a))return!1;
return!0};function G(a,b,c){b=ib(a,b,c);return 0>b?null:w(a)?a.charAt(b):a[b]}function ib(a,b,c){for(var d=a.length,e=w(a)?a.split(""):a,g=0;g<d;g++)if(g in e&&b.call(c,e[g],g,a))return g;return-1}function jb(a,b){var c=kb(a,b,void 0);return 0>c?null:w(a)?a.charAt(c):a[c]}function kb(a,b,c){for(var d=w(a)?a.split(""):a,e=a.length-1;0<=e;e--)if(e in d&&b.call(c,d[e],e,a))return e;return-1}function H(a,b){return 0<=cb(a,b)}function lb(a){return 0==a.length}
function mb(a){if(!ga(a))for(var b=a.length-1;0<=b;b--)delete a[b];a.length=0}function nb(a,b){H(a,b)||a.push(b)}function ob(a,b){var c=cb(a,b),d;(d=0<=c)&&pb(a,c);return d}function pb(a,b){bb.splice.call(a,b,1)}function qb(a,b){var c=ib(a,b,void 0);0<=c&&pb(a,c)}function rb(a){return bb.concat.apply(bb,arguments)}function sb(a){var b=a.length;if(0<b){for(var c=Array(b),d=0;d<b;d++)c[d]=a[d];return c}return[]}
function tb(a,b){for(var c=1;c<arguments.length;c++){var d=arguments[c];if(ha(d)){var e=a.length||0,g=d.length||0;a.length=e+g;for(var h=0;h<g;h++)a[e+h]=d[h]}else a.push(d)}}function ub(a,b,c,d){bb.splice.apply(a,vb(arguments,1))}function vb(a,b,c){return 2>=arguments.length?bb.slice.call(a,b):bb.slice.call(a,b,c)}
function wb(a,b,c){b=b||a;c=c||function(){return la(h)?"o"+ma(h):(typeof h).charAt(0)+h};for(var d={},e=0,g=0;g<a.length;){var h=a[g++],k=c(h);Object.prototype.hasOwnProperty.call(d,k)||(d[k]=!0,b[e++]=h)}b.length=e}function xb(a,b,c){c=c||yb;for(var d=0,e=a.length,g;d<e;){var h=d+e>>1,k;k=c(b,a[h]);0<k?d=h+1:(e=h,g=!k)}return g?d:~d}function zb(a,b){a.sort(b||yb)}function Ab(a,b,c){var d=c||yb;zb(a,function(a,c){return d(b(a),b(c))})}function Bb(a,b){Ab(a,function(a){return a[b]},void 0)}
function Cb(a,b,c){if(!ha(a)||!ha(b)||a.length!=b.length)return!1;var d=a.length;c=c||Db;for(var e=0;e<d;e++)if(!c(a[e],b[e]))return!1;return!0}function yb(a,b){return a>b?1:a<b?-1:0}function Db(a,b){return a===b}function Eb(a,b,c){c=xb(a,b,c);0>c&&ub(a,-(c+1),0,b)}function Fb(a){for(var b=[],c=0;c<a;c++)b[c]=0;return b}
function Gb(a){for(var b=[],c=0;c<arguments.length;c++){var d=arguments[c];if(ga(d))for(var e=0;e<d.length;e+=8192)for(var g=vb(d,e,e+8192),g=Gb.apply(null,g),h=0;h<g.length;h++)b.push(g[h]);else b.push(d)}return b};function Hb(a,b,c){for(var d in a)b.call(c,a[d],d,a)}function Ib(a,b,c){var d={},e;for(e in a)b.call(c,a[e],e,a)&&(d[e]=a[e]);return d}function Jb(a,b,c){for(var d in a)if(b.call(c,a[d],d,a))return!0;return!1}function Kb(a,b){for(var c in a)if(!b.call(void 0,a[c],c,a))return!1;return!0}function Lb(a){var b=0,c;for(c in a)b++;return b}function Mb(a,b){return Nb(a,b)}function Ob(a){var b=[],c=0,d;for(d in a)b[c++]=a[d];return b}function Pb(a){var b=[],c=0,d;for(d in a)b[c++]=d;return b}
function Qb(a,b){for(var c=ha(b),d=c?b:arguments,c=c?0:1;c<d.length&&(a=a[d[c]],n(a));c++);return a}function Nb(a,b){for(var c in a)if(a[c]==b)return!0;return!1}function Rb(a,b,c){for(var d in a)if(b.call(c,a[d],d,a))return d}function Sb(a){var b=Tb;return(a=Rb(b,a,void 0))&&b[a]}function Ub(a){for(var b in a)return!1;return!0}function Vb(a){for(var b in a)delete a[b]}function Wb(a,b){b in a&&delete a[b]}function Xb(a,b,c){return b in a?a[b]:c}
function Yb(a){var b={},c;for(c in a)b[c]=a[c];return b}function Zb(a){var b=ea(a);if("object"==b||"array"==b){if(a.clone)return a.clone();var b="array"==b?[]:{},c;for(c in a)b[c]=Zb(a[c]);return b}return a}var ac="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");
function bc(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 g=0;g<ac.length;g++)c=ac[g],Object.prototype.hasOwnProperty.call(d,c)&&(a[c]=d[c])}}function cc(a){var b=arguments.length;if(1==b&&ga(arguments[0]))return cc.apply(null,arguments[0]);for(var c={},d=0;d<b;d++)c[arguments[d]]=!0;return c};var dc=cc("area base br col command embed hr img input keygen link meta param source track wbr".split(" "));var ec=/<[^>]*>|&[^;]+;/g;function fc(a,b){return b?a.replace(ec,""):a}
var gc=RegExp("[\u0591-\u07ff\u200f\ufb1d-\ufdff\ufe70-\ufefc]"),hc=RegExp("[A-Za-z\u00c0-\u00d6\u00d8-\u00f6\u00f8-\u02b8\u0300-\u0590\u0800-\u1fff\u200e\u2c00-\ufb1c\ufe00-\ufe6f\ufefd-\uffff]"),ic=RegExp("^[^A-Za-z\u00c0-\u00d6\u00d8-\u00f6\u00f8-\u02b8\u0300-\u0590\u0800-\u1fff\u200e\u2c00-\ufb1c\ufe00-\ufe6f\ufefd-\uffff]*[\u0591-\u07ff\u200f\ufb1d-\ufdff\ufe70-\ufefc]"),jc=/^http:\/\/.*/,kc=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Arab|Hebr|Thaa|Nkoo|Tfng))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i,lc=
/\s+/,mc=/\d/;function nc(){this.g=oc}nc.prototype.Tf=!0;nc.prototype.Sf=function(){return""};nc.prototype.toString=function(){return"Const{}"};function pc(a){return a instanceof nc&&a.constructor===nc&&a.g===oc?"":"type_error:Const"}var oc={};function qc(){this.g="";this.j=rc}qc.prototype.Tf=!0;var rc={};qc.prototype.Sf=function(){return this.g};function sc(a){var b=new qc;b.g=a;return b}var tc=sc(""),uc=/^[-.%_!# a-zA-Z0-9]+$/;function vc(){this.g=wc}vc.prototype.Tf=!0;vc.prototype.Sf=function(){return""};vc.prototype.Rn=!0;vc.prototype.Rf=function(){return 1};function xc(a){return a instanceof vc&&a.constructor===vc&&a.g===wc?"":"type_error:SafeUrl"}var wc={};function yc(){this.g=zc}yc.prototype.Tf=!0;yc.prototype.Sf=function(){return""};yc.prototype.Rn=!0;yc.prototype.Rf=function(){return 1};var zc={};function Ac(){this.g="";this.k=Bc;this.j=null}Ac.prototype.Rn=!0;Ac.prototype.Rf=function(){return this.j};Ac.prototype.Tf=!0;Ac.prototype.Sf=function(){return this.g};function Cc(a){return a instanceof Ac&&a.constructor===Ac&&a.k===Bc?a.g:"type_error:SafeHtml"}var Dc=/^[a-zA-Z0-9-]+$/,Ec=cc("action","cite","data","formaction","href","manifest","poster","src"),Fc=cc("embed","iframe","link","object","script","style","template");
function Gc(a){function b(a){if(ga(a))E(a,b);else{if(!(a instanceof Ac)){var g=null;a.Rn&&(g=a.Rf());a=Hc(za(a.Tf?a.Sf():String(a)),g)}d+=Cc(a);a=a.Rf();0==c?c=a:0!=a&&c!=a&&(c=null)}}var c=0,d="";E(arguments,b);return Hc(d,c)}var Bc={};function Hc(a,b){var c=new Ac;c.g=a;c.j=b;return c}Hc("",0);function Ic(a,b,c){return Math.min(Math.max(a,b),c)}function Jc(a,b,c){return a+c*(b-a)};function I(a,b){this.x=n(a)?a:0;this.y=n(b)?b:0}f=I.prototype;f.clone=function(){return new I(this.x,this.y)};function Kc(a,b){return a==b?!0:a&&b?a.x==b.x&&a.y==b.y:!1}function Lc(a,b){return new I(a.x-b.x,a.y-b.y)}f.ceil=function(){this.x=Math.ceil(this.x);this.y=Math.ceil(this.y);return this};f.floor=function(){this.x=Math.floor(this.x);this.y=Math.floor(this.y);return this};f.round=function(){this.x=Math.round(this.x);this.y=Math.round(this.y);return this};
f.scale=function(a,b){var c=ia(b)?b:a;this.x*=a;this.y*=c;return this};function J(a,b){this.width=a;this.height=b}function Mc(a,b){return a==b?!0:a&&b?a.width==b.width&&a.height==b.height:!1}f=J.prototype;f.clone=function(){return new J(this.width,this.height)};f.isEmpty=function(){return!(this.width*this.height)};f.ceil=function(){this.width=Math.ceil(this.width);this.height=Math.ceil(this.height);return this};f.floor=function(){this.width=Math.floor(this.width);this.height=Math.floor(this.height);return this};
f.round=function(){this.width=Math.round(this.width);this.height=Math.round(this.height);return this};f.scale=function(a,b){var c=ia(b)?b:a;this.width*=a;this.height*=c;return this};var Nc;t:{var Oc=m.navigator;if(Oc){var Pc=Oc.userAgent;if(Pc){Nc=Pc;break t}}Nc=""}function Qc(a){return Ia(Nc,a)};var Rc=Qc("Opera")||Qc("OPR"),Sc=Qc("Trident")||Qc("MSIE"),Tc=Qc("Gecko")&&!Ma(Nc,"WebKit")&&!(Qc("Trident")||Qc("MSIE")),Uc=Ma(Nc,"WebKit"),Vc=Uc&&Qc("Mobile"),Wc=Qc("Macintosh"),Xc=Qc("Windows"),Yc=Qc("Linux")||Qc("CrOS"),Zc=m.navigator||null,$c=!!Zc&&Ia(Zc.appVersion||"","X11"),ad=Qc("Android"),bd=Qc("iPhone")&&!Qc("iPod")&&!Qc("iPad"),cd=Qc("iPad");function dd(){var a=m.document;return a?a.documentMode:void 0}
var ed=function(){var a="",b;if(Rc&&m.opera)return a=m.opera.version,ka(a)?a():a;Tc?b=/rv\:([^\);]+)(\)|;)/:Sc?b=/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/:Uc&&(b=/WebKit\/(\S+)/);b&&(a=(a=b.exec(Nc))?a[1]:"");return Sc&&(b=dd(),b>parseFloat(a))?String(b):a}(),fd={};function gd(a){return fd[a]||(fd[a]=0<=Ra(ed,a))}function hd(a){return Sc&&id>=a}var jd=m.document,id=jd&&Sc?dd()||("CSS1Compat"==jd.compatMode?parseInt(ed,10):5):void 0;var kd=!Sc||hd(9),ld=!Tc&&!Sc||Sc&&hd(9)||Tc&&gd("1.9.1"),md=Sc&&!gd("9"),nd=Sc||Rc||Uc;function od(a){return a?new pd(qd(a)):ua||(ua=new pd)}function rd(a){return w(a)?document.getElementById(a):a}function td(a,b){var c=b||document;return c.querySelectorAll&&c.querySelector?c.querySelectorAll("."+a):ud("*",a,b)}function vd(a,b){var c=b||document,d=null;c.querySelectorAll&&c.querySelector?d=c.querySelector("."+a):d=ud("*",a,b)[0];return d||null}
function ud(a,b,c){var d=document;c=c||d;a=a&&"*"!=a?a.toUpperCase():"";if(c.querySelectorAll&&c.querySelector&&(a||b))return c.querySelectorAll(a+(b?"."+b:""));if(b&&c.getElementsByClassName){c=c.getElementsByClassName(b);if(a){for(var d={},e=0,g=0,h;h=c[g];g++)a==h.nodeName&&(d[e++]=h);d.length=e;return d}return c}c=c.getElementsByTagName(a||"*");if(b){d={};for(g=e=0;h=c[g];g++)a=h.className,"function"==typeof a.split&&H(a.split(/\s+/),b)&&(d[e++]=h);d.length=e;return d}return c}
function wd(a,b){Hb(b,function(b,d){"style"==d?a.style.cssText=b:"class"==d?a.className=b:"for"==d?a.htmlFor=b:d in xd?a.setAttribute(xd[d],b):0==d.lastIndexOf("aria-",0)||0==d.lastIndexOf("data-",0)?a.setAttribute(d,b):a[d]=b})}var xd={cellpadding:"cellPadding",cellspacing:"cellSpacing",colspan:"colSpan",frameborder:"frameBorder",height:"height",maxlength:"maxLength",role:"role",rowspan:"rowSpan",type:"type",usemap:"useMap",valign:"vAlign",width:"width"};
function yd(a){a=a.document;a="CSS1Compat"==a.compatMode?a.documentElement:a.body;return new J(a.clientWidth,a.clientHeight)}function zd(a){var b=Ad(a);a=a.parentWindow||a.defaultView;return Sc&&gd("10")&&a.pageYOffset!=b.scrollTop?new I(b.scrollLeft,b.scrollTop):new I(a.pageXOffset||b.scrollLeft,a.pageYOffset||b.scrollTop)}function Ad(a){return Uc||"CSS1Compat"!=a.compatMode?a.body||a.documentElement:a.documentElement}function Bd(a){return a?a.parentWindow||a.defaultView:window}
function K(a,b,c){return Cd(document,arguments)}function Cd(a,b){var c=b[0],d=b[1];if(!kd&&d&&(d.name||d.type)){c=["<",c];d.name&&c.push(' name="',za(d.name),'"');if(d.type){c.push(' type="',za(d.type),'"');var e={};bc(e,d);delete e.type;d=e}c.push(">");c=c.join("")}c=a.createElement(c);d&&(w(d)?c.className=d:ga(d)?c.className=d.join(" "):wd(c,d));2<b.length&&Dd(a,c,b,2);return c}
function Dd(a,b,c,d){function e(c){c&&b.appendChild(w(c)?a.createTextNode(c):c)}for(;d<c.length;d++){var g=c[d];!ha(g)||la(g)&&0<g.nodeType?e(g):E(Ed(g)?sb(g):g,e)}}function Fd(a){return document.createElement(a)}function Gd(a){return document.createTextNode(String(a))}function Hd(a,b){a.appendChild(b)}function Id(a,b){Dd(qd(a),a,arguments,1)}function Jd(a){for(var b;b=a.firstChild;)a.removeChild(b)}function Kd(a,b,c){a.insertBefore(b,a.childNodes[c]||null)}
function Ld(a){a&&a.parentNode&&a.parentNode.removeChild(a)}function Md(a,b){var c=b.parentNode;c&&c.replaceChild(a,b)}function Nd(a){return ld&&void 0!=a.children?a.children:eb(a.childNodes,function(a){return 1==a.nodeType})}function Od(a){return void 0!=a.firstElementChild?a.firstElementChild:Pd(a.firstChild)}function Pd(a){for(;a&&1!=a.nodeType;)a=a.nextSibling;return a}function Qd(a){return la(a)&&1==a.nodeType}
function Rd(a){var b;if(nd&&!(Sc&&gd("9")&&!gd("10")&&m.SVGElement&&a instanceof m.SVGElement)&&(b=a.parentElement))return b;b=a.parentNode;return Qd(b)?b:null}function Sd(a,b){if(a.contains&&1==b.nodeType)return a==b||a.contains(b);if("undefined"!=typeof a.compareDocumentPosition)return a==b||Boolean(a.compareDocumentPosition(b)&16);for(;b&&a!=b;)b=b.parentNode;return b==a}function qd(a){return 9==a.nodeType?a:a.ownerDocument||a.document}
function Td(a){return a.contentWindow||Bd(a.contentDocument||a.contentWindow.document)}function Ud(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{Jd(a);var c=qd(a);a.appendChild(c.createTextNode(String(b)))}}function Vd(a,b){var c=[];return Wd(a,b,c,!0)?c[0]:void 0}
function Wd(a,b,c,d){if(null!=a)for(a=a.firstChild;a;){if(b(a)&&(c.push(a),d)||Wd(a,b,c,d))return!0;a=a.nextSibling}return!1}var Xd={SCRIPT:1,STYLE:1,HEAD:1,IFRAME:1,OBJECT:1},Yd={IMG:" ",BR:"\n"};
function Zd(a){var b;(b="A"==a.tagName||"INPUT"==a.tagName||"TEXTAREA"==a.tagName||"SELECT"==a.tagName||"BUTTON"==a.tagName?!a.disabled&&(!$d(a)||ae(a)):$d(a)&&ae(a))&&Sc?(a=ka(a.getBoundingClientRect)?a.getBoundingClientRect():{height:a.offsetHeight,width:a.offsetWidth},a=null!=a&&0<a.height&&0<a.width):a=b;return a}function $d(a){a=a.getAttributeNode("tabindex");return null!=a&&a.specified}function ae(a){a=a.tabIndex;return ia(a)&&0<=a&&32768>a}
function be(a,b,c){if(!(a.nodeName in Xd))if(3==a.nodeType)c?b.push(String(a.nodeValue).replace(/(\r\n|\r|\n)/g,"")):b.push(a.nodeValue);else if(a.nodeName in Yd)b.push(Yd[a.nodeName]);else for(a=a.firstChild;a;)be(a,b,c),a=a.nextSibling}function Ed(a){if(a&&"number"==typeof a.length){if(la(a))return"function"==typeof a.item||"string"==typeof a.item;if(ka(a))return"function"==typeof a.item}return!1}
function ce(a,b,c,d){if(!b&&!c)return null;var e=b?b.toUpperCase():null;return de(a,function(a){return(!e||a.nodeName==e)&&(!c||w(a.className)&&H(a.className.split(/\s+/),c))},!0,d)}function ee(a,b){return ce(a,null,b,void 0)}function de(a,b,c,d){c||(a=a.parentNode);c=null==d;for(var e=0;a&&(c||e<=d);){if(b(a))return a;a=a.parentNode;e++}return null}function pd(a){this.g=a||m.document||document}f=pd.prototype;f.K=function(a){return w(a)?this.g.getElementById(a):a};f.setProperties=wd;
f.jE=function(a,b,c){return Cd(this.g,arguments)};f.createElement=function(a){return this.g.createElement(a)};function fe(a){return"CSS1Compat"==a.g.compatMode}function ge(a){a=a.g;return a.parentWindow||a.defaultView}function he(a){return zd(a.g)}f.appendChild=Hd;f.append=Id;f.contains=Sd;var ie="StopIteration"in m?m.StopIteration:Error("StopIteration");function je(){}je.prototype.next=function(){throw ie;};je.prototype.dc=function(){return this};function le(a){if(a instanceof je)return a;if("function"==typeof a.dc)return a.dc(!1);if(ha(a)){var b=0,c=new je;c.next=function(){for(;;){if(b>=a.length)throw ie;if(b in a)return a[b++];b++}};return c}throw Error("Not implemented");}
function me(a,b,c){if(ha(a))try{E(a,b,c)}catch(d){if(d!==ie)throw d;}else{a=le(a);try{for(;;)b.call(c,a.next(),void 0,a)}catch(e){if(e!==ie)throw e;}}}function ne(a){if(ha(a))return sb(a);a=le(a);var b=[];me(a,function(a){b.push(a)});return b};function oe(a,b){this.j={};this.g=[];this.k=this.ia=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 oe?(c=a.Ka(),d=a.La()):(c=Pb(a),d=Ob(a));for(var e=0;e<c.length;e++)this.set(c[e],d[e])}}f=oe.prototype;f.Ra=function(){return this.ia};f.La=function(){pe(this);for(var a=[],b=0;b<this.g.length;b++)a.push(this.j[this.g[b]]);return a};f.Ka=function(){pe(this);return this.g.concat()};
function qe(a,b){return re(a.j,b)}f.ag=function(a){for(var b=0;b<this.g.length;b++){var c=this.g[b];if(re(this.j,c)&&this.j[c]==a)return!0}return!1};f.equals=function(a,b){if(this===a)return!0;if(this.ia!=a.Ra())return!1;var c=b||se;pe(this);for(var d,e=0;d=this.g[e];e++)if(!c(this.get(d),a.get(d)))return!1;return!0};function se(a,b){return a===b}f.isEmpty=function(){return 0==this.ia};f.clear=function(){this.j={};this.k=this.ia=this.g.length=0};
f.remove=function(a){return re(this.j,a)?(delete this.j[a],this.ia--,this.k++,this.g.length>2*this.ia&&pe(this),!0):!1};function pe(a){if(a.ia!=a.g.length){for(var b=0,c=0;b<a.g.length;){var d=a.g[b];re(a.j,d)&&(a.g[c++]=d);b++}a.g.length=c}if(a.ia!=a.g.length){for(var e={},c=b=0;b<a.g.length;)d=a.g[b],re(e,d)||(a.g[c++]=d,e[d]=1),b++;a.g.length=c}}f.get=function(a,b){return re(this.j,a)?this.j[a]:b};f.set=function(a,b){re(this.j,a)||(this.ia++,this.g.push(a),this.k++);this.j[a]=b};
f.forEach=function(a,b){for(var c=this.Ka(),d=0;d<c.length;d++){var e=c[d],g=this.get(e);a.call(b,g,e,this)}};f.clone=function(){return new oe(this)};f.dc=function(a){pe(this);var b=0,c=this.g,d=this.j,e=this.k,g=this,h=new je;h.next=function(){for(;;){if(e!=g.k)throw Error("The map has changed since the iterator was created");if(b>=c.length)throw ie;var h=c[b++];return a?h:d[h]}};return h};function re(a,b){return Object.prototype.hasOwnProperty.call(a,b)};function te(a){return"function"==typeof a.Ra?a.Ra():ha(a)||w(a)?a.length:Lb(a)}function ue(a){if("function"==typeof a.La)return a.La();if(w(a))return a.split("");if(ha(a)){for(var b=[],c=a.length,d=0;d<c;d++)b.push(a[d]);return b}return Ob(a)}function ve(a){if("function"==typeof a.Ka)return a.Ka();if("function"!=typeof a.La){if(ha(a)||w(a)){var b=[];a=a.length;for(var c=0;c<a;c++)b.push(c);return b}return Pb(a)}}
function we(a,b){if("function"==typeof a.forEach)a.forEach(b,void 0);else if(ha(a)||w(a))E(a,b,void 0);else for(var c=ve(a),d=ue(a),e=d.length,g=0;g<e;g++)b.call(void 0,d[g],c&&c[g],a)}function xe(a,b,c){if("function"==typeof a.every)return a.every(b,c);if(ha(a)||w(a))return hb(a,b,c);for(var d=ve(a),e=ue(a),g=e.length,h=0;h<g;h++)if(!b.call(c,e[h],d&&d[h],a))return!1;return!0};var ye=/^(?:([^:/?#.]+):)?(?:\/\/(?:([^/?#]*)@)?([^/#?]*?)(?::([0-9]+))?(?=[/#?]|$))?([^?#]+)?(?:\?([^#]*))?(?:#(.*))?$/;function ze(a){if(Ae){Ae=!1;var b=m.location;if(b){var c=b.href;if(c&&(c=Be(c))&&c!=b.hostname)throw Ae=!0,Error();}}return a.match(ye)}var Ae=Uc;function Ce(a){return a?decodeURI(a):a}function Be(a){return Ce(ze(a)[3]||null)}
function De(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("")}function Ee(a,b,c){if(ga(b))for(var d=0;d<b.length;d++)Ee(a,String(b[d]),c);else null!=b&&c.push("&",a,""===b?"":"=",xa(b))}function Fe(a,b,c){Math.max(b.length-(c||0),0);for(c=c||0;c<b.length;c+=2)Ee(b[c],b[c+1],a);return a}function Ge(a,b){for(var c in b)Ee(c,b[c],a);return a}
function He(a){a=Ge([],a);a[0]="";return a.join("")}function Ie(a,b){return De(2==arguments.length?Fe([a],arguments[1],0):Fe([a],arguments,1))}function Je(a,b){return De(Ge([a],b))}function Ke(a,b,c,d){for(var e=c.length;0<=(b=a.indexOf(c,b))&&b<d;){var g=a.charCodeAt(b-1);if(38==g||63==g)if(g=a.charCodeAt(b+e),!g||61==g||38==g||35==g)return b;b+=e+1}return-1}var Le=/#|$/;
function Me(a,b){var c=a.search(Le),d=Ke(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 ya(a.substr(d,e-d))}var Ne=/[?&]($|#)/;function Oe(a,b,c){for(var d=a.search(Le),e=0,g,h=[];0<=(g=Ke(a,e,b,d));)h.push(a.substring(e,g)),e=Math.min(a.indexOf("&",g)+1||d,d);h.push(a.substr(e));a=[h.join("").replace(Ne,"$1"),"&",b];null!=c&&a.push("=",xa(c));return De(a)};function L(a,b){var c;a instanceof L?(this.Ke=n(b)?b:a.Ke,Pe(this,a.Hb),this.Je=a.Je,Qe(this,a.nb),Te(this,a.jd),Ue(this,a.Ib),Ve(this,a.g.clone()),this.Ff=a.jf()):a&&(c=ze(String(a)))?(this.Ke=!!b,Pe(this,c[1]||"",!0),this.Je=We(c[2]||""),Qe(this,c[3]||"",!0),Te(this,c[4]),Ue(this,c[5]||"",!0),Ve(this,c[6]||"",!0),this.Ff=We(c[7]||"")):(this.Ke=!!b,this.g=new Xe(null,0,this.Ke))}f=L.prototype;f.Hb="";f.Je="";f.nb="";f.jd=null;f.Ib="";f.Ff="";f.Ke=!1;
f.toString=function(){var a=[],b=this.Hb;b&&a.push(Ye(b,Ze,!0),":");if(b=this.nb){a.push("//");var c=this.Je;c&&a.push(Ye(c,Ze,!0),"@");a.push(xa(b).replace(/%25([0-9a-fA-F]{2})/g,"%$1"));b=this.jd;null!=b&&a.push(":",String(b))}if(b=this.Ib)this.nb&&"/"!=b.charAt(0)&&a.push("/"),a.push(Ye(b,"/"==b.charAt(0)?$e:af,!0));(b=this.g.toString())&&a.push("?",b);(b=this.jf())&&a.push("#",Ye(b,bf));return a.join("")};
f.resolve=function(a){var b=this.clone(),c=!!a.Hb;c?Pe(b,a.Hb):c=!!a.Je;c?b.Je=a.Je:c=!!a.nb;c?Qe(b,a.nb):c=null!=a.jd;var d=a.Ib;if(c)Te(b,a.jd);else if(c=!!a.Ib){if("/"!=d.charAt(0))if(this.nb&&!this.Ib)d="/"+d;else{var e=b.Ib.lastIndexOf("/");-1!=e&&(d=b.Ib.substr(0,e+1)+d)}e=d;if(".."==e||"."==e)d="";else if(Ia(e,"./")||Ia(e,"/.")){for(var d=0==e.lastIndexOf("/",0),e=e.split("/"),g=[],h=0;h<e.length;){var k=e[h++];"."==k?d&&h==e.length&&g.push(""):".."==k?((1<g.length||1==g.length&&""!=g[0])&&
g.pop(),d&&h==e.length&&g.push("")):(g.push(k),d=!0)}d=g.join("/")}else d=e}c?Ue(b,d):c=""!==a.g.toString();c?Ve(b,We(a.g.toString())):c=!!a.Ff;c&&(b.Ff=a.jf());return b};f.clone=function(){return new L(this)};function Pe(a,b,c){a.Hb=c?We(b,!0):b;a.Hb&&(a.Hb=a.Hb.replace(/:$/,""));return a}function cf(a){return a.nb}function Qe(a,b,c){a.nb=c?We(b,!0):b;return a}function Te(a,b){if(b){b=Number(b);if(isNaN(b)||0>b)throw Error("Bad port number "+b);a.jd=b}else a.jd=null;return a}
function Ue(a,b,c){a.Ib=c?We(b,!0):b}function Ve(a,b,c){b instanceof Xe?(a.g=b,df(a.g,a.Ke)):(c||(b=Ye(b,ef)),a.g=new Xe(b,0,a.Ke));return a}function ff(a){return a.g}f.Xp=function(){return this.g.toString()};function M(a,b,c){a.g.set(b,c);return a}function gf(a,b,c){ga(c)||(c=[String(c)]);hf(a.g,b,c)}function jf(a,b){return a.g.get(b)}f.jf=function(){return this.Ff};
function kf(a){M(a,"zx",Math.floor(2147483648*Math.random()).toString(36)+Math.abs(Math.floor(2147483648*Math.random())^A()).toString(36));return a}function lf(a){return a instanceof L?a.clone():new L(a,void 0)}function mf(a,b,c,d){var e=new L(null,void 0);a&&Pe(e,a);b&&Qe(e,b);c&&Te(e,c);d&&Ue(e,d);return e}function We(a,b){return a?b?decodeURI(a):decodeURIComponent(a):""}function Ye(a,b,c){return w(a)?(a=encodeURI(a).replace(b,nf),c&&(a=a.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),a):null}
function nf(a){a=a.charCodeAt(0);return"%"+(a>>4&15).toString(16)+(a&15).toString(16)}var Ze=/[#\/\?@]/g,af=/[\#\?:]/g,$e=/[\#\?]/g,ef=/[\#\?@]/g,bf=/#/g;function Xe(a,b,c){this.g=a||null;this.j=!!c}function of(a){if(!a.$a&&(a.$a=new oe,a.ia=0,a.g))for(var b=a.g.split("&"),c=0;c<b.length;c++){var d=b[c].indexOf("="),e=null,g=null;0<=d?(e=b[c].substring(0,d),g=b[c].substring(d+1)):e=b[c];e=ya(e);e=pf(a,e);a.add(e,g?ya(g):"")}}f=Xe.prototype;f.$a=null;f.ia=null;f.Ra=function(){of(this);return this.ia};
f.add=function(a,b){of(this);this.g=null;a=pf(this,a);var c=this.$a.get(a);c||this.$a.set(a,c=[]);c.push(b);this.ia++;return this};f.remove=function(a){of(this);a=pf(this,a);return qe(this.$a,a)?(this.g=null,this.ia-=this.$a.get(a).length,this.$a.remove(a)):!1};f.clear=function(){this.$a=this.g=null;this.ia=0};f.isEmpty=function(){of(this);return 0==this.ia};function qf(a,b){of(a);b=pf(a,b);return qe(a.$a,b)}f.ag=function(a){var b=this.La();return H(b,a)};
f.Ka=function(){of(this);for(var a=this.$a.La(),b=this.$a.Ka(),c=[],d=0;d<b.length;d++)for(var e=a[d],g=0;g<e.length;g++)c.push(b[d]);return c};f.La=function(a){of(this);var b=[];if(w(a))qf(this,a)&&(b=rb(b,this.$a.get(pf(this,a))));else{a=this.$a.La();for(var c=0;c<a.length;c++)b=rb(b,a[c])}return b};f.set=function(a,b){of(this);this.g=null;a=pf(this,a);qf(this,a)&&(this.ia-=this.$a.get(a).length);this.$a.set(a,[b]);this.ia++;return this};
f.get=function(a,b){var c=a?this.La(a):[];return 0<c.length?String(c[0]):b};function hf(a,b,c){a.remove(b);0<c.length&&(a.g=null,a.$a.set(pf(a,b),sb(c)),a.ia+=c.length)}f.toString=function(){if(this.g)return this.g;if(!this.$a)return"";for(var a=[],b=this.$a.Ka(),c=0;c<b.length;c++)for(var d=b[c],e=xa(d),d=this.La(d),g=0;g<d.length;g++){var h=e;""!==d[g]&&(h+="="+xa(d[g]));a.push(h)}return this.g=a.join("&")};
f.clone=function(){var a=new Xe;a.g=this.g;this.$a&&(a.$a=this.$a.clone(),a.ia=this.ia);return a};function pf(a,b){var c=String(b);a.j&&(c=c.toLowerCase());return c}function df(a,b){b&&!a.j&&(of(a),a.g=null,a.$a.forEach(function(a,b){var e=b.toLowerCase();b!=e&&(this.remove(b),hf(this,e,a))},a));a.j=b};var rf=/^https?:\/\/([-\w.]+\.youtube(education)?\.com\/|[a-z0-9\-]{1,63}\.([a-z]{3}|i)\.corp\.google\.com\/|0\.borg-playground-[a-z0-9\-]+\.youtube-dev\.([a-z]{2}|i)\.borg\.google\.com(:[0-9]+)?\/|yt-devenv-shared\.corp\.google\.com\/|(docs|drive)\.google\.com\/(a\/[^/\\%]+\/|)|play\.google\.com\/)/,sf=/^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]+)?([\/\?\#]|$)/,
tf=/^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\/+/,uf=/^https?:\/\/([A-Za-z0-9-]{1,63}\.)*(corp\.google\.com|borg\.google\.com|gdata\.youtube\.com|prod\.google\.com)(:[0-9]+)?([\/\?\#]|$)/,vf=/^(https?:\/\/(lh|dp|gp)[3-6]\.googleusercontent\.com(:[0-9]+)?\/)?[A-Za-z0-9_/-]+photo\.jpg($|\?)|^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]+)?([\/\?\#]|$))/,
wf=/^https?.*#ocr$|^https?:\/\/(secure\-..\.imrworldwide\.com\/|cdn\.imrworldwide\.com\/|aksecure\.imrworldwide\.com\/)/,xf=/^https?:\/\/(www\.google\.com\/(aclk|pagead\/conversion)|googleadservices\.com\/(aclk|pagead\/conversion)|googleads\.g\.doubleclick\.net\/(aclk|pagead\/conversion))/,yf=/^https?:\/\/(www\.google\.com\/pagead\/sul|www\.youtube\.com\/gen_204\?a=sul)/,zf=/^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]+)?([\/\?\#]|$)/,
Af=/^https?:\/\/(www\.gstatic\.com\/doubleclick\/studio\/innovation\/ytplayer|www\.gstatic\.com\/doubleclick\/studio\/innovation\/h5\/layouts\/tetris|tpc\.googlesyndication\.com\/pagead\/gadgets\/|([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]+)?([\/\?\#]|$))/,
Bf=/^https?:\/\/(sf\.api\.[a-z0-9\-]+\.km\.playstation\.net\/|([A-Za-z0-9-]{1,63}\.)*(themis\.dl\.playstation\.net)(:[0-9]+)?([\/\?\#]|$))/,Cf=/^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}\.)*(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|plus\.google\.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 Df=window.yt&&window.yt.config_||{};q("yt.config_",Df,void 0);q("yt.tokens_",window.yt&&window.yt.tokens_||{},void 0);var Ef=window.yt&&window.yt.msgs_||{};q("yt.msgs_",Ef,void 0);function Ff(a){Gf(Df,arguments)}function Hf(a,b){return a in Df?Df[a]:b}function N(a,b){ka(a)&&(a=If(a));return window.setTimeout(a,b)}function Jf(a,b){ka(a)&&(a=If(a));return window.setInterval(a,b)}function O(a){window.clearTimeout(a)}function Kf(a){window.clearInterval(a)}
function If(a){return a&&window.yterr?function(){try{return a.apply(this,arguments)}catch(b){throw Lf(b),b;}}:a}function Lf(a){var b=t("yt.www.errors.log");b?b(a,void 0):(b=Hf("ERRORS")||[],b.push([a,void 0]),Ff("ERRORS",b))}function Mf(a){Gf(Ef,arguments)}function Nf(a,b,c){var d=b||{};if(a=a in Ef?Ef[a]:c)for(var e in d)a=a.replace(new RegExp("\\$"+e,"gi"),function(){return d[e]});return a}function Gf(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 Of="corp.google.com googleplex.com youtube.com youtube-nocookie.com youtubeeducation.com borg.google.com prod.google.com sandbox.google.com docs.google.com drive.google.com mail.google.com photos.google.com plus.google.com play.google.com googlevideo.com talkgadget.google.com survey.g.doubleclick.net youtube.googleapis.com vevo.com".split(" "),Pf="2mdn.net corp.google.com imasdk.googleapis.com static.doubleclick.net tpc.googlesyndication.com/pagead/gadgets gstatic.com/doubleclick/studio/innovation/h5/layouts/tetris studioapi.doubleclick.net googleads.g.doubleclick.net gstatic.com/doubleclick/studio/innovation/ytplayer".split(" "),
Qf="";function Rf(a){return a&&a==Qf?!0:Sf(a,Of)?(Qf=a,!0):!1}function Tf(a){var b=!!a&&-1!=a.search(Cf),c=Rf(a)||Sf(a,Pf);b!=c&&Lf(Error("isTrustedLoader("+a+") behavior is not consistent"));return c}function Uf(a){return!!a&&-1!=a.search(vf)}function Vf(a){return!!a&&-1!=a.search(Af)}function Sf(a,b){return(new RegExp("^(https?:)?//([a-z0-9-]{1,63}\\.)*("+b.join("|").replace(/\./g,".")+")(:[0-9]+)?([/?#]|$)","i")).test(a)}
function Wf(a){a=new L(a);Pe(a,document.location.protocol);Qe(a,document.location.hostname);document.location.port&&Te(a,document.location.port);return a.toString()}function Xf(a){a=new L(a);Pe(a,document.location.protocol);return a.toString()};var Yf={},Zf=0,$f=t("yt.net.ping.workerUrl_")||null;q("yt.net.ping.workerUrl_",$f,void 0);function ag(a,b,c){a&&(c?a&&(a=K("iframe",{src:'javascript:"data:text/html,<body><img src=\\"'+a+'\\"></body>"',style:"display:none"}),qd(a).body.appendChild(a)):bg(a,b))}function bg(a,b){var c=new Image,d=""+Zf++;Yf[d]=c;c.onload=c.onerror=function(){b&&Yf[d]&&b();delete Yf[d]};c.src=a;c=eval("null")};function cg(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+)?/g,"]").replace(/(?:^|:|,)(?:[\s\u2028\u2029]*\[)+/g,"")))try{return eval("("+a+")")}catch(b){}throw Error("Invalid JSON string: "+a);}function dg(a){return eval("("+a+")")}function eg(a){return fg(new gg(void 0),a)}function gg(a){this.g=a}
function fg(a,b){var c=[];hg(a,b,c);return c.join("")}
function hg(a,b,c){switch(typeof b){case "string":ig(b,c);break;case "number":c.push(isFinite(b)&&!isNaN(b)?b:"null");break;case "boolean":c.push(b);break;case "undefined":c.push("null");break;case "object":if(null==b){c.push("null");break}if(ga(b)){var d=b.length;c.push("[");for(var e="",g=0;g<d;g++)c.push(e),e=b[g],hg(a,a.g?a.g.call(b,String(g),e):e,c),e=",";c.push("]");break}c.push("{");d="";for(g in b)Object.prototype.hasOwnProperty.call(b,g)&&(e=b[g],"function"!=typeof e&&(c.push(d),ig(g,c),
c.push(":"),hg(a,a.g?a.g.call(b,g,e):e,c),d=","));c.push("}");break;case "function":break;default:throw Error("Unknown type: "+typeof b);}}var jg={'"':'\\"',"\\":"\\\\","/":"\\/","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t","\x0B":"\\u000b"},kg=/\uffff/.test("\uffff")?/[\\\"\x00-\x1f\x7f-\uffff]/g:/[\\\"\x00-\x1f\x7f-\xff]/g;
function ig(a,b){b.push('"',a.replace(kg,function(a){if(a in jg)return jg[a];var b=a.charCodeAt(0),e="\\u";16>b?e+="000":256>b?e+="00":4096>b&&(e+="0");return jg[a]=e+b.toString(16)}),'"')};function lg(a,b,c,d){this.top=a;this.right=b;this.bottom=c;this.left=d}f=lg.prototype;f.getHeight=function(){return this.bottom-this.top};f.clone=function(){return new lg(this.top,this.right,this.bottom,this.left)};f.contains=function(a){return this&&a?a instanceof lg?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};
f.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};f.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};f.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};
f.scale=function(a,b){var c=ia(b)?b:a;this.left*=a;this.right*=a;this.top*=c;this.bottom*=c;return this};function mg(a,b,c,d){this.left=a;this.top=b;this.width=c;this.height=d}f=mg.prototype;f.clone=function(){return new mg(this.left,this.top,this.width,this.height)};function ng(a){return new mg(a.left,a.top,a.right-a.left,a.bottom-a.top)}function og(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}
f.contains=function(a){return a instanceof mg?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};function pg(a){return new J(a.width,a.height)}f.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};
f.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};f.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};f.scale=function(a,b){var c=ia(b)?b:a;this.left*=a;this.width*=a;this.top*=c;this.height*=c;return this};function qg(a){qg[" "](a);return a}qg[" "]=u;function rg(a,b){try{return qg(a[b]),!0}catch(c){}return!1};function sg(){return Uc?"Webkit":Tc?"Moz":Sc?"ms":Rc?"O":null}function tg(){return Uc?"-webkit":Tc?"-moz":Sc?"-ms":Rc?"-o":null}function ug(a,b){if(b&&a in b)return a;var c=sg();return c?(c=c.toLowerCase(),c+=Ya(a),!n(b)||c in b?c:null):null};function vg(a,b,c){if(w(b))(b=wg(a,b))&&(a.style[b]=c);else for(var d in b){c=a;var e=b[d],g=wg(c,d);g&&(c.style[g]=e)}}var xg={};function wg(a,b){var c=xg[b];if(!c){var d=Xa(b),c=d;void 0===a.style[d]&&(d=sg()+Ya(d),void 0!==a.style[d]&&(c=d));xg[b]=c}return c}function yg(a,b){var c=qd(a);return c.defaultView&&c.defaultView.getComputedStyle&&(c=c.defaultView.getComputedStyle(a,null))?c[b]||c.getPropertyValue(b)||"":""}
function zg(a,b){return yg(a,b)||(a.currentStyle?a.currentStyle[b]:null)||a.style&&a.style[b]}function Ag(a,b,c){var d,e=Tc&&(Wc||$c)&&gd("1.9");b instanceof I?(d=b.x,b=b.y):(d=b,b=c);a.style.left=Bg(d,e);a.style.top=Bg(b,e)}function Cg(a){return new I(a.offsetLeft,a.offsetTop)}
function Dg(a){var b;try{b=a.getBoundingClientRect()}catch(c){return{left:0,top:0,right:0,bottom:0}}Sc&&a.ownerDocument.body&&(a=a.ownerDocument,b.left-=a.documentElement.clientLeft+a.body.clientLeft,b.top-=a.documentElement.clientTop+a.body.clientTop);return b}
function Eg(a){if(Sc&&!hd(8))return a.offsetParent;var b=qd(a),c=zg(a,"position"),d="fixed"==c||"absolute"==c;for(a=a.parentNode;a&&a!=b;a=a.parentNode)if(c=zg(a,"position"),d=d&&"static"==c&&a!=b.documentElement&&a!=b.body,!d&&(a.scrollWidth>a.clientWidth||a.scrollHeight>a.clientHeight||"fixed"==c||"absolute"==c||"relative"==c))return a;return null}
function Fg(a){for(var b=new lg(0,Infinity,Infinity,0),c=od(a),d=c.g.body,e=c.g.documentElement,g=Ad(c.g);a=Eg(a);)if(!(Sc&&0==a.clientWidth||Uc&&0==a.clientHeight&&a==d)&&a!=d&&a!=e&&"visible"!=zg(a,"overflow")){var h=Gg(a),k;k=a;if(Tc&&!gd("1.9")){var l=parseFloat(yg(k,"borderLeftWidth"));if(Hg(k))var p=k.offsetWidth-k.clientWidth-l-parseFloat(yg(k,"borderRightWidth")),l=l+p;k=new I(l,parseFloat(yg(k,"borderTopWidth")))}else k=new I(k.clientLeft,k.clientTop);h.x+=k.x;h.y+=k.y;b.top=Math.max(b.top,
h.y);b.right=Math.min(b.right,h.x+a.clientWidth);b.bottom=Math.min(b.bottom,h.y+a.clientHeight);b.left=Math.max(b.left,h.x)}d=g.scrollLeft;g=g.scrollTop;b.left=Math.max(b.left,d);b.top=Math.max(b.top,g);c=yd(ge(c)||window);b.right=Math.min(b.right,d+c.width);b.bottom=Math.min(b.bottom,g+c.height);return 0<=b.top&&0<=b.left&&b.bottom>b.top&&b.right>b.left?b:null}
function Gg(a){var b,c=qd(a),d=zg(a,"position"),e=Tc&&c.getBoxObjectFor&&!a.getBoundingClientRect&&"absolute"==d&&(b=c.getBoxObjectFor(a))&&(0>b.screenX||0>b.screenY),g=new I(0,0),h;b=c?qd(c):document;h=!Sc||hd(9)||fe(od(b))?b.documentElement:b.body;if(a==h)return g;if(a.getBoundingClientRect)b=Dg(a),a=he(od(c)),g.x=b.left+a.x,g.y=b.top+a.y;else if(c.getBoxObjectFor&&!e)b=c.getBoxObjectFor(a),a=c.getBoxObjectFor(h),g.x=b.screenX-a.screenX,g.y=b.screenY-a.screenY;else{b=a;do{g.x+=b.offsetLeft;g.y+=
b.offsetTop;b!=a&&(g.x+=b.clientLeft||0,g.y+=b.clientTop||0);if(Uc&&"fixed"==zg(b,"position")){g.x+=c.body.scrollLeft;g.y+=c.body.scrollTop;break}b=b.offsetParent}while(b&&b!=a);if(Rc||Uc&&"absolute"==d)g.y-=c.body.offsetTop;for(b=a;(b=Eg(b))&&b!=c.body&&b!=h;)g.x-=b.scrollLeft,Rc&&"TR"==b.tagName||(g.y-=b.scrollTop)}return g}function Ig(a,b){var c=new I(0,0),d=Bd(qd(a)),e=a;do{var g=d==b?Gg(e):Jg(e);c.x+=g.x;c.y+=g.y}while(d&&d!=b&&(e=d.frameElement)&&(d=d.parent));return c}
function Jg(a){var b;if(a.getBoundingClientRect)b=Dg(a),b=new I(b.left,b.top);else{b=he(od(a));var c=Gg(a);b=new I(c.x-b.x,c.y-b.y)}if(Tc&&!gd(12)){i:{c=Xa("transform");if(void 0===a.style[c]&&(c=sg()+Ya(c),void 0!==a.style[c])){c=tg()+"-transform";break i}c="transform"}a=(a=zg(a,c)||zg(a,"transform"))?(a=a.match(Kg))?new I(parseFloat(a[1]),parseFloat(a[2])):new I(0,0):new I(0,0);a=new I(b.x+a.x,b.y+a.y)}else a=b;return a}
function Lg(a){if(1==a.nodeType)return Jg(a);var b=ka(a.FE),c=a;a.targetTouches&&a.targetTouches.length?c=a.targetTouches[0]:b&&a.g.targetTouches&&a.g.targetTouches.length&&(c=a.g.targetTouches[0]);return new I(c.clientX,c.clientY)}function Mg(a,b,c){if(b instanceof J)c=b.height,b=b.width;else if(void 0==c)throw Error("missing height argument");Ng(a,b);a.style.height=Bg(c,!0)}function Bg(a,b){"number"==typeof a&&(a=(b?Math.round(a):a)+"px");return a}function Ng(a,b){a.style.width=Bg(b,!0)}
function Og(a){return Pg(a)}function Pg(a){var b=Qg;if("none"!=zg(a,"display"))return b(a);var c=a.style,d=c.display,e=c.visibility,g=c.position;c.visibility="hidden";c.position="absolute";c.display="inline";a=b(a);c.display=d;c.position=g;c.visibility=e;return a}function Qg(a){var b=a.offsetWidth,c=a.offsetHeight,d=Uc&&!b&&!c;return n(b)&&!d||!a.getBoundingClientRect?new J(b,c):(a=Dg(a),new J(a.right-a.left,a.bottom-a.top))}
function Rg(a){var b=Gg(a);a=Pg(a);return new mg(b.x,b.y,a.width,a.height)}function Sg(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+")")}function Tg(a,b){a.style.display=b?"":"none"}function Hg(a){return"rtl"==zg(a,"direction")}
function Ug(a,b){if(/^\d+px?$/.test(b))return parseInt(b,10);var c=a.style.left,d=a.runtimeStyle.left;a.runtimeStyle.left=a.currentStyle.left;a.style.left=b;var e=a.style.pixelLeft;a.style.left=c;a.runtimeStyle.left=d;return e}function Vg(a,b){var c=a.currentStyle?a.currentStyle[b]:null;return c?Ug(a,c):0}var Wg={thin:2,medium:4,thick:6};
function Xg(a,b){if("none"==(a.currentStyle?a.currentStyle[b+"Style"]:null))return 0;var c=a.currentStyle?a.currentStyle[b+"Width"]:null;return c in Wg?Wg[c]:Ug(a,c)}function Yg(a){if(Sc&&!hd(9)){var b=Xg(a,"borderLeft"),c=Xg(a,"borderRight"),d=Xg(a,"borderTop");a=Xg(a,"borderBottom");return new lg(d,c,a,b)}b=yg(a,"borderLeftWidth");c=yg(a,"borderRightWidth");d=yg(a,"borderTopWidth");a=yg(a,"borderBottomWidth");return new lg(parseFloat(d),parseFloat(c),parseFloat(a),parseFloat(b))}
var Zg=/[^\d]+$/,$g={cm:1,"in":1,mm:1,pc:1,pt:1},ah={em:1,ex:1};function bh(a){var b=zg(a,"fontSize"),c;c=(c=b.match(Zg))&&c[0]||null;if(b&&"px"==c)return parseInt(b,10);if(Sc){if(c in $g)return Ug(a,b);if(a.parentNode&&1==a.parentNode.nodeType&&c in ah)return a=a.parentNode,c=zg(a,"fontSize"),Ug(a,b==c?"1em":b)}c=K("span",{style:"visibility:hidden;position:absolute;line-height:0;padding:0;margin:0;border:0;height:1em;"});a.appendChild(c);b=c.offsetHeight;Ld(c);return b}var Kg=/matrix\([0-9\.\-]+, [0-9\.\-]+, [0-9\.\-]+, [0-9\.\-]+, ([0-9\.\-]+)p?x?, ([0-9\.\-]+)p?x?\)/;function ch(a){if(a.classList)return a.classList;a=a.className;return w(a)&&a.match(/\S+/g)||[]}function dh(a,b){return a.classList?a.classList.contains(b):H(ch(a),b)}function P(a,b){a.classList?a.classList.add(b):dh(a,b)||(a.className+=0<a.className.length?" "+b:b)}function eh(a,b){if(a.classList)E(b,function(b){P(a,b)});else{var c={};E(ch(a),function(a){c[a]=!0});E(b,function(a){c[a]=!0});a.className="";for(var d in c)a.className+=0<a.className.length?" "+d:d}}
function fh(a,b){a.classList?a.classList.remove(b):dh(a,b)&&(a.className=eb(ch(a),function(a){return a!=b}).join(" "))}function gh(a,b){a.classList?E(b,function(b){fh(a,b)}):a.className=eb(ch(a),function(a){return!H(b,a)}).join(" ")}function Q(a,b,c){c?P(a,b):fh(a,b)}function hh(a,b){var c=!dh(a,b);Q(a,b,c)};function ih(a,b,c){a&&(a.dataset?a.dataset[jh(b)]=c:a.setAttribute("data-"+b,c))}function kh(a,b){return a?a.dataset?a.dataset[jh(b)]:a.getAttribute("data-"+b):null}var lh={};function jh(a){return lh[a]||(lh[a]=String(a).replace(/\-([a-z])/g,function(a,c){return c.toUpperCase()}))};var mh=Uc?"webkit":Tc?"moz":Sc?"ms":Rc?"o":"";function nh(a){var b=a.__yt_uid_key;b||(b=oh(),a.__yt_uid_key=b);return b}var oh=t("yt.dom.getNextId_");if(!oh){oh=function(){return++ph};q("yt.dom.getNextId_",oh,void 0);var ph=0}function qh(a,b){var c=ud(a,null,b);return c.length?c[0]:null}function rh(a,b){if(a in b)return b[a];var c=mh+a.charAt(0).toUpperCase()+a.substr(1);if(c in b)return b[c]}function sh(a,b){var c;gb(a,function(a){c=rh(a,b);return!!c});return c};function th(a){if(a=a||window.event){for(var b in a)b in uh||(this[b]=a[b]);this.scale=a.scale;this.rotation=a.rotation;this.Tb=a;(b=a.target||a.srcElement)&&3==b.nodeType&&(b=b.parentNode);this.target=b;if(b=a.relatedTarget)try{b=b.nodeName?b:null}catch(c){b=null}else"mouseover"==this.type?b=a.fromElement:"mouseout"==this.type&&(b=a.toElement);this.relatedTarget=b;this.clientX=void 0!=a.clientX?a.clientX:a.pageX;this.clientY=void 0!=a.clientY?a.clientY:a.pageY;this.keyCode=a.keyCode?a.keyCode:a.which;
this.charCode=a.charCode||("keypress"==this.type?this.keyCode:0);this.altKey=a.altKey;this.ctrlKey=a.ctrlKey;this.shiftKey=a.shiftKey;"MozMousePixelScroll"==this.type?(this.wheelDeltaX=a.axis==a.HORIZONTAL_AXIS?a.detail:0,this.wheelDeltaY=a.axis==a.HORIZONTAL_AXIS?0:a.detail):window.opera?(this.wheelDeltaX=0,this.wheelDeltaY=a.detail):0==a.wheelDelta%120?"WebkitTransform"in document.documentElement.style?window.chrome&&0==navigator.platform.indexOf("Mac")?(this.wheelDeltaX=a.wheelDeltaX/-30,this.wheelDeltaY=
a.wheelDeltaY/-30):(this.wheelDeltaX=a.wheelDeltaX/-1.2,this.wheelDeltaY=a.wheelDeltaY/-1.2):(this.wheelDeltaX=0,this.wheelDeltaY=a.wheelDelta/-1.6):(this.wheelDeltaX=a.wheelDeltaX/-3,this.wheelDeltaY=a.wheelDeltaY/-3);this.g=a.pageX;this.j=a.pageY}}function vh(a){if(document.body&&document.documentElement){var b=document.body.scrollTop+document.documentElement.scrollTop;a.g=a.clientX+(document.body.scrollLeft+document.documentElement.scrollLeft);a.j=a.clientY+b}}
function wh(a){n(a.g)||vh(a);return a.g}function xh(a){n(a.j)||vh(a);return a.j}f=th.prototype;f.Tb=null;f.type="";f.target=null;f.relatedTarget=null;f.currentTarget=null;f.data=null;f.source=null;f.state=null;f.keyCode=0;f.charCode=0;f.altKey=!1;f.ctrlKey=!1;f.shiftKey=!1;f.clientX=0;f.clientY=0;f.wheelDeltaX=0;f.wheelDeltaY=0;f.rotation=0;f.scale=1;f.touches=null;f.changedTouches=null;f.preventDefault=function(){this.Tb.returnValue=!1;this.Tb.preventDefault&&this.Tb.preventDefault()};
f.stopPropagation=function(){this.Tb.cancelBubble=!0;this.Tb.stopPropagation&&this.Tb.stopPropagation()};f.stopImmediatePropagation=function(){this.Tb.cancelBubble=!0;this.Tb.stopImmediatePropagation&&this.Tb.stopImmediatePropagation()};var uh={stopImmediatePropagation:1,stopPropagation:1,preventMouseEvent:1,preventManipulation:1,preventDefault:1,layerX:1,layerY:1,scale:1,rotation:1};var yh=t("yt.events.listeners_")||{};q("yt.events.listeners_",yh,void 0);var zh=t("yt.events.counter_")||{count:0};q("yt.events.counter_",zh,void 0);function Ah(a,b,c,d){return Rb(yh,function(e){return e[0]==a&&e[1]==b&&e[2]==c&&e[4]==!!d})}
function R(a,b,c,d){if(!a||!a.addEventListener&&!a.attachEvent)return"";d=!!d;var e=Ah(a,b,c,d);if(e)return e;var e=++zh.count+"",g=!("mouseenter"!=b&&"mouseleave"!=b||!a.addEventListener||"onmouseenter"in document),h;h=g?function(d){d=new th(d);if(!de(d.relatedTarget,function(b){return b==a},!0))return d.currentTarget=a,d.type=b,c.call(a,d)}:function(b){b=new th(b);b.currentTarget=a;return c.call(a,b)};h=If(h);yh[e]=[a,b,c,h,d];a.addEventListener?"mouseenter"==b&&g?a.addEventListener("mouseover",
h,d):"mouseleave"==b&&g?a.addEventListener("mouseout",h,d):"mousewheel"==b&&"MozBoxSizing"in document.documentElement.style?a.addEventListener("MozMousePixelScroll",h,d):a.addEventListener(b,h,d):a.attachEvent("on"+b,h);return e}function Bh(a,b){var c;c=R(a,"playing",function(){Ch(c);b.apply(a,arguments)},void 0)}function Dh(a,b,c,d){return Eh(a,b,c,function(a){return dh(a,d)})}
function Eh(a,b,c,d){var e=a||document;return R(e,b,function(a){var b=de(a.target,function(a){return a===e||d(a)},!0);b&&b!==e&&!b.disabled&&(a.currentTarget=b,c.call(b,a))})}function Ch(a){a&&("string"==typeof a&&(a=[a]),E(a,function(a){if(a in yh){var c=yh[a],d=c[0],e=c[1],g=c[3],c=c[4];d.removeEventListener?d.removeEventListener(e,g,c):d.detachEvent&&d.detachEvent("on"+e,g);delete yh[a]}}))}function Fh(a){for(var b in yh)yh[b][0]==a&&Ch(b)}
function Gh(a,b){if(document.createEvent){var c=document.createEvent("HTMLEvents");c.initEvent(b,!0,!0);a.dispatchEvent(c)}else c=document.createEventObject(),a.fireEvent("on"+b,c)};function Hh(){return!!sh(["fullscreenEnabled","fullScreenEnabled"],document)}function Ih(){return sh(["fullscreenElement","fullScreenElement"],document)};function Jh(a){a=a||{};this.url=a.url||"";this.urlV8=a.url_v8||"";this.urlV9As2=a.url_v9as2||"";this.args=a.args||Yb(Kh);this.assets=a.assets||{};this.attrs=a.attrs||Yb(Lh);this.params=a.params||Yb(Mh);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 Kh={enablejsapi:1},Lh={},Mh={allowscriptaccess:"always",allowfullscreen:"true",bgcolor:"#000000"};
Jh.prototype.clone=function(){var a=new Jh,b;for(b in this){var c=this[b];"object"==ea(c)?a[b]=Yb(c):a[b]=c}return a};var Nh,Oh,Ph,Qh,Rh,Sh,Th;Th=Sh=Rh=Qh=Ph=Oh=Nh=!1;var Uh=Nc;Uh&&(-1!=Uh.indexOf("Firefox")?Nh=!0:-1!=Uh.indexOf("Camino")?Oh=!0:-1!=Uh.indexOf("iPad")?Qh=!0:-1!=Uh.indexOf("iPhone")||-1!=Uh.indexOf("iPod")?Ph=!0:-1!=Uh.indexOf("Chrome")?Sh=!0:-1!=Uh.indexOf("Android")?Rh=!0:-1!=Uh.indexOf("Safari")&&(Th=!0));var Vh=Nh,Wh=Oh,Xh=Ph,Yh=Qh,Zh=Rh,$h=Sh,ai=Th;var bi=A(),ci=null,di=Array(50),ei=-1,fi=!1;function gi(a){hi();ci.push(a);ii(ci)}function ji(a){var b=t("yt.mdx.remote.debug.handlers_");ob(b||[],a)}function ki(a,b){hi();var c=ci,d=li(a,String(b));lb(c)?mi(d):(ii(c),E(c,function(a){a(d)}))}function hi(){ci||(ci=t("yt.mdx.remote.debug.handlers_")||[],q("yt.mdx.remote.debug.handlers_",ci,void 0))}function mi(a){var b=(ei+1)%50;ei=b;di[b]=a;fi||(fi=49==b)}
function ii(a){var b=di;if(b[0]){var c=ei,d=fi?c:-1;do{var d=(d+1)%50,e=b[d];E(a,function(a){a(e)})}while(d!=c);di=Array(50);ei=-1;fi=!1}}function li(a,b){var c=(A()-bi)/1E3;c.toFixed&&(c=c.toFixed(3));var d=[];d.push("[",c+"s","] ");d.push("[","yt.mdx.remote","] ");d.push(a+": "+b,"\n");return d.join("")};function ni(a){a=a||{};this.name=a.name||"";this.id=a.id||a.screenId||"";this.token=a.token||a.loungeToken||"";this.uuid=a.uuid||a.dialId||""}function oi(a,b){return!!b&&(a.id==b||a.uuid==b)}function pi(a,b){return a||b?!a!=!b?!1:a.id==b.id:!0}function qi(a,b){return a||b?!a!=!b?!1:a.id==b.id&&a.token==b.token&&a.name==b.name&&a.uuid==b.uuid:!0}function ri(a){return{name:a.name,screenId:a.id,loungeToken:a.token,dialId:a.uuid}}function si(a){return new ni(a)}
function ti(a){return ga(a)?F(a,si):[]}function ui(a){return a?'{name:"'+a.name+'",id:'+a.id.substr(0,6)+"..,token:"+(a.token?".."+a.token.slice(-6):"-")+",uuid:"+(a.uuid?".."+a.uuid.slice(-6):"-")+"}":"null"}function vi(a){return ga(a)?"["+F(a,ui).join(",")+"]":"null"};function S(){this.fb=this.fb;this.Ba=this.Ba}S.prototype.fb=!1;S.prototype.da=function(){return this.fb};S.prototype.dispose=function(){this.fb||(this.fb=!0,this.L())};function T(a,b){wi(a,z(xi,b))}function wi(a,b){a.Ba||(a.Ba=[]);a.Ba.push(n(void 0)?y(b,void 0):b)}S.prototype.L=function(){if(this.Ba)for(;this.Ba.length;)this.Ba.shift()()};function yi(a){return a&&"function"==typeof a.da?a.da():!1}function xi(a){a&&"function"==typeof a.dispose&&a.dispose()}
function zi(a){for(var b=0,c=arguments.length;b<c;++b){var d=arguments[b];ha(d)?zi.apply(null,d):xi(d)}};function Ai(){S.call(this);this.g=[];this.lc={}}B(Ai,S);f=Ai.prototype;f.vt=1;f.Jj=0;f.subscribe=function(a,b,c){var d=this.lc[a];d||(d=this.lc[a]=[]);var e=this.vt;this.g[e]=a;this.g[e+1]=b;this.g[e+2]=c;this.vt=e+3;d.push(e);return e};f.unsubscribe=function(a,b,c){if(a=this.lc[a]){var d=this.g;if(a=G(a,function(a){return d[a+1]==b&&d[a+2]==c}))return this.Jb(a)}return!1};
f.Jb=function(a){if(0!=this.Jj)return this.j||(this.j=[]),this.j.push(a),!1;var b=this.g[a];if(b){var c=this.lc[b];c&&ob(c,a);delete this.g[a];delete this.g[a+1];delete this.g[a+2]}return!!b};f.publish=function(a,b){var c=this.lc[a];if(c){this.Jj++;for(var d=Array(arguments.length-1),e=1,g=arguments.length;e<g;e++)d[e-1]=arguments[e];e=0;for(g=c.length;e<g;e++){var h=c[e];this.g[h+1].apply(this.g[h+2],d)}this.Jj--;if(this.j&&0==this.Jj)for(;c=this.j.pop();)this.Jb(c);return 0!=e}return!1};
f.clear=function(a){if(a){var b=this.lc[a];b&&(E(b,this.Jb,this),delete this.lc[a])}else this.g.length=0,this.lc={}};f.Ra=function(a){if(a){var b=this.lc[a];return b?b.length:0}a=0;for(b in this.lc)a+=this.Ra(b);return a};f.L=function(){Ai.H.L.call(this);delete this.g;delete this.lc;delete this.j};var Bi=t("yt.pubsub.instance_")||new Ai;Ai.prototype.subscribe=Ai.prototype.subscribe;Ai.prototype.unsubscribeByKey=Ai.prototype.Jb;Ai.prototype.publish=Ai.prototype.publish;Ai.prototype.clear=Ai.prototype.clear;q("yt.pubsub.instance_",Bi,void 0);var Ci=t("yt.pubsub.subscribedKeys_")||{};q("yt.pubsub.subscribedKeys_",Ci,void 0);var Di=t("yt.pubsub.topicToKeys_")||{};q("yt.pubsub.topicToKeys_",Di,void 0);var Ei=t("yt.pubsub.isSynchronous_")||{};q("yt.pubsub.isSynchronous_",Ei,void 0);
var Fi=t("yt.pubsub.skipSubId_")||null;q("yt.pubsub.skipSubId_",Fi,void 0);function Gi(a,b,c){var d=Hi();if(d){var e=d.subscribe(a,function(){if(!Fi||Fi!=e){var d=arguments,h=function(){Ci[e]&&b.apply(c||window,d)};try{Ei[a]?h():N(h,0)}catch(k){Lf(k)}}},c);Ci[e]=!0;Di[a]||(Di[a]=[]);Di[a].push(e);return e}return 0}function Ii(a){var b=Hi();b&&("number"==typeof a?a=[a]:"string"==typeof a&&(a=[parseInt(a,10)]),E(a,function(a){b.unsubscribeByKey(a);delete Ci[a]}))}
function Ji(a,b){var c=Hi();return c?c.publish.apply(c,arguments):!1}function Ki(a,b){Ei[a]=!0;var c=Hi();c&&c.publish.apply(c,arguments);Ei[a]=!1}function Li(a){Di[a]&&(a=Di[a],E(a,function(a){Ci[a]&&delete Ci[a]}),a.length=0)}function Mi(a){var b=Hi();if(b)if(b.clear(a),a)Li(a);else for(var c in Di)Li(c)}function Hi(){return t("yt.pubsub.instance_")};function Ni(){};function Oi(){}B(Oi,Ni);Oi.prototype.Ra=function(){var a=0;me(this.dc(!0),function(){a++});return a};Oi.prototype.clear=function(){var a=ne(this.dc(!0)),b=this;E(a,function(a){b.remove(a)})};function Pi(a){this.g=a}B(Pi,Oi);f=Pi.prototype;f.isAvailable=function(){if(!this.g)return!1;try{return this.g.setItem("__sak","1"),this.g.removeItem("__sak"),!0}catch(a){return!1}};f.set=function(a,b){try{this.g.setItem(a,b)}catch(c){if(0==this.g.length)throw"Storage mechanism: Storage disabled";throw"Storage mechanism: Quota exceeded";}};f.get=function(a){a=this.g.getItem(a);if(!w(a)&&null!==a)throw"Storage mechanism: Invalid value was encountered";return a};f.remove=function(a){this.g.removeItem(a)};
f.Ra=function(){return this.g.length};f.dc=function(a){var b=0,c=this.g,d=new je;d.next=function(){if(b>=c.length)throw ie;var d;d=c.key(b++);if(a)return d;d=c.getItem(d);if(!w(d))throw"Storage mechanism: Invalid value was encountered";return d};return d};f.clear=function(){this.g.clear()};f.key=function(a){return this.g.key(a)};function Qi(){var a=null;try{a=window.localStorage||null}catch(b){}this.g=a}B(Qi,Pi);function Ri(){var a=null;try{a=window.sessionStorage||null}catch(b){}this.g=a}B(Ri,Pi);function Si(a){this.g=a}Si.prototype.set=function(a,b){n(b)?this.g.set(a,eg(b)):this.g.remove(a)};Si.prototype.get=function(a){var b;try{b=this.g.get(a)}catch(c){return}if(null!==b)try{return cg(b)}catch(d){throw"Storage: Invalid value was encountered";}};Si.prototype.remove=function(a){this.g.remove(a)};function Ti(a){this.g=a}B(Ti,Si);function Ui(a){this.data=a}function Vi(a){return!n(a)||a instanceof Ui?a:new Ui(a)}Ti.prototype.set=function(a,b){Ti.H.set.call(this,a,Vi(b))};Ti.prototype.j=function(a){a=Ti.H.get.call(this,a);if(!n(a)||a instanceof Object)return a;throw"Storage: Invalid value was encountered";};Ti.prototype.get=function(a){if(a=this.j(a)){if(a=a.data,!n(a))throw"Storage: Invalid value was encountered";}else a=void 0;return a};function Wi(a){this.g=a}B(Wi,Ti);function Xi(a){var b=a.creation;a=a.expiration;return!!a&&a<A()||!!b&&b>A()}Wi.prototype.set=function(a,b,c){if(b=Vi(b)){if(c){if(c<A()){Wi.prototype.remove.call(this,a);return}b.expiration=c}b.creation=A()}Wi.H.set.call(this,a,b)};Wi.prototype.j=function(a,b){var c=Wi.H.j.call(this,a);if(c)if(!b&&Xi(c))Wi.prototype.remove.call(this,a);else return c};function Yi(a){this.g=a}B(Yi,Wi);function Zi(a,b){var c=[];me(b,function(a){var b;try{b=Yi.prototype.j.call(this,a,!0)}catch(g){if("Storage: Invalid value was encountered"==g)return;throw g;}n(b)?Xi(b)&&c.push(a):c.push(a)},a);return c}function $i(a,b){var c=Zi(a,b);E(c,function(a){Yi.prototype.remove.call(this,a)},a)}function aj(){var a=bj;$i(a,a.g.dc(!0))};function cj(a,b,c){var d=c&&0<c?c:0;c=d?A()+1E3*d:0;if((d=d?bj:dj)&&window.JSON){w(b)||(b=JSON.stringify(b,void 0));try{d.set(a,b,c)}catch(e){d.remove(a)}}}function ej(a){if(!dj&&!bj||!window.JSON)return null;var b;try{b=dj.get(a)}catch(c){}if(!w(b))try{b=bj.get(a)}catch(d){}if(!w(b))return null;try{b=JSON.parse(b,void 0)}catch(e){}return b}function fj(a){dj&&dj.remove(a);bj&&bj.remove(a)}var bj,gj=new Qi;bj=gj.isAvailable()?new Yi(gj):null;var dj,hj=new Ri;dj=hj.isAvailable()?new Yi(hj):null;var ij=["boadgeojelhgndaghljhdicfkmllpafd","dliochdbjfkdbacpmhlcpmleaejidimm","hfaagokkkhdbgiakmmlclaapfelnkoah","fmfcbgogabcbclcofgocippekhfcmgfj","enhhojjnijigcajfphajepfemndkmdlo"];function jj(a,b){a==ij.length?b(null):kj(ij[a],function(c){c?(c=ij[a],cj("yt-remote-cast-last-extension",c),b(c)):jj(a+1,b)})}function lj(a){return"chrome-extension://"+a+"/cast_sender.js"}
function kj(a,b){var c=new XMLHttpRequest;c.onreadystatechange=function(){4==c.readyState&&200==c.status&&b(!0)};c.onerror=function(){b(!1)};try{c.open("GET",lj(a),!0),c.send()}catch(d){b(!1)}}
function mj(a){window.__onGCastApiAvailable=a;nj(function(b){if(b){ki("bootstrap","Found cast extension: "+b);q("chrome.cast.extensionId",b,void 0);var c=document.createElement("script");c.src=lj(b);c.onerror=function(){oj();fj("yt-remote-cast-last-extension");a(!1,"Extension JS failed to load.")};(document.head||document.documentElement).appendChild(c)}else ki("bootstrap","No cast extension found"),a(!1,"No cast extension found")})}
function oj(){window.__onGCastApiAvailable&&delete window.__onGCastApiAvailable}function nj(a){var b=ej("yt-remote-cast-last-extension");b?a(b):jj(0,a)};var pj={mK:"ska",UJ:"que",tJ:"mus",jK:"sus"};function qj(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}};function rj(a,b){for(var c=a.split(b),d={},e=0,g=c.length;e<g;e++){var h=c[e].split("=");if(1==h.length&&h[0]||2==h.length){var k=ya(h[0]||""),h=ya(h[1]||"");k in d?ga(d[k])?tb(d[k],h):d[k]=[d[k],h]:d[k]=h}}return d}function sj(a,b){var c=[];Hb(a,function(a,b){var g=xa(b),h;ga(a)?h=a:h=[a];E(h,function(a){""==a?c.push(g):c.push(g+"="+xa(a))})});return c.join(b)}function tj(a){"?"==a.charAt(0)&&(a=a.substr(1));return rj(a,"&")}
function uj(a){return-1!=a.indexOf("?")?(a=(a||"").split("#")[0],a=a.split("?",2),tj(1<a.length?a[1]:a[0])):{}}var vj=Be;function wj(a){var b=ze(a);a=b[1];var c=b[2],d=b[3],b=b[4],e="";a&&(e+=a+":");d&&(e+="//",c&&(e+=c+"@"),e+=d,b&&(e+=":"+b));return e}function xj(a,b){var c=a.split("#",2);a=c[0];var c=1<c.length?"#"+c[1]:"",d=a.split("?",2);a=d[0];var d=tj(d[1]||""),e;for(e in b)d[e]=b[e];return Je(a,d)+c}
function yj(){var a;a||(a=document.location.href);a=ze(a)[1]||null;return null!==a&&"https"==a};var zj=null;"undefined"!=typeof XMLHttpRequest?zj=function(){return new XMLHttpRequest}:"undefined"!=typeof ActiveXObject&&(zj=function(){return new ActiveXObject("Microsoft.XMLHTTP")});function Aj(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}};function Bj(a,b,c,d,e,g,h){function k(){4==(l&&"readyState"in l?l.readyState:0)&&b&&If(b)(l)}var l=zj&&zj();if(!("open"in l))return null;"onloadend"in l?l.addEventListener("loadend",k,!1):l.onreadystatechange=k;c=(c||"GET").toUpperCase();d=d||"";l.open(c,a,!0);g&&(l.responseType=g);h&&(l.withCredentials=!0);g="POST"==c;if(e=Cj(a,e))for(var p in e)l.setRequestHeader(p,e[p]),"content-type"==p.toLowerCase()&&(g=!1);g&&l.setRequestHeader("Content-Type","application/x-www-form-urlencoded");l.send(d);return l}
function Cj(a,b){b=b||{};for(var c in Dj){var d=Hf(Dj[c]),e;if(e=d){e=a;var g=void 0;g=window.location.href;var h=ze(e)[1]||null,k=vj(e);h&&k?(e=ze(e),g=ze(g),e=e[3]==g[3]&&e[1]==g[1]&&e[4]==g[4]):e=k?vj(g)==k&&(Number(ze(g)[4]||null)||null)==(Number(ze(e)[4]||null)||null):!0;e||(e=c,g=Hf("CORS_HEADER_WHITELIST")||{},e=(h=vj(a))?(g=g[h])?H(g,e):!1:!0)}e&&(b[c]=d)}return b}function Ej(a,b){var c=Hf("XSRF_TOKEN");b.method="POST";b.cb||(b.cb={});b.cb[Hf("XSRF_FIELD_NAME")]=c;Fj(a,b)}
function Gj(a,b){var c=Hf("XSRF_FIELD_NAME"),d;b.headers&&(d=b.headers["Content-Type"]);return!b.rH&&(!vj(a)||vj(a)==document.location.hostname)&&"POST"==b.method&&(!d||"application/x-www-form-urlencoded"==d)&&!(b.cb&&b.cb[c])}
function Fj(a,b){var c=b.format||"JSON";b.qH&&(a=document.location.protocol+"//"+document.location.hostname+(document.location.port?":"+document.location.port:"")+a);var d=Hf("XSRF_FIELD_NAME"),e=Hf("XSRF_TOKEN"),g=b.Be;g&&(g[d]&&delete g[d],a=xj(a,g));var h=b.lz||"",g=b.cb;Gj(a,b)&&(g||(g={}),g[d]=e);g&&w(h)&&(d=tj(h),bc(d,g),h=He(d));var k=!1,l,p=Bj(a,function(a){if(!k){k=!0;l&&O(l);var d=Aj(a),e=null;if(d||400<=a.status&&500>a.status)e=Hj(c,a);if(d)t:{switch(c){case "XML":d=0==parseInt(e&&e.return_code,
10);break t;case "RAW":d=!0;break t}d=!!e}var e=e||{},g=b.context||m;d?b.Qa&&b.Qa.call(g,a,e):b.onError&&b.onError.call(g,a,e);b.Lb&&b.Lb.call(g,a,e)}},b.method,h,b.headers,b.responseType,b.withCredentials);b.pe&&0<b.timeout&&(l=N(function(){k||(k=!0,p.abort(),O(l),b.pe.call(b.context||m,p))},b.timeout));return p}
function Hj(a,b){var c=null;switch(a){case "JSON":var d=b.responseText,e=b.getResponseHeader("Content-Type")||"";d&&0<=e.indexOf("json")&&(c=dg(d));break;case "XML":if(d=(d=b.responseXML)?Ij(d):null)c={},E(d.getElementsByTagName("*"),function(a){c[a.tagName]=Jj(a)})}return c}function Ij(a){return a?(a=("responseXML"in a?a.responseXML:a).getElementsByTagName("root"))&&0<a.length?a[0]:null:null}function Jj(a){var b="";E(a.childNodes,function(a){b+=a.nodeValue});return b}
var Kj={html5_ajax:"action_get_html5_token",watch_actions_ajax:"action_get_watch_actions_token",addto_ajax:"action_get_wl_token",playlist_video_ajax:"action_get_html5_wl_token"},Lj={html5_ajax:"html5_ajax_token",watch_actions_ajax:"watch_actions_ajax_token",addto_ajax:"addto_ajax_token",playlist_video_ajax:"playlist_video_ajax_token"};
function Mj(a,b,c,d){if(Hf("XSRF_TOKEN"))c&&window.setTimeout(c,0);else{var e=wj(document.location.href)+"/token_ajax",g={};a&&(g.authuser=a);b&&(g.pageid=b);g[Kj.watch_actions_ajax]=1;Fj(e,{format:"RAW",method:"GET",Be:g,Lb:function(a){var b=tj(a.responseText);b[Lj.watch_actions_ajax]?c&&c():d&&d(a,b)}})}}var Dj={"X-YouTube-Page-CL":"PAGE_CL","X-YouTube-Page-Timestamp":"PAGE_BUILD_TIMESTAMP","X-YouTube-Variants-Checksum":"VARIANTS_CHECKSUM"};function Nj(a){this.port=this.k="";this.g="/api/lounge";this.j=!0;a=a||document.location.href;var b=Number(ze(a)[4]||null)||null||"";b&&(this.port=":"+b);this.k=Be(a)||"";a=Nc;0<=a.search("MSIE")&&(a=a.match(/MSIE ([\d.]+)/)[1],0>Ra(a,"10.0")&&(this.j=!1))}function Oj(a,b,c,d){var e=a.g;if(n(d)?d:a.j)e="https://"+a.k+a.port+a.g;return Je(e+b,c||{})}
Nj.prototype.sendRequest=function(a,b,c,d,e,g,h){a={format:g?"RAW":"JSON",method:a,context:this,timeout:5E3,withCredentials:!!h,Qa:z(this.A,d,!g),onError:z(this.o,e),pe:z(this.B,e)};c&&(a.cb=c,a.headers={"Content-Type":"application/x-www-form-urlencoded"});return Fj(b,a)};Nj.prototype.A=function(a,b,c,d){b?a(d):a({text:c.responseText})};Nj.prototype.o=function(a,b){a(Error("Request error: "+b.status))};Nj.prototype.B=function(a){a(Error("request timed out"))};function Pj(a){a&&(this.id=a.id||"",this.name=a.name||"",this.activityId=a.activityId||"",this.status=a.status||"UNKNOWN")}Pj.prototype.id="";Pj.prototype.name="";Pj.prototype.activityId="";Pj.prototype.status="UNKNOWN";function Qj(a){return{id:a.id,name:a.name,activityId:a.activityId,status:a.status}}Pj.prototype.toString=function(){return"{id:"+this.id+",name:"+this.name+",activityId:"+this.activityId+",status:"+this.status+"}"};
function Rj(a){a=a||[];return"["+F(a,function(a){return a?a.toString():"null"}).join(",")+"]"};function Sj(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(a){var b=16*Math.random()|0;return("x"==a?b:b&3|8).toString(16)})}function Tj(a){return F(a,function(a){return{key:a.id,name:a.name}})}function Uj(a){return F(a,function(a){return Qj(a)})}function Vj(a){return F(a,function(a){return new Pj(a)})}function Wj(a,b){return a||b?a&&b?a.id==b.id&&a.name==b.name:!1:!0}function Xj(a,b){return G(a,function(a){return a.id==b})}
function Yj(a,b){return G(a,function(a){return pi(a,b)})}function Zj(a,b){return G(a,function(a){return oi(a,b)})};function U(){S.call(this);this.O=new Ai;T(this,this.O)}B(U,S);U.prototype.subscribe=function(a,b,c){return this.da()?0:this.O.subscribe(a,b,c)};U.prototype.unsubscribe=function(a,b,c){return this.da()?!1:this.O.unsubscribe(a,b,c)};U.prototype.Jb=function(a){return this.da()?!1:this.O.Jb(a)};U.prototype.publish=function(a,b){return this.da()?!1:this.O.publish.apply(this.O,arguments)};function ak(a){U.call(this);this.B=a;this.screens=[]}B(ak,U);f=ak.prototype;f.gc=function(){return this.screens};f.contains=function(a){return!!Yj(this.screens,a)};f.get=function(a){return a?Zj(this.screens,a):null};function bk(a,b){var c=a.get(b.uuid)||a.get(b.id);if(c){var d=c.name;c.id=b.id||c.id;c.name=b.name;c.token=b.token;c.uuid=b.uuid||c.uuid;return c.name!=d}a.screens.push(b);return!0}
function ck(a,b){var c=a.screens.length!=b.length;a.screens=eb(a.screens,function(a){return!!Yj(b,a)});for(var d=0,e=b.length;d<e;d++)c=bk(a,b[d])||c;return c}function dk(a,b){var c=a.screens.length;a.screens=eb(a.screens,function(a){return!pi(a,b)});return a.screens.length<c}f.info=function(a){ki(this.B,a)};f.warn=function(a){ki(this.B,a)};function ek(a,b,c,d){U.call(this);this.C=a;this.B=b;this.o=c;this.A=d;this.k=0;this.g=null;this.j=NaN}B(ek,U);var fk=[2E3,2E3,1E3,1E3,1E3,2E3,2E3,5E3,5E3,1E4];f=ek.prototype;f.start=function(){!this.g&&isNaN(this.j)&&this.Nr()};f.stop=function(){this.g&&(this.g.abort(),this.g=null);isNaN(this.j)||(O(this.j),this.j=NaN)};f.L=function(){this.stop();ek.H.L.call(this)};
f.Nr=function(){this.j=NaN;this.g=Fj(Oj(this.C,"/pairing/get_screen"),{method:"POST",cb:{pairing_code:this.B},timeout:5E3,Qa:y(this.RB,this),onError:y(this.QB,this),pe:y(this.SB,this)})};f.RB=function(a,b){this.g=null;var c=b.screen||{};c.dialId=this.o;c.name=this.A;this.publish("pairingComplete",new ni(c))};
f.QB=function(a){this.g=null;a.status&&404==a.status?this.k>=fk.length?this.publish("pairingFailed",Error("DIAL polling timed out")):(a=fk[this.k],this.j=N(y(this.Nr,this),a),this.k++):this.publish("pairingFailed",Error("Server error "+a.status))};f.SB=function(){this.g=null;this.publish("pairingFailed",Error("Server not responding"))};function gk(a,b){this.cg=a;this.Ne=b+"::"}B(gk,Oi);f=gk.prototype;f.cg=null;f.Ne="";f.set=function(a,b){this.cg.set(this.Ne+a,b)};f.get=function(a){return this.cg.get(this.Ne+a)};f.remove=function(a){this.cg.remove(this.Ne+a)};f.dc=function(a){var b=this.cg.dc(!0),c=this,d=new je;d.next=function(){for(var d=b.next();d.substr(0,c.Ne.length)!=c.Ne;)d=b.next();return a?d.substr(c.Ne.length):c.cg.get(d)};return d};function hk(a){var b=new Qi;return b.isAvailable()?a?new gk(b,a):b:null};function ik(a){this.g=new oe;if(a){a=ue(a);for(var b=a.length,c=0;c<b;c++)this.add(a[c])}}function jk(a){var b=typeof a;return"object"==b&&a||"function"==b?"o"+ma(a):b.substr(0,1)+a}f=ik.prototype;f.Ra=function(){return this.g.Ra()};f.add=function(a){this.g.set(jk(a),a)};f.removeAll=function(a){a=ue(a);for(var b=a.length,c=0;c<b;c++)this.remove(a[c])};f.remove=function(a){return this.g.remove(jk(a))};f.clear=function(){this.g.clear()};f.isEmpty=function(){return this.g.isEmpty()};
f.contains=function(a){return qe(this.g,jk(a))};f.La=function(){return this.g.La()};f.clone=function(){return new ik(this)};f.equals=function(a){return this.Ra()==te(a)&&kk(this,a)};function kk(a,b){var c=te(b);if(a.Ra()>c)return!1;!(b instanceof ik)&&5<c&&(b=new ik(b));return xe(a,function(a){var c=b;return"function"==typeof c.contains?c.contains(a):"function"==typeof c.ag?c.ag(a):ha(c)||w(c)?H(c,a):Nb(c,a)})}f.dc=function(){return this.g.dc(!1)};function lk(a){a&&(this.id=a.id||a.name,this.name=a.name,this.app=a.app,this.type=a.type||"REMOTE_CONTROL",this.su=a.user||"",this.avatar=a.userAvatarUri||"",this.theme=a.theme||"u",this.capabilities=new ik(eb((a.capabilities||"").split(","),z(Mb,pj))))}lk.prototype.id="";lk.prototype.name="";f=lk.prototype;f.app="";f.type="REMOTE_CONTROL";f.su="";f.avatar="";f.theme="u";f.equals=function(a){return a?this.id==a.id:!1};function mk(a){this.g=a}var nk=/\s*;\s*/;f=mk.prototype;f.set=function(a,b,c,d,e,g){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:"";g=g?";secure":"";c=0>c?"":0==c?";expires="+(new Date(1970,1,1)).toUTCString():";expires="+(new Date(A()+1E3*c)).toUTCString();this.g.cookie=a+"="+b+e+d+c+g};
f.get=function(a,b){for(var c=a+"=",d=(this.g.cookie||"").split(nk),e=0,g;g=d[e];e++){if(0==g.lastIndexOf(c,0))return g.substr(c.length);if(g==a)return""}return b};f.remove=function(a,b,c){var d=n(this.get(a));this.set(a,"",0,b,c);return d};f.Ka=function(){return ok(this).keys};f.La=function(){return ok(this).values};f.isEmpty=function(){return!this.g.cookie};f.Ra=function(){return this.g.cookie?(this.g.cookie||"").split(nk).length:0};
f.ag=function(a){for(var b=ok(this).values,c=0;c<b.length;c++)if(b[c]==a)return!0;return!1};f.clear=function(){for(var a=ok(this).keys,b=a.length-1;0<=b;b--)this.remove(a[b])};function ok(a){a=(a.g.cookie||"").split(nk);for(var b=[],c=[],d,e,g=0;e=a[g];g++)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 pk=new mk(document);pk.j=3950;function qk(a,b){pk.set(""+a,b,void 0,"/","youtube.com")};var rk;function sk(){var a=tk(),b=uk();H(a,b);vk()&&Eb(a,b);a=wk(a);if(lb(a))try{a="remote_sid",pk.remove(""+a,"/","youtube.com")}catch(c){}else try{qk("remote_sid",a.join(","))}catch(d){}}function tk(){var a=ej("yt-remote-connected-devices")||[];zb(a);return a}function wk(a){if(lb(a))return[];var b=a[0].indexOf("#"),c=-1==b?a[0]:a[0].substring(0,b);return F(a,function(a,b){return 0==b?a:a.substring(c.length)})}function xk(a){cj("yt-remote-connected-devices",a,86400)}
function uk(){if(yk)return yk;var a=ej("yt-remote-device-id");a||(a=Sj(),cj("yt-remote-device-id",a,31536E3));for(var b=tk(),c=1,d=a;H(b,d);)c++,d=a+"#"+c;return yk=d}function zk(){return ej("yt-remote-session-browser-channel")}function vk(){return ej("yt-remote-session-screen-id")}
function Ak(a){5<a.length&&(a=a.slice(a.length-5));var b=F(Bk(),function(a){return a.loungeToken}),c=F(a,function(a){return a.loungeToken});hb(c,function(a){return!H(b,a)})&&Ck();cj("yt-remote-local-screens",a,31536E3)}function Bk(){return ej("yt-remote-local-screens")||[]}function Ck(){cj("yt-remote-lounge-token-expiration",!0,86400)}function Dk(){return!ej("yt-remote-lounge-token-expiration")}function Ek(a){cj("yt-remote-online-screens",a,60)}
function Fk(){return ej("yt-remote-online-screens")||[]}function Gk(a){cj("yt-remote-online-dial-devices",a,30)}function Hk(){return ej("yt-remote-online-dial-devices")||[]}function Ik(a,b){cj("yt-remote-session-browser-channel",a);cj("yt-remote-session-screen-id",b);var c=tk(),d=uk();H(c,d)||c.push(d);xk(c);sk()}function Jk(a){a||(fj("yt-remote-session-screen-id"),fj("yt-remote-session-video-id"));sk();a=tk();ob(a,uk());xk(a)}
function Kk(){if(!rk){var a=hk();a&&(rk=new Si(a))}return rk?!!rk.get("yt-remote-use-staging-server"):!1}var yk="";function Lk(a){ak.call(this,"LocalScreenService");this.j=a;this.g=NaN;Mk(this);this.info("Initializing with "+vi(this.screens))}B(Lk,ak);f=Lk.prototype;f.start=function(){Mk(this)&&this.publish("screenChange");Dk()&&Nk(this);O(this.g);this.g=N(y(this.start,this),1E4)};f.add=function(a,b){Mk(this);bk(this,a);Ok(this,!1);this.publish("screenChange");b(a);a.token||Nk(this)};f.remove=function(a,b){var c=Mk(this);dk(this,a)&&(Ok(this,!1),c=!0);b(a);c&&this.publish("screenChange")};
f.Yj=function(a,b,c,d){var e=Mk(this),g=this.get(a.id);g?(g.name!=b&&(g.name=b,Ok(this,!1),e=!0),c(a)):d(Error("no such local screen."));e&&this.publish("screenChange")};f.L=function(){O(this.g);Lk.H.L.call(this)};function Nk(a){if(a.screens.length){var b=F(a.screens,function(a){return a.id}),c=Oj(a.j,"/pairing/get_lounge_token_batch");a.j.sendRequest("POST",c,{screen_ids:b.join(",")},y(a.ZE,a),y(a.YE,a))}}
f.ZE=function(a){Mk(this);var b=this.screens.length;a=a&&a.screens||[];for(var c=0,d=a.length;c<d;++c){var e=a[c],g=this.get(e.screenId);g&&(g.token=e.loungeToken,--b)}Ok(this,!b);b&&this.warn("Missed "+b+" lounge tokens.")};f.YE=function(a){this.warn("Requesting lounge tokens failed: "+a)};function Mk(a){var b=ti(Bk()),b=eb(b,function(a){return!a.uuid});return ck(a,b)}function Ok(a,b){Ak(F(a.screens,ri));b&&Ck()};function Pk(a,b){U.call(this);this.A=b;this.g=Qk(this);this.B=a;this.k=this.o=NaN;this.j=null;this.C=y(this.yy,this);Rk("Initialized with "+eg(this.g))}B(Pk,U);f=Pk.prototype;f.start=function(){var a=parseInt(ej("yt-remote-fast-check-period")||"0",10);(this.o=A()-144E5<a?0:a)?Sk(this,!1):(this.o=A()+3E5,cj("yt-remote-fast-check-period",this.o),this.mn());R(window,"storage",this.C)};f.isEmpty=function(){return Ub(this.g)};
f.update=function(){Rk("Updating availability on schedule.");var a=this.A(),b=Ib(this.g,function(b,d){return b&&!!Zj(a,d)},this);Tk(this,b)};function Uk(a,b,c){var d=Oj(a.B,"/pairing/get_screen_availability");a.B.sendRequest("POST",d,{lounge_token:b.token},y(function(a){a=a.screens||[];for(var d=0,h=a.length;d<h;++d)if(a[d].loungeToken==b.token){c("online"==a[d].status);return}c(!1)},a),y(function(){c(!1)},a))}
f.L=function(){O(this.k);this.k=NaN;this.j&&(this.j.abort(),this.j=null);var a=Ah(window,"storage",this.C,!1);a&&Ch(a);Pk.H.L.call(this)};function Tk(a,b){var c;t:if(Lb(b)!=Lb(a.g))c=!1;else{c=Pb(b);for(var d=0,e=c.length;d<e;++d)if(!a.g[c[d]]){c=!1;break t}c=!0}c||(Rk("Updated online screens: "+eg(a.g)),a.g=b,a.publish("screenChange"));Vk(a)}function Sk(a,b){isNaN(a.k)||O(a.k);var c=y(a.mn,a),d;d=0;b&&(d=2E3+8E3*Math.random());d=0<a.o&&a.o<A()?2E4+d:1E4+d;a.k=N(c,d)}
f.mn=function(){O(this.k);this.k=NaN;this.j&&this.j.abort();var a=Wk(this);if(Lb(a)){var b=Oj(this.B,"/pairing/get_screen_availability"),c={lounge_token:Pb(a).join(",")};this.j=this.B.sendRequest("POST",b,c,y(this.bE,this,a),y(this.aE,this))}else Tk(this,{}),Sk(this,!1)};
f.bE=function(a,b){this.j=null;var c=Pb(Wk(this));if(Cb(c,Pb(a))){for(var c=b.screens||[],d={},e=0,g=c.length;e<g;++e)d[a[c[e].loungeToken]]="online"==c[e].status;Tk(this,d);Sk(this,!1)}else this.Ma("Changing Screen set during request."),this.mn()};f.aE=function(a){this.Ma("Screen availability failed: "+a);this.j=null;Sk(this,!1)};f.yy=function(a){"yt-remote-online-screen-ids"==a.key&&(this.g=Qk(this),Sk(this,!0))};function Rk(a){ki("OnlineScreenService",a)}
f.Ma=function(a){ki("OnlineScreenService",a)};function Wk(a){var b={};E(a.A(),function(a){a.token?b[a.token]=a.id:this.Ma("Requesting availability of screen w/o lounge token.")});return b}function Qk(a){var b=ej("yt-remote-online-screen-ids")||"",b=b?b.split(","):[],c={};a=a.A();for(var d=0,e=a.length;d<e;++d){var g=a[d].id;c[g]=H(b,g)}return c}
function Vk(a){var b=Pb(Ib(a.g,function(a){return a}));zb(b);b.length?cj("yt-remote-online-screen-ids",b.join(","),60):fj("yt-remote-online-screen-ids");a=eb(a.A(),function(a){return!!this.g[a.id]},a);Ek(F(a,ri))};function Xk(a){ak.call(this,"ScreenService");this.A=a;this.g=this.j=null;this.k=[];this.o={};Yk(this)}B(Xk,ak);f=Xk.prototype;f.start=function(){this.j.start();this.g.start();this.screens.length&&(this.publish("screenChange"),this.g.isEmpty()||this.publish("onlineScreenChange"))};f.add=function(a,b,c){this.j.add(a,b,c)};f.remove=function(a,b,c){this.j.remove(a,b,c);this.g.update()};
f.Yj=function(a,b,c,d){this.j.contains(a)?this.j.Yj(a,b,c,d):(a="Updating name of unknown screen: "+a.name,this.warn(a),d(Error(a)))};f.gc=function(a){return a?this.screens:rb(this.screens,eb(this.k,function(a){return!this.contains(a)},this))};f.Rs=function(){return eb(this.gc(!0),function(a){return!!this.g.g[a.id]},this)};
function Zk(a,b,c,d,e,g){a.info("getAutomaticScreenByIds "+c+" / "+b);c||(c=a.o[b]);var h=a.gc();if(h=(c?Zj(h,c):null)||Zj(h,b)){h.uuid=b;var k=$k(a,h);Uk(a.g,k,function(a){e(a?k:null)})}else c?al(a,c,y(function(a){var g=$k(this,new ni({name:d,screenId:c,loungeToken:a,dialId:b||""}));Uk(this.g,g,function(a){e(a?g:null)})},a),g):e(null)}
f.ms=function(a,b,c,d,e){this.info("getDialScreenByPairingCode "+a+" / "+b);var g=new ek(this.A,a,b,c);g.subscribe("pairingComplete",y(function(a){xi(g);d($k(this,a))},this));g.subscribe("pairingFailed",function(a){xi(g);e(a)});g.start();return y(g.stop,g)};function bl(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}f.ju=function(a,b){for(var c=2,d=b(a,c);bl(this,d);){c++;if(20<c)return a;d=b(a,c)}return d};
f.cH=function(a,b,c,d){Fj(Oj(this.A,"/pairing/get_screen"),{method:"POST",cb:{pairing_code:a},timeout:5E3,Qa:y(function(a,d){var h=new ni(d.screen||{});if(!h.name||bl(this,h.name))h.name=this.ju(h.name,b);c($k(this,h))},this),onError:y(function(a){d(Error("pairing request failed: "+a.status))},this),pe:y(function(){d(Error("pairing request timed out."))},this)})};f.L=function(){xi(this.j);xi(this.g);Xk.H.L.call(this)};
function al(a,b,c,d){a.info("requestLoungeToken_ for "+b);var e={cb:{screen_ids:b},method:"POST",context:a,Qa:function(a,e){var k=e&&e.screens||[];k[0]&&k[0].screenId==b?c(k[0].loungeToken):d(Error("Missing lounge token in token response"))},onError:function(){d(Error("Request screen lounge token failed"))}};Fj(Oj(a.A,"/pairing/get_lounge_token_batch"),e)}
function cl(a){a.screens=a.j.gc();var b=a.o,c={},d;for(d in b)c[b[d]]=d;b=0;for(d=a.screens.length;b<d;++b){var e=a.screens[b];e.uuid=c[e.id]||""}a.info("Updated manual screens: "+vi(a.screens))}f.sA=function(){cl(this);this.publish("screenChange");this.g.update()};
function Yk(a){dl(a);a.j=new Lk(a.A);a.j.subscribe("screenChange",y(a.sA,a));cl(a);a.k=ti(ej("yt-remote-automatic-screen-cache")||[]);dl(a);a.info("Initializing automatic screens: "+vi(a.k));a.g=new Pk(a.A,y(a.gc,a,!0));a.g.subscribe("screenChange",y(function(){this.publish("onlineScreenChange")},a))}
function $k(a,b){var c=a.get(b.id);c?(c.uuid=b.uuid,b=c):((c=Zj(a.k,b.uuid))?(c.id=b.id,c.token=b.token,b=c):a.k.push(b),cj("yt-remote-automatic-screen-cache",F(a.k,ri)));dl(a);a.o[b.uuid]=b.id;cj("yt-remote-device-id-map",a.o,31536E3);return b}function dl(a){a.o=ej("yt-remote-device-id-map")||{}}Xk.prototype.dispose=Xk.prototype.dispose;function el(a,b,c){U.call(this);this.J=c;this.F=a;this.j=b;this.k=null}B(el,U);function fl(a,b){a.k=b;a.publish("sessionScreen",a.k)}f=el.prototype;f.Qb=function(a){this.da()||(a&&this.warn(""+a),this.k=null,this.publish("sessionScreen",null))};f.info=function(a){ki(this.J,a)};f.warn=function(a){ki(this.J,a)};f.Dt=function(){return null};
f.zm=function(a){var b=this.j;a?(b.displayStatus=new chrome.cast.ReceiverDisplayStatus(a,[]),b.displayStatus.showStop=!0):b.displayStatus=null;chrome.cast.setReceiverDisplayStatus(b,y(function(){this.info("Updated receiver status for "+b.friendlyName+": "+a)},this),y(function(){this.warn("Failed to update receiver status for: "+b.friendlyName)},this))};f.L=function(){this.zm("");el.H.L.call(this)};function gl(a,b){el.call(this,a,b,"CastSession");this.g=null;this.A=0;this.o=null;this.C=y(this.pC,this);this.B=y(this.oC,this);this.A=N(y(function(){hl(this,null)},this),12E4)}B(gl,el);f=gl.prototype;
f.Tm=function(a){if(this.g){if(this.g==a)return;this.warn("Overriding cast sesison with new session object");this.g.removeUpdateListener(this.C);this.g.removeMessageListener("urn:x-cast:com.google.youtube.mdx",this.B)}this.g=a;this.g.addUpdateListener(this.C);this.g.addMessageListener("urn:x-cast:com.google.youtube.mdx",this.B);this.o&&il(this);jl(this,"getMdxSessionStatus")};f.Lf=function(a){this.info("launchWithParams: "+eg(a));this.o=a;this.g&&il(this)};
f.stop=function(){this.g?this.g.stop(y(function(){this.Qb()},this),y(function(){this.Qb(Error("Failed to stop receiver app."))},this)):this.Qb(Error("Stopping cast device witout session."))};f.zm=u;f.L=function(){this.info("disposeInternal");O(this.A);this.A=0;this.g&&(this.g.removeUpdateListener(this.C),this.g.removeMessageListener("urn:x-cast:com.google.youtube.mdx",this.B));this.g=null;gl.H.L.call(this)};
function il(a){var b=a.o.videoId||a.o.videoIds[a.o.index];b&&jl(a,"flingVideo",{videoId:b,currentTime:a.o.currentTime||0});a.o=null}function jl(a,b,c){a.info("sendYoutubeMessage_: "+b+" "+eg(c));var d={};d.type=b;c&&(d.data=c);a.g?a.g.sendMessage("urn:x-cast:com.google.youtube.mdx",d,u,y(function(){this.warn("Failed to send message: "+b+".")},a)):a.warn("Sending yt message without session: "+eg(d))}
f.oC=function(a,b){if(!this.da())if(b){var c=dg(b);if(c){var d=""+c.type,c=c.data||{};this.info("onYoutubeMessage_: "+d+" "+eg(c));switch(d){case "mdxSessionStatus":hl(this,c.screenId);break;default:this.warn("Unknown youtube message: "+d)}}else this.warn("Unable to parse message.")}else this.warn("No data in message.")};
function hl(a,b){O(a.A);b?(a.info("onConnectedScreenId_: Received screenId: "+b),a.k&&a.k.id==b||Zk(a.F,a.j.label,b,a.j.friendlyName,y(function(a){a?fl(this,a):this.Qb(Error("Unable to fetch screen."))},a),y(a.Qb,a))):a.Qb(Error("Waiting for session status timed out."))}f.Dt=function(){return this.g};f.pC=function(a){this.da()||a||(this.warn("Cast session died."),this.Qb())};function kl(a,b){el.call(this,a,b,"DialSession");this.A=this.D=null;this.G="";this.o=null;this.C=u;this.B=NaN;this.I=y(this.DA,this);this.g=u}B(kl,el);f=kl.prototype;f.Tm=function(a){this.A=a;this.A.addUpdateListener(this.I)};f.Lf=function(a){this.o=a;this.C()};f.stop=function(){this.g();this.g=u;O(this.B);this.A?this.A.stop(y(this.Qb,this,null),y(this.Qb,this,"Failed to stop DIAL device.")):this.Qb()};
f.L=function(){this.g();this.g=u;O(this.B);this.A&&this.A.removeUpdateListener(this.I);this.A=null;kl.H.L.call(this)};function ll(a){a.g=a.F.ms(a.G,a.j.label,a.j.friendlyName,y(function(a){this.g=u;fl(this,a)},a),y(function(a){this.g=u;this.Qb(a)},a))}f.DA=function(a){this.da()||a||(this.warn("DIAL session died."),this.g(),this.g=u,this.Qb())};
function ml(a){var b={};b.pairingCode=a.G;if(a.o){var c=a.o.index||0,d=a.o.currentTime||0;b.v=a.o.videoId||a.o.videoIds[c];b.t=d}Kk()&&(b.env_useStageMdx=1);return He(b)}f.wm=function(a){this.G=Sj();if(this.o){var b=new chrome.cast.DialLaunchResponse(!0,ml(this));a(b);ll(this)}else this.C=y(function(){O(this.B);this.C=u;this.B=NaN;var b=new chrome.cast.DialLaunchResponse(!0,ml(this));a(b);ll(this)},this),this.B=N(y(function(){this.C()},this),100)};
f.AA=function(a,b){Zk(this.F,this.D.receiver.label,a,this.j.friendlyName,y(function(a){a&&a.token?(fl(this,a),b(new chrome.cast.DialLaunchResponse(!1))):this.wm(b)},this),y(function(a){this.warn("Failed to get DIAL screen: "+a);this.wm(b)},this))};function nl(a,b){el.call(this,a,b,"ManualSession");this.g=N(y(this.Lf,this,null),150)}B(nl,el);nl.prototype.stop=function(){this.Qb()};nl.prototype.Tm=u;nl.prototype.Lf=function(){O(this.g);this.g=NaN;var a=Zj(this.F.gc(),this.j.label);a?fl(this,a):this.Qb(Error("No such screen"))};nl.prototype.L=function(){O(this.g);this.g=NaN;nl.H.L.call(this)};function ol(a){U.call(this);this.j=a;this.g=null;this.A=!1;this.k=[];this.o=y(this.mz,this)}B(ol,U);f=ol.prototype;
f.init=function(a,b){chrome.cast.timeout.requestSession=3E4;var c=new chrome.cast.SessionRequest("233637DE");c.dialRequest=new chrome.cast.DialRequest("YouTube");var d=chrome.cast.AutoJoinPolicy.TAB_AND_ORIGIN_SCOPED,e=a?chrome.cast.DefaultActionPolicy.CAST_THIS_TAB:chrome.cast.DefaultActionPolicy.CREATE_SESSION,c=new chrome.cast.ApiConfig(c,y(this.ct,this),y(this.PD,this),d,e);c.customDialLaunchCallback=y(this.OD,this);chrome.cast.initialize(c,y(function(){this.da()||(chrome.cast.addReceiverActionListener(this.o),
gi(pl),this.j.subscribe("onlineScreenChange",y(this.Fq,this)),this.k=ql(this),chrome.cast.setCustomReceivers(this.k,u,y(function(a){this.Ma("Failed to set initial custom receivers: "+eg(a))},this)),this.publish("yt-remote-cast2-availability-change",rl(this)),b(!0))},this),function(a){this.Ma("Failed to initialize API: "+eg(a));b(!1)})};
f.aH=function(a,b){sl("Setting connected screen ID: "+a+" -> "+b);if(this.g){var c=this.g.k;if(!a||c&&c.id!=a)sl("Unsetting old screen status: "+this.g.j.friendlyName),xi(this.g),this.g=null}if(a&&b){if(!this.g){c=Zj(this.j.gc(),a);if(!c){sl("setConnectedScreenStatus: Unknown screen.");return}var d=tl(this,c);d||(sl("setConnectedScreenStatus: Connected receiver not custom..."),d=new chrome.cast.Receiver(c.uuid?c.uuid:c.id,c.name),d.receiverType=chrome.cast.ReceiverType.CUSTOM,this.k.push(d),chrome.cast.setCustomReceivers(this.k,
u,y(function(a){this.Ma("Failed to set initial custom receivers: "+eg(a))},this)));sl("setConnectedScreenStatus: new active receiver: "+d.friendlyName);ul(this,new nl(this.j,d),!0)}this.g.zm(b)}else sl("setConnectedScreenStatus: no screen.")};function tl(a,b){return b?G(a.k,function(a){return oi(b,a.label)},a):null}f.bH=function(a){this.da()?this.Ma("Setting connection data on disposed cast v2"):this.g?this.g.Lf(a):this.Ma("Setting connection data without a session")};
f.stopSession=function(){this.da()?this.Ma("Stopping session on disposed cast v2"):this.g?(this.g.stop(),xi(this.g),this.g=null):sl("Stopping non-existing session")};f.requestSession=function(){chrome.cast.requestSession(y(this.ct,this),y(this.xG,this))};f.L=function(){this.j.unsubscribe("onlineScreenChange",y(this.Fq,this));window.chrome&&chrome.cast&&chrome.cast.removeReceiverActionListener(this.o);ji(pl);xi(this.g);ol.H.L.call(this)};function sl(a){ki("Controller",a)}
f.Ma=function(a){ki("Controller",a)};function pl(a){window.chrome&&chrome.cast&&chrome.cast.logMessage&&chrome.cast.logMessage(a)}function rl(a){return a.A||!!a.k.length||!!a.g}function ul(a,b,c){xi(a.g);(a.g=b)?(c?a.publish("yt-remote-cast2-receiver-resumed",b.j):a.publish("yt-remote-cast2-receiver-selected",b.j),b.subscribe("sessionScreen",y(a.Hr,a,b)),b.k?a.publish("yt-remote-cast2-session-change",b.k):c&&a.g.Lf(null)):a.publish("yt-remote-cast2-session-change",null)}
f.Hr=function(a,b){this.g==a&&(b||ul(this,null),this.publish("yt-remote-cast2-session-change",b))};
f.mz=function(a,b){if(!this.da())if(a)switch(sl("onReceiverAction_ "+a.label+" / "+a.friendlyName+"-- "+b),b){case chrome.cast.ReceiverAction.CAST:if(this.g)if(this.g.j.label!=a.label)sl("onReceiverAction_: Stopping active receiver: "+this.g.j.friendlyName),this.g.stop();else{sl("onReceiverAction_: Casting to active receiver.");this.g.k&&this.publish("yt-remote-cast2-session-change",this.g.k);break}switch(a.receiverType){case chrome.cast.ReceiverType.CUSTOM:ul(this,new nl(this.j,a));break;case chrome.cast.ReceiverType.DIAL:ul(this,
new kl(this.j,a));break;case chrome.cast.ReceiverType.CAST:ul(this,new gl(this.j,a));break;default:this.Ma("Unknown receiver type: "+a.receiverType);return}break;case chrome.cast.ReceiverAction.STOP:this.g&&this.g.j.label==a.label?this.g.stop():this.Ma("Stopping receiver w/o session: "+a.friendlyName)}else this.Ma("onReceiverAction_ called without receiver.")};
f.OD=function(a){if(this.da())return Promise.reject(Error("disposed"));var b=a.receiver;b.receiverType!=chrome.cast.ReceiverType.DIAL&&(this.Ma("Not DIAL receiver: "+b.friendlyName),b.receiverType=chrome.cast.ReceiverType.DIAL);var c=this.g?this.g.j:null;if(!c||c.label!=b.label)return this.Ma("Receiving DIAL launch request for non-clicked DIAL receiver: "+b.friendlyName),Promise.reject(Error("illegal DIAL launch"));if(c&&c.label==b.label&&c.receiverType!=chrome.cast.ReceiverType.DIAL){if(this.g.k)return sl("Reselecting dial screen."),
this.publish("yt-remote-cast2-session-change",this.g.k),Promise.resolve(new chrome.cast.DialLaunchResponse(!1));this.Ma('Changing CAST intent from "'+c.receiverType+'" to "dial" for '+b.friendlyName);ul(this,new kl(this.j,b))}b=this.g;b.D=a;return b.D.appState==chrome.cast.DialAppState.RUNNING?new Promise(y(b.AA,b,(b.D.extraData||{}).screenId||null)):new Promise(y(b.wm,b))};
f.ct=function(a){if(!this.da()){sl("New cast session ID: "+a.sessionId);var b=a.receiver;if(b.receiverType!=chrome.cast.ReceiverType.CUSTOM){if(!this.g)if(b.receiverType==chrome.cast.ReceiverType.CAST)sl("Got resumed cast session before resumed mdx connection."),ul(this,new gl(this.j,b),!0);else{this.Ma("Got non-cast session without previous mdx receiver event, or mdx resume.");return}var c=this.g.j,d=Zj(this.j.gc(),c.label);d&&oi(d,b.label)&&c.receiverType!=chrome.cast.ReceiverType.CAST&&b.receiverType==
chrome.cast.ReceiverType.CAST&&(sl("onSessionEstablished_: manual to cast session change "+b.friendlyName),xi(this.g),this.g=new gl(this.j,b),this.g.subscribe("sessionScreen",y(this.Hr,this,this.g)),this.g.Lf(null));this.g.Tm(a)}}};f.dH=function(){return this.g?this.g.Dt():null};f.xG=function(a){this.da()||(this.Ma("Failed to estabilish a session: "+eg(a)),a.code!=chrome.cast.ErrorCode.CANCEL&&ul(this,null))};
f.PD=function(a){sl("Receiver availability updated: "+a);if(!this.da()){var b=rl(this);this.A=a==chrome.cast.ReceiverAvailability.AVAILABLE;rl(this)!=b&&this.publish("yt-remote-cast2-availability-change",rl(this))}};
function ql(a){var b=a.j.Rs(),c=a.g&&a.g.j;a=F(b,function(a){c&&oi(a,c.label)&&(c=null);var b=a.uuid?a.uuid:a.id,g=tl(this,a);g?(g.label=b,g.friendlyName=a.name):(g=new chrome.cast.Receiver(b,a.name),g.receiverType=chrome.cast.ReceiverType.CUSTOM);return g},a);c&&(c.receiverType!=chrome.cast.ReceiverType.CUSTOM&&(c=new chrome.cast.Receiver(c.label,c.friendlyName),c.receiverType=chrome.cast.ReceiverType.CUSTOM),a.push(c));return a}
f.Fq=function(){if(!this.da()){var a=rl(this);this.k=ql(this);sl("Updating custom receivers: "+eg(this.k));chrome.cast.setCustomReceivers(this.k,u,y(function(){this.Ma("Failed to set custom receivers.")},this));var b=rl(this);b!=a&&this.publish("yt-remote-cast2-availability-change",b)}};ol.prototype.setLaunchParams=ol.prototype.bH;ol.prototype.setConnectedScreenStatus=ol.prototype.aH;ol.prototype.stopSession=ol.prototype.stopSession;ol.prototype.getCastSession=ol.prototype.dH;
ol.prototype.requestSession=ol.prototype.requestSession;ol.prototype.init=ol.prototype.init;ol.prototype.dispose=ol.prototype.dispose;function vl(a,b,c){$h?xl(b)&&(yl(!0),window.chrome&&chrome.cast&&chrome.cast.isAvailable?zl(a,c):mj(function(b,e){b?zl(a,c):(Al("Failed to load cast API: "+e),Bl(!1),yl(!1),fj("yt-remote-cast-available"),fj("yt-remote-cast-receiver"),Cl(),c(!1))})):wl("Cannot initialize because not running Chrome")}function Cl(){wl("dispose");oj();var a=Dl();a&&a.dispose();El=null;q("yt.mdx.remote.cloudview.instance_",null,void 0);Fl(!1);Ii(Gl);Gl.length=0}function Hl(){return!!ej("yt-remote-cast-installed")}
function Il(){var a=ej("yt-remote-cast-receiver");return a?a.friendlyName:null}function Jl(){return Hl()?Dl()?El.getCastSession():(Al("getCastSelector: Cast is not initialized."),null):(Al("getCastSelector: Cast API is not installed!"),null)}
function Kl(){Hl()?Dl()?Ll()?(wl("Requesting cast selector."),El.requestSession()):(wl("Wait for cast API to be ready to request the session."),Gl.push(Gi("yt-remote-cast2-api-ready",Kl))):Al("requestCastSelector: Cast is not initialized."):Al("requestCastSelector: Cast API is not installed!")}function Ml(a){Ll()?Dl().setLaunchParams(a):Al("setLaunchParams called before ready.")}
function Nl(){var a=Ol();Ll()?Dl().setConnectedScreenStatus(a,"YouTube TV"):Al("setConnectedScreenStatus called before ready.")}var El=null;function Pl(a,b){El.init(a,b)}
function xl(a){var b=!1;if(!El){var c=t("yt.mdx.remote.cloudview.instance_");c||(c=new ol(a),c.subscribe("yt-remote-cast2-availability-change",function(a){cj("yt-remote-cast-available",a);Ji("yt-remote-cast2-availability-change",a)}),c.subscribe("yt-remote-cast2-receiver-selected",function(a){wl("onReceiverSelected: "+a.friendlyName);cj("yt-remote-cast-receiver",a);Ji("yt-remote-cast2-receiver-selected",a)}),c.subscribe("yt-remote-cast2-receiver-resumed",function(a){wl("onReceiverResumed: "+a.friendlyName);
cj("yt-remote-cast-receiver",a)}),c.subscribe("yt-remote-cast2-session-change",function(a){wl("onSessionChange: "+ui(a));a||fj("yt-remote-cast-receiver");Ji("yt-remote-cast2-session-change",a)}),q("yt.mdx.remote.cloudview.instance_",c,void 0),b=!0);El=c}wl("cloudview.createSingleton_: "+b);return b}function Dl(){El||(El=t("yt.mdx.remote.cloudview.instance_"));return El}
function zl(a,b){Bl(!0);yl(!1);Pl(a,function(a){a?(Fl(!0),Ji("yt-remote-cast2-api-ready")):(Al("Failed to initialize cast API."),Bl(!1),fj("yt-remote-cast-available"),fj("yt-remote-cast-receiver"),Cl());b(a)})}function wl(a){ki("cloudview",a)}function Al(a){ki("cloudview",a)}function Bl(a){wl("setCastInstalled_ "+a);cj("yt-remote-cast-installed",a)}function Ll(){return!!t("yt.mdx.remote.cloudview.apiReady_")}function Fl(a){wl("setApiReady_ "+a);q("yt.mdx.remote.cloudview.apiReady_",a,void 0)}
function yl(a){q("yt.mdx.remote.cloudview.initializing_",a,void 0)}var Gl=[];function Ql(a,b){this.action=a;this.params=b||null};function Rl(){if(!("cast"in window))return!1;var a=window.cast||{};return"ActivityStatus"in a&&"Api"in a&&"LaunchRequest"in a&&"Receiver"in a}function Sl(a){ki("CAST",a)}function Tl(a){var b=Ul();b&&b.logMessage&&b.logMessage(a)}function Vl(a){if(a.source==window&&a.data&&"CastApi"==a.data.source&&"Hello"==a.data.event)for(;Wl.length;)Wl.shift()()}
function Xl(){if(!t("yt.mdx.remote.castv2_")&&!Yl&&(lb(Zl)&&tb(Zl,Hk()),Rl())){var a=Ul();a?(a.removeReceiverListener("YouTube",$l),a.addReceiverListener("YouTube",$l),Sl("API initialized in the other binary")):(a=new cast.Api,am(a),a.addReceiverListener("YouTube",$l),a.setReloadTabRequestHandler&&a.setReloadTabRequestHandler(function(){N(function(){window.location.reload(!0)},1E3)}),gi(Tl),Sl("API initialized"));Yl=!0}}
function bm(){var a=Ul();a&&(Sl("API disposed"),ji(Tl),a.setReloadTabRequestHandler&&a.setReloadTabRequestHandler(u),a.removeReceiverListener("YouTube",$l),am(null));Yl=!1;Wl=null;(a=Ah(window,"message",Vl,!1))&&Ch(a)}function cm(a){var b=ib(Zl,function(b){return b.id==a.id});0<=b&&(Zl[b]=Qj(a))}
function $l(a){a.length&&Sl("Updating receivers: "+eg(a));dm(a);Ji("yt-remote-cast-device-list-update");E(em(),function(a){fm(a.id)});E(a,function(a){if(a.isTabProjected){var c=gm(a.id);Sl("Detected device: "+c.id+" is tab projected. Firing DEVICE_TAB_PROJECTED event.");N(function(){Ji("yt-remote-cast-device-tab-projected",c.id)},1E3)}})}
function hm(a,b){Sl("Updating "+a+" activity status: "+eg(b));var c=gm(a);c?(b.activityId&&(c.activityId=b.activityId),c.status="running"==b.status?"RUNNING":"stopped"==b.status?"STOPPED":"error"==b.status?"ERROR":"UNKNOWN","RUNNING"!=c.status&&(c.activityId=""),cm(c),Ji("yt-remote-cast-device-status-update",c)):Sl("Device not found")}function em(){Xl();return Vj(Zl)}
function dm(a){a=F(a,function(a){var c={id:a.id,name:Ha(a.name)};if(a=gm(a.id))c.activityId=a.activityId,c.status=a.status;return c});mb(Zl);tb(Zl,a)}function gm(a){var b=em();return G(b,function(b){return b.id==a})||null}function fm(a){var b=gm(a),c=Ul();c&&b&&b.activityId&&c.getActivityStatus(b.activityId,function(b){"error"==b.status&&(b.status="stopped");hm(a,b)})}
function im(a){Xl();var b=gm(a),c=Ul();c&&b&&b.activityId?(Sl("Stopping cast activity"),c.stopActivity(b.activityId,z(hm,a))):Sl("Dropping cast activity stop")}function Ul(){return t("yt.mdx.remote.castapi.api_")}function am(a){q("yt.mdx.remote.castapi.api_",a,void 0)}var Yl=!1,Wl=null,Zl=t("yt.mdx.remote.castapi.devices_")||[];q("yt.mdx.remote.castapi.devices_",Zl,void 0);function jm(){};function km(){this.g=A()}new km;km.prototype.set=function(a){this.g=a};km.prototype.get=function(){return this.g};function lm(a,b){this.type=a;this.currentTarget=this.target=b;this.defaultPrevented=this.j=!1;this.Ks=!0}lm.prototype.L=function(){};lm.prototype.dispose=function(){};lm.prototype.stopPropagation=function(){this.j=!0};lm.prototype.preventDefault=function(){this.defaultPrevented=!0;this.Ks=!1};function mm(a){a.stopPropagation()};var nm=!Sc||hd(9),om=Sc&&!gd("9");!Uc||gd("528");Tc&&gd("1.9b")||Sc&&gd("8")||Rc&&gd("9.5")||Uc&&gd("528");Tc&&!gd("8")||Sc&&gd("9");var pm="ontouchstart"in m||!!(m.document&&document.documentElement&&"ontouchstart"in document.documentElement)||!(!m.navigator||!m.navigator.msMaxTouchPoints);function qm(a,b){lm.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=this.yn=this.xn=0;this.metaKey=this.shiftKey=this.altKey=this.ctrlKey=!1;this.g=this.state=null;a&&this.init(a,b)}B(qm,lm);f=qm.prototype;
f.init=function(a,b){this.g=a;var c=this.type=a.type;this.target=a.target||a.srcElement;this.currentTarget=b;var d=a.relatedTarget;d?Tc&&(rg(d,"nodeName")||(d=null)):"mouseover"==c?d=a.fromElement:"mouseout"==c&&(d=a.toElement);this.relatedTarget=d;Object.defineProperties?Object.defineProperties(this,{xn:{configurable:!0,enumerable:!0,get:this.lt,set:this.pE},yn:{configurable:!0,enumerable:!0,get:this.qt,set:this.qE}}):(this.xn=this.lt(),this.yn=this.qt());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.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;a.defaultPrevented&&this.preventDefault()};f.stopPropagation=function(){qm.H.stopPropagation.call(this);this.g.stopPropagation?this.g.stopPropagation():this.g.cancelBubble=!0};
f.preventDefault=function(){qm.H.preventDefault.call(this);var a=this.g;if(a.preventDefault)a.preventDefault();else if(a.returnValue=!1,om)try{if(a.ctrlKey||112<=a.keyCode&&123>=a.keyCode)a.keyCode=-1}catch(b){}};f.FE=function(){return this.g};f.L=function(){};f.lt=function(){return Uc||void 0!==this.g.offsetX?this.g.offsetX:this.g.layerX};f.pE=function(a){Object.defineProperties(this,{xn:{writable:!0,enumerable:!0,configurable:!0,value:a}})};
f.qt=function(){return Uc||void 0!==this.g.offsetY?this.g.offsetY:this.g.layerY};f.qE=function(a){Object.defineProperties(this,{yn:{writable:!0,enumerable:!0,configurable:!0,value:a}})};var rm="closure_listenable_"+(1E6*Math.random()|0);function sm(a){return!(!a||!a[rm])}var tm=0;function um(a,b,c,d,e){this.listener=a;this.proxy=null;this.src=b;this.type=c;this.Jf=!!d;this.Xc=e;this.key=++tm;this.removed=this.Ij=!1}function vm(a){a.removed=!0;a.listener=null;a.proxy=null;a.src=null;a.Xc=null};function wm(a){this.src=a;this.g={};this.j=0}wm.prototype.add=function(a,b,c,d,e){var g=a.toString();a=this.g[g];a||(a=this.g[g]=[],this.j++);var h=xm(a,b,d,e);-1<h?(b=a[h],c||(b.Ij=!1)):(b=new um(b,this.src,g,!!d,e),b.Ij=c,a.push(b));return b};wm.prototype.remove=function(a,b,c,d){a=a.toString();if(!(a in this.g))return!1;var e=this.g[a];b=xm(e,b,c,d);return-1<b?(vm(e[b]),pb(e,b),0==e.length&&(delete this.g[a],this.j--),!0):!1};
function ym(a,b){var c=b.type;if(!(c in a.g))return!1;var d=ob(a.g[c],b);d&&(vm(b),0==a.g[c].length&&(delete a.g[c],a.j--));return d}wm.prototype.removeAll=function(a){a=a&&a.toString();var b=0,c;for(c in this.g)if(!a||c==a){for(var d=this.g[c],e=0;e<d.length;e++)++b,vm(d[e]);delete this.g[c];this.j--}return b};function zm(a,b,c,d,e){a=a.g[b.toString()];b=-1;a&&(b=xm(a,c,d,e));return-1<b?a[b]:null}
function xm(a,b,c,d){for(var e=0;e<a.length;++e){var g=a[e];if(!g.removed&&g.listener==b&&g.Jf==!!c&&g.Xc==d)return e}return-1};var Am="closure_lm_"+(1E6*Math.random()|0),Bm={},Cm=0;function Dm(a,b,c,d,e){if(ga(b)){for(var g=0;g<b.length;g++)Dm(a,b[g],c,d,e);return null}c=Em(c);return sm(a)?a.listen(b,c,d,e):Fm(a,b,c,!1,d,e)}function Fm(a,b,c,d,e,g){if(!b)throw Error("Invalid event type");var h=!!e,k=Gm(a);k||(a[Am]=k=new wm(a));c=k.add(b,c,d,e,g);if(c.proxy)return c;d=Hm();c.proxy=d;d.src=a;d.listener=c;a.addEventListener?a.addEventListener(b.toString(),d,h):a.attachEvent(Im(b.toString()),d);Cm++;return c}
function Hm(){var a=Jm,b=nm?function(c){return a.call(b.src,b.listener,c)}:function(c){c=a.call(b.src,b.listener,c);if(!c)return c};return b}function Km(a,b,c,d,e){if(ga(b)){for(var g=0;g<b.length;g++)Km(a,b[g],c,d,e);return null}c=Em(c);return sm(a)?a.rd.add(String(b),c,!0,d,e):Fm(a,b,c,!0,d,e)}function Lm(a,b,c,d,e){if(ga(b))for(var g=0;g<b.length;g++)Lm(a,b[g],c,d,e);else c=Em(c),sm(a)?a.Da(b,c,d,e):a&&(a=Gm(a))&&(b=zm(a,b,c,!!d,e))&&Mm(b)}
function Mm(a){if(ia(a)||!a||a.removed)return!1;var b=a.src;if(sm(b))return ym(b.rd,a);var c=a.type,d=a.proxy;b.removeEventListener?b.removeEventListener(c,d,a.Jf):b.detachEvent&&b.detachEvent(Im(c),d);Cm--;(c=Gm(b))?(ym(c,a),0==c.j&&(c.src=null,b[Am]=null)):vm(a);return!0}function Im(a){return a in Bm?Bm[a]:Bm[a]="on"+a}function Nm(a,b,c,d){var e=!0;if(a=Gm(a))if(b=a.g[b.toString()])for(b=b.concat(),a=0;a<b.length;a++){var g=b[a];g&&g.Jf==c&&!g.removed&&(g=Om(g,d),e=e&&!1!==g)}return e}
function Om(a,b){var c=a.listener,d=a.Xc||a.src;a.Ij&&Mm(a);return c.call(d,b)}
function Jm(a,b){if(a.removed)return!0;if(!nm){var c=b||t("window.event"),d=new qm(c,this),e=!0;if(!(0>c.keyCode||void 0!=c.returnValue)){t:{var g=!1;if(0==c.keyCode)try{c.keyCode=-1;break t}catch(h){g=!0}if(g||void 0==c.returnValue)c.returnValue=!0}c=[];for(g=d.currentTarget;g;g=g.parentNode)c.push(g);for(var g=a.type,k=c.length-1;!d.j&&0<=k;k--){d.currentTarget=c[k];var l=Nm(c[k],g,!0,d),e=e&&l}for(k=0;!d.j&&k<c.length;k++)d.currentTarget=c[k],l=Nm(c[k],g,!1,d),e=e&&l}return e}return Om(a,new qm(b,
this))}function Gm(a){a=a[Am];return a instanceof wm?a:null}var Pm="__closure_events_fn_"+(1E9*Math.random()>>>0);function Em(a){if(ka(a))return a;a[Pm]||(a[Pm]=function(b){return a.handleEvent(b)});return a[Pm]};function V(){S.call(this);this.rd=new wm(this);this.ma=this;this.W=null}B(V,S);V.prototype[rm]=!0;f=V.prototype;f.ai=function(a){this.W=a};f.addEventListener=function(a,b,c,d){Dm(this,a,b,c,d)};f.removeEventListener=function(a,b,c,d){Lm(this,a,b,c,d)};
f.T=function(a){var b,c=this.W;if(c){b=[];for(var d=1;c;c=c.W)b.push(c),++d}c=this.ma;d=a.type||a;if(w(a))a=new lm(a,c);else if(a instanceof lm)a.target=a.target||c;else{var e=a;a=new lm(d,c);bc(a,e)}var e=!0,g;if(b)for(var h=b.length-1;!a.j&&0<=h;h--)g=a.currentTarget=b[h],e=Qm(g,d,!0,a)&&e;a.j||(g=a.currentTarget=c,e=Qm(g,d,!0,a)&&e,a.j||(e=Qm(g,d,!1,a)&&e));if(b)for(h=0;!a.j&&h<b.length;h++)g=a.currentTarget=b[h],e=Qm(g,d,!1,a)&&e;return e};
f.L=function(){V.H.L.call(this);this.removeAllListeners();this.W=null};f.listen=function(a,b,c,d){return this.rd.add(String(a),b,!1,c,d)};f.Da=function(a,b,c,d){return this.rd.remove(String(a),b,c,d)};f.removeAllListeners=function(a){return this.rd?this.rd.removeAll(a):0};
function Qm(a,b,c,d){b=a.rd.g[String(b)];if(!b)return!0;b=b.concat();for(var e=!0,g=0;g<b.length;++g){var h=b[g];if(h&&!h.removed&&h.Jf==c){var k=h.listener,l=h.Xc||h.src;h.Ij&&ym(a.rd,h);e=!1!==k.call(l,d)&&e}}return e&&0!=d.Ks};function Rm(a,b){this.j=new gg(a);this.g=b?dg:cg}Rm.prototype.stringify=function(a){return fg(this.j,a)};Rm.prototype.parse=function(a){return this.g(a)};function Sm(a){this.j=0;this.k=a||100;this.g=[]}f=Sm.prototype;f.add=function(a){var b=this.g[this.j];this.g[this.j]=a;this.j=(this.j+1)%this.k;return b};f.get=function(a){a=Tm(this,a);return this.g[a]};f.set=function(a,b){a=Tm(this,a);this.g[a]=b};f.Ra=function(){return this.g.length};f.isEmpty=function(){return 0==this.g.length};f.clear=function(){this.j=this.g.length=0};f.La=function(){for(var a=this.Ra(),b=this.Ra(),c=[],a=this.Ra()-a;a<b;a++)c.push(this.get(a));return c};
f.Ka=function(){for(var a=[],b=this.Ra(),c=0;c<b;c++)a[c]=c;return a};f.ag=function(a){for(var b=this.Ra(),c=0;c<b;c++)if(this.get(c)==a)return!0;return!1};function Tm(a,b){if(b>=a.g.length)throw Error("Out of bounds exception");return a.g.length<a.k?b:(a.j+Number(b))%a.k};function Um(a){m.setTimeout(function(){throw a;},0)}var Vm;
function Wm(){var a=m.MessageChannel;"undefined"===typeof a&&"undefined"!==typeof window&&window.postMessage&&window.addEventListener&&(a=function(){var a=document.createElement("iframe");a.style.display="none";a.src="";document.documentElement.appendChild(a);var b=a.contentWindow,a=b.document;a.open();a.write("");a.close();var c="callImmediate"+Math.random(),d="file:"==b.location.protocol?"*":b.location.protocol+"//"+b.location.host,a=y(function(a){if(("*"==d||a.origin==d)&&a.data==c)this.port1.onmessage()},
this);b.addEventListener("message",a,!1);this.port1={};this.port2={postMessage:function(){b.postMessage(c,d)}}});if("undefined"!==typeof a&&!Qc("Trident")&&!Qc("MSIE")){var b=new a,c={},d=c;b.port1.onmessage=function(){if(n(c.next)){c=c.next;var a=c.Mu;c.Mu=null;a()}};return function(a){d.next={Mu:a};d=d.next;b.port2.postMessage(0)}}return"undefined"!==typeof document&&"onreadystatechange"in document.createElement("script")?function(a){var b=document.createElement("script");b.onreadystatechange=function(){b.onreadystatechange=
null;b.parentNode.removeChild(b);b=null;a();a=null};document.documentElement.appendChild(b)}:function(a){m.setTimeout(a,0)}};function Xm(a,b){Ym||Zm();$m||(Ym(),$m=!0);an.push(new bn(a,b))}var Ym;function Zm(){if(m.Promise&&m.Promise.resolve){var a=m.Promise.resolve();Ym=function(){a.then(cn)}}else Ym=function(){var a=cn;!ka(m.setImmediate)||m.Window&&m.Window.prototype.setImmediate==m.setImmediate?(Vm||(Vm=Wm()),Vm(a)):m.setImmediate(a)}}var $m=!1,an=[];function cn(){for(;an.length;){var a=an;an=[];for(var b=0;b<a.length;b++){var c=a[b];try{c.g.call(c.scope)}catch(d){Um(d)}}}$m=!1}
function bn(a,b){this.g=a;this.scope=b};function dn(a){a.prototype.then=a.prototype.then;a.prototype.$goog_Thenable=!0}function en(a){if(!a)return!1;try{return!!a.$goog_Thenable}catch(b){return!1}};function fn(a,b){this.j=0;this.B=void 0;this.g=this.k=null;this.o=this.A=!1;try{var c=this;a.call(b,function(a){gn(c,2,a)},function(a){gn(c,3,a)})}catch(d){gn(this,3,d)}}function hn(){var a=jn;return new fn(function(b,c){var d=a.length,e=[];if(d)for(var g=function(a,c){d--;e[a]=c;0==d&&b(e)},h=function(a){c(a)},k=0,l;l=a[k];k++)l.then(z(g,k),h);else b(e)})}fn.prototype.then=function(a,b,c){return kn(this,ka(a)?a:null,ka(b)?b:null,c)};dn(fn);
fn.prototype.cancel=function(a){0==this.j&&Xm(function(){var b=new ln(a);mn(this,b)},this)};function mn(a,b){if(0==a.j)if(a.k){var c=a.k;if(c.g){for(var d=0,e=-1,g=0,h;h=c.g[g];g++)if(h=h.bh)if(d++,h==a&&(e=g),0<=e&&1<d)break;0<=e&&(0==c.j&&1==d?mn(c,b):(d=c.g.splice(e,1)[0],nn(c,d,3,b)))}}else gn(a,3,b)}function on(a,b){a.g&&a.g.length||2!=a.j&&3!=a.j||pn(a);a.g||(a.g=[]);a.g.push(b)}
function kn(a,b,c,d){var e={bh:null,Mt:null,Nt:null};e.bh=new fn(function(a,h){e.Mt=b?function(c){try{var e=b.call(d,c);a(e)}catch(p){h(p)}}:a;e.Nt=c?function(b){try{var e=c.call(d,b);!n(e)&&b instanceof ln?h(b):a(e)}catch(p){h(p)}}:h});e.bh.k=a;on(a,e);return e.bh}fn.prototype.C=function(a){this.j=0;gn(this,2,a)};fn.prototype.D=function(a){this.j=0;gn(this,3,a)};
function gn(a,b,c){if(0==a.j){if(a==c)b=3,c=new TypeError("Promise cannot resolve to itself");else{if(en(c)){a.j=1;c.then(a.C,a.D,a);return}if(la(c))try{var d=c.then;if(ka(d)){qn(a,c,d);return}}catch(e){b=3,c=e}}a.B=c;a.j=b;pn(a);3!=b||c instanceof ln||rn(a,c)}}function qn(a,b,c){function d(b){g||(g=!0,a.D(b))}function e(b){g||(g=!0,a.C(b))}a.j=1;var g=!1;try{c.call(b,e,d)}catch(h){d(h)}}function pn(a){a.A||(a.A=!0,Xm(a.F,a))}
fn.prototype.F=function(){for(;this.g&&this.g.length;){var a=this.g;this.g=[];for(var b=0;b<a.length;b++)nn(this,a[b],this.j,this.B)}this.A=!1};function nn(a,b,c,d){if(2==c)b.Mt(d);else{if(b.bh)for(;a&&a.o;a=a.k)a.o=!1;b.Nt(d)}}function rn(a,b){a.o=!0;Xm(function(){a.o&&sn.call(null,b)})}var sn=Um;function ln(a){sa.call(this,a)}B(ln,sa);ln.prototype.name="cancel";function tn(a,b){V.call(this);this.g=a||1;this.j=b||m;this.k=y(this.mA,this);this.o=A()}B(tn,V);f=tn.prototype;f.enabled=!1;f.vc=null;function un(a,b){a.g=b;a.vc&&a.enabled?(a.stop(),a.start()):a.vc&&a.stop()}f.mA=function(){if(this.enabled){var a=A()-this.o;0<a&&a<.8*this.g?this.vc=this.j.setTimeout(this.k,this.g-a):(this.vc&&(this.j.clearTimeout(this.vc),this.vc=null),this.T("tick"),this.enabled&&(this.vc=this.j.setTimeout(this.k,this.g),this.o=A()))}};
f.start=function(){this.enabled=!0;this.vc||(this.vc=this.j.setTimeout(this.k,this.g),this.o=A())};f.stop=function(){this.enabled=!1;this.vc&&(this.j.clearTimeout(this.vc),this.vc=null)};f.L=function(){tn.H.L.call(this);this.stop();delete this.j};function vn(a,b,c){if(ka(a))c&&(a=y(a,c));else if(a&&"function"==typeof a.handleEvent)a=y(a.handleEvent,a);else throw Error("Invalid listener argument");return 2147483647<b?-1:m.setTimeout(a,b||0)}function wn(a){m.clearTimeout(a)};function xn(a,b,c){S.call(this);this.o=a;this.k=b;this.j=c;this.g=y(this.oA,this)}B(xn,S);f=xn.prototype;f.dg=!1;f.Ch=0;f.Fe=null;function yn(a){a.Fe||a.Ch?a.dg=!0:zn(a)}f.stop=function(){this.Fe&&(wn(this.Fe),this.Fe=null,this.dg=!1)};f.pause=function(){this.Ch++};f.resume=function(){this.Ch--;this.Ch||!this.dg||this.Fe||(this.dg=!1,zn(this))};f.L=function(){xn.H.L.call(this);this.stop()};f.oA=function(){this.Fe=null;this.dg&&!this.Ch&&(this.dg=!1,zn(this))};
function zn(a){a.Fe=vn(a.g,a.k);a.o.call(a.j)};function An(a){S.call(this);this.o=a;this.j={}}B(An,S);var Bn=[];f=An.prototype;f.listen=function(a,b,c,d){return Cn(this,a,b,c,d)};function Dn(a,b,c,d,e){Cn(a,b,c,d,!1,e)}function Cn(a,b,c,d,e,g){ga(c)||(c&&(Bn[0]=c.toString()),c=Bn);for(var h=0;h<c.length;h++){var k=Dm(b,c[h],d||a.handleEvent,e||!1,g||a.o||a);if(!k)break;a.j[k.key]=k}return a}function En(a,b,c,d){Fn(a,b,c,d,void 0)}function Gn(a,b,c,d,e){Fn(a,b,c,d,!1,e)}
function Fn(a,b,c,d,e,g){if(ga(c))for(var h=0;h<c.length;h++)Fn(a,b,c[h],d,e,g);else(b=Km(b,c,d||a.handleEvent,e,g||a.o||a))&&(a.j[b.key]=b)}f.Da=function(a,b,c,d,e){if(ga(b))for(var g=0;g<b.length;g++)this.Da(a,b[g],c,d,e);else c=c||this.handleEvent,e=e||this.o||this,c=Em(c),d=!!d,b=sm(a)?zm(a.rd,String(b),c,d,e):a?(a=Gm(a))?zm(a,b,c,d,e):null:null,b&&(Mm(b),delete this.j[b.key]);return this};f.removeAll=function(){Hb(this.j,Mm);this.j={}};f.L=function(){An.H.L.call(this);this.removeAll()};
f.handleEvent=function(){throw Error("EventHandler.handleEvent not implemented");};function Hn(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"}};function In(){}In.prototype.g=null;function Jn(a){var b;(b=a.g)||(b={},Kn(a)&&(b[0]=!0,b[1]=!0),b=a.g=b);return b};var Ln;function Mn(){}B(Mn,In);function Nn(a){return(a=Kn(a))?new ActiveXObject(a):new XMLHttpRequest}function Kn(a){if(!a.j&&"undefined"==typeof XMLHttpRequest&&"undefined"!=typeof ActiveXObject){for(var b=["MSXML2.XMLHTTP.6.0","MSXML2.XMLHTTP.3.0","MSXML2.XMLHTTP","Microsoft.XMLHTTP"],c=0;c<b.length;c++){var d=b[c];try{return new ActiveXObject(d),a.j=d}catch(e){}}throw Error("Could not create ActiveXObject. ActiveX might be disabled, or MSXML might not be installed");}return a.j}Ln=new Mn;function On(a,b,c,d,e){this.g=a;this.k=c;this.C=d;this.B=e||1;this.tb=45E3;this.o=new An(this);this.j=new tn;un(this.j,250)}f=On.prototype;f.ve=null;f.Jc=!1;f.Xf=null;f.wn=null;f.gh=null;f.Nf=null;f.Td=null;f.Xd=null;f.ue=null;f.ob=null;f.rh=0;f.Kc=null;f.Mj=null;f.Ee=null;f.Pg=-1;f.vs=!0;f.Ge=!1;f.Mm=0;f.nj=null;var Pn={},Qn={};f=On.prototype;f.setTimeout=function(a){this.tb=a};function Rn(a,b,c){a.Nf=1;a.Td=kf(b.clone());a.ue=c;a.A=!0;Sn(a,null)}
function Tn(a,b,c,d,e){a.Nf=1;a.Td=kf(b.clone());a.ue=null;a.A=c;e&&(a.vs=!1);Sn(a,d)}function Sn(a,b){a.gh=A();Un(a);a.Xd=a.Td.clone();gf(a.Xd,"t",a.B);a.rh=0;a.ob=a.g.jn(a.g.eh()?b:null);0<a.Mm&&(a.nj=new xn(y(a.Vs,a,a.ob),a.Mm));a.o.listen(a.ob,"readystatechange",a.BD);var c=a.ve?Yb(a.ve):{};a.ue?(a.Mj="POST",c["Content-Type"]="application/x-www-form-urlencoded",a.ob.send(a.Xd,a.Mj,a.ue,c)):(a.Mj="GET",a.vs&&!Uc&&(c.Connection="close"),a.ob.send(a.Xd,a.Mj,null,c));a.g.Ic(1)}
f.BD=function(a){a=a.target;var b=this.nj;b&&3==Vn(a)?yn(b):this.Vs(a)};
f.Vs=function(a){try{if(a==this.ob)t:{var b=Vn(this.ob),c=this.ob.j,d=this.ob.getStatus();if(Sc&&!hd(10)||Uc&&!gd("420+")){if(4>b)break t}else if(3>b||3==b&&!Rc&&!Wn(this.ob))break t;this.Ge||4!=b||7==c||(8==c||0>=d?this.g.Ic(3):this.g.Ic(2));Xn(this);var e=this.ob.getStatus();this.Pg=e;var g=Wn(this.ob);(this.Jc=200==e)?(4==b&&Yn(this),this.A?(Zn(this,b,g),Rc&&this.Jc&&3==b&&(this.o.listen(this.j,"tick",this.yA),this.j.start())):$n(this,g),this.Jc&&!this.Ge&&(4==b?this.g.lj(this):(this.Jc=!1,Un(this)))):
(this.Ee=400==e&&0<g.indexOf("Unknown SID")?3:0,ao(),Yn(this),bo(this))}}catch(h){this.ob&&Wn(this.ob)}finally{}};function Zn(a,b,c){for(var d=!0;!a.Ge&&a.rh<c.length;){var e=co(a,c);if(e==Qn){4==b&&(a.Ee=4,ao(),d=!1);break}else if(e==Pn){a.Ee=4;ao();d=!1;break}else $n(a,e)}4==b&&0==c.length&&(a.Ee=1,ao(),d=!1);a.Jc=a.Jc&&d;d||(Yn(a),bo(a))}f.yA=function(){var a=Vn(this.ob),b=Wn(this.ob);this.rh<b.length&&(Xn(this),Zn(this,a,b),this.Jc&&4!=a&&Un(this))};
function co(a,b){var c=a.rh,d=b.indexOf("\n",c);if(-1==d)return Qn;c=Number(b.substring(c,d));if(isNaN(c))return Pn;d+=1;if(d+c>b.length)return Qn;var e=b.substr(d,c);a.rh=d+c;return e}
function eo(a,b){a.gh=A();Un(a);var c=b?window.location.hostname:"";a.Xd=a.Td.clone();M(a.Xd,"DOMAIN",c);M(a.Xd,"t",a.B);try{a.Kc=new ActiveXObject("htmlfile")}catch(d){Yn(a);a.Ee=7;ao();bo(a);return}var e="<html><body>";b&&(e+='<script>document.domain="'+c+'"\x3c/script>');e+="</body></html>";a.Kc.open();a.Kc.write(e);a.Kc.close();a.Kc.parentWindow.m=y(a.UD,a);a.Kc.parentWindow.d=y(a.ft,a,!0);a.Kc.parentWindow.rpcClose=y(a.ft,a,!1);c=a.Kc.createElement("div");a.Kc.parentWindow.document.body.appendChild(c);
c.innerHTML='<iframe src="'+a.Xd+'"></iframe>';a.g.Ic(1)}f.UD=function(a){fo(y(this.ZG,this,a),0)};f.ZG=function(a){this.Ge||(Xn(this),$n(this,a),Un(this))};f.ft=function(a){fo(y(this.YG,this,a),0)};f.YG=function(a){this.Ge||(Yn(this),this.Jc=a,this.g.lj(this),this.g.Ic(4))};f.cancel=function(){this.Ge=!0;Yn(this)};function Un(a){a.wn=A()+a.tb;go(a,a.tb)}function go(a,b){if(null!=a.Xf)throw Error("WatchDog timer not null");a.Xf=fo(y(a.tG,a),b)}
function Xn(a){a.Xf&&(m.clearTimeout(a.Xf),a.Xf=null)}f.tG=function(){this.Xf=null;var a=A();0<=a-this.wn?(2!=this.Nf&&this.g.Ic(3),Yn(this),this.Ee=2,ao(),bo(this)):go(this,this.wn-a)};function bo(a){a.g.ut()||a.Ge||a.g.lj(a)}function Yn(a){Xn(a);xi(a.nj);a.nj=null;a.j.stop();a.o.removeAll();if(a.ob){var b=a.ob;a.ob=null;b.abort();b.dispose()}a.Kc&&(a.Kc=null)}function $n(a,b){try{a.g.wt(a,b),a.g.Ic(4)}catch(c){}};function ho(a,b,c,d,e){if(0==d)c(!1);else{var g=e||0;d--;io(a,b,function(e){e?c(!0):m.setTimeout(function(){ho(a,b,c,d,g)},g)})}}function io(a,b,c){var d=new Image;d.onload=function(){try{jo(d),c(!0)}catch(a){}};d.onerror=function(){try{jo(d),c(!1)}catch(a){}};d.onabort=function(){try{jo(d),c(!1)}catch(a){}};d.ontimeout=function(){try{jo(d),c(!1)}catch(a){}};m.setTimeout(function(){if(d.ontimeout)d.ontimeout()},b);d.src=a}
function jo(a){a.onload=null;a.onerror=null;a.onabort=null;a.ontimeout=null};function ko(a){this.g=a;this.j=new Rm(null,!0)}f=ko.prototype;f.Hm=null;f.kc=null;f.Hj=!1;f.ws=null;f.Gj=null;f.Um=null;f.rn=null;f.wc=null;f.wd=-1;f.mh=null;f.nh=null;f.connect=function(a){this.rn=a;a=lo(this.g,null,this.rn);ao();this.ws=A();var b=this.g.D;null!=b?(this.mh=b[0],(this.nh=b[1])?(this.wc=1,mo(this)):(this.wc=2,no(this))):(gf(a,"MODE","init"),this.kc=new On(this,0,void 0,void 0,void 0),this.kc.ve=this.Hm,Tn(this.kc,a,!1,null,!0),this.wc=0)};
function mo(a){var b=lo(a.g,a.nh,"/mail/images/cleardot.gif");kf(b);ho(b.toString(),5E3,y(a.sE,a),3,2E3);a.Ic(1)}f.sE=function(a){if(a)this.wc=2,no(this);else{ao();var b=this.g;b.Gc=b.Ud.wd;oo(b,9)}a&&this.Ic(2)};
function no(a){var b=a.g.F;if(null!=b)ao(),b?(ao(),po(a.g,a,!1)):(ao(),po(a.g,a,!0));else if(a.kc=new On(a,0,void 0,void 0,void 0),a.kc.ve=a.Hm,b=a.g,b=lo(b,b.eh()?a.mh:null,a.rn),ao(),!Sc||hd(10))gf(b,"TYPE","xmlhttp"),Tn(a.kc,b,!1,a.mh,!1);else{gf(b,"TYPE","html");var c=a.kc;a=Boolean(a.mh);c.Nf=3;c.Td=kf(b.clone());eo(c,a)}}f.jn=function(a){return this.g.jn(a)};f.abort=function(){this.kc&&(this.kc.cancel(),this.kc=null);this.wd=-1};f.ut=function(){return!1};
f.wt=function(a,b){this.wd=a.Pg;if(0==this.wc)if(b){try{var c=this.j.parse(b)}catch(d){c=this.g;c.Gc=this.wd;oo(c,2);return}this.mh=c[0];this.nh=c[1]}else c=this.g,c.Gc=this.wd,oo(c,2);else if(2==this.wc)if(this.Hj)ao(),this.Um=A();else if("11111"==b){if(ao(),this.Hj=!0,this.Gj=A(),c=this.Gj-this.ws,!Sc||hd(10)||500>c)this.wd=200,this.kc.cancel(),ao(),po(this.g,this,!0)}else ao(),this.Gj=this.Um=A(),this.Hj=!1};
f.lj=function(){this.wd=this.kc.Pg;if(this.kc.Jc)0==this.wc?this.nh?(this.wc=1,mo(this)):(this.wc=2,no(this)):2==this.wc&&(a=!1,(a=!Sc||hd(10)?this.Hj:200>this.Um-this.Gj?!1:!0)?(ao(),po(this.g,this,!0)):(ao(),po(this.g,this,!1)));else{0==this.wc?ao():2==this.wc&&ao();var a=this.g;a.Gc=this.wd;oo(a,2)}};f.eh=function(){return this.g.eh()};f.isActive=function(){return this.g.isActive()};f.Ic=function(a){this.g.Ic(a)};function qo(a){V.call(this);this.headers=new oe;this.J=a||null;this.k=!1;this.I=this.g=null;this.P=this.D="";this.j=0;this.B="";this.o=this.O=this.C=this.M=!1;this.A=0;this.F=null;this.S="";this.G=this.N=!1}B(qo,V);var ro=/^https?$/i,so=["POST","PUT"];function to(a,b){a.A=Math.max(0,b)}f=qo.prototype;
f.send=function(a,b,c,d){if(this.g)throw Error("[goog.net.XhrIo] Object is active with another request="+this.D+"; newUri="+a);b=b?b.toUpperCase():"GET";this.D=a;this.B="";this.j=0;this.P=b;this.M=!1;this.k=!0;this.g=this.J?Nn(this.J):Nn(Ln);this.I=this.J?Jn(this.J):Jn(Ln);this.g.onreadystatechange=y(this.fp,this);try{jm(uo(this,"Opening Xhr")),this.O=!0,this.g.open(b,String(a),!0),this.O=!1}catch(e){jm(uo(this,"Error opening Xhr: "+e.message));vo(this,e);return}a=c||"";var g=this.headers.clone();
d&&we(d,function(a,b){g.set(b,a)});d=G(g.Ka(),wo);c=m.FormData&&a instanceof m.FormData;!H(so,b)||d||c||g.set("Content-Type","application/x-www-form-urlencoded;charset=utf-8");g.forEach(function(a,b){this.g.setRequestHeader(b,a)},this);this.S&&(this.g.responseType=this.S);"withCredentials"in this.g&&(this.g.withCredentials=this.N);try{xo(this),0<this.A&&(this.G=yo(this.g),jm(uo(this,"Will abort after "+this.A+"ms if incomplete, xhr2 "+this.G)),this.G?(this.g.timeout=this.A,this.g.ontimeout=y(this.tb,
this)):this.F=vn(this.tb,this.A,this)),jm(uo(this,"Sending request")),this.C=!0,this.g.send(a),this.C=!1}catch(h){jm(uo(this,"Send error: "+h.message)),vo(this,h)}};function yo(a){return Sc&&gd(9)&&ia(a.timeout)&&n(a.ontimeout)}function wo(a){return"content-type"==a.toLowerCase()}f.tb=function(){"undefined"!=typeof aa&&this.g&&(this.B="Timed out after "+this.A+"ms, aborting",this.j=8,uo(this,this.B),this.T("timeout"),this.abort(8))};
function vo(a,b){a.k=!1;a.g&&(a.o=!0,a.g.abort(),a.o=!1);a.B=b;a.j=5;zo(a);Ao(a)}function zo(a){a.M||(a.M=!0,a.T("complete"),a.T("error"))}f.abort=function(a){this.g&&this.k&&(uo(this,"Aborting"),this.k=!1,this.o=!0,this.g.abort(),this.o=!1,this.j=a||7,this.T("complete"),this.T("abort"),Ao(this))};f.L=function(){this.g&&(this.k&&(this.k=!1,this.o=!0,this.g.abort(),this.o=!1),Ao(this,!0));qo.H.L.call(this)};f.fp=function(){this.da()||(this.O||this.C||this.o?Bo(this):this.cF())};f.cF=function(){Bo(this)};
function Bo(a){if(a.k&&"undefined"!=typeof aa)if(a.I[1]&&4==Vn(a)&&2==a.getStatus())uo(a,"Local request error detected and ignored");else if(a.C&&4==Vn(a))vn(a.fp,0,a);else if(a.T("readystatechange"),4==Vn(a)){uo(a,"Request complete");a.k=!1;try{var b=a.getStatus(),c;t:switch(b){case 200:case 201:case 202:case 204:case 206:case 304:case 1223:c=!0;break t;default:c=!1}var d;if(!(d=c)){var e;if(e=0===b){var g=ze(String(a.D))[1]||null;if(!g&&self.location)var h=self.location.protocol,g=h.substr(0,h.length-
1);e=!ro.test(g?g.toLowerCase():"")}d=e}if(d)a.T("complete"),a.T("success");else{a.j=6;var k;try{k=2<Vn(a)?a.g.statusText:""}catch(l){k=""}a.B=k+" ["+a.getStatus()+"]";zo(a)}}finally{Ao(a)}}}function Ao(a,b){if(a.g){xo(a);var c=a.g,d=a.I[0]?u:null;a.g=null;a.I=null;b||a.T("ready");try{c.onreadystatechange=d}catch(e){}}}function xo(a){a.g&&a.G&&(a.g.ontimeout=null);ia(a.F)&&(wn(a.F),a.F=null)}f.isActive=function(){return!!this.g};function Vn(a){return a.g?a.g.readyState:0}
f.getStatus=function(){try{return 2<Vn(this)?this.g.status:-1}catch(a){return-1}};function Wn(a){try{return a.g?a.g.responseText:""}catch(b){return""}}function uo(a,b){return b+" ["+a.P+" "+a.D+" "+a.getStatus()+"]"};function Co(a,b,c){this.C=a||null;this.g=1;this.j=[];this.o=[];this.A=new Rm(null,!0);this.D=b||null;this.F=null!=c?c:null}function Do(a,b){this.g=a;this.map=b;this.context=null}f=Co.prototype;f.Ah=null;f.Ob=null;f.eb=null;f.tm=null;f.dj=null;f.gs=null;f.yj=null;f.Wg=0;f.zD=0;f.Db=null;f.Zd=null;f.ud=null;f.He=null;f.Ud=null;f.xj=null;f.lf=-1;f.Gs=-1;f.Gc=-1;f.Ug=0;f.Of=0;f.ye=8;var Eo=new V;function Fo(a){lm.call(this,"statevent",a)}B(Fo,lm);
function Go(a,b){lm.call(this,"timingevent",a);this.size=b}B(Go,lm);function Ho(a){lm.call(this,"serverreachability",a)}B(Ho,lm);f=Co.prototype;f.connect=function(a,b,c,d,e){ao();this.tm=b;this.Ah=c||{};d&&n(e)&&(this.Ah.OSID=d,this.Ah.OAID=e);this.Ud=new ko(this);this.Ud.Hm=null;this.Ud.j=this.A;this.Ud.connect(a)};
f.disconnect=function(){Io(this);if(3==this.g){var a=this.Wg++,b=this.dj.clone();M(b,"SID",this.k);M(b,"RID",a);M(b,"TYPE","terminate");Jo(this,b);a=new On(this,0,this.k,a,void 0);a.Nf=2;a.Td=kf(b.clone());(new Image).src=a.Td;a.gh=A();Un(a)}Ko(this)};function Io(a){a.Ud&&(a.Ud.abort(),a.Ud=null);a.eb&&(a.eb.cancel(),a.eb=null);a.ud&&(m.clearTimeout(a.ud),a.ud=null);Lo(a);a.Ob&&(a.Ob.cancel(),a.Ob=null);a.Zd&&(m.clearTimeout(a.Zd),a.Zd=null)}
function Mo(a,b){if(0==a.g)throw Error("Invalid operation: sending map when state is closed");a.j.push(new Do(a.zD++,b));2!=a.g&&3!=a.g||No(a)}f.ut=function(){return 0==this.g};f.getState=function(){return this.g};function Oo(a){var b=0;a.eb&&b++;a.Ob&&b++;return b}function No(a){a.Ob||a.Zd||(a.Zd=fo(y(a.Zs,a),0),a.Ug=0)}f.Zs=function(a){this.Zd=null;Po(this,a)};
function Po(a,b){if(1==a.g){if(!b){a.Wg=Math.floor(1E5*Math.random());var c=a.Wg++,d=new On(a,0,"",c,void 0);d.ve=null;var e=Qo(a),g=a.dj.clone();M(g,"RID",c);a.C&&M(g,"CVER",a.C);Jo(a,g);Rn(d,g,e);a.Ob=d;a.g=2}}else 3==a.g&&(b?Ro(a,b):0!=a.j.length&&(a.Ob||Ro(a)))}
function Ro(a,b){var c,d;b?6<a.ye?(a.j=a.o.concat(a.j),a.o.length=0,c=a.Wg-1,d=Qo(a)):(c=b.C,d=b.ue):(c=a.Wg++,d=Qo(a));var e=a.dj.clone();M(e,"SID",a.k);M(e,"RID",c);M(e,"AID",a.lf);Jo(a,e);c=new On(a,0,a.k,c,a.Ug+1);c.ve=null;c.setTimeout(Math.round(1E4)+Math.round(1E4*Math.random()));a.Ob=c;Rn(c,e,d)}function Jo(a,b){if(a.Db){var c=a.Db.Fu(a);c&&Hb(c,function(a,c){M(b,c,a)})}}
function Qo(a){var b=Math.min(a.j.length,1E3),c=["count="+b],d;6<a.ye&&0<b?(d=a.j[0].g,c.push("ofs="+d)):d=0;for(var e=0;e<b;e++){var g=a.j[e].g,h=a.j[e].map,g=6>=a.ye?e:g-d;try{we(h,function(a,b){c.push("req"+g+"_"+b+"="+encodeURIComponent(a))})}catch(k){c.push("req"+g+"_type="+encodeURIComponent("_badmap"))}}a.o=a.o.concat(a.j.splice(0,b));return c.join("&")}function So(a){a.eb||a.ud||(a.B=1,a.ud=fo(y(a.lu,a),0),a.Of=0)}
function To(a){if(a.eb||a.ud||3<=a.Of)return!1;a.B++;a.ud=fo(y(a.lu,a),Uo(a,a.Of));a.Of++;return!0}f.lu=function(){this.ud=null;this.eb=new On(this,0,this.k,"rpc",this.B);this.eb.ve=null;this.eb.Mm=0;var a=this.gs.clone();M(a,"RID","rpc");M(a,"SID",this.k);M(a,"CI",this.xj?"0":"1");M(a,"AID",this.lf);Jo(this,a);if(!Sc||hd(10))M(a,"TYPE","xmlhttp"),Tn(this.eb,a,!0,this.yj,!1);else{M(a,"TYPE","html");var b=this.eb,c=Boolean(this.yj);b.Nf=3;b.Td=kf(a.clone());eo(b,c)}};
function po(a,b,c){a.xj=c;a.Gc=b.wd;a.bG(1,0);a.dj=lo(a,null,a.tm);No(a)}
f.wt=function(a,b){if(0!=this.g&&(this.eb==a||this.Ob==a))if(this.Gc=a.Pg,this.Ob==a&&3==this.g)if(7<this.ye){var c;try{c=this.A.parse(b)}catch(d){c=null}if(ga(c)&&3==c.length)if(0==c[0])t:{if(!this.ud){if(this.eb)if(this.eb.gh+3E3<this.Ob.gh)Lo(this),this.eb.cancel(),this.eb=null;else break t;To(this);ao()}}else this.Gs=c[1],0<this.Gs-this.lf&&37500>c[2]&&this.xj&&0==this.Of&&!this.He&&(this.He=fo(y(this.GC,this),6E3));else oo(this,11)}else"y2f%"!=b&&oo(this,11);else if(this.eb==a&&Lo(this),!C(b)){c=
this.A.parse(b);ga(c);for(var e=0;e<c.length;e++){var g=c[e];this.lf=g[0];g=g[1];2==this.g?"c"==g[0]?(this.k=g[1],this.yj=g[2],g=g[3],null!=g?this.ye=g:this.ye=6,this.g=3,this.Db&&this.Db.Fs(this),this.gs=lo(this,this.eh()?this.yj:null,this.tm),So(this)):"stop"==g[0]&&oo(this,7):3==this.g&&("stop"==g[0]?oo(this,7):"noop"!=g[0]&&this.Db&&this.Db.Es(this,g),this.Of=0)}}};f.GC=function(){null!=this.He&&(this.He=null,this.eb.cancel(),this.eb=null,To(this),ao())};
function Lo(a){null!=a.He&&(m.clearTimeout(a.He),a.He=null)}
f.lj=function(a){var b;if(this.eb==a)Lo(this),this.eb=null,b=2;else if(this.Ob==a)this.Ob=null,b=1;else return;this.Gc=a.Pg;if(0!=this.g)if(a.Jc)1==b?(A(),Eo.T(new Go(Eo,a.ue?a.ue.length:0)),No(this),this.o.length=0):So(this);else{var c=a.Ee,d;if(!(d=3==c||7==c||0==c&&0<this.Gc)){if(d=1==b)this.Ob||this.Zd||1==this.g||2<=this.Ug?d=!1:(this.Zd=fo(y(this.Zs,this,a),Uo(this,this.Ug)),this.Ug++,d=!0);d=!(d||2==b&&To(this))}if(d)switch(c){case 1:oo(this,5);break;case 4:oo(this,10);break;case 3:oo(this,
6);break;case 7:oo(this,12);break;default:oo(this,2)}}};function Uo(a,b){var c=5E3+Math.floor(1E4*Math.random());a.isActive()||(c*=2);return c*b}f.bG=function(a){if(!H(arguments,this.g))throw Error("Unexpected channel state: "+this.g);};function oo(a,b){if(2==b||9==b){var c=null;a.Db&&(c=null);var d=y(a.kG,a);c||(c=new L("//www.google.com/images/cleardot.gif"),kf(c));io(c.toString(),1E4,d)}else ao();Vo(a,b)}f.kG=function(a){a?ao():(ao(),Vo(this,8))};
function Vo(a,b){a.g=0;a.Db&&a.Db.tt(a,b);Ko(a);Io(a)}function Ko(a){a.g=0;a.Gc=-1;if(a.Db)if(0==a.o.length&&0==a.j.length)a.Db.Om(a);else{var b=sb(a.o),c=sb(a.j);a.o.length=0;a.j.length=0;a.Db.Om(a,b,c)}}function lo(a,b,c){var d=lf(c);if(""!=d.nb)b&&Qe(d,b+"."+d.nb),Te(d,d.jd);else var e=window.location,d=mf(e.protocol,b?b+"."+e.hostname:e.hostname,e.port,c);a.Ah&&Hb(a.Ah,function(a,b){M(d,b,a)});M(d,"VER",a.ye);Jo(a,d);return d}
f.jn=function(a){if(a)throw Error("Can't create secondary domain capable XhrIo object.");a=new qo;a.N=!1;return a};f.isActive=function(){return!!this.Db&&this.Db.isActive(this)};function fo(a,b){if(!ka(a))throw Error("Fn must not be null and must be a function");return m.setTimeout(function(){a()},b)}f.Ic=function(){Eo.T(new Ho(Eo))};function ao(){Eo.T(new Fo(Eo))}f.eh=function(){return!(!Sc||hd(10))};function Wo(){}f=Wo.prototype;f.Fs=function(){};f.Es=function(){};f.tt=function(){};f.Om=function(){};
f.Fu=function(){return{}};f.isActive=function(){return!0};function Xo(a,b){tn.call(this);if(ka(a))b&&(a=y(a,b));else if(a&&ka(a.handleEvent))a=y(a.handleEvent,a);else throw Error("Invalid listener argument");this.C=a;Dm(this,"tick",y(this.B,this));this.stop();un(this,5E3+2E4*Math.random())}B(Xo,tn);Xo.prototype.A=0;Xo.prototype.B=function(){if(500<this.g){var a=this.g;24E4>2*a&&(a*=2);un(this,a)}this.C()};Xo.prototype.start=function(){Xo.H.start.call(this);this.A=A()+this.g};Xo.prototype.stop=function(){this.A=0;Xo.H.stop.call(this)};function Yo(a,b){this.I=a;this.o=b;this.k=new Ai;this.j=new Xo(this.Aw,this);this.g=null;this.G=!1;this.B=null;this.F="";this.D=this.A=0;this.C=[]}B(Yo,Wo);f=Yo.prototype;f.subscribe=function(a,b,c){return this.k.subscribe(a,b,c)};f.unsubscribe=function(a,b,c){return this.k.unsubscribe(a,b,c)};f.Jb=function(a){return this.k.Jb(a)};f.publish=function(a,b){return this.k.publish.apply(this.k,arguments)};f.dispose=function(){this.G||(this.G=!0,this.k.clear(),this.disconnect(),xi(this.k))};f.da=function(){return this.G};
function Zo(a){return{firstTestResults:[""],secondTestResults:!a.g.xj,sessionId:a.g.k,arrayId:a.g.lf}}
f.connect=function(a,b,c){if(!this.g||2!=this.g.getState()){this.F="";this.j.stop();this.B=a||null;this.A=b||0;a=this.I+"/test";b=this.I+"/bind";var d=new Co("1",c?c.firstTestResults:null,c?c.secondTestResults:null),e=this.g;e&&(e.Db=null);d.Db=this;this.g=d;e?(3!=e.getState()&&0==Oo(e)||e.getState(),this.g.connect(a,b,this.o,e.k,e.lf)):c?this.g.connect(a,b,this.o,c.sessionId,c.arrayId):this.g.connect(a,b,this.o)}};
f.disconnect=function(a){this.D=a||0;this.j.stop();this.g&&(3==this.g.getState()&&Po(this.g),this.g.disconnect());this.D=0};f.sendMessage=function(a,b){var c={_sc:a};b&&bc(c,b);this.j.enabled||2==(this.g?this.g.getState():0)?this.C.push(c):this.g&&3==this.g.getState()&&Mo(this.g,c)};f.Fs=function(){var a=this.j;a.stop();un(a,5E3+2E4*Math.random());this.B=null;this.A=0;if(this.C.length){a=this.C;this.C=[];for(var b=0,c=a.length;b<c;++b)Mo(this.g,a[b])}this.publish("handlerOpened")};
f.tt=function(a,b){var c=2==b&&401==this.g.Gc;if(4!=b&&!c){if(6==b||410==this.g.Gc)c=this.j,c.stop(),un(c,500);this.j.start()}this.publish("handlerError",b)};f.Om=function(a,b,c){if(!this.j.enabled)this.publish("handlerClosed");else if(c)for(a=0,b=c.length;a<b;++a)this.C.push(c[a].map)};f.Fu=function(){var a={v:2};this.F&&(a.gsessionid=this.F);0!=this.A&&(a.ui=""+this.A);0!=this.D&&(a.ui=""+this.D);this.B&&bc(a,this.B);return a};
f.Es=function(a,b){if("S"==b[0])this.F=b[1];else if("gracefulReconnect"==b[0]){var c=this.j;c.stop();un(c,500);this.j.start();this.g.disconnect()}else this.publish("handlerMessage",new Ql(b[0],b[1]))};function $o(a,b){(a.o.loungeIdToken=b)||a.j.stop()}f.getDeviceId=function(){return this.o.id};f.Aw=function(){this.j.stop();0!=Oo(this.g)?this.j.start():this.connect(this.B,this.A)};function ap(){this.g=[];this.j=[]}function bp(a){lb(a.g)&&(a.g=a.j,a.g.reverse(),a.j=[])}function cp(a,b){a.j.push(b)}function dp(a){bp(a);return a.g.pop()}f=ap.prototype;f.Ra=function(){return this.g.length+this.j.length};f.isEmpty=function(){return lb(this.g)&&lb(this.j)};f.clear=function(){this.g=[];this.j=[]};f.contains=function(a){return H(this.g,a)||H(this.j,a)};f.remove=function(a){var b=db(this.g,a);if(0>b)return ob(this.j,a);pb(this.g,b);return!0};
f.La=function(){for(var a=[],b=this.g.length-1;0<=b;--b)a.push(this.g[b]);for(var c=this.j.length,b=0;b<c;++b)a.push(this.j[b]);return a};function ep(a){fp(this,a)}function gp(a,b){if(a.j)throw Error(b+" is not allowed in V3.");}function hp(a){a.volume=-1;a.muted=!1;a.k=null;a.g=-1;a.o=null;a.A=0;a.B=A()}function fp(a,b){a.videoIds=[];a.j="";ip(a);b&&(a.videoIds=b.videoIds,a.index=b.index,a.j=b.listId,a.videoId=b.videoId,a.g=b.playerState,a.o=b.errorReason,a.volume=b.volume,a.muted=b.muted,a.k=b.trackData,a.A=b.playerTime,a.B=b.playerTimeAt)}function ip(a){a.index=-1;a.videoId="";hp(a)}f=ep.prototype;f.jb=function(){return 1==this.g};
function jp(a){return a.j?a.videoId:a.videoIds[a.index]}function kp(a,b){a.A=b;a.B=A()}function lp(a){switch(a.g){case 1:return(A()-a.B)/1E3+a.A;case -1E3:return 0}return a.A}f.setVideoId=function(a){gp(this,"setVideoId");var b=this.index;this.index=cb(this.videoIds,a);b!=this.index&&hp(this);return-1!=b};function mp(a,b,c){var d=a.videoId;a.videoId=b;a.index=c;b!=d&&hp(a)}function np(a,b,c){gp(a,"setPlaylist");c=c||jp(a);Cb(a.videoIds,b)&&c==jp(a)||(a.videoIds=sb(b),a.setVideoId(c))}
f.add=function(a){gp(this,"add");return a&&!H(this.videoIds,a)?(this.videoIds.push(a),!0):!1};f.remove=function(a){gp(this,"remove");var b=jp(this);return ob(this.videoIds,a)?(this.index=cb(this.videoIds,b),!0):!1};function op(a){var b={};b.videoIds=sb(a.videoIds);b.index=a.index;b.listId=a.j;b.videoId=a.videoId;b.playerState=a.g;b.errorReason=a.o;b.volume=a.volume;b.muted=a.muted;b.trackData=Zb(a.k);b.playerTime=a.A;b.playerTimeAt=a.B;return b}f.clone=function(){return new ep(op(this))};function pp(a,b){U.call(this);this.k=0;this.o=a;this.C=[];this.B=new ap;this.A=NaN;this.j=this.g=null;this.G=y(this.hx,this);this.D=y(this.Ag,this);this.F=y(this.gx,this);var c=0;a?(c=a.getProxyState(),3!=c&&(a.subscribe("proxyStateChange",this.Tk,this),qp(this))):c=3;0!=c&&(b?this.Tk(c):N(y(function(){this.Tk(c)},this),0));rp(this,Jl())}B(pp,U);f=pp.prototype;f.getState=function(){return this.k};function sp(a){return new ep(a.o.getPlayerContextData())}
f.play=function(){1==this.getState()?(this.g?this.g.play(null,u,y(function(){this.Ma("Failed to play video with cast v2 channel.");tp(this,"play")},this)):tp(this,"play"),up(this,1,lp(sp(this))),vp(this)):wp(this,this.play)};f.pause=function(){1==this.getState()?(this.g?this.g.pause(null,u,y(function(){this.Ma("Failed to pause video with cast v2 channel.");tp(this,"pause")},this)):tp(this,"pause"),up(this,2,lp(sp(this))),vp(this)):wp(this,this.pause)};
f.jt=function(a){if(1==this.getState()){if(this.g){var b=sp(this),c=new chrome.cast.media.SeekRequest;c.currentTime=a;c.resumeState=b.jb()||3==b.g?chrome.cast.media.ResumeState.PLAYBACK_START:chrome.cast.media.ResumeState.PLAYBACK_PAUSE;this.g.seek(c,u,y(function(){this.Ma("Failed to seek in video with cast v2 channel.");tp(this,"seekTo",{newTime:a})},this))}else tp(this,"seekTo",{newTime:a});up(this,3,a);vp(this)}else wp(this,z(this.jt,a))};
f.stop=function(){if(1==this.getState()){this.g?this.g.stop(null,u,y(function(){this.Ma("Failed to stop video with cast v2 channel.");tp(this,"stopVideo")},this)):tp(this,"stopVideo");var a=sp(this);ip(a);xp(this,a);vp(this)}else wp(this,this.stop)};
f.setVolume=function(a,b){if(1==this.getState()){var c=sp(this);if(this.j){if(c.volume!=a){var d=Math.round(a)/100;this.j.setReceiverVolumeLevel(d,y(function(){yp("set receiver volume: "+d)},this),y(function(){this.Ma("failed to set receiver volume.")},this))}c.muted!=b&&this.j.setReceiverMuted(b,y(function(){yp("set receiver muted: "+b)},this),y(function(){this.Ma("failed to set receiver muted.")},this))}else{var e={volume:a,muted:b};-1!=c.volume&&(e.delta=a-c.volume);tp(this,"setVolume",e)}c.muted=
b;c.volume=a;xp(this,c);vp(this)}else wp(this,z(this.setVolume,a,b))};f.$l=function(a,b){if(1==this.getState()){var c=sp(this);if(b){c.k={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:eg(b.style)};bc(d,c.k);tp(this,"setSubtitlesTrack",d)}else d={videoId:a},tp(this,"setSubtitlesTrack",d);xp(this,c)}else wp(this,z(this.$l,a,b))};
function zp(a,b,c,d,e){var g=sp(a);d=d||0;var h={videoId:b,currentIndex:d,listId:e||g.j};mp(g,b,d);n(c)&&(kp(g,c),h.currentTime=c);tp(a,"setPlaylist",h);e||xp(a,g)}
f.ni=function(a,b){if(1==this.getState()){var c=sp(this);if(a!=jp(c)){var d;gp(c,"insert");a&&!H(c.videoIds,a)?(-1<c.index&&c.index>=c.videoIds.length-1?c.videoIds.push(a):c.videoIds.splice(c.index+1,0,a),d=!0):d=!1;d&&(d={videoId:a},tp(this,"insertVideo",d));c.setVideoId(a);d={videoId:a};n(b)&&(kp(c,b),d.currentTime=b);tp(this,"setVideo",d);xp(this,c)}}else wp(this,z(this.ni,a,b))};
f.Ik=function(a,b,c){if(1==this.getState()){var d=sp(this),e=a==jp(d),d=Cb(b,d.videoIds);e?d||(tp(this,"updatePlaylist",{videoIds:b.join(",")}),a=sp(this),np(a,b),xp(this,a)):d?this.ni(a,c):(tp(this,"setPlaylist",{videoIds:b.join(","),videoId:a,currentTime:c}),e=sp(this),kp(e,c),np(e,b,a),xp(this,e))}else wp(this,z(this.Ik,a,b,c))};f.dispose=function(){if(3!=this.k){var a=this.k;this.k=3;this.publish("proxyStateChange",a,this.k)}pp.H.dispose.call(this)};
f.L=function(){O(this.A);this.A=NaN;Ap(this);this.o=null;this.B.clear();rp(this,null);pp.H.L.call(this)};function qp(a){E(["remotePlayerChange","remoteQueueChange"],function(a){this.C.push(this.o.subscribe(a,z(this.eF,a),this))},a)}function Ap(a){E(a.C,function(a){this.o.unsubscribeByKey(a)},a);a.C.length=0}function wp(a,b){50>a.B.Ra()&&cp(a.B,b)}function up(a,b,c){var d=sp(a);kp(d,c);-1E3!=d.g&&(d.g=b);xp(a,d)}function tp(a,b,c){a.o.sendMessage(b,c)}
function xp(a,b){Ap(a);a.o.setPlayerContextData(op(b));qp(a)}f.Tk=function(a){if((a!=this.k||2==a)&&3!=this.k&&0!=a){var b=this.k;this.k=a;this.publish("proxyStateChange",b,a);if(1==a)for(;!this.B.isEmpty();)dp(this.B).apply(this);else 3==a&&this.dispose()}};function vp(a){O(a.A);a.A=N(y(function(){this.publish("remotePlayerChange");this.A=NaN},a),2E3)}f.eF=function(a){("remotePlayerChange"!=a||isNaN(this.A))&&this.publish(a)};
function rp(a,b){a.j&&(a.j.removeUpdateListener(a.G),a.j.removeMediaListener(a.D),a.Ag(null));a.j=b;a.j&&(yp("Setting cast session: "+a.j.sessionId),a.j.addUpdateListener(a.G),a.j.addMediaListener(a.D),a.j.media.length&&a.Ag(a.j.media[0]))}
f.hx=function(a){if(!a)this.Ag(null),rp(this,null);else if(this.j.receiver.volume){a=this.j.receiver.volume;var b=sp(this);if(b.volume!=a.level||b.muted!=a.muted)yp("Cast volume update: "+a.level+(a.muted?" muted":"")),b.volume=Math.round(100*a.level||0),b.muted=!!a.muted,xp(this,b),vp(this)}};f.Ag=function(a){yp("Cast media: "+!!a);this.g&&this.g.removeUpdateListener(this.F);if(this.g=a)this.g.addUpdateListener(this.F),Bp(this),vp(this)};
function Bp(a){var b=a.g.customData;if(a.g.media){var c=a.g.media,d=sp(a);c.contentId!=d.videoId&&yp("Cast changing video to: "+c.contentId);var e=c.customData;d.index=e.currentIndex;d.j=e.listId;d.videoId=c.contentId;d.g=b.playerState;kp(d,a.g.getEstimatedTime());xp(a,d)}else yp("No cast media video. Ignoring state update.")}f.gx=function(a){a?(Bp(this),vp(this)):this.Ag(null)};function yp(a){ki("CP",a)}f.Ma=function(a){ki("CP",a)};function Cp(a,b,c){U.call(this);this.N=a;this.D=[];this.D.push(R(window,"beforeunload",y(this.hC,this)));this.j=[];this.aa=new ep;3==c["mdx-version"]&&(this.aa.j="RQ"+b.token);this.F=b.id;this.g=Dp(this,c);this.g.subscribe("handlerOpened",this.mC,this);this.g.subscribe("handlerClosed",this.iC,this);this.g.subscribe("handlerError",this.jC,this);this.aa.j?this.g.subscribe("handlerMessage",this.kC,this):this.g.subscribe("handlerMessage",this.lC,this);$o(this.g,b.token);this.subscribe("remoteQueueChange",
function(){var a=this.aa.videoId;vk()&&cj("yt-remote-session-video-id",a)},this)}B(Cp,U);f=Cp.prototype;f.sh=NaN;f.ln=!1;f.cj=NaN;f.Hn=NaN;f.aj=NaN;
f.connect=function(a,b){if(b){if(this.aa.j){var c=b.listId,d=b.videoId,e=b.index,g=b.currentTime||0;5>=g&&(g=0);h={videoId:d,currentTime:g};c&&(h.listId=c);n(e)&&(h.currentIndex=e);c&&(this.aa.j=c);this.aa.videoId=d;this.aa.index=e||0}else{var d=b.videoIds[b.index],g=b.currentTime||0;5>=g&&(g=0);var h={videoIds:d,videoId:d,currentTime:g};this.aa.videoIds=[d];this.aa.index=0}this.aa.state=3;kp(this.aa,g);this.oa("Connecting with setPlaylist and params: "+eg(h));this.g.connect({method:"setPlaylist",
params:eg(h)},a,zk())}else this.oa("Connecting without params"),this.g.connect({},a,zk());Ep(this)};f.dispose=function(){this.da()||(this.publish("beforeDispose"),Fp(this,3));Cp.H.dispose.call(this)};f.L=function(){Gp(this);Hp(this);Ip(this);O(this.aj);this.aj=NaN;this.o=null;Ch(this.D);this.D.length=0;this.g.dispose();Cp.H.L.call(this);this.j=this.aa=this.g=null};f.oa=function(a){ki("conn",a)};f.hC=function(){this.A(2)};function Dp(a,b){return new Yo(Oj(a.N,"/bc",void 0,!1),b)}
function Fp(a,b){a.publish("proxyStateChange",b)}function Ep(a){a.sh=N(y(function(){this.oa("Connecting timeout");this.A(1)},a),2E4)}function Gp(a){O(a.sh);a.sh=NaN}function Ip(a){O(a.cj);a.cj=NaN}function Jp(a){Hp(a);a.Hn=N(y(function(){this.k("getNowPlaying")},a),2E4)}function Hp(a){O(a.Hn);a.Hn=NaN}function Kp(a){var b=a.g;return!!b.g&&3==b.g.getState()&&isNaN(a.sh)}
f.mC=function(){this.oa("Channel opened");this.ln&&(this.ln=!1,Ip(this),this.cj=N(y(function(){this.oa("Timing out waiting for a screen.");this.A(1)},this),15E3));Ik(Zo(this.g),this.F)};f.iC=function(){this.oa("Channel closed");isNaN(this.sh)?Jk(!0):Jk();this.dispose()};f.jC=function(a){Jk();isNaN(this.B())?(this.oa("Channel error: "+a+" without reconnection"),this.dispose()):(this.ln=!0,this.oa("Channel error: "+a+" with reconnection in "+this.B()+" ms"),Fp(this,2))};
function Lp(a,b){b&&(Gp(a),Ip(a));b==Kp(a)?b&&(Fp(a,1),a.k("getSubtitlesTrack")):b?(a.C()&&fp(a.aa),Fp(a,1),a.k("getNowPlaying")):a.A(1)}function Mp(a,b){var c=b.params.videoId;delete b.params.videoId;c==a.aa.videoId&&(Ub(b.params)?a.aa.k=null:a.aa.k=b.params,a.publish("remotePlayerChange"))}function Np(a,b){var c=b.params.videoId||b.params.video_id,d=parseInt(b.params.currentIndex,10);a.aa.j=b.params.listId||a.aa.j;mp(a.aa,c,d);a.publish("remoteQueueChange")}
function Op(a,b){b.params=b.params||{};Np(a,b);Pp(a,b)}function Pp(a,b){var c=parseInt(b.params.currentTime||b.params.current_time,10);kp(a.aa,isNaN(c)?0:c);c=parseInt(b.params.state,10);c=isNaN(c)?-1:c;-1==c&&-1E3==a.aa.g&&(c=-1E3);a.aa.g=c;var d=null;-1E3==c&&(d=a.aa.o||"unknown",n(b.params.currentError)&&(d=cg(b.params.currentError).reason||d));a.aa.o=d;1==a.aa.g?Jp(a):Hp(a);a.publish("remotePlayerChange")}
function Qp(a,b){var c="true"==b.params.muted;a.aa.volume=parseInt(b.params.volume,10);a.aa.muted=c;a.publish("remotePlayerChange")}
f.kC=function(a){a.params?this.oa("Received: action="+a.action+", params="+eg(a.params)):this.oa("Received: action="+a.action+" {}");switch(a.action){case "loungeStatus":a=cg(a.params.devices);this.j=F(a,function(a){return new lk(a)});a=!!G(this.j,function(a){return"LOUNGE_SCREEN"==a.type});Lp(this,a);break;case "loungeScreenConnected":Lp(this,!0);break;case "loungeScreenDisconnected":qb(this.j,function(a){return"LOUNGE_SCREEN"==a.type});Lp(this,!1);break;case "remoteConnected":var b=new lk(cg(a.params.device));
G(this.j,function(a){return a.equals(b)})||nb(this.j,b);break;case "remoteDisconnected":b=new lk(cg(a.params.device));qb(this.j,function(a){return a.equals(b)});break;case "gracefulDisconnect":break;case "playlistModified":Np(this,a);break;case "nowPlaying":Op(this,a);break;case "onStateChange":Pp(this,a);break;case "onVolumeChanged":Qp(this,a);break;case "onSubtitlesTrackChanged":Mp(this,a);break;default:this.oa("Unrecognized action: "+a.action)}};
f.lC=function(a){a.params?this.oa("Received: action="+a.action+", params="+eg(a.params)):this.oa("Received: action="+a.action);Rp(this,a);Sp(this,a);if(Kp(this)){var b=this.aa.clone(),c=!1,d,e,g,h,k,l,p;a.params&&(d=a.params.videoId||a.params.video_id,e=a.params.videoIds||a.params.video_ids,g=a.params.state,h=a.params.currentTime||a.params.current_time,k=a.params.volume,l=a.params.muted,n(a.params.currentError)&&(p=cg(a.params.currentError)));if("onSubtitlesTrackChanged"==a.action)d==jp(this.aa)&&
(delete a.params.videoId,Ub(a.params)?this.aa.k=null:this.aa.k=a.params,this.publish("remotePlayerChange"));else if(jp(this.aa)||"onStateChange"!=a.action)"playlistModified"!=a.action&&"nowPlayingPlaylist"!=a.action||e?(d||"nowPlaying"!=a.action&&"nowPlayingPlaylist"!=a.action?d||(d=jp(this.aa)):this.aa.setVideoId(""),e&&(e=e.split(","),np(this.aa,e,d))):np(this.aa,[]),this.aa.add(d)&&this.k("getPlaylist"),d&&this.aa.setVideoId(d),b.index==this.aa.index&&Cb(b.videoIds,this.aa.videoIds)||this.publish("remoteQueueChange"),
n(g)&&(b=parseInt(g,10),b=isNaN(b)?-1:b,-1==b&&-1E3==this.aa.g&&(b=-1E3),0==b&&"0"==h&&(b=-1),c=c||b!=this.aa.g,this.aa.g=b,d=null,-1E3==b&&(d=this.aa.o||"unknown",p&&(d=p.reason||d)),c=c||this.aa.o!=d,this.aa.o=d,1==this.aa.g?Jp(this):Hp(this)),"onError"!=a.action||-1!=this.aa.g&&-1E3!=this.aa.g||(a=cg(a.params.errors)||[],1==a.length&&"PLAYER_ERROR"==a[0].error&&a[0].videoId==jp(this.aa)&&(this.aa.g=-1E3,this.aa.o=a[0].reason||"unknown",c=!0)),h&&(b=parseInt(h,10),kp(this.aa,isNaN(b)?0:b),c=!0),
n(k)&&(b=parseInt(k,10),isNaN(b)||(c=c||this.aa.volume!=b,this.aa.volume=b),n(l)&&(l="true"==l,c=c||this.aa.muted!=l,this.aa.muted=l)),c&&this.publish("remotePlayerChange")}};
function Rp(a,b){switch(b.action){case "loungeStatus":var c=cg(b.params.devices);a.j=F(c,function(a){return new lk(a)});break;case "loungeScreenDisconnected":qb(a.j,function(a){return"LOUNGE_SCREEN"==a.type});break;case "remoteConnected":var d=new lk(cg(b.params.device));G(a.j,function(a){return a.equals(d)})||nb(a.j,d);break;case "remoteDisconnected":d=new lk(cg(b.params.device)),qb(a.j,function(a){return a.equals(d)})}}
function Sp(a,b){var c=!1;if("loungeStatus"==b.action)c=!!G(a.j,function(a){return"LOUNGE_SCREEN"==a.type});else if("loungeScreenConnected"==b.action)c=!0;else if("loungeScreenDisconnected"==b.action)c=!1;else return;if(!isNaN(a.cj))if(c)Ip(a);else return;c==Kp(a)?c&&Fp(a,1):c?(Gp(a),a.C()&&fp(a.aa),Fp(a,1),a.k("getNowPlaying")):a.A(1)}f.lA=function(){if(this.o){var a=this.o;this.o=null;this.aa.videoId!=a&&this.k("getNowPlaying")}};Cp.prototype.subscribe=Cp.prototype.subscribe;
Cp.prototype.unsubscribeByKey=Cp.prototype.Jb;Cp.prototype.J=function(){var a=3;this.da()||(a=0,isNaN(this.B())?Kp(this)&&(a=1):a=2);return a};Cp.prototype.getProxyState=Cp.prototype.J;Cp.prototype.A=function(a){this.oa("Disconnecting with "+a);Gp(this);this.publish("beforeDisconnect",a);1==a&&Jk();this.g.disconnect(a);this.dispose()};Cp.prototype.disconnect=Cp.prototype.A;Cp.prototype.I=function(){var a=this.aa;this.o&&(a=this.aa.clone(),mp(a,this.o,a.index));return op(a)};
Cp.prototype.getPlayerContextData=Cp.prototype.I;
Cp.prototype.M=function(a){var b=new ep(a);b.videoId&&b.videoId!=this.aa.videoId&&(this.o=b.videoId,O(this.aj),this.aj=N(y(this.lA,this),5E3));var c=[];this.aa.j==b.j&&this.aa.videoId==b.videoId&&this.aa.index==b.index&&Cb(this.aa.videoIds,b.videoIds)||c.push("remoteQueueChange");this.aa.g==b.g&&this.aa.volume==b.volume&&this.aa.muted==b.muted&&lp(this.aa)==lp(b)&&eg(this.aa.k)==eg(b.k)||c.push("remotePlayerChange");fp(this.aa,a);E(c,function(a){this.publish(a)},this)};
Cp.prototype.setPlayerContextData=Cp.prototype.M;Cp.prototype.G=function(){return this.g.o.loungeIdToken};Cp.prototype.getLoungeToken=Cp.prototype.G;Cp.prototype.C=function(){var a=this.g.getDeviceId(),b=G(this.j,function(b){return"REMOTE_CONTROL"==b.type&&b.id!=a});return b?b.id:""};Cp.prototype.getOtherConnectedRemoteId=Cp.prototype.C;Cp.prototype.B=function(){var a=this.g;return a.j.enabled?a.j.A-A():NaN};Cp.prototype.getReconnectTimeout=Cp.prototype.B;
Cp.prototype.P=function(){if(!isNaN(this.B())){var a=this.g.j;a.enabled&&(a.stop(),a.start(),a.B())}};Cp.prototype.reconnect=Cp.prototype.P;Cp.prototype.k=function(a,b){b?this.oa("Sending: action="+a+", params="+eg(b)):this.oa("Sending: action="+a);this.g.sendMessage(a,b)};Cp.prototype.sendMessage=Cp.prototype.k;function Tp(a){U.call(this);this.o=a;this.Hc=Up();this.oa("Initializing local screens: "+vi(this.Hc));this.k=Vp();this.oa("Initializing account screens: "+vi(this.k));this.Ul=null;this.g=[];this.j=[];Wp(this,em()||[]);this.oa("Initializing DIAL devices: "+Rj(this.j));a=ti(Fk());Xp(this,a);this.oa("Initializing online screens: "+vi(this.g));this.A=A()+3E5;Yp(this)}B(Tp,U);var Zp=[2E3,2E3,1E3,1E3,1E3,2E3,2E3,5E3,5E3,1E4];f=Tp.prototype;f.yh=NaN;f.Wj="";f.oa=function(a){ki("RM",a)};
f.Ma=function(a){ki("RM",a)};function Vp(){var a=Up(),b=ti(Fk());return eb(b,function(b){return!Yj(a,b)})}function Up(){var a=ti(Bk());return eb(a,function(a){return!a.uuid})}function Yp(a){Gi("yt-remote-cast-device-list-update",function(){var a=em();Wp(this,a||[])},a);Gi("yt-remote-cast-device-status-update",a.kF,a);a.ku();var b=A()>a.A?2E4:1E4;Jf(y(a.ku,a),b)}f.publish=function(a,b){if(this.da())return!1;this.oa("Firing "+a);return this.O.publish.apply(this.O,arguments)};
f.ku=function(){var a=em()||[];lb(a)||Wp(this,a);a=$p(this);lb(a)||(gb(a,function(a){return!Yj(this.k,a)},this)&&Dk()?aq(this):bq(this,a))};function cq(a,b){var c=$p(a);return eb(b,function(a){return a.uuid?(a=Xj(this.j,a.uuid),!!a&&"RUNNING"==a.status):!!Yj(c,a)},a)}
function Wp(a,b){var c=!1;E(b,function(a){var b=Zj(this.Hc,a.id);b&&b.name!=a.name&&(this.oa("Renaming screen id "+b.id+" from "+b.name+" to "+a.name),b.name=a.name,c=!0)},a);c&&(a.oa("Renaming due to DIAL."),dq(a));Gk(Uj(b));var d=!Cb(a.j,b,Wj);d&&a.oa("Updating DIAL devices: "+Rj(a.j)+" to "+Rj(b));a.j=b;Xp(a,a.g);d&&a.publish("onlineReceiverChange")}
f.kF=function(a){var b=Xj(this.j,a.id);b&&(this.oa("Updating DIAL device: "+b.id+"("+b.name+") from status: "+b.status+" to status: "+a.status+" and from activityId: "+b.activityId+" to activityId: "+a.activityId),b.activityId=a.activityId,b.status=a.status,Gk(Uj(this.j)));Xp(this,this.g)};function Xp(a,b,c){var d=cq(a,b),e=!Cb(a.g,d,qi);if(e||c)lb(b)||Ek(F(d,ri));e&&(a.oa("Updating online screens: "+vi(a.g)+" -> "+vi(d)),a.g=d,a.publish("onlineReceiverChange"))}
function bq(a,b){var c=[],d={};E(b,function(a){a.token&&(d[a.token]=a,c.push(a.token))});var e={method:"POST",cb:{lounge_token:c.join(",")},context:a,Qa:function(a,b){var c=[];E(b.screens||[],function(a){"online"==a.status&&c.push(d[a.loungeToken])});var e=this.Ul?eq(this,this.Ul):null;e&&!Yj(c,e)&&c.push(e);Xp(this,c,!0)}};Fj(Oj(a.o,"/pairing/get_screen_availability"),e)}
function aq(a){var b=$p(a),c=F(b,function(a){return a.id});lb(c)||(a.oa("Updating lounge tokens for: "+eg(c)),Fj(Oj(a.o,"/pairing/get_lounge_token_batch"),{cb:{screen_ids:c.join(",")},method:"POST",context:a,Qa:function(a,c){fq(this,c.screens||[]);this.Hc=eb(this.Hc,function(a){return!!a.token});dq(this);bq(this,b)}}))}function fq(a,b){E(rb(a.Hc,a.k),function(a){var d=G(b,function(b){return a.id==b.screenId});d&&(a.token=d.loungeToken)})}
function dq(a){var b=Up();Cb(a.Hc,b,qi)||(a.oa("Saving local screens: "+vi(b)+" to "+vi(a.Hc)),Ak(F(a.Hc,ri)),Xp(a,a.g,!0),Wp(a,em()||[]),a.publish("managedScreenChange",$p(a)))}function gq(a,b,c){var d=ib(b,function(a){return pi(c,a)}),e=0>d;0>d?b.push(c):b[d]=c;Yj(a.g,c)||a.g.push(c);return e}f.ju=function(a,b){for(var c=$p(this),c=F(c,function(a){return a.name}),d=a,e=2;H(c,d);)d=b.call(m,e),e++;return d};
f.Kt=function(a,b,c){var d=!1;b>=Zp.length&&(this.oa("Pairing DIAL device "+a+" with "+c+" timed out."),d=!0);var e=Xj(this.j,a);if(!e)this.oa("Pairing DIAL device "+a+" with "+c+" failed: no device for "+a),d=!0;else if("ERROR"==e.status||"STOPPED"==e.status)this.oa("Pairing DIAL device "+a+" with "+c+" failed: launch error on "+a),d=!0;d?(hq(this),this.publish("screenPair",null)):Fj(Oj(this.o,"/pairing/get_screen"),{method:"POST",cb:{pairing_code:c},context:this,Qa:function(a,b){if(c==this.Wj){hq(this);
var d=new ni(b.screen);d.name=e.name;d.uuid=e.id;this.oa("Pairing "+c+" succeeded.");var l=gq(this,this.Hc,d);this.oa("Paired with "+(l?"a new":"an old")+" local screen:"+ui(d));dq(this);this.publish("screenPair",d)}},onError:function(){c==this.Wj&&(this.oa("Polling pairing code: "+c),O(this.yh),this.yh=N(y(this.Kt,this,a,b+1,c),Zp[b]))}})};
function iq(a,b,c){var d=jq,e="";hq(d);if(Xj(d.j,a)){if(!e){var g=e=Sj();Xl();var h=gm(a),k=Ul();if(k&&h){var l=new cast.Receiver(h.id,h.name),l=new cast.LaunchRequest("YouTube",l);l.parameters="pairingCode="+g;l.description=new cast.LaunchDescription;l.description.text=document.title;b&&(l.parameters+="&v="+b,c&&(l.parameters+="&t="+Math.round(c)),l.description.url="http://i.ytimg.com/vi/"+b+"/default.jpg");"UNKNOWN"!=h.status&&(h.status="UNKNOWN",cm(h),Ji("yt-remote-cast-device-status-update",h));
Sl("Sending a cast launch request with params: "+l.parameters);k.launch(l,z(hm,a))}else Sl("No cast API or no cast device. Dropping cast launch.")}d.Wj=e;d.yh=N(y(d.Kt,d,a,0,e),Zp[0])}else d.oa("No DIAL device with id: "+a)}function hq(a){O(a.yh);a.yh=NaN;a.Wj=""}function eq(a,b){var c=Zj($p(a),b);a.oa("Found screen: "+ui(c)+" with key: "+b);return c}function kq(a){var b=jq,c=Zj(b.g,a);b.oa("Found online screen: "+ui(c)+" with key: "+a);return c}
function lq(a){var b=jq,c=Xj(b.j,a);if(!c){var d=Zj(b.Hc,a);d&&(c=Xj(b.j,d.uuid))}b.oa("Found DIAL: "+(c?c.toString():"null")+" with key: "+a);return c}function $p(a){return rb(a.k,eb(a.Hc,function(a){return!Yj(this.k,a)},a))};function mq(a){ak.call(this,"ScreenServiceProxy");this.Eb=a;this.g=[];this.g.push(this.Eb.$_s("screenChange",y(this.rE,this)));this.g.push(this.Eb.$_s("onlineScreenChange",y(this.oE,this)))}B(mq,ak);f=mq.prototype;f.gc=function(a){return this.Eb.$_gs(a)};f.contains=function(a){return!!this.Eb.$_c(a)};f.get=function(a){return this.Eb.$_g(a)};f.start=function(){this.Eb.$_st()};f.add=function(a,b,c){this.Eb.$_a(a,b,c)};f.remove=function(a,b,c){this.Eb.$_r(a,b,c)};
f.Yj=function(a,b,c,d){this.Eb.$_un(a,b,c,d)};f.L=function(){for(var a=0,b=this.g.length;a<b;++a)this.Eb.$_ubk(this.g[a]);this.g.length=0;this.Eb=null;mq.H.L.call(this)};f.rE=function(){this.publish("screenChange")};f.oE=function(){this.publish("onlineScreenChange")};Xk.prototype.$_st=Xk.prototype.start;Xk.prototype.$_gspc=Xk.prototype.cH;Xk.prototype.$_gsppc=Xk.prototype.ms;Xk.prototype.$_c=Xk.prototype.contains;Xk.prototype.$_g=Xk.prototype.get;Xk.prototype.$_a=Xk.prototype.add;
Xk.prototype.$_un=Xk.prototype.Yj;Xk.prototype.$_r=Xk.prototype.remove;Xk.prototype.$_gs=Xk.prototype.gc;Xk.prototype.$_gos=Xk.prototype.Rs;Xk.prototype.$_s=Xk.prototype.subscribe;Xk.prototype.$_ubk=Xk.prototype.Jb;function nq(a,b,c){a?q("yt.mdx.remote.castv2_",!0,void 0):Xl();bj&&aj();sk();oq||(oq=new Nj,Kk()&&(oq.g="/api/loungedev"));jq||a||(jq=new Tp(oq),jq.subscribe("screenPair",pq),jq.subscribe("managedScreenChange",qq),jq.subscribe("onlineReceiverChange",function(){Ji("yt-remote-receiver-availability-change")}));rq||(rq=t("yt.mdx.remote.deferredProxies_")||[],q("yt.mdx.remote.deferredProxies_",rq,void 0));sq(b);b=tq();if(a&&!b){var d=new Xk(oq);q("yt.mdx.remote.screenService_",d,void 0);b=tq();vl(c,d,
function(a){a?Ol()&&Nl():d.subscribe("onlineScreenChange",function(){Ji("yt-remote-receiver-availability-change")})})}}function uq(){Ii(vq);vq.length=0;xi(wq);wq=null;rq&&(E(rq,function(a){a(null)}),rq.length=0,rq=null,q("yt.mdx.remote.deferredProxies_",null,void 0));jq&&(xi(jq),jq=null);oq=null;bm()}
function xq(){if(yq()&&Hl()){var a=[];if(ej("yt-remote-cast-available")||t("yt.mdx.remote.cloudview.castButtonShown_")||zq())a.push({key:"cast-selector-receiver",name:Aq()}),q("yt.mdx.remote.cloudview.castButtonShown_",!0,void 0);return a}if(t("yt.mdx.remote.cloudview.initializing_"))return[];var b=[],b=Bq()?tq().Eb.$_gos():ti(Fk());(a=Cq())&&zq()&&(Yj(b,a)||b.push(a));Bq()||(a=Vj(Hk()),a=eb(a,function(a){return!Zj(b,a.id)}),b=rb(b,a));return Tj(b)}
function Dq(){if(yq()&&Hl()){var a=Il();return a?{key:"cast-selector-receiver",name:a}:null}var a=xq(),b=Eq(),c=Cq();c||(c=Fq());return G(a,function(a){return c&&oi(c,a.key)||b&&(a=lq(a.key))&&a.id==b?!0:!1})}function Aq(){if(yq()&&Hl())return Il();var a=Cq();return a?a.name:null}function Cq(){var a=Ol();if(!a)return null;if(!jq){var b=tq().gc();return Zj(b,a)}return eq(jq,a)}
function Gq(a,b){Hq("Connecting to: "+eg(a));if("cast-selector-receiver"==a.key)Iq(b||null),Ml(b||null);else{Jq();Iq(b||null);var c=null;jq?c=kq(a.key):(c=tq().gc(),c=Zj(c,a.key));if(c)Kq(c);else{if(jq&&(c=lq(a.key))){Lq(c);return}N(function(){Mq(null)},0)}}}
function Jq(){jq&&hq(jq);t:{var a=zq();if(a&&(a=a.getOtherConnectedRemoteId())){Hq("Do not stop DIAL due to "+a);Nq("");break t}(a=Eq())?(Hq("Stopping DIAL: "+a),im(a),Nq("")):(a=Cq())&&a.uuid&&(Hq("Stopping DIAL: "+a.uuid),im(a.uuid))}Ll()?Dl().stopSession():Al("stopSession called before API ready.");(a=zq())?a.disconnect(1):(Ki("yt-remote-before-disconnect",1),Ki("yt-remote-connection-change",!1));Mq(null)}function Oq(){var a=Pq(),a=a?a.currentTime:0,b=Qq();0==a&&b&&(a=lp(sp(b)));return a}
function Qq(){var a=zq();return a&&3!=a.getProxyState()?new pp(a,void 0):null}function Hq(a){ki("remote",a)}function yq(){return!!t("yt.mdx.remote.castv2_")}function Bq(){return t("yt.mdx.remote.screenService_")}function tq(){if(!wq){var a=Bq();wq=a?new mq(a):null}return wq}function Ol(){return t("yt.mdx.remote.currentScreenId_")}function Rq(a){q("yt.mdx.remote.currentScreenId_",a,void 0);if(jq){var b=jq;b.A=A()+3E5;if((b.Ul=a)&&(a=eq(b,a))&&!Yj(b.g,a)){var c=sb(b.g);c.push(a);Xp(b,c,!0)}}}
function Eq(){return t("yt.mdx.remote.currentDialId_")}function Nq(a){q("yt.mdx.remote.currentDialId_",a,void 0)}function Pq(){return t("yt.mdx.remote.connectData_")}function Iq(a){q("yt.mdx.remote.connectData_",a,void 0)}function zq(){return t("yt.mdx.remote.connection_")}
function Mq(a){var b=zq();Iq(null);a?$a(!zq()):(Rq(""),Nq(""));q("yt.mdx.remote.connection_",a,void 0);rq&&(E(rq,function(b){b(a)}),rq.length=0);b&&!a?Ki("yt-remote-connection-change",!1):!b&&a&&Ji("yt-remote-connection-change",!0)}function Fq(){var a=vk();if(!a)return null;if(Bq()){var b=tq().gc();return Zj(b,a)}return jq?eq(jq,a):null}
function Kq(a){$a(!Ol());Rq(a.id);a=new Cp(oq,a,Sq());a.connect(1,Pq());a.subscribe("beforeDisconnect",function(a){Ki("yt-remote-before-disconnect",a)});a.subscribe("beforeDispose",function(){zq()&&(zq(),Mq(null))});Mq(a)}function Lq(a){Eq();Hq("Connecting to: "+(a?a.toString():"null"));Nq(a.id);var b=Pq();b?iq(a.id,b.videoIds[b.index],b.currentTime):iq(a.id)}function pq(a){Hq("Paired with: "+ui(a));a?Kq(a):Mq(null)}
function qq(){var a=Ol();a&&!Cq()&&(Hq("Dropping current screen with id: "+a),Jq());Fq()||Jk()}var oq=null,rq=null,wq=null,jq=null;function sq(a){var b=Sq();if(Ub(b)){var b=uk(),c=ej("yt-remote-session-name")||"",d=ej("yt-remote-session-app")||"",b={device:"REMOTE_CONTROL",id:b,name:c,app:d};a&&(b["mdx-version"]=3);q("yt.mdx.remote.channelParams_",b,void 0)}}function Sq(){return t("yt.mdx.remote.channelParams_")||{}}var vq=[];function Tq(a,b,c){S.call(this);this.g=a;this.o=b||0;this.j=c;this.k=y(this.nA,this)}B(Tq,S);f=Tq.prototype;f.xa=0;f.L=function(){Tq.H.L.call(this);this.stop();delete this.g;delete this.j};f.start=function(a){this.stop();this.xa=vn(this.k,n(a)?a:this.o)};f.stop=function(){this.isActive()&&wn(this.xa);this.xa=0};f.isActive=function(){return 0!=this.xa};f.nA=function(){this.xa=0;this.g&&this.g.call(this.j)};var Uq={xy:function(a,b){var c=a[0];a[0]=a[b%a.length];a[b]=c},ci:function(a){a.reverse()},Du:function(a,b){a.splice(0,b)}};function Vq(a){a=a.split("");Uq.ci(a,51);Uq.xy(a,31);Uq.xy(a,57);Uq.Du(a,3);Uq.xy(a,50);return a.join("")};function Wq(){};var Xq={160:"h",133:"h",134:"h",135:"h",136:"h",137:"h",264:"h",266:"h",138:"h",298:"h",299:"h",304:"h",305:"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:"("};function Yq(a,b,c,d,e,g,h){this.id=""+a;this.g=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.pa=h||0;this.j=c||null;this.video=d||null;this.Ae=e||null;this.o=g||null;this.k=Xq[this.id.split(";")[0]]||""}function Zq(a){return 2==a.g}function $q(a){return!(a.j&&a.video)}function ar(a){return 0<=a.indexOf("opus")||0<=a.indexOf("vorbis")||0<=a.indexOf("mp4a")}
function br(a){return 0<=a.indexOf("vp9")||0<=a.indexOf("vp8")||0<=a.indexOf("avc1")};function cr(a,b,c,d){this.name=a;this.language=b;this.isDefault=d}cr.prototype.toString=function(){return this.name};var Tb={EG:"auto",EK:"tiny",YI:"light",SMALL:"small",OG:"medium",LARGE:"large",vI:"hd720",tI:"hd1080",uI:"hd1440",GI:"highres",UNKNOWN:"unknown"},dr={auto:0,tiny:144,light:144,small:240,medium:360,large:480,hd720:720,hd1080:1080,hd1440:1440,highres:2160};function er(a,b,c,d,e){this.width=a;this.height=b;if(!e)t:{for(e=2;e<fr.length;e++){var g=gr[fr[e]];if(a>g[0]&&b>=g[1]||a>=g[0]&&b>g[1]){e=fr[e-1];break t}}e="tiny"}this.quality=e;this.fps=c||0;this.g=d||0}var fr="auto highres hd1440 hd1080 hd720 large medium small tiny".split(" "),gr={auto:[0,0],tiny:[256,144],light:[426,240],small:[426,240],medium:[640,360],large:[854,480],hd720:[1280,720],hd1080:[1920,1080],hd1440:[2560,1440],highres:[3840,2160]};function hr(a){this.j=a;this.B=this.o=this.A="";this.g={};this.k=""}hr.prototype.set=function(a,b){this.g[a]!==b&&(this.g[a]=b,this.k="")};hr.prototype.get=function(a){ir(this);return this.g[a]||null};function jr(a){a.k||(a.k=kr(a));return a.k}function lr(a){ir(a);return Jb(a.g,function(a){return null!==a})}
function ir(a){if(a.j){var b=a.j;if(!b||-1==b.search(zf))throw Error("Untrusted URL: "+a.j);b=lf(a.j);a.A=b.Hb;a.B=b.nb+(null!=b.jd?":"+b.jd:"");var c=b.Ib;if(0==c.indexOf("/videoplayback"))a.o="/videoplayback",c=c.substr(14);else if(0==c.indexOf("/api/manifest/")){var d=c.indexOf("/",14);0<d?(a.o=c.substr(0,d),c=c.substr(d+1)):(a.o=c,c="")}d=a.g;a.g=mr(c);ra(a.g,nr(b.Xp()));ra(a.g,d);a.j="";a.k=""}}
function kr(a){ir(a);var b=a.A+(a.A?"://":"//")+a.B+a.o;if(lr(a)){var c=[];Hb(a.g,function(a,b){null!==a&&c.push(b+"="+a)});a=c.join("&");b+="?"+a}return b}function mr(a){a=a.split("/");var b=0;a[0]||b++;for(var c={};b<a.length;b+=2)a[b]&&(c[a[b]]=a[b+1]);return c}function nr(a){a=a.split("&");for(var b={},c=0;c<a.length;c++){var d=a[c],e=d.indexOf("=");0<e?b[d.substr(0,e)]=d.substr(e+1):d&&(b[d]="")}return b};function or(a,b){this.start=a;this.end=b;this.length=b-a+1}function pr(a){a=a.split("-");return 2==a.length&&(a=new or(parseInt(a[0],10),parseInt(a[1],10)),!isNaN(a.start)&&!isNaN(a.end)&&!isNaN(a.length)&&0<a.length)?a:null}function qr(a,b){return new or(a,a+b-1)}or.prototype.toString=function(){return this.start+"-"+(null==this.end?"":this.end)};function rr(a,b){for(var c=a;c;c=c.parentNode)if(c.attributes){var d=c.attributes[b];if(d)return d.value}return""}function sr(a,b){for(var c=a;c;c=c.parentNode){var d=c.getElementsByTagName(b);if(0<d.length)return d[0]}return null};function tr(a,b,c,d,e){this.duration=c;this.endTime=b+c;this.g=a;this.sourceURL=d;this.startTime=b;this.$=e||null};function ur(){this.fa=[]}f=ur.prototype;f.qj=function(a){return(a=vr(this,a))?a.duration:0};f.Wk=function(a){return this.qj(a)};f.Og=function(){return this.fa[0].g};f.Gb=function(){return this.fa[this.fa.length-1].g};f.$e=function(){return this.fa[this.fa.length-1].endTime};f.Et=function(){return this.fa[0].startTime};f.Bt=function(){return this.fa.length};f.Sj=function(){return 0};f.ih=function(a){return(a=wr(this,a))?a.g:-1};f.Tt=function(a){return vr(this,a).sourceURL};
f.wf=function(a){return(a=vr(this,a))?a.startTime:0};f.An=function(){return 0<this.fa.length};function vr(a,b){var c=xb(a.fa,new tr(b,0,0,""),function(a,b){return a.g-b.g});return 0<=c?a.fa[c]:null}function wr(a,b){var c=xb(a.fa,{startTime:b},function(a,b){return a.startTime-b.startTime});return 0<=c?a.fa[c]:a.fa[Math.max(0,-c-2)]}
f.append=function(a){if(0!=a.length)if(a=sb(a),0==this.fa.length)this.fa=a;else{var b=this.fa.length?ab(this.fa).endTime:0,c=a[0].g-this.Gb();1<c&&mb(this.fa);for(c=0<c?0:-c+1;c<a.length;c++){var d=a[c];d.startTime=b;d.endTime=d.startTime+d.duration;b+=a[c].duration;this.fa.push(a[c])}}};function xr(a,b){var c=ib(a.fa,function(a){return a.g>=b},a);0<c&&a.fa.splice(0,c)};function yr(a){this.g=a;this.j={};this.k=""}yr.prototype.set=function(a,b){this.g.get(a);this.j[a]=b;this.k=""};yr.prototype.get=function(a){return this.j[a]||this.g.get(a)};function zr(a,b){var c=b.indexOf("?");if(0<c){var d=nr(b.substr(c+1));Hb(d,function(a,b){this.set(b,a)},a);b=b.substr(0,c)}d=mr(b);Hb(d,function(a,b){this.set(b,a)},a)}function Ar(a){a.k||(a.k=Br(a));return a.k}
function Br(a){var b=jr(a.g),c=[];Hb(a.j,function(a,b){c.push(b+"="+a)});if(!c.length)return b;var d=c.join("&");a=lr(a.g)?"&":"?";return b+a+d}function Cr(a,b){var c=new hr(b);Hb(a.j,function(a,b){c.set(b,null)});return c};function Dr(a){this.g=a;this.j=0;this.k=-1}var Er=0;function Fr(a,b){this.index=null;this.info=b;this.g=null;this.A=this.k=!1;this.B=new Dr(a)}Fr.prototype.Gl=function(){return!1};Fr.prototype.Sc=function(){return!1};Fr.prototype.Bs=function(a){return[a]};Fr.prototype.yi=function(a){return[a]};function Gr(a,b,c,d,e,g,h,k,l){this.g=b;this.$=c;this.type=a;this.o=0<=d?d:-1;this.startTime=e||0;this.duration=g||0;this.k=h||0;this.j=0<=k?k:this.$?this.$.length:NaN;this.D=!!l;this.$?(this.B=this.k+this.j==this.$.length,this.A=this.startTime+this.duration*this.k/this.$.length,this.F=this.duration*this.j/this.$.length):(this.B=0!=this.j,this.A=this.startTime,this.F=this.duration);this.C=this.A+this.F}function Hr(a){return 1==a.type||2==a.type}
function Ir(a,b){return a.g==b.g&&a.$.start+a.k+a.j==b.$.start+b.k}function Jr(a){$a(1==a.length||hb(a,function(a){return!!a.$}));for(var b=1;b<a.length;b++);b=a[a.length-1];return new or(a[0].$.start+a[0].k,b.$.start+b.k+b.j-1)}function Lr(a){var b="i="+a.g.info.id+",s="+a.o;a.$&&(b=b+",r="+(a.$.start+a.k)+"-"+(a.$.start+a.k+a.j-1));return b=b+",t="+a.A.toFixed(1)+","+(a.A+a.F).toFixed(1)};function Mr(a,b){this.k=a[0].g.B;this.j=b||"";this.g=a;this.$=this.g[0].$&&0<this.g[0].j?Jr(this.g):null}function Nr(a){var b;/http[s]?:\/\//.test(a.j)?b=new yr(new hr(a.j)):(b=new yr(a.k.g),a.j&&zr(b,a.j));a.$&&b.set("range",a.$.toString());return b}function Or(a){if(a.$)return a.$.length;a=a.g[0];return Math.round(a.F*a.g.info.pa)};function Pr(a,b,c,d,e){Fr.call(this,a,b);this.index=e||new ur;this.o=d||null;this.C=c;this.j=!0}B(Pr,Fr);f=Pr.prototype;f.vi=function(){return!1};f.Ys=function(){var a=new Gr(1,this,this.o);return[new Mr([a],this.C)]};function Qr(a,b){a.Bg(b);return Rr(a,b.B?b.o+1:b.o,!1)}f.Li=function(a,b){var c=this.index.ih(a);b&&(c=Math.min(this.index.Gb(),c+1));return Rr(this,c,!0)};f.Qp=function(a){this.g=new Uint8Array(Sr(a).buffer)};f.Gl=function(){return!1};f.Sc=function(){return null!==this.g&&this.index.An()};
f.Bg=function(a){return 0==a.j?!0:this.index.Gb()>a.o&&this.index.Og()<=a.o+1};f.update=function(a,b,c){this.index.append(a);xr(this.index,c);this.j=b};function Rr(a,b,c){var d=a.index.Tt(b),e=a.index.wf(b),g=a.index.qj(b);c?g=c=0:c=0<a.info.pa?a.info.pa*g:1E3;a=new Gr(3,a,null,b,e,g,0,c,b==a.index.Gb()&&!a.j&&0<c);return new Mr([a],d)};function Tr(a,b){this.Tg=a;this.context=b};function Ur(a,b,c){this.j=a;this.Tg=b;this.g=c}function Vr(){this.g=[];this.j=null;this.o=0;this.k=[]}
Vr.prototype.update=function(a){var b=void 0;this.j&&(b=this.j);var c=b,b=+rr(a,"timescale")||1,d=+rr(a,"startNumber")||0,e=0,g=1;c&&(e=c.Tg+c.g,g=d-c.j);c=new Vr;g=0<g?0:-g+1;c.o=g;for(a=a.getElementsByTagName("S");g<a.length;g++){var h=a[g],k=+h.getAttribute("d")/b,l=new Ur(d+g,e,k);c.g.push(l);var e=e+k,k=h.getAttribute("yt:cuepointTimeOffset"),p=h.getAttribute("yt:cuepointDuration"),h=h.getAttribute("yt:cuepointContext")||null;k&&p&&c.k.push(new Tr(+k/b+l.Tg,h))}c.g.length&&(c.j=ab(c.g));this.o=
c.o;this.j=c.j||this.j;this.g=c.g;tb(this.k,c.k)};function Wr(a){var b=a.k;a.k=[];return b};function Xr(){this.A=[];this.o=!1;this.g=null;this.j={};this.k={}}function Yr(a,b){for(var c=b.getElementsByTagName("SegmentTimeline"),d=0;d<c.length;d++){var e=c[d].parentNode.parentNode;"Period"==e.nodeName?a.g=new Vr:"AdaptationSet"==e.nodeName?a.j[e.attributes.mimeType.value]=new Vr:"Representation"==e.nodeName&&(a.k[e.attributes.id.value]=new Vr)}a.o=!0}
function Zr(a,b){a.o||Yr(a,b);for(var c=[],d=b.getElementsByTagName("SegmentTimeline"),e=0;e<d.length;e++){var g=d[e].parentNode.parentNode,h=null;"Period"==g.nodeName?h=a.g:"AdaptationSet"==g.nodeName?h=a.j[g.attributes.mimeType.value]:"Representation"==g.nodeName&&(h=a.k[g.attributes.id.value]);if(null==h)return;h.update(d[e]);tb(c,Wr(h))}Ab(c,function(a){return a.Tg});tb(a.A,c)}function $r(a){a.g&&(a.g.g=[]);Hb(a.j,function(a){a.g=[]});Hb(a.k,function(a){a.g=[]})};function as(a,b){var c=bs(a,0,1836019558);if(!c)return null;var d=bs(a,c.offset+8,1835427940),e=bs(a,c.offset+8,1953653094);if(!d||!e)return null;var g=bs(a,e.offset+8,1952868452),h=bs(a,e.offset+8,1953658222),k=bs(a,e.offset+8,1952867444);if(!g||!h||!k)return null;var l=bs(a,e.offset+8,1935763823),e=bs(a,e.offset+8,1935763834);if(l){var p=cs(l),r=cs(l);if(0!=p||1!=r)return null;p=cs(l)}for(var v=cs(g),x=cs(g),ca=v&2,ba=v&1?ds(g):0,ja=ca?cs(g):0,ta=v&8?cs(g):0,r=v&16?cs(g):0,Re=v&32?cs(g):0,v=cs(h),
ke=v&1,Kr=v&4,Wy=v&256,g=v&512,iZ=v&1024,jZ=v&2048,v=cs(h),kZ=ke?cs(h):0,lZ=Kr?cs(h):0,ke=[],MJ=[],Xy=[],Yy=[],NJ=0,Se=0,$b=0;$b<v;$b++){var mZ=Wy?cs(h):ta;g&&ke.push(cs(h));var sd=Re;Kr&&0==$b?sd=lZ:iZ&&(sd=cs(h));MJ.push(sd);sd=jZ?cs(h):0;0==$b&&(NJ=sd);Xy.push(Se+sd);Yy.push($b);Se+=mZ}zb(Yy,function(a,b){return Xy[a]-Xy[b]});h=[];for($b=0;$b<v;$b++)h[Yy[$b]]=$b;Se=ca?4:0;$b=16*v;sd=68+Se+k.size+$b+(l?l.size:0)+(e?e.size:0);c=sd-c.size;ta=new es(sd);fs(ta,sd);fs(ta,1836019558);gs(ta,d);fs(ta,sd-
24);fs(ta,1953653094);fs(ta,16+Se);fs(ta,1952868452);fs(ta,131072|(ca?2:0));fs(ta,x);ca&&fs(ta,ja);gs(ta,k);fs(ta,20+$b);fs(ta,1953658222);fs(ta,16781057);fs(ta,v);fs(ta,ba+kZ+c);for($b=Se=0;$b<v;$b++)k=h[$b],d=Math.round(b*k/v),k=Math.round(b*(k+1)/v)-d,sd=d-Se+NJ,fs(ta,k),fs(ta,g?ke[$b]:r),fs(ta,MJ[$b]),fs(ta,sd),Se+=k;l&&(fs(ta,l.size),fs(ta,1935763823),fs(ta,0),fs(ta,1),fs(ta,p+c));e&&gs(ta,e);return ta.data.buffer}
function bs(a,b,c){for(;hs(a,b);){var d=is(a,b);if(d.type==c)return d;b+=d.size}return null}function is(a,b){var c=a.getUint32(b),d=a.getUint32(b+4);return new js(a,b,c,d)}function ks(a,b){return 4294967296*a.getUint32(b)+a.getUint32(b+4)}function hs(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}function js(a,b,c,d){this.data=a;this.offset=b;this.size=c;this.type=d;this.g=8}
function cs(a){var b=a.data.getInt32(a.offset+a.g);a.g+=4;return b}function ds(a){var b=ks(a.data,a.offset+a.g);a.g+=8;return b}js.prototype.skip=function(a){this.g+=a};function es(a){this.data=new DataView(new ArrayBuffer(a));this.g=0}function fs(a,b){a.data.setInt32(a.g,b);a.g+=4}function gs(a,b){for(var c=0;c+4<=b.size;)fs(a,b.data.getUint32(b.offset+c)),c+=4;for(;c<b.size;)a.data.setUint8(a.g++,b.data.getUint8(b.offset+c++))};function ls(a,b,c,d){this.info=a;this.buffer=b;this.$=c;this.g=d}function Sr(a){return a.$?new DataView(a.buffer,a.$.start,a.$.length):new DataView(a.buffer)}function ms(a){if(a.info.j!=a.$.length)return!1;if(1==a.info.g.info.g){if(8>a.info.j||4==a.info.type)return!0;var b=Sr(a),c=b.getUint32(0,!1),b=b.getUint32(4,!1);if(2==a.info.type)return c==a.info.j&&1936286840==b;if(3==a.info.type&&0==a.info.k)return 1836019558==b||1936286840==b||1937013104==b||1718909296==b}return!0}
function ns(a){var b;if(1==a.info.g.info.g){var c=NaN,d=NaN;b=0;for(a=new DataView(a.buffer);hs(a,b);){var e=is(a,b);if(1936286840==e.type)d=e.data.getUint32(e.offset+16);else if(1836476516==e.type)var d=e,g=d.data.getUint8(d.offset+8)?28:20,d=d.data.getUint32(d.offset+g);else 1952867444==e.type&&(c=e,c=c.data.getUint8(c.offset+8)?ks(c.data,c.offset+12):c.data.getUint32(c.offset+12));g=e.type;b=1836019558==g||1836019574==g||1953653094==g?b+8:b+e.size}b=c/d}else b=NaN;return b};function os(){this.ia=0;this.g=new Float64Array(128);this.j=new Float64Array(128);this.o=1;this.k=!1}f=os.prototype;f.Sj=function(a){return this.g[a]};f.wf=function(a){return this.j[a]/this.o};f.qj=function(a){a=this.Wk(a);return 0<=a?a/this.o:-1};f.Wk=function(a){return a+1<this.ia||this.k?this.j[a+1]-this.j[a]:-1};f.Og=function(){return 0};f.Gb=function(){return this.ia-1};f.$e=function(){return this.k?this.j[this.ia]/this.o:NaN};f.Et=function(){return 0};f.Bt=function(){return this.ia};f.Tt=function(){return""};
f.ih=function(a){a=xb(this.j.subarray(0,this.ia),a*this.o);return 0<=a?a:Math.max(0,-a-2)};f.An=function(){return 0<=this.Gb()};function ps(a){if(a.g.length<a.ia+1){var b=2*a.g.length,b=b+2,c=a.g;a.g=new Float64Array(b+1);var d=a.j;a.j=new Float64Array(b+1);for(b=0;b<a.ia+1;b++)a.g[b]=c[b],a.j[b]=d[b]}}function qs(a,b){this.j=a;this.g=0;this.k=b||0}function rs(a){for(var b=ss(a,!1);236==b;)ts(a),b=ss(a,!1);return b}
function us(a){var b=ss(a,!0),c=a.j.byteOffset+a.g,d=Math.min(b,a.j.buffer.byteLength-c),c=new DataView(a.j.buffer,c,d),c=new qs(c,a.k+a.g);a.g+=b;return c}function vs(a){for(var b=ss(a,!0),c=ws(a),d=1;d<b;d++)c=256*c+ws(a);return c}function ts(a){var b=ss(a,!0);a.g+=b}function ss(a,b){var c=ws(a);if(1==c){for(var d=c=0;7>d;d++)c=256*c+ws(a);return c}for(var e=128,d=0;6>d&&e>c;d++)c=256*c+ws(a),e*=128;return b?c-e:c}function ws(a){return a.j.getUint8(a.g++)};function xs(a,b,c,d,e,g){Fr.call(this,a,b);this.initRange=c;this.indexRange=d;this.o=null;this.index=new os;this.j=e;this.lastModified=g}B(xs,Fr);f=xs.prototype;f.Sc=function(){return!(!this.g||!this.index.An())};
f.Ys=function(a){var b=new Gr(1,this,this.initRange),c=new Gr(2,this,this.indexRange),d=[],e=[b];Ir(b,c)?e.push(c):(d.push(new Mr([c])),a=0);isNaN(this.j)?a=0:a>this.j&&(a=this.j);b=e[e.length-1];c=b.$.end-e[0].$.start+1;a>c&&(a=qr(b.$.end+1,a-c),e.push(new Gr(4,this,a)));d.push(new Mr(e));return d};
f.Qp=function(a){if(1==a.info.type){if(this.g)return;this.g=new Uint8Array(a.buffer,a.$.start,a.$.length)}else if(2==a.info.type){if(this.o||0<=this.index.Gb())return;if(1==this.info.g){var b=this.index,c=Sr(a),d=a.info.$.start;a=0;var e=c.getUint32(0,!1),g=c.getUint8(a+8);a+=12;var h=c.getUint32(a+4,!1);b.o=h;a+=8;0==g?(g=c.getUint32(a,!1),h=c.getUint32(a+4,!1),a+=8):(g=4294967296*c.getUint32(a,!1)+c.getUint32(a+4,!1),h=4294967296*c.getUint32(a+8,!1)+c.getUint32(a+12,!1),a+=16);b.g[0]=h+(e+d);b.j[0]=
g;b.k=!0;d=c.getUint16(a+2,!1);a+=4;for(e=0;e<d;e++){var k=c.getUint32(a,!1),h=c.getUint32(a+4,!1);a+=12;g=b;g.ia++;ps(g);g.g[g.ia]=g.g[g.ia-1]+k;g.j[g.ia]=g.j[g.ia-1]+h}}else this.o=Sr(a)}if(Zq(this.info)&&this.g&&this.o){c=new DataView(this.g.buffer,this.g.byteOffset,this.g.byteLength);b=this.index;g=this.o;c=new qs(c);if(440786851==rs(c)&&(ts(c),408125543==rs(c))){d=c;e=d.g;a=ss(d,!0);d.g=e;for(var c=us(c),d=c.k+c.g,l=rs(c);357149030!=l;)ts(c),l=rs(c);c=us(c);h=1E6;k=1E9;for(e=0;!(c.g>=c.j.byteLength);)if(l=
rs(c),2807729==l)h=vs(c);else if(2807730==l)k=vs(c);else if(17545==l){var e=c,l=ss(e,!0),p=0;4==l?p=e.j.getFloat32(e.g):8==l&&(p=e.j.getFloat64(e.g));e.g+=l;e=p}else ts(c);b.o=k/h;c=new qs(g);if(475249515==rs(c)){for(c=us(c);!(c.g>=c.j.byteLength);)if(l=rs(c),187==l){g=us(c);h=d;if(179!=rs(g))k=null;else if(k=vs(g),183!=rs(g))k=null;else{g=us(g);for(l=h;!(g.g>=g.j.byteLength);)241==rs(g)?l=vs(g)+h:ts(g);k=[l,k]}g=b;h=k[0];k=k[1];ps(g);g.g[g.ia]=h;g.j[g.ia]=k;g.ia++}else ts(c);c=a+d;a=e;ps(b);b.k=
!0;b.j[b.ia]=a;b.g[b.ia]=c}}this.o=null}};function ys(a,b,c,d){for(var e=[];b<=a.index.Gb();b++){var g;g=a.index;var h=b;g=qr(g.Sj(h),h+1<g.ia||g.k?g.g[h+1]-g.g[h]:-1);var h=a.index.wf(b),k=a.index.qj(b),l=Math.max(0,c-g.start),p=Math.min(g.end+1,c+d)-(g.start+l);e.push(new Gr(3,a,g,b,h,k,l,p,b==a.index.Gb()&&l+p==g.length));if(g.start+l+p>=c+d)break}return new Mr(e)}
f.Bs=function(a){for(var b=this.yi(a.info),c=[],d=a.g,e=0;e<b.length;e++){var g=qr(b[e].$.start+b[e].k-a.info.$.start+a.$.start,b[e].j);c.push(new ls(b[e],a.buffer,g,d));d=!1}return c};f.yi=function(a){for(var b=0;b<this.index.Gb()&&a.$.start>=this.index.Sj(b+1);)b++;return ys(this,b,a.$.start,a.$.length).g};f.Bg=function(a){return this.Sc()?!0:isNaN(this.j)?!1:a.$.end+1<this.j};
function zs(a,b,c){a.Bg(b);if(!a.Sc())return c=qr(b.$.end+1,c),c.end+1>a.j&&(c=new or(c.start,a.j-1)),a=[new Gr(4,b.g,c)],new Mr(a);4==b.type&&(b=a.yi(b),b=b[b.length-1]);var d=0,e=b.$.start+b.k+b.j;3==b.type&&(d=b.o,e==b.$.end+1&&(d+=1));return ys(a,d,e,c)}f.Li=function(a,b){var c=this.index.ih(a);b&&(c=Math.min(this.index.Gb(),c+1));return ys(this,c,this.index.Sj(c),0)};f.Gl=function(){var a;if(a=this.Sc()&&!isNaN(this.j))a=this.index,a=(a.k?a.g[a.ia]:-1)!=this.j;return a};f.vi=function(){return!0};function As(a,b){U.call(this);this.M=!!b;this.D=this.duration=0;this.isLive=this.A=!1;this.G=A();this.B=Infinity;this.g={};this.I=a||"";this.J=this.F=0;this.C=!1;this.j=this.k=0;this.o=null}B(As,U);As.prototype.getErrorCode=function(){return 3>this.j?"manifest.net":"manifest.net.retryexhausted"};function Bs(a){return Jb(a.g,function(a){return!!a.info.o},a)}var Cs=/PT(([0-9]*)H)?(([0-9]*)M)?(([0-9.]*)S)?/;
function Ds(a,b){var c=new As;E(a,function(a){var e=a.type,g=a.itag,h=null;br(e)&&(h=a.size.split("x"),h=new er(+h[0],+h[1],+a.fps));var k=null,l=null;ar(e)&&(k=new Wq,a.name&&(l=new cr(a.name,a.lang,0,"1"==a.isDefault)));a.xtags&&(g=a.itag+";"+a.xtags);var p=parseInt(a.bitrate,10)/8,r=null;b&&a.drm_families&&(r={},E(a.drm_families.split(","),function(a){r[a]=b[a]}));e=new Yq(g,e,k,h,l,r,p);h=pr(a.init);k=pr(a.index);l=Es(a.url,e,a.s);p=parseInt(a.clen,10);a=parseInt(a.lmt,10);l&&(c.g[g]=new xs(l,
e,h,k,p,a))});return c}function Fs(a){if(!a)return 0;var b=Cs.exec(a);return b?3600*parseFloat(b[2]||0)+60*parseFloat(b[4]||0)+parseFloat(b[6]||0):parseFloat(a)}function Es(a,b,c){a=new hr(a);a.set("alr","yes");a.set("keepalive","yes");a.set("ratebypass","yes");a.set("mime",encodeURIComponent(b.mimeType.split(";")[0]));c&&a.set("signature",Vq(c));return a}
function Gs(a){var b=rr(a,"id"),b=b.replace(":",";");"captions"==b&&(b=rr(a,"lang"));var c=rr(a,"mimeType"),d=rr(a,"codecs"),c=d?c+'; codecs="'+d+'"':c,d=parseInt(rr(a,"bandwidth"),10)/8,e=null;br(c)&&(e=new er(parseInt(rr(a,"width"),10),parseInt(rr(a,"height"),10),parseInt(rr(a,"frameRate"),10)));var g=null,h=null;if(ar(c)){g=new Wq;var h=rr(a,"lang")||"",k=sr(a,"Role");if(k){var k=rr(k,"value")||"",l="invalid";"main"==k?l="original":"dub"==k?l="dubbed":"descriptive"==k?l="descriptive":"commentary"==
k&&(l="commentary");h="invalid"!=l&&h?new cr(rr(a,"yt:langName")||h+" - "+l,h,0,"original"==l):null}else h=null}k=null;if(a=sr(a,"ContentProtection"))if((k=a.attributes.schemeIdUri)&&"http://youtube.com/drm/2012/10/10"==k.textContent)for(k={},a=a.firstChild;null!=a;a=a.nextSibling)"yt:SystemURL"==a.nodeName&&(k[a.attributes.type.textContent]=a.textContent.trim());else k=null;return new Yq(b,c,g,e,h,k,d)}
function Hs(a,b,c,d){a.k=1;b=b||a.I;c={format:"RAW",method:"GET",Lb:y(a.N,a,c,d||null)};a.M&&(c.timeout=15E3);Fj(b,c)}
As.prototype.N=function(a,b,c){this.J=c.status;if(200<=c.status&&400>c.status){b=c.responseText;c=(new DOMParser).parseFromString(b,"text/xml").getElementsByTagName("MPD")[0];b=c.getElementsByTagName("Representation");if(0<c.getElementsByTagName("SegmentList").length){this.B=1E3*Fs(rr(c,"minimumUpdatePeriod"))||Infinity;this.isLive=Infinity>this.B;this.A=!0;this.D=parseInt(rr(c,"yt:earliestMediaSequence"),10);this.o||(this.o=new Xr);Zr(this.o,c);for(c=0;c<b.length;c++){var d=Gs(b[c]);if(!this.g[d.id]){var e=
Es(sr(b[c],"BaseURL").textContent,d),g=sr(b[c],"Initialization"),h=rr(g,"sourceURL"),g=pr(rr(g,"range"));this.g[d.id]=new Pr(e,d,h,null===g?void 0:g)}for(var d=this.g[d.id],e=this.o,h=d,g=1,k=h.info.mimeType.split(";"),l=[];0<g&&k.length;)l.push(k.shift()),g--;k.length&&l.push(k.join(";"));g=l[0];h=e.k[h.info.id]||e.j[g]||e.g||null;e=vb(sr(b[c],"SegmentList").getElementsByTagName("SegmentURL"),h.o);h=h.g;g=[];for(k=0;k<e.length;k++)g.push(Is(e[k],h[k]));d.update(g,this.isLive,this.D)}$r(this.o)}else i:for(this.duration=
Fs(rr(c,"mediaPresentationDuration")),c=0;c<b.length;c++){g=b[c];d=Gs(g);h=sr(g,"BaseURL");e=Es(h.textContent,d);k=sr(g,"SegmentBase");g=pr(k.attributes.indexRange.value);k=pr(k.getElementsByTagName("Initialization")[0].attributes.range.value);h=parseInt(h.getAttribute("yt:contentLength"),10);d=new xs(e,d,k,g,h,NaN);if(!d)break i;this.g[d.info.id]=d}this.G=A();this.k=2;this.C=!1;this.j=0;a&&a(this);this.publish("loaded")}else this.k=3,this.C?this.j+=1:this.C=!0,b&&b(c),this.publish("load_error")};
function Is(a,b){var c=a.getAttribute("media"),d=null,e=a.getAttribute("mediaRange");null!=e&&(0<=parseInt(e.split("-")[1],10)?d=pr(e):c=c+"?range="+e);return new tr(b.j,b.Tg,b.g,c,d)}function Js(a){for(var b in a.g)if(a.g[b].index)return a.g[b].index.$e();return NaN}function Ks(a){for(var b in a.g)if(a.g[b].index)return a.g[b].index.Et();return 0}function Ls(a,b){Hb(a.g,function(a){Hb(b,function(b,e){a.B.g.set(e,b)})})};function Ms(a){this.languageCode=a.languageCode;this.languageName=a.languageName||null;this.Al=a.languageOriginal||null;this.id=a.id||null;this.isDefault=a.is_default||!1}Ms.prototype.toString=function(){return this.languageCode+"_"+this.languageName+"_"+this.Al+"_"+this.id+"_"+this.isDefault};function Ns(a){a=a||{};this.G=a.formats||"";this.A=a.format||1;if(1==this.A)for(var b=this.G.split(","),c=0;c<b.length;c++){var d=parseInt(b[c],10);isNaN(d)||(this.A=Math.max(d,this.A))}this.j=a.languageCode||"";this.B=a.languageName;this.o=a.kind||"";this.k=a.name;this.xa=a.id;this.I=a.is_servable;this.isDefault=a.is_default;this.C=a.is_translateable;this.F=a.url||null;this.D=a.vss_id||"";this.g=null;a.translationLanguage&&(this.g=new Ms(a.translationLanguage))}
function Os(a){var b={format:a.A,languageCode:a.j,languageName:a.B,displayName:Ps(a),kind:a.o,name:a.k,id:a.xa,is_servable:a.I,is_default:a.isDefault,is_translateable:a.C};a.g&&(a=a.g,b.translationLanguage={languageCode:a.languageCode,languageName:a.languageName,languageOriginal:a.Al,id:a.id,is_default:a.isDefault});return b}
function Ps(a){var b=[a.B];if("asr"==a.o){var c=Nf("YTP_ASR_SETTINGS_LABEL");b.push(" (",c,")")}a.k&&b.push(" - ",a.k);a.g&&b.push(" >> ",a.g.languageName);return b.join("")}Ns.prototype.toString=function(){var a=[this.j,": ",this.k," (",this.o,")"];this.g&&a.push(" >> ",this.g.languageCode);return a.join("")};Ns.prototype.equals=function(a){if(!a)return!1;var b=this.g,c=a.g;if(b&&c){if(b.languageCode!=c.languageCode)return!1}else if(b||c)return!1;return this.j==a.j&&this.k==a.k&&this.o==a.o};function Qs(a,b,c,d){this.id=a;this.name=b;this.language=c;this.isDefault=d;this.captionTracks=[];this.Im=this.Xs=null;this.Hs=0}Qs.prototype.toString=function(){return this.name};function Rs(a,b,c){this.j=a||0;this.g=b||0;this.k=c}Rs.prototype.equals=function(a){return this.j==a.j&&this.g==a.g&&this.k==a.k};function Ss(a,b,c){return new Rs(dr[a]||0,dr[b]||0,c)}var Ts=Ss("auto","large",!1),Us=Ss("auto","auto",!1);function Vs(a){var b=dr.auto;return a.j==b&&a.g==b}function Ws(a){return a.k&&!!a.j&&a.j==a.g}
function Xs(a,b){if(b.k&&Vs(b))return Us;if(b.k||Vs(a))return b;if(a.k||Vs(b))return a;var c=a.j&&b.j?Math.max(a.j,b.j):a.j||b.j,d=a.g&&b.g?Math.min(a.g,b.g):a.g||b.g,c=Math.min(c,d);return c==a.j&&d==a.g?a:new Rs(c,d,!1)}function Ys(a){var b=a.g||a.j;return Sb(function(a){return dr[a]==b})||"auto"}Rs.prototype.o=function(a){if(!a.video)return!1;a=dr[a.video.quality];return this.j<=a&&(!this.g||this.g>=a)};function Zs(a,b){this.j=a;this.g=b||null;this.audioTracks=[];if(this.g){var c={};E(this.g,y(function(a){if(a.Ae&&!c[a.id]){var b=new Qs(a.id,a.Ae.name,a.Ae.language,a.Ae.isDefault);c[a.id]=b;this.audioTracks.push(b)}},this))}}function $s(a,b){var c=b||Us,c=eb(a.j,y(c.o,c)),c=F(c,function(a){return a.video.quality});wb(c);return c}function at(a){var b={};F(a.j,function(a){b[a.video.quality]=a.video.fps});return b};function bt(a,b,c,d){this.k={};this.J=a;this.G=b;a=c.split("#");this.D=parseInt(a[0],10);this.C=parseInt(a[1],10);this.j=parseInt(a[2],10);this.Cb=parseInt(a[3],10);this.rows=parseInt(a[4],10);this.A=parseInt(a[5],10);this.o=a[6];this.B=a[7];this.I=d}f=bt.prototype;f.getHeight=function(){return this.C};f.zf=function(){return this.j};f.isDefault=function(){return-1!=this.o.indexOf("default")};
function ct(a,b){var c=a.G,c=c.replace("$N",a.o),c=c.replace("$L",a.J.toString()),c=c.replace("$M",b.toString());a.B&&(c=Je(c,{sigh:a.B}));return c}function dt(a,b){var c=Math.floor(b/(a.Cb*a.rows)),d=a.Cb*a.rows,e=b%d,g=e%a.Cb,e=Math.floor(e/a.Cb),h=a.rows,k=a.fn()+1-d*c;k<d&&(h=Math.ceil(k/a.Cb));return{url:ct(a,c),jF:g,Cb:a.Cb,row:e,rows:h,iu:a.D*a.Cb,hu:a.C*h}}f.Ai=function(a){var b=this.zf()-1;a=0==this.A?Math.round(a*this.j/this.I):Math.round(1E3*a/this.A);return Ic(a,0,b)};
f.fn=function(){return this.j-1};f.$s=function(){return this.j?0:-1};f.Ft=function(){};function et(a,b){this.g=this.j(a,b);this.k={};1<this.g.length&&this.g[0].isDefault()&&this.g.splice(0,1)}et.prototype.j=function(a,b){for(var c=[],d=a.split("|"),e=d[0],g=1;g<d.length;g++){var h=this.o(g-1,e,d[g],b);180>h.getHeight()&&c.push(h)}return c};et.prototype.o=function(a,b,c,d){return new bt(a,b,c,d)};function ft(a,b){var c=a.k[b];if(c)return c;for(var c=a.g.length,d=0;d<c;d++)if(a.g[d].D>=b)return a.k[b]=d;a.k[b]=c-1;return c-1}et.prototype.A=function(){};function gt(a,b,c,d){c=c.split("#");c=[c[1],c[2],0,c[3],c[4],-1,c[0],""].join("#");bt.call(this,a,b,c,0);this.g=null;this.F=d?3:0}B(gt,bt);f=gt.prototype;f.zf=function(){return this.g?this.g.Bt():-1};f.Ai=function(a){var b=this.rows*this.Cb*this.F,c=-1,d=-1,e=this.g;e&&(c=e.Gb(),d=e.ih(a));return d>c-b?-1:d};f.fn=function(){return this.g?this.g.Gb():-1};f.$s=function(){return this.g?this.g.Og():-1};f.Ft=function(a){this.g=a?a.index:null};function ht(a,b){this.B=b;et.call(this,a,0)}B(ht,et);ht.prototype.j=function(a,b){return ht.H.j.call(this,"$N|"+a,b)};ht.prototype.o=function(a,b,c){return new gt(a,b,c,this.B.isLive)};ht.prototype.A=function(a){for(var b=0;b<this.g.length;b++)this.g[b].Ft(a)};var it={0:"MONO",1:"LEFT_RIGHT",2:"RIGHT_LEFT",3:"TOP_BOTTOM",4:"BOTTOM_TOP"};var jt={cJ:1,dJ:2,eJ:3};var kt,lt;var mt=Nc,mt=mt.toLowerCase();if(Ia(mt,"android")){var nt=mt.match(/android\D*(\d\.\d)[^\;|\)]*[\;\)]/);if(nt)kt=Number(nt[1]);else{var ot={cupcake:1.5,donut:1.6,eclair:2,froyo:2.2,gingerbread:2.3,honeycomb:3,"ice cream sandwich":4,jellybean:4.1},pt=mt.match("("+Pb(ot).join("|")+")");kt=pt?ot[pt[0]]:0}}else kt=void 0;lt=0<=kt;var qt=Xh||Yh;function rt(){return st("(ps3; leanback shell)")}function tt(){return st("safari/")&&st(" version/8")}function st(a){var b=Nc;return b?0<=b.toLowerCase().indexOf(a):!1};var ut,vt;function wt(){var a=t("yt.player.utils.videoElement_");a||(a=document.createElement("video"),q("yt.player.utils.videoElement_",a,void 0));return a}function xt(){if(2.2==kt)return!0;var a=wt();try{return!(!a||!a.canPlayType||!a.canPlayType('video/mp4; codecs="avc1.42001E, mp4a.40.2"')&&!a.canPlayType('video/webm; codecs="vp8.0, vorbis"'))}catch(b){return!1}};function zt(){if(void 0==ut&&(ut=!1,window.crypto&&window.crypto.getRandomValues))try{var a=new Uint8Array(1);window.crypto.getRandomValues(a);ut=!0}catch(b){}if(ut){var a=Array(16),c=new Uint8Array(16);window.crypto.getRandomValues(c);for(var d=0;d<a.length;d++)a[d]=c[d]}else for(a=Array(16),c=0;16>c;c++){for(var d=A(),e=0;e<d%23;e++)a[c]=Math.random();a[c]=Math.floor(256*Math.random())}return a}
function At(){for(var a=zt(),b=[],c=0;c<a.length;c++)b.push("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-_".charAt(a[c]&63));return b.join("")}function Bt(){return F(zt(),function(a){return(a&15).toString(16)}).join("")};function Ct(a,b,c){b={cpn:b};c&&(b.ibw="1369843");return{url:Je(a,b),type:"application/x-mpegURL",quality:"auto",itag:"93"}};function Dt(a,b){return void 0==b?a:"1"==b?!0:!1}function Et(a,b,c){for(var d in c)if(c[d]==b)return c[d];return a}function Ft(a,b){return void 0==b?a:Number(b)}function Gt(a,b){return void 0==b?a:b.toString()}function Ht(a,b){var c=Gt(a,b);c&&(c=Wf(c));return c}var It=/^([0-9\.]+)\:([0-9\.]+)$/;function Jt(a){if(a&&(a=a.match(It))){var b=parseFloat(a[2]);if(0<b)return parseFloat(a[1])/b}return NaN}function Kt(a,b){var c=dr.auto,d=dr[b];return d>=dr.medium?new Rs(d,c,!1):d>=c?new Rs(c,d,!1):a};var Lt=[.25,.5,1,1.25,1.5,2];function Mt(a,b){return window.location.protocol+"//i1.ytimg.com/vi/"+escape(a)+"/"+(b||"hqdefault.jpg")};var Nt,Ot,Pt;var Qt=window.performance||window.mozPerformance||window.msPerformance||window.webkitPerformance||{},Rt=y(Qt.clearResourceTimings||Qt.webkitClearResourceTimings||Qt.mozClearResourceTimings||Qt.msClearResourceTimings||Qt.oClearResourceTimings||u,Qt),St=Qt.mark?function(a){Qt.mark(a)}:u;
function Tt(a,b,c){Ut(c)[a]=b||A();b||St(a);if(Hf("CSI_LOG_ON_TICK")&&(b=Hf("TIMING_ACTION"),a=Ut(c),b&&a._start&&Vt(c))){b=!0;var d=Hf("TIMING_WAIT",[]);if(d.length)for(var e=0,g=d.length;e<g;++e)if(!(d[e]in a)){b=!1;break}(b||c)&&Wt(c)}}function Xt(a,b){var c=Ut(b);return a in c}function Yt(a,b,c){Zt(c).info[a]=b}function Vt(a){a=Ut(a);if(a.aft)return a.aft;for(var b=Hf("TIMING_AFT_KEYS",["ol"]),c=b.length,d=0;d<c;d++){var e=a[b[d]];if(e)return e}return NaN}
function $t(a){return Math.round(Qt.timing.navigationStart+a)}
function au(a){var b=window.location.protocol,c=Qt.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=$t(d.startTime),a.wfce=$t(d.responseEnd));c&&0<c.startTime&&0<c.responseEnd&&(a.wffs=$t(c.startTime),a.wffe=$t(c.responseEnd))}
function Wt(a){var b=Ut(a),c=Zt(a).span,d=Zt(a).info,e=t("yt.timing.reportbuilder_");if(e){if(e=e(b,c,d,a))bu(e),cu(a),Rt();return NaN}e={v:2,s:"youtube",action:Hf("TIMING_ACTION")};if(Qt.now&&Qt.timing){var g=Qt.timing.navigationStart+Qt.now(),g=Math.round(A()-g);d.yt_hrd=g}var g=Hf("TIMING_INFO")||{},h;for(h in g)d[h]=g[h];h=d.srt;delete d.srt;var k;h||0===h||(k=Qt.timing||{},h=Math.max(0,k.responseStart-k.navigationStart),isNaN(h)&&d.pt&&(h=d.pt));if(h||0===h)d.srt=h;d.h5jse&&(g=window.location.protocol+
t("ytplayer.config.assets.js"),(g=Qt.getEntriesByName?Qt.getEntriesByName(g)[0]:null)?d.h5jse=Math.round(d.h5jse-g.responseEnd):delete d.h5jse);b.aft=Vt(a);g=b._start;if(!Nt){k||(k=Qt.timing||{});var l;t:if(l=k,l.msFirstPaint)l=Math.max(0,l.msFirstPaint);else{var p=window.chrome;if(p&&(p=p.loadTimes,ka(p))){var p=p(),r=1E3*Math.min(p.requestTime||Infinity,p.startLoadTime||Infinity),r=Infinity===r?0:l.navigationStart-r;l=Math.max(0,Math.round(1E3*p.firstPaintTime+r)||0);break t}l=0}0<l&&l>g&&(b.fpt=
l);l=k.redirectEnd-k.redirectStart;0<l&&(c.rtime_=l);l=k.domainLookupEnd-k.domainLookupStart;0<l&&(c.dns_=l);l=k.connectEnd-k.connectStart;0<l&&(c.tcp_=l);l=k.connectEnd-k.secureConnectionStart;k.secureConnectionStart&&0<l&&(c.stcp_=l);l=k.responseStart-k.requestStart;0<l&&(c.req_=l);l=k.responseEnd-k.responseStart;0<l&&(c.rcv_=l);Hf("EXP_WEBFONT_ENABLED")&&Qt.getEntriesByType&&au(b);Nt=!0}for(var v in d)"_"!=v.charAt(0)&&(e[v]=d[v]);d={};v=[];for(var x in b)"_"!=x.charAt(0)&&(l=Math.max(Math.round(b[x]-
g),0),d[x]=l,v.push(x+"."+l));e.rt=v.join(",");b={};x=[];for(var ca in c)"_"!=ca.charAt(0)&&(b[ca]=c[ca],x.push(ca+"."+c[ca]));e.it=x.join(",");(c=t("ytdebug.logTiming"))&&c(e,d,b);cu(a);Rt();Hf("EXP_DEFER_CSI_PING")?(du(),Ot=e,Pt=N(du,0)):bu(e);return d.aft+(h||0)}function bu(a){Hf("EXP_DEFER_CSI_PING")&&(O(Pt),Ot=null);var b="https:"==window.location.protocol?"https://gg.google.com/csi":"http://csi.gstatic.com/csi",c="",d;for(d in a)c+="&"+d+"="+a[d];ag(b+"?"+c.substring(1))}
function du(a){Ot&&(a&&(Ot.yt_fss=a),bu(Ot))}function Ut(a){return Zt(a).tick}function Zt(a){return t("ytcsi."+(a||"")+"data_")||cu(a)}function cu(a){var b={tick:{},span:{},info:{}};q("ytcsi."+(a||"")+"data_",b,void 0);return b};var eu,fu;var gu=Nc,hu=gu.match(/\((iPad|iPhone|iPod)( Simulator)?;/);if(!hu||2>hu.length)eu=void 0;else{var iu=gu.match(/\((iPad|iPhone|iPod)( Simulator)?; (U; )?CPU (iPhone )?OS (\d_\d)[_ ]/);eu=iu&&6==iu.length?Number(iu[5].replace("_",".")):0}(fu=0<=eu)&&0<=Nc.search("Safari")&&Nc.search("Version");var ju={ZI:0,jI:1,NI:2};function ku(a,b,c){c=c||{};Mj(c.Va,c.pageId,y(lu,m,a,b,c),c.onError)}
function lu(a,b,c){var d={};0===b?d.action_like_video=1:1===b?d.action_dislike_video=1:d.action_indifferent_video=1;d.video_id=a;d.plid=c.playbackId;c.playlistId&&(d.list=c.playlistId);c.Va&&(d.authuser=c.Va);c.pageId&&(d.pageid=c.pageId);a={screen:He({h:screen.height,w:screen.width,d:screen.colorDepth}),session_token:Hf("XSRF_TOKEN")};c.LF&&(a.station_id=c.LF);Fj("/watch_actions_ajax",{format:"XML",method:"POST",Be:d,cb:a,Qa:c.Qa,onError:c.onError,Lb:c.Lb})};function mu(a,b,c){this.errorCode=a;this.j=b;this.g=c||""};function nu(a,b){this.g=a;this.j=b}nu.prototype.clone=function(){return new nu(this.g,this.j)};function ou(a){this.g=[];if(a)t:{var b,c;if(a instanceof ou){if(b=a.Ka(),c=a.La(),0>=a.Ra()){a=this.g;for(var d=0;d<b.length;d++)a.push(new nu(b[d],c[d]));break t}}else b=Pb(a),c=Ob(a);for(d=0;d<b.length;d++)pu(this,b[d],c[d])}}function pu(a,b,c){var d=a.g;d.push(new nu(b,c));b=d.length-1;a=a.g;for(c=a[b];0<b;)if(d=b-1>>1,a[d].g>c.g)a[b]=a[d],b=d;else break;a[b]=c}f=ou.prototype;
f.remove=function(){var a=this.g,b=a.length,c=a[0];if(!(0>=b)){if(1==b)mb(a);else{a[0]=a.pop();for(var a=0,b=this.g,d=b.length,e=b[a];a<d>>1;){var g=2*a+1,h=2*a+2,g=h<d&&b[h].g<b[g].g?h:g;if(b[g].g>e.g)break;b[a]=b[g];a=g}b[a]=e}return c.j}};f.La=function(){for(var a=this.g,b=[],c=a.length,d=0;d<c;d++)b.push(a[d].j);return b};f.Ka=function(){for(var a=this.g,b=[],c=a.length,d=0;d<c;d++)b.push(a[d].g);return b};f.ag=function(a){return gb(this.g,function(b){return b.j==a})};f.clone=function(){return new ou(this)};
f.Ra=function(){return this.g.length};f.isEmpty=function(){return lb(this.g)};f.clear=function(){mb(this.g)};function qu(){ou.call(this)}B(qu,ou);function ru(a,b){U.call(this);this.g=a;this.k=new qu;this.A={};this.o=b||""}B(ru,U);ru.prototype.j=!1;function su(a,b,c){var d;for(c=ft(a.g,c);0<=c;){d=a.g.g[c];if(d=d.k[Math.floor(b/(d.Cb*d.rows))]?dt(d,b):null)return d;c--}return dt(a.g.g[0],b)}function tu(a,b,c){c=ft(a.g,c);for(var d,e;0<=c;c--)if(d=a.g.g[c],e=Math.floor(b/(d.Cb*d.rows)),!d.k[e]){d=a;var g=c,h=g+"-"+e;d.A[h]||(d.A[h]=!0,pu(d.k,g,{Zp:g,$p:e}))}uu(a)}
function uu(a){if(!a.j)if(a.k.isEmpty())a.j=!1;else{a.j=!0;var b=a.k.remove(),c=new Image;a.o&&(c.crossOrigin=a.o);c.src=ct(a.g.g[b.Zp],b.$p);c.onload=y(a.B,a,b.Zp,b.$p)}}ru.prototype.B=function(a,b){this.j=!1;var c=this.g.g[a];c.k[b]=!0;uu(this);var d,e=c.Cb*c.rows;d=b*e;c=Math.min(d+e-1,c.zf()-1);d=[d,c];this.publish("l",d[0],d[1])};function vu(a,b,c){this.j=a;this.g=b;this.k=c}var wu={playready:["com.youtube.playready","com.microsoft.playready"],widevine:["com.widevine.alpha"],clearkey:["org.w3.clearkey","webkit-org.w3.clearkey"]},xu=["widevine","playready"];function yu(){var a=window.MediaKeys||window.MSMediaKeys;return a&&a.isTypeSupported?a:null}function zu(a,b,c,d){return!(0!=b.indexOf("audio/mp4")||"widevine"!=c||!a.canPlayType(b)||!a.canPlayType('video/mp4; codecs="avc1"',d))}
function Au(a,b,c){var d,e=yu();if(e)d=function(a,b){return e.isTypeSupported(b,a)};else if(a.addKey||a.webkitAddKey)d=function(b,c){return a.canPlayType(b,c)};else return null;for(var g=0;g<xu.length;g++){var h=xu[g];if(c[h])for(var k=wu[h],l=0;l<k.length;l++){var p=k[l];if(d(b,p)||zu(a,b,h,p))return new vu(h,p,c[h])}}return null};function Bu(a){return(a=a.exec(Nc))?a[1]:""}var Cu=function(){if(Vh)return Bu(/Firefox\/([0-9.]+)/);if(Sc||Rc)return ed;if($h)return Bu(/Chrome\/([0-9.]+)/);if(ai)return Bu(/Version\/([0-9.]+)/);if(Xh||Yh){var a;if(a=/Version\/(\S+).*Mobile\/(\S+)/.exec(Nc))return a[1]+"."+a[2]}else{if(Zh)return(a=Bu(/Android\s+([0-9.]+)/))?a:Bu(/Version\/([0-9.]+)/);if(Wh)return Bu(/Camino\/([0-9.]+)/)}return""}();function Du(a,b){this.j=a;this.k=b;this.o=0;Object.defineProperty(this,"timestampOffset",{get:this.RD,set:this.SD});Object.defineProperty(this,"buffered",{get:this.QD})}f=Du.prototype;f.append=function(a){this.j.webkitSourceAppend(this.k,a)};f.abort=function(){this.j.webkitSourceAbort(this.k)};f.QD=function(){return this.j.webkitSourceState==this.j.SOURCE_CLOSED?new Eu:this.j.webkitSourceBuffered(this.k)};f.RD=function(){return this.o};
f.SD=function(a){this.o=a;this.j.webkitSourceTimestampOffset(this.k,a)};function Eu(){this.length=0};function Fu(a){this.activeSourceBuffers=this.sourceBuffers=[];this.g=a;this.j=NaN;this.k=0;Object.defineProperty(this,"duration",{get:this.HB,set:this.KB});Object.defineProperty(this,"readyState",{get:this.IB});this.g.addEventListener("webkitsourceclose",y(this.JB,this),!0)}f=Fu.prototype;f.addEventListener=function(a,b,c){this.g.addEventListener(a,b,c)};f.KC=function(){return this.g.webkitMediaSourceURL};
f.addSourceBuffer=function(a){var b=(this.k++).toString();this.g.webkitSourceAddId(b,a);a=new Du(this.g,b);this.sourceBuffers.push(a);return a};f.IB=function(){switch(this.g.webkitSourceState){case this.g.SOURCE_CLOSED:return"closed";case this.g.SOURCE_OPEN:return"open";case this.g.SOURCE_ENDED:return"ended"}return""};f.endOfStream=function(a){var b=this.g.EOS_NO_ERROR;"network"==a?b=this.g.EOS_NETWORK_ERR:"decode"==a&&(b=this.g.EOS_DECODE_ERR);this.g.webkitSourceEndOfStream(b)};f.JB=function(){mb(this.sourceBuffers)};
f.HB=function(){return this.j};f.KB=function(a){this.j=a;this.g.webkitSourceSetDuration&&this.g.webkitSourceSetDuration(a)};function Gu(a){this.o=[];this.G=a||null}function Hu(a,b,c,d){for(var e=0;e<c.length;e++)a.listen(b,c[e],d)}Gu.prototype.listen=function(a,b,c){c=y(c,this.G||this);a.addEventListener(b,c,!1);this.o.push(a,b,c)};Gu.prototype.removeAll=function(){if(this.o)for(;this.o.length;){var a=this.o.shift(),b=this.o.shift(),c=this.o.shift();a.removeEventListener&&a.removeEventListener(b,c)}};Gu.prototype.da=function(){return null===this.o};Gu.prototype.dispose=function(){this.removeAll();this.o=null};function Iu(a,b,c,d){Gu.call(this);this.j=this.g=null;this.B=b;this.k=window.MediaSource?new window.MediaSource:window.WebKitMediaSource?new window.WebKitMediaSource:new Fu(a);this.A="";this.C=null;Hu(this,this.k,["sourceopen","webkitsourceopen"],z(this.F,d,c));Hu(this,this.k,["sourceclose","webkitsourceclose"],this.D)}B(Iu,Gu);function Ju(a,b){a.C=b}function Ku(a){if(!a.A){var b;b=a.k;b=b.KC?b.g.webkitMediaSourceURL:window.URL.createObjectURL(b);a.A=b}return a.A}
Iu.prototype.Xe=function(a){Lu(this)?this.k.duration=a:this.B=a};function Lu(a){return"open"==a.k.readyState}function Mu(a){return"closed"==a.k.readyState}function Nu(a){return a.g.updating||a.j.updating}function Ou(a){return a.g?!!a.g.appendBuffer:!(!window.MediaSource||!window.MediaSource.isTypeSupported)}Iu.prototype.F=function(a,b){isNaN(this.B)||(this.k.duration=this.B,this.B=NaN,this.g=this.k.addSourceBuffer(a),this.j=this.k.addSourceBuffer(b),this.C&&(this.C(this),this.C=null))};
Iu.prototype.D=function(){this.dispose()};Iu.prototype.dispose=function(){var a=this.A;if(a)try{window.URL.revokeObjectURL(a)}catch(b){}this.A="";Iu.H.dispose.call(this)};function Pu(a){if(/opus/.test(a)&&$h&&!(0<=Ra(Cu,"38")))return!1;if(window.MediaSource&&window.MediaSource.isTypeSupported)return window.MediaSource.isTypeSupported(a);if(/webm/.test(a)&&!st("(ps4; leanback shell)"))return!1;'audio/mp4; codecs="mp4a.40.2"'==a&&(a='video/mp4; codecs="avc1.4d401f"');return!!wt().canPlayType(a)};function Qu(a,b){this.k=a;this.g=b;this.j={}}function Ru(a){return a.g?a.k:Je(a.k,a.j)};function Su(a,b){this.j=new Qu(a,!1);this.g=b}var Tu="9h8(H*".split(""),Uu="h98H(*".split(""),Vu="oMavAV".split("");Su.prototype.getInfo=function(){return this.g};Su.prototype.Mn=function(){return this.g.video.quality};var Wu={'video/mp4; codecs="avc1.42001E, mp4a.40.2"':"maybe"},Xu={"application/x-mpegURL":"maybe"},Yu={"application/x-mpegURL":"maybe"};
function Zu(a,b){if(!xt())return[];var c=$u(a,b);a=!c.length&&b?$u(a,!1):c;for(var d={},c=wt(),e=0;e<a.length;e++){var g=a[e];if(av(c,g.getInfo().mimeType)&&!bv(g)){var h=g.Mn();if(!d[h]||Zq(d[h].getInfo()))d[h]=g}}var k=[];E(fr,function(a){(g=d[a])&&k.push(g)});return k}function av(a,b){var c;if(!(c=a.canPlayType(b))){var d;Yh?d=Yu[b]:2.2==kt?d=Wu[b]:st("android")&&st("chrome")&&(d=Xu[b]);c=d||""}return c}function bv(a){return a.g.id in cv||rt()&&"5"==a.g.id}
function dv(){return st("android")&&st("chrome")&&!gd(29)?!1:!!(window.MediaSource||window.WebKitMediaSource||window.HTMLMediaElement&&HTMLMediaElement.prototype.webkitSourceAddId)}var cv={52:!0,53:!0,54:!0,55:!0,60:!0,79:!0,87:!0};function ev(a){var b=[];E(a,function(a){a.url&&b.push(fv(a.url,a.type,"medium","0"))});return b}function fv(a,b,c,d,e){var g=new Wq,h=gr[c];h||(c="small",h=gr.small);c=new er(h[0],h[1],0,e?-1:0,c);b=unescape(b.replace(/&quot;/g,'"'));return new Su(a,new Yq(d,b,g,c))}
function $u(a,b){for(var c=[],d=0;d<a.length;d++){var e=a[d],g;if(g=Tc&&0!=e.g.video.g)g=1==e.getInfo().g;g||0!=e.g.video.g==b&&c.push(e)}return c}function gv(a,b){for(var c=[],d=0;d<a.length;d++){var e=a[d];if(e.sig||e.s){var g=e.sig||Vq(e.s);e.url=xj(e.url,{signature:g})}e.url&&c.push(fv(e.url,e.type,e.quality,e.itag,e.stereo3d))}return Zu(c,!!b)}function hv(a){a=ev(a);return Zu(a,!1)}
function iv(a,b){if(!b.g)return a[0];for(var c=0;c<a.length;c++){var d=a[c].getInfo();if(dr[d.video.quality]<=b.g)return a[c]}return a[a.length-1]}
function jv(a){function b(a){return!!c[a]}var c={},d,e;for(e in a.g){var g=a.g[e];if(Pu(g.info.mimeType)){if(g.info.o){d||(d=wt());if(!Au(d,g.info.mimeType,g.info.o))continue;if(261==g.info.id&&(rt()||!d.canPlayType('audio/mp4; codecs="aac51"',"com.widevine.alpha")))continue}c[g.info.k]=c[g.info.k]||[];c[g.info.k].push(g.info)}}a=Tu;if(st("cros armv7")||st("windows nt 5.1"))a=Uu;d=G(a,b);a=G(Vu,b);if(!d||!a)return null;"9"==d&&c.h&&(e=function(a,b){return Math.max(a,b.video.height)},g=fb(c["9"],e,
0),fb(c.h,e,0)>1.5*g&&(d="h"));d=c[d];a=c[a];zb(d,function(a,b){return b.video.width-a.video.width||b.pa-a.pa});zb(a,function(a,b){return b.pa-a.pa});return new Zs(d,a)};function kv(a){U.call(this);this.Dq=new J(0,0);this.Ja=this.ja=!1;this.Uh="";this.Vh=this.ua=!1;this.hb={};this.captionTracks=[];this.wa=[];this.S=new Qs("und","Default","und",!0);this.Pt=new Tq(this.Ot,5E3,this);T(this,this.Pt);this.G=[];this.o={};this.keywords={};this.A={};lv(this,a)}B(kv,U);kv.C=/\/img\/watermark\/youtube_(hd_)?watermark(-vfl\S{6})?.png$/;kv.g=1;kv.o=-21;kv.A=18E3;kv.B="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(" ");
kv.j={iurl:"default.jpg",iurlmq:"mqdefault.jpg",iurlhq:"hqdefault.jpg",iurlsd:"sddefault.jpg",iurlmaxres:"maxresdefault.jpg"};kv.k=["www.youtube.com","manifest.googlevideo.com"];f=kv.prototype;f.adModule=!1;f.adaptiveFormats="";f.rr=null;f.allowEmbed=!0;f.yb=!1;f.kh="";f.Nm="";f.uk=!1;f.Wp=kv.g;f.Kh=null;f.ls=null;f.author="";f.Jh=0;f.Fi=!1;f.Fp=3;f.qr=!1;f.pf="";f.za="";f.contentCheckOk=!1;f.be=0;f.Qk=!1;f.$h=!1;f.Dk=!1;f.cf=0;f.uf=!1;f.Ho=!1;f.Ih=0;f.Wn=!1;f.kg=!1;f.yo=!0;f.Yh=!1;f.Xl=!1;f.Wl=!1;
f.Wa=!1;f.Yl=!1;f.Jk=!1;f.zd=!1;f.qp=!1;f.Zl=!1;f.Jy=0;f.lengthSeconds=0;f.hk=0;f.au=!1;f.racyCheckOk=!1;f.Kd=1;f.Kl=Us;f.Hp=0;f.Fk=!1;f.startSeconds=0;f.ck=null;f.Gn=2;f.pi=Us;f.ys=!1;f.Yg=!1;f.de=null;f.title="";f.ee="";f.Xj=null;f.jk="vvt";f.bu=!1;f.zo=!1;f.clipStart=0;f.clipEnd=Infinity;
function mv(a,b){var c=b||{};c.iv_invideo_url&&(a.kh=Wf(c.iv_invideo_url));c.iv_cta_url&&(a.Nm=Wf(c.iv_cta_url));c.cta_conversion_urls&&(a.Pe=c.cta_conversion_urls);a.author=Gt(a.author,c.author);a.Fi=Dt(a.Fi,c.cc_asr);var d=c.ttsurl||a.pf;d&&Rf(d)?a.pf=d:a.pf=Ht(a.pf,c.ttsurl);c.caption_tracks&&c.caption_audio_tracks&&(nv(a,c.caption_tracks),a.wa=ov(c.caption_audio_tracks));a.za=Gt(a.za,c.cpn);a.subscribed=Gt(a.subscribed,c.subscribed);a.Gn=Et(a.Gn,c.sentiment,ju);a.title=Gt(a.title,c.title);a.na=
Gt(a.na,c.ypc_preview);a.au=Dt(a.au,c.paygated);a.bu=Dt(a.bu,c.requires_purchase);c.keywords&&(a.keywords=pv(c.keywords));c.rvs&&(a.M=ov(c.rvs));a.contentCheckOk=Dt(a.contentCheckOk,"1"==c.cco);a.racyCheckOk=Dt(a.racyCheckOk,"1"==c.rco);a.B=Gt(a.B,c.oauth_token);E(kv.B,function(a){a in c&&(this.o[a]=c[a])},a)}
function lv(a,b){var c=b||{};a.yb="1"!=c.hlsdvr||ai||Yh&&5>eu?!1:!0;a.uk="1"==c.infringe||"1"==c.muted;a.Mh=c.authkey;a.Va=c.authuser;a.za||(a.za=c.cpn||At());a.lx=A();a.Kv=c.t;a.Qk=Dt(a.Qk,c.cenchd);a.$h=Dt(a.$h,c.enable_cardio);a.Dk=Dt(a.Dk,c.enable_cardio_before_playback);a.cf=Ft(a.cf,c.end||c.endSeconds);a.Ga=Gt(a.Ga,c.itct);a.yo="1"!=c.no_get_video_log;a.Yh="1"==c.tmi;a.Xl=Dt(a.Xl,c.noiba);a.Wl="1"==c.livemonitor;a.Wa="1"==c.live_playback;a.Yl=Dt(a.Yl,c.mdx);a.Jk=Dt(a.Jk,c.on3g);a.Zl=Dt(a.Zl,
c.utpsa);for(var d in kv.j){var e=c[d+"_webp"]||c[d];Uf(e)&&(a.hb[kv.j[d]]=e)}a.D=Gt(a.D,c.vvt);a.pz=c.osig;a.uo=c.ptchn;a.vo=c.oid;a.J=c.ptk;a.wo=c.pltype;a.playbackId=c.plid;a.F=c.eventid;a.wb=c.osid;a.Qu=c.vm;a.Pu=c.of;a.playlistId=Gt(a.playlistId,c.list);a.Qo=c.pyv_view_beacon_url;a.iw=c.pyv_quartile25_beacon_url;a.jw=c.pyv_quartile50_beacon_url;a.kw=c.pyv_quartile75_beacon_url;a.hw=c.pyv_quartile100_beacon_url;c.remarketing_url&&(a.remarketingUrl=c.remarketing_url);c.ppv_remarketing_url&&(a.ppvRemarketingUrl=
c.ppv_remarketing_url);a.purchaseId=c.purchase_id;a.Gp=c.sdetail;!a.Xa&&c.session_data&&(a.Xa=rj(c.session_data,"&").feature);a.xq=1==Ft(a.xq?1:0,c.is_fling);a.Fb=Gt(a.Fb,c.ctrl);a.Xb=Gt(a.Xb,c.ytr);a.Nh=c.ytrcc;a.zo="1"==c.skip_kansas_logging;a.Yb=Gt(a.Yb,c.cl);a.Kl=Kt(a.Kl,c.vq);a.pi=Kt(a.pi,c.suggestedQuality);a.ka=c.approx_threed_layout||0;a.ys="1"==c.threed_converted;a.startSeconds=Ft(a.startSeconds,c.start||c.startSeconds);a.Vn=Dt(a.Vn,c.ssrt);a.videoId=c.docid||c.video_id||c.videoId||a.videoId;
a.Un=Gt(a.Un,c.vss_credentials_token);a.jk=Gt(a.jk,c.vss_credentials_token_type);qv(a,c.watermark);a.Eo=Gt(a.Eo,c.ypc_gid);a.vb=Gt(a.vb,c.ypc_license_session_token);a.heartbeatToken=Gt(a.heartbeatToken,c.heartbeat_token);a.Lh=Ft(a.Lh,c.heartbeat_interval);a.Qh=Ft(a.Qh,c.heartbeat_retries);if(c.ad3_module||c.ad_module)"1"==c.allow_html5_ads?(a.adModule=!0,"1"==c.ad_preroll&&a.G.push("ad")):"1"!=c.supported_without_ads&&(a.Ho=!0);c.adaptive_fmts&&(a.adaptiveFormats=c.adaptive_fmts);void 0!=c.atc&&(a.ba=
c.atc);c.license_info&&(a.rr=rv(c.license_info));c.allow_embed&&(a.allowEmbed="1"==c.allow_embed);c.autonav&&(a.Wn="1"==c.autonav);c.autoplay&&(a.kg="1"==c.autoplay);c.iv_load_policy&&(a.qa=sv(c.iv_load_policy,a.qa));c.cc_load_policy&&(a.Fp=sv(c.cc_load_policy,2));"0"==c.dash&&(a.qr=!0);c.dashmpd&&(a.N=Je(c.dashmpd,{cpn:a.za}),d=/\/s\/([0-9A-F.]+)/,e=d.exec(a.N))&&(e=Vq(e[1]),a.N=a.N.replace(d,"/signature/"+e));c.delay&&(a.be=Wa(c.delay));void 0!=c.end&&(a.clipEnd=c.end);c.fresca_preroll&&a.G.push("fresca");
c.idpj&&(a.Ih=Wa(c.idpj));c.url_encoded_fmt_stream_map&&(a.ee=c.url_encoded_fmt_stream_map);c.hlsvp&&(a.U=c.hlsvp);c.length_seconds&&(a.lengthSeconds=Wa(c.length_seconds));c.ldpj&&(a.hk=Wa(c.ldpj));c.loudness&&(a.perceptualLoudnessDb=c.loudness,a.Wp=tv(a));c.partnerid&&(a.W=Wa(c.partnerid));c.probe_url&&(a.probeUrl=Xf(Je(c.probe_url,{cpn:a.za})));c.pyv_billable_url&&-1!=c.pyv_billable_url.search(xf)&&(a.ga=c.pyv_billable_url);c.pyv_conv_url&&-1!=c.pyv_conv_url.search(xf)&&(a.ha=c.pyv_conv_url);c.video_masthead_ad_quartile_urls&&
(d=c.video_masthead_ad_quartile_urls,a.Ha=d.quartile_0_url,a.Mo=d.quartile_25_url,a.No=d.quartile_50_url,a.Oo=d.quartile_75_url,a.Lo=d.quartile_100_url);c.spacecast_address&&(a.G.push("spacecast"),a.ib=c.spacecast_address);void 0==c.start||"1"==c.resume||a.Wa||(a.clipStart=c.start);c.threed_module&&!c.threed_converted&&(a.ma=c.threed_module,a.Cx=6);c.two_stage_token&&(a.Kh=c.two_stage_token);c.url_encoded_third_party_media&&(a.de=ov(c.url_encoded_third_party_media));c.watch_ajax_token&&(a.ls=c.watch_ajax_token);
c.ypc_module&&a.G.push("ypc");c.ypc_clickwrap_module&&a.G.push("ypc_clickwrap");a.xo=Gt(a.xo,c.ucid);E("baseUrl uid oeid ieid ppe engaged subscribed".split(" "),function(a){c[a]&&(this.A[a]=c[a])},a);a.A.focEnabled=Dt(a.A.focEnabled,c.focEnabled);a.A.rmktEnabled=Dt(a.A.rmktEnabled,c.rmktEnabled);a.o=c;mv(a,c);uv(a)}function uv(a){(a.Wa||a.Wl)&&"1"==a.o.as3fb||!dv()||a.qr||(a.adaptiveFormats?a.k=Ds(vv(a,a.adaptiveFormats),a.rr):a.N&&(a.uf=!0,a.ja=!0))}
f.Pz=function(a){this.da()||(this.k=a,Tt("mrc"),this.k&&(this.lengthSeconds=this.k.duration||Js(this.k)||this.lengthSeconds),this.im())};f.im=function(){this.da()||(this.uf=!1,this.ua&&!wv(this)?this.publish("dataloaderror",new mu("fmt.noneavailable",!0)):this.publish("dataloaded",this.o))};
function xv(a){if(!a.da()){a.g=null;a.P=null;a.I=null;if(a.Z){var b=vv(a,a.Z);a.I=gv(b,!1);a.g=new Zs(F(a.I,function(a){return a.getInfo()}))}!a.g&&a.k&&(a.g=jv(a.k));if(a.g)yv(a);else{if(a.de&&a.qp)a.I=hv(a.de);else{b=vv(a,a.ee);if(a.U){var c=Ct(a.U,a.za,!a.Jk);b.push(c)}a.I=gv(b,!!a.ma||a.Yg)}a.I.length&&(a.g=new Zs(F(a.I,function(a){return a.getInfo()})))}a.Hp=Math.min(.8*a.lengthSeconds,180)}}function zv(a){return a.j&&a.j.o||null}f.Ac=function(a){return w(this.keywords[a])?this.keywords[a]:null};
function Av(a){a.Xj||(a.o.storyboard_spec?a.Xj=new et(a.o.storyboard_spec,Wa(a.o.length_seconds)):a.o.live_storyboard_spec&&a.k&&(a.Xj=new ht(a.o.live_storyboard_spec,a.k)));return a.Xj}function Bv(a){var b=Av(a);!a.ck&&b&&(a.ck=new ru(b),T(a,a.ck));return a.ck}function Cv(a){return a.k&&!isNaN(Ks(a.k))?Ks(a.k):0}function Dv(a){return!a.da()&&!(!a.videoId&&!a.de)}function wv(a){return Dv(a)&&!a.uf&&!a.ja&&(!!(a.k||a.ee||a.de||a.Z||a.U)||H(a.G,"fresca")||H(a.G,"ypc"))}
function Ev(a,b,c){a.da()||(a.Uh=b,a.ua=!!c,a.uf=!0,a.Ot())}f.Ot=function(){Fj(this.Uh,{format:"RAW",method:"GET",context:this,Qa:this.cG,onError:this.ru});Tt("vir")};function Fv(a,b){if(30==a.W){var c=a.hb["default.jpg"];return c?c:a.videoId?Je("//docs.google.com/vt",{id:a.videoId,authuser:a.Va,authkey:a.Mh}):"//docs.google.com/images/doclist/cleardot.gif"}b||(b="hqdefault.jpg");return(c=a.hb[b])||"sddefault.jpg"==b||"maxresdefault.jpg"==b?c:Mt(a.videoId,b)}
f.cG=function(a){if(!this.da()){var b=a.responseText;b?(this.uf=!1,a=tj(b),"fail"==a.status?this.publish("onStatusFail",a):(Tt("virc"),lv(this,a),this.im())):this.ru(a)}};f.ru=function(a){if(!this.da()){var b="manifest.net",c=!0,d="rc."+a.status;this.ua&&(this.Vh?b="manifest.net.retryexhausted":(this.Vh=!0,c=!1,b=a.status?"manifest.net.badstatus":"manifest.net.connect",this.Pt.start()));this.publish("dataloaderror",new mu(b,c,d))}};
function tv(a){return a.perceptualLoudnessDb?(a=Math.min(kv.o-a.perceptualLoudnessDb,0),Math.pow(10,a/20)):kv.g}function sv(a,b){var c=parseInt(a,10);return Nb(jt,c)?c:b}function ov(a){a=a.split(",");return a=a.map(function(a){return tj(a)})}function vv(a,b){var c=ov(b);E(c,function(a){a.url&&(a.url=Je(a.url,{cpn:this.za}))},a);return c}function pv(a){var b={};E(a.split(","),function(a){var d=a.split("=");2==d.length?b[d[0]]=d[1]:b[a]=!0});return b}
function qv(a,b){if(b){var c=b.split(",");2<=c.length&&(a.V=c[1],Uf(a.V)&&-1==a.V.search(kv.C)||(a.V=""))}}function rv(a){a=ov(a);var b={};E(a,function(a){var d=a.family;a=a.url;d&&a&&(b[d]=a)});return b}function nv(a,b){for(var c=ov(b),d=0;d<c.length;d++){var e=c[d];a.captionTracks.push(new Ns({sH:e.is_translatable,languageCode:e.language_code,languageName:e.name,url:e.base_url,tH:e.vss_id}))}}
function yv(a){for(var b=a.g?a.g.audioTracks:[],b=b.concat(a.S),c=0;c<a.wa.length;c++)for(var d=a.wa[c],e=0;e<b.length;e++){var g=b[e];if(g.name==d.audio_track_language_name||g==a.S&&"original"==d.audio_content_type){g.languageCode=d.language_code;for(var h=d.caption_track_indices.split(","),k=0;k<h.length;k++)g.captionTracks[k]=a.captionTracks[parseInt(h[k],10)];d.default_caption_track_index&&(g.Xs=a.captionTracks[parseInt(d.default_caption_track_index,10)]);d.forced_caption_track_index&&(g.Im=a.captionTracks[parseInt(d.forced_caption_track_index,
10)]);g.Hs=parseInt(d.visibility,10)}}}function Gv(a,b){return!!a.o[b]}function Hv(a){return a.Wa&&!a.yb}function Iv(a){return a.Wa&&a.yb};function Jv(a,b){this.type=a||"";this.id=b||""}function Kv(a){return new Jv(a.substr(0,2),a.substr(2))}Jv.prototype.toString=function(){return this.type+this.id};function Lv(a){U.call(this);this.views=0;this.g=[];this.j=[];this.Ua=Math.max(0,a.index||0);this.Hf=!!a.loop;this.startSeconds=a.startSeconds||0;this.Uq="1"==a.mob;this.title=a.playlist_title||"";this.description=a.playlist_description||"";this.author=a.author||"";a.video_id&&(this.g[this.Ua]=a);a.api&&("string"==typeof a.api&&16==a.api.length?a.list="PL"+a.api:a.playlist=a.api);this.o=0;if(a.list)switch(a.listType){case "user_uploads":Mv(this,a.list);break;case "user_favorites":Nv(this,a.list);break;
case "search":Ov(this,a.list);break;default:a.playlist_length&&(this.uc=a.playlist_length),this.k=Kv(a.list),0==a.fetch&&a.videoList?Pv(this,a.videoList):Qv(this)}else if(a.playlist){var b=a.playlist.toString().split(",");0<this.Ua&&(this.g=[]);E(b,function(a){a&&this.g.push({video_id:a})},this);this.uc=this.g.length;b=F(this.g,function(a){return a.video_id});Rv(this,"/list_ajax?style=json&action_get_templist=1",{video_ids:b.join(",")});this.Cd=!0}else a.videoList&&Pv(this,a.videoList);Sv(this,!!a.shuffle);
a.suggestedQuality&&(this.quality=a.suggestedQuality)}B(Lv,U);f=Lv.prototype;f.Hf=!1;f.startSeconds=0;f.Tr=!1;f.Ua=0;f.title="";f.uc=0;f.Uq=!1;f.Cd=!1;f.oh=!1;f.ae=null;function Tv(a){return a.Hf||a.Ua+1<a.uc}function Uv(a){var b=a.Ua+1;b>=a.uc&&(b=a.Hf?0:-1);return b}function Vv(a){var b=Uv(a);if(-1==b)return null;Wv(a,b);return Xv(a,b)}function Yv(a){var b;b=a.Ua-1;0>b&&(b=a.Hf?a.uc-1:-1);if(-1==b)return null;Wv(a,b);return Xv(a,a.Ua)}
function Xv(a,b){var c=void 0!=b?b:a.Ua,c=a.g&&c in a.g?a.g[a.j[c]]:null,d=null;c&&(d=new kv(c),d.startSeconds=a.startSeconds||d.clipStart||0,a.k&&(d.playlistId=a.k.toString()));return d}
function Sv(a,b){a.Tr=b;var c=a.j&&null!=a.j[a.Ua]?a.j[a.Ua]:a.Ua;a.j=[];for(var d=0;d<a.g.length;d++)a.j.push(d);a.Ua=c;a.o++;if(a.Tr){c=a.j[a.Ua];for(d=1;d<a.j.length;d++){var e=Math.floor(Math.random()*(d+1)),g=a.j[d];a.j[d]=a.j[e];a.j[e]=g}for(d=0;d<a.j.length;d++)a.j[d]==c&&(a.Ua=d);a.o++}a.publish("shuffle")}function Wv(a,b){a.Ua=Ic(b,0,a.uc-1);a.startSeconds=0}
function Mv(a,b){a.oh||(a.k=new Jv("UU","PLAYER_"+b),Rv(a,"/list_ajax?style=json&action_get_user_uploads_by_user=1",{username:b}))}function Nv(a,b){a.oh||(a.k=new Jv("FL","PLAYER_"+b),Rv(a,"/list_ajax?style=json&action_get_favorited_by_user=1",{username:b}))}function Ov(a,b){if(!a.oh){a.k=new Jv("SR",b);var c={search_query:b};a.Uq&&(c.mob="1");Rv(a,"/search_ajax?style=json&embeddable=1",c)}}
function Qv(a){if(!a.oh){var b={list:a.k},c=Xv(a);c&&c.videoId&&(b.v=c.videoId);Rv(a,"/list_ajax?style=json&action_get_list=1",b)}}function Rv(a,b,c){Fj(Je(b,c),{format:"JSON",Qa:function(a,b){Zv(this,b)},onError:function(){this.publish("error")},context:a})}
function Zv(a,b){if(b.video&&b.video.length){a.title=b.title;a.description=b.description;a.views=b.views;a.author=b.author;var c=Xv(a);a.g=[];E(b.video,function(a){a&&(a.video_id=a.encrypted_id,this.g.push(a))},a);a.uc=a.g.length;$v(a,c);Sv(a,!1);a.oh=!1;a.Cd=!0;a.o++;a.ae&&a.ae()}}function Pv(a,b){0<a.Ua&&(a.g=[]);E(b,function(a){this.g.push(a)},a);a.uc=a.g.length;a.Cd=!0}
function $v(a,b){if(b){var c=b.videoId;if(!a.g[a.Ua]||a.g[a.Ua].video_id!=c)for(var d=0;d<a.g.length;d++)if(a.g[d].video_id==c){a.Ua=d;break}}}f.L=function(){this.ae=null;zi(this.g);Lv.H.L.call(this)};function aw(){var a={volume:100,muted:!1},b=ej("yt-player-volume")||{};a.volume=isNaN(b.volume)?100:Ic(b.volume,0,100);a.muted=void 0==b.muted?!1:b.muted;return a}function bw(a){cj("yt-player-bandwidth",a,2592E3)};function cw(a,b,c){w(a)&&(a={mediaContentUrl:a,startSeconds:b,suggestedQuality:c});b=a;c=/\/([ve]|embed)\/([^#?]+)/.exec(a.mediaContentUrl);b.videoId=c&&c[2]?c[2]:null;return dw(a)}function dw(a,b,c){if(la(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}};function ew(a,b){S.call(this);this.app=a;this.yd=null;this.Oe={};this.gg={};this.k={};this.j={};this.g=null;this.playerType=b;W(this,"cueVideoById",this.HA);W(this,"loadVideoById",this.Am);W(this,"cueVideoByUrl",this.IA);W(this,"loadVideoByUrl",this.YA);W(this,"playVideo",this.pj);W(this,"pauseVideo",this.pauseVideo);W(this,"stopVideo",this.Fl);W(this,"clearVideo",this.FA);W(this,"getVideoBytesLoaded",this.SA);W(this,"getVideoBytesTotal",this.TA);W(this,"getVideoLoadedFraction",this.Gm);W(this,"getVideoStartBytes",
this.VA);W(this,"cuePlaylist",this.GA);W(this,"loadPlaylist",this.Ar);W(this,"nextVideo",this.Br);W(this,"previousVideo",this.Cr);W(this,"playVideoAt",this.Fm);W(this,"setShuffle",this.fB);W(this,"setLoop",this.cB);W(this,"getPlaylist",this.Qc);W(this,"getPlaylistIndex",this.vr);W(this,"getPlaylistId",this.zr);W(this,"loadModule",this.er);W(this,"unloadModule",this.gr);W(this,"setOption",this.fr);W(this,"getOption",this.mi);W(this,"getOptions",this.OA);W(this,"mute",this.uq);W(this,"unMute",this.wq);
W(this,"isMuted",this.tq);W(this,"setVolume",this.setVolume);W(this,"getVolume",this.sq);W(this,"seekTo",this.Ef);W(this,"getPlayerState",this.getPlayerState);W(this,"getPlaybackRate",this.QA);W(this,"setPlaybackRate",this.eB);W(this,"getAvailablePlaybackRates",this.KA);W(this,"getPlaybackQuality",this.PA);W(this,"setPlaybackQuality",this.Dm);W(this,"getAvailableQualityLevels",this.LA);W(this,"getCurrentTime",this.getCurrentTime);W(this,"getDuration",this.Jg);W(this,"addEventListener",this.addEventListener);
W(this,"removeEventListener",this.removeEventListener);W(this,"getVideoUrl",this.getVideoUrl);W(this,"getDebugText",this.MA);W(this,"getVideoEmbedCode",this.UA);W(this,"getVideoData",this.getVideoData);W(this,"addCueRange",this.yr);W(this,"removeCueRange",this.ZA);W(this,"setSize",this.gB);W(this,"getApiInterface",this.JA);W(this,"destroy",this.destroy);W(this,"showVideoInfo",this.hB);W(this,"hideVideoInfo",this.WA);fw(this,"getInternalApiInterface",this.NA);fw(this,"getAdState",this.getAdState);
fw(this,"isNotServable",this.XA);fw(this,"getUpdatedConfigurationData",this.RA);fw(this,"updateRemoteReceivers",this.iB);fw(this,"sendAbandonmentPing",this.$A);fw(this,"setAutonav",this.aB);fw(this,"setAutonavState",this.bB);fw(this,"setMinimized",this.dB);fw(this,"channelSubscribed",u);fw(this,"channelUnsubscribed",u)}B(ew,S);function W(a,b,c){a.Oe[b]=y(c,a)}function fw(a,b,c){a.gg[b]=y(c,a)}f=ew.prototype;f.JA=function(){return Pb(this.Oe)};f.NA=function(){return Pb(this.gg)};f.K=function(){return this.yd};
f.addEventListener=function(a,b){if(w(b)){var c=function(){t(b).apply(window,arguments)};this.k[b]=c;this.app.subscribe(a,c)}else this.app.subscribe(a,b)};f.ew=function(a,b){var c=w(b)?a+b:a+ma(b);if(!this.j[c]){var d;w(b)?d=function(){t(b).apply(window,arguments)}:d=b;var e=y(function(a){d({target:this.g,data:a})},this);this.j[c]=e;this.addEventListener(a,e)}};f.removeEventListener=function(a,b){if(w(b)){var c=this.k[b];Wb(this.k,b);this.app.unsubscribe(a,c)}else this.app.unsubscribe(a,b)};
f.gw=function(a,b){var c=w(b)?a+b:a+ma(b),d=this.j[c];d&&(this.removeEventListener(a,d),Wb(this.j,c))};f.getPlayerState=function(){return this.app.na};f.Ef=function(a,b){gw(this.app,!0,this.playerType);hw(this.app,a,b,void 0,this.playerType)};f.getCurrentTime=function(){return this.app.getCurrentTime(this.playerType)};f.Jg=function(){return iw(this.app,1)};f.sq=function(){return jw(this.app)};f.setVolume=function(a){this.app.setVolume(a)};f.tq=function(){return this.app.G.muted};f.uq=function(){kw(this.app)};
f.wq=function(){lw(this.app)};f.pj=function(){gw(this.app,!0,this.playerType);mw(this.app,this.playerType)};f.pauseVideo=function(){nw(this.app,this.playerType)};f.Fl=function(){var a=this.app,b=this.playerType;ow(a.g)&&pw(a,!1);qw(a,"play_pause")||rw(a,b)};f.FA=function(){};f.QA=function(){return this.app.ja};f.eB=function(a){sw(this.app,a)};f.KA=function(){return this.app.g.I?Lt:[1]};f.PA=function(){return tw(this.app,this.playerType)};
f.Dm=function(a){var b=this.app,c=uw(b,this.playerType);c&&!b.g.isMobile&&(a=Ss(a,a,!0),vw(c,"p",a))};f.LA=function(){var a=uw(this.app,this.playerType);return a?ww(a):[]};f.SA=function(){return this.Gm()};f.TA=function(){return 1};f.Gm=function(){return xw(this.app.Z)};f.VA=function(){return 0};f.gB=function(){this.app.j.uj()};f.aB=function(a){var b=this.app;a=a?2:1;b.getVideoData().Kd=a;b.Sa("autonavchange",a)};f.bB=function(a){var b=this.app;b.getVideoData().Kd=a;b.Sa("autonavchange",a)};
f.dB=function(a){this.app.g.hs=a};f.er=function(a){this.app.C.isAvailable(a)&&(a=yw(this.app.C,a))&&!a.loaded&&a.load()};f.gr=function(a){this.app.C.isAvailable(a)&&(a=yw(this.app.C,a))&&a.loaded&&a.unload()};f.Am=function(a,b,c){a=zw(this.app,dw(a,b,c),this.playerType);gw(this.app,a,this.playerType)};f.HA=function(a,b,c){Aw(this.app,dw(a,b,c),this.playerType)};
f.YA=function(a,b,c){a=cw(a,b,c);b=zw(this.app,a,this.playerType);gw(this.app,b,this.playerType);b=this.app;(a=ff(new L(a.mediaContentUrl)))&&Bw(b.g,a)};f.IA=function(a,b,c){b=cw(a,b,c);Aw(this.app,b,this.playerType);a=this.app;(b=ff(new L(b.mediaContentUrl)))&&Bw(a.g,b)};f.getVideoUrl=function(){return Cw(this.app)};f.MA=function(){return Dw(this.app)};f.UA=function(){return""};f.yr=function(a,b,c){return Ew(this.app,a,b,c)};
f.ZA=function(a){t:{for(var b=this.app,c=b.k.B.g.g||[],d=0;d<c.length;d++){var e=c[d];if(e.getId()==a){e.Oa.clear();b.k.B.vg(e);b.publish("cuerangesremoved",[e]);a=!0;break t}}a=!1}return a};f.Ar=function(a,b,c,d){var e=this.app;e.P=!1;Fw(e,a,b,c,d);gw(this.app,!0,this.playerType)};f.GA=function(a,b,c,d){var e=this.app;e.P=!0;Fw(e,a,b,c,d)};f.Br=function(){Gw(this.app);gw(this.app,!0,this.playerType)};f.Cr=function(){Hw(this.app);gw(this.app,!0,this.playerType)};
f.Fm=function(a){Iw(this.app,a);gw(this.app,!0,this.playerType)};f.fB=function(a){var b=this.app;b.o&&Sv(b.o,a)};f.cB=function(a){var b=this.app;b.o&&(b.o.Hf=a)};f.Qc=function(){var a=this.app.o;if(!a)return null;for(var b=[],c=0;c<a.uc;c++){var d=Xv(a,c);d&&b.push(d.videoId)}return b};f.vr=function(){var a;a=this.app;a=a.o?a.o.Ua:null;return null==a?-1:a};f.zr=function(){return Jw(this.app)};f.fr=function(a,b,c){return Kw(this.app,a,b,c)};f.mi=function(a,b,c){return Kw(this.app,a,b,c)};
f.OA=function(a){return Lw(this.app,a)};f.getVideoData=function(){var a=uw(this.app,this.playerType),a=a?a.getVideoData():{},a={video_id:a.videoId,author:a.author,title:a.title},b=this.zr();b&&(a.list=b);return a};f.hB=function(){Mw(this.app.j)};f.WA=function(){this.app.j.bm()};f.getAdState=function(){return this.app.getAdState()};f.XA=function(){var a=this.app.getPlayerState();return!(!a||!X(a,128)||5!=Nw[a.g.errorCode])};
f.RA=function(){var a=this.app,b=a.W.clone(),c=b.args,a=Ow(a),d=Yb(a.o);!a.Wa&&0<a.startSeconds&&(d.start=a.startSeconds);ra(c,d);return b};f.iB=function(a,b){var c=this.app;c.F&&Pw(c.F,a,b);Qw(c.g)&&6!=c.I&&(c.g.jg=!lb(a),c.g.jg?(1!=c.I&&3!=c.I||!b||Rw(c.D),a.length&&1!=c.I&&Sw(c)):Rw(c.F))};f.destroy=function(){this.app.dispose()};f.$A=function(){var a=uw(this.app);a&&!X(a.getPlayerState(),128)&&(Tw(a),Uw(a))};
f.L=function(){if(this.yd){for(var a in this.Oe)this.yd[a]=null;for(a in this.gg)this.yd[a]=null;this.yd=null}this.k=this.j=null;ew.H.L.call(this)};function Vw(a,b){ew.call(this,a,b);W(this,"addInfoCardXml",this.NF);W(this,"cueVideoByPlayerVars",this.OF);W(this,"loadVideoByPlayerVars",this.aq);W(this,"preloadVideoByPlayerVars",this.TF);W(this,"seekBy",this.tu);W(this,"enableLicenseIntercept",this.PF);W(this,"updatePlaylist",this.YF);W(this,"resumeLicenseSession",this.UF);W(this,"updateLastActiveTime",this.XF);W(this,"updateVideoData",this.ZF);W(this,"getStoryboardFormat",this.RF);W(this,"getProgressState",this.Cg);W(this,"hideUserInterface",
this.SF);W(this,"showUserInterface",this.WF);W(this,"getHousebrandProperties",this.QF);W(this,"setPlaybackQualityRange",this.VF);W(this,"getCurrentPlaylistSequence",this.MF);W(this,"canPlayType",this.canPlayType)}B(Vw,ew);f=Vw.prototype;f.yr=function(a,b,c,d,e){return Ew(this.app,a,b,c,d,e)};f.NF=function(a,b){var c=this.app;c.g.ba=a;c.g.Fb=b};f.OF=function(a){Aw(this.app,a,this.playerType)};f.getPlayerState=function(a){var b=this.app;return 2==a?b.Ga:b.na};f.aq=function(a){zw(this.app,a,this.playerType)};
f.TF=function(a){var b=this.app,c=this.playerType;c&&1!=c||b.M&&b.M.getVideoData().videoId==a.videoId||(a=new kv(a),Ww(b,a))};f.pj=function(){mw(this.app,this.playerType)};f.Ef=function(a,b){hw(this.app,a,b,void 0,this.playerType)};f.Ar=function(a,b,c,d){var e=this.app;e.P=!1;Fw(e,a,b,c,d)};f.Br=function(){Gw(this.app)};f.Cr=function(){Hw(this.app)};f.Fm=function(a){Iw(this.app,a)};f.tu=function(a,b,c){var d=this.app,e=this.playerType;hw(d,d.getCurrentTime()+a,b,c,e)};
f.PF=function(){var a=this.app;a.ib||(a.ib=!0,a.qa={})};f.YF=function(){var a=this.app;Xw(a,Ow(a));a.Sa("onPlaylistUpdate")};f.UF=function(a,b){var c=this.app,d=c.qa[a];d&&(Yw(d,b),d.start(),delete c.qa[a])};f.XF=function(){Zw()};f.ZF=function(a){var b=uw(this.app,this.playerType||1);b&&(b=b.g,mv(b,a),b.publish("dataupdated"))};f.RF=function(){var a=this.app.getVideoData();return a.o.storyboard_spec||a.o.live_storyboard_spec};f.SF=function(){this.app.j.jh(!1)};f.WF=function(){this.app.j.jh(!0)};
f.QF=function(){var a=this.app.R();return{Zb:a.Zb,zb:a.zb(),nc:a.nc}};f.getVideoData=function(){var a=Vw.H.getVideoData.call(this),b=uw(this.app,this.playerType),b=b?b.getVideoData():{};a.cpn=b.za;a.isLive=b.Wa;return a};f.getCurrentTime=function(a){return a?this.app.getCurrentTime(a):Vw.H.getCurrentTime.call(this)};f.Jg=function(a){return a?iw(this.app,a):Vw.H.Jg.call(this)};
f.Cg=function(){var a=this.app.getVideoData(),b=a.Wa&&!a.yb?this.getCurrentTime():a.k&&!isNaN(Js(a.k))?Js(a.k):a.lengthSeconds,c=!a.Wa||a.yb,d=a.clipEnd,e=a.clipStart,g=this.getCurrentTime(),h=this.Jg(),k;k=(k=uw(this.app,void 0))?$w(k.j):0;return{allowSeeking:c,clipEnd:d,clipStart:e,current:g,displayedStart:-1,duration:h,loaded:k,seekableEnd:b,seekableStart:Cv(a)}};f.Gm=function(a){var b=this.app;return(b.B&&2==b.B.getPlayerType())==(2==a)?xw(b.Z):0};f.canPlayType=function(a){return this.app.canPlayType(a)};
f.VF=function(a,b){ax(this.app,a,this.playerType,b)};f.MF=function(){var a;var b=this.app.getVideoData();a=this.app.getCurrentTime();if(b.k&&b.Wa){var c=b.k.g[b.j.id];c&&c.index?(b=c.index.ih(a),c=c.index.wf(b),a={sequence:b,elapsed:a-c}):a=null}else a=null;return a};function bx(a,b){Vw.call(this,a,b)}B(bx,Vw);f=bx.prototype;f.getPlayerType=function(){return this.playerType};f.Am=function(a,b,c){zw(this.app,dw(a,b,c),this.playerType)};f.pj=function(){mw(this.app,this.playerType)};f.Ef=function(a,b){hw(this.app,a,b,void 0,this.playerType)};function cx(a,b){a.app.j.k.appendChild(b)}f.Pa=function(){return this.app.j.K()};f.R=function(){return this.app.R()};f.Qc=function(){return this.app.o};f.getVideoData=function(){var a=uw(this.app,this.playerType);return a&&a.getVideoData()};
f.isFullscreen=function(){return this.app.R().Ya};f.addEventListener=function(a,b,c){this.app.subscribe(a,b,c)};f.removeEventListener=function(a,b,c){this.app.unsubscribe(a,b,c)};f.Dm=function(a){ax(this.app,a,1)};function dx(a,b){this.start=a;this.end=b;this.g=ma(this)}function ex(a,b){return a.start!=b.start?a.start-b.start:a.end!=b.end?a.end-b.end:a.g!=b.g?a.g-b.g:0}dx.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)};dx.prototype.toString=function(){return"Interval["+this.start+", "+this.end+"]"};function fx(){this.g=[]}function gx(a,b){for(var c=[],d=0;d<a.g.length;++d){var e=a.g[d];e.contains(b)&&c.push(e);if(e.start>b)break}return c}function hx(a,b,c){for(var d=[],e=0;e<a.g.length;++e){var g=a.g[e];if(null!=c&&g.start>c)break;g.start>b&&d.push(g)}return d}function ix(a,b){for(var c=[],d=0;d<a.g.length;++d){var e=a.g[d];e.contains(b)&&c.push(e.end);if(e.start>b){c.push(e.start);break}}c.sort(yb);return c[0]};function jx(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}function kx(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}function lx(a,b){var c=kx(a,b);return 0<=c?a.end(c):NaN}function mx(a){return a&&a.length?a.end(a.length-1):NaN}function nx(a,b){var c=lx(a,b);return 0<=c?c-b:0};function ox(){}var px=fu&&4>eu?.1:0,qx=new ox;f=ox.prototype;f.ld=null;f.dm=!1;function rx(a,b){var c="";b&&(a.ld=b,c=Ru(b));a.src&&""==c||(c&&a.src!=c&&(a.src=c),b&&b.g||a.load())}function sx(a,b){0<a.readyState&&(a.currentTime=Math.max(px,b))}f.getCurrentTime=function(){return this.currentTime||0};function $w(a){return 0<mx(a.buffered)&&a.duration?lx(a.buffered,a.currentTime):0}function xw(a){var b=a.duration||0;return Infinity==b?1:b?$w(a)/b:0}function tx(a){return a.paused||a.ended}
function ux(a){a.ended&&sx(a,0);!a.hasAttribute("src")&&a.ld&&(a.src=Ru(a.ld),a.ld.g||a.load());a.play();fu&&7<=eu&&Bh(a,y(function(){N(y(this.xt,this,this.currentTime,0),500)},a))}f.xt=function(a,b){this.paused||this.currentTime>a||10<b||(this.play(),N(y(this.xt,this,this.currentTime,b+1),500))};f.pauseVideo=function(){this.pause()};function vx(a){a.currentSrc&&(qt&&sx(a,0),Jd(a),a.removeAttribute("src"),a.load(),a.ld&&a.ld.g&&(a.ld=null))}function wx(a){vx(a);a.ld=null}
f.setVolume=function(a,b){this.volume=a/100;this.muted=b};function xx(a,b){a.defaultPlaybackRate=b;a.playbackRate=b}f.WE=function(){this.hasAttribute("controls")&&this.setAttribute("controls","true")};f.XE=function(){this.dm&&!this.muted&&(this.muted=!0)};
ox.prototype.getDebugInfo=function(){return{vct:this.currentTime.toFixed(3),vd:this.duration.toFixed(3),vpl:jx(this.played),vbu:jx(this.buffered),vpa:this.paused,vsk:this.seeking,vpr:this.playbackRate,vrs:this.readyState,vns:this.networkState,vec:this.error?this.error.errorCode:null}};function yx(a,b){this.j=a||64;this.g=b||null}
function zx(a,b,c,d){if(X(a,128))return a;var e=a.j,g=a.g,h=b.target;switch(b.type){case "ended":if(0>=h.networkState||!h.src)break;e=14;g=null;break;case "pause":X(a,256)?(e^=256)||(e=64):X(a,32)||X(a,2)||(e=4,X(a,1)&&X(a,8)&&(e|=1),g=null);break;case "playing":e=8;d&&X(a,1)&&(e|=1);g=null;break;case "abort":if(64==e)break;case "error":t:if((b=h.error)&&b.code){switch(b.code){case b.MEDIA_ERR_NETWORK:b="progressive.net";break;case b.MEDIA_ERR_DECODE:b="fmt.decode";break;case b.MEDIA_ERR_SRC_NOT_SUPPORTED:b=
"fmt.unplayable";break;default:b=null;break t}b={errorCode:b}}else b=null;b&&(g=b,e|=128);break;case "canplay":e&=-2;break;case "progress":X(a,8)&&Ax(c,h)&&(e|=1);break;case "seeked":e&=-17;d||(e&=-2);break;case "seeking":e|=16;0>=nx(h.buffered,h.currentTime)&&(e|=1);e&=-3;break;case "waiting":X(a,2)||(e|=1);break;case "timeupdate":X(a,16)||(e=Ax(c,h)?e|1:e&-2);1<h.readyState&&0<h.currentTime&&(e&=-65);break;default:return a}return Bx(a,e,g)}
function Ax(a,b){if(!a)return!1;var c=nx(b.buffered,b.currentTime);return Cx(a,b.currentTime,A(),c)}function Bx(a,b,c){return b==a.j&&c==a.g||b&128&&!c||b&2&&b&16?a:new yx(b,c)}function Dx(a,b){return Bx(a,a.j|b)}function Ex(a,b){return Bx(a,a.j&~b)}function X(a,b){return!!(a.j&b)}function Fx(a){return X(a,128)?-1:X(a,2)?0:X(a,1)&&!X(a,32)?3:X(a,64)?-1:X(a,8)?1:X(a,4)?2:-1};function Gx(a,b,c){dx.call(this,a,b);a=c||{};this.xa=a.id||"";void 0!=a.priority&&(this.Bh=a.priority);this.namespace=a.namespace||"";this.Oa=new Ai;this.tooltip=a.tooltip;a.style&&(this.style=a.style);a.visible&&(this.visible=a.visible)}B(Gx,dx);f=Gx.prototype;f.xa="";f.Bh=7;f.active=!0;f.visible=!1;f.style="ytp-ad-progress";f.Oa=null;f.namespace="";f.getId=function(){return this.xa};function Hx(a){switch(a.style){case "ytp-chapter-marker":return 8;case "ytp-ad-progress":return 6}}
function Ix(a,b){return a.start==b.start?a.Bh==b.Bh?0:a.Bh<b.Bh?-1:1:a.start<b.start?-1:1}f.toString=function(){return Gx.H.toString.call(this)};function Jx(a,b,c,d){U.call(this);this.D=a;this.C=b;this.B=c;this.F=d;this.o=new tn(250);Dm(this.o,"tick",this.qc,!1,this);T(this,this.o);this.j=[];this.g=new fx}B(Jx,U);f=Jx.prototype;f.ji=!1;f.ug=!1;f.Nl=!1;f.Ml=!1;f.Dg=null;f.Bi=function(a){this.qc();E(arguments,function(a){var c=this.g.g;!c.length||0<ex(a,c[c.length-1])?c.push(a):Eb(c,a,ex)},this);this.qc()};
f.vg=function(a){for(var b=arguments.length-1;0<=b;b--){var c=arguments[b];if(c){var d=this.j.indexOf(c);0<=d&&this.j.splice(d,1);d=this.g.g;c=xb(d,c,ex);0<=c&&pb(d,c)}}this.qc()};f.bf=function(){this.k=Kx(this);this.ug=!0;this.qc()};function Lx(a,b){var c=[];if(!b.length)return c;b.sort(Ix);for(var d=0;d<b.length;d++){var e=b[d];e.active&&-1==a.j.indexOf(e)&&(a.j.push(e),c.push(["onEnter",e]))}return c}
function Mx(a,b){var c=[];if(!b.length)return c;b.sort(Ix);for(var d=0;d<b.length;d++){var e=b[d],g=a.j.indexOf(e);0>g||(a.j.splice(g,1),c.push(["onExit",e]))}return c}
f.qc=function(){this.Ml=!0;if(!this.Nl)for(var a=3;this.Ml&&a;){this.Ml=!1;this.Nl=!0;if(this.ug&&!this.ji){Nx(this);for(var b=Kx(this),c=[],d=[],e=0;e<this.j.length;e++){var g=this.j[e];g.active&&!g.contains(b)&&d.push(g)}c=c.concat(Mx(this,d));d=gx(this.g,b);e=this.B();!X(e,48)&&b>this.k&&(d=d.concat(hx(this.g,this.k,b)));c=c.concat(Lx(this,d));this.k=b;!this.ji&&this.A&&(c.unshift(["onLockBlockExit",this.A]),this.A=null,X(e,2)&&(this.k=2147483647));this.F()&&(b=ix(this.g,this.k),null!=b&&(b=(b-
this.k)/this.C(),this.Dg=vn(y(this.qc,this),b)));Ox(this,c)}this.Nl=!1;a--}};function Ox(a,b){for(var c=0;c<b.length;c++){var d=b[c],e=d[1];"onLockBlockExit"==d[0]||"onLockBlockEnter"==d[0]?a.publish.apply(a,d):e.Oa.publish.apply(e.Oa,d)}}function Nx(a){null!=a.Dg&&(wn(a.Dg),a.Dg=null)}function Kx(a){return X(a.B(),2)?2147483647:1E3*a.D()}f.L=function(){Lm(this.o,"tick",this.qc,!1,this);Nx(this);this.A=this.g=this.j=null;Jx.H.L.call(this)};function Px(a){U.call(this);this.g=a;this.vn&&(a=hk("yt-html5-player-modules::"+this.vn))&&(this.Z=new Si(a))}B(Px,U);f=Px.prototype;f.va="";f.oc="";f.Gd=!1;f.loaded=!1;f.Si=!1;f.Mb=null;f.Id=function(a){var b=sb(arguments),c=y(this.Ec,this),d=y(this.Wc,this);E(b,function(a){a.namespace=this.va;a.Oa.subscribe("onEnter",c);a.Oa.subscribe("onExit",d)},this);this.publish("command_add_cuerange",b,this.g.getPlayerType())};f.Yk=function(a){var b=sb(arguments);this.publish("command_remove_cuerange",b,this.g.getPlayerType())};
function Qx(a){a.publish("command_remove_cuerange_all",a.va,a.g.getPlayerType())}function Rx(a){a.publish("command_preroll_ready",a.va,a.g.getPlayerType())}function Sx(a,b){P(b,a.va);a.g.app.j.ka.appendChild(b)}function Tx(a,b){a.publish("command_show_dialog",b)}f.ng=function(){Tx(this)};f.create=function(){this.Gd||(this.Fa(this.g),P(this.g.Pa(),this.va+"-created"),this.Gd=!0)};f.destroy=function(){this.loaded&&this.unload();fh(this.g.Pa(),this.va+"-created");this.Gd=!1};
f.load=function(){this.loaded=!0;P(this.g.Pa(),this.va+"-loaded");this.publish("loaded",this.va)};f.unload=function(){this.loaded=!1;fh(this.g.Pa(),this.va+"-loaded");this.publish("unloaded",this.va)};f.Ec=function(){};f.Wc=function(){};f.Yd=function(){};function Ux(a,b,c){a.publish("command_navigate_to_url",b,c)}f.log=function(a){this.publish("command_log",this.oc,a)};
function Vx(a,b,c){var d={},e;for(e in b)d[a.va+"_"+e]=b[e];b={};for(var g in c)b[a.va+"_"+g]=c[g];a.publish("command_log_timing",d,b)}f.Zg=function(){return null};function Wx(a,b){if(!a.Z)return null;var c;try{c=a.Z.get(b)}catch(d){a.Z&&a.Z.remove(b)}return c}function Xx(a,b,c){if(a.Z)try{a.Z.set(b,c)}catch(d){}}function Yx(a,b){a.publish("command_disable_controls",b,a.va)}function Zx(a,b){a.publish("command_enable_controls",b,a.va)}function $x(a){a.publish("command_stop_redirect_controls")}
function ay(a){a.publish("command_play",!1,a.g.getPlayerType())}f.pauseVideo=function(){this.publish("command_pause",!1,this.g.getPlayerType())};function by(a,b){a.publish("command_redirected_show_is_playing",b)}function cy(a){return a.g.app.j.j}function dy(a,b,c){a.publish("module_menu_button_add",b,c)}function ey(a,b){a.publish("module_menu_button_remove",b)}function fy(a,b){a.publish("module_menu_item_add",b)}function gy(a,b){a.publish("module_menu_item_remove",b)}
function hy(a){a.publish("module_menu_show")}f.Wf=function(){};f.Vf=function(){return[]};f.Fa=function(){return!1};f.Em=function(){return!0};f.zj=function(a,b){this.Mb&&this.Mb.Yd&&this.Mb.Yd.apply(this.Mb,arguments)};f.ij=function(){};var iy={EH:"YTP_ERROR_ALREADY_PINNED_ON_A_DEVICE",IH:"ERROR_AUTHENTICATION_EXPIRED",JH:"ERROR_AUTHENTICATION_MALFORMED",KH:"ERROR_AUTHENTICATION_MISSING",LH:"ERROR_BAD_REQUEST",RH:"YTP_ERROR_CANNOT_ACTIVATE_RENTAL",ZH:"ERROR_CGI_PARAMS_MALFORMED",$H:"ERROR_CGI_PARAMS_MISSING",iI:"YTP_DEVICE_FALLBACK",oI:"YTP_ERROR_LICENSE",rI:"YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK_FLASH",sI:"YTP_ERROR_GEO_FAILURE",II:"YTP_ERROR_GENERIC",JI:"YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK",TI:"YTP_ERROR_INVALID_DRM_MESSAGE",
XI:"LEARN_MORE",yJ:"YTP_ERROR_NOT_SIGNED_IN",SJ:"YTP_ERROR_PURCHASE_NOT_FOUND",TJ:"YTP_ERROR_PURCHASE_REFUNDED",XJ:"YTP_ERROR_RENTAL_EXPIRED",TH:"YTP_ERROR_CAST_SESSION_DEVICE_MISMATCHED",UH:"YTP_ERROR_CAST_SESSION_VIDEO_MISMATCHED",WH:"YTP_ERROR_CAST_TOKEN_FAILED",VH:"YTP_ERROR_CAST_TOKEN_EXPIRED",XH:"YTP_ERROR_CAST_TOKEN_MALFORMED",hK:"YTP_ERROR_SERVER_ERROR",uK:"YTP_ERROR_STOPPED_BY_ANOTHER_PLAYBACK",wK:"YTP_ERROR_STREAMING_DEVICES_QUOTA_PER_24H_EXCEEDED",xK:"YTP_ERROR_STREAMING_NOT_ALLOWED",yK:"YTP_ERROR_STREAMING_UNAVAILABLE",
$J:"YTP_ERROR_RETRYABLE_ERROR",KK:"YTP_ERROR_TOO_MANY_STREAMS_PER_USER",JK:"YTP_ERROR_TOO_MANY_STREAMS_PER_ENTITLEMENT",SK:"YTP_ERROR_UNSUPPORTED_DEVICE",TK:"YTP_ERROR_UNUSUAL_ACTIVITY",bL:"YTP_ERROR_VIDEO_FORBIDDEN",dL:"YTP_ERROR_VIDEO_NOT_FOUND"},jy={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"};function ky(a){return(a=jy[a.toString()])?a:"YTP_ERROR_LICENSE"};var ly={created:1,ready:2,testing:4,"testing-starting":3,live:6,"live-starting":5,complete:8,"complete-starting":7};/*
 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.
*/
function my(a,b){this.A=[];this.J=a;this.I=b||null;this.o=this.g=!1;this.k=void 0;this.F=this.M=this.C=!1;this.B=0;this.j=null;this.D=0}my.prototype.cancel=function(a){if(this.g)this.k instanceof my&&this.k.cancel();else{if(this.j){var b=this.j;delete this.j;a?b.cancel(a):(b.D--,0>=b.D&&b.cancel())}this.J?this.J.call(this.I,this):this.F=!0;this.g||ny(this,new oy)}};my.prototype.G=function(a,b){this.C=!1;py(this,a,b)};function py(a,b,c){a.g=!0;a.k=c;a.o=!b;qy(a)}
function ry(a){if(a.g){if(!a.F)throw new sy;a.F=!1}}function ny(a,b){ry(a);py(a,!1,b)}function ty(a,b,c){uy(a,b,null,c)}function uy(a,b,c,d){a.A.push([b,c,d]);a.g&&qy(a)}my.prototype.then=function(a,b,c){var d,e,g=new fn(function(a,b){d=a;e=b});uy(this,d,function(a){a instanceof oy?g.cancel():e(a)});return g.then(a,b,c)};dn(my);function vy(a){return gb(a.A,function(a){return ka(a[1])})}
function qy(a){if(a.B&&a.g&&vy(a)){var b=a.B,c=wy[b];c&&(m.clearTimeout(c.xa),delete wy[b]);a.B=0}a.j&&(a.j.D--,delete a.j);for(var b=a.k,d=c=!1;a.A.length&&!a.C;){var e=a.A.shift(),g=e[0],h=e[1],e=e[2];if(g=a.o?h:g)try{var k=g.call(e||a.I,b);n(k)&&(a.o=a.o&&(k==b||k instanceof Error),a.k=b=k);en(b)&&(d=!0,a.C=!0)}catch(l){b=l,a.o=!0,vy(a)||(c=!0)}}a.k=b;d&&(k=y(a.G,a,!0),d=y(a.G,a,!1),b instanceof my?(uy(b,k,d),b.M=!0):b.then(k,d));c&&(b=new xy(b),wy[b.xa]=b,a.B=b.xa)}
function sy(){sa.call(this)}B(sy,sa);sy.prototype.message="Deferred has already fired";sy.prototype.name="AlreadyCalledError";function oy(){sa.call(this)}B(oy,sa);oy.prototype.message="Deferred was canceled";oy.prototype.name="CanceledError";function xy(a){this.xa=m.setTimeout(y(this.j,this),0);this.g=a}xy.prototype.j=function(){delete wy[this.xa];throw this.g;};var wy={};function yy(a,b){var c=b||{},d=c.document||document,e=Fd("SCRIPT"),g={zu:e,tb:void 0},h=new my(zy,g),k=null,l=null!=c.timeout?c.timeout:5E3;0<l&&(k=window.setTimeout(function(){Ay(e,!0);ny(h,new By(1,"Timeout reached for loading script "+a))},l),g.tb=k);e.onload=e.onreadystatechange=function(){e.readyState&&"loaded"!=e.readyState&&"complete"!=e.readyState||(Ay(e,c.LC||!1,k),ry(h),py(h,!0,null))};e.onerror=function(){Ay(e,!0,k);ny(h,new By(0,"Error while loading script "+a))};wd(e,{type:"text/javascript",
charset:"UTF-8",src:a});Cy(d).appendChild(e);return h}function Cy(a){var b=a.getElementsByTagName("HEAD");return!b||lb(b)?a.documentElement:b[0]}function zy(){if(this&&this.zu){var a=this.zu;a&&"SCRIPT"==a.tagName&&Ay(a,!0,this.tb)}}function Ay(a,b,c){null!=c&&m.clearTimeout(c);a.onload=u;a.onerror=u;a.onreadystatechange=u;b&&window.setTimeout(function(){Ld(a)},0)}function By(a,b){var c="Jsloader error (code #"+a+")";b&&(c+=": "+b);sa.call(this,c);this.code=a}B(By,sa);function Dy(a,b){this.j=new L(a);this.g=b?b:"callback";this.tb=5E3}var Ey=0;Dy.prototype.send=function(a,b,c,d){a=a||null;d=d||"_"+(Ey++).toString(36)+A().toString(36);m._callbacks_||(m._callbacks_={});var e=this.j.clone();if(a)for(var g in a)a.hasOwnProperty&&!a.hasOwnProperty(g)||gf(e,g,a[g]);b&&(m._callbacks_[d]=Fy(d,b),gf(e,this.g,"_callbacks_."+d));b=yy(e.toString(),{timeout:this.tb,LC:!0});uy(b,null,Gy(d,a,c),void 0);return{xa:d,Js:b}};
Dy.prototype.cancel=function(a){a&&(a.Js&&a.Js.cancel(),a.xa&&Hy(a.xa,!1))};function Gy(a,b,c){return function(){Hy(a,!1);c&&c(b)}}function Fy(a,b){return function(c){Hy(a,!0);b.apply(void 0,arguments)}}function Hy(a,b){m._callbacks_[a]&&(b?delete m._callbacks_[a]:m._callbacks_[a]=u)};function Iy(a,b){U.call(this);this.k=b+"feeds/api/users/live/broadcasts/"+a+"/states?v=2&alt=json-in-script";this.g=new tn(15E3+Math.floor(3E4*Math.random()));Dm(this.g,"tick",y(this.j,this));this.j();this.g.start()}B(Iy,U);Iy.prototype.L=function(){this.g.dispose();Iy.H.L.call(this)};Iy.prototype.j=function(){(new Dy(this.k)).send(null,y(this.A,this),y(this.o,this))};Iy.prototype.A=function(a){this.publish("payload",a);un(this.g,15E3+Math.floor(3E4*Math.random()))};
Iy.prototype.o=function(){this.publish("error");var a=this.g.g;192E4>a&&un(this.g,2*a)};function Jy(a){S.call(this);this.g={};this.k={};this.o={};this.j=Ky(this,a)}B(Jy,S);function Ky(a,b,c){var d=0,e=Fd(b[d++]);if(w(b[d])||ga(b[d])||null===b[d]){var g=b[d++];ga(g)&&(g=g.join(" "));if(g=Ly(a,e,"className",g))My(a,e,"className",g),Ny(a,g,e)}for(;d<b.length;d++){var h=b[d];if(ga(h))Ky(a,h,e);else if(la(h)){var g=a,k=e,l=void 0;for(l in h)h[l]&&My(g,k,l,Ly(g,k,l,h[l]))}else w(h)&&(g=Ly(a,e,"child",h),null!=g&&e.appendChild(Gd(g)))}c&&c.appendChild(e);return e}f=Jy.prototype;f.K=function(){return this.j};
function Ny(a,b,c){var d=b.split(" ");if(1<d.length)for(b=0;b<d.length;b++)Ny(a,d[b],c);else a.g[b]=c}f.Y=function(a,b){n(b)?Kd(a,this.j,b):a.appendChild(this.j)};f.detach=function(){Ld(this.j)};function Ly(a,b,c,d){return w(d)&&"{{"==d.substr(0,2)?(a.k[d]=[b,c],null):d}f.update=function(a){for(var b in a)Oy(this,b,a[b])};function Oy(a,b,c){if(c!=a.o[b]){var d=a.k["{{"+b+"}}"];d&&(a.o[b]=c,My(a,d[0],d[1],c))}}function Py(a){return ga(a)&&w(a[0])}
function My(a,b,c,d){if("child"==c){Jd(b);if(!ga(d)||Py(d))d=[d];c=[];for(var e=0;e<d.length;e++){var g=d[e];if(ia(g)||w(g)||la(g))!g.nodeType||1!=g.nodeType&&3!=g.nodeType?Py(g)?c.push(Ky(a,g)):g.K?c.push(g.K()):c.push(Gd(g.toString())):c.push(g)}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())}f.L=function(){this.g={};this.k={};this.o={};this.detach();delete this.j;Jy.H.L.call(this)};function Qy(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),g="";0<c&&(g+=c+":",10>d&&(g+="0"));if(0<c||0<d)g+=d+":",10>e&&(g+="0");g+=e+":";10>b&&(g+="0");g+=b;return 0<=a?g:"-"+g}function Ry(a){return Math.round(1E3*a)/10}function Sy(a){return(!ia(a.button)||0==a.button)&&!a.shiftKey&&!a.altKey&&!a.metaKey&&!a.ctrlKey};var Ty={vK:"html5-stop-propagation",zJ:"ytp-no-controls",$I:"html5-live-dvr-disabled",aJ:"html5-live-dvr-engaged",bJ:"html5-live-playback",VI:"ytp-iv-drawer-open",lJ:"html5-mobile",oJ:"modest-branding",vJ:"html5-native-controls",AK:"html5-tablet",zK:"html5-tablet-body",hJ:"html5-main-video",XK:"html5-video-container",YK:"html5-video-content",ZK:"html5-video-controls",$K:"ytp-fallback",aL:"ytp-fallback-content",cL:"html5-video-loader",jL:"html5-watermark",OH:"html5-branded-watermark",dI:"html5-context-menu",
nB:"html5-context-menu-copy-debug-info",oB:"html5-context-menu-copy-embed-html",pB:"html5-context-menu-copy-video-url",qB:"html5-context-menu-copy-video-url-at-current-time",rB:"html5-context-menu-link",sB:"html5-context-menu-report-playback-issue",tB:"html5-context-menu-show-video-info",eI:"html5-show-video-info-template",mJ:"html5-modal-panel",KI:"ideal-aspect",xI:"autohide-controls",zI:"autohide-controls-aspect",yI:"autohide-controls-fullscreen",jJ:"autominimize-progress-bar",kJ:"autominimize-progress-bar-non-aspect",
AI:"hide-info-bar",BI:"html5-hide-share",CI:"html5-hide-volume",FK:"ytp-tiny-mode",fL:"video-thumbnail",NJ:"ytp-dialog",GH:"html5-async-progress",HH:"html5-async-success",FH:"html5-async-error",YH:"html5-center-overlay",cK:"ytp-scalable-icon-shrink",bK:"ytp-scalable-icon-grow",HI:"house-brand",gK:"sentiment-like",fK:"sentiment-dislike"};function Uy(){this.k=new Jy(["div","html5-fresca-module",["div","html5-fresca-band-slate",["hgroup","html5-fresca-message",["h2","html5-fresca-heading","{{heading}}"],["h3","html5-fresca-subheading","{{subheading}}"],["h4","html5-fresca-long-test","{{long_text}}"]],["span","html5-fresca-countdown","{{countdown}}"]]]);T(this,this.k);this.j=this.k.g["html5-fresca-module"];P(this.j,"html5-stop-propagation");this.o=0;this.g=null}B(Uy,S);Uy.prototype.K=function(){return this.j};
Uy.prototype.update=function(a){this.B&&this.g.state==a.state&&this.g.startTime==a.startTime&&this.g.imageUrl==a.imageUrl&&this.g.messageText.join()==a.messageText.join()||(this.g=a,this.j.style.backgroundImage=this.g.imageUrl||"none",a=this.g.getMessage(),this.k.update({heading:a[0]||"",subheading:a[1]||"",long_text:a[2]||""}),this.A())};function Vy(a){var b=Math.floor((new Date).valueOf()/1E3);return b>a?Nf("YTP_FRESCA_STARTING_SOON_MESSAGE"):Qy(a-b)}
Uy.prototype.A=function(){var a;a=this.g;a.startTime?(a=a.state,a=6==a||8==a||7==a?!1:!0):a=!1;Q(this.j,"html5-fresca-show-countdown",a);a&&(this.k.update({countdown:Vy(this.g.startTime)}),O(this.o),this.o=N(y(this.A,this),1E3))};Uy.prototype.L=function(){O(this.o);this.j=null;Uy.H.L.call(this)};function Zy(a){this.messageText=[];this.g=!1;a&&$y(this,a)}Zy.prototype.state=-1;function az(a){return{imageUrl:a.imageUrl,messageText:a.getMessage(),startTime:a.startTime,state:a.state}}
function $y(a,b){var c=b.feed;if(c){var d=c.yt$lifeCycleState;d&&(a.state=ly[d.$t]||-1);(d=c.yt$when)&&d.start&&(d=new Date(d.start),a.startTime=Math.floor(d.valueOf()/1E3));if(d=c.yt$slate)d.imgUrl&&(a.imageUrl="url("+d.imgUrl+")"),(d=d.content)&&d.length&&(d=d.splice(0,3),a.messageText=F(d,function(a){return a.$t}));if(c=c.entry)a.g=0<=ib(c,function(a){a=a.yt$status;return!!a&&"inactive"!=a.$t})}}Zy.prototype.getMessage=function(){return this.messageText.length?this.messageText:bz(this)};
function bz(a){switch(a.state){case 6:return a.g?[]:[Nf("YTP_FRESCA_STAND_BY_MESSAGE"),Nf("YTP_FRESCA_TECHNICAL_DIFFICULTIES_MESSAGE")];case 8:return[Nf("YTP_FRESCA_EVENT_OVER_MESSAGE")];case 7:return[Nf("YTP_FRESCA_EVENT_OVER_MESSAGE"),Nf("YTP_FRESCA_COMPLETE_MESSAGE")];default:return[Nf("YTP_FRESCA_STAND_BY_MESSAGE")]}};function cz(a){Px.call(this,a);Mf({YTP_FRESCA_STARTING_SOON_MESSAGE:"\u0422\u0440\u0430\u043d\u0441\u043b\u044f\u0446\u0438\u044f \u0441\u043a\u043e\u0440\u043e \u043d\u0430\u0447\u043d\u0435\u0442\u0441\u044f...",YTP_FRESCA_EVENT_OVER_MESSAGE:"\u0422\u0440\u0430\u043d\u0441\u043b\u044f\u0446\u0438\u044f \u0437\u0430\u043a\u043e\u043d\u0447\u0435\u043d\u0430.",YTP_FRESCA_COMPLETE_MESSAGE:"\u0411\u043b\u0430\u0433\u043e\u0434\u0430\u0440\u0438\u043c \u0437\u0430 \u043f\u0440\u043e\u0441\u043c\u043e\u0442\u0440!",
YTP_FRESCA_STAND_BY_MESSAGE:"\u041f\u043e\u0436\u0430\u043b\u0443\u0439\u0441\u0442\u0430, \u043f\u043e\u0434\u043e\u0436\u0434\u0438\u0442\u0435.",YTP_FRESCA_TECHNICAL_DIFFICULTIES_MESSAGE:"\u041a \u0441\u043e\u0436\u0430\u043b\u0435\u043d\u0438\u044e, \u0443 \u043d\u0430\u0441 \u0432\u043e\u0437\u043d\u0438\u043a\u043b\u0438 \u0442\u0435\u0445\u043d\u0438\u0447\u0435\u0441\u043a\u0438\u0435 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u044b."})}B(cz,Px);f=cz.prototype;f.va="fresca";f.oc="fresca";
f.ej=!1;f.Vg=!1;f.Fa=function(){return Gv(this.g.getVideoData(),"fresca_module")};
f.create=function(a){cz.H.create.call(this);av(wt(),"application/x-mpegURL")||dv()?(this.ej=this.Vg=!1,Yx(this,["play_pause","seek"]),this.k=new Uy,cx(this.g,this.k.K()),this.o=a||new Iy(this.g.getVideoData().videoId,this.g.R().Do),this.o.subscribe("payload",this.gC,this),this.o.subscribe("error",this.fC,this),this.subscribe("onStateChange",this.ds,this)):dz(this.g.app.k,"fmt.noneavailable","YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK",void 0)};
f.destroy=function(){this.unsubscribe("onStateChange",this.ds,this);zi(this.o,this.k);cz.H.destroy.call(this)};f.ds=function(a){this.j&&(this.ej=X(a.state,2),(ez(a,16)||this.ej)&&fz(this,this.j))};f.fC=function(){this.Vg||(gz(this,new Zy),fz(this,this.j))};f.gC=function(a){gz(this,new Zy(a));a=this.g.getVideoData();6!=this.j.state||a.U||a.N?fz(this,this.j):this.g.Am(a.videoId)};
function fz(a,b){var c=6>b.state;!c&&a.g.app.k.ka&&(b.imageUrl||b.messageText.length)&&(c=!0);a.ej&&!a.g.R().xc&&(c=!0);b.g||(c=!0);if(!a.Vg)switch(b.state){case 6:b.g&&(a.Vg=!0,Zx(a,["play_pause","seek"]),Rx(a));break;case 8:case 7:c=a.Vg=!0}c&&a.k.update(b);c&&!a.loaded?a.load():!c&&a.loaded&&a.unload()}function hz(a){return Gv(a.getVideoData(),"fresca_module")?new cz(a):null}function gz(a,b){a.j!=b&&(a.j=b,a.g.R().zb()&&a.publish("publish_external_event","onFrescaStateChange",az(a.j)))};function iz(a){this.Tn=a||window;this.fg=[]}f=iz.prototype;f.Tn=null;f.fg=null;f.listen=function(a,b,c,d){c=y(c,d||this.Tn);a=R(a,b,c);this.fg.push(a);return a};function jz(a,b,c,d,e,g){d=y(d,g||a.Tn);b=Dh(b,c,d,e);a.fg.push(b)}f.Da=function(a){Ch(a);ob(this.fg,a)};f.removeAll=function(){Ch(this.fg);this.fg=[]};function kz(){V.call(this);this.g=0;this.endTime=this.startTime=null}B(kz,V);f=kz.prototype;f.jb=function(){return 1==this.g};f.bc=function(){this.Pb("begin")};f.Fc=function(){this.Pb("end")};f.Lb=function(){this.Pb("finish")};f.onStop=function(){this.Pb("stop")};f.Pb=function(a){this.T(a)};function lz(){kz.call(this);this.j=[]}B(lz,kz);lz.prototype.add=function(a){H(this.j,a)||(this.j.push(a),Dm(a,"finish",this.o,!1,this))};lz.prototype.remove=function(a){ob(this.j,a)&&Lm(a,"finish",this.o,!1,this)};lz.prototype.L=function(){E(this.j,function(a){a.dispose()});this.j.length=0;lz.H.L.call(this)};function mz(){lz.call(this);this.k=0}B(mz,lz);
mz.prototype.play=function(a){if(0==this.j.length)return!1;if(a||0==this.g)this.k=0,this.bc();else if(this.jb())return!1;this.Pb("play");-1==this.g&&this.Pb("resume");var b=-1==this.g&&!a;this.startTime=A();this.endTime=null;this.g=1;E(this.j,function(c){b&&-1!=c.g||c.play(a)});return!0};mz.prototype.pause=function(){this.jb()&&(E(this.j,function(a){a.jb()&&a.pause()}),this.g=-1,this.Pb("pause"))};
mz.prototype.stop=function(a){E(this.j,function(b){0==b.g||b.stop(a)});this.g=0;this.endTime=A();this.onStop();this.Fc()};mz.prototype.o=function(){this.k++;this.k==this.j.length&&(this.endTime=A(),this.g=0,this.Lb(),this.Fc())};var nz=/#(.)(.)(.)/;function oz(a){if(!pz.test(a))throw Error("'"+a+"' is not a valid hex color");4==a.length&&(a=a.replace(nz,"#$1$1$2$2$3$3"));a=a.toLowerCase();return[parseInt(a.substr(1,2),16),parseInt(a.substr(3,2),16),parseInt(a.substr(5,2),16)]}var pz=/^#(?:[0-9a-f]{3}){1,2}$/i;var qz={},rz=null;function sz(a){a=ma(a);delete qz[a];Ub(qz)&&rz&&rz.stop()}function tz(){rz||(rz=new Tq(function(){uz()},20));var a=rz;a.isActive()||a.start()}function uz(){var a=A();Hb(qz,function(b){vz(b,a)});Ub(qz)||tz()};function wz(a,b,c,d){kz.call(this);if(!ga(a)||!ga(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.o=a;this.F=b;this.duration=c;this.C=d;this.j=[];this.k=this.D=0;this.B=null}B(wz,kz);f=wz.prototype;
f.play=function(a){if(a||0==this.g)this.k=0,this.j=this.o;else if(this.jb())return!1;sz(this);this.startTime=a=A();-1==this.g&&(this.startTime-=this.duration*this.k);this.endTime=this.startTime+this.duration;this.B=this.startTime;this.k||this.bc();this.Pb("play");-1==this.g&&this.Pb("resume");this.g=1;var b=ma(this);b in qz||(qz[b]=this);tz();vz(this,a);return!0};f.stop=function(a){sz(this);this.g=0;a&&(this.k=1);xz(this,this.k);this.onStop();this.Fc()};
f.pause=function(){this.jb()&&(sz(this),this.g=-1,this.Pb("pause"))};f.L=function(){0==this.g||this.stop(!1);this.Pb("destroy");wz.H.L.call(this)};f.destroy=function(){this.dispose()};function vz(a,b){a.k=(b-a.startTime)/(a.endTime-a.startTime);1<=a.k&&(a.k=1);a.D=1E3/(b-a.B);a.B=b;xz(a,a.k);1==a.k?(a.g=0,sz(a),a.Lb(),a.Fc()):a.jb()&&a.Rm()}function xz(a,b){ka(a.C)&&(b=a.C(b));a.j=Array(a.o.length);for(var c=0;c<a.o.length;c++)a.j[c]=(a.F[c]-a.o[c])*b+a.o[c]}f.Rm=function(){this.Pb("animate")};
f.Pb=function(a){this.T(new yz(a,this))};function yz(a,b){lm.call(this,a);this.x=b.j[0];this.y=b.j[1];this.duration=b.duration;this.fps=b.D;this.state=b.g}B(yz,lm);function zz(a,b,c,d,e){wz.call(this,b,c,d,e);this.element=a}B(zz,wz);zz.prototype.Me=u;zz.prototype.Rm=function(){this.Me();zz.H.Rm.call(this)};zz.prototype.Fc=function(){this.Me();zz.H.Fc.call(this)};zz.prototype.bc=function(){this.Me();zz.H.bc.call(this)};function Az(a,b,c,d,e){if(2!=b.length||2!=c.length)throw Error("Start and end points must be 2D");zz.apply(this,arguments)}B(Az,zz);
Az.prototype.Me=function(){this.element.style.left=Math.round(this.j[0])+"px";this.element.style.top=Math.round(this.j[1])+"px"};function Bz(a,b,c,d){Az.call(this,a,[a.offsetLeft,a.offsetTop],b,c,d)}B(Bz,Az);Bz.prototype.bc=function(){this.o=[this.element.offsetLeft,this.element.offsetTop];Bz.H.bc.call(this)};function Cz(a,b,c,d,e){if(2!=b.length||2!=c.length)throw Error("Start and end points must be 2D");zz.apply(this,arguments)}B(Cz,zz);
Cz.prototype.Me=function(){this.element.style.width=Math.round(this.j[0])+"px";this.element.style.height=Math.round(this.j[1])+"px"};function Dz(a,b,c,d,e){zz.call(this,a,[b],[c],d,e)}B(Dz,zz);Dz.prototype.Me=function(){this.element.style.width=Math.round(this.j[0])+"px"};function Ez(a,b,c,d,e){ia(b)&&(b=[b]);ia(c)&&(c=[c]);zz.call(this,a,b,c,d,e);if(1!=b.length||1!=c.length)throw Error("Start and end points must be 1D");this.A=-1}B(Ez,zz);var Fz=1/1024;f=Ez.prototype;
f.Me=function(){var a=this.j[0];Math.abs(a-this.A)>=Fz&&(Sg(this.element,a),this.A=a)};f.bc=function(){this.A=-1;Ez.H.bc.call(this)};f.Fc=function(){this.A=-1;Ez.H.Fc.call(this)};f.show=function(){this.element.style.display=""};f.hide=function(){this.element.style.display="none"};function Gz(a,b,c){Ez.call(this,a,1,0,b,c)}B(Gz,Ez);Gz.prototype.bc=function(){this.show();Gz.H.bc.call(this)};Gz.prototype.Fc=function(){this.hide();Gz.H.Fc.call(this)};function Hz(a,b,c){Ez.call(this,a,0,1,b,c)}B(Hz,Ez);
Hz.prototype.bc=function(){this.show();Hz.H.bc.call(this)};function Iz(a){return Math.pow(a,3)}function Jz(a){return 3*a*a-2*a*a*a};function Kz(a){return ga(a)&&a.length?a[0]:a}function Lz(a){var b=/.+/;return w(a)&&null!=b&&null!=a&&a.match(b)?a:""}function Mz(a,b){if(null==a)return b;var c=parseInt(a,0);if(isNaN(c))return b;c=c.toString(16);return"#"+"000000".substring(0,6-c.length)+c}function Nz(a){return w(a)?a:""}function Oz(a,b,c){for(var d in b)if(b[d]==a)return a;return c}function Pz(a,b){return"true"==a||"false"==a?"true"==a:b}function Qz(a,b){return w(a)?parseFloat(a):b}
function Rz(a,b,c,d,e,g){a=10==b?parseFloat(a):parseInt(a,b);if(null!=a&&!isNaN(a)){if(e)return Ic(a,c,d);if(a>=c&&a<=d)return a}return g}function Sz(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;E(a,function(a){a=parseFloat(a);0>a&&(c=-c);b=60*b+Math.abs(a)});return c*b}function Tz(a,b){if(null==a)return null;if(ha(a)){var c=[];E(a,function(a){(a=b(a))&&c.push(a)});return c}var d=b(a);return d?[d]:[]}
function Uz(a){function b(a){return null!=a&&!isNaN(a)}return(a=a?new lg(parseFloat(a.top),parseFloat(a.right),parseFloat(a.bottom),parseFloat(a.left)):null)&&b(a.top)&&b(a.right)&&b(a.bottom)&&b(a.left)?a:null}function Vz(a){function b(a){return eb(a.split(/ +/),function(a){return""!=a})}return null==a?[]:b(a)};function Wz(a,b,c){this.value=a;this.target=b;this.showLinkIcon=c}var Xz={hI:"current",xJ:"new"};function Yz(a){if(!a)return null;var b=Nz(a.value);if(!b||null==uj(b))return null;var c=Oz(a.target,Xz,"current");return null==c?null:new Wz(b,c,Pz(a.show_link_icon,!0))};function Zz(a){if(!a)return!1;var b=$z(a);return("com"==b[0]&&"youtube"==b[1]||"be"==b[0]&&"youtu"==b[1])&&-1==a.indexOf("/redirect?")}function $z(a){a=a.replace(/https?:\/\//g,"");a=a.split("/",1);return!a||1>a.length||!a[0]?[]:a[0].toLowerCase().split(".").reverse()}
function aA(a,b){if("new"==a.target)return-1;var c=a.value?a.value:null;if(!c)return-1;var c=c.replace(/https?:\/\//g,""),d;(d=!Zz(c))||(d=Ce(ze(c)[5]||null)||"",d=d.split("/"),d="/"+(1<d.length?d[1]:""),d="/watch"!=d);if(d)return-1;d=uj(c);if(!d||d.v!=b||d.list||d.p)return-1;c=c.split("#",2);if(!c||2>c.length)return-1;(c=tj(c[1]))&&c.t?(d=c.t,c=0,-1!=d.indexOf("h")&&(d=d.split("h"),c=3600*d[0],d=d[1]),-1!=d.indexOf("m")&&(d=d.split("m"),c=60*d[0]+c,d=d[1]),-1!=d.indexOf("s")?(d=d.split("s"),c=1*
d[0]+c):c=1*d+c):c=-1;return c}function bA(a,b,c,d){(a=a.value?a.value:null)?Zz(a)?d=xj(a,{src_vid:c,feature:"iv",annotation_id:b}):(a?(b=$z(a),b="com"==b[0]&&"google"==b[1]&&"plus"==b[2]):b=!1,b&&d?(d=z(cA,d.pageId,d.Va),a=new L(a),Ue(a,d(a.Ib)),d=a.toString()):d=a):d=null;return d}function cA(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}
function dA(a){return a.target?"new"==a.target?"_blank":"_top":Zz(a.value?a.value:null)?"_top":"_blank"};function eA(a,b){this.k=a;this.j=b;this.g={}}function fA(a,b,c,d){if(b){var e=gA(a,b);a.g[b]=e["p-time"];e["iv-event"]=e.link||e["l-class"]||e["link-id"]?2:7;bc(e,c||{});b=sb(d||[]);30==e["a-type"]&&(c=hA(a,e["a-id"],"cta_annotation_shown"))&&b.push(c);iA(a,e,b)}}function jA(a,b,c,d,e){if(b){var g=gA(a,b);g["iv-event"]=3;g["i-time"]=a.g[b]||"";bc(g,d||{});b=sb(e||[]);30==g["a-type"]&&(d=hA(a,g["a-id"],"cta_annotation_clicked"))&&b.push(d);iA(a,g,b,c)}}
function kA(a,b,c,d){if(b){var e=gA(a,b);e["iv-event"]=4;e["i-time"]=a.g[b]||"";bc(e,c||{});b=sb(d||[]);30==e["a-type"]&&(c=hA(a,e["a-id"],"cta_annotation_closed"))&&b.push(c);iA(a,e,b)}}function hA(a,b,c){a=a.j.getVideoData();if(a.Pe){if((c=a.Pe[c])&&-1!=c.search(xf))return a=xa("[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.ha)return xj(a.ha,{label:c,value:"a_id="+b});return""}
function iA(a,b,c,d){var e=1,g,h=-1;if(d){var k=!1;g=function(){e--;e||k||(clearTimeout(h),k=!0,d())};h=setTimeout(function(){k=!0;d()},1E3)}E(c||[],function(a){e++;ag(a,g)});a.oa(b,g)}function gA(a,b){var c={};if(b){var d=new Xe(b);E(d.Ka(),function(a){c[a]=escape(d.get(a,""))})}c["p-time"]=a.j.getCurrentTime().toFixed(2);c.ps=a.j.R().j;return c}function lA(a,b,c){var d=gA(a);d["iv-event"]=b;d["a-id"]="card:drawer";d["a-type"]=51;iA(a,d,c)}
function mA(a,b,c,d,e){c&&(c=gA(a,c),c["iv-event"]=b,bc(c,d||{}),iA(a,c,e))}eA.prototype.oa=function(a,b){this.k.publish("command_log","iv",a,b)};function nA(a,b){this.W=a;this.context=b;this.N=this.O=this.J=null;this.xm=!1;this.D=0}function oA(a,b,c,d,e,g){b=new Gx(b,c,{id:d});b.namespace="iv-module";e&&b.Oa.subscribe("onEnter",e,a);g&&b.Oa.subscribe("onExit",g,a);a.context.Oa.publish("command_add_cuerange",[b],a.context.j.getPlayerType())}f=nA.prototype;f.wj=function(){this.context.Oa.subscribe("onResize",this.oe,this)};f.K=function(){return this.W};
f.Hd=function(a,b,c,d,e){jz(this.context.g,a,"click",z(this.df,a,b,c,d,e||[]),"iv-click-target",this);jz(this.context.g,a,"touchend",z(this.df,a,b,c,d,e||[]),"iv-click-target",this);jz(this.context.g,a,"touchstart",z(function(){this.xm=!1}),"iv-click-target",this);jz(this.context.g,a,"touchmove",z(function(){this.xm=!0}),"iv-click-target",this)};
f.df=function(a,b,c,d,e,g){g.stopPropagation();if(!this.xm){g.preventDefault();var h=bA(b,c,this.context.o.videoId);a=y(function(){this.context.j.pauseVideo();window.open(h,dA(b))},this);Zz(b.value?b.value:null)&&"new"!=b.target||(a(),a=null);c={};c.interval=A()-this.D;jA(this.context.logger,d,a,c,e);return!1}};f.show=function(){this.D=A()};f.hide=function(){};f.destroy=function(){Ld(this.K())};function pA(a){a.N||(a.N=ee(a.K(),"html5-video-player"));return a.N}
function qA(a){var b=a.context.k.ce;if(!b)return null;var c=a.context.k.ff||new mg(0,0,b.width,b.height),d=-c.top,e=b.height-c.top,g;a.O||(a.O=vd("html5-video-container",pA(a)));g=a.O;if(!g)return null;g=35-(parseInt(yg(g,"bottom"),10)||0);var h;a.J||(a.J=vd("html5-info-bar",pA(a)));(h=a.J)&&a.context.k.vk&&"none"!=yg(h,"display")&&(d+=Pg(h).height);return new lg(d,b.width-c.left,e-g,-c.left)}f.oe=function(){};function rA(a,b){ga(b)||(b=[b]);var c=F(b,function(a){return w(a)?a:a.property+" "+a.duration+"s "+a.timing+" "+a.Kp+"s"});sA(a,c.join(","))}
var tA=function(a){var b=!1,c;return function(){b||(c=a(),b=!0);return c}}(function(){if(Sc)return gd("10.0");var a=document.createElement("div"),b=tg(),c={transition:"opacity 1s linear"};b&&(c[b+"-transition"]="opacity 1s linear");b={style:c};if(!Dc.test("div"))throw Error("Invalid tag name <div>.");if("div"in Fc)throw Error("Tag name <div> is not allowed for SafeHtml.");var c=null,d="<div";if(b)for(var e in b){if(!Dc.test(e))throw Error('Invalid attribute name "'+e+'".');var g=b[e];if(null!=g){var h;
h=e;if(g instanceof nc)g=pc(g);else if("style"==h.toLowerCase()){if(!la(g))throw Error('The "style" attribute requires goog.html.SafeStyle or map of style properties, '+typeof g+" given: "+g);if(!(g instanceof qc)){var k="",l=void 0;for(l in g){if(!/^[-_a-zA-Z0-9]+$/.test(l))throw Error("Name allows only [-_a-zA-Z0-9], got: "+l);var p=g[l];null!=p&&(p instanceof nc?p=pc(p):uc.test(p)||(p="zClosurez"),k+=l+":"+p+";")}g=k?sc(k):tc}k=void 0;k=g instanceof qc&&g.constructor===qc&&g.j===rc?g.g:"type_error:SafeStyle";
g=k}else{if(/^on/i.test(h))throw Error('Attribute "'+h+'" requires goog.string.Const value, "'+g+'" given.');if(h.toLowerCase()in Ec)if(g instanceof yc)g=g instanceof yc&&g.constructor===yc&&g.g===zc?"":"type_error:TrustedResourceUrl";else if(g instanceof vc)g=xc(g);else throw Error('Attribute "'+h+'" on tag "div" requires goog.html.SafeUrl or goog.string.Const value, "'+g+'" given.');}g.Tf&&(g=g.Sf());h=h+'="'+za(String(g))+'"';d=d+(" "+h)}}e=void 0;n(e)?ga(e)||(e=[e]):e=[];!0===dc.div?d+=">":(c=
Gc(e),d+=">"+Cc(c)+"</div>",c=c.Rf());(b=b&&b.dir)&&(/^(ltr|rtl|auto)$/i.test(b)?c=0:c=null);b=Hc(d,c);a.innerHTML=Cc(b);a=a.firstChild;b=a.style[Xa("transition")];return""!=("undefined"!==typeof b?b:a.style[wg(a,"transition")]||"")});function sA(a,b){vg(a,"transition",b)};function uA(a,b){(a=rd(a))&&a.style&&(Tg(a,b),Q(a,"hid",!b))}function vA(a){return(a=rd(a))?!("none"==a.style.display||dh(a,"hid")):!1}function wA(a){E(arguments,function(a){uA(a,!0)})}function xA(a){E(arguments,function(a){uA(a,!1)})}var yA={};function zA(a,b,c){this.id=a;this.type=b.card_type;this.C=b.teaser_text||b.title;this.B=b.teaser_image_url||b.image_url;this.teaserDurationMs=b.teaser_duration_ms||5E3;this.startMs=b.start_ms;this.endMs=b.end_ms;this.Ca=c;a=b.tracking||{};this.g={rq:a.impression,click:a.click,close:a.close,iq:a.teaser_impression,wi:a.teaser_click}};function AA(a,b,c){zA.call(this,a,b,c);this.o=b.banner_image_url;this.D=b.image_url;this.A=b.g_plus_url;this.title=b.title;this.j=b.meta_info;this.k=b.html_blobs;this.url=Yz({target:"new",value:b.url})}B(AA,zA);function BA(a,b,c){zA.call(this,a,b,c);this.A=b.profile_image_url;this.o=b.intro;this.k=b.image_url;this.playlistVideoCount=b.playlist_video_count;this.title=b.title;this.j=b.meta_info;this.url=Yz({target:"new",value:b.url})}B(BA,zA);function CA(a,b,c){zA.call(this,a,b,c);this.imageUrl=b.image_url;this.title=b.title;this.options=b.options}B(CA,zA);function DA(a,b,c){zA.call(this,a,b,c);this.imageUrl=b.image_url;this.displayDomain=b.display_domain;this.showLinkIcon=b.show_link_icon;this.k=b.button_icon_url;this.title=b.title;this.o=b.custom_message;this.url=Yz({target:"new",value:b.url})}B(DA,zA);function EA(a,b,c){DA.call(this,a,b,c);this.F=b.ypc_item_type;this.D=b.ypc_item_id;this.A=b.ypc_flow_type}B(EA,DA);function FA(a,b,c){zA.call(this,a,b,c);this.D=b.profile_image_url;this.A=b.intro;this.o=b.image_url;this.k=b.video_duration;this.title=b.title;this.j=b.meta_info;this.url=Yz({target:"new",value:b.url})}B(FA,zA);function GA(a){HA(a,"none")}function HA(a,b){a&&(a.style.display=b)}function IA(a,b){var c=rh("requestAnimationFrame",window);return N(function(){c?c.call(window,a):a()},b||0)};function Y(a){S.call(this);this.template=new Jy(a);T(this,this.template);this.element=this.template.K();this.ja="block";this.D=!0;this.hb=[]}B(Y,S);f=Y.prototype;f.K=function(){return this.element};f.Y=function(a,b){this.template.Y(a,b)};f.detach=function(){this.template.detach()};f.ta=function(a,b){Oy(this.template,b||"content",a)};f.show=function(){HA(this.element,this.ja);this.D=!0;this.element.removeAttribute("aria-hidden")};
f.hide=function(){GA(this.element);this.D=!1;this.element.setAttribute("aria-hidden","true")};function JA(a,b){a.element.setAttribute("role",b)}f.bb=function(a){this.element.setAttribute("aria-label",a)};f.Sb=function(a){Gh(this.element,a)};f.listen=function(a,b,c){return KA(this,this.element,a,b,c)};function KA(a,b,c,d,e,g){b=R(b,c,y(d,e||a),g);a.hb.push(b);return b}f.Da=function(a){Ch(a)};f.L=function(){this.Da(this.hb);delete this.element;Y.H.L.call(this)};Sc&&8<=document.documentMode||Tc&&gd("1.9.2")||Uc&&gd("532.1");window.history.pushState&&(!Uc||Uc&&gd("534.11"));function LA(a,b){var c=MA(a),d=document.getElementById(c),e=d&&kh(d,"loaded"),g=d&&!e;e?b&&b():(b&&(Gi(c,b),ma(b)),g||(d=NA(a,c,function(){kh(d,"loaded")||(ih(d,"loaded","true"),Ji(c),N(z(Mi,c),0))})))}
function NA(a,b,c){var d=document.createElement("script");d.id=b;d.onload=function(){c&&setTimeout(c,0)};d.onreadystatechange=function(){switch(d.readyState){case "loaded":case "complete":d.onload()}};d.src=a;a=document.getElementsByTagName("head")[0]||document.body;a.insertBefore(d,a.firstChild);return d}function MA(a){var b=document.createElement("a");b.href=a;a=b.href.replace(/^[a-zA-Z]+:\/\//,"//");return"js-"+Ta(a)}var OA=/\.vflset|-vfl[a-zA-Z0-9_+=-]+/,PA=/-[a-zA-Z]{2,3}_[a-zA-Z]{2,3}(?=(\/|$))/;function QA(a,b){var c=RA(a),d=document.getElementById(c),e=d&&kh(d,"loaded"),g=d&&!e;e?b&&b():(b&&(Gi(c,b),ma(b)),g||(d=SA(a,c,function(){kh(d,"loaded")||(ih(d,"loaded","true"),Ji(c),N(z(Mi,c),0))})))}function SA(a,b,c){var d=document.createElement("link");d.id=b;d.rel="stylesheet";d.onload=function(){c&&setTimeout(c,0)};d.href=a;(document.getElementsByTagName("head")[0]||document.body).appendChild(d);return d}
function RA(a){var b=document.createElement("a");b.href=a;a=b.href.replace(/^[a-zA-Z]+:\/\//,"//");return"css-"+Ta(a)}var TA=/cssbin\/(?:debug-)?([a-zA-Z0-9_-]+?)(?:-2x|-web|-rtl|-vfl|.css)/;function UA(){return!!t("yt.scheduler.instance")}function VA(a,b){void 0===b&&(b=NaN);var c=t("yt.scheduler.instance.addJob");return c?(isNaN(b)&&(b=0),c(a,0,b)):isNaN(b)?(a(),NaN):N(a,b||0)}function WA(a,b){return VA(a,b)}function XA(a){var b=t("yt.scheduler.instance.cancelJob");b?b(a):O(a)}function YA(){var a=t("yt.scheduler.instance.start");a&&(Xt("jsp")&&!Xt("jsr")&&Tt("jsr"),O(ZA),a())}var ZA=0;
function $A(){var a=t("yt.scheduler.instance.pause");a&&(a(),Xt("jsp")||Tt("jsp"),O(ZA),ZA=N(YA,800))};function aB(a,b){this.version=a;this.args=b}function bB(a){this.g=a}bB.prototype.toString=function(){return this.g};var cB=t("yt.pubsub2.instance_")||new Ai;Ai.prototype.subscribe=Ai.prototype.subscribe;Ai.prototype.unsubscribeByKey=Ai.prototype.Jb;Ai.prototype.publish=Ai.prototype.publish;Ai.prototype.clear=Ai.prototype.clear;q("yt.pubsub2.instance_",cB,void 0);var dB=t("yt.pubsub2.subscribedKeys_")||{};q("yt.pubsub2.subscribedKeys_",dB,void 0);var eB=t("yt.pubsub2.topicToKeys_")||{};q("yt.pubsub2.topicToKeys_",eB,void 0);var fB=t("yt.pubsub2.isAsync_")||{};q("yt.pubsub2.isAsync_",fB,void 0);
q("yt.pubsub2.skipSubKey_",null,void 0);function gB(a,b){var c=t("yt.pubsub2.instance_");c&&c.publish.call(c,a.toString(),a,b)};function hB(a){ag("/gen_204?"+a,void 0)}function iB(a,b,c,d,e,g){var h={};b&&(h.v=b);c&&(h.list=c);d&&(h.url=d);a={name:a,locale:e,feature:g};for(var k in h)a[k]=h[k];h=Je("/sharing_services",a);ag(h)};function jB(a){window.location=Je(a,{})+""}
function kB(a,b,c){b||(b={});var d=c||window;c="undefined"!=typeof a.href?a.href:String(a);a=b.target||a.target;var e=[],g;for(g in b)switch(g){case "width":case "height":case "top":case "left":e.push(g+"="+b[g]);break;case "target":case "noreferrer":break;default:e.push(g+"="+(b[g]?1:0))}g=e.join(",");if(b.noreferrer){if(b=d.open("",a,g))Sc&&-1!=c.indexOf(";")&&(c="'"+c.replace(/'/g,"%27")+"'"),b.opener=null,c=za(c),b.document.write('<META HTTP-EQUIV="refresh" content="0; url='+c+'">'),b.document.close()}else b=
d.open(c,a,g);return b}function lB(a,b){var c;c=b||{};c.target=c.target||a.target||"YouTube";c.width=c.width||600;c.height=c.height||600;(c=kB(a,c))?(c.opener||(c.opener=window),c.focus()):c=null;return!c};function mB(){var a=Hf("PLAYER_CONFIG");return a&&a.args&&void 0!==a.args.authuser?!0:!(!Hf("SESSION_INDEX")&&!Hf("LOGGED_IN"))};var jn=[],nB=!1;function oB(a,b,c){if(mB())pB(function(){t("yt.www.ypc.checkout.showYpcOverlay")(a,b,c,void 0)});else{var d=qB({ypc_it:a,ypc_ii:b,ypc_ft:c});jB(d)}}function rB(a){nB||(E(Hf("YPC_LOADER_CALLBACKS"),function(a){(a=t(a))&&a()}),nB=!0);a&&a()}function qB(a){a=xj(window.location.href,a);var b=Hf("YPC_SIGNIN_URL"),c=uj(b)["continue"],c=xj(c,{next:a});return xj(b,{"continue":c})}
function pB(a){if(!jn.length){var b=Hf("YPC_LOADER_CSS");jn.push(new fn(function(a){if(window.spf){var c=b.match(TA);spf.style.load(b,c?c[1]:"",a)}else QA(b,a)}));var c=Hf("YPC_LOADER_JS");jn.push(new fn(function(a){if(window.spf){var b="";if(c){var d=c.indexOf("jsbin/"),k=c.lastIndexOf(".js"),l=d+6;-1<d&&-1<k&&k>l&&(b=c.substring(l,k),b=b.replace(OA,""),b=b.replace(PA,""),b=b.replace("debug-",""),b=b.replace("tracing-",""))}spf.script.load(c,b,a)}else LA(c,a)}));var d=Hf("YPC_LOADER_CONFIGS");jn.push(new fn(function(a){Fj(d,
{Qa:function(){a()}})}))}hn().then(function(){rB(a)})};function sB(a){this.g=a}
function tB(a,b){var c=uB(a,b.url,b.id),d=["div","iv-card-channel-banner",""];b.o&&(d=["div",["iv-card-channel-banner","iv-card-channel-banner-custom"],{style:"background-image: url("+b.o+");"}]);var e=b.A?["a","iv-card-gplus",{href:b.A,target:"_blank",title:Nf("YTP_ON_GOOGLE_PLUS")}]:null,c=new Y(["article","iv-card-channel",d,["a",["iv-card-image","iv-click-target"],{href:c},["img",{src:b.D}]],["div","iv-card-content",e,["h1","iv-click-target",b.title],["div",["iv-blob-subscribe","iv-card-subscribe"],
""]]]),g=c.K();g&&Hb(b.k,function(a,b){var c=td(b,g);E(c,function(b){b.innerHTML=a})},c);return c}
function vB(a,b){var c=uB(a,b.url,b.id),d=["ul","iv-card-meta-info"];E(b.j,function(a){d.push(["li","",a])});c=["article",["iv-card-watchable","iv-card-playlist"],["h1",{style:"background-image: url("+b.A+");"},b.o],["div","iv-click-target",["a",["iv-card-image","iv-click-target"],{href:c},["img",{src:b.k}],["div","iv-card-image-overlay",["span","iv-card-playlist-video-count",b.playlistVideoCount.toString()],["span","iv-card-playlist-play-all",Nf("YTP_PLAY_ALL")]]],["div",["iv-card-content","iv-click-target"],
["h2","",b.title],d]]];return new Y(c)}
function wB(a,b){var c=uB(a,b.url,b.id),d=["iv-click-target","yt-uix-button","yt-uix-button-primary","yt-uix-button-size-large"],e="";b.k&&(d.push("yt-uix-button-has-icon"),e=["span","yt-uix-button-icon-wrapper",["img",["yt-uix-button-icon","iv-card-button-icon"],{src:b.k}]]);return new Y(["article","iv-card-simple",["div","iv-card-image",{style:"background-image: url("+b.imageUrl+");"}],["div","iv-card-content",["h1","",b.title],["a",d,{href:c,role:"button"},e,["span","yt-uix-button-content",b.o]]]])}
function xB(a,b,c){var d=wB(a,b),e=d.K();jz(a.g.g,e,"click",z(a.k,b,c),"iv-click-target",a);return d}
function yB(a,b){var c=uB(a,b.url,b.id),d=["ul","iv-card-meta-info"];E(b.j,function(a){d.push(["li","",a])});return new Y(["article",["iv-card-watchable","iv-card-video"],["h1",{style:"background-image: url("+b.D+");"},b.A],["div","iv-click-target",["a",["iv-card-image","iv-click-target"],{href:c},["img",{src:b.o}],["span","iv-card-video-duration",b.k]],["div",["iv-card-content","iv-click-target"],["h2","",b.title],d]]])}
function zB(a,b){var c=["ul","yt-uix-form-list-option"];tb(c,F(b.options,function(a){return["li","iv-card-option",{"data-index":a.index.toString()},["label","",["span","yt-uix-form-input-radio-container",["input","yt-uix-form-input-radio",{type:"radio",name:"radio"}],["span","yt-uix-form-input-radio-element"]]," ",a.desc]]}));var c=new Y(["article",["iv-card-poll","iv-card-simple"],["div","iv-card-image",{style:"background-image: url("+b.imageUrl+");"}],["div","iv-card-content",["h1","",b.title],
["fieldset",["yt-uix-form-fieldset","iv-card-options"],c]]]),d=c.K();jz(a.g.g,d,"click",z(a.j,b),"iv-card-option",a);jz(a.g.g,d,"touchend",z(a.j,b),"iv-card-option",a);return c}sB.prototype.j=function(a,b){b.stopPropagation();b.preventDefault();var c={poll_id:a.id,index:kh(b.currentTarget,"index")};Ej(this.g.o.kh,{Be:{action_poll_vote:1},cb:c})};
sB.prototype.k=function(a,b,c){c.stopPropagation();c.preventDefault();Hf("YPC_LOADER_ENABLED")?(this.g.j.pauseVideo(),this.g.j.isFullscreen()&&AB(this.g.j.app),this.g.Oa.publish("external_overlay_activated"),jA(this.g.logger,a.Ca),oB(a.F,a.D,a.A)):b(c.target,a.url,a.id,a.Ca,a.g.click,c)};function uB(a,b,c){return b?bA(b,c,a.g.o.videoId,a.g.k):null};function BB(a,b){nA.call(this,a,b);this.Ba=!1;this.G=K("div",["iv-cards-thumbnails","hid"]);this.P=K("button",void 0,K("div"));this.A=K("div","iv-cards-background",K("div"),this.P);this.ke=K("div");this.o=K("div",["iv-cards-notif","iv-cards-notif-inactive"],void 0,this.ke,K("button",{type:"button"},K("div")));this.j=K("div","iv-cards-details");this.B=new sB(this.context);this.g=[];this.I=null;this.M=0;this.k=-1;this.$b=null;this.F=this.C=!1;P(this.K(),"iv-cards");oA(this,1E3*this.context.o.lengthSeconds-
1200,2147483647,"",this.zw);this.context.j.addEventListener("onStateChange",y(this.Oc,this));this.context.j.addEventListener("onAdStateChange",y(this.Oc,this))}B(BB,nA);var CB={associated:DA,channel:AA,fundraising:DA,merch:DA,playlist:BA,poll:CA,product:DA,tip:EA,video:FA};function DB(a,b){return new Bz(a,[b,a.offsetTop],200,Jz)}function EB(a,b,c){a=new Gz(a,200,Jz);b&&Km(a,"end",b,!1,c);return a}
function FB(a){var b=new Hz(a,200,Jz);Km(b,"end",z(function(a,b){vg(a,"opacity","");b.target.L()},a));return b}
function GB(a){Tg(a.A,!1);a.K().appendChild(a.A);Dm(a.A,"click",a.Ui,!1,a);Dm(a.A,"touchend",a.Ui,!1,a);a.K().appendChild(a.G);Tg(a.j,!1);a.K().appendChild(a.j);a.K().appendChild(a.o);HB(a);a.context.g.listen(a.o,"click",a.ar,a);a.context.g.listen(a.o,"touchend",a.ar,a);a.context.g.listen(a.o,"mouseover",function(){IB(this);this.$b&&this.$b.pm.stop()},a);a.context.g.listen(a.o,"mouseout",function(){this.$b&&this.$b.pm.start(200)},a);a.context.Oa.subscribe("external_overlay_activated",a.Ui,a);JB(a,
qA(a))}f=BB.prototype;f.xs=function(a){var b=a&&a.data&&a.data.card_type;b&&CB[b]&&this.add(new CB[b](a.id,a.data,a.Ca))};
f.add=function(a){this.Ba||(GB(this),this.Ba=!0);var b=(new Y(["button",{type:"button",style:"background-image: url("+a.B+");"}])).K();Tg(b,!1);var c,d;switch(a.type){case "associated":case "fundraising":case "merch":case "product":if(c=wB(this.B,a))d=c.K(),this.Hd(d,a.url,a.id,a.Ca,a.g.click);break;case "tip":(c=xB(this.B,a,y(this.df,this)))&&(d=c.K());break;case "video":if(c=yB(this.B,a))d=c.K(),this.Hd(d,a.url,a.id,a.Ca,a.g.click);break;case "playlist":if(c=vB(this.B,a))d=c.K(),this.Hd(d,a.url,
a.id,a.Ca,a.g.click);break;case "channel":if(c=tB(this.B,a))d=c.K(),this.Hd(d,a.url,a.id,a.Ca,a.g.click);break;case "poll":(c=zB(this.B,a))&&(d=c.K())}if(d){var e={kb:a,zg:d,yg:b},g=xb(this.g,e,function(a,b){return a.kb.startMs-b.kb.startMs});0>g&&(g=-(g+1));ub(this.g,g,0,e);Kd(this.G,b,g);1<this.g.length&&wA(this.G);c.Y(this.j,g);c=z(this.NB,e);this.context.g.listen(b,"click",c,this);this.context.g.listen(d,"click",c,this);this.context.g.listen(b,"touchend",c,this);this.context.g.listen(d,"touchend",
c,this);oA(this,a.startMs,a.endMs,a.id,z(this.OB,a),this.PB);JB(this,qA(this))}};f.df=function(a,b,c,d,e,g){ce(a,"article","iv-card-active")?BB.H.df.call(this,a,b,c,d,e,g):g.preventDefault()};f.NB=function(a,b){var c=ib(this.g,function(b){return b===a});KB(this,c,!0);ce(b.target,"button","yt-uix-button")||b.stopPropagation()};f.OB=function(){++this.M;LB(this)?IB(this):this.F=!0;fh(this.o,"iv-cards-notif-inactive")};f.PB=function(){--this.M;0==this.M&&P(this.o,"iv-cards-notif-inactive")};
function MB(a,b){if(!a.$b){a.oe();var c=new Y(["div","",["span","",b.C],["span","iv-card-image",{style:"background-image: url("+b.B+");"}]]);a.ke.innerHTML="";Id(a.ke,Nd(c.K()))}}function IB(a){if(!a.$b){var b=NB(a);if(!(0>b)){var c=a.g[b].kb;MB(a,c);Ng(a.ke,"");var d=a.ke.offsetWidth;(new Dz(a.ke,0,d,400,Jz)).play();mA(a.context.logger,8,c.Ca,void 0,c.g.iq);a.$b={pm:new Tq(function(){this.$b&&((new Dz(this.ke,d,0,200,Jz)).play(),this.$b=null)},c.teaserDurationMs,a),yx:b};a.$b.pm.start()}}}
function HB(a){a.oe();FB(a.o)}
f.ar=function(a){a&&a.stopPropagation();if(!this.C){a=new mz;Mg(this.K(),this.context.k.ce);for(var b=0;b<this.g.length;++b){var c=this.g[b].yg;a.add(FB(c));Sg(c,0);Tg(c,!0);a.add(DB(c,b*(c.offsetWidth+15)))}a.add(EB(this.o));a.add(FB(this.A));for(b=0;b<this.g.length;++b)a.add(FB(this.g[b].zg));this.C=!0;Km(a,"end",this.Ep,!1,this);a.play();this.D=A();this.j.style.width=445*this.g.length+"px";Tg(this.j,!0);Sg(this.j,1);this.oe();a=this.$b?this.$b.yx:Math.max(0,NB(this));KB(this,a,!1);a=this.g[a].kb;
this.$b?mA(this.context.logger,9,a.Ca,void 0,a.g.wi):mA(this.context.logger,12,a.Ca,void 0,a.g.wi);this.I=this.context.g.listen(this.K(),"keydown",this.zx,this)}};f.Ep=function(){this.C=!1};f.zx=function(a){switch(a.keyCode){case 27:this.Ui();a.preventDefault();break;case 37:0<this.k&&KB(this,this.k-1,!0);a.preventDefault();break;case 39:this.k+1<this.g.length&&KB(this,this.k+1,!0);a.preventDefault();break;case 9:KB(this,this.k+1<this.g.length?this.k+1:0,!0),a.preventDefault()}return!1};
f.Ui=function(a){a&&a.stopPropagation();if(!this.C){var b=new mz;E(this.g,function(a){b.add(EB(a.yg));b.add(DB(a.yg,0))});b.add(EB(this.A));b.add(FB(this.o));b.add(EB(this.j,function(){Mg(this.K(),"","")},this));this.C=!0;Km(b,"end",this.Ep,!1,this);b.play();a={};a.interval=A()-this.D;var c=this.g[this.k];c&&kA(this.context.logger,c.kb.Ca,a,c.kb.g.close);this.I&&this.context.g.Da(this.I)}};f.zw=function(){"none"!=this.j.style.display&&this.context.j.pauseVideo()};
function KB(a,b,c){var d=a.g[b];a.P.focus();if(a.k!=b){if(0<=a.k){var e=a.g[a.k];fh(e.yg,"yt-uix-button-toggled");fh(e.zg,"iv-card-active")}a.k=b;P(d.yg,"yt-uix-button-toggled");P(d.zg,"iv-card-active");DB(a.j,OB(a).x).play();b={};b.nav=c?"1":"0";fA(a.context.logger,d.kb.Ca,b,d.kb.g.rq)}}function OB(a){var b=qA(a),c=b.right-b.left,b=b.bottom-b.top,d=Pg(a.j);return new I(445*-(isNaN(void 0)?a.k||0:NaN)+(c-445)/2,(b-d.height+(1<a.g.length?63:0))/2)}
f.oe=function(){var a=qA(this);a&&(JB(this,a),vA(this.j)&&(Mg(this.K(),this.context.k.ce),Ag(this.j,OB(this))),Ag(this.K(),a.left,a.top))};f.Oc=function(a){LB(this,a)&&this.F&&(this.F=!1,IB(this))};function JB(a,b){var c=(b?445<b.right-b.left&&243<b.bottom-b.top:!1)&&!!a.g.length;uA(a.K(),c)}function LB(a,b){return 2==uw(a.context.j.app).getPlayerType()?1==(isNaN(b)?a.context.j.getAdState():b):1==(isNaN(b)?a.context.j.getPlayerState():b)}
function NB(a){var b=1E3*a.context.j.getCurrentTime();return kb(a.g,function(a){return a.kb.startMs<=b&&b<a.kb.endMs})};function PB(a,b){V.call(this);this.g=a;var c=Qd(this.g)?this.g:this.g?this.g.body:null;c&&Hg(c);this.j=Dm(this.g,Tc?"DOMMouseScroll":"mousewheel",this,b)}B(PB,V);
PB.prototype.handleEvent=function(a){var b=0,c=0,d=0;a=a.g;if("mousewheel"==a.type){c=1;if(Sc||Uc&&(Xc||gd("532.0")))c=40;d=QB(-a.wheelDelta,c);n(a.wheelDeltaX)?(b=QB(-a.wheelDeltaX,c),c=QB(-a.wheelDeltaY,c)):c=d}else d=a.detail,100<d?d=3:-100>d&&(d=-3),n(a.axis)&&a.axis===a.HORIZONTAL_AXIS?b=d:c=d;ia(this.k)&&Ic(b,-this.k,this.k);ia(this.o)&&Ic(c,-this.o,this.o);b=new RB(d,a);this.T(b)};function QB(a,b){return Uc&&(Wc||Yc)&&0!=a%b?a:a/b}
PB.prototype.L=function(){PB.H.L.call(this);Mm(this.j);this.j=null};function RB(a,b){qm.call(this,b);this.type="mousewheel";this.detail=a}B(RB,qm);function SB(a,b,c){this.g=a;this.A=b;this.j=c}function TB(a,b){var c=UB(a,b.url,b.id),d=b.k&&b.k["iv-blob-subscribe"]?["div","iv-blob-subscribe"]:VB(b),c=new Y(["article","",["div",["iv-card-image","iv-click-target"],{style:"background-image: url("+b.D+");"}],["div",["iv-card-content","iv-click-target"],["h2","",["a",{href:c},b.title]],d]]),e=c.K();Hb(b.k,function(a,b){var c=td(b,e);E(c,function(b){b.innerHTML=a})},c);jz(a.g.g,e,"click",z(a.k,b),"iv-click-target",a);return c}
function WB(a,b){var c=UB(a,b.url,b.id),c=["article","iv-card-playlist",["div",["iv-card-image","iv-click-target"],["img",{src:b.k,alt:""}],["div","iv-card-image-overlay",["span","iv-card-playlist-video-count",b.playlistVideoCount.toString()],["span","iv-card-playlist-play-all",Nf("YTP_PLAY_ALL")]]],["div",["iv-card-content","iv-click-target"],["h2","",["a",{href:c},b.title]],VB(b)]],c=new Y(c),d=c.K();XB(a,d,b);return c}
function YB(a,b){var c=["ul","yt-uix-form-list-option"];tb(c,F(b.options,function(a){return["li","",["label","iv-click-target",["span","yt-uix-form-input-radio-container",["input","yt-uix-form-input-radio",{type:"radio",name:"radio",value:a.index.toString()}],["span","yt-uix-form-input-radio-element"]]," ",a.desc]]}));var c=["article","iv-card-poll",["div","iv-card-content",["h2","",b.title],["form","",c,["button",["yt-uix-button","yt-uix-button-size-default","yt-uix-button-primary"],["span","yt-uix-button-content",
Nf("YTP_DRAWER_POLL_SUBMIT")]]]]],c=new Y(c),d=c.K();jz(a.g.g,d,"click",z(a.o,b),"yt-uix-button",a);return c}function ZB(a,b){var c=UB(a,b.url,b.id),c=new Y($B(b,c)),d=c.K();XB(a,d,b);return c}function aC(a,b){var c=UB(a,b.url,b.id),c=new Y($B(b,c)),d=c.K();jz(a.g.g,d,"click",z(a.B,b),"iv-click-target",a);return c}
function bC(a,b){var c=UB(a,b.url,b.id),c=["article","iv-card-video",["div",["iv-card-image","iv-click-target"],["img",{src:b.o,alt:""}],["span","iv-card-video-duration",b.k]],["div",["iv-card-content","iv-click-target"],["h2","",["a",{href:c},b.title]],VB(b)]],c=new Y(c),d=c.K();XB(a,d,b);return c}function VB(a){var b=["ul","iv-card-meta-info"];E(a.j,function(a){b.push(["li","",a])});return b}
function $B(a,b){var c={href:b},d={href:b};a.showLinkIcon&&(c["class"]="iv-card-link-icon",d["class"]="iv-card-link-icon");a.k&&(d["class"]="iv-card-button-icon",d.style="background-image: url("+a.k+");");return["article","",["div",["iv-card-image","iv-click-target"],{style:"background-image: url("+a.imageUrl+");"},a.displayDomain?["a",c,a.displayDomain]:""],["div",["iv-card-content","iv-click-target"],["h2","",a.title],["a",d,a.o]]]}
SB.prototype.k=function(a,b){ce(b.target,"","iv-blob-subscribe")?b.preventDefault():this.j(b.target,a.url,a.id,a.Ca,a.g.click,b)};SB.prototype.o=function(a,b){b.stopPropagation();b.preventDefault();var c=a.id,d;t:{if(d=b.currentTarget.form.elements.radio){if(d.type){d=qj(d);break t}for(var e=0;e<d.length;e++){var g=qj(d[e]);if(g){d=g;break t}}}d=null}Ej(this.g.o.kh,{Be:{action_poll_vote:1},cb:{poll_id:c,index:d}})};
SB.prototype.B=function(a,b){b.stopPropagation();b.preventDefault();Hf("YPC_LOADER_ENABLED")?(this.g.j.pauseVideo(),this.g.j.isFullscreen()&&AB(this.g.j.app),jA(this.g.logger,a.Ca,a.g.click),oB(a.F,a.D,a.A)):this.j(b.target,a.url,a.id,a.Ca,a.g.click,b)};function UB(a,b,c){return b?bA(b,c,a.g.o.videoId,a.g.k):null}function XB(a,b,c){a.A(b,c.url,c.id,c.Ca,c.g.click)};function cC(a,b){nA.call(this,a,b);this.Mk=this.j=this.G=this.I=!1;this.C=new Tq(null,b.k.Mc?4E3:3E3);this.A=new SB(b,y(this.Hd,this),y(this.df,this));var c=["header","iv-drawer-header",Nf("YTP_DRAWER_HEADER_TEXT"),["button","iv-drawer-close-button"]];this.F=(new Y(c)).K();this.Jd=(new Y(["section","iv-drawer"])).K();this.k=(new Y(["div","iv-drawer-teaser",["div","iv-drawer-teaser-box"],["div","iv-drawer-teaser-text"],["button","",["span"]]])).K();this.B=vd("iv-drawer-teaser-text",this.k);this.Bc=
null;this.g=[];this.o=-1;b.k.experiments.qv&&oA(this,1E3*b.o.lengthSeconds-5E3,2147483647,"",z(this.ep,null))}B(cC,nA);var dC={associated:DA,channel:AA,fundraising:DA,merch:DA,playlist:BA,poll:CA,product:DA,tip:EA,video:FA};function eC(a){a=ee(a.K(),"ytp-iv-player-content");if(!a)return!1;a=Pg(a);return 177<a.width&&177<a.height}
function fC(a){var b=["html5-stop-propagation","iv-drawer-manager"];a.context.k.experiments.rv&&b.push("iv-drawer-teaser-style-exp");eh(a.K(),b);a.K().appendChild(a.k);a.K().appendChild(a.F);a.K().appendChild(a.Jd);jz(a.context.g,a.F,"click",a.CC,"iv-drawer-close-button",a);b=new PB(a.Jd);Dm(b,"mousewheel",function(){this.C.start()},!1,a);a.context.g.listen(a.Jd,"scroll",a.DC,a);a.context.g.listen(a.k,"click",a.EC,a);a.context.g.listen(a.k,"mouseover",function(){this.Bc&&this.Bc.stop()},a);a.context.g.listen(a.k,
"mouseout",function(){this.Bc&&this.Bc.start()},a);a.context.Oa.subscribe("onHideControls",function(){this.Mk=!0},a);a.context.Oa.subscribe("onShowControls",function(){this.Mk=!1},a)}f=cC.prototype;f.xs=function(a){var b=a&&a.data&&a.data.card_type;b&&dC[b]&&this.add(new dC[b](a.id,a.data,a.Ca))};
f.add=function(a){this.I||(fC(this),this.I=!0);var b,c;switch(a.type){case "associated":case "fundraising":case "merch":case "product":b=ZB(this.A,a);break;case "tip":b=aC(this.A,a);break;case "video":b=bC(this.A,a);break;case "playlist":b=WB(this.A,a);break;case "channel":b=TB(this.A,a);break;case "poll":b=YB(this.A,a)}if(b){c=b.K();c={kb:a,zg:c,Eq:!1,ur:!1};var d=xb(this.g,c,function(a,b){return a.kb.startMs-b.kb.startMs});0>d&&(d=-(d+1));ub(this.g,d,0,c);b.Y(this.Jd,d);this.oe();b=1E3*this.context.j.getCurrentTime();
5E3>b&&b>a.startMs&&this.Pr(c);oA(this,a.startMs,a.startMs+1,a.id,z(this.Pr,c))}};function gC(a){if(!(a.Bc||a.j||0>a.o)){P(a.k,"iv-drawer-teaser-active");var b=a.g[a.o].kb;a.Bc=new Tq(a.yq,580+b.teaserDurationMs,a);a.Bc.start();var c=hC(a);mA(a.context.logger,8,b.Ca,c,b.g.iq)}}f.yq=function(){this.Bc&&(fh(this.k,"iv-drawer-teaser-active"),N(y(function(){this.Bc=null},this),330))};
f.ep=function(a){a&&a.stopPropagation();this.j||(this.yq(),P(this.K(),"iv-drawer-open"),this.j=!0,P(this.context.j.Pa(),"ytp-iv-drawer-open"),this.D=A(),lA(this.context.logger,7),E(this.g,function(a){a.ur||(a.ur=!0,fA(this.context.logger,a.kb.Ca,null,a.kb.g.rq))},this))};f.DC=function(){Q(this.K(),"iv-drawer-scrolled",0<this.Jd.scrollTop)};
f.CC=function(a){var b=iC(this);lA(this.context.logger,4,b.g.close);a&&a.stopPropagation();this.j&&(fh(this.K(),"iv-drawer-open"),this.j=!1,fh(this.context.j.Pa(),"ytp-iv-drawer-open"),lA(this.context.logger,10))};f.EC=function(a){if(!this.j){var b=hC(this);if(0>this.o)lA(this.context.logger,12);else{var c=iC(this);this.Bc?mA(this.context.logger,9,c.Ca,b,c.g.wi):mA(this.context.logger,12,c.Ca,b,c.g.wi)}this.ep(a)}};
f.Pr=function(a){if(!this.Bc){var b=ib(this.g,function(b){return b===a});this.o!=b&&(this.o=b,Ud(this.B,a.kb.C));vA(this.K())&&(2==uw(this.context.j.app).getPlayerType()?1==(isNaN(void 0)?this.context.j.getAdState():void 0):1==(isNaN(void 0)?this.context.j.getPlayerState():void 0))&&gC(this);(!this.j||!this.C.isActive()&&this.Mk)&&jC(this,b)}};
function jC(a,b){var c=new wz([0,a.Jd.scrollTop],[0,a.g[b].zg.offsetTop],600,Jz);a.context.g.listen(c,"animate",function(a){this.Jd.scrollTop=a.y},a);a.context.g.listen(c,"finish",function(a){this.Jd.scrollTop=a.y},a);c.play()}f.oe=function(){var a=eC(this)&&!!this.g.length;uA(this.K(),a);a&&(this.G||(lA(this.context.logger,11),this.G=!0),E(this.g,function(a){a.Eq||(a.Eq=!0,mA(this.context.logger,11,a.kb.Ca))},this));this.context.k.experiments.to&&kC(this)};
function iC(a){var b=Math.max(0,a.o);return a.g[b].kb}function kC(a){var b=a.context.k.ce;if(b){var b=Ic(b.width/b.height>=640/360?b.height/360:b.width/640,1,1.3),b=Math.round(10*b)/10,c=12;switch(b){case 1.1:c=13;break;case 1.2:c=14;break;case 1.3:c=15}c!==bh(a.B)&&vg(a.B,"font-size",c+"px")}}function hC(a){var b;a.context.k.experiments.to&&(b={},b["a-fs"]=bh(a.B));return b};function lC(a,b,c){nA.call(this,a,b);this.annotation=c;this.isActive=!1}B(lC,nA);lC.prototype.wj=function(){lC.H.wj.call(this);var a=this.annotation.data;"start_ms"in a&&"end_ms"in a&&oA(this,this.annotation.data.start_ms,this.annotation.data.end_ms,this.annotation.id,this.show,this.hide)};function mC(a,b,c){lC.call(this,a,b,c);this.g=null;this.k=!1;this.oj=null;this.od=!1;this.j=0}B(mC,lC);
function nC(a){P(a.K(),"iv-branding");var b=a.annotation.data;a.j=b.image_width;a.g=K("img",{src:b.image_url,"class":"branding-img iv-click-target iv-view-target hid",width:b.image_width,height:b.image_height});var c=K("div","branding-img-container",a.g);a.K().appendChild(c);var d=K("div","iv-branding-context-name");Ud(d,b.channel_name);var e=K("div","iv-branding-context-subscribe");a.annotation.k?e.innerHTML=a.annotation.k:b.num_subscribers&&Ud(e,b.num_subscribers);c=K("div","iv-branding-context-subscribe-caret");
d=K("div",["branding-context-container-inner","iv-view-target"],c,d,e);e=K("div","branding-context-container-outer",d);vg(e,"right",a.j+"px");a.K().appendChild(e);a.Hd(a.K(),oC(a.annotation),a.annotation.id,a.annotation.Ca);a.oj=new Tq(z(function(a){var b=Pg(a.parentElement);(new Cz(a.parentElement,[b.width,b.height],[0,0],200,Iz)).play();this.od=!1},d),500,a);jz(a.context.g,a.K(),"mouseover",z(function(a,b,c){this.oj.stop();if(!this.od){var d=Pg(a);Ng(a,d.width);c=Math.min(d.height,c);c=Math.max(c/
2-10,0);Ag(b,d.width,c);this.od=!0;b=9;d=Pg(a);c=Pg(a.parentElement);(new Cz(a.parentElement,[c.width,c.height],[d.width+b,d.height],200,Iz)).play()}},d,c,b.image_height),"iv-view-target",a);jz(a.context.g,a.K(),"mouseout",y(a.oj.start,a.oj),"iv-view-target",a)}
mC.prototype.show=function(){if(!this.isActive){mC.H.show.call(this);this.k||(nC(this),this.k=!0);fA(this.context.logger,this.annotation.Ca);wA(this.K());this.isActive=!0;var a=this.g,b,c=Rg(a).width,d=ia(void 0)?void 0:c;b=b||0;Ag(a,d);b=new Az(a,[d,a.offsetTop],[d-c-b,a.offsetTop],200,Iz);Dm(b,"begin",z(wA,a));b.play()}};mC.prototype.hide=function(){this.isActive&&(xA(this.K()),this.isActive=!1)};function pC(a,b,c,d,e,g){this.g=a;this.k=b;this.o=c;this.logger=d;this.j=e;this.Oa=g};function qC(a){this.value=a};function rC(a,b,c,d){this.type=a;this.trigger=b;this.url=c;this.duration=d}var sC={CLOSE:"close",FJ:"openUrl",PAUSE:"pause",UG:"subscribe"},tC={CLICK:"click",CLOSE:"close",wI:"hidden",aK:"rollOut",RG:"rollOver",SG:"shown"};function uC(a){if(!a)return null;var b=Oz(a.type,sC),c=Oz(a.trigger,tC),d=Yz(Kz(a.url));Kz(a.subscribeData);(a=Kz(a.duration))?(a=Sz(a.value),a=new qC(a)):a=null;return b?new rC(b,c,d,a):null};function vC(a,b,c,d,e,g,h,k,l,p,r,v,x,ca){this.B=a;this.A=b;this.C=c;this.D=d;this.k=e;this.I=g;this.o=h;this.textAlign=k;this.J=l;this.F=p;this.G=r;this.g=v;this.j=x;this.M=ca}
function wC(a){if(!a)return null;var b=Mz(a.fgColor,"#1A1A1A"),c=Mz(a.bgColor,"#FFF"),d=Mz(a.borderColor,"#000"),e=Rz(a.borderWidth,10,0,5,!1,0),g=Rz(a.bgAlpha,10,0,1,!1,.8);Rz(a.borderAlpha,10,0,1,!1,.2);Rz(a.gloss,16,0,255,!1,0);var h=Mz(a.highlightFontColor,"#F2F2F2"),k=Rz(a.highlightWidth,10,0,5,!1,3),l=Nz(a.textAlign),p=Rz(a.textSize,10,3.3,30.1,!0,3.6107),r=Nz(a.fontWeight),v=Uz(a.padding),x=Vz(a.effects),ca=Rz(a.cornerRadius,10,0,10,!0,0);var ba=Kz(a.gradient);if(ba){a=Rz(ba.x1,10,0,100,!0,
0);var ja=Rz(ba.y1,10,0,100,!0,0),ta=Rz(ba.x2,10,0,100,!0,100),Re=Rz(ba.y2,10,0,100,!0,100),ke=Mz(ba.color1,"#FFF"),Kr=Mz(ba.color2,"#000"),Wy=Rz(ba.opacity1,10,0,100,!0,100),ba=Rz(ba.opacity2,10,0,100,!0,0);a=new xC(a,ja,ta,Re,ke,Kr,Wy,ba)}else a=null;return new vC(b,c,d,e,g,h,k,l,p,r,v,x,ca,a)}function xC(a,b,c,d,e,g,h,k){this.A=a;this.C=b;this.B=c;this.D=d;this.g=e;this.j=g;this.k=h;this.o=k};function yC(a,b){this.g=a;this.videoId=b};var zC={nL:"xx",oL:"xy",rL:"yx",sL:"yy"};function AC(a,b,c){var d=a.C,e=a.D,g=a.g?a.g:"xy",h=BC(c,a.o,g);a=CC(c,a.k,g);var g=640*b.width*h/100,k=360*b.height*a/100;return new mg(0==d?640*b.left*h/100:0<d?d:c.width+d-g,0==e?360*b.top*a/100:0<e?e:c.height+e-k,g,k)}function BC(a,b,c){var d=(c="xx"==c||"xy"==c)?640:360;return(d+((c?a.width:a.height)-d)*b)/d}function CC(a,b,c){var d=(c="xy"==c||"yy"==c)?360:640;return(d+((c?a.height:a.width)-d)*b)/d};function DC(a,b,c,d,e,g,h,k,l,p,r){this.x=a;this.y=b;this.A=c;this.h=d;this.j=e;this.B=g;this.C=h;this.D=k;this.o=l;this.k=p;this.g=r}function EC(a,b){if(!a)return null;var c=Qz(a.x,0),d=Qz(a.y,0),e=Qz(a.w,0),g=Qz(a.h,0),h=Sz(a.t),k=Qz(a.scaleSlope,1);return b(c,d,e,g,h,Qz(a.d,0),Qz(a.px,0),Qz(a.py,0),Qz(a.scaleSlopeX,k),Qz(a.scaleSlopeY,k),Oz(a.scaleDimension,zC,"xy"))}
function FC(a,b,c){c=c?FC(c,b):null;a=AC(a,new mg(a.x,a.y,a.A,a.h),b);c?(a.top+=c.top,a.left+=c.left):(a.top+=b.top,a.left+=b.left);c=a.clone();b&&!b.contains(a)&&(a.width<b.width?c.left=Ic(a.left,b.left,b.left+b.width-a.width):(c.left=b.left,c.width=b.width),a.height<b.height?c.top=Ic(a.top,b.top,b.top+b.height-a.height):(c.top=b.top,c.height=b.height));return c}function GC(a){return a?EC(a,function(a,c,d,e,g,h,k,l,p,r,v){return new DC(a,c,d,e,g,h,k,l,p,r,v)}):null};function HC(a,b,c,d,e,g,h,k,l,p,r,v,x){DC.call(this,a,b,c,d,e,k,l,p,r,v,x);this.F=g;this.G=h}B(HC,DC);function IC(a){if(!a)return null;var b=Qz(a.sx,0),c=Qz(a.sy,0);return EC(a,function(a,e,g,h,k,l,p,r,v,x,ca){return new HC(a,e,g,h,k,b,c,l,p,r,v,x,ca)})};function JC(a,b,c,d){this.type=a;this.j=b;this.g=c;this.k=d}var KC={DG:"anchored",VJ:"rect",iK:"shapeless"};function LC(a){if(!a)return null;var b=Oz(a.type,KC,"rect"),c=Tz(a.rectRegion,GC),d=Tz(a.anchoredRegion,IC);a=Tz(a.shapelessRegion,GC);return new JC(b,c,d,a)}function MC(a){return a.j&&a.j.length?a.j[0]:a.g&&a.g.length?a.g[0]:a.k&&a.k.length?a.k[0]:null};function NC(a,b){this.j=a;this.g=b};function OC(a,b){this.state=a;this.g=b}var PC={CLOSED:"closed",JJ:"playerControlShow",RG:"rollOver",SG:"shown"};function QC(a){if(!a)return null;var b=Oz(a.state,PC);a=Lz(a.ref);return b?new OC(b,a):null};function RC(a,b,c,d){this.g=a||[];this.k=b||[];this.o=c;this.j=d;this.value=!1}function SC(a){if(!a)return null;var b=Tz(a.condition,QC),c=Tz(a.notCondition,QC),d=Pz(a.show_delay,!1);a=Pz(a.hide_delay,!1);return b||c?new RC(b,c,d,a):null}function TC(a,b,c){E(a.g,z(b,!1),c);E(a.k,z(b,!0),c)};function UC(a,b,c,d,e,g,h,k,l,p,r,v,x,ca,ba,ja){this.id=a;this.author=b;this.type=c;this.style=d;this.B=e;this.j=g;this.A=h||[];this.D=k||[];this.g=l;this.F=p;this.o=r;this.C=v;this.k=ca;this.data=ba;this.Ca=ja}
var VC={DG:"anchored",FG:"branding",aI:"channel",gI:"cta",FI:"highlightText",WI:"label",LJ:"playlist",MJ:"popup",qK:"speech",UG:"subscribe",GK:"title",VIDEO:"video",iL:"vote",lL:"website"},WC={FG:"branding",SH:"card",EI:"highlight",Ju:"image",MARKER:"marker",PAUSE:"pause",RJ:"promotion",Ns:"survey",TEXT:"text",mL:"widget"},XC={eL:"video_relative",KJ:"player_relative"};
function YC(a){if(!a)return null;var b=Lz(a.id),c=Lz(a.author),d=Oz(a.type,WC),e=Oz(a.style,VC),g=Nz(Kz(a.TEXT)),h=Nz(a.data),h=0!=h.length?cg(h):{},k;var l=Kz(a.segment);l?(Lz(l.timeRelative),k=Lz(l.spaceRelative),k=(l=Tz(l.movingRegion,LC))?new NC(k,l):null):k=null;var l=Tz(a.action,uC),p=Tz(a.trigger,SC),r=wC(Kz(a.appearance));r||(r=wC({}));var v=Oz(a.coordinate_system,XC,"video_relative"),x;x=(x=Kz(a.image_source))?new yC(Nz(x.standard_url),Nz(x.video_id)):null;var ca=Pz(a.closeable,!0),ba=Nz(a.html_blob);
a=Nz(a.log_data);return b&&d?new UC(b,c,d,e,g,k,l,p,r,v,x,ca,0,ba,h,a):null}function oC(a){return(a=ZC(a,function(a){return"openUrl"==a.type&&null!=a.url}))?a.url:null}UC.prototype.showLinkIcon=function(){return $C(this,function(a){return null!=a.url&&a.url.showLinkIcon})};function aD(a){return $C(a,function(a){return"click"==a.trigger})}function $C(a,b){return gb(a.A,b,void 0)}function bD(a,b,c){E(a.A,b,c)}function ZC(a,b){return G(a.A,b,void 0)}function cD(a,b,c){E(a.D,b,c)}
function dD(a,b){F(a.D,b,void 0)}function eD(a){return(a=fD(a))?MC(a):null}function fD(a){a.j?(a=a.j,a=a.g.length?a.g[0]:null):a=null;return a}function gD(a,b){var c=eD(a);return c&&b?CC(b,c.k,c.g?c.g:"xy"):1};function hD(a,b,c){lC.call(this,a,b,c);this.Xi=this.j=this.o=!1;this.k=5E3;this.g=null;this.Bf=K("div","iv-promo-contents")}B(hD,lC);
function iD(a){var b=a.annotation.data;a.k=b.collapse_delay_ms||a.k;var c=["iv-promo","iv-promo-inactive"],d;if(b.image_url){d=K("div","iv-promo-img");var e=K("img",{src:b.image_url,"class":"iv-click-target"});d.appendChild(e);b.video_duration&&!b.is_live?(e=K("span",["iv-promo-video-duration","iv-click-target"],b.video_duration),d.appendChild(e)):b.playlist_length&&(e=K("span",["iv-promo-playlist-length","iv-click-target"],b.playlist_length.toString()),d.appendChild(e))}var e=K("div","iv-promo-txt"),
g,h,k;switch(a.annotation.style){case "cta":case "website":g=K("p","iv-click-target",K("strong",null,b.text_line_1));h=K("p",["iv-promo-link","iv-click-target"],b.text_line_2);P(e,"iv-click-target");break;case "playlist":case "video":g=K("p","iv-click-target",b.text_line_1);h=K("p","iv-click-target",K("strong",null,b.text_line_2));b.is_live&&(g=h,h=K("span",["yt-badge","iv-promo-badge-live","iv-click-target"],Nf("YTP_LIVE_NOW")));P(e,"iv-click-target");c.push("iv-promo-video");break;case "vote":g=
K("p",null,K("strong",null,b.text_line_1)),h=K("p",null,b.text_line_2),k=K("div","iv-promo-button"),b=K("button",["yt-uix-button","yt-uix-button-primary"],K("span","yt-uix-button-content",b.button_text)),a.context.g.listen(b,"click",function(a){a.stopPropagation();jA(this.context.logger,this.annotation.Ca,null,{contest_vote:"1"});var b=this.annotation.data;a=vd("iv-promo-txt",this.Bf);var c=vd("iv-promo-button",this.Bf),d=K("div",["iv-promo-txt","iv-click-target"]),e=K("p","iv-click-target",K("strong",
null,b.text_line_3)),b=K("p","iv-click-target",b.text_line_4);Id(d,e,b);Ld(c);Md(d,a);fh(this.K(),"iv-promo-with-button");this.Hd(this.Bf,oC(this.annotation),this.annotation.id,this.annotation.Ca)},a),k.appendChild(b),c.push("iv-promo-with-button")}g&&e.appendChild(g);h&&e.appendChild(h);a.Bf.appendChild(e);k&&a.Bf.appendChild(k);g=K("div","iv-promo-actions");h=K("div","iv-promo-expand");g.appendChild(h);a.context.g.listen(a.K(),"mouseover",a.As,a);a.context.g.listen(h,"touchend",function(a){a.stopPropagation();
this.As();this.Xi=!1},a);a.context.g.listen(a.K(),"mouseout",a.A,a);h=K("div","iv-promo-close");g.appendChild(h);jD(a,y(function(){this.hide()},a),h);eh(a.K(),c);d&&Hd(a.K(),d);Hd(a.K(),a.Bf);Hd(a.K(),g);a.Hd(a.K(),oC(a.annotation),a.annotation.id,a.annotation.Ca)}
hD.prototype.show=function(){this.isActive||(hD.H.show.call(this),this.o||(iD(this),this.o=!0),wA(this.K()),this.annotation&&this.annotation.Ca&&fA(this.context.logger,this.annotation.Ca),fh(this.K(),"iv-promo-inactive"),this.isActive=!0,this.g&&(wn(this.g),this.g=null),kD(this),lD(this,this.k))};hD.prototype.hide=function(){this.isActive&&(P(this.K(),"iv-promo-inactive"),this.isActive=!1)};hD.prototype.As=function(){this.Xi=!0;kD(this);lD(this,500)};hD.prototype.A=function(){this.Xi=!1;mD(this)};
function mD(a){a.j||a.Xi||a.g||(P(a.K(),"iv-promo-collapsed"),a.j=!0)}function kD(a){a.j&&(fh(a.K(),"iv-promo-collapsed"),a.j=!1)}function lD(a,b){a.g||(a.g=vn(function(){this.g&&(wn(this.g),this.g=null);mD(this)},b,a))}function jD(a,b,c){function d(a){kA(this.context.logger,this.annotation.Ca);b(a);a.stopPropagation()}a.context.g.listen(c,"click",y(d,a));a.context.g.listen(c,"touchend",y(d,a))};function nD(a,b,c){this.g={};this.j=!1;this.A="ivTrigger:"+a;this.k=c;TC(b,function(a,b){var c=oD(b.state,b.g);this.k.subscribe(c,y(this.o,this,c,a));this.g[c]=a},this)}nD.prototype.o=function(a,b,c,d){this.g[a]=b?!c:c;a=Kb(this.g,function(a){return a});this.j!=a&&(this.j=a,this.k.publish(this.A,a,d))};function oD(a,b){var c="ivTriggerCondition:"+a;return b?c+":"+b:c};function pD(a,b,c){this.k=a;this.annotation=b;this.g=c;this.j=null;this.A=this.isVisible=!1;qD(b,a)}function qD(a,b){dD(a,function(c){return new nD(a.id,c,b)})}pD.prototype.hide=function(){this.isVisible=!1;this.k.unsubscribe("onResize",this.o,this);this.g&&this.g.hide()};pD.prototype.show=function(){this.isVisible=!0;this.g&&this.g.show();this.k.subscribe("onResize",this.o,this)};
pD.prototype.destroy=function(){this.k.unsubscribe("onResize",this.o,this);if(this.g){var a=this.g;a.D.removeAll();a.j&&Ld(a.j);a.k&&a.k.K()&&Ld(a.k.K())}rD(this)};function rD(a){a.j&&(a.j.stop(),a.j=null)}pD.prototype.o=function(){this.g&&sD(this.g)};function tD(){};function uD(a,b,c,d,e,g,h,k){this.A=a;this.C=b;this.B=c;this.D=d;this.g=e;this.j=g;this.k=n(h)?h:null;this.o=n(k)?k:null}B(uD,tD);function vD(){this.fa=[];this.ia=[];this.xd=[]}vD.prototype.$f=null;vD.prototype.Yc=null;vD.prototype.Zj=!0;var wD=[2,2,6,6,0];f=vD.prototype;f.clear=function(){this.fa.length=0;this.ia.length=0;this.xd.length=0;delete this.$f;delete this.Yc;delete this.Zj;return this};function xD(a,b,c){0==ab(a.fa)?a.xd.length-=2:(a.fa.push(0),a.ia.push(1));a.xd.push(b,c);a.Yc=a.$f=[b,c]}
f.Za=function(a){var b=ab(this.fa);if(null==b)throw Error("Path cannot start with lineTo");1!=b&&(this.fa.push(1),this.ia.push(0));for(b=0;b<arguments.length;b+=2){var c=arguments[b],d=arguments[b+1];this.xd.push(c,d)}this.ia[this.ia.length-1]+=b/2;this.Yc=[c,d]};f.close=function(){var a=ab(this.fa);if(null==a)throw Error("Path cannot start with close");4!=a&&(this.fa.push(4),this.ia.push(1),this.Yc=this.$f);return this};
function yD(a,b,c,d,e){var g=a.Yc[0]-b*Math.cos(d*Math.PI/180)+b*Math.cos((d+e)*Math.PI/180),h=a.Yc[1]-c*Math.sin(d*Math.PI/180)+c*Math.sin((d+e)*Math.PI/180);a.fa.push(3);a.ia.push(1);a.xd.push(b,c,d,e,g,h);a.Zj=!1;a.Yc=[g,h]}function zD(a,b){for(var c=a.xd,d=0,e=0,g=a.fa.length;e<g;e++){var h=a.fa[e],k=wD[h]*a.ia[e];b(h,c.slice(d,d+k));d+=k}}
f.clone=function(){var a=new this.constructor;a.fa=this.fa.concat();a.ia=this.ia.concat();a.xd=this.xd.concat();a.$f=this.$f&&this.$f.concat();a.Yc=this.Yc&&this.Yc.concat();a.Zj=this.Zj;return a};f.isEmpty=function(){return 0==this.fa.length};function AD(a,b){this.F=a;this.G=null==b?1:b}B(AD,tD);function BD(a,b){this.g=a;this.j=b};function CD(){}da(CD);CD.prototype.g=0;function DD(a){V.call(this);this.J=a||od();this.xa=null;this.ze=!1;this.g=null;this.A=void 0;this.B=this.D=this.F=null}B(DD,V);f=DD.prototype;f.kE=CD.getInstance();f.getId=function(){return this.xa||(this.xa=":"+(this.kE.g++).toString(36))};f.K=function(){return this.g};f.ai=function(a){if(this.F&&this.F!=a)throw Error("Method not supported");DD.H.ai.call(this,a)};f.Qt=function(){this.g=this.J.createElement("div")};
f.lh=function(){ED(this,function(a){a.ze&&a.lh()});this.A&&this.A.removeAll();this.ze=!1};f.L=function(){this.ze&&this.lh();this.A&&(this.A.dispose(),delete this.A);ED(this,function(a){a.dispose()});this.g&&Ld(this.g);this.F=this.g=this.B=this.D=null;DD.H.L.call(this)};f.De=function(){return this.g};function ED(a,b){a.D&&E(a.D,b,void 0)}
f.removeChild=function(a,b){if(a){var c=w(a)?a:a.getId();a=this.B&&c?Xb(this.B,c)||null:null;if(c&&a){Wb(this.B,c);ob(this.D,a);b&&(a.lh(),a.g&&Ld(a.g));c=a;if(null==c)throw Error("Unable to set parent component");c.F=null;DD.H.ai.call(c,null)}}if(!a)throw Error("Child is not in parent component");return a};function FD(a,b,c,d,e){DD.call(this,e);this.width=a;this.height=b;this.o=c||null;this.G=d||null}B(FD,DD);FD.prototype.k=null;FD.prototype.zh=function(){return this.ze?Og(this.K()):ia(this.width)&&ia(this.height)?new J(this.width,this.height):null};function GD(a){var b=a.zh();return b?b.width/(a.o?new J(a.o,a.G):a.zh()).width:0}FD.prototype.resume=function(){};function HD(a,b){V.call(this);this.wh=a;this.Lk=b;this[rm]=!1}B(HD,V);f=HD.prototype;f.Lk=null;f.wh=null;f.K=function(){return this.wh};f.addEventListener=function(a,b,c,d){Dm(this.wh,a,b,c,d)};f.removeEventListener=function(a,b,c,d){Lm(this.wh,a,b,c,d)};f.L=function(){HD.H.L.call(this);var a=this.wh;if(a)if(sm(a))a.removeAllListeners(void 0);else if(a=Gm(a)){var b=0,c;for(c in a.g)for(var d=a.g[c].concat(),e=0;e<d.length;++e)Mm(d[e])&&++b}};function ID(a,b,c,d){HD.call(this,a,b);a=this.Lk;b=this.K();c?(b.setAttribute("stroke",c.j),b.setAttribute("stroke-opacity",1),c=c.g,w(c)&&-1!=c.indexOf("px")?b.setAttribute("stroke-width",parseFloat(c)/GD(a)):b.setAttribute("stroke-width",c)):b.setAttribute("stroke","none");c=this.Lk;a=this.K();if(d instanceof AD)a.setAttribute("fill",d.F),a.setAttribute("fill-opacity",d.G);else if(d instanceof uD){b="lg-"+d.A+"-"+d.C+"-"+d.B+"-"+d.D+"-"+d.g+"-"+d.j;var e=JD(c,b);if(!e){var e=KD(c,"linearGradient",
{x1:d.A,y1:d.C,x2:d.B,y2:d.D,gradientUnits:"userSpaceOnUse"}),g="stop-color:"+d.g;ia(d.k)&&(g+=";stop-opacity:"+d.k);g=KD(c,"stop",{offset:"0%",style:g});e.appendChild(g);g="stop-color:"+d.j;ia(d.o)&&(g+=";stop-opacity:"+d.o);d=KD(c,"stop",{offset:"100%",style:g});e.appendChild(d);e=LD(c,b,e)}a.setAttribute("fill","url(#"+e+")")}else a.setAttribute("fill","none")}B(ID,HD);function MD(a,b){HD.call(this,a,b)}B(MD,HD);function ND(a,b){HD.call(this,a,b)}B(ND,HD);function OD(a,b,c,d){ID.call(this,a,b,c,d)}B(OD,ID);function PD(a,b){HD.call(this,a,b)}B(PD,MD);PD.prototype.clear=function(){Jd(this.K())};function QD(a,b,c,d){ID.call(this,a,b,c,d)}B(QD,OD);function RD(a,b){HD.call(this,a,b)}B(RD,ND);function SD(a,b,c,d,e){FD.call(this,a,b,c,d,e);this.j={};this.M=Uc&&!gd(526);this.I=new An(this)}var TD;B(SD,FD);var UD=0;function KD(a,b,c){a=a.J.g.createElementNS("http://www.w3.org/2000/svg",b);if(c)for(var d in c)a.setAttribute(d,c[d]);return a}f=SD.prototype;
f.Qt=function(){var a=KD(this,"svg",{width:this.width,height:this.height,overflow:"hidden"}),b=KD(this,"g");this.C=KD(this,"defs");this.k=new PD(b,this);a.appendChild(this.C);a.appendChild(b);this.g=a;this.o&&(this.K().setAttribute("preserveAspectRatio","none"),this.M?this.mr():this.K().setAttribute("viewBox","0 0 "+(this.o?this.o+" "+this.G:"")))};
f.mr=function(){if(this.ze){var a=this.zh();if(0==a.width)this.K().style.visibility="hidden";else{this.K().style.visibility="";var b=a.width/this.o,a=a.height/this.G;this.k.K().setAttribute("transform","scale("+b+" "+a+") translate(0 0)")}}};
f.zh=function(){if(!Tc)return this.ze?Og(this.K()):SD.H.zh.call(this);var a=this.width,b=this.height,c=w(a)&&-1!=a.indexOf("%"),d=w(b)&&-1!=b.indexOf("%");if(!this.ze&&(c||d))return null;var e,g;c&&(e=this.K().parentNode,g=Pg(e),a=parseFloat(a)*g.width/100);d&&(e=e||this.K().parentNode,g=g||Pg(e),b=parseFloat(b)*g.height/100);return new J(a,b)};f.clear=function(){this.k.clear();Jd(this.C);this.j={}};function VD(a,b,c,d){b=KD(a,"path",{d:WD(b)});c=new QD(b,a,c,d);a.k.K().appendChild(c.K())}
function WD(a){var b=[];zD(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(" ")}function LD(a,b,c){if(b in a.j)return a.j[b];var d="_svgdef_"+UD++;c.setAttribute("id",d);a.j[b]=d;a.C.appendChild(c);return d}
function JD(a,b){return b in a.j?a.j[b]:null}f.lh=function(){SD.H.lh.call(this);this.M&&this.I.Da(XD(),"tick",this.mr)};f.L=function(){delete this.j;delete this.C;delete this.k;this.I.dispose();delete this.I;SD.H.L.call(this)};function XD(){TD||(TD=new tn(400),TD.start());return TD};function YD(a,b,c){this.g=a;this.j=0;this.C=b;this.D=c||70;this.k=!1}YD.prototype.start=function(a){this.B=A();this.j=a;this.A=this.B+this.j;this.k=!0;wA(this.g);Kf(this.o);this.o=Jf(y(this.F,this),this.D)};YD.prototype.stop=function(){this.k=!1;xA(this.g);this.o&&Kf(this.o)};
YD.prototype.F=function(){if(this.k){var a=A(),b;b=0==this.j||a>=this.A?0:1-(a-this.B)/this.j;var c=vd("countdowntimer-diminishing-pieslice",this.g),d=qh("svg",this.g);!d&&this.g.querySelectorAll&&(d=this.g.querySelectorAll("svg"),d=d.length?d[0]:null);var d=parseInt(d.getAttribute("width"),10),e=new vD,g=d/2-5;xD(e,d/2,d/2);e.Za(d/2,5);yD(e,g,g,-90,360*-b);e.Za(d/2,d/2);e.close();c.setAttribute("d",WD(e));a>=this.A&&(this.stop(),this.C&&this.C())}};function ZD(){S.call(this);this.element=this.label=null;this.priority=0;this.o=this.A=!1;this.j=null}B(ZD,S);ZD.prototype.listen=function(a,b,c){return this.element.listen(a,b,c||this)};ZD.prototype.Da=function(a){this.element.Da(a)};function $D(a,b,c,d){Y.call(this,["div",{className:"ytp-button","aria-disabled":"{{disabled}}",tabindex:"{{tabindex}}"},"{{content}}"]);this.ja="inline-block";this.G=a;this.J=this.j=this.F=null;this.o=!1;this.listen("click",this.fE);this.listen("keypress",this.gE);this.G.nf(this.element,y(this.eE,this));JA(this,"button");b&&aE(this,b);c&&this.bb(c);d&&(this.j=d)}B($D,Y);function aE(a,b){b&&""!=b&&(a.F&&fh(a.element,a.F),a.F=b,P(a.element,b))}function bE(a,b){a.J=b;Oy(a.template,"tabindex",b)}f=$D.prototype;
f.eE=function(){return this.o?null:this.j?this.j:null};f.enable=function(){this.o=!1;this.template.update({disabled:null,tabindex:this.J});fh(this.element,"ytp-disabled")};f.disable=function(){this.o=!0;this.template.update({disabled:"true",tabindex:null});P(this.element,"ytp-disabled")};f.fE=function(a){this.o&&(a.stopImmediatePropagation(),a.preventDefault())};f.gE=function(a){if(13==a.keyCode||32==a.keyCode)a.preventDefault(),this.Sb("click")};
f.L=function(){this.G.tn(this.element);this.G=null;$D.H.L.call(this)};function cE(a,b,c){Y.call(this,["div","ytp-segmented-control"]);this.k=a;this.j=-1;this.g=[];if(null!=b)for(zi(this.g),this.g=[],a=0;a<b.length;a++){var d=new $D(this.k);JA(d,"radio");this.g.push(d);c?d.ta(["div",b[a]]):d.ta(b[a]);0!=a&&P(d.K(),"ytp-segmented-control-other");dE(d,a==this.j);d.listen("click",z(this.CA,a),this);d.Y(this.element)}JA(this,"radiogroup")}B(cE,Y);f=cE.prototype;
f.Y=function(a,b){cE.H.Y.call(this,a,b);for(var c=0,d=0;d<this.g.length;d++)c=Math.max(c,Og(this.g[d].K()).width);if(c)for(d=0;d<this.g.length;d++)Ng(this.g[d].K(),c)};f.Ea=function(a){this.j=a;for(var b=0;b<this.g.length;b++)dE(this.g[b],b==a)};f.getSelected=function(){return this.j};function eE(a,b){for(var c=0;c<a.g.length;c++)bE(a.g[c],b)}
function dE(a,b){var c=a.K();b?(fh(c,"ytp-segmented-control-deselected"),P(c,"ytp-segmented-control-selected"),c.setAttribute("aria-checked",!0)):(fh(c,"ytp-segmented-control-selected"),P(c,"ytp-segmented-control-deselected"),c.setAttribute("aria-checked",!1))}f.CA=function(a){a!=this.j&&(this.Ea(a),this.Sb("change"))};f.L=function(){zi(this.g);this.g=[];cE.H.L.call(this)};function fE(a){ZD.call(this);this.label=Z(0,"YTP_ANNOTATIONS");this.element=new cE(a,[Z(0,"YTP_ON"),Z(0,"YTP_OFF")]);T(this,this.element);this.element.bb(this.label);eE(this.element,2200);this.priority=3;this.Ea(1)}B(fE,ZD);fE.prototype.getSelected=function(){return this.element.getSelected()};fE.prototype.Ea=function(a){this.element.Ea(a)};function gE(a,b){this.start=a<b?a:b;this.end=a<b?b:a}gE.prototype.clone=function(){return new gE(this.start,this.end)};function hE(){this.g=!1;this.A=this.k=null}function iE(a,b,c){a.k?(Mg(a.k.K(),b,c),a.k.clear()):(b=new SD(b,c,void 0,void 0,void 0),a.k=b,a.k.Qt(),a.A=K("div"),b=a.k.K(),a.A.appendChild(b));return a.k}hE.prototype.K=function(){return this.A};hE.prototype.j=function(){};function jE(a,b,c){var d=document.createElementNS("http://www.w3.org/2000/svg",a);b&&Hb(b,function(a,b){d.setAttribute(b,a)});for(var e=2;e<arguments.length;e++)d.appendChild(arguments[e]);return d}function kE(a,b){var c;c=":"+(CD.getInstance().g++).toString(36);b.setAttribute("result",c);a.appendChild(b);return c};function lE(a,b){var c=kE(a,jE("feGaussianBlur",{"in":b,stdDeviation:"1.8"})),c=kE(a,jE("feDiffuseLighting",{"in":c,surfaceScale:"4",diffuseConstant:"1"},jE("feDistantLight",{azimuth:"270",elevation:"15","lighting-color":"white"}))),c=kE(a,jE("feComposite",{"in":c,in2:b,operator:"in"}));return kE(a,jE("feComposite",{in2:c,"in":b,operator:"arithmetic",k2:1,k3:.5,k4:0}))}
function mE(a,b){var c=kE(a,jE("feOffset",{"in":b,dx:"-7",dy:"-7"})),c=kE(a,jE("feGaussianBlur",{"in":c,stdDeviation:"3"})),c=kE(a,jE("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=kE(a,jE("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=kE(a,jE("feGaussianBlur",{"in":d,stdDeviation:"1"})),c=kE(a,jE("feComposite",{operator:"out","in":c,in2:d}));return kE(a,jE("feComposite",{operator:"over","in":b,in2:c}))}
function nE(a,b){return b}function oE(a){var b=jE("filter",{filterUnits:"userSpaceOnUse"}),c="SourceGraphic";E(a,function(a){t:{switch(a){case "bevel":a=lE;break t;case "dropshadow":a=mE;break t}a=nE}c=a(b,c)});return b}function pE(a){a=eb(a,function(a){return a in qE});zb(a,function(a,c){return qE[a]-qE[c]});return a}function rE(a){return G(a,function(a){return"dropshadow"==a})?new lg(0,7,7,0):new lg(0,0,0,0)}var qE={bevel:1,dropshadow:2};function sE(a,b,c,d,e){b=tE(b,c,d?d.g/2+1:0);VD(a,b,d,e)}function tE(a,b,c){var d=new vD;xD(d,a.left+b+c,a.top+c);d.Za(a.left+a.width-b-c,a.top+c);yD(d,b,b,-90,90);d.Za(a.left+a.width-c,a.top+a.height-b-c);yD(d,b,b,0,90);d.Za(a.left+b+c,a.top+a.height-c);yD(d,b,b,90,90);d.Za(a.left+c,a.top+b+c);yD(d,b,b,180,90);d.close();return d}function uE(a,b,c,d){var e=a.M;e?a=new uD(e.A*b/100,e.C*c/100,e.B*b/100,e.D*c/100,e.g,e.j,e.k,e.o):(b=vE(d,a.k),a=new AD(a.A,b));return a}
function vE(a,b){return a?Math.max(b,.9):b}function wE(a,b){var c=new lg(a.top,a.left+a.width,a.top+a.height,a.left),d=rE(b);la(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-=NaN);return ng(c)}
function xE(a,b,c){if(c.length&&(b=ud("g",void 0,b),b.length)){var d=pE(c);if(d){c="effects:"+(d?d.join("|"):"");var e=JD(a,c);e?a=e:(d=oE(d),a=0<d.childNodes.length?LD(a,c,d):null)}else a=null;a&&b[0].setAttribute("filter","url(#"+a+")")}};function yE(){hE.call(this);this.o=0}B(yE,hE);
yE.prototype.j=function(a,b,c){var d=a.g,e=d.D,g=this.g&&aD(a),e=(e+=g?1:0)?new BD(e,g?d.B:d.C):null;if(g=eD(a)){var h=FC(g,b,c);if(!(0>=h.width||0>=h.height)){var k;if(k=(a=(a=fD(a))&&a.g?a.g:null)&&a.length?a[0]:null){var l;c=c?FC(c,b):null;a=AC(k,new mg(k.F,k.G,k.A,k.h),b);c?(a.top+=c.top,a.left+=c.left):(a.top+=b.top,a.left+=b.left);l=new I(a.left,a.top);c=h.clone();a=new mg(l.x,l.y,1,1);var g=Math.max(c.left+c.width,a.left+a.width),p=Math.max(c.top+c.height,a.top+a.height);c.left=Math.min(c.left,
a.left);c.top=Math.min(c.top,a.top);c.width=g-c.left;c.height=p-c.top;c=wE(c,d.g);a=iE(this,c.width,c.height);var g=uE(d,c.width,c.height,this.g),h=new mg(h.left-c.left,h.top-c.top,h.width,h.height),r=new I(l.x-c.left,l.y-c.top);this.o=17*CC(b,k.k,k.g?k.g:"xy");b=d.j;k=e?e.g/2:0;l=zE(h,r);var p=this.B(h,b,r,l),v=r.x,r=r.y,x=h.width,ca=h.height,ba=h.left,h=h.top,ja=new vD;xD(ja,ba+b+k,h+k);"t"==l&&(ja.Za(p.start,h+k),ja.Za(v,r),ja.Za(p.end,h+k));ja.Za(ba+x-b-k,h+k);yD(ja,b,b,-90,90);"r"==l&&(ja.Za(ba+
x-k,p.start),ja.Za(v,r),ja.Za(ba+x-k,p.end));ja.Za(ba+x-k,h+ca-b-k);yD(ja,b,b,0,90);"b"==l&&(ja.Za(p.end,h+ca-k),ja.Za(v,r),ja.Za(p.start,h+ca-k));ja.Za(ba+b+k,h+ca-k);yD(ja,b,b,90,90);"l"==l&&(ja.Za(ba+k,p.end),ja.Za(v,r),ja.Za(ba+k,p.start));ja.Za(ba+k,h+b+k);yD(ja,b,b,180,90);ja.close();VD(a,ja,e,g);if(e=this.K())P(e,"annotation-shape"),P(e,"annotation-speech-shape"),Ag(e,c.left,c.top),Mg(e,c.width,c.height),xE(a,e,d.g)}}}};
function zE(a,b){var c=a.top-b.y,d=b.x-a.left-a.width,e=b.y-a.top-a.height,g=a.left-b.x,h=Math.max(c,d,e,g);if(0>h)return"i";switch(h){case c:return"t";case d:return"r";case e:return"b";case g:return"l"}return"i"}yE.prototype.B=function(a,b,c,d){function e(a,c,d,e){a=Math.min(Math.max(e-2*b,0),a);c=Ic(c-a/2,d+b,d+e-a-b);return new gE(c,c+a)}return"t"==d||"b"==d?e(this.o,c.x,a.left,a.width):"l"==d||"r"==d?e(this.o,c.y,a.top,a.height):new gE(0,0)};function AE(){hE.call(this)}B(AE,hE);AE.prototype.j=function(a,b,c){var d=eD(a);d&&(b=FC(d,b,c),0>=b.width||0>=b.height||(a=a.g,c=wE(b,a.g),d=iE(this,c.width,c.height),sE(d,new mg(0,0,b.width,b.height),a.j,new BD(!a.o&&this.g?1:a.o,a.A),new AD("#000",0)),b=this.K(),P(b,"annotation-shape"),Sg(b,vE(this.g,a.k)),Ag(b,c.left,c.top),Mg(b,c.width,c.height)))};function BE(a,b,c){hE.call(this);this.o=a||0;this.C=b||0;this.B=c||!1}B(BE,hE);function CE(a,b){var c=a.width,d=a.height,e=0,g=0;0<b&&(a.width/a.height>b?(d=a.width/b,g=(a.height-d)/2):(c=a.height*b,e=(a.width-c)/2));return new mg(e,g,c,d)}
BE.prototype.j=function(a,b,c){var d=FC(eD(a),b,c);if(!(0>=d.width||0>=d.height)){var e=CE(d,this.C);e.left+=d.left;e.top+=d.top;b=a.g;c=wE(e,b.g);var g=iE(this,c.width,c.height),h=new AD("#000",0),e=CE(e,this.o);a=a.o?a.o.g?a.o.g:a.o.videoId?Mt(a.o.videoId,"hqdefault.jpg"):"":"";e=KD(g,"image",{x:e.left,y:e.top,width:e.width,height:e.height,"image-rendering":"optimizeQuality",preserveAspectRatio:"none"});e.setAttributeNS("http://www.w3.org/1999/xlink","href",a);e=new RD(e,g);g.k.K().appendChild(e.K());
if(a=this.K()){var k=vE(this.g,b.k);Sg(a,k);if(this.B&&0<b.o){var k=new BD(b.o,b.A),d=new mg(0,0,d.width,d.height),l;l=tE(d,b.j,k.g/2+1);var p=JD(g,"mask");if(p)l=p;else{var p=document.createElementNS("http://www.w3.org/2000/svg","mask"),r=document.createElementNS("http://www.w3.org/2000/svg","path");r.setAttribute("d",WD(l));r.setAttribute("fill","#FFF");p.appendChild(r);l=LD(g,"mask",p)}e=e.K();l&&e.setAttribute("mask","url(#"+l+")");sE(g,d,b.j,k,h)}P(a,"annotation-shape");P(a,"annotation-image-shape");
Ag(a,c.left,c.top);Mg(a,c.width,c.height);xE(g,a,b.g)}}};function DE(){hE.call(this)}B(DE,hE);DE.prototype.j=function(a,b,c){var d=eD(a);if(d){var e=FC(d,b,c);if(!(0>=e.width||0>=e.height)){b=a.g;c=wE(e,b.g);var d=iE(this,c.width,c.height),g=b.D;a=this.g&&aD(a);a=(g+=a?1:0)?new BD(g,a?b.B:b.C):null;g=new mg(0,0,e.width,e.height);e=uE(b,e.width,e.height,this.g);sE(d,g,b.j,a,e);if(a=this.K())P(a,"annotation-shape"),P(a,"annotation-popup-shape"),Ag(a,c.left,c.top),Mg(a,c.width,c.height),xE(d,a,b.g)}}};function EE(){yE.call(this)}B(EE,yE);EE.prototype.B=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 gE(c,c+a)}return"t"==d||"b"==d?e(this.o,c.x,a.left,a.width):"l"==d||"r"==d?e(this.o,c.y,a.top,a.height):new gE(0,0)};function FE(a,b,c,d,e){this.g=a;this.G=b;this.C=c;this.J=d;this.I=e;this.D=new iz(this);this.F=this.k=this.A=this.o=this.B=this.j=null}function GE(a,b){var c=y(function(a,c,g){c=g?HE(this,c,y(g,this)):HE(this,c);this.D.listen(b,a,c)},a);c("mouseover","d",a.O);c("mouseout","c",a.M);c("click","a");c("touchend","a")}
function IE(a){if(a.g.C){var b;$C(a.g,function(a){return"close"==a.type})?b=a.j:(a.A=K("div",["annotation-close-button","hid"]),ih(a.A,"annotation_id",a.g.id),a.j.appendChild(a.A),b=a.A);var c=function(a){a.stopPropagation()};a.D.listen(b,"click",HE(a,"b",c));a.D.listen(b,"touchend",HE(a,"b",c))}}
function HE(a,b,c){return y(function(a){if(this.I)c&&c(a);else if(a.target instanceof Element){var e=a.target;xA(e);try{var g=document.elementFromPoint(a.clientX,a.clientY);if(ee(g,"annotation")){var h=document.createEvent("MouseEvent");h.initMouseEvent(a.type,a.bubbles,a.cancelable,a.view,a.detail,a.screenX,a.screenY,a.clientX,a.clientY,a.ctrlKey,a.altKey,a.shiftKey,a.metaKey,a.button,a.relatedTarget);g.dispatchEvent(h)}}finally{wA(e)}}e=Rg(a.target);a=new I(a.clientX,a.clientY);"c"==b&&e.contains(a)||
this.J.publish(b,this.g)},a)}FE.prototype.O=function(){this.A&&wA(this.A);this.o&&Sg(this.o,1);var a=JE(this);this.k&&(this.k.g=!0,Sg(this.j,KE(this)?1:0),a&&this.k.j(this.g,a,LE(this)))};FE.prototype.M=function(){this.A&&xA(this.A);this.o&&Sg(this.o,0);var a=JE(this);this.k&&(this.k.g=!1,Sg(this.j,KE(this)?1:0),a&&this.k.j(this.g,a,LE(this)))};function LE(a){return a.F?eD(a.F):null}
function sD(a){if(a.j||a.k){var b=eD(a.g);if(b){var c=JE(a),d=LE(a);if(a.j&&c){b=FC(b,c,d);Mg(a.j,b.width,b.height);Ag(a.j,b.left,b.top);var e=a.C.ff;if(e){var g;g=(g=eD(a.g))&&e?BC(e,g.o,g.g?g.g:"xy"):1;var e=gD(a.g,e),h;h=a.g.g;h.G?h=h.G:(h="speech"==a.g.style?1.6:.8,h=new lg(h,h,h,h));h=new lg(360*h.top*e/100,640*h.right*g/100,360*h.bottom*e/100,640*h.left*g/100);a.o&&(h.right+=1.5*c.height/100);a.j.style.padding=h.top+"px "+h.right+"px "+h.bottom+"px "+h.left+"px";"label"==a.g.style&&a.B&&(a.B.style.padding=
a.j.style.padding);a.o&&(g=g/e*c.height*4.2/100,g=new J(g,g),Mg(a.o,g),"highlight"==a.g.type||"label"==a.g.style?(e=1.5*c.height/100,g=new I(b.width-g.width-e,b.height-g.height-e)):g=new I(b.width-g.width-3*c.height/100,(b.height-g.height)/2),Ag(a.o,g));a.A&&(g=9<=c.left+c.width-(b.left+b.width),e=9<=b.top-c.top,Ag(a.A,g&&e?new I(b.width-9,-9):g?new I(b.width-9,45<b.height?9:b.height-9):e?new I(45<b.width?b.width-9-18:-9,-9):b.width/c.width>b.height/c.height?new I(45<b.width?b.width-9-18:-9,b.height-
9):new I(-9,45<b.height?9:b.height-9)))}}a.k&&c&&a.k.j(a.g,c,d);if(a.j){c=a.j;d=a.g.g;c.style.color="highlightText"==a.g.style?d.I:d.B;c.style.fontSize=360*d.J*gD(a.g,a.C.ff)/100+"px";b=a.g.style;c.style.textAlign=d.textAlign?d.textAlign:"title"==b||"highlightText"==b?"center":"left";d.F&&(c.style.fontWeight=d.F);a=a.j;c=a.style.overflow;d=vd("annotation-link-icon",a);b=vA(d);g=vd("annotation-close-button",a);e=vA(g);d&&b&&xA(d);g&&e&&xA(g);var k=h="",l=vd("inner-text",a);l&&(h=l.style.overflow,k=
l.style.position,l.style.overflow="visible",l.style.position="static");a.style.overflow="scroll";if(a.scrollHeight>a.offsetHeight||a.scrollWidth>a.offsetWidth){for(var p=bh(a),r=p,v=5,x=Math.floor(p/2);x;)a.scrollHeight<=a.offsetHeight&&a.scrollWidth<=a.offsetWidth?(v=r,r=Math.min(r+x,p)):r=Math.max(r-x,v),x=Math.floor(x/2),a.style.fontSize=r+"px";r!=v&&(a.scrollHeight>a.offsetHeight||a.scrollWidth>a.offsetWidth)&&(a.style.fontSize=v+"px")}a.style.overflow=c;l&&(l.style.overflow=h,l.style.position=
k);g&&e&&wA(g);d&&b&&wA(d)}}}}
FE.prototype.show=function(){var a=this.g.g,a=(a&&0==a.k||"title"==this.g.style||"highlightText"==this.g.style||"pause"==this.g.type?!1:!0)&&!this.k,b=!this.j,c="widget"==this.g.type;if(a){var d=JE(this);if(d){var e=null;"highlight"==this.g.type||"label"==this.g.style?e=new AE:"popup"==this.g.style?e=new DE:"anchored"==this.g.style?e=new yE:"speech"==this.g.style?e=new EE:"image"==this.g.type&&("video"==this.g.style?e=new BE(4/3,16/9,!0):"channel"==this.g.style&&(e=new BE));e&&(e.j(this.g,d,LE(this)),
this.k=e,d=e.K())&&(xA(d),P(d,"annotation-type-"+this.g.type.toLowerCase()),this.G(d))}}if(b){d=["annotation","hid"];"highlightText"!=this.g.style||d.push("annotation-no-mouse");d.push("annotation-type-"+this.g.type.toLowerCase());this.j=K("div",d);this.g.B&&(this.B=K("div","inner-text"),"label"==this.g.style&&(P(this.B,"label-text"),this.B.style.backgroundColor=this.g.g.A),Ud(this.B,this.g.B),this.j.appendChild(this.B));ih(this.j,"annotation_id",this.g.id);this.G(this.j);GE(this,this.j);if(aD(this.g)&&
"image"!=this.g.type&&this.g.showLinkIcon()){if(d=oC(this.g))this.j.title=d.value?d.value:null;this.o=K("span","annotation-link-icon");this.j.appendChild(this.o)}IE(this);aD(this.g)||(this.j.style.cursor="default")}c&&("subscribe"==this.g.style?vd("yt-uix-subscription-button",this.j)||(this.j.innerHTML=this.g.k):this.g.k&&(this.j.innerHTML=this.g.k));if(a||b){t:{a=this.g.j.g;if(a.length&&(a=MC(a[0]))){a=a.B;break t}a=0}this.j&&(this.j.style.zIndex=a);this.k&&this.k.K()&&(this.k.K().style.zIndex=a)}wA(this.j);
Sg(this.j,KE(this)?1:0);sD(this);this.k&&wA(this.k.K())};FE.prototype.hide=function(){xA(this.j);this.k&&xA(this.k.K())};function KE(a){return"label"!=a.g.style||a.k.g}function JE(a){var b=a.C.ff;return b?"player_relative"==a.g.F?(a=a.C.ce)?new mg(-b.left,-b.top,a.width,a.height):null:new mg(0,0,b.width,b.height):null};function ME(a){Px.call(this,a);this.Si=!0;this.va="iv-module";this.oc="iv";this.M=!1;this.S=!0;this.D=!1;this.o=0;this.j={};this.J={};this.G=null;this.C=new eA(this.O,a);a=NE;this.A=new fE(cy(this));T(this,this.A);this.A.listen("change",this.Az,this);this.subscribe("onHideControls",this.xz,this);this.subscribe("onShowControls",this.zz,this);this.subscribe("onStateChange",this.yz,this);this.subscribe("d",this.Cz,this);this.subscribe("c",this.Bz,this);this.subscribe("a",this.vz,this);this.subscribe("b",
this.wz,this);this.subscribe("videodatachange",this.qk,this);var b=new Jy(["div",[a.rz,"hid"],["svg",{width:"60",height:"60"},["g","",["circle","countdowntimer-background-circle",{cx:"30",cy:"30",r:"15"}],["path","countdowntimer-diminishing-pieslice",{d:"M30,30 z"}],["circle","countdowntimer-middle-dot",{cx:"30",cy:"30",r:"4"}]]]]);T(this,b);b=b.K();this.P=K("DIV",[a.uz,"html5-stop-propagation"]);this.W=K("DIV",a.sz);this.B=null;Sx(this,K("DIV",a.qz,this.P,this.W));Sx(this,b);this.I=new YD(b,y(this.pk,
this));this.F=this.k=null;this.N=[]}B(ME,Px);ME.A="AnnotationsModule";var NE={qz:"video-annotations",rz:"countdowntimer",sz:"video-custom-annotations",uz:"video-legacy-annotations"};ME.o=function(a){switch(a.type){case "branding":case "promotion":case "survey":return!0}return!1};ME.k=function(a){return"card"==a.type};ME.j=function(a){return ME.Fa(a)?new ME(a):null};ME.Fa=function(a){var b=a.R();return"leanback"==b.ca?!1:b.ba?!0:Gv(a.getVideoData(),"iv3_module")};
ME.g=function(){return K("div",["annotation","annotation-type-custom","hid"])};f=ME.prototype;f.Fa=function(){return ME.Fa(this.g)};f.create=function(){ME.H.create.call(this);this.B=new Y(["div",["ytp-player-content","ytp-iv-player-content"]]);this.B.Y(this.g.Pa());fy(this,this.A);var a=this.g.R();(1==(a.ja||this.g.getVideoData().qa)||a.ba)&&this.load()};f.destroy=function(){this.B.detach();this.B.dispose();gy(this,this.A);this.unsubscribe("videodatachange",this.qk,this);ME.H.destroy.call(this)};
f.Az=function(){var a=this.D||this.o,b=0==this.A.getSelected();a&&!b?(this.unload(),this.log({toggle:0})):!a&&b&&(this.load(),this.log({toggle:1}))};f.yz=function(a){this.S=X(a.state,8);0>ez(a,4)&&this.I.stop()};
f.load=function(){ME.H.load.call(this);var a=this.g.getVideoData(),b=y(this.Ds,this,a.videoId);UA()&&(b=OE(this,b));var b={format:"XML",method:"GET",Lb:b},c=this.g.R().ba,d=this.g.R().Fb;if(c||d)b.method="POST",b.cb={},c&&(b.cb.ic_xml=c),d&&(b.cb.ic_track=d);a.kh&&(this.o++,Fj(a.kh,b));a.Nm&&(b=y(this.Ds,this,a.videoId),UA()&&(b=OE(this,b)),b={format:"XML",method:"GET",Lb:b},this.o++,Fj(a.Nm,b));this.A.Ea(0)};
f.unload=function(){this.A.Ea(1);this.C.oa({"iv-event":1});this.pk();Qx(this);Hb(this.j,function(a){a.destroy()});Hb(this.J,function(a){a.destroy()});this.F=null;this.k&&(this.k.destroy(),this.k=null);this.o=0;this.D=!1;this.j={};this.J={};ME.H.unload.call(this)};
function PE(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 g;if(c[e.tagName])g=c[e.tagName];else if("html_blob"==e.tagName||"data"==e.tagName){0<e.childNodes.length&&(g=e.childNodes[0].nodeValue,c[e.tagName]="string"==typeof g?g.trim():g);continue}else g=[],c[e.tagName]=g;e&&"TEXT"==e.tagName?1==e.childNodes.length&&3==e.childNodes[0].nodeType?g.push(e.childNodes[0].nodeValue):g.push(""):
e&&g.push(PE(a,e))}return c}
f.Ds=function(a,b){if(this.o&&!this.D&&this.g.getVideoData().videoId==a){this.o--;var c=b.responseXML?b.responseXML.getElementsByTagName("annotations"):null;if(Aj(b)&&c){QE(this,c[0]);P(this.g.Pa(),this.va+"-loaded");0==this.o&&(this.D=!0);var c=[],d;for(d in this.j){var e=this.j[d].annotation,g;if(e.j)if(g=e.j,g.g.length)if(g=g.g[0].j||g.g[0].g||g.g[0].k,!g||2>g.length)g=null;else{var h=g.length-1;g=0>=g[0].j&&0>=g[h].j?null:{start:g[0].j,end:g[h].j}}else g=null;else g=null;if(h=g)if(g=1E3*h.start,
h=1E3*h.end,0==g&&(g++,h++),g==h&&h++,!(h<g)){var k={id:d};"marker"==e.type&&(k.style="ytp-chapter-marker",k.tooltip=e.B,k.visible=!0);e=new Gx(g,h,k);c.push(e)}}this.Id.apply(this,c)}}};function RE(a,b){var c=SE(a,b);if(!c&&"marker"!=b.type)return null;cD(b,function(a){a=y(this.JF,this,b.id,a);this.subscribe("ivTrigger:"+b.id,a)},a);return new pD(a.O,b,c)}
function TE(a,b){var c=a.B.K(),d=ME.g(),e=null;switch(b.type){case "branding":c.appendChild(d);e=new mC(d,UE(a),b);break;case "promotion":a.g.R().experiments.O&&"video"==b.style?(c=uj(oC(b).value).v,d=Sz(b.data.video_duration),c&&d&&(a.G={id:c,hH:d,iH:"feature=endscreen",author:b.data.text_line_1,title:b.data.text_line_2,gH:1},a.qk())):(c.appendChild(d),e=new hD(d,UE(a),b))}e&&e.wj();return e}
f.qk=function(){if(this.G){var a=this.g.getVideoData().M;!a||1>=a.length||a[1].id==this.G.id||(ub(a,1,0,this.G),pb(a,a.length-1))}};function VE(a,b){if(!a.k){var c=a.g.R().experiments,d=2==uw(a.g.app).getPlayerType(),c=c.U||d||!1,d=ME.g();c?(a.B.K().appendChild(d),a.k=new cC(d,UE(a))):(a.W.appendChild(d),a.k=new BB(d,UE(a)));a.k.wj()}a.k.xs(b)}function UE(a){a.F||(a.F=new pC(new iz(a),a.g.R(),a.g.getVideoData(),a.C,a.g,a.O));return a.F}
function QE(a,b){for(var c=b.getElementsByTagName("annotation"),d=0;d<c.length;d++){var e=PE(a,c[d]),g=null;try{g=YC(e)}catch(h){}g&&(ME.o(g)?(e=TE(a,g))&&(a.J[g.id]=e):ME.k(g)?VE(a,g):(e=RE(a,g))&&(a.j[g.id]=e))}Hb(a.j,function(a){var b=a.annotation;b.j&&b.j.j&&(b=this.j[b.j.j])&&(a.g.F=b.annotation)},a)}f.Ec=function(a){ME.H.Ec.call(this,a);a=a.getId();var b=this.j[a];b&&!b.A&&(b=b.annotation,"pause"==b.type?WE(this,b):(XE(this,a),fA(this.C,b.Ca)))};
f.Wc=function(a){ME.H.Wc.call(this,a);YE(this,a.getId())};function WE(a,b){if(a.S){var c=ZC(b,function(a){return"pause"==a.type&&!!a.duration&&!!a.duration.value});c&&(a.M=!0,a.publish("command_pause"),a.I.start(1E3*c.duration.value))}}function ZE(a,b,c,d){d?XE(a,b,c):YE(a,b,c)}function YE(a,b,c){if(b=a.j[b])rD(b),c&&c.j?(a=y(a.Xt,a,b),b.j=new Tq(a,2E3),b.j.start()):a.Xt(b)}f.Xt=function(a){a&&(a.hide(),$E(this,"shown",!1,a.annotation.id),this.tj(a.annotation,"hidden"))};
function XE(a,b,c){if(b=a.j[b])rD(b),c&&c.o?(a=y(a.Lt,a,b),b.j=new Tq(a,2E3),b.j.start()):a.Lt(b)}f.Lt=function(a){a&&(a.show(),$E(this,"shown",!0,a.annotation.id),this.tj(a.annotation,"shown"))};f.JF=function(a,b,c){var d=this.j[a];if(d&&b.value!=c){b.value=c;var e=!1;cD(d.annotation,function(a){e|=a.value});ZE(this,a,b,e)}};f.vz=function(a){if(a&&a.id){var b=oC(a);if(b){var c=y(this.tj,this,a,"click"),d=this.g.getVideoData();if("new"==b.target||-1!=aA(b,d.videoId))c(),c=null;jA(this.C,a.Ca,c)}}};
f.tj=function(a,b){bD(a,function(c){if(c.trigger==b&&"openUrl"==c.type){var d=this.g.getVideoData(),e=aA(c.url,d.videoId);if(-1!=e)this.publish("command_seek",e),this.pk();else if(d=bA(c.url,a.id,d.videoId,this.g.R()))this.pauseVideo(),window.open(d,dA(c.url))}},this)};f.xz=function(){$E(this,"playerControlShow",!1)};f.zz=function(){$E(this,"playerControlShow",!0)};f.Cz=function(a){$E(this,"rollOver",!0,a.id)};f.Bz=function(a){$E(this,"rollOver",!1,a.id)};
f.wz=function(a){if(a||a.id)this.j[a.id].A=!0,YE(this,a.id),a&&(kA(this.C,a.Ca),this.tj(a,"close")),$E(this,"closed",!0,a.id)};f.pk=function(){this.I.stop();this.M&&(this.M=!1,this.publish("command_play"))};function SE(a,b){if(aF(b)){var c=b.C||$C(b,function(a){return"click"==a||"rollOut"==a||"rollOut"==a});return new FE(b,y(a.P.appendChild,a.P),a.g.R(),a.O,c)}return null}
function aF(a){if("highlight"==a.type||"image"==a.type||"widget"==a.type)return!0;if("text"==a.type)for(var b in VC)if(a.style==VC[b])return!0;return!1}function $E(a,b,c,d){a.publish(oD(b,d),c,d)}function OE(a,b){return y(function(){if(!this.da()){var a=Array.prototype.slice.call(arguments,0);a.unshift(b);b=z.apply(window,a);this.N.push(VA(b,void 0))}},a)}f.L=function(){for(var a=this.N,b=0,c=a.length;b<c;b++)XA(a[b]);this.N.length=0;ME.H.L.call(this)};var bF=/^#(?:[0-9a-f]{3}){1,2}$/i,cF="default monoSerif propSerif monoSans propSans casual cursive smallCaps".split(" "),dF=["none","raised","depressed","uniform","dropShadow"],eF=["sub","inherit","super"],fF=["left","right","center"],gF={id:0,priority:0,anchorPoint:7,kj:50,UC:80,Sd:100,kd:15,um:100,isVisible:!0,textAlign:2,vf:0,backgroundColor:"#080808",foregroundColor:"#fff",dr:1,TC:1},hF={id:98},iF={id:99,priority:1,anchorPoint:0,kj:5,Sd:5,kd:2,um:32,textAlign:0},jF=["en_CA","en_US","es_MX","fr_CA"];var kF=[{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"}],lF=[{option:0,text:"0%"},{option:.25,text:"25%"},{option:.5,text:"50%"},{option:.75,text:"75%"},{option:1,text:"100%"}],mF=[{option:.25,text:"25%"},{option:.5,
text:"50%"},{option:.75,text:"75%"},{option:1,text:"100%"}],nF=[{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:kF},
{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:kF},{option:"backgroundOpacity",message:"YTP_BACKGROUND_OPACITY",options:lF},{option:"windowColor",message:"YTP_WINDOW_COLOR",options:kF},{option:"windowOpacity",message:"YTP_WINDOW_OPACITY",options:lF},{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:mF}];var oF;function pF(a,b){ga(b)&&(b=b.join(" "));if(""===b||void 0==b){var c;oF||(oF={atomic:!1,autocomplete:"none",dropeffect:"none",haspopup:!1,live:"off",multiline:!1,multiselectable:!1,orientation:"vertical",readonly:!1,relevant:"additions text",required:!1,sort:"none",busy:!1,disabled:!1,hidden:!1,invalid:"false"});c=oF;"pressed"in c?a.setAttribute("aria-pressed",c.pressed):a.removeAttribute("aria-pressed")}else a.setAttribute("aria-pressed",b)};function qF(a,b,c,d,e){$D.call(this,a,b,c,c);this.I=b;this.O=this.M=c;this.A=d||null;this.B=e||null;this.C=e||null;this.g=!1}B(qF,$D);qF.prototype.update=function(){aE(this,this.g&&this.A?this.A:this.I);this.bb(this.g&&this.B?this.B:this.M);this.j=this.g&&this.C?this.C:this.O;Q(this.element,"ytp-button-pressed",this.g)};function rF(a){a.g=!0;pF(a.element,!0);a.update()}function sF(a){a.g=!1;pF(a.element,!1);a.update()}function tF(a,b){a.I=b;a.update()}
qF.prototype.L=function(){this.C=this.B=this.A=null;qF.H.L.call(this)};function uF(a){qF.call(this,a,"ytp-subtitles-button",Z(0,"YTP_SUBTITLES"),"ytp-subtitles-button-active");bE(this,6500);this.element.setAttribute("aria-haspopup",!0);this.element.id="subtitles_button"}B(uF,qF);function vF(a){Y.call(this,a)}B(vF,Y);vF.prototype.Cs=function(){};vF.prototype.focus=function(){};function wF(a,b,c,d){Y.call(this,["li","ytp-subtitles-settings-dialog-list-option","{{content}}"]);var e=b.text||(b.message?Z(0,b.message):""),e=[new Jy(["div","ytp-subtitles-settings-dialog-list-text",e])];d&&(d=new Jy(["div","ytp-subtitles-settings-dialog-list-swatch"]),d.K().style.background=b.option,e.unshift(d));c?e.unshift(new Jy(["div","ytp-subtitles-settings-dialog-list-caret"])):e.unshift(new Jy(["div","ytp-subtitles-settings-dialog-list-check"]));this.g=new $D(a);T(this,this.g);this.g.ta(e);
this.ta(this.g)}B(wF,Y);wF.prototype.setEnabled=function(a){Q(this.g.K(),"ytp-subtitles-settings-dialog-list-selected",a)};function xF(a){Y.call(this,["div",["ytp-subtitles-settings-dialog","ytp-dialog","html5-stop-propagation"],["div","ytp-dialog-body",["div","ytp-subtitles-settings-dialog-top-level","{{top}}"],["div","ytp-subtitles-settings-dialog-sub-level","{{sub}}"]],["div","ytp-dialog-buttons","{{buttons}}"]]);this.o=a;this.j=null;var b=Z(0,"YTP_DONE"),c=new $D(a,"ytp-dialog-button",b);T(this,c);c.ta(b);c.listen("click",z(this.Sb,"cancel"),this);bE(c,1400);b=Z(0,"YTP_RESET");a=new $D(a,"ytp-dialog-button",b);T(this,
a);a.ta(b);P(a.K(),"ytp-dialog-button-left");a.listen("click",z(this.Sb,"select"),this);bE(a,1300);this.k={};this.g={};this.template.update({top:yF(this,nF),buttons:[a,c]})}B(xF,vF);
function yF(a,b,c){var d=new Y(["ul","ytp-subtitles-settings-dialog-list"]),e,g=!1;n(c)?(a.g={},e=a.g):(a.k={},e=a.k,g=!0);for(var h=0;h<b.length;h++){var k=b[h],l=new wF(a.o,k,g,b==kF);g?(l.listen("click",y(a.Oq,a,k.options,k.option)),bE(l.g,1100)):c&&(l.listen("click",y(a.wC,a,c,k.option)),bE(l.g,1200));e[k.option]=l;l.Y(d.K())}return d}f=xF.prototype;f.Oq=function(a,b){this.template.update({sub:yF(this,a,b)});zF(this,this.k,b);zF(this,this.g,this.j[b]);AF(this.template.g["ytp-subtitles-settings-dialog-sub-level"])};
function AF(a){(a=vd("ytp-subtitles-settings-dialog-list-selected",a))&&a.focus()}f.focus=function(){AF(this.template.g["ytp-subtitles-settings-dialog-top-level"])};function zF(a,b,c){Hb(b,function(a,b){a.setEnabled(b==c)},a)}f.setProperties=function(a){this.j=a;(a=nF[0])&&a.options&&this.Oq(a.options,a.option)};f.wC=function(a,b){this.j&&(this.j[a]=b,this.Sb("change"));zF(this,this.g,b);this.focus()};
f.Cs=function(){var a=this.o.xb(),b=2*Math.floor(Math.min(560,Math.max(230,.65*a.width))/2);this.K().style.width=b+"px";this.template.g["ytp-dialog-body"].style.height=a.height-140+"px"};f.L=function(){this.k=[];this.g=[];xF.H.L.call(this)};function BF(a,b,c){Y.call(this,["div","ytp-drop-down","{{content}}"]);this.k=!1;this.B=0;this.F=this.C=null;this.A=new iz(this);this.j=new Y(["div","ytp-drop-down-menu","{{content}}",{tabindex:-1}]);T(this,this.j);JA(this.j,"listbox");this.g=new $D(a,"ytp-drop-down-label");T(this,this.g);this.g.listen("click",this.vx,this);this.o=new Y(["div","ytp-drop-down-label-content","{{content}}"]);T(this,this.o);this.g.ta([this.o,["div","ytp-drop-down-arrow"]]);this.ta([this.j,this.g]);n(b)&&this.Md(b);n(c)&&
this.F!=c&&(this.j.ta(c),this.F=c,CF(this));CF(this)}B(BF,Y);f=BF.prototype;f.Md=function(a){this.C!=a&&(this.o.ta(a),this.C=a,CF(this))};f.Pd=function(){this.k=!1;CF(this)};f.qA=function(a){a.target&&(Sd(this.j.K(),a.target)||Sd(this.g.K(),a.target))||this.Pd()};f.vx=function(){this.k=!this.k;CF(this);this.k&&this.j.K().focus()};function DF(a,b){b>a.B&&(a.B=b,a.element.style.minWidth=a.B+"px")}f.focus=function(){this.g.K().focus()};
function CF(a){a.k?(a.j.show(),a.A.listen(window,"blur",a.Pd),a.A.listen(document,"click",a.qA)):(a.j.hide(),a.A.removeAll());var b=Og(a.g.K());a.j.K().style.bottom=b.height-1+"px";DF(a,b.width)};function EF(a,b){$D.call(this,a,"ytp-drop-down-menu-button");JA(this,"option");this.g=new Y(["div","ytp-drop-down-menu-button-check"]);T(this,this.g);this.k=!!b}B(EF,$D);EF.prototype.ta=function(a){EF.H.ta.call(this,[this.g,a])};EF.prototype.Ea=function(a){Q(this.element,"ytp-drop-down-menu-button-selected",a);this.k||Q(this.element,"ytp-drop-down-menu-button-checked",a);this.element.setAttribute("aria-checked",a)};function FF(a,b){Q(a.element,"ytp-drop-down-menu-button-checked",b)};function GF(a,b,c,d){Y.call(this,["div","ytp-drop-down-menu-content",{tabindex:"{{tabindex}}"},"{{content}}"]);this.F=a;this.A=!!d;this.k={};this.o=[];this.g=this.j=null;this.B=b;this.C=c}B(GF,Y);function HF(a,b){Cb(a.o,b)||(Hb(a.k,function(a){a.detach()}),a.o=[],b&&E(b,function(a){this.o.push(a);var b=IF(this,a);this.A&&FF(b,a==this.g);b.Ea(a==this.j);b.Y(this.element)},a))}GF.prototype.Ea=function(a){null!=this.j&&IF(this,this.j).Ea(!1);null!=a&&IF(this,a).Ea(!0);this.j=a;this.A||(this.g=a)};
GF.prototype.getSelected=function(){return this.j};function JF(a,b){var c=IF(a,"translate");b?c.disable():c.enable()}function KF(a,b){Hb(a.k,function(a){bE(a,b)})}function IF(a,b){var c=a.k[b.toString()];if(c)return c.ta(a.B(b)),c;c=new EF(a.F,a.A);T(a,c);a.k[b.toString()]=c;c.ta(a.B(b));c.listen("click",y(a.C,a,b));return c};function LF(a,b,c,d,e,g){ZD.call(this);this.J=b;this.M=c;this.I=d;this.O=e;this.G=g;this.k={};this.k.off=Z(0,"YTP_LANGUAGE_OFF");this.k.translate=Z(0,"YTP_TRANSLATE_MENU_ITEM");this.k.contribute=Z(0,"YTP_CONTRIBUTE_MENU_ITEM");this.label=Z(0,"YTP_SUBTITLES");this.g=new GF(a,y(this.D,this),y(this.N,this));T(this,this.g);this.element=new BF(a,void 0,this.g);T(this,this.element);DF(this.element,150);this.element.bb(this.label);this.priority=1;this.A=!0;this.C=this.B=!1;MF(this,[]);this.off()}B(LF,ZD);
LF.prototype.F=function(){this.I()};function MF(a,b){for(var c=["off"],d=0;d<b.length;d++){var e=b[d],g=e.toString();a.k[g]||(a.k[g]=Ps(e));c.push(g)}c.push("translate");a.C&&c.push("contribute");HF(a.g,c);JF(a.g,!a.B);c=IF(a.g,"translate");Q(c.element,"ytp-drop-down-menu-button-separated",!1);Q(c.element,"ytp-drop-down-menu-button-separated-above",!0);c=2500;KF(a.g,c++);c=c++;bE(a.element.g,c)}function NF(a,b){a.k[b]&&(a.g.Ea(b),a.element.Md(a.D(b)))}LF.prototype.off=function(){NF(this,"off")};
LF.prototype.D=function(a){return this.k[a]};LF.prototype.N=function(a){this.element.Pd();"off"==a?this.J():"translate"==a?this.O():"contribute"==a?this.G():this.M(a,!0)};function OF(a){var b=["div",["ytp-dialog","html5-stop-propagation"],["div","ytp-dialog-title",Z(0,"YTP_TRANSLATE_DIALOG_TITLE")],["div","ytp-dialog-body","{{content}}"],["div","ytp-dialog-buttons","{{buttons}}"]];Y.call(this,b);var c=Z(0,"YTP_DISMISS"),b=new $D(a,"ytp-dialog-button",c);T(this,b);b.ta(c);b.listen("click",z(this.Sb,"change"),this);bE(b,1400);var c=Z(0,"YTP_CANCEL"),d=new $D(a,"ytp-dialog-button",c);T(this,d);d.ta(c);d.listen("click",z(this.Sb,"cancel"),this);bE(d,1500);this.j=new GF(a,
y(this.Ir,this),y(this.CB,this),!0);T(this,this.j);this.j.element.style.maxHeight="100px";this.g=new BF(a,void 0,this.j);T(this,this.g);DF(this.g,200);this.g.bb(Z(0,"YTP_TRANSLATE_DIALOG_TITLE"));this.k=null;this.template.update({content:this.g,buttons:[b,d]})}B(OF,vF);f=OF.prototype;f.Ea=function(a){this.k=a;this.g.Md(a?this.Ir(a):null)};f.getSelected=function(){return this.k};f.CB=function(a){this.g.Pd();this.Ea(a)};f.Ir=function(a){return a.languageName+" -- "+a.Al};f.focus=function(){this.g.focus()};function PF(a){qF.call(this,a,"ytp-settings-button",Z(0,"YTP_SETTINGS"),"ytp-settings-button-active");bE(this,6600);this.element.setAttribute("aria-haspopup",!0);this.element.id="settings_button";this.k=new Y(["div","{{content}}"]);T(this,this.k);this.ta(this.k);QF(this,"")}B(PF,qF);function QF(a,b){"highres"==b?a.k.ta("ytp-settings-4k-quality-badge"):-1!=b.indexOf("hd")?a.k.ta("ytp-settings-hd-quality-badge"):a.k.ta("")};function RF(a){this.anchorPoint=7;this.kj=50;this.Sd=100;this.UC=80;this.vf=0;this.textAlign=2;this.backgroundColor="#080808";this.color="#fff";this.TC=this.dr=1;this.kd=15;this.um=32;this.isVisible=!0;this.j=0;this.bold=!1;this.offset=1;this.g=3;a=a||gF;ra(this,a)};function SF(a,b){this.id=a;this.Aa=new RF(b);var c="caption-window";0==this.id&&(c="standard-caption-window");this.Ia=K("div",{id:"caption-window-"+this.id,"class":c});this.Wb=K("span",{"class":"captions-text",style:"visibility: hidden"});this.Wb.innerHTML="C";this.Na=K("span",{"class":"captions-text",tabindex:7E3,"aria-live":"assertive"});this.xh=K("div",{"class":"caption-window-transform"});this.xh.appendChild(this.Na);this.Ia.appendChild(this.xh);this.g=1}SF.prototype.id=0;f=SF.prototype;
f.Aa=null;f.ah="";f.Lc=null;f.Ia=null;f.xh=null;f.Na=null;f.Wb=null;f.type=0;
f.ad=function(a,b){a&&ra(this.Aa,a);var c=this.Aa.charEdgeStyle,d=this.Aa.textOpacity,e="";if(0!=c){var g="rgba(34, 34, 34, "+d+")",h="rgba(204, 204, 204, "+d+")";this.Aa.charEdgeColor&&(h=g=this.Aa.charEdgeColor);switch(c){case 4:e="2px 2px 3px "+g+", 2px 2px 4px "+g+", 2px 2px 5px "+g;break;case 1:e="1px 1px "+g+", 2px 2px "+g+", 3px 3px "+g;break;case 2:e="1px 1px "+h+", 0 1px "+h+", -1px -1px "+g+", 0 -1px "+g;break;case 3:e="0 0 4px "+g+", 0 0 4px "+g+", 0 0 4px "+g+", 0 0 4px "+g}}c=this.Aa.fontFamily;
g="";switch(c){case 1:g='"Courier New", Courier, "Nimbus Mono L", "Cutive Mono", monospace';break;case 2:g='"Times New Roman", Times, Georgia, Cambria, "PT Serif Caption", serif';break;case 3:g='"Deja Vu Sans Mono", "Lucida Console", Monaco, Consolas, "PT Mono", monospace';break;case 5:g='"Comic Sans MS", Impact, Handlee, fantasy';break;case 6:g='"Monotype Corsiva", "URW Chancery L", "Apple Chancery", "Dancing Script", cursive';break;case 7:g='"Arial Unicode Ms", Arial, Helvetica, Verdana, "Marcellus SC", sans-serif';
break;case 0:case 4:g='"Arial Unicode Ms", Arial, Helvetica, Verdana, "PT Sans Caption", sans-serif'}var k=oz(this.Aa.color),h=oz(this.Aa.background),k="rgba("+k[0]+","+k[1]+","+k[2]+","+d+")",d=this.Aa.offset||1;vg(this.Na,{color:k,fill:k,"background-color":"rgba("+h[0]+","+h[1]+","+h[2]+","+this.Aa.backgroundOpacity+")","text-shadow":e,"font-variant":7==c?"small-caps":"","font-family":g,"font-weight":this.Aa.bold?"bold":"","font-style":this.Aa.italic?"italic":"","text-decoration":this.Aa.underline?
"underline":"","vertical-align":eF[d]});b&&(this.g=b.height/360);e=oz(this.Aa.windowColor);c=this.Aa.windowOpacity;g=this.Aa.fontSizeIncrement||0;1!=d&&(g*=.8);vg(this.xh,{"background-color":"rgba("+e[0]+","+e[1]+","+e[2]+","+c+")","font-size":Math.round(16*(1+.25*g)*this.g)+"px"})};f.Ej=function(){var a;this.Wb.style.fontFamily=this.Na.style.fontFamily;this.Ia.appendChild(this.Wb);a=this.Wb.offsetHeight;this.Ia.removeChild(this.Wb);return a};
f.Le=function(){this.Na&&(0!=this.id&&(Ng(this.Ia,"100%"),Ng(this.Ia,this.Na.offsetWidth+1)),TF(this),uA(this.Ia,this.Aa.isVisible))};function TF(a){Ag(a.Ia,a.Aa.kj+"%",a.Aa.Sd+"%");for(var b=0;8>=b;b++)fh(a.Ia,"anchor-point-"+b);P(a.Ia,"anchor-point-"+a.Aa.anchorPoint)}f.Rt=function(a){var b=[];E(a,function(a){a.j?b[b.length-1]+=a.g:b.push(a.g)});if(a.length){var c=a[a.length-1].Ym;c&&this.ad(UF(c))}this.Fd(b.join("\n"));this.Lc=a};
f.Fd=function(a){this.ah=a=VF(a);this.Na.innerHTML=this.ah;this.Ia.style.textAlign=fF[this.Aa.textAlign];1==this.Aa.vf?this.Na.setAttribute("dir","rtl"):this.Na.removeAttribute("dir");this.Le()};f.toString=function(){var a="Caption window ("+this.id+"): "+this.ah,b;for(b in this.Aa)a+=b+" "+this.Aa[b]+" | ";return a};function VF(a){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>")}f.$j=function(){this.Lc=[];this.Fd("")};function WF(a){if("undefined"!=typeof DOMParser)return(new DOMParser).parseFromString(a,"application/xml");if("undefined"!=typeof ActiveXObject){var b=XF();b.loadXML(a);return b}throw Error("Your browser does not support loading xml documents");}function YF(a){if("undefined"!=typeof XMLSerializer)return(new XMLSerializer).serializeToString(a);if(a=a.xml)return a;throw Error("Your browser does not support serializing XML documents");}
function ZF(a,b){if("undefined"!=typeof a.selectSingleNode){var c=qd(a);"undefined"!=typeof c.setProperty&&c.setProperty("SelectionLanguage","XPath");return a.selectSingleNode(b)}if(document.implementation.hasFeature("XPath","3.0")){var c=qd(a),d=c.createNSResolver(c.documentElement);return c.evaluate(b,a,d,XPathResult.FIRST_ORDERED_NODE_TYPE,null).singleNodeValue}return null}
function $F(a){if("undefined"!=typeof a.selectNodes){var b=qd(a);"undefined"!=typeof b.setProperty&&b.setProperty("SelectionLanguage","XPath");return a.selectNodes('vmap:Extensions/vmap:Extension[@type = "YTBreakTime"]/*[name() = "yt:BreakTime"]')}if(document.implementation.hasFeature("XPath","3.0")){var b=qd(a),c=b.createNSResolver(b.documentElement);a=b.evaluate('vmap:Extensions/vmap:Extension[@type = "YTBreakTime"]/*[name() = "yt:BreakTime"]',a,c,XPathResult.ORDERED_NODE_SNAPSHOT_TYPE,null);for(var b=
[],c=a.snapshotLength,d=0;d<c;d++)b.push(a.snapshotItem(d));return b}return[]}function XF(){var a=new 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};function aG(){this.j=[];this.g=[]};function bG(a){this.k=a.startMs||0;this.o=a.priority||0;this.durationMs=a.durationMs||0}bG.prototype.mb=function(){return this.k};bG.prototype.toString=function(){return this.k+", "+this.durationMs};function cG(a){bG.call(this,a);this.windowId=a.windowId||0;this.g=a.text||"";this.j=a.params.append||!1;this.Ym=a.Ym||null}B(cG,bG);cG.prototype.toString=function(){return this.k+", "+this.durationMs+": "+this.g};
function dG(a){var b=a.firstChild&&a.firstChild.nodeValue||"",c=1E3*parseFloat(a.getAttribute("start")||0);a.getAttribute("t")&&(c=parseInt(a.getAttribute("t"),10));var d=1E3*parseFloat(a.getAttribute("dur")||0);a.getAttribute("d")&&(d=parseFloat(a.getAttribute("d")));var e=parseInt(a.getAttribute("w"),10)||0,b={startMs:c,durationMs:d,text:b,windowId:e,priority:5,params:{}};a.getAttribute("r")&&(b.params.row=parseInt(a.getAttribute("r"),10));a.getAttribute("c")&&(b.params.col=parseInt(a.getAttribute("c"),
10));a.getAttribute("append")&&(b.priority=6,b.params.append=!0);return new cG(b)}function eG(a){bG.call(this,a);this.id=a.windowId||0;this.params=a.params||{};this.Kj=a.Kj||null;this.Lj=a.Lj||null;this.g="";this.j=!1;fG(this)}B(eG,bG);function gG(a){return a.params.$E?a.params.$E:a.params.rA?2:a.j?1:0}function hG(){return new eG({startMs:0,durationMs:2147483647,params:gF})}function fG(a){a.Kj&&ra(a.params,UF(a.Kj));a.Lj&&ra(a.params,UF(a.Lj))};function iG(a){aG.call(this);this.g.push(hG());a=a.firstChild.childNodes;for(var b=0,c=a.length;b<c;b++){var d=dG(a[b]);this.j.push(d)}}B(iG,aG);function jG(a){aG.call(this);this.k={};a=a.firstChild.childNodes;for(var b=0,c=a.length;b<c;b++)switch(a[b].tagName){case "window":var d=a[b],e=parseInt(d.getAttribute("id"),10);t:{var g=this.k[e];if(d.getAttribute("t")||d.getAttribute("start")){var h=parseInt(d.getAttribute("t"),10);d.getAttribute("start")&&(h=1E3*parseFloat(d.getAttribute("start")));g&&(g.mb()+g.durationMs>=h?g.durationMs=h:g=null);switch(d.getAttribute("op")){case "kill":d=null;break t;case "define":g=null}g?g.A=!0:g=hG();var k=
{};ra(k,g?g.params:gF);d.getAttribute("id")&&(k.id=d.getAttribute("id"));d.getAttribute("op")&&(k.fH=d.getAttribute("op"));d.getAttribute("rc")&&(k.kd=parseInt(d.getAttribute("rc"),10));d.getAttribute("cc")&&(k.um=parseInt(d.getAttribute("cc"),10));d.getAttribute("ap")&&(g=parseInt(d.getAttribute("ap"),10),k.anchorPoint=0>g||8<g?7:g);d.getAttribute("ah")&&(k.kj=parseInt(d.getAttribute("ah"),10));d.getAttribute("av")&&(k.Sd=parseInt(d.getAttribute("av"),10));d.getAttribute("id")&&(k.id=parseInt(d.getAttribute("id"),
10)||0);d.getAttribute("vs")&&(k.isVisible=Boolean(d.getAttribute("vs")));d.getAttribute("ju")&&(k.textAlign=parseInt(d.getAttribute("ju"),10));d.getAttribute("pd")&&(k.vf=1,0==parseInt(d.getAttribute("pd"),10)&&(k.vf=0));d.getAttribute("bc")&&(k.backgroundColor=parseInt(d.getAttribute("bc"),16));d.getAttribute("bo")&&(k.dr=parseInt(d.getAttribute("bo"),10)/100);d.getAttribute("fc")&&(k.color=parseInt(d.getAttribute("fc"),16));d.getAttribute("sd")&&(k.rA=parseInt(d.getAttribute("sd"),10));g=parseInt(d.getAttribute("d"),
10)||1E3*parseFloat(d.getAttribute("dur"))||2147483647;d={startMs:h,durationMs:g,params:k,windowId:parseInt(d.getAttribute("id"),10)};d=new eG(d)}else d=null}this.k[e]=d;this.g.push(d);break;case "text":e=dG(a[b]),this.j.push(e),d=e.windowId,this.k[d]&&(d=this.k[d],e=e.g,""!=d.g&&(d.j=!0),d.g+=e)}}B(jG,aG);function kG(a){this.parent=a||null;this.g={}}function lG(a,b,c){var d=a.g[b];if(void 0!=d)return d;if(a.parent&&(void 0==c||c))return lG(a.parent,b)}function mG(a,b,c){void 0!=c&&(a.g[b]=c)}function nG(a,b,c){void 0!=c&&(a.g[b]=c)}function UF(a){var b=a.parent?UF(a.parent):{};ra(b,a.g);return b};function oG(a){aG.call(this);var b={qh:{},an:{},bn:{}},c,d;a=a.firstChild.childNodes;for(var e=0;e<a.length;e++){var g=a[e];switch(g.tagName){case "head":c=g;break;case "body":d=g}}if(c)for(c=c.childNodes,a=0;a<c.length;a++)switch(e=c[a],e.tagName){case "pen":var g=b,h=pG(e,"p"),k=void 0;h&&g.qh[h]&&(k=g.qh[h]);g=new kG(k);mG(g,"id",pG(e,"id"));h=qG(e,"b");void 0!=h&&(g.g.bold=h);h=qG(e,"i");void 0!=h&&(g.g.italic=h);h=qG(e,"u");void 0!=h&&(g.g.underline=h);mG(g,"charEdgeStyle",rG(e,"et"));mG(g,"offset",
rG(e,"of"));mG(g,"textType",rG(e,"tt"));nG(g,"background",sG(e,"bc"));nG(g,"charEdgeColor",sG(e,"ec"));nG(g,"color",sG(e,"fc"));h=rG(e,"fs");void 0!=h&&0!=h&&mG(g,"fontFamily",h);h=pG(e,"sz");void 0!=h&&mG(g,"fontSizeIncrement",h/100-1);h=pG(e,"bo");void 0!=h&&mG(g,"backgroundOpacity",h/255);e=pG(e,"fo");void 0!=e&&mG(g,"textOpacity",e/255);e=lG(g,"id",!1);b.qh[e]=g;break;case "ws":g=tG(b,e);e=lG(g,"id",!1);b.bn[e]=g;break;case "wp":g=uG(b,e),e=lG(g,"id",!1),b.an[e]=g}if(d)for(c={},a=-1,d=d.childNodes,
e=0;e<d.length;e++)switch(g=d[e],g.tagName){case "w":k=vG(b,g);if(g=c[k.id])g.durationMs=k.mb()-g.mb();c[k.id]=k;this.g.push(k);break;case "p":var h=b,l=g,p={},k={startMs:pG(l,"t"),durationMs:pG(l,"d"),text:l.textContent,params:p},r=pG(l,"w");void 0!=r&&(k.windowId=r);qG(l,"a")?(k.priority=6,p.append=!0):k.priority=5;(l=pG(l,"p"))&&h.qh[l]&&(k.Ym=h.qh[l]);h=new cG(k);k=c[h.windowId];k||(k=vG(b,g),k.id=a--,h.windowId=k.id,this.g.push(k));g=k;k=h.g;""!=g.g&&(g.j=!0);g.g+=k;this.j.push(h)}}B(oG,aG);
function pG(a,b){var c=a.getAttribute(b);if(null!=c)return parseFloat(c)}function qG(a,b){var c=a.getAttribute(b);if(null!=c)return"1"==c}function rG(a,b){var c=pG(a,b);if(void 0!=c)return c}function sG(a,b){var c=a.getAttribute(b);if(null!=c)return bF.test(c),c}
function tG(a,b){var c=pG(b,"ws"),d;c&&a.bn[c]&&(d=a.bn[c]);c=new kG(d);mG(c,"id",pG(b,"id"));mG(c,"modeHint",rG(b,"mh"));mG(c,"textAlign",pG(b,"ju"));mG(c,"textPrintDirection",rG(b,"pd"));mG(c,"textScrollDirection",rG(b,"sd"));mG(c,"windowBorderType",rG(b,"et"));nG(c,"windowBorderColor",sG(b,"wbc"));nG(c,"windowColor",sG(b,"wfc"));d=pG(b,"wfo");void 0!=d&&mG(c,"windowOpacity",d/255);return c}
function uG(a,b){var c=pG(b,"wp"),d;c&&a.an[c]&&(d=a.an[c]);c=new kG(d);mG(c,"anchorPoint",rG(b,"ap"));mG(c,"colCount",pG(b,"cc"));mG(c,"id",pG(b,"id"));mG(c,"leftPercentage",pG(b,"ah"));mG(c,"rowCount",pG(b,"rc"));mG(c,"topPercentage",pG(b,"av"));return c}function vG(a,b){var c={windowId:pG(b,"id"),startMs:pG(b,"t"),durationMs:pG(b,"d")||2147483647,Kj:uG(a,b),Lj:tG(a,b)};return new eG(c)};function wG(a,b){aG.call(this);this.g.push(hG());for(var c=a.split(xG),d=1;d<c.length;d++){var e;e=c[d];var g=b;if(""==e||0==e.search(yG))e=null;else{var h=e.split(zG),k=0,l=h[k++].match(AG);l||(l=h[k++].match(AG));l?(e=BG(l[1],g),g=BG(l[3],g),h=h.slice(k).join("\n"),e=new cG({startMs:e,durationMs:g-e,text:h,windowId:0,priority:5,params:{}})):e=null}e&&this.j.push(e)}}B(wG,aG);var yG=/NOTE/,xG=/(?:\r\n|\r|\n){2,}/,zG=/\r\n|\r|\n/,AG=/(([\d]{2}:)?[\d]{2}:[\d]{2}\.[\d]{3})[\t ]+--\x3e[\t ]+(([\d]{2}:)?[\d]{2}:[\d]{2}\.[\d]{3})/;
function BG(a,b){for(var c=a.split(":"),d=0,e=0;e<c.length;e++)d=60*d+parseFloat(c[e]);return 1E3*d+b};function CG(a,b){this.g=[];this.j=[];var c;c=a?"WEBVTT"==a.substring(0,6)?new wG(a,b||0):(c=WF(a))&&c.firstChild?"timedtext"==c.firstChild.tagName?3==parseInt(c.firstChild.getAttribute("format"),10)?new oG(c):new jG(c):new iG(c):null:null;c&&(this.j=c.g,this.g=c.j)};function DG(){this.j=[];this.g=[];this.k=-1}function EG(a,b){return b?a.g.concat(a.j):a.g}function FG(a,b){switch(b.o){case "asr":return GG(b,a.j);default:if(b.isDefault||0>a.k)a.k=a.g.length;return GG(b,a.g)}}function GG(a,b){return G(b,y(a.equals,a))?!1:(b.push(a),!0)};function HG(a){this.Yp=!!a;this.j=new DG;this.o=[]}B(HG,S);function IG(a,b){return G(EG(a.j,!0),function(a){return a.toString()==b})}f=HG.prototype;f.mq=function(a){var b=this.j.k,c=EG(this.j,!0);a&&0>b&&0<c.length&&(b=0);return 0>b?null:c[b]};f.gf=function(){return null};f.seek=function(){};f.sm=function(){};f.L=function(){HG.H.L.call(this);this.sm()};function JG(a,b){HG.call(this,b);this.k=null}B(JG,HG);f=JG.prototype;f.lq=function(){for(var a=[],b=EG(this.j,void 0),c=0;c<b.length;c++){var d=b[c],e={kind:"subtitles",label:d.k,srclang:d.j,src:d.F};d.isDefault&&(e["default"]=1);a.push(K("track",e))}return a};f.Cn=function(a,b){var c=y(function(c){this.g=null;c=new CG(c.responseText);b(c,a)},this);this.g&&this.g.abort();this.g=Fj(a.F,{format:"RAW",Qa:c,withCredentials:!0})};
f.nn=function(a,b,c,d){if(this.k=d||null)for(b=0;b<this.k.captionTracks.length;b++)FG(this.j,this.k.captionTracks[b]);a()};f.gf=function(){return this.k?this.k.Im:null};f.mq=function(){return this.k?this.k.Xs:null};f.L=function(){this.g&&this.g.abort();JG.H.L.call(this)};function KG(){this.F=1;this.B=20971520;this.A=8388608;this.g=5242880;this.pa=NaN;this.I=2;this.N=25;this.C=2097152;this.k=!1;this.j=1800;this.o=dr.auto;this.O=!0;this.liveChunkReadahead=3;this.P=st("xboxone");this.G=0;this.J=!1;this.M=this.D=0};function LG(){this.fa=[]}LG.prototype.contains=function(a){a=xb(this.fa,a);return 0<=a||0>a&&1==(-a-1)%2};LG.prototype.length=function(){return this.fa.length/2};function MG(a,b){S.call(this);this.X=b;this.C=new LG;this.o=!0;this.D=this.g=this.A=this.B=this.j=null;this.k=0}B(MG,S);MG.prototype.L=function(){Kf(this.k);this.k=0;this.o=!0;this.g&&this.g.abort()};MG.prototype.resume=function(){this.o=!1;Kf(this.k);this.seek(this.X.getCurrentTime());NG(this)};MG.prototype.seek=function(a){this.j=ab(this.D.Li(a).g)};function OG(a,b){a.B=b}function PG(a){var b;if(b=!a.o&&null!==a.j)b=a.j,b=b.g.Bg(b);return b&&!a.g&&!(a.j&&30<a.j.startTime-a.X.getCurrentTime())}
function QG(a){var b;b=a.j;b=Qr(b.g,b);if(!a.C.contains(b.g[0].o)){var c=Ar(Nr(b));a.g=Fj(c,{format:"RAW",Lb:y(a.F,a),withCredentials:!0});a.A=b;var c=a.C,d=a.A.g[0].o,e=xb(c.fa,d);0<=e||0>e&&1==(-e-1)%2||(e=-e-1,0<e&&1==d-c.fa[e-1]&&e<c.fa.length&&1==c.fa[e]-d?(pb(c.fa,e),pb(c.fa,e-1)):0<e&&1==d-c.fa[e-1]?c.fa[e-1]=d:e<c.fa.length&&1==c.fa[e]-d?c.fa[e]=d:(ub(c.fa,e,0,d),ub(c.fa,e+1,0,d)))}a.j=ab(b.g)}
MG.prototype.F=function(a){null==a.responseText||400<=a.status||this.o||null===this.B||(a=new CG(a.responseText,1E3*this.A.g[0].startTime),this.B(a));this.g=this.A=null};function NG(a){a.k=Jf(y(function(){PG(this)&&QG(this)},a),1E3);PG(a)&&QG(a)};function RG(a,b){HG.call(this);this.k=a;this.g=new MG(new KG,b)}B(RG,HG);f=RG.prototype;f.Cn=function(a,b){OG(this.g,function(c){b(c,a)});this.g.D=this.k.g[a.j];this.g.resume()};f.nn=function(a){FG(this.j,new Ns({format:1,languageCode:"en",languageName:"English",name:"",is_servable:!0,is_default:!0,is_translateable:!1}));a()};f.seek=function(a){this.g.seek(a)};f.sm=function(){var a=this.g;Kf(a.k);a.k=0;a.o=!0};f.L=function(){this.g.dispose();RG.H.L.call(this)};function SG(a,b){SF.call(this,a,b);this.Na.style.display="block";this.Na.style.padding="0";this.hc=[];var c=this.Na;fh(c,"captions-text");P(c,"caption-painton-text-rows")}B(SG,SF);f=SG.prototype;f.type=1;f.Zq="";f.Nn="";f.$g=!1;f.Ub=null;f.hc=null;f.Ej=function(){return this.hc[0]?this.hc[0].offsetHeight:0};function TG(a){return a.hc.reduce(function(a,c){return Math.max(a,c.offsetWidth)},0)}
f.Le=function(){0!=this.id&&(Ng(this.Ia,"100%"),Ng(this.Ia,this.$g?TG(this):this.Ub.width));var a=Math.round(this.Aa.kd*this.Ej());this.Ia.style.maxHeight=a+"px";TF(this);uA(this.Ia,this.Aa.isVisible)};
f.Fd=function(a){this.$j();a=VF(a);this.$g||(this.ah=a);a=a.split("<br>");for(var b=0,c=a.length;b<c;b++)if(a[b]){var d=K("div",{"class":"caption-row-holder"}),e=K("span",{"class":"caption-row captions-text"});e.style.backgroundColor=this.Nn;d.appendChild(e);e.innerHTML=a[b];this.$g||(this.Na.style.height=this.Ub.height+"px",this.Na.style.width=this.Ub.width+"px",d.style.position="absolute",d.style.top=this.Ub.Yq[b]+"px",d.style.left=this.Ub.Xq[b]+"px");this.Na.appendChild(d);this.hc.push(e)}this.Le()};
f.$j=function(){for(var a=0,b=this.hc.length;a<b;a++){var c=ee(this.hc[a],"caption-row-holder");Ld(c)}this.hc=[]};f.ad=function(a){SG.H.ad.call(this,a);this.Nn=this.Na.style.backgroundColor;this.Na.style.backgroundColor="";a=0;for(var b=this.hc.length;a<b;a++)this.hc[a].style.backgroundColor=this.Nn};function UG(a,b){SF.call(this,a,b);this.Lc=[];this.Vd=[];this.Vb=[];this.Qf=new tn(433);this.Qf.stop();R(this.Qf,"tick",y(this.$F,this))}B(UG,SF);f=UG.prototype;f.type=2;f.aG=32;f.Vb=null;f.Wd=0;f.Vd=null;f.Qf=null;f.Le=function(){Ng(this.Ia,"100%");var a=this.Ia.offsetWidth,a=Math.min(VG(this),a);Ng(this.Ia,a+"px");Ng(this.xh,"100%");this.Na.style.whiteSpace="nowrap";TF(this);uA(this.Ia,this.Aa.isVisible)};
f.Rt=function(a){var b=a.length;if(0>=b)this.$j();else{for(var c=0;c<b&&0<=this.Lc.indexOf(a[c]);)c++;this.Lc=this.Lc.concat(a.slice(c));WG(this)}};f.$j=function(){this.Lc=[];this.Vb=[];this.Wd=0;this.Vb=[];this.Vd=[];XG(this)};
function WG(a){if(!YG(a))if(a.Wd>=a.Lc.length)XG(a);else{var b=a.Vb.length-1;0>b&&(a.Vd.push(0),a.Wd=0,a.Vb.push(""),b=0);for(var c=a.Lc.length,d=a.Wd;d<c;d++){var e=a.Lc[d];if("\n"==e.g){a.Wd++;a.Vd[b]++;break}if(e.j||0==a.Vb[b].length)a.Vb[b]+=e.g,a.Wd++,a.Vd[b]++;else break}XG(a);d<c&&!YG(a)&&(b=a.Ej(),P(a.Na,"caption-rollup"),a.Ia.style.overflow="hidden",a.Na.style.top=-b+"px",a.Qf.start())}}function YG(a){return a.Qf.enabled||dh(a.Na,"caption-rollup")}
f.$F=function(){this.Ia.style.overflow="visible";this.Na.style.top=0;this.Qf.stop();fh(this.Na,"caption-rollup");this.Vb.push("");this.Vd.push(0);WG(this)};function XG(a){if(!YG(a)){for(;a.Vb.length<a.Aa.kd;)a.Vb.unshift(""),a.Vd.unshift(0);for(;a.Vb.length>a.Aa.kd;){a.Vb.shift();var b=a.Vd.shift();0<b&&(a.Wd-=b,a.Lc.splice(0,b))}a.Fd(a.Vb.join("\n"))}}
function VG(a){a.Wb.style.fontFamily=a.Na.style.fontFamily;a.Wb.style.fontSize=a.Na.style.fontSize;a.Na.appendChild(a.Wb);a.Wb.innerHTML="\u2014";var b=a.Wb.offsetWidth;a.Wb.innerHTML="&nbsp;";b=2*a.Wb.offsetWidth+b*a.aG;a.Na.removeChild(a.Wb);return b};function ZG(a,b,c,d){HG.call(this,d);c||(c=uj(a).hl||"",c=c.split("_").join("-"));this.k=xj(a,{hl:c});this.A=b;this.B={};this.g=null}B(ZG,HG);ZG.prototype.lq=function(){for(var a=[],b=EG(this.j,void 0),c=0;c<b.length;c++){var d=b[c],e=$G(this,d),e={kind:"subtitles",label:d.k,srclang:d.j,src:e};d.isDefault&&(e["default"]=1);a.push(K("track",e))}return a};
ZG.prototype.Cn=function(a,b){var c=$G(this,a),d=y(function(c){this.g=null;c=new CG(c.responseText);b(c,a)},this);this.g&&this.g.abort();this.g=Fj(c,{format:"RAW",Qa:d,withCredentials:!0})};
ZG.prototype.nn=function(a,b,c){var d=this.k;b={type:"list",tlangs:1,v:this.A,fmts:Number(b||!1),vssids:1};this.Yp&&(b.asrs=1);d=xj(d,b);b=y(function(b){this.g=null;if((b=b.responseXML)&&b.firstChild){for(var d=this.j,h=b.getElementsByTagName("track"),k=h.length,l=0;l<k;l++){var p=h[l].getAttribute("formats"),r=c,v=h[l].getAttribute("lang_code"),x=h[l].getAttribute("lang_translated"),ca=h[l].getAttribute("name"),ba=h[l].getAttribute("kind"),ja=h[l].getAttribute("id"),ta="true"==h[l].getAttribute("lang_default"),
Re="true"==h[l].getAttribute("cantran"),ke=h[l].getAttribute("vss_id"),p=new Ns({formats:p,format:r,languageCode:v,languageName:x,name:ca,kind:ba,id:ja,is_servable:!0,is_default:ta,is_translateable:Re,vss_id:ke});FG(d,p)}b=b.getElementsByTagName("target");d=b.length;for(h=0;h<d;h++)k=b[h].getAttribute("lang_code"),l=b[h].getAttribute("lang_translated"),p=b[h].getAttribute("lang_original"),r=b[h].getAttribute("id"),v="true"==b[h].getAttribute("lang_default"),k={languageCode:k,languageName:l,languageOriginal:p,
id:r,is_default:v},this.B[k.languageCode]=k.languageName,this.o.push(new Ms(k))}a()},this);this.g&&this.g.abort();this.g=Fj(d,{format:"RAW",Qa:b,withCredentials:!0})};function $G(a,b){var c=a.k,d={v:a.A,type:"track",lang:b.j,name:b.k,kind:b.o,fmt:b.A};b.g&&(d.tlang=b.g.languageCode);return c=xj(c,d)}ZG.prototype.L=function(){this.g&&this.g.abort();ZG.H.L.call(this)};function aH(a){Px.call(this,a);Mf({YTP_TRANSLATE_MENU_ITEM:"\u041f\u0435\u0440\u0435\u0432\u0435\u0441\u0442\u0438 \u0441\u0443\u0431\u0442\u0438\u0442\u0440\u044b",YTP_CONTRIBUTE_MENU_ITEM:"\u0414\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u0441\u0443\u0431\u0442\u0438\u0442\u0440\u044b",YTP_TRANSLATE_DIALOG_TITLE:"\u041f\u0435\u0440\u0435\u0432\u043e\u0434\u0447\u0438\u043a...",YTP_ASR_SETTINGS_LABEL:"\u0410\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438 \u0441\u043e\u0437\u0434\u0430\u043d\u043d\u044b\u0435 \u0442\u0438\u0442\u0440\u044b",
YTP_LANGUAGE_OFF:"\u0412\u044b\u043a\u043b.",YTP_FONT_FAMILY:"\u0421\u0435\u043c\u0435\u0439\u0441\u0442\u0432\u043e \u0448\u0440\u0438\u0444\u0442\u043e\u0432",YTP_FONT_SIZE:"\u0420\u0430\u0437\u043c\u0435\u0440 \u0448\u0440\u0438\u0444\u0442\u0430",YTP_FONT_COLOR:"\u0426\u0432\u0435\u0442 \u0448\u0440\u0438\u0444\u0442\u0430",YTP_FONT_OPACITY:"\u041f\u0440\u043e\u0437\u0440\u0430\u0447\u043d\u043e\u0441\u0442\u044c \u0448\u0440\u0438\u0444\u0442\u0430",YTP_BACKGROUND_COLOR:"\u0426\u0432\u0435\u0442 \u0444\u043e\u043d\u0430",
YTP_BACKGROUND_OPACITY:"\u041f\u0440\u043e\u0437\u0440\u0430\u0447\u043d\u043e\u0441\u0442\u044c \u0444\u043e\u043d\u0430",YTP_WINDOW_COLOR:"\u0426\u0432\u0435\u0442 \u043e\u043a\u043d\u0430",YTP_WINDOW_OPACITY:"\u041f\u0440\u043e\u0437\u0440\u0430\u0447\u043d\u043e\u0441\u0442\u044c \u043e\u043a\u043d\u0430",YTP_COLOR_WHITE:"\u0411\u0435\u043b\u044b\u0439",YTP_COLOR_YELLOW:"\u0416\u0435\u043b\u0442\u044b\u0439",YTP_COLOR_GREEN:"\u0417\u0435\u043b\u0435\u043d\u044b\u0439",YTP_COLOR_CYAN:"\u0413\u043e\u043b\u0443\u0431\u043e\u0439",
YTP_COLOR_BLUE:"\u0421\u0438\u043d\u0438\u0439",YTP_COLOR_MAGENTA:"\u041f\u0443\u0440\u043f\u0443\u0440\u043d\u044b\u0439",YTP_COLOR_RED:"\u041a\u0440\u0430\u0441\u043d\u044b\u0439",YTP_COLOR_BLACK:"\u0427\u0435\u0440\u043d\u044b\u0439",YTP_FONT_FAMILY_MONO_SERIF:"\u041c\u043e\u043d\u043e\u0448\u0438\u0440\u0438\u043d\u043d\u044b\u0439 \u0441 \u0437\u0430\u0441\u0435\u0447\u043a\u0430\u043c\u0438",YTP_FONT_FAMILY_PROP_SERIF:"\u041f\u0440\u043e\u043f\u043e\u0440\u0446\u0438\u043e\u043d\u0430\u043b\u044c\u043d\u044b\u0439 \u0441 \u0437\u0430\u0441\u0435\u0447\u043a\u0430\u043c\u0438",
YTP_FONT_FAMILY_MONO_SANS:"\u041c\u043e\u043d\u043e\u0448\u0438\u0440\u0438\u043d\u043d\u044b\u0439 \u0431\u0435\u0437 \u0437\u0430\u0441\u0435\u0447\u0435\u043a",YTP_FONT_FAMILY_PROP_SANS:"\u041f\u0440\u043e\u043f\u043e\u0440\u0446\u0438\u043e\u043d\u0430\u043b\u044c\u043d\u044b\u0439 \u0431\u0435\u0437 \u0437\u0430\u0441\u0435\u0447\u0435\u043a",YTP_FONT_FAMILY_CASUAL:"\u041e\u0431\u044b\u0447\u043d\u044b\u0439",YTP_FONT_FAMILY_CURSIVE:"\u041a\u0443\u0440\u0441\u0438\u0432",YTP_FONT_FAMILY_SMALL_CAPS:"\u041c\u0430\u043b\u044b\u0435 \u043f\u0440\u043e\u043f\u0438\u0441\u043d\u044b\u0435",
YTP_CHAR_EDGE_STYLE:"\u0421\u0442\u0438\u043b\u044c \u043a\u043e\u043d\u0442\u0443\u0440\u0430 \u0441\u0438\u043c\u0432\u043e\u043b\u043e\u0432",YTP_EDGE_STYLE_NONE:"\u0411\u0435\u0437 \u043a\u043e\u043d\u0442\u0443\u0440\u0430",YTP_EDGE_STYLE_RAISED:"\u041f\u0440\u0438\u043f\u043e\u0434\u043d\u044f\u0442\u044b\u0439",YTP_EDGE_STYLE_DEPRESSED:"\u0423\u0442\u043e\u043f\u043b\u0435\u043d\u043d\u044b\u0439",YTP_EDGE_STYLE_OUTLINE:"\u0413\u0440\u0430\u043d\u0438\u0446\u044b",YTP_EDGE_STYLE_DROP_SHADOW:"\u0421 \u0442\u0435\u043d\u044c\u044e",
YTP_CLICK_FOR_SETTINGS:"\u0414\u043b\u044f \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 \u043d\u0430\u0436\u043c\u0438\u0442\u0435 \u043d\u0430 \u0437\u043d\u0430\u0447\u043e\u043a $GEAR_ICON"});this.Si=!0;this.ua=this.W=this.na=!1;this.Ja=new iz(this);this.D=a.R();this.B=null;this.N=a.app.j;this.ka=this.ga=null;this.qa={};this.ba=[];this.Ha=0;this.J={};this.V={};this.ma=this.ya=this.I=this.wa=!1;this.ha=new SF(99,iF);this.A=this.k=this.C=null;this.Ga=!1;this.F=this.G=0;this.S=new uF(cy(this));
T(this,this.S);this.S.listen("click",this.Uy,this);this.M=this.va+"-mdx";this.ja=new PF(cy(this));T(this,this.ja);P(this.ja.K(),"ytp-mdx-settings-button");this.ja.listen("click",this.fz,this);this.o=new LF(cy(this),y(this.gq,this),y(this.ro,this),y(this.dz,this),y(this.ez,this),y(this.Vy,this));this.P=new xF(cy(this));T(this,this.P);this.P.listen("change",y(this.Od,this,!0));this.P.listen("cancel",this.Ty,this);this.P.listen("select",this.fq,this);this.U=new OF(cy(this));T(this,this.U);this.U.listen("change",
this.$y,this);this.U.listen("cancel",this.ng,this);this.subscribe("onResize",y(this.hq,this));this.subscribe("onBackgroundChange",y(this.az,this));this.subscribe("onTextOpacityChange",y(this.bz,this));this.subscribe("onWindowOpacityChange",y(this.cz,this));this.subscribe("onFontSizeIncrease",y(this.Yy,this));this.subscribe("onFontSizeDecrease",y(this.Xy,this));this.subscribe("onCaptionsToggle",y(this.Zy,this));this.subscribe("onPlaybackAudioChange",y(this.Wy,this))}B(aH,Px);aH.prototype.va="captions";
aH.prototype.oc="cc";aH.prototype.vn="subtitlesModuleData";var bH={background:"#080808",backgroundOpacity:1,charEdgeStyle:3,color:"#fff",fontFamily:4,fontSizeIncrement:0,textOpacity:1,windowColor:"#080808",windowOpacity:0};function cH(a){return"3"!=a.D.g?!1:!!a.N.g.textTracks}function dH(a,b,c,d,e){w(a.j[b])&&(a.j[c]=d.indexOf(a.j[b]),-1==a.j[c]&&(a.j[c]=e),delete a.j[b])}f=aH.prototype;
f.create=function(){aH.H.create.call(this);this.B=this.g.getVideoData();-1==jF.indexOf(this.D.M)&&P(this.g.Pa(),"cc-international");this.j=Yb(bH);ra(this.j,Wx(this,"display-settings"));dH(this,"fontFamilyOption","fontFamily",cF,bH.fontFamily);dH(this,"charEdgeStyle","charEdgeStyle",dF,bH.charEdgeStyle);this.P.setProperties(this.j);this.ka=new Y(["div",["ytp-player-content","ytp-subtitles-player-content"]]);this.ka.Y(this.g.Pa());this.ga=this.ka.K();cH(this)||(dy(this,this.va,this.S),fy(this,this.o));
eH(this)&&this.load()};f.destroy=function(){this.ka.detach();this.ka.dispose();this.ga=null;aH.H.destroy.call(this)};function eH(a){if(a.B.captionTracks.length){var b=fH(a.g.app,1),c=b.Hs;if(b.Im||2==c||3==c)return!0}if(1==a.D.o.cc_load_policy||1==a.B.Fp||"alwayson"==a.B.Ac("yt:cc")||cH(a))return!0;b=Wx(a,"module-enabled");return null!=b?!!b:"on"==a.B.Ac("yt:cc")}function gH(a){a.k.nn(y(a.Is,a),!0,cH(a)?"vtt":void 0,fH(a.g.app,1))}
f.load=function(){this.ma="alwayson"==this.B.Ac("yt:cc");this.ya="1"==this.B.o.cc_auto_caps||"1"==this.D.o.cc_auto_caps;this.o.C="1"==this.B.o.cc_contribute||"1"==this.D.o.cc_contribute;this.Mb?(dy(this,this.M,this.ja),this.o.j=this.M):(ey(this,this.M),this.o.j=null);aH.H.load.call(this);this.na=!0;if(this.B.Wa)this.k=new RG(this.B.k,this.g),this.subscribe("seekto",this.wp,this);else{var a=this.B.o.cc_lang_pref||this.D.o.cc_lang_pref||this.B.Ac("yt:cc_default_lang")||this.D.M,a=a&&a.split("_").join("-");
this.B.captionTracks.length?this.k=new JG(0,this.B.Fi):this.k=new ZG(this.B.pf,this.B.videoId,a,this.B.Fi)}gH(this)};f.fz=function(){this.loaded||this.load()};f.unload=function(){this.Mb&&(ey(this,this.M),this.o.j=null,hH(this,!1),this.zj("control_subtitles_set_track"));if(cH(this)){var a;a=ud("track",void 0,void 0);for(var b=0;b<a.length;b++)Ld(a[b])}else iH(this,!1),jH(this),this.unsubscribe("seekto",this.wp,this),this.k.dispose(),this.k=null,this.ng();this.I=this.ua=this.W=this.na=!1;aH.H.unload.call(this)};
f.oa=function(){};
f.Is=function(){this.na=!1;if(cH(this))for(var a=this.N.g,b=this.k.lq(),c=0;c<b.length;c++)a.appendChild(b[c]);else if(a=this.U,b=this.k.o,HF(a.j,b),KF(a.j,1E3),Oy(a.j.template,"tabindex",1E3),bE(a.g.g,1001),b.length?a.Ea(b[0]):a.Ea(null),b=this.I||eH(this)||kH(this.D),a=EG(this.k.j,!0),0<a.length){this.oa("Caption track list loaded, found "+a.length+" tracks.");this.ua=!0;MF(this.o,a);a=!1;if(b)if(b=this.k.mq())this.wa=!0,lH(this,b),a=!0;else if(this.W||mH(this),b=this.k.j.j,b.length&&(b=b[0].toString(),
this.I||this.ya))this.ro(b),a=!0;this.publish("publish_external_event","onCaptionsTrackListChanged");a||this.k.gf()&&lH(this,this.k.gf())}else this.oa("No captions found."),this.unload()};function mH(a){a.W=!0;cH(a)||(a.Od(),a.hq())}
f.GE=function(a,b){this.W||mH(this);this.wa&&(this.wa=!1,this.publish("publish_external_event","onCaptionsTrackListChanged"));if(b&&(!this.A||!b.equals(this.A))){jH(this);this.A=b;this.Ga=kc.test(b.j);var c={trackName:b.k,trackKind:b.o};b.g?(c.trackLangCode=b.g.languageCode,c.fromLangCode=b.j):c.trackLangCode=b.j;this.log(c);if(b!=this.k.gf()){this.I&&(c=Ps(b)||"",(c=c.replace(/<[^>]*>?/g,""))&&(c+="\n"),c+=Nf("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.ga.appendChild(this.ha.Ia),this.ha.Fd(c),this.ha.ad(this.j,this.N.ab()),this.F||(this.F=N(y(this.vp,this),2E3)));this.publish("publish_external_event","captionschanged",Os(b));rF(this.S);var c=this.o,d=!this.ma&&0<this.k.o.length;c.B=d;JF(c.g,!d);NF(this.o,b.toString());Xx(this,"module-enabled",!0);this.publish("vss_segment")}}nH(this,a.j.concat(a.g))};
function nH(a,b){a.oa("Caption track loaded with "+b.length+" events.");var c=[];E(b,function(a){a.mb();var b;this.Ha++;b="caption"+this.Ha.toString();c.push(new Gx(a.mb(),a.mb()+a.durationMs,{id:b}));this.qa[b]=a},a);a.Id.apply(a,c)}f.Ec=function(a){if(a=oH(this,a))this.ba.push(a),this.G||(this.G=N(y(this.xi,this),0))};f.Wc=function(a){if(a=oH(this,a))ob(this.ba,a),this.G||(this.G=N(y(this.xi,this),0))};function oH(a,b){var c=b.getId();return 0!=c.indexOf("caption")?null:a.qa[c]}
f.ME=function(a){if(a instanceof eG){var b=this.J[a.id];ra(a.params,this.j);fG(a);b&&b.type!=gG(a)&&(Ld(b.Ia),delete this.J[a.id],b=null);if(!b){var b=this.J,c=a.id,d;t:{d=a.id;var e=a.params;switch(gG(a)){case 1:d=new SG(d,e);break t;case 2:d=new UG(d,e);break t;default:d=new SF(d,e)}}b=b[c]=d;c=b.Ia;Q(c,"captions-asr","asr"==this.A.o);null!=a.params.vf&&(a.params.vf=this.Ga?1:0);0==b.id?this.ga.appendChild(c):Sx(this,c)}b.ad(a.params,this.N.ab());if(1==gG(a)){b.Zq=a.g;b.Ub={};b.$g=!0;b.Fd(b.Zq);
b.Ub.kd=b.hc.length;b.Ub.width=b.Ia.offsetWidth;b.Ub.height=b.Ia.offsetHeight;b.Ub.Xq=[];b.Ub.Yq=[];for(a=0;a<b.Ub.kd;a++)b.Ub.Yq.push(b.hc[a].offsetTop),b.Ub.Xq.push(b.hc[a].offsetLeft);b.$g=!1;b.Fd(b.ah)}}else b=a.windowId,this.V[b]||(this.V[b]=[]),this.V[b].push(a)};f.hq=function(){this.W&&(this.Od(),Hb(this.J,function(a){a.Le()},this))};
function pH(a){var b=[];Hb(a.J,function(a){a instanceof SG&&b.push(a)});if(0!=b.length){b.sort(function(a,b){return b.Aa.Sd-a.Aa.Sd});var c=qH(a.N).height,d=b[0].Aa.Sd;E(b,function(a){a.Aa.Sd=d;var b=Math.round(a.Aa.kd*a.Ej());d-=Math.round(b/c*100);a.Le()},a)}}f.vp=function(){this.F=0;Ld(this.ha.Ia)};
f.xi=function(){this.G=0;this.W&&(Vb(this.V),this.ba.sort(function(a,b){return a.mb()==b.mb()?a.o-b.o:a.mb()-b.mb()}),E(this.ba,this.ME,this),Hb(this.J,function(a,b){this.V[b]?a.Rt(this.V[b]):(Ld(a.Ia),delete this.J[b])},this),pH(this),this.C&&this.C.Le(),this.oa("Refreshing caption display..."))};function rH(a,b,c){if(c&&c.length){for(var d=a.j[b],e=0,g=0;g<c.length;g++)if(d==c[g].option){e=(g+1)%c.length;break}a.j[b]=c[e].option;a.Od(!0)}}f.az=function(){rH(this,"backgroundOpacity",lF)};
f.bz=function(){rH(this,"textOpacity",mF)};f.cz=function(){rH(this,"windowOpacity",lF)};f.Xy=function(){sH(this,-1)};f.Yy=function(){sH(this,1)};function sH(a,b){var c=a.j.fontSizeIncrement+b,c=Math.max(-2,Math.min(4,c));a.j.fontSizeIncrement=c;a.Od()}function jH(a){if(a.A){a.A=null;Qx(a);a.ba=[];a.qa={};a.A=null;a.xi();sF(a.S);a.o.off();var b=a.o;b.B=!1;JF(b.g,!0);a.k.sm()}}
function lH(a,b,c){!b||a.A&&b.equals(a.A)||(null!=c&&(a.I=c),a.Mb?(a.A=b,hH(a,!0),a.zj("control_subtitles_set_track",Os(b)),a.W||mH(a)):(a.k.Cn(b,y(a.GE,a)),a.na=!0,NF(a.o,b.toString())))}f.ro=function(a,b){var c=IG(this.k,a);lH(this,c,b);hy(this)};f.ez=function(){this.ma||(Tx(this,this.U),hy(this))};
f.$y=function(){if(!this.ma){this.ng();var a=this.U.getSelected();if(a){var b=this.A,c=new Ns;c.j=b.j;c.B=b.B;c.k=b.k;c.o=b.o;c.isDefault=!1;c.C=b.C;c.D=b.D;c.g=a;FG(this.k.j,c)&&(a=c.toString(),MF(this.o,EG(this.k.j,!0)),NF(this.o,a));lH(this,c,!0)}}};f.Ty=function(){this.ng();this.Mb&&this.A&&this.zj("control_subtitles_set_track",Os(this.A))};f.fq=function(){delete this.j;this.j=Yb(bH);this.P.setProperties(this.j);Xx(this,"display-settings",this.j);this.Od()};
f.Od=function(a){var b=this.N.ab();Hb(this.J,function(a){a.ad(this.j,b)},this);this.C&&this.C.ad(this.j,b);this.ha.ad(this.j,b);this.xi();n(a)&&!a||Xx(this,"display-settings",this.j)};f.Uy=function(){this.I=!0;tH(this)};function tH(a){a.loaded?a.A?a.gq():a.Is():a.load()}
f.gq=function(){this.F&&(O(this.F),this.vp());Xx(this,"module-enabled",!1);this.publish("vss_segment");jH(this);hy(this);this.I=!1;this.Mb?(hH(this,!1),this.zj("control_subtitles_set_track")):this.publish("publish_external_event","captionschanged",{});this.k.gf()&&lH(this,this.k.gf())};f.dz=function(){Tx(this,this.P);hy(this)};f.Vy=function(){Ux(this,this.D.qb+"timedtext_video?v="+this.B.videoId);hy(this)};function uH(a){return aH.prototype.Fa(a)?new aH(a):null}
f.Wf=function(a,b){switch(a){case "fontSize":return isNaN(b)||(this.j.fontSizeIncrement=Math.max(-2,Math.min(4,b)),this.Od()),this.j.fontSizeIncrement;case "reload":b&&gH(this);break;case "stickyLoading":this.D.zb()&&Xx(this,"module-enabled",!!b);break;case "track":if(b){if(!la(b))break;var c=new Ns(b);c.equals(this.A)||(lH(this,c,!0),NF(this.o,c.toString()))}else return this.A?Os(this.A):{};return"";case "tracklist":return this.ua?F(EG(this.k.j,b&&b.includeAsr),function(a){return Os(a)}):[];case "displaySettings":return b&&
la(b)&&vH(this,b),c=Yb(this.j),c.fontFamily=cF[c.fontFamily],c.charEdgeStyle=dF[c.charEdgeStyle],c;case "sampleSubtitles":iH(this,!!b)}};function iH(a,b){if(b&&!a.C){a.C=new SF(98,hF);a.ga.appendChild(a.C.Ia);var c=a.C,d=Z(cy(a),"YTP_SAMPLE_SUBTITLES");d&&(d=d.replace(/<[^>]*>?/g,""),c.Fd(d));a.C.ad(a.j,a.N.ab())}else!b&&a.C&&(Ld(a.C.Ia),a.C=null)}f.Vf=function(){var a="reload fontSize track tracklist displaySettings sampleSubtitle".split(" ");this.D.zb()&&a.push("stickyLoading");return a};
f.En=function(a,b){return a&&w(a)&&bF.test(a)?a:b};f.Fn=function(a,b){return ia(a)&&!isNaN(a)?Math.max(0,Math.min(1,parseFloat(a))):b};f.IE=function(a,b){if(a&&w(a)){var c=dF.indexOf(a);return-1!=c?c:b}return b};f.JE=function(a,b){if(a&&w(a)){var c=cF.indexOf(a);return-1!=c?c:b}return b};f.KE=function(a,b){return ia(a)&&!isNaN(a)?Math.max(-2,Math.min(4,a)):b};var wH=null;
function vH(a,b){if(b)if(Xb(b,"reset"))a.fq();else{if(!wH){var c={};c.color=a.En;c.textOpacity=a.Fn;c.background=a.En;c.backgroundOpacity=a.Fn;c.windowColor=a.En;c.windowOpacity=a.Fn;c.charEdgeStyle=a.IE;c.fontFamilyOption=a.JE;c.fontSizeIncrement=a.KE;wH=c}var c=wH,d;for(d in c)switch(d){case "fontFamilyOption":a.j.fontFamily=c[d](b[d],a.j.fontFamily);break;default:a.j[d]=c[d](b[d],a.j[d])}a.Od(kH(a.D))}}f=aH.prototype;f.Fa=function(a){a=a.getVideoData();return!(!a.pf&&!a.captionTracks.length)};
f.ij=function(a){gy(this,this.o);a?(this.o.j=this.M,dy(this,this.M,this.ja)):(this.o.j=null,ey(this,this.M));fy(this,this.o);a?jH(this):this.loaded&&(this.unload(),this.load())};function hH(a,b){b?(rF(a.S),NF(a.o,a.A.toString())):(sF(a.S),a.o.off())}f.wp=function(){this.k.seek(this.g.getCurrentTime())};f.Zg=function(){var a=this.A;return a?{cc:a.D}:null};f.Zy=function(){this.I=!0;tH(this)};f.Wy=function(){this.B.captionTracks.length&&gH(this)};
f.L=function(){this.Ja.removeAll();this.G&&(O(this.G),this.G=0);this.F&&(Kf(this.F),this.F=0);aH.H.L.call(this)};function xH(a){Px.call(this,a);this.va="ypc_license_checker";this.oc="ypc_license";this.B=!1;this.A=0;this.o=!1;this.j=NaN;this.C=Bt();this.k=null}B(xH,Px);
var yH={LICENSE_DENIED_CANNOT_ACTIVATE_RENTAL:"YTP_ERROR_CANNOT_ACTIVATE_RENTAL",LICENSE_DENIED_NOT_SIGNED_IN:"YTP_ERROR_NOT_SIGNED_IN",LICENSE_DENIED_VIDEO_NOT_FOUND:"YTP_ERROR_VIDEO_NOT_FOUND",LICENSE_DENIED_NO_ACTIVE_PURCHASE_AGREEMENT:"YTP_ERROR_PURCHASE_REFUNDED",LICENSE_DENIED_PURCHASE_NOT_FOUND:"YTP_ERROR_PURCHASE_NOT_FOUND",LICENSE_DENIED_PURCHASE_EXPIRED:"YTP_ERROR_RENTAL_EXPIRED",LICENSE_DENIED_STREAMING_UNAVAILABLE:"YTP_ERROR_STREAMING_UNAVAILABLE",LICENSE_DENIED_ALREADY_PINNED_ON_A_DEVICE:"YTP_ERROR_ALREADY_PINNED_ON_A_DEVICE",
LICENSE_DENIED_CONCURRENT_PLAYBACK:"YTP_ERROR_STOPPED_BY_ANOTHER_PLAYBACK",LICENSE_DENIED_TOO_MANY_STREAMS_PER_USER:"YTP_ERROR_TOO_MANY_STREAMS_PER_USER",LICENSE_DENIED_TOO_MANY_STREAMS_PER_ENTITLEMENT:"YTP_ERROR_TOO_MANY_STREAMS_PER_ENTITLEMENT",LICENSE_DENIED_STREAMING_DEVICES_QUOTA_PER_24H_EXCEEDED:"YTP_ERROR_STREAMING_DEVICES_QUOTA_PER_24H_EXCEEDED",LICENSE_DENIED_UNUSUAL_ACTIVITY:"YTP_ERROR_UNUSUAL_ACTIVITY",LICENSE_DENIED_UNKNOWN:"YTP_ERROR_RETRYABLE_ERROR",LICENSE_DENIED_PLAYBACK_CAP:"YTP_ERROR_LICENSE"};
function zH(a){return Gv(a.getVideoData(),"ypc_license_checker_module")}f=xH.prototype;f.Fa=function(){return zH(this.g)};f.create=function(){xH.H.create.call(this);var a=new Gx(1E3,2147483646,{priority:0});this.Id(a);this.subscribe("heartbeatparams",this.HF,this);this.subscribe("onStateChange",this.IF,this)};function AH(a){return zH(a)?new xH(a):null}f.Ec=function(){this.B=!0;BH(this,2E3)};f.HF=function(a){this.k=a;BH(this,2E3)};
f.IF=function(a){X(a.state,2)||X(a.state,64)?CH(this):(X(a.state,1)||X(a.state,8))&&BH(this,2E3)};function DH(a){var b=a.g.getVideoData();return zv(b)?!!a.k:!!b.heartbeatToken||!!b.vb}function BH(a,b){if(!a.j&&a.B&&DH(a)&&(zv(a.g.getVideoData())||!kH(a.g.R()))){var c=b;void 0==c&&(c=a.o?(c=a.g.getVideoData().Lh)?c:a.k?1E3*a.k.g:6E4:1E3);a.j=N(y(a.oz,a),c)}}
f.oz=function(){var a,b,c;c=this.g.R().qb;var d=this.g.getVideoData();DH(this)?(zv(d)?(b="GET",a={},c=Je(this.k.url,{request_id:Bt()}),d.D&&(c=Je(c,{vvt:d.D})),d.B&&(c=Je(c,{access_token:d.B}))):d.heartbeatToken?(b="GET",a={},c=Je(c+"heartbeat",{video_id:d.videoId,heartbeat_token:d.heartbeatToken}),d.D&&(c=Je(c,{vvt:d.D})),d.B&&(c=Je(c,{access_token:d.B}))):(b="POST",a={video_id:d.videoId,player_id:this.C,request_id:Bt(),purchase_id:d.purchaseId,version:"4",player_time_seconds:this.g.getCurrentTime().toString(),
gid:d.Eo,ypc_token:d.vb},d.D&&(a.vvt=d.D),d.B&&(a.access_token=d.B),c+="ypc_license_server"),c=Je(c,{cpn:d.za}),Fj(c,{format:"RAW",method:b,cb:a,timeout:3E4,Qa:y(this.dC,this),onError:y(this.cC,this),pe:y(this.eC,this),withCredentials:!0})):CH(this)};
f.dC=function(a){if(this.j){a=a.responseText;var b;t:if(b=a,this.g.getVideoData().heartbeatToken)b=cg(b),b="ok"==b.status?0:"stop"==b.status?1:-1;else{var c=b.match(EH);if(c){if("0"!=c[1]){b=1;break t}b=c[3]}b=b in yH?1:64<=b.length&&b.match(/[0-9a-fA-f]+/)?0:-1}-1==b?FH(this,"decode"):(this.A=0,this.j=NaN,1==b?(this.o=!1,b="YTP_ERROR_LICENSE",this.g.getVideoData().heartbeatToken?a=cg(a).reason||Nf(b):((c=a.match(EH))?(a=parseInt(c[1],10))&&(b=ky(a)):a in yH&&(b=yH[a]),a=Nf(b)),dz(this.g.app.k,"heartbeat",
a,void 0)):(this.o=!0,BH(this)))}};f.cC=function(a){FH(this,"net-"+a.status)};f.eC=function(){FH(this,"timeout")};function FH(a,b){if(a.j){a.log({errorType:b});a.j=NaN;var c=++a.A,d=a.g.getVideoData().Qh;c>(d?d:a.k?a.k.j:5)?(c=Nf("YTP_ERROR_LICENSE"),dz(a.g.app.k,"heartbeat",c,void 0)):BH(a)}}var EH=/^GLS\/1.0 (\d+) (\w+).*?\r\n\r\n([^]*)$/;function CH(a){a.A=0;a.j&&(O(a.j),a.j=NaN);a.o=!1};function GH(a){Y.call(this,a);this.W=new U;T(this,this.W)}B(GH,Y);GH.prototype.subscribe=function(a,b,c){return this.W.subscribe(a,b,c)};GH.prototype.unsubscribe=function(a,b,c){return this.W.unsubscribe(a,b,c)};GH.prototype.Jb=function(a){return this.W.Jb(a)};GH.prototype.publish=function(a,b){return this.W.publish.apply(this.W,arguments)};function HH(a,b,c){GH.call(this,["div",["html5-endscreen","ytp-player-content",c||"base-endscreen"]]);this.j=a;this.Oa=b;this.A=!1}B(HH,GH);HH.prototype.create=function(){this.A=!0};HH.prototype.destroy=function(){this.A=!1};HH.prototype.Vi=function(){return!1};function IH(){Y.call(this,["div","ytp-channel-banner-container",["img","ytp-channel-banner",{src:"{{banner}}"}]])}B(IH,Y);function JH(){Y.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"]]])}B(JH,Y);function KH(a,b){GH.call(this,b);this.F=a;this.videoId=null}B(KH,GH);
KH.prototype.ri=function(a,b){this.videoId=a?a.id||a.video_id:"";Q(this.element,"ytp-suggestion-set",!!this.videoId);if(this.videoId){var c,d=a.list?a.playlist_iurlhq:a.iurlhq_webp||a.iurlhq,e=a.list?a.playlist_iurlmq:a.iurlmq_webp||a.iurlmq;b&&d?c=d:!b&&e?c=e:c=Mt(a.thumbnail_ids?a.thumbnail_ids.split(",")[0]:this.videoId,b?"hqdefault.jpg":"mqdefault.jpg");d=Yb(a);d.playlist_length=d.playlist_length||0;d.title=d.title||d.playlist_title;d.author=d.author||d.playlist_author;d.image=c;d.background=
"background-image: url("+c+")";d.duration=Qy(a.length_seconds);d.episodic_title=d.title;d.episodic_index=parseInt(d.index,10)+1;d.episodic_length=d.playlist_length;this.template.update(d)}};function LH(a){var b=["div","ytp-watch-next-card",["div","ytp-watch-next-content",["div","ytp-watch-next-header",Z(0,"YTP_WATCH_NEXT")],["img","ytp-watch-next-thumbnail",{src:"{{image}}"}],["div","ytp-watch-next-title","{{title}}"],["div","ytp-watch-next-views","{{view_count_string}}"],["div","ytp-watch-next-uploaded","{{uploaded}}"]]];KH.call(this,a,b)}B(LH,KH);function MH(a,b,c,d,e,g,h){a&&(a={video_id:a,html5:1,page_subscribe:b?1:0},g&&(a.authuser=g),h&&(a.pageid=h),Fj("/get_video_metadata",{method:"GET",onError:d,Qa:c,Be:a,context:e}))};function NH(a,b,c){HH.call(this,a,b,"subscribecard-endscreen");this.o=new IH;T(this,this.o);this.B=new Jy(["div","ytp-channel-curtain"]);T(this,this.B);this.k=new JH;T(this,this.k);(this.g=c?new LH(this.j.app.j.j):null)&&T(this,this.g);this.hide()}B(NH,HH);NH.prototype.create=function(){NH.H.create.call(this);Jd(this.K());this.o.Y(this.K());this.B.Y(this.K());this.k.Y(this.K());MH(this.j.getVideoData().videoId,!0,this.C,u,this,this.j.R().Va,this.j.R().pageId)};
NH.prototype.C=function(a,b){if(this.A){var c=b.user_info,d=this.j.getVideoData();d&&(d.ya=c.external_id);d=c.channel_banner_url;Uf(d)||(d="");var e=c.channel_logo_url||c.image_url;Uf(e)||(e="");Oy(this.o.template,"banner",d);Oy(this.k.template,"image",e);Oy(this.k.template,"author",c.channel_title||c.username);this.g&&b.watch_next&&(this.g.ri(b.watch_next),this.g.Y(this.K()));c=c.subscription_button_html;this.k.template.g["html5-subscribe-button-container"].innerHTML=c?c:""}};function OH(a,b){return H(a.experiments.experimentIds,b)}function PH(a,b){return gb(vb(arguments,1),z(H,a.experiments.experimentIds))};function QH(a,b){var c=["div",["video-ads","html5-stop-propagation"],["div","video-ad-interstitial",["span","",Z(0,"YTP_AD_INTERRUPT_MESSAGE")]],["div","video-ad-status-bar",["div","video-ad-label",Z(0,"YTP_ADVERTISEMENT")],["div","video-ad-time-left"],["div",["html5-progress-bar","html5-stop-propagation"],["div",["html5-ad-progress-list","html5-progress-list"]]]],["div","ad-container"]];Y.call(this,c);this.X=b}B(QH,Y);QH.prototype.k=null;QH.prototype.j=null;QH.prototype.g=null;
function RH(a){if(!a.k&&(a.k=a.template.g["ad-container"],a.X.R().A)){var b=OH(a.X.R(),"927622")?"ad-container-single-media-element-annotations":"ad-container-single-media-element";P(a.k,b)}return a.k}function SH(a){a.g&&(a.X.R().A?(fh(a.g,"ad-video"),TH(a.X.app,a.g),a.g=null):(Ld(a.g),wx(a.g)))}
function UH(a){if(!a.j){if(a.X.R().Mc){var b=Fd("button");P(b,"video-click-tracking");Id(b,Nf("YTP_VISIT_ADVERTISERS_SITE"));var c=Fd("div");P(c,"video-click-tracking-container");c.appendChild(b);RH(a).appendChild(c)}else b=Fd("div"),eh(b,["video-click-tracking","ad-video"]),RH(a).appendChild(b);a.j=b}return a.j}QH.prototype.L=function(){QH.H.L.call(this);this.g&&(TH(this.X.app,this.g),this.g=null);SH(this);Jd(RH(this));Jd(UH(this));this.j=this.k=null;delete this.X};
function VH(a){if(!a.g){var b;b=a.X.app;if(b.g.A){var c=Cg(b.A),d=Pg(b.A);b.V=new mg(c.x,c.y,d.width,d.height);WH(b.B);xx(b.A,1);wx(b.A);b=b.A}else b=XH.getTag(void 0);a.g=b;eh(a.g,["video-stream","ad-video"])}return a.g};function YH(a,b){Y.call(this,["canvas"]);this.element.width=a;this.element.height=b;this.width=a;this.height=b;this.context=this.element.getContext("2d");this.g=0;this.A=null}B(YH,Y);YH.prototype.k=function(a,b){O(this.g);this.context&&(this.g=IA(y(this.k,this,a,b),b),a.call(this,new Date-this.A))};YH.prototype.L=function(){O(this.g);this.context=null;YH.H.L.call(this)};function ZH(a,b){YH.call(this,2*(a+2),2*(a+2));this.C=a;this.j=b;this.B=this.width/2;this.o=this.height/2}B(ZH,YH);var $H=3*Math.PI/2,aI=2*Math.PI;function bI(a,b){var c=a.app.j.j,d=["span","videowall-still-info-upnext",Z(0,"YTP_PLAYLIST_UP_NEXT")],e=["span","videowall-still-info-paused",Z(0,"YTP_AUTOPLAY_PAUSED")],g=[["div",["videowall-still-listlabel-episodic","videowall-still-listlabel"],["div","videowall-still-listlabel-episodic-heading",Z(0,"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","videowall-still-listlabel"],["span","videowall-still-listlabel-icon"],Z(0,"YTP_PLAYLIST"),["span","videowall-still-listlabel-length"," (",["span","","{{playlist_length}}"],")"]],["span",["videowall-still-listlabel-mix","videowall-still-listlabel"],["span","videowall-still-listlabel-mix-icon"],Z(0,"YTP_MIX"),["span","videowall-still-listlabel-length"," (50+)"]]];KH.call(this,c,
["a","videowall-still",{tabIndex:0,style:"{{background}}",href:"{{linkurl}}"},["span","videowall-still-featured-label",Z(0,"YTP_FEATURED")],["span","videowall-still-info",["span","videowall-still-info-bg",["span","videowall-still-info-content",d,["span","videowall-still-info-title","{{title}}"],["span","videowall-still-info-author","{{author}}"],["span","videowall-still-info-duration","{{duration}}"],["span","videowall-still-info-cancel"]].concat([e])]]].concat(g));this.X=a;this.G=b;this.C={};this.o=
this.A=null;this.B=0;this.g=this.k=this.j=null;this.listen("click",this.wx);this.listen("keypress",this.xx)}B(bI,KH);f=bI.prototype;
f.ri=function(a,b){bI.H.ri.call(this,a,b);this.C=a.session_data?rj(a.session_data,"&"):null;if(this.A=a.endscreen_autoplay_session_data?rj(a.endscreen_autoplay_session_data,"&"):null){if(!this.g){this.g=new Jy(["div","videowall-still-listlabel-autoplay",["div","videowall-still-listlabel-autoplay-label",["span","videowall-still-listlabel-autoplay-label-message",Z(0,"YTP_AUTOPLAY")]," ",["span","videowall-still-listlabel-autoplay-countdown","{{autoplay}}"]]]);T(this,this.g);this.g.Y(this.element);var c=
new $D(this.F);T(this,c);c.listen("click",this.zp,this);this.X.R().experiments.j?(c.Y(this.template.g["videowall-still-info-cancel"]),aE(c,"videowall-still-info-cancel-button")):(c.Y(this.g.g["videowall-still-listlabel-autoplay"],0),aE(c,"videowall-still-listlabel-autoplay-cancel"));c.ta(Z(0,"YTP_CANCEL"));c=new $D(this.F);T(this,c);c.listen("click",this.zp,this);c.Y(this.template.g["videowall-still-info-bg"],0);aE(c,"videowall-still-info-close");this.X.R().experiments.j?this.k=new ZH(44,48):this.k=
new ZH(40,35);T(this,this.k);P(this.k.K(),"autoplay-play-canvas");this.k.Y(this.element)}Oy(this.g,"autoplay_title",a.title||a.playlist_title||"");Oy(this.g,"autoplay_author",a.author||a.playlist_author||"")}this.o=a.list;Oy(this.template,"linkurl",cI(this.X.R(),this.videoId,this.o));var d=c=!1,e=!1;"1"==a.is_episodic?d=!0:this.o&&"RD"==Kv(this.o).type?e=!0:this.o&&(c=!0);Q(this.element,"videowall-still-featured",!!a.featured);Q(this.element,"videowall-still-list",c);Q(this.element,"videowall-still-episodic",
d);Q(this.element,"videowall-still-mix",e)};f.select=function(a){dI(this);eI(this.X.app,this.videoId,a?this.A:this.C,this.o||void 0,void 0)};
f.Dn=function(){var a=A()-this.B,b=this.k,c=a/1E4;b.context.clearRect(0,0,b.width,b.height);b.context.beginPath();b.context.arc(b.B,b.o,b.C+2,0,aI);b.context.fillStyle="rgba(0, 0, 0, 0.6)";b.context.fill();var d=Math.sqrt(3)/2*b.j;b.context.save();b.context.fillStyle="#fff";b.context.translate(b.B-b.j/3,b.o);b.context.beginPath();b.context.lineTo(0,d/2);b.context.lineTo(b.j/1.25,0);b.context.lineTo(0,-d/2);b.context.closePath();b.context.fill();b.context.restore();b.context.beginPath();b.context.arc(b.B,
b.o,b.C,$H,c*aI+$H,!1);b.context.lineWidth=4;b.context.strokeStyle="#fff";b.context.stroke();b=Math.max(1E4-a,0);Oy(this.g,"autoplay",Nf("YTP_AUTOPLAY_COUNTDOWN_2",{SECONDS_LEFT:Math.ceil(b/1E3)}));1E4<=a&&this.select(!0);this.j&&this.j.start()};function fI(a){a.j||(a.B=A(),a.j=new Tq(a.Dn,50,a),T(a,a.j),a.Dn());P(a.element,"videowall-still-autoplay");fh(a.element,"videowall-still-autoplay-paused")}function dI(a){a.j&&(xi(a.j),a.j=null)}
function gI(a){dI(a);a.B=A();a.Dn();eh(a.element,["videowall-still-autoplay","videowall-still-autoplay-paused"])}f.zp=function(a){a.preventDefault();hI(this)&&(this.G.log({cancelButtonClick:"1"}),this.publish("autonavchangerequest",1))};function iI(a){hI(a)&&(dI(a),Q(a.element,"videowall-still-autoplay",!1),a.publish("autonavchangerequest",1))}function hI(a){return dh(a.element,"videowall-still-autoplay")}f.wx=function(a){!1!==a.Tb.returnValue&&Sy(a)&&(this.select(!1),a.preventDefault())};
f.xx=function(a){switch(a.keyCode){case 13:case 32:this.select(),a.preventDefault()}};f.L=function(){iI(this);bI.H.L.call(this)};function jI(a,b,c){HH.call(this,a,b,"videowall-endscreen");this.G=c;this.g=[];this.o=this.k=null;this.B=!1;this.F=new Tq(z(P,this.element,"ytp-animate-tiles"),0);T(this,this.F);this.C=new Jy(["div","ytp-endscreen-content"]);T(this,this.C);this.C.Y(this.element);this.hide()}B(jI,HH);jI.B=96;jI.A=54;jI.j=1;jI.g=2;f=jI.prototype;
f.create=function(){jI.H.create.call(this);var a=this.j.getVideoData();a&&(this.k=a.M);this.kf();this.Oa.subscribe("onResize",this.kf,this);this.Oa.subscribe("videodatachange",this.M,this);this.Oa.subscribe("autonavchange",this.J,this)};f.destroy=function(){this.Oa.unsubscribe("onResize",this.kf,this);this.Oa.unsubscribe("videodatachange",this.M,this);zi(this.g);this.k=[];this.g=[];jI.H.destroy.call(this)};f.Vi=function(){return 1!=this.j.getVideoData().Kd};
function kI(a){a=a.j.R();return a.experiments.A&&"detailpage"==a.ca}function lI(a){return kI(a)&&a.j.R().experiments.j&&a.Vi()&&!a.o}
f.show=function(){jI.H.show.call(this);this.F.start();if(this.B||this.o&&this.o!=this.j.getVideoData().za)this.o=null,this.B=!1,this.kf();var a=!this.o&&!!this.g[0].A&&kI(this)&&this.Vi();kI(this)&&this.G.log({cancelButtonShow:a?"1":"0",state:this.Vi()?"enabled":"disabled"});a?(2==this.j.getVideoData().Kd?fI(this.g[0]):3==this.j.getVideoData().Kd&&gI(this.g[0]),this.g[0].subscribe("autonavchangerequest",this.I,this)):this.o=this.j.getVideoData().za};
f.hide=function(){jI.H.hide.call(this);this.A&&(this.g[0].unsubscribe("autonavchangerequest",this.I,this),iI(this.g[0]))};
f.kf=function(){if(this.k&&this.k.length){var a=this.element,b;t:{if(dh(this.j.Pa(),"ad-showing")&&(b=vd("ad-container"))){b=Pg(b).height+20;break t}b=0}vg(a,"marginBottom",b+"px");var a=Pg(this.element),c=jI.B,d=jI.A,e=a.width/a.height,g=c/d,h=b=0,k=Math.max(a.width/c,2),l=Math.max(a.height/d,2);lI(this)&&(k=l=Math.min(k,l));for(var p=this.k.length,r=Math.pow(jI.g,2),v=p*r,x=mI(this,0,l,k),ca=mI(this,1,l,k),v=v+(Math.pow(x,2)-r),v=v+(Math.pow(ca,2)-r);0<v&&(b<k||h<l);){var ba=b/jI.g,ja=h/jI.g,ta=
b<=k-jI.g&&v>=ja*r,Re=h<=l-jI.g&&v>=ba*r;if(ba/ja*g>e&&Re)v-=ba*r,h+=jI.g;else if(ta)v-=ja*r,b+=jI.g;else if(Re)v-=ba*r,h+=jI.g;else break}g=!1;k=jI.g+x;v>=3*r&&6>=p*r-v&&(h>=k||b>=k)&&ca<=jI.g&&(g=!0);c*=b;p=h*d;d=1;d=c/p<e?a.height/p:a.width/c;d=Math.min(d,jI.o);c*=d;p*=d;c*=Ic(a.width/c||1,1,jI.k);p*=Ic(a.height/p||1,1,jI.k);c=Math.floor(Math.min(a.width,c));p=Math.floor(Math.min(a.height,p));lI(this)&&(c=a.width);e=this.C.K();Mg(e,c,p);vg(e,{marginLeft:c/-2+"px",marginTop:p/-2+"px"});d=c+jI.j;
r=p+jI.j;c=0;v=!1;for(k=0;k<b;k++)for(l=0;l<h;l++)if(ja=ca>jI.g&&1<=c&&!v?c+1:c,ba=0,g&&k>=b-jI.g&&l>=h-jI.g?ba=1:0==l%jI.g&&0==k%jI.g&&(l<x&&k<x?0==l&&0==k&&(ba=x):ca>jI.g&&l>=h-ca&&k>=b-ca?l==h-ca&&k==b-ca&&(v=!0,ja=1,ba=ca):ba=jI.g),0!=ba){p=this.g[c];p||(p=new bI(this.j,this.G),this.g[c]=p,ta=p.K(),e.appendChild(ta));p.ri(this.k[ja],2<ba);var ja=Math.floor(r*l/h),ta=Math.floor(d*k/b),Re=Math.floor(r*(l+ba)/h)-ja-jI.j,ke=Math.floor(d*(k+ba)/b)-ta-jI.j;lI(this)&&(ta=0,ke=a.width);Ag(p.K(),ta,ja);
Mg(p.K(),ke,Re);vg(p.K(),"transitionDelay",(l+k)/50+"s");Q(p.K(),"videowall-still-mini",1==ba);Q(p.K(),"videowall-still-takeover",0==c&&lI(this));c++}for(a=this.g.length-1;a>=c;a--)p=this.g[a],Ld(p.K()),xi(p);this.g.length=c}};jI.o=1.42;jI.k=1.21;jI.prototype.M=function(){var a=this.j.getVideoData().M;this.k!=a&&(this.k=a,this.kf())};
jI.prototype.J=function(a){var b=this.g[0]&&hI(this.g[0]);1==a?(this.B=!1,this.o=this.j.getVideoData().za,b&&iI(this.g[0]),this.g[0]&&this.kf()):(this.B=!0,b&&(2==a?fI(this.g[0]):3==a&&gI(this.g[0])))};jI.prototype.I=function(a){this.J(a);this.publish("autonavchangerequest",a)};function mI(a,b,c,d){var e=a.j.R().experiments,g=a.k.length;return 0==b&&lI(a)?jI.g*Math.floor(Math.min(c,d)/jI.g):0==b&&kI(a)&&!e.j&&c>=2*jI.g&&d>2*jI.g||0==b&&c>=3*jI.g&&d>=3*jI.g&&1<=g&&1==a.k[0].episodic?2*jI.g:jI.g};function nI(a){Px.call(this,a);Mf({});this.va="endscreen";this.oc="end";this.j=null;var b=a.R();oI(a)?this.j=new jI(this.g,this.O,this):b.qg?(a=b.experiments.G,b=new NH(this.g,this.O,a),a&&R(b.g.K(),"click",y(this.qC,this)),this.j=b):this.j=new HH(this.g,this.O);this.j.Y(this.g.Pa())}B(nI,Px);function pI(a){return qI(a.R())&&1==uw(a.app).getPlayerType()}function oI(a){a=a.R();return a.xc&&!a.qg}f=nI.prototype;f.Fa=function(a){return pI(a)};
f.create=function(){nI.H.create.call(this);rI(this);this.g.getVideoData().subscribe("dataupdated",this.cs,this)};f.destroy=function(){this.g.getVideoData().unsubscribe("dataupdated",this.cs,this);Qx(this);this.j.A&&this.j.destroy();nI.H.destroy.call(this)};f.load=function(){nI.H.load.call(this);this.j.show();if(this.g.R().qg&&.01>Math.random()){var a=this.g.R().experiments.G;this.log({trailerEndscreenShow:1,watchNext:a?1:0})}};f.unload=function(){nI.H.unload.call(this);this.j.hide()};
f.Ec=function(a){nI.H.Ec.call(this,a);var b=this.g.getVideoData(),c=!oI(this.g)||!(!b.M||!b.M.length);this.g.R();var b=Gv(b,"ypc_module"),d=sI(this.g.app);!c||b||d||(this.j.A||this.j.create(),"load"==a.getId()&&this.load())};f.Wc=function(a){"load"==a.getId()&&this.loaded&&this.unload();nI.H.Wc.call(this,a)};f.cs=function(){Qx(this);rI(this)};f.qC=function(a){var b=this.j.g.videoId,b=cI(this.g.R(),b,null);Ux(this,b,a.ctrlKey)};
function rI(a){var b=Math.max(1E3*(a.g.getVideoData().lengthSeconds-10),0),b=new Gx(b,2147483647,{id:"preload"}),c=new Gx(2147483647,2147483647,{id:"load",priority:6});a.Id(b,c)}function tI(a){return pI(a)?new nI(a):null};function uI(){Y.call(this,["div","ytp-playlist-tray-index-length",["span","ytp-playlist-tray-index","{{index}}"]," / ",["span","ytp-playlist-tray-length","{{length}}"]])}B(uI,Y);uI.prototype.Zi=function(a){Oy(this.template,"index",a+1)};function vI(a){qF.call(this,a,"ytp-button-expand",Z(0,"YTP_ST_EXPAND"),"ytp-button-collapse",Z(0,"YTP_ST_COLLAPSE"));bE(this,3050);this.element.setAttribute("aria-haspopup",!0);this.ta([["div","ytp-button-playlist-icon"],["div","ytp-button-playlist-text",Z(0,"YTP_PLAYLIST")]])}B(vI,qF);function wI(a){Y.call(this,["div","ytp-playlist-tray-controller"]);this.g=new vI(a);this.g.Y(this.template.K());T(this,this.g);this.j=new uI;this.j.Y(this.template.K());T(this,this.j)}B(wI,Y);function xI(a,b){var c=Fv(a,"default.jpg");Y.call(this,["div","ytp-playlist-tray-item",{tabIndex:3910,"aria-label":a.title,role:"menuitemradio"},["span","ytp-playlist-tray-item-index",b+1],["span","ytp-playlist-tray-item-now-playing","\u25b6"],["img","ytp-playlist-tray-item-thumbnail",{src:c}],["span","ytp-playlist-tray-item-title",a.title],["span","ytp-playlist-tray-item-author",a.author]]);this.g=b;this.listen("keypress",this.j)}B(xI,Y);
xI.prototype.Zi=function(a){a=this.g==a;Q(this.element,"ytp-playlist-tray-item-current",a);this.element.setAttribute("aria-checked",a)};xI.prototype.j=function(a){if(13==a.keyCode||32==a.keyCode)a.preventDefault(),this.Sb("click")};function yI(){GH.call(this,["div","ytp-playlist-tray-tray",{role:"menu"}]);this.g=null;this.j=[]}B(yI,GH);function zI(a,b){a.g&&a.g.unsubscribe("shuffle",a.k,a);a.g=b;a.g.subscribe("shuffle",a.k,a);a.k()}yI.prototype.k=function(){zi(this.j);this.j=[];Jd(this.element);for(var a=0;a<=this.g.uc-1;++a){var b=Xv(this.g,a);b&&(b=new xI(b,a),b.Zi(this.g.Ua),this.j.push(b),b.listen("click",y(this.o,this,a)),b.Y(this.element))}};yI.prototype.o=function(a){this.publish("playvideoat",a)};
yI.prototype.L=function(){zi(this.j);this.j=[];Jd(this.element);yI.H.L.call(this)};function AI(a){Px.call(this,a);var b=a.Pa();this.D=a.app.j.j;this.B=!1;this.k=this.o=null;this.C=vd("ytp-button-playlist",b);R(this.C,"click",y(this.mp,this));this.j=this.A=null}B(AI,Px);f=AI.prototype;f.va="playlist";
f.create=function(){AI.H.create.call(this);BI(this,this.g.Qc());this.A=new Jy(["div",["ytp-playlist-tray-container","ytp-player-content"]]);this.A.Y(this.g.Pa());this.k=new yI;this.k.subscribe("playvideoat",this.cq,this);this.k.Y(this.A.K(),0);this.j=new wI(this.D);this.j.Y(vd("html5-title",void 0),0);this.j.g.listen("click",this.mp,this);this.subscribe("fullscreentoggled",this.Aq,this);this.subscribe("videodatachange",this.Cq,this);this.subscribe("clearvideooverlays",this.Bq,this);this.Ci()};
f.Ci=function(){var a=this.g.vr(),b=this.j.j;null!=a?b.show():b.hide();this.j.j.Zi(a);a=this.j.j;b=this.g.Qc();Oy(a.template,"length",b.uc)};f.destroy=function(){AI.H.destroy.call(this);BI(this,null);this.unsubscribe("fullscreentoggled",this.Aq,this);this.unsubscribe("videodatachange",this.Cq,this);this.unsubscribe("clearvideooverlays",this.Bq,this);Ld(this.A.K());this.k.dispose();this.k=null;this.A.dispose();this.A=null;Ld(this.j.K());this.j.dispose();this.j=null};
f.load=function(){this.publish("command_clear_video_overlays",!0);AI.H.load.call(this);this.B||(zI(this.k,this.o),this.B=!0);for(var a=this.k,b=0;b<a.j.length;b++)a.j[b].Zi(a.g.Ua);rF(this.j.g)};f.unload=function(){AI.H.unload.call(this);this.B=!1;sF(this.j.g)};f.Bq=function(){this.loaded&&this.unload()};f.cq=function(a){this.g.Fm(a);this.publish("command_clear_video_overlays",!1)};f.mp=function(){this.loaded?this.publish("command_clear_video_overlays",!1):this.load()};
f.Aq=function(a){var b=this.g.R().ca;this.loaded&&!a&&"detailpage"==b&&this.publish("command_clear_video_overlays",!1)};f.Cq=function(){BI(this,this.g.Qc());this.B&&zI(this.k,this.o);this.Ci()};function BI(a,b){a.o&&a.o.unsubscribe("shuffle",a.Ci,a);a.o=b;a.o&&a.o.subscribe("shuffle",a.Ci,a)}AI.Fa=function(a){return!!a.Qc()&&!0};AI.prototype.Fa=function(a){return AI.Fa(a)};AI.prototype.Em=function(a){return!AI.Fa(a)};AI.g=function(a){return AI.Fa(a)?new AI(a):null};
AI.prototype.L=function(){this.k.unsubscribe("playvideoat",this.cq,this);Fh(this.C);AI.H.L.call(this)};function CI(a,b){S.call(this);this.g=a;this.j=!!b}B(CI,S);function DI(a,b,c){if(c)if(a.j)c({id:b,fmt_list:[{itag:18,lmt:14200992E5}]});else{var d;a.g&&(d=EI(a.g));d&&b?(d=[d,"cache/videos",b,"metadata"].join("/"),Fj(d,{format:"JSON",method:"GET",context:a,timeout:600,Qa:function(a,d){c(d);FI("success",{v:b})},onError:function(){FI("error",{v:b});c({})},pe:function(){FI("timeout",{v:b});GI("__notfound__");c({})}})):c({})}}
function FI(a,b){var c={a:"spacecast",module:"cache",request:"meta",status:a};bc(c,b);hB(He(c))}CI.prototype.L=function(){this.g=null;CI.H.L.call(this)};function HI(a){S.call(this);(this.g=a)&&GI("http://"+a)}B(HI,S);function EI(a){var b;(b=(b=ej("yt-spacecast-uri"))&&b.hasOwnProperty("uri")?b.uri:null)?"__notfound__"==b&&(b=null):b=a.g?"http://"+a.g:null;return b}function GI(a){var b=ej("yt-spacecast-uri");b||(b={});a?b.uri=a:delete b.uri;cj("yt-spacecast-uri",b)};function II(){S.call(this);this.j=this.g=null}B(II,S);da(II);II.prototype.init=function(a){this.g||(this.g=new HI(a||null),this.j=new CI(this.g))};II.prototype.L=function(){this.j&&(this.j.dispose(),this.j=null);this.g&&(this.g.dispose(),this.g=null);II.H.L.call(this);delete II.Eb};function JI(a){Px.call(this,a);this.oc=this.va="spacecast";this.j=null}B(JI,Px);f=JI.prototype;f.Fa=function(){return!!this.g.getVideoData().ib};function KI(a){return a.getVideoData().ib?new JI(a):null}f.create=function(){JI.H.create.call(this);var a=this.g.getVideoData().ib,b=II.getInstance();b&&b.init(a);this.j=b;this.load()};f.destroy=function(){JI.H.destroy.call(this);this.j=null};
f.load=function(){JI.H.load.call(this);var a=this.g.getVideoData().videoId,b=this.j.j,c=A(),c=y(this.FC,this,a,c),d=window.spacecastMeta;d&&d.id&&d.id==a?(c(d),FI("prefetch",{v:a})):DI(b,a,c)};f.FC=function(a,b,c){b=A()-b;var d=0;if(c){var e=c.id;c=c.fmt_list;if(e&&c){var g={};E(c,function(a){a.itag&&(g[a.itag.toString()]=!0)});if(c=LI(this,EI(this.j.g),e,g))d=this.g.getVideoData(),d.Z=c,xv(d),this.g.Dm("auto"),d=1}}Rx(this);hB(He({a:"spacecast",module:"player",v:a,docid:a,cached:d,"cache-latency":b}))};
function LI(a,b,c,d){if(!b)return null;a=a.g.getVideoData();a=ov(a.ee);a=eb(a,function(a){return!!d[a.itag]});if(!a.length)return null;var e=vj(b)||"",g=Number(ze(b)[4]||null)||null;return F(a,function(a){var b=M(M(Te(Qe(Pe(lf(a.url),"http"),e),g),"orig_host",wj(a.url)),"scid",c);a.url=b.toString();return He(a)}).join(",")};function MI(){var a=Nc,b;if(b=xt())t:{if(navigator.plugins&&0<navigator.plugins.length)for(b=0;b<navigator.plugins.length;b++)if(0<=navigator.plugins[b].name.indexOf("NVIDIA 3D Vision")){b=!0;break t}b=!1}if(b)t:{var c=navigator.userAgent.match(/Firefox[\/\s](\d+\.\d+)/);if(c&&1<c.length&&4<=c[1]){c=document.createElement("embed");c.setAttribute("id","NvImageDetectionFFID");c.setAttribute("style","visibility: hidden");c.setAttribute("width",25);c.setAttribute("height",25);c.setAttribute("type","image/jps");
Id(document.documentElement,c);c=rd("NvImageDetectionFFID");try{if(null!=c){b=27527<=c.NvGetDriverVersion();break t}}catch(d){}}b=!1}return b||!(!a||-1==a.indexOf("Sony"))};function NI(a){ZD.call(this);this.label=Z(0,"YTP_THREED_SHORT");this.element=new cE(a,[Z(0,"YTP_ON"),Z(0,"YTP_OFF")]);T(this,this.element);this.element.bb(this.label);eE(this.element,2100);this.priority=10;this.A=!0;this.Ea(1)}B(NI,ZD);NI.prototype.F=function(){this.element.Sb("select")};NI.prototype.getSelected=function(){return this.element.getSelected()};NI.prototype.Ea=function(a){this.element.Ea(a)};function OI(a){Y.call(this,["span"]);this.element.innerHTML=a}B(OI,Y);function PI(a){var b=["div",["ytp-dialog","html5-stop-propagation"],["div","ytp-dialog-title",Z(0,"YTP_THREED_HTML5_WARNING_DIALOG_TITLE")],["div","ytp-dialog-body","{{content}}"],["div","ytp-dialog-buttons","{{buttons}}"]];Y.call(this,b);b=Z(0,"YTP_THREED_HTML5_WARNING_DIALOG_CHANGE_MODE");this.g=new $D(a,"ytp-dialog-button",b);T(this,this.g);this.g.ta(b);b=Z(0,"YTP_CLOSE");this.j=new $D(a,"ytp-dialog-button",b);this.j.ta(b);T(this,this.j);this.template.update({content:new OI(Z(0,"YTP_THREED_HTML5_WARNING_DIALOG_MESSAGE",
{BEGIN_LINK:'<a href="//support.google.com/youtube/bin/answer.py?answer=1229982">',END_LINK:"</a>"})),buttons:[this.g,this.j]})}B(PI,vF);function QI(a){Px.call(this,a);Mf({YTP_THREED_HTML5_WARNING_DIALOG_TITLE:"\u0410\u043f\u043f\u0430\u0440\u0430\u0442\u043d\u043e\u0435 \u043e\u0431\u0435\u0441\u043f\u0435\u0447\u0435\u043d\u0438\u0435 \u0434\u043b\u044f HTML5 3D \u043d\u0435 \u043e\u0431\u043d\u0430\u0440\u0443\u0436\u0435\u043d\u043e",YTP_THREED_HTML5_WARNING_DIALOG_MESSAGE:"\u041f\u0440\u043e\u0447\u0442\u0438\u0442\u0435 \u0441\u043f\u0440\u0430\u0432\u043a\u0443 \u043e $BEGIN_LINK\u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0435 \u043f\u0440\u043e\u0441\u043c\u043e\u0442\u0440\u0430 3D-\u0432\u0438\u0434\u0435\u043e \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e HTML5$END_LINK \u0438\u043b\u0438 \u0438\u0437\u043c\u0435\u043d\u0438\u0442\u0435 \u0440\u0435\u0436\u0438\u043c\u044b \u043f\u0440\u043e\u0441\u043c\u043e\u0442\u0440\u0430 3D.",
YTP_THREED_HTML5_WARNING_DIALOG_CHANGE_MODE:"\u0418\u0437\u043c\u0435\u043d\u0438\u0442\u044c \u0440\u0435\u0436\u0438\u043c \u043f\u0440\u043e\u0441\u043c\u043e\u0442\u0440\u0430 3D-\u0432\u0438\u0434\u0435\u043e"});this.j=new NI(cy(this));T(this,this.j);this.j.Ea(1);this.j.listen("change",this.DB,this);this.j.listen("select",this.EB,this);this.k=new PI(cy(this));T(this,this.k);this.k.g.listen("click",this.Lr,this);this.k.j.listen("click",this.ng,this)}B(QI,Px);f=QI.prototype;f.vn="threeDModuleData";
f.va="threed";f.oc="threed";f.create=function(){RI(this.g.app,void 0);fy(this,this.j);QI.H.create.call(this)};f.destroy=function(){gy(this,this.j);RI(this.g.app,!0);QI.H.destroy.call(this)};function SI(a){return QI.prototype.Fa(a)?new QI(a):null}f.Fa=function(a){a=a.getVideoData();return MI()?!!a.ma||!!a.ys:!1};function TI(a,b){if(a.g.getVideoData().Yg!=b)if(Tx(a),MI()){var c=a.g.app,d=uw(c);d.g.g&&d.g.g.g||(d.g.Yg=!d.g.Yg,xv(d.g),vw(d,"r"));RI(c)}else b&&(Tx(a,a.k),a.j.Ea(1),hy(a))}
f.Lr=function(){Ux(this,"/select_3d_mode?video_id="+this.g.getVideoData().videoId)};f.DB=function(){0==this.j.getSelected()?TI(this,!0):TI(this,!1)};f.EB=function(){hy(this);this.Lr()};function UI(a){ZD.call(this);this.g=2;this.label=Z(0,"YTP_THREED_SHORT");this.menu=new GF(a,y(this.k,this),y(this.B,this));T(this,this.menu);this.element=new BF(a,Z(0,"YTP_WEBGL_ANAGLYPH"),this.menu);T(this,this.element);DF(this.element,100);HF(this.menu,[0,1,2]);a=2100;KF(this.menu,a++);a=a++;bE(this.element.g,a);VI(this,this.g);this.priority=1;this.o=!0}B(UI,ZD);function VI(a,b){a.g=b;a.menu.Ea(b);a.element.Md(a.k(b))}
UI.prototype.k=function(a){switch(a){case 0:return Z(0,"YTP_OFF");case 1:return Z(0,"YTP_WEBGL_3D_2D");case 2:return Z(0,"YTP_WEBGL_3D_ANAGLYPH")}return"."};UI.prototype.B=function(a){this.element.Pd();VI(this,a);this.element.Sb("change")};function WI(a,b,c){this.A=null;this.o=-1;this.k=a.getVideoData().ka;0!=this.k||"LR"!=a.getVideoData().Ac("yt3d:enable")&&"true"!=a.getVideoData().Ac("yt3d:enable")||(this.k=1);this.g=new UI(a.app.j.j);this.g.listen("change",this.Gy,this);this.g.listen("change",c,this);this.j=null;this.B=!0;fy(b,this.g);T(b,this.g)}function XI(a){if(MI())return!1;a=a.getVideoData();var b;(b=1==a.ka||2==a.ka)||(b=a.Ac["3D"])||(a=a.Ac("yt3d:enable"),b="true"==a||"LR"==a||"RL"==a);return b?!0:!1}f=WI.prototype;f.Oj=function(){return"attribute vec3 aVertPos;attribute vec2 aTexCrd;varying vec2 vTexCrd;void main(void) {  vTexCrd = aTexCrd;  gl_Position = vec4(aVertPos, 1.0);}"};
f.Nj=function(){return"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 == 2)\n    anaglyph(vTexCrd.x, vTexCrd.y);\n  else if (mode == 0)\n    gl_FragColor = texture2D(uSplr, vTexCrd);\n  else if (mode == 1)\n    gl_FragColor = texture2D(uSplr, vec2(vTexCrd.x * 0.5, vTexCrd.y));\n}"};
f.Pj=function(a,b){b.g=a.getUniformLocation(b,"uSplr");a.uniform1i(b.g,0);this.o=a.getAttribLocation(b,"aTexCrd");a.enableVertexAttribArray(this.o);this.j=a.getUniformLocation(b,"mode");a.uniform1i(this.j,this.g.g);var c=1==this.k;a.uniformMatrix4fv(a.getUniformLocation(b,c?"mLt":"mRt"),!1,new Float32Array([.456,-.04,-.015,0,.5,-.038,-.021,0,.176,-.016,-.005,0,0,0,0,1]));a.uniformMatrix4fv(a.getUniformLocation(b,c?"mRt":"mLt"),!1,new Float32Array([-.043,.378,-.072,0,-.088,.734,-.113,0,0,-.018,1.226,
0,0,0,0,1]))};f.Qi=function(a){var b=a.createBuffer();a.bindBuffer(a.ARRAY_BUFFER,b);a.bufferData(a.ARRAY_BUFFER,new Float32Array([0,1,1,1,0,0,1,0]),a.STATIC_DRAW);b.g=2;b.jj=4;this.A=b};f.Ri=function(a){a.bindBuffer(a.ARRAY_BUFFER,this.A);a.vertexAttribPointer(this.o,this.A.g,a.FLOAT,!1,0,0)};f.hj=function(){};f.bj=function(a,b){this.B&&a.uniform1i(this.j,this.g.g);a.texImage2D(a.TEXTURE_2D,0,a.RGBA,a.RGBA,a.UNSIGNED_BYTE,b);a.drawArrays(a.TRIANGLE_STRIP,0,4)};f.gj=function(){return!0};
f.Gy=function(){this.B=!0};f.destroy=function(a){gy(a,this.g)};function YI(){this.g=new Float32Array(16);this.k=new Float32Array(16);this.j=new Float32Array(16);this.identity()}YI.prototype.identity=function(){this.g.set([1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1])};YI.prototype.get=function(){return this.g};
function ZI(a,b){for(var c=0;16>c;c+=4)a.j[c+0]=a.g[c+0]*b[0]+a.g[c+1]*b[4]+a.g[c+2]*b[8]+a.g[c+3]*b[12],a.j[c+1]=a.g[c+0]*b[1]+a.g[c+1]*b[5]+a.g[c+2]*b[9]+a.g[c+3]*b[13],a.j[c+2]=a.g[c+0]*b[2]+a.g[c+1]*b[6]+a.g[c+2]*b[10]+a.g[c+3]*b[14],a.j[c+3]=a.g[c+0]*b[3]+a.g[c+1]*b[7]+a.g[c+2]*b[11]+a.g[c+3]*b[15];c=a.g;a.g=a.j;a.j=c};function $I(){this.j=new YI;this.C=this.A=this.o=null;this.B=!1;this.g=this.k=0}f=$I.prototype;f.Oj=function(){return"attribute vec3 aVertPos;\nvarying vec3 pos;\nvoid main() {\n  gl_Position = vec4(aVertPos.xyz, 1.0);\n  pos = aVertPos;\n}"};f.Nj=function(){return"precision mediump float;varying vec3 pos;uniform sampler2D uSplr;uniform mat4 uVMat;uniform float tanFOVx;uniform float tanFOVy;\n#define INV_PI 0.3183\nvoid main() {  vec3 ray = vec3(pos.x * tanFOVx, pos.y * tanFOVy, -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);}"};
f.Pj=function(a,b){this.o=a.getUniformLocation(b,"uVMat");a.uniformMatrix4fv(this.o,!1,this.j.get());a.uniform1f(a.getUniformLocation(b,"tanFOVx"),Math.tan(16/9*.35));a.uniform1f(a.getUniformLocation(b,"tanFOVy"),Math.tan(.35));this.C=a.getUniformLocation(b,"uSplr");a.uniform1i(this.C,0)};f.Qi=function(a){this.A=a.createBuffer();a.bindBuffer(a.ELEMENT_ARRAY_BUFFER,this.A);a.bufferData(a.ELEMENT_ARRAY_BUFFER,new Uint16Array([0,1,2,1,2,3]),a.STATIC_DRAW)};f.Ri=function(){};
f.hj=function(a){var b=!1;switch(a.keyCode){case 37:case 97:this.k+=.1;b=!0;a.preventDefault();break;case 39:case 100:this.k-=.1;b=!0;a.preventDefault();break;case 38:case 119:this.g+=.1;b=!0;a.preventDefault();break;case 40:case 115:this.g-=.1,b=!0,a.preventDefault()}if(b){this.j.identity();var b=this.j,c=this.g,d=Math.sin(c),c=Math.cos(c);b.k.set([1,0,0,0,0,c,d,0,0,-d,c,0,0,0,0,1]);ZI(b,b.k);b=this.j;c=this.k;d=Math.sin(c);c=Math.cos(c);b.k.set([c,0,-d,0,0,1,0,0,d,0,c,0,0,0,0,1]);ZI(b,b.k);a.preventDefault();
this.B=!0}};f.bj=function(a,b,c,d){this.B&&(a.uniformMatrix4fv(this.o,!1,this.j.get()),this.B=!1);a.clearColor(0,0,0,1);a.clear(a.DEPTH_BUFFER_BIT|a.COLOR_BUFFER_BIT);a.activeTexture(a.TEXTURE0);a.bindTexture(a.TEXTURE_2D,d);a.texImage2D(a.TEXTURE_2D,0,a.RGBA,a.RGBA,a.UNSIGNED_BYTE,b);a.bindBuffer(a.ELEMENT_ARRAY_BUFFER,this.A);a.drawElements(a.TRIANGLES,6,a.UNSIGNED_SHORT,0)};f.gj=function(){return!1};f.destroy=function(){};function aJ(){this.j=null;this.g=-1}f=aJ.prototype;f.Oj=function(){return"attribute vec3 aVertPos;\nattribute vec2 aTexCrd;\nvarying vec2 vTexCrd;\nvoid main(void) {\n  vTexCrd = aTexCrd;\n  gl_Position = vec4(aVertPos, 1.0);\n}"};f.Nj=function(){return"precision mediump float;\nuniform sampler2D uSplr;\nvarying vec2 vTexCrd;\nvoid main(void) {\n  gl_FragColor = texture2D(uSplr, vTexCrd);\n}"};
f.Pj=function(a,b){b.g=a.getUniformLocation(b,"uSplr");a.uniform1i(b.g,0);this.g=a.getAttribLocation(b,"aTexCrd");a.enableVertexAttribArray(this.g)};f.Qi=function(a){var b=a.createBuffer();a.bindBuffer(a.ARRAY_BUFFER,b);a.bufferData(a.ARRAY_BUFFER,new Float32Array([0,1,1,1,0,0,1,0]),a.STATIC_DRAW);b.g=2;b.jj=4;this.j=b};f.Ri=function(a){a.bindBuffer(a.ARRAY_BUFFER,this.j);a.vertexAttribPointer(this.g,this.j.g,a.FLOAT,!1,0,0)};f.hj=function(){};
f.bj=function(a,b){a.texImage2D(a.TEXTURE_2D,0,a.RGBA,a.RGBA,a.UNSIGNED_BYTE,b);a.drawArrays(a.TRIANGLE_STRIP,0,4)};f.gj=function(){return!0};f.destroy=function(){};function bJ(){this.o=null;this.k=-1;this.g=43758.5453;this.j=null}f=bJ.prototype;f.Oj=function(){return"attribute vec3 aVertPos;\nattribute vec2 aTexCrd;\nvarying vec2 vTexCrd;\nvoid main(void) {\n  vTexCrd = aTexCrd;\n  gl_Position = vec4(aVertPos, 1.0);\n}"};f.Nj=function(){return"precision mediump float;\nuniform sampler2D uSplr;\nuniform float seed;\nvarying vec2 vTexCrd;\nfloat noise(float n)\n{\n    return fract(sin(n) * seed);\n}\nvoid main(void) {\n  vec4 col = vec4(texture2D(uSplr,\n      vec2(vTexCrd.x, 1.0 - vTexCrd.y)).xyz, 1.0);\n  float amt = 0.035;\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  float noiseL = noise(gl_FragCoord.x + gl_FragCoord.y * 2000.0) * amt;\n  col.xyz = col.xyz + noiseL;\n  gl_FragColor = col;\n}"};
f.Pj=function(a,b){b.g=a.getUniformLocation(b,"uSplr");a.uniform1i(b.g,0);this.j=a.getUniformLocation(b,"seed");a.uniform1f(this.j,this.g);this.k=a.getAttribLocation(b,"aTexCrd");a.enableVertexAttribArray(this.k)};f.Qi=function(a){var b=a.createBuffer();a.bindBuffer(a.ARRAY_BUFFER,b);a.bufferData(a.ARRAY_BUFFER,new Float32Array([0,0,1,0,0,1,1,1]),a.STATIC_DRAW);b.g=2;b.jj=4;this.o=b};f.Ri=function(a){a.bindBuffer(a.ARRAY_BUFFER,this.o);a.vertexAttribPointer(this.k,this.o.g,a.FLOAT,!1,0,0)};f.hj=function(){};
f.bj=function(a,b){this.g+=1;a.uniform1f(this.j,this.g);a.texImage2D(a.TEXTURE_2D,0,a.RGBA,a.RGBA,a.UNSIGNED_BYTE,b);a.drawArrays(a.TRIANGLE_STRIP,0,4)};f.gj=function(){return!0};f.destroy=function(){};function cJ(a,b,c,d){this.N=c;this.j=a.app.j.g;this.D=10;this.A=!0;this.M=this.G=this.I=this.k=this.o=null;this.C=b;this.g=null;this.O=a;this.F=d}
function dJ(a){a.o=document.createElement("canvas");if(!a.o)return 1;a.N(a.o);try{a.k=a.o.getContext("webgl")}catch(b){return 2}if(null==a.k)return 3;eJ(a);var c=fJ(a);if(0!=c)return c;var c=a.k,d=c.createBuffer();c.bindBuffer(c.ARRAY_BUFFER,d);c.bufferData(c.ARRAY_BUFFER,new Float32Array([-1,-1,0,1,-1,0,-1,1,0,1,1,0]),c.STATIC_DRAW);a.G=d;a.g.Qi(c);c=a.k;d=c.createTexture();c.bindTexture(c.TEXTURE_2D,d);c.texParameteri(c.TEXTURE_2D,c.TEXTURE_MIN_FILTER,c.NEAREST);c.texParameteri(c.TEXTURE_2D,c.TEXTURE_MAG_FILTER,
c.LINEAR);c.texParameteri(c.TEXTURE_2D,c.TEXTURE_WRAP_S,c.CLAMP_TO_EDGE);c.texParameteri(c.TEXTURE_2D,c.TEXTURE_WRAP_T,c.CLAMP_TO_EDGE);a.I=d;c=a.k;c.clearColor(0,0,0,1);c.clear(c.COLOR_BUFFER_BIT|c.DEPTH_BUFFER_BIT);c.bindBuffer(c.ARRAY_BUFFER,a.G);c.vertexAttribPointer(a.J,3,c.FLOAT,!1,0,0);c.activeTexture(c.TEXTURE0);c.bindTexture(c.TEXTURE_2D,a.I);a.g.Ri(c);a.B();a.j.crossOrigin="use-credentials";return 0}
function fJ(a){var b=a.k,c=b.createShader(b.VERTEX_SHADER);b.shaderSource(c,a.g.Oj());b.compileShader(c);if(!b.getShaderParameter(c,b.COMPILE_STATUS))return 4;var d=b.createShader(b.FRAGMENT_SHADER);b.shaderSource(d,a.g.Nj());b.compileShader(d);if(!b.getShaderParameter(c,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.J=b.getAttribLocation(e,"aVertPos");b.enableVertexAttribArray(a.J);a.M=e;a.g.Pj(b,a.M);return 0}cJ.prototype.B=function(){this.k&&(this.j.videoWidth||this.j.videoHeight)&&(eJ(this),this.g.bj(this.k,this.j,this.G,this.I));this.A&&requestAnimationFrame(this.B.bind(this))};
function eJ(a){if(0==a.D&&null!=a.j.offsetParent){if(a.g.gj())var b=a.j.offsetWidth,c=a.j.offsetHeight,d=a.j.offsetTop;else b=a.j.offsetParent.offsetWidth,d=a.j.offsetParent.offsetHeight;c=9*b/16;a.o.top=d;a.o.width=b;a.o.height=c;a.k.j=b;a.k.g=c;a.k.viewport(0,0,b,c)}}cJ.prototype.P=function(){this.A||requestAnimationFrame(this.B.bind(this));hy(this.F)};function gJ(a){a.o&&(Ld(a.o),a.o=null);a.k=null;a.A=!1;a.g&&a.g.destroy(a.F);a.g=null;a.j.removeAttribute("crossorigin");a.j.hidden=!1;a.D=10};function hJ(a){Px.call(this,a);this.Si=!0;this.va="webgl";this.subscribe("onResize",this.JC,this);this.subscribe("onKeyPress",this.IC,this);this.subscribe("onStateChange",this.Oc,this);this.A=K("DIV",iJ.HC);Sx(this,this.A);this.o=a;a=window.localStorage["yt-html5-player-module-webgl-shadertype"];if(void 0==a||null==a)a="",XI(this.o)?a="Anaglyph3D":this.o.R().experiments.spherical?a="Spherical":this.o.R().experiments.D&&(a="NoOp");this.j=new cJ(this.o,a.toString(),y(this.A.appendChild,this.A),this);
this.k=!1}B(hJ,Px);var iJ={HC:"video-annotations"};hJ.g=function(a){return hJ.Fa(a)?new hJ(a):null};hJ.prototype.Fa=function(){return hJ.Fa(this.g)};hJ.Fa=function(a){return XI(a)&&a.R().experiments.wa||a.R().experiments.spherical||a.R().experiments.D?!0:!1};f=hJ.prototype;f.JC=function(){this.k&&eJ(this.j)};f.IC=function(a){if(this.k){var b=this.j;b.g&&(b.g.hj(a),b.A||requestAnimationFrame(b.B.bind(b)))}};f.Oc=function(a){if(this.k){var b=this.j,c=b.A;b.A=X(a.state,8);b.A&&!c&&requestAnimationFrame(b.B.bind(b))}};
f.L=function(){hJ.H.L.call(this)};f.create=function(){var a=this.j;a.g=null;null!=a.C&&("Anaglyph3D"==a.C?a.g=new WI(a.O,a.F,a.P.bind(a)):"Spherical"==a.C?a.g=new $I:"WhiteNoise"==a.C?a.g=new bJ:"NoOp"==a.C&&(a.g=new aJ));a.g&&(a.D=dJ(a),0==a.D?a.j.hidden=!0:(a.O.app.k.Th(new mu("html5.missingapi.webgl",!1)),gJ(a)));this.k=null!=this.j.g;hJ.H.create.call(this)};f.destroy=function(){gJ(this.j);this.k=!1;hJ.H.destroy.call(this)};function jJ(a){Px.call(this,a);Mf({YTP_YPC_START_RENTAL_HEADER:"\u041d\u0430\u0447\u0430\u0442\u044c \u0432\u043e\u0441\u043f\u0440\u043e\u0438\u0437\u0432\u0435\u0434\u0435\u043d\u0438\u0435 \u0432\u0438\u0434\u0435\u043e, \u0432\u0437\u044f\u0442\u043e\u0433\u043e \u043d\u0430\u043f\u0440\u043e\u043a\u0430\u0442?",YTP_YPC_START_RENTAL_BUTTON:"\u041d\u0430\u0447\u0430\u0442\u044c \u0441\u0440\u043e\u043a \u043f\u0440\u043e\u043a\u0430\u0442\u0430"});this.j=new Jy(["div","ytp-ypc-clickwrap-overlay",
["h2","header",Nf("YTP_YPC_START_RENTAL_HEADER")],["div","description",this.g.getVideoData().o.ypc_clickwrap_message],["button","confirm-button",Nf("YTP_YPC_START_RENTAL_BUTTON")]]);GA(this.j.K());cx(this.g,this.j.K());T(this,this.j);this.k=this.j.g["confirm-button"]}B(jJ,Px);f=jJ.prototype;f.va="ypc_clickwrap";f.oc="ypc-clickwrap";f.Fa=function(){return Gv(this.g.getVideoData(),"ypc_clickwrap_module")};function kJ(a){return Gv(a.getVideoData(),"ypc_clickwrap_module")?new jJ(a):null}
f.create=function(){jJ.H.create.call(this);this.load()};f.load=function(){jJ.H.load.call(this);var a=this.j.K();HA(a,"block");R(this.k,"click",y(this.hE,this))};f.unload=function(){GA(this.j.K());Fh(this.k);jJ.H.unload.call(this)};f.hE=function(){Rx(this);this.destroy()};function lJ(a){a=a.o;this.k=a.ypc_offer_button_text;this.description=a.ypc_offer_description;this.A=a.ypc_offer_headline;this.o=a.ypc_full_video_message;this.offerId=a.ypc_offer_id;this.g=a.ypc_buy_url;this.thumbnail=a.ypc_item_thumbnail;Uf(this.thumbnail)||(this.thumbnail="");this.title=a.ypc_item_title;this.j=a.ypc_item_url;this.videoId=a.ypc_vid};function mJ(){Y.call(this,["div",["ytp-drawer","html5-stop-propagation"],["div","ytp-drawer-content","{{content}}"],["a","ytp-drawer-close-button"],["a","ytp-drawer-open-button"]]);this.k=this.template.g["ytp-drawer-close-button"];KA(this,this.k,"click",this.hide);this.g=this.template.g["ytp-drawer-open-button"];KA(this,this.g,"click",this.show);this.j=new Tq(z(fh,this.element,"ytp-drawer-closed"),0);T(this,this.j);this.ta(null);this.hide()}B(mJ,Y);
mJ.prototype.hide=function(){this.j.stop();P(this.element,"ytp-drawer-closed")};mJ.prototype.ta=function(a){a?(mJ.H.ta.call(this,a),HA(this.element,"block")):GA(this.element)};mJ.prototype.show=function(){this.j.start()};mJ.prototype.L=function(){Fh(this.k);Fh(this.g);this.g=this.k=null;mJ.H.L.call(this)};function nJ(a,b){U.call(this);this.g=new mJ;T(this,this.g);this.j=document.createElement("div");eh(this.j,["html5-ypc-endscreen"]);this.o=document.createElement("div");P(this.o,"html5-ypc-overlay");this.k=new Jy(["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","{{button_label}}"]]);T(this,this.k);this.A=
this.k.g["html5-ypc-purchase"];R(this.A,"click",y(this.B,this));Ud(this.o,b.o);var c=b.title;b.j&&(c=["a",{href:b.j,target:"blank_"},b.title]);var d="";b.thumbnail&&(d=["img",{src:b.thumbnail}]);this.k.update({heading:b.A,title:c,thumbnail_element:d,description:b.description,button_label:b.k});this.Y(a)}B(nJ,U);nJ.prototype.L=function(){nJ.H.L.call(this);this.A&&Fh(this.A);Ld(this.j);Ld(this.o);this.o=this.j=this.g=null};nJ.prototype.Y=function(a){this.g.Y(a);this.g.ta(this.k.K());a.appendChild(this.j)};
function oJ(a){var b=a.k.K();a.j.appendChild(b);a.g.ta(null);HA(a.j,"block")}nJ.prototype.B=function(){this.publish("ypcContentRequest")};function pJ(a){Px.call(this,a);this.k=this.j=null;this.A=NaN;this.o=null}B(pJ,Px);f=pJ.prototype;f.va="ypc";f.oc="ypc";f.Fa=function(){return Gv(this.g.getVideoData(),"ypc_module")};function qJ(a){return Gv(a.getVideoData(),"ypc_module")?new pJ(a):null}f.create=function(){pJ.H.create.call(this);this.j=new lJ(this.g.getVideoData());N(y(this.MB,this),0);this.o=new Y(["div",["ytp-player-content","ytp-ypc-player-content"]]);this.o.Y(this.g.Pa())};
f.destroy=function(){pJ.H.destroy.call(this);this.j=null;this.o.detach();this.o.dispose();this.o=null};f.MB=function(){this.Gd&&!this.loaded&&this.load()};
f.load=function(){pJ.H.load.call(this);var a=this.g.getVideoData();if(this.j.videoId&&!a.na)this.g.aq({video_id:this.j.videoId,ypc_preview:1});else{this.k=new nJ(this.o.K(),this.j);this.k.subscribe("ypcContentRequest",this.Ky,this);this.j.videoId&&Hd(this.o.K(),this.k.o);if(qI(this.g.R())){var b=new Gx(2147483647,2147483647,{priority:2});this.Id(b)}this.k.g.show();O(this.A);this.A=N(y(function(){this.k.g.hide()},this),1E4);this.j.videoId?a.na&&Rx(this):oJ(this.k)}};
f.unload=function(){Qx(this);zi(this.k);this.k=null;pJ.H.unload.call(this)};f.Ec=function(a){pJ.H.Ec.call(this,a);oJ(this.k)};f.Wc=function(a){pJ.H.Wc.call(this,a);a=this.k;GA(a.j);a.g.ta(a.k.K())};f.Ky=function(){if(this.j.g)"embedded"==this.g.R().ca?kB(this.j.g):jB(this.j.g);else if(this.j.offerId){var a=t("yt.www.watch.player.handleEndPreview");a&&(this.g.isFullscreen()&&AB(this.g.app),a(this.j.offerId))}};function rJ(a){this.o=Math.exp(Math.log(.5)/a);this.g=this.k=0}rJ.prototype.j=function(a,b){var c=Math.pow(this.o,a);this.g=b*(1-c)+c*this.g;this.k+=a};rJ.prototype.A=function(){return this.g/(1-Math.pow(this.o,this.k))};function sJ(a){this.j=window.Float32Array?new Float32Array(a):Array(a);this.g=a-1}sJ.prototype.add=function(a){this.g=(this.g+1)%this.j.length;this.j[this.g]=a};sJ.prototype.forEach=function(a){for(var b=this.g+1;b<this.j.length;b++)a(this.j[b]||0);for(b=0;b<=this.g;b++)a(this.j[b]||0)};function tJ(a,b,c){this.F=0;this.C=a;this.o=b||.5;this.B=c||0;this.D="index";this.g=0;this.k=[]}tJ.prototype.j=function(a,b){uJ(this,"index");this.k.push({index:this.F++,weight:a,value:b});this.g+=a;for(uJ(this,"index");this.g>this.C;){var c=this.g-this.C,d=this.k[0];d.weight<=c?(this.g-=d.weight,this.k.shift()):(this.g-=c,d.weight-=c)}};function vJ(a,b){uJ(a,"value");var c=b*a.g,d=0,e=NaN;a.k.some(function(a){d+=a.weight;e=a.value;if(d>=c)return!0});return e}
tJ.prototype.A=function(){return this.B?(vJ(this,this.o-this.B)+vJ(this,this.o)+vJ(this,this.o+this.B))/3:vJ(this,this.o)};function uJ(a,b){a.D!=b&&(a.D=b,Bb(a.k,b))};function wJ(a){this.policy=a;this.j=this.A=this.B=0;this.D=new sJ(100);this.C=0;this.F=A();this.o=new tJ(16,.6);this.k=new rJ(4);this.policy.j?this.g=new rJ(17):this.g=new tJ(17,.5,.1);a=ej("yt-player-bandwidth")||{};this.g.j(this.policy.g,0<a.byterate?a.byterate:13E4);0<a.delay&&this.o.j(1,Math.min(+a.delay,2));0<a.tailDelay&&this.k.j(1,+a.tailDelay);this.j=A()}function xJ(a,b,c){b=Math.max(b,.05);a.g.j(b,c/b);yJ(a)}function zJ(a,b,c){isNaN(c)||(a.A+=c);isNaN(b)||(a.B+=b/1E3);yJ(a)}
function AJ(a){a=a.o.A();a=isNaN(a)?.5:a;return a=Math.min(a,5)}function BJ(a){return a.k.A()||0}function CJ(a){a=a.g.A();return 0<a?a:1}function DJ(a){var b={};b.delay=AJ(a);b.tailDelay=BJ(a);b.byterate=CJ(a);return b}function EJ(a){3E4<A()-a.j&&(bw(DJ(a)),a.j=A())}function yJ(a){var b=A();a.F=b;500<b-a.C&&(a.D.add(1/(1/CJ(a)+BJ(a))),a.C=b)}function FJ(a){return 4E3<=A()-a.F};function GJ(){this.g=.5;this.j=!1};function HJ(){S.call(this);this.g=[];this.B={};this.k={};this.o={};this.j=this.C=null;this.A=[];this.D=null}B(HJ,S);HJ.prototype.wr=function(a){if(this.j){var b;var c=ma(a);b=this.B[c];if(!b)if(this.j){if(b=a(this.j)){a=this.B[c]=b;for(var d in this.C)a.subscribe(d,this.C[d]);a.subscribe("command_log_timing",this.F,this);T(this,b)}}else b=null;b&&b.Fa(this.j)&&!H(this.g,b)&&(b.create(),this.g.push(b),H(this.A,b.va)&&(b.Mb=this.D,b.ij(!!b.Mb)))}};
function IJ(a){a.g=eb(a.g,function(a){if(!this.j||a.Em(this.j)){try{a.destroy()}catch(c){Lf(c)}return!1}return!0},a)}function JJ(a,b,c){KJ(a);a.D=b;a.A=sb(c);E(a.g,function(a){0<=cb(c,a.va)&&(a.Mb=b,a.ij(!!a.Mb))})}function KJ(a){E(a.A,function(a){if(a=yw(this,a))a.Mb=null,a.ij(!1)},a);a.D=null;a.A=[]}function LJ(a,b){if(!b)return F(a.g,function(a){return a.va});var c=yw(a,b);return c?c.Vf():[]}function yw(a,b){return G(a.g,function(a){return a.va==b})}
HJ.prototype.G=function(a,b){E(this.g,function(c){c.publish(a,b)})};function OJ(a){var b={};E(a.g,function(a){ra(b,a.Zg())});return b}HJ.prototype.F=function(a,b){ra(this.o,a||null);ra(this.k,b||null)};HJ.prototype.isAvailable=function(a){a=yw(this,a);return!(!a||!a.Si)};function PJ(a,b,c){this.o=b;this.g=c;this.k=a}PJ.prototype.getMessage=function(){return this.o};PJ.prototype.getErrorCode=function(){return this.g};PJ.prototype.toString=function(){return"AdError "+this.getErrorCode()+": "+this.getMessage()+(null!=this.j?" Caused by: "+this.j:"")};function QJ(a,b){lm.call(this,"adError");this.k=a;this.o=b?b:null}B(QJ,lm);var RJ="acceptinvitation acceptinvitationlinear click close collapse complete creativeview engagedview exitfullscreen expand firstquartile fullscreen midpoint mute pause progress replay resume rewind skipshown skip start stop thirdquartile unmute userClose videoShareClicked videoShareShown viewable_impression".split(" "),SJ="acceptinvitation click collapse creativeview expand progress close".split(" ");function TJ(a,b,c){lm.call(this,a);this.o=b;this.k=null!=c?c:null}B(TJ,lm);TJ.prototype.getAd=function(){return this.o};
var UJ={CONTENT_PAUSE_REQUESTED:"contentPauseRequested",CONTENT_RESUME_REQUESTED:"contentResumeRequested",CLICK:"click",WK:"videoClicked",nI:"engagedview",qI:"expandedChanged",STARTED:"start",Ms:"impression",Lu:"viewable_impression",PAUSED:"pause",ZJ:"resume",FIRST_QUARTILE:"firstquartile",MIDPOINT:"midpoint",THIRD_QUARTILE:"thirdquartile",COMPLETE:"complete",USER_CLOSE:"userClose",LOADED:"loaded",ALL_ADS_COMPLETED:"allAdsCompleted",SKIPPED:"skip",TG:"skipshown",oK:"skippableStateChanged",wH:"adMetadata",
vH:"adBreakReady",fJ:"log",VOLUME_CHANGED:"volumeChange",hL:"mute",bI:"companionBackfill",qL:"youTubeVideoMetadata",pL:"youTubeChannelMetadata",UK:"urlNavigationRequested"};var VJ=["://secure-...imrworldwide.com/","://cdn.imrworldwide.com/","://aksecure.imrworldwide.com/","www.google.com/pagead/sul","www.youtube.com/gen_204\\?a=sul"],WJ=/\bocr\b/,XJ=0,YJ={};function ZJ(a){return C(D(a))?!1:(new L(a)).jf().match(WJ)?!0:null!=G(VJ,function(b){return null!=a.match(b)})}
function $J(a){if(a){var b=K("iframe",{src:'javascript:"data:text/html,<body><img src=\\"'+a+'\\"></body>"',style:"display:none"});a=qd(b).body;var c,d=vn(function(){Mm(c);Ld(b)},15E3);c=Km(b,["load","error"],function(){vn(function(){wn(d);Ld(b)},5E3)});a.appendChild(b)}}function aK(a){if(a){var b=new Image,c=""+XJ++;YJ[c]=b;b.onload=b.onerror=function(){delete YJ[c]};b.src=a}};var bK={"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"},cK=["ADSENSE","ADSENSE/ADX"],dK=["DART","DART_DFA","DART_DFP"],eK=["FREEWHEEL"],fK=["GDFP"],gK={qJ:"video/mp4",sJ:"video/mpeg",gJ:"application/x-mpegURL",CJ:"video/ogg",BK:"video/3gpp",kL:"video/webm",pJ:"audio/mpeg",rJ:"audio/mp4"};var hK=["google-developers.appspot.com","devsite.googleplex.com"],iK=["*.googlesyndication.com"],jK=["*.youtu.be","*.youtube.com"],kK="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 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(" "),
lK=["googleads.g.doubleclick.net","pubads.g.doubleclick.net"];function mK(a,b){try{var c=cf(new L(b)),c=c.replace(/^www./i,"");return gb(a,function(a){return nK(a,c)})}catch(d){return!1}}function nK(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}
function oK(a){var b;if(b="https:"==window.location.protocol)b=(new RegExp("^https?://([a-z0-9-]{1,63}\\.)*("+kK.join("|").replace(/\./g,".")+")(:[0-9]+)?([/?#]|$)","i")).test(a);return b?(a=new L(a),Pe(a,"https"),a.toString()):a};function pK(a){window.open(oK(a),"_blank")}function qK(a,b,c,d){null!=b&&(a=rK(a,b));null!=c&&(C(D(c))||(b=new L(a),qf(b.g,"label")&&(M(b,"acvw",c),a=b.toString().replace(/%2C/g,","))));a=oK(a);null!=d&&d?$J(a):(c=a)&&(ZJ(c)?$J(c):aK(c))}function sK(a,b){null!=a&&E(a,function(a){qK(a,b)})}function rK(a,b){return a.replace(/\[[a-zA-Z0-9_]+\]/g,function(a){try{var d=Xb(b,a),d=d.toString();if(!C(D(d)))return encodeURIComponent(d).replace(/%2C/g,",")}catch(e){}return a})}
function tK(a,b,c){if(null==a)return"";M(a,"label",b);null!=c&&M(a,"value",c.join(";"));return a.toString()};function uK(a,b){this.message=a;this.errorCode=b}uK.prototype.getErrorCode=function(){return this.errorCode};uK.prototype.getMessage=function(){return this.message};
var vK=new uK("Unable to request ads from server. Cause: {0}.",1005),wK=new uK("Unable to request ads from server due to network error.",1012),xK=new uK("Cannot parse the {0} value for the adslist response: {1}.",900),yK=new uK("Invalid usage of the API. Cause: {0}",900),zK=new uK("Unable to display one or more required companions.",602),AK=new uK("There was a problem requesting ads from the server.",1005),BK=new uK("Ad tag URI {0} is invalid. It must be properly encoded before being passed.",1013),
CK=new uK("The provided ad type: {0} is not supported.",1005),DK=new uK("The provided {0} information: {1} is invalid.",1101),EK=new uK("The response does not contain any valid ads.",1009),FK=new uK("The overlay ad content could not be displayed since creative dimensions do not align with display area.",501),GK=new uK("The ad playlist response was malformed or empty.",1010),HK=new uK("The ad response was not understood and cannot be parsed.",1010),IK=new uK("An unexpected error occurred and the cause is not known. Refer to the inner error for more info.",
900),JK=new uK("The ad response contains unexpected element. Cause {0}.",1010),KK=new uK("No assets were found in the VAST ad response.",200),LK=new uK("Duplicate node in <{0}>: {1}",101),MK=new uK("The VAST response document is empty.",1009),NK=new uK("Linear assets were found in the VAST ad response, but none of them matched the video player's capabilities.",403),OK=new uK("Ad request reached a timeout.",301),PK=new uK("VAST response was malformed and could not be parsed.",100),QK=new uK("VAST media file loading reached a timeout of {0} seconds.",
402),RK=new uK("Ad request could not be completed due to a network error.",301),SK=new uK("Non linear assets were found in the VAST ad response, but none of them matched the video player's capabilities.",503),TK=new uK("The maximum number of VAST wrappers ({0}) has been reached.",302),UK=new uK("VAST media file duration differs from the VAST response duration by {0} seconds.",202),VK=new uK("Video player received an ad with unexpected or incompatible linearity",201),WK=new uK("Unknown node in <{0}>: {1}",
101),XK=new uK("Invalid VAST resource type: {0}",101),YK=new uK("Invalid VAST version",102),ZK=new uK("No additional VAST wrappers allowed.",300),$K=new uK("No Ads VAST response after one or more Wrappers",303),aL=new uK("There was an error playing the video ad.",400),bL=new uK("VMAP unsupported node in <{0}>: {1}",1010),cL=new uK("An unexpected error occurred within the VPAID creative. Refer to the inner error for more info.",901);
function dL(a,b,c){return eL("adLoadError",a,b||null,vb(arguments,2))}function fL(a,b,c){return eL("adPlayError",a,b||null,vb(arguments,2))}function gL(a,b,c,d,e){var g=a.apply(null,rb([c,d],vb(arguments,3)));b.T(new TJ("log",null,g))}function eL(a,b,c,d){if(c instanceof PJ)return c;var e=b.errorCode;b=b.message;if(0<d.length)for(var g=0;g<d.length;g++)b=b.replace(new RegExp("\\{"+g+"\\}","ig"),d[g]);a=new PJ(a,b,e);a.j=c;return a}
function hL(a,b,c,d){var e=fL.apply(null,rb([b,c],vb(arguments,3)));a.T(new QJ(e))};function iL(a){this.g=a}function jL(){var a;a=kL;if(null==a.o){var b={},c=ff(new L(Bd().location.href));if(qf(c,"tcnfp"))try{b=cg(c.get("tcnfp"))}catch(d){}a.o=new iL(b)}a=a.o;t:{if("disableAllExperiments"in a.g&&(a=a.g.disableAllExperiments,"boolean"==typeof a))break t;a=!1}return a};function lL(a){return(a=a.match(/^\w{2,3}([-_]|$)/))?a[0].replace(/[_-]/g,""):""};function mL(){this.j="always";this.A=this.g=!1;this.o=null}function nL(){return kL.A}mL.prototype.getPlayerType=function(){return""};var kL=new mL;var oL={},pL="",qL=/OS (\S+) like/,rL=/Android (\S+);/;function sL(){return ad||Ma(Nc,"Mobile")}function tL(){return bd&&!cd||Ma(Nc,"iPod")}function uL(){return tL()||cd}function vL(a,b){if(null==oL[b]){var c=wL(a);c?(c=c.replace(/_/g,"."),oL[b]=0<=Ra(c,b)):oL[b]=!1}return oL[b]}function wL(a){C(pL)&&(a=a.exec(Nc))&&(pL=a[1]);return pL}
function xL(){var a=Nc;return a?Ma(a,"AppleTV")||Ma(a,"GoogleTV")||Ma(a,"HbbTV")||Ma(a,"NetCast.TV")||Ma(a,"POV_TV")||Ma(a,"SMART-TV")||Ma(a,"SmartTV")||ad&&Ma(a,"AFT"):!1}function yL(){return Ma(Nc,"PlayStation")}function zL(){return tL()&&sL()&&Ma(Nc,"Safari")||ad&&(!ad||!vL(rL,4))||!nL()&&(Ma(Nc,"CrKey")||yL()||Ma(Nc,"Roku")||xL()||Ma(Nc,"Xbox"))?!1:!0};function AL(){this.g=.05>Math.random();this.j=Math.floor(4503599627370496*Math.random())}da(AL);function BL(a,b,c,d){if(a.g||d){c=c||{};c.lid=b;c=CL(a,c);var e=new L("http://pagead2.googlesyndication.com/pagead/gen_204");Hb(c,function(a,b){M(e,b,null!=a?"boolean"==typeof a?a?"t":"f":""+a:"")},a);a=DL();Pe(e,a.Hb);qK(e.toString())}}function CL(a,b){b.id="";var c=DL();b.c=a.j;b.domain=c.nb;return b}function DL(){var a=Bd(),b=document;return new L(a.parent==a?a.location.href:b.referrer)};function EL(){}f=EL.prototype;f.dE=!1;f.gt=!1;f.ks=!0;f.baseYouTubeUrl=null;f.bitrate=-1;f.contentId=null;f.TD=!1;f.Kk=!1;f.mimeTypes=null;f.surveyCreativeData=null;f.dp=!1;f.useShareButton=!1;f.useStyledNonLinearAds=!1;f.useVideoAdUi=!0;f.ap=!1;f.$o=!1;f.youTubeAdNamespace=0;f.showContentThumbnail=!0;f.bp=!1;f.loadVideoTimeout=15E3;function FL(a){try{return!!a&&null!=a.location.href&&rg(a,"foo")}catch(b){return!1}};var GL=document,HL=window;function IL(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){a=a.stack;var c=b;try{-1==a.indexOf(c)&&(a=c+"\n"+a);for(var d;a!=d;)d=a,a=a.replace(/((https?:\/..*\/)[^\/:]*:\d+(?:.|\n)*)\2/,"$1");b=a.replace(/\n */g,"\n")}catch(e){b=c}}return b}function JL(a){HL.google_image_requests||(HL.google_image_requests=[]);var b=HL.document.createElement("img");b.src=a;HL.google_image_requests.push(b)};function KL(a,b){for(var c in a)Object.prototype.hasOwnProperty.call(a,c)&&b.call(null,a[c],c,a)}function LL(a){return"function"==typeof encodeURIComponent?encodeURIComponent(a):escape(a)};var ML=!0,NL={};function OL(a,b,c,d){var e=PL,g,h=ML;try{g=b()}catch(k){try{var l=IL(k);b="";k.fileName&&(b=k.fileName);var p=-1;k.lineNumber&&(p=k.lineNumber);h=e(a,l,b,p,c)}catch(r){try{var v=IL(r);a="";r.fileName&&(a=r.fileName);c=-1;r.lineNumber&&(c=r.lineNumber);PL("pAR",v,a,c,void 0,void 0)}catch(x){QL({context:"mRE",msg:x.toString()+"\n"+(x.stack||"")},void 0)}}if(!h)throw k;}finally{if(d)try{d()}catch(ca){}}return g}
function PL(a,b,c,d,e,g){var h={};if(e)try{e(h)}catch(k){}h.context=a;h.msg=b.substring(0,512);c&&(h.file=c);0<d&&(h.line=d.toString());h.url=GL.URL.substring(0,512);h.ref=GL.referrer.substring(0,512);RL(h);QL(h,g);return ML}function QL(a,b){try{if(Math.random()<(b||.01)){var c="/pagead/gen_204?id=jserror"+SL(a),d="http"+("http:"==HL.location.protocol?"":"s")+"://pagead2.googlesyndication.com"+c,d=d.substring(0,2E3);JL(d)}}catch(e){}}function RL(a){var b=a||{};KL(NL,function(a,d){b[d]=HL[a]})}
function TL(a,b,c,d,e){return function(){var g=arguments;return OL(a,function(){return b.apply(c,g)},d,e)}}function UL(a,b){return TL(a,b,void 0,void 0,void 0)}function SL(a){var b="";KL(a,function(a,d){if(0===a||a)b+="&"+d+"="+LL(a)});return b};function VL(){for(var a=HL,b=a,c=0;a!=a.parent;)a=a.parent,c++,FL(a)&&(b=a);return b};var WL={Ku:"start",FIRST_QUARTILE:"firstquartile",MIDPOINT:"midpoint",THIRD_QUARTILE:"thirdquartile",COMPLETE:"complete",METRIC:"metric",PAUSE:"pause",QG:"resume",SKIPPED:"skip",Lu:"viewable_impression",PG:"mute",VG:"unmute",FULLSCREEN:"fullscreen",HG:"exitfullscreen"},XL={UNKNOWN:-1,Ku:0,FIRST_QUARTILE:1,MIDPOINT:2,THIRD_QUARTILE:3,COMPLETE:4,METRIC:5,PAUSE:6,QG:7,SKIPPED:8,Lu:9,PG:10,VG:11,FULLSCREEN:12,HG:13};var YL=!1,ZL="";function $L(a){a=a.match(/[\d]+/g);if(!a)return"";a.length=3;return a.join(".")}
if(navigator.plugins&&navigator.plugins.length){var aM=navigator.plugins["Shockwave Flash"];aM&&(YL=!0,aM.description&&(ZL=$L(aM.description)));navigator.plugins["Shockwave Flash 2.0"]&&(YL=!0,ZL="2.0.0.11")}else if(navigator.mimeTypes&&navigator.mimeTypes.length){var bM=navigator.mimeTypes["application/x-shockwave-flash"];(YL=bM&&bM.enabledPlugin)&&(ZL=$L(bM.enabledPlugin.description))}else try{var cM=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7"),YL=!0,ZL=$L(cM.GetVariable("$version"))}catch(dM){try{cM=
new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6"),YL=!0,ZL="6.0.21"}catch(eM){try{cM=new ActiveXObject("ShockwaveFlash.ShockwaveFlash"),YL=!0,ZL=$L(cM.GetVariable("$version"))}catch(fM){}}}var gM=YL,hM=ZL;if(GL&&GL.URL)var iM=GL.URL,ML=!(iM&&(0<iM.indexOf("?google_debug")||0<iM.indexOf("&google_debug")));function jM(a,b,c,d){c=TL(d||"osd_or_lidar::"+b,c,void 0,void 0,void 0);a.addEventListener?a.addEventListener(b,c,!1):a.attachEvent&&a.attachEvent("on"+b,c);return c};function kM(a,b){var c=a||HL;c.top!=c&&(c=c.top);try{return c.document&&!c.document.body?new J(-1,-1):b?new J(c.innerWidth,c.innerHeight):yd(c||window)}catch(d){return new J(-12245933,-12245933)}}var lM=0;function mM(){var a=0<=nM?oM()-nM:-1,b=pM?oM()-qM:-1,c=0<=rM?oM()-rM:-1,d,e;d=[2E3,4E3];e=[250,500,1E3];var g=a;-1!=b&&b<a&&(g=b);for(var h,a=0;a<d.length;++a)if(g<d[a]){h=e[a];break}void 0===h&&(h=e[d.length]);return-1!=c&&1500<c&&4E3>c?500:h}var sM=(new Date).getTime(),nM=-1,pM=!1,qM=-1,rM=-1;
function oM(){return(new Date).getTime()-sM}function tM(a){var b=[];Hb(a,function(a,d){d in Object.prototype||"undefined"==typeof a||(ga(a)&&(a=a.join(",")),b.push([d,"=",a].join("")))});return b.join("&")}function uM(){var a=K("div");a.style.cssText="position:relative;left:0px;top:0px;width:0;height:0;";return a};function vM(a,b){this.F=a||3E3;this.D=b||3E3;this.j="u";this.A=null;this.g=[];this.B=!1;this.k=-1;this.o=0}function wM(a,b,c){this.snapshot=a;this.j=b;this.g=c}
function xM(a,b,c){if(!(b&&b.getBoundingClientRect&&0<=Ra(hM,"11")&&c)||Sc&&9>ed||0<a.g.length)return!1;try{var d=b.getBoundingClientRect()}catch(e){return!1}var g="DIV"==b.tagName||"INS"==b.tagName,h=qd(b),k=[];if(g){var l=uM(),d=yM(d);E(d,function(a,b){var d=new zM("e",h,c,String(b));this.g.push(d);k.push(y(d.D,d,l,a))},a);Kd(b,l,0)}else d=AM(a,d),E(d,function(a,d){var e=new zM("e",h,c,String(d));this.g.push(e);k.push(y(e.C,e,b,a))},a);var p=!0;E(k,function(a){p=p&&a()});p?(a.j="l",a.A=b,a.B=!g):
(E(a.g,function(a){a.remove()}),a.g=[]);return p}function yM(a){return[new I(Math.floor((a.right-a.left)/2),Math.floor((a.bottom-a.top)/2))]}function AM(a,b){var c;try{c=b||a.A.getBoundingClientRect()}catch(d){c=new lg(0,0,0,0)}var e=yM(c);E(e,function(a){a.x+=c.left;a.y+=c.top});return e}function BM(a){if(a.A&&a.B){var b=AM(a);E(b,function(a,b){this.g[b]&&CM(this.g[b],a)},a)}}function DM(a){E(a.g,function(a){a.remove()});a.g=[];a.j="d"}
function EM(a){var b=(new Date).getTime(),c=a.C?b-a.C:0,d=-1;4==a.g.length?(d=F(a.g,function(a){return FM(a,b)}),d=GM(d)):1==a.g.length&&(d=[-1,0,1,2,3,5][FM(a.g[0],b)+1]);a.o=d==a.k?a.o+c:0;c=new wM(d,a.k,c);a.k=d;a.C=b;HM(a,d);BM(a);return c}function GM(a){var b=Fb(Lb(IM));E(a,function(a){0<=a&&++b[a]});return 4==b[4]?6:3<=b[4]?5:0<b[4]?4:4==b[2]?2:4==b[1]?1:4==b[0]?0:3}function HM(a,b){0==b&&JM(a)?a.j="n":a.j="dlfcrrrr".split("")[b+1]}vM.prototype.getStatus=function(){return this.j};
function JM(a){return"n"==a.j?!0:"l"==a.j&&a.o>=a.D}
function zM(a,b,c,d){this.module=null;this.o=a;this.xa="e"==a?String(c)+"~"+String(d):"";this.g=[];this.j=-1;this.A=0;this.k=Fb(Lb(KM));this.F=Fb(Lb(IM));"e"==this.o&&(LM[this.xa]=y(this.B,this));Sc?(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="'+MM(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=NM(this,b);a.width=1;a.height=1;a.style.zIndex=-999999;this.module=a}var IM={RK:-1,LOADING:0,MG:1,GG:2,UI:3,VISIBLE:4},KM={LOADING:0,MG:1,GG:2,IK:3,BJ:4,NK:5,PK:6,MK:7,EJ:8,HK:9},LM={};
function NM(a,b){function c(a,c,d){var e=b.createElement("param");e.name=c;e.value=d;a.appendChild(e)}var d=MM(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="hidden";e.style.opacity=0;return e}function MM(a,b){var c="//www.gstatic.com/osd/hbt.swf";"e"==a.o&&(c=Ie("//www.gstatic.com/osd/hbe.swf","id",a.xa));b&&(c=Ie(c,"delay","1"));return c}
zM.prototype.D=function(a,b){if(!this.module)return!1;this.module.style.position="absolute";CM(this,b);var c=!0;try{a.appendChild(this.module)}catch(d){c=!1}return c};zM.prototype.C=function(a,b){if(!this.module||!a.parentNode)return!1;this.module.style.position="fixed";CM(this,b);var c=!0;try{a.parentNode&&a.parentNode.insertBefore(this.module,a.nextSibling)}catch(d){c=!1}return c};function CM(a,b){a.module&&!Kc(b,Cg(a.module))&&Ag(a.module,b)}
zM.prototype.remove=function(){if(this.module)try{Ld(this.module)}catch(a){}this.module=null};zM.prototype.B=function(a){this.j=a?3:4};
function FM(a,b){if("e"==a.o){var c=null;try{c=a.module.it()}catch(d){}null===c?(c=0,0<a.j&&(c=2)):c=c?3:4;++a.F[c+1];a.j=c}else{var e=Number(b),g=null;try{g=a.module.fc()}catch(h){}OM(a,g,e);c=a.g[a.g.length-1];if(null===g){if(g=e=0,0<a.j||ia(c.Wi))g=e=2}else null===c.Wi||c.Pl>=e?(e=10<=g?4:0,g=0):g>c.Wi?(c=(g-c.Wi)/(e-c.Pl)*1E3,e=10<=c?4:3,c=0==c?1:1>c?3:4>c?4:23>c?6:26>c?8:9,6==a.A&&6==c&&(c=7),g=c):g=e=1;6==a.A&&(--a.k[6],4==g||8==g?++a.k[5]:++a.k[7]);++a.k[g];a.j=e;a.A=g}return a.j}
function OM(a,b,c){var d=c-1E3,e=a.g.length;E(a.g,function(a,b){a.Pl<=d&&(e=Math.min(e,b+1))});var g=a.g.length-e;0<g&&a.g.splice(e,g);a.g.unshift({Wi:b,Pl:c})}q("gteh",TL("osd_or_lidar::gteh_ex",function(a,b){var c=LM[a];ka(c)&&c(b)}),void 0);function PM(a,b,c,d,e,g,h,k,l){this.g=QM.clone();this.k=this.M=0;this.vb=this.wb=this.Ha=-1;this.Z=[0,0,0,0,0];this.D=[0,0,0,0,0];this.A=[0,0,0,0,0];this.ma=[0,0,0,0,0];this.J=d;this.O=this.S=-1;this.N=e;this.fb=function(){};this.Fb=function(){};this.Ba=this.element=c;this.Mh=0;this.Pe=-1;this.U=l||QM;this.B="";this.Uh=null;this.Qh="";this.o={};this.o.le=0;this.o.nt=2;this.o.Fr=3;this.j=this.qa=null;this.ua=!1;this.F=this.ib=this.Xa=null;this.ga=0;this.ja=!1;this.na=null;this.Nh=this.ya=this.wa=!1;
this.Lh=void 0;this.Xb=!1;this.ka=[];this.ba=void 0;this.ha=!1;this.C=void 0;this.Ja=0;this.V=-1;this.Ga=this.P=0;this.W=void 0;this.G=0;this.I=this.Vh=!1;this.hb=5==e?.02>Math.random():Boolean(c&&c._tos_);RM(this,a,g)}var QM=new lg(0,0,0,0);
function SM(a,b,c,d,e){if(!(0>a.J)){var g=HL.innerWidth,h=HL.innerHeight,k=new lg(Math.round(HL.mozInnerScreenY),Math.round(HL.mozInnerScreenX+g),Math.round(HL.mozInnerScreenY+h),Math.round(HL.mozInnerScreenX));c=new lg(HL.screenY+d,HL.screenX+c.width,HL.screenY+c.height,HL.screenX);e||(d=new lg(k.top-c.top,k.right-c.left,k.bottom-c.top,k.left-c.left),d.top>a.g.top?a.g=d:(a.g.right=a.g.left+g,a.g.bottom=a.g.top+h),a.M=g*h);TM(a,k,c,b,e,!0)}}
function UM(a,b,c){var d=VM(a,HL&&HL.document);if(d){c||RM(a,HL,!0);var e=Math.floor((a.g.left+a.g.right)/2),g=Math.floor((a.g.top+a.g.bottom)/2),h=zd(document),d=d(e-h.x,g-h.y)?.5:0;TM(a,a.g,d,b,c,!0)}}function VM(a,b){WM(a);if(!a.qa){var c=[];E(Pb(a.o),function(a){c[this.o[a]+1]=a},a);var d=c.join(""),d=b&&b[d];a.qa=d&&y(d,b)}return a.qa}function WM(a){a.o.e=-1;a.o.i=6;a.o.n=7;a.o.t=8}
PM.prototype.update=function(a,b,c,d,e){if(0>this.J)return null;c||RM(this,d,e);Boolean(null)&&c&&(d.clearInterval(this.Xa),this.Xa=null);Boolean(null)&&c&&(d.clearInterval(this.ib),this.ib=null);null!=this.na&&(c?(d.clearInterval(this.F),this.F=null,this.ja=!1):this.wa&&!this.F&&(this.F=d.setInterval(UL("osd_or_lidar::adblock::iem_int",y(this.Yb,this,d,1E3)),1E3),this.Yb(d)));return TM(this,this.g,b,a,c,!1)};
function TM(a,b,c,d,e,g){var h=d-a.J||1,k=null;ia(c)?b=XM(a,c):(k=c,b=XM(a,b,k));a.ba||YM(a,b,h,a.S,g,e,k);a.S=e?-1:b;a.J=d;-1!=b&&(0>a.Ha&&(a.Ha=d),a.vb=d);-1==a.wb&&1E3<=Math.max(a.A[2],a.D[2])&&(a.wb=d);a.fb(a,k||QM);return a.k}
function XM(a,b,c){if(a.I&&7==a.N)return a.k=1,ZM(a.k);var d=null;if(ia(b))a.k=b;else{c=new lg(Math.max(b.top,c.top),Math.min(b.right,c.right),Math.min(b.bottom,c.bottom),Math.max(b.left,c.left));if(0>=a.M||c.top>=c.bottom||c.left>=c.right)return a.k=0,-1;var d=c.clone(),e=-b.left;b=-b.top;e instanceof I?(d.left+=e.x,d.right+=e.x,d.top+=e.y,d.bottom+=e.y):(d.left+=e,d.right+=e,ia(b)&&(d.top+=b,d.bottom+=b));d=(c.bottom-c.top)*(c.right-c.left);a.k=d/a.M}return ZM(a.k)}
function ZM(a){var b=-1;1<=a?b=0:.75<=a?b=1:.5<=a?b=2:.25<=a?b=3:0<a&&(b=4);return b}
function YM(a,b,c,d,e,g,h){e=e&&-1!=d&&2>=d;var k=-1==d||-1==b?-1:Math.max(d,b);d=e?k:d;-1!=d&&(a.Z[d]+=c);(h=h||null)?(-1!=d&&2>=d&&-1!=a.O&&(a.ma[a.O]+=c),h=100*a.M/((h.bottom-h.top)*(h.right-h.left)),a.O=20<=h?0:10<=h?1:5<=h?2:2.5<=h?3:4):a.O=-1;if(7==a.N){h=$M(a);e=-1!=d&&2>=d;!e&&n(a.W)&&0<a.W&&(a.P+=c);a.P>a.Ga&&(a.Ga=a.P);if(e||!n(h)||0>=h)a.P=0;a.W=h}for(h=d;0<=h&&4>=h;h++)a.A[h]+=c,a.A[h]>a.D[h]&&(a.D[h]=a.A[h]);for(h=0;h<a.A.length;++h)if(h<b||g||-1==b)a.A[h]=0}
function aN(a,b,c){if(!Boolean(Boolean(a.Ba&&!!c&&!ai)&&!ai))return a.ua=!0,!1;var d=new vM;(c=xM(d,a.Ba,c))?(a.Fb=b,a.j=d):a.ua=!0;return c}
PM.prototype.Yb=function(a,b){var c=VM(this,a&&a.document);if(c){RM(this,a,!0);var d=Math.floor((this.g.left+this.g.right)/2),e=Math.floor((this.g.top+this.g.bottom)/2),g=zd(document),c=Boolean(c(d-g.x,e-g.y)),d=b||0;c?(this.ga+=this.ja?d:0,this.ja=!0):(this.ga=0,this.ja=!1);1E3<=this.ga&&(a.clearInterval(this.F),this.F=null,this.wa=!1,this.na="v");RM(this,a,!1)}else a.clearInterval(this.F),this.F=null,this.wa=!1,this.na="i"};
function RM(a,b,c){b=c?b:b.top;try{var d=QM.clone(),e=new I(0,0);a.Ba&&(d=a.Ba.getBoundingClientRect(),c||!b.frameElement)&&(e=Ig(a.Ba,b));var g=d.right-d.left,h=d.bottom-d.top,k=e.x+a.U.left,l=e.y+a.U.top,p=a.U.right||g,r=a.U.bottom||h;a.g=new lg(Math.round(l),Math.round(k+p),Math.round(l+r),Math.round(k))}catch(v){a.g=a.U}finally{a.o.Po=5,a.o.me=1,a.o.om=4}a.M=(a.g.bottom-a.g.top)*(a.g.right-a.g.left);a.Nh=2!=a.N&&3!=a.N&&6!=a.N||0!=a.M?!1:!0}
function bN(a,b){var c=a.Ja;pM||a.ba||-1==a.V||(c+=b-a.V);return c}function $M(a){if("as"==a.C&&ka(a.element.sdkVolume))try{return Number(a.element.sdkVolume())}catch(b){return-1}if("h"==a.C&&(a=t("ima.common.sdkVolume"),ka(a)))try{return Number(a())}catch(c){return-1}}function cN(a,b){tb(a.ka,Fb(b-a.ka.length+1));a.ka[b]=(100*a.k|0)/100}
function dN(a){if(a.ya)return{"if":0};var b=a.g.clone();b.round();var c=F(a.ka,function(a){return 100*a|0}),b={"if":eN?1:void 0,sdk:a.C?a.C:void 0,p:[b.top,b.left,b.bottom,b.right],tos:a.Z,mtos:a.D,ps:void 0,pt:c,vht:bN(a,oM()),mut:a.Ga};fN&&(b.ps=[fN.width,fN.height]);a.ha&&(b.ven="1");a.G&&(b.vds=a.G);gN()?b.c=(100*a.k|0)/100:b.tth=oM()-lM;return b};function hN(){return!iN()&&(Qc("iPod")||Qc("iPhone")||Qc("Android")||Qc("IEMobile"))}function iN(){return Qc("iPad")||Qc("Android")&&!Qc("Mobile")||Qc("Silk")};var jN=null,kN=null,lN=null,mN=!1;function nN(){if(!mN){mN=!0;jN=jN||jM(HL,"scroll",oN,"osd_or_lidar::scroll");kN=kN||jM(HL,"resize",pN,"osd_or_lidar::resize");var a=qN,b;GL.mozVisibilityState?b="mozvisibilitychange":GL.webkitVisibilityState?b="webkitvisibilitychange":GL.visibilityState&&(b="visibilitychange");b&&(lN=lN||jM(GL,b,a,"osd_or_lidar::visibility"));qN()}}function pN(){rN(!1);oN()}function oN(){sN(tN,!1)}
function uN(){var a;vN&&(wN=kM(HL,vN));a=wN;var b=xN,c=yN;if(zN){a=b;rN(!1);var d=AN,e=d.height-a;0>=e&&(e=d.height,a=0);wN=new J(d.width,e);e=new BN;e.B=!0;e.o=wN;e.k=d;e.j=a;return e}if(c)return a=new BN,a.A=!0,a;if(CN)return a=new BN,a.C=!0,a;if(DN)return a=new BN,a.F=!0,a;t:{b=new BN;b.o=a;b.g=!1;if(null!=a&&-1!=a.width&&-1!=a.height&&-12245933!=a.width&&-12245933!=a.height){try{var c=vN,g=HL||HL,g=g.top,e=a||kM(g,c),h=he(od(g.document)),d=-1==e.width||-12245933==e.width?new lg(e.width,e.width,
e.width,e.width):new lg(h.y,h.x+e.width,h.y+e.height,h.x)}catch(k){a=b;break t}b.D=d;b.g=!0}a=b}return a}
function sN(a,b){var c;if(!EN)if(window.clearTimeout(FN),FN=null,0==a.length)b||GN();else{var d=uN();try{var e=oM();if(d.B)for(c=0;c<a.length;c++)SM(a[c],e,d.k,d.j,b);else if(d.A)for(c=0;c<a.length;c++)UM(a[c],e,b);else if(DN)E(a,function(){});else if(d.C)E(a,function(a){if(b){if(a.j){var c=a.j;3<=c.k&&(c.k=3);a.S=-1}}else if(a.j&&"d"!=a.j.getStatus()){var c=EM(a.j),d=[-1,-1,-1,-1,-1,4,2,0],e=d[c.snapshot+1];YM(a,e,c.g,d[c.j+1],!0,!1);a.S=e;a.fb(a,QM);7==a.N?2E3<=Math.max(a.A[2],a.D[2])&&a.j&&DM(a.j):
1E3<=Math.max(a.A[2],a.D[2])&&!a.hb&&a.j&&DM(a.j);(c=2==c.snapshot||JM(a.j))||(c=a.j,c="f"==c.j&&c.o>=c.F);c&&(a.Fb(a),a.hb=!1,a.j&&DM(a.j))}});else if(d.g)for(c=0;c<a.length;c++)a[c].update(e,d.D,b,HL,eN);++HN}finally{b?E(a,function(a){a.k=0}):GN()}}}function qN(){var a=gN();if(a){if(!pM){var b=oM();qM=b;E(tN,function(a){a.Ja=bN(a,b)})}pM=!0;rN(!0)}else b=oM(),pM=!1,lM=b,E(tN,function(a){0<=a.J&&(a.V=b)});sN(tN,!a)}
function gN(){if(IN())return!0;var a;a=HL.document;a={visible:1,hidden:2,prerender:3,preview:4}[a.webkitVisibilityState||a.mozVisibilityState||a.visibilityState||""]||0;return 1==a||0==a}function GN(){HL&&(FN=HL.setTimeout(UL("osd_or_lidar::psamp_to",function(){sN(tN,!1)}),mM()))}function JN(a){return null!=G(tN,function(b){return b.element==a})}var tN=[],EN=!1,wN=null,AN=null,fN=null,FN=null,eN=!FL(HL.top),xN=0,zN=!1,yN=!1,CN=!1,DN=!1,vN=iN()||hN(),HN=0;
function KN(){var a=HL.document;return a.body&&a.body.getBoundingClientRect?!0:!1}
function rN(a){wN=kM(HL,vN);if(!a){AN=HL.outerWidth?new J(HL.outerWidth,HL.outerHeight):new J(-12245933,-12245933);a=HL;a.top!=a&&(a=a.top);var b=0,c=0,d=wN;try{var e=a.document,g=e.body,h=e.documentElement;if("CSS1Compat"==e.compatMode&&h.scrollHeight)b=h.scrollHeight!=d.height?h.scrollHeight:h.offsetHeight,c=h.scrollWidth!=d.width?h.scrollWidth:h.offsetWidth;else{var k=h.scrollHeight,l=h.scrollWidth,p=h.offsetHeight,r=h.offsetWidth;h.clientHeight!=p&&(k=g.scrollHeight,l=g.scrollWidth,p=g.offsetHeight,
r=g.offsetWidth);k>d.height?k>p?(b=k,c=l):(b=p,c=r):k<p?(b=k,c=l):(b=p,c=r)}fN=new J(c,b)}catch(v){fN=new J(-12245933,-12245933)}}}function LN(){var a=MN,b=!1;E(tN,function(c,d){if(.2>Math.random()){var e=aN(c,a,String(d));b=b||e}});(CN=b)&&E(tN,function(b){Boolean(b.j)||a(b)});return b}function NN(a){E(a,function(a){JN(a.element)||tN.push(a)})}function IN(){return gb(tN,function(a){return a.I})}function BN(){this.k=this.o=null;this.j=0;this.D=null;this.g=this.F=this.C=this.A=this.B=!1};function ON(a,b){return a.dataset?b in a.dataset?a.dataset[b]:null:a.getAttribute("data-"+String(b).replace(/([A-Z])/g,"-$1").toLowerCase())};var PN=null,QN="",RN=!1;function SN(){var a=PN||HL;if(!a)return"";var b=a.document,c=[];c.push("url="+LL(a.location.href.substring(0,512)));b&&b.referrer&&c.push("referrer="+LL(b.referrer.substring(0,512)));b=a.location&&a.location.ancestorOrigins;if(eN&&b&&0<b.length){for(var d=[],a=b.length,e=a-1;0<=e;--e)d.push(LL(b[e]));b=d.join(",");b=b.substring(0,512);c.push("adep="+a);c.push("anc="+b)}return c.join("&")};var TN=!1,UN=!1;function VN(){TN=!0;try{nM=oM(),PN=VL(),rN(!1),KN()?(window.setTimeout(function(){},1),eN?WN():nN()):RN=!0}catch(a){throw tN=[],a;}}
function WN(){var a;if(Tc&&ia(HL.screenX)&&ia(HL.mozInnerScreenX)&&ia(HL.outerWidth)&&1>Math.random()){var b=HL.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&&(xN=a,zN=!0);a=!0}else a=!1;a?nN():(a=Sc&&gd(8)&&1>Math.random()?yN=!0:!1,a?nN():LN()?(nN(),UN=!0):(window.clearTimeout(FN),FN=null,QN="i",EN=!0))}function MN(a){if(a){if(!a.Xb){var b=[];b.push("v=248v");b.push("r=fp");b.push("efm="+(UN?1:0));b.push(He(dN(a)));b.push(SN());b="&"+b.join("&");JL(("//pagead2.googlesyndication.com/pagead/gen_204?id=lidarvf"+b).substring(0,2E3));a.Xb=!0}a.ya=!0}}
function XN(a,b,c){var d={};bc(d,{opt_videoAdElement:void 0,opt_VideoAdLength:void 0,opt_fullscreen:void 0,opt_nativeMobile:!1},c||{});var e=a.toLowerCase();if(a=Rb(WL,function(a){return a==e})){a={e:XL[a],hd:EN?"1":"0",v:"248v",hdr:QN||void 0,a:void 0};if(RN)return a.msg="ue",tM(a);b=YN(b,d);if(!b)return a.msg="nf",tM(a);TN||VN();"i"==QN&&(b.ya=!0);c=d.opt_fullscreen;n(c)&&(b.I=Boolean(c));a.a=$M(b);n(b.W)&&(a.la=b.W);c={};c.start=ZN;c.firstquartile=$N;c.midpoint=aO;c.thirdquartile=bO;c.complete=
cO;c.metric=dO;c.pause=eO;c.resume=fO;c.skip=gO;c.viewable_impression=dO;c.mute=hO;c.unmute=iO;c.fullscreen=jO;c.exitfullscreen=kO;if(c=c[e]){d=c(b,d);if(!n(d)||w(d))return d;bc(a,d);return tM(a)}}}function ZN(a,b){"i"!=QN&&(EN=!1);!UN||Boolean(a.j)||a.ua||aN(a,MN,String(cb(tN,a)));lO(a,b);cN(a,0);return dN(a)}function $N(a){cN(a,1);sN([a],!gN());return dN(a)}function aO(a){cN(a,2);sN([a],!gN());return dN(a)}function bO(a){cN(a,3);sN([a],!gN());return dN(a)}
function cO(a){cN(a,4);sN([a],!gN());var b=dN(a);a.I=!1;mO(a.B);return b}function eO(a){a.Ja=bN(a,oM());var b=!gN();sN([a],b);a.ba=!0;return dN(a)}function fO(a){var b=gN();a.ba&&!b&&(a.V=oM());sN([a],!b);a.ba=!1;return dN(a)}function dO(a){return dN(a)}function gO(a){var b=!gN();sN([a],b);b=dN(a);a.I=!1;mO(a.B);return b}function hO(a){sN([a],!gN());return dN(a)}function iO(a){sN([a],!gN());return dN(a)}function jO(a){a.I=!0;sN([a],!gN());return dN(a)}
function kO(a){a.I=!1;sN([a],!gN());return dN(a)}function lO(a,b){b&&b.opt_VideoAdLength&&(a.Lh=b.opt_VideoAdLength);var c=oM();rM=c;a.Z=[0,0,0,0,0];a.D=[0,0,0,0,0];a.A=[0,0,0,0,0];a.ma=[0,0,0,0,0];a.J=-1;a.Ha=-1;a.vb=-1;a.Mh=0;a.Pe=-1;a.S=-1;a.O=-1;a.k=0;a.J=c;var d=!1;gN()||(d=!0,a.V=c);sN([a],d)}function mO(a){if(w(a)){var b=ib(tN,function(b){return b.B==a});0<=b&&pb(tN,b)}}
function YN(a,b){if(b.opt_nativeMobile)return nO(a);if(b.opt_videoAdElement)return oO(a,b.opt_videoAdElement);var c=pO(a);return c?c:c=G(tN,function(b){return b.B==a})}function nO(a){var b=G(tN,function(b){return b.B==a});b||(b=new PM(window,0,null,oM(),7,!1),b.C="n",b.fb=qO,NN([b]),b.B=a);return b}function oO(a,b){var c=G(tN,function(a){return a.element==b});c||(c=rO(b),c.B=a,c.C="h");return c}
function pO(a){var b=G(tN,function(b){return b.element?sO(b.element)==a:!1});if(b)return b;b=tO();b=G(b,function(b){return sO(b)==a});if(!b)return null;b=rO(b);b.C="as";uO(b);return b}function uO(a){var b=sO(a.element);w(b)&&(a.B=b)}function tO(){var a=HL.document,b=Gb(F(["embed","object"],function(b){return sb(a.getElementsByTagName(b))}));return b=eb(b,function(a){if(!a||!Qd(a))return!1;var b=a.getBoundingClientRect();return 0!=b.width&&0!=b.height&&a.metricID&&ka(a.metricID)?!0:!1})}
function sO(a){if(!a||!a.metricID||!ka(a.metricID))return null;var b;try{b=a.metricID()}catch(c){return null}return b.queryID}
function rO(a){var b=oM();ON(a,"admeta")||ON(a,"admetaDfp");var c=ON(a,"ord")||"",d;t:if(c){d=HL.document.getElementsByTagName("script");for(var c=new RegExp(".doubleclick.net/(N.+/)?(pf)?(ad[ijx])/.*;ord="+Na(c)),e=0;e<d.length;e++){var g=d[e];if(g&&g.src&&c.test(g.src)){d=g.src;break t}}d=HL!=HL.top&&c.test(HL.location.href)?HL.location.href:""}else d="";a=new PM(HL,0,a,b,7,eN);b=d.match(/.doubleclick.net\/(N.+\/)?(pf)?(ad[ijx])\//);a.Uh=b?{adi:"adi",adj:"adj",adx:"adx"}[b[3]]:"";if(d){t:{if(d&&
(b=d.match(/\/\/.*(;u=xb[^;\?]*)/i))&&(b=b[b.length-1].split("="))&&2==b.length){b=b[1];break t}b=null}a.Qh=b}a.fb=qO;NN([a]);nN();return a}function qO(a){if(2E3<=Math.max(a.A[2],a.D[2])&&!a.ha){var b="as"==a.C,c="h"==a.C,d="n"==a.C,e=t("ima.common.triggerViewEvent"),g=dN(a);g.e=9;try{var h=tM(g);c||d?ka(e)?(e(a.B,h),a.ha=!0):a.G=4:b?a.element&&a.element.triggerViewEvent?(a.element.triggerViewEvent(h),a.ha=!0):a.G=1:a.G=5}catch(k){a.G=a.G||2}}else a.G=3}
q("Goog_AdSense_Lidar_startMetricMeasurement",TL("lidar::startmm_ex",function(a,b){var c=b||{};if(!w(a)){var d=YN(a,c);d&&lO(d,c)}}),void 0);q("Goog_AdSense_Lidar_stopMetricMeasurement",TL("lidar::stopmm_ex",mO),void 0);q("Goog_AdSense_Lidar_getMetric",TL("lidar::getmetric_ex",function(a){var b=G(tN,function(b){return b.B===a});if(!b)return"-1";var c={xsj:b.Z,mkdj:b.D};gN()?c.c7=(100*b.k|0)/100:c.ftr=oM()-lM;return eg(c)}),void 0);
q("Goog_AdSense_Lidar_sendVastMessage",TL("lidar::handlevast_ex",XN),void 0);q("Goog_AdSense_Lidar_handleNativeVideoMeasurement",TL("lidar::handlenativevideo_ex",function(a){var b=G(tN,function(b){return b.B==a});b&&(b.Vh=!1)}),void 0);function vO(){V.call(this);this.g=null;this.A=new An(this);T(this,this.A);this.C=new oe;this.o=null;this.k=!1}B(vO,V);var wO=null;function xO(){null!=wO||(wO=new vO);return wO}vO.prototype.j=null;vO.prototype.destroy=function(){this.A.Da(this.g,"activityMonitor",this.B);this.k=!1};vO.prototype.init=function(a){this.k||((this.g=a||null)&&this.A.listen(this.g,"activityMonitor",this.B),this.k=!0)};
function yO(a){if(null==a)return!1;if(tL()&&null!=a.webkitDisplayingFullscreen)return a.webkitDisplayingFullscreen;var b=window.screen.availWidth||window.screen.width,c=window.screen.availHeight||window.screen.height;a=zO(a);return 0>=b-a.width&&42>=c-a.height}function zO(a){return ka(a.getBoundingClientRect)?a.getBoundingClientRect():{left:a.offsetLeft,top:a.offsetTop,width:a.offsetWidth,height:a.offsetHeight}}function AO(a,b){a.o=b}
function BO(a,b,c,d,e){if(a.k){e=e||{};if(d=d?a.C.get(d):kL.k)null!=e.opt_fullscreen||(e.opt_fullscreen=yO(d)),null!=e.opt_videoAdElement||(e.opt_videoAdElement=d);null==e.opt_offset&&a.o&&(e.opt_offset=zO(a.o));return XN(b,c,e)||""}return""}
vO.prototype.B=function(a){var b=a.nd,c=b.queryId,d={};d.timeoutId=b.timeoutId;switch(a.tc){case "getViewability":d.viewabilityString=BO(this,"metric",c)||"";this.g.send("activityMonitor","viewability",d);break;case "reportVastEvent":a=b.vastEvent;var e=b.osdId,g={};g.opt_fullscreen=b.isFullscreen;b.isOverlay&&(g.opt_offset=b.overlayOffset);d.viewabilityString=BO(this,a,c,e,g);this.g.send("activityMonitor","viewability",d)}};
q("ima.common.sdkVolume",function(){var a=-1;null!=xO().j&&(a=xO().j());return a},void 0);q("ima.common.triggerViewEvent",function(a,b){var c={};c.queryId=a;c.viewabilityString=b;var d;(d=xO().g)?d.send("activityMonitor","viewableImpression",c):xO().T(new TJ("viewable_impression",null,c))},void 0);function CO(a,b,c){if(lb(a))return null;a=eb(a,function(a){var b=a.o;return"application/x-mpegurl"==D(a.g).toLowerCase()||"progressive"==b});lb(c)||(c=F(c,function(a){return a.toLowerCase()}),a=eb(a,function(a){return H(c,D(a.g).toLowerCase())}));if(!ia(b)||0>=b)b=hN()?500:1E3;return DO(a,b)}function DO(a,b){return EO(a,b)||FO(a,b)||GO(a,b)}function EO(a,b){var c=null;E(a,function(a){var e=a.Ce,g=a.Qd;e>b||g<b||!(null==c||c.Ce>e)||(c=a)});return c}
function FO(a,b){var c=null;E(a,function(a){var e=a.Ce,g=a.Qd;g>b||(null==c||c.Qd<g?c=a:null!=c&&c.Qd==g&&c.Ce>e&&(c=a))});return c}function GO(a,b){var c=null;E(a,function(a){var e=a.Ce,g=a.Qd;if(!(e<b))if(null!=c&&c.Ce==e&&c.Qd<g)c=a;else if(null==c||c.Ce>e)c=a});return c};function HO(){V.call(this);this.o=this.C=this.B=!1;this.g=0;this.j=[];this.D=!1;this.A={}}B(HO,V);function IO(a,b){null==b||a.B||(a.k=b,JO(a),a.B=!0)}function KO(a){null!=a.k&&a.B&&(LO(a),a.B=!1,a.C=!1,a.o=!1,a.g=0,a.j=[],a.D=!1)}function JO(a){LO(a);a.A=a.k instanceof V||!uL()?{click:y(a.PE,a)}:{touchstart:y(a.SE,a),touchmove:y(a.RE,a),touchend:y(a.QE,a)};Hb(a.A,function(a,c){this.k.addEventListener(c,a,!1)},a)}function LO(a){Hb(a.A,function(a,c){this.k.removeEventListener(c,a,!1)},a);a.A={}}f=HO.prototype;
f.SE=function(a){this.C=!0;this.g=a.touches.length;this.D=MO(this,a.touches)||1!=a.touches.length;NO(this,a.touches)};f.RE=function(a){this.o=!0;this.g=a.touches.length};f.QE=function(a){this.C&&1==this.g&&!this.o&&!this.D&&MO(this,a.changedTouches)&&this.T(new lm("click"));this.g=a.touches.length;0==this.g&&(this.o=this.C=!1,this.j=[])};f.PE=function(){this.T(new lm("click"))};function NO(a,b){a.j=[];E(b,function(a){nb(this.j,a.identifier)},a)}
function MO(a,b){return gb(b,function(a){return H(this.j,a.identifier)},a)}f.L=function(){KO(this);HO.H.L.call(this)};function OO(a,b,c,d,e,g,h,k,l){this.o=a;this.g=b;isNaN(c)&&isNaN(d)&&isNaN(e)?e=d=0:isNaN(d)&&!isNaN(e)?d=e:!isNaN(d)&&isNaN(e)?e=d:!isNaN(c)&&isNaN(d)&&isNaN(e)&&(d=e=c);this.Ce=d;this.Qd=e;this.A=h;this.j=k;this.k=l}OO.prototype.getHeight=function(){return this.A};function PO(){V.call(this)}B(PO,V);var QO={MH:"beginFullscreen",CLICK:"click",kI:"end",mI:"endFullscreen",ERROR:"error",iJ:"mediaLoadTimeout",PAUSE:"pause",PLAY:"play",nK:"skip",TG:"skipShown",Ku:"start",DK:"timeUpdate",CK:"timedMetadata",gL:"volumeChange"};PO.prototype.lr=u;PO.prototype.Df=function(){return null};function RO(a){V.call(this);this.g=a;this.M=new Sm(4);this.o=0;this.J=this.k=this.D=!1;this.G=this.sg();this.F=this.ge();this.N=15E3;this.I=!1}B(RO,PO);f=RO.prototype;
f.Tq=function(a,b,c){a=eb(a,function(a){var b=a.g;C(D(a.j))||"progressive"!=a.o&&"application/x-mpegurl"!=D(b).toLowerCase()?a=!1:(b=D(b).toLowerCase(),a=C(b)||ad&&vL(rL,2.3)&&Ia(b,"application/ogg")?!1:ad&&(Ia(b,"video/mp4")||Ia(b,"video/3gpp"))||uL()&&(Ia(b,"application/x-mpegurl")||Ia(b,"application/vnd.apple.mpegurl"))?!0:!C(this.g.canPlayType(b)));return a},this);return CO(a,b,c)};f.ym=function(){return eb(Ob(gK),function(a){return!C(this.g.canPlayType(a))},this)};
f.Pk=function(a){this.N=0<a.tb?a.tb:15E3};f.load=function(a){SO(this);this.g.src=a;this.g.load()};f.getVideoUrl=function(){return this.g.src};f.setVolume=function(a){this.g.volume=a};f.gd=function(){return this.g.volume};f.play=function(){this.I=!1;vn(this.g.play,0,this.g);this.O=vn(this.cE,this.N,this)};f.pause=function(){this.I=!0;this.g.pause()};f.Kg=function(){return this.g.paused?uL()||$h?this.g.currentTime<this.g.duration:!0:!1};f.Mg=function(){return this.g.muted};
f.cn=function(){tL()&&this.g.webkitDisplayingFullscreen&&this.g.webkitExitFullscreen()};f.ge=function(){return yO(this.g)};f.fh=function(a){var b;t:{for(b=this.M.La();b.length;){var c=b.pop();if(0<c){b=c;break t}}b=-1}return b>=a};f.Gf=function(a){this.g.currentTime=a};f.getCurrentTime=function(){return this.g.currentTime};f.Or=function(){return TO(this)};f.ed=function(){return isNaN(this.g.duration)?-1:this.g.duration};f.re=function(){return this.g.ended};
f.sg=function(){return new J(this.g.offsetWidth,this.g.offsetHeight)};f.Ur=function(){return this.g.seeking};f.L=function(){this.rf();this.g=null;RO.H.L.call(this)};f.Ct=function(){return this.g.error};
f.qi=function(){this.rf();this.j=new An(this);this.j.listen(this.g,"canplay",this.YB);this.j.listen(this.g,"ended",this.UB);this.j.listen(this.g,"webkitbeginfullscreen",this.Tl);this.j.listen(this.g,"webkitendfullscreen",this.sr);this.j.listen(this.g,"pause",this.WB);this.j.listen(this.g,"playing",this.ZB);this.j.listen(this.g,"timeupdate",this.$B);this.j.listen(this.g,"volumechange",this.XB);this.j.listen(this.g,"error",this.Np);this.B=new HO;this.j.listen(this.B,"click",this.TB);IO(this.B,this.g);
this.C=new tn(1E3);this.j.listen(this.C,"tick",this.VB);this.C.start()};f.rf=function(){null!=this.B&&(KO(this.B),this.B=null);null!=this.C&&this.C.dispose();null!=this.j&&(this.j.dispose(),this.j=null);SO(this)};function SO(a){a.k=!1;a.D=!1;a.o=0;a.J=!1;a.M.clear();wn(a.O);xi(a.A)}function UO(a){a.k||(a.k=!0,wn(a.O),a.T("start"),zL()||!ad||ad&&vL(rL,3)||tL()&&(!uL()||!vL(qL,4))||a.Tl())}
f.YB=function(){var a;if(a=ai)a=Nc,a=!(a&&(Ma(a,"SMART-TV")||Ma(a,"SmartTV")));a&&!this.J&&(this.Gf(.001),this.J=!0)};f.ZB=function(){this.T("play");uL()||Zh||UO(this)};f.$B=function(){if(!this.k&&(uL()||Zh)){if(0>=this.getCurrentTime())return;if(Zh&&this.re()&&1==this.ed()){this.Np();return}UO(this)}if(uL()){if(1.5<this.getCurrentTime()-this.o){this.D=!0;this.Gf(this.o);return}this.D=!1;this.getCurrentTime()>this.o&&(this.o=this.getCurrentTime())}this.M.add(this.g.currentTime);this.T("timeUpdate")};
f.XB=function(){this.T("volumeChange")};f.WB=function(){var a;this.k&&uL()&&!this.I&&2>TO(this)-this.g.currentTime?(this.A=new tn(250),this.j.listen(this.A,"tick",this.pA),this.A.start(),a=!0):a=!1;a||this.T("pause")};f.UB=function(){var a=!0;uL()&&(a=this.o>=this.g.duration-1.5);!this.D&&a&&this.T("end")};f.Tl=function(){this.T("beginFullscreen")};f.sr=function(){this.T("endFullscreen")};f.Np=function(){wn(this.O);this.T("error")};f.TB=function(){this.T("click")};
f.VB=function(){var a=this.sg(),b=this.ge();if(a.width!=this.G.width||a.height!=this.G.height)!this.F&&b?this.Tl():this.F&&!b&&this.sr(),this.G=a,this.F=b};f.cE=function(){if(!this.k){try{BL(AL.getInstance(),16)}catch(a){}SO(this);this.T("mediaLoadTimeout")}};f.pA=function(){if(this.re()||!this.Kg())xi(this.A);else{var a=this.g.duration-this.g.currentTime,b=TO(this)-this.g.currentTime;0<b&&(2<=b||2>a)&&(xi(this.A),this.play())}};
function TO(a){for(var b=a.g.buffered.length-1;0<=b;){if(a.g.buffered.start(b)<=a.g.currentTime)return a.g.buffered.end(b);b--}return 0};function VO(a,b){if(null==a||!Sd(qd(a),a))throw fL(DK,null,"containerElement","element");this.A=a;this.j=this.g=null;this.o=b;this.k=null;this.g=K("div",{style:"display:none;"});var c=K("video",{style:"background-color:#000;position:absolute;width:100%;height:100%;"});c.setAttribute("webkit-playsinline",!0);this.j=c;this.k=K("div",{style:"position:absolute;width:100%;height:100%;"});this.A.appendChild(this.g);this.g.appendChild(this.j);this.o&&(c=K("div",{id:this.o,style:"display:none;background-color:#000;position:absolute;width:100%;height:100%;"}),
this.g.appendChild(c));this.g.appendChild(this.k)}B(VO,S);VO.prototype.initialize=function(){sL()&&this.j.load()};VO.prototype.L=function(){Ld(this.g);VO.H.L.call(this)};VO.prototype.show=function(){var a=this.g;null!=a&&(a.style.display="block")};VO.prototype.hide=function(){var a=this.g;null!=a&&(a.style.display="none")};function WO(a){null!=a?mK(iK,a)?(a=a.match(/yt_vid\/([a-zA-Z0-9_-]{11})/),a=null!=a&&1<a.length?a[1]:null):a=null!=a&&mK(jK,a)?XO(a):null:a=null;return a}function YO(a,b,c){if(null==a)return null;c=new L((null!=c?c:"//www.youtube.com/")+"watch");var d=c.g;d.set("v",a);d.set("feature",b?"trueview-instream":"instream");Ve(c,d);return c.toString()}
function XO(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=ff(new L(a));return qf(a,"v")?a.get("v").toString():qf(a,"video_id")?a.get("video_id").toString():null};function ZO(a){V.call(this);this.G="ima-chromeless-video";var b=null;null!=a&&(w(a)?this.G=a:b=a);this.I=new An(this);this.A=null;this.k=!1;this.U=this.sg();this.S=this.ge();this.C=-1;this.O=!1;this.B=-1;this.j=this.M=this.D=null;this.P="";this.g=!1;this.Z=null!=b;this.F=this.N=this.X=null;this.o=void 0;this.V=null;null!=b?(this.g=!0,this.X=b,this.o=2):(a=y(this.aw,this),$O?a():(aP.push(a),a=Fd("script"),a.src="https://www.youtube.com/iframe_api",b=document.getElementsByTagName("script")[0],b.parentNode.insertBefore(a,
b)))}B(ZO,PO);var bP=["video/mp4","video/webm"],cP={el:"adunit",controls:0,html5:1,playsinline:1,showinfo:0},aP=[],$O=!1;f=ZO.prototype;f.Tq=function(a,b,c){var d=G(a,function(a){return null!==WO(a.j)});if(null!==d)return d;a=eb(a,function(a){a=D(a.g);return this.g?this.X.canPlayType(a):H(bP,a)},this);lb(c)||(d=CO(a,b,c));return null!=d?d:CO(a,b,[])};f.Pk=function(a){this.j=a};f.load=function(a,b){null!==a&&(this.P=a,this.g?dP(this,a,b):(this.D=a,this.M=b))};f.getVideoUrl=function(){return this.P};
f.setVolume=function(a){this.Z?this.T("volumeChange"):this.g?(a=Ic(100*a,0,100),this.X.setVolume(a),this.B=-1,this.T("volumeChange")):this.B=a};f.gd=function(){return this.g?this.X.getVolume()/100:this.B};
f.play=function(){if(!C(D(this.P))){if(!this.k){eP(this);var a=15E3;null!=this.j&&0<this.j.tb&&(a=this.j.tb);this.ba=vn(this.Oz,a,this)}this.g?(this.O=!1,fP(this),this.A=new tn(100),this.I.listen(this.A,"tick",this.Mq),this.A.start(),!this.k&&this.j&&this.j.g?this.X.loadVideoByPlayerVars(this.V):this.X.playVideo()):this.O=!0}};f.pause=function(){this.g&&this.k&&(fP(this),this.X.pauseVideo())};f.Kg=function(){return this.g?2==this.X.getPlayerState(this.o):!1};
f.Mg=function(){return this.g?this.X.isMuted():0==this.gd()};f.cn=function(){};f.ge=function(){var a=kL.g?kL.k:document.getElementById(this.G);return a?yO(a):!1};f.fh=function(a){return this.g?this.X.getCurrentTime(this.o)>=a:!1};f.Gf=function(a){this.g?this.X.seekTo(a,!1):this.C=a};f.getCurrentTime=function(){return this.g?this.X.getCurrentTime(this.o):-1};f.Or=function(){return this.g&&this.k?this.X.getVideoLoadedFraction(this.o)*this.X.getDuration(this.o):0};
f.ed=function(){return this.g&&this.k?this.X.getDuration(this.o):-1};f.Ct=function(){return null};f.ym=function(){return Ob(gK)};f.re=function(){return this.g?0==this.X.getPlayerState(this.o):!1};f.sg=function(){var a=kL.g?kL.k:document.getElementById(this.G);return a?new J(a.offsetWidth,a.offsetHeight):new J(0,0)};f.Ur=function(){return!1};
f.hF=function(){var a=this.sg(),b=this.ge();if(a.width!=this.U.width||a.height!=this.U.height)!this.S&&b?this.T("beginFullscreen"):this.S&&!b&&this.T("endFullscreen"),this.U=a,this.S=b};f.qi=function(){this.N=y(this.fu,this);this.F=y(this.Jn,this);this.Z&&(this.X.addEventListener("onAdStateChange",this.F),this.X.addEventListener("onReady",this.N),this.X.addEventListener("onStateChange",this.F));this.J=new tn(1E3);this.I.listen(this.J,"tick",this.hF);this.J.start()};
f.rf=function(){this.Z&&(this.X.removeEventListener("onAdStateChange",this.F),this.X.removeEventListener("onReady",this.N),this.X.removeEventListener("onStateChange",this.F));null!=this.J&&this.J.dispose()};f.aw=function(){var a=this.G,b={playerVars:Yb(cP),events:{onError:y(this.BF,this),onReady:y(this.fu,this),onAdStateChange:y(this.Jn,this),onStateChange:y(this.Jn,this)}},c=t("YT");this.X=null!=c&&null!=c.Player?new c.Player(a,b):null};
function dP(a,b,c){var d={};if(null!=a.j){var e=a.j.j;null!=e&&(d.agcid=e);e=a.j.A;null!=e&&(d.adformat=e);(e=a.j.k)&&(d.cta_conversion_urls=e);d.iv_load_policy=a.j.B?1:3;a.j.o&&(d.noiba=1);a.j.C&&(d.utpsa=1)}e=WO(b);null===e?d.url_encoded_third_party_media="url="+encodeURIComponent(b)+"&type="+encodeURIComponent(null===c?"":c):d.videoId=e;a.k=!1;a.j&&a.j.g?(a.V=d,a.X.preloadVideoByPlayerVars(a.V)):a.X.cueVideoByPlayerVars(d)}f.BF=function(){this.T("error")};
f.fu=function(){this.g=!0;-1!=this.B&&(this.setVolume(this.B),this.B=-1);null!=this.D&&(dP(this,this.D,this.M),this.M=this.D=null);-1!=this.C&&(this.Gf(this.C),this.C=-1);this.O&&this.play()};f.Jn=function(a){switch(a.data){case 0:this.k?this.T("end"):this.T("error");break;case 1:this.k||(eP(this),this.k=!0,this.T("start"));this.T("play");break;case 2:this.T("pause")}};function fP(a){a.I.Da(a.A,"tick",a.Mq);null!=a.A&&(a.A.stop(),a.A=null)}function eP(a){null!=a.ba&&wn(a.ba)}f.Mq=function(){this.T("timeUpdate")};
f.Oz=function(){this.T("mediaLoadTimeout")};f.lr=function(a,b){this.g&&this.X.addInfoCardXml(a,b)};f.Df=function(){if(!this.g)return null;var a=this.X.getVideoData();return a?a.cpn:null};f.L=function(){fP(this);eP(this);this.rf();this.g=!1;this.I.dispose();this.C=-1;this.M=null;this.O=!1;this.D=null;this.B=-1;this.N=this.X=this.j=null;this.k=!1;this.P="";ZO.H.L.call(this)};q("onYouTubeIframeAPIReady",function(){$O=!0;E(aP,function(a){a()});mb(aP)},window);function gP(a){V.call(this);this.g=a||Va();this.j=[]}B(gP,V);gP.prototype.k=!1;gP.prototype.connect=function(){for(this.k=!0;!lb(this.j);){var a=this.j.shift();this.sendMessage(a.name,a.type,a.data)}};gP.prototype.send=function(a,b,c){this.k?this.sendMessage(a,b,c):this.j.push({name:a,type:b,data:c})};function hP(a,b,c,d,e){lm.call(this,a);this.tc=b;this.nd=c;this.Pq=d;this.o=e}B(hP,lm);hP.prototype.getOrigin=function(){return this.o};hP.prototype.toString=function(){return""};function iP(a,b){gP.call(this,b);this.o=a;this.Cc=null;this.A=new An(this);this.logger=null;this.A.listen(Bd(),"message",this.receive)}B(iP,gP);function jP(a){if(null==a||!w(a)||0!=a.lastIndexOf("ima://",0))return null;a=a.substr(6);try{return cg(a)}catch(b){return null}}iP.prototype.sendMessage=function(a,b,c){null!=this.Cc&&null!=this.Cc.postMessage&&this.Cc.postMessage(kP(this,a,b,c),"*");null!=this.Cc&&null==this.Cc.postMessage&&BL(AL.getInstance(),11)};
iP.prototype.L=function(){this.A.dispose();iP.H.L.call(this)};iP.prototype.receive=function(a){a=a.g;var b=jP(a.data);if(null!=b){if(null==this.Cc)this.Cc=a.source;else if(this.Cc!=a.source)return;var c=b.channel;null!=c&&c==this.o&&(c=b.sid,null!=c&&("*"!=this.g&&c!=this.g||this.T(new hP(b.name,b.type,b.data||{},b.sid,a.origin))))}};function kP(a,b,c,d){var e={};e.name=b;e.type=c;null!=d&&(e.data=d);e.sid=a.g;e.channel=a.o;return"ima://"+eg(e)};function lP(a,b){V.call(this);this.o=a;this.k=b;this.g={};this.j=new An(this);this.j.listen(Bd(),"message",this.A)}B(lP,V);lP.prototype.send=function(a){var b=a.getChannelId();this.g.hasOwnProperty(b)?this.g[b].send(a.type,a.tc,a.nd):a.getChannelId()};function mP(a,b,c,d){a.g.hasOwnProperty(b)||(c=new iP(b,c),a.j.listen(c,a.o,function(a){a=new nP(a.type,a.tc,a.nd,a.Pq,a.getOrigin(),b);this.T(a)}),c.Cc=d,c.connect(),a.g[b]=c)}
lP.prototype.L=function(){this.j.dispose();for(var a in this.g)xi(this.g[a]);lP.H.L.call(this)};lP.prototype.A=function(a){a=a.g;var b=jP(a.data);if(null!=b){var c=b.channel;if(this.k&&!this.g.hasOwnProperty(c)){var d=b.sid;mP(this,c,d,a.source);this.T(new nP(b.name,b.type,b.data||{},d,a.origin,c))}}};function nP(a,b,c,d,e,g){hP.call(this,a,b,c,d,e);this.k=g}B(nP,hP);nP.prototype.getChannelId=function(){return this.k};function oP(){var a=t("google.ima.gptProxyInstance",Bd());if(null!=a)return a;An.call(this);this.k=new lP("gpt",!0);T(this,this.k);this.listen(this.k,"gpt",this.B);this.g=null;pP()||Bd().top===Bd()||(this.g=new lP("gpt",!1),T(this,this.g),this.listen(this.g,"gpt",this.A))}B(oP,An);function pP(){return!!t("googletag.cmd",Bd())}function qP(){var a=t("googletag.console",Bd());return null!=a?a:null}
oP.prototype.B=function(a){var b=a.getOrigin(),c=ze("//imasdk.googleapis.com"),b=ze(b);if(c[3]==b[3]&&c[4]==b[4])if(null!=this.g)mP(this.g,a.getChannelId(),a.Pq,Bd().parent),null!=this.g&&this.g.send(a);else if(c=a.nd,null!=c&&n(c.scope)){var b=c.scope,c=c.args,d;if("proxy"==b)c=a.tc,"isGptPresent"==c?d=pP():"isConsolePresent"==c&&(d=null!=qP());else if(pP())if("pubads"==b||"companionAds"==b){d=a.tc;var e,g=Bd().googletag;if(null!=g&&null!=g[b]&&(g=g[b](),null!=g&&(d=g[d],null!=d)))try{e=d.apply(g,
c)}catch(h){}d=e}else if("console"==b){if(g=a.tc,e=qP(),null!=e&&(g=e[g],null!=g))try{g.apply(e,c)}catch(k){}}else if(null===b){e=a.tc;d=Bd();if(H(["googleGetCompanionAdSlots","googleSetCompanionAdContents"],e)&&(e=d[e],null!=e))try{g=e.apply(d,c)}catch(l){}d=g}n(d)&&(a.nd.returnValue=d,this.k.send(a))}};oP.prototype.A=function(a){this.k.send(a)};function rP(a,b,c,d,e,g,h,k){this.A=a;this.j=b;this.k=c;this.o=h;this.B=d;this.C=e;this.tb=g;this.g=k};function sP(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,k,l,p,r,v){if("%"==p)return"%";var x=c.shift();if("undefined"==typeof x)throw Error("[goog.string.format] Not enough arguments");arguments[0]=x;return tP[p].apply(null,arguments)})}
var tP={s:function(a,b,c){return isNaN(c)||""==c||a.length>=c?a:a=-1<b.indexOf("-",0)?a+Oa(" ",c-a.length):Oa(" ",c-a.length)+a},f:function(a,b,c,d,e){d=a.toString();isNaN(e)||""==e||(d=a.toFixed(e));var g;g=0>a?"-":0<=b.indexOf("+")?"+":0<=b.indexOf(" ")?" ":"";0<=a&&(d=g+d);if(isNaN(c)||d.length>=c)return d;d=isNaN(e)?Math.abs(a).toString():Math.abs(a).toFixed(e);a=c-d.length-g.length;return d=0<=b.indexOf("-",0)?g+d+Oa(" ",a):g+Oa(0<=b.indexOf("0",0)?"0":" ",a)+d},d:function(a,b,c,d,e,g,h,k){return tP.f(parseInt(a,
10),b,c,d,0,g,h,k)}};tP.i=tP.d;tP.u=tP.d;function uP(a,b){V.call(this);this.o=new An(this);this.D=!1;this.F=Va();this.B=new oe;var c=this.F,c=K("iframe",{src:("https:"==document.location.protocol?"https:":"http:")+sP("//imasdk.googleapis.com/js/core/bridge0.0.0_%s.html","en")+"#"+c,style:"border:0; opacity:0; margin:0; padding:0; position:relative;"});En(this.o,c,"load",this.mx);a.appendChild(c);this.j=c;c=this.B.get("*");null==c&&(c=new iP(this.F,"*"),this.D&&(c.Cc=Td(this.j),c.connect()),this.B.set("*",c));this.A=c;this.C=b;this.g=this.C.k;
this.k=null;this.o.listen(this.A,"mouse",this.ox);this.o.listen(this.A,"touch",this.rx);null!=this.g&&(this.o.listen(this.A,"displayContainer",this.nx),this.o.listen(this.A,"videoDisplay",this.qx),this.o.listen(this.g,Ob(QO),this.tx));var c=Bd(),d=t("google.ima.gptProxyInstance",c);null==d&&(d=new oP,q("google.ima.gptProxyInstance",d,c))}B(uP,V);f=uP.prototype;
f.L=function(){this.o.dispose();null!==this.k&&(this.k.dispose(),this.k=null);me(this.B.dc(!1),function(a){a.dispose()});this.B.clear();Ld(this.j);uP.H.L.call(this)};f.ox=function(a){var b=a.nd,c=Gg(this.j),d=document.createEvent("MouseEvent");d.initMouseEvent(a.tc,!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(!ai||uL()||0==document.webkitIsFullScreen)this.j.blur(),window.focus();this.j.dispatchEvent(d)};
function vP(a,b){var c=Gg(a.j),d=F(b,function(a){return document.createTouch(window,this.j,a.identifier,a.pageX+c.x,a.pageY+c.y,a.screenX,a.screenY)},a);return document.createTouchList.apply(document,d)}
f.rx=function(a){var b=a.nd,c=Gg(this.j),d=document.createEvent("TouchEvent");d.initTouchEvent(a.tc,!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,vP(this,b.touches),vP(this,b.targetTouches),vP(this,b.changedTouches),b.scale,b.rotation);this.j.dispatchEvent(d)};
f.qx=function(a){if(null!=this.g){var b=a.nd;switch(a.tc){case "startTracking":this.g.qi();break;case "stopTracking":this.g.rf();break;case "exitFullscreen":this.g.cn();break;case "play":this.g.play();break;case "pause":this.g.pause();break;case "load":this.g.load(b.videoUrl,b.mimeType);break;case "setCurrentTime":this.g.Gf(b.currentTime);break;case "setPlaybackOptions":a=b.playbackOptions,this.g.Pk(new rP(a.adFormat,a.adSenseAgcid,a.ctaAnnotationTrackingEvents,a.showAnnotations,a.viewCountsDisabled,
a.loadVideoTimeout,a.ibaDisabled,a.enablePreloading))}}};
f.tx=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 "mediaLoadTimeout":a="mediaLoadTimeout";break;case "pause":a="pause";b.ended=this.g.re();break;case "play":a="play";break;case "skip":a="skip";break;case "start":a="start";break;case "timeUpdate":a="timeupdate";b.currentTime=this.g.getCurrentTime();b.duration=this.g.ed();break;case "volumeChange":a=
"volumeChange";b.volume=this.g.gd();break;default:return}this.A.send("videoDisplay",a,b)};f.nx=function(a){switch(a.tc){case "showVideo":null!=this.k?KO(this.k):(this.k=new HO,this.o.listen(this.k,"click",this.nC));IO(this.k,wP(this.C));a=this.C;null!=a.g&&a.g.show();break;case "hide":null!==this.k&&(this.k.dispose(),this.k=null),this.C.hide()}};f.nC=function(){this.A.send("displayContainer","videoClick")};f.mx=function(){me(this.B.dc(!1),function(a){a.Cc=Td(this.j);a.connect()},this);this.D=!0};function xP(a,b,c,d){if(null==a||!Sd(qd(a),a))throw fL(DK,null,"containerElement","element");this.A=a;var e=null!=b||null!=d,g=e,h=!1;kL.g||(uL()||ad||Ma(Nc,"CrKey")||yL()||Ma(Nc,"Roku")||xL()||Ma(Nc,"Xbox"))&&e||(sL()||Ma(Nc,"CrKey")||yL()||Ma(Nc,"Roku")||xL()||Ma(Nc,"Xbox")||(h=!0),g=!1);this.B=g;this.D=h||g&&null!=d;kL.g?a=null:(e=K("div",{style:"position:absolute"}),a.insertBefore(e,a.firstChild),a=e);this.j=a;this.g=!this.B&&this.j&&!kL.g&&sL()?new VO(this.j,null):null;a=null;this.B?b?a=new RO(b):
d&&(a=new ZO(d)):this.g&&(a=new RO(this.g.j));this.o=(this.k=a)?c||null:null;this.F=null!=this.o;BL(AL.getInstance(),8,{enabled:this.B,yt:null!=d,customClick:null!=this.o});kL.g&&(b=this.A,kL.k=b);this.C=null==this.j||kL.g?null:new uP(this.j,this)}xP.prototype.initialize=function(){null!=this.g&&this.g.initialize()};xP.prototype.destroy=function(){xi(this.g);xi(this.C);xi(this.k);Ld(this.j)};xP.prototype.hide=function(){null!=this.g&&this.g.hide()};
function wP(a){return a.F&&a.o?a.o:null!=a.g?a.g.k:null};function yP(){V.call(this);this.currentTime=0}B(yP,V);function zP(a){yP.call(this);this.currentTime=a.currentTime;if(!("currentTime"in a)||isNaN(a.currentTime))throw fL(DK,null,"content","currentTime");this.j=a;this.g=new tn(250);this.k=new An(this);Dn(this.k,this.g,"tick",this.o,this)}B(zP,yP);zP.prototype.start=function(){this.g.start()};zP.prototype.stop=function(){this.g.stop()};zP.prototype.L=function(){zP.H.L.call(this);this.k.dispose();this.g.dispose()};
zP.prototype.o=function(){if("currentTime"in this.j&&!isNaN(this.j.currentTime)){var a=this.currentTime;this.currentTime=this.j.currentTime;a!=this.currentTime&&this.T(new lm("currentTimeUpdate"))}else this.T(new lm("contentWrapperError")),this.stop()};function AP(){this.g=0;this.j=null};var BP;
BP={A:["\u0434\u043e \u043d. \u044d.","\u043d. \u044d."],o:["\u0434\u043e \u043d. \u044d.","\u043d. \u044d."],C:"\u042f\u0424\u041c\u0410\u041c\u0418\u0418\u0410\u0421\u041e\u041d\u0414".split(""),O:"\u042f\u0424\u041c\u0410\u041c\u0418\u0418\u0410\u0421\u041e\u041d\u0414".split(""),B:"\u044f\u043d\u0432\u0430\u0440\u044f \u0444\u0435\u0432\u0440\u0430\u043b\u044f \u043c\u0430\u0440\u0442\u0430 \u0430\u043f\u0440\u0435\u043b\u044f \u043c\u0430\u044f \u0438\u044e\u043d\u044f \u0438\u044e\u043b\u044f \u0430\u0432\u0433\u0443\u0441\u0442\u0430 \u0441\u0435\u043d\u0442\u044f\u0431\u0440\u044f \u043e\u043a\u0442\u044f\u0431\u0440\u044f \u043d\u043e\u044f\u0431\u0440\u044f \u0434\u0435\u043a\u0430\u0431\u0440\u044f".split(" "),M:"\u044f\u043d\u0432\u0430\u0440\u044c \u0444\u0435\u0432\u0440\u0430\u043b\u044c \u043c\u0430\u0440\u0442 \u0430\u043f\u0440\u0435\u043b\u044c \u043c\u0430\u0439 \u0438\u044e\u043d\u044c \u0438\u044e\u043b\u044c \u0430\u0432\u0433\u0443\u0441\u0442 \u0441\u0435\u043d\u0442\u044f\u0431\u0440\u044c \u043e\u043a\u0442\u044f\u0431\u0440\u044c \u043d\u043e\u044f\u0431\u0440\u044c \u0434\u0435\u043a\u0430\u0431\u0440\u044c".split(" "),
G:"\u044f\u043d\u0432. \u0444\u0435\u0432\u0440. \u043c\u0430\u0440\u0442\u0430 \u0430\u043f\u0440. \u043c\u0430\u044f \u0438\u044e\u043d\u044f \u0438\u044e\u043b\u044f \u0430\u0432\u0433. \u0441\u0435\u043d\u0442. \u043e\u043a\u0442. \u043d\u043e\u044f\u0431. \u0434\u0435\u043a.".split(" "),P:"\u044f\u043d\u0432. \u0444\u0435\u0432\u0440. \u043c\u0430\u0440\u0442 \u0430\u043f\u0440. \u043c\u0430\u0439 \u0438\u044e\u043d\u044c \u0438\u044e\u043b\u044c \u0430\u0432\u0433. \u0441\u0435\u043d\u0442. \u043e\u043a\u0442. \u043d\u043e\u044f\u0431. \u0434\u0435\u043a.".split(" "),
U:"\u0432\u043e\u0441\u043a\u0440\u0435\u0441\u0435\u043d\u044c\u0435 \u043f\u043e\u043d\u0435\u0434\u0435\u043b\u044c\u043d\u0438\u043a \u0432\u0442\u043e\u0440\u043d\u0438\u043a \u0441\u0440\u0435\u0434\u0430 \u0447\u0435\u0442\u0432\u0435\u0440\u0433 \u043f\u044f\u0442\u043d\u0438\u0446\u0430 \u0441\u0443\u0431\u0431\u043e\u0442\u0430".split(" "),W:"\u0412\u043e\u0441\u043a\u0440\u0435\u0441\u0435\u043d\u044c\u0435 \u041f\u043e\u043d\u0435\u0434\u0435\u043b\u044c\u043d\u0438\u043a \u0412\u0442\u043e\u0440\u043d\u0438\u043a \u0421\u0440\u0435\u0434\u0430 \u0427\u0435\u0442\u0432\u0435\u0440\u0433 \u041f\u044f\u0442\u043d\u0438\u0446\u0430 \u0421\u0443\u0431\u0431\u043e\u0442\u0430".split(" "),
J:"\u0432\u0441 \u043f\u043d \u0432\u0442 \u0441\u0440 \u0447\u0442 \u043f\u0442 \u0441\u0431".split(" "),Ba:"\u0412\u0441 \u041f\u043d \u0412\u0442 \u0421\u0440 \u0427\u0442 \u041f\u0442 \u0421\u0431".split(" "),D:"\u0432\u0441 \u043f\u043d \u0432\u0442 \u0441\u0440 \u0447\u0442 \u043f\u0442 \u0441\u0431".split(" "),N:"\u0412\u041f\u0412\u0421\u0427\u041f\u0421".split(""),I:["1-\u0439 \u043a\u0432.","2-\u0439 \u043a\u0432.","3-\u0439 \u043a\u0432.","4-\u0439 \u043a\u0432."],F:["1-\u0439 \u043a\u0432\u0430\u0440\u0442\u0430\u043b",
"2-\u0439 \u043a\u0432\u0430\u0440\u0442\u0430\u043b","3-\u0439 \u043a\u0432\u0430\u0440\u0442\u0430\u043b","4-\u0439 \u043a\u0432\u0430\u0440\u0442\u0430\u043b"],g:["AM","PM"],j:["EEEE, d MMMM y '\u0433'.","d MMMM y '\u0433'.","d MMM y '\u0433'.","dd.MM.yy"],S:["H:mm:ss zzzz","H:mm:ss z","H:mm:ss","H:mm"],k:["{1}, {0}","{1}, {0}","{1}, {0}","{1}, {0}"],JG:0,V:[5,6],KG:6};function CP(a,b,c,d,e,g){w(a)?(this.k="y"==a?b:0,this.j="m"==a?b:0,this.g="d"==a?b:0,this.o="h"==a?b:0,this.A="n"==a?b:0,this.B="s"==a?b:0):(this.k=a||0,this.j=b||0,this.g=c||0,this.o=d||0,this.A=e||0,this.B=g||0)}CP.prototype.equals=function(a){return a.k==this.k&&a.j==this.j&&a.g==this.g&&a.o==this.o&&a.A==this.A&&a.B==this.B};CP.prototype.clone=function(){return new CP(this.k,this.j,this.g,this.o,this.A,this.B)};
CP.prototype.add=function(a){this.k+=a.k;this.j+=a.j;this.g+=a.g;this.o+=a.o;this.A+=a.A;this.B+=a.B};function DP(a,b,c){ia(a)?(this.g=EP(a,b||0,c||1),FP(this,c||1)):la(a)?(this.g=EP(a.getFullYear(),a.getMonth(),a.getDate()),FP(this,a.getDate())):(this.g=new Date(A()),this.g.setHours(0),this.g.setMinutes(0),this.g.setSeconds(0),this.g.setMilliseconds(0))}function EP(a,b,c){b=new Date(a,b,c);0<=a&&100>a&&b.setFullYear(b.getFullYear()-1900);return b}f=DP.prototype;f.zt=BP.JG;f.At=BP.KG;
f.clone=function(){var a=new DP(this.g);a.zt=this.zt;a.At=this.At;return a};f.getFullYear=function(){return this.g.getFullYear()};f.getMonth=function(){return this.g.getMonth()};f.getDate=function(){return this.g.getDate()};f.getTime=function(){return this.g.getTime()};f.set=function(a){this.g=new Date(a.getFullYear(),a.getMonth(),a.getDate())};
f.add=function(a){if(a.k||a.j){var b=this.getMonth()+a.j+12*a.k,c=this.getFullYear()+Math.floor(b/12),b=b%12;0>b&&(b+=12);var d;t:{switch(b){case 1:d=0!=c%4||0==c%100&&0!=c%400?28:29;break t;case 5:case 8:case 10:case 3:d=30;break t}d=31}d=Math.min(d,this.getDate());this.g.setDate(1);this.g.setFullYear(c);this.g.setMonth(b);this.g.setDate(d)}a.g&&(a=new Date((new Date(this.getFullYear(),this.getMonth(),this.getDate(),12)).getTime()+864E5*a.g),this.g.setDate(1),this.g.setFullYear(a.getFullYear()),
this.g.setMonth(a.getMonth()),this.g.setDate(a.getDate()),FP(this,a.getDate()))};f.equals=function(a){return!(!a||this.getFullYear()!=a.getFullYear()||this.getMonth()!=a.getMonth()||this.getDate()!=a.getDate())};f.toString=function(){return[this.getFullYear(),Pa(this.getMonth()+1),Pa(this.getDate())].join("")+""};function FP(a,b){a.getDate()!=b&&a.g.setUTCHours(a.g.getUTCHours()+(a.getDate()<b?1:-1))}f.valueOf=function(){return this.g.valueOf()};function GP(){this.j=this.g=null};function HP(){this.g=IP();this.F=-1;this.J=this.M=this.k=this.D=this.o=null;this.B=IP();this.j=null;this.N=this.G=this.I="";this.C=this.O=this.A=null}function IP(){return Math.floor(4503599627370496*Math.random())}var JP=new HP;HP.prototype.clear=function(){this.g=IP();this.k=this.D=this.o=null;this.B=IP();this.j=null;this.N=this.G=this.I="";this.C=this.O=this.A=null};function KP(a){if(kL.g)return"h.3.0.0";var b="h."+a.N;null!=a.A&&(b+="/n."+a.A,null!=a.o&&(b+="/"+a.o));return b};function LP(a,b){this.B=a;this.A=F(b,function(a){return a.clone()});this.o="";this.g=this.k=0;this.j=!0}function MP(a){a.o="";a.k=0;a.g=0;a.j=!0}LP.prototype.getContent=function(){return this.o};LP.prototype.clone=function(){var a=new LP(this.B,this.A),b=this.k,c=this.g,d=this.j;a.o=this.o;a.k=b;a.g=c;a.j=d;return a};function NP(){V.call(this);this.o=!1;this.impressionUrls=[]}B(NP,V);function OP(a){lm.call(this,a)}B(OP,lm);function PP(){NP.call(this);this.D=[];this.A=!1;this.k="not_loaded";this.j=null;this.B=0;this.g=null;this.F=new pd}B(PP,NP);da(PP);function QP(a){var b=["googletag","googletag.cmd"];return G(a,function(a){return hb(b,function(b){return!fa(t(b,a))})})||null}f=PP.prototype;f.L=function(){this.j&&this.j.dispose()};f.initialize=function(){if(!this.o){var a;var b=ge(new pd);try{t("googletag"),QP([b,b.top]),a=!0}catch(c){a=!1}a?RP(this):(this.o=!0,this.k="not_available")}};
function SP(a){return a.o?F(a.D,function(a){return a.clone()}):[]}function TP(a){a=SP(a);return null!=a?F(a,function(a){return a.A}):void 0}function UP(a,b,c){var d=0,e=0;null!=b&&(b=new L(b.adTagUrl),d=Number(jf(b,"pod")||0),e=Number(jf(b,"ppos")||0));if(null!=a.setVideoSessionInfo)try{a.setVideoSessionInfo(JP.g,"","","",d,e,c)}catch(g){}}function VP(a,b){var c=WP(a);if(null!==c){UP(c,b,!0);try{c.refreshAllSlots()}catch(d){}}}
f.setVideoContent=function(a,b){var c=XP(this);if(null!=c)try{c.setVideoContent(a,b)}catch(d){}};function YP(a,b){a.C=b;a.setVideoContent("","");var c=WP(a);UP(c,null,!1)}function WP(a){null==a.g&&ZP(a);return null!=a.g&&null!=a.g.googletag&&null!=a.g.googletag.companionAds?a.g.googletag.companionAds():null}function XP(a){null==a.g&&ZP(a);return null!=a.g&&null!=a.g.googletag&&null!=a.g.googletag.pubads?a.g.googletag.pubads():null}
f.xp=function(){0<this.B&&A()>=this.B?(this.o=!0,$P(this),aQ(this)):RP(this)};function $P(a){a.j&&(a.j.stop(),a.j.Da("tick",a.xp,!1,a),a.j.dispose(),a.j=null)}
function RP(a){var b;if(b=!a.A)ZP(a),b=null!=a.g&&null!=a.g.googleGetCompanionAdSlots;if(b){var c;try{if(null==a.g)a.A=!0,c=[];else{var d=a.g.googleGetCompanionAdSlots();c=F(d,a.ux,a)}}catch(e){a.A=!0,c=[]}a.D=c;a.A=!0}if("retrieved"!=a.k&&"not_available"!=a.k&&!fa(WP(a))){var g;b=WP(a);if(null!==b&&null!=b.getDisplayAdsCorrelator)try{g=b.getDisplayAdsCorrelator()}catch(h){g=null}else g=null;switch(g){case "not_loaded":case "not_available":a.k=g;break;default:g=Number(g),isNaN(g)?a.k="not_available":
(a.C=g,a.k="retrieved")}}a.A&&"retrieved"==a.k?(a.o=!0,$P(a),a.T(new OP("companions_success"))):a.A&&"not_available"==a.k?(a.o=!0,$P(a),aQ(a)):a.j||(a.B=A()+5E3,a.j=new tn(100),a.j.listen("tick",a.xp,!1,a),a.j.start())}function ZP(a){var b=ge(a.F);try{a.g=QP([b,b.top])}catch(c){a.g=null}}function aQ(a){a.T(new OP("companion_initialization_failed"))}f.ux=function(a){var b=F(a.adSizes,function(a){return new J(a.adWidth,a.adHeight)});return new LP(a.slotId,b)};
f.vA=function(a){var b={};b.slotId=a.B;b.adContent=a.getContent();b.adWidth=a.k;b.adHeight=a.g;b.friendlyIframeRendering=a.j;return b};f.sendImpressionUrls=function(a){sK(this.impressionUrls,a)};function bQ(a){lm.call(this,a)}B(bQ,lm);function cQ(){V.call(this);this.k=[]}B(cQ,V);cQ.prototype.mu=function(){return!0};function dQ(){return new eQ("empty-ad","GDFP","GDFP","",0,0,0,[],[],[],[],new oe)}cQ.prototype.je=function(){return null};function fQ(a){cQ.call(this);this.g=a;this.B=null;this.C=!1;this.j=null;this.A=new An;Dn(this.A,this.g,["companions_success","companion_initialization_failed"],this.Iz,this);Dn(this.A,this.g,"companion_display_error",this.Hz,this);this.g.o?this.C=!0:this.g.initialize()}B(fQ,cQ);f=fQ.prototype;f.destroy=function(){null!=this.A&&this.A.dispose();this.j=null};function gQ(a,b){a.j=b;a.o=!0;a.C?hQ(a):(a.o=iQ(jQ(b),[]),a.o||(a.j=null))}
function hQ(a){var b=a.j;a.j=null;if(null!=a.g)if(lb(a.k))kQ(a);else if(null!=b){var c=lQ(a,b),d=a.g;try{d.g.googleSetCompanionAdContents(F(a.k,d.vA,d)),d.sendImpressionUrls()}catch(e){d.T(new OP("companion_display_error"))}if(0<c.length&&b.ja&&(d=a.g,0!=c.length&&"GDFP"==mQ(b)[0])){a=[];for(var g=0;g<c.length;g++)a.push(c[g].B);b=b.k;c=WP(d);if(null!==c){UP(c,b,!1);try{c.notifyUnfilledSlots(a)}catch(h){}}}}else kQ(a)}function kQ(a){a.T(new bQ("companion_display_error"))}f.mu=function(){return this.o};
f.Iz=function(){null!=this.B&&(this.B.stop(),this.B.dispose(),this.B=null);if(null!=this.g){var a=SP(this.g);null!=a&&(this.k=a)}this.C=!0;null!=this.j&&hQ(this);this.T(new lm("initialized"))};f.Hz=function(){kQ(this)};
function lQ(a,b){var c=[],d=[];E(a.k,function(a){MP(a);gb(a.A,function(d){t:{var e=nQ(b);d=oQ(new pQ(new J(d.width,d.height)),e);if(!lb(d)&&(d=qQ(d,c),null!=d)){e=d.k;if(null!=e&&0!=a.B.indexOf(e)){d=!1;break t}c.push(d);var e=d.getContent(),l=d.g.fd(),p=d.getHeight();d="IFrame"!=d.g.Ba;a.o=e;a.k=l;a.g=p;a.j=d;d=!0;break t}d=!1}return d},this)||d.push(a)},a);var e=jQ(b);a.o=iQ(e,c);a.o||E(a.k,function(a){MP(a)},a);return d}
function iQ(a,b){if(null==a)return!0;var c=a.g;return"all"==a.j?rQ(c,b):"any"==a.j?sQ(c,b):!0}function jQ(a){return null==a||null==a.g||isNaN(a.g.g)?null:G(tQ(a,!0),function(a){a=a.g;return lb(a)?!1:isNaN(a[0].g.g)?!1:a[0].g.g==uQ(a[0])})}function rQ(a,b){return hb(a,function(a){return H(b,a)})}function sQ(a,b){return gb(a,function(a){return H(b,a)})}function qQ(a,b){return G(a,function(a){return!H(b,a)})}f.je=function(){return this.g};function vQ(a){lm.call(this,a);this.B=[];this.A={};this.k=null;this.o=!0}B(vQ,lm);function wQ(){this.j=new oe;this.g=.01>Math.random()&&!nL();this.k=0}da(wQ);wQ.prototype.start=function(a){this.g&&this.j.set(a,A())};wQ.prototype.end=function(a){if(this.g&&qe(this.j,a)){var b=A()-this.j.get(a);qK(xQ(a,b));this.j.remove(a);this.k+=b}};function xQ(a,b){return"https://csi.gstatic.com/csi?v=2&s=ima_sdk&action=html5&it="+a+"."+b};function yQ(a,b,c){this.B=b;this.o=c;this.A=null;this.j=new An(this);this.G=a;this.k=this.g=null;this.C=!1}yQ.prototype.start=function(a,b){this.A=a;this.F=b;zQ(this);this.B.C?this.D():Gn(this.j,this.B,"initialized",this.D,this)};yQ.prototype.D=function(){var a=this.B.je(),b;b=a.o?"retrieved"!=a.k?void 0:a.C:void 0;a=TP(a);null!=b&&(this.o.B=b);null!=a&&(this.o.C=a);AQ(this)};
function AQ(a){if(null===a.A)BQ(a);else{var b=new L(a.A.adTagUrl),c=D(jf(b,"vid")),b=D(jf(b,"cmsid")),d=a.o.I,e=a.o.G;a.o.I=c;a.o.G=b;if(C(D(c))||C(D(b)))BQ(a);else if(c==d&&b==e)BQ(a);else{var g=a.B.je();g.setVideoContent(c,b);VP(g,a.A);a.k=new tn(100);Dn(a.j,a.k,"tick",function(){var a;t:{var b=XP(g);if(null!=b)try{a=!1!==b.isAdRequestFinished();break t}catch(c){a=!0;break t}a=!1}a&&BQ(this)},a);a.k.start()}}}
function zQ(a){a.g=new tn;Gn(a.j,a.g,"tick",function(){BQ(this)},a);un(a.g,a.G);a.g.start()}function BQ(a){null!=a.j&&(a.j.dispose(),a.j=null);null!=a.g&&(a.g.stop(),a.g=null);null!=a.k&&(a.k.stop(),a.k=null);a.C=!0;null===a.F||a.F()};function CQ(){};function DQ(a){return dL(WK,null,a.parentNode.nodeName,a.nodeName)}function EQ(a){return dL(LK,null,a.parentNode.nodeName,a.nodeName)}function FQ(a,b){return null!=a?eb(Nd(a),function(a){return a.nodeName==b}):[]}function GQ(a,b){var c=a.getAttribute(b);return null!=c?c.toLowerCase():null}function HQ(a,b){if(null==a)return null;var c="";E(a.childNodes,function(a){if(4==a.nodeType||3==a.nodeType)c+=a.nodeValue});c=wa(c);return b?Ha(c):c}
function IQ(a,b,c,d){null!=a&&E(Nd(a),function(a){if(a.nodeName==b)c.call(d,a);else throw DQ(a);})}function JQ(a){return C(D(a))?NaN:Wa(D(a))}function KQ(a,b){if(null!=a){var c=a.split(":");if(3==c.length)return c=new CP(0,0,0,Wa(c[0]),Wa(c[1]),Wa(c[2])),60*(60*(24*c.g+c.o)+c.A)+c.B}return null!=b?b:-1}function LQ(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};function MQ(a,b,c){this.j=a;this.g=c;this.k=b};function NQ(a){this.k=a};function OQ(a){this.k=a;this.j=this.g=!1}B(OQ,NQ);function PQ(a,b,c){this.g=a;this.j=b;this.k=c};function QQ(){this.g=new oe}function RQ(a,b,c){if(isNaN(c))throw Error("Incorrect time offset.");var d=[];qe(a.g,c)&&(d=a.g.get(c,[]));E(b,function(a){null!=a&&nb(d,a)});a.g.set(c,d)};function SQ(a,b){this.g=a;this.j=b}B(SQ,CQ);SQ.prototype.k=function(){return new MQ(this.g,null,TQ(this))};
function TQ(a){var b=new QQ;E(Nd(Od(a.g)),function(a){switch(a.nodeName){case "Preroll":a=UQ(this,a);RQ(b,a,0);break;case "Midroll":var d=GQ(a,"timeOffset"),e=KQ(d);if(-1==e)throw dL(xK,null,"timeOffset",D(d));a=UQ(this,a);RQ(b,a,e);break;case "Postroll":a=UQ(this,a);RQ(b,a,-1);break;default:throw dL(HK,null,a.parentNode.nodeName,a.nodeName);}},a);if(0==b.g.Ka().length)throw dL(GK);return b}
function UQ(a,b){var c=[];E(Nd(b),function(a){switch(a.nodeName){case "Ad":var b=D(HQ(a));if(!C(b)){a=GQ(a,"bumper");var g=this.j.clone();g.adTagUrl=b;b=new OQ(g);b.g=null!=a;b.j="always"==a;nb(c,b)}break;default:throw dL(HK,null,a.parentNode.nodeName,a.nodeName);}},a);return c};function VQ(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)}function WQ(a){var b={};E(a.split(","),function(a){var d=a.split("=");2==d.length&&(a=wa(d[0]),d=wa(d[1]),0<a.length&&(b[a]=d))});return b};var XQ=["ai","sigh"];function YQ(a,b){if(b)return a;var c;c=null!=a&&/(doubleclick.net|googleadservices.com)/.test(a)?Ia(a,"/pagead/adview")?ZQ(a)?0:2:Ia(a,"/pagead/conversion")?ZQ(a)?1:2:2:2;if(0==c||1==c){c="&sdkv="+KP(JP);var d=a.indexOf("&adurl=");c=-1!=d?Qa(a.substr(0,d),c,a.substr(d,a.length)):a+c}else c=a;return c}function ZQ(a){return hb(XQ,function(b){var c=a||"";return 0<=Ke(c,0,b,c.search(Le))})};function $Q(a,b){this.g=a;this.j=b}function aR(a){return a.j?-1:a.g}function bR(a,b){a.j&&(a.j=!1,a.g=a.g*b/100)};function cR(){this.g=new oe}function dR(a,b){this.k=a;this.g=b}function eR(a,b){dR.call(this,"progress",a);this.j=b}B(eR,dR);function fR(a,b){E(b,function(a){var b=a.k.toLowerCase(),e=gR(this,b);e.push(a);this.g.set(b,e)},a)}function hR(a,b,c,d){b=b.toLowerCase();var e=gR(a,b);null!=d?(d=new eR(c,d),null!=d?e.push(d):e.push(new dR(b,c))):e.push(new dR(b,c));a.g.set(b,e)}function gR(a,b){return null!=b?a.g.get(b.toLowerCase())||[]:[]}
function iR(a,b){var c=gR(a,"progress");E(c,function(a){bR(a.j,b)});zb(c,function(a,b){return aR(a.j)-aR(b.j)})}cR.prototype.isEmpty=function(){return this.g.isEmpty()};function jR(a,b){return F(gR(a,b)||[],function(a){return a.g})};function kR(a,b){var c=new cR;IQ(a,"Tracking",function(a){var e=GQ(a,"event"),g=YQ(HQ(a),b);lR(g)&&null!=e&&("progress"==e?(a=GQ(a,"offset"),a=mR(a),null!=a&&hR(c,e,g,a)):hR(c,e,g))});return c}function nR(a){if(C(D(a)))return null;a=new L(a);if("thismessage"!=a.Hb||"extensions"!=a.nb)return null;a=a.Ib;if(0!=a.lastIndexOf("/",0))return null;a=a.substr(1);return C(D(a))?null:a}
function mR(a){if(C(D(a)))return null;var b=null;0<a.indexOf("%")?(a=Number(a.substr(0,a.indexOf("%"))),!isNaN(a)&&0<=a&&(b=new $Q(a,!0))):(a=KQ(a),0<=a&&(b=new $Q(a,!1)));return b}function lR(a){var b=!0;if(C(D(a)))b=!1;else try{new L(a)}catch(c){b=!1}return b};function oR(a,b){this.g=null!=a?a:new cR;this.C=null!=b?b:[]}function pR(a,b){var c=b.g;E(c.Ka(),function(a){fR(this.g,c.get(a))},a)}function qR(a,b){var c=jR(a.g,b);return null!=c?c:[]};function rR(){this.g="Ads by Google";this.j="http://www.google.com/adsense/support";this.k=0};function sR(a,b,c,d,e,g,h,k,l,p){oR.call(this,l,p);this.o=a;this.A=b;this.j=c;this.D=h;this.B=g;this.k=e}B(sR,oR);function tR(){}tR.prototype.parse=function(a){var b;IQ(a,"config",function(a){null!=b||(b=uR(this,a))},this);return b};function uR(a,b){var c;E(Nd(b),function(a){switch(a.nodeName){case "context":c="default"==a.getAttribute("data")?new rR:null;break;case "params":null!=c&&vR(this,c,a)}},a);return c}function vR(a,b,c){E(Nd(c),function(a){var c=a.attributes[0].value;switch(a.nodeName){case "attribution_url":b.j=c;break;case "attribution_text":b.g=c;break;case "signals":b.k=parseInt(c,10)}},a)};function wR(){}
wR.prototype.parse=function(a){if(null==a)return null;var b,c,d,e,g,h,k,l=!1;E(Nd(a),function(a){switch(a.nodeName){case "AttributionText":c=HQ(a);break;case "AttributionUrl":d=HQ(a);break;case "ConversionUrl":g=HQ(a);break;case "CustomTracking":null!=Nd(a)&&(e=kR(a));break;case "CheckedEvents":a=Nd(a);b=F(a,function(a){return GQ(a,"id")});null!=b||(b=[]);break;case "PreviousAdInformation":HQ(a);break;case "VisibleUrl":h=HQ(a);break;case "UI":k=(new tR).parse(a);break;case "ShowYouTubeAnnotations":var r=HQ(a);
l=LQ(D(r),!1);case "QueryId":HQ(a)}},this);null!=k||(k=new rR);return new sR(c,d,g,0,h,k,l,0,e,b)};function xR(a,b){oR.call(this,b);this.j=a}B(xR,oR);function yR(){}yR.prototype.parse=function(a){if(null==a)return null;var b;E(Nd(a),function(a){switch(a.nodeName){case "CustomTracking":null!=Nd(a)&&(b=kR(a))}});a=null;null!=b&&0<gR(b,"skip").length&&(a="Generic");return new xR(a,b)};function zR(){}zR.prototype.parse=function(a){if(null==a)return null;var b,c;E(Nd(a),function(a){switch(a.nodeName){case "SkippableAdType":b=HQ(a);break;case "CustomTracking":null!=Nd(a)&&(c=kR(a))}});return new xR(b,c)};function AR(){}AR.prototype.parse=function(a){if(null==a)return null;var b;E(Nd(a),function(a){switch(a.nodeName){case "CustomTracking":null!=Nd(a)&&(b=kR(a))}},this);return new oR(b)};function BR(a){oR.call(this);this.j=a}B(BR,oR);function CR(){}CR.prototype.parse=function(a){a=YF(a);return C(D(a))?null:new BR(a)};function DR(a){oR.call(this);this.j=a}B(DR,oR);function ER(){oR.call(this)}B(ER,oR);function FR(){}FR.prototype.g={DE:"TEMPLATE_PARAMETERS",EE:"TEMPLATE_URL"};FR.prototype.parse=function(a){if(null==a)return null;E(Nd(a),function(a){switch(a.nodeName){case this.g.DE:GR(this,a)}},this);return new ER};function GR(a,b){E(Nd(b),function(a){a.nodeName==this.g.EE&&HQ(a)},a)};function HR(a,b,c,d){oR.call(this);this.k=a;this.o=b;this.A=c;this.j=d}B(HR,oR);function IR(){}IR.prototype.g={xE:"Line1",yE:"Line2",zE:"Line3",wE:"ImageUrl"};IR.prototype.parse=function(a){if(null==a)return null;var b,c,d,e;E(Nd(a),function(a){switch(a.nodeName){case this.g.xE:b=HQ(a,!0);break;case this.g.yE:c=HQ(a,!0);break;case this.g.zE:d=HQ(a,!0);break;case this.g.wE:e=HQ(a)}},this);return new HR(b,c,d,e)};function JR(a){oR.call(this);this.j=a}B(JR,oR);function KR(){}KR.prototype.parse=function(a){if(null==a)return null;a=a.getAttribute("sequence");a=null!=a?Wa(a):NaN;a=isNaN(a)?-1:a;return new JR(a)};function LR(){oR.call(this)}B(LR,oR);function MR(){}MR.prototype.parse=function(a){return null!=a?new LR:null};function NR(a){oR.call(this);this.j=isNaN(a)?-1:a}B(NR,oR);function OR(){}OR.prototype.parse=function(a){if(null==a)return null;a=a.getAttribute("fallback_index");a=null!=a?Wa(a):NaN;return new NR(a)};function PR(a,b,c,d){this.xa=a;this.g=Ic(c||0,0,1);this.j=null!=d?d:!0}PR.prototype.getId=function(){return this.xa};function QR(a){this.xa=a;this.j=new oe;this.g=null}function RR(a){var b=Math.random(),c=0,d=a.j.La();E(d,function(a){c+=a.g},a);var e=1<c?c:1;a.g=null;for(var g=0,h=0;h<d.length;++h)if(g+=d[h].g,g/e>=b){a.g=d[h];break}};function SR(){this.g=new oe;TR(this,41351068);TR(this,41351069);UR(this)}var VR=null;function WR(){VR||(VR=new SR);return VR}function TR(a,b){if(!(C(D("GvnExternalLayer"))||isNaN(b)||0>=b)){var c=new PR(b,0,.1);XR(a,"GvnExternalLayer").j.set(c.getId(),c)}}function UR(a){jL()||E(a.g.La(),function(a){RR(a)},a)}function YR(a,b,c){E(b,function(a){var b=Number(a),g="forcedLayer"+a;isNaN(b)||0>=b||C(D(g))||(a=null!=c?c:!0,g=XR(this,g),b=new PR(b,0,0,a),g.g=b)},a)}
function ZR(a){var b=WR();return gb(b.g.La(),function(b){return!!b.g&&b.g.getId()==a})}function $R(a){var b=[];E(a.g.La(),function(a){(a=a.g)&&a.j&&b.push(a.getId())});return b.sort().join(",")}function XR(a,b){var c=a.g.get(b);null==c&&(c=new QR(b),a.g.set(b,c));return c};function aS(a){if(ZR(947225)){if(a&&a.items&&a.items.length){a=a.items[0];this.channelId=a.id;var b=a.snippet;b&&(this.j=b.title,this.g=Qb(b,"thumbnails","default","url"));if(a=a.statistics)this.videoCount=a.videoCount}}else bS(this,a)}aS.prototype.videoCount=0;
function bS(a,b){if(b){var c=b.entry;if(c){var d=c.id;d&&gb(d.$t.split(":"),function(a,b,c){return"channel"==a?(this.channelId=c[b+1],!0):!1},a);(d=c.author)&&d[0]&&d[0].name&&(a.j=d[0].name.$t);(c=c.media$thumbnail)&&c[0]&&(a.g=c[0].url)}}};function cS(a){if(ZR(947225)){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.g="unlisted"!=a.privacyStatus}}else dS(this,a)}cS.prototype.g=!0;
function dS(a,b){if(b){var c=b.entry;if(c){var d=c.id;d&&gb(d.$t.split(":"),function(a,b,c){return"video"==a?(this.videoId=c[b+1],!0):!1},a);if(d=c.title)a.title=d.$t;if(d=c.media$group)if(d=d.yt$uploaderId)a.channelId=d.$t;c.yt$accessControl&&(c=G(c.yt$accessControl,function(a){return"list"==a.action}))&&(a.g="denied"!=c.permission)}}};function eS(){}var fS={Ju:"Image",LG:"Flash",CG:"All"},gS={HTML:"Html",LI:"IFrame",sK:"Static",CG:"All"},hS={MI:"IgnoreSize",dK:"SelectExactMatch",eK:"SelectNearMatch"};function iS(){V.call(this);this.g=new oe;this.j=null;this.o=new An(this);T(this,this.o);this.A="";this.k=null}B(iS,V);var jS=null;function kS(){null!=jS||(jS=new iS);return jS}function lS(a,b){a.k=b}
function mS(a,b,c,d){if(a.j){var e=a.g,g=window.setTimeout(function(){d("");E(e.Ka(),function(a){e.get(a)===d&&e.remove(a)})},200);a.g.set(g,d);var h={};a.B&&(h.isFullscreen=a.B.ge());a.A&&(h.osdId=a.A);h.queryId=c;h.timeoutId=g;h.vastEvent=b;h.isOverlay=null!=a.k;h.isOverlay&&(h.overlayOffset=zO(a.k));a.j.send("activityMonitor","reportVastEvent",h)}else d("")}iS.prototype.destroy=function(){this.o.Da(this.j,"activityMonitor",this.C);this.j=null};
iS.prototype.C=function(a){var b=a.nd;switch(a.tc){case "viewableImpression":a=b.viewabilityString;var c={};c.queryId=b.queryId;c.viewabilityString=a;kS().T(new TJ("viewable_impression",null,c));break;case "viewability":if(a=b.timeoutId,window.clearTimeout(a),c=this.g.get(a))this.g.remove(a),c(b.viewabilityString)}};q("ima.bridge.getNativeViewability",function(a,b){kS();b({})},void 0);function pQ(a){if(null==a||0>=a.width||0>=a.height)throw fL(DK,null,"ad slot size",a.toString());this.j=a;this.g=new eS;this.A=nS(gS,this.g.k)?this.g.k:"All";this.o=nS(fS,this.g.creativeType)?this.g.creativeType:"All";this.C=nS(hS,this.g.o)?this.g.o:"SelectExactMatch";this.k=null!=this.g.j?this.g.j:[];this.B=ia(this.g.g)&&0<this.g.g&&100>=this.g.g?this.g.g:90}
function oQ(a,b){var c=[];E(b,function(a){!C(D(a.g.o))&&(isNaN(a.g.g)||isNaN(uQ(a))||uQ(a)==a.g.g)&&oS(this,a)?c.push(a):(a=pS(this,a),null!=a&&!C(D(a.g.o))&&c.push(a))},a);return c}
function oS(a,b){var c;if(c="Flash"!=b.getContentType()||gM){if(c="All"==a.A||a.A==b.g.Ba)c=b.getContentType(),c=null!=c?"All"==a.o||a.o==c:!0;c&&(c=b.k,c=lb(a.k)?!0:null!=c?0<=cb(a.k,c):!1)}c?(c=b.g.Dc(),c="IgnoreSize"==a.C||Mc(a.j,c)?!0:"SelectNearMatch"==a.C&&(c.width>a.j.width||c.height>a.j.height||c.width<a.B/100*a.j.width||c.height<a.B/100*a.j.height?!1:!0)):c=!1;return c}function pS(a,b){var c=b.j;return null!=c?G(c,function(a){return oS(this,a)},a):null}
function nS(a,b){return null!=b&&Nb(a,b)};function qS(a){L.call(this,a);this.j=new oe;a=this.Ib;var b=a.indexOf(";"),c=null;0<=b?(Ue(this,a.substring(0,b)),c=a.substring(b+1)):Ue(this,a);rS(this,c)}B(qS,L);qS.prototype.toString=function(){return sS(this,qS.H.toString.call(this))};qS.prototype.Xp=function(){return""};qS.prototype.jf=function(){return""};
function rS(a,b){C(D(b))||E(b.split(";"),function(a){var b=a.indexOf("=");if(0<b){var e=ya(a.substring(0,b));a=ya(a.substring(b+1));b=this.j.get(e);null!=b?H(b,a)||b.push(a):b=[D(a)];this.j.set(e,b)}},a)}function tS(a){if(C(D("ord")))return null;a=a.j.get("ord");return null!=a?a:null}function uS(a,b,c){C(D(b))||(c=F(c,D),a.j.set(b,c))}function sS(a,b){var c=[D(b)];tb(c,vS(a));return c.join(";")}
function vS(a){var b=tS(a);null!=b?C(D("ord"))||a.j.remove("ord"):b=[D(A())];var c=[];E(a.j.Ka(),function(a){E(this.j.get(a),function(b){tb(c,a+"="+b)})},a);tb(c,"ord="+b[0]);uS(a,"ord",b);return c}qS.prototype.clone=function(){return new qS(this.toString())};function wS(a){a=a.adTagUrl;if(null==a)return!1;a=new L(a);var b=a.Ib;return va(a.nb,"googleads.g.doubleclick.net")&&xS("/pagead/ads",b)}function yS(a){a=a.adTagUrl;return null!=a?"bid.g.doubleclick.net"==cf(new L(a)):!1}function zS(a){a=a.adTagUrl;if(null==a)return!1;var b=new qS(a);a=b.nb;b=sS(b,b.Ib);return!va(a,".g.doubleclick.net")&&va(a,"doubleclick.net")&&xS("/(ad|pfad)[x|i|j]?/",b)}
function AS(a){a=a.adTagUrl;if(null==a)return!1;a=new L(a);var b=a.Ib;return va(a.nb,"doubleclick.net")&&xS("/gampad/ads",b)}function xS(a,b){return C(D(b))?!1:(new RegExp(a)).test(b)};function BS(){this.g=this.k=1;this.A=this.j=0;this.o=1};function CS(){this.D={};this.S="";this.Kf=new cR}CS.prototype.Bn=function(){return null};function DS(a,b,c){a.S=b;a.D=c}CS.prototype.pg=function(a){this.Z=a};CS.prototype.getAd=function(){return this.Z};function ES(a,b){var c=[],d=a.J();E(d,function(a){a=gR(a.Kf,b)||[];c=rb(a,c)},a);return c}CS.prototype.J=function(){for(var a=[this],b=this.Z.j;b;){var c=FS(this,b)||FS(this,b,!0);null!=c&&a.push(c);b=b.j}return a};
function FS(a,b,c){var d=c||!1;return G(b.o,function(a){var b=a.g==this.g;return a instanceof this.constructor&&(d||b)},a)};function GS(a,b,c,d,e,g){CS.call(this);this.ba=a;this.k=b;this.j=c;this.G=sb(d);this.ga=this.ka=null;this.o=e;this.ja=sb(g);wb(this.ja,null,function(a){return a.F})}B(GS,CS);GS.prototype.Tc=function(){return this.k};function HS(a){var b=new oe,c=a.J();E(c,function(a){if(a instanceof GS){var c=a.j;E(c.Ka(),function(a){b.set(a,rb(c.get(a),b.get(a)||[]))},this)}},a);return b}
GS.prototype.getMediaUrl=function(a){var b="";gb(this.G,function(c){var d=c.j;return!C(D(a))&&a!=c.g||null==d||C(D(d))?!1:(b=d,!0)},this);return b};GS.prototype.setMediaUrl=function(a){this.ga=a};GS.prototype.Bn=function(){var a=G(this.G,function(a){return!C(D(a.g))&&-1!=a.g.indexOf("javascript")&&("VPAID"==a.k||"surveys"==a.k)});return null!=a?a.j:null};function IS(a,b,c){S.call(this);this.j=a;this.k=b;this.o=c;this.B=0;this.g=new An(this);JS(this)}B(IS,S);function JS(a){a.o.forEach(function(a,c){this.g.listen(c,"mousedown",this.C);this.g.listen(c,"mouseup",this.F)},a);a.g.listen(a.k,"mouseover",a.D)}IS.prototype.C=function(){this.A=A()};
IS.prototype.F=function(a){var b=null!=a.target.href?a.target:a.target.parentNode,c=[];this.j&1&&c.push("nm="+this.B);this.j&2&&c.push("nb="+this.o.get(b));if(this.j&8){var d=Gg(this.k);c.push("nx="+(a.clientX-d.x));c.push("ny="+(a.clientY-d.y))}this.j&16&&null!=this.A&&c.push("clkt="+(A()-this.A));0<c.length&&(b.href+=0<=b.href.indexOf("?")?"&"+c.join("&"):"?"+c.join("&"))};IS.prototype.D=function(){this.B++};IS.prototype.L=function(){IS.H.L.call(this);this.g.dispose()};function KS(a,b,c,d,e){CS.call(this);C(D(a))&&(a=Va()+"_ima");this.xa=D(a);this.ma=b;this.Ba=c;this.P=d;this.o=e;this.U=[];null!=this.P?this.V=bK[this.P]||"Other":this.V=null}B(KS,CS);f=KS.prototype;f.getContent=function(){var a;a=this.De();if("outerHTML"in a)a=a.outerHTML;else{var b=qd(a).createElement("div");b.appendChild(a.cloneNode(!0));a=b.innerHTML}return a};f.getContentType=function(){return this.V};f.Dc=function(){return this.ma};f.fd=function(){return this.Dc().width};f.getHeight=function(){return this.Dc().height};
f.Bn=function(){return"VPAID"==this.F?this.o:null};f.Tc=function(){return this.M};function LS(a,b,c,d,e){KS.call(this,a,b,c,d,e);this.fb=-2;this.k=null;this.O=this.I=u;this.N=[];this.ha=!0;this.W=[];this.C=!1}B(LS,KS);function MS(a,b){a.k=b;null!=a.j&&null!=b&&(NS(a,a.I),OS(a,a.O))}function NS(a,b){null!=a.k&&null!=a.j&&E(a.N,function(a){this.k.Da(a,"click",this.I);C(D(this.Tc()))||this.k.listen(a,"click",b)},a);a.I=b}function OS(a,b){null!=a.k&&null!=a.j&&(a.k.Da(a.j,"creativeview",a.O),a.k.listen(a.j,"creativeview",b));a.O=b}
function PS(a){E(a.W,function(a){Ld(rd(a))},a);a.W=[]}LS.prototype.A=function(a){null==this.k||C(D(this.Tc()))||(this.k.listen(a,"click",this.I),this.N.push(a))};LS.prototype.De=function(){null==this.j&&(this.j=this.sf(),Id(this.j,QS(this)));null!=this.k&&this.k.listen(this.j,"creativeview",this.O);return this.j};
function RS(a,b){var c=a.xa,d={};d.style="cursor:default;position:relative;z-index:1001;height:"+a.getHeight()+"px;";"Text"!=a.getContentType()&&(d.style+="width:"+a.fd()+"px");C(D(c))||(d.id=c);return K("div",d,b)}LS.prototype.St=function(){return 2};
function QS(a){if(!a.ha)return null;var b=ES(a,"start");tb(b,ES(a,"creativeview"));if(null!=b&&!lb(b)){var c=[];E(b,function(a){if(!C(D(a))){var b;b=od().jE("iframe",{frameborder:0,style:"border:0;vertical-align:bottom;",src:'javascript:""'});vg(b,{display:"block",height:"0px",width:"0px"});var g="iframe"+Math.floor(1E9*Math.random());b.setAttribute("height",0);b.setAttribute("width",0);b.setAttribute("src",oK(a.g));b.setAttribute("id",g);this.W.push(g);nb(c,b)}},a);return c}return null}
function SS(a,b){if(null!=a.j){var c=new oe;E(a.N,function(a){c.set(a,this.St(a))},a);new IS(b,a.j,c)}}function TS(a){var b=[],c=a.J();E(c,function(a){b=rb(b,a.U)},a);return b}LS.prototype.J=function(){var a=[this],b;for(b=this.getAd().j;b;){var c=this.C?FS(this,b)||FS(this,b,!0):US(this,b)||US(this,b,!0);null!=c&&a.push(c);b=b.j}return a};function US(a,b,c){var d=c||!1;return G(b.o,function(a){var b=a.g==this.g;return this instanceof a.constructor&&(d||b)},a)};function eQ(a,b,c,d,e,g,h,k,l,p,r,v,x,ca,ba,ja){V.call(this);this.P=a;this.M=b;this.S=c;this.ya=d;this.V=new An(this);this.V.listen(kL.g?xO():kS(),"viewable_impression",this.sv);this.ha=isNaN(h)||""==h||0==h?-1:h;this.O=k?sb(k):[];this.N=l?sb(l):[];this.o=p?sb(p):[];this.U=r?sb(r):[];this.B=[];E(this.U,function(a){tb(this.B,sb(a.g))},this);this.ja=!0;this.j=this.g=null;this.C=new oe(v);this.D=null!=ja;this.ua=(this.F=null!=x)?ca||!1:!1;this.wa=this.tv?ba||!1:!1;this.Ga=D(x);this.Ha=D(ja);this.qa=
this.k=null;this.A=new BS;this.ba=new J(0,0);this.Z=String(Math.floor(1E9*Math.random()));this.G=this.J=this.I=null;this.na=A();this.ka=this.ga=0;E(rb(this.o,this.B),function(a){a.pg(this)},this);nL()&&VS(this)&&(this.B=eb(this.B,function(a){return 60>=a.getHeight()}))}B(eQ,V);function WS(a){var b;b=XS(a)?YS(a)?"2_1":"2_2":"2";return(ZS(a,dK)||ZS(a,fK)?1:ZS(a,cK)?2:0)+"_"+b}function $S(a){return null!=a.M?a.M:""}function aT(a){return null!=a.j?rb(aT(a.j),a.O):a.O}
function bT(a){return null!=a.j?rb(bT(a.j),a.N):a.N}f=eQ.prototype;f.getContentType=function(){var a=this.g,b="";if(null===a)return b;if(a instanceof GS)a=a.ka,null===a||(b=D(a.g));else if(a instanceof LS)switch(a.Ba){case "IFrame":case "Html":case "Static":b=D(a.P)}return b};function nQ(a){return null!=a.j?rb(a.B,nQ(a.j)):a.B}function cT(a){return null!=a.g?a.g.S:""}f.getExtension=function(a){return this.C.get(a)};function dT(a,b){a.g=b;a.ba=null!=a.g&&a.g instanceof LS?a.g.Dc():new J(0,0)}
function eT(a){return a.g}f.sv=function(a){a.k.queryId==this.Z&&this.T(new TJ("viewable_impression",this,a.k))};function fT(a){return null!=a.P?a.P:""}function gT(a){if(null==a.j)return[];var b=[fT(a.j)];tb(b,gT(a.j));return b}function hT(a){var b=gT(a).reverse();b.push(fT(a));return b}function iT(a){if(null==a.j)return[];var b=[$S(a.j)];tb(b,iT(a.j));return b}function jT(a){var b=iT(a).reverse();b.push($S(a));return b}function mQ(a){if(null==a.j)return[a.S];var b=mQ(a.j);b.push(a.S);return b}
function kT(a){a=a.getExtension("waterfall");return null!=a&&-1!=a.j?a.j:-1}function lT(a){if(-1!=a.ha)return a.ha;a=a.getExtension("pod");return null!=a&&-1!=a.j?a.j:-1}function tQ(a,b){return b||null==a.j?a.U:rb(a.U,tQ(a.j))}function mT(a,b){return gb(a.o,function(a){return a instanceof GS&&"linear"==b||a instanceof LS&&"nonlinear"==b?!0:!1})}function VS(a){return nT(a)?"video"==a.ya:mT(a,"linear")}function XS(a){return null!=oT(a)}
function pT(a,b){var c=oT(a);if(!c)return null;bR(c,b);return aR(c)}function oT(a){if(ZR(919139)||ZR(919140))return new $Q(0,!1);var b=new $Q(5,!1),c=qT(a);if("implicit"==c)return b;a=a.g;var d=null;null!=a&&a instanceof GS&&(d=a.o);null!=d||"explicit"!=c||(d=b);return null!=d&&nL()?b:d}
function qT(a){if(null!=G(a.C.La(),function(a){return!lb(qR(a,"skip"))}))return"implicit";var b=a.C.get("DFP");if(b instanceof xR)switch(b.j){case "InstreamSelect":return"implicit";case "Generic":return"explicit"}a=a.g;return null==a||(a=a.Kf,null==a||lb(gR(a,"skip")))?"none":"explicit"}function rT(a){return null!=a.k&&(wS(a.k)||AS(a.k)||zS(a.k))}
function YS(a){if(null==a.M||null==a.k)return!1;var b;(b=rT(a)||!1)&&!(b=nT(a)&&!sT(a,["ADSENSE/ADX"]))&&(sT(a,fK)?(b=a.C.get("DFP"),b=null!=b?"InstreamSelect"==b.j:!1):b=!1);if(b||a.j&&a.j.D&&rT(a.j))return!0;a=ZS(a,["ADSENSE/ADX"])||a.j&&ZS(a,cK);return nL()&&!a}f.tv=function(){return this.F};function tT(a){return null===a.g?null:a.g.Tc()}function uT(a){return null==a.g||a.g instanceof LS?-1:a.g.ba}function vT(a){return null===a.g?null:a.g.Bn()}function nT(a){return sT(a,cK)}
function wT(a){var b=vT(a);return sT(a,["402"])||w(b)&&!fa(b.match("//s0.2mdn.net/instream/html5/survey/survey.html"))}f.getHeight=function(){return this.ba.height};function xT(a){return a.I}f.toString=function(){return"Ad: "+this.P};function sT(a,b){return null!=a.M?H(b,a.S):!1}function ZS(a,b){for(var c=mQ(a),d=c.length-1;0<=d;d--)if("UNKNOWN"!=c[d]){if(H(b,c[d]))return!0;break}return!1}f.L=function(){null!=this.V&&this.V.dispose();eQ.H.L.call(this)};function yT(a,b){this.g=a;this.j=b};function zT(a,b,c){this.g=a;this.j=b;this.k=c}zT.prototype.getContent=function(){return this.g.getContent()};zT.prototype.getContentType=function(){return this.g.getContentType()};zT.prototype.getHeight=function(){return this.g.getHeight()};function uQ(a){a=eT(a.g.getAd());return null!=a?a.g:NaN}zT.prototype.pg=function(a){this.g.pg(a);E(this.j,function(b){b.pg(a)},this)};function AT(a,b,c){this.j=a;this.g=b;this.k=c}AT.prototype.getContentType=function(){return null!=this.g?bK[this.g]||"Other":null};Sc&&gd(8);function BT(){};var CT={},DT={},ET={};function FT(){throw Error("Do not instantiate directly");}FT.prototype.$d=null;FT.prototype.getContent=function(){return this.content};FT.prototype.toString=function(){return this.content};function GT(a,b){var c=od().createElement("DIV"),d=HT(a(b||IT,void 0,void 0));c.innerHTML=d;return 1==c.childNodes.length&&(d=c.firstChild,1==d.nodeType)?d:c}function HT(a){if(!la(a))return String(a);if(a instanceof FT){if(a.Zc===CT)return a.getContent();if(a.Zc===ET)return za(a.getContent())}return"zSoyz"}var IT={};function JT(a){if(null!=a)switch(a.$d){case 1:return 1;case -1:return-1;case 0:return 0}return null}function KT(){FT.call(this)}B(KT,FT);KT.prototype.Zc=CT;function LT(a){return null!=a&&a.Zc===CT?a:a instanceof Ac?MT(Cc(a),a.Rf()):MT(za(String(String(a))),JT(a))}function NT(){FT.call(this)}B(NT,FT);NT.prototype.Zc={};NT.prototype.$d=1;function OT(){FT.call(this)}B(OT,FT);OT.prototype.Zc=DT;OT.prototype.$d=1;function PT(){FT.call(this)}B(PT,FT);PT.prototype.Zc={};PT.prototype.$d=1;
function QT(){FT.call(this)}B(QT,FT);QT.prototype.Zc={};QT.prototype.$d=1;function RT(a,b){this.content=String(a);this.$d=null!=b?b:null}B(RT,FT);RT.prototype.Zc=ET;function ST(a){function b(a){this.content=a}b.prototype=a.prototype;return function(a){return new b(String(a))}}var MT=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.$d=d);return e}}(KT);ST(NT);ST(OT);var TT=ST(PT);ST(QT);
(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.$d=d);return e}})(KT);var UT=/['()]/g;function VT(a){return"%"+a.charCodeAt(0).toString(16)}function WT(a){if(null!=a&&a.Zc===DT)return String(a).replace(XT,ZT);if(a instanceof vc)return a=xc(a),String(a).replace(XT,ZT);a=xa(String(a));UT.lastIndex=0;return UT.test(a)?a.replace(UT,VT):a}var $T={};
function aU(a){$T[1]||($T[1]=new BT);var b=JT(a);if(null==b){var c=b=0,d=!1;a=fc(a+"",null!=a&&a.Zc===CT).split(lc);for(var e=0;e<a.length;e++){var g=a[e];ic.test(fc(g,void 0))?(b++,c++):jc.test(g)?d=!0:hc.test(fc(g,void 0))?c++:mc.test(g)&&(d=!0)}b=0==c?d?1:0:.4<b/c?-1:1}return TT(1!=b?-1==b?'dir="rtl"':1==b?'dir="ltr"':"":"")}
var bU={"\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"};function ZT(a){return bU[a]}var XT=/[\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;function cU(a){return'<div class="text-container '+(a.image?"pyv":"")+'"><div class="text-inner-container">'+(a.image?'<a class="text-image-link" target="_blank" href="'+LT(a.sd)+'"><img src="'+LT(a.image)+'" class="text-image">'+(a.duration?'<div class="text-image-duration">'+LT(a.duration)+"</div>":"")+"</a>":"")+'<a class="text-title" href="'+LT(a.sd)+'" target="_blank" dir='+LT(a.dir)+">"+LT(a.title)+'</a><div class="text-description" dir='+LT(a.dir)+">"+LT(a.text)+"</div>"+(a.zs?'<a target="_blank" href="'+
LT(a.sd)+'" class="text-ad-channel">'+LT(a.zs)+"</a>":"")+"</div></div>"}
function dU(a){return'<div class="flash-container '+(a.Jf?"click-capture":"")+'"><a class="click-layer" target="_blank" href="'+LT(a.sd)+'"></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="'+LT(a.width)+'" height="'+LT(a.height)+'"><param name="movie" value="'+LT(a.url)+'"><param name="quality" value="high"><param name="wmode" value="transparent"><param name="AllowScriptAccess" value="never"><param name="FlashVars" value="clickTAG='+WT(a.sd)+
'"><embed width="'+LT(a.width)+'" height="'+LT(a.height)+'" wmode="transparent" type="application/x-shockwave-flash" src="'+LT(a.url)+'" allowscriptaccess="never" pluginspage="//www.macromedia.com/go/getflashplayer" flashvars="clickTAG='+WT(a.sd)+'"></object></div>'}function eU(a){return'<div class="image-container" id="'+LT(a.id)+'" style="width:'+LT(a.width)+";height:"+LT(a.height)+'"><a target="_blank" href="'+LT(a.sd)+'"><img src="'+LT(a.url)+'" border="0"></a></div>'};function fU(a,b,c,d){LS.call(this,a,b,"Static",c,d);this.ht=!1}B(fU,LS);fU.prototype.sf=function(){var a=this.F,a=null!=a&&"clicktag"==a.toLowerCase(),a={url:oK(D(this.o)),width:this.fd(),height:this.getHeight(),sd:this.Tc(),Jf:this.ht||!a},a=GT(dU,a);a.style.width=this.fd()+"px";a.style.height=this.getHeight()+"px";a.id=this.xa;E(a.getElementsByTagName("object"),this.A,this);E(a.getElementsByTagName("a"),this.A,this);return a};function gU(a,b,c,d){LS.call(this,a,b,"Html",c,d)}B(gU,LS);gU.prototype.sf=function(){var a=K("div");a.innerHTML=this.o;this.A(a);return RS(this,a)};function hU(a,b,c,d){LS.call(this,a,b,"Static",c,d)}B(hU,LS);hU.prototype.getContent=function(){var a=hU.H.getContent.call(this);this.C&&(a=a.replace('<img src=""','<img src="'+oK(D(this.o))+'"'));return a};hU.prototype.sf=function(){var a="";this.C||(a=oK(D(this.o)));a={id:this.xa,url:a,sd:this.Tc(),width:this.fd()+"px",height:this.getHeight()+"px"};a=GT(eU,a);E(a.getElementsByTagName("a"),this.A,this);return a};function iU(a,b){LS.call(this,a,b,"Static","text","")}B(iU,LS);f=iU.prototype;f.Dc=function(){return new J(this.fd(),this.getHeight())};f.getHeight=function(){return 63};f.fd=function(){return null!=this.B?Rg(this.B).width:0};f.St=function(a){return dh(a,"text-image")?9:dh(a,"text-ad-channel")?1:0};
f.sf=function(){var a=this.getAd(),b=a.getExtension("AdSense"),c=a.getExtension("TextAd"),d=c.k,e="rtl";null!=d&&(e=gc.test(fc(d,void 0))?"rtl":"ltr");d={title:d,text:c.o+" "+c.A,dir:e,sd:this.Tc()};if(c=c.j)d.image=oK(c),a=G(a.o,function(a){return a instanceof GS}),null!=a&&(d.duration=VQ(a.ba));b.k&&(d.zs=b.k);this.B=GT(cU,d);E(this.B.getElementsByTagName("a"),this.A,this);this.B.id=this.xa;this.B.style.height=this.getHeight()+"px";return this.B};function jU(a,b,c,d,e){LS.call(this,a,b,c,d,e)}B(jU,LS);jU.prototype.sf=function(){var a=D(this.o);C(D(this.Tc()))||(a=new L(a),M(a,"clickTAG",xa(this.Tc())),a=a.toString());var b=K("iframe",{marginwidth:0,marginheight:0,hspace:0,vspace:0,frameborder:0,scrolling:"no"},null);b.height=this.getHeight();"Text"!=this.getContentType()&&(b.width=this.fd());b.setAttribute("src",oK(a));this.A(b);return RS(this,b)};function kU(a,b,c){if(lb(c))return new LS(a,b,"",null,"");var d=lU(c);c=d.j;var e=d.g,d=d.k;switch(c){case "Html":return new gU(a,b,e,d);case "Static":switch(bK[e]){case "Image":return new hU(a,b,e,d);case "Flash":return new fU(a,b,e,d);case "Text":return new iU(a,b)}}return new jU(a,b,c,e,d)}
function lU(a){var b=G(a,function(a){return"Static"==a.j&&"Flash"==bK[a.g]}),c=G(a,function(a){return"IFrame"==a.j}),d=G(a,function(a){return"Html"==a.j}),e=G(a,function(a){return"Static"==a.j&&"Image"==bK[a.g]}),g=G(a,function(a){return"Static"==a.j&&"Text"==bK[a.g]});return gM&&null!=b?b:null!=c?c:null!=d?d:null!=e?e:null!=g?g:a[0]};function mU(a,b,c,d,e){var g=lU(e),h=kU(a.id,a.size,[g]);h.C=!0;h.F=a.apiFramework;h.M=b;h.g=c;d&&(h.Kf=d);ob(e,g);var k=[];E(e,function(e){e=kU(a.id,a.size,[e]);e.C=!0;e.F=a.apiFramework;e.M=b;e.g=c;d&&(e.Kf=d);k.push(new zT(e,[],a.adSlotId))});return new zT(h,k,a.adSlotId)};function nU(a,b,c,d,e,g,h){this.k=a;this.F=b;this.A=c;this.B=d;this.j=e;this.C=g;this.D=h;this.g=this.k.sf()}nU.prototype.De=function(){return this.g};
nU.prototype.display=function(a){this.o=a;this.o.appendChild(this.g);a=this.g;var b=Pg(this.o),b="left"==this.A?"0px":"right"==this.A?b.width-this.k.Dc().width+"px":this.A+"px",c;c=Pg(this.o);c="bottom"==this.B?"0px":"top"==this.B?c.height-this.k.Dc().height+"px":c.height-this.k.Dc().height-Za(this.B)+"px";vg(a,{position:"absolute",overflow:"hidden",left:b,bottom:c});Tg(this.g,!1)};
nU.prototype.update=function(a,b){var c=null!=this.C?aR(this.C):0;this.j=0<=this.j?this.j:b;c<=a&&c+this.j>=a?oU(this):Tg(this.g,!1)};function oU(a){"none"==a.g.style.display&&(Tg(a.g,!0),E(a.D,function(a){qK(a)}))};function pU(a,b,c,d,e,g,h,k,l,p){b=kU("icon"+a,b,p);b.F=h;b.M=k.iconClickThrough;return new nU(b,a,c,d,e,g,l)};function qU(a){this.o=a;this.logger=null}B(qU,CQ);
qU.prototype.g={aC:"Ad",Qm:"AdParameters",VC:"AdSystem",WC:"AdTitle",uH:"Advertiser",lE:"AltText",qD:"ClickThrough",rD:"ClickTracking",xD:"Companion",mD:"CompanionAds",mE:"CompanionClickThrough",nE:"CompanionClickTracking",nD:"Creative",fI:"CreativeExtensions",YC:"Creatives",sD:"CustomClick",ZC:"Description",Xm:"Duration",ERROR:"Error",wD:"Extension",$C:"Extensions",Bj:"HTMLResource",CE:"Icon",fD:"Icons",NC:"IconClicks",AE:"IconClickThrough",BE:"IconClickTracking",OC:"IconViewTracking",Cj:"IFrameResource",
Ms:"Impression",OI:"InLine",LINEAR:"Linear",hD:"MediaFile",iD:"MediaFiles",vE:"NonLinear",oD:"NonLinearAds",tC:"NonLinearClickThrough",uC:"NonLinearClickTracking",QJ:"Pricing",Dj:"StaticResource",Ns:"Survey",LK:"Tracking",Zm:"TrackingEvents",VK:"VAST",bD:"VASTAdTagURI",lD:"VideoClicks",cD:"Wrapper"};
qU.prototype.j={TE:"adSlotID",XC:"allowMultipleAds",Aj:"apiFramework",dD:"bitrate",pD:"creativeType",eD:"delivery",Xm:"duration",pI:"event",aD:"followAdditionalWrappers",UE:"expandedHeight",VE:"expandedWidth",Vm:"height",vj:"id",rC:"maintainAspectRatio",gD:"maxBitrate",jD:"minBitrate",sC:"minSuggestedDuration",PC:"offset",QC:"program",yD:"required",vC:"scalable",Qr:"sequence",kD:"skipoffset",Ls:"type",VERSION:"version",Wm:"width",RC:"xPosition",SC:"yPosition"};
function rU(a){if(null==a)return!1;a=Od(a);return null!=a&&"VAST"==a.nodeName}function sU(a){if(null==a)return 0;a=parseInt(a.getAttribute("version"),10);return ia(a)&&!isNaN(a)?a:0}function tU(a){var b=[],c=Od(a.o),d=sU(c);IQ(c,a.g.aC,function(a){var c;c=uU(a);if(null==c)throw DQ(a);var h=a.getAttribute(this.j.vj);a=Number(a.getAttribute(this.j.Qr));c=vU(this,c,h||null,a||0);null!=c&&(c.ka=d,b.push(c))},a);return b}qU.prototype.k=function(){return new MQ(this.o,tU(this),null)};
function uU(a){var b=null;E(Nd(a),function(a){switch(a.nodeName){case "InLine":case "Wrapper":b=a;break;default:throw DQ(a);}});return b}
function vU(a,b,c,d){var e,g,h=[],k=[],l=[],p=[],r=new oe,v,x=b.nodeName==a.g.cD,ca=x,ba=x,ja;E(Nd(b),function(a){switch(a.nodeName){case this.g.bD:if(x){if(null!=v)throw EQ(a);v=HQ(a);ja=nR(v);ca=LQ(b.getAttribute(this.j.XC),ca);ba=LQ(b.getAttribute(this.j.aD),ba)}else throw DQ(a);break;case this.g.VC:e=HQ(a);break;case this.g.WC:g=HQ(a);break;case this.g.ZC:HQ(a);break;case this.g.Ns:HQ(a);break;case this.g.Ms:a=HQ(a);lR(a)&&h.push(YQ(a));break;case this.g.ERROR:a=HQ(a);k.push(YQ(a));break;case this.g.YC:a=
wU(this,a);l=a.creatives;p=a.MC;break;case this.g.$C:r=xU(this,a,ja)}},a);return new eQ(D(c),e,yU(e),g,0,0,d,k,h,l,p,r,v,ca,ba,zU(r))}function zU(a){var b=null;a=a.get("AdSense");null!=a&&(a=qR(a,"vast2tracking"),null!=a&&!lb(a)&&(b=a[0]));return b}function yU(a){if(C(D(a)))return"UNKNOWN";a=a.toUpperCase();switch(a){case "ADSENSE":case "ADSENSE/ADX":case "DART":case "DART_DFP":case "DART_DFA":case "FREEWHEEL":case "GDFP":case "402":return a;default:return"UNKNOWN"}}
function AU(a){if(C(D(a)))return"none";switch(a){case "all":case "any":case "none":return a;default:return"none"}}
function xU(a,b,c){var d=new oe;try{var e=FQ(b,a.g.wD);E(e,function(a){var b=a.getAttribute(this.j.Ls);null!=b&&(b=b.toLowerCase());switch(b){case "geo":a=(new MR).parse(a);break;case "pod":a=(new KR).parse(a);break;case "waterfall":a=(new OR).parse(a);break;case "dart":a=(new yR).parse(a);break;case "dfp":b="DFP";a=(new zR).parse(a);break;case "adsense":b="AdSense";a=(new wR).parse(a);break;case "textad":b="TextAd";a=(new IR).parse(a);break;case "templatead":b="TemplateAd";a=(new FR).parse(a);break;
case "infocards":var b="InfoCards",e=new CR;a=e.parse(a);break;case "infocardstracking":b="InfoCardsTracking";e=new CR;a=e.parse(a);break;case c:b="LocalRedirect";null!=a?(e=null,a=FQ(a,"AdXml"),1==a.length&&(e='<?xml version="1.0" encoding="UTF-8"?>'+YF(Od(a[0]))),a=new DR(e)):a=null;break;default:e=new AR,b="generic",a=e.parse(a)}null!=a&&(e=d.get(b),null!=e?"generic"==b&&(pR(e,a.g),d.set(b,e)):d.set(b,a))},a)}catch(g){}return d}
function wU(a,b){var c=[],d=[];IQ(b,a.g.nD,function(a){var b=a.getAttribute(this.j.Qr),h;C(D(b))||(h=parseFloat(b));a.getAttribute(this.j.vj);var k=!1;E(Nd(a),function(a){switch(a.nodeName){case this.g.LINEAR:if(k)throw EQ(a);a=BU(this,a,isNaN(h)?0:h);tb(c,a);k=!0;break;case this.g.mD:if(k)throw EQ(a);a=CU(this,a,isNaN(h)?void 0:h);tb(d,a);k=!0;break;case this.g.oD:if(k)throw EQ(a);a=DU(this,a,isNaN(h)?0:h);tb(c,a);k=!0}},this)},a);return{creatives:c,MC:d}}
function DU(a,b,c){var d=[],e=new cR;E(Nd(b),function(a){switch(a.nodeName){case this.g.vE:a=EU(this,a,c);null!=a&&d.push(a);break;case this.g.Zm:e=kR(a);break;default:throw DQ(a);}},a);0!=d.length||e.isEmpty()||(a=new LS(null,new J(-1,-1),"",null,""),a.g=c,d.push(a));E(d,function(a){e&&(a.Kf=e)});return d}
function FU(a,b){var c={};c.id=b.getAttribute(a.j.vj);c.adSlotId=b.getAttribute(a.j.TE);c.apiFramework=b.getAttribute(a.j.Aj);var d=Wa(b.getAttribute(a.j.Wm)),e=Wa(b.getAttribute(a.j.Vm));c.size=new J(d,e);d=b.getAttribute(a.j.VE);e=b.getAttribute(a.j.UE);C(D(d))||C(D(e))||(c.kH=new J(Wa(d),Wa(e)));return c}
function EU(a,b,c){var d=FU(a,b);b.getAttribute(a.j.Aj);b.getAttribute(a.j.vC);b.getAttribute(a.j.rC);var e=b.getAttribute(a.j.sC),e=KQ(e,-1),g=[];new oe;var h={},k="",l,p=[];E(Nd(b),function(a){switch(a.nodeName){case this.g.uC:p.push(HQ(a));break;case this.g.tC:l=HQ(a);break;case this.g.Qm:h=GU(a);k=D(HQ(a));break;case this.g.Cj:case this.g.Dj:case this.g.Bj:g.push(HU(this,a));break;default:throw DQ(a);}},a);a=kU(d.id,d.size,g);DS(a,k,h);a.F=d.apiFramework;a.M=l;a.U=p;a.fb=e;a.g=c;return a}
function HU(a,b){var c=GQ(b,a.j.pD),d;t:switch(d=b.nodeName,d){case a.g.Dj:d="Static";break t;case a.g.Cj:d="IFrame";break t;case a.g.Bj:d="Html";break t;default:throw dL(XK,null,d);}var e=HQ(b);null!=e||(e="");return new AT(d,c,e)}function CU(a,b,c){var d=[],e=AU(GQ(b,a.j.yD));IQ(b,a.g.xD,function(a){a=IU(this,a,c);null!=a&&d.push(a)},a);return new yT(d,e)}
function IU(a,b,c){var d=FU(a,b),e=[],g=new cR,h;E(Nd(b),function(a){switch(a.nodeName){case this.g.nE:break;case this.g.Zm:g=kR(a,!0);break;case this.g.mE:h=HQ(a);break;case this.g.lE:HQ(a);break;case this.g.Qm:HQ(a);break;case this.g.Cj:case this.g.Dj:case this.g.Bj:e.push(HU(this,a));break;default:throw DQ(a);}},a);return lb(e)?null:mU(d,h,c,g,e)}
function BU(a,b,c){var d=new cR,e={},g="",h=[],k,l=new oe,p=[],r=[],v,x=mR(GQ(b,a.j.kD));E(Nd(b),function(a){switch(a.nodeName){case this.g.fD:r=JU(this,a);break;case this.g.Qm:e=GU(a);g=D(HQ(a));break;case this.g.Xm:v=KQ(HQ(a),0);break;case this.g.Zm:d=kR(a);break;case this.g.iD:p=KU(this,a);break;case this.g.lD:a=LU(this,a);l=a.customClicks;k=a.clickThrough;h=a.clickTrackingUrls;break;default:throw DQ(a);}},a);E(h,function(a){hR(d,"click",a)});a=new GS(v,k,l,p,x,r);DS(a,g,e);a.g=c;d&&(a.Kf=d);return a}
function LU(a,b){var c,d=[],e=new oe;E(Nd(b),function(a){switch(a.nodeName){case this.g.qD:c=HQ(a);break;case this.g.rD:a=HQ(a);d.push(a);break;case this.g.sD:var b=GQ(a,this.j.vj);null!=b||(b="");var k=e.get(b,[]);k.push(HQ(a));e.set(b,k);break;default:throw DQ(a);}},a);return{clickThrough:c,clickTrackingUrls:d,customClicks:e}}
function KU(a,b){var c=[];IQ(b,a.g.hD,function(a){var b=GQ(a,this.j.eD),g=GQ(a,this.j.Ls);a.getAttribute(this.j.Wm);var h=Wa(a.getAttribute(this.j.Vm)),k=a.getAttribute(this.j.Aj),l=HQ(a),p=JQ(a.getAttribute(this.j.dD)),r=JQ(a.getAttribute(this.j.jD));a=JQ(a.getAttribute(this.j.gD));c.push(new OO(b,g,p,r,a,0,h,l,k))},a);return c}function JU(a,b){var c=[];IQ(b,a.g.CE,function(a){a=MU(this,a);null!=a&&c.push(a)},a);return c}
function MU(a,b){var c=b.getAttribute(a.j.QC),d=GQ(b,a.j.RC),e=GQ(b,a.j.SC),g=Wa(b.getAttribute(a.j.Wm)),h=Wa(b.getAttribute(a.j.Vm)),g=new J(g,h),h=b.getAttribute(a.j.Aj),k=mR(GQ(b,a.j.PC)),l=b.getAttribute(a.j.Xm),l=KQ(l,-1),p=[],r=[],v;E(Nd(b),function(a){switch(a.nodeName){case this.g.OC:r.push(HQ(a));break;case this.g.NC:v=NU(this,a);break;case this.g.Cj:case this.g.Dj:case this.g.Bj:p.push(HU(this,a));break;default:throw DQ(a);}},a);return lb(p)?null:pU(c,g,d,e,l,k,h,v,r,p)}
function NU(a,b){var c=[],d;E(Nd(b),function(a){switch(a.nodeName){case this.g.AE:d=HQ(a);break;case this.g.BE:c.push(HQ(a));break;default:throw DQ(a);}},a);return{iconClickThrough:d,jH:c}}function GU(a){a=HQ(a);return null!=a?WQ(a):{}};function OU(a,b){this.j=a;this.g=b}B(OU,CQ);OU.prototype.k=function(){return new MQ(this.j,null,PU(this))};function QU(a){var b=$F(a);return lb(b)?[GQ(a,"timeOffset")]:F(b,function(a){return GQ(a,"timeOffset")})}
function PU(a){var b=new QQ;E(Nd(Od(a.j)),function(a){if("vmap:AdBreak"==a.nodeName){var d=RU(this,a);a=QU(a);E(a,function(a,c){var h=KQ(a);0<c&&(d=SU(this,d));if("start"==a||0==h)RQ(b,d,0);else if("end"==a)RQ(b,d,-1);else{if(-1==h)throw dL(xK,null,"timeOffset",D(a));RQ(b,d,h)}},this)}},a);if(0==b.g.Ka().length)throw dL(EK);return b}function SU(a,b){return F(b,function(a){var b=new OQ(a.k.clone());b.g=a.g;b.j=a.j;return b},a)}
function TU(a){a=GQ(a,"timeOffset");var b=KQ(a);return"start"==a||0==b?0:"end"==a||-1==b?-1:1E3*b}
function RU(a,b){var c=[],d="",e=null,g=!1,h=!1;E(Nd(b),function(a){switch(a.nodeName){case "vmap:AdSource":if(!e&&(e=ZF(a,"vmap:VASTData/VAST")||ZF(a,"vmap:VASTAdData/VAST"),!e)){var b=FQ(a,"vmap:AdTagURI"),c="";b.length&&(c=D(HQ(b[0])));if(C(c))throw dL(bL,null,a.parentNode.nodeName,a.nodeName);d=c}break;case "vmap:Extensions":a=FQ(a,"vmap:Extension"),a=UU(this,a),null!=a&&(g=!0,a=GQ(a,"suppress_bumper"),h=null!=a?"true"==a:!0)}},a);var k=null;e?k=VU(a,e):C(d)||(k=WU(a,d));k&&(nL()&&(k.youTubeVideoAdStartDelay=
TU(b)),k=new OQ(k),k.g=g,k.j=g&&!h,nb(c,k));return c}function UU(a,b){return G(b,function(a){return"bumper"==GQ(a,"type")},a)}function WU(a,b){var c=a.g.clone();C(c.adsResponse)||(c.adsResponse="");c.adTagUrl=b;return c}function VU(a,b){var c=a.g.clone();c.adsResponse=YF(b);c.adTagUrl="";return c};function XU(a,b){if(null!=a){var c;null!=a?(c=Od(a),c=null!=c&&"Playlist"==c.nodeName):c=!1;if(c)return wQ.getInstance().g=!1,new SQ(a,b);null!=a?(c=Od(a),c=null!=c&&"vmap:VMAP"==c.nodeName):c=!1;if(c)return wQ.getInstance().g=!1,new OU(a,b);if(rU(a)){if(!rU(a))throw dL(HK);c=Od(a);var d=sU(c);if(1>d||3<d)throw dL(YK);c=FQ(c,"Ad");if(lb(c))throw dL(MK);c=uU(c[0]);if(null==c)throw dL(PK);if(1!=FQ(c,"AdSystem").length)throw dL(PK);return new qU(a)}}return null};function YU(){}f=YU.prototype;
f.clone=function(){var a=new YU;"auto"==this.Ie?a.Ie="auto":"click"==this.Ie&&(a.Ie="click");a.adTagUrl=this.adTagUrl;a.te=Yb(this.te);a.adsResponse=this.adsResponse;a.Vc=Yb(this.Vc);a.kt=this.kt;a.isYouTube=this.isYouTube;a.location=this.location;a.referrer=this.referrer;a.lastActivity=this.lastActivity;a.language=this.language;a.linearAdSlotWidth=this.linearAdSlotWidth;a.linearAdSlotHeight=this.linearAdSlotHeight;a.nonLinearAdSlotWidth=this.nonLinearAdSlotWidth;a.nonLinearAdSlotHeight=this.nonLinearAdSlotHeight;
a.zc=this.zc;a.tagForChildDirectedContent=this.tagForChildDirectedContent;a.Ig=this.Ig;a.Km=this.Km;a.youTubeAdType=this.youTubeAdType;a.youTubeExperimentIds=this.youTubeExperimentIds;a.youTubeVideoAdStartDelay=this.youTubeVideoAdStartDelay;this.g&&(a.g=sb(this.g));return a};f.te=null;f.Vc=null;f.Ie="unknown";f.kt=!1;f.isYouTube=!1;f.linearAdSlotWidth=0;f.linearAdSlotHeight=0;f.nonLinearAdSlotWidth=0;f.nonLinearAdSlotHeight=0;f.zc=null;f.tagForChildDirectedContent=!1;f.Ig=!1;f.Km=!0;
f.youTubeVideoAdStartDelay=0;f.Sp=!0;function ZU(a,b){this.j=a;this.k=b;var c=a.g;nL()&&c&&YR(WR(),c,!1)}function $U(a,b){"auto"!=a.j.Ie&&"click"!=a.j.Ie||b.set("vpa",a.j.Ie)}function aV(a){C(kL.getPlayerType())||(a.set("mpt",kL.getPlayerType()),C("")||a.set("mpv",""))}function bV(a,b){var c=a.k.A;null!=c&&b.set("js","ima-"+c)}function cV(a,b){b.set("osd",2);-1!=a.k.F&&b.set("frm",a.k.F)}ZU.prototype.D=function(){return this.o(this.B()).toString()};function dV(a){return kL.g?"h.3.0.0":null!=a.k?KP(a.k):null}
ZU.prototype.A=function(){var a;a=1;zL()&&(a+=4);return a};function eV(){this.g=["video"]}var fV={QK:"ultrahigh",DI:"high",OG:"medium"},gV={xH:1E3,yH:1001,zH:1002,AH:1003,BH:1004,CH:1005,DH:1006},hV={NG:1,IG:2},iV={cI:"content",kK:"site",lK:"site_content"};f=eV.prototype;f.Gi="high";f.kl=!1;f.$k=1;f.al=null;f.adType="video";f.adBlock=1;f.ll=null;f.bl=!0;f.fl=null;f.jl=null;f.Hg=null;f.experimentIds=null;f.nl=null;f.host=null;f.hostTierId=null;f.pl=!1;f.language=null;f.Hq=null;f.Gq=null;f.Hi=1E5;f.Ji=null;f.Jq=null;f.Iq=null;f.tl=0;f.qf=null;f.Ki=null;
f.Pi=null;f.vl=null;f.tagForChildDirectedTreatment=-1;f.url=null;f.Ii=null;f.ql=null;f.rl=null;f.zl=null;f.wl=null;f.xl=null;f.yl=null;f.il=null;var jV=(new Date).getTime();var kV=[202,1009],lV=["[CONTENT_V]","[CPN]","[DISALLOW]","[LACT]"];function mV(a,b,c){var d={};a=new nV(a,n(b)?b:null,n(c)?c:null);oV(d,a);b=a.error;d["[ERRORCODE]"]=1E3>b.g?b.g:900;pV(d,a);qV(d,a);rV(d,a);b=a.error.getErrorCode();d["[ERROR_MSG]"]=a.error.getMessage();d["[IMA_ERROR]"]=b;d["[INTERNAL_ID]"]="0";a=-1!=cb(kV,b);d["[BLOCKING_ERROR]"]=a?"1":"0";d["[YT_ERROR_CODE]"]=3;return d}
function sV(a,b){var c={},d=new nV(null,a,n(b)?b:null);oV(c,d);pV(c,d);qV(c,d);rV(c,d);c["[BREAK_TYPE]"]="0";c["[SLOT_POS]"]="0";c["[MIDROLL_POS]"]="0";if(null!=d.g){var e=d.g.k;null!=e&&null!=e.te&&null!=e.te.video_start_delay?(e=e.te.video_start_delay,0==e?c["[BREAK_TYPE]"]="1":-1==e?c["[BREAK_TYPE]"]="3":(c["[BREAK_TYPE]"]="2",c["[MIDROLL_POS]"]=e)):(e=d.g.A,c["[BREAK_TYPE]"]=0==e.j?"1":-1==e.j?"3":"2",c["[SLOT_POS]"]=e.g-1,0<e.A&&(c["[MIDROLL_POS]"]=Math.round(1E3*e.A)))}tV(c,d);uV(c,d);d=a.na;
for(e=a;null!=e;)d=e.ga+","+d,e=e.j;c["[RWT]"]=d;return c}function nV(a,b,c){this.error=a;this.g=b;this.display=c}function vV(a,b){null!=b&&(a["[VIEWABILITY]"]=b);return a}function oV(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():""}}}function uV(a,b){a["[AD_CPN]"]={toString:function(){return b.display.Df()}}}
function pV(a,b){a["[SDKV]"]="h.0.0.0";a["[EL]"]="adunit";a["[CONN]"]="0";null!=b.g&&(a["[VIEWABILITY]"]={toString:function(){var a;kL.g?(a=xO(),a=BO(a,"metric",b.g.Z)):(kS(),a="");return a}});a["[VIS]"]="0";a["[WT]"]={toString:function(){return Date.now()}}}function qV(a,b){if(null!=b.g&&null!=b.g.k&&null!=b.g.k.Vc&&nL()){var c=b.g.k.Vc;E(lV,function(b){b in c&&(a[b]=c[b])})}}
function rV(a,b){if(null!=b.g){a["[AD_ID]"]=hT(b.g);a["[AD_SYS]"]=jT(b.g);a["[AD_V]"]={toString:function(){return null!=b.display?WO(b.display.getVideoUrl()):""}};a["[FORMAT_NAMESPACE]"]="0";a["[FORMAT_TYPE]"]="0";a["[FORMAT_SUBTYPE]"]="0";var c=[];try{c=WS(b.g).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])}}
function tV(a,b){null!=b.g&&(a["[AD_LEN]"]={toString:function(){var a=uT(b.g);return 0>a?"-1":Math.round(1E3*a).toString()}},a["[VOL]"]={toString:function(){return null!=b.display?Math.round(100*b.display.gd()).toString():""}})};var wV={LG:"flash",Ju:"image",pK:"skippablevideo",rK:"standardvideo",tK:"staticimage",TEXT:"text",VIDEO:"video"},xV=["flash","image","staticimage"],yV=[new J(200,200),new J(250,250),new J(300,250),new J(336,280),new J(450,50),new J(468,60),new J(480,70),new J(728,90)];
function zV(a,b){var c=null!=b.linearAdSlotHeight?b.linearAdSlotHeight:0,d=null!=b.nonLinearAdSlotHeight?b.nonLinearAdSlotHeight:0;a.set("sz",Math.max(null!=b.linearAdSlotWidth?b.nonLinearAdSlotWidth:0,null!=b.nonLinearAdSlotWidth?b.nonLinearAdSlotWidth:0)+"x"+Math.max(c,d))}
function AV(a){var b={};b.u_tz=-(new Date).getTimezoneOffset();var c;var d=window;try{c=d.history.length}catch(e){c=0}b.u_his=c;b.u_java=navigator.javaEnabled();window.screen&&(b.u_h=window.screen.height,b.u_w=window.screen.width,b.u_ah=window.screen.availHeight,b.u_aw=window.screen.availWidth,b.u_cd=window.screen.colorDepth);navigator.plugins&&(b.u_nplug=navigator.plugins.length);navigator.mimeTypes&&(b.u_nmime=navigator.mimeTypes.length);for(var g in b)a.set(g,b[g]);a.set("dt",jV)}
function BV(a){if(a.Vc&&a.Vc["[LACT]"]){var b=a.Vc["[LACT]"].toString();if(b)return Za(b)}return a.lastActivity}function CV(a,b,c){var d=new oe;d.set("ad_type",b.adType);gM&&d.set("flash",hM);zV(d,a);DV(b)&&(d.set("ea","0"),null!=a.nonLinearAdSlotWidth&&null!=a.nonLinearAdSlotHeight&&d.set("image_size",EV(b,a.nonLinearAdSlotWidth,a.nonLinearAdSlotHeight)));FV(d,c);d.set("lact",BV(a));d.set("videoad_start_delay",a.youTubeVideoAdStartDelay);AV(d);GV(a,d,!0);return d}
function GV(a,b,c){C(D(a.referrer))||(a=a.referrer,c&&(a=xa(a)),HV("ref",a,b))}function IV(a,b){var c=null!=b?b.split("_"):a;E(c,function(a){if(!Nb(wV,a))throw dL(DK,null,"ad_type",String(b));});if(!zL()){var d=[];E(c,function(a){"video"==a?d.push("standardvideo"):"skippablevideo"!=a&&d.push(a)});if(0==d.length)throw dL(CK,null,"skippablevideo");return d}return c}function JV(a,b){return null!=b?b.split(/[+, ]/):a}
function EV(a,b,c){a.k&&(c=Math.min(c,90));var d=[];E(yV,function(a){b>=a.width&&c>=a.height&&d.push(a.width+"x"+a.height)});return d.join(",")}function KV(a,b){return null==b||isNaN(b)?a:Number(b)}function LV(a,b){return null!=b?String(b):null!=a?a:null}function MV(a,b){if(null==b)return a;switch(b.toLowerCase()){case "true":case "1":return!0;case "false":case "0":return!1}return a}function NV(a,b,c){return null!=b&&Nb(c,b)?b:a}function DV(a){return gb(xV,function(b){return H(a.g,b)})}
function FV(a,b){gM?a.set("ca_type","flash"):a.set("ca_type","image");if(null!=b){var c=b.k;null!=c&&0<c.length&&(c=c[0].A,0<c.length&&(a.set("ca_w",c[0].width),a.set("ca_h",c[0].height)))}}function HV(a,b,c){null!=b&&c.set(a,b)};function OV(a,b,c){ZU.call(this,a,b);b=new eV;a=ff(new L(a.adTagUrl));b.ll=NV(b.ll,a.get("cust_age"),gV);b.Gi=NV(b.Gi,a.get("adsafe"),fV);b.g=IV(b.g,a.get("ad_type"));b.adType=b.g.join("_");b.$k=KV(b.$k,a.get("videoad_start_delay"));b.al=LV(b.al,a.get("slotname"));b.kl=MV(b.kl,a.get("adtest"));b.bl=MV(b.bl,a.get("scs"));b.fl=LV(b.fl,a.get("alternate_ad_url"));b.channels=JV(b.channels,a.get("channel"));b.jl=KV(b.jl,a.get("cpm"));b.Hg=LV(b.Hg,a.get("description_url"));b.experimentIds=LV(b.experimentIds,
a.get("eid"));b.nl=NV(b.nl,a.get("cust_gender"),hV);b.k=MV(b.k,a.get("overlay"));b.host=LV(b.host,a.get("host"));b.j=JV(b.j,a.get("h_ch"));b.hostTierId=KV(b.hostTierId,a.get("ht_id"));b.pl=MV(b.pl,a.get("lsv"));var d;null!=this.j.language?d=this.j.language:(d=m.navigator||null,d=lL(d.language||d.userLanguage||d.browserLanguage||d.systemLanguage||""));var e=null!=a.get("hl")?String(a.get("hl")):null;d=LV(e,d);var g;null!=d&&!C(D(d))&&(g=lL(d));b.language=LV(b.language,g);b.Hq=KV(b.Hq,a.get("linearAdSlotWidth"));
b.Gq=KV(b.Gq,a.get("linearAdSlotHeight"));b.Hi=KV(b.Hi,a.get("max_ad_duration"));b.tl=KV(b.tl,a.get("min_ad_duration"));b.Ji=KV(b.Ji,a.get("sdmax"));b.Jq=KV(b.Jq,a.get("nonLinearAdSlotWidth"));b.Iq=KV(b.Iq,a.get("nonLinearAdSlotHeight"));b.qf=LV(b.qf,a.get("client"));b.Ki=LV(b.Ki,a.get("t_pyv"));b.Pi=KV(b.Pi,a.get("sdki"));b.tagForChildDirectedTreatment=KV(b.tagForChildDirectedTreatment,a.get("tfcd"));b.vl=NV(b.vl,a.get("targeting"),iV);b.Ii=KV(b.Ii,a.get("video_format"));b.ql=KV(b.ql,a.get("video_cpm"));
b.rl=LV(b.rl,a.get("loeid"));b.zl=LV(b.zl,a.get("yt_pt"));b.wl=LV(b.wl,a.get("ytdevice"));b.xl=LV(b.xl,a.get("ytdevicever"));b.yl=LV(b.yl,a.get("dbp"));b.o=LV(b.o,a.get("ms"));b.adBlock=KV(b.adBlock,a.get("adBlock"));b.url=LV(b.url,a.get("url"));b.il=LV(b.il,a.get("avo"));this.g=b;this.F=c;C(D(this.g.experimentIds))||(c=this.g.experimentIds.split(","),YR(WR(),c))}B(OV,ZU);var PV=["skippablevideo","standardvideo","video"];OV.prototype.C={Ax:"allow",Bx:"exclude",YJ:"require"};
OV.prototype.A=function(){var a=OV.H.A.call(this);this.g.Pi&&(a+=this.g.Pi&2);return a};OV.prototype.o=function(a){var b=new L("//googleads.g.doubleclick.net/pagead/ads"),c=a.Ka();E(c,function(c){M(b,c,a.get(c))});return b};
OV.prototype.B=function(){var a=new oe;a.set("sdkv",dV(this));a.set("sdki",this.A().toString(16));a.set("video_product_type",null!=this.g.qf?nL()?5:0==this.g.qf.lastIndexOf("ca-games-",0)?4:0==this.g.qf.lastIndexOf("ca-video-",0)?0:-1:-1);a.set("correlator",this.k.g);a.set("client",this.g.qf);nL()&&!C(D(this.g.url))?a.set("url",this.g.url):a.set("url",this.j.location?this.j.location:this.j.referrer);null!=this.j.zc&&a.set("adk",this.j.zc);a.set("num_ads",QV(this));a.set("channel",RV(this));a.set("ad_type",
this.g.adType);a.set("output","xml_vast2");this.g.kl&&a.set("adtest","on");gM&&a.set("flash",hM);HV("alternate_ad_url",this.g.fl,a);HV("cpm",this.g.jl,a);zV(a,this.j);nL()||Nb(fV,this.g.Gi)&&a.set("adsafe",this.g.Gi);this.g.host&&(a.set("host",this.g.host),HV("ht_id",this.g.hostTierId,a),null!=this.g.j&&HV("h_ch",this.g.j.join("+"),a));HV("hl",this.g.language,a);HV("cust_age",this.g.ll,a);HV("cust_gender",this.g.nl,a);-1!=this.g.tagForChildDirectedTreatment&&HV("tfcd",this.g.tagForChildDirectedTreatment,
a);HV("slotname",this.g.al,a);var b=$R(WR());C(D(b))||a.set("eid",b);AV(a);b=this.g.Hg;if(null!=b){var c;c=this.k;null==c.k&&(c.k=new AP);c=c.k;var d;null!=b&&c.j!=b?(c.g=1,c.j=b):c.g=null!=b?c.g+1:1;d=c.g;1!=d&&a.set("ad_block",d);d=this.k;null==d.J&&(d.J=new GP);d=d.J;var e=b!=this.k.M;(c=0==c.g%100||e)||(c=36E5<(null===d.g?0:(new DP).getTime()-d.g));c&&(d.g=null,d.j=null);this.k.M=b;b=d.j;null!==b&&a.set("tok",b)}a.set("unviewed_position_start","1");b=this.g.$k;a.set("videoad_start_delay",null!=
b?b:1);bV(this,a);cV(this,a);$U(this,a);DV(this.g)&&(a.set("ea","0"),null!=this.j.nonLinearAdSlotWidth&&null!=this.j.nonLinearAdSlotHeight&&a.set("image_size",EV(this.g,this.j.nonLinearAdSlotWidth,this.j.nonLinearAdSlotHeight)));SV(this)&&a.set("video_format",null!=this.g.Ii&&nL()?this.g.Ii:$h&&0<=Ra(Cu,6)||Vh&&0<=Ra(Cu,4)||ad&&vL(rL,2.3)?43:18);b=null!=this.g.Ki?this.g.Ki:H(this.g.adType.split("_"),"text")?this.C.Ax:this.C.Bx;a.set("t_pyv",b);HV("min_ad_duration",this.g.tl,a);0<this.g.Hi&&a.set("max_ad_duration",
TV(this.g.Hi,QV(this)));0<this.g.Ji&&a.set("sdmax",TV(this.g.Ji,QV(this)));FV(a,this.F);nL()&&(b=WO(this.g.Hg),null!=b&&a.set("video_doc_id","yt_"+b));HV("description_url",this.g.Hg,a);nL()&&(HV("lact",BV(this.j),a),HV("loeid",this.g.rl,a),HV("lsv",this.g.pl,a),this.g.bl||HV("scs","false",a),HV("targeting",this.g.vl,a),HV("video_cpm",this.g.ql,a),HV("yt_pt",this.g.zl,a),HV("ytdevice",this.g.wl,a),HV("ytdevicever",this.g.xl,a),HV("dbp",this.g.yl,a),HV("avo",this.g.il,a));HV("ms",this.g.o,a);aV(a);
GV(this.j,a,!1);null!=this.j.te&&HV("loc",this.j.te.page_location,a);return a};function SV(a){return gb(PV,function(a){return H(this.g.g,a)},a)}function QV(a){return nL()?1:H(a.g.adType.split("_"),"text")?3:1}function RV(a){a=a.g.channels?a.g.channels:[];wb(a);a=vb(a,0,30);return a.join("+")}function TV(a,b){return Math.round(1.1*(a||0)+0*b)};function UV(a,b){ZU.call(this,a,b)}B(UV,ZU);UV.prototype.o=function(a){var b=new L(this.j.adTagUrl);E(a.Ka(),function(c){C(a.get(c))?b.g.remove(c):M(b,c,a.get(c))});return b};UV.prototype.B=function(){var a=new oe;a.set("sdkv",dV(this));cV(this,a);$U(this,a);aV(a);null!=this.j.zc&&a.set("adk",this.j.zc);return a};function VV(a,b){ZU.call(this,a,b)}B(VV,ZU);VV.prototype.B=function(){return null};
VV.prototype.o=function(){var a=new qS(this.j.adTagUrl),b=dV(this);b&&uS(a,"dc_sdkv",[b]);(b=this.A().toString(16))&&uS(a,"dc_sdki",[b]);(b=this.k.D)&&uS(a,"dc_submodel",[b]);null!=this.j.zc&&uS(a,"dc_adk",[this.j.zc]);b=new oe;bV(this,b);cV(this,b);$U(this,b);aV(b);qe(b,"js")&&uS(a,"dc_js",[b.get("js")]);qe(b,"msid")&&uS(a,"dc_msid",[b.get("msid")]);qe(b,"frm")&&uS(a,"dc_frm",[b.get("frm")]);qe(b,"osd")&&(uS(a,"osd",[b.get("osd")]),uS(a,"dc_osd",[b.get("osd")]));uS(a,"dcmt",["text/xml"]);qe(b,"vpa")&&
uS(a,"vpa",[b.get("vpa")]);qe(b,"mpt")&&uS(a,"mpt",[b.get("mpt")]);qe(b,"mpv")&&uS(a,"mpv",[b.get("mpv")]);return a};function WV(a){ZU.call(this,a,null)}B(WV,ZU);WV.prototype.o=function(a){return new L(a.get("adTagUrl"))};WV.prototype.D=function(){return D(this.B().get("adTagUrl"))};WV.prototype.B=function(){var a=new oe;a.set("adTagUrl",this.j.adTagUrl);a.set("adsResponse",this.j.adsResponse);return a};function XV(a){ZU.call(this,a,null)}B(XV,ZU);XV.prototype.o=function(a){return new L(a.get("adTagUrl"))};XV.prototype.B=function(){var a=new oe;a.set("adTagUrl",this.j.adTagUrl);a.set("adsResponse",this.j.adsResponse);return a};function YV(a,b){ZU.call(this,a,b)}B(YV,ZU);YV.prototype.o=function(a){var b=new L(this.j.adTagUrl);E(a.Ka(),function(c){C(a.get(c))?b.g.remove(c):M(b,c,a.get(c))});return b};
YV.prototype.B=function(){var a=new oe;a.set("sdkv",dV(this));a.set("sdki",this.A().toString(16));a.set("correlator",this.k.B);a.set("scor",this.k.g);null!=this.j.zc&&a.set("adk",this.j.zc);bV(this,a);cV(this,a);$U(this,a);aV(a);var b=this.k.j;null!=b&&(this.k.j=null,a.set("fbidx",b));b=this.k.O;null!=b&&a.set("ppid",b);var b="null",c=this.k.o;null!=c?b=c:(c=this.j.location,C(D(c))?c=!1:(c=new L(c),!c.Hb||"http"!=c.Hb&&"https"!=c.Hb?c=!1:(c=c.nb,c=-1==c.indexOf(".")||c.match(/^[\.0-9]*$/)?!1:!0)),
c&&(b=this.j.location));a.set("url",b);b=this.k.D;null!=b&&a.set("submodel",b);b=this.k.C;null!=b&&(b=ZV(b),a.set("ciu_szs",b));a.set("impl","");return a};function ZV(a){var b=[];E(a,function(a){0<a.length&&b.push(F(a,function(a){return a.width+"x"+a.height}).join("|"))});return b.join(",")};function $V(a,b,c){ZU.call(this,a,b);this.F=C(D(a.youTubeAdType));a=new eV;a.g=IV(a.g,this.j.youTubeAdType);a.adType=a.g.join("_");a.experimentIds=LV(a.experimentIds,this.j.youTubeExperimentIds);this.g=a;this.C=c;C(D(this.g.experimentIds))||(c=this.g.experimentIds.split(","),YR(WR(),c))}B($V,YV);$V.prototype.o=function(a){a=$V.H.o.call(this,a);this.F||aW(this,a);return a};function bW(a){var b=CV(a.j,a.g,a.C);b.set("sdkv",dV(a));b.set("sdki",a.A().toString(16));return b}
function aW(a,b){var c=bW(a),d=F(c.Ka(),function(a){var b=c.get(a);return a+"="+(null!=b?b:"")});M(b,"afvparams",d.join("&"))};function cW(a,b,c){ZU.call(this,a,b);this.F=C(D(a.youTubeAdType));a=new eV;a.g=IV(a.g,this.j.youTubeAdType);a.adType=a.g.join("_");a.experimentIds=LV(a.experimentIds,this.j.youTubeExperimentIds);this.g=a;this.C=c;C(D(this.g.experimentIds))||(c=this.g.experimentIds.split(","),YR(WR(),c))}B(cW,VV);cW.prototype.o=function(a){a=cW.H.o.call(this,a);this.F||dW(this,a);return a};function eW(a){var b=CV(a.j,a.g,a.C);b.set("sdkv",dV(a));b.set("sdki",a.A().toString(16));return b}
function dW(a,b){var c=eW(a),d=F(c.Ka(),function(a){var b=c.get(a);return a+"="+(null!=b?b:"")});uS(b,"afvparams",[xa(d.join("&"))])};function fW(a,b){var c;!zS(a)&&!AS(a)||C(D(a.youTubeAdType))?zS(a)?c=new VV(a,JP):wS(a)?c=new OV(a,JP,b):AS(a)?c=new YV(a,JP):yS(a)?c=new UV(a,JP):(c=a.adTagUrl,null!=c?(c=cf(new L(c)),c=va(c,".fwmrm.net")):c=!1,c=c?new WV(a):new XV(a)):c=zS(a)?new cW(a,JP,b):new $V(a,JP,b);return c};function gW(a){a=eb(a,function(a){return 0<lT(a)});zb(a,function(a,c){return lT(a)-lT(c)});return a}function hW(a){return eb(a,function(a){return-1==lT(a)})};function iW(a){this.g=a};function jW(){this.g=0}function kW(a,b,c,d,e,g){var h=y(function(a){d(a,Error(Hn(a)))},a),k=y(function(a){6==a?lW(this,b,!1,c,h,e,g):h(a)},a);lW(a,b,!0,c,k,e,g)}
function lW(a,b,c,d,e,g,h){var k=new qo;k.N=c;to(k,mW(g));var l=new An,p=y(function(){l.dispose();k.dispose()},a);c=y(function(){e(k.j);p()},a);Gn(l,k,"success",function(){var a;try{a=k.g?k.g.responseXML:null}catch(b){a=null}if(null==a){var c=Wn(k);try{a=WF(c)}catch(e){t:if(document.implementation&&document.implementation.createDocument)a=document.implementation.createDocument("","parsererror",null);else{if("undefined"!=typeof ActiveXObject&&(a=XF())){a.appendChild(a.createNode(1,"parsererror",""));
break t}throw Error("Your browser does not support creating new documents");}}}d(a);p()},a);Gn(l,k,["error","timeout"],c,a);var r;"POST"==h&&(b=new L(b),r=b.g.toString(),Ve(b,""),b=b.toString());a.g=A();k.send(oK(b),h,r)};function nW(a,b,c){var d=null,e=c+b;E(a.o,function(g){if("true"!=g.D.rm||sT(a,eK)){var h;if(h=g instanceof LS)0==c&&0==b||g instanceof iU?h=!0:(h=g.Dc(),h=h.width<=b&&h.height<=c);if(h&&(h=0==c&&0==b?0:c-g.Dc().height+b-g.Dc().width,"Flash"!=g.getContentType()||gM))if(null==d)d=g,e=h;else if(h==e&&g.g<d.g||h<e)d=g,e=h}else h=sV(a),sK(bT(a),h),(h=a.k)&&h.adTagUrl&&-1!=h.adTagUrl.indexOf(";afc=1")&&(d=g)});dT(a,d)}
function oW(a){var b=null;E(a.o,function(a){a instanceof GS&&(null===b||a.g<b.g)&&(b=a)});dT(a,b)};function pW(a,b,c,d){this.o=a;this.F=b;this.ads=0<this.o.length?this.o:this.F;this.B=c;this.A=this.I=!0;this.j=-1;this.g=null;this.C=0;this.M=d;this.logger=null}pW.prototype.pd=function(){return null!=this.g&&this.g.pd()?!0:0<this.ads.length&&this.j<this.ads.length-1};function qW(a,b,c){null!=a.g?rW(a,b,c):a.pd()?sW(a,b,y(function(a){this.pd()&&301!=a.getErrorCode()?qW(this,b,c):c(a)},a)):c(new PJ("adLoadError","The ad source contains no more ads.",1005))}
pW.prototype.G=function(a,b){return this.A?0<a.length?a:b:vb(b,0,1)};pW.prototype.k=function(a,b,c){var d;if(!(d=null!=a.g)){var e=this.B;d=e.nonLinearAdSlotWidth||0;e=e.nonLinearAdSlotHeight||0;nT(a)&&!a.F?mT(a,"nonlinear")?nW(a,d,e):oW(a):mT(a,"linear")?oW(a):mT(a,"nonlinear")&&nW(a,d,e);d=null!=a.g}d?(this.C++,b(a)):(b=lb(a.o)?dL(PK):VS(a)?dL(KK):dL(SK),d=mV(b,a),sK(a.O,d),c(b))};pW.prototype.D=function(a,b,c){var d=this.B.clone();d.adsResponse="";d.adTagUrl=a.Ga;tW(this,a,d,b,c)};
function uW(a,b,c,d){var e=a.B.clone();e.adsResponse="";e.adTagUrl=b.Ha;tW(a,b,e,c,d)}function tW(a,b,c,d,e){var g=b.getExtension("LocalRedirect");null!=g&&(g=g.j,null!=g&&(c.adsResponse=g));a.M.j(c,y(function(a){if(a instanceof pW){var c=this.A&&b.ua,g=b.wa,p;for(p in a.ads)a.ads[p].j=b;a.A=c;a.ads=a.G(a.o,a.F);a.j=-1;a.I=g;d(a)}else a instanceof iW?e(new PJ("adLoadError","Ad source cannot contain playlist response.",2)):e(new PJ("adLoadError","Unknown ad source.",2))},a),e)}
function vW(a){var b=0;for(a=a.j;null!=a;)a=a.j,b++;return b}function rW(a,b,c){a.g.pd()?qW(a.g,y(function(a){this.k(a,b,y(function(a){this.pd()?qW(this,b,c):c(a)},this))},a),y(function(a){wW(this.ads[this.j],a);this.g=null;301==a.getErrorCode()?c(a):this.pd()?qW(this,b,c):c(a)},a)):(0==a.g.C&&wW(a.ads[a.j],dL($K)),a.g=null,qW(a,b,c))}function wW(a,b){1012==b.getErrorCode()&&(b=dL(RK));var c=mV(b,a);sK(a.O,c)}
function sW(a,b,c){a.j++;var d=a.ads[a.j];d.F||d.D?d.D?uW(a,d,y(function(a){this.g=a;qW(this,b,c)},a),y(function(a){a=xW(a);wW(d,a);c(a)},a)):4<=vW(d)?(a=dL(TK,null,"4"),wW(d,a),c(a)):a.I?a.D(d,y(function(a){this.g=a;qW(this,b,c)},a),y(function(a){a=xW(a);wW(d,a);c(a)},a)):c(dL(ZK)):a.k(d,b,c)}function xW(a){switch(a.getErrorCode()){case 300:case 301:case 302:case 303:case 200:case 1012:break;default:a=dL($K)}return a};function yW(a,b,c,d){pW.call(this,[],a,b,c);this.J=d}B(yW,pW);yW.prototype.pd=function(){return null!=this.g&&this.g.pd()?!0:0<this.ads.length&&this.j<this.ads.length-1&&0==this.C};yW.prototype.G=function(a,b){return b};yW.prototype.k=function(a,b,c){var d=-1,d=null==this.g?kT(a):kT(this.ads[this.j]);this.J.j=d;yW.H.k.call(this,a,b,c)};yW.prototype.D=function(a,b,c){this.J.j=-1;yW.H.D.call(this,a,b,c)};function zW(a,b,c,d,e){this.A=a;this.k=b;this.o=c;this.g=d;this.tb=e}zW.prototype.j=function(a,b,c){C(D(a.adsResponse))?AS(a)&&null!=this.g&&!this.g.C?this.g.start(a,y(function(){AW(this,a,b,c)},this)):AW(this,a,b,c):BW(this,a,b,c)};function BW(a,b,c,d){var e;try{e=WF(b.adsResponse)}catch(g){d(dL(HK,g));return}null!=e?CW(a,e,b,c,d):d(dL(HK))}
function AW(a,b,c,d){var e;if(e=null!=b.adTagUrl){t:{try{ya(b.adTagUrl)}catch(g){e=!1;break t}e=!0}e=!e}if(e)d(dL(BK,null,b.adTagUrl));else{e=fW(b,a.o).D();var h=b.Ig&&mK(lK,e)?"POST":"GET";kW(a.k,e,y(function(a){CW(this,a,b,c,d)},a),y(function(a,c){var e;e=8==a?dL(OK):5==a||6==a?dL(wK):dL(AK,c);d(e);e="third_party";wS(b)?e="adsense":zS(b)?e="dart":AS(b)&&(e="xfp");e={rt:e,ec:a};BL(AL.getInstance(),18,e,!0)},a),a.tb,h);DW(b)}}
function DW(a){var b="third_party";wS(a)?b="adsense":zS(a)?b="dart":AS(a)?b="xfp":yS(a)&&(b="dbm");a={rt:b};BL(AL.getInstance(),17,a,!0)}function CW(a,b,c,d,e){var g;try{var h=XU(b,c);if(!h)throw dL(HK);g=h.k();EW(a,g,c,d)}catch(k){k instanceof PJ?e(k):e(dL(IK,k))}}function EW(a,b,c,d){var e=b.g;if(null!=e)d(new iW(e));else{var g=b.k;if(null==g)throw dL(MK);E(g,function(a){a.k=c;a.ga=this.k.g;nL()&&(a.qa=b.j)},a);e=gW(g);g=hW(g);0<g.length&&0<=kT(g[0])?d(new yW(g,c,a,a.A)):d(new pW(e,g,c,a))}};function FW(){this.g=8E3+A()}function mW(a){var b=A();a=a.g-b;return 0<a?a:0};function GW(a,b){this.g=a;this.j=b;kL.g&&xO().init();var c;t:{try{c=window.top.location.href}catch(d){c=2;break t}c=null!=c?c==window.document.location.href?0:1:2}JP.F=c}function HW(a,b,c,d){var e=null;null!=a.g&&(e=new yQ(1E3,a.g,a.j));(new zW(a.j,new jW,a.g,e,new FW)).j(b,y(function(a){a instanceof iW?c(a):IW(this,a,c,d)},a),d)}
function IW(a,b,c,d){var e=[],g=y(function(a,b){a.pd()?qW(a,y(function(b){e.push(b);g(a,null)},this),y(function(b){301==b.getErrorCode()?d(dL(OK)):g(a,b)},this)):0<e.length?c(e):(null==b&&(b=dL(EK)),1012==b.getErrorCode()&&(b=dL(RK)),d(b))},a);g(b,null)};function JW(a){this.j=a;this.g=new ap}function KW(a,b,c,d){var e=y(function(a){c(a);dp(this.g);LW(this)},a),g=y(function(a){d(a);dp(this.g);LW(this)},a);cp(a.g,y(function(){HW(this.j,b,e,g)},a));LW(a)}function LW(a){1==a.g.Ra()?(a=a.g,bp(a),a=ab(a.g),null!=a&&a()):a.g.Ra()};function MW(a,b,c){V.call(this);this.o=new JW(new GW(b,c));this.j=b;this.g=!0;this.k=c}B(MW,V);function NW(a,b,c){if(a.g){var d=null!=c?c:{};wQ.getInstance().end("rtr");wQ.getInstance().start("vl");KW(a.o,b,y(function(a){OW(this,a,d)},a),y(function(a){PW(this,a,d)},a))}}function QW(a,b,c){if(!a.g){var d=null!=c?c:{};KW(a.o,b,y(function(a){OW(this,a,d)},a),y(function(a){PW(this,a,d)},a))}}
function OW(a,b,c){if(a.g)b instanceof iW?(b=new RW(b.g,a),b.B=a.j,a.T(new SW(b,c))):(b=TW(b),b.B=a.j,null!=b?(a.T(new SW(b,c)),wQ.getInstance().end("vl")):PW(a,dL(KK,null),c));else if(b instanceof iW)PW(a,dL(vK,null,"Unsupported ad format."),c);else{var d=new vQ("adsLoaderSdkAdLoaded");d.B=b;d.A=c;a.T(d)}}function PW(a,b,c){a.g?("always"==kL.j&&null!=a.j&&gQ(a.j,dQ()),a.T(new QJ(b,c))):(c=new vQ("adsLoaderSdkAdError"),c.k=b,a.T(c))};var UW={NORMAL:"normal",FULLSCREEN:"fullscreen"};function VW(){return'<div class="close-padding"><div class="close-button"></div></div>'}function WW(){return'<div class="recall-button"></div>'}function XW(a){return'<a target="_blank" href="'+LT(a.url)+'" class="attribution-button">'+LT(a.text)+"</a>"};function YW(a,b){this.F=a;this.g=K("div",{"class":"controls"});this.O=b||u;this.Xc=new An(this)}B(YW,S);f=YW.prototype;f.od=!1;f.Ws=1E3;f.rs=30;f.Rr=45E3;f.Sr=15E3;f.Ut=!1;function ZW(a){var b=K("div",{"class":"container"});rA(b,"opacity 0.4s");a.Xc.listen(b,"mouseover",a.tE);a.Xc.listen(b,"mouseout",a.uE);b.appendChild(a.g);return b}f.Qn=function(){var a=ZW(this);this.g.appendChild(this.F);this.display(this.F);this.play();return a};f.K=function(){null==this.I&&(this.I=this.Qn());return this.I};
f.play=function(){null==this.j&&(this.j=vn(function(){this.od||(this.hide(),this.Ut=!0);this.j=null},this.Ut?this.Sr:this.Rr,this))};f.stop=function(){null!=this.j&&(wn(this.j),this.j=null)};f.display=function(a){var b=document.createEvent("Event");b.initEvent("creativeview",!0,!0);a.dispatchEvent(b)};f.show=function(){Sg(this.K(),1);null!=this.k&&(wn(this.k),this.k=null)};f.hide=function(){Sg(this.K(),this.rs/100);null==this.k&&(this.k=vn(function(){this.O();this.k=null},400,this))};
f.tE=function(){this.show();this.od=!0;this.B=vn(function(){this.od&&this.stop();this.B=null},this.Ws,this)};f.uE=function(){null!=this.B&&(wn(this.B),this.B=null);this.od&&this.play();this.od=!1};f.L=function(){YW.H.L.call(this);this.stop();xi(this.Xc)};function $W(a,b){this.G=a;this.M=new oe;this.J=15E3;this.C=K("span");YW.call(this,a[0],b);this.g.appendChild(this.C)}B($W,YW);
$W.prototype.Qn=function(){var a=ZW(this);P(a,"container-rotator");this.D=K("div");this.g.appendChild(this.D);E(this.G,function(a,c){P(a,"container-highlight");var d=63/this.G.length*(c+.5)-5,e=K("div",{id:Va(),"class":"container-selector"});e.style.top=d+"px";this.Xc.listen(e,"click",function(a){aX(this,a.target)});this.M.set(e.id,a);this.C.appendChild(e)},this);aX(this,Od(this.C));this.play();return a};
$W.prototype.play=function(){null==this.o&&(this.o=new tn(this.J),this.Xc.listen(this.o,"tick",this.N));$W.H.play.call(this);this.o.start()};$W.prototype.stop=function(){null!=this.o&&this.o.stop();$W.H.stop.call(this)};$W.prototype.N=function(){var a=this.A;aX(this,(void 0!=a.nextElementSibling?a.nextElementSibling:Pd(a.nextSibling))||Od(this.A.parentNode))};function aX(a,b){a.A&&fh(a.A,"container-active");P(b,"container-active");var c=a.M.get(b.id);Md(c,a.D);a.A=b;a.D=c;a.display(c)};function bX(a,b){YW.call(this,a[0],b);this.o=a;P(this.g,"container-stack")}B(bX,YW);bX.prototype.hide=u;bX.prototype.Qn=function(){var a=ZW(this);E(this.o,function(a){P(a,"container-highlight");this.g.appendChild(a);this.display(a)},this);this.play();return a};function cX(){S.call(this);this.C="";this.j=new cR;this.k=new oe;this.o=[];this.D=!1;this.g={};this.B=-1;this.A=[]}B(cX,S);function dX(a,b){if(kL.g){var c=BO(xO(),b.type,a.C);a.F(b.type,c)}else mS(kS(),b.type,a.C,y(a.F,a,b.type))}
cX.prototype.F=function(a,b){null!=b&&vV(this.g,b);if("impression"==a&&!this.D&&null!=this.o&&0<this.o.length){var c=H(this.A,"impression");eX(this,this.o,"",c);this.D=!0}t:switch(a){case "click":c=!0;break t;case "complete":c=!qe(this.k,a)&&!qe(this.k,"skip");break t;default:c=!qe(this.k,a)}if(c){var c=H(this.A,a),d=jR(this.j,a);0<d.length&&(eX(this,d,b,c),this.k.set(a,!0))}};function fX(a,b){null!=b&&E(b,function(a){H(this.A,a)||this.A.push(a)},a)}
function eX(a,b,c,d){E(b,function(a){qK(a,this.g,c,d)},a)};function gX(a){V.call(this);this.ads=a;this.F=null;this.I="normal";this.k=this.volume=null;this.j=new EL;this.ja=!1;this.content={};this.A=new cX;this.N=!1;E(a,function(){});E(a,function(b,c){var d=b.A;d.k=a.length;var e=c+1;d.g=e;d.o=e})}B(gX,V);function hX(a){if(iX(a)){if(XS(a.F)&&!zL())throw fL(CK,null,"skippablevideo");return a.F}throw fL(yK,null,"An ad has not been selected.");}function iX(a){return null!==a.F}f=gX.prototype;
f.Ng=function(){var a=cb(this.ads,this.F);-1!=a&&++a<this.ads.length?this.F=this.ads[a]:this.F=null};f.Er=function(){if(!iX(this)){if(lb(this.ads))throw fL(KK);this.F=this.ads[0];if(null==this.F.g)throw dL(KK);}};f.ra=function(a){iX(this)?this.T(new TJ(a,hX(this))):this.T(new TJ(a,null))};function jX(a){null==a.D&&(a.D=new An(a));return a.D}function kX(a,b){if(null!=a.B&&(En(jX(a),a.B,"companion_display_error",function(){}),gQ(a.B,b),!a.B.mu()))throw fL(zK);}
f.destroy=function(){kL.g&&(xO().j=null);this.dispose()};f.L=function(){iX(this)&&(dT(this.F,null),this.F=null);xi(this.D);this.D=null;xi(this.B);this.B=null;this.N=!1;gX.H.L.call(this)};f.qe=function(){return[]};f.getCurrentAd=function(){return this.ads[0]};f.init=function(a){lX(this);this.Rj(a);this.ja=!0;this.ak()};f.ak=function(){this.ra("loaded")};f.sendImpressionUrls=function(a){iX(this)&&nL()&&sK(bT(hX(this)),a)};f.Bl=function(){};
f.Rc=function(a,b,c){if(!this.N){if(null==a)throw fL(DK,null,"displayContainer");if(null!=c){var d=new ik(Pb(this.j));if(!xe(Pb(c),d.contains,d))throw fL(DK,null,"opt_adsRenderingSettings should be instance of AdsRenderingSettings");d=this.j;if(null==c.bitrate||0>=c.bitrate)c.bitrate=-1;null==c.mimeTypes&&(c.mimeTypes=[]);mX(c.mimeTypes);ia(c.loadVideoTimeout)||(c.loadVideoTimeout=15E3);bc(d,c)}this.content=b;this.k=a;this.Er();kL.g&&(a=xO(),b=y(this.Dr,this),a.j=b);this.N=!0}};
f.ef=function(a){E(bT(a),function(a){nb(this.A.o,a)},this)};f.ie=function(a,b){E(b,function(b){b=ES(a,b);fR(this.A.j,b)},this)};f.ti=function(a){if(a instanceof GS){var b=HS(a);E(b.Ka(),function(a){var d=b.get(a);E(d,function(b){hR(this.A.j,a,b)},this)},this)}};function nX(a,b){dX(a.A,new lm(b))}f.ic=function(a){dX(this.A,new lm(a));this.ra(a)};f.getRemainingTime=function(){return-1};f.uh=u;f.pause=function(){};f.resume=function(){};f.skip=function(){};
f.start=function(){lX(this);if(!this.ja)throw dL(yK,null,"Must call init before start.");};f.stop=function(){this.destroy()};f.Dr=function(){return null!=this.volume?this.volume:0};f.setVolume=function(a){(isNaN(a)||0>a||1<a)&&hL(this,DK,null,"volume",String(a));this.volume=a};f.Rj=function(a){if(!Nb(UW,a))throw fL(DK,null,"view mode",a);this.I=a};f.setMediaUrl=function(){};function lX(a){if(!a.N)throw fL(yK,null,"Ads manager is not correctly configured.");}f.getMediaUrl=function(){return null};
f.Qq=function(){return null};f.Df=function(){return null};function mX(a){if(!ga(a))throw fL(yK,null,"adsRenderingSettings.mimeTypes should be an array");var b=rb(Ob(gK),Ob(bK));E(a,function(a){if(!H(b,a))throw fL(yK,null,"Invalid or unsuppoted mime type "+a);})};function oX(a){gX.call(this,a);this.o=null;this.U=K("div",{style:"display:none;position:absolute;top:0;left:0;bottom:0;right:0;z-index:2000"});this.M=!1;this.O=[]}B(oX,gX);f=oX.prototype;f.start=function(){oX.H.start.call(this);this.k.oi();this.o=this.k.xf();if(null!=this.o){Jd(this.o);var a=this.Lm();kL.g?AO(xO(),a):lS(kS(),a);this.o.appendChild(a);pX(this);E(this.O,function(a){a()});mb(this.O);this.M=!0;this.ra("start")}};f.uh=function(){oX.H.uh.call(this);pX(this)};
f.L=function(){xi(this.g);this.k=this.g=null;this.M=!1;kL.g?xO().o=null:kS().k=null;null!=this.o&&(Jd(this.o),this.o=null);oX.H.L.call(this)};function qX(a,b){var c=TS(b);E(c,function(a){hR(this.A.j,"click",a)},a)}
f.Lm=function(){var a=eT(hX(this));if(null==a)throw a=fL(KK),rX(this,a),a;MS(a,jX(this));NS(a,this.ND);try{kX(this,hX(this))}catch(b){throw rX(this,b),b;}var c=hX(this),d=sV(c);this.A.g=d;c.g&&(this.ef(c),(c=c.g)&&this.ie(c,SJ));qX(this,a);this.M?this.ic("impression"):this.O.push(y(this.ic,this,"impression"));return sX(this,[a.De()])};f.us=function(a,b){return new YW(a[0],b)};
function sX(a,b){null!=a.g&&a.g.stop();a.g=a.us(b,y(a.ts,a));var c=a.g.K();if(kL.g){var d=K("style",{type:"text/css"},'.close-padding{color:#fff;cursor:pointer;margin:0;padding-bottom:10px;padding-left:10px;position:absolute;right:0;top:0;z-index:1001}.close-button{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA8AAAAPCAQAAACR313BAAAABGdBTUEAALGPC/xhBQAAAAFzUkdCAK7OHOkAAAAgY0hSTQAAeiYAAICEAAD6AAAAgOgAAHUwAADqYAAAOpgAABdwnLpRPAAAAAJiS0dEAP+Hj8y/AAAACXBIWXMAAAsTAAALEwEAmpwYAAAACXZwQWcAAAAPAAAADwBjHBMTAAAAt0lEQVQY03XQMW7CQBAAwLmTlSp9JFpHiCYfiFzkCZbfkqfwjshPoEART6BwWmRQ5IrqikDB4QQFb7V7o7vd2/CiPr26F5/aEJan0lR8KUos7uJWKV6LTvcvo7gercHzn2zk6ADW+nzzYO4iKDS5vOBck5+NkAwas9xvpjFIv0yyscu8s8k4cmcFHsFqnD1zDxbe8w76249ViGrfah9+VLdM5cEgSd7GzhR7T7YTO9+LbThO4FEbzuewMmr11FxHAAAAAElFTkSuQmCC);float:right;height:15px;margin:5px 4px 0 0;width:15px}.yt-text-overlay .close-button{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAKCAQAAAAnOwc2AAAAIGNIUk0AAHolAACAgwAA+f8AAIDpAAB1MAAA6mAAADqYAAAXb5JfxUYAAAACYktHRAD/h4/MvwAAAAlwSFlzAAAASAAAAEgARslrPgAAAAl2cEFnAAAACgAAAAoATqZ25QAAAN1JREFUCNcB0gAt/wDbutvr23TbBAAA2wXbeNvs27UAAAHb9QAK+v3CoyBzJGAAhAAJ9vsvjgNuAftABgMUKvtBDlEBDvv9ouLGAAEAAJunMVIPBgAAAADx+aXjj90AoAAAAAAAwM/b/9v/2/+k6wCtAFUAAAIAANtxGxcAAAAAAAAlDX8LAKsAAAPbdgCDABH1+dDwEAUPBiggNCGxsQHb9AAL+/2c4KPZdQlNPwQC9vsvWwIAzff8ouGU3euhs1TJrvj82vQAXQEAAACRACMApwCpAPwABABaAFcA1sKJVOsU6fRuAAAAAElFTkSuQmCC);height:10px;margin:9px 9px 0 0;width:10px}.close-padding:hover .close-button{background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA8AAAAPCAQAAACR313BAAAABGdBTUEAALGPC/xhBQAAAAFzUkdCAK7OHOkAAAAgY0hSTQAAeiYAAICEAAD6AAAAgOgAAHUwAADqYAAAOpgAABdwnLpRPAAAAAJiS0dEAP+Hj8y/AAAACXBIWXMAAAsTAAALEwEAmpwYAAAACXZwQWcAAAAPAAAADwBjHBMTAAAAs0lEQVQY03XQLc7CQBAA0LdQjf8UQSCBcIHvAHgM6Wm4CB4kAk96g+IQhECCJATbUMy2NIGO2Mzs298JU/Py36/Y24SwKofa4ihkJYOfeEKnKnL5V0ZSTe3AqJHVHFzBzsUBXI2pDu9K4+pD3JnqfrjwkOrH+/pSD8WHKWTOkc+yiDXntqAHtvXbI1/AxNKkUdcfmyFYuFt4Kc0iN7qWoIhj1bXk5s+ppec3nXV4tuDTOrwBYQs0jH6JoccAAAAASUVORK5CYII=)}.yt-text-overlay .close-padding:hover .close-button{background-color:rgba(0,0,0,0.15);background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAKCAQAAAAnOwc2AAAAIGNIUk0AAHolAACAgwAA+f8AAIDpAAB1MAAA6mAAADqYAAAXb5JfxUYAAAACYktHRAD/h4/MvwAAAAlwSFlzAAAASAAAAEgARslrPgAAAAl2cEFnAAAACgAAAAoATqZ25QAAALpJREFUCNclyL1Kw1AAgNFPqLh3cu/D+ARV8S0UEcFVoYOL4Kw4FSmClBZiB38WHZ10sQUnB6MR2hruTVI/h5zx4MjUXRvgsvt+OQT81VBdn7803THXWUEHD+JCf+L48e9bY9WZ0AcG3SyqahYO30jYBOD9uc67lCvaALjtR52f4TSpa89cp+E+nRYayuQMcK6xOhqvDi9ui4XOCtr4MC+PJys3rK81R728fMroLwEntOhySUWDLTZ4/QdyroIjdfxoFwAAAABJRU5ErkJggg==);background-position:center center;background-repeat:no-repeat;border-radius:3px;-moz-border-radius:3px;-webkit-border-radius:3px;box-shadow:inset 0 -1px 3px rgba(0,0,0,0.3),0 1px 0 rgba(255,255,255,0.5);height:20px;margin:4px 4px 0 0;width:20px}.recall-button{background:rgba(200,200,200,0.2) url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAICAYAAADA+m62AAAABGdBTUEAALGPC/xhBQAAAAFzUkdCAK7OHOkAAAAgY0hSTQAAeiYAAICEAAD6AAAAgOgAAHUwAADqYAAAOpgAABdwnLpRPAAAAAZiS0dEAP8A/wD/oL2nkwAAAAlwSFlzAAAASAAAAEgARslrPgAAAAl2cEFnAAAACgAAAAgAfJAUZwAAAURJREFUGNMFwb1LAmEAB+Dfe+/daZ3aWX6k1WFmSElQUBYUVIsguTQ0BUm4VtDYFLT4b7hkYLQGDg5BtERkUIRDgX1oWg6deKl359vzEFZO0mwWJgAUjgr88fe7R/2BkVonXVOGOQRQAJSwcp4CWWhKhnI6Vg0TkWYbnc8G7hbCjlLM3SQOBZQDAPgyk3wP+/Vf2Oyu4JV/NHDf1CG/1NREdZuZVRUCeiaLal12iETBQ4E1iN4QaNLqAafMptlw6Yvtwh4cI5CiIm09BAh06fbDbEx7saXp0M9vkDtJELQ5jPQAK1i5Irb+mGwYbEfV2AHiZz7M7YVLNZZ6rLDYACac8xAkwjp6ROf4ePEV19EZmaCrdQXwbzq19V8W68qUH+Hx4OYFnp6ZjJWck4NlUYLVf5pOgpXzdAOCOIg+N1zLIQuPpX9L/XzfXOCrFgAAAABJRU5ErkJggg==) no-repeat center;border:1px solid rgba(255,255,255,0.498039);box-shadow:rgba(0,0,0,0.701961) 0 4px 3px;color:#fff;cursor:pointer;height:11px;width:26px;z-index:1001}.yt-text-overlay .recall-button{background:rgba(0,0,0,0.15) url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAkAAAAGCAQAAAC7znxOAAAKPWlDQ1BpY2MAAHjanVNnVFPpFj333vRCS4iAlEtvUhUIIFJCi4BUaaISkgChhBgSQOyIqMCIoiKCFRkUccDREZCxIoqFQbH3AXkIKOPgKDZU3g/eGn2z5r03b/avvfY5Z53vnH0+AEZgsESahaoBZEoV8ogAHzw2Lh4ndwMKVCCBA4BAmC0LifSPAgDg+/Hw7IgAH/gCBODNbUAAAG7YBIbhOPx/UBfK5AoAJAwApovE2UIApBAAMnIVMgUAMgoA7KR0mQIAJQAAWx4bFw+AagEAO2WSTwMAdtIk9wIAtihTKgJAowBAJsoUiQDQDgBYl6MUiwCwYAAoypGIcwGwmwBgkqHMlABg7wCAnSkWZAMQGABgohALUwEI9gDAkEdF8AAIMwEojJSveNJXXCHOUwAA8LJki+WSlFQFbiG0xB1cXbl4oDg3Q6xQ2IQJhOkCuQjnZWXKBNLFAJMzAwCARnZEgA/O9+M5O7g6O9s42jp8taj/GvyLiI2L/5c/r8IBAQCE0/VF+7O8rBoA7hgAtvGLlrQdoGUNgNb9L5rJHgDVQoDmq1/Nw+H78fBUhULmZmeXm5trKxELbYWpX/X5nwl/AV/1s+X78fDf14P7ipMFygwFHhHggwuzMrKUcjxbJhCKcZs/HvHfLvzzd0yLECeL5WKpUIxHS8S5EmkKzsuSiiQKSZYUl0j/k4l/s+wPmLxrAGDVfgb2QltQu8oG7JcuILDogCXsAgDkd9+CqdEQBgAxBoOTdw8AMPmb/x1oGQCg2ZIUHACAFxGFC5XynMkYAQCACDRQBTZogz4YgwXYgCO4gDt4gR/MhlCIgjhYAEJIhUyQQy4shVVQBCWwEbZCFeyGWqiHRjgCLXACzsIFuALX4BY8gF4YgOcwCm9gHEEQMsJEWIg2YoCYItaII8JFZiF+SDASgcQhiUgKIkWUyFJkNVKClCNVyF6kHvkeOY6cRS4hPcg9pA8ZRn5DPqAYykDZqB5qhtqhXNQbDUKj0PloCroIzUcL0Q1oJVqDHkKb0bPoFfQW2os+R8cwwOgYBzPEbDAuxsNCsXgsGZNjy7FirAKrwRqxNqwTu4H1YiPYewKJwCLgBBuCOyGQMJcgJCwiLCeUEqoIBwjNhA7CDUIfYZTwmcgk6hKtiW5EPjGWmELMJRYRK4h1xGPE88RbxAHiGxKJxCGZk1xIgaQ4UhppCamUtJPURDpD6iH1k8bIZLI22ZrsQQ4lC8gKchF5O/kQ+TT5OnmA/I5CpxhQHCn+lHiKlFJAqaAcpJyiXKcMUsapalRTqhs1lCqiLqaWUWupbdSr1AHqOE2dZk7zoEXR0miraJW0Rtp52kPaKzqdbkR3pYfTJfSV9Er6YfpFeh/9PUODYcXgMRIYSsYGxn7GGcY9xismk2nG9GLGMxXMDcx65jnmY+Y7FZaKrQpfRaSyQqVapVnlusoLVaqqqaq36gLVfNUK1aOqV1VH1KhqZmo8NYHacrVqteNqd9TG1FnqDuqh6pnqpeoH1S+pD2mQNcw0/DREGoUa+zTOafSzMJYxi8cSslazalnnWQNsEtuczWensUvY37G72aOaGpozNKM18zSrNU9q9nIwjhmHz8nglHGOcG5zPkzRm+I9RTxl/ZTGKdenvNWaquWlJdYq1mrSuqX1QRvX9tNO196k3aL9SIegY6UTrpOrs0vnvM7IVPZU96nCqcVTj0y9r4vqWulG6C7R3afbpTump68XoCfT2653Tm9En6PvpZ+mv0X/lP6wActgloHEYIvBaYNnuCbujWfglXgHPmqoaxhoqDTca9htOG5kbjTXqMCoyeiRMc2Ya5xsvMW43XjUxMAkxGSpSYPJfVOqKdc01XSbaafpWzNzsxiztWYtZkPmWuZ883zzBvOHFkwLT4tFFjUWNy1JllzLdMudltesUCsnq1Sraqur1qi1s7XEeqd1zzTiNNdp0mk10+7YMGy8bXJsGmz6bDm2wbYFti22L+xM7OLtNtl12n22d7LPsK+1f+Cg4TDbocChzeE3RytHoWO1483pzOn+01dMb53+cob1DPGMXTPuOrGcQpzWOrU7fXJ2cZY7NzoPu5i4JLrscLnDZXPDuKXci65EVx/XFa4nXN+7Obsp3I64/epu457uftB9aKb5TPHM2pn9HkYeAo+9Hr2z8FmJs/bM6vU09BR41ng+8TL2EnnVeQ16W3qneR/yfuFj7yP3OebzlufGW8Y744v5BvgW+3b7afjN9avye+xv5J/i3+A/GuAUsCTgTCAxMChwU+Advh5fyK/nj852mb1sdkcQIygyqCroSbBVsDy4LQQNmR2yOeThHNM50jktoRDKD90c+ijMPGxR2I/hpPCw8OrwpxEOEUsjOiNZkQsjD0a+ifKJKot6MNdirnJue7RqdEJ0ffTbGN+Y8pjeWLvYZbFX4nTiJHGt8eT46Pi6+LF5fvO2zhtIcEooSrg933x+3vxLC3QWZCw4uVB1oWDh0URiYkziwcSPglBBjWAsiZ+0I2lUyBNuEz4XeYm2iIbFHuJy8WCyR3J58lCKR8rmlOFUz9SK1BEJT1IleZkWmLY77W16aPr+9ImMmIymTEpmYuZxqYY0XdqRpZ+Vl9Ujs5YVyXoXuS3aumhUHiSvy0ay52e3KtgKmaJLaaFco+zLmZVTnfMuNzr3aJ56njSva7HV4vWLB/P9879dQlgiXNK+1HDpqqV9y7yX7V2OLE9a3r7CeEXhioGVASsPrKKtSl/1U4F9QXnB69Uxq9sK9QpXFvavCVjTUKRSJC+6s9Z97e51hHWSdd3rp6/fvv5zsaj4col9SUXJx1Jh6eVvHL6p/GZiQ/KG7jLnsl0bSRulG29v8tx0oFy9PL+8f3PI5uYt+JbiLa+3Ltx6qWJGxe5ttG3Kbb2VwZWt2022b9z+sSq16la1T3XTDt0d63e83SnaeX2X167G3Xq7S3Z/2CPZc3dvwN7mGrOain2kfTn7ntZG13Z+y/22vk6nrqTu037p/t4DEQc66l3q6w/qHixrQBuUDcOHEg5d+873u9ZGm8a9TZymksNwWHn42feJ398+EnSk/Sj3aOMPpj/sOMY6VtyMNC9uHm1JbeltjWvtOT77eHube9uxH21/3H/C8ET1Sc2TZadopwpPTZzOPz12RnZm5GzK2f72he0PzsWeu9kR3tF9Puj8xQv+F851eneevuhx8cQlt0vHL3Mvt1xxvtLc5dR17Cenn451O3c3X3W52nrN9Vpbz8yeU9c9r5+94Xvjwk3+zSu35tzquT339t07CXd674ruDt3LuPfyfs798QcrHxIfFj9Se1TxWPdxzc+WPzf1Ovee7PPt63oS+eRBv7D/+T+y//FxoPAp82nFoMFg/ZDj0Ilh/+Frz+Y9G3guez4+UvSL+i87Xli8+OFXr1+7RmNHB17KX078VvpK+9X+1zNet4+FjT1+k/lm/G3xO+13B95z33d+iPkwOJ77kfyx8pPlp7bPQZ8fTmROTPwTA5jz/CVjM6IAAAAgY0hSTQAAeiUAAICDAAD5/wAAgOkAAHUwAADqYAAAOpgAABdvkl/FRgAAAAJiS0dEAP+Hj8y/AAAACXBIWXMAAAsTAAALEwEAmpwYAAAACXZwQWcAAAAJAAAABgBkh0tHAAAALElEQVQI12P4zwCBv9JgLLjAr/8wQYTAf5ggsgBUEFXg/6//v9IYf/1nQAMAapVB10c/DEAAAAAASUVORK5CYII=) no-repeat center;border:1px solid rgba(0,0,0,0);box-shadow:none;height:17px;width:29px}.autoalign .recall-button{margin:auto}.yt-text-overlay.autoalign .recall-button{margin:auto auto 6px}.recall-button:hover{background:#fff url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAHCAAAAAAUx4O/AAAABGdBTUEAALGPC/xhBQAAAAFzUkdCAK7OHOkAAAAgY0hSTQAAeiYAAICEAAD6AAAAgOgAAHUwAADqYAAAOpgAABdwnLpRPAAAAAlwSFlzAAALEwAACxMBAJqcGAAAAAl2cEFnAAAACgAAAAcA+wgIqAAAAEtJREFUCNcVi1kRwEAIQ3GAhEpAAhJWChKQsBIqBQlIQAIS0jQ/OeZFAIz70ARIjdDL2GYF1OMrxZ6JvUugjGoCG5rcJSHv+d/oMx893S/cqF2DpwAAAABJRU5ErkJggg==) no-repeat center}.yt-text-overlay .recall-button:hover{background:rgba(0,0,0,0.15) url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAkAAAAGCAQAAAC7znxOAAAKPWlDQ1BpY2MAAHjanVNnVFPpFj333vRCS4iAlEtvUhUIIFJCi4BUaaISkgChhBgSQOyIqMCIoiKCFRkUccDREZCxIoqFQbH3AXkIKOPgKDZU3g/eGn2z5r03b/avvfY5Z53vnH0+AEZgsESahaoBZEoV8ogAHzw2Lh4ndwMKVCCBA4BAmC0LifSPAgDg+/Hw7IgAH/gCBODNbUAAAG7YBIbhOPx/UBfK5AoAJAwApovE2UIApBAAMnIVMgUAMgoA7KR0mQIAJQAAWx4bFw+AagEAO2WSTwMAdtIk9wIAtihTKgJAowBAJsoUiQDQDgBYl6MUiwCwYAAoypGIcwGwmwBgkqHMlABg7wCAnSkWZAMQGABgohALUwEI9gDAkEdF8AAIMwEojJSveNJXXCHOUwAA8LJki+WSlFQFbiG0xB1cXbl4oDg3Q6xQ2IQJhOkCuQjnZWXKBNLFAJMzAwCARnZEgA/O9+M5O7g6O9s42jp8taj/GvyLiI2L/5c/r8IBAQCE0/VF+7O8rBoA7hgAtvGLlrQdoGUNgNb9L5rJHgDVQoDmq1/Nw+H78fBUhULmZmeXm5trKxELbYWpX/X5nwl/AV/1s+X78fDf14P7ipMFygwFHhHggwuzMrKUcjxbJhCKcZs/HvHfLvzzd0yLECeL5WKpUIxHS8S5EmkKzsuSiiQKSZYUl0j/k4l/s+wPmLxrAGDVfgb2QltQu8oG7JcuILDogCXsAgDkd9+CqdEQBgAxBoOTdw8AMPmb/x1oGQCg2ZIUHACAFxGFC5XynMkYAQCACDRQBTZogz4YgwXYgCO4gDt4gR/MhlCIgjhYAEJIhUyQQy4shVVQBCWwEbZCFeyGWqiHRjgCLXACzsIFuALX4BY8gF4YgOcwCm9gHEEQMsJEWIg2YoCYItaII8JFZiF+SDASgcQhiUgKIkWUyFJkNVKClCNVyF6kHvkeOY6cRS4hPcg9pA8ZRn5DPqAYykDZqB5qhtqhXNQbDUKj0PloCroIzUcL0Q1oJVqDHkKb0bPoFfQW2os+R8cwwOgYBzPEbDAuxsNCsXgsGZNjy7FirAKrwRqxNqwTu4H1YiPYewKJwCLgBBuCOyGQMJcgJCwiLCeUEqoIBwjNhA7CDUIfYZTwmcgk6hKtiW5EPjGWmELMJRYRK4h1xGPE88RbxAHiGxKJxCGZk1xIgaQ4UhppCamUtJPURDpD6iH1k8bIZLI22ZrsQQ4lC8gKchF5O/kQ+TT5OnmA/I5CpxhQHCn+lHiKlFJAqaAcpJyiXKcMUsapalRTqhs1lCqiLqaWUWupbdSr1AHqOE2dZk7zoEXR0miraJW0Rtp52kPaKzqdbkR3pYfTJfSV9Er6YfpFeh/9PUODYcXgMRIYSsYGxn7GGcY9xismk2nG9GLGMxXMDcx65jnmY+Y7FZaKrQpfRaSyQqVapVnlusoLVaqqqaq36gLVfNUK1aOqV1VH1KhqZmo8NYHacrVqteNqd9TG1FnqDuqh6pnqpeoH1S+pD2mQNcw0/DREGoUa+zTOafSzMJYxi8cSslazalnnWQNsEtuczWensUvY37G72aOaGpozNKM18zSrNU9q9nIwjhmHz8nglHGOcG5zPkzRm+I9RTxl/ZTGKdenvNWaquWlJdYq1mrSuqX1QRvX9tNO196k3aL9SIegY6UTrpOrs0vnvM7IVPZU96nCqcVTj0y9r4vqWulG6C7R3afbpTump68XoCfT2653Tm9En6PvpZ+mv0X/lP6wActgloHEYIvBaYNnuCbujWfglXgHPmqoaxhoqDTca9htOG5kbjTXqMCoyeiRMc2Ya5xsvMW43XjUxMAkxGSpSYPJfVOqKdc01XSbaafpWzNzsxiztWYtZkPmWuZ883zzBvOHFkwLT4tFFjUWNy1JllzLdMudltesUCsnq1Sraqur1qi1s7XEeqd1zzTiNNdp0mk10+7YMGy8bXJsGmz6bDm2wbYFti22L+xM7OLtNtl12n22d7LPsK+1f+Cg4TDbocChzeE3RytHoWO1483pzOn+01dMb53+cob1DPGMXTPuOrGcQpzWOrU7fXJ2cZY7NzoPu5i4JLrscLnDZXPDuKXci65EVx/XFa4nXN+7Obsp3I64/epu457uftB9aKb5TPHM2pn9HkYeAo+9Hr2z8FmJs/bM6vU09BR41ng+8TL2EnnVeQ16W3qneR/yfuFj7yP3OebzlufGW8Y744v5BvgW+3b7afjN9avye+xv5J/i3+A/GuAUsCTgTCAxMChwU+Advh5fyK/nj852mb1sdkcQIygyqCroSbBVsDy4LQQNmR2yOeThHNM50jktoRDKD90c+ijMPGxR2I/hpPCw8OrwpxEOEUsjOiNZkQsjD0a+ifKJKot6MNdirnJue7RqdEJ0ffTbGN+Y8pjeWLvYZbFX4nTiJHGt8eT46Pi6+LF5fvO2zhtIcEooSrg933x+3vxLC3QWZCw4uVB1oWDh0URiYkziwcSPglBBjWAsiZ+0I2lUyBNuEz4XeYm2iIbFHuJy8WCyR3J58lCKR8rmlOFUz9SK1BEJT1IleZkWmLY77W16aPr+9ImMmIymTEpmYuZxqYY0XdqRpZ+Vl9Ujs5YVyXoXuS3aumhUHiSvy0ay52e3KtgKmaJLaaFco+zLmZVTnfMuNzr3aJ56njSva7HV4vWLB/P9879dQlgiXNK+1HDpqqV9y7yX7V2OLE9a3r7CeEXhioGVASsPrKKtSl/1U4F9QXnB69Uxq9sK9QpXFvavCVjTUKRSJC+6s9Z97e51hHWSdd3rp6/fvv5zsaj4col9SUXJx1Jh6eVvHL6p/GZiQ/KG7jLnsl0bSRulG29v8tx0oFy9PL+8f3PI5uYt+JbiLa+3Ltx6qWJGxe5ttG3Kbb2VwZWt2022b9z+sSq16la1T3XTDt0d63e83SnaeX2X167G3Xq7S3Z/2CPZc3dvwN7mGrOain2kfTn7ntZG13Z+y/22vk6nrqTu037p/t4DEQc66l3q6w/qHixrQBuUDcOHEg5d+873u9ZGm8a9TZymksNwWHn42feJ398+EnSk/Sj3aOMPpj/sOMY6VtyMNC9uHm1JbeltjWvtOT77eHube9uxH21/3H/C8ET1Sc2TZadopwpPTZzOPz12RnZm5GzK2f72he0PzsWeu9kR3tF9Puj8xQv+F851eneevuhx8cQlt0vHL3Mvt1xxvtLc5dR17Cenn451O3c3X3W52nrN9Vpbz8yeU9c9r5+94Xvjwk3+zSu35tzquT339t07CXd674ruDt3LuPfyfs798QcrHxIfFj9Se1TxWPdxzc+WPzf1Ovee7PPt63oS+eRBv7D/+T+y//FxoPAp82nFoMFg/ZDj0Ilh/+Frz+Y9G3guez4+UvSL+i87Xli8+OFXr1+7RmNHB17KX078VvpK+9X+1zNet4+FjT1+k/lm/G3xO+13B95z33d+iPkwOJ77kfyx8pPlp7bPQZ8fTmROTPwTA5jz/CVjM6IAAAAgY0hSTQAAeiUAAICDAAD5/wAAgOkAAHUwAADqYAAAOpgAABdvkl/FRgAAAAJiS0dEAP+Hj8y/AAAACXBIWXMAAAsTAAALEwEAmpwYAAAACXZwQWcAAAAJAAAABgBkh0tHAAAALElEQVQI12P4zwCBv9JgLLjAr/8wQYTAf5ggsgBUEFXg/6//v9IYf/1nQAMAapVB10c/DEAAAAAASUVORK5CYII=) no-repeat center;border:1px solid rgba(255,255,255,0.5)}.auto-hide{display:none}body:hover .auto-hide{display:block}.attribution-button{bottom:12px;color:#fff;font:11px arial,sans-serif;position:absolute;right:5px;text-decoration:none;text-shadow:rgba(0,0,0,0.7) 0 4px 4px;z-index:1001}.yt-text-overlay .attribution-button{color:#888;text-shadow:none}.viewmode-fullscreen .attribution-button{bottom:auto;right:22px;top:5px}.yt-text-overlay.viewmode-fullscreen .attribution-button{right:5px;top:auto}.text-container .attribution-button{bottom:7px}.container{position:absolute;width:100%;z-index:1000}.container.autoalign{bottom:0;text-align:center}.container-stack{background-color:#666;border-radius:5px;display:block;padding:3px 0}.container-rotator .attribution-button{bottom:7px}.container-rotator .text-inner-container{left:20px}.container-selector{-webkit-box-shadow:0 4px 3px rgba(0,0,0,.7);-moz-box-shadow:0 4px 3px rgba(0,0,0,.7);box-shadow:0 4px 3px rgba(0,0,0,.7);background:#666;border-radius:2px;cursor:pointer;height:10px;left:5px;position:absolute;width:10px;z-index:1002}.container-selector:hover{background:#fff}.container-rotator .container-highlight:hover{border-color:#fff!important}.container-stack .container-highlight:hover{background-color:#999!important}.container-active{background:#fc0!important}.container-slider .attribution-button{bottom:7px}.container-slider .controls{max-width:100%!important}.container-slider .text-container{background-color:#000;border-radius:5px 5px 0 0;margin-bottom:0}.container-slider .text-title:hover{text-decoration:underline!important}.container-slider.hidden .controls{top:38px}.container-slider.animated .controls{-webkit-transition:top .4s;-moz-transition:top .4s;-o-transition:top .4s;transition:top .4s}.controls{display:inline-block;position:relative}.controls.scalable{display:block;min-width:320px;max-width:450px}.autoalign .controls.scalable{margin:auto}.flash-container,.image-container{display:inline-block;position:relative}.flash-container.click-capture .click-layer{display:block}.click-layer{background:rgba(0,0,0,0.0);bottom:0;left:0;position:absolute;right:0;top:0;z-index:100}.text-container{margin-bottom:5px;position:relative}.yt-text-overlay .text-container{margin-bottom:3px}.text-inner-container{background-image:-webkit-linear-gradient(top,rgba(20,20,20,0.6),rgba(209,209,209,0.6));background-image:-moz-linear-gradient(top,rgba(20,20,20,0.6),rgba(209,209,209,0.6));background-image:-ms-linear-gradient(top,rgba(20,20,20,0.6),rgba(209,209,209,0.6));background-image:-o-linear-gradient(top,rgba(20,20,20,0.6),rgba(209,209,209,0.6));background-image:linear-gradient(top,rgba(20,20,20,0.6),rgba(209,209,209,0.6));border:1px solid rgba(102,102,102,0.7);border-radius:3px;box-shadow:rgba(0,0,0,0.7) 0 5px 5px;padding-left:10px;position:absolute;text-align:left;top:0;bottom:0;left:0;right:0}.yt-text-overlay .text-container .text-inner-container{background-color:rgba(0,0,0,0.6);background-image:none;border:1px solid rgba(0,0,0,0.6);border-radius:0;box-shadow:none;padding-left:10px}.viewmode-fullscreen .text-inner-container{background-image:none;border:none;box-shadow:none}.yt-text-overlay .controls:hover .text-inner-container{border:1px solid rgba(58,58,58,1.0)}.text-title{text-decoration:underline}.yt-text-overlay .text-title{text-decoration:none}.viewmode-fullscreen .text-title{text-decoration:none}.yt-text-overlay .controls:hover .text-container .text-title{text-decoration:underline}.text-image-link{float:left;position:relative}.text-image{box-shadow:rgba(0,0,0,0.498039) 0 3px 5px;height:57px;margin:3px 10px 0 0;width:79px}.yt-text-overlay .text-image{margin:2px 10px 0 0}.text-image-duration{background:#000;color:#fff;font:10px arial,sans-serif;padding:2px;position:absolute;right:10px;top:43px}.text-title{color:#fff;display:block;font:bold 14px arial,sans-serif;margin:7px 16px 0 0;overflow:hidden;padding-bottom:4px;text-overflow:ellipsis;text-shadow:rgba(0,0,0,0.7) 0 4px 4px;white-space:nowrap}.yt-text-overlay .text-title{margin-top:7px;text-shadow:#000 0 -1px 0}.text-description{color:#fff;font:12px arial,sans-serif;margin-top:-3px;overflow:hidden;text-overflow:ellipsis;text-shadow:rgba(0,0,0,0.7) 0 4px 4px;white-space:nowrap}.yt-text-overlay .text-description{text-align:left;text-shadow:none}.text-ad-channel{bottom:7px;color:#f9fcc0;font:bold 11px arial,sans-serif;left:10px;position:absolute;text-decoration:none;text-shadow:rgba(0,0,0,0.7) 0 4px 4px}.yt-text-overlay .text-ad-channel{bottom:9px;color:#eade90;font-weight:normal;left:10px;text-shadow:#000 0 -1px 0}.pyv .text-ad-channel{left:99px}.yt-text-overlay .pyv .text-ad-channel{left:99px}.viewmode-fullscreen .text-ad-channel{color:#ccc}.yt-text-overlay.viewmode-fullscreen .text-ad-channel{color:#eade90}.ima-sdk-frame body{background:transparent;height:100%;margin:0;overflow:hidden}.ima-sdk-frame{height:100%}.ima-sdk-frame-native body{background:#000}.ima-sdk-frame-native video{bottom:0;left:0;margin:auto;right:0;top:0}.ytp-iv-drawer-open .videoAdUiTopBar,.ytp-iv-drawer-open .videoAdUiPreSkipContainer,.ytp-iv-drawer-open .videoAdUiSkipContainer,.ytp-iv-drawer-open .ad-overlay .container{display:none}.videoAdUi{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;background-color:rgba(0,0,0,0);bottom:0;cursor:pointer;height:100%;left:0;min-height:100%;position:absolute;right:0;top:0;overflow:hidden}.videoAdUiTopBar{background:#000;border-bottom:1px solid #444;cursor:default;left:0;opacity:.8;padding:0;position:relative;top:0;right:0;z-index:1000}.videoAdUiTopBarWithGradients{background-image:-webkit-linear-gradient(top,rgba(0,0,0,0.8),rgba(0,0,0,0.7) 40%,rgba(0,0,0,0) 99%);background-image:-moz-linear-gradient(top,rgba(0,0,0,0.8),rgba(0,0,0,0.7) 40%,rgba(0,0,0,0) 99%);background-image:-ms-linear-gradient(top,rgba(0,0,0,0.8),rgba(0,0,0,0.7) 40%,rgba(0,0,0,0) 99%);background-image:-o-linear-gradient(top,rgba(0,0,0,0.8),rgba(0,0,0,0.7) 40%,rgba(0,0,0,0) 99%);background-image:linear-gradient(top,rgba(0,0,0,0.8),rgba(0,0,0,0.7) 40%,rgba(0,0,0,0) 99%);background-color:rgba(0,0,0,0);border-bottom:none;height:40px}.videoAdUiTopBarTransitions{-webkit-transition:opacity ease-in .5s;-moz-transition:opacity ease-in .5s;-o-transition:opacity ease-in .5s;transition:opacity ease-in .5s;opacity:0}.videoAdUi:hover .videoAdUiTopBarTransitions{-webkit-transition:opacity ease-out .5s;-moz-transition:opacity ease-out .5s;-o-transition:opacity ease-out .5s;transition:opacity ease-out .5s;opacity:.8}.videoAdUiTopBarNoFade{opacity:.8!important}.videoAdUiBottomBar{background-image:-webkit-linear-gradient(bottom,rgba(0,0,0,0.5),rgba(0,0,0,0.4) 60%,rgba(0,0,0,0) 99%);background-image:-moz-linear-gradient(bottom,rgba(0,0,0,0.5),rgba(0,0,0,0.4) 60%,rgba(0,0,0,0) 99%);background-image:-ms-linear-gradient(bottom,rgba(0,0,0,0.5),rgba(0,0,0,0.4) 60%,rgba(0,0,0,0) 99%);background-image:-o-linear-gradient(bottom,rgba(0,0,0,0.5),rgba(0,0,0,0.4) 60%,rgba(0,0,0,0) 99%);background-image:linear-gradient(bottom,rgba(0,0,0,0.5),rgba(0,0,0,0.4) 60%,rgba(0,0,0,0) 99%);bottom:5px;left:0;opacity:.9;padding:0;position:absolute;width:100%;z-index:1000}.videoAdUiProgressBar{background-color:#fff;bottom:0;cursor:default;left:0;position:absolute;width:100%;z-index:1000}.videoAdUiProgress{background-image:-webkit-linear-gradient(top,#ffec7b,#dea405);background-image:-moz-linear-gradient(top,#ffec7b,#dea405);background-image:-ms-linear-gradient(top,#ffec7b,#dea405);background-image:-o-linear-gradient(top,#ffec7b,#dea405);background-image:linear-gradient(top,#ffec7b,#dea405);border-right:solid 1px #666;height:4px;opacity:.9;width:0%}.videoAdUiBuffer{height:4px;width:0%;display:none}.videoAdUiAuthorIcon{background:#000;display:inline-block;height:40px;margin:0 10px;position:absolute}.videoAdUiAuthorIconImage{cursor:pointer;width:40px;height:40px}.videoAdUiAuthorIconImage:hover{opacity:.6}.videoAdUiAuthorName{color:#ccc;cursor:pointer;display:inline-block;font:normal 12px arial,sans-serif;margin:10px 5px 5px;text-decoration:none;max-width:20%}.videoAdUiLearnMore{color:#fff;display:inline-block;float:right;font:normal 16px arial,sans-serif;padding:5px}.videoAdUiLearnMoreText{color:#e5bb00;font:normal 13px arial,sans-serif;margin-bottom:5px;text-align:center}.videoAdUiLearnMoreText:hover{text-decoration:underline}.videoAdUiLearnMoreIcon{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAKCAYAAACNMs+9AAAABGdBTUEAALGPC/xhBQAAAAFzUkdCAK7OHOkAAAAgY0hSTQAAeiYAAICEAAD6AAAAgOgAAHUwAADqYAAAOpgAABdwnLpRPAAAAAZiS0dEAP8A/wD/oL2nkwAAAAlwSFlzAAALEwAACxMBAJqcGAAAAAl2cEFnAAAACgAAAAoATqZ25QAAAJdJREFUGNN1j70NwkAMRp+PMAXKBGmgvQWYAOYgMAjMQRZggoiOC0UWQFmAFoEp4EIOzGss+Ud+n2CggTWw6RtC7axFHJf0Ei/aUKH4/njKBEDPLHiwi/0Mxcdhwh0P7BGWryeW44ktI2qZUeJYRfFuEGKugU4Dx1/tlOJdcwBtqD6OQ8YcuAHKNaY1F6WgBVrLO/v2/McTvRgrpKpY5XsAAAAASUVORK5CYII=);display:inline-block;height:10px;margin-left:3px;width:10px}.videoAdUiTitle{color:#fff;cursor:pointer;display:inline-block;font:normal 13px arial,sans-serif;margin:10px 5px 5px;text-decoration:none;max-width:50%}.videoAdUiTitleWithAuthorIcon{margin-left:60px}.videoAdUiAuthorName:hover,.videoAdUiTitle:hover{text-decoration:underline}.ellipsisText{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.videoAdUiAttribution{bottom:0;color:#fff;display:inline-block;font:normal 11px arial,sans-serif;padding:5px;padding-right:10px;position:absolute;text-shadow:0 0 5px rgba(0,0,0,0.8)}.videoAdUiAttribution-gvn{color:#e5bb00;font-size:12px;position:relative;text-shadow:none}.videoAdUiShare{color:#fff;display:inline-block;float:right;font:normal 13px arial,sans-serif;margin:10px 10px 5px}.videoAdUiShare:hover{text-decoration:underline;cursor:pointer}.videoAdUiPreSkipContainer{bottom:22px;cursor:default;padding:15px 0 15px 15px;position:absolute;right:0;z-index:1000}.videoAdUi-mobile .videoAdUiPreSkipContainer{bottom:11px;padding:8px 0 8px 8px}.videoAdUiSkipContainer{-webkit-tap-highlight-color:rgba(0,0,0,0);bottom:22px;cursor:pointer;padding:15px 0 15px 15px;position:absolute;right:0;z-index:1000}.videoAdUi-mobile .videoAdUiSkipContainer{bottom:11px;padding:8px 0 8px 8px}.videoAdUiPreSkipButton{background:rgba(0,0,0,0.8);min-width:155px;padding:6px}.videoAdUi-mobile .videoAdUiPreSkipButton{min-width:105px}.videoAdUiPreSkipText{color:#e6e6e6;font:normal 11px arial,helvetica,sans-serif;padding-right:8px;text-align:center;display:inline-block;width:70px;vertical-align:middle}.videoAdUiPreSkipText.videoAdUiPreSkipTextOnly{width:100%;padding-right:0;line-height:21px}.videoAdUiPreSkipThumbnail{cursor:pointer;display:inline-block;vertical-align:middle}.videoAdUiPreSkipThumbnailImage{display:block;max-width:78px;max-height:42px;width:auto;height:auto}.videoAdUiSkipButton{-webkit-tap-highlight-color:rgba(0,0,0,0);background:rgba(0,0,0,0.8);border:1px solid rgba(255,255,255,0.5);border-right:0;box-sizing:content-box;color:#fff;font:normal 18px arial,helvetica,sans-serif;min-width:150px;padding:10px 7px;text-align:center;cursor:pointer}.videoAdUi-mobile .videoAdUiSkipButton{font:normal 16px arial,helvetica,sans-serif;min-width:100px;padding:6px 7px}.videoAdUiSkipButton:hover{border-color:rgba(255,255,255,1)}.videoAdUi-swipeable .videoAdUiSkipButton{background:rgba(255,255,255,0.8);border:1px solid rgba(0,0,0,0.8);color:#000}.videoAdUiSkipIcon{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAVCAQAAADs3AYjAAAABGdBTUEAALGPC/xhBQAAAAFzUkdCAK7OHOkAAAAgY0hSTQAAeiYAAICEAAD6AAAAgOgAAHUwAADqYAAAOpgAABdwnLpRPAAAAAJiS0dEAP+Hj8y/AAAACXBIWXMAAAsTAAALEwEAmpwYAAAACXZwQWcAAAAUAAAAFQC6IBuQAAAAUElEQVQoz93QwQkAIAwDwOIirtJNHM3RHCW+CqXG9q15hoNARB7KRAfrAeAoGKaQ4SuMOIUel9CwwZY9oaL8Bp+FUU8bSqFHVxgRhQxR+EM2fqKwh5sgSyYAAAAASUVORK5CYII=);display:inline-block;height:25px;margin-left:2px;vertical-align:middle;width:20px}@media all and (min-width:800px) and (min-height:400px){.videoAdUiTitle{font-size:15px}.videoAdUiAttribution{font-size:13px}.videoAdUiAttribution-gvn{font-size:16px!important}.videoAdUiPreSkipButton{min-width:200px}.videoAdUiPreSkipText{font-size:13px;width:105px;padding-right:6px}.videoAdUiPreSkipText.videoAdUiPreSkipTextOnly{font-size:13px}.videoAdUiPreSkipThumbnailImage{max-width:98px;max-height:52px}.videoAdUiShare{font-size:15px}.videoAdUiSkipButton{font-size:23px;min-width:200px}}.videoAdUi.blazer .videoAdUiProgressBar{background-color:#222;height:4px}.videoAdUi.blazer .videoAdUiProgress{background-image:none;background-color:#e6bc27;opacity:1;position:absolute}.videoAdUi.blazer .videoAdUiBuffer{background-color:#666;display:block;position:absolute}.videoAdUi.blazer .videoAdUiAuthorName{display:none}.videoAdUi.blazer .videoadUiTitle,.videoAdUi.blazer .videoAdUiLearnMore{font-family:"Helvetica Neue Light","Arial",sans-serif;font-size:14px;text-shadow:0 0 2px rgba(0,0,0,0.75)}.videoAdUi.blazer .videoAdUiAttribution{font-family:"Helvetica Neue Light","Arial",sans-serif;font-size:16px;text-shadow:0 0 2px rgba(0,0,0,0.5)}.videoAdUi.blazer .videoAdUiSkipButton,.videoAdUi.blazer .videoAdUiPreSkipButton{min-width:95px;width:95px;min-height:24px;font-size:13px}.videoAdUi.blazer .videoAdUiSkipButton{font-family:"Helvetica Neue Light","Arial",sans-serif;border:1px solid rgba(255,255,255,0.25);background-color:rgba(0,0,0,0.5)}.videoAdUi.blazer .videoAdUiPreSkipButton{font-family:"Helvetica Neue","Arial",sans-serif;background-color:rgba(0,0,0,0.25);text-shadow:1px 1px 1px rgba(0,0,0,0.75)}.videoAdUi.blazer .videoAdUiPreSkipText{padding:5px 0}.videoAdUi.blazer .videoAdUiPreSkipText.videoAdUiPreSkipTextOnly{line-height:inherit}.videoAdUi.blazer .videoAdUiLearnMore{margin:5px}.videoAdUi.blazer.phone .videoAdUiAuthorIcon,.videoAdUi.blazer.phone .videoadUiTitle{display:none}.videoAdUi.blazer.tablet .videoAdUiAuthorIcon,.videoAdUi.blazer.tablet .videoadUiTitle{left:0;position:absolute;margin-top:17px}.videoAdUi.blazer.tablet .videoAdUiAuthorIcon{margin:5px 10px}.videoAdUi.blazer.tablet .videoAdUiSkipButton,.videoAdUi.blazer.tablet .videoAdUiPreSkipButton{min-width:95px;width:95px;min-height:24px;font-family:"Helvetica Neue Light","Arial",sans-serif;font-size:13px;text-shadow:1px 1px 1px rgba(0,0,0,0.75)}.videoAdUi.blazer.tablet .videoAdUiPreSkipContainer,.videoAdUi.blazer.tablet .videoAdUiSkipContainer{bottom:55px}.videoAdUi.blazer.tablet .videoAdUiAttribution{left:0;bottom:0}.videoAdUi.blazer.tablet:hover .videoAdUiAttribution{right:84%;bottom:26px;text-align:right}.videoAdUi.blazer.tablet:hover .videoAdUiProgressBar{bottom:35px;left:16%;width:68%}.videoAdUi.blazer.tablet:hover .videoAdUiProgressBar,.videoAdUi.blazer.tablet:hover .videoAdUiBuffer,.videoAdUi.blazer.tablet:hover .videoAdUiProgress{height:20px}');c.appendChild(d)}Q(c,
"autoalign",a.j.ks);Q(c,"viewmode-fullscreen","fullscreen"==a.I);c.appendChild(a.U);jX(a).listen(c,"click",mm);(iX(a)&&nT(hX(a))||a.j.useStyledNonLinearAds)&&a.lm(a.g.g);return c}f.lm=function(a){var b=jX(this);this.S=GT(WW);b.listen(this.S,"click",this.KF);var c=GT(VW);b.listen(c,"click",this.qn);a.appendChild(c)};function pX(a){if(null!=a.g){var b=Pg(a.k.xf()),c=Pg(Od(a.g.g));if(c.width>b.width||c.height>b.height)throw b=fL(FK,null),rX(a,b),a.stop(),b;}}
function rX(a,b){var c=mV(b,hX(a)),d=aT(hX(a));sK(d,c)}f.ND=function(a){this.ic("click");mm(a)};f.qn=function(){this.ts();this.ra("userClose");nX(this,"close")};f.ts=function(){this.g.stop();var a=eT(hX(this));null!=a&&PS(a);Md(this.S,this.g.g)};f.KF=function(a){mm(a);this.g.show();this.g.play();Md(this.g.g,this.S);vn(function(){Tg(this.U,!1)},500,this);Tg(this.U,!0)};function tX(a){oX.call(this,a);this.C=!1;this.J=this.V=null;lb(a)||null==a[0].k||(this.V=a[0].k,jf(new L(this.V.adTagUrl),"channel"))}B(tX,oX);f=tX.prototype;f.us=function(a,b){if(this.C||null==b)b=u;var c;nL()&&this.C?c=new YW(a[0],b):"fullscreen"==this.I?c=new bX(a):1<a.length?(c=new $W(a),c.J=15E3):c=new YW(a[0],b);c.Ws=100;this.C&&(c.rs=30);c.Rr=45E3;c.Sr=6E3;Q(c.g,"scalable",this.C);Q(c.K(),"yt-text-overlay",nL()&&this.C);return c};
f.dF=function(a){var b=a.g;null!=b?(null==this.P&&(this.P=a.getExtension("AdSense").B),OS(b,z(this.KD,a,b)),NS(b,z(this.JD,a,b)),b.ha=!1,"Text"==b.getContentType()&&(this.C=!0),this.J.push(b)):(b=dL(KK),b=mV(b,a),sK(aT(a),b))};f.Rc=function(a,b,c){tX.H.Rc.call(this,a,b,c);this.j.ks=!0;null!=this.ads[0]&&0<nQ(this.ads[0]).length?kX(this,this.ads[0]):nL()&&this.ra("companionBackfill")};
f.Lm=function(){null==this.J&&(this.J=[],E(this.ads,this.dF,this));if(0==this.J.length)throw fL(KK);var a=[];E(this.J,function(b){MS(b,jX(this));"Flash"!=b.getContentType()||b.getAd().getExtension("TemplateAd")||(b.ht=!0);a.push(b.De());SS(b,this.P.k)},this);if(0==a.length)throw fL(KK);return sX(this,a)};f.qn=function(a){tX.H.qn.call(this,a);E(this.J,function(a){var c=sV(a.getAd());this.A.g=c;this.ie(a,["close"]);nX(this,"close");this.A=new cX},this)};
f.lm=function(a){tX.H.lm.call(this,a);var b=this.ads[0].getExtension("AdSense"),c=b.o,b=b.A,c=GT(XW,{text:null!=c?c:this.P.g,url:null!=b?b:this.P.j});a.appendChild(c)};f.KD=function(a,b){this.M?this.ou(a,b):this.O.push(y(this.ou,this,a,b));OS(b,u)};f.ou=function(a,b){var c=sV(a);this.A.g=c;this.ef(a);this.ie(b,["creativeview"]);nX(this,"impression");nX(this,"creativeview");this.A=new cX};
f.JD=function(a,b,c){c=Lg(c);a=a.getExtension("AdSense");a=new L(a.j);var d=b.fd();isNaN(d)&&(d=Og(b.De()).width);var e=b.getHeight();isNaN(e)&&(e=Og(b.De()).height);b=WR();b=["0","aw="+d,"ah="+e,"nx="+c.x,"ny="+c.y,"viewMode="+this.I,"sdkv=h.0.0.0","eids="+$R(b)];b=tK(a,"elementclick",b);qK(b);this.ra("click")};f.Rj=function(a){this.I!=a&&(tX.H.Rj.call(this,a),null!=this.o&&(Jd(this.o),a=this.Lm(),this.o.appendChild(a)),this.ra("expandedChanged"))};function uX(a){TJ.call(this,"adMetadata",a)}B(uX,TJ);var vX={};q("adsense.mobileads.afmanotify.receiveMessage",function(a,b){if(vX.hasOwnProperty(a))for(var c=vX[a],d=0;d<c.length;++d){var e=c[d];e.callback.call(e.object,a,b)}},void 0);new oe;function wX(a,b,c){var d=u,e;ZR(947225)?(e=new L("https://www.googleapis.com/youtube/v3/videos"),M(e,"id",a),M(e,"part","snippet,status"),M(e,"fields","items/id,items/snippet/title,items/snippet/channelId,items/status/privacyStatus")):e=new L("https://gdata.youtube.com/feeds/api/videos/"+a);null!=c&&(b=y(b,c),d=y(d,c));xX(new qo,e,b,d)}
function yX(a,b,c){var d=u,e;ZR(947225)?(e=new L("https://www.googleapis.com/youtube/v3/channels"),M(e,"id",a),M(e,"part","snippet,statistics"),M(e,"fields","items/id,items/snippet/title,items/snippet/thumbnails/default/url,items/statistics/videoCount")):e=new L("https://gdata.youtube.com/feeds/api/channels/"+a);null!=c&&(b=y(b,c),d=y(d,c));xX(new qo,e,b,d)}
function xX(a,b,c,d){zX(b);to(a,2E3);var e=new An(a);En(e,a,"success",function(a){a=a.target;var b;b=a.g?cg(a.g.responseText):void 0;c(b||{});e.dispose();a.dispose()});En(e,a,["error","timeout"],function(a){a=a.target;var b=null;0!=a.j&&(b=Error(Hn(a.j)));d(b);e.dispose();a.dispose()});a.send(b)}function zX(a){ZR(947225)?M(a,"key","AIzaSyDykhSj35yFHOiDglTp-ZuD9HCUQf62oS0"):(M(a,"alt","json"),M(a,"v","2"))};function AX(a){var b='<div class="videoAdUi"><div class="videoAdUiTopBar videoAdUiTopBarWithGradients"><div class="videoAdUiAuthorIcon"></div><div class="videoAdUiTitle ellipsisText"></div><div class="videoAdUiAuthorName ellipsisText"></div><div class="videoAdUiLearnMore">'+LT(a.tg)+'</div><div class="videoAdUiShare"></div></div><div class="videoAdUiBottomBar"><div class="videoAdUiLearnMoreText">'+LT(a.tg)+'<div class="videoAdUiLearnMoreIcon"></div></div><div class="videoAdUiAttribution"',c;c=aU(a.Ve);
c=LT(c);return b+c+">"+LT(a.Ve)+'</div></div><div class="videoAdUiProgressBar"><div class="videoAdUiBuffer"></div><div class="videoAdUiProgress"></div></div></div>'}function BX(a){var b=aU(a.Ve);return'<div class="videoAdUi videoAdUi-gvn"><div class="videoAdUiTopBar"><div class="videoAdUiAttribution videoAdUiAttribution-gvn"'+LT(b)+">"+LT(a.Ve)+'</div></div><div class="videoAdUiProgressBar"><div class="videoAdUiProgress"></div></div></div>'}
function CX(){return'<div class="videoAdUiPreSkipContainer"><div class="videoAdUiPreSkipButton"><div class="videoAdUiPreSkipText"></div><div class="videoAdUiPreSkipThumbnail"></div></div></div>'}function DX(a){var b="";a="\u0420\u0435\u043a\u043b\u0430\u043c\u0443 \u043c\u043e\u0436\u043d\u043e \u0431\u0443\u0434\u0435\u0442 \u043f\u0440\u043e\u043f\u0443\u0441\u0442\u0438\u0442\u044c \u0447\u0435\u0440\u0435\u0437 "+(LT(a.Go)+"\u00a0\u0441.");return b+a}
function EX(a){return'<div class="videoAdUiSkipContainer html5-stop-propagation"><button class="videoAdUiSkipButton">'+LT(a.$v)+'<div class="videoAdUiSkipIcon"></div></button></div>'}function FX(a){var b="";a=2<=a.hi&&1<=a.fi?"\u041e\u0431\u044a\u044f\u0432\u043b\u0435\u043d\u0438\u0435 "+(LT(a.fi)+(" \u0438\u0437 "+(LT(a.hi)+(" "+LT(a.gi))))):"\u041e\u0441\u0442\u0430\u043b\u043e\u0441\u044c "+LT(a.gi);return b+=a};function GX(a,b,c,d,e){kz.call(this);this.j=a;this.A=b;this.B=c;this.k=d;this.C=ga(e)?e:[e]}B(GX,kz);f=GX.prototype;f.play=function(){if(this.jb())return!1;this.bc();this.Pb("play");this.startTime=A();this.g=1;if(tA())return vg(this.j,this.B),this.o=vn(this.BA,void 0,this),!0;this.Cl(!1);return!1};f.BA=function(){Pg(this.j);rA(this.j,this.C);vg(this.j,this.k);this.o=vn(y(this.Cl,this,!1),1E3*this.A)};f.stop=function(){this.jb()&&this.Cl(!0)};
f.Cl=function(a){sA(this.j,"");wn(this.o);vg(this.j,this.k);this.endTime=A();this.g=0;if(a)this.onStop();else this.Lb();this.Fc()};f.L=function(){this.stop();GX.H.L.call(this)};f.pause=function(){};function HX(a,b,c,d){return new GX(a,.5,{opacity:c},{opacity:d},{property:"opacity",duration:.5,timing:b,Kp:0})};function IX(a,b){V.call(this);this.k=a;this.J=0;this.F=!1;this.j=1;this.g=this.P=this.G=this.O=this.o=null;this.A=new An(this);this.N=!1;this.U=this.S=this.M=0;this.B=this.D=this.C=null;this.I=!1;this.k.o&&(this.A.listen(b,"touchstart",this.Yv),this.A.listen(b,"touchmove",this.Xv),this.A.listen(b,"touchend",this.Wv));this.o=GT(CX);this.O=vd("videoAdUiPreSkipButton",this.o);this.G=vd("videoAdUiPreSkipText",this.O);this.P=vd("videoAdUiPreSkipThumbnail",this.O);Ud(this.G,DX({Go:JX(this)}));var c=this.k.U,
c=(C(D(c))?null:"//i1.ytimg.com/vi/"+c+"/mqdefault.jpg")||"";if(this.k.showContentThumbnail&&!C(D(c))){var d=Fd("img");d.setAttribute("src",c);P(d,"videoAdUiPreSkipThumbnailImage");this.P.appendChild(d)}else P(this.G,"videoAdUiPreSkipTextOnly");this.k.o?c="\u00ab Swipe to Skip":(c="\u041f\u0440\u043e\u043f\u0443\u0441\u0442\u0438\u0442\u044c \u0440\u0435\u043a\u043b\u0430\u043c\u0443 \u00bb",d=new RegExp(Na("\u00bb"),""),c=c.replace(d,""),c=wa(c));this.g=GT(EX,{$v:c});Tg(this.o,!1);b.appendChild(this.o);
Tg(this.g,!1);Sg(this.g,0);b.appendChild(this.g);this.A.listen(this.g,"click",this.Zv)}B(IX,V);f=IX.prototype;f.L=function(){null!=this.C&&(this.C.dispose(),this.C=null);null!=this.D&&(this.D.dispose(),this.D=null);KX(this);null!=this.o&&(Ld(this.o),this.o=null);null!=this.g&&(Ld(this.g),this.g=null);this.A.dispose();this.A=null;this.I=!1;IX.H.L.call(this)};
f.update=function(a,b){this.J=b;if(!(0>=this.J||null==this.k.skipOffset||0>aR(this.k.skipOffset))){var c=aR(this.k.skipOffset);c>=this.J||3==this.j||(0>a?this.j=1:a<=c?(2!=this.j&&(LX(this,0),HX(this.o,"ease-out",0,1).play(),Tg(this.o,!0)),this.j=2):(3!=this.j&&(Tg(this.g,!0),this.D=new GX(this.o,.5,{opacity:1,visibility:"shown"},{opacity:.9,visibility:"hidden"},{property:"opacity",duration:.5,timing:"ease-out",Kp:0}),this.C=HX(this.g,"ease-out",0,1),this.D.play(),this.C.play(),this.A.listen(Rd(this.g),
"mouseover",this.ty),this.A.listen(Rd(this.g),"mouseout",this.Lp),this.Lp()),this.j=3,this.T("skipshown")))}2==this.j&&LX(this,a)};f.skip=function(){return null==this.k.skipOffset||3!=this.j||this.F?!1:(this.F=!0,this.T("PUBLISHER_INVOKED_SKIP"),!0)};f.Yv=function(a){var b=a.g;3==this.j&&1==b.touches.length&&(this.N=!0,this.U=b.touches[0].pageX,a.preventDefault())};
f.Xv=function(a){var b=a.g;3==this.j&&1==b.touches.length&&this.N&&(b=b.touches[0].pageX,this.M=this.S-b,this.S=b,b=this.U-b,0<b&&(this.g.style.right=b+"px"),a.preventDefault())};f.Wv=function(){this.N=!1;if(3==this.j){var a=Og(Rd(this.g));if(parseInt(this.g.style.right,10)+4*this.M>.25*a.width&&0<this.M){Tg(this.g,!1);this.F=!0;this.T("skip");return}}this.g.style.right=0};function JX(a){return null!=a.k.skipOffset&&-1!=aR(a.k.skipOffset)?aR(a.k.skipOffset):-1}
function LX(a,b){var c=JX(a);if(!(0>c)){var c=Math.round(c-b),d=" "+c;60<=c&&(d=" "+VQ(c));c=DX({Go:d});Ud(a.G,c)}}f.Zv=function(a){nL()||a.stopPropagation();3!=this.j||this.F||(this.F=!0,this.T("skip"))};f.Lp=function(){null==this.B&&(this.B=vn(function(){this.I=!0;HX(this.g,"ease-in",1,.5).play();this.B=null},this.I?5E3:15E3,this))};f.ty=function(){Sg(this.g,1);KX(this)};function KX(a){null!=a.B&&(wn(a.B),a.B=null)};function MX(a,b,c){V.call(this);this.g=a;this.U=c;this.N=this.O=this.M=this.D=this.C=this.J=this.j=null;this.S=!1;this.F=this.o=this.B=this.P=this.I=this.G=this.A=null;this.k=new An(this);this.V=[];this.j=GT(this.g.C,{Ve:this.g.Ve,tg:this.g.tg});this.k.listen(this.j,"touchmove",this.Rv);this.I=vd("videoAdUiProgress",this.j);this.P=vd("videoAdUiBuffer",this.j);this.J=vd("videoAdUiAttribution",this.j);this.C=vd("videoAdUiAuthorIcon",this.j);this.D=vd("videoAdUiAuthorName",this.j);this.M=vd("videoAdUiLearnMore",
this.j);this.O=vd("videoAdUiLearnMoreText",this.j);this.F=vd("videoAdUiShare",this.j);this.A=vd("videoAdUiTitle",this.j);this.G=vd("videoAdUiTopBar",this.j);this.N=vd("videoAdUiBottomBar",this.j);null!=this.C&&this.k.listen(this.C,"click",this.Pv);null!=this.D&&this.k.listen(this.D,"click",this.Qv);null!=this.M&&this.k.listen(this.M,"click",this.Sv);null!=this.O&&this.k.listen(this.O,"click",this.wk);null!=this.F&&this.k.listen(this.F,"click",this.Uv);null!=this.A&&this.k.listen(this.A,"click",this.Vv);
null!=this.G&&this.k.listen(this.j,"mouseover",this.Tv);null!=this.g.skipOffset&&(this.o=new IX(this.g,this.j),this.o.ai(this));400>=(parseInt(yg(b,"width"),10)||b.width)&&P(this.j,"videoAdUi-mobile");this.g.W&&(P(this.j,"blazer"),window.settings&&window.settings.isTablet?P(this.j,"tablet"):P(this.j,"phone"));this.g.o&&P(this.j,"videoAdUi-swipeable");Tg(this.j,!1);b.appendChild(this.j);this.g.k||(this.B=K("div",{style:"width:100%;height:100%"}),this.j.appendChild(this.B));NX(this)}B(MX,V);f=MX.prototype;
f.show=function(){null!=this.j&&Tg(this.j,!0)};f.skip=function(){var a;if(a=null!=this.o)a=this.o,a=null!=a.k.skipOffset&&3==a.j;return a?this.o.skip():!1};f.L=function(){null!=this.j&&(Ld(this.j),this.j=null);null!=this.o&&(this.o.dispose(),this.o=null);this.B=null;this.k.dispose();this.k=null;this.S=!1;MX.H.L.call(this)};
f.update=function(a,b,c,d,e){this.S=!0;null!=this.j&&(null!=this.J&&OX(this,a,c,d,e),null!=this.I&&Ng(this.I,a/c*100+"%"),null!=this.P&&Ng(this.P,b/c*100+"%"),0<c&&null!=this.g.skipOffset&&null!=this.o&&(bR(this.g.skipOffset,c),this.o.update(a,c)),this.g.B&&0<c&&5>c-a&&P(this.G,"videoAdUiTopBarNoFade"),E(this.V,function(b){b.update(a,c)},this))};function PX(a,b){a.V=b;E(b,function(a){a.display(this.j)},a)}
function NX(a){var b=a.g.M&&(a.U>a.g.Ba||0==a.U),c=b&&a.g.N,d=b&&a.g.P,e=b&&a.g.j,g=b&&a.g.J,b=b&&a.g.B,h=a.g.I&&a.g.g,k="0px";null!=a.A&&(Tg(a.A,b),null!=a.C&&Tg(a.C,c),null!=a.D&&Tg(a.D,d),null!=a.M&&Tg(a.M,e),null!=a.F&&(Tg(a.F,g),g&&a.T("videoShareShown")),null!=a.G&&Tg(a.G,b||c||d||e));null!=a.J&&QX(a);null!=a.I&&(Tg(a.I,h),h&&(k=yg(a.I,"height")));null!=a.N&&vg(a.N,"bottom",k);null!=a.O&&Tg(a.O,a.g.k)}
function OX(a,b,c,d,e){var g=FX({gi:"",fi:0,hi:0});a.g.g&&a.g.G&&(b=VQ(c-b),g=FX({gi:a.g.D?" \u2022 "+b:": ("+b+")",fi:d,hi:e}));Ud(a.J,g);QX(a)}function QX(a){Tg(a.J,a.g.A&&(!a.g.g||a.S))}f.Pv=function(){this.T("videoAuthorIconClicked")};f.Qv=function(){this.T("videoAuthorClicked")};f.Sv=function(){this.T("videoLearnMoreClicked")};f.Uv=function(){this.T("videoShareClicked")};f.Vv=function(){this.T("videoTitleClicked")};f.Rv=function(a){a.preventDefault()};
f.wk=function(){this.g.F?this.T("click"):this.T("videoClicked")};f.Tv=function(){P(this.G,"videoAdUiTopBarTransitions")};function RX(){this.Ve=FX({gi:"",fi:0,hi:0});var a="",b="\u041f\u043e\u0434\u0440\u043e\u0431\u043d\u0435\u0435... "+LT("");this.tg=a+b;this.skipOffset=null;this.Ba=6E3;this.G=this.g=this.F=this.A=!0;this.j=!1;this.I=!0;this.J=this.V=!1;this.M=!0;this.k=!1;this.O=!0;this.B=this.P=this.N=!1;this.C=null;this.o=!1;this.showContentThumbnail=!0;this.W=this.D=!1}
function SX(a,b,c,d,e,g,h,k,l,p){var r=new RX;r.S=b;r.D=p;r.U=null!=d?d.contentId:null;r.V=p;r.F=!0;r.j=e;r.I=g;r.J=h;r.k=a;r.O=k;r.skipOffset=c;r.C=AX;r.W=p;r.ba=YO(b,null!=c,d.baseYouTubeUrl);p&&(r.tg="Visit Advertiser");r.o=pm&&ZR(0);r.G=l;r.showContentThumbnail=null!=d.contentId&&d.showContentThumbnail;return r};function TX(a){lm.call(this,a)}B(TX,lm);function UX(a){V.call(this);this.A=a;this.G=new oe;this.D=-1;this.I=!1}B(UX,V);function VX(a){this.j=!1;this.g=a.Mg();this.volume=a.gd()}VX.prototype.muted=function(a,b){return!this.g&&a||0<this.volume&&0==b};f=UX.prototype;f.L=function(){WX(this);UX.H.L.call(this)};function WX(a){null!=a.j&&a.j.dispose();null!=a.g&&a.g.rf();null!=a.B&&a.B.dispose();a.B=null;null!=a.C&&a.C.dispose();a.C=null;a.G.clear();a.D=-1;a.I=!1}
function XX(a,b,c){if(!c||null==a.G.get(b)){a.G.set(b,!0);t:{if(a.k&&a.k.g.j){if("click"==b)break t;"videoLearnMoreClicked"==b&&dX(a.A,new lm("click"))}dX(a.A,new lm(b))}a.T(b)}}f.fx=function(a){a=a.k;a=vV(this.A.g,null!=a?a.viewabilityString:null);this.A.g=a;XX(this,"viewable_impression",!1)};
f.Rw=function(){var a=this.g.ed();if(-1!=a){this.g.fh(.25*a)&&XX(this,"firstquartile",!0);this.g.fh(.5*a)&&XX(this,"midpoint",!0);this.g.fh(.75*a)&&XX(this,"thirdquartile",!0);var b=this.A,c=this.g.getCurrentTime();0>b.B&&(iR(b.j,a),b.B=0);for(var a=gR(b.j,"progress"),d=b.B;d<a.length;d++){var e=a[d];if(aR(e.j)>c)break;b.B=d+1;qK(e.g,b.g)}}YX(this)};function YX(a){0>a.D||a.I||!a.g.fh(a.D)&&!a.g.re()||(a.I=!0,XX(a,"engagedview",!0),a.T(new TX("viewCount")))}
f.Qw=function(){XX(this,"impression",!0);XX(this,"creativeview",!0);null!=this.F||null!=this.k||this.j.listen(this.g,"click",this.fm);null!=this.F&&(this.B=new HO,this.j.listen(this.B,"click",this.fm,!1),IO(this.B,this.F));null!=this.k&&(this.C=new HO,this.j.listen(this.C,"click",this.fm,!1),IO(this.C,this.k));XX(this,"start",!0);(this.g.Mg()||0==this.g.gd())&&XX(this,"mute",!1)};
f.Sw=function(){var a=this.g.Mg(),b=this.g.gd(),c=this.o;c.g&&!a||!a&&0==c.volume&&0<b?XX(this,"unmute",!1):this.o.muted(a,b)&&XX(this,"mute",!1);this.o.g=a;this.o.volume=b};f.Ow=function(){this.g.re()?(YX(this),XX(this,"complete",!0)):this.g.Kg()&&!this.g.Ur()&&(this.o.j=!0,XX(this,"pause",!1))};f.Pw=function(){this.o.j&&(this.o.j=!1,XX(this,"resume",!1))};f.Kw=function(){YX(this);XX(this,"complete",!0)};f.fm=function(){XX(this,"click",!1)};f.Lw=function(){XX(this,"error",!1)};
f.Nw=function(){XX(this,"mediaLoadTimeout",!1)};f.ip=function(){XX(this,"skipshown",!0)};f.Ww=function(){XX(this,"videoAuthorIconClicked",!1)};f.Vw=function(){XX(this,"videoAuthorClicked",!1)};f.Xw=function(){XX(this,"videoClicked",!1)};f.Yw=function(){XX(this,"videoLearnMoreClicked",!1)};f.Zw=function(){XX(this,"videoShareClicked",!1)};f.$w=function(){XX(this,"videoShareShown",!0)};f.bx=function(){XX(this,"videoTitleClicked",!1)};f.hp=function(){XX(this,"skip",!0)};
f.Uw=function(){XX(this,"skip",!0)};f.Mw=function(){XX(this,"fullscreen",!1)};f.Tw=function(){XX(this,"exitfullscreen",!1)};function ZX(a){gX.call(this,a);this.o=null;this.C=new UX(this.A);this.O=this.S=this.P=this.J=!1;this.M=1}B(ZX,gX);f=ZX.prototype;f.L=function(){$X(this);var a=!1;null!=this.k&&(a=this.k.en(),this.k.hide(),this.k=null);this.J&&(this.J=!1,this.g.Kg()||this.g.re()||this.g.pause(),uL()&&!a&&(this.g.Gf(.001),this.g.load("","")),tL()&&this.g.ge()&&!a&&this.g.cn(),this.ra("contentResumeRequested"),this.ra("allAdsCompleted"));ZX.H.L.call(this)};
function $X(a){xi(a.o);a.o=null;xi(a.C);xi(a.A);xi(a.F);a.P=!1;a.O=!1}function aY(a){a.Ng();iX(a)?a.start():a.stop()}f.Ng=function(){$X(this);ZX.H.Ng.call(this);iX(this)&&(this.A=new cX,this.C=new UX(this.A))};
f.FB=function(a,b,c){if(!this.P){this.P=!0;var d=WO(b);if(this.j.useVideoAdUi){var e=a.getExtension("AdSense"),e=this.j.Kk&&((null===b?!1:"modules"==(new L(b)).jf().toLowerCase())||null!=e&&e.D),g=!0,h=!0;if(ZR(909720)||XS(a)&&30<uT(a)&&ZR(909721))h=g=!1;var k=-1!=uT(a)&&0!=uT(a)&&7>=uT(a)?null:oT(a);nL()?(d=SX(e,d,k,this.j,C(D(tT(a)))?!1:this.j.dp,h,this.j.useShareButton,!0,g,this.j.bp,ZS(a,cK)),d.Ba=0):ZS(a,cK)||!C(D(a.I))?(d=SX(e,d,k,this.j,!1,!1,!1,!1,!0,!1),d.C=BX):(d=SX(e,d,k,this.j,!1,!1,!1,
!1,!0,!1),d.M=!1,d.A=!1,d.g=!1);e=d;g=this.k.Sk();null===g?g=document.body:(Jd(g),h=K("style",{type:"text/css"},'.close-padding{color:#fff;cursor:pointer;margin:0;padding-bottom:10px;padding-left:10px;position:absolute;right:0;top:0;z-index:1001}.close-button{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA8AAAAPCAQAAACR313BAAAABGdBTUEAALGPC/xhBQAAAAFzUkdCAK7OHOkAAAAgY0hSTQAAeiYAAICEAAD6AAAAgOgAAHUwAADqYAAAOpgAABdwnLpRPAAAAAJiS0dEAP+Hj8y/AAAACXBIWXMAAAsTAAALEwEAmpwYAAAACXZwQWcAAAAPAAAADwBjHBMTAAAAt0lEQVQY03XQMW7CQBAAwLmTlSp9JFpHiCYfiFzkCZbfkqfwjshPoEART6BwWmRQ5IrqikDB4QQFb7V7o7vd2/CiPr26F5/aEJan0lR8KUos7uJWKV6LTvcvo7gercHzn2zk6ADW+nzzYO4iKDS5vOBck5+NkAwas9xvpjFIv0yyscu8s8k4cmcFHsFqnD1zDxbe8w76249ViGrfah9+VLdM5cEgSd7GzhR7T7YTO9+LbThO4FEbzuewMmr11FxHAAAAAElFTkSuQmCC);float:right;height:15px;margin:5px 4px 0 0;width:15px}.yt-text-overlay .close-button{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAKCAQAAAAnOwc2AAAAIGNIUk0AAHolAACAgwAA+f8AAIDpAAB1MAAA6mAAADqYAAAXb5JfxUYAAAACYktHRAD/h4/MvwAAAAlwSFlzAAAASAAAAEgARslrPgAAAAl2cEFnAAAACgAAAAoATqZ25QAAAN1JREFUCNcB0gAt/wDbutvr23TbBAAA2wXbeNvs27UAAAHb9QAK+v3CoyBzJGAAhAAJ9vsvjgNuAftABgMUKvtBDlEBDvv9ouLGAAEAAJunMVIPBgAAAADx+aXjj90AoAAAAAAAwM/b/9v/2/+k6wCtAFUAAAIAANtxGxcAAAAAAAAlDX8LAKsAAAPbdgCDABH1+dDwEAUPBiggNCGxsQHb9AAL+/2c4KPZdQlNPwQC9vsvWwIAzff8ouGU3euhs1TJrvj82vQAXQEAAACRACMApwCpAPwABABaAFcA1sKJVOsU6fRuAAAAAElFTkSuQmCC);height:10px;margin:9px 9px 0 0;width:10px}.close-padding:hover .close-button{background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA8AAAAPCAQAAACR313BAAAABGdBTUEAALGPC/xhBQAAAAFzUkdCAK7OHOkAAAAgY0hSTQAAeiYAAICEAAD6AAAAgOgAAHUwAADqYAAAOpgAABdwnLpRPAAAAAJiS0dEAP+Hj8y/AAAACXBIWXMAAAsTAAALEwEAmpwYAAAACXZwQWcAAAAPAAAADwBjHBMTAAAAs0lEQVQY03XQLc7CQBAA0LdQjf8UQSCBcIHvAHgM6Wm4CB4kAk96g+IQhECCJATbUMy2NIGO2Mzs298JU/Py36/Y24SwKofa4ihkJYOfeEKnKnL5V0ZSTe3AqJHVHFzBzsUBXI2pDu9K4+pD3JnqfrjwkOrH+/pSD8WHKWTOkc+yiDXntqAHtvXbI1/AxNKkUdcfmyFYuFt4Kc0iN7qWoIhj1bXk5s+ppec3nXV4tuDTOrwBYQs0jH6JoccAAAAASUVORK5CYII=)}.yt-text-overlay .close-padding:hover .close-button{background-color:rgba(0,0,0,0.15);background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAKCAQAAAAnOwc2AAAAIGNIUk0AAHolAACAgwAA+f8AAIDpAAB1MAAA6mAAADqYAAAXb5JfxUYAAAACYktHRAD/h4/MvwAAAAlwSFlzAAAASAAAAEgARslrPgAAAAl2cEFnAAAACgAAAAoATqZ25QAAALpJREFUCNclyL1Kw1AAgNFPqLh3cu/D+ARV8S0UEcFVoYOL4Kw4FSmClBZiB38WHZ10sQUnB6MR2hruTVI/h5zx4MjUXRvgsvt+OQT81VBdn7803THXWUEHD+JCf+L48e9bY9WZ0AcG3SyqahYO30jYBOD9uc67lCvaALjtR52f4TSpa89cp+E+nRYayuQMcK6xOhqvDi9ui4XOCtr4MC+PJys3rK81R728fMroLwEntOhySUWDLTZ4/QdyroIjdfxoFwAAAABJRU5ErkJggg==);background-position:center center;background-repeat:no-repeat;border-radius:3px;-moz-border-radius:3px;-webkit-border-radius:3px;box-shadow:inset 0 -1px 3px rgba(0,0,0,0.3),0 1px 0 rgba(255,255,255,0.5);height:20px;margin:4px 4px 0 0;width:20px}.recall-button{background:rgba(200,200,200,0.2) url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAICAYAAADA+m62AAAABGdBTUEAALGPC/xhBQAAAAFzUkdCAK7OHOkAAAAgY0hSTQAAeiYAAICEAAD6AAAAgOgAAHUwAADqYAAAOpgAABdwnLpRPAAAAAZiS0dEAP8A/wD/oL2nkwAAAAlwSFlzAAAASAAAAEgARslrPgAAAAl2cEFnAAAACgAAAAgAfJAUZwAAAURJREFUGNMFwb1LAmEAB+Dfe+/daZ3aWX6k1WFmSElQUBYUVIsguTQ0BUm4VtDYFLT4b7hkYLQGDg5BtERkUIRDgX1oWg6deKl359vzEFZO0mwWJgAUjgr88fe7R/2BkVonXVOGOQRQAJSwcp4CWWhKhnI6Vg0TkWYbnc8G7hbCjlLM3SQOBZQDAPgyk3wP+/Vf2Oyu4JV/NHDf1CG/1NREdZuZVRUCeiaLal12iETBQ4E1iN4QaNLqAafMptlw6Yvtwh4cI5CiIm09BAh06fbDbEx7saXp0M9vkDtJELQ5jPQAK1i5Irb+mGwYbEfV2AHiZz7M7YVLNZZ6rLDYACac8xAkwjp6ROf4ePEV19EZmaCrdQXwbzq19V8W68qUH+Hx4OYFnp6ZjJWck4NlUYLVf5pOgpXzdAOCOIg+N1zLIQuPpX9L/XzfXOCrFgAAAABJRU5ErkJggg==) no-repeat center;border:1px solid rgba(255,255,255,0.498039);box-shadow:rgba(0,0,0,0.701961) 0 4px 3px;color:#fff;cursor:pointer;height:11px;width:26px;z-index:1001}.yt-text-overlay .recall-button{background:rgba(0,0,0,0.15) url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAkAAAAGCAQAAAC7znxOAAAKPWlDQ1BpY2MAAHjanVNnVFPpFj333vRCS4iAlEtvUhUIIFJCi4BUaaISkgChhBgSQOyIqMCIoiKCFRkUccDREZCxIoqFQbH3AXkIKOPgKDZU3g/eGn2z5r03b/avvfY5Z53vnH0+AEZgsESahaoBZEoV8ogAHzw2Lh4ndwMKVCCBA4BAmC0LifSPAgDg+/Hw7IgAH/gCBODNbUAAAG7YBIbhOPx/UBfK5AoAJAwApovE2UIApBAAMnIVMgUAMgoA7KR0mQIAJQAAWx4bFw+AagEAO2WSTwMAdtIk9wIAtihTKgJAowBAJsoUiQDQDgBYl6MUiwCwYAAoypGIcwGwmwBgkqHMlABg7wCAnSkWZAMQGABgohALUwEI9gDAkEdF8AAIMwEojJSveNJXXCHOUwAA8LJki+WSlFQFbiG0xB1cXbl4oDg3Q6xQ2IQJhOkCuQjnZWXKBNLFAJMzAwCARnZEgA/O9+M5O7g6O9s42jp8taj/GvyLiI2L/5c/r8IBAQCE0/VF+7O8rBoA7hgAtvGLlrQdoGUNgNb9L5rJHgDVQoDmq1/Nw+H78fBUhULmZmeXm5trKxELbYWpX/X5nwl/AV/1s+X78fDf14P7ipMFygwFHhHggwuzMrKUcjxbJhCKcZs/HvHfLvzzd0yLECeL5WKpUIxHS8S5EmkKzsuSiiQKSZYUl0j/k4l/s+wPmLxrAGDVfgb2QltQu8oG7JcuILDogCXsAgDkd9+CqdEQBgAxBoOTdw8AMPmb/x1oGQCg2ZIUHACAFxGFC5XynMkYAQCACDRQBTZogz4YgwXYgCO4gDt4gR/MhlCIgjhYAEJIhUyQQy4shVVQBCWwEbZCFeyGWqiHRjgCLXACzsIFuALX4BY8gF4YgOcwCm9gHEEQMsJEWIg2YoCYItaII8JFZiF+SDASgcQhiUgKIkWUyFJkNVKClCNVyF6kHvkeOY6cRS4hPcg9pA8ZRn5DPqAYykDZqB5qhtqhXNQbDUKj0PloCroIzUcL0Q1oJVqDHkKb0bPoFfQW2os+R8cwwOgYBzPEbDAuxsNCsXgsGZNjy7FirAKrwRqxNqwTu4H1YiPYewKJwCLgBBuCOyGQMJcgJCwiLCeUEqoIBwjNhA7CDUIfYZTwmcgk6hKtiW5EPjGWmELMJRYRK4h1xGPE88RbxAHiGxKJxCGZk1xIgaQ4UhppCamUtJPURDpD6iH1k8bIZLI22ZrsQQ4lC8gKchF5O/kQ+TT5OnmA/I5CpxhQHCn+lHiKlFJAqaAcpJyiXKcMUsapalRTqhs1lCqiLqaWUWupbdSr1AHqOE2dZk7zoEXR0miraJW0Rtp52kPaKzqdbkR3pYfTJfSV9Er6YfpFeh/9PUODYcXgMRIYSsYGxn7GGcY9xismk2nG9GLGMxXMDcx65jnmY+Y7FZaKrQpfRaSyQqVapVnlusoLVaqqqaq36gLVfNUK1aOqV1VH1KhqZmo8NYHacrVqteNqd9TG1FnqDuqh6pnqpeoH1S+pD2mQNcw0/DREGoUa+zTOafSzMJYxi8cSslazalnnWQNsEtuczWensUvY37G72aOaGpozNKM18zSrNU9q9nIwjhmHz8nglHGOcG5zPkzRm+I9RTxl/ZTGKdenvNWaquWlJdYq1mrSuqX1QRvX9tNO196k3aL9SIegY6UTrpOrs0vnvM7IVPZU96nCqcVTj0y9r4vqWulG6C7R3afbpTump68XoCfT2653Tm9En6PvpZ+mv0X/lP6wActgloHEYIvBaYNnuCbujWfglXgHPmqoaxhoqDTca9htOG5kbjTXqMCoyeiRMc2Ya5xsvMW43XjUxMAkxGSpSYPJfVOqKdc01XSbaafpWzNzsxiztWYtZkPmWuZ883zzBvOHFkwLT4tFFjUWNy1JllzLdMudltesUCsnq1Sraqur1qi1s7XEeqd1zzTiNNdp0mk10+7YMGy8bXJsGmz6bDm2wbYFti22L+xM7OLtNtl12n22d7LPsK+1f+Cg4TDbocChzeE3RytHoWO1483pzOn+01dMb53+cob1DPGMXTPuOrGcQpzWOrU7fXJ2cZY7NzoPu5i4JLrscLnDZXPDuKXci65EVx/XFa4nXN+7Obsp3I64/epu457uftB9aKb5TPHM2pn9HkYeAo+9Hr2z8FmJs/bM6vU09BR41ng+8TL2EnnVeQ16W3qneR/yfuFj7yP3OebzlufGW8Y744v5BvgW+3b7afjN9avye+xv5J/i3+A/GuAUsCTgTCAxMChwU+Advh5fyK/nj852mb1sdkcQIygyqCroSbBVsDy4LQQNmR2yOeThHNM50jktoRDKD90c+ijMPGxR2I/hpPCw8OrwpxEOEUsjOiNZkQsjD0a+ifKJKot6MNdirnJue7RqdEJ0ffTbGN+Y8pjeWLvYZbFX4nTiJHGt8eT46Pi6+LF5fvO2zhtIcEooSrg933x+3vxLC3QWZCw4uVB1oWDh0URiYkziwcSPglBBjWAsiZ+0I2lUyBNuEz4XeYm2iIbFHuJy8WCyR3J58lCKR8rmlOFUz9SK1BEJT1IleZkWmLY77W16aPr+9ImMmIymTEpmYuZxqYY0XdqRpZ+Vl9Ujs5YVyXoXuS3aumhUHiSvy0ay52e3KtgKmaJLaaFco+zLmZVTnfMuNzr3aJ56njSva7HV4vWLB/P9879dQlgiXNK+1HDpqqV9y7yX7V2OLE9a3r7CeEXhioGVASsPrKKtSl/1U4F9QXnB69Uxq9sK9QpXFvavCVjTUKRSJC+6s9Z97e51hHWSdd3rp6/fvv5zsaj4col9SUXJx1Jh6eVvHL6p/GZiQ/KG7jLnsl0bSRulG29v8tx0oFy9PL+8f3PI5uYt+JbiLa+3Ltx6qWJGxe5ttG3Kbb2VwZWt2022b9z+sSq16la1T3XTDt0d63e83SnaeX2X167G3Xq7S3Z/2CPZc3dvwN7mGrOain2kfTn7ntZG13Z+y/22vk6nrqTu037p/t4DEQc66l3q6w/qHixrQBuUDcOHEg5d+873u9ZGm8a9TZymksNwWHn42feJ398+EnSk/Sj3aOMPpj/sOMY6VtyMNC9uHm1JbeltjWvtOT77eHube9uxH21/3H/C8ET1Sc2TZadopwpPTZzOPz12RnZm5GzK2f72he0PzsWeu9kR3tF9Puj8xQv+F851eneevuhx8cQlt0vHL3Mvt1xxvtLc5dR17Cenn451O3c3X3W52nrN9Vpbz8yeU9c9r5+94Xvjwk3+zSu35tzquT339t07CXd674ruDt3LuPfyfs798QcrHxIfFj9Se1TxWPdxzc+WPzf1Ovee7PPt63oS+eRBv7D/+T+y//FxoPAp82nFoMFg/ZDj0Ilh/+Frz+Y9G3guez4+UvSL+i87Xli8+OFXr1+7RmNHB17KX078VvpK+9X+1zNet4+FjT1+k/lm/G3xO+13B95z33d+iPkwOJ77kfyx8pPlp7bPQZ8fTmROTPwTA5jz/CVjM6IAAAAgY0hSTQAAeiUAAICDAAD5/wAAgOkAAHUwAADqYAAAOpgAABdvkl/FRgAAAAJiS0dEAP+Hj8y/AAAACXBIWXMAAAsTAAALEwEAmpwYAAAACXZwQWcAAAAJAAAABgBkh0tHAAAALElEQVQI12P4zwCBv9JgLLjAr/8wQYTAf5ggsgBUEFXg/6//v9IYf/1nQAMAapVB10c/DEAAAAAASUVORK5CYII=) no-repeat center;border:1px solid rgba(0,0,0,0);box-shadow:none;height:17px;width:29px}.autoalign .recall-button{margin:auto}.yt-text-overlay.autoalign .recall-button{margin:auto auto 6px}.recall-button:hover{background:#fff url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAHCAAAAAAUx4O/AAAABGdBTUEAALGPC/xhBQAAAAFzUkdCAK7OHOkAAAAgY0hSTQAAeiYAAICEAAD6AAAAgOgAAHUwAADqYAAAOpgAABdwnLpRPAAAAAlwSFlzAAALEwAACxMBAJqcGAAAAAl2cEFnAAAACgAAAAcA+wgIqAAAAEtJREFUCNcVi1kRwEAIQ3GAhEpAAhJWChKQsBIqBQlIQAIS0jQ/OeZFAIz70ARIjdDL2GYF1OMrxZ6JvUugjGoCG5rcJSHv+d/oMx893S/cqF2DpwAAAABJRU5ErkJggg==) no-repeat center}.yt-text-overlay .recall-button:hover{background:rgba(0,0,0,0.15) url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAkAAAAGCAQAAAC7znxOAAAKPWlDQ1BpY2MAAHjanVNnVFPpFj333vRCS4iAlEtvUhUIIFJCi4BUaaISkgChhBgSQOyIqMCIoiKCFRkUccDREZCxIoqFQbH3AXkIKOPgKDZU3g/eGn2z5r03b/avvfY5Z53vnH0+AEZgsESahaoBZEoV8ogAHzw2Lh4ndwMKVCCBA4BAmC0LifSPAgDg+/Hw7IgAH/gCBODNbUAAAG7YBIbhOPx/UBfK5AoAJAwApovE2UIApBAAMnIVMgUAMgoA7KR0mQIAJQAAWx4bFw+AagEAO2WSTwMAdtIk9wIAtihTKgJAowBAJsoUiQDQDgBYl6MUiwCwYAAoypGIcwGwmwBgkqHMlABg7wCAnSkWZAMQGABgohALUwEI9gDAkEdF8AAIMwEojJSveNJXXCHOUwAA8LJki+WSlFQFbiG0xB1cXbl4oDg3Q6xQ2IQJhOkCuQjnZWXKBNLFAJMzAwCARnZEgA/O9+M5O7g6O9s42jp8taj/GvyLiI2L/5c/r8IBAQCE0/VF+7O8rBoA7hgAtvGLlrQdoGUNgNb9L5rJHgDVQoDmq1/Nw+H78fBUhULmZmeXm5trKxELbYWpX/X5nwl/AV/1s+X78fDf14P7ipMFygwFHhHggwuzMrKUcjxbJhCKcZs/HvHfLvzzd0yLECeL5WKpUIxHS8S5EmkKzsuSiiQKSZYUl0j/k4l/s+wPmLxrAGDVfgb2QltQu8oG7JcuILDogCXsAgDkd9+CqdEQBgAxBoOTdw8AMPmb/x1oGQCg2ZIUHACAFxGFC5XynMkYAQCACDRQBTZogz4YgwXYgCO4gDt4gR/MhlCIgjhYAEJIhUyQQy4shVVQBCWwEbZCFeyGWqiHRjgCLXACzsIFuALX4BY8gF4YgOcwCm9gHEEQMsJEWIg2YoCYItaII8JFZiF+SDASgcQhiUgKIkWUyFJkNVKClCNVyF6kHvkeOY6cRS4hPcg9pA8ZRn5DPqAYykDZqB5qhtqhXNQbDUKj0PloCroIzUcL0Q1oJVqDHkKb0bPoFfQW2os+R8cwwOgYBzPEbDAuxsNCsXgsGZNjy7FirAKrwRqxNqwTu4H1YiPYewKJwCLgBBuCOyGQMJcgJCwiLCeUEqoIBwjNhA7CDUIfYZTwmcgk6hKtiW5EPjGWmELMJRYRK4h1xGPE88RbxAHiGxKJxCGZk1xIgaQ4UhppCamUtJPURDpD6iH1k8bIZLI22ZrsQQ4lC8gKchF5O/kQ+TT5OnmA/I5CpxhQHCn+lHiKlFJAqaAcpJyiXKcMUsapalRTqhs1lCqiLqaWUWupbdSr1AHqOE2dZk7zoEXR0miraJW0Rtp52kPaKzqdbkR3pYfTJfSV9Er6YfpFeh/9PUODYcXgMRIYSsYGxn7GGcY9xismk2nG9GLGMxXMDcx65jnmY+Y7FZaKrQpfRaSyQqVapVnlusoLVaqqqaq36gLVfNUK1aOqV1VH1KhqZmo8NYHacrVqteNqd9TG1FnqDuqh6pnqpeoH1S+pD2mQNcw0/DREGoUa+zTOafSzMJYxi8cSslazalnnWQNsEtuczWensUvY37G72aOaGpozNKM18zSrNU9q9nIwjhmHz8nglHGOcG5zPkzRm+I9RTxl/ZTGKdenvNWaquWlJdYq1mrSuqX1QRvX9tNO196k3aL9SIegY6UTrpOrs0vnvM7IVPZU96nCqcVTj0y9r4vqWulG6C7R3afbpTump68XoCfT2653Tm9En6PvpZ+mv0X/lP6wActgloHEYIvBaYNnuCbujWfglXgHPmqoaxhoqDTca9htOG5kbjTXqMCoyeiRMc2Ya5xsvMW43XjUxMAkxGSpSYPJfVOqKdc01XSbaafpWzNzsxiztWYtZkPmWuZ883zzBvOHFkwLT4tFFjUWNy1JllzLdMudltesUCsnq1Sraqur1qi1s7XEeqd1zzTiNNdp0mk10+7YMGy8bXJsGmz6bDm2wbYFti22L+xM7OLtNtl12n22d7LPsK+1f+Cg4TDbocChzeE3RytHoWO1483pzOn+01dMb53+cob1DPGMXTPuOrGcQpzWOrU7fXJ2cZY7NzoPu5i4JLrscLnDZXPDuKXci65EVx/XFa4nXN+7Obsp3I64/epu457uftB9aKb5TPHM2pn9HkYeAo+9Hr2z8FmJs/bM6vU09BR41ng+8TL2EnnVeQ16W3qneR/yfuFj7yP3OebzlufGW8Y744v5BvgW+3b7afjN9avye+xv5J/i3+A/GuAUsCTgTCAxMChwU+Advh5fyK/nj852mb1sdkcQIygyqCroSbBVsDy4LQQNmR2yOeThHNM50jktoRDKD90c+ijMPGxR2I/hpPCw8OrwpxEOEUsjOiNZkQsjD0a+ifKJKot6MNdirnJue7RqdEJ0ffTbGN+Y8pjeWLvYZbFX4nTiJHGt8eT46Pi6+LF5fvO2zhtIcEooSrg933x+3vxLC3QWZCw4uVB1oWDh0URiYkziwcSPglBBjWAsiZ+0I2lUyBNuEz4XeYm2iIbFHuJy8WCyR3J58lCKR8rmlOFUz9SK1BEJT1IleZkWmLY77W16aPr+9ImMmIymTEpmYuZxqYY0XdqRpZ+Vl9Ujs5YVyXoXuS3aumhUHiSvy0ay52e3KtgKmaJLaaFco+zLmZVTnfMuNzr3aJ56njSva7HV4vWLB/P9879dQlgiXNK+1HDpqqV9y7yX7V2OLE9a3r7CeEXhioGVASsPrKKtSl/1U4F9QXnB69Uxq9sK9QpXFvavCVjTUKRSJC+6s9Z97e51hHWSdd3rp6/fvv5zsaj4col9SUXJx1Jh6eVvHL6p/GZiQ/KG7jLnsl0bSRulG29v8tx0oFy9PL+8f3PI5uYt+JbiLa+3Ltx6qWJGxe5ttG3Kbb2VwZWt2022b9z+sSq16la1T3XTDt0d63e83SnaeX2X167G3Xq7S3Z/2CPZc3dvwN7mGrOain2kfTn7ntZG13Z+y/22vk6nrqTu037p/t4DEQc66l3q6w/qHixrQBuUDcOHEg5d+873u9ZGm8a9TZymksNwWHn42feJ398+EnSk/Sj3aOMPpj/sOMY6VtyMNC9uHm1JbeltjWvtOT77eHube9uxH21/3H/C8ET1Sc2TZadopwpPTZzOPz12RnZm5GzK2f72he0PzsWeu9kR3tF9Puj8xQv+F851eneevuhx8cQlt0vHL3Mvt1xxvtLc5dR17Cenn451O3c3X3W52nrN9Vpbz8yeU9c9r5+94Xvjwk3+zSu35tzquT339t07CXd674ruDt3LuPfyfs798QcrHxIfFj9Se1TxWPdxzc+WPzf1Ovee7PPt63oS+eRBv7D/+T+y//FxoPAp82nFoMFg/ZDj0Ilh/+Frz+Y9G3guez4+UvSL+i87Xli8+OFXr1+7RmNHB17KX078VvpK+9X+1zNet4+FjT1+k/lm/G3xO+13B95z33d+iPkwOJ77kfyx8pPlp7bPQZ8fTmROTPwTA5jz/CVjM6IAAAAgY0hSTQAAeiUAAICDAAD5/wAAgOkAAHUwAADqYAAAOpgAABdvkl/FRgAAAAJiS0dEAP+Hj8y/AAAACXBIWXMAAAsTAAALEwEAmpwYAAAACXZwQWcAAAAJAAAABgBkh0tHAAAALElEQVQI12P4zwCBv9JgLLjAr/8wQYTAf5ggsgBUEFXg/6//v9IYf/1nQAMAapVB10c/DEAAAAAASUVORK5CYII=) no-repeat center;border:1px solid rgba(255,255,255,0.5)}.auto-hide{display:none}body:hover .auto-hide{display:block}.attribution-button{bottom:12px;color:#fff;font:11px arial,sans-serif;position:absolute;right:5px;text-decoration:none;text-shadow:rgba(0,0,0,0.7) 0 4px 4px;z-index:1001}.yt-text-overlay .attribution-button{color:#888;text-shadow:none}.viewmode-fullscreen .attribution-button{bottom:auto;right:22px;top:5px}.yt-text-overlay.viewmode-fullscreen .attribution-button{right:5px;top:auto}.text-container .attribution-button{bottom:7px}.container{position:absolute;width:100%;z-index:1000}.container.autoalign{bottom:0;text-align:center}.container-stack{background-color:#666;border-radius:5px;display:block;padding:3px 0}.container-rotator .attribution-button{bottom:7px}.container-rotator .text-inner-container{left:20px}.container-selector{-webkit-box-shadow:0 4px 3px rgba(0,0,0,.7);-moz-box-shadow:0 4px 3px rgba(0,0,0,.7);box-shadow:0 4px 3px rgba(0,0,0,.7);background:#666;border-radius:2px;cursor:pointer;height:10px;left:5px;position:absolute;width:10px;z-index:1002}.container-selector:hover{background:#fff}.container-rotator .container-highlight:hover{border-color:#fff!important}.container-stack .container-highlight:hover{background-color:#999!important}.container-active{background:#fc0!important}.container-slider .attribution-button{bottom:7px}.container-slider .controls{max-width:100%!important}.container-slider .text-container{background-color:#000;border-radius:5px 5px 0 0;margin-bottom:0}.container-slider .text-title:hover{text-decoration:underline!important}.container-slider.hidden .controls{top:38px}.container-slider.animated .controls{-webkit-transition:top .4s;-moz-transition:top .4s;-o-transition:top .4s;transition:top .4s}.controls{display:inline-block;position:relative}.controls.scalable{display:block;min-width:320px;max-width:450px}.autoalign .controls.scalable{margin:auto}.flash-container,.image-container{display:inline-block;position:relative}.flash-container.click-capture .click-layer{display:block}.click-layer{background:rgba(0,0,0,0.0);bottom:0;left:0;position:absolute;right:0;top:0;z-index:100}.text-container{margin-bottom:5px;position:relative}.yt-text-overlay .text-container{margin-bottom:3px}.text-inner-container{background-image:-webkit-linear-gradient(top,rgba(20,20,20,0.6),rgba(209,209,209,0.6));background-image:-moz-linear-gradient(top,rgba(20,20,20,0.6),rgba(209,209,209,0.6));background-image:-ms-linear-gradient(top,rgba(20,20,20,0.6),rgba(209,209,209,0.6));background-image:-o-linear-gradient(top,rgba(20,20,20,0.6),rgba(209,209,209,0.6));background-image:linear-gradient(top,rgba(20,20,20,0.6),rgba(209,209,209,0.6));border:1px solid rgba(102,102,102,0.7);border-radius:3px;box-shadow:rgba(0,0,0,0.7) 0 5px 5px;padding-left:10px;position:absolute;text-align:left;top:0;bottom:0;left:0;right:0}.yt-text-overlay .text-container .text-inner-container{background-color:rgba(0,0,0,0.6);background-image:none;border:1px solid rgba(0,0,0,0.6);border-radius:0;box-shadow:none;padding-left:10px}.viewmode-fullscreen .text-inner-container{background-image:none;border:none;box-shadow:none}.yt-text-overlay .controls:hover .text-inner-container{border:1px solid rgba(58,58,58,1.0)}.text-title{text-decoration:underline}.yt-text-overlay .text-title{text-decoration:none}.viewmode-fullscreen .text-title{text-decoration:none}.yt-text-overlay .controls:hover .text-container .text-title{text-decoration:underline}.text-image-link{float:left;position:relative}.text-image{box-shadow:rgba(0,0,0,0.498039) 0 3px 5px;height:57px;margin:3px 10px 0 0;width:79px}.yt-text-overlay .text-image{margin:2px 10px 0 0}.text-image-duration{background:#000;color:#fff;font:10px arial,sans-serif;padding:2px;position:absolute;right:10px;top:43px}.text-title{color:#fff;display:block;font:bold 14px arial,sans-serif;margin:7px 16px 0 0;overflow:hidden;padding-bottom:4px;text-overflow:ellipsis;text-shadow:rgba(0,0,0,0.7) 0 4px 4px;white-space:nowrap}.yt-text-overlay .text-title{margin-top:7px;text-shadow:#000 0 -1px 0}.text-description{color:#fff;font:12px arial,sans-serif;margin-top:-3px;overflow:hidden;text-overflow:ellipsis;text-shadow:rgba(0,0,0,0.7) 0 4px 4px;white-space:nowrap}.yt-text-overlay .text-description{text-align:left;text-shadow:none}.text-ad-channel{bottom:7px;color:#f9fcc0;font:bold 11px arial,sans-serif;left:10px;position:absolute;text-decoration:none;text-shadow:rgba(0,0,0,0.7) 0 4px 4px}.yt-text-overlay .text-ad-channel{bottom:9px;color:#eade90;font-weight:normal;left:10px;text-shadow:#000 0 -1px 0}.pyv .text-ad-channel{left:99px}.yt-text-overlay .pyv .text-ad-channel{left:99px}.viewmode-fullscreen .text-ad-channel{color:#ccc}.yt-text-overlay.viewmode-fullscreen .text-ad-channel{color:#eade90}.ima-sdk-frame body{background:transparent;height:100%;margin:0;overflow:hidden}.ima-sdk-frame{height:100%}.ima-sdk-frame-native body{background:#000}.ima-sdk-frame-native video{bottom:0;left:0;margin:auto;right:0;top:0}.ytp-iv-drawer-open .videoAdUiTopBar,.ytp-iv-drawer-open .videoAdUiPreSkipContainer,.ytp-iv-drawer-open .videoAdUiSkipContainer,.ytp-iv-drawer-open .ad-overlay .container{display:none}.videoAdUi{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;background-color:rgba(0,0,0,0);bottom:0;cursor:pointer;height:100%;left:0;min-height:100%;position:absolute;right:0;top:0;overflow:hidden}.videoAdUiTopBar{background:#000;border-bottom:1px solid #444;cursor:default;left:0;opacity:.8;padding:0;position:relative;top:0;right:0;z-index:1000}.videoAdUiTopBarWithGradients{background-image:-webkit-linear-gradient(top,rgba(0,0,0,0.8),rgba(0,0,0,0.7) 40%,rgba(0,0,0,0) 99%);background-image:-moz-linear-gradient(top,rgba(0,0,0,0.8),rgba(0,0,0,0.7) 40%,rgba(0,0,0,0) 99%);background-image:-ms-linear-gradient(top,rgba(0,0,0,0.8),rgba(0,0,0,0.7) 40%,rgba(0,0,0,0) 99%);background-image:-o-linear-gradient(top,rgba(0,0,0,0.8),rgba(0,0,0,0.7) 40%,rgba(0,0,0,0) 99%);background-image:linear-gradient(top,rgba(0,0,0,0.8),rgba(0,0,0,0.7) 40%,rgba(0,0,0,0) 99%);background-color:rgba(0,0,0,0);border-bottom:none;height:40px}.videoAdUiTopBarTransitions{-webkit-transition:opacity ease-in .5s;-moz-transition:opacity ease-in .5s;-o-transition:opacity ease-in .5s;transition:opacity ease-in .5s;opacity:0}.videoAdUi:hover .videoAdUiTopBarTransitions{-webkit-transition:opacity ease-out .5s;-moz-transition:opacity ease-out .5s;-o-transition:opacity ease-out .5s;transition:opacity ease-out .5s;opacity:.8}.videoAdUiTopBarNoFade{opacity:.8!important}.videoAdUiBottomBar{background-image:-webkit-linear-gradient(bottom,rgba(0,0,0,0.5),rgba(0,0,0,0.4) 60%,rgba(0,0,0,0) 99%);background-image:-moz-linear-gradient(bottom,rgba(0,0,0,0.5),rgba(0,0,0,0.4) 60%,rgba(0,0,0,0) 99%);background-image:-ms-linear-gradient(bottom,rgba(0,0,0,0.5),rgba(0,0,0,0.4) 60%,rgba(0,0,0,0) 99%);background-image:-o-linear-gradient(bottom,rgba(0,0,0,0.5),rgba(0,0,0,0.4) 60%,rgba(0,0,0,0) 99%);background-image:linear-gradient(bottom,rgba(0,0,0,0.5),rgba(0,0,0,0.4) 60%,rgba(0,0,0,0) 99%);bottom:5px;left:0;opacity:.9;padding:0;position:absolute;width:100%;z-index:1000}.videoAdUiProgressBar{background-color:#fff;bottom:0;cursor:default;left:0;position:absolute;width:100%;z-index:1000}.videoAdUiProgress{background-image:-webkit-linear-gradient(top,#ffec7b,#dea405);background-image:-moz-linear-gradient(top,#ffec7b,#dea405);background-image:-ms-linear-gradient(top,#ffec7b,#dea405);background-image:-o-linear-gradient(top,#ffec7b,#dea405);background-image:linear-gradient(top,#ffec7b,#dea405);border-right:solid 1px #666;height:4px;opacity:.9;width:0%}.videoAdUiBuffer{height:4px;width:0%;display:none}.videoAdUiAuthorIcon{background:#000;display:inline-block;height:40px;margin:0 10px;position:absolute}.videoAdUiAuthorIconImage{cursor:pointer;width:40px;height:40px}.videoAdUiAuthorIconImage:hover{opacity:.6}.videoAdUiAuthorName{color:#ccc;cursor:pointer;display:inline-block;font:normal 12px arial,sans-serif;margin:10px 5px 5px;text-decoration:none;max-width:20%}.videoAdUiLearnMore{color:#fff;display:inline-block;float:right;font:normal 16px arial,sans-serif;padding:5px}.videoAdUiLearnMoreText{color:#e5bb00;font:normal 13px arial,sans-serif;margin-bottom:5px;text-align:center}.videoAdUiLearnMoreText:hover{text-decoration:underline}.videoAdUiLearnMoreIcon{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAKCAYAAACNMs+9AAAABGdBTUEAALGPC/xhBQAAAAFzUkdCAK7OHOkAAAAgY0hSTQAAeiYAAICEAAD6AAAAgOgAAHUwAADqYAAAOpgAABdwnLpRPAAAAAZiS0dEAP8A/wD/oL2nkwAAAAlwSFlzAAALEwAACxMBAJqcGAAAAAl2cEFnAAAACgAAAAoATqZ25QAAAJdJREFUGNN1j70NwkAMRp+PMAXKBGmgvQWYAOYgMAjMQRZggoiOC0UWQFmAFoEp4EIOzGss+Ud+n2CggTWw6RtC7axFHJf0Ei/aUKH4/njKBEDPLHiwi/0Mxcdhwh0P7BGWryeW44ktI2qZUeJYRfFuEGKugU4Dx1/tlOJdcwBtqD6OQ8YcuAHKNaY1F6WgBVrLO/v2/McTvRgrpKpY5XsAAAAASUVORK5CYII=);display:inline-block;height:10px;margin-left:3px;width:10px}.videoAdUiTitle{color:#fff;cursor:pointer;display:inline-block;font:normal 13px arial,sans-serif;margin:10px 5px 5px;text-decoration:none;max-width:50%}.videoAdUiTitleWithAuthorIcon{margin-left:60px}.videoAdUiAuthorName:hover,.videoAdUiTitle:hover{text-decoration:underline}.ellipsisText{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.videoAdUiAttribution{bottom:0;color:#fff;display:inline-block;font:normal 11px arial,sans-serif;padding:5px;padding-right:10px;position:absolute;text-shadow:0 0 5px rgba(0,0,0,0.8)}.videoAdUiAttribution-gvn{color:#e5bb00;font-size:12px;position:relative;text-shadow:none}.videoAdUiShare{color:#fff;display:inline-block;float:right;font:normal 13px arial,sans-serif;margin:10px 10px 5px}.videoAdUiShare:hover{text-decoration:underline;cursor:pointer}.videoAdUiPreSkipContainer{bottom:22px;cursor:default;padding:15px 0 15px 15px;position:absolute;right:0;z-index:1000}.videoAdUi-mobile .videoAdUiPreSkipContainer{bottom:11px;padding:8px 0 8px 8px}.videoAdUiSkipContainer{-webkit-tap-highlight-color:rgba(0,0,0,0);bottom:22px;cursor:pointer;padding:15px 0 15px 15px;position:absolute;right:0;z-index:1000}.videoAdUi-mobile .videoAdUiSkipContainer{bottom:11px;padding:8px 0 8px 8px}.videoAdUiPreSkipButton{background:rgba(0,0,0,0.8);min-width:155px;padding:6px}.videoAdUi-mobile .videoAdUiPreSkipButton{min-width:105px}.videoAdUiPreSkipText{color:#e6e6e6;font:normal 11px arial,helvetica,sans-serif;padding-right:8px;text-align:center;display:inline-block;width:70px;vertical-align:middle}.videoAdUiPreSkipText.videoAdUiPreSkipTextOnly{width:100%;padding-right:0;line-height:21px}.videoAdUiPreSkipThumbnail{cursor:pointer;display:inline-block;vertical-align:middle}.videoAdUiPreSkipThumbnailImage{display:block;max-width:78px;max-height:42px;width:auto;height:auto}.videoAdUiSkipButton{-webkit-tap-highlight-color:rgba(0,0,0,0);background:rgba(0,0,0,0.8);border:1px solid rgba(255,255,255,0.5);border-right:0;box-sizing:content-box;color:#fff;font:normal 18px arial,helvetica,sans-serif;min-width:150px;padding:10px 7px;text-align:center;cursor:pointer}.videoAdUi-mobile .videoAdUiSkipButton{font:normal 16px arial,helvetica,sans-serif;min-width:100px;padding:6px 7px}.videoAdUiSkipButton:hover{border-color:rgba(255,255,255,1)}.videoAdUi-swipeable .videoAdUiSkipButton{background:rgba(255,255,255,0.8);border:1px solid rgba(0,0,0,0.8);color:#000}.videoAdUiSkipIcon{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAVCAQAAADs3AYjAAAABGdBTUEAALGPC/xhBQAAAAFzUkdCAK7OHOkAAAAgY0hSTQAAeiYAAICEAAD6AAAAgOgAAHUwAADqYAAAOpgAABdwnLpRPAAAAAJiS0dEAP+Hj8y/AAAACXBIWXMAAAsTAAALEwEAmpwYAAAACXZwQWcAAAAUAAAAFQC6IBuQAAAAUElEQVQoz93QwQkAIAwDwOIirtJNHM3RHCW+CqXG9q15hoNARB7KRAfrAeAoGKaQ4SuMOIUel9CwwZY9oaL8Bp+FUU8bSqFHVxgRhQxR+EM2fqKwh5sgSyYAAAAASUVORK5CYII=);display:inline-block;height:25px;margin-left:2px;vertical-align:middle;width:20px}@media all and (min-width:800px) and (min-height:400px){.videoAdUiTitle{font-size:15px}.videoAdUiAttribution{font-size:13px}.videoAdUiAttribution-gvn{font-size:16px!important}.videoAdUiPreSkipButton{min-width:200px}.videoAdUiPreSkipText{font-size:13px;width:105px;padding-right:6px}.videoAdUiPreSkipText.videoAdUiPreSkipTextOnly{font-size:13px}.videoAdUiPreSkipThumbnailImage{max-width:98px;max-height:52px}.videoAdUiShare{font-size:15px}.videoAdUiSkipButton{font-size:23px;min-width:200px}}.videoAdUi.blazer .videoAdUiProgressBar{background-color:#222;height:4px}.videoAdUi.blazer .videoAdUiProgress{background-image:none;background-color:#e6bc27;opacity:1;position:absolute}.videoAdUi.blazer .videoAdUiBuffer{background-color:#666;display:block;position:absolute}.videoAdUi.blazer .videoAdUiAuthorName{display:none}.videoAdUi.blazer .videoadUiTitle,.videoAdUi.blazer .videoAdUiLearnMore{font-family:"Helvetica Neue Light","Arial",sans-serif;font-size:14px;text-shadow:0 0 2px rgba(0,0,0,0.75)}.videoAdUi.blazer .videoAdUiAttribution{font-family:"Helvetica Neue Light","Arial",sans-serif;font-size:16px;text-shadow:0 0 2px rgba(0,0,0,0.5)}.videoAdUi.blazer .videoAdUiSkipButton,.videoAdUi.blazer .videoAdUiPreSkipButton{min-width:95px;width:95px;min-height:24px;font-size:13px}.videoAdUi.blazer .videoAdUiSkipButton{font-family:"Helvetica Neue Light","Arial",sans-serif;border:1px solid rgba(255,255,255,0.25);background-color:rgba(0,0,0,0.5)}.videoAdUi.blazer .videoAdUiPreSkipButton{font-family:"Helvetica Neue","Arial",sans-serif;background-color:rgba(0,0,0,0.25);text-shadow:1px 1px 1px rgba(0,0,0,0.75)}.videoAdUi.blazer .videoAdUiPreSkipText{padding:5px 0}.videoAdUi.blazer .videoAdUiPreSkipText.videoAdUiPreSkipTextOnly{line-height:inherit}.videoAdUi.blazer .videoAdUiLearnMore{margin:5px}.videoAdUi.blazer.phone .videoAdUiAuthorIcon,.videoAdUi.blazer.phone .videoadUiTitle{display:none}.videoAdUi.blazer.tablet .videoAdUiAuthorIcon,.videoAdUi.blazer.tablet .videoadUiTitle{left:0;position:absolute;margin-top:17px}.videoAdUi.blazer.tablet .videoAdUiAuthorIcon{margin:5px 10px}.videoAdUi.blazer.tablet .videoAdUiSkipButton,.videoAdUi.blazer.tablet .videoAdUiPreSkipButton{min-width:95px;width:95px;min-height:24px;font-family:"Helvetica Neue Light","Arial",sans-serif;font-size:13px;text-shadow:1px 1px 1px rgba(0,0,0,0.75)}.videoAdUi.blazer.tablet .videoAdUiPreSkipContainer,.videoAdUi.blazer.tablet .videoAdUiSkipContainer{bottom:55px}.videoAdUi.blazer.tablet .videoAdUiAttribution{left:0;bottom:0}.videoAdUi.blazer.tablet:hover .videoAdUiAttribution{right:84%;bottom:26px;text-align:right}.videoAdUi.blazer.tablet:hover .videoAdUiProgressBar{bottom:35px;left:16%;width:68%}.videoAdUi.blazer.tablet:hover .videoAdUiProgressBar,.videoAdUi.blazer.tablet:hover .videoAdUiBuffer,.videoAdUi.blazer.tablet:hover .videoAdUiProgress{height:20px}'),
g.appendChild(h));h=1E3*uT(hX(this));this.o=new MX(e,g,h);g=e.S;null!=g&&(hX(this).I=g,e.O&&bY(this,g));e=[];d.A&&e.push("adAttribution");d.g&&e.push("countdown")}else d&&this.j.ap&&(hX(this).I=d,bY(this,d));d=this.C;e=this.g;g=this.k.Rk();h=this.o;WX(d);d.A.C=a.Z;d.g=e;d.k=h||null;d.g.qi();d.o=new VX(d.g);d.F=g||null;d.j=new An(d);d.j.listen(a,"viewable_impression",d.fx);d.j.listen(d.g,"timeUpdate",d.Rw);d.j.listen(d.g,"volumeChange",d.Sw);d.j.listen(d.g,"pause",d.Ow);d.j.listen(d.g,"play",d.Pw);
d.j.listen(d.g,"end",d.Kw);d.j.listen(d.g,"beginFullscreen",d.Mw);d.j.listen(d.g,"endFullscreen",d.Tw);d.j.listen(d.g,"skip",d.hp);d.j.listen(d.g,"skipShown",d.ip);d.j.listen(d.g,"start",d.Qw);d.j.listen(d.g,"error",d.Lw);d.j.listen(d.g,"mediaLoadTimeout",d.Nw);null!=d.k&&(d.j.listen(d.k,"videoAuthorIconClicked",d.Ww),d.j.listen(d.k,"videoAuthorClicked",d.Vw),d.j.listen(d.k,"videoClicked",d.Xw),d.j.listen(d.k,"videoLearnMoreClicked",d.Yw),d.j.listen(d.k,"videoTitleClicked",d.bx),d.j.listen(d.k,"videoShareClicked",
d.Zw),d.j.listen(d.k,"videoShareShown",d.$w),d.j.listen(d.k,"skipshown",d.ip),d.j.listen(d.k,"skip",d.hp),d.j.listen(d.k,"PUBLISHER_INVOKED_SKIP",d.Uw));jX(this).listen(this.C,"engagedview",this.bd);jX(this).listen(this.C,"videoAuthorIconClicked",this.bd);jX(this).listen(this.C,"videoAuthorClicked",this.bd);jX(this).listen(this.C,"videoClicked",this.bd);jX(this).listen(this.C,"videoLearnMoreClicked",this.bd);jX(this).listen(this.C,"videoShareClicked",this.bd);jX(this).listen(this.C,"videoShareShown",
this.bd);jX(this).listen(this.C,"videoTitleClicked",this.bd);jX(this).listen(this.g,"timeUpdate",this.ax);jX(this).listen(this.g,"volumeChange",this.Jw);this.ef(a);d=sV(a,this.g);this.A.g=d;d=a.g;null!=d&&d instanceof GS&&(this.ie(d,RJ),this.ti(d),d=jX(this),Dn(d,this.C,"error",this.Hw,this),Dn(d,this.C,"mediaLoadTimeout",this.Iw,this));cY(this,a);XS(a)&&(this.C.D=30);this.g.Pk(dY(this,a));this.g.load(b,c)}};
f.kA=function(a,b,c){this.S||(this.S=!0,this.ra("contentPauseRequested"));if(ZR(41351068)&&(this.k.wg(),"4.4.4"==(ad?wL(rL):""))){ZX.prototype.du.call(this,a,b,c);return}this.du(a,b,c)};
f.du=function(a,b,c){this.J=!0;this.FB(a,b,c);this.setVolume(this.M);this.o&&(C(D(eY(a)))?(b=this.o,null!=b.B&&(b.k.Da(b.B,"click",b.wk),vg(b.B,"cursor","default"))):(b=this.o,null!=b.B&&(b.k.listen(b.B,"click",b.wk),vg(b.B,"cursor","pointer"))),b=a.g.ja,lb(b)||PX(this.o,b),this.o.show());ZR(41351068)||this.k.wg();try{kX(this,a)}catch(d){fY(this,zK,d);return}wQ.getInstance().end("pi");wQ.getInstance().start("bt");this.g.play()};function gY(a,b,c,d){b=gR(b.g,c);lb(b)||(a[d]=b[0].g)}
function hY(a,b,c){b=c.getExtension(b);null!=b&&(gY(a,b,"annotation_click","cta_annotation_clicked"),gY(a,b,"annotation_close","cta_annotation_closed"),gY(a,b,"annotation_start","cta_annotation_shown"))}function dY(a,b){var c=nT(b)&&!b.F?fT(b):null,d=XS(b)&&!YS(b),e=null!=a.o&&a.j.Kk&&a.o.g.k,g=b.k,h=WS(b),k;a.o?(k={},hY(k,"AdSense",b),hY(k,"dart",b),hY(k,"DFP",b)):k=null;return new rP(h,c,k,e,d,a.j.loadVideoTimeout,g?g.tagForChildDirectedContent:!1,!1)}
function iY(a){var b=0;E(a.ads,function(a){jY(a)&&b++},a);var c=1;E(a.ads,function(a){var e=a.A;e.k=b;jY(a)&&(e.g=c,e.o=c,c++)},a)}function jY(a){a=a.g;return null!=a&&a instanceof GS}function kY(a){return gb(a.ads,function(a){return gb(lY(a),function(a){return!C(D(WO(a.j)))})},a)}function eY(a){var b=a.j;return b&&b.D&&(b=b.o,!lb(b)&&b[0]instanceof GS)?b[0].Tc():tT(a)}function lY(a){var b=a.j;if(b&&b.D&&(b=b.o,!lb(b)&&b[0]instanceof GS))return b[0].G;b=a.g;return jY(a)?b.G:[]}
function mY(a,b){if(AL.getInstance().g){var c=new ik,d=!1;E(lY(b),function(a){c.add(a.g);"VPAID"==a.k&&(d=!0)},a);var e=a.g.ym(),e={aid:fT(b),mt:c.La().join(","),smt:e.join(","),hvp:d,st:mQ(b).join(",")};BL(AL.getInstance(),28,e)}}function nY(a,b,c){try{var d=F(a,function(a){return a.Qd}),e=F(a,function(a){return a.g}),g={brs:d.join(","),mts:e.join(","),pubbr:b,selbr:null===c?-1:c.Qd,selmt:null===c?"":c.g,nat:!1};BL(AL.getInstance(),22,g)}catch(h){}}f.ak=function(){iY(this);this.ra("loaded");this.T(new uX(hX(this)))};
f.Rc=function(a,b,c){ZX.H.Rc.call(this,a,b,c);a=kY(this);this.g=this.k.fj(a);t:{if(iX(this)&&(b=this.F.getExtension("InfoCards"),b=null!=b?b.j:null,null!=b))break t;b=""}t:{if(iX(this)&&(c=this.F.getExtension("InfoCardsTracking"),c=null!=c?c.j:null,null!=c))break t;c=""}a&&(b||c)&&this.g.lr(b,c)};f.skip=function(){iX(this)&&XS(hX(this))&&(null!=this.o?this.o.skip():(nX(this,"skip"),oY(this)))};f.Bl=function(){this.ic("skipshown")};
f.start=function(){ZX.H.start.call(this);wQ.getInstance().start("pi");try{var a=hX(this),b;if(!jY(a))throw fL(VK);var c=a.g,d=c.ga;if(C(D(d))){var e=lY(a),g=this.g.Tq(e,this.j.bitrate,this.j.mimeTypes||[],null!=a&&(nL()||this.k.Ti()||this.k.nm()&&ad));nY(e,this.j.bitrate,g);if(null!=g)b=c.ka=g;else{try{mY(this,a)}catch(h){}throw fL(NK);}}else b=new OO("","",0,0,0,0,0,d,"");vn(y(ZX.prototype.kA,this,a,b.j,b.g))}catch(k){pY(this,k),this.Ng(),iX(this)?(gL(fL,this,aL,k,void 0),this.start()):(this.J?gL(fL,
this,aL,k,void 0):(null!=this.B&&gQ(this.B,dQ()),hL(this,aL,k)),this.stop())}};f.Dr=function(){lX(this);return this.g.Mg()?0:this.g.gd()};f.setVolume=function(a){lX(this);this.J?this.g.setVolume(a):this.M=a};f.setMediaUrl=function(a){lX(this);var b;if(b=iX(this))b=null!=hX(this).k;if(b){b=hX(this);var c=b.k.location,d;if(d=null!=c)(d=mK(hK,c))||(d=cf(new L(c)),d=null!=d?va(d,".corp.google.com")||"corp.google.com"==d:!1),d=d||(null!=c?mK(jK,c):!1);(d||nL())&&null!=b.g&&b.g instanceof GS&&b.g.setMediaUrl(a)}};
f.pause=function(){lX(this);this.g.pause()};f.resume=function(){lX(this);this.g.play()};f.getRemainingTime=function(){lX(this);var a=this.g.ed(),b=this.g.getCurrentTime();return 0<=a&&0<=b?Math.max(0,a-b):-1};f.Df=function(){return this.g.Df()};f.Hw=function(){fY(this,aL,fL(aL,this.g.Ct()))};f.Iw=function(){fY(this,QK,fL(QK,null,(this.j.loadVideoTimeout/1E3).toString()))};function fY(a,b,c){pY(a,c);a.Ng();iX(a)?(gL(fL,a,b,c,void 0),a.start()):(hL(a,b,c),a.stop())}
function pY(a,b){var c=fL(aL,b),c=mV(c,hX(a),a.g),d=aT(hX(a));sK(d,c)}function qY(a){if(kL.g){var b=eY(hX(a));null!=b&&pK(b)}a.ra("click")}function cY(a,b){var c=b;do c.C.forEach(function(a){E(RJ,function(b){var c=gR(a.g,b);lb(c)||rY(this,b,c)},this);fX(this.A,a.C)},a),c=c.j;while(c)}function rY(a,b,c){E(c,function(a){hR(this.A.j,a.k,a.g)},a);sY(a,b)}function sY(a,b){Nb(UJ,b)&&Dn(jX(a),a.C,b,a.bd,a)}
f.bd=function(a){switch(a.type){case "start":wQ.getInstance().end("bt");a=wQ.getInstance();a.g&&(qK(xQ("ff",a.k)),a.k=0);this.ra("start");break;case "impression":this.ra("impression");break;case "pause":this.ra("pause");break;case "resume":this.ra("resume");break;case "firstquartile":this.ra("firstquartile");break;case "midpoint":this.ra("midpoint");break;case "thirdquartile":this.ra("thirdquartile");break;case "complete":this.ra("complete");aY(this);break;case "click":this.o&&this.o.g.j?this.g.Kg()?
this.resume():this.pause():qY(this);break;case "engagedview":var b=hX(this);a=b.I;if(YS(b)&&!nL()&&!this.k.Ti()&&a){var b=this.g.getCurrentTime(),c=this.g.ed(),d=new L("//s.youtube.com/s");M(d,"ns","yt");M(d,"el","adunit");M(d,"docid",a);M(d,"eurl",document.URL);M(d,"len",c.toFixed(2));M(d,"tv","1");M(d,"ps","trueview-instream");M(d,"st",b.toFixed(2));M(d,"et",b.toFixed(2));M(d,"rt",b.toFixed(2));qK(d.toString())}this.ra("engagedview");break;case "videoAuthorIconClicked":tY(this);break;case "videoAuthorClicked":tY(this);
break;case "videoClicked":this.ra("videoClicked");break;case "videoLearnMoreClicked":this.g.pause();qY(this);break;case "videoShareClicked":a=hX(this).J;null!=a&&(a=a.videoId,b=this.j.baseYouTubeUrl,C(D(a))?a=null:(b=new L((null!=b?b:"//www.youtube.com/")+"watch"),c=b.g,c.set("v",a),Ve(b,c),b.Ff="action=share",a=b.toString()),null!=a&&(pK(a),a=uY(this),null!=a&&(a=tK(a,"sharebuttonclicked",void 0),qK(a))));break;case "videoShareShown":a=uY(this);null!=a&&(a=tK(a,"sharebuttondisplayed",void 0),qK(a));
break;case "videoTitleClicked":a=hX(this);b=a.J;null!=b&&(a=YO(b.videoId,null!=oT(a),this.j.baseYouTubeUrl),null!==a&&(this.g.pause(),pK(a)));break;case "skipshown":this.ra("skippableStateChanged");break;case "skip":oY(this)}};function uY(a){var b=hX(a).getExtension("AdSense");if(!(b=null!=b?new L(b.j):null))t:{if(a=eT(hX(a)))if(a=ES(a,"start"),!lb(a)){b=new L(a[0].g);break t}b=null}return b}function oY(a){vn(function(){this.ra("skip");aY(this)},0,a)}
f.ef=function(a){ZX.H.ef.call(this,a);sY(this,"impression")};f.ie=function(a,b){ZX.H.ie.call(this,a,b);E(b,function(a){sY(this,a)},this)};f.ti=function(a){ZX.H.ti.call(this,a);a instanceof GS&&(a=HS(a),E(a.Ka(),function(a){sY(this,a)},this))};f.getMediaUrl=function(){if(!iX(this))return null;var a=hX(this);if(!jY(a))throw fL(VK);a=a.g.G;return lb(a)?null:a[0].j};
f.ax=function(){var a=this.g.ed(),b=this.g.Or(),c=this.g.getCurrentTime(),d=0,e=0;iX(this)&&(e=hX(this),d=e.A.g,e=e.A.k);if(null!=this.o&&0<=a&&0<=c){var g;if(g=!this.O)g=3==hX(this).ka;if(g){g=this.g.ed();var h=uT(hX(this));g=Math.abs(g-h);2<g&&(g=fL(UK,null,Number(g).toFixed(2)),g=mV(g,hX(this),this.g),h=aT(hX(this)),sK(h,g));this.O=!0}this.o.update(c,b,a,d,e)}};f.Jw=function(){var a=this.g.gd();a!=this.M&&(this.M=a,this.ra("volumeChange"),0==a&&this.ra("mute"))};
function bY(a,b){wX(b,function(a){a=new cS(a);xT(hX(this))==a.videoId&&(vY(this,a),!C(D(a.channelId))&&a.g&&yX(a.channelId,function(a){a=new aS(a);if(null!=this.o){var b=this.o,c=a.j;b.g.P=!C(D(c));b.g.Z=c;null!=b.D&&(c="\u043e\u0442 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f "+b.g.Z,Ud(b.D,(new RT(c,void 0)).getContent()));NX(b);b=this.o;c=a.g;b.g.N=!C(D(c));if(null!=b.C){var h=Fd("img");h.setAttribute("src",c);P(h,"videoAdUiAuthorIconImage");b.C.appendChild(h);null!=
b.A&&P(b.A,"videoAdUiTitleWithAuthorIcon")}NX(b)}hX(this).G=a;this.ra("youTubeChannelMetadata");if(a=this.o)a=hX(this),b=a.J,a=nL()&&lb(nQ(a))&&null!=a.G&&null!=b&&b.g;if(a){a=hX(this);jX(this).listen(window,"message",this.Fy);var b=hX(this),c=b.G.channelId,h=WS(b),k=this.j.contentId,l=this.j.baseYouTubeUrl,l=new L((null!=l?l:"//www.youtube.com/")+"ad_companion"),p=l.g;p.set("adformat",h);p.set("p",c);p.set("render","video_wall_companion");k&&p.set("content",k);c=new jU("1",new J(300,250),"IFrame",
null,l.toString());c.pg(b);c.C=!0;a.B=[new zT(c,[],null)];kX(this,a)}},this))},a)}f.Fy=function(a){var b=a.g;if("companion-setup-complete"==b.data){a=hX(this);var c=encodeURIComponent(D(tT(a)))+","+encodeURIComponent(uY(this).toString());b.source.postMessage(c,"*");b=b.source.frameElement;b.parentNode.style.cssText="";b.width=370;b.height=null!=tT(a)?210:185}else"pause-video"==b.data&&this.pause()};
function vY(a,b){if(null!=a.o&&b.g){var c=a.o,d=b.title;c.g.B=!C(D(d));c.g.title=d;gc.test(fc(c.g.title,void 0));null!=c.A&&Ud(c.A,c.g.title);NX(c);c=a.o;null!=c.F&&Ud(c.F,"\u041f\u043e\u0434\u0435\u043b\u0438\u0442\u044c\u0441\u044f")}hX(a).J=b;a.ra("youTubeVideoMetadata")}function tY(a){var b;b=hX(a).G;if(null!=b){b=b.channelId;var c=a.j.baseYouTubeUrl;b=C(D(b))?null:(null!=c?c:"//www.youtube.com/")+"channel/UC"+b;null!==b&&(a.g.pause(),pK(b))}};function wY(a){this.g=a}f=wY.prototype;f.Rk=function(){return this.g.Rk()};f.Sk=function(){return this.g.Sk()};f.xf=function(){return this.g.xf()};f.fj=function(a){return this.g.fj(a)};f.en=function(){return this.g.en()};f.nm=function(){return this.g.nm()};f.Ti=function(){return this.g.Ti()};f.hide=u;f.wg=u;f.oi=u;function xY(a,b,c,d,e,g,h){V.call(this);this.o=this.B=0;this.C=a;this.Ed=b;this.V=c;this.A=null;this.M=d;this.N=g;this.J=kL.j;this.g=null;this.S="normal";this.I=null;this.F=e;this.k=[];this.U=this.P=this.G=!1;this.O=h;yY(this)}B(xY,V);f=xY.prototype;f.init=function(a,b,c){zY(this,c);null==this.D&&(this.D=new An(this),Dn(this.D,this.M,"adsLoaderSdkAdLoaded",this.wF,this),Dn(this.D,this.M,"adsLoaderSdkAdError",this.vF,this));AY(this)};
f.start=function(){this.G=!0;BY(this);0<this.k.length?CY(this):("always"==kL.j&&null!=this.O&&gQ(this.O,dQ()),gL(dL,this,EK,void 0,void 0),0==this.Ed&&this.T("contentResumeRequested"),DY(this))};f.destroy=function(){null!=this.D&&(this.D.dispose(),this.D=null);this.F.hide();EY(this);kL.j=this.J;this.G=!1};f.getCurrentAd=function(){return this.o<this.k.length?this.k[this.o].g[0]:null};f.jb=function(){return this.G};f.pause=function(){null!=this.g&&this.g.pause()};
f.resume=function(){null!=this.g&&this.g.resume()};f.skip=function(){null!=this.g&&this.g.skip()};f.getRemainingTime=function(){return null!=this.g?this.g.getRemainingTime():-1};f.setVolume=function(a){null!=a&&(this.I=a,null!=this.g&&this.g.setVolume(this.I))};function zY(a,b){null!=b&&(a.S=b);null!=a.g&&(a.g.Rj(b),a.g.uh())}function yY(a){E(a.C,function(a){a=new L(a.k.adTagUrl);var c=jf(a,"max_ad_duration");n(c)||jf(a,"pmxd")})}
f.wF=function(a){kL.j=this.J;var b=a.B;lb(b)||(a=a.A,a.g&&E(b,function(a){a.ja=!1},this),nb(this.k,new PQ(b,a.g,a.j)));this.B++;AY(this)};f.vF=function(a){a=a.k;kL.j=this.J;a.getMessage();gL(dL,this,EK,void 0,void 0);this.B++;AY(this)};function AY(a){a.B<a.C.length&&null!=a.C[a.B]&&!(2<=a.k.length-a.o)?FY(a):a.P||(a.T("adBreakInitialized"),a.P=!0)}function FY(a){var b=a.C[a.B];kL.j="on_master_ad";QW(a.M,b.k,b)}
function BY(a){null==a.Ed||gb(a.k,function(a){return!a.j})||(a.k=eb(a.k,function(a){return!(a.j&&!a.k)}))}
function CY(a){if(a.o<a.k.length){var b=a.k[a.o];EY(a);try{var c=b.g,b=null;if(VS(c[0]))a.N.$o&&(c=vb(c,0,1)),b=new ZX(c);else{var d=c[0];if(null!=d&&mT(d,"nonlinear"))b=new oX(c);else throw Error("No valid creative type found.");}b.B=a.O;b.Rc(new wY(a.F),{currentTime:0},a.N);a.g=b;if(null==a.g)throw Error("The current ads manager is not defined");null!=a.j&&(a.j.dispose(),a.j=null);a.j=new An(a);var e=a.g;Dn(a.j,e,"adError",a.Ew,a);Dn(a.j,e,"click videoClicked start pause resume firstquartile midpoint thirdquartile complete skip loaded adMetadata log".split(" "),
a.Fw,a);a.j.listen(e,["allAdsCompleted"],u);Dn(a.j,e,"contentPauseRequested",a.Cw,a);Dn(a.j,e,"contentResumeRequested",a.Dw,a);if(GY(a.g)){var g;g=eT(hX(a.g)).fb;g=0<g?g:15;null!=a.A&&a.A.dispose();a.A=new tn(1E3*g);Gn(a.j,a.A,"tick",a.Gw,a)}a.g.init(a.S);null!=a.I&&a.g.setVolume(a.I);if(GY(a.g))a.T("contentResumeRequested"),a.F.hide(),a.F.oi(),a.g.start(),null!=a.A&&a.A.start();else{var h=a.g;if(null!=h&&h instanceof ZX)a.F.wg(),a.g.start();else throw Error("Unknown ads manager type.");}}catch(k){a.o++,
CY(a)}a.B<a.C.length&&null!=a.C[a.B]&&FY(a)}else a.T("contentResumeRequested"),DY(a)}function EY(a){null!=a.A&&(a.A.dispose(),a.A=null);null!=a.j&&(a.j.dispose(),a.j=null);null!=a.g&&(a.g.destroy(),a.g=null)}f.Gw=function(){EY(this);DY(this)};f.Ew=function(){this.o++;CY(this)};f.Dw=function(){this.o++;CY(this)};f.Cw=function(){this.U||(this.T("contentPauseRequested"),this.U=!0)};function GY(a){return null!=a&&a instanceof oX}function DY(a){a.G=!1;a.T("allAdsCompleted")}
f.Fw=function(a){HY(this,a.type,a.getAd());this.T(a)};function HY(a,b,c){if("loaded"==b||"start"==b||"adMetadata"==b||"firstquartile"==b){var d=0,e=0;E(a.k,function(a,b){var g=a.g;cb(g,c);d+=g.length;b<this.o&&(e+=g.length)},a);b=c.A;var g=e+b.o;b.k=d+(a.C.length-a.B);b.g=g;b.j=a.V;b.A=a.Ed}};function IY(a){lm.call(this,a);this.k=null}B(IY,lm);function JY(a,b,c){V.call(this);this.j=a;this.g=[];this.B=null!=c&&"boolean"==typeof c.backlog?c.backlog:!1;this.D=null!=c&&ia(c.prefetch)&&0<=c.prefetch?c.prefetch:0;this.k=null;this.o=!1;KY(this,b)}B(JY,V);function LY(a){this.g=a;this.k=this.j=!1}function MY(a){null!=a.k&&(a.k.dispose(),a.k=null);a.j.stop();a.o=!1}function NY(a){if(a.o){var b=G(a.g,function(a){return-1==a.g},a);null!=b&&OY(a,!0,b)}}
function KY(a,b){E(b,function(a){if(isNaN(a))throw Error("The ad play time is not a number:"+a);Eb(this.g,new LY(a),function(a,b){return yb(a.g,b.g)})},a)}JY.prototype.A=function(){if(this.o){var a=this.j.currentTime;if(isNaN(a)||0>a)PY(this);else{var b=QY(this,a);this.B?E(b,function(a){OY(this,!0,a)},this):OY(this,!0,ab(b));OY(this,!1,RY(this,a))}}};function QY(a,b){for(var c=[],d=0;d<a.g.length;d++){var e=a.g[d];-1!=e.g&&e.g<=b&&nb(c,e)}return c}
function RY(a,b){for(var c=0;c<a.g.length;c++){var d=a.g[c];if(-1!=d.g&&b>=d.g-a.D&&b<d.g&&!a.g[c].j)return d}return null}JY.prototype.C=function(){PY(this)};function PY(a){a.T(new IY("contentTrackingError"))}function OY(a,b,c){if(null!=c){if(!c.j){var d=new IY("requestAds");d.k=c.g;a.T(d);c.j=!0}b&&!c.k&&(b=new IY("playAds"),b.k=c.g,a.T(b),c.k=!0)}};function SY(a,b){S.call(this);this.k=a;this.j=-1;this.g=b}B(SY,S);function TY(a,b){if(0==b.Ed||0>=a.g||0>=a.j)return!1;var c=A()/1E3,d=b.Ed-a.k.currentTime;0<d&&(c+=d);return c-a.j<=a.g};function RW(a,b){gX.call(this,[]);this.O=a;this.G=new oe;this.o=this.g=null;this.V=new ap;this.C=null;this.M=b;this.S=this.U=!1;this.J=null;this.Z=this.ba=-1;this.P=null}B(RW,gX);f=RW.prototype;
f.Rc=function(a,b,c){null!=this.o&&(MY(this.o),this.o.dispose(),this.o=null);RW.H.Rc.call(this,a,b,c);c=this.O.g.Ka();b=new zP(b);this.o=new JY(b,c,{prefetch:4});E(c,function(b,c){if(isNaN(b))throw dL(xK,null,"timeOffset",b+"");var g=ia(b)&&!isNaN(b)?this.O.g.get(b,[]):[];if(!lb(g)){g=new xY(g,b,0==b||-1==b?b:c,this.M,a,this.j,this.B);if(qe(this.G,b))throw dL(JK,null,"Multiple ad breaks cannot share same ad play time.");this.G.set(b,g)}},this);this.J=ab(c);gb(c,function(a){if(-1==a)return this.J=
a,!0;this.J=this.J<a?a:this.J;return!1},this)};
f.init=function(a){RW.H.init.call(this,a);null!=this.o&&(UY(this),a=jX(this),Dn(a,this.o,"requestAds",this,this),Dn(a,this.o,"playAds",this,this),Dn(a,this.o,"contentTrackingError",this,this),Dn(a,this.o,"adBreakReady",this.By,this),Dn(a,this.M,"contentComplete",this.Cy,this),this.M.g=!1,a=this.o,a.o||(null==a.k&&(a.k=new An(a)),a.k.listen(a.j,"currentTimeUpdate",a.A,!1),a.k.listen(a.j,"contentWrapperError",a.C,!1)),a.j.start(),a.o=!0,this.o.A(),a=ia(0)&&!isNaN(0)?this.O.g.get(0,[]):[],lb(a)&&this.ra("contentResumeRequested"))};
f.ak=function(){this.qe();this.T(new uX(null))};f.destroy=function(){this.dispose()};f.L=function(){this.M.g=!0;if(0<this.G.Ra()){var a=this.G.La();E(a,this.rj,this);this.G.clear()}UY(this);VY(this);null!=this.k&&(this.k.hide(),this.k=null);RW.H.L.call(this)};f.start=function(){RW.H.start.call(this)};f.stop=function(){null!=this.g&&this.g.destroy()};f.pause=function(){null!=this.g&&this.g.pause()};f.resume=function(){null!=this.g&&this.g.resume()};f.skip=function(){null!=this.g&&this.g.skip()};
f.setVolume=function(a){RW.H.setVolume.call(this,a);null!=this.g&&this.g.setVolume(a)};f.uh=function(){RW.H.uh.call(this);var a=yd(window);this.ba=a.width;this.Z=a.height;null!=this.g&&zY(this.g,this.I)};f.getRemainingTime=function(){return null!=this.g?this.g.getRemainingTime():-1};f.qe=function(){return this.O.g.Ka()};f.getCurrentAd=function(){return null!=this.g?this.g.getCurrentAd():null};f.Er=function(){};f.handleEvent=function(a){"contentTrackingError"!=a.type&&(cp(this.V,a),WY(this))};
function UY(a){null!=a.D&&(a.D.dispose(),a.D=null);a.U=!1;null!=a.o&&MY(a.o)}
function WY(a){if(null==a.C){var b=dp(a.V);if(null!=b){a.C=b;var c=a.G.get(a.C.k);null==c?(a.C=null,WY(a)):"requestAds"!=b.type&&"playAds"!=b.type?(a.C=null,WY(a)):null!=a.P&&TY(a.P,c)?(a.C=null,WY(a)):"requestAds"==b.type?(b=jX(a),Dn(b,c,"click videoClicked start pause firstquartile midpoint thirdquartile complete skip loaded adMetadata pause resume log".split(" "),a.T,a),Dn(b,c,"allAdsCompleted",a.$r,a),Dn(b,c,"contentPauseRequested",a.Yr,a),Dn(b,c,"contentResumeRequested",a.Zr,a),Dn(b,c,"adBreakInitialized",
a.as,a),c.init(a.ba,a.Z,a.I)):"playAds"==b.type&&(null!=a.g&&a.g.jb()&&a.rj(a.g),a.g=c,a.g.setVolume(a.volume),zY(a.g,a.I),a.g.start())}}}
f.rj=function(a){a.destroy();this.G.remove(a.Ed);this.g=null;null!=this.D&&(this.D.Da(a,"click videoClicked start pause firstquartile midpoint thirdquartile complete skip loaded adMetadata pause resume log".split(" "),this.T,!1,this),this.D.Da(a,"allAdsCompleted",this.$r,!1,this),this.D.Da(a,"contentPauseRequested",this.Yr,!1,this),this.D.Da(a,"contentResumeRequested",this.Zr,!1,this),this.D.Da(a,"adBreakInitialized",this.as,!1,this))};
f.Cy=function(a){this.U=!0;-1==this.J?a.o=!1:nL()&&0!=this.G.La().length||XY(this);NY(this.o)};f.By=function(a){var b=a.k;-1==b?vn(function(){var a=this.G.get(b);a&&this.rj(a);nL()&&0!=this.G.La().length||XY(this)},500,this):0==b&&vn(function(){this.ra("contentResumeRequested")},100,this);this.T(new TJ("adBreakReady",null,{lH:b}))};f.$r=function(a){this.rj(a.target);(0==this.G.La().length||!nL()&&this.U)&&XY(this);this.C=null;WY(this)};
function XY(a){a.S||(a.S=!0,a.M.g=!0,a.ra("allAdsCompleted"),-1==a.J&&VY(a))}function VY(a){JP.clear();null!=a.B&&(a=a.B.je(),null!=a&&YP(a,JP.g))}f.Yr=function(){var a=this.o;a.j.stop();a.o=!1;this.ra("contentPauseRequested")};f.Zr=function(){this.ra("contentResumeRequested");if(!this.S){var a=this.o;a.j.start();a.o=!0}this.C=null};f.as=function(){this.C=null;WY(this)};f.ra=function(a){var b=null;null!=this.g&&(b=this.g.getCurrentAd());this.T(new TJ(a,b))};
f.Qq=function(a,b){return this.P=new SY(a,b)};function YY(a){gX.call(this,a);this.V=this.U=this.O=!1;this.M=[];this.S=Va();this.g=null;this.o=!0;this.P=-1;this.J=1}B(YY,gX);f=YY.prototype;
f.init=function(a){YY.H.init.call(this,a);a=vT(hX(this));if(/\.html(\?.*)?$/.test(a)){if(a.match("//s0.2mdn.net/instream/html5/survey/survey.html")){var b="ru".replace("-","_");a=a.replace(".html","_"+b+".html");null!=this.j.contentId&&(a=Oe(a,"v",this.j.contentId))}a=D(a)}else{var b=new L(a),c=new L("http://tpc.googlesyndication.com/pagead/js/loader7.html");"https"==b.Hb&&Pe(c,"https");a=Ve(c,a||"",void 0).toString()}this.C=K("iframe",{src:oK(a),allowtransparency:!0,background:"transparent",style:"border:0; opacity:0; margin:0; overflow:hidden;padding:0; width:100%; height:100%;position: absolute;"});
jX(this).listen(window,"message",this.YD);jX(this).listen(this.C,"load",this.WD);jX(this).listen(this.C,"error",this.XD);this.k.xf().appendChild(this.C)};f.Rc=function(a,b,c){YY.H.Rc.call(this,a,b,c);this.o=eT(hX(this))instanceof GS;this.g=a.fj(!1);jX(this).listen(this.g,"click end error mediaLoadTimeout pause play timeUpdate volumeChange".split(" "),this.LD)};f.stop=function(){this.k.hide();YY.H.stop.call(this)};
f.start=function(){YY.H.start.call(this);var a=hX(this),b=sV(a,this.g);this.A.g=b;if(b=a.g)this.ef(a),this.ie(b,RJ),this.ti(b);this.g.qi();this.k.oi();this.C.style.opacity=1;this.V=!0;this.o&&this.ra("contentPauseRequested");ZY(this)};f.pause=function(){$Y(this,"pauseAd")};f.resume=function(){$Y(this,"resumeAd")};f.setVolume=function(a){YY.H.setVolume.call(this,a);$Y(this,"setAdVolume",{value:a})};
f.L=function(){var a=this.k.xf();null!=a&&Jd(a);this.o&&this.ra("contentResumeRequested");this.ra("allAdsCompleted");this.O=!1;this.M=[];YY.H.L.call(this)};f.ak=function(){};
f.WD=function(){var a=this.g.ym();lb(a)&&(a=this.j.mimeTypes);aZ(this,"wrapperCall",{messageType:"supportedMimeTypes",supportedMimeTypes:a});var a=cT(hX(this)),b=D(tT(hX(this))),b={desiredBitrate:this.j.bitrate,creativeData:a,viewMode:this.I,clickThroughUrl:b};vT(hX(this)).match("//s0.2mdn.net/instream/html5/survey/survey.html")&&0<=a.indexOf("yt_override")&&null!=this.j.surveyCreativeData&&(b.creativeData=this.j.surveyCreativeData);aZ(this,"initAd",b);E(this.M,function(a){aZ(this,a.type,a.params)},
this);this.O=!0;this.M=[]};function $Y(a,b,c){a.O?aZ(a,b,c):a.M.push({type:b,params:c})}function aZ(a,b,c){null!=a.C?(null!=c||(c={}),c.session=a.S,c.type=b,a.C.contentWindow.postMessage(eg(c),"*")):(bZ(a,cL,null),a.stop())}
f.YD=function(a){a=a.g;if(a.source==this.C.contentWindow&&(a=cg(a.data),a.session==this.S&&w(a.type)))switch(a.type){case "videoCall":switch(a.func){case "play":this.k.wg();this.g.getVideoUrl()!=a.src&&this.g.load(a.src,a.mimetype);this.g.play();break;case "pause":this.g.pause()}break;case "getAdRemainingTime":a=a.remainingTime;this.o||(wn(this.P),ia(a)&&-1!=a||(a=30),this.P=vn(this.LB,1E3*a,this));break;case "AdClickThru":nX(this,"click");this.ra("click");break;case "AdError":bZ(this,cL,null);this.stop();
break;case "AdExpandedChange":this.ra("expandedChanged");break;case "AdImpression":this.ra("impression");break;case "AdLinearChange":a=a.isLinear;!this.o&&a?(this.ra("contentPauseRequested"),wn(this.P)):!a&&this.o&&(this.ra("contentResumeRequested"),this.o=a,$Y(this,"getAdRemainingTime"));this.o=a;break;case "AdLoaded":this.U=!0;ZY(this);this.ic("loaded");break;case "AdPaused":this.ic("pause");break;case "AdPlaying":this.ic("resume");break;case "AdRemainingTimeChange":this.o||$Y(this,"getAdRemainingTime");
break;case "AdSkipped":this.ic("skip");break;case "AdStarted":nX(this,"impression");nX(this,"creativeview");this.ra("start");break;case "AdStopped":nX(this,"stop");this.stop();break;case "AdUserAcceptInvitation":this.o?nX(this,"acceptinvitationlinear"):nX(this,"acceptinvitation");break;case "AdUserMinimize":nX(this,"collapse");break;case "AdUserClose":this.ic("userClose");break;case "AdVideoComplete":this.ic("complete");break;case "AdVideoFirstQuartile":this.ic("firstquartile");break;case "AdVideoMidpoint":this.ic("midpoint");
break;case "AdVideoStart":nX(this,"start");break;case "AdVideoThirdQuartile":this.ic("thirdquartile");break;case "AdVolumeChange":a=a.volume;a!=this.J&&this.ra("volumeChange");0==a&&0!=this.J?(nX(this,"mute"),this.ra("mute")):0==this.J&&0!=a&&nX(this,"unmute");this.J=a;this.g.setVolume(a);break;case "Ping":qK(a.url)}};f.XD=function(a){bZ(this,KK,a);this.stop()};function bZ(a,b,c){var d=fL(b,c),d=mV(d,hX(a)),e=aT(hX(a));sK(e,d);hL(a,b,c)}
f.LD=function(a){switch(a.type){case "timeUpdate":a=this.g.ed();var b=this.g.getCurrentTime();aZ(this,"wrapperCall",{messageType:"timeupdate",duration:a,currentTime:b});break;case "end":cZ(this,"ended");break;case "mediaLoadTimeout":cZ(this,"stalled");break;default:cZ(this,a.type)}};function cZ(a,b){aZ(a,"wrapperCall",{messageType:b})}function ZY(a){a.U&&a.V&&($Y(a,"startAd"),a.o||$Y(a,"getAdRemainingTime"))}f.LB=function(){$Y(this,"stopAd")};function dZ(){}function TW(a){if(!lb(a)){var b=a[0],c=wT(b)&&nL();switch(null!=vT(b)&&c?"vpaid":nT(b)&&mT(b,"nonlinear")?"overlay":mT(b,"linear")?"video":mT(b,"nonlinear")?"overlay":null){case "overlay":return nT(b)?new tX(a):new oX(a);case "video":return new ZX(a);case "vpaid":return new YY(a)}}return null};function eZ(a){V.call(this);this.j=a;a=new fQ(new PP);this.g=new MW(new dZ,a,JP);this.g.listen("adsManagerLoaded",this.T,!1,this);this.g.listen("adError",this.T,!1,this);this.g.listen("adLoadError",this.T,!1,this)}B(eZ,V);
function fZ(a,b,c){var d;try{d=window.top.location.href}catch(e){d=window.location.href}b.location=d;b.referrer=window.document.referrer;var g=b.adTagUrl,h=b.linearAdSlotHeight,k=b.nonLinearAdSlotWidth,l=b.nonLinearAdSlotHeight,p=a.j.A;d=[];d.push(b.linearAdSlotWidth||"");d.push(h||"");d.push(k||"");d.push(l||"");k=h="";if(null!=p){h=[];k=0;for(l=p;l&&25>k;l=l.parentNode,++k)h.push(9!=l.nodeType&&l.id||"");h=h.join();t:{if(p&&p.nodeName&&p.parentElement)for(var k=p.nodeName.toLowerCase(),l=p.parentElement.childNodes,
r=0,v=0;v<l.length;++v){var x=l[v];if(x.nodeName&&x.nodeName.toLowerCase()==k){if(p==x){k="."+r;break t}++r}}k=""}}d.push(h,k);if(null!=g)d.push(Me(g,"ad_type")||""),d.push(Me(g,"videoad_start_delay")||""),d.push(Me(g,"sz")||""),d.push(Me(g,"vpos")||""),d.push(Me(g,"mridx")||""),d.push(Me(g,"vad_type")||"");else for(g=0;8>g;++g)d.push("");d.join(":");d=d.join(":");g=d.length;if(0==g)d=0;else{p=305419896;for(h=0;h<g;h++)p^=(p<<5)+(p>>2)+d.charCodeAt(h)&4294967295;d=0<p?p:4294967296+p}b.zc=d.toString();
b.Km=a.j.D;NW(a.g,b,c)}eZ.prototype.L=function(){null!=this.g&&(this.g.Da("adsManagerLoaded",this.T),this.g.Da("adError",this.T),this.g.Da("adLoadError",this.T),this.g=null);eZ.H.L.call(this)};function gZ(a,b){Vw.call(this,a,b)}B(gZ,Vw);f=gZ.prototype;f.pj=function(){gw(this.app,!0,this.playerType);this.app.$c(this.playerType)};f.pauseVideo=function(){this.app.pauseVideo(this.playerType)};f.tu=function(a,b,c){gw(this.app,!0,this.playerType);var d=this.app,e=this.playerType;d.Qe(d.getCurrentTime()+a,b,c,e)};f.Ef=function(a,b){gw(this.app,!0,this.playerType);this.app.Qe(a,b,void 0,this.playerType)};f.Fl=function(){rw(this.app,this.playerType)};function hZ(a){this.app=a;Px.call(this,a.Kb)}B(hZ,Px);hZ.prototype.getAdState=function(){return-1};hZ.prototype.subscribe=function(a,b,c){return hZ.H.subscribe.call(this,a,b,c)};function nZ(a,b,c){this.o=a;this.g=b||"";this.j=c||null;this.k=!1}function oZ(a,b,c){var d;if(d=Xt("grc",a.g))Zt(a.g),d=!0;if(d){var e=a.g;d=Zt(e).span;e=Ut(e);"grc"in e&&(d[b]=(c||A())-e.grc);a.o.experiments.o&&!Xt(b,a.g)&&Tt(b,c)}else Xt(b,a.g)||(Tt(b,c,a.g),a.o.experiments.o&&"new_playback"==a.g&&Tt(b,c))}nZ.prototype.info=function(a,b){Yt(a,b,this.g)};
function pZ(a){var b=a.o;if(!b.U||"detailpage"!=b.ca&&"leanback"!=b.ca&&("embedded"!=b.ca||!b.Fh&&!b.experiments.F)||a.k)return NaN;a.k=!0;Hf("TIMING_ACTION")||Ff("TIMING_ACTION",a.o.ha);if(a.j){var b=a.j.o,c;for(c in b)Tt(c,b[c],a.g);c=a.j.k;for(var d in c)Yt(d,c[d],a.g)}if(d=rh("visibilityState",document)){c=-1;switch(d){case "hidden":c=0;break;case "visible":c=1;break;case "prerender":c=2;break;case "unloaded":c=3}Yt("yt_vis",c,a.g)}Yt("yt_pt","html5",a.g);if(Xt("_start",a.g))return d=Wt(a.g),
a.o.experiments.o&&"new_playback"==a.g&&(a.g="",a.k=!1,pZ(a),a.g="new_playback"),d;a.j&&(a=a.j,a.o={},a.k={});return NaN}ug("hidden",window.document);function qZ(a,b){a=!!a;q("_lactCookie",a,window);if(null==t("_lact",window)){if(a&&b){var c;c=pk.get("ACTIVITY","-1");q("_lact",parseInt(c,10),window)}else q("_lact",-1,window),Zw();R(document,"keypress",Zw);R(document,"mousedown",Zw);R(document,"mouseup",Zw)}}function Zw(){var a=t("_lact",window);null==a&&(qZ(),a=t("_lact",window));var b=A();q("_lact",b,window);t("_lactCookie",window)&&1E3<=b-a&&qk("ACTIVITY",""+b)}function rZ(){var a=t("_lact",window);return null==a?-1:Math.max(A()-a,0)};var sZ={AJ:"0",DJ:"1",EG:"2",uJ:"3"};var tZ={WJ:"red",WHITE:"white"};function uZ(a){this.experimentIds=(a||"").split(",");var b={};E(this.experimentIds,function(a){b[a]=!0});this.I=!!b["913424"];this.C=!!b["932250"];this.ua=!!b["945066"];this.F=!!b["945069"];this.Ba=!!b["945073"];this.qa=!!b["945074"];this.Z=!!b["945089"];this.ja=!!b["945090"];this.N=!!b["945091"];this.na=!!b["945093"];this.ma=!!b["945094"];this.ba=!!b["927845"];this.B=!!b["936926"];this.G=!!b["913430"];this.g=!(!b["926304"]&&!b["932404"]);this.k=!!(b["926301"]||b["926305"]||this.g);this.ha=!!b["927877"];
this.A=!!b["913436"]||!!b["934933"]||!!b["934934"]||!!b["934936"]||!!b["934937"]||!!b["934938"]||!!b["934939"]||!!b["934941"]||!!b["934942"]||!!b["934943"]||!!b["934944"]||!!b["934945"]||!!b["934946"]||!!b["934947"]||!!b["934948"]||!!b["934949"]||!!b["934950"]||!!b["934951"]||!!b["934952"]||!!b["934953"]||!!b["934954"]||!!b["948904"]||!!b["948905"]||!!b["948906"]||!!b["948907"]||!!b["948908"]||!!b["913444"]||!!b["937225"]||!!b["937226"];this.j=!!b["934947"]||!!b["913444"]||!!b["937226"]||!!b["934953"]||
!!b["934954"];this.O=!!b["953500"];this.ka=!!b["941004"];this.wa=!!b["951502"];this.spherical=!!b["951503"];this.D=!!b["951506"];this.ga=!!b["930676"]||!!b["930677"];this.U=!!b["943603"]||!!b["943604"]||!!b["943605"]||!!b["943606"]||!!b["943607"]||!!b["943610"]||!!b["900718"];this.qv=!!b["943610"];this.to=!!b["943605"];this.rv=!!b["943606"];this.W=!!b["909722"];this.P=!!b["939977"]||!!b["930678"];this.J=!!b["957105"];this.M=!!b["959800"];this.fb=!!b["937222"];this.V=!!b["959802"];this.S=!!b["939945"];
this.o=!!b["922317"]};var vZ={"ad-trueview-indisplay-pv":6,"ad-trueview-insearch":7},wZ={"ad-trueview-indisplay-pv":2,"ad-trueview-insearch":2},xZ="blogger books docs google-live play picasaweb".split(" ");
function yZ(a){S.call(this);a=Yb(a);this.o={};this.experiments=new uZ(a.fexp);this.na=a.forced_experiments||null;this.origin=Gt(this.origin,a.origin);this.D=Gt("",a.loaderUrl);var b=document.location.toString();this.Ha=(this.F=!!b&&-1!=b.search(tf))?Gt("",a.loaderUrl):document.location.toString();"adunit"==a.el?Vf(this.D)?this.ca="adunit":this.ca="embedded":this.ca=a.el||this.ca;qZ("detailpage"==this.ca,a.autonav);var b=null,c=a.ps;!c||H(xZ,c)&&!this.zb()||(b=c);this.j=b;switch(this.ca){case "adunit":this.qo=
!1;break;case "detailpage":this.mc=!0;break;case "profilepage":this.qg=!0}switch(this.j){case "blazer":this.mc=this.Wh=this.autoplay=!1;this.U=!0;break;case "blogger":this.Re=this.mc=this.xc=this.nc=this.af=this.fe=!1;this.Nc="bl";break;case "books":this.xc=this.nc=this.af=this.fe=!1;this.mc=!0;this.Re=!1;this.Nc="gb";break;case "docs":this.Re=this.mc=this.xc=this.nc=this.af=this.fe=!1;this.Nc="gd";break;case "google-live":this.Re=this.mc=this.xc=this.nc=this.af=this.fe=!1;this.Nc="gl";break;case "play":this.mc=
this.xc=!1;this.Nc="gp";break;case "native":this.Wh=!1;break;case "picasaweb":this.Re=this.mc=this.xc=this.nc=this.af=this.fe=!1;this.Nc="pw";break;case "touch":this.Wh=!1}this.Zb=this.zb()&&H(xZ,this.j);this.k={};this.k.c="web";this.k.cver="html5";this.k.cplayer="UNIPLAYER";this.I=!(!wt().defaultPlaybackRate||Rc&&!st("chrome")||Yh||Xh||st("android")||st("silk"));a.use_media_volume?b=!1:(b=wt(),c=b.muted,b.muted=!c,b=b.muted!=c);this.Ga=b;this.Xa=Zh;this.vb=(Yh||Xh||ai)&&"blazer"!=this.j&&!kH(this);
this.vk=Dt("adunit"!=this.ca&&"detailpage"!=this.ca&&!this.Zb,a.showinfo);this.isMobile=Dt("blazer"==this.j,a.is_html5_mobile_device);this.G=Dt(!1,a.playsinline);b=this.isMobile&&lt&&2.3>=kt;c=Xh&&!this.G||!b&&Dt("native"==this.j,a.use_native_controls)?"3":"1";this.g="0"!=a.controls?c:"0";this.Mc=Dt("blazer"==this.j||"touch"==this.j,a.use_tablet_controls);this.ga="1"!=this.g?"0":this.Mc?"blazer"==this.j?"3":"1":Et("2",a.autohide,sZ);this.color=Et("red",a.color,tZ);this.qa="3"==this.g||Dt(!1,a.modestbranding)&&
"red"==this.color;if(c=Dt(!1,a.nologo))var c=this.F?this.D:document.location.toString(),d=!!c&&-1!=c.search(Bf),c=Tf(c)||d;this.hb=c;c=!this.qa&&"1"==this.g;this.ib="embedded"==this.ca&&!this.vk&&!this.Zb&&!c&&!0;this.wb=this.Ja=b;this.A=!Xh;this.ma=this.F||!1;if(this.experiments.ga)b="detailpage"!=this.ca?this.Ha.substring(0,128):"";else if(b=Gt("",a.eurl),"detailpage"==this.ca||"unknown"==b||"undefined"==b)b="";this.C=b;b=Dt(this.lg,a.fs);this.lg="detailpage"==this.ca&&"blazer"==this.j?b:b&&Hh();
this.Va=Gt(this.Va,a.authuser);this.autoplay=Dt(this.autoplay,a.autoplay);this.Bk=Dt(this.Bk,a.autoplayoverride);this.J=Gt(this.J,a.content_v);this.xk=Dt(this.xk,a.disablekb);this.ki=Dt(this.ki,a.edu_mode);this.N=Gt(this.N,a.framer);this.ja=Et(this.ja,a.iv_load_policy,jt);this.M=Gt(this.M,a.hl);this.Io=Dt(this.Io,a.bwlogging);this.Bd=Dt(this.Bd,a.player_wide);this.Xh=Dt(this.Xh,a.privembed);this.S=Ft(this.S,a.live_chunk_readahead||a.hls_live_chunk_readahead);this.Ko=Dt(this.Ko,a.loop);this.Jo=Dt(this.Jo,
a.on3g);this.pageId=Gt(this.pageId,a.pageid);this.Ak=Kt(this.Ak,a.vq);this.fk=Gt(this.fk,a.playerapiid);this.ua=Gt(this.ua,a.cr);this.nc=Dt(this.nc,a.logwatch);this.nk=Dt(this.nk,a.canplaylive);this.xc=Dt(this.xc,a.rel);this.mc=Dt(this.mc,a.enablesizebutton);this.bi=Dt(this.bi,a.ss);this.theme=Gt(this.theme,a.theme);this.zb()&&(this.ok=Dt(this.ok,a.retryneterr));"3"==this.g&&(this.ja=3);this.useSsl=Dt(this.useSsl,a.ssl);if(this.Zh=Dt(this.Zh,a.ssl_stream))this.useSsl=!0;this.Mc&&(this.theme="dark");
b=this.og;if(c=a.video_container_override)d=c.split("x"),2==d.length&&(c=parseInt(d[0],10),d=parseInt(d[1],10),b=isNaN(c)||isNaN(d)||0>=c*d?b:new J(c,d));this.og=b;this.Xb=Gt(this.Xb,a.attrib);this.Yb=Gt(this.Yb,a.sk);this.protocol=this.useSsl?"https":"http";this.ek=Dt("0"!=this.g,a.store_user_volume);this.Dd=Dt(this.Dd,a.use_media_volume);if(b=a.BASE_YT_URL)if(b=(b=b&&b.match(rf))?b[0]:"")this.qb=b;(b=a.gdatabaseurl)&&b&&-1!=b.search(uf)&&(this.Do=b);zZ(this,a);b=AZ(this);c=!0;this.isMobile&&(c=
!1);st("nintendo wiiu")&&(c=!1);this.Bk&&(c=!0);this.Fh=b&&c;this.o=a}B(yZ,S);var BZ={NH:"cbrand",PH:"cbr",QH:"cbrver",QI:"c",SI:"cver",RI:"cplayer",nJ:"cmodel",wJ:"cnetwork",GJ:"cos",HJ:"cosver",IJ:"cplatform"};f=yZ.prototype;f.Cf=null;f.lg=!0;f.Va="";f.autoplay=!1;f.Bk=!1;f.qb="/";f.Do="//gdata.youtube.com/";f.xk=!1;f.ki=!1;f.Wh=!0;f.ca="detailpage";f.Io=!1;f.Ya=!1;f.hs=!1;f.Bd=!1;f.fe=!0;f.Xh=!1;f.af=!0;f.jg=!1;f.Ko=!1;f.Ak=Us;f.fk="";f.Jo=!1;f.pageId="";f.ok=!1;f.Fh=!1;f.nc=!1;f.nk=!0;f.ek=!0;
f.Dd=!1;f.qo=!0;f.xc=!0;f.qg=!1;f.mc=!1;f.Re=!0;f.bi=!1;f.useSsl=!1;f.Zh=!1;f.ce=null;f.og=null;f.Kr=null;f.ff=null;f.ub=null;f.Nc="yt";function Bw(a,b){a.ka=b.get("d",a.ka);a.V=b.get("f",a.V)}
function zZ(a,b){a.B=void 0;var c;(c=b.adformat)||(c=(c=b.attrib)&&c in vZ&&c in wZ?wZ[c]+"_"+vZ[c]:void 0);if(c){var d=c.match(/^(\d*)_((\d*)_?(\d*))$/);d&&5==d.length&&(d=d[3],d=6==d||7==d||8==d||10==d,a.zb()||d)&&(a.B=c,a.o.adformat=b.adformat,d||(a.ca="adunit"))}a.Cf=(b&&b.adpings?tj(b.adpings):null)||a.Cf;c=b.agcid;a.ya=c;a.o.agcid=c;c=b.feature;a.O=c;a.o.feature=c;c=b.referrer;a.referrer=c;a.o.referrer=c;a.searchQuery=b.q;for(var e in BZ)c=BZ[e],d=b[c],void 0!=d&&(a.k[c]=d);a.nc=Dt(a.nc,b.logwatch);
a.userAge=Ft(a.userAge,b.user_age);a.P=Gt(a.P,b.user_display_image);Uf(a.P)||(a.P="");a.Z=Gt(a.Z,b.user_display_name);a.wa=Gt(a.wa,b.user_gender);a.W=Gt(a.W,b.eventid);a.ha=Gt(a.ha,b.csi_page_type);a.U=Dt(a.U,b.enablecsi)}
function CZ(a,b,c){switch(b.W){case 38:return a=b.videoId.indexOf(":"),Je("//play.google.com/books/volumes/"+b.videoId.slice(0,a)+"/content/media",{aid:b.videoId.slice(a+1),sig:b.pz});case 30:return c="//docs.google.com/",a.qb!=yZ.prototype.qb&&(c=a.qb),Je(c+"get_video_info",{docid:b.videoId,authuser:b.Va,authkey:b.Mh,eurl:a.C});case 33:return Je("//google-liveplayer.appspot.com/get_video_info",{key:b.videoId});default:var d={html5:"1",video_id:b.videoId,cpn:b.za,eurl:a.C,ps:a.j,el:a.ca,hl:a.M,list:b.playlistId,
agcid:a.ya,sts:16429,lact:DZ(a)?rZ():"-1"};a.na&&(d.forced_experiments=a.na);b.D?d.vvt=b.D:b.B&&(d.access_token=b.B);a.B&&(d.adformat=a.B);b.qa&&(d.iv_load_policy=b.qa);b.Ga&&(d.itct=b.Ga);b.kg&&(d.autoplay="1");b.Xl&&(d.noiba="1");b.Yl&&(d.mdx="1");b.Nh&&(d.ytrcc=b.Nh);b.Zl&&(d.utpsa="1");b.xq&&(d.is_fling="1");c.width&&(d.width=c.width);c.height&&(d.height=c.height);b.na&&(d.ypc_preview="1");b.zd&&(d.splay="1");a.J&&(d.content_v=a.J);b.Wl&&(d.livemonitor=1);a.Va&&(d.authuser=a.Va);a.pageId&&(d.pageid=
a.pageId);a.W&&(d.ei=a.W);a.Zh&&(d.ssl_stream="1");a.F&&(d.iframe="1");b.Kh&&(d.tst=b.Kh);b.contentCheckOk&&(d.cco="1");b.racyCheckOk&&(d.rco="1");ra(d,a.k);return Je(a.qb+"get_video_info",d)}}function EZ(a){return a.ki?"//s.youtubeeducation.com/":a.af?"//s.youtube.com/":"//video.google.com/"}function FZ(a){return a.referrer?a.referrer.slice(0,128):""}f.getVideoUrl=function(a,b,c){return cI(this,a.videoId,a.playlistId,b,c)};
function GZ(a){return"www.youtube-nocookie.com"==window.location.host||a.ki?"www.youtube.com":window.location.host}function cI(a,b,c,d,e){b={v:b,list:c};d&&ra(b,d);a=Je(a.protocol+"://"+GZ(a)+"/watch",b);if(e){d="";d="!"=="#".charAt(1)?"#".substr(0,2):"#";b="#";"#"==b.charAt(0)&&(b="!"==b.charAt(1)?b.substr(2):b.substr(1));b=tj(b);for(var g in e)b[g]=e[g];e=d+He(b);a=a+e}return a}
function HZ(a,b){if("play"!=a.j)return"https://support.google.com/youtube/?p=report_playback";var c={contact_type:"playbackissue",html5:1,plid:b.playbackId,ei:b.F,v:b.videoId,p:"movies_playback"};b.j&&(c.fmt=b.j.id);b.za&&(c.cpn=b.za);b.W&&(c.partnerid=b.W);return Je("//support.google.com/googleplay/",c)}
function IZ(a){var b={};if(!a.ub)return b;a.ub.webkitDecodedFrameCount&&(b.hmewdfc=a.ub.webkitDecodedFrameCount,b.hmewdrop=a.ub.webkitDroppedFrameCount,b.hmewvdbc=a.ub.webkitVideoDecodedByteCount,b.hmewadbc=a.ub.webkitAudioDecodedByteCount);a.ub.mozParsedFrames&&(b.hmempf=a.ub.mozParsedFrames,b.hmemdf=a.ub.mozDecodedFrames,b.hmempresented=a.ub.mozPresentedFrames,b.hmempainted=a.ub.mozPaintedFrames,b.hmempaintdelay=a.ub.mozPaintDelay);return b}function JZ(){return rZ()}
function DZ(a){return a.experiments.W?"detailpage"==a.ca||"leanback"==a.ca:!0}function qI(a){return"leanback"==a.ca||a.Zb||!a.xc&&!a.qg?!1:!0}function AZ(a){return a.autoplay||"detailpage"==a.ca}function Qw(a){return"detailpage"!=a.ca&&"embedded"!=a.ca&&"profilepage"!=a.ca?!1:!0}f.zb=function(){var a;a=document.location.toString();var b=(a=!!a&&-1!=a.search(sf))&&!this.F;return a&&this.F&&Tf(this.D)||b};
function ow(a){var b=null!=a.D&&0==a.D.search("^https?://www.youtube.com");return"detailpage"==a.ca||"profilepage"==a.ca||b}function kH(a){return $h&&st("crkey")||"tv"==a.k.cplatform}f.L=function(){this.ub=null;yZ.H.L.call(this)};function KZ(a,b){this.g=a;this.j=b;this.k=1}function LZ(a,b,c,d){d/=a.k;var e=BJ(a.g)+1/CJ(a.g),g;g=Math.max(.9*(d-3),AJ(a.g)+8192*e);c=g/e/(b+c);c=Math.min(c,d);c=Math.max(a.j.I,Math.min(a.j.N,c));a=Math.max(a.j.C,Math.ceil(a.j.I*b));return Math.min(a,Math.max(Math.ceil(c*b),65536))}function MZ(a){var b=CJ(a.g);a=AJ(a.g)+1048576*BJ(a.g);return b*Math.min(1,1048576/(b*a))}function NZ(a){var b=MZ(a)/a.k;b<a.j.D&&(b=Math.min(a.j.D,b+a.j.M));return b};function OZ(a,b,c){this.g=a;this.video=b;this.reason=c};function PZ(a,b,c,d){this.M=a;this.O=b;this.D=c;this.C=d;this.k=this.F=this.g=null;this.A="i";this.I=-1;this.B=this.o=null;this.j=[];this.G=this.J=0;this.N=null}function QZ(a,b,c){"m"==c&&Ws(a.g)&&!Ws(b)&&(c="a");if("m"==c&&Ws(b))return a.A=c,RZ(a,b),SZ(a),a.k=TZ(a),new OZ(UZ(a),a.k,c);var d=a.g.equals(b);if("m"==a.A&&Ws(a.g)&&d)return null;"r"!=c||d||(a.I=-1);RZ(a,b);b=TZ(a);if("r"==c&&b==a.k){if(d)return null;a.k=b;return new OZ(UZ(a),b,c)}a.A=c;return null}
function VZ(a,b){WZ(a);a.N=b;a.G=A();a.I=-1;RZ(a,a.g)}function WZ(a){return!!a.G&&9E4>=A()-a.G}function UZ(a){XZ(a);return a.o}function TZ(a){XZ(a);return a.B}function YZ(a){var b=a.A;a.A="a";a.I=A();return new OZ(a.F,a.k,b)}
function XZ(a){if(Ws(a.g)||!(8E3>A()-a.I)){a.G&&!WZ(a)&&(a.G=0,RZ(a,a.g));SZ(a);var b=NZ(a.M);if(Ws(a.g))a.B=a.D.g[a.j[a.j.length-1].id];else{for(var c=Math.min(a.J,a.j.length-1),d=b/1.05-a.o.info.pa;0<c&&!(a.j[c].pa<=d);c--);for(b=b/1.15-a.o.info.pa;c<a.j.length-1&&!(a.j[c+1].pa>=b);c++);a.J=c;a.B=a.D.g[a.j[c].id]}}}
function RZ(a,b){a.g=b;var c=a.C.j;if(!Ws(a.g)&&(c=eb(c,function(a){return a.pa>this.O.pa?!1:!this.D.g[a.id].A},a),WZ(a))){var c=eb(c,function(a){return a.id!=this.N.id},a),d=eb(c,function(a){return"140"==a.id||"134"==a.id||"243"==a.id});d.length&&(c=d)}c.length||(c=a.C.j);c=eb(c,a.g.o,a.g);c.length||(c=[a.C.j[0]]);c.sort(function(a,b){return a.pa-b.pa});for(d=1;d<c.length;d++){var e=c[d-1],g=c[d];e.video.width>g.video.width?(pb(c,d),d--):1.15*e.pa>g.pa&&(pb(c,d-1),d--)}a.j=c}
function ZZ(a){var b=G(a.C.g,function(a){return!!a.Ae&&a.Ae.isDefault}),b=b||a.C.g[0];a.o=a.D.g[b.id];SZ(a)}function SZ(a){if(!a.o.info.Ae&&(a.o=a.D.g[a.C.g[0].id],1<a.C.g.length)){var b=!1;if(Ws(a.g))b=240>a.g.g;else{for(b=0;b+1<a.j.length&&"tiny"==a.j[b].video.quality;)b++;var c=NZ(a.M)/1.15,b=a.o.info.pa+a.j[b].pa>c}b&&(a.o=a.D.g[a.C.g[1].id])}}
function $Z(a){var b=NZ(a.M)/1.05-a.o.info.pa,c=kb(a.j,function(a){return this.O.o&&this.O.o<dr[a.video.quality]?!1:a.pa<b},a);0>c&&(c=0);a.J=c;a.B=a.D.g[a.j[c].id]};function a_(){this.g=this.j=!1}a_.prototype.start=function(){this.j=!0};function b_(a,b){this.F=a;this.k=b;this.pendingRequests_=[];this.g=[];this.o=this.j=null;this.A=0;this.pa=b.info.pa;this.C=this.D=!1;this.B=new a_}function c_(a,b){a.pendingRequests_.push(b);a.j=ab(b.info.g);a.A+=Or(b.info)}function d_(a){for(;a.pendingRequests_.length&&5==a.pendingRequests_[0].state;){var b=a.pendingRequests_.shift();a.A-=Or(b.info);a.A+=ab(b.A).buffer.byteLength;E(b.A,a.I,a)}}
b_.prototype.I=function(a){if(4==a.info.type){var b=a.info.g.Bs(a);a.info==this.j&&(this.j=ab(b).info);E(b,this.I,this)}else 3==a.info.type&&this.g.push(a)};function e_(a){var b=Sr(a.g[0]);return b.getInt32(0)>b.byteLength&&1==a.g.length}
function f_(a,b){if(a.D)return a.g[0].$;var c=a.k.info.j,d=a.k.vi();if(a.g[0].info.A>=b)return null;var e;for(e=1;e<a.g.length;e++){var g=a.g[e].buffer!=a.g[e-1].buffer;if(a.g[e].info.A>b||g||a.F.J)break}e--;var g=a.g[e].$.end,h=a.g[e].info.C-b;if(d&&c&&0<=a.F.F&&h>a.F.F){c=Math.floor((b-a.g[e].info.A)/a.g[e].info.F*a.g[e].info.j);if(0==c)return null;g=a.g[e].$.start+c-1}return new or(a.g[0].g?0:a.g[0].$.start,g)}
function g_(a,b){for(var c;a.g.length;){if(a.g[0].$.end>b.end){var d;c=a.g[0];var e=b.end-a.g[0].$.start+1,e=Math.min(e,c.info.j),g=new Gr(c.info.type,c.info.g,c.info.$,c.info.o,c.info.startTime,c.info.duration,c.info.k,e,!1);d=qr(c.$.start,e);g=new ls(g,c.buffer,d,c.g);e=new Gr(c.info.type,c.info.g,c.info.$,c.info.o,c.info.startTime,c.info.duration,c.info.k+e,c.info.j-e,c.info.D);d=new or(d.end+1,c.$.end);d=[g,new ls(e,c.buffer,d,!1)];c=d[0];a.g[0]=d[1]}else c=a.g.shift();d=a;g=c.info;d.o=g;d.D&&
d.o.B&&(d.D=!1);d.pa=Math.max(d.pa,g.g.info.pa);if(c.$.end==b.end)break}a.g.length&&c.buffer==a.g[0].buffer||(a.A-=c.buffer.byteLength)}function h_(a,b){var c=i_(a,b);if(0<=c)return c;a.j=a.k.Li(b).g[0];j_(a)&&(a.o=null);return a.j.startTime}
function k_(a,b){l_(a);if(a.k.info.video&&a.o&&!a.o.B&&b){var c=ib(a.g,function(a){return a.info.B});a.g=vb(a.g,0,c+1);a.D=!0}else a.g=[];if(a.g.length)for(a.A=a.g[0].buffer.byteLength,c=1;c<a.g.length;c++)a.g[c].buffer!=a.g[c-1].buffer&&(a.A+=a.g[c].buffer.byteLength);else a.A=0}function m_(a){a.B.j||a.B.start();k_(a,!1);j_(a)&&(a.o=null)}
function n_(a,b){for(var c=0;c<a.pendingRequests_.length&&b!==a.pendingRequests_[c];c++);if(c==a.pendingRequests_.length)b.dispose();else{for(;c<a.pendingRequests_.length;)a.G(a.pendingRequests_.pop());3==b.info.g[0].type?(c=b.info.g[0],c=new Gr(c.type,c.g,c.$,c.o,c.startTime,0,c.k,0,!1),a.j=c):a.j=null}}function o_(a){return gb(a.g,function(a){return a.info.B})}function j_(a){return!!a.o&&a.o.D}
function p_(a){var b=[];a.o&&b.push(a.o);E(a.g,function(a){b.push(a.info)});E(a.pendingRequests_,function(a){E(a.info.g,function(a){3!=a.type&&4!=a.type||b.push(a)})});a.j&&a.j!=ab(b)&&b.push(a.j);return b}function q_(a){if(!a.j||!a.j.j)return!1;a=p_(a);if(!a.length)return!1;for(var b=1;b<a.length;b++)if(!(1E-6>=Math.abs(a[b].A-a[b-1].C)))return!1;return!0}
function i_(a,b){if(q_(a)){var c;t:{c=p_(a);for(var d=0;d<c.length;d++)if(c[d].A<=b&&c[d].startTime+c[d].duration>=b){c=c[d];break t}c=null}if(c)return c.startTime}return NaN}function r_(a){return gb(a.pendingRequests_,function(a){return 3<=a.state})}function s_(a){return!(!a.j||!a.k.Sc()||a.j.g==a.k)}function t_(a){return s_(a)&&a.j.g.info.pa<a.k.info.pa}b_.prototype.G=function(a){a.dispose();this.A-=Or(a.info)};function l_(a){E(a.pendingRequests_,a.G,a);a.pendingRequests_=[];a.j=null}
function u_(a){return!!a.j&&a.j.o<a.k.index.Og()};function v_(a,b,c){this.G=a;this.info=b;this.timing=c;this.state=1;this.g=this.A=null;this.I=NaN;this.C=this.o=0;this.k=NaN;this.B=this.j=this.D=null;this.F=0}v_.j=!1;v_.g=1E4;f=v_.prototype;f.getErrorCode=function(){return this.B};function w_(a){var b;b=a.timing;b={rt:((A()-b.j)/1E3).toFixed(2),lb:b.g,pt:(b.J/1E3).toFixed(2),pb:b.I};b.shost=vj(a.j?Ar(a.j):"")||"";a.F&&(b.rc=a.F.toString());return b}
f.start=function(){var a=1==this.state,b=6==this.state;1==this.state||4==this.state||b&&x_(this);y_(this,2);if(b){if(2>this.o){this.o++;a=v_.g*(.5+Math.random());1==this.o&&(a=2E3);N(y(this.jm,this),a);return}b=this.info.k;if(!(this.I<=b.k)){b.j++;b.k=Er-1;var c=jr(b.g),d=new L(c);d.nb.match("\\.googlevideo\\.com$")?(Qe(d,"redirector.googlevideo.com"),c=d.toString()):d.nb.match("r[1-9].*\\.c\\.youtube\\.com$")?(Qe(d,"www.youtube.com"),c=d.toString()):c=Wf(c);b.g=new hr(c);b.g.set("cmo",encodeURIComponent("pf="+
b.j))}this.o=0}a?this.jm():N(y(this.jm,this),0)};
f.jm=function(){if(!this.da()){this.I=Er++;this.j=Nr(this.info);this.o&&this.j.set("playerretry",this.o.toString());var a=Ar(this.j);this.g=new XMLHttpRequest;try{this.g.open("GET",a)}catch(b){this.B="net.ssl";y_(this,6);return}this.g.responseType="arraybuffer";this.g.withCredentials=!0;a=y(this.tw,this);this.g.addEventListener("load",a,!1);this.g.addEventListener("error",a,!1);this.g.send();this.C=0;a=this.timing;a.j=A();a.B=a.j;a.g=0;a.F=!1;a.G=!1;a.A=0;a.D=DJ(a.k);z_(a);a.J=a.C-a.j;this.g.addEventListener("progress",
y(this.uw,this),!1);0<this.G.j&&(this.k=N(y(this.Wo,this),this.G.j));this.j.get("itag");this.j.get("range");Math.round(this.info.g[0].A);Math.round(ab(this.info.g).C);A()}};f.uw=function(a){if(!this.da()){this.g&&(this.F=this.g.status);var b=this.timing,c=a.timeStamp;a=a.loaded;c=c>b.j&&4E12>c?c:A();20>c-b.B||A_(b,c,a);b=this.timing;b.g>b.M&&8192<b.g&&3>this.state&&y_(this,3)}};
f.tw=function(a){var b=this.g;if(!this.da()&&a.target==b){this.k&&(O(this.k),this.k=NaN);this.F=b.status;a=!1;400<=b.status?(a=!0,this.B="net.badstatus"):null==b.response&&(a=!0,this.B="net.connect");if(!a){var b=b.response,c;t:{if(2048>b.byteLength&&(c=String.fromCharCode.apply(String,new Uint8Array(b)))&&-1!=c.search(zf))break t;c=""}if(c){var b=this.info.k,d=this.j;d.g===b.g&&(b.g=Cr(d,c));y_(this,4)}else if(this.info.$&&b.byteLength!=this.info.$.length)a=!0,this.B="fmt.unparseable";else{c=this.info.g;
if(1==c.length&&!c[0].$){var d=c[0],e=qr(0,b.byteLength),d=new Gr(d.type,d.g,e,d.o,d.startTime,d.duration,d.k,e.length,d.D);c[0]=d}for(var d=[],e=0,g=!1,h=!1,k=0;k<c.length;k++){var l=c[k],p=b,r=qr(e,l.j),v=!1;if(1==l.type)b.slice?p=b.slice(e,e+l.j):(g=new Uint8Array(b,e,e+l.j),p=(new Uint8Array(g)).buffer),r=qr(0,l.j),g=!0;else if(3==l.type||4==l.type)v=g&&!h,h=!0;d.push(new ls(l,p,r,v));e+=l.j}this.A=d;c=this.timing;d=A();b=b.byteLength;c.F||(c.F=!0,d=d>c.j&&4E12>d?d:A(),A_(c,d,b),e=(d-c.j)/1E3,
!c.G&&8192<=c.g&&xJ(c.k,e,b),8192<=c.g&&(e=c.k,h=c.A,b=Math.max(b,8192),e.k.j(1,h/b),EJ(e)),zJ(c.k,d-c.j,c.g),c.o&&(c.o=!1));A();y_(this,5)}}a&&(x_(this),y_(this,6))}};function x_(a){if(2>a.o)a=!0;else{var b=a.info.k;a=!(a.I>b.k&&1<=b.j)}return a}function y_(a,b){a.state=b;if(4<=a.state){var c=a.timing;c.o&&(c.o=!1)}a.D&&a.D(a)}
f.Wo=function(){this.k=NaN;if(!this.da()){var a=A(),b=!1;if(8192<=this.timing.g){var c=this.timing.C;z_(this.timing);this.timing.C-c>=.8*this.G.j?(this.C++,b=5<=this.C):this.C=0}else b=this.timing,b=5E3<a-(b.j+1E3*b.D.delay);if(b){b=this.timing;a=a>b.j&&4E12>a?a:A();b.A+=(a-b.B)/1E3;var c=b.k,d=b.I,e=b.A,d=Math.max(d,8192);c.k.j(1,e/d);EJ(c);zJ(b.k,a-b.j,b.g);B_(this);this.B="net.timeout";y_(this,6)}else this.k=N(y(this.Wo,this),this.G.j)}};f.da=function(){return-1==this.state};
f.dispose=function(){Hr(this.info.g[0])&&5!=this.state&&(this.info.g[0].g.k=!1);y_(this,-1);this.D=this.A=null;B_(this);O(this.k);this.k=NaN};function B_(a){if(a.g){var b=a.g;a.g=null;b.abort()}a=a.timing;a.o&&(a.o=!1)};function C_(a,b,c){this.k=a;this.I=b;this.M=c;this.g=this.B=this.j=NaN;this.G=this.F=this.o=!1;this.A=0;this.C=this.J=NaN}function A_(a,b,c){if(a.o){var d=(b-a.B)/1E3,e=c-a.g;0<e&&(.2<d||1024>e?(a.A+=d,.2<d&&xJ(a.k,.05,e)):xJ(a.k,d,e),a.G=!0)}else 8192<=c&&(d=a.k,d.o.j(1,(b-a.j)/1E3),EJ(d),a.o=!0);a.B=b;a.g=c}function z_(a){var b=a.I-a.g,b=1E3*(b*a.D.tailDelay+b/a.D.byterate),c=A(),b=8192<=a.g?b+c:b+Math.max(c,a.j+1E3*a.D.delay);a.C=b};function D_(a,b,c,d){U.call(this);this.D=a;this.C=b;this.B=c;this.j=this.k=null;this.G=new KZ(a,b);this.g=null;this.A=new PZ(this.G,b,this.B,d);this.o=this.Z=this.ga=this.U=this.V=NaN;this.J=!1;this.N=NaN;this.ba=0;this.F=!1;this.ha={};this.P="";this.ja=!1;this.S=this.I=0}B(D_,U);D_.A=!1;D_.g=2/24;D_.j=1E3;D_.o=1E4;D_.k=.2;f=D_.prototype;
f.initialize=function(a,b,c){a=a||0;var d=this.A;d.A="i";RZ(d,b);ZZ(d);d.F=d.o;$Z(d);d.k=d.B;b=YZ(d);this.k=new b_(this.C,b.g);this.j=new b_(this.C,b.video);this.publish("videoformatchange",b);this.o=a;c?(this.F=!0,E_(this)):F_(this)};function F_(a){0==a.o&&(a.k.k.k||G_(a,a.k,!0),a.j.k.k||G_(a,a.j,!0));a.seek(a.o);H_(a,"gv")}f.resume=function(){this.F&&(this.F=!1)};
f.EA=function(a){this.resume();this.g=a;Ou(a)&&(a.g.addEventListener("updateend",y(this.sc,this),!1),a.j.addEventListener("updateend",y(this.sc,this),!1));H_(this,"msa");this.W&&this.M&&YA();this.sc();this.ga=Jf(y(this.sc,this),D_.o)};function I_(a){a.g&&a.g.g&&a.g.g.removeEventListener&&(a.g.g.removeEventListener("updateend",y(a.sc,a),!1),a.g.j.removeEventListener("updateend",y(a.sc,a),!1));a.g=null;a.F=!0;a.k&&(k_(a.j,!1),k_(a.k,!1))}function J_(a){a.g&&Mu(a.g)&&I_(a)}
function K_(a,b,c){if(!b.B.j||!c.remove)return!1;if(c.updating)return!0;if(!b.B.g&&c.buffered.length)return a=c.buffered.end(c.buffered.length-1),c.remove(0,a),b.B.g=!0;b=b.B;b.j=!1;b.g=!1;a.publish("seekrequired");return!1}
function L_(a,b,c){if(a.F)return!1;if(!b.j){if(!b.k.Sc())return b.k.k||G_(a,b,!1),!1;h_(b,a.o)}var d=b.pendingRequests_.length+c.pendingRequests_.length;(r_(b)||r_(c)||a.B.isLive)&&--d;if(2<=d+1)return!1;d=b.j;4==d.type&&d.g.Sc()&&(b.j=ab(d.g.yi(d)),d=b.j);!d.D&&!d.g.Bg(d)||d.g.info.j&&4==d.type?a=!1:t_(b)&&!a.C.k?a=!0:(!(c=d.D||b.A+c.A>a.C.g||!!(c.j&&!c.j.D&&c.j.C<d.C))&&(c=3==d.type)&&(d=d.C,b=M_(a,b,!0),Ws(a.A.g)||(c=(A()-a.ba)/1E3,b=Math.min(b,30+2*c)),c=d>a.o+b),a=c?!1:!0);return a}
function N_(a,b,c){if(!a.g||Lu(a.g)||Ou(a.g)){var d=a.o,e;e=a.G;c=LZ(e,b.k.info.pa,c.k.info.pa,0);e=AJ(e.g)+c*BJ(e.g)+c/CJ(e.g);e=Math.max(e,e+5-c/b.k.info.pa);d=d+e;a=a.A;t:{a=!a.k||!a.B||a.k.info.pa>=a.B.info.pa?!1:a.B.info.video.width>1.6*a.k.info.video.width?!0:"r"==a.A;if(b.pendingRequests_.length){if(b.pendingRequests_[0].info.g[0].startTime<=d)break t;l_(b)}for(e=b.g.length-1;0<=e;e--)c=b.g[e],c.info.startTime>d&&(b.g.pop(),b.g.length&&b.g[e-1].buffer==c.buffer||(b.A-=c.buffer.byteLength));
b.pendingRequests_.length?b.j=ab(b.pendingRequests_[b.pendingRequests_.length-1].info.g):b.g.length?b.j=ab(b.g).info:b.j=b.o;a&&b.j&&d<b.j.startTime&&(b.j=b.k.Li(d,!0).g[0])}}}
function O_(a,b,c){L_(a,b,c);var d=b.j;if(b.j.g.Sc()){t_(b)&&!a.C.k&&(N_(a,b,c),b.j||h_(b,a.o));var d=b.j,e=d.C-a.o,g=!d.$||0==d.j&&0==d.k?0:d.$.length-(d.k+d.j);s_(b)&&(t_(b)||25>=e)&&0==g&&(g=d.startTime+D_.g,d.j&&(g+=d.duration),h_(b,g),d=b.j);d.g.vi()?(c=LZ(a.G,d.g.info.pa,c.k.info.pa,e),e=s_(b),c=zs(d.g,d,c),c.$&&1<c.g.length&&(e?c=zs(d.g,d,c.g[0].j):(e=c.g[c.g.length-1],g=e.j/c.$.length,!e.B&&.4>g&&(c=zs(d.g,d,c.$.length-e.j)))),d=c):d=Qr(d.g,d)}else d.g.vi()?(c=LZ(a.G,b.k.info.pa,c.k.info.pa,
0),d=zs(d.g,d,c)):d=Qr(d.g,d);c_(b,P_(a,d))}function P_(a,b){if(3==b.g[b.g.length-1].type){var c;t:{c=a.A;var d=b.g[0].g;if(d.info.video){if(c.k!=d){c.k=d;c=YZ(c);break t}}else c.F=d;c=null}c&&a.publish("videoformatchange",c)}c=Or(b);var d=a.D,e=a.G,g=Math.min(2.5,AJ(e.g)),e=MZ(e);c=new v_(a.C,b,new C_(d,c,c-g*e));d=y(a.mB,a);c.D=d;c.start();return c}
f.mB=function(a){if(!this.da()&&3<=a.state){var b=a.info.g[0].g,c=!this.W&&b.info.video,d=!this.M&&b.info.j;4==a.state?(c?H_(this,"vrr"):d&&H_(this,"arr"),a.start()):5==a.state?(c?(this.W=a.j?Ar(a.j):"",$A()):d&&(this.M=a.j?Ar(a.j):""),E(a.A,function(a){Hr(a.info)&&a.info.g.Qp(a)}),hb(a.A,function(a){return ms(a)})&&!a.A[0].info.g.Gl()?this.sc():this.We(!0,"fmt.unparseable",w_(a))):3==a.state?(this.sc(),c&&$A()):6==a.state&&x_(a)?(this.We(!1,a.getErrorCode(),w_(a)),(c=b.info.video&&0<a.o&&90&&!WZ(this.A))&&
VZ(this.A,b.info),6==a.state&&"net.timeout"==a.B||c?(n_(b.info.video?this.j:this.k,a),this.sc()):a.start()):Hr(a.info.g[0])?(b.A=!0,this.sc()):this.We(!0,"net.retryexhausted",w_(a))}};function Q_(a){if(isNaN(a.V)){var b=y(a.sc,a);a.V=N(b,0)}}function E_(a){if(isNaN(a.U)){var b=y(function(){this.U=NaN;this.sc()},a);a.U=N(b,D_.j)}}
f.sc=function(){this.V=NaN;J_(this);if(this.g&&!Nu(this.g))if(this.B.isLive)Infinity!=this.N&&(this.N=Infinity,this.g.Xe(Infinity));else if(!isFinite(this.N)){var a=Math.floor(Math.max(this.k.k.index.$e(),this.j.k.index.$e()));0<a&&(this.g.Xe(a),this.N=a)}if(!this.da())if(a=this.B,A()-a.G>=a.B){if(3==this.B.k&&(this.We(!(3>this.B.j),this.B.getErrorCode(),{rc:this.B.J.toString()}),!(3>this.B.j)))return;a=this.B;if(3!=a.k||A()-a.F>=1E3*Math.pow(2,a.j))if(a=this.B,1!=a.k){var b;t:{var c=a.g;for(b in c){b=
c[b];break t}b=void 0}b=Je(a.I,{start_seq:(b.index.Gb()+1).toString()});a.F=A();Hs(a,b)}E_(this)}else if(this.B.isLive&&(u_(this.j)||u_(this.k))&&(b=R_(this),isNaN(b)||this.seek(b)),"prerender"==window.document.webkitVisibilityState)E_(this);else if(J_(this),d_(this.j),d_(this.k),this.k.k.k||(!this.F||FJ(this.D)?F_(this):E_(this)),!this.g||K_(this,this.k,this.g.g)||K_(this,this.j,this.g.j)||((b=S_(this,this.j,this.g.j))&&!this.I&&(this.I=A(),H_(this,"vda"),this.S&&$A()),a=lx(this.g.j.buffered,this.o+
D_.g),isNaN(a)&&!j_(this.j)&&this.g.g.buffered.length||(j_(this.j)&&(a=NaN),a=S_(this,this.k,this.g.g,a),b|=a,a&&!this.S&&(this.S=A(),H_(this,"ada"),this.I&&$A())),j_(this.j)&&j_(this.k)&&Lu(this.g)&&!Nu(this.g)&&(a=this.g,Lu(a)&&a.k.endOfStream(),a=this.D,bw(DJ(a)),a.j=A()),b&&!Ou(this.g)&&Q_(this)),T_(this,this.j,TZ(this.A)),T_(this,this.k,UZ(this.A)),this.j.k.A||this.k.k.A)this.We(!0,"net.retryexhausted");else{b=this.I?A()-this.I:0;if(this.ja||b>=this.C.G)L_(this,this.j,this.k)&&O_(this,this.j,
this.k),L_(this,this.k,this.j)&&O_(this,this.k,this.j);this.C.O&&this.P&&!this.F&&FJ(this.D)&&(b=this.P,this.P="",a=vj(b),Fj(b,{format:"RAW",responseType:"arraybuffer",timeout:15E3,onError:y(this.We,this,!1,"pathprobe.net",{shost:a})}))}};
function S_(a,b,c,d){if(c.updating)return!0;var e=b.g.length?b.g[0]:null;if(!e)return!1;!b.o||b.o.B||Ir(b.o,e.info)||(b.o=null,Lu(a.g)&&c.abort(),c.g=null);var g;if(g=a.B.isLive){var h;b.g.length&&1==b.g[0].info.g.info.g&&0==b.g[0].info.k&&8<b.g[0].info.j&&3==b.g[0].info.type?(h=Sr(b.g[0]),h=!!bs(h,0,1718909296)):h=!1;g=h}h=!(!b.F.J||!b.g.length||1!=b.g[0].info.g.info.g||0!=b.g[0].info.k)&&!a.B.A;if(g)c.g=null;else{if(g=h||!e.g)g=e.info.g.g,c.g==g?g=!1:(U_(a,c,g),c.g=g,a.publish("initsegment",c.g),
g=c.updating);if(g)return!0}g=M_(a,b,!1);g=a.o+g;0<=d&&(g=Math.min(g,d));d=f_(b,g);if(!d)return!1;if(h){if(e_(b))return!1;var k;t:{e_(b);h=b.g[0];var l=Sr(h);g=l.getInt32(0);if(g>l.byteLength){var p=b.g[1];if(p.$.length+l.byteLength<g){k=null;break t}k=new Uint8Array(g);l=new Uint8Array(h.buffer,h.$.start,h.$.length);k.set(l);l=new Uint8Array(p.buffer,p.$.start,g-h.$.length);k.set(l,h.$.length);l=new DataView(k.buffer)}var r=h.info.g.index.Wk(h.info.o);(l=as(l,r))?(k?(g_(b,h.$),g_(b,qr(p.$.start,
g-h.$.length))):g_(b,qr(h.$.start,g)),k=l):k=null}if(k)return U_(a,c,new Uint8Array(k)),!0}k=new Uint8Array(e.buffer,d.start,d.length);a.B.A&&3==e.info.type&&ia(c.timestampOffset)&&(p=0,p=a.C.P&&!b.C?-ns(e):-(ns(e)-e.info.startTime),Math.abs(c.timestampOffset-p)>D_.k&&(b.o&&b.o.o+1==e.info.o&&(p=lx(c.buffered,b.o.startTime)-ns(e)),c.timestampOffset=p));if(!U_(a,c,k))return m_(b),!0;a.B.A&&a.C.P&&!b.C||g_(b,d);b.C||(b.C=!0);e.g&&(c.g=e.info.g.g,a.publish("initsegment",c.g));return!0}
function U_(a,b,c){if(Ou(a.g))try{b.appendBuffer(c)}catch(d){return!1}else b.append(c);return!Mu(a.g)}function M_(a,b,c){var d;d=Ws(a.A.g)&&!a.C.k?b.k.info.j?10485760:62914560:b.k.info.j?a.C.A:a.C.B;c&&(d+=a.C.g);return d/(Ws(a.A.g)?b.j?b.j.g.info.pa:b.k.info.pa:b.pa)}function R_(a){if(a.B.isLive){var b=Math.max(a.j.k.index.Og(),a.j.k.index.Gb()-a.C.liveChunkReadahead);return a.j.k.index.wf(b)}return Math.floor(Math.min(a.k.k.index.$e(),a.j.k.index.$e()))}
f.seek=function(a){if(!this.da()){J_(this);this.ba=A();this.j.k=TZ(this.A);var b=V_(this,this.j,a,this.g&&this.g.j);this.k.k=UZ(this.A);var c=V_(this,this.k,b,this.g&&this.g.g);this.o=Math.max(a,b,c);this.J=!0;Q_(this)}};
function V_(a,b,c,d){if(b.k.Sc())if(d){var e=lx(d.buffered,c),g=NaN,h=b.o;h&&(g=lx(d.buffered,h.g.index.wf(h.o)));if(e==g&&q_(b))return c;d=i_(b,c);if(0<=d)return d;k_(b,!0);b.k.info.video&&b.o&&!b.o.B&&!o_(b)&&(d=b.o,b.g.length&&(d=ab(b.g).info),d=b.j||d,d=zs(d.g,d,d.$.length-(d.j+d.k)),c_(b,P_(a,d)));if(isNaN(e))return h_(b,c);h_(b,e+D_.g)}else h_(b,c);else b.k.k||G_(a,b,!1),0!=c&&l_(b);return c}function T_(a,b,c){b.k!=c&&(b.k=c,c.k||G_(a,b,!1))}
function G_(a,b,c){var d=window.ytplayer&&window.ytplayer.playback_delay;d?(a.Z=N(y(a.eu,a,b,c),d),window.ytplayer.playback_delay=0):a.eu(b,c);b.k.k=!0}f.eu=function(a,b){var c=b?65536:0;b&&!isNaN(2)&&(c=Math.floor(Math.max(c,2*a.k.info.pa)));c=a.k.Ys(c);E(c,function(b){var c=P_(this,b);!Hr(b.g[b.g.length-1])&&c_(a,c)},this)};f.L=function(){I_(this);this.k&&(l_(this.k),l_(this.j));Kf(this.ga);O(this.Z);this.j=this.k=null;D_.H.L.call(this)};
f.We=function(a,b,c){var d;if(c)for(var e in c)d=(d?d+";":"")+e+"."+c[e];this.publish("error",new mu(b,a,d));a&&(this.g&&Lu(this.g)&&(a=this.g,Lu(a)&&a.k.endOfStream("network")),this.dispose())};
D_.prototype.getDebugInfo=function(){var a={lct:this.o.toFixed(3),lsk:this.J,lmf:Ws(this.A.g),lbw:CJ(this.D).toFixed(3),lhd:AJ(this.D).toFixed(3),ltd:(1E9*BJ(this.D)).toFixed(3),laa:this.k.o?Lr(this.k.o):"",lva:this.j.o?Lr(this.j.o):"",lar:this.k.j?Lr(this.k.j):"",lvr:this.j.j?Lr(this.j.j):""};this.g&&!Mu(this.g)&&(a.lab=jx(this.g.g.buffered),a.lvb=jx(this.g.j.buffered));return a};function H_(a,b,c){a.ha[b]=c?window.performance.timing.navigationStart+c:A()};function W_(a,b,c,d){S.call(this);this.k=a;this.G=b;this.B=c;this.g=d;this.A="";this.j=this.C=this.D=this.F=null;this.o=new Gu(this);T(this,this.o);this.g&&(Hu(this.o,this.g,["message","mskeymessage"],this.lp),Hu(this.o,this.g,["error","mskeyerror"],this.kp),Hu(this.o,this.g,["ready","mskeyadded"],this.jp))}B(W_,S);f=W_.prototype;f.setCallbacks=function(a,b,c,d){this.F=a;this.D=b;this.C=c;this.j=d};f.lp=function(a){this.F.call(this.j,a)};
f.kp=function(a){var b;this.g?(b=this.g.error.code,a=this.g.error.systemCode):(b=a.errorCode.code,a=a.systemCode);this.D.call(this.j,b,a)};f.jp=function(a){this.C.call(this.j,a)};f.update=function(a){this.g?this.g.update(a):this.k.addKey?this.k.addKey(this.G.g,a,this.B,this.A):this.k.webkitAddKey(this.G.g,a,this.B,this.A)};f.L=function(){this.k=null;W_.H.L.call(this)};function X_(a,b){S.call(this);this.g=a;this.o=b;this.B={};this.k=null;this.A=new Gu(this);T(this,this.A);yu()||(Hu(this.A,this.g,["keymessage","webkitkeymessage"],this.F),Hu(this.A,this.g,["keyerror","webkitkeyerror"],this.D),Hu(this.A,this.g,["keyadded","webkitkeyadded"],this.C));this.j=null}B(X_,S);function Y_(a){a.j=new (yu())(a.o.g);a.g&&(a.g.msSetMediaKeys?a.g.msSetMediaKeys(a.j):a.g.setMediaKeys(a.j))}
function Z_(a,b){var c=a.B[b.sessionId];!c&&a.k&&(c=a.k,a.k=null,c.A=b.sessionId,a.B[b.sessionId]=c);return c}X_.prototype.F=function(a){var b=Z_(this,a);b&&b.lp(a)};X_.prototype.D=function(a){var b=Z_(this,a);b&&b.kp(a)};X_.prototype.C=function(a){var b=Z_(this,a);b&&b.jp(a)};X_.prototype.L=function(){this.g=null;X_.H.L.call(this)};var $_=null,a0=null;function b0(a,b,c){this.url=a;this.g=b;this.j=c};function c0(a,b,c){this.g=a;this.headers=b;this.message=c};function d0(a,b,c,d,e){S.call(this);this.G=a;this.j=d;this.j.subscribe("oauthtoken",this.Cp,this);this.A={session_id:e};Yw(this,a.k);this.g=[];this.o=this.C=this.F=!1;var g;try{var h=c.g;if(yu()){b.j||Y_(b);var k=c.j||"video/mp4",l;if("com.microsoft.playready"==b.o.g){var p=new Uint8Array(270);for(a=0;135>a;a++)p[2*a]='<PlayReadyCDMData type="LicenseAcquisition"><LicenseAcquisition version="1.0" Proactive="true"></LicenseAcquisition></PlayReadyCDMData>'.charCodeAt(a);l=b.j.createSession(k,h,p)}else l=
b.j.createSession(k,h);g=new W_(null,null,null,l)}else b.g.generateKeyRequest?b.g.generateKeyRequest(b.o.g,h):b.g.webkitGenerateKeyRequest(b.o.g,h),b.k=new W_(b.g,b.o,h,null),g=b.k}catch(r){b="g",r instanceof DOMException&&(b+=r.code),this.j.publish("licenseerror","drm.unavailable",b,"YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK"),g=null}if(this.k=g)this.k.setCallbacks(this.Dl,this.Ay,this.zy,this),T(this,this.k)}B(d0,S);f=d0.prototype;f.Cp=function(a){this.D=a};
function Yw(a,b){if(Rf(b)){for(var c in a.A)b=Oe(b,c,a.A[c]);a.B=b}else e0(a,"drm.net","u")}f.start=function(){this.da()||(this.F=!0,this.g.length&&this.Dl(this.g.shift()))};
f.Dl=function(a){if(!this.da()){var b=a.defaultURL||a.destinationURL;this.o&&b&&Yw(this,b);if(this.F){a=a.message;if("com.microsoft.playready"==this.G.g){for(var b="",c=0;c<a.length;c+=2)b+=String.fromCharCode(a[c]);b=(new DOMParser).parseFromString(b,"text/xml").querySelector("Challenge");a=Uint8Array;b=b.childNodes[0].data;if(!$_)for($_={},a0={},c=0;65>c;c++)$_[c]="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".charAt(c),a0[$_[c]]=c,62<=c&&(a0["ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_.".charAt(c)]=
c);for(var c=a0,d=[],e=0;e<b.length;){var g=c[b.charAt(e++)],h=e<b.length?c[b.charAt(e)]:0;++e;var k=e<b.length?c[b.charAt(e)]:64;++e;var l=e<b.length?c[b.charAt(e)]:64;++e;if(null==g||null==h||null==k||null==l)throw Error();d.push(g<<2|h>>4);64!=k&&(d.push(h<<4&240|k>>2),64!=l&&d.push(k<<6&192|l))}a=new a(d)}a={format:"RAW",method:"POST",lz:a,responseType:"arraybuffer",withCredentials:!0,Qa:this.nz,onError:this.Dp,context:this};b=this.B;this.D&&(b=Oe(b,"access_token",this.D));Fj(b,a)}else this.g.push(a),
this.C||(this.C=!0,this.j.publish("newsession",this))}};f.zy=function(){this.da()||(this.o||(this.j.publish("sessionready"),this.o=!0),this.g.length&&this.Dl(this.g.shift()))};
f.nz=function(a){if(!this.da())if(0!=a.status&&a.response){t:{a=new Uint8Array(a.response);var b=0,c=String.fromCharCode.apply(String,a.subarray(0,16384)).split("\r\n"),d=c[0];pb(c,0);c.pop();var b=b+(d.length+2),e=d.match(/^GLS\/1.\d ([0-9]{1,3}) (\w+)$/);if(null!=e)for(var d=Za(e[1]),g={},h=0;h<c.length;h++){e=c[h];b+=e.length+2;if(0==e.length){a=new c0(d,g,a.subarray(b));break t}e=e.match(/([^:]+):\s+([^]+)/);if(null==e)break;g[e[1]]=e[2]}a=null}a?0!=a.g?e0(this,"drm.auth","f"+a.g,ky(a.g)):(b=
(b=a.headers["Authorized-Format-Types"])?b.split(","):null,c=null,(d=a.headers["Heartbeat-Url"])&&(c=new b0(d,parseInt(a.headers["Heartbeat-Interval-Secs"],10)||60,parseInt(a.headers["Heartbeat-Num-Retries"],10)||4)),(b||c)&&this.j.publish("newlicense",b,c),this.k.update(a.message)):e0(this,"drm.net","p","YTP_ERROR_SERVER_ERROR")}else this.Dp(a)};f.Ay=function(a,b){this.da()||e0(this,"drm.keyerror","s"+a+"."+b)};f.Dp=function(a){e0(this,"drm.net","r"+a.status)};
function e0(a,b,c,d){a.da()||a.j.publish("licenseerror",b,c,d);a.dispose()}f.L=function(){this.j=null;d0.H.L.call(this)};function f0(a,b){this.g=a;this.j=b||null};function g0(a,b){U.call(this);this.F=a;this.g=b;this.subscribe("newlicense",this.qw,this);this.subscribe("newsession",this.rw,this);this.subscribe("sessionready",this.sw,this);this.M=Bt();this.o=null;this.D={};this.j=[];this.k=Ts;this.J=new X_("com.microsoft.playready"==b.g?null:a,b);T(this,this.J);this.B=new X_(a,b);T(this,this.B);this.C=2;this.G=new Gu(this);T(this,this.G);this.A=!1;this.I=null;Hu(this.G,this.F,yu()?["needkey","msneedkey"]:["needkey","webkitneedkey"],this.ow)}B(g0,U);f=g0.prototype;
f.ow=function(a){h0(this,new f0(a.initData,a.contentType),!0)};
function h0(a,b,c){if(!(a.da()||"com.microsoft.playready"==a.g.g^!c||(c=b.g,a.A&&"widevine"==a.g.j))){var d=String.fromCharCode.apply(String,c);if(!a.D[d]){a.D[d]=!0;d="clearkey"==a.g.j;if(112==c[4]&&115==c[5]&&115==c[6]&&104==c[7]&&d){t:{for(var e=new DataView(c.buffer),d=0;d<e.byteLength;){var g=e.getUint32(d,!1);if(1886614376!=e.getUint32(d+4,!1))break;if(1477738184==e.getUint32(d+12,!1)&&69420633==e.getUint32(d+16,!1)&&2464609580==e.getUint32(d+20,!1)&&1558758348==e.getUint32(d+24,!1)){e=e.getUint32(d+
28,!1);if(16!=e)break;c=c.subarray(d+32,d+32+e);break t}d+=g}c=null}if(!c)return}a.j.push(b);1<a.j.length||(i0(a,b),a.A=!0)}}}function i0(a,b){var c=new d0(a.g,a.J,b,a,a.M);c.Cp(a.o);T(a,c)}f.qw=function(a,b){a&&H(a,"HD")&&!Vs(this.k)&&"com.microsoft.playready"!=this.g.g&&(this.k=Us,this.publish("qualitychange"));b&&!this.I&&(this.I=b,this.publish("heartbeatparams",b))};f.rw=function(){this.da()||(this.j.shift(),this.j.length&&i0(this,this.j[0]))};f.sw=function(){this.C--;0==this.C&&Y_(this.B)};
f.L=function(){this.F=null;this.j=[];g0.H.L.call(this)};function j0(a){this.j={};this.j.c1a=y(this.o,this);this.j.c3a=y(this.A,this);(this.g=a)&&this.g.ba?this.k=tj(this.g.ba):this.k=[]}j0.prototype.o=function(){var a=t("yt.abuse.botguardInitialized");return a&&a()?(a=t("yt.abuse.invokeBotguard")())?"r1a="+a:null:null};j0.prototype.A=function(a){return"r3a="+Math.floor(this.g.lengthSeconds%Wa(a.c3a))};function k0(a,b,c){this.g=a;this.reason=b;this.j=c};function l0(a,b){this.g=a;this.j=b}function m0(a,b){return Xs(Xs(a.g.Ak,b.Kl),b.pi)}
function n0(a,b){var c;c=!!b.g.g;var d;Xh&&!a.g.G&&(d=window.screen&&window.screen.width?new J(window.screen.width,window.screen.height):null);d||(d=a.g.og?a.g.og.clone():a.j.ab());(Xh||Wc||c)&&d.scale(window.devicePixelRatio||1);c=d;var e;d=b.g.j;if(d.length){for(var g=0;g<d.length&&!(e=d[g].video,null===c||.85*e.width<c.width&&.85*e.height<c.height);g++);e=Ss("auto",e.quality,!1)}else e=Us;c=e.g;$h&&st("crkey")&&(c=Math.max(c,dr.hd1080));if(d=(st("armv7")||st("android"))&&!kH(a.g))d=b.g.j[0],d=
"9"==d.k||"("==d.k;d&&(c=Math.min(c,dr.large));c=Math.max(c,dr.medium);e.g!=c&&(e=new Rs(e.j,c,e.k));return e};function o0(){this.o=this.g=NaN;this.k=this.j=!1}function Cx(a,b,c,d){if(d=1<d)a.k=!0;if(a.j)b!=a.g&&(a.j=!1);else if(0<b&&a.g==b)return c-a.o>(d||!a.k?1500:400);a.g=b;a.o=c;return!1};function p0(){this.j=0;this.g=this.A=this.k=this.o=NaN};var q0={};function r0(a,b,c,d,e,g){aB.call(this,1,arguments);this.source=g||null}B(r0,aB);function s0(a,b,c,d,e,g,h){aB.call(this,1,arguments);this.source=h||null}B(s0,aB);var t0=new bB("subscription-subscribe"),u0=new bB("subscription-unsubscribe");function v0(a){this.j=a;this.g=0;this.A=NaN;this.k=0;this.fa=[];this.o=w0(this.j);this.B=this.C=0}function x0(a){a.o.startTime=a.k;a.o.endTime=a.g;a.fa.length&&ab(a.fa).isEmpty()?a.fa[a.fa.length-1]=a.o:a.fa.length&&a.o.isEmpty()||a.fa.push(a.o);a.C+=a.g-a.k;a.o=w0(a.j);a.k=a.g}function y0(a){return a.C+a.j.k()-a.k}function z0(a){a.fa.length&&a.g==a.k||x0(a);var b=a.fa;a.fa=[];return b}
v0.prototype.update=function(){var a=this.j.k()||0,b=A0(this.j);if(a!=this.g||B0(this,a,b)){if(a<this.g||a-this.g>b-this.A+.5||B0(this,a,b))x0(this),this.k=a;this.A=b;this.g=a}};function B0(a,b,c){c-=a.A;return b==a.g&&.5<c};function C0(a,b){this.g=b;this.o=!1;this.j=a}C0.prototype.k=function(){return{ps:this.g.j,el:this.g.ca}};C0.prototype.send=function(){this.o||(ag(Je(this.g.qb+"set_awesome",this.k())),this.o=!0)};function D0(a,b,c){C0.call(this,b,c);this.A=a}B(D0,C0);
D0.prototype.k=function(){var a=D0.H.k.call(this);ra(a,this.g.k);var b=Ic(this.j.Jh/this.j.lengthSeconds,0,1);ra(a,{html5:"1",video_id:this.j.videoId,eurl:this.g.C,framer:this.g.N,feature:this.g.O,list:this.j.playlistId,w:b,l:this.j.lengthSeconds,plid:this.j.playbackId,ei:this.j.F,access_token:this.j.B,tpmt:y0(this.A),cpn:this.j.za});this.g.B&&(a.adformat=this.g.B);this.g.referrer&&(a.referrer=FZ(this.g));this.g.autoplay&&(a.autoplay="1");this.g.Va&&(a.authuser=this.g.Va);this.g.pageId&&(a.pageid=
this.g.pageId);this.j.zd&&(a.splay="1");this.j.subscribed&&(a.subscribed=this.j.subscribed);ra(a,D0.H.k.call(this));ra(a,this.g.k);return a};function E0(a){S.call(this);this.g=a;this.k={};this.M=NaN;this.A=new Tq(this.bw,3E4,this);T(this,this.A);this.B=new Tq(this.Ck,100,this);T(this,this.B);this.j="N";this.o=0;this.O=NaN;this.G=0;this.F=this.P="";this.D=this.I=0;this.J=this.C=!1}B(E0,S);var F0={5:"N","-1":"N",3:"B",0:"EN",2:"PA",1:"PL"};function G0(a,b,c,d){var e=a.k[b];e||(e=[],a.k[b]=e);a=0<=d?d:A0(a.g);e.push(a.toFixed(3)+":"+c.join(":"))}f=E0.prototype;
f.Ck=function(a){a=a||A0(this.g);var b=this.g.C();if(!isNaN(this.N)&&!isNaN(b.k)){var c=b.k-this.N;0<c&&G0(this,"bwm",[c,(b.A-this.W).toFixed(3)],a)}this.N=b.k;this.W=b.A;isNaN(b.g)||G0(this,"bwe",[b.g.toFixed(0)],a);isNaN(b.j)||(c=b.j,b.o<c&&(c=b.o),this.O!=c&&(G0(this,"bh",[c.toFixed(3)],a),this.O=c),this.g.j.experiments.C&&3>c&&("PL"==this.j||"B"==this.j)&&this.B.start());G0(this,"cmt",[this.g.k()],a)};
function H0(a){var b={event:"streamingstats"};if(a.g.g.j){b.fmt=a.g.g.j.id;var c=a.g.g.C;c&&c.id!=b.fmt&&(b.afmt=c.id)}b.cpn=a.g.g.za;b.ei=a.g.g.F;b.el=a.g.j.ca;b.docid=a.g.g.videoId;b.ns=a.g.j.Nc;b.fexp=a.g.j.experiments.experimentIds.toString();b.cl=a.g.g.Yb;a.g.j.B&&(b.adformat=a.g.j.B);a.g.g.Wa&&(b.live=a.g.g.yb?"dvr":"live");b.html5="1";return b}
f.xg=function(a){if(!this.da()&&!Ub(this.k)){this.B.isActive()||this.Ck(a);a=IZ(this.g.j).hmewdrop;a>this.G&&G0(this,"df",[a-this.G]);this.G=a;a=H0(this);bc(a,this.g.j.k);a=Je(EZ(this.g.j)+"api/stats/qoe",a);for(var b in this.k)a+="&"+b+"="+this.k[b].join(",");ag(a);this.k={};this.A.start()}};f.bf=function(){G0(this,"vps",["N"]);this.g.g.Ja&&(this.k.cat=["preload"]);this.M=Jf(y(this.xg,this),1E4);this.A.start()};
f.onError=function(a,b){var c=this.g.k(),c=[a,c.toFixed(3)];b&&c.push(b);G0(this,"error",c)};f.bw=function(){"PL"==this.j&&(G0(this,"vps",[this.j]),this.xg())};f.L=function(){E0.H.L.call(this);Kf(this.M)};function I0(a,b,c,d){this.O=b;this.g=[];this.experimentIds=[];this.J=!1;this.k="watchtime"==c;this.ja="playback"==c;this.ba="delayplay"==c;this.na=(this.I="atr"==c)?"/api/stats/"+c:EZ(b)+"api/stats/"+c;d&&(this.oo=d.fs,d.rtn&&(this.mg=d.rtn),this.k?(this.wb=d.state,0<d.rti&&(this.Rh=d.rti)):(this.ga=d.mos,this.ha=d.volume,d.at&&(this.adType=d.at),d.allowed&&(this.B=d.allowed),d.ex_ads&&(this.G=d.ex_ads)),d.autonav&&(this.Sh=d.autonav));this.qa=b.B;this.autoplay=b.autoplay;this.wa=b.J;this.ya=Yb(b.k);
this.Ga=b.C;this.Ja=b.ca;this.experimentIds=b.experiments.experimentIds;this.P=b.M;this.no=b.Nc;this.referrer=b.referrer;this.Ba=b.ua;this.o=b.O;this.searchQuery=b.searchQuery;this.userAge=b.userAge;this.V=b.wa;this.ma=rZ();this.autoplay=a.kg||this.autoplay;this.Sh=a.Wn||this.Sh;this.U=a.Kh;this.ua=a.za;this.j=a.Un;this.F=a.jk;this.A=a.Jh;this.N=a.be;a.j&&(this.Z=a.j.id,a.C&&a.C.id!=this.Z&&(this.D=a.C.id));this.po=a.zd;this.Xa=a.Ih;a.Wa&&(this.fb=a.yb?"dvr":"live");this.ib=a.hk;this.playbackId=a.playbackId;
this.Ha=a.F;this.playlistId=a.playlistId;this.o=a.Xa||this.o;this.W=a.Fb;this.S=a.Xb;this.Xb=a.Vn;this.subscribed=a.subscribed;this.Fb=a.Yb;this.videoId=a.videoId;this.Yb=a.Qu;this.hb=a.wb;this.vb=a.Pu}f=I0.prototype;f.Sh=!1;f.autoplay=!1;f.Iy=!1;f.Fo=!1;f.oo=!1;f.cw=!1;f.po=!1;f.no="yt";f.Rh=null;f.mg=null;
f.send=function(){if(!this.J){var a=J0(this),a=Je(this.na,a);this.I?this.C&&Fj(a,{method:"POST",cb:{atr:this.C}}):!this.O.experiments.J&&yj()&&this.j?Fj(a,{headers:{Authorization:"CredentialTransfer type="+this.F+",token="+this.j}}):ag(a);this.J=!0}};
function J0(a){var b={ns:a.no,el:a.Ja,cpn:a.ua,docid:a.videoId,ver:2,referrer:a.referrer,cmt:a.Ye(a.A),plid:a.playbackId,ei:a.Ha,fmt:a.Z,fs:a.oo?"1":"0",rt:a.Ye(a.ka),of:a.vb,adformat:a.qa,content_v:a.wa,euri:a.Ga,subscribed:a.subscribed,lact:a.ma,live:a.fb,cl:a.Fb,mos:a.ga,q:a.searchQuery,osid:a.hb,state:a.wb,vm:a.Yb,volume:a.ha};ra(b,a.ya);a.Sh&&(b.autonav="1");a.autoplay&&(b.autoplay="1");a.Fo&&(b["final"]="1");a.po&&(b.splay="1");a.N&&(b.delay=a.N);a.P&&(b.hl=a.P);a.Ba&&(b.cr=a.Ba);n(a.userAge)&&
a.V&&(b.uga=a.V+a.userAge);n(a.M)&&(b.len=a.Ye(a.M));!a.k&&0<a.experimentIds.length&&(b.fexp=a.experimentIds.toString());null!=a.mg&&(b.rtn=a.Ye(a.mg));a.o&&(b.feature=a.o);a.playlistId&&(b.list=a.playlistId);a.W&&(b.ctrl=a.W);a.S&&(b.ytr=a.S);a.Xb&&(b.ssrt="1");a.D&&(b.afmt=a.D);a.k?(b.idpj=a.Xa,b.ldpj=a.ib,null!=a.Rh&&(b.rti=a.Ye(a.Rh))):(n(a.adType)&&(b.at=a.adType),n(a.B)&&(b.allowed=a.B),n(a.G)&&(b.ex_ads=a.G));(a.ja||a.ba)&&a.U&&(b.tst=a.U);a.k&&(b.st=K0(a,F(a.g,function(a){return a.startTime})),
b.et=K0(a,F(a.g,function(a){return a.endTime})));gb(a.g,function(a){return 0!=a.visibilityState})&&(b.vis=K0(a,F(a.g,function(a){return a.visibilityState})));gb(a.g,function(a){return 1!=a.playbackRate})&&(b.rate=K0(a,F(a.g,function(a){return a.playbackRate})));gb(a.g,function(a){return"-"!=a.yk})&&(b.cc=F(a.g,function(a){return a.yk}).join(","));a.O.experiments.J&&yj()&&a.j&&(b.ctt=a.j,b.cttype=a.F);return b}f.Ye=function(a){return(1*a.toFixed(3)).toString()};
function K0(a,b){return F(b,a.Ye).join(",")};function L0(a){S.call(this);this.g=a;this.o=new E0(a);T(this,this.o);this.j=new v0(a);this.B="paused";this.C=NaN;this.G=[10,10,10,40];this.I=this.F=0;this.O=this.D=this.M=this.J=this.k=!1;this.A=NaN;this.N=new D0(this.j,this.g.g,this.g.j)}B(L0,S);function M0(a,b,c){var d=A0(a.g);c=isNaN(c)?d:c;c=Math.ceil(c);var e=a.G[a.F];a.F+1<a.G.length&&a.F++;c=c+e;d=1E3*(c-d);a.C=N(y(a.MD,a,c,b),d);return c}f=L0.prototype;
f.MD=function(a,b){if(!this.da()){this.C=NaN;this.j.update();var c=z0(this.j),d=N0(this,c);b&&(d.Rh=a);var e=400<this.I;!(1<c.length)&&c[0].isEmpty()||e||(d.mg=M0(this,!0,a));d.send();this.I++}};function O0(a,b){var c=P0(a.g);ra(c,{state:a.B});c=new I0(a.g.g,a.g.j,b,c);c.A=a.g.k();c.M=a.g.B();c.ka=A0(a.g);c.g=[w0(a.g)];return c}function N0(a,b){var c=O0(a,"watchtime");c.g=b;c.A=a.j.g;return c}function Q0(a){a.j.update();return N0(a,z0(a.j))}
function R0(a){var b=a.g.j;a=a.g.g;var c=a.Xa||b.O,c={ns:b.Nc,html5:"1",el:b.ca,ps:b.j,fexp:b.experiments.experimentIds.join(",")||void 0,feature:c||void 0,ctrl:a.Fb||void 0,ytr:a.Xb||void 0,list:a.playlistId,d:b.ka,f:b.V};b.autoplay&&(c.autoplay="1");a.subscribed&&(c.subscribed=a.subscribed);return c}function S0(a){a.g.g.remarketingUrl&&!a.D&&(ag(a.g.g.remarketingUrl),a.D=!0);a.g.g.ppvRemarketingUrl&&!a.O&&(ag(a.g.g.ppvRemarketingUrl),a.O=!0);a.g.g.remarketingUrl||T0(a)}f.bf=function(){this.o.bf()};
f.onError=function(a,b){this.o.onError(a,b)};
function U0(a,b){if(!a.da()){X(b.state,2)?(a.B="paused",0<ez(b,2)&&a.k&&Q0(a).send()):X(b.state,8)?(a.B="playing",a.k&&isNaN(a.C)&&M0(a,!1)):a.B="paused";var c=a.o,d=b.state,e;e=b.state;if(X(e,128))e="ER";else if(X(e,16)||X(e,32))e="S";else{var g=F0[Fx(e)];"B"==g&&X(e,4)&&(g="PB");e=g}if(e!=c.j){var g=e,h=A0(c.g);if(!(h<c.o)){if("PL"==c.j)c.D+=h-c.o;else if("B"==c.j&&c.C&&(c.C=!1,c.I+=h-c.o,!c.J&&10<=c.I&&180>=c.D)){c.g.D();if(!c.da()){var k=H0(c);k.qoealert="1";k=Je(EZ(c.g.j)+"api/stats/qoe",k);
ag(k)}c.J=!0}"B"!=g||"PL"!=c.j&&"PB"!=c.j||(c.C=!0);c.o=h}!c.g.j.experiments.C||"B"!=e&&"PB"!=e?G0(c,"cmt",[c.g.k().toFixed(3)]):c.Ck();G0(c,"vps",[e]);c.j=e}if(X(d,128))c.onError(d.g.errorCode,d.g.errorDetail);(X(d,2)||X(d,128))&&c.xg();a.A&&X(b.state,128)&&(a.di("error-100"),O(a.A))}}function V0(a){a.A=Jf(y(a.di,a,"heartbeat"),3E4)}
f.di=function(a){var b=this.g.j,c=this.g.g,d={ns:b.Nc,el:b.ca,eurl:b.C,fmt:c.j?c.j.id:0,html5:1,list:c.playlistId,plid:c.playbackId,cpn:c.za,ei:c.F,ps:b.j,noflv:1,st:this.g.k(),video_id:c.videoId,metric:a};b.autoplay&&(d.autoplay="1");c.Yh&&(d.tmi="1");"heartbeat"==a&&(d.tpmt=y0(this.j));ra(d,b.k);ag(Je("//www.youtube.com/live_204",d))};f.L=function(){L0.H.L.call(this);O(this.C);this.C=NaN;var a=this.j;Kf(a.B);a.B=NaN};L0.prototype.getDebugInfo=function(){return J0(O0(this,"playback"))};
function T0(a){if(!a.D){a.g.g.A.eventLabel=a.g.j.ca;a.g.g.A.playerStyle=a.g.j.j;a.g.g.ga&&(a.g.g.A.feature="pyv");a.g.g.A.vid=a.g.g.videoId;a.g.g.A.isAd=!("adunit"!=a.g.j.ca&&!a.g.g.ga);var b=a.g.g.A;b&&b.uid&&(q0[b.uid]=b);t:{var c=a.g.g.A.uid;if(!c){b=Hf("CONVERSION_CONFIG_DICT");if(!b)break t;c=b.uid||null;if(!c)break t}i:{b=Hf("CONVERSION_CONFIG_DICT");if(w(c)&&(c=c?24==c.length&&"UC"==c.slice(0,2)?c.substr(2):22==c.length?c:null:null,!b||b.uid!=c)&&(b=q0[c],!b||b.uid!=c))break i;var d;if(b&&
b.baseUrl&&b.uid){var e=b.rmktEnabled,c=b.focEnabled&&(!b.isAd||!1);if(e||c){var g={};if(e){e={utuid:b.uid,type:"view",client_name:"html5"};b.vid&&(e.utvid=b.vid);b.eventLabel&&(e.el=b.eventLabel);b.playerStyle&&(e.ps=b.playerStyle);b.feature&&(e.feature=b.feature);b.ppe&&(e.ppe=b.ppe);b.subscribed&&(e.subscribed=b.subscribed);b.engaged&&(e.engaged=b.engaged);var h=[];for(d in e)h.push(encodeURIComponent(d)+"="+encodeURIComponent(e[d]));d=h.join(";");g.data=d}c&&(g.label="followon_view",g.foc_id=
b.uid,g.r=Math.round(1E4*Math.random()));d=Je(b.baseUrl,g)}else d=null}else d=null;d&&ag(d)}}a.D=!0}};function W0(){this.endTime=this.startTime=-1;this.yk="-";this.playbackRate=1;this.visibilityState=0}W0.prototype.isEmpty=function(){return this.endTime==this.startTime};function X0(a,b,c,d,e,g,h,k){this.g=a;this.j=b;this.A=c;this.B=d;this.k=e;this.C=g;this.F=h;this.D=k||function(){};this.o=-1}function A0(a){var b=window.performance&&window.performance.now?window.performance.now():A();0>a.o&&(a.o=b);return Math.round(b-a.o)/1E3}
function P0(a){var b=a.A();a=a.g;var c={};a.j&&(c.fmt=a.j.id,a.C&&a.C.id!=a.j.id&&(c.afmt=a.C.id));a.ma&&(c.threed=a.Cx);c.plid=a.playbackId;c.ei=a.F;c.list=a.playlistId;c.cpn=a.za;a.videoId&&(c.v=a.videoId);a.uk&&(c.infringe=1);a.zd&&(c.splay=1);a.Wa&&(c.live=a.yb?"dvr":"live");a.kg&&(c.autoplay=1);a.Gp&&(c.sdetail=a.Gp);a.W&&(c.partnerid=a.W);a.wb&&(c.osid=a.wb);ra(b,c);return b}
function w0(a){var b=new W0;b.yk=a.A().cc||"-";var c=a.j;b.playbackRate=c.ub&&c.ub.playbackRate||1;(c=rh("visibilityState",document))&&"visible"!=c&&(b.visibilityState=3);a.j.Ya?b.visibilityState=2:a.j.hs&&(b.visibilityState=1);return b};function Y0(a,b){this.state=a;this.g=b}function ez(a,b){return X(a.state,b)&&!X(a.g,b)?1:!X(a.state,b)&&X(a.g,b)?-1:0};function Z0(a,b,c,d){U.call(this);this.ua=new o0;this.D=c;this.qa=d;this.B=new Jx(y(this.getCurrentTime,this),y(this.uv,this),y(this.getPlayerState,this),y(this.jb,this));T(this,this.B);this.U=NaN;this.J=this.F=null;this.C=a;this.ha=new l0(a,this.qa);this.ka=!1;this.G=this.k=null;this.M=[];this.W=new a_;this.N=new a_;this.Ga=this.ma=!1;this.na=NaN;this.o=new yx;this.Ja=b;this.S=this.Z=null;this.I=NaN;this.V=new iz(this);this.g=new kv;this.j=this.P=null;this.ja=NaN;this.A=null;this.ya=!1;this.ba=0;
this.Ha=null;this.ga=!1}B(Z0,U);function Uw(a){UA()?XA(a.ba):O(a.ba)}f=Z0.prototype;f.L=function(){O(this.ja);Kf(this.na);Tw(this);$0(this);Uw(this);WH(this);zi(this.S,this.V,this.g);this.V=this.J=null;this.ga=!1};
function a1(a,b,c){a.M.length=0;var d=a.W;d.j=!1;d.g=!1;d=a.N;d.j=!1;d.g=!1;a.U=NaN;a.I=NaN;a.P=null;a.ya=!1;a.j&&wx(a.j);b1(a);Tw(a);$0(a);Uw(a);xi(a.g);d=a.B;d.ji=!1;d.ug=!1;Nx(d);d.g.g=[];d.j=[];d.qc();d.A=null;if(2==a.Ja||Vf(a.C.D))b.qp=!0;b.Kd=a.g.Kd;a.g=b;a.g.subscribe("dataupdated",a.kz,a);a.g.subscribe("dataloaded",a.nq,a);a.g.subscribe("dataloaderror",a.Th,a);a.g.subscribe("onStatusFail",a.jz,a);b.cf&&b.cf>b.startSeconds&&(b=b.cf,a.J&&(a.B.vg(a.J),a.J=null),a.J=new Gx(1E3*b,2147483646),a.J.Oa.subscribe("onEnter",
a.Ze,a),a.B.Bi(a.J));Tw(a);a.g.de||(c=new X0(a.g,a.C,c,y(a.Pc,a),y(a.getCurrentTime,a),y(a.hz,a),y(a.qa.xb,a.qa),y(a.iz,a)),a.A=new L0(c));a.ga=!1;c1(a,"newdata");d1(a,new yx)}function Tw(a){if(a.A){var b=a.A;if(!b.da()&&b.k){b.B="paused";var c=Q0(b);c.Fo=!0;c.send();c=b.o;"PL"==c.j&&(c.j="N");G0(c,"vps",[c.j]);c.xg();O(b.A);b.dispose()}xi(a.A);a.A=null}}f.getVideoData=function(){return this.g};f.R=function(){return this.C};function e1(a){return!(!a.g.g||!a.g.g.j.length)}
function f1(a){if(Dv(a.g))return!0;dz(a,"api.invalidparam");return!1}function g1(a,b){a.ma=!!b;f1(a)&&!a.W.j&&(a.W.start(),a.A&&a.A.bf(),a.nq())}
f.nq=function(){if(wv(this.g))wv(this.g),this.W.g=!0,this.M=sb(this.g.G),xv(this.g),e1(this)&&(this.g.yb&&(h1(this,this.g.lengthSeconds),i1(this,!0)),this.g.g.g&&j1(this),vw(this,"i")),c1(this,"dataloaded"),this.N.j&&k1(this);else if(this.g.ja){var a=this.g,b=this.C.experiments.Z;a.ja=!1;var c=a.N,d=vj(c),c=0>kv.k.indexOf(d)?Wf(c):Xf(c),d=y(a.Pz,a),a=y(a.im,a);Hs(new As(c,b),c,d,a);Tt("mrs")}else this.g.uf||(b=CZ(this.C,this.g,this.qa.xb()),Ev(this.g,b,this.C.experiments.qa))};
function l1(a){g1(a);f1(a)&&!X(a.o,128)&&(a.N.j||(a.N.start(),d1(a,Dx(a.o,8))),k1(a))}function k1(a){if(!(a.N.g||!a.W.g||X(a.o,128)||a.M.length||(a.B.ug||a.B.bf(),a.M.length||0<gx(a.B.g,-2147483648).length))){if(a.k){var b=a.k;a.Ga=!!b.M&&!!b.W}a.N.g=!0;a.g.Wa&&m1(a,Infinity,!0);a.A&&(b=a.A,b.g.g.$h&&b.g.g.Dk&&(b.di("connected"),V0(b)));a.publish("playbackready",a)}}f.Ze=function(a){this.pauseVideo();a=0==a?new yx:new yx(14);d1(this,a)};
function n1(a,b,c,d){a.g.j=c;a.g.C=d||c;if(a.A){var e=a.g,g=n0(a.ha,e),e=G(e.g.j,y(g.o,g)),e=new k0(c,b,e?e.id:"");d&&"i"==b&&o1(a,b,d);d=a.A.o;c=A0(d.g);G0(d,"vfs",[e.g.id,e.j,d.P,e.reason],c);d.P=e.g.id;e=d.g.F();0<e.width&&0<e.height&&(e=[Math.round(e.width),Math.round(e.height)],1<window.devicePixelRatio&&e.push(window.devicePixelRatio),G0(d,"view",e,c));G0(d,"vps",[d.j],c);d.xg(c)}a.publish("internalvideoformatchange",a.g,"m"==b)}
function o1(a,b,c){a.g.C=c;if(a.A){var d=a.A.o;c=new k0(c,b,"");var e=A0(d.g);c.g.id!=d.F&&(G0(d,"afs",[c.g.id,d.F,c.reason],e),d.F=c.g.id)}"i"!=b&&a.publish("internalaudioformatchange",a.g,"m"==b)}function dz(a,b,c,d){if(Nb(iy,c))var e=c;else var g=c;d1(a,Bx(a.o,128,{errorCode:b,errorDetail:d,message:g,messageKey:e}));$0(a);p1(a)}function q1(a,b){a.M=a.M.filter(function(a){return b!=a});a.N.j&&k1(a)}f.jb=function(){return X(this.o,8)&&!X(this.o,64)&&!X(this.o,2)};f.getPlayerState=function(){return this.o};
f.getPlayerType=function(){return this.Ja};function r1(a,b){a.j&&WH(a);a.j=b;s1(a)}function WH(a){a.G=null;a.k&&(Q_(a.k),a.k.F=!0);a.j&&(a.A&&a.W.j&&X(a.o,64)&&t1(a),b1(a),a.V.removeAll(),wx(a.j),a.j=null)}
function u1(a){l1(a);X(a.o,64)&&d1(a,Dx(a.o,8));if(a.N.g&&a.j)if(a.g.g){var b;if(a.g.g.g)v1(a),b=a.Ha,a.k.resume();else{$0(a);b=a.g.P.j;var c=a.g,d={};c.J&&(d.ptk=c.J,d.oid=c.vo,d.ptchn=c.uo,d.pltype=c.wo);ra(b.j,d);ra(b.j,{c:a.C.k.c,cver:a.C.k.cver})}a.j.ld!=b?w1(a,b):(Hv(a.g)&&tx(a.j)&&m1(a,Infinity,!0),ux(a.j))}else dz(a,"fmt.noneavailable","YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK")}function ww(a){if(!a.g.g)return[];var b=x1(a);a=$s(a.g.g,b);a.length&&(a=a.concat(["auto"]));return a}
function y1(a){return Xs(Xs(m0(a.ha,a.g),n0(a.ha,a.g)),x1(a))}function x1(a){return a.g.Qk?Us:a.F?a.F.k:e1(a)&&a.g.g.g&&Bs(a.g.k)?Ts:Us}function vw(a,b,c){if(!a.da()&&!X(a.o,128)&&(c&&(a.g.pi=c),e1(a))){"m"==b&&c&&Vs(c)&&(b="a");var d=y1(a);a.g.g.g?"i"!=b&&(c=a.k,c.da()||((d=QZ(c.A,d,b))&&c.publish("videoformatchange",d),T_(c,c.j,TZ(c.A)),Ws(c.A.g)&&"m"==b&&m_(c.j),t_(c.j)&&N_(c,c.j,c.k),Q_(c))):(a.g.P=iv(a.g.I,d),n1(a,b,a.g.P.getInfo()));a.jb()&&u1(a)}}
function z1(a){var b=a.getVideoData().C;if(!b)return a.getVideoData().S;var c=G(a.g.g?a.g.g.audioTracks:[],function(a){return a.id==b.id});return c?c:a.getVideoData().S}
function j1(a){Ls(a.g.k,{c:a.C.k.c,cver:a.C.k.cver});var b=a.C,c=new KG;if(tt()||b.experiments.ua)c.J=!0;tt()&&(c.F=-1);0<=b.S&&(c.liveChunkReadahead=b.S);b.experiments.ha&&(c.G=300);b.experiments.N&&(c.D=45E3,c.M=12E3);kH(b)&&(c.B=8388608,c.A=524288,c.g=2097152,c.C=1048576,c.I=1.5,c.N=15,c.k=!0,c.O=!1,c.G=0,c.o=dr.hd720,rt()&&(c.pa=44E4),st("(ps4; leanback shell)")&&(c.pa=562500));$h&&st("crkey")&&(c.B=20971520,c.A=1572864,c.pa=812500,c.g=20971520,c.j=1E3);var d=b.og||new J(window.screen.width,window.screen.height),
e=window.devicePixelRatio||1;2560<=d.width*e&&1440<=d.height*e&&(c.B=52428800,c.A=5242880,c.g=20971520,c.C=8388608,c.o=dr.auto);b.experiments.ja&&(c.pa=NaN);b.experiments.na&&(c.g=1.5*c.C);a.k=new D_(a.Z,c,a.g.k,a.g.g);a.k.subscribe("initsegment",a.Lv,a);a.k.subscribe("videoformatchange",a.Nv,a);a.k.subscribe("audioformatchange",a.Mv,a);a.k.subscribe("error",a.Th,a);a.k.subscribe("seekrequired",a.Ov,a);b=H(a.M,"spacecast")||a.ma;a.k.initialize(a.g.startSeconds,y1(a),b);a.g.probeUrl&&(a.k.P=a.g.probeUrl);
if(a.M.length||a.ma)a.k.F=!0;a.ma&&t1(a)}function t1(a){var b=new Y0(new yx(4),a.o);U0(a.A,b)}function $0(a){a.k&&(a.k.dispose(),a.k=null);a.G&&(a.G.dispose(),a.G=null)}
function v1(a){if(!a.G){a.k?a.k.seek(a.getCurrentTime()):j1(a);a.G=new Iu(a.j,a.g.lengthSeconds,a.g.g.j[0].mimeType,a.g.g.g[0].mimeType);try{var b=Ku(a.G)}catch(c){c.message="window.URL object overwritten by external code";window.setTimeout(function(){throw c;},0);dz(a,"html5.missingapi","YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK");return}a.Ha=new Qu(b,!0);Ju(a.G,y(a.k.EA,a.k))}}
f.Lv=function(a){if(this.F){var b=this.F;if("com.microsoft.playready"==b.g.g){for(var c=new Uint8Array(0),d=new DataView(a.buffer,a.byteOffset,a.length),e=0;e<a.length-8;){var g=d.getUint32(e);if(1>g)break;var h=d.getUint32(e+4);if(1836019574==h)e+=8;else{if(1886614376==h){var h=a.subarray(e,e+g),k=new Uint8Array(c.length+h.length);k.set(c);k.set(h,c.length);c=k}e+=g}}a=c;0!=a.length&&h0(b,new f0(a),!1)}}};f.Nv=function(a){n1(this,a.reason,a.video.info,a.g.info);var b=Av(this.g);b&&b.A(a.video)};
f.Mv=function(a){o1(this,a.reason,a.g.info)};f.Th=function(a){if(a.j)dz(this,a.errorCode,void 0,a.g);else{var b;if(b=this.C.experiments.B&&("net.badstatus"==a.errorCode||"manifest.net"==a.errorCode))b=this.g,b=A()-b.lx>kv.A;if(this.A&&(this.A.onError(a.errorCode,a.g),b))this.A.onError("staleconfig");b&&this.publish("signatureexpired")}};f.pauseVideo=function(a){X(this.o,64)&&!a&&d1(this,Ex(this.o,8));this.j&&(a&&!X(this.o,128)&&d1(this,Dx(this.o,256)),this.j.pauseVideo())};
function p1(a){a.pauseVideo(!0);a.j&&(b1(a),a.G&&(a.G.dispose(),a.G=null),a.g&&(a.g.startSeconds=a.getCurrentTime()),a.I=NaN,vx(a.j),X(a.o,128)||d1(a,Bx(a.o)))}function m1(a,b,c,d){if(a.j&&a.N.g){b=Ic(b||0,Cv(a.g),A1(a));b>=A1(a)?i1(a,!0):i1(a,!1);a.g.startSeconds=b;a.I=b;var e=a.ua;e.g=b;e.j=!0;c?a.Ei():(B1(a),d&&(a.S||(a.S=new Tq(a.Ei,d,a)),a.S.start()),C1(a,!0));a.J&&b>a.g.cf&&(a.B.vg(a.J),a.J=null);b<a.Pc()&&d1(a,Ex(a.o,2));a.publish("seekto",a,b)}else a.g.startSeconds=b||0}
function B1(a){X(a.o,32)||(d1(a,Dx(a.o,32)),X(a.o,8)&&a.pauseVideo(!0),a.publish("beginseeking",a))}f.Ei=function(){if(!isNaN(this.I)&&this.j){var a=this.Pc();!this.g.Wa&&this.I>=Math.floor(a)?(this.I=a,this.publish("endseeking",this),this.pauseVideo(!0),this.Ze()):(this.k&&this.k.seek(this.I),sx(this.j,this.I))}this.S&&(this.S.dispose(),this.S=null);X(this.o,32)&&(d1(this,Dx(Ex(this.o,32),16)),this.publish("endseeking",this))};
f.getCurrentTime=function(){if(!isNaN(this.I))return this.I;var a=0;this.j&&1<=this.j.readyState?a=this.j.getCurrentTime():this.g&&(a=this.g.Jh||this.g.startSeconds||0);return a};f.Pc=function(){return Hv(this.g)?Infinity:this.g&&this.g.lengthSeconds?this.g.lengthSeconds:A1(this)?A1(this):0};
f.hz=function(){var a=new p0;if(this.Z&&this.k){var b=this.Z;a.k=b.A;a.A=b.B;a.g=CJ(b);b=this.k;b.g&&!Mu(b.g)&&(a.j=nx(b.g.j.buffered,b.o),a.o=nx(b.g.g.buffered,b.o));a.g=MZ(b.G);CJ(b.D);AJ(b.D);BJ(b.D)}else this.j&&(a.j=nx(this.j.buffered,this.getCurrentTime()));return a};function D1(a){if(a.j)if(Hv(a.g))a=1;else if(Iv(a.g))if(a.ka)a=0;else{var b=a.j;a=(0<mx(b.buffered)&&b.duration?b.buffered.end(b.buffered.length-1):0)/a.Pc()}else a=xw(a.j);else a=0;return a}
Z0.prototype.getDebugInfo=function(a){var b={};a&&(this.A&&ra(b,this.A.getDebugInfo()),this.j&&ra(b,this.j.getDebugInfo()),this.k&&ra(b,this.k.getDebugInfo()),X(this.o,128)&&(b.debug_error=this.o.g),(this.M.length||0<gx(this.B.g,-2147483648).length)&&(b.preroll="1"));b.debug_videoId=this.g.videoId;return b};f=Z0.prototype;f.kz=function(){if(this.F){var a=this.F,b=this.g.B;a.o=b;a.publish("oauthtoken",b)}c1(this)};f.jz=function(a){dz(this,"auth",unescape(a.reason),a.errordetail||"sec."+a.errorcode)};
function c1(a,b){a.publish("internalvideodatachange",b||"dataupdated",a,a.g)}function s1(a){E("loadstart loadeddata loadedmetadata play playing pause ended suspend progress seeking seeked timeupdate durationchange ratechange error waiting abort".split(" "),function(a){this.V.listen(this.j,a,this.OE)},a)}
f.OE=function(a){var b=a.target;if(b==this.j&&b.currentSrc){switch(a.type){case "error":if(this.C.ok&&b.error&&b.error.errorCode==b.error.MEDIA_ERR_NETWORK){setTimeout(y(function(){this.j&&(this.g.P&&this.j.load(),u1(this))},this),500);if(this.A)this.A.onError("progressive.net");return}break;case "durationchange":if(!this.g.yb||this.g.k&&!this.g.k.isLive)b=b.duration||0,(!this.G||isFinite(b)&&0<b)&&1!=b&&h1(this,b);break;case "ratechange":this.k&&(this.k.G.k=Math.max(1,this.j.playbackRate));this.B.bf();
break;case "ended":d1(this,Bx(this.o,4));this.zk();break;case "loadedmetadata":this.g.startSeconds&&(this.j.currentTime=this.g.startSeconds),this.C.vb&&this.g.startSeconds&&(this.U=this.g.startSeconds,this.pauseVideo(!0));case "loadstart":Kf(this.na);this.Ok()||(this.na=Jf(y(this.Ok,this),100));break;case "progress":this.U&&this.j.seekable.length&&this.j.seekable.end(0)>this.U&&(this.j.currentTime=this.U,this.U=NaN,this.wa=this.V.listen(this.j,"canplay",this.Bw));case "suspend":C1(this);this.publish("onLoadProgress",
this,D1(this));break;case "seeked":E1(this);break;case "seeking":this.k&&this.k.seek(b.currentTime);break;case "playing":Tt("plev",void 0,this.D.g);break;case "timeupdate":this.ya=!0,this.Ok(),E1(this),C1(this),this.publish("onVideoProgress",this,b.getCurrentTime())}this.publish("videoelementevent",a);a=zx(this.o,a,this.ua,this.C.experiments.Ba);d1(this,a)}};
f.Ok=function(){var a=this.j;a&&this.ya&&!this.g.Fk&&!Xt("vfp",this.D.g)&&2<=a.readyState&&!a.ended&&0<mx(a.buffered)&&Tt("vfp",void 0,this.D.g);if((a=this.j)&&!this.g.Fk&&0<(a.duration||0)&&(!Xt("pbr",this.D.g)&&tx(a)&&2<=a.readyState&&0<mx(a.buffered)&&oZ(this.D,"pbr"),0<a.getCurrentTime())){Kf(this.na);O(this.ja);this.g.Fk=!0;F1(this);if(this.A){a=this.A;if(!a.k){var b=O0(a,"playback");a.G=[10+a.g.g.Ih,10,10,40+a.g.g.hk-a.g.g.Ih,40];var c=a.j;Kf(c.B);c.B=NaN;c.B=Jf(y(c.update,c),100);c.A=A0(c.j);
c.o=w0(c.j);b.mg=M0(a,!0);b.cw=!0;b.send();!a.g.j.nc||a.g.j.Xh||a.k||(b=a.g.j,c=a.g.g,b={noflv:"1",html5:"1",video_id:c.videoId,cpn:c.za,plid:c.playbackId,ei:c.F,referrer:FZ(b),eurl:b.C,framer:b.N,feature:b.O,fmt:c.j?c.j.id:0,ptk:c.J,skl:c.zo,access_token:c.B,ucid:c.xo},ra(b,R0(a)),delete b.fexp,b=Je(a.g.j.qb+"user_watch",b),ag(b));a.g.g.J&&(b=a.g.j,c=a.g.g,b=Je(b.qb+"ptracking",{html5:"1",video_id:c.videoId,cpn:c.za,plid:c.playbackId,ei:c.F,ptk:c.J,oid:c.vo,ptchn:c.uo,pltype:c.wo,content_v:b.J}),
ag(b));if(a.g.g.yo&&a.g.j.fe&&!a.k){var b=a.g.j,c=a.g.g,d={noflv:1,video_id:c.videoId,cpn:c.za,el:b.ca,ps:b.j,referrer:FZ(b),eurl:b.C,framer:b.N,fmt:c.j?c.j.id:0,ptk:c.J,subscribed:c.subscribed,t:c.Kv};b.autoplay&&(d.autoplay="1");c.zd&&(d.splay="1");0<c.startSeconds&&(d.start=1E3*c.startSeconds);c.Yh&&(d.tmi="1");b=Je(a.g.j.qb+"get_video",d);ag(b)}a.g.g.$h&&(a.di("playback"),a.A||V0(a));a.g.g.be||S0(a);a.k=!0;a=a.j;a.g=a.j.k();a.A=A0(a.j);.5<a.g-a.k&&(a.k=a.g)}N(y(this.zk,this),4500)}this.publish("playbackstarted");
this.k&&(this.k.ja=!0);UA()&&YA();return!0}return!1};
function F1(a){var b=A(),c=a.getCurrentTime(),d=a.g;if(!Xt("pbs",a.D.g)){var e=1E3*(c-d.startSeconds);0>e&&(e=0);oZ(a.D,"pbs",b-e);Qt.measure&&Qt.getEntriesByName&&(Qt.getEntriesByName("mark_navigation_requested")[0]?Qt.measure("measure_above_the_fold","mark_navigation_requested"):Qt.measure("measure_above_the_fold"))}d.videoId&&a.D.info("docid",d.videoId);d.F&&a.D.info("ei",d.F);d.za&&a.D.info("cpn",d.za);0<d.startSeconds&&a.D.info("start",d.startSeconds.toString());a.j&&tx(a.j)&&a.D.info("paused",
1);d.j?a.D.info("fmt",d.j.id):a.D.info("fmt","-1");d.Ja&&a.D.info("yt_pre",a.Ga?"2":"1");a.C.Ya&&a.D.info("yt_fs","1");a.D.info("tds",Math.round(D1(a)*a.Pc()).toString());a.D.info("cmt",c.toFixed(3));if(a.k){b=a.k;window&&window.performance&&window.performance.getEntriesByName&&(c=window.performance.getEntriesByName(b.W),c.length&&(c=c[0],H_(b,"vri",c.fetchStart),H_(b,"vdns",c.domainLookupEnd),H_(b,"vreq",c.requestStart),H_(b,"fvb",c.responseStart),H_(b,"vrc",c.responseEnd)),c=window.performance.getEntriesByName(b.M),
c.length&&(c=c[0],H_(b,"ari",c.fetchStart),H_(b,"adns",c.domainLookupEnd),H_(b,"areq",c.requestStart),H_(b,"avb",c.responseStart),H_(b,"arc",c.responseEnd)));var b=b.ha,g;for(g in b)Tt(g,b[g],a.D.g)}}f.Bw=function(){this.wa&&(this.V.Da(this.wa),this.wa=void 0,ux(this.j))};
function C1(a,b){if(a.j&&a.g){var c=a.getCurrentTime();if(c<Cv(a.g))m1(a,A1(a),!0);else{if(a.k){var d=a.k;if(d.g){d.resume();if(d.J&&!Mu(d.g)){var e=d.o<=c&&c<d.o+10,g=0<=kx(d.g.g.buffered,d.o+D_.g)&&0<=kx(d.g.j.buffered,d.o+D_.g);e&&g&&(d.J=!1)}d.J||(d.o=c);E_(d)}}Iv(a.g)&&c>a.Pc()&&(d=a.Pc(),0==d&&(d=c),h1(a,1.2*d));5<c&&(a.g.startSeconds=c);(d=UA())?XA(a.ba):O(a.ba);tx(a.j)||(e=y(a.Hy,a),a.ba=a.j.played&&0==a.j.played.length?d?VA(e,100):N(e,100):d?VA(e,500):N(e,500));a.g.Jh=c;!b&&a.jb()&&a.A&&
(d=a.A,d.j.update(),d.g.g.lengthSeconds&&d.g.g.be&&!d.M&&y0(d.j)>=d.g.g.be&&(d.k&&d.g.g.be&&(e=O0(d,"delayplay"),e.Iy=!0,e.send(),d.M=!0),S0(d)),e=d.N,!e.o&&e.g.fe&&!e.g.Xh&&e.j.lengthSeconds&&y0(e.A)>=e.j.Hp&&d.N.send());a.publish("progresssync",a,b);a.g.Jy=c}}}f.Hy=function(){if(this.j){if(X(this.o,8)&&Cx(this.ua,this.getCurrentTime(),Date.now(),nx(this.j.buffered,this.j.getCurrentTime()))){var a=this.Pc();a&&1>Math.abs(a-this.j.currentTime)?this.Ze():d1(this,Dx(this.o,1))}C1(this)}};
function d1(a,b){var c=a.o;if(b.j!=c.j||b.g!=c.g){c=new Y0(b,a.o);a.o=b;0>ez(c,8)&&(O(a.ja),i1(a,!1));0<ez(c,32)&&i1(a,!1);Iv(a.g)&&X(c.state,2)&&(h1(a,a.getCurrentTime()),C1(a,!0));a.A&&U0(a.A,c);var d=a.B;if(d.ug&&!d.ji)if(Nx(d),X(c.state,2)){d.A=null;for(var e=[],g=0;g<d.j.length;g++){var h=d.j[g];h.active&&2147483647>h.end&&e.push(h)}g=gx(d.g,2147483646);g=g.concat(hx(d.g,2147483646));e=Mx(d,e).concat(Lx(d,g));Ox(d,e)}else X(c.state,16)?(d.k=Kx(d),d.o.stop(),d.o.start(),d.qc()):(d.o.stop(),X(c.g,
16)?(d.k=Kx(d),null!=ix(d.g,Math.max(d.k-2E3,0))&&(d.Dg=vn(y(d.qc,d)))):d.qc());a.publish("statechange",c)}}f.iz=function(){this.g.Wa||this.publish("connectionissue")};f.Ov=function(){sx(this.j,Math.max(0,this.j.currentTime+.1))};function E1(a){X(a.o,2)||X(a.o,32)||(a.I=NaN)}function i1(a,b){a.g.yb&&a.ka!=b&&(a.ka=b,a.publish("liveviewshift",b))}function w1(a,b){G1(a,b);a.C.Xa?N(y(function(){ux(this.j)},a),0):ux(a.j)}
function G1(a,b){Tt("vta",void 0,a.D.g);rx(a.j,b);a.G&&!b.g&&(a.G=null);if(zv(a.g)){var c=zv(a.g);if(c&&!a.F&&a.j){var d=a.g.j.mimeType;if(c=Au(a.j,d,c)){a.F=new g0(a.j,c);a.F.subscribe("newsession",a.Uz,a);a.F.subscribe("licenseerror",a.Qz,a);a.F.subscribe("qualitychange",a.Rz,a);a.F.subscribe("heartbeatparams",a.Tz,a);var e=a.F,g=a.g.B;e.o=g;e.publish("oauthtoken",g);T(a,a.F);a.j.canPlayType(d,c.g)}else dz(a,"fmt.unplayable","YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK")}}a.G&&$A();O(a.ja);a.ja=N(y(a.Sz,
a),15E3)}function b1(a){a.F&&(a.F.dispose(),a.F=null)}f.Uz=function(a){var b={};ra(b,this.C.k);b.cpn=this.g.za;this.g.D&&(b.vvt=this.g.D);this.C.Va&&(b.authuser=this.C.Va);this.C.pageId&&(b.pageid=this.C.pageId);bc(a.A,b);Yw(a,a.B);this.publish("newlicensesession",a)};f.Qz=function(a,b,c){dz(this,a,n(c)?c:"YTP_ERROR_LICENSE",b)};f.Rz=function(){vw(this,"r");c1(this)};f.Tz=function(a){this.publish("heartbeatparams",a)};f.Sz=function(){if(this.A)this.A.onError("qoe.start15s");this.publish("loadsofttimeout")};
function h1(a,b){a.g.lengthSeconds!=b&&(a.g.lengthSeconds=b,c1(a))}f.zk=function(){if(!this.ga){var a=new j0(this.g),b;"c1a"in a.k?(b=t("yt.abuse.botguardInitialized"),b=!(b&&b())):b=!1;if(b)N(y(this.zk,this),4500);else{var c;if(a.g&&a.g.ba){b=[a.g.ba];for(c in a.j)if(a.k[c]&&a.j[c]){var d=a.j[c](a.k);d&&b.push(d)}c=b.join("&")}else c=null;c&&this.A&&(a=this.A,a.J||(b=O0(a,"atr"),b.C=c,b.send(),a.J=!0),this.ga=!0)}}};
function A1(a){if(!a.j)return 0;if(a.k){var b=R_(a.k);return Math.max(b,Cv(a.g))}a=a.j;return(1>a.seekable.length?NaN:a.seekable.end(a.seekable.length-1))||0}f.uv=function(){return this.j?this.j.playbackRate:1};var H1={PJ:0,OJ:-1,lI:-2};function I1(a){this.g=a}f=I1.prototype;f.Rk=function(){return wP(this.g)};f.Sk=function(){return this.g.A};f.xf=function(){return this.g.A};f.fj=function(){var a=this.g.k;return null!=a?a:new ZO};f.wg=function(){var a=this.g;null!=a.g&&a.g.show()};f.oi=function(){};f.en=function(){return this.g.B};f.nm=function(){return!1};f.Ti=function(){return this.g.D};f.hide=function(){};function SW(a,b){lm.call(this,"adsManagerLoaded");this.k=a;this.o=b}B(SW,lm);function J1(a,b,c,d){a.k.Rc(new I1(b),c,d);return a.k};function K1(a){return a?-1!=a.toString().search(/(?:true|1)/i):!1}function L1(a,b){if(a){var c="getErrorCode"in a?a.getErrorCode():null;c?b.error_code=c:(c=("getMessage"in a&&ka(a.getMessage)?a.getMessage():a.message)||"",50<c.length&&(c=c.substring(0,47)+"..."),b.error_message=c)}}function M1(a,b){if(a){var c=fT(a);if(c){var d=gT(a)||[];b.ad_id=rb(d,c).join(",");if(c=$S(a))d=iT(a)||[],b.ad_sys=rb(d,c).join(",");-1!=uT(a)&&0!=uT(a)&&7>=uT(a)?b.bumper=1:wT(a)?b.survey=1:XS(a)&&(b.skip=1)}}}
function N1(a,b){if(a[b])return K1(a[b]);var c=b.toLowerCase(),d;for(d in a)if(d&&d.toLowerCase()==c)return K1(a[d]);return!1};function O1(a,b,c,d){this.o=a;this.A=b;this.g=c;this.B=d}O1.prototype.k="";O1.prototype.j="";function P1(a){var b={};b.l_ns=a.A;b.l_state=a.B;b.sst=a.o;b.sidx=0;a.k&&(b.at=a.k);a.j&&(b.ad_id=a.j);return b};var Q1=!1;function R1(){window.google_ad_output="html";window.google_ad_height="250";window.google_ad_format="300x250_as";window.google_container_id="google_companion_ad_div"}function S1(){var a=t("window.google_show_companion_ad");ka(a)?a():Q1=!0}function T1(){var a=t("yt.www.watch.ads.setCompanion");a&&a()}function U1(a){var b=t("yt.www.watch.ads.showForcedMpu");b&&b(a)}Gi("showCompanionAdLoaded",function(){Q1&&(S1(),Q1=!1)});function V1(a,b,c,d,e,g,h,k){this.g=a;this.C=b;this.k=c;this.A=d;this.o=e;this.B=g;this.j=h;this.D=k}V1.prototype.clone=function(){return new V1(this.g,this.C,this.k,this.A,this.o,this.B,this.j,this.D)};V1.prototype.equals=function(a){return this.g==a.g&&this.C==a.C&&this.k==a.k&&this.A==a.A&&this.o==a.o&&this.B==a.B&&this.j==a.j&&this.D==a.D};function W1(a,b){if(0==b)return a.g;if(1==b)return a.j;var c=Jc(a.g,a.k,b),d=Jc(a.k,a.o,b),e=Jc(a.o,a.j,b),c=Jc(c,d,b),d=Jc(d,e,b);return Jc(c,d,b)}
function X1(a,b){var c=(b-a.g)/(a.j-a.g);if(0>=c)return 0;if(1<=c)return 1;for(var d=0,e=1,g=0;8>g;g++){var h=W1(a,c),k=(W1(a,c+1E-6)-h)/1E-6;if(1E-6>Math.abs(h-b))return c;if(1E-6>Math.abs(k))break;else h<b?d=c:e=c,c-=(h-b)/k}for(g=0;1E-6<Math.abs(h-b)&&8>g;g++)h<b?(d=c,c=(c+e)/2):(e=c,c=(c+d)/2),h=W1(a,c);return c};var Y1=new function(){this.g=new V1(0,0,0,0,.58,1,1,1)};function Z1(a,b){this.j=a;this.g=b}function $1(a){return a.g-a.j}function a2(a,b){return a.j+b*$1(a)}function b2(a,b){return $1(a)?Ic((b-a.j)/$1(a),0,1):Infinity};function c2(a,b,c,d){S.call(this);d?P(a.K(),b):a.hide();this.j=a;this.o=b;this.B=c;this.g=null;this.A=!1;this.k=new Tq(this.Tp,0,this);T(this,this.k)}B(c2,S);f=c2.prototype;f.show=function(a,b){this.A=!!a;1!=this.g&&2!=this.g&&(4==this.g||3==this.g?(this.j.show(),P(this.j.K(),this.o),this.g=null,this.k.stop()):(this.g=1,b?this.k.start(b):this.Tp()))};f.hide=function(){3!=this.g&&(1==this.g||2==this.g?(this.j.hide(),this.g=null,this.k.stop()):(fh(this.j.K(),this.o),this.g=3,this.k.start(this.B)))};
f.Tp=function(){switch(this.g){case 1:this.j.show();this.g=2;this.k.start(10);break;case 2:P(this.j.K(),this.o);this.A?(this.g=3,this.k.start(this.B)):this.g=null;break;case 3:this.j.hide();fh(this.j.K(),this.o);this.g=4;this.k.start(0);break;case 4:this.g=null}};f.stop=function(){this.g=null;this.k.stop()};f.L=function(){this.j.da()||fh(this.j.K(),this.o);c2.H.L.call(this)};function d2(a,b,c,d){var e=Math.min(c/(b.iu/b.Cb),d/(b.hu/b.rows)),g=b.iu*e,e=b.hu*e,g=Math.floor(g/b.Cb)*b.Cb,e=Math.floor(e/b.rows)*b.rows,h=g/b.Cb,k=e/b.rows,l=Math.floor((c-h)/2);c=Math.ceil((c-h)/2);var p=Math.floor((d-k)/2);d=b.jF*h*-1;var r=b.row*k*-1;a=a.style;a.width=h+"px";a.height=k+"px";h=p+"px";a.marginTop=h;a.marginBottom=h;a.marginLeft=l+"px";a.marginRight=c+"px";a.backgroundImage="url("+b.url+")";a.backgroundPosition=d+"px "+r+"px";a.backgroundSize=g+"px "+e+"px"};function e2(){this.j=this.g=null}function Z(a,b,c){return Nf(b,c,void 0)}f=e2.prototype;f.nf=function(a,b){this.g&&this.g.nf(a,b)};f.Ue=function(a,b,c){this.g&&this.g.Ue(a,b,c)};f.tn=function(a){this.g&&this.g.tn(a)};f.xb=function(){return this.j.xb()};f.ab=function(){return this.j.ab()};function f2(a,b){U.call(this);this.o=!!b;this.j=a;this.g=new iz(this);this.k=this.A=null;Uc&&(a.setAttribute("draggable","true"),vg(a,"-webkit-user-drag","none"));g2(this)}B(f2,U);function g2(a){a.k=null;a.A=null;a.g.listen(a.j,h2("over"),a.tA);a.g.listen(a.j,"touchstart",a.uA)}f=f2.prototype;
f.tA=function(a){this.g.removeAll();this.g.listen(this.j,h2("move"),this.Wr);this.g.listen(this.j,h2("out"),this.Xr);this.o&&this.g.listen(this.j,h2("down"),this.Vr);this.publish("hoverstart",wh(a),xh(a),a.target);this.publish("hovermove",wh(a),xh(a),a.target)};f.Wr=function(a){this.k&&wh(this.k)==wh(a)&&xh(this.k)==xh(a)&&this.k.relatedTarget==a.target||this.publish("hovermove",wh(a),xh(a),a.target);this.k=null};
f.Xr=function(a){a.relatedTarget&&Sd(this.j,a.relatedTarget)?(this.k=a,this.publish("hovermove",wh(a),xh(a),a.relatedTarget)):(this.g.removeAll(),g2(this),this.publish("hoverend",wh(a),xh(a),a.relatedTarget))};
f.Vr=function(a){ia(a.button)&&0!=a.button||(this.g.removeAll(),this.g.listen(document,h2("move"),this.uD),this.g.listen(document,h2("up"),this.vD),Uc?this.g.listen(this.j,"dragstart",this.tD):a.preventDefault(),this.publish("dragstart",wh(a),xh(a),a.target),this.publish("dragmove",wh(a),xh(a),a.target))};f.tD=function(a){a.preventDefault()};f.uD=function(a){var b=a.target==document?null:a.target;this.publish("hovermove",wh(a),xh(a),b);this.publish("dragmove",wh(a),xh(a),b)};
f.vD=function(a){this.g.removeAll();a.target&&Sd(this.j,a.target)?(this.g.listen(this.j,h2("move"),this.Wr),this.g.listen(this.j,h2("out"),this.Xr),this.g.listen(this.j,h2("down"),this.Vr),this.publish("dragend",wh(a),xh(a),a.target)):(g2(this),this.publish("dragend",wh(a),xh(a),a.target),this.publish("hoverend",wh(a),xh(a),a.target))};
f.uA=function(a){var b=a.changedTouches[0];b&&(this.g.removeAll(),this.g.listen(this.j,"touchmove",this.zA),this.g.listen(this.j,"touchend",this.or),this.g.listen(this.j,"touchcancel",this.or),this.A=b.identifier,this.publish("hoverstart",b.pageX,b.pageY,a.target),this.publish("hovermove",b.pageX,b.pageY,a.target),this.o&&(this.publish("dragstart",b.pageX,b.pageY,a.target),this.publish("dragmove",b.pageX,b.pageY,a.target)))};
f.zA=function(a){var b=i2(this,a);b&&(a.preventDefault(),this.publish("hovermove",b.pageX,b.pageY,a.target),this.o&&this.publish("dragmove",b.pageX,b.pageY,a.target))};f.or=function(a){var b=i2(this,a);b&&(a.preventDefault(),this.g.removeAll(),g2(this),this.o&&this.publish("dragend",b.pageX,b.pageY,a.target),this.publish("hoverend",b.pageX,b.pageY,a.target))};function i2(a,b){for(var c=0;c<b.changedTouches.length;c++){var d=b.changedTouches[c];if(d.identifier==a.A)return d}return null}
function h2(a){return window.navigator.msPointerEnabled?"MSPointer"+a.charAt(0).toUpperCase()+a.substr(1):"mouse"+a}f.L=function(){this.g.removeAll();f2.H.L.call(this)};function j2(a,b,c,d){this.width=b;this.j=c;this.A=d;this.g=b-c-d;this.o=Ic(a-c,0,this.g);this.position=this.o+c;this.k=this.o/this.g};function k2(){Y.call(this,["div","ytp-progress-tooltip",["div","ytp-progress-tooltip-thumbnail-container",["div","ytp-progress-tooltip-thumbnail"]],["div","ytp-progress-tooltip-text-container",["div","ytp-progress-tooltip-text","{{text}}"]],["div","ytp-progress-tooltip-timestamp-container",["div","ytp-progress-tooltip-timestamp","{{timestamp}}"]],["div","ytp-progress-tooltip-arrow"]]);this.k=this.template.g["ytp-progress-tooltip-arrow"];this.g=-1;this.ja="";this.j=new Z1(0,0);this.hide()}B(k2,Y);
f=k2.prototype;f.Mi=!1;f.xe=null;f.Lg=null;f.disable=function(){this.Mi=!0};f.show=function(){this.Mi||k2.H.show.call(this)};function l2(a){fh(a.K(),"with-thumbnail");a.xe=null;a.Lg=null;a.template.g["ytp-progress-tooltip-thumbnail"].removeAttribute("style")}f.Sy=function(a,b){a<=this.g&&this.g<=b&&m2(this)};function m2(a){var b=su(a.Lg,a.g,108);d2(a.template.g["ytp-progress-tooltip-thumbnail"],b,108,60)}f.L=function(){this.k=this.Lg=this.xe=null;k2.H.L.call(this)};function n2(a,b){var c;c=a.xb().width;var d=["div","ytp-progress-bar-container",["div",["html5-progress-bar","ytp-force-transform"],{tabindex:6250,role:"slider","aria-label":Nf("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-unloaded-progress"],["div","ytp-play-progress"],["div","ytp-load-progress"],["div","ytp-spacecast-load-progress"],
["div","ytp-hover-progress"],["div","ytp-clip-start-exclude"],["div","ytp-clip-end-exclude"],["div","html5-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","html5-clip-marker","yt-uix-tooltip"],{title:Nf("YTP_TOOLTIP_CLIP_MARKER")}],["div",["ytp-clip-end","html5-clip-marker","yt-uix-tooltip"],
{title:Nf("YTP_TOOLTIP_CLIP_MARKER")}]];GH.call(this,d);this.A=c;this.C=1;this.M=this.S=this.o=this.Ja=this.J=0;this.ga=this.template.g["html5-ad-progress-list"];this.vb=this.template.g["ytp-marker-progress-list"];this.Ha=this.template.g["ytp-marker-crenellation-list"];this.I={};this.P={};this.O=Infinity;this.Z=this.template.g["ytp-clip-end"];this.ka=new f2(this.Z,!0);T(this,this.ka);this.ka.subscribe("hoverstart",this.Co,this);this.ka.subscribe("hoverend",this.Bo,this);KA(this,this.Z,"click",this.rk);
this.ha=this.template.g["ytp-clip-end-exclude"];this.Ga=this.template.g["ytp-clip-start-exclude"];this.N=0;this.ba=this.template.g["ytp-clip-start"];this.ma=new f2(this.ba,!0);T(this,this.ma);this.ma.subscribe("hoverstart",this.Co,this);this.ma.subscribe("hoverend",this.Bo,this);KA(this,this.ba,"click",this.rk);this.wa=this.template.g["ytp-unloaded-progress"];this.ua=this.template.g["ytp-load-progress"];this.G=0;this.ya=this.template.g["ytp-play-progress"];this.B=0;this.F=this.template.g["html5-progress-bar"];
this.j=this.k=null;this.U=new Y(["div","html5-scrubber-button"]);T(this,this.U);this.U.Y(this.F);this.wb=this.template.g["ytp-scrubber-pull-indicator"];this.Xa=0;this.na=!1;this.qa=new I;this.g=new Z1(0,0);this.ib=!1;this.V=b;o2(this)}B(n2,GH);f=n2.prototype;f.Ny=function(){this.j&&this.j.show()};
f.Py=function(a,b,c){var d=Gg(this.K()),e=p2(this).g,g=c?c.getAttribute("data-tooltip"):void 0;g&&(a=b2(this.g,Number(c.getAttribute("data-position")))*e+Gg(this.F).x);this.qa.x=a-d.x;this.qa.y=b-d.y;b=this.ib?this.g.g:0;d=p2(this);this.j&&(a=this.j,a.Mi||(c=50,a.xe?(c=108,g&&(c*=2)):g&&(c=108),a.K().style.padding="2px",a.K().style.width=c+"px",e=c/2+2,e=(new j2(d.position,d.width,e,e)).position-e,a.K().style.left=e+"px",a.k.style.left=Ic(d.position,0,d.width)-e-5+"px",d=a2(a.j,d.k),a.ta(Qy(d-b),
"timestamp"),a.xe&&(b=ft(a.xe,c),b=a.xe.g[b].Ai(d),0<b&&b!=a.g&&(a.g=b,m2(a))),g?(P(a.K(),"with-text"),a.ta(g,"text")):fh(a.K(),"with-text")))};f.Oy=function(){this.j&&this.j.hide()};f.My=function(a,b,c){a=q2(this);this.Xa=a.j-p2(this).k*(a.j+a.A);this.j&&this.j.hide();this.o&&(Kf(this.o),this.o=0);this.Ja=b;this.na=!0;this.publish("beginseeking",parseFloat(c.getAttribute("data-position")))};
f.Qy=function(){this.S=0;fh(this.K(),"ytp-pull-ui");fh(this.K(),"ytp-pulling");if(0<this.J){var a=A(),b=this.J,c=p2(this).position;this.o&&Kf(this.o);this.o=IA(y(this.bq,this,a,b,c),0)}this.j&&this.j.show();this.na=!1;this.publish("endseeking")};
f.bq=function(a,b,c){var d,e=(A()-a)/200;d=Y1.g;e=X1(d,e);if(0==e)d=d.C;else if(1==e)d=d.D;else{var g=Jc(d.C,d.A,e),h=Jc(d.A,d.B,e);d=Jc(d.B,d.D,e);g=Jc(g,h,e);h=Jc(h,d,e);d=Jc(g,h,e)}e=c+d*(this.B*this.A-c);if(0>d||1<d)d=1;r2(this,(1-d)*b,e,this.B);this.o=1>d?IA(y(this.bq,this,a,b,c),0):0};function r2(a,b,c,d){b=Ic(b,0,40);a.J=b;var e=a.C,g=Math.max($1(a.g)/a.A,1);a.C=b/40*(g-1)+1;b=a.A*a.C;a.M=Ic(d*b-c,0,b-a.A);e!=a.C&&o2(a)}
f.Ry=function(a,b){var c=!1,d=!1,e=p2(this);3600<=$1(this.g)&&(r2(this,this.Ja-b-10,e.position,e.k),d=!0,c=4<this.J,e=p2(this));Q(this.K(),"ytp-pull-ui",d);c&&P(this.K(),"ytp-pulling");c=0;e.j&&0>=e.position?c=-1:e.A&&e.position>=e.width&&(c=1);!this.o||c&&c==this.S||O(this.o);c&&(this.o=IA(y(this.Ip,this,A(),this.M),0));this.S=c;this.publish("seekto",a2(this.g,e.k),!1)};
f.Ip=function(a,b){if(this.S){var c=this.A*(this.C-1);this.M=Ic(b+this.S*(A()-a)*.3,0,c);o2(this);this.publish("seekto",a2(this.g,p2(this).k),!1);0<this.M&&this.M<c&&(this.o=IA(y(this.Ip,this,a,b),0))}};
function o2(a){var b=p2(a),c=Nd(a.Ha),d=0;if(8<a.J)for(var e=(-b.j+b.width)/b.g*($1(a.g)/60),g=Math.ceil(-b.j/b.g*($1(a.g)/60));g<e;g++){var h=c[d];h||(h=document.createElement("div"),a.Ha.appendChild(h));d++;h.className=0==g%60?"ytp-60m-progress":0==g%30?"ytp-30m-progress":0==g%15?"ytp-15m-progress":"ytp-1m-progress";h.style.left=60*g/$1(a.g)*b.g+"px"}for(e=c.length-1;e>=d;e--)Ld(c[e]);c=(-b.j+b.width)/b.g;a.ta(Qy(a2(a.g,-b.j/b.g)),"boundTimeLeft");a.ta(Qy(a2(a.g,c)),"boundTimeRight");a.F.style.width=
b.g+"px";a.K().style.height=a.J+(a.V?20:8)+"px";b=b.j;vg(a.F,"transform",b?"translatex("+b+"px)":"");a.U.K().style.height=a.J+(a.V?12:6)+"px";for(var k in a.I)s2(a,a.I[k],a.P[k]);t2(a);u2(a,a.B,a.G)}function v2(a){var b=Math.floor(a.g.g),c=Math.floor(a2(a.g,a.B));a.template.update({ariamin:Math.floor(a.g.j),ariamax:b,arianow:c,arianowtext:Nf("YTP_PROGRESS_LABEL",{PLAY_PROGRESS:c,DURATION:b})})}
function p2(a){var b=a.qa.x;if(a.na)var c=a.V?32:16,b=(b+a.Xa-c/2)/(a.A-c)*a.A;c=a.A*a.C;b=Ic(b,0,a.A);return new j2(b,a.A,-a.M,-(c-a.M-a.A))}function q2(a){var b=a.V?32:16,c=a.A*a.C;return new j2(a.B*(c-b)+b/2,c,b/2,b/2)}
function u2(a,b,c){if(b<a.N||b>a.O)a.rk();else{a.B=b;a.G=Math.max(a.B,c);v2(a);var d=b2(a.g,a.N),e=b2(a.g,a.O),g=Ic(b,d,e);c=Ic(c,d,e);var h=g;g<e&&(h=a.A*a.C,h=(g*h-g)/h);a.ya.style.left=Ry(d)+"%";vg(a.ya,"transform","scalex("+(h-d)+")");vg(a.U.K(),"transformOrigin",Ry(b)+"%");b=q2(a).position+"px";a.U.K().style.left=b;a.wb.style.left=b;a.ua.style.left=Ry(d)+"%";vg(a.ua,"transform","scalex("+(c-d)+")");a.wa.style.left=Ry(d)+"%";vg(a.wa,"transform","scalex("+(e-d)+")")}}
function t2(a){var b=a.N>a.g.j,c=0<a.g.g&&a.O<a.g.g;Q(a.K(),"ytp-clip-start-enabled",b);Q(a.K(),"ytp-clip-end-enabled",c);b=b?b2(a.g,a.N):0;c=c?b2(a.g,a.O):1;a.ba.style.left=Ry(b)+"%";a.Z.style.left=Ry(c)+"%";a.Ga.style.width=Ry(b)+"%";a.ha.style.left=Ry(c)+"%";a.ha.style.width=Ry(1-c)+"%"}f.Co=function(){P(this.K(),"ytp-clip-hover")};f.Bo=function(){fh(this.K(),"ytp-clip-hover")};f.rk=function(){this.N=0;this.O=Infinity;t2(this);u2(this,this.B,this.G)};
function s2(a,b,c){var d=p2(a).g,e=b2(a.g,b.start/1E3)*d;switch(b.style){case "ytp-chapter-marker":a=Hx(b);var g=a/2,d=Ic(e,g,d-g)-g;break;default:a=Math.min(Math.min(b2(a.g,b.end/1E3)*d,d)-e,Hx(b)),d=Ic(e,0,d-a)}c.style.width=a+"px";c.style.left=d+"px";c.className=b.style}
function w2(a,b){E(b,function(a){if(a.visible){var b=a.getId();if(!this.I[b]){var e=document.createElement("div");a.tooltip&&(e.setAttribute("data-tooltip",a.tooltip),e.setAttribute("data-position",a.start/1E3));this.I[b]=a;this.P[b]=e;s2(this,a,e);"ytp-chapter-marker"==a.style?this.vb.appendChild(e):this.ga.appendChild(e)}}else x2(this,a)},a)}function y2(a,b){E(b,function(a){x2(this,a)},a)}function x2(a,b){var c=b.getId();a.I[c]==b&&(Ld(a.P[c]),delete a.I[c],delete a.P[c])}
f.L=function(){this.o&&(O(this.o),this.o=0);this.k&&(this.k.dispose(),this.k=null);this.ua=this.ba=this.Ga=this.Z=this.ha=this.ga=null;this.P={};this.wa=this.F=this.ya=null;this.V=!1;n2.H.L.call(this)};function z2(a,b,c,d){U.call(this);this.g=a;this.type=b+"_"+c;this.j=d;this.k=null;this.I=c}B(z2,U);z2.prototype.A=function(){return this.type};z2.prototype.getCurrentAd=function(){return this.j?this.j.getCurrentAd():null};function A2(){this.clickThroughUrl="";this.isSkippable=!1;this.skipShown=this.skip=u;this.skipTime=0;this.videoUrl=this.videoId=""};function B2(a){this.g=a}var C2=[1,2];function D2(a){switch(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}
function E2(a){switch(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}};function F2(a,b){this.g=a;this.o=b}F2.prototype.A=null;F2.prototype.j=NaN;function G2(a,b,c){a.g.publish("AD_LOGGING_EVENT",b,c)}function H2(a){I2(a);var b=J2(a);if(a.k){var c=K2(a.o),d=a.k.y-c.top,d=Math.round(a.k.x-c.left)+"x"+Math.round(d);b.ck_xy=d;b.ck_wh=c.width+"x"+c.height}G2(a,15,b)}function L2(a){I2(a);var b=J2(a);if(isNaN(a.j))I2(a);else{var c=A()-a.j;b.ad_stl=c}G2(a,4,b)}function M2(a){I2(a);var b=J2(a),c=a.g.zn();c?b.ad_fmt=c:I2(a);G2(a,5,b)}
function N2(a){var b=J2(a),c=a.g.zn();c?b.ad_fmt=c:I2(a);G2(a,14,b)}function J2(a){var b={},c=a.g.k,d=a.g.$i(),e=a.g.Ql();M1(a.g.getCurrentAd(),b);d&&0<d&&(b.ad_len=d);c&&c.videoId?b.ad_v=c.videoId:e&&(c=vj(e),b.ad_dom=c,a.o.ea.A&&(b.ad_v_url=e.substr(0,512)));e=a.g;(e=e.j?e.j.Df():null)&&(b.ad_cpn=e);b.at=a.g.A();return b}function I2(a){a.A||(a.A="InstreamAdDisplay ("+a.g.A()+")")};function O2(a,b,c,d,e,g){z2.call(this,b,a,2,c);this.g.subscribe("onVolumeChange",this.Up,this);this.g.subscribe("control_toggle_play_pause",this.Vp,this);this.g.subscribe("control_play",this.Jl,this);this.g.subscribe("control_pause",this.Il,this);this.G=d;this.B=new F2(this,this.g);this.o=new iz(this);this.F=this.C=!1;this.D=0;this.M=e;this.J=!!g}B(O2,z2);O2.g=2E3;f=O2.prototype;f.Rb=null;f.Uf=!1;f.Rg=null;f.Qg=null;f.Sg=null;
f.show=function(){this.B.j=A();var a;if(a=this.G){var b=uj(a),b=b.v||b.video_id;if(!b){var c=Ce(ze(a)[5]||null).match(/^\/watch\/([^\/]*)$/i);c&&(b=c[1])}b||(a=a.match(/yt_vid\/([a-zA-Z0-9_-]{11})/),null!=a&&1<a.length&&(b=a[1]));a=b?new kv({video_id:b,dash:"0"}):null}else a=null;this.k=a;var d;a=new A2;a.isSkippable=this.M;a.skip=y(this.Ey,this);a.skipShown=y(this.j.Bl,this.j);if(b=this.getCurrentAd())a.clickThroughUrl=tT(b)||"",a.skipTime=pT(b,uT(b))||0;this.k?(this.k.zd=!0,d={video_id:this.k.videoId},
a.videoId=this.k.videoId,this.k.subscribe("onStatusFail",this.Pp,this),this.k.subscribe("dataloaded",this.Op,this),b=this.g.R(),b=new yZ(b.o),b.ca="adunit",b.autoplay=!0,b.B=this.type,b=CZ(b,this.k,this.g.app.j.xb()),Ev(this.k,b)):(this.G&&(a.videoUrl=this.G),P2(this));this.C||(Q2(this.g,-1,d,a),this.gp())};f.Ey=function(){this.g.o.k.T("skip")};function R2(a){a.k&&(a.k.unsubscribe("onStatusFail",a.Pp,a),a.k.unsubscribe("dataloaded",a.Op,a))}
f.Op=function(){R2(this);xv(this.k);var a=new l0(this.g.R(),this.g.app.j),b=this.k;b.g&&b.g.j.length?(a=iv(this.k.I,n0(a,this.k)))?(a=a.j)?(a=new L(Ru(a)),a.g.set("autoplay","1"),this.j.setMediaUrl(a.toString()),P2(this)):S2(this,Error("Failed to determine ad media resource.")):S2(this,Error("Failed to determine ad media format.")):S2(this,Error("No selectable formats."))};
function P2(a){if(Xh||2.2<=kt&&3>kt||(Xh||Yh)&&!ai){var b=A()-a.B.j,b=O2.g-b;a.D=N(y(a.bs,a),Math.max(0,b));P(a.g.Pa(),"ad-interstitial-showing")}else a.bs()}
f.bs=function(){T2(this);this.Rb=U2(this.g,!0);this.Sg=this.g.Pa();if(this.g.ea.C)Ld(vd("video-ad-status-bar"));else{var a=this.g.Pa();this.Rg=vd("video-ad-time-left",a);var a=vd("html5-ad-progress-list",a),b=Fd("div");P(b,"ytp-ad-progress");a.appendChild(b);this.Qg=b;this.o.listen(this.Rb,"timeupdate",this.Nz)}eh(this.Sg,["ad-showing","ad-interrupting"]);this.o.listen(UH(this.g.j),"mouseup",this.Lz);this.o.listen(this.Rb,"waiting",this.gp);this.g.subscribe("onResize",this.Vl,this);try{this.o.listen(this.j,
"adError",this.Kz);this.o.listen(this.j,"click",this.Jz);this.o.listen(this.j,"complete",this.Rl);this.o.listen(this.j,"pause",this.Kq);this.o.listen(this.j,"start",this.Lq);this.o.listen(this.j,"skip",this.Mz);this.Vl();var c=this.g,d=c.j,e=V2(c);d.X.R().A&&(Mg(d.g,e),Ag(d.g,0,0));this.J||this.j.start()}catch(g){S2(this,g)}};f.Lq=function(){this.Uf=!0;this.C=!1;this.F||(this.F=!0,L2(this.B),W2(this.g,1));by(this.g,!0);Q2(this.g,1);this.publish("adPlay",this)};
f.Kq=function(){this.Uf=!1;by(this.g,!1);Q2(this.g,2)};f.Mz=function(){N2(this.B);this.Rl()};f.Rl=function(){this.C||(M2(this.B),this.Uf=!1,this.C=!0,this.F=!1,Q2(this.g,0),W2(this.g,0),this.publish("adEnd",this))};f.Kz=function(a){S2(this,a.k)};function S2(a,b){a.Uf=!1;a.C=!0;Q2(a.g,0);a.publish("adError",b)}f.Pp=function(){R2(this);S2(this,Error("Request to get video data failed."))};f.Jz=function(){H2(this.B);this.publish("select")};f.Lz=function(a){a=new I(wh(a),xh(a));this.B.k=a};
f.Nz=function(a){var b=Qy(this.j.getRemainingTime());this.Rg.innerHTML=b;b=this.$i()?this.Rb.getCurrentTime()/this.$i():0;b=Ry(b);this.Qg.style.width=b+"%";this.Rb.ended&&N(y(this.Rl,this,a),50)};f.gp=function(){!this.Uf&&this.F||Q2(this.g,3)};
f.L=function(){this.g.unsubscribe("control_toggle_play_pause",this.Vp,this);this.g.unsubscribe("control_play",this.Jl,this);this.g.unsubscribe("control_pause",this.Il,this);this.g.unsubscribe("onResize",this.Vl,this);this.g.unsubscribe("onVolumeChange",this.Up,this);this.o.removeAll();R2(this);this.J||this.j.destroy();this.Rb&&(SH(this.g.j),this.Rb=null);T2(this);this.Rg&&(this.Rg.innerHTML="",this.Rg=null);this.Qg&&(Ld(this.Qg),this.Qg=null);this.Sg&&(gh(this.Sg,["ad-showing","ad-interrupting"]),
this.Sg=null);this.C=!0;O2.H.L.call(this)};function T2(a){a.D&&(O(a.D),a.D=0,fh(a.g.Pa(),"ad-interstitial-showing"))}f.$i=function(){return this.Rb?this.Rb.duration||0:null};f.zn=function(){return null};f.Ql=function(){return this.Rb&&this.Rb.currentSrc?this.Rb.currentSrc:null};f.Up=function(a){a=a.muted?0:a.volume;isNaN(a)||(a=Ic(a/100,0,1),this.j.setVolume(a))};f.Vp=function(){this.Uf?this.Il():this.Jl()};f.Jl=function(){this.Rb&&(this.j.resume(),this.Lq())};
f.Il=function(){this.Rb&&(this.j.pause(),this.Kq())};f.Vl=function(){RH(this.g.j)&&Mg(RH(this.g.j),V2(this.g))};function X2(){this.k=!1;this.j=0;this.g=""};function Y2(a,b,c,d,e){z2.call(this,b,a,2,c);this.g.subscribe("control_toggle_play_pause",this.pp,this);this.g.subscribe("control_play",this.Vk,this);this.g.subscribe("control_pause",this.Uk,this);this.C=new F2(this,this.g);this.o=new iz(this);this.B=Z2(b);this.B.subscribe("statechange",this.Oc,this);this.B.subscribe("internalvideodatachange",this.np,this);this.D=this.F=!1;this.J=d;this.G=!!e}B(Y2,z2);f=Y2.prototype;f.sj=!1;f.Fg=null;f.Eg=null;f.Gg=null;
f.show=function(){var a=this.g,b=Z2(a);$2(a.app,b);this.C.j=A();this.Gg=this.g.Pa();this.B.subscribe("progresssync",this.yp,this);this.g.ea.C?Ld(vd("video-ad-status-bar")):(a=this.g.Pa(),this.Fg=vd("video-ad-time-left",a),a=vd("html5-ad-progress-list",a),b=Fd("div"),P(b,"ytp-ad-progress"),a.appendChild(b),this.Eg=b);eh(this.Gg,["ad-showing","ad-interrupting"]);this.g.subscribe("onResize",this.Xk,this);try{this.o.listen(this.j,"adError",this.iA),this.o.listen(this.j,"click",this.hA),this.o.listen(this.j,
"complete",this.eA),this.o.listen(this.j,"engagedview",this.fA),this.o.listen(this.j,"pause",this.Rq),this.o.listen(this.j,"start",this.Sq),this.o.listen(this.j,"skip",this.jA),this.o.listen(this.j,"youTubeChannelMetadata",this.gA),this.Xk(),this.G||this.j.start()}catch(c){a3(this,c)}};
f.np=function(a,b,c){if("newdata"==a&&this.k!=c){a={video_id:c.videoId};b=new A2;b.isSkippable=this.J;b.skip=y(this.j.skip,this.j);b.skipShown=y(this.j.Bl,this.j);var d=this.getCurrentAd();d&&(b.clickThroughUrl=tT(d)||"",b.skipTime=pT(d,c.lengthSeconds)||0);b.videoId=c.videoId;b.videoId||(b.videoUrl=this.Ql()||"");Q2(this.g,-1,a,b)}this.k=c};f.Oc=function(a){a=a.state;X(a,128)&&a3(this,Error(a.g.message||"Video player error."))};
f.Sq=function(){this.sj=!0;this.D=!1;if(!this.F){this.F=!0;L2(this.C);W2(this.g,1);var a=this.g.R();this.g.ea.C&&"3"==a.g&&(a=this.g.app.j,"3"==a.app.R().g&&(a.g.controls=!1))}Q2(this.g,1);this.publish("adPlay",this)};f.Rq=function(){this.sj&&(this.sj=!1,Q2(this.g,2))};f.eA=function(){M2(this.C);b3(this);this.D=this.F=!1};
function b3(a){var b=new X2;b.k=a.D;b.j=A();a.k&&a.k.za&&(b.g=a.k.za);p1(Z2(a.g));Q2(a.g,0,b);W2(a.g,0);a.publish("adEnd",a);b=a.g.R();a.g.ea.C&&"3"==b.g&&(a=a.g.app.j,"3"==a.app.R().g&&(a.g.controls=!0))}f.fA=function(){var a=this.C;a.g.publish("AD_LOGGING_EVENT",777,J2(a))};f.jA=function(){this.D=!0;N2(this.C);b3(this)};
f.gA=function(){var a=this.getCurrentAd();if(a){var b=a.J;if((a=a.G)&&b){var c={};c.videoTitle=b.title;c.channelThumbnailUrl=a.g;c.channelTitle=a.j;c.channelVideoCount=a.videoCount;this.g.publish("publish_external_event","onAdMetadataAvailable",c)}}};f.iA=function(a){var b={};try{b.error_code=a.k.getErrorCode()}catch(c){b.error_code=900,b.error_message=c.toString()}var d=this.C;I2(d);var e=J2(d);b&&ra(e,b);e.ad_error=32;G2(d,7,e);a3(this,a.k)};
function a3(a,b){a.B.Ze();Q2(a.g,0);a.publish("adError",b)}f.hA=function(){H2(this.C);this.j.pause();this.publish("select")};f.yp=function(){var a=this.g.g.Cg();this.g.ea.C||(this.Fg.innerHTML=Qy(a.duration-a.current),a=Ry(a.current/a.duration),this.Eg.style.width=a+"%")};
f.L=function(){this.g.unsubscribe("control_toggle_play_pause",this.pp,this);this.g.unsubscribe("control_play",this.Vk,this);this.g.unsubscribe("control_pause",this.Uk,this);this.g.unsubscribe("onResize",this.Xk,this);this.o.removeAll();this.B.subscribe("statechange",this.Oc,this);this.B.unsubscribe("internalvideodatachange",this.np,this);this.B.unsubscribe("progresssync",this.yp,this);this.G||this.j.destroy();this.Fg&&(this.Fg.innerHTML="",this.Fg=null);this.Eg&&(Ld(this.Eg),this.Eg=null);this.Gg&&
(gh(this.Gg,["ad-showing","ad-interrupting"]),this.Gg=null);this.D=!1;var a=this.g;if(a.k){var b=a.app,a=a.k;c3(b);a!=b.k&&$2(b,b.k)}Y2.H.L.call(this)};f.$i=function(){return this.B.Pc()};f.zn=function(){return this.k&&this.k.j?this.k.j.mimeType:null};f.Ql=function(){return this.k&&this.k.P?Ru(this.k.P.j):null};f.pp=function(){this.sj?this.Uk():this.Vk()};f.Vk=function(){this.j.resume();this.Sq()};f.Uk=function(){this.j.pause();this.Rq()};f.Xk=function(){Mg(RH(this.g.j),V2(this.g))};function d3(a,b){this.k=a;this.j=b}function e3(a,b,c){a.k.publish("AD_LOGGING_EVENT",b,c)}function f3(a){var b={};M1(a.k.getCurrentAd(),b);a.A&&a.g&&(b.ot=a.g-a.A);var c;c=a.j.isFullscreen()?2:a.j.R().Bd?1:0;b.ad_ps=c;b.at=a.k.A();return b};function g3(a,b,c,d){z2.call(this,b,a,1,c);this.B=new d3(this,b);this.o=new iz(this);this.C=!!d}B(g3,z2);f=g3.prototype;f.md=null;f.Sl=!1;
f.show=function(){if(!this.Sl||!h3(this.g)){var a=this.g.Pa();P(a,"ad-showing");this.md=RH(this.g.j);a=this.j.getCurrentAd().getHeight();this.md.style.height=Bg(a,!0);P(this.md,"ad-overlay");this.o.listen(this.md,"mouseup",this.Gz);try{this.o.listen(this.j,"userClose",this.Dz);this.o.listen(this.j,"click",this.Fz);this.o.listen(this.j,"adError",this.Ez);i3(this,"normal");this.C||this.j.start();var b=this.B;b.A=A();var c=f3(b);e3(b,3,c);this.g.subscribe("onResize",this.Yi,this);this.g.subscribe("onStateChange",
this.qq,this);this.publish("adEnd",this)}catch(d){this.publish("adError",d)}}};f.L=function(){this.o.removeAll();this.g.unsubscribe("onResize",this.Yi,this);this.g.unsubscribe("onStateChange",this.qq,this);var a=this.g.Pa();fh(a,"ad-showing");this.j&&(this.C||this.j.destroy(),this.j=null);this.md&&fh(this.md,"ad-overlay");this.md=null;this.Sl=!1;g3.H.L.call(this)};
f.Dz=function(){this.md&&this.j&&this.j.getCurrentAd()&&(this.md.style.height=Bg(0,!0));this.Sl=!0;var a=this.B;a.g=A();var b=f3(a);e3(a,6,b)};f.Fz=function(){this.g.pauseVideo();var a=this.B;a.g=A();var b=f3(a);if(a.o){var c=K2(a.j),d=a.o.y-c.top,d=Math.round(a.o.x-c.left)+"x"+Math.round(d);b.ck_xy=d;b.ck_wh=c.width+"x"+c.height}e3(a,100,b)};f.Gz=function(a){this.B.o=a.target==a.currentTarget?null:new I(a.pageX,a.pageY)};f.Ez=function(a){this.publish("adError",a.k)};
f.qq=function(a){X(a.state,16)&&i3(this,"normal")};function i3(a,b){a.D!=b&&(a.D=b)}f.Yi=function(){};function j3(a,b,c,d){S.call(this);this.M=a;this.j=b.g;this.D=b;this.I=b.getId();this.g=c;this.k=d;this.A=new O1(this.j,this.ne(),c,d);this.B=null;this.J=new An(this);this.o=new An(this)}B(j3,S);j3.g="rm";j3.j=10;j3.B=200;j3.o=200;j3.A=190;j3.k=100;f=j3.prototype;f.Ll=null;
f.load=function(){var a;a=this.g;a=a.ea.A?V2(a):a.app.j.j.xb();var b;this.g.ea.g?b=!1:(b=0<(this.k&3)?j3.A:j3.o,b=a.width<j3.B||a.height<b);if(b){b=this.A;var c=P1(b);c.ck_wh=a.width+"x"+a.height;k3(b.g,14,c);T1();this.se(Error("The player size is too small."))}else if(this.B=this.g.Se){a=this.A;l3(a.g,9,P1(a));a=new YU;(b=this.g.ea.serverPrefetchedVast)&&0<(this.k&3)?(a.adsResponse=b,this.g.ea.serverPrefetchedVast=void 0):a.adTagUrl=this.tf();b=V2(this.g);a.linearAdSlotWidth=b.width;a.linearAdSlotHeight=
b.height;a.nonLinearAdSlotWidth=b.width;a.nonLinearAdSlotHeight=j3.k;a.Sp=DZ(this.g.R());a.g=this.g.R().experiments.experimentIds;if(b=a.Sp?JZ(this.g.R()):-1)a.lastActivity=b;this.g.ea.tagForChildDirected&&(a.tagForChildDirectedContent=!0);OH(this.g.R(),"937420")&&(a.Ig=!0);b=Ow(this.g.app);a.Vc={"[CONTENT_V]":b.videoId,"[CPN]":b.za,"[LACT]":m3(this)};DZ(this.g.R())||(a.Vc["[LACT]"]="-1");this.B.listen("adsManagerLoaded",this.Bp,!1,this);this.B.listen("adError",this.Ap,!1,this);this.Di(this.B,a)}};
f.Pm=function(){var a=new EL,b=this.g.ea,c=this.g.R();a.baseYouTubeUrl=c.qb;a.contentId=Ow(this.g.app).videoId;a.Kk=OH(c,"927622");a.showContentThumbnail=b.showContentThumbnail;a.surveyCreativeData=b.surveyCreativeData;a.useShareButton=!0;a.useStyledNonLinearAds=!0;a.useVideoAdUi=b.C;a.youTubeAdNamespace=this.ne();b.O&&(a.ap=!0,a.TD=!0,a.showContentThumbnail=!1,a.bp=!0,a.dp=!0,a.useShareButton=!1);return a};f.ne=function(){return this.M};function n3(a){var b=j3.j;a.j=b;a.A.o=b}
function o3(a,b){a.Ll=b;a.A.k=b.A()}function p3(a,b){var c=t("yt.www.watch.ads.setAdId");c&&c(b);a.A.j=b}function q3(a){a=a.j;return 0==a||-1==a?a:1E3*a}function m3(a){var b=a.g;return{toString:function(){return null==b||b.da()?b=null:JZ(b.R()).toString()}}}
f.Bp=function(a){if(a.o===this){Tt("aml");try{var b=this.Pm(),c=a.k}catch(d){this.Rd(d);return}this.o.listen(c,"companionBackfill",y(this.BC,this,c));this.o.listen(c,"loaded",y(this.AC,this,c));this.o.listen(c,"adError",y(this.zC,this,c));this.o.listen(c,"allAdsCompleted",u);this.o.listen(c,"contentPauseRequested",u);this.o.listen(c,"contentResumeRequested",u);c=J1(a,this.g.o,{},b);try{c.init("normal")}catch(e){c.destroy(),this.Rd(e)}}};
f.AC=function(a,b){this.o.removeAll();var c=b.getAd(),d=VS(c),e=this.A,g=P1(e);g.ad_man=d?"instream":"overlay";l3(e.g,12,g);e=a.getMediaUrl();switch(d?this.Xg(a,c,e):this.Nd(a,c)){case 0:r3(this.D,this.Ll,this.j);break;case 1:a.destroy();this.se(Error("Unable to create a display state."));break;case 2:c=this.A;k3(c.g,21,P1(c));a.destroy();this.se(Error("Fallback to next ad."));break;default:a.destroy()}};f.zC=function(a,b){this.o.removeAll();a.destroy();this.Rd(b.k)};
f.Ap=function(a){var b=a.k;"adLoadError"==b.k&&a.o===this&&this.Rd(b)};f.BC=function(){S1()};f.Xg=function(a,b,c){p3(this,fT(b));var d;this.g.ea.M?d=new Y2(this.ne(),this.g,a,XS(b)):d=new O2(this.ne(),this.g,a,c,XS(b));o3(this,d);return 0};f.Nd=function(a,b){p3(this,fT(b));o3(this,new g3(this.ne(),this.g,a));return 0};f.Rd=function(a){if(a){var b=this.A,c=P1(b);a&&L1(a,c);k3(b.g,32,c);this.se(a)}};f.se=function(){s3(this.D)};
f.L=function(){this.B&&(this.B.Da("adsManagerLoaded",this.Bp,!1,this),this.B.Da("adError",this.Ap,!1,this));this.J.removeAll();this.o.removeAll();j3.H.L.call(this)};f.Di=function(a,b){try{fZ(a,b,this),Tt("ar")}catch(c){this.Rd(c)}};function t3(a){this.g=a};function u3(a){z2.call(this,a,2,3,null);this.o=this.B=0}B(u3,z2);u3.prototype.show=function(){var a=t("yt.www.watch.ads.loadAfc");a&&a();this.publish("adEnd",this);this.B=Jf(y(this.C,this),1E3)};u3.prototype.L=function(){v3(this);u3.H.L.call(this)};function v3(a){a.B&&(Kf(a.B),a.o=0)}u3.prototype.C=function(){var a=t("yt.www.watch.ads.isAfcAdVisible");this.o++;var b={};b.at=this.A();10<=this.o||!a?(v3(this),this.publish("AD_LOGGING_EVENT",2,b)):a()&&(v3(this),this.publish("AD_LOGGING_EVENT",3,b))};function w3(a,b,c){j3.call(this,2,a,b,c);this.C=new t3(this.g.ea);R1()}B(w3,j3);w3.prototype.Pm=function(){var a=w3.H.Pm.call(this);a.gt=0==this.I;a.dE=h3(this.g)?a.gt:!0;return a};w3.prototype.tf=function(){var a;var b=this.C;a=q3(this);(b=4==this.k&&b.g.afvInvideoAdTag?b.g.afvInvideoAdTag:b.g.afvAdTag)?(0==b.lastIndexOf("http:",0)&&(b=b.substr(5)),a=xj(b,{videoad_start_delay:a})):a="";return a};
w3.prototype.Nd=function(a,b){if(this.g.ea.g)return 1;0==this.j&&(n3(this),l3(this.g,1));return w3.H.Nd.call(this,a,b)};w3.prototype.se=function(a){var b=this.g.ea;b.g?w3.H.se.call(this,a):b.fb||this.k&4?(o3(this,new u3(this.g)),r3(this.D,this.Ll,this.j)):w3.H.se.call(this,a)};function x3(a,b){if(a){this.yu=a;this.vu=b;var c,d=this.yu,e=d.indexOf(";sz=");c=rj(d.substring(e),";");d=d.substring(0,e).split("pfadx");if(c=2!=d.length?null:{dG:d[0],eG:d[1],fG:c})this.uu=c.dG,this.wu=c.eG,this.xu=c.fG}}f=x3.prototype;f.yu="";f.uu="";f.vu=!1;f.Sn="";f.wu="";f.xu=null;
f.mj=function(a,b){var c,d=[];b&1&&(c=0==a?"pre":-1==a?"post":"mid;pos=0",d.push("480x360"));b&2&&(c=0==a?"pre":-1==a?"post":"mid;pos=0",d.push("480x361"));b&12&&d.push("480x70");var e=[],g,h;b&12&&(e.push("300x250"),g="watch-channel-brand-div",h=1);0<(b&3)&&(e.push("300x60"),g="watch-longform-ad",h=1);var k=Zb(this.xu);c&&(k.pos=c);h&&(k.tile=h.toString());g&&(k.kmyd=g);e&&0<e.length&&this.vu&&(k.ciu_szs=e.join(","));k.dcmt="text/xml";this.Sn||(this.Sn=Math.floor(999999999*Math.random()).toString());
k.ord=this.Sn;d&&d.length&&Wb(k,"sz");e=sj(k,";");d&&d.length&&(e="sz="+d.join(",")+";"+e);return[this.uu,"pfadx",this.wu,";",e,"?"].join("")};function y3(a){this.g=a?a:""}y3.prototype.mj=function(a,b){if(b&1){var c="mid",d="midroll";0==a?(c="pre",d="preroll"):-1==a&&(c="post",d="postroll");var e=new L(this.g),g=e.g,h=g.get("scp",""),c=(h?h+"&":"")+("pos="+c);g.set("scp",c);g.set("vpos",d);return e.toString()}return this.g};function z3(a,b,c){g3.call(this,1,a,b,c)}B(z3,g3);z3.prototype.Yi=function(){};z3.prototype.A=function(){return"1_3"};function A3(a,b,c){j3.call(this,1,a,b,c);a=this.g.ea;this.O=a.rg?new y3(a.adTag):new x3(a.adTag,a.ga)}B(A3,j3);A3.prototype.tf=function(){return this.O.mj(this.j,this.k)};
A3.prototype.Nd=function(a,b){p3(this,fT(b));var c=null!=b.g?b.g.D:{};if(N1(c,j3.g))return 1==this.k||h3(this.g)||T1(),a.sendImpressionUrls(),this.g.ea.ii?(o3(this,new u3(this.g)),0):2;if(N1(c,"blockAllAds"))return a.sendImpressionUrls(),o3(this,new z3(this.g,a)),0;if(N1(c,"hideMaster"))return o3(this,new z3(this.g,a)),0;if(this.g.ea.g)return 1;o3(this,new g3(this.ne(),this.g,a));return 0};function B3(a,b,c,d){A3.call(this,a,b,c|d);this.G=c;this.F=d;this.C=null;R1()}B(B3,A3);var C3={GDFP:1,DART:1,DART_DFP:1,DART_DFA:1,ADSENSE:2,"ADSENSE/ADX":2};f=B3.prototype;f.tf=function(){if(this.g.ea.rg){var a=new y3(this.g.ea.dynamicAllocationAdTag);return a.mj(this.j,this.G)}a=new x3(this.g.ea.dynamicAllocationAdTag,this.g.ea.ga);return a.mj(this.j,this.G)};
f.Di=function(a,b){if(this.F){var c=this.F,d="";c&2&&c&1?d="video":c&2?d="skippablevideo":c&1&&(d="standardvideo");c&4&&(d&&(d+="_"),d+="text_image_flash");b.youTubeAdType=d;if(c=this.g.ea.wa)b.youTubeExperimentIds=c;b.youTubeVideoAdStartDelay=q3(this)}B3.H.Di.call(this,a,b)};f.Xg=function(a,b,c){D3(this,a);return 1!=this.C&&2!=this.C?1:B3.H.Xg.call(this,a,b,c)};
f.Nd=function(a,b){D3(this,a);switch(this.C){case 1:return B3.H.Nd.call(this,a,b);case 2:var c;this.g.ea.g?c=1:(0==this.j&&(n3(this),l3(this.g,1)),p3(this,fT(b)),o3(this,new g3(2,this.g,a)),c=0);return c;default:return 1}};f.ne=function(){return this.C||0};function D3(a,b){var c=b.getCurrentAd(),d=iT(c);d.unshift($S(c));for(c=0;c<d.length;++c){var e=C3[d[c].toUpperCase()];if(e){a.C=e;return}}a.C=0};function E3(a,b){var c=b.ea;this.C=c.Ha;var d=0,c=c.ja.toUpperCase();"INVIDEO"==c?d=4:"INSTREAM"==c?d=1:"MPU"==c&&(d=8);j3.call(this,2,a,b,d)}B(E3,j3);E3.j="https://www.googleapis.com/urlshortener/v1/url?key=AIzaSyBbSB-E7SYd1iggX6r2b5C7ljvO6fVqaj0&shortUrl=";E3.k="43";
E3.g=function(a){var b=new my;Fj(a,{format:"RAW",method:"GET",timeout:5E3,withCredentials:!0,pe:function(){ny(b,Error(a+" timed out"))},onError:function(c){ny(b,Error("Problem loading "+a+" with status code "+c.status))},Qa:function(a){ry(b);py(b,!0,a)}});return b};E3.prototype.tf=function(){return""};
E3.prototype.Di=function(a,b){var c=this.k;c&1||c&4||c&8?this.C?c&8?U1(this.C):("goo.gl"==vj(this.C)?(c=E3.g(E3.j+this.C),ty(c,function(a){a=cg(a.responseText);if(!a)throw Error("Invalid expanded forced ad URL.");if(!a.longUrl)throw Error("Missing forced ad URL information.");a=new L(a.longUrl);M(a,"video_format",E3.k);return E3.g(a.toString())},this)):c=E3.g(this.C),ty(c,function(c){b.adsResponse=c.responseText;fZ(a,b,this)},this),uy(c,null,this.Rd,this)):this.Rd(Error("Invalid empty URL")):this.Rd(Error("Invalid request type: "+
c))};function F3(a,b,c,d){this.g=a;this.o=c;this.k=d;this.A=b;Xh||Yh?this.j="html5_ios":Zh?this.j="html5_android":rt()?this.j="html5_ps3":"leanback"==this.o.ca?this.j="html5_tv_leanback":G3(this)?this.j="html5_desktop":this.j="html5"}var H3="kyvDG3GPNY0 F_HOziu_duk T8uOdgwGUvc Ojs8LzuieSI JzTfd-RlK4M bfHSqiuB_QA b2nJxZl0xEk Bj9O5BESM1o tu3C_TjRpGM FQYmOyuKtwg FEWg27qS_aY 9_edKusM2j0 SbL08XsN9rk u31pf-9Rsjc 64J_K7R7Bu8 wDzg2Eh-TiQ qERY1A8AnM0 B5uvc8NhkwI".split(" ");
function G3(a){return H(H3,a.g.U)||PH(a.o,"952600","952605")&&!a.g.ib};function I3(a,b){g3.call(this,4,a,b)}B(I3,g3);I3.prototype.Yi=function(){};I3.prototype.A=function(){return"4_3"};function J3(a,b,c){j3.call(this,4,a,b,c);this.C=new F3(this.g.ea,Ow(this.g.app).lengthSeconds,this.g.R(),c)}B(J3,j3);
J3.prototype.tf=function(){var a;var b=this.C;if(b.g.S&&b.g.U){a={};var c="youtube_watch_"+b.j;a.nw="10613";a.asnw=b.g.S;a.ssnw=b.g.S;a.caid=b.g.U;a.vdur=b.A;a.csid=c;a.resp="vast2";c={};isNaN(b.g.ma)||(c._fw_d_001=b.g.ma);b.g.qa&&(c._fw_d_002=b.g.qa);b.g.ka&&(c["_fwu:10613:lang"]=b.g.ka);b.g.ba&&(c._fw_dbp=b.g.ba);b.g.na&&(c._fw_distributorvideoassetid=b.g.na);c._fw_yt_type=b.g.o?"short":"long";if(G3(b)){a.prof="10613:10613_youtube_html5_2014";a.crtp="youtube";a.flag="+slcb+qtcb+amcb+exvt+emcr";
var d="",e;b.k&1&&(e={slid:"preroll",ptgt:"a",slau:"preroll",tpos:"0"},d=sj(e,"&")+";",e={slid:"page_display1",w:"300",h:"60",ptgt:"s",slau:"display",flag:"+cmpn"},d+=sj(e,"&")+";");b.k&4&&(e={slid:"overlay",ptgt:"a",slau:"overlay",tpos:"10"},d+=sj(e,"&")+";",e={slid:"page_display2",w:"300",h:"250",ptgt:"s",slau:"display",flag:"+cmpn"},d+=sj(e,"&")+";");b.k&8&&(e={slid:"dis",w:"300",h:"250",ptgt:"s",slau:"display"},d+=sj(e,"&")+";");b=d.substr(0,d.length-1);a="//2975c.v.fwmrm.net/ad/g/1?"+sj(a,"&")+
";"+sj(c,"&")+";"+b}else{d="10613:10613_youtube_"+b.j.split("_")[0];a.prof="10613:10613_youtube_"+b.j;a.crtp="vast2s";a.flag="+emcr";e={ptgt:"a",slid:"preroll"};var g="";b.g.B&&!b.g.k?g=";linear-skippable":!b.g.B&&b.g.k&&(g=";video");e.slau="preroll"+g;e.w="480";e.h="360";e.tpos="0";e.tpcl="preroll";e.envp=d;e.cd="1440,900";a="//2975c.v.fwmrm.net/ad/g/1?"+sj(a,"&")+";"+sj(c,"&")+";"+sj(e,"&")}}else a="";return a};J3.prototype.Xg=function(a,b){return 0!=this.j?1:J3.H.Xg.call(this,a,b,null)};
J3.prototype.Nd=function(a,b){var c=null!=b.g?b.g.D:{};if(N1(c,j3.g))return this.D.o=Yb(a),2;if(this.g.ea.g)return 1;if(N1(c,"hideMaster")){if(a.B&&a.B.je()){var c=a.B.je(),d;d=a.getCurrentAd();if(nL()){var e=d.N;d.N=[];d=e}else d=[];c.impressionUrls=d}o3(this,new I3(this.g,a));return 0}return J3.H.Nd.call(this,a,b)};function K3(a,b,c){j3.call(this,13,a,b,c)}B(K3,j3);var L3=[{Jm:4,size:"480x70",Jr:"300x250"},{Jm:1,size:"480x360",Jr:"300x60"}];
K3.prototype.tf=function(){var a=new L(this.g.ea.hb,!0),b=this.k,c=L3.filter(function(a){return(b&a.Jm)==a.Jm}),d=c.map(function(a){return a.size}).join("|");M(a,"sz",d);c=c.map(function(a){return a.Jr}).join(",");M(a,"ciu_szs",c);c=4==(this.k&4);1==(this.k&1)?(c||M(a,"vad_type","linear"),c="midroll",0==this.j?c="preroll":-1==this.j&&(c="postroll"),M(a,"vpos",c)):c&&M(a,"vad_type","nonlinear");return a.toString()};function M3(a,b,c){this.k=a;this.g=b;this.j=c||0}M3.prototype.create=function(a,b){switch(this.k){case 1:return new w3(a,b,this.g);case 2:return new A3(a,b,this.g);case 3:return new B3(a,b,this.g,this.j);case 5:return new J3(a,b,this.g);case 4:return new E3(a,b);case 6:return new K3(a,b,this.g);default:return null}};function N3(a){return 0<((a.g|a.j)&3)};function O3(a,b,c,d,e){U.call(this);this.xa=b;this.k=a;this.g=c;this.A=d;this.o=this.j=null;this.B=!!e}B(O3,U);f=O3.prototype;f.am=!0;f.rb=!1;f.isVisible=!0;f.Uc="unloaded";f.Cm=!1;f.mb=function(){return 0==this.g?P3(this)&&Q3(this)?-2147483648:0:-1==this.g||-2==this.g?2147483647:1E3*this.g};function R3(a){return 0==a.g||-2==a.g?!1:hb(a.A,function(a){switch(a.k){case 1:case 2:case 3:case 6:return!0;default:return!1}})}function P3(a){return"loaded"==a.Uc||"error"==a.Uc}
function Q3(a){if(!P3(a))throw Error("Preroll status is undefined before ad load.");return 0==a.g&&a.rb}function s3(a){a.Uc="loading";0==a.g&&!gb(a.A,N3)&&Rx(a.k);if(a.B)a.Uc="loaded",a.rb=!0,S3(a);else{var b=a.A.shift();b?(0==a.g&&T3(a.k,"nl"),b=b.create(a,a.k),T(a,b),b.load()):(l3(a.k,2,U3(a,{})),V3(a,!1),a.Uc="error",S3(a))}}f.getId=function(){return this.xa};
function W3(a){a.j&&(a.j.unsubscribe("adEnd",a.Gt,a),a.j.unsubscribe("adError",a.Jt,a),a.j.unsubscribe("AD_LOGGING_EVENT",a.Ht,a),a.j.unsubscribe("select",a.It,a))}function r3(a,b,c){a.j=b;a.g=c;T(a,a.j);0==a.xa&&(a.k.B.at=a.j.A());a.j instanceof O2||a.j instanceof Y2?a.rb=!0:a.j instanceof u3?a.isVisible=!1:a.j instanceof I3?a.isVisible=!1:a.j instanceof z3&&(a.isVisible=!1);a.Uc="loaded";S3(a)}function S3(a){a.publish("adBreakComplete",a)}
f.show=function(){this.Cm?this.j instanceof g3&&i3(this.j,"normal"):(this.Cm=!0,(this.j instanceof O2||this.j instanceof Y2)&&T3(this.k,"bs"),this.j.subscribe("adEnd",this.Gt,this),this.j.subscribe("adError",this.Jt,this),this.j.subscribe("AD_LOGGING_EVENT",this.Ht,this),this.j.subscribe("select",this.It,this),this.j.show(),V3(this,!0))};function V3(a,b){a.o&&(a.o.sendImpressionUrls({"[FILLED_OPPORTUNITY]":b?1:0}),a.o.dispose(),a.o=null)}
f.Gt=function(){if(this.rb){W3(this);var a=this.k;if(a.ea.ha&&!a.Ek){var b=a.R().qb;ag(b+"mac_204?action_fcts=1");a.Ek=!0}}S3(this)};f.Jt=function(a){if(a){var b={};L1(a,b);U3(this,b);k3(this.k,32,b)}W3(this);S3(this)};f.Ht=function(a,b){U3(this,b);l3(this.k,a,b)};f.It=function(){this.am=!1};function U3(a,b){b.sst=a.g;b.sidx=0}f.L=function(){W3(this);this.j=null;null!=this.o&&(this.o.dispose(),this.o=null);O3.H.L.call(this)};function X3(a){this.dw=a}function Y3(a){try{var b=WF(a).getElementsByTagName("AdBreak"),c=F(b,function(a){a=a.getAttribute("time");return Wa(a)});return new X3(c)}catch(d){return new X3([0])}};function Z3(a){this.g=a};function $3(a,b){this.Ba=a;this.O=this.Ba.isMobile;this.A="leanback"==this.Ba.ca;this.g=this.O||this.A;this.C=!this.A&&!(Xh&&!a.G);this.M=a.A&&(!this.g||this.A)||this.O&&!(Xh&&!a.G);this.apply(b);if(this.B&&!this.M)throw"Skippable instreams were enabled without FullPlayerApiSupport";}var a4={NG:"m",IG:"f"};f=$3.prototype;
f.apply=function(a){var b=K1(a.instream),c=K1(a.trueview),d=K1(a.aftv);this.V=a.ad_slots;this.Z=a.ad_breaks;this.adFlags=a.ad_flags||0;this.wa=a.cafe_experiment_id;this.adTag=a.ad_tag;this.wb=!!a.adtest;this.afvAdTag=a.afv_ad_tag;this.ya=b4(this.afvAdTag);this.afvInvideoAdTag=a.afv_invideo_ad_tag;this.afvMergeEnabled=!!a.afv_merge_enabled;this.ma=parseInt(a.ad_age,10);this.amsBaseTag=a.ams_base_tag;this.applyFadeOnMidrolls=!!a.apply_fade_on_midrolls;this.Ga=a.cid;this.na=a.docid||a.video_id||a.videoId;
this.dynamicAllocationAdTag=a.dynamic_allocation_ad_tag;this.excludedAds=a.excluded_ads;this.fadeInDurationMilliseconds=parseInt(a.fade_in_duration_milliseconds,10)||0;this.fadeInStartMilliseconds=parseInt(a.fade_in_start_milliseconds,10)||0;this.fadeOutDurationMilliseconds=parseInt(a.fade_out_duration_milliseconds,10)||0;this.fadeOutStartMilliseconds=parseInt(a.fade_out_start_milliseconds,10)||0;this.ja=a.force_ad_type;this.Ha=a.force_ad_url;this.qa=Rb(a4,function(b){return b==a.ad_gender});this.ba=
a.dbp;this.ii=K1(a.afc_rm_fallback);this.ga=!!a.mpu;this.F=K1(a.afv)&&!this.g;this.G=d&&c;this.I=d&&b&&!K1(a.no_afv_instream);this.J=K1(a.dclk);this.rg=K1(a.gpt_migration);this.ua=1==a.livestream;this.W=K1(a.forced_ad)&&!this.g;this.N=1==parseInt(a.tpas_ad_type_id,10);this.Fb=!!a.fqsf;this.k=b;this.D=K1(a.invideo)&&!this.g;this.P=K1(a.mpu)&&!this.g;this.ib=H(this.ya,"yt_mabv");this.ha=K1(a.shortform);this.o=K1(a.sffb);this.tk=K1(a.xfp);this.hb=a.xfp_tag;b=Yh&&OH(this.Ba,"947233");this.Ao=(!this.g||
b)&&!this.N;this.B=c;this.ka=a.ad_language_iso639_2;c=parseInt(a.max_dynamic_allocation_ad_tag_length,10);isNaN(c)&&(c=2E3);this.maxDynamicAllocationAdTagLength=c;this.j=parseInt(a.midroll_freqcap,10);isNaN(this.j)&&(this.j=-1);this.midrollPrefetchSize=parseInt(a.midroll_prefetch_size,10)||0;"boolean"==typeof a.show_content_thumbnail&&(this.showContentThumbnail=a.show_content_thumbnail);this.tagForChildDirected=K1(a.tag_for_child_directed);this.serverPrefetchedVast=a.server_prefetched_vast;this.surveyCreativeData=
a.surveyCreativeData;this.fb=d&&this.o&&!this.F;this.Ja=this.F||this.fb;this.vb=parseInt(a.ad_device,10);this.U=a.tpas_video_id;this.S=a.tpas_partner_id;this.vmap=a.vmap;this.Xa=c4(this)};
function c4(a){if(C(D(a.dynamicAllocationAdTag)))return!1;var b=(a.k||a.B)&&a.J;a.o&&a.J&&(b=b||a.D||a.P);if(!b)return!1;b=a.G||a.I;if(!(b||a.o&&a.F))return!1;if(a.serverPrefetchedVast)return!0;var c=a.dynamicAllocationAdTag.length+330+(a.rg?25:102);window.document.referrer&&(c+=xa("ref="+xa(window.document.referrer)).length);b||(c+=41);return c<=a.maxDynamicAllocationAdTagLength}function b4(a){if(C(D(a)))return[];a=jf(new L(a),"channel");return null!=a?a.split("+"):[]}f.applyFadeOnMidrolls=!1;
f.Ao=!0;f.ii=!1;f.rg=!1;f.tk=!1;f.showContentThumbnail=!0;function d4(a){S.call(this);this.g=a;this.j=0;this.A={};a=a.ea;this.B=a.fadeInDurationMilliseconds;this.C=a.fadeInStartMilliseconds;this.k=a.fadeOutDurationMilliseconds;this.o=a.fadeOutStartMilliseconds;this.Jp()}B(d4,S);f=d4.prototype;f.Jp=function(){this.g.subscribe("beginseeking",this.Tj,this)};f.Us=function(a,b){return a.rb&&0<a.g?b+this.o+this.k:b};f.Ts=function(a,b){return a.rb&&-1!=a.g&&2147483646!=b&&2147483647!=b?b+this.o+this.k:b};
f.Ss=function(a){if(a.rb&&0<a.g&&!(0>=this.k)){var b={priority:2,id:String(a.getId()),style:"ytp-ad-fadeout"},c=a.mb()+this.o,b=new Gx(c,c+this.k-1,b);this.A[a.getId()]=b;this.g.Id(b)}};function e4(a,b){a.A[b]&&(a.g.Yk(a.A[b]),delete a.A[b])}f.Rp=function(a){a.rb&&0<a.g&&(e4(this,a.getId()),this.Tj())};f.Tj=function(){this.j&&(O(this.j),this.j=0);var a=U2(this.g,!1);a.volume=jw(this.g.app)/100;vg(a,"transition","");vg(a,"opacity","1")};
f.zq=function(a){var b=a.mb()+this.o+this.k,b=50>=1E3*this.g.g.getCurrentTime()-b;a.rb&&0<a.g&&b&&(a=.001*(a.mb()+this.C),this.g.publish("command_seek",a),0>=this.B||(a=U2(this.g,!1),vg(a,"opacity","0"),a.volume=0,N(y(this.lB,this),0)))};f.lB=function(){var a=U2(this.g,!1);vg(a,"transition","opacity "+String(this.B)+"ms linear");vg(a,"opacity","1");f4(this,a,this.B,1)};function f4(a,b,c,d){0>=c||(a.j&&O(a.j),c=A()+c,a.j=0==d?IA(y(a.Vt,a,b,c,100),0):IA(y(a.Os,a,b,c,100),0))}
f.Vt=function(a,b,c){if(this.j){var d=Math.max(1,b-A()),d=Math.max(0,a.volume+-1*a.volume*c/d);a.volume=d;this.j=0<d?IA(y(this.Vt,this,a,b,c),c):0}};f.Os=function(a,b,c){if(this.j){var d=Math.max(1,b-A()),e=jw(this.g.app)/100,d=Math.min(e,a.volume+(e-a.volume)*c/d);a.volume=d;this.j=d<e?IA(y(this.Os,this,a,b,c),c):0}};f.L=function(){this.Tj();this.g.unsubscribe("beginseeking",this.Tj,this)};function g4(a){d4.call(this,a)}B(g4,d4);f=g4.prototype;f.Jp=u;f.Us=function(a,b){return b};f.Ts=function(a,b){return b};f.Ss=u;f.Rp=u;f.zq=u;f.L=u;function h4(a,b){return b?new d4(a):new g4(a)};function i4(a,b,c){S.call(this);this.g=a;this.B=b;this.k=c;this.A=this.j=-1;this.k&&0<this.g.ea.j&&this.g.subscribe("endseeking",this.o,this)}B(i4,S);function j4(a,b){k4(a);0<b&&(a.A=N(y(a.o,a),1E3*b))}function k4(a){-1!=a.A&&(O(a.A),a.A=-1)}
i4.prototype.o=function(){var a=this.g.ea.j;if(this.k&&!(0>=a)){var b=this.g.g.getCurrentTime(),c=[],d=null,e=Number.MAX_VALUE;Hb(this.B.k,function(a){if(a.isVisible&&!(0>=l4(this,a))){var g;g=a.getId();g=this.B.A[g];if(l4(this,a)>b){var l=!m4(this,a);l!=g.visible&&(g.visible=l,c.push(g));l||(g=l4(this,a)-b,g<e&&(e=g,d=a))}else g.visible||(g.visible=!0,c.push(g))}},this);0<c.length&&n4(this.g,c);if(d){var g=0;0<this.j&&(g=A()/1E3-this.j);j4(this,a-g-e+2)}else k4(this)}};
function m4(a,b){if(!a.k||!(0<b.g)&&-1!=b.g)return!1;var c=a.g.ea.j;if(0>=c||0>=a.j)return!1;var d=A()/1E3,e=l4(a,b)-a.g.g.getCurrentTime();0<e&&(d+=e);return d-a.j<=c}function l4(a,b){return-1==b.g?a.g.g.getVideoData().lengthSeconds:b.g}i4.prototype.L=function(){k4(this)};function o4(a,b){S.call(this);this.j=b;this.B=[];this.k={};this.A={};this.g=a;var c=a.ea,d=!c.ua&&gb(this.j,function(a){return 0<a.g||-1==a.g});this.C=new i4(this.g,this,d);c=c.applyFadeOnMidrolls&&(c.k||c.B)&&gb(this.j,function(a){return 0<a.g});this.o=h4(this.g,c);this.M=gb(this.j,function(a){return 0==a.g})}B(o4,S);f=o4.prototype;f.yc=null;function p4(a){a.B.length||(a.B=eb(a.j,function(a){return"unloaded"==a.Uc}),0==a.B.length?Rx(a.g):(a.M||Rx(a.g),q4(a)))}
function q4(a){if(a.B.length){var b=a.B.shift();b.subscribe("adBreakComplete",a.If,a);s3(b)}}f.If=function(a){a.unsubscribe("adBreakComplete",this.If,this);N(y(this.sG,this,a),0)};
f.sG=function(a){var b=cb(this.j,a),c=this.j[b+1],b=this.j[b-1],d=2147483646;-2==a.g||-1==a.g?d=2147483647:c&&2147483647!=c.g&&(d=c.mb()-1);0==a.xa&&(T3(this.g,"bl"),Q3(a)||T3(this.g,"fb"));if(c="loaded"!=a.Uc||0==a.xa&&Q3(a)&&c&&1E3*this.g.g.getCurrentTime()>c.mb()){if(b&&P3(b)){var e=b.mb();e>d&&(d=e);r4(this,b);s4(this,b,d)}}else this.k[a.getId()]=a,s4(this,a,d);Rx(this.g);c&&this.hf(a);Lb(this.k)==this.j.length&&this.C.o();q4(this)};
function s4(a,b,c){var d=b.mb();if(!isNaN(d)){var e={};e.priority=-2!=b.g?2:3;e.id=String(b.getId());e.visible=b.isVisible;d=a.o.Us(b,d);c=a.o.Ts(b,c);c=new Gx(d,c,e);a.A[b.getId()]=c;a.g.Id(c);a.o.Ss(b)}}function r4(a,b){var c=b.getId();a.A[c]&&(e4(a.o,c),a.g.Yk(a.A[c]),delete a.A[c])}f.hf=function(a){a.unsubscribe("adBreakComplete",this.If,this);this.yc&&a==this.yc&&(this.yc=null);r4(this,a);ob(this.j,a);delete this.k[a.getId()];xi(a)};f.zi=function(a){return this.k[a]};
f.Zk=function(a){if(a.rb){if(-1!=a.g&&a.am){var b=this.g;t4(b);ay(b);this.o.zq(a)}else Q3(a)&&!a.am?(b=this.g,t4(b),ay(b)):(t4(this.g),by(this.g,!1));this.hf(a);a=this.C;a.k&&0<a.g.ea.j&&(a.j=A()/1E3,a.o())}else a.isVisible||this.hf(a)};f.L=function(){xi(this.o);xi(this.C);E(this.j,this.hf,this);o4.H.L.call(this)};function u4(a,b,c){o4.call(this,a,b);this.G=[];this.I=[];this.D=[];this.O=c;this.F=0;this.J=a.ea.j;if(1<=c)for(a=0;a<b.length;a++)if(c=b[a],R3(c)){var d=new O3(c.k,c.xa,c.g,c.A,!0);b[a]=d;this.G.push(c)}this.M||this.mf()}B(u4,o4);f=u4.prototype;
f.zi=function(a){a=u4.H.zi.call(this,a);if(!a)return null;if(!a.B)return a;var b;b=null;if(this.D.length){var c=b=this.D.shift();c.g=a.g;c.xa=a.getId()}b&&"loaded"==b.Uc?(a.unsubscribe("adBreakComplete",this.If,this),this.k[a.getId()]=b,this.j[this.j.indexOf(a)]=b,xi(a)):(this.mf(),b&&(xi(b),b=null),this.hf(a));b&&!b.rb&&this.mf();return b};f.If=function(a){0!=a.g||"loaded"==a.Uc&&a.rb||this.mf();u4.H.If.call(this,a)};
f.Zk=function(a){a.rb&&10<this.J?(v4(this),this.F=N(y(this.mf,this),1E3*(this.J-10))):this.mf();u4.H.Zk.call(this,a)};f.mf=function(){for(v4(this);this.G.length&&this.I.length+this.D.length<this.O;){var a=this.G.shift();a.subscribe("adBreakComplete",this.gu,this);this.I.push(a);s3(a)}};f.gu=function(a){a.unsubscribe("adBreakComplete",this.gu,this);ob(this.I,a);this.D.push(a)};f.L=function(){v4(this);E(this.I,xi);E(this.D,xi);E(this.G,xi);u4.H.L.call(this)};function v4(a){a.F&&O(a.F);a.F=0};function w4(a,b){this.D=a;this.X=b;this.C=A();this.g=a.ea;this.o={};this.B=new B2(a);var c=[];this.g.N&&this.g.k&&c.push("4_2");this.g.tk&&(this.g.k&&c.push("13_2"),this.g.D&&c.push("13_1"));this.g.J&&(this.g.k&&c.push("1_2"),this.g.B&&c.push("1_2_1"),this.g.D&&c.push("1_1"),this.g.P&&c.push("1_3"));this.g.G&&c.push("2_2_1");this.g.I&&c.push("2_2");this.g.F&&c.push("2_1");(this.g.Ja||this.g.ii)&&c.push("2_3");this.k=c.join(",");this.j="";this.o.allowed=this.k;(c=this.g.excludedAds)&&(this.o.ex_ads=
c)}w4.prototype.A=0;function x4(a){if(!/^\d+?(:\d+){0,2}(\.\d+)?$/.test(a))return null;var b=0;E(a.split(":"),function(a){b=60*b+Math.abs(parseFloat(a))});return 1E3*b};function y4(a,b,c){S.call(this);this.g=a;this.k=b;this.C=c;this.o=this.B=-1;this.j=z4(this.k.qe());a=this.k.qe();a.length&&(a=a[a.length-1],-1==a&&this.g.Id(this.j[a]));0<this.g.ea.j&&this.g.subscribe("endseeking",this.A,this)}B(y4,S);function A4(a,b){B4(a);0<b&&(a.o=N(y(a.A,a),1E3*b))}function B4(a){-1!=a.o&&(O(a.o),a.o=-1)}function C4(a){a.j||(a.j=z4(a.k.qe()));n4(a.g,Ob(a.j))}
function z4(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?2147483647:1E3*e;b[d]=new Gx(-1==d?2147483647:1E3*d,2147483647==e?e:e-1,{id:String(d),visible:!0})}d=a[a.length-1];b[d]=new Gx(-1==d?2147483647:1E3*d,2147483647,{id:String(d),visible:!0});return b}
y4.prototype.A=function(){var a=this.g.ea.j;if(!(0>=a)&&this.j){var b=this.g.g.getCurrentTime(),c=[],d=null,e=Number.MAX_VALUE;E(this.k.qe(),function(a){var g=this.j[a];if(g){var l=this.k.G.get(a);l&&l.Ed>b?(a=!TY(this.C,l),a!=g.visible&&(g.visible=a,c.push(g)),a||(g=l.Ed-b,g<e&&(e=g,d=l))):!l||l.jb()?(this.g.Yk(g),delete this.j[a]):!g.visible&&l&&(g.visible=!0,c.push(g))}},this);0<c.length&&n4(this.g,c);if(d){var g=0;0<this.B&&(g=A()/1E3-this.B);A4(this,a-g-e+2)}else B4(this)}};
y4.prototype.L=function(){y4.H.L.call(this);B4(this)};function D4(a){S.call(this);this.g=a;this.o=null;this.B=new An(this);this.k=new An(this)}B(D4,S);f=D4.prototype;f.Ta=null;f.Ni=null;f.Bb=null;f.jc=null;f.Oi=null;function E4(a,b,c){a=a.cloneNode(!0);a.setAttribute("timeOffset",b);E(a.getElementsByTagName("VASTAdTagURI"),function(a){var e,g;"end"==b?(e="post",g=-1):(e="mid",g=x4(b).toString());var h={"[INDEX]":c.toString(),"[POSITION]":e,"[START]":g};a.innerHTML=a.innerHTML.replace(/\[[A-Z_]+\]/g,function(a){return h[a]||a})});return a}
function F4(a){var b=WF(a),c=b.childNodes[0];if(!c)return a;var d=G(c.childNodes,function(a){return"#1"==a.getAttribute("timeOffset")});if(d){a=G(d.childNodes,function(a){return"Extensions"==a.localName});var e=G(a?a.childNodes:[],function(a){return"YTBreakTime"==a.getAttribute("type")});a=a.removeChild(e);var g=d,h=1;E(a?a.childNodes:[],function(a){a=a.getAttribute("timeOffset");a=E4(d,a,h);h++;c.insertBefore(a,g.nextSibling);g=a});c.removeChild(d);return YF(b)}return a}
f.load=function(a){if(this.o=this.g.Se){var b=new YU;b.adsResponse=F4(a);a=V2(this.g);b.linearAdSlotWidth=a.width;b.linearAdSlotHeight=a.height;b.nonLinearAdSlotWidth=a.width;b.nonLinearAdSlotHeight=100;if(a=JZ(this.g.R()))b.lastActivity=a;this.g.ea.tagForChildDirected&&(b.tagForChildDirectedContent=!0);OH(this.g.R(),"937420")&&(b.Ig=!0);a=Ow(this.g.app);var c=this.g;b.Vc={"[CONTENT_V]":a.videoId,"[CPN]":a.za,"[LACT]":{toString:function(){return null==c||c.da()?c=null:JZ(c.R()).toString()}}};this.o.listen("adsManagerLoaded",
this.Wq,!1,this);this.o.listen("adError",this.Vq,!1,this);try{fZ(this.o,b,this)}catch(d){}}};function G4(a){var b=new EL;b.baseYouTubeUrl=a.g.R().qb;b.contentId=Ow(a.g.app).videoId;b.useShareButton=!0;b.useStyledNonLinearAds=!0;b.useVideoAdUi=a.g.ea.C;b.showContentThumbnail=a.g.ea.showContentThumbnail;b.$o=!0;return b}
f.Wq=function(a){if(a.o===this){var b={};Object.defineProperty(b,"currentTime",{get:y(function(){return this.g.g.getCurrentTime()},this),enumerable:!0});Object.defineProperty(b,"duration",{get:y(function(){return this.g.g.getVideoData().lengthSeconds},this),enumerable:!0});try{var c=G4(this);this.Ta=J1(a,this.g.o,b,c)}catch(d){return}if(this.Oi=this.Ta.Qq(b,this.g.ea.j)){this.Ni=new y4(this.g,this.Ta,this.Oi);C4(this.Ni);H(this.Ta.qe(),0)||H4(this);this.k.listen(this.Ta,"companionBackfill",y(this.bA,
this));this.k.listen(this.Ta,"loaded",y(this.aA,this));this.k.listen(this.Ta,"adError",y(this.$z,this));this.k.listen(this.Ta,"start",y(this.Zz,this));this.k.listen(this.Ta,"complete",y(this.Yz,this));this.k.listen(this.Ta,"contentPauseRequested",y(this.cA,this));this.k.listen(this.Ta,"contentResumeRequested",y(this.dA,this));this.k.listen(this.Ta,"allAdsCompleted",u);try{this.Ta.init("normal"),this.Ta.start()}catch(e){this.Ta.destroy(),this.j=null}}}};
f.cA=function(a){this.Bb&&this.Bb.dispose();(this.jc=a.getAd())&&VS(this.jc)&&(a=I4(this.jc),this.g.ea.M?this.Bb=new Y2(a,this.g,this.Ta,XS(this.jc),!0):this.Bb=new O2(a,this.g,this.Ta,this.Ta.getMediaUrl(),XS(this.jc),!0),J4(this.g),this.Bb.show())};
function K4(a,b){var c=null!=b.g?b.g.D:{};if(N1(c,j3.g)&&a.g.ea.ii)return a.Bb=new u3(a.g),a.Bb.show(),!1;if(N1(c,"blockAllAds"))return a.Ta.sendImpressionUrls(),a.Bb=new z3(a.g,a.Ta,!0),!1;if(N1(c,"hideMaster"))return a.Bb=new z3(a.g,a.Ta,!0),!1;a.Bb=new g3(I4(b),a.g,a.Ta,!0);a.Bb.show();return!0}
f.dA=function(a){this.Bb&&this.Bb.dispose();H4(this);if(this.g.g.getCurrentTime()<this.g.g.getVideoData().lengthSeconds){var b=this.g;t4(b);ay(b)}a=a.getAd();b=!0;a&&a!==this.jc&&!VS(a)&&(b=K4(this,a));if(this.jc&&VS(this.jc)||a&&a!==this.jc&&!VS(a)&&b)b=this.Oi,0<b.g&&(b.j=A()/1E3),b=this.Ni,0<b.g.ea.j&&(b.B=A()/1E3,b.A());C4(this.Ni);this.jc=a};f.Zz=function(a){if((a=a.getAd())&&this.Bb){a=I4(a);var b=this.Bb;b.type=a+"_"+b.I;2==a&&R1();S1()}};
f.Yz=function(a){VS(a.getAd())||this.jc!==a.getAd()||(this.Bb&&this.Bb.dispose(),this.jc=null)};f.aA=function(a){a.getAd().A.j||VS(a.getAd())||H4(this)};f.$z=function(){};f.Vq=function(){};f.bA=function(){S1()};f.L=function(){this.o&&(this.o.Da("adsManagerLoaded",this.Wq,!1,this),this.o.Da("adError",this.Vq,!1,this));this.B.removeAll();this.k.removeAll();this.A=!1;this.Ta&&(this.Ta.destroy(),this.Ta=null);D4.H.L.call(this)};
function I4(a){switch($S(a).toUpperCase()){case "ADSENSE":return 2;case "DOUBLECLICK":return 1;case "FREEWHEEL":return 4;case "XFP":return 13;default:return 0}}function H4(a){a.A||(Rx(a.g),a.A=!0)};function L4(a){hZ.call(this,a);kL.g=!0;kL.A=!0;this.o=null;this.C={};this.B={at:"0"};this.j=new QH(0,this.g);cx(this.g,this.j.K());this.k=null;this.A=-1}B(L4,hZ);f=L4.prototype;f.va="ad";f.oc="ad";f.he=null;f.gb=null;f.ea=null;f.Ek=!1;f.un=!1;f.Se=null;f.Te=null;L4.Fa=function(a){return!!a.Kb.getVideoData().adModule};f=L4.prototype;f.Fa=function(){return L4.Fa(this.app)};
f.create=function(){L4.H.create.call(this);T3(this,"i");this.ea=new $3(this.R(),this.g.getVideoData().o||{});this.he=new w4(this,this.g);this.Ek=!1;if(this.Se)this.Se.g.k.B=IP();else{var a=this.ea.C?void 0:UH(this.j);if(this.ea.M){var b=new gZ(this.app,2),c=RH(this.j);b.g||(b.g=Yb(b.Oe),b.g.addEventListener=y(b.ew,b),b.g.removeEventListener=y(b.gw,b));this.o=new xP(c,void 0,a,b.g)}else{b=U2(this,!1);if(!b)throw"initAdsLoader_: getVideoElement returned a null element";this.o=new xP(RH(this.j),b,a,
void 0)}a=this.o;b=a.j;null!=b&&(b.style.right=0,b.style.left=0,b.style.bottom=0,b.style.top=0);null!=a.C&&(a=a.C,a.j.width="100%",a.j.height="100%");this.Se=new eZ(this.o)}if(!this.ea.vmap||this.ea.W||this.ea.rg){a=new Z3(this);t:{b=[];try{var d=a.g.ea,e;if(d.Ao){var g;if(d.Z)g=Y3(d.Z);else{var h;if(d.V){var k=F(d.V.split(","),Wa);h=new X3(k)}else h=new X3([0]);g=h}e=g}else e=new X3([0]);for(var l=e.dw,d=0;d<l.length;d++){var p=a.g;e=d;var r=l[d],v;var x=a.g.ea;g=[];if(x.W)g.push(new M3(4,0));else{if(x.N){h=
0;if(x.k||x.B)h|=1;x.D&&(h|=4);x.P&&(h|=8);g.push(new M3(5,h))}x.tk&&(h=0,x.k&&(h|=1),x.D&&x.o&&(h|=4),g.push(new M3(6,h)));h=0;x.J&&(x.k&&(h|=1),x.B&&(h|=2),x.D&&x.o&&(h|=4),x.P&&x.o&&(h|=8));k=0;if(x.I||x.G)x.I&&(k|=1),x.G&&(k|=2);c=0;x.o&&(x.F&&(x.afvMergeEnabled&&k?k|=4:c=4),k||(k=c,c=0));x.Xa&&h&&k?g.push(new M3(3,h,k)):(h&&g.push(new M3(2,h)),k&&g.push(new M3(1,k)));c&&g.push(new M3(1,c))}v=g;var ca=new O3(p,e,r,v);b.push(ca)}}catch(ba){}finally{break t}}l=b;T3(this,"bd");p=this.ea;r=p.midrollPrefetchSize;
this.gb=!p.ua&&0<r?new u4(this,l,r):new o4(this,l);p4(this.gb)}else this.Te=new D4(this),this.Te.load(this.ea.vmap);l={};l.allowed=this.he.k;Vx(this,{},l)};f.destroy=function(){this.un&&t4(this);if(this.k){var a=this.app,b=this.k;c3(a);b!=a.k&&$2(a,a.k)}zi(this.gb,this.k,this.Te);this.he=this.Te=this.k=this.gb=null;SH(this.j);Q1=!1;this.Gd&&L4.H.destroy.call(this)};f.R=function(){return this.app.R()};f.isFullscreen=function(){return this.g.isFullscreen()||this.ea.A};
function l3(a,b,c){a=a.he;c=c||{};var d=(A()-a.C)/1E3;c.art=d;d=a.D.R();d.O&&(c.feature=d.V);c.ad_flags=a.g.adFlags;(d=a.g.Ga)&&(c.cid=d);c.mt=a.X.getCurrentTime();(d=rZ())&&(c.lact=d);(d=a.X.Jg())&&(c.len=d);a.g.Fb&&(c.fqsf=1);c.sdkv="3";c.ad_event=b;if(3==b||4==b)a.j=c.at;b=a.B;t:{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 t}a=c&&c.ad_event?E2(c.ad_event):0;a=8==a||0!=a?!0:!1}if(a){var e;c.at&&(e=c.at);var g;c.sst&&(g=c.sst);"2_1"==e&&
10==g&&(c.sst=0);e={};e.device=b.g.ea.vb;e.ns=1;e.sdkv="h.3.0";e.ver="2.0";for(var h in c){g=e;a=h;var d=c[h],k=c;switch(a){case "at":g.format=d;k.bumper?g.format+="_4":k.survey?g.format+="_3":k.skip&&(g.format+="_1");break;case "sst":0==d?g.break_type=1:-1==d||-2==H1?g.break_type=3:(g.break_type=2,g.m_pos=d);break;case "trsp":g.slot_pos=d;break;case "ad_id":case "ad_v":case "ad_cpn":case "ad_sys":g[a]=d;break;case "ad_len":g[a]=Math.round(1E3*d);break;case "ad_error":g.error_code=D2(d);break;case "error_code":g.ima_error=
d;case "error_message":g.error_msg=d;break;case "ad_event":g.event=E2(d);break;case "ck_xy":a=d.split("x"),2==a.length&&(g.i_x=a[0],g.i_y=a[1])}}h=Z2(b.g);c=Ow(b.g.app);e.cpn=c.za;e.content_v=c.videoId;e.mt=Math.round(1E3*h.getCurrentTime());e.ei=c.F;e.lact=JZ(b.g.R());h=K2(b.g);e.p_w=h.width;e.p_h=h.height;e.rt=(new Date).getTime();c=ve(e);if("undefined"==typeof c)throw Error("Keys are undefined");h=new Xe(null,0,void 0);g=ue(e);for(a=0;a<c.length;a++)d=c[a],k=g[a],ga(k)?hf(h,d,k):h.add(d,k);c=b.g.R().qb+
"api/stats/ads";c=new L(c);Ve(c,h);ag(c.toString());h=e.event;c=-1!=C2.indexOf(h);g=b.g.ea.amsBaseTag;b=PH(b.g.R(),"932015","932016");c&&!C(D(g))&&b&&(b=new L(g),c=b.g,c.set("ad_break_id",Xb(e,"m_pos","0")),c.set("ad_slot_id",Xb(e,"slot_pos","0")),c.set("ad_break_rel_start_time",Xb(e,"m_pos","0")),c.set("ad_break_type",Xb(e,"break_type","")),c.set("rel_time",Xb(e,"mt","")),c.set("wall_time",Xb(e,"rt","")),2==h&&(c.set("served",Xb(e,"format","")),c.set("ad_id",Xb(e,"ad_id","")),c.set("ad_len",Xb(e,
"ad_len",""))),ag(b.toString()))}}function k3(a,b,c){c=c||{};c.ad_error=b;l3(a,7,c)}f.Zg=function(){var a;if(this.he){a=this.he;var b={allowed:a.k};a.g.excludedAds&&(b.ex_ad=a.g.excludedAds);a.j&&(b.at=a.j);a=b}else a=L4.H.Zg.call(this);return a};f.Pa=function(){return this.g.Pa()};function U2(a,b){var c;if(b){c=a.j;var d=VH(c);c.X.R().A||Rd(d)||RH(c).appendChild(d);c=d}else c=a.j,c=c.X.R().A?c.X.app.j.g:VH(c);return c}
function Z2(a){if(!a.k){var b=new yZ(a.R().o);b.ca="adunit";b.autoplay=!0;var c=U2(a,!1);b.ub=c;a.k=new Z0(b,2,new nZ(b,""),a.app.j)}return a.k}function K2(a){return a.ea.A?(a=V2(a),new mg(0,0,a.width,a.height)):Rg(a.Pa())}function V2(a){return a.app.j.Wt()}function J4(a){a.un=!0;a.publish("command_redirect_controls",a,["play_pause"],void 0);Yx(a,["seek"]);a.R().Dd&&Yx(a,["audio"]);a.Te||a.pauseVideo()}function t4(a){SH(a.j);a.un=!1;$x(a);Zx(a,["seek"]);a.R().Dd&&Zx(a,["audio"])}f.getAdState=function(){return this.A};
function W2(a,b){switch(b){case 1:a.A=1;a.publish("publish_external_event","onAdStart");break;case 0:a.A=0,a.publish("publish_external_event","onAdEnd")}}function Q2(a,b,c,d){d&&a.publish("publish_external_event","onAdInfoChange",d);a.publish("publish_external_event","onAdStateChange",b,U2(a,!1),c)}
f.Ec=function(a){L4.H.Ec.call(this,a);var b=parseInt(a.getId(),10);if(this.gb&&!isNaN(b))if("ytp-ad-fadeout"==a.style){var c=this.gb;if((a=c.zi(b))&&!m4(c.C,a)&&(c=c.o,a.rb)){var d=U2(c.g,!1);a=Math.max(0,a.mb()+c.o+c.k-1E3*c.g.g.getCurrentTime());vg(d,"transition","opacity "+String(a)+"ms linear");vg(d,"opacity","0");f4(c,d,a,0)}}else if(a=this.gb,n(b)&&(c=a.zi(b)))a.yc==c&&!c.rb&&c.isVisible?c.show():(a.yc&&a.hf(a.yc),m4(a.C,c)?(a.yc=null,c=a.A[c.getId()],c.visible||(c.visible=!0,n4(a.g,[c]))):
(a.yc=c,c.subscribe("adBreakComplete",a.Zk,a),c.rb&&J4(a.g),a.o.Rp(c),c.show()));!isNaN(b)&&0>b&&this.Te&&(b=this.Se.g,a=new vQ("contentComplete"),b.T(a),a.o&&(b.k.clear(),null!=b.j&&(a=b.j.je(),null!=a&&YP(a,b.k.g))))};f.Wc=function(a){L4.H.Wc.call(this,a);var b=parseInt(a.getId(),10),c=1E3*this.g.getCurrentTime();this.gb&&!isNaN(b)&&c>a.start&&(2147483647==a.end||2147483646==a.end)&&(a=this.gb,(b=a.k[b])&&a.yc==b&&!b.rb&&b.isVisible&&b.Cm&&b.j instanceof g3&&i3(b.j,"fullscreen"))};
function T3(a,b){var c=b;"nl"==b&&(c=a.he,c.A++,c=c.A.toString());a.C[c]=A();"bs"!=c&&"fb"!=c||Vx(a,a.C,a.B)}function n4(a,b){a.publish("command_update_cuerange_markers",b,a.g.getPlayerType())}function h3(a){return Boolean(a.ea.o&&a.gb&&1<a.gb.j.length)}f.Yd=function(a){this.publish(a)};
f.Wf=function(a){switch(a){case "addata":var b=this.ea;return{adTag:b.adTag,adTest:b.wb,forceAdType:b.ja,isAfvSkippableInstreamEnabled:b.G,isAfvStandardInstreamEnabled:b.I,isBlazer:b.O,isDoubleClickEnabled:b.J,isForcedAd:b.W,isFreeWheelEnabled:b.N,isHouseBrandPlayer:b.Ba.Zb,isLeanback:b.A,isShortform:b.ha,tagForChildDirected:b.tagForChildDirected};case "adstate":return this.getAdState();case "midrollfreqcap":return this.gb?this.gb.J:0;case "breakscount":return this.gb?this.gb.j.length:0;case "displaystate":return b=
null,this.gb&&this.gb.yc&&(b=this.gb.yc.j),{adFormat:b instanceof z2?b.I:!1,adSkipped:b instanceof Y2?b.D:!1,hasVideoStarted:b instanceof Y2?b.F:!1,skippable:b instanceof Y2?b.J:!1};case "getContentVideoData":return b=Ow(this.app),{adModule:b.adModule,isGetVideoThirdPartyOnly:b.Yh,partnerTrackingToken:b.J,title:b.title,videoId:b.videoId};case "loadedadbreaks":if(this.gb){a=this.gb.k;var c=[];for(b in a)a.hasOwnProperty(b)&&c.push({isInterruptive:a[Number(b)].rb});return c}return 0}};f.Vf=function(){return"addata adstate breakscount displaystate getContentVideoData loadedadbreaks midrollfreqcap".split(" ")};function M4(a,b){var c=["ytp-large-play-button","html5-center-overlay","ytp-scalable-icon-shrink"],d;b&&c.push("ytp-housebrand-large-play-button");a?b?c.push("ytp-housebrand-large-play-button-image"):c.push("ytp-large-play-button-image"):d=b?'<svg><path fill-rule="evenodd" clip-rule="evenodd" fill="#1F1F1F" class="ytp-housebrand-large-play-button-svg" d="M59.6,1.35c0.267,0.5,0.4,1.133,0.4,1.9v53.5c0,0.767-0.133,1.4-0.4,1.9c-0.5,0.9-1.45,1.35-2.85,1.35H3.25c-1.4,0-2.333-0.433-2.8-1.3C0.15,58.167,0,57.517,0,56.75V3.25c0-0.833,0.167-1.5,0.5-2C1,0.417,1.917,0,3.25,0h53.5C58.15,0,59.1,0.45,59.6,1.35z M21,41.65l22.7-11.8L21,18V41.65z"/><polygon fill-rule="evenodd" clip-rule="evenodd" fill="#FFFFFF" points="21,41.65 21,18 43.7,29.85"/></svg>':
'<svg><path fill-rule="evenodd" clip-rule="evenodd" fill="#1F1F1F" class="ytp-large-play-button-svg" d="M84.15,26.4v6.35c0,2.833-0.15,5.967-0.45,9.4c-0.133,1.7-0.267,3.117-0.4,4.25l-0.15,0.95c-0.167,0.767-0.367,1.517-0.6,2.25c-0.667,2.367-1.533,4.083-2.6,5.15c-1.367,1.4-2.967,2.383-4.8,2.95c-0.633,0.2-1.316,0.333-2.05,0.4c-0.767,0.1-1.3,0.167-1.6,0.2c-4.9,0.367-11.283,0.617-19.15,0.75c-2.434,0.034-4.883,0.067-7.35,0.1h-2.95C38.417,59.117,34.5,59.067,30.3,59c-8.433-0.167-14.05-0.383-16.85-0.65c-0.067-0.033-0.667-0.117-1.8-0.25c-0.9-0.133-1.683-0.283-2.35-0.45c-2.066-0.533-3.783-1.5-5.15-2.9c-1.033-1.067-1.9-2.783-2.6-5.15C1.317,48.867,1.133,48.117,1,47.35L0.8,46.4c-0.133-1.133-0.267-2.55-0.4-4.25C0.133,38.717,0,35.583,0,32.75V26.4c0-2.833,0.133-5.95,0.4-9.35l0.4-4.25c0.167-0.966,0.417-2.05,0.75-3.25c0.7-2.333,1.567-4.033,2.6-5.1c1.367-1.434,2.967-2.434,4.8-3c0.633-0.167,1.333-0.3,2.1-0.4c0.4-0.066,0.917-0.133,1.55-0.2c4.9-0.333,11.283-0.567,19.15-0.7C35.65,0.05,39.083,0,42.05,0L45,0.05c2.467,0,4.933,0.034,7.4,0.1c7.833,0.133,14.2,0.367,19.1,0.7c0.3,0.033,0.833,0.1,1.6,0.2c0.733,0.1,1.417,0.233,2.05,0.4c1.833,0.566,3.434,1.566,4.8,3c1.066,1.066,1.933,2.767,2.6,5.1c0.367,1.2,0.617,2.284,0.75,3.25l0.4,4.25C84,20.45,84.15,23.567,84.15,26.4z M33.3,41.4L56,29.6L33.3,17.75V41.4z"/><polygon fill-rule="evenodd" clip-rule="evenodd" fill="#FFFFFF" points="33.3,41.4 33.3,17.75 56,29.6"/></svg>';
Y.call(this,["div",c]);d&&(this.element.innerHTML=d)}B(M4,Y);function N4(a){this.j=a||30;YH.call(this,this.j,this.j);this.B=this.width/2;this.o=this.height/2;this.C=0;this.context.translate(this.B,this.o);this.hide()}B(N4,YH);N4.prototype.show=function(){N4.H.show.call(this);var a=this.F;this.A=new Date;this.k(a,125)};
N4.prototype.F=function(){this.context.clearRect(-this.B,-this.o,this.width,this.height);for(var a=this.C++%8,b=0;8>b;b++){var c=2*Math.PI/8*(a+b),d=11/30*this.j,e=d*Math.cos(c),c=d*Math.sin(c),d=(b+1)/9;this.context.beginPath();this.context.arc(e,c,4/30*this.j,0,2*Math.PI,!1);this.context.fillStyle="rgba(189, 189, 189, "+d+")";this.context.fill()}};N4.prototype.hide=function(){O(this.g);N4.H.hide.call(this)};function O4(a,b,c){GH.call(this,["div","html5-remote-module",["div","ytp-remote-display-thumbnail"],["div","","{{largeplaybutton}}"],["div","ytp-remote-display-controls",["div",["ytp-remote-display-error","html5-center-overlay"],["div","ytp-remote-display-error-icon"],["p","ytp-remote-display-error-text","{{error}}"],["div","","{{reconnectbutton}}"]],["div","","{{loadingicon}}"]],["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}}"]],["div","ytp-remote-display-watch-while",["div","","{{maximizebutton}}"]]]);this.o=c;this.A=this.template.g["ytp-remote-display-thumbnail"];this.g=this.j=this.k=null;P4(this,a,b)}B(O4,GH);function Q4(a){R4(a,Z(0,"YTP_MDX_STATUS_CONNECTING"));S4(a,2)}function T4(a,b){R4(a,Z(0,"YTP_MDX_STATUS_ERROR"));Oy(a.template,"error",b);S4(a,0)}
function S4(a,b){var c=a.template.g["ytp-remote-display-error"],d=a.template.g["ytp-remote-display-status"];xA(c);xA(d);a.k.hide();a.g.hide();a.j.hide();switch(b){case 0:wA(d);wA(c);break;case 1:wA(d);break;case 2:wA(d);a.g.show();break;case 3:a.k.show()}}
function P4(a,b,c){var d=b.g.R();a.k=new M4(d.isMobile,d.Zb);T(a,a.k);a.g=new N4(60);P(a.g.element,"html5-video-loader");P(a.g.element,"html5-center-overlay");P(a.g.element,"ytp-scalable-icon-grow");T(a,a.g);a.j=new $D(a.o,"ytp-button-remote-reconnect");a.j.ta(Z(0,"YTP_MDX_PLAYER_RECONNECT_BUTTON"));T(a,a.j);d=new $D(a.o,"ytp-button-remote-maximize");d.ta(["div",["html5-center-overlay","ytp-button-remote-maximize-icon"]]);T(a,d);b=b.g.getVideoData();a.A.style.backgroundImage=b.videoId?"url("+Fv(b,
"hqdefault.jpg")+")":"";Oy(a.template,"largeplaybutton",a.k);Oy(a.template,"reconnectbutton",a.j);Oy(a.template,"loadingicon",a.g);Oy(a.template,"maximizebutton",d);a.j.listen("click",function(){this.publish("reconnect-button-click")},a);d.listen("click",function(a){a.stopPropagation();this.publish("maximize-button-click")},a);Q4(a);Oy(a.template,"receiver",c)}function R4(a,b){Oy(a.template,"statustext",b)};function U4(a,b,c,d){S.call(this);this.j=a;a.subscribe("onVolumeChange",this.So,this);this.G=y(this.lw,this);a.g.addEventListener("onCaptionsTrackListChanged",this.G);this.B=!1;d||a.subscribe("onPlaylistUpdate",this.Ro,this);this.k=b;b.subscribe("reconnect-button-click",this.Uo,this);b.subscribe("maximize-button-click",this.To,this);this.g=c;c.subscribe("proxyStateChange",this.Vo,this);c.subscribe("remotePlayerChange",this.Gk,this);c.subscribe("remoteQueueChange",this.Hk,this);this.J=new yx;this.D=
this.C=NaN;this.I=0;this.o={};this.F=new xn(this.mw,1E3,this);T(this,this.F);this.M=0;this.A=d;this.A||(a=ej("yt-player-remoteservice-listid"),b=this.j.g,b.getVideoData().playlistId&&b.getVideoData().playlistId!=a?this.g.Ik(b.getVideoData().videoId,V4(this.j),b.getCurrentTime()):this.g.ni(b.getVideoData().videoId,b.getCurrentTime()),b.Qc()?cj("yt-player-remoteservice-listid",b.getVideoData().playlistId):fj("yt-player-remoteservice-listid"));a=this.j.g.mi("captions","track");Ub(a)||W4(this,a);this.Hk();
this.Gk()}B(U4,S);f=U4.prototype;
f.L=function(){X4(this,new yx);Y4(this);Z4(this);this.j.unsubscribe("onVolumeChange",this.So,this);this.j.g.removeEventListener("onCaptionsTrackListChanged",this.G);this.A||this.j.unsubscribe("onPlaylistUpdate",this.Ro,this);yi(this.k)||(this.k.unsubscribe("reconnect-button-click",this.Uo,this),this.k.unsubscribe("maximize-button-click",this.To,this));yi(this.g)||(this.g.unsubscribe("proxyStateChange",this.Vo,this),this.g.unsubscribe("remotePlayerChange",this.Gk,this),this.g.unsubscribe("remoteQueueChange",
this.Hk,this));$4(this,this.o);this.g=this.k=this.j=null};f.fF=function(a,b){2==this.g.k||(a5(this)?this.DD.apply(this,arguments):this.k.k.D&&this.CD.apply(this,arguments))};function b5(a,b){var c=a.j.g.getVideoData().lengthSeconds;a.j.publish("command_progress",b,c)}f.CD=function(a,b){var c=Array.prototype.slice.call(arguments,1);switch(a){case "control_toggle_play_pause":case "control_play":case "control_pause":c5(this,this.j.g.getCurrentTime());break;case "control_seek":c5(this,c[0])}};
f.DD=function(a,b){if(1081==sp(this.g).g)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":sp(this.g).jb()?d5(this):e5(this);break;case "control_play":e5(this);break;case "control_pause":d5(this);break;case "control_seek":this.M=c[0];yn(this.F);break;case "control_subtitles_set_track":W4(this,c[0])}};
f.So=function(a){if(a5(this)){var b=Math.round(a.volume);a=!!a.muted;var c=sp(this.g);b==c.volume&&a==c.muted||this.g.setVolume(b,a)}};f.lw=function(){Ub(this.o)||$4(this,this.o);this.B=!1};f.Ro=function(){var a=ej("yt-player-remoteservice-listid"),b=this.j.g;b.getVideoData().playlistId!=a&&(this.g.Ik(f5(this),V4(this.j),b.getCurrentTime()),cj("yt-player-remoteservice-listid",b.getVideoData().playlistId))};f.Uo=function(){Z4(this);this.g.o.reconnect();Q4(this.k)};
f.To=function(){var a=this.j,b={video_id:a.g.getVideoData().videoId},b=new kv(b),b=a.app.Kb.R().getVideoUrl(b,{});Ux(a,b)};f.Vo=function(a,b){Z4(this);2==b&&this.Nq()};
f.Gk=function(){if(a5(this)){Y4(this);var a=sp(this.g);switch(a.g){case 1:g5(this);X4(this,new yx(8));break;case 3:X4(this,new yx(1));break;case 0:X4(this,new yx(2));this.F.stop();var b=this.j.g;(b=uw(b.app,b.playerType||1))&&b.Ze(!0);b5(this,this.j.g.getVideoData().lengthSeconds);break;case 2:X4(this,new yx(4));b5(this,lp(a));break;case -1:X4(this,new yx);break;case -1E3:X4(this,new yx(128,{}))}0==this.I&&(b=this.j.g,(b=uw(b.app,b.playerType||1))&&b.Ze(!1));this.I=a.g;a=sp(this.g).k;b=this.o;(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.o=a,$4(this,a));a=sp(this.g);-1==a.volume||Math.round(this.j.g.sq())==a.volume&&this.j.g.tq()==a.muted||(this.j.g.setVolume(a.volume),a.muted?this.j.g.uq():this.j.g.wq())}else h5(this)};function h5(a){a.k.k.D||(b5(a,0),Y4(a),X4(a,new yx));"detailpage"!=a.j.app.Kb.R().ca&&S4(a.k,3)}f.Hk=function(){a5(this)||h5(this)};
function W4(a,b){if(a5(a)&&!a.B){if(b){var c={style:a.j.g.mi("captions","displaySettings")};bc(c,b);a.g.$l(f5(a),c)}else a.g.$l(f5(a),null);a.o=sp(a.g).k}}function d5(a){a.g.pause();var b=sp(a.g);b5(a,lp(b));Y4(a);X4(a,new yx(4))}function e5(a){a.g.play();g5(a);X4(a,new yx(8))}function c5(a,b){if(a.A){var c=a.j.g.Qc();c?zp(a.g,f5(a),b,c.Ua,a.j.g.getVideoData().playlistId):zp(a.g,f5(a),b)}else a.g.ni(f5(a),b);X4(a,new yx(1))}
function $4(a,b){if(b){var c=a.j.g.mi("captions","tracklist",{Yp:1});c&&c.length?(c=G(c,function(a){return a.languageCode==b.languageCode&&a.name==b.trackName}),a.j.g.fr("captions","track",c)):(a.j.g.er("captions"),a.B=!0)}else a.j.g.gr("captions")}f.mw=function(){var a=this.M;Y4(this);b5(this,a);-1==sp(this.g).g?c5(this,a):this.g.jt(a);X4(this,new yx(1))};function a5(a){return jp(sp(a.g))==f5(a)}function f5(a){return a.j.g.getVideoData().videoId}
function g5(a){Y4(a);if(!a.g.da()){var b=sp(a.g);b.jb()&&X4(a,new yx(8));b5(a,lp(b));a.C=N(y(function(){g5(this)},a),500)}}function Y4(a){O(a.C);a.C=NaN}f.Nq=function(){Z4(this);Y4(this);var a=this.g.o.getReconnectTimeout();if(2!=this.g.k||isNaN(a))Q4(this.k);else{var b=this.k;T4(b,Z(0,"YTP_MDX_PLAYER_RECONNECT_TIME",{FORMATTED_TIME:Qy(a/1E3)}));b.j.show();this.D=N(y(this.Nq,this),1E3)}};function Z4(a){O(a.D);a.D=NaN}
function X4(a,b){Z4(a);var c=a.J;a.J=b;var d=a.k;R4(d,Z(0,"YTP_MDX_STATUS_CONNECTED"));S4(d,1);X(b,1)&&(d=a.k,R4(d,Z(0,"YTP_MDX_STATUS_CONNECTED")),S4(d,2));X(b,128)&&T4(a.k,Nf("YTP_MDX_PLAYER_ERROR"));d=a.j;by(d,X(b,8));d.app.publish("presentingplayerstatechange",new Y0(b,c))};function i5(a){hZ.call(this,a);this.M=a.j.j;this.A={key:Sj(),name:Z(0,"YTP_MDX_MY_COMPUTER")};this.o=this.k=null;this.G=[];this.I=this.J=this.j=null;this.N=[this.A];this.D=this.A;this.C=new qF(this.M,"ytp-remote-button",Z(0,"YTP_MDX_TOOLTIP"),"ytp-remote-button-active");T(this,this.C);bE(this.C,6950);this.C.listen("click",this.Xz,this);this.C.K().id="remote_button";this.B=new GF(this.M,y(this.Vz,this),y(this.Wz,this));P(this.B.K(),"ytp-drop-down-background");T(this,this.B);this.F=new ZD;this.F.label=
Z(0,"YTP_MDX_TITLE");this.F.element=this.B;this.F.j=this.va;T(this,this.F);this.B.bb(this.F.label)}B(i5,hZ);var j5=["play_pause","seek"],k5=["captions"];f=i5.prototype;f.va="remote";f.oc="remote";f.Fa=function(){return this.app.Kb.R().jg};
f.create=function(){i5.H.create.call(this);this.G.push(Gi("yt-remote-before-disconnect",this.xC,this));this.G.push(Gi("yt-remote-connection-change",this.os,this));this.os();dy(this,this.va,this.C);fy(this,this.F);var a=this.g.app.I;this.D&&this.D!=this.A&&1!=a&&3!=a&&this.load()};f.destroy=function(){Ii(this.G);this.G.length=0;xi(this.j);this.j=null;i5.H.destroy.call(this)};
f.load=function(){if(!this.loaded){i5.H.load.call(this);tF(this.C,"ytp-remote-button-active");this.o=new O4(this,this.D.name,this.M);cx(this.g,this.o.K());if(this.j){var a=this.app.Kb.R();this.k=new U4(this,this.o,this.j,a.experiments.k||a.experiments.g)}this.g.Fl();this.publish("command_redirect_controls",this,j5,k5);var b=Oq();0!=b&&((a=this.j?jp(sp(this.j)):null)&&a!=this.g.getVideoData().videoId||N(y(function(){this.publish("command_progress",b,void 0)},this),0))}};
f.unload=function(){this.loaded&&(tF(this.C,"ytp-remote-button"),this.B.Ea(this.A),$x(this),zi(this.k,this.o),this.o=this.k=null,i5.H.unload.call(this))};f.L=function(){this.destroy();zi(this.k,this.o,this.j);this.j=this.o=this.k=null;i5.H.L.call(this)};f.Yd=function(a,b){this.k&&this.k.fF.apply(this.k,arguments)};
function Pw(a,b,c){var d=c||a.A;b.unshift(a.A);a.N=b||[a.A];d=G(b,function(a){return a.key==d.key});l5(a,b);a.B.Ea(d);a.D=d||a.A;a.o&&Oy(a.o.template,"receiver",d.name);a.publish("publish_external_event","onMdxReceiversChange")}function V4(a){var b=a.g.Qc();if(b){a=[];for(var c=0;c<b.uc;c++)a[c]=Xv(b,c).videoId;return a}return[a.g.getVideoData().videoId]}f.xC=function(a){1==a&&(this.J=this.j?sp(this.j):null);this.I=a};
f.os=function(){var a=Qq();a?(this.j=a,this.I=this.J=null,this.load(),this.k||(a=this.app.Kb.R(),this.k=new U4(this,this.o,this.j,a.experiments.k||a.experiments.g))):(xi(this.j),this.j=null,this.loaded&&1==this.I&&(this.unload(),(a=this.J)&&jp(a)==this.g.getVideoData().videoId?this.g.Ef(lp(a)):this.g.Ef(0)))};f.Wz=function(a){hy(this);a!=this.B.getSelected()&&(this.B.Ea(a),m5(this,a))};
function m5(a,b){a.D=b||a.A;if(b.key==a.A.key)Jq();else{var c=0,d="",e=a.g.Qc();e&&(c=e.Ua,d=a.g.getVideoData().playlistId);c={videoIds:V4(a),listId:d,videoId:a.g.getVideoData().videoId,index:c,currentTime:a.g.getCurrentTime()};Gq(b,c);a.o&&Oy(a.o.template,"receiver",b.name);xi(a.k);a.k=null;a.load()}}function l5(a,b){E(b,function(a){a.toString=function(){return a.key}},a);HF(a.B,b)}
f.Xz=function(a){var b=xq();1==b.length&&"cast-selector-receiver"==b[0].key&&(a.stopImmediatePropagation(),a.preventDefault(),Kl())};f.Vz=function(a){return a.name};f.Wf=function(a,b){switch(a){case "casting":return this.loaded;case "receivers":return this.N;case "currentReceiver":return b&&("cast-selector-receiver"==b.key?Kl():m5(this,b)),this.D;case "castSelector":var c=xq(),c=1==c.length&&"cast-selector-receiver"==c[0].key;b&&c&&Kl();return c}};
f.Vf=function(){return["casting","receivers","currentReceiver","castSelector"]};function n5(a){this.addEventListener=y(a.addEventListener,a);this.removeEventListener=y(a.removeEventListener,a);this.dispatchEvent=y(a.dispatchEvent,a)}
function o5(a,b,c){U.call(this);this.A=a;this.J=y(b,null);this.F=c;this.g=0;this.B=new I(NaN,NaN);b=c?4E3:3E3;this.C=new Tq(z(this.Ab,1,!1),b,this);T(this,this.C);this.D=new Tq(z(this.Ab,2,!1),b,this);T(this,this.D);c||(this.o=R(a,"mouseover",y(this.Zo,this)),this.G=R(a,"mousemove",y(this.yw,this)),this.I=R(a,"mouseleave",y(this.xw,this)));this.k=Tc?R(a,"keypress",y(this.ww,this)):R(a,"focusin",y(this.Xo,this));this.j=R(a,"mousedown",y(this.Yo,this));this.Ab(130,!0)}B(o5,U);f=o5.prototype;
f.yw=function(a){a=new I(wh(a),xh(a));Kc(a,this.B)||(this.B=a,this.Ab(2,!0))};f.xw=function(){this.Ab(2,!1)};f.Zo=function(a){var b=new I(wh(a),xh(a));Kc(b,this.B)||(this.B=b,this.g&2&&this.J(a.target)&&(this.Ab(4,!0),Ch(this.o),this.o=R(this.A,"mouseout",y(this.yC,this))))};f.yC=function(){this.Ab(4,!1);Ch(this.o);this.o=R(this.A,"mouseover",y(this.Zo,this))};f.ww=function(){this.Ab(1,!0)};f.Xo=function(){this.Ab(1,!0);Ch(this.k);this.k=R(this.A,"focusout",y(this.NE,this))};
f.NE=function(){this.Ab(1,!1);Ch(this.k);this.k=R(this.A,"focusin",y(this.Xo,this))};f.Yo=function(){var a=8;this.F&&(a|=2);this.Ab(a,!0);Ch(this.j);this.j=R(document,"mouseup",y(this.LE,this))};f.LE=function(){this.Ab(8,!1);Ch(this.j);this.j=R(this.A,"mousedown",y(this.Yo,this))};f.Ab=function(a,b){var c=!this.g;b?(this.g|=a,a&1&&this.C.start(),a&2&&this.D.start()):(this.g&=~a,a&1&&this.C.stop(),a&2&&this.D.stop());var d=!this.g;c!=d&&this.publish("autohideupdate",d)};
f.L=function(){Ch(this.o);Ch(this.G);Ch(this.I);Ch(this.k);Ch(this.j);o5.H.L.call(this)};function p5(a,b){Y.call(this,["span","","{{sparkline_container}}"]);this.k=a;this.j=b;this.g=new OI("");T(this,this.g);Oy(this.template,"sparkline_container",this.g)}B(p5,Y);function q5(){Y.call(this,["div","html5-video-info-panel",["span","html5-video-info-panel-close",{role:"button",title:"close"},"[x]"],["div","html5-video-info-panel-content",["table","html5-video-info-table",["tr","",["th","","Video ID:"],["td","","{{video_id}}"]],["tr","",["th","","Dimensions:"],["td","","{{dimensions}}"]],["tr","",["th","","Resolution:"],["td","","{{resolution}}"]],["tr","",["th","","Volume:"],["td","","{{volume}}"]],["tr","",["th","","Stream Type:"],["td","","{{stream_type}}"]],
["tr",{style:"{{cpn_style}}"},["th","","CPN:"],["td","","{{cpn}}"]],["tr","",["th","","Mime Type:"],["td","","{{mime}}"]],["tr","",["th","","DASH:"],["td","","{{dash}}"]],["tr",{style:"{{drm_style}}"},["th","","Protected:"],["td","","{{drm}}"]],["tr","",["th","","Bandwidth:"],["td","",["span","","{{bandwidth_sparkline}}"],["span","","{{bandwidth_kbps}}"]]]],["table",["html5-video-info-table","html5-video-element-info-table"],["tr","",["th","","Decoded Frames"],["th","","Dropped Frames"],["th","",
"Parsed Frames"],["th","","Presented Frames"]],["tr","",["td","","{{decoded_frames}}"],["td","","{{dropped_frames}}"],["td","","{{parsed_frames}}"],["td","","{{presented_frames}}"]],["tr","",["th","","Video Bytes Decoded"],["th","","Audio Bytes Decoded"],["th","","Painted Frames"],["th","","Paint Delay"]],["tr","",["td","","{{video_bytes_decoded}}"],["td","","{{audio_bytes_decoded}}"],["td","","{{painted_frames}}"],["td","","{{paint_delay}}"]]]]]);this.closeButton=this.template.g["html5-video-info-panel-close"];
this.g=new p5(200,14);T(this,this.g);Oy(this.template,"bandwidth_sparkline",this.g)}B(q5,Y);
q5.prototype.update=function(a){a.dimensions=a.video_element_width+" x "+a.video_element_height;1<a.device_pixel_ratio&&(a.dimensions+=" * "+a.device_pixel_ratio);a.resolution=a.video_width+" x "+a.video_height;1<a.video_fps&&(a.resolution+="@"+a.video_fps);a.volume+="%";a.drm_flavor?(a.drm_style="",a.drm=a.drm_flavor+" / "+a.drm_key_system):(a.drm_style="display:none",a.drm="");var b=a.bandwidth_history;a.bandwidth_kbps=(8*ab(b)/1024).toFixed(0)+" Kbps";for(var c=this.g,d=c.g,e=Math.max.apply(Math,
b)||1,g=[],h=0;h<b.length;h++)g.push(h/b.length*c.k+","+c.j*(1-b[h]/e));b='<svg width="'+c.k+'" height="'+c.j+'" viewbox="0 0 '+c.k+" "+c.j+'"><g><polyline stroke="white" fill="none" points="'+g.join(" ")+'"/></g></svg>';d.element.innerHTML=b;a.cpn_style=a.cpn?"":"display:none";this.template.update(a)};q5.prototype.L=function(){this.closeButton=null;q5.H.L.call(this)};function r5(a){var b=["div","html5-video-container"],c=["div","html5-video-player",{tabindex:-1,id:a.W.attrs.id},b];b.push(["div","html5-video-content"]);GH.call(this,c);ih(this.element,"version",a.W.assets.js);this.app=a;this.ha=null;this.k=this.template.g["html5-video-container"];this.J=new mg(0,0,0,0);this.g=null;this.V=new mg(0,0,0,0);this.ka=this.template.g["html5-video-content"];this.wa=this.Ja=0;this.S=null;this.P=0;this.ga=null;a=a.R();this.Ha=a.ma||"blazer"==a.j;this.ma=0;this.G=new q5;T(this,
this.G);this.G.Y(this.element);KA(this,this.G.closeButton,"click",this.bm);this.j=new e2;this.hm();Mf({YTP_ADVERTISEMENT:"\u0420\u0435\u043a\u043b\u0430\u043c\u0430",YTP_AUDIO_TRACK_TITLE:"\u0417\u0432\u0443\u043a\u043e\u0432\u0430\u044f \u0434\u043e\u0440\u043e\u0436\u043a\u0430",YTP_AUTO:"\u0410\u0432\u0442\u043e\u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430",YTP_AUTO_WITH_QUALITY_2:"\u0410\u0432\u0442\u043e\u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430 ($VIDEO_QUALITY)",YTP_CHANGE_QUALITY_WITH_QUALITY_2:"\u0418\u0437\u043c\u0435\u043d\u0438\u0442\u044c \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u043e ($VIDEO_QUALITY)",
YTP_COPY_DEBUG_INFO:"\u0421\u043a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0434\u0430\u043d\u043d\u044b\u0435 \u0434\u043b\u044f \u043e\u0442\u043b\u0430\u0434\u043a\u0438",YTP_COPY_VIDEO_URL:"\u041a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u0442\u044c URL \u0432\u0438\u0434\u0435\u043e",YTP_COPY_VIDEO_URL_AT_TIME:"\u041a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u0442\u044c URL \u0432\u0438\u0434\u0435\u043e \u0441 \u043f\u0440\u0438\u0432\u044f\u0437\u043a\u043e\u0439 \u043a\u043e \u0432\u0440\u0435\u043c\u0435\u043d\u0438",
YTP_DRAWER_HEADER_TEXT:"\u0412 \u044d\u0442\u043e\u043c \u0432\u0438\u0434\u0435\u043e",YTP_DRAWER_POLL_SUBMIT:"\u041e\u0442\u043f\u0440\u0430\u0432\u0438\u0442\u044c",YTP_GET_DEBUG_INFO:"\u041f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044e \u043e\u0431 \u043e\u0442\u043b\u0430\u0434\u043a\u0435",YTP_GET_VIDEO_URL:"\u041f\u043e\u043b\u0443\u0447\u0438\u0442\u044c URL \u0432\u0438\u0434\u0435\u043e",YTP_GET_VIDEO_URL_AT_TIME:"\u041f\u043e\u043b\u0443\u0447\u0438\u0442\u044c URL \u0432\u0438\u0434\u0435\u043e \u0441 \u043f\u0440\u0438\u0432\u044f\u0437\u043a\u043e\u0439 \u043a\u043e \u0432\u0440\u0435\u043c\u0435\u043d\u0438",
YTP_GET_EMBED:"\u041f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u043a\u043e\u0434 \u0434\u043b\u044f \u0432\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u043d\u0438\u044f",YTP_DECREASE_PLAYBACK_SPEED:"\u0423\u043c\u0435\u043d\u044c\u0448\u0438\u0442\u044c \u0441\u043a\u043e\u0440\u043e\u0441\u0442\u044c \u0432\u043e\u0441\u043f\u0440\u043e\u0438\u0437\u0432\u0435\u0434\u0435\u043d\u0438\u044f",YTP_DEFAULT_VIEW:"\u0420\u0435\u0436\u0438\u043c \u043f\u0440\u043e\u0441\u043c\u043e\u0442\u0440\u0430 \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e",
YTP_EMBED_COPY:"\u041a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u0442\u044c HTML-\u043a\u043e\u0434",YTP_ERROR_GENERIC:"\u041f\u0440\u043e\u0438\u0437\u043e\u0448\u043b\u0430 \u043e\u0448\u0438\u0431\u043a\u0430. \u041f\u043e\u0432\u0442\u043e\u0440\u0438\u0442\u0435 \u043f\u043e\u043f\u044b\u0442\u043a\u0443 \u043f\u043e\u0437\u0436\u0435.",YTP_ERROR_GENERIC_WITH_LINK_2:"\u041f\u0440\u043e\u0438\u0437\u043e\u0448\u043b\u0430 \u043e\u0448\u0438\u0431\u043a\u0430. \u041f\u043e\u0432\u0442\u043e\u0440\u0438\u0442\u0435 \u043f\u043e\u043f\u044b\u0442\u043a\u0443 \u043f\u043e\u0437\u0436\u0435. $BEGIN_LINK\u041f\u043e\u0434\u0440\u043e\u0431\u043d\u0435\u0435...$END_LINK",
YTP_EXIT_FULLSCREEN:"\u0412\u044b\u0445\u043e\u0434 \u0438\u0437 \u043f\u043e\u043b\u043d\u043e\u044d\u043a\u0440\u0430\u043d\u043d\u043e\u0433\u043e \u0440\u0435\u0436\u0438\u043c\u0430",YTP_FEATURED:"\u0418\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u043e\u0435",YTP_FULLSCREEN:"\u0412\u043e \u0432\u0435\u0441\u044c \u044d\u043a\u0440\u0430\u043d",YTP_INCREASE_PLAYBACK_SPEED:"\u0423\u0432\u0435\u043b\u0438\u0447\u0438\u0442\u044c \u0441\u043a\u043e\u0440\u043e\u0441\u0442\u044c \u0432\u043e\u0441\u043f\u0440\u043e\u0438\u0437\u0432\u0435\u0434\u0435\u043d\u0438\u044f",
YTP_KEYBOARD_SHORTCUTS:"\u0411\u044b\u0441\u0442\u0440\u044b\u0435 \u043a\u043b\u0430\u0432\u0438\u0448\u0438",YTP_LIVE_NOW:"\u0421\u0415\u0419\u0427\u0410\u0421 \u0412 \u041f\u0420\u042f\u041c\u041e\u041c \u042d\u0424\u0418\u0420\u0415",YTP_MIX:"\u041c\u0438\u043a\u0441",YTP_MORE:"\u0415\u0449\u0451",YTP_MDX_TITLE:"\u0412\u044b\u0431\u0435\u0440\u0438\u0442\u0435 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u043e \u0434\u043b\u044f \u043f\u0440\u043e\u0441\u043c\u043e\u0442\u0440\u0430",
YTP_MDX_TOOLTIP:"\u0412\u043e\u0441\u043f\u0440\u043e\u0438\u0437\u0432\u0435\u0441\u0442\u0438 \u043d\u0430 \u0442\u0435\u043b\u0435\u0432\u0438\u0437\u043e\u0440\u0435",YTP_MDX_MY_COMPUTER:"\u042d\u0442\u043e\u0442 \u043a\u043e\u043c\u043f\u044c\u044e\u0442\u0435\u0440",YTP_MUTE:"\u041e\u0442\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435 \u0437\u0432\u0443\u043a\u0430",YTP_NEXT:"\u0421\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0435",YTP_NEXT_VIDEO_IN:"\u0421\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0435 \u0432\u0438\u0434\u0435\u043e \u0447\u0435\u0440\u0435\u0437\u00a0$TIME_LEFT",
YTP_NORMAL_SPEED:"\u041e\u0431\u044b\u0447\u043d\u0430\u044f",YTP_ON:"\u0412\u041a\u041b",YTP_OFF:"\u0412\u042b\u041a\u041b",YTP_OPTIONS:"\u041f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b",YTP_PLAY_ALL:"\u0412\u043e\u0441\u043f\u0440\u043e\u0438\u0437\u0432\u0435\u0441\u0442\u0438 \u0432\u0441\u0435",YTP_PLAY_PAUSE:"\u0412\u043e\u0441\u043f\u0440\u043e\u0438\u0437\u0432\u0435\u0434\u0435\u043d\u0438\u0435/\u043f\u0430\u0443\u0437\u0430",YTP_PREVIOUS:"\u041d\u0430\u0437\u0430\u0434",YTP_PLAYLIST:"\u041f\u043b\u0435\u0439\u043b\u0438\u0441\u0442",
YTP_PLAYLIST_UP_NEXT:"\u0421\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0435",YTP_QUALITY_TITLE:"\u041a\u0430\u0447\u0435\u0441\u0442\u0432\u043e",YTP_REPLAY:"\u041f\u043e\u0432\u0442\u043e\u0440\u0438\u0442\u044c",YTP_REPORT_ISSUE:"\u0421\u043e\u043e\u0431\u0449\u0438\u0442\u044c \u043e \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0435 \u0432\u043e\u0441\u043f\u0440\u043e\u0438\u0437\u0432\u0435\u0434\u0435\u043d\u0438\u044f",YTP_SEEK_BACK:"\u041d\u0430\u0437\u0430\u0434 \u043d\u0430 10 \u0441\u0435\u043a\u0443\u043d\u0434",
YTP_SEEK_FORWARD:"\u0412\u043f\u0435\u0440\u0435\u0434 \u043d\u0430 10 \u0441\u0435\u043a\u0443\u043d\u0434",YTP_SEEK_PERCENT:"\u041f\u0435\u0440\u0435\u0439\u0442\u0438 \u043a 0%-90%.",YTP_SETTINGS:"\u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438",YTP_SHARE:"\u043f\u043e\u0434\u0435\u043b\u0438\u0442\u044c\u0441\u044f",YTP_SHARE_WITH_PLAYLIST:"\u041f\u043e\u0434\u0435\u043b\u0438\u0442\u044c\u0441\u044f \u0432 \u043f\u043b\u0435\u0439\u043b\u0438\u0441\u0442\u0435",YTP_SHOW_VIDEO_INFO:"\u0421\u0442\u0430\u0442\u0438\u0441\u0442\u0438\u043a\u0430 \u0434\u043b\u044f \u0441\u0438\u0441\u0430\u0434\u043c\u0438\u043d\u043e\u0432",
YTP_SPEED_TITLE:"\u0421\u043a\u043e\u0440\u043e\u0441\u0442\u044c",YTP_ST_COLLAPSE:"\u0421\u0432\u0435\u0440\u043d\u0443\u0442\u044c",YTP_ST_EXPAND:"\u0420\u0430\u0437\u0432\u0435\u0440\u043d\u0443\u0442\u044c",YTP_SUBTITLES:"\u0421\u0443\u0431\u0442\u0438\u0442\u0440\u044b",YTP_THREED_SHORT:"3D",YTP_THEATER_MODE:"\u0428\u0438\u0440\u043e\u043a\u0438\u0439 \u044d\u043a\u0440\u0430\u043d",YTP_TOGGLE_FULLSCREEN:"\u0412\u043e \u0432\u0435\u0441\u044c \u044d\u043a\u0440\u0430\u043d",YTP_TOGGLE_MUTE:"\u041f\u0435\u0440\u0435\u0432\u0435\u0441\u0442\u0438 \u0432 \u0431\u0435\u0437\u0437\u0432\u0443\u0447\u043d\u044b\u0439 \u0440\u0435\u0436\u0438\u043c",
YTP_UNMUTE:"\u0412\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u0437\u0432\u0443\u043a",YTP_URL_NAVIGATE:"\u0421\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u043d\u0430 YouTube.com",YTP_WATCH_ALL:"\u041f\u0440\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u0432\u0438\u0434\u0435\u043e \u043f\u043e\u043b\u043d\u043e\u0441\u0442\u044c\u044e",YTP_WATCH_LATER:"\u041f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u043f\u043e\u0437\u0436\u0435",YTP_WATCH_LATER_AS_2:"\u041f\u0440\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u043f\u043e\u0437\u0436\u0435 \u043a\u0430\u043a $USER_NAME",
YTP_WEBGL_3D_ANAGLYPH:"\u0410\u043d\u0430\u0433\u043b\u0438\u0444",YTP_WEBGL_3D_2D:"2D",YTP_SUBSCRIBE_AS:"\u041f\u043e\u0434\u043f\u0438\u0441\u0430\u0442\u044c\u0441\u044f \u043a\u0430\u043a $USER_NAME",YTP_LIKE_AS:'\u041f\u043e\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u043e\u0442\u043c\u0435\u0442\u043a\u0443 "\u041d\u0440\u0430\u0432\u0438\u0442\u0441\u044f" \u043a\u0430\u043a $USER_NAME',YTP_DISLIKE_AS:'\u041f\u043e\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u043e\u0442\u043c\u0435\u0442\u043a\u0443 "\u041d\u0435 \u043d\u0440\u0430\u0432\u0438\u0442\u0441\u044f" \u043a\u0430\u043a $USER_NAME',
YTP_WATCH_NEXT:"\u0420\u0435\u043a\u043e\u043c\u0435\u043d\u0434\u0430\u0446\u0438\u0438",YTP_PLAY:"\u0421\u043c\u043e\u0442\u0440\u0435\u0442\u044c",YTP_WATERMARK:"\u0412\u043e\u0434\u044f\u043d\u043e\u0439 \u0437\u043d\u0430\u043a",YTP_ERROR_STREAMING_UNAVAILABLE:"\u0421\u0435\u0439\u0447\u0430\u0441 \u0432\u043e\u0441\u043f\u0440\u043e\u0438\u0437\u0432\u0435\u0441\u0442\u0438 \u0432\u0438\u0434\u0435\u043e \u043d\u0435\u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e, \u0442\u0430\u043a \u043a\u0430\u043a \u043e\u043d\u043e \u0431\u044b\u043b\u043e \u0441\u043a\u0430\u0447\u0430\u043d\u043e \u0434\u043b\u044f \u043e\u0444\u043b\u0430\u0439\u043d-\u043f\u0440\u043e\u0441\u043c\u043e\u0442\u0440\u0430.",
YTP_ERROR_LICENSE:"\u041d\u0435 \u0443\u0434\u0430\u043b\u043e\u0441\u044c \u0432\u043e\u0441\u043f\u0440\u043e\u0438\u0437\u0432\u0435\u0441\u0442\u0438 \u0432\u0438\u0434\u0435\u043e \u0438\u0437-\u0437\u0430 \u043f\u0440\u043e\u0431\u043b\u0435\u043c \u0441 \u043b\u0438\u0446\u0435\u043d\u0437\u0438\u0435\u0439.",YTP_ERROR_VIDEO_NOT_FOUND:"\u041d\u0435 \u0443\u0434\u0430\u0435\u0442\u0441\u044f \u043d\u0430\u0439\u0442\u0438 \u0432\u0438\u0434\u0435\u043e.",YTP_ERROR_ALREADY_PINNED_ON_A_DEVICE:"\u0412\u044b \u0443\u0436\u0435 \u0441\u043a\u0430\u0447\u0430\u043b\u0438 \u044d\u0442\u043e \u0432\u0438\u0434\u0435\u043e \u043d\u0430 \u043c\u0430\u043a\u0441\u0438\u043c\u0430\u043b\u044c\u043d\u043e\u0435 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432, \u0440\u0430\u0437\u0440\u0435\u0448\u0435\u043d\u043d\u043e\u0435 \u043f\u0440\u0430\u0432\u043e\u043e\u0431\u043b\u0430\u0434\u0430\u0442\u0435\u043b\u0435\u043c. \u0427\u0442\u043e\u0431\u044b \u043f\u0440\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u044d\u0442\u043e \u0432\u0438\u0434\u0435\u043e \u0437\u0434\u0435\u0441\u044c, \u043e\u0442\u043a\u0440\u0435\u043f\u0438\u0442\u0435 \u0435\u0433\u043e \u043e\u0442 \u0434\u0440\u0443\u0433\u043e\u0433\u043e \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u0430.",
YTP_ERROR_CANNOT_ACTIVATE_RENTAL:"\u041e\u0448\u0438\u0431\u043a\u0430 \u0430\u043a\u0442\u0438\u0432\u0430\u0446\u0438\u0438 \u043f\u043b\u0430\u0442\u043d\u043e\u0433\u043e \u043f\u0440\u043e\u0441\u043c\u043e\u0442\u0440\u0430. \u041f\u0435\u0440\u0435\u0437\u0430\u0433\u0440\u0443\u0437\u0438\u0442\u0435 \u044d\u0442\u0443 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0443 \u0438\u043b\u0438 \u043f\u043e\u0432\u0442\u043e\u0440\u0438\u0442\u0435 \u043f\u043e\u043f\u044b\u0442\u043a\u0443 \u043f\u043e\u0437\u0436\u0435.",
YTP_ERROR_PURCHASE_NOT_FOUND:"\u0422\u0440\u0435\u0431\u0443\u0435\u0442\u0441\u044f \u043e\u043f\u043b\u0430\u0442\u0438\u0442\u044c \u043f\u0440\u043e\u0441\u043c\u043e\u0442\u0440 \u044d\u0442\u043e\u0433\u043e \u0432\u0438\u0434\u0435\u043e.",YTP_ERROR_PURCHASE_REFUNDED:"\u041f\u043e \u0434\u0430\u043d\u043d\u043e\u0439 \u043f\u043e\u043a\u0443\u043f\u043a\u0435 \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d \u0432\u043e\u0437\u0432\u0440\u0430\u0442 \u0441\u0440\u0435\u0434\u0441\u0442\u0432.",
YTP_ERROR_STOPPED_BY_ANOTHER_PLAYBACK:"\u0412\u0438\u0434\u0435\u043e \u0432\u043e\u0441\u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u0442\u0441\u044f \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u0432\u0430\u0448\u0435\u0433\u043e \u0430\u043a\u043a\u0430\u0443\u043d\u0442\u0430 \u0432 \u0434\u0440\u0443\u0433\u043e\u043c \u043c\u0435\u0441\u0442\u0435. \u041f\u0435\u0440\u0435\u0437\u0430\u0433\u0440\u0443\u0437\u0438\u0442\u0435 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0443, \u0447\u0442\u043e\u0431\u044b \u043f\u0440\u043e\u0434\u043e\u043b\u0436\u0438\u0442\u044c \u043f\u0440\u043e\u0441\u043c\u043e\u0442\u0440.",
YTP_ERROR_TOO_MANY_STREAMS_PER_USER:"\u0412\u043e\u0441\u043f\u0440\u043e\u0438\u0437\u0432\u0435\u0434\u0435\u043d\u0438\u0435 \u043e\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u043e, \u0442\u0430\u043a \u043a\u0430\u043a \u0432\u043e\u0441\u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u0442\u0441\u044f \u0441\u043b\u0438\u0448\u043a\u043e\u043c \u043c\u043d\u043e\u0433\u043e \u0432\u0438\u0434\u0435\u043e, \u043e\u0442\u043d\u043e\u0441\u044f\u0449\u0438\u0445\u0441\u044f \u043a \u043e\u0434\u043d\u043e\u043c\u0443 \u0430\u043a\u043a\u0430\u0443\u043d\u0442\u0443.",
YTP_ERROR_TOO_MANY_STREAMS_PER_ENTITLEMENT:"\u0412\u043e\u0441\u043f\u0440\u043e\u0438\u0437\u0432\u0435\u0434\u0435\u043d\u0438\u0435 \u043e\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u043e, \u0442\u0430\u043a \u043a\u0430\u043a \u0441\u043b\u0438\u0448\u043a\u043e\u043c \u043c\u043d\u043e\u0433\u043e \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432 \u0432\u043e\u0441\u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u0442 \u044d\u0442\u043e \u0432\u0438\u0434\u0435\u043e.",
YTP_ERROR_STREAMING_DEVICES_QUOTA_PER_24H_EXCEEDED:"\u0417\u0430 \u0441\u0443\u0442\u043a\u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u043e \u0441\u043b\u0438\u0448\u043a\u043e\u043c \u0431\u043e\u043b\u044c\u0448\u043e\u0435 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432/IP-\u0430\u0434\u0440\u0435\u0441\u043e\u0432.",YTP_ERROR_UNUSUAL_ACTIVITY:"\u0412\u0438\u0434\u0435\u043e \u0441\u0435\u0439\u0447\u0430\u0441 \u043d\u0435\u0434\u043e\u0441\u0442\u0443\u043f\u043d\u043e \u0438\u0437-\u0437\u0430 \u043d\u0435\u043e\u0431\u044b\u0447\u043d\u043e\u0439 \u0430\u043a\u0442\u0438\u0432\u043d\u043e\u0441\u0442\u0438 \u0432 \u0430\u043a\u043a\u0430\u0443\u043d\u0442\u0435.",
YTP_ERROR_NOT_SIGNED_IN:"\u0427\u0442\u043e\u0431\u044b \u043f\u0440\u043e\u0434\u043e\u043b\u0436\u0438\u0442\u044c \u043f\u0440\u043e\u0441\u043c\u043e\u0442\u0440, \u0432\u043e\u0439\u0434\u0438\u0442\u0435 \u0432 \u0430\u043a\u043a\u0430\u0443\u043d\u0442.",YTP_CLOSE:"\u0417\u0430\u043a\u0440\u044b\u0442\u044c",YTP_ANNOTATIONS:"\u0410\u043d\u043d\u043e\u0442\u0430\u0446\u0438\u0438",YTP_DONE:"\u0413\u043e\u0442\u043e\u0432\u043e",YTP_SHARE_THIS_PLAYLIST:"\u041f\u043e\u0434\u0435\u043b\u0438\u0442\u044c\u0441\u044f \u043f\u043b\u0435\u0439\u043b\u0438\u0441\u0442\u043e\u043c",
YTP_UPLOADED_BY_2:"\u0410\u0432\u0442\u043e\u0440: $AUTHOR",YTP_SEEK_SLIDER:"\u041f\u043e\u043b\u0437\u0443\u043d\u043e\u043a \u043f\u043e\u0438\u0441\u043a\u0430",YTP_PAUSE:"\u041f\u0430\u0443\u0437\u0430",YTP_AUTOPLAY:"\u0410\u0432\u0442\u043e\u0432\u043e\u0441\u043f\u0440\u043e\u0438\u0437\u0432\u0435\u0434\u0435\u043d\u0438\u0435",YTP_AUTOPLAY_COUNTDOWN_2:"\u0421\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0435 \u0432\u0438\u0434\u0435\u043e \u0447\u0435\u0440\u0435\u0437 $SECONDS_LEFT",YTP_AUTOPLAY_PAUSED:"\u0410\u0432\u0442\u043e\u0432\u043e\u0441\u043f\u0440\u043e\u0438\u0437\u0432\u0435\u0434\u0435\u043d\u0438\u0435 \u043f\u0440\u0438\u043e\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u043e.",
YTP_CANCEL:"\u041e\u0442\u043c\u0435\u043d\u0430",YTP_ON_GOOGLE_PLUS:"\u041d\u0430 Google+",YTP_STILL_THERE:"\u0427\u0442\u043e\u0431\u044b \u043f\u0440\u043e\u0434\u043e\u043b\u0436\u0438\u0442\u044c \u043f\u0440\u043e\u0441\u043c\u043e\u0442\u0440 \u043f\u043b\u0435\u0439\u043b\u0438\u0441\u0442\u0430, \u043d\u0430\u0436\u043c\u0438\u0442\u0435 \u043a\u043d\u043e\u043f\u043a\u0443 \u043d\u0438\u0436\u0435.",YTP_DISMISS:"\u041e\u041a",YTP_RESET:"\u0421\u0431\u0440\u043e\u0441\u0438\u0442\u044c",
YTP_STOP:"\u041e\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c \u043f\u0440\u044f\u043c\u0443\u044e \u0442\u0440\u0430\u043d\u0441\u043b\u044f\u0446\u0438\u044e",YTP_LIKE:"\u041d\u0440\u0430\u0432\u0438\u0442\u0441\u044f",YTP_DISLIKE:"\u041d\u0435 \u043d\u0440\u0430\u0432\u0438\u0442\u0441\u044f",YTP_MORE_INFO:"\u041f\u043e\u0434\u0440\u043e\u0431\u043d\u0435\u0435\u2026",YTP_SCREENREADER_VOLUME_SETTING:"\u0433\u0440\u043e\u043c\u043a\u043e\u0441\u0442\u044c",YTP_SCREENREADER_VOLUME_MUTED:"\u0437\u0432\u0443\u043a \u043e\u0442\u043a\u043b\u044e\u0447\u0435\u043d",
YTP_SCREENREADER_VOLUME_MUTE:"\u043e\u0442\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u0437\u0432\u0443\u043a",YTP_SCREENREADER_VOLUME_UNMUTE:"\u0432\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u0437\u0432\u0443\u043a",YTP_SCREENREADER_CONTROL_TOGGLE:"\u043f\u0435\u0440\u0435\u043a\u043b\u044e\u0447\u0438\u0442\u044c",YTP_SAMPLE_SUBTITLES:"\u0421\u0443\u0431\u0442\u0438\u0442\u0440\u044b \u0431\u0443\u0434\u0443\u0442 \u0432\u044b\u0433\u043b\u044f\u0434\u0435\u0442\u044c \u0442\u0430\u043a",YTP_HTML5_CONTEXT_MENU_LINK:"\u041e \u043f\u0440\u043e\u0438\u0433\u0440\u044b\u0432\u0430\u0442\u0435\u043b\u0435 HTML5",
YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK:"\u042d\u0442\u043e\u0442 \u0444\u043e\u0440\u043c\u0430\u0442 \u0432\u0438\u0434\u0435\u043e \u043d\u0435 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0435\u0442\u0441\u044f",YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK:"\u0412 \u043d\u0430\u0441\u0442\u043e\u044f\u0449\u0435\u0435 \u0432\u0440\u0435\u043c\u044f \u0432\u0430\u0448 \u0431\u0440\u0430\u0443\u0437\u0435\u0440 \u043d\u0435 \u0440\u0430\u0441\u043f\u043e\u0437\u043d\u0430\u0435\u0442 \u043d\u0438 \u043e\u0434\u0438\u043d \u0438\u0437 \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u044b\u0445 \u0432\u0438\u0434\u0435\u043e\u0444\u043e\u0440\u043c\u0430\u0442\u043e\u0432. $BEGIN_LINK\u041d\u0430\u0436\u043c\u0438\u0442\u0435 \u0437\u0434\u0435\u0441\u044c, \u0447\u0442\u043e\u0431\u044b \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u043e\u0442\u0432\u0435\u0442\u044b \u043d\u0430 \u0447\u0430\u0441\u0442\u043e \u0437\u0430\u0434\u0430\u0432\u0430\u0435\u043c\u044b\u0435 \u0432\u043e\u043f\u0440\u043e\u0441\u044b \u043e \u0432\u0438\u0434\u0435\u043e HTML5.$END_LINK",
YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK_FLASH:"\u0414\u043b\u044f \u0432\u043e\u0441\u043f\u0440\u043e\u0438\u0437\u0432\u0435\u0434\u0435\u043d\u0438\u044f \u0432\u0438\u0434\u0435\u043e \u0442\u0440\u0435\u0431\u0443\u0435\u0442\u0441\u044f \u043f\u0440\u043e\u0438\u0433\u0440\u044b\u0432\u0430\u0442\u0435\u043b\u044c Adobe Flash Player. $BEGIN_LINK\u0417\u0430\u0433\u0440\u0443\u0437\u0438\u0442\u044c \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u044e\u044e \u0432\u0435\u0440\u0441\u0438\u044e$END_LINK.",
YTP_ERROR_CAST_SESSION_DEVICE_MISMATCHED:"\u0423\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u043e \u0432 \u0441\u0435\u0430\u043d\u0441\u0435 \u043d\u0435 \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u0435\u0442 \u0437\u0430\u043f\u0440\u0430\u0448\u0438\u0432\u0430\u0435\u043c\u043e\u043c\u0443.",YTP_ERROR_CAST_SESSION_VIDEO_MISMATCHED:"\u0412\u0438\u0434\u0435\u043e \u0432 \u0441\u0435\u0430\u043d\u0441\u0435 \u043d\u0435 \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u0435\u0442 \u0437\u0430\u043f\u0440\u0430\u0448\u0438\u0432\u0430\u0435\u043c\u043e\u043c\u0443.",
YTP_ERROR_CAST_TOKEN_EXPIRED:"\u0412\u0440\u0435\u043c\u044f \u0441\u0435\u0430\u043d\u0441\u0430 \u0438\u0441\u0442\u0435\u043a\u043b\u043e. \u041e\u0431\u043d\u043e\u0432\u0438\u0442\u0435 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0443.",YTP_ERROR_CAST_TOKEN_FAILED:"\u0421\u0435\u0430\u043d\u0441 \u043d\u0435\u0434\u043e\u0441\u0442\u0443\u043f\u0435\u043d. \u041e\u0431\u043d\u043e\u0432\u0438\u0442\u0435 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0443 \u0438\u043b\u0438 \u043f\u043e\u0432\u0442\u043e\u0440\u0438\u0442\u0435 \u043f\u043e\u043f\u044b\u0442\u043a\u0443 \u043f\u043e\u0437\u0436\u0435.",
YTP_ERROR_CAST_TOKEN_MALFORMED:"\u041d\u0435\u0432\u0435\u0440\u043d\u044b\u0439 \u0441\u0435\u0430\u043d\u0441. \u041e\u0431\u043d\u043e\u0432\u0438\u0442\u0435 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0443 \u0438\u043b\u0438 \u043f\u043e\u0432\u0442\u043e\u0440\u0438\u0442\u0435 \u043f\u043e\u043f\u044b\u0442\u043a\u0443 \u043f\u043e\u0437\u0436\u0435.",YTP_ERROR_GEO_FAILURE:"\u042d\u0442\u043e \u0432\u0438\u0434\u0435\u043e \u043d\u0435\u0434\u043e\u0441\u0442\u0443\u043f\u043d\u043e \u0434\u043b\u044f \u043f\u0440\u043e\u0441\u043c\u043e\u0442\u0440\u0430 \u0432 \u0432\u0430\u0448\u0435\u0439 \u0441\u0442\u0440\u0430\u043d\u0435.",
YTP_ERROR_INVALID_DRM_MESSAGE:"\u041d\u0435\u0434\u043e\u043f\u0443\u0441\u0442\u0438\u043c\u043e\u0435 \u0441\u043f\u0435\u0446\u0438\u0430\u043b\u044c\u043d\u043e\u0435 \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0435 \u0441\u0438\u0441\u0442\u0435\u043c\u044b DRM.",YTP_ERROR_RENTAL_EXPIRED:"\u0412\u0440\u0435\u043c\u044f \u043f\u0440\u043e\u043a\u0430\u0442\u0430 \u0437\u0430\u043a\u043e\u043d\u0447\u0438\u043b\u043e\u0441\u044c.",YTP_ERROR_RETRYABLE_ERROR:"\u041f\u0440\u043e\u0438\u0437\u043e\u0448\u043b\u0430 \u0432\u0440\u0435\u043c\u0435\u043d\u043d\u0430\u044f \u043e\u0448\u0438\u0431\u043a\u0430 \u0441\u0435\u0440\u0432\u0435\u0440\u0430, \u043f\u043e\u0432\u0442\u043e\u0440\u0438\u0442\u0435 \u043f\u043e\u043f\u044b\u0442\u043a\u0443 \u043f\u043e\u0437\u0436\u0435.",
YTP_ERROR_SERVER_ERROR:"\u041f\u0440\u043e\u0438\u0437\u043e\u0448\u043b\u0430 \u0432\u043d\u0443\u0442\u0440\u0435\u043d\u043d\u044f\u044f \u043e\u0448\u0438\u0431\u043a\u0430. \u041f\u043e\u0432\u0442\u043e\u0440\u0438\u0442\u0435 \u043f\u043e\u043f\u044b\u0442\u043a\u0443 \u043f\u043e\u0437\u0436\u0435.",YTP_ERROR_STREAMING_NOT_ALLOWED:"\u0412\u043e\u0441\u043f\u0440\u043e\u0438\u0437\u0432\u0435\u0434\u0435\u043d\u0438\u0435 \u043d\u0435\u0434\u043e\u0441\u0442\u0443\u043f\u043d\u043e, \u0442\u0430\u043a \u043a\u0430\u043a \u0432\u0438\u0434\u0435\u043e \u043f\u0440\u0438\u043a\u0440\u0435\u043f\u043b\u0435\u043d\u043e \u043a \u0434\u0440\u0443\u0433\u043e\u043c\u0443 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u0443.",
YTP_ERROR_UNSUPPORTED_DEVICE:"\u0412\u043e\u0441\u043f\u0440\u043e\u0438\u0437\u0432\u0435\u0434\u0435\u043d\u0438\u0435 \u043d\u0435 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0435\u0442\u0441\u044f \u0434\u0430\u043d\u043d\u044b\u043c \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u043e\u043c.",YTP_ERROR_VIDEO_FORBIDDEN:"\u0414\u043e\u0441\u0442\u0443\u043f \u043a \u0432\u0438\u0434\u0435\u043e \u0437\u0430\u043f\u0440\u0435\u0449\u0435\u043d.",YTP_MDX_STATUS_CONNECTED:"\u0412\u043e\u0441\u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u0442\u0441\u044f \u043d\u0430",
YTP_MDX_STATUS_CONNECTING:"\u041f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435 \u043a",YTP_MDX_STATUS_ERROR:"\u041e\u0448\u0438\u0431\u043a\u0430",YTP_MDX_PLAYER_ERROR:"\u0412\u0438\u0434\u0435\u043e \u043d\u0435\u0434\u043e\u0441\u0442\u0443\u043f\u043d\u043e \u0434\u043b\u044f \u0443\u0434\u0430\u043b\u0435\u043d\u043d\u043e\u0433\u043e \u0432\u043e\u0441\u043f\u0440\u043e\u0438\u0437\u0432\u0435\u0434\u0435\u043d\u0438\u044f.",YTP_MDX_PLAYER_RECONNECT_TIME:"\u041f\u0440\u043e\u0432\u0435\u0440\u044c\u0442\u0435 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435 \u043a \u0418\u043d\u0442\u0435\u0440\u043d\u0435\u0442\u0443. \u041f\u043e\u0432\u0442\u043e\u0440\u043d\u0430\u044f \u043f\u043e\u043f\u044b\u0442\u043a\u0430 \u0447\u0435\u0440\u0435\u0437 $FORMATTED_TIME...",
YTP_MDX_PLAYER_RECONNECT_BUTTON:"\u041f\u043e\u0434\u043a\u043b\u044e\u0447\u0438\u0442\u044c\u0441\u044f \u043f\u043e\u0432\u0442\u043e\u0440\u043d\u043e",YTP_DEVICE_FALLBACK:"\u0412\u0438\u0434\u0435\u043e \u043d\u0435\u0434\u043e\u0441\u0442\u0443\u043f\u043d\u043e \u043d\u0430 \u044d\u0442\u043e\u043c \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u0435.",YTP_AD_INTERRUPT_MESSAGE:"\u042d\u0442\u0430 \u0440\u0435\u043a\u043b\u0430\u043c\u0430 \u0431\u0443\u0434\u0435\u0442 \u043f\u043e\u043a\u0430\u0437\u044b\u0432\u0430\u0442\u044c\u0441\u044f \u043f\u0435\u0440\u0435\u0434 \u0432\u0430\u0448\u0438\u043c \u0432\u0438\u0434\u0435\u043e.",
YTP_VISIT_ADVERTISERS_SITE:"\u041f\u043e\u0441\u0435\u0442\u0438\u0442\u044c \u0441\u0430\u0439\u0442 \u0440\u0435\u043a\u043b\u0430\u043c\u043e\u0434\u0430\u0442\u0435\u043b\u044f",YTP_PROGRESS_LABEL:"$PLAY_PROGRESS\u00a0\u0438\u0437 $DURATION\u00a0\u0441\u0435\u043a.",YTP_PLAYLIST_NAME:"Playlist: $PLAYLIST_NAME",YTP_PLAYLIST_POSITION:"$CURRENT_POSITION/$PLAYLIST_LENGTH"});this.gm()}B(r5,GH);f=r5.prototype;
f.gm=function(){this.app.subscribe("initializingmode",this.uG,this);this.app.subscribe("videoplayerreset",this.wG,this);this.app.subscribe("videodatachange",this.vG,this)};f.initialize=function(a){this.ha=rd(a);this.Y(this.ha)};f.uG=function(){this.V=new mg(0,0,0,0);this.J=new mg(0,0,0,0)};f.addClass=function(a){eh(this.element,arguments)};f.removeClass=function(a){gh(this.element,arguments)};
f.dk=function(){var a=this.app.R();this.addClass("el-"+a.ca);this.addClass("ps-"+a.j);Q(this.element,"html5-native-controls","3"==a.g);Q(this.element,"html5-mobile",a.isMobile);this.jh(!0);a.A||this.addClass("tag-pool-enabled");a.Zb&&this.addClass("house-brand");this.Ha?this.S=R(window,"resize",y(this.uj,this)):(a=UA()?y(this.bC,this):y(this.uj,this),this.S=Jf(a,250))};f.jh=function(a){var b=this.app.R();Q(this.element,"ytp-no-controls",!a||"0"==b.g)};
f.bC=function(){this.P&&XA(this.P);this.P=WA(y(this.uj,this),0)};f.uj=function(){Mc(this.ab(),pg(this.J))||this.Pf()};f.Pf=function(){if(this.g){var a=this.ab();if(!a.isEmpty()){var b=!Mc(a,pg(this.J)),c=s5(this);b&&(this.J.width=a.width,this.J.height=a.height,this.ph(a));(c||b)&&this.publish("resize")}}};f.ph=function(){};f.gk=function(){};f.vG=function(a,b){this.Qj(b)};f.wG=function(a){a.getVideoData()&&this.Qj(a.getVideoData())};
f.Qj=function(a){this.g&&(this.g.setAttribute("data-youtube-id",a.videoId),qt&&(a.title?this.g.setAttribute("title",a.title):this.g.removeAttribute("title")),this.app.R().wb&&(this.g.poster=a.videoId?Fv(a,"default.jpg"):""));var b=a.Ac("yt:bgcolor");this.k.style.backgroundColor=b?b:"";this.Ja=Jt(a.Ac("yt:stretch"));a=a.Ac("yt:crop");this.wa="fullwidth"==a?Infinity:Jt(a)};f.Af=function(){};f.Bm=function(){};
f.xb=function(){var a=this.app.R();return a.ma||a.Ya?new J(window.innerWidth,window.innerHeight):new J(this.element.clientWidth,this.element.clientHeight)};f.ab=function(){return this.xb()};f.Wt=function(){return this.ab()};function qH(a){return a.g?new J(0<a.g.style.width.indexOf("px")?parseInt(a.g.style.width,10):a.g.clientWidth,0<a.g.style.height.indexOf("px")?parseInt(a.g.style.height,10):a.g.clientHeight):new J(0,0)}function t5(a){return a.g?new J(a.g.videoWidth,a.g.videoHeight):new J(0,0)}
function u5(a){return v5(a,a.ab(),t5(a),w5(a),void 0)}function v5(a,b,c,d,e){c.isEmpty()?d=b:d?(c=a.Ja||x5(c),a=a.wa||c,d=x5(b),d=a>d?new J(b.width,b.width/(isFinite(a)?a:c)):a<d?new J(b.height*a,b.height):b.clone(),e||(c>a?d.width=d.height*c:c<a&&(d.height=d.width/c))):(e=c.clone(),d=e.scale(e.width/e.height>b.width/b.height?b.width/e.width:b.height/e.height));return new mg((b.width-d.width)/2,(b.height-d.height)/2,d.width,d.height)}
function x5(a){var b=16/9;return 1>Math.abs(b*a.height-a.width)||1>Math.abs(b/a.width-a.height)?b:a.width/a.height}function w5(a){return"3"!=a.app.R().g&&!t5(a).isEmpty()}
function s5(a){var b=t5(a),c=a.ab(),d=1,e=w5(a),g=!1,h;e?(h=v5(a,c,b,e,!1),d=x5(new J(h.width,h.height))/x5(b),h=new mg(h.left+h.width/2*(1-1/d),h.top,h.width/d,h.height)):h=new mg(0,0,c.width,c.height);og(a.V,h)||(a.V=h,Mg(a.g,pg(h)),Ag(a.g,new I(h.left,h.top)),g=!0);b=v5(a,c,b,e);og(a.J,b)||(a.J=b,Mg(a.ka,b.width,b.height),Ag(a.ka,b.left,b.top),g=!0);vg(a.g,"transform",1==d?"none":"scaleX("+d+")");return g}f.mk=function(){};
function Mw(a){a.G&&(a.G.show(),a.nu(),Kf(a.ma),a.ma=Jf(y(a.nu,a),500))}
f.nu=function(){var a=uw(this.app),b=this.app.getVideoData(),c=this.app.ig(),d=this.g,e=this.app.R(),g=b.videoId,h=d.videoWidth,k=d.videoHeight,l=d.clientWidth,d=d.clientHeight,p=window.devicePixelRatio,r=b.za,v=Math.round(jw(this.app)),x;t:{if(b.ee&&(x=b.ee.match(/url=(https?)/))&&2==x.length){x=x[1];break t}x=""}e=x||e.protocol;x=this.app;if(x.ma){var ca=[];x.ma.D.forEach(y(ca.push,ca));x=ca}else x=[0];c={video_id:g,video_width:h,video_height:k,video_element_width:l,video_element_height:d,device_pixel_ratio:p,
cpn:r,mime:"",dash:"no",drm_flavor:"",drm_key_system:"",volume:v,stream_type:e,bandwidth_history:x,decoded_frames:c.hmewdfc||c.hmemdf||"-",dropped_frames:c.hmewdrop||"-",parsed_frames:c.hmempf||"-",presented_frames:c.hmempresented||"-",video_bytes_decoded:c.hmewvdbc||"-",audio_bytes_decoded:c.hmewadbc||"-",painted_frames:c.hmempainted||"-",paint_delay:c.hmempaintdelay||"-"};b.j&&(g=$q(b.j)?"yes":"no",g+=" ("+b.j.id,b.C&&$q(b.j)&&(g+="/"+b.C.id),c.dash=g+")",c.mime=b.j.mimeType,c.video_fps=b.j.video.fps);
if(a=a.F?a.F.g:null)c.drm_flavor=a.j,c.drm_key_system=a.g;this.G.update(c)};f.bm=function(){this.G&&(Kf(this.ma),this.G.hide())};f.hm=function(){this.j.j=this};f.L=function(){this.S&&(this.Ha?Ch(this.S):Kf(this.S),this.P&&XA(this.P));this.ga&&Ch(this.ga);this.bm();this.g=this.k=this.ha=null;r5.H.L.call(this)};function y5(a,b,c){S.call(this);this.A=R(a,"click",y(this.G,this));this.B=R(a,"dblclick",y(this.D,this));this.F=b;this.k=c;this.j=new Tq(this.C,200,this);T(this,this.j);this.g=!0;this.o=null}B(y5,S);y5.prototype.G=function(a){this.j.isActive()?(this.j.stop(),this.k(a),this.g=!1):(this.o=a,this.j.start(),this.g=!0)};y5.prototype.D=function(a){this.g&&this.k(a)};y5.prototype.C=function(){this.F(this.o);this.g=!0};y5.prototype.L=function(){Ch(this.A);Ch(this.B);y5.H.L.call(this)};var z5=new J(1720,980),A5=new J(1294,630),B5=new J(640,560),C5=new J(1320,870),D5={Pn:new J(1280,720),g:new J(960,540),On:new J(854,480),qu:new J(640,360),pu:new J(426,240)},E5={Pn:new J(1280,750),g:new J(960,570),On:new J(854,510),qu:new J(640,390),pu:new J(426,270)};
function F5(a,b){var c=new J(window.innerWidth,window.innerHeight),d=b&&!a.experiments.P?E5:D5;return a.Bd?c.width>=C5.width&&c.height>=C5.height?d.Pn.clone():d.On.clone():c.width>=z5.width&&c.height>=z5.height?d.Pn.clone():c.width>=A5.width&&c.height>=A5.height?d.On.clone():!a.experiments.S||c.width>=B5.width?d.qu.clone():d.pu.clone()};function G5(a){Y.call(this,["div","ytp-action-buttons"]);this.j=new $D(a,"ytp-button-info",Z(0,"YTP_MORE_INFO"));T(this,this.j);this.j.Y(this.element);bE(this.j,3500);this.shareButton=new $D(a,"ytp-button-share",Z(0,"YTP_SHARE"));T(this,this.shareButton);this.shareButton.Y(this.element);bE(this.shareButton,3400);this.g=new $D(a,"ytp-button-dislike",Z(0,"YTP_DISLIKE"));T(this,this.g);this.g.Y(this.element);bE(this.g,3300);ih(this.g.K(),"tooltip-below","1");a.Ue(this.g.K(),"YTP_DISLIKE_AS",Z(0,"YTP_DISLIKE"));
this.likeButton=new $D(a,"ytp-button-like",Z(0,"YTP_LIKE"));T(this,this.likeButton);this.likeButton.Y(this.element);bE(this.likeButton,3200);ih(this.likeButton.K(),"tooltip-below","1");a.Ue(this.likeButton.K(),"YTP_LIKE_AS",Z(0,"YTP_LIKE"))}B(G5,Y);function H5(a,b,c,d,e,g){var h,k;if(h=c.offsetParent){var l="HTML"==h.tagName||"BODY"==h.tagName;l&&"static"==zg(h,"position")||(k=Gg(h),l||(l=(l=Hg(h))&&Tc?-h.scrollLeft:!l||Sc&&gd("8")||"visible"==zg(h,"overflowX")?h.scrollLeft:h.scrollWidth-h.clientWidth-h.scrollLeft,k=Lc(k,new I(l,h.scrollTop))))}h=k||new I;k=Rg(a);if(l=Fg(a)){var p=ng(l),l=Math.max(k.left,p.left),r=Math.min(k.left+k.width,p.left+p.width);if(l<=r){var v=Math.max(k.top,p.top),p=Math.min(k.top+k.height,p.top+p.height);v<=p&&(k.left=
l,k.top=v,k.width=r-l,k.height=p-v)}}l=od(a);v=od(c);l.g!=v.g&&(r=l.g.body,v=Ig(r,ge(v)),v=Lc(v,Gg(r)),!Sc||hd(9)||fe(l)||(v=Lc(v,he(l))),k.left+=v.x,k.top+=v.y);a=I5(a,b);b=new I(a&2?k.left+k.width:k.left,a&1?k.top+k.height:k.top);b=Lc(b,h);e&&(b.x+=(a&2?-1:1)*e.x,b.y+=(a&1?-1:1)*e.y);if(e=Fg(c))e.top-=h.y,e.right-=h.x,e.bottom-=h.y,e.left-=h.x;J5(b,c,d,g,e,197,void 0)}
function J5(a,b,c,d,e,g,h){a=a.clone();var k=I5(b,c);c=Pg(b);h=h?h.clone():c.clone();a=a.clone();h=h.clone();var l=0;if(d||0!=k)k&2?a.x-=h.width+(d?d.right:0):d&&(a.x+=d.left),k&1?a.y-=h.height+(d?d.bottom:0):d&&(a.y+=d.top);g&&(e?(d=a,k=h,l=0,65==(g&65)&&(d.x<e.left||d.x>=e.right)&&(g&=-2),132==(g&132)&&(d.y<e.top||d.y>=e.bottom)&&(g&=-5),d.x<e.left&&g&1&&(d.x=e.left,l|=1),d.x<e.left&&d.x+k.width>e.right&&g&16&&(k.width=Math.max(k.width-(d.x+k.width-e.right),0),l|=4),d.x+k.width>e.right&&g&1&&(d.x=
Math.max(e.right-k.width,e.left),l|=1),g&2&&(l=l|(d.x<e.left?16:0)|(d.x+k.width>e.right?32:0)),d.y<e.top&&g&4&&(d.y=e.top,l|=2),d.y<=e.top&&d.y+k.height<e.bottom&&g&32&&(k.height=Math.max(k.height-(e.top-d.y),0),d.y=e.top,l|=8),d.y>=e.top&&d.y+k.height>e.bottom&&g&32&&(k.height=Math.max(k.height-(d.y+k.height-e.bottom),0),l|=8),d.y+k.height>e.bottom&&g&4&&(d.y=Math.max(e.bottom-k.height,e.top),l|=2),g&8&&(l=l|(d.y<e.top?64:0)|(d.y+k.height>e.bottom?128:0)),e=l):e=256,l=e);e=new mg(0,0,0,0);e.left=
a.x;e.top=a.y;e.width=h.width;e.height=h.height;l&496||(Ag(b,new I(e.left,e.top)),h=pg(e),Mc(c,h)||(c=h,e=qd(b),h=fe(od(e)),!Sc||gd("10")||h&&gd("8")?(b=b.style,Tc?b.MozBoxSizing="border-box":Uc?b.WebkitBoxSizing="border-box":b.boxSizing="border-box",b.width=Math.max(c.width,0)+"px",b.height=Math.max(c.height,0)+"px"):(e=b.style,h?(Sc?(h=Vg(b,"paddingLeft"),g=Vg(b,"paddingRight"),a=Vg(b,"paddingTop"),d=Vg(b,"paddingBottom"),h=new lg(a,g,d,h)):(h=yg(b,"paddingLeft"),g=yg(b,"paddingRight"),a=yg(b,"paddingTop"),
d=yg(b,"paddingBottom"),h=new lg(parseFloat(a),parseFloat(g),parseFloat(d),parseFloat(h))),b=Yg(b),e.pixelWidth=c.width-b.left-h.left-h.right-b.right,e.pixelHeight=c.height-b.top-h.top-h.bottom-b.bottom):(e.pixelWidth=c.width,e.pixelHeight=c.height))))}function I5(a,b){return(b&4&&Hg(a)?b^2:b)&-5};function K5(a){Y.call(this,["div",["ytp-dialog","html5-stop-propagation"],["div","ytp-dialog-body","{{content}}"],["div","ytp-dialog-buttons","{{buttons}}"]]);this.g=new Y(["input","html5-modal-panel-input",{type:"text",readonly:"readonly"}]);T(this,this.g);Vc&&this.g.K().removeAttribute("readonly");this.g.listen("click",this.k,this);var b=Z(0,"YTP_CLOSE");this.j=new $D(a,"ytp-dialog-button",b);this.j.ta(b);T(this,this.j);this.template.update({content:this.g,buttons:this.j});this.listen("contextmenu",
this.o)}B(K5,vF);K5.prototype.o=function(a){a.stopPropagation()};K5.prototype.k=function(){this.g.K().select()};function L5(a,b,c){Y.call(this,["ul",["html5-context-menu","yt-uix-button-menu"],["li","",["span",["yt-uix-button-menu-item","html5-context-menu-copy-video-url"],Z(0,"YTP_GET_VIDEO_URL")]],["li","",["span",["yt-uix-button-menu-item","html5-context-menu-copy-video-url-at-current-time"],Z(0,"YTP_GET_VIDEO_URL_AT_TIME")]],["li","",["span",["yt-uix-button-menu-item","html5-context-menu-copy-embed-html"],Z(0,"YTP_GET_EMBED")]],["li","",["span",["yt-uix-button-menu-item","html5-context-menu-report-playback-issue"],
Z(0,"YTP_REPORT_ISSUE")]],["li","",["span",["yt-uix-button-menu-item","html5-context-menu-copy-debug-info"],Z(0,"YTP_GET_DEBUG_INFO")]],["li","",["span",["yt-uix-button-menu-item","html5-context-menu-show-video-info"],Z(0,"YTP_SHOW_VIDEO_INFO")]],["li","",["a",["yt-uix-button-menu-item","html5-context-menu-link"],{target:"_blank",href:"/html5"},Z(0,"YTP_HTML5_CONTEXT_MENU_LINK")]]]);this.X=a;this.X.subscribe("internalvideodatachange",this.nr,this);this.k=new iz(this);this.k.listen(b,"contextmenu",
this.vB);this.g=new iz(this);this.j=new K5(c);T(this,this.j);this.j.j.listen("click",this.uB,this);a={nB:this.wB,oB:this.xB,pB:y(this.Gr,this,!1),qB:y(this.Gr,this,!0),sB:this.zB,tB:this.AB,rB:this.yB};for(var d in a)M5(this,d,a[d]);this.hide()}B(L5,Y);f=L5.prototype;f.uB=function(){this.X.j.Af()};function N5(a,b){var c=a.j;c.g.K().value=b;c.g.K().focus();N(y(c.k,c),100);a.X.j.Af(a.j)}
function M5(a,b,c){a.k.listen(a.template.g[Ty[b]],"click",function(a){a.stopImmediatePropagation();a.preventDefault();c.call(this,a);this.hide();a=b.replace("CONTEXT_MENU_","").toLowerCase();O5(this.X,"contextmenu."+a)})}f.nr=function(a,b){uA(this.template.g["html5-context-menu-copy-embed-html"],b.allowEmbed)};f.Gr=function(a){N5(this,Cw(this.X,a))};
f.xB=function(){var a,b=this.X;a=Ow(b);var c=b.j.xb(),b="//"+GZ(b.g)+"/embed/"+a.videoId;a.playlistId&&(b=Je(b,{list:a.playlistId}));a='<iframe width="'+c.width+'" height="'+c.height+'" src="'+za(b)+'" frameborder="0" allowfullscreen></iframe>';N5(this,a)};f.yB=function(a){P5(this.X,a.target.getAttribute("href"))};
f.zB=function(){var a=uw(this.X);a&&a.Th(new mu("feedback",!1));var a=this.X.R(),b=!0;"detailpage"==a.ca&&(b=t("yt.player.exports.feedbackStart")(void 0,{as3:!1,html5:!0,player:!0}));b&&(this.X.pauseVideo(),window.open(HZ(a,this.X.getVideoData())))};f.wB=function(){N5(this,Dw(this.X,!0))};f.AB=function(){Mw(this.X.j)};f.vB=function(a){a.preventDefault();var b=wh(a);a=xh(a);var c=Fg(document.body);J5(new I(b,a),this.element,0,null,c,5);this.show()};f.ZD=function(a){!1===a.Tb.returnValue||this.hide()};
f.show=function(){this.D||(this.g.removeAll(),this.g.listen(window,"blur",this.hide),this.g.listen(document,"click",this.$D),this.g.listen(document,"contextmenu",this.ZD),L5.H.show.call(this))};f.$D=function(a){2==a.button||a.target&&Sd(this.element,a.target)||this.hide()};f.hide=function(){L5.H.hide.call(this);this.g.removeAll()};f.L=function(){this.k.removeAll();this.g.removeAll();this.X.unsubscribe("internalvideodatachange",this.nr,this);this.X=null;L5.H.L.call(this)};function Q5(a){var b=document.location.protocol+"//"+document.domain+"/post_login",b=Ie(b,"mode","subscribe"),b=Ie("/signin?context=popup","next",b),b=Ie(b,"feature","sub_button");if(b=window.open(b,"loginPopup","width=375,height=440,resizable=yes,scrollbars=yes",!0)){var c=Gi("LOGGED_IN",function(b){Ii(Hf("LOGGED_IN_PUBSUB_KEY"));Ff("LOGGED_IN",!0);a(b)});Ff("LOGGED_IN_PUBSUB_KEY",c);b.moveTo((screen.width-375)/2,(screen.height-440)/2)}}q("yt.pubsub.publish",Ji,void 0);var R5={},S5="ontouchstart"in document;function T5(a,b,c){var d;switch(a){case "mouseover":case "mouseout":d=3;break;case "mouseenter":case "mouseleave":d=9}return de(c,function(a){return dh(a,b)},!0,d)}
function U5(a){var b="mouseover"==a.type&&"mouseenter"in R5||"mouseout"==a.type&&"mouseleave"in R5,c=a.type in R5||b;if("HTML"!=a.target.tagName&&c){if(b){var b="mouseover"==a.type?"mouseenter":"mouseleave",c=R5[b],d;for(d in c.lc){var e=T5(b,d,a.target);e&&!de(a.relatedTarget,function(a){return a==e},!0)&&c.publish(d,e,b,a)}}if(b=R5[a.type])for(d in b.lc)(e=T5(a.type,d,a.target))&&b.publish(d,e,a.type,a)}}R(document,"blur",U5,!0);R(document,"change",U5,!0);R(document,"click",U5);
R(document,"focus",U5,!0);R(document,"mouseover",U5);R(document,"mouseout",U5);R(document,"mousedown",U5);R(document,"keydown",U5);R(document,"keyup",U5);R(document,"keypress",U5);R(document,"cut",U5);R(document,"paste",U5);S5&&(R(document,"touchstart",U5),R(document,"touchend",U5),R(document,"touchcancel",U5));function V5(){this.o={};this.A=[]}function W5(a,b){return"yt-uix"+(a.bk?"-"+a.bk:"")+(b?"-"+b:"")}V5.prototype.init=u;V5.prototype.dispose=u;function X5(a,b,c){b=Gi(b,c,a);a.A.push(b)}function Y5(a,b,c){var d=W5(a,void 0),e=y(c,a);b in R5||(R5[b]=new Ai);R5[b].subscribe(d,e);a.o[c]=e}V5.prototype.j=function(a,b,c){var d=kh(a,b);if(d&&(d=t(d))){var e=vb(arguments,2);ub(e,0,0,a);d.apply(null,e)}};function Z5(a,b){ih(a,"tooltip-text",b)}
V5.prototype.removeData=function(a,b){a&&(a.dataset?delete a.dataset[jh(b)]:a.removeAttribute("data-"+b))};function $5(){V5.call(this);this.g={}}B($5,V5);da($5);f=$5.prototype;f.bk="tooltip";f.Vj=0;f.register=function(){Y5(this,"mouseover",this.Eu);Y5(this,"mouseout",this.Uj);Y5(this,"click",this.Uj);Y5(this,"touchstart",this.lG);Y5(this,"touchend",this.Gu);Y5(this,"touchcancel",this.Gu)};f.dispose=function(){for(var a in this.g)this.Uj(this.g[a]);this.g={}};
f.Eu=function(a){if(!(this.Vj&&1E3>A()-this.Vj)){var b=parseInt(kh(a,"tooltip-hide-timer"),10);b&&(this.removeData(a,"tooltip-hide-timer"),O(b));var b=y(function(){a6(this,a);this.removeData(a,"tooltip-show-timer")},this),c=parseInt(kh(a,"tooltip-show-delay"),10)||0,b=N(b,c);ih(a,"tooltip-show-timer",b.toString());a.title&&(Z5(a,b6(a)),a.title="");b=ma(a).toString();this.g[b]=a}};
f.Uj=function(a){var b=parseInt(kh(a,"tooltip-show-timer"),10);b&&(O(b),this.removeData(a,"tooltip-show-timer"));b=y(function(){c6(this,a);this.removeData(a,"tooltip-hide-timer")},this);b=N(b,50);ih(a,"tooltip-hide-timer",b.toString());if(b=kh(a,"tooltip-text"))a.title=b;b=ma(a).toString();delete this.g[b]};f.lG=function(a,b,c){this.Vj=0;a=T5(b,W5(this),c.changedTouches[0].target);this.Eu(a)};f.Gu=function(a,b,c){this.Vj=A();a=T5(b,W5(this),c.changedTouches[0].target);this.Uj(a)};
function d6(a,b){Z5(a,b);var c=kh(a,"content-id");if(c=rd(c))c.innerHTML=b}function b6(a){return kh(a,"tooltip-text")||a.title}
function a6(a,b){if(b){var c=b6(b);if(c){var d=rd(e6(a,b));if(!d){d=document.createElement("div");d.id=e6(a,b);d.className=W5(a,"tip");var e=document.createElement("div");e.className=W5(a,"tip-body");var g=document.createElement("div");g.className=W5(a,"tip-arrow");var h=document.createElement("div");h.className=W5(a,"tip-content");var k=f6(a,b),l=e6(a,b,"content");h.id=l;ih(b,"content-id",l);e.appendChild(h);k&&d.appendChild(k);d.appendChild(e);d.appendChild(g);(Ih()||document.body).appendChild(d);
d6(b,c);(c=parseInt(kh(b,"tooltip-max-width"),10))&&e.offsetWidth>c&&(e.style.width=c+"px",P(h,W5(a,"normal-wrap")));h=dh(b,W5(a,"reverse"));g6(a,b,d,e,k,h)||g6(a,b,d,e,k,!h);var p=W5(a,"tip-visible");N(function(){P(d,p)},0)}}}}
function g6(a,b,c,d,e,g){Q(c,W5(a,"tip-reverse"),g);a=0;g&&(a=1);var h=Pg(b);g=new I((h.width-10)/2,g?h.height:0);var k=Gg(b);J5(new I(k.x+g.x,k.y+g.y),c,a);var k=yd(window),l=Lg(c);c=Pg(d);var p=Math.floor(c.width/2);a=!!(k.height<l.y+h.height);h=!!(l.y<h.height);g=!!(l.x<p);k=!!(k.width<l.x+p);l=(c.width+3)/-2- -5;b=kh(b,"force-tooltip-direction");if("left"==b||g)l=-5;else if("right"==b||k)l=20-c.width-3;b=Math.floor(l)+"px";d.style.left=b;e&&(e.style.left=b,e.style.height=c.height+"px",e.style.width=
c.width+"px");return!(a||h)}function c6(a,b){if(b){var c=rd(e6(a,b));c&&(h6(c),Ld(c),a.removeData(b,"content-id"))}}function e6(a,b,c){a=W5(a)+nh(b);c&&(a+="-"+c);return a}function f6(a,b){var c=null;Xc&&dh(b,W5(a,"masked"))&&((c=rd("yt-uix-tooltip-shared-mask"))?(c.parentNode.removeChild(c),wA(c)):(c=document.createElement("iframe"),c.src='javascript:""',c.id="yt-uix-tooltip-shared-mask",c.className=W5(a,"tip-mask")));return c}
function h6(a){var b=rd("yt-uix-tooltip-shared-mask"),c=b&&de(b,function(b){return b==a},!1,2);b&&c&&(b.parentNode.removeChild(b),xA(b),document.body.appendChild(b))};function i6(){V5.call(this)}B(i6,V5);da(i6);f=i6.prototype;f.bk="subscription-button";
f.register=function(){Y5(this,"click",this.Cu);X5(this,"subscription-subscribe-loading",this.Bu);X5(this,"subscription-subscribe-loaded",this.Au);X5(this,"subscription-unsubscirbe-loading",this.Bu);X5(this,"subscription-unsubscribe-loaded",this.Au);X5(this,"subscription-subscribe-success",this.iG);X5(this,"subscription-unsubscribe-success",this.jG);X5(this,"subscription-enable-ypc",this.hG);X5(this,"subscription-disable-ypc",this.gG)};
f.Cu=function(a){var b=kh(a,"href"),c=mB();if(b)a=kh(a,"target")||"_self",window.open(b,a);else if(c){var b=kh(a,"channel-external-id"),c=kh(a,"sessionlink"),d;if(kh(a,"ypc-enabled")){d=kh(a,"ypc-item-type");var e=kh(a,"ypc-item-id"),g=kh(a,"ypc-offers-url");d={itemType:d,itemId:e,offersUrl:g,subscriptionElement:a}}else d=null;e=kh(a,"parent-url");kh(a,"is-subscribed")?(g=kh(a,"subscription-id"),gB(u0,new s0(b,g,d,a,c,e))):gB(t0,new r0(b,d,a,c,e))}else j6(this,a)};
f.Bu=function(a){this.eg(a,this.Hu,!0)};f.Au=function(a){this.eg(a,this.Hu,!1)};f.iG=function(a,b){this.eg(a,this.Iu,!0,b)};f.jG=function(a){this.eg(a,this.Iu,!1)};f.hG=function(a){this.eg(a,this.rG)};f.gG=function(a){this.eg(a,this.qG)};f.Iu=function(a,b,c){b?(ih(a,"is-subscribed","true"),c&&ih(a,"subscription-id",c)):(this.removeData(a,"is-subscribed"),this.removeData(a,"subscription-id"));k6(a)};
f.Hu=function(a,b){var c=ee(a,"yt-uix-button-subscription-container");Q(c,"yt-subscription-button-disabled-mask-container",b);a.setAttribute("aria-busy",b?"true":"false");a.disabled=b};
function k6(a){var b=kh(a,"style-type"),c=!!kh(a,"is-subscribed"),b="-"+b,d="yt-uix-button-subscribed"+b;Q(a,"yt-uix-button-subscribe"+b,!c);Q(a,d,c);kh(a,"subscriber-count-tooltip")&&!kh(a,"subscriber-count-show-when-subscribed")&&(b=W5($5.getInstance()),Q(a,b,!c),a.title=c?"":kh(a,"subscriber-count-title"));c?N(function(){P(a,"hover-enabled")},1E3):fh(a,"hover-enabled")}
f.rG=function(a){var b=!!kh(a,"ypc-item-type"),c=!!kh(a,"ypc-item-id"),d=!!kh(a,"ypc-offers-url");!kh(a,"ypc-enabled")&&b&&c&&d&&(P(a,"ypc-enabled"),ih(a,"ypc-enabled","true"))};f.qG=function(a){kh(a,"ypc-enabled")&&(fh(a,"ypc-enabled"),this.removeData(a,"ypc-enabled"))};function l6(a,b){var c=td(W5(a));return eb(c,function(a){return b==kh(a,"channel-external-id")},a)}f.XG=function(a,b,c){var d=vb(arguments,2);E(a,function(a){b.apply(this,rb(a,d))},this)};
f.eg=function(a,b,c){var d=l6(this,a),d=rb([d],vb(arguments,1));this.XG.apply(this,d)};function j6(a,b){var c=y(function(a){a.discoverable_subscriptions&&Ff("SUBSCRIBE_EMBED_DISCOVERABLE_SUBSCRIPTIONS",a.discoverable_subscriptions);this.Cu(b)},a);Q5(c)};function m6(){Y.call(this,["div","ytp-sentiment-display",["div","ytp-sentiment-bar",["div","ytp-sentiment-bar-likes"],["div","ytp-sentiment-bar-dislikes"]]]);this.j=this.template.g["ytp-sentiment-bar-likes"];this.g=this.template.g["ytp-sentiment-bar-dislikes"]}B(m6,Y);m6.prototype.L=function(){this.g=this.j=null;m6.H.L.call(this)};function n6(){var a=["button","ytp-button-share-more",{tabIndex:3800},["div",["ytp-button-share-more-icon","yt-uix-button-icon-new-window"]],["span","ytp-button-share-more-content",Z(0,"YTP_MORE")]];Y.call(this,a)}B(n6,Y);function o6(a,b,c,d){$D.call(this,a,"share-service-icon-"+d+"-sharebar",b,c);P(this.element,"share-service-icon-sharebar");bE(this,3700)}B(o6,$D);function p6(){Y.call(this,["div","ytp-share-url-container",{tabIndex:3600},["input","ytp-share-url"]]);this.g=this.template.g["ytp-share-url"]}B(p6,Y);p6.prototype.focus=function(){this.g.focus();this.g.select()};p6.prototype.L=function(){this.g=null;p6.H.L.call(this)};function q6(a,b){var c=["div","share-bar",["div","share-bar-content"],["div","share-bar-playlist",["input",["ytp-share-bar-checkbox","ytp-share-bar-checked"],{type:"checkbox",checked:"checked"}],["div","share-bar-playlist-message",Z(0,"YTP_SHARE_WITH_PLAYLIST")]]];GH.call(this,c);this.k=b;this.A=a;this.shareUrl=null;this.o=[];this.j=this.g=null;this.closeButton=new $D(this.A,"yt-uix-button-icon-share-bar-close",Z(0,"YTP_CLOSE"),Z(0,"YTP_CLOSE"));this.closeButton.Y(this.template.g["share-bar-content"]);
bE(this.closeButton,3900)}B(q6,GH);function r6(a){var b={action_get_share_info:1,feature:"player_embedded",video_id:a.j?a.j.videoId:void 0};a.k.Va&&(b.authuser=a.k.Va);a.k.pageId&&(b.pageid=a.k.pageId);var c;s6(a)?(c=vd("ytp-share-bar-checkbox"),c=!c||dh(c,"ytp-share-bar-checked")):c=!1;c&&(b.list=s6(a));Fj("/share_ajax",{context:a,method:"GET",onError:a.F,Qa:a.B,Be:b})}
q6.prototype.B=function(a,b){if(!this.da()){t6(this);var c=this.template.g["share-bar-content"];this.shareUrl=new p6;T(this,this.shareUrl);wd(this.shareUrl.g,{value:b.url_short});this.shareUrl.Y(c);for(var d=b.links,e=0;e<Math.min(3,d.length);e++){var g=new o6(this.A,d[e].name,d[e].sname,d[e].img);T(this,g);g.Y(c);g.listen("click",z(lB,d[e].url,{}));this.o.push(g)}this.g=new n6;T(this,this.g);this.g.listen("click",y(this.G,this,b.more));this.g.Y(c);KA(this,this.template.g["ytp-share-bar-checkbox"],
"click",this.C,this);this.publish("menu_show")}};q6.prototype.F=function(){};q6.prototype.G=function(a){kB(a)};function s6(a){return a.j?a.j.playlistId:void 0}q6.prototype.C=function(){var a=vd("ytp-share-bar-checkbox");hh(a,"ytp-share-bar-checked");r6(this)};function t6(a){a.shareUrl&&(a.shareUrl.detach(),a.shareUrl=null);a.g&&(a.g.detach(),a.g=null);E(a.o,function(a){Ld(a.K())});a.o=[]};function u6(a,b){var c=["div","html5-title",["div",["html5-like-dislike-buttons","hid"]],["a","html5-title-logo",{tabIndex:3550,href:"{{logolink}}","aria-label":Z(0,"YTP_URL_NAVIGATE")},"YouTube"],["div","html5-title-text-wrapper",["a","html5-title-text",{tabIndex:3100,href:"{{titlelink}}"},"{{titletext}}"]]];GH.call(this,["div","html5-info-bar",c,["div","html5-info-panel",["div","html5-info-panel-loading-icon"],["div",["html5-info-panel-content","hid"],["div","",["div","html5-author-img",["img",
"",{src:"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7"}]],["div","html5-author-info",["div","html5-author-name"]],["div","html5-subscribe-button-container"]],["div","",["div","html5-video-info",["div","html5-view-count"]],["p","html5-description-text",{dir:"auto"}]]]]]);this.j=b;this.B=a;this.g=null;KA(this,this.template.g["html5-title-text"],"click",this.jq);c=this.template.g["html5-title-logo"];ih(c,"tooltip",Z(0,"YTP_URL_NAVIGATE"));ih(c,"tooltip-below","1");a.nf(c);
KA(this,c,"click",this.jq);c=this.template.g["html5-title"];this.actionButtons=new G5(this.B);T(this,this.actionButtons);this.actionButtons.Y(c,1);this.actionButtons.shareButton.listen("click",this.Ol,this);this.actionButtons.j.listen("click",this.kq,this);!this.j.Zb&&this.j.experiments.V||this.actionButtons.j.hide();this.o=null;this.F=!1;this.k=null}B(u6,GH);f=u6.prototype;
f.update=function(a){this.g=a;if(this.k){var b=this.k;b.j=a;r6(b)}b=a.title||"";a=this.j.getVideoUrl(a);this.template.update({titletext:b,titlelink:a,logolink:a})};f.jq=function(a){Sy(a)&&(this.Nu(),a.preventDefault())};f.Nu=function(){this.Ou()};f.kq=function(){v6(this,!1);this.Yf(!dh(this.element,"show-more-info"))};
f.Yf=function(a){if(a&&!this.F){this.F=!0;MH(this.g?this.g.videoId:void 0,!1,this.BB,u,this,this.j.Va,this.j.pageId);if(!this.o){var b=this.template.g["html5-info-panel-loading-icon"];this.o=new N4;T(this,this.o);P(this.o.element,"html5-info-panel-loader");this.o.Y(b);T(this,this.o)}this.o.show()}Q(this.element,"show-more-info",a)};function w6(a){return dh(a.element,"show-share")}f.Ol=function(){this.Yf(!1);v6(this,!w6(this))};
function v6(a,b){if(b&&!a.k){a.k=new q6(a.B,a.j);var c=a.k;c.j=a.g;r6(c);a.k.Y(a.template.g["html5-info-bar"]);a.k.closeButton.listen("click",a.Ol,a);a.k.subscribe("menu_show",y(a.kr,a))}Q(a.element,"show-share",b);Q(a.element,"share-with-playlist",b&&!!s6(a.k));a.kr()}f.kr=function(){w6(this)&&this.k.shareUrl&&this.k.shareUrl.K().focus()};
f.BB=function(a,b){if(!this.da()){var c=this.template.g["html5-info-panel"],d=b.user_info;this.g&&(this.g.ya=d.external_id);var e=vd("html5-author-img",c).getElementsByTagName("img")[0],g=d.image_url;Uf(g)||(g="");e.src=g;KA(this,e,"click",this.pr);e=vd("html5-author-name",c);Ud(e,d.channel_title||d.public_name||d.username);KA(this,e,"click",this.pr);e=b.video_info;g=vd("html5-subscribe-button-container",c);g.innerHTML=d.subscription_button_html?d.subscription_button_html:"";d=i6.getInstance();(d=
vd(W5(d),g))&&this.B.Ue(d,"YTP_SUBSCRIBE_AS");vd("html5-view-count",c).innerHTML=e.view_count_string;var d=parseInt(e.likes_count_unformatted,10),g=parseInt(e.dislikes_count_unformatted,10),h=new m6;T(this,h);var k=0,l=0;0<d+g&&(k=100*d/(d+g),l=100*g/(d+g));h.j.style.width=k+"%";h.g.style.width=l+"%";h.Y(vd("html5-video-info",c),2);d=vd("html5-description-text",c);Ud(d,e.description);this.o.hide();c=vd("html5-info-panel-content",c);wA(c)}};
f.pr=function(){var a=this.j,b=this.g,c="",c=b.ya?a.qb+"channel/UC"+b.ya:a.qb+"user/"+b.author;this.$m(c)};f.$m=function(a){kB(a)};f.Ou=function(){this.$m(this.j.getVideoUrl(this.g))};f.L=function(){this.g=this.j=null;u6.H.L.call(this)};function x6(a,b){u6.call(this,a,b.R());this.X=b;this.C=2;this.G=this.A=!1;this.actionButtons.likeButton.listen("click",this.GD,this);this.actionButtons.g.listen("click",this.FD,this);this.X.subscribe("presentingplayerstatechange",this.Oc,this)}B(x6,u6);f=x6.prototype;f.update=function(a){x6.H.update.call(this,a);y6(this,a.Gn);a=!(!a||!a.ls||this.X.o);var b=!this.X.R().bi;Q(this.element,"ytp-can-share",b);Q(this.element,"ytp-can-sentiment",a)};f.Ol=function(){this.publish("share-click")};f.Nu=function(){this.publish("title-click")};
f.kq=function(){this.publish("info-click")};f.Yf=function(a){x6.H.Yf.call(this,a);a?(a=this.X.getPlayerState(),this.G=X(a,8)&&!X(a,2),this.X.pauseVideo()):this.G&&this.X.$c()};f.GD=function(){z6(this,0)};f.FD=function(){z6(this,1)};f.Oc=function(a){X(a.state,8)&&fh(this.element,"show-more-info")};
function z6(a,b){if(!a.A&&(a.C==b&&(b=2),y6(a,b),a.g)){if("detailpage"!=a.j.ca){a.A=!0;var c={playbackId:a.g.playbackId,Qa:y(function(){this.A=!1},a),onError:y(function(){this.A=!1},a),Va:a.j.Va,pageId:a.j.pageId};ku(a.g.videoId,b,c)}a.X.publish("RATE_SENTIMENT",{videoId:a.g.videoId,sentiment:b})}}function y6(a,b){a.C=b;Q(a.element,"sentiment-like",0==b);Q(a.element,"sentiment-dislike",1==b)}f.$m=function(a){P5(this.X,a)};f.Ou=function(){A6(this.X)};
f.L=function(){this.X.unsubscribe("presentingplayerstatechange",this.Oc,this);this.X=null;x6.H.L.call(this)};function B6(a){var b=["div",["ytp-dialog","html5-stop-propagation"],{tabindex:1E3},["div","ytp-dialog-title",Z(0,"YTP_KEYBOARD_SHORTCUTS")],["div","ytp-dialog-body","{{content}}"],["div","ytp-dialog-buttons","{{buttons}}"]];Y.call(this,b);b=Z(0,"YTP_DONE");this.g=new $D(a,"ytp-dialog-button",b);this.g.ta(b);T(this,this.g);bE(this.g,1400);this.g.listen("click",this.j,this);this.template.update({content:C6(),buttons:this.g})}B(B6,vF);
function C6(){var a=[{key:"K",message:Z(0,"YTP_PLAY_PAUSE")},{key:"J",message:Z(0,"YTP_SEEK_BACK")},{key:"L",message:Z(0,"YTP_SEEK_FORWARD")},{key:"0-9",message:Z(0,"YTP_SEEK_PERCENT")},{key:">",message:Z(0,"YTP_INCREASE_PLAYBACK_SPEED")},{key:"<",message:Z(0,"YTP_DECREASE_PLAYBACK_SPEED")},{key:"F",message:Z(0,"YTP_TOGGLE_FULLSCREEN")},{key:"M",message:Z(0,"YTP_TOGGLE_MUTE")}],b=[];E(a,function(a){a=new Y(["p",null,a.key+": "+a.message]);b.push(a)});return b}B6.prototype.j=function(){this.Sb("done")};
B6.prototype.focus=function(){this.element.focus()};function D6(a,b,c,d,e,g,h,k){this.A=[];E(Gb(b),function(b){this.A.push(R(a,b,y(this.jx,this)))},this);E(Gb(d),function(b){this.A.push(R(a,b,y(this.ix,this)))},this);this.B=g||null;this.G=c;this.F=h||0;this.k=0;this.o=!1;this.D=e;this.C=k||0;this.g=0;this.j=!1}f=D6.prototype;f.jx=function(a){O(this.g);this.g=0;this.k=N(y(this.ED,this,a),this.F)};f.ix=function(a){O(this.k);this.k=0;this.g=N(y(this.AD,this,a),this.C)};f.ED=function(a){this.j||this.o||(this.o=!0,this.G.call(this.B||m,a))};
f.AD=function(a){!this.j&&this.o&&(this.o=!1,this.D.call(this.B||m,a))};f.dispose=function(){this.j=!0;O(this.k);O(this.g);Ch(this.A)};f.da=function(){return this.j};function E6(){Y.call(this,["div","ytp-tooltip",["div","ytp-tooltip-body","{{content}}"],["div","ytp-tooltip-arrow"]]);this.g=this.template.g["ytp-tooltip-body"]}B(E6,Y);E6.prototype.hide=function(){E6.H.hide.call(this);Ag(this.g,0)};E6.prototype.L=function(){Jd(this.g);this.g=null;E6.H.L.call(this)};function F6(a,b){S.call(this);this.g={};this.Sm=a;this.j=b}B(F6,S);
F6.prototype.nf=function(a,b){var c,d=new D6(a,"mouseover",function(){if(this.Sm){var d=new E6;d.Y(this.Sm);c=d}else c=null;if(c&&(d=b&&b(a),!b||d)){d=d||kh(a,"tooltip")||"";if(w(d)){var g=Gd(d),d=Fd("span");d.className="ytp-text-tooltip";d.appendChild(g)}Oy(c.template,"content",d);var g=!!kh(a,"tooltip-below"),d=c,h=Pg(a),h=new I(h.width/2,g?h.height:0),k=Gg(a),h=new I(k.x+h.x,k.y+h.y),g=!!g;Q(d.element,"ytp-tooltip-below",g);if(k=Eg(d.element))var l=Gg(k),p=Yg(k),h=Lc(h,new I(l.x+p.left,l.y+p.top));
J5(h,d.element,g?1:0);d.show();var p=Pg(d.g),g=p.width/2*-1,r=yd(window),v=zd(document),h=v.x,r=r.width+v.x,v=h,x=r;k&&(k=Pg(k),v=l.x,x=k.width+l.x);k=Gg(d.g);l=k.x+g;k=k.x+p.width+g;l<Math.max(h,v)?g-=l-Math.max(h,v):k>Math.min(r,x)&&(g-=k-Math.min(r,x));Ag(d.g,g)}},["mouseout","mousedown"],function(){c&&(c.hide(),xi(c),c=null)},this,10,50);this.g[ma(a)]=d};
F6.prototype.Ue=function(a,b,c){var d=this.j;this.nf(a,function(){if(d){var a="detailpage"==d.ca;if(!d.Z||a)return c}else return c;var g=d.Z,h=d.P,a=Fd("div");P(a,"ytp-identity-tooltip");var k=Fd("img");k.src=h;h=Fd("span");g=Gd(Nf(b,{USER_NAME:g}));Id(h,g);Id(a,k,h);return a})};F6.prototype.tn=function(a){a=ma(a);xi(this.g[a]);this.g[a]=null};F6.prototype.L=function(){this.j=this.Sm=null;for(var a in this.g)xi(this.g[a]);this.g={};F6.H.L.call(this)};function G6(){this.g=[];this.j=[]}da(G6);var XH=t("yt.player.utils.VideoTagPool.instance_")||G6.getInstance();q("yt.player.utils.VideoTagPool.instance_",XH,void 0);f=G6.prototype;f.Ps=function(a){if(!(this.g.length>=a)){a-=this.g.length;for(var b=0;b<a;b++){var c=H6(this);this.g.push(c)}}};function H6(a,b){var c=document.createElement("video");ra(c,qx);R(c,"loadeddata",y(c.WE,c));R(c,"volumechange",y(c.XE,c));Xh&&6<=eu&&R(c,"webkitbeginfullscreen",y(c.play,c));b||rx(c);a.j.push(c);return c}
f.eH=function(a){return this.g.length?this.g.pop():H6(this,a)};f.$G=function(a){a&&H(this.j,a)&&(wx(a),Fh(a),ob(this.j,a))};f.Qs=function(a){return this.g.length>=(a||1)};f.WG=function(){this.g=[];this.Qs(4)?E(this.j,function(a){rx(a);this.g.push(a)},this):this.Ps(4)};G6.prototype.fillPool=G6.prototype.Ps;G6.prototype.getTag=G6.prototype.eH;G6.prototype.releaseTag=G6.prototype.$G;G6.prototype.hasTags=G6.prototype.Qs;G6.prototype.activateTags=G6.prototype.WG;function I6(){Y.call(this,["div",["html5-bezel","html5-center-overlay"],["div","{{icon}}"]]);this.g=new c2(this,"html5-bezel-fade",500);T(this,this.g)}B(I6,Y);function J6(a){Y.call(this,["div","ytp-dialog-holder","{{content}}"]);this.j=a;this.g=null}B(J6,Y);J6.prototype.show=function(){J6.H.show.call(this);K6(this);this.g.focus()};J6.prototype.hide=function(){J6.H.hide.call(this);var a=Rd(this.element);a&&a.focus()};function K6(a){if(a.g){a.g.Cs();var b=a.j.xb(),c=Og(a.g.K());a=a.g;b=new I(Math.floor((b.width-c.width)/2),Math.floor((b.height-c.height)/2));a.K().style.marginLeft=b.x+"px";a.K().style.marginTop=b.y+"px"}}
J6.prototype.L=function(){this.g=null;J6.H.L.call(this)};function L6(a,b){YH.call(this,a,b);this.B=null;this.C=this.F=this.o=this.j=0;P(this.element,"ytp-tv-static");M6(this,a,b)}B(L6,YH);function N6(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}
function M6(a,b,c){if(b&&c){a.width=a.element.width=b;a.height=a.element.height=c;var d=document.createElement("canvas");d.width=b;d.height=c;for(var e=d.getContext("2d"),g=e.getImageData(0,0,b,c),h=b*c,k=0;k<h;k++){var l=4*k;g.data[l]=g.data[l+1]=g.data[l+2]=Math.floor(35*Math.random());g.data[l+3]=255}e.putImageData(g,0,0);a.B=d;a.F=N6(b);a.C=N6(c/10);a.context.scale(1.5,1.5)}}L6.prototype.show=function(){L6.H.show.call(this);var a=this.G;this.A=new Date;this.k(a,75)};
L6.prototype.G=function(){var a=1-1/1.5;this.j=(this.j+this.F)%(this.width*a);this.o=(this.o+this.C)%(this.height*a);this.context.drawImage(this.B,-1*this.j,-1*this.o)};L6.prototype.hide=function(){O(this.g);L6.H.hide.call(this)};function O6(){Y.call(this,["div",["ytp-error","html5-stop-propagation"],["div","ytp-error-content",["div","ytp-error-content-wrap","{{content}}"]]]);this.ja="table";this.j=[];if(void 0==vt){var a=document.createElement("canvas");vt=!(!a.getContext||!a.getContext("2d"))}vt&&(this.g=new L6(1,1),this.g.Y(this.element,0),T(this,this.g))}B(O6,Y);O6.prototype.show=function(){O6.H.show.call(this);P6(this);this.g&&this.g.show()};O6.prototype.hide=function(){O6.H.hide.call(this);this.g&&this.g.hide()};
function P6(a){a.g&&M6(a.g,a.element.clientWidth,a.element.clientHeight)}O6.prototype.L=function(){Ch(this.j);this.j=[];O6.H.L.call(this)};function Q6(a){GH.call(this,["div","html5-storyboard",["div","html5-storyboard-filmstrip",["img","html5-storyboard-thumbnail",{src:"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7"}]],["div","html5-storyboard-lens",["img","html5-storyboard-lens-thumbnail",{src:"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7"}],["span","html5-storyboard-lens-timestamp"]]]);this.F=!1;this.A=new xn(this.kx,250,this);T(this,this.A);this.Ld=a;this.g=this.template.g["html5-storyboard-filmstrip"];
this.C=this.template.g["html5-storyboard-lens"];this.G=this.template.g["html5-storyboard-lens-thumbnail"];this.I=this.template.g["html5-storyboard-lens-timestamp"];this.o=this.template.g["html5-storyboard-thumbnail"];Ld(this.o);this.j=0;this.k=new Z1(0,0);this.B=!1;this.hide()}B(Q6,GH);f=Q6.prototype;f.dq=!1;f.Ld=0;f.El=0;f.Nk=0;f.bt=10;f.Nb=0;f.Fj=0;f.pn=0;f.ac=null;f.we=null;f.disable=function(){this.dq=!0};
f.Ly=function(){for(var a=this.g.cloneNode(!0),b=this.ac.g[0].fn(),c,d,e=this.ac.g[0].$s();e<=b;e++)d=this.o.cloneNode(!1),c=su(this.we,e,this.Nb),d2(d,c,this.Nb,this.Fj),a.appendChild(d);Md(a,this.g);this.g=a};f.Mp=function(a,b){Tg(this.g,!1);for(var c,d,e=a;e<=b;e++)if(d=this.g.children[e])c=su(this.we,e,this.Nb),d2(d,c,this.Nb,this.Fj);Tg(this.g,!0)};function R6(a,b){if(b!=a.pn){var c=su(a.we,b,2*a.Nb),d=Math.round(2*a.Nb),e=Math.round(2*a.Fj);d2(a.G,c,d,e);a.pn=b}}
f.kx=function(){for(var a=this.El,b=Math.max(Math.floor(a/this.Nb),0),a=Math.min(Math.ceil((a+this.Ld)/this.Nb),this.ac.g[0].zf()-1);b<=a;b++)tu(this.we,b,2*this.Nb)};function S6(a,b){a.bt=Math.min(10,Math.ceil(a.Ld/72));a.Nb=Math.floor(a.Ld/a.bt);a.Fj=.555*a.Nb;a.Nk=a.Nb*a.ac.g[0].zf();Ng(a.g,a.Nk);var c=Math.round(2*a.Nb),d=.555*c+12;Mg(a.C,c,d);Ag(a.C,(a.Ld-c)/2);c=d+20;a.K().style.height=Bg(c,!0);b&&(a.Mp(0,a.ac.g[0].zf()-1),R6(a,a.pn),a.F=!0)}f.show=function(){this.ac&&Q6.H.show.call(this)};
f.L=function(){this.we=this.ac=null;XA(this.j);Q6.H.L.call(this)};function T6(a){Y.call(this,["div","html5-storyboard-framepreview",["img","html5-storyboard-framepreview-img",{src:"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7"}]]);this.C=this.template.g["html5-storyboard-framepreview-img"];this.B=a;this.g=this.B.ab();this.k=this.j=null;this.o=0;this.A=new Z1(0,0);this.hide()}B(T6,Y);function U6(a){var b=su(a.k,a.o,a.g.width);d2(a.C,b,a.g.width,a.g.height);tu(a.k,a.o,a.g.width)}T6.prototype.show=function(){this.j&&T6.H.show.call(this)};function V6(a,b,c){Y.call(this,["div",["ytp-thumbnail","html5-stop-propagation"]]);this.j=a;this.g=null;c&&(this.g=new M4(a,b),T(this,this.g),this.g.Y(this.element))}B(V6,Y);
function W6(a,b){if(b&&b.videoId){var c;if(!a.j){var d=a.element.clientWidth,e=a.element.clientHeight;if(900<d||600<e)c=Fv(b,"maxresdefault.jpg");!c&&(430<d||320<e)&&(c=Fv(b,"sddefault.jpg")||Fv(b,"hqdefault.jpg"))}c||(c=Fv(b,"default.jpg"));a.element.style.backgroundImage="url("+c+")"}else a.element.style.backgroundImage=""};function X6(a,b){gh(a,["html5-async-progress","html5-async-success","html5-async-error"]);b&&P(a,b);c6($5.getInstance(),a)};function Y6(a){ZD.call(this);this.k=null;this.g=new GF(a,y(this.B,this),y(this.C,this));T(this,this.g);this.label=Z(0,"YTP_AUDIO_TRACK_TITLE");this.element=new BF(a,void 0,this.g);T(this,this.element);DF(this.element,100);this.element.bb(this.label);this.priority=0;this.o=!0}B(Y6,ZD);function Z6(a,b){a.k!=b&&(a.k=b,a.g.Ea(b),a.element.Md(a.B(b)))}Y6.prototype.B=function(a){return a.name};Y6.prototype.C=function(a){this.element.Pd();Z6(this,a);this.element.Sb("change")};function $6(a){ZD.call(this);this.label=Z(0,"YTP_AUTOPLAY");this.element=new cE(a,[Z(0,"YTP_ON"),Z(0,"YTP_OFF")]);T(this,this.element);this.element.bb(this.label);eE(this.element,2050);this.priority=4;this.Ea(0)}B($6,ZD);$6.prototype.getSelected=function(){return this.element.getSelected()};$6.prototype.Ea=function(a){this.element.Ea(a)};function a7(a){$D.call(this,a);bE(this,6900);b7(this)}B(a7,$D);function b7(a){aE(a,"ytp-button-fullscreen-enter");var b=Z(0,"YTP_FULLSCREEN");a.bb(b);a.j=b};function c7(a,b,c){Y.call(this,["div","ytp-menu-container",{tabIndex:-1,role:"menu","aria-labelledby":b},["div","ytp-menu",["div","ytp-menu-content","{{content}}"]]]);this.o=a;this.k=c||!1;this.g=[];this.j=[]}B(c7,Y);f=c7.prototype;f.add=function(a){for(var b=this.g.length,c=0;c<this.g.length;c++){if(this.g[c]==a)return;if(c<b&&this.g[c].priority<a.priority){b=c;break}}ub(this.g,b,0,a);d7(this)};f.remove=function(a){ob(this.g,a);d7(this)};
function d7(a){zi(a.j);a.j=[];var b,c,d=[],e=1==a.g.length||a.k;e&&a.g.length&&(c=new Y(["div","ytp-menu-row",["div","ytp-menu-cell",a.g[0].label]]),d.push(c));var g=!1;for(b=0;b<a.g.length;b++)g=g||a.g[b].A;var h=g?["ytp-menu-cell","ytp-menu-cell-span"]:"ytp-menu-cell";for(b=0;b<a.g.length;b++){var k=a.g[b];c=k.o;c=e?!g||c?new Y(["div","ytp-menu-row",["div",h,"{{content}}"]]):new Y(["div","ytp-menu-row",["div","ytp-menu-cell","{{content}}"],["div","ytp-menu-cell","{{more}}"]]):!g||k.o?new Y(["div",
"ytp-menu-row",["div",["ytp-menu-cell","ytp-menu-title"],k.label],["div",h,"{{content}}"]]):new Y(["div","ytp-menu-row",["div",["ytp-menu-cell","ytp-menu-title"],k.label],["div","ytp-menu-cell","{{content}}"],["div","ytp-menu-cell","{{more}}"]]);c.ta(k.element);c.ta(e7(a,k),"more");d.push(c)}a.ta(d)}function e7(a,b){if(b.A){var c=Z(0,"YTP_OPTIONS"),d=new $D(a.o,"ytp-menu-more-options",c);bE(d,2700);d.ta(c);a.j.push(d);d.listen("click",b.F,b);return d}return null}f.focus=function(){this.K().focus()};
f.jj=function(){return this.g.length};f.L=function(){this.g=[];d7(this);c7.H.L.call(this)};function f7(a){$D.call(this,a,"ytp-button-next",Z(0,"YTP_NEXT"),Z(0,"YTP_NEXT"));bE(this,6051)}B(f7,$D);function g7(a){$D.call(this,a);bE(this,6E3);h7(this)}B(g7,$D);function h7(a){aE(a,"ytp-button-play");var b=Z(0,"YTP_PLAY");a.bb(b)};function i7(a){$D.call(this,a,"ytp-button-prev",Z(0,"YTP_PREVIOUS"),Z(0,"YTP_PREVIOUS"));bE(this,6050)}B(i7,$D);function j7(a){ZD.call(this);this.C=this.D="unknown";this.G={};this.label=Z(0,"YTP_QUALITY_TITLE");this.k=new GF(a,y(this.B,this),y(this.I,this),!0);T(this,this.k);this.g=NaN;this.element=new BF(a,void 0,this.k);T(this,this.element);DF(this.element,100);this.element.bb(this.label);this.priority=-1;this.o=!0}B(j7,ZD);j7.prototype.Mn=function(){return this.D};
function k7(a,b,c){a.D=b;a.C=c;a.k.Ea(c);var d=a.k;null!=d.g&&FF(IF(d,d.g),!1);null!=b&&FF(IF(d,b),!0);d.g=b;"auto"==c&&c!=b?(b=Z(0,"YTP_AUTO_WITH_QUALITY_2",{VIDEO_QUALITY:l7(a,b)}),b=new OI(b)):b=a.B(b);isNaN(a.g)||(UA()?XA(a.g):O(a.g));UA()?a.g=WA(y(a.element.Md,a.element,b),0):a.g=N(y(a.element.Md,a.element,b),0)}
function l7(a,b){var c="";switch(b){case "highres":c="2160p";break;case "hd1440":c="1440p";break;case "hd1080":c="1080p";break;case "hd720":c="720p";break;case "large":c="480p";break;case "medium":c="360p";break;case "small":c="240p";break;case "tiny":c="144p";break;case "auto":c=Nf("YTP_AUTO")}var d=a.G[b];return d&&30<d?c+d.toString():c}
j7.prototype.B=function(a){var b=["span","",l7(this,a)];"highres"==a?(b.push(" "),b.push(["sup","","4K"])):0==a.indexOf("hd")&&(b.push(" "),b.push(["sup","","HD"]));return new Jy(b)};j7.prototype.I=function(a){this.element.Pd();if("auto"!=this.C||"auto"!=a)k7(this,a,a),this.element.Sb("change")};j7.prototype.L=function(){UA()?XA(this.g):O(this.g);j7.H.L.call(this)};function m7(a){qF.call(this,a,"ytp-size-toggle-large",Z(0,"YTP_THEATER_MODE"),"ytp-size-toggle-small",Z(0,"YTP_DEFAULT_VIEW"));bE(this,6800)}B(m7,qF);m7.prototype.update=function(){m7.H.update.call(this);this.element.removeAttribute("aria-pressed")};function n7(a){ZD.call(this);this.k=2;this.label=Z(0,"YTP_SPEED_TITLE");this.g=new GF(a,y(this.B,this),y(this.C,this));T(this,this.g);this.element=new BF(a,void 0,this.g);T(this,this.element);DF(this.element,100);this.element.bb(this.label);o7(this,this.k);this.priority=1;this.o=!0}B(n7,ZD);function o7(a,b){a.k=b;a.g.Ea(b);a.element.Md(a.B(b))}n7.prototype.B=function(a){return 1==a?Z(0,"YTP_NORMAL_SPEED"):a.toString()};n7.prototype.C=function(a){this.element.Pd();o7(this,a);this.element.Sb("change")};function p7(){Y.call(this,["div",["ytp-time-display","html5-control"],{"aria-hidden":"true"},["span","ytp-time-current","{{current}}"],["span","ytp-time-separator"," / "],["span","ytp-time-duration","{{duration}}"],["span","ytp-time-live-badge","Live"]]);this.liveBadge=this.template.g["ytp-time-live-badge"]}B(p7,Y);p7.prototype.Xe=function(a){Oy(this.template,"duration",Qy(a))};function q7(a,b,c){Q(a.element,"ytp-time-liveonly",b&&!c);Q(a.element,"ytp-time-live",b&&c)}
p7.prototype.L=function(){this.liveBadge=null;p7.H.L.call(this)};function r7(a,b){this.A=a;Y.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:6200},["div","ytp-volume-slider",["div","ytp-volume-slider-foreground"]]]]);this.g=new $D(this.A,"ytp-button-volume",Z(0,"YTP_BUTTON_VOLUME"));T(this,this.g);this.g.Y(this.element,0);bE(this.g,6100);this.k=this.template.g["ytp-volume-slider"];this.o=this.template.g["ytp-volume-slider-foreground"];
this.j=b}B(r7,Y);r7.prototype.bb=function(a){this.g.bb(a)};
r7.prototype.setVolume=function(a,b){var c=Z(0,b?"YTP_UNMUTE":"YTP_MUTE");this.g.j=c;var c=Math.round(a),d=c+"% "+Z(0,"YTP_SCREENREADER_VOLUME_SETTING")+(b?" "+Z(0,"YTP_SCREENREADER_VOLUME_MUTED"):"");this.bb(Z(0,b?"YTP_SCREENREADER_VOLUME_UNMUTE":"YTP_SCREENREADER_VOLUME_MUTE")+" "+Z(0,"YTP_SCREENREADER_CONTROL_TOGGLE"));Oy(this.template,"valuenow",c);Oy(this.template,"valuetext",d);c="max";b||0==a?c="off":20>a?c="min":40>a?c="quiet":60>a?c="normal":80>a&&(c="loud");ih(this.g.K(),"value",c);c=(this.j?
85:54)-(this.j?7:5);d=b?0:a;0>=d?c=0:100<=d||(d=(c-0)*d/100,c=0>=d?0:d>=c?c:0+Math.round(d));this.o.style.left=c+"px"};function s7(a,b,c){GH.call(this,["div","html5-video-controls"]);this.ya=a;this.na=new iz(this);this.C={};this.A=null;this.V=new iz(this);this.ka=-1;this.ha=null;this.wa=c;this.ba=new n2(a,b);T(this,this.ba);this.ba.Y(this.element);c=new Jy(["div","html5-player-chrome"]);T(this,c);c.Y(this.element);c=c.K();this.ga=this.P=!1;this.S=new i7(a);T(this,this.S);this.S.listen("click",z(this.publish,"previousvideo"),this);this.S.Y(c);this.o=new g7(a);T(this,this.o);this.o.Y(c);this.o.listen("click",this.Gv,
this);this.Z=new f7(a);T(this,this.Z);this.Z.listen("click",z(this.publish,"nextvideo"),this);this.Z.Y(c);var d=new Jy(["span","ytp-volume-hover-area"]);T(this,d);d.Y(c);this.j=new r7(a,b);T(this,this.j);this.j.Y(d.K());this.j.g.listen("click",this.Hv,this);this.U=new f2(this.j.k,!0);T(this,this.U);this.U.subscribe("dragstart",this.Dv,this);this.U.subscribe("dragmove",this.Cv,this);this.U.subscribe("dragend",this.Bv,this);this.B=new p7;T(this,this.B);this.B.Y(d.K());this.na.listen(this.B.liveBadge,
"click",z(this.publish,"seekto",Infinity));this.ua=new f2(this.j.K());T(this,this.ua);this.ua.subscribe("hoverstart",this.Jv,this);this.qa=new f2(d.K());T(this,this.qa);this.qa.subscribe("hoverend",this.Iv,this);this.I=new a7(a);T(this,this.I);this.I.Y(c);this.I.listen("click",this.Av,this);this.k=new m7(a);T(this,this.k);this.k.hide();this.k.Y(c);this.k.listen("click",this.yv,this);this.G=new $D(a,"ytp-button-watch-on-youtube",Z(0,"YTP_URL_NAVIGATE"),Z(0,"YTP_URL_NAVIGATE"));T(this,this.G);bE(this.G,
6700);this.G.Y(c);this.G.listen("click",this.Fv,this);this.J=new PF(a);T(this,this.J);t7(this,"__default__",this.J,this.G.K());this.ma=new $D(a,"ytp-button-playlist",Z(0,"YTP_PLAYLIST"),Z(0,"YTP_PLAYLIST"));bE(this.ma,6400);this.ma.Y(c);T(this,this.ma);this.g=new $D(a,"ytp-button-watch-later",Z(0,"YTP_WATCH_LATER"));a.Ue(this.g.K(),"YTP_WATCH_LATER_AS_2",Z(0,"YTP_WATCH_LATER"));this.g.Y(c);bE(this.g,6300);this.g.bb(Z(0,"YTP_WATCH_LATER"));T(this,this.g);this.g.listen("click",this.Ev,this);this.F=
new j7(a);T(this,this.F);this.F.listen("change",this.xv,this);this.O=new n7(a);T(this,this.O);this.O.listen("change",this.zv,this);this.M=new Y6(a);T(this,this.M);this.M.listen("change",this.vv,this);this.N=new $6(a);T(this,this.N);this.N.listen("change",this.wv,this)}B(s7,GH);f=s7.prototype;f.jB="__default__";f.Hl=!1;f.disable=function(a){u7(this,a,!0)};f.enable=function(a){u7(this,a,!1)};
function u7(a,b,c){for(var d=0;d<b.length;d++)switch(b[d]){case "audio":Q(a.element,"disabled-control-audio",c);break;case "play_pause":var e=a.o;c?e.disable():e.enable();break;case "seek":Q(a.element,"disabled-control-seek",c)}}f.setVolume=function(a,b){if(this.ka!=a||this.ha!=b)this.j.setVolume(a,b),this.ka=a,this.ha=b};f.Xe=function(a){this.B.Xe(a)};f.Hv=function(){this.publish("mutetoggled")};
function v7(a,b){if(b){if(a.Hl){var c=a.o;aE(c,"ytp-button-stop");var d=Z(0,"YTP_STOP")}else c=a.o,aE(c,"ytp-button-pause"),d=Z(0,"YTP_PAUSE");c.bb(d)}else h7(a.o)}function w7(a){var b=a.Z;a.P||a.ga?b.show():b.hide();b=a.S;a.P?b.show():b.hide()}f.Gv=function(){this.publish("playpausetoggled")};f.Jv=function(){P(this.j.K(),"ytp-volume-control-hover")};f.Iv=function(){fh(this.j.K(),"ytp-volume-control-hover")};f.Dv=function(){P(this.j.K(),"ytp-volume-slider-active");this.publish("volumechangestart")};
f.Cv=function(a){a=(a-Gg(this.j.k).x)/(this.j.j?85:54)*100;a={volume:Ic(a,0,100),muted:!1};this.publish("volumechanged",a)};f.Bv=function(){fh(this.j.K(),"ytp-volume-slider-active");this.publish("volumechangeend");Rd(this.element).focus()};f.Av=function(){this.publish("fullscreentoggled")};function x7(a,b){var c=a.C[b.j||"__default__"].menu;c&&c.add(b)}function y7(a,b){var c=a.C[b.j||"__default__"].menu;c&&c.remove(b)}
function t7(a,b,c,d){if(!a.C[b]){if("remote"==b)Kd(Rd(a.J.K()),c.K(),0);else{var e=c.K();d=d||a.J.K();d.parentNode&&d.parentNode.insertBefore(e,d.nextSibling)}e=c.listen("click",z(a.iF,b),a);c.K().getAttribute("aria-label");d=c.K().id;d=new c7(a.ya,d,"__default__"!=b);d.hide();d.Y(a.element);a.C[b]={menu:d,button:c,gF:e}}}function z7(a,b){var c=a.C[b];c&&(c.button.detach(),c.button.Da(c.gF),c.menu.dispose(),delete a.C[b])}
f.Ev=function(){var a=this.g.K();if(!dh(a,"html5-async-progress")){var b=dh(a,"html5-async-success");X6(a,"html5-async-progress");this.publish("watchlater",b)}};f.Fv=function(){this.publish("watchonyoutube")};f.kB=function(a){a.target&&(Sd(this.A.button.K(),a.target)||Sd(this.A.menu.K(),a.target))||this.yf()};f.yf=function(){this.publish("menu_show")};f.iF=function(a){var b=this.C[a];b&&b.menu.jj()&&(b.button.g?this.yf():this.publish("menu_show",a))};
f.vv=function(){this.publish("audiotrackchanged",this.M.k);this.yf()};f.xv=function(){var a=this.F.Mn();this.publish("qualitychanged",a);this.publish("controlclick","quality-"+a);this.yf()};f.yv=function(){var a=this.k;a.g?sF(a):rF(a);this.k.K().focus();this.publish("sizechangerequested",1==this.k.g)};f.zv=function(){var a=this.O.k;this.publish("speedchanged",a);this.publish("controlclick","speed-"+a);this.yf()};f.wv=function(){this.publish("autonavchangerequest",0==this.N.getSelected()?2:1)};
f.iy=function(a){var b=a.target;a=b==this.o.K()?"playpause":b==this.j?"volume":b==this.B?"time":b==this.J?"settings":b==this.g?"watchlater":b==this.G?"youtube":b==this.I.K()?"fullscreen":b==this.k?"size":a.target.className;this.publish("controlclick",a)};f.focus=function(){this.o.K().focus()};f.L=function(){this.na.removeAll();this.V.removeAll();this.A=null;for(var a in this.C)z7(this,a);this.wa||(this.ka=-1,this.ha=null);s7.H.L.call(this)};function A7(a){B7("add_to_watch_later_list",a)}function C7(a){B7("delete_from_watch_later_list",a)}function B7(a,b){Fj("/playlist_video_ajax?action_"+a+"=1",{method:"POST",Be:{feature:b.nH||null,authuser:b.Va||null,pageid:b.pageId||null},cb:{video_ids:b.videoIds||null,source_playlist_id:b.sourcePlaylistId||null,full_list_id:b.oH||null,delete_from_playlists:b.pH||null,add_to_playlists:b.mH||null,plid:Hf("PLAYBACK_ID")||null},context:b.context,onError:b.onError,Qa:b.Qa,Lb:b.Lb})};function D7(a,b){S.call(this);this.F=a;this.C=[];this.G=b;this.D=[]}B(D7,S);function E7(a,b,c){a.C.push(a.F.subscribe(b,c,a))}function F7(a,b,c){a.D.push(a.G.subscribe(b,c,a))}function G7(a){for(var b=0;b<a.C.length;b++)a.F.Jb(a.C[b]);for(b=0;b<a.D.length;b++)a.G.Jb(a.D[b])}D7.prototype.L=function(){G7(this);D7.H.L.call(this)};function H7(a,b,c,d){D7.call(this,a,b);this.B=!1;this.A=a;this.g=b;this.o=c;this.j=0;this.k=d;a=a.R();a.color&&P(this.g.F,a.color);a.Wh&&(a=this.g,a.j=new k2,a.j.Y(a.K()),T(a,a.j));I7(this)}B(H7,D7);
function I7(a){G7(a);a.B=!0;E7(a,"cuerangesadded",a.oF);E7(a,"cuerangesremoved",a.pF);E7(a,"cuerangemarkersupdated",a.nF);E7(a,"progresssync",a.pq);E7(a,"resize",a.rF);E7(a,"seekto",a.tF);E7(a,"videodatachange",a.uF);E7(a,"videoplayerreset",a.oq);E7(a,"videoready",a.sF);F7(a,"beginseeking",a.mF);F7(a,"endseeking",a.qF);F7(a,"seekto",a.lF)}f=H7.prototype;f.oF=function(a){w2(this.g,a)};f.pF=function(a){y2(this.g,a)};f.nF=function(a){w2(this.g,a)};
f.rF=function(a){var b=this.g;b.A=a.width;o2(b);b=this.o;b.g=b.B.ab();b.j&&b.k&&U6(b);b=this.k;a=a.width;!b.ac||b.Ld==a&&b.F||(b.Ld=a,S6(b,!0))};f.tF=function(a){var b=this.A.Kb.Cg();a=b2(new Z1(b.seekableStart,b.seekableEnd),a);b=this.g;u2(b,n(a)?a:b.B,n(void 0)?void 0:b.G);b=this.k;if(b.ac){b.El=b.Nk*a-b.Ld/2;Ag(b.g,-1*b.El);var c=a2(b.k,a),d=ft(b.ac,b.Nb),d=b.ac.g[d].Ai(c);R6(b,d);Ud(b.I,Qy(b.B?c-b.k.g:c));yn(b.A)}b=this.o;b.j&&b.k&&(a=a2(b.A,a),c=ft(b.j,b.g.width),b.o=b.j.g[c].Ai(a),U6(b))};
f.oq=function(a){if(1!=a.getPlayerType()){if(!this.B)return;G7(this);this.B=!1;E7(this,"videoplayerreset",this.oq)}else if(!this.B){I7(this);var b=this.g;Jd(b.ga);b.I={};b.P={};w2(this.g,a.B.g.g||[])}this.g.j&&l2(this.g.j);this.j&&(O(this.j),this.j=0);this.k.hide();this.o.hide();this.pq()};
f.uF=function(a,b){var c=new Z1(0,b.lengthSeconds),d=this.g;d.g=c;v2(d);o2(d);this.g.j&&(this.g.j.j=c);this.k.k=c;this.o.A=c;c=this.g;c.N=b.clipStart;t2(c);u2(c,c.B,c.G);c=this.g;c.O=b.clipEnd;t2(c);u2(c,c.B,c.G);Q(this.g.F,"spacecast-cached",!!b.Z)};
f.sF=function(a){if(this.g.j){var b=this.g.j;b.Mi||(Av(a)?(P(b.K(),"with-thumbnail"),b.xe=Av(a),b.Lg=Bv(a),b.Lg.subscribe("l",b.Sy,b)):l2(b))}b=this.k;b.o&&Jd(b.g);fh(b.K(),"enabled");XA(b.j);b.ac=Av(a);b.we=Bv(a);b.B=a.Wa;b.ac&&!b.dq&&(P(b.K(),"enabled"),b.we.subscribe("l",b.Mp,b),S6(b),XA(b.j),b.j=WA(y(b.Ly,b)));b=this.o;b.j=Av(a);b.k=Bv(a);this.g.ib=a.yb?!0:!1;Hv(a)?(a=this.g,a.k&&(a.k.dispose(),a.k=null)):(a=this.g,a.k||(a.k=new f2(a.F,!0),a.k.subscribe("hoverstart",a.Ny,a),a.k.subscribe("hovermove",
a.Py,a),a.k.subscribe("hoverend",a.Oy,a),a.k.subscribe("dragstart",a.My,a),a.k.subscribe("dragmove",a.Ry,a),a.k.subscribe("dragend",a.Qy,a)))};f.pq=function(a,b){var c=this.A.Kb.Cg(),d=n(a)?a:c.current,e=new Z1(c.seekableStart,n(b)?b:c.seekableEnd),c=b2(e,c.loaded),d=b2(e,d),g=this.g;g.g=e;v2(g);o2(g);g=this.g;u2(g,n(d)?d:g.B,n(c)?c:g.G);this.g.j&&(this.g.j.j=e);this.k.k=e;this.o.A=e};
f.mF=function(a){B1(this.A.k);null==a||isNaN(a)||this.A.Ph("chaptermarker",{position:a});this.j&&O(this.j);this.j=N(y(this.VD,this),200)};f.qF=function(){this.A.k.Ei();this.k.hide();this.o.hide();this.j&&(O(this.j),this.j=0)};f.lF=function(a,b){hw(this.A,a,b)};f.VD=function(){this.k.show();this.o.show()};f.L=function(){H7.H.L.call(this)};function J7(a,b,c,d){D7.call(this,a,b);E7(this,"applicationplayerstatechange",this.Ex);E7(this,"controlsdisabled",this.Hx);E7(this,"controlsenabled",this.Ix);E7(this,"liveviewshift",this.Lx);E7(this,"fullscreentoggled",this.Kx);E7(this,"presentingplayerstatechange",this.Ux);E7(this,"progresssync",this.ry);E7(this,"videoplayerreset",this.qy);E7(this,"videodatachange",this.oy);E7(this,"onPlaybackQualityChange",this.Xx);E7(this,"onVolumeChange",this.ey);E7(this,"menu_button_add",this.Mx);E7(this,"menu_button_remove",
this.Nx);E7(this,"menu_item_add",this.Ox);E7(this,"menu_item_remove",this.Px);E7(this,"menu_show",this.my);E7(this,"onPlaybackRateChange",this.Tx);E7(this,"onPlaylistUpdate",this.Vx);E7(this,"autonavchange",this.ly);F7(this,"fullscreentoggled",this.Jx);F7(this,"mutetoggled",this.Qx);F7(this,"nextvideo",this.Rx);F7(this,"playpausetoggled",this.Sx);F7(this,"previousvideo",this.Wx);F7(this,"qualitychanged",this.Yx);F7(this,"audiotrackchanged",this.Fx);F7(this,"seekto",this.ny);F7(this,"sizechangerequested",
this.Zx);F7(this,"speedchanged",this.$x);F7(this,"volumechanged",this.fy);F7(this,"volumechangestart",this.by);F7(this,"volumechangeend",this.ay);F7(this,"watchlater",this.gy);F7(this,"watchonyoutube",this.hy);F7(this,"controlclick",this.Gx);F7(this,"showdialog",this.jy);F7(this,"menu_show",y(a.Dh,a));F7(this,"autonavchangerequest",this.ky);this.g=a;this.j=b;this.k=NaN;this.o=new H7(a,b.ba,c,d);T(this,this.o);a=a.R();a.mc&&(b=this.j,this.g.R().Bd?rF(b.k):sF(b.k),b.k.show());a.Re||this.j.g.hide();
a.lg&&this.j.I.show();a.I&&(b=this.j,c=b.O,HF(c.g,this.g.g.I?Lt:[1]),d=2300,KF(c.g,d++),d=d++,bE(c.element.g,d),x7(b,b.O));if(a.experiments.I)for(b=this.j,c=[b.o,b.j,b.B,b.g,b.G,b.I,b.J,b.k],d=0;d<c.length;d++)b.na.listen(c[d].K(),"click",b.iy,b);ow(a)&&this.j.G.hide()}B(J7,D7);f=J7.prototype;f.Hx=function(a){this.j.disable(a)};f.Ix=function(a){this.j.enable(a)};f.Lx=function(a){Q(this.j.B.element,"ytp-time-live-dvr",!a)};
f.Kx=function(a){var b=this.j;this.g.R();a?(a=b.I,aE(a,"ytp-button-fullscreen-exit"),b=Z(0,"YTP_EXIT_FULLSCREEN"),a.bb(b),a.j=b):b7(b.I);K7(this)};f.Ux=function(a){X(a.state,2)||(0<ez(a,8)?v7(this.j,!0):0>ez(a,8)?v7(this.j,!1):0>ez(a,2)&&v7(this.j,X(a.state,8)));0>ez(a,16)&&L7(this,this.g.getCurrentTime())};f.Ex=function(a){if(X(a.state,2)&&!sI(this.g)){a=this.j.o;aE(a,"ytp-button-replay");var b=Z(0,"YTP_REPLAY");a.bb(b)}};
f.qy=function(a){M7(this)&&(L7(this,a.getCurrentTime()),X6(this.j.g.K()),o7(this.j.O,1),a.getVideoData()&&N7(this,a.getVideoData()))};f.oy=function(a,b){M7(this)&&N7(this,b)};function K7(a){a.g.o?(a=a.j,a.P=!0):(a=a.j,a.P=!1);w7(a)}function O7(a){a.g.R().experiments.A&&!a.g.o&&"detailpage"==a.g.R().ca?(a=a.j,x7(a,a.N)):(a=a.j,y7(a,a.N))}
function N7(a,b){a.j.Xe(b.lengthSeconds);var c=uw(a.g),d=a.j,e=ww(c),g=c.g.g?at(c.g.g):{},h=d.F;h.G=g;HF(h.k,e);KF(h.k,2600);bE(h.element.g,2601);e.length?x7(d,d.F):y7(d,d.F);d=a.j;e=tw(a.g);g=P7(a.g);k7(d.F,e,g);QF(d.J,e);d=a.j;c=c.g.g?c.g.g.audioTracks:[];HF(d.M.g,c);1<c.length?x7(d,d.M):y7(d,d.M);(c=fH(a.g))&&Z6(a.j.M,c);c=a.j;d=b.Wa;e=b.yb;c.Hl=d&&!e;q7(c.B,d,e);X(a.g.getPlayerState(),2)||v7(a.j,X(a.g.getPlayerState(),8));K7(a);O7(a)}
f.Xx=function(a){if(M7(this)){var b=this.j,c=P7(this.g);k7(b.F,a,c);QF(b.J,a)}};f.ey=function(a){this.j.setVolume(a.volume,a.muted)};f.Ox=function(a){x7(this.j,a)};f.Px=function(a){y7(this.j,a)};f.Mx=function(a,b){t7(this.j,a,b)};f.Nx=function(a){z7(this.j,a)};
f.my=function(a){if(a==s7.prototype.jB&&this.g.C.isAvailable("captions")){var b=yw(this.g.C,"captions");b&&!b.loaded&&b.load()}b=this.j;b.V.removeAll();b.A&&(document.activeElement&&Sd(b.A.menu.K(),document.activeElement)&&Rd(b.element).focus(),b.A.menu.hide(),sF(b.A.button),b.A=null);a&&(a=b.C[a])&&(b.publish("showdialog"),b.A=a,rF(a.button),a.menu.show(),a.menu.focus(),b.V.listen(window,"blur",b.yf),b.V.listen(document,"click",b.kB))};f.ry=function(a){L7(this,n(a)?a:this.g.Kb.Cg().current)};
f.Jx=function(){pw(this.g,!this.g.R().Ya)};f.Qx=function(){this.g.G.muted?lw(this.g):kw(this.g)};f.Rx=function(){Gw(this.g)};f.Sx=function(){Q7(this.g)};f.Wx=function(){Hw(this.g)};f.Yx=function(a){ax(this.g,a,1)};f.Fx=function(a){var b=uw(this.g,1);if(b&&!b.da()&&!X(b.o,128)&&b.g.g.g&&(b=b.k,!b.da())){var c=b.A;a=a.id;c.A="m";c.o=c.D.g[a];c.F=UZ(c);b.publish("audioformatchange",new OZ(c.F,c.k,c.A));T_(b,b.k,UZ(b.A));m_(b.k);Q_(b)}};f.jy=function(a){this.g.kk(a)};f.ny=function(a){hw(this.g,a,!0)};
f.Zx=function(a){var b=this.g;pw(b,!1);a!=b.g.Bd&&(b.g.Bd=a,b.publish("SIZE_CLICKED",a))};f.$x=function(a){sw(this.g,a)};f.by=function(){this.k=jw(this.g)};f.fy=function(a){R7(this.g,a)};f.ay=function(){jw(this.g)||R7(this.g,{muted:!0,volume:this.k})};f.hy=function(){A6(this.g)};f.Gx=function(a){O5(this.g,a)};f.gy=function(a){(a?C7:A7).call(this,S7(this,a?this.AG:this.BG))};f.Tx=function(a){o7(this.j.O,a)};f.Vx=function(){K7(this);O7(this)};
f.ly=function(a){var b=this.j;b.ga=1!=a;w7(b);b.N.Ea(b.ga?0:1)};f.ky=function(a){this.g.publish("onAutonavChangeRequest",1!=a)};function S7(a,b){return{videoIds:Ow(a.g).videoId,Va:a.g.R().Va,pageId:a.g.R().pageId,Qa:b,onError:a.iE,context:a}}f.BG=function(){var a=this.j.g.K();X6(a,"html5-async-success");this.g.publish("WATCH_LATER_VIDEO_ADDED")};f.AG=function(){X6(this.j.g.K());this.g.publish("WATCH_LATER_VIDEO_REMOVED")};
f.iE=function(a,b){var c=b&&b.error_message,d=this.j.g.K();X6(d,"html5-async-error");if(c){var e=$5.getInstance(),g=b6(d);d6(d,c);a6(e,d);Z5(d,g)}};function M7(a){return 1==uw(a.g).getPlayerType()}function L7(a,b){if(M7(a)&&(Oy(a.j.B.template,"current",Qy(b)),14400<b&&a.g.getVideoData().yb)){var c=a.j;c.Hl=!0;q7(c.B,!0,!1)}};var T7={0:[],1:["autohide-controls"],2:["autohide-controls-aspect","autohide-controls-fullscreen","autominimize-progress-bar-non-aspect"],3:["autominimize-progress-bar"]};
function U7(a){r5.call(this,a);this.ua=this.Z=this.ba=this.F=this.Ga=this.B=null;a=a.R();if("1"==a.g){this.F=new s7(this.j,a.Mc,a.experiments.ba);T(this,this.F);this.F.Y(this.element);this.ba=new T6(this.j);var b=this.ba.K();this.k.appendChild(b);T(this,this.ba);this.Z=new Q6(this.j.xb().width);this.Z.Y(this.F.ba.K(),0);T(this,this.Z);this.ua=new J7(this.app,this.F,this.ba,this.Z);T(this,this.ua)}this.M=new N4(60);T(this,this.M);P(this.M.element,"html5-video-loader");P(this.M.element,"html5-center-overlay");
P(this.M.element,"ytp-scalable-icon-grow");this.M.Y(this.k);this.Xa=new Y(["div","ytp-clickguard"]);T(this,this.Xa);this.Xa.Y(this.element);this.N=new V6(a.isMobile,a.Zb,a.qo);T(this,this.N);this.N.Y(this.k);this.N.listen("click",this.uy,this);this.U=new I6;T(this,this.U);this.U.Y(this.k);this.qa=null;this.I=new o5(new n5(this.element),y(this.vy,this),a.Mc);this.I.subscribe("autohideupdate",y(this.wy,this));this.ya=!0;this.A=new J6(this.j);T(this,this.A);this.A.hide();this.A.Y(this.element)}
B(U7,r5);f=U7.prototype;f.gm=function(){U7.H.gm.call(this);this.app.subscribe("appstatechange",this.CF,this);this.app.subscribe("initializingmode",this.EF,this);this.app.subscribe("presentingplayerstatechange",this.DF,this);this.app.subscribe("onDetailedError",this.FF,this);this.app.subscribe("clearvideooverlays",this.In,this);this.app.subscribe("menu_show",this.GF,this)};f.dk=function(){U7.H.dk.call(this);this.Ln(this.app.R());this.Kn()};
f.vy=function(a){if(Sd(this.k,a))return!1;for(;!a||!Zd(a);){if(!a||a==this.element)return!1;a=Rd(a)}return!0};f.wy=function(a){Q(this.element,"ytp-block-autohide",!a);this.app.Sa(a?"onHideControls":"onShowControls")};
f.Ln=function(a){a.theme&&this.addClass(a.theme+"-theme");(a.qa||"0"==a.g)&&this.addClass("modest-branding");a.bi&&this.addClass("html5-hide-share");a.Ga||this.addClass("html5-hide-volume");a.Mc&&(this.addClass("html5-tablet"),P(document.body,"html5-tablet-body"));V7(this)&&this.addClass("ideal-aspect");!this.I.g||this.addClass("ytp-block-autohide")};
f.jh=function(a){U7.H.jh.call(this,a);var b=this.app.R();Q(this.element,"hide-info-bar",!a||!b.vk);var c=T7[b.ga];a&&"1"==b.g?eh(this.element,c):gh(this.element,c)};f.ph=function(a){U7.H.ph.call(this,a);W7(this,a);this.B&&P6(this.B);Q(this.element,"ideal-aspect",V7(this));this.A.D&&K6(this.A)};f.gk=function(){U7.H.gk.call(this);W7(this,this.ab())};f.CF=function(a){(this.ya=2==a)?(this.addClass("cued-mode"),W6(this.N,this.app.getVideoData())):this.removeClass("cued-mode")};
f.DF=function(a){if(this.element){X(a.state,2)&&W6(this.N,this.app.getVideoData());this.I.Ab(128,!(X(a.state,8)&&!X(a.state,32)&&!X(a.state,2)));var b;b=a.state;if(X(b,2))b=["ended-mode"];else{var c=[];X(b,8)?c.push("playing-mode"):X(b,4)&&c.push("paused-mode");X(b,1)&&!X(b,32)&&c.push("buffering-mode");X(b,32)&&c.push("seeking-mode");X(b,64)&&c.push("unstarted-mode");b=c}H(b,"ended-mode")&&((c=X7())&&c.autoPlay||sI(this.app))&&ob(b,"ended-mode");this.qa&&gh(this.element,this.qa);eh(this.element,
b);this.qa=b;b=uw(this.app);!X(b.o,1)||X(b.o,2)||X(b.o,4)||2==b.getPlayerType()?this.M.hide():this.M.show();0>ez(a,64)&&Y7(this.app)}};f.Kn=function(){this.app.R().Mc&&(KA(this,this.element,"gesturechange",this.HD),KA(this,this.element,"gestureend",this.ID));qt?this.k.onclick=y(function(a){this.gn(new th(a))},this):this.hn();var a,b=y(function(){var b=this.g;b&&(rx(b),XH.fillPool(4),this.Da(a))},this);a=KA(this,this.element,"click",b,void 0,!0)};
f.hn=function(){KA(this,this.k,"click",this.gn);KA(this,this.k,"dblclick",this.cu)};f.uy=function(){var a=this.app.R();a.experiments.M&&"embedded"==a.ca&&a.isMobile&&(!Xh||a.G)&&pw(this.app,!0);Z7(this);Q7(this.app)};f.gn=function(a){ee(a.target,"html5-stop-propagation")||(this.element.focus(),"3"!=this.app.R().g&&(Z7(this),Q7(this.app)));O5(this.app,"screenclick")};f.cu=function(a){6!=this.app.I&&this.app.R().lg&&(!ee(a.target,"html5-stop-propagation")&&AB(this.app),O5(this.app,"screendoubleclick"))};
f.HD=function(a){var b=a.scale,c=this.app.R().Ya;b*(c?-1:1)>(c?-.7:1.3)&&AB(this.app);a.preventDefault()};f.ID=function(a){a=a.scale;var b=this.app.R().Ya;a*(b?-1:1)>(b?-.9:1.1)&&AB(this.app)};function V7(a){a=new J(a.element.clientWidth,a.element.clientHeight);a=(a.width/a.height).toFixed(1);return"1.3"==a||"1.8"==a}f.Af=function(a){if(a){var b=this.A;b.g=a;b.ta(a);this.A.show();this.I.Ab(32,!0)}else a=this.A,a.g=null,a.ta(null),this.A.hide(),this.I.Ab(32,!1)};
f.GF=function(a){Q(this.element,"ytp-menu-shown",!!a);this.I.Ab(64,!!a)};
f.FF=function(a){if(this.element){this.B||(this.B=new O6,this.B.Y(this.element),T(this,this.B));var b=this.app.R(),c=a.message,d="embedded"==b.ca,e=a.messageKey,g;a=!1;"YTP_ERROR_GENERIC"!=e||b.Zb?"YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK_FLASH"==e?(g="https://get.adobe.com/flashplayer/",d=!0):"YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK"!=e||b.Zb||(g="/html5",e="YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK"):(g="//support.google.com/youtube/?p=player_error1",e="YTP_ERROR_GENERIC_WITH_LINK_2",b=this.app.R(),
b.experiments.ka&&ow(b)&&(a=!0));g&&(c=Nf(e,{BEGIN_LINK:'<br/><a href="'+g+'"'+(d?' target="_blank"':"")+">",END_LINK:"</a>"}));d=this.B;Ch(d.j);d.j=[];Oy(d.template,"content",new OI(c));if(a)for(c=this.B,a=y(this.HE,this),d=c.element.getElementsByTagName("a"),g=0;g<d.length;g++)c.j.push(R(d[g],"click",a));this.B.show()}};f.HE=function(a){var b=t("yt.player.exports.feedbackShowArticle"),c={as3:!1,html5:!0,player:!0,cpn:this.app.getVideoData().za};b(3037019,"player_error",c)||a.preventDefault()};
f.ab=function(){var a=this.app.R();return"0"==a.g||"3"==a.g||"1"==a.ga?this.xb():new J(this.k.clientWidth,this.k.clientHeight)};f.EF=function(){this.B&&this.B.hide()};function Z7(a){var b=uw(a.app).getPlayerState(),c=a.app.getVideoData(),d="html5-bezel-pause";X(b,8)?c.Wa&&!c.yb&&(d="html5-bezel-stop"):d="html5-bezel-play";a=a.U;d&&Oy(a.template,"icon",d);a.g.show(!0)}f.Pf=function(){var a=this.app.R();ih(document.documentElement,"player-size",a.Ya?"fullscreen":a.Bd?"large":"small");U7.H.Pf.call(this)};
f.In=function(a){this.I.Ab(16,a)};function W7(a,b){if(!b.isEmpty()){var c=b.width,d=b.height,e=0,g=0;c/d>480/360?(e=d,g=360):(e=c,g=480);for(var c=Ic(e/g,.5,1),d=td("ytp-scalable-icon-shrink",a.element),h=0;h<d.length;h++){var k=1==c?"":"scale("+c+")";vg(d[h],"transform",k)}c=Ic(e/g*.33,.5,1);d=td("ytp-scalable-icon-grow",a.element);for(h=0;h<d.length;h++)k=1==c?"":"scale("+c+")",vg(d[h],"transform",k)}}f.mk=function(a){this.F&&v7(this.F,a)};
f.L=function(){this.I.dispose();Fh(this.element);Ld(this.Ga);U7.H.L.call(this);this.N=this.U=this.Ga=null};function $7(a){U7.call(this,a);this.O=new Y(["img",["html5-watermark","ytp-scalable-icon-shrink"],{src:"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",alt:Z(0,"YTP_WATERMARK")}]);T(this,this.O);this.O.hide();this.O.Y(this.element);this.O.listen("click",this.jr,this);this.C=new L5(this.app,this.element,this.j);T(this,this.C);this.C.Y(document.body);a.R().Zb&&P(this.C.K(),"house-brand");this.na=null;this.o=new x6(this.j,this.app);this.o.Y(this.element);T(this,this.o);
this.o.subscribe("title-click",y(this.jr,this));this.o.subscribe("share-click",y(this.xA,this));this.o.subscribe("info-click",y(this.wA,this));this.ir($7.j/$7.g)}B($7,U7);$7.j=3E4;$7.g=50;f=$7.prototype;f.hh=null;f.ir=function(a){var b;if(!(b=0>=a)){b=K("div",{"class":"html5-player-css-loaded"});document.body.appendChild(b);var c="none"==yg(b,"display");Ld(b);b=c}b?0>=a&&Lf(Error("Warning: Player CSS missing.")):N(y(this.ir,this,a-1),$7.g)};f.Ln=function(a){$7.H.Ln.call(this,a);a8(this);a.mc&&this.Pf()};
function a8(a){Q(a.element,"ytp-tiny-mode",290>a.xb().width)}f.hn=function(){this.app.R().lg?this.na||(this.na=new y5(this.k,y(this.gn,this),y(this.cu,this)),T(this,this.na)):$7.H.hn.call(this)};f.Qj=function(a){$7.H.Qj.call(this,a);this.o&&this.o.update(a);var b=this.app;if(b.g.hb?0:b.getVideoData().V||b.g.ib){if(a=a.V)this.O.K().src=a;this.O.show()}};
f.Kn=function(){$7.H.Kn.call(this);var a=this.app.R();a.Mc||(KA(this,this.element,"mousedown",this.yF,void 0,!0),KA(this,this.element,"keydown",this.xF,void 0,!0));a.xk||(KA(this,this.element,"keypress",this.AF),KA(this,this.element,"keydown",this.zF))};f.xF=function(a){var b=!1;switch(a.keyCode){case 32:case 13:if(b=a.target)a=a.target,b="BUTTON"==a.tagName||"A"==a.tagName||"button"==a.getAttribute("role");break;case 9:b=!0}b&&P(this.element,"ytp-keyboard-focus")};
f.yF=function(){fh(this.element,"ytp-keyboard-focus")};
f.AF=function(a){var b=!1===a.Tb.returnValue,c=a.keyCode;if(!b){if(179==c||178==c)179==c&&(this.publish("playpausetoggled",!0),b=!0),178==c&&(nw(this.app),b=!0);98==c&&(this.app.qd("onBackgroundChange"),b=!0);111==c&&(this.app.qd("onTextOpacityChange"),b=!0);119==c&&(this.app.qd("onWindowOpacityChange"),b=!0);if(61==c||43==c)this.app.qd("onFontSizeIncrease"),b=!0;if(45==c||95==c)this.app.qd("onFontSizeDecrease"),b=!0;99==c&&(this.app.qd("onCaptionsToggle"),b=!0);102==c&&(AB(this.app),b=!0);109==c&&
(this.app.G.muted?lw(this.app):kw(this.app),b=!0);32==c&&(Z7(this),Q7(this.app),b=!0);48<=c&&57>=c&&(hw(this.app,(c-48)/10*iw(this.app)),b=!0);if(60==c||62==c){var b=this.app.g.I?Lt:[1],d=b.indexOf(this.app.ja);60==c&&0<d?sw(this.app,b[d-1]):62==c&&d<b.length-1&&sw(this.app,b[d+1]);b=!0}if(d=63==c)d=this.app.R(),d=d.experiments.fb?!ow(d)||d.Ya:!0;d&&(this.hh||(this.hh=new B6(this.j),T(this,this.hh),this.hh.listen("done",this.km,this)),this.A.D?this.km():this.Af(this.hh),b=!0);b&&a.preventDefault()}this.app.qd("onKeyPress",
a);this.app.R().zb()&&this.app.Gh("onKeyPress",{keyCode:c,handled:b})};
f.zF=function(a){var b=!1===a.Tb.returnValue,c=a.keyCode;if(!b){if(38==c||40==c||37==c||39==c){b=5;a.ctrlKey&&(b*=2);if(38==c)b=this.app,R7(b,{volume:b.G.volume+5,muted:!1});else if(40==c)b=this.app,R7(b,{volume:b.G.volume-5,muted:!1});else if(37==c){var d=this.app,b=-1*b;hw(d,d.getCurrentTime()+b,!1,250,void 0)}else 39==c&&(d=this.app,hw(d,d.getCurrentTime()+b,!1,250,void 0));b=!0}36==c&&(hw(this.app,0),b=!0);35==c&&(hw(this.app,Infinity),b=!0);27==c&&(Ih()?(pw(this.app,!1),b=!0):this.C&&this.C.D?
(this.C.hide(),b=!0):"1"==this.app.R().g&&null!=this.F.A?(this.app.Dh(),b=!0):this.A.D&&(this.km(),b=!0));b&&a.preventDefault()}this.app.R().zb()&&this.app.Gh("onKeyPress",{keyCode:c,altKey:a.altKey,ctrlKey:a.ctrlKey,metaKey:a.metaKey,shiftKey:a.shiftKey,handled:b,fullscreen:this.app.R().Ya})};f.jr=function(){A6(this.app)};
f.xA=function(){if("detailpage"==this.app.R().ca){pw(this.app,!1);var a=this.app,b=a.getVideoData();a.publish("SHARE_CLICKED",{videoId:b.videoId,listId:b.playlistId,feature:"player_"+a.g.ca})}else a=!w6(this.o),this.app.Hh(a),a&&v6(this.o,!0)};f.wA=function(){var a=!dh(this.o.element,"show-more-info");this.app.Hh(a);a&&this.o.Yf(!0)};f.In=function(a){$7.H.In.call(this,a);v6(this.o,!1);this.o.Yf(!1)};f.km=function(){this.Af()};
f.Bm=function(a){$7.H.Bm.call(this,a);this.C&&(a?this.C.Y(this.K()):this.C.Y(document.body),this.C.hide());a&&"1"==this.app.R().g&&this.F.focus()};f.ph=function(a){$7.H.ph.call(this,a);a8(this)};f.hm=function(){$7.H.hm.call(this);if(!this.app.R().isMobile){var a=new F6(this.element,this.app.R());T(this,a);this.j.g=a;var b=td("ytp-tooltip-anchor",this.element);E(b,function(b){a.nf(b)})}};f.xb=function(){var a=this.app.R();return"detailpage"!=a.ca||a.Ya?$7.H.xb.call(this):F5(a,!0)};
f.ab=function(){var a=this.app.R();return"detailpage"!=a.ca||a.Ya?$7.H.ab.call(this):F5(a)};f.Wt=function(){var a=this.ab();"1"==this.app.R().g&&(a=a.clone(),a.height+=3);return a};var Nw={"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};function b8(a,b){U.call(this);var c=b;c instanceof Jh||(c=new Jh(c));this.W=c;this.g=new yZ(this.W.args||{});T(this,this.g);this.j=new $7(this);T(this,this.j);this.j.subscribe("resize",this.lv,this);this.I=1;this.wa={};this.U=null;this.G=this.g.ek?aw():{volume:100,muted:!1};this.Yb=this.g.zb()?new Vw(this,1):new ew(this,1);T(this,this.Yb);this.wb=new bx(this);T(this,this.wb);this.Kb=new bx(this,1);T(this,this.Kb);this.Z=this.A=null;this.ka={};c=new GJ;kH(this.g)&&(c.j=!0,c.g=.1);this.ma=new wJ(c);
this.ya={internalvideodatachange:this.Ru,liveviewshift:this.$u,playbackready:this.Su,playbackstarted:this.Tu,statechange:this.Uu,signatureexpired:this.fv};var c=new HJ,d=this.wb;c.j!=d&&(IJ(c),c.B={},c.j=d);d={};d.loaded=y(this.ao,this);d.unloaded=y(this.bo,this);d.command_pause=c8(this.pauseVideo,this);d.command_play=c8(this.$c,this);d.command_seek=c8(this.Qe,this);d.command_disable_controls=y(this.hg,this);d.command_enable_controls=y(this.Eh,this);d.command_redirect_controls=y(this.fo,this);d.command_stop_redirect_controls=
y(this.Oh,this);d.command_redirected_show_is_playing=y(this.j.mk,this.j);d.command_progress=y(this.lk,this);d.command_add_cuerange=y(this.eo,this);d.command_remove_cuerange=y(this.ho,this);d.command_remove_cuerange_all=y(this.co,this);d.command_preroll_ready=y(this.jo,this);d.command_update_cuerange_markers=y(this.ko,this);d.command_show_dialog=y(this.kk,this);d.command_clear_video_overlays=y(this.Hh,this);d.command_navigate_to_url=y(this.ik,this);d.command_log=y(this.Ph,this);d.publish_external_event=
y(this.Gh,this);d.module_menu_button_add=y(this.Xn,this);d.module_menu_button_remove=y(this.Yn,this);d.module_menu_item_add=y(this.Zn,this);d.module_menu_item_remove=y(this.$n,this);d.module_menu_show=y(this.Dh,this);d.vss_segment=y(this.pv,this);c.C=d;this.C=c;T(this,this.C);this.J=new nZ(this.g,"",this.C);c=new Z0(this.g,1,this.J,this.j);d8(this,c,this.ya);this.k=c;this.k.Z=this.ma;this.Fb={beginseeking:this.Wu,endseeking:this.Yu,internalaudioformatchange:this.Vu,internalvideodatachange:this.nv,
internalvideoformatchange:this.gv,progresssync:this.dv,seekto:this.mv,onLoadProgress:this.av,onVideoProgress:this.hv,newlicensesession:this.jv,playbackready:this.cv,statechange:this.kv,connectionissue:this.Xu,heartbeatparams:this.iv,videoelementevent:this.ov};this.M=this.B=null;this.Ga=this.na=-1;this.F=this.D=null;this.N={};this.V=null;this.S={};this.ga=null;this.hb=0;this.ua=!1;this.P=!0;this.ha=this.o=null;this.ja=1;this.Xb=this.ba=this.Ha=null;this.ib=this.Xa=!1;this.qa=null;this.vb=0;this.Pe=
!1;this.Ja=0;c=new kv(this.W.args);if(Dv(c)){a1(this.k,c,y(this.ig,this));if("detailpage"==this.g.ca){var d=c.videoId,e=ej("yt-player-restore-playhead"),d=e?e[d]:void 0;d&&(c.startSeconds=d)}fj("yt-player-restore-playhead");(this.g.Fh||AZ(this.g)&&this.g.experiments.ma)&&g1(this.k)}oZ(this.J,"fs");this.j.initialize(a);this.j.dk();c=this.Yb;d=this.j.K();c.yd=d;for(var g in c.Oe)c.yd[g]=c.Oe[g];for(g in c.gg)c.yd[g]=c.gg[g];g=y(this.Zu,this);c=document;"onfullscreenchange"in c?d="fullscreenchange":
(d=mh+"fullscreenchange",d="on"+d in c?d:null);"msfullscreenchange"==d&&(d="MSFullscreenChange");this.Ha=d?R(c,d,g):null;this.Xb=R(window,"resize",y(this.ev,this));c=this.W.args;if(xt()){e8(this);g=Ow(this);d=this.j.ab();this.g.ce=d;this.Sa("onVolumeChange",this.G);"detailpage"==this.g.ca?Xw(this,g):c&&(c.playlist||c.list||c.api)&&(f8(this,c),Dv(g)||(c=this.o,d=y(this.lo,this),c.ae=d,c.Cd&&N(c.ae,0)));if(c=this.W.args.jsapicallback)ka(c)||(c=t(c)),c&&c8(y(c,m,this.g.fk),m);nq(this.g.experiments.g,
this.g.experiments.k,"embedded"==this.g.ca);this.g.jg=Qw(this.g)&&!lb(xq());$2(this,this.k);this.g.Fh&&Dv(g)?g8(this):"leanback"!=this.g.ca&&h8(this)}else dz(this.k,"html5.missingapi","YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK",void 0);this.j.gk();O5(this,"init")}B(b8,U);b8.j="defaultcontext";b8.g={};b8.create=function(a,b){try{var c=b8.k(a);if(b8.g[c]){try{b8.g[c].dispose()}catch(d){Lf(d)}b8.g[c]=null}var e=new b8(a,b);wi(e,function(){b8.g[c]=null});return b8.g[c]=e}catch(g){throw Lf(g),g;}};
b8.k=function(a){return w(a)?a:"player"+ma(a)};
function e8(a){a.A=XH.getTag(!0);a.Z=a.A;a.B&&r1(a.B,a.A);xx(a.A,a.ja);a.g.Dd?(a.ba&&Ch(a.ba),a.ba=R(a.A,"volumechange",y(a.gz,a),!1)):a.A.setVolume(a.G.volume,a.G.muted);var b=a.j;b.g=a.A;b.g.parentNode||Kd(b.k,b.g,0);b.V=new mg(0,0,0,0);s5(b);P(b.g,"video-stream");P(b.g,"html5-main-video");var c=b.app.R();"3"==c.g&&b.g.setAttribute("controls",!0);c.G&&b.g.setAttribute("webkit-playsinline","");b.g.setAttribute("x-webkit-airplay","allow");c.Ja&&(b.ga=R(b.g,"click",y(b.g.play,b.g)));a.g.ub=a.A;rx(a.A)}
function i8(a){if(a.A){a.ba&&(Ch(a.ba),a.ba=null);a.B&&WH(a.B);var b=a.j;b.g&&(Ld(b.g),b.g=null);a.g.ub=null;XH.releaseTag(a.A);a.A=null}}function TH(a,b){a.g.A?(a.V&&(Ag(a.A,a.V.left,a.V.top),Mg(a.A,pg(a.V)),a.V=null),wx(a.A),WH(a.B),r1(a.B,a.A),xx(a.A,a.ja)):XH.releaseTag(b)}function $2(a,b){if(a.B!=b){a.B&&(IJ(a.C),c3(a));if(b!=a.k){var c=b.getPlayerType();a.ka[c]=b}a.B=b;b.Z=a.ma;a.A&&r1(b,a.A);d8(a,b,a.Fb);j8(a,b,b.getVideoData());b.W.g&&k8(a,"dataloaded",b,b.getVideoData())}}
function d8(a,b,c){for(var d in c)b.subscribe(d,c[d],a)}function c3(a){WH(a.B);var b=a.B,c=a.Fb,d;for(d in c)b.unsubscribe(d,c[d],a);b=a.B;b!=a.k&&(c=b.getPlayerType(),a.ka[c]==b&&delete a.ka[c]);a.B=null}f=b8.prototype;f.subscribe=function(a,b,c){return b8.H.subscribe.call(this,a,b,c)};function uw(a,b){return b?1==b?a.k:a.ka[b]||null:a.B}function l8(a){var b=a.C,c=[ME.j,tI,hz,KI,uH,SI,hJ.g,kJ,AH,qJ];c.push(AI.g);E(c,b.wr,b);a.publish("videoready",a.getVideoData())}
f.Su=function(){m8(this)||n8(this,5)};f.cv=function(a){m8(this)||(o8(this),a=a.getPlayerState(),X(a,8)&&!X(a,2)&&this.$c())};function Sw(a){!a.F&&a.Kb.R().jg&&(a.F=new i5(a),p8(a,a.F));if(a.F){var b=Dq();Pw(a.F,xq(),b);var c=a.F;c&&!c.Gd&&c.Fa(a.Kb)&&c.create();b&&a.F.load()}}
function p8(a,b){T(a,b);b.subscribe("loaded",a.ao,a);b.subscribe("unloaded",a.bo,a);b.subscribe("command_pause",c8(a.pauseVideo,a));b.subscribe("command_play",c8(a.$c,a));b.subscribe("command_seek",c8(a.Qe,a));b.subscribe("command_disable_controls",a.hg,a);b.subscribe("command_enable_controls",a.Eh,a);b.subscribe("command_redirect_controls",a.fo,a);b.subscribe("command_stop_redirect_controls",a.Oh,a);b.subscribe("command_redirected_show_is_playing",a.j.mk,a.j);b.subscribe("command_progress",a.lk,
a);b.subscribe("command_add_cuerange",a.eo,a);b.subscribe("command_remove_cuerange",a.ho,a);b.subscribe("command_remove_cuerange_all",a.co,a);b.subscribe("command_update_cuerange_markers",a.ko,a);b.subscribe("command_preroll_ready",a.jo,a);b.subscribe("command_show_dialog",a.kk,a);b.subscribe("command_clear_video_overlays",a.Hh,a);b.subscribe("command_log",a.Ph,a);b.subscribe("command_navigate_to_url",a.ik,a);b.subscribe("publish_external_event",a.Gh,a);b.subscribe("module_menu_button_add",a.Xn,a);
b.subscribe("module_menu_button_remove",a.Yn,a);b.subscribe("module_menu_item_add",a.Zn,a);b.subscribe("module_menu_item_remove",a.$n,a);b.subscribe("module_menu_show",a.Dh,a);b.subscribe("command_log_timing",a.C.F,a.C)}function Rw(a){a&&a.Gd&&a.destroy()}f.Sa=function(a,b){this.publish.apply(this,arguments);this.qd.apply(this,arguments)};f.Zf=function(a,b){var c=sb(arguments);this.g.zb()&&this.B&&c.push(this.B.getPlayerType());this.publish.apply(this,c)};f.canPlayType=function(a){return!!wt().canPlayType(a)};
f.R=function(){return this.g};f.getVideoData=function(){return this.B.getVideoData()};function Ow(a){return a.k.getVideoData()}f.ig=function(){var a=IZ(this.g);ra(a,OJ(this.C));this.D&&ra(a,this.D.Zg());a.fs=this.g.Ya;a.volume=Math.round(jw(this));a.mos=this.G.muted?1:0;return a};f.kk=function(a){this.j.Af(a)};function h8(a){a.publish("initializingmode");n8(a,2)}
function g8(a){if(X(a.getPlayerState(),128))return!1;a.publish("initializingmode");$2(a,a.k);n8(a,3);var b;(b=!a.g.A)||(t("yt.mobile.blazer.blazer_config.isMobilePersistentUniplayer"),b=!1);b&&(i8(a),e8(a),r1(a.k,a.A));l1(a.k);if(X(a.getPlayerState(),128))return!1;q8(a,3);return a.Pe=!0}function m8(a){return Qw(a.g)&&!!Dq()}function c8(a,b){return function(){var c=Array.prototype.slice.call(arguments);N(function(){a.apply(b||this,c)},0)}}
f.ik=function(a,b){b?P5(this,a):(window.ytspf||{}).enabled?spf.navigate(a):jB(a)};f.Ph=function(a,b,c){var d=uw(this);b.event=a;this.g.Ya&&(b.fs=1);d.A&&(a=d.A,b.rt=A0(a.g).toFixed(3),ra(b,P0(a.g)),ra(b,R0(a)),delete b.fexp,b=xj(a.g.j.qb+"player_204",b),ag(b,c))};function sw(a,b){if(!isNaN(b)&&a.A){var c=1,c=a.g.I?Lt:[1],c=1>b?G(c,function(a){return a>=b}):jb(c,function(a){return a<=b});a.ja!=c&&(a.ja=c,a.k==a.B&&xx(a.A,c),a.publish("onPlaybackRateChange",c))}}
function tw(a,b){var c=uw(a,b);return c&&c.getVideoData().j?c.getVideoData().j.video.quality:"unknown"}function fH(a,b){var c=uw(a,b);return c?z1(c):a.getVideoData().S}function P7(a){return(a=uw(a,void 0))?Ys(m0(a.ha,a.g)):"unknown"}function ax(a,b,c,d){if(a=uw(a,c))b=Ss(b,d||b,!0),vw(a,"m",b)}f.getCurrentTime=function(a){return(a=uw(this,a))?a.getCurrentTime():0};function iw(a,b){var c=uw(a,b);return c?c.Pc():0}
function Dw(a,b){var c=a.k.getDebugInfo(b);c.debug_playbackQuality=tw(a);c.debug_date=(new Date).toString();delete c.uga;return eg(c)}function RI(a,b){var c=a.getVideoData(),d=!!c.ma||!!c.Yg||!b;d&&a.A.setAttribute("mozStereoMode","1");MI()&&(a.A.setAttribute("mozStereoMode",d?"1":"0"),c=it[d?c.ka:0],d=document.createElement("NvStereoExtDataElement"),d.setAttribute("stereoMode",c),Id(document.documentElement,d),Gh(d,"3DModeEvent"))}f.getPlayerState=function(a){return(a=uw(this,a||1))&&a.getPlayerState()};
f.ov=function(a){var b=a.target;switch(a.type){case "loadedmetadata":oZ(this.J,"fvb");this.hb=N(y(this.j.Pf,this.j),16);break;case "loadstart":oZ(this.J,"gv");break;case "progress":case "timeupdate":oZ(this.J,"1pb"),2<=mx(b.buffered)&&oZ(this.J,"l2s")}};f.jv=function(a){if(this.ib){var b=this.vb.toString();this.vb++;this.qa[b]=a;a={request:sb(a.g[0]?a.g[0].message:null),sessionId:b,system:a.G.g,url:a.B};this.publish("onNewLicenseSession",a)}else a.start()};
f.av=function(a,b){this.Zf("onLoadProgress",b)};f.hv=function(a,b){this.Zf("onVideoProgress",b)};f.dv=function(){this.lk()};f.lk=function(a,b){this.publish("progresssync",a,b)};
f.Uu=function(a){var b;if(b=0<ez(a,2))this.o&&("embedded"==this.g.ca||this.g.Ya)&&sI(this)?(Gw(this),b=!0):b=!1,b=!b;b&&(this.pauseVideo(),X(a.g,32)&&this.k.Ei(),this.g.isMobile&&pw(this,!1));X(a.state,128)&&(b=a.state,rw(this),b=b.g,b.message||b.messageKey||(b.messageKey="YTP_ERROR_GENERIC"),b.message||(b.message=Nf(b.messageKey)),this.publish("onError",Nw[b.errorCode]||5),this.publish("onDetailedError",b));this.publish("applicationplayerstatechange",a);X(a.state,2)&&(a=this.getVideoData(),a.Wa&&
!a.yb&&this.hg(["play_pause"]))};f.kv=function(a){!X(a.state,32)&&0>ez(a,16)&&(!X(a.state,8)||this.A.ended&&!X(a.state,2)||this.$c());this.publish("presentingplayerstatechange",a);this.qd("onStateChange",a);q8(this,Fx(a.state))};function r8(a){Rw(a.D);Rw(a.F);a.Xa=!1;var b=[],c;for(c in a.N)qw(a,c)&&b.push(c);a.N={};0<b.length&&a.publish("controlsenabled",b);a.Oh();a.wa={};a=a.J;b=a.j;b.o={};b.k={};a.k=!1}function j8(a,b){IJ(a.C);sw(a,1);a.Sa("videoplayerreset",b)}
function k8(a,b,c,d){if(a.A){if("dataloaded"==b)if(zZ(c.R(),d.o),a.B==a.k){nq(a.g.experiments.g,a.g.experiments.k,"embedded"==a.g.ca);var e=m8(a),g;if(g=!e)g=Ow(a).Ho&&!a.g.isMobile;if(g)e="YTP_DEVICE_FALLBACK",Vc||st("iemobile")||st("xbox")&&st("trident")||st("nintendo wiiu")||(e="YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK_FLASH"),dz(a.k,"html5.unsupportedads",e,void 0);else if(g=Ow(a),!(g.k||g.ee||g.de||g.Z||g.U)||e||e1(a.k)){wv(g);e&&n8(a,6);!a.D&&L4.Fa(a)&&(a.D=new L4(a),a.D&&p8(a,a.D));try{var h=
a.D;h&&!h.Gd&&h.Fa(a.Kb)&&h.create()}catch(k){Lf(k),a.k&&q1(a.k,"ad")}Sw(a);l8(a)}else dz(a.k,"fmt.noneavailable","YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK",void 0)}else l8(a);1==c.getPlayerType()&&(a.getVideoData().uk?(a.U=Yb(a.G),a.hg(["audio"]),e=a.A,e.dm=!0,e.muted=!0):(qw(a,"audio")&&a.Eh(["audio"]),a.A.dm=!1,a.U&&(R7(a,a.U),a.U=null)),e=a.getVideoData(),e.Wa&&!a.g.nk?dz(a.k,"html5.unsupportedlive","YTP_DEVICE_FALLBACK",void 0):e.Wa&&!e.yb?a.hg(["seek"]):a.Eh(["seek"]),d.ga||d.Ha||d.A.focEnabled||
d.A.rmktEnabled||a.g.Cf)&&(e=a.getVideoData(),h=1E3*e.lengthSeconds,s8(a,"part2viewed",1,h),s8(a,"engagedview",Math.max(1,1E3*e.be),h),s8(a,"videoplaytime25",.25*h,h),s8(a,"videoplaytime50",.5*h,h),s8(a,"videoplaytime75",.75*h,h),s8(a,"videoplaytime100",h,2147483647),s8(a,"conversionview",h,2147483647));a.Sa("videodatachange",b,d,c.getPlayerType())}}f.Ru=function(a){"newdata"==a&&r8(this)};f.Vu=function(a,b){var c=this.B.getVideoData();a==c&&this.Sa("onPlaybackAudioChange",fH(this).name,b)};
f.nv=function(a,b,c){"newdata"==a?j8(this,b):k8(this,a,b,c)};f.gv=function(a,b){var c=this.B.getVideoData();a==c&&this.publish("onPlaybackQualityChange",a.j.video.quality,b)};
function Xw(a,b){if(b.playlistId){var c=X7();if(c&&0<=c.index){var d=[];E(c.videoIds,function(a){if(a=c.videoData?c.videoData[a]:void 0)a.video_id=a.id,a.author=a.su,d.push(a)});f8(a,{videoList:d,loop:c.autoPlay,index:c.index,list:c.list,playlist_title:c.listTitle,playlist_description:c.listDescription,author:c.author,fetch:0});a.ha&&t8(a,a.ha)}else f8(a,{videoList:[b.videoId],list:b.playlistId,fetch:0}),a.ha=null}}
function f8(a,b){if(a.o){a.o.unsubscribe("error",a.xr,a);xi(a.o);a.o=null;var c=yw(a.C,"playlist");if(c){var d=a.C;if(!d.j||c.Em(d.j))c.destroy(),ob(d.g,c)}}b&&(a.o=new Lv(b),a.o.subscribe("error",a.xr,a),a.C&&(c=a.C,E([AI.g],c.wr,c)))}f.xr=function(){f8(this,null)};function s8(a,b,c,d){b in a.wa||(c=new Gx(c,d,{id:b,priority:1}),c.Oa.subscribe("onEnter",a.Zt,a),c.Oa.subscribe("onExit",a.Zt,a),a.k.B.Bi(c),a.wa[b]=c)}
f.Zt=function(a){var b=a.getId(),c=Ow(this);if("part2viewed"==b)c.Qo&&ag(c.Qo),c.Ha&&ag(c.Ha);else if("conversionview"==b){var d=this.k;d.A&&T0(d.A)}else"engagedview"==b&&ag(c.ga);c.ha&&(d=a.getId(),d=xj(c.ha,{label:d}),ag(d));switch(b){case "videoplaytime25":c.Mo&&ag(c.Mo);ag(c.iw);break;case "videoplaytime50":c.No&&ag(c.No);ag(c.jw);break;case "videoplaytime75":c.Oo&&ag(c.Oo);ag(c.kw);break;case "videoplaytime100":c.Lo&&ag(c.Lo),ag(c.hw)}this.g.Cf&&this.g.Cf[a.getId()]&&(b=this.g.Cf[a.getId()],
c=C(D(b))?!1:-1!=b.search(yf)||-1!=b.search(wf),ag(b,void 0,c));this.k.B.vg(a)};function n8(a,b){b!=a.I&&(2==b&&(q8(a,-1),q8(a,5)),a.I=b,a.publish("appstatechange",b))}function q8(a,b){a.B&&2==a.B.getPlayerType()?a.Ga!=b&&(a.Ga=b,a.Zf("onAdStateChange",b)):a.na!=b&&(a.na=b,a.Zf("onStateChange",b))}function O5(a,b){a.g.experiments.I&&a.Ph("controlclicked",{controlClicked:b})}f.Qe=function(a,b,c,d){b=0!=b;if(d=uw(this,d))2==this.I&&g8(this),m1(d,a,b,c)};
f.mv=function(a,b){var c=a.getVideoData();if(1==this.I||2==this.I)c.startSeconds=b;2==this.I?g8(this):this.Sa("seekto",b)};f.Wu=function(){this.Sa("beginseeking")};f.Yu=function(){this.Sa("endseeking")};function jw(a){return a.G.volume}f.setVolume=function(a){var b=this.G;b.volume=a;R7(this,b)};
function R7(a,b){a.G=b;b.volume=Ic(b.volume,0,100);if(a.g.ek&&!a.g.Dd){var c={};c.volume=isNaN(b.volume)?aw().volume:Ic(b.volume,0,100);c.muted=void 0==b.muted?aw().muted:b.muted;cj("yt-player-volume",c,2592E3)}qw(a,"audio")?a.U&&(a.U=Yb(b),a.Sa("onVolumeChange",b)):(o8(a),a.g.Dd||a.Sa("onVolumeChange",b))}function kw(a){var b=a.G;b.muted=!0;R7(a,b)}function lw(a){var b=a.G;b.muted=!1;5>b.volume&&(b.volume=5);R7(a,b)}
function zw(a,b,c){b.list=b.list||null;b=new kv(b);Ow(a).playlistId!=b.playlistId&&f8(a,null);"detailpage"==a.g.ca&&Xw(a,b);return u8(a,b,c)}function Ww(a,b){a.M&&a.M.getVideoData().videoId==b.videoId||(b.Ja=!0,a.M||(a.M=new Z0(a.g,1,a.J,a.j),a.M.Z=a.ma),a1(a.M,b,y(a.ig,a)),g1(a.M,!0))}
function u8(a,b,c){if(!Xt("_start",a.J.g)){var d=a.J.g;Yt("yt_sts","p",d);Tt("_start",void 0,d);a.J.info("srt",0)}if(a.M&&a.M.getVideoData().videoId==b.videoId){d=a.M;a.M=null;b=d;c=a.k;var e=a.ya,g;for(g in e)c.unsubscribe(g,e[g],a);a.k.dispose();a.k=b;d8(a,b,a.ya);r8(a)}else{d=uw(a,c);if(!d)return!1;O(a.hb);rw(a,c);a1(d,b,y(a.ig,a))}if(!f1(d))return!1;if(d==a.k)return n8(a,1),g8(a);l1(d);return!0}function gw(a,b,c){c=uw(a,c);b&&c==a.k&&(c.getVideoData().zd=!0)}
function Aw(a,b,c){b.list=b.list||null;v8(a,new kv(b),c)}function v8(a,b,c){var d=uw(a,c);d&&(rw(a,c),a1(d,b,y(a.ig,a)),f1(d)&&(zZ(d.R(),b.o),d==a.k&&(n8(a,1),h8(a))))}function eI(a,b,c,d,e){if(!b&&!d)throw Error("Playback source is invalid");b={video_id:b,list:d};a.g.Ya||"detailpage"!=a.g.ca?(c=a.J,e=c.j,e.o={},e.k={},c.k=!1,cu(a.J.g),Rt(),d?(a.P=!1,Fw(a,b,void 0,void 0,void 0)):zw(a,b,1)):(d=new kv(b),d=a.g.getVideoUrl(d,{}),(c||{}).lact=rZ(),t("yt.player.exports.navigate")(d,c,!0),a.ik(d,e))}
function Fw(a,b,c,d,e){if(la(b)&&!ga(b)){c="playlist list listType index startSeconds suggestedQuality".split(" ");d={};for(e=0;e<c.length;e++){var g=c[e];b[g]&&(d[g]=b[g])}b=d}else d={index:c,startSeconds:d,suggestedQuality:e},w(b)&&16==b.length?d.list="PL"+b:d.playlist=b,b=d;f8(a,b);b=a.o;a=y(a.lo,a);b.ae=a;b.Cd&&N(b.ae,0)}f.lo=function(){var a=Xv(this.o);if(this.getVideoData().kg||!this.P){var b=this.getVideoData().zd,a=u8(this,a);b&&gw(this,a)}else a&&v8(this,a)};
function sI(a){var b=X7();return!(!a.o||!Tv(a.o)||b&&!b.autoPlay)}function Gw(a){if(a.o)"detailpage"!=a.g.ca||a.g.Ya?a.o.Cd?Tv(a.o)&&u8(a,Vv(a.o),1):(Vv(a.o),a.P=!1):t8(a,"yt.www.watch.lists.next");else if(1!=a.getVideoData().Kd&&uw(a,1).getVideoData().M){var b=uw(a,1).getVideoData().M[0],c=b.id||b.video_id||"",d=b.session_data?rj(b.session_data,"&"):null;eI(a,c,d,b.list||void 0)}}
function Hw(a){if(a.o)if("detailpage"!=a.g.ca||a.g.Ya)if(a.o.Cd){var b=a.o;(b.Hf||0<=b.Ua-1)&&u8(a,Yv(a.o),1)}else Yv(a.o),a.P=!1;else t8(a,"yt.www.watch.lists.prev")}function t8(a,b){var c=t(b);c?(c(),a.ha=null):a.ha=b}function Iw(a,b){a.o&&(a.o.Cd?u8(a,Xv(a.o,b),1):a.P=!1,Wv(a.o,b))}function X7(){var a=t("yt.www.watch.lists.getState");return a?a():null}function Jw(a){return a.o&&a.o.k?a.o.k.toString():null}
function Cw(a,b){var c=null;if(b){var d=a.getCurrentTime(1),e=iw(a,1);10<d&&10<e-d&&(c={t:Math.floor(d)})}return a.g.getVideoUrl(Ow(a),null,c)}function Ew(a,b,c,d,e,g){b={id:b};"chapter"==g?(b.style="ytp-chapter-marker",b.visible=!0):isNaN(e)||(b.style="ytp-ad-progress",b.visible=!0);c=new Gx(1E3*c,1E3*d,b);c.Oa.subscribe("onEnter",a.aF,a);c.Oa.subscribe("onExit",a.bF,a);a.k.B.Bi(c);a.publish("cuerangesadded",[c]);return!0}f.aF=function(a){this.publish("onCueRangeEnter",a.getId())};
f.bF=function(a){this.publish("onCueRangeExit",a.getId())};f.eo=function(a,b){var c=uw(this,b);c&&(c.B.Bi.apply(c.B,a),this.publish("cuerangesadded",a))};f.ho=function(a,b){var c=uw(this,b);c&&(c.B.vg.apply(c.B,a),this.publish("cuerangesremoved",a))};
f.co=function(a,b){var c=uw(this,b);if(c){for(var c=c.B,d=[],e=c.g.g,g=e.length-1;0<=g;g--){var h=e[g];if(h.namespace==a){var k=c.j.indexOf(h);0<=k&&c.j.splice(k,1);var k=c.g.g,l=xb(k,h,ex);0<=l&&pb(k,l);d.push(h)}}c.qc();this.publish("cuerangesremoved",d)}};f.ko=function(a){this.publish("cuerangemarkersupdated",a)};f.jo=function(a,b){var c=uw(this,b);c&&q1(c,a)};
f.Tu=function(){w8(this,pZ(this.J));if(!this.Xa&&"detailpage"==this.g.ca){this.Xa=!0;var a=this.k;if(a.P&&a.P.g){var b={},c={};a.g.videoId&&(b.docid=a.g.videoId);a.g.playbackId&&(b.plid=a.g.playbackId);b.cpn=a.g.za;b.ad_cpn=a.P.g;var d=A()-a.P.j;a.P.k?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 g in b)"_"!=g.charAt(0)&&(a[g]=b[g]);b=Hf("TIMING_INFO")||{};"e"in b&&
(a.e=b.e);"ei"in b&&(a.ei=b.ei);bu(a)}}if(this.ua&&(b=this.k,b.A))b.A.onError("html5.reboot");this.ua=!1;this.g.experiments.F&&sI(this)&&(b=Xv(this.o,Uv(this.o)))&&Ww(this,b)};function w8(a,b){if(!isNaN(b)&&0<b&&a.k){var c=a.k;c.A&&0<b&&(c.A.o.k.aft=[b])}}f.ao=function(a){"remote"==a?(2==this.I&&g8(this),n8(this,6),Rw(this.D)):this.Zf("onApiChange")};f.bo=function(a){"remote"!=a||m8(this)||(this.$c(),this.pauseVideo());this.Zf("onApiChange")};
f.gz=function(){if(!qw(this,"audio")){var a={volume:100*this.A.volume,muted:this.A.muted};this.G=Yb(a);this.Sa("onVolumeChange",a)}};function o8(a){var b=a.g.Dd?kv.g:a.getVideoData().Wp;a.A.setVolume(a.G.volume*b,a.G.muted)}f.Zu=function(){x8(this,Ih()?1:0)};
function x8(a,b){var c=!!b,d=!!a.Ja!=c;a.Ja=b;if(d){a.j.Bm(c);if("detailpage"==a.g.ca&&!c&&(d=Ow(a),Hf("VIDEO_ID")!=d.videoId)){var e=a.getCurrentTime(),g={};g[d.videoId]=e;cj("yt-player-restore-playhead",g,172800);a.pauseVideo()}Tt("fsc",void 0,a.J.g);a.g.Ya=c;a.j.Pf();a.Sa("fullscreentoggled",c);c={fullscreen:c,videoId:Ow(a).videoId};Jw(a)&&(c.listId=Jw(a));a.publish("onFullscreenChange",c)}}f.lv=function(){Y7(this)};f.ev=function(){2!=this.Ja&&x8(this,Ih()?1:0)};
f.Hh=function(a){this.Sa("clearvideooverlays",!!a)};f.Xn=function(a,b){this.Sa("menu_button_add",a,b)};f.Yn=function(a){this.Sa("menu_button_remove",a)};f.Zn=function(a){this.Sa("menu_item_add",a)};f.$n=function(a){this.Sa("menu_item_remove",a)};f.Dh=function(a){this.Sa("menu_show",a)};f.pv=function(a){(a=uw(this,a))&&a.A&&x0(a.A.j)};f.$u=function(a){this.Sa("liveviewshift",a)};
f.Gh=function(a,b){if("onAdStateChange"==a){var c=arguments[1],d=arguments[2],e=arguments[3]||{};1==c&&(oZ(this.J,"vr"),F1(this.B),w8(this,pZ(this.J)));0==c&&e&&(this.k.P=e);var g=this.g;"leanback"==g.ca&&g.zb()&&(0==c?this.Z=this.A:this.Z=d,this.publish("onAdStateChange",c,e.video_id))}else this.publish.apply(this,arguments)};f.qd=function(a,b){this.C.G.apply(this.C,arguments);this.D&&this.D.publish.apply(this.D,arguments);this.F&&this.F.publish.apply(this.F,arguments)};
f.$c=function(a){(a=uw(this,a))&&(2==this.I?g8(this):X(a.getPlayerState(),2)?this.Qe(0):u1(a))};f.pauseVideo=function(a){(a=uw(this,a))&&a.pauseVideo()};function rw(a,b){var c=uw(a,b);c&&1!=a.I&&2!=a.I&&(IJ(a.C),p1(c),1==b&&Rw(a.D))}function mw(a,b){if(!qw(a,"play_pause")){var c=a.S.play_pause?a.ga:null;c?c.Yd("control_play"):a.$c(b)}}function nw(a,b){if(!qw(a,"play_pause")){var c=a.S.play_pause?a.ga:null;c?c.Yd("control_pause"):a.pauseVideo(b)}}
function Q7(a){var b;if(b=!qw(a,"play_pause"))(b=!a.g.Mc||2!=a.I)||(b=XH.hasTags(void 0));b&&((b=a.S.play_pause?a.ga:null)?b.Yd("control_toggle_play_pause"):(b=uw(a,void 0))&&(X(b.o,8)&&!X(b.o,2)?a.pauseVideo(void 0):a.$c(void 0)))}function hw(a,b,c,d,e){if(!qw(a,"seek")){var g=a.S.seek?a.ga:null;g?g.Yd("control_seek",b):a.Qe(b,c,d,e)}}
function pw(a,b){if(a.g.Ya!=b)if(Hh())if(b){var c=a.j.K(),d=sh(["requestFullscreen","requestFullScreen"],c);d&&d.apply(c)}else(c=sh(["exitFullscreen","cancelFullscreen","cancelFullScreen"],document))&&c.call(document);else x8(a,b?2:0)}function AB(a){pw(a,!a.g.Ya)}function P5(a,b){pw(a,!1);a.pauseVideo();kB(b)}function A6(a){var b=a.getVideoData();"detailpage"==a.g.ca&&a.g.Ya&&Hf("VIDEO_ID")==b.videoId?pw(a,!1):P5(a,Cw(a,!0))}f.getAdState=function(){return this.D?this.D.getAdState():-1};
function Y7(a){var b=a.j.ab();a.g.ce=b;if(a.A){b=!1;if(0!=a.A.readyState&&a.B){var c=new J(a.A.videoWidth,a.A.videoHeight),d=a.getVideoData();Mc(d.Dq,c)||(d.Dq=c,b=!0)}c=u5(a.j);og(a.g.Kr,c)||(a.g.Kr=c,b=!0);c=u5(a.j);og(a.g.ff,c)||(a.g.ff=c,b=!0);b&&(a.B&&vw(a.B,"r"),a.publish("resize",a.j.xb()),a.Sa("onResize"))}}function qw(a,b){return!(!a.N[b]||!a.N[b].length)}
f.hg=function(a,b){b=b||b8.j;var c=[];E(a,function(a){this.N[a]?0>this.N[a].indexOf(b)&&this.N[a].push(b):(this.N[a]=[b],c.push(a))},this);0<c.length&&this.publish("controlsdisabled",c)};f.Eh=function(a,b){b=b||b8.j;var c=[];E(a,function(a){if(qw(this,a)){var e=this.N[a].indexOf(b);0<=e&&this.N[a].splice(e,1);0==this.N[a].length&&c.push(a)}},this);0<c.length&&this.publish("controlsenabled",c)};f.fo=function(a,b,c){this.Oh();this.ga=a;b&&E(b,function(a){this.S[a]=!0},this);c&&JJ(this.C,a,c)};
f.Oh=function(){this.ga=null;this.S={};KJ(this.C)};function Kw(a,b,c,d){if(a.g.zb()){if(a.D&&b==a.D.va)return a.D.Wf(c,d);if(a.F&&b==a.F.va)return a.F.Wf(c,d)}c=b&&c?(a=yw(a.C,b))?a.Wf(c,d):null:null;return c}function Lw(a,b){if(!b){var c=LJ(a.C);a.g.zb()&&(a.D&&c.push(a.D.va),a.F&&c.push(a.F.va));return c}if(a.g.zb()){if(a.D&&b==a.D.va)return a.D.Vf();if(a.F&&b==a.F.va)return a.F.Vf()}return LJ(a.C,b)}
f.fv=function(){if(this.g.experiments.B&&!this.ua){this.ua=!0;var a=this.getVideoData(),b=uw(this).getCurrentTime();zw(this,{video_id:a.videoId,start:b,autoplay:1,splay:1,resume:1,feature:"resume"})}};f.Xu=function(){this.Sa("CONNECTION_ISSUE")};f.iv=function(a){this.Sa("heartbeatparams",a)};f.L=function(){uq();this.k.dispose();this.M&&this.M.dispose();i8(this);this.Ha&&Ch(this.Ha);Ch(this.Xb);zi(Ob(this.ka),this.o);this.Z=null;O(this.hb);b8.H.L.call(this)};function y8(){V5.call(this);this.g=[];this.k={}}B(y8,V5);da(y8);f=y8.prototype;f.bk="button";f.Mf=null;f.register=function(){Y5(this,"click",this.pG);Y5(this,"keydown",this.nG);Y5(this,"keypress",this.oG);X5(this,"page-scroll",this.mG)};f.pG=function(a){a&&!a.disabled&&(z8(this,a),this.click(a))};
f.nG=function(a,b,c){if(!(c.altKey||c.ctrlKey||c.shiftKey)&&(b=A8(this,a))){var d=function(a){var b="";a.tagName&&(b=a.tagName.toLowerCase());return"ul"==b||"table"==b},e;d(b)?e=b:e=Vd(b,d);if(e){e=e.tagName.toLowerCase();var g;"ul"==e?g=this.zG:"table"==e&&(g=this.yG);g&&B8(this,a,b,c,y(g,this))}}};f.mG=function(){var a=this.k;if(0!=Lb(a))for(var b in a){var c=a[b],d=ee(c.activeButtonNode||c.parentNode,W5(this));if(void 0==d||void 0==c)break;C8(this,d,c,!0)}};
function B8(a,b,c,d,e){var g=vA(c),h=9==d.keyCode;h||32==d.keyCode||13==d.keyCode?(d=D8(a,c))?(b=Od(d),"a"==b.tagName.toLowerCase()?window.location=b.href:Gh(b,"click")):h&&E8(a,b):g?27==d.keyCode?(D8(a,c),E8(a,b)):e(b,c,d):(a=dh(b,W5(a,"reverse"))?38:40,d.keyCode==a&&(Gh(b,"click"),d.preventDefault()))}f.oG=function(a,b,c){c.altKey||c.ctrlKey||c.shiftKey||(a=A8(this,a),vA(a)&&c.preventDefault())};function D8(a,b){var c=W5(a,"menu-item-highlight"),d=vd(c,b);d&&fh(d,c);return d}
function F8(a,b,c){P(c,W5(a,"menu-item-highlight"));var d=c.getAttribute("id");d||(d=W5(a,"item-id-"+ma(c)),c.setAttribute("id",d));b.setAttribute("aria-activedescendant",d)}f.yG=function(a,b,c){var d=D8(this,b);b=qh("table",b);var e=qh("tr",b),e=ud("td",null,e).length;b=ud("td",null,b);d=G8(d,b,e,c);-1!=d&&(F8(this,a,b[d]),c.preventDefault())};f.zG=function(a,b,c){if(40==c.keyCode||38==c.keyCode){var d=D8(this,b);b=eb(ud("li",null,b),vA);d=G8(d,b,1,c);F8(this,a,b[d]);c.preventDefault()}};
function G8(a,b,c,d){var e=b.length;a=cb(b,a);if(-1==a)if(38==d.keyCode)a=e-c;else{if(37==d.keyCode||38==d.keyCode||40==d.keyCode)a=0}else 39==d.keyCode?(a%c==c-1&&(a-=c),a+=1):37==d.keyCode?(0==a%c&&(a+=c),--a):38==d.keyCode?(a<c&&(a+=e),a-=c):40==d.keyCode&&(a>=e-c&&(a-=e),a+=c);return a}function H8(a,b){var c=b.iframeMask;c||(c=document.createElement("iframe"),c.src='javascript:""',c.className=W5(a,"menu-mask"),b.iframeMask=c);return c}
function C8(a,b,c,d){var e=ee(b,W5(a,"group")),g=!!kh(b,"button-menu-ignore-group"),e=e&&!g?e:b,g=5,h=4,k=Rg(b);if(dh(b,W5(a,"reverse"))){g=4;h=5;k=k.top+"px";try{c.style.maxHeight=k}catch(l){}}dh(b,"flip")&&(dh(b,W5(a,"reverse"))?(g=6,h=7):(g=7,h=6));var p;kh(b,"button-has-sibling-menu")?p=Eg(e):kh(b,"button-menu-root-container")&&(p=I8(b));Sc&&!gd("8")&&(p=null);var r;p&&(r=Rg(p),r=new lg(-r.top,r.left,r.top,-r.left));p=new I(0,1);dh(b,W5(a,"center-menu"))&&(p.x-=Math.round((Pg(c).width-Pg(b).width)/
2));d&&(p.y+=zd(document).y);if(a=H8(a,b))b=Pg(c),a.style.width=b.width+"px",a.style.height=b.height+"px",H5(e,g,a,h,p,r),d&&(d=rd(a))&&d.style&&("position"in yA?a=yA.position:(a=ug("position",document.body.style),yA.position=a),a&&(d.style[a]="fixed"));H5(e,g,c,h,p,r)}function I8(a){if(kh(a,"button-menu-root-container")){var b=kh(a,"button-menu-root-container");return ee(a,b)}return document.body}
f.Yt=function(a){if(a){var b=A8(this,a);if(b){a.setAttribute("aria-pressed","true");a.setAttribute("aria-expanded","true");b.originalParentNode=b.parentNode;b.activeButtonNode=a;b.parentNode.removeChild(b);var c;kh(a,"button-has-sibling-menu")?c=a.parentNode:c=I8(a);c.appendChild(b);b.style.minWidth=a.offsetWidth-2+"px";var d=H8(this,a);d&&c.appendChild(d);(c=!!kh(a,"button-menu-fixed"))&&(this.k[nh(a).toString()]=b);C8(this,a,b,c);Ki("yt-uix-button-menu-before-show",a,b);wA(b);this.j(a,"button-menu-action",
!0);P(a,W5(this,"active"));b=y(this.Mr,this,a,!1);c=y(this.Mr,this,a,!0);d=y(this.GB,this,a,void 0);this.Mf&&A8(this,this.Mf)==A8(this,a)||this.Mf&&E8(this,this.Mf);Ji("yt-uix-button-menu-show",a);Ch(this.g);this.g=[R(document,"click",c),R(document,"contextmenu",b),R(window,"resize",d)];this.Mf=a}}};
function E8(a,b){if(b){var c=A8(a,b);if(c){a.Mf=null;b.setAttribute("aria-pressed","false");b.setAttribute("aria-expanded","false");b.removeAttribute("aria-activedescendant");xA(c);a.j(b,"button-menu-action",!1);var d=H8(a,b),e=nh(c).toString();delete a.k[e];N(function(){d&&d.parentNode&&d.parentNode.removeChild(d);c.originalParentNode&&(c.parentNode.removeChild(c),c.originalParentNode.appendChild(c),c.originalParentNode=null,c.activeButtonNode=null)},1)}var e=ee(b,W5(a,"group")),g=[W5(a,"active")];
e&&g.push(W5(a,"group-active"));gh(b,g);Ji("yt-uix-button-menu-hide",b);Ch(a.g);a.g.length=0}}f.GB=function(a,b){var c=A8(this,a);if(c){b&&(c.innerHTML=b);var d=!!kh(a,"button-menu-fixed");C8(this,a,c,d)}};f.getContent=function(a){return vd(W5(this,"content"),a)};
f.Mr=function(a,b,c){c=c||window.event;c=c.target||c.srcElement;3==c.nodeType&&(c=c.parentNode);var d=ee(c,W5(this));if(d){var d=A8(this,d),e=A8(this,a);if(d==e)return}var d=ee(c,W5(this,"menu")),e=d==A8(this,a),g=dh(c,W5(this,"menu-item")),h=dh(c,W5(this,"menu-close"));if(!d||e&&(g||h))if(E8(this,a),d&&b&&kh(a,"button-menu-indicate-selected")){if(a=vd(W5(this,"content"),a))md&&"innerText"in c?b=c.innerText.replace(/(\r\n|\r|\n)/g,"\n"):(b=[],be(c,b,!0),b=b.join("")),b=b.replace(/ \xAD /g," ").replace(/\xAD/g,
""),b=b.replace(/\u200B/g,""),md||(b=b.replace(/ +/g," "))," "!=b&&(b=b.replace(/^\s*/,"")),Ud(a,b);J8(this,d,c)}};function J8(a,b,c){var d=W5(a,"menu-item-selected");a=td(d,b);E(a,function(a){fh(a,d)});P(c.parentNode,d)}function A8(a,b){if(!b.widgetMenu){var c=kh(b,"button-menu-id"),c=c&&rd(c),d=W5(a,"menu");c?eh(c,[d,W5(a,"menu-external")]):c=vd(d,b);b.widgetMenu=c}return b.widgetMenu}
function z8(a,b){if(kh(b,"button-toggle")){var c=ee(b,W5(a,"group")),d=W5(a,"toggled"),e=dh(b,d);if(c&&kh(c,"button-toggle-group")){var g=kh(c,"button-toggle-group"),c=td(W5(a),c);E(c,function(a){a!=b||"optional"==g&&e?(fh(a,d),a.removeAttribute("aria-pressed")):(P(b,d),a.setAttribute("aria-pressed","true"))})}else e?b.removeAttribute("aria-pressed"):b.setAttribute("aria-pressed","true"),hh(b,d)}}
f.click=function(a){if(A8(this,a)){var b=A8(this,a),c=ee(b.activeButtonNode||b.parentNode,W5(this));c&&c!=a?(E8(this,c),N(y(this.Yt,this,a),1)):vA(b)?E8(this,a):this.Yt(a);a.focus()}this.j(a,"button-action")};var K8=window.yt&&window.yt.uix&&window.yt.uix.widgets_||{};q("yt.uix.widgets_",K8,void 0);function L8(a){a=a.getInstance();var b=W5(a);b in K8||(a.register(),X5(a,"yt-uix-init-"+b,a.init),X5(a,"yt-uix-dispose-"+b,a.dispose),K8[b]=a)};L8(y8);L8($5);t("yt.tracking.share")||q("yt.tracking.share",iB,void 0);t("yt.net.ping")||q("yt.net.ping.send",ag,void 0);t("yt.window.popup")||(q("yt.window.popup",lB,void 0),q("yt.window.open",kB,void 0));q("yt.player.Application.create",b8.create,void 0);var M8=t("ytcsi.tick"),N8=t("ytcsi.info");M8&&(M8("pe"),window.performance&&window.performance.now&&N8("h5jse",window.performance.now()));})();
