(function(){var f,aa=aa||{},m=this;function n(a){return void 0!==a}function ba(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 p(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 ca(){}function da(a){a.getInstance=function(){return a.Db?a.Db:a.Db=new a}}
function fa(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 ga(a){return null!=a}function ha(a){return"array"==fa(a)}function ia(a){var b=fa(a);return"array"==b||"object"==b&&"number"==typeof a.length}function s(a){return"string"==typeof a}function ja(a){return"number"==typeof a}function ka(a){return"function"==fa(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 u(a,b,c){u=Function.prototype.bind&&-1!=Function.prototype.bind.toString().indexOf("native code")?pa:qa;return u.apply(null,arguments)}function ra(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 sa(a,b){for(var c in b)a[c]=b[c]}var v=Date.now||function(){return+new Date};function ta(a,b){b&&(a=a.replace(/\{\$([^}]+)}/g,function(a,d){return d in b?b[d]:a}));return a}
function w(a,b){function c(){}c.prototype=b.prototype;a.G=b.prototype;a.prototype=new c;a.prototype.constructor=a;a.NE=function(a,c,g){return b.prototype[c].apply(a,Array.prototype.slice.call(arguments,2))}}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 u.apply(null,c)}return u(this,a)};function ua(a){if(Error.captureStackTrace)Error.captureStackTrace(this,ua);else{var b=Error().stack;b&&(this.stack=b)}a&&(this.message=String(a))}w(ua,Error);ua.prototype.name="CustomError";var va;function wa(a,b){var c=a.length-b.length;return 0<=c&&a.indexOf(b,c)==c}function xa(a,b){for(var c=a.split("%s"),d="",e=Array.prototype.slice.call(arguments,1);e.length&&1<c.length;)d+=c.shift()+e.shift();return d+c.join("%s")}function ya(a){return/^[\s\xa0]*$/.test(a)}function x(a){return ya(za(a))}function Aa(a){return a.replace(/^[\s\xa0]+|[\s\xa0]+$/g,"")}function Ba(a){return encodeURIComponent(String(a))}function Ca(a){return decodeURIComponent(a.replace(/\+/g," "))}
function Da(a){if(!Ea.test(a))return a;-1!=a.indexOf("&")&&(a=a.replace(Fa,"&amp;"));-1!=a.indexOf("<")&&(a=a.replace(Ga,"&lt;"));-1!=a.indexOf(">")&&(a=a.replace(Ha,"&gt;"));-1!=a.indexOf('"')&&(a=a.replace(Ia,"&quot;"));-1!=a.indexOf("'")&&(a=a.replace(Ja,"&#39;"));-1!=a.indexOf("\x00")&&(a=a.replace(Ka,"&#0;"));return a}var Fa=/&/g,Ga=/</g,Ha=/>/g,Ia=/"/g,Ja=/'/g,Ka=/\x00/g,Ea=/[\x00&<>"']/;function La(a){return Ma(a,"&")?"document"in m?Na(a):Oa(a):a}
function Na(a){var b={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"'},c;c=m.document.createElement("div");return a.replace(Pa,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 Oa(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 Pa=/&([^;\s<&]+);?/g;function Ma(a,b){return-1!=a.indexOf(b)}function Qa(a,b){return Ma(a.toLowerCase(),b.toLowerCase())}function Ra(a){return String(a).replace(/([-()\[\]{}+?*.$\^|,:#<!\\])/g,"\\$1").replace(/\x08/g,"\\x08")}
function Sa(a,b){return Array(b+1).join(a)}function Ta(a){a=n(void 0)?a.toFixed(void 0):String(a);var b=a.indexOf(".");-1==b&&(b=a.length);return Sa("0",Math.max(0,2-b))+a}function za(a){return null==a?"":String(a)}function Ua(a){return Array.prototype.join.call(arguments,"")}
function Va(a,b){for(var c=0,d=Aa(String(a)).split("."),e=Aa(String(b)).split("."),g=Math.max(d.length,e.length),h=0;0==c&&h<g;h++){var k=d[h]||"",l=e[h]||"",q=RegExp("(\\d*)(\\D*)","g"),r=RegExp("(\\d*)(\\D*)","g");do{var t=q.exec(k)||["","",""],y=r.exec(l)||["","",""];if(0==t[0].length&&0==y[0].length)break;c=Wa(0==t[1].length?0:parseInt(t[1],10),0==y[1].length?0:parseInt(y[1],10))||Wa(0==t[2].length,0==y[2].length)||Wa(t[2],y[2])}while(0==c)}return c}function Wa(a,b){return a<b?-1:a>b?1:0}
function Xa(a){for(var b=0,c=0;c<a.length;++c)b=31*b+a.charCodeAt(c),b%=4294967296;return b}var Ya=2147483648*Math.random()|0;function Za(){return"goog_"+Ya++}function $a(a){var b=Number(a);return 0==b&&ya(a)?NaN:b}function ab(a){return String(a).replace(/\-([a-z])/g,function(a,c){return c.toUpperCase()})}function bb(a){var b=s(void 0)?Ra(void 0):"\\s";return a.replace(new RegExp("(^"+(b?"|["+b+"]+":"")+")([a-z])","g"),function(a,b,e){return b+e.toUpperCase()})};function cb(){};function db(a){return a[a.length-1]}
var eb=Array.prototype,fb=eb.indexOf?function(a,b,c){return eb.indexOf.call(a,b,c)}:function(a,b,c){c=null==c?0:0>c?Math.max(0,a.length+c):c;if(s(a))return s(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},gb=eb.lastIndexOf?function(a,b,c){return eb.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(s(a))return s(b)&&1==b.length?a.lastIndexOf(b,c):-1;for(;0<=c;c--)if(c in a&&a[c]===b)return c;
return-1},z=eb.forEach?function(a,b,c){eb.forEach.call(a,b,c)}:function(a,b,c){for(var d=a.length,e=s(a)?a.split(""):a,g=0;g<d;g++)g in e&&b.call(c,e[g],g,a)},hb=eb.filter?function(a,b,c){return eb.filter.call(a,b,c)}:function(a,b,c){for(var d=a.length,e=[],g=0,h=s(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},A=eb.map?function(a,b,c){return eb.map.call(a,b,c)}:function(a,b,c){for(var d=a.length,e=Array(d),g=s(a)?a.split(""):a,h=0;h<d;h++)h in g&&(e[h]=b.call(c,
g[h],h,a));return e},ib=eb.reduce?function(a,b,c,d){d&&(b=u(b,d));return eb.reduce.call(a,b,c)}:function(a,b,c,d){var e=c;z(a,function(c,h){e=b.call(d,e,c,h,a)});return e},jb=eb.some?function(a,b,c){return eb.some.call(a,b,c)}:function(a,b,c){for(var d=a.length,e=s(a)?a.split(""):a,g=0;g<d;g++)if(g in e&&b.call(c,e[g],g,a))return!0;return!1},lb=eb.every?function(a,b,c){return eb.every.call(a,b,c)}:function(a,b,c){for(var d=a.length,e=s(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 B(a,b,c){b=mb(a,b,c);return 0>b?null:s(a)?a.charAt(b):a[b]}function mb(a,b,c){for(var d=a.length,e=s(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 nb(a,b){var c=ob(a,b,void 0);return 0>c?null:s(a)?a.charAt(c):a[c]}function ob(a,b,c){for(var d=s(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 C(a,b){return 0<=fb(a,b)}function E(a){return 0==a.length}
function pb(a){if(!ha(a))for(var b=a.length-1;0<=b;b--)delete a[b];a.length=0}function qb(a,b){C(a,b)||a.push(b)}function rb(a,b){var c=fb(a,b),d;(d=0<=c)&&sb(a,c);return d}function sb(a,b){eb.splice.call(a,b,1)}function tb(a,b){var c=mb(a,b,void 0);0<=c&&sb(a,c)}function ub(a){return eb.concat.apply(eb,arguments)}function vb(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 wb(a,b){for(var c=1;c<arguments.length;c++){var d=arguments[c],e;if(ha(d)||(e=ia(d))&&Object.prototype.hasOwnProperty.call(d,"callee"))a.push.apply(a,d);else if(e)for(var g=a.length,h=d.length,k=0;k<h;k++)a[g+k]=d[k];else a.push(d)}}function xb(a,b,c,d){eb.splice.apply(a,yb(arguments,1))}function yb(a,b,c){return 2>=arguments.length?eb.slice.call(a,b):eb.slice.call(a,b,c)}
function zb(a){for(var b={},c=0,d=0;d<a.length;){var e=a[d++],g=la(e)?"o"+ma(e):(typeof e).charAt(0)+e;Object.prototype.hasOwnProperty.call(b,g)||(b[g]=!0,a[c++]=e)}a.length=c}function Ab(a,b,c){c=c||Bb;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 Cb(a,b){a.sort(b||Bb)}function Db(a,b){var c=Bb;Cb(a,function(a,e){return c(a[b],e[b])})}
function Eb(a,b,c){if(!ia(a)||!ia(b)||a.length!=b.length)return!1;var d=a.length;c=c||Fb;for(var e=0;e<d;e++)if(!c(a[e],b[e]))return!1;return!0}function Bb(a,b){return a>b?1:a<b?-1:0}function Fb(a,b){return a===b}function Gb(a,b,c){c=Ab(a,b,c);0>c&&xb(a,-(c+1),0,b)}function Hb(a){for(var b=[],c=0;c<arguments.length;c++){var d=arguments[c];ha(d)?b.push.apply(b,Hb.apply(null,d)):b.push(d)}return b};function Ib(a,b,c){return Math.min(Math.max(a,b),c)}function Jb(a,b,c){return a+c*(b-a)};function F(a,b){this.x=n(a)?a:0;this.y=n(b)?b:0}f=F.prototype;f.clone=function(){return new F(this.x,this.y)};function Kb(a,b){return new F(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=ja(b)?b:a;this.x*=a;this.y*=c;return this};function G(a,b){this.width=a;this.height=b}function Lb(a,b){return a==b?!0:a&&b?a.width==b.width&&a.height==b.height:!1}f=G.prototype;f.clone=function(){return new G(this.width,this.height)};function Mb(a){return a.width/a.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=ja(b)?b:a;this.width*=a;this.height*=c;return this};function Nb(a,b,c){for(var d in a)b.call(c,a[d],d,a)}function Ob(a,b,c){for(var d in a)if(b.call(c,a[d],d,a))return!0;return!1}function Pb(a,b){for(var c in a)if(!b.call(void 0,a[c],c,a))return!1;return!0}function Qb(a){var b=0,c;for(c in a)b++;return b}function Rb(a){for(var b in a)return a[b]}function Sb(a){var b=[],c=0,d;for(d in a)b[c++]=a[d];return b}function Tb(a){var b=[],c=0,d;for(d in a)b[c++]=d;return b}function Ub(a,b){for(var c in a)if(a[c]==b)return!0;return!1}
function Vb(a,b,c){for(var d in a)if(b.call(c,a[d],d,a))return d}function Wb(a){var b=Xb;return(a=Vb(b,a,void 0))&&b[a]}function Yb(a){for(var b in a)return!1;return!0}function Zb(a){for(var b in a)delete a[b]}function $b(a,b){return b in a?a[b]:void 0}function ac(a){var b={},c;for(c in a)b[c]=a[c];return b}function bc(a){var b=fa(a);if("object"==b||"array"==b){if(a.clone)return a.clone();var b="array"==b?[]:{},c;for(c in a)b[c]=bc(a[c]);return b}return a}var cc="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");
function dc(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<cc.length;g++)c=cc[g],Object.prototype.hasOwnProperty.call(d,c)&&(a[c]=d[c])}}function ec(a){var b=arguments.length;if(1==b&&ha(arguments[0]))return ec.apply(null,arguments[0]);for(var c={},d=0;d<b;d++)c[arguments[d]]=!0;return c};var fc;t:{var gc=m.navigator;if(gc){var hc=gc.userAgent;if(hc){fc=hc;break t}}fc=""}function ic(a){return Ma(fc,a)};var jc,kc,lc,mc,nc;function oc(){return m.navigator||null}var pc=ic("Opera")||ic("OPR"),qc=ic("Trident")||ic("MSIE"),rc=ic("Gecko")&&!Qa(fc,"WebKit")&&!(ic("Trident")||ic("MSIE")),sc=Qa(fc,"WebKit"),tc=sc&&ic("Mobile"),uc=oc(),vc=uc&&uc.platform||"";jc=Ma(vc,"Mac");kc=Ma(vc,"Win");lc=!!oc()&&Ma(oc().appVersion||"","X11");var wc=fc;mc=!!wc&&Ma(wc,"Android");nc=!!wc&&Ma(wc,"iPhone");var xc=!!wc&&Ma(wc,"iPad");function yc(){var a=m.document;return a?a.documentMode:void 0}
var zc=function(){var a="",b;if(pc&&m.opera)return a=m.opera.version,ka(a)?a():a;rc?b=/rv\:([^\);]+)(\)|;)/:qc?b=/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/:sc&&(b=/WebKit\/(\S+)/);b&&(a=(a=b.exec(fc))?a[1]:"");return qc&&(b=yc(),b>parseFloat(a))?String(b):a}(),Ac={};function Bc(a){return Ac[a]||(Ac[a]=0<=Va(zc,a))}function Cc(a){return qc&&Dc>=a}var Ec=m.document,Dc=Ec&&qc?yc()||("CSS1Compat"==Ec.compatMode?parseInt(zc,10):5):void 0;var Fc=!qc||Cc(9),Gc=!rc&&!qc||qc&&Cc(9)||rc&&Bc("1.9.1"),Hc=qc&&!Bc("9"),Ic=qc||pc||sc;function Jc(a){return a?new Kc(Lc(a)):va||(va=new Kc)}function Mc(a){return s(a)?document.getElementById(a):a}function Nc(a,b){var c=b||document;return c.querySelectorAll&&c.querySelector?c.querySelectorAll("."+a):Oc("*",a,b)}function H(a,b){var c=b||document,d=null;c.querySelectorAll&&c.querySelector?d=c.querySelector("."+a):d=Oc("*",a,b)[0];return d||null}
function Oc(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&&C(a.split(/\s+/),b)&&(d[e++]=h);d.length=e;return d}return c}
function Pc(a,b){Nb(b,function(b,d){"style"==d?a.style.cssText=b:"class"==d?a.className=b:"for"==d?a.htmlFor=b:d in Qc?a.setAttribute(Qc[d],b):0==d.lastIndexOf("aria-",0)||0==d.lastIndexOf("data-",0)?a.setAttribute(d,b):a[d]=b})}var Qc={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 Rc(a){a=a.document;a=Sc(a)?a.documentElement:a.body;return new G(a.clientWidth,a.clientHeight)}function Tc(a){var b=Uc(a);a=a.parentWindow||a.defaultView;return qc&&Bc("10")&&a.pageYOffset!=b.scrollTop?new F(b.scrollLeft,b.scrollTop):new F(a.pageXOffset||b.scrollLeft,a.pageYOffset||b.scrollTop)}function Uc(a){return!sc&&Sc(a)?a.documentElement:a.body||a.documentElement}function Vc(a){return a?a.parentWindow||a.defaultView:window}function I(a,b,c){return Wc(document,arguments)}
function Wc(a,b){var c=b[0],d=b[1];if(!Fc&&d&&(d.name||d.type)){c=["<",c];d.name&&c.push(' name="',Da(d.name),'"');if(d.type){c.push(' type="',Da(d.type),'"');var e={};dc(e,d);delete e.type;d=e}c.push(">");c=c.join("")}c=a.createElement(c);d&&(s(d)?c.className=d:ha(d)?c.className=d.join(" "):Pc(c,d));2<b.length&&Xc(a,c,b,2);return c}function Xc(a,b,c,d){function e(c){c&&b.appendChild(s(c)?a.createTextNode(c):c)}for(;d<c.length;d++){var g=c[d];!ia(g)||la(g)&&0<g.nodeType?e(g):z(Yc(g)?vb(g):g,e)}}
function Zc(a){return document.createElement(a)}function $c(a){return document.createTextNode(String(a))}function Sc(a){return"CSS1Compat"==a.compatMode}function ad(a,b){a.appendChild(b)}function bd(a,b){Xc(Lc(a),a,arguments,1)}function cd(a){for(var b;b=a.firstChild;)a.removeChild(b)}function dd(a,b,c){a.insertBefore(b,a.childNodes[c]||null)}function ed(a){a&&a.parentNode&&a.parentNode.removeChild(a)}function fd(a,b){var c=b.parentNode;c&&c.replaceChild(a,b)}
function gd(a){return Gc&&void 0!=a.children?a.children:hb(a.childNodes,function(a){return 1==a.nodeType})}function hd(a){return void 0!=a.firstElementChild?a.firstElementChild:id(a.firstChild)}function id(a){for(;a&&1!=a.nodeType;)a=a.nextSibling;return a}function jd(a){var b;if(Ic&&!(qc&&Bc("9")&&!Bc("10")&&m.SVGElement&&a instanceof m.SVGElement)&&(b=a.parentElement))return b;b=a.parentNode;return la(b)&&1==b.nodeType?b:null}
function kd(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 Lc(a){return 9==a.nodeType?a:a.ownerDocument||a.document}function ld(a){return a.contentWindow||Vc(a.contentDocument||a.contentWindow.document)}
function md(a,b){if("textContent"in a)a.textContent=b;else if(3==a.nodeType)a.data=b;else if(a.firstChild&&3==a.firstChild.nodeType){for(;a.lastChild!=a.firstChild;)a.removeChild(a.lastChild);a.firstChild.data=b}else{cd(a);var c=Lc(a);a.appendChild(c.createTextNode(String(b)))}}function nd(a,b){var c=[];return od(a,b,c,!0)?c[0]:void 0}function od(a,b,c,d){if(null!=a)for(a=a.firstChild;a;){if(b(a)&&(c.push(a),d)||od(a,b,c,d))return!0;a=a.nextSibling}return!1}
var pd={SCRIPT:1,STYLE:1,HEAD:1,IFRAME:1,OBJECT:1},qd={IMG:" ",BR:"\n"};function rd(a,b,c){if(!(a.nodeName in pd))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 qd)b.push(qd[a.nodeName]);else for(a=a.firstChild;a;)rd(a,b,c),a=a.nextSibling}function Yc(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 sd(a,b,c){if(!b&&!c)return null;var d=b?b.toUpperCase():null;return td(a,function(a){return(!d||a.nodeName==d)&&(!c||s(a.className)&&C(a.className.split(/\s+/),c))},!0)}function ud(a,b){return sd(a,null,b)}function td(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 Kc(a){this.b=a||m.document||document}f=Kc.prototype;f.K=function(a){return s(a)?this.b.getElementById(a):a};f.MB=function(a,b,c){return Wc(this.b,arguments)};
f.createElement=function(a){return this.b.createElement(a)};function vd(a){return Sc(a.b)}function wd(a){a=a.b;return a.parentWindow||a.defaultView}function xd(a){return Tc(a.b)}f.appendChild=ad;f.append=bd;f.contains=kd;var yd="StopIteration"in m?m.StopIteration:Error("StopIteration");function zd(){}zd.prototype.next=function(){throw yd;};zd.prototype.Wb=function(){return this};function Ad(a){if(a instanceof zd)return a;if("function"==typeof a.Wb)return a.Wb(!1);if(ia(a)){var b=0,c=new zd;c.next=function(){for(;;){if(b>=a.length)throw yd;if(b in a)return a[b++];b++}};return c}throw Error("Not implemented");}
function Bd(a,b,c){if(ia(a))try{z(a,b,c)}catch(d){if(d!==yd)throw d;}else{a=Ad(a);try{for(;;)b.call(c,a.next(),void 0,a)}catch(e){if(e!==yd)throw e;}}}function Cd(a){if(ia(a))return vb(a);a=Ad(a);var b=[];Bd(a,function(a){b.push(a)});return b};function Dd(a,b){this.g={};this.b=[];this.j=this.ea=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 Dd?(c=a.Ma(),d=a.Qa()):(c=Tb(a),d=Sb(a));for(var e=0;e<c.length;e++)this.set(c[e],d[e])}}f=Dd.prototype;f.Na=function(){return this.ea};f.Qa=function(){Ed(this);for(var a=[],b=0;b<this.b.length;b++)a.push(this.g[this.b[b]]);return a};f.Ma=function(){Ed(this);return this.b.concat()};
f.eg=function(a){for(var b=0;b<this.b.length;b++){var c=this.b[b];if(Fd(this.g,c)&&this.g[c]==a)return!0}return!1};f.equals=function(a,b){if(this===a)return!0;if(this.ea!=a.Na())return!1;var c=b||Gd;Ed(this);for(var d,e=0;d=this.b[e];e++)if(!c(this.get(d),a.get(d)))return!1;return!0};function Gd(a,b){return a===b}f.isEmpty=function(){return 0==this.ea};f.clear=function(){this.g={};this.j=this.ea=this.b.length=0};
f.remove=function(a){return Fd(this.g,a)?(delete this.g[a],this.ea--,this.j++,this.b.length>2*this.ea&&Ed(this),!0):!1};function Ed(a){if(a.ea!=a.b.length){for(var b=0,c=0;b<a.b.length;){var d=a.b[b];Fd(a.g,d)&&(a.b[c++]=d);b++}a.b.length=c}if(a.ea!=a.b.length){for(var e={},c=b=0;b<a.b.length;)d=a.b[b],Fd(e,d)||(a.b[c++]=d,e[d]=1),b++;a.b.length=c}}f.get=function(a,b){return Fd(this.g,a)?this.g[a]:b};f.set=function(a,b){Fd(this.g,a)||(this.ea++,this.b.push(a),this.j++);this.g[a]=b};
f.forEach=function(a,b){for(var c=this.Ma(),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 Dd(this)};f.Wb=function(a){Ed(this);var b=0,c=this.b,d=this.g,e=this.j,g=this,h=new zd;h.next=function(){for(;;){if(e!=g.j)throw Error("The map has changed since the iterator was created");if(b>=c.length)throw yd;var h=c[b++];return a?h:d[h]}};return h};function Fd(a,b){return Object.prototype.hasOwnProperty.call(a,b)};function Hd(a){return"function"==typeof a.Na?a.Na():ia(a)||s(a)?a.length:Qb(a)}function Id(a){if("function"==typeof a.Qa)return a.Qa();if(s(a))return a.split("");if(ia(a)){for(var b=[],c=a.length,d=0;d<c;d++)b.push(a[d]);return b}return Sb(a)}function Jd(a){if("function"==typeof a.Ma)return a.Ma();if("function"!=typeof a.Qa){if(ia(a)||s(a)){var b=[];a=a.length;for(var c=0;c<a;c++)b.push(c);return b}return Tb(a)}}
function Kd(a,b){if("function"==typeof a.forEach)a.forEach(b,void 0);else if(ia(a)||s(a))z(a,b,void 0);else for(var c=Jd(a),d=Id(a),e=d.length,g=0;g<e;g++)b.call(void 0,d[g],c&&c[g],a)}function Ld(a,b,c){if("function"==typeof a.every)return a.every(b,c);if(ia(a)||s(a))return lb(a,b,c);for(var d=Jd(a),e=Id(a),g=e.length,h=0;h<g;h++)if(!b.call(c,e[h],d&&d[h],a))return!1;return!0};function Md(a,b,c,d,e,g,h){var k="";a&&(k+=a+":");c&&(k+="//",b&&(k+=b+"@"),k+=c,d&&(k+=":"+d));e&&(k+=e);g&&(k+="?"+g);h&&(k+="#"+h);return k}var Nd=/^(?:([^:/?#.]+):)?(?:\/\/(?:([^/?#]*)@)?([^/#?]*?)(?::([0-9]+))?(?=[/#?]|$))?([^?#]+)?(?:\?([^#]*))?(?:#(.*))?$/;function Od(a){if(Pd){Pd=!1;var b=m.location;if(b){var c=b.href;if(c&&(c=Qd(c))&&c!=b.hostname)throw Pd=!0,Error();}}return a.match(Nd)}var Pd=sc;function Qd(a){return(a=Od(a)[3]||null)&&decodeURIComponent(a)}
function Rd(a){return(a=Od(a)[5]||null)&&decodeURIComponent(a)}function Sd(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 Td(a,b,c){if(ha(b))for(var d=0;d<b.length;d++)Td(a,String(b[d]),c);else null!=b&&c.push("&",a,""===b?"":"=",Ba(b))}function Ud(a,b,c){Math.max(b.length-(c||0),0);for(c=c||0;c<b.length;c+=2)Td(b[c],b[c+1],a);return a}
function Vd(a,b){for(var c in b)Td(c,b[c],a);return a}function Wd(a){a=Vd([],a);a[0]="";return a.join("")}function Xd(a,b){return Sd(2==arguments.length?Ud([a],arguments[1],0):Ud([a],arguments,1))}function Yd(a,b){return Sd(Vd([a],b))}function Zd(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 $d=/#|$/,ae=/[?&]($|#)/;
function be(a,b,c){for(var d=a.search($d),e=0,g,h=[];0<=(g=Zd(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(ae,"$1"),"&",b];null!=c&&a.push("=",Ba(c));return Sd(a)};function J(a,b){var c;a instanceof J?(this.cf=n(b)?b:a.cf,ce(this,a.Gb),this.bf=a.bf,de(this,a.Bb),ee(this,a.af),fe(this,a.Mb),ge(this,a.b.clone()),he(this,a.Pg())):a&&(c=Od(String(a)))?(this.cf=!!b,ce(this,c[1]||"",!0),this.bf=ie(c[2]||""),de(this,c[3]||"",!0),ee(this,c[4]),fe(this,c[5]||"",!0),ge(this,c[6]||"",!0),he(this,c[7]||"",!0)):(this.cf=!!b,this.b=new je(null,0,this.cf))}f=J.prototype;f.Gb="";f.bf="";f.Bb="";f.af=null;f.Mb="";f.pn="";f.cf=!1;
f.toString=function(){var a=[],b=this.Gb;b&&a.push(ke(b,le),":");if(b=this.Bb){a.push("//");var c=this.bf;c&&a.push(ke(c,le),"@");a.push(Ba(b));b=this.af;null!=b&&a.push(":",String(b))}if(b=this.Mb)this.Bb&&"/"!=b.charAt(0)&&a.push("/"),a.push(ke(b,"/"==b.charAt(0)?me:ne));(b=this.b.toString())&&a.push("?",b);(b=this.Pg())&&a.push("#",ke(b,oe));return a.join("")};
f.resolve=function(a){var b=this.clone(),c=!!a.Gb;c?ce(b,a.Gb):c=!!a.bf;c?b.bf=a.bf:c=!!a.Bb;c?de(b,a.Bb):c=null!=a.af;var d=a.Mb;if(c)ee(b,a.af);else if(c=!!a.Mb){if("/"!=d.charAt(0))if(this.Bb&&!this.Mb)d="/"+d;else{var e=b.Mb.lastIndexOf("/");-1!=e&&(d=b.Mb.substr(0,e+1)+d)}e=d;if(".."==e||"."==e)d="";else if(Ma(e,"./")||Ma(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?fe(b,d):c=""!==a.b.toString();c?ge(b,ie(a.b.toString())):c=!!a.pn;c&&he(b,a.Pg());return b};f.clone=function(){return new J(this)};function ce(a,b,c){a.Gb=c?ie(b):b;a.Gb&&(a.Gb=a.Gb.replace(/:$/,""));return a}function pe(a){return a.Bb}function de(a,b,c){a.Bb=c?ie(b):b;return a}function ee(a,b){if(b){b=Number(b);if(isNaN(b)||0>b)throw Error("Bad port number "+b);a.af=b}else a.af=null;return a}
function qe(a){return a.Mb}function fe(a,b,c){a.Mb=c?ie(b):b}function ge(a,b,c){b instanceof je?(a.b=b,re(a.b,a.cf)):(c||(b=ke(b,se)),a.b=new je(b,0,a.cf));return a}function te(a){return a.b}function K(a,b,c){a.b.set(b,c);return a}function ue(a,b,c){ha(c)||(c=[String(c)]);ve(a.b,b,c)}function we(a,b){return a.b.get(b)}f.Pg=function(){return this.pn};function he(a,b,c){a.pn=c?ie(b):b;return a}
function xe(a){K(a,"zx",Math.floor(2147483648*Math.random()).toString(36)+Math.abs(Math.floor(2147483648*Math.random())^v()).toString(36));return a}function ye(a){return a instanceof J?a.clone():new J(a,void 0)}function ze(a,b,c,d){var e=new J(null,void 0);a&&ce(e,a);b&&de(e,b);c&&ee(e,c);d&&fe(e,d);return e}function ie(a){return a?decodeURIComponent(a):""}function ke(a,b){return s(a)?encodeURI(a).replace(b,Ae):null}
function Ae(a){a=a.charCodeAt(0);return"%"+(a>>4&15).toString(16)+(a&15).toString(16)}var le=/[#\/\?@]/g,ne=/[\#\?:]/g,me=/[\#\?]/g,se=/[\#\?@]/g,oe=/#/g;function je(a,b,c){this.b=a||null;this.g=!!c}function Be(a){if(!a.Ya&&(a.Ya=new Dd,a.ea=0,a.b))for(var b=a.b.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=Ca(e);e=Ce(a,e);a.add(e,g?Ca(g):"")}}f=je.prototype;f.Ya=null;f.ea=null;f.Na=function(){Be(this);return this.ea};
f.add=function(a,b){Be(this);this.b=null;a=Ce(this,a);var c=this.Ya.get(a);c||this.Ya.set(a,c=[]);c.push(b);this.ea++;return this};f.remove=function(a){Be(this);a=Ce(this,a);return Fd(this.Ya.g,a)?(this.b=null,this.ea-=this.Ya.get(a).length,this.Ya.remove(a)):!1};f.clear=function(){this.Ya=this.b=null;this.ea=0};f.isEmpty=function(){Be(this);return 0==this.ea};function De(a,b){Be(a);b=Ce(a,b);return Fd(a.Ya.g,b)}f.eg=function(a){var b=this.Qa();return C(b,a)};
f.Ma=function(){Be(this);for(var a=this.Ya.Qa(),b=this.Ya.Ma(),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.Qa=function(a){Be(this);var b=[];if(s(a))De(this,a)&&(b=ub(b,this.Ya.get(Ce(this,a))));else{a=this.Ya.Qa();for(var c=0;c<a.length;c++)b=ub(b,a[c])}return b};f.set=function(a,b){Be(this);this.b=null;a=Ce(this,a);De(this,a)&&(this.ea-=this.Ya.get(a).length);this.Ya.set(a,[b]);this.ea++;return this};
f.get=function(a,b){var c=a?this.Qa(a):[];return 0<c.length?String(c[0]):b};function ve(a,b,c){a.remove(b);0<c.length&&(a.b=null,a.Ya.set(Ce(a,b),vb(c)),a.ea+=c.length)}f.toString=function(){if(this.b)return this.b;if(!this.Ya)return"";for(var a=[],b=this.Ya.Ma(),c=0;c<b.length;c++)for(var d=b[c],e=Ba(d),d=this.Qa(d),g=0;g<d.length;g++){var h=e;""!==d[g]&&(h+="="+Ba(d[g]));a.push(h)}return this.b=a.join("&")};
f.clone=function(){var a=new je;a.b=this.b;this.Ya&&(a.Ya=this.Ya.clone(),a.ea=this.ea);return a};function Ce(a,b){var c=String(b);a.g&&(c=c.toLowerCase());return c}function re(a,b){b&&!a.g&&(Be(a),a.b=null,a.Ya.forEach(function(a,b){var e=b.toLowerCase();b!=e&&(this.remove(b),ve(this,e,a))},a));a.g=b};var Ee=/^https?:\/\/([-\w.]+\.youtube(education)?\.com\/|[a-z0-9\-]{1,63}\.([a-z]{3}|i)\.corp\.google\.com\/|yt-devenv-shared\.corp\.google\.com\/|(docs|drive)\.google\.com\/(a\/[^/]+\/|)|play\.google\.com\/)/,Fe=/^https?:\/\/([A-Za-z0-9-]{1,63}\.)*(corp\.google\.com|prod\.google\.com|video\.google\.com|youtube\.com|youtube\.googleapis\.com|youtube-nocookie\.com|youtubeeducation\.com)(:[0-9]+)?([\/\?\#]|$)/,Ge=/^https?:\/\/([A-Za-z0-9-]{1,63}\.)*(corp\.google\.com|prod\.google\.com|video\.google\.com|youtube\.com|youtube\.googleapis\.com|youtube-nocookie\.com|youtubeeducation\.com)(:[0-9]+)?\/embed\//,
He=/^https?:\/\/([A-Za-z0-9-]{1,63}\.)*(corp\.google\.com|gdata\.youtube\.com|prod\.google\.com)(:[0-9]+)?([\/\?\#]|$)/,Ie=/^https?:\/\/(secure\-..\.imrworldwide\.com\/|cdn\.imrworldwide\.com\/|aksecure\.imrworldwide\.com\/)/,Je=/^https?:\/\/(www\.google\.com\/(aclk|pagead\/conversion)|googleadservices\.com\/(aclk|pagead\/conversion)|googleads\.g\.doubleclick\.net\/(aclk|pagead\/conversion))/,Ke=/^https?:\/\/(www\.google\.com\/pagead\/sul|www\.youtube\.com\/gen_204\?a=sul)/,Le=/^https?:\/\/([A-Za-z0-9-]{1,63}\.)*(ba\.l\.google\.com|c\.googlesyndication\.com|corp\.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]+)?([\/\?\#]|$)/,
Me=/^https?:\/\/(www\.gstatic\.com\/doubleclick\/studio\/innovation\/ytplayer|([A-Za-z0-9-]{1,63}\.)*(imasdk\.googleapis\.com|2mdn\.net|corp\.google\.com|googlesyndication\.com|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]+)?([\/\?\#]|$))/,Ne=/^https?:\/\/((www\.|encrypted\.)?google(\.com|\.co)?\.[a-z]{2,3}\/(search|webhp)\?|(101epmpngvqtgfsf73utp3aomcvh4be6|mb33edaaot4tnevadfqhve4857kpq1rs|ot5106nq9r49sc62k7h52rtfngv5j94j)-a-hangout-opensocial\.googleusercontent\.com\/|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|docs\.google\.com|drive\.google\.com|googleplex\.com|play\.google\.com|prod\.google\.com|sandbox\.google\.com|plus\.google\.com|mail\.google\.com|talkgadget\.google\.com|survey\.g\.doubleclick\.net|youtube\.com|youtube-nocookie\.com|youtubeeducation\.com|vevo\.com)(:[0-9]+)?([\/\?\#]|$))/;var Oe=window.yt&&window.yt.config_||{};ba("yt.config_",Oe,void 0);ba("yt.tokens_",window.yt&&window.yt.tokens_||{},void 0);var Pe=window.yt&&window.yt.msgs_||{};ba("yt.msgs_",Pe,void 0);function Qe(a){Re(Oe,arguments)}function Se(a){return a in Oe?Oe[a]:void 0}function L(a,b){ka(a)&&(a=Te(a));return window.setTimeout(a,b)}function Ue(a,b){ka(a)&&(a=Te(a));return window.setInterval(a,b)}function N(a){window.clearTimeout(a)}function Ve(a){window.clearInterval(a)}
function Te(a){return a&&window.yterr?function(){try{return a.apply(this,arguments)}catch(b){throw We(b),b;}}:a}function We(a){if(window&&window.yterr){var b=p("yt.www.errors.log");b?b(a,void 0):(b=Se("ERRORS")||[],b.push([a,void 0]),Qe("ERRORS",b))}}function Xe(a){Re(Pe,arguments)}function Ye(a,b,c){var d=b||{};if(a=a in Pe?Pe[a]:c)for(var e in d)a=a.replace(new RegExp("\\$"+e,"gi"),function(){return d[e]});return a}
ta=function(a,b){var c=b||{},d=a in Pe?Pe[a]:a;if(d)for(var e in c)var g=(""+c[e]).replace(/\$/g,"$$$$"),d=d.replace(new RegExp("\\{\\$"+e+"\\}","gi"),g),d=d.replace(new RegExp("\\$"+e,"gi"),g);return d};function Re(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 Ze="corp.google.com googleplex.com youtube.com youtube-nocookie.com youtubeeducation.com prod.google.com sandbox.google.com docs.google.com drive.google.com mail.google.com plus.google.com play.google.com googlevideo.com talkgadget.google.com 101epmpngvqtgfsf73utp3aomcvh4be6-a-hangout-opensocial.googleusercontent.com mb33edaaot4tnevadfqhve4857kpq1rs-a-hangout-opensocial.googleusercontent.com ot5106nq9r49sc62k7h52rtfngv5j94j-a-hangout-opensocial.googleusercontent.com survey.g.doubleclick.net".split(" "),
$e="2mdn.net corp.google.com imasdk.googleapis.com static.doubleclick.net studioapi.doubleclick.net googleads.g.doubleclick.net gstatic.com/doubleclick/studio/innovation/ytplayer".split(" "),af="";function bf(a){return a&&a==af?!0:cf(a,Ze)?(af=a,!0):!1}function df(a){var b=!!a&&-1!=a.search(Le),c=bf(a);b!=c&&We(Error(a+" behavior is not consistent"));return c}
function ef(){var a=document.location.toString(),b=!!a&&-1!=a.search(Ge),c=-1!=a.indexOf("/embed/");b!=c&&We(Error(a+" behavior is not consistent"));return c}function ff(a){var b=!!a&&-1!=a.search(Me),c=cf(a,$e);c&&!b&&We(Error(a+" behavior is not consistent"));return c}function cf(a,b){return(new RegExp("^(https?:)?//([a-z0-9-]{1,63}\\.)*("+b.join("|").replace(/\./g,".")+")(:[0-9]+)?([/?#]|$)","i")).test(a)}
function gf(a){a=new J(a);ce(a,document.location.protocol);de(a,document.location.hostname);document.location.port&&ee(a,document.location.port);return a.toString()}function hf(a){a=new J(a);ce(a,document.location.protocol);return a.toString()};var jf={},kf=0,lf=p("yt.net.ping.workerUrl_")||null;ba("yt.net.ping.workerUrl_",lf,void 0);function mf(a,b,c){a&&(c?a&&(a=I("iframe",{src:'javascript:"data:text/html,<body><img src=\\"'+a+'\\"></body>"',style:"display:none"}),Lc(a).body.appendChild(a)):nf(a,b))}function nf(a,b){var c=new Image,d=""+kf++;jf[d]=c;c.onload=c.onerror=function(){b&&jf[d]&&b();delete jf[d]};c.src=a;c=eval("null")};function of(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 pf(a){return eval("("+a+")")}function qf(a){return rf(new sf(void 0),a)}function sf(a){this.b=a}
function rf(a,b){var c=[];tf(a,b,c);return c.join("")}
function tf(a,b,c){switch(typeof b){case "string":uf(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(ha(b)){var d=b.length;c.push("[");for(var e="",g=0;g<d;g++)c.push(e),e=b[g],tf(a,a.b?a.b.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),uf(g,c),
c.push(":"),tf(a,a.b?a.b.call(b,g,e):e,c),d=","));c.push("}");break;case "function":break;default:throw Error("Unknown type: "+typeof b);}}var vf={'"':'\\"',"\\":"\\\\","/":"\\/","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t","\x0B":"\\u000b"},wf=/\uffff/.test("\uffff")?/[\\\"\x00-\x1f\x7f-\uffff]/g:/[\\\"\x00-\x1f\x7f-\xff]/g;
function uf(a,b){b.push('"',a.replace(wf,function(a){if(a in vf)return vf[a];var b=a.charCodeAt(0),e="\\u";16>b?e+="000":256>b?e+="00":4096>b&&(e+="0");return vf[a]=e+b.toString(16)}),'"')};function xf(a,b,c,d){this.top=a;this.right=b;this.bottom=c;this.left=d}f=xf.prototype;f.getHeight=function(){return this.bottom-this.top};f.clone=function(){return new xf(this.top,this.right,this.bottom,this.left)};f.contains=function(a){return this&&a?a instanceof xf?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=ja(b)?b:a;this.left*=a;this.right*=a;this.top*=c;this.bottom*=c;return this};function yf(a,b,c,d){this.left=a;this.top=b;this.width=c;this.height=d}f=yf.prototype;f.clone=function(){return new yf(this.left,this.top,this.width,this.height)};function zf(a){return new yf(a.left,a.top,a.right-a.left,a.bottom-a.top)}function Af(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 yf?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 Bf(a){return new G(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=ja(b)?b:a;this.left*=a;this.width*=a;this.top*=c;this.height*=c;return this};function Cf(a){Cf[" "](a);return a}Cf[" "]=ca;function Df(){return sc?"Webkit":rc?"Moz":qc?"ms":pc?"O":null}function Ef(){return sc?"-webkit":rc?"-moz":qc?"-ms":pc?"-o":null}function Ff(a,b){if(b&&a in b)return a;var c=Df();return c?(c=c.toLowerCase(),c+=bb(a),!n(b)||c in b?c:null):null};function Gf(a,b,c){s(b)?Hf(a,c,b):Nb(b,ra(Hf,a))}function Hf(a,b,c){(c=If(a,c))&&(a.style[c]=b)}function If(a,b){var c=ab(b);if(void 0===a.style[c]){var d=Df()+bb(c);if(void 0!==a.style[d])return d}return c}function Jf(a,b){var c=Lc(a);return c.defaultView&&c.defaultView.getComputedStyle&&(c=c.defaultView.getComputedStyle(a,null))?c[b]||c.getPropertyValue(b)||"":""}function Kf(a,b){return Jf(a,b)||(a.currentStyle?a.currentStyle[b]:null)||a.style&&a.style[b]}
function Lf(a,b,c){var d,e=rc&&(jc||lc)&&Bc("1.9");b instanceof F?(d=b.x,b=b.y):(d=b,b=c);a.style.left=Mf(d,e);a.style.top=Mf(b,e)}function Nf(a){return new F(a.offsetLeft,a.offsetTop)}function Of(a){var b;try{b=a.getBoundingClientRect()}catch(c){return{left:0,top:0,right:0,bottom:0}}qc&&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 Pf(a){if(qc&&!Cc(8))return a.offsetParent;var b=Lc(a),c=Kf(a,"position"),d="fixed"==c||"absolute"==c;for(a=a.parentNode;a&&a!=b;a=a.parentNode)if(c=Kf(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 Qf(a){for(var b=new xf(0,Infinity,Infinity,0),c=Jc(a),d=c.b.body,e=c.b.documentElement,g=Uc(c.b);a=Pf(a);)if(!(qc&&0==a.clientWidth||sc&&0==a.clientHeight&&a==d)&&a!=d&&a!=e&&"visible"!=Kf(a,"overflow")){var h=Rf(a),k;k=a;if(rc&&!Bc("1.9")){var l=parseFloat(Jf(k,"borderLeftWidth"));if(Sf(k))var q=k.offsetWidth-k.clientWidth-l-parseFloat(Jf(k,"borderRightWidth")),l=l+q;k=new F(l,parseFloat(Jf(k,"borderTopWidth")))}else k=new F(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=Rc(wd(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 Rf(a){var b,c=Lc(a),d=Kf(a,"position"),e=rc&&c.getBoxObjectFor&&!a.getBoundingClientRect&&"absolute"==d&&(b=c.getBoxObjectFor(a))&&(0>b.screenX||0>b.screenY),g=new F(0,0),h;b=c?Lc(c):document;h=!qc||Cc(9)||vd(Jc(b))?b.documentElement:b.body;if(a==h)return g;if(a.getBoundingClientRect)b=Of(a),a=xd(Jc(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(sc&&"fixed"==Kf(b,"position")){g.x+=c.body.scrollLeft;g.y+=c.body.scrollTop;break}b=b.offsetParent}while(b&&b!=a);if(pc||sc&&"absolute"==d)g.y-=c.body.offsetTop;for(b=a;(b=Pf(b))&&b!=c.body&&b!=h;)g.x-=b.scrollLeft,pc&&"TR"==b.tagName||(g.y-=b.scrollTop)}return g}
function Tf(a){var b;if(a.getBoundingClientRect)b=Of(a),b=new F(b.left,b.top);else{b=xd(Jc(a));var c=Rf(a);b=new F(c.x-b.x,c.y-b.y)}if(rc&&!Bc(12)){i:{c=ab("transform");if(void 0===a.style[c]&&(c=Df()+bb(c),void 0!==a.style[c])){c=Ef()+"-transform";break i}c="transform"}a=(a=Kf(a,c)||Kf(a,"transform"))?(a=a.match(Uf))?new F(parseFloat(a[1]),parseFloat(a[2])):new F(0,0):new F(0,0);a=new F(b.x+a.x,b.y+a.y)}else a=b;return a}
function Vf(a){if(1==a.nodeType)return Tf(a);var b=ka(a.kC),c=a;a.targetTouches?c=a.targetTouches[0]:b&&a.b.targetTouches&&(c=a.b.targetTouches[0]);return new F(c.clientX,c.clientY)}function Wf(a,b,c){if(b instanceof G)c=b.height,b=b.width;else if(void 0==c)throw Error("missing height argument");Xf(a,b);a.style.height=Mf(c,!0)}function Mf(a,b){"number"==typeof a&&(a=(b?Math.round(a):a)+"px");return a}function Xf(a,b){a.style.width=Mf(b,!0)}function Yf(a){return Zf(a)}
function Zf(a){var b=$f;if("none"!=Kf(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 $f(a){var b=a.offsetWidth,c=a.offsetHeight,d=sc&&!b&&!c;return n(b)&&!d||!a.getBoundingClientRect?new G(b,c):(a=Of(a),new G(a.right-a.left,a.bottom-a.top))}function ag(a){var b=Rf(a);a=Zf(a);return new yf(b.x,b.y,a.width,a.height)}
function bg(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 cg(a,b){a.style.display=b?"":"none"}function Sf(a){return"rtl"==Kf(a,"direction")}function eg(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 fg(a,b){var c=a.currentStyle?a.currentStyle[b]:null;return c?eg(a,c):0}var gg={thin:2,medium:4,thick:6};function hg(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 gg?gg[c]:eg(a,c)}
function ig(a){if(qc&&!Cc(9)){var b=hg(a,"borderLeft"),c=hg(a,"borderRight"),d=hg(a,"borderTop");a=hg(a,"borderBottom");return new xf(d,c,a,b)}b=Jf(a,"borderLeftWidth");c=Jf(a,"borderRightWidth");d=Jf(a,"borderTopWidth");a=Jf(a,"borderBottomWidth");return new xf(parseFloat(d),parseFloat(c),parseFloat(a),parseFloat(b))}var jg=/[^\d]+$/,kg={cm:1,"in":1,mm:1,pc:1,pt:1},lg={em:1,ex:1};
function mg(a){var b=Kf(a,"fontSize"),c;c=(c=b.match(jg))&&c[0]||null;if(b&&"px"==c)return parseInt(b,10);if(qc){if(c in kg)return eg(a,b);if(a.parentNode&&1==a.parentNode.nodeType&&c in lg)return a=a.parentNode,c=Kf(a,"fontSize"),eg(a,b==c?"1em":b)}c=I("span",{style:"visibility:hidden;position:absolute;line-height:0;padding:0;margin:0;border:0;height:1em;"});a.appendChild(c);b=c.offsetHeight;ed(c);return b}var Uf=/matrix\([0-9\.\-]+, [0-9\.\-]+, [0-9\.\-]+, [0-9\.\-]+, ([0-9\.\-]+)p?x?, ([0-9\.\-]+)p?x?\)/;function ng(a){if(a.classList)return a.classList;a=a.className;return s(a)&&a.match(/\S+/g)||[]}function og(a,b){return a.classList?a.classList.contains(b):C(ng(a),b)}function O(a,b){a.classList?a.classList.add(b):og(a,b)||(a.className+=0<a.className.length?" "+b:b)}function pg(a,b){if(a.classList)z(b,function(b){O(a,b)});else{var c={};z(ng(a),function(a){c[a]=!0});z(b,function(a){c[a]=!0});a.className="";for(var d in c)a.className+=0<a.className.length?" "+d:d}}
function P(a,b){a.classList?a.classList.remove(b):og(a,b)&&(a.className=hb(ng(a),function(a){return a!=b}).join(" "))}function qg(a,b){a.classList?z(b,function(b){P(a,b)}):a.className=hb(ng(a),function(a){return!C(b,a)}).join(" ")}function Q(a,b,c){c?O(a,b):P(a,b)}function rg(a,b){var c=!og(a,b);Q(a,b,c);return c};function sg(a,b,c){a&&(a.dataset?a.dataset[tg(b)]=c:a.setAttribute("data-"+b,c))}function ug(a,b){return a?a.dataset?a.dataset[tg(b)]:a.getAttribute("data-"+b):null}function vg(a,b){a&&(a.dataset?delete a.dataset[tg(b)]:a.removeAttribute("data-"+b))}var wg={};function tg(a){return wg[a]||(wg[a]=String(a).replace(/\-([a-z])/g,function(a,c){return c.toUpperCase()}))};var xg=sc?"webkit":rc?"moz":qc?"ms":pc?"o":"";function yg(a){var b=a.__yt_uid_key;b||(b=zg(),a.__yt_uid_key=b);return b}var zg=p("yt.dom.getNextId_");if(!zg){zg=function(){return++Ag};ba("yt.dom.getNextId_",zg,void 0);var Ag=0}function Bg(a,b){var c=Oc(a,null,b);return c.length?c[0]:null}function Cg(a,b){if(a in b)return b[a];var c=xg+a.charAt(0).toUpperCase()+a.substr(1);if(c in b)return b[c]}function Dg(a,b){var c;jb(a,function(a){c=Cg(a,b);return!!c});return c}
function Eg(a){Q(document.body,"hide-players",!0);a&&Q(a,"preserve-players",!0)}function Fg(){Q(document.body,"hide-players",!1);var a=Nc("preserve-players");z(a,function(a){P(a,"preserve-players")})};function Gg(a){if(a=a||window.event){for(var b in a)b in Hg||(this[b]=a[b]);this.scale=a.scale;this.rotation=a.rotation;this.Rc=a;(b=a.target||a.srcElement)&&3==b.nodeType&&(b=b.parentNode);this.target=b;if(b=a.relatedTarget)try{b=b.nodeName&&b}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.b=a.pageX;this.g=a.pageY}}function Ig(a){if(document.body&&document.documentElement){var b=document.body.scrollTop+document.documentElement.scrollTop;a.b=a.clientX+(document.body.scrollLeft+document.documentElement.scrollLeft);a.g=a.clientY+b}}
function Jg(a){n(a.b)||Ig(a);return a.b}function Kg(a){n(a.g)||Ig(a);return a.g}f=Gg.prototype;f.Rc=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.Rc.returnValue=!1;this.Rc.preventDefault&&this.Rc.preventDefault()};
f.stopPropagation=function(){this.Rc.cancelBubble=!0;this.Rc.stopPropagation&&this.Rc.stopPropagation()};f.stopImmediatePropagation=function(){this.Rc.cancelBubble=!0;this.Rc.stopImmediatePropagation&&this.Rc.stopImmediatePropagation()};var Hg={stopImmediatePropagation:1,stopPropagation:1,preventMouseEvent:1,preventManipulation:1,preventDefault:1,layerX:1,layerY:1,scale:1,rotation:1};var Lg=p("yt.events.listeners_")||{};ba("yt.events.listeners_",Lg,void 0);var Mg=p("yt.events.counter_")||{count:0};ba("yt.events.counter_",Mg,void 0);function Ng(a,b,c,d){return Vb(Lg,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=Ng(a,b,c,d);if(e)return e;var e=++Mg.count+"",g=!("mouseenter"!=b&&"mouseleave"!=b||!a.addEventListener||"onmouseenter"in document),h;h=g?function(d){d=new Gg(d);if(!td(d.relatedTarget,function(b){return b==a},!0))return d.currentTarget=a,d.type=b,c.call(a,d)}:function(b){b=new Gg(b);b.currentTarget=a;return c.call(a,b)};h=Te(h);Lg[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 Og(a,b){var c;c=R(a,"playing",function(){Pg(c);b.apply(a,arguments)},void 0)}function Qg(a,b,c,d){return Rg(a,b,c,function(a){return og(a,d)})}
function Rg(a,b,c,d){var e=a||document;return R(e,b,function(a){var b=td(a.target,function(a){return a===e||d(a)},!0);b&&b!==e&&!b.disabled&&(a.currentTarget=b,c.call(b,a))})}function Sg(a,b,c){(a=Ng(a,b,c,!1))&&Pg(a)}function Pg(a){a&&("string"==typeof a&&(a=[a]),z(a,function(a){if(a in Lg){var c=Lg[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 Lg[a]}}))}function Tg(a){for(var b in Lg)Lg[b][0]==a&&Pg(b)}
function Ug(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 Vg(){return!!Dg(["fullscreenEnabled","fullScreenEnabled"],document)}function Wg(){return Dg(["fullscreenElement","fullScreenElement"],document)};function Xg(a){a=a||{};this.url=a.url||"";this.urlV8=a.url_v8||"";this.urlV9As2=a.url_v9as2||"";this.args=a.args||ac(Yg);this.assets=a.assets||{};this.attrs=a.attrs||ac(Zg);this.params=a.params||ac($g);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}var Yg={enablejsapi:1},Zg={},$g={allowscriptaccess:"always",allowfullscreen:"true",bgcolor:"#000000"};
Xg.prototype.clone=function(){var a=new Xg,b;for(b in this){var c=this[b];"object"==fa(c)?a[b]=ac(c):a[b]=c}return a};var ah,bh,ch,dh,eh,fh,gh;gh=fh=eh=dh=ch=bh=ah=!1;var hh=fc;hh&&(-1!=hh.indexOf("Firefox")?ah=!0:-1!=hh.indexOf("Camino")?bh=!0:-1!=hh.indexOf("iPhone")||-1!=hh.indexOf("iPod")?ch=!0:-1!=hh.indexOf("iPad")?dh=!0:-1!=hh.indexOf("Chrome")?fh=!0:-1!=hh.indexOf("Android")?eh=!0:-1!=hh.indexOf("Safari")&&(gh=!0));var ih=ah,jh=bh,kh=ch,lh=dh,mh=eh,nh=fh,oh=gh;var ph=v(),qh=null,rh=Array(50),sh=-1,th=!1;function uh(){var a=vh;wh();qh.push(a);xh(qh)}function yh(a,b){wh();var c=qh,d=zh(a,String(b));E(c)?Ah(d):(xh(c),z(c,function(a){a(d)}))}function wh(){qh||(qh=p("yt.mdx.remote.debug.handlers_")||[],ba("yt.mdx.remote.debug.handlers_",qh,void 0))}function Ah(a){var b=(sh+1)%50;sh=b;rh[b]=a;th||(th=49==b)}function xh(a){var b=rh;if(b[0]){var c=sh,d=th?c:-1;do{var d=(d+1)%50,e=b[d];z(a,function(a){a(e)})}while(d!=c);rh=Array(50);sh=-1;th=!1}}
function zh(a,b){var c=(v()-ph)/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 Bh(a){a=a||{};this.name=a.name||"";this.id=a.screenId||"";this.token=a.loungeToken||"";this.uuid=a.dialId||""}function Ch(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 Dh(a){return{name:a.name,screenId:a.id,loungeToken:a.token,dialId:a.uuid}}function Eh(a){return new Bh(a)}function Fh(a){return ha(a)?A(a,Eh):[]}
function Gh(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 Hh(a){return ha(a)?"["+A(a,Gh).join(",")+"]":"null"};function Ih(){}Ih.prototype.Uc=!1;Ih.prototype.fa=function(){return this.Uc};Ih.prototype.dispose=function(){this.Uc||(this.Uc=!0,this.J())};function S(a,b){Jh(a,ra(Kh,b))}function Jh(a,b){a.rb||(a.rb=[]);a.rb.push(n(void 0)?u(b,void 0):b)}Ih.prototype.J=function(){if(this.rb)for(;this.rb.length;)this.rb.shift()()};function Lh(a){return a&&"function"==typeof a.fa?a.fa():!1}function Kh(a){a&&"function"==typeof a.dispose&&a.dispose()}
function Mh(a){for(var b=0,c=arguments.length;b<c;++b){var d=arguments[b];ia(d)?Mh.apply(null,d):Kh(d)}};function Nh(){this.b=[];this.$b={}}w(Nh,Ih);f=Nh.prototype;f.Wr=1;f.uj=0;f.subscribe=function(a,b,c){var d=this.$b[a];d||(d=this.$b[a]=[]);var e=this.Wr;this.b[e]=a;this.b[e+1]=b;this.b[e+2]=c;this.Wr=e+3;d.push(e);return e};f.ia=function(a,b,c){if(a=this.$b[a]){var d=this.b;if(a=B(a,function(a){return d[a+1]==b&&d[a+2]==c}))return this.Ib(a)}return!1};
f.Ib=function(a){if(0!=this.uj)return this.g||(this.g=[]),this.g.push(a),!1;var b=this.b[a];if(b){var c=this.$b[b];c&&rb(c,a);delete this.b[a];delete this.b[a+1];delete this.b[a+2]}return!!b};f.H=function(a,b){var c=this.$b[a];if(c){this.uj++;for(var d=yb(arguments,1),e=0,g=c.length;e<g;e++){var h=c[e];this.b[h+1].apply(this.b[h+2],d)}this.uj--;if(this.g&&0==this.uj)for(;c=this.g.pop();)this.Ib(c);return 0!=e}return!1};
f.clear=function(a){if(a){var b=this.$b[a];b&&(z(b,this.Ib,this),delete this.$b[a])}else this.b.length=0,this.$b={}};f.Na=function(a){if(a){var b=this.$b[a];return b?b.length:0}a=0;for(b in this.$b)a+=this.Na(b);return a};f.J=function(){Nh.G.J.call(this);delete this.b;delete this.$b;delete this.g};var Oh=p("yt.pubsub.instance_")||new Nh;Nh.prototype.subscribe=Nh.prototype.subscribe;Nh.prototype.unsubscribeByKey=Nh.prototype.Ib;Nh.prototype.publish=Nh.prototype.H;Nh.prototype.clear=Nh.prototype.clear;ba("yt.pubsub.instance_",Oh,void 0);var Ph=p("yt.pubsub.subscribedKeys_")||{};ba("yt.pubsub.subscribedKeys_",Ph,void 0);var Qh=p("yt.pubsub.topicToKeys_")||{};ba("yt.pubsub.topicToKeys_",Qh,void 0);var Rh=p("yt.pubsub.isSynchronous_")||{};ba("yt.pubsub.isSynchronous_",Rh,void 0);
var Sh=p("yt.pubsub.skipSubId_")||null;ba("yt.pubsub.skipSubId_",Sh,void 0);function Th(a,b,c){var d=Uh();if(d){var e=d.subscribe(a,function(){if(!Sh||Sh!=e){var d=arguments,h=function(){Ph[e]&&b.apply(c||window,d)};try{Rh[a]?h():L(h,0)}catch(k){We(k)}}},c);Ph[e]=!0;Qh[a]||(Qh[a]=[]);Qh[a].push(e);return e}return 0}function Vh(a){var b=Uh();b&&("number"==typeof a?a=[a]:"string"==typeof a&&(a=[parseInt(a,10)]),z(a,function(a){b.unsubscribeByKey(a);delete Ph[a]}))}
function Wh(a,b){var c=Uh();return c?c.publish.apply(c,arguments):!1}function Xh(a,b){Rh[a]=!0;var c=Uh();c&&c.publish.apply(c,arguments);Rh[a]=!1}function Yh(a){Qh[a]&&(a=Qh[a],z(a,function(a){Ph[a]&&delete Ph[a]}),a.length=0)}function Zh(a){var b=Uh();if(b)if(b.clear(a),a)Yh(a);else for(var c in Qh)Yh(c)}function Uh(){return p("yt.pubsub.instance_")};function $h(){};function ai(){}w(ai,$h);ai.prototype.Na=function(){var a=0;Bd(this.Wb(!0),function(){a++});return a};ai.prototype.clear=function(){var a=Cd(this.Wb(!0)),b=this;z(a,function(a){b.remove(a)})};function bi(a){this.b=a}w(bi,ai);f=bi.prototype;f.isAvailable=function(){if(!this.b)return!1;try{return this.b.setItem("__sak","1"),this.b.removeItem("__sak"),!0}catch(a){return!1}};f.set=function(a,b){try{this.b.setItem(a,b)}catch(c){if(0==this.b.length)throw"Storage mechanism: Storage disabled";throw"Storage mechanism: Quota exceeded";}};f.get=function(a){a=this.b.getItem(a);if(!s(a)&&null!==a)throw"Storage mechanism: Invalid value was encountered";return a};f.remove=function(a){this.b.removeItem(a)};
f.Na=function(){return this.b.length};f.Wb=function(a){var b=0,c=this.b,d=new zd;d.next=function(){if(b>=c.length)throw yd;var d;d=c.key(b++);if(a)return d;d=c.getItem(d);if(!s(d))throw"Storage mechanism: Invalid value was encountered";return d};return d};f.clear=function(){this.b.clear()};f.key=function(a){return this.b.key(a)};function ci(){var a=null;try{a=window.localStorage||null}catch(b){}this.b=a}w(ci,bi);function di(){var a=null;try{a=window.sessionStorage||null}catch(b){}this.b=a}w(di,bi);function ei(a){this.b=a}ei.prototype.set=function(a,b){n(b)?this.b.set(a,qf(b)):this.b.remove(a)};ei.prototype.get=function(a){var b;try{b=this.b.get(a)}catch(c){return}if(null!==b)try{return of(b)}catch(d){throw"Storage: Invalid value was encountered";}};ei.prototype.remove=function(a){this.b.remove(a)};function fi(a){this.b=a}w(fi,ei);function gi(a){this.data=a}function hi(a){return!n(a)||a instanceof gi?a:new gi(a)}fi.prototype.set=function(a,b){fi.G.set.call(this,a,hi(b))};fi.prototype.g=function(a){a=fi.G.get.call(this,a);if(!n(a)||a instanceof Object)return a;throw"Storage: Invalid value was encountered";};fi.prototype.get=function(a){if(a=this.g(a)){if(a=a.data,!n(a))throw"Storage: Invalid value was encountered";}else a=void 0;return a};function ii(a){this.b=a}w(ii,fi);function ji(a){var b=a.creation;a=a.expiration;return!!a&&a<v()||!!b&&b>v()}ii.prototype.set=function(a,b,c){if(b=hi(b)){if(c){if(c<v()){ii.prototype.remove.call(this,a);return}b.expiration=c}b.creation=v()}ii.G.set.call(this,a,b)};ii.prototype.g=function(a,b){var c=ii.G.g.call(this,a);if(c)if(!b&&ji(c))ii.prototype.remove.call(this,a);else return c};function ki(a){this.b=a}w(ki,ii);function li(a,b){var c=[];Bd(b,function(a){var b;try{b=ki.prototype.g.call(this,a,!0)}catch(g){if("Storage: Invalid value was encountered"==g)return;throw g;}n(b)?ji(b)&&c.push(a):c.push(a)},a);return c}function mi(a,b){var c=li(a,b);z(c,function(a){ki.prototype.remove.call(this,a)},a)}ki.prototype.j=function(){mi(this,this.b.Wb(!0))};function ni(a,b,c){var d=c&&0<c?c:0;c=d?v()+1E3*d:0;if((d=d?oi:pi)&&window.JSON){s(b)||(b=JSON.stringify(b,void 0));try{d.set(a,b,c)}catch(e){d.remove(a)}}}function qi(a){if(!pi&&!oi||!window.JSON)return null;var b;try{b=pi.get(a)}catch(c){}if(!s(b))try{b=oi.get(a)}catch(d){}if(!s(b))return null;try{b=JSON.parse(b,void 0)}catch(e){}return b}function ri(a){pi&&pi.remove(a);oi&&oi.remove(a)}var oi,si=new ci;oi=si.isAvailable()?new ki(si):null;var pi,ti=new di;pi=ti.isAvailable()?new ki(ti):null;function ui(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=Ca(h[0]||""),h=Ca(h[1]||"");k in d?ha(d[k])?wb(d[k],h):d[k]=[d[k],h]:d[k]=h}}return d}function vi(a,b){var c=[];Nb(a,function(a,b){var g=Ba(b),h;ha(a)?h=a:h=[a];z(h,function(a){""==a?c.push(g):c.push(g+"="+Ba(a))})});return c.join(b)}function wi(a){"?"==a.charAt(0)&&(a=a.substr(1));return ui(a,"&")}
function xi(a){return-1!=a.indexOf("?")?(a=(a||"").split("#")[0],a=a.split("?",2),wi(1<a.length?a[1]:a[0])):{}}var yi=Qd;function zi(a){a=Od(a);return Md(a[1],a[2],a[3],a[4])}function Ai(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=wi(d[1]||""),e;for(e in b)d[e]=b[e];return Yd(a,d)+c};var Bi=null;"undefined"!=typeof XMLHttpRequest?Bi=function(){return new XMLHttpRequest}:"undefined"!=typeof ActiveXObject&&(Bi=function(){return new ActiveXObject("Microsoft.XMLHTTP")});function Ci(a){switch(a&&"status"in a?a.status:-1){case 0:case 200:case 201:case 202:case 203:case 204:case 205:case 206:case 304:return!0;default:return!1}};function Di(a,b,c,d,e,g,h){function k(){4==(l&&"readyState"in l?l.readyState:0)&&b&&Te(b)(l)}var l=Bi&&Bi();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=Ei(a,e))for(var q in e)l.setRequestHeader(q,e[q]),"content-type"==q.toLowerCase()&&(g=!1);g&&l.setRequestHeader("Content-Type","application/x-www-form-urlencoded");l.send(d);return l}
function Ei(a,b){b=b||{};var c;if(c=Se("PAGE_CL")&&Se("PAGE_BUILD_TIMESTAMP")){var d;d||(d=window.location.href);c=Od(a)[1]||null;var e=yi(a);c&&e?(c=d,d=Od(a),c=Od(c),d=d[3]==c[3]&&d[1]==c[1]&&d[4]==c[4]):d=e?yi(d)==e&&(Number(Od(d)[4]||null)||null)==(Number(Od(a)[4]||null)||null):!0;c=d||Fi(a)}c&&(b["X-YouTube-Page-CL"]=Se("PAGE_CL"),b["X-YouTube-Page-Timestamp"]=Se("PAGE_BUILD_TIMESTAMP"));return b}
function Fi(a){var b=["X-YouTube-Page-CL","X-YouTube-Page-Timestamp"],c=Se("CORS_HEADER_WHITELIST")||{};a=yi(a);if(!a)return!0;var d=c[a];return d?lb(b,function(a){return C(d,a)}):!1}function Gi(a,b){var c=Se("XSRF_FIELD_NAME"),d;b.headers&&(d=b.headers["Content-Type"]);return!b.TE&&(!yi(a)||yi(a)==document.location.hostname)&&"POST"==b.method&&(!d||"application/x-www-form-urlencoded"==d)&&!(b.fd&&b.fd[c])}
function Hi(a,b){var c=b.format||"JSON";b.SE&&(a=document.location.protocol+"//"+document.location.hostname+(document.location.port?":"+document.location.port:"")+a);var d=Se("XSRF_FIELD_NAME"),e=Se("XSRF_TOKEN"),g=b.Gh;g&&(g[d]&&delete g[d],a=Ai(a,g));var h=b.Zw||"",g=b.fd;Gi(a,b)&&(g||(g={}),g[d]=e);g&&s(h)&&(d=wi(h),dc(d,g),h=Wd(d));var k=!1,l,q=Di(a,function(a){if(!k){k=!0;l&&N(l);var d=Ci(a),e=null;if(d||400<=a.status&&500>a.status)e=Ii(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.onSuccess&&b.onSuccess.call(g,a,e):b.onError&&b.onError.call(g,a,e);b.vb&&b.vb.call(g,a,e)}},b.method,h,b.headers,b.responseType,b.withCredentials);b.kh&&0<b.timeout&&(l=L(function(){k||(k=!0,q.abort(),N(l),b.kh.call(b.context||m,q))},b.timeout))}
function Ii(a,b){var c=null;switch(a){case "JSON":var d=b.responseText,e=b.getResponseHeader("Content-Type")||"";d&&0<=e.indexOf("json")&&(c=pf(d));break;case "XML":if(d=(d=b.responseXML)?Ji(d):null)c={},z(d.getElementsByTagName("*"),function(a){c[a.tagName]=Ki(a)})}return c}function Ji(a){return a?(a=("responseXML"in a?a.responseXML:a).getElementsByTagName("root"))&&0<a.length?a[0]:null:null}function Ki(a){var b="";z(a.childNodes,function(a){b+=a.nodeValue});return b}
var Li={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"},Mi={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 Ni(a,b,c,d){if(Se("XSRF_TOKEN"))c&&window.setTimeout(c,0);else{var e=zi(document.location.href)+"/token_ajax",g={};a&&(g.authuser=a);b&&(g.pageid=b);g[Li.watch_actions_ajax]=1;Hi(e,{format:"RAW",method:"GET",Gh:g,vb:function(a){var b=wi(a.responseText);b[Mi.watch_actions_ajax]?c&&c():d&&d(a,b)}})}};function Oi(){this.port=this.g="";this.b=!0;var a=document.location.href,b=Number(Od(a)[4]||null)||null||"";b&&(this.port=":"+b);this.g=Qd(a)||"";a=fc;0<=a.search("MSIE")&&(a=a.match(/MSIE ([\d.]+)/)[1],0>Va(a,"10.0")&&(this.b=!1))}function Pi(a,b,c,d){var e="/api/lounge";if(n(d)?d:a.b)e="https://"+a.g+a.port+"/api/lounge";return Yd(e+b,c||{})};function Qi(a){a&&(this.id=a.id||"",this.name=a.name||"",this.activityId=a.activityId||"",this.status=a.status||"UNKNOWN")}Qi.prototype.id="";Qi.prototype.name="";Qi.prototype.activityId="";Qi.prototype.status="UNKNOWN";function Ri(a){return{id:a.id,name:a.name,activityId:a.activityId,status:a.status}}Qi.prototype.toString=function(){return"{id:"+this.id+",name:"+this.name+",activityId:"+this.activityId+",status:"+this.status+"}"};
function Si(a){a=a||[];return"["+A(a,function(a){return a?a.toString():"null"}).join(",")+"]"};function Ti(){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 Ui(a){return A(a,function(a){return{key:a.id,name:a.name}})}function Vi(a){return A(a,function(a){return Ri(a)})}function Wi(a){return A(a,function(a){return new Qi(a)})}function Xi(a,b){return a||b?a&&b?a.id==b.id&&a.name==b.name:!1:!0}function Yi(a,b){return B(a,function(a){return a.id==b})}
function Zi(a,b){return B(a,function(a){return a||b?!a!=!b?!1:a.id==b.id:!0})}function $i(a,b){return B(a,function(a){return a.id==b||a.uuid==b})};function aj(){this.M=new Nh;S(this,this.M)}w(aj,Ih);aj.prototype.subscribe=function(a,b,c){return this.fa()?0:this.M.subscribe(a,b,c)};aj.prototype.ia=function(a,b,c){return this.fa()?!1:this.M.ia(a,b,c)};aj.prototype.Ib=function(a){return this.fa()?!1:this.M.Ib(a)};aj.prototype.H=function(a,b){return this.fa()?!1:this.M.H.apply(this.M,arguments)};function bj(a){aj.call(this);this.j=a;this.g=[]}w(bj,aj);bj.prototype.Pn=function(){return this.g};bj.prototype.contains=function(a){return!!Zi(this.g,a)};bj.prototype.get=function(a){return $i(this.g,a)};bj.prototype.info=function(a){yh(this.j,a)};function cj(a){this.b=a}var dj=/\s*;\s*/;f=cj.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(v()+1E3*c)).toUTCString();this.b.cookie=a+"="+b+e+d+c+g};
f.get=function(a,b){for(var c=a+"=",d=(this.b.cookie||"").split(dj),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.Ma=function(){return ej(this).keys};f.Qa=function(){return ej(this).bs};f.isEmpty=function(){return!this.b.cookie};f.Na=function(){return this.b.cookie?(this.b.cookie||"").split(dj).length:0};
f.eg=function(a){for(var b=ej(this).bs,c=0;c<b.length;c++)if(b[c]==a)return!0;return!1};f.clear=function(){for(var a=ej(this).keys,b=a.length-1;0<=b;b--)this.remove(a[b])};function ej(a){a=(a.b.cookie||"").split(dj);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,bs:c}}var fj=new cj(document);fj.g=3950;function gj(a,b){fj.set(""+a,b,void 0,"/","youtube.com")};function hj(){var a=ij(),b=jj();C(a,b);kj()&&Gb(a,b);a=lj(a);E(a)?fj.remove("remote_sid","/","youtube.com"):gj("remote_sid",a.join(","))}function ij(){var a=qi("yt-remote-connected-devices")||[];Cb(a);return a}function lj(a){if(E(a))return[];var b=a[0].indexOf("#"),c=-1==b?a[0]:a[0].substring(0,b);return A(a,function(a,b){return 0==b?a:a.substring(c.length)})}function mj(a){ni("yt-remote-connected-devices",a,86400)}
function jj(){if(nj)return nj;var a=qi("yt-remote-device-id");a||(a=Ti(),ni("yt-remote-device-id",a,31536E3));for(var b=ij(),c=1,d=a;C(b,d);)c++,d=a+"#"+c;return nj=d}function oj(){return qi("yt-remote-session-browser-channel")}function kj(){return qi("yt-remote-session-screen-id")}
function pj(a){5<a.length&&(a=a.slice(a.length-5));var b=A(qj(),function(a){return a.loungeToken}),c=A(a,function(a){return a.loungeToken});lb(c,function(a){return!C(b,a)})&&ni("yt-remote-lounge-token-expiration",!0,86400);ni("yt-remote-local-screens",a,31536E3)}function qj(){return qi("yt-remote-local-screens")||[]}function rj(){return qi("yt-remote-online-screens")||[]}function sj(a){ni("yt-remote-online-dial-devices",a,30)}function tj(){return qi("yt-remote-online-dial-devices")||[]}
function uj(a){a||ri("yt-remote-session-screen-id");hj();a=ij();rb(a,jj());mj(a)}var nj="";function vj(){return!!qi("yt-remote-cast-installed")}function wj(){var a=qi("yt-remote-cast-receiver");return a?a.friendlyName:null}function xj(){return vj()?zj()?Aj.getCastSession():(yj("getCastSelector: Cast is not initialized."),null):(yj("getCastSelector: Cast API is not installed!"),null)}
function Bj(){vj()?zj()?Cj()?(yh("cloudview","Requesting cast selector."),Aj.requestSession()):(yh("cloudview","Wait for cast API to be ready to request the session."),Dj.push(Th("yt-remote-cast2-api-ready",Bj))):yj("requestCastSelector: Cast is not initialized."):yj("requestCastSelector: Cast API is not installed!")}function Ej(a){Cj()?zj().setLaunchParams(a):yj("setLaunchParams called before ready.")}var Aj=null;function zj(){Aj||(Aj=p("yt.mdx.remote.cloudview.instance_"));return Aj}
function yj(a){yh("cloudview",a)}function Cj(){return!!p("yt.mdx.remote.cloudview.apiReady_")}var Dj=[];function Fj(a){a&&(this.id=a.id||a.name,this.name=a.name,this.app=a.app,this.type=a.type||"REMOTE_CONTROL",this.b=a.user||"")}Fj.prototype.id="";Fj.prototype.name="";Fj.prototype.app="";Fj.prototype.type="REMOTE_CONTROL";Fj.prototype.b="";Fj.prototype.equals=function(a){return a?this.id==a.id:!1};function Gj(a,b){this.action=a;this.params=b||null};function Hj(){if(!("cast"in window))return!1;var a=window.cast||{};return"ActivityStatus"in a&&"Api"in a&&"LaunchRequest"in a&&"Receiver"in a}function Ij(a){yh("CAST",a)}function vh(a){var b=Jj();b&&b.logMessage&&b.logMessage(a)}function Kj(a){if(a.source==window&&a.data&&"CastApi"==a.data.source&&"Hello"==a.data.event)for(;Lj.length;)Lj.shift()()}
function Mj(){if(!p("yt.mdx.remote.castv2_")&&!Nj&&(E(Oj)&&wb(Oj,tj()),Hj())){var a=Jj();a?(a.removeReceiverListener("YouTube",Pj),a.addReceiverListener("YouTube",Pj),Ij("API initialized in the other binary")):(a=new cast.Api,Qj(a),a.addReceiverListener("YouTube",Pj),a.setReloadTabRequestHandler&&a.setReloadTabRequestHandler(function(){L(function(){window.location.reload(!0)},1E3)}),uh(),Ij("API initialized"));Nj=!0}}
function Rj(){var a=Jj();if(a){Ij("API disposed");var b=p("yt.mdx.remote.debug.handlers_");rb(b||[],vh);a.setReloadTabRequestHandler&&a.setReloadTabRequestHandler(ca);a.removeReceiverListener("YouTube",Pj);Qj(null)}Nj=!1;Lj=null;Sg(window,"message",Kj)}function Sj(a){var b=mb(Oj,function(b){return b.id==a.id});0<=b&&(Oj[b]=Ri(a))}
function Pj(a){a.length&&Ij("Updating receivers: "+qf(a));Tj(a);Wh("yt-remote-cast-device-list-update");z(Uj(),function(a){Vj(a.id)});z(a,function(a){if(a.isTabProjected){var c=Wj(a.id);Ij("Detected device: "+c.id+" is tab projected. Firing DEVICE_TAB_PROJECTED event.");L(function(){Wh("yt-remote-cast-device-tab-projected",c.id)},1E3)}})}
function Xj(a,b){Ij("Updating "+a+" activity status: "+qf(b));var c=Wj(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=""),Sj(c),Wh("yt-remote-cast-device-status-update",c)):Ij("Device not found")}function Uj(){Mj();return Wi(Oj)}
function Tj(a){a=A(a,function(a){var c={id:a.id,name:La(a.name)};if(a=Wj(a.id))c.activityId=a.activityId,c.status=a.status;return c});pb(Oj);wb(Oj,a)}function Wj(a){var b=Uj();return B(b,function(b){return b.id==a})||null}function Vj(a){var b=Wj(a),c=Jj();c&&b&&b.activityId&&c.getActivityStatus(b.activityId,function(b){"error"==b.status&&(b.status="stopped");Xj(a,b)})}
function Yj(a){Mj();var b=Wj(a),c=Jj();c&&b&&b.activityId?(Ij("Stopping cast activity"),c.stopActivity(b.activityId,ra(Xj,a))):Ij("Dropping cast activity stop")}function Jj(){return p("yt.mdx.remote.castapi.api_")}function Qj(a){ba("yt.mdx.remote.castapi.api_",a,void 0)}var Nj=!1,Lj=null,Oj=p("yt.mdx.remote.castapi.devices_")||[];ba("yt.mdx.remote.castapi.devices_",Oj,void 0);function Zj(a){this.b=new Dd;if(a){a=Id(a);for(var b=a.length,c=0;c<b;c++)this.add(a[c])}}function ak(a){var b=typeof a;return"object"==b&&a||"function"==b?"o"+ma(a):b.substr(0,1)+a}f=Zj.prototype;f.Na=function(){return this.b.Na()};f.add=function(a){this.b.set(ak(a),a)};f.removeAll=function(a){a=Id(a);for(var b=a.length,c=0;c<b;c++)this.remove(a[c])};f.remove=function(a){return this.b.remove(ak(a))};f.clear=function(){this.b.clear()};f.isEmpty=function(){return this.b.isEmpty()};
f.contains=function(a){a=ak(a);return Fd(this.b.g,a)};f.Qa=function(){return this.b.Qa()};f.clone=function(){return new Zj(this)};f.equals=function(a){return this.Na()==Hd(a)&&bk(this,a)};function bk(a,b){var c=Hd(b);if(a.Na()>c)return!1;!(b instanceof Zj)&&5<c&&(b=new Zj(b));return Ld(a,function(a){var c=b;return"function"==typeof c.contains?c.contains(a):"function"==typeof c.eg?c.eg(a):ia(c)||s(c)?C(c,a):Ub(c,a)})}f.Wb=function(){return this.b.Wb(!1)};function ck(){};function dk(){this.b=v()}new dk;dk.prototype.set=function(a){this.b=a};dk.prototype.reset=function(){this.set(v())};dk.prototype.get=function(){return this.b};function T(a,b){this.type=a;this.currentTarget=this.target=b;this.defaultPrevented=this.g=!1;this.Dr=!0}T.prototype.J=function(){};T.prototype.dispose=function(){};T.prototype.stopPropagation=function(){this.g=!0};T.prototype.preventDefault=function(){this.defaultPrevented=!0;this.Dr=!1};function ek(a){a.stopPropagation()};var fk=!qc||Cc(9),gk=qc&&!Bc("9");!sc||Bc("528");rc&&Bc("1.9b")||qc&&Bc("8")||pc&&Bc("9.5")||sc&&Bc("528");rc&&!Bc("8")||qc&&Bc("9");var hk="ontouchstart"in m||!!(m.document&&document.documentElement&&"ontouchstart"in document.documentElement)||!(!m.navigator||!m.navigator.msMaxTouchPoints);function ik(a,b){T.call(this,a?a.type:"");this.relatedTarget=this.currentTarget=this.target=null;this.charCode=this.keyCode=this.button=this.screenY=this.screenX=this.clientY=this.clientX=0;this.metaKey=this.shiftKey=this.altKey=this.ctrlKey=!1;this.b=this.state=null;a&&this.init(a,b)}w(ik,T);f=ik.prototype;
f.init=function(a,b){var c=this.type=a.type;this.target=a.target||a.srcElement;this.currentTarget=b;var d=a.relatedTarget;if(d){if(rc){var e;t:{try{Cf(d.nodeName);e=!0;break t}catch(g){}e=!1}e||(d=null)}}else"mouseover"==c?d=a.fromElement:"mouseout"==c&&(d=a.toElement);this.relatedTarget=d;this.clientX=void 0!==a.clientX?a.clientX:a.pageX;this.clientY=void 0!==a.clientY?a.clientY:a.pageY;this.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;this.b=a;a.defaultPrevented&&this.preventDefault()};f.stopPropagation=function(){ik.G.stopPropagation.call(this);this.b.stopPropagation?this.b.stopPropagation():this.b.cancelBubble=!0};
f.preventDefault=function(){ik.G.preventDefault.call(this);var a=this.b;if(a.preventDefault)a.preventDefault();else if(a.returnValue=!1,gk)try{if(a.ctrlKey||112<=a.keyCode&&123>=a.keyCode)a.keyCode=-1}catch(b){}};f.kC=function(){return this.b};f.J=function(){};var jk="closure_listenable_"+(1E6*Math.random()|0);function kk(a){return!(!a||!a[jk])}var lk=0;function mk(a,b,c,d,e){this.listener=a;this.proxy=null;this.src=b;this.type=c;this.Of=!!d;this.Pc=e;this.key=++lk;this.removed=this.tj=!1}function nk(a){a.removed=!0;a.listener=null;a.proxy=null;a.src=null;a.Pc=null};function ok(a){this.src=a;this.b={};this.g=0}ok.prototype.add=function(a,b,c,d,e){var g=a.toString();a=this.b[g];a||(a=this.b[g]=[],this.g++);var h=pk(a,b,d,e);-1<h?(b=a[h],c||(b.tj=!1)):(b=new mk(b,this.src,g,!!d,e),b.tj=c,a.push(b));return b};ok.prototype.remove=function(a,b,c,d){a=a.toString();if(!(a in this.b))return!1;var e=this.b[a];b=pk(e,b,c,d);return-1<b?(nk(e[b]),sb(e,b),0==e.length&&(delete this.b[a],this.g--),!0):!1};
function qk(a,b){var c=b.type;if(!(c in a.b))return!1;var d=rb(a.b[c],b);d&&(nk(b),0==a.b[c].length&&(delete a.b[c],a.g--));return d}ok.prototype.removeAll=function(a){a=a&&a.toString();var b=0,c;for(c in this.b)if(!a||c==a){for(var d=this.b[c],e=0;e<d.length;e++)++b,nk(d[e]);delete this.b[c];this.g--}return b};function rk(a,b,c,d,e){a=a.b[b.toString()];b=-1;a&&(b=pk(a,c,d,e));return-1<b?a[b]:null}
function pk(a,b,c,d){for(var e=0;e<a.length;++e){var g=a[e];if(!g.removed&&g.listener==b&&g.Of==!!c&&g.Pc==d)return e}return-1};var sk="closure_lm_"+(1E6*Math.random()|0),tk={},uk=0;function vk(a,b,c,d,e){if(ha(b)){for(var g=0;g<b.length;g++)vk(a,b[g],c,d,e);return null}c=wk(c);return kk(a)?a.listen(b,c,d,e):xk(a,b,c,!1,d,e)}function xk(a,b,c,d,e,g){if(!b)throw Error("Invalid event type");var h=!!e,k=yk(a);k||(a[sk]=k=new ok(a));c=k.add(b,c,d,e,g);if(c.proxy)return c;d=zk();c.proxy=d;d.src=a;d.listener=c;a.addEventListener?a.addEventListener(b.toString(),d,h):a.attachEvent(Ak(b.toString()),d);uk++;return c}
function zk(){var a=Bk,b=fk?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 Ck(a,b,c,d,e){if(ha(b)){for(var g=0;g<b.length;g++)Ck(a,b[g],c,d,e);return null}c=wk(c);return kk(a)?a.Fd.add(String(b),c,!0,d,e):xk(a,b,c,!0,d,e)}function Dk(a,b,c,d,e){if(ha(b))for(var g=0;g<b.length;g++)Dk(a,b[g],c,d,e);else c=wk(c),kk(a)?a.Ga(b,c,d,e):a&&(a=yk(a))&&(b=rk(a,b,c,!!d,e))&&Ek(b)}
function Ek(a){if(ja(a)||!a||a.removed)return!1;var b=a.src;if(kk(b))return qk(b.Fd,a);var c=a.type,d=a.proxy;b.removeEventListener?b.removeEventListener(c,d,a.Of):b.detachEvent&&b.detachEvent(Ak(c),d);uk--;(c=yk(b))?(qk(c,a),0==c.g&&(c.src=null,b[sk]=null)):nk(a);return!0}function Ak(a){return a in tk?tk[a]:tk[a]="on"+a}function Fk(a,b,c,d){var e=1;if(a=yk(a))if(b=a.b[b.toString()])for(b=b.concat(),a=0;a<b.length;a++){var g=b[a];g&&g.Of==c&&!g.removed&&(e&=!1!==Gk(g,d))}return Boolean(e)}
function Gk(a,b){var c=a.listener,d=a.Pc||a.src;a.tj&&Ek(a);return c.call(d,b)}
function Bk(a,b){if(a.removed)return!0;if(!fk){var c=b||p("window.event"),d=new ik(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.g&&0<=k;k--)d.currentTarget=c[k],e&=Fk(c[k],g,!0,d);for(k=0;!d.g&&k<c.length;k++)d.currentTarget=c[k],e&=Fk(c[k],g,!1,d)}return e}return Gk(a,new ik(b,this))}
function yk(a){a=a[sk];return a instanceof ok?a:null}var Hk="__closure_events_fn_"+(1E9*Math.random()>>>0);function wk(a){if(ka(a))return a;a[Hk]||(a[Hk]=function(b){return a.handleEvent(b)});return a[Hk]};function U(){this.Fd=new ok(this);this.ka=this;this.V=null}w(U,Ih);U.prototype[jk]=!0;f=U.prototype;f.ci=function(a){this.V=a};f.addEventListener=function(a,b,c,d){vk(this,a,b,c,d)};f.removeEventListener=function(a,b,c,d){Dk(this,a,b,c,d)};
f.S=function(a){var b,c=this.V;if(c){b=[];for(var d=1;c;c=c.V)b.push(c),++d}c=this.ka;d=a.type||a;if(s(a))a=new T(a,c);else if(a instanceof T)a.target=a.target||c;else{var e=a;a=new T(d,c);dc(a,e)}var e=!0,g;if(b)for(var h=b.length-1;!a.g&&0<=h;h--)g=a.currentTarget=b[h],e=Ik(g,d,!0,a)&&e;a.g||(g=a.currentTarget=c,e=Ik(g,d,!0,a)&&e,a.g||(e=Ik(g,d,!1,a)&&e));if(b)for(h=0;!a.g&&h<b.length;h++)g=a.currentTarget=b[h],e=Ik(g,d,!1,a)&&e;return e};
f.J=function(){U.G.J.call(this);this.removeAllListeners();this.V=null};f.listen=function(a,b,c,d){return this.Fd.add(String(a),b,!1,c,d)};f.Ga=function(a,b,c,d){return this.Fd.remove(String(a),b,c,d)};f.removeAllListeners=function(a){return this.Fd?this.Fd.removeAll(a):0};
function Ik(a,b,c,d){b=a.Fd.b[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.Of==c){var k=h.listener,l=h.Pc||h.src;h.tj&&qk(a.Fd,h);e=!1!==k.call(l,d)&&e}}return e&&!1!=d.Dr};function Jk(a,b){this.g=new sf(a);this.b=b?pf:of}Jk.prototype.stringify=function(a){return rf(this.g,a)};Jk.prototype.parse=function(a){return this.b(a)};function Kk(a){this.g=0;this.j=a||100;this.b=[]}f=Kk.prototype;f.add=function(a){var b=this.b[this.g];this.b[this.g]=a;this.g=(this.g+1)%this.j;return b};f.get=function(a){a=Lk(this,a);return this.b[a]};f.set=function(a,b){a=Lk(this,a);this.b[a]=b};f.Na=function(){return this.b.length};f.isEmpty=function(){return 0==this.b.length};f.clear=function(){this.g=this.b.length=0};f.Qa=function(){for(var a=this.Na(),b=this.Na(),c=[],a=this.Na()-a;a<b;a++)c.push(this.get(a));return c};
f.Ma=function(){for(var a=[],b=this.Na(),c=0;c<b;c++)a[c]=c;return a};f.eg=function(a){for(var b=this.Na(),c=0;c<b;c++)if(this.get(c)==a)return!0;return!1};function Lk(a,b){if(b>=a.b.length)throw Error("Out of bounds exception");return a.b.length<a.j?b:(a.g+Number(b))%a.j};function Mk(a,b){U.call(this);this.b=a||1;this.g=b||m;this.j=u(this.gy,this);this.k=v()}w(Mk,U);f=Mk.prototype;f.dd=!1;f.vc=null;function Nk(a,b){a.b=b;a.vc&&a.dd?(a.stop(),a.start()):a.vc&&a.stop()}f.gy=function(){if(this.dd){var a=v()-this.k;0<a&&a<.8*this.b?this.vc=this.g.setTimeout(this.j,this.b-a):(this.vc&&(this.g.clearTimeout(this.vc),this.vc=null),this.S("tick"),this.dd&&(this.vc=this.g.setTimeout(this.j,this.b),this.k=v()))}};
f.start=function(){this.dd=!0;this.vc||(this.vc=this.g.setTimeout(this.j,this.b),this.k=v())};f.stop=function(){this.dd=!1;this.vc&&(this.g.clearTimeout(this.vc),this.vc=null)};f.J=function(){Mk.G.J.call(this);this.stop();delete this.g};function Ok(a,b,c){if(ka(a))c&&(a=u(a,c));else if(a&&"function"==typeof a.handleEvent)a=u(a.handleEvent,a);else throw Error("Invalid listener argument");return 2147483647<b?-1:m.setTimeout(a,b||0)}function Pk(a){m.clearTimeout(a)};function Qk(a,b,c){this.k=a;this.j=b;this.g=c;this.b=u(this.iy,this)}w(Qk,Ih);f=Qk.prototype;f.gg=!1;f.Lh=0;f.Ue=null;function Rk(a){a.Ue||a.Lh?a.gg=!0:Sk(a)}f.stop=function(){this.Ue&&(Pk(this.Ue),this.Ue=null,this.gg=!1)};f.pause=function(){this.Lh++};f.resume=function(){this.Lh--;this.Lh||!this.gg||this.Ue||(this.gg=!1,Sk(this))};f.J=function(){Qk.G.J.call(this);this.stop()};f.iy=function(){this.Ue=null;this.gg&&!this.Lh&&(this.gg=!1,Sk(this))};function Sk(a){a.Ue=Ok(a.b,a.j);a.k.call(a.g)};function Tk(a){this.j=a;this.g={}}w(Tk,Ih);var Uk=[];f=Tk.prototype;f.listen=function(a,b,c,d){return Vk(this,a,b,c,d)};function Wk(a,b,c,d,e){Vk(a,b,c,d,!1,e)}function Vk(a,b,c,d,e,g){ha(c)||(c&&(Uk[0]=c.toString()),c=Uk);for(var h=0;h<c.length;h++){var k=vk(b,c[h],d||a.handleEvent,e||!1,g||a.j||a);if(!k)break;a.g[k.key]=k}return a}function Xk(a,b,c,d){Yk(a,b,c,d,void 0)}function Zk(a,b,c,d,e){Yk(a,b,c,d,!1,e)}
function Yk(a,b,c,d,e,g){if(ha(c))for(var h=0;h<c.length;h++)Yk(a,b,c[h],d,e,g);else(b=Ck(b,c,d||a.handleEvent,e,g||a.j||a))&&(a.g[b.key]=b)}f.Ga=function(a,b,c,d,e){if(ha(b))for(var g=0;g<b.length;g++)this.Ga(a,b[g],c,d,e);else c=c||this.handleEvent,e=e||this.j||this,c=wk(c),d=!!d,b=kk(a)?rk(a.Fd,String(b),c,d,e):a?(a=yk(a))?rk(a,b,c,d,e):null:null,b&&(Ek(b),delete this.g[b.key]);return this};f.removeAll=function(){Nb(this.g,Ek);this.g={}};f.J=function(){Tk.G.J.call(this);this.removeAll()};
f.handleEvent=function(){throw Error("EventHandler.handleEvent not implemented");};function $k(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 al(){}al.prototype.b=null;function bl(a){var b;(b=a.b)||(b={},cl(a)&&(b[0]=!0,b[1]=!0),b=a.b=b);return b};var dl;function el(){}w(el,al);function fl(a){return(a=cl(a))?new ActiveXObject(a):new XMLHttpRequest}function cl(a){if(!a.g&&"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.g=d}catch(e){}}throw Error("Could not create ActiveXObject. ActiveX might be disabled, or MSXML might not be installed");}return a.g}dl=new el;function gl(a,b,c,d,e){this.b=a;this.j=c;this.B=d;this.A=e||1;this.kb=45E3;this.k=new Tk(this);this.g=new Mk;Nk(this.g,250)}f=gl.prototype;f.Ie=null;f.Nc=!1;f.$f=null;f.rn=null;f.oh=null;f.Sf=null;f.fe=null;f.ie=null;f.He=null;f.jb=null;f.Ah=0;f.Oc=null;f.xj=null;f.Re=null;f.Tg=-1;f.pr=!0;f.We=!1;f.Jm=0;f.fj=null;var hl={},il={};f=gl.prototype;f.setTimeout=function(a){this.kb=a};function jl(a,b,c){a.Sf=1;a.fe=xe(b.clone());a.He=c;a.o=!0;kl(a,null)}
function ll(a,b,c,d,e){a.Sf=1;a.fe=xe(b.clone());a.He=null;a.o=c;e&&(a.pr=!1);kl(a,d)}function kl(a,b){a.oh=v();ml(a);a.ie=a.fe.clone();ue(a.ie,"t",a.A);a.Ah=0;a.jb=a.b.Zm(a.b.mh()?b:null);0<a.Jm&&(a.fj=new Qk(u(a.Ir,a,a.jb),a.Jm));a.k.listen(a.jb,"readystatechange",a.nB);var c=a.Ie?ac(a.Ie):{};a.He?(a.xj="POST",c["Content-Type"]="application/x-www-form-urlencoded",a.jb.send(a.ie,a.xj,a.He,c)):(a.xj="GET",a.pr&&!sc&&(c.Connection="close"),a.jb.send(a.ie,a.xj,null,c));a.b.Mc(1)}
f.nB=function(a){a=a.target;var b=this.fj;b&&3==nl(a)?Rk(b):this.Ir(a)};
f.Ir=function(a){try{if(a==this.jb)t:{var b=nl(this.jb),c=this.jb.g,d=this.jb.getStatus();if(qc&&!Cc(10)||sc&&!Bc("420+")){if(4>b)break t}else if(3>b||3==b&&!pc&&!ol(this.jb))break t;this.We||4!=b||7==c||(8==c||0>=d?this.b.Mc(3):this.b.Mc(2));pl(this);var e=this.jb.getStatus();this.Tg=e;var g=ol(this.jb);(this.Nc=200==e)?(4==b&&ql(this),this.o?(rl(this,b,g),pc&&this.Nc&&3==b&&(this.k.listen(this.g,"tick",this.cz),this.g.start())):sl(this,g),this.Nc&&!this.We&&(4==b?this.b.ej(this):(this.Nc=!1,ml(this)))):
(this.Re=400==e&&0<g.indexOf("Unknown SID")?3:0,tl(),ql(this),ul(this))}}catch(h){this.jb&&ol(this.jb)}finally{}};function rl(a,b,c){for(var d=!0;!a.We&&a.Ah<c.length;){var e=vl(a,c);if(e==il){4==b&&(a.Re=4,tl(),d=!1);break}else if(e==hl){a.Re=4;tl();d=!1;break}else sl(a,e)}4==b&&0==c.length&&(a.Re=1,tl(),d=!1);a.Nc=a.Nc&&d;d||(ql(a),ul(a))}f.cz=function(){var a=nl(this.jb),b=ol(this.jb);this.Ah<b.length&&(pl(this),rl(this,a,b),this.Nc&&4!=a&&ml(this))};
function vl(a,b){var c=a.Ah,d=b.indexOf("\n",c);if(-1==d)return il;c=Number(b.substring(c,d));if(isNaN(c))return hl;d+=1;if(d+c>b.length)return il;var e=b.substr(d,c);a.Ah=d+c;return e}
function wl(a,b){a.oh=v();ml(a);var c=b?window.location.hostname:"";a.ie=a.fe.clone();K(a.ie,"DOMAIN",c);K(a.ie,"t",a.A);try{a.Oc=new ActiveXObject("htmlfile")}catch(d){ql(a);a.Re=7;tl();ul(a);return}var e="<html><body>";b&&(e+='<script>document.domain="'+c+'"\x3c/script>');e+="</body></html>";a.Oc.open();a.Oc.write(e);a.Oc.close();a.Oc.parentWindow.m=u(a.FB,a);a.Oc.parentWindow.d=u(a.Rr,a,!0);a.Oc.parentWindow.rpcClose=u(a.Rr,a,!1);c=a.Oc.createElement("div");a.Oc.parentWindow.document.body.appendChild(c);
c.innerHTML='<iframe src="'+a.ie+'"></iframe>';a.b.Mc(1)}f.FB=function(a){xl(u(this.HE,this,a),0)};f.HE=function(a){this.We||(pl(this),sl(this,a),ml(this))};f.Rr=function(a){xl(u(this.GE,this,a),0)};f.GE=function(a){this.We||(ql(this),this.Nc=a,this.b.ej(this),this.b.Mc(4))};f.cancel=function(){this.We=!0;ql(this)};function ml(a){a.rn=v()+a.kb;yl(a,a.kb)}function yl(a,b){if(null!=a.$f)throw Error("WatchDog timer not null");a.$f=xl(u(a.dE,a),b)}
function pl(a){a.$f&&(m.clearTimeout(a.$f),a.$f=null)}f.dE=function(){this.$f=null;var a=v();0<=a-this.rn?(2!=this.Sf&&this.b.Mc(3),ql(this),this.Re=2,tl(),ul(this)):yl(this,this.rn-a)};function ul(a){a.b.Vr()||a.We||a.b.ej(a)}function ql(a){pl(a);Kh(a.fj);a.fj=null;a.g.stop();a.k.removeAll();if(a.jb){var b=a.jb;a.jb=null;zl(b);b.dispose()}a.Oc&&(a.Oc=null)}function sl(a,b){try{a.b.Xr(a,b),a.b.Mc(4)}catch(c){}};function Al(a,b,c,d,e){if(0==d)c(!1);else{var g=e||0;d--;Bl(a,b,function(e){e?c(!0):m.setTimeout(function(){Al(a,b,c,d,g)},g)})}}function Bl(a,b,c){var d=new Image;d.onload=function(){try{Cl(d),c(!0)}catch(a){}};d.onerror=function(){try{Cl(d),c(!1)}catch(a){}};d.onabort=function(){try{Cl(d),c(!1)}catch(a){}};d.ontimeout=function(){try{Cl(d),c(!1)}catch(a){}};m.setTimeout(function(){if(d.ontimeout)d.ontimeout()},b);d.src=a}
function Cl(a){a.onload=null;a.onerror=null;a.onabort=null;a.ontimeout=null};function Dl(a){this.b=a;this.g=new Jk(null,!0)}f=Dl.prototype;f.vm=null;f.Zb=null;f.sj=!1;f.mr=null;f.rj=null;f.Sm=null;f.jn=null;f.xc=null;f.Id=-1;f.rh=null;f.xh=null;f.connect=function(a){this.jn=a;a=El(this.b,null,this.jn);tl();this.mr=v();var b=this.b.C;null!=b?(this.rh=b[0],(this.xh=b[1])?(this.xc=1,Fl(this)):(this.xc=2,Gl(this))):(ue(a,"MODE","init"),this.Zb=new gl(this,0,void 0,void 0,void 0),this.Zb.Ie=this.vm,ll(this.Zb,a,!1,null,!0),this.xc=0)};
function Fl(a){var b=El(a.b,a.xh,"/mail/images/cleardot.gif");xe(b);Al(b.toString(),5E3,u(a.SB,a),3,2E3);a.Mc(1)}f.SB=function(a){if(a)this.xc=2,Gl(this);else{tl();var b=this.b;b.Ic=b.he.Id;Hl(b,9)}a&&this.Mc(2)};
function Gl(a){var b=a.b.D;if(null!=b)tl(),b?(tl(),Il(a.b,a,!1)):(tl(),Il(a.b,a,!0));else if(a.Zb=new gl(a,0,void 0,void 0,void 0),a.Zb.Ie=a.vm,b=a.b,b=El(b,b.mh()?a.rh:null,a.jn),tl(),!qc||Cc(10))ue(b,"TYPE","xmlhttp"),ll(a.Zb,b,!1,a.rh,!1);else{ue(b,"TYPE","html");var c=a.Zb;a=Boolean(a.rh);c.Sf=3;c.fe=xe(b.clone());wl(c,a)}}f.Zm=function(a){return this.b.Zm(a)};f.Vr=function(){return!1};
f.Xr=function(a,b){this.Id=a.Tg;if(0==this.xc)if(b){try{var c=this.g.parse(b)}catch(d){c=this.b;c.Ic=this.Id;Hl(c,2);return}this.rh=c[0];this.xh=c[1]}else c=this.b,c.Ic=this.Id,Hl(c,2);else if(2==this.xc)if(this.sj)tl(),this.Sm=v();else if("11111"==b){if(tl(),this.sj=!0,this.rj=v(),c=this.rj-this.mr,!qc||Cc(10)||500>c)this.Id=200,this.Zb.cancel(),tl(),Il(this.b,this,!0)}else tl(),this.rj=this.Sm=v(),this.sj=!1};
f.ej=function(){this.Id=this.Zb.Tg;if(this.Zb.Nc)0==this.xc?this.xh?(this.xc=1,Fl(this)):(this.xc=2,Gl(this)):2==this.xc&&(a=!1,(a=!qc||Cc(10)?this.sj:200>this.Sm-this.rj?!1:!0)?(tl(),Il(this.b,this,!0)):(tl(),Il(this.b,this,!1)));else{0==this.xc?tl():2==this.xc&&tl();var a=this.b;a.Ic=this.Id;Hl(a,2)}};f.mh=function(){return this.b.mh()};f.Mc=function(a){this.b.Mc(a)};function Jl(a){U.call(this);this.headers=new Dd;this.M=a||null;this.j=!1;this.I=this.b=null;this.P=this.C="";this.g=0;this.A="";this.k=this.N=this.B=this.L=!1;this.o=0;this.D=null;this.T="";this.F=this.O=!1}w(Jl,U);var Kl=/^https?$/i,Ll=["POST","PUT"];function Ml(a,b){a.o=Math.max(0,b)}f=Jl.prototype;
f.send=function(a,b,c,d){if(this.b)throw Error("[goog.net.XhrIo] Object is active with another request="+this.C+"; newUri="+a);b=b?b.toUpperCase():"GET";this.C=a;this.A="";this.g=0;this.P=b;this.L=!1;this.j=!0;this.b=this.M?fl(this.M):fl(dl);this.I=this.M?bl(this.M):bl(dl);this.b.onreadystatechange=u(this.Go,this);try{ck(Nl(this,"Opening Xhr")),this.N=!0,this.b.open(b,String(a),!0),this.N=!1}catch(e){ck(Nl(this,"Error opening Xhr: "+e.message));Ol(this,e);return}a=c||"";var g=this.headers.clone();
d&&Kd(d,function(a,b){g.set(b,a)});d=B(g.Ma(),Pl);c=m.FormData&&a instanceof m.FormData;!C(Ll,b)||d||c||g.set("Content-Type","application/x-www-form-urlencoded;charset=utf-8");g.forEach(function(a,b){this.b.setRequestHeader(b,a)},this);this.T&&(this.b.responseType=this.T);"withCredentials"in this.b&&(this.b.withCredentials=this.O);try{Ql(this),0<this.o&&(this.F=Rl(this.b),ck(Nl(this,"Will abort after "+this.o+"ms if incomplete, xhr2 "+this.F)),this.F?(this.b.timeout=this.o,this.b.ontimeout=u(this.kb,
this)):this.D=Ok(this.kb,this.o,this)),ck(Nl(this,"Sending request")),this.B=!0,this.b.send(a),this.B=!1}catch(h){ck(Nl(this,"Send error: "+h.message)),Ol(this,h)}};function Rl(a){return qc&&Bc(9)&&ja(a.timeout)&&n(a.ontimeout)}function Pl(a){return"content-type"==a.toLowerCase()}f.kb=function(){"undefined"!=typeof aa&&this.b&&(this.A="Timed out after "+this.o+"ms, aborting",this.g=8,Nl(this,this.A),this.S("timeout"),zl(this,8))};
function Ol(a,b){a.j=!1;a.b&&(a.k=!0,a.b.abort(),a.k=!1);a.A=b;a.g=5;Sl(a);Tl(a)}function Sl(a){a.L||(a.L=!0,a.S("complete"),a.S("error"))}function zl(a,b){a.b&&a.j&&(Nl(a,"Aborting"),a.j=!1,a.k=!0,a.b.abort(),a.k=!1,a.g=b||7,a.S("complete"),a.S("abort"),Tl(a))}f.J=function(){this.b&&(this.j&&(this.j=!1,this.k=!0,this.b.abort(),this.k=!1),Tl(this,!0));Jl.G.J.call(this)};f.Go=function(){this.fa()||(this.N||this.B||this.k?Ul(this):this.BC())};f.BC=function(){Ul(this)};
function Ul(a){if(a.j&&"undefined"!=typeof aa)if(a.I[1]&&4==nl(a)&&2==a.getStatus())Nl(a,"Local request error detected and ignored");else if(a.B&&4==nl(a))Ok(a.Go,0,a);else if(a.S("readystatechange"),4==nl(a)){Nl(a,"Request complete");a.j=!1;try{var b=a.getStatus(),c,d;t:switch(b){case 200:case 201:case 202:case 204:case 206:case 304:case 1223:d=!0;break t;default:d=!1}if(!(c=d)){var e;if(e=0===b){var g=Od(String(a.C))[1]||null;if(!g&&self.location)var h=self.location.protocol,g=h.substr(0,h.length-
1);e=!Kl.test(g?g.toLowerCase():"")}c=e}if(c)a.S("complete"),a.S("success");else{a.g=6;var k;try{k=2<nl(a)?a.b.statusText:""}catch(l){k=""}a.A=k+" ["+a.getStatus()+"]";Sl(a)}}finally{Tl(a)}}}function Tl(a,b){if(a.b){Ql(a);var c=a.b,d=a.I[0]?ca:null;a.b=null;a.I=null;b||a.S("ready");try{c.onreadystatechange=d}catch(e){}}}function Ql(a){a.b&&a.F&&(a.b.ontimeout=null);ja(a.D)&&(Pk(a.D),a.D=null)}function nl(a){return a.b?a.b.readyState:0}f.getStatus=function(){try{return 2<nl(this)?this.b.status:-1}catch(a){return-1}};
function ol(a){try{return a.b?a.b.responseText:""}catch(b){return""}}function Nl(a,b){return b+" ["+a.P+" "+a.C+" "+a.getStatus()+"]"};function Vl(a,b,c){this.B=a||null;this.b=1;this.g=[];this.k=[];this.o=new Jk(null,!0);this.C=b||null;this.D=null!=c?c:null}function Wl(a,b){this.b=a;this.map=b;this.context=null}f=Vl.prototype;f.Ih=null;f.Hb=null;f.ab=null;f.lm=null;f.Yi=null;f.ar=null;f.kj=null;f.Yg=0;f.lB=0;f.Cb=null;f.ke=null;f.Hd=null;f.Ze=null;f.he=null;f.Ti=null;f.Df=-1;f.zr=-1;f.Ic=-1;f.Wg=0;f.Uf=0;f.Me=8;var Xl=new U;function Yl(a){T.call(this,"statevent",a)}w(Yl,T);
function Zl(a,b){T.call(this,"timingevent",a);this.size=b}w(Zl,T);function $l(a){T.call(this,"serverreachability",a)}w($l,T);f=Vl.prototype;f.connect=function(a,b,c,d,e){tl();this.lm=b;this.Ih=c||{};d&&n(e)&&(this.Ih.OSID=d,this.Ih.OAID=e);this.he=new Dl(this);this.he.vm=null;this.he.g=this.o;this.he.connect(a)};
f.disconnect=function(){am(this);if(3==this.b){var a=this.Yg++,b=this.Yi.clone();K(b,"SID",this.j);K(b,"RID",a);K(b,"TYPE","terminate");bm(this,b);a=new gl(this,0,this.j,a,void 0);a.Sf=2;a.fe=xe(b.clone());(new Image).src=a.fe;a.oh=v();ml(a)}cm(this)};function am(a){if(a.he){var b=a.he;b.Zb&&(b.Zb.cancel(),b.Zb=null);b.Id=-1;a.he=null}a.ab&&(a.ab.cancel(),a.ab=null);a.Hd&&(m.clearTimeout(a.Hd),a.Hd=null);dm(a);a.Hb&&(a.Hb.cancel(),a.Hb=null);a.ke&&(m.clearTimeout(a.ke),a.ke=null)}
function em(a,b){if(0==a.b)throw Error("Invalid operation: sending map when state is closed");a.g.push(new Wl(a.lB++,b));2!=a.b&&3!=a.b||fm(a)}f.Vr=function(){return 0==this.b};function fm(a){a.Hb||a.ke||(a.ke=xl(u(a.Qr,a),0),a.Wg=0)}f.Qr=function(a){this.ke=null;gm(this,a)};
function gm(a,b){if(1==a.b){if(!b){a.Yg=Math.floor(1E5*Math.random());var c=a.Yg++,d=new gl(a,0,"",c,void 0);d.Ie=null;var e=hm(a),g=a.Yi.clone();K(g,"RID",c);a.B&&K(g,"CVER",a.B);bm(a,g);jl(d,g,e);a.Hb=d;a.b=2}}else 3==a.b&&(b?im(a,b):0!=a.g.length&&(a.Hb||im(a)))}
function im(a,b){var c,d;b?6<a.Me?(a.g=a.k.concat(a.g),a.k.length=0,c=a.Yg-1,d=hm(a)):(c=b.B,d=b.He):(c=a.Yg++,d=hm(a));var e=a.Yi.clone();K(e,"SID",a.j);K(e,"RID",c);K(e,"AID",a.Df);bm(a,e);c=new gl(a,0,a.j,c,a.Wg+1);c.Ie=null;c.setTimeout(Math.round(1E4)+Math.round(1E4*Math.random()));a.Hb=c;jl(c,e,d)}function bm(a,b){if(a.Cb){var c=a.Cb.gt(a);c&&Nb(c,function(a,c){K(b,c,a)})}}
function hm(a){var b=Math.min(a.g.length,1E3),c=["count="+b],d;6<a.Me&&0<b?(d=a.g[0].b,c.push("ofs="+d)):d=0;for(var e=0;e<b;e++){var g=a.g[e].b,h=a.g[e].map,g=6>=a.Me?e:g-d;try{Kd(h,function(a,b){c.push("req"+g+"_"+b+"="+encodeURIComponent(a))})}catch(k){c.push("req"+g+"_type="+encodeURIComponent("_badmap"))}}a.k=a.k.concat(a.g.splice(0,b));return c.join("&")}function jm(a){a.ab||a.Hd||(a.A=1,a.Hd=xl(u(a.Is,a),0),a.Uf=0)}
function km(a){if(a.ab||a.Hd||3<=a.Uf)return!1;a.A++;a.Hd=xl(u(a.Is,a),lm(a,a.Uf));a.Uf++;return!0}f.Is=function(){this.Hd=null;this.ab=new gl(this,0,this.j,"rpc",this.A);this.ab.Ie=null;this.ab.Jm=0;var a=this.ar.clone();K(a,"RID","rpc");K(a,"SID",this.j);K(a,"CI",this.Ti?"0":"1");K(a,"AID",this.Df);bm(this,a);if(!qc||Cc(10))K(a,"TYPE","xmlhttp"),ll(this.ab,a,!0,this.kj,!1);else{K(a,"TYPE","html");var b=this.ab,c=Boolean(this.kj);b.Sf=3;b.fe=xe(a.clone());wl(b,c)}};
function Il(a,b,c){a.Ti=c;a.Ic=b.Id;a.HD(1,0);a.Yi=El(a,null,a.lm);fm(a)}
f.Xr=function(a,b){if(0!=this.b&&(this.ab==a||this.Hb==a))if(this.Ic=a.Tg,this.Hb==a&&3==this.b)if(7<this.Me){var c;try{c=this.o.parse(b)}catch(d){c=null}if(ha(c)&&3==c.length)if(0==c[0])t:{if(!this.Hd){if(this.ab)if(this.ab.oh+3E3<this.Hb.oh)dm(this),this.ab.cancel(),this.ab=null;else break t;km(this);tl()}}else this.zr=c[1],0<this.zr-this.Df&&37500>c[2]&&this.Ti&&0==this.Uf&&!this.Ze&&(this.Ze=xl(u(this.uA,this),6E3));else Hl(this,11)}else"y2f%"!=b&&Hl(this,11);else if(this.ab==a&&dm(this),!ya(b)){c=
this.o.parse(b);ha(c);for(var e=0;e<c.length;e++){var g=c[e];this.Df=g[0];g=g[1];2==this.b?"c"==g[0]?(this.j=g[1],this.kj=g[2],g=g[3],null!=g?this.Me=g:this.Me=6,this.b=3,this.Cb&&this.Cb.yr(this),this.ar=El(this,this.mh()?this.kj:null,this.lm),jm(this)):"stop"==g[0]&&Hl(this,7):3==this.b&&("stop"==g[0]?Hl(this,7):"noop"!=g[0]&&this.Cb&&this.Cb.xr(this,g),this.Uf=0)}}};f.uA=function(){null!=this.Ze&&(this.Ze=null,this.ab.cancel(),this.ab=null,km(this),tl())};
function dm(a){null!=a.Ze&&(m.clearTimeout(a.Ze),a.Ze=null)}
f.ej=function(a){var b;if(this.ab==a)dm(this),this.ab=null,b=2;else if(this.Hb==a)this.Hb=null,b=1;else return;this.Ic=a.Tg;if(0!=this.b)if(a.Nc)1==b?(v(),Xl.S(new Zl(Xl,a.He?a.He.length:0)),fm(this),this.k.length=0):jm(this);else{var c=a.Re,d;if(!(d=3==c||7==c||0==c&&0<this.Ic)){if(d=1==b)this.Hb||this.ke||1==this.b||2<=this.Wg?d=!1:(this.ke=xl(u(this.Qr,this,a),lm(this,this.Wg)),this.Wg++,d=!0);d=!(d||2==b&&km(this))}if(d)switch(c){case 1:Hl(this,5);break;case 4:Hl(this,10);break;case 3:Hl(this,
6);break;case 7:Hl(this,12);break;default:Hl(this,2)}}};function lm(a,b){var c=5E3+Math.floor(1E4*Math.random());a.Cb||(c*=2);return c*b}f.HD=function(a){if(!C(arguments,this.b))throw Error("Unexpected channel state: "+this.b);};function Hl(a,b){if(2==b||9==b){var c=null;a.Cb&&(c=null);var d=u(a.QD,a);c||(c=new J("//www.google.com/images/cleardot.gif"),xe(c));Bl(c.toString(),1E4,d)}else tl();mm(a,b)}f.QD=function(a){a?tl():(tl(),mm(this,8))};function mm(a,b){a.b=0;a.Cb&&a.Cb.Ur(a,b);cm(a);am(a)}
function cm(a){a.b=0;a.Ic=-1;if(a.Cb)if(0==a.k.length&&0==a.g.length)a.Cb.Im(a);else{var b=vb(a.k),c=vb(a.g);a.k.length=0;a.g.length=0;a.Cb.Im(a,b,c)}}function El(a,b,c){var d=ye(c);if(""!=d.Bb)b&&de(d,b+"."+d.Bb),ee(d,d.af);else var e=window.location,d=ze(e.protocol,b?b+"."+e.hostname:e.hostname,e.port,c);a.Ih&&Nb(a.Ih,function(a,b){K(d,b,a)});K(d,"VER",a.Me);bm(a,d);return d}f.Zm=function(a){if(a)throw Error("Can't create secondary domain capable XhrIo object.");a=new Jl;a.O=!1;return a};
function xl(a,b){if(!ka(a))throw Error("Fn must not be null and must be a function");return m.setTimeout(function(){a()},b)}f.Mc=function(){Xl.S(new $l(Xl))};function tl(){Xl.S(new Yl(Xl))}f.mh=function(){return!(!qc||Cc(10))};function nm(){}f=nm.prototype;f.yr=function(){};f.xr=function(){};f.Ur=function(){};f.Im=function(){};f.gt=function(){return{}};function om(a,b){Mk.call(this);if(ka(a))b&&(a=u(a,b));else if(a&&ka(a.handleEvent))a=u(a.handleEvent,a);else throw Error("Invalid listener argument");this.B=a;vk(this,"tick",u(this.A,this));this.stop();Nk(this,5E3+2E4*Math.random())}w(om,Mk);om.prototype.o=0;om.prototype.A=function(){if(500<this.b){var a=this.b;24E4>2*a&&(a*=2);Nk(this,a)}this.B()};om.prototype.start=function(){om.G.start.call(this);this.o=v()+this.b};om.prototype.stop=function(){this.o=0;om.G.stop.call(this)};function pm(a,b){this.I=a;this.k=b;this.j=new Nh;this.g=new om(this.Su,this);this.b=null;this.F=!1;this.A=null;this.D="";this.C=this.o=0;this.B=[]}w(pm,nm);f=pm.prototype;f.subscribe=function(a,b,c){return this.j.subscribe(a,b,c)};f.ia=function(a,b,c){return this.j.ia(a,b,c)};f.Ib=function(a){return this.j.Ib(a)};f.H=function(a,b){return this.j.H.apply(this.j,arguments)};f.dispose=function(){this.F||(this.F=!0,this.j.clear(),this.disconnect(),Kh(this.j))};f.fa=function(){return this.F};
f.connect=function(a,b,c){if(!this.b||2!=this.b.b){this.D="";this.g.stop();this.A=a||null;this.o=b||0;a=this.I+"/test";b=this.I+"/bind";var d=new Vl("1",c?c.firstTestResults:null,c?c.secondTestResults:null),e=this.b;e&&(e.Cb=null);d.Cb=this;this.b=d;e?this.b.connect(a,b,this.k,e.j,e.Df):c?this.b.connect(a,b,this.k,c.sessionId,c.arrayId):this.b.connect(a,b,this.k)}};f.disconnect=function(a){this.C=a||0;this.g.stop();this.b&&(3==this.b.b&&gm(this.b),this.b.disconnect());this.C=0};
f.sendMessage=function(a,b){var c={_sc:a};b&&dc(c,b);this.g.dd||2==(this.b?this.b.b:0)?this.B.push(c):this.b&&3==this.b.b&&em(this.b,c)};f.yr=function(){var a=this.g;a.stop();Nk(a,5E3+2E4*Math.random());this.A=null;this.o=0;if(this.B.length){a=this.B;this.B=[];for(var b=0,c=a.length;b<c;++b)em(this.b,a[b])}this.H("handlerOpened")};f.Ur=function(a,b){var c=2==b&&401==this.b.Ic;if(4!=b&&!c){if(6==b||410==this.b.Ic)c=this.g,c.stop(),Nk(c,500);this.g.start()}this.H("handlerError",b)};
f.Im=function(a,b,c){if(!this.g.dd)this.H("handlerClosed");else if(c)for(a=0,b=c.length;a<b;++a)this.B.push(c[a].map)};f.gt=function(){var a={v:2};this.D&&(a.gsessionid=this.D);0!=this.o&&(a.ui=""+this.o);0!=this.C&&(a.ui=""+this.C);this.A&&dc(a,this.A);return a};f.xr=function(a,b){if("S"==b[0])this.D=b[1];else if("gracefulReconnect"==b[0]){var c=this.g;c.stop();Nk(c,500);this.g.start();this.b.disconnect()}else this.H("handlerMessage",new Gj(b[0],b[1]))};f.getDeviceId=function(){return this.k.id};
f.Su=function(){this.g.stop();var a=this.b,b=0;a.ab&&b++;a.Hb&&b++;0!=b?this.g.start():this.connect(this.A,this.o)};function qm(){this.b=[];this.g=[]}function rm(a){E(a.b)&&(a.b=a.g,a.b.reverse(),a.g=[])}function sm(a,b){a.g.push(b)}function tm(a){rm(a);return a.b.pop()}f=qm.prototype;f.Na=function(){return this.b.length+this.g.length};f.isEmpty=function(){return E(this.b)&&E(this.g)};f.clear=function(){this.b=[];this.g=[]};f.contains=function(a){return C(this.b,a)||C(this.g,a)};f.remove=function(a){var b=gb(this.b,a);if(0>b)return rb(this.g,a);sb(this.b,b);return!0};
f.Qa=function(){for(var a=[],b=this.b.length-1;0<=b;--b)a.push(this.b[b]);for(var c=this.g.length,b=0;b<c;++b)a.push(this.g[b]);return a};function um(a){this.reset(a)}function vm(a,b){if(a.g)throw Error(b+" is not allowed in V3.");}function wm(a){a.volume=-1;a.muted=!1;a.j=null;a.b=-1;a.k=null;a.o=0;a.A=v()}um.prototype.reset=function(a){this.Va=[];this.g="";xm(this);a&&(this.Va=a.videoIds,this.index=a.index,this.g=a.listId,this.videoId=a.videoId,this.b=a.playerState,this.k=a.errorReason,this.volume=a.volume,this.muted=a.muted,this.j=a.trackData,this.o=a.playerTime,this.A=a.playerTimeAt)};
function xm(a){a.index=-1;a.videoId="";wm(a)}function ym(a){return a.g?a.videoId:a.Va[a.index]}function zm(a,b){a.o=b;a.A=v()}function Am(a){switch(a.b){case 1:return(v()-a.A)/1E3+a.o;case -1E3:return 0}return a.o}function Bm(a,b){vm(a,"setVideoId");var c=a.index;a.index=fb(a.Va,b);c!=a.index&&wm(a)}function Cm(a,b,c){var d=a.videoId;a.videoId=b;a.index=c;b!=d&&wm(a)}function Dm(a,b,c){vm(a,"setPlaylist");c=c||ym(a);Eb(a.Va,b)&&c==ym(a)||(a.Va=vb(b),Bm(a,c))}
um.prototype.add=function(a){vm(this,"add");return a&&!C(this.Va,a)?(this.Va.push(a),!0):!1};um.prototype.remove=function(a){vm(this,"remove");var b=ym(this);return rb(this.Va,a)?(this.index=fb(this.Va,b),!0):!1};function Em(a){var b={};b.videoIds=vb(a.Va);b.index=a.index;b.listId=a.g;b.videoId=a.videoId;b.playerState=a.b;b.errorReason=a.k;b.volume=a.volume;b.muted=a.muted;b.trackData=bc(a.j);b.playerTime=a.o;b.playerTimeAt=a.A;return b}um.prototype.clone=function(){return new um(Em(this))};function Fm(a){aj.call(this);this.b=0;this.k=a;this.B=[];this.A=new qm;this.o=NaN;this.j=this.g=null;this.F=u(this.Zu,this);this.C=u(this.Jk,this);this.D=u(this.Yu,this);var b=0;a?(b=a.getProxyState(),3!=b&&(a.subscribe("proxyStateChange",this.Ho,this),Gm(this))):b=3;0!=b&&L(u(function(){this.Ho(b)},this),0);Hm(this,xj())}w(Fm,aj);function Im(a){return new um(a.k.getPlayerContextData())}f=Fm.prototype;
f.play=function(){1==this.b?(this.g?this.g.play(null,ca,u(function(){this.zh("Failed to play video with cast v2 channel.");Jm(this,"play")},this)):Jm(this,"play"),Km(this,1,Am(Im(this))),Lm(this)):Mm(this,this.play)};f.pause=function(){1==this.b?(this.g?this.g.pause(null,ca,u(function(){this.zh("Failed to pause video with cast v2 channel.");Jm(this,"pause")},this)):Jm(this,"pause"),Km(this,2,Am(Im(this))),Lm(this)):Mm(this,this.pause)};
f.ur=function(a){if(1==this.b){if(this.g){var b=Im(this),c=new chrome.cast.media.SeekRequest;c.currentTime=a;c.resumeState=1==b.b||3==b.b?chrome.cast.media.ResumeState.PLAYBACK_START:chrome.cast.media.ResumeState.PLAYBACK_PAUSE;this.g.seek(c,ca,u(function(){this.zh("Failed to seek in video with cast v2 channel.");Jm(this,"seekTo",{newTime:a})},this))}else Jm(this,"seekTo",{newTime:a});Km(this,3,a);Lm(this)}else Mm(this,ra(this.ur,a))};
f.stop=function(){if(1==this.b){this.g?this.g.stop(null,ca,u(function(){this.zh("Failed to stop video with cast v2 channel.");Jm(this,"stopVideo")},this)):Jm(this,"stopVideo");var a=Im(this);xm(a);Nm(this,a);Lm(this)}else Mm(this,this.stop)};
f.setVolume=function(a,b){if(1==this.b){var c=Im(this);if(this.j)c.volume!=a&&this.j.setReceiverVolumeLevel(a,ca,ca),c.muted!=b&&this.j.setReceiverMuted(b,ca,ca);else{var d={volume:a,muted:b};-1!=c.volume&&(d.delta=a-c.volume);Jm(this,"setVolume",d)}c.muted=b;c.volume=a;Nm(this,c);Lm(this)}else Mm(this,ra(this.setVolume,a,b))};
f.jm=function(a,b){if(1==this.b){var c=Im(this);if(b){c.j={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:qf(b.style)};dc(d,c.j);Jm(this,"setSubtitlesTrack",d)}else d={videoId:a},Jm(this,"setSubtitlesTrack",d);Nm(this,c)}else Mm(this,ra(this.jm,a,b))};
function Om(a,b,c,d,e){var g=Im(a);d=d||0;e={videoId:b,currentIndex:d,listId:e||g.g};Cm(g,b,d);n(c)&&(zm(g,c),e.currentTime=c);Jm(a,"setPlaylist",e);Nm(a,g)}f.mi=function(a,b){if(1==this.b){var c=Im(this);if(a!=ym(c)){var d;vm(c,"insert");a&&!C(c.Va,a)?(-1<c.index&&c.index>=c.Va.length-1?c.Va.push(a):c.Va.splice(c.index+1,0,a),d=!0):d=!1;d&&(d={videoId:a},Jm(this,"insertVideo",d));Bm(c,a);d={videoId:a};n(b)&&(zm(c,b),d.currentTime=b);Jm(this,"setVideo",d);Nm(this,c)}}else Mm(this,ra(this.mi,a,b))};
f.Hk=function(a,b,c){if(1==this.b){var d=Im(this),e=a==ym(d),d=Eb(b,d.Va);e?d||(Jm(this,"updatePlaylist",{videoIds:b.join(",")}),a=Im(this),Dm(a,b),Nm(this,a)):d?this.mi(a,c):(Jm(this,"setPlaylist",{videoIds:b.join(","),videoId:a,currentTime:c}),e=Im(this),zm(e,c),Dm(e,b,a),Nm(this,e))}else Mm(this,ra(this.Hk,a,b,c))};f.dispose=function(){if(3!=this.b){var a=this.b;this.b=3;this.H("proxyStateChange",a,this.b)}Fm.G.dispose.call(this)};
f.J=function(){N(this.o);this.o=NaN;Pm(this);this.k=null;this.A.clear();Hm(this,null);Fm.G.J.call(this)};function Gm(a){z(["remotePlayerChange","remoteQueueChange"],function(a){this.B.push(this.k.subscribe(a,ra(this.CC,a),this))},a)}function Pm(a){z(a.B,function(a){this.k.unsubscribeByKey(a)},a);a.B.length=0}function Mm(a,b){50>a.A.Na()&&sm(a.A,b)}function Km(a,b,c){var d=Im(a);zm(d,c);-1E3!=d.b&&(d.b=b);Nm(a,d)}function Jm(a,b,c){a.k.sendMessage(b,c)}
function Nm(a,b){Pm(a);a.k.setPlayerContextData(Em(b));Gm(a)}f.Ho=function(a){if((a!=this.b||2==a)&&3!=this.b&&0!=a){var b=this.b;this.b=a;this.H("proxyStateChange",b,a);if(1==a)for(;!this.A.isEmpty();)tm(this.A).apply(this);else 3==a&&this.dispose()}};function Lm(a){N(a.o);a.o=L(u(function(){this.H("remotePlayerChange");this.o=NaN},a),2E3)}f.CC=function(a){("remotePlayerChange"!=a||isNaN(this.o))&&this.H(a)};
function Hm(a,b){a.j&&(a.j.removeUpdateListener(a.F),a.j.removeMediaListener(a.C));a.j=b;a.j&&(a.j.addUpdateListener(a.F),a.j.addMediaListener(a.C))}f.Zu=function(a){if(!a)this.Jk(null),Hm(this,null);else if(this.j.receiver.volume){a=this.j.receiver.volume;var b=Im(this);if(b.volume!=a.level||b.muted!=a.muted)b.volume=a.level||0,b.muted=!!a.muted,Nm(this,b),Lm(this)}};f.Jk=function(a){this.g&&this.g.removeUpdateListener(this.D);if(this.g=a)this.g.addUpdateListener(this.D),Qm(this),Lm(this)};
function Qm(a){var b=a.g.customData;if(a.g.media){var c=a.g.media,d=Im(a);c.contentId!=d.videoId&&yh("CP","Cast changing video to: "+c.contentId);var e=c.customData;d.index=e.currentIndex;d.g=e.listId;d.videoId=c.contentId;d.b=b.playerState;zm(d,a.g.getEstimatedTime());Nm(a,d)}else yh("CP","No cast media. Ignoring.")}f.Yu=function(a){a?(Qm(this),Lm(this)):this.Jk(null)};f.zh=function(a){yh("CP",a)};function Rm(a,b,c){aj.call(this);this.O=a;this.jd=[];this.jd.push(R(window,"beforeunload",u(this.Fx,this)));this.j=[];this.b=new um;3==c["mdx-version"]&&(this.b.g="RQ"+b.token);this.D=b.id;this.g=new pm(Pi(this.O,"/bc",void 0,!1),c);this.g.subscribe("handlerOpened",this.Kx,this);this.g.subscribe("handlerClosed",this.Gx,this);this.g.subscribe("handlerError",this.Hx,this);this.b.g?this.g.subscribe("handlerMessage",this.Ix,this):this.g.subscribe("handlerMessage",this.Jx,this);a=this.g;b=b.token;(a.k.loungeIdToken=
b)||a.g.stop()}w(Rm,aj);f=Rm.prototype;f.wh=NaN;f.Dn=NaN;f.Xi=NaN;
f.connect=function(a,b){if(b){if(this.b.g){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.b.g=c);this.b.videoId=d;this.b.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.b.Va=[d];this.b.index=0}this.b.state=3;zm(this.b,g);this.log_("Connecting with setPlaylist and params: "+qf(h));this.g.connect({method:"setPlaylist",params:qf(h)},
a,oj())}else this.log_("Connecting without params"),this.g.connect({},a,oj());Sm(this)};f.dispose=function(){this.fa()||Tm(this,3);Rm.G.dispose.call(this)};f.J=function(){Um(this);Vm(this);N(this.Xi);this.Xi=NaN;this.k=null;Pg(this.jd);this.jd.length=0;this.g.dispose();Rm.G.J.call(this);this.j=this.b=this.g=null};f.log_=function(a){yh("conn",a)};f.Fx=function(){this.A(2)};function Tm(a,b){a.H("proxyStateChange",b)}
function Sm(a){a.wh=L(u(function(){this.log_("Connecting timeout");this.A(1)},a),1E4)}function Um(a){N(a.wh);a.wh=NaN}function Wm(a){Vm(a);a.Dn=L(u(function(){this.o("getNowPlaying")},a),2E4)}function Vm(a){N(a.Dn);a.Dn=NaN}function Xm(a){var b=a.g;return!!b.b&&3==b.b.b&&isNaN(a.wh)}
f.Kx=function(){this.log_("Channel opened");var a=this.g,b=this.D;ni("yt-remote-session-browser-channel",{firstTestResults:[""],secondTestResults:!a.b.Ti,sessionId:a.b.j,arrayId:a.b.Df});ni("yt-remote-session-screen-id",b);a=ij();b=jj();C(a,b)||a.push(b);mj(a);hj()};f.Gx=function(){this.log_("Channel closed");isNaN(this.wh)?uj(!0):uj();this.dispose()};
f.Hx=function(a){uj();isNaN(this.B())?(this.log_("Channel error: "+a+" without reconnection"),this.dispose()):(this.log_("Channel error: "+a+" with reconnection in "+this.B()+" ms"),Tm(this,2))};function Ym(a,b){b==Xm(a)?b&&Tm(a,1):b?(Um(a),a.C()&&a.b.reset(),Tm(a,1),a.o("getNowPlaying")):a.A(1)}function Zm(a,b){var c=b.params.videoId;delete b.params.videoId;c==a.b.videoId&&(Yb(b.params)?a.b.j=null:a.b.j=b.params,a.H("remotePlayerChange"))}
function $m(a,b){var c=b.params.videoId||b.params.video_id,d=parseInt(b.params.currentIndex,10);a.b.g=b.params.listId;Cm(a.b,c,d);a.H("remoteQueueChange")}function an(a,b){$m(a,b);bn(a,b)}
function bn(a,b){var c=parseInt(b.params.currentTime||b.params.current_time,10);zm(a.b,isNaN(c)?0:c);c=parseInt(b.params.state,10);c=isNaN(c)?-1:c;-1==c&&-1E3==a.b.b&&(c=-1E3);a.b.b=c;var d=null;-1E3==c&&(d=a.b.k||"unknown",n(b.params.currentError)&&(d=of(b.params.currentError).reason||d));a.b.k=d;1==a.b.b?Wm(a):Vm(a);a.H("remotePlayerChange")}function cn(a,b){var c="true"==b.params.muted;a.b.volume=parseInt(b.params.volume,10);a.b.muted=c;a.H("remotePlayerChange")}
f.Ix=function(a){a.params?this.log_("Received: action="+a.action+", params="+qf(a.params)):this.log_("Received: action="+a.action);switch(a.action){case "loungeStatus":a=of(a.params.devices);this.j=A(a,function(a){return new Fj(a)});a=!!B(this.j,function(a){return"LOUNGE_SCREEN"==a.type});Ym(this,a);break;case "loungeScreenConnected":Ym(this,!0);break;case "loungeScreenDisconnected":tb(this.j,function(a){return"LOUNGE_SCREEN"==a.type});Ym(this,!1);break;case "remoteConnected":var b=new Fj(of(a.params.device));
B(this.j,function(a){return a.equals(b)})||qb(this.j,b);break;case "remoteDisconnected":b=new Fj(of(a.params.device));tb(this.j,function(a){return a.equals(b)});break;case "gracefulDisconnect":break;case "playlistModified":$m(this,a);break;case "nowPlaying":an(this,a);break;case "onStateChange":bn(this,a);break;case "onVolumeChanged":cn(this,a);break;case "onSubtitlesTrackChanged":Zm(this,a);break;default:this.log_("Unrecognized action: "+a.action)}};
f.Jx=function(a){a.params?this.log_("Received: action="+a.action+", params="+qf(a.params)):this.log_("Received: action="+a.action);dn(this,a);en(this,a);if(Xm(this)){var b=this.b.clone(),c=!1,d,e,g,h,k,l,q;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)&&(q=of(a.params.currentError)));if("onSubtitlesTrackChanged"==a.action)d==ym(this.b)&&
(delete a.params.videoId,Yb(a.params)?this.b.j=null:this.b.j=a.params,this.H("remotePlayerChange"));else if(ym(this.b)||"onStateChange"!=a.action)"playlistModified"!=a.action&&"nowPlayingPlaylist"!=a.action||e?(d||"nowPlaying"!=a.action&&"nowPlayingPlaylist"!=a.action?d||(d=ym(this.b)):Bm(this.b,""),e&&(e=e.split(","),Dm(this.b,e,d))):Dm(this.b,[]),this.b.add(d)&&this.o("getPlaylist"),d&&Bm(this.b,d),b.index==this.b.index&&Eb(b.Va,this.b.Va)||this.H("remoteQueueChange"),n(g)&&(b=parseInt(g,10),b=
isNaN(b)?-1:b,-1==b&&-1E3==this.b.b&&(b=-1E3),0==b&&"0"==h&&(b=-1),c=c||b!=this.b.b,this.b.b=b,d=null,-1E3==b&&(d=this.b.k||"unknown",q&&(d=q.reason||d)),c=c||this.b.k!=d,this.b.k=d,1==this.b.b?Wm(this):Vm(this)),"onError"!=a.action||-1!=this.b.b&&-1E3!=this.b.b||(a=of(a.params.errors)||[],1==a.length&&"PLAYER_ERROR"==a[0].error&&a[0].videoId==ym(this.b)&&(this.b.b=-1E3,this.b.k=a[0].reason||"unknown",c=!0)),h&&(b=parseInt(h,10),zm(this.b,isNaN(b)?0:b),c=!0),n(k)&&(b=parseInt(k,10),isNaN(b)||(c=c||
this.b.volume!=b,this.b.volume=b),n(l)&&(l="true"==l,c=c||this.b.muted!=l,this.b.muted=l)),c&&this.H("remotePlayerChange")}};
function dn(a,b){switch(b.action){case "loungeStatus":var c=of(b.params.devices);a.j=A(c,function(a){return new Fj(a)});break;case "loungeScreenDisconnected":tb(a.j,function(a){return"LOUNGE_SCREEN"==a.type});break;case "remoteConnected":var d=new Fj(of(b.params.device));B(a.j,function(a){return a.equals(d)})||qb(a.j,d);break;case "remoteDisconnected":d=new Fj(of(b.params.device)),tb(a.j,function(a){return a.equals(d)})}}
function en(a,b){var c=!1;if("loungeStatus"==b.action)c=!!B(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;c==Xm(a)?c&&Tm(a,1):c?(Um(a),a.C()&&a.b.reset(),Tm(a,1),a.o("getNowPlaying")):a.A(1)}f.Ox=function(){if(this.k){var a=this.k;this.k=null;this.b.videoId!=a&&this.o("getNowPlaying")}};Rm.prototype.subscribe=Rm.prototype.subscribe;Rm.prototype.unsubscribeByKey=Rm.prototype.Ib;
Rm.prototype.L=function(){var a=3;this.fa()||(a=0,isNaN(this.B())?Xm(this)&&(a=1):a=2);return a};Rm.prototype.getProxyState=Rm.prototype.L;Rm.prototype.A=function(a){this.log_("Disconnecting with "+a);1==a&&uj();this.g.disconnect(a);this.dispose()};Rm.prototype.disconnect=Rm.prototype.A;Rm.prototype.I=function(){var a=this.b;this.k&&(a=this.b.clone(),Cm(a,this.k,a.index));return Em(a)};Rm.prototype.getPlayerContextData=Rm.prototype.I;
Rm.prototype.N=function(a){var b=new um(a);b.videoId&&b.videoId!=this.b.videoId&&(this.k=b.videoId,N(this.Xi),this.Xi=L(u(this.Ox,this),5E3));var c=[];this.b.g==b.g&&this.b.videoId==b.videoId&&this.b.index==b.index&&Eb(this.b.Va,b.Va)||c.push("remoteQueueChange");this.b.b==b.b&&this.b.volume==b.volume&&this.b.muted==b.muted&&Am(this.b)==Am(b)&&qf(this.b.j)==qf(b.j)||c.push("remotePlayerChange");this.b.reset(a);z(c,function(a){this.H(a)},this)};Rm.prototype.setPlayerContextData=Rm.prototype.N;
Rm.prototype.F=function(){return this.g.k.loungeIdToken};Rm.prototype.getLoungeToken=Rm.prototype.F;Rm.prototype.C=function(){var a=this.g.getDeviceId(),b=B(this.j,function(b){return"REMOTE_CONTROL"==b.type&&b.id!=a});return b?b.id:""};Rm.prototype.getOtherConnectedRemoteId=Rm.prototype.C;Rm.prototype.B=function(){var a=this.g;return a.g.dd?a.g.o-v():NaN};Rm.prototype.getReconnectTimeout=Rm.prototype.B;Rm.prototype.P=function(){if(!isNaN(this.B())){var a=this.g.g;a.dd&&(a.stop(),a.start(),a.A())}};
Rm.prototype.reconnect=Rm.prototype.P;Rm.prototype.o=function(a,b){b?this.log_("Sending: action="+a+", params="+qf(b)):this.log_("Sending: action="+a);this.g.sendMessage(a,b)};Rm.prototype.sendMessage=Rm.prototype.o;function fn(a){aj.call(this);this.k=a;this.Kc=Fh(qj());this.log_("Initializing local screens: "+Hh(this.Kc));this.j=gn();this.log_("Initializing account screens: "+Hh(this.j));this.Ul=null;this.b=[];this.g=[];hn(this,Uj()||[]);this.log_("Initializing DIAL devices: "+Si(this.g));a=Fh(rj());jn(this,a);this.log_("Initializing online screens: "+Hh(this.b));this.o=v()+3E5;kn(this)}w(fn,aj);var ln=[2E3,2E3,1E3,1E3,1E3,2E3,2E3,5E3,5E3,1E4];f=fn.prototype;f.Fh=NaN;f.Fj="";f.log_=function(a){yh("RM",a)};
f.zh=function(a){yh("RM",a)};function gn(){var a=Fh(qj()),b=Fh(rj());return hb(b,function(b){return!Zi(a,b)})}function kn(a){Th("yt-remote-cast-device-list-update",function(){var a=Uj();hn(this,a||[])},a);Th("yt-remote-cast-device-status-update",a.XC,a);a.Gs();var b=v()>a.o?2E4:1E4;Ue(u(a.Gs,a),b)}f.H=function(a,b){if(this.fa())return!1;this.log_("Firing "+a);return this.M.H.apply(this.M,arguments)};
f.Gs=function(){var a=Uj()||[];E(a)||hn(this,a);a=mn(this);E(a)||(jb(a,function(a){return!Zi(this.j,a)},this)&&!qi("yt-remote-lounge-token-expiration")?nn(this):on(this,a))};function pn(a,b){var c=mn(a);return hb(b,function(a){return a.uuid?(a=Yi(this.g,a.uuid),!!a&&"RUNNING"==a.status):!!Zi(c,a)},a)}
function hn(a,b){var c=!1;z(b,function(a){var b=$i(this.Kc,a.id);b&&b.name!=a.name&&(this.log_("Renaming screen id "+b.id+" from "+b.name+" to "+a.name),b.name=a.name,c=!0)},a);c&&(a.log_("Renaming due to DIAL."),qn(a));sj(Vi(b));var d=!Eb(a.g,b,Xi);d&&a.log_("Updating DIAL devices: "+Si(a.g)+" to "+Si(b));a.g=b;jn(a,a.b);d&&a.H("onlineReceiverChange")}
f.XC=function(a){var b=Yi(this.g,a.id);b&&(this.log_("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,sj(Vi(this.g)));jn(this,this.b)};function jn(a,b,c){var d=pn(a,b),e=!Eb(a.b,d,Ch);!e&&!c||E(b)||(b=A(d,Dh),ni("yt-remote-online-screens",b,60));e&&(a.log_("Updating online screens: "+Hh(a.b)+" -> "+Hh(d)),a.b=d,a.H("onlineReceiverChange"))}
function on(a,b){var c=[],d={};z(b,function(a){a.token&&(d[a.token]=a,c.push(a.token))});var e={method:"POST",fd:{lounge_token:c.join(",")},context:a,onSuccess:function(a,b){var c=[];z(b.screens||[],function(a){"online"==a.status&&c.push(d[a.loungeToken])});var e=this.Ul?rn(this,this.Ul):null;e&&!Zi(c,e)&&c.push(e);jn(this,c,!0)}};Hi(Pi(a.k,"/pairing/get_screen_availability"),e)}
function nn(a){var b=mn(a),c=A(b,function(a){return a.id});E(c)||(a.log_("Updating lounge tokens for: "+qf(c)),Hi(Pi(a.k,"/pairing/get_lounge_token_batch"),{fd:{screen_ids:c.join(",")},method:"POST",context:a,onSuccess:function(a,c){sn(this,c.screens||[]);this.Kc=hb(this.Kc,function(a){return!!a.token});qn(this);on(this,b)}}))}function sn(a,b){z(ub(a.Kc,a.j),function(a){var d=B(b,function(b){return a.id==b.screenId});d&&(a.token=d.loungeToken)})}
function qn(a){var b=Fh(qj());Eb(a.Kc,b,Ch)||(a.log_("Saving local screens: "+Hh(b)+" to "+Hh(a.Kc)),pj(A(a.Kc,Dh)),jn(a,a.b,!0),hn(a,Uj()||[]),a.H("managedScreenChange",mn(a)))}function tn(a,b,c){var d=mb(b,function(a){return c||a?!c!=!a?!1:c.id==a.id:!0}),e=0>d;0>d?b.push(c):b[d]=c;Zi(a.b,c)||a.b.push(c);return e}
f.cs=function(a,b,c){var d=!1;b>=ln.length&&(this.log_("Pairing DIAL device "+a+" with "+c+" timed out."),d=!0);var e=Yi(this.g,a);if(!e)this.log_("Pairing DIAL device "+a+" with "+c+" failed: no device for "+a),d=!0;else if("ERROR"==e.status||"STOPPED"==e.status)this.log_("Pairing DIAL device "+a+" with "+c+" failed: launch error on "+a),d=!0;d?(un(this),this.H("screenPair",null)):Hi(Pi(this.k,"/pairing/get_screen"),{method:"POST",fd:{pairing_code:c},context:this,onSuccess:function(a,b){if(c==this.Fj){un(this);
var d=new Bh(b.screen);d.name=e.name;d.uuid=e.id;this.log_("Pairing "+c+" succeeded.");var l=tn(this,this.Kc,d);this.log_("Paired with "+(l?"a new":"an old")+" local screen:"+Gh(d));qn(this);this.H("screenPair",d)}},onError:function(){c==this.Fj&&(this.log_("Polling pairing code: "+c),N(this.Fh),this.Fh=L(u(this.cs,this,a,b+1,c),ln[b]))}})};
function vn(a,b,c){var d=wn,e="";un(d);if(Yi(d.g,a)){if(!e){var g=e=Ti();Mj();var h=Wj(a),k=Jj();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",Sj(h),Wh("yt-remote-cast-device-status-update",h));
Ij("Sending a cast launch request with params: "+l.parameters);k.launch(l,ra(Xj,a))}else Ij("No cast API or no cast device. Dropping cast launch.")}d.Fj=e;d.Fh=L(u(d.cs,d,a,0,e),ln[0])}else d.log_("No DIAL device with id: "+a)}function un(a){N(a.Fh);a.Fh=NaN;a.Fj=""}function rn(a,b){var c=$i(mn(a),b);a.log_("Found screen: "+Gh(c)+" with key: "+b);return c}function xn(a){var b=wn,c=$i(b.b,a);b.log_("Found online screen: "+Gh(c)+" with key: "+a);return c}
function yn(a){var b=wn,c=Yi(b.g,a);if(!c){var d=$i(b.Kc,a);d&&(c=Yi(b.g,d.uuid))}b.log_("Found DIAL: "+(c?c.toString():"null")+" with key: "+a);return c}function mn(a){return ub(a.j,hb(a.Kc,function(a){return!Zi(this.j,a)},a))};function zn(a){bj.call(this,"ScreenServiceProxy");this.Db=a;this.b=[];this.b.push(this.Db.$_s("screenChange",u(this.UB,this)));this.b.push(this.Db.$_s("onlineScreenChange",u(this.TB,this)))}w(zn,bj);f=zn.prototype;f.Pn=function(a){return this.Db.$_gos(a)};f.contains=function(a){return!!this.Db.$_c(a)};f.get=function(a){return this.Db.$_g(a)};f.start=function(){};f.add=function(a,b,c){this.Db.$_a(a,b,c)};f.remove=function(a,b,c){this.Db.$_r(a,b,c)};
f.J=function(){for(var a=0,b=this.b.length;a<b;++a)this.Db.$_ubk(this.b[a]);this.b.length=0;this.Db=null;zn.G.J.call(this)};f.UB=function(){this.H("screenChange")};f.TB=function(){this.H("onlineScreenChange")};function An(a){a?ba("yt.mdx.remote.castv2_",!0,void 0):Mj();oi&&oi.j();hj();Bn||(Bn=new Oi);wn||a||(wn=new fn(Bn),wn.subscribe("screenPair",Cn),wn.subscribe("managedScreenChange",Dn),wn.subscribe("onlineReceiverChange",function(){Wh("yt-remote-receiver-availability-change")}));En||(En=p("yt.mdx.remote.deferredProxies_")||[],ba("yt.mdx.remote.deferredProxies_",En,void 0));Yb(Fn)&&(Fn=p("yt.mdx.remote.channelParams_")||{})}
function Gn(){Vh(Hn);Hn.length=0;Kh(In);In=null;En&&(z(En,function(a){a(null)}),En.length=0,En=null,ba("yt.mdx.remote.deferredProxies_",null,void 0));wn&&(Kh(wn),wn=null);Bn=null;Fn={};Rj()}
function Jn(){if(Kn()&&vj()){var a=[];if(qi("yt-remote-cast-available")||qi("yt-remote-cloudview-cast-button-shown")||Ln())a.push({key:"cast-selector-receiver",name:Mn()}),ni("yt-remote-cloudview-cast-button-shown",!0);return a}var b=[],b=Nn()?On().Db.$_gos(!0):Fh(rj());(a=Pn())&&Ln()&&(Zi(b,a)||b.push(a));Nn()||(a=Wi(tj()),a=hb(a,function(a){return!$i(b,a.id)}),b=ub(b,a));return Ui(b)}
function Qn(){if(Kn()&&vj()){var a=wj();return a?{key:"cast-selector-receiver",name:a}:null}var a=Jn(),b=Rn(),c=Pn();c||(c=Sn());return B(a,function(a){var e;if(e=c)e=a.key,e=c.id==e||c.uuid==e;return e||b&&(a=yn(a.key))&&a.id==b?!0:!1})}function Mn(){if(Kn()&&vj())return wj();var a=Pn();return a?a.name:null}function Pn(){var a=Tn();if(!a)return null;if(!wn){var b=On().Pn();return $i(b,a)}return rn(wn,a)}
function Un(a,b){Vn("Connecting to: "+qf(a));if("cast-selector-receiver"==a.key)Wn(b||null),Ej(b||null);else{Xn();Wn(b||null);var c=null;wn?c=xn(a.key):(c=On().Db.$_gos(void 0),c=$i(c,a.key));if(c)Yn(c);else{if(wn&&(c=yn(a.key))){Zn(c);return}L(function(){$n(null)},0)}}}
function Xn(){wn&&un(wn);t:{var a=Ln();if(a&&(a=a.getOtherConnectedRemoteId())){Vn("Do not stop DIAL due to "+a);ao("");break t}(a=Rn())?(Vn("Stopping DIAL: "+a),Yj(a),ao("")):(a=Pn())&&a.uuid&&(Vn("Stopping DIAL: "+a.uuid),Yj(a.uuid))}Cj()?zj().stopSession():yj("stopSession called before API ready.");(a=Ln())&&a.disconnect(1);$n(null)}function bo(){var a=co(),a=a?a.currentTime:0,b=eo();0==a&&b&&(a=Am(Im(b)));return a}function eo(){var a=Ln();return a?new Fm(a):null}
function Vn(a){yh("remote",a)}function Kn(){return!!p("yt.mdx.remote.castv2_")}function Nn(){return p("yt.mdx.remote.screenService_")}function On(){if(!In){var a=Nn();a&&(In=new zn(a))}return In}function Tn(){return p("yt.mdx.remote.currentScreenId_")}function fo(a){ba("yt.mdx.remote.currentScreenId_",a,void 0);if(wn){var b=wn;b.o=v()+3E5;if((b.Ul=a)&&(a=rn(b,a))&&!Zi(b.b,a)){var c=vb(b.b);c.push(a);jn(b,c,!0)}}}function Rn(){return p("yt.mdx.remote.currentDialId_")}
function ao(a){ba("yt.mdx.remote.currentDialId_",a,void 0)}function co(){return p("yt.mdx.remote.connectData_")}function Wn(a){ba("yt.mdx.remote.connectData_",a,void 0)}function Ln(){return p("yt.mdx.remote.connection_")}function $n(a){var b=Ln();Wn(null);a?cb(!Ln()):(fo(""),ao(""));ba("yt.mdx.remote.connection_",a,void 0);z(En,function(b){b(a)});En.length=0;b&&!a?Wh("yt-remote-connection-change",!1):!b&&a&&Wh("yt-remote-connection-change",!0)}
function Sn(){var a=kj();if(!a)return null;if(Nn()){var b=On().Pn();return $i(b,a)}return wn?rn(wn,a):null}function Yn(a){cb(!Tn());fo(a.id);var b=p("yt.mdx.remote.channelParams_");a=new Rm(Bn,a,b);a.connect(1,co());Jh(a,function(){Ln()&&(Ln(),$n(null))});$n(a)}function Zn(a){Rn();Vn("Connecting to: "+(a?a.toString():"null"));ao(a.id);var b=co();b?vn(a.id,b.videoIds[b.index],b.currentTime):vn(a.id)}function Cn(a){Vn("Paired with: "+Gh(a));a?Yn(a):$n(null)}
function Dn(){var a=Tn();a&&!Pn()&&(Vn("Dropping current screen with id: "+a),Xn());Sn()||uj()}var Bn=null,En=null,In=null,wn=null,Fn={},Hn=[];var go={XG:function(a,b){var c=a[0];a[0]=a[b%a.length];a[b]=c;return a},NZ:function(a){return a.reverse()},PL:function(a,b){return a.slice(b)}};function ho(a){a=a.split("");a=go.XG(a,15);a=go.XG(a,44);a=go.NZ(a,66);a=go.XG(a,24);a=go.PL(a,3);a=go.NZ(a,51);a=go.XG(a,2);a=go.XG(a,50);return a.join("")};function io(){};var jo={160:"h",133:"h",134:"h",135:"h",136:"h",137:"h",264:"h",138:"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",242:"9",243:"9",244:"9",247:"9",248:"9",271:"9",272:"9",171:"v",194:"*",195:"*",220:"*",221:"*",196:"*",197:"*",198:"V",279:"(",280:"(",273:"(",274:"(",275:"(",276:"(",277:"("};function ko(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.ra=h||0;this.b=c||null;this.video=d||null;this.k=e||null;this.o=g||null;this.j=jo[this.id.split(":")[0]]||""}function lo(a){return 2==a.g}function mo(a){return!(a.b&&a.video)}function no(a){return 0<=a.indexOf("opus")||0<=a.indexOf("vorbis")||0<=a.indexOf("mp4a")}
function oo(a){return 0<=a.indexOf("vp9")||0<=a.indexOf("vp8")||0<=a.indexOf("avc1")};function po(a,b,c){this.name=a;this.b="original"==c}po.prototype.toString=function(){return this.name};var Xb={pE:"auto",MJ:"tiny",iI:"light",SMALL:"small",xE:"medium",LARGE:"large",JH:"hd720",HH:"hd1080",IH:"hd1440",SH:"highres",UNKNOWN:"unknown"},qo={auto:0,tiny:144,light:144,small:240,medium:360,large:480,hd720:720,hd1080:1080,hd1440:1440,highres:2160};function ro(a,b,c,d){this.width=a;this.height=b;if(!d)t:{for(d=2;d<so.length;d++){var e=to[so[d]];if(a>e[0]&&b>=e[1]||a>=e[0]&&b>e[1]){d=so[d-1];break t}}d="tiny"}this.b=d;this.g=c||0}var so="auto highres hd1440 hd1080 hd720 large medium small tiny".split(" "),to={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 uo(a,b){this.start=a;this.end=b;this.length=b-a+1}function vo(a){a=a.split("-");return 2==a.length&&(a=new uo(parseInt(a[0],10),parseInt(a[1],10)),!isNaN(a.start)&&!isNaN(a.end)&&!isNaN(a.length)&&0<a.length)?a:null}function wo(a,b){return new uo(a,a+b-1)}uo.prototype.toString=function(){return this.start+"-"+(null==this.end?"":this.end)};function xo(a,b){var c=Od(a),d=c[6];if(d&&(d=d.match(new RegExp("(^|&)"+b+"=([^&]*)&?"))))return decodeURIComponent(d[2]);if(c=c[5])for(c=c.split("/"),c[c.length-1]||c.pop(),d=c.length-2;0<d;d-=2)if(c[d]==b)return decodeURIComponent(c[d+1])}
function yo(a,b){var c=Od(a),d=c[6];d&&(d=d.replace(new RegExp("(^|&)"+b+"=[^&]*&?"),"$1"),"&"==d.charAt(d.length-1)&&(d=d.substring(0,d.length-1)));var e=c[5];if(e){e=e.split("/");e[e.length-1]||e.pop();for(var g=e.length-2;0<g;g-=2)if(e[g]==b){e.splice(g,2);break}e=e.join("/")}return Md(c[1],c[2],c[3],c[4],e,d,c[7])}
function zo(a,b,c){a=Od(a);var d=!1,e=a[6];if(e){var g=new RegExp("((^|&)"+b+"=)[^&]*");0<=e.search(g)&&(e=e.replace(g,"$1"+c),d=!0)}if(g=a[5]){g=g.split("/");g[g.length-1]||g.pop();for(var h=g.length-2;0<h;h-=2)if(g[h]==b){g[h+1]=c;d=!0;break}g=g.join("/")}d||(e=e?e+"&"+b+"="+c:b+"="+c);return Md(a[1],a[2],a[3],a[4],g,e,a[7])}function Ao(a,b){var c=a,d;for(d in b)null!=b[d]&&(c=zo(c,d,b[d]));return c};function Bo(a,b,c,d,e){this.duration=c;this.endTime=b+c;this.b=a;this.sourceURL=d;this.startTime=b;this.Z=e||null};function Co(){this.ba=[]}f=Co.prototype;f.Bm=function(a){return(a=Do(this,a))?a.duration:0};f.Fs=function(){return this.ba[0].b};f.kc=function(){return this.ba[this.ba.length-1].b};f.yf=function(){return this.ba[this.ba.length-1].endTime};f.gn=function(){return this.ba[0].startTime};f.yj=function(){return 0};f.Ln=function(a){return(a=Eo(this,a))?a.b:-1};f.vs=function(a){return Do(this,a).sourceURL};f.Ui=function(a){return(a=Do(this,a))?a.startTime:0};f.tn=function(){return 0<this.ba.length};
function Do(a,b){var c=Ab(a.ba,new Bo(b,0,0,""),function(a,b){return a.b-b.b});return 0<=c?a.ba[c]:null}function Eo(a,b){var c=Ab(a.ba,{startTime:b},function(a,b){return a.startTime-b.startTime});return 0<=c?a.ba[c]:a.ba[Math.max(0,-c-2)]}f.append=function(a){if(0!=a.length)if(a=vb(a),0==this.ba.length)this.ba=a;else{var b=a[0].b-this.kc();1<b&&pb(this.ba);for(b=0<b?0:-b+1;b<a.length;b++)this.ba.push(a[b])}};function Fo(a,b){var c=mb(a.ba,function(a){return a.b>=b},a);0<c&&a.ba.splice(0,c)};function Go(a){this.b=a;this.g=0;this.j=-1}var Ho=0;function Io(a,b){this.index=null;this.info=b;this.b=null;this.o=this.j=!1;this.A=new Go(a)}Io.prototype.Ol=function(){return!1};Io.prototype.mc=function(){return!1};Io.prototype.Aq=function(a){return[a]};Io.prototype.Gi=function(a){return[a]};function Jo(a,b,c,d,e,g,h,k,l){this.b=b;this.Z=c;this.type=a;this.k=0<=d?d:-1;this.startTime=e||0;this.duration=g||0;this.j=h||0;this.g=0<=k?k:this.Z?this.Z.length:NaN;this.B=!!l;this.Z?(this.A=this.j+this.g==this.Z.length,this.o=this.startTime+this.duration*this.j/this.Z.length,this.D=this.duration*this.g/this.Z.length):(this.A=0!=this.g,this.o=this.startTime,this.D=this.duration);this.C=this.o+this.D}function Ko(a){return 1==a.type||2==a.type}
function Lo(a,b){return a.b==b.b&&a.Z.start+a.j+a.g==b.Z.start+b.j}function Mo(a){cb(1==a.length||lb(a,function(a){return!!a.Z}));for(var b=1;b<a.length;b++);b=a[a.length-1];return new uo(a[0].Z.start+a[0].j,b.Z.start+b.j+b.g-1)}
function No(a,b){var c;c=a.b;var d=a;c.zg(d);if(c.mc()){4==d.type&&(d=c.Gi(d),d=d[d.length-1]);var e=0,g=d.Z.start+d.j+d.g;3==d.type&&(e=d.k,g==d.Z.end+1&&(e+=1));c=Oo(c,e,g,b)}else e=wo(d.Z.end+1,b),e.end+1>c.g&&(e=new uo(e.start,c.g-1)),c=[new Jo(4,d.b,e)],c=new Po(c);return c}function Qo(a){var b="i="+a.b.info.id;a.Z&&(b=b+",r="+(a.Z.start+a.j)+"-"+(a.Z.start+a.j+a.g-1));return b=b+",t="+a.o.toFixed(1)+","+(a.o+a.D).toFixed(1)};function Po(a,b){this.j=a[0].b.A;this.g=b||"";this.b=a;this.Z=this.b[0].Z&&0<this.b[0].g?Mo(this.b):null}function Ro(a){var b;if(yi(a.g))b=a.g;else{b=a.j.b;var c=a.g;if(c){b=b.split("?");var c=c.split("?"),d=[];b[1]&&d.push(b[1]);c[1]&&d.push(c[1]);d=d.join("&");b=b[0];c[0]&&(b=b+"/"+c[0]);b=d?b+"?"+d:b}}return a.Z?zo(b,"range",a.Z.toString()):b}function So(a){if(a.Z)return a.Z.length;a=a.b[0];return Math.round(a.D*a.b.info.ra)};function To(a,b,c,d,e){Io.call(this,a,b);this.index=e||new Co;this.k=d||null;this.B=c;this.g=!0}w(To,Io);f=To.prototype;f.Fl=function(){return!1};f.Hr=function(){var a=new Jo(1,this,this.k);return[new Po([a],this.B)]};function Uo(a,b){a.zg(b);return Vo(a,b.A?b.k+1:b.k,!1)}f.xi=function(a,b){var c=this.index.Ln(a);b&&(c=Math.min(this.index.kc(),c+1));return Vo(this,c,!0)};f.Pp=function(a){this.b=new Uint8Array(Wo(a).buffer)};f.Ol=function(){return!1};f.mc=function(){return null!==this.b&&this.index.tn()};
f.zg=function(a){return this.index.kc()>a.k&&this.index.Fs()<=a.k+1};f.update=function(a,b,c){this.index.append(a);Fo(this.index,c);this.g=b};function Vo(a,b,c){var d=a.index.vs(b),e=a.index.Ui(b),g=a.index.Bm(b);c?g=c=0:c=0<a.info.ra?a.info.ra*g:1E3;a=new Jo(3,a,null,b,e,g,0,c,b==a.index.kc()&&!a.g&&0<c);return new Po([a],d)};function Xo(a,b,c){var d=a.getUint32(c);c+=4;var e=d&1,g=d&4,h=d&512,k=d&1024,l=d&2048;if(d&256&&(b||l))if(d=a.getUint32(c),c+=4,e&&(c+=4),g&&(c+=4),e=c,g=4,h&&(g+=4),k&&(g+=4),l&&(g+=4),b)for(b=0;b<d;b++)1023==a.getUint32(c)&&a.setUint32(c,1024),c+=g;else{var h=a.getUint32(c+g-4),k=[],l=[],q=0;for(b=0;b<d;b++){var r=a.getUint32(c),t=a.getUint32(c+g-4);l.push([q+t-h,b]);k.push(q);c+=g;q+=r}k.push(q);Cb(l,function(a,b){return a[0]-b[0]});t=[];for(b=0;b<l.length;b++)r=k[b+1]-k[b],c=l[b][1],a.setUint32(e+
g*c,r),t[c]=k[b];c=e;for(b=q=0;b<d;b++)r=a.getUint32(c),a.setUint32(c+g-4,h+t[b]-q),c+=g,q+=r}}function Yo(a,b,c){for(;Zo(a,b);){var d=$o(a,b);if(d.type==c)return d;b+=d.size}return null}function $o(a,b){var c=a.getUint32(b),d=a.getUint32(b+4),e=8;1==c&&(c=ap(a,b+8),e=16);1836019558==d||1953653094==d||(e=0);return new bp(a,b,c,d,e)}function ap(a,b){return 4294967296*a.getUint32(b)+a.getUint32(b+4)}
function Zo(a,b){if(8>a.byteLength-b)return!1;var c=a.getUint32(b);if(1==c){if(16>a.byteLength-b)return!1;c=ap(a,b+8)}if(0>=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 bp(a,b,c,d,e){this.data=a;this.b=b;this.size=c;this.type=d;this.g=e};function cp(a,b,c,d){this.info=a;this.buffer=b;this.Z=c;this.b=d}function Wo(a){return a.Z?new DataView(a.buffer,a.Z.start,a.Z.length):new DataView(a.buffer)}function dp(a){if(a.info.g!=a.Z.length)return!1;if(1==a.info.b.info.g){if(8>a.info.g||4==a.info.type)return!0;var b=Wo(a),c=b.getUint32(0,!1),b=b.getUint32(4,!1);if(2==a.info.type)return c==a.info.g&&1936286840==b;if(3==a.info.type&&0==a.info.j)return 1836019558==b||1936286840==b||1937013104==b||1718909296==b}return!0}
function ep(a){var b;if(1==a.info.b.info.g){var c=NaN;b=NaN;var d=0;for(a=new DataView(a.buffer);Zo(a,d);){var e=$o(a,d);1936286840==e.type?b=e.data.getUint32(e.b+16):1952867444==e.type&&(c=e,c=c.data.getUint8(c.b+8)?ap(c.data,c.b+12):c.data.getUint32(c.b+12));var g=e.type,d=1836019558==g||1953653094==g?d+e.g:d+e.size}b=c/b}else b=NaN;return b};function fp(){this.ea=0;this.b=new Float64Array(128);this.g=new Float64Array(128);this.k=1;this.j=!1}f=fp.prototype;f.yj=function(a){return this.b[a]};f.Ui=function(a){return this.g[a]/this.k};f.Bm=function(a){return a+1<this.ea||this.j?(this.g[a+1]-this.g[a])/this.k:-1};f.Fs=function(){return 0};f.kc=function(){return this.ea-1};f.yf=function(){return this.j?this.g[this.ea]/this.k:NaN};f.gn=function(){return 0};f.vs=function(){return""};
f.Ln=function(a){a=Ab(this.g.subarray(0,this.ea),a*this.k);return 0<=a?a:Math.max(0,-a-2)};f.tn=function(){return 0<=this.kc()};function gp(a){if(a.b.length<a.ea+1){var b=2*a.b.length,b=b+2,c=a.b;a.b=new Float64Array(b+1);var d=a.g;a.g=new Float64Array(b+1);for(b=0;b<a.ea+1;b++)a.b[b]=c[b],a.g[b]=d[b]}}function hp(a,b){this.g=a;this.b=0;this.j=b||0}function ip(a){for(var b=jp(a,!1);236==b;)kp(a),b=jp(a,!1);return b}
function lp(a){var b=jp(a,!0),c=a.g.byteOffset+a.b,d=Math.min(b,a.g.buffer.byteLength-c),c=new DataView(a.g.buffer,c,d),c=new hp(c,a.j+a.b);a.b+=b;return c}function mp(a){for(var b=jp(a,!0),c=np(a),d=1;d<b;d++)c=(c<<8)+np(a);return c}function kp(a){var b=jp(a,!0);a.b+=b}function jp(a,b){var c=np(a);if(1==c){for(var d=c=0;7>d;d++)c=256*c+np(a);return c}for(var e=128,d=0;6>d&&e>c;d++)c=256*c+np(a),e*=128;return b?c-e:c}function np(a){return a.g.getUint8(a.b++)};function op(a,b,c,d,e){Io.call(this,a,b);this.C=c;this.B=d;this.k=null;this.index=new fp;this.g=e}w(op,Io);f=op.prototype;f.mc=function(){return!(!this.b||!this.index.tn())};f.Hr=function(a){var b=new Jo(1,this,this.C),c=new Jo(2,this,this.B),d=[],e=[b];Lo(b,c)?e.push(c):(d.push(new Po([c])),a=0);isNaN(this.g)?a=0:a>this.g&&(a=this.g);b=e[e.length-1];c=b.Z.end-e[0].Z.start+1;a>c&&(a=wo(b.Z.end+1,a-c),e.push(new Jo(4,this,a)));d.push(new Po(e));return d};
f.Pp=function(a){if(1==a.info.type){if(this.b)return;this.b=new Uint8Array(a.buffer,a.Z.start,a.Z.length)}else if(2==a.info.type){if(this.k||0<=this.index.kc())return;if(1==this.info.g){var b=this.index,c=Wo(a),d=a.info.Z.start;a=0;var e=c.getUint32(0,!1),g=c.getUint8(a+8);a+=12;var h=c.getUint32(a+4,!1);b.k=h;a+=8;0==g?(g=c.getUint32(a,!1),h=c.getUint32(a+4,!1),a+=8):(g=(c.getUint32(a,!1)<<32)+c.getUint32(a+4,!1),h=(c.getUint32(a+8,!1)<<32)+c.getUint32(a+12,!1),a+=16);b.b[0]=h+(e+d);b.g[0]=g;b.j=
!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.ea++;gp(g);g.b[g.ea]=g.b[g.ea-1]+k;g.g[g.ea]=g.g[g.ea-1]+h}}else this.k=Wo(a)}if(lo(this.info)&&this.b&&this.k){c=new DataView(this.b.buffer,this.b.byteOffset,this.b.byteLength);b=this.index;g=this.k;c=new hp(c);if(440786851==ip(c)&&(kp(c),408125543==ip(c))){d=c;e=d.b;a=jp(d,!0);d.b=e;for(var c=lp(c),d=c.j+c.b,l=ip(c);357149030!=l;)kp(c),l=ip(c);c=lp(c);h=1E6;k=1E9;for(e=0;!(c.b>=c.g.byteLength);)if(l=
ip(c),2807729==l)h=mp(c);else if(2807730==l)k=mp(c);else if(17545==l){var e=c,l=jp(e,!0),q=0;4==l?q=e.g.getFloat32(e.b):8==l&&(q=e.g.getFloat64(e.b));e.b+=l;e=q}else kp(c);b.k=k/h;c=new hp(g);if(475249515==ip(c)){for(c=lp(c);!(c.b>=c.g.byteLength);)if(l=ip(c),187==l){g=lp(c);h=d;if(179!=ip(g))k=null;else if(k=mp(g),183!=ip(g))k=null;else{g=lp(g);for(l=h;!(g.b>=g.g.byteLength);)241==ip(g)?l=mp(g)+h:kp(g);k=[l,k]}g=b;h=k[0];k=k[1];gp(g);g.b[g.ea]=h;g.g[g.ea]=k;g.ea++}else kp(c);c=a+d;a=e;gp(b);b.j=
!0;b.g[b.ea]=a;b.b[b.ea]=c}}this.k=null}};function Oo(a,b,c,d){for(var e=[];b<=a.index.kc();b++){var g;g=a.index;var h=b;g=wo(g.yj(h),h+1<g.ea||g.j?g.b[h+1]-g.b[h]:-1);var h=a.index.Ui(b),k=a.index.Bm(b),l=Math.max(0,c-g.start),q=Math.min(g.end+1,c+d)-(g.start+l);e.push(new Jo(3,a,g,b,h,k,l,q,b==a.index.kc()&&l+q==g.length));if(g.start+l+q>=c+d)break}return new Po(e)}
f.Aq=function(a){for(var b=this.Gi(a.info),c=[],d=a.b,e=0;e<b.length;e++){var g=wo(b[e].Z.start+b[e].j-a.info.Z.start+a.Z.start,b[e].g);c.push(new cp(b[e],a.buffer,g,d));d=!1}return c};f.Gi=function(a){for(var b=0;b<this.index.kc()&&a.Z.start>=this.index.yj(b+1);)b++;return Oo(this,b,a.Z.start,a.Z.length).b};f.zg=function(a){return this.mc()?!0:isNaN(this.g)?!1:a.Z.end+1<this.g};f.xi=function(a,b){var c=this.index.Ln(a);b&&(c=Math.min(this.index.kc(),c+1));return Oo(this,c,this.index.yj(c),0)};
f.Ol=function(){var a;if(a=this.mc()&&!isNaN(this.g))a=this.index,a=(a.j?a.b[a.ea]:-1)!=this.g;return a};f.Fl=function(){return!0};function pp(a){this.A=this.duration=0;this.g=!1;this.B=v();this.o=Infinity;this.b={};this.D=a||"";this.j=this.k=!1}function qp(a){return Ob(a.b,function(a){return!!a.info.o},a)}var rp=/PT(([0-9]*)H)?(([0-9]*)M)?(([0-9.]*)S)?/;
function sp(a,b){var c=new pp;z(a,function(a){var e=a.type,g=a.itag,h=null;oo(e)&&(h=a.size.split("x"),h=new ro(parseInt(h[0],10),parseInt(h[1],10)));var k=null,l=null;if(no(e)){var k=new io,q=a.lang,r=a.acont;q&&r&&(l=a.name,g=g+":"+q+":"+r,l=new po(l,0,r))}var q=parseInt(a.bitrate,10)/8,t=null;b&&a.drm_families&&(t={},z(a.drm_families.split(","),function(a){t[a]=b[a]}));e=new ko(g,e,k,h,l,t,q);h=vo(a.init);k=vo(a.index);l=tp(a.url,e,a.s);a=parseInt(a.clen,10);l&&(c.b[g]=new op(l,e,h,k,a))});return c}
function up(a){if(!a)return 0;var b=rp.exec(a);return b?3600*parseFloat(b[2]||0)+60*parseFloat(b[4]||0)+parseFloat(b[6]||0):parseFloat(a)}function vp(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 wp(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 tp(a,b,c){if(!df(a))return"";var d={alr:"yes",ratebypass:"yes"};xo(a,"mime")||(d.mime=encodeURIComponent(b.mimeType.split(";")[0]));c&&(d.signature=ho(c));return Ao(a,d)}
function xp(a){var b=vp(a,"id");"captions"==b&&(b=vp(a,"lang"));var c=vp(a,"mimeType"),d=vp(a,"codecs"),c=d?c+'; codecs="'+d+'"':c,d=parseInt(vp(a,"bandwidth"),10)/8,e=null;oo(c)&&(e=new ro(parseInt(vp(a,"width"),10),parseInt(vp(a,"height"),10)));var g=null,h=null;if(no(c)){g=new io;var h=vp(a,"lang")||"",k=wp(a,"Role");if(k){var k=vp(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 po(b,
0,l):null}else h=null}k=null;if(a=wp(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 ko(b,c,g,e,h,k,d)}function yp(a,b,c,d){a.k=!0;a={format:"RAW",method:"GET",vb:u(a.C,a,c,d||null)};Hi(b,a)}
pp.prototype.C=function(a,b,c){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)for(this.o=1E3*up(vp(c,"minimumUpdatePeriod"))||Infinity,this.g=Infinity>this.o,this.j=!0,this.A=parseInt(vp(c,"yt:earliestMediaSequence"),10),c=0;c<b.length;c++){var d=xp(b[c]);if(!this.b[d.id]){var e=tp(wp(b[c],"BaseURL").textContent,d),g=wp(b[c],
"Initialization"),h=vp(g,"sourceURL"),g=vo(vp(g,"range"));this.b[d.id]=new To(e,d,h,null===g?void 0:g)}var h=wp(b[c],"SegmentList"),k=wp(h,"SegmentTimeline"),e=k.getElementsByTagName("S"),h=h.getElementsByTagName("SegmentURL");g=this.g?(g=vp(k,"start"))?up(g):0:0;var l;if(this.g){l=parseInt(vp(k,"startNumber"),10)||0;var q=parseInt(vp(k,"yt:earliestMediaSequence"),10);l<q&&(l=q)}else l=0;for(var k=parseInt(vp(k,"timescale"),10)||1,q=[],r=0;r<h.length;r++){var t;t=l+r;var y=g,D=k,M=h[r],D=parseFloat(e[r].getAttribute("d"))/
D,ea=M.getAttribute("media"),kb=null,M=M.getAttribute("mediaRange");null!=M&&(0<=parseInt(M.split("-")[1],10)?kb=vo(M):ea=ea+"?range="+M);t=new Bo(t,y,D,ea,kb);q.push(t);g+=t.duration}this.b[d.id].update(q,this.g,this.A)}else i:for(this.duration=up(vp(c,"mediaPresentationDuration")),c=0;c<b.length;c++){g=b[c];d=xp(g);h=wp(g,"BaseURL");e=tp(h.textContent,d);l=wp(g,"SegmentBase");g=vo(l.attributes.indexRange.value);l=vo(l.getElementsByTagName("Initialization")[0].attributes.range.value);h=parseInt(h.getAttribute("yt:contentLength"),
10);d=new op(e,d,l,g,h);if(!d)break i;this.b[d.info.id]=d}this.B=v();a&&a(this)}else b&&b(c);this.k=!1};function zp(a){for(var b in a.b)if(a.b[b].index)return a.b[b].index.yf();return NaN}function Ap(a){for(var b in a.b)if(a.b[b].index)return a.b[b].index.gn();return 0}function Bp(a,b){Nb(a.b,function(a){a=a.A;a.b=Ao(a.b,b)})};function Cp(a,b){this.id=a;this.name=b}Cp.prototype.toString=function(){return this.name};function Dp(a,b,c){this.g=a||0;this.b=b||0;this.j=c}Dp.prototype.equals=function(a){return this.g==a.g&&this.b==a.b&&this.j==a.j};function Ep(a,b,c){return new Dp(qo[a]||0,qo[b]||0,c)}var Fp=Ep("auto","large",!1),Gp=Ep("auto","auto",!1);function Hp(a){var b=qo.auto;return a.g==b&&a.b==b}function Ip(a){return a.j&&!!a.g&&a.g==a.b}
function Jp(a,b){if(b.j&&Hp(b))return Gp;if(b.j||Hp(a))return b;if(a.j||Hp(b))return a;var c=a.g&&b.g?Math.max(a.g,b.g):a.g||b.g,d=a.b&&b.b?Math.min(a.b,b.b):a.b||b.b,c=Math.min(c,d);return c==a.g&&d==a.b?a:new Dp(c,d,!1)}function Kp(a){var b=a.b||a.g;return Wb(function(a){return qo[a]==b})||"auto"}Dp.prototype.k=function(a){if(!a.video)return!1;a=qo[a.video.b];return this.g<=a&&(!this.b||this.b>=a)};function Lp(a,b){this.g=a;this.b=b||null}function Mp(a,b){var c=b||Gp,c=hb(a.g,u(c.k,c)),c=A(c,function(a){return a.video.b});zb(c);return c}function Np(a){if(!a.b)return[];var b=[];z(a.b,function(a){a.k&&b.push(new Cp(a.id,a.k.name))});zb(b);return b};function Op(a,b,c,d,e,g,h,k,l){this.k={};this.B=a;this.D=b;this.g=c;this.b=d;this.j=e;this.C=g;this.o=h;this.A=k;this.F=l}function Pp(a,b){var c=a.C,c=c.replace("$N",a.o),c=c.replace("$L",a.F.toString()),c=c.replace("$M",b.toString());a.A&&(c=Yd(c,{sigh:a.A}));return c}function Qp(a,b){var c=Math.floor(b/(a.b*a.j)),d=a.b*a.j,e=b%d,g=e%a.b,e=Math.floor(e/a.b),h=a.j,k=a.g-d*c;k<d&&(h=Math.ceil(k/a.b));return{url:Pp(a,c),ly:g,dj:a.b,row:e,rows:h,wq:a.B*a.b,uq:a.D*h}};function Rp(a){var b=[];a=a.split("|");for(var c=a[0],d,e,g,h,k,l,q,r,t=1;t<a.length;t++)d=a[t].split("#"),e=t-1,g=parseInt(d[0],10),h=parseInt(d[1],10),180<=h||(k=parseInt(d[2],10),l=parseInt(d[3],10),q=parseInt(d[4],10),r=d[6],d=d[7],b.push(new Op(g,h,k,l,q,c,r,d,e)));this.b=b;this.g={};1<this.b.length&&-1!=this.b[0].o.indexOf("default")&&this.b.splice(0,1)}function Sp(a,b){var c=a.b[0].g-1;return Ib(Math.round(c*b),0,c)}
function Tp(a,b){var c=a.g[b];if(c)return c;for(var c=a.b.length,d=0;d<c;d++)if(a.b[d].B>=b)return a.g[b]=d;a.g[b]=c-1;return c-1};var Up={0:"MONO",1:"LEFT_RIGHT",2:"RIGHT_LEFT",3:"TOP_BOTTOM",4:"BOTTOM_TOP"};var Vp={nI:1,oI:2,pI:3};var Wp;var Xp=fc,Xp=Xp.toLowerCase();if(Ma(Xp,"android")){var Yp=Xp.match(/android\D*(\d\.\d)[^\;|\)]*[\;\)]/);if(Yp)Wp=Number(Yp[1]);else{var Zp={cupcake:1.5,donut:1.6,eclair:2,froyo:2.2,gingerbread:2.3,honeycomb:3,"ice cream sandwich":4,jellybean:4.1},$p=Xp.match("("+Tb(Zp).join("|")+")");Wp=$p?Zp[$p[0]]:0}}else Wp=void 0;var aq,bq;function cq(){var a=p("yt.player.utils.videoElement_");a||(a=document.createElement("video"),ba("yt.player.utils.videoElement_",a,void 0));return a}function dq(){if(2.2==Wp)return!0;var a=cq();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 eq(){var a=I("div",{"class":"html5-player-css-loaded"});document.body.appendChild(a);var b="none"==Jf(a,"display");ed(a);return b};function fq(){var a;if(void 0==aq&&(aq=!1,window.crypto&&window.crypto.getRandomValues))try{a=new Uint8Array(1),window.crypto.getRandomValues(a),aq=!0}catch(b){}if(aq){a=Array(16);var 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=v(),e=0;e<d%23;e++)a[c]=Math.random();a[c]=Math.floor(256*Math.random())}return a}
function gq(){for(var a=fq(),b=[],c=0;c<a.length;c++)b.push("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-_".charAt(a[c]&63));return b.join("")}function hq(){return A(fq(),function(a){return(a&15).toString(16)}).join("")};function iq(a,b,c){b={cpn:b};c&&(b.ibw="1369843");return{url:Yd(a,b),type:"application/x-mpegURL",quality:"auto",itag:"93"}};function jq(a,b){return void 0==b?a:"1"==b?!0:!1}function kq(a,b,c){for(var d in c)if(c[d]==b)return c[d];return a}function lq(a,b){return void 0==b?a:Number(b)}function mq(a,b){return void 0==b?a:b.toString()}function nq(a,b){var c=mq(a,b);c&&(c=gf(c));return c}var oq=/^([0-9\.]+)\:([0-9\.]+)$/;function pq(a){if(a&&(a=a.match(oq))){var b=parseFloat(a[2]);if(0<b)return parseFloat(a[1])/b}return NaN}function qq(a,b){var c=qo.auto,d=qo[b];return d>=qo.medium?new Dp(d,c,!1):d>=c?new Dp(c,d,!1):a};var rq,sq=window.performance||window.mozPerformance||window.msPerformance||window.webkitPerformance||{},tq=u(sq.clearResourceTimings||sq.webkitClearResourceTimings||sq.mozClearResourceTimings||sq.msClearResourceTimings||sq.oClearResourceTimings||ca,sq),uq=sq.mark?function(a){sq.mark(a)}:ca;function vq(a,b,c){wq(c).tick[a]=b||v();b||uq(a)}function xq(a,b){var c=wq(b).tick;return a in c}
var zq="https:"===window.location.protocol&&ka(sq.getEntriesByType)?function(a){var b={};sq.getEntriesByType("resource").forEach(function(a){if(0===a.name.indexOf("https://s.ytimg.com/yts/")){var d=yq[a.initiatorType];if(d&&d.extension.test(a.name)){var e=d.Rj,d=e+"t",e=e+"c";void 0===b[d]&&(b[d]=0,b[e]=0);b[d]++;0!==a.responseStart&&a.responseStart!==a.requestStart||b[e]++}}});Object.keys(b).forEach(function(c){a["cs"+c]=b[c]})}:ca;
function Aq(a){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];mf(b+"?"+c.substring(1))}function Bq(a){return wq(a).info}function wq(a){return p("ytcsi."+(a||"")+"data_")||Cq(a)}function Cq(a){var b={tick:{},span:{},info:{}};ba("ytcsi."+(a||"")+"data_",b,void 0);return b}var yq={link:{Rj:"c",extension:/\.css$/},script:{Rj:"j",extension:/\.js$/},css:{Rj:"s",extension:/\.(?:webp|png)$/},"":{Rj:"f",extension:/\.swf$/}};var Dq,Eq;var Fq=fc,Gq=Fq.match(/\((iPad|iPhone|iPod)( Simulator)?;/);if(!Gq||2>Gq.length)Dq=void 0;else{var Hq=Fq.match(/\((iPad|iPhone|iPod)( Simulator)?; (U; )?CPU (iPhone )?OS (\d_\d)[_ ]/);Dq=Hq&&6==Hq.length?Number(Hq[5].replace("_",".")):0}(Eq=0<=Dq)&&0<=fc.search("Safari")&&fc.search("Version");var Iq={jI:0,tH:1,ZH:2};function Jq(a,b,c){c=c||{};Ni(c.Sa,c.Za,u(Kq,m,a,b,c),c.onError)}
function Kq(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.yb;c.La&&(d.list=c.La);c.Sa&&(d.authuser=c.Sa);c.Za&&(d.pageid=c.Za);a={screen:Wd({h:screen.height,w:screen.width,d:screen.colorDepth}),session_token:Se("XSRF_TOKEN")};c.oD&&(a.station_id=c.oD);Hi("/watch_actions_ajax",{format:"XML",method:"POST",Gh:d,fd:a,onSuccess:c.onSuccess,onError:c.onError,vb:c.vb})};var Lq=[.25,.5,1,1.25,1.5,2];function Mq(a){this.b=(a||"").split(",");var b={};z(this.b,function(a){b[a]=!0});this.Ba=!!b["925900"];this.D=!!b["913424"];this.B=!!b["932250"];this.wa=!!b["945000"];this.rb=!!b["945004"];this.N=!!b["945005"];this.aa=!!b["945025"];this.T=!!b["945035"];this.I=!!b["945042"];this.O=!!b["945045"];this.M=!!b["945056"];this.xa=!!b["945058"];this.la=!!b["945059"];this.pa=!!b["945060"];this.Uc=!!b["945062"];this.za=!!b["945063"];this.Fa=!!b["945064"];this.ca=!!b["927845"];this.P=!!b["936926"];this.C=!!b["913430"];
this.o=!(!b["926301"]&&!b["926305"]);this.j=!!b["926304"];this.g=!!(b["931959"]||b["931960"]||b["931961"]||b["931962"]||b["931963"]||b["931973"]||b["931974"]||b["931979"]||b["931981"]);this.V=!(!b["931974"]&&!b["931960"]);this.F=!!b["931972"];this.k=!!b["907252"];this.ka=!!b["927877"];this.U=!!b["943602"];this.L=!!b["907253"];this.da=!!b["939937"];this.A=!(!b["924220"]&&!b["924222"]);this.Ca=!!b["931436"]};function Nq(a,b){this.b=a;this.g=b}Nq.prototype.clone=function(){return new Nq(this.b,this.g)};function Oq(a){this.b=[];if(a)t:{var b,c;if(a instanceof Oq){if(b=a.Ma(),c=a.Qa(),0>=a.Na()){a=this.b;for(var d=0;d<b.length;d++)a.push(new Nq(b[d],c[d]));break t}}else b=Tb(a),c=Sb(a);for(d=0;d<b.length;d++)Pq(this,b[d],c[d])}}function Pq(a,b,c){var d=a.b;d.push(new Nq(b,c));b=d.length-1;a=a.b;for(c=a[b];0<b;)if(d=b-1>>1,a[d].b>c.b)a[b]=a[d],b=d;else break;a[b]=c}f=Oq.prototype;
f.remove=function(){var a=this.b,b=a.length,c=a[0];if(!(0>=b)){if(1==b)pb(a);else{a[0]=a.pop();for(var a=0,b=this.b,d=b.length,e=b[a];a<d>>1;){var g=2*a+1,h=2*a+2,g=h<d&&b[h].b<b[g].b?h:g;if(b[g].b>e.b)break;b[a]=b[g];a=g}b[a]=e}return c.g}};f.Qa=function(){for(var a=this.b,b=[],c=a.length,d=0;d<c;d++)b.push(a[d].g);return b};f.Ma=function(){for(var a=this.b,b=[],c=a.length,d=0;d<c;d++)b.push(a[d].b);return b};f.eg=function(a){return jb(this.b,function(b){return b.g==a})};f.clone=function(){return new Oq(this)};
f.Na=function(){return this.b.length};f.isEmpty=function(){return E(this.b)};f.clear=function(){pb(this.b)};function Qq(){Oq.call(this)}w(Qq,Oq);function Rq(a,b){aj.call(this);this.b=a;this.j=new Qq;this.o={};this.k=b||""}w(Rq,aj);Rq.prototype.g=!1;function Sq(a,b,c){var d;for(c=Tp(a.b,c);0<=c;){d=a.b.b[c];if(d=d.k[Math.floor(b/(d.b*d.j))]?Qp(d,b):null)return d;c--}return Qp(a.b.b[0],b)}function Tq(a){if(!a.g)if(a.j.isEmpty())a.g=!1;else{a.g=!0;var b=a.j.remove(),c=new Image;a.k&&(c.crossOrigin=a.k);c.src=Pp(a.b.b[b.Dp],b.Ep);c.onload=u(a.A,a,b.Dp,b.Ep)}}
Rq.prototype.A=function(a,b){this.g=!1;var c=this.b.b[a];c.k[b]=!0;Tq(this);var d,e=c.b*c.j;d=b*e;c=Math.min(d+e-1,c.g-1);d=[d,c];this.H("l",d[0],d[1])};function Uq(a,b,c){this.g=a;this.b=b;this.j=c}var Vq={playready:["com.youtube.playready","com.microsoft.playready"],widevine:["com.widevine.alpha"],clearkey:["org.w3.clearkey","webkit-org.w3.clearkey"]},Wq=["widevine","playready"];function Xq(){var a=window.MediaKeys||window.MSMediaKeys;return a&&a.isTypeSupported?a:null}
function Yq(a,b,c){var d,e=Xq();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<Wq.length;g++){var h=Wq[g];if(c[h])for(var k=Vq[h],l=0;l<k.length;l++){var q=k[l];if(d(b,q)||0==b.indexOf("audio/mp4")&&"widevine"==h&&a.canPlayType(b)&&a.canPlayType('video/mp4; codecs="avc1"',q))return new Uq(h,q,c[h])}}return null};function Zq(a,b){this.b=a;this.j=b;this.k=0;Object.defineProperty(this,"timestampOffset",{get:this.mA,set:this.nA});Object.defineProperty(this,"buffered",{get:this.lA})}f=Zq.prototype;f.append=function(a){this.b.webkitSourceAppend(this.j,a)};f.abort=function(){this.b.webkitSourceAbort(this.j)};f.lA=function(){return this.b.webkitSourceState==this.b.SOURCE_CLOSED?new $q:this.b.webkitSourceBuffered(this.j)};f.mA=function(){return this.k};
f.nA=function(a){this.k=a;this.b.webkitSourceTimestampOffset(this.j,a)};function $q(){this.length=0};function ar(a){this.activeSourceBuffers=this.sourceBuffers=[];this.b=a;this.g=NaN;this.j=0;Object.defineProperty(this,"duration",{get:this.Mz,set:this.Pz});Object.defineProperty(this,"readyState",{get:this.Nz});this.b.addEventListener("webkitsourceclose",u(this.Oz,this),!0)}f=ar.prototype;f.addEventListener=function(a,b,c){this.b.addEventListener(a,b,c)};f.hB=function(){return this.b.webkitMediaSourceURL};
f.addSourceBuffer=function(a){var b=(this.j++).toString();this.b.webkitSourceAddId(b,a);a=new Zq(this.b,b);this.sourceBuffers.push(a);return a};f.Nz=function(){switch(this.b.webkitSourceState){case this.b.SOURCE_CLOSED:return"closed";case this.b.SOURCE_OPEN:return"open";case this.b.SOURCE_ENDED:return"ended"}return""};f.endOfStream=function(a){var b=this.b.EOS_NO_ERROR;"network"==a?b=this.b.EOS_NETWORK_ERR:"decode"==a&&(b=this.b.EOS_DECODE_ERR);this.b.webkitSourceEndOfStream(b)};f.Oz=function(){pb(this.sourceBuffers)};
f.Mz=function(){return this.g};f.Pz=function(a){this.g=a;this.b.webkitSourceSetDuration&&this.b.webkitSourceSetDuration(a)};function br(a){this.k=[];this.F=a||null}function cr(a,b,c,d){for(var e=0;e<c.length;e++)a.listen(b,c[e],d)}br.prototype.listen=function(a,b,c){c=u(c,this.F||this);a.addEventListener(b,c,!1);this.k.push(a,b,c)};br.prototype.removeAll=function(){if(this.k)for(;this.k.length;){var a=this.k.shift(),b=this.k.shift(),c=this.k.shift();a.removeEventListener&&a.removeEventListener(b,c)}};br.prototype.fa=function(){return null===this.k};br.prototype.dispose=function(){this.removeAll();this.k=null};function dr(a,b,c,d){br.call(this);this.g=this.b=null;this.A=b;this.j=window.MediaSource?new window.MediaSource:window.WebKitMediaSource?new window.WebKitMediaSource:new ar(a);this.o="";this.B=null;cr(this,this.j,["sourceopen","webkitsourceopen"],ra(this.D,d,c));cr(this,this.j,["sourceclose","webkitsourceclose"],this.C)}w(dr,br);function er(a,b){a.B=b}function fr(a){if(!a.o){var b;b=a.j;b=b.hB?b.b.webkitMediaSourceURL:window.URL.createObjectURL(b);a.o=b}return a.o}
dr.prototype.vf=function(a){gr(this)?this.j.duration=a:this.A=a};function gr(a){return"open"==a.j.readyState}function hr(a){return"closed"==a.j.readyState}function ir(a){return a.b.updating||a.g.updating}function jr(a){return a.b?!!a.b.appendBuffer:!(!window.MediaSource||!window.MediaSource.isTypeSupported)}dr.prototype.D=function(a,b){isNaN(this.A)||(this.j.duration=this.A,this.A=NaN,this.b=this.j.addSourceBuffer(a),this.g=this.j.addSourceBuffer(b),this.B&&(this.B(this),this.B=null))};
dr.prototype.C=function(){this.dispose()};dr.prototype.dispose=function(){var a=this.o;if(a)try{window.URL.revokeObjectURL(a)}catch(b){}this.o="";dr.G.dispose.call(this)};function kr(a){if(window.MediaSource&&window.MediaSource.isTypeSupported)return window.MediaSource.isTypeSupported(a);if('video/webm; codecs="vp9"'==a)return!1;'audio/mp4; codecs="mp4a.40.2"'==a&&(a='video/mp4; codecs="avc1.4d401f"');return!!cq().canPlayType(a)};var lr=kh||lh;function mr(){return nr("(ps3; leanback shell)")}function nr(a){var b=fc;return b?0<=b.toLowerCase().indexOf(a.toLowerCase()):!1};function or(a,b,c,d){this.b=c;this.j=a;this.o=d||"";this.k=b;this.g={}}function pr(a){if(a.b)a=a.j;else if(a.k){var b=we(new J(a.j),"id"),b="http://www.youtube.com/api/manifest/t2b/source/youtube/id/"+encodeURIComponent(b),b=b+("/itag/"+a.o),b=b+"/mfmt/amf";a=he(new J(Yd(a.j,a.g)),b).toString()}else a=Yd(a.j,a.g);return a};function qr(a,b){this.b=new or(a,b.id in rr&&mr(),!1,b.id);this.Xf=b}var sr="9h8(H*".split(""),tr="h98(H*".split(""),ur=["M","a","v","A","V"];qr.prototype.getInfo=function(){return this.Xf};qr.prototype.In=function(){return this.Xf.video.b};var vr={'video/mp4; codecs="avc1.42001E, mp4a.40.2"':"maybe"},wr={"application/x-mpegURL":"maybe"},xr={"application/x-mpegURL":"maybe"};
function yr(a,b){if(!dq())return[];var c=zr(a,b);a=!c.length&&b?zr(a,!1):c;for(var d={},c=cq(),e=0;e<a.length;e++){var g=a[e];if(Ar(c,g.getInfo().mimeType)&&!(g.Xf.id in Br||mr()&&"5"==g.Xf.id)){var h=g.In();if(!d[h]||lo(d[h].getInfo()))d[h]=g}}var k=[];z(so,function(a){(g=d[a])&&k.push(g)});return k}function Ar(a,b){var c;if(!(c=a.canPlayType(b))){var d;lh?d=xr[b]:2.2==Wp?d=vr[b]:nr("android")&&nr("chrome")&&(d=wr[b]);c=d||""}return c}
function Cr(){return nr("android")&&nr("chrome")&&!Bc(29)?!1:!!(window.MediaSource||window.WebKitMediaSource||window.HTMLMediaElement&&HTMLMediaElement.prototype.webkitSourceAddId)}var rr={5:!0,34:!0,35:!0},Br={52:!0,53:!0,54:!0,55:!0,60:!0,79:!0,87:!0};function Dr(a){var b=[];z(a,function(a){a.url&&b.push(Er(a.url,a.type,"medium","0"))});return b}
function Er(a,b,c,d,e){var g=new io,h=to[c];h||(c="small",h=to.small);c=new ro(h[0],h[1],e?-1:0,c);b=unescape(b.replace(/&quot;/g,'"'));return new qr(a,new ko(d,b,g,c))}function zr(a,b){for(var c=[],d=0;d<a.length;d++){var e=a[d],g;if(g=rc&&0!=e.Xf.video.g)g=1==e.getInfo().g;g||0!=e.Xf.video.g==b&&c.push(e)}return c}
function Fr(a,b){for(var c=[],d=0;d<a.length;d++){var e=a[d];if(e.sig||e.s){var g=e.sig||ho(e.s);e.url=Ai(e.url,{signature:g})}e.url&&c.push(Er(e.url,e.type,e.quality,e.itag,e.stereo3d))}return yr(c,!!b)}function Gr(a){a=Dr(a);return yr(a,!1)}function Hr(a,b){if(!b.b)return a[0];for(var c=0;c<a.length;c++){var d=a[c].getInfo();if(qo[d.video.b]<=b.b)return a[c]}return a[a.length-1]}
function Ir(a){function b(a){return!!c[a]}var c={},d,e;for(e in a.b){var g=a.b[e];if(kr(g.info.mimeType)){if(g.info.o){d||(d=cq());if(!Yq(d,g.info.mimeType,g.info.o))continue;if(261==g.info.id&&(mr()||!d.canPlayType('audio/mp4; codecs="aac51"',"com.widevine.alpha")))continue}c[g.info.j]=c[g.info.j]||[];c[g.info.j].push(g.info)}}a=sr;if(nr("cros armv7")||nr("windows nt 5.1"))a=tr;d=B(a,b);a=B(ur,b);if(!d||!a)return null;"9"==d&&c.h&&(e=function(a,b){return Math.max(a,b.video.height)},g=ib(c["9"],e,
0),ib(c.h,e,0)>1.5*g&&(d="h"));d=c[d];a=c[a];Cb(d,function(a,b){return b.video.width-a.video.width||b.ra-a.ra});Cb(a,function(a,b){return b.ra-a.ra});return new Lp(d,a)};function Jr(a){aj.call(this);this.Wa=new G(0,0);this.ka=!1;this.D=[];this.k={};this.Fa={};this.o={};Kr(this,a)}w(Jr,aj);Jr.A=/\/img\/watermark\/youtube_(hd_)?watermark(-vfl\S{6})?.png$/;Jr.b=1;Jr.j=-21;Jr.o=18E3;Jr.k="author cc_asr cc_load_policy iv_load_policy iv_new_window keywords 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(" ");
Jr.g=["www.youtube.com","manifest.googlevideo.com"];f=Jr.prototype;f.ga=!1;f.Lm="";f.ir=null;f.gq=!0;f.ob=!1;f.Rm="";f.Qm="";f.Vk=!1;f.fq=Jr.b;f.Oh=null;f.Fo=null;f.th="";f.jg=0;f.Tl=!1;f.Un=3;f.hr=!1;f.Lf="";f.Da="";f.pe=0;f.qk=!1;f.Th=!1;f.lk=!1;f.xf=0;f.Ke=!1;f.gp=!1;f.Mh=0;f.lg=!1;f.Vn=!0;f.dk=!1;f.xm=!1;f.am=!1;f.eb=!1;f.ym=!1;f.Xl=!1;f.qe=!1;f.Xo=!1;f.zm=!1;f.ev=0;f.Oa=0;f.Tj=0;f.Bs=!1;f.Dm="";f.zs=!1;f.ak=!1;f.bm=Gp;f.Eo=0;f.rk=!1;f.Ta=0;f.Sj=null;f.dm=2;f.sf=Gp;f.Pr=!1;f.Kf=!1;f.se=null;
f.title="";f.te="";f.Cn=null;f.Vj="vvt";f.Cs=!1;f.Wn=!1;f.clipStart=0;f.clipEnd=Infinity;
function Lr(a,b){var c=b||{};c.iv_invideo_url&&(a.Rm=gf(c.iv_invideo_url));c.iv_cta_url&&(a.Qm=gf(c.iv_cta_url));c.cta_conversion_urls&&(a.nb=c.cta_conversion_urls);a.th=mq(a.th,c.author);a.Tl=jq(a.Tl,c.cc_asr);var d=c.ttsurl||a.Lf;d&&bf(d)?a.Lf=d:a.Lf=nq(a.Lf,c.ttsurl);a.Da=mq(a.Da,c.cpn);a.I=mq(a.I,c.subscribed);a.dm=kq(a.dm,c.sentiment,Iq);a.title=mq(a.title,c.title);a.za=mq(a.za,c.ypc_preview);a.Bs=jq(a.Bs,c.paygated);a.Cs=jq(a.Cs,c.requires_purchase);c.keywords&&(a.Fa=Mr(c.keywords));c.rvs&&
(a.da=Nr(c.rvs));c.poster&&(a.Dm=c.poster);z(Jr.k,function(a){a in c&&(this.k[a]=c[a])},a)}
function Kr(a,b){var c=b||{};a.ob="1"!=c.hlsdvr||oh||lh&&5>Dq?!1:!0;a.Vk="1"==c.infringe||"1"==c.muted;a.xb=c.authkey;a.Sa=c.authuser;a.Da||(a.Da=c.cpn||gq());a.hx=v();a.Uj=c.t;a.qk=jq(a.qk,c.cenchd);a.Th=jq(a.Th,c.enable_cardio);a.lk=jq(a.lk,c.enable_cardio_before_playback);a.xf=lq(a.xf,c.end||c.endSeconds);a.Vn="1"!=c.no_get_video_log;a.dk="1"==c.tmi;a.xm=jq(a.xm,c.noiba);a.am="1"==c.livemonitor;a.eb="1"==c.live_playback;a.ym=jq(a.ym,c.mdx);a.Xl=jq(a.Xl,c.on3g);a.zm=jq(a.zm,c.utpsa);a.bc=c.iurlmaxres_webp||
c.iurlmaxres;a.B=mq(a.B,c.oauth_token);a.C=mq(a.C,c.vvt);a.Yj=c.osig;a.pd=c.ptchn;a.Ld=c.oid;a.L=c.ptk;a.gf=c.pltype;a.yb=c.plid;a.A=c.eventid;a.cb=c.osid;a.La=mq(a.La,c.list);a.nf=c.pyv_view_beacon_url;a.bk=c.pyv_quartile25_beacon_url;a.$j=c.pyv_quartile50_beacon_url;a.Wj=c.pyv_quartile75_beacon_url;a.Zj=c.pyv_quartile100_beacon_url;a.Dw=c.purchase_id;a.gb=c.sdetail;a.ez=c.sourceid;!a.Ia&&c.session_data&&(a.Ia=ui(c.session_data,"&").feature);a.ac=1==lq(a.ac?1:0,c.is_fling);a.ib=mq(a.ib,c.ctrl);a.hb=
mq(a.hb,c.ytr);a.pf=c.iurlsd_webp||c.iurlsd;a.Wn="1"==c.skip_kansas_logging;a.bm=qq(a.bm,c.vq);a.sf=qq(a.sf,c.suggestedQuality);a.rB=c.approx_threed_layout||0;a.Pr="1"==c.threed_converted;a.wa=c.iurl_webp||c.iurl;a.Ta=lq(a.Ta,c.start||c.startSeconds);a.Nh=jq(a.Nh,c.ssrt);a.videoId=c.docid||c.video_id||c.videoId;a.of=mq(a.of,c.vss_credentials_token);a.Vj=mq(a.Vj,c.vss_credentials_token_type);Or(a,c.watermark);a.mf=mq(a.mf,c.ypc_gid);a.kf=mq(a.kf,c.ypc_license_session_token);if(c.ad3_module||c.ad_module)"1"==
c.allow_html5_ads?(a.ga=!0,"1"==c.ad_preroll&&a.D.push("ad")):"1"!=c.supported_without_ads&&(a.gp=!0);c.adaptive_fmts&&(a.Lm=c.adaptive_fmts);c.license_info&&(a.ir=Pr(c.license_info));c.allow_embed&&(a.gq="1"==c.allow_embed);c.autoplay&&(a.lg="1"==c.autoplay);c.iv_load_policy&&(a.Ba=Qr(c.iv_load_policy,a.Ba));c.cc_load_policy&&(a.Un=Qr(c.cc_load_policy,2));"0"==c.dash&&(a.hr=!0);if(c.dashmpd){a.O=Yd(c.dashmpd,{cpn:a.Da});var d=/\/s\/([0-9A-F.]+)/,e=d.exec(a.O);e&&(e=ho(e[1]),a.O=a.O.replace(d,"/signature/"+
e))}c.delay&&(a.pe=$a(c.delay));c.idpj&&(a.Mh=$a(c.idpj));c.url_encoded_fmt_stream_map&&(a.te=c.url_encoded_fmt_stream_map);c.hlsvp&&(a.U=c.hlsvp);c.length_seconds&&(a.Oa=$a(c.length_seconds));c.ldpj&&(a.Tj=$a(c.ldpj));c.loudness&&(a.jf=c.loudness,a.fq=Rr(a));c.partnerid&&(a.T=$a(c.partnerid));c.probe_url&&(a.lf=hf(Yd(c.probe_url,{cpn:a.Da})));c.pyv_billable_url&&-1!=c.pyv_billable_url.search(Je)&&(a.V=c.pyv_billable_url);c.pyv_conv_url&&-1!=c.pyv_conv_url.search(Je)&&(a.pa=c.pyv_conv_url);c.url_encoded_third_party_media&&
(a.se=Nr(c.url_encoded_third_party_media));c.threed_module&&!c.threed_converted&&(a.xa=c.threed_module,a.Bx=6);if("1"==c.track_embed||c.tk)a.ak=!0;c.two_stage_token&&(a.Oh=c.two_stage_token);c.watch_ajax_token&&(a.Fo=c.watch_ajax_token);c.fresca_preroll&&a.D.push("fresca");c.ypc_module&&a.D.push("ypc");c.ypc_clickwrap_module&&a.D.push("ypc_clickwrap");c.spacecast_address&&(a.D.push("spacecast"),a.Ra=c.spacecast_address);void 0!=c.start&&(a.clipStart=c.start);void 0!=c.end&&(a.clipEnd=c.end);void 0!=
c.atc&&(a.ca=c.atc);a.hf=mq(a.hf,c.ucid);z("baseUrl uid oeid ieid ppe engaged subscribed".split(" "),function(a){c[a]&&(this.o[a]=c[a])},a);a.o.focEnabled=jq(a.o.focEnabled,c.focEnabled);a.o.rmktEnabled=jq(a.o.rmktEnabled,c.rmktEnabled);a.k=c;Lr(a,c);Sr(a)}function Sr(a){(a.eb||a.am)&&"1"==a.k.as3fb||!Cr()||a.hr||(a.Lm?a.j=sp(Tr(a,a.Lm),a.ir):a.O&&(a.Ke=!0,a.ka=!0))}f.Lz=function(a){if(!this.fa()){if(this.j=a)this.Oa=this.j.duration||this.Oa;this.Zl()}};
f.Zl=function(){this.fa()||(this.Ke=!1,this.H("dataloaded",this.k))};function Ur(a){if(!a.fa()){a.g=null;a.P=null;a.F=null;if(a.aa){var b=Tr(a,a.aa);a.F=Fr(b,!1);a.g=new Lp(A(a.F,function(a){return a.getInfo()}))}!a.g&&a.j&&(a.g=Ir(a.j));if(!a.g){if(a.se&&a.Xo)a.F=Gr(a.se);else{b=Tr(a,a.te);if(a.U){var c=iq(a.U,a.Da,!a.Xl);b.push(c)}a.F=Fr(b,!!a.xa||a.Kf)}a.F.length&&(a.g=new Lp(A(a.F,function(a){return a.getInfo()})))}a.Eo=Math.min(.8*a.Oa,180)}}function Vr(a){return a.b&&a.b.o||null}
function Wr(a,b){return s(a.Fa[b])?a.Fa[b]:null}function Xr(a){!a.Cn&&a.k.storyboard_spec&&(a.Cn=new Rp(a.k.storyboard_spec));return a.Cn}function Yr(a){var b=Xr(a);!a.Sj&&b&&(a.Sj=new Rq(b),S(a,a.Sj));return a.Sj}function Zr(a){return!a.fa()&&!(!a.videoId&&!a.se)}function $r(a){return Zr(a)&&!a.Ke&&!a.ka&&(!!(a.j||a.te||a.se||a.aa||a.U)||C(a.D,"fresca")||C(a.D,"ypc"))}function as(a,b){var c={format:"RAW",method:"GET",context:a,onSuccess:a.TD,onError:a.SD};a.Ke=!0;Hi(b,c);vq("vir")}
function Rr(a){return a.jf?(a=Math.min(Jr.j-a.jf,0),Math.pow(10,a/20)):Jr.b}f.TD=function(a){this.fa()||(this.Ke=!1,a=wi(a.responseText),"fail"==a.status?this.H("onStatusFail",a):(vq("virc"),Kr(this,a),this.Zl()))};f.SD=function(){this.fa()||(this.Ke=!1,this.H("onStatusFail",{errorcode:"manifest.net",reason:""}))};function Qr(a,b){var c=parseInt(a,10);return Ub(Vp,c)?c:b}function Nr(a){a=a.split(",");return a=a.map(function(a){return wi(a)})}
function Tr(a,b){var c=Nr(b);z(c,function(a){a.url&&(a.url=Yd(a.url,{cpn:this.Da}))},a);return c}function Mr(a){var b={};z(a.split(","),function(a){var d=a.split("=");2==d.length?b[d[0]]=d[1]:b[a]=!0});return b}function Or(a,b){if(b){var c=b.split(",");2<=c.length&&(a.la=c[1],-1!=a.la.search(Jr.A)&&(a.la=""))}}function Pr(a){a=Nr(a);var b={};z(a,function(a){var d=a.family;a=a.url;d&&a&&(b[d]=a)});return b}function bs(a,b){return!!a.k[b]}function cs(a){return a.eb&&!a.ob}
function ds(a){return a.eb&&a.ob};function es(a,b){this.type=a||"";this.id=b||""}function fs(a){return new es(a.substr(0,2),a.substr(2))}es.prototype.toString=function(){return this.type+this.id};function gs(a){aj.call(this);this.views=0;this.b=[];this.g=[];this.Ha=Math.max(0,a.index||0);this.Pf=!!a.loop;this.Cm=a.startSeconds||0;this.Gq="1"==a.mob;this.title=a.playlist_title||"";this.description=a.playlist_description||"";a.video_id&&(this.b[this.Ha]=a);a.api&&("string"==typeof a.api&&16==a.api.length?a.list="PL"+a.api:a.playlist=a.api);if(a.list)switch(a.listType){case "user_uploads":hs(this,a.list);break;case "user_favorites":is(this,a.list);break;case "search":js(this,a.list);break;default:a.playlist_length&&
(this.tc=a.playlist_length),this.j=fs(a.list),0==a.fetch&&a.videoList?ks(this,a.videoList):ls(this)}else if(a.playlist){var b=a.playlist.toString().split(",");0<this.Ha&&(this.b=[]);z(b,function(a){a&&this.b.push({video_id:a})},this);this.tc=this.b.length;b=A(this.b,function(a){return a.video_id});ms(this,"/list_ajax?style=json&action_get_templist=1",{video_ids:b.join(",")});this.ae=!0}else a.videoList&&ks(this,a.videoList);ns(this,!!a.shuffle)}w(gs,aj);f=gs.prototype;f.Pf=!1;f.Cm=0;f.sr=!1;
f.Ha=0;f.title="";f.tc=0;f.Gq=!1;f.ae=!1;f.Bh=!1;f.Le=null;function os(a){return a.Pf||a.Ha+1<a.tc}function ps(a){if(++a.Ha>=a.tc)if(a.Pf)a.Ha=0;else return null;qs(a,a.Ha);return rs(a,a.Ha)}function ss(a){if(0>--a.Ha)if(a.Pf)a.Ha=a.tc-1;else return null;qs(a,a.Ha);return rs(a,a.Ha)}function rs(a,b){var c=void 0!=b?b:a.Ha,c=a.b&&c in a.b?a.b[a.g[c]]:null,d=null;c&&(d=new Jr(c),d.Ta=a.Cm||d.clipStart||0,a.j&&(d.La=a.j.toString()));return d}
function ns(a,b){a.sr=b;var c=a.g&&null!=a.g[a.Ha]?a.g[a.Ha]:a.Ha;a.g=[];for(var d=0;d<a.b.length;d++)a.g.push(d);a.Ha=c;if(a.sr){c=a.g[a.Ha];for(d=1;d<a.g.length;d++){var e=Math.floor(Math.random()*(d+1)),g=a.g[d];a.g[d]=a.g[e];a.g[e]=g}for(d=0;d<a.g.length;d++)a.g[d]==c&&(a.Ha=d)}a.H("shuffle")}function qs(a,b){a.Ha=Ib(b,0,a.tc-1);a.Cm=0}function hs(a,b){a.Bh||(a.j=new es("UU","PLAYER_"+b),ms(a,"/list_ajax?style=json&action_get_user_uploads_by_user=1",{username:b}))}
function is(a,b){a.Bh||(a.j=new es("FL","PLAYER_"+b),ms(a,"/list_ajax?style=json&action_get_favorited_by_user=1",{username:b}))}function js(a,b){if(!a.Bh){a.j=new es("SR",b);var c={search_query:b};a.Gq&&(c.mob="1");ms(a,"/search_ajax?style=json&embeddable=1",c)}}function ls(a){if(!a.Bh){var b={list:a.j},c=rs(a);c&&c.videoId&&(b.v=c.videoId);ms(a,"/list_ajax?style=json&action_get_list=1",b)}}function ms(a,b,c){Hi(Yd(b,c),{format:"JSON",onSuccess:function(a,b){ts(this,b)},context:a})}
function ts(a,b){if(b.video&&b.video.length){a.title=b.title;a.description=b.description;a.views=b.views;var c=rs(a);a.b=[];z(b.video,function(a){a&&(a.video_id=a.encrypted_id,this.b.push(a))},a);a.tc=a.b.length;us(a,c);ns(a,!1);a.Bh=!1;a.ae=!0;a.Le&&a.Le()}}function ks(a,b){0<a.Ha&&(a.b=[]);z(b,function(a){this.b.push(a)},a);a.tc=a.b.length;a.ae=!0}function us(a,b){if(b){var c=b.videoId;if(!a.b[a.Ha]||a.b[a.Ha].video_id!=c)for(var d=0;d<a.b.length;d++)if(a.b[d].video_id==c){a.Ha=d;break}}}
f.J=function(){this.Le=null;Mh(this.b);gs.G.J.call(this)};function vs(){var a={volume:100,muted:!1},b=qi("yt-player-volume")||{};a.volume=isNaN(b.volume)?100:Ib(b.volume,0,100);a.muted=void 0==b.muted?!1:b.muted;return a};function ws(a,b,c){s(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 xs(a)}function xs(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 ys(a,b){this.app=a;this.g=null;this.k={};this.o={};this.B={};this.A={};this.j=null;this.b=b;V(this,"cueVideoById",this.xv);V(this,"loadVideoById",this.Uk);V(this,"cueVideoByUrl",this.yv);V(this,"loadVideoByUrl",this.Rv);V(this,"playVideo",this.Jg);V(this,"pauseVideo",this.pauseVideo);V(this,"stopVideo",this.Bk);V(this,"clearVideo",this.vv);V(this,"getVideoBytesLoaded",this.Iv);V(this,"getVideoBytesTotal",this.Jv);V(this,"getVideoLoadedFraction",this.yl);V(this,"getVideoStartBytes",this.Lv);
V(this,"cuePlaylist",this.wv);V(this,"loadPlaylist",this.Qv);V(this,"nextVideo",this.Sv);V(this,"previousVideo",this.Tv);V(this,"playVideoAt",this.kp);V(this,"setShuffle",this.$v);V(this,"setLoop",this.Xv);V(this,"getPlaylist",this.ic);V(this,"getPlaylistIndex",this.fp);V(this,"getPlaylistId",this.hp);V(this,"loadModule",this.Pv);V(this,"unloadModule",this.jp);V(this,"setOption",this.ip);V(this,"getOption",this.ki);V(this,"getOptions",this.Ev);V(this,"mute",this.No);V(this,"unMute",this.Oo);V(this,
"isMuted",this.Mo);V(this,"setVolume",this.setVolume);V(this,"getVolume",this.Lo);V(this,"seekTo",this.Kg);V(this,"getPlayerState",this.getPlayerState);V(this,"getPlaybackRate",this.Gv);V(this,"setPlaybackRate",this.Zv);V(this,"getAvailablePlaybackRates",this.Av);V(this,"getPlaybackQuality",this.Fv);V(this,"setPlaybackQuality",this.ep);V(this,"getAvailableQualityLevels",this.Bv);V(this,"getCurrentTime",this.getCurrentTime);V(this,"getDuration",this.ug);V(this,"addEventListener",this.addEventListener);
V(this,"removeEventListener",this.removeEventListener);V(this,"getVideoUrl",this.Mv);V(this,"getDebugText",this.Cv);V(this,"getVideoEmbedCode",this.Kv);V(this,"getVideoData",this.getVideoData);V(this,"addCueRange",this.lp);V(this,"removeCueRange",this.Uv);V(this,"setSize",this.aw);V(this,"getApiInterface",this.zv);V(this,"destroy",this.destroy);V(this,"showVideoInfo",this.bw);V(this,"hideVideoInfo",this.Nv);zs(this,"getInternalApiInterface",this.Dv);zs(this,"getAdState",this.getAdState);zs(this,"isNotServable",
this.Ov);zs(this,"getUpdatedConfigurationData",this.Hv);zs(this,"updateRemoteReceivers",this.cw);zs(this,"sendAbandonmentPing",this.Vv);zs(this,"setAutonav",this.Wv);zs(this,"setMinimized",this.Yv);zs(this,"channelSubscribed",ca);zs(this,"channelUnsubscribed",ca)}w(ys,Ih);function V(a,b,c){a.k[b]=u(c,a)}function zs(a,b,c){a.o[b]=u(c,a)}f=ys.prototype;f.zv=function(){return Tb(this.k)};f.Dv=function(){return Tb(this.o)};f.K=function(){return this.g};
f.addEventListener=function(a,b){var c=b;s(b)&&(c=function(){p(b).apply(window,arguments)},this.B[b]=c);this.app.subscribe(a,c)};f.Du=function(a,b){var c=s(b)?a+b:a+ma(b);if(!this.A[c]){s(b)&&(b=function(){p(b).apply(window,arguments)});var d=u(function(a){b({target:this.j,data:a})},this);this.A[c]=d;this.addEventListener(a,d)}};f.removeEventListener=function(a,b){var c=b;if(s(b)&&b in this.B){var c=this.B[b],d=this.B;b in d&&delete d[b]}this.app.ia(a,c)};
f.Eu=function(a,b){var c=s(b)?a+b:a+ma(b);this.A[c]&&this.removeEventListener(a,this.A[c])};f.getPlayerState=function(){return this.app.pa};f.Kg=function(a,b){As(this.app,!0,this.b);Bs(this.app,a,b,void 0,this.b)};f.getCurrentTime=function(){return this.app.getCurrentTime(this.b)};f.ug=function(){return Cs(this.app)};f.Lo=function(){return this.app.D.volume};f.setVolume=function(a){this.app.setVolume(a)};f.Mo=function(){return this.app.D.muted};f.No=function(){Ds(this.app)};f.Oo=function(){Es(this.app)};
f.Jg=function(){As(this.app,!0,this.b);Fs(this.app,this.b)};f.pauseVideo=function(){Gs(this.app,this.b)};f.Bk=function(){var a=this.app;Hs(a,"play_pause")||Is(a,this.b)};f.vv=function(){};f.Gv=function(){return this.app.la};f.Zv=function(a){Js(this.app,a)};f.Av=function(){return this.app.b.vg?Lq:[1]};f.Fv=function(){return Ks(this.app,this.b)};f.ep=function(a){Ls(this.app,a,this.b)};f.Bv=function(){var a=Ms(this.app,this.b);return a?Ns(a):[]};f.Iv=function(){return this.yl()};f.Jv=function(){return 1};
f.yl=function(){return Os(this.app.aa)};f.Lv=function(){return 0};f.aw=function(){this.app.g.ph()};f.Wv=function(a){this.app.getVideoData().zs=a};f.Yv=function(a){this.app.b.Xq=a};f.Pv=function(a){this.app.C.isAvailable(a)&&(a=Ps(this.app.C,a))&&!a.loaded&&a.load()};f.jp=function(a){this.app.C.isAvailable(a)&&(a=Ps(this.app.C,a))&&a.loaded&&a.unload()};f.Uk=function(a,b,c){a=Qs(this.app,xs(a,b,c),this.b);As(this.app,a,this.b)};f.xv=function(a,b,c){Rs(this.app,xs(a,b,c),this.b)};
f.Rv=function(a,b,c){a=ws(a,b,c);b=Qs(this.app,a,this.b);As(this.app,b,this.b);b=this.app;(a=te(new J(a.mediaContentUrl)))&&Ss(b.b,a)};f.yv=function(a,b,c){b=ws(a,b,c);Rs(this.app,b,this.b);a=this.app;(b=te(new J(b.mediaContentUrl)))&&Ss(a.b,b)};f.Mv=function(){return Ts(this.app)};f.Cv=function(){return Us(this.app)};f.Kv=function(){return""};f.lp=function(a,b,c){return Vs(this.app,a,b,c)};
f.Uv=function(a){t:{for(var b=this.app,c=b.j.A.j||[],d=0;d<c.length;d++){var e=c[d];if(e.getId()==a){e.$a.clear();b.j.A.Ag(e);b.H("cuerangesremoved",[e]);a=!0;break t}}a=!1}return a};f.Qv=function(a,b,c,d){var e=this.app;e.P=!1;Ws(e,a,b,c,d)};f.wv=function(a,b,c,d){var e=this.app;e.P=!0;Ws(e,a,b,c,d)};f.Sv=function(){Xs(this.app)};f.Tv=function(){Ys(this.app)};f.kp=function(a){var b=this.app;b.o&&(b.o.ae?Zs(b,rs(b.o,a)):b.P=!1,qs(b.o,a))};f.$v=function(a){var b=this.app;b.o&&ns(b.o,a)};
f.Xv=function(a){var b=this.app;b.o&&(b.o.Pf=a)};f.ic=function(){var a=this.app.o;if(!a)return null;for(var b=[],c=0;c<a.tc;c++)b[c]=rs(a,c).videoId;return b};f.fp=function(){var a;a=this.app;a=a.o?a.o.Ha:null;return null==a?-1:a};f.hp=function(){return $s(this.app)};f.ip=function(a,b,c){return at(this.app,a,b,c)};f.ki=function(a,b,c){return at(this.app,a,b,c)};f.Ev=function(a){var b;b=this.app;a?b=b.B&&a==b.B.ua?b.B.Bj():bt(b.C,a):(a=bt(b.C),b.B&&a.push(b.B.ua),b=a);return b};
f.getVideoData=function(){var a=Ms(this.app,this.b),a=a?a.getVideoData():{},a={video_id:a.videoId,author:a.th,title:a.title},b=this.hp();b&&(a.list=b);return a};f.bw=function(){ct(this.app.g)};f.Nv=function(){this.app.g.rm()};f.getAdState=function(){return this.app.getAdState()};f.Ov=function(){var a=this.app.getPlayerState();return!(!a||!W(a,128)||5!=dt[a.b.errorCode])};f.Hv=function(){var a=this.app,b=a.O.clone(),c=b.args,a=et(a),d=ac(a.k);!a.eb&&0<a.Ta&&(d.start=a.Ta);sa(c,d);return b};
f.cw=function(a,b){var c=this.app;c.F&&ft(c.F,a,b);gt(c.b)&&6!=c.I&&(c.b.Bg=!E(a),c.b.Bg?(1!=c.I&&3!=c.I||!b||ht(c.B),a.length&&1!=c.I&&it(c)):ht(c.F))};f.destroy=function(){this.app.dispose()};f.Vv=function(){var a=Ms(this.app);if(a){var b=a.getPlayerState();W(b,2)||W(b,128)||(jt(a),kt(a))}};f.J=function(){if(this.g){for(var a in this.k)this.g[a]=null;for(a in this.o)this.g[a]=null}this.B=this.A=this.g=null;ys.G.J.call(this)};function lt(a,b){ys.call(this,a,b);V(this,"cueVideoByPlayerVars",this.uD);V(this,"loadVideoByPlayerVars",this.bq);V(this,"preloadVideoByPlayerVars",this.zD);V(this,"seekBy",this.Ps);V(this,"enableLicenseIntercept",this.vD);V(this,"updatePlaylist",this.ED);V(this,"resumeLicenseSession",this.AD);V(this,"updateLastActiveTime",this.DD);V(this,"updateVideoData",this.FD);V(this,"getStoryboardFormat",this.xD);V(this,"getProgressState",this.Mg);V(this,"hideUserInterface",this.yD);V(this,"showUserInterface",
this.CD);V(this,"getHousebrandProperties",this.wD);V(this,"setPlaybackQualityRange",this.BD)}w(lt,ys);f=lt.prototype;f.lp=function(a,b,c,d,e){return Vs(this.app,a,b,c,d,e)};f.uD=function(a){Rs(this.app,a,this.b)};f.getPlayerState=function(a){var b=this.app;return 2==a?b.Ba:b.pa};f.bq=function(a){Qs(this.app,a,this.b)};f.zD=function(){};f.Jg=function(){Fs(this.app,this.b)};f.Kg=function(a,b){Bs(this.app,a,b,void 0,this.b)};
f.Ps=function(a,b,c){var d=this.app,e=this.b;Bs(d,d.getCurrentTime()+a,b,c,e)};f.vD=function(){var a=this.app;a.Ia||(a.Ia=!0,a.xa={})};f.ED=function(){var a=this.app;mt(a);a.Ua("onPlaylistUpdate")};f.AD=function(a,b){var c=this.app,d=c.xa[a];d&&(nt(d,b),d.start(),delete c.xa[a])};f.DD=function(){this.app.b.Zf=v()};f.FD=function(a){var b=Ms(this.app,this.b||1);b&&(b=b.b,Lr(b,a),b.H("dataupdated"))};f.xD=function(){return this.app.getVideoData().k.storyboard_spec};f.yD=function(){this.app.g.Gj(!1)};
f.CD=function(){this.app.g.Gj(!0)};f.wD=function(){var a=this.app.R();return{zc:a.zc,zb:a.zb(),dc:a.dc}};f.getVideoData=function(){var a=lt.G.getVideoData.call(this),b=Ms(this.app,this.b),b=b?b.getVideoData():{};a.cpn=b.Da;a.isLive=b.eb;return a};f.getCurrentTime=function(a){return a?this.app.getCurrentTime(a):lt.G.getCurrentTime.call(this)};f.ug=function(a){return a?Cs(this.app,a):lt.G.ug.call(this)};
f.Mg=function(){var a=this.app.getVideoData(),b=a.eb&&!a.ob?this.getCurrentTime():a.j&&!isNaN(zp(a.j))?zp(a.j):a.Oa,c=!a.eb||a.ob,d=a.clipEnd,e=a.clipStart,g=this.getCurrentTime(),h=this.ug(),k;k=(k=Ms(this.app,void 0))?ot(k.g):0;return{allowSeeking:c,clipEnd:d,clipStart:e,current:g,displayedStart:-1,duration:h,loaded:k,seekableEnd:b,seekableStart:a.j&&!isNaN(Ap(a.j))?Ap(a.j):0}};f.yl=function(a){var b=this.app;return(b.A&&2==b.A.getPlayerType())==(2==a)?Os(b.aa):0};
f.BD=function(a,b){Ls(this.app,a,this.b,b)};function pt(a,b){lt.call(this,a,b)}w(pt,lt);f=pt.prototype;f.getPlayerType=function(){return this.b};f.Uk=function(a,b,c){Qs(this.app,xs(a,b,c),this.b)};f.Jg=function(){Fs(this.app,this.b)};f.Kg=function(a,b){Bs(this.app,a,b,void 0,this.b)};function qt(a,b){a.app.g.g.appendChild(b)}function rt(a){return a.app.g.element}f.R=function(){return this.app.R()};f.ic=function(){return this.app.o};f.getVideoData=function(){var a=Ms(this.app,this.b);return a&&a.getVideoData()};f.isFullscreen=function(){return this.app.R().mb};function st(a,b){this.fg=a;this.ef=b+"::"}w(st,ai);f=st.prototype;f.fg=null;f.ef="";f.set=function(a,b){this.fg.set(this.ef+a,b)};f.get=function(a){return this.fg.get(this.ef+a)};f.remove=function(a){this.fg.remove(this.ef+a)};f.Wb=function(a){var b=this.fg.Wb(!0),c=this,d=new zd;d.next=function(){for(var d=b.next();d.substr(0,c.ef.length)!=c.ef;)d=b.next();return a?d.substr(c.ef.length):c.fg.get(d)};return d};function tt(a,b){this.start=a;this.end=b;this.b=ma(this)}function ut(a,b){return a.start!=b.start?a.start-b.start:a.end!=b.end?a.end-b.end:a.b!=b.b?a.b-b.b:0}tt.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)};tt.prototype.toString=function(){return"Interval["+this.start+", "+this.end+"]"};function vt(){this.b=[]}function wt(a,b){for(var c=[],d=0;d<a.b.length;++d){var e=a.b[d];e.contains(b)&&c.push(e);if(e.start>b)break}return c}function xt(a,b,c){for(var d=[],e=0;e<a.b.length;++e){var g=a.b[e];if(null!=c&&g.start>c)break;g.start>b&&d.push(g)}return d}function zt(a,b){for(var c=[],d=0;d<a.b.length;++d){var e=a.b[d];e.contains(b)&&c.push(e.end);if(e.start>b){c.push(e.start);break}}c.sort(Bb);return c[0]};function At(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 Bt(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 Ct(a,b){var c=Bt(a,b);return 0<=c?a.end(c):NaN}function Dt(a){return a&&a.length?a.end(a.length-1):NaN}function Et(a,b){var c=Ct(a,b);return 0<=c?c-b:0};function Ft(){}var Gt=Eq&&4>Dq?.1:0,Ht=new Ft;f=Ft.prototype;f.wd=null;f.$l=!1;function It(a,b){var c="";b&&(a.wd=b,c=pr(b));a.src&&""==c||(c&&a.src!=c&&(a.src=c),b&&b.b||a.load())}function Jt(a,b){0<a.readyState&&(a.currentTime=Math.max(Gt,b))}f.getCurrentTime=function(){return this.currentTime||0};function ot(a){return 0<Dt(a.buffered)&&a.duration?Ct(a.buffered,a.currentTime):0}function Os(a){var b=a.duration||0;return Infinity==b?1:b?ot(a)/b:0}function Kt(a){return a.paused||a.ended}
function Lt(a){a.ended&&Jt(a,0);!a.hasAttribute("src")&&a.wd&&(a.src=pr(a.wd),a.wd.b||a.load());a.play();Eq&&7<=Dq&&Og(a,u(function(){L(u(this.Yr,this,this.currentTime,0),500)},a))}f.Yr=function(a,b){this.paused||this.currentTime>a||10<b||(this.play(),L(u(this.Yr,this,this.currentTime,b+1),500))};f.pauseVideo=function(){this.pause()};function Mt(a){a.currentSrc&&(lr&&Jt(a,0),cd(a),a.removeAttribute("src"),a.load(),a.wd&&a.wd.b&&(a.wd=null))}function Nt(a){Mt(a);a.wd=null}
f.setVolume=function(a,b){this.volume=a/100;this.muted=b};function Ot(a,b){a.defaultPlaybackRate=b;a.playbackRate=b}f.yC=function(){this.hasAttribute("controls")&&this.setAttribute("controls","true")};f.zC=function(){this.$l&&!this.muted&&(this.muted=!0)};
Ft.prototype.getDebugInfo=function(){return{vct:this.currentTime.toFixed(3),vd:this.duration.toFixed(3),vpl:At(this.played),vbu:At(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 Pt(a,b){for(var c=0;c<b.length;c++)a.appendChild(b[c])};function Qt(a,b){a=a||64;a&128&&!b||a&2&&a&16||(this.g=a,this.b=b||null)}Qt.prototype.g=64;Qt.prototype.b=null;
function Rt(a,b,c){if(W(a,128))return a;var d=a.g,e=a.b,g=b.target;switch(b.type){case "ended":if(0>=g.networkState||!g.src)break;d=St();e=null;break;case "pause":W(a,256)?d^=256:W(a,32)||W(a,2)||(d=4,W(a,1)&&W(a,8)&&(d|=1),e=null);break;case "playing":d=8;e=null;break;case "abort":if(64==d)break;case "error":t:if((b=g.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&&(e=b,d|=128);break;case "canplay":d&=-2;break;case "progress":W(a,8)&&Tt(c,g)&&(d|=1);break;case "seeked":d&=-18;break;case "seeking":d|=16;0>=Et(g.buffered,g.currentTime)&&(d|=1);d&=-3;break;case "waiting":W(a,2)||(d|=1);break;case "timeupdate":W(a,16)||(d=Tt(c,g)?d|1:d&-2);1<g.readyState&&0<g.currentTime&&(d&=-65);break;default:return a}return Ut(a,d,e)}
function Tt(a,b){if(!a)return!1;var c=Et(b.buffered,b.currentTime);return Vt(a,b.currentTime,v(),c)}function Ut(a,b,c){return b==a.g&&c==a.b||b&128&&!c||b&2&&b&16?a:new Qt(b,c)}function Wt(a,b){return Ut(a,a.g|b)}function W(a,b){return!!(a.g&b)}function Xt(a){return W(a,128)?-1:W(a,2)?0:W(a,1)&&!W(a,32)?3:W(a,64)?-1:W(a,8)?1:W(a,4)?2:-1}function St(){var a;return a=14};function Yt(a,b,c){tt.call(this,a,b);a=c||{};this.ta=a.id||"";void 0!=a.priority&&(this.Jh=a.priority);this.namespace=a.namespace||"";this.$a=new Nh;this.g=a.tooltip;a.style&&(this.style=a.style);a.visible&&(this.Vd=a.visible)}w(Yt,tt);f=Yt.prototype;f.ta="";f.Jh=7;f.active=!0;f.Vd=!1;f.style="ytp-ad-progress";f.$a=null;f.namespace="";f.getId=function(){return this.ta};function Zt(a){switch(a.style){case "ytp-chapter-marker":return 8;case "ytp-ad-progress":return 6}}
function $t(a,b){return a.start==b.start?a.Jh==b.Jh?0:a.Jh<b.Jh?-1:1:a.start<b.start?-1:1};function au(a,b,c){aj.call(this);this.C=a;this.B=b;this.D=c;this.o=new Mk(250);vk(this.o,"tick",this.lc,!1,this);S(this,this.o);this.j=[];this.b=[];this.g=new vt}w(au,aj);f=au.prototype;f.ti=!1;f.wg=!1;f.im=!1;f.hm=!1;f.Dg=null;f.wi=function(a){this.lc();z(arguments,function(a){this.j.push(a);var c=this.g.b;!c.length||0<ut(a,c[c.length-1])?c.push(a):Gb(c,a,ut);this.H("onAdd",a)},this);this.lc()};f.Ag=function(a){z(arguments,function(a){a=this.j.indexOf(a);0<=a&&bu(this,a)},this);this.lc()};
function bu(a,b){var c=a.j.splice(b,1)[0],d=a.g.b,e=Ab(d,c,ut);0<=e&&sb(d,e);b=a.b.indexOf(c);0<=b&&a.b.splice(b,1);a.H("onRemove",c)}f.Lg=function(){this.k=cu(this);this.wg=!0;this.lc()};f.reset=function(){this.wg=this.ti=!1;du(this);for(var a=this.j.length-1;0<=a;a--)bu(this,a);this.lc();this.A=null};function eu(a,b){var c=[];if(!b.length)return c;b.sort($t);for(var d=0;d<b.length;d++){var e=b[d];e.active&&-1==a.b.indexOf(e)&&(a.b.push(e),c.push(["onEnter",e]))}return c}
function fu(a,b){var c=[];if(!b.length)return c;b.sort($t);for(var d=0;d<b.length;d++){var e=b[d],g=a.b.indexOf(e);0>g||(a.b.splice(g,1),c.push(["onExit",e]))}return c}
f.lc=function(){this.hm=!0;if(!this.im)for(var a=3;this.hm&&a;){this.hm=!1;this.im=!0;if(this.wg&&!this.ti){du(this);for(var b=cu(this),c=[],d=[],e=0;e<this.b.length;e++){var g=this.b[e];g.active&&!g.contains(b)&&d.push(g)}c=c.concat(fu(this,d));d=wt(this.g,b);e=this.B();!W(e,48)&&b>this.k&&(d=d.concat(xt(this.g,this.k,b)));c=c.concat(eu(this,d));this.k=b;!this.ti&&this.A&&(c.unshift(["onLockBlockExit",this.A]),this.A=null,W(e,2)&&(this.k=2147483647));this.D()&&(b=zt(this.g,this.k),null!=b&&(this.Dg=
Ok(u(this.lc,this),b-this.k)));gu(this,c)}this.im=!1;a--}};function gu(a,b){for(var c=0;c<b.length;c++){var d=b[c],e=d[1];"onLockBlockExit"==d[0]||"onLockBlockEnter"==d[0]?a.H.apply(a,d):e.$a.H.apply(e.$a,d)}}function du(a){null!=a.Dg&&(Pk(a.Dg),a.Dg=null)}function cu(a){return W(a.B(),2)?2147483647:1E3*a.C()}f.J=function(){Dk(this.o,"tick",this.lc,!1,this);du(this);this.A=this.g=this.b=this.j=null;au.G.J.call(this)};function hu(a){aj.call(this);this.b=a;if(this.qn){a="yt-html5-player-modules::"+this.qn;var b=new ci;if(a=b.isAvailable()?a?new st(b,a):b:null)this.aa=new ei(a)}}w(hu,aj);f=hu.prototype;f.ua="";f.hc="";f.Bc=!1;f.loaded=!1;f.fk=!1;f.nc=null;f.Gf=function(a){var b=vb(arguments),c=u(this.Fc,this),d=u(this.kd,this);z(b,function(a){a.namespace=this.ua;a.$a.subscribe("onEnter",c);a.$a.subscribe("onExit",d)},this);this.H("command_add_cuerange",b,this.b.getPlayerType())};
f.vB=function(a){var b=vb(arguments);this.H("command_remove_cuerange",b,this.b.getPlayerType())};function iu(a){a.H("command_remove_cuerange_all",a.ua,a.b.getPlayerType())}function ju(a){a.H("command_preroll_ready",a.ua,a.b.getPlayerType())}function ku(a,b){O(b,a.ua);a.b.app.g.N.K().appendChild(b)}function lu(a,b){a.H("command_show_dialog",b)}f.pg=function(){lu(this)};f.create=function(){this.Bc||(this.Ja(this.b),O(rt(this.b),this.ua+"-created"),this.Bc=!0)};
f.destroy=function(){this.loaded&&this.unload();P(rt(this.b),this.ua+"-created");this.Bc=!1};f.load=function(){this.loaded=!0;O(rt(this.b),this.ua+"-loaded");this.H("loaded",this.ua)};f.unload=function(){this.loaded=!1;P(rt(this.b),this.ua+"-loaded");this.H("unloaded",this.ua)};f.Fc=function(){};f.kd=function(){};f.je=function(){};function mu(a,b,c){a.H("command_navigate_to_url",b,c)}f.log=function(a){this.H("command_log",this.hc,a)};
function nu(a,b,c){var d={},e;for(e in b)d[a.ua+"_"+e]=b[e];b={};for(var g in c)b[a.ua+"_"+g]=c[g];a.H("command_log_timing",d,b)}f.$g=function(){return null};function ou(a,b){if(!a.aa)return null;var c;try{c=a.aa.get(b)}catch(d){a.aa&&a.aa.remove(b)}return c}function pu(a,b,c){if(a.aa)try{a.aa.set(b,c)}catch(d){}}function qu(a,b){a.H("command_disable_controls",b,a.ua)}function ru(a,b){a.H("command_enable_controls",b,a.ua)}function su(a){a.H("command_stop_redirect_controls")}
function tu(a){a.H("command_play",!1,a.b.getPlayerType())}f.pauseVideo=function(){this.H("command_pause",!1,this.b.getPlayerType())};function uu(a,b){a.H("command_redirected_show_is_playing",b)}function vu(a){return a.b.app.g.j}function wu(a,b){a.H("module_menu_item_add",b)}function xu(a,b){a.H("module_menu_item_remove",b)}function yu(a){a.H("module_menu_show",void 0)}f.Hj=function(){};f.Bj=function(){return[]};f.Ja=function(){return!1};f.Fm=function(){return!0};
f.Ll=function(a,b){this.nc&&this.nc.je&&this.nc.je.apply(this.nc,arguments)};f.Hi=function(){};var zu={eG:"YTP_ERROR_ALREADY_PINNED_ON_A_DEVICE",jG:"ERROR_AUTHENTICATION_EXPIRED",kG:"ERROR_AUTHENTICATION_MALFORMED",lG:"ERROR_AUTHENTICATION_MISSING",oG:"ERROR_BAD_REQUEST",uG:"YTP_ERROR_CANNOT_ACTIVATE_RENTAL",CG:"ERROR_CGI_PARAMS_MALFORMED",DG:"ERROR_CGI_PARAMS_MISSING",sH:"YTP_DEVICE_FALLBACK",AH:"YTP_ERROR_LICENSE",DH:"YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK_FLASH",GH:"YTP_ERROR_GEO_FAILURE",UH:"YTP_ERROR_GENERIC",VH:"YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK",dI:"YTP_ERROR_INVALID_DRM_MESSAGE",
hI:"LEARN_MORE",KI:"YTP_ERROR_NOT_SIGNED_IN",$I:"YTP_ERROR_PURCHASE_NOT_FOUND",aJ:"YTP_ERROR_PURCHASE_REFUNDED",dJ:"YTP_ERROR_RENTAL_EXPIRED",wG:"YTP_ERROR_CAST_SESSION_DEVICE_MISMATCHED",xG:"YTP_ERROR_CAST_SESSION_VIDEO_MISMATCHED",zG:"YTP_ERROR_CAST_TOKEN_FAILED",yG:"YTP_ERROR_CAST_TOKEN_EXPIRED",AG:"YTP_ERROR_CAST_TOKEN_MALFORMED",oJ:"YTP_ERROR_SERVER_ERROR",DJ:"YTP_ERROR_STOPPED_BY_ANOTHER_PLAYBACK",FJ:"YTP_ERROR_STREAMING_DEVICES_QUOTA_PER_24H_EXCEEDED",GJ:"YTP_ERROR_STREAMING_NOT_ALLOWED",HJ:"YTP_ERROR_STREAMING_UNAVAILABLE",
gJ:"YTP_ERROR_RETRYABLE_ERROR",PJ:"YTP_ERROR_TOO_MANY_STREAMS_PER_USER",OJ:"YTP_ERROR_TOO_MANY_STREAMS_PER_ENTITLEMENT",UJ:"YTP_ERROR_UNSUPPORTED_DEVICE",WJ:"YTP_ERROR_UNUSUAL_ACTIVITY",eK:"YTP_ERROR_VIDEO_FORBIDDEN",gK:"YTP_ERROR_VIDEO_NOT_FOUND"},Au={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 Bu(a){return(a=Au[a.toString()])?a:"YTP_ERROR_LICENSE"};var Cu={created:1,ready:2,testing:4,"testing-starting":3,live:6,"live-starting":5,complete:8,"complete-starting":7};function Du(a){m.setTimeout(function(){throw a;},0)}var Eu;
function Fu(){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=b.location.protocol+"//"+b.location.host,a=u(function(a){if(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){var b=new a,c={},d=c;b.port1.onmessage=function(){c=c.next;var a=c.qt;c.qt=null;a()};return function(a){d.next={qt: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 Gu(a,b){Hu||Iu();Ju||(Hu(),Ju=!0);Ku.push(new Lu(a,b))}var Hu;function Iu(){if(m.Promise&&m.Promise.resolve){var a=m.Promise.resolve();Hu=function(){a.then(Mu)}}else Hu=function(){var a=Mu;ka(m.setImmediate)?m.setImmediate(a):(Eu||(Eu=Fu()),Eu(a))}}var Ju=!1,Ku=[];function Mu(){for(;Ku.length;){var a=Ku;Ku=[];for(var b=0;b<a.length;b++){var c=a[b];try{c.b.call(c.scope)}catch(d){Du(d)}}}Ju=!1}function Lu(a,b){this.b=a;this.scope=b};function Nu(a){a.prototype.then=a.prototype.then;a.prototype.$goog_Thenable=!0}function Ou(a){if(!a)return!1;try{return!!a.$goog_Thenable}catch(b){return!1}};function Pu(a,b){this.g=0;this.A=void 0;this.b=this.j=null;this.k=this.o=!1;try{var c=this;a.call(b,function(a){Qu(c,2,a)},function(a){Qu(c,3,a)})}catch(d){Qu(this,3,d)}}Pu.prototype.then=function(a,b,c){return Ru(this,ka(a)?a:null,ka(b)?b:null,c)};Nu(Pu);Pu.prototype.cancel=function(a){0==this.g&&Gu(function(){var b=new Su(a);Tu(this,b)},this)};
function Tu(a,b){if(0==a.g)if(a.j){var c=a.j;if(c.b){for(var d=0,e=-1,g=0,h;h=c.b[g];g++)if(h=h.gj)if(d++,h==a&&(e=g),0<=e&&1<d)break;0<=e&&(0==c.g&&1==d?Tu(c,b):(d=c.b.splice(e,1)[0],Uu(c,d,3,b)))}}else Qu(a,3,b)}function Vu(a,b){a.b&&a.b.length||2!=a.g&&3!=a.g||Wu(a);a.b||(a.b=[]);a.b.push(b)}
function Ru(a,b,c,d){var e={gj:null,os:null,rs:null};e.gj=new Pu(function(a,h){e.os=b?function(c){try{var e=b.call(d,c);a(e)}catch(q){h(q)}}:a;e.rs=c?function(b){try{var e=c.call(d,b);!n(e)&&b instanceof Su?h(b):a(e)}catch(q){h(q)}}:h});e.gj.j=a;Vu(a,e);return e.gj}Pu.prototype.B=function(a){this.g=0;Qu(this,2,a)};Pu.prototype.C=function(a){this.g=0;Qu(this,3,a)};
function Qu(a,b,c){if(0==a.g){if(a==c)b=3,c=new TypeError("Promise cannot resolve to itself");else{if(Ou(c)){a.g=1;c.then(a.B,a.C,a);return}if(la(c))try{var d=c.then;if(ka(d)){Xu(a,c,d);return}}catch(e){b=3,c=e}}a.A=c;a.g=b;Wu(a);3!=b||c instanceof Su||Yu(a,c)}}function Xu(a,b,c){function d(b){g||(g=!0,a.C(b))}function e(b){g||(g=!0,a.B(b))}a.g=1;var g=!1;try{c.call(b,e,d)}catch(h){d(h)}}function Wu(a){a.o||(a.o=!0,Gu(a.D,a))}
Pu.prototype.D=function(){for(;this.b&&this.b.length;){var a=this.b;this.b=[];for(var b=0;b<a.length;b++)Uu(this,a[b],this.g,this.A)}this.o=!1};function Uu(a,b,c,d){if(2==c)b.os(d);else{for(;a&&a.k;a=a.j)a.k=!1;b.rs(d)}}function Yu(a,b){a.k=!0;Gu(function(){a.k&&Zu.call(null,b)})}var Zu=Du;function Su(a){ua.call(this,a)}w(Su,ua);Su.prototype.name="cancel";/*
 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 $u(a,b){this.o=[];this.I=a;this.F=b||null;this.k=this.b=!1;this.j=void 0;this.D=this.M=this.B=!1;this.A=0;this.g=null;this.C=0}f=$u.prototype;f.cancel=function(a){if(this.b)this.j instanceof $u&&this.j.cancel();else{if(this.g){var b=this.g;delete this.g;a?b.cancel(a):(b.C--,0>=b.C&&b.cancel())}this.I?this.I.call(this.F,this):this.D=!0;this.b||this.dh(new av)}};f.Ro=function(a,b){this.B=!1;bv(this,a,b)};function bv(a,b,c){a.b=!0;a.j=c;a.k=!b;cv(a)}
function dv(a){if(a.b){if(!a.D)throw new ev;a.D=!1}}f.Qs=function(a){dv(this);bv(this,!0,a)};f.dh=function(a){dv(this);bv(this,!1,a)};function fv(a,b,c){gv(a,b,null,c)}function gv(a,b,c,d){a.o.push([b,c,d]);a.b&&cv(a)}f.then=function(a,b,c){var d,e,g=new Pu(function(a,b){d=a;e=b});gv(this,d,function(a){a instanceof av?g.cancel():e(a)});return g.then(a,b,c)};Nu($u);function hv(a){return jb(a.o,function(a){return ka(a[1])})}
function cv(a){if(a.A&&a.b&&hv(a)){var b=a.A,c=iv[b];c&&(m.clearTimeout(c.ta),delete iv[b]);a.A=0}a.g&&(a.g.C--,delete a.g);for(var b=a.j,d=c=!1;a.o.length&&!a.B;){var e=a.o.shift(),g=e[0],h=e[1],e=e[2];if(g=a.k?h:g)try{var k=g.call(e||a.F,b);n(k)&&(a.k=a.k&&(k==b||k instanceof Error),a.j=b=k);Ou(b)&&(d=!0,a.B=!0)}catch(l){b=l,a.k=!0,hv(a)||(c=!0)}}a.j=b;d&&(k=u(a.Ro,a,!0),d=u(a.Ro,a,!1),b instanceof $u?(gv(b,k,d),b.M=!0):b.then(k,d));c&&(b=new jv(b),iv[b.ta]=b,a.A=b.ta)}
function ev(){ua.call(this)}w(ev,ua);ev.prototype.message="Deferred has already fired";ev.prototype.name="AlreadyCalledError";function av(){ua.call(this)}w(av,ua);av.prototype.message="Deferred was canceled";av.prototype.name="CanceledError";function jv(a){this.ta=m.setTimeout(u(this.g,this),0);this.b=a}jv.prototype.g=function(){delete iv[this.ta];throw this.b;};var iv={};function kv(a,b){var c=b||{},d=c.document||document,e=Zc("SCRIPT"),g={Rs:e,kb:void 0},h=new $u(lv,g),k=null,l=null!=c.timeout?c.timeout:5E3;0<l&&(k=window.setTimeout(function(){mv(e,!0);h.dh(new nv(1,"Timeout reached for loading script "+a))},l),g.kb=k);e.onload=e.onreadystatechange=function(){e.readyState&&"loaded"!=e.readyState&&"complete"!=e.readyState||(mv(e,c.xA||!1,k),h.Qs(null))};e.onerror=function(){mv(e,!0,k);h.dh(new nv(0,"Error while loading script "+a))};Pc(e,{type:"text/javascript",charset:"UTF-8",
src:a});ov(d).appendChild(e);return h}function ov(a){var b=a.getElementsByTagName("HEAD");return!b||E(b)?a.documentElement:b[0]}function lv(){if(this&&this.Rs){var a=this.Rs;a&&"SCRIPT"==a.tagName&&mv(a,!0,this.kb)}}function mv(a,b,c){null!=c&&m.clearTimeout(c);a.onload=ca;a.onerror=ca;a.onreadystatechange=ca;b&&window.setTimeout(function(){ed(a)},0)}function nv(a,b){var c="Jsloader error (code #"+a+")";b&&(c+=": "+b);ua.call(this,c);this.code=a}w(nv,ua);function pv(a,b){this.g=new J(a);this.b=b?b:"callback";this.kb=5E3}var qv=0;pv.prototype.send=function(a,b,c,d){a=a||null;d=d||"_"+(qv++).toString(36)+v().toString(36);m._callbacks_||(m._callbacks_={});var e=this.g.clone();if(a)for(var g in a)a.hasOwnProperty&&!a.hasOwnProperty(g)||ue(e,g,a[g]);b&&(m._callbacks_[d]=rv(d,b),ue(e,this.b,"_callbacks_."+d));b=kv(e.toString(),{timeout:this.kb,xA:!0});gv(b,null,sv(d,a,c),void 0);return{ta:d,Br:b}};
pv.prototype.cancel=function(a){a&&(a.Br&&a.Br.cancel(),a.ta&&tv(a.ta,!1))};function sv(a,b,c){return function(){tv(a,!1);c&&c(b)}}function rv(a,b){return function(c){tv(a,!0);b.apply(void 0,arguments)}}function tv(a,b){m._callbacks_[a]&&(b?delete m._callbacks_[a]:m._callbacks_[a]=ca)};function uv(a){this.b=a;a=null;a=vv(this.b);a="("+a.join("|")+")";a=xa("__%s__",a);this.j=new RegExp(a,"g");this.g={}}var wv=/__([a-z]+(?:_[a-z]+)*)__/g;function vv(a){var b=[],c={};a.replace(wv,function(a,e){e in c||(c[e]=!0,b.push(e))});return b}function xv(a,b){var c=u(function(a,c){return Da(b[c]||this.g[c]||"")},a);return a.b.replace(a.j,c)};function yv(a,b){aj.call(this);this.j=xv(new uv(b),{video_id:a});this.b=new Mk(15E3+Math.floor(3E4*Math.random()));vk(this.b,"tick",u(this.g,this));this.g();this.b.start()}w(yv,aj);yv.prototype.J=function(){this.b.dispose();yv.G.J.call(this)};yv.prototype.g=function(){(new pv(this.j)).send(null,u(this.o,this),u(this.k,this))};yv.prototype.o=function(a){this.H("payload",a);Nk(this.b,15E3+Math.floor(3E4*Math.random()))};yv.prototype.k=function(){this.H("error");var a=this.b.b;192E4>a&&Nk(this.b,2*a)};function zv(a){this.b={};this.j={};this.k={};this.g=Av(this,a)}w(zv,Ih);function Av(a,b,c){var d=0,e=Zc(b[d++]);if(s(b[d])||ha(b[d])||null===b[d]){var g=b[d++];ha(g)&&(g=g.join(" "));if(g=Bv(a,e,"className",g))Cv(a,e,"className",g),Dv(a,g,e)}for(;d<b.length;d++){var h=b[d];if(ha(h))Av(a,h,e);else if(la(h)){var g=a,k=e,l=void 0;for(l in h)h[l]&&Cv(g,k,l,Bv(g,k,l,h[l]))}else s(h)&&(g=Bv(a,e,"child",h),null!=g&&e.appendChild($c(g)))}c&&c.appendChild(e);return e}f=zv.prototype;f.K=function(){return this.g};
function Dv(a,b,c){var d=b.split(" ");if(1<d.length)for(b=0;b<d.length;b++)Dv(a,d[b],c);else a.b[b]=c}f.X=function(a,b){n(b)?dd(a,this.g,b):a.appendChild(this.g)};f.cd=function(){ed(this.g)};function Bv(a,b,c,d){return s(d)&&"{{"==d.substr(0,2)?(a.j[d]=[b,c],null):d}f.update=function(a){for(var b in a)Ev(this,b,a[b])};function Ev(a,b,c){if(c!=a.k[b]){var d=a.j["{{"+b+"}}"];d&&(a.k[b]=c,Cv(a,d[0],d[1],c))}}function Fv(a){return ha(a)&&s(a[0])}
function Cv(a,b,c,d){if("child"==c){cd(b);if(!ha(d)||Fv(d))d=[d];c=[];for(var e=0;e<d.length;e++){var g=d[e];if(ja(g)||s(g)||la(g))!g.nodeType||1!=g.nodeType&&3!=g.nodeType?Fv(g)?c.push(Av(a,g)):g.K?c.push(g.K()):c.push($c(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.J=function(){this.b={};this.j={};this.k={};this.cd();delete this.g;zv.G.J.call(this)};function Gv(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 Hv(a){return Math.round(1E3*a)/10};var Iv={EJ:"html5-stop-propagation",FG:"html5-chromeless",kI:"html5-live-dvr-disabled",lI:"html5-live-dvr-engaged",mI:"html5-live-playback",xI:"html5-mobile",zI:"modest-branding",II:"html5-native-controls",JJ:"html5-tablet",IJ:"html5-tablet-body",sI:"html5-main-video",$J:"html5-video-container",aK:"html5-video-content",bK:"html5-video-controls",cK:"ytp-fallback",dK:"ytp-fallback-content",fK:"html5-video-loader",mK:"html5-watermark",qG:"html5-branded-watermark",LG:"html5-context-menu",gz:"html5-context-menu-copy-debug-info",
hz:"html5-context-menu-copy-embed-html",iz:"html5-context-menu-copy-video-url",jz:"html5-context-menu-copy-video-url-at-current-time",kz:"html5-context-menu-link",lz:"html5-context-menu-report-playback-issue",mz:"html5-context-menu-show-video-info",MG:"html5-show-video-info-template",yI:"html5-modal-panel",WH:"ideal-aspect",uI:"autominimize-controls",vI:"autominimize-controls-aspect",KH:"autohide-controls",LH:"autohide-controls-fullscreenonly",wI:"autominimize-progress-bar",EH:"hide-controls-when-cued",
YJ:"ytp-user-idle",MH:"hide-info-bar",NH:"html5-hide-share",OH:"html5-hide-volume",mG:"ytp-autohide-fade",iK:"video-thumbnail",UI:"ytp-dialog",gG:"html5-async-progress",hG:"html5-async-success",fG:"html5-async-error",BG:"html5-center-overlay",jJ:"ytp-scalable-icon-shrink",iJ:"ytp-scalable-icon-grow",TH:"house-brand",nJ:"sentiment-like",mJ:"sentiment-dislike"};function Jv(){this.j=new zv(["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}}"]]]);S(this,this.j);this.g=this.j.b["html5-fresca-module"];O(this.g,"html5-stop-propagation");this.k=0;this.b=null}w(Jv,Ih);Jv.prototype.K=function(){return this.g};
Jv.prototype.update=function(a){this.A&&this.b.state==a.state&&this.b.startTime==a.startTime&&this.b.g==a.g&&this.b.b.join()==a.b.join()||(this.b=a,this.g.style.backgroundImage=this.b.g||"none",a=this.b.getMessage(),this.j.update({heading:a[0]||"",subheading:a[1]||"",long_text:a[2]||""}),this.o())};function Kv(a){var b=Math.floor((new Date).valueOf()/1E3);return b>a?Ye("YTP_FRESCA_STARTING_SOON_MESSAGE"):Gv(a-b)}
Jv.prototype.o=function(){var a;a=this.b;a.startTime?(a=a.state,a=6==a||8==a||7==a?!1:!0):a=!1;Q(this.g,"html5-fresca-show-countdown",a);a&&(this.j.update({countdown:Kv(this.b.startTime)}),N(this.k),this.k=L(u(this.o,this),1E3))};Jv.prototype.J=function(){N(this.k);this.g=null;Jv.G.J.call(this)};function Lv(a){this.b=[];this.j=!1;a&&Mv(this,a)}Lv.prototype.state=-1;function Nv(a){return{imageUrl:a.g,messageText:a.getMessage(),startTime:a.startTime,state:a.state}}
function Mv(a,b){var c=b.feed;if(c){var d=c.yt$lifeCycleState;d&&(a.state=Cu[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.g="url("+d.imgUrl+")"),(d=d.content)&&d.length&&(d=d.splice(0,3),a.b=A(d,function(a){return a.$t}));if(c=c.entry)a.j=0<=mb(c,function(a){a=a.yt$status;return!!a&&"inactive"!=a.$t})}}Lv.prototype.getMessage=function(){return this.b.length?this.b:Ov(this)};
function Ov(a){switch(a.state){case 6:return a.j?[]:[Ye("YTP_FRESCA_STAND_BY_MESSAGE"),Ye("YTP_FRESCA_TECHNICAL_DIFFICULTIES_MESSAGE")];case 8:return[Ye("YTP_FRESCA_EVENT_OVER_MESSAGE")];case 7:return[Ye("YTP_FRESCA_EVENT_OVER_MESSAGE"),Ye("YTP_FRESCA_COMPLETE_MESSAGE")];default:return[Ye("YTP_FRESCA_STAND_BY_MESSAGE")]}};function Pv(a){hu.call(this,a);Xe({YTP_FRESCA_STARTING_SOON_MESSAGE:"Starting soon...",YTP_FRESCA_EVENT_OVER_MESSAGE:"This live event is over.",YTP_FRESCA_COMPLETE_MESSAGE:"Thanks for watching!",YTP_FRESCA_STAND_BY_MESSAGE:"Please stand by.",YTP_FRESCA_TECHNICAL_DIFFICULTIES_MESSAGE:"We're experiencing technical difficulties."})}w(Pv,hu);f=Pv.prototype;f.ua="fresca";f.hc="fresca";f.$i=!1;f.Zg=!1;f.Ja=function(){return bs(this.b.getVideoData(),"fresca_module")};
f.create=function(a){Pv.G.create.call(this);Ar(cq(),"application/x-mpegURL")||Cr()?(this.$i=this.Zg=!1,qu(this,["play_pause","seek"]),this.j=new Jv,qt(this.b,this.j.K()),this.k=a||new yv(this.b.getVideoData().videoId,this.b.R().So+(this.b.R(),"feeds/api/users/live/broadcasts/__video_id__/states?v=2&alt=json-in-script")),this.k.subscribe("payload",this.aA,this),this.k.subscribe("error",this.$z,this),this.subscribe("onStateChange",this.Yq,this)):Qv(this.b.app.j,"fmt.noneavailable","YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK",
void 0)};f.destroy=function(){this.ia("onStateChange",this.Yq,this);Mh(this.k,this.j);Pv.G.destroy.call(this)};f.Yq=function(a){this.g&&(this.$i=W(a.state,2),(Rv(a,16)||this.$i)&&Sv(this,this.g))};f.$z=function(){this.Zg||(Tv(this,new Lv),Sv(this,this.g))};f.aA=function(a){Tv(this,new Lv(a));a=this.b.getVideoData();6!=this.g.state||a.U||a.O?Sv(this,this.g):this.b.Uk(a.videoId)};
function Sv(a,b){var c=6>b.state;!c&&a.b.app.j.xa&&(b.g||b.b.length)&&(c=!0);a.$i&&!a.b.R().Jc&&(c=!0);b.j||(c=!0);if(!a.Zg)switch(b.state){case 6:b.j&&(a.Zg=!0,ru(a,["play_pause","seek"]),ju(a));break;case 8:case 7:c=a.Zg=!0}c&&a.j.update(b);c&&!a.loaded?a.load():!c&&a.loaded&&a.unload()}function Uv(a){return bs(a.getVideoData(),"fresca_module")?new Pv(a):null}function Tv(a,b){a.g!=b&&(a.g=b,a.b.R().zb()&&a.H("publish_external_event","onFrescaStateChange",Nv(a.g)))};function Vv(a){this.Nn=a||window;this.jd=[]}f=Vv.prototype;f.Nn=null;f.jd=null;f.listen=function(a,b,c,d){c=u(c,d||this.Nn);a=R(a,b,c);this.jd.push(a);return a};function Wv(a,b,c,d,e,g){d=u(d,g||a.Nn);b=Qg(b,c,d,e);a.jd.push(b)}f.Ga=function(a){Pg(a);rb(this.jd,a)};f.removeAll=function(){Pg(this.jd);this.jd=[]};function Xv(a,b,c){this.b=a;this.k=b||0;this.g=c;this.j=u(this.hy,this)}w(Xv,Ih);f=Xv.prototype;f.ta=0;f.J=function(){Xv.G.J.call(this);this.stop();delete this.b;delete this.g};f.start=function(a){this.stop();this.ta=Ok(this.j,n(a)?a:this.k)};f.stop=function(){0!=this.ta&&Pk(this.ta);this.ta=0};f.hy=function(){this.ta=0;this.b&&this.b.call(this.g)};function Yv(){U.call(this);this.b=0;this.endTime=this.startTime=null}w(Yv,U);f=Yv.prototype;f.Lc=function(){this.Jb("begin")};f.Cd=function(){this.Jb("end")};f.vb=function(){this.Jb("finish")};f.onStop=function(){this.Jb("stop")};f.Jb=function(a){this.S(a)};function Zv(){Yv.call(this);this.g=[]}w(Zv,Yv);Zv.prototype.add=function(a){C(this.g,a)||(this.g.push(a),vk(a,"finish",this.k,!1,this))};Zv.prototype.remove=function(a){rb(this.g,a)&&Dk(a,"finish",this.k,!1,this)};Zv.prototype.J=function(){z(this.g,function(a){a.dispose()});this.g.length=0;Zv.G.J.call(this)};function $v(){Zv.call(this);this.j=0}w($v,Zv);
$v.prototype.play=function(a){if(0==this.g.length)return!1;if(a||0==this.b)this.j=0,this.Lc();else if(1==this.b)return!1;this.Jb("play");-1==this.b&&this.Jb("resume");var b=-1==this.b&&!a;this.startTime=v();this.endTime=null;this.b=1;z(this.g,function(c){b&&-1!=c.b||c.play(a)});return!0};$v.prototype.pause=function(){1==this.b&&(z(this.g,function(a){1==a.b&&a.pause()}),this.b=-1,this.Jb("pause"))};
$v.prototype.stop=function(a){z(this.g,function(b){0==b.b||b.stop(a)});this.b=0;this.endTime=v();this.onStop();this.Cd()};$v.prototype.k=function(){this.j++;this.j==this.g.length&&(this.endTime=v(),this.b=0,this.vb(),this.Cd())};var aw=/#(.)(.)(.)/;function bw(a){if(!cw.test(a))throw Error("'"+a+"' is not a valid hex color");4==a.length&&(a=a.replace(aw,"#$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 cw=/^#(?:[0-9a-f]{3}){1,2}$/i;var dw={},ew=null;function fw(a){a=ma(a);delete dw[a];Yb(dw)&&ew&&ew.stop()}function gw(){ew||(ew=new Xv(function(){hw()},20));var a=ew;0!=a.ta||a.start()}function hw(){var a=v();Nb(dw,function(b){iw(b,a)});Yb(dw)||gw()};function jw(a,b,c,d){Yv.call(this);if(!ha(a)||!ha(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.k=a;this.A=b;this.duration=c;this.o=d;this.g=[]}w(jw,Yv);f=jw.prototype;f.md=0;
f.play=function(a){if(a||0==this.b)this.md=0,this.g=this.k;else if(1==this.b)return!1;fw(this);this.startTime=a=v();-1==this.b&&(this.startTime-=this.duration*this.md);this.endTime=this.startTime+this.duration;this.md||this.Lc();this.Jb("play");-1==this.b&&this.Jb("resume");this.b=1;var b=ma(this);b in dw||(dw[b]=this);gw();iw(this,a);return!0};f.stop=function(a){fw(this);this.b=0;a&&(this.md=1);kw(this,this.md);this.onStop();this.Cd()};f.pause=function(){1==this.b&&(fw(this),this.b=-1,this.Jb("pause"))};
f.J=function(){0==this.b||this.stop(!1);this.Jb("destroy");jw.G.J.call(this)};f.destroy=function(){this.dispose()};function iw(a,b){a.md=(b-a.startTime)/(a.endTime-a.startTime);1<=a.md&&(a.md=1);kw(a,a.md);1==a.md?(a.b=0,fw(a),a.vb(),a.Cd()):1==a.b&&a.bn()}function kw(a,b){ka(a.o)&&(b=a.o(b));a.g=Array(a.k.length);for(var c=0;c<a.k.length;c++)a.g[c]=(a.A[c]-a.k[c])*b+a.k[c]}f.bn=function(){this.Jb("animate")};f.Jb=function(a){this.S(new lw(a,this))};
function lw(a,b){T.call(this,a);this.x=b.g[0];this.y=b.g[1];this.duration=b.duration;this.state=b.b}w(lw,T);function mw(a,b,c,d,e){jw.call(this,b,c,d,e);this.element=a}w(mw,jw);mw.prototype.j=ca;mw.prototype.bn=function(){this.j();mw.G.bn.call(this)};mw.prototype.Cd=function(){this.j();mw.G.Cd.call(this)};mw.prototype.Lc=function(){this.j();mw.G.Lc.call(this)};function nw(a,b,c,d,e){if(2!=b.length||2!=c.length)throw Error("Start and end points must be 2D");mw.apply(this,arguments)}w(nw,mw);
nw.prototype.j=function(){this.element.style.left=Math.round(this.g[0])+"px";this.element.style.top=Math.round(this.g[1])+"px"};function ow(a,b,c,d){nw.call(this,a,[a.offsetLeft,a.offsetTop],b,c,d)}w(ow,nw);ow.prototype.Lc=function(){this.k=[this.element.offsetLeft,this.element.offsetTop];ow.G.Lc.call(this)};function pw(a,b,c,d,e){if(2!=b.length||2!=c.length)throw Error("Start and end points must be 2D");mw.apply(this,arguments)}w(pw,mw);
pw.prototype.j=function(){this.element.style.width=Math.round(this.g[0])+"px";this.element.style.height=Math.round(this.g[1])+"px"};function qw(a,b,c,d,e){mw.call(this,a,[b],[c],d,e)}w(qw,mw);qw.prototype.j=function(){this.element.style.width=Math.round(this.g[0])+"px"};function rw(a,b,c,d,e){ja(b)&&(b=[b]);ja(c)&&(c=[c]);mw.call(this,a,b,c,d,e);if(1!=b.length||1!=c.length)throw Error("Start and end points must be 1D");}w(rw,mw);rw.prototype.j=function(){bg(this.element,this.g[0])};
rw.prototype.show=function(){this.element.style.display=""};rw.prototype.hide=function(){this.element.style.display="none"};function sw(a,b,c){rw.call(this,a,1,0,b,c)}w(sw,rw);sw.prototype.Lc=function(){this.show();sw.G.Lc.call(this)};sw.prototype.Cd=function(){this.hide();sw.G.Cd.call(this)};function tw(a,b,c){rw.call(this,a,0,1,b,c)}w(tw,rw);tw.prototype.Lc=function(){this.show();tw.G.Lc.call(this)};function uw(a){return Math.pow(a,3)}function vw(a){return 3*a*a-2*a*a*a};function ww(a){return ha(a)&&a.length?a[0]:a}function xw(a){var b=/.+/;return s(a)&&null!=b&&null!=a&&a.match(b)?a:""}function yw(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 zw(a){return s(a)?a:""}function Aw(a,b,c){for(var d in b)if(b[d]==a)return a;return c}function Bw(a,b){return"true"==a||"false"==a?"true"==a:b}function Cw(a,b){return s(a)?parseFloat(a):b}
function Dw(a,b,c,d,e,g){a=10==b?parseFloat(a):parseInt(a,b);if(null!=a&&!isNaN(a)){if(e)return Ib(a,c,d);if(a>=c&&a<=d)return a}return g}function Ew(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;z(a,function(a){a=parseFloat(a);0>a&&(c=-c);b=60*b+Math.abs(a)});return c*b}function Fw(a,b){if(null==a)return null;if(ia(a)){var c=[];z(a,function(a){(a=b(a))&&c.push(a)});return c}var d=b(a);return d?[d]:[]}
function Gw(a){function b(a){return null!=a&&!isNaN(a)}return(a=a?new xf(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 Hw(a){function b(a){return hb(a.split(/ +/),function(a){return""!=a})}return null==a?[]:b(a)};function Iw(a){this.value=a};function Jw(a,b,c){this.value=a;this.target=b;this.b=c}var Kw={QG:"current",JI:"new"};function Lw(a){return a.value?a.value:null};function Mw(a,b,c,d){this.type=a;this.trigger=b;this.url=c;this.duration=d}var Nw={CLOSE:"close",OI:"openUrl",PAUSE:"pause",BE:"subscribe"},Ow={CLICK:"click",CLOSE:"close",vE:"hidden",hJ:"rollOut",zE:"rollOver",AE:"shown"};
function Pw(a){if(!a)return null;var b=Aw(a.type,Nw),c=Aw(a.trigger,Ow),d;if(d=ww(a.url)){var e=zw(d.value);if(e&&null!=xi(e)){var g=Aw(d.target,Kw,"current");d=null==g?null:new Jw(e,g,Bw(d.show_link_icon,!0))}else d=null}else d=null;ww(a.subscribeData);(a=ww(a.duration))?(a=Ew(a.value),a=new Iw(a)):a=null;return b?new Mw(b,c,d,a):null};function Qw(a,b,c,d,e,g,h,k,l,q,r,t,y,D){this.A=a;this.o=b;this.B=c;this.C=d;this.j=e;this.I=g;this.k=h;this.textAlign=k;this.M=l;this.D=q;this.F=r;this.b=t;this.g=y;this.L=D}
function Rw(a){if(!a)return null;var b=yw(a.fgColor,"#1A1A1A"),c=yw(a.bgColor,"#FFF"),d=yw(a.borderColor,"#000"),e=Dw(a.borderWidth,10,0,5,!1,0),g=Dw(a.bgAlpha,10,0,1,!1,.8);Dw(a.borderAlpha,10,0,1,!1,.2);Dw(a.gloss,16,0,255,!1,0);var h=yw(a.highlightFontColor,"#F2F2F2"),k=Dw(a.highlightWidth,10,0,5,!1,3),l=zw(a.textAlign),q=Dw(a.textSize,10,3.3,30.1,!0,3.6107),r=zw(a.fontWeight),t=Gw(a.padding),y=Hw(a.effects),D=Dw(a.cornerRadius,10,0,10,!0,0);var M=ww(a.gradient);if(M){a=Dw(M.x1,10,0,100,!0,0);
var ea=Dw(M.y1,10,0,100,!0,0),kb=Dw(M.x2,10,0,100,!0,100),dg=Dw(M.y2,10,0,100,!0,100),bx=yw(M.color1,"#FFF"),IU=yw(M.color2,"#000"),JU=Dw(M.opacity1,10,0,100,!0,100),M=Dw(M.opacity2,10,0,100,!0,0);a=new Sw(a,ea,kb,dg,bx,IU,JU,M)}else a=null;return new Qw(b,c,d,e,g,h,k,l,q,r,t,y,D,a)}function Sw(a,b,c,d,e,g,h,k){this.o=a;this.B=b;this.A=c;this.C=d;this.b=e;this.g=g;this.j=h;this.k=k};function Tw(a,b){this.b=a;this.videoId=b};var Uw={sK:"xx",tK:"xy",xK:"yx",yK:"yy"};var Vw=ec("area base br col command embed hr img input keygen link meta param source track wbr".split(" "));var Ww=/<[^>]*>|&[^;]+;/g;function Xw(a,b){return b?a.replace(Ww,""):a}
var Yw=RegExp("[\u0591-\u07ff\u200f\ufb1d-\ufdff\ufe70-\ufefc]"),Zw=RegExp("[A-Za-z\u00c0-\u00d6\u00d8-\u00f6\u00f8-\u02b8\u0300-\u0590\u0800-\u1fff\u200e\u2c00-\ufb1c\ufe00-\ufe6f\ufefd-\uffff]"),$w=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]"),ax=/^http:\/\/.*/,cx=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Arab|Hebr|Thaa|Nkoo|Tfng))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i,dx=
/\s+/,ex=/\d/;function fx(){this.b=gx}fx.prototype.Qj=!0;fx.prototype.Pj=function(){return""};fx.prototype.toString=function(){return"Const{}"};function hx(a){return a instanceof fx&&a.constructor===fx&&a.b===gx?"":"type_error:Const"}var gx={};function ix(){this.b="";this.g=jx}ix.prototype.Qj=!0;var jx={};ix.prototype.Pj=function(){return this.b};function kx(a){var b=new ix;b.b=a;return b}var lx=kx(""),mx=/^[-.%_!# a-zA-Z0-9]+$/;function nx(){this.b=ox}nx.prototype.Qj=!0;nx.prototype.Pj=function(){return""};nx.prototype.dt=!0;nx.prototype.yh=function(){return 1};var ox={};function px(){this.b="";this.j=qx;this.g=null}px.prototype.dt=!0;px.prototype.yh=function(){return this.g};px.prototype.Qj=!0;px.prototype.Pj=function(){return this.b};function rx(a){return a instanceof px&&a.constructor===px&&a.j===qx?a.b:"type_error:SafeHtml"}var sx=/^[a-zA-Z0-9-]+$/,tx=ec("action","cite","data","formaction","href","manifest","poster","src"),ux=ec("link","script","style");
function vx(a){function b(a){if(ha(a))z(a,b);else{if(!(a instanceof px)){var g=null;a.dt&&(g=a.yh());a=wx(Da(a.Qj?a.Pj():String(a)),g)}d+=rx(a);a=a.yh();0==c?c=a:0!=a&&c!=a&&(c=null)}}var c=0,d="";z(arguments,b);return wx(d,c)}var qx={};function wx(a,b){var c=new px;c.b=a;c.g=b;return c}wx("",0);function xx(a,b){ha(b)||(b=[b]);var c=A(b,function(a){return s(a)?a:a.rp+" "+a.duration+"s "+a.timing+" "+a.qp+"s"});yx(a,c.join(","))}
var zx=function(a){var b=!1,c;return function(){b||(c=a(),b=!0);return c}}(function(){if(qc)return Bc("10.0");var a=document.createElement("div"),b=Ef(),c={transition:"opacity 1s linear"};b&&(c[b+"-transition"]="opacity 1s linear");c={style:c};if(!sx.test("div"))throw Error("Invalid tag name <div>.");if("div"in ux)throw Error("Tag name <div> is not allowed for SafeHtml.");var d=null,b="<div";if(c)for(var e in c){if(!sx.test(e))throw Error('Invalid attribute name "'+e+'".');var g=c[e];if(null!=g){if(g instanceof
fx)g=hx(g);else if("style"==e.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 ix)){var h="",k=void 0;for(k in g){if(!/^[-_a-zA-Z0-9]+$/.test(k))throw Error("Name allows only [-_a-zA-Z0-9], got: "+k);var l=g[k];null!=l&&(l instanceof fx?l=hx(l):mx.test(l)||(l="zClosurez"),h+=k+":"+l+";")}g=h?kx(h):lx}h=void 0;h=g instanceof ix&&g.constructor===ix&&g.g===jx?g.b:"type_error:SafeStyle";g=h}else{if(/^on/i.test(e))throw Error('Attribute "'+
e+'" requires goog.string.Const value, "'+g+'" given.');if(g instanceof nx)g=g instanceof nx&&g.constructor===nx&&g.b===ox?"":"type_error:SafeUrl";else if(e.toLowerCase()in tx)throw Error('Attribute "'+e+'" requires goog.string.Const or goog.html.SafeUrl value, "'+g+'" given.');}b+=" "+e+'="'+Da(String(g))+'"'}}e=void 0;n(e)?ha(e)||(e=[e]):e=[];!0===Vw.div?b+=">":(d=vx(e),b+=">"+rx(d)+"</div>",d=d.yh());(c=c&&c.dir)&&(/^(ltr|rtl|auto)$/i.test(c)?d=0:d=null);b=wx(b,d);a.innerHTML=rx(b);a=a.firstChild;
b=a.style[ab("transition")];return""!=("undefined"!==typeof b?b:a.style[If(a,"transition")]||"")});function yx(a,b){Gf(a,"transition",b)};function Ax(a,b){(a=Mc(a))&&a.style&&(cg(a,b),Q(a,"hid",!b))}function Bx(a){return(a=Mc(a))?!("none"==a.style.display||og(a,"hid")):!1}function Cx(a){z(arguments,function(a){Ax(a,!0)})}function Dx(a){z(arguments,function(a){Ax(a,!1)})}var Ex={};function Fx(a){if(a in Ex)return Ex[a];var b=Ff(a,document.body.style);return Ex[a]=b}function Gx(a,b,c){(a=Mc(a))&&a.style&&(b=Fx(b))&&(a.style[b]=c)};function Hx(a,b,c){var d=a.B,e=a.C,g=a.b?a.b:"xy",h=Ix(c,a.k,g);a=Jx(c,a.j,g);var g=640*b.width*h/100,k=360*b.height*a/100;return new yf(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 Ix(a,b,c){var d=(c="xx"==c||"xy"==c)?640:360;return(d+((c?a.width:a.height)-d)*b)/d}function Jx(a,b,c){var d=(c="xy"==c||"yy"==c)?360:640;return(d+((c?a.height:a.width)-d)*b)/d};function Kx(a,b,c,d,e,g,h,k,l,q,r){this.x=a;this.y=b;this.o=c;this.h=d;this.g=e;this.A=g;this.B=h;this.C=k;this.k=l;this.j=q;this.b=r}function Lx(a,b){if(!a)return null;var c=Cw(a.x,0),d=Cw(a.y,0),e=Cw(a.w,0),g=Cw(a.h,0),h=Ew(a.t),k=Cw(a.scaleSlope,1);return b(c,d,e,g,h,Cw(a.d,0),Cw(a.px,0),Cw(a.py,0),Cw(a.scaleSlopeX,k),Cw(a.scaleSlopeY,k),Aw(a.scaleDimension,Uw,"xy"))}
function Mx(a,b,c){c=c?Mx(c,b):null;a=Hx(a,new yf(a.x,a.y,a.o,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=Ib(a.left,b.left,b.left+b.width-a.width):(c.left=b.left,c.width=b.width),a.height<b.height?c.top=Ib(a.top,b.top,b.top+b.height-a.height):(c.top=b.top,c.height=b.height));return c}function Nx(a){return a?Lx(a,function(a,c,d,e,g,h,k,l,q,r,t){return new Kx(a,c,d,e,g,h,k,l,q,r,t)}):null};function Ox(a,b,c,d,e,g,h,k,l,q,r,t,y){Kx.call(this,a,b,c,d,e,k,l,q,r,t,y);this.D=g;this.F=h}w(Ox,Kx);function Px(a){if(!a)return null;var b=Cw(a.sx,0),c=Cw(a.sy,0);return Lx(a,function(a,e,g,h,k,l,q,r,t,y,D){return new Ox(a,e,g,h,k,b,c,l,q,r,t,y,D)})};function Qx(a,b,c,d){this.type=a;this.g=b;this.b=c;this.j=d}var Rx={oE:"anchored",bJ:"rect",pJ:"shapeless"};function Sx(a){if(!a)return null;var b=Aw(a.type,Rx,"rect"),c=Fw(a.rectRegion,Nx),d=Fw(a.anchoredRegion,Px);a=Fw(a.shapelessRegion,Nx);return new Qx(b,c,d,a)}function Tx(a){return a.g&&a.g.length?a.g[0]:a.b&&a.b.length?a.b[0]:a.j&&a.j.length?a.j[0]:null};function Ux(a,b){this.g=a;this.b=b};function Vx(a,b){this.state=a;this.b=b}var Wx={CLOSED:"closed",QI:"playerControlShow",zE:"rollOver",AE:"shown"};function Xx(a){if(!a)return null;var b=Aw(a.state,Wx);a=xw(a.ref);return b?new Vx(b,a):null};function Yx(a,b,c,d){this.b=a||[];this.j=b||[];this.k=c;this.g=d;this.value=!1}function Zx(a){if(!a)return null;var b=Fw(a.condition,Xx),c=Fw(a.notCondition,Xx),d=Bw(a.show_delay,!1);a=Bw(a.hide_delay,!1);return b||c?new Yx(b,c,d,a):null}function $x(a,b,c){z(a.b,ra(b,!1),c);z(a.j,ra(b,!0),c)};function ay(a,b,c,d,e,g,h,k,l,q,r,t,y,D){this.id=a;this.type=b;this.style=c;this.A=d;this.g=e;this.o=g||[];this.C=h||[];this.b=k;this.D=l;this.k=q;this.B=r;this.j=t;this.data=y;this.Tb=D}
var by={oE:"anchored",nt:"branding",EG:"channel",OG:"cta",RH:"highlightText",gI:"label",SI:"playlist",TI:"popup",xJ:"speech",BE:"subscribe",NJ:"title",VIDEO:"video",lK:"vote",oK:"website"},cy={nt:"branding",vG:"card",QH:"highlight",IMAGE:"image",MARKER:"marker",PAUSE:"pause",XI:"promotion",Xm:"survey",TEXT:"text",pK:"widget"},dy={hK:"video_relative",RI:"player_relative"};
function ey(a){if(!a)return null;var b=xw(a.id);xw(a.author);var c=Aw(a.type,cy),d=Aw(a.style,by),e=zw(ww(a.TEXT)),g=zw(a.data),g=0!=g.length?of(g):{},h;var k=ww(a.segment);k?(xw(k.timeRelative),h=xw(k.spaceRelative),h=(k=Fw(k.movingRegion,Sx))?new Ux(h,k):null):h=null;var k=Fw(a.action,Pw),l=Fw(a.trigger,Zx),q=Rw(ww(a.appearance));q||(q=Rw({}));var r=Aw(a.coordinate_system,dy,"video_relative"),t;t=(t=ww(a.image_source))?new Tw(zw(t.standard_url),zw(t.video_id)):null;var y=Bw(a.closeable,!0),D=zw(a.html_blob);
a=zw(a.log_data);return b&&c?new ay(b,c,d,e,h,k,l,q,r,t,y,D,g,a):null}function fy(a){return(a=gy(a,function(a){return"openUrl"==a.type&&null!=a.url}))?a.url:null}function hy(a){return iy(a,function(a){return null!=a.url&&a.url.b})}function jy(a){return iy(a,function(a){return"click"==a.trigger})}function iy(a,b){return jb(a.o,b,void 0)}function ky(a,b,c){z(a.o,b,c)}function gy(a,b){return B(a.o,b,void 0)}function ly(a,b,c){z(a.C,b,c)}function my(a,b){A(a.C,b,void 0)}
function ny(a){return(a=oy(a))?Tx(a):null}function oy(a){a.g?(a=a.g,a=a.b.length?a.b[0]:null):a=null;return a}function py(a,b){var c=ny(a);return c&&b?Jx(b,c.j,c.b?c.b:"xy"):1};function qy(a){if(!a)return!1;var b=ry(a);return("com"==b[0]&&"youtube"==b[1]||"be"==b[0]&&"youtu"==b[1])&&-1==a.indexOf("/redirect?")}function ry(a){a=a.replace(/https?:\/\//g,"");a=a.split("/",1);return!a||1>a.length||!a[0]?[]:a[0].toLowerCase().split(".").reverse()}
function sy(a,b){if("new"==a.target)return-1;var c=Lw(a);if(!c)return-1;var c=c.replace(/https?:\/\//g,""),d;(d=!qy(c))||(d=Rd(c)||"",d=d.split("/"),d="/"+(1<d.length?d[1]:""),d="/watch"!=d);if(d)return-1;d=xi(c);if(!d||d.v!=b||d.list||d.p)return-1;c=c.split("#",2);if(!c||2>c.length)return-1;(c=wi(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 ty(a,b,c,d){(a=Lw(a))?qy(a)?d=Ai(a,{src_vid:c,feature:"iv",annotation_id:b}):(a?(b=ry(a),b="com"==b[0]&&"google"==b[1]&&"plus"==b[2]):b=!1,b&&d?(d=ra(uy,d.Za,d.Sa),a=new J(a),fe(a,d(a.Mb)),d=a.toString()):d=a):d=null;return d}function uy(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 vy(a){return a.target?"new"==a.target?"_blank":"_top":qy(Lw(a))?"_top":"_blank"};function wy(a,b){this.j=a;this.g=b;this.b={}}function xy(a,b,c,d){b&&(c=yy(a,b,c),a.b[b]=c["p-time"],c["iv-event"]=c.link||c["l-class"]||c["link-id"]?2:7,dc(c,d||{}),a.log_(c))}function zy(a,b,c,d,e){b&&(d=yy(a,b,d),d["iv-event"]=3,d["i-time"]=a.b[b]||"",dc(d,e||{}),a.log_(d,c))}function Ay(a,b,c,d){b&&(c=yy(a,b,c),c["iv-event"]=4,c["i-time"]=a.b[b]||"",dc(c,d||{}),a.log_(c))}
function By(a,b,c){a=a.g.getVideoData();a.nb?(c=a.nb[c])&&-1!=c.search(Je)&&(a=Ba("[ANNOTATION_ID]"),0<=c.indexOf("[ANNOTATION_ID]")?c=c.replace("[ANNOTATION_ID]",b):0<=c.indexOf(a)&&(c=c.replace(a,b)),mf(c)):a.pa&&mf(Ai(a.pa,{label:c,value:"a_id="+b}))}function yy(a,b,c){var d={},e=new je(b);z(e.Ma(),function(a){d[a]=escape(e.get(a,""))});d["p-time"]=a.g.getCurrentTime().toFixed(2);d.ps=a.g.R().qb;d["a-type"]=c||d["a-type"];return d}wy.prototype.log_=function(a,b){this.j.H("command_log","iv",a,b)};function Cy(a,b){this.T=a;this.context=b;this.O=this.N=this.M=null;this.C=0}function Dy(a,b,c,d,e,g){b=new Yt(b,c,{id:d});b.namespace="iv-module";e&&b.$a.subscribe("onEnter",e,a);g&&b.$a.subscribe("onExit",g,a);a.context.$a.H("command_add_cuerange",[b],a.context.g.getPlayerType())}f=Cy.prototype;f.wj=function(){this.context.$a.subscribe("onResize",this.ud,this)};f.K=function(){return this.T};
function Ey(a,b,c,d,e){Wv(a.context.b,b,"click",ra(a.Sg,b,c,d,e),"iv-click-target",a);Wv(a.context.b,b,"touchend",ra(a.Sg,b,c,d,e),"iv-click-target",a)}f.Sg=function(a,b,c,d,e){e.stopPropagation();e.preventDefault();var g=ty(b,c,this.context.k.videoId);a=u(function(){this.context.g.pauseVideo();window.open(g,vy(b))},this);qy(Lw(b))&&"new"!=b.target||(a(),a=null);c={};c.interval=v()-this.C;zy(this.context.logger,d.Tb,a,null,c);"cta"==d.style&&By(this.context.logger,d.id,"cta_annotation_clicked");return!1};
f.show=function(){this.C=v()};f.hide=function(){};f.destroy=function(){ed(this.K())};function Fy(a){a.O||(a.O=ud(a.K(),"html5-video-player"));return a.O}
function Gy(a){var b=a.context.j.Yc;if(!b)return null;var c=a.context.j.Bf||new yf(0,0,b.width,b.height),d=-c.top,e=b.height-c.top,g;a.N||(a.N=H("html5-video-container",Fy(a)));g=a.N;if(!g)return null;g=35-(parseInt(Jf(g,"bottom"),10)||0);var h;a.M||(a.M=H("html5-info-bar",Fy(a)));(h=a.M)&&a.context.j.Vb&&"none"!=Jf(h,"display")&&(d+=Zf(h).height);return new xf(d,b.width-c.left,e-g,-c.left)}f.ud=function(){};function Hy(a,b,c){this.id=a;this.type=b.card_type;this.A=b.teaser_text||b.title;this.k=b.teaser_image_url||b.image_url;this.td=b.start_ms;this.g=b.end_ms;this.ha=c};function Iy(a,b,c,d){Hy.call(this,a,b,d);this.b=b.banner_image_url;this.B=b.image_url;this.j=b.g_plus_url;this.title=b.title;this.description=b.description;this.o=b.html_blobs;this.url=c}w(Iy,Hy);function Jy(a,b,c,d){Hy.call(this,a,b,d);this.B=b.profile_image_url;this.j=b.intro;this.C=b.image_url;this.b=b.playlist_video_count;this.title=b.title;this.o=b.meta_info;this.url=c}w(Jy,Hy);function Ky(a,b,c,d){Hy.call(this,a,b,d);this.F=b.image_url;this.b=b.button_icon_url;this.title=b.title;this.description=b.description;this.j=b.custom_message;this.url=c}w(Ky,Hy);function Ly(a,b,c,d){Ky.call(this,a,b,c,d);this.D=b.ypc_item_type;this.C=b.ypc_item_id;this.B=b.ypc_flow_type;this.o="true"==b.logged_in_user}w(Ly,Ky);function My(a,b,c,d){Hy.call(this,a,b,d);this.B=b.profile_image_url;this.j=b.intro;this.C=b.image_url;this.b=b.video_duration;this.title=b.title;this.o=b.meta_info;this.description=b.description;this.url=c}w(My,Hy);function Ny(a){a&&(a.style.display="block")}function Oy(a){a&&(a.style.display="none")}function Py(a,b){var c=Cg("requestAnimationFrame",window);return L(function(){c?c.call(window,a):a()},b||0)};function X(a){this.template=new zv(a);S(this,this.template);this.element=this.template.K();this.aa="block";this.P=!0;this.pd=[];this.da={}}w(X,Ih);f=X.prototype;f.K=function(){return this.element};f.X=function(a,b){this.template.X(a,b)};f.cd=function(){this.template.cd()};f.oa=function(a,b){Ev(this.template,b||"content",a)};f.show=function(){var a=this.element;a&&(a.style.display=this.aa);this.P=!0;this.element.removeAttribute("aria-hidden")};
f.hide=function(){Oy(this.element);this.P=!1;this.element.setAttribute("aria-hidden","true")};f.wb=function(a){Ug(this.element,a)};f.listen=function(a,b,c,d){return Qy(this,this.element,a,b,c,d)};function Qy(a,b,c,d,e,g,h){b=R(b,c,u(d,e||a),h);a.pd.push(b);s(g)&&(a.da[g]?a.da[g].push(b):a.da[g]=[b]);return b}f.Ga=function(a){Pg(a)};function Ry(a,b){a.Ga(a.da[b]);a.da[b]=[]}f.stopPropagation=function(a){this.listen(a,this.IE)};f.IE=function(a){a.stopPropagation()};
f.J=function(){this.Ga(this.pd);delete this.element;X.G.J.call(this)};function Sy(a){var b=Se("YPC_LOADER_JS");if(window.spf){var c="";if(b){var d=b.indexOf("jsbin/"),e=b.lastIndexOf(".js"),g=d+6;-1<d&&-1<e&&e>g&&(c=b.substring(g,e),c=c.replace(Ty,""),c=c.replace(Uy,""),c=c.replace("debug-",""),c=c.replace("tracing-",""))}spf.script.load(b,c,a)}else Vy(b,a)}function Vy(a,b){var c=Wy(a),d=document.getElementById(c),e=d&&ug(d,"loaded"),g=d&&!e;e?b&&b():(b&&(Th(c,b),ma(b)),g||(d=Xy(a,c,function(){ug(d,"loaded")||(sg(d,"loaded","true"),Wh(c),L(ra(Zh,c),0))})))}
function Xy(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 Wy(a){var b=document.createElement("a");b.href=a;a=b.href.replace(/^[a-zA-Z]+:\/\//,"//");return"js-"+Xa(a)}var Ty=/-vfl[a-zA-Z0-9_+=-]+/,Uy=/-[a-zA-Z]{2,3}_[a-zA-Z]{2,3}(?=(\/|$))/;function Yy(){var a=Se("YPC_LOADER_CSS");if(window.spf){var b=a.match(Zy);spf.style.load(a,b?b[1]:"",void 0)}else $y(a)}function $y(a){var b=az(a),c=document.getElementById(b),d=c&&ug(c,"loaded");d||c&&!d||(c=bz(a,b,function(){ug(c,"loaded")||(sg(c,"loaded","true"),Wh(b),L(ra(Zh,b),0))}))}
function bz(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 az(a){var b=document.createElement("a");b.href=a;a=b.href.replace(/^[a-zA-Z]+:\/\//,"//");return"css-"+Xa(a)}var Zy=/cssbin\/(?:debug-)?([a-zA-Z0-9_-]+?)(?:-2x|-web|-rtl|-vfl|.css)/;function cz(){return!!p("yt.scheduler.instance")}function dz(a,b){void 0===b&&(b=NaN);var c=p("yt.scheduler.instance.addJob");return c?(isNaN(b)&&(b=0),c(a,0,b)):isNaN(b)?(a(),NaN):L(a,b||0)}function ez(a,b){return dz(a,b)}function fz(a){var b=p("yt.scheduler.instance.cancelJob");b?b(a):N(a)}function gz(){var a=p("yt.scheduler.instance.start");a&&(xq("jsp")&&!xq("jsr")&&vq("jsr"),N(hz),a())}var hz=0;
function iz(){var a=p("yt.scheduler.instance.pause");a&&(a(),xq("jsp")||vq("jsp"),N(hz),hz=L(gz,800))};var jz=p("yt.pubsub2.instance_")||new Nh;Nh.prototype.subscribe=Nh.prototype.subscribe;Nh.prototype.unsubscribeByKey=Nh.prototype.Ib;Nh.prototype.publish=Nh.prototype.H;Nh.prototype.clear=Nh.prototype.clear;ba("yt.pubsub2.instance_",jz,void 0);var kz=p("yt.pubsub2.subscribedKeys_")||{};ba("yt.pubsub2.subscribedKeys_",kz,void 0);var lz=p("yt.pubsub2.topicToKeys_")||{};ba("yt.pubsub2.topicToKeys_",lz,void 0);var mz=p("yt.pubsub2.isAsync_")||{};ba("yt.pubsub2.isAsync_",mz,void 0);
ba("yt.pubsub2.skipSubKey_",null,void 0);var nz=2;function oz(a,b,c,d){pz(function(){p("yt.www.ypc.checkout.showYpcOverlay")(a,b,c,d)})}function pz(a){if(nz){Yy();var b=Se("YPC_LOADER_CONFIGS"),c=function(){(nz-=1)||qz(a)};Sy(c);Hi(b,{onSuccess:function(a,b){Qe(b.configs);Xe(b.messages);c()}})}else a&&a()}function qz(a){z(Se("YPC_LOADER_CALLBACKS"),function(a){(a=p(a))&&a()});a&&a()};function rz(a){this.b=a}
function sz(a,b){var c=tz(a,b.url,b.id),d=["div","iv-card-channel-banner",""];b.b&&(d=["div",["iv-card-channel-banner","iv-card-channel-banner-custom"],{style:"background-image: url("+b.b+");"}]);var e=b.j?["a","iv-card-gplus",{href:b.j,target:"_blank",title:Ye("YTP_ON_GOOGLE_PLUS")}]:null,c=new X(["article","iv-card-channel",d,["a",["iv-card-image","iv-click-target"],{href:c},["img",{src:b.B}]],["div","iv-card-content",e,["h1","iv-click-target",b.title],["div","iv-card-subscribe",""],["p","",b.description]]]),
g=c.K();g&&Nb(b.o,function(a,b){var c=Nc(b,g);z(c,function(b){b.innerHTML=a})},c);return c}
function uz(a,b){var c=tz(a,b.url,b.id),d=["ul","iv-card-meta-info"];z(b.o,function(a){d.push(["li","",a])});c=["article",["iv-card-watchable","iv-card-playlist"],["h1",{style:"background-image: url("+b.B+");"},b.j],["div","iv-click-target",["a",["iv-card-image","iv-click-target"],{href:c},["img",{src:b.C}],["div","iv-card-image-overlay",["span","iv-card-playlist-video-count",b.b.toString()],["span","iv-card-playlist-play-all",Ye("YTP_PLAY_ALL")]]],["div",["iv-card-content","iv-click-target"],["h2",
"",b.title],d]]];return new X(c)}
function vz(a,b){var c=tz(a,b.url,b.id),d=["iv-click-target","yt-uix-button","yt-uix-button-primary","yt-uix-button-size-large"],e="";b.b&&(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.b}]]);return new X(["article","iv-card-simple",["div","iv-card-image",{style:"background-image: url("+b.F+");"}],["div","iv-card-content",["h1","",b.title],["p","",b.description],["a",d,{href:c,role:"button"},e,["span","yt-uix-button-content",
b.j]]]])}function wz(a,b,c){var d=vz(a,b),e=d.K();Wv(a.b.b,e,"click",ra(a.g,b,c),"iv-click-target",a);return d}
function xz(a,b){var c=tz(a,b.url,b.id),d=["ul","iv-card-meta-info"];z(b.o,function(a){d.push(["li","",a])});return new X(["article",["iv-card-watchable","iv-card-video"],["h1",{style:"background-image: url("+b.B+");"},b.j],["div","iv-click-target",["a",["iv-card-image","iv-click-target"],{href:c},["img",{src:b.C}],["span","iv-card-video-duration",b.b]],["div",["iv-card-content","iv-click-target"],["h2","",b.title],d]]])}
rz.prototype.g=function(a,b,c){c.stopPropagation();c.preventDefault();Se("YPC_LOADER_ENABLED")?(this.b.g.pauseVideo(),this.b.g.isFullscreen()&&yz(this.b.g.app),this.b.$a.H("external_overlay_activated"),oz(a.D,a.C,a.B,a.o)):b(c.target,a.url,a.id,a.ha,c)};function tz(a,b,c){return b?ty(b,c,a.b.k.videoId,a.b.j):null};function zz(a,b){Cy.call(this,a,b);this.V=!1;this.F=I("div",["iv-cards-thumbnails","hid"]);this.P=I("button",void 0,I("div"));this.o=I("div","iv-cards-background",I("div"),this.P);this.ze=I("div");this.k=I("div",["iv-cards-notif","iv-cards-notif-inactive"],void 0,this.ze,I("button",{type:"button"},I("div")));this.j=I("div","iv-cards-details");this.B=new rz(this.context);this.b=[];this.I=null;this.L=0;this.g=-1;this.Sb=null;this.D=this.A=!1;O(this.K(),"iv-cards");Dy(this,1E3*this.context.k.Oa-1200,
2147483647,"",this.Ou);this.context.g.addEventListener("onStateChange",u(this.Pd,this));this.context.g.addEventListener("onAdStateChange",u(this.Pd,this))}w(zz,Cy);var Az={channel:Iy,fundraising:Ky,merch:Ky,playlist:Jy,product:Ky,tip:Ly,video:My};function Bz(a,b){return new ow(a,[b,a.offsetTop],200,vw)}function Cz(a,b,c){a=new sw(a,200,vw);b&&Ck(a,"end",b,!1,c);return a}function Dz(a){var b=new tw(a,200,vw);Ck(b,"end",ra(function(a,b){Gf(a,"opacity","");b.target.J()},a));return b}
function Ez(a){cg(a.o,!1);a.K().appendChild(a.o);vk(a.o,"click",a.Oi,!1,a);vk(a.o,"touchend",a.Oi,!1,a);a.K().appendChild(a.F);cg(a.j,!1);a.K().appendChild(a.j);a.K().appendChild(a.k);Fz(a);a.context.b.listen(a.k,"click",a.Eq,a);a.context.b.listen(a.k,"touchend",a.Eq,a);a.context.b.listen(a.k,"mouseover",function(){Gz(this);this.Sb&&this.Sb.Am.stop()},a);a.context.b.listen(a.k,"mouseout",function(){this.Sb&&this.Sb.Am.start(200)},a);a.context.$a.subscribe("external_overlay_activated",a.Oi,a);var b=
Gy(a);Ax(a.K(),b?445<b.right-b.left&&243<b.bottom-b.top:!1)}f=zz.prototype;
f.add=function(a){this.V||(Ez(this),this.V=!0);var b=(new X(["button",{type:"button",style:"background-image: url("+a.k+");"}])).K();cg(b,!1);var c,d;switch(a.type){case "fundraising":case "merch":case "product":if(c=vz(this.B,a))d=c.K(),Ey(this,d,a.url,a.id,a.ha);break;case "tip":(c=wz(this.B,a,u(this.Sg,this)))&&(d=c.K());break;case "video":if(c=xz(this.B,a))d=c.K(),Ey(this,d,a.url,a.id,a.ha);break;case "playlist":if(c=uz(this.B,a))d=c.K(),Ey(this,d,a.url,a.id,a.ha);break;case "channel":if(c=sz(this.B,
a))d=c.K(),Ey(this,d,a.url,a.id,a.ha)}if(d){var e={Ud:a,Ck:d,tg:b},g=Ab(this.b,e,function(a,b){return a.Ud.td-b.Ud.td});0>g&&(g=-(g+1));xb(this.b,g,0,e);dd(this.F,b,g);1<this.b.length&&Cx(this.F);c.X(this.j,g);c=ra(this.Tw,e);this.context.b.listen(b,"click",c,this);this.context.b.listen(d,"click",c,this);this.context.b.listen(b,"touchend",c,this);this.context.b.listen(d,"touchend",c,this);Dy(this,a.td,a.g,a.id,ra(this.Uw,a),this.Vw)}};
f.Sg=function(a,b,c,d,e){sd(a,"article","iv-card-active")?zz.G.Sg.call(this,a,b,c,d,e):e.preventDefault()};f.Tw=function(a,b){var c=mb(this.b,function(b){return b===a});Hz(this,c,!0);sd(b.target,"button","yt-uix-button")||b.stopPropagation()};f.Uw=function(){++this.L;Iz(this)?Gz(this):this.D=!0;P(this.k,"iv-cards-notif-inactive")};f.Vw=function(){--this.L;0==this.L&&O(this.k,"iv-cards-notif-inactive")};
function Jz(a,b){if(!a.Sb){a.ud();var c=new X(["div","",["span","",b.A],["span","iv-card-image",{style:"background-image: url("+b.k+");"}]]);a.ze.innerHTML="";bd(a.ze,gd(c.K()));xy(a.context.logger,b.ha.Tb,50)}}function Gz(a){if(!a.Sb){var b=Kz(a);if(!(0>b)){Jz(a,a.b[b].Ud);Xf(a.ze,"");var c=a.ze.offsetWidth;(new qw(a.ze,0,c,400,vw)).play();a.Sb={Am:new Xv(function(){this.Sb&&((new qw(this.ze,c,0,200,vw)).play(),this.Sb=null)},4E3,a),Xx:b};a.Sb.Am.start()}}}function Fz(a){a.ud();Dz(a.k)}
f.Eq=function(a){a&&a.stopPropagation();if(!this.A){a=new $v;Wf(this.K(),this.context.j.Yc);for(var b=0;b<this.b.length;++b){var c=this.b[b].tg;a.add(Dz(c));bg(c,0);cg(c,!0);a.add(Bz(c,b*(c.offsetWidth+15)))}a.add(Cz(this.k));a.add(Dz(this.o));for(b=0;b<this.b.length;++b)a.add(Dz(this.b[b].Ck));this.A=!0;Ck(a,"end",this.ap,!1,this);a.play();this.C=v();this.j.style.width=445*this.b.length+"px";cg(this.j,!0);bg(this.j,1);this.ud();a=this.Sb?this.Sb.Xx:Math.max(0,Kz(this));Hz(this,a,!1);b={};b.notif=
this.Sb?"1":"0";zy(this.context.logger,this.b[a].Ud.ha.Tb,null,50,b);this.I=this.context.b.listen(this.K(),"keydown",this.Yx,this)}};f.ap=function(){this.A=!1};f.Yx=function(a){switch(a.keyCode){case 27:this.Oi();break;case 37:0<this.g&&Hz(this,this.g-1,!0);break;case 39:this.g+1<this.b.length&&Hz(this,this.g+1,!0);break;case 9:Hz(this,this.g+1<this.b.length?this.g+1:0,!0)}a.stopPropagation();a.preventDefault();return!1};
f.Oi=function(a){a&&a.stopPropagation();if(!this.A){var b=new $v;z(this.b,function(a){b.add(Cz(a.tg));b.add(Bz(a.tg,0))});b.add(Cz(this.o));b.add(Dz(this.k));b.add(Cz(this.j,function(){Wf(this.K(),"","")},this));this.A=!0;Ck(b,"end",this.ap,!1,this);b.play();a={};a.interval=v()-this.C;this.b[this.g]&&Ay(this.context.logger,this.b[this.g].Ud.ha.Tb,null,a);this.I&&this.context.b.Ga(this.I)}};f.Ou=function(){"none"!=this.j.style.display&&this.context.g.pauseVideo()};
function Hz(a,b,c){var d=a.b[b];a.P.focus();if(a.g!=b){if(0<=a.g){var e=a.b[a.g];P(e.tg,"yt-uix-button-toggled");P(e.Ck,"iv-card-active")}a.g=b;O(d.tg,"yt-uix-button-toggled");O(d.Ck,"iv-card-active");Bz(a.j,Lz(a).x).play();b={};b.nav=c?"1":"0";xy(a.context.logger,d.Ud.ha.Tb,null,b)}}function Lz(a){var b=Gy(a),c=b.right-b.left,b=b.bottom-b.top,d=Zf(a.j);return new F(445*-(isNaN(void 0)?a.g||0:NaN)+(c-445)/2,(b-d.height+(1<a.b.length?63:0))/2)}
f.ud=function(){var a=Gy(this);a&&(Ax(this.K(),a?445<a.right-a.left&&243<a.bottom-a.top:!1),Bx(this.j)&&(Wf(this.K(),this.context.j.Yc),Lf(this.j,Lz(this))),Lf(this.K(),a.left,a.top))};f.Pd=function(a){Iz(this,a)&&this.D&&(this.D=!1,Gz(this))};function Iz(a,b){return 2==Ms(a.context.g.app).getPlayerType()?1==(isNaN(b)?a.context.g.getAdState():b):1==(isNaN(b)?a.context.g.getPlayerState():b)}
function Kz(a){var b=1E3*a.context.g.getCurrentTime();return ob(a.b,function(a){return a.Ud.td<=b&&b<a.Ud.g})};function Mz(a,b,c){Cy.call(this,a,b);this.ha=c;this.g=!1}w(Mz,Cy);Mz.prototype.wj=function(){Mz.G.wj.call(this);var a=this.ha.data;"start_ms"in a&&"end_ms"in a&&Dy(this,this.ha.data.start_ms,this.ha.data.end_ms,this.ha.id,this.show,this.hide)};function Nz(a,b,c){Mz.call(this,a,b,c);this.j=null;this.k=!1;this.oj=null;this.yd=!1;this.b=0}w(Nz,Mz);
function Oz(a){var b=a.ha.data;a.b=b.image_width;a.j=I("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=I("div","branding-img-container",a.j);a.K().appendChild(c);var d=I("div","iv-branding-context-name");md(d,b.channel_name);var e=I("div","iv-branding-context-subscribe");a.ha.j?e.innerHTML=a.ha.j:b.num_subscribers&&md(e,b.num_subscribers);c=I("div","iv-branding-context-subscribe-caret");d=I("div",["branding-context-container-inner",
"iv-view-target"],c,d,e);e=I("div","branding-context-container-outer",d);Gf(e,"right",a.b+"px");a.K().appendChild(e);Ey(a,a.K(),fy(a.ha),a.ha.id,a.ha);a.oj=new Xv(ra(function(a){var b=Zf(a.parentElement);(new pw(a.parentElement,[b.width,b.height],[0,0],200,uw)).play();this.yd=!1},d),500,a);Wv(a.context.b,a.K(),"mouseover",ra(function(a,b,c){this.oj.stop();if(!this.yd){var d=Zf(a);Xf(a,d.width);c=Math.min(d.height,c);c=Math.max(c/2-10,0);Lf(b,d.width,c);this.yd=!0;b=9;d=Zf(a);c=Zf(a.parentElement);
(new pw(a.parentElement,[c.width,c.height],[d.width+b,d.height],200,uw)).play()}},d,c,b.image_height),"iv-view-target",a);Wv(a.context.b,a.K(),"mouseout",u(a.oj.start,a.oj),"iv-view-target",a)}Nz.prototype.show=function(){if(!this.g){Nz.G.show.call(this);this.k||(Oz(this),this.k=!0);this.ud();xy(this.context.logger,this.ha.Tb);Cx(this.K());this.g=!0;var a=this.j,b,c=ag(a).width,d=ja(void 0)?void 0:c;b=b||0;Lf(a,d);b=new nw(a,[d,a.offsetTop],[d-c-b,a.offsetTop],200,uw);vk(b,"begin",ra(Cx,a));b.play()}};
Nz.prototype.hide=function(){this.g&&(Dx(this.K()),this.g=!1)};Nz.prototype.ud=function(){var a=Gy(this);if(a){var b=a.right-this.b-20,a=a.top+20;Lf(this.K(),b,a)}};function Pz(a,b,c,d,e,g){this.b=a;this.j=b;this.k=c;this.logger=d;this.g=e;this.$a=g};function Qz(a,b,c){Mz.call(this,a,b,c);this.hj=this.j=this.o=!1;this.k=5E3;this.b=null;this.Rf=I("div","iv-promo-contents")}w(Qz,Mz);
function Rz(a){var b=a.ha.data;a.k=b.collapse_delay_ms||a.k;var c=["iv-promo","iv-promo-inactive"];a.context.j.b.U&&c.push("iv-promo-exp");var d;if(b.image_url){d=I("div","iv-promo-img");var e=I("img",{src:b.image_url,"class":"iv-click-target"});d.appendChild(e);b.video_duration?(e=I("span",["iv-promo-video-duration","iv-click-target"],b.video_duration),d.appendChild(e)):b.playlist_length&&(e=I("span",["iv-promo-playlist-length","iv-click-target"],b.playlist_length.toString()),d.appendChild(e))}var e=
I("div","iv-promo-txt"),g,h,k;switch(a.ha.style){case "cta":case "website":g=I("p","iv-click-target",I("strong",null,b.text_line_1));h=I("p",["iv-promo-link","iv-click-target"],b.text_line_2);O(e,"iv-click-target");break;case "playlist":case "video":g=I("p","iv-click-target",b.text_line_1);h=I("p","iv-click-target",I("strong",null,b.text_line_2));O(e,"iv-click-target");c.push("iv-promo-video");break;case "vote":g=I("p",null,I("strong",null,b.text_line_1)),h=I("p",null,b.text_line_2),k=I("div","iv-promo-button"),
b=I("button",["yt-uix-button","yt-uix-button-primary"],I("span","yt-uix-button-content",b.button_text)),a.context.b.listen(b,"click",function(a){a.stopPropagation();zy(this.context.logger,this.ha.Tb,null,null,{contest_vote:"1"});var b=this.ha.data;a=H("iv-promo-txt",this.Rf);var c=H("iv-promo-button",this.Rf),d=I("div",["iv-promo-txt","iv-click-target"]),e=I("p","iv-click-target",I("strong",null,b.text_line_3)),b=I("p","iv-click-target",b.text_line_4);bd(d,e,b);ed(c);fd(d,a);Ey(this,this.Rf,fy(this.ha),
this.ha.id,this.ha)},a),k.appendChild(b),c.push("iv-promo-with-button")}g&&e.appendChild(g);h&&e.appendChild(h);a.Rf.appendChild(e);k&&a.Rf.appendChild(k);g=I("div","iv-promo-actions");h=I("div","iv-promo-expand");g.appendChild(h);a.context.b.listen(a.K(),"mouseover",a.jr,a);a.context.b.listen(h,"touchend",function(a){a.stopPropagation();this.jr();this.hj=!1},a);a.context.b.listen(a.K(),"mouseout",a.gA,a);h=I("div","iv-promo-close");g.appendChild(h);Sz(a,u(function(){this.hide()},a),h);pg(a.K(),c);
d&&ad(a.K(),d);ad(a.K(),a.Rf);ad(a.K(),g);Ey(a,a.K(),fy(a.ha),a.ha.id,a.ha)}f=Qz.prototype;f.show=function(){this.g||(Qz.G.show.call(this),this.o||(Rz(this),this.o=!0),this.ud(),Cx(this.K()),this.ha&&this.ha.Tb&&xy(this.context.logger,this.ha.Tb),"cta"==this.ha.style&&By(this.context.logger,this.ha.id,"cta_annotation_shown"),P(this.K(),"iv-promo-inactive"),this.g=!0,this.b&&(Pk(this.b),this.b=null),Tz(this),Uz(this,this.k))};f.hide=function(){this.g&&(O(this.K(),"iv-promo-inactive"),this.g=!1)};
f.jr=function(){this.hj=!0;Tz(this);Uz(this,500)};f.gA=function(){this.hj=!1;Vz(this)};function Vz(a){a.j||a.hj||a.b||(O(a.K(),"iv-promo-collapsed"),a.j=!0)}function Tz(a){a.j&&(P(a.K(),"iv-promo-collapsed"),a.j=!1)}function Uz(a,b){a.b||(a.b=Ok(function(){this.b&&(Pk(this.b),this.b=null);Vz(this)},b,a))}f.ud=function(){var a=Gy(this);if(a){var b=Yf(this.K()),b=b.width<a.right-a.left&&b.height<a.bottom-a.top?a.bottom-b.height- -8-25:a.bottom;Lf(this.K(),a.left,b)}};
function Sz(a,b,c){function d(a){Ay(this.context.logger,this.ha.Tb);"cta"==this.ha.style&&By(this.context.logger,this.ha.id,"cta_annotation_closed");b(a);a.stopPropagation()}a.context.b.listen(c,"click",u(d,a));a.context.b.listen(c,"touchend",u(d,a))};function Wz(a,b,c){this.b={};this.g=!1;this.o="ivTrigger:"+a;this.j=c;$x(b,function(a,b){var c=Xz(b.state,b.b);this.j.subscribe(c,u(this.k,this,c,a));this.b[c]=a},this)}Wz.prototype.k=function(a,b,c,d){this.b[a]=b?!c:c;a=Pb(this.b,function(a){return a});this.g!=a&&(this.g=a,this.j.H(this.o,a,d))};function Xz(a,b){var c="ivTriggerCondition:"+a;return b?c+":"+b:c};function Yz(a,b,c){this.j=a;this.ha=b;this.b=c;this.g=null;this.o=this.isVisible=!1;Zz(b,a)}function Zz(a,b){my(a,function(c){return new Wz(a.id,c,b)})}Yz.prototype.hide=function(){this.isVisible=!1;this.j.ia("onResize",this.k,this);this.b&&this.b.hide()};Yz.prototype.show=function(){this.isVisible=!0;this.b&&this.b.show();this.j.subscribe("onResize",this.k,this)};Yz.prototype.destroy=function(){this.j.ia("onResize",this.k,this);if(this.b){var a=this.b;a.C.removeAll();a.g&&ed(a.g);a.j&&a.j.K()&&ed(a.j.K())}$z(this)};
function $z(a){a.g&&(a.g.stop(),a.g=null)}Yz.prototype.k=function(){this.b&&aA(this.b)};function bA(){};function cA(a,b,c,d,e,g,h,k){this.o=a;this.B=b;this.A=c;this.C=d;this.b=e;this.g=g;this.j=n(h)?h:null;this.k=n(k)?k:null}w(cA,bA);function dA(){this.ba=[];this.ea=[];this.Jd=[]}dA.prototype.dg=null;dA.prototype.od=null;dA.prototype.Lj=!0;var eA=[2,2,6,6,0];f=dA.prototype;f.clear=function(){this.ba.length=0;this.ea.length=0;this.Jd.length=0;delete this.dg;delete this.od;delete this.Lj;return this};function fA(a,b,c){0==db(a.ba)?a.Jd.length-=2:(a.ba.push(0),a.ea.push(1));a.Jd.push(b,c);a.od=a.dg=[b,c]}
f.Xa=function(a){var b=db(this.ba);if(null==b)throw Error("Path cannot start with lineTo");1!=b&&(this.ba.push(1),this.ea.push(0));for(b=0;b<arguments.length;b+=2){var c=arguments[b],d=arguments[b+1];this.Jd.push(c,d)}this.ea[this.ea.length-1]+=b/2;this.od=[c,d]};f.close=function(){var a=db(this.ba);if(null==a)throw Error("Path cannot start with close");4!=a&&(this.ba.push(4),this.ea.push(1),this.od=this.dg);return this};
function gA(a,b,c,d,e){var g=a.od[0]-b*Math.cos(d*Math.PI/180),h=a.od[1]-c*Math.sin(d*Math.PI/180),g=g+b*Math.cos((d+e)*Math.PI/180),h=h+c*Math.sin((d+e)*Math.PI/180);a.ba.push(3);a.ea.push(1);a.Jd.push(b,c,d,e,g,h);a.Lj=!1;a.od=[g,h]}function hA(a,b){for(var c=a.Jd,d=0,e=0,g=a.ba.length;e<g;e++){var h=a.ba[e],k=eA[h]*a.ea[e];b(h,c.slice(d,d+k));d+=k}}
f.clone=function(){var a=new this.constructor;a.ba=this.ba.concat();a.ea=this.ea.concat();a.Jd=this.Jd.concat();a.dg=this.dg&&this.dg.concat();a.od=this.od&&this.od.concat();a.Lj=this.Lj;return a};f.isEmpty=function(){return 0==this.ba.length};function iA(a,b){this.D=a;this.F=null==b?1:b}w(iA,bA);function jA(a,b){this.b=a;this.g=b};function kA(){}da(kA);kA.prototype.b=0;function lA(a){U.call(this);this.I=a||Jc();this.ta=null;this.Oe=!1;this.b=null;this.o=void 0;this.A=this.C=this.D=null}w(lA,U);f=lA.prototype;f.NB=kA.getInstance();f.getId=function(){return this.ta||(this.ta=":"+(this.NB.b++).toString(36))};f.K=function(){return this.b};f.ci=function(a){if(this.D&&this.D!=a)throw Error("Method not supported");lA.G.ci.call(this,a)};f.ts=function(){this.b=this.I.createElement("div")};
f.sh=function(){mA(this,function(a){a.Oe&&a.sh()});this.o&&this.o.removeAll();this.Oe=!1};f.J=function(){this.Oe&&this.sh();this.o&&(this.o.dispose(),delete this.o);mA(this,function(a){a.dispose()});this.b&&ed(this.b);this.D=this.b=this.A=this.C=null;lA.G.J.call(this)};f.nd=function(){return this.b};function mA(a,b){a.C&&z(a.C,b,void 0)}
f.removeChild=function(a,b){if(a){var c=s(a)?a:a.getId();a=this.A&&c?$b(this.A,c)||null:null;if(c&&a){var d=this.A;c in d&&delete d[c];rb(this.C,a);b&&(a.sh(),a.b&&ed(a.b));c=a;if(null==c)throw Error("Unable to set parent component");c.D=null;lA.G.ci.call(c,null)}}if(!a)throw Error("Child is not in parent component");return a};function nA(a,b,c,d,e){lA.call(this,e);this.width=a;this.height=b;this.k=c||null;this.F=d||null}w(nA,lA);nA.prototype.j=null;nA.prototype.Hh=function(){return this.Oe?Yf(this.K()):ja(this.width)&&ja(this.height)?new G(this.width,this.height):null};function oA(a){var b=a.Hh();return b?b.width/(a.k?new G(a.k,a.F):a.Hh()).width:0}nA.prototype.resume=function(){};function pA(a,b){U.call(this);this.Dh=a;this.Ik=b;this[jk]=!1}w(pA,U);f=pA.prototype;f.Ik=null;f.Dh=null;f.K=function(){return this.Dh};f.addEventListener=function(a,b,c,d){vk(this.Dh,a,b,c,d)};f.removeEventListener=function(a,b,c,d){Dk(this.Dh,a,b,c,d)};f.J=function(){pA.G.J.call(this);var a=this.Dh;if(a)if(kk(a))a.removeAllListeners(void 0);else if(a=yk(a)){var b=0,c;for(c in a.b)for(var d=a.b[c].concat(),e=0;e<d.length;++e)Ek(d[e])&&++b}};function qA(a,b,c,d){pA.call(this,a,b);a=this.Ik;b=this.K();c?(b.setAttribute("stroke",c.g),c=c.b,s(c)&&-1!=c.indexOf("px")?b.setAttribute("stroke-width",parseFloat(c)/oA(a)):b.setAttribute("stroke-width",c)):b.setAttribute("stroke","none");c=this.Ik;a=this.K();if(d instanceof iA)a.setAttribute("fill",d.D),a.setAttribute("fill-opacity",d.F);else if(d instanceof cA){b="lg-"+d.o+"-"+d.B+"-"+d.A+"-"+d.C+"-"+d.b+"-"+d.g;var e=rA(c,b);if(!e){var e=sA(c,"linearGradient",{x1:d.o,y1:d.B,x2:d.A,y2:d.C,gradientUnits:"userSpaceOnUse"}),
g="stop-color:"+d.b;ja(d.j)&&(g+=";stop-opacity:"+d.j);g=sA(c,"stop",{offset:"0%",style:g});e.appendChild(g);g="stop-color:"+d.g;ja(d.k)&&(g+=";stop-opacity:"+d.k);d=sA(c,"stop",{offset:"100%",style:g});e.appendChild(d);e=tA(c,b,e)}a.setAttribute("fill","url(#"+e+")")}else a.setAttribute("fill","none")}w(qA,pA);function uA(a,b){pA.call(this,a,b)}w(uA,pA);function vA(a,b){pA.call(this,a,b)}w(vA,pA);function wA(a,b,c,d){qA.call(this,a,b,c,d)}w(wA,qA);function xA(a,b){pA.call(this,a,b)}w(xA,uA);xA.prototype.clear=function(){cd(this.K())};function yA(a,b,c,d){qA.call(this,a,b,c,d)}w(yA,wA);function zA(a,b){pA.call(this,a,b)}w(zA,vA);function AA(a,b,c,d,e){nA.call(this,a,b,c,d,e);this.g={};this.M=sc&&!Bc(526);this.L=new Tk(this)}var BA;w(AA,nA);var CA=0;function sA(a,b,c){a=a.I.b.createElementNS("http://www.w3.org/2000/svg",b);if(c)for(var d in c)a.setAttribute(d,c[d]);return a}f=AA.prototype;
f.ts=function(){var a=sA(this,"svg",{width:this.width,height:this.height,overflow:"hidden"}),b=sA(this,"g");this.B=sA(this,"defs");this.j=new xA(b,this);a.appendChild(this.B);a.appendChild(b);this.b=a;this.k&&(this.K().setAttribute("preserveAspectRatio","none"),this.M?this.Cq():this.K().setAttribute("viewBox","0 0 "+(this.k?this.k+" "+this.F:"")))};
f.Cq=function(){if(this.Oe){var a=this.Hh();if(0==a.width)this.K().style.visibility="hidden";else{this.K().style.visibility="";var b=a.width/this.k,a=a.height/this.F;this.j.K().setAttribute("transform","scale("+b+" "+a+") translate(0 0)")}}};
f.Hh=function(){if(!rc)return this.Oe?Yf(this.K()):AA.G.Hh.call(this);var a=this.width,b=this.height,c=s(a)&&-1!=a.indexOf("%"),d=s(b)&&-1!=b.indexOf("%");if(!this.Oe&&(c||d))return null;var e,g;c&&(e=this.K().parentNode,g=Zf(e),a=parseFloat(a)*g.width/100);d&&(e=e||this.K().parentNode,g=g||Zf(e),b=parseFloat(b)*g.height/100);return new G(a,b)};f.clear=function(){this.j.clear();cd(this.B);this.g={}};function DA(a,b,c,d){b=sA(a,"path",{d:EA(b)});c=new yA(b,a,c,d);a.j.K().appendChild(c.K())}
function EA(a){var b=[];hA(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 tA(a,b,c){if(b in a.g)return a.g[b];var d="_svgdef_"+CA++;c.setAttribute("id",d);a.g[b]=d;a.B.appendChild(c);return d}
function rA(a,b){return b in a.g?a.g[b]:null}f.sh=function(){AA.G.sh.call(this);this.M&&this.L.Ga(FA(),"tick",this.Cq)};f.J=function(){delete this.g;delete this.B;delete this.j;AA.G.J.call(this)};function FA(){BA||(BA=new Mk(400),BA.start());return BA};function GA(a,b,c){this.b=a;this.g=0;this.B=b;this.C=c||70;this.j=!1}GA.prototype.start=function(a){this.A=v();this.g=a;this.o=this.A+this.g;this.j=!0;Cx(this.b);Ve(this.k);this.k=Ue(u(this.D,this),this.C)};GA.prototype.stop=function(){this.j=!1;Dx(this.b);this.k&&Ve(this.k)};
GA.prototype.D=function(){if(this.j){var a=v(),b;b=0==this.g||a>=this.o?0:1-(a-this.A)/this.g;var c=H("countdowntimer-diminishing-pieslice",this.b),d=Bg("svg",this.b);!d&&this.b.querySelectorAll&&(d=this.b.querySelectorAll("svg"),d=d.length?d[0]:null);var d=parseInt(d.getAttribute("width"),10),e=new dA,g=d/2-5;fA(e,d/2,d/2);e.Xa(d/2,5);gA(e,g,g,-90,360*-b);e.Xa(d/2,d/2);e.close();c.setAttribute("d",EA(e));a>=this.o&&(this.stop(),this.B&&this.B())}};function HA(){this.element=this.b=null;this.priority=0;this.o=this.C=!1;this.A=null}w(HA,Ih);HA.prototype.listen=function(a,b,c){return this.element.listen(a,b,c||this)};HA.prototype.Ga=function(a){this.element.Ga(a)};function IA(a,b,c,d){X.call(this,["div",{className:"ytp-button",role:"button","aria-label":"{{label}}","aria-disabled":"{{disabled}}",tabindex:"{{tabindex}}"},"{{content}}"]);this.aa="inline-block";this.D=a;this.I=this.g=this.o=null;this.k=!1;this.listen("click",this.CB);this.listen("keypress",this.DB);this.D.Og(this.element,u(this.BB,this));b&&JA(this,b);c&&KA(this,c);d&&(this.g=d)}w(IA,X);function JA(a,b){b&&""!=b&&(a.o&&P(a.element,a.o),a.o=b,O(a.element,b))}
function KA(a,b){Ev(a.template,"label",b)}function LA(a,b){a.I=b;Ev(a.template,"tabindex",b)}f=IA.prototype;f.BB=function(){return this.k?null:this.g?this.g:null};f.enable=function(){this.k=!1;this.template.update({disabled:null,tabindex:this.I});P(this.element,"ytp-disabled")};f.disable=function(){this.k=!0;this.template.update({disabled:"true",tabindex:null});O(this.element,"ytp-disabled")};f.CB=function(a){this.k&&(a.stopImmediatePropagation(),a.preventDefault())};
f.DB=function(a){if(13==a.keyCode||32==a.keyCode)a.stopPropagation(),a.preventDefault(),this.wb("click")};f.J=function(){this.D.ln(this.element);this.D=null;IA.G.J.call(this)};function MA(a,b,c){X.call(this,["div","ytp-segmented-control"]);this.k=a;this.g=-1;this.b=[];if(null!=b)for(Mh(this.b),this.b=[],a=0;a<b.length;a++){var d=new IA(this.k);this.b.push(d);c?d.oa(["div",b[a]]):d.oa(b[a]);0!=a&&O(d.K(),"ytp-segmented-control-other");NA(d,a==this.g);d.listen("click",ra(this.j,a),this);d.X(this.element)}}w(MA,X);
MA.prototype.X=function(a,b){MA.G.X.call(this,a,b);for(var c=0,d=0;d<this.b.length;d++)c=Math.max(c,Yf(this.b[d].K()).width);if(c)for(d=0;d<this.b.length;d++)Xf(this.b[d].K(),c)};function OA(a,b){a.g=b;for(var c=0;c<a.b.length;c++)NA(a.b[c],c==b)}MA.prototype.getSelected=function(){return this.g};function PA(a,b){for(var c=0;c<a.b.length;c++)LA(a.b[c],b)}
function NA(a,b){if(b){var c=a.K();P(c,"ytp-segmented-control-deselected");O(c,"ytp-segmented-control-selected")}else c=a.K(),P(c,"ytp-segmented-control-selected"),O(c,"ytp-segmented-control-deselected")}MA.prototype.j=function(a){a!=this.g&&(OA(this,a),this.wb("change"))};MA.prototype.J=function(){Mh(this.b);this.b=[];MA.G.J.call(this)};function QA(a){HA.call(this);this.b=Y(0,"YTP_ANNOTATIONS");this.element=new MA(a,[Y(0,"YTP_ON"),Y(0,"YTP_OFF")]);S(this,this.element);PA(this.element,2400);this.priority=2;OA(this.element,1)}w(QA,HA);QA.prototype.getSelected=function(){return this.element.getSelected()};function RA(a,b){this.start=a<b?a:b;this.end=a<b?b:a}RA.prototype.clone=function(){return new RA(this.start,this.end)};function SA(){this.b=!1;this.o=this.j=null}function TA(a,b,c){a.j?(Wf(a.j.K(),b,c),a.j.clear()):(b=new AA(b,c,void 0,void 0,void 0),a.j=b,a.j.ts(),a.o=I("div"),b=a.j.K(),a.o.appendChild(b));return a.j}SA.prototype.K=function(){return this.o};SA.prototype.g=function(){};function UA(a,b,c){var d=document.createElementNS("http://www.w3.org/2000/svg",a);b&&Nb(b,function(a,b){d.setAttribute(b,a)});for(var e=2;e<arguments.length;e++)d.appendChild(arguments[e]);return d}function VA(a,b){var c;c=":"+(kA.getInstance().b++).toString(36);b.setAttribute("result",c);a.appendChild(b);return c};function WA(a,b){var c=VA(a,UA("feGaussianBlur",{"in":b,stdDeviation:"1.8"})),c=VA(a,UA("feDiffuseLighting",{"in":c,surfaceScale:"4",diffuseConstant:"1"},UA("feDistantLight",{azimuth:"270",elevation:"15","lighting-color":"white"}))),c=VA(a,UA("feComposite",{"in":c,in2:b,operator:"in"}));return VA(a,UA("feComposite",{in2:c,"in":b,operator:"arithmetic",k2:1,k3:.5,k4:0}))}
function XA(a,b){var c=VA(a,UA("feOffset",{"in":b,dx:"-7",dy:"-7"})),c=VA(a,UA("feGaussianBlur",{"in":c,stdDeviation:"3"})),c=VA(a,UA("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=VA(a,UA("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=VA(a,UA("feGaussianBlur",{"in":d,stdDeviation:"1"})),c=VA(a,UA("feComposite",{operator:"out","in":c,in2:d}));return VA(a,UA("feComposite",{operator:"over","in":b,in2:c}))}
function YA(a,b){return b}function ZA(a){var b=UA("filter",{filterUnits:"userSpaceOnUse"}),c="SourceGraphic";z(a,function(a){t:{switch(a){case "bevel":a=WA;break t;case "dropshadow":a=XA;break t}a=YA}c=a(b,c)});return b}function $A(a){a=hb(a,function(a){return a in aB});Cb(a,function(a,c){return aB[a]-aB[c]});return a}function bB(a){return B(a,function(a){return"dropshadow"==a})?new xf(0,7,7,0):new xf(0,0,0,0)}var aB={bevel:1,dropshadow:2};function cB(a,b,c,d,e){b=dB(b,c,d?d.b/2+1:0);DA(a,b,d,e)}function dB(a,b,c){var d=new dA;fA(d,a.left+b+c,a.top+c);d.Xa(a.left+a.width-b-c,a.top+c);gA(d,b,b,-90,90);d.Xa(a.left+a.width-c,a.top+a.height-b-c);gA(d,b,b,0,90);d.Xa(a.left+b+c,a.top+a.height-c);gA(d,b,b,90,90);d.Xa(a.left+c,a.top+b+c);gA(d,b,b,180,90);d.close();return d}function eB(a,b,c,d){var e=a.L;e?a=new cA(e.o*b/100,e.B*c/100,e.A*b/100,e.C*c/100,e.b,e.g,e.j,e.k):(b=fB(d,a.j),a=new iA(a.o,b));return a}
function fB(a,b){return a?Math.max(b,.9):b}function gB(a,b){var c=new xf(a.top,a.left+a.width,a.top+a.height,a.left),d=bB(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 zf(c)}
function hB(a,b,c){if(c.length&&(b=Oc("g",void 0,b),b.length)){var d=$A(c);if(d){c="effects:"+(d?d.join("|"):"");var e=rA(a,c);e?a=e:(d=ZA(d),a=0<d.childNodes.length?tA(a,c,d):null)}else a=null;a&&b[0].setAttribute("filter","url(#"+a+")")}};function iB(){SA.call(this);this.k=0}w(iB,SA);
iB.prototype.g=function(a,b,c){var d=a.b,e=d.C,g=this.b&&jy(a),e=(e+=g?1:0)?new jA(e,g?d.A:d.B):null;if(g=ny(a)){var h=Mx(g,b,c);if(!(0>=h.width||0>=h.height)){var k;if(k=(a=(a=oy(a))&&a.b?a.b:null)&&a.length?a[0]:null){var l;c=c?Mx(c,b):null;a=Hx(k,new yf(k.D,k.F,k.o,k.h),b);c?(a.top+=c.top,a.left+=c.left):(a.top+=b.top,a.left+=b.left);l=new F(a.left,a.top);c=h.clone();a=new yf(l.x,l.y,1,1);var g=Math.max(c.left+c.width,a.left+a.width),q=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=q-c.top;c=gB(c,d.b);a=TA(this,c.width,c.height);var g=eB(d,c.width,c.height,this.b),h=new yf(h.left-c.left,h.top-c.top,h.width,h.height),r=new F(l.x-c.left,l.y-c.top);this.k=17*Jx(b,k.j,k.b?k.b:"xy");b=d.g;k=e?e.b/2:0;l=jB(h,r);var q=this.A(h,b,r,l),t=r.x,r=r.y,y=h.width,D=h.height,M=h.left,h=h.top,ea=new dA;fA(ea,M+b+k,h+k);"t"==l&&(ea.Xa(q.start,h+k),ea.Xa(t,r),ea.Xa(q.end,h+k));ea.Xa(M+y-b-k,h+k);gA(ea,b,b,-90,90);"r"==l&&(ea.Xa(M+y-
k,q.start),ea.Xa(t,r),ea.Xa(M+y-k,q.end));ea.Xa(M+y-k,h+D-b-k);gA(ea,b,b,0,90);"b"==l&&(ea.Xa(q.end,h+D-k),ea.Xa(t,r),ea.Xa(q.start,h+D-k));ea.Xa(M+b+k,h+D-k);gA(ea,b,b,90,90);"l"==l&&(ea.Xa(M+k,q.end),ea.Xa(t,r),ea.Xa(M+k,q.start));ea.Xa(M+k,h+b+k);gA(ea,b,b,180,90);ea.close();DA(a,ea,e,g);if(e=this.K())O(e,"annotation-shape"),O(e,"annotation-speech-shape"),Lf(e,c.left,c.top),Wf(e,c.width,c.height),hB(a,e,d.b)}}}};
function jB(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"}iB.prototype.A=function(a,b,c,d){function e(a,c,d){h=Math.min(Math.max(d-2*b,0),g);k=Ib(a-h/2,c+b,c+d-h-b)}var g=this.k,h=0,k=0;"t"==d||"b"==d?e(c.x,a.left,a.width):"l"!=d&&"r"!=d||e(c.y,a.top,a.height);return new RA(k,k+h)};function kB(){SA.call(this)}w(kB,SA);kB.prototype.g=function(a,b,c){var d=ny(a);d&&(b=Mx(d,b,c),0>=b.width||0>=b.height||(a=a.b,c=gB(b,a.b),d=TA(this,c.width,c.height),cB(d,new yf(0,0,b.width,b.height),a.g,new jA(!a.k&&this.b?1:a.k,a.o),new iA("#000",0)),b=this.K(),O(b,"annotation-shape"),bg(b,fB(this.b,a.j)),Lf(b,c.left,c.top),Wf(b,c.width,c.height)))};var lB=window.location.protocol+"//i.ytimg.com/",mB=4/3;function nB(a,b,c){var d;switch(b.T){case 30:d=oB;break;default:d=pB}return d(a,b,c)}function pB(a,b,c){if(!c){c=a.clientHeight;a=a.clientWidth;if((900<a||600<c)&&b.bc)return b.bc;if((430<a||320<c)&&b.pf)return b.pf}return b.wa?b.wa:b.videoId?qB(b.videoId):""}function oB(a,b){return b.wa?b.wa:b.videoId?Yd("//docs.google.com/vt",{id:b.videoId,authuser:b.Sa,authkey:b.xb}):"//docs.google.com/images/doclist/cleardot.gif"}
function qB(a,b){return(lB+"vi/"+escape(a)+"/"+escape(b||"hqdefault.jpg")).replace("i.","i"+(a.charCodeAt(0)%1+1)+".")};function rB(a,b,c){SA.call(this);this.k=a||0;this.B=b||0;this.A=c||!1}w(rB,SA);function sB(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 yf(e,g,c,d)}
rB.prototype.g=function(a,b,c){var d=Mx(ny(a),b,c);if(!(0>=d.width||0>=d.height)){var e=sB(d,this.B);e.left+=d.left;e.top+=d.top;b=a.b;c=gB(e,b.b);var g=TA(this,c.width,c.height),h=new iA("#000",0),e=sB(e,this.k);a=a.k?a.k.b?a.k.b:a.k.videoId?qB(a.k.videoId,"hqdefault.jpg"):"":"";e=sA(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 zA(e,g);g.j.K().appendChild(e.K());
if(a=this.K()){var k=fB(this.b,b.j);bg(a,k);if(this.A&&0<b.k){var k=new jA(b.k,b.o),d=new yf(0,0,d.width,d.height),l;l=dB(d,b.g,k.b/2+1);var q=rA(g,"mask");if(q)l=q;else{var q=document.createElementNS("http://www.w3.org/2000/svg","mask"),r=document.createElementNS("http://www.w3.org/2000/svg","path");r.setAttribute("d",EA(l));r.setAttribute("fill","#FFF");q.appendChild(r);l=tA(g,"mask",q)}e=e.K();l&&e.setAttribute("mask","url(#"+l+")");cB(g,d,b.g,k,h)}O(a,"annotation-shape");O(a,"annotation-image-shape");
Lf(a,c.left,c.top);Wf(a,c.width,c.height);hB(g,a,b.b)}}};function tB(){SA.call(this)}w(tB,SA);tB.prototype.g=function(a,b,c){var d=ny(a);if(d){var e=Mx(d,b,c);if(!(0>=e.width||0>=e.height)){b=a.b;c=gB(e,b.b);var d=TA(this,c.width,c.height),g=b.C;a=this.b&&jy(a);a=(g+=a?1:0)?new jA(g,a?b.A:b.B):null;g=new yf(0,0,e.width,e.height);e=eB(b,e.width,e.height,this.b);cB(d,g,b.g,a,e);if(a=this.K())O(a,"annotation-shape"),O(a,"annotation-popup-shape"),Lf(a,c.left,c.top),Wf(a,c.width,c.height),hB(d,a,b.b)}}};function uB(){iB.call(this)}w(uB,iB);uB.prototype.A=function(a,b,c,d){function e(a,c,d){h=Math.min(Math.max(d-2*b,0),g);k=a<=c+d/2?Math.max(c+d/4-h/2,c+b):Math.min(c+3*d/4-h/2,c+d-h-b)}var g=this.k,h=0,k=0;"t"==d||"b"==d?e(c.x,a.left,a.width):"l"!=d&&"r"!=d||e(c.y,a.top,a.height);return new RA(k,k+h)};function vB(a,b,c,d,e){this.b=a;this.F=b;this.B=c;this.M=d;this.I=e;this.C=new Vv(this);this.D=this.j=this.o=this.k=this.A=this.g=null}function wB(a,b){var c=u(function(a,c,g){c=g?xB(this,c,u(g,this)):xB(this,c);this.C.listen(b,a,c)},a);c("mouseover","d",a.N);c("mouseout","c",a.L);c("click","a");c("touchend","a")}
function yB(a){if(a.b.B){var b;iy(a.b,function(a){return"close"==a.type})?b=a.g:(a.o=I("div",["annotation-close-button","hid"]),sg(a.o,"annotation_id",a.b.id),a.g.appendChild(a.o),b=a.o);var c=function(a){a.stopPropagation()};a.C.listen(b,"click",xB(a,"b",c));a.C.listen(b,"touchend",xB(a,"b",c))}}
function xB(a,b,c){return u(function(a){if(this.I)c&&c(a);else if(a.target instanceof Element){var e=a.target;Dx(e);try{var g=document.elementFromPoint(a.clientX,a.clientY);if(ud(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{Cx(e)}}e=ag(a.target);a=new F(a.clientX,a.clientY);"c"==b&&e.contains(a)||
this.M.H(b,this.b)},a)}vB.prototype.N=function(){this.o&&Cx(this.o);this.k&&bg(this.k,1);var a=zB(this);this.j&&(this.j.b=!0,bg(this.g,AB(this)?1:0),a&&this.j.g(this.b,a,BB(this)))};vB.prototype.L=function(){this.o&&Dx(this.o);this.k&&bg(this.k,0);var a=zB(this);this.j&&(this.j.b=!1,bg(this.g,AB(this)?1:0),a&&this.j.g(this.b,a,BB(this)))};function BB(a){return a.D?ny(a.D):null}
function aA(a){if(a.g||a.j){var b=ny(a.b);if(b){var c=zB(a),d=BB(a);if(a.g&&c){b=Mx(b,c,d);Wf(a.g,b.width,b.height);Lf(a.g,b.left,b.top);var e=a.B.Bf;if(e){var g;g=(g=ny(a.b))&&e?Ix(e,g.k,g.b?g.b:"xy"):1;var e=py(a.b,e),h;h=a.b.b;h.F?h=h.F:(h="speech"==a.b.style?1.6:.8,h=new xf(h,h,h,h));h=new xf(360*h.top*e/100,640*h.right*g/100,360*h.bottom*e/100,640*h.left*g/100);a.k&&(h.right+=1.5*c.height/100);a.g.style.padding=h.top+"px "+h.right+"px "+h.bottom+"px "+h.left+"px";"label"==a.b.style&&a.A&&(a.A.style.padding=
a.g.style.padding);a.k&&(g=g/e*c.height*4.2/100,g=new G(g,g),Wf(a.k,g),"highlight"==a.b.type||"label"==a.b.style?(e=1.5*c.height/100,g=new F(b.width-g.width-e,b.height-g.height-e)):g=new F(b.width-g.width-3*c.height/100,(b.height-g.height)/2),Lf(a.k,g));a.o&&(g=9<=c.left+c.width-(b.left+b.width),e=9<=b.top-c.top,Lf(a.o,g&&e?new F(b.width-9,-9):g?new F(b.width-9,45<b.height?9:b.height-9):e?new F(45<b.width?b.width-9-18:-9,-9):b.width/c.width>b.height/c.height?new F(45<b.width?b.width-9-18:-9,b.height-
9):new F(-9,45<b.height?9:b.height-9)))}}a.j&&c&&a.j.g(a.b,c,d);if(a.g){c=a.g;d=a.b.b;c.style.color="highlightText"==a.b.style?d.I:d.A;c.style.fontSize=360*d.M*py(a.b,a.B.Bf)/100+"px";b=a.b.style;c.style.textAlign=d.textAlign?d.textAlign:"title"==b||"highlightText"==b?"center":"left";d.D&&(c.style.fontWeight=d.D);a=a.g;c=a.style.overflow;d=H("annotation-link-icon",a);b=Bx(d);g=H("annotation-close-button",a);e=Bx(g);d&&b&&Dx(d);g&&e&&Dx(g);var k=h="",l=H("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 q=mg(a),r=q,t=5,y=Math.floor(q/2);y;)a.scrollHeight<=a.offsetHeight&&a.scrollWidth<=a.offsetWidth?(t=r,r=Math.min(r+y,q)):r=Math.max(r-y,t),y=Math.floor(y/2),a.style.fontSize=r+"px";r!=t&&(a.scrollHeight>a.offsetHeight||a.scrollWidth>a.offsetWidth)&&(a.style.fontSize=t+"px")}a.style.overflow=c;l&&(l.style.overflow=h,l.style.position=k);g&&e&&Cx(g);
d&&b&&Cx(d)}}}}
vB.prototype.show=function(){var a=this.b.b,a=(a&&0==a.j||"title"==this.b.style||"highlightText"==this.b.style||"pause"==this.b.type?!1:!0)&&!this.j,b=!this.g,c="widget"==this.b.type;if(a){var d=zB(this);if(d){var e=null;"highlight"==this.b.type||"label"==this.b.style?e=new kB:"popup"==this.b.style?e=new tB:"anchored"==this.b.style?e=new iB:"speech"==this.b.style?e=new uB:"image"==this.b.type&&("video"==this.b.style?e=new rB(4/3,16/9,!0):"channel"==this.b.style&&(e=new rB));e&&(e.g(this.b,d,BB(this)),
this.j=e,d=e.K())&&(Dx(d),O(d,"annotation-type-"+this.b.type.toLowerCase()),this.F(d))}}if(b){d=["annotation","hid"];"highlightText"!=this.b.style||d.push("annotation-no-mouse");d.push("annotation-type-"+this.b.type.toLowerCase());this.g=I("div",d);this.b.A&&(this.A=I("div","inner-text"),"label"==this.b.style&&(O(this.A,"label-text"),this.A.style.backgroundColor=this.b.b.o),md(this.A,this.b.A),this.g.appendChild(this.A));sg(this.g,"annotation_id",this.b.id);this.F(this.g);wB(this,this.g);if(jy(this.b)&&
"image"!=this.b.type&&hy(this.b)){if(d=fy(this.b))this.g.title=Lw(d);this.k=I("span","annotation-link-icon");this.g.appendChild(this.k)}yB(this);jy(this.b)||(this.g.style.cursor="default")}c&&("subscribe"==this.b.style?H("yt-uix-subscription-button",this.g)||(this.g.innerHTML=this.b.j):this.b.j&&(this.g.innerHTML=this.b.j));if(a||b){t:{a=this.b.g.b;if(a.length&&(a=Tx(a[0]))){a=a.A;break t}a=0}this.g&&(this.g.style.zIndex=a);this.j&&this.j.K()&&(this.j.K().style.zIndex=a)}Cx(this.g);bg(this.g,AB(this)?
1:0);aA(this);this.j&&Cx(this.j.K())};vB.prototype.hide=function(){Dx(this.g);this.j&&Dx(this.j.K())};function AB(a){return"label"!=a.b.style||a.j.b}function zB(a){var b=a.B.Bf;return b?"player_relative"==a.b.D?(a=a.B.Yc)?new yf(-b.left,-b.top,a.width,a.height):null:new yf(0,0,b.width,b.height):null};function CB(a){hu.call(this,a);this.fk=!0;this.ua="iv-module";this.hc="iv";this.L=!1;this.P=!0;this.B=!1;this.k=0;this.g={};this.F={};this.A=new wy(this.M,this.b);a=DB;this.o=new QA(vu(this));S(this,this.o);this.o.listen("change",this.ju,this);this.subscribe("onHideControls",this.gu,this);this.subscribe("onShowControls",this.iu,this);this.subscribe("onStateChange",this.hu,this);this.subscribe("d",this.lu,this);this.subscribe("c",this.ku,this);this.subscribe("a",this.eu,this);this.subscribe("b",this.fu,
this);var b=new zv(["div",[a.bu,"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"}]]]]);S(this,b);b=b.K();this.O=I("DIV",[a.du,"html5-stop-propagation"]);this.C=I("DIV",a.cu);ku(this,I("DIV",a.au,this.O,this.C));ku(this,b);this.D=new GA(b,u(this.kk,this));this.j=null;this.N=[];this.I=null}w(CB,hu);CB.o="AnnotationsModule";
var DB={au:"video-annotations",bu:"countdowntimer",cu:"video-custom-annotations",du:"video-legacy-annotations"};CB.k=function(a){switch(a.type){case "branding":case "promotion":case "survey":return!0}return!1};CB.j=function(a){return"card"==a.type};CB.g=function(a){return CB.Ja(a)?new CB(a):null};CB.Ja=function(a){return"leanback"==a.R().$?!1:bs(a.getVideoData(),"iv3_module")};CB.b=function(){return I("div",["annotation","annotation-type-custom","hid"])};f=CB.prototype;f.Ja=function(){return CB.Ja(this.b)};
f.create=function(){CB.G.create.call(this);wu(this,this.o);1==(this.b.R().pa||this.b.getVideoData().Ba)&&this.load()};f.destroy=function(){xu(this,this.o);CB.G.destroy.call(this)};f.ju=function(){var a=this.B||this.k,b=0==this.o.getSelected();a&&!b?(this.unload(),this.log({toggle:0})):!a&&b&&(this.load(),this.log({toggle:1}))};f.hu=function(a){this.P=W(a.state,8);0>Rv(a,4)&&this.D.stop()};
f.load=function(){CB.G.load.call(this);var a=this.b.getVideoData(),b=u(this.Gr,this,a.videoId);cz()&&(b=EB(this,b));b={format:"XML",method:"GET",vb:b};a.Rm&&(this.k++,Hi(a.Rm,b));a.Qm&&(b=u(this.Gr,this,a.videoId),cz()&&(b=EB(this,b)),b={format:"XML",method:"GET",vb:b},this.k++,Hi(a.Qm,b));OA(this.o.element,0)};
f.unload=function(){OA(this.o.element,1);this.A.log_({"iv-event":1});this.kk();iu(this);Nb(this.g,function(a){a.destroy()});Nb(this.F,function(a){a.destroy()});this.j&&(this.j.destroy(),this.j=null);this.k=0;this.B=!1;this.g={};this.F={};CB.G.unload.call(this)};
function FB(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&&(c[e.tagName]=e.childNodes[0].nodeValue.trim());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(FB(a,e))}return c}
f.Gr=function(a,b){if(this.k&&!this.B&&this.b.getVideoData().videoId==a){this.k--;var c=b.responseXML?b.responseXML.getElementsByTagName("annotations"):null;if(Ci(b)&&c){GB(this,c[0]);O(rt(this.b),this.ua+"-loaded");0==this.k&&(this.B=!0);var c=[],d;for(d in this.g){var e=this.g[d].ha,g;if(e.g)if(g=e.g,g.b.length)if(g=g.b[0].g||g.b[0].b||g.b[0].j,!g||2>g.length)g=null;else{var h=g.length-1;g=0>=g[0].g&&0>=g[h].g?null:{start:g[0].g,end:g[h].g}}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.A,k.visible=!0);e=new Yt(g,h,k);c.push(e)}}this.Gf.apply(this,c)}}};function HB(a,b){var c=IB(a,b);if(!c&&"marker"!=b.type)return null;ly(b,function(a){a=u(this.nD,this,b.id,a);this.subscribe("ivTrigger:"+b.id,a)},a);return new Yz(a.M,b,c)}
function JB(a,b){var c=CB.b(),d=null;switch(b.type){case "branding":a.C.appendChild(c);d=new Nz(c,KB(a),b);break;case "promotion":a.C.appendChild(c),d=new Qz(c,KB(a),b)}d&&d.wj();return d}function LB(a,b){if(!a.j){var c=CB.b();a.C.appendChild(c);a.j=new zz(c,KB(a));a.j.wj()}var c=a.j,d=b&&b.data&&b.data.card_type;if(d){var e=fy(b);e&&Az[d]&&c.add(new Az[d](b.id,b.data,e,b))}}function KB(a){a.I||(a.I=new Pz(new Vv(a),a.b.R(),a.b.getVideoData(),a.A,a.b,a.M));return a.I}
function GB(a,b){for(var c=b.getElementsByTagName("annotation"),d=0;d<c.length;d++){var e=FB(a,c[d]),g=null;try{g=ey(e)}catch(h){}g&&(CB.k(g)?(e=JB(a,g))&&(a.F[g.id]=e):CB.j(g)?LB(a,g):(e=HB(a,g))&&(a.g[g.id]=e))}Nb(a.g,function(a){var b=a.ha;b.g&&b.g.g&&(b=this.g[b.g.g])&&(a.b.D=b.ha)},a)}f.Fc=function(a){CB.G.Fc.call(this,a);a=a.getId();var b=this.g[a];b&&!b.o&&(b=b.ha,"pause"==b.type?MB(this,b):(NB(this,a),xy(this.A,b.Tb)))};f.kd=function(a){CB.G.kd.call(this,a);OB(this,a.getId())};
function MB(a,b){if(a.P){var c=gy(b,function(a){return"pause"==a.type&&!!a.duration&&!!a.duration.value});c&&(a.L=!0,a.H("command_pause"),a.D.start(1E3*c.duration.value))}}function PB(a,b,c,d){d?NB(a,b,c):OB(a,b,c)}function OB(a,b,c){if(b=a.g[b])$z(b),c&&c.g?(a=u(a.ys,a,b),b.g=new Xv(a,2E3),b.g.start()):a.ys(b)}f.ys=function(a){a&&(a.hide(),QB(this,"shown",!1,a.ha.id),RB(this,a.ha,"hidden"))};function NB(a,b,c){if(b=a.g[b])$z(b),c&&c.k?(a=u(a.hs,a,b),b.g=new Xv(a,2E3),b.g.start()):a.hs(b)}
f.hs=function(a){a&&(a.show(),QB(this,"shown",!0,a.ha.id),RB(this,a.ha,"shown"))};f.nD=function(a,b,c){var d=this.g[a];if(d&&b.value!=c){b.value=c;var e=!1;ly(d.ha,function(a){e|=a.value});PB(this,a,b,e)}};f.eu=function(a){if(a&&a.id){var b=fy(a);if(b){var c=u(function(){RB(this,a,"click")},this);qy(Lw(b))&&"new"!=b.target||(c(),c=null);zy(this.A,a.Tb,c)}}};
function RB(a,b,c){ky(b,function(a){if(a.trigger==c&&"openUrl"==a.type){var e=this.b.getVideoData(),g=sy(a.url,e.videoId);if(-1!=g)this.H("command_seek",g),this.kk();else if(e=ty(a.url,b.id,e.videoId,this.b.R()))this.pauseVideo(),window.open(e,vy(a.url))}},a)}f.gu=function(){QB(this,"playerControlShow",!1)};f.iu=function(){QB(this,"playerControlShow",!0)};f.lu=function(a){QB(this,"rollOver",!0,a.id)};f.ku=function(a){QB(this,"rollOver",!1,a.id)};
f.fu=function(a){if(a||a.id)this.g[a.id].o=!0,OB(this,a.id),a&&(Ay(this.A,a.Tb),RB(this,a,"close")),QB(this,"closed",!0,a.id)};f.kk=function(){this.D.stop();this.L&&(this.L=!1,this.H("command_play"))};function IB(a,b){if(SB(b)){var c=b.B||iy(b,function(a){return"click"==a||"rollOut"==a||"rollOut"==a});return new vB(b,u(a.O.appendChild,a.O),a.b.R(),a.M,c)}return null}
function SB(a){if("highlight"==a.type||"image"==a.type||"widget"==a.type)return!0;if("text"==a.type)for(var b in by)if(a.style==by[b])return!0;return!1}function QB(a,b,c,d){a.H(Xz(b,d),c,d)}function EB(a,b){return u(function(){if(!this.fa()){var a=Array.prototype.slice.call(arguments,0);a.unshift(b);b=ra.apply(window,a);this.N.push(dz(b,void 0))}},a)}f.J=function(){for(var a=this.N,b=0,c=a.length;b<c;b++)fz(a[b]);this.N.length=0;CB.G.J.call(this)};function TB(a,b,c){c=c||{};var d=c.gd;d||(d=document.createElement("style"),d.setAttribute("type","text/css"),document.getElementsByTagName("head")[0].appendChild(d),d=d.sheet||d.styleSheet);c.reset&&UB(d);b=b instanceof Array?b.join(";"):b;d.insertRule?d.insertRule(a+"{"+b+"}",d.cssRules.length):d.addRule(a,b,-1);return d}function UB(a){for(var b=(a.cssRules||a.rules).length;0<b;b--){var c=a;c.deleteRule?c.deleteRule(0):c.removeRule(0)}};function VB(a,b,c){X.call(this,["div","ytp-drop-down","{{content}}"]);this.o=!1;this.B=0;this.D=this.C=null;this.g=new X(["div","ytp-drop-down-menu","{{content}}",{tabindex:-1}]);S(this,this.g);this.b=new IA(a,"ytp-drop-down-label");S(this,this.b);this.b.listen("click",this.F,this);this.A=new X(["div","ytp-drop-down-label-content","{{content}}"]);S(this,this.A);this.b.oa([this.A,["div","ytp-drop-down-arrow"]]);this.oa([this.g,this.b]);this.stopPropagation("click");n(b)&&this.k(b);n(c)&&this.D!=c&&
(this.g.oa(c),this.D=c,WB(this));WB(this)}w(VB,X);VB.prototype.k=function(a){this.C!=a&&(this.A.oa(a),this.C=a,WB(this))};VB.prototype.j=function(){this.o=!1;WB(this)};VB.prototype.F=function(){this.o=!this.o;WB(this);this.o&&this.g.K().focus()};function XB(a,b){b>a.B&&(a.B=b,a.element.style.minWidth=a.B+"px")}
function WB(a){a.o?(a.g.show(),Qy(a,window,"blur",a.j,a,"menu"),Qy(a,document,"click",a.j,a,"menu")):(a.g.hide(),Ry(a,"menu"));var b=Yf(a.b.K());a.g.K().style.bottom=b.height-1+"px";XB(a,b.width)};function YB(a,b){IA.call(this,a,"ytp-drop-down-menu-button");this.b=new X(["div","ytp-drop-down-menu-button-check"]);S(this,this.b);this.j=!!b}w(YB,IA);YB.prototype.oa=function(a){YB.G.oa.call(this,[this.b,a])};function ZB(a,b){Q(a.element,"ytp-drop-down-menu-button-selected",b);a.j||Q(a.element,"ytp-drop-down-menu-button-checked",b)}function $B(a,b){Q(a.element,"ytp-drop-down-menu-button-separated",b)}function aC(a,b){Q(a.element,"ytp-drop-down-menu-button-checked",b)};function bC(a,b,c,d){X.call(this,["div","ytp-drop-down-menu-content","{{content}}"]);this.C=a;this.o=!!d;this.j={};this.k=[];this.b=this.g=null;this.A=b;this.B=c}w(bC,X);function cC(a,b){Eb(a.k,b)||(Nb(a.j,function(a){a.cd()}),a.k=[],b&&z(b,function(a){this.k.push(a);var b=dC(this,a);this.o&&aC(b,a==this.b);ZB(b,a==this.g);b.X(this.element)},a))}function eC(a,b){null!=a.g&&ZB(dC(a,a.g),!1);null!=b&&ZB(dC(a,b),!0);a.g=b;a.o||(a.b=b)}bC.prototype.getSelected=function(){return this.g};
function fC(a,b){Nb(a.j,function(a){LA(a,b)})}function dC(a,b){var c=a.j[b.toString()];if(c)return c;c=new YB(a.C,a.o);S(a,c);a.j[b.toString()]=c;c.oa(a.A(b));c.listen("click",u(a.B,a,b));return c};function gC(a){HA.call(this);this.D=this.j;this.k={};this.k[this.j]=Y(0,"YTP_TRANSLATE_MENU_ITEM");this.k.contribute=Y(0,"YTP_CONTRIBUTE_MENU_ITEM");this.F=!0;this.b=Y(0,"YTP_SUBTITLES");this.g=new bC(a,u(this.I,this),u(this.N,this));S(this,this.g);this.element=new VB(a,void 0,this.g);S(this,this.element);XB(this.element,150);this.priority=2;this.o=!0;this.A="captions";this.B=this.L=!1}w(gC,HA);gC.prototype.j="translate";
function hC(a,b){var c=[a.j];a.B&&c.push("contribute");for(var d=0;d<b.length;d++){var e=b[d],g=e.toString();a.k[g]||(a.k[g]=iC(e));c.push(g)}cC(a.g,c);c=!a.L;d=dC(a.g,a.j);c?d.disable():d.enable();c=!a.B;$B(dC(a.g,a.j),c);a.B&&$B(dC(a.g,"contribute"),!0);c=2100;fC(a.g,c++);c=c++;LA(a.element.b,c)}function jC(a,b){a.k[b]&&(a.D=b,eC(a.g,b),a.element.k(a.I(b)))}function kC(a,b){a.L=b;var c=!b,d=dC(a.g,a.j);c?d.disable():d.enable()}gC.prototype.I=function(a){return this.k[a]};
gC.prototype.N=function(a){this.element.j();a==this.j?(this.F=!0,this.element.wb("select")):"contribute"==a?(this.F=!1,this.element.wb("select")):(jC(this,a),this.element.wb("change"))};function lC(a){HA.call(this);this.b=Y(0,"YTP_SUBTITLES");this.element=new MA(a,[Y(0,"YTP_ON"),Y(0,"YTP_OFF")]);S(this,this.element);PA(this.element,2200);this.priority=1;this.C=!0;this.A="captions";OA(this.element,1)}w(lC,HA);lC.prototype.M=function(){this.element.wb("select")};lC.prototype.getSelected=function(){return this.element.getSelected()};function mC(a){X.call(this,a)}w(mC,X);mC.prototype.A=function(){};var nC={BI:"monoSerif",ZI:"propSerif",AI:"monoSans",YI:"propSans",CASUAL:"casual",CURSIVE:"cursive",wJ:"smallCaps"},oC={NONE:"none",DROP_SHADOW:"dropShadow",RAISED:"raised",DEPRESSED:"depressed",TJ:"uniform"},pC=["left","right","center"],qC={id:0,priority:0,anchorPoint:7,bj:50,JE:80,de:95,xd:15,nm:100,isVisible:!0,textAlign:pC[2],Pe:0,backgroundColor:"#080808",foregroundColor:"#fff",DE:1,Jn:1},rC={id:98},sC={id:99,priority:1,anchorPoint:0,bj:5,de:7,xd:2,nm:32,textAlign:pC[0]},tC=["CA","MX","US"];var uC=[{ja:"#fff",message:"YTP_COLOR_WHITE"},{ja:"#ff0",message:"YTP_COLOR_YELLOW"},{ja:"#0f0",message:"YTP_COLOR_GREEN"},{ja:"#0ff",message:"YTP_COLOR_CYAN"},{ja:"#00f",message:"YTP_COLOR_BLUE"},{ja:"#f0f",message:"YTP_COLOR_MAGENTA"},{ja:"#f00",message:"YTP_COLOR_RED"},{ja:"#080808",message:"YTP_COLOR_BLACK"}],vC=[{ja:0,text:"0%"},{ja:.25,text:"25%"},{ja:.5,text:"50%"},{ja:.75,text:"75%"},{ja:1,text:"100%"}],wC=[{ja:"fontFamilyOption",message:"YTP_FONT_FAMILY",options:[{ja:"monoSerif",message:"YTP_FONT_FAMILY_MONO_SERIF"},
{ja:"propSerif",message:"YTP_FONT_FAMILY_PROP_SERIF"},{ja:"monoSans",message:"YTP_FONT_FAMILY_MONO_SANS"},{ja:"propSans",message:"YTP_FONT_FAMILY_PROP_SANS"},{ja:"casual",message:"YTP_FONT_FAMILY_CASUAL"},{ja:"cursive",message:"YTP_FONT_FAMILY_CURSIVE"},{ja:"smallCaps",message:"YTP_FONT_FAMILY_SMALL_CAPS"}]},{ja:"color",message:"YTP_FONT_COLOR",options:uC},{ja:"fontSizeIncrement",message:"YTP_FONT_SIZE",options:[{ja:-2,text:"50%"},{ja:-1,text:"75%"},{ja:0,text:"100%"},{ja:1,text:"150%"},{ja:2,text:"200%"},
{ja:3,text:"300%"},{ja:4,text:"400%"}]},{ja:"background",message:"YTP_BACKGROUND_COLOR",options:uC},{ja:"backgroundOpacity",message:"YTP_BACKGROUND_OPACITY",options:vC},{ja:"windowColor",message:"YTP_WINDOW_COLOR",options:uC},{ja:"windowOpacity",message:"YTP_WINDOW_OPACITY",options:vC},{ja:"charEdgeStyle",message:"YTP_CHAR_EDGE_STYLE",options:[{ja:"none",message:"YTP_EDGE_STYLE_NONE"},{ja:"dropShadow",message:"YTP_EDGE_STYLE_DROP_SHADOW"},{ja:"raised",message:"YTP_EDGE_STYLE_RAISED"},{ja:"depressed",
message:"YTP_EDGE_STYLE_DEPRESSED"},{ja:"uniform",message:"YTP_EDGE_STYLE_OUTLINE"}]},{ja:"textOpacity",message:"YTP_FONT_OPACITY",options:[{ja:.25,text:"25%"},{ja:.5,text:"50%"},{ja:.75,text:"75%"},{ja:1,text:"100%"}]}];function xC(a,b,c,d){X.call(this,["li","ytp-subtitles-settings-dialog-list-option","{{content}}"]);var e=b.text||(b.message?Y(0,b.message):""),e=[new zv(["div","ytp-subtitles-settings-dialog-list-text",e])];d&&(d=new zv(["div","ytp-subtitles-settings-dialog-list-swatch"]),d.K().style.background=b.ja,e.unshift(d));c?e.unshift(new zv(["div","ytp-subtitles-settings-dialog-list-caret"])):e.unshift(new zv(["div","ytp-subtitles-settings-dialog-list-check"]));this.b=new IA(a);S(this,this.b);this.b.oa(e);
this.oa(this.b)}w(xC,X);xC.prototype.setEnabled=function(a){Q(this.b.K(),"ytp-subtitles-settings-dialog-list-selected",a)};function yC(a){X.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.g=null;var b=Y(0,"YTP_DONE"),c=new IA(a,"ytp-dialog-button",b);S(this,c);c.oa(b);c.listen("click",ra(this.wb,"cancel"),this);b=Y(0,"YTP_RESET");a=new IA(a,"ytp-dialog-button",b);S(this,a);a.oa(b);
O(a.K(),"ytp-dialog-button-left");a.listen("click",ra(this.wb,"select"),this);this.j={};this.b={};this.template.update({top:zC(this,wC),buttons:[a,c]})}w(yC,mC);function zC(a,b,c){var d=new X(["ul","ytp-subtitles-settings-dialog-list"]),e,g=!1;n(c)?(a.b={},e=a.b):(a.j={},e=a.j,g=!0);for(var h=0;h<b.length;h++){var k=b[h],l=new xC(a.o,k,g,b==uC);g?l.listen("click",u(a.k,a,k.options,k.ja)):c&&l.listen("click",u(a.B,a,c,k.ja));e[k.ja]=l;l.X(d.K())}return d}
yC.prototype.k=function(a,b){this.template.update({sub:zC(this,a,b)});AC(this,this.j,b);AC(this,this.b,this.g[b])};function AC(a,b,c){Nb(b,function(a,b){a.setEnabled(b==c)},a)}function BC(a,b){a.g=b;var c=wC[0];c&&c.options&&a.k(c.options,c.ja)}yC.prototype.B=function(a,b){this.g&&(this.g[a]=b,this.wb("change"));AC(this,this.b,b)};
yC.prototype.A=function(){var a=this.o.Vc(),b=2*Math.floor(Math.min(560,Math.max(230,.65*a.width))/2);this.K().style.width=b+"px";this.template.b["ytp-dialog-body"].style.height=a.height-140+"px"};yC.prototype.J=function(){this.j=[];this.b=[];yC.G.J.call(this)};function CC(a){var b=["div",["ytp-dialog","html5-stop-propagation"],["div","ytp-dialog-title",Y(0,"YTP_TRANSLATE_DIALOG_TITLE")],["div","ytp-dialog-body","{{content}}"],["div","ytp-dialog-buttons","{{buttons}}"]];X.call(this,b);var c=Y(0,"YTP_DISMISS"),b=new IA(a,"ytp-dialog-button",c);S(this,b);b.oa(c);b.listen("click",ra(this.wb,"change"),this);var c=Y(0,"YTP_CANCEL"),d=new IA(a,"ytp-dialog-button",c);S(this,d);d.oa(c);d.listen("click",ra(this.wb,"cancel"),this);this.g=new bC(a,u(this.j,this),u(this.o,
this),!0);S(this,this.g);this.g.element.style.maxHeight="100px";this.b=new VB(a,void 0,this.g);S(this,this.b);XB(this.b,200);this.k=null;this.template.update({content:this.b,buttons:[b,d]})}w(CC,mC);function DC(a,b){a.k=b;a.b.k(b?a.j(b):null)}CC.prototype.getSelected=function(){return this.k};CC.prototype.o=function(a){this.b.j();DC(this,a)};CC.prototype.j=function(a){return a.ri+" -- "+a.Ok};var EC;function FC(a,b){ia(b)&&(b=b.join(" "));if(""===b||void 0==b){var c;EC||(EC={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=EC;"pressed"in c?a.setAttribute("aria-pressed",c.pressed):a.removeAttribute("aria-pressed")}else a.setAttribute("aria-pressed",b)};function GC(a,b,c,d,e){IA.call(this,a,b,c,c);this.F=b;this.L=this.M=c;this.A=d||null;this.B=e||null;this.C=e||null;this.b=!1}w(GC,IA);function HC(a){JA(a,a.b&&a.A?a.A:a.F);KA(a,a.b&&a.B?a.B:a.M);a.g=a.b&&a.C?a.C:a.L;Q(a.element,"ytp-button-pressed",a.b)}function IC(a){a.b=!0;FC(a.element,!0);HC(a)}function JC(a){a.b=!1;FC(a.element,!1);HC(a)}function KC(a,b){a.F=b;HC(a)}GC.prototype.J=function(){this.C=this.B=this.A=null;GC.G.J.call(this)};function LC(a){a=a||qC;sa(this,a)}f=LC.prototype;f.anchorPoint=7;f.bj=50;f.de=95;f.JE=80;f.Pe=0;f.textAlign="center";f.backgroundColor="#080808";f.foregroundColor="#fff";f.DE=1;f.Jn=1;f.xd=15;f.nm=32;f.isVisible=!0;f.Ns='"Arial Unicode Ms", Arial';f.pD="100%";function MC(a,b){this.id=a;this.Ea=new LC(b);var c="caption-window";0==this.id&&(c="standard-caption-window");this.ya=I("div",{id:"caption-window-"+this.id,"class":c});this.Ob=I("span",{"class":"captions-text",style:"visibility: hidden"});this.Ob.innerHTML="C";this.Aa=I("span",{"class":"captions-text",tabindex:7E3,"aria-live":"assertive"});this.Mj=I("div",{"class":"caption-window-transform"});this.Mj.appendChild(this.Aa);this.ya.appendChild(this.Mj)}MC.prototype.id=0;f=MC.prototype;f.Ea=null;
f.fh="";f.Sc=null;f.ya=null;f.Mj=null;f.Aa=null;f.Ob=null;f.type=1;f.Ij=function(){var a;this.Ob.style.fontFamily=this.Aa.style.fontFamily;this.ya.appendChild(this.Ob);a=this.Ob.offsetHeight;this.ya.removeChild(this.Ob);return a};f.Ye=function(){this.Aa&&(0!=this.id&&(Xf(this.ya,"100%"),Xf(this.ya,this.Aa.offsetWidth)),NC(this),Ax(this.ya,this.Ea.isVisible))};function NC(a){Lf(a.ya,a.Ea.bj+"%",a.Ea.de+"%");for(var b=0;8>=b;b++)P(a.ya,"anchor-point-"+b);O(a.ya,"anchor-point-"+a.Ea.anchorPoint)}
f.nr=function(a){var b=[];z(a,function(a){a.Kj?b[b.length-1]+=a.ee:b.push(a.ee)});this.Ve(b.join("\n"));this.Sc=a};f.Ve=function(a){this.fh=a=OC(a);this.Aa.innerHTML=this.fh;this.Kn();this.Ye()};function PC(a,b){b&&(b=b.replace(/<[^>]*>?/g,""),a.Ve(b))}
f.Kn=function(){this.ya.style.textAlign=this.Ea.textAlign;this.Aa.style.backgroundColor=this.Ea.backgroundColor;this.Aa.style.color=this.Ea.foregroundColor;this.Aa.style.opacity=this.Ea.Jn;this.Aa.style.fontFamily=this.Ea.Ns;this.Aa.style.fontSize=this.Ea.pD;1==this.Ea.Pe?this.Aa.setAttribute("dir","rtl"):this.Aa.removeAttribute("dir")};f.toString=function(){var a="Caption window ("+this.id+"): "+this.fh,b;for(b in this.Ea)a+=b+" "+this.Ea[b]+" | ";return a};
function OC(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.Nj=function(){this.Sc=[];this.Ve("")};function QC(){this.o=20971520;this.k=8388608;this.g=5242880;this.ra=NaN;this.A=this.C=2;this.N=25;this.F=2097152;this.b=!0;this.j=1800;this.P=this.L=!1;this.B=1.15;this.ai=qo.auto;this.M=!0;this.V=nr("xboxone");this.D=0;this.T=this.I=this.O=!1};function RC(){this.ba=[]}RC.prototype.contains=function(a){a=Ab(this.ba,a);return 0<=a||0>a&&1==(-a-1)%2};RC.prototype.length=function(){return this.ba.length/2};function SC(a){if("undefined"!=typeof DOMParser)return(new DOMParser).parseFromString(a,"application/xml");if("undefined"!=typeof ActiveXObject){var b=TC();b.loadXML(a);return b}throw Error("Your browser does not support loading xml documents");}function UC(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 VC(a){if("undefined"!=typeof a.selectNodes){var b=Lc(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=Lc(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 TC(){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 WC(){this.g=[];this.j=[]};function XC(a){this.b=a.td;this.k=a.priority;this.uc=a.uc||this.uc}XC.prototype.b=0;XC.prototype.k=0;XC.prototype.uc=0;XC.prototype.toString=function(){return this.b+", "+this.uc};function YC(a){XC.call(this,a);this.ee=a.text||this.ee;this.Vi=a.windowId||this.Vi;this.Kj=a.params.append||this.Kj;this.Xs=a.params.row||this.Xs;this.Ws=a.params.sD||this.Ws}w(YC,XC);f=YC.prototype;f.ee="";f.Kj=!1;f.Xs=0;f.Ws=0;f.Vi=0;f.toString=function(){return this.b+", "+this.uc+": "+this.ee};
function ZC(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={td:c,uc:d,text:b,windowId:e,priority:5,params:{}};a.getAttribute("r")&&(b.params.row=parseInt(a.getAttribute("r"),10));a.getAttribute("c")&&(b.params.sD=parseInt(a.getAttribute("c"),10));
a.getAttribute("append")&&(b.priority=6,b.params.append=!0);return new YC(b)}function $C(a){XC.call(this,a);this.id=a.windowId||this.id;this.params=a.params}w($C,XC);$C.prototype.id=0;$C.prototype.params=null;$C.prototype.j="";$C.prototype.g=!1;function aD(){return new $C({td:-2147483648,uc:4294967295,params:qC})};function bD(a){WC.call(this);this.j.push(aD());a=a.firstChild.childNodes;for(var b=0,c=a.length;b<c;b++){var d=ZC(a[b]);this.g.push(d)}}w(bD,WC);function cD(a){WC.call(this);this.b={};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.b[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.b+g.uc>=h?g.uc=h:g=null);switch(d.getAttribute("op")){case "kill":d=null;break t;case "define":g=null}g?g.o=!0:g=aD();var k={};sa(k,g?g.params:
qC);d.getAttribute("id")&&(k.id=d.getAttribute("id"));d.getAttribute("op")&&(k.KE=d.getAttribute("op"));d.getAttribute("rc")&&(k.xd=parseInt(d.getAttribute("rc"),10));d.getAttribute("cc")&&(k.nm=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.bj=parseInt(d.getAttribute("ah"),10));d.getAttribute("av")&&(k.de=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=pC[parseInt(d.getAttribute("ju"),10)]);d.getAttribute("pd")&&(k.Pe=1,0==parseInt(d.getAttribute("pd"),10)&&(k.Pe=0));d.getAttribute("bc")&&(k.backgroundColor=parseInt(d.getAttribute("bc"),16));d.getAttribute("bo")&&(k.opacity=parseInt(d.getAttribute("bo"),10)/100);d.getAttribute("fc")&&(k.foregroundColor=parseInt(d.getAttribute("fc"),16));d.getAttribute("sd")&&(k.Vl=parseInt(d.getAttribute("sd"),
10));g=parseInt(d.getAttribute("d"),10)||1E3*parseFloat(d.getAttribute("dur"))||2147483647;d={td:h,uc:g,params:k,windowId:parseInt(d.getAttribute("id"),10)};d=new $C(d)}else d=null}this.b[e]=d;this.j.push(d);break;case "text":e=ZC(a[b]),this.g.push(e),d=e.Vi,this.b[d]&&(d=this.b[d],e=e.ee,""!=d.j&&(d.g=!0),d.j+=e)}}w(cD,WC);function dD(){WC.call(this)}w(dD,WC);function eD(a){this.b=a.languageCode;this.ri=a.languageName||null;this.Ok=a.languageOriginal||null;this.id=a.id||null;this.g=a.is_default||!1}eD.prototype.toString=function(){return this.b+"_"+this.ri+"_"+this.Ok+"_"+this.id+"_"+this.g};function fD(a){a=a||{};this.F=a.formats||"";this.o=a.format||1;if(1==this.o)for(var b=this.F.split(","),c=0;c<b.length;c++){var d=parseInt(b[c],10);isNaN(d)||(this.o=Math.max(d,this.o))}this.g=a.languageCode||"";this.A=a.languageName;this.j=a.kind||"";this.k=a.name;this.ta=a.id;this.I=a.is_servable;this.B=a.is_default;this.C=a.is_translateable;this.D=a.vss_id||"";this.b=null;a.translationLanguage&&(this.b=new eD(a.translationLanguage))}
function gD(a){var b={format:a.o,languageCode:a.g,languageName:a.A,displayName:iC(a),kind:a.j,name:a.k,id:a.ta,is_servable:a.I,is_default:a.B,is_translateable:a.C};a.b&&(a=a.b,b.translationLanguage={languageCode:a.b,languageName:a.ri,languageOriginal:a.Ok,id:a.id,is_default:a.g});return b}function iC(a){var b=[a.A];if("asr"==a.j){var c=Ye("YTP_ASR_SETTINGS_LABEL");b.push(" (",c,")")}a.k&&b.push(" - ",a.k);a.b&&b.push(" >> ",a.b.ri);return b.join("")}
fD.prototype.toString=function(){var a=[this.g,": ",this.k," (",this.j,")"];this.b&&a.push(" >> ",this.b.b);return a.join("")};fD.prototype.equals=function(a){if(!a)return!1;var b=this.b,c=a.b;if(b&&c){if(b.b!=c.b)return!1}else if(b||c)return!1;return this.g==a.g&&this.k==a.k&&this.j==a.j};function hD(a,b){WC.call(this);this.j.push(aD());for(var c=a.split(iD),d=1;d<c.length;d++){var e;e=c[d];var g=b;if(""==e||0==e.search(jD))e=null;else{var h=e.split(kD),k=0,l=h[k++].match(lD);l||(l=h[k++].match(lD));l?(e=mD(l[1],g),g=mD(l[3],g),h=h.slice(k).join("\n"),e=new YC({td:e,uc:g-e,text:h,windowId:0,priority:5,params:{}})):e=null}e&&this.g.push(e)}}w(hD,WC);var jD=/NOTE/,iD=/[\r\n|\r|\n]{2,}/,kD=/\r\n|\r|\n/,lD=/(([\d]{2}:)?[\d]{2}:[\d]{2}\.[\d]{3})[\t ]+--\x3e[\t ]+(([\d]{2}:)?[\d]{2}:[\d]{2}\.[\d]{3})/;
function mD(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 nD(a,b){this.b=[];this.g=[];var c;c=a?"WEBVTT"==a.substring(0,6)?new hD(a,b||0):(c=SC(a))&&c.firstChild?"timedtext"==c.firstChild.tagName?3==parseInt(c.firstChild.getAttribute("format"),10)?new dD:new cD(c):new bD(c):null:null;c&&(this.g=c.j,this.b=c.g)};function oD(a,b){this.va=a;this.W=b;this.A=new RC;this.k=!0;this.B=this.j=this.o=this.b=null;this.g=0}w(oD,Ih);oD.prototype.J=function(){Ve(this.g);this.g=0;this.k=!0};oD.prototype.resume=function(){this.k=!1;Ve(this.g);this.seek(this.W.getCurrentTime());pD(this)};oD.prototype.seek=function(a){this.b=db(this.B.xi(a).b)};function qD(a,b){a.o=b}function rD(a){var b;if(b=!a.k&&null!==a.b)b=a.b,b=b.b.zg(b);return b&&!a.j&&!(a.b&&30<a.b.startTime-a.W.getCurrentTime())}
function sD(a){var b;b=a.b;b=Uo(b.b,b);if(!a.A.contains(b.b[0].k)){Hi(Ro(b),{format:"RAW",vb:u(a.C,a),withCredentials:!0});a.j=b;var c=a.A,d=a.j.b[0].k,e=Ab(c.ba,d);0<=e||0>e&&1==(-e-1)%2||(e=-e-1,0<e&&1==d-c.ba[e-1]&&e<c.ba.length&&1==c.ba[e]-d?(sb(c.ba,e),sb(c.ba,e-1)):0<e&&1==d-c.ba[e-1]?c.ba[e-1]=d:e<c.ba.length&&1==c.ba[e]-d?c.ba[e]=d:(xb(c.ba,e,0,d),xb(c.ba,e+1,0,d)))}a.b=db(b.b)}
oD.prototype.C=function(a){null==a.responseText||400<=a.status||this.k||null===this.o||(a=new nD(a.responseText,1E3*this.j.b[0].startTime),this.o(a));this.j=null};function pD(a){a.g=Ue(u(function(){rD(this)&&sD(this)},a),1E3);rD(a)&&sD(a)};function tD(){this.j=[];this.g=[];this.b=-1}function uD(a,b){return b?a.g.concat(a.j):a.g}function vD(a,b){switch(b.j){case "asr":return wD(b,a.j);default:if(b.B||0>a.b)a.b=a.g.length;return wD(b,a.g)}}function wD(a,b){return B(b,u(a.equals,a))?!1:(b.push(a),!0)};function xD(a){this.oq=!!a;this.b=new tD;this.A=[]}function yD(a,b){return B(uD(a.b,!0),function(a){return a.toString()==b})}xD.prototype.seek=function(){};xD.prototype.B=function(){};function zD(a,b){xD.call(this);this.j=a;this.g=new oD(new QC,b)}w(zD,xD);zD.prototype.k=function(a,b){qD(this.g,function(c){b(c,a)});this.g.B=this.j.b[a.g];this.g.resume()};zD.prototype.o=function(a){vD(this.b,new fD({format:1,languageCode:"en",languageName:"English",name:"",is_servable:!0,is_default:!0,is_translateable:!1}));a()};zD.prototype.seek=function(a){this.g.seek(a)};zD.prototype.B=function(){var a=this.g;Ve(a.g);a.g=0;a.k=!0};function AD(a,b){MC.call(this,a,b);this.Aa.style.display="block";this.Aa.style.padding="0";this.Yb=[];var c=this.Aa;P(c,"captions-text");O(c,"caption-painton-text-rows")}w(AD,MC);f=AD.prototype;f.type=0;f.tq="";f.eh=!1;f.Kb=null;f.Yb=null;f.Ij=function(){return this.Yb[0]?this.Yb[0].offsetHeight:0};function BD(a){return a.Yb.reduce(function(a,c){return Math.max(a,c.offsetWidth)},0)}
f.Ye=function(){0!=this.id&&(Xf(this.ya,"100%"),Xf(this.ya,this.eh?BD(this):this.Kb.width));var a=Math.round(this.Ea.xd*this.Ij());this.ya.style.maxHeight=a+"px";NC(this);Ax(this.ya,this.Ea.isVisible)};
f.Ve=function(a){this.Nj();a=OC(a);this.eh||(this.fh=a);a=a.split("<br>");for(var b=0,c=a.length;b<c;b++)if(a[b]){var d=I("div",{"class":"caption-row-holder"}),e=I("span",{"class":"caption-row captions-text"});d.appendChild(e);e.innerHTML=a[b];this.eh||(this.Aa.style.height=this.Kb.height+"px",this.Aa.style.width=this.Kb.width+"px",d.style.position="absolute",d.style.top=this.Kb.sq[b]+"px",d.style.left=this.Kb.rq[b]+"px");this.Aa.appendChild(d);this.Yb.push(e)}this.Kn();this.Ye()};
f.Nj=function(){for(var a=0,b=this.Yb.length;a<b;a++){var c=ud(this.Yb[a],"caption-row-holder");ed(c)}this.Yb=[]};f.Kn=function(){this.ya.style.textAlign=this.Ea.textAlign;for(var a=0,b=this.Yb.length;a<b;a++)this.Yb[a].style.backgroundColor=this.Ea.backgroundColor;this.Aa.style.color=this.Ea.foregroundColor;this.Aa.style.opacity=this.Ea.Jn;this.Aa.style.fontFamily=this.Ea.Ns;1==this.Ea.Pe?this.Aa.setAttribute("dir","rtl"):this.Aa.removeAttribute("dir")};function CD(a,b){MC.call(this,a,b);this.Sc=[];this.le=[];this.Nb=[];this.cg=new Mk(433);this.cg.stop();R(this.cg,"tick",u(this.GD,this))}w(CD,MC);f=CD.prototype;f.type=2;f.tD=32;f.Nb=null;f.ne=0;f.le=null;f.cg=null;f.Ye=function(){Xf(this.ya,"100%");var a=this.ya.offsetWidth,a=Math.min(DD(this),a);Xf(this.ya,a+"px");Xf(this.Mj,"100%");this.Aa.style.whiteSpace="nowrap";NC(this);Ax(this.ya,this.Ea.isVisible)};
f.nr=function(a){var b=a.length;if(0>=b)this.Nj();else{for(var c=0;c<b&&0<=this.Sc.indexOf(a[c]);)c++;this.Sc=this.Sc.concat(a.slice(c));ED(this)}};f.Nj=function(){this.Sc=[];this.Nb=[];this.ne=0;this.Nb=[];this.le=[];FD(this)};
function ED(a){if(!GD(a))if(a.ne>=a.Sc.length)FD(a);else{var b=a.Nb.length-1;0>b&&(a.le.push(0),a.ne=0,a.Nb.push(""),b=0);for(var c=a.Sc.length,d=a.ne;d<c;d++){var e=a.Sc[d];if("\n"==e.ee){a.ne++;a.le[b]++;break}if(e.Kj||0==a.Nb[b].length)a.Nb[b]+=e.ee,a.ne++,a.le[b]++;else break}FD(a);d<c&&!GD(a)&&(b=a.Ij(),O(a.Aa,"caption-rollup"),a.ya.style.overflow="hidden",a.Aa.style.top=-b+"px",a.cg.start())}}function GD(a){return a.cg.dd||og(a.Aa,"caption-rollup")}
f.GD=function(){this.ya.style.overflow="visible";this.Aa.style.top=0;this.cg.stop();P(this.Aa,"caption-rollup");this.Nb.push("");this.le.push(0);ED(this)};function FD(a){if(!GD(a)){for(;a.Nb.length<a.Ea.xd;)a.Nb.unshift(""),a.le.unshift(0);for(;a.Nb.length>a.Ea.xd;){a.Nb.shift();var b=a.le.shift();0<b&&(a.ne-=b,a.Sc.splice(0,b))}a.Ve(a.Nb.join("\n"))}}
function DD(a){a.Ob.style.fontFamily=a.Aa.style.fontFamily;a.Ob.style.fontSize=a.Aa.style.fontSize;a.Aa.appendChild(a.Ob);a.Ob.innerHTML="\u2014";var b=a.Ob.offsetWidth;a.Ob.innerHTML="&nbsp;";b=2*a.Ob.offsetWidth+b*a.tD;a.Aa.removeChild(a.Ob);return b};function HD(a,b,c,d){xD.call(this,d);c||(c=xi(a).hl||"",c=c.split("_").join("-"));this.g=Ai(a,{hl:c});this.j=b;this.C={}}w(HD,xD);HD.prototype.k=function(a,b){var c=ID(this,a);Hi(c,{format:"RAW",onSuccess:function(c){c=new nD(c.responseText);b(c,a)},withCredentials:!0})};
HD.prototype.o=function(a,b,c){var d=this.g;b={type:"list",tlangs:1,v:this.j,fmts:Number(b||!1),vssids:1};this.oq&&(b.asrs=1);d=Ai(d,b);b=u(function(b){if((b=b.responseXML)&&b.firstChild){for(var d=this.b,h=b.getElementsByTagName("track"),k=h.length,l=0;l<k;l++){var q=h[l].getAttribute("formats"),r=c,t=h[l].getAttribute("lang_code"),y=h[l].getAttribute("lang_translated"),D=h[l].getAttribute("name"),M=h[l].getAttribute("kind"),ea=h[l].getAttribute("id"),kb="true"==h[l].getAttribute("lang_default"),
dg="true"==h[l].getAttribute("cantran"),bx=h[l].getAttribute("vss_id"),q=new fD({formats:q,format:r,languageCode:t,languageName:y,name:D,kind:M,id:ea,is_servable:!0,is_default:kb,is_translateable:dg,vss_id:bx});vD(d,q)}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"),q=b[h].getAttribute("lang_original"),r=b[h].getAttribute("id"),t="true"==b[h].getAttribute("lang_default"),k={languageCode:k,languageName:l,languageOriginal:q,
id:r,is_default:t},this.C[k.languageCode]=k.languageName,this.A.push(new eD(k))}a()},this);Hi(d,{format:"RAW",onSuccess:b,withCredentials:!0})};function ID(a,b){var c=a.g,d={v:a.j,type:"track",lang:b.g,name:b.k,kind:b.j,fmt:b.o};b.b&&(d.tlang=b.b.b);return c=Ai(c,d)};function JD(a){hu.call(this,a);Xe({YTP_TRANSLATE_MENU_ITEM:"Translate captions",YTP_CONTRIBUTE_MENU_ITEM:"Add subtitles/CC",YTP_TRANSLATE_DIALOG_TITLE:"Translate...",YTP_ASR_SETTINGS_LABEL:"Automatic Captions",YTP_FONT_FAMILY:"Font family",YTP_FONT_SIZE:"Font size",YTP_FONT_COLOR:"Font color",YTP_FONT_OPACITY:"Font opacity",YTP_BACKGROUND_COLOR:"Background color",YTP_BACKGROUND_OPACITY:"Background opacity",YTP_WINDOW_COLOR:"Window color",YTP_WINDOW_OPACITY:"Window opacity",YTP_COLOR_WHITE:"White",
YTP_COLOR_YELLOW:"Yellow",YTP_COLOR_GREEN:"Green",YTP_COLOR_CYAN:"Cyan",YTP_COLOR_BLUE:"Blue",YTP_COLOR_MAGENTA:"Magenta",YTP_COLOR_RED:"Red",YTP_COLOR_BLACK:"Black",YTP_FONT_FAMILY_MONO_SERIF:"Monospaced Serif",YTP_FONT_FAMILY_PROP_SERIF:"Proportional Serif",YTP_FONT_FAMILY_MONO_SANS:"Monospaced Sans-Serif",YTP_FONT_FAMILY_PROP_SANS:"Proportional Sans-Serif",YTP_FONT_FAMILY_CASUAL:"Casual",YTP_FONT_FAMILY_CURSIVE:"Cursive",YTP_FONT_FAMILY_SMALL_CAPS:"Small Capitals",YTP_CHAR_EDGE_STYLE:"Character edge style",
YTP_EDGE_STYLE_NONE:"None",YTP_EDGE_STYLE_RAISED:"Raised",YTP_EDGE_STYLE_DEPRESSED:"Depressed",YTP_EDGE_STYLE_OUTLINE:"Outline",YTP_EDGE_STYLE_DROP_SHADOW:"Drop Shadow"});this.fk=!0;this.A=this.V=!1;this.xb=new Vv(this);this.D=a.R();this.B=null;this.ca=a.app.g;this.pa={};this.da=[];this.Ia=0;this.C={};this.U={};this.la=this.Ba=this.za=this.wa=!1;this.xa=new MC(99,sC);this.j=this.k=this.I=null;this.Ca=!1;this.P=this.L=0;this.O=new GC(vu(this),"ytp-subtitles-button",Y(vu(this),"YTP_SUBTITLES"),"ytp-subtitles-button-active");
this.O.listen("click",this.kx,this);LA(this.O,6500);this.F=new lC(vu(this));S(this,this.F);OA(this.F.element,1);this.F.listen("change",this.vx,this);this.F.listen("select",this.wx,this);this.o=new gC(vu(this));S(this,this.o);this.o.listen("change",this.Yp,this);this.o.listen("select",this.jx,this);kC(this.o,!1);this.N=new yC(vu(this));S(this,this.N);this.N.listen("change",u(this.ue,this,!0));this.N.listen("cancel",this.ix,this);this.N.listen("select",this.$p,this);this.T=new CC(vu(this));S(this,this.T);
this.T.listen("change",this.qx,this);this.T.listen("cancel",this.pg,this);this.subscribe("onResize",u(this.no,this));this.subscribe("onBackgroundChange",u(this.rx,this));this.subscribe("onTextOpacityChange",u(this.tx,this));this.subscribe("onWindowOpacityChange",u(this.ux,this));this.subscribe("onFontSizeIncrease",u(this.ox,this));this.subscribe("onFontSizeDecrease",u(this.nx,this));this.subscribe("onShowControls",u(this.mx,this));this.subscribe("onHideControls",u(this.lx,this));"detailpage"==this.D.$&&
(a=H("captions-account-settings-link",rt(a)))&&Cx(a)}w(JD,hu);JD.prototype.ua="captions";JD.prototype.hc="cc";JD.prototype.qn="subtitlesModuleData";JD.prototype.Fa=1;var KD={background:"#080808",backgroundOpacity:1,charEdgeStyle:"uniform",color:"#fff",fontFamily:'"Arial Unicode Ms", Arial',fontFamilyOption:"propSans",fontSizeIncrement:0,textOpacity:1,windowColor:"#080808",windowOpacity:0};function LD(a){return a.D.Qb?!!a.ca.b.textTracks:!1}f=JD.prototype;
f.create=function(){JD.G.create.call(this);this.B=this.b.getVideoData();-1==tC.indexOf(this.D.U)&&O(rt(this.b),"cc-international");this.g=ac(KD);sa(this.g,ou(this,"display-settings"));BC(this.N,this.g);LD(this)||(this.H("module_menu_button_add",this.ua,this.O),wu(this,this.F));var a;1==this.D.j.cc_load_policy||1==this.B.Un||"alwayson"==Wr(this.B,"yt:cc")||LD(this)?a=!0:(a=ou(this,"module-enabled"),a=null!=a?!!a:"on"==Wr(this.B,"yt:cc")||this.D.j.cc_prefer_on);a&&this.load()};
function MD(a){xu(a,a.o);xu(a,a.F);a.H("module_menu_button_remove",a.ua)}f.destroy=function(){MD(this);JD.G.destroy.call(this)};function ND(a){a.k.o(u(a.AC,a),!0,LD(a)?"vtt":void 0)}
f.load=function(){this.la="alwayson"==Wr(this.B,"yt:cc");this.Ba="1"==this.B.k.cc_auto_caps||"1"==this.D.j.cc_auto_caps;this.o.B="1"==this.B.k.cc_contribute||"1"==this.D.j.cc_contribute;if(this.V||this.A)this.A&&(JD.G.load.call(this),this.V=!1,LD(this)||(this.ue(),this.no()));else{this.V=!0;this.A=!1;if(this.B.eb)this.k=new zD(this.B.j,this.b),this.subscribe("seekto",this.dq,this);else{var a=this.B.k.cc_lang_pref||this.D.j.cc_lang_pref||Wr(this.B,"yt:cc_default_lang")||this.D.A,a=a&&a.split("_").join("-");
this.k=new HD(this.B.Lf,this.B.videoId,a,this.B.Tl)}ND(this)}};f.unload=function(){this.nc&&(OD(this,!1),this.Ll("control_subtitles_set_track"));if(LD(this)){var a;a=Oc("track",void 0,void 0);for(var b=0;b<a.length;b++)ed(a[b])}else PD(this,!1),QD(this),this.ia("seekto",this.dq,this),this.k=null,this.pg();this.za=this.V=!1;this.A&&(this.A=!1,JD.G.unload.call(this))};f.log_=function(){};
f.AC=function(){if(this.k)if(this.V=!1,LD(this)){for(var a=this.ca.b,b=this.k,c=[],d=uD(b.b,void 0),e=0;e<d.length;e++){var g=d[e],h=ID(b,g),h={kind:"subtitles",label:g.k,srclang:g.g,src:h};g.B&&(h["default"]=1);c.push(I("track",h))}Pt(a,c)}else a=this.T,b=this.k.A,cC(a.g,b),b.length?DC(a,b[0]):DC(a,null),a=uD(this.k.b,!0),0<a.length?(this.log_("Caption track list loaded, found "+a.length+" tracks."),wu(this,this.o),hC(this.o,a),b=this.k.b.b,(a=a[b]&&a[b].toString())&&jC(this.o,a),b=this.k,a=b.b.b,
b=uD(b.b,!0),(a=0>a?null:b[a])?(this.wa=!0,RD(this,a)):this.A||(this.A=!0,this.load(),a=this.k.b.j,a.length&&(a=a[0].toString(),jC(this.o,a),(this.za||this.Ba)&&SD(this,a))),this.H("publish_external_event","onCaptionsTrackListChanged")):(this.log_("No captions found."),MD(this),this.unload())};f.Yw=function(a,b){this.k&&(this.A||(this.A=!0,this.load()),this.wa&&(this.wa=!1,this.H("publish_external_event","onCaptionsTrackListChanged")),!b||this.j&&b.equals(this.j)||TD(this,b),UD(this,a.g.concat(a.b)))};
function TD(a,b){QD(a);a.j=b;a.Ca=cx.test(b.g);var c={trackName:b.k,trackKind:b.j};b.b?(c.trackLangCode=b.b.b,c.fromLangCode=b.g):c.trackLangCode=b.g;a.log(c);PC(a.xa,iC(b));ku(a,a.xa.ya);a.P||(a.P=L(u(a.Gw,a),0));a.H("publish_external_event","captionschanged",gD(b));KC(a.O,"ytp-subtitles-button-active");OA(a.F.element,0);kC(a.o,!0);pu(a,"module-enabled",!0);a.H("vss_segment")}
function UD(a,b){a.log_("Caption track loaded with "+b.length+" events.");var c=[];z(b,function(a){var b;this.Ia++;b="caption"+this.Ia.toString();c.push(new Yt(a.b,a.b+a.uc,{id:b}));this.pa[b]=a},a);a.Gf.apply(a,c)}f.Fc=function(a){if(a=VD(this,a))this.da.push(a),this.L||(this.L=L(u(this.jj,this),0))};f.kd=function(a){if(a=VD(this,a))rb(this.da,a),this.L||(this.L=L(u(this.jj,this),0))};function VD(a,b){var c=b.getId();return 0!=c.indexOf("caption")?null:a.pa[c]}
f.hA=function(a){if(a instanceof $C){var b=this.C[a.id];sa(a.params,this.g);b&&b.type!=(a.params.Vl?2:a.g?0:1)&&(ed(b.ya),delete this.C[a.id]);if(!this.C[a.id]){var b=this.C,c=a.id,d;t:{d=a.id;var e=a.params;switch(a.params.Vl?2:a.g?0:1){case 0:d=new AD(d,e);break t;case 2:d=new CD(d,e);break t;default:d=new MC(d,e)}}b[c]=d;b=this.C[a.id].ya;Q(b,"captions-asr","asr"==this.j.j);null!=a.params.Pe&&(a.params.Pe=this.Ca?1:0);0==this.C[a.id].id?(O(b,this.ua),dd(this.b.app.g.F,b,0)):ku(this,b)}sa(this.C[a.id].Ea,
a.params);if(0==(a.params.Vl?2:a.g?0:1)){b=this.C[a.id];b.tq=a.j;b.Kb={};b.eh=!0;b.Ve(b.tq);b.Kb.xd=b.Yb.length;b.Kb.width=b.ya.offsetWidth;b.Kb.height=b.ya.offsetHeight;b.Kb.rq=[];b.Kb.sq=[];for(a=0;a<b.Kb.xd;a++)b.Kb.sq.push(b.Yb[a].offsetTop),b.Kb.rq.push(b.Yb[a].offsetLeft);b.eh=!1;b.Ve(b.fh)}}else b=a.Vi,this.U[b]||(this.U[b]=[]),this.U[b].push(a)};f.no=function(){this.A&&(this.Fa=WD(this.ca).height/360,this.ue(),Nb(this.C,function(a){a.Ye()},this))};
function XD(a){var b=[];Nb(a.C,function(a){a instanceof AD&&b.push(a)});if(0!=b.length){b.sort(function(a,b){return b.Ea.de-a.Ea.de});var c=WD(a.ca).height,d=b[0].Ea.de;z(b,function(a){a.Ea.de=d;var b=Math.round(a.Ea.xd*a.Ij());d-=Math.round(b/c*100);a.Ye()},a)}}f.Gw=function(){this.P=0;ed(this.xa.ya)};
f.jj=function(){this.L=0;this.A&&(Zb(this.U),this.da.sort(function(a,b){return a.b==b.b?a.k-b.k:a.b-b.b}),z(this.da,this.hA,this),Nb(this.C,function(a,b){this.U[b]?a.nr(this.U[b]):(ed(a.ya),delete this.C[b])},this),XD(this),this.I&&this.I.Ye(),this.log_("Refreshing caption display..."))};function YD(a,b){var c=H(a).querySelectorAll("."+b+" input[type=radio]"),d=ob(c,function(a){return a.checked}),d=(-1==d?1:d+1)%c.length;c[d].click()}f.rx=function(){YD("captions-settings-background-opacity","captions-settings-background-opacity-radio")};
f.tx=function(){YD("captions-settings-text-opacity","captions-settings-text-opacity-radio")};f.ux=function(){YD("captions-settings-window-opacity","captions-settings-window-opacity-radio")};f.mx=function(){var a=this.C[0];a&&a.ya&&(a=a.ya,P(a,"controls-hidden"),O(a,"controls-visible"))};f.lx=function(){var a=this.C[0];a&&a.ya&&(a=a.ya,og(a,"controls-visible")&&(P(a,"controls-visible"),O(a,"controls-hidden")))};f.nx=function(){ZD(this,-1)};f.ox=function(){ZD(this,1)};
function ZD(a,b){var c=a.g.fontSizeIncrement+b,c=Math.max(-2,Math.min(4,c));a.g.fontSizeIncrement=c;a.ue()}function $D(a,b){var c=H(b);c&&(c.querySelector('input[value="'+a.toFixed(1)+'"]').checked=!0)}function aE(a,b,c){var d=H(b);d&&(b=d.querySelector("span.yt-uix-form-input-select-value"),d=d.querySelector("select"),d.value=a.g[c],md(b,d.options[d.selectedIndex].text))}
function QD(a){a.j&&(a.j=null,iu(a),a.da=[],a.pa={},a.j=null,a.jj(),KC(a.O,"ytp-subtitles-button"),OA(a.F.element,1),kC(a.o,!1),a.k.B())}function SD(a,b){var c=yD(a.k,b);RD(a,c);a.log_("Caption change failed for "+b)}
function RD(a,b){if(b&&(!a.j||!b.equals(a.j)))if(a.nc)a.j=b,OD(a,!0),a.Ll("control_subtitles_set_track",gD(b)),a.A||(a.A=!0,a.load());else if(a.D.b.Ba){var c=a.ca.b,d=a.k,e={v:d.j,type:"track",lang:b.g,name:b.k,kind:b.j,fmt:"vtt"};b.b&&(e.tlang=b.b.b);var g=document.createElement("track");g.src=Ai(d.g,e);g.mode="showing";g.setAttribute("kind","captions");g.setAttribute("default","");Pt(c,[g]);TD(a,b)}else a.k.k(b,u(a.Yw,a)),a.V=!0}
f.qx=function(){if(!this.la){this.pg();var a=this.T.getSelected();if(a){var b=this.j,c=new fD;c.g=b.g;c.A=b.A;c.k=b.k;c.j=b.j;c.B=!1;c.C=b.C;c.D=b.D;c.b=a;vD(this.k.b,c)&&(a=c.toString(),wu(this,this.o),hC(this.o,uD(this.k.b,!0)),jC(this.o,a));RD(this,c)}}};f.ix=function(){this.pg();this.nc&&this.j&&this.Ll("control_subtitles_set_track",gD(this.j))};f.$p=function(){delete this.g;this.g=ac(KD);BC(this.N,this.g);pu(this,"display-settings",this.g);this.ue()};
f.ue=function(a){bE(this);var b=bw(this.g.background),c=this.g.backgroundOpacity;this.Ra=TB(".captions-text, .caption-row","background-color: rgba("+b[0]+","+b[1]+","+b[2]+","+c+") !important;",{gd:this.Ra,reset:!0});$D(c,"captions-settings-background-opacity");b=bw(this.g.color);c=this.g.textOpacity;this.ib=TB(".captions-text","color: rgba("+b[0]+","+b[1]+","+b[2]+","+c+") !important;",{gd:this.ib,reset:!0});$D(c,"captions-settings-text-opacity");b=bw(this.g.windowColor);c=this.g.windowOpacity;this.nb=
TB(".caption-window-transform","background-color: rgba("+b[0]+","+b[1]+","+b[2]+","+c+") !important;",{gd:this.nb,reset:!0});$D(c,"captions-settings-window-opacity");var b=this.g.charEdgeStyle,d=this.g.textOpacity;if("none"==b)this.ka&&UB(this.ka);else{var c="",e="rgba(34, 34, 34, "+d+")",d="rgba(204, 204, 204, "+d+")";switch(b){case "dropShadow":c="text-shadow: 2px 2px 3px "+e+", 2px 2px 4px "+e+", 2px 2px 5px "+e+";";break;case "raised":c="text-shadow: 1px 1px "+e+", 2px 2px "+e+", 3px 3px "+e+
";";break;case "depressed":c="text-shadow: 1px 1px "+d+", 0 1px "+d+", -1px -1px "+e+", 0 -1px "+e+";";break;case "uniform":c="text-shadow: 0 0 4px "+e+", 0 0 4px "+e+", 0 0 4px "+e+", 0 0 4px "+e+";"}this.ka=TB(".captions-text",c,{gd:this.ka,reset:!0})}aE(this,"captions-settings-char-edge-style","charEdgeStyle");c=b="";switch(this.g.fontFamilyOption){case "monoSerif":b='"Courier New", Courier, "Nimbus Mono L", "Cutive Mono", monospace';break;case "propSerif":b='"Times New Roman", Times, Georgia, Cambria, "PT Serif Caption", serif';
break;case "monoSans":b='"Deja Vu Sans Mono", "Lucida Console", Monaco, Consolas, "PT Mono", monospace';break;case "propSans":b='"Arial Unicode Ms", Arial, Helvetica, Verdana, "PT Sans Caption", sans-serif';break;case "casual":b='"Comic Sans MS", Impact, Handlee, fantasy';break;case "cursive":b='"Monotype Corsiva", "URW Chancery L", "Apple Chancery", "Dancing Script", cursive';break;case "smallCaps":b='"Arial Unicode Ms", Arial, Helvetica, Verdana, "Marcellus SC", sans-serif',c="font-variant: small-caps;"}this.cb=
TB(".captions-text",c+"font-family: "+b+" !important;",{gd:this.cb,reset:!0});this.g.fontFamily=b;aE(this,"captions-settings-font-family","fontFamilyOption");b="font-size: "+Math.round(16*(1+.25*(this.g.fontSizeIncrement||0))*this.Fa)+"px;";this.gb=TB(".caption-window-transform",b,{gd:this.gb,reset:!0});this.jj();n(a)&&!a||pu(this,"display-settings",this.g)};
function bE(a){var b=[],c=u(function(a){var c=this.g[a];c&&b.push(a+": "+c+" !important")},a);c("color");c("background");c={gd:a.Wa,reset:!0};a.Wa=TB(".captions-text",b,c);var d=bw(a.g.windowColor),c={gd:a.hb,reset:!0};a.hb=TB(".caption-window-transform","background-color: rgba("+d[0]+","+d[1]+","+d[2]+", 1)",c)}f.kx=function(){this.A||this.load()};
f.vx=function(){var a=0==this.F.getSelected();this.A&&!a?(this.unload(),pu(this,"module-enabled",!1),yu(this),this.H("vss_segment")):!this.A&&a?(this.za=!0,this.load()):this.o.D&&this.Yp()};f.wx=function(){lu(this,this.N);yu(this)};f.Yp=function(){SD(this,this.o.D)};f.jx=function(){this.o.F?this.la||lu(this,this.T):mu(this,this.D.tb+"timedtext_video?v="+this.B.videoId);yu(this)};function cE(a){return JD.prototype.Ja(a)?new JD(a):null}
f.Hj=function(a,b){switch(a){case "fontSize":return isNaN(b)||(this.g.fontSizeIncrement=Math.max(-2,Math.min(4,b)),this.ue()),this.g.fontSizeIncrement;case "reload":b&&ND(this);break;case "stickyLoading":this.D.zb()&&pu(this,"module-enabled",!!b);break;case "track":if(b){if(!la(b))break;var c=new fD(b);c.equals(this.j)||(RD(this,c),jC(this.o,c.toString()))}else return this.j?gD(this.j):{};return"";case "tracklist":return this.A?A(uD(this.k.b,b&&b.includeAsr),function(a){return gD(a)}):[];case "displaySettings":return b&&
la(b)&&dE(this,b),c=ac(this.g),delete c.fontFamily,c;case "sampleSubtitles":PD(this,!!b)}};function PD(a,b){if(b&&!a.I){a.I=new MC(98,rC);var c=a.I.ya;O(c,a.ua);dd(a.b.app.g.F,c,0);PC(a.I,Y(vu(a),"YTP_SAMPLE_SUBTITLES"))}else!b&&a.I&&(ed(a.I.ya),a.I=null)}f.Bj=function(){var a="reload fontSize track tracklist displaySettings sampleSubtitle".split(" ");this.D.zb()&&a.push("stickyLoading");return a};var eE=/^#(?:[0-9a-f]{3}){1,2}$/i;f=JD.prototype;f.xn=function(a,b){return a&&s(a)&&eE.test(a)?a:b};
f.yn=function(a,b){return ja(a)&&!isNaN(a)?Math.max(0,Math.min(1,parseFloat(a))):b};f.oC=function(a,b){return a&&s(a)&&Ub(oC,a)?a:b};f.pC=function(a,b){return a&&s(a)&&Ub(nC,a)?a:b};f.qC=function(a,b){return ja(a)&&!isNaN(a)?Math.max(-2,Math.min(4,a)):b};var fE=null;
function dE(a,b){if(b)if($b(b,"reset"))a.$p();else{if(!fE){var c={};c.color=a.xn;c.textOpacity=a.yn;c.background=a.xn;c.backgroundOpacity=a.yn;c.windowColor=a.xn;c.windowOpacity=a.yn;c.charEdgeStyle=a.oC;c.fontFamilyOption=a.pC;c.fontSizeIncrement=a.qC;fE=c}var c=fE,d;for(d in c)a.g[d]=c[d](b[d],a.g[d]);a.ue(gE(a.D))}}f=JD.prototype;f.Ja=function(a){return!!a.getVideoData().Lf};f.Hi=function(a){a?(a=this.j,QD(this),this.j=a):(OD(this,this.A),this.j&&RD(this,this.j))};
function OD(a,b){b?(KC(a.O,"ytp-subtitles-button-active"),OA(a.F.element,0)):(KC(a.O,"ytp-subtitles-button"),OA(a.F.element,1))}f.dq=function(){this.k.seek(this.b.getCurrentTime())};f.$g=function(){var a=this.j;return a?{cc:a.D}:null};f.J=function(){this.xb.removeAll();this.L&&(N(this.L),this.L=0);this.P&&(Ve(this.P),this.P=0);JD.G.J.call(this)};function hE(a){hu.call(this,a);this.ua="ypc_license_checker";this.hc="ypc_license";this.A=!1;this.o=0;this.k=!1;this.g=NaN;this.C=hq();this.B=a.R().tb+"ypc_license_server";this.j=null}w(hE,hu);
var iE={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 jE(a){return bs(a.getVideoData(),"ypc_license_checker_module")}f=hE.prototype;f.Ja=function(){return jE(this.b)};f.create=function(){hE.G.create.call(this);var a=new Yt(1E3,2147483646,{priority:0});this.Gf(a);this.subscribe("heartbeatparams",this.jD,this);this.subscribe("onStateChange",this.kD,this)};function kE(a){return jE(a)?new hE(a):null}f.Fc=function(){this.A=!0;lE(this,6E4)};f.jD=function(a){this.j=a;lE(this,6E4)};
f.kD=function(a){W(a.state,2)?(this.o=0,this.g&&(N(this.g),this.g=NaN),this.k=!1):(W(a.state,1)||W(a.state,8))&&lE(this,6E4)};function lE(a,b){if(!a.g&&a.A){var c=a.b.getVideoData();if(!Vr(c)||a.j)if(Vr(c)||!gE(a.b.R()))c=b,void 0==c&&(c=a.k?a.j?1E3*a.j.b:6E4:1E3),a.g=L(u(a.xx,a),c)}}
f.xx=function(){var a,b,c,d=this.b.getVideoData();Vr(d)?(b="GET",a={},c=Yd(this.j.url,{request_id:hq()}),d.C&&(c=Yd(c,{vvt:d.C})),d.B&&(c=Yd(c,{access_token:d.B}))):(b="POST",a={video_id:d.videoId,player_id:this.C,request_id:hq(),purchase_id:d.Dw,version:"4",player_time_seconds:this.b.getCurrentTime().toString(),gid:d.mf,ypc_token:d.kf},d.C&&(a.vvt=d.C),d.B&&(a.access_token=d.B),c=this.B);c=Yd(c,{cpn:d.Da});Hi(c,{format:"RAW",method:b,fd:a,timeout:3E4,onSuccess:u(this.qA,this),onError:u(this.pA,this),
kh:u(this.rA,this),withCredentials:!0})};f.qA=function(a){if(this.g){a=a.responseText;var b;t:{b=a;var c=b.match(mE);if(c){if("0"!=c[1]){b=1;break t}b=c[3]}b=b in iE?1:64<=b.length&&b.match(/[0-9a-fA-f]+/)?0:-1}-1==b?nE(this,"decode"):(this.o=0,this.g=NaN,1==b?(this.k=!1,b="YTP_ERROR_LICENSE",(c=a.match(mE))?(a=parseInt(c[1],10))&&(b=Bu(a)):a in iE&&(b=iE[a]),a=Ye(b),Qv(this.b.app.j,"heartbeat",a,void 0)):(this.k=!0,lE(this)))}};f.pA=function(a){nE(this,"net-"+a.status)};f.rA=function(){nE(this,"timeout")};
function nE(a,b){if(a.g)if(a.log({errorType:b}),a.g=NaN,5<++a.o){var c=Ye("YTP_ERROR_LICENSE");Qv(a.b.app.j,"heartbeat",c,void 0)}else lE(a)}var mE=/^GLS\/1.0 (\d+) (\w+).*?\r\n\r\n([^]*)$/;function oE(){this.b=[];this.g=[]}da(oE);var pE=p("yt.player.utils.VideoTagPool.instance_")||oE.getInstance();ba("yt.player.utils.VideoTagPool.instance_",pE,void 0);oE.prototype.j=function(a){if(!(this.b.length>=a)){a-=this.b.length;for(var b=0;b<a;b++){var c=qE(this);this.b.push(c)}}};function qE(a,b){var c=document.createElement("video");sa(c,Ht);R(c,"loadeddata",u(c.yC,c));R(c,"volumechange",u(c.zC,c));kh&&6<=Dq&&R(c,"webkitbeginfullscreen",u(c.play,c));b||It(c);a.g.push(c);return c}
oE.prototype.A=function(a){return this.b.length?this.b.pop():qE(this,a)};oE.prototype.o=function(a){a&&C(this.g,a)&&(Nt(a),Tg(a),rb(this.g,a))};oE.prototype.k=function(a){return this.b.length>=(a||1)};oE.prototype.fillPool=oE.prototype.j;oE.prototype.getTag=oE.prototype.A;oE.prototype.releaseTag=oE.prototype.o;oE.prototype.hasTags=oE.prototype.k;var rE={LI:"0",NI:"1",pE:"2",HI:"3"};function sE(){X.call(this,["div",["html5-bezel","html5-center-overlay"],["div","{{icon}}"]]);this.b=NaN;this.hide()}w(sE,X);sE.prototype.g=function(){O(this.element,"html5-bezel-fade");this.b=L(u(this.hide,this),300)};sE.prototype.hide=function(){sE.G.hide.call(this);tE(this)};sE.prototype.setIcon=function(a){Ev(this.template,"icon",a)};sE.prototype.show=function(a){tE(this);a&&this.setIcon(a);sE.G.show.call(this)};function tE(a){N(a.b);P(a.element,"html5-bezel-fade")};function uE(a){X.call(this,a);this.T=new aj;S(this,this.T)}w(uE,X);uE.prototype.subscribe=function(a,b,c){return this.T.subscribe(a,b,c)};uE.prototype.ia=function(a,b,c){return this.T.ia(a,b,c)};uE.prototype.Ib=function(a){return this.T.Ib(a)};uE.prototype.H=function(a,b){return this.T.H.apply(this.T,arguments)};function vE(){this.g=this.b=null}function Y(a,b,c){return Ye(b,c,void 0)}f=vE.prototype;f.Og=function(a,b){this.b&&this.b.Og(a,b)};f.Af=function(a,b,c){this.b&&this.b.Af(a,b,c)};f.ln=function(a){this.b&&this.b.ln(a)};f.Vc=function(){return this.g.Vc()};f.Fb=function(){return this.g.Fb()};function wE(a){X.call(this,["span"]);this.element.innerHTML=a}w(wE,X);function xE(a,b){X.call(this,["span","","{{sparkline_container}}"]);this.j=a;this.g=b;this.b=new wE("");S(this,this.b);Ev(this.template,"sparkline_container",this.b)}w(xE,X);function yE(){X.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.g=this.template.b["html5-video-info-panel-close"];
this.b=new xE(200,14);S(this,this.b);Ev(this.template,"bandwidth_sparkline",this.b)}w(yE,X);
yE.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;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*db(b)/1024).toFixed(0)+" Kbps";for(var c=this.b,d=c.b,e=Math.max.apply(Math,b)||1,g=[],h=0;h<b.length;h++)g.push(h/b.length*
c.j+","+c.g*(1-b[h]/e));b='<svg width="'+c.j+'" height="'+c.g+'" viewbox="0 0 '+c.j+" "+c.g+'"><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)};yE.prototype.J=function(){this.g=null;yE.G.J.call(this)};function zE(a){uE.call(this,["div","html5-video-player",{tabindex:-1}]);this.app=a;this.g=this.Wa=null;this.L=new yf(0,0,0,0);this.b=null;this.pa=new yf(0,0,0,0);this.F=this.N=null;this.ib=this.ac=0;this.ca=null;this.U=0;this.za=null;a=a.R();this.xb=ef()||"blazer"==a.qb;this.cb=0;this.A=null;this.j=new vE;this.Vg()}w(zE,uE);f=zE.prototype;
f.Vg=function(){this.app.subscribe("initializingmode",this.eE,this);this.app.subscribe("videoplayerreset",this.gE,this);this.app.subscribe("videodatachange",this.fE,this)};
f.initialize=function(a){this.Wa=Mc(a);this.element.setAttribute("id",this.app.O.attrs.id);sg(this.element,"version",this.app.O.assets.js);this.element.style.display="none";this.X(this.Wa);Xe({YTP_ADVERTISEMENT:"Advertisement",YTP_AUDIO_TRACK_TITLE:"Audio track",YTP_AUTO:"Auto",YTP_AUTO_WITH_QUALITY_2:"Auto ($VIDEO_QUALITY)",YTP_CHANGE_QUALITY_WITH_QUALITY_2:"Change quality ($VIDEO_QUALITY)",YTP_COPY_DEBUG_INFO:"Copy debug info",YTP_COPY_VIDEO_URL:"Copy video URL",YTP_COPY_VIDEO_URL_AT_TIME:"Copy video URL at current time",
YTP_GET_DEBUG_INFO:"Get debug info",YTP_GET_VIDEO_URL:"Get video URL",YTP_GET_VIDEO_URL_AT_TIME:"Get video URL at current time",YTP_GET_EMBED:"Get embed code",YTP_DEFAULT_VIEW:"Default view",YTP_EMBED_COPY:"Copy embed code",YTP_ERROR_GENERIC:"An error occurred, please try again later.",YTP_ERROR_GENERIC_WITH_LINK_2:"An error occurred, please try again later. $BEGIN_LINKLearn More$END_LINK",YTP_EXIT_FULLSCREEN:"Exit full screen",YTP_FEATURED:"Featured",YTP_FULLSCREEN:"Full screen",YTP_LARGE_PLAYER:"Large player",
YTP_MIX:"Mix",YTP_MORE:"More",YTP_MDX_TITLE:"Play on",YTP_MDX_TOOLTIP:"Play on TV",YTP_MDX_MY_COMPUTER:"This computer",YTP_MUTE:"Mute",YTP_NEXT:"Next",YTP_NEXT_VIDEO_IN:"Next video in $TIME_LEFT",YTP_NORMAL_SPEED:"Normal",YTP_ON:"On",YTP_OFF:"Off",YTP_OPTIONS:"Options",YTP_PLAY_ALL:"Play all",YTP_PREVIOUS:"Previous",YTP_PLAYLIST:"Playlist",YTP_PLAYLIST_UP_NEXT:"Up Next",YTP_QUALITY_TITLE:"Quality",YTP_REPLAY:"Replay",YTP_REPORT_ISSUE:"Report playback issue",YTP_SETTINGS:"Settings",YTP_SHARE:"share",
YTP_SHARE_WITH_PLAYLIST:"Share with playlist",YTP_SHOW_VIDEO_INFO:"Stats for nerds",YTP_SMALL_PLAYER:"Small player",YTP_SPEED_TITLE:"Speed",YTP_ST_COLLAPSE:"Collapse",YTP_ST_EXPAND:"Expand",YTP_SUBTITLES:"Captions",YTP_THEATER_MODE:"Theater mode",YTP_UNMUTE:"Unmute",YTP_URL_NAVIGATE:"Watch on YouTube.com",YTP_WATCH_ALL:"Watch entire video",YTP_WATCH_LATER:"Watch Later",YTP_WATCH_LATER_AS_2:"Watch later as $USER_NAME",YTP_SUBSCRIBE_AS:"Subscribe as $USER_NAME",YTP_LIKE_AS:"Like as $USER_NAME",YTP_DISLIKE_AS:"Dislike as $USER_NAME",
YTP_WATCH_NEXT:"Watch next",YTP_PLAY:"Play",YTP_WATERMARK:"Watermark",YTP_ERROR_STREAMING_UNAVAILABLE:"Video playback is unavailable right now because this video has been downloaded for offline viewing.",YTP_ERROR_LICENSE:"Sorry, there was an error licensing this video.",YTP_ERROR_VIDEO_NOT_FOUND:"This video can not be found.",YTP_ERROR_ALREADY_PINNED_ON_A_DEVICE:"This video has already been downloaded on the maximum number of devices allowed by the copyright holder. Before you can play the video here, it needs to be unpinned on another device.",
YTP_ERROR_CANNOT_ACTIVATE_RENTAL:"An error occurred when activating your rental. Please reload this page or try again later.",YTP_ERROR_PURCHASE_NOT_FOUND:"This video requires payment.",YTP_ERROR_PURCHASE_REFUNDED:"This video's purchase has been refunded.",YTP_ERROR_STOPPED_BY_ANOTHER_PLAYBACK:"Your account is playing this video in another location. Please reload this page to resume watching.",YTP_ERROR_TOO_MANY_STREAMS_PER_USER:"Playback stopped because too many videos belonging to the same account are playing.",
YTP_ERROR_TOO_MANY_STREAMS_PER_ENTITLEMENT:"Playback stopped because this video has been played on too many devices.",YTP_ERROR_STREAMING_DEVICES_QUOTA_PER_24H_EXCEEDED:"Too many devices/IP addresses have been used over the 24 hour period.",YTP_ERROR_UNUSUAL_ACTIVITY:"Due to unusual account activity, this video is not currently available.",YTP_ERROR_NOT_SIGNED_IN:"Please sign in to resume watching.",YTP_CLOSE:"Close",YTP_ANNOTATIONS:"Annotations",YTP_DONE:"Done",YTP_SHARE_THIS_PLAYLIST:"Share this playlist",
YTP_UPLOADED_BY_2:"by $AUTHOR",YTP_PAUSE:"Pause",YTP_AUTOPLAY:"Autoplay",YTP_AUTOPLAY_COUNTDOWN_2:"Next video in $SECONDS_LEFT",YTP_CANCEL:"Cancel",YTP_ON_GOOGLE_PLUS:"On Google+",YTP_STILL_THERE:"Are you still there? If so, please click the button below to continue watching the playlist.",YTP_DISMISS:"OK",YTP_RESET:"Reset",YTP_STOP:"Stop live playback",YTP_LIKE:"Like",YTP_DISLIKE:"Dislike",YTP_MORE_INFO:"More info",YTP_SCREENREADER_VOLUME_SETTING:"volume",YTP_SCREENREADER_VOLUME_MUTED:"muted",YTP_SCREENREADER_VOLUME_MUTE:"mute",
YTP_SCREENREADER_VOLUME_UNMUTE:"unmute",YTP_SCREENREADER_CONTROL_TOGGLE:"toggle",YTP_SAMPLE_SUBTITLES:"Captions look like this",YTP_HTML5_CONTEXT_MENU_LINK:"About the HTML5 player",YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK:"This video format is not supported.",YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK:"Your browser does not currently recognize any of the video formats available. $BEGIN_LINKClick here to visit our frequently asked questions about HTML5 video.$END_LINK",YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK_FLASH:"The Adobe Flash Player is required for video playback. $BEGIN_LINKGet the latest Flash Player$END_LINK.",
YTP_ERROR_CAST_SESSION_DEVICE_MISMATCHED:"The device in the cast session doesn't match the requested one.",YTP_ERROR_CAST_SESSION_VIDEO_MISMATCHED:"The video in the cast session doesn't match the requested one.",YTP_ERROR_CAST_TOKEN_EXPIRED:"Cast session was expired. Please refresh.",YTP_ERROR_CAST_TOKEN_FAILED:"Cast session not available. Please refresh or try again later.",YTP_ERROR_CAST_TOKEN_MALFORMED:"Invalid cast session. Please refresh or try again later.",YTP_ERROR_GEO_FAILURE:"This video isn't available in your country.",
YTP_ERROR_INVALID_DRM_MESSAGE:"The DRM system specific message is invalid.",YTP_ERROR_RENTAL_EXPIRED:"This video's rental has expired.",YTP_ERROR_RETRYABLE_ERROR:"There was a temporary server error. Please try again later.",YTP_ERROR_SERVER_ERROR:"There was an internal server error. Please try again later.",YTP_ERROR_STREAMING_NOT_ALLOWED:"Playback not allowed because this video is pinned on another device.",YTP_ERROR_UNSUPPORTED_DEVICE:"Playback isn't supported on this device.",YTP_ERROR_VIDEO_FORBIDDEN:"Access to this video is forbidden.",
YTP_MDX_STATUS_CONNECTED:"Playing on",YTP_MDX_STATUS_CONNECTING:"Connecting to",YTP_MDX_STATUS_ERROR:"Error on",YTP_MDX_PLAYER_ERROR:"This video is not available for remote playback.",YTP_MDX_PLAYER_RECONNECT_TIME:"Please check your Internet connection. Retrying in $FORMATTED_TIME...",YTP_MDX_PLAYER_RECONNECT_BUTTON:"Reconnect",YTP_DEVICE_FALLBACK:"Sorry, this video is not available on this device.",YTP_AD_RESUME_MESSAGE:"Your video will resume after the following ad.",YTP_VISIT_ADVERTISERS_SITE:"Visit advertiser's site"});
this.Ms()};f.Ms=function(){this.H("templateready")};f.eE=function(){this.pa=new yf(0,0,0,0);this.L=new yf(0,0,0,0)};f.addClass=function(a){pg(this.element,arguments)};f.removeClass=function(a){qg(this.element,arguments)};
f.Qg=function(){this.Wl();var a=this.app.R();this.addClass("el-"+a.$);this.addClass("ps-"+a.qb);Q(this.element,"html5-native-controls",a.Qb);Q(this.element,"html5-mobile",a.Pb);a.Od||this.addClass("html5-chromeless");a.Rb||this.addClass("tag-pool-enabled");this.element.style.display="";a=new zv(["div","html5-video-container"]);S(this,a);a.X(this.element);this.g=a.K();this.N=new zv(["div","html5-video-content"]);S(this,this.N);this.N.X(this.g);a=new zv(["div","html5-video-controls"]);S(this,a);a.X(this.element);
this.F=a.K();this.A=new yE;this.A.X(this.element);Qy(this,this.A.g,"click",this.rm);S(this,this.A);this.xb?this.ca=R(window,"resize",u(this.ph,this)):(a=cz()?u(this.RB,this):u(this.ph,this),this.ca=Ue(a,250))};f.Gj=function(a){a?Ny(this.F):Oy(this.F)};f.RB=function(){this.U&&fz(this.U);this.U=ez(u(this.ph,this),0)};f.ph=function(){Lb(this.Fb(),Bf(this.L))||this.Tf()};
f.Tf=function(){if(this.b){var a=this.Fb();if(!a.isEmpty()){var b=!Lb(a,Bf(this.L)),c,d=AE(this),e=this.Fb();c=1;var g=BE(this),h=!1,k;g?(k=CE(this,e,d,g,!1),c=DE(new G(k.width,k.height))/DE(d),k=new yf(k.left+k.width/2*(1-1/c),k.top,k.width/c,k.height)):k=new yf(0,0,e.width,e.height);Af(this.pa,k)||(this.pa=k,Wf(this.b,Bf(k)),Lf(this.b,new F(k.left,k.top)),h=!0);d=CE(this,e,d,g);Af(this.L,d)||(this.L=d,Wf(this.N.K(),d.width,d.height),Lf(this.N.K(),d.left,d.top),h=!0);Gx(this.b,"transform",1==c?"none":
"scaleX("+c+")");c=h;b&&(this.L.width=a.width,this.L.height=a.height,this.Ym(a));(c||b)&&this.H("resize")}}};f.Ym=function(){};f.Hl=function(){};f.fE=function(a,b){this.Aj(b)};f.gE=function(a){a.getVideoData()&&this.Aj(a.getVideoData())};
f.Aj=function(a){this.b&&(this.b.setAttribute("data-youtube-id",a.videoId),lr&&(a.title?this.b.setAttribute("title",a.title):this.b.removeAttribute("title")),a.Dm&&(this.b.poster=a.Dm));var b=Wr(a,"yt:bgcolor");this.g.style.backgroundColor=b?b:"";this.ac=pq(Wr(a,"yt:stretch"));a=Wr(a,"yt:crop");this.ib="fullwidth"==a?Infinity:pq(a)};f.Rg=function(){};f.um=function(){};f.Vc=function(){return this.element?new G(this.element.clientWidth,this.element.clientHeight):new G(0,0)};
f.Fb=function(){return this.g?new G(this.g.clientWidth,this.g.clientHeight):new G(0,0)};f.xs=function(){return this.Fb()};function WD(a){return a.b?new G(a.b.clientWidth,a.b.clientHeight):new G(0,0)}function AE(a){return a.b?new G(a.b.videoWidth,a.b.videoHeight):new G(0,0)}function EE(a){return CE(a,a.Fb(),AE(a),BE(a),void 0)}
function CE(a,b,c,d,e){c.isEmpty()?d=b:d?(c=a.ac||DE(c),a=a.ib||c,d=DE(b),d=a>d?new G(b.width,b.width/(isFinite(a)?a:c)):a<d?new G(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(Mb(e)>Mb(b)?b.width/e.width:b.height/e.height));return new yf((b.width-d.width)/2,(b.height-d.height)/2,d.width,d.height)}function DE(a){var b=16/9;return 1>Math.abs(b*a.height-a.width)||1>Math.abs(b/a.width-a.height)?b:Mb(a)}
function BE(a){return!a.app.R().Qb&&!AE(a).isEmpty()}f.ik=function(){};function ct(a){a.A&&(a.A.show(),a.Js(),Ve(a.cb),a.cb=Ue(u(a.Js,a),500))}
f.Js=function(){var a=Ms(this.app),b=this.app.getVideoData(),c=this.app.ng(),d=this.b,e=this.app.R(),g=b.videoId,h=d.videoWidth,k=d.videoHeight,l=d.clientWidth,d=d.clientHeight,q=window.devicePixelRatio,r=Math.round(this.app.D.volume),t;t:{if(b.te&&(t=b.te.match(/url=(https?)/))&&2==t.length){t=t[1];break t}t=""}t=t||e.protocol;var y=this.app;if(y.wa){var D=[];y.wa.M.forEach(u(D.push,D));y=D}else y=[0];c={video_id:g,video_width:h,video_height:k,video_element_width:l,video_element_height:d,device_pixel_ratio:q,
cpn:"",mime:"",dash:"no",drm_flavor:"",drm_key_system:"",volume:r,stream_type:t,bandwidth_history:y,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.b&&(g=mo(b.b)?"yes":"no",g+=" ("+b.b.id,b.N&&mo(b.b)&&(g+="/"+b.N.id),c.dash=g+")",c.mime=b.b.mimeType);if(a=a.C?a.C.b:null)c.drm_flavor=
a.g,c.drm_key_system=a.b;gE(e)&&(c.cpn=b.Da);this.A.update(c)};f.rm=function(a){a&&a.stopPropagation();this.A&&(Ve(this.cb),this.A.hide())};f.Wl=function(){this.j.g=this};f.J=function(){this.ca&&(this.xb?Pg(this.ca):Ve(this.ca),this.U&&fz(this.U));this.za&&Pg(this.za);this.rm();this.A&&Tg(this.A.g);this.F=this.N=this.b=this.g=this.Wa=null;zE.G.J.call(this)};function FE(a){X.call(this,["div","ytp-dialog-holder","{{content}}"]);this.g=a;this.b=null}w(FE,X);FE.prototype.show=function(){FE.G.show.call(this);GE(this)};function GE(a){if(a.b){a.b.A();var b=a.g.Vc(),c=Yf(a.b.K());a=a.b;b=new F(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"}}FE.prototype.J=function(){this.b=null;FE.G.J.call(this)};function HE(a,b){X.call(this,["canvas"]);this.element.width=a;this.element.height=b;this.width=a;this.height=b;this.context=this.element.getContext("2d");this.b=0;this.o=null}w(HE,X);HE.prototype.j=function(a,b){N(this.b);this.context&&(this.b=Py(u(this.j,this,a,b),b),a.call(this,new Date-this.o))};HE.prototype.J=function(){N(this.b);this.context=null;HE.G.J.call(this)};function IE(a,b){HE.call(this,a,b);this.A=null;this.B=this.C=this.k=this.g=0;O(this.element,"ytp-tv-static");JE(this,a,b)}w(IE,HE);function KE(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 JE(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.A=d;a.C=KE(b);a.B=KE(c/10);a.context.scale(1.5,1.5)}}IE.prototype.show=function(){IE.G.show.call(this);var a=this.D;this.o=new Date;this.j(a,75)};
IE.prototype.D=function(){var a=1-1/1.5;this.g=(this.g+this.C)%(this.width*a);this.k=(this.k+this.B)%(this.height*a);this.context.drawImage(this.A,-1*this.g,-1*this.k)};IE.prototype.hide=function(){N(this.b);IE.G.hide.call(this)};function LE(){X.call(this,["div",["ytp-error","html5-stop-propagation"],["div","ytp-error-content",["div","ytp-error-content-wrap","{{content}}"]]]);this.aa="table";this.g=[];if(void 0==bq){var a=document.createElement("canvas");bq=!(!a.getContext||!a.getContext("2d"))}bq&&(this.b=new IE(1,1),this.b.X(this.element,0),S(this,this.b))}w(LE,X);LE.prototype.show=function(){LE.G.show.call(this);ME(this);this.b&&this.b.show()};LE.prototype.hide=function(){LE.G.hide.call(this);this.b&&this.b.hide()};
function ME(a){a.b&&JE(a.b,a.element.clientWidth,a.element.clientHeight)}LE.prototype.J=function(){Pg(this.g);this.g=[];LE.G.J.call(this)};function NE(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>';
X.call(this,["div",c]);d&&(this.element.innerHTML=d)}w(NE,X);function OE(a){this.g=a||30;HE.call(this,this.g,this.g);this.A=this.width/2;this.k=this.height/2;this.B=0;this.context.translate(this.A,this.k);this.hide()}w(OE,HE);OE.prototype.show=function(){OE.G.show.call(this);var a=this.C;this.o=new Date;this.j(a,125)};
OE.prototype.C=function(){this.context.clearRect(-this.A,-this.k,this.width,this.height);for(var a=this.B++%8,b=0;8>b;b++){var c=2*Math.PI/8*(a+b),d=11/30*this.g,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.g,0,2*Math.PI,!1);this.context.fillStyle="rgba(189, 189, 189, "+d+")";this.context.fill()}};OE.prototype.hide=function(){N(this.b);OE.G.hide.call(this)};function PE(a){X.call(this,["div","ytp-thumbnail"]);this.b=a}w(PE,X);
PE.prototype.show=function(a){if(a||this.element.childNodes.length){if(a){cd(this.element);var b=this.element,c=this.b;if(null!=Fx("backgroundSize")){if(d=document.createElement("div"),b=nB(b,a,c))d.style.backgroundImage="url("+b+")"}else{var d=document.createElement("img");d.src=nB(b,a,c);a=d;b.clientWidth/b.clientHeight<mB?(a.style.height="100%",a.style.width="auto"):(a.style.height="auto",a.style.width="100%")}O(d,"video-thumbnail");this.element.appendChild(d)}PE.G.show.call(this)}};function QE(a,b,c,d,e,g,h){var k,l;if(k=c.offsetParent){var q="HTML"==k.tagName||"BODY"==k.tagName;q&&"static"==Kf(k,"position")||(l=Rf(k),q||(q=(q=Sf(k))&&rc?-k.scrollLeft:!q||qc&&Bc("8")||"visible"==Kf(k,"overflowX")?k.scrollLeft:k.scrollWidth-k.clientWidth-k.scrollLeft,l=Kb(l,new F(q,k.scrollTop))))}k=l||new F;l=ag(a);if(q=Qf(a)){var r=zf(q),q=Math.max(l.left,r.left),t=Math.min(l.left+l.width,r.left+r.width);if(q<=t){var y=Math.max(l.top,r.top),r=Math.min(l.top+l.height,r.top+r.height);y<=r&&(l.left=
q,l.top=y,l.width=t-q,l.height=r-y)}}q=Jc(a);y=Jc(c);if(q.b!=y.b){var t=q.b.body,y=wd(y),r=new F(0,0),D=Vc(Lc(t)),M=t;do{var ea=D==y?Rf(M):Tf(M);r.x+=ea.x;r.y+=ea.y}while(D&&D!=y&&(M=D.frameElement)&&(D=D.parent));t=Kb(r,Rf(t));qc&&!vd(q)&&(t=Kb(t,xd(q)));l.left+=t.x;l.top+=t.y}a=RE(a,b);b=new F(a&2?l.left+l.width:l.left,a&1?l.top+l.height:l.top);b=Kb(b,k);e&&(b.x+=(a&2?-1:1)*e.x,b.y+=(a&1?-1:1)*e.y);var kb;h&&(kb=Qf(c))&&(kb.top-=k.y,kb.right-=k.x,kb.bottom-=k.y,kb.left-=k.x);return SE(b,c,d,g,kb,
h,void 0)}
function SE(a,b,c,d,e,g,h){a=a.clone();var k=0,l=RE(b,c);c=Zf(b);h=h?h.clone():c.clone();if(d||0!=l)l&2?a.x-=h.width+(d?d.right:0):d&&(a.x+=d.left),l&1?a.y-=h.height+(d?d.bottom:0):d&&(a.y+=d.top);if(g&&(e?(k=a,d=0,65==(g&65)&&(k.x<e.left||k.x>=e.right)&&(g&=-2),132==(g&132)&&(k.y<e.top||k.y>=e.bottom)&&(g&=-5),k.x<e.left&&g&1&&(k.x=e.left,d|=1),k.x<e.left&&k.x+h.width>e.right&&g&16&&(h.width=Math.max(h.width-(k.x+h.width-e.right),0),d|=4),k.x+h.width>e.right&&g&1&&(k.x=Math.max(e.right-h.width,e.left),
d|=1),g&2&&(d=d|(k.x<e.left?16:0)|(k.x+h.width>e.right?32:0)),k.y<e.top&&g&4&&(k.y=e.top,d|=2),k.y<=e.top&&k.y+h.height<e.bottom&&g&32&&(h.height=Math.max(h.height-(e.top-k.y),0),k.y=e.top,d|=8),k.y>=e.top&&k.y+h.height>e.bottom&&g&32&&(h.height=Math.max(h.height-(k.y+h.height-e.bottom),0),d|=8),k.y+h.height>e.bottom&&g&4&&(k.y=Math.max(e.bottom-h.height,e.top),d|=2),g&8&&(d=d|(k.y<e.top?64:0)|(k.y+h.height>e.bottom?128:0)),k=d):k=256,k&496))return k;Lf(b,a);Lb(c,h)||(a=Lc(b),e=vd(Jc(a)),!qc||e&&
Bc("8")?(b=b.style,rc?b.MozBoxSizing="border-box":sc?b.WebkitBoxSizing="border-box":b.boxSizing="border-box",b.width=Math.max(h.width,0)+"px",b.height=Math.max(h.height,0)+"px"):(a=b.style,e?(qc?(e=fg(b,"paddingLeft"),c=fg(b,"paddingRight"),g=fg(b,"paddingTop"),d=fg(b,"paddingBottom"),e=new xf(g,c,d,e)):(e=Jf(b,"paddingLeft"),c=Jf(b,"paddingRight"),g=Jf(b,"paddingTop"),d=Jf(b,"paddingBottom"),e=new xf(parseFloat(g),parseFloat(c),parseFloat(d),parseFloat(e))),b=ig(b),a.pixelWidth=h.width-b.left-e.left-
e.right-b.right,a.pixelHeight=h.height-b.top-e.top-e.bottom-b.bottom):(a.pixelWidth=h.width,a.pixelHeight=h.height)));return k}function RE(a,b){return(b&4&&Sf(a)?b^2:b)&-5};var TE={},UE="ontouchstart"in document;function VE(a,b,c){var d;switch(a){case "mouseover":case "mouseout":d=3;break;case "mouseenter":case "mouseleave":d=9}return td(c,function(a){return og(a,b)},!0,d)}
function WE(a){var b="mouseover"==a.type&&"mouseenter"in TE||"mouseout"==a.type&&"mouseleave"in TE,c=a.type in TE||b;if("HTML"!=a.target.tagName&&c){if(b){var b="mouseover"==a.type?"mouseenter":"mouseleave",c=TE[b],d;for(d in c.$b){var e=VE(b,d,a.target);e&&!td(a.relatedTarget,function(a){return a==e},!0)&&c.H(d,e,b,a)}}if(b=TE[a.type])for(d in b.$b)(e=VE(a.type,d,a.target))&&b.H(d,e,a.type,a)}}R(document,"blur",WE,!0);R(document,"change",WE,!0);R(document,"click",WE);R(document,"focus",WE,!0);
R(document,"mouseover",WE);R(document,"mouseout",WE);R(document,"mousedown",WE);R(document,"keydown",WE);R(document,"keyup",WE);R(document,"keypress",WE);R(document,"cut",WE);R(document,"paste",WE);UE&&(R(document,"touchstart",WE),R(document,"touchend",WE),R(document,"touchcancel",WE));function XE(){this.k={};this.o=[]}f=XE.prototype;f.ld=function(a){return ud(a,Z(this))};function Z(a,b){return"yt-uix"+(a.Kd?"-"+a.Kd:"")+(b?"-"+b:"")}f.dispose=ca;function YE(a,b,c){b=Th(b,c,a);a.o.push(b)}function ZE(a,b,c,d){d=Z(a,d);var e=u(c,a);b in TE||(TE[b]=new Nh);TE[b].subscribe(d,e);a.k[c]=e}f.Vf=function(a,b,c){var d=this.Y(a,b);if(d&&(d=p(d))){var e=yb(arguments,2);xb(e,0,0,a);d.apply(null,e)}};f.Y=function(a,b){return ug(a,b)};function $E(a,b){sg(a,"tooltip-text",b)}
f.removeData=function(a,b){vg(a,b)};function aF(){XE.call(this);this.b={}}w(aF,XE);da(aF);f=aF.prototype;f.Kd="tooltip";f.Dj=0;f.register=function(){ZE(this,"mouseover",this.ft);ZE(this,"mouseout",this.Ej);ZE(this,"click",this.Ej);ZE(this,"touchstart",this.RD);ZE(this,"touchend",this.ht);ZE(this,"touchcancel",this.ht)};f.dispose=function(){for(var a in this.b)this.Ej(this.b[a]);this.b={}};
f.ft=function(a){if(!(this.Dj&&1E3>v()-this.Dj)){var b=parseInt(this.Y(a,"tooltip-hide-timer"),10);b&&(this.removeData(a,"tooltip-hide-timer"),N(b));var b=u(function(){bF(this,a);this.removeData(a,"tooltip-show-timer")},this),c=parseInt(this.Y(a,"tooltip-show-delay"),10)||0,b=L(b,c);sg(a,"tooltip-show-timer",b.toString());a.title&&($E(a,cF(this,a)),a.title="");b=ma(a).toString();this.b[b]=a}};
f.Ej=function(a){var b=parseInt(this.Y(a,"tooltip-show-timer"),10);b&&(N(b),this.removeData(a,"tooltip-show-timer"));b=u(function(){dF(this,a);this.removeData(a,"tooltip-hide-timer")},this);b=L(b,50);sg(a,"tooltip-hide-timer",b.toString());if(b=this.Y(a,"tooltip-text"))a.title=b;b=ma(a).toString();delete this.b[b]};f.RD=function(a,b,c){this.Dj=0;a=VE(b,Z(this),c.changedTouches[0].target);this.ft(a)};f.ht=function(a,b,c){this.Dj=v();a=VE(b,Z(this),c.changedTouches[0].target);this.Ej(a)};
function eF(a,b,c){$E(b,c);a=a.Y(b,"content-id");if(a=Mc(a))a.innerHTML=c}function cF(a,b){return a.Y(b,"tooltip-text")||b.title}
function bF(a,b){if(b){var c=cF(a,b);if(c){var d=Mc(fF(a,b));if(!d){d=document.createElement("div");d.id=fF(a,b);d.className=Z(a,"tip");var e=document.createElement("div");e.className=Z(a,"tip-body");var g=document.createElement("div");g.className=Z(a,"tip-arrow");var h=document.createElement("div");h.className=Z(a,"tip-content");var k=gF(a,b),l=fF(a,b,"content");h.id=l;sg(b,"content-id",l);e.appendChild(h);k&&d.appendChild(k);d.appendChild(e);d.appendChild(g);(Wg()||document.body).appendChild(d);
eF(a,b,c);(c=parseInt(a.Y(b,"tooltip-max-width"),10))&&e.offsetWidth>c&&(e.style.width=c+"px",O(h,Z(a,"normal-wrap")));h=og(b,Z(a,"reverse"));hF(a,b,d,e,k,h)||hF(a,b,d,e,k,!h);var q=Z(a,"tip-visible");L(function(){O(d,q)},0)}}}}
function hF(a,b,c,d,e,g){Q(c,Z(a,"tip-reverse"),g);var h=0;g&&(h=1);var k=Zf(b);g=new F((k.width-10)/2,g?k.height:0);var l=Rf(b);SE(new F(l.x+g.x,l.y+g.y),c,h);var l=Rc(window),q=Vf(c);c=Zf(d);var r=Math.floor(c.width/2),h=!!(l.height<q.y+k.height),k=!!(q.y<k.height);g=!!(q.x<r);l=!!(l.width<q.x+r);q=(c.width+3)/-2- -5;a=a.Y(b,"force-tooltip-direction");if("left"==a||g)q=-5;else if("right"==a||l)q=20-c.width-3;a=Math.floor(q)+"px";d.style.left=a;e&&(e.style.left=a,e.style.height=c.height+"px",e.style.width=
c.width+"px");return!(h||k)}function dF(a,b){if(b){var c=Mc(fF(a,b));c&&(iF(c),ed(c),a.removeData(b,"content-id"))}}function fF(a,b,c){a=Z(a)+yg(b);c&&(a+="-"+c);return a}function gF(a,b){var c=null;kc&&og(b,Z(a,"masked"))&&((c=Mc("yt-uix-tooltip-shared-mask"))?(c.parentNode.removeChild(c),Cx(c)):(c=document.createElement("iframe"),c.src='javascript:""',c.id="yt-uix-tooltip-shared-mask",c.className=Z(a,"tip-mask")));return c}
function iF(a){var b=Mc("yt-uix-tooltip-shared-mask"),c=b&&td(b,function(b){return b==a},!1,2);b&&c&&(b.parentNode.removeChild(b),Dx(b),document.body.appendChild(b))};function jF(a,b){qg(a,["html5-async-progress","html5-async-success","html5-async-error"]);b&&O(a,b);dF(aF.getInstance(),a)};function kF(a){HA.call(this);this.j=null;this.g=new bC(a,u(this.k,this),u(this.B,this));S(this,this.g);this.b=Y(0,"YTP_AUDIO_TRACK_TITLE");this.element=new VB(a,void 0,this.g);S(this,this.element);XB(this.element,100);this.priority=0;this.o=!0}w(kF,HA);function lF(a,b){a.j!=b&&(a.j=b,eC(a.g,b),a.element.k(a.k(b)))}kF.prototype.k=function(a){return a.name};kF.prototype.B=function(a){this.element.j();lF(this,a);this.element.wb("change")};function mF(a){this.bb=a;this.df=0;this.Ka=new Vv(this);nF(this,"focusin","focusout",1,this.bb);nF(this,"mouseover","mouseout",2,this.bb);nF(this,"mousedown","mouseup",4,document)}function nF(a,b,c,d,e){function g(){this.df|=d;Q(this.bb,"ytp-block-autohide",!!this.df);this.Ka.Ga(h);h=this.Ka.listen(e,c,k)}var h,k;k=function(){this.df&=~d;Q(this.bb,"ytp-block-autohide",!!this.df);this.Ka.Ga(h);h=this.Ka.listen(this.bb,b,g)};h=a.Ka.listen(a.bb,b,g)}
mF.prototype.J=function(){this.df&&P(this.bb,"ytp-block-autohide");this.Ka.removeAll();mF.G.J.call(this)};function oF(a){IA.call(this,a);LA(this,6900);pF(this)}w(oF,IA);function pF(a){JA(a,"ytp-button-fullscreen-enter");var b=Y(0,"YTP_FULLSCREEN");KA(a,b);a.g=b};function qF(a,b){X.call(this,["div",["ytp-menu-container","html5-stop-propagation"],{tabindex:-1},["div","ytp-menu",["div","ytp-menu-content","{{content}}"]]]);this.k=a;this.j=b||!1;this.b=[];this.g=[];this.stopPropagation("click")}w(qF,X);qF.prototype.add=function(a){for(var b=this.b.length,c=0;c<this.b.length;c++){if(this.b[c]==a)return;if(c<b&&this.b[c].priority<a.priority){b=c;break}}xb(this.b,b,0,a);rF(this)};qF.prototype.remove=function(a){rb(this.b,a);rF(this)};
function rF(a){Mh(a.g);a.g=[];var b,c,d=[],e=1==a.b.length||a.j;e&&a.b.length&&(c=new X(["div","ytp-menu-row",["div","ytp-menu-cell",a.b[0].b]]),d.push(c));var g=!1;for(b=0;b<a.b.length;b++)g=g||a.b[b].C;var h=g?["ytp-menu-cell","ytp-menu-cell-span"]:"ytp-menu-cell";for(b=0;b<a.b.length;b++){var k=a.b[b];c=k.o;c=e?!g||c?new X(["div","ytp-menu-row",["div",h,"{{content}}"]]):new X(["div","ytp-menu-row",["div","ytp-menu-cell","{{content}}"],["div","ytp-menu-cell","{{more}}"]]):!g||k.o?new X(["div","ytp-menu-row",
["div",["ytp-menu-cell","ytp-menu-title"],k.b],["div",h,"{{content}}"]]):new X(["div","ytp-menu-row",["div",["ytp-menu-cell","ytp-menu-title"],k.b],["div","ytp-menu-cell","{{content}}"],["div","ytp-menu-cell","{{more}}"]]);c.oa(k.element);c.oa(sF(a,k),"more");d.push(c)}a.oa(d)}function sF(a,b){if(b.C){var c=Y(0,"YTP_OPTIONS"),d=new IA(a.k,"ytp-menu-more-options",c);LA(d,2700);d.oa(c);a.g.push(d);d.listen("click",b.M,b);return d}return null}qF.prototype.J=function(){this.b=[];rF(this);qF.G.J.call(this)};function tF(a){IA.call(this,a);LA(this,6E3);uF(this)}w(tF,IA);function uF(a){JA(a,"ytp-button-play");var b=Y(0,"YTP_PLAY");KA(a,b)};function vF(a){X.call(this,["div","ytp-playlist-controls","{{content}}"]);this.g=new IA(a,"ytp-button-prev",Y(0,"YTP_PREVIOUS"),Y(0,"YTP_PREVIOUS"));S(this,this.g);LA(this.g,6050);this.b=new IA(a,"ytp-button-next",Y(0,"YTP_NEXT"),Y(0,"YTP_NEXT"));S(this,this.b);LA(this.b,6051);this.oa([this.g,this.b])}w(vF,X);function wF(a,b){aj.call(this);this.g=!!b;this.bb=a;this.Ka=new Vv(this);this.b=this.j=null;xF(this)}w(wF,aj);function xF(a){a.b=null;a.j=null;a.Ka.listen(a.bb,yF("over"),a.sB);a.Ka.listen(a.bb,"touchstart",a.tB)}f=wF.prototype;f.sB=function(a){this.Ka.removeAll();this.Ka.listen(this.bb,yF("move"),this.ls);this.Ka.listen(this.bb,yF("out"),this.ms);this.g&&this.Ka.listen(this.bb,yF("down"),this.ks);this.H("hoverstart",Jg(a),Kg(a),a.target);this.H("hovermove",Jg(a),Kg(a),a.target)};
f.ls=function(a){this.b&&Jg(this.b)==Jg(a)&&Kg(this.b)==Kg(a)&&this.b.relatedTarget==a.target||this.H("hovermove",Jg(a),Kg(a),a.target);this.b=null};f.ms=function(a){a.relatedTarget&&kd(this.bb,a.relatedTarget)?(this.b=a,this.H("hovermove",Jg(a),Kg(a),a.relatedTarget)):(this.Ka.removeAll(),xF(this),this.H("hoverend",Jg(a),Kg(a),a.relatedTarget))};
f.ks=function(a){ja(a.button)&&0!=a.button||(a.preventDefault(),this.Ka.removeAll(),this.Ka.listen(document,yF("move"),this.hD),this.Ka.listen(document,yF("up"),this.iD),this.H("dragstart",Jg(a),Kg(a),a.target),this.H("dragmove",Jg(a),Kg(a),a.target))};f.hD=function(a){this.H("hovermove",Jg(a),Kg(a),a.target);this.H("dragmove",Jg(a),Kg(a),a.target)};
f.iD=function(a){this.Ka.removeAll();a.target&&kd(this.bb,a.target)?(this.Ka.listen(this.bb,yF("move"),this.ls),this.Ka.listen(this.bb,yF("out"),this.ms),this.Ka.listen(this.bb,yF("down"),this.ks),this.H("dragend",Jg(a),Kg(a),a.target)):(xF(this),this.H("dragend",Jg(a),Kg(a),a.target),this.H("hoverend",Jg(a),Kg(a),a.target))};
f.tB=function(a){var b=a.changedTouches[0];b&&(this.Ka.removeAll(),this.Ka.listen(this.bb,"touchmove",this.LB),this.Ka.listen(this.bb,"touchend",this.Tr),this.Ka.listen(this.bb,"touchcancel",this.Tr),this.j=b.identifier,this.H("hoverstart",b.pageX,b.pageY,a.target),this.H("hovermove",b.pageX,b.pageY,a.target),this.g&&(this.H("dragstart",b.pageX,b.pageY,a.target),this.H("dragmove",b.pageX,b.pageY,a.target)))};
f.LB=function(a){var b=zF(this,a);b&&(a.preventDefault(),this.H("hovermove",b.pageX,b.pageY,a.target),this.g&&this.H("dragmove",b.pageX,b.pageY,a.target))};f.Tr=function(a){var b=zF(this,a);b&&(a.preventDefault(),this.Ka.removeAll(),xF(this),this.g&&this.H("dragend",b.pageX,b.pageY,a.target),this.H("hoverend",b.pageX,b.pageY,a.target))};function zF(a,b){for(var c=0;c<b.changedTouches.length;c++){var d=b.changedTouches[c];if(d.identifier==a.j)return d}return null}
function yF(a){return window.navigator.msPointerEnabled?"MSPointer"+a.charAt(0).toUpperCase()+a.substr(1):"mouse"+a}f.J=function(){this.Ka.removeAll();wF.G.J.call(this)};function AF(a,b,c,d,e,g,h,k){this.b=a;this.B=b;this.j=c;this.o=d;this.k=e;this.A=g;this.g=h;this.C=k}AF.prototype.clone=function(){return new AF(this.b,this.B,this.j,this.o,this.k,this.A,this.g,this.C)};AF.prototype.equals=function(a){return this.b==a.b&&this.B==a.B&&this.j==a.j&&this.o==a.o&&this.k==a.k&&this.A==a.A&&this.g==a.g&&this.C==a.C};function BF(a,b){if(0==b)return a.b;if(1==b)return a.g;var c=Jb(a.b,a.j,b),d=Jb(a.j,a.k,b),e=Jb(a.k,a.g,b),c=Jb(c,d,b),d=Jb(d,e,b);return Jb(c,d,b)}
function CF(a,b){var c=(b-a.b)/(a.g-a.b);if(0>=c)return 0;if(1<=c)return 1;for(var d=0,e=1,g=0;8>g;g++){var h=BF(a,c),k=(BF(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=BF(a,c);return c};var DF=new function(){this.b=new AF(0,0,0,0,.58,1,1,1)};function EF(a,b){this.g=a;this.b=b}function FF(a){return a.b-a.g}function GF(a,b){return a.g+b*FF(a)}function HF(a,b){return FF(a)?Ib((b-a.g)/FF(a),0,1):Infinity};function IF(a,b,c,d){var e=Math.min(c/(b.wq/b.dj),d/(b.uq/b.rows)),g=b.wq*e,e=b.uq*e,g=Math.floor(g/b.dj)*b.dj,e=Math.floor(e/b.rows)*b.rows,h=g/b.dj,k=e/b.rows,l=Math.floor((c-h)/2);c=Math.ceil((c-h)/2);var q=Math.floor((d-k)/2);d=b.ly*h*-1;var r=b.row*k*-1;a=a.style;a.width=h+"px";a.height=k+"px";h=q+"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 JF(a){uE.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.B=!1;this.o=new Qk(this.fv,250,this);S(this,this.o);this.Wd=a;this.b=this.template.b["html5-storyboard-filmstrip"];
this.A=this.template.b["html5-storyboard-lens"];this.C=this.template.b["html5-storyboard-lens-thumbnail"];this.D=this.template.b["html5-storyboard-lens-timestamp"];this.j=this.template.b["html5-storyboard-thumbnail"];ed(this.j);this.g=0;this.k=new EF(0,0)}w(JF,uE);f=JF.prototype;f.kq=!1;f.Wd=0;f.Gl=0;f.Rk=0;f.Mq=10;f.Ub=0;f.Wi=0;f.sm=0;f.Cc=null;f.Je=null;f.disable=function(){this.kq=!0};
f.Px=function(){for(var a=this.b.cloneNode(!0),b=this.Cc.b[0].g,c,d,e=0;e<b;e++)d=this.j.cloneNode(!1),c=Sq(this.Je,e,this.Ub),IF(d,c,this.Ub,this.Wi),a.appendChild(d);fd(a,this.b);this.b=a};f.Np=function(a,b){cg(this.b,!1);for(var c,d,e=a;e<=b;e++)if(d=this.b.children[e])c=Sq(this.Je,e,this.Ub),IF(d,c,this.Ub,this.Wi);cg(this.b,!0)};function KF(a,b){if(b!=a.sm){var c=Sq(a.Je,b,2*a.Ub),d=Math.round(2*a.Ub),e=Math.round(2*a.Wi);IF(a.C,c,d,e);a.sm=b}}
f.fv=function(){for(var a=this.Gl,b=Math.max(Math.floor(a/this.Ub),0),a=Math.min(Math.ceil((a+this.Wd)/this.Ub),this.Cc.b[0].g-1);b<=a;b++){for(var c=this.Je,d=b,e=Tp(c.b,2*this.Ub),g=void 0,h=void 0;0<=e;e--)if(g=c.b.b[e],h=Math.floor(d/(g.b*g.j)),!g.k[h]){var g=c,k=e,l=k+"-"+h;g.o[l]||(g.o[l]=!0,Pq(g.j,k,{Dp:k,Ep:h}))}Tq(c)}};
function LF(a,b){a.Mq=Math.min(10,Math.ceil(a.Wd/72));a.Ub=Math.floor(a.Wd/a.Mq);a.Wi=.555*a.Ub;a.Rk=a.Ub*a.Cc.b[0].g;Xf(a.b,a.Rk);var c=Math.round(2*a.Ub),d=.555*c+12;Wf(a.A,c,d);Lf(a.A,(a.Wd-c)/2);c=d+20;a.K().style.height=Mf(c,!0);b&&(a.Np(0,a.Cc.b[0].g-1),KF(a,a.sm),a.B=!0)}f.show=function(){this.Cc&&JF.G.show.call(this)};f.J=function(){this.Je=this.Cc=null;fz(this.g);JF.G.J.call(this)};function MF(a,b,c,d){this.width=b;this.g=c;this.A=d;this.b=b-c-d;this.o=Ib(a-c,0,this.b);this.j=this.o+c;this.k=this.o/this.b};function NF(){X.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.j=this.template.b["ytp-progress-tooltip-arrow"];this.b=-1;this.aa="";this.g=new EF(0,0);this.hide()}w(NF,X);
f=NF.prototype;f.Ki=!1;f.Hf=null;f.Xg=null;f.disable=function(){this.Ki=!0};f.show=function(){this.Ki||NF.G.show.call(this)};f.reset=function(){P(this.K(),"with-thumbnail");this.Xg=this.Hf=null};f.Qx=function(a,b){(a<=this.b||this.b<=b)&&OF(this)};function OF(a){var b=Sq(a.Xg,a.b,108);IF(a.template.b["ytp-progress-tooltip-thumbnail"],b,108,60)}f.J=function(){this.j=this.Xg=this.Hf=null;NF.G.J.call(this)};function PF(a,b){var c=["div","ytp-progress-bar-container",["div",["html5-progress-bar","html5-stop-propagation","ytp-force-transform"],["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-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","html5-scrubber-button"]],["div","ytp-bound-time-left","{{boundTimeLeft}}"],["div","ytp-bound-time-right","{{boundTimeRight}}"],["div",["ytp-clip-start","html5-clip-marker","yt-uix-tooltip"],{title:Y(0,"YTP_TOOLTIP_CLIP_MARKER")}],["div",["ytp-clip-end","html5-clip-marker","yt-uix-tooltip"],{title:Y(0,"YTP_TOOLTIP_CLIP_MARKER")}],["div","html5-progress-screenreader",{"aria-live":"assertive"}]];uE.call(this,c);this.k=a.Vc().width;this.C=1;this.M=this.U=this.A=
this.hb=this.I=0;this.xa=this.template.b["html5-ad-progress-list"];this.ac=this.template.b["ytp-marker-progress-list"];this.gb=this.template.b["ytp-marker-crenellation-list"];this.F={};this.V={};this.N=Infinity;this.ka=this.template.b["ytp-clip-end"];this.za=new wF(this.ka,!0);S(this,this.za);this.za.subscribe("hoverstart",this.po,this);this.za.subscribe("hoverend",this.oo,this);Qy(this,this.ka,"click",this.jk);this.wa=this.template.b["ytp-clip-end-exclude"];this.cb=this.template.b["ytp-clip-start-exclude"];
this.O=0;this.la=this.template.b["ytp-clip-start"];this.Ba=new wF(this.la,!0);S(this,this.Ba);this.Ba.subscribe("hoverstart",this.po,this);this.Ba.subscribe("hoverend",this.oo,this);Qy(this,this.la,"click",this.jk);this.j=null;this.Ra=this.template.b["ytp-unloaded-progress"];this.Ia=this.template.b["ytp-load-progress"];this.D=0;this.Wa=this.template.b["ytp-play-progress"];this.B=0;this.L=this.template.b["html5-progress-bar"];this.o=null;this.Ld=new mF(this.K());S(this,this.Ld);this.ib=this.template.b["html5-progress-screenreader"];
this.g=null;this.pa=this.template.b["html5-scrubber-button"];this.bc=this.template.b["ytp-scrubber-pull-indicator"];this.nb=0;this.Ca=!1;this.Fa=new F;this.b=new EF(0,0);this.xb=!1;this.ca=b;QF(this)}w(PF,uE);f=PF.prototype;f.Sx=function(){this.g&&this.g.show()};f.Ux=function(a,b,c){var d=Rf(this.K()),e=RF(this).b,g=c?c.getAttribute("data-tooltip"):null;g&&(a=HF(this.b,Number(c.getAttribute("data-position")))*e+Rf(this.L).x);this.Fa.x=a-d.x;this.Fa.y=b-d.y;g?SF(this,g):SF(this)};
function SF(a,b){if(a.g){var c=a.xb?a.b.b:0,d=RF(a),e=a.g;if(!e.Ki){var g=50;e.Hf?(g=108,b&&(g*=2)):b&&(g=108);e.K().style.padding="2px";e.K().style.width=g+"px";g=g/2+2;g=(new MF(d.j,d.width,g,g)).j-g;e.K().style.left=g+"px";e.j.style.left=Ib(d.j,0,d.width)-g-5+"px";c=Gv(GF(e.g,d.k)-c);e.oa(c,"timestamp");e.Hf&&(d=Sp(e.Hf,d.k),d!=e.b&&(e.b=d,OF(e)));b?(O(e.K(),"with-text"),e.oa(b,"text")):P(e.K(),"with-text")}}}f.Tx=function(){this.g&&this.g.hide()};
f.Rx=function(a,b){var c=TF(this);this.nb=c.g-RF(this).k*(c.g+c.A);this.g&&this.j&&(this.g.hide(),this.j.show());this.A&&(Ve(this.A),this.A=0);this.hb=b;this.Ca=!0;this.H("beginseeking")};f.Vx=function(){this.U=0;P(this.K(),"ytp-pull-ui");P(this.K(),"ytp-pulling");if(0<this.I){var a=v(),b=this.I,c=RF(this).j;this.A&&Ve(this.A);this.A=Py(u(this.Do,this,a,b,c),0)}this.g&&this.j&&(this.g.show(),this.j.hide());this.Ca=!1;this.H("endseeking")};
f.Do=function(a,b,c){var d,e=(v()-a)/200;d=DF.b;e=CF(d,e);if(0==e)d=d.B;else if(1==e)d=d.C;else{var g=Jb(d.B,d.o,e),h=Jb(d.o,d.A,e);d=Jb(d.A,d.C,e);g=Jb(g,h,e);h=Jb(h,d,e);d=Jb(g,h,e)}e=c+d*(this.B*this.k-c);if(0>d||1<d)d=1;UF(this,(1-d)*b,e,this.B);this.A=1>d?Py(u(this.Do,this,a,b,c),0):0};function UF(a,b,c,d){b=Ib(b,0,40);a.I=b;var e=a.C,g=Math.max(FF(a.b)/a.k,1);a.C=b/40*(g-1)+1;b=a.k*a.C;a.M=Ib(d*b-c,0,b-a.k);e!=a.C&&QF(a)}
f.Wx=function(a,b){var c=!1,d=!1,e=RF(this);3600<=FF(this.b)&&(UF(this,this.hb-b-10,e.j,e.k),d=!0,c=4<this.I,e=RF(this));Q(this.K(),"ytp-pull-ui",d);c&&O(this.K(),"ytp-pulling");c=0;e.g&&0>=e.j?c=-1:e.A&&e.j>=e.width&&(c=1);!this.A||c&&c==this.U||N(this.A);c&&(this.A=Py(u(this.xp,this,v(),this.M),0));this.U=c;this.H("seekto",GF(this.b,e.k),!1)};
f.xp=function(a,b){if(this.U){var c=this.k*(this.C-1);this.M=Ib(b+this.U*(v()-a)*.3,0,c);QF(this);this.H("seekto",GF(this.b,RF(this).k),!1);0<this.M&&this.M<c&&(this.A=Py(u(this.xp,this,a,b),0))}};
function QF(a){var b=RF(a),c=gd(a.gb),d=0;if(8<a.I)for(var e=(-b.g+b.width)/b.b*(FF(a.b)/60),g=Math.ceil(-b.g/b.b*(FF(a.b)/60));g<e;g++){var h=c[d];h||(h=document.createElement("div"),h.style.width="1px",a.gb.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/FF(a.b)*b.b+"px"}for(e=c.length-1;e>=d;e--)ed(c[e]);c=(-b.g+b.width)/b.b;a.oa(Gv(GF(a.b,-b.g/b.b)),"boundTimeLeft");a.oa(Gv(GF(a.b,c)),"boundTimeRight");
a.L.style.width=b.b+"px";a.K().style.height=a.I+(a.ca?20:8)+"px";b=b.g;Gx(a.L,"transform",b?"translatex("+b+"px)":"");a.pa.style.height=a.I+(a.ca?12:6)+"px";for(var k in a.F)VF(a,a.F[k],a.V[k]);WF(a);XF(a,a.B,a.D)}function RF(a){var b=a.Fa.x;if(a.Ca)var c=a.ca?32:16,b=(b+a.nb-c/2)/(a.k-c)*a.k;c=a.k*a.C;b=Ib(b,0,a.k);return new MF(b,a.k,-a.M,-(c-a.M-a.k))}function TF(a){var b=a.ca?32:16,c=a.k*a.C;return new MF(a.B*(c-b)+b/2,c,b/2,b/2)}
function XF(a,b,c){if(b<a.O||b>a.N)a.jk();else{a.B=b;a.D=Math.max(a.B,c);var d=HF(a.b,a.O),e=HF(a.b,a.N),g=Ib(b,d,e);c=Ib(c,d,e);var h=g;g<e&&(h=a.k*a.C,h=(g*h-g)/h);a.Wa.style.left=Hv(d)+"%";Gx(a.Wa,"transform","scalex("+(h-d)+")");Gx(a.pa,"transformOrigin",Hv(b)+"%");b=TF(a).j+"px";a.pa.style.left=b;a.bc.style.left=b;a.Ia.style.left=Hv(d)+"%";Gx(a.Ia,"transform","scalex("+(c-d)+")");a.Ra.style.left=Hv(d)+"%";Gx(a.Ra,"transform","scalex("+(e-d)+")")}}
function WF(a){var b=a.O>a.b.g,c=0<a.b.b&&a.N<a.b.b;Q(a.K(),"ytp-clip-start-enabled",b);Q(a.K(),"ytp-clip-end-enabled",c);b=b?HF(a.b,a.O):0;c=c?HF(a.b,a.N):1;a.la.style.left=Hv(b)+"%";a.ka.style.left=Hv(c)+"%";a.cb.style.width=Hv(b)+"%";a.wa.style.left=Hv(c)+"%";a.wa.style.width=Hv(1-c)+"%"}f.po=function(){O(this.K(),"ytp-clip-hover")};f.oo=function(){P(this.K(),"ytp-clip-hover")};f.jk=function(){this.O=0;this.N=Infinity;WF(this);XF(this,this.B,this.D)};
function VF(a,b,c){var d=RF(a).b,e=HF(a.b,b.start/1E3)*d;switch(b.style){case "ytp-chapter-marker":a=Zt(b);var g=a/2,d=Ib(e,g,d-g)-g;break;default:a=Math.min(Math.min(HF(a.b,b.end/1E3)*d,d)-e,Zt(b)),d=Ib(e,0,d-a)}c.style.width=a+"px";c.style.left=d+"px";c.className=b.style}
function YF(a,b){z(b,function(a){if(a.Vd){var b=a.getId();if(!this.F[b]){var e=document.createElement("div");a.g&&(e.setAttribute("data-tooltip",a.g),e.setAttribute("data-position",a.start/1E3));this.F[b]=a;this.V[b]=e;VF(this,a,e);"ytp-chapter-marker"==a.style?this.ac.appendChild(e):this.xa.appendChild(e)}}else ZF(this,a)},a)}function $F(a,b){z(b,function(a){ZF(this,a)},a)}function ZF(a,b){var c=b.getId();a.F[c]==b&&(ed(a.V[c]),delete a.F[c],delete a.V[c])}
function aG(a,b){var c=a.L;P(c,"spacecast-cached");b&&L(function(){O(c,"spacecast-cached")},100)}f.J=function(){this.A&&(N(this.A),this.A=0);this.o&&(this.o.dispose(),this.o=null);this.Ia=this.la=this.cb=this.ka=this.wa=this.xa=null;this.V={};this.Ra=this.pa=this.ib=this.L=this.Wa=null;this.ca=!1;PF.G.J.call(this)};function bG(a){HA.call(this);this.B=this.k="unknown";this.b=Y(0,"YTP_QUALITY_TITLE");this.j=new bC(a,u(this.D,this),u(this.F,this),!0);S(this,this.j);this.g=NaN;this.element=new VB(a,void 0,this.j);S(this,this.element);XB(this.element,100);this.priority=-1;this.o=!0}w(bG,HA);bG.prototype.In=function(){return this.k};
function cG(a,b,c){if(a.k!=b||a.B!=c){a.k=b;a.B=c;eC(a.j,c);var d=a.j;null!=d.b&&aC(dC(d,d.b),!1);null!=b&&aC(dC(d,b),!0);d.b=b;"auto"==c&&c!=b?(b=Y(0,"YTP_AUTO_WITH_QUALITY_2",{VIDEO_QUALITY:dG(b)}),b=new wE(b)):b=a.D(b);isNaN(a.g)||(cz()?fz(a.g):N(a.g));cz()?a.g=ez(u(a.element.k,a.element,b),0):a.g=L(u(a.element.k,a.element,b),0)}}
function dG(a){switch(a){case "highres":return"2160p";case "hd1440":return"1440p";case "hd1080":return"1080p";case "hd720":return"720p";case "large":return"480p";case "medium":return"360p";case "small":return"240p";case "tiny":return"144p";case "auto":return Ye("YTP_AUTO")}return""}bG.prototype.D=function(a){var b=["span","",dG(a)];"highres"==a?(b.push(" "),b.push(["sup","","4K"])):0==a.indexOf("hd")&&(b.push(" "),b.push(["sup","","HD"]));return new zv(b)};
bG.prototype.F=function(a){this.element.j();this.element.wb("blur");if("auto"!=this.B||"auto"!=a)cG(this,a,a),this.element.wb("change")};bG.prototype.J=function(){cz()?fz(this.g):N(this.g);bG.G.J.call(this)};function eG(a){GC.call(this,a,"ytp-settings-button",Y(0,"YTP_SETTINGS"),"ytp-settings-button-active");LA(this,6600);this.j=new X(["div","{{content}}"]);S(this,this.j);this.oa(this.j);fG(this,"")}w(eG,GC);function fG(a,b){"highres"==b?a.j.oa("ytp-settings-4k-quality-badge"):-1!=b.indexOf("hd")?a.j.oa("ytp-settings-hd-quality-badge"):a.j.oa("")};function gG(a,b){var c=b?Y(0,"YTP_THEATER_MODE"):Y(0,"YTP_LARGE_PLAYER"),d=b?Y(0,"YTP_DEFAULT_VIEW"):Y(0,"YTP_SMALL_PLAYER");GC.call(this,a,"ytp-size-toggle-large",c,"ytp-size-toggle-small",d);LA(this,6800)}w(gG,GC);function hG(a){HA.call(this);this.j=1;this.b=Y(0,"YTP_SPEED_TITLE");this.g=new bC(a,u(this.k,this),u(this.B,this));S(this,this.g);this.element=new VB(a,void 0,this.g);S(this,this.element);XB(this.element,100);iG(this,this.j);this.priority=1;this.o=!0}w(hG,HA);function iG(a,b){a.j=b;eC(a.g,b);a.element.k(a.k(b))}hG.prototype.k=function(a){return 1==a?Y(0,"YTP_NORMAL_SPEED"):a.toString()};hG.prototype.B=function(a){this.element.j();iG(this,a);this.element.wb("change")};function jG(){X.call(this,["div",["ytp-time-display","html5-control"],["span","ytp-time-current","{{current}}"],["span","ytp-time-separator"," / "],["span","ytp-time-duration","{{duration}}"],["span","ytp-time-live-badge","Live"]]);this.b=this.template.b["ytp-time-live-badge"]}w(jG,X);jG.prototype.vf=function(a){Ev(this.template,"duration",Gv(a))};function kG(a,b,c){Q(a.element,"ytp-time-liveonly",b&&!c);Q(a.element,"ytp-time-live",b&&c)}jG.prototype.J=function(){this.b=null;jG.G.J.call(this)};function lG(a){this.C=a;X.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.b=new IA(this.C,"ytp-button-volume",Y(0,"YTP_BUTTON_VOLUME"));S(this,this.b);this.b.X(this.element,0);LA(this.b,6100);this.A=this.template.b["ytp-volume-panel"];this.g=this.template.b["ytp-volume-slider"];
this.o=this.template.b["ytp-volume-slider-foreground"];this.k=this.j=0;this.B=new mF(this.A);S(this,this.B)}w(lG,X);function mG(a){a.j||(a.j=a.g.clientWidth);return a.j}
lG.prototype.setVolume=function(a,b){var c=Y(0,b?"YTP_UNMUTE":"YTP_MUTE");this.b.g=c;var c=Math.round(a),d=c+"% "+Y(0,"YTP_SCREENREADER_VOLUME_SETTING")+(b?" "+Y(0,"YTP_SCREENREADER_VOLUME_MUTED"):""),e=Y(0,b?"YTP_SCREENREADER_VOLUME_UNMUTE":"YTP_SCREENREADER_VOLUME_MUTE")+" "+Y(0,"YTP_SCREENREADER_CONTROL_TOGGLE");KA(this.b,e);Ev(this.template,"valuenow",c);Ev(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");sg(this.b.K(),"value",c);
c=mG(this);this.k||(this.k=this.o.clientWidth);c=c-this.k;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 nG(a,b,c){aj.call(this);this.ub=a;this.ck=new Vv(this);this.Au=!!c;this.Bu=b;this.Xc=null;this.b={};this.g={};this.k=this.j=this.Nd=this.Ac=this.Rd=null;this.o=new Vv(this);this.uo=this.fc=null;this.B=-1;this.A=null;this.C=!1;this.tf=new X(["div","ytp-video-controls-clickguard"]);this.tf.hide();S(this,this.tf)}w(nG,aj);f=nG.prototype;f.bd=null;f.Gc=null;f.De=null;f.Fi=null;f.li=null;f.wm=!1;f.ad=null;f.disable=function(a){oG(this,a,!0)};f.enable=function(a){oG(this,a,!1)};
function oG(a,b,c){for(var d=0;d<b.length;d++)switch(b[d]){case "audio":Q(a.bd,"disabled-control-audio",c);break;case "play_pause":var e=a.Gc;c?e.disable():e.enable();break;case "seek":Q(a.bd,"disabled-control-seek",c)}}f.setVolume=function(a,b){if(this.B!=a||this.A!=b)this.$c.setVolume(a,b),this.B=a,this.A=b};f.vf=function(a){this.ed.vf(a)};f.Sw=function(){this.H("mutetoggled")};
function pG(a,b){if(b){if(a.wm){var c=a.Gc;JA(c,"ytp-button-stop");var d=Y(0,"YTP_STOP")}else c=a.Gc,JA(c,"ytp-button-pause"),d=Y(0,"YTP_PAUSE");KA(c,d)}else uF(a.Gc)}f.Rw=function(){this.H("playpausetoggled")};f.Ow=function(a){a=(a-Rf(this.$c.g).x)/mG(this.$c)*100;a={volume:Ib(a,0,100),muted:!1};this.H("volumechanged",a)};f.Nw=function(){this.H("fullscreentoggled")};function qG(a,b){var c=a.g[b.A||"__default__"];c&&c.add(b)}function rG(a,b){var c=a.g[b.A||"__default__"];c&&c.remove(b)}
function sG(a,b,c,d){if(!a.b[b]){a.b[b]=c;if("remote"==b)dd(jd(a.Xc.K()),c.K(),0);else{var e=c.K();d=d||a.Xc.K();d.parentNode&&d.parentNode.insertBefore(e,d.nextSibling)}c.listen("click",ra(a.kA,b),a,"menuButtonClick");c=new qF(a.ub,"__default__"!=b);S(a,c);c.hide();c.X(a.bd);a.g[b]=c}}f.Pw=function(){var a=this.Ab.K();if(!og(a,"html5-async-progress")){var b=og(a,"html5-async-success");jF(a,"html5-async-progress");this.H("watchlater",b)}};f.Qw=function(){this.H("watchonyoutube")};
function tG(a,b,c){a.Td();a.H("showdialog");var d=a.ub.Vc();Wf(a.tf.K(),d);a.tf.show();c&&(a.k=c,IC(a.k));a.j=b;a.j.show();a.j.K().focus();a.o.listen(window,"blur",a.Td);a.o.listen(document,"click",a.Td)}f.Td=function(){this.o.removeAll();this.j&&(this.j.hide(),this.j=null);this.k&&(JC(this.k),this.k=null);this.tf.hide()};f.kA=function(a,b){b.stopPropagation();var c=this.b[a];c&&(c.b?this.Td():tG(this,this.g[a],c))};f.Iw=function(){this.H("audiotrackchanged",this.Rd.j)};
f.Kw=function(){var a=this.Ac.In();this.H("qualitychanged",a);this.H("controlclick","quality-"+a)};f.Jw=function(){this.Td()};f.Lw=function(){var a=this.fc;a.b?JC(a):IC(a);this.H("sizechangerequested",1==this.fc.b)};f.Mw=function(){var a=this.Nd.j;this.H("speedchanged",a);this.H("controlclick","speed-"+a)};
f.Sy=function(a){var b=a.target;a=b==this.Gc.K()?"playpause":b==this.$c?"volume":b==this.ed?"time":b==this.Xc?"settings":b==this.Ab?"watchlater":b==this.ad?"youtube":b==this.Yd.K()?"fullscreen":b==this.fc?"size":a.target.className;this.H("controlclick",a)};
f.J=function(){this.xo.dispose();this.ck.removeAll();this.o.removeAll();this.Td();this.Ab=this.ad=this.li=this.$c=this.bd=null;for(var a in this.b){var b=this.b[a];b&&(b.cd(),Ry(b,"menuButtonClick"))}this.b={};this.g={};this.fc=this.Xc=this.Nd=this.Ac=null;this.C||(this.B=-1,this.A=null);nG.G.J.call(this)};function uG(a){Hi("/playlist_video_ajax?action_add_to_watch_later_list=1",{method:"POST",Gh:{privacy:a.privacy||null,feature:a.OE||null,authuser:a.Sa||null,pageid:a.Za||null},fd:{video_ids:a.Va,src_playlist_id:a.RE,full_list_id:a.PE||null,new_playlist_name:a.QE||null,plid:Se("PLAYBACK_ID")||null},context:a.context,onError:a.onError,onSuccess:a.onSuccess,vb:a.vb})}
function vG(a){Hi("/playlist_video_ajax?action_delete_from_watch_later_list=1",{method:"POST",fd:{video_ids:a.Va,session_token:Se("XSRF_TOKEN")},context:a.context,onError:a.onError,onSuccess:a.onSuccess,vb:a.vb})};function wG(a,b){this.A=a;this.k=[];this.B=b;this.o=[]}w(wG,Ih);function xG(a,b,c){a.k.push(a.A.subscribe(b,c,a))}function yG(a,b,c){a.o.push(a.B.subscribe(b,c,a))}function zG(a){for(var b=0;b<a.k.length;b++)a.A.Ib(a.k[b]);for(b=0;b<a.o.length;b++)a.B.Ib(a.o[b])}wG.prototype.J=function(){zG(this);wG.G.J.call(this)};function AG(a,b){wG.call(this,a,b);this.j=!1;this.g=a;this.b=b;var c=a.R();c.color&&O(this.b.L,c.color);c.aj&&(c=this.b,c.g=new NF,c.g.X(c.K()),S(c,c.g),c.j=new JF(c.k),c.j.hide(),c.j.X(c.K(),0),S(c,c.j));BG(this)}w(AG,wG);
function BG(a){zG(a);a.j=!0;xG(a,"cuerangesadded",a.IC);xG(a,"cuerangesremoved",a.JC);xG(a,"cuerangemarkersupdated",a.HC);xG(a,"presentingplayerstatechange",a.NC);xG(a,"progresssync",a.qq);xG(a,"resize",a.LC);xG(a,"seekto",a.OC);xG(a,"videodatachange",a.PC);xG(a,"videoplayerreset",a.pq);xG(a,"videoready",a.MC);yG(a,"beginseeking",a.GC);yG(a,"endseeking",a.KC);yG(a,"seekto",a.FC)}f=AG.prototype;f.IC=function(a){YF(this.b,a)};f.JC=function(a){$F(this.b,a)};f.HC=function(a){YF(this.b,a)};
f.LC=function(a){var b=this.b;b.k=a.width;QF(b);b.j&&(b=b.j,a=a.width,!b.Cc||b.Wd==a&&b.B||(b.Wd=a,LF(b,!0)))};f.OC=function(a){var b=this.g.Eb.Mg();a=HF(new EF(b.seekableStart,b.seekableEnd),a);b=this.b;XF(b,n(a)?a:b.B,n(void 0)?void 0:b.D);if(this.b.j&&(b=this.b.j,b.Cc)){b.Gl=b.Rk*a-b.Wd/2;Lf(b.b,-1*b.Gl);var c=Sp(b.Cc,a);KF(b,c);a=GF(b.k,a);md(b.D,Gv(a));Rk(b.o)}};
f.NC=function(a){if(0>Rv(a,16)){a=this.b;var b=this.g.getCurrentTime();a.ib.innerHTML=Math.floor(100*a.B)+"% at "+Math.floor(b)+" of "+Math.floor(a.b.b)+" seconds"}};f.pq=function(a){if(1!=a.getPlayerType()){if(!this.j)return;zG(this);this.j=!1;xG(this,"videoplayerreset",this.pq)}else if(!this.j){BG(this);var b=this.b;cd(b.xa);b.F={};b.V={};YF(this.b,a.A.j||[]);this.b.g&&this.b.g.reset()}this.qq()};
f.PC=function(a,b){var c=new EF(0,b.Oa),d=this.b;d.b=c;QF(d);this.b.g&&(this.b.g.g=c);this.b.j&&(this.b.j.k=c);c=this.b;c.O=b.clipStart;WF(c);XF(c,c.B,c.D);c=this.b;c.N=b.clipEnd;WF(c);XF(c,c.B,c.D);aG(this.b,!!b.aa)};
f.MC=function(a){if(this.b.g){var b=this.b.g;if(!b.Ki)if(Xr(a)){O(b.K(),"with-thumbnail");b.Hf=Xr(a);b.Xg=Yr(a);var c=u(b.Qx,b);b.Xg.subscribe("l",c)}else b.reset()}this.b.j&&(b=this.b.j,b.j&&cd(b.b),P(b.K(),"enabled"),fz(b.g),b.Cc=Xr(a),b.Je=Yr(a),b.Cc&&!b.kq&&(O(b.K(),"enabled"),c=u(b.Np,b),b.Je.subscribe("l",c),LF(b),fz(b.g),b.g=ez(u(b.Px,b))));this.b.xb=a.ob?!0:!1;cs(a)?(a=this.b,a.o&&(a.o.dispose(),a.o=null)):(a=this.b,a.o||(a.o=new wF(a.L,!0),a.o.subscribe("hoverstart",a.Sx,a),a.o.subscribe("hovermove",
a.Ux,a),a.o.subscribe("hoverend",a.Tx,a),a.o.subscribe("dragstart",a.Rx,a),a.o.subscribe("dragmove",a.Wx,a),a.o.subscribe("dragend",a.Vx,a)))};f.qq=function(a,b){var c=this.g.Eb.Mg(),d=n(a)?a:c.current,e=new EF(c.seekableStart,n(b)?b:c.seekableEnd),c=HF(e,c.loaded),d=HF(e,d),g=this.b;g.b=e;QF(g);g=this.b;XF(g,n(d)?d:g.B,n(c)?c:g.D);this.b.g&&(this.b.g.g=e);this.b.j&&(this.b.j.k=e)};f.GC=function(){CG(this.g.j)};f.KC=function(){this.g.j.Ni()};f.FC=function(a,b){Bs(this.g,a,b)};f.J=function(){AG.G.J.call(this)};function DG(a,b){wG.call(this,a,b);xG(this,"applicationplayerstatechange",this.qy);xG(this,"controlsdisabled",this.uy);xG(this,"controlsenabled",this.vy);xG(this,"liveviewshift",this.yy);xG(this,"fullscreentoggled",this.xy);xG(this,"presentingplayerstatechange",this.Uy);xG(this,"progresssync",this.Yy);xG(this,"threedenabled",this.Ny);xG(this,"videoplayerreset",this.Xy);xG(this,"videodatachange",this.Wy);xG(this,"onPlaybackQualityChange",this.Jy);xG(this,"onVolumeChange",this.Oy);xG(this,"menu_button_add",
this.zy);xG(this,"menu_button_remove",this.Ay);xG(this,"menu_item_add",this.By);xG(this,"menu_item_remove",this.Cy);xG(this,"menu_show",this.Ey);yG(this,"fullscreentoggled",this.wy);yG(this,"mutetoggled",this.Fy);yG(this,"nextvideo",this.Gy);yG(this,"playpausetoggled",this.Hy);yG(this,"previousvideo",this.Iy);yG(this,"qualitychanged",this.Ky);yG(this,"audiotrackchanged",this.ry);yG(this,"seekto",this.Vy);yG(this,"sizechangerequested",this.Ly);yG(this,"speedchanged",this.My);yG(this,"volumechanged",
this.Py);yG(this,"watchlater",this.Qy);yG(this,"watchonyoutube",this.Ry);yG(this,"controlclick",this.ty);yG(this,"showdialog",this.Ty);this.b=a;this.g=b;this.j=new AG(a,b.Fi);S(this,this.j);var c=a.R();if(c.oc){var d=this.g;this.b.R().qd?IC(d.fc):JC(d.fc);d.fc.show()}c.Qf||this.g.Ab.hide();c.Ff&&this.g.Yd.show();if(c.vg){var d=this.g,e=d.Nd;cC(e.g,this.b.b.vg?Lq:[1]);var g=2500;fC(e.g,g++);g=g++;LA(e.element.b,g);qG(d,d.Nd)}if(c.b.D)for(d=this.g,e=[d.Gc,d.$c,d.ed,d.Ab,d.ad,d.Yd,d.Xc],g=0;g<e.length;g++)d.ck.listen(e[g],
"click",d.Sy);d=null!=c.xe&&0==c.xe.search("^https?://www.youtube.com");("detailpage"==c.$||"profilepage"==c.$||d)&&this.g.ad.hide()}w(DG,wG);f=DG.prototype;f.uy=function(a){this.g.disable(a)};f.vy=function(a){this.g.enable(a)};f.yy=function(a){Q(this.g.ed.element,"ytp-time-live-dvr",!a)};f.xy=function(a){var b=this.g;this.b.R();a?(a=b.Yd,JA(a,"ytp-button-fullscreen-exit"),b=Y(0,"YTP_EXIT_FULLSCREEN"),KA(a,b),a.g=b):pF(b.Yd);EG(this)};
f.Uy=function(a){W(a.state,2)||(0<Rv(a,8)?pG(this.g,!0):0>Rv(a,8)?pG(this.g,!1):0>Rv(a,2)&&pG(this.g,W(a.state,8)));0>Rv(a,16)&&FG(this,this.b.getCurrentTime())};f.qy=function(a){if(W(a.state,2)){a=this.g.Gc;JA(a,"ytp-button-replay");var b=Y(0,"YTP_REPLAY");KA(a,b)}};f.Ny=function(){var a=this.g,b=this.b.getVideoData().Kf,c=H("html5-threed-conversion-on",a.li),a=H("html5-threed-conversion-off",a.li);Ax(c,!b);Ax(a,b)};
f.Xy=function(a){GG(this)&&(FG(this,a.getCurrentTime()),jF(this.g.Ab.K()),iG(this.g.Nd,1),a.getVideoData()&&HG(this,a.getVideoData()))};f.Wy=function(a,b){GG(this)&&HG(this,b)};function EG(a){a.b.o&&("detailpage"!=a.b.R().$||a.b.R().mb)?a.g.De.show():a.g.De.hide()}
function HG(a,b){a.g.vf(b.Oa);var c=Ms(a.b),d=a.g,e=Ns(c),g=d.Ac;cC(g.j,e);fC(g.j,2600);LA(g.element.b,2601);e.length?qG(d,d.Ac):rG(d,d.Ac);d=a.g;e=Ks(a.b);g=IG(a.b);cG(d.Ac,e,g);fG(d.Xc,e);d=a.g;c.b.g?(c.la||(c.la=Np(c.b.g)),c=c.la):c=[];cC(d.Rd.g,c);1<c.length?qG(d,d.Rd):rG(d,d.Rd);c=a.g;(d=(d=Ms(a.b,void 0))?JG(d):null)&&lF(c.Rd,d);c=a.g;d=b.eb;e=b.ob;c.wm=d&&!e;kG(c.ed,d,e);W(a.b.getPlayerState(),2)||pG(a.g,W(a.b.getPlayerState(),8));EG(a)}
f.Jy=function(a){if(GG(this)){var b=this.g,c=IG(this.b);cG(b.Ac,a,c);fG(b.Xc,a)}};f.Oy=function(a){this.g.setVolume(a.volume,a.muted)};f.By=function(a){qG(this.g,a)};f.Cy=function(a){rG(this.g,a)};f.zy=function(a,b){sG(this.g,a,b)};f.Ay=function(a){var b=this.g,c=b.b[a];c&&(c.cd(),Ry(c,"menuButtonClick"),b.b[a]=null,b.g[a].dispose(),b.g[a]=null)};f.Ey=function(a){var b=this.g;a&&b.g[a]?tG(b,b.g[a],b.b[a]):b.Td()};f.Yy=function(a){FG(this,n(a)?a:this.b.Eb.Mg().current)};f.wy=function(){KG(this.b,!this.b.R().mb)};
f.Fy=function(){this.b.D.muted?Es(this.b):Ds(this.b)};f.Gy=function(){Xs(this.b)};f.Hy=function(){LG(this.b)};f.Iy=function(){Ys(this.b)};f.Ky=function(a){Ls(this.b,a,1)};f.ry=function(a){var b=Ms(this.b,1);if(b&&!b.fa()&&!W(b.j,128)&&b.b.g.b&&(b=b.k,!b.fa())){var c=b.o;a=a.id;c.o="m";c.g=c.B.b[a];c.C=c.g;MG(b,new NG(c.C,c.j,c.o));OG(b,b.j,b.o.g);PG(b.j,!1);b.j.g=null;b.j.B=!0;QG(b)}};f.Ty=function(a){this.b.gk(a)};f.Vy=function(a){Bs(this.b,a,!0)};f.Ly=function(a){RG(this.b,a)};
f.My=function(a){Js(this.b,a)};f.Py=function(a){SG(this.b,a)};f.Ry=function(){TG(this.b)};f.ty=function(a){UG(this.b,a)};f.Qy=function(a){(a?vG:uG).call(this,VG(this,a?this.lE:this.mE))};function VG(a,b){return{Va:et(a.b).videoId,Sa:a.b.R().Sa,Za:a.b.R().Za,onSuccess:b,onError:a.KB,context:a}}f.mE=function(){var a=this.g.Ab.K();jF(a,"html5-async-success");this.b.H("WATCH_LATER_VIDEO_ADDED")};f.lE=function(){jF(this.g.Ab.K());this.b.H("WATCH_LATER_VIDEO_REMOVED")};
f.KB=function(a,b){var c=b&&b.error_message,d=this.g.Ab.K();jF(d,"html5-async-error");if(c){var e=aF.getInstance(),g=cF(e,d);eF(e,d,c);bF(e,d);$E(d,g)}};function GG(a){return 1==Ms(a.b).getPlayerType()}function FG(a,b){if(GG(a)&&(Ev(a.g.ed.template,"current",Gv(b)),43200<b&&a.b.getVideoData().ob)){var c=a.g;c.wm=!0;kG(c.ed,!0,!1)}};var WG={0:[],1:["autohide-controls","autominimize-progress-bar"],2:["autominimize-controls-aspect","autohide-controls-fullscreenonly","autominimize-progress-bar"],3:["autominimize-progress-bar"]};function XG(a){zE.call(this,a);this.V=this.I=this.M=this.D=null;this.wa=[];this.xa=this.gb=this.B=this.nb=null;this.Fa=this.ka=!1;this.Ra={x:0,y:0};this.Ia=null;this.C=new FE(this.j);S(this,this.C);a=this.app.R().gc?4E3:3E3;this.la=new Xv(this.Xp,a,this);S(this,this.la);this.la.start()}w(XG,zE);f=XG.prototype;
f.Vg=function(){XG.G.Vg.call(this);this.app.subscribe("appstatechange",this.cD,this);this.app.subscribe("applicationplayerstatechange",this.dD,this);this.app.subscribe("initializingmode",this.fD,this);this.app.subscribe("presentingplayerstatechange",this.eD,this);this.app.subscribe("onDetailedError",this.gD,this)};f.Qg=function(){XG.G.Qg.call(this);var a=this.app.R();this.Hn(a);this.nn(a);this.Bn()};
f.Hn=function(a){a.I&&this.addClass(a.I+"-theme");a.zc&&this.addClass("house-brand");!a.If&&a.Od||this.addClass("modest-branding");a.Nl&&this.addClass("html5-hide-share");a.Hp||this.addClass("html5-hide-volume");a.gc&&(this.addClass("html5-tablet"),O(document.body,"html5-tablet-body"));a.Qb||(this.wa=WG[a.Mi],0<=this.wa.indexOf("autohide-controls")&&this.addClass("hide-controls-when-cued"));YG(this)&&this.addClass("ideal-aspect");a.b.L&&this.addClass("ytp-autohide-fade")};
f.nn=function(a){if(a.Od&&!a.Qb){this.B=new nG(this.j,a.gc,a.b.g);a.b.ca&&(this.B.C=!0);var b=this.B;b.bd=this.F;b.uo=new mF(b.bd);S(b,b.uo);b.tf.X(b.bd);b.Fi||(b.Fi=new PF(b.ub,b.Bu));b.Fi.X(b.bd);var c=new zv(["div",["html5-player-chrome","html5-stop-propagation"]]);S(b,c);c.X(b.bd);c=c.K();b.Gc=new tF(b.ub);S(b,b.Gc);b.Gc.X(c);b.Gc.listen("click",b.Rw,b);b.De=new vF(b.ub);S(b,b.De);b.De.X(c);b.De.b.listen("click",ra(b.H,"nextvideo"),b);b.De.g.listen("click",ra(b.H,"previousvideo"),b);b.$c=new lG(b.ub);
S(b,b.$c);b.$c.X(c);b.$c.b.listen("click",b.Sw,b);b.xo=new wF(b.$c.g,!0);b.xo.subscribe("dragmove",b.Ow,b);b.ed=new jG;S(b,b.ed);b.ed.X(c);b.ck.listen(b.ed.b,"click",ra(b.H,"seekto",Infinity));b.li=H("html5-threed-popup-menu",b.bd);b.Yd=new oF(b.ub);b.Yd.X(c);S(b,b.Yd);b.Yd.listen("click",b.Nw,b);b.fc=new gG(b.ub,b.Au);b.fc.hide();b.fc.X(c);S(b,b.fc);b.fc.listen("click",b.Lw,b);b.ad=new IA(b.ub,"ytp-button-watch-on-youtube",Y(0,"YTP_URL_NAVIGATE"),Y(0,"YTP_URL_NAVIGATE"));LA(b.ad,6700);b.ad.X(c);
S(b,b.ad);b.ad.listen("click",b.Qw,b);b.Xc=new eG(b.ub);S(b,b.Xc);sG(b,"__default__",b.Xc,b.ad.K());b.Ml=new IA(b.ub,"ytp-button-playlist",Y(0,"YTP_PLAYLIST"),Y(0,"YTP_PLAYLIST"));LA(b.Ml,6400);b.Ml.X(c);S(b,b.Ml);b.Ab=new IA(b.ub,"ytp-button-watch-later",Y(0,"YTP_WATCH_LATER"));b.ub.Af(b.Ab.K(),"YTP_WATCH_LATER_AS_2",Y(0,"YTP_WATCH_LATER"));b.Ab.X(c);LA(b.Ab,6300);KA(b.Ab,Y(0,"YTP_WATCH_LATER"));S(b,b.Ab);b.Ab.listen("click",b.Pw,b);b.Ac=new bG(b.ub);S(b,b.Ac);b.Ac.listen("change",b.Kw,b);b.Ac.listen("blur",
b.Jw,b);b.Nd=new hG(b.ub);S(b,b.Nd);b.Nd.listen("change",b.Mw,b);b.Rd=new kF(b.ub);S(b,b.Rd);b.Rd.listen("change",b.Iw,b);S(this,this.B);this.gb=new DG(this.app,this.B);S(this,this.gb)}a.Gp&&(this.Ia=new NE(a.Pb,a.zc),this.Ia.X(this.g),S(this,this.Ia));this.M=new OE(60);O(this.M.element,"html5-video-loader");O(this.M.element,"html5-center-overlay");O(this.M.element,"ytp-scalable-icon-grow");this.M.X(this.g);S(this,this.M);this.I=new PE(a.Pb);this.I.X(this.g);S(this,this.I);this.V=new sE;this.V.X(this.g);
S(this,this.V);this.C.hide();this.C.X(this.element)};f.Ym=function(a){XG.G.Ym.call(this,a);ZG(this,a);this.D&&ME(this.D);Q(this.element,"ideal-aspect",YG(this));this.C.P&&GE(this.C)};f.Hl=function(){XG.G.Hl.call(this);ZG(this,this.Fb())};f.cD=function(a){2==a?$G(this):aH(this);this.app.R().b.k&&3==a&&this.I.show(this.app.getVideoData())};
f.eD=function(a){if(this.element){var b;b=a.state;if(W(b,2))b=["ended-mode"];else{var c=[];W(b,8)?c.push("playing-mode"):W(b,4)&&c.push("paused-mode");W(b,1)&&!W(b,32)&&c.push("buffering-mode");W(b,32)&&c.push("seeking-mode");W(b,64)&&c.push("unstarted-mode");b=c}W(a.state,2)||(b=b.concat(this.wa));this.xa&&qg(this.element,this.xa);pg(this.element,b);this.xa=b;W(Ms(this.app).j,1)?this.M.show():this.M.hide();b=Ms(this.app);this.app.R().b.k&&b.Vh()&&!W(b.j,1)&&this.I.hide();0>Rv(a,64)&&bH(this.app)}};
f.dD=function(a){!W(a.state,2)||this.app.R().zc||cH()?0>Rv(a,2)&&aH(this):$G(this)};
f.Bn=function(){var a=this.app.R();if(a.Mp){a.gc&&(Qy(this,this.element,"gesturechange",this.sA),Qy(this,this.element,"gestureend",this.tA));lr?this.g.onclick=u(function(a){this.Nm(new Gg(a))},this):this.Om();Qy(this,this.element,"click",this.wr);Qy(this,this.element,"mousemove",this.wr);Qy(this,this.element,"mouseout",this.Xp);var b,a=u(function(){var a=this.b;a&&(It(a),pE.fillPool(4),this.Ga(b))},this);b=Qy(this,this.element,"click",a,void 0,void 0,!0)}};
f.Om=function(){Qy(this,this.g,"click",this.Nm);Qy(this,this.g,"dblclick",this.is)};f.Nm=function(a){dH(a)&&(this.element.focus(),og(this.element,"cued-mode")||!this.app.R().Qb)&&(eH(this),LG(this.app));UG(this.app,"screenclick")};f.is=function(a){6!=this.app.I&&this.app.R().Ff&&(dH(a)&&yz(this.app),UG(this.app,"screendoubleclick"))};f.sA=function(a){var b=a.scale,c=this.app.R().mb;b*(c?-1:1)>(c?-.7:1.3)&&yz(this.app);a.preventDefault()};
f.tA=function(a){a=a.scale;var b=this.app.R().mb;a*(b?-1:1)>(b?-.9:1.1)&&yz(this.app)};function dH(a){return!ud(a.target,"html5-stop-propagation")}function YG(a){a=Mb(new G(a.element.clientWidth,a.element.clientHeight)).toFixed(1);return"1.3"==a||"1.8"==a}f.wr=function(a){if(a){var b=a.x||a.screenX;a=a.y||a.screenY;if(this.Ra.x==b&&this.Ra.y==a)return;this.Ra={x:b,y:a}}this.app.b.Zf=v();this.Fa=!1;this.la.start();this.ka&&(this.ka=!1,this.removeClass("ytp-user-idle"),this.app.Ua("onShowControls"))};
f.Xp=function(a){if(a&&(a=a.relatedTarget)&&kd(this.element,a))return;this.Fa=!0;this.la.stop();if(!this.ka){a=this.B&&null!=this.B.j;var b=Ps(this.app.C,"playlist"),b=b&&b.loaded;!this.Fa||a||b||(this.ka=!0,this.addClass("ytp-user-idle"),this.app.Ua("onHideControls"))}};function $G(a){a.I.show(a.app.getVideoData());a.addClass("cued-mode")}function aH(a){a.app.R().b.k||a.I.hide();a.removeClass("cued-mode")}
f.Rg=function(a){if(a){var b=this.C;b.b=a;b.oa(a);this.C.show()}else a=this.C,a.b=null,a.oa(null),this.C.hide()};
f.gD=function(a){if(this.element){this.D||(this.D=new LE,this.D.X(this.element),S(this,this.D));var b=this.app.R(),c=a.message,d="embedded"==b.$;a=a.messageKey;var e;"YTP_ERROR_GENERIC"!=a||b.zc?"YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK_FLASH"==a?(e="https://get.adobe.com/flashplayer/",d=!0):"YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK"!=a||b.zc||(e="/html5",a="YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK"):(e="//support.google.com/youtube/?p=player_error1",a="YTP_ERROR_GENERIC_WITH_LINK_2");e&&(c=
Ye(a,{BEGIN_LINK:'<br/><a href="'+e+'"'+(d?' target="_blank"':"")+">",END_LINK:"</a>"}));b=this.D;Pg(b.g);b.g=[];Ev(b.template,"content",new wE(c));this.D.show()}};f.fD=function(){this.D&&this.D.hide()};function eH(a){var b=a.app.getPlayerState(),c=a.app.getVideoData(),d="html5-bezel-pause";W(b,8)?c.eb&&!c.ob&&(d="html5-bezel-stop"):d="html5-bezel-play";a=a.V;a.show(d);a.b=L(u(a.g,a),10)}
f.Tf=function(){var a=this.app.R();sg(document.documentElement,"player-size",a.mb?"fullscreen":a.qd?"large":"small");XG.G.Tf.call(this)};function ZG(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=Ib(e/g,.5,1),d=Nc("ytp-scalable-icon-shrink",a.element),h=0;h<d.length;h++)Gx(d[h],"transform","scale("+c+")");c=Ib(e/g*.33,.5,1);d=Nc("ytp-scalable-icon-grow",a.element);for(h=0;h<d.length;h++)Gx(d[h],"transform","scale("+c+")")}}
f.ik=function(a){this.B&&pG(this.B,a)};f.J=function(){Tg(this.element);ed(this.nb);XG.G.J.call(this);this.I=this.V=this.nb=null};function fH(a,b,c,d){uE.call(this,["div",["html5-endscreen",c||"base-endscreen","html5-stop-propagation"],["div","html5-endscreen-content"]]);this.aa="";this.b=this.template.b["html5-endscreen-content"];this.g=a;this.$a=b;this.Bc=!1;this.C=d||!1}w(fH,uE);fH.prototype.create=function(){this.Bc=!0};fH.prototype.destroy=function(){this.Bc=!1};function gH(a,b,c){var d=!!b.featured,e="1"==b.is_episodic;b=!!b.endscreen_autoplay_session_data;return c&&(d||e)||b||a.C&&a.El()}fH.prototype.El=function(){return!1};function hH(){X.call(this,["div","ytp-channel-banner-container",["img","ytp-channel-banner",{src:"{{banner}}"}]])}w(hH,X);function iH(){X.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"]]])}w(iH,X);function jH(a,b){uE.call(this,b);this.D=a;this.videoId=null}w(jH,uE);
jH.prototype.yg=function(a,b){this.videoId=a?a.id||a.video_id:"";Q(this.element,"ytp-suggestion-set",!!this.videoId);if(this.videoId){var c;b&&a.iurlhq_webp?c=a.iurlhq_webp:!b&&a.iurlmq_webp?c=a.iurlmq_webp:c=qB(a.thumbnail_ids?a.thumbnail_ids.split(",")[0]:this.videoId,b?"hqdefault.jpg":"mqdefault.jpg");var d=ac(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=Gv(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 kH(a){var b=["div","ytp-watch-next-card",["div","ytp-watch-next-content",["div","ytp-watch-next-header",Y(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}}"]]];jH.call(this,a,b)}w(kH,jH);function lH(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),Hi("/get_video_metadata",{method:"GET",onError:d,onSuccess:c,Gh:a,context:e}))};function mH(a,b,c){fH.call(this,a,b,"subscribecard-endscreen");this.o=new hH;S(this,this.o);this.A=new zv(["div","ytp-channel-curtain"]);S(this,this.A);this.k=new iH;S(this,this.k);(this.j=c?new kH(this.g.app.g.j):null)&&S(this,this.j);this.hide()}w(mH,fH);
mH.prototype.create=function(){mH.G.create.call(this);cd(this.b);this.o.X(this.b);this.A.X(this.b);this.k.X(this.b);if(this.j){var a=this.g.getVideoData().da;a&&gH(this,a[0])&&(this.j.yg(a[0]),this.j.X(this.b))}lH(this.g.getVideoData().videoId,!0,this.B,ca,this,this.g.R().Sa,this.g.R().Za)};
mH.prototype.B=function(a,b){if(this.Bc){var c=b.user_info,d=this.g.getVideoData();d&&(d.Ca=c.external_id);d=c.channel_logo_url||c.image_url;Ev(this.o.template,"banner",c.channel_banner_url);Ev(this.k.template,"image",d);Ev(this.k.template,"author",c.channel_title||c.username);this.j&&b.watch_next&&(this.j.yg(b.watch_next),this.j.X(this.b));c=c.subscription_button_html;this.k.template.b["html5-subscribe-button-container"].innerHTML=c?c:""}};function nH(a,b){return C(a.b.b,b)};function oH(a,b){var c=["div",["video-ads","html5-stop-propagation"],["div","video-ad-interstitial",["span","",Y(0,"YTP_AD_RESUME_MESSAGE")]],["div","video-ad-status-bar",["div","video-ad-label",Y(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",{id:"osd-id"}]];X.call(this,c);this.W=b}w(oH,X);oH.prototype.g=null;oH.prototype.j=null;oH.prototype.b=null;
function pH(a){if(!a.g&&(a.g=a.template.b["ad-container"],a.W.R().Rb)){var b=nH(a.W.R(),"927622")?"ad-container-single-media-element-annotations":"ad-container-single-media-element";O(a.g,b)}return a.g}function qH(a){a.b&&(a.W.R().Rb?(P(a.b,"ad-video"),rH(a.W.app,a.b),a.b=null):(ed(a.b),Nt(a.b)))}
function sH(a){if(!a.j){if(a.W.R().gc){var b=Zc("button");O(b,"video-click-tracking");bd(b,Ye("YTP_VISIT_ADVERTISERS_SITE"));var c=Zc("div");O(c,"video-click-tracking-container");c.appendChild(b);pH(a).appendChild(c)}else b=Zc("div"),pg(b,["video-click-tracking","ad-video"]),pH(a).appendChild(b);a.j=b}return a.j}oH.prototype.J=function(){oH.G.J.call(this);this.b&&(rH(this.W.app,this.b),this.b=null);qH(this);cd(pH(this));cd(sH(this));this.j=this.g=null;delete this.W};
function tH(a){if(!a.b){var b;b=a.W.app;if(b.b.Rb){var c=Nf(b.k),d=Zf(b.k);b.U=new yf(c.x,c.y,d.width,d.height);uH(b.A);Ot(b.k,1);Nt(b.k);b=b.k}else b=pE.getTag(void 0);a.b=b;pg(a.b,["video-stream","ad-video"])}return a.b};function vH(){HE.call(this,84,84);this.g=this.width/2;this.k=this.height/2}w(vH,HE);var wH=3*Math.PI/2,xH=2*Math.PI;function yH(a,b){jH.call(this,a.app.g.j,["a","videowall-still",{tabIndex:0,style:"{{background}}"},["span","videowall-still-featured-label",Y(0,"YTP_FEATURED")],["span","videowall-still-info",["span","videowall-still-info-bg"],["span","videowall-still-info-title","{{title}}"],["span","videowall-still-info-author","{{author}}"],["span","videowall-still-info-duration","{{duration}}"],["span","videowall-still-info-view-count","{{view_count_string}}"]],["div",["videowall-still-listlabel-episodic","videowall-still-listlabel"],
["div","videowall-still-listlabel-episodic-heading",Y(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"],Y(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"],Y(0,"YTP_MIX"),["span","videowall-still-listlabel-length"," (50+)"]]]);this.W=a;this.C=b;this.A={};this.k={};this.B=this.o=null;this.g=0;this.b=this.j=null;this.listen("click",this.lv);this.listen("keypress",this.mv)}w(yH,jH);f=yH.prototype;
f.yg=function(a,b){yH.G.yg.call(this,a,b);this.A=a.session_data;this.k=a.endscreen_autoplay_session_data;this.k||"1"!=a.endscreen_autoplay||(this.k={autonav:"1",feature:"related-auto",playnext:"1"});this.o=a.list;var c=!1,d=!1,e=!1;"1"==a.is_episodic?d=!0:this.o&&"RD"==fs(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,b){zH(this);var c=this.W.app,d=this.videoId,e=a?this.k:this.A,g=this.o||void 0;if(!d&&!g)throw Error("Playback source is invalid");d={video_id:d,list:g};c.b.mb||"detailpage"!=c.b.$?g?(c.P=!1,Ws(c,d,void 0,void 0,void 0)):Qs(c,d,1):(g=new Jr(d),g=AH(c.b,g,{}),p("yt.player.exports.navigate")(g,e,!0),c.ek(g,b))};
f.zp=function(){var a=new Date-this.B,b=this.j,c=a/1E4;b.context.clearRect(0,0,b.width,b.height);b.context.beginPath();b.context.arc(b.g,b.k,42,0,xH);b.context.fillStyle="rgba(0, 0, 0, 0.6)";b.context.fill();var d=Math.sqrt(3)/2*35;b.context.save();b.context.fillStyle="#fff";b.context.translate(d,b.g);b.context.beginPath();b.context.lineTo(0,d/2);b.context.lineTo(28,0);b.context.lineTo(0,-d/2);b.context.closePath();b.context.fill();b.context.restore();b.context.beginPath();b.context.arc(b.g,b.k,40,
wH,c*xH+wH,!1);b.context.lineWidth=4;b.context.strokeStyle="#fff";b.context.stroke();b=Math.max(1E4-a,0);Ev(this.b,"autoplay",Ye("YTP_AUTOPLAY_COUNTDOWN_2",{SECONDS_LEFT:Math.ceil(b/1E3)}));1E4<=a&&this.select(!0)};f.Fw=function(a){a.stopPropagation();this.g&&(this.C.log({cancelButtonClick:"1"}),zH(this))};function zH(a){a.g&&(Ve(a.g),a.g=0,Q(a.element,"videowall-still-autoplay",!1))}f.lv=function(a){this.select(!1,a.ctrlKey);a.stopPropagation()};
f.mv=function(a){switch(a.keyCode){case 13:case 32:this.select(),a.preventDefault()}};f.J=function(){zH(this);yH.G.J.call(this)};function BH(a,b,c,d){fH.call(this,a,b,"videowall-endscreen",d);this.D=c;this.A=[];this.j=this.k=null;this.B=!1;this.o=0;this.$a.subscribe("onResize",this.zB,this);this.$a.subscribe("videodatachange",this.AB,this);this.hide()}w(BH,fH);BH.b="feature-video";f=BH.prototype;f.create=function(){BH.G.create.call(this);var a=this.g.getVideoData();a&&(this.j=a.da);CH(this)};f.destroy=function(){cd(this.b);this.j=[];BH.G.destroy.call(this)};f.El=function(){return this.g.getVideoData().zs};
f.show=function(){BH.G.show.call(this);var a=this.j&&this.j.length,b=this.C?this.El():!!DH(this,0).k;a&&b&&(a=DH(this,0),zH(a),a.b||(a.b=new zv(["div",["videowall-still-listlabel-autoplay","videowall-still-listlabel"],["div","videowall-still-listlabel-autoplay-label",["span","videowall-still-listlabel-autoplay-label-message",Y(0,"YTP_AUTOPLAY")]," ",["span","","{{autoplay}}"]]]),S(a,a.b),a.b.X(a.element),b=new IA(a.D),S(a,b),b.listen("click",a.Fw,a),b.X(a.b.K(),0),JA(b,"videowall-still-listlabel-autoplay-cancel"),
b.oa(Y(0,"YTP_CANCEL")),a.j=new vH,S(a,a.j),O(a.j.K(),"autoplay-play-canvas"),a.j.X(a.element)),Q(a.element,"videowall-still-autoplay",!0),a.C.log({cancelButtonShow:"1"}),a.B=new Date,a.g=Ue(u(a.zp,a),50),a.zp())};f.hide=function(){BH.G.hide.call(this);var a=this.A[0];a&&zH(a)};
function CH(a){if(a.Bc){cd(a.b);var b=Yf(a.K()),c=b.height,d;t:{if(og(rt(a.g),"ad-showing")&&(d=H("ad-container"))){d=Zf(d).height;break t}d=0}b.height=c-d;d=Math.floor(b.width/158);var e=Math.floor(b.height/(158/1.45));if(1>e||1>d)a.o=0;else{var g=a.j.length,c=!1;gH(a,a.j[0],2<e&&2<d)&&(c=!0,g+=3);Q(a.b,BH.b,c);for(var h=0,k=0,l=Mb(b),q=!0;0<=g&&(h<d||k<e);){var r=g>=k,t=g>=h;if(q&&t||!r&&t)g-=h,k++;else if(r)g-=k,h++;else break;q=h/k*1.45>l}a.B=q;d=new G(h,k);a.B?(e=1/d.width,e*=b.width,g=e/1.45):
(e=1/d.height,g=b.height*e,e=1.45*g);e=new G(Math.floor(e),Math.floor(g));a.o=d.width*d.height;c&&(a.o-=3);a.k&&UB(a.k);c=EH(e);g={gd:a.k};a.k=TB(".videowall-still",c,g);c=EH(e.clone().scale(2));g.gd=a.k;h="."+BH.b+" .videowall-still:first-child";TB(h,c,g);c=e.width*d.width;d=e.height*d.height;Wf(a.b,c,d);Lf(a.b,(b.width-c)/2,(b.height-d)/2)}b=0;for(c=a.o;b<c;b++)DH(a,b).X(a.b)}}function DH(a,b){var c=a.A[b];c||(c=new yH(a.g,a.D),S(a,c),a.A[b]=c);c.yg(a.j[b],0==b&&a.j[0].featured);return c}
function EH(a){return["width:"+a.width+"px","height:"+a.height+"px"]}f.zB=function(){CH(this)};f.AB=function(){var a=this.g.getVideoData().da;this.j!=a&&(this.j=a,CH(this))};function FH(a){hu.call(this,a);Xe({});this.ua="endscreen";this.hc="end";this.g=null;var b=a.R();GH(a)?this.g=new BH(this.b,this.M,this,b.b.Ca):b.bh?(a=b.b.C,b=new mH(this.b,this.M,a),a&&R(b.j.K(),"click",u(this.jy,this)),this.g=b):this.g=new fH(this.b,this.M);this.g.X(rt(this.b))}w(FH,hu);function HH(a){return IH(a.R())&&1==Ms(a.app).getPlayerType()}function GH(a){a=a.R();return a.Jc&&!a.bh}f=FH.prototype;f.Ja=function(a){return HH(a)};
f.create=function(){FH.G.create.call(this);JH(this);this.b.getVideoData().subscribe("dataupdated",this.rr,this)};f.destroy=function(){this.b.getVideoData().ia("dataupdated",this.rr,this);iu(this);this.g.destroy();FH.G.destroy.call(this)};f.load=function(){FH.G.load.call(this);this.g.show();if(this.b.R().bh&&.01>Math.random()){var a=this.b.R().b.C;this.log({trailerEndscreenShow:1,watchNext:a?1:0})}};f.unload=function(){FH.G.unload.call(this);this.g.hide()};
f.Fc=function(a){FH.G.Fc.call(this,a);var b=this.b.getVideoData(),c=!GH(this.b)||!(!b.da||!b.da.length);this.b.R();b=bs(b,"ypc_module");c&&!b&&("preload"==a.getId()?this.g.create():KH(this.b.app)||this.load())};f.kd=function(a){"load"==a.getId()&&this.loaded&&this.unload();FH.G.kd.call(this,a)};f.rr=function(){iu(this);JH(this)};f.jy=function(a){var b=this.g.j.videoId,b=LH(this.b.R(),b,null);mu(this,b,a.ctrlKey)};
function JH(a){var b=Math.max(1E3*(a.b.getVideoData().Oa-10),0),b=new Yt(b,2147483647,{id:"preload"}),c=new Yt(2147483647,2147483647,{id:"load",priority:6});a.Gf(b,c)}function MH(a){return HH(a)?new FH(a):null};function NH(a){mf("/gen_204?"+a,void 0)}function OH(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=Yd("/sharing_services",a);mf(h)};function PH(a){var b=document.location.protocol+"//"+document.domain+"/post_login",b=Xd(b,"mode","subscribe"),b=Xd("/signin?context=popup","next",b),b=Xd(b,"feature","sub_button");if(b=window.open(b,"loginPopup","width=375,height=440,resizable=yes,scrollbars=yes",!0)){var c=Th("LOGGED_IN",function(b){Vh(Se("LOGGED_IN_PUBSUB_KEY"));Qe("LOGGED_IN",!0);a(b)});Qe("LOGGED_IN_PUBSUB_KEY",c);b.moveTo((screen.width-375)/2,(screen.height-440)/2)}}ba("yt.pubsub.publish",Wh,void 0);function QH(){XE.call(this)}w(QH,XE);da(QH);f=QH.prototype;f.Kd="subscription-button";
f.register=function(){ZE(this,"click",this.bt);YE(this,"subscription-subscribe-loading",this.$s);YE(this,"subscription-subscribe-loaded",this.Zs);YE(this,"subscription-unsubscirbe-loading",this.$s);YE(this,"subscription-unsubscribe-loaded",this.Zs);YE(this,"subscription-subscribe-success",this.ND);YE(this,"subscription-unsubscribe-success",this.OD);YE(this,"subscription-enable-ypc",this.MD);YE(this,"subscription-disable-ypc",this.LD)};
f.bt=function(a){var b=this.Y(a,"href"),c;c=(c=Se("PLAYER_CONFIG"))&&c.args&&void 0!==c.args.authuser?!0:!(!Se("SESSION_INDEX")&&!Se("LOGGED_IN"));if(b)a=this.Y(a,"target")||"_self",window.open(b,a);else if(c){b=this.Y(a,"channel-external-id");c=this.Y(a,"sessionlink");var d;if(this.Y(a,"ypc-enabled")){d=this.Y(a,"ypc-item-type");var e=this.Y(a,"ypc-item-id"),g=this.Y(a,"ypc-offers-url");d={itemType:d,itemId:e,offersUrl:g,subscriptionElement:a}}else d=null;e=this.Y(a,"parent-url");this.Y(a,"is-subscribed")?
(g=this.Y(a,"subscription-id"),Wh("subscription-unsubscribe",b,g,d,a,c,e)):Wh("subscription-subscribe",b,d,a,c,e)}else RH(this,a)};f.$s=function(a){this.hg(a,this.jt,!0)};f.Zs=function(a){this.hg(a,this.jt,!1)};f.ND=function(a,b){this.hg(a,this.kt,!0,b)};f.OD=function(a){this.hg(a,this.kt,!1)};f.MD=function(a){this.hg(a,this.cE)};f.LD=function(a){this.hg(a,this.bE)};
f.kt=function(a,b,c){b?(sg(a,"is-subscribed","true"),c&&sg(a,"subscription-id",c)):(this.removeData(a,"is-subscribed"),this.removeData(a,"subscription-id"));SH(this,a)};f.jt=function(a,b){var c=ud(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 SH(a,b){var c=a.Y(b,"style-type"),d=!!a.Y(b,"is-subscribed"),c="-"+c,e="yt-uix-button-subscribed"+c;Q(b,"yt-uix-button-subscribe"+c,!d);Q(b,e,d);a.Y(b,"subscriber-count-tooltip")&&!a.Y(b,"subscriber-count-show-when-subscribed")&&(c=Z(aF.getInstance()),Q(b,c,!d),b.title=d?"":a.Y(b,"subscriber-count-title"));d?L(function(){O(b,"hover-enabled")},1E3):P(b,"hover-enabled")}
f.cE=function(a){var b=!!this.Y(a,"ypc-item-type"),c=!!this.Y(a,"ypc-item-id"),d=!!this.Y(a,"ypc-offers-url");!this.Y(a,"ypc-enabled")&&b&&c&&d&&(O(a,"ypc-enabled"),sg(a,"ypc-enabled","true"))};f.bE=function(a){this.Y(a,"ypc-enabled")&&(P(a,"ypc-enabled"),this.removeData(a,"ypc-enabled"))};function TH(a,b){var c=Nc(Z(a));return hb(c,function(a){return b==this.Y(a,"channel-external-id")},a)}f.CE=function(a,b,c){var d=yb(arguments,2);z(a,function(a){b.apply(this,ub(a,d))},this)};
f.hg=function(a,b,c){var d=TH(this,a),d=ub([d],yb(arguments,1));this.CE.apply(this,d)};function RH(a,b){var c=u(function(a){a.discoverable_subscriptions&&Qe("SUBSCRIBE_EMBED_DISCOVERABLE_SUBSCRIPTIONS",a.discoverable_subscriptions);this.bt(b)},a);PH(c)};function UH(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))qc&&-1!=c.indexOf(";")&&(c="'"+c.replace(/'/g,"%27")+"'"),b.opener=null,c=Da(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 VH(a,b){var c;c=b||{};c.target=c.target||a.target||"YouTube";c.width=c.width||600;c.height=c.height||600;(c=UH(a,c))?(c.opener||(c.opener=window),c.focus()):c=null;return!c};function WH(a){X.call(this,["div","ytp-action-buttons"]);this.j=new IA(a,"ytp-button-info",Y(0,"YTP_MORE_INFO"));S(this,this.j);this.j.X(this.element);LA(this.j,3500);this.k=new IA(a,"ytp-button-share",Y(0,"YTP_SHARE"));S(this,this.k);this.k.X(this.element);LA(this.k,3400);this.b=new IA(a,"ytp-button-dislike",Y(0,"YTP_DISLIKE"));S(this,this.b);LA(this.b,3300);sg(this.b.K(),"tooltip-below","1");a.Af(this.b.K(),"YTP_DISLIKE_AS",Y(0,"YTP_DISLIKE"));this.g=new IA(a,"ytp-button-like",Y(0,"YTP_LIKE"));
S(this,this.g);LA(this.g,3200);sg(this.g.K(),"tooltip-below","1");a.Af(this.g.K(),"YTP_LIKE_AS",Y(0,"YTP_LIKE"))}w(WH,X);function XH(){X.call(this,["div","ytp-sentiment-display",["div","ytp-sentiment-bar",["div","ytp-sentiment-bar-likes"],["div","ytp-sentiment-bar-dislikes"]]]);this.g=this.template.b["ytp-sentiment-bar-likes"];this.b=this.template.b["ytp-sentiment-bar-dislikes"]}w(XH,X);XH.prototype.J=function(){this.b=this.g=null;XH.G.J.call(this)};function YH(){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",Y(0,"YTP_MORE")]];X.call(this,a)}w(YH,X);function ZH(a,b,c,d){IA.call(this,a,"share-service-icon-"+d+"-sharebar",b,c);O(this.element,"share-service-icon-sharebar");LA(this,3700)}w(ZH,IA);function $H(){X.call(this,["div","ytp-share-url-container",{tabIndex:3600},["input","ytp-share-url"]]);this.b=this.template.b["ytp-share-url"]}w($H,X);$H.prototype.J=function(){this.b=null;$H.G.J.call(this)};function aI(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",Y(0,"YTP_SHARE_WITH_PLAYLIST")]]];uE.call(this,c);this.k=b;this.B=a;this.b=null;this.o=[];this.j=this.g=null;this.A=new IA(this.B,"yt-uix-button-icon-share-bar-close",Y(0,"YTP_CLOSE"),Y(0,"YTP_CLOSE"));this.A.X(this.template.b["share-bar-content"]);LA(this.A,3900)}
w(aI,uE);function bI(a){var b={action_get_share_info:1,feature:"player_embedded",video_id:a.j?a.j.videoId:void 0};a.k.Sa&&(b.authuser=a.k.Sa);a.k.Za&&(b.pageid=a.k.Za);var c;cI(a)?(c=H("ytp-share-bar-checkbox"),c=!c||og(c,"ytp-share-bar-checked")):c=!1;c&&(b.list=cI(a));Hi("/share_ajax",{context:a,method:"GET",onError:a.F,onSuccess:a.C,Gh:b})}
aI.prototype.C=function(a,b){if(!this.fa()){dI(this);var c=this.template.b["share-bar-content"];this.b=new $H;S(this,this.b);Pc(this.b.b,{value:b.url_short});this.b.X(c);for(var d=b.links,e=0;e<Math.min(3,d.length);e++){var g=new ZH(this.B,d[e].name,d[e].sname,d[e].img);S(this,g);g.X(c);g.listen("click",ra(VH,d[e].url,{}));this.o.push(g)}this.g=new YH;S(this,this.g);this.g.listen("click",u(this.I,this,b.more));this.g.X(c);Qy(this,this.template.b["ytp-share-bar-checkbox"],"click",this.D,this);this.H("menu_show")}};
aI.prototype.F=function(){};aI.prototype.I=function(a){UH(a)};function cI(a){return a.j?a.j.La:void 0}aI.prototype.D=function(){var a=H("ytp-share-bar-checkbox");rg(a,"ytp-share-bar-checked");bI(this)};function dI(a){a.b&&(a.b.cd(),a.b=null);a.g&&(a.g.cd(),a.g=null);z(a.o,function(a){ed(a.K())});a.o=[]};function eI(a,b){uE.call(this,["div",["html5-info-bar","html5-stop-propagation"],["div","html5-title",["div",["html5-like-dislike-buttons","hid"]],["div","","{{titlelogobutton}}"],["div","html5-title-text-wrapper","{{titlebutton}}"]],["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.M=new mF(this.K());S(this,this.M);this.b=null;var c=this.template.b["html5-title"];this.A=new IA(this.B);O(this.A.K(),"html5-title-text");S(this,this.A);LA(this.A,3100);this.A.listen("click",this.Nk,this);Ev(this.template,"titlebutton",this.A);var d=new IA(this.B,"html5-title-logo",Y(0,"YTP_URL_NAVIGATE"),
Y(0,"YTP_URL_NAVIGATE"));S(this,d);d.oa("YouTube");LA(d,3550);sg(d.K(),"tooltip-below","1");d.listen("click",this.Nk,this);Ev(this.template,"titlelogobutton",d);this.k=new WH(this.B);S(this,this.k);this.k.X(c,1);this.k.k.listen("click",this.ni,this);this.k.j.listen("click",this.Dk,this);this.j.zc&&this.k.j.hide();this.o=null;this.F=!1;this.g=null}w(eI,uE);f=eI.prototype;f.update=function(a){this.b=a;if(this.g){var b=this.g;b.j=a;bI(b)}a=a.title||"";this.A.oa(a);KA(this.A,a)};f.Nk=function(){this.ut()};
f.Dk=function(){if(!this.F){this.F=!0;lH(this.b?this.b.videoId:void 0,!1,this.iA,ca,this,this.j.Sa,this.j.Za);if(!this.o){var a=this.template.b["html5-info-panel-loading-icon"];this.o=new OE;S(this,this.o);O(this.o.element,"html5-info-panel-loader");this.o.X(a);S(this,this.o)}this.o.show()}P(this.element,"show-share");return rg(this.element,"show-more-info")};
f.ni=function(a){P(this.element,"show-more-info");if("detailpage"!=this.j.$){if(!this.g){var b=this.g=new aI(this.B,this.j);b.j=this.b;bI(b);this.g.X(this.template.b["html5-info-bar"]);this.g.A.listen("click",this.ni,this);this.g.subscribe("menu_show",u(this.jq,this))}rg(this.element,"show-share");this.jq();a&&a.stopPropagation();Q(this.element,"share-with-playlist",!!cI(this.g))}};f.jq=function(){og(this.element,"show-share")&&this.g.b&&this.g.b.K().focus()};
f.iA=function(a,b){if(!this.fa()){var c=this.template.b["html5-info-panel"],d=b.user_info;this.b&&(this.b.Ca=d.external_id);var e=H("html5-author-img",c).getElementsByTagName("img")[0];e.src=d.image_url;Qy(this,e,"click",this.Kq);e=H("html5-author-name",c);md(e,d.channel_title||d.public_name||d.username);Qy(this,e,"click",this.Kq);var e=b.video_info,g=H("html5-subscribe-button-container",c);g.innerHTML=d.subscription_button_html?d.subscription_button_html:"";d=QH.getInstance();(d=H(Z(d),g))&&this.B.Af(d,
"YTP_SUBSCRIBE_AS");H("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 XH;S(this,h);var k=0,l=0;0<d+g&&(k=100*d/(d+g),l=100*g/(d+g));h.g.style.width=k+"%";h.b.style.width=l+"%";h.X(H("html5-video-info",c),2);d=H("html5-description-text",c);md(d,e.description);this.o.hide();c=H("html5-info-panel-content",c);Cx(c)}};
f.Kq=function(){var a=this.j,b=this.b,c="",c=b.Ca?a.tb+"channel/UC"+b.Ca:a.tb+"user/"+b.th;this.en(c)};f.en=function(a){UH(a)};f.ut=function(){this.en(AH(this.j,this.b))};f.J=function(){this.b=this.j=null;eI.G.J.call(this)};function fI(){X.call(this,["div","ytp-playlist-tray-index-length",["span","ytp-playlist-tray-index","{{index}}"]," / ",["span","ytp-playlist-tray-length","{{length}}"]])}w(fI,X);fI.prototype.Ri=function(a){Ev(this.template,"index",a+1)};function gI(a){GC.call(this,a,"ytp-button-expand",Y(0,"YTP_ST_EXPAND"),"ytp-button-collapse",Y(0,"YTP_ST_COLLAPSE"));this.oa([["div","ytp-button-playlist-icon"],["div","ytp-button-playlist-text",Y(0,"YTP_PLAYLIST")]])}w(gI,GC);function hI(a){X.call(this,["div","ytp-playlist-tray-controller"]);this.b=new gI(a);this.b.X(this.template.K());S(this,this.b);this.g=new fI;this.g.X(this.template.K());S(this,this.g)}w(hI,X);function iI(a,b){X.call(this,["div","ytp-playlist-tray-item",["span","ytp-playlist-tray-item-index","{{index}}"],["span","ytp-playlist-tray-item-now-playing","\u25b6"],["img","ytp-playlist-tray-item-thumbnail",{src:"{{image}}"}],["span","ytp-playlist-tray-item-title","{{title}}"],["span","ytp-playlist-tray-item-author","{{author}}"]]);this.b=b;this.template.update({index:b+1,title:a.title,author:a.th,image:qB(a.videoId,"default.jpg")})}w(iI,X);
iI.prototype.Ri=function(a){Q(this.element,"ytp-playlist-tray-item-current",this.b==a)};function jI(){uE.call(this,["div","ytp-playlist-tray-tray"]);this.b=null;this.g=[]}w(jI,uE);function kI(a,b){a.b&&a.b.ia("shuffle",a.j,a);a.b=b;a.b.subscribe("shuffle",a.j,a);a.j()}jI.prototype.j=function(){Mh(this.g);this.g=[];cd(this.element);for(var a=0;a<=this.b.tc-1;++a){var b=rs(this.b,a);b&&(b=new iI(b,a),b.Ri(this.b.Ha),this.g.push(b),b.listen("click",u(this.k,this,a)),b.X(this.element))}};jI.prototype.k=function(a){this.H("playvideoat",a)};
jI.prototype.J=function(){Mh(this.g);this.g=[];cd(this.element);jI.G.J.call(this)};function lI(a){hu.call(this,a);var b=rt(a);this.B=a.app.g.j;this.o=!1;this.j=null;this.A=H("ytp-button-playlist",b);R(this.A,"click",u(this.Zo,this));this.g=this.k=null}w(lI,hu);f=lI.prototype;f.ua="playlist";
f.create=function(){lI.G.create.call(this);var a=this.b.ic();this.k=new zv(["div",["ytp-playlist-tray-container","html5-stop-propagation"]]);qt(this.b,this.k.K());this.j=new jI;this.j.subscribe("playvideoat",this.yp,this);this.j.X(this.k.K(),0);this.g=new hI(this.B);this.g.X(H("html5-title",void 0),0);this.g.b.listen("click",this.Zo,this);this.subscribe("fullscreentoggled",this.Up,this);this.subscribe("videodatachange",this.Wp,this);this.subscribe("clearvideooverlays",this.Vp,this);this.Ng();a.subscribe("shuffle",
this.Ng,this)};f.Ng=function(){var a=this.b.fp(),b=this.g.g;null!=a?b.show():b.hide();this.g.g.Ri(a);a=this.g.g;b=this.b.ic();Ev(a.template,"length",b.tc)};f.destroy=function(){lI.G.destroy.call(this);var a=this.b.ic();a&&a.ia("shuffle",this.Ng,this);this.ia("fullscreentoggled",this.Up,this);this.ia("videodatachange",this.Wp,this);this.ia("clearvideooverlays",this.Vp,this);ed(this.k.K());this.j.dispose();this.j=null;this.k.dispose();this.k=null;ed(this.g.K());this.g.dispose();this.g=null};
f.load=function(){lI.G.load.call(this);var a=this.b.ic();this.o||(kI(this.j,a),this.Ng(),this.o=!0);for(var a=this.j,b=0;b<a.g.length;b++)a.g[b].Ri(a.b.Ha);IC(this.g.b)};f.unload=function(){lI.G.unload.call(this);this.o=!1;JC(this.g.b)};f.Vp=function(){this.loaded&&this.unload()};f.yp=function(a){this.b.kp(a);this.unload()};f.Zo=function(){this.loaded?this.unload():(this.H("command_clear_video_overlays"),this.load())};f.hide=function(){var a=H("ytp-playlist-tray-info");P(a,"show-more-info");P(a,"show-share")};
f.Up=function(a){var b=this.b.R().$;this.loaded&&!a&&"detailpage"==b&&this.unload()};f.Wp=function(){var a=this.b.ic();kI(this.j,a);this.Ng()};lI.Ja=function(a){return!!a.ic()};lI.prototype.Ja=function(a){return lI.Ja(a)};lI.prototype.Fm=function(a){return!lI.Ja(a)};lI.b=function(a){return lI.Ja(a)?new lI(a):null};lI.prototype.J=function(){this.j.ia("playvideoat",this.yp,this);Tg(this.A);lI.G.J.call(this)};function mI(a,b){this.b=a;this.g=!!b}w(mI,Ih);
function nI(a,b,c){if(c)if(a.g)oI(b,c);else{var d;a.b&&(d=pI(a.b));d&&b.length?(d=[d,"/cache/videos?q=",b.join("&q=")].join(""),Hi(d,{format:"JSON",method:"GET",context:a,timeout:2E3,onSuccess:function(a,d){var h=0;d&&d.ids&&(h=d.ids.length);qI("search","success",{"num-requested":b.length,"num-cached":h});c(d)},onError:function(){qI("search","error",{"num-requested":b.length});c({})},kh:function(){qI("search","timeout",{"num-requested":b.length});rI("__notfound__");c({})}})):c({})}}
function sI(a,b,c){if(c)if(a.g)c({id:b,fmt_list:[{itag:18,lmt:14200992E5}]});else{var d;a.b&&(d=pI(a.b));d&&b?(d=[d,"cache/videos",b,"metadata"].join("/"),Hi(d,{format:"JSON",method:"GET",context:a,timeout:600,onSuccess:function(a,d){c(d);qI("meta","success",{v:b})},onError:function(){qI("meta","error",{v:b});c({})},kh:function(){qI("meta","timeout",{v:b});rI("__notfound__");c({})}})):c({})}}function qI(a,b,c){a={a:"spacecast",module:"cache",request:a,status:b};dc(a,c);NH(Wd(a))}
function oI(a,b){a.length?b({ids:a}):b({})}mI.prototype.J=function(){this.b=null;mI.G.J.call(this)};function tI(a){(this.b=a)&&rI("http://"+a)}w(tI,Ih);function pI(a){var b;(b=(b=qi("yt-spacecast-uri"))&&b.hasOwnProperty("uri")?b.uri:null)?"__notfound__"==b&&(b=null):b=a.b?"http://"+a.b:null;return b}tI.prototype.reset=function(){ri("yt-spacecast-uri")};function rI(a){var b=qi("yt-spacecast-uri");b||(b={});a?b.uri=a:delete b.uri;ni("yt-spacecast-uri",b)};var uI=p("yt.prefs.UserPrefs.prefs_")||{};ba("yt.prefs.UserPrefs.prefs_",uI,void 0);function vI(){XE.call(this)}w(vI,XE);f=vI.prototype;f.ld=function(a){var b=XE.prototype.ld.call(this,a);return b?b:a};f.Y=function(a,b){var c=vI.G.Y.call(this,a,b);return c?c:(c=vI.G.Y.call(this,a,"card-config"))&&(c=p(c))&&c[b]?c[b]:null};
f.show=function(a){var b=this.ld(a);if(b){O(b,Z(this,"active"));var c=wI(this,a,b);if(c){c.cardTargetNode=a;c.cardRootNode=b;xI(this,a,c);var d=Z(this,"card-visible"),e=this.Y(a,"card-delegate-show")&&this.Y(b,"card-action");this.Vf(b,"card-action",a);this.g=a;Dx(c);L(u(function(){e||Cx(c);yI(c);O(c,d)},this),10)}}};
function wI(a,b,c){var d=c||b,e=Z(a,"card");c=a.nd(d);var g=Mc(Z(a,"card")+yg(d));if(g)return a=H(Z(a,"card-body"),g),kd(a,c)||(ed(c),a.appendChild(c)),g;g=document.createElement("div");g.id=Z(a,"card")+yg(d);g.className=e;(d=a.Y(d,"card-class"))&&pg(g,d.split(/\s+/));d=document.createElement("div");d.className=Z(a,"card-border");b=a.Y(b,"orientation")||"horizontal";e=document.createElement("div");e.className="yt-uix-card-border-arrow yt-uix-card-border-arrow-"+b;var h=document.createElement("div");
h.className=Z(a,"card-body");a=document.createElement("div");a.className="yt-uix-card-body-arrow yt-uix-card-body-arrow-"+b;ed(c);h.appendChild(c);d.appendChild(a);d.appendChild(h);g.appendChild(e);g.appendChild(d);document.body.appendChild(g);return g}
function xI(a,b,c){var d=a.Y(b,"orientation")||"horizontal",e=a.Y(b,"position"),g=!!a.Y(b,"force-position"),h=a.Y(b,"position-fixed"),d="horizontal"==d,k="bottomright"==e||"bottomleft"==e,l="topright"==e||"bottomright"==e,q,r;l&&k?(r=7,q=4):l&&!k?(r=6,q=5):!l&&k?(r=5,q=6):(r=4,q=7);var t=Sf(document.body),e=Sf(b);t!=e&&(r^=2);var y;d?(e=b.offsetHeight/2-12,y=new F(-12,b.offsetHeight+6)):(e=b.offsetWidth/2-6,y=new F(b.offsetWidth+6,-12));h&&(Gx(c,"position","fixed"),y.y+=Tc(document).y);h=Zf(c);e=
Math.min(e,(d?h.height:h.width)-24-6);6>e&&(e=6,d?y.y+=12-b.offsetHeight/2:y.x+=12-b.offsetWidth/2);var D=null;g||(D=10);h=Z(a,"card-flip");a=Z(a,"card-reverse");Q(c,h,l);Q(c,a,k);D=QE(b,r,c,q,y,null,D);!g&&D&&(D&48&&(l=!l,r^=2,q^=2),D&192&&(k=!k,r^=1,q^=1),Q(c,h,l),Q(c,a,k),QE(b,r,c,q,y));t&&(b=ag(c),g=Rc(window),c.style.left="",c.style.right=g.width-b.left-b.width+"px");b=H("yt-uix-card-body-arrow",c);g=H("yt-uix-card-border-arrow",c);d=d?k?"top":"bottom":!t&&l||t&&!l?"left":"right";b.setAttribute("style",
"");g.setAttribute("style","");b.style[d]=e+"px";g.style[d]=e+"px";k=H("yt-uix-card-arrow",c);l=H("yt-uix-card-arrow-background",c);k&&l&&(c="right"==d?Zf(c).width-e-13:e+11,e=c/Math.sqrt(2),k.style.left=c+"px",k.style.marginLeft="1px",l.style.marginLeft=-e+"px",l.style.marginTop=e+"px")}
f.hide=function(a){if(a=this.ld(a)){var b=Mc(Z(this,"card")+yg(a));b&&(P(a,Z(this,"active")),P(b,Z(this,"card-visible")),Dx(b),this.g=null,b.cardTargetNode=null,b.cardRootNode=null,b.cardMask&&(ed(b.cardMask),b.cardMask=null))}};function zI(a){a.g&&a.hide(a.g)}f.qB=function(a,b){var c=this.ld(a);if(c){if(b){var d=this.nd(c);if(!d)return;d.innerHTML=b}og(c,Z(this,"active"))&&(c=wI(this,a,c),xI(this,a,c),Cx(c),yI(c))}};
f.nd=function(a){var b=a.cardContentNode;if(!b){var c=Z(this,"content"),d=Z(this,"card-content");(b=(b=this.Y(a,"card-id"))?Mc(b):H(c,a))||(b=document.createElement("div"));var e=b;P(e,c);O(e,d);a.cardContentNode=b}return b};function yI(a){var b=a.cardMask;b||(b=document.createElement("iframe"),b.src='javascript:""',pg(b,["yt-uix-card-iframe-mask"]),a.cardMask=b);document.body.appendChild(b);b.style.top=a.offsetTop+"px";b.style.left=a.offsetLeft+"px";b.style.height=a.clientHeight+"px"};function AI(){XE.call(this);this.b={};this.j={}}w(AI,vI);da(AI);f=AI.prototype;f.Kd="clickcard";f.register=function(){ZE(this,"click",this.iE,"target");ZE(this,"click",this.hE,"close")};f.iE=function(a,b,c){b=sd(c.target,"button");b&&b.disabled||(a=(b=this.Y(a,"card-target"))?Mc(b):a,b=this.ld(a),this.Y(b,"disabled")||(og(b,Z(this,"active"))?(this.hide(a),P(b,Z(this,"active"))):(this.show(a),O(b,Z(this,"active")))))};
f.show=function(a){AI.G.show.call(this,a);var b=this.ld(a);if(!ug(b,"click-outside-persists")){var c=ma(a);if(this.b[c])return;b=R(document,"click",u(this.pB,this,a));this.b[c]=b}a=R(window,"resize",u(this.qB,this,a,void 0));this.j[c]=a};f.hide=function(a){AI.G.hide.call(this,a);a=ma(a);var b=this.b[a];b&&(Pg(b),this.b[a]=null);if(b=this.j[a])Pg(b),this.j[a]=null};f.pB=function(a,b){ud(b.target,"yt-uix"+(this.Kd?"-"+this.Kd:"")+"-card")||this.hide(a)};f.hE=function(a){(a=ud(a,Z(this,"card")))&&this.hide(a.cardTargetNode)};function BI(){XE.call(this)}w(BI,vI);da(BI);f=BI.prototype;f.Kd="hovercard";f.register=function(){ZE(this,"mouseenter",this.XD,"target");ZE(this,"mouseleave",this.ZD,"target");ZE(this,"mouseenter",this.YD,"card");ZE(this,"mouseleave",this.$D,"card")};
f.XD=function(a){if(CI!=a){CI&&(this.hide(CI),CI=null);var b=u(this.show,this,a),c=parseInt(this.Y(a,"delay-show"),10),b=L(b,-1<c?c:200);sg(a,"card-timer",b.toString());CI=a;a.alt&&(sg(a,"card-alt",a.alt),a.alt="");a.title&&(sg(a,"card-title",a.title),a.title="")}};
f.ZD=function(a){var b=parseInt(this.Y(a,"card-timer"),10);N(b);this.ld(a).isCardHidable=!0;b=parseInt(this.Y(a,"delay-hide"),10);b=-1<b?b:200;L(u(this.qD,this,a),b);if(b=this.Y(a,"card-alt"))a.alt=b;if(b=this.Y(a,"card-title"))a.title=b};f.qD=function(a){this.ld(a).isCardHidable&&(this.hide(a),CI=null)};f.YD=function(a){a&&(a.cardRootNode.isCardHidable=!1)};f.$D=function(a){a&&this.hide(a.cardTargetNode)};var CI=null;function DI(a,b,c){this.Hc=a;this.o=!1;this.g=new Nh;this.A=Qg(this.Hc,"click",u(this.vA,this),"yt-dialog-dismiss");EI(this);this.j=b;this.k=c}var FI={LOADING:"loading",qE:"content",qK:"working"};function GI(a,b){a.fa()||a.g.subscribe("post-all",b)}function EI(a){a=H("yt-dialog-fg-content",a.Hc);var b=[];Nb(FI,function(a){b.push("yt-dialog-show-"+a)});qg(a,b);O(a,"yt-dialog-show-content")}f=DI.prototype;
f.show=function(){if(!this.fa()){document.activeElement&&document.activeElement!=document.body&&document.activeElement.blur();this.b||(this.b=Mc("yt-dialog-bg"),this.b||(this.b=Zc("div"),this.b.id="yt-dialog-bg",this.b.className="yt-dialog-bg",document.body.appendChild(this.b)));var a;t:{var b=window,c=b.document;a=0;if(c){a=c.body;var d=c.documentElement;if(!a&&!d){a=0;break t}b=Rc(b).height;if(Sc(c)&&d.scrollHeight)a=d.scrollHeight!=b?d.scrollHeight:d.offsetHeight;else{var c=d.scrollHeight,e=d.offsetHeight;
d.clientHeight!=e&&(c=a.scrollHeight,e=a.offsetHeight);a=c>b?c>e?c:e:c<e?c:e}}}this.b.style.height=a+"px";Cx(this.b);Eg(this.Hc);a=HI(this);II(a);this.j||R(document,"keydown",u(this.hq,this));a=this.Hc;d=Th("player-added",this.jA,this);sg(a,"player-ready-pubsub-key",d);this.k&&R(document,"click",u(this.iq,this));Cx(this.Hc);O(document.body,"yt-dialog-active");zI(AI.getInstance());zI(BI.getInstance())}};function JI(){var a=Nc("yt-dialog");return jb(a,function(a){return Bx(a)})}f.jA=function(){Eg(this.Hc)};
function HI(a){var b=Oc("iframe",null,a.Hc);z(b,function(a){var b=ug(a,"onload");b&&(b=p(b))&&R(a,"load",b);if(b=ug(a,"src"))a.src=b},a);return vb(b)}function II(a){z(document.getElementsByTagName("iframe"),function(b){-1==fb(a,b)&&O(b,"iframe-hid")})}function KI(){var a=Nc("iframe-hid");z(a,function(a){P(a,"iframe-hid")})}f.vA=function(a){a=a.currentTarget;a.disabled||(a=ug(a,"action")||"",LI(this,a))};
function LI(a,b){if(!a.fa()){a.g.H("pre-all");a.g.H("pre-"+b);Dx(a.Hc);zI(AI.getInstance());zI(BI.getInstance());JI()||(Dx(a.b),P(document.body,"yt-dialog-active"),Fg(),KI());a.j||Sg(document,"keydown",u(a.hq,a));a.k&&Sg(document,"click",u(a.iq,a));var c=a.Hc;if(c){var d=ug(c,"player-ready-pubsub-key");d&&(Vh(d),vg(c,"player-ready-pubsub-key"))}a.g.H("post-all");Wh("yt-ui-dialog-hide-complete",a);"cancel"==b&&Wh("yt-ui-dialog-cancelled",a);a.g&&a.g.H("post-"+b)}}
f.hq=function(a){L(u(function(){27==a.keyCode&&LI(this,"cancel")},this),0)};f.iq=function(a){"yt-dialog-base"==a.target.className&&LI(this,"cancel")};f.fa=function(){return this.o};f.dispose=function(){Bx(this.Hc)&&LI(this,"dispose");Pg(this.A);this.g.dispose();this.g=null;this.o=!0};ba("yt.ui.Dialog",DI,void 0);function MI(){XE.call(this);this.b=[];this.g={}}w(MI,XE);da(MI);f=MI.prototype;f.Kd="button";f.Wf=null;f.register=function(){ZE(this,"click",this.aE);ZE(this,"keydown",this.VD);ZE(this,"keypress",this.WD);YE(this,"page-scroll",this.UD)};f.aE=function(a){a&&!a.disabled&&(NI(this,a),this.click(a))};
f.VD=function(a,b,c){if(!(c.altKey||c.ctrlKey||c.shiftKey)&&(b=OI(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=nd(b,d);if(e){e=e.tagName.toLowerCase();var g;"ul"==e?g=this.kE:"table"==e&&(g=this.jE);g&&PI(this,a,b,c,u(g,this))}}};f.UD=function(){var a=this.g;if(0!=Qb(a))for(var b in a){var c=a[b],d=ud(c.activeButtonNode||c.parentNode,Z(this));if(void 0==d||void 0==c)break;QI(this,d,c,!0)}};
function PI(a,b,c,d,e){var g=Bx(c),h=9==d.keyCode;h||32==d.keyCode||13==d.keyCode?(d=RI(a,c))?(b=hd(d),"a"==b.tagName.toLowerCase()?window.location=b.href:Ug(b,"click")):h&&SI(a,b):g?27==d.keyCode?(RI(a,c),SI(a,b)):e(b,c,d):(a=og(b,Z(a,"reverse"))?38:40,d.keyCode==a&&(Ug(b,"click"),d.preventDefault()))}f.WD=function(a,b,c){c.altKey||c.ctrlKey||c.shiftKey||(a=OI(this,a),Bx(a)&&c.preventDefault())};function RI(a,b){var c=Z(a,"menu-item-highlight"),d=H(c,b);d&&P(d,c);return d}
function TI(a,b,c){O(c,Z(a,"menu-item-highlight"));b.setAttribute("aria-activedescendant",c.getAttribute("id"))}f.jE=function(a,b,c){var d=RI(this,b);b=Bg("table",b);var e=Bg("tr",b),e=Oc("td",null,e).length;b=Oc("td",null,b);d=UI(d,b,e,c);-1!=d&&(TI(this,a,b[d]),c.preventDefault())};f.kE=function(a,b,c){if(40==c.keyCode||38==c.keyCode){var d=RI(this,b);b=hb(Oc("li",null,b),Bx);d=UI(d,b,1,c);TI(this,a,b[d]);c.preventDefault()}};
function UI(a,b,c,d){var e=b.length;a=fb(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-=1):38==d.keyCode?(a<c&&(a+=e),a-=c):40==d.keyCode&&(a>=e-c&&(a-=e),a+=c);return a}function VI(a,b){var c=b.iframeMask;c||(c=document.createElement("iframe"),c.src='javascript:""',c.className=Z(a,"menu-mask"),b.iframeMask=c);return c}
function QI(a,b,c,d){var e=ud(b,Z(a,"group")),g=!!a.Y(b,"button-menu-ignore-group"),e=e&&!g?e:b,g=5,h=4,k=ag(b);if(og(b,Z(a,"reverse"))){g=4;h=5;k=k.top+"px";try{c.style.maxHeight=k}catch(l){}}og(b,"flip")&&(og(b,Z(a,"reverse"))?(g=6,h=7):(g=7,h=6));var q;a.Y(b,"button-has-sibling-menu")?q=Pf(e):a.Y(b,"button-menu-root-container")&&(q=WI(a,b));qc&&!Bc("8")&&(q=null);var r;q&&(r=ag(q),r=new xf(-r.top,r.left,r.top,-r.left));q=new F(0,1);og(b,Z(a,"center-menu"))&&(q.x-=Math.round((Zf(c).width-Zf(b).width)/
2));d&&(q.y+=Tc(document).y);if(a=VI(a,b))b=Zf(c),a.style.width=b.width+"px",a.style.height=b.height+"px",QE(e,g,a,h,q,r,65),d&&Gx(a,"position","fixed");QE(e,g,c,h,q,r,65)}function WI(a,b){if(a.Y(b,"button-menu-root-container")){var c=a.Y(b,"button-menu-root-container");return ud(b,c)}return document.body}
f.lt=function(a){if(a){var b=OI(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;this.Y(a,"button-has-sibling-menu")?c=a.parentNode:c=WI(this,a);c.appendChild(b);b.style.minWidth=a.offsetWidth-2+"px";var d=VI(this,a);d&&c.appendChild(d);(c=!!this.Y(a,"button-menu-fixed"))&&(this.g[yg(a).toString()]=b);QI(this,a,b,c);Xh("yt-uix-button-menu-before-show",a,b);Cx(b);this.Vf(a,
"button-menu-action",!0);O(a,Z(this,"active"));b=u(this.Ar,this,a,!1);c=u(this.Ar,this,a,!0);d=u(this.wA,this,a,void 0);this.Wf&&OI(this,this.Wf)==OI(this,a)||XI(this);Wh("yt-uix-button-menu-show",a);Pg(this.b);this.b=[R(document,"click",c),R(document,"contextmenu",b),R(window,"resize",d)];this.Wf=a}}};
function SI(a,b){if(b){var c=OI(a,b);if(c){a.Wf=null;b.setAttribute("aria-pressed","false");b.setAttribute("aria-expanded","false");b.removeAttribute("aria-activedescendant");Dx(c);a.Vf(b,"button-menu-action",!1);var d=VI(a,b),e=yg(c).toString();delete a.g[e];L(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=ud(b,Z(a,"group")),g=[Z(a,"active")];
e&&g.push(Z(a,"group-active"));qg(b,g);Wh("yt-uix-button-menu-hide",b);Pg(a.b);a.b.length=0}}f.wA=function(a,b){var c=OI(this,a);if(c){b&&(c.innerHTML=b);var d=!!this.Y(a,"button-menu-fixed");QI(this,a,c,d)}};
f.Ar=function(a,b,c){c=c||window.event;c=c.target||c.srcElement;3==c.nodeType&&(c=c.parentNode);var d=ud(c,Z(this));if(d){var d=OI(this,d),e=OI(this,a);if(d==e)return}var d=ud(c,Z(this,"menu")),e=d==OI(this,a),g=og(c,Z(this,"menu-item")),h=og(c,Z(this,"menu-close"));if(!d||e&&(g||h))if(SI(this,a),d&&b&&this.Y(a,"button-menu-indicate-selected")){if(a=H(Z(this,"content"),a))Hc&&"innerText"in c?b=c.innerText.replace(/(\r\n|\r|\n)/g,"\n"):(b=[],rd(c,b,!0),b=b.join("")),b=b.replace(/ \xAD /g," ").replace(/\xAD/g,
""),b=b.replace(/\u200B/g,""),Hc||(b=b.replace(/ +/g," "))," "!=b&&(b=b.replace(/^\s*/,"")),md(a,b);YI(this,d,c)}};function YI(a,b,c){var d=Z(a,"menu-item-selected");a=Nc(d,b);z(a,function(a){P(a,d)});O(c.parentNode,d)}function OI(a,b){if(!b.widgetMenu){var c=a.Y(b,"button-menu-id"),c=c&&Mc(c),d=Z(a,"menu");c?pg(c,[d,Z(a,"menu-external")]):c=H(d,b);b.widgetMenu=c}return b.widgetMenu}
function NI(a,b){if(a.Y(b,"button-toggle")){var c=ud(b,Z(a,"group"));if(c&&a.Y(c,"button-toggle-group")){var d=a.Y(c,"button-toggle-group"),c=Nc(Z(a),c),e=Z(a,"toggled"),g=og(b,e);z(c,function(a){a!=b||"optional"==d&&g?P(a,e):O(b,e)})}else rg(b,Z(a,"toggled"))}}f.click=function(a){if(OI(this,a)){var b=OI(this,a),c=ud(b.activeButtonNode||b.parentNode,Z(this));c&&c!=a?(SI(this,c),L(u(this.lt,this,a),1)):Bx(b)?SI(this,a):this.lt(a);a.focus()}this.Vf(a,"button-action")};
function XI(a){a.Wf&&SI(a,a.Wf)};function ZI(){XE.call(this)}w(ZI,XE);da(ZI);f=ZI.prototype;f.Qc=null;f.qj=null;f.Kd="overlay";f.register=function(){ZE(this,"click",this.tt,"target");ZE(this,"click",this.hide,"close");$I(this)};
f.tt=function(a){if(!this.Qc||!Bx(this.Qc.Hc)){var b=this.ld(a);a=aJ(b,a);b||(b=a?a.overlayParentNode:null);if(b&&a){var c=!!this.Y(b,"disable-shortcuts")||!1;this.Qc=new DI(a,c);this.qj=b;var d=H("yt-dialog-fg",a);if(d){var e=this.Y(b,"overlay-class")||"",g=this.Y(b,"overlay-style")||"default",h=this.Y(b,"overlay-shape")||"default",e=e?e.split(" "):[];e.push(Z(this,g));e.push(Z(this,h));pg(d,e)}this.Qc.show();$I(this);c||(c=u(function(a){og(a.target,"yt-dialog-base")&&bJ(this)},this),a=H("yt-dialog-base",
a),this.b=R(a,"click",c));this.Vf(b,"overlay-shown");zI(AI.getInstance());XI(MI.getInstance())}}};function $I(a){a.g||(a.g=Th("yt-uix-overlay-hide",cJ));a.Qc&&GI(a.Qc,function(){var a=ZI.getInstance();a.qj=null;a.Qc.dispose();a.Qc=null})}function bJ(a){if(a.Qc){var b=a.qj;LI(a.Qc,"overlayhide");a.Vf(b,"overlay-hidden");a.qj=null;a.b&&(Pg(a.b),a.b=null);a.Qc=null}}
function aJ(a,b){var c;if(a)if(c=H("yt-dialog",a)){var d=Mc("body-container");d&&(d.appendChild(c),a.overlayContentNode=c,c.overlayParentNode=a)}else c=a.overlayContentNode;else b&&(c=ud(b,"yt-dialog"));return c}f.nd=function(a){return H("yt-dialog-content",a.overlayContentNode||a)};f.hide=function(){Wh("yt-uix-overlay-hide")};function cJ(){bJ(ZI.getInstance())}f.show=function(a){this.tt(a)};function dJ(a){this.g=a;this.b=[];this.b.push(Th("yt-uix-load-more-success",this.j,this))}w(dJ,Ih);var eJ=!1;dJ.prototype.j=function(){var a={},b=ub(vb(Nc("spacecast-item")),vb(Nc("yt-lockup-video")));z(b,function(b){var c=b.getAttributeNode("data-context-item-id");if(c&&c.value){var c=c.value,g=a[c];g||(g=[],a[c]=g);g.push(b)}});var b=Tb(a),c=v();nI(this.g,b,u(this.k,this,a,c))};
dJ.prototype.k=function(a,b,c){b=v()-b;var d=0;c&&c.ids&&(fJ(),z(c.ids,function(b){z(a[b],function(a){O(a,"spacecast-cached")})}),d=c.ids.length);NH(Wd({a:"spacecast",module:"highlight",count:Tb(a).length,cached:d,"cache-latency":b}));d&&gJ()};function gJ(){if(Se("INIT_SPACECAST_PROMO")&&!eJ){var a=H("spacecast-promo-overlay");a&&(eJ=!0,ZI.getInstance().show(a))}}function fJ(){var a=p("yt.player.getPlayerByElement");a&&a("player-api")}
dJ.prototype.J=function(){this.g=null;this.b.length&&(Vh(this.b),this.b=[]);dJ.G.J.call(this)};function hJ(){this.j=this.g=this.b=null}w(hJ,Ih);da(hJ);hJ.prototype.init=function(a){this.b||(this.b=new tI(a||null),this.g=new mI(this.b),this.j=new dJ(this.g))};hJ.prototype.J=function(){this.k&&(this.j.dispose(),this.j=null);this.g&&(this.g.dispose(),this.g=null);this.b&&(this.b.dispose(),this.b=null);hJ.G.J.call(this);delete hJ.Db};function iJ(a){hu.call(this,a);this.hc=this.ua="spacecast";this.g=null}w(iJ,hu);f=iJ.prototype;f.Ja=function(){return!!this.b.getVideoData().Ra};function jJ(a){return a.getVideoData().Ra?new iJ(a):null}f.create=function(){iJ.G.create.call(this);var a=this.b.getVideoData().Ra,b=hJ.getInstance();b&&b.init(a);this.g=b;this.load()};f.destroy=function(){iJ.G.destroy.call(this);this.g=null};
f.load=function(){iJ.G.load.call(this);var a=this.b.getVideoData().videoId,b=this.g.g,c=v(),c=u(this.oA,this,a,c),d=window.spacecastMeta;d&&d.id&&d.id==a?(c(d),qI("meta","prefetch",{v:a})):sI(b,a,c)};f.oA=function(a,b,c){b=v()-b;var d=0;if(c){var e=c.id;c=c.fmt_list;if(e&&c){var g={};z(c,function(a){a.itag&&(g[a.itag.toString()]=!0)});if(c=kJ(this,pI(this.g.b),e,g))d=this.b.getVideoData(),d.aa=c,Ur(d),this.b.ep("auto"),d=1}}ju(this);NH(Wd({a:"spacecast",module:"player",v:a,docid:a,cached:d,"cache-latency":b}))};
function kJ(a,b,c,d){if(!b)return null;a=a.b.getVideoData();a=Nr(a.te);a=hb(a,function(a){return!!d[a.itag]});if(!a.length)return null;var e=yi(b)||"",g=Number(Od(b)[4]||null)||null;return A(a,function(a){var b=K(K(ee(de(ce(ye(a.url),"http"),e),g),"orig_host",zi(a.url)),"scid",c);a.url=b.toString();return Wd(a)}).join(",")};function lJ(){var a=fc,b;if(b=dq())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");
bd(document.documentElement,c);c=Mc("NvImageDetectionFFID");try{if(null!=c){b=27527<=c.NvGetDriverVersion();break t}}catch(d){}}b=!1}return b||!(!a||-1==a.indexOf("Sony"))};function mJ(a){HA.call(this);this.b="3D";this.element=new MA(a,[Y(0,"YTP_ON"),Y(0,"YTP_OFF")]);S(this,this.element);PA(this.element,2300);this.priority=10;this.C=!0;OA(this.element,1)}w(mJ,HA);mJ.prototype.M=function(){this.element.wb("select")};mJ.prototype.getSelected=function(){return this.element.getSelected()};function nJ(a){var b=["div",["ytp-dialog","html5-stop-propagation"],["div","ytp-dialog-title",Y(0,"YTP_THREED_HTML5_WARNING_DIALOG_TITLE")],["div","ytp-dialog-body","{{content}}"],["div","ytp-dialog-buttons","{{buttons}}"]];X.call(this,b);b=Y(0,"YTP_THREED_HTML5_WARNING_DIALOG_CHANGE_MODE");this.b=new IA(a,"ytp-dialog-button",b);S(this,this.b);this.b.oa(b);b=Y(0,"YTP_CLOSE");this.g=new IA(a,"ytp-dialog-button",b);this.g.oa(b);S(this,this.g);this.template.update({content:new wE(Y(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.b,this.g]})}w(nJ,mC);function oJ(a){hu.call(this,a);Xe({YTP_THREED_HTML5_WARNING_DIALOG_TITLE:"No HTML5 3D hardware detected",YTP_THREED_HTML5_WARNING_DIALOG_MESSAGE:"Get $BEGIN_LINKhelp setting up HTML5 3D$END_LINK, or change 3D viewing modes.",YTP_THREED_HTML5_WARNING_DIALOG_CHANGE_MODE:"Change 3D viewing mode"});this.g=new mJ(vu(this));S(this,this.g);OA(this.g.element,1);this.g.listen("change",this.Jz,this);this.g.listen("select",this.Kz,this);this.j=new nJ(vu(this));S(this,this.j);this.j.b.listen("click",this.Lq,
this);this.j.g.listen("click",this.pg,this)}w(oJ,hu);f=oJ.prototype;f.qn="threeDModuleData";f.ua="threed";f.hc="threed";f.create=function(){pJ(this.b.app,void 0);wu(this,this.g);oJ.G.create.call(this)};f.destroy=function(){xu(this,this.g);pJ(this.b.app,!0);oJ.G.destroy.call(this)};function qJ(a){return oJ.prototype.Ja(a)?new oJ(a):null}f.Ja=function(a){a=a.getVideoData();return!!a.xa||!!a.Pr};
function rJ(a,b){if(a.b.getVideoData().Kf!=b)if(lu(a),lJ()){var c=a.b.app,d=Ms(c);d.b.g&&d.b.g.b||(d.b.Kf=!d.b.Kf,Ur(d.b),sJ(d,"r"));pJ(c)}else b&&(lu(a,a.j),OA(a.g.element,1),yu(a))}f.Lq=function(){mu(this,"/select_3d_mode?video_id="+this.b.getVideoData().videoId)};f.Jz=function(){0==this.g.getSelected()?rJ(this,!0):rJ(this,!1)};f.Kz=function(){yu(this);this.Lq()};function tJ(a){hu.call(this,a);Xe({YTP_YPC_START_RENTAL_HEADER:"Would you like to start this rental?",YTP_YPC_START_RENTAL_BUTTON:"Start rental period"});this.g=new zv(["div","ytp-ypc-clickwrap-overlay",["h2","header",Ye("YTP_YPC_START_RENTAL_HEADER")],["div","description",this.b.getVideoData().k.ypc_clickwrap_message],["button","confirm-button",Ye("YTP_YPC_START_RENTAL_BUTTON")]]);Oy(this.g.K());qt(this.b,this.g.K());S(this,this.g);this.j=this.g.b["confirm-button"]}w(tJ,hu);f=tJ.prototype;f.ua="ypc_clickwrap";
f.hc="ypc-clickwrap";f.Ja=function(){return bs(this.b.getVideoData(),"ypc_clickwrap_module")};function uJ(a){return bs(a.getVideoData(),"ypc_clickwrap_module")?new tJ(a):null}f.create=function(){tJ.G.create.call(this);this.load()};f.load=function(){tJ.G.load.call(this);Ny(this.g.K());R(this.j,"click",u(this.JB,this))};f.unload=function(){Oy(this.g.K());Tg(this.j);tJ.G.unload.call(this)};f.JB=function(){ju(this);this.destroy()};function vJ(a){a=a.k;this.o=a.ypc_offer_button_text;this.description=a.ypc_offer_description;this.B=a.ypc_offer_headline;this.A=a.ypc_full_video_message;this.k=a.ypc_offer_id;this.b=a.ypc_buy_url;this.g=a.ypc_item_thumbnail;this.title=a.ypc_item_title;this.j=a.ypc_item_url;this.videoId=a.ypc_vid};function wJ(){X.call(this,["div",["ytp-drawer","html5-stop-propagation"],["div","ytp-drawer-content","{{content}}"],["a","ytp-drawer-close-button"],["a","ytp-drawer-open-button"]]);this.g=this.template.b["ytp-drawer-close-button"];Qy(this,this.g,"click",this.hide);this.b=this.template.b["ytp-drawer-open-button"];Qy(this,this.b,"click",this.show);this.oa(null);this.hide()}w(wJ,X);wJ.prototype.hide=function(){O(this.element,"ytp-drawer-closed")};
wJ.prototype.oa=function(a){a?(wJ.G.oa.call(this,a),Ny(this.element)):Oy(this.element)};wJ.prototype.show=function(){L(ra(P,this.element,"ytp-drawer-closed"),0)};wJ.prototype.J=function(){Tg(this.g);Tg(this.b);this.b=this.g=null;wJ.G.J.call(this)};function xJ(a,b){aj.call(this);this.b=new wJ;S(this,this.b);this.g=document.createElement("div");pg(this.g,["html5-stop-propagation","html5-ypc-endscreen"]);this.k=document.createElement("div");O(this.k,"html5-ypc-overlay");this.j=new zv(["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}}"]]);
S(this,this.j);this.o=this.j.b["html5-ypc-purchase"];R(this.o,"click",u(this.A,this));md(this.k,b.A);var c=b.title;b.j&&(c=["a",{href:b.j,target:"blank_"},b.title]);var d="";b.g&&(d=["img",{src:b.g}]);this.j.update({heading:b.B,title:c,thumbnail_element:d,description:b.description,button_label:b.o});this.X(a)}w(xJ,aj);xJ.prototype.J=function(){xJ.G.J.call(this);this.o&&Tg(this.o);ed(this.g);ed(this.k);this.k=this.g=this.b=null};xJ.prototype.X=function(a){this.b.X(a);this.b.oa(this.j.K());a.appendChild(this.g)};
function yJ(a){var b=a.j.K();a.g.appendChild(b);a.b.oa(null);Ny(a.g)}xJ.prototype.A=function(){this.H("ypcContentRequest")};function zJ(a){hu.call(this,a);this.j=this.g=null;this.k=NaN}w(zJ,hu);f=zJ.prototype;f.ua="ypc";f.hc="ypc";f.Ja=function(){return bs(this.b.getVideoData(),"ypc_module")};function AJ(a){return bs(a.getVideoData(),"ypc_module")?new zJ(a):null}f.create=function(){zJ.G.create.call(this);this.g=new vJ(this.b.getVideoData());L(u(this.load,this),0)};f.destroy=function(){zJ.G.destroy.call(this);this.g=null};
f.load=function(){if(this.g){zJ.G.load.call(this);var a=this.b.getVideoData();if(this.g.videoId&&!a.za)this.b.bq({video_id:this.g.videoId,ypc_preview:1});else{var b=H("html5-video-container",rt(this.b));this.j=new xJ(b,this.g);this.j.subscribe("ypcContentRequest",this.Ax,this);this.g.videoId&&dd(this.b.app.g.F,this.j.k,0);IH(this.b.R())&&(b=new Yt(2147483647,2147483647,{priority:2}),this.Gf(b));this.j.b.show();N(this.k);this.k=L(u(function(){this.j.b.hide()},this),1E4);this.g.videoId?a.za&&ju(this):
yJ(this.j)}}};f.unload=function(){iu(this);Mh(this.j);this.j=null;zJ.G.unload.call(this)};f.Fc=function(a){zJ.G.Fc.call(this,a);yJ(this.j)};f.kd=function(a){zJ.G.kd.call(this,a);a=this.j;Oy(a.g);a.b.oa(a.j.K())};f.Ax=function(){if(this.g.b)"embedded"==this.b.R().$?UH(this.g.b):window.location=Yd(this.g.b,{})+"";else if(this.g.k){var a=p("yt.www.watch.player.handleEndPreview");a&&(this.b.isFullscreen()&&yz(this.b.app),a(this.g.k))}};function BJ(a,b,c){this.o=R(a,"click",u(this.F,this));this.A=R(a,"dblclick",u(this.C,this));this.D=b;this.j=c;this.g=new Xv(this.B,200,this);S(this,this.g);this.b=!0;this.k=null}w(BJ,Ih);BJ.prototype.F=function(a){0!=this.g.ta?(this.g.stop(),this.j(a),this.b=!1):(this.k=a,this.g.start(),this.b=!0)};BJ.prototype.C=function(a){this.b&&this.j(a)};BJ.prototype.B=function(){this.D(this.k);this.b=!0};BJ.prototype.J=function(){Pg(this.o);Pg(this.A);BJ.G.J.call(this)};var CJ=new G(1294,630),DJ=new G(1320,870),EJ=new G(1280,720),FJ=new G(854,480),GJ=new G(640,360);function HJ(a){var b;b=nh?new G(window.innerWidth,window.innerHeight):Rc(window);return a.mb?b:a.qd?b.width>=DJ.width&&b.height>=DJ.height?EJ.clone():FJ.clone():b.width>=CJ.width&&b.height>=CJ.height?FJ.clone():GJ.clone()};function IJ(a){X.call(this,["div",["ytp-dialog","html5-stop-propagation"],["div","ytp-dialog-body","{{content}}"],["div","ytp-dialog-buttons","{{buttons}}"]]);this.b=new X(["input","html5-modal-panel-input",{type:"text",readonly:"readonly"}]);S(this,this.b);tc&&this.b.K().removeAttribute("readonly");this.b.listen("click",this.j,this);var b=Y(0,"YTP_CLOSE");this.g=new IA(a,"ytp-dialog-button",b);this.g.oa(b);S(this,this.g);this.template.update({content:this.b,buttons:this.g});this.listen("contextmenu",
this.k)}w(IJ,mC);IJ.prototype.k=function(a){a.stopPropagation()};IJ.prototype.j=function(){this.b.K().select()};function JJ(a,b,c){X.call(this,["ul",["html5-context-menu","yt-uix-button-menu"],["li","",["span",["yt-uix-button-menu-item","html5-context-menu-copy-video-url"],Y(0,"YTP_GET_VIDEO_URL")]],["li","",["span",["yt-uix-button-menu-item","html5-context-menu-copy-video-url-at-current-time"],Y(0,"YTP_GET_VIDEO_URL_AT_TIME")]],["li","",["span",["yt-uix-button-menu-item","html5-context-menu-copy-embed-html"],Y(0,"YTP_GET_EMBED")]],["li","",["span",["yt-uix-button-menu-item","html5-context-menu-report-playback-issue"],
Y(0,"YTP_REPORT_ISSUE")]],["li","",["span",["yt-uix-button-menu-item","html5-context-menu-copy-debug-info"],Y(0,"YTP_GET_DEBUG_INFO")]],["li","",["span",["yt-uix-button-menu-item","html5-context-menu-show-video-info"],Y(0,"YTP_SHOW_VIDEO_INFO")]],["li","",["a",["yt-uix-button-menu-item","html5-context-menu-link"],{target:"_blank",href:"/html5"},Y(0,"YTP_HTML5_CONTEXT_MENU_LINK")]]]);this.W=a;this.W.subscribe("internalvideodatachange",this.yq,this);this.j=new Vv(this);this.j.listen(b,"contextmenu",
this.oz);this.b=new Vv(this);this.g=new IJ(c);S(this,this.g);this.g.g.listen("click",this.nz,this);a={gz:this.pz,hz:this.qz,iz:u(this.Fq,this,!1),jz:u(this.Fq,this,!0),lz:this.uz,mz:this.vz,kz:this.rz};for(var d in a)KJ(this,d,a[d]);this.hide()}w(JJ,X);f=JJ.prototype;f.nz=function(){this.W.g.Rg()};function LJ(a,b){var c=a.g;c.b.K().value=b;c.b.K().focus();L(u(c.j,c),100);a.W.g.Rg(a.g)}
function KJ(a,b,c){a.j.listen(a.template.b[Iv[b]],"click",function(a){a.stopImmediatePropagation();a.preventDefault();c.call(this,a);this.hide();a=b.replace("CONTEXT_MENU_","").toLowerCase();UG(this.W,"contextmenu."+a)})}f.yq=function(a,b){Ax(this.template.b["html5-context-menu-copy-embed-html"],b.gq)};f.Fq=function(a){LJ(this,Ts(this.W,a))};
f.qz=function(){var a=Se("EMBED_HTML_TEMPLATE"),b=Se("EMBED_HTML_URL"),c=this.W.g.Vc(),d=this.W.getVideoData().videoId,b=b.replace(/__videoid__/g,d),a=a.replace(/__url__/g,Da(b)),a=a.replace(/__width__/g,c.width),a=a.replace(/__height__/g,c.height);LJ(this,a)};f.rz=function(a){MJ(this.W,a.target.getAttribute("href"))};
f.uz=function(){var a=this.W.getVideoData(),b=this.W.R(),c=this.W.g,d=c.Vc(),c=WD(c),d={cr:b.U,csipt:b.aa,ec:"108",feature:b.B,h:c.height,hl:b.A,playerh:d.height,playerw:d.width,ptk:a.L,referrer:b.D,screenh:window.screen.height,screenw:window.screen.width,sdetail:a.gb,sourceid:a.ez,vid:b.la,vq:b.vi,w:c.width};sa(d,this.W.ng());(c=Ms(this.W))&&sa(d,c.getDebugInfo(!0));d.videoId&&(d.v=d.videoId,delete d.videoId);b.Pb&&(d.mobile="1");this.W.Zh("streamingerror",d);d=!0;"detailpage"==b.$&&(d=p("yt.player.exports.feedbackStart")("59",
{html5:!0,player:!0}));d&&(this.W.pauseVideo(),window.open(NJ(b,a)))};f.pz=function(){LJ(this,Us(this.W,!0))};f.vz=function(){ct(this.W.g)};f.oz=function(a){a.preventDefault();var b=Jg(a);a=Kg(a);var c=Qf(document.body);SE(new F(b,a),this.element,0,null,c,5);this.show()};f.HB=function(a){!1===a.Rc.returnValue||this.hide()};f.show=function(){this.P||(this.b.removeAll(),this.b.listen(window,"blur",this.hide),this.b.listen(document,"click",this.IB),this.b.listen(document,"contextmenu",this.HB),JJ.G.show.call(this))};
f.IB=function(a){2==a.button||a.target&&kd(this.element,a.target)||this.hide()};f.hide=function(){JJ.G.hide.call(this);this.b.removeAll()};f.J=function(){this.j.removeAll();this.b.removeAll();this.W.ia("internalvideodatachange",this.yq,this);this.W=null;JJ.G.J.call(this)};function OJ(a,b){eI.call(this,a,b.R());this.W=b;this.D=2;this.I=this.C=!1;this.k.g.listen("click",this.oy,this);this.k.b.listen("click",this.ny,this);this.W.subscribe("presentingplayerstatechange",this.Pd,this)}w(OJ,eI);f=OJ.prototype;f.update=function(a){OJ.G.update.call(this,a);PJ(this,a.dm);a&&a.Fo&&!this.W.o?(a=this.k,a.b.X(a.element),a.g.X(a.element)):(a=this.k,a.g.cd(),a.b.cd())};f.ni=function(a){var b=og(this.element,"show-share");this.H("share-click");b||OJ.G.ni.call(this,a)};
f.Nk=function(a){this.H("title-click",a)};f.Dk=function(){var a=og(this.element,"show-more-info");this.H("info-click");if(a)this.I&&this.W.Md();else{OJ.G.Dk.call(this);var b=this.W.getPlayerState();this.I=W(b,8)&&!W(b,2);this.W.pauseVideo()}return!a};f.oy=function(){QJ(this,0)};f.ny=function(){QJ(this,1)};f.Pd=function(a){W(a.state,8)&&P(this.element,"show-more-info")};
function QJ(a,b){if(!a.C&&(a.D==b&&(b=2),PJ(a,b),a.b)){if("detailpage"!=a.j.$){a.C=!0;var c={yb:a.b.yb,onSuccess:u(function(){this.C=!1},a),onError:u(function(){this.C=!1},a),Sa:a.j.Sa,Za:a.j.Za};Jq(a.b.videoId,b,c)}a.W.H("RATE_SENTIMENT",{videoId:a.b.videoId,sentiment:b})}}function PJ(a,b){a.D=b;Q(a.element,"sentiment-like",0==b);Q(a.element,"sentiment-dislike",1==b)}f.en=function(a){MJ(this.W,a)};f.ut=function(){TG(this.W)};
f.J=function(){this.W.ia("presentingplayerstatechange",this.Pd,this);this.W=null;OJ.G.J.call(this)};function RJ(a,b,c,d,e,g,h,k){this.o=[];z(Hb(b),function(b){this.o.push(R(a,b,u(this.av,this)))},this);z(Hb(d),function(b){this.o.push(R(a,b,u(this.$u,this)))},this);this.A=g||null;this.F=c;this.D=h||0;this.j=0;this.k=!1;this.C=e;this.B=k||0;this.b=0;this.g=!1}f=RJ.prototype;f.av=function(a){N(this.b);this.b=0;this.j=L(u(this.oB,this,a),this.D)};f.$u=function(a){N(this.j);this.j=0;this.b=L(u(this.mB,this,a),this.B)};f.oB=function(a){this.g||this.k||(this.k=!0,this.F.call(this.A||m,a))};
f.mB=function(a){!this.g&&this.k&&(this.k=!1,this.C.call(this.A||m,a))};f.dispose=function(){this.g=!0;N(this.j);N(this.b);Pg(this.o)};f.fa=function(){return this.g};function SJ(){X.call(this,["div","ytp-tooltip",["div","ytp-tooltip-body","{{content}}"],["div","ytp-tooltip-arrow"]]);this.b=this.template.b["ytp-tooltip-body"]}w(SJ,X);SJ.prototype.hide=function(){SJ.G.hide.call(this);Lf(this.b,0)};SJ.prototype.J=function(){cd(this.b);this.b=null;SJ.G.J.call(this)};function TJ(a,b){this.b={};this.Mm=a;this.g=b}w(TJ,Ih);
TJ.prototype.Og=function(a,b){var c,d=new RJ(a,"mouseover",function(){if(this.Mm){var d=new SJ;d.X(this.Mm);c=d}else c=null;if(c&&(d=b&&b(a),!b||d)){d=d||ug(a,"tooltip")||"";if(s(d)){var g=$c(d),d=Zc("span");d.className="ytp-text-tooltip";d.appendChild(g)}Ev(c.template,"content",d);var g=!!ug(a,"tooltip-below"),d=c,h=Zf(a),h=new F(h.width/2,g?h.height:0),k=Rf(a),h=new F(k.x+h.x,k.y+h.y),g=!!g;Q(d.element,"ytp-tooltip-below",g);if(k=Pf(d.element))var l=Rf(k),q=ig(k),h=Kb(h,new F(l.x+q.left,l.y+q.top));
SE(h,d.element,g?1:0);d.show();var q=Zf(d.b),g=q.width/2*-1,r=Rc(window),t=Tc(document),h=t.x,r=r.width+t.x,t=h,y=r;k&&(k=Zf(k),t=l.x,y=k.width+l.x);k=Rf(d.b);l=k.x+g;k=k.x+q.width+g;l<Math.max(h,t)?g-=l-Math.max(h,t):k>Math.min(r,y)&&(g-=k-Math.min(r,y));Lf(d.b,g)}},["mouseout","mousedown"],function(){c&&(c.hide(),Kh(c),c=null)},this,10,50);this.b[ma(a)]=d};
TJ.prototype.Af=function(a,b,c){var d=this.g;this.Og(a,function(){if(d){var a="detailpage"==d.$;if(!d.ka||a)return c}else return c;var g=d.ka,h=d.za,a=Zc("div");O(a,"ytp-identity-tooltip");var k=Zc("img");k.src=h;h=Zc("span");g=$c(Ye(b,{USER_NAME:g}));bd(h,g);bd(a,k,h);return a})};TJ.prototype.ln=function(a){a=ma(a);Kh(this.b[a]);this.b[a]=null};TJ.prototype.J=function(){this.g=this.Mm=null;for(var a in this.b)Kh(this.b[a]);this.b={};TJ.G.J.call(this)};function UJ(a){XG.call(this,a);this.o=this.Ca=this.k=this.O=null;this.bc=this.Ba=!1;this.hb={"watch-small":new G(640,360),"watch-medium":new G(854,480),"watch-large":new G(1280,720)}}w(UJ,XG);UJ.b=50;UJ.g=200;f=UJ.prototype;f.Vg=function(){UJ.G.Vg.call(this);this.app.subscribe("clearvideooverlays",this.lD,this)};
f.Ms=function(){var a=this.app.O.assets;if(a.css&&!eq()){var a={rel:"stylesheet",type:"text/css",href:a.css},b=document.getElementById("www-player-css");a.id="www-player-css";var c=b||document.createElement("link");Pc(c,a);b||document.getElementsByTagName("head")[0].appendChild(c);this.or(UJ.g)}else this.Ba=!0;this.H("templateready")};f.or=function(a){0>=a||eq()?(this.Ba=!0,this.element&&Ny(this.element)):L(u(this.or,this,a-1),UJ.b)};f.Qg=function(){this.Ba||Oy(this.element);UJ.G.Qg.call(this)};
f.Hn=function(a){UJ.G.Hn.call(this,a);a.Vb||this.addClass("hide-info-bar");a.oc&&this.Tf()};
f.nn=function(a){UJ.G.nn.call(this,a);var b=new X(["img",["html5-watermark","html5-stop-propagation","ytp-scalable-icon-shrink","hid"],{src:"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",alt:Y(0,"YTP_WATERMARK")}]);this.O=b.K();b.X(this.element);this.k=new JJ(this.app,this.element,this.j);S(this,this.k);this.k.X(document.body);this.o=new OJ(this.j,this.app);this.o.X(this.element);S(this,this.o);a.zc&&O(this.k.K(),"house-brand")};
f.Om=function(){this.app.R().Ff?this.Ca||(this.Ca=new BJ(this.g,u(this.Nm,this),u(this.is,this)),S(this,this.Ca)):UJ.G.Om.call(this)};f.Gj=function(a){UJ.G.Gj.call(this,a);a?Ny(this.o.K()):Oy(this.o.K())};f.Aj=function(a){UJ.G.Aj.call(this,a);this.o&&this.o.update(a);var b=this.app;if(b.b.Tk?0:b.getVideoData().la||b.b.Ec){if(a=a.la)this.O.src=a;Cx(this.O)}};
f.Bn=function(){UJ.G.Bn.call(this);var a=this.app.R();a.gc||(Qy(this,this.element,"click",u(this.Es,this,!1),void 0,void 0,!0),Qy(this,this.element,"keydown",u(this.Es,this,!0),void 0,void 0,!0),Qy(this,this.element,"focus",this.SC,void 0,void 0,!0));a.Qk||(Qy(this,this.element,"keypress",this.WC),Qy(this,this.element,"keydown",this.VC));Qy(this,this.O,"click",this.Ds);this.o.subscribe("title-click",u(this.Ds,this));this.o.subscribe("share-click",u(this.UC,this));this.o.subscribe("info-click",u(this.TC,
this))};
f.WC=function(a){this.app.b.Zf=v();var b=!1,c=a.keyCode;if(179==c||178==c)179==c&&(this.H("playpausetoggled",!0),a.preventDefault(),b=!0),178==c&&(this.app.b.Zf=v(),Gs(this.app),a.preventDefault(),b=!0);98==c&&(this.app.$e("onBackgroundChange"),b=!0);111==c&&(this.app.$e("onTextOpacityChange"),b=!0);119==c&&(this.app.$e("onWindowOpacityChange"),b=!0);if(61==c||43==c)this.app.$e("onFontSizeIncrease"),b=!0;if(45==c||95==c)this.app.$e("onFontSizeDecrease"),b=!0;32==c&&dH(a)&&(eH(this),LG(this.app),a.preventDefault(),
b=!0);48<=c&&57>=c&&(Bs(this.app,(c-48)/10*Cs(this.app)),a.preventDefault(),b=!0);this.app.R().zb()&&this.app.Sh("onKeyPress",{keyCode:c,handled:b})};
f.VC=function(a){var b=!1,c=a.keyCode;if(38==c||40==c||37==c||39==c){b=5;a.ctrlKey&&(b*=2);if(38==c)b=this.app,SG(b,{volume:b.D.volume+5,muted:!1});else if(40==c)b=this.app,SG(b,{volume:b.D.volume-5,muted:!1});else if(37==c){var d=this.app,b=-1*b;Bs(d,d.getCurrentTime()+b,!1,250,void 0)}else 39==c&&(d=this.app,Bs(d,d.getCurrentTime()+b,!1,250,void 0));b=!0}36==c&&(Bs(this.app,0),b=!0);35==c&&(Bs(this.app,Infinity),b=!0);27==c&&(Wg()?(KG(this.app,!1),b=!0):this.k&&this.k.P?(this.k.hide(),b=!0):null!=
this.B.j?(this.B.Td(),b=!0):this.C.P&&(this.Rg(),b=!0));b&&a.preventDefault();this.app.R().zb()&&this.app.Sh("onKeyPress",{keyCode:c,altKey:a.altKey,ctrlKey:a.ctrlKey,metaKey:a.metaKey,shiftKey:a.shiftKey,handled:b,fullscreen:this.app.R().mb})};f.Ds=function(a){a.preventDefault();TG(this.app)};f.UC=function(){this.app.Uh();if("detailpage"==this.app.R().$){KG(this.app,!1);var a=this.app,b=a.getVideoData();a.H("SHARE_CLICKED",{videoId:b.videoId,listId:b.La,feature:"player_"+a.b.$})}};f.TC=function(){this.app.Uh()};
f.lD=function(){var a=this.o;P(a.element,"show-share");P(a.element,"show-more-info")};f.Es=function(a){this.bc=a};f.SC=function(){Q(this.element,"ytp-keyboard-focus",this.bc)};f.um=function(a){UJ.G.um.call(this,a);this.k&&(a?this.k.X(this.element):this.k.X(document.body),this.k.hide());a&&this.element.focus()};f.Wl=function(){UJ.G.Wl.call(this);if(!this.app.R().Pb){var a=new TJ(this.element,this.app.R());S(this,a);this.j.b=a;var b=Nc("ytp-tooltip-anchor",this.element);z(b,function(b){a.Og(b)})}};
f.Fb=function(){var a=this.app.R(),b=Ms(this.app)&&2==Ms(this.app).getPlayerType();if("detailpage"==a.$&&!b){if(a.b.F)return HJ(a);b=Mc("player");if(!b||a.mb||a.b.g)return UJ.G.Fb.call(this);for(var c in this.hb)if(og(b,c))return this.hb[c]}return UJ.G.Fb.call(this)};f.xs=function(){var a=this.Fb();this.app.R().Od&&(a=a.clone(),a.height+=3);return a};f.J=function(){UJ.G.J.call(this);Tg(this.O);this.O=null};function VJ(a){this.k=Math.exp(Math.log(.5)/a);this.g=this.j=0}VJ.prototype.b=function(a,b){var c=Math.pow(this.k,a);this.g=b*(1-c)+c*this.g;this.j+=a};VJ.prototype.o=function(){return this.g/(1-Math.pow(this.k,this.j))};function WJ(a){this.g=window.Float32Array?new Float32Array(a):Array(a);this.b=a-1}WJ.prototype.add=function(a){this.b=(this.b+1)%this.g.length;this.g[this.b]=a};WJ.prototype.forEach=function(a){for(var b=this.b+1;b<this.g.length;b++)a(this.g[b]||0);for(b=0;b<=this.b;b++)a(this.g[b]||0)};function XJ(a,b,c){this.D=0;this.B=a;this.k=b||.5;this.A=c||0;this.C="index";this.g=0;this.j=[]}XJ.prototype.b=function(a,b){YJ(this,"index");this.j.push({index:this.D++,weight:a,value:b});this.g+=a;for(YJ(this,"index");this.g>this.B;){var c=this.g-this.B,d=this.j[0];d.weight<=c?(this.g-=d.weight,this.j.shift()):(this.g-=c,d.weight-=c)}};function ZJ(a,b){YJ(a,"value");var c=b*a.g,d=0,e=NaN;a.j.some(function(a){d+=a.weight;e=a.value;if(d>=c)return!0});return e}
XJ.prototype.o=function(){return this.A?(ZJ(this,this.k-this.A)+ZJ(this,this.k)+ZJ(this,this.k+this.A))/3:ZJ(this,this.k)};function YJ(a,b){a.C!=b&&(a.C=b,Db(a.j,b))};function $J(a){this.b=a;this.A=this.D=this.F=0;this.M=new WJ(100);this.I=0;this.B=new XJ(16,.6);this.C=new VJ(4);this.b.j?this.j=new VJ(this.b.g):this.j=new XJ(this.b.g,.5,.1);this.g=this.o=this.k=0;a=qi("yt-player-bandwidth")||{};this.j.b(this.b.B,0<a.byterate?a.byterate:13E4);0<a.delay&&this.B.b(1,Math.min(+a.delay,2));0<a.tailDelay&&this.C.b(1,+a.tailDelay);this.A=v()}function aK(a,b,c){a.b.b||(b=Math.max(b,.05),a.j.b(b,c/b),bK(a))}
function cK(a,b,c){a.B.b(1,c);1E4<v()-a.A&&dK(a);0==a.k&&(a.o=b/1E3);a.k++}function eK(a,b,c){isNaN(c)||(a.D+=c);isNaN(b)||(a.F+=b/1E3);bK(a)}function fK(a,b,c){b=Math.max(b,8192);a.C.b(1,c/b);1E4<v()-a.A&&dK(a)}function gK(a){var b=a.B.o(),b=isNaN(b)?.5:b;0<=a.b.k&&(b=Math.min(b,a.b.k));return b}function hK(a){return a.C.o()||0}function iK(a){a=a.j.o()*a.b.o-a.b.A;return 0<a?a:1}function jK(a){var b={};b.delay=gK(a);b.tailDelay=hK(a);b.byterate=iK(a);return b}
function dK(a){var b=jK(a);ni("yt-player-bandwidth",b,2592E3);a.A=v()}function bK(a){var b=v();500<b-a.I&&(a.M.add(1/(1/iK(a)+hK(a))),a.I=b)};function kK(){this.g=17;this.k=-1;this.B=.5;this.C=this.b=this.j=!1;this.A=0;this.o=1};function lK(){this.b=[];this.k={};this.B={};this.C={};this.g=this.o=null;this.j=[];this.A=null}w(lK,Ih);lK.prototype.Jq=function(a){if(this.g){var b;var c=ma(a);b=this.k[c];if(!b)if(this.g){if(b=a(this.g)){a=this.k[c]=b;for(var d in this.o)a.subscribe(d,this.o[d]);a.subscribe("command_log_timing",this.D,this);S(this,b)}}else b=null;b&&b.Ja(this.g)&&!C(this.b,b)&&(b.create(),this.b.push(b),C(this.j,b.ua)&&(b.nc=this.A,b.Hi(!!b.nc)))}};
function mK(a){a.b=hb(a.b,function(a){return!this.g||a.Fm(this.g)?(a.destroy(),!1):!0},a)}function nK(a,b,c){oK(a);a.A=b;a.j=vb(c);z(a.b,function(a){0<=fb(c,a.ua)&&(a.nc=b,a.Hi(!!a.nc))})}function oK(a){z(a.j,function(a){if(a=Ps(this,a))a.nc=null,a.Hi(!1)},a);a.A=null;a.j=[]}function bt(a,b){if(!b)return A(a.b,function(a){return a.ua});var c=Ps(a,b);return c?c.Bj():[]}function Ps(a,b){return B(a.b,function(a){return a.ua==b})}lK.prototype.F=function(a,b){z(this.b,function(c){c.H(a,b)})};
function pK(a){var b={};z(a.b,function(a){sa(b,a.$g())});return b}lK.prototype.D=function(a,b){sa(this.C,a||null);sa(this.B,b||null)};lK.prototype.isAvailable=function(a){return(a=Ps(this,a))?a.fk:!1};function qK(a){this.b={};for(var b=0;b<a.length;b++){var c=a[b];this.b[c.b]=c}}function rK(a){a=Sb(a.b);Cb(a,function(a,c){return a.b-c.b});return a};function sK(a,b,c){this.j=a;this.b=b;this.k=!!c.Te;this.g=c.qa};function tK(){this.wc={};this.g=this.Xb().b;this.b=null}f=tK.prototype;f.Xb=function(){var a=this.constructor,b;if(!(b=a.ct)){var c;b=a.PD;var d=[];for(c in b)0!=c&&d.push(new sK(a,c,b[c]));c=new qK(d);b=a.ct=c}return b};f.get=function(a,b){a.j.Xb();this.Xb();var c;c=a.b;var d=uK(this,c);c=this.g[c].k?d[b||0]:d;return c};f.set=function(a,b){a.j.Xb();this.Xb();vK(this,a.b,b)};f.add=function(a,b){a.j.Xb();this.Xb();wK(this,a.b,b)};
f.clear=function(a){a.j.Xb();this.Xb();a=a.b;delete this.wc[a];this.b&&delete this.b[a]};f.equals=function(a){if(!a||this.constructor!=a.constructor)return!1;for(var b=rK(this.Xb()),c=0;c<b.length;c++){var d=b[c],e=d.b;if(null!=this.wc[e]!=(null!=a.wc[e]))return!1;if(null!=this.wc[e]){var g=11==d.g||10==d.g,h=uK(this,e),e=uK(a,e);if(d.k){if(h.length!=e.length)return!1;for(d=0;d<h.length;d++){var k=h[d],l=e[d];if(g?!k.equals(l):k!=l)return!1}}else if(g?!h.equals(e):h!=e)return!1}}return!0};
function xK(a,b){for(var c=rK(a.Xb()),d=0;d<c.length;d++){var e=c[d],g=e.b;if(null!=b.wc[g]){a.b&&delete a.b[e.b];var h=11==e.g||10==e.g;if(e.k)for(var e=uK(b,g)||[],k=0;k<e.length;k++)wK(a,g,h?e[k].clone():e[k]);else e=uK(b,g),h?(h=uK(a,g))?xK(h,e):vK(a,g,e.clone()):vK(a,g,e)}}}f.clone=function(){var a=new this.constructor;a!=this&&(a.wc={},a.b&&(a.b={}),xK(a,this));return a};function uK(a,b){var c=a.wc[b];return null==c?null:c}function vK(a,b,c){a.wc[b]=c;a.b&&(a.b[b]=c)}
function wK(a,b,c){a.wc[b]||(a.wc[b]=[]);a.wc[b].push(c);a.b&&delete a.b[b]}function yK(a,b){a.PD=b;a.Xb=function(){return a.ct||(new a).Xb()}};function zK(){tK.apply(this)}w(zK,tK);function AK(){tK.apply(this)}w(AK,tK);yK(zK,{0:{name:"MessageDetails",ff:"logs_proto.MessageDetails"},1:{name:"may_appear_in",Te:!0,qa:11,type:AK}});yK(AK,{0:{name:"Type",AK:zK,ff:"logs_proto.MessageDetails.Type"},1:{name:"source_type",required:!0,qa:9,type:String},2:{name:"log_type",required:!0,qa:9,type:String}});var BK={jF:0,TG:1,eH:2,iF:3,rF:4,RG:5,cH:6,$G:7,aH:8,bH:9,YG:10,ZG:11,tF:12,sF:13,hF:14,bF:15,SG:20,gH:21,aF:22,UG:23,fH:24,dH:25,oF:30,hH:31,nF:32,pF:33,WG:40,VG:41,uF:42,vF:43,cF:50,fF:51,kF:52,lF:53,mF:54,YE:55,ZE:56,qF:57,gF:58,eF:60,dF:61,$E:70,XE:80,wF:90};function CK(){tK.apply(this)}w(CK,tK);function DK(){tK.apply(this)}w(DK,tK);function EK(){tK.apply(this)}w(EK,tK);function FK(){tK.apply(this)}w(FK,tK);function GK(){tK.apply(this)}w(GK,tK);function HK(){tK.apply(this)}w(HK,tK);
HK.prototype.hasFeature=function(){return null!=this.wc[7]};
yK(CK,{0:{name:"YtAdType",ff:"video.YtAdType"},1:{name:"ad_namespace",required:!0,qa:14,defaultValue:0,type:{WF:0,uH:1,XF:2,mH:3,FH:4,rH:5,qH:6,nt:7,oH:8,sG:9,lH:10,pH:11,iG:12,rK:13}},2:{name:"ad_format",required:!0,qa:14,defaultValue:0,type:{SF:0,eI:1,cI:2,GI:3,XJ:4,fI:5,$H:6,bI:7,wK:8,zH:9}},3:{name:"ad_invideo",qa:14,defaultValue:0,type:{UF:0,HG:1,IG:2,JG:3,nH:4,GG:5,tG:6}},4:{name:"invideo_autoplay",qa:14,defaultValue:0,type:{nG:0,yE:1}},5:{name:"ad_instream",qa:14,defaultValue:0,type:{TF:0,
RJ:1,VJ:2,Xm:3,rG:4}},6:{name:"ad_instream_long",qa:8,type:Boolean}});yK(DK,{0:{name:"AdId",ff:"video.AdId"},1:{name:"ad_network",qa:14,defaultValue:1,type:{OTHER:1,VE:2}},2:{name:"ad_network_name",qa:9,type:String},3:{name:"ad_id",required:!0,qa:9,type:String}});
yK(EK,{0:{name:"YtAdEvent",ff:"video.YtAdEvent"},1:{name:"ad_event_type",required:!0,qa:14,defaultValue:0,type:{EF:0,LF:1,FF:2,OF:3,GF:4,HF:5,BF:6,zF:7,iH:8,xF:9,MF:10,NF:11,yF:12,kH:13,PF:14,CF:15,jH:16,DF:17,AF:18,QF:100,RF:101,JF:130,IF:131,KF:132}},2:{name:"wall_time",required:!0,qa:2,type:Number},3:{name:"media_time",required:!0,qa:2,type:Number},4:{name:"logentry_time_usec",required:!0,qa:3,type:String},5:{name:"ad_error_type",qa:14,defaultValue:0,type:BK}});
yK(FK,{0:{name:"YtAdSlot",ff:"video.YtAdSlot"},1:{name:"slot_time",required:!0,qa:2,type:Number},2:{name:"ad_type",required:!0,qa:11,type:CK},3:{name:"ad_events",Te:!0,qa:11,type:EK},4:{name:"ad_video_duration",qa:2,type:Number},5:{name:"ad_id",qa:9,type:String},6:{name:"slot_index",qa:5,type:Number}});
yK(GK,{0:{name:"YtVideoMetadata",ff:"video.YtVideoMetadata"},1:{name:"content_owner_ids",Te:!0,qa:9,type:String},2:{name:"video_duration_seconds",qa:2,type:Number},3:{name:"all_content_owner_ids",qa:9,type:String}});
yK(HK,{0:{name:"YtWatchAdInfo",ff:"video.YtWatchAdInfo"},1:{name:"video_id",required:!0,qa:9,type:String},2:{name:"allowed_ads",Te:!0,qa:11,type:CK},3:{name:"ad_slots",Te:!0,qa:11,type:FK},4:{name:"ps",qa:9,type:String},5:{name:"el",qa:9,type:String},6:{name:"country",qa:9,type:String},7:{name:"feature",qa:9,type:String},8:{name:"blocked",qa:8,type:Boolean},9:{name:"plid",qa:9,type:String},10:{name:"video_metadata",qa:11,type:GK},11:{name:"experiment_id",Te:!0,qa:3,type:String},12:{name:"ad_flags",
qa:4,type:String},13:{name:"all_experiment_ids",qa:9,type:String},14:{name:"no_ads_returned",qa:8,type:Boolean},15:{name:"ad_errors",Te:!0,qa:14,defaultValue:0,type:BK},16:{name:"ad_slot_with_event",qa:11,type:FK}});function IK(a,b){lt.call(this,a,b)}w(IK,lt);f=IK.prototype;f.Jg=function(){As(this.app,!0,this.b);this.app.Md(this.b)};f.pauseVideo=function(){this.app.pauseVideo(this.b)};f.Ps=function(a,b,c){As(this.app,!0,this.b);var d=this.app,e=this.b;d.rf(d.getCurrentTime()+a,b,c,e)};f.Kg=function(a,b){As(this.app,!0,this.b);this.app.rf(a,b,void 0,this.b)};f.Bk=function(){Is(this.app,this.b)};function JK(a){this.app=a;hu.call(this,a.Eb)}w(JK,hu);JK.prototype.getAdState=function(){return-1};var KK={cJ:"red",WHITE:"white"};var LK={vE:"0",yJ:"1",PG:"2"};var MK={"ad-trueview-indisplay-pv":6,"ad-trueview-insearch":7},NK={"ad-trueview-indisplay-pv":2,"ad-trueview-insearch":2},OK={adunit:{Vb:!1,Gp:!1,Ec:!1},detailpage:{oc:!0}};OK.embedded={Ff:Vg(),Ec:!0};OK.profilepage={bh:!0};
var PK="blogger books docs google-live play picasaweb".split(" "),QK={blazer:{zK:"youtube_mobile",yc:!1,EE:!1,aj:!1,On:!1,Pb:!0,oc:!1,Ek:!0,Qb:!1,Rb:!1,gc:!0},blogger:{we:!1,ig:!1,dc:!1,Vb:!1,Jc:!1,oc:!1,Qf:!1,Ec:!1,Wc:"bl"},books:{we:!1,ig:!1,dc:!1,Vb:!1,Jc:!1,oc:!0,Qf:!1,Ec:!1,Wc:"gb"},docs:{we:!1,ig:!1,dc:!1,Vb:!1,Jc:!1,oc:!1,Qf:!1,Ec:!1,Wc:"gd"},"google-live":{we:!1,ig:!1,dc:!1,Vb:!1,Jc:!1,oc:!1,Qf:!1,Ec:!1,Wc:"gl"},play:{Vb:!1,Jc:!1,oc:!1,Ec:!1,Wc:"gp"},"native":{aj:!1,On:!1,Qb:!0},picasaweb:{we:!1,
ig:!1,dc:!1,Vb:!1,Jc:!1,oc:!1,Qf:!1,Ec:!1,Wc:"pw"},touch:{aj:!1,On:!1,gc:!0}};
function RK(a){a=ac(a);this.j={};this.b=new Mq(a.fexp);this.wa=a.forced_experiments||null;this.origin=mq(this.origin,a.origin);this.xe=mq(this.xe,a.loaderUrl);if("adunit"!=a.el||ff(this.xe))this.$=a.el||this.$;var b=OK[this.$];b&&sa(this,b);b=a.ps;if(!C(PK,b)||this.zb())this.qb=b||this.qb;(b=QK[this.qb])&&sa(this,b);this.zc=this.zb()&&C(PK,this.qb);this.vg=!(!cq().defaultPlaybackRate||pc||lh||kh||mh);if(a.use_media_volume)b=!1;else{var b=cq(),c=b.muted;b.muted=!c;b=b.muted!=c}this.Hp=b;this.mp=mh;
if(lh||kh||oh)this.qo="blazer"!=this.qb;this.Mp="0"!=a.add_player_event_listeners;b=jq(this.Ff,a.fs);this.Ff="detailpage"==this.$?b:b&&Vg();this.Sa=mq(this.Sa,a.authuser);this.Mi=kq(this.Mi,a.autohide,rE);this.yc=jq(this.yc,a.autoplay);this.Pl=jq(this.Pl,a.autoplayoverride);this.color=kq(this.color,a.color,KK);this.C=mq(this.C,a.content_v);this.Ql=kq(this.Ql,a.controls,LK);this.Qk=jq(this.Qk,a.disablekb);this.Pi=jq(this.Pi,a.edu_mode);this.g=mq(this.g,a.eurl);this.F=mq(this.F,a.framer);this.pa=kq(this.pa,
a.iv_load_policy,Vp);this.A=mq(this.A,a.hl);this.Qp=jq(this.Qp,a.bwlogging);this.Pb=jq(this.Pb,a.is_html5_mobile_device);this.qd=jq(this.qd,a.player_wide);this.Rp=jq(this.Rp,a.is_playground);this.$h=jq(this.$h,a.privembed);this.Tp=jq(this.Tp,a.loop);this.If=jq(this.If,a.modestbranding);"red"!=this.color&&(this.If=!1);this.Sp=jq(this.Sp,a.on3g);this.Za=mq(this.Za,a.pageid);this.vi=qq(this.vi,a.vq);this.zk=mq(this.zk,a.playerapiid);this.pi=jq(this.pi,a.playsinline);this.Mk=jq(this.Mk,a.playonclick);
this.U=mq(this.U,a.cr);this.dc=jq(this.dc,a.logwatch);this.ok=jq(this.ok,a.canplaylive);this.Vb=jq(this.Vb,a.showinfo);this.Jc=jq(this.Jc,a.rel);this.oc=jq(this.oc,a.enablesizebutton);this.Nl=jq(this.Nl,a.ss);this.I=mq(this.I,a.theme);this.Qb=jq(this.Qb,a.use_native_controls);this.Rb=!kh&&jq(this.Rb,a.svt);this.zb()&&(this.mk=jq(this.mk,a.retryneterr),this.Tk=jq(this.Tk,a.nologo));this.Qb&&(this.If=!0,this.pa=3);this.Qi=jq(this.Qi,a.ssl);if(this.oi=jq(this.oi,a.ssl_stream))this.Qi=!0;if(this.gc=jq(this.gc,
a.use_tablet_controls))this.I="dark",this.Mi="blazer"==this.qb?"3":"1";b=this.og;if(c=a.video_container_override){var 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 G(c,d))}this.og=b;this.Ia=mq(this.Ia,a.attrib);this.la=mq(this.la,a.sk);this.protocol=this.Qi?"https":"http";this.Od="0"!=this.Ql;this.Xj=jq(this.Od,a.store_user_volume);this.Qd=jq(this.Qd,a.use_media_volume);if(b=a.BASE_YT_URL)c=(c=b&&b.match(Ee))?c[0]:"",d=bf(b)?b:"",c!=d&&We(Error(b+
" behavior is not consistent")),d&&(this.tb=d);if(c=b=a.gdatabaseurl)c=!!b&&-1!=b.search(He),d=bf(b),c!=d&&We(Error(b+" behavior is not consistent")),c=d;c&&(this.So=b);SK(this,a);b=!this.b.da;("detailpage"==this.$||b&&"unknown"==this.g||"undefined"==this.g)&&delete this.g;this.Ec=this.If&&!this.Qb?!this.Vb:this.Vb||this.Od?!1:this.Ec;b=this.yc||"detailpage"==this.$;c=!0;this.Pb&&(c=!1);nr("nintendo wiiu")&&(c=!1);this.Pl&&(c=!0);this.Ph=b&&c;this.j=a}w(RK,Ih);f=RK.prototype;f.uf=null;f.Mp=!0;
f.Ff=!0;f.Sa="";f.Mi="2";f.yc=!1;f.Pl=!1;f.tb="/";f.So="//gdata.youtube.com/";f.EE=!0;f.color="red";f.Ql="1";f.qf="web";f.re="html5";f.Qk=!1;f.Pi=!1;f.aj=!0;f.On=!0;f.vg=!1;f.Hp=!1;f.$="detailpage";f.Qp=!1;f.zc=!1;f.Pb=!1;f.mb=!1;f.Xq=!1;f.qd=!1;f.we=!0;f.Rp=!1;f.$h=!1;f.ig=!0;f.Zf=0;f.Bg=!1;f.xe="";f.Tp=!1;f.If=!1;f.vi=Gp;f.zk="";f.Sp=!1;f.Za="";f.qb=null;f.pi=!1;f.mp=!1;f.mk=!1;f.Ph=!1;f.dc=!1;f.ok=!0;f.Od=!0;f.Xj=!0;f.Qd=!1;f.Vb=!0;f.Gp=!0;f.Jc=!0;f.bh=!1;f.oc=!1;f.Qf=!0;f.Ec=!1;f.Nl=!1;f.Tk=!1;
f.qo=!1;f.Qb=!1;f.Rb=!0;f.Qi=!1;f.oi=!1;f.gc=!1;f.Yc=null;f.og=null;f.zq=null;f.Bf=null;f.Pa=null;f.fi=null;f.Wc="yt";f.Mk=!1;function Ss(a,b){a.xa=b.get("d",a.xa);a.ca=b.get("f",a.ca)}
function SK(a,b){if(b){var c;(c=b.adformat)||(c=(c=b.attrib)&&c in MK&&c in NK?NK[c]+"_"+MK[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.k=c,a.j.adformat=b.adformat,d||(a.$="adunit"))}}a.uf=(b&&b.adpings?wi(b.adpings):null)||a.uf;c=b.agcid;a.Fa=c;a.j.agcid=c;c=b.feature;a.B=c;a.j.feature=c;c=b.referrer;a.D=c;a.j.referrer=c;a.Ra=b.q;a.M=mq(a.M,b.cbrand);a.L=mq(a.L,b.cbr);a.N=mq(a.N,b.cbrver);a.qf=mq(a.qf,b.c);a.re=mq(a.re,
b.cver);a.O=mq(a.O,b.cmodel);a.P=mq(a.P,b.cnetwork);a.V=mq(a.V,b.cos);a.T=mq(a.T,b.cosver);a.o=mq(a.o,b.cplatform);a.b.g=jq(a.b.g,b.flexwatch_enabled);a.dc=jq(a.dc,b.logwatch);a.Ba=lq(a.Ba,b.user_age);a.za=mq(a.za,b.user_display_image);a.ka=mq(a.ka,b.user_display_name);a.Ca=mq(a.Ca,b.user_gender);a.da=mq(a.da,b.eventid);a.aa=mq(a.aa,b.csi_page_type);a.Ek=jq(a.Ek,b.enablecsi)}
function TK(a){var b={};b.c=a.qf;a.re&&(b.cver=a.re);a.o&&(b.cplatform=a.o);a.M&&(b.cbrand=a.M);a.O&&(b.cmodel=a.O);a.P&&(b.cnetwork=a.P);a.L&&(b.cbr=a.L);a.N&&(b.cbrver=a.N);a.V&&(b.cos=a.V);a.T&&(b.cosver=a.T);return b}
function UK(a,b){switch(b.T){case 38:var c=b.videoId.indexOf(":");return Yd("//play.google.com/books/volumes/"+b.videoId.slice(0,c)+"/content/media",{aid:b.videoId.slice(c+1),sig:b.Yj});case 30:return c="//docs.google.com/",a.tb!=RK.prototype.tb&&(c=a.tb),Yd(c+"get_video_info",{docid:b.videoId,authuser:b.Sa,authkey:b.xb,eurl:a.g});case 33:return Yd("//google-liveplayer.appspot.com/get_video_info",{key:b.videoId});default:c={html5:"1",video_id:b.videoId,cpn:b.Da,eurl:a.g,ps:a.qb,el:a.$,hl:a.A,list:b.La,
agcid:a.Fa,sts:16265};a.wa&&(c.forced_experiments=a.wa);b.C?c.vvt=b.C:b.B&&(c.access_token=b.B);a.k&&(c.adformat=a.k);b.Ba&&(c.iv_load_policy=b.Ba);b.lg&&(c.autoplay="1");b.xm&&(c.noiba="1");b.ym&&(c.mdx="1");b.zm&&(c.utpsa="1");b.ac&&(c.is_fling="1");var d;d=(d=a.fi)?new G(d.clientWidth,d.clientHeight):new G(Number.NaN,Number.NaN);d.width&&(c.width=d.width);d.height&&(c.height=d.height);b.za&&(c.ypc_preview="1");b.qe&&(c.splay="1");a.C&&(c.content_v=a.C);b.am&&(c.livemonitor=1);a.Sa&&(c.authuser=
a.Sa);a.Za&&(c.pageid=a.Za);a.da&&(c.ei=a.da);a.oi&&(c.ssl_stream="1");ef()&&(c.iframe="1");b.Oh&&(c.tst=b.Oh);sa(c,TK(a));return Yd(a.tb+"get_video_info",c)}}function VK(a){return a.Pi?"//s.youtubeeducation.com/":a.ig?"//s.youtube.com/":"//video.google.com/"}function WK(a){return VK(a)+(a.b.M?"api/stats/qoe":"stream_204")}function XK(a){return a.D?a.D.slice(0,128):""}function AH(a,b,c,d){return LH(a,b.videoId,b.La,c,d)}
function LH(a,b,c,d,e){b={v:b,list:c};d&&sa(b,d);a=Yd(a.protocol+"://"+("www.youtube-nocookie.com"==window.location.host||a.Pi?"www.youtube.com":window.location.host)+"/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=wi(b);for(var g in e)b[g]=e[g];e=d+Wd(b);a=a+e}return a}
function NJ(a,b){if("play"!=a.qb)return"https://support.google.com/youtube/?p=report_playback";var c={contact_type:"playbackissue",html5:1,plid:b.yb,ei:b.A,v:b.videoId,p:"movies_playback"};b.b&&(c.fmt=b.b.id);b.Da&&(c.cpn=b.Da);b.T&&(c.partnerid=b.T);return Yd("//support.google.com/googleplay/",c)}
function YK(a){var b={};if(!a.Pa)return b;a.Pa.webkitDecodedFrameCount&&(b.hmewdfc=a.Pa.webkitDecodedFrameCount,b.hmewdrop=a.Pa.webkitDroppedFrameCount,b.hmewvdbc=a.Pa.webkitVideoDecodedByteCount,b.hmewadbc=a.Pa.webkitAudioDecodedByteCount);a.Pa.mozParsedFrames&&(b.hmempf=a.Pa.mozParsedFrames,b.hmemdf=a.Pa.mozDecodedFrames,b.hmempresented=a.Pa.mozPresentedFrames,b.hmempainted=a.Pa.mozPaintedFrames,b.hmempaintdelay=a.Pa.mozPaintDelay);return b}
function ZK(a){var b=p("yt.www.watch.activity.getTimeSinceActive",window);if("detailpage"==a.$&&b)return b();b=0;a.Zf&&(b=v()-a.Zf);return b}function IH(a){return"leanback"==a.$||a.zc||!a.Jc&&!a.bh?!1:!0}function gt(a){return"detailpage"!=a.$&&"embedded"!=a.$&&"profilepage"!=a.$?!1:!0}
f.zb=function(){var a=document.location.toString(),b=!!a&&-1!=a.search(Fe),c=bf(a);b!=c&&We(Error(a+" behavior is not consistent"));a=c&&!ef();if(c=c&&ef()){var c=this.xe,b=!!c&&-1!=c.search(Ne),d=bf(c)||cf(c,$e);b!=d&&We(Error(c+" behavior is not consistent"));c=d}return c||a};function gE(a){return nh&&nr("crkey")||"tv"==a.o}f.J=function(){this.fi=this.Pa=null;RK.G.J.call(this)};function $K(a,b){this.b=a;this.va=b;this.g=1}function aL(a,b,c,d){d/=a.g;var e=hK(a.b)+1/iK(a.b),g;g=Math.max(.9*(d-3),gK(a.b)+8192*e);c=g/e/(b+c);c=Math.max(a.va.A,Math.min(a.va.N,c));c=Math.min(c,d);a=Math.max(a.va.F,Math.ceil(a.va.A*b));return Math.min(a,Math.max(Math.ceil(c*b),65536))}function bL(a){if(a.va.P)return 1/(hK(a.b)+1/iK(a.b));var b=iK(a.b);a=gK(a.b)+1048576*hK(a.b);return b*Math.min(1,1048576/(b*a))}function cL(a){return bL(a)/a.g};function NG(a,b,c){this.b=a;this.video=b;this.g=c};function dL(a,b,c,d){this.N=a;this.va=b;this.B=c;this.D=d;this.j=this.C=this.b=null;this.o="i";this.I=-1;this.A=this.g=null;this.k=[];this.F=this.M=0;this.L=null}function eL(a,b,c){"m"==c&&Ip(a.b)&&!Ip(b)&&(c="a");if("m"==c&&Ip(b))return a.o=c,fL(a,b),a.j=gL(a),new NG(a.g,a.j,c);var d=a.b.equals(b);if("m"==a.o&&Ip(a.b)&&d)return null;"r"!=c||d||(a.I=-1);fL(a,b);b=gL(a);if("r"==c&&!d&&b==a.j)return a.j=b,new NG(a.g,b,c);a.o=c;return null}function hL(a,b){iL(a);a.L=b;a.F=v();a.I=-1;fL(a,a.b)}
function iL(a){return!!a.F&&9E4>=v()-a.F}function gL(a){if(Ip(a.b)||!(8E3>v()-a.I)){a.F&&!iL(a)&&(a.F=0,fL(a,a.b));var b=cL(a.N);if(Ip(a.b))a.A=a.B.b[a.k[a.k.length-1].id];else{for(var c=Math.min(a.M,a.k.length-1),d=b/1.05-a.g.info.ra;0<c&&!(a.k[c].ra<=d);c--);for(b=b/a.va.B-a.g.info.ra;c<a.k.length-1&&!(a.k[c+1].ra>=b);c++);a.M=c;a.A=a.B.b[a.k[c].id]}}return a.A}function jL(a){var b=a.o;a.o="a";a.I=v();return new NG(a.C,a.j,b)}
function fL(a,b){a.b=b;var c=a.D.g;if(!Ip(a.b)&&(c=hb(c,function(a){return a.ra>this.va.ra?!1:!this.B.b[a.id].o},a),iL(a))){var c=hb(c,function(a){return a.id!=this.L.id},a),d=hb(c,function(a){return"140"==a.id||"134"==a.id||"243"==a.id});d.length&&(c=d)}c.length||(c=a.D.g);c=hb(c,a.b.k,a.b);c.length||(c=[a.D.g[0]]);c.sort(function(a,b){return a.ra-b.ra});for(d=1;d<c.length;d++){var e=c[d-1],g=c[d];e.ra*a.va.B>g.ra&&(sb(c,e.video.width<=g.video.width?d-1:d),d--)}a.k=c}
function kL(a){var b=B(a.D.b,function(a){return!!a.k&&a.k.b});b||(b=a.D.b[0]);a.g=a.B.b[b.id]}function lL(a){var b=cL(a.N)/1.05-a.g.info.ra,c=ob(a.k,function(a){return this.va.ai&&this.va.ai<qo[a.video.b]?!1:a.ra<b},a);0>c&&(c=0);a.M=c;a.A=a.B.b[a.k[c].id]};function mL(a,b){this.va=a;this.j=b;this.pendingRequests_=[];this.b=[];this.k=this.g=null;this.o=0;this.ra=b.info.ra;this.B=this.A=this.C=!1}function nL(a,b){a.pendingRequests_.push(b);a.g=db(b.info.b);a.o+=So(b.info)}function oL(a){for(;a.pendingRequests_.length&&5==a.pendingRequests_[0].state;){var b=a.pendingRequests_.shift();a.o-=So(b.info);a.o+=db(b.k).buffer.byteLength;z(b.k,a.F,a)}}
mL.prototype.F=function(a){if(4==a.info.type){var b=a.info.b.Aq(a);a.info==this.g&&(this.g=db(b).info);z(b,this.F,this)}else if(3==a.info.type){var c=a.info.b.info;if(this.va.O&&0==a.info.j&&1==c.g){var b=Wo(a),c=!!c.b,d=Yo(b,0,1836019558);d&&(d=Yo(b,d.b+d.g,1953653094))&&(d=Yo(b,d.b+d.g,1953658222))&&Xo(b,c,d.b+8)}this.b.push(a)}};
function pL(a,b){if(a.va.I?a.b.length&&!qL(a):a.C)return a.b[0].Z;var c=a.j.info.b;if(a.b[0].info.o>=b)return null;var d;for(d=1;d<a.b.length;d++){var e=a.b[d].buffer!=a.b[d-1].buffer;if(a.b[d].info.o>b||e)break}d--;var e=a.b[d].Z.end,g=a.b[d].info.C-b;if(c&&1<g){c=Math.floor((b-a.b[d].info.o)/a.b[d].info.D*a.b[d].info.g);if(0==c)return null;e=a.b[d].Z.start+c-1}return new uo(a.b[0].b?0:a.b[0].Z.start,e)}
function rL(a){a.pendingRequests_.length?a.g=db(a.pendingRequests_[a.pendingRequests_.length-1].info.b):a.b.length?a.g=db(a.b).info:a.g=a.k}function sL(a,b){var c=tL(a,b);if(0<=c)return c;a.g=a.j.xi(b).b[0];a.k&&a.k.B&&(a.k=null);return a.g.startTime}
function PG(a,b){uL(a);if(a.j.info.video&&a.k&&!a.k.A&&b){var c=mb(a.b,function(a){return a.info.A});a.b=yb(a.b,0,c+1);a.C=!0}else a.b=[];if(a.b.length)for(a.o=a.b[0].buffer.byteLength,c=1;c<a.b.length;c++)a.b[c].buffer!=a.b[c-1].buffer&&(a.o+=a.b[c].buffer.byteLength);else a.o=0}function vL(a){var b=!1,c;for(c=0;c<a.pendingRequests_.length;c++)if(7==a.pendingRequests_[c].state){b=!0;break}if(b){for(;c<a.pendingRequests_.length;)a.D(a.pendingRequests_.pop());rL(a)}}
function wL(a){return jb(a.b,function(a){return a.info.A})}function xL(a){return!!a.k&&a.k.B}function yL(a){var b=[];a.k&&b.push(a.k);z(a.b,function(a){b.push(a.info)});z(a.pendingRequests_,function(a){z(a.info.b,function(a){3!=a.type&&4!=a.type||b.push(a)})});a.g&&a.g!=db(b)&&b.push(a.g);return b}function qL(a){if(!a.g||!a.g.g)return!1;a=yL(a);if(!a.length)return!1;for(var b=1;b<a.length;b++)if(!(1E-6>=Math.abs(a[b].o-a[b-1].C)))return!1;return!0}
function tL(a,b){if(qL(a)){var c;t:{c=yL(a);for(var d=0;d<c.length;d++)if(c[d].o<=b&&c[d].startTime+c[d].duration>=b){c=c[d];break t}c=null}if(c)return c.startTime}return NaN}function zL(a){return jb(a.pendingRequests_,function(a){return 1==a.timing.priority&&3<=a.state})}function AL(a){return!!(a.g&&a.j.mc()&&a.g.b!=a.j&&a.g.b.info.ra<a.j.info.ra)}function BL(a,b){return!!(a.g&&!a.g.B&&a.g.C<b)}mL.prototype.D=function(a){Ko(a.info.b[0])||a.dispose();this.o-=So(a.info)};
function uL(a){z(a.pendingRequests_,a.D,a);a.pendingRequests_=[];a.g=null};function CL(a,b,c){this.va=a;this.info=b;this.timing=c;this.state=1;this.b=this.k=null;this.F=NaN;this.A=this.j=0;this.g=NaN;this.B=null;this.D="";this.o=null;this.C=0}CL.g=!1;CL.b=1E4;f=CL.prototype;f.getErrorCode=function(){return this.o};function DL(a){var b;b=a.timing;b={rt:((v()-b.j)/1E3).toFixed(2),lb:b.g,pt:(b.M/1E3).toFixed(2),pb:b.I};b.shost=yi(a.D)||"";a.C&&(b.rc=a.C.toString());return b}
f.start=function(){var a=1==this.state,b=6==this.state;1==this.state||4==this.state||b&&EL(this);FL(this,2);if(b){if(2>this.j){this.j++;a=CL.b*(.5+Math.random());1==this.j&&(a=2E3);L(u(this.tm,this),a);return}b=this.info.j;if(!(this.F<=b.j)){b.g++;b.j=Ho-1;var c=gf(b.b);b.b=zo(c,"cmo",encodeURIComponent("pf="+b.g));c.match("c\\.youtube\\.com/")&&(b.b+="&cmo=sensitive_content%3Dyes")}this.j=0}a?this.tm():L(u(this.tm,this),0)};
f.tm=function(){if(!this.fa()){this.F=Ho++;var a;a=Ro(this.info);a=zo(a,"keepalive","yes");this.j&&(a=zo(a,"playerretry",this.j.toString()));this.D=a;this.b=new XMLHttpRequest;try{this.b.open("GET",a)}catch(b){this.o="net.ssl";FL(this,6);return}this.b.responseType="arraybuffer";this.b.withCredentials=!0;var c=u(this.Qu,this);this.b.addEventListener("load",c,!1);this.b.addEventListener("error",c,!1);this.b.send();this.A=0;c=this.timing;c.j=v();c.o=c.j;c.g=0;c.D=!1;c.F=!1;c.k=0;c.C=jK(c.b);GL(c);c.M=
c.B-c.j;this.b.addEventListener("progress",u(this.Ru,this),!1);0<this.va.j&&(this.g=L(u(this.wo,this),this.va.j));xo(a,"itag");xo(a,"range");Math.round(this.info.b[0].o);Math.round(db(this.info.b).C);v()}};f.Ru=function(a){if(!this.fa()){this.b&&(this.C=this.b.status);var b=this.timing,c=a.timeStamp;a=a.loaded;c=c>b.j&&4E12>c?c:v();20>c-b.o||HL(b,c,a);b=this.timing;b.g>b.L&&8192<b.g&&3>this.state&&FL(this,3)}};
f.Qu=function(a){var b=this.b;if(!this.fa()&&a.target==b){this.g&&(N(this.g),this.g=NaN);this.C=b.status;a=!1;400<=b.status?(a=!0,this.o="net.badstatus"):null==b.response&&(a=!0,this.o="net.connect");if(!a){var b=b.response,c;t:{if(2048>b.byteLength&&(c=String.fromCharCode.apply(String,new Uint8Array(b)),df(c)))break t;c=""}if(c){c=yo(c,"keepalive");c=yo(c,"playerretry");b=this.info;if(b.g){var d=b.g;if(d){var e=d.split("?");if(0<e.length)for(var g=e[0].split("/"),d=0;d<g.length;d+=2)c=yo(c,g[d]);
if(1<e.length)for(e=e[1].split("&"),d=0;d<e.length;d++)c=yo(c,e[d].split("=")[0])}}c=yo(c,"range");b.j.b=c;FL(this,4)}else if(this.info.Z&&b.byteLength!=this.info.Z.length)a=!0,this.o="fmt.unparseable";else{c=this.info.b;1!=c.length||c[0].Z||(d=c[0],e=wo(0,b.byteLength),d=new Jo(d.type,d.b,e,d.k,d.startTime,d.duration,d.j,e.length,d.B),c[0]=d);for(var d=[],e=0,h=!1,g=!1,k=0;k<c.length;k++){var l=c[k],q=b,r=wo(e,l.g),t=!1;if(1==l.type)b.slice?q=b.slice(e,e+l.g):(h=new Uint8Array(b,e,e+l.g),q=(new Uint8Array(h)).buffer),
r=wo(0,l.g),h=!0;else if(3==l.type||4==l.type)t=h&&!g,g=!0;d.push(new cp(l,q,r,t));e+=l.g}this.k=d;c=this.timing;d=v();b=b.byteLength;c.D||(c.D=!0,d=d>c.j&&4E12>d?d:v(),HL(c,d,b),e=(d-c.j)/1E3,c.F||!(8192<=c.g)||c.b.b.b||aK(c.b,e,b),8192<=c.g&&fK(c.b,b,c.k),eK(c.b,d-c.j,c.g),IL(c));v();FL(this,5)}}a&&(EL(this),FL(this,6))}};function EL(a){if(2>a.j)a=!0;else{var b=a.info.j;a=!(a.F>b.j&&1<=b.g)}return a}function FL(a,b){a.state=b;4<=a.state&&IL(a.timing);a.B&&a.B(a)}
f.wo=function(){this.g=NaN;if(!this.fa()){var a=v(),b=!1;if(8192<=this.timing.g){var c=this.timing.B;GL(this.timing);this.timing.B-c>=.8*this.va.j?(this.A++,b=5<=this.A):this.A=0}else b=this.timing,b=5E3<a-(b.j+1E3*b.C.delay);b?(b=this.timing,a=a>b.j&&4E12>a?a:v(),8192<=b.g||b.b.b.C?(b.k+=(a-b.o)/1E3,fK(b.b,b.I,b.k)):cK(b.b,a,(a-b.j)/1E3),eK(b.b,a-b.j,b.g),JL(this),this.o="net.timeout",FL(this,Ko(this.info.b[0])?6:7)):this.g=L(u(this.wo,this),this.va.j)}};f.fa=function(){return-1==this.state};
f.dispose=function(){FL(this,-1);this.B=this.k=null;JL(this);N(this.g);this.g=NaN};function JL(a){if(a.b){var b=a.b;a.b=null;b.abort()}IL(a.timing)};function KL(a,b,c,d){this.b=a;this.priority=b;this.I=c;this.L=d;this.g=this.o=this.j=NaN;this.F=this.D=this.A=!1;this.k=0;this.B=this.M=NaN}function IL(a){if(a.A){var b=a.b;b.k--;0==b.k&&b.g&&(b.j.b(.1,b.g/.1),b.g=0);a.A=!1}}
function HL(a,b,c){if(!a.A)8192<=c&&(cK(a.b,b,(b-a.j)/1E3),a.A=!0);else if(!a.b.b.b){var d=(b-a.o)/1E3,e=c-a.g;0<e&&(.2<d||1024>e?(a.k+=d,.2<d&&aK(a.b,.05,e)):aK(a.b,d,e),a.F=!0)}if(a.A&&a.b.b.b&&(e=c-a.g,d=a.b,d.b.b)){if(0<d.k){for(var g=b/1E3,h=0;d.o+.1<g&&10>h;h++)d.j.b(.1,d.g/.1),d.g=0,d.o+=.1;d.g+=e}bK(d)}a.o=b;a.g=c}function GL(a){var b=a.I-a.g,b=1E3*(b*a.C.tailDelay+b/a.C.byterate),c=v(),b=8192<=a.g?b+c:b+Math.max(c,a.j+1E3*a.C.delay);a.B=b};function LL(a,b,c,d){aj.call(this);this.A=a;this.va=b;this.D=c;this.g=this.j=null;this.B=new $K(a,b);this.b=null;this.o=new dL(this.B,b,this.D,d);this.k=this.aa=this.O=this.P=NaN;this.F=!1;this.L=NaN;this.T=0;this.C=!1;this.da={};this.N="";this.U=!1;this.I=0}w(LL,aj);LL.k=!1;LL.b=2/24;LL.g=1E3;LL.j=1E4;f=LL.prototype;
f.initialize=function(a,b,c){a=a||0;var d=this.o;d.o="i";kL(d);d.C=d.g;fL(d,b);lL(d);d.j=d.A;b=jL(d);this.j=new mL(this.va,b.b);this.g=new mL(this.va,b.video);this.H("formatchange",b);0!=a||c||(this.j.j.j||ML(this,this.j,!0),this.g.j.j||ML(this,this.g,!0));this.seek(a);NL(this,"gv")};f.resume=function(){this.C=!1};
f.Qz=function(a){this.resume();this.b=a;jr(a)&&(a.b.addEventListener("updateend",u(this.qc,this),!1),a.g.addEventListener("updateend",u(this.qc,this),!1));NL(this,"msa");this.qc();this.aa=Ue(u(this.qc,this),LL.j)};function OL(a){a.b&&a.b.b&&a.b.b.removeEventListener&&(a.b.b.removeEventListener("updateend",u(a.qc,a),!1),a.b.g.removeEventListener("updateend",u(a.qc,a),!1));a.b=null;a.C=!0;a.j&&(PG(a.g,!1),PG(a.j,!1))}function PL(a){a.b&&hr(a.b)&&OL(a)}
function QL(a,b,c){if(!b.B||!c.remove)return!1;if(c.updating)return!0;if(c.buffered.length)return a=c.buffered.end(c.buffered.length-1),c.remove(0,a),!0;b.B=!1;a.H("seekrequired");return!1}
function RL(a,b,c){if(!b.g){if(!b.j.mc())return b.j.j||ML(a,b,!1),!1;sL(b,a.k)}if(a.C)return!1;var d=b.pendingRequests_.length+c.pendingRequests_.length;if(zL(b)||zL(c))d-=1;if(2<=d+1)return!1;d=b.g;4==d.type&&d.b.mc()&&(b.g=db(d.b.Gi(d)),d=b.g);!d.B&&!d.b.zg(d)||d.b.info.b&&4==d.type?a=!1:AL(b)&&a.va.b?a=!0:(!(c=d.B||b.o+c.o>a.va.g||BL(c,d.C))&&(c=3==d.type)&&(d=d.C,b=SL(a,b,!0),Ip(a.o.b)||(c=(v()-a.T)/1E3,b=Math.min(b,30+2*c)),c=d>a.k+b),a=c?!1:!0);return a}
function TL(a,b,c){if(!a.b||gr(a.b)||jr(a.b)){var d=a.k,e;e=a.B;c=aL(e,b.j.info.ra,c.j.info.ra,0);e=gK(e.b)+c*hK(e.b)+c/iK(e.b);e=Math.max(e,e+5-c/b.j.info.ra);d=d+e;(e=a.va.L)||(a=a.o,e=!!(a.j&&a.A&&a.j.info.ra<a.A.info.ra&&"r"==a.o));t:if(a=e,!b.va.I||qL(b)){if(b.pendingRequests_.length){if(b.pendingRequests_[0].info.b[0].startTime<=d)break t;uL(b)}for(e=b.b.length-1;0<=e;e--)c=b.b[e],c.info.startTime>d&&(b.b.pop(),b.b.length&&b.b[e-1].buffer==c.buffer||(b.o-=c.buffer.byteLength));rL(b);a&&b.g&&
d<b.g.startTime&&(b.g=b.j.xi(d,!0).b[0])}}}
function UL(a,b,c){RL(a,b,c);var d=b.g;if(b.g.b.mc()){AL(b)&&a.va.b&&(TL(a,b,c),b.g||sL(b,a.k));var d=b.g,e=d.C-a.k,g;(g=b.j.mc()&&b.g.b!=b.j)&&!AL(b)&&(g=15>=e);var h=!d.Z||0==d.g&&0==d.j?0:d.Z.length-(d.j+d.g);g&&0==h&&(g=d.startTime+LL.b,d.g&&(g+=d.duration),sL(b,g),d=b.g,g=!1);d.b.Fl()?(c=aL(a.B,d.b.info.ra,c.j.info.ra,e),e=g,c=No(d,c),c.Z&&1<c.b.length&&(e?c=No(d,c.b[0].g):(e=c.b[c.b.length-1],g=e.g/c.Z.length,!e.A&&.4>g&&(c=No(d,c.Z.length-e.g)))),d=c):d=Uo(d.b,d)}else d.b.Fl()?(c=aL(a.B,b.j.info.ra,
c.j.info.ra,0),d=No(d,c)):d=Uo(d.b,d);nL(b,VL(a,d,!1))}function VL(a,b,c){if(3==b.b[b.b.length-1].type){var d;t:{d=a.o;var e=b.b[0].b;if(e.info.video){if(d.j!=e){d.j=e;d=jL(d);break t}}else d.C=e;d=null}MG(a,d)}e=c?2:1;a.C&&(e=0);c=So(b);d=a.A;var g=a.B,h=Math.min(2.5,gK(g.b)),g=bL(g);b=new CL(a.va,b,new KL(d,e,c,c-h*g));a=u(a.fz,a);b.B=a;b.start();return b}function MG(a,b){b&&a.H("formatchange",b)}
f.fz=function(a){if(!this.fa()&&3<=a.state){var b=a.info.b[0].b,c=!this.ca&&b.info.video,d=!this.V&&b.info.b;6==a.state&&EL(a)?(this.wf(!1,a.getErrorCode(),DL(a)),b.info.video&&0<a.j&&!iL(this.o)?(hL(this.o,b.info),uL(this.g),Ko(a.info.b[0])&&ML(this,this.g,!1),this.qc()):a.start()):4==a.state?(c?NL(this,"vrr"):d&&NL(this,"arr"),a.start()):5==a.state?(c?(this.ca=a.D,cz()&&iz()):d&&(this.V=a.D),z(a.k,function(a){Ko(a.info)&&a.info.b.Pp(a)}),lb(a.k,function(a){return dp(a)})&&!a.k[0].info.b.Ol()?this.qc():
this.wf(!0,"fmt.unparseable",DL(a))):7==a.state?(this.wf(!1,a.getErrorCode(),DL(a)),QG(this)):3==a.state?(this.qc(),c&&cz()&&og(document.body,"exp-js-scheduler-aggressive")&&iz()):Ko(a.info.b[0])?(b.o=!0,this.qc()):this.wf(!0,"net.retryexhausted",DL(a))}};function QG(a){if(isNaN(a.P)){var b=u(a.qc,a);a.P=L(b,0)}}function WL(a){if(isNaN(a.O)){var b=u(function(){this.O=NaN;this.qc()},a);a.O=L(b,LL.g)}}
f.qc=function(){this.P=NaN;PL(this);if(this.b&&!ir(this.b))if(this.D.g)Infinity!=this.L&&(this.L=Infinity,this.b.vf(Infinity));else if(!isFinite(this.L)){var a=Math.floor(Math.max(this.j.j.index.yf(),this.g.j.index.yf()));0<a&&(this.b.vf(a),this.L=a)}if(!this.fa())if(a=this.D,v()-a.B>=a.o){a=this.D;if(!a.k){var b=zo(a.D,"start_seq",(Rb(a.b).index.kc()+1).toString());yp(a,b)}WL(this)}else if("prerender"==window.document.webkitVisibilityState)WL(this);else if(PL(this),oL(this.g),oL(this.j),vL(this.g),
vL(this.j),!this.b||QL(this,this.j,this.b.b)||QL(this,this.g,this.b.g)||((a=XL(this,this.g,this.b.g))&&!this.I&&(this.I=v(),NL(this,"vda")),b=Ct(this.b.g.buffered,this.k),isNaN(b)&&!xL(this.g)&&this.b.b.buffered.length||(xL(this.g)&&(b=NaN),a|=XL(this,this.j,this.b.b,b)),xL(this.g)&&xL(this.j)&&gr(this.b)&&!ir(this.b)&&(b=this.b,gr(b)&&b.j.endOfStream(),dK(this.A)),a&&!jr(this.b)&&QG(this)),OG(this,this.g,gL(this.o)),OG(this,this.j,this.o.g),this.g.j.o||this.j.j.o)this.wf(!0,"net.retryexhausted");
else{a=this.I?v()-this.I:0;if(this.U||a>=this.va.D)RL(this,this.g,this.j)&&UL(this,this.g,this.j),RL(this,this.j,this.g)&&UL(this,this.j,this.g);!this.va.M||!this.N||this.C||this.g.pendingRequests_.length||this.j.pendingRequests_.length||(a=30+this.k,BL(this.g,a)||BL(this.j,a)||(a=this.N,this.N="",b=yi(a),Hi(a,{format:"RAW",responseType:"arraybuffer",timeout:15E3,onError:u(this.wf,this,!1,"pathprobe.net",{shost:b})})))}};
function XL(a,b,c,d){if(c.updating)return!0;var e=b.b.length?b.b[0]:null;if(!e)return!1;!b.k||b.k.A||Lo(b.k,e.info)||(b.k=null,gr(a.b)&&c.abort(),c.g=null);var g;e.b?g=!1:(g=e.info.b.b,c.g==g?g=!1:(YL(a,c,g),c.g=g,a.H("initsegment",c.g),g=!0));if(g&&c.updating)return!0;g=SL(a,b,!1);g=a.k+g;0<=d&&(g=Math.min(g,d));d=pL(b,g);if(!d)return!1;g=new Uint8Array(e.buffer,d.start,d.length);if(a.D.j&&3==e.info.type&&ja(c.timestampOffset)){var h=0,h=a.va.V&&!b.A?-ep(e):-(ep(e)-e.info.startTime);c.timestampOffset==
h||isNaN(h)||(c.timestampOffset=h)}if(!YL(a,c,g))return!1;if(!a.D.j||!a.va.V||b.A){for(var k;b.b.length;){if(b.b[0].Z.end>d.end){k=b.b[0];var l=d.end-b.b[0].Z.start+1,l=Math.min(l,k.info.g),h=new Jo(k.info.type,k.info.b,k.info.Z,k.info.k,k.info.startTime,k.info.duration,k.info.j,l,!1);g=wo(k.Z.start,l);h=new cp(h,k.buffer,g,k.b);l=new Jo(k.info.type,k.info.b,k.info.Z,k.info.k,k.info.startTime,k.info.duration,k.info.j+l,k.info.g-l,k.info.B);g=new uo(g.end+1,k.Z.end);g=[h,new cp(l,k.buffer,g,!1)];k=
g[0];b.b[0]=g[1]}else k=b.b.shift();g=b;h=k.info;g.k=h;g.C&&g.k.A&&(g.C=!1);g.ra=Math.max(g.ra,h.b.info.ra);if(k.Z.end==d.end)break}b.b.length&&k.buffer==b.b[0].buffer||(b.o-=k.buffer.byteLength)}b.A||(b.A=!0);e.b&&(c.g=e.info.b.b,a.H("initsegment",c.g));return!jr(a.b)||c.updating}function YL(a,b,c){if(jr(a.b))try{b.appendBuffer(c)}catch(d){return!1}else b.append(c);return!hr(a.b)}
function SL(a,b,c){var d;d=Ip(a.o.b)&&a.va.b?b.j.info.b?10485760:62914560:b.j.info.b?a.va.k:a.va.o;c&&(d+=a.va.g);return d/(Ip(a.o.b)?b.g?b.g.b.info.ra:b.j.info.ra:b.ra)}f.seek=function(a){if(!this.fa()){PL(this);this.T=v();this.g.j=gL(this.o);var b=ZL(this,this.g,a,this.b&&this.b.g);this.j.j=this.o.g;var c=ZL(this,this.j,b,this.b&&this.b.b);this.k=Math.max(a,b,c);this.F=!0;QG(this)}};
function ZL(a,b,c,d){if(b.j.mc())if(d){var e=Ct(d.buffered,c),g=NaN,h=b.k;h&&(g=Ct(d.buffered,h.b.index.Ui(h.k)));if(e==g&&qL(b))return c;d=tL(b,c);if(0<=d)return d;PG(b,!0);b.j.info.video&&b.k&&!b.k.A&&!wL(b)&&(d=b.k,b.b.length&&(d=db(b.b).info),d=b.g||d,d=No(d,d.Z.length-(d.g+d.j)),nL(b,VL(a,d,!0)));if(isNaN(e))return sL(b,c);sL(b,e+LL.b)}else sL(b,c);else b.j.j||ML(a,b,!1),0!=c&&uL(b);return c}function OG(a,b,c){b.j!=c&&(b.j=c,c.j||ML(a,b,!1))}
function ML(a,b,c){var d=c?65536:0;c&&!isNaN(a.va.C)&&(d=Math.floor(Math.max(d,a.va.C*b.j.info.ra)));c=b.j.Hr(d);z(c,function(a){var c=VL(this,a,!0);!Ko(a.b[a.b.length-1])&&nL(b,c)},a);b.j.j=!0}f.J=function(){OL(this);this.j&&(uL(this.j),uL(this.g));Ve(this.aa);this.g=this.j=null;LL.G.J.call(this)};f.wf=function(a,b,c){var d;if(c)for(var e in c)d=(d?d+";":"")+e+"."+c[e];this.H(a?"fatalerror":"softerror",b,d);a&&(this.b&&gr(this.b)&&(a=this.b,gr(a)&&a.j.endOfStream("network")),this.dispose())};
LL.prototype.getDebugInfo=function(){var a={lct:this.k.toFixed(3),lsk:this.F,lmf:Ip(this.o.b),lbw:iK(this.A).toFixed(3),lhd:gK(this.A).toFixed(3),ltd:(1E9*hK(this.A)).toFixed(3),laa:this.j.k?Qo(this.j.k):"",lva:this.g.k?Qo(this.g.k):"",lar:this.j.g?Qo(this.j.g):"",lvr:this.g.g?Qo(this.g.g):""};this.b&&!hr(this.b)&&(a.lab=At(this.b.b.buffered),a.lvb=At(this.b.g.buffered));return a};function NL(a,b,c){a.da[b]=c?window.performance.timing.navigationStart+c:v()};function $L(a,b,c,d){this.j=a;this.F=b;this.A=c;this.b=d;this.o="";this.g=this.B=this.C=this.D=null;this.k=new br(this);S(this,this.k);this.b&&(cr(this.k,this.b,["message","mskeymessage"],this.Ko),cr(this.k,this.b,["error","mskeyerror"],this.Jo),cr(this.k,this.b,["ready","mskeyadded"],this.Io))}w($L,Ih);f=$L.prototype;f.setCallbacks=function(a,b,c,d){this.D=a;this.C=b;this.B=c;this.g=d};f.Ko=function(a){this.D.call(this.g,a)};
f.Jo=function(a){var b;this.b?(b=this.b.error.code,a=this.b.error.systemCode):(b=a.errorCode.code,a=a.systemCode);this.C.call(this.g,b,a)};f.Io=function(a){this.B.call(this.g,a)};f.update=function(a){this.b?this.b.update(a):this.j.addKey?this.j.addKey(this.F.b,a,this.A,this.o):this.j.webkitAddKey(this.F.b,a,this.A,this.o)};f.J=function(){this.j=null;$L.G.J.call(this)};function aM(a,b){this.b=a;this.k=b;this.A={};this.j=null;this.o=new br(this);S(this,this.o);Xq()||(cr(this.o,this.b,["keymessage","webkitkeymessage"],this.D),cr(this.o,this.b,["keyerror","webkitkeyerror"],this.C),cr(this.o,this.b,["keyadded","webkitkeyadded"],this.B));this.g=null}w(aM,Ih);function bM(a){a.g=new (Xq())(a.k.b);a.b&&(a.b.msSetMediaKeys?a.b.msSetMediaKeys(a.g):a.b.setMediaKeys(a.g))}
function cM(a,b){var c=a.A[b.sessionId];!c&&a.j&&(c=a.j,a.j=null,c.o=b.sessionId,a.A[b.sessionId]=c);return c}aM.prototype.D=function(a){var b=cM(this,a);b&&b.Ko(a)};aM.prototype.C=function(a){var b=cM(this,a);b&&b.Jo(a)};aM.prototype.B=function(a){var b=cM(this,a);b&&b.Io(a)};aM.prototype.J=function(){this.b=null;aM.G.J.call(this)};var dM=null,eM=null;function fM(a,b){this.url=a;this.b=b};function gM(a,b,c){this.b=a;this.headers=b;this.message=c};function hM(a,b,c,d,e,g){this.F=a;this.g=d;this.C=e;this.o={session_id:g};nt(this,a.j);this.b=[];this.k=this.B=this.D=!1;var h;try{var k=c.b;if(Xq()){b.g||bM(b);var l=c.g||"video/mp4",q;if("com.microsoft.playready"==b.k.b){var r=new Uint8Array(270);for(a=0;135>a;a++)r[2*a]='<PlayReadyCDMData type="LicenseAcquisition"><LicenseAcquisition version="1.0" Proactive="true"></LicenseAcquisition></PlayReadyCDMData>'.charCodeAt(a);q=b.g.createSession(l,k,r)}else q=b.g.createSession(l,k);h=new $L(null,null,
null,q)}else b.b.generateKeyRequest?b.b.generateKeyRequest(b.k.b,k):b.b.webkitGenerateKeyRequest(b.k.b,k),b.j=new $L(b.b,b.k,k,null),h=b.j}catch(t){b="g",t instanceof DOMException&&(b+=t.code),this.g.H("licenseerror","html5.missingapi.drm",b,"YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK"),h=null}if(this.j=h)this.j.setCallbacks(this.Pk,this.iv,this.hv,this),S(this,this.j)}w(hM,Ih);function nt(a,b){if(bf(b)){for(var c in a.o)b=be(b,c,a.o[c]);a.A=b}else iM(a,"drm.auth","u")}f=hM.prototype;
f.start=function(){this.fa()||(this.D=!0,this.b.length&&this.Pk(this.b.shift()))};
f.Pk=function(a){if(!this.fa())if(this.k&&a.defaultURL&&nt(this,a.defaultURL),this.D){a=a.message;if("com.microsoft.playready"==this.F.b){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(!dM)for(dM={},eM={},c=0;65>c;c++)dM[c]="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".charAt(c),eM[dM[c]]=c;for(var c=eM,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",Zw:a,responseType:"arraybuffer",withCredentials:!0,onSuccess:this.$w,onError:this.$o,context:this};b=this.A;this.C&&(b=be(b,"access_token",this.C));Hi(b,a)}else this.b.push(a),this.B||(this.B=!0,this.g.H("newsession",this))};
f.hv=function(){this.fa()||(this.k||(this.g.H("sessionready"),this.k=!0),this.b.length&&this.Pk(this.b.shift()))};
f.$w=function(a){if(!this.fa())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];sb(c,0);c.pop();var b=b+(d.length+2),e=d.match(/^GLS\/1.\d ([0-9]{1,3}) (\w+)$/);if(null!=e){d=e[1];isFinite(d)&&(d=String(d));for(var d=s(d)?/^\s*-?0x/i.test(d)?parseInt(d,16):parseInt(d,10):NaN,g={},h=0;h<c.length;h++){e=c[h];b+=e.length+2;if(0==e.length){a=new gM(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.b?iM(this,"drm.auth","f"+a.b,Bu(a.b)):(b=(b=a.headers["Authorized-Format-Types"])?b.split(","):null,c=null,(d=a.headers["Heartbeat-Url"])&&(c=new fM(d,parseInt(a.headers["Heartbeat-Interval-Secs"],10)||60)),(b||c)&&this.g.H("newlicense",b,c),this.j.update(a.message)):iM(this,"drm.net","r0","YTP_ERROR_SERVER_ERROR")}else this.$o(a)};f.iv=function(a,b){this.fa()||iM(this,"drm.keyerror","s"+a+"."+b)};f.$o=function(a){iM(this,"drm.net","r"+a.status)};
function iM(a,b,c,d){a.fa()||a.g.H("licenseerror",b,c,d);a.dispose()}f.J=function(){this.g=null;hM.G.J.call(this)};function jM(a,b){this.b=a;this.g=b||null};function kM(a,b){aj.call(this);this.C=a;this.b=b;this.subscribe("newlicense",this.Iu,this);this.subscribe("newsession",this.Ju,this);this.subscribe("sessionready",this.Ku,this);this.N=hq();this.L=null;this.B={};this.g=[];this.j=Fp;this.I=new aM("com.microsoft.playready"==b.b?null:a,b);S(this,this.I);this.o=new aM(a,b);S(this,this.o);this.A=2;this.D=new br(this);S(this,this.D);this.k=!1;this.F=null;cr(this.D,this.C,Xq()?["needkey","msneedkey"]:["needkey","webkitneedkey"],this.Hu)}w(kM,aj);f=kM.prototype;
f.Hu=function(a){lM(this,new jM(a.initData,a.contentType),!0)};
function lM(a,b,c){if(!(a.fa()||"com.microsoft.playready"==a.b.b^!c||(c=b.b,a.k&&"widevine"==a.b.g))){var d=String.fromCharCode.apply(String,c);if(!a.B[d]){a.B[d]=!0;d="clearkey"==a.b.g;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.g.push(b);1<a.g.length||(mM(a,b),a.k=!0)}}}function mM(a,b){var c=new hM(a.b,a.I,b,a,a.L,a.N);S(a,c)}f.Iu=function(a,b){a&&C(a,"HD")&&!Hp(this.j)&&"com.microsoft.playready"!=this.b.b&&(this.j=Gp,this.H("qualitychange"));b&&!this.F&&(this.F=b,this.H("heartbeatparams",b))};f.Ju=function(){this.fa()||(this.g.shift(),this.g.length&&mM(this,this.g[0]))};f.Ku=function(){this.A--;0==this.A&&bM(this.o)};
f.J=function(){this.C=null;this.g=[];kM.G.J.call(this)};function nM(a){this.j={};this.j.c1a=u(this.k,this);this.j.c3a=u(this.o,this);(this.b=a)&&this.b.ca?this.g=wi(this.b.ca):this.g=[]}nM.prototype.k=function(){var a=p("yt.abuse.botguardInitialized");return a&&a()?(a=p("yt.abuse.invokeBotguard")())?"r1a="+a:null:null};nM.prototype.o=function(a){return"r3a="+Math.floor(this.b.Oa%$a(a.c3a))};function oM(a,b,c){this.b=a;this.j=b;this.g=c};function pM(a){this.b=a}function qM(a,b){return Jp(Jp(a.b.vi,b.bm),b.sf)}
function rM(a,b){var c;c=!!b.g.b;var d;!a.b.b.F||"detailpage"!=a.b.$&&"adunit"!=a.b.$||(d=HJ(a.b).clone());d||(a.b.og?d=a.b.og.clone():kh&&!a.b.pi?d=window.screen&&window.screen.width?new G(window.screen.width,window.screen.height):null:a.b.Yc&&(d=a.b.Yc.clone()));d?((kh||jc||c)&&d.scale(window.devicePixelRatio||1),c=d):c=new G(640,360);var e;d=b.g.g;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=Ep("auto",e.b,!1)}else e=Gp;c=e.b;a.b.b.N&&
(c=Math.max(c,qo.large));nh&&nr("crkey")&&(c=Math.max(c,qo.hd1080));if(d=(nr("armv7")||nr("android"))&&!gE(a.b))d=b.g.g[0],d="9"==d.j||"("==d.j;d&&(c=Math.min(c,qo.large));a.b.b.V&&a.b.Yc&&540==a.b.Yc.height&&(c=Math.max(c,qo.hd720));c=Math.max(c,qo.medium);e.b!=c&&(e=new Dp(e.g,c,e.j));return e};function sM(){this.k=this.b=NaN;this.j=this.g=!1}function Vt(a,b,c,d){if(d=1<d)a.j=!0;if(a.g)b!=a.b&&(a.g=!1);else if(0<b&&a.b==b)return c-a.k>(d||!a.j?1500:400);a.b=b;a.k=c;return!1};function tM(){this.b=this.g=!1}tM.prototype.start=function(){this.g=!0};function uM(){this.g=0;this.b=this.o=this.j=this.k=NaN};var vM={};function wM(a){return a?24==a.length&&"UC"==a.slice(0,2)?a.substr(2):22==a.length?a:null:null};var xM;
xM={o:["BC","AD"],k:["Before Christ","Anno Domini"],B:"JFMAMJJASOND".split(""),N:"JFMAMJJASOND".split(""),A:"January February March April May June July August September October November December".split(" "),L:"January February March April May June July August September October November December".split(" "),F:"Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec".split(" "),P:"Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec".split(" "),aa:"Sunday Monday Tuesday Wednesday Thursday Friday Saturday".split(" "),T:"Sunday Monday Tuesday Wednesday Thursday Friday Saturday".split(" "),
M:"Sun Mon Tue Wed Thu Fri Sat".split(" "),V:"Sun Mon Tue Wed Thu Fri Sat".split(" "),C:"SMTWTFS".split(""),O:"SMTWTFS".split(""),I:["Q1","Q2","Q3","Q4"],D:["1st quarter","2nd quarter","3rd quarter","4th quarter"],b:["AM","PM"],g:["EEEE, MMMM d, y","MMMM d, y","MMM d, y","M/d/yy"],U:["h:mm:ss a zzzz","h:mm:ss a z","h:mm:ss a","h:mm a"],j:["{1} 'at' {0}","{1} 'at' {0}","{1}, {0}","{1}, {0}"],sE:6,da:[5,6],tE:5};function yM(a,b,c,d,e,g){s(a)?(this.j="y"==a?b:0,this.g="m"==a?b:0,this.b="d"==a?b:0,this.k="h"==a?b:0,this.o="n"==a?b:0,this.A="s"==a?b:0):(this.j=a||0,this.g=b||0,this.b=c||0,this.k=d||0,this.o=e||0,this.A=g||0)}yM.prototype.equals=function(a){return a.j==this.j&&a.g==this.g&&a.b==this.b&&a.k==this.k&&a.o==this.o&&a.A==this.A};yM.prototype.clone=function(){return new yM(this.j,this.g,this.b,this.k,this.o,this.A)};
yM.prototype.add=function(a){this.j+=a.j;this.g+=a.g;this.b+=a.b;this.k+=a.k;this.o+=a.o;this.A+=a.A};function zM(a,b,c){ja(a)?(this.b=AM(a,b||0,c||1),BM(this,c||1)):la(a)?(this.b=AM(a.getFullYear(),a.getMonth(),a.getDate()),BM(this,a.getDate())):(this.b=new Date(v()),this.b.setHours(0),this.b.setMinutes(0),this.b.setSeconds(0),this.b.setMilliseconds(0))}function AM(a,b,c){b=new Date(a,b,c);0<=a&&100>a&&b.setFullYear(b.getFullYear()-1900);return b}f=zM.prototype;f.Zr=xM.sE;f.$r=xM.tE;
f.clone=function(){var a=new zM(this.b);a.Zr=this.Zr;a.$r=this.$r;return a};f.getFullYear=function(){return this.b.getFullYear()};f.getMonth=function(){return this.b.getMonth()};f.getDate=function(){return this.b.getDate()};f.getTime=function(){return this.b.getTime()};f.set=function(a){this.b=new Date(a.getFullYear(),a.getMonth(),a.getDate())};
f.add=function(a){if(a.j||a.g){var b=this.getMonth()+a.g+12*a.j,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.b.setDate(1);this.b.setFullYear(c);this.b.setMonth(b);this.b.setDate(d)}a.b&&(a=new Date((new Date(this.getFullYear(),this.getMonth(),this.getDate(),12)).getTime()+864E5*a.b),this.b.setDate(1),this.b.setFullYear(a.getFullYear()),
this.b.setMonth(a.getMonth()),this.b.setDate(a.getDate()),BM(this,a.getDate()))};f.FE=function(){return[this.getFullYear(),Ta(this.getMonth()+1),Ta(this.getDate())].join("")+""};f.equals=function(a){return!(!a||this.getFullYear()!=a.getFullYear()||this.getMonth()!=a.getMonth()||this.getDate()!=a.getDate())};f.toString=function(){return this.FE()};function BM(a,b){a.getDate()!=b&&a.b.setUTCHours(a.b.getUTCHours()+(a.getDate()<b?1:-1))}f.valueOf=function(){return this.b.valueOf()};var CM=["3djj8jS0370cu_ghKs_Ong","LsooMJoIpl_7ux2jvdPB-Q","JkWoS4RsldA1coEIot5yDA","jVkjd2VWCWO-9DHRQER3Yg","L8ZULXASCc1I_oaOT0NaOQ"];function DM(a){this.g=a;this.b=0;this.o=NaN;this.j=0;this.ba=[];this.k=EM(this.g);this.A=this.B=0}function FM(a){a.k.startTime=a.j;a.k.endTime=a.b;a.ba.length&&db(a.ba).isEmpty()?a.ba[a.ba.length-1]=a.k:a.ba.length&&a.k.isEmpty()||a.ba.push(a.k);a.B+=a.b-a.j;a.k=EM(a.g);a.j=a.b}function GM(a){return a.B+a.g.j()-a.j}function HM(a){a.ba.length&&a.b==a.j||FM(a);var b=a.ba;a.ba=[];return b}
DM.prototype.update=function(){var a=this.g.j()||0,b=IM(this.g);if(a!=this.b||JM(this,a,b)){if(a<this.b||a-this.b>b-this.o+.5||JM(this,a,b))FM(this),this.j=a;this.o=b;this.b=a}};function JM(a,b,c){c-=a.o;return b==a.b&&.5<c};function KM(a,b){this.b=b;this.k=!1;this.g=a}KM.prototype.j=function(){return{ps:this.b.qb,el:this.b.$}};KM.prototype.send=function(){this.k||(mf(Yd(this.b.tb+"set_awesome",this.j())),this.k=!0)};function LM(a,b,c){KM.call(this,b,c);this.o=a}w(LM,KM);
LM.prototype.j=function(){var a=LM.G.j.call(this);sa(a,TK(this.b));var b=Ib(this.g.jg/this.g.Oa,0,1);sa(a,{html5:"1",video_id:this.g.videoId,eurl:this.b.g,framer:this.b.F,feature:this.b.B,list:this.g.La,w:b,l:this.g.Oa,plid:this.g.yb,ei:this.g.A,access_token:this.g.B,tpmt:GM(this.o),cpn:this.g.Da});this.b.k&&(a.adformat=this.b.k);this.b.D&&(a.referrer=XK(this.b));this.b.yc&&(a.autoplay="1");this.b.Sa&&(a.authuser=this.b.Sa);this.b.Za&&(a.pageid=this.b.Za);this.g.qe&&(a.splay="1");this.g.I&&(a.subscribed=
this.g.I);sa(a,LM.G.j.call(this));sa(a,TK(this.b));return a};function MM(a){this.b=a;this.j={};this.M=NaN;this.o=new Xv(this.Gu,3E4,this);S(this,this.o);this.A=new Xv(this.xk,100,this);S(this,this.A);this.g="N";this.k=0;this.D=this.L=NaN;this.N="";this.C=this.F=0;this.I=this.B=!1}w(MM,Ih);var NM={5:"N","-1":"N",3:"B",0:"EN",2:"PA",1:"PL"};function OM(a,b,c,d){var e=a.j[b];e||(e=[],a.j[b]=e);a=0<=d?d:IM(a.b);e.push(a.toFixed(3)+":"+c.join(":"))}f=MM.prototype;
f.xk=function(a){a=a||IM(this.b);var b=this.b.B();if(!isNaN(this.O)&&!isNaN(b.j)){var c=b.j-this.O;0<c&&OM(this,"bwm",[c,(b.o-this.P).toFixed(3)],a)}this.O=b.j;this.P=b.o;isNaN(b.b)||OM(this,"bwe",[b.b.toFixed(0)],a);isNaN(b.g)||(c=b.g,b.k<c&&(c=b.k),this.L!=c&&(OM(this,"bh",[c.toFixed(3)],a),this.L=c),this.b.g.b.B&&3>c&&("PL"==this.g||"B"==this.g)&&this.A.start());OM(this,"cmt",[this.b.j()],a)};
function PM(a){var b={event:"streamingstats"};a.b.b.b&&(b.fmt=a.b.b.b.id);b.cpn=a.b.b.Da;b.ei=a.b.b.A;b.el=a.b.g.$;b.docid=a.b.b.videoId;b.ns=a.b.g.Wc;b.fexp=a.b.g.b.b.toString();a.b.g.k&&(b.adformat=a.b.g.k);a.b.b.eb&&(b.live=a.b.b.ob?"dvr":"live");b.html5="1";return b}
f.sg=function(a){if(!this.fa()&&!Yb(this.j)){0!=this.A.ta||this.xk(a);a=YK(this.b.g).hmewdrop;0<=a&&a!=this.D&&OM(this,"df",[a-(this.D||0)]);this.D=a;a=PM(this);dc(a,TK(this.b.g));a=Yd(WK(this.b.g),a);for(var b in this.j)a+="&"+b+"="+this.j[b].join(",");mf(a);this.j={};this.o.start()}};f.Lg=function(){OM(this,"vps",["N"]);this.M=Ue(u(this.sg,this),1E4);this.o.start()};f.onError=function(a,b){var c=this.b.j(),c=[a,c.toFixed(3)];b&&c.push(b);OM(this,"error",c)};
f.Gu=function(){"PL"==this.g&&(OM(this,"vps",[this.g]),this.sg())};f.J=function(){MM.G.J.call(this);Ve(this.M)};function QM(a,b,c,d){this.b=[];this.o=[];this.I=!1;this.g="watchtime"==c;this.ka="playback"==c;this.rb="delayplay"==c;this.Ba=(this.F="atr"==c)?"/api/stats/"+c:VK(b)+"api/stats/"+c;d&&(this.Sn=d.fs,d.rtn&&(this.kg=d.rtn),this.g?(this.nf=d.state,0<d.rti&&(this.Rh=d.rti)):(this.la=d.mos,this.xa=d.volume,d.at&&(this.L=d.at),d.allowed&&(this.A=d.allowed),d.ex_ads&&(this.D=d.ex_ads)));this.Ca=b.k;this.Wh=b.yc;this.Fa=b.C;this.Ia=b.M;this.Ra=b.L;this.Wa=b.N;this.cb=b.qf;this.gb=b.re;this.ib=b.O;this.hb=
b.P;this.nb=b.V;this.xb=b.T;this.ac=b.o;this.bc=b.g;this.Ld=b.$;this.o=b.b.b;this.O=b.A;this.Rn=b.Wc;this.pf=b.D;this.P=b.U;this.j=b.B;this.hf=b.Ra;this.aa=b.Ba;this.da=b.Ca;this.za=ZK(b);!a.b||a.Wa.isEmpty();this.Wh=a.lg||this.Wh;this.U=a.Oh;this.Uc=a.Da;this.C=a.of;this.ca=a.Vj;this.k=a.jg;this.N=a.pe;this.kf=a.b.id;this.Tn=a.qe;this.gf=a.Mh;a.eb&&(this.pa=a.ob?"dvr":"live");this.jf=a.Tj;this.yb=a.yb;this.pd=a.A;this.La=a.La;this.j=a.Ia||this.j;this.V=a.ib;this.T=a.hb;this.of=a.Nh;this.mf=a.I;this.videoId=
a.videoId;this.lf=a.cb}f=QM.prototype;f.Wh=!1;f.dv=!1;f.vo=!1;f.Sn=!1;f.ru=!1;f.Tn=!1;f.Rn="yt";f.Rh=null;f.kg=null;f.send=function(){if(!this.I){var a=RM(this),a=Yd(this.Ba,a);this.F?this.B&&Hi(a,{method:"POST",fd:{atr:this.B}}):this.C?Hi(a,{headers:{Authorization:"CredentialTransfer type="+this.ca+",token="+this.C}}):mf(a);this.I=!0}};
function RM(a){var b={ns:a.Rn,el:a.Ld,cpn:a.Uc,docid:a.videoId,ver:2,referrer:a.pf,cmt:a.zf(a.k),plid:a.yb,ei:a.pd,fmt:a.kf,fs:a.Sn?"1":"0",rt:a.zf(a.wa),c:a.cb,cver:a.gb,adformat:a.Ca,content_v:a.Fa,euri:a.bc,subscribed:a.mf,lact:a.za,live:a.pa,cplatform:a.ac,cbrand:a.Ia,cmodel:a.ib,cnetwork:a.hb,cbr:a.Ra,cbrver:a.Wa,cos:a.nb,cosver:a.xb,mos:a.la,q:a.hf,osid:a.lf,state:a.nf,volume:a.xa};a.Wh&&(b.autoplay="1");a.vo&&(b["final"]="1");a.Tn&&(b.splay="1");a.N&&(b.delay=a.N);a.O&&(b.hl=a.O);a.P&&(b.cr=
a.P);n(a.aa)&&a.da&&(b.uga=a.da+a.aa);n(a.M)&&(b.len=a.zf(a.M));!a.g&&0<a.o.length&&(b.fexp=a.o.toString());null!=a.kg&&(b.rtn=a.zf(a.kg));a.j&&(b.feature=a.j);a.La&&(b.list=a.La);a.V&&(b.ctrl=a.V);a.T&&(b.ytr=a.T);a.of&&(b.ssrt="1");a.g?(b.idpj=a.gf,b.ldpj=a.jf,null!=a.Rh&&(b.rti=a.zf(a.Rh))):(n(a.L)&&(b.at=a.L),n(a.A)&&(b.allowed=a.A),n(a.D)&&(b.ex_ads=a.D));(a.ka||a.rb)&&a.U&&(b.tst=a.U);a.g&&(b.st=SM(a,A(a.b,function(a){return a.startTime})),b.et=SM(a,A(a.b,function(a){return a.endTime})));jb(a.b,
function(a){return 0!=a.visibilityState})&&(b.vis=SM(a,A(a.b,function(a){return a.visibilityState})));jb(a.b,function(a){return 1!=a.playbackRate})&&(b.rate=SM(a,A(a.b,function(a){return a.playbackRate})));jb(a.b,function(a){return"-"!=a.Ak})&&(b.cc=A(a.b,function(a){return a.Ak}).join(","));return b}f.zf=function(a){return(1*a.toFixed(3)).toString()};function SM(a,b){return A(b,a.zf).join(",")};function TM(a){this.b=a;this.k=new MM(a);S(this,this.k);this.g=new DM(a);this.A="paused";this.B=NaN;this.D=[10,10,10,40];this.F=this.C=0;this.L=this.M=this.I=this.j=!1;this.o=NaN;this.N=new LM(this.g,this.b.b,this.b.g)}w(TM,Ih);function UM(a,b,c){var d=IM(a.b);c=isNaN(c)?d:c;c=Math.ceil(c);var e=a.D[a.C];a.C+1<a.D.length&&a.C++;c=c+e;d=1E3*(c-d);a.B=L(u(a.uB,a,c,b),d);return c}f=TM.prototype;
f.uB=function(a,b){if(!this.fa()){this.B=NaN;this.g.update();var c=HM(this.g),d=VM(this,c);b&&(d.Rh=a);var e=400<this.F;!(1<c.length)&&c[0].isEmpty()||e||(d.kg=UM(this,!0,a));d.send();this.F++}};function WM(a,b){var c=XM(a.b);sa(c,{state:a.A});c=new QM(a.b.b,a.b.g,b,c);c.k=a.b.j();c.M=a.b.A();c.wa=IM(a.b);c.b=[EM(a.b)];return c}function VM(a,b){var c=WM(a,"watchtime");c.b=b;c.k=a.g.b;return c}function YM(a){a.g.update();return VM(a,HM(a.g))}
function ZM(a){var b=a.b.g;a=a.b.b;var c=a.Ia||b.B,c={ns:b.Wc,html5:"1",el:b.$,ps:b.qb,fexp:b.b.b.join(",")||void 0,feature:c||void 0,ctrl:a.ib||void 0,ytr:a.hb||void 0,list:a.La,d:b.xa,f:b.ca};b.yc&&(c.autoplay="1");a.I&&(c.subscribed=a.I);return c}f.Lg=function(){this.k.Lg()};f.onError=function(a,b){this.k.onError(a,b)};
function $M(a,b){if(!a.fa()){W(b.state,2)?(a.A="paused",a.j&&YM(a).send()):W(b.state,8)?(a.A="playing",a.j&&isNaN(a.B)&&UM(a,!1)):a.A="paused";var c=a.k,d=b.state,e;e=b.state;if(W(e,128))e="ER";else if(W(e,16)||W(e,32))e="S";else{var g=NM[Xt(e)];"B"==g&&W(e,4)&&(g="PB");e=g}if(e!=c.g){var g=e,h=IM(c.b);if(!(h<c.k)){if("PL"==c.g)c.C+=h-c.k;else if("B"==c.g&&c.B&&(c.B=!1,c.F+=h-c.k,!c.I&&10<=c.F&&180>=c.C)){c.b.C();if(!c.fa()){var k=PM(c);k.qoealert="1";k=Yd(WK(c.b.g),k);mf(k)}c.I=!0}"B"!=g||"PL"!=
c.g&&"PB"!=c.g||(c.B=!0);c.k=h}!c.b.g.b.B||"B"!=e&&"PB"!=e?OM(c,"cmt",[c.b.j().toFixed(3)]):c.xk();OM(c,"vps",[e]);c.g=e}if(W(d,128))c.onError(d.b.errorCode,d.b.errorDetail);(W(d,2)||W(d,128))&&c.sg();a.o&&W(b.state,128)&&(a.bi("error-100"),N(a.o))}}function aN(a){a.o=Ue(u(a.bi,a,"heartbeat"),3E4)}
f.bi=function(a){var b=this.b.g,c=this.b.b,d={ns:b.Wc,el:b.$,eurl:b.g,fmt:c.b?c.b.id:0,html5:1,list:c.La,plid:c.yb,cpn:c.Da,ei:c.A,ps:b.qb,noflv:1,st:this.b.j(),video_id:c.videoId,metric:a};b.yc&&(d.autoplay="1");c.dk&&(d.tmi="1");"heartbeat"==a&&(d.tpmt=GM(this.g));sa(d,TK(b));mf(Yd("//www.youtube.com/live_204",d))};f.J=function(){TM.G.J.call(this);N(this.B);this.B=NaN;var a=this.g;Ve(a.A);a.A=NaN};TM.prototype.getDebugInfo=function(){return RM(WM(this,"playback"))};
function bN(a){if(!a.M){a.b.b.o.eventLabel=a.b.g.$;a.b.b.o.playerStyle=a.b.g.qb;a.b.b.V&&(a.b.b.o.feature="pyv");a.b.b.o.vid=a.b.b.videoId;a.b.b.o.isAd=!("adunit"!=a.b.g.$&&!a.b.b.V);var b=a.b.b.o;b&&b.uid&&(vM[b.uid]=b);t:{b=a.b.b.o.uid;if(!b){b=Se("CONVERSION_CONFIG_DICT");if(!b)break t;b=b.uid||null;if(!b)break t}i:{var c=Se("CONVERSION_CONFIG_DICT");if(s(b)){var d=wM(b);if(!c||c.uid!=d)if(c=vM[d],!c||c.uid!=d)break i}var e;if(c&&c.baseUrl&&c.uid){var g=c.rmktEnabled,d=c.focEnabled&&(!c.isAd||
!1);if(g||d){var h={};if(g){g={utuid:c.uid,type:"view",client_name:"html5"};c.vid&&(g.utvid=c.vid);c.eventLabel&&(g.el=c.eventLabel);c.playerStyle&&(g.ps=c.playerStyle);c.feature&&(g.feature=c.feature);c.ppe&&(g.ppe=c.ppe);c.subscribed&&(g.subscribed=c.subscribed);c.engaged&&(g.engaged=c.engaged);var k=[];for(e in g)k.push(encodeURIComponent(e)+"="+encodeURIComponent(g[e]));e=k.join(";");h.data=e}d&&c.vid&&c.uid&&(c.oeid||c.ieid)&&(c.oeid&&(h.oeid=c.oeid),c.ieid&&(h.ieid=c.ieid),h.evid=c.vid);d&&
(h.label="followon_view",h.foc_id=c.uid);e=Yd(c.baseUrl,h)}else e=null}else e=null;e&&mf(e)}(e=Se("CONVERSION_CONFIG_DICT"))&&(!s(b)||e.uid==wM(b))&&Ub(CM,e.uid)&&e.baseUrl&&e.uid&&e.focEnabled&&!e.isAd&&(b={label_no_cache:"followon_view",foc_id_no_cache:e.uid,random_no_cache:Math.round(1E4*Math.random())},(b=Yd(e.baseUrl,b))&&mf(b))}a.M=!0}};function cN(){this.endTime=this.startTime=-1;this.Ak="-";this.playbackRate=1;this.visibilityState=0}cN.prototype.isEmpty=function(){return this.endTime==this.startTime};function dN(a,b,c,d,e,g,h){this.b=a;this.g=b;this.o=c;this.A=d;this.j=e;this.B=g;this.C=h||function(){};this.k=-1}function IM(a){var b=window.performance&&window.performance.now?window.performance.now():v();0>a.k&&(a.k=b);return Math.round(b-a.k)/1E3}
function XM(a){var b=a.o();a=a.b;var c={};a.b&&(c.fmt=a.b.id,a.N&&(c.afmt=a.N.id));a.xa&&(c.threed=a.Bx);c.plid=a.yb;c.ei=a.A;c.list=a.La;c.cpn=a.Da;a.videoId&&(c.v=a.videoId);a.Vk&&(c.infringe=1);a.qe&&(c.splay=1);a.eb&&(c.live=a.ob?"dvr":"live");a.lg&&(c.autoplay=1);a.gb&&(c.sdetail=a.gb);a.T&&(c.partnerid=a.T);a.cb&&(c.osid=a.cb);sa(b,c);return b}
function EM(a){var b=new cN;b.Ak=a.o().cc||"-";var c=a.g;b.playbackRate=c.Pa&&c.Pa.playbackRate||1;(c=Cg("visibilityState",document))&&"visible"!=c&&(b.visibilityState=3);a.g.mb?b.visibilityState=2:a.g.Xq&&(b.visibilityState=1);return b};function eN(a,b){this.state=a;this.b=b}function Rv(a,b){return W(a.state,b)&&!W(a.b,b)?1:!W(a.state,b)&&W(a.b,b)?-1:0};function fN(a,b){aj.call(this);this.za=new sM;this.A=new au(u(this.getCurrentTime,this),u(this.getPlayerState,this),u(this.Vh,this));S(this,this.A);this.T=NaN;this.I=this.C=null;this.B=a;this.pa=new pM(a);this.xa=!1;this.D=this.k=null;this.L=[];this.P=new tM;this.N=new tM;this.wa=NaN;this.j=new Qt;this.Ia=b;this.V=this.ca=null;this.F=NaN;this.U=new Vv(this);this.b=new Jr;this.g=this.O=null;this.da=NaN;this.o=null;this.Ca=!1;this.aa=0;this.Fa=null;this.ka=!1;this.la=null}w(fN,aj);
function kt(a){cz()?fz(a.aa):N(a.aa)}f=fN.prototype;f.J=function(){N(this.da);Ve(this.wa);jt(this);gN(this);kt(this);uH(this);Mh(this.V,this.U,this.b);this.U=this.I=null;this.ka=!1};
function hN(a,b,c){a.L.length=0;a.P=new tM;a.N=new tM;a.T=NaN;a.F=NaN;a.O=null;a.Ca=!1;a.g&&Nt(a.g);iN(a);jt(a);gN(a);kt(a);Kh(a.b);a.A.reset();if(2==a.Ia||ff(a.B.xe))b.Xo=!0;a.b=b;a.b.subscribe("dataupdated",a.gx,a);a.b.subscribe("dataloaded",a.Zp,a);a.b.subscribe("onStatusFail",a.fx,a);b.xf&&b.xf>b.Ta&&(b=b.xf,a.I&&(a.A.Ag(a.I),a.I=null),a.I=new Yt(1E3*b,2147483646),a.I.$a.subscribe("onEnter",a.rg,a),a.A.wi(a.I));jt(a);a.b.se||(c=new dN(a.b,a.B,c,u(a.Sd,a),u(a.getCurrentTime,a),u(a.ax,a),u(a.bx,
a)),a.o=new TM(c));a.ka=!1;jN(a,"newdata");kN(a,new Qt)}function jt(a){if(a.o){var b=a.o;if(!b.fa()&&b.j){b.A="paused";var c=YM(b);c.vo=!0;c.send();c=b.k;"PL"==c.g&&(c.g="N");OM(c,"vps",[c.g]);c.sg();N(b.o);b.dispose()}Kh(a.o);a.o=null}}f.getVideoData=function(){return this.b};f.R=function(){return this.B};function lN(a){return!(!a.b.g||!a.b.g.g.length)}function mN(a){if(Zr(a.b))return!0;Qv(a,"api.invalidparam");return!1}function nN(a){mN(a)&&!a.P.g&&(a.P.start(),a.o&&a.o.Lg(),a.Zp())}
f.Zp=function(){if($r(this.b))$r(this.b),this.P.b=!0,this.L=vb(this.b.D),Ur(this.b),lN(this)&&(this.b.ob&&(oN(this,this.b.Oa),pN(this,!0)),this.b.g.b&&qN(this),sJ(this,"i")),jN(this,"dataloaded"),this.N.g&&rN(this);else if(this.b.ka){var a=this.b;a.ka=!1;var b=a.O,c=yi(b),b=0>Jr.g.indexOf(c)?gf(b):hf(b),c=u(a.Lz,a),a=u(a.Zl,a);yp(new pp(b),b,c,a)}else this.b.Ke||(a=UK(this.B,this.b),as(this.b,a))};function sN(a){nN(a);mN(a)&&(a.N.g||(a.N.start(),kN(a,Wt(a.j,8))),rN(a))}
function rN(a){if(!(a.N.b||!a.P.b||W(a.j,128)||a.L.length||(a.A.wg||a.A.Lg(),a.L.length||0<wt(a.A.g,-2147483648).length))){a.b.eb&&tN(a,Infinity,!0);a.N.b=!0;if(a.o){var b=a.o;b.b.b.Th&&b.b.b.lk&&(b.bi("connected"),aN(b))}a.H("playbackready",a)}}f.rg=function(a){this.pauseVideo();kN(this,!1==a?new Qt:new Qt(St()))};
function uN(a,b,c,d){a.b.b=c;a.b.N=d||c;if(a.o){d=a.b;var e=rM(a.pa,d),e=B(d.g.g,u(e.k,e));d=a.o.k;e=new oM(c,b,e?e.id:"");c=IM(d.b);OM(d,"vfs",[e.b.id,e.g,d.N,e.j],c);d.N=e.b.id;e=d.b.g;e=e.Pa?new G(0<e.Pa.style.width.indexOf("px")?parseInt(e.Pa.style.width,10):e.Pa.clientWidth,0<e.Pa.style.height.indexOf("px")?parseInt(e.Pa.style.height,10):e.Pa.clientHeight):new G(Number.NaN,Number.NaN);0<e.width&&0<e.height&&OM(d,"view",[Math.round(e.width),Math.round(e.height)],c);OM(d,"vps",[d.g],c);d.sg(c)}a.H("internalvideoformatchange",
a.b,"m"==b)}function Qv(a,b,c,d){if(Ub(zu,c))var e=c;else var g=c;kN(a,Ut(a.j,128,{errorCode:b,errorDetail:d,message:g,messageKey:e}));vN(a)}function wN(a,b){a.L=a.L.filter(function(a){return b!=a});a.N.g&&rN(a)}f.Vh=function(){return W(this.j,8)&&!W(this.j,64)&&!W(this.j,2)};f.getPlayerState=function(){return this.j};f.getPlayerType=function(){return this.Ia};function xN(a,b){a.g&&uH(a);a.g=b;yN(a)}
function uH(a){a.D=null;a.k&&(a.k.C=!0);a.g&&(a.o&&a.P.g&&W(a.j,64)&&$M(a.o,new eN(new Qt(4),a.j)),iN(a),a.U.removeAll(),Nt(a.g),a.g=null)}
function zN(a){sN(a);W(a.j,64)&&kN(a,Wt(a.j,8));if(a.N.b&&a.g)if(a.b.g){var b;if(a.b.g.b)AN(a),b=a.Fa,a.k.resume();else{gN(a);b=a.b.P.b;var c=a.b,d={};c.L&&(d.ptk=c.L,d.oid=c.Ld,d.ptchn=c.pd,d.pltype=c.gf);sa(b.g,d);sa(b.g,{c:a.B.qf,cver:a.B.re})}a.g.wd!=b?BN(a,b):(cs(a.b)&&Kt(a.g)&&tN(a,Infinity,!0),Lt(a.g))}else Qv(a,"fmt.noneavailable","YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK")}function Ns(a){if(!a.b.g)return[];var b=CN(a);a=Mp(a.b.g,b);a.length&&(a=a.concat(["auto"]));return a}
function DN(a){return Jp(Jp(qM(a.pa,a.b),rM(a.pa,a.b)),CN(a))}function CN(a){return a.b.qk?Gp:a.C?a.C.j:lN(a)&&a.b.g.b&&qp(a.b.j)?Fp:Gp}function sJ(a,b,c){if(!a.fa()&&!W(a.j,128)&&(c&&(a.b.sf=c),lN(a))){"m"==b&&c&&Hp(c)&&(b="a");c=DN(a);if(a.b.g.b){if("i"!=b){var d=a.k;d.fa()||(MG(d,eL(d.o,c,b)),OG(d,d.g,gL(d.o)),Ip(d.o.b)&&"m"==b&&(d.va.T?(PG(d.g,!1),d.g.B=!0):PG(d.g,!0),d.g.j.mc()&&sL(d.g,d.k)),AL(d.g)&&TL(d,d.g,d.j),QG(d))}}else a.b.P=Hr(a.b.F,c),uN(a,b,a.b.P.getInfo());a.Vh()&&zN(a)}}
function JG(a){if(!a.getVideoData().N)return null;var b=a.getVideoData().N;return B(a.la,function(a){return a.id==b.id})}
function qN(a){Bp(a.b.j,{c:a.B.qf,cver:a.B.re});var b=a.B,c=new QC;if(nr("safari/")&&nr(" version/8")||b.b.xa)c.O=!0;b.b.wa&&(c.P=!0);b.b.rb&&(c.L=!0,c.B=1.25);b.b.aa&&(c.A=1.5);b.b.T&&(c.C=3.5);b.b.ka&&(c.D=300);b.b.Uc&&(c.I=!0);b.b.Fa&&(c.T=!0);gE(b)&&(c.o=8388608,c.k=524288,c.g=2097152,c.F=1048576,c.A=1.5,c.N=15,c.b=!1,c.M=!1,c.D=0,c.ai=qo.hd720,mr()&&(c.ra=3E5));nh&&nr("crkey")&&(c.o=20971520,c.k=1572864,c.g=20971520,c.b=!0,c.j=1E3);var b=b.og||new G(window.screen.width,window.screen.height),
d=window.devicePixelRatio||1;2560<=b.width*d&&1440<=b.height*d&&(c.o=52428800,c.k=5242880,c.g=20971520,c.F=8388608,c.ai=qo.auto);a.k=new LL(a.ca,c,a.b.j,a.b.g);a.k.subscribe("initsegment",a.Vt,a);a.k.subscribe("formatchange",a.Xt,a);a.k.subscribe("fatalerror",a.Wt,a);a.k.subscribe("softerror",a.Yt,a);a.k.subscribe("seekrequired",a.Zt,a);c=C(a.L,"spacecast");a.k.initialize(a.b.Ta,DN(a),c);a.b.lf&&(a.k.N=a.b.lf);a.L.length&&(a.k.C=!0)}
function gN(a){a.k&&(a.k.dispose(),a.k=null);a.D&&(a.D.dispose(),a.D=null)}function AN(a){if(!a.D){a.k?a.k.seek(a.getCurrentTime()):qN(a);a.D=new dr(a.g,a.b.Oa,a.b.g.g[0].mimeType,a.b.g.b[0].mimeType);try{var b=fr(a.D)}catch(c){c.message="window.URL object overwritten by external code";window.setTimeout(function(){throw c;},0);Qv(a,"html5.missingapi","YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK");return}a.Fa=new or(b,!1,!0);er(a.D,u(a.k.Qz,a.k))}}
f.Vt=function(a){if(this.C){var b=this.C;if("com.microsoft.playready"==b.b.b){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&&lM(b,new jM(a),!1)}}};f.Xt=function(a){uN(this,a.g,a.video.info,a.b.info)};
f.Wt=function(a,b){Qv(this,a,void 0,b);gN(this)};f.Yt=function(a,b){this.o.onError(a,b);var c;if(c="net.badstatus"==a)if(c=this.B.b.P)c=this.b,c=v()-c.hx>Jr.o;c&&(this.o.onError("staleconfig"),this.H("urlauthexpired"))};f.pauseVideo=function(a){if(W(this.j,64)){var b=this.j;kN(this,Ut(b,b.g&-9))}this.g&&(a&&kN(this,Wt(this.j,256)),this.g.pauseVideo())};
function vN(a){a.pauseVideo(!0);a.g&&(iN(a),a.D&&(a.D.dispose(),a.D=null),a.b&&(a.b.Ta=a.getCurrentTime()),a.F=NaN,Mt(a.g),W(a.j,128)||kN(a,Ut(a.j)))}function tN(a,b,c,d){if(a.g){b=Ib(b||0,0,EN(a));b>=EN(a)?pN(a,!0):pN(a,!1);a.b.Ta=b;a.F=b;var e=a.za;e.b=b;e.g=!0;c?a.Ni():(CG(a),d&&(a.V||(a.V=new Xv(a.Ni,d,a)),a.V.start()),FN(a,!0));a.I&&b>a.b.xf&&(a.A.Ag(a.I),a.I=null);a.H("seekto",a,b)}else a.b.Ta=b||0}
function CG(a){W(a.j,32)||(kN(a,Wt(a.j,32)),W(a.j,8)&&a.pauseVideo(!0),a.H("beginseeking",a))}f.Ni=function(){if(!isNaN(this.F)&&this.g){var a=this.Sd();!this.b.eb&&this.F>=Math.floor(a)?(this.F=a,this.H("endseeking",this),this.pauseVideo(!0),this.rg()):(this.k&&this.k.seek(this.F),Jt(this.g,this.F))}this.V&&(this.V.dispose(),this.V=null);W(this.j,32)&&(a=this.j,kN(this,Wt(Ut(a,a.g&-33),16)),this.H("endseeking",this))};
f.getCurrentTime=function(){if(!isNaN(this.F))return this.F;var a=0;this.g&&1<=this.g.readyState?a=this.g.getCurrentTime():this.b&&(a=this.b.jg||this.b.Ta||0);return a};f.Sd=function(){return cs(this.b)?Infinity:this.b&&this.b.Oa?this.b.Oa:EN(this)?EN(this):0};
f.ax=function(){var a=new uM;if(this.ca&&this.k){var b=this.ca;a.j=b.D;a.o=b.F;a.b=iK(b);b=this.k;b.b&&!hr(b.b)&&(a.g=Et(b.b.g.buffered,b.k),a.k=Et(b.b.b.buffered,b.k));a.b=bL(b.B);iK(b.A);gK(b.A);hK(b.A)}else this.g&&(a.g=Et(this.g.buffered,this.getCurrentTime()));return a};function GN(a){if(a.g)if(cs(a.b))a=1;else if(ds(a.b))if(a.xa)a=0;else{var b=a.g;a=(0<Dt(b.buffered)&&b.duration?b.buffered.end(b.buffered.length-1):0)/a.Sd()}else a=Os(a.g);else a=0;return a}
fN.prototype.getDebugInfo=function(a){var b={};a&&(this.o&&sa(b,this.o.getDebugInfo()),this.g&&sa(b,this.g.getDebugInfo()),this.k&&sa(b,this.k.getDebugInfo()),W(this.j,128)&&(b.debug_error=this.j.b));b.debug_videoId=this.b.videoId;return b};f=fN.prototype;f.gx=function(){jN(this)};f.fx=function(a){Qv(this,"auth",unescape(a.reason),a.errordetail)};function jN(a,b){a.H("internalvideodatachange",b||"dataupdated",a,a.b)}
function yN(a){z("loadstart loadeddata loadedmetadata play playing pause ended suspend progress seeking seeked timeupdate durationchange ratechange error waiting abort".split(" "),function(a){this.U.listen(this.g,a,this.uC)},a)}
f.uC=function(a){var b=a.target;if(b==this.g&&b.currentSrc){switch(a.type){case "error":if(this.B.mk&&b.error&&b.error.errorCode==b.error.MEDIA_ERR_NETWORK){setTimeout(u(function(){this.g&&(this.b.P&&this.g.load(),zN(this))},this),500);if(this.o)this.o.onError("progressive.net");return}break;case "durationchange":if(!this.b.ob||this.b.j&&!this.b.j.g)b=b.duration||0,(!this.D||isFinite(b)&&0<b)&&oN(this,b);break;case "ratechange":this.k&&(this.k.B.g=Math.max(1,this.g.playbackRate));break;case "ended":kN(this,
Ut(this.j,4));this.nk();break;case "loadedmetadata":this.b.Ta&&(this.g.currentTime=this.b.Ta),this.B.qo&&this.b.Ta&&(this.T=this.b.Ta,this.pauseVideo(!0));case "loadeddata":this.da&&N(this.da);break;case "loadstart":Ve(this.wa);this.di()||(this.wa=Ue(u(this.di,this),100));break;case "progress":this.T&&this.g.seekable.length&&this.g.seekable.end(0)>this.T&&(this.g.currentTime=this.T,this.T=NaN,this.Ba=this.U.listen(this.g,"canplay",this.uv));case "suspend":FN(this);this.H("onLoadProgress",this,GN(this));
break;case "seeked":HN(this);break;case "playing":vq("plev");break;case "timeupdate":this.Ca=!0,this.di(),HN(this),FN(this),this.H("onVideoProgress",this,b.getCurrentTime())}this.H("videoelementevent",a);a=Rt(this.j,a,this.za);kN(this,a)}};
f.di=function(){var a=this.g;a&&this.Ca&&!this.b.rk&&!xq("vfp")&&2<=a.readyState&&!a.ended&&0<Dt(a.buffered)&&vq("vfp");if((a=this.g)&&!this.b.rk&&0<(a.duration||0)&&(!xq("paft")&&xq("plev")&&Kt(a)&&2<=a.readyState&&0<Dt(a.buffered)&&vq("pbr"),0<a.getCurrentTime())){Ve(this.wa);this.b.rk=!0;IN(this);if(this.o){a=this.o;if(!a.j){var b=WM(a,"playback");a.D=[10+a.b.b.Mh,10,10,40+a.b.b.Tj-a.b.b.Mh,40];var c=a.g;Ve(c.A);c.A=NaN;c.A=Ue(u(c.update,c),100);c.o=IM(c.g);c.k=EM(c.g);b.kg=UM(a,!0);b.ru=!0;b.send();
!a.b.g.dc||a.b.g.$h||a.j||(b=a.b.g,c=a.b.b,b={noflv:"1",html5:"1",video_id:c.videoId,cpn:c.Da,plid:c.yb,ei:c.A,referrer:XK(b),eurl:b.g,framer:b.F,feature:b.B,fmt:c.b?c.b.id:0,ptk:c.L,skl:c.Wn,access_token:c.B,ucid:c.hf},sa(b,ZM(a)),delete b.fexp,b=Yd(a.b.g.tb+"user_watch",b),mf(b));a.b.b.L&&(b=a.b.g,c=a.b.b,b=Yd(b.tb+"ptracking",{html5:"1",video_id:c.videoId,cpn:c.Da,plid:c.yb,ei:c.A,ptk:c.L,oid:c.Ld,ptchn:c.pd,pltype:c.gf,content_v:b.C}),mf(b));if(a.b.b.Vn&&a.b.g.we&&!a.j){var b=a.b.g,c=a.b.b,d=
{noflv:1,video_id:c.videoId,cpn:c.Da,el:b.$,ps:b.qb,referrer:XK(b),eurl:b.g,framer:b.F,fmt:c.b?c.b.id:0,ptk:c.L,subscribed:c.I,t:c.Uj};b.yc&&(d.autoplay="1");c.qe&&(d.splay="1");0<c.Ta&&(d.start=1E3*c.Ta);c.dk&&(d.tmi="1");b=Yd(a.b.g.tb+"get_video",d);mf(b)}a.b.b.Th&&(a.bi("playback"),a.o||aN(a));a.b.b.pe||bN(a);a.j=!0;a=a.g;a.b=a.g.j();a.o=IM(a.g);.5<a.b-a.j&&(a.j=a.b)}L(u(this.nk,this),4500)}this.H("playbackstarted");this.k&&(this.k.U=!0);cz()&&gz();return!0}return!1};
function IN(a){var b=v(),c=a.getCurrentTime(),d=a.b;if(!xq("pbs")){var e=1E3*(c-d.Ta);0>e&&(e=0);vq("pbs",b-e);sq.measure&&sq.getEntriesByName&&(sq.getEntriesByName("mark_navigation_requested")[0]?sq.measure("measure_above_the_fold","mark_navigation_requested"):sq.measure("measure_above_the_fold"))}d.videoId&&(b=d.videoId,Bq(void 0).docid=b);d.A&&(b=d.A,Bq(void 0).ei=b);d.Da&&(b=d.Da,Bq(void 0).cpn=b);0<d.Ta&&(b=d.Ta.toString(),Bq(void 0).start=b);a.g&&Kt(a.g)&&(Bq(void 0).paused=1);d.b?(d=d.b.id,
Bq(void 0).fmt=d):Bq(void 0).fmt="-1";d=Math.round(GN(a)*a.Sd()).toString();Bq(void 0).tds=d;c=c.toFixed(3);Bq(void 0).cmt=c;if(a.k){a=a.k;window&&window.performance&&window.performance.getEntriesByName&&(c=window.performance.getEntriesByName(a.ca),c.length&&(c=c[0],NL(a,"vri",c.fetchStart),NL(a,"vdns",c.domainLookupEnd),NL(a,"vreq",c.requestStart),NL(a,"fvb",c.responseStart),NL(a,"vrc",c.responseEnd)),c=window.performance.getEntriesByName(a.V),c.length&&(c=c[0],NL(a,"ari",c.fetchStart),NL(a,"adns",
c.domainLookupEnd),NL(a,"areq",c.requestStart),NL(a,"fab",c.responseStart),NL(a,"arc",c.responseEnd)));a=a.da;for(var g in a)vq(g,a[g])}}f.uv=function(){this.Ba&&(this.U.Ga(this.Ba),this.Ba=void 0,Lt(this.g))};
function FN(a,b){if(a.g&&a.b){var c=a.getCurrentTime();if(c<JN(a))tN(a,EN(a),!0);else{if(a.k){var d=a.k;if(d.b){d.resume();if(d.F&&!hr(d.b)){var e=d.k<=c&&c<d.k+10,g=0<=Bt(d.b.b.buffered,d.k)&&0<=Bt(d.b.g.buffered,d.k);e&&g&&(d.F=!1)}d.F||(d.k=c);WL(d)}}ds(a.b)&&c>a.Sd()&&(d=a.Sd(),0==d&&(d=c),oN(a,1.2*d));5<c&&(a.b.Ta=c);(d=cz())?fz(a.aa):N(a.aa);Kt(a.g)||(e=u(a.cv,a),a.aa=a.g.played&&0==a.g.played.length?d?dz(e,100):L(e,100):d?dz(e,500):L(e,500));a.b.jg=c;!b&&a.Vh()&&a.o&&(d=a.o,d.g.update(),d.b.b.Oa&&
d.b.b.pe&&!d.L&&GM(d.g)>=d.b.b.pe&&(d.j&&d.b.b.pe&&(e=WM(d,"delayplay"),e.dv=!0,e.send(),d.L=!0),bN(d)),e=d.N,!e.k&&e.b.we&&!e.b.$h&&e.g.Oa&&GM(e.o)>=e.g.Eo&&d.N.send());a.di()&&a.b.ak&&0<a.b.jg&&(d=a.o,d.j&&(e=d.b.g,g=d.b.b,d={ns:"yt",docid:g.videoId,plid:g.yb,ei:g.A,cpn:g.Da,fmt:g.b?g.b.id:0,el:e.$,ps:e.qb,subscribed:g.I,yttk:"1",st:d.b.j(),et:d.b.j(),ctp:"1",vid:e.la},d=Yd("//s2.youtube.com/s",d),mf(d)),a.b.ak=!1);a.H("progresssync",a,b);a.b.ev=c}}}
f.cv=function(){this.g&&(W(this.j,8)&&Vt(this.za,this.getCurrentTime(),Date.now(),Et(this.g.buffered,this.g.getCurrentTime()))&&kN(this,Wt(this.j,1)),FN(this))};
function kN(a,b){var c=a.j;if(b.g!=c.g||b.b!=c.b){c=new eN(b,a.j);a.j=b;0>Rv(c,8)&&pN(a,!1);0<Rv(c,32)&&pN(a,!1);ds(a.b)&&W(c.state,2)&&(oN(a,a.getCurrentTime()),FN(a,!0));a.o&&$M(a.o,c);var d=a.A;if(d.wg&&!d.ti)if(du(d),W(c.state,2)){d.A=null;for(var e=[],g=0;g<d.b.length;g++){var h=d.b[g];h.active&&2147483647>h.end&&e.push(h)}g=wt(d.g,2147483646);g=g.concat(xt(d.g,2147483646));e=fu(d,e).concat(eu(d,g));gu(d,e)}else W(c.state,16)?(d.k=cu(d),d.o.stop(),d.o.start(),d.lc()):(d.o.stop(),W(c.b,16)?(d.k=
cu(d),null!=zt(d.g,Math.max(d.k-2E3,0))&&(d.Dg=Ok(u(d.lc,d)))):d.lc());a.H("statechange",c)}}f.bx=function(){this.b.eb||this.H("connectionissue")};f.Zt=function(){Jt(this.g,Math.max(0,this.g.currentTime+.1))};function HN(a){W(a.j,2)||W(a.j,32)||(a.F=NaN)}function pN(a,b){a.b.ob&&a.xa!=b&&(a.xa=b,a.H("liveviewshift",b))}function BN(a,b){It(a.g,b);a.D&&!b.b&&(a.D=null);Vr(a.b)&&KN(a);N(a.da);a.da=L(u(a.Yz,a),15E3);a.B.mp?L(u(function(){Lt(this.g)},a),0):Lt(a.g)}
function KN(a){var b=Vr(a.b);b&&!a.C&&a.g&&((b=Yq(a.g,a.b.b.mimeType,b))?(a.C=new kM(a.g,b),a.C.subscribe("newsession",a.Wz,a),a.C.subscribe("licenseerror",a.Tz,a),a.C.subscribe("qualitychange",a.Uz,a),a.C.subscribe("heartbeatparams",a.Vz,a),a.C.L=a.b.B,S(a,a.C)):Qv(a,"fmt.unplayable","YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK"))}function iN(a){a.C&&(a.C.dispose(),a.C=null)}
f.Wz=function(a){var b=TK(this.B);b.cpn=this.b.Da;this.b.C&&(b.vvt=this.b.C);this.B.Sa&&(b.authuser=this.B.Sa);this.B.Za&&(b.pageid=this.B.Za);dc(a.o,b);nt(a,a.A);this.H("newlicensesession",a)};f.Tz=function(a,b,c){Qv(this,a,n(c)?c:"YTP_ERROR_LICENSE",b)};f.Uz=function(){sJ(this,"r");jN(this)};f.Vz=function(a){this.H("heartbeatparams",a)};f.Yz=function(){this.o.onError("qoe.start15s");this.H("loadsofttimeout")};function oN(a,b){a.b.Oa!=b&&(a.b.Oa=b,jN(a))}
f.nk=function(){if(!this.ka){var a=new nM(this.b),b;"c1a"in a.g?(b=p("yt.abuse.botguardInitialized"),b=!(b&&b())):b=!1;if(b)L(u(this.nk,this),4500);else{this.ka=!0;var c;if(a.b&&a.b.ca){b=[a.b.ca];for(c in a.j)if(a.g[c]){var d=a.j[c](a.g);d&&b.push(d)}c=b.join("&")}else c=null;c&&(a=this.o,a.I||(b=WM(a,"atr"),b.B=c,b.send(),a.I=!0))}}};
function EN(a){if(!a.g)return 0;if(a.k){var b=a.k,c=Math.floor(Math.min(b.j.j.index.yf(),b.g.j.index.yf()));return Math.max(b.D.g?c-14:c,JN(a))}a=a.g;return(1>a.seekable.length?NaN:a.seekable.end(a.seekable.length-1))||0}function JN(a){return a.b.j?(a=Rb(a.b.j.b))?a.index.gn():0:0};function LN(){this.j=!1;this.g=0;this.b=""};function MN(a,b,c){this.k=b;this.b=c;this.j=a}MN.prototype.getMessage=function(){return this.k};MN.prototype.getErrorCode=function(){return this.b};MN.prototype.toString=function(){return"AdError "+this.getErrorCode()+": "+this.getMessage()+(null!=this.g?" Caused by: "+this.g:"")};function NN(a,b){T.call(this,"adError");this.j=a;this.k=b?b:null}w(NN,T);var ON="creativeview start firstquartile midpoint thirdquartile complete mute unmute pause rewind resume fullscreen exitfullscreen expand collapse close acceptinvitation acceptinvitationlinear engagedview videoShareClicked videoShareShown skipshown skip replay stop click progress userClose".split(" ");function PN(a,b){T.call(this,a);this.j=b}w(PN,T);PN.prototype.getAd=function(){return this.j};
var QN={CONTENT_PAUSE_REQUESTED:"contentPauseRequested",CONTENT_RESUME_REQUESTED:"contentResumeRequested",CLICK:"click",yH:"engagedview",CH:"expandedChanged",STARTED:"start",Cr:"impression",PAUSED:"pause",fJ:"resume",FIRST_QUARTILE:"firstquartile",MIDPOINT:"midpoint",THIRD_QUARTILE:"thirdquartile",COMPLETE:"complete",USER_CLOSE:"userClose",LOADED:"loaded",ALL_ADS_COMPLETED:"allAdsCompleted",SKIPPED:"skip",vJ:"skipshown",tJ:"skippableStateChanged",VF:"adMetadata",WE:"adBreakReady",qI:"log",VOLUME_CHANGED:"volumeChange",
kK:"mute",KG:"companionBackfill",vK:"youTubeVideoMetadata",uK:"youTubeChannelMetadata"};var RN=["://secure-...imrworldwide.com/","://cdn.imrworldwide.com/","://aksecure.imrworldwide.com/","www.google.com/pagead/sul","www.youtube.com/gen_204\\?a=sul"];function SN(a){return x(a)?!1:null!=B(RN,function(b){return null!=a.match(b)})}
function TN(a){a=SN(a)?'javascript:"data:text/html,<body><img src=\\"'+a+'\\"></body>"':a;var b=I("iframe",{src:a,style:"display:none"});a=Lc(b).body;var c,d=Ok(function(){Ek(c);ed(b)},15E3);c=Ck(b,["load","error"],function(){Ok(function(){Pk(d);ed(b)},5E3)});a.appendChild(b)};var UN=["google-developers.appspot.com","devsite.googleplex.com"],VN=["*.googlesyndication.com"],WN=["*.youtu.be","*.youtube.com"],XN="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(" "),
YN=["googleads.g.doubleclick.net","pubads.g.doubleclick.net"];function ZN(a){var b;if(b=null!=a)(b=$N(UN,a))||(b=pe(new J(a)),b=null!=b?wa(b,".corp.google.com")||"corp.google.com"==b:!1),b=b||(null!=a?$N(WN,a):!1);return b}function $N(a,b){try{var c=pe(new J(b)),c=c.replace(/^www./i,"");return jb(a,function(a){return aO(a,c)})}catch(d){return!1}}
function aO(a,b){if(x(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 bO(a){if("https:"==window.location.protocol){var b=new J(a);if((new RegExp("^https?://([a-z0-9-]{1,63}\\.)*("+XN.join("|").replace(/\./g,".")+")(:[0-9]+)?([/?#]|$)","i")).test(a))return ce(b,"https"),b.toString()}return a};function cO(a){window.open(bO(a),"_blank")}function dO(a,b,c){null!=a?(K(a,"label",b),null!=c&&K(a,"value",c.join(";")),a=a.toString()):a="";eO(a)}function eO(a,b,c){null!=b&&(a=fO(a,b));null!=c&&(x(c)||(b=new J(a),De(b.b,"label")&&(K(b,"acvw",c),a=b.toString())));a=bO(a);TN(a)}function gO(a,b){null!=a&&z(a,function(a){eO(a,b)})}
function fO(a,b){return a.replace(/\[[a-zA-Z0-9_]+\]/g,function(a){try{var d=$b(b,a),d=d.toString();if(!x(d))return encodeURIComponent(d).replace("%2C",",")}catch(e){}return a})};function hO(a,b){this.message=a;this.errorCode=b}hO.prototype.getErrorCode=function(){return this.errorCode};hO.prototype.getMessage=function(){return this.message};
var iO=new hO("Unable to request ads from server. Cause: {0}.",1005),jO=new hO("Unable to request ads from server due to network error.",1012),kO=new hO("Cannot parse the {0} value for the adslist response: {1}.",900),lO=new hO("Invalid usage of the API. Cause: {0}",900),mO=new hO("Unable to display one or more required companions.",602),nO=new hO("There was a problem requesting ads from the server.",1005),oO=new hO("The provided ad type: {0} is not supported.",1005),pO=new hO("The provided {0} information: {1} is invalid.",
1101),qO=new hO("The response does not contain any valid ads.",1009),rO=new hO("The overlay ad content could not be displayed since creative dimensions do not align with display area.",501),sO=new hO("The ad playlist response was malformed or empty.",1010),tO=new hO("The ad response was not understood and cannot be parsed.",1010),uO=new hO("An unexpected error occurred and the cause is not known. Refer to the inner error for more info.",900),vO=new hO("The ad response contains unexpected element. Cause {0}.",
1010),wO=new hO("No assets were found in the VAST ad response.",200),xO=new hO("Duplicate node in <{0}>: {1}",101),yO=new hO("The VAST response document is empty.",1009),zO=new hO("Linear assets were found in the VAST ad response, but none of them matched the video player's capabilities.",403),AO=new hO("Ad request reached a timeout.",301),BO=new hO("VAST response was malformed and could not be parsed.",100),CO=new hO("VAST media file loading reached a timeout of {0} seconds.",402),DO=new hO("Ad request could not be completed due to a network error.",
301),EO=new hO("Non linear assets were found in the VAST ad response, but none of them matched the video player's capabilities.",503),FO=new hO("The maximum number of VAST wrappers ({0}) has been reached.",302),GO=new hO("VAST media file duration differs from the VAST response duration by {0} seconds.",202),HO=new hO("Video player received an ad with unexpected or incompatible linearity",201),IO=new hO("Unknown node in <{0}>: {1}",101),JO=new hO("Invalid VAST resource type: {0}",101),KO=new hO("Invalid VAST version",
102),LO=new hO("No additional VAST wrappers allowed.",300),MO=new hO("No Ads VAST response after one or more Wrappers",303),NO=new hO("There was an error playing the video ad.",400),OO=new hO("VMAP unsupported node in <{0}>: {1}",1010),PO=new hO("An unexpected error occurred within the VPAID creative. Refer to the inner error for more info.",901);function QO(a,b,c){return RO("adLoadError",a,b||null,yb(arguments,2))}function SO(a,b,c){return RO("adPlayError",a,b||null,yb(arguments,2))}
function TO(a,b,c,d,e){a.apply(null,ub([c,d],yb(arguments,3)));b.S(new PN("log",null))}function RO(a,b,c,d){if(c instanceof MN)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 MN(a,b,e);a.g=c;return a}function UO(a,b,c,d){var e=SO.apply(null,ub([b,c],yb(arguments,3)));a.S(new NN(e))};function VO(a){return(a=a.match(/^\w{2,3}([-_]|$)/))?a[0].replace(/[_-]/g,""):""};var WO=new function(){this.j="always";this.b=this.k=this.g=!1};function XO(a){return(a=a.exec(fc))?a[1]:""}var YO=function(){if(ih)return XO(/Firefox\/([0-9.]+)/);if(qc||pc)return zc;if(nh)return XO(/Chrome\/([0-9.]+)/);if(oh)return XO(/Version\/([0-9.]+)/);if(kh||lh){var a;if(a=/Version\/(\S+).*Mobile\/(\S+)/.exec(fc))return a[1]+"."+a[2]}else{if(mh)return(a=XO(/Android\s+([0-9.]+)/))?a:XO(/Version\/([0-9.]+)/);if(jh)return XO(/Camino\/([0-9.]+)/)}return""}();var ZO={},$O="",aP=/OS (\S+) like/,bP=/Android (\S+);/;function cP(){return mc||Qa(fc,"Mobile")}function dP(a,b){if(null==ZO[b]){var c;ya($O)&&(c=a.exec(fc))&&($O=c[1]);(c=$O)?(c.replace(/_/g,"."),ZO[b]=0<=Va(c,b)):ZO[b]=!1}return ZO[b]}function eP(){return nc&&cP()&&Qa(fc,"Safari")||mc&&(!mc||!dP(bP,4))?!1:!0};function fP(){this.g=.05>Math.random();this.b=Math.floor(4503599627370496*Math.random())}da(fP);function gP(a,b,c,d){if(a.g||d){c=c||{};c.lid=b;c=hP(a,c);var e=new J("http://pagead2.googlesyndication.com/pagead/gen_204");Nb(c,function(a,b){K(e,b,null!=a?"boolean"==typeof a?a?"t":"f":""+a:"")},a);a=iP();ce(e,a.Gb);eO(e.toString())}}function hP(a,b){b.id="";var c=iP();b.c=a.b;b.domain=c.Bb;return b}function iP(){var a=Vc(),b=document;return new J(a.parent==a?a.location.href:b.referrer)};function jP(){}f=jP.prototype;f.$C=!1;f.Ks=!1;f.xq=!0;f.baseYouTubeUrl=null;f.Nf=-1;f.contentId=null;f.wk=!1;f.jh=null;f.wn=null;f.useShareButton=!1;f.useStyledNonLinearAds=!1;f.useVideoAdUi=!0;f.youTubeAdNamespace=0;f.showContentThumbnail=!0;f.loadVideoTimeout=15E3;var kP={"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"},lP=["ADSENSE","ADSENSE/ADX"],mP=["DART","DART_DFA","DART_DFP"],nP=["GDFP"],oP={DI:"video/mp4",FI:"video/mpeg",rI:"application/x-mpegURL",MI:"video/ogg",KJ:"video/3gpp",nK:"video/webm",CI:"audio/mpeg",EI:"audio/mp4"};function pP(a,b,c){if(E(a))return null;a=hb(a,function(a){var b=a.j;return"application/x-mpegurl"==za(a.b).toLowerCase()||"progressive"==b});E(c)||(c=A(c,function(a){return a.toLowerCase()}),a=hb(a,function(a){return C(c,za(a.b).toLowerCase())}));if(!ja(b)||0>=b)b=ic("iPad")||ic("Android")&&!ic("Mobile")||ic("Silk")||!(ic("iPod")||ic("iPhone")||ic("Android")||ic("IEMobile"))?1E3:500;return qP(a,b)}function qP(a,b){return rP(a,b)||sP(a,b)||tP(a,b)}
function rP(a,b){var c=null;z(a,function(a){var e=a.Qe,g=a.be;e>b||g<b||!(null==c||c.Qe>e)||(c=a)});return c}function sP(a,b){var c=null;z(a,function(a){var e=a.Qe,g=a.be;g>b||(null==c||c.be<g?c=a:null!=c&&c.be==g&&c.Qe>e&&(c=a))});return c}function tP(a,b){var c=null;z(a,function(a){var e=a.Qe,g=a.be;if(!(e<b))if(null!=c&&c.Qe==e&&c.be<g)c=a;else if(null==c||c.Qe>e)c=a});return c};function uP(){U.call(this);this.k=this.o=this.j=!1;this.g=0;this.A=[];this.B=!1}w(uP,U);function vP(a,b){null==b||a.j||(a.b=b,a.C=!nc&&!xc,a.D=nc||xc,a.j=!0,a.b instanceof U||a.C?a.b.addEventListener("click",u(a.To,a),!1):a.D?(a.b.addEventListener("touchstart",u(a.Wo,a),!1),a.b.addEventListener("touchmove",u(a.Vo,a),!1),a.b.addEventListener("touchend",u(a.Uo,a),!1)):a.j=!1)}
function wP(a){null!=a.b&&a.j&&(a.C?a.b.removeEventListener("click",u(a.To,a),!1):a.D&&(a.b.removeEventListener("touchstart",u(a.Wo,a),!1),a.b.removeEventListener("touchmove",u(a.Vo,a),!1),a.b.removeEventListener("touchend",u(a.Uo,a),!1)),a.j=!1,a.o=!1,a.k=!1,a.g=0,a.A=[],a.B=!1)}f=uP.prototype;f.Wo=function(a){this.o=!0;this.g=a.touches.length;this.B=xP(this,a.touches)||1!=a.touches.length;yP(this,a.touches)};f.Vo=function(a){this.k=!0;this.g=a.touches.length};
f.Uo=function(a){this.o&&1==this.g&&!this.k&&!this.B&&xP(this,a.changedTouches)&&this.S(new T("click"));this.g=a.touches.length;0==this.g&&(this.k=this.o=!1)};f.To=function(){this.S(new T("click"))};function yP(a,b){a.A=[];z(b,function(a){qb(this.A,a.identifier)},a)}function xP(a,b){return jb(b,function(a){return C(this.A,a.identifier)},a)}f.J=function(){wP(this);uP.G.J.call(this)};function zP(a,b,c,d,e,g,h,k,l){this.j=a;this.b=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.Qe=d;this.be=e;this.o=h;this.g=k;this.k=l}zP.prototype.getHeight=function(){return this.o};function AP(a,b,c,d,e,g,h){this.b=a;this.g=b;this.j=c;this.k=h;this.o=d;this.A=e;this.kb=g};function BP(){U.call(this)}w(BP,U);var CP={pG:"beginFullscreen",CLICK:"click",vH:"end",xH:"endFullscreen",ERROR:"error",tI:"mediaLoadTimeout",PAUSE:"pause",PLAY:"play",sJ:"skip",AJ:"start",LJ:"timeUpdate",jK:"volumeChange"};function DP(a){U.call(this);this.b=a;this.M=new Kk(4);this.C=this.N=0;this.I=this.j=this.B=!1;this.size=this.Em();this.D=this.Zi();this.O=15E3;this.F=!1}w(DP,BP);f=DP.prototype;
f.Sq=function(a,b,c,d){a=hb(a,function(a){if(!d&&x(a.g))a=!1;else{var b=a.b;"progressive"!=a.j&&"application/x-mpegurl"!=za(b).toLowerCase()?a=!1:(b=za(b).toLowerCase(),a=ya(b)||mc&&dP(bP,2.3)&&Ma(b,"application/ogg")?!1:mc&&(Ma(b,"video/mp4")||Ma(b,"video/3gpp"))||(nc||xc)&&(Ma(b,"application/x-mpegurl")||Ma(b,"application/vnd.apple.mpegurl"))?!0:!ya(this.b.canPlayType(b)))}return a},this);return pP(a,b,c)};f.gs=function(){return hb(Sb(oP),function(a){return!ya(this.b.canPlayType(a))},this)};
f.Al=function(a){this.O=0<a.kb?a.kb:15E3};f.Cg=function(a){EP(this);this.b.src=a;this.b.load()};f.vn=function(){return this.b.src};f.setVolume=function(a){this.b.volume=a};f.Zd=function(){return this.b.volume};f.play=function(){this.F=!1;Ok(this.b.play,0,this.b);this.L=Ok(this.GB,this.O,this)};f.pause=function(){this.F=!0;this.b.pause()};f.ah=function(){return this.b.paused?nc||xc||nh?this.b.currentTime<this.b.duration:!0:!1};f.Ii=function(){return this.b.muted};
f.$m=function(){nc&&this.b.webkitSupportsFullscreen&&this.b.webkitDisplayingFullscreen&&this.b.webkitExitFullscreen()};f.Zi=function(){if(nc)return this.b.webkitSupportsFullscreen&&this.b.webkitDisplayingFullscreen;var a=window.screen.availWidth||window.screen.width,b=window.screen.availHeight||window.screen.height,c=ka(this.b.getBoundingClientRect)?this.b.getBoundingClientRect():{width:this.b.offsetWidth,height:this.b.offsetHeight};return c.width>=a&&c.height>=b};
f.qh=function(a){var b;t:{for(b=this.M.Qa();b.length;){var c=b.pop();if(0<c){b=c;break t}}b=-1}return b>=a};f.Jf=function(a){this.b.currentTime=a};f.getCurrentTime=function(){return this.b.currentTime};f.rd=function(){return isNaN(this.b.duration)?-1:this.b.duration};f.Ee=function(){return this.b.ended};f.Em=function(){return new G(this.b.offsetWidth,this.b.offsetHeight)};f.Uq=function(){return this.b.seeking};f.J=function(){this.Cf();this.b=null;DP.G.J.call(this)};f.as=function(){return this.b.error};
f.Ei=function(){this.Cf();this.g=new Tk(this);this.g.listen(this.b,"canplay",this.Fz);this.g.listen(this.b,"ended",this.Cz);this.g.listen(this.b,"webkitbeginfullscreen",this.Sl);this.g.listen(this.b,"webkitendfullscreen",this.Bq);this.g.listen(this.b,"pause",this.Dz);this.g.listen(this.b,"playing",this.Hz);this.g.listen(this.b,"timeupdate",this.Iz);this.g.listen(this.b,"volumechange",this.Ez);this.g.listen(this.b,"error",this.Ap);this.o=new uP;this.g.listen(this.o,"click",this.Bz);vP(this.o,this.b);
this.A=new Mk(1E3);this.g.listen(this.A,"tick",this.Gz);this.A.start()};f.Cf=function(){null!=this.o&&(wP(this.o),this.o=null);null!=this.A&&this.A.dispose();null!=this.g&&(this.g.dispose(),this.g=null);EP(this)};function EP(a){a.j=!1;a.I=!1;a.M.clear();Pk(a.L);Kh(a.k)}function FP(a){a.j||(a.j=!0,Pk(a.L),a.S("start"),(!mc||mc&&dP(bP,3))&&(!nc||(nc||xc)&&dP(aP,4))||a.Sl())}f.Fz=function(){var a;if(a=oh)a=fc,a=!(null!=a&&Qa(a,"Samsung")&&Qa(a,"SMART-TV"));a&&!this.I&&(this.Jf(.001),this.I=!0)};
f.Hz=function(){this.S("play");nc||xc||mh||FP(this)};f.Iz=function(){if(!this.j&&(nc||xc||mh)){if(0>=this.getCurrentTime())return;if(mh&&this.Ee()&&1==this.rd()){this.Ap();return}FP(this)}if(nc||xc){if(!this.B&&1.5<this.getCurrentTime()-this.N){this.B=!0;this.Jf(this.C);return}this.N=this.getCurrentTime();this.B=!1;this.getCurrentTime()>this.C&&(this.C=this.getCurrentTime())}this.M.add(this.b.currentTime);this.S("timeUpdate")};f.Ez=function(){this.S("volumeChange")};
f.Dz=function(){var a;this.j&&(nc||xc)&&!this.F&&2>GP(this)-this.b.currentTime?(this.k=new Mk(250),this.g.listen(this.k,"tick",this.Lx),this.k.start(),a=!0):a=!1;a||this.S("pause")};f.Cz=function(){var a=!0;(nc||xc)&&(a=this.C>=this.b.duration-1.5);!this.B&&a&&this.S("end")};f.Sl=function(){this.S("beginFullscreen")};f.Bq=function(){this.S("endFullscreen")};f.Ap=function(){Pk(this.L);this.S("error")};f.Bz=function(){this.S("click")};
f.Gz=function(){var a=this.Em(),b=this.Zi();if(a.width!=this.size.width||a.height!=this.size.height)!this.D&&b?this.Sl():this.D&&!b&&this.Bq(),this.D=b,this.size=a};f.GB=function(){if(!this.j){try{gP(fP.getInstance(),16)}catch(a){}EP(this);this.S("mediaLoadTimeout")}};f.Lx=function(){if(this.Ee()||!this.ah())Kh(this.k);else{var a=this.b.duration-this.b.currentTime,b=GP(this)-this.b.currentTime;0<b&&(2<=b||2>a)&&(Kh(this.k),this.play())}};
function GP(a){for(var b=a.b.buffered.length-1;0<=b;){if(a.b.buffered.start(b)<=a.b.currentTime)return a.b.buffered.end(b);b--}return 0};function HP(a,b){if(null==a||!kd(Lc(a),a))throw SO(pO,null,"containerElement","element");this.o=a;this.g=this.b=null;this.k=b;this.j=null;this.b=I("div",{style:"display:none;"});var c=I("video",{style:"background-color:#000;position:absolute;width:100%;height:100%;"});c.setAttribute("webkit-playsinline",!0);this.g=c;this.j=I("div",{style:"position:absolute;width:100%;height:100%;"});this.o.appendChild(this.b);this.b.appendChild(this.g);this.k&&(c=I("div",{id:this.k,style:"display:none;background-color:#000;position:absolute;width:100%;height:100%;"}),
this.b.appendChild(c));this.b.appendChild(this.j)}w(HP,Ih);HP.prototype.initialize=function(){cP()&&this.g.load()};HP.prototype.dispose=function(){ed(this.b)};HP.prototype.show=function(){var a=this.b;null!=a&&(a.style.display="block")};HP.prototype.hide=function(){var a=this.b;null!=a&&(a.style.display="none")};function IP(a){null!=a?$N(VN,a)?(a=a.match(/yt_vid\/([a-zA-Z0-9_-]{11})/),a=null!=a&&1<a.length?a[1]:null):a=null!=a&&$N(WN,a)?JP(a):null:a=null;return a}function KP(a,b,c){if(null==a)return null;c=new J((null!=c?c:"//www.youtube.com/")+"watch");var d=c.b;d.set("v",a);d.set("feature",b?"trueview-instream":"instream");ge(c,d);return c.toString()}
function JP(a){if(x(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=te(new J(a));return De(a,"v")?a.get("v").toString():De(a,"video_id")?a.get("video_id").toString():null};function LP(a){U.call(this);this.N="ima-chromeless-video";var b=null;null!=a&&(s(a)?this.N=a:b=a);this.O=new Tk(this);this.k=null;this.j=!1;this.B=-1;this.I=!1;this.o=-1;this.g=this.F=this.C=null;this.L="";this.b=!1;this.P=null!=b;this.D=this.M=this.W=null;this.A=void 0;null!=b?(this.b=!0,this.W=b,this.A=2):(a=u(this.Cu,this),MP?a():(NP.push(a),a=Zc("script"),a.src="//www.youtube.com/iframe_api",b=document.getElementsByTagName("script")[0],b.parentNode.insertBefore(a,b)))}w(LP,BP);
var OP=["video/mp4","video/webm"],PP={el:"adunit",controls:0,html5:1,playsinline:1,showinfo:0},NP=[],MP=!1;f=LP.prototype;f.Sq=function(a,b,c){var d=B(a,function(a){return null!==IP(a.g)});return null!==d||!E(c)&&(c=hb(c,function(a){return C(OP,a)}),d=pP(a,b,c),null!==d)?d:B(a,function(a){return C(OP,a.b)})};f.Al=function(a){this.g=a};f.Cg=function(a,b){null!==a&&(this.L=a,this.b?QP(this,a,b):(this.C=a,this.F=b))};f.vn=function(){return this.L};
f.setVolume=function(a){this.P?this.S("volumeChange"):this.b?(a=Ib(100*a,0,100),this.W.setVolume(a),this.o=-1,this.S("volumeChange")):this.o=a};f.Zd=function(){return this.b?this.W.getVolume()/100:this.o};f.play=function(){if(!x(this.L)){if(!this.j){RP(this);var a=15E3;null!=this.g&&0<this.g.kb&&(a=this.g.kb);this.T=Ok(this.zx,a,this)}this.b?(this.I=!1,SP(this),this.k=new Mk(100),this.O.listen(this.k,"tick",this.aq),this.k.start(),this.W.playVideo()):this.I=!0}};
f.pause=function(){this.b&&this.j&&(SP(this),this.W.pauseVideo())};f.ah=function(){return this.b?2==this.W.getPlayerState(this.A):!1};f.Ii=function(){return this.U?this.W.isMuted():0==this.Zd()};f.$m=function(){};f.Zi=function(){return!1};f.qh=function(a){return this.b?this.W.getCurrentTime(this.A)>=a:!1};f.Jf=function(a){this.b?this.W.seekTo(a,!1):this.B=a};f.getCurrentTime=function(){return this.b?this.W.getCurrentTime(this.A):-1};
f.rd=function(){return this.b&&this.j?this.W.getDuration(this.A):-1};f.as=function(){return null};f.gs=function(){return Sb(oP)};f.Ee=function(){return this.b?0==this.W.getPlayerState(this.A):!1};f.Em=function(){var a=document.getElementById(this.N);return new G(a.offsetWidth,a.offsetHeight)};f.Uq=function(){return!1};
f.Ei=function(){this.M=u(this.Hs,this);this.D=u(this.En,this);this.P&&(this.W.addEventListener("onAdStateChange",this.D),this.W.addEventListener("onReady",this.M),this.W.addEventListener("onStateChange",this.D))};f.Cf=function(){this.P&&(this.W.removeEventListener("onAdStateChange",this.D),this.W.removeEventListener("onReady",this.M),this.W.removeEventListener("onStateChange",this.D))};
f.Cu=function(){var a=this.N,b={playerVars:ac(PP),events:{onError:u(this.mD,this),onReady:u(this.Hs,this),onAdStateChange:u(this.En,this),onStateChange:u(this.En,this)}},c=p("YT");this.W=null!=c&&null!=c.Player?new c.Player(a,b):null};
function QP(a,b,c){var d={};if(null!=a.g){var e=a.g.g;null!=e&&(d.agcid=e);e=a.g.b;null!=e&&(d.adformat=e);(e=a.g.j)&&(d.cta_conversion_urls=e);d.iv_load_policy=a.g.o?1:3;a.g.k&&(d.noiba=1);a.g.A&&(d.utpsa=1)}e=IP(b);null===e?d.url_encoded_third_party_media="url="+encodeURIComponent(b)+"&type="+encodeURIComponent(null===c?"":c):d.videoId=e;a.j=!1;a.W.cueVideoByPlayerVars(d)}f.mD=function(){this.S("error")};
f.Hs=function(){this.b=!0;-1!=this.o&&(this.setVolume(this.o),this.o=-1);null!=this.C&&(QP(this,this.C,this.F),this.F=this.C=null);-1!=this.B&&(this.Jf(this.B),this.B=-1);this.I&&this.play()};f.En=function(a){switch(a.data){case 0:this.j?this.S("end"):this.S("error");break;case 1:this.j||(RP(this),this.j=!0,this.S("start"));this.S("play");break;case 2:this.S("pause")}};function SP(a){a.O.Ga(a.k,"tick",a.aq);null!=a.k&&(a.k.stop(),a.k=null)}function RP(a){null!=a.T&&Pk(a.T)}f.aq=function(){this.S("timeUpdate")};
f.zx=function(){this.S("mediaLoadTimeout")};f.J=function(){SP(this);RP(this);this.Cf();this.b=!1;this.O.dispose();this.B=-1;this.F=null;this.I=!1;this.C=null;this.o=-1;this.M=this.W=this.g=null;this.j=!1;this.L="";LP.G.J.call(this)};ba("onYouTubeIframeAPIReady",function(){MP=!0;z(NP,function(a){a()});pb(NP)},window);function TP(a){U.call(this);this.b=a||Za();this.g=[]}w(TP,U);TP.prototype.j=!1;TP.prototype.connect=function(){for(this.j=!0;!E(this.g);){var a=this.g.shift();this.sendMessage(a.name,a.type,a.data)}};TP.prototype.send=function(a,b,c){this.j?this.sendMessage(a,b,c):this.g.push({name:a,type:b,data:c})};function UP(a,b,c,d,e){T.call(this,a);this.hd=b;this.Xe=c;this.Rq=d;this.k=e}w(UP,T);UP.prototype.getOrigin=function(){return this.k};UP.prototype.toString=function(){return""};function VP(a,b){TP.call(this,b);this.k=a;this.Dc=null;this.o=new Tk(this);this.logger=null;this.o.listen(Vc(),"message",this.receive)}w(VP,TP);function WP(a){if(null==a||!s(a)||0!=a.lastIndexOf("ima://",0))return null;a=a.substr(6);try{return of(a)}catch(b){return null}}VP.prototype.sendMessage=function(a,b,c){null!=this.Dc&&null!=this.Dc.postMessage&&this.Dc.postMessage(XP(this,a,b,c),"*");null!=this.Dc&&null==this.Dc.postMessage&&gP(fP.getInstance(),11)};
VP.prototype.J=function(){this.o.dispose();VP.G.J.call(this)};VP.prototype.receive=function(a){a=a.b;var b=WP(a.data);if(null!=b){if(null==this.Dc)this.Dc=a.source;else if(this.Dc!=a.source)return;var c=b.channel;null!=c&&c==this.k&&(c=b.sid,null!=c&&("*"!=this.b&&c!=this.b||this.S(new UP(b.name,b.type,b.data||{},b.sid,a.origin))))}};function XP(a,b,c,d){var e={};e.name=b;e.type=c;null!=d&&(e.data=d);e.sid=a.b;e.channel=a.k;return"ima://"+qf(e)};function YP(a,b){U.call(this);this.k=a;this.j=b;this.b={};this.g=new Tk(this);this.g.listen(Vc(),"message",this.o)}w(YP,U);YP.prototype.send=function(a){var b=a.getChannelId();this.b.hasOwnProperty(b)?this.b[b].send(a.type,a.hd,a.Xe):a.getChannelId()};function ZP(a,b,c,d){a.b.hasOwnProperty(b)||(c=new VP(b,c),a.g.listen(c,a.k,function(a){a=new $P(a.type,a.hd,a.Xe,a.Rq,a.getOrigin(),b);this.S(a)}),c.Dc=d,c.connect(),a.b[b]=c)}YP.prototype.J=function(){this.g.dispose();Mh(this.b);YP.G.J.call(this)};
YP.prototype.o=function(a){a=a.b;var b=WP(a.data);if(null!=b){var c=b.channel;if(this.j&&!this.b.hasOwnProperty(c)){var d=b.sid;ZP(this,c,d,a.source);this.S(new $P(b.name,b.type,b.data||{},d,a.origin,c))}}};function $P(a,b,c,d,e,g){UP.call(this,a,b,c,d,e);this.j=g}w($P,UP);$P.prototype.getChannelId=function(){return this.j};function aQ(){var a=p("google.ima.gptProxyInstance",Vc());if(null!=a)return a;Tk.call(this);this.k=new YP("gpt",!0);this.listen(this.k,"gpt",this.A);this.b=null;bQ()||Vc().top===Vc()||(this.b=new YP("gpt",!1),this.listen(this.b,"gpt",this.o))}w(aQ,Tk);function bQ(){return!!p("googletag.cmd",Vc())}function cQ(){var a=p("googletag.console",Vc());return null!=a?a:null}
aQ.prototype.A=function(a){var b=a.getOrigin(),c=Od("//imasdk.googleapis.com"),b=Od(b);if(c[3]==b[3]&&c[4]==b[4])if(null!=this.b)ZP(this.b,a.getChannelId(),a.Rq,Vc().parent),null!=this.b&&this.b.send(a);else if(c=a.Xe,null!=c&&n(c.scope)){var b=c.scope,c=c.args,d;if("proxy"==b)c=a.hd,"isGptPresent"==c?d=bQ():"isConsolePresent"==c&&(d=null!=cQ());else if(bQ())if("pubads"==b||"companionAds"==b){d=a.hd;var e,g=Vc().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.hd,e=cQ(),null!=e&&(g=e[g],null!=g))try{g.apply(e,c)}catch(k){}}else if(null===b){e=a.hd;d=Vc();if(C(["googleGetCompanionAdSlots","googleSetCompanionAdContents"],e)&&(e=d[e],null!=e))try{g=e.apply(d,c)}catch(l){}d=g}n(d)&&(a.Xe.returnValue=d,this.k.send(a))}};aQ.prototype.o=function(a){this.k.send(a)};function dQ(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,q,r,t){if("%"==q)return"%";var y=c.shift();if("undefined"==typeof y)throw Error("[goog.string.format] Not enough arguments");arguments[0]=y;return eQ[q].apply(null,arguments)})}
var eQ={s:function(a,b,c){return isNaN(c)||""==c||a.length>=c?a:a=-1<b.indexOf("-",0)?a+Sa(" ",c-a.length):Sa(" ",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+Sa(" ",a):g+Sa(0<=b.indexOf("0",0)?"0":" ",a)+d},d:function(a,b,c,d,e,g,h,k){return eQ.f(parseInt(a,
10),b,c,d,0,g,h,k)}};eQ.i=eQ.d;eQ.u=eQ.d;function fQ(a,b){U.call(this);this.j=new Tk(this);this.B=!1;this.C=Za();this.o=new Dd;var c=this.C,c=I("iframe",{src:("https:"==document.location.protocol?"https:":"http:")+dQ("//imasdk.googleapis.com/js/core/bridge0.0.0_%s.html","en")+"#"+c,style:"border:0; opacity:0; margin:0; padding:0; position:relative;"});Xk(this.j,c,"load",this.nv);a.appendChild(c);this.fb=c;c=this.o.get("*");null==c&&(c=new VP(this.C,"*"),this.B&&(c.Dc=ld(this.fb),c.connect()),this.o.set("*",c));this.k=c;this.A=b;this.b=this.A.j;
this.g=null;this.j.listen(this.k,"mouse",this.pv);this.j.listen(this.k,"touch",this.rv);null!=this.b&&(this.j.listen(this.k,"displayContainer",this.ov),this.j.listen(this.k,"videoDisplay",this.qv),this.j.listen(this.b,Sb(CP),this.sv));var c=Vc(),d=p("google.ima.gptProxyInstance",c);null==d&&(d=new aQ,ba("google.ima.gptProxyInstance",d,c))}w(fQ,U);f=fQ.prototype;
f.J=function(){this.j.dispose();null!==this.g&&(this.g.dispose(),this.g=null);Bd(this.o.Wb(!1),function(a){a.dispose()});this.o.clear();ed(this.fb);fQ.G.J.call(this)};f.pv=function(a){var b=a.Xe,c=Rf(this.fb),d=document.createEvent("MouseEvent");d.initMouseEvent(a.hd,!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(!oh||nc||xc||!1==document.webkitIsFullScreen)this.fb.blur(),window.focus();this.fb.dispatchEvent(d)};
function gQ(a,b){var c=Rf(a.fb),d=A(b,function(a){return document.createTouch(window,this.fb,a.identifier,a.pageX+c.x,a.pageY+c.y,a.screenX,a.screenY)},a);return document.createTouchList.apply(document,d)}
f.rv=function(a){var b=a.Xe,c=Rf(this.fb),d=document.createEvent("TouchEvent");d.initTouchEvent(a.hd,!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,gQ(this,b.touches),gQ(this,b.targetTouches),gQ(this,b.changedTouches),b.scale,b.rotation);this.fb.dispatchEvent(d)};
f.qv=function(a){if(null!=this.b){var b=a.Xe;switch(a.hd){case "startTracking":this.b.Ei();break;case "stopTracking":this.b.Cf();break;case "exitFullscreen":this.b.$m();break;case "play":this.b.play();break;case "pause":this.b.pause();break;case "load":this.b.Cg(b.videoUrl,b.mimeType);break;case "setCurrentTime":this.b.Jf(b.currentTime);break;case "setPlaybackOptions":a=b.playbackOptions,this.b.Al(new AP(a.adFormat,a.adSenseAgcid,a.ctaAnnotationTrackingEvents,a.showAnnotations,a.viewCountsDisabled,
a.loadVideoTimeout,a.ibaDisabled))}}};
f.sv=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.b.Ee();break;case "play":a="play";break;case "skip":a="skip";break;case "start":a="start";break;case "timeUpdate":a="timeupdate";b.currentTime=this.b.getCurrentTime();b.duration=this.b.rd();break;case "volumeChange":a=
"volumeChange";b.volume=this.b.Zd();break;default:return}this.k.send("videoDisplay",a,b)};f.ov=function(a){switch(a.hd){case "showVideo":null!=this.g?wP(this.g):(this.g=new uP,this.j.listen(this.g,"click",this.fy));a=this.A;vP(this.g,null!=a.B?a.B:null!=a.b?a.b.j:null);a=this.A;null!=a.b&&a.b.show();break;case "hide":null!==this.g&&(this.g.dispose(),this.g=null),this.A.hide()}};f.fy=function(){this.k.send("displayContainer","videoClick")};
f.nv=function(){Bd(this.o.Wb(!1),function(a){a.Dc=ld(this.fb);a.connect()},this);this.B=!0};function hQ(a,b,c,d){if(null==a||!kd(Lc(a),a))throw SO(pO,null,"containerElement","element");this.C=a;var e=null!=b||null!=d;this.A=(this.k=e)&&null!=d;gP(fP.getInstance(),8,{enabled:this.k,yt:null!=d,customClick:null!=c});WO.g?a=null:(e=I("div",{style:"position:absolute"}),a.insertBefore(e,a.firstChild),a=e);this.g=a;this.b=this.k||null==this.g||WO.g||!cP()?null:new HP(this.g,null);a=null;this.k?null!=d?a=new LP(d):null!=b&&(a=new DP(b)):null!=this.b&&(a=new DP(this.b.g));this.j=a;this.B=c||null;
this.o=null==this.g||WO.g?null:new fQ(this.g,this)}hQ.prototype.initialize=function(){null!=this.b&&this.b.initialize()};hQ.prototype.destroy=function(){Kh(this.b);Kh(this.o);Kh(this.j);ed(this.g)};hQ.prototype.hide=function(){null!=this.b&&this.b.hide()};function iQ(){U.call(this);this.currentTime=0}w(iQ,U);function jQ(a){iQ.call(this);this.currentTime=a.currentTime;if(!("currentTime"in a)||isNaN(a.currentTime))throw SO(pO,null,"content","currentTime");this.g=a;this.b=new Mk(250);this.j=new Tk(this);Wk(this.j,this.b,"tick",this.k,this)}w(jQ,iQ);jQ.prototype.start=function(){this.b.start()};jQ.prototype.stop=function(){this.b.stop()};jQ.prototype.J=function(){jQ.G.J.call(this);this.j.dispose();this.b.dispose()};
jQ.prototype.k=function(){if("currentTime"in this.g&&!isNaN(this.g.currentTime)){var a=this.currentTime;this.currentTime=this.g.currentTime;a!=this.currentTime&&this.S(new T("currentTimeUpdate"))}else this.S(new T("contentWrapperError")),this.stop()};function kQ(){this.reset()}kQ.prototype.reset=function(){this.b=0;this.g=null};function lQ(){this.g=this.b=null}lQ.prototype.reset=function(){this.g=this.b=null};function mQ(){this.b=nQ();this.M=this.L=this.j=this.B=this.k=null;this.I=nQ();this.g=null;this.N=this.C=this.D="";this.A=this.F=this.o=null}function nQ(){return Math.floor(4503599627370496*Math.random())}var oQ=new mQ;mQ.prototype.clear=function(){this.b=nQ();this.j=this.B=this.k=null;this.I=nQ();this.g=null;this.N=this.C=this.D="";this.A=this.F=this.o=null};function pQ(a){if(WO.g)return"h.3.0.0";var b="h."+a.N;null!=a.o&&(b+="/n."+a.o,null!=a.k&&(b+="/"+a.k));return b};function qQ(a,b){this.A=a;this.o=A(b,function(a){return a.clone()});this.k="";this.b=this.j=0;this.g=!0}function rQ(a){a.k="";a.j=0;a.b=0;a.g=!0}qQ.prototype.clone=function(){var a=new qQ(this.A,this.o),b=this.j,c=this.b,d=this.g;a.k=this.k;a.j=b;a.b=c;a.g=d;return a};function sQ(){U.call(this);this.k=!1}w(sQ,U);function tQ(a){T.call(this,a)}w(tQ,T);function uQ(){sQ.call(this);this.B=[];this.o=!1;this.j="not_loaded";this.g=null;this.A=0;this.b=null;this.C=new Kc}w(uQ,sQ);da(uQ);function vQ(a){var b=["googletag","googletag.cmd"];return B(a,function(a){return lb(b,function(b){return null!==p(b,a)})})||null}f=uQ.prototype;f.J=function(){this.g&&this.g.dispose()};f.initialize=function(){if(!this.k){var a;var b=wd(new Kc);try{p("googletag"),vQ([b,b.top]),a=!0}catch(c){a=!1}a?wQ(this):(this.k=!0,this.j="not_available")}};
function xQ(a){return a.k?A(a.B,function(a){return a.clone()}):[]}function yQ(a){a=xQ(a);return null!=a?A(a,function(a){return a.o}):void 0}function zQ(a,b,c){var d=0,e=0;null!=b&&(b=new J(b.adTagUrl),d=Number(we(b,"pod")||0),e=Number(we(b,"ppos")||0));if(null!=a.setVideoSessionInfo)try{a.setVideoSessionInfo(oQ.b,"","","",d,e,c)}catch(g){}}function AQ(a,b){var c=BQ(a);if(null!==c){zQ(c,b,!0);try{c.refreshAllSlots()}catch(d){}}}
f.setVideoContent=function(a,b){var c=CQ(this);if(null!=c)try{c.setVideoContent(a,b)}catch(d){}};function BQ(a){null==a.b&&DQ(a);return null!=a.b&&null!=a.b.googletag&&null!=a.b.googletag.companionAds?a.b.googletag.companionAds():null}function CQ(a){null==a.b&&DQ(a);return null!=a.b&&null!=a.b.googletag&&null!=a.b.googletag.pubads?a.b.googletag.pubads():null}f.bp=function(){0<this.A&&v()>=this.A?(this.k=!0,EQ(this),FQ(this)):wQ(this)};
function EQ(a){a.g&&(a.g.stop(),a.g.Ga("tick",a.bp,!1,a),a.g.dispose(),a.g=null)}
function wQ(a){var b;if(b=!a.o)DQ(a),b=null!=a.b&&null!=a.b.googleGetCompanionAdSlots;if(b){var c;try{if(null==a.b)a.o=!0,c=[];else{var d=a.b.googleGetCompanionAdSlots();c=A(d,a.tv,a)}}catch(e){a.o=!0,c=[]}a.B=c;a.o=!0}if(b="retrieved"!=a.j&&"not_available"!=a.j)b=null!==BQ(a);if(b){var g;b=BQ(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.j=g;break;default:g=Number(g),isNaN(g)?a.j="not_available":
(a.D=g,a.j="retrieved")}}a.o&&"retrieved"==a.j?(a.k=!0,EQ(a),a.S(new tQ("companions_success"))):a.o&&"not_available"==a.j?(a.k=!0,EQ(a),FQ(a)):a.g||(a.A=v()+5E3,a.g=new Mk(100),a.g.listen("tick",a.bp,!1,a),a.g.start())}function DQ(a){var b=wd(a.C);try{a.b=vQ([b,b.top])}catch(c){a.b=null}}function FQ(a){a.S(new tQ("companion_initialization_failed"))}f.tv=function(a){var b=A(a.adSizes,function(a){return new G(a.adWidth,a.adHeight)});return new qQ(a.slotId,b)};
f.my=function(a){var b={};b.slotId=a.A;b.adContent=a.k;b.adWidth=a.j;b.adHeight=a.b;b.friendlyIframeRendering=a.g;return b};function GQ(a){T.call(this,a)}w(GQ,T);function HQ(){U.call(this);this.j=[]}w(HQ,U);HQ.prototype.qi=function(){return null};HQ.prototype.Ls=function(){return!0};function IQ(){return new JQ("empty-ad","GDFP",0,"",0,0,0,[],[],[],[],new Dd)};function KQ(a){HQ.call(this);this.b=a;this.A=null;this.B=!1;this.g=null;this.o=new Tk;Wk(this.o,this.b,["companions_success","companion_initialization_failed"],this.Ex,this);Wk(this.o,this.b,"companion_display_error",this.Cx,this);this.b.k?this.B=!0:this.b.initialize()}w(KQ,HQ);f=KQ.prototype;f.destroy=function(){null!=this.o&&this.o.dispose();this.g=null};function LQ(a,b){a.g=b;a.k=!0;a.B?MQ(a):(a.k=NQ(OQ(b),[]),a.k||(a.g=null))}
function MQ(a){var b=a.g;a.g=null;if(null!=a.b)if(E(a.j))PQ(a);else if(null!=b){var c=QQ(a,b),d=a.b;try{d.b.googleSetCompanionAdContents(A(a.j,d.my,d))}catch(e){d.S(new tQ("companion_display_error"))}if(0<c.length&&b.T&&(d=a.b,0!=c.length&&"GDFP"==RQ(b)[0])){a=[];for(var g=0;g<c.length;g++)a.push(c[g].A);b=b.j;c=BQ(d);if(null!==c){zQ(c,b,!1);try{c.notifyUnfilledSlots(a)}catch(h){}}}}else PQ(a)}function PQ(a){a.S(new GQ("companion_display_error"))}f.Ls=function(){return this.k};
f.Ex=function(){null!=this.A&&(this.A.stop(),this.A.dispose(),this.A=null);if(null!=this.b){var a=xQ(this.b);null!=a&&(this.j=a)}this.B=!0;null!=this.g&&MQ(this);this.S(new T("initialized"))};f.Cx=function(){PQ(this)};
function QQ(a,b){var c=[],d=[];z(a.j,function(a){rQ(a);jb(a.o,function(d){t:{var e=SQ(b);d=TQ(new UQ(new G(d.width,d.height)),e);if(!E(d)&&(d=VQ(d,c),null!=d)){e=d.j;if(null!=e&&0!=a.A.indexOf(e)){d=!1;break t}c.push(d);var e=d.b.xl(),l=d.b.sd(),q=d.getHeight();d="IFrame"!=d.b.P;a.k=e;a.j=l;a.b=q;a.g=d;d=!0;break t}d=!1}return d},this)||d.push(a)},a);var e=OQ(b);a.k=NQ(e,c);a.k||z(a.j,function(a){rQ(a)},a);return d}
function NQ(a,b){if(null==a)return!0;var c=a.b;return"all"==a.g?WQ(c,b):"any"==a.g?XQ(c,b):!0}function OQ(a){return null!=a&&ga(a.getSelectedCreative())&&!isNaN(YQ(a.getSelectedCreative()))?B(ZQ(a,!0),function(a){a=a.b;return E(a)?!1:isNaN(a[0].b.b)?!1:a[0].b.b==$Q(a[0])}):null}function WQ(a,b){return lb(a,function(a){return C(b,a)})}function XQ(a,b){return jb(a,function(a){return C(b,a)})}function VQ(a,b){return B(a,function(a){return!C(b,a)})}f.qi=function(){return this.b};function aR(a){T.call(this,a);this.o=[];this.k={};this.j=null}w(aR,T);function bR(){this.ta="";this.g=this.b=!1}var cR=null;function dR(){null!=cR||(cR=new bR);return cR}f=bR.prototype;f.init=function(){this.b||(gv(kv("//pagead2.googlesyndication.com/pagead/js/lidar.js",{timeout:3E4}),this.gC,this.fC,this),this.b=!0)};f.start=function(){this.b&&(this.ta=String(1E9*Math.random()))};function eR(a,b){if(a.b&&a.g){var c={},d;d=WO.o;WO.b&&null!=d&&(c.opt_videoAdElement=Mc(d));return Goog_AdSense_Lidar_sendVastMessage(b,a.ta,c)}return""}
f.destroy=function(){this.ta="";this.g=this.b=!1};f.gC=function(){this.g=!0};f.fC=function(){this.g=!1};ba("ima.common.triggerViewEvent",function(){},void 0);function fR(a,b,c){this.A=b;this.k=c;this.o=null;this.g=new Tk(this);this.F=a;this.j=this.b=null;this.B=!1}fR.prototype.start=function(a,b){this.o=a;this.D=b;gR(this);this.A.B?this.C():Zk(this.g,this.A,"initialized",this.C,this)};fR.prototype.C=function(){var a=this.A.qi(),b;b=a.k?"retrieved"!=a.j?void 0:a.D:void 0;a=yQ(a);null!=b&&(this.k.I=b);null!=a&&(this.k.A=a);hR(this)};
function hR(a){if(null===a.o)iR(a);else{var b=new J(a.o.adTagUrl),c=za(we(b,"vid")),b=za(we(b,"cmsid")),d=a.k.D,e=a.k.C;a.k.D=c;a.k.C=b;if(x(c)||x(b))iR(a);else if(c==d&&b==e)iR(a);else{var g=a.A.qi();g.setVideoContent(c,b);AQ(g,a.o);a.j=new Mk(100);Wk(a.g,a.j,"tick",function(){var a;t:{var b=CQ(g);if(null!=b)try{a=!1!==b.isAdRequestFinished();break t}catch(c){a=!0;break t}a=!1}a&&iR(this)},a);a.j.start()}}}
function gR(a){a.b=new Mk;Zk(a.g,a.b,"tick",function(){iR(this)},a);Nk(a.b,a.F);a.b.start()}function iR(a){null!=a.g&&(a.g.dispose(),a.g=null);null!=a.b&&(a.b.stop(),a.b=null);null!=a.j&&(a.j.stop(),a.j=null);a.B=!0;null===a.D||a.D()};function jR(){};function kR(a){return QO(IO,null,a.parentNode.nodeName,a.nodeName)}function lR(a){return QO(xO,null,a.parentNode.nodeName,a.nodeName)}function mR(a,b){return null!=a?hb(gd(a),function(a){return a.nodeName==b}):[]}function nR(a,b){var c=a.getAttribute(b);return null!=c?c.toLowerCase():null}function oR(a,b){if(null==a)return null;var c="";z(a.childNodes,function(a){if(4==a.nodeType||3==a.nodeType)c+=a.nodeValue});c=Aa(c);return b?La(c):c}
function pR(a,b,c,d){null!=a&&z(gd(a),function(a){if(a.nodeName==b)c.call(d,a);else throw kR(a);})}function qR(a){return x(a)?NaN:$a(za(a))}function rR(a,b){if(null!=a){var c=a.split(":");if(3==c.length)return c=new yM(0,0,0,$a(c[0]),$a(c[1]),$a(c[2])),60*(60*(24*c.b+c.k)+c.o)+c.A}return null!=b?b:-1}function sR(a,b){if(!x(a))switch(a.toLowerCase()){case "true":case "1":return!0;case "false":case "0":return!1}return null!=b?b:!1};function tR(a,b,c){this.g=a;this.b=c;this.j=b};function uR(a){this.j=a};function vR(a){this.j=a;this.g=this.b=!1}w(vR,uR);function wR(a,b,c){this.b=a;this.g=b;this.j=c};function xR(){this.b=new Dd}function yR(a,b,c){if(isNaN(c))throw Error("Incorrect time offset.");var d=[];Fd(a.b.g,c)&&(d=a.b.get(c,[]));z(b,function(a){null!=a&&qb(d,a)});a.b.set(c,d)};function zR(a,b){this.b=a;this.g=b}w(zR,jR);zR.prototype.j=function(){return new tR(this.b,null,AR(this))};
function AR(a){var b=new xR;z(gd(hd(a.b)),function(a){switch(a.nodeName){case "Preroll":a=BR(this,a);yR(b,a,0);break;case "Midroll":var d=nR(a,"timeOffset"),e=rR(d);if(-1==e)throw QO(kO,null,"timeOffset",za(d));a=BR(this,a);yR(b,a,e);break;case "Postroll":a=BR(this,a);yR(b,a,-1);break;default:throw QO(tO,null,a.parentNode.nodeName,a.nodeName);}},a);if(0==b.b.Ma().length)throw QO(sO);return b}
function BR(a,b){var c=[];z(gd(b),function(a){switch(a.nodeName){case "Ad":var b=za(oR(a));if(!ya(b)){a=nR(a,"bumper");var g=this.g.clone();g.adTagUrl=b;b=new vR(g);b.b=null!=a;b.g="always"==a;qb(c,b)}break;default:throw QO(tO,null,a.parentNode.nodeName,a.nodeName);}},a);return c};function CR(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 DR(a){var b={};z(a.split(","),function(a){var d=a.split("=");2==d.length&&(a=Aa(d[0]),d=Aa(d[1]),0<a.length&&(b[a]=d))});return b};var ER=["ai","sigh"];function FR(a){var b;b=null!=a&&/(doubleclick.net|googleadservices.com)/.test(a)?Ma(a,"/pagead/adview")?GR(a)?0:2:Ma(a,"/pagead/conversion")?GR(a)?1:2:2:2;if(2==b)return a;switch(b){case 0:return b=oQ.F,a=null!=b?HR(a,"&ppid="+b):a,HR(a,"&sdkv="+pQ(oQ));case 1:return HR(a,"&sdkv="+pQ(oQ))}return a}function HR(a,b){var c=a.indexOf("&adurl=");return-1!=c?Ua(a.substr(0,c),b,a.substr(c,a.length)):a+b}
function GR(a){return lb(ER,function(b){var c=a||"";return 0<=Zd(c,0,b,c.search($d))})};function IR(a,b){this.b=a;this.g=b}function JR(a){return a.g?-1:a.b};function KR(){this.b=new Dd}function LR(a,b){this.g=a;this.b=b}function MR(a,b){LR.call(this,"progress",a);this.j=b}w(MR,LR);function NR(a,b){z(b,function(a){this.b.set(a.g,b)},a)}function OR(a,b,c,d){var e=b.toLowerCase();b=PR(a,b);null!=d?(d=new MR(c,d),null!=d?b.push(d):b.push(new LR(e,c))):b.push(new LR(e,c));a.b.set(e,b)}function QR(a,b){z(b,function(a){var d=PR(this,a.g);b=ub(d,b);this.b.set(a.g,b)},a)}function PR(a,b){return null!=b?a.b.get(b.toLowerCase())||[]:[]}
function RR(a,b){var c=PR(a,"progress");z(c,function(a){a=a.j;a.g&&(a.g=!1,a.b=a.b*b/100)});Cb(c,function(a,b){return JR(a.j)-JR(b.j)})}KR.prototype.isEmpty=function(){return this.b.isEmpty()};function SR(a,b){return A(PR(a,b)||[],function(a){return a.b})};function TR(a){var b=new KR;pR(a,"Tracking",function(a){var d=nR(a,"event"),e=FR(oR(a));UR(e)&&null!=d&&("progress"==d?(a=nR(a,"offset"),a=VR(a),null!=a&&OR(b,d,e,a)):OR(b,d,e))});return b}function WR(a){if(x(a))return null;a=new J(a);if("thismessage"!=a.Gb||"extensions"!=a.Bb)return null;a=a.Mb;if(0!=a.lastIndexOf("/",0))return null;a=a.substr(1);return x(a)?null:a}
function VR(a){if(x(a))return null;var b=null;0<a.indexOf("%")?(a=Number(a.substr(0,a.indexOf("%"))),!isNaN(a)&&0<=a&&(b=new IR(a,!0))):(a=rR(a),0<=a&&(b=new IR(a,!1)));return b}function UR(a){var b=!0;if(x(a))b=!1;else try{new J(a)}catch(c){b=!1}return b};function XR(a){this.b=null!=a?a:new KR}function YR(a,b){var c=b.b;z(c.Ma(),function(a){QR(this.b,c.get(a))},a)}function ZR(a,b){var c=SR(a.b,b);return null!=c?c:[]};function $R(){this.b="Ads by Google";this.g="http://www.google.com/adsense/support";this.j=0};function aS(a,b,c,d,e,g,h,k,l){XR.call(this,l);this.k=a;this.o=b;this.g=c;this.j=e;this.A=g;this.B=h}w(aS,XR);function bS(){}bS.prototype.parse=function(a){var b;pR(a,"config",function(a){null!=b||(b=cS(this,a))},this);return b};function cS(a,b){var c;z(gd(b),function(a){switch(a.nodeName){case "context":c="default"==a.getAttribute("data")?new $R:null;break;case "params":null!=c&&dS(this,c,a)}},a);return c}function dS(a,b,c){z(gd(c),function(a){var c=a.attributes[0].value;switch(a.nodeName){case "attribution_url":b.g=c;break;case "attribution_text":b.b=c;break;case "signals":b.j=parseInt(c,10)}},a)};function eS(){}
eS.prototype.parse=function(a){if(null==a)return null;var b,c,d,e,g,h,k=!1;z(gd(a),function(a){switch(a.nodeName){case "AttributionText":b=oR(a);break;case "AttributionUrl":c=oR(a);break;case "ConversionUrl":e=oR(a);break;case "CustomTracking":null!=gd(a)&&(d=TR(a));break;case "PreviousAdInformation":oR(a);break;case "VisibleUrl":g=oR(a);break;case "UI":h=(new bS).parse(a);break;case "ShowYouTubeAnnotations":var q=oR(a);k=sR(za(q),!1);case "QueryId":oR(a)}},this);null!=h||(h=new $R);return new aS(b,
c,e,0,g,h,k,0,d)};function fS(a,b){XR.call(this,b);this.g=a}w(fS,XR);function gS(){}gS.prototype.parse=function(a){if(null==a)return null;var b;z(gd(a),function(a){switch(a.nodeName){case "CustomTracking":null!=gd(a)&&(b=TR(a))}});a=null;null!=b&&0<PR(b,"skip").length&&(a="Generic");return new fS(a,b)};function hS(){}hS.prototype.parse=function(a){if(null==a)return null;var b,c;z(gd(a),function(a){switch(a.nodeName){case "SkippableAdType":b=oR(a);break;case "CustomTracking":null!=gd(a)&&(c=TR(a))}});return new fS(b,c)};function iS(){}iS.prototype.parse=function(a){if(null==a)return null;var b;z(gd(a),function(a){switch(a.nodeName){case "CustomTracking":null!=gd(a)&&(b=TR(a))}},this);return new XR(b)};function jS(){XR.call(this)}w(jS,XR);function kS(){}kS.prototype.parse=function(a){a=UC(a);return x(a)?null:new jS};function lS(a){XR.call(this);this.g=a}w(lS,XR);function mS(){XR.call(this)}w(mS,XR);function nS(){}nS.prototype.b={iC:"TEMPLATE_PARAMETERS",jC:"TEMPLATE_URL"};nS.prototype.parse=function(a){if(null==a)return null;z(gd(a),function(a){switch(a.nodeName){case this.b.iC:oS(this,a)}},this);return new mS};function oS(a,b){z(gd(b),function(a){a.nodeName==this.b.jC&&oR(a)},a)};function pS(a,b,c,d){XR.call(this);this.j=a;this.k=b;this.o=c;this.g=d}w(pS,XR);function qS(){}qS.prototype.b={ZB:"Line1",$B:"Line2",aC:"Line3",YB:"ImageUrl"};qS.prototype.parse=function(a){if(null==a)return null;var b,c,d,e;z(gd(a),function(a){switch(a.nodeName){case this.b.ZB:b=oR(a,!0);break;case this.b.$B:c=oR(a,!0);break;case this.b.aC:d=oR(a,!0);break;case this.b.YB:e=oR(a)}},this);return new pS(b,c,d,e)};function rS(a){XR.call(this);this.g=a}w(rS,XR);function sS(){}sS.prototype.parse=function(a){if(null==a)return null;a=a.getAttribute("sequence");a=null!=a?$a(a):NaN;a=isNaN(a)?-1:a;return new rS(a)};function tS(){XR.call(this)}w(tS,XR);function uS(){}uS.prototype.parse=function(a){return null!=a?new tS:null};function vS(a){XR.call(this);this.g=isNaN(a)?-1:a}w(vS,XR);function wS(){}wS.prototype.parse=function(a){if(null==a)return null;a=a.getAttribute("fallback_index");a=null!=a?$a(a):NaN;return new vS(a)};function xS(){}var yS={IMAGE:"Image",uE:"Flash",nE:"All"},zS={HTML:"Html",XH:"IFrame",BJ:"Static",nE:"All"},AS={YH:"IgnoreSize",kJ:"SelectExactMatch",lJ:"SelectNearMatch"};var BS=!1,CS="";function DS(a){a=a.match(/[\d]+/g);if(!a)return"";a.length=3;return a.join(".")}
if(navigator.plugins&&navigator.plugins.length){var ES=navigator.plugins["Shockwave Flash"];ES&&(BS=!0,ES.description&&(CS=DS(ES.description)));navigator.plugins["Shockwave Flash 2.0"]&&(BS=!0,CS="2.0.0.11")}else if(navigator.mimeTypes&&navigator.mimeTypes.length){var FS=navigator.mimeTypes["application/x-shockwave-flash"];(BS=FS&&FS.enabledPlugin)&&(CS=DS(FS.enabledPlugin.description))}else try{var GS=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7"),BS=!0,CS=DS(GS.GetVariable("$version"))}catch(HS){try{GS=
new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6"),BS=!0,CS="6.0.21"}catch(IS){try{GS=new ActiveXObject("ShockwaveFlash.ShockwaveFlash"),BS=!0,CS=DS(GS.GetVariable("$version"))}catch(JS){}}}var KS=BS,LS=CS;function UQ(a){if(null==a||0>=a.width||0>=a.height)throw SO(pO,null,"ad slot size",a.toString());this.g=a;this.b=new xS;this.o=MS(zS,this.b.k)?this.b.k:"All";this.k=MS(yS,this.b.j)?this.b.j:"All";this.B=MS(AS,this.b.o)?this.b.o:"SelectExactMatch";this.j=null!=this.b.g?this.b.g:[];this.A=ja(this.b.b)&&0<this.b.b&&100>=this.b.b?this.b.b:90}
function TQ(a,b){var c=[];z(b,function(a){!x(a.b.k)&&(isNaN(a.b.b)||isNaN($Q(a))||$Q(a)==a.b.b)&&NS(this,a)?c.push(a):(a=OS(this,a),null!=a&&!x(a.b.k)&&c.push(a))},a);return c}
function NS(a,b){var c;if(c="Flash"!=b.getContentType()||KS){if(c="All"==a.o||a.o==b.b.P)c=b.getContentType(),c=null!=c?"All"==a.k||a.k==c:!0;c&&(c=b.j,c=E(a.j)?!0:null!=c?0<=fb(a.j,c):!1)}c?(c=b.b.Xd(),c="IgnoreSize"==a.B||Lb(a.g,c)?!0:"SelectNearMatch"==a.B&&(c.width>a.g.width||c.height>a.g.height||c.width<a.A/100*a.g.width||c.height<a.A/100*a.g.height?!1:!0)):c=!1;return c}function OS(a,b){var c=b.g;return null!=c?B(c,function(a){return NS(this,a)},a):null}
function MS(a,b){return null!=b&&Ub(a,b)};function PS(a,b,c,d){this.ta=a;this.b=Ib(c||0,0,1);this.g=null!=d?d:!0}PS.prototype.getId=function(){return this.ta};function QS(a){this.ta=a;this.g=new Dd;this.b=null}function RS(a){var b=Math.random(),c=0,d=a.g.Qa();z(d,function(a){c+=a.b},a);var e=1<c?c:1;a.b=null;for(var g=0,h=0;h<d.length;++h)if(g+=d[h].b,g/e>=b){a.b=d[h];break}};function SS(){this.b=new Dd;TS(this,41351021,0);TS(this,41351022,1);US(this)}var VS=null;function WS(){VS||(VS=new SS);return VS}function TS(a,b,c){x("GvnExternalLayer")||isNaN(b)||0>=b||(b=new PS(b,0,c),XS(a,"GvnExternalLayer").g.set(b.getId(),b))}function US(a){z(a.b.Qa(),function(a){RS(a)},a)}function YS(a,b){z(b,function(a){var b=Number(a);a="forcedLayer"+a;isNaN(b)||0>=b||x(a)||(a=XS(this,a),b=new PS(b),a.b=b)},a)}
function ZS(a){var b=WS();return jb(b.b.Qa(),function(b){return!!b.b&&b.b.getId()==a})}function $S(a){var b=[];z(a.b.Qa(),function(a){(a=a.b)&&a.g&&b.push(a.getId())});return b.sort().join(",")}function XS(a,b){var c=a.b.get(b);null==c&&(c=new QS(b),a.b.set(b,c));return c};function aT(a){J.call(this,a);this.g=new Dd;a=this.Mb;var b=a.indexOf(";"),c=null;0<=b?(fe(this,a.substring(0,b)),c=a.substring(b+1)):fe(this,a);bT(this,c)}w(aT,J);aT.prototype.toString=function(){return cT(this,aT.G.toString.call(this))};aT.prototype.Pg=function(){return""};function bT(a,b){x(b)||z(b.split(";"),function(a){var b=a.indexOf("=");if(0<b){var e=Ca(a.substring(0,b));a=Ca(a.substring(b+1));b=this.g.get(e);null!=b?C(b,a)||b.push(a):b=[za(a)];this.g.set(e,b)}},a)}
function dT(a){if(x("ord"))return null;a=a.g.get("ord");return null!=a?a:null}function eT(a,b,c){x(b)||(c=A(c,za),a.g.set(b,c))}function cT(a,b){var c=[za(b)];wb(c,fT(a));return c.join(";")}function fT(a){var b=dT(a);null!=b?x("ord")||a.g.remove("ord"):b=[za(v())];var c=[];z(a.g.Ma(),function(a){z(this.g.get(a),function(b){wb(c,a+"="+b)})},a);wb(c,"ord="+b[0]);eT(a,"ord",b);return c}aT.prototype.clone=function(){return new aT(this.toString())};var gT=["iu","sz"];function hT(a){if(null==a.adTagUrl)return!1;a=new J(a.adTagUrl);return"googleads.g.doubleclick.net"==a.Bb&&"/pagead/ads"==a.Mb}function iT(a){var b=a.adTagUrl;if(null==b)return!1;a=qe(new J(b));return(x(a)?0:/\/gampad\/ads/.test(a))?lb(gT,function(a){return 0<=Zd(b,0,a,b.search($d))}):!1}
function jT(a){a=a.adTagUrl;if(null==a)return!1;a=new aT(a);var b=a.Bb,c;if(c=!wa(b,".g.doubleclick.net")){if(b=wa(b,"doubleclick.net"))a=cT(a,a.Mb),b=x(a)?!1:/\/(ad|pfad)[x|i|j]?\//.test(a);c=b}return c?!0:!1}function kT(a){a=a.adTagUrl;return null!=a?"bid.g.doubleclick.net"==pe(new J(a)):!1};function lT(){this.b=1;this.k=this.j=0;this.g=1};function mT(){this.L={};this.T="";this.ge=new KR}function YQ(a){return a.b}mT.prototype.zn=function(){return null};function nT(a,b,c){a.T=b;a.L=c}mT.prototype.qg=function(a){this.aa=a};mT.prototype.getAd=function(){return this.aa};function oT(a,b){for(var c=PR(a.ge,b)||[],d=a.aa.b;null!=d;){var e=pT(a,d)||pT(a,d,!0);null!=e&&(e=PR(e.ge,b)||[],c=ub(e,c));d=d.b}return c}mT.prototype.Gn=function(a){a=oT(this,a);return A(a||[],function(a){return a.b})};
function pT(a,b,c){var d=c||!1;return B(b.k,function(a){var b=a.b==this.b;return a instanceof this.constructor&&(d||b)},a)};function qT(a,b,c,d,e){mT.call(this);this.da=a;this.j=b;this.g=c;this.D=vb(d);this.ca=this.la=null;this.k=e}w(qT,mT);qT.prototype.Ed=function(){return this.j};qT.prototype.getMediaUrl=function(a){var b="";jb(this.D,function(c){var d=c.g;return!x(a)&&a!=c.b||null==d||x(d)?!1:(b=d,!0)},this);return b};qT.prototype.setMediaUrl=function(a){this.ca=a};
qT.prototype.zn=function(){var a=B(this.D,function(a){return!x(a.b)&&-1!=a.b.indexOf("javascript")&&("VPAID"==a.k||"surveys"==a.k)});return null!=a?a.g:null};function rT(a,b,c){this.g=a;this.j=b;this.k=c;this.A=0;this.b=new Tk(this);sT(this)}w(rT,Ih);function sT(a){a.k.forEach(function(a,c){this.b.listen(c,"mousedown",this.B);this.b.listen(c,"mouseup",this.D)},a);a.b.listen(a.j,"mouseover",a.C)}rT.prototype.B=function(){this.o=v()};
rT.prototype.D=function(a){var b=null!=a.target.href?a.target:a.target.parentNode,c=[];this.g&1&&c.push("nm="+this.A);this.g&2&&c.push("nb="+this.k.get(b));if(this.g&8){var d=Rf(this.j);c.push("nx="+(a.clientX-d.x));c.push("ny="+(a.clientY-d.y))}this.g&16&&null!=this.o&&c.push("clkt="+(v()-this.o));0<c.length&&(b.href+=0<=b.href.indexOf("?")?"&"+c.join("&"):"?"+c.join("&"))};rT.prototype.C=function(){this.A++};rT.prototype.J=function(){rT.G.J.call(this);this.b.dispose()};function tT(a,b,c,d,e){mT.call(this);x(a)&&(a=Za()+"_ima");this.ta=za(a);this.pa=b;this.P=c;this.O=d;this.k=e;null!=this.O?this.U=kP[this.O]||"Other":this.U=null}w(tT,mT);f=tT.prototype;f.xl=function(){var a;a=this.nd();if("outerHTML"in a)a=a.outerHTML;else{var b=Lc(a).createElement("div");b.appendChild(a.cloneNode(!0));a=b.innerHTML}return a};f.getContentType=function(){return this.U};f.Xd=function(){return this.pa};f.sd=function(){return this.Xd().width};f.getHeight=function(){return this.Xd().height};
f.zn=function(){return"VPAID"==this.B?this.k:null};f.Ed=function(){return this.I};function uT(a,b,c,d,e){tT.call(this,a,b,c,d,e);this.rb=-2;this.j=null;new Tk(this);this.M=this.F=ca;this.N=[];this.ka=!0;this.V=[];this.C=!1}w(uT,tT);function vT(a,b){a.j=b;null!=a.g&&null!=b&&(wT(a,a.F),xT(a,a.M))}function wT(a,b){null!=a.j&&null!=a.g&&z(a.N,function(a){this.j.Ga(a,"click",this.F);x(this.Ed())||this.j.listen(a,"click",b)},a);a.F=b}function xT(a,b){null!=a.j&&null!=a.g&&(a.j.Ga(a.g,"creativeview",a.M),a.j.listen(a.g,"creativeview",b));a.M=b}
function yT(a){z(a.V,function(a){ed(Mc(a))},a);a.V=[]}uT.prototype.o=function(a){null==this.j||x(this.Ed())||(this.j.listen(a,"click",this.F),this.N.push(a))};uT.prototype.nd=function(){null==this.g&&(this.g=this.Eh(),bd(this.g,zT(this)));null!=this.j&&this.j.listen(this.g,"creativeview",this.M);return this.g};
function AT(a,b){var c=a.ta,d={};d.style="cursor:default;position:relative;z-index:1001;height:"+a.getHeight()+"px;";"Text"!=a.getContentType()&&(d.style+="width:"+a.sd()+"px");x(c)||(d.id=c);return I("div",d,b)}uT.prototype.us=function(){return 2};
function zT(a){if(!a.ka)return null;var b=oT(a,"start");wb(b,oT(a,"creativeview"));if(null!=b&&!E(b)){var c=[];z(b,function(a){if(!x(a)){var b;b=Jc().MB("iframe",{frameborder:0,style:"border:0;vertical-align:bottom;",src:'javascript:""'});Gf(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",bO(a.b));b.setAttribute("id",g);this.V.push(g);qb(c,b)}},a);return c}return null}
function BT(a,b){if(null!=a.g){var c=new Dd;z(a.N,function(a){c.set(a,this.us(a))},a);new rT(b,a.g,c)}};function JQ(a,b,c,d,e,g,h,k,l,q,r,t,y,D,M,ea){this.N=a;this.A=b;this.pa=d;this.aa=isNaN(h)||""==h||0==h?-1:h;this.F=k?vb(k):[];this.U=l?vb(l):[];this.k=q?vb(q):[];this.L=r?vb(r):[];this.o=[];z(this.L,function(a){wb(this.o,vb(a.b))},this);this.T=!0;this.b=this.g=null;this.B=new Dd(t);this.O=null!=ea;this.ca=(this.C=null!=y)?D||!1:!1;this.rb=this.Ut?M||!1:!1;this.ka=za(y);this.la=za(ea);this.da=this.j=null;this.D=new lT;this.V=new G(0,0);this.I=this.M=this.P=null;z(ub(this.k,this.o),function(a){a.qg(this)},
this);WO.b&&CT(this)&&(this.o=hb(this.o,function(a){return 60>=a.getHeight()}))}function DT(a){var b;b=ET(a)?FT(a)?"2_1":"2_2":"2";return(GT(a,mP)||GT(a,nP)?1:GT(a,lP)?2:0)+"_"+b}function HT(a){return null!=a.A?a.A:""}function IT(a){return null!=a.b?ub(IT(a.b),a.F):a.F}function JT(a){return null!=a.b?ub(JT(a.b),a.U):a.U}f=JQ.prototype;
f.getContentType=function(){var a=this.getSelectedCreative(),b="";if(null===a)return b;if(a instanceof qT)a=a.la,null===a||(b=za(a.b));else if(a instanceof uT)switch(a.P){case "IFrame":case "Html":case "Static":b=za(a.O)}return b};function SQ(a){return null!=a.b?ub(a.o,SQ(a.b)):a.o}function KT(a){return null!=a.g?a.g.T:""}f.getExtension=function(a){return this.B.get(a)};function LT(a,b){a.g=b;a.V=null!=a.g&&a.g instanceof uT?a.g.Xd():new G(0,0)}f.getSelectedCreative=function(){return this.g};
function MT(a){return null!=a.N?a.N:""}function NT(a){if(null==a.b)return[];var b=[MT(a.b)];wb(b,NT(a.b));return b}function OT(a){var b=NT(a).reverse();b.push(MT(a));return b}function PT(a){if(null==a.b)return[];var b=[HT(a.b)];wb(b,PT(a.b));return b}function RQ(a){var b=PT(a).reverse();b.push(HT(a));return b}function QT(a){a=a.getExtension("waterfall");return null!=a&&-1!=a.g?a.g:-1}function RT(a){if(-1!=a.aa)return a.aa;a=a.getExtension("pod");return null!=a&&-1!=a.g?a.g:-1}
function ZQ(a,b){return b||null==a.b?a.L:ub(a.L,ZQ(a.b))}function ST(a,b){return jb(a.k,function(a){return a instanceof qT&&"linear"==b||a instanceof uT&&"nonlinear"==b?!0:!1})}function CT(a){return TT(a)?"video"==a.pa:ST(a,"linear")}function ET(a){return null!=UT(a)}
function UT(a){if(ZS(919139)||ZS(919140))return new IR(0,!1);var b=new IR(5,!1),c=VT(a);if("implicit"==c)return b;a=a.getSelectedCreative();var d=null;null!=a&&a instanceof qT&&(d=a.k);null!=d||"explicit"!=c||(d=b);return null!=d&&WO.b?b:d}
function VT(a){if(null!=B(a.B.Qa(),function(a){return!E(ZR(a,"skip"))}))return"implicit";var b=a.B.get("DFP");if(b instanceof fS)switch(b.g){case "InstreamSelect":return"implicit";case "Generic":return"explicit"}a=a.getSelectedCreative();return null==a||(a=a.ge,null==a||E(PR(a,"skip")))?"none":"explicit"}function FT(a){if(null==a.A||null==a.j)return!1;var b=hT(a.j),c=null!=a.b,d=iT(a.j);if(!c&&(b||d&&WT(a)))return!0;a=GT(a,["ADSENSE/ADX"])||GT(a,lP)&&c;return WO.b&&!a}f.Ut=function(){return this.C};
function XT(a){return null===a.g?null:a.g.Ed()}function ZT(a){return null==a.g||a.g instanceof uT?-1:a.g.da}function $T(a){return null===a.g?null:a.g.zn()}function TT(a){return aU(a,lP)}f.getHeight=function(){return this.V.height};function bU(a){return a.P}function WT(a){if(!aU(a,nP))return!1;a=a.B.get("DFP");return null!=a?"InstreamSelect"==a.g:!1}f.toString=function(){return"Ad: "+this.N};function aU(a,b){return null!=a.A?C(b,a.A.toUpperCase()):!1}
function GT(a,b){return C(b,RQ(a)[0].toUpperCase())};function cU(a,b){this.b=a;this.g=b};function dU(a,b,c){this.b=a;this.g=b;this.j=c}dU.prototype.getContentType=function(){return this.b.getContentType()};dU.prototype.getHeight=function(){return this.b.getHeight()};function $Q(a){a=a.b.getAd().getSelectedCreative();return null!=a?a.b:NaN}dU.prototype.Gn=function(a){return SR(this.b.ge,a)};dU.prototype.qg=function(a){this.b.qg(a);z(this.g,function(b){b.qg(a)},this)};function eU(a,b,c){this.g=a;this.b=b;this.j=c}eU.prototype.getContentType=function(){return null!=this.b?kP[this.b]||"Other":null};qc&&Bc(8);function fU(){};var gU={},hU={},iU={};function jU(){throw Error("Do not instantiate directly");}jU.prototype.oe=null;jU.prototype.toString=function(){return this.content};function kU(a,b){var c=Jc().createElement("DIV"),d=lU(a(b||mU,void 0,void 0));c.innerHTML=d;return 1==c.childNodes.length&&(d=c.firstChild,1==d.nodeType)?d:c}function lU(a){if(!la(a))return String(a);if(a instanceof jU){if(a.Tc===gU)return a.content;if(a.Tc===iU)return Da(a.content)}return"zSoyz"}var mU={};function nU(a){if(null!=a)switch(a.oe){case 1:return 1;case -1:return-1;case 0:return 0}return null}function oU(){jU.call(this)}w(oU,jU);oU.prototype.Tc=gU;function pU(a){return null!=a&&a.Tc===gU?a:a instanceof px?qU(rx(a),a.yh()):qU(Da(String(String(a))),nU(a))}function rU(){jU.call(this)}w(rU,jU);rU.prototype.Tc={};rU.prototype.oe=1;function sU(){jU.call(this)}w(sU,jU);sU.prototype.Tc={};function tU(){jU.call(this)}w(tU,jU);tU.prototype.Tc=hU;tU.prototype.oe=1;function uU(){jU.call(this)}
w(uU,jU);uU.prototype.Tc={};uU.prototype.oe=1;function vU(){jU.call(this)}w(vU,jU);vU.prototype.Tc={};vU.prototype.oe=1;function wU(a,b){this.content=String(a);this.oe=null!=b?b:null}w(wU,jU);wU.prototype.Tc=iU;function xU(a){function b(){}b.prototype=a.prototype;return function(a,d){var e=new b;e.content=String(a);void 0!==d&&(e.oe=d);return e}}function yU(a){function b(){}b.prototype=a.prototype;return function(a){var d=new b;d.content=String(a);return d}}var qU=xU(oU);yU(rU);xU(sU);yU(tU);
var zU=yU(uU);yU(vU);(function(a){function b(){}b.prototype=a.prototype;return function(a,d){if(!String(a))return"";var e=new b;e.content=String(a);void 0!==d&&(e.oe=d);return e}})(oU);var AU=/['()]/g;function BU(a){return"%"+a.charCodeAt(0).toString(16)}function CU(a){if(null!=a&&a.Tc===hU)return String(a).replace(DU,EU);a=Ba(String(a));AU.lastIndex=0;return AU.test(a)?a.replace(AU,BU):a}var FU={};
function GU(a){FU[1]||(FU[1]=new fU);var b=nU(a);if(null==b){var c=b=0,d=!1;a=Xw(a+"",null!=a&&a.Tc===gU).split(dx);for(var e=0;e<a.length;e++){var g=a[e];$w.test(Xw(g,void 0))?(b++,c++):ax.test(g)?d=!0:Zw.test(Xw(g,void 0))?c++:ex.test(g)&&(d=!0)}b=0==c?d?1:0:.4<b/c?-1:1}return zU(1!=b?-1==b?'dir="rtl"':1==b?'dir="ltr"':"":"")}
var HU={"\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 EU(a){return HU[a]}var DU=/[\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 KU(a){return'<div class="text-container '+(a.image?"pyv":"")+'"><div class="text-inner-container">'+(a.image?'<a class="text-image-link" target="_blank" href="'+pU(a.Gd)+'"><img src="'+pU(a.image)+'" class="text-image">'+(a.duration?'<div class="text-image-duration">'+pU(a.duration)+"</div>":"")+"</a>":"")+'<a class="text-title" href="'+pU(a.Gd)+'" target="_blank" dir='+pU(a.dir)+">"+pU(a.title)+'</a><div class="text-description" dir='+pU(a.dir)+">"+pU(a.text)+"</div>"+(a.tr?'<a target="_blank" href="'+
pU(a.Gd)+'" class="text-ad-channel">'+pU(a.tr)+"</a>":"")+"</div></div>"}
function LU(a){return'<div class="flash-container '+(a.Of?"click-capture":"")+'"><a class="click-layer" target="_blank" href="'+pU(a.Gd)+'"></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="'+pU(a.width)+'" height="'+pU(a.height)+'"><param name="movie" value="'+pU(a.url)+'"><param name="quality" value="high"><param name="wmode" value="transparent"><param name="AllowScriptAccess" value="never"><param name="FlashVars" value="clickTAG='+CU(a.Gd)+
'"><embed width="'+pU(a.width)+'" height="'+pU(a.height)+'" wmode="transparent" type="application/x-shockwave-flash" src="'+pU(a.url)+'" allowscriptaccess="never" pluginspage="//www.macromedia.com/go/getflashplayer" flashvars="clickTAG='+CU(a.Gd)+'"></object></div>'}function MU(a){return'<div class="image-container" id="'+pU(a.id)+'" style="width:'+pU(a.width)+";height:"+pU(a.height)+'"><a target="_blank" href="'+pU(a.Gd)+'"><img src="'+pU(a.url)+'" border="0"></a></div>'};function NU(a,b,c,d){uT.call(this,a,b,"Static",c,d);this.Sr=!1}w(NU,uT);NU.prototype.Eh=function(){var a=this.B,a=null!=a&&"clicktag"==a.toLowerCase(),a={url:bO(za(this.k)),width:this.sd(),height:this.getHeight(),Gd:this.Ed(),Of:this.Sr||!a},a=kU(LU,a);a.style.width=this.sd()+"px";a.style.height=this.getHeight()+"px";a.id=this.ta;z(a.getElementsByTagName("object"),this.o,this);z(a.getElementsByTagName("a"),this.o,this);return a};function OU(a,b,c,d){uT.call(this,a,b,"Html",c,d)}w(OU,uT);OU.prototype.Eh=function(){var a=I("div");a.innerHTML=this.k;this.o(a);return AT(this,a)};function PU(a,b,c,d){uT.call(this,a,b,"Static",c,d)}w(PU,uT);PU.prototype.xl=function(){var a=PU.G.xl.call(this);this.C&&(a=a.replace('<img src=""','<img src="'+bO(za(this.k))+'"'));return a};PU.prototype.Eh=function(){var a="";this.C||(a=bO(za(this.k)));a={id:this.ta,url:a,Gd:this.Ed(),width:this.sd()+"px",height:this.getHeight()+"px"};a=kU(MU,a);z(a.getElementsByTagName("a"),this.o,this);return a};function QU(a){a=a.className;return s(a)&&a.match(/\S+/g)||[]}function RU(a,b){for(var c=QU(a),d=yb(arguments,1),e=c,g=0;g<d.length;g++)C(e,d[g])||e.push(d[g]);c=c.join(" ");a.className=c}function SU(a,b){var c=QU(a),d=yb(arguments,1),c=TU(c,d).join(" ");a.className=c}function TU(a,b){return hb(a,function(a){return!C(b,a)})}function UU(a,b,c){c?RU(a,b):SU(a,b)};function VU(a,b){uT.call(this,a,b,"Static","text","")}w(VU,uT);f=VU.prototype;f.Xd=function(){return new G(this.sd(),this.getHeight())};f.getHeight=function(){return 63};f.sd=function(){return null!=this.A?ag(this.A).width:0};f.us=function(a){return C(QU(a),"text-image")?9:C(QU(a),"text-ad-channel")?1:0};
f.Eh=function(){var a=this.getAd(),b=a.getExtension("AdSense"),c=a.getExtension("TextAd"),d=c.j,e="rtl";null!=d&&(e=Yw.test(Xw(d,void 0))?"rtl":"ltr");d={title:d,text:c.k+" "+c.o,dir:e,Gd:this.Ed()};if(c=c.g)d.image=bO(c),a=B(a.k,function(a){return a instanceof qT}),null!=a&&(d.duration=CR(a.da));b.j&&(d.tr=b.j);this.A=kU(KU,d);z(this.A.getElementsByTagName("a"),this.o,this);this.A.id=this.ta;this.A.style.height=this.getHeight()+"px";return this.A};function WU(a,b,c,d,e){uT.call(this,a,b,c,d,e)}w(WU,uT);WU.prototype.Eh=function(){var a=za(this.k);x(this.Ed())||(a=new J(a),K(a,"clickTAG",Ba(this.Ed())),a=a.toString());var b=I("iframe",{marginwidth:0,marginheight:0,hspace:0,vspace:0,frameborder:0,scrolling:"no"},null);b.height=this.getHeight();"Text"!=this.getContentType()&&(b.width=this.sd());b.setAttribute("src",bO(a));this.o(b);return AT(this,b)};function XU(a,b,c){var d=YU(c);c=d.g;var e=d.b,d=d.j;switch(c){case "Html":return new OU(a,b,e,d);case "Static":switch(kP[e]){case "Image":return new PU(a,b,e,d);case "Flash":return new NU(a,b,e,d);case "Text":return new VU(a,b)}}return new WU(a,b,c,e,d)}
function YU(a){var b=B(a,function(a){return"Static"==a.g&&"Flash"==kP[a.b]}),c=B(a,function(a){return"IFrame"==a.g}),d=B(a,function(a){return"Html"==a.g}),e=B(a,function(a){return"Static"==a.g&&"Image"==kP[a.b]}),g=B(a,function(a){return"Static"==a.g&&"Text"==kP[a.b]});return KS&&null!=b?b:null!=c?c:null!=d?d:null!=e?e:null!=g?g:a[0]};function ZU(a,b,c,d,e){var g=YU(e),h=XU(a.id,a.size,[g]);h.C=!0;h.B=a.Gm;h.I=b;h.b=c;null!=d&&(h.ge=d);rb(e,g);var k=[];z(e,function(e){e=XU(a.id,a.size,[e]);e.C=!0;e.B=a.Gm;e.I=b;e.b=c;null!=d&&(e.ge=d);k.push(new dU(e,[],a.Qq))});return new dU(h,k,a.Qq)};function $U(){};function aV(a,b,c,d){a=XU("icon",a,d);a.B=b;a.I=c.EB;return new $U};function bV(a){this.k=a;this.logger=null}w(bV,jR);
bV.prototype.b={Xz:"Ad",Km:"AdParameters",NA:"AdSystem",OA:"AdTitle",UE:"Advertiser",OB:"AltText",aB:"ClickThrough",bB:"ClickTracking",jB:"Companion",eB:"CompanionAds",PB:"CompanionClickThrough",QB:"CompanionClickTracking",fB:"Creative",NG:"CreativeExtensions",QA:"Creatives",cB:"CustomClick",RA:"Description",Vm:"Duration",ERROR:"Error",iB:"Extension",SA:"Extensions",lj:"HTMLResource",hC:"Icon",JA:"Icons",DA:"IconClicks",bC:"IconClickThrough",cC:"IconClickTracking",EA:"IconViewTracking",mj:"IFrameResource",
Cr:"Impression",aI:"InLine",LINEAR:"Linear",ZA:"MediaFile",KA:"MediaFiles",XB:"NonLinear",gB:"NonLinearAds",dA:"NonLinearClickThrough",eA:"NonLinearClickTracking",WI:"Pricing",nj:"StaticResource",Xm:"Survey",QJ:"Tracking",Wm:"TrackingEvents",ZJ:"VAST",UA:"VASTAdTagURI",MA:"VideoClicks",VA:"Wrapper"};
bV.prototype.g={vC:"adSlotID",PA:"allowMultipleAds",ij:"apiFramework",WA:"bitrate",dB:"creativeType",XA:"delivery",Vm:"duration",BH:"event",TA:"followAdditionalWrappers",wC:"expandedHeight",xC:"expandedWidth",Tm:"height",Hm:"id",bA:"maintainAspectRatio",YA:"maxBitrate",$A:"minBitrate",cA:"minSuggestedDuration",FA:"offset",GA:"program",kB:"required",fA:"scalable",Tq:"sequence",LA:"skipoffset",Er:"type",VERSION:"version",Um:"width",HA:"xPosition",IA:"yPosition"};
function cV(a){if(null==a)return!1;a=hd(a);return null!=a&&"VAST"==a.nodeName}function dV(a){var b=[];pR(hd(a.k),a.b.Xz,function(a){var d;d=eV(a);if(null==d)throw kR(a);var e=a.getAttribute(this.g.Hm);a=Number(a.getAttribute(this.g.Tq));d=fV(this,d,e||null,a||0);null!=d&&b.push(d)},a);return b}bV.prototype.j=function(){return new tR(this.k,dV(this),null)};function eV(a){var b=null;z(gd(a),function(a){switch(a.nodeName){case "InLine":case "Wrapper":b=a;break;default:throw kR(a);}});return b}
function fV(a,b,c,d){var e,g,h=[],k=[],l=[],q=[],r=new Dd,t,y=b.nodeName==a.b.VA,D=y,M=y,ea;z(gd(b),function(a){switch(a.nodeName){case this.b.UA:if(y){if(null!=t)throw lR(a);t=oR(a);ea=WR(t);D=sR(b.getAttribute(this.g.PA),D);M=sR(b.getAttribute(this.g.TA),M)}else throw kR(a);break;case this.b.NA:e=oR(a);break;case this.b.OA:g=oR(a);break;case this.b.RA:oR(a);break;case this.b.Xm:oR(a);break;case this.b.Cr:a=oR(a);UR(a)&&h.push(FR(a));break;case this.b.ERROR:a=oR(a);k.push(a);break;case this.b.QA:a=
gV(this,a);l=a.CA;q=a.BA;break;case this.b.SA:r=hV(this,a,ea)}},a);return new JQ(za(c),e,0,g,0,0,d,k,h,l,q,r,t,D,M,iV(r))}function iV(a){var b=null;a=a.get("AdSense");null!=a&&(a=ZR(a,"vast2tracking"),null!=a&&!E(a)&&(b=a[0]));return b}function jV(a){if(x(a))return"none";switch(a){case "all":case "any":case "none":return a;default:return"none"}}
function hV(a,b,c){var d=new Dd;try{var e=mR(b,a.b.iB);z(e,function(a){var b=a.getAttribute(this.g.Er);null!=b&&(b=b.toLowerCase());switch(b){case "geo":a=(new uS).parse(a);break;case "pod":a=(new sS).parse(a);break;case "waterfall":a=(new wS).parse(a);break;case "dart":a=(new gS).parse(a);break;case "dfp":b="DFP";a=(new hS).parse(a);break;case "adsense":b="AdSense";a=(new eS).parse(a);break;case "textad":b="TextAd";a=(new qS).parse(a);break;case "templatead":b="TemplateAd";a=(new nS).parse(a);break;
case "infocards":b="InfoCards";a=(new kS).parse(a);break;case c:b="LocalRedirect";if(null!=a){var e=null;a=mR(a,"AdXml");1==a.length&&(e='<?xml version="1.0" encoding="UTF-8"?>'+UC(hd(a[0])));a=new lS(e)}else a=null;break;default:e=new iS,b="generic",a=e.parse(a)}null!=a&&(e=d.get(b),null!=e?"generic"==b&&(YR(e,a.b),d.set(b,e)):d.set(b,a))},a)}catch(g){}return d}
function gV(a,b){var c=[],d=[];pR(b,a.b.fB,function(a){var b=a.getAttribute(this.g.Tq),h;x(b)||(h=parseFloat(b));var k=!1;z(gd(a),function(a){switch(a.nodeName){case this.b.LINEAR:if(k)throw lR(a);a=kV(this,a,isNaN(h)?0:h);wb(c,a);k=!0;break;case this.b.eB:if(k)throw lR(a);a=lV(this,a,isNaN(h)?void 0:h);wb(d,a);k=!0;break;case this.b.gB:if(k)throw lR(a);a=mV(this,a,isNaN(h)?0:h);wb(c,a);k=!0}},this)},a);return{CA:c,BA:d}}
function mV(a,b,c){var d=[],e=new KR;z(gd(b),function(a){switch(a.nodeName){case this.b.XB:a=nV(this,a,c);null!=a&&d.push(a);break;case this.b.Wm:e=TR(a);break;default:throw kR(a);}},a);0!=d.length||e.isEmpty()||(a=new uT(null,new G(-1,-1),"",null,""),a.b=c,d.push(a));z(d,function(a){null!=e&&(a.ge=e)});return d}
function oV(a,b){var c={};c.id=b.getAttribute(a.g.Hm);c.Qq=b.getAttribute(a.g.vC);c.Gm=b.getAttribute(a.g.ij);var d=$a(b.getAttribute(a.g.Um)),e=$a(b.getAttribute(a.g.Tm));c.size=new G(d,e);d=b.getAttribute(a.g.xC);e=b.getAttribute(a.g.wC);x(d)||x(e)||(c.ME=new G($a(d),$a(e)));return c}
function nV(a,b,c){var d=oV(a,b);b.getAttribute(a.g.ij);b.getAttribute(a.g.fA);b.getAttribute(a.g.bA);var e=b.getAttribute(a.g.cA),e=rR(e,-1),g=[];new Dd;var h={},k="",l;z(gd(b),function(a){switch(a.nodeName){case this.b.eA:break;case this.b.dA:l=oR(a);break;case this.b.Km:h=pV(a);k=za(oR(a));break;case this.b.mj:case this.b.nj:case this.b.lj:g.push(qV(this,a));break;default:throw kR(a);}},a);if(E(g))return null;a=XU(d.id,d.size,g);nT(a,k,h);a.B=d.Gm;a.I=l;a.rb=e;a.b=c;return a}
function qV(a,b){var c=nR(b,a.g.dB),d;t:switch(d=b.nodeName,d){case a.b.nj:d="Static";break t;case a.b.mj:d="IFrame";break t;case a.b.lj:d="Html";break t;default:throw QO(JO,null,d);}var e=oR(b);null!=e||(e="");return new eU(d,c,e)}function lV(a,b,c){var d=[],e=jV(nR(b,a.g.kB));pR(b,a.b.jB,function(a){a=rV(this,a,c);null!=a&&d.push(a)},a);return new cU(d,e)}
function rV(a,b,c){var d=oV(a,b),e=[],g=new KR,h;z(gd(b),function(a){switch(a.nodeName){case this.b.QB:break;case this.b.Wm:g=TR(a);break;case this.b.PB:h=oR(a);break;case this.b.OB:oR(a);break;case this.b.Km:oR(a);break;case this.b.mj:case this.b.nj:case this.b.lj:e.push(qV(this,a));break;default:throw kR(a);}},a);return E(e)?null:ZU(d,h,c,g,e)}
function kV(a,b,c){var d=new KR,e={},g="",h=[],k,l=new Dd,q=[],r,t=VR(nR(b,a.g.LA));z(gd(b),function(a){switch(a.nodeName){case this.b.JA:sV(this,a);break;case this.b.Km:e=pV(a);g=za(oR(a));break;case this.b.Vm:r=rR(oR(a),0);break;case this.b.Wm:d=TR(a);break;case this.b.KA:q=tV(this,a);break;case this.b.MA:a=uV(this,a);l=a.AA;k=a.yA;h=a.zA;break;default:throw kR(a);}},a);z(h,function(a){OR(d,"click",a)});a=new qT(r,k,l,q,t);nT(a,g,e);a.b=c;null!=d&&(a.ge=d);return a}
function uV(a,b){var c,d=[],e=new Dd;z(gd(b),function(a){switch(a.nodeName){case this.b.aB:c=oR(a);break;case this.b.bB:a=oR(a);d.push(a);break;case this.b.cB:var b=nR(a,this.g.Hm);null!=b||(b="");var k=e.get(b,[]);k.push(oR(a));e.set(b,k);break;default:throw kR(a);}},a);return{yA:c,zA:d,AA:e}}
function tV(a,b){var c=[];pR(b,a.b.ZA,function(a){var b=nR(a,this.g.XA),g=nR(a,this.g.Er);a.getAttribute(this.g.Um);var h=$a(a.getAttribute(this.g.Tm)),k=a.getAttribute(this.g.ij),l=oR(a),q=qR(a.getAttribute(this.g.WA)),r=qR(a.getAttribute(this.g.$A));a=qR(a.getAttribute(this.g.YA));c.push(new zP(b,g,q,r,a,0,h,l,k))},a);return c}function sV(a,b){var c=[];pR(b,a.b.hC,function(a){a=vV(this,a);null!=a&&c.push(a)},a)}
function vV(a,b){nR(b,a.g.GA);nR(b,a.g.HA);nR(b,a.g.IA);var c=$a(b.getAttribute(a.g.Um)),d=$a(b.getAttribute(a.g.Tm)),c=new G(c,d),d=b.getAttribute(a.g.ij);VR(nR(b,a.g.FA));var e=b.getAttribute(a.g.Vm);rR(e,-1);var g=[],h=[],k;z(gd(b),function(a){switch(a.nodeName){case this.b.EA:h.push(oR(a));break;case this.b.DA:k=wV(this,a);break;case this.b.mj:case this.b.nj:case this.b.lj:g.push(qV(this,a));break;default:throw kR(a);}},a);return E(g)?null:aV(c,d,k,g)}
function wV(a,b){var c=[],d;z(gd(b),function(a){switch(a.nodeName){case this.b.bC:d=oR(a);break;case this.b.cC:c.push(oR(a));break;default:throw kR(a);}},a);return{EB:d,LE:c}}function pV(a){a=oR(a);return null!=a?DR(a):{}};function xV(a,b){this.g=a;this.b=b}w(xV,jR);xV.prototype.j=function(){return new tR(this.g,null,yV(this))};function zV(a){var b=VC(a);return E(b)?[nR(a,"timeOffset")]:A(b,function(a){return nR(a,"timeOffset")})}
function yV(a){var b=new xR;z(gd(hd(a.g)),function(a){if("vmap:AdBreak"==a.nodeName){var d=AV(this,a);a=zV(a);z(a,function(a,c){var h=rR(a);0<c&&(d=BV(this,d));if("start"==a||0==h)yR(b,d,0);else if("end"==a)yR(b,d,-1);else{if(-1==h)throw QO(kO,null,"timeOffset",za(a));yR(b,d,h)}},this)}},a);if(0==b.b.Ma().length)throw QO(qO);return b}function BV(a,b){return A(b,function(a){var b=new vR(a.j.clone());b.b=a.b;b.g=a.g;return b},a)}
function AV(a,b){var c=[],d="",e=null,g=!1,h=!1;z(gd(b),function(a){switch(a.nodeName){case "vmap:AdSource":if(!e){if("undefined"!=typeof a.selectSingleNode){var b=Lc(a);"undefined"!=typeof b.setProperty&&b.setProperty("SelectionLanguage","XPath");e=a.selectSingleNode("vmap:VASTData/VAST")}else if(document.implementation.hasFeature("XPath","3.0")){var b=Lc(a),c=b.createNSResolver(b.documentElement);e=b.evaluate("vmap:VASTData/VAST",a,c,XPathResult.FIRST_ORDERED_NODE_TYPE,null).singleNodeValue}else e=
null;if(!e){b=mR(a,"vmap:AdTagURI");c="";b.length&&(c=za(oR(b[0])));if(ya(c))throw QO(OO,null,a.parentNode.nodeName,a.nodeName);d=c}}break;case "vmap:Extensions":a=mR(a,"vmap:Extension"),a=CV(this,a),null!=a&&(g=!0,a=nR(a,"suppress_bumper"),h=null!=a?"true"==a:!0)}},a);var k=null;e?k=DV(a,e):ya(d)||(k=EV(a,d));k&&(k=new vR(k),k.b=g,k.g=g&&!h,qb(c,k));return c}function CV(a,b){return B(b,function(a){return"bumper"==nR(a,"type")},a)}
function EV(a,b){var c=a.b.clone();ya(c.adsResponse)||(c.adsResponse="");c.adTagUrl=b;return c}function DV(a,b){var c=a.b.clone();c.adsResponse=UC(b);c.adTagUrl="";return c};function FV(a,b){if(null!=a){var c;null!=a?(c=hd(a),c=null!=c&&"Playlist"==c.nodeName):c=!1;if(c)return new zR(a,b);null!=a?(c=hd(a),c=null!=c&&"vmap:VMAP"==c.nodeName):c=!1;if(c)return new xV(a,b);if(cV(a)){if(!cV(a))throw QO(tO);c=hd(a);var d;null==c?d=0:(d=parseInt(c.getAttribute("version"),10),d=ja(d)?d:0);if(1>d||3<d)throw QO(KO);c=mR(c,"Ad");if(E(c))throw QO(yO);c=eV(c[0]);if(null==c)throw QO(BO);if(1!=mR(c,"AdSystem").length)throw QO(BO);return new bV(a)}}return null};function GV(a,b){this.g=a;this.j=b}function HV(a,b){var c=a.j.o;null!=c&&b.set("js","ima-"+c)}function IV(a){return a.k(a.A())}function JV(a){return WO.g?"h.3.0.0":null!=a.j?pQ(a.j):null}GV.prototype.o=function(){var a=0;this.g.nh&&(a+=1);eP()&&(a+=4);return a};function KV(){this.b=["video"]}var LV={SJ:"ultrahigh",PH:"high",xE:"medium"},MV={YF:1E3,ZF:1001,$F:1002,aG:1003,bG:1004,cG:1005,dG:1006},NV={wE:1,rE:2},OV={qE:"content",qJ:"site",rJ:"site_content"};f=KV.prototype;f.yi="high";f.dl=!1;f.Xk=1;f.Yk=null;f.Ge="video";f.Wk=1;f.Zk=null;f.fl=null;f.$k=!1;f.al=null;f.bl=null;f.Ig=null;f.sc=null;f.gl=null;f.host=null;f.il=null;f.jl=!1;f.kl=null;f.Jp=null;f.Ip=null;f.zi=1E5;f.Bi=null;f.Lp=null;f.Kp=null;f.pl=0;f.Ef=null;f.Ci=null;f.Ji=null;f.ql=null;f.Di=-1;
f.url=null;f.Ai=null;f.ll=null;f.nl=null;f.wl=null;f.rl=null;f.tl=null;f.ul=null;var PV=(new Date).getTime();var QV={uE:"flash",IMAGE:"image",uJ:"skippablevideo",zJ:"standardvideo",CJ:"staticimage",TEXT:"text",VIDEO:"video"},RV=["flash","image","staticimage"],SV=[new G(200,200),new G(250,250),new G(300,250),new G(336,280),new G(450,50),new G(468,60),new G(480,70),new G(728,90)];
function TV(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 UV(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",PV);t:{var h;try{h=
window.top.location.href}catch(k){b=2;break t}b=null!=h?h==window.document.location.href?0:1:2}a.set("frm",b)}function VV(a,b,c){var d=new Dd;d.set("ad_type",b.Ge);KS&&d.set("flash",LS);TV(d,a);WV(b)&&(d.set("ea","0"),null!=a.nonLinearAdSlotWidth&&null!=a.nonLinearAdSlotHeight&&d.set("image_size",XV(b,a.nonLinearAdSlotWidth,a.nonLinearAdSlotHeight)));YV(d,c);d.set("lact",a.lastActivity);d.set("videoad_start_delay",a.youTubeVideoAdStartDelay);UV(d);x(a.b)||ZV("ref",a.b,d);return d}
function $V(a,b){if(null==b)return a;var c=b.split("_");z(c,function(a){if(!Ub(QV,a))throw QO(pO,null,"ad_type",String(b));});if(!eP()){var d=[];z(c,function(a){"video"==a?d.push("standardvideo"):"skippablevideo"!=a&&d.push(a)});if(0==d.length)throw QO(oO,null,"skippablevideo");return d}return c}function aW(a,b){return null!=b?b.split(/[+, ]/):a}function XV(a,b,c){a.k&&(c=Math.min(c,90));var d=[];z(SV,function(a){b>=a.width&&c>=a.height&&d.push(a.width+"x"+a.height)});return d.join(",")}
function bW(a,b){return null==b||isNaN(b)?a:Number(b)}function cW(a,b){return null!=b?String(b):null!=a?a:null}function dW(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 eW(a,b,c){return null!=b&&Ub(c,b)?b:a}function WV(a){return jb(RV,function(b){return C(a.b,b)})}
function YV(a,b){KS?a.set("ca_type","flash"):a.set("ca_type","image");if(null!=b){var c=b.j;null!=c&&0<c.length&&(c=c[0].o,0<c.length&&(a.set("ca_w",c[0].width),a.set("ca_h",c[0].height)))}}function ZV(a,b,c){null!=b&&c.set(a,b)};function fW(a,b,c){GV.call(this,a,b);b=new KV;a=te(new J(a.adTagUrl));b.fl=eW(b.fl,a.get("cust_age"),MV);b.yi=eW(b.yi,a.get("adsafe"),LV);b.b=$V(b.b,a.get("ad_type"));b.Ge=b.b.join("_");b.Xk=bW(b.Xk,a.get("videoad_start_delay"));b.Yk=cW(b.Yk,a.get("slotname"));b.dl=dW(b.dl,a.get("adtest"));b.Zk=cW(b.Zk,a.get("afi_url"));b.$k=dW(b.$k,a.get("scs"));b.al=cW(b.al,a.get("alternate_ad_url"));b.g=aW(b.g,a.get("channel"));b.bl=bW(b.bl,a.get("cpm"));b.Ig=cW(b.Ig,a.get("description_url"));b.sc=cW(b.sc,a.get("eid"));
b.gl=eW(b.gl,a.get("cust_gender"),NV);b.k=dW(b.k,a.get("overlay"));b.host=cW(b.host,a.get("host"));b.j=aW(b.j,a.get("hostChannels"));b.il=bW(b.il,a.get("hostTierId"));b.jl=dW(b.jl,a.get("lsv"));var d;null!=this.g.g?d=this.g.g:(d=oc(),d=VO(d.language||d.userLanguage||d.browserLanguage||d.systemLanguage||""));var e=null!=a.get("hl")?String(a.get("hl")):null;d=cW(e,d);var g;null!=d&&!x(d)&&(g=VO(d));b.kl=cW(b.kl,g);b.Jp=bW(b.Jp,a.get("linearAdSlotWidth"));b.Ip=bW(b.Ip,a.get("linearAdSlotHeight"));b.zi=
bW(b.zi,a.get("max_ad_duration"));b.pl=bW(b.pl,a.get("min_ad_duration"));b.Bi=bW(b.Bi,a.get("sdmax"));b.Lp=bW(b.Lp,a.get("nonLinearAdSlotWidth"));b.Kp=bW(b.Kp,a.get("nonLinearAdSlotHeight"));b.Ef=cW(b.Ef,a.get("client"));b.Ci=cW(b.Ci,a.get("t_pyv"));b.Ji=bW(b.Ji,a.get("sdki"));b.Di=bW(b.Di,a.get("tfcd"));b.ql=eW(b.ql,a.get("targeting"),OV);b.Ai=bW(b.Ai,a.get("video_format"));b.ll=bW(b.ll,a.get("video_cpm"));b.nl=cW(b.nl,a.get("loeid"));b.wl=cW(b.wl,a.get("yt_pt"));b.rl=cW(b.rl,a.get("ytdevice"));
b.tl=cW(b.tl,a.get("ytdevicever"));b.ul=cW(b.ul,a.get("as_dbp"));b.o=cW(b.o,a.get("ms"));b.Wk=bW(b.Wk,a.get("adBlock"));b.url=cW(b.url,a.get("url"));this.b=b;this.C=c;x(this.b.sc)||(c=this.b.sc.split(","),YS(WS(),c))}w(fW,GV);var gW=["skippablevideo","standardvideo","video"];fW.prototype.B={Ww:"allow",Xw:"exclude",eJ:"require"};function hW(a){return null!=a.b.g?-1<a.b.g.indexOf("afitc"):!1}fW.prototype.o=function(){var a=fW.G.o.call(this);this.b.Ji&&(a+=this.b.Ji&2);return a};
fW.prototype.k=function(a){var b=new J("//googleads.g.doubleclick.net/pagead/ads"),c=a.Ma();z(c,function(c){K(b,c,a.get(c))});return b};
fW.prototype.A=function(){var a=new Dd;a.set("sdkv",JV(this));a.set("sdki",this.o().toString(16));a.set("video_product_type",null!=this.b.Ef?WO.b?5:hW(this)?7:0==this.b.Ef.lastIndexOf("ca-games-",0)?4:0==this.b.Ef.lastIndexOf("ca-video-",0)?0:-1:-1);a.set("correlator",this.j.b);a.set("client",this.b.Ef);WO.b&&!x(this.b.url)?a.set("url",this.b.url):a.set("url",this.g.location?this.g.location:this.g.b);a.set("num_ads",iW(this));a.set("channel",jW(this));a.set("ad_type",this.b.Ge);a.set("output","xml_vast2");
this.b.dl&&a.set("adtest","on");KS&&a.set("flash",LS);ZV("alternate_ad_url",this.b.al,a);ZV("cpm",this.b.bl,a);TV(a,this.g);WO.b||Ub(LV,this.b.yi)&&a.set("adsafe",this.b.yi);this.b.host&&(a.set("host",this.b.host),ZV("ht_id",this.b.il,a),null!=this.b.j&&ZV("h_ch",this.b.j.join("+"),a));ZV("hl",this.b.kl,a);ZV("cust_age",this.b.fl,a);ZV("cust_gender",this.b.gl,a);-1!=this.b.Di&&ZV("tfcd",this.b.Di,a);hW(this)?ZV("afi_url",this.b.Zk,a):ZV("slotname",this.b.Yk,a);var b=$S(WS());x(b)||a.set("eid",b);
UV(a);b=this.b.Ig;if(null!=b){var c,d;d=this.j;null==d.j&&(d.j=new kQ);d=d.j;hW(this)?c=this.b.Wk:(null!=b&&d.g!=b?(d.b=1,d.g=b):d.b=null!=b?d.b+1:1,c=d.b);1!=c&&a.set("ad_block",c);c=this.j;null==c.M&&(c.M=new lQ);c=c.M;var e=b!=this.j.L;(d=0==d.b%100||e)||(d=36E5<(null===c.b?0:(new zM).getTime()-c.b));d&&c.reset();this.j.L=b;b=c.g;null!==b&&a.set("tok",b)}a.set("unviewed_position_start","1");b=this.b.Xk;a.set("videoad_start_delay",null!=b?b:1);HV(this,a);WV(this.b)&&(a.set("ea","0"),null!=this.g.nonLinearAdSlotWidth&&
null!=this.g.nonLinearAdSlotHeight&&a.set("image_size",XV(this.b,this.g.nonLinearAdSlotWidth,this.g.nonLinearAdSlotHeight)));kW(this)&&a.set("video_format",null!=this.b.Ai&&WO.b?this.b.Ai:nh&&0<=Va(YO,6)||ih&&0<=Va(YO,4)||mc&&dP(bP,2.3)?43:18);b=null!=this.b.Ci?this.b.Ci:C(this.b.Ge.split("_"),"text")?this.B.Ww:this.B.Xw;a.set("t_pyv",b);ZV("min_ad_duration",this.b.pl,a);0<this.b.zi&&a.set("max_ad_duration",lW(this.b.zi,iW(this)));0<this.b.Bi&&a.set("sdmax",lW(this.b.Bi,iW(this)));YV(a,this.C);WO.b&&
(b=IP(this.b.Ig),null!=b&&a.set("video_doc_id","yt_"+b));ZV("description_url",this.b.Ig,a);WO.b&&(ZV("lact",this.g.lastActivity,a),ZV("loeid",this.b.nl,a),ZV("lsv",this.b.jl,a),ZV("scs",this.b.$k,a),ZV("targeting",this.b.ql,a),ZV("video_cpm",this.b.ll,a),ZV("yt_pt",this.b.wl,a),ZV("ytdevice",this.b.rl,a),ZV("ytdevicever",this.b.tl,a),ZV("as_dbp",this.b.ul,a));ZV("ms",this.b.o,a);b=this.g;x(b.b)||ZV("ref",b.b,a);null!=this.g.Be&&ZV("loc",this.g.Be.page_location,a);return a};
function kW(a){return jb(gW,function(a){return C(this.b.b,a)},a)}function iW(a){return hW(a)||WO.b?1:C(a.b.Ge.split("_"),"text")?3:1}function jW(a){a=a.b.g?a.b.g:[];zb(a);a=yb(a,0,30);return a.join("+")}function lW(a,b){return Math.round(1.1*(a||0)+0*b)};function mW(){}f=mW.prototype;
f.clone=function(){var a=new mW;a.adTagUrl=this.adTagUrl;a.Be=ac(this.Be);a.adsResponse=this.adsResponse;a.Ug=ac(this.Ug);a.Fr=this.Fr;a.isYouTube=this.isYouTube;a.location=this.location;a.b=this.b;a.lastActivity=this.lastActivity;a.g=this.g;a.linearAdSlotWidth=this.linearAdSlotWidth;a.linearAdSlotHeight=this.linearAdSlotHeight;a.nonLinearAdSlotWidth=this.nonLinearAdSlotWidth;a.nonLinearAdSlotHeight=this.nonLinearAdSlotHeight;a.tagForChildDirectedContent=this.tagForChildDirectedContent;a.Si=this.Si;
a.nh=this.nh;a.youTubeAdType=this.youTubeAdType;a.youTubeExperimentIds=this.youTubeExperimentIds;a.youTubeVideoAdStartDelay=this.youTubeVideoAdStartDelay;return a};f.Be=null;f.Ug=null;f.Fr=!1;f.isYouTube=!1;f.linearAdSlotWidth=0;f.linearAdSlotHeight=0;f.nonLinearAdSlotWidth=0;f.nonLinearAdSlotHeight=0;f.tagForChildDirectedContent=!1;f.Si=!1;f.nh=!0;f.youTubeVideoAdStartDelay=0;function nW(a,b){GV.call(this,a,b)}w(nW,GV);nW.prototype.k=function(a){var b=new J(this.g.adTagUrl);z(a.Ma(),function(c){ya(a.get(c))?b.b.remove(c):K(b,c,a.get(c))});return b};nW.prototype.A=function(){var a=new Dd;a.set("sdkv",JV(this));return a};function oW(a,b){GV.call(this,a,b)}w(oW,GV);oW.prototype.A=function(){return null};oW.prototype.k=function(){var a=new aT(this.g.adTagUrl),b=JV(this);b&&eT(a,"dc_sdkv",[b]);(b=this.o().toString(16))&&eT(a,"dc_sdki",[b]);(b=this.j.B)&&eT(a,"dc_submodel",[b]);b=new Dd;HV(this,b);Fd(b.g,"js")&&eT(a,"dc_js",[b.get("js")]);Fd(b.g,"msid")&&eT(a,"dc_msid",[b.get("msid")]);return a};function pW(a){GV.call(this,a,null)}w(pW,GV);pW.prototype.k=function(a){return new J(a.get("adTagUrl"))};pW.prototype.A=function(){var a=new Dd;a.set("adTagUrl",this.g.adTagUrl);a.set("adsResponse",this.g.adsResponse);return a};function qW(a,b){GV.call(this,a,b)}w(qW,GV);qW.prototype.k=function(a){var b=new J(this.g.adTagUrl);z(a.Ma(),function(c){ya(a.get(c))?b.b.remove(c):K(b,c,a.get(c))});return b};
qW.prototype.A=function(){var a=new Dd;a.set("sdkv",JV(this));a.set("sdki",this.o().toString(16));a.set("correlator",this.j.I);a.set("scor",this.j.b);HV(this,a);var b=this.j.g;null!=b&&(this.j.g=null,a.set("fbidx",b));b=this.j.F;null!=b&&a.set("ppid",b);var b="null",c=this.j.k;null!=c?b=c:(c=this.g.location,x(c)?c=!1:(c=new J(c),!c.Gb||"http"!=c.Gb&&"https"!=c.Gb?c=!1:(c=c.Bb,c=-1==c.indexOf(".")||c.match(/^[\.0-9]*$/)?!1:!0)),c&&(b=this.g.location));a.set("url",b);b=this.j.B;null!=b&&a.set("submodel",
b);b=this.j.A;null!=b&&(b=rW(b),a.set("ciu_szs",b));a.set("impl","");return a};function rW(a){var b=[];z(a,function(a){0<a.length&&b.push(A(a,function(a){return a.width+"x"+a.height}).join("|"))});return b.join(",")};function sW(a,b,c){GV.call(this,a,b);this.C=x(a.youTubeAdType);a=new KV;a.b=$V(a.b,this.g.youTubeAdType);a.Ge=a.b.join("_");a.sc=cW(a.sc,this.g.youTubeExperimentIds);this.b=a;this.B=c;x(this.b.sc)||(c=this.b.sc.split(","),YS(WS(),c))}w(sW,qW);sW.prototype.k=function(a){a=sW.G.k.call(this,a);this.C||tW(this,a);return a};function uW(a){var b=VV(a.g,a.b,a.B);b.set("sdkv",JV(a));b.set("sdki",a.o().toString(16));return b}
function tW(a,b){var c=uW(a),d=A(c.Ma(),function(a){var b=c.get(a);return a+"="+(null!=b?b:"")});ue(b,"afvparams",[Ba(d.join("&"))])};function vW(a,b,c){GV.call(this,a,b);this.C=x(a.youTubeAdType);a=new KV;a.b=$V(a.b,this.g.youTubeAdType);a.Ge=a.b.join("_");a.sc=cW(a.sc,this.g.youTubeExperimentIds);this.b=a;this.B=c;x(this.b.sc)||(c=this.b.sc.split(","),YS(WS(),c))}w(vW,oW);vW.prototype.k=function(a){a=vW.G.k.call(this,a);this.C||wW(this,a);return a};function xW(a){var b=VV(a.g,a.b,a.B);b.set("sdkv",JV(a));b.set("sdki",a.o().toString(16));return b}
function wW(a,b){var c=xW(a),d=A(c.Ma(),function(a){var b=c.get(a);return a+"="+(null!=b?b:"")});eT(b,"afvparams",[Ba(d.join("&"))])};function yW(a,b){return!jT(a)&&!iT(a)||x(a.youTubeAdType)?jT(a)?new oW(a,oQ):hT(a)?new fW(a,oQ,b):iT(a)?new qW(a,oQ):kT(a)?new nW(a,oQ):new pW(a):jT(a)?new vW(a,oQ,b):new sW(a,oQ,b)};function zW(a){a=hb(a,function(a){return 0<RT(a)});Cb(a,function(a,c){return RT(a)-RT(c)});return a}function AW(a){return hb(a,function(a){return-1==RT(a)})};function BW(a){this.b=a};function CW(){}function DW(a,b,c,d,e,g){var h=u(function(a){d(a,Error($k(a)))},a),k=u(function(a){6==a?EW(this,b,!1,c,h,e,g):h(a)},a);EW(a,b,!0,c,k,e,g)}
function EW(a,b,c,d,e,g,h){var k=new Jl;k.O=c;Ml(k,FW(g));var l=new Tk,q=u(function(){l.dispose();k.dispose()},a);c=u(function(){e(k.g);q()},a);Zk(l,k,"success",function(){var a;try{a=k.b?k.b.responseXML:null}catch(b){a=null}if(null==a){var c=ol(k);try{a=SC(c)}catch(e){t:if(document.implementation&&document.implementation.createDocument)a=document.implementation.createDocument("","parsererror",null);else{if("undefined"!=typeof ActiveXObject&&(a=TC())){a.appendChild(a.createNode(1,"parsererror",""));
break t}throw Error("Your browser does not support creating new documents");}}}d(a);q()},a);Zk(l,k,["error","timeout"],c,a);var r;"POST"==h&&(a=new J(b),r=a.b.toString(),ge(a,""),b=a.toString());k.send(bO(b),h,r)};function GW(a,b,c){var d=null,e=c+b;z(a.k,function(a){var h;if(h=a instanceof uT)0==c&&0==b||a instanceof VU?h=!0:(h=a.Xd(),h=h.width<=b&&h.height<=c);if(h&&(h=0==c&&0==b?0:c-a.Xd().height+b-a.Xd().width,"Flash"!=a.getContentType()||KS))if(null==d)d=a,e=h;else if(h==e&&a.b<d.b||h<e)d=a,e=h});LT(a,d)}function HW(a){var b=null;z(a.k,function(a){a instanceof qT&&(null===b||a.b<b.b)&&(b=a)});LT(a,b)};var IW=[202,1009],JW=["[CONTENT_V]","[CPN]","[DISALLOW]","[LACT]"];function KW(a,b,c){var d={};a=new LW(a,n(b)?b:null,n(c)?c:null);MW(d,a);b=a.error;d["[ERRORCODE]"]=1E3>b.b?b.b:900;NW(d);OW(d,a);PW(d,a);b=a.error.getErrorCode();d["[ERROR_MSG]"]=a.error.getMessage();d["[IMA_ERROR]"]=b;d["[INTERNAL_ID]"]="0";a=-1!=fb(IW,b);d["[BLOCKING_ERROR]"]=a?"1":"0";d["[YT_ERROR_CODE]"]=3;return d}
function QW(a,b){var c={},d=new LW(null,a,n(b)?b:null);MW(c,d);NW(c);OW(c,d);PW(c,d);c["[BREAK_TYPE]"]="0";c["[SLOT_POS]"]="0";c["[MIDROLL_POS]"]="0";if(null!=d.b){var e=d.b.j;null!=e&&null!=e.Be&&null!=e.Be.video_start_delay?(e=e.Be.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.b.D,c["[BREAK_TYPE]"]=0==e.j?"1":-1==e.j?"3":"2",c["[SLOT_POS]"]=e.b-1,0<e.k&&(c["[MIDROLL_POS]"]=Math.round(1E3*e.k)))}RW(c,d);return c}
function LW(a,b,c){this.error=a;this.b=b;this.display=c}function MW(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.vn():""}}}function NW(a){a["[SDKV]"]="h.0.0.0";a["[EL]"]="adunit";a["[CONN]"]="0";a["[VIEWABILITY]"]={toString:function(){var a=dR();return eR(a,"metric")}};a["[VIS]"]="0";a["[WT]"]={toString:function(){return Date.now()}}}
function OW(a,b){if(null!=b.b&&null!=b.b.j&&null!=b.b.j.Ug&&WO.b){var c=b.b.j.Ug;z(JW,function(b){b in c&&(a[b]=c[b])})}}
function PW(a,b){if(null!=b.b){a["[AD_ID]"]=OT(b.b);a["[AD_SYS]"]=RQ(b.b);a["[AD_V]"]={toString:function(){return null!=b.display?IP(b.display.vn()):""}};a["[FORMAT_NAMESPACE]"]="0";a["[FORMAT_TYPE]"]="0";a["[FORMAT_SUBTYPE]"]="0";var c=[];try{c=DT(b.b).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 RW(a,b){null!=b.b&&(a["[AD_LEN]"]={toString:function(){var a=ZT(b.b);return 0>a?"-1":Math.round(1E3*a).toString()}},a["[VOL]"]={toString:function(){return null!=b.display?Math.round(100*b.display.Zd()).toString():""}})};function SW(a,b,c,d){this.o=a;this.F=b;this.g=0<this.o.length?this.o:this.F;this.B=c;this.A=this.M=!0;this.j=-1;this.b=null;this.C=0;this.N=d;this.logger=null}SW.prototype.Bd=function(){return null!=this.b&&this.b.Bd()?!0:0<this.g.length&&this.j<this.g.length-1};function TW(a,b,c){null!=a.b?UW(a,b,c):a.Bd()?VW(a,b,u(function(a){this.Bd()&&301!=a.getErrorCode()?TW(this,b,c):c(a)},a)):c(new MN("adLoadError","The ad source contains no more ads.",1005))}
SW.prototype.I=function(a,b){return this.A?0<a.length?a:b:yb(b,0,1)};SW.prototype.k=function(a,b,c){var d;if(!(d=null!=a.getSelectedCreative())){var e=this.B;d=e.nonLinearAdSlotWidth||0;e=e.nonLinearAdSlotHeight||0;TT(a)&&!a.C?ST(a,"nonlinear")?GW(a,d,e):HW(a):ST(a,"linear")?HW(a):ST(a,"nonlinear")&&GW(a,d,e);d=null!=a.getSelectedCreative()}d?(this.C++,b(a)):(b=E(a.k)?QO(BO):CT(a)?QO(wO):QO(EO),d=KW(b,a),gO(a.F,d),c(b))};
SW.prototype.D=function(a,b,c){var d=this.B.clone();d.adsResponse="";d.adTagUrl=a.ka;WW(this,a,d,b,c)};function XW(a,b,c,d){var e=a.B.clone();e.adsResponse="";e.adTagUrl=b.la;WW(a,b,e,c,d)}
function WW(a,b,c,d,e){var g=b.getExtension("LocalRedirect");null!=g&&(g=g.g,null!=g&&(c.adsResponse=g));a.N.g(c,u(function(a){if(a instanceof SW){var c=this.A&&b.ca,g=b.rb,q;for(q in a.g){var r=a.g[q],t=b;if(!WO.b&&t&&TT(r)){var y={loc:document.URL,ref:document.referrer,skippable:ET(r)};try{gP(fP.getInstance(),23,y,!0)}catch(D){}}r.b=t}a.A=c;a.g=a.I(a.o,a.F);a.j=-1;a.M=g;d(a)}else a instanceof BW?e(new MN("adLoadError","Ad source cannot contain playlist response.",2)):e(new MN("adLoadError","Unknown ad source.",
2))},a),e)}function YW(a){var b=0;for(a=a.b;null!=a;)a=a.b,b++;return b}function UW(a,b,c){a.b.Bd()?TW(a.b,u(function(a){this.k(a,b,u(function(a){this.Bd()?TW(this,b,c):c(a)},this))},a),u(function(a){ZW(this.g[this.j],a);this.b=null;301==a.getErrorCode()?c(a):this.Bd()?TW(this,b,c):c(a)},a)):(0==a.b.C&&ZW(a.g[a.j],QO(MO)),a.b=null,TW(a,b,c))}function ZW(a,b){1012==b.getErrorCode()&&(b=QO(DO));var c=KW(b,a);gO(a.F,c)}
function VW(a,b,c){a.j++;var d=a.g[a.j];d.C||d.O?d.O?XW(a,d,u(function(a){this.b=a;TW(this,b,c)},a),u(function(a){a=$W(a);ZW(d,a);c(a)},a)):4<=YW(d)?(a=QO(FO,null,"4"),ZW(d,a),c(a)):a.M?a.D(d,u(function(a){this.b=a;TW(this,b,c)},a),u(function(a){a=$W(a);ZW(d,a);c(a)},a)):c(QO(LO)):a.k(d,b,c)}function $W(a){switch(a.getErrorCode()){case 300:case 301:case 302:case 303:case 200:case 1012:break;default:a=QO(MO)}return a};function aX(a,b,c,d){SW.call(this,[],a,b,c);this.L=d}w(aX,SW);aX.prototype.Bd=function(){return null!=this.b&&this.b.Bd()?!0:0<this.g.length&&this.j<this.g.length-1&&0==this.C};aX.prototype.I=function(a,b){return b};aX.prototype.k=function(a,b,c){var d=-1,d=null==this.b?QT(a):QT(this.g[this.j]);this.L.g=d;aX.G.k.call(this,a,b,c)};aX.prototype.D=function(a,b,c){this.L.g=-1;aX.G.D.call(this,a,b,c)};function bX(a,b,c,d,e){this.k=a;this.o=b;this.j=c;this.b=d;this.kb=e}bX.prototype.g=function(a,b,c){x(a.adsResponse)?iT(a)&&null!=this.b&&!this.b.B?this.b.start(a,u(function(){cX(this,a,b,c)},this)):cX(this,a,b,c):dX(this,a,b,c)};function dX(a,b,c,d){var e;try{e=SC(b.adsResponse)}catch(g){d(QO(tO,g));return}null!=e?eX(a,e,b,c,d):d(QO(tO))}
function cX(a,b,c,d){var e=IV(yW(b,a.j)).toString(),g=b.Si&&$N(YN,e)?"POST":"GET";DW(a.o,e,u(function(a){eX(this,a,b,c,d)},a),u(function(a,c){var e;e=8==a?QO(AO):5==a||6==a?QO(jO):QO(nO,c);d(e);e="third_party";hT(b)?e="adsense":jT(b)?e="dart":iT(b)&&(e="xfp");e={rt:e,ec:a};gP(fP.getInstance(),18,e,!0)},a),a.kb,g);fX(b)}function fX(a){var b="third_party";hT(a)?b="adsense":jT(a)?b="dart":iT(a)?b="xfp":kT(a)&&(b="dbm");a={rt:b};gP(fP.getInstance(),17,a,!0)}
function eX(a,b,c,d,e){var g;try{var h=FV(b,c);if(!h)throw QO(tO);g=h.j();gX(a,g,c,d)}catch(k){k instanceof MN?e(k):e(QO(uO,k))}}function gX(a,b,c,d){var e=b.b;if(null!=e)d(new BW(e));else{var g=b.j;if(null==g)throw QO(yO);z(g,function(a){a.j=c;WO.b&&(a.da=b.g)});e=zW(g);g=AW(g);0<g.length&&0<=QT(g[0])?d(new aX(g,c,a,a.k)):d(new SW(e,g,c,a))}};function hX(a){this.b=a+v()}hX.prototype.reset=function(a){this.b=a+v()};function FW(a){var b=v();a=a.b-b;return 0<a?a:0};function iX(a,b){this.b=a;this.g=b;WO.k&&dR().init()}function jX(a,b,c,d){var e=null;null!=a.b&&(e=new fR(1E3,a.b,a.g));(new bX(a.g,new CW,a.b,e,new hX(8E3))).g(b,u(function(a){a instanceof BW?c(a):kX(this,a,c,d)},a),d)}function kX(a,b,c,d){var e=[],g=u(function(a,b){a.Bd()?TW(a,u(function(b){e.push(b);g(a,null)},this),u(function(b){301==b.getErrorCode()?d(QO(AO)):g(a,b)},this)):0<e.length?c(e):(null==b&&(b=QO(qO)),1012==b.getErrorCode()&&(b=QO(DO)),d(b))},a);g(b,null)};function lX(a){this.g=a;this.b=new qm}function mX(a,b,c,d){var e=u(function(a){c(a);tm(this.b);nX(this)},a),g=u(function(a){d(a);tm(this.b);nX(this)},a);sm(a.b,u(function(){jX(this.g,b,e,g)},a));nX(a)}function nX(a){1==a.b.Na()?(a=a.b,rm(a),a=db(a.b),null!=a&&a()):a.b.Na()};function oX(a,b,c){U.call(this);this.g=new lX(new iX(b,c));this.b=b;this.ye=!0}w(oX,U);function pX(a,b,c){if(a.ye){var d=null!=c?c:{};mX(a.g,b,u(function(a){qX(this,a,d)},a),u(function(a){rX(this,a,d)},a))}}function sX(a,b,c){if(!a.ye){var d=null!=c?c:{};mX(a.g,b,u(function(a){qX(this,a,d)},a),u(function(a){rX(this,a,d)},a))}}
function qX(a,b,c){if(a.ye)b instanceof BW?(b=new tX(b.b,a),b.D=a.b,a.S(new uX(b,c))):(b=vX(b),b.D=a.b,null!=b?a.S(new uX(b,c)):rX(a,QO(wO,null),c));else if(b instanceof BW)rX(a,QO(iO,null,"Unsupported ad format."),c);else{var d=new aR("adsLoaderSdkAdLoaded");d.o=b;d.k=c;a.S(d)}}function rX(a,b,c){a.ye?("always"==WO.j&&null!=a.b&&LQ(a.b,IQ()),a.S(new NN(b,c))):(c=new aR("adsLoaderSdkAdError"),c.j=b,a.S(c))};var wX={NORMAL:"normal",FULLSCREEN:"fullscreen"};function xX(){return'<div class="close-padding"><div class="close-button"></div></div>'}function yX(a){return'<div class="recall-button '+(a.aD?"auto-hide":"")+'"></div>'}function zX(a){return'<a target="_blank" href="'+pU(a.url)+'" class="attribution-button">'+pU(a.text)+"</a>"};function AX(a,b){this.A=a;this.b=I("div",{"class":"controls"});this.O=b||ca;this.Pc=new Tk(this)}w(AX,Ih);f=AX.prototype;f.yd=!1;f.Or=1E3;f.qr=30;f.Vq=45E3;f.Wq=15E3;f.ws=!1;function BX(a){var b=I("div",{"class":"container"});xx(b,"opacity 0.4s");a.Pc.listen(b,"mouseover",a.VB);a.Pc.listen(b,"mouseout",a.WB);b.appendChild(a.b);return b}f.Jj=function(){var a=BX(this);this.b.appendChild(this.A);this.display(this.A);this.play();return a};f.K=function(){null==this.I&&(this.I=this.Jj());return this.I};
f.play=function(){null==this.g&&(this.g=Ok(function(){this.yd||(this.hide(),this.ws=!0);this.g=null},this.ws?this.Wq:this.Vq,this))};f.stop=function(){null!=this.g&&(Pk(this.g),this.g=null)};f.display=function(a){var b=document.createEvent("Event");b.initEvent("creativeview",!0,!0);a.dispatchEvent(b)};f.show=function(){bg(this.K(),1);null!=this.j&&(Pk(this.j),this.j=null)};f.hide=function(){bg(this.K(),this.qr/100);null==this.j&&(this.j=Ok(function(){this.O();this.j=null},400,this))};
f.VB=function(){this.show();this.yd=!0;this.B=Ok(function(){this.yd&&this.stop();this.B=null},this.Or,this)};f.WB=function(){null!=this.B&&(Pk(this.B),this.B=null);this.yd&&this.play();this.yd=!1};f.J=function(){AX.G.J.call(this);this.stop();Kh(this.Pc)};function CX(a,b){this.F=a;this.N=new Dd;this.L=15E3;this.C=I("span");AX.call(this,a[0],b);this.b.appendChild(this.C)}w(CX,AX);
CX.prototype.Jj=function(){var a=BX(this);RU(a,"container-rotator");this.D=I("div");this.b.appendChild(this.D);z(this.F,function(a,c){RU(a,"container-highlight");var d=63/this.F.length*(c+.5)-5,e=I("div",{id:Za(),"class":"container-selector"});e.style.top=d+"px";this.Pc.listen(e,"click",function(a){DX(this,a.target)});this.N.set(e.id,a);this.C.appendChild(e)},this);DX(this,hd(this.C));this.play();return a};
CX.prototype.play=function(){null==this.k&&(this.k=new Mk(this.L),this.Pc.listen(this.k,"tick",this.P));CX.G.play.call(this);this.k.start()};CX.prototype.stop=function(){null!=this.k&&this.k.stop();CX.G.stop.call(this)};CX.prototype.P=function(){var a=this.o;DX(this,(void 0!=a.nextElementSibling?a.nextElementSibling:id(a.nextSibling))||hd(this.o.parentNode))};function DX(a,b){a.o&&SU(a.o,"container-active");RU(b,"container-active");var c=a.N.get(b.id);fd(c,a.D);a.o=b;a.D=c;a.display(c)};function EX(a,b){AX.call(this,a,b)}w(EX,AX);AX.prototype.M=!1;EX.prototype.Jj=function(){var a=BX(this);RU(a,"container-slider");this.b.appendChild(this.A);this.Pc.listen(this.b,"click",this.k);this.play();return a};EX.prototype.show=function(){this.display(this.A);FX(this);SU(this.K(),"hidden")};EX.prototype.hide=function(){FX(this);RU(this.K(),"hidden")};EX.prototype.k=function(a){0!=Nf(this.b).y&&(a.preventDefault(),a.stopPropagation())};function FX(a){a.M?RU(a.K(),"animated"):a.M=!0};function GX(a,b){AX.call(this,a[0],b);this.k=a;RU(this.b,"container-stack")}w(GX,AX);GX.prototype.hide=ca;GX.prototype.Jj=function(){var a=BX(this);z(this.k,function(a){RU(a,"container-highlight");this.b.appendChild(a);this.display(a)},this);this.play();return a};function HX(a){U.call(this);this.B=a;this.o=null;this.I="normal";this.k=this.volume=null;this.g=new jP;this.ca=!1;this.content={};this.N=!1;z(a,function(){});z(a,function(a,c){var d=a.D,e=c+1;d.b=e;d.g=e})}w(HX,U);function $(a){if(null!=a.o){if(ET(a.o)&&!eP())throw SO(oO,null,"skippablevideo");return a.o}throw SO(lO,null,"An ad has not been selected.");}f=HX.prototype;f.Eg=function(){var a=fb(this.B,this.o);-1!=a&&++a<this.B.length?this.o=this.B[a]:this.o=null};
f.ds=function(){if(null==this.o){if(E(this.B))throw SO(wO);this.o=this.B[0];if(null==this.o.getSelectedCreative())throw QO(wO);}};f.na=function(a){null!=this.o?this.S(new PN(a,$(this))):this.S(new PN(a,null))};function IX(a){null==a.j&&(a.j=new Tk(a));return a.j}function JX(a,b){if(null!=a.D&&(Xk(IX(a),a.D,"companion_display_error",function(){}),LQ(a.D,b),!a.D.Ls()))throw SO(mO);}f.destroy=function(){this.dispose()};
f.J=function(){null!=this.o&&(LT(this.o,null),this.o=null);Kh(this.j);this.j=null;Kh(this.D);this.D=null;this.N=!1;HX.G.J.call(this)};f.Os=function(){return[]};f.getCurrentAd=function(){return this.B[0]};f.init=function(a){KX(this);this.zj(a);this.ca=!0;this.Oj()};f.Oj=function(){this.na("loaded")};f.sendImpressionUrls=function(a){null!=this.o&&WO.b&&gO(JT($(this)),a)};
f.Zc=function(a,b,c){if(!this.N){if(null==a)throw SO(pO,null,"displayContainer");if(null!=c){var d=new Zj(Tb(this.g));if(!Ld(Tb(c),d.contains,d))throw SO(pO,null,"opt_adsRenderingSettings should be instance of AdsRenderingSettings");d=this.g;if(null==c.Nf||0>=c.Nf)c.Nf=-1;null==c.jh&&(c.jh=[]);LX(c.jh);ja(c.loadVideoTimeout)||(c.loadVideoTimeout=15E3);dc(d,c)}this.content=b;this.k=a;this.ds();this.N=!0}};f.getRemainingTime=function(){return-1};f.Ch=ca;f.pause=function(){};f.resume=function(){};
f.skip=function(){};f.start=function(){KX(this);if(!this.ca)throw QO(lO,null,"Must call init before start.");};f.stop=function(){this.destroy()};f.setVolume=function(a){(isNaN(a)||0>a||1<a)&&UO(this,pO,null,"volume",String(a));this.volume=a};f.zj=function(a){if(!Ub(wX,a))throw SO(pO,null,"view mode",a);this.I=a};f.setMediaUrl=function(){};function KX(a){if(!a.N)throw SO(lO,null,"Ads manager is not correctly configured.");}f.getMediaUrl=function(){return null};
function LX(a){if(!ha(a))throw SO(lO,null,"adsRenderingSettings.mimeTypes should be an array");var b=ub(Sb(oP),Sb(kP));z(a,function(a){if(!C(b,a))throw SO(lO,null,"Invalid or unsuppoted mime type "+a);})};function MX(a){HX.call(this,a);this.A=null;this.P=!1;this.O=I("div",{style:"display:none;position:absolute;top:0;left:0;bottom:0;right:0;z-index:2000"})}w(MX,HX);f=MX.prototype;f.start=function(){MX.G.start.call(this);this.k.ji();this.A=this.k.Mf();if(null!=this.A){cd(this.A);var a=this.An();this.A.appendChild(a);NX(this);this.na("start")}};f.Ch=function(){MX.G.Ch.call(this);NX(this)};f.getSelectedCreative=function(){return $(this).getSelectedCreative()};
f.J=function(){Kh(this.b);this.k=this.b=null;null!=this.A&&(cd(this.A),this.A=null);MX.G.J.call(this)};f.An=function(){var a=$(this).getSelectedCreative();if(null==a)throw a=SO(wO),OX(this,a),a;vT(a,IX(this));wT(a,ek);try{JX(this,$(this))}catch(b){throw OX(this,b),b;}var c=QW($(this));gO(JT($(this)),c);this.na("impression");return PX(this,[a.nd()])};f.Oq=function(a,b){return new AX(a[0],b)};
function PX(a,b){null!=a.b&&a.b.stop();a.b=a.Oq(b,u(a.Nq,a));var c=a.b.K();if(WO.g){var d=I("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{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%}.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}.afi .text-container .text-inner-container{background-image:none;border:none;border-radius:0;box-shadow:none}.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}.afi .text-title{text-decoration:none}.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%}.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}.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%}.videoAdUiProgressBar{background-color:#fff;bottom:0;cursor:default;left:0;position:absolute;width:100%}.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%}.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}.videoAdUiAttribution-gvn{color:#e5bb00;font-size:12px}.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;color:#fff;font:normal 18px arial,helvetica,sans-serif;min-width:150px;padding:10px 7px;text-align:center}.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}}");
c.appendChild(d)}UU(c,"autoalign",a.g.xq);UU(c,"viewmode-fullscreen","fullscreen"==a.I);c.appendChild(a.O);IX(a).listen(c,"click",ek);(null!=a.o&&TT($(a))||a.g.useStyledNonLinearAds)&&a.Yl(a.b.b);return c}f.Yl=function(a){var b=IX(this);this.L=kU(yX,{aD:this.P});b.listen(this.L,"click",this.bD);var c=kU(xX);b.listen(c,"click",this.Fn);a.appendChild(c)};function NX(a){if(null!=a.b){var b=Zf(a.k.Mf()),c=Zf(hd(a.b.b));if(c.width>b.width||c.height>b.height)throw b=SO(rO,null),OX(a,b),a.stop(),b;}}
function OX(a,b){var c=KW(b,$(a)),d=IT($(a));gO(d,c)}f.Fn=function(){this.Nq();this.na("userClose")};f.Nq=function(){this.b.stop();var a=this.getSelectedCreative();null!=a&&yT(a);fd(this.L,this.b.b)};f.bD=function(a){ek(a);this.b.show();this.b.play();fd(this.b.b,this.L);Ok(function(){cg(this.O,!1)},500,this);cg(this.O,!0)};function QX(a){MX.call(this,a);this.C=!1;this.F=this.T=null;!E(a)&&null!=a[0].j&&(this.T=a[0].j,a=we(new J(this.T.adTagUrl),"channel"),this.uh=null!=a&&-1<a.split("+").indexOf("afitc"))&&(this.P=!0)}w(QX,MX);f=QX.prototype;f.uh=!1;
f.Oq=function(a,b){if(this.C||null==b)b=ca;var c;this.uh?c=new EX(a[0]):WO.b&&this.C?c=new AX(a[0],b):"fullscreen"==this.I?c=new GX(a):1<a.length?(c=new CX(a),c.L=15E3):c=new AX(a[0],b);c.Or=100;this.C&&(c.qr=30);c.Vq=this.uh?1E4:45E3;c.Wq=6E3;UU(c.b,"scalable",this.C);UU(c.K(),"afi",this.uh);UU(c.K(),"yt-text-overlay",WO.b&&this.C);return c};
f.rC=function(a){var b=a.getSelectedCreative();null!=b?(null==this.M&&(this.M=a.getExtension("AdSense").A),xT(b,ra(this.EC,a,b)),wT(b,ra(this.DC,a,b)),b.ka=!1,"Text"==b.getContentType()&&(this.C=!0),this.F.push(b)):(b=QO(wO),b=KW(b,a),gO(IT(a),b))};f.Zc=function(a,b,c){QX.G.Zc.call(this,a,b,c);this.g.xq=!0;null!=this.B[0]&&0<SQ(this.B[0]).length?JX(this,this.B[0]):this.na("companionBackfill")};
f.An=function(){null==this.F&&(this.F=[],z(this.B,this.rC,this));if(0==this.F.length)throw SO(wO);var a=[];z(this.F,function(b){vT(b,IX(this));"Flash"!=b.getContentType()||b.getAd().getExtension("TemplateAd")||(b.Sr=!0);a.push(b.nd());BT(b,this.M.j)},this);if(0==a.length)throw SO(wO);return PX(this,a)};f.Fn=function(a){z(this.F,function(a){var c=QW(a.getAd());gO(a.Gn("close"),c)},this);QX.G.Fn.call(this,a)};
f.Yl=function(a){QX.G.Yl.call(this,a);var b=this.B[0].getExtension("AdSense"),c=b.k,b=b.o,c=kU(zX,{text:null!=c?c:this.M.b,url:null!=b?b:this.M.g});a.appendChild(c)};f.EC=function(a,b){var c=QW(a);gO(JT(a),c);gO(b.Gn("creativeview"),c);xT(b,ca)};
f.DC=function(a,b,c){c=Vf(c);a=a.getExtension("AdSense");a=new J(a.g);var d=b.sd();isNaN(d)&&(d=Yf(b.nd()).width);var e=b.getHeight();isNaN(e)&&(e=Yf(b.nd()).height);b=WS();b=["0","aw="+d,"ah="+e,"nx="+c.x,"ny="+c.y,"viewMode="+this.I,"sdkv=h.0.0.0","eids="+$S(b)];dO(a,"elementclick",b);this.na("click")};f.zj=function(a){this.I!=a&&(QX.G.zj.call(this,a),null!=this.A&&(cd(this.A),a=this.An(),this.A.appendChild(a)),this.na("expandedChanged"))};function RX(a){PN.call(this,"adMetadata",a)}w(RX,PN);function SX(a,b,c){var d=ca;a=new J("https://gdata.youtube.com/feeds/api/videos/"+a);null!=c&&(b=u(b,c),d=u(d,c));TX(new Jl,a,b,d)}function UX(a,b,c){var d=ca;a=new J("https://gdata.youtube.com/feeds/api/channels/"+a);null!=c&&(b=u(b,c),d=u(d,c));TX(new Jl,a,b,d)}
function TX(a,b,c,d){VX(b);Ml(a,2E3);var e=new Tk(a);Xk(e,a,"success",function(a){a=a.target;var b;b=a.b?of(a.b.responseText):void 0;c(b||{});e.dispose();a.dispose()});Xk(e,a,["error","timeout"],function(a){a=a.target;var b=null;0!=a.g&&(b=Error($k(a.g)));d(b);e.dispose();a.dispose()});a.send(b)}function VX(a){K(a,"alt","json");K(a,"v","2")};function WX(a){XX(this,a)}function XX(a,b){if(b){var c=b.entry;if(c){var d=c.id;d&&jb(d.$t.split(":"),function(a,b,c){return"channel"==a?(this.b=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 YX(a){ZX(this,a)}YX.prototype.b=!0;function ZX(a,b){if(b){var c=b.entry;if(c){var d=c.id;d&&jb(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.g=d.$t;c.yt$accessControl&&(c=B(c.yt$accessControl,function(a){return"list"==a.action}))&&(a.b="denied"!=c.permission)}}};function $X(a,b,c,d,e){Yv.call(this);this.g=a;this.o=b;this.A=c;this.j=d;this.B=ha(e)?e:[e]}w($X,Yv);f=$X.prototype;f.play=function(){if(1==this.b)return!1;this.Lc();this.Jb("play");this.startTime=v();this.b=1;if(zx())return Gf(this.g,this.A),this.k=Ok(this.dz,void 0,this),!0;this.Bl(!1);return!1};f.dz=function(){xx(this.g,this.B);Gf(this.g,this.j);this.k=Ok(u(this.Bl,this,!1),1E3*this.o)};f.stop=function(){1==this.b&&this.Bl(!0)};
f.Bl=function(a){yx(this.g,"");Pk(this.k);Gf(this.g,this.j);this.endTime=v();this.b=0;if(a)this.onStop();else this.vb();this.Cd()};f.J=function(){this.stop();$X.G.J.call(this)};f.pause=function(){};function aY(a,b,c,d){return new $X(a,.5,{opacity:c},{opacity:d},{rp:"opacity",duration:.5,timing:b,qp:0})};function bY(a,b){U.call(this);this.j=a;this.M=0;this.D=!1;this.g=1;this.b=this.P=this.F=this.N=this.k=null;this.o=new Tk(this);this.O=!1;this.U=this.T=this.L=0;this.A=this.C=this.B=null;this.I=!1;this.j.j&&(this.o.listen(b,"touchstart",this.ou),this.o.listen(b,"touchmove",this.nu),this.o.listen(b,"touchend",this.mu));this.k=kU(cY);this.N=H("videoAdUiPreSkipButton",this.k);this.F=H("videoAdUiPreSkipText",this.N);this.P=H("videoAdUiPreSkipThumbnail",this.N);md(this.F,dY({to:eY(this)}));var c=this.j.V,
c=(x(c)?null:"//i1.ytimg.com/vi/"+c+"/mqdefault.jpg")||"";if(this.j.O&&!x(c)){var d=Zc("img");d.setAttribute("src",c);RU(d,"videoAdUiPreSkipThumbnailImage");this.P.appendChild(d)}else RU(this.F,"videoAdUiPreSkipTextOnly");this.j.j?c="\u00ab Swipe to Skip":(c="",d=ta("Skip Ad \u00bb"),c=c+d,d=new RegExp(Ra("\u00bb"),""),c=c.replace(d,""),c=Aa(c));this.b=kU(fY,{qu:c});cg(this.k,!1);b.appendChild(this.k);cg(this.b,!1);bg(this.b,0);b.appendChild(this.b);this.o.listen(this.b,"click",this.pu)}w(bY,U);
f=bY.prototype;f.J=function(){null!=this.B&&(this.B.dispose(),this.B=null);null!=this.C&&(this.C.dispose(),this.C=null);gY(this);null!=this.k&&(ed(this.k),this.k=null);null!=this.b&&(ed(this.b),this.b=null);this.o.dispose();this.o=null;this.I=!1;bY.G.J.call(this)};
f.update=function(a,b){this.M=b;if(!(0>=this.M||null==this.j.b||0>JR(this.j.b))){var c=JR(this.j.b);c>=this.M||3==this.g||(0>a?this.g=1:a<=c?(2!=this.g&&(hY(this,0),aY(this.k,"ease-out",0,1).play(),cg(this.k,!0)),this.g=2):(3!=this.g&&(cg(this.b,!0),this.C=new $X(this.k,.5,{opacity:1,visibility:"shown"},{opacity:.9,visibility:"hidden"},{rp:"opacity",duration:.5,timing:"ease-out",qp:0}),this.B=aY(this.b,"ease-out",0,1),this.C.play(),this.B.play(),this.o.listen(jd(this.b),"mouseover",this.ew),this.o.listen(jd(this.b),
"mouseout",this.vp),this.vp()),this.g=3,this.S("skipshown")))}2==this.g&&hY(this,a)};f.skip=function(){return null==this.j.b||3!=this.g||this.D?!1:(this.D=!0,this.S("PUBLISHER_INVOKED_SKIP"),!0)};f.ou=function(a){var b=a.b;3==this.g&&1==b.touches.length&&(this.O=!0,this.U=b.touches[0].pageX,a.preventDefault())};f.nu=function(a){var b=a.b;3==this.g&&1==b.touches.length&&this.O&&(b=b.touches[0].pageX,this.L=this.T-b,this.T=b,b=this.U-b,0<b&&(this.b.style.right=b+"px"),a.preventDefault())};
f.mu=function(){this.O=!1;if(3==this.g){var a=Yf(jd(this.b));if(parseInt(this.b.style.right,10)+4*this.L>.25*a.width&&0<this.L){cg(this.b,!1);this.D=!0;this.S("skip");return}}this.b.style.right=0};function eY(a){return null!=a.j.b&&-1!=JR(a.j.b)?JR(a.j.b):-1}function hY(a,b){var c=eY(a);if(!(0>c)){var c=Math.round(c-b),d=" "+c;60<=c&&(d=" "+CR(c));c=dY({to:d});md(a.F,c)}}f.pu=function(a){a.stopPropagation();3!=this.g||this.D||(this.D=!0,this.S("skip"))};
f.vp=function(){null==this.A&&(this.A=Ok(function(){this.I=!0;aY(this.b,"ease-in",1,.5).play();this.A=null},this.I?5E3:15E3,this))};f.ew=function(){bg(this.b,1);gY(this)};function gY(a){null!=a.A&&(Pk(a.A),a.A=null)};function iY(a,b,c){U.call(this);this.b=a;this.T=c;this.P=this.N=this.L=this.C=this.B=this.F=this.g=null;this.O=!1;this.D=this.k=this.A=this.M=this.I=this.o=null;this.j=new Tk(this);a=this.b.C;c="";var d=ta("Learn More {$suffix}",{suffix:pU("")});this.g=kU(this.b.B,{hi:a,su:c+d});this.j.listen(this.g,"touchmove",this.vu);this.M=H("videoAdUiProgress",this.g);this.F=H("videoAdUiAttribution",this.g);this.B=H("videoAdUiAuthorIcon",this.g);this.C=H("videoAdUiAuthorName",this.g);this.L=H("videoAdUiLearnMore",
this.g);this.N=H("videoAdUiLearnMoreText",this.g);this.D=H("videoAdUiShare",this.g);this.o=H("videoAdUiTitle",this.g);this.I=H("videoAdUiTopBar",this.g);this.P=H("videoAdUiBottomBar",this.g);null!=this.B&&this.j.listen(this.B,"click",this.tu);null!=this.C&&this.j.listen(this.C,"click",this.uu);null!=this.L&&this.j.listen(this.L,"click",this.wu);null!=this.N&&this.j.listen(this.N,"click",this.pk);null!=this.D&&this.j.listen(this.D,"click",this.yu);null!=this.o&&this.j.listen(this.o,"click",this.zu);
null!=this.I&&this.j.listen(this.g,"mouseover",this.xu);null!=this.b.b&&(this.k=new bY(this.b,this.g),this.k.ci(this));400>=(parseInt(Jf(b,"width"),10)||b.width)&&RU(this.g,"videoAdUi-mobile");this.b.j&&RU(this.g,"videoAdUi-swipeable");cg(this.g,!1);b.appendChild(this.g);this.b.g||(this.A=I("div",{style:"width:100%;height:100%"}),this.g.appendChild(this.A));jY(this)}w(iY,U);f=iY.prototype;f.show=function(){null!=this.g&&cg(this.g,!0)};
f.skip=function(){var a;if(a=null!=this.k)a=this.k,a=null!=a.j.b&&3==a.g;return a?this.k.skip():!1};f.J=function(){null!=this.g&&(ed(this.g),this.g=null);null!=this.k&&(this.k.dispose(),this.k=null);this.A=null;this.j.dispose();this.j=null;this.O=!1;iY.G.J.call(this)};
f.update=function(a,b){this.O=!0;if(null!=this.g){if(null!=this.F){var c=this.b.C,d=CR(b-a);md(this.F,c+(" ("+d+")"));cg(this.F,this.b.k&&this.O)}null!=this.M&&Xf(this.M,a/b*100+"%");0<b&&null!=this.b.b&&null!=this.k&&(c=this.b.b,c.g&&(c.g=!1,c.b=c.b*b/100),this.k.update(a,b));this.b.A&&0<b&&5>b-a&&RU(this.I,"videoAdUiTopBarNoFade")}};
function jY(a){var b=a.b.I&&(6E3<a.T||0==a.T),c=b&&a.b.L,d=b&&a.b.N,e=b&&a.b.o,g=b&&a.b.F,b=b&&a.b.A,h=a.b.D&&!0,k="0px";null!=a.o&&(cg(a.o,b),null!=a.B&&cg(a.B,c),null!=a.C&&cg(a.C,d),null!=a.L&&cg(a.L,e),null!=a.D&&(cg(a.D,g),g&&a.S("videoShareShown")),null!=a.I&&cg(a.I,b||c||d||e));null!=a.F&&cg(a.F,a.b.k&&a.O);null!=a.M&&(cg(a.M,h),h&&(k=Jf(a.M,"height")));null!=a.P&&Gf(a.P,"bottom",k);null!=a.N&&cg(a.N,a.b.g)}f.tu=function(){this.S("videoAuthorIconClicked")};f.uu=function(){this.S("videoAuthorClicked")};
f.wu=function(){this.S("videoLearnMoreClicked")};f.yu=function(){this.S("videoShareClicked")};f.zu=function(){this.S("videoTitleClicked")};f.vu=function(a){a.preventDefault()};f.pk=function(){this.S("click")};f.xu=function(){RU(this.I,"videoAdUiTopBarTransitions")};function kY(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">'+pU(a.su)+'</div><div class="videoAdUiShare"></div></div><div class="videoAdUiBottomBar"><div class="videoAdUiLearnMoreText">Learn More<div class="videoAdUiLearnMoreIcon"></div></div><div class="videoAdUiAttribution"',c;c=GU(a.hi);
c=pU(c);return b+c+">"+pU(a.hi)+'</div></div><div class="videoAdUiProgressBar"><div class="videoAdUiProgress"></div></div></div>'}function lY(a){var b=GU(a.hi);return'<div class="videoAdUi videoAdUi-gvn"><div class="videoAdUiTopBar"><div class="videoAdUiAttribution videoAdUiAttribution-gvn"'+pU(b)+">"+pU(a.hi)+'</div></div><div class="videoAdUiProgressBar"><div class="videoAdUiProgress"></div></div></div>'}
function cY(){return'<div class="videoAdUiPreSkipContainer"><div class="videoAdUiPreSkipButton"><div class="videoAdUiPreSkipText"></div><div class="videoAdUiPreSkipThumbnail"></div></div></div>'}function dY(a){var b="";a=ta("You can skip to video in {$xSeconds}",{xSeconds:pU(a.to)});return b+a}function fY(a){return'<div class="videoAdUiSkipContainer"><div class="videoAdUiSkipButton">'+pU(a.qu)+'<div class="videoAdUiSkipIcon"></div></div></div>'};function mY(){var a="",b=ta("Advertisement");this.C=a+b+":";this.b=null;this.k=this.I=!0;this.F=this.o=!1;this.D=!0;this.g=!1;this.M=!0;this.A=this.N=this.L=!1;this.B=null;this.j=!1;this.O=!0}function nY(a,b,c,d,e,g,h,k){var l=new mY;l.P=b;l.V=e;l.M=g;l.o=!1;l.F=h;l.D=k;l.b=c;l.g=a;l.B=kY;l.U=KP(b,null!=c,d.baseYouTubeUrl);l.j=hk&&ZS(0);l.O=null!=e&&(null!=d?d.showContentThumbnail:!0);return l};function oY(){this.b=new KR;this.o=new Dd;this.g=[];this.A=!1;this.j={};this.k=-1}w(oY,Ih);oY.prototype.J=function(){this.g=[];this.j={}};function pY(a,b){a.j=b}function qY(a,b){var c=eR(dR(),b.type);"impression"==b.type&&!a.A&&null!=a.g&&0<a.g.length&&(rY(a,a.g),a.A=!0);var d;t:switch(d=b.type,d){case "click":d=!0;break t;default:d=!Fd(a.o.g,d)}d&&(d=SR(a.b,b.type),0<d.length&&(rY(a,d,c),a.o.set(b.type,!0)))}function rY(a,b,c){z(b,function(a){eO(a,this.j,c)},a)};function sY(a){T.call(this,a)}w(sY,T);function tY(a){U.call(this);this.I=a;this.C=new Dd;this.B=-1;this.D=!1}w(tY,U);function uY(a){this.g=!1;this.b=a.Ii();this.volume=a.Zd()}uY.prototype.muted=function(a,b){return!this.b&&a||0<this.volume&&0==b};f=tY.prototype;f.J=function(){vY(this);tY.G.J.call(this)};function vY(a){null!=a.g&&a.g.dispose();null!=a.b&&a.b.Cf();null!=a.o&&a.o.dispose();a.o=null;null!=a.A&&a.A.dispose();a.A=null;a.C.clear();a.B=-1;a.D=!1}
function wY(a,b,c){c&&null!=a.C.get(b)||(a.C.set(b,!0),qY(a.I,new T(b)),a.S(b))}f.qw=function(){var a=this.b.rd();if(-1!=a){this.b.qh(.25*a)&&wY(this,"firstquartile",!0);this.b.qh(.5*a)&&wY(this,"midpoint",!0);this.b.qh(.75*a)&&wY(this,"thirdquartile",!0);var b=this.I,c=this.b.getCurrentTime();0>b.k&&(RR(b.b,a),b.k=0);for(var a=PR(b.b,"progress"),d=b.k;d<a.length;d++){var e=a[d];if(JR(e.j)>c)break;b.k=d+1;eO(e.b,b.j)}}xY(this)};
function xY(a){0>a.B||a.D||!a.b.qh(a.B)&&!a.b.Ee()||(a.D=!0,wY(a,"engagedview",!0),a.S(new sY("viewCount")))}f.ow=function(){wY(this,"impression",!0);wY(this,"creativeview",!0);null!=this.F||null!=this.j||this.g.listen(this.b,"click",this.yx);null!=this.F&&(this.o=new uP,this.g.listen(this.o,"click",this.cq,!1),vP(this.o,this.F));null!=this.j&&(this.A=new uP,this.g.listen(this.A,"click",this.cq,!1),vP(this.A,this.j));wY(this,"start",!0);(this.b.Ii()||0==this.b.Zd())&&wY(this,"mute",!1)};
f.rw=function(){var a=this.b.Ii(),b=this.b.Zd(),c=this.k;c.b&&!a||!a&&0==c.volume&&0<b?wY(this,"unmute",!1):this.k.muted(a,b)&&wY(this,"mute",!1);this.k.b=a;this.k.volume=b};f.lw=function(){this.b.Ee()?(xY(this),wY(this,"complete",!0)):this.b.ah()&&!this.b.Uq()&&(this.k.g=!0,wY(this,"pause",!1))};f.mw=function(){this.k.g&&(this.k.g=!1,wY(this,"resume",!1))};f.hw=function(){xY(this);wY(this,"complete",!0)};f.cq=function(){wY(this,"click",!1)};f.iw=function(){wY(this,"error",!1)};
f.kw=function(){wY(this,"mediaLoadTimeout",!1)};f.uw=function(){wY(this,"skipshown",!0)};f.xw=function(){wY(this,"videoAuthorIconClicked",!1)};f.ww=function(){wY(this,"videoAuthorClicked",!1)};f.yw=function(){wY(this,"videoLearnMoreClicked",!1)};f.zw=function(){wY(this,"videoShareClicked",!1)};f.Aw=function(){wY(this,"videoShareShown",!0)};f.Cw=function(){wY(this,"videoTitleClicked",!0)};f.wp=function(){wY(this,"skip",!0)};f.tw=function(){wY(this,"skip",!0)};f.yx=function(){wY(this,"click",!1)};
f.jw=function(){wY(this,"fullscreen",!1)};f.sw=function(){wY(this,"exitfullscreen",!1)};function yY(a){HX.call(this,a);this.M=this.A=null;this.F=new oY;this.C=new tY(this.F);this.P=this.T=this.L=!1;this.O=1}w(yY,HX);f=yY.prototype;f.J=function(){zY(this);var a=!1;null!=this.k&&(a=this.k.an(),this.k.hide(),this.k=null);this.L&&(this.L=!1,this.b.ah()||this.b.Ee()||this.b.pause(),!nc&&!xc||a||(this.b.Jf(.001),this.b.Cg("","")),this.na("contentResumeRequested"),this.na("allAdsCompleted"),nc&&this.b.Zi()&&!a&&this.b.$m());yY.G.J.call(this)};
function zY(a){Kh(a.A);a.A=null;a.M=null;Kh(a.C);Kh(a.F);a.U=null}function AY(a){a.Eg();null!=a.o?a.start():a.stop()}f.Eg=function(){zY(this);yY.G.Eg.call(this);null!=this.o&&(this.F=new oY,this.C=new tY(this.F))};
f.Ew=function(a,b,c){this.T||(this.T=!0,this.na("contentPauseRequested"));this.L=!0;var d=this.C,e=this.b,g=this.U,h=this.A;vY(d);d.b=e;d.j=h||null;d.b.Ei();d.k=new uY(d.b);d.F=g||null;d.g=new Tk(d);d.g.listen(d.b,"timeUpdate",d.qw);d.g.listen(d.b,"volumeChange",d.rw);d.g.listen(d.b,"pause",d.lw);d.g.listen(d.b,"play",d.mw);d.g.listen(d.b,"end",d.hw);d.g.listen(d.b,"beginFullscreen",d.jw);d.g.listen(d.b,"endFullscreen",d.sw);d.g.listen(d.b,"skip",d.wp);d.g.listen(d.b,"start",d.ow);d.g.listen(d.b,
"error",d.iw);d.g.listen(d.b,"mediaLoadTimeout",d.kw);null!=d.j&&(d.g.listen(d.j,"videoAuthorIconClicked",d.xw),d.g.listen(d.j,"videoAuthorClicked",d.ww),d.g.listen(d.j,"videoLearnMoreClicked",d.yw),d.g.listen(d.j,"videoTitleClicked",d.Cw),d.g.listen(d.j,"videoShareClicked",d.zw),d.g.listen(d.j,"videoShareShown",d.Aw),d.g.listen(d.j,"skipshown",d.uw),d.g.listen(d.j,"skip",d.wp),d.g.listen(d.j,"PUBLISHER_INVOKED_SKIP",d.tw));IX(this).listen(this.C,"engagedview",this.$d);IX(this).listen(this.C,"videoAuthorIconClicked",
this.$d);IX(this).listen(this.C,"videoAuthorClicked",this.$d);IX(this).listen(this.C,"videoLearnMoreClicked",this.$d);IX(this).listen(this.C,"videoShareClicked",this.$d);IX(this).listen(this.C,"videoShareShown",this.$d);IX(this).listen(this.C,"videoTitleClicked",this.$d);IX(this).listen(this.b,"timeUpdate",this.Bw);IX(this).listen(this.b,"volumeChange",this.gw);this.setVolume(this.O);BY(this,a);CY(this,a);this.k.gi();this.A&&(x(XT(a))?(d=this.A,null!=d.A&&(d.j.Ga(d.A,"click",d.pk),Gf(d.A,"cursor",
"default"))):(d=this.A,null!=d.A&&(d.j.listen(d.A,"click",d.pk),Gf(d.A,"cursor","pointer"))),this.b.Al(DY(this,a)));this.b.Cg(b,c);try{JX(this,a)}catch(k){EY(this,mO,k);return}this.b.play()};function FY(a,b,c,d){b=PR(b.b,c);E(b)||(a[d]=b[0].b)}function GY(a,b,c){b=c.getExtension(b);null!=b&&(FY(a,b,"annotation_click","cta_annotation_clicked"),FY(a,b,"annotation_close","cta_annotation_closed"),FY(a,b,"annotation_start","cta_annotation_shown"))}
function DY(a,b){var c=TT(b)&&!b.C?MT(b):null,d=ET(b)&&!FT(b),e=a.g.wk&&a.M.g,g=DT(b),h={};GY(h,"AdSense",b);GY(h,"dart",b);GY(h,"DFP",b);return new AP(g,c,h,e,d,a.g.loadVideoTimeout,b.j.tagForChildDirectedContent)}function HY(a){var b=0;z(a.B,function(a){IY(a)&&b++},a);var c=1;z(a.B,function(a){var b=a.D;IY(a)&&(b.b=c,b.g=c,c++)},a)}function IY(a){a=a.getSelectedCreative();return null!=a&&a instanceof qT}
function JY(a){return jb(a.B,function(a){a=KY(a);return jb(a,function(a){return!x(IP(a.g))})},a)}function KY(a){var b=a.b;if(null!=b&&b.O&&(b=b.k,!E(b)&&b[0]instanceof qT))return b[0].D;b=a.getSelectedCreative();return IY(a)?b.D:[]}function LY(a,b){if(!IY(b))throw SO(HO);var c=b.getSelectedCreative(),d=c.ca;if(!x(d))return new zP("","",0,0,0,0,0,d,"");var e=null!=b&&(WO.b||a.k.cj()),d=KY(b),e=a.b.Sq(d,a.g.Nf,a.g.jh||[],e);MY(d,a.g.Nf,e);if(null!=e)return c.la=e;throw SO(zO);}
function MY(a,b,c){try{var d=A(a,function(a){return a.be}),e=A(a,function(a){return a.b}),g={brs:d.join(","),mts:e.join(","),pubbr:b,selbr:null===c?-1:c.be,selmt:null===c?"":c.b,nat:!1};gP(fP.getInstance(),22,g)}catch(h){}}f.Oj=function(){this.na("loaded");this.S(new RX($(this)))};f.Zc=function(a,b,c){yY.G.Zc.call(this,a,b,c);this.b=this.k.pj(JY(this))};f.skip=function(){null!=this.o&&ET($(this))&&(null!=this.A?this.A.skip():(qY(this.F,new T("skip")),NY(this)))};
f.start=function(){yY.G.start.call(this);HY(this);this.U=this.k.Cl();try{var a=LY(this,$(this));this.P=!1;if(this.g.useVideoAdUi){var b=$(this),c;c=LY(this,b).g;var d=b.getExtension("AdSense"),e=this.g.wk&&((null===c?!1:"modules"==(new J(c)).Pg().toLowerCase())||null!=d&&d.B),g=IP(c),h;if(WO.b)h=nY(e,g,UT(b),this.g,this.g.contentId,!0,this.g.useShareButton,!0);else{var k;if(!aU(b,mP)&&!aU(b,nP)||WT(b)){var l=UT(b),q=nY(e,g,l,this.g,this.g.contentId,!1,!1,!1);q.B=lY;k=q}else{var r=UT(b),t=nY(e,g,r,
this.g,this.g.contentId,!1,!1,!1);t.k=!1;t.I=!1;k=t}h=k}var y=this.M=h,D=this.k.Dl();if(null===D)D=document.body;else{cd(D);var M=I("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{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%}.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}.afi .text-container .text-inner-container{background-image:none;border:none;border-radius:0;box-shadow:none}.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}.afi .text-title{text-decoration:none}.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%}.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}.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%}.videoAdUiProgressBar{background-color:#fff;bottom:0;cursor:default;left:0;position:absolute;width:100%}.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%}.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}.videoAdUiAttribution-gvn{color:#e5bb00;font-size:12px}.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;color:#fff;font:normal 18px arial,helvetica,sans-serif;min-width:150px;padding:10px 7px;text-align:center}.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}}");
D.appendChild(M)}var ea=1E3*ZT($(this));this.A=new iY(y,D,ea);var kb=y.P;null!=kb&&($(this).P=kb,y.M&&OY(this,kb));this.A.show()}Ok(u(yY.prototype.Ew,this,$(this),a.g,a.b))}catch(dg){PY(this,dg),this.Eg(),null!=this.o?(TO(SO,this,NO,dg,void 0),this.start()):(this.L?TO(SO,this,NO,dg,void 0):(null!=this.D&&LQ(this.D,IQ()),UO(this,NO,dg)),this.stop())}};f.setVolume=function(a){KX(this);this.L?this.b.setVolume(a):this.O=a};
f.setMediaUrl=function(a){KX(this);var b;if(b=null!=this.o)b=null!=$(this).j;b&&(b=$(this),(ZN(b.j.location)||WO.b)&&null!=b.getSelectedCreative()&&b.getSelectedCreative()instanceof qT&&b.getSelectedCreative().setMediaUrl(a))};f.pause=function(){KX(this);this.b.pause()};f.resume=function(){KX(this);this.b.play()};f.getRemainingTime=function(){KX(this);var a=this.b.rd(),b=this.b.getCurrentTime();return 0<=a&&0<=b?Math.max(0,a-b):-1};f.Rz=function(){EY(this,NO,SO(NO,this.b.as()))};
f.Sz=function(){EY(this,CO,SO(CO,null,(this.g.loadVideoTimeout/1E3).toString()))};function EY(a,b,c){PY(a,c);a.Eg();null!=a.o?(TO(SO,a,b,c,void 0),a.start()):(UO(a,b,c),a.stop())}function PY(a,b){var c=SO(NO,b),c=KW(c,$(a),a.b),d=IT($(a));gO(d,c)}
function CY(a,b){pY(a.F,QW(b,a.b));var c=b.getSelectedCreative();if(null!=c&&c instanceof qT){QY(a,c.g);z(ON,function(a){var b=oT(c,a);NR(this.F.b,b);RY(this,a)},a);var d=IX(a);Wk(d,a.C,"error",a.Rz,a);Wk(d,a.C,"mediaLoadTimeout",a.Sz,a)}SY(a,b);ET(b)&&(a.C.B=30)}function QY(a,b){z(b.Ma(),function(a){var d=b.get(a);z(d,function(b){OR(this.F.b,a,b);RY(this,a)},this)},a)}function TY(a){if(WO.g){var b=XT($(a));null!=b&&cO(b)}a.na("click")}
function SY(a,b){b.B.forEach(function(a){z(ON,function(b){var e=PR(a.b,b);E(e)||UY(this,b,e)},this)},a)}function UY(a,b,c){z(c,function(a){OR(this.F.b,a.g,a.b)},a);RY(a,b)}function BY(a,b){z(JT(b),function(a){qb(this.F.g,a)},a);RY(a,"impression")}function RY(a,b){Ub(QN,b)&&Wk(IX(a),a.C,b,a.$d,a)}
f.$d=function(a){switch(a.type){case "start":this.na("start");break;case "impression":this.na("impression");break;case "pause":this.na("pause");break;case "resume":this.na("resume");break;case "firstquartile":this.na("firstquartile");break;case "midpoint":this.na("midpoint");break;case "thirdquartile":this.na("thirdquartile");break;case "complete":this.na("complete");AY(this);break;case "click":null!=this.M&&this.M.o?this.b.ah()?this.resume():this.pause():TY(this);break;case "engagedview":this.na("engagedview");
var b=$(this);a=b.P;if(FT(b)&&!WO.b&&!this.k.cj()&&a){var b=this.b.getCurrentTime(),c=this.b.rd(),d=new J("//s.youtube.com/s");K(d,"ns","yt");K(d,"el","adunit");K(d,"docid",a);K(d,"eurl",document.URL);K(d,"len",c.toFixed(2));K(d,"tv","1");K(d,"ps","trueview-instream");K(d,"st",b.toFixed(2));K(d,"et",b.toFixed(2));K(d,"rt",b.toFixed(2));eO(d.toString())}break;case "videoAuthorIconClicked":VY(this);break;case "videoAuthorClicked":VY(this);break;case "videoLearnMoreClicked":this.b.pause();TY(this);break;
case "videoShareClicked":a=$(this).M;null!=a&&(a=a.videoId,b=this.g.baseYouTubeUrl,x(a)?a=null:(b=new J((null!=b?b:"//www.youtube.com/")+"share_popup"),c=b.b,c.set("v",a),ge(b,c),a=b.toString()),null===a||window.open(a,"_blank","width="+(550).toString()+",height="+(500).toString()),a=WY(this),null!=a&&dO(a,"sharebuttonclicked"));break;case "videoShareShown":a=WY(this);null!=a&&dO(a,"sharebuttondisplayed");break;case "videoTitleClicked":a=$(this);b=a.M;null!=b&&(a=KP(b.videoId,null!=UT(a),this.g.baseYouTubeUrl),
null!==a&&(this.b.pause(),cO(a)));break;case "skipshown":this.na("skippableStateChanged");break;case "skip":NY(this)}};function WY(a){var b;b=$(a).getExtension("AdSense");if(!(b=null!=b?new J(b.g):null))t:{a=$(a).getSelectedCreative();if(null!=a&&(a=oT(a,"start"),!E(a))){b=new J(a[0].b);break t}b=null}return b}function NY(a){Ok(function(){this.na("skip");AY(this)},0,a)}f.getSelectedCreative=function(){var a=$(this);return ZN(a.j.location)?$(this).getSelectedCreative():null};
f.getMediaUrl=function(){if(null==this.o)return null;var a=$(this);if(!IY(a))throw SO(HO);a=a.getSelectedCreative().D;return E(a)?null:a[0].g};f.Bw=function(){var a=this.b.rd(),b=this.b.getCurrentTime();if(null!=this.A&&0<=a&&0<=b){if(!this.P){var c=this.b.rd(),d=ZT($(this)),c=Math.abs(c-d);2<c&&(c=SO(GO,null,Number(c).toFixed(2)),c=KW(c,$(this),this.b),d=IT($(this)),gO(d,c));this.P=!0}this.A.update(b,a)}};f.gw=function(){var a=this.b.Zd();a!=this.O&&(this.O=a,this.na("volumeChange"),0==a&&this.na("mute"))};
function OY(a,b){null!=a.A&&SX(b,function(a){a=new YX(a);bU($(this))==a.videoId&&(XY(this,a),!x(a.g)&&a.b&&UX(a.g,function(a){a=new WX(a);if(null!=this.A){var b=this.A,c=a.j;b.b.N=!x(c);b.b.T=c;if(null!=b.C){var c="",h=ta("by {$userDisplayName}",{userDisplayName:""+b.b.T});md(b.C,(new wU(c+h,void 0)).content)}jY(b);b=this.A;c=a.g;b.b.L=!x(c);null!=b.B&&(h=Zc("img"),h.setAttribute("src",c),RU(h,"videoAdUiAuthorIconImage"),b.B.appendChild(h),null!=b.o&&RU(b.o,"videoAdUiTitleWithAuthorIcon"));jY(b)}$(this).I=
a;this.na("youTubeChannelMetadata");a=$(this);b=a.M;if(WO.b&&TT(a)&&E(SQ(a))&&null!=a.I&&null!=b&&b.b){a=$(this);IX(this).listen(window,"message",this.dw);var b=$(this),c=b.I.b,h=DT(b),k=this.g.baseYouTubeUrl,k=new J((null!=k?k:"//www.youtube.com/")+"ad_companion"),l=k.b;l.set("adformat",h);l.set("p",c);l.set("render","video_wall_companion");c=new WU("1",new G(300,250),"IFrame",null,k.toString());c.qg(b);c.C=!0;a.o=[new dU(c,[],null)];JX(this,a)}},this))},a)}
f.dw=function(a){var b=a.b;if("companion-setup-complete"==b.data){a=$(this);var c=encodeURIComponent(za(XT(a)))+","+encodeURIComponent(WY(this).toString());b.source.postMessage(c,"*");b=b.source.frameElement;b.parentNode.style.cssText="";b.width=370;b.height=null!=XT(a)?210:185}else"pause-video"==b.data&&this.pause()};
function XY(a,b){if(null!=a.A&&b.b){var c=a.A,d=b.title;c.b.A=!x(d);c.b.title=d;Yw.test(Xw(c.b.title,void 0));null!=c.o&&md(c.o,c.b.title);jY(c);c=a.A;if(null!=c.D){var c=c.D,d="",e=ta("Share");md(c,d+e)}}$(a).M=b;a.na("youTubeVideoMetadata")}function VY(a){var b;b=$(a).I;if(null!=b){b=b.b;var c=a.g.baseYouTubeUrl;b=x(b)?null:(null!=c?c:"//www.youtube.com/")+"channel/UC"+b;null!==b&&(a.b.pause(),cO(b))}};function YY(a){this.b=a}f=YY.prototype;f.Cl=function(){return this.b.Cl()};f.Dl=function(){return this.b.Dl()};f.Mf=function(){return this.b.Mf()};f.pj=function(a){return this.b.pj(a)};f.an=function(){return this.b.an()};f.cj=function(){return this.b.cj()};f.hide=ca;f.gi=ca;f.ji=ca;function ZY(a,b,c,d,e,g,h){U.call(this);this.k=this.A=0;this.B=a;this.D=b;this.aa=c;this.o=null;this.N=d;this.da=g;this.L=WO.j;this.b=null;this.T="normal";this.M=null;this.F=e;this.j=[];this.U=this.P=this.I=!1;this.O=h;$Y(this)}w(ZY,U);f=ZY.prototype;f.init=function(a,b,c){aZ(this,c);null==this.C&&(this.C=new Tk(this),Wk(this.C,this.N,"adsLoaderSdkAdLoaded",this.ZC,this),Wk(this.C,this.N,"adsLoaderSdkAdError",this.YC,this));bZ(this)};
f.start=function(){this.I=!0;cZ(this);0<this.j.length?dZ(this):("always"==WO.j&&null!=this.O&&LQ(this.O,IQ()),TO(QO,this,qO,void 0,void 0),0==this.D&&this.S("contentResumeRequested"),eZ(this))};f.destroy=function(){null!=this.C&&(this.C.dispose(),this.C=null);this.F.hide();fZ(this);WO.j=this.L;this.I=!1};f.getCurrentAd=function(){return this.k<this.j.length?this.j[this.k].b[0]:null};f.pause=function(){null!=this.b&&this.b.pause()};f.resume=function(){null!=this.b&&this.b.resume()};
f.skip=function(){null!=this.b&&this.b.skip()};f.getRemainingTime=function(){return null!=this.b?this.b.getRemainingTime():-1};f.setVolume=function(a){null!=a&&(this.M=a,null!=this.b&&this.b.setVolume(this.M))};function aZ(a,b){null!=b&&(a.T=b);null!=a.b&&(a.b.zj(b),a.b.Ch())}function $Y(a){z(a.B,function(a){a=new J(a.j.adTagUrl);var c=we(a,"max_ad_duration");n(c)||we(a,"pmxd")})}
f.ZC=function(a){WO.j=this.L;var b=a.o;E(b)||(a=a.k,a.b&&z(b,function(a){a.T=!1},this),qb(this.j,new wR(b,a.b,a.g)));this.A++;bZ(this)};f.YC=function(a){a=a.j;WO.j=this.L;a.getMessage();TO(QO,this,qO,void 0,void 0);this.A++;bZ(this)};function bZ(a){a.A<a.B.length&&null!=a.B[a.A]&&!(2<=a.j.length-a.k)?gZ(a):a.P||(a.S("adBreakInitialized"),a.P=!0)}function gZ(a){var b=a.B[a.A];WO.j="on_master_ad";sX(a.N,b.j,b)}
function cZ(a){null==a.D||jb(a.j,function(a){return!a.g})||(a.j=hb(a.j,function(a){return!(a.g&&!a.j)}))}
function dZ(a){if(a.k<a.j.length){var b=a.j[a.k];fZ(a);try{var c=b.b,b=null;if(CT(c[0]))b=new yY(c);else{var d=c[0];if(null!=d&&ST(d,"nonlinear"))b=new MX(c);else throw Error("No valid creative type found.");}b.D=a.O;b.Zc(new YY(a.F),{currentTime:0},a.da);a.b=b;if(null==a.b)throw Error("The current ads manager is not defined");null!=a.g&&(a.g.dispose(),a.g=null);a.g=new Tk(a);var e=a.b;Wk(a.g,e,"adError",a.Vu,a);Wk(a.g,e,"click start pause firstquartile midpoint thirdquartile complete skip loaded adMetadata log".split(" "),
a.Wu,a);a.g.listen(e,["allAdsCompleted"],ca);Wk(a.g,e,"contentPauseRequested",a.Tu,a);Wk(a.g,e,"contentResumeRequested",a.Uu,a);if(hZ(a.b)){var g;g=a.b.getSelectedCreative().rb;g=0<g?g:15;null!=a.o&&a.o.dispose();a.o=new Mk(1E3*g);Zk(a.g,a.o,"tick",a.Xu,a)}a.b.init(a.T);null!=a.M&&a.b.setVolume(a.M);if(hZ(a.b))a.S("contentResumeRequested"),a.F.ji(),a.b.start(),null!=a.o&&a.o.start();else{var h=a.b;if(null!=h&&h instanceof yY)a.F.gi(),a.b.start();else throw Error("Unknown ads manager type.");}}catch(k){a.k++,
dZ(a)}a.A<a.B.length&&null!=a.B[a.A]&&gZ(a)}else a.S("contentResumeRequested"),eZ(a)}function fZ(a){null!=a.o&&(a.o.dispose(),a.o=null);null!=a.g&&(a.g.dispose(),a.g=null);null!=a.b&&(a.b.destroy(),a.b=null)}f.Xu=function(){fZ(this);eZ(this)};f.Vu=function(){this.k++;dZ(this)};f.Uu=function(){this.k++;dZ(this)};f.Tu=function(){this.U||(this.S("contentPauseRequested"),this.U=!0)};function hZ(a){return null!=a&&a instanceof MX}function eZ(a){a.I=!1;a.S("allAdsCompleted")}
f.Wu=function(a){iZ(this,a.type,a.getAd());this.S(a)};function iZ(a,b,c){if("loaded"==b||"start"==b||"adMetadata"==b||"firstquartile"==b){var d=0;z(a.j,function(a,b){var h=a.b;fb(h,c);b<this.k&&(d+=h.length)},a);b=c.D;b.b=d+b.g;b.j=a.aa;b.k=a.D}};function jZ(a){T.call(this,a);this.j=null}w(jZ,T);function kZ(a,b,c){U.call(this);this.g=a;this.b=[];this.A=null!=c&&"boolean"==typeof c.backlog?c.backlog:!1;this.C=null!=c&&ja(c.prefetch)&&0<=c.prefetch?c.prefetch:0;this.j=null;this.k=!1;lZ(this,b)}w(kZ,U);function mZ(a){this.b=a;this.j=this.g=!1}function nZ(a){null!=a.j&&(a.j.dispose(),a.j=null);a.g.stop();a.k=!1}function oZ(a){if(a.k){var b=B(a.b,function(a){return-1==a.b},a);null!=b&&pZ(a,!0,b)}}
function lZ(a,b){z(b,function(a){if(isNaN(a))throw Error("The ad play time is not a number:"+a);Gb(this.b,new mZ(a),function(a,b){return Bb(a.b,b.b)})},a)}kZ.prototype.o=function(){if(this.k){var a=this.g.currentTime;if(isNaN(a)||0>a)qZ(this);else{var b=rZ(this,a);this.A?z(b,function(a){pZ(this,!0,a)},this):pZ(this,!0,db(b));pZ(this,!1,sZ(this,a))}}};function rZ(a,b){for(var c=[],d=0;d<a.b.length;d++){var e=a.b[d];-1!=e.b&&e.b<=b&&qb(c,e)}return c}
function sZ(a,b){for(var c=0;c<a.b.length;c++){var d=a.b[c];if(-1!=d.b&&b>=d.b-a.C&&b<d.b&&!a.b[c].g)return d}return null}kZ.prototype.B=function(){qZ(this)};function qZ(a){a.S(new jZ("contentTrackingError"))}function pZ(a,b,c){if(null!=c){if(!c.g){var d=new jZ("requestAds");d.j=c.b;a.S(d);c.g=!0}b&&!c.j&&(b=new jZ("playAds"),b.j=c.b,a.S(b),c.j=!0)}};function tX(a,b){HX.call(this,[]);this.P=a;this.F=new Dd;this.A=this.b=null;this.U=new qm;this.C=null;this.L=b;this.T=this.O=!1;this.M=null;this.aa=this.da=-1}w(tX,HX);f=tX.prototype;
f.Zc=function(a,b,c){null!=this.A&&(nZ(this.A),this.A.dispose(),this.A=null);tX.G.Zc.call(this,a,b,c);c=this.P.b.Ma();b=new jQ(b);this.A=new kZ(b,c,{prefetch:4});z(c,function(b,c){if(isNaN(b))throw QO(kO,null,"timeOffset",b+"");var g=ja(b)&&!isNaN(b)?this.P.b.get(b,[]):[];if(!E(g)){g=new ZY(g,b,0==b||-1==b?b:c,this.L,a,this.g,this.D);if(Fd(this.F.g,b))throw QO(vO,null,"Multiple ad breaks cannot share same ad play time.");this.F.set(b,g)}},this);this.M=db(c);jb(c,function(a){if(-1==a)return this.M=
a,!0;this.M=this.M<a?a:this.M;return!1},this)};
f.init=function(a){tX.G.init.call(this,a);null!=this.A&&(tZ(this),this.j=new Tk(this),Wk(this.j,this.A,"requestAds",this,this),Wk(this.j,this.A,"playAds",this,this),Wk(this.j,this.A,"contentTrackingError",this,this),Wk(this.j,this.A,"adBreakReady",this.jv,this),Wk(this.j,this.L,"contentComplete",this.kv,this),this.L.ye=!1,a=this.A,a.k||(null==a.j&&(a.j=new Tk(a)),a.j.listen(a.g,"currentTimeUpdate",a.o,!1),a.j.listen(a.g,"contentWrapperError",a.B,!1)),a.g.start(),a.k=!0,this.A.o(),a=ja(0)&&!isNaN(0)?
this.P.b.get(0,[]):[],E(a)&&this.na("contentResumeRequested"))};f.Oj=function(){this.Os();this.S(new RX(null))};f.destroy=function(){this.dispose()};f.J=function(){this.L.ye=!0;if(0<this.F.Na()){var a=this.F.Qa();z(a,this.pm,this);this.F.clear()}tZ(this);uZ(this);null!=this.k&&(this.k.hide(),this.k=null);tX.G.J.call(this)};f.start=function(){tX.G.start.call(this)};f.stop=function(){null!=this.b&&this.b.destroy()};f.pause=function(){null!=this.b&&this.b.pause()};f.resume=function(){null!=this.b&&this.b.resume()};
f.skip=function(){null!=this.b&&this.b.skip()};f.setVolume=function(a){tX.G.setVolume.call(this,a);null!=this.b&&this.b.setVolume(a)};f.Ch=function(){tX.G.Ch.call(this);var a=Rc(window);this.da=a.width;this.aa=a.height;null!=this.b&&aZ(this.b,this.I)};f.getRemainingTime=function(){return null!=this.b?this.b.getRemainingTime():-1};f.Os=function(){return this.P.b.Ma()};f.getCurrentAd=function(){return null!=this.b?this.b.getCurrentAd():null};f.ds=function(){};
f.handleEvent=function(a){"contentTrackingError"!=a.type&&(sm(this.U,a),vZ(this))};function tZ(a){null!=a.j&&(a.j.dispose(),a.j=null);a.O=!1;null!=a.A&&nZ(a.A)}
function vZ(a){if(null==a.C){var b=tm(a.U);if(null!=b){a.C=b;var c=a.F.get(a.C.j);null!=c?"requestAds"==b.type?(null==a.j&&(a.j=new Tk(a)),Wk(a.j,c,"click start pause firstquartile midpoint thirdquartile complete skip loaded adMetadata log".split(" "),a.S,a),Wk(a.j,c,"allAdsCompleted",a.er,a),Wk(a.j,c,"contentPauseRequested",a.br,a),Wk(a.j,c,"contentResumeRequested",a.dr,a),Wk(a.j,c,"adBreakInitialized",a.fr,a),c.init(a.da,a.aa,a.I)):"playAds"==b.type?(null!=a.b&&a.b.I&&a.pm(a.b),a.b=c,a.b.setVolume(a.volume),
aZ(a.b,a.I),a.b.start()):(a.C=null,vZ(a)):(a.C=null,vZ(a))}}}f.pm=function(a){a.destroy();this.F.remove(a.D);this.b=null;null!=this.j&&(this.j.Ga(a,"click start pause firstquartile midpoint thirdquartile complete loaded adMetadata".split(" "),this.S,!1,this),this.j.Ga(a,"allAdsCompleted",this.er,!1,this),this.j.Ga(a,"contentPauseRequested",this.br,!1,this),this.j.Ga(a,"contentResumeRequested",this.dr,!1,this),this.j.Ga(a,"adBreakInitialized",this.fr,!1,this))};
f.kv=function(){this.O=!0;-1==this.M||wZ(this);oZ(this.A)};f.jv=function(a){a=a.j;-1==a?Ok(function(){wZ(this)},500,this):0==a&&Ok(function(){this.na("contentResumeRequested")},100,this);this.S(new PN("adBreakReady",null))};f.er=function(a){this.pm(a.target);(0==this.F.Qa().length||this.O)&&wZ(this);this.C=null;vZ(this)};function wZ(a){a.T||(a.T=!0,a.L.ye=!0,a.na("allAdsCompleted"),-1==a.M&&uZ(a))}function uZ(a){oQ.clear();null!=a.D&&(a=a.D.qi(),null!=a&&a.F(oQ.b))}
f.br=function(){var a=this.A;a.g.stop();a.k=!1;this.na("contentPauseRequested")};f.dr=function(){this.na("contentResumeRequested");if(!this.O){var a=this.A;a.g.start();a.k=!0}this.C=null};f.fr=function(){this.C=null;vZ(this)};f.na=function(a){var b=null;null!=this.b&&(b=this.b.getCurrentAd());this.S(new PN(a,b))};function xZ(a){HX.call(this,a);this.U=this.T=this.L=!1;this.M=[];this.P=Za();this.A=null;this.b=new oY;this.C=!0;this.O=-1;this.F=1}w(xZ,HX);f=xZ.prototype;
f.init=function(a){xZ.G.init.call(this,a);a=$T($(this));if(/\.html(\?.*)?$/.test(a)){if(a.match("//s0.2mdn.net/instream/html5/survey/survey.html")){var b="en".replace("-","_");a=a.replace(".html","_"+b+".html");null!=this.g.contentId&&(a=be(a,"v",this.g.contentId))}a=za(a)}else{var b=new J(a),c=new J("http://tpc.googlesyndication.com/pagead/js/loader5.html");"https"==b.Gb&&ce(c,"https");a=ge(c,a||"",void 0).toString()}this.fb=I("iframe",{src:bO(a),allowtransparency:!0,background:"transparent",style:"border:0; opacity:0; margin:0; overflow:hidden;padding:0; width:100%; height:100%;position: absolute;"});
IX(this).listen(window,"message",this.nC);IX(this).listen(this.fb,"load",this.lC);IX(this).listen(this.fb,"error",this.mC);this.k.Mf().appendChild(this.fb)};f.Zc=function(a,b,c){xZ.G.Zc.call(this,a,b,c);this.C=$(this).getSelectedCreative()instanceof qT;this.A=a.pj(!1);IX(this).listen(this.A,"click end error mediaLoadTimeout pause play timeUpdate volumeChange".split(" "),this.RC)};f.stop=function(){this.k.hide();xZ.G.stop.call(this)};
function yZ(a,b){pY(a.b,QW(b,a.A));var c=b.getSelectedCreative();null!=c&&(c instanceof qT&&zZ(a,c.g),z(ON,function(a){a=oT(c,a);NR(this.b.b,a)},a),z(JT(b),function(a){qb(this.b.g,a)},a))}function zZ(a,b){z(b.Ma(),function(a){var d=b.get(a);z(d,function(b){OR(this.b.b,a,b)},this)},a)}f.start=function(){xZ.G.start.call(this);yZ(this,$(this));this.A.Ei();this.k.ji();this.fb.style.opacity=1;this.U=!0;this.C&&this.na("contentPauseRequested");AZ(this)};f.pause=function(){BZ(this,"pauseAd")};
f.resume=function(){BZ(this,"resumeAd")};f.setVolume=function(a){xZ.G.setVolume.call(this,a);BZ(this,"setAdVolume",{value:a})};f.J=function(){var a=this.k.Mf();null!=a&&cd(a);this.C&&this.na("contentResumeRequested");this.na("allAdsCompleted");this.L=!1;this.M=[];xZ.G.J.call(this)};f.Oj=function(){};
f.lC=function(){var a=this.A.gs();E(a)&&(a=this.g.jh);CZ(this,"wrapperCall",{messageType:"supportedMimeTypes",supportedMimeTypes:a});var a=KT($(this)),b={desiredBitrate:this.g.Nf,creativeData:a,viewMode:this.I};$T($(this)).match("//s0.2mdn.net/instream/html5/survey/survey.html")&&0<=a.indexOf("yt_override")&&null!=this.g.wn&&(b.creativeData=this.g.wn);CZ(this,"initAd",b);z(this.M,function(a){CZ(this,a.type,a.params)},this);this.L=!0;this.M=[]};
function BZ(a,b,c){a.L?CZ(a,b,c):a.M.push({type:b,params:c})}function CZ(a,b,c){null!=a.fb?(null!=c||(c={}),c.session=a.P,c.type=b,a.fb.contentWindow.postMessage(qf(c),"*")):(DZ(a,PO,null),a.stop())}
f.nC=function(a){a=a.b;if(a.source==this.fb.contentWindow&&(a=of(a.data),a.session==this.P&&s(a.type)))switch(a.type){case "videoCall":switch(a.func){case "play":this.k.gi();this.A.Cg(a.src,a.mimetype);this.A.play();break;case "pause":this.A.pause()}break;case "getAdRemainingTime":a=a.remainingTime;this.C||(Pk(this.O),ja(a)&&-1!=a||(a=30),this.O=Ok(this.Mx,1E3*a,this));break;case "AdClickThru":qY(this.b,new T("click"));a.url&&eO(a.url);n(a.Nx)&&!1==a.Nx&&WO.g&&(a=XT($(this)),null!=a&&cO(a));this.na("click");
break;case "AdError":DZ(this,PO,null);this.stop();break;case "AdExpandedChange":this.na("expandedChanged");break;case "AdImpression":this.na("impression");break;case "AdLinearChange":a=a.isLinear;!this.C&&a?(this.na("contentPauseRequested"),Pk(this.O)):!a&&this.C&&(this.na("contentResumeRequested"),this.C=a,BZ(this,"getAdRemainingTime"));this.C=a;break;case "AdLoaded":this.T=!0;AZ(this);EZ(this,"loaded");break;case "AdPaused":EZ(this,"pause");break;case "AdPlaying":EZ(this,"resume");break;case "AdRemainingTimeChange":this.C||
BZ(this,"getAdRemainingTime");break;case "AdSkipped":EZ(this,"skip");break;case "AdStarted":qY(this.b,new T("impression"));qY(this.b,new T("creativeview"));this.na("start");break;case "AdStopped":qY(this.b,new T("stop"));this.stop();break;case "AdUserAcceptInvitation":this.C?qY(this.b,new T("acceptinvitationlinear")):qY(this.b,new T("acceptinvitation"));break;case "AdUserMinimize":qY(this.b,new T("collapse"));break;case "AdUserClose":EZ(this,"userClose");break;case "AdVideoComplete":EZ(this,"complete");
break;case "AdVideoFirstQuartile":EZ(this,"firstquartile");break;case "AdVideoMidpoint":EZ(this,"midpoint");break;case "AdVideoStart":qY(this.b,new T("start"));break;case "AdVideoThirdQuartile":EZ(this,"thirdquartile");break;case "AdVolumeChange":a=a.volume;a!=this.F&&this.na("volumeChange");0==a&&0!=this.F?(qY(this.b,new T("mute")),this.na("mute")):0==this.F&&0!=a&&qY(this.b,new T("unmute"));this.F=a;this.A.setVolume(a);break;case "Ping":eO(a.url)}};f.mC=function(a){DZ(this,wO,a);this.stop()};
function DZ(a,b,c){var d=SO(b,c),d=KW(d,$(a)),e=IT($(a));gO(e,d);UO(a,b,c)}function EZ(a,b){qY(a.b,new T(b));a.na(b)}f.RC=function(a){switch(a.type){case "timeUpdate":a=this.A.rd();var b=this.A.getCurrentTime();CZ(this,"wrapperCall",{messageType:"timeupdate",duration:a,currentTime:b});break;case "end":FZ(this,"ended");break;case "mediaLoadTimeout":FZ(this,"stalled");break;default:FZ(this,a.type)}};function FZ(a,b){CZ(a,"wrapperCall",{messageType:b})}
function AZ(a){a.T&&a.U&&(BZ(a,"startAd"),a.C||BZ(a,"getAdRemainingTime"))}f.Mx=function(){BZ(this,"stopAd")};function GZ(){}function vX(a){if(!E(a)){var b=a[0],c=aU(b,["402"])&&WO.b;switch(null!=$T(b)&&c?"vpaid":TT(b)&&ST(b,"nonlinear")?"overlay":ST(b,"linear")?"video":ST(b,"nonlinear")?"overlay":null){case "overlay":return TT(b)?new QX(a):new MX(a);case "video":return new yY(a);case "vpaid":return new xZ(a)}}return null};function HZ(){try{return window.top.location.href}catch(a){return window.location.href}};function IZ(a){U.call(this);this.g=a;a=new KQ(new uQ);this.b=new oX(new GZ,a,oQ);this.b.listen("adsManagerLoaded",this.S,!1,this);this.b.listen("adError",this.S,!1,this);this.b.listen("adLoadError",this.S,!1,this)}w(IZ,U);IZ.prototype.J=function(){null!=this.b&&(this.b.Ga("adsManagerLoaded",this.S),this.b.Ga("adError",this.S),this.b.Ga("adLoadError",this.S),this.b=null);IZ.G.J.call(this)};var JZ={VI:0,yE:-1,wH:-2};function KZ(a){this.b=a}f=KZ.prototype;f.Cl=function(){return null};f.Dl=function(){return this.b.C};f.Mf=function(){return this.b.C};f.pj=function(){var a=this.b.j;return null!=a?a:new LP};f.gi=function(){var a=this.b;null!=a.b&&a.b.show()};f.ji=function(){};f.an=function(){return this.b.k};f.cj=function(){return this.b.A};f.hide=function(){};function uX(a,b){T.call(this,"adsManagerLoaded");this.j=a;this.k=b}w(uX,T);function LZ(a){return a?-1!=a.toString().search(/(?:true|1)/i):!1}function MZ(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 NZ(a,b){if(a){var c=MT(a);if(c){var d=NT(a)||[];b.ad_id=ub(d,c).join(",");if(c=HT(a))d=PT(a)||[],b.ad_sys=ub(d,c).join(",");ET(a)&&(b.skip=1)}}}
function OZ(a,b){if(a[b])return LZ(a[b]);var c=b.toLowerCase(),d;for(d in a)if(d&&d.toLowerCase()==c)return LZ(a[d]);return!1}function PZ(a){var b="";a&2&&a&1?b="video":a&2?b="skippablevideo":a&1&&(b="standardvideo");a&4&&(b&&(b+="_"),b+="text_image_flash");return b};function QZ(a,b,c,d){this.k=a;this.o=b;this.b=c;this.A=d}QZ.prototype.j="";QZ.prototype.g="";function RZ(a){SZ(a.b,9,TZ(a))}function TZ(a){var b={};b.l_ns=a.o;b.l_state=a.A;b.sst=a.k;b.sidx=0;a.j&&(b.at=a.j);a.g&&(b.ad_id=a.g);return b};var UZ=!1;function VZ(){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 WZ(){var a=p("window.google_show_companion_ad");ka(a)?a():UZ=!0}function XZ(){var a=p("yt.www.watch.ads.setCompanion");a&&a()}function YZ(a){var b=p("yt.www.watch.ads.showForcedMpu");b&&b(a)}Th("showCompanionAdLoaded",function(){UZ&&(WZ(),UZ=!1)});function ZZ(a,b,c,d){aj.call(this);this.b=a;this.type=b+"_"+c;this.g=d;this.j=null}w(ZZ,aj);ZZ.prototype.A=function(){return this.type};ZZ.prototype.getCurrentAd=function(){return this.g?this.g.getCurrentAd():null};function $Z(a,b,c){this.isSkippable=b;this.skip=c;this.skipTime=5;this.videoId=a};function a_(a){this.b=a}function b_(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 c_(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 d_(a,b){this.b=a;this.k=b}d_.prototype.o=null;d_.prototype.g=NaN;function e_(a,b,c){a.b.H("AD_LOGGING_EVENT",b,c)}function f_(a){g_(a);var b=h_(a);if(a.j){var c=i_(a.k),d=a.j.y-c.top,d=Math.round(a.j.x-c.left)+"x"+Math.round(d);b.ck_xy=d;b.ck_wh=c.width+"x"+c.height}e_(a,15,b)}function j_(a){g_(a);var b=h_(a);if(isNaN(a.g))g_(a);else{var c=v()-a.g;b.ad_stl=c}e_(a,4,b)}function k_(a){g_(a);var b=h_(a),c=a.b.un();c?b.ad_fmt=c:g_(a);e_(a,5,b)}
function l_(a){var b=h_(a),c=a.b.un();c?b.ad_fmt=c:g_(a);e_(a,14,b)}function h_(a){var b={},c=a.b.j,d=a.b.Li(),e=a.b.Dq();NZ(a.b.getCurrentAd(),b);d&&0<d&&(b.ad_len=d);c&&c.videoId?b.ad_v=c.videoId:e&&(c=yi(e),b.ad_dom=c,a.k.ma.o&&(b.ad_v_url=e.substr(0,512)));b.at=a.b.A();return b}function g_(a){a.o||(a.o="InstreamAdDisplay ("+a.b.A()+")")};function m_(a,b,c,d,e){ZZ.call(this,b,a,2,c);this.b.subscribe("onVolumeChange",this.Bp,this);this.b.subscribe("control_toggle_play_pause",this.Cp,this);this.b.subscribe("control_play",this.Jl,this);this.b.subscribe("control_pause",this.Il,this);this.F=d;this.o=new d_(this,this.b);this.k=new Vv(this);this.D=this.B=!1;this.C=0;this.I=e}w(m_,ZZ);m_.b=2E3;f=m_.prototype;f.Lb=null;f.Yf=!1;f.hh=null;f.gh=null;f.ih=null;
f.show=function(){this.o.g=v();var a;if(a=this.F){var b=xi(a),b=b.v||b.video_id;if(!b){var c=Rd(a).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 Jr({video_id:b,dash:"0"}):null}else a=null;this.j=a;var d,e;this.j?(this.j.qe=!0,d={video_id:this.j.videoId},e=new $Z(this.j.videoId,this.I,u(this.fw,this)),this.j.subscribe("onStatusFail",this.np,this),this.j.subscribe("dataloaded",this.pp,this),a=this.b.R(),a=new RK(a.j),a.$=
"adunit",a.yc=!0,a.k=this.type,a=UK(a,this.j),as(this.j,a)):n_(this);this.B||(o_(this.b,-1,d,e),this.dp())};f.fw=function(){this.b.k.j.S("skip")};function p_(a){a.j&&(a.j.ia("onStatusFail",a.np,a),a.j.ia("dataloaded",a.pp,a))}f.pp=function(){p_(this);Ur(this.j);var a=new pM(this.b.R());(a=Hr(this.j.F,rM(a,this.j)))?(a=a.b)?(a=new J(pr(a)),a.b.set("autoplay","1"),this.g.setMediaUrl(a.toString()),n_(this)):q_(this,Error("Failed to determine ad media resource.")):q_(this,Error("Failed to determine ad media format."))};
function n_(a){if(kh||2.2<=Wp&&3>Wp){var b=v()-a.o.g,b=m_.b-b;a.C=L(u(a.Pq,a),Math.max(0,b));O(rt(a.b.b),"ad-interstitial-showing")}else a.Pq()}
f.Pq=function(){r_(this);this.Lb=s_(this.b,!0);this.ih=rt(this.b.b);if(this.b.ma.M)ed(H("video-ad-status-bar"));else{var a=rt(this.b.b);this.hh=H("video-ad-time-left",a);var a=H("html5-ad-progress-list",a),b=Zc("div");O(b,"ytp-ad-progress");a.appendChild(b);this.gh=b;this.k.listen(this.Lb,"timeupdate",this.Az)}pg(this.ih,["ad-showing","ad-interrupting"]);this.k.listen(sH(this.b.g),"mouseup",this.yz);this.k.listen(this.Lb,"waiting",this.dp);this.b.subscribe("onResize",this.km,this);try{this.k.listen(this.g,
"adError",this.xz);this.k.listen(this.g,"click",this.wz);this.k.listen(this.g,"complete",this.om);this.k.listen(this.g,"pause",this.Hq);this.k.listen(this.g,"start",this.Iq);this.k.listen(this.g,"skip",this.zz);this.km();var c=this.b,d=c.g,e=t_(c);d.W.R().Rb&&(Wf(d.b,e),Lf(d.b,0,0));this.g.start()}catch(g){q_(this,g)}};f.Iq=function(){this.Yf=!0;this.B=!1;this.D||(this.D=!0,j_(this.o),u_(this.b,1));uu(this.b,!0);o_(this.b,1);this.H("adPlay",this)};
f.Hq=function(){this.Yf=!1;uu(this.b,!1);o_(this.b,2)};f.zz=function(){l_(this.o);this.om()};f.om=function(){this.B||(k_(this.o),this.Yf=!1,this.B=!0,o_(this.b,0),u_(this.b,0),this.H("adEnd",this))};f.xz=function(a){q_(this,a.j)};function q_(a,b){a.Yf=!1;a.B=!0;o_(a.b,0);a.H("adError",b)}f.np=function(){p_(this);q_(this,Error("Request to get video data failed."))};f.wz=function(){f_(this.o);this.H("select")};f.yz=function(a){a=new F(Jg(a),Kg(a));this.o.j=a};
f.Az=function(a){var b=Gv(this.g.getRemainingTime());this.hh.innerHTML=b;b=this.Li()?this.Lb.getCurrentTime()/this.Li():0;b=Hv(b);this.gh.style.width=b+"%";this.Lb.ended&&L(u(this.om,this,a),50)};f.dp=function(){!this.Yf&&this.D||o_(this.b,3)};
f.J=function(){this.b.ia("control_toggle_play_pause",this.Cp,this);this.b.ia("control_play",this.Jl,this);this.b.ia("control_pause",this.Il,this);this.b.ia("onResize",this.km,this);this.b.ia("onVolumeChange",this.Bp,this);this.k.removeAll();p_(this);this.g.destroy();this.Lb&&(qH(this.b.g),this.Lb=null);r_(this);this.hh&&(this.hh.innerHTML="",this.hh=null);this.gh&&(ed(this.gh),this.gh=null);this.ih&&(qg(this.ih,["ad-showing","ad-interrupting"]),this.ih=null);this.B=!0;m_.G.J.call(this)};
function r_(a){a.C&&(N(a.C),a.C=0,P(rt(a.b.b),"ad-interstitial-showing"))}f.Li=function(){return this.Lb?this.Lb.duration||0:null};f.un=function(){return null};f.Dq=function(){return this.Lb&&this.Lb.currentSrc?this.Lb.currentSrc:null};f.Bp=function(a){a=a.muted?0:a.volume;isNaN(a)||(a=Ib(a/100,0,1),this.g.setVolume(a))};f.Cp=function(){this.Yf?this.Il():this.Jl()};f.Jl=function(){this.Lb&&(this.g.resume(),this.Iq())};f.Il=function(){this.Lb&&(this.g.pause(),this.Hq())};f.km=function(){t_(this.b)};function v_(a,b,c,d){ZZ.call(this,b,a,2,c);this.b.subscribe("control_toggle_play_pause",this.Qo,this);this.b.subscribe("control_play",this.Lk,this);this.b.subscribe("control_pause",this.Kk,this);this.B=new d_(this,this.b);this.k=new Vv(this);this.o=w_(b);this.o.subscribe("statechange",this.Pd,this);this.o.subscribe("internalvideodatachange",this.Po,this);this.C=this.D=!1;this.F=d}w(v_,ZZ);f=v_.prototype;f.fn=!1;f.Gg=null;f.Fg=null;f.Hg=null;
f.show=function(){var a=this.b;x_(a.app,w_(a));this.B.g=v();this.Hg=rt(this.b.b);this.o.subscribe("progresssync",this.Yo,this);if(this.b.ma.M)ed(H("video-ad-status-bar"));else{a=rt(this.b.b);this.Gg=H("video-ad-time-left",a);var a=H("html5-ad-progress-list",a),b=Zc("div");O(b,"ytp-ad-progress");a.appendChild(b);this.Fg=b}pg(this.Hg,["ad-showing","ad-interrupting"]);this.b.subscribe("onResize",this.Sk,this);try{this.k.listen(this.g,"adError",this.by),this.k.listen(this.g,"click",this.ay),this.k.listen(this.g,
"complete",this.Zx),this.k.listen(this.g,"engagedview",this.$x),this.k.listen(this.g,"pause",this.lq),this.k.listen(this.g,"start",this.mq),this.k.listen(this.g,"skip",this.ey),this.Sk(),this.g.start()}catch(c){y_(this,c)}};f.Po=function(a,b,c){"newdata"==a&&this.j!=c&&(a={video_id:c.videoId},b=new $Z(c.videoId,this.F,u(this.g.skip,this.g)),o_(this.b,-1,a,b));this.j=c};f.Pd=function(a){a=a.state;W(a,128)&&y_(this,Error(a.b.message||"Video player error."))};
f.mq=function(){this.fn=!0;this.C=!1;this.D||(this.D=!0,j_(this.B),u_(this.b,1));o_(this.b,1);this.H("adPlay",this)};f.lq=function(){this.fn=!1;o_(this.b,2)};f.Zx=function(){k_(this.B);z_(this)};function z_(a){var b=new LN;b.j=a.C;b.g=v();a.j&&a.j.Da&&(b.b=a.j.Da);vN(w_(a.b));o_(a.b,0,b);u_(a.b,0);a.H("adEnd",a)}f.$x=function(){var a=this.B;a.b.H("AD_LOGGING_EVENT",777,h_(a))};f.ey=function(){this.C=!0;l_(this.B);z_(this)};
f.by=function(a){var b={};b.error_code=a.j.getErrorCode();var c=this.B;g_(c);var d=h_(c);b&&sa(d,b);d.ad_error=32;e_(c,7,d);y_(this,a.j)};function y_(a,b){a.o.rg();o_(a.b,0);a.H("adError",b)}f.ay=function(){f_(this.B);this.g.pause();this.H("select")};f.Yo=function(){var a=this.b.b.Mg();this.b.ma.M||(this.Gg.innerHTML=Gv(a.duration-a.current),a=Hv(a.current/a.duration),this.Fg.style.width=a+"%")};
f.J=function(){this.b.ia("control_toggle_play_pause",this.Qo,this);this.b.ia("control_play",this.Lk,this);this.b.ia("control_pause",this.Kk,this);this.b.ia("onResize",this.Sk,this);this.k.removeAll();this.o.subscribe("statechange",this.Pd,this);this.o.ia("internalvideodatachange",this.Po,this);this.o.ia("progresssync",this.Yo,this);var a=this.b;if(a.j){var b=a.app,a=a.j;A_(b);a!=b.j&&x_(b,b.j)}this.g.destroy();this.Gg&&(this.Gg.innerHTML="",this.Gg=null);this.Fg&&(ed(this.Fg),this.Fg=null);this.Hg&&
(qg(this.Hg,["ad-showing","ad-interrupting"]),this.Hg=null);this.C=!1;v_.G.J.call(this)};f.Li=function(){return this.o.Sd()};f.un=function(){return this.j&&this.j.b?this.j.b.mimeType:null};f.Dq=function(){return this.j&&this.j.P?pr(this.j.P.b):null};f.Qo=function(){this.fn?this.Kk():this.Lk()};f.Lk=function(){this.g.resume();this.mq()};f.Kk=function(){this.g.pause();this.lq()};f.Sk=function(){Wf(pH(this.b.g),t_(this.b))};function B_(a,b){this.g=a;this.b=b}function C_(a,b,c){a.g.H("AD_LOGGING_EVENT",b,c)}function D_(a){var b={};NZ(a.g.getCurrentAd(),b);a.o&&a.k&&(b.ot=a.k-a.o);var c;c=a.b.isFullscreen()?2:a.b.R().qd?1:0;b.ad_ps=c;b.at=a.g.A();return b};function E_(a,b,c){ZZ.call(this,b,a,1,c);this.o=new B_(this,b);this.k=new Vv(this)}w(E_,ZZ);f=E_.prototype;f.Dd=null;f.fm=!1;
f.show=function(){if(!this.fm||!F_(this.b)){var a=rt(this.b.b);O(a,"ad-showing");this.Dd=pH(this.b.g);a=this.g.getCurrentAd().getHeight();this.Dd.style.height=Mf(a,!0);O(this.Dd,"ad-overlay");this.k.listen(this.Dd,"mouseup",this.az);try{this.k.listen(this.g,"userClose",this.bz);this.k.listen(this.g,"click",this.$y);this.k.listen(this.g,"adError",this.Zy);G_(this,"normal");this.g.start();var b=this.o;b.o=v();var c=D_(b);C_(b,3,c);this.b.subscribe("onResize",this.gm,this);this.b.subscribe("onStateChange",
this.nq,this);this.H("adEnd",this)}catch(d){this.H("adError",d)}}};f.J=function(){this.k.removeAll();this.b.ia("onResize",this.gm,this);this.b.ia("onStateChange",this.nq,this);var a=rt(this.b.b);P(a,"ad-showing");this.g&&(this.g.destroy(),this.g=null);this.Dd&&P(this.Dd,"ad-overlay");this.Dd=null;this.fm=!1;E_.G.J.call(this)};f.bz=function(){this.Dd&&this.g&&this.g.getCurrentAd()&&(this.Dd.style.height=Mf(0,!0));this.fm=!0;var a=this.o;a.k=v();var b=D_(a);C_(a,6,b)};
f.$y=function(){this.b.pauseVideo();var a=this.o;a.k=v();var b=D_(a);if(a.j){var c=i_(a.b),d=a.j.y-c.top,d=Math.round(a.j.x-c.left)+"x"+Math.round(d);b.ck_xy=d;b.ck_wh=c.width+"x"+c.height}C_(a,100,b)};f.az=function(a){this.o.j=a.target==a.currentTarget?null:new F(a.pageX,a.pageY)};f.Zy=function(a){this.H("adError",a.j)};f.nq=function(a){W(a.state,16)&&G_(this,"normal")};function G_(a,b){a.B!=b&&(a.B=b)}f.gm=function(){};function H_(a,b,c,d){this.I=a;this.b=b.g;this.B=b;this.M=b.getId();this.ga=c;this.j=d;this.k=new QZ(this.b,this.Ce(),c,d);this.o=null;this.F=new Tk(this);this.g=new Tk(this)}w(H_,Ih);H_.b="rm";H_.g=10;H_.A=200;H_.k=200;H_.o=190;H_.j=100;f=H_.prototype;f.Kl=null;f.load=function(){var a;a=this.ga;a=a.ma.o?t_(a):a.app.g.j.Vc();var b;this.ga.ma.b?b=!1:(b=0<(this.j&3)?H_.o:H_.k,b=a.width<H_.A||a.height<b);if(b){b=this.k;var c=TZ(b);c.ck_wh=a.width+"x"+a.height;I_(b.b,14,c);XZ();this.Fe(Error("The player size is too small."))}else J_(this)};
f.hn=function(){var a=new jP;a.baseYouTubeUrl=this.ga.R().tb;a.contentId=et(this.ga.app).videoId;a.wk=nH(this.ga.R(),"927622");a.useShareButton=!0;a.useStyledNonLinearAds=!0;a.useVideoAdUi=this.ga.ma.M;a.youTubeAdNamespace=this.Ce();a.showContentThumbnail=this.ga.ma.ro;a.wn=this.ga.ma.Wj;return a};f.Ce=function(){return this.I};function K_(a){var b=H_.g;a.b=b;a.k.k=b}function L_(a,b){a.Kl=b;a.k.j=b.A()}function M_(a,b){var c=p("yt.www.watch.ads.setAdId");c&&c(b);a.k.g=b}
function N_(a){a=a.b;return 0==a||-1==a?a:1E3*a}
function J_(a){a.o=a.ga.vk;if(a.o){RZ(a.k);var b=new mW;b.adTagUrl=a.ag();var c=a.ga.ma.gf;c&&(b.adsResponse=c);c=t_(a.ga);b.linearAdSlotWidth=c.width;b.linearAdSlotHeight=c.height;b.nonLinearAdSlotWidth=c.width;b.nonLinearAdSlotHeight=H_.j;if(c=ZK(a.ga.R()))b.lastActivity=c;a.ga.ma.xb&&(b.tagForChildDirectedContent=!0);nH(a.ga.R(),"937420")&&(b.Si=!0);var c=et(a.ga.app),d=a.ga;b.Ug={"[CONTENT_V]":c.videoId,"[CPN]":c.Da,"[LACT]":{toString:function(){return null==d||d.fa()?d=null:ZK(d.R()).toString()}}};
a.o.listen("adsManagerLoaded",a.lr,!1,a);a.o.listen("adError",a.kr,!1,a);a.Cj(a.o,b)}}
f.lr=function(a){if(a.k===this){vq("aml");try{var b=this.hn(),c=a.j}catch(d){this.ce(d);return}this.g.listen(c,"companionBackfill",u(this.wB,this,c));this.g.listen(c,"loaded",u(this.yB,this,c));this.g.listen(c,"adError",u(this.xB,this,c));this.g.listen(c,"allAdsCompleted",ca);this.g.listen(c,"contentPauseRequested",ca);this.g.listen(c,"contentResumeRequested",ca);a.j.Zc(new KZ(this.ga.k),{},b);c=a.j;try{c.init("normal")}catch(e){c.destroy(),this.ce(e)}}};
f.yB=function(a,b){this.g.removeAll();var c=b.getAd(),d=CT(c),e=this.k,g=TZ(e);g.ad_man=d?"instream":"overlay";SZ(e.b,12,g);e=a.getMediaUrl();switch(d?this.lh(a,c,e):this.Se(a,c)){case 0:O_(this.B,this.Kl,this.b);break;case 1:a.destroy();this.Fe(Error("Unable to create a display state."));break;case 2:c=this.k;I_(c.b,21,TZ(c));a.destroy();this.Fe(Error("Fallback to next ad."));break;default:a.destroy()}};f.xB=function(a,b){this.g.removeAll();a.destroy();this.ce(b.j)};
f.kr=function(a){var b=a.j;"adLoadError"==b.j&&a.k===this&&this.ce(b)};f.wB=function(){WZ()};f.lh=function(a,b,c){M_(this,MT(b));var d;this.ga.ma.T?d=new v_(this.Ce(),this.ga,a,ET(b)):d=new m_(this.Ce(),this.ga,a,c,ET(b));L_(this,d);return 0};f.Se=function(a,b){M_(this,MT(b));L_(this,new E_(this.Ce(),this.ga,a));return 0};f.ce=function(a){if(a){var b=this.k,c=TZ(b);a&&MZ(a,c);I_(b.b,32,c);this.Fe(a)}};f.Fe=function(){P_(this.B)};
f.J=function(){this.o&&(this.o.Ga("adsManagerLoaded",this.lr,!1,this),this.o.Ga("adError",this.kr,!1,this));this.F.removeAll();this.g.removeAll();H_.G.J.call(this)};f.Cj=function(a,b){try{b.location=HZ(),b.nh=a.g.A,pX(a.b,b,this),vq("ra")}catch(c){this.ce(c)}};function Q_(a,b){this.b=a;this.g=b};function R_(a){ZZ.call(this,a,2,3,null);this.k=this.o=0}w(R_,ZZ);R_.prototype.show=function(){var a=p("yt.www.watch.ads.loadAfc");a&&a();this.H("adEnd",this);this.o=Ue(u(this.B,this),1E3)};R_.prototype.J=function(){S_(this);R_.G.J.call(this)};function S_(a){a.o&&(Ve(a.o),a.k=0)}R_.prototype.B=function(){var a=p("yt.www.watch.ads.isAfcAdVisible");this.k++;var b={};b.at=this.A();10<=this.k||!a?(S_(this),this.H("AD_LOGGING_EVENT",2,b)):a()&&(S_(this),this.H("AD_LOGGING_EVENT",3,b))};function T_(a,b,c){H_.call(this,2,a,b,c);this.A=new Q_(this.ga.ma,this.ga.R());VZ()}w(T_,H_);T_.prototype.hn=function(){var a=T_.G.hn.call(this);a.Ks=0==this.M;a.$C=F_(this.ga)?a.Ks:!0;return a};
T_.prototype.ag=function(){var a=this.A,b=this.j,c=N_(this),d={},e;if(a.b.Op&&(e=4==b&&a.b.pa?a.b.pa:a.b.pf)){0==e.lastIndexOf("http:",0)&&(e=e.substr(5));dc(d,xi(e));var g=e.indexOf("?");-1!=g&&(e=e.substring(0,g+1))}e||(e="//googleads.g.doubleclick.net/pagead/ads?",d.eid=a.b.ka,d.scs=a.b.Yj,d.client=a.b.$j,d.description_url=a.b.wa,d.loeid=a.b.Zj,d.cust_gender=a.b.lf,d.host=a.b.host,d.hl=a.g.A,d.max_ad_duration=a.b.pd,a.b.nf&&(d.adtest="on"),isNaN(a.b.rb)||(d.cust_age=a.b.rb),isNaN(a.b.Ca)||(d.hostTierId=
a.b.Ca),a.b.hb&&(d.yt_pt=a.b.hb),a.b.bc&&(d.video_cpm=a.b.bc),a.b.L&&(d.as_dbp=a.b.L),d.ytdevice=a.b.nb,d.ad_type=PZ(b),0<(b&3)?a.b.Uc&&(d.channel=a.b.Uc.join("+")):b&4&&a.b.ib&&(d.channel=a.b.ib.join("+")),a.b.cb&&(d.lsv=1),a.b.xb&&(d.tfcd=1));d.videoad_start_delay=c;d.url="embedded"==a.g.$&&a.g.g?a.g.g:a.b.wa;var a=d,b={},h;for(h in a)ga.call(void 0,a[h])&&(b[h]=a[h]);return e+vi(b,"&")};
T_.prototype.Se=function(a,b){if(this.ga.ma.b)return 1;0==this.b&&(K_(this),SZ(this.ga,1));return T_.G.Se.call(this,a,b)};T_.prototype.Fe=function(a){var b=this.ga.ma;b.b?T_.G.Fe.call(this,a):b.Fa||this.j&4?(L_(this,new R_(this.ga)),O_(this.B,this.Kl,this.b)):T_.G.Fe.call(this,a)};function U_(a,b){if(a){this.Ys=a;this.Ts=b;var c,d=this.Ys,e=d.indexOf(";sz=");c=ui(d.substring(e),";");d=d.substring(0,e).split("pfadx");if(c=2!=d.length?null:{ID:d[0],JD:d[1],KD:c})this.Ss=c.ID,this.Us=c.JD,this.Vs=c.KD}}f=U_.prototype;f.Ys="";f.Ss="";f.Ts=!1;f.Mn="";f.Us="";f.Vs=null;
f.vj=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=bc(this.Vs);c&&(k.pos=c);h&&(k.tile=h.toString());g&&(k.kmyd=g);e&&0<e.length&&this.Ts&&(k.ciu_szs=e.join(","));k.dcmt="text/xml";this.Mn||(this.Mn=Math.floor(999999999*Math.random()).toString());
k.ord=this.Mn;d&&d.length&&"sz"in k&&delete k.sz;e=vi(k,";");d&&d.length&&(e="sz="+d.join(",")+";"+e);return[this.Ss,"pfadx",this.Us,";",e,"?"].join("")};function V_(a){this.b=a?a:""}V_.prototype.vj=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 J(this.b),g=e.b,h=g.get("scp",""),c=(h?h+"&":"")+("pos="+c);g.set("scp",c);g.set("vpos",d);return e.toString()}return this.b};function W_(a,b){E_.call(this,1,a,b)}w(W_,E_);W_.prototype.gm=function(){};W_.prototype.A=function(){return"1_3"};function X_(a,b,c){H_.call(this,1,a,b,c);a=this.ga.ma;this.L=a.ii?new V_(a.la):new U_(a.la,a.Ba)}w(X_,H_);X_.prototype.ag=function(){return this.L.vj(this.b,this.j)};
X_.prototype.Se=function(a,b){M_(this,MT(b));var c=null!=b.g?b.g.L:{};if(OZ(c,H_.b))return 1==this.j||F_(this.ga)||XZ(),a.sendImpressionUrls(),this.ga.ma.uk?(L_(this,new R_(this.ga)),0):2;if(OZ(c,"blockAllAds"))return a.sendImpressionUrls(),L_(this,new W_(this.ga,a)),0;if(OZ(c,"hideMaster"))return L_(this,new W_(this.ga,a)),0;if(this.ga.ma.b)return 1;L_(this,new E_(this.Ce(),this.ga,a));return 0};function Y_(a,b,c,d){X_.call(this,a,b,c|d);this.D=c;this.C=d;this.A=null;VZ()}w(Y_,X_);var Z_={GDFP:1,DART:1,DART_DFP:1,DART_DFA:1,ADSENSE:2,"ADSENSE/ADX":2};f=Y_.prototype;f.ag=function(){if(this.ga.ma.ii){var a=new V_(this.ga.ma.N);return a.vj(this.b,this.D)}a=new U_(this.ga.ma.N,this.ga.ma.Ba);return a.vj(this.b,this.D)};f.Cj=function(a,b){if(this.C){b.youTubeAdType=PZ(this.C);var c=this.ga.ma.ka;c&&(b.youTubeExperimentIds=c);b.youTubeVideoAdStartDelay=N_(this)}Y_.G.Cj.call(this,a,b)};
f.lh=function(a,b,c){$_(this,a);return 1!=this.A&&2!=this.A?1:Y_.G.lh.call(this,a,b,c)};f.Se=function(a,b){$_(this,a);switch(this.A){case 1:return Y_.G.Se.call(this,a,b);case 2:var c;this.ga.ma.b?c=1:(0==this.b&&(K_(this),SZ(this.ga,1)),M_(this,MT(b)),L_(this,new E_(2,this.ga,a)),c=0);return c;default:return 1}};f.Ce=function(){return this.A||0};function $_(a,b){var c=PT(b.getCurrentAd()),c=E(c)?HT(b.getCurrentAd()):c[0],c=Z_[c.toUpperCase()];a.A=c?c:0};function a0(a,b){var c=b.ma;this.A=c.mf;var d=0,c=c.of.toUpperCase();"INVIDEO"==c?d=4:"INSTREAM"==c?d=1:"MPU"==c&&(d=8);H_.call(this,2,a,b,d)}w(a0,H_);a0.g="https://www.googleapis.com/urlshortener/v1/url?key=AIzaSyBbSB-E7SYd1iggX6r2b5C7ljvO6fVqaj0&shortUrl=";a0.j="43";
a0.b=function(a){var b=new $u;Hi(a,{format:"RAW",method:"GET",timeout:5E3,kh:function(){b.dh(Error(a+" timed out"))},onError:function(c){b.dh(Error("Problem loading "+a+" with status code "+c.status))},onSuccess:function(a){b.Qs(a)}});return b};a0.prototype.ag=function(){return""};
a0.prototype.Cj=function(a,b){var c=this.j;c&1||c&4||c&8?this.A?c&8?YZ(this.A):("goo.gl"==yi(this.A)?(c=a0.b(a0.g+this.A),fv(c,function(a){a=of(a.responseText);if(!a)throw Error("Invalid expanded forced ad URL.");if(!a.longUrl)throw Error("Missing forced ad URL information.");a=new J(a.longUrl);K(a,"video_format",a0.j);return a0.b(a.toString())},this)):c=a0.b(this.A),fv(c,function(c){b.adsResponse=c.responseText;b.location=HZ();b.nh=a.g.A;pX(a.b,b,this)},this),gv(c,null,this.ce,this)):this.ce(Error("Invalid empty URL")):
this.ce(Error("Invalid request type: "+c))};function b0(a,b,c,d){this.b=a;this.g=d;this.k=b;this.j=kh||lh?"html5_ios":mh?"html5_android":mr()?"html5_ps3":"leanback"==c?"html5_tv_leanback":"html5_desktop"};function c0(a,b,c){H_.call(this,4,a,b,c);this.A=new b0(this.ga.ma,et(this.ga.app).Oa,this.ga.R().$,c)}w(c0,H_);
c0.prototype.ag=function(){var a;var b=this.A;if(b.b.aa&&b.b.ac){var c="youtube_watch_"+b.j;a={nw:"10613"};a.asnw=b.b.aa;a.ssnw=b.b.aa;a.caid=b.b.ac;a.prof="10613:10613_youtube_html5_2014";a.vdur=b.k;a.csid=c;a.resp="vast2";a.crtp="youtube";a.flag="+slcb+qtcb+amcb+exvt";c={};isNaN(b.b.xa)||(c._fw_d_001=b.b.xa);b.b.za&&(c._fw_d_002=b.b.za);b.b.gb&&(c["_fwu:10613:lang"]=b.b.gb);b.b.L&&(c._fw_dbp=b.b.L);c._fw_yt_type=b.b.A?"short":"long";var d="";b.g&1?(b={ptgt:"a",slid:"preroll",slau:"yt_html5_pre",
tpos:"0"},d=vi(b,"&"),b={slid:"page_display1",w:"300",h:"60",ptgt:"s",slau:"yt_html5_dis1",flag:"+cmpn"},d=d+";"+vi(b,"&")):b.g&4?(b={ptgt:"a",slid:"overlay",slau:"yt_html5_overlay",tpos:"10"},d=vi(b,"&"),b={slid:"page_display2",w:"300",h:"250",ptgt:"s",slau:"yt_html5_dis2",flag:"+cmpn"},d=d+";"+vi(b,"&")):b.g&8&&(b={ptgt:"s",slid:"dis",slau:"yt_html5_dis_standalone",w:"300",h:"250"},d=vi(b,"&"));b=d;a="//2975c.v.fwmrm.net/ad/g/1?"+vi(a,"&")+";"+vi(c,"&")+";"+b}else a="";return a};
c0.prototype.lh=function(a,b){return 0!=this.b?1:c0.G.lh.call(this,a,b,null)};c0.prototype.Se=function(a,b){return OZ(null!=b.g?b.g.L:{},H_.b)?(this.B.k=a,2):1};function d0(a,b,c){H_.call(this,13,a,b,c)}w(d0,H_);var e0=[{cn:4,size:"480x70",Jr:"300x250"},{cn:1,size:"480x360",Jr:"300x60"}];
d0.prototype.ag=function(){var a=new J(this.ga.ma.Ld,!0),b=this.j,c=e0.filter(function(a){return(b&a.cn)==a.cn}),d=c.map(function(a){return a.size}).join("|");K(a,"sz",d);c=c.map(function(a){return a.Jr}).join(",");K(a,"ciu_szs",c);c=4==(this.j&4);1==(this.j&1)?(c||K(a,"vad_type","linear"),c="midroll",0==this.b?c="preroll":-1==this.b&&(c="postroll"),K(a,"vpos",c)):c&&K(a,"vad_type","nonlinear");return a.toString()};function f0(a,b,c){this.j=a;this.b=b;this.g=c||0}f0.prototype.create=function(a,b){switch(this.j){case 1:return new T_(a,b,this.b);case 2:return new X_(a,b,this.b);case 3:return new Y_(a,b,this.b,this.g);case 5:return new c0(a,b,this.b);case 4:return new a0(a,b);case 6:return new d0(a,b,this.b);default:return null}};function g0(a){return 0<((a.b|a.g)&3)};function h0(a,b,c,d){aj.call(this);this.ta=b;this.j=a;this.g=c;this.o=d;this.k=this.b=null}w(h0,aj);f=h0.prototype;f.Rl=!0;f.Ae=!1;f.isVisible=!0;f.Ne="unloaded";f.Pm=!1;function i0(a){return 0==a.g?j0(a)&&k0(a)?-2147483648:0:-1==a.g||-2==a.g?2147483647:1E3*a.g}function j0(a){return"loaded"==a.Ne||"error"==a.Ne}function k0(a){if(!j0(a))throw Error("Preroll status is undefined before ad load.");return 0==a.g&&a.Ae}
function P_(a){a.Ne="loading";0==a.g&&!jb(a.o,g0)&&ju(a.j);var b=a.o.shift();b?(0==a.g&&l0(a.j,"nl"),b=b.create(a,a.j),S(a,b),b.load()):(SZ(a.j,2,m0(a,{})),n0(a,!1),a.Ne="error",o0(a))}f.getId=function(){return this.ta};function p0(a){a.b&&(a.b.ia("adEnd",a.Lr,a),a.b.ia("adError",a.Mr,a),a.b.ia("AD_LOGGING_EVENT",a.Nr,a),a.b.ia("select",a.Kr,a))}
function O_(a,b,c){a.b=b;a.g=c;S(a,a.b);0==a.ta&&(a.j.A.at=a.b.A());a.b instanceof m_||a.b instanceof v_?a.Ae=!0:a.b instanceof R_?a.isVisible=!1:a.b instanceof W_&&(a.isVisible=!1);a.Ne="loaded";o0(a)}function o0(a){a.H("adBreakComplete",a)}
f.show=function(){this.Pm?this.b instanceof E_&&G_(this.b,"normal"):(this.Pm=!0,(this.b instanceof m_||this.b instanceof v_)&&l0(this.j,"bs"),this.b.subscribe("adEnd",this.Lr,this),this.b.subscribe("adError",this.Mr,this),this.b.subscribe("AD_LOGGING_EVENT",this.Nr,this),this.b.subscribe("select",this.Kr,this),this.b.show(),n0(this,!0))};function n0(a,b){a.k&&(a.k.sendImpressionUrls({"[FILLED_OPPORTUNITY]":b?1:0}),a.k=null)}
f.Lr=function(){if(this.Ae){p0(this);var a=this.j;if(a.ma.Uj&&!a.yk){var b=a.R().tb;mf(b+"mac_204?action_fcts=1");gj("CLAD","tlip="+v());a.yk=!0}}o0(this)};f.Mr=function(a){if(a){var b={};MZ(a,b);m0(this,b);I_(this.j,32,b)}p0(this);o0(this)};f.Nr=function(a,b){m0(this,b);SZ(this.j,a,b)};f.Kr=function(){this.Rl=!1};function m0(a,b){b.sst=a.g;b.sidx=0}f.J=function(){p0(this);this.k=this.b=null;h0.G.J.call(this)};function q0(a){this.Fu=a}function r0(a){try{var b=SC(a).getElementsByTagName("AdBreak"),c=A(b,function(a){a=a.getAttribute("time");return $a(a)});return new q0(c)}catch(d){return new q0([0])}};function s0(a){this.b=a};function t0(a,b){this.P=a;this.Ia=this.P.Pb;this.o="leanback"==this.P.$;this.b=this.Ia||this.o;var c=nH(a,"927619"),c=this.o&&c,d=this.Ia&&nH(this.P,"947202");this.M=!this.b||d;this.T=a.Rb&&(!this.b||c)||d;this.Op=nH(a,"906369");this.apply(b)}var u0={wE:"m",rE:"f"};f=t0.prototype;
f.apply=function(a){var b=LZ(a.instream),c=LZ(a.trueview),d=LZ(a.aftv);this.da=a.ad_slots;this.ca=a.ad_breaks;this.jf=a.ad_flags||0;this.rb=parseInt(a.cust_age,10);this.ka=a.cafe_experiment_id;var e=parseInt(a.cust_gender,10);isNaN(e)||(this.lf=e);this.la=a.ad_tag;this.nf=!!a.adtest;this.pf=a.afv_ad_tag;this.pa=a.afv_invideo_ad_tag;this.xa=parseInt(a.ad_age,10);this.hf=a.cid;this.wa=a.ad_eurl;this.N=a.dynamic_allocation_ad_tag;this.V=a.excluded_ads;this.of=a.force_ad_type;this.mf=a.force_ad_url;this.za=
Vb(u0,function(b){return b==a.ad_gender});this.L=a.dbp;this.uk=LZ(a.afc_rm_fallback);this.Ba=!!a.mpu;this.host=a.ad_host;this.Ca=parseInt(a.ad_host_tier,10);this.C=LZ(a.afv)&&!this.b;this.j=d&&c;this.k=d&&b&&!LZ(a.no_afv_instream);this.D=LZ(a.dclk);this.ii=LZ(a.gpt_migration);this.cb=1==a.livestream;this.Wa=LZ(a.forced_ad)&&!this.b;this.O=1==parseInt(a.tpas_ad_type_id,10);this.Nh=!!a.fqsf;this.g=b;this.F=LZ(a.invideo)&&!this.b;this.U=LZ(a.mpu)&&!this.b;this.Uj=LZ(a.shortform);this.A=LZ(a.sffb);this.Qh=
LZ(a.xfp);this.Ld=a.xfp_tag;this.Yj="1"==a.as_launched_in_country;this.Qn=!this.b&&!this.O;this.I=c;b=a.ad_channel_code_instream;this.Uc=s(b)?b.split(","):[];this.gb=a.ad_language_iso639_2;this.Zj=a.loeid;b=parseInt(a.max_dynamic_allocation_ad_tag_length,10);isNaN(b)&&(b=2E3);this.bk=b;b=parseInt(a.afv_instream_max,10);isNaN(b)&&(b=15E3);this.pd=b;this.B=parseInt(a.midroll_freqcap,10);isNaN(this.B)&&(this.B=-1);b=a.ad_channel_code_overlay;this.ib=s(b)?b.split(","):[];this.hb=a.yt_pt;this.$j=a.ad_video_pub_id;
"boolean"==typeof a.show_content_thumbnail&&(this.ro=a.show_content_thumbnail);this.xb=LZ(a.tag_for_child_directed);this.gf=a.server_prefetched_vast;this.Wj=a.surveyCreativeData;this.bc=parseInt(a.afv_video_min_cpm,10);this.Fa=d&&this.A&&!this.C;this.kf=this.C||this.Fa;this.nb=parseInt(a.ad_device,10);this.ac=a.tpas_video_id;this.aa=a.tpas_partner_id;this.Ra=v0(this)};
function v0(a){if(x(a.N)||!a.T)return!1;var b=(a.g||a.I)&&a.D;a.A&&a.D&&(b=b||a.F||a.U);if(!b)return!1;b=a.j||a.k;if(!(b||a.A&&a.C))return!1;var c=a.N.length+330+(a.ii?25:102);window.document.referrer&&(c+=Ba("ref="+window.document.referrer).length);b||(c+=41);return c<=a.bk}f.Qn=!0;f.uk=!1;f.ii=!1;f.Qh=!1;f.ro=!0;f.Op=!1;function w0(a,b,c){this.b=a;this.A=b;this.j=c;this.o=this.g=-1;this.j&&0<this.b.ma.B&&this.b.subscribe("endseeking",this.k,this)}w(w0,Ih);function x0(a,b){y0(a);0<b&&(a.o=L(u(a.k,a),1E3*b))}function y0(a){-1!=a.o&&(N(a.o),a.o=-1)}
w0.prototype.k=function(){var a=this.b.ma.B;if(this.j&&!(0>=a)){var b=this.b.b.getCurrentTime(),c=[],d=null,e=Number.MAX_VALUE;Nb(this.A.o,function(a){if(a.isVisible&&!(0>=z0(this,a))){var g;g=a.getId();g=this.A.k[g];if(z0(this,a)>b){var l=!A0(this,a);l!=g.Vd&&(g.Vd=l,c.push(g));l||(g=z0(this,a)-b,g<e&&(e=g,d=a))}else g.Vd||(g.Vd=!0,c.push(g))}},this);0<c.length&&B0(this.b,c);if(d){var g=0;0<this.g&&(g=v()/1E3-this.g);x0(this,a-g-e+2)}else y0(this)}};
function A0(a,b){if(!a.j||!(0<b.g)&&-1!=b.g)return!1;var c=a.b.ma.B;if(0>=c||0>=a.g)return!1;var d=v()/1E3,e=z0(a,b)-a.b.b.getCurrentTime();0<e&&(d+=e);return d-a.g<=c}function z0(a,b){return-1==b.g?a.b.b.getVideoData().Oa:b.g}w0.prototype.J=function(){y0(this)};function C0(a,b){this.g=b;this.j=[];this.o={};this.k={};this.b=a;var c=!a.ma.cb&&jb(this.g,function(a){return 0<a.g||-1==a.g});this.A=new w0(this.b,this,c)}w(C0,Ih);f=C0.prototype;f.zd=null;function D0(a){a.j.length||(a.j=hb(a.g,function(a){return"unloaded"==a.Ne}),0==a.j.length?ju(a.b):(null===B(a.j,function(a){return 0==a.g})&&ju(a.b),E0(a)))}function E0(a){if(a.j.length){var b=a.j.shift();b.subscribe("adBreakComplete",a.mn,a);P_(b)}}
f.mn=function(a){a.ia("adBreakComplete",this.mn,this);L(u(this.rD,this,a),0)};f.rD=function(a){var b=fb(this.g,a),c=this.g[b+1],b=this.g[b-1],d=2147483646;-2==a.g||-1==a.g?d=2147483647:c&&2147483647!=c.g&&(d=i0(c)-1);0==a.ta&&(l0(this.b,"bl"),k0(a)||l0(this.b,"fb"));if(c="loaded"!=a.Ne||0==a.ta&&k0(a)&&c&&this.b.b.getCurrentTime()>c.g){if(b&&j0(b)){var e=i0(b);e>d&&(d=e);F0(this,b);G0(this,b,d)}}else this.o[a.getId()]=a,G0(this,a,d);ju(this.b);c&&this.xg(a);Qb(this.o)==this.g.length&&this.A.k();E0(this)};
function G0(a,b,c){var d=i0(b);if(!isNaN(d)){var e={};e.priority=-2!=b.g?2:3;e.id=String(b.getId());e.visible=b.isVisible;c=new Yt(d,c,e);a.k[b.getId()]=c;a.b.Gf(c)}}function F0(a,b){a.k[b.getId()]&&(a.b.vB(a.k[b.getId()]),delete a.k[b.getId()])}f.xg=function(a){a.ia("adBreakComplete",this.mn,this);this.zd&&a==this.zd&&(this.zd=null);F0(this,a);rb(this.g,a);delete this.o[a.getId()];Kh(a)};
f.Zz=function(a){if(a.Ae){if(-1!=a.g&&a.Rl){var b=this.b;H0(b);tu(b)}else k0(a)&&!a.Rl?(b=this.b,H0(b),tu(b)):(H0(this.b),uu(this.b,!1));this.xg(a)}else a.isVisible||this.xg(a);a=this.A;a.j&&0<a.b.ma.B&&(a.g=v()/1E3,a.k())};f.J=function(){Kh(this.A);z(this.g,this.xg,this);C0.G.J.call(this)};function I0(a,b){this.B=a;this.W=b;this.C=v();this.b=a.ma;this.k={};this.A=new a_(a);var c=[];this.b.O&&this.b.g&&c.push("4_2");this.b.Qh&&(this.b.g&&c.push("13_2"),this.b.F&&c.push("13_1"));this.b.D&&(this.b.g&&c.push("1_2"),this.b.I&&c.push("1_2_1"),this.b.F&&c.push("1_1"),this.b.U&&c.push("1_3"));this.b.j&&c.push("2_2_1");this.b.k&&c.push("2_2");this.b.C&&c.push("2_1");(this.b.kf||this.b.uk)&&c.push("2_3");this.j=c.join(",");this.g="";this.k.allowed=this.j;(c=this.b.V)&&(this.k.ex_ads=c)}
I0.prototype.o=0;function J0(a){JK.call(this,a);WO.g=!0;WO.b=!0;WO.o="osd-id";WO.k=!0;this.k=null;this.B={};this.A={at:"0"};this.g=new oH(0,this.b);qt(this.b,this.g.K());this.j=null;this.o=-1}w(J0,JK);f=J0.prototype;f.ua="ad";f.hc="ad";f.ve=null;f.jc=null;f.ma=null;f.yk=!1;f.zl=!1;f.vk=null;J0.Ja=function(a){return!!a.Eb.getVideoData().ga};f=J0.prototype;f.Ja=function(){return J0.Ja(this.app)};
f.create=function(){J0.G.create.call(this);l0(this,"i");this.ma=new t0(this.R(),this.b.getVideoData().k||{});this.ve=new I0(this,this.b);this.yk=!1;t:if(!this.vk){var a=this.ma.M?void 0:sH(this.g);if(this.ma.T){var b=new IK(this.app,2),c=pH(this.g);b.j||(b.j=ac(b.k),b.j.addEventListener=u(b.Du,b),b.j.removeEventListener=u(b.Eu,b));this.k=new hQ(c,void 0,a,b.j)}else{b=s_(this,!1);if(!b)break t;this.k=new hQ(pH(this.g),b,a,void 0)}a=this.k;b=a.g;null!=b&&(b.style.right=0,b.style.left=0,b.style.bottom=
0,b.style.top=0);null!=a.o&&(a=a.o,a.fb.width="100%",a.fb.height="100%");this.vk=new IZ(this.k)}a=new s0(this);t:{b=[];try{var d=a.b.ma,e;if(d.Qn){var g;if(d.ca)g=r0(d.ca);else{var h;if(d.da){var k=A(d.da.split(","),$a);h=new q0(k)}else h=new q0([0]);g=h}e=g}else e=new q0([0]);for(var l=e.Fu,d=0;d<l.length;d++){var q=a.b;e=d;var r=l[d],t=a.b,y;if(t.ma.A){g=[];var D=t.ma;if(D.Wa)g.push(new f0(4,0));else{D.O&&(D.g||D.I)&&g.push(new f0(5,1));D.Qh&&(h=0,D.g&&(h|=1),D.F&&(h|=4),g.push(new f0(6,h)));h=
0;D.D&&(D.g&&(h|=1),D.I&&(h|=2),D.F&&(h|=4),D.U&&(h|=8));k=0;if(D.k||D.j)D.k&&(k|=1),D.j&&(k|=2);c=0;D.C&&(c=4);k||(k=c,c=0);D.Ra&&h&&(k||c)?g.push(new f0(3,h,k)):(h&&g.push(new f0(2,h)),k&&g.push(new f0(1,k)));c&&g.push(new f0(1,c))}}else{g=[];var M=t.ma;if(M.Wa)g.push(new f0(4,0));else{M.O&&M.g&&g.push(new f0(5,1));M.Qh&&M.g&&g.push(new f0(6,1));h=0;M.D&&(M.g&&(h|=1),M.I&&(h|=2));k=0;if(M.k||M.j)M.k&&(k|=1),M.j&&(k|=2);M.Ra&&h&&k?g.push(new f0(3,h,k)):(h&&g.push(new f0(2,h)),k&&g.push(new f0(1,
k)))}}y=g;var ea=new h0(q,e,r,y);b.push(ea)}}catch(kb){}finally{break t}}l=b;l0(this,"bd");this.jc=new C0(this,l);D0(this.jc);l={};l.allowed=this.ve.j;nu(this,{},l)};f.destroy=function(){this.zl&&H0(this);if(this.j){var a=this.app,b=this.j;A_(a);b!=a.j&&x_(a,a.j)}Mh(this.jc,this.j);this.ve=this.j=this.jc=null;qH(this.g);UZ=!1;J0.G.destroy.call(this)};f.R=function(){return this.app.R()};f.isFullscreen=function(){return this.b.isFullscreen()||this.ma.o};
function SZ(a,b,c){a=a.ve;c=c||{};var d=(v()-a.C)/1E3;c.art=d;d=a.B.R();d.B&&(c.feature=d.ca);c.ad_flags=a.b.jf;var e=a.b.hf;e&&(c.cid=e);c.mt=a.W.getCurrentTime();(d=ZK(d))&&(c.lact=d);(d=a.W.ug())&&(c.len=d);a.b.Nh&&(c.fqsf=1);c.sdkv="3";c.ad_event=b;if(3==b||4==b)a.g=c.at;b=a.A;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?c_(c.ad_event):0;a=8==a||0!=a?!0:!1}if(a){var g;c.at&&(g=c.at);var h;c.sst&&(h=c.sst);"2_1"==g&&
10==h&&(c.sst=0);g={};g.device=b.b.ma.nb;g.ns=1;g.sdkv="h.3.0";g.ver="2.0";for(var k in c)switch(h=g,a=k,d=c[k],e=c,a){case "at":h.format=d;e.skip&&(h.format+="_1");break;case "sst":0==d?h.break_type=1:-1==d||-2==JZ?h.break_type=3:(h.break_type=2,h.m_pos=d);break;case "trsp":h.slot_pos=d;break;case "ad_id":case "ad_v":case "ad_sys":h[a]=d;break;case "ad_len":h[a]=Math.round(1E3*d);break;case "ad_error":h.error_code=b_(d);break;case "error_code":h.ima_error=d;case "error_message":h.error_msg=d;break;
case "ad_event":h.event=c_(d);break;case "ck_xy":a=d.split("x"),2==a.length&&(h.i_x=a[0],h.i_y=a[1])}k=w_(b.b);c=et(b.b.app);g.cpn=c.Da;g.content_v=c.videoId;g.mt=Math.round(1E3*k.getCurrentTime());g.ei=c.A;g.lact=ZK(b.b.R());k=i_(b.b);g.p_w=k.width;g.p_h=k.height;g.rt=(new Date).getTime();c=Jd(g);if("undefined"==typeof c)throw Error("Keys are undefined");k=new je(null,0,void 0);g=Id(g);for(h=0;h<c.length;h++)a=c[h],d=g[h],ha(d)?ve(k,a,d):k.add(a,d);b=b.b.R().tb+"api/stats/ads";b=new J(b);ge(b,k);
mf(b.toString())}}function I_(a,b,c){c=c||{};c.ad_error=b;SZ(a,7,c)}f.$g=function(){var a;if(this.ve){a=this.ve;var b={allowed:a.j};a.b.V&&(b.ex_ad=a.b.V);a.g&&(b.at=a.g);a=b}else a=J0.G.$g.call(this);return a};function s_(a,b){var c;if(b){c=a.g;var d=tH(c);c.W.R().Rb||jd(d)||pH(c).appendChild(d);c=d}else c=a.g,c=c.W.R().Rb?c.W.app.g.b:tH(c);return c}function w_(a){if(!a.j){var b=new RK(a.R().j);b.$="adunit";b.yc=!0;b.fi=a.app.g.element;var c=s_(a,!1);b.Pa=c;a.j=new fN(b,2)}return a.j}
function i_(a){return a.ma.o?(a=t_(a),new yf(0,0,a.width,a.height)):ag(rt(a.b))}function t_(a){return a.app.g.xs()}function H0(a){qH(a.g);a.zl=!1;su(a);ru(a,["seek"]);a.R().Qd&&ru(a,["audio"])}f.getAdState=function(){return this.o};function u_(a,b){switch(b){case 1:a.o=1;a.H("publish_external_event","onAdStart");break;case 0:a.o=0,a.H("publish_external_event","onAdEnd")}}
function o_(a,b,c,d){d&&a.H("publish_external_event","onAdInfoChange",d);a.H("publish_external_event","onAdStateChange",b,s_(a,!1),c)}
f.Fc=function(a){J0.G.Fc.call(this,a);var b=parseInt(a.getId(),10);this.jc&&!isNaN(b)&&(a=this.jc,n(b)&&(b=a.o[b]))&&(a.zd==b&&!b.Ae&&b.isVisible?b.show():(a.zd&&a.xg(a.zd),A0(a.A,b)?(a.zd=null,b=a.k[b.getId()],b.Vd||(b.Vd=!0,B0(a.b,[b]))):(a.zd=b,b.subscribe("adBreakComplete",a.Zz,a),b.Ae&&(a=a.b,a.zl=!0,a.H("command_redirect_controls",a,["play_pause"],void 0),qu(a,["seek"]),a.R().Qd&&qu(a,["audio"]),a.pauseVideo()),b.show())))};
f.kd=function(a){J0.G.kd.call(this,a);var b=parseInt(a.getId(),10),c=1E3*this.b.getCurrentTime();this.jc&&!isNaN(b)&&c>a.start&&(2147483647==a.end||2147483646==a.end)&&(a=this.jc,(b=a.o[b])&&a.zd==b&&!b.Ae&&b.isVisible&&b.Pm&&b.b instanceof E_&&G_(b.b,"fullscreen"))};function l0(a,b){var c=b;"nl"==b&&(c=a.ve,c.o++,c=c.o.toString());a.B[c]=v();"bs"!=c&&"fb"!=c||nu(a,a.B,a.A)}function B0(a,b){a.H("command_update_cuerange_markers",b,a.b.getPlayerType())}
function F_(a){return Boolean(a.ma.A&&a.jc&&1<a.jc.g.length)}f.je=function(a){this.H(a)};f.Hj=function(a){switch(a){case "breaks":return this.jc?this.jc.g.length:0}};f.Bj=function(){var a=[];this.R().zb()&&a.push("breaks");return a};function K0(a,b,c){var d=["html5-center-transform","html5-center-overlay"];uE.call(this,["div","html5-remote-module",["div","ytp-remote-display-thumbnail","{{thumbnail}}"],["div",d.concat("ytp-remote-display-controls"),["div",d.concat("ytp-remote-display-error"),["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.j=c;this.g=this.b=null;L0(this,a,b)}w(K0,uE);function M0(a){N0(a,Y(0,"YTP_MDX_STATUS_CONNECTING"));O0(a,2)}function P0(a,b){N0(a,Y(0,"YTP_MDX_STATUS_ERROR"));Ev(a.template,"error",b);O0(a,0)}function O0(a,b){var c=a.template.b["ytp-remote-display-error"];Dx(c);a.g.hide();a.b.hide();switch(b){case 0:Cx(c);break;case 2:a.g.show()}}
function L0(a,b,c){var d=new PE(b.b.R().Pb);d.show(b.b.getVideoData());S(a,d);a.g=new OE;O(a.g.element,"html5-center-overlay");O(a.g.element,"html5-center-transform");S(a,a.g);a.b=new IA(a.j,"ytp-button-remote-reconnect");a.b.oa(Y(0,"YTP_MDX_PLAYER_RECONNECT_BUTTON"));S(a,a.b);b=new IA(a.j,"ytp-button-remote-maximize");b.oa(["div",["html5-center-transform","html5-center-overlay","ytp-button-remote-maximize-icon"]]);S(a,b);Ev(a.template,"reconnectbutton",a.b);Ev(a.template,"thumbnail",d);Ev(a.template,
"loadingicon",a.g);Ev(a.template,"maximizebutton",b);a.b.listen("click",function(){this.H("reconnect-button-click")},a);b.listen("click",function(a){a.stopPropagation();this.H("maximize-button-click")},a);M0(a);Ev(a.template,"receiver",c)}function N0(a,b){Ev(a.template,"statustext",b)};function Q0(a,b,c,d){this.g=a;a.subscribe("onVolumeChange",this.zo,this);d||a.subscribe("onPlaylistUpdate",this.yo,this);this.j=b;b.subscribe("reconnect-button-click",this.Bo,this);b.subscribe("maximize-button-click",this.Ao,this);this.b=c;c.subscribe("proxyStateChange",this.Co,this);c.subscribe("remotePlayerChange",this.Fk,this);c.subscribe("remoteQueueChange",this.Gk,this);this.F=new Qt;this.B=this.A=NaN;this.D=0;this.k={};this.C=new Qk(this.Pu,1E3,this);S(this,this.C);this.I=0;this.o=d;this.o||
(a=qi("yt-player-remoteservice-listid"),b=this.g.b,b.getVideoData().La&&b.getVideoData().La!=a?this.b.Hk(b.getVideoData().videoId,R0(this.g),b.getCurrentTime()):this.b.mi(b.getVideoData().videoId,b.getCurrentTime()),b.ic()?ni("yt-player-remoteservice-listid",b.getVideoData().La):ri("yt-player-remoteservice-listid"));(a=this.g.b.ki("captions","track"))&&S0(this,a);this.Gk();this.Fk()}w(Q0,Ih);f=Q0.prototype;
f.J=function(){T0(this,new Qt);U0(this);V0(this);this.g.ia("onVolumeChange",this.zo,this);this.o||this.g.ia("onPlaylistUpdate",this.yo,this);Lh(this.j)||(this.j.ia("reconnect-button-click",this.Bo,this),this.j.ia("maximize-button-click",this.Ao,this));Lh(this.b)||(this.b.ia("proxyStateChange",this.Co,this),this.b.ia("remotePlayerChange",this.Fk,this),this.b.ia("remoteQueueChange",this.Gk,this));W0(this,this.k);this.b=this.j=this.g=null};
f.QC=function(a,b){2==this.b.b||(X0(this)?this.eC.apply(this,arguments):this.dC.apply(this,arguments))};function Y0(a,b){var c=a.g.b.getVideoData().Oa;a.g.H("command_progress",b,c)}f.dC=function(a,b){var c=Array.prototype.slice.call(arguments,1);switch(a){case "control_toggle_play_pause":case "control_play":case "control_pause":Z0(this,this.g.b.getCurrentTime());break;case "control_seek":Z0(this,c[0])}};
f.eC=function(a,b){if(1081==Im(this.b).b)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":1==Im(this.b).b?$0(this):a1(this);break;case "control_play":a1(this);break;case "control_pause":$0(this);break;case "control_seek":this.I=c[0];Rk(this.C);break;case "control_subtitles_set_track":S0(this,c[0])}};
f.zo=function(a){if(X0(this)){var b=Math.round(a.volume);a=!!a.muted;var c=Im(this.b);b==c.volume&&a==c.muted||this.b.setVolume(b,a)}};f.yo=function(){var a=qi("yt-player-remoteservice-listid"),b=this.g.b;b.getVideoData().La!=a&&(this.b.Hk(b1(this),R0(this.g),b.getCurrentTime()),ni("yt-player-remoteservice-listid",b.getVideoData().La))};f.Bo=function(){V0(this);this.b.k.reconnect();M0(this.j)};
f.Ao=function(){var a=this.g,b={video_id:a.b.getVideoData().videoId},b=new Jr(b),b=AH(a.app.Eb.R(),b,{});mu(a,b)};f.Co=function(a,b){V0(this);2==b&&this.gr()};
f.Fk=function(){if(X0(this)){U0(this);var a=Im(this.b);switch(a.b){case 1:c1(this);T0(this,new Qt(8));break;case 3:T0(this,new Qt(1));break;case 0:T0(this,new Qt(2));this.C.stop();var b=this.g.b;(b=Ms(b.app,b.b||1))&&b.rg(!0);Y0(this,this.g.b.getVideoData().Oa);break;case 2:T0(this,new Qt(4));Y0(this,Am(a));break;case -1:T0(this,new Qt);break;case -1E3:T0(this,new Qt(128))}0==this.D&&(b=this.g.b,(b=Ms(b.app,b.b||1))&&b.rg(!1));this.D=a.b;a=Im(this.b).j;b=this.k;(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.k=a,W0(this,a));a=Im(this.b);-1==a.volume||Math.round(this.g.b.Lo())==a.volume&&this.g.b.Mo()==a.muted||(this.g.b.setVolume(a.volume),a.muted?this.g.b.No():this.g.b.Oo())}else T0(this,new Qt)};f.Gk=function(){X0(this)||(Y0(this,0),U0(this),T0(this,new Qt))};
function S0(a,b){if(X0(a)){if(b){var c={style:a.g.b.ki("captions","displaySettings")};dc(c,b);a.b.jm(b1(a),c)}else a.b.jm(b1(a),null);a.k=Im(a.b).j}}function $0(a){a.b.pause();var b=Im(a.b);Y0(a,Am(b));U0(a);T0(a,new Qt(4))}function a1(a){a.b.play();c1(a);T0(a,new Qt(8))}function Z0(a,b){if(a.o){var c=a.g.b.ic();c?Om(a.b,b1(a),b,c.Ha,a.g.b.getVideoData().La):Om(a.b,b1(a),b)}else a.b.mi(b1(a),b);T0(a,new Qt(1))}
function W0(a,b){if(b){var c=a.g.b.ki("captions","tracklist",{oq:1}),c=B(c,function(a){return a.languageCode==b.languageCode&&a.name==b.trackName});a.g.b.ip("captions","track",c)}else a.g.b.jp("captions")}f.Pu=function(){var a=this.I;U0(this);Y0(this,a);-1==Im(this.b).b?Z0(this,a):this.b.ur(a);T0(this,new Qt(1))};function X0(a){return ym(Im(a.b))==b1(a)}function b1(a){return a.g.b.getVideoData().videoId}
function c1(a){U0(a);var b=Im(a.b);1==b.b&&T0(a,new Qt(8));Y0(a,Am(b));a.A=L(u(function(){c1(this)},a),500)}function U0(a){N(a.A);a.A=NaN}f.gr=function(){V0(this);U0(this);var a=this.b.k.getReconnectTimeout();if(2!=this.b.b||isNaN(a))M0(this.j);else{var b=this.j;P0(b,Y(0,"YTP_MDX_PLAYER_RECONNECT_TIME",{FORMATTED_TIME:Gv(a/1E3)}));b.b.show();this.B=L(u(this.gr,this),1E3)}};function V0(a){N(a.B);a.B=NaN}
function T0(a,b){V0(a);var c=a.F;a.F=b;var d=a.j;N0(d,Y(0,"YTP_MDX_STATUS_CONNECTED"));O0(d,1);W(b,1)&&(d=a.j,N0(d,Y(0,"YTP_MDX_STATUS_CONNECTED")),O0(d,2));W(b,128)&&P0(a.j,Ye("YTP_MDX_PLAYER_ERROR"));d=a.g;uu(d,W(b,8));d.app.H("presentingplayerstatechange",new eN(b,c))};function d1(a){JK.call(this,a);this.F=a.g.j;this.A={key:Ti(),name:Y(0,"YTP_MDX_MY_COMPUTER")};this.k=this.j=null;this.I=[];this.g=null;this.B=new GC(this.F,"ytp-remote-button",Y(0,"YTP_MDX_TOOLTIP"),"ytp-remote-button-active");S(this,this.B);this.B.listen("click",this.Nu,this);this.o=new bC(this.F,u(this.Lu,this),u(this.Mu,this));O(this.o.K(),"ytp-drop-down-background");S(this,this.o);this.C=new HA;this.C.b=Y(0,"YTP_MDX_TITLE");this.C.element=this.o;this.C.A=this.ua;S(this,this.C);this.D=!1}
w(d1,JK);var e1=["play_pause","seek"],f1=["captions"];f=d1.prototype;f.ua="remote";f.hc="remote";f.Ja=function(){return this.app.Eb.R().Bg};f.create=function(){d1.G.create.call(this);this.I.push(Th("yt-remote-connection-change",this.Zq,this));this.Zq();this.H("module_menu_button_add",this.ua,this.B);wu(this,this.C);var a=this.b.app.I;this.o.getSelected()&&this.o.getSelected()!=this.A&&1!=a&&3!=a&&this.load()};f.destroy=function(){Vh(this.I);this.I.length=0;Kh(this.g);this.g=null;d1.G.destroy.call(this)};
f.load=function(){if(!this.loaded){d1.G.load.call(this);this.app.Eb.R().qd&&(this.D=!0);RG(this.app,!1);KC(this.B,"ytp-remote-button-active");var a=this.o.getSelected();this.k=new K0(this,a.name,this.F);qt(this.b,this.k.K());this.g&&(a=this.app.Eb.R(),this.j=new Q0(this,this.k,this.g,a.b.o||a.b.j));this.b.Bk();this.H("command_redirect_controls",this,e1,f1);var b=bo();0!=b&&((a=this.g?ym(Im(this.g)):null)&&a!=this.b.getVideoData().videoId||L(u(function(){this.H("command_progress",b,void 0)},this),
0))}};f.unload=function(){if(this.loaded){var a=Ln();a&&a.getLoungeToken()||(RG(this.app,this.D),this.D=!1);KC(this.B,"ytp-remote-button");eC(this.o,this.A);su(this);Mh(this.j,this.k);this.k=this.j=null;d1.G.unload.call(this)}};f.J=function(){this.destroy();Mh(this.j,this.k,this.g);this.g=this.k=this.j=null;d1.G.J.call(this)};f.je=function(a,b){this.j&&this.j.QC.apply(this.j,arguments)};
function ft(a,b,c){var d=c||a.A;b.unshift(a.A);g1(a,b);d=B(b,function(a){return a.key==d.key});eC(a.o,d);a.k&&Ev(a.k.template,"receiver",d.name)}function R0(a){var b=a.b.ic();if(b){a=[];for(var c=0;c<b.tc;c++)a[c]=rs(b,c).videoId;return a}return[a.b.getVideoData().videoId]}f.Zq=function(){var a=eo();a?(this.g=a,this.load(),this.j||(a=this.app.Eb.R(),this.j=new Q0(this,this.k,this.g,a.b.o||a.b.j))):(Kh(this.g),this.g=null,this.unload())};
f.Mu=function(a){yu(this);if(a!=this.o.getSelected())if(eC(this.o,a),a.key==this.A.key)a=this.g?Im(this.g):null,Xn(),this.unload(),a&&ym(a)==this.b.getVideoData().videoId&&(0<Am(a)&&this.b.Kg(Am(a)),1==a.b&&this.b.Jg());else{var b=0,c="",d=this.b.ic();d&&(b=d.Ha,c=this.b.getVideoData().La);b={videoIds:R0(this),listId:c,videoId:this.b.getVideoData().videoId,index:b,currentTime:this.b.getCurrentTime()};Un(a,b);this.k&&Ev(this.k.template,"receiver",a.name);Kh(this.j);this.j=null;this.load()}};
function g1(a,b){z(b,function(a){a.toString=function(){return a.key}},a);cC(a.o,b)}f.Nu=function(a){var b=Jn();1==b.length&&"cast-selector-receiver"==b[0].key&&(a.stopImmediatePropagation(),a.preventDefault(),Bj())};f.Lu=function(a){return a.name};function h1(a,b){this.j=a;this.k=b;this.b=!1}function i1(a,b){var c;if(c=xq("grc",""))wq(""),c=!0;if(c){c=wq("").span;var d=wq("").tick;"grc"in d&&(c[b]=v()-d.grc)}else xq(b,"")||a.g(b)}h1.prototype.g=function(a){vq(a,void 0,"")};h1.prototype.info=function(a,b){Bq("")[a]=b};
function j1(a){var b=a.j;if(!b.Ek||!("detailpage"==b.$||"leanback"==b.$||"embedded"==b.$&&b.Ph)||a.b)return NaN;a.b=!0;Se("TIMING_ACTION")||Qe("TIMING_ACTION",a.j.aa);var b=a.k.C,c;for(c in b)vq(c,b[c],"");a=a.k.B;for(var d in a)c=d,b=a[d],Bq("")[c]=b;if(d=Cg("visibilityState",document)){a=-1;switch(d){case "hidden":a=0;break;case "visible":a=1;break;case "prerender":a=2;break;case "unloaded":a=3}d=a;Bq("").yt_vis=d}Bq("").yt_pt="html5";var e;if(xq("_start",""))if(c=wq("").tick,d=wq("").span,b=Bq(""),
a=p("yt.timing.reportbuilder_")){if(a=a(c,d,b,""))Aq(a),Cq(""),tq();e=NaN}else{a={v:2,s:"youtube",action:Se("TIMING_ACTION")};var g=Se("TIMING_INFO")||{},h;for(h in g)b[h]=g[h];h=b.srt;delete b.srt;var k;h||0===h||(k=sq.timing||{},h=Math.max(0,k.responseStart-k.navigationStart),isNaN(h)&&b.pt&&(h=b.pt));if(h||0===h)b.srt=h;b.h5jse&&(g=window.location.protocol+p("ytplayer.config.assets.js"),(g=sq.getEntriesByName?sq.getEntriesByName(g)[0]:null)?b.h5jse=Math.round(b.h5jse-g.responseEnd):delete b.h5jse);
c.aft||(c.aft=c.pbr&&c.pbs>c.pbr?c.pbr:c.pbs?c.pbs:c.vr&&c.cl&&c.cl>c.vr?c.cl:c.vr?c.vr:c.ol);c.vr&&c.gv&&(d.vl=Math.round(c.vr-c.gv));g=c._start;if(!rq){k||(k=sq.timing||{});var l;i:if(l=k,l.msFirstPaint)l=Math.max(0,l.msFirstPaint);else{var q=window.chrome;if(q&&(q=q.loadTimes,ka(q))){var q=q(),r=1E3*Math.min(q.requestTime||Infinity,q.startLoadTime||Infinity),r=Infinity===r?0:l.navigationStart-r;l=Math.max(0,Math.round(1E3*q.firstPaintTime+r)||0);break i}l=0}0<l&&l>g&&(c.fpt=l);l=k.redirectEnd-
k.redirectStart;0<l&&(d.rtime_=l);l=k.domainLookupEnd-k.domainLookupStart;0<l&&(d.dns_=l);l=k.connectEnd-k.connectStart;0<l&&(d.tcp_=l);l=k.connectEnd-k.secureConnectionStart;k.secureConnectionStart&&0<l&&(d.stcp_=l);l=k.responseStart-k.requestStart;0<l&&(d.req_=l);l=k.responseEnd-k.responseStart;0<l&&(d.rcv_=l);rq=!0}.001>Math.random()&&zq(d);for(var t in b)"_"!=t.charAt(0)&&(a[t]=b[t]);t={};k=[];for(var y in c)"_"!=y.charAt(0)&&(l=Math.max(Math.round(c[y]-g),0),t[y]=l,k.push(y+"."+l));a.rt=k.join(",");
y={};k=[];for(e in d)"_"!=e.charAt(0)&&(y[e]=d[e],k.push(e+"."+d[e]));a.it=k.join(",");Aq(a);(e=p("ytdebug.logTiming"))&&e(a,t,y);Cq("");tq();e=t.aft+(h||0)}else e=NaN;return e}Ff("hidden",window.document);var dt={"api.invalidparam":2,auth:150,"html5.unsupportedads":5,"fmt.noneavailable":5,"fmt.decode":5,"fmt.unplayable":5,"html5.missingapi":5,"html5.missingapi.drm":5};function k1(a,b){aj.call(this);var c=b;c instanceof Xg||(c=new Xg(c));this.O=c;this.b=new RK(this.O.args||{});S(this,this.b);this.g=new UJ(this);S(this,this.g);this.g.subscribe("templateready",this.Jt,this);this.g.subscribe("resize",this.Pt,this);this.I=1;this.za={};this.T=null;this.D=this.b.Xj?vs():{volume:100,muted:!1};this.hb=this.b.zb()?new lt(this,1):new ys(this,1);S(this,this.hb);this.gb=new pt(this);S(this,this.gb);this.Eb=new pt(this,1);S(this,this.Eb);this.aa=this.k=null;this.ka={};var c=
this.b,d=new kK;gE(c)&&(d.j=!0,d.B=.1);c.b.I&&(d.g=8,d.b=!0,d.j=!0);c.b.O&&(d.g=8,d.j=!0);c.b.za&&(d.k=5,d.C=!0);c.b.la&&(d.A=12500);c.b.pa&&(d.o=.9);this.wa=new $J(d);c=new fN(this.b,1);d={};d.internalvideodatachange=this.vt;d.liveviewshift=this.Dt;d.playbackready=this.wt;d.playbackstarted=this.xt;d.statechange=this.zt;d.urlauthexpired=this.Kt;for(var e in d)c.subscribe(e,d[e],this);this.j=c;this.j.ca=this.wa;S(this,this.j);this.ib={beginseeking:this.At,endseeking:this.Ct,internalvideodatachange:this.Rt,
internalvideoformatchange:this.Lt,progresssync:this.It,seekto:this.Qt,onLoadProgress:this.Et,onVideoProgress:this.Mt,newlicensesession:this.Ot,playbackready:this.Ft,statechange:this.Ht,connectionissue:this.Bt,heartbeatparams:this.Nt,videoelementevent:this.St};this.A=null;this.Ba=this.pa=-1;e=new lK;c=this.gb;e.g!=c&&(mK(e),e.k={},e.g=c);c={};c.loaded=u(this.bo,this);c.unloaded=u(this.co,this);c.command_pause=l1(this.pauseVideo,this);c.command_play=l1(this.Md,this);c.command_seek=l1(this.rf,this);
c.command_disable_controls=u(this.mg,this);c.command_enable_controls=u(this.Xh,this);c.command_redirect_controls=u(this.ho,this);c.command_stop_redirect_controls=u(this.Yh,this);c.command_redirected_show_is_playing=u(this.g.ik,this.g);c.command_progress=u(this.hk,this);c.command_add_cuerange=u(this.fo,this);c.command_remove_cuerange=u(this.jo,this);c.command_remove_cuerange_all=u(this.eo,this);c.command_preroll_ready=u(this.ko,this);c.command_update_cuerange_markers=u(this.lo,this);c.command_show_dialog=
u(this.gk,this);c.command_clear_video_overlays=u(this.Uh,this);c.command_navigate_to_url=u(this.ek,this);c.command_log=u(this.Zh,this);c.publish_external_event=u(this.Sh,this);c.module_menu_button_add=u(this.Xn,this);c.module_menu_button_remove=u(this.Yn,this);c.module_menu_item_add=u(this.Zn,this);c.module_menu_item_remove=u(this.$n,this);c.module_menu_show=u(this.ao,this);c.vss_segment=u(this.Tt,this);e.o=c;this.C=e;S(this,this.C);this.L=new h1(this.b,this.C);this.F=this.B=null;this.N={};this.U=
null;this.V={};this.ca=null;this.Wa=0;this.Ra=!1;this.P=!0;this.o=null;this.la=1;this.da=this.Ca=null;this.Ia=this.Fa=!1;this.xa=null;this.cb=0;this.nb=R(window,"popstate",u(this.Gt,this),!1);e=new Jr(this.O.args);Zr(e)&&(hN(this.j,e,u(this.ng,this)),"detailpage"==this.b.$&&(c=e.videoId,c=(d=qi("yt-player-restore-playhead"))?d[c]:void 0,c&&(e.Ta=c)),ri("yt-player-restore-playhead"),this.b.Ph&&nN(this.j));i1(this.L,"fs");this.g.initialize(a);UG(this,"init")}w(k1,aj);k1.g="defaultcontext";k1.b={};
k1.create=function(a,b){try{var c=k1.j(a);if(k1.b[c]){try{k1.b[c].dispose()}catch(d){We(d)}k1.b[c]=null}var e=new k1(a,b);Jh(e,function(){k1.b[c]=null});return k1.b[c]=e}catch(g){throw We(g),g;}};k1.j=function(a){return s(a)?a:"player"+ma(a)};
function m1(a){a.k=pE.getTag(!0);a.aa=a.k;a.A&&xN(a.A,a.k);Ot(a.k,a.la);a.b.Qd?(a.da&&Pg(a.da),a.da=R(a.k,"volumechange",u(a.ky,a),!1)):a.k.setVolume(a.D.volume,a.D.muted);var b=a.g;b.b=a.k;b.pa=new yf(0,0,0,0);b.b.parentNode||b.g.appendChild(b.b);O(b.b,"video-stream");O(b.b,"html5-main-video");var c=b.app.R();c.Qb&&c.Od&&b.b.setAttribute("controls",!0);c.pi&&b.b.setAttribute("webkit-playsinline","");b.b.setAttribute("x-webkit-airplay","allow");c.Mk&&(b.za=R(b.b,"click",u(b.b.play,b.b)));a.b.Pa=a.k;
It(a.k)}function n1(a){if(a.k){a.da&&(Pg(a.da),a.da=null);a.A&&uH(a.A);var b=a.g;b.b&&(ed(b.b),b.b=null);a.b.Pa=null;pE.releaseTag(a.k);a.k=null}}function rH(a,b){a.b.Rb?(a.U&&(Lf(a.k,a.U.left,a.U.top),Wf(a.k,Bf(a.U)),a.U=null),Nt(a.k),uH(a.A),xN(a.A,a.k),Ot(a.k,a.la)):pE.releaseTag(b)}
function x_(a,b){if(a.A!=b){a.A&&(mK(a.C),A_(a));if(b!=a.j){var c=b.getPlayerType();a.ka[c]=b}a.A=b;b.ca=a.wa;a.k&&xN(b,a.k);var c=a.ib,d;for(d in c)b.subscribe(d,c[d],a);o1(a,b,b.getVideoData());b.P.b&&p1(a,"dataloaded",b,b.getVideoData())}}function A_(a){uH(a.A);var b=a.A,c=a.ib,d;for(d in c)b.ia(d,c[d],a);b=a.A;b!=a.j&&(c=b.getPlayerType(),a.ka[c]==b&&delete a.ka[c]);a.A=null}function Ms(a,b){return b?1==b?a.j:a.ka[b]||null:a.A}
function q1(a){var b=a.C,c=[CB.g,MH,Uv,jJ,cE,qJ,uJ,kE,AJ];c.push(lI.b);z(c,b.Jq,b);a.H("videoready",a.getVideoData())}f=k1.prototype;f.wt=function(){r1(this,5)};f.Ft=function(a){6!=this.I&&(s1(this),a=a.getPlayerState(),W(a,8)&&!W(a,2)&&this.Md())};function it(a){!a.F&&a.Eb.R().Bg&&(a.F=new d1(a),t1(a,a.F));if(a.F){var b=Qn();ft(a.F,Jn(),b);var c=a.F;c&&!c.Bc&&c.Ja(a.Eb)&&c.create();b&&a.F.load()}}
function t1(a,b){S(a,b);b.subscribe("loaded",a.bo,a);b.subscribe("unloaded",a.co,a);b.subscribe("command_pause",l1(a.pauseVideo,a));b.subscribe("command_play",l1(a.Md,a));b.subscribe("command_seek",l1(a.rf,a));b.subscribe("command_disable_controls",a.mg,a);b.subscribe("command_enable_controls",a.Xh,a);b.subscribe("command_redirect_controls",a.ho,a);b.subscribe("command_stop_redirect_controls",a.Yh,a);b.subscribe("command_redirected_show_is_playing",a.g.ik,a.g);b.subscribe("command_progress",a.hk,
a);b.subscribe("command_add_cuerange",a.fo,a);b.subscribe("command_remove_cuerange",a.jo,a);b.subscribe("command_remove_cuerange_all",a.eo,a);b.subscribe("command_update_cuerange_markers",a.lo,a);b.subscribe("command_preroll_ready",a.ko,a);b.subscribe("command_show_dialog",a.gk,a);b.subscribe("command_clear_video_overlays",a.Uh,a);b.subscribe("command_log",a.Zh,a);b.subscribe("command_navigate_to_url",a.ek,a);b.subscribe("publish_external_event",a.Sh,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.ao,a);b.subscribe("command_log_timing",a.C.D,a.C)}function ht(a){a&&a.Bc&&a.destroy()}f.Ua=function(a,b){this.H.apply(this,arguments);this.$e.apply(this,arguments)};f.Kh=function(a,b){var c=vb(arguments);this.b.zb()&&this.A&&c.push(this.A.getPlayerType());this.H.apply(this,c)};f.R=function(){return this.b};f.getVideoData=function(){return this.A.getVideoData()};
function et(a){return a.j.getVideoData()}f.ng=function(){var a=YK(this.b);sa(a,pK(this.C));this.B&&sa(a,this.B.$g());a.fs=this.b.mb;a.volume=Math.round(this.D.volume);a.mos=this.D.muted?1:0;return a};f.gk=function(a){this.g.Rg(a)};
f.Jt=function(){this.b.fi=this.g.element;this.g.Qg();var a=this.hb;a.g=this.g.element;for(var b in a.k)a.g[b]=a.k[b];for(b in a.o)a.g[b]=a.o[b];a=u(this.Hw,this);b=document;var c;"onfullscreenchange"in b?c="fullscreenchange":(c=xg+"fullscreenchange",c="on"+c in b?c:null);"msfullscreenchange"==c&&(c="MSFullscreenChange");this.Ca=c?R(b,c,a):null;b=this.O.args;if(dq()){m1(this);a=et(this);c=this.g.Fb();this.b.Yc=c;this.Ua("onVolumeChange",this.D);"detailpage"==this.b.$?mt(this):b&&(b.playlist||b.list||
b.api)&&(u1(this,b),Zr(a)||(b=this.o,c=u(this.Fp,this),b.Le=c,b.ae&&L(b.Le,0)));if(b=this.O.args.jsapicallback)ka(b)||(b=p(b)),b&&l1(u(b,m,this.b.zk),m);An(this.b.b.j);this.b.Bg=gt(this.b)&&!E(Jn());x_(this,this.j);this.b.Ph&&Zr(a)?v1(this):"leanback"!=this.b.$&&w1(this)}else Qv(this.j,"html5.missingapi","YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK",void 0);this.g.Hl()};function w1(a){a.H("initializingmode");r1(a,2)}
function v1(a){W(a.getPlayerState(),128)||(a.H("initializingmode"),x_(a,a.j),r1(a,3),a.b.Rb||(n1(a),m1(a),xN(a.j,a.k)),sN(a.j),x1(a,3))}function l1(a,b){return function(){var c=Array.prototype.slice.call(arguments);L(function(){a.apply(b||this,c)},0)}}f.ek=function(a,b){b?MJ(this,a):(window.ytspf||{}).enabled?spf.navigate(a):window.location=Yd(a,{})+""};
f.Zh=function(a,b,c){var d=Ms(this);b.event=a;d.o&&(a=d.o,b.rt=IM(a.b).toFixed(3),sa(b,XM(a.b)),sa(b,ZM(a)),delete b.fexp,a=a.b.g.tb+"player_204","streamingerror"==b.event&&(a="//s.youtube.com/stream_204"),b=Ai(a,b),mf(b,c))};function Js(a,b){if(!isNaN(b)&&a.k){var c=1,c=a.b.vg?Lq:[1],c=1>b?B(c,function(a){return a>=b}):nb(c,function(a){return a<=b});a.la!=c&&(a.la=c,a.j==a.A&&Ot(a.k,c),a.H("onPlaybackRateChange",c))}}
function Ks(a,b){var c=Ms(a,b);return c&&c.getVideoData().b?c.getVideoData().b.video.b:"unknown"}function IG(a){return(a=Ms(a,void 0))?Kp(qM(a.pa,a.b)):"unknown"}function Ls(a,b,c,d){if(c=Ms(a,c))a=a.b.o,"mobile"!=a&&"tablet"!=a&&(b=Ep(b,d||b,!0),sJ(c,"m",b))}f.getCurrentTime=function(a){return(a=Ms(this,a))?a.getCurrentTime():0};function Cs(a,b){var c=Ms(a,b);return c?c.Sd():0}
function Us(a,b){var c=a.j.getDebugInfo(b);c.debug_playbackQuality=Ks(a);c.debug_date=(new Date).toString();delete c.uga;return qf(c)}function pJ(a,b){var c=a.getVideoData(),d=!!c.xa||!!c.Kf||!b;a.H("threedenabled",d);d&&a.k.setAttribute("mozStereoMode","1");lJ()&&(a.k.setAttribute("mozStereoMode",d?"1":"0"),c=Up[d?c.rB:0],d=document.createElement("NvStereoExtDataElement"),d.setAttribute("stereoMode",c),bd(document.documentElement,d),Ug(d,"3DModeEvent"))}
f.getPlayerState=function(a){return(a=Ms(this,a||1))&&a.getPlayerState()};f.St=function(a){var b=a.target;switch(a.type){case "loadedmetadata":i1(this.L,"fvb");this.Wa=L(u(this.g.Tf,this.g),16);break;case "loadstart":i1(this.L,"gv");break;case "progress":case "timeupdate":i1(this.L,"1pb"),2<=Dt(b.buffered)&&i1(this.L,"l2s")}};
f.Ot=function(a){if(this.Ia){var b=this.cb.toString();this.cb++;this.xa[b]=a;a={request:vb(a.b[0]?a.b[0].message:null),sessionId:b,system:a.F.b,url:a.A};this.H("onNewLicenseSession",a)}else a.start()};f.Et=function(a,b){this.Kh("onLoadProgress",b)};f.Mt=function(a,b){this.Kh("onVideoProgress",b)};f.It=function(){this.hk()};f.hk=function(a,b){this.H("progresssync",a,b)};
f.zt=function(a){var b;(b=!W(a.state,2))||(this.o&&("embedded"==this.b.$||this.b.mb)&&KH(this)?(Xs(this),b=!0):b=!1,b=!b);b&&(W(a.state,2)&&(this.pauseVideo(),W(a.b,32)&&this.j.Ni(),this.b.Pb&&KG(this,!1)),W(a.state,128)&&(b=a.state,Is(this),b=b.b,b.message||b.messageKey||(b.messageKey="YTP_ERROR_GENERIC"),b.message||(b.message=Ye(b.messageKey)),this.H("onError",dt[b.errorCode]||5),this.H("onDetailedError",b)),this.H("applicationplayerstatechange",a),W(a.state,2)&&(a=this.getVideoData(),a.eb&&!a.ob&&
this.mg(["play_pause"])))};f.Ht=function(a){!W(a.state,32)&&0>Rv(a,16)&&(!W(a.state,8)||this.k.ended&&!W(a.state,2)||this.Md());this.H("presentingplayerstatechange",a);this.$e("onStateChange",a);x1(this,Xt(a.state))};function o1(a,b){mK(a.C);Js(a,1);a.Ua("videoplayerreset",b)}
function p1(a,b,c,d){if(a.k){if("dataloaded"==b)if(SK(c.R(),d.k),a.A==a.j){An(a.b.b.j);var e=gt(a.b)&&!!Qn(),g;if(g=!e)g=et(a).gp&&!a.b.Pb;if(g){var h="YTP_DEVICE_FALLBACK";tc||nr("iemobile")||nr("xbox")&&nr("trident")||nr("nintendo wiiu")||(h="YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK_FLASH");Qv(a.j,"html5.unsupportedads",h,void 0)}else if(g=et(a),!(g.j||g.te||g.se||g.aa||g.U)||e||lN(a.j)){$r(g);e&&r1(a,6);e=J0.Ja;!a.B&&e(a)&&(a.B=new J0(a),a.B&&t1(a,a.B));try{(h=a.B)&&!h.Bc&&h.Ja(a.Eb)&&h.create()}catch(k){We(k),
a.j&&wN(a.j,"ad")}it(a);q1(a)}else Qv(a.j,"fmt.noneavailable","YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK",void 0)}else q1(a);1==c.getPlayerType()&&(a.getVideoData().Vk?(a.T=ac(a.D),a.mg(["audio"]),h=a.k,h.$l=!0,h.muted=!0):(Hs(a,"audio")&&a.Xh(["audio"]),a.k.$l=!1,a.T&&(SG(a,a.T),a.T=null)),h=a.getVideoData(),h.eb&&!a.b.ok?Qv(a.j,"html5.unsupportedlive","YTP_DEVICE_FALLBACK",void 0):h.eb&&!h.ob?a.mg(["seek"]):a.Xh(["seek"]),d.V||d.o.focEnabled||d.o.rmktEnabled||a.b.uf)&&(h=a.getVideoData(),e=1E3*h.Oa,
y1(a,"part2viewed",1,e),a.b.b.A&&y1(a,"engagedview",Math.max(1,1E3*h.pe),e),y1(a,"videoplaytime25",.25*e,e),y1(a,"videoplaytime50",.5*e,e),y1(a,"videoplaytime75",.75*e,e),y1(a,"videoplaytime100",e,2147483647),y1(a,"conversionview",e,2147483647));a.Ua("videodatachange",b,d,c.getPlayerType())}}f.vt=function(a){if("newdata"==a){ht(this.B);ht(this.F);this.Fa=!1;a=[];for(var b in this.N)Hs(this,b)&&a.push(b);this.N={};0<a.length&&this.H("controlsenabled",a);this.Yh();this.za={};this.L.b=!1}};
f.Rt=function(a,b,c){"newdata"==a?o1(this,b):p1(this,a,b,c)};f.Lt=function(a,b){var c=this.A.getVideoData();a==c&&this.H("onPlaybackQualityChange",a.b.video.b,b)};function mt(a){var b=cH();if(b&&0<=b.index){var c=[];z(b.videoIds,function(a){if(a=b.videoData?b.videoData[a]:void 0)a.video_id=a.id,c.push(a)});u1(a,{videoList:c,loop:b.autoPlay,index:b.index,list:b.list,playlist_title:b.listTitle,playlist_description:b.listDescription,author:b.author,fetch:0})}}
function u1(a,b){if(a.o){var c=Ps(a.C,"playlist");if(c){var d=a.C;if(!d.g||c.Fm(d.g))c.destroy(),rb(d.b,c)}}Kh(a.o);b?(a.o=new gs(b),a.C&&(c=a.C,z([lI.b],c.Jq,c))):a.o=null}function y1(a,b,c,d){b in a.za||(c=new Yt(c,d,{id:b,priority:1}),c.$a.subscribe("onEnter",a.As,a),c.$a.subscribe("onExit",a.As,a),a.j.A.wi(c),a.za[b]=c)}
f.As=function(a){var b=a.getId(),c=et(this);"part2viewed"==b?(c.V&&!this.b.b.A&&mf(c.V),c.nf&&mf(c.nf)):"conversionview"==b?bN(this.j.o):"engagedview"==b&&this.b.b.A&&mf(c.V);if(c.pa){var d;d=a.getId();d=Ai(c.pa,{label:d});mf(d)}switch(b){case "videoplaytime25":mf(c.bk);break;case "videoplaytime50":mf(c.$j);break;case "videoplaytime75":mf(c.Wj);break;case "videoplaytime100":mf(c.Zj)}this.b.uf&&this.b.uf[a.getId()]&&(b=this.b.uf[a.getId()],c=x(b)?!1:-1!=b.search(Ke)||-1!=b.search(Ie),mf(b,void 0,c));
this.j.A.Ag(a)};function r1(a,b){b!=a.I&&(2==b&&(x1(a,-1),x1(a,5)),a.I=b,a.H("appstatechange",b))}function x1(a,b){a.A&&2==a.A.getPlayerType()?a.Ba!=b&&(a.Ba=b,a.Kh("onAdStateChange",b)):a.pa!=b&&(a.pa=b,a.Kh("onStateChange",b))}function UG(a,b){if(a.b.b.D){var c={controlClicked:b};a.b.mb&&(c.fs=1);a.Zh("controlclicked",c)}}f.rf=function(a,b,c,d){(d=Ms(this,d))&&tN(d,a,!1!=b,c)};f.Qt=function(a,b){var c=a.getVideoData();if(1==this.I||2==this.I)c.Ta=b;2==this.I?v1(this):this.Ua("seekto",b)};f.At=function(){this.Ua("beginseeking")};
f.Ct=function(){this.Ua("endseeking")};f.setVolume=function(a){var b=this.D;b.volume=a;SG(this,b)};function SG(a,b){a.D=b;b.volume=Ib(b.volume,0,100);if(a.b.Xj&&!a.b.Qd){var c={};c.volume=isNaN(b.volume)?vs().volume:Ib(b.volume,0,100);c.muted=void 0==b.muted?vs().muted:b.muted;ni("yt-player-volume",c,2592E3)}Hs(a,"audio")?a.T&&(a.T=ac(b),a.Ua("onVolumeChange",b)):(s1(a),a.b.Qd||a.Ua("onVolumeChange",b))}function Ds(a){var b=a.D;b.muted=!0;SG(a,b)}
function Es(a){var b=a.D;b.muted=!1;5>b.volume&&(b.volume=5);SG(a,b)}function Qs(a,b,c){b.list=b.list||null;b=new Jr(b);var d;if(d=a.b.b.o&&"detailpage"==a.b.$&&a.F&&a.F.loaded){d=b.videoId;var e;e=a.F;e=e.g?ym(Im(e.g)):"";d=d!=e}if(d)return!1;(d=a.getVideoData())&&d.La!=b.La&&u1(a,null);b.La&&"detailpage"==a.b.$&&mt(a);return z1(a,b,void 0,c)}
function z1(a,b,c,d){xq("_start","")||(a.L.g("_start"),a.L.info("srt",0));var e=Ms(a,d);if(!e)return!1;N(a.Wa);b.sf=qq(b.sf,c);Is(a,d);hN(e,b,u(a.ng,a));if(!mN(e))return!1;e==a.j?(r1(a,1),v1(a)):sN(e);return!0}function Zs(a,b){var c=z1(a,b);As(a,c,void 0)}function As(a,b,c){c=Ms(a,c);b&&c==a.j&&(c.getVideoData().qe=!0)}function Rs(a,b,c){b.list=b.list||null;A1(a,new Jr(b),c)}function A1(a,b,c){var d=Ms(a,c);d&&(Is(a,c),hN(d,b,u(a.ng,a)),mN(d)&&(SK(d.R(),b.k),d==a.j&&(r1(a,1),w1(a))))}
function Ws(a,b,c,d,e){if(la(b)&&!ha(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},s(b)&&16==b.length?d.list="PL"+b:d.playlist=b,b=d;u1(a,b);b=a.o;a=u(a.Fp,a);b.Le=a;b.ae&&L(b.Le,0)}f.Fp=function(){var a=rs(this.o);this.getVideoData().lg||!this.P?Zs(this,a):a&&A1(this,a)};function KH(a){var b=cH();return!(!a.o||!os(a.o)||b&&!b.autoPlay)}
function Xs(a){a.o&&(a.o.ae?os(a.o)&&Zs(a,ps(a.o)):(ps(a.o),a.P=!1))}function Ys(a){if(a.o)if(a.o.ae){var b=a.o;(b.Pf||0<=b.Ha-1)&&Zs(a,ss(a.o))}else ss(a.o),a.P=!1}function cH(){var a=p("yt.www.watch.lists.getState");return a?a():null}function $s(a){return a.o&&a.o.j?a.o.j.toString():null}function Ts(a,b){var c=null;if(b){var d=a.getCurrentTime(1),e=Cs(a,1);10<d&&10<e-d&&(c={t:Math.floor(d)})}return AH(a.b,et(a),null,c)}
function Vs(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 Yt(1E3*c,1E3*d,b);c.$a.subscribe("onEnter",a.sC,a);c.$a.subscribe("onExit",a.tC,a);a.j.A.wi(c);a.H("cuerangesadded",[c]);return!0}f.sC=function(a){this.H("onCueRangeEnter",a.getId())};f.tC=function(a){this.H("onCueRangeExit",a.getId())};f.fo=function(a,b){var c=Ms(this,b);c&&(c.A.wi.apply(c.A,a),this.H("cuerangesadded",a))};
f.jo=function(a,b){var c=Ms(this,b);c&&(c.A.Ag.apply(c.A,a),this.H("cuerangesremoved",a))};f.eo=function(a,b){var c=Ms(this,b);if(c){for(var c=c.A,d=c.j.length-1;0<=d;d--)c.j[d].namespace==a&&bu(c,d);c.lc()}};f.lo=function(a){this.H("cuerangemarkersupdated",a)};f.ko=function(a,b){var c=Ms(this,b);c&&wN(c,a)};
f.xt=function(){B1(this,j1(this.L));if(!this.Fa&&"detailpage"==this.b.$){this.Fa=!0;var a=this.j;if(a.O&&a.O.b){var b={},c={};a.b.videoId&&(b.docid=a.b.videoId);a.b.yb&&(b.plid=a.b.yb);b.cpn=a.b.Da;b.ad_cpn=a.O.b;var d=v()-a.O.g;a.O.j?c.astv=d:c.actv=d;var a={v:2,s:"youtube",action:"watch7ad_html5"},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=Se("TIMING_INFO")||{};"e"in b&&(a.e=b.e);"ei"in b&&(a.ei=b.ei);Aq(a)}}this.Ra=!1};
function B1(a,b){if(!isNaN(b)&&0<b&&a.j){var c=a.j;c.o&&0<b&&(c.o.k.j.aft=[b])}}f.bo=function(a){"remote"==a?(r1(this,6),ht(this.B)):this.Kh("onApiChange")};f.co=function(a){"remote"==a&&w1(this)};f.ky=function(){if(!Hs(this,"audio")){var a={volume:100*this.k.volume,muted:this.k.muted};this.D=ac(a);this.Ua("onVolumeChange",a)}};function s1(a){var b=a.b.Qd?Jr.b:a.getVideoData().fq;a.k.setVolume(a.D.volume*b,a.D.muted)}f.Hw=function(){C1(this,!!Wg())};f.Gt=function(){C1(this,!1)};
function C1(a,b){a.g.um(b);if("detailpage"==a.b.$&&!b){var c=et(a);if(Se("VIDEO_ID")!=c.videoId){var d=a.getCurrentTime(),e={};e[c.videoId]=d;ni("yt-player-restore-playhead",e,172800);a.pauseVideo()}}a.b.mb=b;a.g.Tf();a.Ua("fullscreentoggled",b);c={fullscreen:b,videoId:et(a).videoId};$s(a)&&(c.listId=$s(a));a.H("onFullscreenChange",c)}f.Pt=function(){bH(this)};f.Uh=function(){this.Ua("clearvideooverlays")};f.Xn=function(a,b){this.Ua("menu_button_add",a,b)};
f.Yn=function(a){this.Ua("menu_button_remove",a)};f.Zn=function(a){this.Ua("menu_item_add",a)};f.$n=function(a){this.Ua("menu_item_remove",a)};f.ao=function(a){this.Ua("menu_show",a)};f.Tt=function(a){(a=Ms(this,a))&&a.o&&FM(a.o.g)};f.Dt=function(a){this.Ua("liveviewshift",a)};
f.Sh=function(a,b){if("onAdStateChange"==a){var c=arguments[1],d=arguments[2],e=arguments[3]||{};1==c&&(i1(this.L,"vr"),IN(this.A),B1(this,j1(this.L)));0==c&&e&&(this.j.O=e);var g=this.b;"leanback"==g.$&&g.zb()&&(0==c?this.aa=this.k:this.aa=d,this.H("onAdStateChange",c,e.video_id))}else this.H.apply(this,arguments)};f.$e=function(a,b){this.C.F.apply(this.C,arguments);this.B&&this.B.H.apply(this.B,arguments);this.F&&this.F.H.apply(this.F,arguments)};
f.Md=function(a){(a=Ms(this,a))&&(2==this.I?v1(this):W(a.getPlayerState(),2)?this.rf(0):zN(a))};f.pauseVideo=function(a){(a=Ms(this,a))&&a.pauseVideo()};function Is(a,b){var c=Ms(a,b);c&&1!=a.I&&2!=a.I&&(vN(c),1==b&&ht(a.B))}function Fs(a,b){if(!Hs(a,"play_pause")){var c=a.V.play_pause?a.ca:null;c?c.je("control_play"):a.Md(b)}}function Gs(a,b){if(!Hs(a,"play_pause")){var c=a.V.play_pause?a.ca:null;c?c.je("control_pause"):a.pauseVideo(b)}}
function LG(a){var b;if(b=!Hs(a,"play_pause"))(b=!a.b.gc||2!=a.I)||(b=pE.hasTags(void 0));b&&((b=a.V.play_pause?a.ca:null)?b.je("control_toggle_play_pause"):(b=Ms(a,void 0))&&(W(b.j,8)&&!W(b.j,2)?a.pauseVideo(void 0):a.Md(void 0)))}function Bs(a,b,c,d,e){if(!Hs(a,"seek")){var g=a.V.seek?a.ca:null;g?g.je("control_seek",b):a.rf(b,c,d,e)}}function RG(a,b){KG(a,!1);b!=a.b.qd&&(a.b.qd=b,a.H("SIZE_CLICKED",b),a.g.ph())}
function KG(a,b){if(a.b.mb!=b)if(Vg())if(b){var c=a.g.element,d=Dg(["requestFullscreen","requestFullScreen"],c);d&&d.apply(c)}else(c=Dg(["exitFullscreen","cancelFullscreen","cancelFullScreen"],document))&&c.call(document);else C1(a,b)}function yz(a){KG(a,!a.b.mb)}function MJ(a,b){KG(a,!1);a.pauseVideo();UH(b)}function TG(a){var b=a.getVideoData();"detailpage"==a.b.$&&a.b.mb&&Se("VIDEO_ID")==b.videoId?KG(a,!1):MJ(a,Ts(a,!0))}f.getAdState=function(){return this.B?this.B.getAdState():-1};
function bH(a){var b=a.g.Fb();a.b.Yc=b;if(a.k){b=!1;if(0!=a.k.readyState&&a.A){var c=new G(a.k.videoWidth,a.k.videoHeight),d=a.getVideoData();Lb(d.Wa,c)||(d.Wa=c,b=!0)}c=EE(a.g);Af(a.b.zq,c)||(a.b.zq=c,b=!0);c=EE(a.g);Af(a.b.Bf,c)||(a.b.Bf=c,b=!0);b&&(sJ(Ms(a),"r"),a.H("resize",a.g.Vc()),a.Ua("onResize"))}}function Hs(a,b){return!(!a.N[b]||!a.N[b].length)}
f.mg=function(a,b){b=b||k1.g;var c=[];z(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.H("controlsdisabled",c)};f.Xh=function(a,b){b=b||k1.g;var c=[];z(a,function(a){if(Hs(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.H("controlsenabled",c)};f.ho=function(a,b,c){this.Yh();this.ca=a;b&&z(b,function(a){this.V[a]=!0},this);c&&nK(this.C,a,c)};
f.Yh=function(){this.ca=null;this.V={};oK(this.C)};function at(a,b,c,d){c=a.B&&b==a.B.ua?a.B.Hj(c,d):b&&c?(a=Ps(a.C,b))?a.Hj(c,d):null:null;return c}f.Kt=function(){if(!this.Ra){this.Ra=!0;var a=this.getVideoData(),b=Ms(this).getCurrentTime();Qs(this,{video_id:a.videoId,start:b,autoplay:1,splay:1,resume:1,feature:"resume"})}};f.Bt=function(){this.Ua("CONNECTION_ISSUE")};f.Nt=function(a){this.Ua("heartbeatparams",a)};
f.J=function(){Gn();n1(this);this.Ca&&Pg(this.Ca);Pg(this.nb);Mh(Sb(this.ka),this.o);this.aa=null;N(this.Wa);k1.G.J.call(this)};var D1=window.yt&&window.yt.uix&&window.yt.uix.widgets_||{};ba("yt.uix.widgets_",D1,void 0);function E1(a){a=a.getInstance();var b=Z(a);b in D1||(a.register(),YE(a,"yt-uix-dispose-"+b,a.dispose),D1[b]=a)};E1(MI);E1(aF);p("yt.tracking.share")||ba("yt.tracking.share",OH,void 0);p("yt.net.ping")||ba("yt.net.ping.send",mf,void 0);p("yt.window.popup")||(ba("yt.window.popup",VH,void 0),ba("yt.window.open",UH,void 0));ba("yt.player.Application.create",k1.create,void 0);var F1=p("ytcsi.tick");F1&&F1("pe");})();
