(function(){var g,aa=aa||{},m=this;function p(a){return void 0!==a}function q(a,b,c){a=a.split(".");c=c||m;a[0]in c||!c.execScript||c.execScript("var "+a[0]);for(var d;a.length&&(d=a.shift());)!a.length&&p(b)?c[d]=b:c[d]?c=c[d]:c=c[d]={}}function t(a,b){for(var c=a.split("."),d=b||m,e;e=c.shift();)if(null!=d[e])d=d[e];else return null;return d}function v(){}function ba(a){a.getInstance=function(){return a.Ob?a.Ob:a.Ob=new a}}
function ca(a){var b=typeof a;if("object"==b)if(a){if(a instanceof Array)return"array";if(a instanceof Object)return b;var c=Object.prototype.toString.call(a);if("[object Window]"==c)return"object";if("[object Array]"==c||"number"==typeof a.length&&"undefined"!=typeof a.splice&&"undefined"!=typeof a.propertyIsEnumerable&&!a.propertyIsEnumerable("splice"))return"array";if("[object Function]"==c||"undefined"!=typeof a.call&&"undefined"!=typeof a.propertyIsEnumerable&&!a.propertyIsEnumerable("call"))return"function"}else return"null";
else if("function"==b&&"undefined"==typeof a.call)return"object";return b}function da(a){return null===a}function ea(a){return"array"==ca(a)}function fa(a){var b=ca(a);return"array"==b||"object"==b&&"number"==typeof a.length}function w(a){return"string"==typeof a}function ga(a){return"number"==typeof a}function ha(a){return"function"==ca(a)}function ia(a){var b=typeof a;return"object"==b&&null!=a||"function"==b}function ka(a){return a[la]||(a[la]=++ma)}
var la="closure_uid_"+(1E9*Math.random()>>>0),ma=0;function na(a,b,c){return a.call.apply(a.bind,arguments)}function oa(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 x(a,b,c){x=Function.prototype.bind&&-1!=Function.prototype.bind.toString().indexOf("native code")?na:oa;return x.apply(null,arguments)}function pa(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 qa(a,b){for(var c in b)a[c]=b[c]}var A=Date.now||function(){return+new Date};function ra(a,b){b&&(a=a.replace(/\{\$([^}]+)}/g,function(a,d){return null!=b&&d in b?b[d]:a}));return a}
function B(a,b){function c(){}c.prototype=b.prototype;a.N=b.prototype;a.prototype=new c;a.prototype.constructor=a;a.base=function(a,c,f){for(var h=Array(arguments.length-2),k=2;k<arguments.length;k++)h[k-2]=arguments[k];return b.prototype[c].apply(a,h)}};function sa(a){if(Error.captureStackTrace)Error.captureStackTrace(this,sa);else{var b=Error().stack;b&&(this.stack=b)}a&&(this.message=String(a))}B(sa,Error);sa.prototype.name="CustomError";var ta;function ua(a,b){return 0==a.lastIndexOf(b,0)}function xa(a,b){var c=a.length-b.length;return 0<=c&&a.indexOf(b,c)==c}function C(a){return/^[\s\xa0]*$/.test(a)}var ya=String.prototype.trim?function(a){return a.trim()}:function(a){return a.replace(/^[\s\xa0]+|[\s\xa0]+$/g,"")};function za(a){return encodeURIComponent(String(a))}function Aa(a){return decodeURIComponent(a.replace(/\+/g," "))}
function Ba(a){if(!Ca.test(a))return a;-1!=a.indexOf("&")&&(a=a.replace(Da,"&amp;"));-1!=a.indexOf("<")&&(a=a.replace(Ea,"&lt;"));-1!=a.indexOf(">")&&(a=a.replace(Fa,"&gt;"));-1!=a.indexOf('"')&&(a=a.replace(Ga,"&quot;"));-1!=a.indexOf("'")&&(a=a.replace(Ha,"&#39;"));-1!=a.indexOf("\x00")&&(a=a.replace(Ia,"&#0;"));return a}var Da=/&/g,Ea=/</g,Fa=/>/g,Ga=/"/g,Ha=/'/g,Ia=/\x00/g,Ca=/[\x00&<>"']/;function Ja(a){return Ka(a,"&")?"document"in m?La(a):Ma(a):a}
function La(a){var b={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"'},c;c=m.document.createElement("div");return a.replace(Na,function(a,e){var f=b[a];if(f)return f;if("#"==e.charAt(0)){var h=Number("0"+e.substr(1));isNaN(h)||(f=String.fromCharCode(h))}f||(c.innerHTML=a+" ",f=c.firstChild.nodeValue.slice(0,-1));return b[a]=f})}
function Ma(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 Na=/&([^;\s<&]+);?/g;function Oa(a,b){a.length>b&&(a=a.substring(0,b-3)+"...");return a}var Pa={"\x00":"\\0","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t","\x0B":"\\x0B",'"':'\\"',"\\":"\\\\","<":"<"},Qa={"'":"\\'"};
function Ka(a,b){return-1!=a.indexOf(b)}function Ra(a,b){return Ka(a.toLowerCase(),b.toLowerCase())}function Sa(){var a;a="";var b=ra("Skip Ad \u00bb");a=a+b;b=new RegExp(Ta("\u00bb"),"");return a.replace(b,"")}function Ta(a){return String(a).replace(/([-()\[\]{}+?*.$\^|,:#<!\\])/g,"\\$1").replace(/\x08/g,"\\x08")}var Ua=String.prototype.repeat?function(a,b){return a.repeat(b)}:function(a,b){return Array(b+1).join(a)};
function Va(a,b,c){a=p(c)?a.toFixed(c):String(a);c=a.indexOf(".");-1==c&&(c=a.length);return Ua("0",Math.max(0,b-c))+a}function D(a){return null==a?"":String(a)}function Wa(a){return Array.prototype.join.call(arguments,"")}
function Xa(a,b){for(var c=0,d=ya(String(a)).split("."),e=ya(String(b)).split("."),f=Math.max(d.length,e.length),h=0;0==c&&h<f;h++){var k=d[h]||"",l=e[h]||"",n=RegExp("(\\d*)(\\D*)","g"),r=RegExp("(\\d*)(\\D*)","g");do{var u=n.exec(k)||["","",""],z=r.exec(l)||["","",""];if(0==u[0].length&&0==z[0].length)break;c=Ya(0==u[1].length?0:parseInt(u[1],10),0==z[1].length?0:parseInt(z[1],10))||Ya(0==u[2].length,0==z[2].length)||Ya(u[2],z[2])}while(0==c)}return c}function Ya(a,b){return a<b?-1:a>b?1:0}
function Za(a){for(var b=0,c=0;c<a.length;++c)b=31*b+a.charCodeAt(c)>>>0;return b}var $a=2147483648*Math.random()|0;function ab(){return"goog_"+$a++}function bb(a){var b=Number(a);return 0==b&&C(a)?NaN:b}function cb(a){return String(a).replace(/\-([a-z])/g,function(a,c){return c.toUpperCase()})}function db(a){var b=w(void 0)?Ta(void 0):"\\s";return a.replace(new RegExp("(^"+(b?"|["+b+"]+":"")+")([a-z])","g"),function(a,b,e){return b+e.toUpperCase()})}
function eb(a){isFinite(a)&&(a=String(a));return w(a)?/^\s*-?0x/i.test(a)?parseInt(a,16):parseInt(a,10):NaN}function fb(a,b,c){a=a.split(b);for(var d=[];0<c&&a.length;)d.push(a.shift()),c--;a.length&&d.push(a.join(b));return d};function gb(a){return a};function ib(a){return a[a.length-1]}
var jb=Array.prototype.indexOf?function(a,b,c){return Array.prototype.indexOf.call(a,b,c)}:function(a,b,c){c=null==c?0:0>c?Math.max(0,a.length+c):c;if(w(a))return w(b)&&1==b.length?a.indexOf(b,c):-1;for(;c<a.length;c++)if(c in a&&a[c]===b)return c;return-1},kb=Array.prototype.lastIndexOf?function(a,b,c){return Array.prototype.lastIndexOf.call(a,b,null==c?a.length-1:c)}:function(a,b,c){c=null==c?a.length-1:c;0>c&&(c=Math.max(0,a.length+c));if(w(a))return w(b)&&1==b.length?a.lastIndexOf(b,c):-1;for(;0<=
c;c--)if(c in a&&a[c]===b)return c;return-1},E=Array.prototype.forEach?function(a,b,c){Array.prototype.forEach.call(a,b,c)}:function(a,b,c){for(var d=a.length,e=w(a)?a.split(""):a,f=0;f<d;f++)f in e&&b.call(c,e[f],f,a)},lb=Array.prototype.filter?function(a,b,c){return Array.prototype.filter.call(a,b,c)}:function(a,b,c){for(var d=a.length,e=[],f=0,h=w(a)?a.split(""):a,k=0;k<d;k++)if(k in h){var l=h[k];b.call(c,l,k,a)&&(e[f++]=l)}return e},F=Array.prototype.map?function(a,b,c){return Array.prototype.map.call(a,
b,c)}:function(a,b,c){for(var d=a.length,e=Array(d),f=w(a)?a.split(""):a,h=0;h<d;h++)h in f&&(e[h]=b.call(c,f[h],h,a));return e},nb=Array.prototype.reduce?function(a,b,c,d){d&&(b=x(b,d));return Array.prototype.reduce.call(a,b,c)}:function(a,b,c,d){var e=c;E(a,function(c,h){e=b.call(d,e,c,h,a)});return e},ob=Array.prototype.some?function(a,b,c){return Array.prototype.some.call(a,b,c)}:function(a,b,c){for(var d=a.length,e=w(a)?a.split(""):a,f=0;f<d;f++)if(f in e&&b.call(c,e[f],f,a))return!0;return!1},
pb=Array.prototype.every?function(a,b,c){return Array.prototype.every.call(a,b,c)}:function(a,b,c){for(var d=a.length,e=w(a)?a.split(""):a,f=0;f<d;f++)if(f in e&&!b.call(c,e[f],f,a))return!1;return!0};function G(a,b,c){b=qb(a,b,c);return 0>b?null:w(a)?a.charAt(b):a[b]}function qb(a,b,c){for(var d=a.length,e=w(a)?a.split(""):a,f=0;f<d;f++)if(f in e&&b.call(c,e[f],f,a))return f;return-1}function rb(a,b){var c=sb(a,b,void 0);return 0>c?null:w(a)?a.charAt(c):a[c]}
function sb(a,b,c){for(var d=w(a)?a.split(""):a,e=a.length-1;0<=e;e--)if(e in d&&b.call(c,d[e],e,a))return e;return-1}function tb(a,b){return 0<=jb(a,b)}function ub(a){return 0==a.length}function vb(a){if(!ea(a))for(var b=a.length-1;0<=b;b--)delete a[b];a.length=0}function wb(a,b){tb(a,b)||a.push(b)}function xb(a,b){var c=jb(a,b),d;(d=0<=c)&&yb(a,c);return d}function yb(a,b){Array.prototype.splice.call(a,b,1)}function zb(a,b){var c=qb(a,b,void 0);0<=c&&yb(a,c)}
function Ab(a){return Array.prototype.concat.apply(Array.prototype,arguments)}function Bb(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 Cb(a,b){for(var c=1;c<arguments.length;c++){var d=arguments[c];if(fa(d)){var e=a.length||0,f=d.length||0;a.length=e+f;for(var h=0;h<f;h++)a[e+h]=d[h]}else a.push(d)}}function Db(a,b,c,d){Array.prototype.splice.apply(a,Eb(arguments,1))}
function Eb(a,b,c){return 2>=arguments.length?Array.prototype.slice.call(a,b):Array.prototype.slice.call(a,b,c)}function Fb(a,b,c){function d(a){return ia(a)?"o"+ka(a):(typeof a).charAt(0)+a}b=b||a;c=c||d;for(var e={},f=0,h=0;h<a.length;){var k=a[h++],l=c(k);Object.prototype.hasOwnProperty.call(e,l)||(e[l]=!0,b[f++]=k)}b.length=f}function Gb(a,b,c){return Hb(a,c||Ib,!1,b)}function Jb(a,b){return Hb(a,b,!0,void 0,void 0)}
function Hb(a,b,c,d,e){for(var f=0,h=a.length,k;f<h;){var l=f+h>>1,n;c?n=b.call(e,a[l],l,a):n=b(d,a[l]);0<n?f=l+1:(h=l,k=!n)}return k?f:~f}function Kb(a,b){a.sort(b||Ib)}function Lb(a,b,c){var d=c||Ib;Kb(a,function(a,c){return d(b(a),b(c))})}function Mb(a,b){Lb(a,function(a){return a[b]},void 0)}function Nb(a,b,c){if(!fa(a)||!fa(b)||a.length!=b.length)return!1;var d=a.length;c=c||Ob;for(var e=0;e<d;e++)if(!c(a[e],b[e]))return!1;return!0}function Ib(a,b){return a>b?1:a<b?-1:0}
function Ob(a,b){return a===b}function Pb(a,b,c){c=Gb(a,b,c);0>c&&Db(a,-(c+1),0,b)}function Qb(a,b,c){var d={};E(a,function(e,f){d[b.call(c,e,f,a)]=e});return d}function Rb(a){for(var b=[],c=0;c<a;c++)b[c]=0;return b}function Sb(a){for(var b=[],c=0;c<arguments.length;c++){var d=arguments[c];if(ea(d))for(var e=0;e<d.length;e+=8192)for(var f=Eb(d,e,e+8192),f=Sb.apply(null,f),h=0;h<f.length;h++)b.push(f[h]);else b.push(d)}return b};function H(){this.Na=this.Na;this.Ga=this.Ga}H.prototype.Na=!1;H.prototype.isDisposed=function(){return this.Na};H.prototype.dispose=function(){this.Na||(this.Na=!0,this.R())};function I(a,b){Tb(a,pa(Ub,b))}function Tb(a,b){a.Na?b.call(void 0):(a.Ga||(a.Ga=[]),a.Ga.push(p(void 0)?x(b,void 0):b))}H.prototype.R=function(){if(this.Ga)for(;this.Ga.length;)this.Ga.shift()()};function Ub(a){a&&"function"==typeof a.dispose&&a.dispose()}
function Vb(a){for(var b=0,c=arguments.length;b<c;++b){var d=arguments[b];fa(d)?Vb.apply(null,d):Ub(d)}};function Wb(a,b,c){for(var d in a)b.call(c,a[d],d,a)}function Xb(a,b,c){var d={},e;for(e in a)b.call(c,a[e],e,a)&&(d[e]=a[e]);return d}function Yb(a,b,c){for(var d in a)if(b.call(c,a[d],d,a))return!0;return!1}function Zb(a,b){for(var c in a)if(!b.call(void 0,a[c],c,a))return!1;return!0}function $b(a){var b=0,c;for(c in a)b++;return b}function ac(a,b){return bc(a,b)}function dc(a){var b=[],c=0,d;for(d in a)b[c++]=a[d];return b}function ec(a){var b=[],c=0,d;for(d in a)b[c++]=d;return b}
function fc(a,b){for(var c=fa(b),d=c?b:arguments,c=c?0:1;c<d.length&&(a=a[d[c]],p(a));c++);return a}function gc(a,b){return null!==a&&b in a}function bc(a,b){for(var c in a)if(a[c]==b)return!0;return!1}function hc(a,b,c){for(var d in a)if(b.call(c,a[d],d,a))return d}function ic(a,b){var c=hc(a,b,void 0);return c&&a[c]}function jc(a){for(var b in a)return!1;return!0}function kc(a){for(var b in a)delete a[b]}function lc(a,b){b in a&&delete a[b]}function mc(a,b,c){return null!==a&&b in a?a[b]:c}
function nc(a){var b={},c;for(c in a)b[c]=a[c];return b}function oc(a){var b=ca(a);if("object"==b||"array"==b){if(ha(a.clone))return a.clone();var b="array"==b?[]:{},c;for(c in a)b[c]=oc(a[c]);return b}return a}var pc="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");
function qc(a,b){for(var c,d,e=1;e<arguments.length;e++){d=arguments[e];for(c in d)a[c]=d[c];for(var f=0;f<pc.length;f++)c=pc[f],Object.prototype.hasOwnProperty.call(d,c)&&(a[c]=d[c])}}function rc(a){var b=arguments.length;if(1==b&&ea(arguments[0]))return rc.apply(null,arguments[0]);if(b%2)throw Error("Uneven number of arguments");for(var c={},d=0;d<b;d+=2)c[arguments[d]]=arguments[d+1];return c};function sc(a,b){this.type=a;this.currentTarget=this.target=b;this.defaultPrevented=this.o=!1;this.kq=!0}sc.prototype.stopPropagation=function(){this.o=!0};sc.prototype.preventDefault=function(){this.defaultPrevented=!0;this.kq=!1};function tc(a){a.stopPropagation()};function uc(a){uc[" "](a);return a}uc[" "]=v;function vc(a,b){try{return uc(a[b]),!0}catch(c){}return!1};var wc;a:{var xc=m.navigator;if(xc){var yc=xc.userAgent;if(yc){wc=yc;break a}}wc=""}function Ac(a){return Ka(wc,a)};function Bc(){return Ac("Opera")||Ac("OPR")}function Cc(){return(Ac("Chrome")||Ac("CriOS"))&&!Bc()&&!Ac("Edge")};function Dc(){return Ac("iPhone")&&!Ac("iPod")&&!Ac("iPad")};var Ec=Bc(),Fc=Ac("Trident")||Ac("MSIE"),Gc=Ac("Edge"),Hc=Gc||Fc,Ic=Ac("Gecko")&&!(Ra(wc,"WebKit")&&!Ac("Edge"))&&!(Ac("Trident")||Ac("MSIE"))&&!Ac("Edge"),Jc=Ra(wc,"WebKit")&&!Ac("Edge"),Kc=Jc&&Ac("Mobile"),Lc=Ac("Macintosh"),Mc=Ac("Android"),Nc=Dc(),Oc=Ac("iPad");function Pc(){var a=wc;if(Ic)return/rv\:([^\);]+)(\)|;)/.exec(a);if(Gc)return/Edge\/([\d\.]+)/.exec(a);if(Fc)return/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(a);if(Jc)return/WebKit\/(\S+)/.exec(a)}
function Qc(){var a=m.document;return a?a.documentMode:void 0}var Rc=function(){if(Ec&&m.opera){var a;var b=m.opera.version;try{a=b()}catch(c){a=b}return a}a="";(b=Pc())&&(a=b?b[1]:"");return Fc&&(b=Qc(),b>parseFloat(a))?String(b):a}(),Sc={};function Tc(a){return Sc[a]||(Sc[a]=0<=Xa(Rc,a))}var Uc=m.document,Vc=Uc&&Fc?Qc()||("CSS1Compat"==Uc.compatMode?parseInt(Rc,10):5):void 0;var Wc=!Fc||9<=Vc,Xc=Fc&&!Tc("9");!Jc||Tc("528");Ic&&Tc("1.9b")||Fc&&Tc("8")||Ec&&Tc("9.5")||Jc&&Tc("528");Ic&&!Tc("8")||Fc&&Tc("9");var Yc="ontouchstart"in m||!!(m.document&&document.documentElement&&"ontouchstart"in document.documentElement)||!(!m.navigator||!m.navigator.msMaxTouchPoints);function Zc(a,b){sc.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.j=this.state=null;a&&this.init(a,b)}B(Zc,sc);
Zc.prototype.init=function(a,b){var c=this.type=a.type,d=a.changedTouches?a.changedTouches[0]:null;this.target=a.target||a.srcElement;this.currentTarget=b;var e=a.relatedTarget;e?Ic&&(vc(e,"nodeName")||(e=null)):"mouseover"==c?e=a.fromElement:"mouseout"==c&&(e=a.toElement);this.relatedTarget=e;null===d?(this.clientX=void 0!==a.clientX?a.clientX:a.pageX,this.clientY=void 0!==a.clientY?a.clientY:a.pageY,this.screenX=a.screenX||0,this.screenY=a.screenY||0):(this.clientX=void 0!==d.clientX?d.clientX:
d.pageX,this.clientY=void 0!==d.clientY?d.clientY:d.pageY,this.screenX=d.screenX||0,this.screenY=d.screenY||0);this.button=a.button;this.keyCode=a.keyCode||0;this.charCode=a.charCode||("keypress"==c?a.keyCode:0);this.ctrlKey=a.ctrlKey;this.altKey=a.altKey;this.shiftKey=a.shiftKey;this.metaKey=a.metaKey;this.state=a.state;this.j=a;a.defaultPrevented&&this.preventDefault()};
Zc.prototype.stopPropagation=function(){Zc.N.stopPropagation.call(this);this.j.stopPropagation?this.j.stopPropagation():this.j.cancelBubble=!0};Zc.prototype.preventDefault=function(){Zc.N.preventDefault.call(this);var a=this.j;if(a.preventDefault)a.preventDefault();else if(a.returnValue=!1,Xc)try{if(a.ctrlKey||112<=a.keyCode&&123>=a.keyCode)a.keyCode=-1}catch(b){}};var $c="closure_listenable_"+(1E6*Math.random()|0);function ad(a){return!(!a||!a[$c])}var bd=0;function cd(a,b,c,d,e){this.listener=a;this.j=null;this.src=b;this.type=c;this.cf=!!d;this.Pc=e;this.key=++bd;this.If=this.Lh=!1}function dd(a){a.If=!0;a.listener=null;a.j=null;a.src=null;a.Pc=null};function ed(a){this.src=a;this.j={};this.o=0}function fd(a,b,c,d,e,f){var h=b.toString();b=a.j[h];b||(b=a.j[h]=[],a.o++);var k=gd(b,c,e,f);-1<k?(a=b[k],d||(a.Lh=!1)):(a=new cd(c,a.src,h,!!e,f),a.Lh=d,b.push(a));return a}ed.prototype.remove=function(a,b,c,d){a=a.toString();if(!(a in this.j))return!1;var e=this.j[a];b=gd(e,b,c,d);return-1<b?(dd(e[b]),yb(e,b),0==e.length&&(delete this.j[a],this.o--),!0):!1};
function hd(a,b){var c=b.type;if(!(c in a.j))return!1;var d=xb(a.j[c],b);d&&(dd(b),0==a.j[c].length&&(delete a.j[c],a.o--));return d}ed.prototype.removeAll=function(a){a=a&&a.toString();var b=0,c;for(c in this.j)if(!a||c==a){for(var d=this.j[c],e=0;e<d.length;e++)++b,dd(d[e]);delete this.j[c];this.o--}return b};function id(a,b,c,d,e){a=a.j[b.toString()];b=-1;a&&(b=gd(a,c,d,e));return-1<b?a[b]:null}
function gd(a,b,c,d){for(var e=0;e<a.length;++e){var f=a[e];if(!f.If&&f.listener==b&&f.cf==!!c&&f.Pc==d)return e}return-1};var jd="closure_lm_"+(1E6*Math.random()|0),kd={},ld=0;function md(a,b,c,d,e){if(ea(b)){for(var f=0;f<b.length;f++)md(a,b[f],c,d,e);return null}c=nd(c);return ad(a)?a.P(b,c,d,e):od(a,b,c,!1,d,e)}
function od(a,b,c,d,e,f){if(!b)throw Error("Invalid event type");var h=!!e,k=pd(a);k||(a[jd]=k=new ed(a));c=fd(k,b,c,d,e,f);if(c.j)return c;d=qd();c.j=d;d.src=a;d.listener=c;if(a.addEventListener)a.addEventListener(b.toString(),d,h);else if(a.attachEvent)a.attachEvent(rd(b.toString()),d);else throw Error("addEventListener and attachEvent are unavailable.");ld++;return c}
function qd(){var a=sd,b=Wc?function(c){return a.call(b.src,b.listener,c)}:function(c){c=a.call(b.src,b.listener,c);if(!c)return c};return b}function td(a,b,c,d,e){if(ea(b)){for(var f=0;f<b.length;f++)td(a,b[f],c,d,e);return null}c=nd(c);return ad(a)?fd(a.gd,String(b),c,!0,d,e):od(a,b,c,!0,d,e)}function ud(a,b,c,d,e){if(ea(b))for(var f=0;f<b.length;f++)ud(a,b[f],c,d,e);else c=nd(c),ad(a)?a.ua(b,c,d,e):a&&(a=pd(a))&&(b=id(a,b,c,!!d,e))&&vd(b)}
function vd(a){if(ga(a)||!a||a.If)return!1;var b=a.src;if(ad(b))return hd(b.gd,a);var c=a.type,d=a.j;b.removeEventListener?b.removeEventListener(c,d,a.cf):b.detachEvent&&b.detachEvent(rd(c),d);ld--;(c=pd(b))?(hd(c,a),0==c.o&&(c.src=null,b[jd]=null)):dd(a);return!0}function rd(a){return a in kd?kd[a]:kd[a]="on"+a}function wd(a,b,c,d){var e=!0;if(a=pd(a))if(b=a.j[b.toString()])for(b=b.concat(),a=0;a<b.length;a++){var f=b[a];f&&f.cf==c&&!f.If&&(f=xd(f,d),e=e&&!1!==f)}return e}
function xd(a,b){var c=a.listener,d=a.Pc||a.src;a.Lh&&vd(a);return c.call(d,b)}
function sd(a,b){if(a.If)return!0;if(!Wc){var c=b||t("window.event"),d=new Zc(c,this),e=!0;if(!(0>c.keyCode||void 0!=c.returnValue)){a:{var f=!1;if(0==c.keyCode)try{c.keyCode=-1;break a}catch(l){f=!0}if(f||void 0==c.returnValue)c.returnValue=!0}c=[];for(f=d.currentTarget;f;f=f.parentNode)c.push(f);for(var f=a.type,h=c.length-1;!d.o&&0<=h;h--){d.currentTarget=c[h];var k=wd(c[h],f,!0,d),e=e&&k}for(h=0;!d.o&&h<c.length;h++)d.currentTarget=c[h],k=wd(c[h],f,!1,d),e=e&&k}return e}return xd(a,new Zc(b,this))}
function pd(a){a=a[jd];return a instanceof ed?a:null}var yd="__closure_events_fn_"+(1E9*Math.random()>>>0);function nd(a){if(ha(a))return a;a[yd]||(a[yd]=function(b){return a.handleEvent(b)});return a[yd]};function J(){H.call(this);this.gd=new ed(this);this.La=this;this.ga=null}B(J,H);J.prototype[$c]=!0;g=J.prototype;g.Vg=function(a){this.ga=a};g.addEventListener=function(a,b,c,d){md(this,a,b,c,d)};g.removeEventListener=function(a,b,c,d){ud(this,a,b,c,d)};
g.Y=function(a){var b,c=this.ga;if(c){b=[];for(var d=1;c;c=c.ga)b.push(c),++d}c=this.La;d=a.type||a;if(w(a))a=new sc(a,c);else if(a instanceof sc)a.target=a.target||c;else{var e=a;a=new sc(d,c);qc(a,e)}var e=!0,f;if(b)for(var h=b.length-1;!a.o&&0<=h;h--)f=a.currentTarget=b[h],e=zd(f,d,!0,a)&&e;a.o||(f=a.currentTarget=c,e=zd(f,d,!0,a)&&e,a.o||(e=zd(f,d,!1,a)&&e));if(b)for(h=0;!a.o&&h<b.length;h++)f=a.currentTarget=b[h],e=zd(f,d,!1,a)&&e;return e};
g.R=function(){J.N.R.call(this);this.removeAllListeners();this.ga=null};g.P=function(a,b,c,d){return fd(this.gd,String(a),b,!1,c,d)};g.ua=function(a,b,c,d){return this.gd.remove(String(a),b,c,d)};g.removeAllListeners=function(a){return this.gd?this.gd.removeAll(a):0};function zd(a,b,c,d){b=a.gd.j[String(b)];if(!b)return!0;b=b.concat();for(var e=!0,f=0;f<b.length;++f){var h=b[f];if(h&&!h.If&&h.cf==c){var k=h.listener,l=h.Pc||h.src;h.Lh&&hd(a.gd,h);e=!1!==k.call(l,d)&&e}}return e&&0!=d.kq};function Ad(a,b,c){this.C=c;this.A=a;this.B=b;this.o=0;this.j=null}Ad.prototype.get=function(){var a;0<this.o?(this.o--,a=this.j,this.j=a.next,a.next=null):a=this.A();return a};Ad.prototype.put=function(a){this.B(a);this.o<this.C&&(this.o++,a.next=this.j,this.j=a)};function Bd(a){var b;b=b||0;return function(){return a.apply(this,Array.prototype.slice.call(arguments,0,b))}}function Cd(a){var b=arguments,c=b.length;return function(){for(var a=0;a<c;a++)if(!b[a].apply(this,arguments))return!1;return!0}};function Dd(a){m.setTimeout(function(){throw a;},0)}function Ed(a,b){var c=a;b&&(c=x(a,b));!ha(m.setImmediate)||m.Window&&m.Window.prototype&&m.Window.prototype.setImmediate==m.setImmediate?(Fd||(Fd=Gd()),Fd(c)):m.setImmediate(c)}var Fd;
function Gd(){var a=m.MessageChannel;"undefined"===typeof a&&"undefined"!==typeof window&&window.postMessage&&window.addEventListener&&!Ac("Presto")&&(a=function(){var a=document.createElement("IFRAME");a.style.display="none";a.src="";document.documentElement.appendChild(a);var b=a.contentWindow,a=b.document;a.open();a.write("");a.close();var c="callImmediate"+Math.random(),d="file:"==b.location.protocol?"*":b.location.protocol+"//"+b.location.host,a=x(function(a){if(("*"==d||a.origin==d)&&a.data==
c)this.port1.onmessage()},this);b.addEventListener("message",a,!1);this.port1={};this.port2={postMessage:function(){b.postMessage(c,d)}}});if("undefined"!==typeof a&&!Ac("Trident")&&!Ac("MSIE")){var b=new a,c={},d=c;b.port1.onmessage=function(){if(p(c.next)){c=c.next;var a=c.vn;c.vn=null;a()}};return function(a){d.next={vn: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 Hd(){this.o=this.j=null}var Jd=new Ad(function(){return new Id},function(a){a.reset()},100);Hd.prototype.remove=function(){var a=null;this.j&&(a=this.j,this.j=this.j.next,this.j||(this.o=null),a.next=null);return a};function Id(){this.next=this.scope=this.j=null}Id.prototype.set=function(a,b){this.j=a;this.scope=b;this.next=null};Id.prototype.reset=function(){this.next=this.scope=this.j=null};function Kd(a,b){Ld||Md();Nd||(Ld(),Nd=!0);var c=Od,d=Jd.get();d.set(a,b);c.o?c.o.next=d:c.j=d;c.o=d}var Ld;function Md(){if(m.Promise&&m.Promise.resolve){var a=m.Promise.resolve(void 0);Ld=function(){a.then(Pd)}}else Ld=function(){Ed(Pd)}}var Nd=!1,Od=new Hd;function Pd(){for(var a=null;a=Od.remove();){try{a.j.call(a.scope)}catch(b){Dd(b)}Jd.put(a)}Nd=!1};function Qd(a){a.prototype.then=a.prototype.then;a.prototype.$goog_Thenable=!0}function Rd(a){if(!a)return!1;try{return!!a.$goog_Thenable}catch(b){return!1}};function Sd(a,b){this.j=0;this.F=void 0;this.B=this.o=this.A=null;this.C=this.D=!1;if(a!=v)try{var c=this;a.call(b,function(a){Td(c,2,a)},function(a){Td(c,3,a)})}catch(d){Td(this,3,d)}}function Ud(){this.next=this.context=this.o=this.A=this.j=null;this.B=!1}Ud.prototype.reset=function(){this.context=this.o=this.A=this.j=null;this.B=!1};var Vd=new Ad(function(){return new Ud},function(a){a.reset()},100);function Wd(a,b,c){var d=Vd.get();d.A=a;d.o=b;d.context=c;return d}
function Yd(a){return new Sd(function(b,c){c(a)})}Sd.prototype.then=function(a,b,c){return Zd(this,ha(a)?a:null,ha(b)?b:null,c)};Qd(Sd);function $d(a,b){return Zd(a,null,b,void 0)}Sd.prototype.cancel=function(a){0==this.j&&Kd(function(){var b=new ae(a);be(this,b)},this)};
function be(a,b){if(0==a.j)if(a.A){var c=a.A;if(c.o){for(var d=0,e=null,f=null,h=c.o;h&&(h.B||(d++,h.j==a&&(e=h),!(e&&1<d)));h=h.next)e||(f=h);e&&(0==c.j&&1==d?be(c,b):(f?(d=f,d.next==c.B&&(c.B=d),d.next=d.next.next):ce(c),de(c,e,3,b)))}a.A=null}else Td(a,3,b)}function ee(a,b){a.o||2!=a.j&&3!=a.j||fe(a);a.B?a.B.next=b:a.o=b;a.B=b}
function Zd(a,b,c,d){var e=Wd(null,null,null);e.j=new Sd(function(a,h){e.A=b?function(c){try{var e=b.call(d,c);a(e)}catch(n){h(n)}}:a;e.o=c?function(b){try{var e=c.call(d,b);!p(e)&&b instanceof ae?h(b):a(e)}catch(n){h(n)}}:h});e.j.A=a;ee(a,e);return e.j}Sd.prototype.H=function(a){this.j=0;Td(this,2,a)};Sd.prototype.J=function(a){this.j=0;Td(this,3,a)};
function Td(a,b,c){if(0==a.j){a==c&&(b=3,c=new TypeError("Promise cannot resolve to itself"));a.j=1;var d;a:{var e=c,f=a.H,h=a.J;if(e instanceof Sd)ee(e,Wd(f||v,h||null,a)),d=!0;else if(Rd(e))e.then(f,h,a),d=!0;else{if(ia(e))try{var k=e.then;if(ha(k)){ge(e,k,f,h,a);d=!0;break a}}catch(l){h.call(a,l);d=!0;break a}d=!1}}d||(a.F=c,a.j=b,a.A=null,fe(a),3!=b||c instanceof ae||he(a,c))}}
function ge(a,b,c,d,e){function f(a){k||(k=!0,d.call(e,a))}function h(a){k||(k=!0,c.call(e,a))}var k=!1;try{b.call(a,h,f)}catch(l){f(l)}}function fe(a){a.D||(a.D=!0,Kd(a.G,a))}function ce(a){var b=null;a.o&&(b=a.o,a.o=b.next,b.next=null);a.o||(a.B=null);return b}Sd.prototype.G=function(){for(var a=null;a=ce(this);)de(this,a,this.j,this.F);this.D=!1};
function de(a,b,c,d){if(3==c&&b.o&&!b.B)for(;a&&a.C;a=a.A)a.C=!1;if(b.j)b.j.A=null,ie(b,c,d);else try{b.B?b.A.call(b.context):ie(b,c,d)}catch(e){je.call(null,e)}Vd.put(b)}function ie(a,b,c){2==b?a.A.call(a.context,c):a.o&&a.o.call(a.context,c)}function he(a,b){a.C=!0;Kd(function(){a.C&&je.call(null,b)})}var je=Dd;function ae(a){sa.call(this,a)}B(ae,sa);ae.prototype.name="cancel";function ke(a,b){J.call(this);this.j=a||1;this.o=b||m;this.A=x(this.Qv,this);this.B=A()}B(ke,J);g=ke.prototype;g.enabled=!1;g.ya=null;function le(a,b){a.j=b;a.ya&&a.enabled?(a.stop(),a.start()):a.ya&&a.stop()}g.Qv=function(){if(this.enabled){var a=A()-this.B;0<a&&a<.8*this.j?this.ya=this.o.setTimeout(this.A,this.j-a):(this.ya&&(this.o.clearTimeout(this.ya),this.ya=null),this.Y("tick"),this.enabled&&(this.ya=this.o.setTimeout(this.A,this.j),this.B=A()))}};
g.start=function(){this.enabled=!0;this.ya||(this.ya=this.o.setTimeout(this.A,this.j),this.B=A())};g.stop=function(){this.enabled=!1;this.ya&&(this.o.clearTimeout(this.ya),this.ya=null)};g.R=function(){ke.N.R.call(this);this.stop();delete this.o};function me(a,b,c){if(ha(a))c&&(a=x(a,c));else if(a&&"function"==typeof a.handleEvent)a=x(a.handleEvent,a);else throw Error("Invalid listener argument");return 2147483647<b?-1:m.setTimeout(a,b||0)}function ne(a){m.clearTimeout(a)};function oe(a,b,c){H.call(this);this.j=a;this.B=b||0;this.o=c;this.A=x(this.Vn,this)}B(oe,H);g=oe.prototype;g.wg=0;g.R=function(){oe.N.R.call(this);this.stop();delete this.j;delete this.o};g.start=function(a){this.stop();this.wg=me(this.A,p(a)?a:this.B)};g.Of=function(a){this.isActive()||this.start(a)};g.stop=function(){this.isActive()&&ne(this.wg);this.wg=0};function pe(a){a.stop();a.Vn()}g.isActive=function(){return 0!=this.wg};g.Vn=function(){this.wg=0;this.j&&this.j.call(this.o)};function qe(a){if(a.classList)return a.classList;a=a.className;return w(a)&&a.match(/\S+/g)||[]}function re(a,b){return a.classList?a.classList.contains(b):tb(qe(a),b)}function K(a,b){a.classList?a.classList.add(b):re(a,b)||(a.className+=0<a.className.length?" "+b:b)}function se(a,b){if(a.classList)E(b,function(b){K(a,b)});else{var c={};E(qe(a),function(a){c[a]=!0});E(b,function(a){c[a]=!0});a.className="";for(var d in c)a.className+=0<a.className.length?" "+d:d}}
function te(a,b){a.classList?a.classList.remove(b):re(a,b)&&(a.className=lb(qe(a),function(a){return a!=b}).join(" "))}function ue(a,b){a.classList?E(b,function(b){te(a,b)}):a.className=lb(qe(a),function(a){return!tb(b,a)}).join(" ")}function M(a,b,c){c?K(a,b):te(a,b)};function ve(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 we(a){return eval("("+a+")")}function xe(a){return(new ye(void 0)).$b(a)}function ye(a){this.j=a}
ye.prototype.$b=function(a){var b=[];ze(this,a,b);return b.join("")};
function ze(a,b,c){if(null==b)c.push("null");else{if("object"==typeof b){if(ea(b)){var d=b;b=d.length;c.push("[");for(var e="",f=0;f<b;f++)c.push(e),e=d[f],ze(a,a.j?a.j.call(d,String(f),e):e,c),e=",";c.push("]");return}if(b instanceof String||b instanceof Number||b instanceof Boolean)b=b.valueOf();else{c.push("{");f="";for(d in b)Object.prototype.hasOwnProperty.call(b,d)&&(e=b[d],"function"!=typeof e&&(c.push(f),Ae(d,c),c.push(":"),ze(a,a.j?a.j.call(b,d,e):e,c),f=","));c.push("}");return}}switch(typeof b){case "string":Ae(b,
c);break;case "number":c.push(isFinite(b)&&!isNaN(b)?String(b):"null");break;case "boolean":c.push(String(b));break;case "function":c.push("null");break;default:throw Error("Unknown type: "+typeof b);}}}var Be={'"':'\\"',"\\":"\\\\","/":"\\/","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t","\x0B":"\\u000b"},Ce=/\uffff/.test("\uffff")?/[\\\"\x00-\x1f\x7f-\uffff]/g:/[\\\"\x00-\x1f\x7f-\xff]/g;
function Ae(a,b){b.push('"',a.replace(Ce,function(a){var b=Be[a];b||(b="\\u"+(a.charCodeAt(0)|65536).toString(16).substr(1),Be[a]=b);return b}),'"')};function De(a,b,c){return Math.min(Math.max(a,b),c)}function Ee(a){return nb(arguments,function(a,c){return a+c},0)}function Fe(a){return Ee.apply(null,arguments)/arguments.length};function Ge(a,b){this.x=p(a)?a:0;this.y=p(b)?b:0}g=Ge.prototype;g.clone=function(){return new Ge(this.x,this.y)};function He(a,b){return a==b?!0:a&&b?a.x==b.x&&a.y==b.y:!1}g.ceil=function(){this.x=Math.ceil(this.x);this.y=Math.ceil(this.y);return this};g.floor=function(){this.x=Math.floor(this.x);this.y=Math.floor(this.y);return this};g.round=function(){this.x=Math.round(this.x);this.y=Math.round(this.y);return this};g.scale=function(a,b){var c=ga(b)?b:a;this.x*=a;this.y*=c;return this};function Ie(a,b,c,d){this.top=a;this.right=b;this.bottom=c;this.left=d}g=Ie.prototype;g.getWidth=function(){return this.right-this.left};g.getHeight=function(){return this.bottom-this.top};g.clone=function(){return new Ie(this.top,this.right,this.bottom,this.left)};g.contains=function(a){return this&&a?a instanceof Ie?a.left>=this.left&&a.right<=this.right&&a.top>=this.top&&a.bottom<=this.bottom:a.x>=this.left&&a.x<=this.right&&a.y>=this.top&&a.y<=this.bottom:!1};
g.ceil=function(){this.top=Math.ceil(this.top);this.right=Math.ceil(this.right);this.bottom=Math.ceil(this.bottom);this.left=Math.ceil(this.left);return this};g.floor=function(){this.top=Math.floor(this.top);this.right=Math.floor(this.right);this.bottom=Math.floor(this.bottom);this.left=Math.floor(this.left);return this};g.round=function(){this.top=Math.round(this.top);this.right=Math.round(this.right);this.bottom=Math.round(this.bottom);this.left=Math.round(this.left);return this};
g.scale=function(a,b){var c=ga(b)?b:a;this.left*=a;this.right*=a;this.top*=c;this.bottom*=c;return this};function N(a,b){this.width=a;this.height=b}function Je(a,b){return a==b?!0:a&&b?a.width==b.width&&a.height==b.height:!1}g=N.prototype;g.clone=function(){return new N(this.width,this.height)};g.fg=function(){return this.width/this.height};g.isEmpty=function(){return!(this.width*this.height)};g.ceil=function(){this.width=Math.ceil(this.width);this.height=Math.ceil(this.height);return this};g.floor=function(){this.width=Math.floor(this.width);this.height=Math.floor(this.height);return this};
g.round=function(){this.width=Math.round(this.width);this.height=Math.round(this.height);return this};g.scale=function(a,b){var c=ga(b)?b:a;this.width*=a;this.height*=c;return this};function Ke(a,b,c,d){this.left=a;this.top=b;this.width=c;this.height=d}g=Ke.prototype;g.clone=function(){return new Ke(this.left,this.top,this.width,this.height)};function Le(a){return new Ie(a.top,a.left+a.width,a.top+a.height,a.left)}function Me(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}
g.contains=function(a){return a instanceof Ke?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 Ne(a){return new N(a.width,a.height)}function Oe(a){return new Ge(a.left,a.top)}g.ceil=function(){this.left=Math.ceil(this.left);this.top=Math.ceil(this.top);this.width=Math.ceil(this.width);this.height=Math.ceil(this.height);return this};
g.floor=function(){this.left=Math.floor(this.left);this.top=Math.floor(this.top);this.width=Math.floor(this.width);this.height=Math.floor(this.height);return this};g.round=function(){this.left=Math.round(this.left);this.top=Math.round(this.top);this.width=Math.round(this.width);this.height=Math.round(this.height);return this};g.scale=function(a,b){var c=ga(b)?b:a;this.left*=a;this.width*=a;this.top*=c;this.height*=c;return this};var Pe={area:!0,base:!0,br:!0,col:!0,command:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0};var Qe=/<[^>]*>|&[^;]+;/g;function Re(a,b){return b?a.replace(Qe,""):a}
var Se=RegExp("[\u0591-\u06ef\u06fa-\u07ff\u200f\ufb1d-\ufdff\ufe70-\ufefc]"),Te=RegExp("[A-Za-z\u00c0-\u00d6\u00d8-\u00f6\u00f8-\u02b8\u0300-\u0590\u0800-\u1fff\u200e\u2c00-\ufb1c\ufe00-\ufe6f\ufefd-\uffff]"),Ue=RegExp("^[^A-Za-z\u00c0-\u00d6\u00d8-\u00f6\u00f8-\u02b8\u0300-\u0590\u0800-\u1fff\u200e\u2c00-\ufb1c\ufe00-\ufe6f\ufefd-\uffff]*[\u0591-\u06ef\u06fa-\u07ff\u200f\ufb1d-\ufdff\ufe70-\ufefc]"),Ve=/^http:\/\/.*/,We=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Arab|Hebr|Thaa|Nkoo|Tfng))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i,Xe=
/\s+/,Ye=/[\d\u06f0-\u06f9]/;function Ze(){this.j="";this.o=$e}Ze.prototype.He=!0;Ze.prototype.kd=function(){return this.j};Ze.prototype.toString=function(){return"Const{"+this.j+"}"};function af(a){return a instanceof Ze&&a.constructor===Ze&&a.o===$e?a.j:"type_error:Const"}var $e={};function bf(a){var b=new Ze;b.j=a;return b};function cf(){this.j="";this.o=df}cf.prototype.He=!0;var df={};cf.prototype.kd=function(){return this.j};function ef(a){var b=new cf;b.j=a;return b}var ff=ef(""),gf=/^[-,."'%_!# a-zA-Z0-9]+$/;function hf(){this.j="";this.o=jf}hf.prototype.He=!0;hf.prototype.kd=function(){return this.j};hf.prototype.Sk=!0;hf.prototype.gf=function(){return 1};function kf(a){return a instanceof hf&&a.constructor===hf&&a.o===jf?a.j:"type_error:SafeUrl"}var lf=/^(?:(?:https?|mailto|ftp):|[^&:/?#]*(?:[/?#]|$))/i;function mf(a){if(a instanceof hf)return a;a=a.He?a.kd():String(a);lf.test(a)||(a="about:invalid#zClosurez");var b=new hf;b.j=a;return b}var jf={};function nf(){this.j=of}nf.prototype.He=!0;nf.prototype.kd=function(){return""};nf.prototype.Sk=!0;nf.prototype.gf=function(){return 1};function pf(a){return a instanceof nf&&a.constructor===nf&&a.j===of?"":"type_error:TrustedResourceUrl"}var of={};function qf(){this.j="";this.A=rf;this.o=null}qf.prototype.Sk=!0;qf.prototype.gf=function(){return this.o};qf.prototype.He=!0;qf.prototype.kd=function(){return this.j};function sf(a){return a instanceof qf&&a.constructor===qf&&a.A===rf?a.j:"type_error:SafeHtml"}var tf=/^[a-zA-Z0-9-]+$/,uf={action:!0,cite:!0,data:!0,formaction:!0,href:!0,manifest:!0,poster:!0,src:!0},vf={EMBED:!0,IFRAME:!0,LINK:!0,OBJECT:!0,SCRIPT:!0,STYLE:!0,TEMPLATE:!0};
function wf(a){function b(a){if(ea(a))E(a,b);else{var f;a instanceof qf?f=a:(f=null,a.Sk&&(f=a.gf()),a=Ba(a.He?a.kd():String(a)),f=xf(a,f));d+=sf(f);f=f.gf();0==c?c=f:0!=f&&c!=f&&(c=null)}}var c=0,d="";E(arguments,b);return xf(d,c)}var rf={};function xf(a,b){var c=new qf;c.j=a;c.o=b;return c}xf("<!DOCTYPE html>",0);xf("",0);var yf=!Fc||9<=Vc,zf=!Ic&&!Fc||Fc&&9<=Vc||Ic&&Tc("1.9.1");Fc&&Tc("9");var Af=Fc||Ec||Jc;function Bf(a){return a?new Cf(Df(a)):ta||(ta=new Cf)}function Ef(a){var b=a||document;return b.querySelectorAll&&b.querySelector?b.querySelectorAll(".iv-click-target"):Ff("*","iv-click-target",a)}function Gf(a,b){var c=b||document,d=null;c.getElementsByClassName?d=c.getElementsByClassName(a)[0]:c.querySelectorAll&&c.querySelector?d=c.querySelector("."+a):d=Ff("*",a,b)[0];return d||null}
function Ff(a,b,c){var d=document;c=c||d;a=a&&"*"!=a?a.toUpperCase():"";if(c.querySelectorAll&&c.querySelector&&(a||b))return c.querySelectorAll(a+(b?"."+b:""));if(b&&c.getElementsByClassName){c=c.getElementsByClassName(b);if(a){for(var d={},e=0,f=0,h;h=c[f];f++)a==h.nodeName&&(d[e++]=h);d.length=e;return d}return c}c=c.getElementsByTagName(a||"*");if(b){d={};for(f=e=0;h=c[f];f++)a=h.className,"function"==typeof a.split&&tb(a.split(/\s+/),b)&&(d[e++]=h);d.length=e;return d}return c}
function Hf(a,b){Wb(b,function(b,d){"style"==d?a.style.cssText=b:"class"==d?a.className=b:"for"==d?a.htmlFor=b:If.hasOwnProperty(d)?a.setAttribute(If[d],b):ua(d,"aria-")||ua(d,"data-")?a.setAttribute(d,b):a[d]=b})}var If={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 Jf(a){a=a.document;a="CSS1Compat"==a.compatMode?a.documentElement:a.body;return new N(a.clientWidth,a.clientHeight)}function Kf(a){var b=Mf(a);a=a.parentWindow||a.defaultView;return Fc&&Tc("10")&&a.pageYOffset!=b.scrollTop?new Ge(b.scrollLeft,b.scrollTop):new Ge(a.pageXOffset||b.scrollLeft,a.pageYOffset||b.scrollTop)}function Mf(a){return a.scrollingElement?a.scrollingElement:Jc||"CSS1Compat"!=a.compatMode?a.body||a.documentElement:a.documentElement}
function Nf(a){return a?a.parentWindow||a.defaultView:window}function O(a,b,c){return Of(document,arguments)}function Of(a,b){var c=b[0],d=b[1];if(!yf&&d&&(d.name||d.type)){c=["<",c];d.name&&c.push(' name="',Ba(d.name),'"');if(d.type){c.push(' type="',Ba(d.type),'"');var e={};qc(e,d);delete e.type;d=e}c.push(">");c=c.join("")}c=a.createElement(c);d&&(w(d)?c.className=d:ea(d)?c.className=d.join(" "):Hf(c,d));2<b.length&&Pf(a,c,b,2);return c}
function Pf(a,b,c,d){function e(c){c&&b.appendChild(w(c)?a.createTextNode(c):c)}for(;d<c.length;d++){var f=c[d];!fa(f)||ia(f)&&0<f.nodeType?e(f):E(Qf(f)?Bb(f):f,e)}}function Rf(a){return document.createElement(a)}function Sf(a,b){a.appendChild(b)}function Tf(a,b){Pf(Df(a),a,arguments,1)}function Uf(a){for(var b;b=a.firstChild;)a.removeChild(b)}function Vf(a,b,c){a.insertBefore(b,a.childNodes[c]||null)}function Wf(a){a&&a.parentNode&&a.parentNode.removeChild(a)}
function Xf(a,b){var c=b.parentNode;c&&c.replaceChild(a,b)}function Yf(a){return zf&&void 0!=a.children?a.children:lb(a.childNodes,function(a){return 1==a.nodeType})}function Zf(a){return p(a.firstElementChild)?a.firstElementChild:$f(a.firstChild)}function $f(a){for(;a&&1!=a.nodeType;)a=a.nextSibling;return a}function ag(a){var b;if(Af&&!(Fc&&Tc("9")&&!Tc("10")&&m.SVGElement&&a instanceof m.SVGElement)&&(b=a.parentElement))return b;b=a.parentNode;return ia(b)&&1==b.nodeType?b:null}
function bg(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 Df(a){return 9==a.nodeType?a:a.ownerDocument||a.document}function cg(a){try{return a.contentWindow||(a.contentDocument?Nf(a.contentDocument):null)}catch(b){}return null}
function dg(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{Uf(a);var c=Df(a);a.appendChild(c.createTextNode(String(b)))}}function eg(a){if("outerHTML"in a)return a.outerHTML;var b=Df(a).createElement("DIV");b.appendChild(a.cloneNode(!0));return b.innerHTML}
function fg(a){var b;(b="A"==a.tagName||"INPUT"==a.tagName||"TEXTAREA"==a.tagName||"SELECT"==a.tagName||"BUTTON"==a.tagName?!a.disabled&&(!gg(a)||hg(a)):gg(a)&&hg(a))&&Fc?(a=ha(a.getBoundingClientRect)?a.getBoundingClientRect():{height:a.offsetHeight,width:a.offsetWidth},a=null!=a&&0<a.height&&0<a.width):a=b;return a}function gg(a){a=a.getAttributeNode("tabindex");return null!=a&&a.specified}function hg(a){a=a.tabIndex;return ga(a)&&0<=a&&32768>a}
function Qf(a){if(a&&"number"==typeof a.length){if(ia(a))return"function"==typeof a.item||"string"==typeof a.item;if(ha(a))return"function"==typeof a.item}return!1}function ig(a,b,c,d){if(!b&&!c)return null;var e=b?b.toUpperCase():null;return jg(a,function(a){return(!e||a.nodeName==e)&&(!c||w(a.className)&&tb(a.className.split(/\s+/),c))},d)}function kg(a,b){return ig(a,null,b,void 0)}function jg(a,b,c){for(var d=null==c,e=0;a&&(d||e<=c);){if(b(a))return a;a=a.parentNode;e++}return null}
function Cf(a){this.j=a||m.document||document}g=Cf.prototype;g.la=function(a){return w(a)?this.j.getElementById(a):a};g.Sv=function(a,b,c){return Of(this.j,arguments)};g.createElement=function(a){return this.j.createElement(a)};function lg(a){a=a.j;return a.parentWindow||a.defaultView}function mg(a){return Kf(a.j)}g.appendChild=Sf;g.append=Tf;g.contains=bg;function ng(){return Jc?"Webkit":Ic?"Moz":Fc?"ms":Ec?"O":null};function og(a,b,c){if(w(b))(b=pg(a,b))&&(a.style[b]=c);else for(var d in b){c=a;var e=b[d],f=pg(c,d);f&&(c.style[f]=e)}}var qg={};function pg(a,b){var c=qg[b];if(!c){var d=cb(b),c=d;void 0===a.style[d]&&(d=ng()+db(d),void 0!==a.style[d]&&(c=d));qg[b]=c}return c}function rg(a,b){var c=a.style[cb(b)];return"undefined"!==typeof c?c:a.style[pg(a,b)]||""}
function sg(a,b){var c=Df(a);return c.defaultView&&c.defaultView.getComputedStyle&&(c=c.defaultView.getComputedStyle(a,null))?c[b]||c.getPropertyValue(b)||"":""}function tg(a,b){return sg(a,b)||(a.currentStyle?a.currentStyle[b]:null)||a.style&&a.style[b]}function ug(a,b,c){var d;b instanceof Ge?(d=b.x,b=b.y):(d=b,b=c);a.style.left=vg(d,!1);a.style.top=vg(b,!1)}function wg(a){return new Ge(a.offsetLeft,a.offsetTop)}
function xg(a){var b;try{b=a.getBoundingClientRect()}catch(c){return{left:0,top:0,right:0,bottom:0}}Fc&&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 yg(a){if(Fc&&!(8<=Vc))return a.offsetParent;var b=Df(a),c=tg(a,"position"),d="fixed"==c||"absolute"==c;for(a=a.parentNode;a&&a!=b;a=a.parentNode)if(11==a.nodeType&&a.host&&(a=a.host),c=tg(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 zg(a){for(var b=new Ie(0,Infinity,Infinity,0),c=Bf(a),d=c.j.body,e=c.j.documentElement,f=Mf(c.j);a=yg(a);)if(!(Fc&&0==a.clientWidth||Jc&&0==a.clientHeight&&a==d)&&a!=d&&a!=e&&"visible"!=tg(a,"overflow")){var h=Ag(a),k=new Ge(a.clientLeft,a.clientTop);h.x+=k.x;h.y+=k.y;b.top=Math.max(b.top,h.y);b.right=Math.min(b.right,h.x+a.clientWidth);b.bottom=Math.min(b.bottom,h.y+a.clientHeight);b.left=Math.max(b.left,h.x)}d=f.scrollLeft;f=f.scrollTop;b.left=Math.max(b.left,d);b.top=Math.max(b.top,f);
c=Jf(lg(c)||window);b.right=Math.min(b.right,d+c.width);b.bottom=Math.min(b.bottom,f+c.height);return 0<=b.top&&0<=b.left&&b.bottom>b.top&&b.right>b.left?b:null}function Ag(a){var b=Df(a),c=new Ge(0,0),d;d=b?Df(b):document;var e;(e=!Fc)||(e=9<=Vc);e||(e="CSS1Compat"==Bf(d).j.compatMode);if(a==(e?d.documentElement:d.body))return c;a=xg(a);b=mg(Bf(b));c.x=a.left+b.x;c.y=a.top+b.y;return c}
function Bg(a,b){var c=new Ge(0,0),d=Nf(Df(a));if(!vc(d,"parent"))return c;var e=a;do{var f=d==b?Ag(e):Cg(e);c.x+=f.x;c.y+=f.y}while(d&&d!=b&&d!=d.parent&&(e=d.frameElement)&&(d=d.parent));return c}function Eg(a,b){var c=Fg(a),d=Fg(b);return new Ge(c.x-d.x,c.y-d.y)}function Cg(a){a=xg(a);return new Ge(a.left,a.top)}function Fg(a){if(1==a.nodeType)return Cg(a);a=a.changedTouches?a.changedTouches[0]:a;return new Ge(a.clientX,a.clientY)}
function Gg(a,b,c){if(b instanceof N)c=b.height,b=b.width;else if(void 0==c)throw Error("missing height argument");Hg(a,b);a.style.height=vg(c,!0)}function vg(a,b){"number"==typeof a&&(a=(b?Math.round(a):a)+"px");return a}function Hg(a,b){a.style.width=vg(b,!0)}function Ig(a){return Jg(a)}
function Jg(a){var b=Kg;if("none"!=tg(a,"display"))return b(a);var c=a.style,d=c.display,e=c.visibility,f=c.position;c.visibility="hidden";c.position="absolute";c.display="inline";a=b(a);c.display=d;c.position=f;c.visibility=e;return a}function Kg(a){var b=a.offsetWidth,c=a.offsetHeight,d=Jc&&!b&&!c;return p(b)&&!d||!a.getBoundingClientRect?new N(b,c):(a=xg(a),new N(a.right-a.left,a.bottom-a.top))}function Lg(a){var b=Ag(a);a=Jg(a);return new Ke(b.x,b.y,a.width,a.height)}
function Mg(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 Ng(a,b){a.style.display=b?"":"none"}function Og(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}var Pg=/[^\d]+$/,Qg={cm:1,"in":1,mm:1,pc:1,pt:1},Rg={em:1,ex:1};
function Sg(a){var b=tg(a,"fontSize"),c;c=(c=b.match(Pg))&&c[0]||null;if(b&&"px"==c)return parseInt(b,10);if(Fc){if(c in Qg)return Og(a,b);if(a.parentNode&&1==a.parentNode.nodeType&&c in Rg)return a=a.parentNode,c=tg(a,"fontSize"),Og(a,b==c?"1em":b)}c=O("SPAN",{style:"visibility:hidden;position:absolute;line-height:0;padding:0;margin:0;border:0;height:1em;"});a.appendChild(c);b=c.offsetHeight;Wf(c);return b};var Tg="StopIteration"in m?m.StopIteration:{message:"StopIteration",stack:""};function Ug(){}Ug.prototype.next=function(){throw Tg;};Ug.prototype.Ub=function(){return this};function Vg(a){if(a instanceof Ug)return a;if("function"==typeof a.Ub)return a.Ub(!1);if(fa(a)){var b=0,c=new Ug;c.next=function(){for(;;){if(b>=a.length)throw Tg;if(b in a)return a[b++];b++}};return c}throw Error("Not implemented");}
function Wg(a,b,c){if(fa(a))try{E(a,b,c)}catch(d){if(d!==Tg)throw d;}else{a=Vg(a);try{for(;;)b.call(c,a.next(),void 0,a)}catch(d){if(d!==Tg)throw d;}}}function Xg(a){if(fa(a))return Bb(a);a=Vg(a);var b=[];Wg(a,function(a){b.push(a)});return b};function Yg(a,b){this.o={};this.j=[];this.he=this.va=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 Yg?(c=a.Ma(),d=a.Ia()):(c=ec(a),d=dc(a));for(var e=0;e<c.length;e++)this.set(c[e],d[e])}}g=Yg.prototype;g.ab=function(){return this.va};g.Ia=function(){Zg(this);for(var a=[],b=0;b<this.j.length;b++)a.push(this.o[this.j[b]]);return a};g.Ma=function(){Zg(this);return this.j.concat()};
function $g(a,b){return ah(a.o,b)}g.we=function(a){for(var b=0;b<this.j.length;b++){var c=this.j[b];if(ah(this.o,c)&&this.o[c]==a)return!0}return!1};g.equals=function(a,b){if(this===a)return!0;if(this.va!=a.ab())return!1;var c=b||bh;Zg(this);for(var d,e=0;d=this.j[e];e++)if(!c(this.get(d),a.get(d)))return!1;return!0};function bh(a,b){return a===b}g.isEmpty=function(){return 0==this.va};g.clear=function(){this.o={};this.he=this.va=this.j.length=0};
g.remove=function(a){return ah(this.o,a)?(delete this.o[a],this.va--,this.he++,this.j.length>2*this.va&&Zg(this),!0):!1};function Zg(a){if(a.va!=a.j.length){for(var b=0,c=0;b<a.j.length;){var d=a.j[b];ah(a.o,d)&&(a.j[c++]=d);b++}a.j.length=c}if(a.va!=a.j.length){for(var e={},c=b=0;b<a.j.length;)d=a.j[b],ah(e,d)||(a.j[c++]=d,e[d]=1),b++;a.j.length=c}}g.get=function(a,b){return ah(this.o,a)?this.o[a]:b};g.set=function(a,b){ah(this.o,a)||(this.va++,this.j.push(a),this.he++);this.o[a]=b};
g.forEach=function(a,b){for(var c=this.Ma(),d=0;d<c.length;d++){var e=c[d],f=this.get(e);a.call(b,f,e,this)}};g.clone=function(){return new Yg(this)};g.Ub=function(a){Zg(this);var b=0,c=this.he,d=this,e=new Ug;e.next=function(){if(c!=d.he)throw Error("The map has changed since the iterator was created");if(b>=d.j.length)throw Tg;var e=d.j[b++];return a?e:d.o[e]};return e};function ah(a,b){return Object.prototype.hasOwnProperty.call(a,b)};function ch(a){return a.ab&&"function"==typeof a.ab?a.ab():fa(a)||w(a)?a.length:$b(a)}function dh(a){if(a.Ia&&"function"==typeof a.Ia)return a.Ia();if(w(a))return a.split("");if(fa(a)){for(var b=[],c=a.length,d=0;d<c;d++)b.push(a[d]);return b}return dc(a)}function eh(a){if(a.Ma&&"function"==typeof a.Ma)return a.Ma();if(!a.Ia||"function"!=typeof a.Ia){if(fa(a)||w(a)){var b=[];a=a.length;for(var c=0;c<a;c++)b.push(c);return b}return ec(a)}}
function fh(a,b,c){if(a.forEach&&"function"==typeof a.forEach)a.forEach(b,c);else if(fa(a)||w(a))E(a,b,c);else for(var d=eh(a),e=dh(a),f=e.length,h=0;h<f;h++)b.call(c,e[h],d&&d[h],a)}function gh(a,b,c){if("function"==typeof a.every)return a.every(b,c);if(fa(a)||w(a))return pb(a,b,c);for(var d=eh(a),e=dh(a),f=e.length,h=0;h<f;h++)if(!b.call(c,e[h],d&&d[h],a))return!1;return!0};function hh(a,b,c,d,e,f,h){var k="";a&&(k+=a+":");c&&(k+="//",b&&(k+=b+"@"),k+=c,d&&(k+=":"+d));e&&(k+=e);f&&(k+="?"+f);h&&(k+="#"+h);return k}var ih=/^(?:([^:/?#.]+):)?(?:\/\/(?:([^/?#]*)@)?([^/#?]*?)(?::([0-9]+))?(?=[/#?]|$))?([^?#]+)?(?:\?([^#]*))?(?:#(.*))?$/;function jh(a){return a.match(ih)}function kh(a){return a?decodeURI(a):a}function lh(a){return kh(jh(a)[3]||null)}function mh(a){return Number(jh(a)[4]||null)||null}
function nh(a,b){if(a)for(var c=a.split("&"),d=0;d<c.length;d++){var e=c[d].indexOf("="),f=null,h=null;0<=e?(f=c[d].substring(0,e),h=c[d].substring(e+1)):f=c[d];b(f,h?Aa(h):"")}}function oh(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 ph(a,b,c){if(ea(b))for(var d=0;d<b.length;d++)ph(a,String(b[d]),c);else null!=b&&c.push("&",a,""===b?"":"=",za(b))}
function qh(a,b,c){for(c=c||0;c<b.length;c+=2)ph(b[c],b[c+1],a);return a}function rh(a,b){for(var c in b)ph(c,b[c],a);return a}function sh(a){a=rh([],a);a[0]="";return a.join("")}function th(a,b){return oh(2==arguments.length?qh([a],arguments[1],0):qh([a],arguments,1))}function uh(a,b){return oh(rh([a],b))}function vh(a,b,c,d){for(var e=c.length;0<=(b=a.indexOf(c,b))&&b<d;){var f=a.charCodeAt(b-1);if(38==f||63==f)if(f=a.charCodeAt(b+e),!f||61==f||38==f||35==f)return b;b+=e+1}return-1}var wh=/#|$/;
function xh(a,b){var c=a.search(wh),d=vh(a,0,b,c);if(0>d)return null;var e=a.indexOf("&",d);if(0>e||e>c)e=c;d+=b.length+1;return Aa(a.substr(d,e-d))}var yh=/[?&]($|#)/;function zh(a,b,c){for(var d=a.search(wh),e=0,f,h=[];0<=(f=vh(a,e,b,d));)h.push(a.substring(e,f)),e=Math.min(a.indexOf("&",f)+1||d,d);h.push(a.substr(e));a=[h.join("").replace(yh,"$1"),"&",b];null!=c&&a.push("=",za(c));return oh(a)};function P(a,b){this.o=this.G=this.B="";this.C=null;this.H=this.A="";this.D=!1;var c;a instanceof P?(this.D=p(b)?b:a.D,Ah(this,a.B),this.G=a.G,Bh(this,a.o),Ch(this,a.C),Dh(this,a.A),Eh(this,a.j.clone()),this.H=a.hf()):a&&(c=jh(String(a)))?(this.D=!!b,Ah(this,c[1]||"",!0),this.G=Fh(c[2]||""),Bh(this,c[3]||"",!0),Ch(this,c[4]),Dh(this,c[5]||"",!0),Eh(this,c[6]||"",!0),this.H=Fh(c[7]||"")):(this.D=!!b,this.j=new Gh(null,0,this.D))}g=P.prototype;
g.toString=function(){var a=[],b=this.B;b&&a.push(Hh(b,Ih,!0),":");var c=this.o;if(c||"file"==b)a.push("//"),(b=this.G)&&a.push(Hh(b,Ih,!0),"@"),a.push(za(c).replace(/%25([0-9a-fA-F]{2})/g,"%$1")),c=this.C,null!=c&&a.push(":",String(c));if(c=this.A)this.o&&"/"!=c.charAt(0)&&a.push("/"),a.push(Hh(c,"/"==c.charAt(0)?Jh:Kh,!0));(c=this.j.toString())&&a.push("?",c);(c=this.hf())&&a.push("#",Hh(c,Lh));return a.join("")};
g.resolve=function(a){var b=this.clone(),c=!!a.B;c?Ah(b,a.B):c=!!a.G;c?b.G=a.G:c=!!a.o;c?Bh(b,a.o):c=null!=a.C;var d=a.A;if(c)Ch(b,a.C);else if(c=!!a.A){if("/"!=d.charAt(0))if(this.o&&!this.A)d="/"+d;else{var e=b.A.lastIndexOf("/");-1!=e&&(d=b.A.substr(0,e+1)+d)}e=d;if(".."==e||"."==e)d="";else if(Ka(e,"./")||Ka(e,"/.")){for(var d=ua(e,"/"),e=e.split("/"),f=[],h=0;h<e.length;){var k=e[h++];"."==k?d&&h==e.length&&f.push(""):".."==k?((1<f.length||1==f.length&&""!=f[0])&&f.pop(),d&&h==e.length&&f.push("")):
(f.push(k),d=!0)}d=f.join("/")}else d=e}c?Dh(b,d):c=""!==a.j.toString();c?Eh(b,Fh(a.j.toString())):c=!!a.H;c&&(b.H=a.hf());return b};g.clone=function(){return new P(this)};function Ah(a,b,c){a.B=c?Fh(b,!0):b;a.B&&(a.B=a.B.replace(/:$/,""))}function Mh(a){return a.o}function Bh(a,b,c){a.o=c?Fh(b,!0):b;return a}function Ch(a,b){if(b){b=Number(b);if(isNaN(b)||0>b)throw Error("Bad port number "+b);a.C=b}else a.C=null;return a}function Dh(a,b,c){a.A=c?Fh(b,!0):b}
function Eh(a,b,c){b instanceof Gh?(a.j=b,Nh(a.j,a.D)):(c||(b=Hh(b,Oh)),a.j=new Gh(b,0,a.D));return a}function Ph(a){return a.j}g.Un=function(){return this.j.toString()};function Qh(a,b,c){a.j.set(b,c);return a}function Rh(a,b,c){ea(c)||(c=[String(c)]);Sh(a.j,b,c)}g.hf=function(){return this.H};function Th(a){Qh(a,"zx",Math.floor(2147483648*Math.random()).toString(36)+Math.abs(Math.floor(2147483648*Math.random())^A()).toString(36));return a}
function Uh(a){return a instanceof P?a.clone():new P(a,void 0)}function Vh(a,b,c,d){var e=new P(null,void 0);a&&Ah(e,a);b&&Bh(e,b);c&&Ch(e,c);d&&Dh(e,d);return e}function Fh(a,b){return a?b?decodeURI(a.replace(/%25/g,"%2525")):decodeURIComponent(a):""}function Hh(a,b,c){return w(a)?(a=encodeURI(a).replace(b,Wh),c&&(a=a.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),a):null}function Wh(a){a=a.charCodeAt(0);return"%"+(a>>4&15).toString(16)+(a&15).toString(16)}
var Ih=/[#\/\?@]/g,Kh=/[\#\?:]/g,Jh=/[\#\?]/g,Oh=/[\#\?@]/g,Lh=/#/g;function Gh(a,b,c){this.va=this.j=null;this.o=a||null;this.A=!!c}function Xh(a){a.j||(a.j=new Yg,a.va=0,a.o&&nh(a.o,function(b,c){Yh(a,Aa(b),c)}))}g=Gh.prototype;g.ab=function(){Xh(this);return this.va};function Yh(a,b,c){Xh(a);a.o=null;b=Zh(a,b);var d=a.j.get(b);d||a.j.set(b,d=[]);d.push(c);a.va++}g.remove=function(a){Xh(this);a=Zh(this,a);return $g(this.j,a)?(this.o=null,this.va-=this.j.get(a).length,this.j.remove(a)):!1};
g.clear=function(){this.j=this.o=null;this.va=0};g.isEmpty=function(){Xh(this);return 0==this.va};function $h(a,b){Xh(a);b=Zh(a,b);return $g(a.j,b)}g.we=function(a){var b=this.Ia();return tb(b,a)};g.Ma=function(){Xh(this);for(var a=this.j.Ia(),b=this.j.Ma(),c=[],d=0;d<b.length;d++)for(var e=a[d],f=0;f<e.length;f++)c.push(b[d]);return c};g.Ia=function(a){Xh(this);var b=[];if(w(a))$h(this,a)&&(b=Ab(b,this.j.get(Zh(this,a))));else{a=this.j.Ia();for(var c=0;c<a.length;c++)b=Ab(b,a[c])}return b};
g.set=function(a,b){Xh(this);this.o=null;a=Zh(this,a);$h(this,a)&&(this.va-=this.j.get(a).length);this.j.set(a,[b]);this.va++;return this};g.get=function(a,b){var c=a?this.Ia(a):[];return 0<c.length?String(c[0]):b};function Sh(a,b,c){a.remove(b);0<c.length&&(a.o=null,a.j.set(Zh(a,b),Bb(c)),a.va+=c.length)}
g.toString=function(){if(this.o)return this.o;if(!this.j)return"";for(var a=[],b=this.j.Ma(),c=0;c<b.length;c++)for(var d=b[c],e=za(d),d=this.Ia(d),f=0;f<d.length;f++){var h=e;""!==d[f]&&(h+="="+za(d[f]));a.push(h)}return this.o=a.join("&")};g.clone=function(){var a=new Gh;a.o=this.o;this.j&&(a.j=this.j.clone(),a.va=this.va);return a};function Zh(a,b){var c=String(b);a.A&&(c=c.toLowerCase());return c}
function Nh(a,b){b&&!a.A&&(Xh(a),a.o=null,a.j.forEach(function(a,b){var e=b.toLowerCase();b!=e&&(this.remove(b),Sh(this,e,a))},a));a.A=b}g.extend=function(a){for(var b=0;b<arguments.length;b++)fh(arguments[b],function(a,b){Yh(this,b,a)},this)};var ai=void 0;
function bi(){return ai?'<div class="ytp-icon ytp-icon-cast-desktop-on"></div>':'<svg xmlns:xlink="http://www.w3.org/1999/xlink" height="100%" version="1.1" viewBox="0 0 36 36" width="100%"><defs><path d="M17.17,22 L25,22 L25,14 L12,14 L12,16.76 C11.06,16.30 10.05,15.97 9,15.79 L9,11 L28,11 L28,25 L18.12,25 C17.94,23.94 17.62,22.93 17.17,22 L17.17,22 Z M15.09,26 C14.69,22.23 11.73,19.24 8,18.84 L8,17.11 C12.68,17.52 16.40,21.28 16.81,26 L15.09,26 Z M11.91,26 C11.55,23.99 9.99,22.41 8,22.05 L8,20.32 C10.93,20.71 13.24,23.03 13.62,26 L11.91,26 Z M8,26 L8,23.52 C9.20,23.84 10.13,24.78 10.45,26 L8,26 Z M13,17.31 L13,15 L24,15 L24,21 L16.63,21 C15.72,19.50 14.47,18.24 13,17.31 L13,17.31 Z" id="ytp-svg-5" /></defs><use class="ytp-svg-shadow" xlink:href="#ytp-svg-5" /><use class="ytp-svg-fill" xlink:href="#ytp-svg-5" /></svg>'}
function ci(){return ai?'<div class="ytp-icon ytp-icon-clip-clear"></div>':'<svg height="100%" version="1.1" viewBox="0 0 14 14" width="100%"><path d="M14,14 L14,0 L0,0 L0,14 L14,14 Z" /><path d="M7.15,8.35 L9.25,10.45 L10.65,9.05 L8.55,6.95 L10.7,4.8 L9.3,3.4 L7.15,5.55 L5,3.4 L3.6,4.8 L5.75,6.95 L3.65,9.05 L5.05,10.45 L7.15,8.35 Z" fill="#fff" /></svg>'}
function di(){return ai?'<div class="ytp-icon ytp-icon-clip-end"></div>':'<svg xmlns:xlink="http://www.w3.org/1999/xlink" height="100%" version="1.1" viewBox="0 0 14 14" width="100%"><defs><path d="M2,14 L5,11 L5,3 L2,0 L9,0 L9,14 L2,14 L2,14 Z" id="ytp-svg-6" /></defs><use stroke="#000" stroke-opacity=".15" xlink:href="#ytp-svg-6" /><use fill="#eaeaea" xlink:href="#ytp-svg-6" /></svg>'}
function ei(){return ai?'<div class="ytp-icon ytp-icon-clip-start"></div>':'<svg xmlns:xlink="http://www.w3.org/1999/xlink" height="100%" version="1.1" viewBox="0 0 14 14" width="100%"><defs><path d="M12,14 L9,11 L9,3 L12,0 L5,0 L5,14 L12,14 Z" id="ytp-svg-7" /></defs><use stroke="#000" stroke-opacity=".15" xlink:href="#ytp-svg-7" /><use fill="#eaeaea" xlink:href="#ytp-svg-7" /></svg>'}
function fi(){return ai?'<div class="ytp-icon ytp-icon-close"></div>':'<svg height="100%" viewBox="0 0 24 24" width="100%"><path d="M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z" fill="#fff" /></svg>'}
function gi(){return'<svg height="100%" version="1.1" viewBox="0 0 22 22" width="100%"><svg x="7" y="1"><circle class="ytp-spinner-dot ytp-spinner-dot-0" cx="4" cy="4" r="2" /></svg><svg x="11" y="3"><circle class="ytp-spinner-dot ytp-spinner-dot-1" cx="4" cy="4" r="2" /></svg><svg x="13" y="7"><circle class="ytp-spinner-dot ytp-spinner-dot-2" cx="4" cy="4" r="2" /></svg><svg x="11" y="11"><circle class="ytp-spinner-dot ytp-spinner-dot-3" cx="4" cy="4" r="2" /></svg><svg x="7" y="13"><circle class="ytp-spinner-dot ytp-spinner-dot-4" cx="4" cy="4" r="2" /></svg><svg x="3" y="11"><circle class="ytp-spinner-dot ytp-spinner-dot-5" cx="4" cy="4" r="2" /></svg><svg x="1" y="7"><circle class="ytp-spinner-dot ytp-spinner-dot-6" cx="4" cy="4" r="2" /></svg><svg x="3" y="3"><circle class="ytp-spinner-dot ytp-spinner-dot-7" cx="4" cy="4" r="2" /></svg></svg>'};var hi=Jc?"webkit":Ic?"moz":Fc?"ms":Ec?"o":"",ii=t("yt.dom.getNextId_");if(!ii){ii=function(){return++ji};q("yt.dom.getNextId_",ii,void 0);var ji=0}function ki(a,b){if(a in b)return b[a];var c=hi+a.charAt(0).toUpperCase()+a.substr(1);if(c in b)return b[c]}function li(a,b){var c;ob(a,function(a){c=ki(a,b);return!!c});return c}function mi(a){var b=document;if("on"+a in b)return a;a=hi+a;return"on"+a in b?a:null};function ni(){return!!li(["fullscreenEnabled","fullScreenEnabled"],document)}function oi(){return li(["fullscreenElement","fullScreenElement"],document)};function pi(a){a=a||{};this.url=a.url||"";this.urlV9As2=a.url_v9as2||"";this.args=a.args||nc(qi);this.assets=a.assets||{};this.attrs=a.attrs||nc(ri);this.params=a.params||nc(si);this.minVersion=a.min_version||"8.0.0";this.fallback=a.fallback||null;this.fallbackMessage=a.fallbackMessage||null;this.html5=!!a.html5;this.disable=a.disable||{};this.loaded=!!a.loaded;this.messages=a.messages||{}}var qi={enablejsapi:1},ri={},si={allowscriptaccess:"always",allowfullscreen:"true",bgcolor:"#000000"};
pi.prototype.clone=function(){var a=new pi,b;for(b in this)if(this.hasOwnProperty(b)){var c=this[b];"object"==ca(c)?a[b]=nc(c):a[b]=c}return a};var ti=document.currentScript&&-1!=document.currentScript.src.indexOf("?loadGamesSDK")?"/cast_game_sender.js":"/cast_sender.js",ui=0<window.location.hash.indexOf("__CastInternalExtensionIds__"),vi=["boadgeojelhgndaghljhdicfkmllpafd","dliochdbjfkdbacpmhlcpmleaejidimm"],wi=["hfaagokkkhdbgiakmmlclaapfelnkoah","fmfcbgogabcbclcofgocippekhfcmgfj","enhhojjnijigcajfphajepfemndkmdlo","eojlgccfgnjlphjnlopmadngcgmmdgpk"],xi=["fjhoaacokmgbjemoflkofnenfaiekifl"],yi=["ekpaaapppgpmolpcldedioblbkmijaca","lhkfccafpkdlaodkicmokbmfapjadkij",
"ibiljbkambkbohapfhoonkcpcikdglop","enhhojjnijigcajfphajepfemndkmdlo"],zi=ui?vi.concat(wi):vi,Ai=ui?yi.concat(xi):xi,Bi=window.navigator.presentation?zi.concat(Ai):zi;function Ci(a){window.chrome?Di(0,a):a(null)}function Di(a,b){a==Bi.length?b(null):Ei(Bi[a],function(c){c?b(Bi[a]):Di(a+1,b)})}
function Ei(a,b){var c=new XMLHttpRequest;c.onreadystatechange=function(){4==c.readyState&&200==c.status&&b(!0)};c.onerror=function(){b(!1)};try{c.open("GET","chrome-extension://"+a+ti,!0),c.send()}catch(d){b(!1)}}function Fi(a){var b=document.createElement("script");b.src=a;(document.head||document.documentElement).appendChild(b)}function Gi(){var a=window.navigator.userAgent;return 0<=a.indexOf("Android")&&0<=a.indexOf("Chrome/")}
function Hi(){if(window.navigator.presentation&&Gi())Fi("//www.gstatic.com/eureka/clank/cast_sender.js");else{if(0<=window.navigator.userAgent.indexOf("CriOS")){var a=window.__gCrWeb&&window.__gCrWeb.message&&window.__gCrWeb.message.invokeOnHost;if(a){a({command:"cast.sender.init"});return}}Ci(function(a){a?(window.chrome=window.chrome||{},window.chrome.cast=window.chrome.cast||{},window.chrome.cast.extensionId=a,Fi("chrome-extension://"+a+ti)):(a=window.__onGCastApiAvailable)&&"function"==typeof a&&
a(!1,"No cast extension found")})}};var Ii=Ac("Firefox"),Ji=Dc()||Ac("iPod"),Ki=Ac("iPad"),Li=Ac("Android")&&!(Cc()||Ac("Firefox")||Bc()||Ac("Silk")),Mi=Cc(),Ni=Ac("Safari")&&!(Cc()||Ac("Coast")||Bc()||Ac("Edge")||Ac("Silk")||Ac("Android"))&&!(Dc()||Ac("iPad")||Ac("iPod"));var Oi=A(),Pi=null,Qi=Array(50),Ri=-1,Si=!1;function Ti(a){Ui();Pi.push(a);Vi(Pi)}function Wi(a){var b=t("yt.mdx.remote.debug.handlers_");xb(b||[],a)}function Xi(a,b){Ui();var c=Pi,d=Yi(a,String(b));ub(c)?Zi(d):(Vi(c),E(c,function(a){a(d)}))}function Ui(){Pi||(Pi=t("yt.mdx.remote.debug.handlers_")||[],q("yt.mdx.remote.debug.handlers_",Pi,void 0))}function Zi(a){var b=(Ri+1)%50;Ri=b;Qi[b]=a;Si||(Si=49==b)}
function Vi(a){var b=Qi;if(b[0]){var c=Ri,d=Si?c:-1;do{var d=(d+1)%50,e=b[d];E(a,function(a){a(e)})}while(d!=c);Qi=Array(50);Ri=-1;Si=!1}}function Yi(a,b){var c=(A()-Oi)/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 $i(a){a=a||{};this.name=a.name||"";this.id=a.id||a.screenId||"";this.token=a.token||a.loungeToken||"";this.j=a.uuid||a.dialId||""}function aj(a,b){return!!b&&(a.id==b||a.j==b)}function bj(a,b){return a||b?!a!=!b?!1:a.id==b.id&&a.token==b.token&&a.name==b.name&&a.j==b.j:!0}function cj(a){return{name:a.name,screenId:a.id,loungeToken:a.token,dialId:a.j}}function dj(a){return new $i(a)}function ej(a){return ea(a)?F(a,dj):[]}
function fj(a){return a?'{name:"'+a.name+'",id:'+a.id.substr(0,6)+"..,token:"+(a.token?".."+a.token.slice(-6):"-")+",uuid:"+(a.j?".."+a.j.slice(-6):"-")+"}":"null"}function gj(a){return ea(a)?"["+F(a,fj).join(",")+"]":"null"};function hj(a,b,c){a&&(a.dataset?a.dataset[ij(b)]=c:a.setAttribute("data-"+b,c))}var jj={};function ij(a){return jj[a]||(jj[a]=String(a).replace(/\-([a-z])/g,function(a,c){return c.toUpperCase()}))};function kj(){H.call(this);this.C=1;this.A=[];this.B=0;this.j=[];this.o={}}B(kj,H);g=kj.prototype;g.subscribe=function(a,b,c){var d=this.o[a];d||(d=this.o[a]=[]);var e=this.C;this.j[e]=a;this.j[e+1]=b;this.j[e+2]=c;this.C=e+3;d.push(e);return e};g.unsubscribe=function(a,b,c){if(a=this.o[a]){var d=this.j;if(a=G(a,function(a){return d[a+1]==b&&d[a+2]==c}))return this.Pb(a)}return!1};
g.Pb=function(a){var b=this.j[a];if(b){var c=this.o[b];0!=this.B?(this.A.push(a),this.j[a+1]=v):(c&&xb(c,a),delete this.j[a],delete this.j[a+1],delete this.j[a+2])}return!!b};g.O=function(a,b){var c=this.o[a];if(c){this.B++;for(var d=Array(arguments.length-1),e=1,f=arguments.length;e<f;e++)d[e-1]=arguments[e];try{for(e=0,f=c.length;e<f;e++){var h=c[e];this.j[h+1].apply(this.j[h+2],d)}}finally{if(this.B--,0<this.A.length&&0==this.B)for(;c=this.A.pop();)this.Pb(c)}return 0!=e}return!1};
g.clear=function(a){if(a){var b=this.o[a];b&&(E(b,this.Pb,this),delete this.o[a])}else this.j.length=0,this.o={}};g.ab=function(a){if(a){var b=this.o[a];return b?b.length:0}a=0;for(b in this.o)a+=this.ab(b);return a};g.R=function(){kj.N.R.call(this);this.clear();this.A.length=0};var lj=window.yt&&window.yt.config_||window.ytcfg&&window.ytcfg.data_||{};q("yt.config_",lj,void 0);q("yt.tokens_",window.yt&&window.yt.tokens_||{},void 0);var mj=window.yt&&window.yt.msgs_||{};q("yt.msgs_",mj,void 0);function nj(a){oj(lj,arguments)}function pj(a,b){return a in lj?lj[a]:b}function qj(a,b){ha(a)&&(a=rj(a));return window.setTimeout(a,b)}function sj(a,b){ha(a)&&(a=rj(a));return window.setInterval(a,b)}function tj(a){window.clearTimeout(a)}function uj(a){window.clearInterval(a)}
function rj(a){return a&&window.yterr?function(){try{return a.apply(this,arguments)}catch(b){throw vj(b),b;}}:a}function vj(a,b){var c=t("yt.www.errors.log");c?c(a,b):(c=pj("ERRORS")||[],c.push([a,b]),nj("ERRORS",c))}function wj(a){oj(mj,arguments)}function Q(a,b,c){var d=b||{};if(a=a in mj?mj[a]:c)for(var e in d)a=a.replace(new RegExp("\\$"+e,"gi"),function(){return d[e]});return a}
ra=function(a,b){var c=b||{},d=a in mj?mj[a]:a;if(d)for(var e in c)var f=(""+c[e]).replace(/\$/g,"$$$$"),d=d.replace(new RegExp("\\{\\$"+e+"\\}","gi"),f),d=d.replace(new RegExp("\\$"+e,"gi"),f);return d};function oj(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 xj=window.performance&&window.performance.now?function(){return window.performance.now()}:A;var yj=t("yt.pubsub.instance_")||new kj;kj.prototype.subscribe=kj.prototype.subscribe;kj.prototype.unsubscribeByKey=kj.prototype.Pb;kj.prototype.publish=kj.prototype.O;kj.prototype.clear=kj.prototype.clear;q("yt.pubsub.instance_",yj,void 0);var zj=t("yt.pubsub.subscribedKeys_")||{};q("yt.pubsub.subscribedKeys_",zj,void 0);var Aj=t("yt.pubsub.topicToKeys_")||{};q("yt.pubsub.topicToKeys_",Aj,void 0);var Bj=t("yt.pubsub.isSynchronous_")||{};q("yt.pubsub.isSynchronous_",Bj,void 0);
var Cj=t("yt.pubsub.skipSubId_")||null;q("yt.pubsub.skipSubId_",Cj,void 0);function Dj(a,b,c){var d=Ej();if(d){var e=d.subscribe(a,function(){if(!Cj||Cj!=e){var d=arguments,h=function(){zj[e]&&b.apply(c||window,d)};try{Bj[a]?h():qj(h,0)}catch(k){vj(k)}}},c);zj[e]=!0;Aj[a]||(Aj[a]=[]);Aj[a].push(e);return e}return 0}function Fj(a){var b=Ej();b&&("number"==typeof a?a=[a]:"string"==typeof a&&(a=[parseInt(a,10)]),E(a,function(a){b.unsubscribeByKey(a);delete zj[a]}))}
function Gj(a,b){var c=Ej();c&&c.publish.apply(c,arguments)}function Hj(a,b){Bj[a]=!0;var c=Ej();c&&c.publish.apply(c,arguments);Bj[a]=!1}function Ej(){return t("yt.pubsub.instance_")};function Ij(){};function Jj(){}B(Jj,Ij);Jj.prototype.ab=function(){var a=0;Wg(this.Ub(!0),function(){a++});return a};Jj.prototype.clear=function(){var a=Xg(this.Ub(!0)),b=this;E(a,function(a){b.remove(a)})};function Kj(a){this.j=a}B(Kj,Jj);g=Kj.prototype;g.isAvailable=function(){if(!this.j)return!1;try{return this.j.setItem("__sak","1"),this.j.removeItem("__sak"),!0}catch(a){return!1}};g.set=function(a,b){try{this.j.setItem(a,b)}catch(c){if(0==this.j.length)throw"Storage mechanism: Storage disabled";throw"Storage mechanism: Quota exceeded";}};g.get=function(a){a=this.j.getItem(a);if(!w(a)&&null!==a)throw"Storage mechanism: Invalid value was encountered";return a};g.remove=function(a){this.j.removeItem(a)};
g.ab=function(){return this.j.length};g.Ub=function(a){var b=0,c=this.j,d=new Ug;d.next=function(){if(b>=c.length)throw Tg;var d;d=c.key(b++);if(a)return d;d=c.getItem(d);if(!w(d))throw"Storage mechanism: Invalid value was encountered";return d};return d};g.clear=function(){this.j.clear()};g.key=function(a){return this.j.key(a)};function Lj(){var a=null;try{a=window.localStorage||null}catch(b){}this.j=a}B(Lj,Kj);function Mj(){var a=null;try{a=window.sessionStorage||null}catch(b){}this.j=a}B(Mj,Kj);function Nj(a){this.j=a}Nj.prototype.set=function(a,b){p(b)?this.j.set(a,xe(b)):this.j.remove(a)};Nj.prototype.get=function(a){var b;try{b=this.j.get(a)}catch(c){return}if(null!==b)try{return ve(b)}catch(c){throw"Storage: Invalid value was encountered";}};Nj.prototype.remove=function(a){this.j.remove(a)};function Oj(a){this.j=a}B(Oj,Nj);function Pj(a){this.data=a}function Qj(a){return!p(a)||a instanceof Pj?a:new Pj(a)}Oj.prototype.set=function(a,b){Oj.N.set.call(this,a,Qj(b))};Oj.prototype.o=function(a){a=Oj.N.get.call(this,a);if(!p(a)||a instanceof Object)return a;throw"Storage: Invalid value was encountered";};Oj.prototype.get=function(a){if(a=this.o(a)){if(a=a.data,!p(a))throw"Storage: Invalid value was encountered";}else a=void 0;return a};function Rj(a){this.j=a}B(Rj,Oj);function Sj(a){var b=a.creation;a=a.expiration;return!!a&&a<A()||!!b&&b>A()}Rj.prototype.set=function(a,b,c){if(b=Qj(b)){if(c){if(c<A()){Rj.prototype.remove.call(this,a);return}b.expiration=c}b.creation=A()}Rj.N.set.call(this,a,b)};Rj.prototype.o=function(a,b){var c=Rj.N.o.call(this,a);if(c)if(!b&&Sj(c))Rj.prototype.remove.call(this,a);else return c};function Tj(a){this.j=a}B(Tj,Rj);function Uj(a,b){var c=[];Wg(b,function(a){var b;try{b=Tj.prototype.o.call(this,a,!0)}catch(f){if("Storage: Invalid value was encountered"==f)return;throw f;}p(b)?Sj(b)&&c.push(a):c.push(a)},a);return c}function Vj(a,b){var c=Uj(a,b);E(c,function(a){Tj.prototype.remove.call(this,a)},a)}function Wj(){var a=Xj;Vj(a,a.j.Ub(!0))};function Yj(a,b,c){var d=c&&0<c?c:0;c=d?A()+1E3*d:0;if((d=d?Xj:Zj)&&window.JSON){w(b)||(b=JSON.stringify(b,void 0));try{d.set(a,b,c)}catch(e){d.remove(a)}}}function ak(a){if(!Zj&&!Xj||!window.JSON)return null;var b;try{b=Zj.get(a)}catch(c){}if(!w(b))try{b=Xj.get(a)}catch(c){}if(!w(b))return null;try{b=JSON.parse(b,void 0)}catch(c){}return b}function bk(a){Zj&&Zj.remove(a);Xj&&Xj.remove(a)}var Xj,ck=new Lj;Xj=ck.isAvailable()?new Tj(ck):null;var Zj,dk=new Mj;Zj=dk.isAvailable()?new Tj(dk):null;var ek={OF:"atp",qI:"ska",QH:"que",oH:"mus",nI:"sus"};function fk(a){var b=a.type;if(!p(b))return null;switch(b.toLowerCase()){case "checkbox":case "radio":return a.checked?a.value:null;case "select-one":return b=a.selectedIndex,0<=b?a.options[b].value:null;case "select-multiple":for(var b=[],c,d=0;c=a.options[d];d++)c.selected&&b.push(c.value);return b.length?b:null;default:return p(a.value)?a.value:null}};function gk(a,b){af(a);af(a);return xf(b,null)};function hk(a,b){for(var c=a.split(b),d={},e=0,f=c.length;e<f;e++){var h=c[e].split("=");if(1==h.length&&h[0]||2==h.length){var k=Aa(h[0]||""),h=Aa(h[1]||"");k in d?ea(d[k])?Cb(d[k],h):d[k]=[d[k],h]:d[k]=h}}return d}function ik(a,b){var c=[];Wb(a,function(a,b){var f=za(b),h;ea(a)?h=a:h=[a];E(h,function(a){""==a?c.push(f):c.push(f+"="+za(a))})});return c.join(b)}function jk(a){"?"==a.charAt(0)&&(a=a.substr(1));return hk(a,"&")}
function kk(a){a=a.split(",");return a=a.map(function(a){return jk(a)})}function lk(a){return-1!=a.indexOf("?")?(a=(a||"").split("#")[0],a=a.split("?",2),jk(1<a.length?a[1]:a[0])):{}}function mk(a,b){return nk(a,b||{},!0)}function nk(a,b,c){var d=a.split("#",2);a=d[0];var d=1<d.length?"#"+d[1]:"",e=a.split("?",2);a=e[0];var e=jk(e[1]||""),f;for(f in b)if(c||!gc(e,f))e[f]=b[f];return uh(a,e)+d}
function ok(a){var b;b||(b=window.location.href);var c=jh(a)[1]||null,d=lh(a);c&&d?(a=jh(a),b=jh(b),a=a[3]==b[3]&&a[1]==b[1]&&a[4]==b[4]):a=d?lh(b)==d&&mh(b)==mh(a):!0;return a}function pk(){var a;a||(a=document.location.href);a=jh(a)[1]||null;return null!==a&&"https"==a};var qk=null;"undefined"!=typeof XMLHttpRequest?qk=function(){return new XMLHttpRequest}:"undefined"!=typeof ActiveXObject&&(qk=function(){return new ActiveXObject("Microsoft.XMLHTTP")});function rk(a){switch(a&&"status"in a?a.status:-1){case 200:case 201:case 202:case 203:case 204:case 205:case 206:case 304:return!0;default:return!1}};function sk(a,b,c,d,e,f,h){function k(){4==(l&&"readyState"in l?l.readyState:0)&&b&&rj(b)(l)}var l=qk&&qk();if(!("open"in l))return null;"onloadend"in l?l.addEventListener("loadend",k,!1):l.onreadystatechange=k;c=(c||"GET").toUpperCase();d=d||"";l.open(c,a,!0);f&&(l.responseType=f);h&&(l.withCredentials=!0);f="POST"==c;if(e=tk(a,e))for(var n in e)l.setRequestHeader(n,e[n]),"content-type"==n.toLowerCase()&&(f=!1);f&&l.setRequestHeader("Content-Type","application/x-www-form-urlencoded");l.send(d);return l}
function tk(a,b){b=b||{};for(var c in uk){var d=pj(uk[c]),e;if((e=d)&&!(e=ok(a))){e=c;var f=pj("CORS_HEADER_WHITELIST")||{},h=lh(a);e=h?(f=f[h])?tb(f,e):!1:!0}e&&(b[c]=d)}return b}function vk(a,b){b.method="POST";b.Db||(b.Db={});wk(a,b)}function xk(a,b){var c=pj("XSRF_FIELD_NAME"),d;b.headers&&(d=b.headers["Content-Type"]);return!b.zJ&&(!lh(a)||b.withCredentials||lh(a)==document.location.hostname)&&"POST"==b.method&&(!d||"application/x-www-form-urlencoded"==d)&&!(b.Db&&b.Db[c])}
function wk(a,b){var c=b.format||"JSON";b.DJ&&(a=document.location.protocol+"//"+document.location.hostname+(document.location.port?":"+document.location.port:"")+a);var d=pj("XSRF_FIELD_NAME"),e=pj("XSRF_TOKEN"),f=b.yd;f&&(f[d]&&delete f[d],a=mk(a,f));var h=b.postBody||"",f=b.Db;xk(a,b)&&(f||(f={}),f[d]=e);f&&w(h)&&(d=jk(h),qc(d,f),h=sh(d));var k=!1,l,n=sk(a,function(a){if(!k){k=!0;l&&tj(l);var d=rk(a),e=null;if(d||400<=a.status&&500>a.status)e=yk(c,a,b.pv);if(d)a:{switch(c){case "XML":d=0==parseInt(e&&
e.return_code,10);break a;case "RAW":d=!0;break a}d=!!e}var e=e||{},f=b.context||m;d?b.kb&&b.kb.call(f,a,e):b.onError&&b.onError.call(f,a,e);b.Xb&&b.Xb.call(f,a,e)}},b.method,h,b.headers,b.responseType,b.withCredentials);b.$d&&0<b.timeout&&(l=qj(function(){k||(k=!0,n.abort(),tj(l),b.$d.call(b.context||m,n))},b.timeout));return n}
function yk(a,b,c){var d=null;switch(a){case "JSON":a=b.responseText;b=b.getResponseHeader("Content-Type")||"";a&&0<=b.indexOf("json")&&(d=we(a));break;case "XML":if(b=(b=b.responseXML)?zk(b):null)d={},E(b.getElementsByTagName("*"),function(a){d[a.tagName]=Ak(a)})}c&&Bk(d);return d}function Bk(a){if(ia(a))for(var b in a)"html_content"==b||xa(b,"_html")?a[b]=gk(bf("HTML that is escaped and sanitized server-side and passed through yt.net.ajax"),a[b]):Bk(a[b])}
function zk(a){return a?(a=("responseXML"in a?a.responseXML:a).getElementsByTagName("root"))&&0<a.length?a[0]:null:null}function Ak(a){var b="";E(a.childNodes,function(a){b+=a.nodeValue});return b}var uk={"X-YouTube-Client-Name":"INNERTUBE_CONTEXT_CLIENT_NAME","X-YouTube-Client-Version":"INNERTUBE_CONTEXT_CLIENT_VERSION","X-YouTube-Page-CL":"PAGE_CL","X-YouTube-Page-Label":"PAGE_BUILD_LABEL","X-YouTube-Variants-Checksum":"VARIANTS_CHECKSUM"};function Ck(a){this.port=this.A="";this.j="/api/lounge";this.o=!0;a=a||document.location.href;var b=mh(a)||"";b&&(this.port=":"+b);this.A=lh(a)||"";a=wc;0<=a.search("MSIE")&&(a=a.match(/MSIE ([\d.]+)/)[1],0>Xa(a,"10.0")&&(this.o=!1))}function Dk(a,b,c,d){var e=a.j;if(p(d)?d:a.o)e="https://"+a.A+a.port+a.j;return uh(e+b,c||{})}
function Ek(a,b,c,d,e){a={format:"JSON",method:"POST",context:a,timeout:5E3,withCredentials:!1,kb:pa(a.C,d,!0),onError:pa(a.B,e),$d:pa(a.D,e)};c&&(a.Db=c,a.headers={"Content-Type":"application/x-www-form-urlencoded"});return wk(b,a)}Ck.prototype.C=function(a,b,c,d){b?a(d):a({text:c.responseText})};Ck.prototype.B=function(a,b){a(Error("Request error: "+b.status))};Ck.prototype.D=function(a){a(Error("request timed out"))};function Fk(a){this.j=this.name=this.id="";this.status="UNKNOWN";a&&(this.id=a.id||"",this.name=a.name||"",this.j=a.activityId||"",this.status=a.status||"UNKNOWN")}Fk.prototype.toString=function(){return"{id:"+this.id+",name:"+this.name+",activityId:"+this.j+",status:"+this.status+"}"};function Gk(){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 Hk(a){return F(a,function(a){return{key:a.id,name:a.name}})}function Ik(a){return F(a,function(a){return new Fk(a)})}function Jk(a,b){return G(a,function(a){return a.id==b})}function Kk(a,b){return G(a,function(a){return a||b?!a!=!b?!1:a.id==b.id:!0})}function Lk(a,b){return G(a,function(a){return aj(a,b)})};function Mk(){H.call(this);this.U=new kj;I(this,this.U)}B(Mk,H);Mk.prototype.subscribe=function(a,b,c){return this.isDisposed()?0:this.U.subscribe(a,b,c)};Mk.prototype.unsubscribe=function(a,b,c){return this.isDisposed()?!1:this.U.unsubscribe(a,b,c)};Mk.prototype.Pb=function(a){return this.isDisposed()?!1:this.U.Pb(a)};Mk.prototype.O=function(a,b){return this.isDisposed()?!1:this.U.O.apply(this.U,arguments)};function Nk(a){Mk.call(this);this.D=a;this.screens=[]}B(Nk,Mk);g=Nk.prototype;g.ac=function(){return this.screens};g.contains=function(a){return!!Kk(this.screens,a)};g.get=function(a){return a?Lk(this.screens,a):null};function Ok(a,b){var c=a.get(b.j)||a.get(b.id);if(c){var d=c.name;c.id=b.id||c.id;c.name=b.name;c.token=b.token;c.j=b.j||c.j;return c.name!=d}a.screens.push(b);return!0}
function Pk(a,b){var c=a.screens.length!=b.length;a.screens=lb(a.screens,function(a){return!!Kk(b,a)});for(var d=0,e=b.length;d<e;d++)c=Ok(a,b[d])||c;return c}function Qk(a,b){var c=a.screens.length;a.screens=lb(a.screens,function(a){return!(a||b?!a!=!b?0:a.id==b.id:1)});return a.screens.length<c}g.info=function(a){Xi(this.D,a)};g.warn=function(a){Xi(this.D,a)};function Rk(a,b,c,d){Mk.call(this);this.D=a;this.C=b;this.A=c;this.B=d;this.o=0;this.j=null;this.ya=NaN}B(Rk,Mk);var Sk=[2E3,2E3,1E3,1E3,1E3,2E3,2E3,5E3,5E3,1E4];g=Rk.prototype;g.start=function(){!this.j&&isNaN(this.ya)&&this.Zq()};g.stop=function(){this.j&&(this.j.abort(),this.j=null);isNaN(this.ya)||(tj(this.ya),this.ya=NaN)};g.R=function(){this.stop();Rk.N.R.call(this)};
g.Zq=function(){this.ya=NaN;this.j=wk(Dk(this.D,"/pairing/get_screen"),{method:"POST",Db:{pairing_code:this.C},timeout:5E3,kb:x(this.pC,this),onError:x(this.oC,this),$d:x(this.qC,this)})};g.pC=function(a,b){this.j=null;var c=b.screen||{};c.dialId=this.A;c.name=this.B;this.O("pairingComplete",new $i(c))};
g.oC=function(a){this.j=null;a.status&&404==a.status?this.o>=Sk.length?this.O("pairingFailed",Error("DIAL polling timed out")):(a=Sk[this.o],this.ya=qj(x(this.Zq,this),a),this.o++):this.O("pairingFailed",Error("Server error "+a.status))};g.qC=function(){this.j=null;this.O("pairingFailed",Error("Server not responding"))};function Tk(a,b){this.o=a;this.j=b+"::"}B(Tk,Jj);Tk.prototype.set=function(a,b){this.o.set(this.j+a,b)};Tk.prototype.get=function(a){return this.o.get(this.j+a)};Tk.prototype.remove=function(a){this.o.remove(this.j+a)};Tk.prototype.Ub=function(a){var b=this.o.Ub(!0),c=this,d=new Ug;d.next=function(){for(var d=b.next();d.substr(0,c.j.length)!=c.j;)d=b.next();return a?d.substr(c.j.length):c.o.get(d)};return d};function Uk(a){var b=new Lj;return b.isAvailable()?a?new Tk(b,a):b:null};function Vk(a){this.j=new Yg;if(a){a=dh(a);for(var b=a.length,c=0;c<b;c++)Wk(this,a[c])}}function Xk(a){var b=typeof a;return"object"==b&&a||"function"==b?"o"+ka(a):b.substr(0,1)+a}g=Vk.prototype;g.ab=function(){return this.j.ab()};function Wk(a,b){a.j.set(Xk(b),b)}g.removeAll=function(a){a=dh(a);for(var b=a.length,c=0;c<b;c++)this.remove(a[c])};g.remove=function(a){return this.j.remove(Xk(a))};g.clear=function(){this.j.clear()};g.isEmpty=function(){return this.j.isEmpty()};
g.contains=function(a){return $g(this.j,Xk(a))};g.Ia=function(){return this.j.Ia()};g.clone=function(){return new Vk(this)};g.equals=function(a){return this.ab()==ch(a)&&Yk(this,a)};function Yk(a,b){var c=ch(b);if(a.ab()>c)return!1;!(b instanceof Vk)&&5<c&&(b=new Vk(b));return gh(a,function(a){var c=b;return c.contains&&"function"==typeof c.contains?c.contains(a):c.we&&"function"==typeof c.we?c.we(a):fa(c)||w(c)?tb(c,a):bc(c,a)})}g.Ub=function(){return this.j.Ub(!1)};function Zk(a){this.app=this.name=this.id="";this.type="REMOTE_CONTROL";this.avatar=this.username="";this.capabilities=new Vk;this.theme="u";a&&(this.id=a.id||a.name,this.name=a.name,this.app=a.app,this.type=a.type||"REMOTE_CONTROL",this.username=a.user||"",this.avatar=a.userAvatarUri||"",this.theme=a.theme||"u",this.capabilities=new Vk(lb((a.capabilities||"").split(","),pa(ac,ek))))}Zk.prototype.equals=function(a){return a?this.id==a.id:!1};function $k(a){this.j=a}var al=/\s*;\s*/;g=$k.prototype;g.set=function(a,b,c,d,e,f){if(/[;=\s]/.test(a))throw Error('Invalid cookie name "'+a+'"');if(/[;\r\n]/.test(b))throw Error('Invalid cookie value "'+b+'"');p(c)||(c=-1);e=e?";domain="+e:"";d=d?";path="+d:"";f=f?";secure":"";c=0>c?"":0==c?";expires="+(new Date(1970,1,1)).toUTCString():";expires="+(new Date(A()+1E3*c)).toUTCString();this.j.cookie=a+"="+b+e+d+c+f};
g.get=function(a,b){for(var c=a+"=",d=(this.j.cookie||"").split(al),e=0,f;f=d[e];e++){if(0==f.lastIndexOf(c,0))return f.substr(c.length);if(f==a)return""}return b};g.remove=function(a,b,c){var d=p(this.get(a));this.set(a,"",0,b,c);return d};g.Ma=function(){return bl(this).keys};g.Ia=function(){return bl(this).values};g.isEmpty=function(){return!this.j.cookie};g.ab=function(){return this.j.cookie?(this.j.cookie||"").split(al).length:0};
g.we=function(a){for(var b=bl(this).values,c=0;c<b.length;c++)if(b[c]==a)return!0;return!1};g.clear=function(){for(var a=bl(this).keys,b=a.length-1;0<=b;b--)this.remove(a[b])};function bl(a){a=(a.j.cookie||"").split(al);for(var b=[],c=[],d,e,f=0;e=a[f];f++)d=e.indexOf("="),-1==d?(b.push(""),c.push(e)):(b.push(e.substring(0,d)),c.push(e.substring(d+1)));return{keys:b,values:c}}var cl=new $k(document);cl.o=3950;function dl(a,b,c){cl.set(""+a,b,c,"/","youtube.com")};var el;function fl(){var a=gl(),b=hl();tb(a,b);il()&&Pb(a,b);a=jl(a);if(ub(a))try{a="remote_sid",cl.remove(""+a,"/","youtube.com")}catch(c){}else try{dl("remote_sid",a.join(","),-1)}catch(c){}}function gl(){var a=ak("yt-remote-connected-devices")||[];Kb(a);return a}function jl(a){if(ub(a))return[];var b=a[0].indexOf("#"),c=-1==b?a[0]:a[0].substring(0,b);return F(a,function(a,b){return 0==b?a:a.substring(c.length)})}function kl(a){Yj("yt-remote-connected-devices",a,86400)}
function hl(){if(ll)return ll;var a=ak("yt-remote-device-id");a||(a=Gk(),Yj("yt-remote-device-id",a,31536E3));for(var b=gl(),c=1,d=a;tb(b,d);)c++,d=a+"#"+c;return ll=d}function ml(){return ak("yt-remote-session-browser-channel")}function il(){return ak("yt-remote-session-screen-id")}
function nl(a){5<a.length&&(a=a.slice(a.length-5));var b=F(ol(),function(a){return a.loungeToken}),c=F(a,function(a){return a.loungeToken});pb(c,function(a){return!tb(b,a)})&&pl();Yj("yt-remote-local-screens",a,31536E3)}function ol(){return ak("yt-remote-local-screens")||[]}function pl(){Yj("yt-remote-lounge-token-expiration",!0,86400)}function ql(a){Yj("yt-remote-online-screens",a,60)}function rl(){return ak("yt-remote-online-dial-devices")||[]}
function sl(a,b){Yj("yt-remote-session-browser-channel",a);Yj("yt-remote-session-screen-id",b);var c=gl(),d=hl();tb(c,d)||c.push(d);kl(c);fl()}function tl(a){a||(bk("yt-remote-session-screen-id"),bk("yt-remote-session-video-id"));fl();a=gl();xb(a,hl());kl(a)}function ul(){if(!el){var a=Uk();a&&(el=new Nj(a))}return el?!!el.get("yt-remote-use-staging-server"):!1}var ll="";function vl(a){Nk.call(this,"LocalScreenService");this.o=a;this.j=NaN;wl(this);this.info("Initializing with "+gj(this.screens))}B(vl,Nk);g=vl.prototype;g.start=function(){wl(this)&&this.O("screenChange");!ak("yt-remote-lounge-token-expiration")&&xl(this);tj(this.j);this.j=qj(x(this.start,this),1E4)};g.hj=function(a,b){wl(this);Ok(this,a);yl(this,!1);this.O("screenChange");b(a);a.token||xl(this)};g.remove=function(a,b){var c=wl(this);Qk(this,a)&&(yl(this,!1),c=!0);b(a);c&&this.O("screenChange")};
g.bj=function(a,b,c,d){var e=wl(this),f=this.get(a.id);f?(f.name!=b&&(f.name=b,yl(this,!1),e=!0),c(a)):d(Error("no such local screen."));e&&this.O("screenChange")};g.R=function(){tj(this.j);vl.N.R.call(this)};function xl(a){if(a.screens.length){var b=F(a.screens,function(a){return a.id}),c=Dk(a.o,"/pairing/get_lounge_token_batch");Ek(a.o,c,{screen_ids:b.join(",")},x(a.aw,a),x(a.$v,a))}}
g.aw=function(a){wl(this);var b=this.screens.length;a=a&&a.screens||[];for(var c=0,d=a.length;c<d;++c){var e=a[c],f=this.get(e.screenId);f&&(f.token=e.loungeToken,--b)}yl(this,!b);b&&this.warn("Missed "+b+" lounge tokens.")};g.$v=function(a){this.warn("Requesting lounge tokens failed: "+a)};function wl(a){var b=ej(ol()),b=lb(b,function(a){return!a.j});return Pk(a,b)}function yl(a,b){nl(F(a.screens,cj));b&&pl()};function zl(a,b){Mk.call(this);this.C=b;for(var c=ak("yt-remote-online-screen-ids")||"",c=c?c.split(","):[],d={},e=this.C(),f=0,h=e.length;f<h;++f){var k=e[f].id;d[k]=tb(c,k)}this.j=d;this.D=a;this.A=this.B=NaN;this.o=null;Al("Initialized with "+xe(this.j))}B(zl,Mk);g=zl.prototype;g.start=function(){var a=parseInt(ak("yt-remote-fast-check-period")||"0",10);(this.B=A()-144E5<a?0:a)?Bl(this):(this.B=A()+3E5,Yj("yt-remote-fast-check-period",this.B),this.Al())};g.isEmpty=function(){return jc(this.j)};
g.update=function(){Al("Updating availability on schedule.");var a=this.C(),b=Xb(this.j,function(b,d){return b&&!!Lk(a,d)},this);Dl(this,b)};function El(a,b,c){var d=Dk(a.D,"/pairing/get_screen_availability");Ek(a.D,d,{lounge_token:b.token},x(function(a){a=a.screens||[];for(var d=0,h=a.length;d<h;++d)if(a[d].loungeToken==b.token){c("online"==a[d].status);return}c(!1)},a),x(function(){c(!1)},a))}g.R=function(){tj(this.A);this.A=NaN;this.o&&(this.o.abort(),this.o=null);zl.N.R.call(this)};
function Dl(a,b){var c;a:if($b(b)!=$b(a.j))c=!1;else{c=ec(b);for(var d=0,e=c.length;d<e;++d)if(!a.j[c[d]]){c=!1;break a}c=!0}c||(Al("Updated online screens: "+xe(a.j)),a.j=b,a.O("screenChange"));Fl(a)}function Bl(a){isNaN(a.A)||tj(a.A);a.A=qj(x(a.Al,a),0<a.B&&a.B<A()?2E4:1E4)}
g.Al=function(){tj(this.A);this.A=NaN;this.o&&this.o.abort();var a=Gl(this);if($b(a)){var b=Dk(this.D,"/pairing/get_screen_availability"),c={lounge_token:ec(a).join(",")};this.o=Ek(this.D,b,c,x(this.kA,this,a),x(this.jA,this))}else Dl(this,{}),Bl(this)};g.kA=function(a,b){this.o=null;var c=ec(Gl(this));if(Nb(c,ec(a))){for(var c=b.screens||[],d={},e=0,f=c.length;e<f;++e)d[a[c[e].loungeToken]]="online"==c[e].status;Dl(this,d);Bl(this)}else this.$a("Changing Screen set during request."),this.Al()};
g.jA=function(a){this.$a("Screen availability failed: "+a);this.o=null;Bl(this)};function Al(a){Xi("OnlineScreenService",a)}g.$a=function(a){Xi("OnlineScreenService",a)};function Gl(a){var b={};E(a.C(),function(a){a.token?b[a.token]=a.id:this.$a("Requesting availability of screen w/o lounge token.")});return b}
function Fl(a){var b=ec(Xb(a.j,function(a){return a}));Kb(b);b.length?Yj("yt-remote-online-screen-ids",b.join(","),60):bk("yt-remote-online-screen-ids");a=lb(a.C(),function(a){return!!this.j[a.id]},a);ql(F(a,cj))};function Hl(a){Nk.call(this,"ScreenService");this.C=a;this.j=this.o=null;this.A=[];this.B={};Il(this)}B(Hl,Nk);g=Hl.prototype;g.start=function(){this.o.start();this.j.start();this.screens.length&&(this.O("screenChange"),this.j.isEmpty()||this.O("onlineScreenChange"))};g.hj=function(a,b,c){this.o.hj(a,b,c)};g.remove=function(a,b,c){this.o.remove(a,b,c);this.j.update()};g.bj=function(a,b,c,d){this.o.contains(a)?this.o.bj(a,b,c,d):(a="Updating name of unknown screen: "+a.name,this.warn(a),d(Error(a)))};
g.ac=function(a){return a?this.screens:Ab(this.screens,lb(this.A,function(a){return!this.contains(a)},this))};g.ar=function(){return lb(this.ac(!0),function(a){return!!this.j.j[a.id]},this)};
function Jl(a,b,c,d,e,f){a.info("getAutomaticScreenByIds "+c+" / "+b);c||(c=a.B[b]);var h=a.ac();if(h=(c?Lk(h,c):null)||Lk(h,b)){h.j=b;var k=Kl(a,h);El(a.j,k,function(a){e(a?k:null)})}else c?Ll(a,c,x(function(a){var f=Kl(this,new $i({name:d,screenId:c,loungeToken:a,dialId:b||""}));El(this.j,f,function(a){e(a?f:null)})},a),f):e(null)}
g.dr=function(a,b,c,d,e){this.info("getDialScreenByPairingCode "+a+" / "+b);var f=new Rk(this.C,a,b,c);f.subscribe("pairingComplete",x(function(a){Ub(f);d(Kl(this,a))},this));f.subscribe("pairingFailed",function(a){Ub(f);e(a)});f.start();return x(f.stop,f)};function Ml(a,b){for(var c=0,d=a.screens.length;c<d;++c)if(a.screens[c].name==b)return a.screens[c];return null}g.Pv=function(a,b){for(var c=2,d=b(a,c);Ml(this,d);){c++;if(20<c)return a;d=b(a,c)}return d};
g.sC=function(a,b,c,d){wk(Dk(this.C,"/pairing/get_screen"),{method:"POST",Db:{pairing_code:a},timeout:5E3,kb:x(function(a,d){var h=new $i(d.screen||{});if(!h.name||Ml(this,h.name))h.name=this.Pv(h.name,b);c(Kl(this,h))},this),onError:x(function(a){d(Error("pairing request failed: "+a.status))},this),$d:x(function(){d(Error("pairing request timed out."))},this)})};g.R=function(){Ub(this.o);Ub(this.j);Hl.N.R.call(this)};
function Ll(a,b,c,d){a.info("requestLoungeToken_ for "+b);var e={Db:{screen_ids:b},method:"POST",context:a,kb:function(a,e){var k=e&&e.screens||[];k[0]&&k[0].screenId==b?c(k[0].loungeToken):d(Error("Missing lounge token in token response"))},onError:function(){d(Error("Request screen lounge token failed"))}};wk(Dk(a.C,"/pairing/get_lounge_token_batch"),e)}
function Nl(a){a.screens=a.o.ac();var b=a.B,c={},d;for(d in b)c[b[d]]=d;b=0;for(d=a.screens.length;b<d;++b){var e=a.screens[b];e.j=c[e.id]||""}a.info("Updated manual screens: "+gj(a.screens))}g.mw=function(){Nl(this);this.O("screenChange");this.j.update()};
function Il(a){Ol(a);a.o=new vl(a.C);a.o.subscribe("screenChange",x(a.mw,a));Nl(a);a.A=ej(ak("yt-remote-automatic-screen-cache")||[]);Ol(a);a.info("Initializing automatic screens: "+gj(a.A));a.j=new zl(a.C,x(a.ac,a,!0));a.j.subscribe("screenChange",x(function(){this.O("onlineScreenChange")},a))}
function Kl(a,b){var c=a.get(b.id);c?(c.j=b.j,b=c):((c=Lk(a.A,b.j))?(c.id=b.id,c.token=b.token,b=c):a.A.push(b),Yj("yt-remote-automatic-screen-cache",F(a.A,cj)));Ol(a);a.B[b.j]=b.id;Yj("yt-remote-device-id-map",a.B,31536E3);return b}function Ol(a){a.B=ak("yt-remote-device-id-map")||{}}Hl.prototype.dispose=Hl.prototype.dispose;function Pl(a,b,c){Mk.call(this);this.L=c;this.H=a;this.o=b;this.A=null}B(Pl,Mk);g=Pl.prototype;g.Gi=function(a){this.A=a;this.O("sessionScreen",this.A)};g.Yb=function(a){this.isDisposed()||(a&&this.warn(""+a),this.A=null,this.O("sessionScreen",null))};g.info=function(a){Xi(this.L,a)};g.warn=function(a){Xi(this.L,a)};g.gr=function(){return null};
g.Gl=function(a){var b=this.o;a?(b.displayStatus=new chrome.cast.ReceiverDisplayStatus(a,[]),b.displayStatus.showStop=!0):b.displayStatus=null;chrome.cast.setReceiverDisplayStatus(b,x(function(){this.info("Updated receiver status for "+b.friendlyName+": "+a)},this),x(function(){this.warn("Failed to update receiver status for: "+b.friendlyName)},this))};g.R=function(){this.Gl("");Pl.N.R.call(this)};function Ql(a,b){Pl.call(this,a,b,"CastSession");this.j=null;this.C=0;this.B=null;this.F=x(this.tC,this);this.D=x(this.fB,this);this.C=qj(x(function(){Rl(this,null)},this),12E4)}B(Ql,Pl);g=Ql.prototype;
g.Fl=function(a){if(this.j){if(this.j==a)return;this.warn("Overriding cast sesison with new session object");this.j.removeUpdateListener(this.F);this.j.removeMessageListener("urn:x-cast:com.google.youtube.mdx",this.D)}this.j=a;this.j.addUpdateListener(this.F);this.j.addMessageListener("urn:x-cast:com.google.youtube.mdx",this.D);this.B&&Sl(this);Tl(this,"getMdxSessionStatus")};g.Bf=function(a){this.info("launchWithParams: "+xe(a));this.B=a;this.j&&Sl(this)};
g.stop=function(){this.j?this.j.stop(x(function(){this.Yb()},this),x(function(){this.Yb(Error("Failed to stop receiver app."))},this)):this.Yb(Error("Stopping cast device witout session."))};g.Gl=v;g.R=function(){this.info("disposeInternal");tj(this.C);this.C=0;this.j&&(this.j.removeUpdateListener(this.F),this.j.removeMessageListener("urn:x-cast:com.google.youtube.mdx",this.D));this.j=null;Ql.N.R.call(this)};
function Sl(a){var b=a.B.videoId||a.B.videoIds[a.B.index];b&&Tl(a,"flingVideo",{videoId:b,currentTime:a.B.currentTime||0});a.B=null}function Tl(a,b,c){a.info("sendYoutubeMessage_: "+b+" "+xe(c));var d={};d.type=b;c&&(d.data=c);a.j?a.j.sendMessage("urn:x-cast:com.google.youtube.mdx",d,v,x(function(){this.warn("Failed to send message: "+b+".")},a)):a.warn("Sending yt message without session: "+xe(d))}
g.fB=function(a,b){if(!this.isDisposed())if(b){var c=we(b);if(c){var d=""+c.type,c=c.data||{};this.info("onYoutubeMessage_: "+d+" "+xe(c));switch(d){case "mdxSessionStatus":Rl(this,c.screenId);break;default:this.warn("Unknown youtube message: "+d)}}else this.warn("Unable to parse message.")}else this.warn("No data in message.")};
function Rl(a,b){tj(a.C);if(b){if(a.info("onConnectedScreenId_: Received screenId: "+b),!a.A||a.A.id!=b){var c=x(a.Gi,a),d=x(a.Yb,a);a.Sn(b,c,d,5)}}else a.Yb(Error("Waiting for session status timed out."))}g.Sn=function(a,b,c,d){Jl(this.H,this.o.label,a,this.o.friendlyName,x(function(e){e?b(e):0<=d?(this.warn("Screen "+a+" appears to be offline. "+d+" retries left."),qj(x(this.Sn,this,a,b,c,d-1),300)):c(Error("Unable to fetch screen."))},this),c)};g.gr=function(){return this.j};
g.tC=function(a){this.isDisposed()||a||(this.warn("Cast session died."),this.Yb())};function Ul(a,b){Pl.call(this,a,b,"DialSession");this.C=this.G=null;this.J="";this.B=null;this.F=v;this.D=NaN;this.K=x(this.wC,this);this.j=v}B(Ul,Pl);g=Ul.prototype;g.Fl=function(a){this.C=a;this.C.addUpdateListener(this.K)};g.Bf=function(a){this.B=a;this.F()};g.stop=function(){this.j();this.j=v;tj(this.D);this.C?this.C.stop(x(this.Yb,this,null),x(this.Yb,this,"Failed to stop DIAL device.")):this.Yb()};
g.R=function(){this.j();this.j=v;tj(this.D);this.C&&this.C.removeUpdateListener(this.K);this.C=null;Ul.N.R.call(this)};function Vl(a){a.j=a.H.dr(a.J,a.o.label,a.o.friendlyName,x(function(a){this.j=v;this.Gi(a)},a),x(function(a){this.j=v;this.Yb(a)},a))}g.wC=function(a){this.isDisposed()||a||(this.warn("DIAL session died."),this.j(),this.j=v,this.Yb())};
function Wl(a){var b={};b.pairingCode=a.J;if(a.B){var c=a.B.index||0,d=a.B.currentTime||0;b.v=a.B.videoId||a.B.videoIds[c];b.t=d}ul()&&(b.env_useStageMdx=1);return sh(b)}g.Tk=function(a){this.J=Gk();if(this.B){var b=new chrome.cast.DialLaunchResponse(!0,Wl(this));a(b);Vl(this)}else this.F=x(function(){tj(this.D);this.F=v;this.D=NaN;var b=new chrome.cast.DialLaunchResponse(!0,Wl(this));a(b);Vl(this)},this),this.D=qj(x(function(){this.F()},this),100)};
g.gx=function(a,b){Jl(this.H,this.G.receiver.label,a,this.o.friendlyName,x(function(a){a&&a.token?(this.Gi(a),b(new chrome.cast.DialLaunchResponse(!1))):this.Tk(b)},this),x(function(a){this.warn("Failed to get DIAL screen: "+a);this.Tk(b)},this))};function Xl(a,b){Pl.call(this,a,b,"ManualSession");this.j=qj(x(this.Bf,this,null),150)}B(Xl,Pl);Xl.prototype.stop=function(){this.Yb()};Xl.prototype.Fl=v;Xl.prototype.Bf=function(){tj(this.j);this.j=NaN;var a=Lk(this.H.ac(),this.o.label);a?this.Gi(a):this.Yb(Error("No such screen"))};Xl.prototype.R=function(){tj(this.j);this.j=NaN;Xl.N.R.call(this)};function Yl(a){Mk.call(this);this.o=a;this.j=null;this.C=!1;this.A=[];this.B=x(this.$z,this)}B(Yl,Mk);g=Yl.prototype;
g.init=function(a,b){chrome.cast.timeout.requestSession=3E4;var c=new chrome.cast.SessionRequest("233637DE");c.dialRequest=new chrome.cast.DialRequest("YouTube");var d=chrome.cast.AutoJoinPolicy.TAB_AND_ORIGIN_SCOPED,e=a?chrome.cast.DefaultActionPolicy.CAST_THIS_TAB:chrome.cast.DefaultActionPolicy.CREATE_SESSION,c=new chrome.cast.ApiConfig(c,x(this.Op,this),x(this.bA,this),d,e);c.customDialLaunchCallback=x(this.Qy,this);chrome.cast.initialize(c,x(function(){this.isDisposed()||(chrome.cast.addReceiverActionListener(this.B),
Ti(Zl),this.o.subscribe("onlineScreenChange",x(this.fr,this)),this.A=$l(this),chrome.cast.setCustomReceivers(this.A,v,x(function(a){this.$a("Failed to set initial custom receivers: "+xe(a))},this)),this.O("yt-remote-cast2-availability-change",am(this)),b(!0))},this),x(function(a){this.$a("Failed to initialize API: "+xe(a));b(!1)},this))};
g.IB=function(a,b){bm("Setting connected screen ID: "+a+" -> "+b);if(this.j){var c=this.j.A;if(!a||c&&c.id!=a)bm("Unsetting old screen status: "+this.j.o.friendlyName),Ub(this.j),this.j=null}if(a&&b){if(!this.j){c=Lk(this.o.ac(),a);if(!c){bm("setConnectedScreenStatus: Unknown screen.");return}var d=cm(this,c);d||(bm("setConnectedScreenStatus: Connected receiver not custom..."),d=new chrome.cast.Receiver(c.j?c.j:c.id,c.name),d.receiverType=chrome.cast.ReceiverType.CUSTOM,this.A.push(d),chrome.cast.setCustomReceivers(this.A,
v,x(function(a){this.$a("Failed to set initial custom receivers: "+xe(a))},this)));bm("setConnectedScreenStatus: new active receiver: "+d.friendlyName);dm(this,new Xl(this.o,d),!0)}this.j.Gl(b)}else bm("setConnectedScreenStatus: no screen.")};function cm(a,b){return b?G(a.A,function(a){return aj(b,a.label)},a):null}g.JB=function(a){this.isDisposed()?this.$a("Setting connection data on disposed cast v2"):this.j?this.j.Bf(a):this.$a("Setting connection data without a session")};
g.vC=function(){this.isDisposed()?this.$a("Stopping session on disposed cast v2"):this.j?(this.j.stop(),Ub(this.j),this.j=null):bm("Stopping non-existing session")};g.requestSession=function(){chrome.cast.requestSession(x(this.Op,this),x(this.oA,this))};g.R=function(){this.o.unsubscribe("onlineScreenChange",x(this.fr,this));window.chrome&&chrome.cast&&chrome.cast.removeReceiverActionListener(this.B);Wi(Zl);Ub(this.j);Yl.N.R.call(this)};function bm(a){Xi("Controller",a)}
g.$a=function(a){Xi("Controller",a)};function Zl(a){window.chrome&&chrome.cast&&chrome.cast.logMessage&&chrome.cast.logMessage(a)}function am(a){return a.C||!!a.A.length||!!a.j}function dm(a,b,c){Ub(a.j);(a.j=b)?(c?a.O("yt-remote-cast2-receiver-resumed",b.o):a.O("yt-remote-cast2-receiver-selected",b.o),b.subscribe("sessionScreen",x(a.Pp,a,b)),b.A?a.O("yt-remote-cast2-session-change",b.A):c&&a.j.Bf(null)):a.O("yt-remote-cast2-session-change",null)}
g.Pp=function(a,b){this.j==a&&(b||dm(this,null),this.O("yt-remote-cast2-session-change",b))};
g.$z=function(a,b){if(!this.isDisposed())if(a)switch(bm("onReceiverAction_ "+a.label+" / "+a.friendlyName+"-- "+b),b){case chrome.cast.ReceiverAction.CAST:if(this.j)if(this.j.o.label!=a.label)bm("onReceiverAction_: Stopping active receiver: "+this.j.o.friendlyName),this.j.stop();else{bm("onReceiverAction_: Casting to active receiver.");this.j.A&&this.O("yt-remote-cast2-session-change",this.j.A);break}switch(a.receiverType){case chrome.cast.ReceiverType.CUSTOM:dm(this,new Xl(this.o,a));break;case chrome.cast.ReceiverType.DIAL:dm(this,
new Ul(this.o,a));break;case chrome.cast.ReceiverType.CAST:dm(this,new Ql(this.o,a));break;default:this.$a("Unknown receiver type: "+a.receiverType);return}break;case chrome.cast.ReceiverAction.STOP:this.j&&this.j.o.label==a.label?this.j.stop():this.$a("Stopping receiver w/o session: "+a.friendlyName)}else this.$a("onReceiverAction_ called without receiver.")};
g.Qy=function(a){if(this.isDisposed())return Promise.reject(Error("disposed"));var b=a.receiver;b.receiverType!=chrome.cast.ReceiverType.DIAL&&(this.$a("Not DIAL receiver: "+b.friendlyName),b.receiverType=chrome.cast.ReceiverType.DIAL);var c=this.j?this.j.o:null;if(!c||c.label!=b.label)return this.$a("Receiving DIAL launch request for non-clicked DIAL receiver: "+b.friendlyName),Promise.reject(Error("illegal DIAL launch"));if(c&&c.label==b.label&&c.receiverType!=chrome.cast.ReceiverType.DIAL){if(this.j.A)return bm("Reselecting dial screen."),
this.O("yt-remote-cast2-session-change",this.j.A),Promise.resolve(new chrome.cast.DialLaunchResponse(!1));this.$a('Changing CAST intent from "'+c.receiverType+'" to "dial" for '+b.friendlyName);dm(this,new Ul(this.o,b))}b=this.j;b.G=a;return b.G.appState==chrome.cast.DialAppState.RUNNING?new Promise(x(b.gx,b,(b.G.extraData||{}).screenId||null)):new Promise(x(b.Tk,b))};
g.Op=function(a){if(!this.isDisposed()){bm("New cast session ID: "+a.sessionId);var b=a.receiver;if(b.receiverType!=chrome.cast.ReceiverType.CUSTOM){if(!this.j)if(b.receiverType==chrome.cast.ReceiverType.CAST)bm("Got resumed cast session before resumed mdx connection."),dm(this,new Ql(this.o,b),!0);else{this.$a("Got non-cast session without previous mdx receiver event, or mdx resume.");return}var c=this.j.o,d=Lk(this.o.ac(),c.label);d&&aj(d,b.label)&&c.receiverType!=chrome.cast.ReceiverType.CAST&&
b.receiverType==chrome.cast.ReceiverType.CAST&&(bm("onSessionEstablished_: manual to cast session change "+b.friendlyName),Ub(this.j),this.j=new Ql(this.o,b),this.j.subscribe("sessionScreen",x(this.Pp,this,this.j)),this.j.Bf(null));this.j.Fl(a)}}};g.uC=function(){return this.j?this.j.gr():null};g.oA=function(a){this.isDisposed()||(this.$a("Failed to estabilish a session: "+xe(a)),a.code!=chrome.cast.ErrorCode.CANCEL&&dm(this,null))};
g.bA=function(a){bm("Receiver availability updated: "+a);if(!this.isDisposed()){var b=am(this);this.C=a==chrome.cast.ReceiverAvailability.AVAILABLE;am(this)!=b&&this.O("yt-remote-cast2-availability-change",am(this))}};
function $l(a){var b=a.o.ar(),c=a.j&&a.j.o;a=F(b,function(a){c&&aj(a,c.label)&&(c=null);var b=a.j?a.j:a.id,f=cm(this,a);f?(f.label=b,f.friendlyName=a.name):(f=new chrome.cast.Receiver(b,a.name),f.receiverType=chrome.cast.ReceiverType.CUSTOM);return f},a);c&&(c.receiverType!=chrome.cast.ReceiverType.CUSTOM&&(c=new chrome.cast.Receiver(c.label,c.friendlyName),c.receiverType=chrome.cast.ReceiverType.CUSTOM),a.push(c));return a}
g.fr=function(){if(!this.isDisposed()){var a=am(this);this.A=$l(this);bm("Updating custom receivers: "+xe(this.A));chrome.cast.setCustomReceivers(this.A,v,x(function(){this.$a("Failed to set custom receivers.")},this));var b=am(this);b!=a&&this.O("yt-remote-cast2-availability-change",b)}};Yl.prototype.setLaunchParams=Yl.prototype.JB;Yl.prototype.setConnectedScreenStatus=Yl.prototype.IB;Yl.prototype.stopSession=Yl.prototype.vC;Yl.prototype.getCastSession=Yl.prototype.uC;
Yl.prototype.requestSession=Yl.prototype.requestSession;Yl.prototype.init=Yl.prototype.init;Yl.prototype.dispose=Yl.prototype.dispose;function em(a,b,c){fm()?hm(b)&&(im(!0),window.chrome&&chrome.cast&&chrome.cast.isAvailable?jm(a,c):(window.__onGCastApiAvailable=function(b,e){b?jm(a,c):(km("Failed to load cast API: "+e),lm(!1),im(!1),bk("yt-remote-cast-available"),bk("yt-remote-cast-receiver"),mm(),c(!1))},Hi())):gm("Cannot initialize because not running Chrome")}function mm(){gm("dispose");var a=nm();a&&a.dispose();om=null;q("yt.mdx.remote.cloudview.instance_",null,void 0);pm(!1);Fj(qm);qm.length=0}
function rm(){return!!ak("yt-remote-cast-installed")}function sm(){var a=ak("yt-remote-cast-receiver");return a?Ja(a.friendlyName):null}function tm(){return rm()?nm()?om.getCastSession():(km("getCastSelector: Cast is not initialized."),null):(km("getCastSelector: Cast API is not installed!"),null)}
function um(){rm()?nm()?vm()?(gm("Requesting cast selector."),om.requestSession()):(gm("Wait for cast API to be ready to request the session."),qm.push(Dj("yt-remote-cast2-api-ready",um))):km("requestCastSelector: Cast is not initialized."):km("requestCastSelector: Cast API is not installed!")}function wm(a){vm()?nm().setLaunchParams(a):km("setLaunchParams called before ready.")}
function xm(){var a=ym();vm()?nm().setConnectedScreenStatus(a,"YouTube TV"):km("setConnectedScreenStatus called before ready.")}var om=null;function fm(){var a;a=0<=wc.search(/\ (CrMo|Chrome|CriOS)\//);return Mi||a}function zm(a,b){om.init(a,b)}
function hm(a){var b=!1;if(!om){var c=t("yt.mdx.remote.cloudview.instance_");c||(c=new Yl(a),c.subscribe("yt-remote-cast2-availability-change",function(a){Yj("yt-remote-cast-available",a);Gj("yt-remote-cast2-availability-change",a)}),c.subscribe("yt-remote-cast2-receiver-selected",function(a){gm("onReceiverSelected: "+a.friendlyName);Yj("yt-remote-cast-receiver",a);Gj("yt-remote-cast2-receiver-selected",a)}),c.subscribe("yt-remote-cast2-receiver-resumed",function(a){gm("onReceiverResumed: "+a.friendlyName);
Yj("yt-remote-cast-receiver",a)}),c.subscribe("yt-remote-cast2-session-change",function(a){gm("onSessionChange: "+fj(a));a||bk("yt-remote-cast-receiver");Gj("yt-remote-cast2-session-change",a)}),q("yt.mdx.remote.cloudview.instance_",c,void 0),b=!0);om=c}gm("cloudview.createSingleton_: "+b);return b}function nm(){om||(om=t("yt.mdx.remote.cloudview.instance_"));return om}
function jm(a,b){lm(!0);im(!1);zm(a,function(a){a?(pm(!0),Gj("yt-remote-cast2-api-ready")):(km("Failed to initialize cast API."),lm(!1),bk("yt-remote-cast-available"),bk("yt-remote-cast-receiver"),mm());b(a)})}function gm(a){Xi("cloudview",a)}function km(a){Xi("cloudview",a)}function lm(a){gm("setCastInstalled_ "+a);Yj("yt-remote-cast-installed",a)}function vm(){return!!t("yt.mdx.remote.cloudview.apiReady_")}function pm(a){gm("setApiReady_ "+a);q("yt.mdx.remote.cloudview.apiReady_",a,void 0)}
function im(a){q("yt.mdx.remote.cloudview.initializing_",a,void 0)}var qm=[];function Am(a,b){this.action=a;this.params=b||null};function Bm(a){this.type="";this.state=this.source=this.data=this.currentTarget=this.relatedTarget=this.target=null;this.charCode=this.keyCode=0;this.shiftKey=this.ctrlKey=this.altKey=!1;this.rotation=this.clientY=this.clientX=0;this.scale=1;this.changedTouches=this.touches=null;if(a=a||window.event){this.event=a;for(var b in a)b in Cm||(this[b]=a[b]);this.scale=a.scale;this.rotation=a.rotation;(b=a.target||a.srcElement)&&3==b.nodeType&&(b=b.parentNode);this.target=b;if(b=a.relatedTarget)try{b=b.nodeName?
b:null}catch(c){b=null}else"mouseover"==this.type?b=a.fromElement:"mouseout"==this.type&&(b=a.toElement);this.relatedTarget=b;this.clientX=void 0!=a.clientX?a.clientX:a.pageX;this.clientY=void 0!=a.clientY?a.clientY:a.pageY;this.keyCode=a.keyCode?a.keyCode:a.which;this.charCode=a.charCode||("keypress"==this.type?this.keyCode:0);this.altKey=a.altKey;this.ctrlKey=a.ctrlKey;this.shiftKey=a.shiftKey;this.j=a.pageX;this.o=a.pageY}}
function Dm(a){if(document.body&&document.documentElement){var b=document.body.scrollTop+document.documentElement.scrollTop;a.j=a.clientX+(document.body.scrollLeft+document.documentElement.scrollLeft);a.o=a.clientY+b}}Bm.prototype.preventDefault=function(){this.event&&(this.event.returnValue=!1,this.event.preventDefault&&this.event.preventDefault())};Bm.prototype.Eo=function(){return this.event?!1===this.event.returnValue:!1};
Bm.prototype.stopPropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopPropagation&&this.event.stopPropagation())};var Cm={stopImmediatePropagation:1,stopPropagation:1,preventMouseEvent:1,preventManipulation:1,preventDefault:1,layerX:1,layerY:1,scale:1,rotation:1,webkitMovementX:1,webkitMovementY:1};var Em=t("yt.events.listeners_")||{};q("yt.events.listeners_",Em,void 0);var Fm=t("yt.events.counter_")||{count:0};q("yt.events.counter_",Fm,void 0);function Gm(a,b,c,d){return hc(Em,function(e){return e[0]==a&&e[1]==b&&e[2]==c&&e[4]==!!d})}
function Hm(a,b,c,d){if(!a||!a.addEventListener&&!a.attachEvent)return"";d=!!d;var e=Gm(a,b,c,d);if(e)return e;var e=++Fm.count+"",f=!("mouseenter"!=b&&"mouseleave"!=b||!a.addEventListener||"onmouseenter"in document),h;h=f?function(d){d=new Bm(d);if(!jg(d.relatedTarget,function(b){return b==a}))return d.currentTarget=a,d.type=b,c.call(a,d)}:function(b){b=new Bm(b);b.currentTarget=a;return c.call(a,b)};h=rj(h);Em[e]=[a,b,c,h,d];a.addEventListener?"mouseenter"==b&&f?a.addEventListener("mouseover",h,
d):"mouseleave"==b&&f?a.addEventListener("mouseout",h,d):"mousewheel"==b&&"MozBoxSizing"in document.documentElement.style?a.addEventListener("MozMousePixelScroll",h,d):a.addEventListener(b,h,d):a.attachEvent("on"+b,h);return e}function Im(a,b,c){var d;return d=Hm(a,b,function(){Jm(d);c.apply(a,arguments)},void 0)}function Km(a,b){return Lm(a,b,function(a){return re(a,"iv-card-poll-choice-input")})}
function Lm(a,b,c){var d=a||document;return Hm(d,"change",function(a){var f=jg(a.target,function(a){return a===d||c(a)});f&&f!==d&&!f.disabled&&(a.currentTarget=f,b.call(f,a))})}function Jm(a){a&&("string"==typeof a&&(a=[a]),E(a,function(a){if(a in Em){var c=Em[a],d=c[0],e=c[1],f=c[3],c=c[4];d.removeEventListener?d.removeEventListener(e,f,c):d.detachEvent&&d.detachEvent("on"+e,f);delete Em[a]}}))}function Mm(a){for(var b in Em)Em[b][0]==a&&Jm(b)}
function Nm(a){a=a||window.event;a=a.target||a.srcElement;3==a.nodeType&&(a=a.parentNode);return a}function Om(a){a=a||window.event;return a.path&&a.path.length?a.path[0]:Nm(a)}function Pm(a){a=a||window.event;var b=a.relatedTarget;b||("mouseover"==a.type?b=a.fromElement:"mouseout"==a.type&&(b=a.toElement));return b}
function Qm(a){a=a||window.event;var b=a.pageX,c=a.pageY;document.body&&document.documentElement&&(b||(b=a.clientX+document.body.scrollLeft+document.documentElement.scrollLeft),c||(c=a.clientY+document.body.scrollTop+document.documentElement.scrollTop));return new Ge(b,c)}function Rm(a){a=a||window.event;a.returnValue=!1;a.preventDefault&&a.preventDefault()}function Sm(a){a=a||window.event;return!1===a.returnValue||a.Eo&&a.Eo()}function Tm(a){a=a||window.event;return a.keyCode?a.keyCode:a.which}
function Um(a,b){var c=0;"MozMousePixelScroll"==a.type?c=b==(a.axis==a.HORIZONTAL_AXIS)?a.detail:0:window.opera?c=b?0:a.detail:c=0==a.wheelDelta%120?"WebkitTransform"in document.documentElement.style?window.chrome&&0==navigator.platform.indexOf("Mac")?(b?a.wheelDeltaX:a.wheelDeltaY)/-30:(b?a.wheelDeltaX:a.wheelDeltaY)/-1.2:b?0:a.wheelDelta/-1.6:(b?a.wheelDeltaX:a.wheelDeltaY)/-3;return c};function Vm(){if(!("cast"in window))return!1;var a=window.cast||{};return"ActivityStatus"in a&&"Api"in a&&"LaunchRequest"in a&&"Receiver"in a}function Wm(a){Xi("CAST",a)}function Xm(a){var b=Ym();b&&b.logMessage&&b.logMessage(a)}function Zm(a){if(a.event.source==window&&a.event.data&&"CastApi"==a.event.data.source&&"Hello"==a.event.data.event)for(;$m.length;)$m.shift()()}
function an(){if(!t("yt.mdx.remote.castv2_")&&!bn&&(ub(cn)&&Cb(cn,rl()),Vm())){var a=Ym();a?(a.removeReceiverListener("YouTube",dn),a.addReceiverListener("YouTube",dn),Wm("API initialized in the other binary")):(a=new cast.Api,en(a),a.addReceiverListener("YouTube",dn),a.setReloadTabRequestHandler&&a.setReloadTabRequestHandler(function(){qj(function(){window.location.reload(!0)},1E3)}),Ti(Xm),Wm("API initialized"));bn=!0}}
function fn(){var a=Ym();a&&(Wm("API disposed"),Wi(Xm),a.setReloadTabRequestHandler&&a.setReloadTabRequestHandler(v),a.removeReceiverListener("YouTube",dn),en(null));bn=!1;$m=null;(a=Gm(window,"message",Zm,!1))&&Jm(a)}function gn(a){var b=qb(cn,function(b){return b.id==a.id});0<=b&&(cn[b]={id:a.id,name:a.name,activityId:a.j,status:a.status})}
function dn(a){a.length&&Wm("Updating receivers: "+xe(a));hn(a);Gj("yt-remote-cast-device-list-update");E(jn(),function(a){kn(a.id)});E(a,function(a){if(a.isTabProjected){var c=ln(a.id);Wm("Detected device: "+c.id+" is tab projected. Firing DEVICE_TAB_PROJECTED event.");qj(function(){Gj("yt-remote-cast-device-tab-projected",c.id)},1E3)}})}
function mn(a,b){Wm("Updating "+a+" activity status: "+xe(b));var c=ln(a);c?(b.activityId&&(c.j=b.activityId),c.status="running"==b.status?"RUNNING":"stopped"==b.status?"STOPPED":"error"==b.status?"ERROR":"UNKNOWN","RUNNING"!=c.status&&(c.j=""),gn(c),Gj("yt-remote-cast-device-status-update",c)):Wm("Device not found")}function jn(){an();return Ik(cn)}function hn(a){a=F(a,function(a){var c={id:a.id,name:Ja(a.name)};if(a=ln(a.id))c.activityId=a.j,c.status=a.status;return c});vb(cn);Cb(cn,a)}
function ln(a){var b=jn();return G(b,function(b){return b.id==a})||null}function kn(a){var b=ln(a),c=Ym();c&&b&&b.j&&c.getActivityStatus(b.j,function(b){"error"==b.status&&(b.status="stopped");mn(a,b)})}function nn(a){an();var b=ln(a),c=Ym();c&&b&&b.j?(Wm("Stopping cast activity"),c.stopActivity(b.j,pa(mn,a))):Wm("Dropping cast activity stop")}function Ym(){return t("yt.mdx.remote.castapi.api_")}function en(a){q("yt.mdx.remote.castapi.api_",a,void 0)}
var bn=!1,$m=null,cn=t("yt.mdx.remote.castapi.devices_")||[];q("yt.mdx.remote.castapi.devices_",cn,void 0);function on(){};function pn(){this.j=A()}new pn;pn.prototype.set=function(a){this.j=a};pn.prototype.reset=function(){this.set(A())};pn.prototype.get=function(){return this.j};function qn(a,b){this.o=new ye(a);this.j=b?we:ve}qn.prototype.stringify=function(a){return this.o.$b(a)};qn.prototype.parse=function(a){return this.j(a)};function rn(a){this.o=0;this.A=a||100;this.j=[]}g=rn.prototype;g.get=function(a){a=sn(this,a);return this.j[a]};g.set=function(a,b){a=sn(this,a);this.j[a]=b};g.ab=function(){return this.j.length};g.isEmpty=function(){return 0==this.j.length};g.clear=function(){this.o=this.j.length=0};g.Ia=function(){for(var a=this.ab(),b=this.ab(),c=[],a=this.ab()-a;a<b;a++)c.push(this.get(a));return c};g.Ma=function(){for(var a=[],b=this.ab(),c=0;c<b;c++)a[c]=c;return a};
g.we=function(a){for(var b=this.ab(),c=0;c<b;c++)if(this.get(c)==a)return!0;return!1};function sn(a,b){if(b>=a.j.length)throw Error("Out of bounds exception");return a.j.length<a.A?b:(a.o+Number(b))%a.A};function tn(a,b,c){H.call(this);this.B=null!=c?x(a,c):a;this.A=b;this.o=x(this.zA,this);this.j=[]}B(tn,H);g=tn.prototype;g.Mf=!1;g.Ng=0;g.ya=null;g.lf=function(a){this.j=arguments;this.ya||this.Ng?this.Mf=!0:un(this)};g.stop=function(){this.ya&&(ne(this.ya),this.ya=null,this.Mf=!1,this.j=[])};g.pause=function(){this.Ng++};g.resume=function(){this.Ng--;this.Ng||!this.Mf||this.ya||(this.Mf=!1,un(this))};g.R=function(){tn.N.R.call(this);this.stop()};
g.zA=function(){this.ya=null;this.Mf&&!this.Ng&&(this.Mf=!1,un(this))};function un(a){a.ya=me(a.o,a.A);a.B.apply(null,a.j)};function vn(a){H.call(this);this.B=a;this.o={}}B(vn,H);var wn=[];g=vn.prototype;g.P=function(a,b,c,d){return xn(this,a,b,c,d)};function yn(a,b,c,d,e){xn(a,b,c,d,!1,e)}function xn(a,b,c,d,e,f){ea(c)||(c&&(wn[0]=c.toString()),c=wn);for(var h=0;h<c.length;h++){var k=md(b,c[h],d||a.handleEvent,e||!1,f||a.B||a);if(!k)break;a.o[k.key]=k}return a}function zn(a,b,c,d){An(a,b,c,d,void 0)}function Bn(a,b,c,d,e){An(a,b,c,d,!1,e)}
function An(a,b,c,d,e,f){if(ea(c))for(var h=0;h<c.length;h++)An(a,b,c[h],d,e,f);else(b=td(b,c,d||a.handleEvent,e,f||a.B||a))&&(a.o[b.key]=b)}g.ua=function(a,b,c,d,e){if(ea(b))for(var f=0;f<b.length;f++)this.ua(a,b[f],c,d,e);else c=c||this.handleEvent,e=e||this.B||this,c=nd(c),d=!!d,b=ad(a)?id(a.gd,String(b),c,d,e):a?(a=pd(a))?id(a,b,c,d,e):null:null,b&&(vd(b),delete this.o[b.key]);return this};g.removeAll=function(){Wb(this.o,function(a,b){this.o.hasOwnProperty(b)&&vd(a)},this);this.o={}};
g.R=function(){vn.N.R.call(this);this.removeAll()};g.handleEvent=function(){throw Error("EventHandler.handleEvent not implemented");};function Cn(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 Dn(){}Dn.prototype.j=null;function En(a){var b;(b=a.j)||(b={},Fn(a)&&(b[0]=!0,b[1]=!0),b=a.j=b);return b};var Gn;function Hn(){}B(Hn,Dn);function In(a){return(a=Fn(a))?new ActiveXObject(a):new XMLHttpRequest}function Fn(a){if(!a.o&&"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.o=d}catch(e){}}throw Error("Could not create ActiveXObject. ActiveX might be disabled, or MSXML might not be installed");}return a.o}Gn=new Hn;function Jn(a,b,c,d,e){this.j=a;this.A=c;this.G=d;this.F=e||1;this.C=45E3;this.B=new vn(this);this.o=new ke;le(this.o,250)}g=Jn.prototype;g.Ce=null;g.Fc=!1;g.Tf=null;g.$l=null;g.Rg=null;g.mf=null;g.Rd=null;g.de=null;g.Ke=null;g.xb=null;g.ah=0;g.Hc=null;g.ej=null;g.De=null;g.zg=-1;g.rq=!0;g.se=!1;g.Dk=0;g.Ji=null;var Kn={},Ln={};g=Jn.prototype;g.setTimeout=function(a){this.C=a};function Mn(a,b,c){a.mf=1;a.Rd=Th(b.clone());a.Ke=c;a.D=!0;Nn(a,null)}
function On(a,b,c,d,e){a.mf=1;a.Rd=Th(b.clone());a.Ke=null;a.D=c;e&&(a.rq=!1);Nn(a,d)}function Nn(a,b){a.Rg=A();Pn(a);a.de=a.Rd.clone();Rh(a.de,"t",a.F);a.ah=0;a.xb=a.j.ek(a.j.Xg()?b:null);0<a.Dk&&(a.Ji=new tn(x(a.Sq,a,a.xb),a.Dk));a.B.P(a.xb,"readystatechange",a.sB);var c=a.Ce?nc(a.Ce):{};a.Ke?(a.ej="POST",c["Content-Type"]="application/x-www-form-urlencoded",a.xb.send(a.de,a.ej,a.Ke,c)):(a.ej="GET",a.rq&&!Jc&&(c.Connection="close"),a.xb.send(a.de,a.ej,null,c));a.j.Cc(1)}
g.sB=function(a){a=a.target;var b=this.Ji;b&&3==Qn(a)?b.lf():this.Sq(a)};
g.Sq=function(a){try{if(a==this.xb)a:{var b=Qn(this.xb),c=this.xb.o,d=this.xb.getStatus();if(Fc&&!(10<=Vc)||Jc&&!Tc("420+")){if(4>b)break a}else if(3>b||3==b&&!Ec&&!Rn(this.xb))break a;this.se||4!=b||7==c||(8==c||0>=d?this.j.Cc(3):this.j.Cc(2));Sn(this);var e=this.xb.getStatus();this.zg=e;var f=Rn(this.xb);(this.Fc=200==e)?(4==b&&Tn(this),this.D?(Un(this,b,f),Ec&&this.Fc&&3==b&&(this.B.P(this.o,"tick",this.mB),this.o.start())):Vn(this,f),this.Fc&&!this.se&&(4==b?this.j.Fi(this):(this.Fc=!1,Pn(this)))):
(this.De=400==e&&0<f.indexOf("Unknown SID")?3:0,Wn(),Tn(this),Xn(this))}}catch(h){this.xb&&Rn(this.xb)}finally{}};function Un(a,b,c){for(var d=!0;!a.se&&a.ah<c.length;){var e=Yn(a,c);if(e==Ln){4==b&&(a.De=4,Wn(),d=!1);break}else if(e==Kn){a.De=4;Wn();d=!1;break}else Vn(a,e)}4==b&&0==c.length&&(a.De=1,Wn(),d=!1);a.Fc=a.Fc&&d;d||(Tn(a),Xn(a))}g.mB=function(){var a=Qn(this.xb),b=Rn(this.xb);this.ah<b.length&&(Sn(this),Un(this,a,b),this.Fc&&4!=a&&Pn(this))};
function Yn(a,b){var c=a.ah,d=b.indexOf("\n",c);if(-1==d)return Ln;c=Number(b.substring(c,d));if(isNaN(c))return Kn;d+=1;if(d+c>b.length)return Ln;var e=b.substr(d,c);a.ah=d+c;return e}
function Zn(a,b){a.Rg=A();Pn(a);var c=b?window.location.hostname:"";a.de=a.Rd.clone();Qh(a.de,"DOMAIN",c);Qh(a.de,"t",a.F);try{a.Hc=new ActiveXObject("htmlfile")}catch(n){Tn(a);a.De=7;Wn();Xn(a);return}var d="<html><body>";if(b){for(var e="",f=0;f<c.length;f++){var h=c.charAt(f);if("<"==h)e=e+"\\x3c";else if(">"==h)e=e+"\\x3e";else{if(h in Qa)h=Qa[h];else if(h in Pa)h=Qa[h]=Pa[h];else{var k=h,l=h.charCodeAt(0);if(31<l&&127>l)k=h;else{if(256>l){if(k="\\x",16>l||256<l)k+="0"}else k="\\u",4096>l&&(k+=
"0");k+=l.toString(16).toUpperCase()}h=Qa[h]=k}e+=h}}d+='<script>document.domain="'+e+'"\x3c/script>'}d+="</body></html>";c=gk(bf("b/12014412"),d);a.Hc.open();a.Hc.write(sf(c));a.Hc.close();a.Hc.parentWindow.m=x(a.IA,a);a.Hc.parentWindow.d=x(a.Vp,a,!0);a.Hc.parentWindow.rpcClose=x(a.Vp,a,!1);c=a.Hc.createElement("DIV");a.Hc.parentWindow.document.body.appendChild(c);d=mf(a.de.toString());d=Ba(kf(d));d=gk(bf("b/12014412"),'<iframe src="'+d+'"></iframe>');c.innerHTML=sf(d);a.j.Cc(1)}
g.IA=function(a){$n(x(this.HA,this,a),0)};g.HA=function(a){this.se||(Sn(this),Vn(this,a),Pn(this))};g.Vp=function(a){$n(x(this.GA,this,a),0)};g.GA=function(a){this.se||(Tn(this),this.Fc=a,this.j.Fi(this),this.j.Cc(4))};g.cancel=function(){this.se=!0;Tn(this)};function Pn(a){a.$l=A()+a.C;ao(a,a.C)}function ao(a,b){if(null!=a.Tf)throw Error("WatchDog timer not null");a.Tf=$n(x(a.ZA,a),b)}function Sn(a){a.Tf&&(m.clearTimeout(a.Tf),a.Tf=null)}
g.ZA=function(){this.Tf=null;var a=A();0<=a-this.$l?(2!=this.mf&&this.j.Cc(3),Tn(this),this.De=2,Wn(),Xn(this)):ao(this,this.$l-a)};function Xn(a){a.j.Wn()||a.se||a.j.Fi(a)}function Tn(a){Sn(a);Ub(a.Ji);a.Ji=null;a.o.stop();a.B.removeAll();if(a.xb){var b=a.xb;a.xb=null;bo(b);b.dispose()}a.Hc&&(a.Hc=null)}function Vn(a,b){try{a.j.Lp(a,b),a.j.Cc(4)}catch(c){}};function co(a,b,c,d,e){if(0==d)c(!1);else{var f=e||0;d--;eo(a,b,function(e){e?c(!0):m.setTimeout(function(){co(a,b,c,d,f)},f)})}}function eo(a,b,c){var d=new Image;d.onload=function(){try{fo(d),c(!0)}catch(a){}};d.onerror=function(){try{fo(d),c(!1)}catch(a){}};d.onabort=function(){try{fo(d),c(!1)}catch(a){}};d.ontimeout=function(){try{fo(d),c(!1)}catch(a){}};m.setTimeout(function(){if(d.ontimeout)d.ontimeout()},b);d.src=a}
function fo(a){a.onload=null;a.onerror=null;a.onabort=null;a.ontimeout=null};function go(a){this.j=a;this.o=new qn(null,!0)}g=go.prototype;g.Ak=null;g.Zb=null;g.Ki=!1;g.Xn=null;g.$h=null;g.Bk=null;g.Ck=null;g.gc=null;g.md=-1;g.yg=null;g.hg=null;g.connect=function(a){this.Ck=a;a=ho(this.j,null,this.Ck);Wn();this.Xn=A();var b=this.j.G;null!=b?(this.yg=b[0],(this.hg=b[1])?(this.gc=1,io(this)):(this.gc=2,jo(this))):(Rh(a,"MODE","init"),this.Zb=new Jn(this,0,void 0,void 0,void 0),this.Zb.Ce=this.Ak,On(this.Zb,a,!1,null,!0),this.gc=0)};
function io(a){var b=ho(a.j,a.hg,"/mail/images/cleardot.gif");Th(b);co(b.toString(),5E3,x(a.dv,a),3,2E3);a.Cc(1)}g.dv=function(a){if(a)this.gc=2,jo(this);else{Wn();var b=this.j;b.yc=b.Nd.md;ko(b,9)}a&&this.Cc(2)};
function jo(a){var b=a.j.H;if(null!=b)Wn(),b?(Wn(),lo(a.j,a,!1)):(Wn(),lo(a.j,a,!0));else if(a.Zb=new Jn(a,0,void 0,void 0,void 0),a.Zb.Ce=a.Ak,b=a.j,b=ho(b,b.Xg()?a.yg:null,a.Ck),Wn(),!Fc||10<=Vc)Rh(b,"TYPE","xmlhttp"),On(a.Zb,b,!1,a.yg,!1);else{Rh(b,"TYPE","html");var c=a.Zb;a=Boolean(a.yg);c.mf=3;c.Rd=Th(b.clone());Zn(c,a)}}g.ek=function(a){return this.j.ek(a)};g.Wn=function(){return!1};
g.Lp=function(a,b){this.md=a.zg;if(0==this.gc)if(b){try{var c=this.o.parse(b)}catch(d){c=this.j;c.yc=this.md;ko(c,2);return}this.yg=c[0];this.hg=c[1]}else c=this.j,c.yc=this.md,ko(c,2);else if(2==this.gc)if(this.Ki)Wn(),this.Bk=A();else if("11111"==b){if(Wn(),this.Ki=!0,this.$h=A(),c=this.$h-this.Xn,!Fc||10<=Vc||500>c)this.md=200,this.Zb.cancel(),Wn(),lo(this.j,this,!0)}else Wn(),this.$h=this.Bk=A(),this.Ki=!1};
g.Fi=function(){this.md=this.Zb.zg;if(this.Zb.Fc)0==this.gc?this.hg?(this.gc=1,io(this)):(this.gc=2,jo(this)):2==this.gc&&(a=!1,(a=!Fc||10<=Vc?this.Ki:200>this.Bk-this.$h?!1:!0)?(Wn(),lo(this.j,this,!0)):(Wn(),lo(this.j,this,!1)));else{0==this.gc?Wn():2==this.gc&&Wn();var a=this.j;a.yc=this.md;ko(a,2)}};g.Xg=function(){return this.j.Xg()};g.isActive=function(){return this.j.isActive()};g.Cc=function(a){this.j.Cc(a)};function mo(a){J.call(this);this.headers=new Yg;this.L=a||null;this.A=!1;this.K=this.j=null;this.T=this.G="";this.o=0;this.D="";this.B=this.U=this.F=this.M=!1;this.C=0;this.H=null;this.X="";this.J=this.S=!1}B(mo,J);var no=/^https?$/i,oo=["POST","PUT"];function po(a,b){a.C=Math.max(0,b)}g=mo.prototype;
g.send=function(a,b,c,d){if(this.j)throw Error("[goog.net.XhrIo] Object is active with another request="+this.G+"; newUri="+a);b=b?b.toUpperCase():"GET";this.G=a;this.D="";this.o=0;this.T=b;this.M=!1;this.A=!0;this.j=this.L?In(this.L):In(Gn);this.K=this.L?En(this.L):En(Gn);this.j.onreadystatechange=x(this.Hp,this);try{on(qo(this,"Opening Xhr")),this.U=!0,this.j.open(b,String(a),!0),this.U=!1}catch(f){on(qo(this,"Error opening Xhr: "+f.message));ro(this,f);return}a=c||"";var e=this.headers.clone();
d&&fh(d,function(a,b){e.set(b,a)});d=G(e.Ma(),so);c=m.FormData&&a instanceof m.FormData;!tb(oo,b)||d||c||e.set("Content-Type","application/x-www-form-urlencoded;charset=utf-8");e.forEach(function(a,b){this.j.setRequestHeader(b,a)},this);this.X&&(this.j.responseType=this.X);gc(this.j,"withCredentials")&&(this.j.withCredentials=this.S);try{to(this),0<this.C&&(this.J=uo(this.j),on(qo(this,"Will abort after "+this.C+"ms if incomplete, xhr2 "+this.J)),this.J?(this.j.timeout=this.C,this.j.ontimeout=x(this.Yn,
this)):this.H=me(this.Yn,this.C,this)),on(qo(this,"Sending request")),this.F=!0,this.j.send(a),this.F=!1}catch(f){on(qo(this,"Send error: "+f.message)),ro(this,f)}};function uo(a){return Fc&&Tc(9)&&ga(a.timeout)&&p(a.ontimeout)}function so(a){return"content-type"==a.toLowerCase()}g.Yn=function(){"undefined"!=typeof aa&&this.j&&(this.D="Timed out after "+this.C+"ms, aborting",this.o=8,qo(this,this.D),this.Y("timeout"),bo(this,8))};
function ro(a,b){a.A=!1;a.j&&(a.B=!0,a.j.abort(),a.B=!1);a.D=b;a.o=5;vo(a);wo(a)}function vo(a){a.M||(a.M=!0,a.Y("complete"),a.Y("error"))}function bo(a,b){a.j&&a.A&&(qo(a,"Aborting"),a.A=!1,a.B=!0,a.j.abort(),a.B=!1,a.o=b||7,a.Y("complete"),a.Y("abort"),wo(a))}g.R=function(){this.j&&(this.A&&(this.A=!1,this.B=!0,this.j.abort(),this.B=!1),wo(this,!0));mo.N.R.call(this)};g.Hp=function(){this.isDisposed()||(this.U||this.F||this.B?xo(this):this.Zz())};g.Zz=function(){xo(this)};
function xo(a){if(a.A&&"undefined"!=typeof aa)if(a.K[1]&&4==Qn(a)&&2==a.getStatus())qo(a,"Local request error detected and ignored");else if(a.F&&4==Qn(a))me(a.Hp,0,a);else if(a.Y("readystatechange"),4==Qn(a)){qo(a,"Request complete");a.A=!1;try{var b=a.getStatus(),c;a:switch(b){case 200:case 201:case 202:case 204:case 206:case 304:case 1223:c=!0;break a;default:c=!1}var d;if(!(d=c)){var e;if(e=0===b){var f=jh(String(a.G))[1]||null;if(!f&&m.self&&m.self.location)var h=m.self.location.protocol,f=h.substr(0,
h.length-1);e=!no.test(f?f.toLowerCase():"")}d=e}if(d)a.Y("complete"),a.Y("success");else{a.o=6;var k;try{k=2<Qn(a)?a.j.statusText:""}catch(l){k=""}a.D=k+" ["+a.getStatus()+"]";vo(a)}}finally{wo(a)}}}function wo(a,b){if(a.j){to(a);var c=a.j,d=a.K[0]?v:null;a.j=null;a.K=null;b||a.Y("ready");try{c.onreadystatechange=d}catch(e){}}}function to(a){a.j&&a.J&&(a.j.ontimeout=null);ga(a.H)&&(ne(a.H),a.H=null)}g.isActive=function(){return!!this.j};function Qn(a){return a.j?a.j.readyState:0}
g.getStatus=function(){try{return 2<Qn(this)?this.j.status:-1}catch(a){return-1}};function Rn(a){try{return a.j?a.j.responseText:""}catch(b){return""}}function qo(a,b){return b+" ["+a.T+" "+a.G+" "+a.getStatus()+"]"};function yo(a,b,c){this.F=a||null;this.j=1;this.o=[];this.B=[];this.C=new qn(null,!0);this.G=b||null;this.H=null!=c?c:null}function zo(a,b){this.j=a;this.map=b;this.context=null}g=yo.prototype;g.qg=null;g.Qb=null;g.nb=null;g.zk=null;g.ai=null;g.qn=null;g.ii=null;g.Jg=0;g.Ex=0;g.Ib=null;g.Od=null;g.ed=null;g.xe=null;g.Nd=null;g.dj=null;g.Af=-1;g.Mo=-1;g.yc=-1;g.tg=0;g.bf=0;g.ue=8;var Ao=new J;function Bo(a){sc.call(this,"statevent",a)}B(Bo,sc);
function Co(a,b){sc.call(this,"timingevent",a);this.size=b}B(Co,sc);function Do(a){sc.call(this,"serverreachability",a)}B(Do,sc);g=yo.prototype;g.connect=function(a,b,c,d,e){Wn();this.zk=b;this.qg=c||{};d&&p(e)&&(this.qg.OSID=d,this.qg.OAID=e);this.Nd=new go(this);this.Nd.Ak=null;this.Nd.o=this.C;this.Nd.connect(a)};
function Eo(a){Fo(a);if(3==a.j){var b=a.Jg++,c=a.ai.clone();Qh(c,"SID",a.A);Qh(c,"RID",b);Qh(c,"TYPE","terminate");Go(a,c);b=new Jn(a,0,a.A,b,void 0);b.mf=2;b.Rd=Th(c.clone());(new Image).src=b.Rd;b.Rg=A();Pn(b)}Ho(a)}function Fo(a){if(a.Nd){var b=a.Nd;b.Zb&&(b.Zb.cancel(),b.Zb=null);b.md=-1;a.Nd=null}a.nb&&(a.nb.cancel(),a.nb=null);a.ed&&(m.clearTimeout(a.ed),a.ed=null);Io(a);a.Qb&&(a.Qb.cancel(),a.Qb=null);a.Od&&(m.clearTimeout(a.Od),a.Od=null)}
function Jo(a,b){if(0==a.j)throw Error("Invalid operation: sending map when state is closed");a.o.push(new zo(a.Ex++,b));2!=a.j&&3!=a.j||Ko(a)}g.Wn=function(){return 0==this.j};function Ko(a){a.Qb||a.Od||(a.Od=$n(x(a.Sp,a),0),a.tg=0)}g.Sp=function(a){this.Od=null;Lo(this,a)};
function Lo(a,b){if(1==a.j){if(!b){a.Jg=Math.floor(1E5*Math.random());var c=a.Jg++,d=new Jn(a,0,"",c,void 0);d.Ce=null;var e=Mo(a),f=a.ai.clone();Qh(f,"RID",c);a.F&&Qh(f,"CVER",a.F);Go(a,f);Mn(d,f,e);a.Qb=d;a.j=2}}else 3==a.j&&(b?No(a,b):0!=a.o.length&&(a.Qb||No(a)))}
function No(a,b){var c,d;b?6<a.ue?(a.o=a.B.concat(a.o),a.B.length=0,c=a.Jg-1,d=Mo(a)):(c=b.G,d=b.Ke):(c=a.Jg++,d=Mo(a));var e=a.ai.clone();Qh(e,"SID",a.A);Qh(e,"RID",c);Qh(e,"AID",a.Af);Go(a,e);c=new Jn(a,0,a.A,c,a.tg+1);c.Ce=null;c.setTimeout(Math.round(1E4)+Math.round(1E4*Math.random()));a.Qb=c;Mn(c,e,d)}function Go(a,b){if(a.Ib){var c=a.Ib.Nn(a);c&&Wb(c,function(a,c){Qh(b,c,a)})}}
function Mo(a){var b=Math.min(a.o.length,1E3),c=["count="+b],d;6<a.ue&&0<b?(d=a.o[0].j,c.push("ofs="+d)):d=0;for(var e=0;e<b;e++){var f=a.o[e].j,h=a.o[e].map,f=6>=a.ue?e:f-d;try{fh(h,function(a,b){c.push("req"+f+"_"+b+"="+encodeURIComponent(a))})}catch(k){c.push("req"+f+"_type="+encodeURIComponent("_badmap"))}}a.B=a.B.concat(a.o.splice(0,b));return c.join("&")}function Po(a){a.nb||a.ed||(a.D=1,a.ed=$n(x(a.Rp,a),0),a.bf=0)}
function Qo(a){if(a.nb||a.ed||3<=a.bf)return!1;a.D++;a.ed=$n(x(a.Rp,a),Ro(a,a.bf));a.bf++;return!0}g.Rp=function(){this.ed=null;this.nb=new Jn(this,0,this.A,"rpc",this.D);this.nb.Ce=null;this.nb.Dk=0;var a=this.qn.clone();Qh(a,"RID","rpc");Qh(a,"SID",this.A);Qh(a,"CI",this.dj?"0":"1");Qh(a,"AID",this.Af);Go(this,a);if(!Fc||10<=Vc)Qh(a,"TYPE","xmlhttp"),On(this.nb,a,!0,this.ii,!1);else{Qh(a,"TYPE","html");var b=this.nb,c=Boolean(this.ii);b.mf=3;b.Rd=Th(a.clone());Zn(b,c)}};
function lo(a,b,c){a.dj=c;a.yc=b.md;a.Bv(1,0);a.ai=ho(a,null,a.zk);Ko(a)}
g.Lp=function(a,b){if(0!=this.j&&(this.nb==a||this.Qb==a))if(this.yc=a.zg,this.Qb==a&&3==this.j)if(7<this.ue){var c;try{c=this.C.parse(b)}catch(f){c=null}if(ea(c)&&3==c.length)if(0==c[0])a:{if(!this.ed){if(this.nb)if(this.nb.Rg+3E3<this.Qb.Rg)Io(this),this.nb.cancel(),this.nb=null;else break a;Qo(this);Wn()}}else this.Mo=c[1],0<this.Mo-this.Af&&37500>c[2]&&this.dj&&0==this.bf&&!this.xe&&(this.xe=$n(x(this.gy,this),6E3));else ko(this,11)}else"y2f%"!=b&&ko(this,11);else if(this.nb==a&&Io(this),!C(b)){c=
this.C.parse(b);ea(c);for(var d=0;d<c.length;d++){var e=c[d];this.Af=e[0];e=e[1];2==this.j?"c"==e[0]?(this.A=e[1],this.ii=e[2],e=e[3],null!=e?this.ue=e:this.ue=6,this.j=3,this.Ib&&this.Ib.yn(this),this.qn=ho(this,this.Xg()?this.ii:null,this.zk),Po(this)):"stop"==e[0]&&ko(this,7):3==this.j&&("stop"==e[0]?ko(this,7):"noop"!=e[0]&&this.Ib&&this.Ib.xn(this,e),this.bf=0)}}};g.gy=function(){null!=this.xe&&(this.xe=null,this.nb.cancel(),this.nb=null,Qo(this),Wn())};
function Io(a){null!=a.xe&&(m.clearTimeout(a.xe),a.xe=null)}
g.Fi=function(a){var b;if(this.nb==a)Io(this),this.nb=null,b=2;else if(this.Qb==a)this.Qb=null,b=1;else return;this.yc=a.zg;if(0!=this.j)if(a.Fc)1==b?(A(),Ao.Y(new Co(Ao,a.Ke?a.Ke.length:0)),Ko(this),this.B.length=0):Po(this);else{var c=a.De,d;if(!(d=3==c||7==c||0==c&&0<this.yc)){if(d=1==b)this.Qb||this.Od||1==this.j||2<=this.tg?d=!1:(this.Od=$n(x(this.Sp,this,a),Ro(this,this.tg)),this.tg++,d=!0);d=!(d||2==b&&Qo(this))}if(d)switch(c){case 1:ko(this,5);break;case 4:ko(this,10);break;case 3:ko(this,
6);break;case 7:ko(this,12);break;default:ko(this,2)}}};function Ro(a,b){var c=5E3+Math.floor(1E4*Math.random());a.isActive()||(c*=2);return c*b}g.Bv=function(a){if(!tb(arguments,this.j))throw Error("Unexpected channel state: "+this.j);};function ko(a,b){if(2==b||9==b){var c=null;a.Ib&&(c=null);var d=x(a.TB,a);c||(c=new P("//www.google.com/images/cleardot.gif"),Th(c));eo(c.toString(),1E4,d)}else Wn();So(a,b)}g.TB=function(a){a?Wn():(Wn(),So(this,8))};
function So(a,b){a.j=0;a.Ib&&a.Ib.wn(a,b);Ho(a);Fo(a)}function Ho(a){a.j=0;a.yc=-1;if(a.Ib)if(0==a.B.length&&0==a.o.length)a.Ib.Yj(a);else{var b=Bb(a.B),c=Bb(a.o);a.B.length=0;a.o.length=0;a.Ib.Yj(a,b,c)}}function ho(a,b,c){var d=Uh(c);if(""!=d.o)b&&Bh(d,b+"."+d.o),Ch(d,d.C);else var e=window.location,d=Vh(e.protocol,b?b+"."+e.hostname:e.hostname,e.port,c);a.qg&&Wb(a.qg,function(a,b){Qh(d,b,a)});Qh(d,"VER",a.ue);Go(a,d);return d}
g.ek=function(a){if(a)throw Error("Can't create secondary domain capable XhrIo object.");a=new mo;a.S=!1;return a};g.isActive=function(){return!!this.Ib&&this.Ib.isActive(this)};function $n(a,b){if(!ha(a))throw Error("Fn must not be null and must be a function");return m.setTimeout(function(){a()},b)}g.Cc=function(){Ao.Y(new Do(Ao))};function Wn(){Ao.Y(new Bo(Ao))}g.Xg=function(){return!(!Fc||10<=Vc)};function To(){}g=To.prototype;g.yn=function(){};g.xn=function(){};g.wn=function(){};g.Yj=function(){};
g.Nn=function(){return{}};g.isActive=function(){return!0};function Uo(a,b){ke.call(this);this.C=0;if(ha(a))b&&(a=x(a,b));else if(a&&ha(a.handleEvent))a=x(a.handleEvent,a);else throw Error("Invalid listener argument");this.F=a;md(this,"tick",x(this.D,this));this.stop();le(this,5E3+2E4*Math.random())}B(Uo,ke);Uo.prototype.D=function(){if(500<this.j){var a=this.j;24E4>2*a&&(a*=2);le(this,a)}this.F()};Uo.prototype.start=function(){Uo.N.start.call(this);this.C=A()+this.j};Uo.prototype.stop=function(){this.C=0;Uo.N.stop.call(this)};function Vo(a,b){this.K=a;this.B=b;this.A=new kj;this.o=new Uo(this.nC,this);this.j=null;this.J=!1;this.D=null;this.H="";this.G=this.C=0;this.F=[]}B(Vo,To);g=Vo.prototype;g.subscribe=function(a,b,c){return this.A.subscribe(a,b,c)};g.unsubscribe=function(a,b,c){return this.A.unsubscribe(a,b,c)};g.Pb=function(a){return this.A.Pb(a)};g.O=function(a,b){return this.A.O.apply(this.A,arguments)};g.dispose=function(){this.J||(this.J=!0,this.A.clear(),Wo(this),Ub(this.A))};g.isDisposed=function(){return this.J};
function Xo(a){return{firstTestResults:[""],secondTestResults:!a.j.dj,sessionId:a.j.A,arrayId:a.j.Af}}g.connect=function(a,b,c){if(!this.j||2!=this.j.j){this.H="";this.o.stop();this.D=a||null;this.C=b||0;a=this.K+"/test";b=this.K+"/bind";var d=new yo("1",c?c.firstTestResults:null,c?c.secondTestResults:null),e=this.j;e&&(e.Ib=null);d.Ib=this;this.j=d;e?this.j.connect(a,b,this.B,e.A,e.Af):c?this.j.connect(a,b,this.B,c.sessionId,c.arrayId):this.j.connect(a,b,this.B)}};
function Wo(a,b){a.G=b||0;a.o.stop();a.j&&(3==a.j.j&&Lo(a.j),Eo(a.j));a.G=0}g.sendMessage=function(a,b){var c={_sc:a};b&&qc(c,b);this.o.enabled||2==(this.j?this.j.j:0)?this.F.push(c):this.j&&3==this.j.j&&Jo(this.j,c)};g.yn=function(){var a=this.o;a.stop();le(a,5E3+2E4*Math.random());this.D=null;this.C=0;if(this.F.length){a=this.F;this.F=[];for(var b=0,c=a.length;b<c;++b)Jo(this.j,a[b])}this.O("handlerOpened")};
g.wn=function(a,b){var c=2==b&&401==this.j.yc;if(4!=b&&!c){if(6==b||410==this.j.yc)c=this.o,c.stop(),le(c,500);this.o.start()}this.O("handlerError",b)};g.Yj=function(a,b,c){if(!this.o.enabled)this.O("handlerClosed");else if(c)for(a=0,b=c.length;a<b;++a)this.F.push(c[a].map)};g.Nn=function(){var a={v:2};this.H&&(a.gsessionid=this.H);0!=this.C&&(a.ui=""+this.C);0!=this.G&&(a.ui=""+this.G);this.D&&qc(a,this.D);return a};
g.xn=function(a,b){if("S"==b[0])this.H=b[1];else if("gracefulReconnect"==b[0]){var c=this.o;c.stop();le(c,500);this.o.start();Eo(this.j)}else this.O("handlerMessage",new Am(b[0],b[1]))};function Yo(a,b){(a.B.loungeIdToken=b)||a.o.stop()}g.nC=function(){this.o.stop();var a=this.j,b=0;a.nb&&b++;a.Qb&&b++;0!=b?this.o.start():this.connect(this.D,this.C)};function Zo(){this.j=[];this.o=[]}function $o(a){ub(a.j)&&(a.j=a.o,a.j.reverse(),a.o=[])}function ap(a,b){a.o.push(b)}function bp(a){$o(a);return a.j.pop()}g=Zo.prototype;g.ab=function(){return this.j.length+this.o.length};g.isEmpty=function(){return ub(this.j)&&ub(this.o)};g.clear=function(){this.j=[];this.o=[]};g.contains=function(a){return tb(this.j,a)||tb(this.o,a)};g.remove=function(a){var b=kb(this.j,a);if(0>b)return xb(this.o,a);yb(this.j,b);return!0};
g.Ia=function(){for(var a=[],b=this.j.length-1;0<=b;--b)a.push(this.j[b]);for(var c=this.o.length,b=0;b<c;++b)a.push(this.o[b]);return a};function cp(a){this.videoIds=null;this.index=-1;this.videoId=this.o="";this.volume=this.j=-1;this.muted=!1;this.audioTrackId=null;this.C=this.B=0;this.A=null;this.reset(a)}function dp(a,b){if(a.o)throw Error(b+" is not allowed in V3.");}function ep(a){a.volume=-1;a.muted=!1;a.audioTrackId=null;a.A=null;a.j=-1;a.B=0;a.C=A()}g=cp.prototype;
g.reset=function(a){this.videoIds=[];this.o="";fp(this);a&&(this.videoIds=a.videoIds,this.index=a.index,this.o=a.listId,this.videoId=a.videoId,this.j=a.playerState,this.volume=a.volume,this.muted=a.muted,this.audioTrackId=a.audioTrackId,this.A=a.trackData,this.B=a.playerTime,this.C=a.playerTimeAt)};function fp(a){a.index=-1;a.videoId="";ep(a)}g.ib=function(){return 1==this.j};function gp(a){return a.o?a.videoId:a.videoIds[a.index]}function hp(a,b){a.B=b;a.C=A()}
function ip(a){switch(a.j){case 1:return(A()-a.C)/1E3+a.B;case -1E3:return 0}return a.B}g.setVideoId=function(a){dp(this,"setVideoId");var b=this.index;this.index=jb(this.videoIds,a);b!=this.index&&ep(this);return-1!=b};function kp(a,b,c){var d=a.videoId;a.videoId=b;a.index=c;b!=d&&ep(a)}function lp(a,b,c){dp(a,"setPlaylist");c=c||gp(a);Nb(a.videoIds,b)&&c==gp(a)||(a.videoIds=Bb(b),a.setVideoId(c))}
g.remove=function(a){dp(this,"remove");var b=gp(this);return xb(this.videoIds,a)?(this.index=jb(this.videoIds,b),!0):!1};function mp(a){var b={};b.videoIds=Bb(a.videoIds);b.index=a.index;b.listId=a.o;b.videoId=a.videoId;b.playerState=a.j;b.volume=a.volume;b.muted=a.muted;b.audioTrackId=a.audioTrackId;b.trackData=oc(a.A);b.playerTime=a.B;b.playerTimeAt=a.C;return b}g.clone=function(){return new cp(mp(this))};function np(a,b){Mk.call(this);this.o=0;this.B=a;this.F=[];this.D=new Zo;this.C=NaN;this.A=this.j=null;this.J=x(this.ky,this);this.G=x(this.Kg,this);this.H=x(this.jy,this);var c=0;a?(c=a.getProxyState(),3!=c&&(a.subscribe("proxyStateChange",this.km,this),op(this))):c=3;0!=c&&(b?this.km(c):qj(x(function(){this.km(c)},this),0));pp(this,tm())}B(np,Mk);function qp(a){return new cp(a.B.getPlayerContextData())}g=np.prototype;
g.play=function(){1==this.o?(this.j?this.j.play(null,v,x(function(){this.$a("Failed to play video with cast v2 channel.");rp(this,"play")},this)):rp(this,"play"),sp(this,1,ip(qp(this))),tp(this)):up(this,this.play)};g.pause=function(){1==this.o?(this.j?this.j.pause(null,v,x(function(){this.$a("Failed to pause video with cast v2 channel.");rp(this,"pause")},this)):rp(this,"pause"),sp(this,2,ip(qp(this))),tp(this)):up(this,this.pause)};
g.Xq=function(a){if(1==this.o){if(this.j){var b=qp(this),c=new chrome.cast.media.SeekRequest;c.currentTime=a;c.resumeState=b.ib()||3==b.j?chrome.cast.media.ResumeState.PLAYBACK_START:chrome.cast.media.ResumeState.PLAYBACK_PAUSE;this.j.seek(c,v,x(function(){this.$a("Failed to seek in video with cast v2 channel.");rp(this,"seekTo",{newTime:a})},this))}else rp(this,"seekTo",{newTime:a});sp(this,3,a);tp(this)}else up(this,pa(this.Xq,a))};
g.stop=function(){if(1==this.o){this.j?this.j.stop(null,v,x(function(){this.$a("Failed to stop video with cast v2 channel.");rp(this,"stopVideo")},this)):rp(this,"stopVideo");var a=qp(this);fp(a);vp(this,a);tp(this)}else up(this,this.stop)};
g.setVolume=function(a,b){if(1==this.o){var c=qp(this);if(this.A){if(c.volume!=a){var d=Math.round(a)/100;this.A.setReceiverVolumeLevel(d,x(function(){wp("set receiver volume: "+d)},this),x(function(){this.$a("failed to set receiver volume.")},this))}c.muted!=b&&this.A.setReceiverMuted(b,x(function(){wp("set receiver muted: "+b)},this),x(function(){this.$a("failed to set receiver muted.")},this))}else{var e={volume:a,muted:b};-1!=c.volume&&(e.delta=a-c.volume);rp(this,"setVolume",e)}c.muted=b;c.volume=
a;vp(this,c);tp(this)}else up(this,pa(this.setVolume,a,b))};g.Il=function(a,b){if(1==this.o){var c=qp(this);if(b){c.A={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:xe(b.style)};qc(d,c.A);rp(this,"setSubtitlesTrack",d)}else d={videoId:a},rp(this,"setSubtitlesTrack",d);vp(this,c)}else up(this,pa(this.Il,a,b))};
g.Yq=function(a,b){if(1==this.o){rp(this,"setAudioTrack",{videoId:a,audioTrackId:b.Jb.id});var c=qp(this);c.audioTrackId=b.Jb.id;vp(this,c)}else up(this,pa(this.Yq,a,b))};function xp(a,b,c,d,e){var f=qp(a);d=d||0;var h={videoId:b,currentIndex:d,listId:e||f.o};kp(f,b,d);p(c)&&(hp(f,c),h.currentTime=c);rp(a,"setPlaylist",h);e||vp(a,f)}g.dispose=function(){if(3!=this.o){var a=this.o;this.o=3;this.O("proxyStateChange",a,this.o)}np.N.dispose.call(this)};
g.R=function(){tj(this.C);this.C=NaN;yp(this);this.B=null;this.D.clear();pp(this,null);np.N.R.call(this)};function op(a){E(["remotePlayerChange","remoteQueueChange"],function(a){this.F.push(this.B.subscribe(a,pa(this.Tz,a),this))},a)}function yp(a){E(a.F,function(a){this.B.unsubscribeByKey(a)},a);a.F.length=0}function up(a,b){50>a.D.ab()&&ap(a.D,b)}function sp(a,b,c){var d=qp(a);hp(d,c);-1E3!=d.j&&(d.j=b);vp(a,d)}function rp(a,b,c){a.B.sendMessage(b,c)}
function vp(a,b){yp(a);a.B.setPlayerContextData(mp(b));op(a)}g.km=function(a){if((a!=this.o||2==a)&&3!=this.o&&0!=a){var b=this.o;this.o=a;this.O("proxyStateChange",b,a);if(1==a)for(;!this.D.isEmpty();)bp(this.D).apply(this);else 3==a&&this.dispose()}};function tp(a){tj(a.C);a.C=qj(x(function(){this.O("remotePlayerChange");this.C=NaN},a),2E3)}g.Tz=function(a){("remotePlayerChange"!=a||isNaN(this.C))&&this.O(a)};
function pp(a,b){a.A&&(a.A.removeUpdateListener(a.J),a.A.removeMediaListener(a.G),a.Kg(null));a.A=b;a.A&&(wp("Setting cast session: "+a.A.sessionId),a.A.addUpdateListener(a.J),a.A.addMediaListener(a.G),a.A.media.length&&a.Kg(a.A.media[0]))}
g.ky=function(a){if(!a)this.Kg(null),pp(this,null);else if(this.A.receiver.volume){a=this.A.receiver.volume;var b=qp(this);if(b.volume!=a.level||b.muted!=a.muted)wp("Cast volume update: "+a.level+(a.muted?" muted":"")),b.volume=Math.round(100*a.level||0),b.muted=!!a.muted,vp(this,b),tp(this)}};g.Kg=function(a){wp("Cast media: "+!!a);this.j&&this.j.removeUpdateListener(this.H);if(this.j=a)this.j.addUpdateListener(this.H),zp(this),tp(this)};
function zp(a){var b=a.j.customData;if(a.j.media){var c=a.j.media,d=qp(a);c.contentId!=d.videoId&&wp("Cast changing video to: "+c.contentId);d.videoId=c.contentId;d.j=b.playerState;hp(d,a.j.getEstimatedTime());vp(a,d)}else wp("No cast media video. Ignoring state update.")}g.jy=function(a){a?(zp(this),tp(this)):this.Kg(null)};function wp(a){Xi("CP",a)}g.$a=function(a){Xi("CP",a)};function Ap(a,b,c){Mk.call(this);this.C=NaN;this.L=!1;this.G=this.F=this.K=this.H=NaN;this.M=[];this.A=this.qa=this.j=null;this.ca=a;this.M.push(Hm(window,"beforeunload",x(this.Uv,this)));this.o=[];this.qa=new cp;3==c["mdx-version"]&&(this.qa.o="RQ"+b.token);this.S=b.id;this.j=Bp(this,c);this.j.subscribe("handlerOpened",this.qy,this);this.j.subscribe("handlerClosed",this.ly,this);this.j.subscribe("handlerError",this.my,this);this.qa.o?this.j.subscribe("handlerMessage",this.ny,this):this.j.subscribe("handlerMessage",
this.oy,this);Yo(this.j,b.token);this.subscribe("remoteQueueChange",function(){var a=this.qa.videoId;il()&&Yj("yt-remote-session-video-id",a)},this)}B(Ap,Mk);g=Ap.prototype;
g.connect=function(a,b){if(b){if(this.qa.o){var c=b.listId,d=b.videoId,e=b.index,f=b.currentTime||0;5>=f&&(f=0);h={videoId:d,currentTime:f};c&&(h.listId=c);p(e)&&(h.currentIndex=e);c&&(this.qa.o=c);this.qa.videoId=d;this.qa.index=e||0}else{var d=b.videoIds[b.index],f=b.currentTime||0;5>=f&&(f=0);var h={videoIds:d,videoId:d,currentTime:f};this.qa.videoIds=[d];this.qa.index=0}this.qa.state=3;hp(this.qa,f);this.cb("Connecting with setPlaylist and params: "+xe(h));this.j.connect({method:"setPlaylist",
params:xe(h)},a,ml())}else this.cb("Connecting without params"),this.j.connect({},a,ml());Cp(this)};g.dispose=function(){this.isDisposed()||(this.O("beforeDispose"),Dp(this,3));Ap.N.dispose.call(this)};g.R=function(){Ep(this);Fp(this);Gp(this);tj(this.F);this.F=NaN;tj(this.G);this.G=NaN;this.A=null;Jm(this.M);this.M.length=0;this.j.dispose();Ap.N.R.call(this);this.o=this.qa=this.j=null};g.cb=function(a){Xi("conn",a)};g.Uv=function(){this.B(2)};
function Bp(a,b){return new Vo(Dk(a.ca,"/bc",void 0,!1),b)}function Dp(a,b){a.O("proxyStateChange",b)}function Cp(a){a.C=qj(x(function(){this.cb("Connecting timeout");this.B(1)},a),2E4)}function Ep(a){tj(a.C);a.C=NaN}function Gp(a){tj(a.H);a.H=NaN}function Hp(a){Fp(a);a.K=qj(x(function(){Ip(this,"getNowPlaying")},a),2E4)}function Fp(a){tj(a.K);a.K=NaN}function Jp(a){var b=a.j;return!!b.j&&3==b.j.j&&isNaN(a.C)}
g.qy=function(){this.cb("Channel opened");this.L&&(this.L=!1,Gp(this),this.H=qj(x(function(){this.cb("Timing out waiting for a screen.");this.B(1)},this),15E3));sl(Xo(this.j),this.S)};g.ly=function(){this.cb("Channel closed");isNaN(this.C)?tl(!0):tl();this.dispose()};g.my=function(a){tl();isNaN(this.D())?(this.cb("Channel error: "+a+" without reconnection"),this.dispose()):(this.L=!0,this.cb("Channel error: "+a+" with reconnection in "+this.D()+" ms"),Dp(this,2))};
function Kp(a,b){b&&(Ep(a),Gp(a));b==Jp(a)?b&&(Dp(a,1),Ip(a,"getSubtitlesTrack")):b?(a.J()&&a.qa.reset(),Dp(a,1),Ip(a,"getNowPlaying"),Lp(a)):a.B(1)}function Mp(a,b){var c=b.params.videoId;delete b.params.videoId;c==a.qa.videoId&&(jc(b.params)?a.qa.A=null:a.qa.A=b.params,a.O("remotePlayerChange"))}function Np(a,b){var c=b.params.videoId||b.params.video_id,d=parseInt(b.params.currentIndex,10);a.qa.o=b.params.listId||a.qa.o;kp(a.qa,c,d);a.O("remoteQueueChange")}
function Op(a,b){b.params=b.params||{};Np(a,b);Pp(a,b)}function Pp(a,b){var c=parseInt(b.params.currentTime||b.params.current_time,10);hp(a.qa,isNaN(c)?0:c);c=parseInt(b.params.state,10);c=isNaN(c)?-1:c;-1==c&&-1E3==a.qa.j&&(c=-1E3);a.qa.j=c;1==a.qa.j?Hp(a):Fp(a);a.O("remotePlayerChange")}function Qp(a,b){var c="true"==b.params.muted;a.qa.volume=parseInt(b.params.volume,10);a.qa.muted=c;a.O("remotePlayerChange")}
g.ny=function(a){a.params?this.cb("Received: action="+a.action+", params="+xe(a.params)):this.cb("Received: action="+a.action+" {}");switch(a.action){case "loungeStatus":a=ve(a.params.devices);this.o=F(a,function(a){return new Zk(a)});a=!!G(this.o,function(a){return"LOUNGE_SCREEN"==a.type});Kp(this,a);break;case "loungeScreenConnected":Kp(this,!0);break;case "loungeScreenDisconnected":zb(this.o,function(a){return"LOUNGE_SCREEN"==a.type});Kp(this,!1);break;case "remoteConnected":var b=new Zk(ve(a.params.device));
G(this.o,function(a){return a.equals(b)})||wb(this.o,b);break;case "remoteDisconnected":b=new Zk(ve(a.params.device));zb(this.o,function(a){return a.equals(b)});break;case "gracefulDisconnect":break;case "playlistModified":Np(this,a);break;case "nowPlaying":Op(this,a);break;case "onStateChange":Pp(this,a);break;case "onVolumeChanged":Qp(this,a);break;case "onSubtitlesTrackChanged":Mp(this,a);break;default:this.cb("Unrecognized action: "+a.action)}};
g.oy=function(a){a.params?this.cb("Received: action="+a.action+", params="+xe(a.params)):this.cb("Received: action="+a.action);Rp(this,a);Sp(this,a);if(Jp(this)){var b=this.qa.clone(),c=!1,d,e,f,h,k,l;a.params&&(d=a.params.videoId||a.params.video_id,e=a.params.videoIds||a.params.video_ids,f=a.params.state,h=a.params.currentTime||a.params.current_time,k=a.params.volume,l=a.params.muted,p(a.params.currentError)&&ve(a.params.currentError));if("onSubtitlesTrackChanged"==a.action)d==gp(this.qa)&&(delete a.params.videoId,
jc(a.params)?this.qa.A=null:this.qa.A=a.params,this.O("remotePlayerChange"));else if(gp(this.qa)||"onStateChange"!=a.action){"playlistModified"!=a.action&&"nowPlayingPlaylist"!=a.action||e?(d||"nowPlaying"!=a.action&&"nowPlayingPlaylist"!=a.action?d||(d=gp(this.qa)):this.qa.setVideoId(""),e&&(e=e.split(","),lp(this.qa,e,d))):lp(this.qa,[]);e=this.qa;var n=d;dp(e,"add");n&&!tb(e.videoIds,n)?(e.videoIds.push(n),e=!0):e=!1;e&&Ip(this,"getPlaylist");d&&this.qa.setVideoId(d);b.index==this.qa.index&&Nb(b.videoIds,
this.qa.videoIds)?"playlistModified"!=a.action&&"nowPlayingPlaylist"!=a.action||this.O("remoteQueueChange"):this.O("remoteQueueChange");p(f)&&(a=parseInt(f,10),a=isNaN(a)?-1:a,-1==a&&-1E3==this.qa.j&&(a=-1E3),0==a&&"0"==h&&(a=-1),c=c||a!=this.qa.j,this.qa.j=a,1==this.qa.j?Hp(this):Fp(this));h&&(a=parseInt(h,10),hp(this.qa,isNaN(a)?0:a),c=!0);p(k)&&(a=parseInt(k,10),isNaN(a)||(c=c||this.qa.volume!=a,this.qa.volume=a),p(l)&&(l="true"==l,c=c||this.qa.muted!=l,this.qa.muted=l));c&&this.O("remotePlayerChange")}}};
function Rp(a,b){switch(b.action){case "loungeStatus":var c=ve(b.params.devices);a.o=F(c,function(a){return new Zk(a)});break;case "loungeScreenDisconnected":zb(a.o,function(a){return"LOUNGE_SCREEN"==a.type});break;case "remoteConnected":var d=new Zk(ve(b.params.device));G(a.o,function(a){return a.equals(d)})||wb(a.o,d);break;case "remoteDisconnected":d=new Zk(ve(b.params.device)),zb(a.o,function(a){return a.equals(d)})}}
function Sp(a,b){var c=!1;if("loungeStatus"==b.action)c=!!G(a.o,function(a){return"LOUNGE_SCREEN"==a.type});else if("loungeScreenConnected"==b.action)c=!0;else if("loungeScreenDisconnected"==b.action)c=!1;else return;if(!isNaN(a.H))if(c)Gp(a);else return;c==Jp(a)?c&&Dp(a,1):c?(Ep(a),a.J()&&a.qa.reset(),Dp(a,1),Ip(a,"getNowPlaying"),Lp(a)):a.B(1)}g.yB=function(){if(this.A){var a=this.A;this.A=null;this.qa.videoId!=a&&Ip(this,"getNowPlaying")}};Ap.prototype.subscribe=Ap.prototype.subscribe;
Ap.prototype.unsubscribeByKey=Ap.prototype.Pb;Ap.prototype.W=function(){var a=3;this.isDisposed()||(a=0,isNaN(this.D())?Jp(this)&&(a=1):a=2);return a};Ap.prototype.getProxyState=Ap.prototype.W;Ap.prototype.B=function(a){this.cb("Disconnecting with "+a);Ep(this);this.O("beforeDisconnect",a);1==a&&tl();Wo(this.j,a);this.dispose()};Ap.prototype.disconnect=Ap.prototype.B;Ap.prototype.X=function(){var a=this.qa;this.A&&(a=this.qa.clone(),kp(a,this.A,a.index));return mp(a)};
Ap.prototype.getPlayerContextData=Ap.prototype.X;
Ap.prototype.aa=function(a){var b=new cp(a);b.videoId&&b.videoId!=this.qa.videoId&&(this.A=b.videoId,tj(this.F),this.F=qj(x(this.yB,this),5E3));var c=[];this.qa.o==b.o&&this.qa.videoId==b.videoId&&this.qa.index==b.index&&Nb(this.qa.videoIds,b.videoIds)||c.push("remoteQueueChange");this.qa.j==b.j&&this.qa.volume==b.volume&&this.qa.muted==b.muted&&ip(this.qa)==ip(b)&&xe(this.qa.A)==xe(b.A)||c.push("remotePlayerChange");this.qa.reset(a);E(c,function(a){this.O(a)},this)};
Ap.prototype.setPlayerContextData=Ap.prototype.aa;Ap.prototype.T=function(){return this.j.B.loungeIdToken};Ap.prototype.getLoungeToken=Ap.prototype.T;Ap.prototype.J=function(){var a=this.j.B.id,b=G(this.o,function(b){return"REMOTE_CONTROL"==b.type&&b.id!=a});return b?b.id:""};Ap.prototype.getOtherConnectedRemoteId=Ap.prototype.J;Ap.prototype.D=function(){var a=this.j;return a.o.enabled?a.o.C-A():NaN};Ap.prototype.getReconnectTimeout=Ap.prototype.D;
Ap.prototype.ea=function(){if(!isNaN(this.D())){var a=this.j.o;a.enabled&&(a.stop(),a.start(),a.D())}};Ap.prototype.reconnect=Ap.prototype.ea;function Lp(a){tj(a.G);a.G=qj(x(a.B,a,1),864E5)}function Ip(a,b,c){c?a.cb("Sending: action="+b+", params="+xe(c)):a.cb("Sending: action="+b);a.j.sendMessage(b,c)}Ap.prototype.Z=function(a,b){Ip(this,a,b);Lp(this)};Ap.prototype.sendMessage=Ap.prototype.Z;var Tp=[2E3,2E3,1E3,1E3,1E3,2E3,2E3,5E3,5E3,1E4];function Up(a,b){var c=Vp(a);return lb(b,function(a){return a.j?(a=Jk(this.A,a.j),!!a&&"RUNNING"==a.status):!!Kk(c,a)},a)}
function Wp(a,b,c){var d=Xp,e="";tj(d.o);d.o=NaN;d.B="";if(Jk(d.A,a)){if(!e){var f=e=Gk();an();var h=ln(a),k=Ym();if(k&&h){var l=new cast.Receiver(h.id,h.name),l=new cast.LaunchRequest("YouTube",l);l.parameters="pairingCode="+f;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",gn(h),Gj("yt-remote-cast-device-status-update",
h));Wm("Sending a cast launch request with params: "+l.parameters);k.launch(l,pa(mn,a))}else Wm("No cast API or no cast device. Dropping cast launch.")}d.B=e;d.o=qj(x(d.H,d,a,0,e),Tp[0])}else d.cb("No DIAL device with id: "+a)}function Yp(a,b){var c=Lk(Vp(a),b);a.cb("Found screen: "+fj(c)+" with key: "+b);return c}function Zp(a){var b=Xp,c=Lk(b.j,a);b.cb("Found online screen: "+fj(c)+" with key: "+a);return c}
function $p(a){var b=Xp,c=Jk(b.A,a);if(!c){var d=Lk(b.D,a);d&&(c=Jk(b.A,d.j))}b.cb("Found DIAL: "+(c?c.toString():"null")+" with key: "+a);return c}function Vp(a){return Ab(a.C,lb(a.D,function(a){return!Kk(this.C,a)},a))};function aq(a){Nk.call(this,"ScreenServiceProxy");this.Ob=a;this.j=[];this.j.push(this.Ob.$_s("screenChange",x(this.rC,this)));this.j.push(this.Ob.$_s("onlineScreenChange",x(this.Iz,this)))}B(aq,Nk);g=aq.prototype;g.ac=function(a){return this.Ob.$_gs(a)};g.contains=function(a){return!!this.Ob.$_c(a)};g.get=function(a){return this.Ob.$_g(a)};g.start=function(){this.Ob.$_st()};g.hj=function(a,b,c){this.Ob.$_a(a,b,c)};g.remove=function(a,b,c){this.Ob.$_r(a,b,c)};
g.bj=function(a,b,c,d){this.Ob.$_un(a,b,c,d)};g.R=function(){for(var a=0,b=this.j.length;a<b;++a)this.Ob.$_ubk(this.j[a]);this.j.length=0;this.Ob=null;aq.N.R.call(this)};g.rC=function(){this.O("screenChange")};g.Iz=function(){this.O("onlineScreenChange")};Hl.prototype.$_st=Hl.prototype.start;Hl.prototype.$_gspc=Hl.prototype.sC;Hl.prototype.$_gsppc=Hl.prototype.dr;Hl.prototype.$_c=Hl.prototype.contains;Hl.prototype.$_g=Hl.prototype.get;Hl.prototype.$_a=Hl.prototype.hj;Hl.prototype.$_un=Hl.prototype.bj;
Hl.prototype.$_r=Hl.prototype.remove;Hl.prototype.$_gs=Hl.prototype.ac;Hl.prototype.$_gos=Hl.prototype.ar;Hl.prototype.$_s=Hl.prototype.subscribe;Hl.prototype.$_ubk=Hl.prototype.Pb;function bq(a){q("yt.mdx.remote.castv2_",!0,void 0);Xj&&Wj();fl();cq||(cq=new Ck,ul()&&(cq.j="/api/loungedev"));dq||(dq=t("yt.mdx.remote.deferredProxies_")||[],q("yt.mdx.remote.deferredProxies_",dq,void 0));eq();var b=fq();if(!b){var c=new Hl(cq);q("yt.mdx.remote.screenService_",c,void 0);b=fq();em(a,c,function(a){a?ym()&&xm():c.subscribe("onlineScreenChange",function(){Gj("yt-remote-receiver-availability-change")})})}}
function gq(){Fj(hq);hq.length=0;Ub(iq);iq=null;dq&&(E(dq,function(a){a(null)}),dq.length=0,dq=null,q("yt.mdx.remote.deferredProxies_",null,void 0));Xp&&(Ub(Xp),Xp=null);cq=null;fn()}function jq(){if(kq()&&rm()){var a=[];if(ak("yt-remote-cast-available")||t("yt.mdx.remote.cloudview.castButtonShown_")||lq())a.push({key:"cast-selector-receiver",name:mq()}),q("yt.mdx.remote.cloudview.castButtonShown_",!0,void 0);return a}return t("yt.mdx.remote.cloudview.initializing_")?[]:nq()}
function nq(){var a=[],a=oq()?fq().Ob.$_gos():ej(ak("yt-remote-online-screens")||[]),b=pq();b&&lq()&&(Kk(a,b)||a.push(b));oq()||(b=Ik(rl()),b=lb(b,function(b){return!Lk(a,b.id)}),a=Ab(a,b));return Hk(a)}function qq(){if(kq()&&rm()){var a=sm();return a?{key:"cast-selector-receiver",name:a}:null}return rq()}function rq(){var a=nq(),b=sq(),c=pq();c||(c=tq());return G(a,function(a){return c&&aj(c,a.key)||b&&(a=$p(a.key))&&a.id==b?!0:!1})}
function mq(){if(kq()&&rm())return sm();var a=pq();return a?a.name:null}function pq(){var a=ym();if(!a)return null;if(!Xp){var b=fq().ac();return Lk(b,a)}return Yp(Xp,a)}function uq(a,b){vq("Connecting to: "+xe(a));if("cast-selector-receiver"==a.key)wq(b||null),wm(b||null);else{xq();wq(b||null);var c=null;Xp?c=Zp(a.key):(c=fq().ac(),c=Lk(c,a.key));if(c)yq(c);else{if(Xp&&(c=$p(a.key))){zq(c);return}qj(function(){Aq(null)},0)}}}
function xq(){if(Xp){var a=Xp;tj(a.o);a.o=NaN;a.B=""}a:{if(a=lq())if(a=a.getOtherConnectedRemoteId()){vq("Do not stop DIAL due to "+a);Bq("");break a}(a=sq())?(vq("Stopping DIAL: "+a),nn(a),Bq("")):(a=pq())&&a.j&&(vq("Stopping DIAL: "+a.j),nn(a.j))}vm()?nm().stopSession():km("stopSession called before API ready.");(a=lq())?a.disconnect(1):(Hj("yt-remote-before-disconnect",1),Hj("yt-remote-connection-change",!1));Aq(null)}
function Cq(){var a=Dq(),a=a?a.currentTime:0,b=Eq();0==a&&b&&(a=ip(qp(b)));return a}function Eq(){var a=lq();return a&&3!=a.getProxyState()?new np(a,void 0):null}function vq(a){Xi("remote",a)}function kq(){return!!t("yt.mdx.remote.castv2_")}function oq(){return t("yt.mdx.remote.screenService_")}function fq(){if(!iq){var a=oq();iq=a?new aq(a):null}return iq}function ym(){return t("yt.mdx.remote.currentScreenId_")}
function Fq(a){q("yt.mdx.remote.currentScreenId_",a,void 0);if(Xp){var b=Xp;b.G=A()+3E5;if(b.F=a){var c=Yp(b,a);if(c&&!Kk(b.j,c)){a=Bb(b.j);a.push(c);var c=Up(b,a),d=!Nb(b.j,c,bj);ub(a)||ql(F(c,cj));d&&(b.cb("Updating online screens: "+gj(b.j)+" -> "+gj(c)),b.j=c,b.O("onlineReceiverChange"))}}}}function sq(){return t("yt.mdx.remote.currentDialId_")}function Bq(a){q("yt.mdx.remote.currentDialId_",a,void 0)}function Dq(){return t("yt.mdx.remote.connectData_")}
function wq(a){q("yt.mdx.remote.connectData_",a,void 0)}function lq(){return t("yt.mdx.remote.connection_")}function Aq(a){var b=lq();wq(null);a?gb(!lq()):(Fq(""),Bq(""));q("yt.mdx.remote.connection_",a,void 0);dq&&(E(dq,function(b){b(a)}),dq.length=0);b&&!a?Hj("yt-remote-connection-change",!1):!b&&a&&Gj("yt-remote-connection-change",!0)}function tq(){var a=il();if(!a)return null;if(oq()){var b=fq().ac();return Lk(b,a)}return Xp?Yp(Xp,a):null}
function yq(a){gb(!ym());Fq(a.id);a=new Ap(cq,a,Gq());a.connect(1,Dq());a.subscribe("beforeDisconnect",function(a){Hj("yt-remote-before-disconnect",a)});a.subscribe("beforeDispose",function(){lq()&&(lq(),Aq(null))});Aq(a)}function zq(a){sq();vq("Connecting to: "+(a?a.toString():"null"));Bq(a.id);var b=Dq();b?Wp(a.id,b.videoIds[b.index],b.currentTime):Wp(a.id)}var cq=null,dq=null,iq=null,Xp=null;
function eq(){var a=Gq();if(jc(a)){var a=hl(),b=ak("yt-remote-session-name")||"",c=ak("yt-remote-session-app")||"",a={device:"REMOTE_CONTROL",id:a,name:b,app:c,"mdx-version":3};q("yt.mdx.remote.channelParams_",a,void 0)}}function Gq(){return t("yt.mdx.remote.channelParams_")||{}}var hq=[];var Hq=/^https?:\/\/(([-\w]*www[-\w]*\.|[-\w]*web[-\w]*\.|[-\w]*canary[-\w]*\.|[-\w]*qa[-\w]*\.|[-\w]*dev[-\w]*\.|[-\w]{1,3}\.)+youtube(education|-nocookie)?\.com\/|[a-z0-9\-]{1,63}\.([a-z]{3}|i)\.corp\.google\.com(:[0-9]+)?\/|0\.borg-playground-[a-z0-9\-]+\.youtube-dev\.([a-z]{2}|i)\.borg\.google\.com(:[0-9]+)?\/|web-ppg\.corp\.google\.com\/|(docs|drive)\.google\.com\/(a\/[^/\\%]+\/|)|play\.google\.com\/|[A-Za-z0-9]+\.prod\.google\.com(:[0-9]+)?\/)/,Iq=/^https?:\/\/([A-Za-z0-9-]{1,63}\.)*(corp\.google\.com|docs\.google\.com|drive\.google\.com|prod\.google\.com|sandbox\.google\.com|plus\.google\.com|mail\.google\.com|youtube\.com|youtubeeducation\.com)(:[0-9]+)?([\/\?\#]|$)/,
Jq=/^https?:\/\/([A-Za-z0-9-]{1,63}\.)*(corp\.google\.com|borg\.google\.com|prod\.google\.com|sandbox\.google\.com|youtube\.com)(:[0-9]+)?([\/\?\#]|$)/,Kq=/^https?:\/\/([A-Za-z0-9-]{1,63}\.)*(corp\.google\.com|borg\.google\.com|prod\.google\.com|video\.google\.com|youtube\.com|youtube\.googleapis\.com|youtube-nocookie\.com|youtubeeducation\.com)(:[0-9]+)?\/+embed(\/+|\?|#|$)/,Lq=/^((http(s)?):)?\/\/((((lh[3-6](-tt|-d[a-g,z])?\.((ggpht)|(googleusercontent)|(google)))|(([1-4]\.bp\.blogspot)|(bp[0-3]\.blogger))|((((cp|ci|gp)[3-6])|(ap[1-2]))\.(ggpht|googleusercontent))|(gm[1-4]\.ggpht)|(((yt[3-4])|(sp[1-3]))\.(ggpht|googleusercontent)))\.com)|(dp[3-6]\.googleusercontent\.cn)|(dp4\.googleusercontent\.com)|((dev|dev2|dev3|qa|qa2|qa3|qa-red|qa-blue|canary)[-.]lighthouse\.sandbox\.google\.com\/image))\/|^https?:\/\/(s2\.googleusercontent\.com\/s2\/favicons\?|yt[3-4]\.ggpht\.com\/|([A-Za-z0-9-]{1,63}\.)*(corp\.google\.com|borg\.google\.com|docs\.google\.com|drive\.google\.com|googleplex\.com|play\.google\.com|prod\.google\.com|sandbox\.google\.com|plus\.google\.com|video\.google\.com|youtube\.com|ytimg\.com)(:[0-9]+)?([\/\?\#]|$))/,
Mq=/^https?:\/\/([-\w.]+\.youtube(education|-nocookie)?\.com\/|[a-z0-9\-]{1,63}\.([a-z]{3}|i)\.corp\.google\.com(:[0-9]+)?\/|0\.borg-playground-[a-z0-9\-]+\.youtube-dev\.([a-z]{2}|i)\.borg\.google\.com(:[0-9]+)?\/|web-ppg\.corp\.google\.com\/|(docs|drive)\.google\.com\/(a\/[^/\\%]+\/|)|play\.google\.com\/|[A-Za-z0-9]+\.prod\.google\.com(:[0-9]+)?\/)/,Nq=/^https?.*#ocr$|^https?:\/\/(secure\-..\.imrworldwide\.com\/|cdn\.imrworldwide\.com\/|aksecure\.imrworldwide\.com\/)/,Oq=/^https?:\/\/(www\.google\.com\/(aclk|pagead\/conversion)|www\.googleadservices\.com\/(aclk|pagead\/(aclk|conversion))|googleads\.g\.doubleclick\.net\/(aclk|pagead\/conversion)|www\.youtube-nocookie\.com\/api\/ads\/trueview_redirect)/,
Pq=/^https?:\/\/(www\.google\.com\/pagead\/sul|www\.youtube\.com\/pagead\/sul)/,Qq=/^https?:\/\/([A-Za-z0-9-]{1,63}\.)*(ba\.l\.google\.com|c\.googlesyndication\.com|corp\.google\.com|borg\.google\.com|docs\.google\.com|drive\.google\.com|googleplex\.com|googlevideo\.com|play\.google\.com|prod\.google\.com|sandbox\.google\.com|plus\.google\.com|ed\.video\.google\.com|vp\.video\.l\.google\.com|youtube\.com|youtubeeducation\.com)(:[0-9]+)?([\/\?\#]|$)/,Rq=/^https?:\/\/(www\.gstatic\.com\/doubleclick\/studio\/innovation\/ytplayer|www\.gstatic\.com\/doubleclick\/studio\/innovation\/h5\/layouts\/tetris|tpc\.googlesyndication\.com\/safeframe\/|lightbox-(demos|builder)\.appspot\.com\/|([A-Za-z0-9-]{1,63}\.)*(imasdk\.googleapis\.com|2mdn\.net|googlesyndication\.com|corp\.google\.com|borg\.google\.com|googleads\.g\.doubleclick\.net|prod\.google\.com|static\.doubleclick\.net|static\.googleadsserving\.cn|studioapi\.doubleclick\.net|youtube\.com|youtube\.googleapis\.com|youtube-nocookie\.com|youtubeeducation\.com|ytimg\.com)(:[0-9]+)?([\/\?\#]|$))/,
Sq=/^https?:\/\/(sf\.api\.[a-z0-9\-]+\.km\.playstation\.net\/|([A-Za-z0-9-]{1,63}\.)*(themis\.dl\.playstation\.net)(:[0-9]+)?([\/\?\#]|$))/,Tq=/^https?:\/\/((www\.|encrypted\.)?google(\.com|\.co)?\.[a-z]{2,3}\/(search|webhp)\?|24e12c4a-a-95274a9c-s-sites.googlegroups.com\/a\/google.com\/flash-api-test-harness\/apiharness.swf|([A-Za-z0-9-]{1,63}\.)*(imasdk\.googleapis\.com|corp\.google\.com|borg\.google\.com|docs\.google\.com|drive\.google\.com|googleplex\.com|play\.google\.com|prod\.google\.com|sandbox\.google\.com|photos\.google\.com|picasaweb\.google\.com|lh2\.google\.com|plus\.google\.com|books\.googleusercontent\.com|mail\.google\.com|talkgadget\.google\.com|survey\.g\.doubleclick\.net|youtube\.com|youtube\.googleapis\.com|youtube-nocookie\.com|youtubeeducation\.com|vevo\.com)(:[0-9]+)?([\/\?\#]|$))/;var Uq=["2mdn.net","imasdk.googleapis.com","googleads.g.doubleclick.net"];function Vq(a,b){var c=(b?Mq:Hq).exec(a);return c?c[0]:""}function Wq(a){var b=Tq.test(a),c;c=(new RegExp("^(https?:)?//([a-z0-9-]{1,63}\\.)*("+Uq.join("|").replace(/\./g,".")+")(:[0-9]+)?([/?#]|$)","i")).test(a);!b&&c&&(a=Error("isTrustedLoader("+a+") behavior is not consistent"),.01>Math.random()&&vj(a,"WARNING"));return b||c}
function Xq(a){a=new P(a);Ah(a,document.location.protocol);Bh(a,document.location.hostname);document.location.port&&Ch(a,document.location.port);return a.toString()}function Yq(a){a=new P(a);Ah(a,document.location.protocol);return a.toString()};var Zq={},$q=0,ar=t("yt.net.ping.workerUrl_")||null;q("yt.net.ping.workerUrl_",ar,void 0);function br(a,b,c){a&&(c?a&&(a=O("iframe",{src:'javascript:"data:text/html,<body><img src=\\"'+a+'\\"></body>"',style:"display:none"}),Df(a).body.appendChild(a)):cr(a,b))}function dr(a){try{window.navigator&&window.navigator.sendBeacon&&window.navigator.sendBeacon(a,"")||br(a,void 0)}catch(b){br(a,void 0)}}
function cr(a,b){var c=new Image,d=""+$q++;Zq[d]=c;c.onload=c.onerror=function(){b&&Zq[d]&&b();delete Zq[d]};c.src=a};function er(a,b){this.start=a;this.end=b;this.A=fr++}var fr=1;function gr(a,b){return a.start-b.start||a.end-b.end||a.A-b.A}er.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)};er.prototype.toString=function(){return"Interval["+this.start+", "+this.end+"]"};function hr(a,b,c){er.call(this,a,b);a=c||{};this.H=a.id||"";this.D=a.priority||7;this.active=!0;this.visible=a.visible||!1;this.style=a.style||"ytp-ad-progress";this.j=a.namespace||"";this.color="";a.color&&(b=a.color.toString(16),this.color="#"+Array(7-b.length).join("0")+b);this.B=null;this.tooltip=a.tooltip}B(hr,er);function ir(a){return{start:a.start,end:a.end,id:a.H,priority:a.D,namespace:a.j,tooltip:a.tooltip,style:"ytp-chapter-marker"==a.style?"chapter":"ad",visible:a.visible}}
function jr(a){return a.B||(a.B=new kj)}hr.prototype.getId=function(){return this.H};function kr(a,b){return a.start-b.start||a.D-b.D||a.A-b.A}hr.prototype.toString=function(){return hr.N.toString.call(this)};function lr(a,b){Mk.call(this);this.H=this.oa="";this.Ea=b||"";this.fa=this.loaded=this.J=!1;this.X=this.F=null;this.j=a;if(this.Ea){var c=Uk("yt-html5-player-modules::"+this.Ea);c&&(this.X=new Nj(c))}}B(lr,Mk);g=lr.prototype;g.gb=function(a,b){for(var c=0;c<a.length;c++)a[c].j=this.oa;this.j.gb(a,b)};
function mr(a){var b=a.j,c=b.app;a=a.oa;var b=b.playerType,d=nr(c,b);if(d){for(var d=d.F,e=[],f=d.j.j,h=f.length-1;0<=h;h--){var k=f[h];if(k.j==a){var l=d.o.indexOf(k);0<=l&&d.o.splice(l,1);var l=d.j.j,n=Gb(l,k,gr);0<=n&&yb(l,n);e.push(k)}}d.Gc();b&&c.getPresentingPlayerType()!=b||or(c,"cuerangesremoved",e)}}function pr(a){a.j.Ri(a.oa)}
g.create=function(){this.J||(this.Za(this.j),K(this.j.sa(),this.oa+"-created"),this.j.addEventListener("crn_"+this.oa,this.jc,this),this.j.addEventListener("crx_"+this.oa,this.Dc,this),this.J=!0)};g.destroy=function(){this.loaded&&this.unload();te(this.j.sa(),this.oa+"-created");this.j.removeEventListener("crn_"+this.oa,this.jc,this);this.j.removeEventListener("crx_"+this.oa,this.Dc,this);this.J=!1;this.O("destroyed",this.oa)};
g.load=function(){this.loaded=!0;K(this.j.sa(),this.oa+"-loaded");this.O("loaded",this.oa)};g.unload=function(){this.loaded=!1;te(this.j.sa(),this.oa+"-loaded");this.O("unloaded",this.oa)};g.jc=function(){};g.Dc=function(){};g.Zd=function(){};g.log=function(a){qr(this.j,this.H,a)};function rr(a,b,c){var d={},e;for(e in b)d[a.oa+"_"+e]=b[e];b={};for(var f in c)b[a.oa+"_"+f]=c[f];a=a.j.app.B;qa(a.B,d||null);qa(a.A,b||null)}g.kh=function(){return null};
function sr(a,b){if(!a.X)return null;var c;try{c=a.X.get(b)}catch(d){a.X&&a.X.remove(b)}return c}function tr(a,b,c){if(a.X)try{a.X.set(b,c)}catch(d){}}function ur(a){a.O("command_stop_redirect_controls")}function vr(a){a.O("command_play",!1,a.j.playerType)}g.pauseVideo=function(){this.O("command_pause",!1,this.j.playerType)};g.ke=function(){};g.Re=function(){return[]};g.Za=function(){return!1};g.yl=function(a,b){this.F&&this.F.Zd&&this.F.Zd.apply(this.F,arguments)};g.Ei=function(){};function wr(a){H.call(this);this.ma={};this.ha={};this.element=xr(this,a)}B(wr,H);
function xr(a,b){var c=0,d=Rf(b[c++]);if(w(b[c])){var e=b[c++];if(e=yr(a,d,"className",e))zr(a,d,"className",e),a.ma[e]=d}else if(ea(b[c])){for(var e=b[c++],f=0;f<e.length;f++)a.ma[e[f]]=d;zr(a,d,"className",e.join(" "))}for(;c<b.length;c++){var h=b[c];if(ea(h))e=xr(a,h),d.appendChild(e);else if(ia(h)){var e=a,f=d,k=void 0;for(k in h){var l=h[k];l&&zr(e,f,k,w(l)?yr(e,f,k,l):l)}}else w(h)&&(e=yr(a,d,"child",h),null!=e&&d.appendChild(document.createTextNode(String(e))))}return d}
wr.prototype.j=function(a,b){p(b)?Vf(a,this.element,b):a.appendChild(this.element)};wr.prototype.detach=function(){Wf(this.element)};function yr(a,b,c,d){return"{{"==d.substr(0,2)?(a.ha[d]=[b,c],null):d}wr.prototype.update=function(a){for(var b in a)Ar(this,b,a[b])};function Ar(a,b,c){(b=a.ha["{{"+b+"}}"])&&zr(a,b[0],b[1],c)}function Br(a){return ea(a)&&w(a[0])}
function zr(a,b,c,d){if("child"==c){Uf(b);if(!ea(d)||Br(d))d=[d];c=[];for(var e=0;e<d.length;e++){var f=d[e];null!=f&&(!f.nodeType||1!=f.nodeType&&3!=f.nodeType?Br(f)?c.push(xr(a,f)):f.element?c.push(f.element):c.push(document.createTextNode(String(f.toString()))):c.push(f))}for(a=0;a<c.length;a++)b.appendChild(c[a])}else"className"==c?b.className=d:null===d?b.removeAttribute(c):b.setAttribute(c,d.toString())}wr.prototype.R=function(){this.ma={};this.ha={};this.detach();wr.N.R.call(this)};function Cr(a,b){a&&(a.style.display=b)}function Dr(a,b){var c=ki("requestAnimationFrame",window);return qj(function(){c?c.call(window,a):a()},b||0)}function Er(a){if(document.createRange){var b=document.createRange();b.selectNodeContents(a);window.getSelection().removeAllRanges();window.getSelection().addRange(b)}};function R(a){wr.call(this,a);this.A=!0;this.S=[]}B(R,wr);g=R.prototype;g.Fb=function(a,b){Ar(this,b||"content",a)};g.Ba=function(){this.A||(Cr(this.element,""),this.A=!0)};g.da=function(){this.A&&(Cr(this.element,"none"),this.A=!1)};g.yb=function(a){a?this.Ba():this.da()};g.P=function(a,b,c){return S(this,this.element,a,b,c)};function S(a,b,c,d,e){d=x(d,e||a);e={target:b,type:c,listener:d};a.S.push(e);b.addEventListener(c,d);return e}
g.ua=function(a){for(var b=0;b<this.S.length;b++)if(this.S[b]==a){a=this.S.splice(b,1)[0];a.target.removeEventListener(a.type,a.listener);break}};g.focus=function(){this.element.focus()};g.R=function(){for(;this.S.length;){var a=this.S.pop();a.target.removeEventListener(a.type,a.listener)}R.N.R.call(this)};function Fr(a){R.call(this,a);this.U=new Mk;I(this,this.U)}B(Fr,R);Fr.prototype.subscribe=function(a,b,c){return this.U.subscribe(a,b,c)};Fr.prototype.unsubscribe=function(a,b,c){return this.U.unsubscribe(a,b,c)};Fr.prototype.Pb=function(a){return this.U.Pb(a)};Fr.prototype.O=function(a,b){return this.U.O.apply(this.U,arguments)};function Gr(a,b,c){Fr.call(this,["div",["html5-endscreen","ytp-player-content",c||"base-endscreen"]]);this.o=a;this.G=b;this.H=!1}B(Gr,Fr);Gr.prototype.create=function(){this.H=!0};Gr.prototype.destroy=function(){this.H=!1};Gr.prototype.Ih=function(){return!1};function Hr(){R.call(this,["div","ytp-subscribe-card",["img","ytp-author-image",{src:"{{image}}"}],["div","ytp-subscribe-card-right",["div","ytp-author-name","{{author}}"],["div","html5-subscribe-button-container"]]])}B(Hr,R);function Ir(a,b){ea(b)||(b=[b]);var c=F(b,function(a){return w(a)?a:a.property+" "+a.duration+"s "+a.timing+" "+a.delay+"s"});Jr(a,c.join(","))}
var Kr=function(a){var b=!1,c;return function(){b||(c=a(),b=!0);return c}}(function(){if(Fc)return Tc("10.0");var a=document.createElement("DIV"),b=Jc?"-webkit":Ic?"-moz":Fc?"-ms":Ec?"-o":null,c={transition:"opacity 1s linear"};b&&(c[b+"-transition"]="opacity 1s linear");b={style:c};if(!tf.test("div"))throw Error("Invalid tag name <div>.");if("DIV"in vf)throw Error("Tag name <div> is not allowed for SafeHtml.");var c=null,d="<div";if(b)for(var e in b){if(!tf.test(e))throw Error('Invalid attribute name "'+
e+'".');var f=b[e];if(null!=f){var h;h=e;if(f instanceof Ze)f=af(f);else if("style"==h.toLowerCase()){if(!ia(f))throw Error('The "style" attribute requires goog.html.SafeStyle or map of style properties, '+typeof f+" given: "+f);if(!(f instanceof cf)){var k="",l=void 0;for(l in f){if(!/^[-_a-zA-Z0-9]+$/.test(l))throw Error("Name allows only [-_a-zA-Z0-9], got: "+l);var n=f[l];if(null!=n){if(n instanceof Ze)n=af(n);else if(gf.test(n)){for(var r=!0,u=!0,z=0;z<n.length;z++){var y=n.charAt(z);"'"==y&&
u?r=!r:'"'==y&&r&&(u=!u)}r&&u||(n="zClosurez")}else n="zClosurez";k+=l+":"+n+";"}}f=k?ef(k):ff}f=f instanceof cf&&f.constructor===cf&&f.o===df?f.j:"type_error:SafeStyle"}else{if(/^on/i.test(h))throw Error('Attribute "'+h+'" requires goog.string.Const value, "'+f+'" given.');if(h.toLowerCase()in uf)if(f instanceof nf)f=pf(f);else if(f instanceof hf)f=kf(f);else if(w(f))f=mf(f).kd();else throw Error('Attribute "'+h+'" on tag "div" requires goog.html.SafeUrl, goog.string.Const, or string, value "'+f+
'" given.');}f.He&&(f=f.kd());h=h+'="'+Ba(String(f))+'"';d=d+(" "+h)}}e=void 0;null!=e?ea(e)||(e=[e]):e=[];!0===Pe.div?d+=">":(c=wf(e),d+=">"+sf(c)+"</div>",c=c.gf());(b=b&&b.dir)&&(/^(ltr|rtl|auto)$/i.test(b)?c=0:c=null);b=xf(d,c);a.innerHTML=sf(b);return""!=rg(a.firstChild,"transition")});function Jr(a,b){og(a,"transition",b)};function Lr(a,b){(a=w(a)?document.getElementById(a):a)&&a.style&&(Ng(a,b),M(a,"hid",!b))}function Mr(a){return(a=w(a)?document.getElementById(a):a)?!("none"==a.style.display||re(a,"hid")):!1}function Nr(a){E(arguments,function(a){!fa(a)||a instanceof Element?Lr(a,!0):E(a,function(a){Nr(a)})})}function Or(a){E(arguments,function(a){!fa(a)||a instanceof Element?Lr(a,!1):E(a,function(a){Or(a)})})};function Pr(a,b,c){H.call(this);this.A=a;c||(Qr(this,!0),a.da());this.D=b;this.j=null;this.B=!1;this.o=new oe(this.C,0,this);I(this,this.o)}B(Pr,H);function Rr(a,b,c){a.B=!!b;1==a.j||2==a.j||3==a.j&&b||(4==a.j||3==a.j?b||(a.A.Ba(),Qr(a,!1),a.j=null,a.o.stop()):a.A.A||(Qr(a,!a.B),a.j=1,c?a.o.start(c):a.C()))}Pr.prototype.da=function(){3!=this.j&&(1==this.j||2==this.j?(this.A.da(),this.j=null,this.o.stop()):this.A.A&&(Qr(this,!0),this.j=3,this.o.start(this.D)))};
Pr.prototype.C=function(){switch(this.j){case 1:this.A.Ba();this.j=2;this.o.start(10);break;case 2:Qr(this,this.B);this.B?(this.j=3,this.o.start(this.D)):this.j=null;break;case 3:this.A.da();Qr(this,!1);this.j=4;this.o.start(0);break;case 4:this.j=null}};function Qr(a,b){var c=a.A.element;b?c.setAttribute("aria-hidden",!0):c.removeAttribute("aria-hidden")}Pr.prototype.stop=function(){for(;null!=this.j&&4!=this.j;)this.o.stop(),this.C()};
Pr.prototype.R=function(){this.A.isDisposed()||this.A.element.removeAttribute("aria-hidden");Pr.N.R.call(this)};function Sr(a,b){R.call(this,b||["div","ytp-thumbnail-overlay"]);this.B=new Pr(this,500);I(this,this.B);this.o=a}B(Sr,R);function Tr(a){Sr.call(this,a,["div",["ytp-thumbnail-overlay","ytp-channel-overlay"],["div","ytp-thumbnail-overlay-image",{style:"{{background}}"}],["div","ytp-thumbnail-overlay-curtain"]])}B(Tr,Sr);Tr.prototype.yb=function(a){a?Rr(this.B):this.B.da()};function Ur(a,b){Gr.call(this,a,b,"subscribecard-endscreen");this.B=new Tr(a);I(this,this.B);this.B.j(a.sa());this.C=new Hr;I(this,this.C);this.da()}B(Ur,Gr);Ur.prototype.create=function(){Ur.N.create.call(this);Uf(this.element);this.C.j(this.element);var a=this.o.getVideoData().videoId;a&&(a=Vr(this.o.V(),a,!0),wk(a,{method:"GET",kb:this.D,context:this,pv:!0}))};
Ur.prototype.D=function(a,b){if(this.H){var c=b.user_info;this.o.getVideoData();var d=c.channel_banner_url;Lq.test(d)||(d="");var e=c.channel_logo_url||c.image_url;Lq.test(e)||(e="");Ar(this.B,"background",d?"background-image: url("+d+")":"");Ar(this.C,"image",e);Ar(this.C,"author",c.channel_title||c.username);c=c.subscription_button_html;d=this.C.ma["html5-subscribe-button-container"];c?d.innerHTML=sf(c):Uf(d)}};Ur.prototype.Ba=function(){Ur.N.Ba.call(this);this.B.yb(!0)};
Ur.prototype.da=function(){Ur.N.da.call(this);this.B.yb(!1)};function Wr(a){var b;b=["div","video-ads",["div","video-ad-status-bar",["div","video-ad-label",Q("YTP_ADVERTISEMENT")]],["div","ad-container"]];R.call(this,b);this.o=a;this.B=this.D=this.C=null}B(Wr,R);function Xr(a){a.C||(a.C=a.ma["ad-container"],a.o.V().G&&K(a.C,"ad-container-single-media-element-annotations"));return a.C}function Yr(a){a.B&&(a.o.V().G?(te(a.B,"ad-video"),Zr(a.o.app,a.B),a.B=null):(Wf(a.B),$r(a.B)))}
function as(a){if(!a.D){if(a.o.V().useTabletControls){var b=Rf("button");K(b,"video-click-tracking");Tf(b,Q("YTP_VISIT_ADVERTISERS_SITE"));var c=Rf("div");K(c,"video-click-tracking-container");c.appendChild(b);Xr(a).appendChild(c)}else b=Rf("div"),se(b,["video-click-tracking","ad-video"]),Xr(a).appendChild(b);a.D=b}return a.D}Wr.prototype.R=function(){Wr.N.R.call(this);this.B&&(Zr(this.o.app,this.B),this.B=null);Yr(this);Uf(Xr(this));Uf(as(this));this.D=this.C=null;delete this.o};function bs(a,b){this.type=a||"";this.id=b||""}function cs(a){return new bs(a.substr(0,2),a.substr(2))}bs.prototype.toString=function(){return this.type+this.id};var ds=16/9,es=4/3,fs=[.25,.5,1,1.25,1.5,2];var gs={fV:function(a,b){a.splice(0,b)},Kh:function(a,b){var c=a[0];a[0]=a[b%a.length];a[b]=c},qs:function(a){a.reverse()}};function hs(a){a=a.split("");gs.fV(a,1);gs.qs(a,21);gs.fV(a,1);gs.Kh(a,56);gs.Kh(a,46);gs.fV(a,2);gs.qs(a,36);return a.join("")};function is(a,b){return new Sd(function(c,d){b.kb=function(a){rk(a)?c(a):d(a)};b.onError=d;wk(a,b)})}function js(a){function b(e,f,h){return $d(e,function(e){return 0>=f||403===e.status?Yd(e):c(h).then(function(){return b(is(a,d),f-1,Math.pow(2,4-f+1)*h)})})}function c(a){return new Sd(function(b){setTimeout(b,a)})}var d={format:"RAW",method:"GET"};return b(is(a,d),3,1E3)};function ks(a){this.j=a||0};var ls={0:"f",160:"h",133:"h",134:"h",135:"h",136:"h",137:"h",264:"h",266:"h",138:"h",298:"h",299:"h",140:"a",161:"H",142:"H",143:"H",144:"H",222:"H",223:"H",145:"H",224:"H",225:"H",146:"H",226:"H",147:"H",149:"A",261:"M",278:"9",242:"9",243:"9",244:"9",247:"9",248:"9",271:"9",313:"9",272:"9",302:"9",303:"9",308:"9",315:"9",171:"v",250:"o",251:"o",194:"*",195:"*",220:"*",221:"*",196:"*",197:"*",198:"V",279:"(",280:"(",273:"(",274:"(",275:"(",276:"(",314:"(",277:"("};var ms={name:"width",video:!0,valid:640,Eg:99999},ns={name:"height",video:!0,valid:360,Eg:99999},os={name:"framerate",video:!0,valid:30,Eg:9999},ps={name:"bitrate",video:!0,valid:3E5,Eg:2E9},qs={name:"channels",video:!1,valid:2,Eg:99},rs={Ah:ms,uh:ns,o:os,Mm:ps,j:qs};function ts(a,b,c,d,e,f,h,k){this.id=""+a;this.o=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.j=h||0;this.C=k||0;this.audio=c||null;this.video=d||null;this.Jb=e||null;this.A=f||null;this.B=ls[us(this)]||""}function us(a){return a.id.split(";",1)[0]}function vs(a){return!(a.audio&&a.video)}function ws(a){return 0<=a.indexOf("opus")||0<=a.indexOf("vorbis")||0<=a.indexOf("mp4a")}
function xs(a){return 0<=a.indexOf("vp9")||0<=a.indexOf("vp8")||0<=a.indexOf("avc1")};function ys(a,b,c){this.name=a;this.id=b;this.isDefault=c}ys.prototype.toString=function(){return this.name};var zs={NF:"auto",EI:"tiny",Wt:"light",SMALL:"small",eu:"medium",LARGE:"large",JG:"hd720",FG:"hd1080",GG:"hd1440",HG:"hd2160",IG:"hd2880",NG:"highres",UNKNOWN:"unknown"},As={auto:0,tiny:144,light:144,small:240,medium:360,large:480,hd720:720,hd1080:1080,hd1440:1440,hd2160:2160,hd2880:2880,highres:4320},Bs="highres hd2880 hd2160 hd1440 hd1080 hd720 large medium small tiny".split(" ");function Cs(a,b,c,d,e,f,h,k){this.width=a;this.height=b;if(!f)a:{f=Math.max(a,b);a=Math.min(a,b);for(b=0;b<Bs.length;b++){var l=Bs[b],n=As[l];if(f>=Math.floor(16*n/9)||a>=n){f=l;break a}}f="tiny"}this.quality=f;this.j=!!h;this.fps=c||0;this.o=e||0;this.projectionType=d||0;if(!(c=k)){a:{for(c=0;c<Ds.length;c++)if(this.fps>Ds[c][1]){c=Ds[c][0];break a}c=""}c=As[this.quality]+"p"+c}this.qualityLabel=c}var Ds=[["60",55],["50",49],["48",39]];function Es(a){this.A=a;this.C=this.B=this.D="";this.j={};this.o=""}Es.prototype.set=function(a,b){this.j[a]!==b&&(this.j[a]=b,this.o="")};Es.prototype.get=function(a){Fs(this);return this.j[a]||null};function Gs(a){a.o||(a.o=Hs(a));return a.o}function Is(a){Fs(a);return a.C}function Js(a){Fs(a);return Yb(a.j,function(a){return null!==a})}Es.prototype.clone=function(){var a=new Es(this.A);a.D=this.D;a.B=this.B;a.C=this.C;a.j=nc(this.j);a.o=this.o;return a};
function Fs(a){if(a.A){if(!Qq.test(a.A))throw Error("Untrusted URL: "+a.A);var b=Uh(a.A);a.D=b.B;a.C=b.o+(null!=b.C?":"+b.C:"");var c=b.A;if(0==c.indexOf("/videoplayback"))a.B="/videoplayback",c=c.substr(14);else if(0==c.indexOf("/api/manifest/")){var d=c.indexOf("/",14);0<d?(a.B=c.substr(0,d),c=c.substr(d+1)):(a.B=c,c="")}d=a.j;a.j=Ks(c);qa(a.j,Ls(b.Un()));qa(a.j,d);a.A="";a.o=""}}
function Hs(a){Fs(a);var b=a.D+(a.D?"://":"//")+a.C+a.B;if(Js(a)){var c=[];Wb(a.j,function(a,b){null!==a&&c.push(b+"="+a)});a=c.join("&");b+="?"+a}return b}function Ks(a){a=a.split("/");var b=0;a[0]||b++;for(var c={};b<a.length;b+=2)a[b]&&Ms(c,a[b],a[b+1]);return c}function Ls(a){a=a.split("&");for(var b={},c=0;c<a.length;c++){var d=a[c],e=d.indexOf("=");0<e?Ms(b,d.substr(0,e),d.substr(e+1)):d&&(b[d]="")}return b}
function Ms(a,b,c){if("cmo"==b){var d;0<=(d=c.indexOf("="))?(b="cmo="+c.substr(0,d),c=c.substr(d+1)):0<=(d=c.indexOf("%3D"))&&(b="cmo="+c.substr(0,d),c=c.substr(d+3))}a[b]=c};function Ns(a,b){this.start=a;this.end=b;this.length=b-a+1}function Os(a){a=a.split("-");return 2==a.length&&(a=new Ns(parseInt(a[0],10),parseInt(a[1],10)),!isNaN(a.start)&&!isNaN(a.end)&&!isNaN(a.length)&&0<a.length)?a:null}function Ps(a,b){return new Ns(a,a+b-1)}Ns.prototype.toString=function(){return this.start+"-"+(null==this.end?"":this.end)};function Qs(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 Rs(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 Ss(a){if(!a)return 0;var b=a.match(/PT(([0-9]*)H)?(([0-9]*)M)?(([0-9.]*)S)?/);return b?3600*parseFloat(b[2]||0)+60*parseFloat(b[4]||0)+parseFloat(b[6]||0):parseFloat(a)};function Ts(a,b,c,d,e,f){this.duration=c;this.endTime=b+c;this.o=d;this.j=a;this.sourceURL=e;this.startTime=b;this.range=f||null};function Us(){this.ra=[]}g=Us.prototype;g.$f=function(a){return(a=Vs(this,a))?a.duration:0};g.pk=function(a){return this.$f(a)};g.ug=function(){return this.ra.length?this.ra[0].j:-1};g.Nb=function(){return this.ra.length?this.ra[this.ra.length-1].j:-1};g.ag=function(){var a=this.ra[this.ra.length-1];return a?a.endTime:NaN};g.xr=function(){return this.ra[0].startTime};g.Qn=function(){return this.ra.length};g.vj=function(){return 0};g.jf=function(a){return(a=Ws(this,a))?a.j:-1};
g.Tn=function(a){return Vs(this,a).sourceURL};g.je=function(a){return(a=Vs(this,a))?a.startTime:0};g.cg=function(){return 0<this.ra.length};function Vs(a,b){var c=Gb(a.ra,new Ts(b,0,0,0,""),function(a,b){return a.j-b.j});return 0<=c?a.ra[c]:null}function Ws(a,b){var c=Gb(a.ra,{startTime:b},function(a,b){return a.startTime-b.startTime});return 0<=c?a.ra[c]:a.ra[Math.max(0,-c-2)]}
g.append=function(a){if(0!=a.length)if(a=Bb(a),0==this.ra.length)this.ra=a;else{var b=this.ra.length?ib(this.ra).endTime:0,c=a[0].j-this.Nb();1<c&&vb(this.ra);for(c=0<c?0:-c+1;c<a.length;c++){var d=a[c];d.startTime=b;d.endTime=d.startTime+d.duration;b+=a[c].duration;this.ra.push(a[c])}}};function Xs(a,b){var c=qb(a.ra,function(a){return a.j>=b},a);0<c&&a.ra.splice(0,c)};function Ys(a){this.j=a;this.o={};this.A=""}Ys.prototype.set=function(a,b){this.j.get(a);this.o[a]=b;this.A=""};Ys.prototype.get=function(a){return this.o[a]||this.j.get(a)};function Zs(a,b){var c=b.indexOf("?");if(0<c){var d=Ls(b.substr(c+1));Wb(d,function(a,b){this.set(b,a)},a);b=b.substr(0,c)}d=Ks(b);Wb(d,function(a,b){this.set(b,a)},a)}function $s(a){a.A||(a.A=at(a));return a.A}
function at(a){var b=Gs(a.j),c=[];Wb(a.o,function(a,b){c.push(b+"="+a)});if(!c.length)return b;var d=c.join("&");a=Js(a.j)?"&":"?";return b+a+d}function bt(a,b){var c=new Es(b);Wb(a.o,function(a,b){c.set(b,null)});return c};function ct(a){this.j=a;this.B=a.clone();this.o=0;this.A=-1}var dt=0;function et(a){var b=Gs(a.B),c=new P(b);c.o.match("\\.googlevideo\\.com$")?(Bh(c,"redirector.googlevideo.com"),b=c.toString()):c.o.match("r[1-9].*\\.c\\.youtube\\.com$")?(Bh(c,"www.youtube.com"),b=c.toString()):b=Xq(b);a.j=new Es(b);a.o&&(b=""+a.o,a.j.set("cmo=pf",b),a.B.set("cmo=pf",b))};function ft(a,b,c){this.index=null;this.info=b;this.initRange=c||null;this.j=null;this.C=this.A=!1;this.D=new ct(a)}ft.prototype.Xk=function(){return!1};function gt(a){return!!a.j&&!!a.index&&a.index.cg()}ft.prototype.iq=function(a){return[a]};ft.prototype.Oi=function(a){return[a]};function ht(a,b,c,d,e,f,h,k,l){this.j=b;this.range=c;this.type=a;this.B=0<=d?d:-1;this.startTime=e||0;this.duration=f||0;this.A=h||0;this.o=0<=k?k:this.range?this.range.length:NaN;this.F=!!l;this.range?(this.D=this.A+this.o==this.range.length,this.C=this.startTime+this.duration*this.A/this.range.length,this.G=this.duration*this.o/this.range.length):(this.D=0!=this.o,this.C=this.startTime,this.G=this.duration);this.H=this.C+this.G}
ht.prototype.equals=function(a){return!(!a||a.j!=this.j||a.type!=this.type||(this.range&&a.range?a.range.start!=this.range.start||a.range.end!=this.range.end:a.range!=this.range)||a.B!=this.B||a.A!=this.A||a.o!=this.o)};function it(a){return 1==a.type||2==a.type}function jt(a,b){return a.j==b.j&&a.range.start+a.A+a.o==b.range.start+b.A}
function kt(a){gb(1==a.length||pb(a,function(a){return!!a.range}));for(var b=1;b<a.length;b++);b=a[a.length-1];return new Ns(a[0].range.start+a[0].A,b.range.start+b.A+b.o-1)}function lt(a){var b="";Wb(mt(a),function(a,d){b+=d+"="+a+","});return b.slice(0,-1)}function mt(a){var b={};b.itag=a.j.info.id;b.seg=a.B;a.range&&(b.range=""+(a.range.start+a.A)+"-"+(a.range.start+a.A+a.o-1));b.time=""+a.C.toFixed(1)+"-"+(a.C+a.G).toFixed(1);return b};function nt(a,b){this.A=a[0].j.D;this.o=b||"";this.j=a;this.range=this.j[0].range&&0<this.j[0].o?kt(this.j):null}function ot(a,b){var c;/http[s]?:\/\//.test(a.o)?c=new Ys(new Es(a.o)):(c=new Ys(a.A.j),a.o&&Zs(c,a.o));var d=b||a.range;d&&c.set("range",d.toString());return c}function pt(a){if(a.range)return a.range.length;a=a.j[0];return Math.round(a.G*a.j.info.j)};function qt(a,b,c,d,e){ft.call(this,a,b,d);this.index=e||new Us;this.B=c;this.o=!0}B(qt,ft);g=qt.prototype;g.Nh=function(){return!1};g.Pn=function(){var a=new ht(1,this,this.initRange);return[new nt([a],this.B)]};function rt(a,b){a.jh(b);return tt(a,b.D?b.B+1:b.B,!1)}g.fi=function(a,b){var c=this.index.jf(a);b&&(c=Math.min(this.index.Nb(),c+1));return tt(this,c,!0)};g.ao=function(a){this.j=new Uint8Array(ut(a).buffer)};g.Xk=function(){return!1};
g.jh=function(a){return 0==a.o?!0:this.index.Nb()>a.B&&this.index.ug()<=a.B+1};g.update=function(a,b,c){this.index.append(a);Xs(this.index,c);this.o=b};function tt(a,b,c){var d=a.index.Tn(b),e=a.index.je(b),f=a.index.$f(b);c?f=c=0:c=0<a.info.j?a.info.j*f:1E3;a=new ht(3,a,null,b,e,f,0,c,b==a.index.Nb()&&!a.o&&0<c);return new nt([a],d)};function vt(a,b,c){this.fe=a;this.durationSecs=b;this.context=c};function wt(a,b,c,d){this.j=a;this.fe=b;this.durationSecs=c;this.o=d||NaN}function xt(){this.j=[];this.o=null;this.B=0;this.A=[]}
xt.prototype.update=function(a){var b=void 0;this.o&&(b=this.o);var c=b,b=+Qs(a,"timescale")||1,d=+Qs(a,"startNumber")||0,e=0,f=1;c&&(e=c.fe+c.durationSecs,f=d-c.j);var c=Date.parse(Qs(a,"yt:segmentIngestTime")),h=Date.parse(Qs(a,"yt:mpdResponseTime")),h=A()-h,c=(c+h)/1E3,h=new xt,f=0<f?0:-f+1;h.B=f;a=a.getElementsByTagName("S");for(var k=d,l=0;l<a.length;l++)for(var n=a[l],r=+n.getAttribute("d")/b,u=(n.getAttribute("yt:sid")||0)/b,z=+n.getAttribute("r")||0,y=0;y<=z;y++)if(k<d+f)k++;else{var V=new wt(k,
e,r,c+u);h.j.push(V);k++;var e=e+r,c=c+(r+u),va=n.getAttribute("yt:cuepointTimeOffset"),L=n.getAttribute("yt:cuepointDuration"),wa=n.getAttribute("yt:cuepointContext")||null;va&&L&&h.A.push(new vt(+va/b+V.fe,+L/b,wa))}h.j.length&&(h.o=ib(h.j));this.B=h.B;this.o=h.o||this.o;this.j=h.j;Cb(this.A,h.A)};function zt(a){var b=a.A;a.A=[];return b};function At(){this.B=[];this.C=!1;this.j=null;this.o={};this.A={}}function Bt(a,b){for(var c=b.getElementsByTagName("SegmentTimeline"),d=0;d<c.length;d++){var e=c[d].parentNode.parentNode;"Period"==e.nodeName?a.j=new xt:"AdaptationSet"==e.nodeName?a.o[e.attributes.mimeType.value]=new xt:"Representation"==e.nodeName&&(a.A[e.attributes.id.value]=new xt)}a.C=!0}
function Ct(a,b){a.C||Bt(a,b);for(var c=[],d=b.getElementsByTagName("SegmentTimeline"),e=0;e<d.length;e++){var f=d[e].parentNode.parentNode,h=null;"Period"==f.nodeName?h=a.j:"AdaptationSet"==f.nodeName?h=a.o[f.attributes.mimeType.value]:"Representation"==f.nodeName&&(h=a.A[f.attributes.id.value]);if(null==h)return;h.update(d[e]);Cb(c,zt(h))}Lb(c,function(a){return a.fe});Cb(a.B,c)}function Dt(a){a.j&&(a.j.j=[]);Wb(a.o,function(a){a.j=[]});Wb(a.A,function(a){a.j=[]})};function Et(a,b){var c=Ft(a,0,1836019558);if(!c)return null;var d=Ft(a,c.offset+8,1835427940),e=Ft(a,c.offset+8,1953653094);if(!d||!e)return null;var f=Ft(a,e.offset+8,1952868452),h=Ft(a,e.offset+8,1953658222),k=Ft(a,e.offset+8,1952867444);if(!f||!h||!k)return null;var l=Ft(a,e.offset+8,1935763823),e=Ft(a,e.offset+8,1935763834);if(l){var n=Gt(l),r=Gt(l);if(0!=n||1!=r)return null;n=Gt(l)}for(var u=Gt(f),z=Gt(f),y=u&2,V=u&1?Ht(f):0,va=y?Gt(f):0,L=u&8?Gt(f):0,r=u&16?Gt(f):0,wa=u&32?Gt(f):0,u=Gt(h),cc=
u&1,Dg=u&4,DB=u&256,f=u&512,EB=u&1024,FB=u&2048,u=Gt(h),GB=cc?Gt(h):0,Oo=Dg?Gt(h):0,cc=[],gu=[],Cl=[],HB=[],jO=0,Lf=0,zc=0;zc<u;zc++){var O4=DB?Gt(h):L;f&&cc.push(Gt(h));var Xd=wa;Dg&&0==zc?Xd=Oo:EB&&(Xd=Gt(h));gu.push(Xd);Xd=FB?Gt(h):0;0==zc&&(jO=Xd);Cl.push(Lf+Xd);HB.push(zc);Lf+=O4}Kb(HB,function(a,b){return Cl[a]-Cl[b]});h=[];for(zc=0;zc<u;zc++)h[HB[zc]]=zc;Lf=y?4:0;zc=16*u;Xd=68+Lf+k.size+zc+(l?l.size:0)+(e?e.size:0);c=Xd-c.size;L=new It(Xd);Jt(L,Xd);Jt(L,1836019558);Kt(L,d);Jt(L,Xd-24);Jt(L,
1953653094);Jt(L,16+Lf);Jt(L,1952868452);Jt(L,131072|(y?2:0));Jt(L,z);y&&Jt(L,va);Kt(L,k);Jt(L,20+zc);Jt(L,1953658222);Jt(L,16781057);Jt(L,u);Jt(L,V+GB+c);for(zc=Lf=0;zc<u;zc++)k=h[zc],d=Math.round(b*k/u),k=Math.round(b*(k+1)/u)-d,Xd=d-Lf+jO,Jt(L,k),Jt(L,f?cc[zc]:r),Jt(L,gu[zc]),Jt(L,Xd),Lf+=k;l&&(Jt(L,l.size),Jt(L,1935763823),Jt(L,0),Jt(L,1),Jt(L,n+c));e&&Kt(L,e);return L.data.buffer}
function Lt(a){a=new DataView(a.buffer,a.byteOffset,a.byteLength);for(var b=0;Mt(a,b);){var c=Nt(a,b);if(1836476516==c.type)return Ot(c);b=Pt(c.type)?b+8:b+c.size}return NaN}function Ft(a,b,c){for(;Mt(a,b);){var d=Nt(a,b);if(d.type==c)return d;b+=d.size}return null}function Nt(a,b){var c=a.getUint32(b),d=a.getUint32(b+4);return new Qt(a,b,c,d)}function Ot(a){var b=a.data.getUint8(a.offset+8)?28:20;return a.data.getUint32(a.offset+b)}
function Mt(a,b){if(8>a.byteLength-b)return!1;var c=a.getUint32(b);if(8>c)return!1;for(var d=4;8>d;d++){var e=a.getInt8(b+d);if(97>e||122<e)return!1}return a.byteLength-b>=c}function Pt(a){return 1836019558==a||1836019574==a||1953653094==a}function Qt(a,b,c,d){this.data=a;this.offset=b;this.size=c;this.type=d;this.j=8}function Gt(a){var b=a.data.getInt32(a.offset+a.j);a.j+=4;return b}function Ht(a){var b;b=a.data;var c=a.offset+a.j;b=4294967296*b.getUint32(c)+b.getUint32(c+4);a.j+=8;return b}
Qt.prototype.skip=function(a){this.j+=a};function It(a){this.data=new DataView(new ArrayBuffer(a));this.j=0}function Jt(a,b){a.data.setInt32(a.j,b);a.j+=4}function Kt(a,b){for(var c=0;c+4<=b.size;)Jt(a,b.data.getUint32(b.offset+c)),c+=4;for(;c<b.size;)a.data.setUint8(a.j++,b.data.getUint8(b.offset+c++))}function Rt(a){a=Ft(a,0,1836019558);return a.offset+a.size};function St(a,b){this.o=a;this.j=0;this.A=b||0}function Tt(a){for(var b=Ut(a,!1);236==b;)Vt(a),b=Ut(a,!1);return b}function Wt(a){var b=Ut(a,!0),c=a.o.byteOffset+a.j,c=new DataView(a.o.buffer,c,Math.min(b,a.o.buffer.byteLength-c)),c=new St(c,a.A+a.j);a.j+=b;return c}function Xt(a){for(var b=Ut(a,!0),c=Yt(a),d=1;d<b;d++)c=256*c+Yt(a);return c}function Vt(a){var b=Ut(a,!0);a.j+=b}function Zt(a){var b=a.j;a.j=0;var c=!1;$t(a,440786851)&&(a.j=0,$t(a,408125543)&&(c=!0));a.j=b;return c}
function au(a,b,c){var d=a.j;a.j=0;if(Zt(a)){if(!$t(a,408125543))return!1;Ut(a,!0)}if(!$t(a,524531317))return!1;Ut(a,!0);if(!$t(a,231))return!1;var e=Ut(a,!0);b=Math.floor(1E9*b/c);if(Math.ceil(Math.log(b)/Math.log(2)/8)>e)return!1;for(c=e-1;0<=c;c--)a.o.setUint8(a.j+c,b&255),b>>>=8;a.j=d;return!0}function $t(a,b){for(;Tt(a)!=b;)if(Vt(a),a.j>=a.o.byteLength)return!1;return!0}
function Ut(a,b){var c=Yt(a);if(1==c){for(var d=c=0;7>d;d++)c=256*c+Yt(a);return c}for(var e=128,d=0;6>d&&e>c;d++)c=256*c+Yt(a),e*=128;return b?c-e:c}function Yt(a){return a.o.getUint8(a.j++)};function bu(a,b,c,d,e){this.info=a;this.j=b;this.range=c;this.o=d;this.A=e}function ut(a){return a.range?new DataView(a.j,a.range.start,a.range.length):new DataView(a.j)}
function cu(a){if(a.info.o!=a.range.length)return!1;if(1==a.info.j.info.o){if(8>a.info.o||4==a.info.type)return!0;var b=ut(a),c=b.getUint32(0,!1),b=b.getUint32(4,!1);if(2==a.info.type)return c==a.info.o&&1936286840==b;if(3==a.info.type&&0==a.info.A)return 1836019558==b||1936286840==b||1937013104==b||1718909296==b}else if(2==a.info.j.info.o){if(4>a.info.o||4==a.info.type)return!0;b=ut(a);c=b.getUint32(0,!1);if(3==a.info.type&&0==a.info.A)return 524531317==c||440786851==c}return!0}
function du(a,b){if(1==a.info.j.info.o){for(var c=a.info.j.j,d=NaN,e,f=0,h=new DataView(a.j);Mt(h,f);){var k=Nt(h,f);1936286840==k.type?d=k.data.getUint32(k.offset+16):1836476516==k.type?d=Ot(k):1952867444==k.type&&(e=k);f=Pt(k.type)?f+8:f+k.size}!d&&c&&(d=Lt(c));e.data.getUint8(e.offset+8)?(c=e.data,e=e.offset+12,d=Math.round(b*d),c.setUint32(e,Math.round(d/4294967296)),c.setUint32(e+4,Math.round(d&4294967295))):e.data.setUint32(e.offset+12,Math.round(b*d));return!0}new DataView(a.info.j.j.buffer);
d=new St(new DataView(a.j));e=d.j;d.j=0;c=1E6;$t(d,408125543)&&(Ut(d,!0),$t(d,357149030)&&(Ut(d,!0),$t(d,2807729)&&(c=Xt(d))));d.j=e;return au(d,b,c)}
function eu(a){var b;a:{for(var c=0,d=new DataView(a.j);Mt(d,c);){b=Nt(d,c);if(1936286840==b.type){c=b.data.getUint32(b.offset+16);d=b.data.getUint8(b.offset+8);b.data.getUint16(b.offset+(0==d?30:38));b=b.data.getUint32(b.offset+(0==d?36:42))/c;break a}c=Pt(b.type)?c+8:c+b.size}b=NaN}if(!(0<=b)){c=a.info.j.j;d=0;b=new DataView(a.j);for(var e,f;Mt(b,d);){var h=Nt(b,d);1836476516==h.type?e=Ot(h):1836019558==h.type&&(f=h);d=Pt(h.type)?d+8:d+h.size}!e&&c&&(e=Lt(c));if(f&&e){f=Ft(b,f.offset+8,1953653094);
c=Ft(b,f.offset+8,1952868452);f=Ft(b,f.offset+8,1953658222);b=Gt(c);Gt(c);b&2&&Gt(c);b=b&8?Gt(c):0;var k=Gt(f),l=k&1,c=k&4,d=k&256,h=k&512,n=k&1024,k=k&2048,r=f.data.getUint32(f.offset+f.j);f.j+=4;l&&Gt(f);c&&Gt(f);for(var u=l=0;u<r;u++){var z=d?Gt(f):b;h&&Gt(f);c&&0==u||!n||Gt(f);k&&Gt(f);l+=z}b=l/e}else b=NaN}return b||a.info.G};function fu(){this.va=0;this.j=new Float64Array(128);this.o=new Float64Array(128);this.B=1;this.A=!1}g=fu.prototype;g.vj=function(a){return this.j[a]};g.je=function(a){return this.o[a]/this.B};g.$f=function(a){a=this.pk(a);return 0<=a?a/this.B:-1};g.pk=function(a){return a+1<this.va||this.A?this.o[a+1]-this.o[a]:-1};g.ug=function(){return 0};g.Nb=function(){return this.va-1};g.ag=function(){return this.A?this.o[this.va]/this.B:NaN};g.xr=function(){return 0};g.Qn=function(){return this.va};g.Tn=function(){return""};
g.jf=function(a){a=Gb(this.o.subarray(0,this.va),a*this.B);return 0<=a?a:Math.max(0,-a-2)};g.cg=function(){return 0<=this.Nb()};function hu(a){if(a.j.length<a.va+1){var b=2*a.j.length,b=b+2,c=a.j;a.j=new Float64Array(b+1);var d=a.o;a.o=new Float64Array(b+1);for(b=0;b<a.va+1;b++)a.j[b]=c[b],a.o[b]=d[b]}};function iu(a,b,c,d,e,f){ft.call(this,a,b,c||void 0);this.indexRange=d;this.B=null;this.index=new fu;this.o=e;this.lastModified=f}B(iu,ft);g=iu.prototype;g.Pn=function(a){var b=new ht(1,this,this.initRange),c=new ht(2,this,this.indexRange),d=[],e=[b];jt(b,c)?e.push(c):(d.push(new nt([c])),a=0);isNaN(this.o)?a=0:a>this.o&&(a=this.o);b=e[e.length-1];c=b.range.end-e[0].range.start+1;a>c&&(a=Ps(b.range.end+1,a-c),e.push(new ht(4,this,a)));d.push(new nt(e));return d};
g.ao=function(a){if(1==a.info.type){if(this.j)return;this.j=new Uint8Array(a.j,a.range.start,a.range.length)}else if(2==a.info.type){if(this.B||0<=this.index.Nb())return;if(1==this.info.o){var b=this.index,c=ut(a),d=a.info.range.start;a=0;var e=c.getUint32(0,!1),f=c.getUint8(a+8);a+=12;var h=c.getUint32(a+4,!1);b.B=h;a+=8;0==f?(f=c.getUint32(a,!1),h=c.getUint32(a+4,!1),a+=8):(f=4294967296*c.getUint32(a,!1)+c.getUint32(a+4,!1),h=4294967296*c.getUint32(a+8,!1)+c.getUint32(a+12,!1),a+=16);b.j[0]=h+(e+
d);b.o[0]=f;b.A=!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;f=b;f.va++;hu(f);f.j[f.va]=f.j[f.va-1]+k;f.o[f.va]=f.o[f.va-1]+h}}else this.B=ut(a)}if(2==this.info.o&&this.j&&this.B){a=new DataView(this.j.buffer,this.j.byteOffset,this.j.byteLength);b=this.index;h=this.B;c=this.indexRange.end;a=new St(a);if(440786851==Tt(a)&&(Vt(a),408125543==Tt(a))){e=a;f=e.j;d=Ut(e,!0);e.j=f;a=Wt(a);for(var e=a.A+a.j,l=Tt(a);357149030!=l;)Vt(a),l=Tt(a);a=Wt(a);for(var k=
1E6,n=1E9,f=0;!(a.j>=a.o.byteLength);)if(l=Tt(a),2807729==l)k=Xt(a);else if(2807730==l)n=Xt(a);else if(17545==l){var f=a,l=Ut(f,!0),r=0;4==l?r=f.o.getFloat32(f.j):8==l&&(r=f.o.getFloat64(f.j));f.j+=l;f=r}else Vt(a);b.B=n/k;a=new St(h);if(475249515==Tt(a)){a=Wt(a);h=!0;for(k=!1;!(a.j>=a.o.byteLength);)if(l=Tt(a),187==l){n=Wt(a);l=e;if(179!=Tt(n))r=null;else if(r=Xt(n),183!=Tt(n))r=null;else{for(var n=Wt(n),u=l;!(n.j>=n.o.byteLength);)241==Tt(n)?u=Xt(n)+l:Vt(n);r=[u,r]}h&&c==r[0]&&(k=!0);h=!1;k&&(r[0]+=
1);n=b;l=r[0];r=r[1];hu(n);n.j[n.va]=l;n.o[n.va]=r;n.va++}else Vt(a);c=d+e;a=f;hu(b);b.A=!0;b.o[b.va]=a;b.j[b.va]=c}}this.B=null}};function ju(a,b,c,d){for(var e=[];b<=a.index.Nb();b++){var f;f=a.index;var h=b;f=Ps(f.vj(h),h+1<f.va||f.A?f.j[h+1]-f.j[h]:-1);var h=a.index.je(b),k=a.index.$f(b),l=Math.max(0,c-f.start),n=Math.min(f.end+1,c+d)-(f.start+l);e.push(new ht(3,a,f,b,h,k,l,n,b==a.index.Nb()&&l+n==f.length));if(f.start+l+n>=c+d)break}return new nt(e)}
g.iq=function(a){for(var b=this.Oi(a.info),c=[],d=a.A,e=0;e<b.length;e++){var f=Ps(b[e].range.start+b[e].A-a.info.range.start+a.range.start,b[e].o);c.push(new bu(b[e],a.j,f,a.o,d));d=!1}return c};g.Oi=function(a){for(var b=0;b<this.index.Nb()&&a.range.start>=this.index.vj(b+1);)b++;return ju(this,b,a.range.start,a.range.length).j};g.jh=function(a){return gt(this)?!0:isNaN(this.o)?!1:a.range.end+1<this.o};
function ku(a,b,c){a.jh(b);if(!gt(a))return c=Ps(b.range.end+1,c),c.end+1>a.o&&(c=new Ns(c.start,a.o-1)),a=[new ht(4,b.j,c)],new nt(a);4==b.type&&(b=a.Oi(b),b=b[b.length-1]);var d=0,e=b.range.start+b.A+b.o;3==b.type&&(d=b.B,e==b.range.end+1&&(d+=1));return ju(a,d,e,c)}g.fi=function(a,b){var c=this.index.jf(a);b&&(c=Math.min(this.index.Nb(),c+1));return ju(this,c,this.index.vj(c),0)};g.Xk=function(){var a;if(a=gt(this)&&!isNaN(this.o))a=this.index,a=(a.A?a.j[a.va]:-1)!=this.o;return a};g.Nh=function(){return!0};function lu(a){Mk.call(this);this.G=this.duration=0;this.isLive=this.C=!1;this.D=xj();this.A=Infinity;this.j={};this.J=a||"";this.B=this.F=0;this.o=null;this.H=xj()}B(lu,Mk);function mu(a){return Yb(a.j,function(a){return!!a.info.A},a)}
function nu(a,b,c){var d=new lu;d.duration=c||0;E(a,function(a){var c=a.type,h=a.itag,k=null;if(xs(c))var l=a.size.split("x"),k=new Cs(+l[0],+l[1],+a.fps,+a.projection_type,void 0,void 0,!!a.isFastLoad,a.quality_label);var n=null,r=null;ws(c)&&(n=new ks,a.name&&(r=new ys(a.name,a.audio_track_id,"1"==a.isDefault)));a.xtags&&(h=a.itag+";"+a.xtags);var u=parseInt(a.bitrate,10)/8,l=parseInt(a.clen,10),z=d.duration&&l?l/d.duration:0,y=null;b&&a.drm_families&&(y={},E(a.drm_families.split(","),function(a){y[a]=
b[a]}));c=new ts(h,c,n,k,r,y,u,z);k=Os(a.init);n=Os(a.index);r=ou(a.url,c,a.s);a=parseInt(a.lmt,10);r&&(d.j[h]=new iu(r,c,k,n,l,a))});return d}function ou(a,b,c){a=new Es(a);a.set("alr","yes");a.set("keepalive","yes");a.set("ratebypass","yes");a.set("mime",encodeURIComponent(b.mimeType.split(";")[0]));c&&a.set("signature",hs(c));return a}var pu={commentary:1,alternate:2,dub:3,main:4};
function qu(a,b){var c=Qs(b,"id"),c=c.replace(":",";");"captions"==c&&(c=Qs(b,"lang"));var d=Qs(b,"mimeType"),e=Qs(b,"codecs"),d=e?d+'; codecs="'+e+'"':d,e=parseInt(Qs(b,"bandwidth"),10)/8,f=parseInt(Rs(b,"BaseURL").getAttribute("yt:contentLength"),10),f=a.duration&&f?f/a.duration:0,h=null;if(xs(d)){var h=parseInt(Qs(b,"width"),10),k=parseInt(Qs(b,"height"),10),l=parseInt(Qs(b,"frameRate"),10),n=Qs(b,"yt:projectionType"),r=Qs(b,"yt:stereoLayout"),u="equirectangular"==n,z,y;u&&"layout_top_bottom"==
r?z=3:u&&!n?z=2:"layout_left_right"==r&&(y=1);h=new Cs(h,k,l,z,y)}y=z=null;ws(d)&&(z=new ks(parseInt(Qs(b.getElementsByTagName("AudioChannelConfiguration")[0],"value"),10)),y=Qs(b,"lang")||"",(k=Rs(b,"Role"))?(k=Qs(k,"value")||"",y=y&&gc(pu,k)?new ys(Qs(b,"yt:langName")||y+" - "+k,y+"."+pu[k],"main"==k):null):y=null);l=null;if(k=Rs(b,"ContentProtection"))if((l=k.attributes.schemeIdUri)&&"http://youtube.com/drm/2012/10/10"==l.textContent)for(l={},k=k.firstChild;null!=k;k=k.nextSibling)"yt:SystemURL"==
k.nodeName&&(l[k.attributes.type.textContent]=k.textContent.trim());else l=null;return new ts(c,d,z,h,y,l,e,f)}function ru(a,b){a.B=1;a.D=xj();return $d(js(b||a.J).then(x(a.L,a)),x(a.M,a))}
lu.prototype.L=function(a){this.F=a.status;a=a.responseText;var b=(new DOMParser).parseFromString(a,"text/xml").getElementsByTagName("MPD")[0];a=b.getElementsByTagName("Representation");if(0<b.getElementsByTagName("SegmentList").length){this.A=1E3*Ss(Qs(b,"minimumUpdatePeriod"))||Infinity;this.isLive=Infinity>this.A;this.C=!0;this.G=parseInt(Qs(b,"yt:earliestMediaSequence"),10);this.o||(this.o=new At);Ct(this.o,b);this.O("refresh");for(b=0;b<a.length;b++){var c=qu(this,a[b]);if(!this.j[c.id]){var d=
ou(Rs(a[b],"BaseURL").textContent,c),e=Rs(a[b],"Initialization"),f=Qs(e,"sourceURL"),e=Os(Qs(e,"range"));this.j[c.id]=new qt(d,c,f,null===e?void 0:e)}for(var c=this.j[c.id],d=this.o,f=c,e=fb(f.info.mimeType,";",1)[0],f=d.A[f.info.id]||d.o[e]||d.j||null,d=Eb(Rs(a[b],"SegmentList").getElementsByTagName("SegmentURL"),f.B),f=f.j,e=[],h=0;h<d.length;h++)e.push(tu(d[h],f[h]));c.update(e,this.isLive,this.G)}Dt(this.o)}else b:for(this.duration=Ss(Qs(b,"mediaPresentationDuration")),b=0;b<a.length;b++){e=a[b];
c=qu(this,e);f=Rs(e,"BaseURL");d=ou(f.textContent,c);h=Rs(e,"SegmentBase");e=Os(h.attributes.indexRange.value);h=Os(h.getElementsByTagName("Initialization")[0].attributes.range.value);f=parseInt(f.getAttribute("yt:contentLength"),10);c=new iu(d,c,h,e,f,NaN);if(!c)break b;this.j[c.info.id]=c}this.B=2;this.O("loaded");isFinite(this.A)&&(a=xj()-this.D,a=Math.max(0,this.A-a),qj(x(this.K,this),a));return this};lu.prototype.M=function(a){this.F=a.status;this.B=3;this.O("load_error");return Yd(a)};
function tu(a,b){var c=a.getAttribute("media"),d=null,e=a.getAttribute("mediaRange");null!=e&&(0<=parseInt(e.split("-")[1],10)?d=Os(e):c=c+"?range="+e);return new Ts(b.j,b.fe,b.durationSecs,b.o,c,d)}lu.prototype.K=function(){if(1!=this.B&&!this.isDisposed()){var a;a:{a=this.j;for(var b in a){var c=a[b].index;if(c&&c.cg()){a=c.Nb()+1;break a}}a=0}a=uh(this.J,{start_seq:a.toString()});ru(this,a)}};function uu(a){a=a.j;for(var b in a){var c=a[b].index;if(c&&c.cg())return c.ag()}return NaN}
function vu(a){a=a.j;for(var b in a){var c=a[b].index;if(c&&c.cg())return c.xr()}return 0}function wu(a,b){Wb(a.j,function(a){Wb(b,function(b,e){var f=a.D;f.j.set(e,b);f.B.set(e,b)})})}function xu(a,b){var c=(0).toString();if(!a.j[c]){var d=new ts(c,"",void 0,new Cs(0,0,0,void 0,void 0,"auto"));a.j[c]=b?new qt(new Es("http://www.youtube.com/videoplayback"),d,""):new iu(new Es("http://www.youtube.com/videoplayback"),d,new Ns(0,0),new Ns(0,0),0,NaN)}};var yu,zu;var Au=wc,Au=Au.toLowerCase();if(Ka(Au,"android")){var Bu=Au.match(/android\D*(\d\.\d)[^\;|\)]*[\;\)]/);if(Bu)yu=Number(Bu[1]);else{var Cu={cupcake:1.5,donut:1.6,eclair:2,froyo:2.2,gingerbread:2.3,honeycomb:3,"ice cream sandwich":4,jellybean:4.1},Du=Au.match("("+ec(Cu).join("|")+")");yu=Du?Cu[Du[0]]:0}}else yu=void 0;zu=0<=yu;var Eu=Ji||Ki;function Fu(){return Gu("android")&&Gu("chrome")&&!Hu()}function Iu(){return Gu("(ps3; leanback shell)")||Gu("ps3")&&Gu("cobalt")}function Ju(){return Gu("(ps4; leanback shell)")||Gu("ps4")&&Gu("cobalt")}function Ku(){var a=/WebKit\/([0-9]+)/.exec(wc);return!!(a&&600<=a[1])}function Lu(){return Mi&&Gu("crkey")}function Mu(){return Gu("nintendo wiiu")}function Nu(){return Gu("iemobile")||Gu("windows phone")&&Gu("edge")}function Hu(){return Gu("trident/")||Gu("edge/")}
function Gu(a){var b=wc;return b?0<=b.toLowerCase().indexOf(a):!1};var Ou,Pu,Qu=['video/mp4; codecs="avc1.42001E, mp4a.40.2"','video/webm; codecs="vp8.0, vorbis"'],Ru=['audio/mp4; codecs="mp4a.40.2"'];function Su(){var a=t("yt.player.utils.videoElement_");a||(a=document.createElement("video"),q("yt.player.utils.videoElement_",a,void 0));return a}function Tu(a){var b=Su();try{if(b.canPlayType){a=a?Qu:Ru;for(var c=0;c<a.length;c++)if(b.canPlayType(a[c]))return null}return"fmt.noneavailable"}catch(d){return"html5.missingapi"}}
function Uu(a){a=O("div",{"class":a});document.body.appendChild(a);var b="none"==sg(a,"display");Wf(a);return b};function Vu(a,b,c){this.o=a;this.j=b;this.C=c;this.B={};this.A=null}function Wu(a){return!a.A&&Xu()&&"com.microsoft.playready"==a.j}var Yu={playready:["com.youtube.playready","com.microsoft.playready"],widevine:["com.widevine.alpha"]},Zu=Ab(Yu.widevine,Yu.playready);function Xu(){var a=window.MSMediaKeys;return a&&a.isTypeSupported?a:null}function $u(){return navigator.requestMediaKeySystemAccess&&Mi&&av("45")};function bv(a){this.o=[];this.j={};this.A={};this.B=null;cv(this,a)}B(bv,H);function cv(a,b){Wb(b,function(a){a.forEach(function(a){a.A&&Wb(a.A,function(b,c){Yu[c]&&Wb(Yu[c],function(b){this.j[b]=this.j[b]||new Vu(c,b,a.A[c]);this.A[c]=this.A[c]||{};this.A[c][a.mimeType]=!0},this)},this)},this)},a);a.o=Zu.filter(function(a){return!!this.j[a]},a)}function dv(a){var b=a.o.shift(),c=a.j[b],d=ev(a.A[c.o]);navigator.requestMediaKeySystemAccess(b,d).then(rj(x(a.D,a,c)),rj(x(a.C,a,c)))}
bv.prototype.D=function(a,b){if(!this.isDisposed()){a.A=b;var c=b.getConfiguration();E([c.audioCapabilities,c.videoCapabilities],function(b){E(b,function(b){a.B[b.contentType]=!0})});this.B(a)}};bv.prototype.C=function(){this.isDisposed()||(0<this.o.length?dv(this):this.B(null))};function ev(a){var b={initDataTypes:["cenc","webm"],audioCapabilities:[],videoCapabilities:[]};Wb(a,function(a,d){(0==d.indexOf("audio/")?b.audioCapabilities:b.videoCapabilities).push({contentType:d})});return[b]}
function fv(a){var b=Xu(),c=Su();if(b)var d=function(a,c){return b.isTypeSupported(c,a)};else c.addKey||c.webkitAddKey?d=x(c.canPlayType,c):d=function(){return!1};c=(c=G(a.o,function(a){var b=this.j[a],c,k;Wb(this.A[b.o],function(l,n){d(n,a)&&(b.B[n]=!0,c|=0==n.indexOf("audio/"),k|=0==n.indexOf("video/"))},this);return c&&k},a))?a.j[c]:null;a.o=[];a.B(c)};function gv(a){this.languageCode=a.languageCode;this.languageName=a.languageName||null;this.j=a.languageOriginal||null;this.id=a.id||null;this.isDefault=a.is_default||!1}gv.prototype.toString=function(){return this.languageCode+"_"+this.languageName+"_"+this.j+"_"+this.id+"_"+this.isDefault};function hv(a){a=a||{};this.J=a.formats||"";this.C=a.format||1;if(1==this.C)for(var b=this.J.split(","),c=0;c<b.length;c++){var d=parseInt(b[c],10);isNaN(d)||(this.C=Math.max(d,this.C))}this.j=a.languageCode||"";this.D=a.languageName;this.A=a.kind||"";this.B=a.name;this.L=a.id;this.K=a.is_servable;this.isDefault=a.is_default;this.G=a.is_translateable;this.H=a.url||null;this.F=a.vss_id||"";this.o=null;a.translationLanguage&&(this.o=new gv(a.translationLanguage))}var iv=!1;
function jv(a){var b={format:a.C,languageCode:a.j,languageName:a.D,displayName:kv(a),kind:a.A,name:a.B,id:a.L,is_servable:a.K,is_default:a.isDefault,is_translateable:a.G,vss_id:a.F};a.o&&(a=a.o,b.translationLanguage={languageCode:a.languageCode,languageName:a.languageName,languageOriginal:a.j,id:a.id,is_default:a.isDefault});return b}var lv={WF:1,Vs:2,Ws:3};
function kv(a){var b=a.D||"",c=[b];"asr"==a.A&&-1==b.indexOf("(")&&c.push(" (",Q("YTP_ASR_SETTINGS_LABEL"),")");a.B&&c.push(" - ",a.B);a.o&&c.push(" >> ",a.o.languageName);return c.join("")}hv.prototype.toString=function(){return this.j+": "+kv(this)+" - "+this.F};function mv(a,b){var c=new hv;c.j=a.j;c.D=a.D;c.B=a.B;c.A=a.A;c.isDefault=!1;c.G=a.G;c.F=a.F;c.H=a.H;c.o=b;return c}hv.prototype.equals=function(a){return a?this.toString()==a.toString():!1};function nv(a,b){this.id=a;this.Jb=b;this.captionTracks=[];this.sg=this.gk=null;this.tn=0}nv.prototype.toString=function(){return this.Jb.name};function ov(a,b,c){this.o=a||0;this.j=b||0;this.A=c}ov.prototype.equals=function(a){return this.o==a.o&&this.j==a.j&&this.A==a.A};function pv(a,b,c){return new ov(As[a]||0,As[b]||0,c)}var qv=pv("auto","large",!1),rv=pv("auto","auto",!1);pv("small","auto",!1);var tv=pv("auto","hd720",!1);function uv(a){var b=As.auto;return a.o==b&&a.j==b}ov.prototype.isLocked=function(){return this.A&&!!this.o&&this.o==this.j};
function vv(a,b){if(b.A&&uv(b))return rv;if(b.A||uv(a))return b;if(a.A||uv(b))return a;var c=a.o&&b.o?Math.max(a.o,b.o):a.o||b.o,d=a.j&&b.j?Math.min(a.j,b.j):a.j||b.j,c=Math.min(c,d);return c==a.o&&d==a.j?a:new ov(c,d,!1)}function wv(a){var b=a.j||a.o;return ic(zs,function(a){return As[a]==b})||"auto"}ov.prototype.B=function(a){if(!a.video)return!1;a=As[a.video.quality];return this.o<=a&&(!this.j||this.j>=a)};function xv(a,b,c){this.videoInfos=a;this.j=b||null;this.audioTracks=[];this.o=c||null;if(this.j){var d={};E(this.j,x(function(a){if(a.Jb&&!d[a.id]){var b=new nv(a.id,a.Jb);d[a.id]=b;this.audioTracks.push(b)}},this))}};var yv={bH:1,cH:2,dH:3};function zv(a,b){this.j=a;this.o=b}zv.prototype.getValue=function(){return this.o};zv.prototype.clone=function(){return new zv(this.j,this.o)};function Av(a){this.j=[];if(a)a:{var b,c;if(a instanceof Av){if(b=a.Ma(),c=a.Ia(),0>=a.ab()){a=this.j;for(var d=0;d<b.length;d++)a.push(new zv(b[d],c[d]));break a}}else b=ec(a),c=dc(a);for(d=0;d<b.length;d++)Bv(this,b[d],c[d])}}function Bv(a,b,c){var d=a.j;d.push(new zv(b,c));b=d.length-1;a=a.j;for(c=a[b];0<b;)if(d=b-1>>1,a[d].j>c.j)a[b]=a[d],b=d;else break;a[b]=c}g=Av.prototype;
g.remove=function(){var a=this.j,b=a.length,c=a[0];if(!(0>=b)){if(1==b)vb(a);else{a[0]=a.pop();for(var a=0,b=this.j,d=b.length,e=b[a];a<d>>1;){var f=2*a+1,h=2*a+2,f=h<d&&b[h].j<b[f].j?h:f;if(b[f].j>e.j)break;b[a]=b[f];a=f}b[a]=e}return c.getValue()}};g.Ia=function(){for(var a=this.j,b=[],c=a.length,d=0;d<c;d++)b.push(a[d].getValue());return b};g.Ma=function(){for(var a=this.j,b=[],c=a.length,d=0;d<c;d++)b.push(a[d].j);return b};g.we=function(a){return ob(this.j,function(b){return b.getValue()==a})};
g.clone=function(){return new Av(this)};g.ab=function(){return this.j.length};g.isEmpty=function(){return ub(this.j)};g.clear=function(){vb(this.j)};function Cv(){Av.call(this)}B(Cv,Av);function Dv(a,b){Mk.call(this);this.o=a;this.A=new Cv;this.j=null;this.C={};this.B=b||""}B(Dv,Mk);function Ev(a,b,c){var d;for(c=Fv(a.o,c);0<=c;){d=a.o.j[c];if(d=d.A[Math.floor(b/(d.Hb*d.rows))]?Gv(d,b):null)return d;c--}return Gv(a.o.j[0],b)}function Hv(a,b,c){c=Fv(a.o,c);for(var d,e;0<=c;c--)if(d=a.o.j[c],e=Math.floor(b/(d.Hb*d.rows)),!d.A[e]){d=a;var f=c,h=f+"-"+e;d.C[h]||(d.C[h]=!0,Bv(d.A,f,{Oo:f,Vo:e}))}Iv(a)}
function Iv(a){if(!a.j&&!a.A.isEmpty()){var b=a.A.remove(),c=new Image;a.B&&(c.crossOrigin=a.B);c.src=Jv(a.o.j[b.Oo],b.Vo);c.onload=x(a.D,a,b.Oo,b.Vo);a.j=c}}Dv.prototype.D=function(a,b){this.j=this.j.onload=null;var c=this.o.j[a];c.A[b]=!0;Iv(this);var d=c.Hb*c.rows,e=b*d,c=[e,Math.min(e+d-1,c.rk()-1)];this.O("l",c[0],c[1])};Dv.prototype.R=function(){this.j&&(this.j=this.j.onload=null);Dv.N.R.call(this)};function Kv(a,b,c,d){this.A={};this.L=a;this.J=b;a=c.split("#");this.G=parseInt(a[0],10);this.F=parseInt(a[1],10);this.o=parseInt(a[2],10);this.Hb=parseInt(a[3],10);this.rows=parseInt(a[4],10);this.C=parseInt(a[5],10);this.B=a[6];this.D=a[7];this.K=d}g=Kv.prototype;g.getWidth=function(){return this.G};g.getHeight=function(){return this.F};g.rk=function(){return this.o};g.isDefault=function(){return-1!=this.B.indexOf("default")};
function Jv(a,b){var c=a.J,c=c.replace("$N",a.B),c=c.replace("$L",a.L.toString()),c=c.replace("$M",b.toString());a.D&&(c=uh(c,{sigh:a.D}));return Yq(c)}function Gv(a,b){var c=Math.floor(b/(a.Hb*a.rows)),d=a.Hb*a.rows,e=b%d,f=e%a.Hb,e=Math.floor(e/a.Hb),h,k=a.Cm()+1-d*c;k<a.Hb?(h=k,d=1):(h=a.Hb,d=k<d?Math.ceil(k/a.Hb):a.rows);return{url:Jv(a,c),kv:f,Hb:h,row:e,rows:d,Wo:a.G*h,Uo:a.F*d}}g.Aj=function(a){return De(0==this.C?Math.round(a*this.o/this.K):Math.round(1E3*a/this.C),0,this.rk()-1)};
g.Cm=function(){return this.o-1};g.cs=function(){return this.o?0:-1};g.ds=function(){};function Lv(a,b){this.j=this.o(a,b);this.A={};1<this.j.length&&this.j[0].isDefault()&&this.j.splice(0,1)}Lv.prototype.o=function(a,b){for(var c=[],d=a.split("|"),e=d[0],f=1;f<d.length;f++){var h=this.B(f-1,e,d[f],b);180>h.getHeight()&&c.push(h)}return c};Lv.prototype.B=function(a,b,c,d){return new Kv(a,b,c,d)};function Fv(a,b){var c=a.A[b];if(c)return c;for(var c=a.j.length,d=0;d<c;d++)if(a.j[d].getWidth()>=b)return a.A[b]=d;a.A[b]=c-1;return c-1}Lv.prototype.C=function(){};function Mv(a,b,c,d){c=c.split("#");c=[c[1],c[2],0,c[3],c[4],-1,c[0],""].join("#");Kv.call(this,a,b,c,0);this.j=null;this.H=d?3:0}B(Mv,Kv);g=Mv.prototype;g.rk=function(){return this.j?this.j.Qn():-1};g.Aj=function(a){var b=this.rows*this.Hb*this.H,c=-1,d=-1,e=this.j;e&&(c=e.Nb(),d=e.jf(a));return d>c-b?-1:d};g.Cm=function(){return this.j?this.j.Nb():-1};g.cs=function(){return this.j?this.j.ug():-1};g.ds=function(a){this.j=a?a.index:null};function Nv(a,b){this.D=b;Lv.call(this,a,0)}B(Nv,Lv);Nv.prototype.o=function(a,b){return Nv.N.o.call(this,"$N|"+a,b)};Nv.prototype.B=function(a,b,c){return new Mv(a,b,c,this.D.isLive)};Nv.prototype.C=function(a){for(var b=0;b<this.j.length;b++)this.j[b].ds(a)};var Ov=A().toString();
function Pv(){if(void 0==Ou&&(Ou=!1,window.crypto&&window.crypto.getRandomValues))try{var a=new Uint8Array(1);window.crypto.getRandomValues(a);Ou=!0}catch(e){}if(Ou){var a=Array(16),b=new Uint8Array(16);window.crypto.getRandomValues(b);for(var c=0;c<a.length;c++)a[c]=b[c]}else{a=Array(16);for(b=0;16>b;b++){for(var c=A(),d=0;d<c%23;d++)a[b]=Math.random();a[b]=Math.floor(256*Math.random())}if(b=Ov)for(c=1,d=0;d<b.length;d++)a[c%16]=a[c%16]^a[(c-1)%16]/4^b.charCodeAt(d),c++}return a}
function Qv(){for(var a=Pv(),b=[],c=0;c<a.length;c++)b.push("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-_".charAt(a[c]&63));return b.join("")}function Rv(){return F(Pv(),function(a){return(a&15).toString(16)}).join("")};function Sv(a,b){return void 0==b?a:"1"==b?!0:!1}function Tv(a,b,c){for(var d in c)if(c[d]==b)return c[d];return a}function Uv(a,b){return void 0==b?a:Number(b)}function Vv(a,b){return void 0==b?a:b.toString()}var Wv=/^([0-9\.]+)\:([0-9\.]+)$/;function Xv(a){if(a&&(a=a.match(Wv))){var b=parseFloat(a[2]);if(0<b)return parseFloat(a[1])/b}return NaN}function Yv(a,b){var c=As.auto,d=As.medium;if("tivo"==b)return new ov(c,As.large,!1);var e=As[b];return e>d?new ov(e,c,!1):e>=c?new ov(c,e,!1):a};function Zv(){return!!t("yt.scheduler.instance")}function $v(a,b){isNaN(b)&&(b=void 0);var c=t("yt.scheduler.instance.addJob");return c?c(a,0,b):void 0===b?(a(),NaN):qj(a,b||0)}function aw(a){var b=t("yt.scheduler.instance.cancelJob");b?b(a):tj(a)}function bw(){var a=t("yt.scheduler.instance.start");a&&(tj(cw),a())}var cw=0;function dw(){var a=t("yt.scheduler.instance.pause");a&&(a(),tj(cw),cw=qj(bw,800))};function ew(a,b){this.version=a;this.args=b}function fw(a){if(!a.he){var b={};a.call(b);a.he=b.version}return a.he}
function gw(a,b){function c(){a.apply(this,b.args)}if(!b.args||!b.version)throw Error("yt.pubsub2.Data.deserialize(): serializedData is incomplete.");var d;try{d=fw(a)}catch(e){}if(!d||b.version!=d)throw Error("yt.pubsub2.Data.deserialize(): serializedData version is incompatible.");c.prototype=a.prototype;try{return new c}catch(e){throw e.message="yt.pubsub2.Data.deserialize(): "+e.message,e;}}ew.prototype.$b=function(){return{version:this.version,args:this.args}};
function hw(a,b){this.o=a;this.j=b}hw.prototype.toString=function(){return this.o};var iw=t("yt.pubsub2.instance_")||new kj;kj.prototype.subscribe=kj.prototype.subscribe;kj.prototype.unsubscribeByKey=kj.prototype.Pb;kj.prototype.publish=kj.prototype.O;kj.prototype.clear=kj.prototype.clear;q("yt.pubsub2.instance_",iw,void 0);var jw=t("yt.pubsub2.subscribedKeys_")||{};q("yt.pubsub2.subscribedKeys_",jw,void 0);var kw=t("yt.pubsub2.topicToKeys_")||{};q("yt.pubsub2.topicToKeys_",kw,void 0);var lw=t("yt.pubsub2.isAsync_")||{};q("yt.pubsub2.isAsync_",lw,void 0);
q("yt.pubsub2.skipSubKey_",null,void 0);
function mw(a,b){var c=nw,d=ow();if(!d)return 0;var e=d.subscribe(c.toString(),function(d,h){if(!window.yt.pubsub2.skipSubKey_||window.yt.pubsub2.skipSubKey_!=e){var k=function(){if(jw[e])try{if(h&&c instanceof hw&&c!=d)try{h=gw(c.j,h)}catch(k){throw k.message="yt.pubsub2 cross-binary conversion error for "+c.toString()+": "+k.message,k;}a.call(b||window,h)}catch(k){vj(k)}};lw[c.toString()]?Zv()?$v(k,void 0):qj(k,0):k()}});jw[e]=!0;kw[c.toString()]||(kw[c.toString()]=[]);kw[c.toString()].push(e);
return e}function pw(a,b){var c=mw(function(d){a.apply(b,arguments);qw(c)},b);return c}function qw(a){var b=ow();b&&(ga(a)&&(a=[a]),E(a,function(a){b.unsubscribeByKey(a);delete jw[a]}))}function ow(){return t("yt.pubsub2.instance_")};function rw(a){ew.call(this,1,arguments);this.j=a}B(rw,ew);var nw=new hw("timing-sent",rw);var tw=window.performance||window.mozPerformance||window.msPerformance||window.webkitPerformance||{},uw=x(tw.clearResourceTimings||tw.webkitClearResourceTimings||tw.mozClearResourceTimings||tw.msClearResourceTimings||tw.oClearResourceTimings||v,tw),vw=tw.mark?function(a){tw.mark(a)}:v;
function ww(a,b,c){xw(c)[a]=b||A();b||vw(a);b=pj("TIMING_ACTION");a=xw(c);if(t("yt.timing.ready_")&&b&&a._start&&yw(c)){b=!0;var d=pj("TIMING_WAIT",[]);if(d.length)for(var e=0,f=d.length;e<f;++e)if(!(d[e]in a)){b=!1;break}(b||c)&&zw(c)}}function Aw(a,b){var c=xw(b);return a in c}function Bw(a,b,c){Cw(c).info[a]=b}function Dw(a){Ew(a);uw();q("yt.timing.pingSent_",!1,void 0)}
function yw(a){a=xw(a);if(a.aft)return a.aft;for(var b=pj("TIMING_AFT_KEYS",["ol"]),c=b.length,d=0;d<c;d++){var e=a[b[d]];if(e)return e}return NaN}function Fw(a){return Math.round(tw.timing.navigationStart+a)}
function Gw(a){var b=window.location.protocol,c=tw.getEntriesByType("resource"),d=c.filter(function(a){return 0==a.name.indexOf(b+"//fonts.googleapis.com/css?family=")})[0],c=c.filter(function(a){return 0==a.name.indexOf(b+"//fonts.gstatic.com/s/")}).reduce(function(a,b){return b.duration>a.duration?b:a},{duration:0});d&&0<d.startTime&&0<d.responseEnd&&(a.wfcs=Fw(d.startTime),a.wfce=Fw(d.responseEnd));c&&0<c.startTime&&0<c.responseEnd&&(a.wffs=Fw(c.startTime),a.wffe=Fw(c.responseEnd))}
function zw(a){var b=xw(a),c=Cw(a).span,d=Cw(a).info,e=t("yt.timing.reportbuilder_");if(e){if(e=e(b,c,d,a))Hw(e),Dw(a)}else{e={v:2,s:pj("CSI_SERVICE_NAME","youtube"),action:pj("TIMING_ACTION")};if(tw.now&&tw.timing){var f=tw.timing.navigationStart+tw.now(),f=Math.round(A()-f);d.yt_hrd=f}var f=pj("TIMING_INFO")||{},h;for(h in f)d[h]=f[h];h=d.srt;delete d.srt;var k;h||0===h||(k=tw.timing||{},h=Math.max(0,k.responseStart-k.navigationStart),isNaN(h)&&d.pt&&(h=d.pt));if(h||0===h)d.srt=h;d.h5jse&&(f=window.location.protocol+
t("ytplayer.config.assets.js"),(f=tw.getEntriesByName?tw.getEntriesByName(f)[0]:null)?d.h5jse=Math.round(d.h5jse-f.responseEnd):delete d.h5jse);b.aft=yw(a);f=b._start;if("cold"==d.yt_lt){k||(k=tw.timing||{});var l;a:if(l=k,l.msFirstPaint)l=Math.max(0,l.msFirstPaint);else{var n=window.chrome;if(n&&(n=n.loadTimes,ha(n))){var n=n(),r=1E3*Math.min(n.requestTime||Infinity,n.startLoadTime||Infinity),r=Infinity===r?0:l.navigationStart-r;l=Math.max(0,Math.round(1E3*n.firstPaintTime+r)||0);break a}l=0}0<l&&
l>f&&(b.fpt=l);l=c||Cw(void 0).span;n=k.redirectEnd-k.redirectStart;0<n&&(l.rtime_=n);n=k.domainLookupEnd-k.domainLookupStart;0<n&&(l.dns_=n);n=k.connectEnd-k.connectStart;0<n&&(l.tcp_=n);n=k.connectEnd-k.secureConnectionStart;k.secureConnectionStart>=k.navigationStart&&0<n&&(l.stcp_=n);n=k.responseStart-k.requestStart;0<n&&(l.req_=n);n=k.responseEnd-k.responseStart;0<n&&(l.rcv_=n);tw.getEntriesByType&&Gw(b)}(k=pj("PREVIOUS_ACTION"))&&(d.pa=k);d.p=pj("CLIENT_PROTOCOL")||"unknown";d.t=pj("CLIENT_TRANSPORT")||
"unknown";window.navigator&&window.navigator.sendBeacon&&(d.ba=1);for(var u in d)"_"!=u.charAt(0)&&(e[u]=d[u]);pj("CSI_MORE")&&(b.ps=A());d={};u=[];for(var z in b)"_"!=z.charAt(0)&&(l=Math.max(Math.round(b[z]-f),0),d[z]=l,u.push(z+"."+l));e.rt=u.join(",");b=e;z=[];for(var y in c)"_"!=y.charAt(0)&&z.push(y+"."+c[y]);b.it=z.join(",");(y=t("ytdebug.logTiming"))&&y(e,d,c);Dw(a);pj("EXP_DEFER_CSI_PING")?(Iw(),q("yt.timing.deferredPingArgs_",e,void 0),a=qj(Iw,0),q("yt.timing.deferredPingTimer_",a,void 0)):
Hw(e);a=new rw(d.aft+(h||0));c=nw;(e=ow())&&e.publish.call(e,c.toString(),c,a)}}
function Hw(a){if(pj("DEBUG_CSI_DATA")){var b=t("yt.timing.csiData");b||(b=[],q("yt.timing.csiData",b,void 0));b.push({page:location.href,time:new Date,args:a})}pj("EXP_DEFER_CSI_PING")&&(tj(t("yt.timing.deferredPingTimer_")),q("yt.timing.deferredPingArgs_",null,void 0));var c="https:"==window.location.protocol?"https://gg.google.com/csi":"http://csi.gstatic.com/csi",b="",d;for(d in a)b+="&"+d+"="+a[d];a=c+"?"+b.substring(1);b=pj("CSI_LOG_WITH_YT")?"/csi_204?"+b.substring(1):null;window.navigator&&
window.navigator.sendBeacon?(dr(a),b&&dr(b)):(br(a),b&&br(b));q("yt.timing.pingSent_",!0,void 0)}function Iw(a){if(pj("EXP_DEFER_CSI_PING")){var b=t("yt.timing.deferredPingArgs_");b&&(a&&(b.yt_fss=a),Hw(b))}}function xw(a){return Cw(a).tick}function Cw(a){return t("ytcsi."+(a||"")+"data_")||Ew(a)}function Ew(a){var b={tick:{},span:{},info:{}};q("ytcsi."+(a||"")+"data_",b,void 0);return b};var Jw,Kw;var Lw=wc,Mw=Lw.match(/\((iPad|iPhone|iPod)( Simulator)?;/);if(!Mw||2>Mw.length)Jw=void 0;else{var Nw=Lw.match(/\((iPad|iPhone|iPod)( Simulator)?; (U; )?CPU (iPhone )?OS (\d_\d)[_ ]/);Jw=Nw&&6==Nw.length?Number(Nw[5].replace("_",".")):0}(Kw=0<=Jw)&&0<=wc.search("Safari")&&wc.search("Version");var Ow={Wt:1,kG:2};var Pw={LIKE:0,DISLIKE:1,INDIFFERENT:2};function Qw(a,b,c){this.errorCode=a;this.j=b;this.details=c||{}}function Rw(a){var b,c;for(c in a.details)b=(b?b+";":"")+c+"."+a.details[c];return b||""};function Sw(a){return(a=a.exec(wc))?a[1]:""}var Tw=function(){if(Ii)return Sw(/Firefox\/([0-9.]+)/);if(Fc||Gc||Ec)return Rc;if(Mi)return Sw(/Chrome\/([0-9.]+)/);if(Ni&&!(Dc()||Ac("iPad")||Ac("iPod")))return Sw(/Version\/([0-9.]+)/);if(Ji||Ki){var a;if(a=/Version\/(\S+).*Mobile\/(\S+)/.exec(wc))return a[1]+"."+a[2]}else if(Li)return(a=Sw(/Android\s+([0-9.]+)/))?a:Sw(/Version\/([0-9.]+)/);return""}();function av(a){return 0<=Xa(Tw,a)};function Uw(){}Uw.prototype.start=function(){return 0};Uw.prototype.end=function(){return Infinity};Uw.prototype.length=1;function Vw(){this.buffered=new Uw}g=Vw.prototype;g.addEventListener=function(){};g.removeEventListener=function(){};g.dispatchEvent=function(){};g.abort=function(){};g.remove=function(){};g.appendBuffer=function(){};function Ww(a,b){this.B=a;this.j=!!b;this.A=!1;this.o={}}Ww.prototype.dispose=function(){if(!this.A){if(this.j)try{URL.revokeObjectURL(this.B)}catch(a){}this.A=!0}};Ww.prototype.isDisposed=function(){return this.A};function Xw(a){return a.j?a.B:uh(a.B,a.o)}Ww.prototype.equals=function(a){return null!=a&&Xw(a)==Xw(this)};function Yw(a,b){this.o=a;this.A=b;this.B=0;Object.defineProperty(this,"timestampOffset",{get:this.gC,set:this.kC});Object.defineProperty(this,"buffered",{get:this.eC})}g=Yw.prototype;g.append=function(a){this.o.webkitSourceAppend(this.A,a)};g.abort=function(){this.o.webkitSourceAbort(this.A)};g.eC=function(){return this.o.webkitSourceState==this.o.SOURCE_CLOSED?new Zw:this.o.webkitSourceBuffered(this.A)};g.gC=function(){return this.B};
g.kC=function(a){this.B=a;this.o.webkitSourceTimestampOffset(this.A,a)};function Zw(){this.length=0};function $w(a){this.activeSourceBuffers=this.sourceBuffers=[];this.j=a;this.o=NaN;this.A=0;Object.defineProperty(this,"duration",{get:this.fC,set:this.jC});Object.defineProperty(this,"readyState",{get:this.hC});this.j.addEventListener("webkitsourceclose",x(this.iC,this),!0)}g=$w.prototype;g.addEventListener=function(a,b,c){this.j.addEventListener(a,b,c)};g.removeEventListener=function(a,b,c){this.j.removeEventListener(a,b,c)};g.kE=function(){return this.j.webkitMediaSourceURL};
g.addSourceBuffer=function(a){var b=(this.A++).toString();this.j.webkitSourceAddId(b,a);a=new Yw(this.j,b);this.sourceBuffers.push(a);return a};g.hC=function(){switch(this.j.webkitSourceState){case this.j.SOURCE_CLOSED:return"closed";case this.j.SOURCE_OPEN:return"open";case this.j.SOURCE_ENDED:return"ended"}return""};g.endOfStream=function(a){var b=this.j.EOS_NO_ERROR;"network"==a?b=this.j.EOS_NETWORK_ERR:"decode"==a&&(b=this.j.EOS_DECODE_ERR);this.j.webkitSourceEndOfStream(b)};g.iC=function(){vb(this.sourceBuffers)};
g.fC=function(){return this.o};g.jC=function(a){this.o=a;this.j.webkitSourceSetDuration&&this.j.webkitSourceSetDuration(a)};function ax(a){H.call(this);this.L=[];this.Ea=a||this}B(ax,H);function bx(a,b,c,d){for(var e=0;e<c.length;e++)T(a,b,c[e],d)}function T(a,b,c,d,e){d=rj(x(d,e||a.Ea));b.addEventListener(c,d);b={target:b,name:c,Mh:d};a.L.push(b);return b}ax.prototype.ua=function(a){for(var b=0;b<this.L.length;b++)if(this.L[b]==a){this.L.splice(b,1);a.target.removeEventListener(a.name,a.Mh);break}};function cx(a){for(;a.L.length;){var b=a.L.pop();b.target.removeEventListener(b.name,b.Mh)}}
ax.prototype.R=function(){cx(this);ax.N.R.call(this)};function dx(a,b,c,d,e){ax.call(this);this.o=this.j=null;this.B=b;this.A=window.MediaSource?new window.MediaSource:window.WebKitMediaSource?new window.WebKitMediaSource:new $w(a);this.D=this.C=this.F=null;this.G=d;this.K=c;this.M=e;bx(this,this.A,["sourceopen","webkitsourceopen"],this.J);bx(this,this.A,["sourceclose","webkitsourceclose"],this.H)}B(dx,ax);function ex(a,b){a.C=b}function fx(a,b){a.D=b}
function gx(a){if(!a.F){var b;b=a.A;b=b.kE?b.j.webkitMediaSourceURL:window.URL.createObjectURL(b);a.F=new Ww(b,!0)}return a.F}function hx(a,b){ix(a)?a.A.duration=b:a.B=b}function ix(a){try{return"open"==a.A.readyState}catch(b){return!1}}function jx(a){try{return"closed"==a.A.readyState}catch(b){return!0}}function kx(a){return a.j.updating||a.o.updating}function lx(){return!(!window.MediaSource||!window.MediaSource.isTypeSupported)}function mx(a){return a.j?!!a.j.appendBuffer:lx()}
dx.prototype.J=function(){if(!this.isDisposed()&&ix(this)&&!isNaN(this.B)){this.A.duration=this.B;this.B=NaN;try{this.j=this.A.addSourceBuffer(this.G),this.M?this.o=this.A.addSourceBuffer(this.K):this.o=new Vw,this.C&&(this.C(this),this.C=null)}catch(a){this.D&&this.D()}}};dx.prototype.H=function(){this.dispose()};
function nx(a){if(/opus/.test(a)&&(Mi&&!av("38")||Lu()))return!1;if(window.MediaSource&&window.MediaSource.isTypeSupported)return window.MediaSource.isTypeSupported(a);if(/webm/.test(a)&&!Ju())return!1;'audio/mp4; codecs="mp4a.40.2"'==a&&(a='video/mp4; codecs="avc1.4d401f"');return!!Su().canPlayType(a)};function ox(a){this.uc=a}ox.prototype.o=function(){return null};var px={52:!0,53:!0,54:!0,55:!0,60:!0,79:!0,87:!0};function qx(a,b){this.o=a;this.B=b;this.A={};this.j=window.cast&&window.cast.__platform__&&window.cast.__platform__.queryPlatformValue&&window.cast.__platform__.queryPlatformValue("max-video-resolution-vpx")||null}var rx="9h8(H*".split(""),sx="h98H(*".split(""),tx="oMavAV".split(""),ux="aoMvAV".split(""),vx=["f"],wx={'video/mp4; codecs="avc1.42001E, mp4a.40.2"':"maybe"},xx={"application/x-mpegURL":"maybe"},yx={"application/x-mpegURL":"maybe"};
function zx(a,b){if(2.2!=yu&&Tu(a.o))return[];for(var c={},d=Su(),e=0;e<b.length;e++){var f=b[e];if(us(f.uc)in px||"5"==us(f.uc)?0:Ax(d,f.uc.mimeType)){var h=f.uc.video.quality;c[h]&&2!=c[h].uc.o||(c[h]=f)}}var k=[];c.auto&&k.push(c.auto);E(Bs,function(a){(f=c[a])&&k.push(f)});return k}function Ax(a,b){var c=a.canPlayType(b);Eu?c=c||yx[b]:2.2==yu?c=c||wx[b]:Fu()&&(c=c||xx[b]);return!!c}
function Bx(){var a=Fu()&&!av(29),b=Gu("google tv")&&Gu("chrome")&&!av(30);return a||b?!1:!!(window.MediaSource||window.WebKitMediaSource||window.HTMLMediaElement&&HTMLMediaElement.prototype.webkitSourceAddId)}
function Cx(a,b){var c={},d;for(d in b.j){var e=b.j[d],f;a:{f=a;var h=e.info;if(h.id!=(0).toString()||f.o){var k=h.mimeType,l={};h.video&&(h.video.width&&(l[ms.name]=h.video.width),h.video.height&&(l[ns.name]=h.video.height),h.video.fps&&(l[os.name]=h.video.fps),h.j&&(l[ps.name]=8*h.j));h.audio&&h.audio.j&&(l[qs.name]=h.audio.j);h=l;l=void 0;for(l in rs){var n=rs[l];if(h[n.name]&&Dx(f,n))if(f.j){if(f.j[n.name]<h[n.name]){f=!1;break a}}else k=k+"; "+n.name+"="+h[n.name]}f=nx(k)}else f=!0}f&&(c[e.info.B]=
c[e.info.B]||[],c[e.info.B].push(e.info))}return c}function Ex(a,b,c){var d={},e;Wb(b,function(a,b){var k=a.filter(function(a){return a.A?c&&a.A[c.o]&&c.B[a.mimeType]&&(261!=us(a)||(e||(e=Su()),e.canPlayType('audio/mp4; codecs="aac51"',"com.widevine.alpha")))?!0:!1:!0},this);k.length&&(d[b]=k)},a);return d}
function Fx(a,b,c,d){function e(a){return!!f[a]}var f=Cx(a,b);mu(b)&&(f=Ex(a,f,c));c=rx;if(!a.o)c=vx;else if(Gu("cros armv7")||Gu("windows nt 5.1"))c=sx;b=tx;d&&(a.o&&(c=sx),b=ux);d=G(c,e);b=G(b,e);if(!d||!b)return null;if("9"==d&&f.h){c=function(a,b){return Math.max(a,b.video.height)};var h=nb(f["9"],c,0);nb(f.h,c,0)>1.5*h&&(d="h")}c=f[d];h=f[b];c=Gx(a,c);Hx(c,h);return new xv(c,h,Ix(a,f,d,b))}
function Ix(a,b,c,d){var e=b.h;b=b.a;return e&&b&&("h"!=c||"a"!=d)?(e=Gx(a,e),Hx(e,b),new xv(e,b)):null}function Hx(a,b){Kb(a,function(a,b){return b.video.width-a.video.width||b.j-a.j});Kb(b,function(a,b){return b.j-a.j})}
function Gx(a,b){var c=ob(b,function(a){return 32<a.video.fps});c&&(b=a.B||Dx(a,os)?lb(b,function(a){var b;(b=32<a.video.fps)||(a=a.video,b=!(854<a.width||480<a.height));return b}):lb(b,function(a){return!(32<a.video.fps)}));c&&Iu()&&(b=lb(b,function(a){return 299!=us(a)}));return b}
function Dx(a,b){if(!(b.name in a.A)){var c=a.A,d=b.name,e;a.j?e=!!a.j[b.name]:(b.video?(e='video/webm; codecs="vp9"',nx(e)||(e='video/mp4; codecs="avc1.4d401e"')):(e='audio/webm; codecs="opus"',nx(e)||(e='audio/mp4; codecs="mp4a.40.2"')),e=nx(e+"; "+b.name+"="+b.valid)&&!nx(e+"; "+b.name+"="+b.Eg));c[d]=e}return a.A[b.name]};function Jx(a,b){this.o=a;this.j=b;this.A=0}function Kx(a){for(var b=[],c=[],d=0,e=a.j.length;d<e;++d){var f=a.j[d];f.bitrate<=a.A?b.push(f):c.push(f)}b.sort(function(a,b){return b.bitrate-a.bitrate});c.sort(function(a,b){return a.bitrate-b.bitrate});a.j=b.concat(c)};function Lx(a,b,c,d,e,f,h,k){this.itag=a;this.url=b;this.An=c;this.width=d;this.height=e;this.bitrate=h;this.fps=f;this.audioItag=k||null};function Mx(a,b){this.uc=a;this.A=b;this.j=null}B(Mx,ox);function Nx(a,b,c,d,e,f,h,k){c=new ts(c,"application/x-mpegURL",new ks,new Cs(d,e,f,null,void 0,h));a=new Jx(a,b);a.A=k?k:1369843;return new Mx(c,a)}
Mx.prototype.o=function(){if(!this.j||this.j.isDisposed()){var a;a=this.A;Kx(a);for(var b=["#EXTM3U","#EXT-X-INDEPENDENT-SEGMENTS"],c={},d=0,e=a.o.length;d<e;++d){var f=a.o[d];c[f.itag]=f;b.push('#EXT-X-MEDIA:TYPE=AUDIO,NAME="audio",DEFAULT=YES,AUTOSELECT=YES,GROUP-ID="'+f.itag.toString()+'",URI="'+f.url+'"')}d=0;for(e=a.j.length;d<e;++d){var h=a.j[d],f=c[h.audioItag];b.push("#EXT-X-STREAM-INF:BANDWIDTH="+(h.bitrate+f.bitrate)+',CODECS="'+(h.An+","+f.An)+'",RESOLUTION='+(h.width+"x"+h.height)+',AUDIO="'+
f.itag.toString()+'",CLOSED-CAPTIONS=NONE');b.push(h.url)}a=b.join("\n");this.j=new Ww("data:application/x-mpegurl;charset=utf-8,"+encodeURIComponent(a))}return this.j};function Ox(a,b){this.uc=a;this.j=b}B(Ox,ox);function Px(a,b,c,d,e,f,h){var k=new ks;c in As||(c="small");e&&f?(f=parseInt(f,10),e=parseInt(e,10)):(f=As[c],e=Math.round(16*f/9));c=new Cs(e,f,0,null,void 0,c,h);b=unescape(b.replace(/&quot;/g,'"'));return new Ox(new ts(d,b,k,c),a)}function Qx(a){var b=[];E(a,function(a){a.url&&b.push(Px(a.url,a.type,"medium","0"))});return b}
function Rx(a,b){for(var c=[],d=0;d<b.length;d++){var e=b[d];if(e.sig||e.s){var f=e.sig||hs(e.s);e.url=mk(e.url,{signature:f})}e.url&&c.push(Px(e.url,e.type,e.quality,e.itag,e.width,e.height,!!e.isFastLoad))}return zx(a.F,c)}Ox.prototype.o=function(){return new Ww(this.j)};function Sx(a){Mk.call(this);this.Dd=new N(0,0);this.Sa=this.X=this.fa=!1;this.Sb="";this.Lb=this.ub=!1;this.Xa={};this.captionTracks=[];this.za=[];this.vb=0;this.captionTranslationLanguages=[];this.Ca=!1;this.T=new nv("und",new ys("Default","und",!0));this.Ea=0;this.Cd=this.ad=!1;this.L=null;this.Bd=new oe(this.sq,5E3,this);I(this,this.Bd);this.H=[];this.B={};this.keywords={};this.C={};Tx(this,a)}B(Sx,Mk);Sx.G=/\/img\/watermark\/youtube_(hd_)?watermark(-vfl\S{6})?.png$/;Sx.o=1;Sx.C=-21;Sx.D=18E3;
Sx.A="ypc_buy_url ypc_full_video_message ypc_item_thumbnail ypc_item_title ypc_item_url ypc_module ypc_offer_button_text ypc_offer_description ypc_offer_headline ypc_offer_id ypc_offer_type ypc_overlay_timeout ypc_preview ypc_signin_message ypc_vid".split(" ");Sx.F="author cc_asr cc_load_policy iv_load_policy iv_new_window keywords oauth_token requires_purchase rvs sentiment subscribed title ttsurl ypc_buy_url ypc_full_video_length ypc_item_thumbnail ypc_item_title ypc_item_url ypc_offer_button_text ypc_offer_description ypc_offer_headline ypc_offer_id ypc_preview ypc_price_string ypc_video_rental_bar_text".split(" ");
Sx.j={iurl:"default.jpg",iurlmq:"mqdefault.jpg",iurlhq:"hqdefault.jpg",iurlsd:"sddefault.jpg",iurlmaxres:"maxresdefault.jpg"};Sx.B=["www.youtube.com","manifest.googlevideo.com"];g=Sx.prototype;g.adModule=!1;g.adaptiveFormats="";g.lm=null;g.allowEmbed=!0;g.Kd=!1;g.af="";g.kn=!1;g.Hh=!1;g.mn=Sx.o;g.mj=null;g.watchAjaxToken=null;g.author="";g.kj=0;g.Oh=!1;g.Cn=!1;g.Ph="";g.Qh="";g.clientPlaybackNonce="";g.contentCheckOk=!1;g.Oe=0;g.ik=!1;g.enableCardio=!1;g.enableCardioBeforePlayback=!1;g.ef=0;
g.Vd=!1;g.co=!1;g.lj=0;g.fh=0;g.Uk=!1;g.Fg=!1;g.Vk=!1;g.Fo=!1;g.Wk=!1;g.isListed=!1;g.zf=!1;g.Fa=!1;g.isLiveDefaultBroadcast=!1;g.isMdxPlayback=!1;g.isPharma=!1;g.$k=!1;g.Wf=!1;g.Jo=!1;g.al=!1;g.liveChunkReadahead=3;g.liveStartWalltime=0;g.lengthSeconds=0;g.nm=0;g.paygated=!1;g.profilePicture="";g.racyCheckOk=!1;g.Ld=1;g.Tg=rv;g.ze=!1;g.startSeconds=0;g.Vi=null;g.sentiment=2;g.spacecastModule=!1;g.Yg=rv;g.Qf=null;g.title="";g.Sf="";g.hlsFormats="";g.gj=null;g.Yl="vvt";g.requiresPurchase=!1;
g.clipStart=0;g.clipEnd=Infinity;
function Ux(a,b){var c=b||{};c.iv_invideo_url&&(a.af=Yq(c.iv_invideo_url));c.iv_ads_only&&(a.kn="1"==c.iv_ads_only);c.cta_conversion_urls&&(a.fb=c.cta_conversion_urls);a.isPharma=Sv(a.isPharma,c.is_pharma);a.author=Vv(a.author,c.author);a.Oh=Sv(a.Oh,c.cc_asr);var d=c.ttsurl;Iq.test(d)?a.Ph=d:d&&(d=Xq(d),Iq.test(d)&&(a.Ph=d));c.caption_tracks&&c.caption_audio_tracks&&(Vx(a,c.caption_tracks),a.za=kk(c.caption_audio_tracks),c.default_audio_track_index&&(a.vb=parseInt(c.default_audio_track_index,10)||
0),c.caption_translation_languages&&Wx(a,c.caption_translation_languages));a.Ca=Sv(a.Ca,c.cc_contribute);a.clientPlaybackNonce=Vv(a.clientPlaybackNonce,c.cpn);a.subscribed=Vv(a.subscribed,c.subscribed);a.sentiment=Tv(a.sentiment,c.sentiment,Pw);a.title=Vv(a.title,c.title);a.ypcPreview=Vv(a.ypcPreview,c.ypc_preview);a.ypcOrigin=Vv(a.ypcOrigin,c.ypc_origin);a.paygated=Sv(a.paygated,c.paygated);a.requiresPurchase=Sv(a.requiresPurchase,c.requires_purchase);c.keywords&&(a.keywords=Xx(c.keywords));c.rvs&&
(a.F=kk(c.rvs));a.contentCheckOk=Sv(a.contentCheckOk,"1"==c.cco);a.racyCheckOk=Sv(a.racyCheckOk,"1"==c.rco);a.oauthToken=Vv(a.oauthToken,c.oauth_token);a.visitorData=Vv(a.visitorData,c.visitor_data);c.session_data&&(a.Z=hk(c.session_data,"&"));c.endscreen_autoplay_session_data&&(a.Rb=hk(c.endscreen_autoplay_session_data,"&"));a.Wa=Vv(a.Wa,c.tv_list);a.J=Tv(a.J,c.beyond_config,Ow);E(Sx.F,function(a){a in c&&(this.B[a]=c[a])},a)}
function Tx(a,b){var c=b||{};a.Kd="1"!=c.hlsdvr?!1:Bx()?!0:Ki&&5>Jw?!1:!0;a.oe=c.ad_query_id;a.pe=c.agcid;a.Hh="1"==c.infringe||"1"==c.muted;a.ob=c.authkey;a.Bb=c.authuser;a.clientPlaybackNonce||(a.clientPlaybackNonce=c.cpn||Qv());a.Ch=A();a.ik=Sv(a.ik,c.cenchd);a.enableCardio=Sv(a.enableCardio,c.enable_cardio);a.enableCardioBeforePlayback=Sv(a.enableCardioBeforePlayback,c.enable_cardio_before_playback);a.ef=Uv(a.ef,c.end||c.endSeconds);a.Da=Vv(a.Da,c.itct);a.Wk=Sv(a.Wk,c.noiba);a.zf="1"==c.livemonitor;
a.Fa="1"==c.live_playback||!!c.fresca_preroll;a.isLiveDefaultBroadcast="1"==c.live_default_broadcast;a.isMdxPlayback=Sv(a.isMdxPlayback,c.mdx);a.$k=Sv(a.$k,c.reload);a.al=Sv(a.al,c.utpsa);a.wb=c.cyc;for(var d in Sx.j){var e=c[d+"_webp"]||c[d];Lq.test(e)&&(a.Xa[Sx.j[d]]=e)}a.K=Vv(a.K,c.vvt);a.We=c.osig;a.Xc=c.ptchn;a.Yc=c.oid;a.W=c.ptk;a.Zc=c.pltype;a.playbackId=c.plid;a.eventId=c.eventid;a.eventId&&gb(/^[A-Za-z0-9_-]*=*/g.test(a.eventId));a.osid=c.osid;a.Dh=c.vm;a.rh=c.of;a.playlistId=Vv(a.playlistId,
c.list);a.$c=c.pyv_view_beacon_url;a.Ye=c.pyv_quartile25_beacon_url;a.Ze=c.pyv_quartile50_beacon_url;a.$e=c.pyv_quartile75_beacon_url;a.Xe=c.pyv_quartile100_beacon_url;c.remarketing_url&&(a.remarketingUrl=c.remarketing_url);c.ppv_remarketing_url&&(a.ppvRemarketingUrl=c.ppv_remarketing_url);a.Hd=c.sdetail;!a.na&&c.session_data&&(a.na=hk(c.session_data,"&").feature);a.isFling=1==Uv(a.isFling?1:0,c.is_fling);a.vnd=Uv(a.vnd,c.vnd);a.aa=Vv(a.aa,c.ctrl);a.ca=Vv(a.ca,c.ytr);a.ga=c.ytrcc;a.Tg=Yv(a.Tg,c.vq);
a.Yg=Yv(a.Yg,c.suggestedQuality);a.Ta=c.approx_threed_layout||0;a.Jd=Sv(a.Jd,c.ssrt);a.videoId=c.docid||c.video_id||c.videoId||c.id||a.videoId;a.vssCredentialsToken=Vv(a.vssCredentialsToken,c.vss_credentials_token);a.Yl=Vv(a.Yl,c.vss_credentials_token_type);Yx(a,c.watermark);a.ypcGid=Vv(a.ypcGid,c.ypc_gid);a.heartbeatToken=Vv(a.heartbeatToken,c.heartbeat_token);a.heartbeatInterval=Uv(a.heartbeatInterval,c.heartbeat_interval);a.heartbeatRetries=Uv(a.heartbeatRetries,c.heartbeat_retries);a.heartbeatSoftFail=
Sv(a.heartbeatSoftFail,c.heartbeat_soft_fail);if(c.ad3_module||c.ad_module)"1"==c.allow_html5_ads?(a.adModule=!0,"1"==c.ad_preroll&&a.H.push("ad")):"1"!=c.supported_without_ads&&(a.co=!0);c.adaptive_fmts&&(a.adaptiveFormats=c.adaptive_fmts);void 0!=c.atc&&(a.ea=c.atc);c.license_info&&(a.lm=Zx(c.license_info));c.allow_embed&&(a.allowEmbed="1"==c.allow_embed);c.autonav&&(a.Uk="1"==c.autonav);c.autoplay&&(a.Fg="1"==c.autoplay);c.iv_load_policy&&(a.wa=Tv(a.wa,c.iv_load_policy,yv));c.cc_lang_pref&&(a.Fd=
Vv(c.cc_lang_pref,a.Fd));c.cc_load_policy&&(a.Gd=Tv(a.Gd,c.cc_load_policy,yv));c.channel_path&&(a.Qh=Vv(c.channel_path,a.Qh));"0"==c.dash&&(a.Cn=!0);c.dashmpd&&(a.G=uh(c.dashmpd,{cpn:a.clientPlaybackNonce}),d=/\/s\/([0-9A-F.]+)/,e=d.exec(a.G))&&(e=hs(e[1]),a.G=a.G.replace(d,"/signature/"+e));c.delay&&(a.Oe=bb(c.delay));void 0!=c.end&&(a.clipEnd=c.end);c.fair_play_cert&&window.atob&&(a.fairPlayCert=atob(c.fair_play_cert));c.featured&&(a.Fo="1"==c.featured);c.fmt_list&&(a.fmtList=c.fmt_list);c.fresca_preroll&&
a.H.push("fresca");c.idpj&&(a.lj=bb(c.idpj));c.ismb&&(a.fh=bb(c.ismb));c.is_episodic&&(a.Vk="1"==c.is_episodic);c.is_listed&&(a.isListed=Sv(a.isListed,c.is_listed));c.url_encoded_fmt_stream_map&&(a.Sf=c.url_encoded_fmt_stream_map);c.hls_formats&&(a.hlsFormats=c.hls_formats);c.hlsvp&&(a.hlsvp=c.hlsvp);c.length_seconds&&(a.lengthSeconds=bb(c.length_seconds));if(c.live_chunk_readahead||c.hls_live_chunk_readahead)a.liveChunkReadahead=Uv(a.liveChunkReadahead,c.live_chunk_readahead||c.hls_live_chunk_readahead);
c.live_start_walltime&&(a.liveStartWalltime=bb(c.live_start_walltime));c.ldpj&&(a.nm=bb(c.ldpj));c.loudness&&(a.perceptualLoudnessDb=c.loudness,a.mn=a.perceptualLoudnessDb?Math.pow(10,Math.min(Sx.C-a.perceptualLoudnessDb,0)/20):Sx.o);c.partnerid&&(a.S=bb(c.partnerid));c.probe_url&&(a.probeUrl=Yq(uh(c.probe_url,{cpn:a.clientPlaybackNonce})));c.profile_picture&&(a.profilePicture=Vv(c.profile_picture,a.profilePicture));c.pyv_billable_url&&Oq.test(c.pyv_billable_url)&&(a.ha=c.pyv_billable_url);c.pyv_conv_url&&
Oq.test(c.pyv_conv_url)&&(a.ia=c.pyv_conv_url);c.video_masthead_ad_quartile_urls&&(d=c.video_masthead_ad_quartile_urls,a.La=d.quartile_0_url,a.qc=d.quartile_25_url,a.sc=d.quartile_50_url,a.Wc=d.quartile_75_url,a.Jc=d.quartile_100_url);"1"==c.spacecast_module&&(a.H.push("spacecast"),a.spacecastModule=!0);0<a.startSeconds||(a.startSeconds=Uv(a.startSeconds,c.start||c.startSeconds));void 0==c.start||"1"==c.resume||a.Fa||(a.clipStart=c.start);c.two_stage_token&&(a.mj=c.two_stage_token);c.url_encoded_third_party_media&&
(a.Qf=kk(c.url_encoded_third_party_media));c.watch_ajax_token&&(a.watchAjaxToken=c.watch_ajax_token);c.ypc_module&&a.H.push("ypc");c.ypc_clickwrap_module&&a.H.push("ypc_clickwrap");a.Bh=Vv(a.Bh,c.ucid);E("baseUrl uid oeid ieid ppe engaged subscribed".split(" "),function(a){c[a]&&(this.C[a]=c[a])},a);a.C.focEnabled=Sv(a.C.focEnabled,c.focEnabled);a.C.rmktEnabled=Sv(a.C.rmktEnabled,c.rmktEnabled);a.B=c;Ux(a,c);$x(a);c.adpings&&(a.Ed=c.adpings?jk(c.adpings):null);c.feature&&(a.Id=c.feature);c.referrer&&
(a.referrer=c.referrer);c.q&&(a.searchQuery=c.q)}function ay(a){return A()>a.Ch+1E3*Sx.D}function by(a){return!(!a.A||!a.A.videoInfos.length)}g.nx=function(a){this.L=a;cy(this)};function $x(a){dy(a)||(a.adaptiveFormats?(a.j=nu(ey(a,a.adaptiveFormats),a.lm,a.lengthSeconds),mu(a.j)&&(a.X=!0)):a.G&&(a.fa=!0))}function dy(a){return!Bx()||a.Cn?!0:!1}g.Ny=function(a){this.isDisposed()||(this.j=a,this.Fa?this.j.subscribe("refresh",this.op,this):this.j.isLive=!1,ww("mrc"),mu(this.j)&&(this.X=!0),cy(this))};
g.My=function(a){this.isDisposed()||(this.Vd=!1,this.O("dataloaderror",new Qw("manifest.net.retryexhausted",!0,{backend:"manifest",rc:a.status})))};g.op=function(){this.j.isLive||this.j.unsubscribe("refresh",this.op,this);var a=Eb(this.j.o.B,this.Ea);0<a.length&&(this.O("cuepointupdated",a),this.Ea+=a.length)};function cy(a){a.isDisposed()||(a.Vd=!1,a.O("dataloaded",a.B))}
function fy(a,b){if(!a.isDisposed()){a.A=null;a.Gf=null;a.M=null;var c=dy(a)||b.Hg;if(!c&&a.spacecastAdaptiveFormats)a.j=nu(ey(a,a.spacecastAdaptiveFormats),a.lm,a.lengthSeconds),a.A=Fx(b.F,a.j,a.L,!0);else if(a.spacecastFormatMap){var d=ey(a,a.spacecastFormatMap);a.M=Rx(b,d);a.A=new xv(F(a.M,function(a){return a.uc}))}if(a.A){var e,f=0;F(a.A.videoInfos,function(a){!e&&a.video.j&&f<a.video.height&&(e=a.video.quality,f=a.video.height)});e&&(d=pv(e,e,!0),a.Tg=d,a.Yg=d)}a.A||c||!a.j||(b.J||xu(a.j,a.Fa),
a.A=Fx(b.F,a.j,a.L));a.A||(a.M=gy(a,b),a.M.length&&(a.A=new xv(F(a.M,function(a){return a.uc}))));hy(a)}}
function gy(a,b){if(a.hlsFormats){var c=ey(a,a.hlsFormats),d;d=a.fh;if(Eu||Ku()){for(var e={},f=0,h=c.length;f<h;++f){var k;k=c[f];var l=k.type.match(/codecs="([^"]*)"/);k=new Lx(k.itag,k.url,l?l[1]:"",+k.width,+k.height,+k.fps,+k.bitrate,k.audio_itag);e[k.itag]=k}if(e){var c=[],f=[],h=[],n;for(n in e)if(k=e[n],k.width){if(l=e[k.audioItag])c.push(k),h.push(Nx([l],[k],k.itag,k.width,k.height,k.fps))}else f.push(k);h.push(Nx(f,c,"93",0,0,0,"auto",d));d=zx(b.F,h)}else d=[]}else d=[];if(d.length)return d}if(a.Qf&&
a.Jo)return d=Qx(a.Qf),zx(b.F,d);d=ey(a,a.Sf,a.fmtList);a.hlsvp&&(e=a.hlsvp,n=a.fh,c={cpn:a.clientPlaybackNonce},-1==e.indexOf("/ibw/")&&(c.ibw=n?String(n):"1369843"),e={url:uh(e,c),type:"application/x-mpegURL",quality:"auto",itag:"93"},d.push(e));return Rx(b,d)}function iy(a){return a.o&&a.o.A||null}g.Oc=function(a){return w(this.keywords[a])?this.keywords[a]:null};
function jy(a){a.gj||(a.B.storyboard_spec?a.gj=new Lv(a.B.storyboard_spec,a.lengthSeconds):a.B.live_storyboard_spec&&a.j&&(a.gj=new Nv(a.B.live_storyboard_spec,a.j)));return a.gj}function ky(a){var b=jy(a);!a.Vi&&b&&(a.Vi=new Dv(b),I(a,a.Vi));return a.Vi}function ly(a){return a.j&&!isNaN(vu(a.j))?vu(a.j):0}function my(a){return!a.isDisposed()&&!(!a.videoId&&!a.Qf)}function ny(a){return!!(a.j||a.Sf||a.Qf||a.spacecastFormatMap||a.spacecastAdaptiveFormats||a.hlsvp)}
function oy(a){var b=tb(a.H,"ypc");a.ypcPreview&&(b=!1);return my(a)&&!a.Vd&&!a.fa&&!a.X&&(ny(a)||tb(a.H,"fresca")||b)}g.sq=function(){var a={format:"RAW",method:"GET",context:this,kb:this.$y,onError:this.tp,withCredentials:this.ad};this.Cd&&this.visitorData&&(a.headers={"X-Goog-Visitor-Id":this.visitorData});wk(this.Sb,a);ww("vir")};
g.xc=function(a,b){if(30==this.S){var c=this.Xa["default.jpg"];return c?c:this.videoId?uh("//docs.google.com/vt",{id:this.videoId,authuser:this.Bb,authkey:this.ob}):"//docs.google.com/images/doclist/cleardot.gif"}b||(b="hqdefault.jpg");return(c=this.Xa[b])||a.B||"sddefault.jpg"==b||"maxresdefault.jpg"==b?c:py(a,this.videoId,b)};
g.$y=function(a){if(!this.isDisposed()){var b=a.responseText;if(b){this.Vd=!1;var c=jk(b);"fail"==c.status?this.O("onStatusFail",c):(ww("virc"),E(Sx.A,function(a){a in this.B&&(c[a]=this.B[a])},this),Tx(this,c),cy(this))}else this.tp(a)}};
g.tp=function(a){if(!this.isDisposed()){var b="manifest.net",c=!0,d={backend:"gvi",rc:a.status};this.ub&&(this.Lb?b="manifest.net.retryexhausted":(this.Lb=!0,c=!1,b=a.status?"manifest.net.badstatus":"manifest.net.connect",this.Bd.start()));this.O("dataloaderror",new Qw(b,c,d))}};
function ey(a,b,c){b=kk(b);var d={};c&&E(c.split(","),function(a){(a=a.match(/^([0-9]+)\/([0-9]+)x([0-9]+)(\/|$)/))&&(d[a[1]]={width:a[2],height:a[3]})});E(b,function(a){a.url&&(a.url=uh(a.url,{cpn:this.clientPlaybackNonce}));var b=d[a.itag];b&&(a.width=b.width,a.height=b.height)},a);return b}function Xx(a){var b={};E(a.split(","),function(a){var d=a.split("=");2==d.length?b[d[0]]=d[1]:b[a]=!0});return b}
function Yx(a,b){if(b){var c=b.split(",");2<=c.length&&(a.Pa=c[1],Lq.test(a.Pa)&&-1==a.Pa.search(Sx.G)||(a.Pa=""))}}function Zx(a){a=kk(a);var b={};E(a,function(a){var d=a.family;a=a.url;d&&a&&(b[d]=a)});return b}function Vx(a,b){for(var c=kk(b),d=0;d<c.length;d++){var e=c[d],f=e.u;Iq.test(f)&&(f={is_translateable:e.t,languageCode:e.lc,languageName:e.n,url:f,vss_id:e.v,kind:e.k},"asr"!=e.k&&(e=lv,f.format=iv?e.Ws:e.Vs),a.captionTracks.push(new hv(f)))}}
function Wx(a,b){for(var c=kk(b),d=0;d<c.length;d++){var e=c[d];a.captionTranslationLanguages.push(new gv({languageCode:e.lc,languageName:e.n}))}}
function hy(a){for(var b=a.A?a.A.audioTracks:[],b=b.concat(a.T),c=0;c<a.za.length;c++)for(var d=a.za[c],e=0;e<b.length;e++){var f=b[e],h=f.Jb.id==d.aid;if(f==a.T&&c==a.vb||h){if(d.i)for(var h=d.i.split(","),k=0;k<h.length;k++)f.captionTracks[k]=a.captionTracks[parseInt(h[k],10)];d.d&&(f.gk=a.captionTracks[parseInt(d.d,10)]);d.f&&(f.sg=a.captionTracks[parseInt(d.f,10)]);f.tn=parseInt(d.v,10)}}}function qy(a,b){return!!a.B[b]}function ry(a){return a.Fa&&!a.Kd}function sy(a){return a.Fa&&a.Kd}g.Pe=function(){return null};
g.qb=function(){return this};g.vk=function(a){return a.getVideoUrl(this.videoId)};function ty(a){if(a.Ta||a.Oc["3D"])return!0;a=a.Oc("yt3d:enable");return"true"==a||"LR"==a||"RL"==a};function uy(a){Mk.call(this);this.startSeconds=0;this.K=!1;this.j=0;this.title="";this.A=0;this.o=[];this.H=this.D=!1;this.Z=this.Rb=this.F=null;this.views=0;this.S=0!=a.fetch;this.B=[];this.j=Math.max(0,a.index||0);this.G=!!a.loop;this.startSeconds=a.startSeconds||0;this.T="1"==a.mob;this.title=a.playlist_title||"";this.description=a.playlist_description||"";this.author=a.author||a.playlist_author||"";this.M={};a.video_id&&(this.o[this.j]=a);a.api&&("string"==typeof a.api&&16==a.api.length?a.list=
"PL"+a.api:a.playlist=a.api);this.J=0;if(a.list)switch(a.listType){case "user_uploads":vy(this,a.list);break;case "user_favorites":wy(this,a.list);break;case "search":yy(this,a.list);break;default:a.playlist_length&&(this.A=a.playlist_length),this.C=cs(a.list),a.video?(this.o=a.video.slice(0),this.D=!0):zy(this)}else if(a.playlist){var b=a.playlist.toString().split(",");0<this.j&&(this.o=[]);E(b,function(a){a&&this.o.push({video_id:a})},this);this.A=this.o.length;b=F(this.o,function(a){return a.video_id});
Ay(this,"/list_ajax?style=json&action_get_templist=1",{video_ids:b.join(",")});this.D=!0}this.setShuffle(!!a.shuffle);a.suggestedQuality&&(this.quality=a.suggestedQuality);for(var c in Sx.j)b="playlist_"+c,b=a[b+"_webp"]||a[b],Lq.test(b)&&(this.M[Sx.j[c]]=b);this.L=a.thumbnail_ids?a.thumbnail_ids.split(","):[]}B(uy,Mk);function By(a){return!!(a.playlist||a.list||a.api)}g=uy.prototype;g.hasNext=function(a){return this.G||!!a||this.j+1<this.A};
function Cy(a,b){var c=a.j+1;c>=a.A&&(c=a.G||b?0:-1);return c}function Dy(a,b){var c=a.j-1;0>c&&(c=a.G||b?a.A-1:-1);return c}function Ey(a,b){var c=Cy(a,b);if(-1==c)return null;Fy(a,c);return a.qb(c)}function Gy(a,b){var c=Dy(a,b);if(-1==c)return null;Fy(a,c);return a.qb(a.j)}g.qb=function(a){a=void 0!=a?a:this.j;a=this.o&&a in this.o?this.o[this.B[a]]:null;var b=null;a&&(b=new Sx(a),b.startSeconds=this.startSeconds||b.clipStart||0,this.C&&(b.playlistId=this.C.toString()));return b};
g.setShuffle=function(a){this.K=a;a=this.B&&null!=this.B[this.j]?this.B[this.j]:this.j;this.B=[];for(var b=0;b<this.o.length;b++)this.B.push(b);this.j=a;this.J++;if(this.K){a=this.B[this.j];for(b=1;b<this.B.length;b++){var c=Math.floor(Math.random()*(b+1)),d=this.B[b];this.B[b]=this.B[c];this.B[c]=d}for(b=0;b<this.B.length;b++)this.B[b]==a&&(this.j=b);this.J++}this.O("shuffle")};
g.xc=function(a,b){b=b||"hqdefault.jpg";var c=this.M[b];if(c||a.B||"sddefault.jpg"==b||"maxresdefault.jpg"==b)return c;if(this.L.length)return py(a,this.L[0],b)};function Fy(a,b){a.j=De(b,0,a.A-1);a.startSeconds=0}function vy(a,b){a.H||(a.C=new bs("UU","PLAYER_"+b),Ay(a,"/list_ajax?style=json&action_get_user_uploads_by_user=1",{username:b}))}function wy(a,b){a.H||(a.C=new bs("FL","PLAYER_"+b),Ay(a,"/list_ajax?style=json&action_get_favorited_by_user=1",{username:b}))}
function yy(a,b){if(!a.H){a.C=new bs("SR",b);var c={search_query:b};a.T&&(c.mob="1");Ay(a,"/search_ajax?style=json&embeddable=1",c)}}function zy(a){if(!a.H){var b={list:a.C},c=a.qb();c&&c.videoId&&(b.v=c.videoId);Ay(a,"/list_ajax?style=json&action_get_list=1",b)}}function Ay(a,b,c){a.S&&wk(uh(b,c),{format:"JSON",kb:function(a,b){Hy(this,b)},onError:function(){this.O("error")},context:a})}
function Hy(a,b){if(b.video&&b.video.length){a.title=b.title;a.description=b.description;a.views=b.views;a.author=b.author;b.loop&&(a.G=b.loop);var c=a.qb();a.o=[];E(b.video,function(a){a&&(a.video_id=a.encrypted_id,this.o.push(a))},a);a.A=a.o.length;b.index?a.j=b.index:Iy(a,c);a.setShuffle(!1);a.H=!1;a.D=!0;a.J++;a.F&&a.F()}}function Iy(a,b){if(b){var c=b.videoId;if(!a.o[a.j]||a.o[a.j].video_id!=c)for(var d=0;d<a.o.length;d++)if(a.o[d].video_id==c){a.j=d;break}}}
g.Pe=function(){return this.C?this.C.toString():null};g.vk=function(a){return a.getVideoUrl(this.qb().videoId,this.Pe())};g.R=function(){this.F=null;Vb(this.o);uy.N.R.call(this)};function Jy(a){var b=Math.abs(Math.floor(a)),c=Math.floor(b/86400),d=Math.floor(b%86400/3600),e=Math.floor(b%3600/60),b=Math.floor(b%60),f="";0<c&&(f+=c+":",10>d&&(f+="0"));if(0<c||0<d)f+=d+":",10>e&&(f+="0");f+=e+":";10>b&&(f+="0");f+=b;return 0<=a?f:"-"+f}function Ky(a){return(!ga(a.button)||0==a.button)&&!a.shiftKey&&!a.altKey&&!a.metaKey&&!a.ctrlKey};function Ly(a){return By(a)?(a.fetch=0,new uy(a)):new Sx(a)}
function My(a,b,c,d){var e=b.qb();M(a.element,"ytp-suggestion-set",!!e.videoId);var f=b.Pe();d=b.xc(c,d?d:"mqdefault.jpg");var h=b instanceof Sx?Jy(b.lengthSeconds):null,k=!!f,f=k&&"RD"==cs(f).type;c={title:b.title,author:b.author,watch:Q("YTP_WATCH_VIDEO_OR_PLAYLIST",{TITLE:b.title},b.title),duration:h,url:b.vk(c),episodic_title:b.title,is_episodic:e.Vk,is_featured:e.Fo,is_list:k,is_mix:f,background:d?"background-image: url("+d+")":""};b instanceof uy&&(c.playlist_length=b.A,c.episodic_length=b.A,
c.episodic_index=b.j);a.update(c)};function Ny(a){var b=["div","ytp-upnext",{tabindex:27,"aria-label":"{{watch}}"},["div","ytp-thumbnail-overlay-image",{style:"{{background}}"}],["div","ytp-thumbnail-overlay-curtain"],["span","ytp-upnext-top",["span","ytp-upnext-header",Q("YTP_PLAYLIST_UP_NEXT")],["span","ytp-upnext-title","{{title}}"],["span","ytp-upnext-author","{{author}}"]],["a","ytp-upnext-autoplay-icon",{href:"{{url}}"}],["span","ytp-upnext-bottom",["span","ytp-upnext-cancel"],["span","ytp-upnext-paused",Q("YTP_AUTOPLAY_PAUSED_2")]],
["span","ytp-upnext-close"]];R.call(this,b);var c=this.ma["ytp-upnext-cancel"],b=this.ma["ytp-upnext-close"],d=new R(["button",["ytp-upnext-cancel-button","ytp-button"],{"aria-label":Q("YTP_AUTOPLAY_CANCEL"),tabindex:28},Q("YTP_CANCEL")]);I(this,d);d.P("click",this.Hs,this);d.j(c);c=new R(["button",["ytp-upnext-close-button","ytp-button"]]);I(this,c);c.P("click",this.Hs,this);c.j(b);b=this.ma["ytp-upnext-autoplay-icon"];b.innerHTML='<svg height="100%" version="1.1" viewBox="0 0 98 98" width="100%"><circle class="ytp-svg-autoplay-circle" cx="49" cy="49" fill="#000" fill-opacity="0.8" r="48" /><circle class="ytp-svg-autoplay-ring" cx="-49" cy="49" fill-opacity="0" r="46.5" stroke="#FFFFFF" stroke-dasharray="293" stroke-dashoffset="-293" stroke-width="4" transform="rotate(-90)" /><polygon class="ytp-svg-autoplay-triangle" fill="#fff" points="32,27 72,49 32,71" /></svg>';
this.B=a;this.F=Gf("ytp-svg-autoplay-ring",this.element);this.o=this.C=null;this.D=0;S(this,b,"click",this.rF);this.lp();S(this,a,"autonavvisibility",this.lp)}B(Ny,R);g=Ny.prototype;g.lp=function(){this.yb(Oy(this.B))};function Py(a){a.o||(Gj("a11y-announce",Q("YTP_PLAYLIST_UP_NEXT")+" "+a.C.title),a.D=xj(),a.o=new oe(a.Km,25,a),a.Km());te(a.element,"ytp-upnext-autoplay-paused")}
g.Km=function(){var a=this.B.V().experiments.B,b=Math.min(xj()-this.D,a),a=Math.min(b/a,1);this.F.setAttribute("stroke-dashoffset",-293*(a+1));1<=a?this.select(!0):this.o&&this.o.start()};function Qy(a){Ry(a);a.D=xj();a.Km();K(a.element,"ytp-upnext-autoplay-paused")}function Ry(a){a.o&&(a.o.dispose(),a.o=null)}g.select=function(a){Ry(this);var b=this.C.qb().videoId;Sy(this.B.app,b,a?this.C.Rb:this.C.Z,this.C.Pe())};g.rF=function(a){!Sm(a)&&Ky(a)&&(this.select(),Rm(a))};
g.Hs=function(a){Rm(a);Ty(this.B,"autonavcancel");Uy(this.B.app,!0)};g.R=function(){Ry(this);Ny.N.R.call(this)};function Vy(a,b){R.call(this,["canvas"]);this.element.width=a;this.element.height=b;this.width=a;this.height=b;this.context=this.element.getContext("2d");this.o=0;this.H=null}B(Vy,R);Vy.prototype.J=function(a,b){tj(this.o);this.context&&(this.o=Dr(x(this.J,this,a,b),b),a.call(this,new Date-this.H))};Vy.prototype.R=function(){tj(this.o);this.context=null;Vy.N.R.call(this)};function Wy(a){R.call(this,["a","videowall-still",{tabIndex:27,href:"{{url}}","aria-label":"{{watch}}","data-is-episodic":"{{is_episodic}}","data-is-featured":"{{is_featured}}","data-is-list":"{{is_list}}","data-is-mix":"{{is_mix}}"},["div","videowall-still-image",{style:"{{background}}"}],["span","videowall-still-featured-label",Q("YTP_FEATURED")],["span","videowall-still-info",["span","videowall-still-info-bg",["span","videowall-still-info-content",["span","videowall-still-info-title","{{title}}"],
["span","videowall-still-info-author","{{author}}"],["span","videowall-still-info-duration","{{duration}}"]]]],["div",["videowall-still-listlabel-episodic","videowall-still-listlabel"],["div","videowall-still-listlabel-episodic-heading",Q("YTP_PLAYLIST_UP_NEXT")],["span","videowall-still-listlabel-episodic-icon"],["div","videowall-still-listlabel-episodic-info",["span","videowall-still-listlabel-episodic-index",["span","","{{episodic_index}}"]," / ",["span","","{{episodic_length}}"]],["span","","{{episodic_title}}"]]],
["span",["videowall-still-listlabel-regular","videowall-still-listlabel"],["span","videowall-still-listlabel-icon"],Q("YTP_PLAYLIST"),["span","videowall-still-listlabel-length"," (",["span","","{{playlist_length}}"],")"]],["span",["videowall-still-listlabel-mix","videowall-still-listlabel"],["span","videowall-still-listlabel-mix-icon"],Q("YTP_MIX"),["span","videowall-still-listlabel-length"," (50+)"]]]);this.B=a;this.o=null;this.P("click",this.C);this.P("keypress",this.D)}B(Wy,R);
Wy.prototype.Jf=function(){var a=this.o.qb().videoId;Sy(this.B.app,a,this.o.Z,this.o.Pe())};Wy.prototype.C=function(a){!Sm(a)&&Ky(a)&&(this.Jf(),Rm(a))};Wy.prototype.D=function(a){switch(a.keyCode){case 13:case 32:Sm(a)||(this.Jf(),Rm(a))}};function Xy(a,b,c){Gr.call(this,a,b,"videowall-endscreen");this.T=c;this.D=[];this.F=this.B=null;this.J=this.M=!1;this.K=new oe(pa(K,this.element,"ytp-show-tiles"),0);I(this,this.K);this.L=new wr(["div","ytp-endscreen-content"]);I(this,this.L);this.L.j(this.element);this.C=new Ny(a);I(this,this.L);this.C.j(a.sa());this.da();this.P("transitionend",this.Se)}B(Xy,Gr);Xy.D=96;Xy.C=54;Xy.o=1;Xy.j=2;g=Xy.prototype;
g.create=function(){Xy.N.create.call(this);var a=this.o.getVideoData();a&&(this.B=a.F);this.Se();this.G.subscribe("onResize",this.Se,this);this.G.subscribe("videodatachange",this.W,this);this.G.subscribe("autonavchange",this.X,this);this.G.subscribe("autonavcancel",this.Z,this)};g.destroy=function(){this.G.unsubscribe("onResize",this.Se,this);this.G.unsubscribe("videodatachange",this.W,this);Vb(this.D);this.B=[];this.D=[];Xy.N.destroy.call(this);te(this.element,"ytp-show-tiles");this.K.stop()};
g.Ih=function(){return 1!=this.o.getVideoData().Ld};function Yy(a){return Zy(a.o.V(),a.o.getVideoData(),a.o.bc())&&a.Ih()&&!a.F}
g.Ba=function(){Xy.N.Ba.call(this);this.o.V().isMobile?pe(this.K):this.K.start();(this.J||this.F&&this.F!=this.o.getVideoData().clientPlaybackNonce)&&Uy(this.o.app,!1);var a=Zy(this.o.V(),this.o.getVideoData(),this.o.bc()),b=!this.F&&this.Ih()&&a;a&&this.o.V().experiments.xa("ui_logging")&&this.T.log({cancelButtonShow:b?"1":"0",state:this.Ih()?"enabled":"disabled"});b?2==this.o.getVideoData().Ld?Py(this.C):3==this.o.getVideoData().Ld&&Qy(this.C):Uy(this.o.app,!0);$y(this)};
g.da=function(){Xy.N.da.call(this);Qy(this.C);$y(this)};
g.Se=function(a){if((!a||Nm(a)==this.element)&&this.B&&this.B.length){var b=Jg(this.element),c=Xy.D,d=Xy.C,e=b.width/b.height,f=c/d;az(this.o.V())&&!this.o.Ja()&&(c*=.9,d*=.9);for(var h=a=0,k=Math.max(b.width/c,2),l=Math.max(b.height/d,2),n=this.B.length,r=Math.pow(Xy.j,2),u=n*r,z=bz(this,0,l,k),y=bz(this,1,l,k),u=u+(Math.pow(z,2)-r),u=u+(Math.pow(y,2)-r);0<u&&(a<k||h<l);){var V=a/Xy.j,va=h/Xy.j,L=a<=k-Xy.j&&u>=va*r,wa=h<=l-Xy.j&&u>=V*r;if(V/va*f>e&&wa)u-=V*r,h+=Xy.j;else if(L)u-=va*r,a+=Xy.j;else if(wa)u-=
V*r,h+=Xy.j;else break}f=!1;k=Xy.j+z;u>=3*r&&6>=n*r-u&&(h>=k||a>=k)&&y<=Xy.j&&(f=!0);c*=a;d*=h;n=1;n=c/d<e?b.height/d:b.width/c;n=Math.min(n,Xy.B);c*=n;d*=n;c*=De(b.width/c||1,1,Xy.A);d*=De(b.height/d||1,1,Xy.A);c=Math.floor(Math.min(b.width,c));d=Math.floor(Math.min(b.height,d));b=this.L.element;Gg(b,c,d);og(b,{marginLeft:c/-2+"px",marginTop:d/-2+"px"});e=this.C;n=Ly(this.B[0]);e.C=n;My(e,n,e.B.V(),"hqdefault.jpg");M(this.element,"ytp-endscreen-takeover",Yy(this));$y(this);e=c+Xy.o;c=d+Xy.o;d=0;
n=!1;for(r=0;r<a;r++)for(u=0;u<h;u++)if(k=y>Xy.j&&1<=d&&!n?d+1:d,V=0,f&&r>=a-Xy.j&&u>=h-Xy.j?V=1:0==u%Xy.j&&0==r%Xy.j&&(u<z&&r<z?0==u&&0==r&&(V=z):y>Xy.j&&u>=h-y&&r>=a-y?u==h-y&&r==a-y&&(n=!0,k=1,V=y):V=Xy.j),0!=V){l=this.D[d];l||(l=new Wy(this.o),this.D[d]=l,b.appendChild(l.element));var va=Math.floor(c*u/h),L=Math.floor(e*r/a),wa=Math.floor(c*(u+V)/h)-va-Xy.o,cc=Math.floor(e*(r+V)/a)-L-Xy.o;ug(l.element,L,va);Gg(l.element,cc,wa);og(l.element,"transitionDelay",(u+r)/20+"s");M(l.element,"videowall-still-mini",
1==V);M(l.element,"videowall-still-large",2<V);k=Ly(this.B[k]);l.o=k;My(l,k,l.B.V(),re(l.element,"videowall-still-large")?"hqdefault.jpg":"mqdefault.jpg");d++}for(a=this.D.length-1;a>=d;a--)l=this.D[a],Wf(l.element),Ub(l);this.D.length=d}};Xy.B=1.42;Xy.A=1.21;Xy.prototype.W=function(){var a=this.o.getVideoData().F;this.B!=a&&(this.B=a,this.Se())};
Xy.prototype.X=function(a){1==a?(this.J=!1,this.F=this.o.getVideoData().clientPlaybackNonce,Ry(this.C),this.A&&this.Se()):(this.J=!0,this.A&&Yy(this)&&(2==a?Py(this.C):3==a&&Qy(this.C)))};Xy.prototype.Z=function(a){a?this.X(1):(this.F=null,this.J=!1,this.Se())};function bz(a,b,c,d){return 0==b&&c>=3*Xy.j&&d>=3*Xy.j&&a.B.length&&Ly(a.B[0]).qb().Vk?2*Xy.j:Xy.j}function $y(a){var b=cz(a.T);b!=a.M&&(a.M=b,a.o.app.Oa("autonavvisibility"))};function dz(a){lr.call(this,a);wj({});this.oa="endscreen";this.H="end";this.o=null;var b=a.V();ez(a)?this.o=new Xy(this.j,this.U,this):b.W?this.o=new Ur(this.j,this.U):this.o=new Gr(this.j,this.U);this.o.j(this.j.sa())}B(dz,lr);function fz(a){var b=a.getVideoData(),b=b&&b.Fa;return gz(a.V())&&1==a.getPresentingPlayerType()&&!b}function hz(a){var b=a.j.getVideoData(),c=!ez(a.j)||!(!b.F||!b.F.length);a.j.V();b=qy(b,"ypc_module");a=iz(a.j.app);return c&&!b&&!a}
function ez(a){a=a.V();return a.sc&&!a.W}function cz(a){return a.o instanceof Xy&&a.o.A&&Yy(a.o)}g=dz.prototype;g.Za=function(a){return fz(a)};g.create=function(){dz.N.create.call(this);jz(this);this.j.getVideoData().subscribe("dataupdated",this.Xp,this)};g.destroy=function(){this.j.getVideoData().unsubscribe("dataupdated",this.Xp,this);mr(this);this.o.H&&this.o.destroy();dz.N.destroy.call(this)};g.load=function(){dz.N.load.call(this);this.o.Ba();this.j.V().W&&.01>Math.random()&&this.log({trailerEndscreenShow:1})};
g.unload=function(){dz.N.unload.call(this);this.o.da()};g.jc=function(a){dz.N.jc.call(this,a);hz(this)&&(this.o.H||this.o.create(),"load"==a.getId()&&this.load())};g.Dc=function(a){"load"==a.getId()&&this.loaded&&this.unload();dz.N.Dc.call(this,a)};g.Xp=function(){mr(this);jz(this)};function jz(a){var b=Math.max(1E3*(a.j.getVideoData().lengthSeconds-10),0),b=new hr(b,0x8000000000000,{id:"preload"}),c=new hr(0x8000000000000,0x8000000000000,{id:"load",priority:6});a.gb([b,c])}
function kz(a){return fz(a)?new dz(a):null};var lz={JF:"YTP_ERROR_ALREADY_PINNED_ON_A_DEVICE",KF:"ERROR_AUTHENTICATION_EXPIRED",LF:"ERROR_AUTHENTICATION_MALFORMED",MF:"ERROR_AUTHENTICATION_MISSING",QF:"ERROR_BAD_REQUEST",VF:"YTP_ERROR_CANNOT_ACTIVATE_RENTAL",dG:"ERROR_CGI_PARAMS_MALFORMED",eG:"ERROR_CGI_PARAMS_MISSING",mG:"YTP_DEVICE_FALLBACK",vG:"YTP_ERROR_LICENSE",BG:"YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK_FLASH",CG:"YTP_ERROR_GEO_FAILURE",OG:"YTP_ERROR_GENERIC_WITHOUT_LINK",PG:"YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK",XG:"YTP_ERROR_INVALID_DRM_MESSAGE",
$G:"LEARN_MORE",vH:"YTP_ERROR_NOT_SIGNED_IN",OH:"YTP_ERROR_PURCHASE_NOT_FOUND",PH:"YTP_ERROR_PURCHASE_REFUNDED",TH:"YTP_ERROR_RENTAL_EXPIRED",ZF:"YTP_ERROR_CAST_SESSION_DEVICE_MISMATCHED",$F:"YTP_ERROR_CAST_SESSION_VIDEO_MISMATCHED",bG:"YTP_ERROR_CAST_TOKEN_FAILED",aG:"YTP_ERROR_CAST_TOKEN_EXPIRED",cG:"YTP_ERROR_CAST_TOKEN_MALFORMED",iI:"YTP_ERROR_SERVER_ERROR",xI:"YTP_ERROR_STOPPED_BY_ANOTHER_PLAYBACK",yI:"YTP_ERROR_STREAMING_DEVICES_QUOTA_PER_24H_EXCEEDED",zI:"YTP_ERROR_STREAMING_NOT_ALLOWED",AI:"YTP_ERROR_STREAMING_UNAVAILABLE",
dI:"YTP_ERROR_RETRYABLE_ERROR",JI:"YTP_ERROR_TOO_MANY_STREAMS_PER_USER",II:"YTP_ERROR_TOO_MANY_STREAMS_PER_ENTITLEMENT",VI:"YTP_ERROR_UNSUPPORTED_DEVICE",WI:"YTP_ERROR_UNUSUAL_ACTIVITY",eJ:"YTP_ERROR_VIDEO_FORBIDDEN",fJ:"YTP_ERROR_VIDEO_NOT_FOUND"},mz={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 nz(a){return(a=mz[a.toString()])?a:"YTP_ERROR_LICENSE"};function oz(){var a=[],b=[];return{start:function(b){return a[b]},end:function(a){return b[a]},length:a.length}}function pz(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 qz(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 rz(a,b){var c=qz(a,b);return 0<=c?a.end(c):NaN}function sz(a){return a&&a.length?a.end(a.length-1):NaN}function tz(a,b){var c=rz(a,b);return 0<=c?c-b:0};function uz(){}var vz=Kw&&4>Jw?.1:0,wz=new uz;g=uz.prototype;g.Ue=null;g.Rj=!1;g.getCurrentTime=function(){return this.currentTime||0};function xz(a){var b=a.duration||0;return Infinity==b?1:b?(0<sz(a.buffered)&&a.duration?rz(a.buffered,a.currentTime):0)/b:0}g.pauseVideo=function(){this.pause()};function $r(a){a.src&&(Eu&&0<a.readyState&&(a.currentTime=Math.max(vz,0)),a.removeAttribute("src"),a.load(),!a.Ue||!a.Ue.j||a.Ue&&a.Ue.equals(null)||(a.Ue&&a.Ue.dispose(),a.Ue=null))}
g.setVolume=function(a,b){this.volume=a/100;this.muted=b};g.mute=function(){this.muted=!0};g.unMute=function(){this.muted=!1};function yz(a,b){a.defaultPlaybackRate=b;a.playbackRate=b}g.ev=function(){this.hasAttribute("controls")&&this.setAttribute("controls","true")};g.gv=function(){this.Rj&&!this.muted&&(this.muted=!0)};function zz(a,b){this.o=a||64;this.j=b||null}
function Az(a,b,c){if(U(a,128))return a;var d=a.o,e=a.j,f=b.target;if(!U(a,64)||"ended"!=b.type&&"pause"!=b.type)if("pause"==b.type&&f.j.ended||"ended"==b.type&&(f.j.ended||1>Math.abs(f.getCurrentTime()-f.j.duration)))0<f.j.networkState&&f.j.src&&(d=14,e=null);else if("pause"==b.type)U(a,256)?(d^=256)||(d=64):U(a,32)||U(a,2)||U(a,4)||(d=4,U(a,1)&&U(a,8)&&(d|=1),e=null);else if("playing"==b.type)d=8,e=null,U(a,32)&&(d|=32);else if("error"==b.type){a:{if(2==f.getErrorCode())b="progressive.net";else if(3==
f.getErrorCode())b="fmt.decode";else if(4==f.getErrorCode())b="fmt.unplayable";else{b=null;break a}b={errorCode:b,message:Q("YTP_ERROR_GENERIC_WITHOUT_LINK"),messageKey:"YTP_ERROR_GENERIC_WITHOUT_LINK"}}b&&(e=b,d|=128)}else if("progress"==b.type)Bz(a)&&Cz(c,f)&&(d|=1);else if("seeked"==b.type)d&=-17;else if("seeking"==b.type)d|=16,0>=Dz(f)&&(d|=1),d&=-3;else if("waiting"==b.type)U(a,2)||(d|=1);else if("timeupdate"==b.type)U(a,16)||U(a,4)||(d=Cz(c,f)?d|1:d&-2),1<f.j.readyState&&0<f.getCurrentTime()&&
(d&=-65);else return a;return Ez(a,d,e)}function Cz(a,b){return a?Fz(a,b.getCurrentTime(),xj(),Dz(b)):!1}function Ez(a,b,c){return b==a.o&&c==a.j||b&128&&!c||b&2&&b&16?a:new zz(b,c)}function Gz(a,b){return Ez(a,a.o|b)}function Hz(a,b){return Ez(a,a.o&~b)}function Iz(a){return Ez(a,(a.o|4)&-9)}function U(a,b){return!!(a.o&b)}zz.prototype.ib=function(){return U(this,8)&&!U(this,64)&&!U(this,2)};function Bz(a){return U(a,8)&&!U(a,2)}function Jz(a){return U(a,64)&&!U(a,8)&&!U(a,4)}
function Kz(a){return U(a,1)&&!U(a,2)}function Lz(a){return U(a,128)?-1:U(a,2)?0:U(a,1)&&!U(a,32)?3:U(a,64)?-1:U(a,8)?1:U(a,4)?2:-1};var Mz=[1,2,3,4,5],Nz={LIFE_CYCLE_CREATED:1,LIFE_CYCLE_READY:2,LIFE_CYCLE_TESTING:4,LIFE_CYCLE_TESTING_STARTING:3,LIFE_CYCLE_LIVE:6,LIFE_CYCLE_LIVE_STARTING:5,LIFE_CYCLE_COMPLETE:8,LIFE_CYCLE_COMPLETE_STARTING:7};function Oz(a,b,c){Mk.call(this);this.D=b;this.j=7500+Math.floor(15E3*Math.random());this.F=c.innertubeApiKey;this.G=JSON.stringify({context:{client:{clientName:c.hx,clientVersion:c.innertubeContextClientVersion,hl:c.jx,gl:c.ix}},videoId:a});this.H="https://"+(c.apiaryHost||"www.googleapis.com")+"/youtubei/"+c.innertubeApiVersion+"/player/live_state";this.o=new oe(x(this.C,this));I(this,this.o);this.C()?this.o.start(this.j):this.o.start(1E4)}B(Oz,Mk);Oz.prototype.B=function(){this.o.isActive()&&pe(this.o)};
Oz.prototype.C=function(){var a={headers:{"Content-Type":"application/json"},yd:{alt:"json",key:this.F},postBody:this.G,format:"JSON",timeout:1E4,kb:x(this.J,this),onError:x(this.A,this),$d:x(this.A,this)};this.D&&(a.headers["X-Goog-Visitor-Id"]=this.D);vk(this.H,a)};Oz.prototype.J=function(a){this.isDisposed()||(200<=a.status&&400>a.status?(a=JSON.parse(a.responseText),this.O("payload",a),this.j=7500+Math.floor(15E3*Math.random()),this.o.start(this.j)):this.A())};
Oz.prototype.A=function(){this.isDisposed()||(this.O("error"),192E4>this.j&&(this.j*=2),this.o.start(this.j))};function Pz(a){var b=window.location;a=uh(a,{})+"";a=a instanceof hf?a:mf(a);b.href=kf(a)}function Qz(a,b){var c=pj("EVENT_ID");c&&(b||(b={}),b.ei||(b.ei=c));if(b){var c=b,d=pj("VALID_SESSION_TEMPDATA_DOMAINS",[]);d.push(lh(window.location.href));var e=lh(a);if(tb(d,e)||!e&&ua(a,"/"))if(d=jh(a),d=hh(null,null,null,null,d[5],d[6],d[7]),e=d.indexOf("#"),d=0>e?d:d.substr(0,e))d=pj("SMALLER_SESSION_TEMPDATA_NAME")?"ST-"+Za(d).toString(36):"s_tempdata-"+Za(d),c=c?sh(c):"",dl(d,c,5)}}
function Rz(a,b){window.open(a,b||Za(a).toString(36))};function Sz(a){var b=!a.V().wa&&3!=a.getPresentingPlayerType();return a.Ja()||b}function Tz(a,b,c){if(!c&&Ky(a))return Rm(a),!0;b.pauseVideo();a=a.currentTarget.getAttribute("href");Qz(a,null);return!1}function Uz(a,b,c){if(az(b.V())&&2!=b.getPresentingPlayerType()){if(Ky(c))return b.Ja()&&Vz(b),Rm(c),!0}else{var d=Ky(c);d&&b.pauseVideo();Qz(a,null);d&&(Rz(a),Rm(c))}return!1}
function Wz(a,b,c){var d='<svg width="100%" height="100%" viewBox="0 0 36 36" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><defs><path id="ytp-'+a+'" d="'+(c&&(Jc||Ic)?c:b)+'">';return d=(c?d+('<animate attributeType="XML" attributeName="d" fill="freeze" from="'+c+'" to="'+b+'" dur="0.2s" keySplines=".4 0 1 1" repeatCount="1"/>'):d+"<animate/>")+('</path></defs><use xlink:href="#ytp-'+a+'" class="ytp-svg-shadow"/><use xlink:href="#ytp-'+a+'" class="ytp-svg-fill"/></svg>')}
;function Xz(a){R.call(this,["a","ytp-fresca-suggested-central-link",{href:"{{link_destination}}"},["div","ytp-fresca-suggested-promo-central",["div","ytp-fresca-suggested-header","{{suggested_header_central}}"],["div","ytp-fresca-suggested-central-image",{style:"{{image_style}}"},["div","ytp-fresca-suggested-image-badge","{{badge_content}}"]],["div","ytp-fresca-suggested-title","{{suggested_title}}"],["div","ytp-fresca-suggested-content","{{suggested_content}}"]]]);this.o=a;this.P("click",this.B,
this)}B(Xz,R);Xz.prototype.B=function(a){if(!Ky(a)||this.o.V().experiments.xa("disable_fresca_video_navigation"))Tz(a,this.o,!0);else{var b=a.currentTarget.getAttribute("href");Sy(this.o.app,b.substring(b.length-11),void 0,void 0);Rm(a)}};function Yz(a){R.call(this,["div","ytp-fresca-suggested-promo-sidebar",["div","ytp-fresca-suggested-sidebar-title","{{suggested_sidebar_title}}"],["button","ytp-fresca-suggested-sidebar-close-button","{{suggested_sidebar_close}}"],["div","ytp-fresca-suggested-sidebar-items","{{sidebar_items}}"]]);this.o=[];this.B=a;this.C=!1}B(Yz,R);
function Zz(a,b){Ar(a,"suggested_sidebar_title",b.o?Q("YTP_FRESCA_SIDEBAR_PROMO_HEADER",{STREAMER_NAME:b.o}):"");var c=a.ma["ytp-fresca-suggested-sidebar-close-button"];c.innerHTML=fi();S(a,c,"click",a.ty);Vb(a.o);a.o=[];E(b.j,function(a,b){if(!(5<=b)&&a){var c=new R(["a","ytp-fresca-suggested-sidebar-link",{href:"{{link_destination}}"},["div","ytp-fresca-suggested-sidebar",["div","ytp-fresca-suggested-image",{style:"{{image_style}}"},["div","ytp-fresca-suggested-image-badge","{{badge_content}}"]],
["div","ytp-fresca-suggested-title","{{suggested_title}}"],["div","ytp-fresca-suggested-content","{{suggested_content}}"]]]),h="background-image:"+$z(a),k=aA(a);c.update({suggested_title:a.Dr,suggested_content:bA(a),badge_content:k,image_style:h,link_destination:a.getVideoUrl()});h=c.ma["ytp-fresca-suggested-image-badge"];M(h,"ytp-fresca-suggested-image-badge-live",a.isLive());h.style.display=k?"":"none";c.P("click",this.Cx,this);this.o.push(c)}},a);Ar(a,"sidebar_items",a.o)}g=Yz.prototype;
g.Cx=function(a){if(!Ky(a)||this.B.V().experiments.xa("disable_fresca_video_navigation"))Tz(a,this.B,!0);else{var b=a.currentTarget.getAttribute("href");Sy(this.B.app,b.substring(b.length-11),void 0,void 0);Rm(a)}};g.ty=function(){this.C=!0;this.da()};g.Ba=function(){var a=!this.A;Yz.N.Ba.call(this);a&&cA(this.B)};g.da=function(){var a=this.A;Yz.N.da.call(this);a&&cA(this.B)};g.R=function(){Vb(this.o);Yz.N.R.call(this)};function dA(a){R.call(this,["div","ytp-fresca-module",["div","ytp-fresca-slant",["div","ytp-fresca-slant-blur-image"],["div","ytp-fresca-slant-inner",["div","ytp-fresca-slant-overlay"],["div","ytp-fresca-slant-arrows"],["div","ytp-fresca-livestreaming-animation",["div","ytp-fresca-livestreaming-icon"]]]],["div","ytp-fresca-band-slate",["hgroup","ytp-fresca-message",["h3","ytp-fresca-heading","{{heading}}"],["h4","ytp-fresca-byline","{{byline}}"],["h2","ytp-fresca-countdown","{{countdown}}"]]]]);this.D=
0;this.o=null;this.F=-1;this.C=new Xz(a);I(this,this.C);this.B=new Yz(a);I(this,this.B);this.C.da();this.C.j(this.element);this.B.da();this.B.j(this.element);var b=this.ma["ytp-fresca-livestreaming-icon"];b.innerHTML='<svg height="100%" version="1.1" viewBox="0 0 500 500" width="100%"><defs><mask id="ytp-svg-23"><circle cx="249.375068" cy="248.904023" fill="white" r="210"><animate attributeName="r" begin="indefinite" dur="4s" from="45" repeatCount="indefinite" to="210" /></circle><circle cx="249.375068" cy="248.904023" fill="black" r="0"><animate attributeName="r" begin="indefinite" dur="4s" from="-135" repeatCount="indefinite" to="130" /></circle></mask></defs><circle cx="250.4" cy="249.4" fill="#d90000" r="189.6" /><circle cx="249.375068" cy="248.904023" fill="#fff" r="31.246614" /><g mask="url(#ytp-svg-23)"><path d="M345.34,344.49 C370.89,319.04 385.83,285.02 385.83,248.90 C385.83,212.21 371.63,178.25 346.59,153.31 L332.13,167.72 C353.34,188.84 365.38,217.62 365.38,248.90 C365.38,279.47 352.69,308.36 330.88,330.08 L345.34,344.49 Z" fill="#fff" /><path d="M311.60,310.87 C328.23,294.30 338.34,271.56 338.34,247.65 C338.34,224.28 328.86,201.63 312.85,185.68 L298.38,200.08 C310.58,212.23 317.89,229.70 317.89,247.65 C317.89,265.98 310.05,283.60 297.13,296.47 L311.60,310.87 Z" fill="#fff" /><path d="M185.90,186.92 C169.88,202.88 160.40,225.53 160.40,248.90 C160.40,272.54 170.06,295.10 187.14,312.12 L201.61,297.72 C188.30,284.47 180.85,267.06 180.85,248.90 C180.85,230.94 188.16,213.47 200.36,201.33 L185.90,186.92 Z" fill="#fff" /><path d="M153.40,153.31 C128.36,178.25 114.16,212.21 114.16,248.90 C114.16,286.07 128.71,320.02 154.85,344.68 L168.91,329.89 C146.87,309.09 134.61,280.50 134.61,248.90 C134.61,217.62 146.65,188.84 167.86,167.72 L153.40,153.31 Z" fill="#fff" /></g></svg>';
if(!a.V().C){b=b.getElementsByTagName("animate");for(a=0;a<b.length;a++)b[a].setAttribute("begin",0);b=this.ma["ytp-fresca-livestreaming-animation"];for(a=0;3>a;a++){var c=new R(["div",["ytp-fresca-livestreaming-circle","ytp-fresca-livestreaming-circle-"+a]]);c.element.innerHTML='<svg height="100%" version="1.1" viewBox="0 0 500 500" width="100%"><circle cx="250.4" cy="249.4" fill="#fff" r="189.6" /></svg>';c.j(b,0)}}}B(dA,R);
function eA(a,b,c){if(!a.o||a.o.state!=b.state||a.o.startTime!=b.startTime||a.o.imageUrl!=b.imageUrl||a.o.messageText.join()!=b.messageText.join()||c)if(a.o=b,b=fA(b),M(a.element,"ytp-fresca-final-day-easter-egg",b),c=!b&&a.o.imageUrl,b=a.ma["ytp-fresca-slant-blur-image"],c=c?"url("+c+")":"",a.element.style.backgroundImage=c,b.style.backgroundImage=c,b=a.o.getMessage(),a.update({heading:b[0]||"",byline:b[1]||"",countdown:b[2]||""}),a.G(!0),a.o.o)if(gA(a.o.o)&&!fA(a.o)){b=a.C;c=a.o.o.j[0];var d;d=
a.o.o;d=d.o?Q("YTP_FRESCA_CENTRAL_PROMO_HEADER",{STREAMER_NAME:d.o}):"";var e="background-image:"+$z(c);b.update({suggested_header_central:d,suggested_title:c.Dr,suggested_content:bA(c),badge_content:aA(c),link_destination:c.getVideoUrl(),image_style:e});M(b.ma["ytp-fresca-suggested-image-badge"],"ytp-fresca-suggested-image-badge-live",c.isLive());a.C.Ba();a.B.da()}else b=a.o.o,!(0<b.j.length)||gA(b)||fA(a.o)||a.B.C?a.B.da():(Zz(a.B,a.o.o),a.B.Ba()),a.C.da()}
dA.prototype.G=function(a){var b;b=this.o;b.startTime?(b=b.state,b=6==b||8==b||7==b?!1:!0):b=!1;M(this.element,"ytp-fresca-inline-countdown",b&&!0);M(this.element,"ytp-fresca-show-countdown",b&&!1);if(b){if(!a&&(a=this.o.startTime-Math.floor(A()/1E3),a=259200<=a?0:86459<=a?1:86400<=a?2:0<=a?3:-3600<=a?4:5,a!=this.F)){this.F=a;eA(this,this.o,!0);return}fA(this.o)||(a=this.o.startTime,b=Math.floor(A()/1E3),b>a?a="":(a-=b,a=86400>a?Jy(a):259200>a?Q("YTP_FRESCA_COUNTDOWN_HOURS",{HOURS:Math.floor(a/3600)}):
Q("YTP_FRESCA_COUNTDOWN_DAYS",{DAYS:Math.floor(a/86400)})),Ar(this,"countdown",a));tj(this.D);this.D=qj(x(this.G,this),1E3)}};dA.prototype.R=function(){tj(this.D);dA.N.R.call(this)};var hA;
hA={zt:["BC","AD"],xt:["Before Christ","Anno Domini"],hu:"JFMAMJJASOND".split(""),zu:"JFMAMJJASOND".split(""),Qm:"January February March April May June July August September October November December".split(" "),Um:"January February March April May June July August September October November December".split(" "),Sm:"Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec".split(" "),Vm:"Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec".split(" "),bn:"Sunday Monday Tuesday Wednesday Thursday Friday Saturday".split(" "),Xm:"Sunday Monday Tuesday Wednesday Thursday Friday Saturday".split(" "),
Tm:"Sun Mon Tue Wed Thu Fri Sat".split(" "),Wm:"Sun Mon Tue Wed Thu Fri Sat".split(" "),j:"SMTWTFS".split(""),Au:"SMTWTFS".split(""),vu:["Q1","Q2","Q3","Q4"],ou:["1st quarter","2nd quarter","3rd quarter","4th quarter"],Lm:["AM","PM"],Gj:["EEEE, MMMM d, y","MMMM d, y","MMM d, y","M/d/yy"],Zm:["h:mm:ss a zzzz","h:mm:ss a z","h:mm:ss a","h:mm a"],qt:["{1} 'at' {0}","{1} 'at' {0}","{1}, {0}","{1}, {0}"],Ij:6,Ku:[5,6],Jj:5};function iA(a,b,c,d,e,f){w(a)?(this.D="y"==a?b:0,this.C="m"==a?b:0,this.j="d"==a?b:0,this.o="h"==a?b:0,this.A="n"==a?b:0,this.B="s"==a?b:0):(this.D=a||0,this.C=b||0,this.j=c||0,this.o=d||0,this.A=e||0,this.B=f||0)}iA.prototype.equals=function(a){return a.D==this.D&&a.C==this.C&&a.j==this.j&&a.o==this.o&&a.A==this.A&&a.B==this.B};iA.prototype.clone=function(){return new iA(this.D,this.C,this.j,this.o,this.A,this.B)};
function jA(a,b,c){ga(a)?(this.date=kA(a,b||0,c||1),lA(this,c||1)):ia(a)?(this.date=kA(a.getFullYear(),a.getMonth(),a.getDate()),lA(this,a.getDate())):(this.date=new Date(A()),a=this.date.getDate(),this.date.setHours(0),this.date.setMinutes(0),this.date.setSeconds(0),this.date.setMilliseconds(0),lA(this,a))}function kA(a,b,c){b=new Date(a,b,c);0<=a&&100>a&&b.setFullYear(b.getFullYear()-1900);return b}g=jA.prototype;g.Jn=hA.Ij;g.Kn=hA.Jj;
g.clone=function(){var a=new jA(this.date);a.Jn=this.Jn;a.Kn=this.Kn;return a};g.getFullYear=function(){return this.date.getFullYear()};g.getMonth=function(){return this.date.getMonth()};g.getDate=function(){return this.date.getDate()};g.getTime=function(){return this.date.getTime()};g.getDay=function(){return this.date.getDay()};g.getUTCFullYear=function(){return this.date.getUTCFullYear()};g.getUTCMonth=function(){return this.date.getUTCMonth()};g.getUTCDate=function(){return this.date.getUTCDate()};
g.getUTCHours=function(){return this.date.getUTCHours()};g.getUTCMinutes=function(){return this.date.getUTCMinutes()};g.getTimezoneOffset=function(){return this.date.getTimezoneOffset()};g.set=function(a){this.date=new Date(a.getFullYear(),a.getMonth(),a.getDate())};g.equals=function(a){return!(!a||this.getFullYear()!=a.getFullYear()||this.getMonth()!=a.getMonth()||this.getDate()!=a.getDate())};
g.toString=function(){return[this.getFullYear(),Va(this.getMonth()+1,2),Va(this.getDate(),2)].join("")+""};function lA(a,b){a.getDate()!=b&&a.date.setUTCHours(a.date.getUTCHours()+(a.getDate()<b?1:-1))}g.valueOf=function(){return this.date.valueOf()};function mA(){}function nA(a){if("number"==typeof a){var b=new mA;b.A=a;var c;c=a;if(0==c)c="Etc/GMT";else{var d=["Etc/GMT",0>c?"-":"+"];c=Math.abs(c);d.push(Math.floor(c/60)%100);c%=60;0!=c&&d.push(":",Va(c,2));c=d.join("")}b.B=c;c=a;0==c?c="UTC":(d=["UTC",0>c?"+":"-"],c=Math.abs(c),d.push(Math.floor(c/60)%100),c%=60,0!=c&&d.push(":",c),c=d.join(""));a=oA(a);b.C=[c,c];b.j={wI:a,Ym:a};b.o=[];return b}b=new mA;b.B=a.id;b.A=-a.std_offset;b.C=a.names;b.j=a.names_ext;b.o=a.transitions;return b}
function oA(a){var b=["GMT"];b.push(0>=a?"+":"-");a=Math.abs(a);b.push(Va(Math.floor(a/60)%100,2),":",Va(a%60,2));return b.join("")}function pA(a,b){for(var c=Date.UTC(b.getUTCFullYear(),b.getUTCMonth(),b.getUTCDate(),b.getUTCHours(),b.getUTCMinutes())/36E5,d=0;d<a.o.length&&c>=a.o[d];)d+=2;return 0==d?0:a.o[d-1]};function qA(a,b){this.o=[];this.j=b||hA;"number"==typeof a?rA(this,a):sA(this,a)}var tA=[/^\'(?:[^\']|\'\')*\'/,/^(?:G+|y+|M+|k+|S+|E+|a+|h+|K+|H+|c+|L+|Q+|d+|m+|s+|v+|V+|w+|z+|Z+)/,/^[^\'GyMkSEahKHcLQdmsvVwzZ]+/];function sA(a,b){for(uA&&(b=b.replace(/\u200f/g,""));b;)for(var c=0;c<tA.length;++c){var d=b.match(tA[c]);if(d){d=d[0];b=b.substring(d.length);0==c&&("''"==d?d="'":(d=d.substring(1,d.length-1),d=d.replace(/\'\'/,"'")));a.o.push({text:d,type:c});break}}}
qA.prototype.format=function(a,b){if(!a)throw Error("The date to format must be non-null.");var c=b?6E4*(a.getTimezoneOffset()-(b.A-pA(b,a))):0,d=c?new Date(a.getTime()+c):a,e=d;b&&d.getTimezoneOffset()!=a.getTimezoneOffset()&&(d=new Date(d.getTime()+6E4*(d.getTimezoneOffset()-a.getTimezoneOffset())),e=new Date(a.getTime()+(c+(0<c?-864E5:864E5))));for(var c=[],f=0;f<this.o.length;++f){var h=this.o[f].text;1==this.o[f].type?c.push(vA(this,h,a,d,e,b)):c.push(h)}return c.join("")};
function rA(a,b){var c;if(4>b)c=a.j.Gj[b];else if(8>b)c=a.j.Zm[b-4];else if(12>b)c=a.j.qt[b-8],c=c.replace("{1}",a.j.Gj[b-8]),c=c.replace("{0}",a.j.Zm[b-8]);else{rA(a,10);return}sA(a,c)}function wA(a,b){var c;c=String(b);var d=a.j||hA;if(void 0!==d.Nu){for(var e=[],f=0;f<c.length;f++){var h=c.charCodeAt(f);e.push(48<=h&&57>=h?String.fromCharCode(d.Nu+h-48):c.charAt(f))}c=e.join("")}return c}var uA=!1;
function xA(a){if(!(a.getHours&&a.getSeconds&&a.getMinutes))throw Error("The date to format has no time (probably a goog.date.Date). Use Date or goog.date.DateTime, or use a pattern without time fields.");}
function vA(a,b,c,d,e,f){var h=b.length;switch(b.charAt(0)){case "G":return c=0<d.getFullYear()?1:0,4<=h?a.j.xt[c]:a.j.zt[c];case "y":return c=d.getFullYear(),0>c&&(c=-c),2==h&&(c%=100),wA(a,Va(c,h));case "M":a:switch(c=d.getMonth(),h){case 5:h=a.j.hu[c];break a;case 4:h=a.j.Qm[c];break a;case 3:h=a.j.Sm[c];break a;default:h=wA(a,Va(c+1,h))}return h;case "k":return xA(e),wA(a,Va(e.getHours()||24,h));case "S":return wA(a,(e.getTime()%1E3/1E3).toFixed(Math.min(3,h)).substr(2)+(3<h?Va(0,h-3):""));case "E":return c=
d.getDay(),4<=h?a.j.bn[c]:a.j.Tm[c];case "a":return xA(e),h=e.getHours(),a.j.Lm[12<=h&&24>h?1:0];case "h":return xA(e),wA(a,Va(e.getHours()%12||12,h));case "K":return xA(e),wA(a,Va(e.getHours()%12,h));case "H":return xA(e),wA(a,Va(e.getHours(),h));case "c":a:switch(c=d.getDay(),h){case 5:h=a.j.Au[c];break a;case 4:h=a.j.Xm[c];break a;case 3:h=a.j.Wm[c];break a;default:h=wA(a,Va(c,1))}return h;case "L":a:switch(c=d.getMonth(),h){case 5:h=a.j.zu[c];break a;case 4:h=a.j.Um[c];break a;case 3:h=a.j.Vm[c];
break a;default:h=wA(a,Va(c+1,h))}return h;case "Q":return c=Math.floor(d.getMonth()/3),4>h?a.j.vu[c]:a.j.ou[c];case "d":return wA(a,Va(d.getDate(),h));case "m":return xA(e),wA(a,Va(e.getMinutes(),h));case "s":return xA(e),wA(a,Va(e.getSeconds(),h));case "v":return h=f||nA(c.getTimezoneOffset()),h.B;case "V":return a=f||nA(c.getTimezoneOffset()),2>=h?a.B:0<pA(a,c)?p(a.j.wt)?a.j.wt:a.j.DST_GENERIC_LOCATION:p(a.j.Ym)?a.j.Ym:a.j.STD_GENERIC_LOCATION;case "w":return c=a.j.Jj,e=new Date(e.getFullYear(),
e.getMonth(),e.getDate()),b=a.j.Ij||0,c=e.valueOf()+864E5*(((p(c)?c:3)-b+7)%7-((e.getDay()+6)%7-b+7)%7),wA(a,Va(Math.floor(Math.round((c-(new Date((new Date(c)).getFullYear(),0,1)).valueOf())/864E5)/7)+1,h));case "z":return a=f||nA(c.getTimezoneOffset()),4>h?a.C[0<pA(a,c)?2:0]:a.C[0<pA(a,c)?3:1];case "Z":return e=f||nA(c.getTimezoneOffset()),4>h?(h=-(e.A-pA(e,c)),a=[0>h?"-":"+"],h=Math.abs(h),a.push(Va(Math.floor(h/60)%100,2),Va(h%60,2)),h=a.join("")):h=wA(a,oA(e.A-pA(e,c))),h;default:return""}};function yA(a){this.C=a.thumbnailUrl?a.thumbnailUrl:null;this.j=a.startTimeSecs?parseInt(a.startTimeSecs,10):null;this.Dr=a.title;this.o=a.state;this.A=a.currentViewers?parseInt(a.currentViewers,10):null;this.D=a.videoUrl;this.B=a.durationSecs?parseInt(a.durationSecs,10):null}function $z(a){return(a=a.C)?"url("+a+")":""}yA.prototype.isLive=function(){return"LIVE"==this.o};yA.prototype.isUpcoming=function(){return"NOT_YET_LIVE"==this.o};
function bA(a){if("COMPLETE"==a.o){var b=Math.floor(A()/1E3);a=a.j?b-a.j:0;return 172800<a?Q("YTP_FRESCA_LIVE_DAYS_AGO",{DAYS:Math.floor(a/86400)}):3600<a?Q("YTP_FRESCA_LIVE_HOURS_AGO",{HOURS:Math.floor(a/3600)}):Q("YTP_FRESCA_LIVE_RECENTLY")}return a.isUpcoming()?(b=Math.floor(A()/1E3),a=a.j?a.j-b:0,172800<a?Q("YTP_FRESCA_LIVE_IN_DAYS",{DAYS:Math.floor(a/86400)}):3600<a?Q("YTP_FRESCA_LIVE_IN_HOURS",{HOURS:Math.floor(a/3600)}):Q("YTP_FRESCA_STREAMING_SOON")):a.A&&2<a.A?Q("YTP_FRESCA_VIEWERS_WATCHING_NOW",
{VIEWER_COUNT:a.A}):Q("YTP_FRESCA_NO_VIEWERS_STREAMING_NOW")}function aA(a){return"COMPLETE"==a.o&&a.B?Jy(a.B):a.isLive()?Q("YTP_FRESCA_LIVE_BADGE"):null}yA.prototype.getVideoUrl=function(){return this.D};function zA(a){this.o=a.channelName?a.channelName:"";this.j=[];if(a=a.suggestedEvents)for(var b=0;b<a.length;b++)this.j.push(new yA(a[b]))}function gA(a){return 1==a.j.length&&a.j[0].isLive()};function AA(a,b){this.state=-1;this.A=a;this.messageText=[];this.B=!1;b&&BA(this,b)}function BA(a,b){var c=b.lifeCycleState;c&&(a.state=Nz[c]||-1);a.startTime=parseInt(b.scheduledStartTime,10);if(c=b.slateBackgroundUrl)a.imageUrl=c;if(c=b.streamStates)a.B=0<=qb(c,function(a){a=a.streamState;return!!a&&"STREAM_STATE_ACTIVE"==a});if(c=b.broadcastId)a.broadcastId=c;a.o=new zA(b)}AA.prototype.j=function(){return this.B};
AA.prototype.getMessage=function(){return this.messageText.length?this.messageText:CA(this)};
function CA(a){switch(a.state){case 6:return!a.j()&&a.A?[Q("YTP_FRESCA_EVENT_OFFLINE_PREAMBLE"),null,Q("YTP_FRESCA_EVENT_OFFLINE")]:a.j()?[]:[Q("YTP_FRESCA_EVENT_VIDEO_INTERRUPTED"),Q("YTP_FRESCA_STREAMER_STOPPED_STREAMING")];case 8:case 7:return[Q("YTP_FRESCA_EVENT_OVER_MESSAGE"),Q("YTP_FRESCA_COMPLETE_MESSAGE")];default:if(fA(a))return["Dawn of","The final day","-24 hours remain-"];if(!a.A&&a.startTime){var b=pj("LOCAL_DATE_TIME_CONFIG"),c="";if(b){var c=a.startTime,d="",d=b.formatLongDate;hA={Qm:b.months,
Um:b.months,Sm:b.shortMonths,Vm:b.shortMonths,Gj:b.dateFormats,bn:b.weekdays,Xm:b.shortMonths,Tm:b.shortWeekdays,Wm:b.shortWeekdays,Ku:b.weekendRange,Ij:b.firstDayOfWeek,Jj:b.firstWeekCutoffDay,Lm:b.amPms};c=(new qA(d)).format(new Date(1E3*c))}b=Math.floor(A()/1E3);return[b<=a.startTime?Q("YTP_FRESCA_EVENT_STARTS_IN"):3600>b-a.startTime?Q("YTP_FRESCA_EVENT_STARTING_SOON"):Q("YTP_FRESCA_EVENT_HASNT_STARTED"),c]}return a.A?[Q("YTP_FRESCA_EVENT_OFFLINE_PREAMBLE"),null,Q("YTP_FRESCA_EVENT_OFFLINE")]:
a.A?[Q("YTP_FRESCA_EVENT_OFFLINE")]:[Q("YTP_FRESCA_STAND_BY_MESSAGE")]}}function fA(a){if(!a.startTime)return!1;var b=a.startTime-Math.floor(A()/1E3);return tb(Mz,a.state)&&86459>=b&&86400<=b}AA.prototype.equals=function(a){return a&&this.broadcastId==a.broadcastId&&this.state==a.state&&this.j()==a.j()&&this.imageUrl==a.imageUrl&&Nb(this.messageText,a.messageText)&&(this.startTime==a.startTime||isNaN(this.startTime)&&isNaN(a.startTime))};function DA(a){lr.call(this,a);this.H=this.oa="fresca";this.A=this.G=!1;this.B=null;wj({YTP_FRESCA_STARTING_SOON_MESSAGE:"Starting soon...",YTP_FRESCA_EVENT_OVER_MESSAGE:"This live stream is over.",YTP_FRESCA_COMPLETE_MESSAGE:"Thanks for watching!",YTP_FRESCA_STAND_BY_MESSAGE:"Please stand by.",YTP_FRESCA_EVENT_VIDEO_INTERRUPTED:"Video was interrupted",YTP_FRESCA_STREAMER_STOPPED_STREAMING:"The streamer stopped streaming.",YTP_FRESCA_EVENT_OFFLINE:"Offline",YTP_FRESCA_EVENT_OFFLINE_PREAMBLE:"This stream is",
YTP_FRESCA_EVENT_STARTS_IN:"Watch the live stream!",YTP_FRESCA_EVENT_STARTING_SOON:"Live stream is starting soon",YTP_FRESCA_EVENT_HASNT_STARTED:"This scheduled live stream hasn't started yet",YTP_FRESCA_CENTRAL_PROMO_HEADER:"$STREAMER_NAME is streaming now!",YTP_FRESCA_SIDEBAR_PROMO_HEADER:"Other live streams by $STREAMER_NAME",YTP_FRESCA_LIVE_BADGE:"Live",YTP_FRESCA_LIVE_DAYS_AGO:"Streamed $DAYS days ago",YTP_FRESCA_LIVE_HOURS_AGO:"Streamed $HOURS hours ago",YTP_FRESCA_LIVE_RECENTLY:"Recently live",
YTP_FRESCA_LIVE_IN_DAYS:"Live in $DAYS days",YTP_FRESCA_LIVE_IN_HOURS:"Live in $HOURS hours",YTP_FRESCA_VIEWERS_WATCHING_NOW:"$VIEWER_COUNT watching now",YTP_FRESCA_NO_VIEWERS_STREAMING_NOW:"Streaming now",YTP_FRESCA_COUNTDOWN_DAYS:"$DAYS days",YTP_FRESCA_COUNTDOWN_HOURS:"$HOURS hours"});this.D=!1}B(DA,lr);g=DA.prototype;g.Za=function(){return qy(this.j.getVideoData(),"fresca_module")};
g.create=function(a){DA.N.create.call(this);var b=this.j.V();Ax(Su(),"application/x-mpegURL")||Bx()?(this.G=this.A=!1,this.C=new dA(this.j),this.C.j(this.j.sa()),this.B=a||null,this.B||(a=this.j.getVideoData(),this.B=new Oz(a.videoId,a.visitorData||pj("VISITOR_DATA",""),b.Ed)),this.B.subscribe("payload",this.aA,this),this.B.subscribe("error",this.Ip,this),this.subscribe("onStateChange",this.Br,this)):EA(this.j.app.o,"fmt.noneavailable","YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK",void 0)};
g.destroy=function(){this.unsubscribe("onStateChange",this.Br,this);Vb(this.B,this.C);DA.N.destroy.call(this)};g.Br=function(a){this.o&&(this.G=U(a.state,2),Kz(FA(this.j))&&this.B.B(),GA(this,this.o))};g.Ip=function(){if(!this.A){var a=this.j.getVideoData();a.hlsvp||a.G?this.j.V().experiments.xa("disable_fresca_error_fallback")||(this.A=!0,pr(this)):(HA(this,new AA(this.j.getVideoData().isLiveDefaultBroadcast)),GA(this,this.o))}};
g.aA=function(a){if(!a||a.error)this.Ip();else{var b=this.o?this.o.broadcastId:"",c=this.j.getVideoData();HA(this,new AA(c.isLiveDefaultBroadcast,a));this.D=this.D||c.isLiveDefaultBroadcast&&""!=b&&b!=this.o.broadcastId;6!=this.o.state||(c.hlsvp||c.G)&&!this.D?GA(this,this.o):(this.D=!1,this.j.um(c.videoId))}};
function GA(a,b){var c;c=!!b.getMessage().length||!!b.imageUrl;if(a.A||!(6>b.state))if(a.j.app.o.K&&(b.imageUrl||b.messageText.length))c=!0;else{var d=FA(a.j),d=Kz(d)||U(d,2),e;if(e=!a.o.j())(e=!a.A)||(e=!(FA(a.j).ib()&&!ry(a.j.getVideoData())&&!a.j.app.o.K)&&d);c=e||a.G&&a.j.app.o.K||!a.A&&6<b.state?c:!1}if(!a.A)switch(b.state){case 6:b.j()&&(a.A=!0,pr(a));break;case 8:case 7:a.A=!0}c&&eA(a.C,b);c&&!a.loaded?a.load():!c&&a.loaded&&a.unload()}
function IA(a){return qy(a.getVideoData(),"fresca_module")?new DA(a):null}function HA(a,b){if(!a.o||!a.o.equals(b)){a.o=b;var c=a.j,d;d={hasActiveStream:b.j(),imageUrl:b.imageUrl,messageText:b.getMessage(),startTime:b.startTime,state:b.state};cA(c,d)}};function JA(){if(!Fc)return!1;try{return new ActiveXObject("MSXML2.DOMDocument"),!0}catch(a){return!1}}var KA=Fc&&JA();function LA(a){if("undefined"!=typeof DOMParser)return(new DOMParser).parseFromString(a,"application/xml");if(KA){var b=MA();b.loadXML(a);return b}throw Error("Your browser does not support loading xml documents");}
function NA(a){var b=a.xml;if(b)return b;if("undefined"!=typeof XMLSerializer)return(new XMLSerializer).serializeToString(a);throw Error("Your browser does not support serializing XML documents");}
function OA(a,b){if("undefined"!=typeof a.selectSingleNode){var c=Df(a);"undefined"!=typeof c.setProperty&&c.setProperty("SelectionLanguage","XPath");return a.selectSingleNode(b)}if(document.implementation.hasFeature("XPath","3.0")){var c=Df(a),d=c.createNSResolver(c.documentElement);return c.evaluate(b,a,d,XPathResult.FIRST_ORDERED_NODE_TYPE,null).singleNodeValue}return null}
function MA(){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 PA(a){this.o=a||window;this.j=[]}PA.prototype.P=function(a,b,c,d){c=x(c,d||this.o);a=Hm(a,b,c);this.j.push(a);return a};function QA(a,b,c){c=x(c,a.o);b=Im(b,"mouseleave",c);a.j.push(b);return b}function RA(a,b,c,d){c=x(c,d||a.o);b=Km(b,c);a.j.push(b)}PA.prototype.ua=function(a){Jm(a);xb(this.j,a)};PA.prototype.removeAll=function(){Jm(this.j);this.j.length=0};function SA(a,b,c){H.call(this);this.j=null;this.B=!1;this.D=a;this.C=c;this.o=b||window;this.A=x(this.Rv,this)}B(SA,H);g=SA.prototype;g.start=function(){this.stop();this.B=!1;var a=TA(this),b=UA(this);a&&!b&&this.o.mozRequestAnimationFrame?(this.j=md(this.o,"MozBeforePaint",this.A),this.o.mozRequestAnimationFrame(null),this.B=!0):this.j=a&&b?a.call(this.o,this.A):this.o.setTimeout(Bd(this.A),20)};
g.stop=function(){if(this.isActive()){var a=TA(this),b=UA(this);a&&!b&&this.o.mozRequestAnimationFrame?vd(this.j):a&&b?b.call(this.o,this.j):this.o.clearTimeout(this.j)}this.j=null};g.isActive=function(){return null!=this.j};g.Rv=function(){this.B&&this.j&&vd(this.j);this.j=null;this.D.call(this.C,A())};g.R=function(){this.stop();SA.N.R.call(this)};
function TA(a){a=a.o;return a.requestAnimationFrame||a.webkitRequestAnimationFrame||a.mozRequestAnimationFrame||a.oRequestAnimationFrame||a.msRequestAnimationFrame||null}function UA(a){a=a.o;return a.cancelAnimationFrame||a.cancelRequestAnimationFrame||a.webkitCancelRequestAnimationFrame||a.mozCancelRequestAnimationFrame||a.oCancelRequestAnimationFrame||a.msCancelRequestAnimationFrame||null};var VA={},WA=null;function XA(a){a=ka(a);delete VA[a];jc(VA)&&WA&&WA.stop()}function YA(){WA||(WA=new oe(function(){ZA()},20));var a=WA;a.isActive()||a.start()}function ZA(){var a=A();Wb(VA,function(b){$A(b,a)});jc(VA)||YA()};function aB(){J.call(this);this.j=0;this.endTime=this.startTime=null}B(aB,J);g=aB.prototype;g.ib=function(){return 1==this.j};g.Ci=function(){this.dc("begin")};g.Lg=function(){this.dc("end")};g.Xb=function(){this.dc("finish")};g.dc=function(a){this.Y(a)};function bB(a,b,c,d){aB.call(this);if(!ea(a)||!ea(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.A=a;this.G=b;this.duration=c;this.D=d;this.o=[];this.progress=this.F=0;this.C=null}B(bB,aB);g=bB.prototype;
g.play=function(a){if(a||0==this.j)this.progress=0,this.o=this.A;else if(this.ib())return!1;XA(this);this.startTime=a=A();-1==this.j&&(this.startTime-=this.duration*this.progress);this.endTime=this.startTime+this.duration;this.C=this.startTime;this.progress||this.Ci();this.dc("play");-1==this.j&&this.dc("resume");this.j=1;var b=ka(this);b in VA||(VA[b]=this);YA();$A(this,a);return!0};g.stop=function(a){XA(this);this.j=0;a&&(this.progress=1);cB(this,this.progress);this.dc("stop");this.Lg()};
g.pause=function(){this.ib()&&(XA(this),this.j=-1,this.dc("pause"))};g.R=function(){0==this.j||this.stop(!1);this.dc("destroy");bB.N.R.call(this)};g.destroy=function(){this.dispose()};function $A(a,b){a.progress=(b-a.startTime)/(a.endTime-a.startTime);1<=a.progress&&(a.progress=1);a.F=1E3/(b-a.C);a.C=b;cB(a,a.progress);1==a.progress?(a.j=0,XA(a),a.Xb(),a.Lg()):a.ib()&&a.ml()}function cB(a,b){ha(a.D)&&(b=a.D(b));a.o=Array(a.A.length);for(var c=0;c<a.A.length;c++)a.o[c]=(a.G[c]-a.A[c])*b+a.A[c]}
g.ml=function(){this.dc("animate")};g.dc=function(a){this.Y(new dB(a,this))};function dB(a,b){sc.call(this,a);this.x=b.o[0];this.y=b.o[1];this.duration=b.duration;this.progress=b.progress;this.fps=b.F;this.state=b.j}B(dB,sc);function eB(a){return Math.pow(a,3)}function fB(a){return 3*a*a-2*a*a*a};function gB(){this.j=[]}function hB(a,b){for(var c=[],d=0;d<a.j.length;++d){var e=a.j[d];e.contains(b)&&c.push(e);if(e.start>b)break}return c}function iB(a,b,c){return a.j.slice(jB(a,b),null==c?a.j.length:jB(a,c))}function jB(a,b){var c=Jb(a.j,function(a){return b-a.start||1});return 0>c?-(c+1):c}function kB(a,b){for(var c=void 0,d=0;d<a.j.length;d++){var e=a.j[d];e.contains(b)&&(void 0==c||e.end<c)&&(c=e.end);if(e.start>b&&(void 0==c||e.start<c)){c=e.start;break}}return c};function lB(a,b,c,d,e){H.call(this);this.A=0;this.H=!1;this.D=null;this.G=this.C=this.F=!1;this.U=a;this.M=b;this.L=c;this.S=d;this.K=e;this.J=new oe(this.Gc,250,this);I(this,this.J);this.B=new oe(this.Gc,0,this);I(this,this.B);this.o=[];this.j=new gB}B(lB,H);g=lB.prototype;g.gb=function(a){this.Gc();var b=this.j;if(1<a.length&&a.length>b.j.length)b.j=b.j.concat(a),b.j.sort(gr);else for(var c=0;c<a.length;c++){var d=a[c];!b.j.length||0<gr(d,b.j[b.j.length-1])?b.j.push(d):Pb(b.j,d,gr)}this.Gc()};
g.eh=function(a){for(var b=arguments.length-1;0<=b;b--){var c=arguments[b];if(c){var d=this.o.indexOf(c);0<=d&&this.o.splice(d,1);d=this.j.j;c=Gb(d,c,gr);0<=c&&yb(d,c)}}this.Gc()};g.Pf=function(){this.A=mB(this);this.F=!0;this.Gc()};g.reset=function(){this.F=this.H=!1;this.B.stop();this.j.j=[];this.o=[];this.Gc();this.D=null};function nB(a,b){var c=[];if(!b.length)return c;b.sort(kr);for(var d=0;d<b.length;d++){var e=b[d];e.active&&-1==a.o.indexOf(e)&&(a.o.push(e),c.push([1,e]))}return c}
function oB(a,b){var c=[];if(!b.length)return c;b.sort(kr);for(var d=0;d<b.length;d++){var e=b[d],f=a.o.indexOf(e);0>f||(a.o.splice(f,1),c.push([2,e]))}return c}
g.Gc=function(){this.G=!0;if(!this.C)for(var a=3;this.G&&a;){this.G=!1;this.C=!0;if(this.F&&!this.H){this.B.stop();for(var b=mB(this),c=[],d=[],e=0;e<this.o.length;e++){var f=this.o[e];f.active&&!f.contains(b)&&d.push(f)}c=c.concat(oB(this,d));d=hB(this.j,b);e=this.L();!U(e,48)&&b>this.A&&(d=d.concat(iB(this.j,this.A,b)));c=c.concat(nB(this,d));this.A=b;!this.H&&this.D&&(this.D=null,U(e,2)&&(this.A=0x8000000000000));this.S()&&(b=kB(this.j,this.A),null!=b&&(b=(b-this.A)/this.M(),this.B.start(b)));
pB(this,c)}this.C=!1;a--}};function pB(a,b){for(var c=0;c<b.length;c++){var d=b[c],e=d[1];1==d[0]?(e.B&&jr(e).O("onEnter",e),a.K("crn_"+e.j,e)):(e.B&&jr(e).O("onExit",e),a.K("crx_"+e.j,e))}}function mB(a){return U(a.L(),2)?0x8000000000000:1E3*a.U()}g.R=function(){this.D=this.j=this.o=null;lB.N.R.call(this)};function qB(a){var b=0;-1!=a.indexOf("h")&&(a=a.split("h"),b=3600*a[0],a=a[1]);-1!=a.indexOf("m")&&(a=a.split("m"),b=60*a[0]+b,a=a[1]);-1!=a.indexOf("s")?(a=a.split("s"),b=1*a[0]+b):b=1*a+b;return b};function rB(a){return ea(a)&&a.length?a[0]:a}function sB(a){var b=/.+/;return w(a)&&null!=b&&null!=a&&a.match(b)?a:""}function tB(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 uB(a){return w(a)?a:""}function vB(a,b,c){for(var d in b)if(b[d]==a)return a;return c}function wB(a,b){return"true"==a||"false"==a?"true"==a:b}function xB(a,b){return w(a)?parseFloat(a):b}
function yB(a,b,c,d,e){a=parseFloat(a);if(null!=a&&!isNaN(a)){if(d)return De(a,b,c);if(a>=b&&a<=c)return a}return e}function zB(a){if(null==a)return 0;if("never"==a)return-1;a=a.split(":");if(3<a.length)return 0;var b=0,c=1;E(a,function(a){a=parseFloat(a);0>a&&(c=-c);b=60*b+Math.abs(a)});return c*b}function AB(a,b){if(null==a)return null;if(fa(a)){var c=[];E(a,function(a){(a=b(a))&&c.push(a)});return c}var d=b(a);return d?[d]:[]}
function BB(a){function b(a){return null!=a&&!isNaN(a)}return(a=a?new Ie(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 CB(a){function b(a){return lb(a.split(/ +/),function(a){return""!=a})}return null==a?[]:b(a)};function IB(a,b,c,d){this.value=a;this.target=b;this.showLinkIcon=c;this.j=d}var JB={jG:"current",rH:"new"};function KB(a){if(!a)return null;var b=uB(a.value);if(!b)return null;var c=vB(a.target,JB,"current");return null==c?null:new IB(b,c,wB(a.show_link_icon,!0),null!=a.pause_on_navigation?a.pause_on_navigation:!0)}function LB(a){return a.value?a.value:null};function MB(a){if(!a)return!1;var b=NB(a);return("com"==b[0]&&"youtube"==b[1]||"be"==b[0]&&"youtu"==b[1])&&-1==a.indexOf("/redirect?")}function NB(a){a=a.replace(/https?:\/\//g,"");a=a.split("/",1);return!a||1>a.length||!a[0]?[]:a[0].toLowerCase().split(".").reverse()}
function OB(a){a=LB(a);if(!a)return null;a=a.replace(/https?:\/\//g,"");var b;(b=!MB(a))||(b=kh(jh(a)[5]||null)||"",b=b.split("/"),b="/"+(1<b.length?b[1]:""),b="/watch"!=b);if(b)return null;b=lk(a);if(!b||!b.v)return null;if(b.t)return qB(b.t);a=a.split("#",2);return!a||2>a.length?null:(a=jk(a[1]))&&a.t?qB(a.t):-1}function PB(a){a=LB(a);a=a.replace(/https?:\/\//g,"");return MB(a)?(a=lk(a))&&a.v?a.v:null:null}
function QB(a,b,c,d){(a=LB(a))?MB(a)?d=nk(a,{feature:"iv",src_vid:c,annotation_id:b},!1):(a?(b=NB(a),b="com"==b[0]&&"google"==b[1]&&"plus"==b[2]):b=!1,b&&d?(d=pa(RB,d.pageId,d.Bb),a=new P(a),Dh(a,d(a.A)),d=a.toString()):d=a):d=null;return d}function RB(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 SB(a,b){return b?b:MB(a)?"current":"new"};function TB(a){this.o=a;this.j=0;this.C=NaN;this.A=0;this.ra=[];this.B=UB(this.o);this.D=this.F=0}function VB(a){a.B.startTime=a.A;a.B.endTime=a.j;a.ra.length&&ib(a.ra).isEmpty()?a.ra[a.ra.length-1]=a.B:a.ra.length&&a.B.isEmpty()||a.ra.push(a.B);a.F+=a.j-a.A;a.B=UB(a.o);a.A=a.j}function WB(a){return a.F+a.o.A()-a.A}function XB(a){a.ra.length&&a.j==a.A||VB(a);var b=a.ra;a.ra=[];return b}
TB.prototype.update=function(){var a=this.o.A()||0,b=YB(this.o);if(a!=this.j||ZB(this,a,b)){if(a<this.j||a-this.j>b-this.C+.5||ZB(this,a,b))VB(this),this.A=a;this.C=b;this.j=a}};function ZB(a,b,c){c-=a.C;return b==a.j&&.5<c};function $B(a,b){this.experimentIds=(a||"").split(",");this.flags=hk(b||"","&");var c={};E(this.experimentIds,function(a){c[a]=!0});this.experiments=c;aC=aC||this.xa("use_legacy_params");this.D=!!c["9408846"];this.o=!!c["932250"]||!!c["9406444"];this.Ga=!!c["945066"]||!!c["9405188"];this.A=!!c["945069"]||!!c["9405408"];this.Z=!!c["945074"]||!!c["9405191"];this.U=!!c["945090"]||!!c["9405409"];this.T=!!c["9416855"];this.B=c["9408912"]?5E3:c["9408913"]?7E3:c["9408914"]?9E3:c["9408915"]?11E3:c["9408916"]?
13E3:c["9408917"]?15E3:1E4;this.ga=!!c["9406692"];this.spherical=!!c["9406693"]||!!c["9417210"]&&Ni&&Tc(8);this.ca=this.xa("enable_spherical3d_chrome");this.S=!!c["9417025"];this.Na=!!c["9417026"];this.F=!!c["9417027"];this.bv=!0;this.G=!!c["909722"];this.ea=!!c["922333"];this.K=!!c["937009"];this.X=!!c["9408321"];this.enableAudioCast=!!c["9408394"];this.H=!!c["9408807"]||!!c["9414764"];this.L=!!c["9408919"];this.j=!!c["9414740"];this.WB=!!c["9414661"];this.W=!!c["9414672"];this.showEndToEndLatency=
!!c["9416891"];this.C=!!c["9414843"];this.aa=!!c["9418683"];this.M=!!c["9419470"];this.fa=!!c["9407182"]}var aC=!1;$B.prototype.xa=function(a){return"true"==this.flags[a]};$B.prototype.jd=function(a){return parseFloat(this.flags[a])};$B.prototype.J=function(a){return this.flags[a]?this.flags[a].toString():""};function bC(a,b){this.j=b;this.B=!1;this.o=a}bC.prototype.A=function(){return{ps:this.j.j,el:this.j.Aa}};bC.prototype.send=function(){if(!this.B){var a;a=this.A();a=uh(this.j.baseYtUrl+"set_awesome",a);this.j.experiments.j&&this.o.visitorData&&ok(a)?wk(a,{headers:{"X-Goog-Visitor-Id":this.o.visitorData}}):br(a);this.B=!0}};function cC(a,b,c){bC.call(this,b,c);this.C=a}B(cC,bC);
cC.prototype.A=function(){var a=cC.N.A.call(this);qa(a,this.j.o);qa(a,{html5:"1",video_id:this.o.videoId,eurl:this.j.S,framer:this.j.Dd,list:this.o.Wa||this.o.playlistId,w:De(this.o.kj/this.o.lengthSeconds,0,1),l:this.o.lengthSeconds,plid:this.o.playbackId,ei:this.o.eventId,access_token:this.o.oauthToken,tpmt:WB(this.C),cpn:this.o.clientPlaybackNonce});this.j.D&&(a.adformat=this.j.D);a.feature=aC?this.j.ga:this.o.Id;var b;(b=(b=aC?this.j.referrer:this.o.referrer)?b.slice(0,128):"")&&(a.referrer=b);
this.j.autoplay&&(a.autoplay="1");this.j.Bb&&(a.authuser=this.j.Bb);this.j.pageId&&(a.pageid=this.j.pageId);this.o.Wf&&(a.splay="1");this.o.subscribed&&(a.subscribed=this.o.subscribed);qa(a,cC.N.A.call(this));qa(a,this.j.o);return a};function dC(a){Yj("yt-player-bandwidth",a,2592E3)}function eC(){return ak("yt-player-quality")||"auto"};function fC(a){H.call(this);this.j=a;this.A={};this.M=NaN;this.D=new oe(this.bz,3E4,this);I(this,this.D);this.F=new oe(this.Li,100,this);I(this,this.F);this.o="N";this.C=0;this.U=NaN;this.S=0;this.J=this.X="";this.H=this.K=0;this.L=this.G=!1;this.B=null;navigator.getBattery&&navigator.getBattery().then(x(function(a){this.B=a},this))}B(fC,H);var gC={5:"N","-1":"N",3:"B",0:"EN",2:"PA",1:"PL"};
function hC(a,b,c,d){var e=a.A[b];e||(e=[],a.A[b]=e);a=0<=d?d:YB(a.j);e.push(a.toFixed(3)+":"+c.join(":"))}g=fC.prototype;
g.Li=function(a){a=a||YB(this.j);var b=this.j.F();if(!isNaN(this.T)&&!isNaN(b.A)){var c=b.A-this.T;0<c&&hC(this,"bwm",[c,(b.D-this.W).toFixed(3)],a)}this.T=b.A;this.W=b.D;isNaN(b.j)||hC(this,"bwe",[b.j.toFixed(0)],a);isNaN(b.o)||(c=b.o,b.B<c&&(c=b.B),this.U!=c&&(hC(this,"bh",[c.toFixed(3)],a),this.U=c),this.j.o.experiments.o&&3>c&&("PL"==this.o||"B"==this.o)&&this.F.start());this.B&&hC(this,"bat",[this.B.level,this.B.charging?"1":"0"]);hC(this,"cmt",[this.j.A()],a);0<b.C&&hC(this,"e2el",[b.C,b.G.toFixed(3),
b.F.toFixed(3),b.J.toFixed(3),b.H.toFixed(3)],a)};function iC(a){var b={event:"streamingstats"};if(a.j.j.o){b.fmt=a.j.j.o.id;var c=a.j.j.D;c&&c.id!=b.fmt&&(b.afmt=c.id)}b.cpn=a.j.j.clientPlaybackNonce;b.ei=a.j.j.eventId;b.el=a.j.o.Aa;b.docid=a.j.j.videoId;b.ns=a.j.o.Z;b.fexp=a.j.o.experiments.experimentIds.toString();b.cl=a.j.o.ea;a.j.o.D&&(b.adformat=a.j.o.D);a.j.j.Fa&&(b.live=a.j.j.Kd?"dvr":"live");b.html5="1";return b}
g.Qg=function(a){if(!this.isDisposed()&&!jc(this.A)){this.F.isActive()||this.Li(a);a=jC(this.j.o);var b=a.droppedVideoFrames,c=b-this.S;if(b>a.totalVideoFrames||5E3<c)this.onError("html5.badframedropcount","df."+b+";tf."+a.totalVideoFrames);else 0<c&&hC(this,"df",[c]);this.S=b;a=iC(this);qc(a,this.j.o.o);a=uh(this.j.o.Xc,a);for(var d in this.A)a+="&"+d+"="+this.A[d].join(",");br(a);this.A={};this.D.start()}};
g.Pf=function(){hC(this,"vps",["N"]);this.j.j.Sa&&kC(this,"preload");this.j.j.$k&&kC(this,"reload");this.j.j.zf&&kC(this,"monitor");this.j.o.experiments.aa&&qj(x(this.tB,this),5E3);this.M=sj(x(this.Qg,this),1E4);this.D.start()};
g.tB=function(){var a=ak("yt-player-benchmark")||0;if(!a){for(var b=a=0;20>b;b++){for(var c=xj(),d=0,e=0;1>xj()-c;){for(var f=0;1E3>f;f++)e=e*e%1E3+1;e=e%1E3;d++}d=Math.floor(d+e/1E3);a=Math.max(d,a)}a=Math.floor(Math.log(a)/Math.log(2));Yj("yt-player-benchmark",a,172800)}kC(this,"jsbench-"+a)};g.Aq=function(){this.j.j.L&&kC(this,"drm-"+this.j.j.L.o)};g.onError=function(a,b){var c=this.j.A(),c=[a,c.toFixed(3)];b&&c.push(b);var d=YB(this.j);hC(this,"error",c,d);this.Li(d)};
g.bz=function(){"PL"==this.o&&(hC(this,"vps",[this.o]),this.Qg())};g.R=function(){fC.N.R.call(this);uj(this.M)};function kC(a,b){var c=a.A.cat||[];c.push(b);a.A.cat=c};function lC(a,b,c,d){this.segments=[];this.experimentIds=[];this.Na=this.Ea=this.ga=this.T=this.za=this.autoplay=this.autonav=!1;this.aa="yt";this.H=this.o=this.C=null;this.W=!1;this.B="watchtime"==c;this.X="playback"==c;this.Ca="delayplay"==c;this.S="atr"==c;this.Da="engage"==c;this.Ga=!1;this.Wa=this.S?"/api/stats/"+c:"//"+b.Yc+"/api/stats/"+c;d&&(this.ga=d.fs,d.rtn&&(this.o=d.rtn),this.B?(this.Sb=d.state,0<d.rti&&(this.C=d.rti)):(this.La=d.mos,this.Sa=d.volume,d.at&&(this.adType=d.at),d.allowed&&
(this.J=d.allowed),d.ex_ads&&(this.U=d.ex_ads)),d.autonav&&(this.autonav=d.autonav));this.fb=b.D;this.autoplay=b.autoplay;this.ob=b.ca;this.ub=nc(b.o);this.wa=b.S;this.vb=b.Aa;this.experimentIds=b.experiments.experimentIds;this.ea=b.X;this.aa=b.Z;this.region=b.region;this.Jc=b.ea?b.ea.toString():"";this.userAge=b.userAge;this.userGender=b.userGender;this.Xa=mC();this.Ga=b.experiments.j;aC&&(this.referrer=b.referrer,this.A=b.ga,this.searchQuery=b.searchQuery);this.F=a.oauthToken||this.F;this.autoplay=
a.Fg||this.autoplay;this.autonav=a.Uk||this.autonav;this.H=a.mj;this.clientPlaybackNonce=a.clientPlaybackNonce;this.M=a.vssCredentialsToken;this.na=a.Yl;this.G=a.kj;this.ca=a.Oe;a.o&&(this.ia=a.o.id,a.D&&a.D.id!=this.ia&&(this.L=a.D.id));this.Na=a.Wf;this.wb=a.lj;a.Fa&&(this.Pa=a.Kd?"dvr":"live");this.Lb=a.nm;this.playbackId=a.playbackId;this.eventId=a.eventId;this.playlistId=a.Wa||a.playlistId;this.fa=a.aa;this.ha=a.ca;this.qc=a.Jd;this.subscribed=a.subscribed;this.videoId=a.videoId;this.sc=a.Dh;
this.visitorData=a.visitorData;this.osid=a.osid;this.Rb=a.rh;aC?this.A=a.na||this.A:(this.referrer=a.referrer,this.A=a.na||a.Id,this.searchQuery=a.searchQuery)}
lC.prototype.send=function(a){if(!this.W){var b=nC(this),b=uh(this.Wa,b);if(this.S)this.K&&(a={method:"POST",Db:{atr:this.K}},this.visitorData&&(a.headers={"X-Goog-Visitor-Id":this.visitorData}),wk(b,a));else{var c=this.F&&pk(),d=this.Ga&&!!this.visitorData;if(c||d){var e={};c&&(e.Authorization="Bearer "+this.F);d&&(e["X-Goog-Visitor-Id"]=this.visitorData);wk(b,{headers:e,withCredentials:!0,Xb:a})}else br(b,a)}this.W=!0}};
function nC(a){var b={ns:a.aa,el:a.vb,cpn:a.clientPlaybackNonce,docid:a.videoId,ver:2,referrer:a.referrer,cmt:a.j(a.G),plid:a.playbackId,ei:a.eventId,fmt:a.ia,fs:a.ga?"1":"0",rt:a.j(a.Ta),of:a.Rb,adformat:a.fb,content_v:a.ob,euri:a.wa,subscribed:a.subscribed,lact:a.Xa,live:a.Pa,cl:a.Jc,mos:a.La,q:a.searchQuery,osid:a.osid,state:a.Sb,vm:a.sc,volume:a.Sa};qa(b,a.ub);a.autonav&&(b.autonav="1");a.autoplay&&(b.autoplay="1");a.T&&(b["final"]="1");a.Na&&(b.splay="1");a.ca&&(b.delay=a.ca);a.ea&&(b.hl=a.ea);
a.region&&(b.cr=a.region);p(a.userAge)&&a.userGender&&(b.uga=a.userGender+a.userAge);p(a.Z)&&(b.len=a.j(a.Z));!a.B&&0<a.experimentIds.length&&(b.fexp=a.experimentIds.toString());null!=a.o&&(b.rtn=a.j(a.o));a.A&&(b.feature=a.A);a.playlistId&&(b.list=a.playlistId);a.fa&&(b.ctrl=a.fa);a.ha&&(b.ytr=a.ha);a.qc&&(b.ssrt="1");a.L&&(b.afmt=a.L);a.B?(b.idpj=a.wb,b.ldpj=a.Lb,null!=a.C&&(b.rti=a.j(a.C))):(p(a.adType)&&(b.at=a.adType),p(a.J)&&(b.allowed=a.J),p(a.U)&&(b.ex_ads=a.U));(a.X||a.Ca)&&a.H&&(b.tst=a.H);
a.B&&(b.st=oC(a,F(a.segments,function(a){return a.startTime})),b.et=oC(a,F(a.segments,function(a){return a.endTime})));ob(a.segments,function(a){return 0!=a.visibilityState})&&(b.vis=oC(a,F(a.segments,function(a){return a.visibilityState})));ob(a.segments,function(a){return 1!=a.playbackRate})&&(b.rate=oC(a,F(a.segments,function(a){return a.playbackRate})));ob(a.segments,function(a){return"-"!=a.Wj})&&(b.cc=F(a.segments,function(a){return a.Wj}).join(","));if(ob(a.segments,function(a){return!!a.Sj})){var c=
"au";a.X&&(c="au_d");b[c]=F(a.segments,function(a){return a.Sj}).join(",")}pk()&&a.M&&(b.ctt=a.M,b.cttype=a.na);a.Da&&(b.etype=p(a.D)?a.D:0);return b}lC.prototype.j=function(a){return(1*a.toFixed(3)).toString()};function oC(a,b){return F(b,a.j).join(",")};function pC(a){H.call(this);this.j=a;this.A=new fC(a);I(this,this.A);this.o=new TB(a);this.D="paused";this.F=NaN;this.H=[10,10,10,40];this.J=this.G=0;this.M=this.U=this.L=this.K=this.B=!1;this.C=NaN;this.S=new cC(this.o,this.j.j,this.j.o)}B(pC,H);function qC(a,b,c){var d=YB(a.j);c=isNaN(c)?d:c;c=Math.ceil(c);var e=a.H[a.G];a.G+1<a.H.length&&a.G++;c=c+e;d=1E3*(c-d);a.F=qj(x(a.Py,a,c,b),d);return c}g=pC.prototype;
g.Py=function(a,b){if(!this.isDisposed()){this.F=NaN;this.o.update();var c=XB(this.o),d=rC(this,c);b&&(d.C=a);var e=400<this.J;!(1<c.length)&&c[0].isEmpty()||e||(d.o=qC(this,!0,a));d.send();this.J++}};function sC(a,b){var c=tC(a.j);qa(c,{state:a.D});c=new lC(a.j.j,a.j.o,b,c);c.G=a.j.A();a.j.j.Fa||(c.Z=a.j.D());c.Ta=YB(a.j);c.segments=[UB(a.j)];return c}function rC(a,b){var c=sC(a,"watchtime");c.segments=b;c.G=a.o.j;return c}function uC(a){a.o.update();return rC(a,XB(a.o))}
function vC(a){a.j.j.remarketingUrl&&!a.U&&(wC(a,a.j.j.remarketingUrl),a.U=!0);a.j.j.ppvRemarketingUrl&&!a.M&&(wC(a,a.j.j.ppvRemarketingUrl),a.M=!0);xC(a)}g.Pf=function(){this.A.Pf()};g.onError=function(a,b){this.A.onError(a,b)};
function yC(a,b){if(!a.isDisposed()){U(b.state,2)?(a.D="paused",0<zC(b,2)&&a.B&&uC(a).send()):U(b.state,8)?(a.D="playing",a.B&&isNaN(a.F)&&qC(a,!1)):a.D="paused";var c=a.A,d=b.state,e;e=b.state;if(U(e,128))e="ER";else if(U(e,16)||U(e,32))e="S";else{var f=gC[Lz(e)];"B"==f&&U(e,4)&&(f="PB");e=f}if(e!=c.o){var f=e,h=YB(c.j);if(!(h<c.C)){if("PL"==c.o)c.H+=h-c.C;else if("B"==c.o&&c.G&&(c.G=!1,c.K+=h-c.C,!c.L&&10<=c.K&&180>=c.H)){c.j.G();if(!c.isDisposed()){var k=iC(c);k.qoealert="1";k=uh(c.j.o.Xc,k);br(k)}c.L=
!0}"B"!=f||"PL"!=c.o&&"PB"!=c.o||(c.G=!0);c.C=h}!c.j.o.experiments.o||"B"!=e&&"PB"!=e?hC(c,"cmt",[c.j.A().toFixed(3)]):c.Li();hC(c,"vps",[e]);c.o=e}if(U(d,128))c.onError(d.j.errorCode,d.j.errorDetail);(U(d,2)||U(d,128))&&c.Qg();a.C&&U(b.state,128)&&(a.Qi("error-100"),tj(a.C))}}function AC(a){a.C=sj(x(a.Qi,a,"heartbeat"),3E4)}
g.Qi=function(a){var b=this.j.o,c=this.j.j,c={ns:b.Z,el:b.Aa,eurl:b.S,fmt:c.o?c.o.id:0,html5:1,list:c.playlistId,plid:c.playbackId,cpn:c.clientPlaybackNonce,ei:c.eventId,ps:b.j,noflv:1,st:this.j.A(),video_id:c.videoId,metric:a};b.autoplay&&(c.autoplay="1");"heartbeat"==a&&(c.tpmt=WB(this.o));qa(c,b.o);wC(this,uh("//www.youtube.com/live_204",c))};g.R=function(){pC.N.R.call(this);tj(this.F);this.F=NaN;var a=this.o;uj(a.D);a.D=NaN};
function xC(a){a.j.j.C.eventLabel=a.j.o.Aa;a.j.j.C.playerStyle=a.j.o.j;a.j.j.ha&&(a.j.j.C.feature="pyv");a.j.j.C.vid=a.j.j.videoId;a.j.j.C.isAd=!("adunit"!=a.j.o.Aa&&!a.j.j.ha)}function wC(a,b,c){a.j.o.experiments.j&&a.j.j.visitorData&&ok(b)?wk(b,{Xb:c,headers:{"X-Goog-Visitor-Id":a.j.j.visitorData}}):br(b,c)};function BC(a,b){this.$=b;this.j={}}function CC(a,b,c){if(b){var d=DC(a,b);a.j[b]=d["p-time"];d["iv-event"]=d.link||d["l-class"]||d["link-id"]?2:7;b=Bb(c||[]);30==d["a-type"]&&(c=EC(a,d["a-id"],"cta_annotation_shown"))&&b.push(c);FC(a,d,b)}}function GC(a,b,c,d,e,f){if(b){var h=DC(a,b);h["iv-event"]=3;h["i-time"]=a.j[b]||"";qc(h,d||{});b=Bb(e||[]);30==h["a-type"]&&(d=EC(a,h["a-id"],"cta_annotation_clicked"))&&b.push(d);FC(a,h,b,c,f)}}
function HC(a,b){if(b){var c=DC(a,b);c["iv-event"]=4;c["i-time"]=a.j[b]||"";var d=[];if(30==c["a-type"]){var e=EC(a,c["a-id"],"cta_annotation_closed");e&&d.push(e)}FC(a,c,d)}}function EC(a,b,c){a=a.$.getVideoData();if(a.fb){if((c=a.fb[c])&&Oq.test(c))return a=za("[ANNOTATION_ID]"),0<=c.indexOf("[ANNOTATION_ID]")?c=c.replace("[ANNOTATION_ID]",b):0<=c.indexOf(a)&&(c=c.replace(a,b)),c}else if(a.ia)return mk(a.ia,{label:c,value:"a_id="+b});return""}
function FC(a,b,c,d,e){var f=1,h,k=-1;if(d){var l=!1;h=function(){f--;f||l||(clearTimeout(k),l=!0,d())};k=setTimeout(function(){l=!0;d()},1E3)}E(c||[],function(a){f++;br(a,h)});e&&(f++,0!=e&&a.$.Zf(e,h));a.cb(b,h)}function DC(a,b){var c={};if(b){var d=new Gh(b);E(d.Ma(),function(a){c[a]=escape(d.get(a,""))})}c["p-time"]=a.$.getCurrentTime().toFixed(2);c.ps=a.$.V().j;return c}function IC(a,b,c,d){d=DC(a,d);d["iv-event"]=b;d["a-id"]||(d["a-id"]="card:drawer");d["a-type"]=51;FC(a,d,c)}
function JC(a,b,c,d){c&&(c=DC(a,c),c["iv-event"]=b,FC(a,c,d))}BC.prototype.cb=function(a,b){qr(this.$,"iv",a,b)};function KC(a,b){this.W=a;this.context=b;this.Zl=!1;this.H=0}function LC(a,b,c,d,e,f){b=new hr(b,c,{id:d});b.j="iv-module";e&&jr(b).subscribe("onEnter",e,a);f&&jr(b).subscribe("onExit",f,a);a.context.o.gb([b])}g=KC.prototype;g.Si=function(){this.context.B.subscribe("onResize",this.Jh,this)};g.la=function(){return this.W};
g.Lf=function(a,b,c,d,e,f){this.context.j.P(a,"click",pa(this.yi,a,b,c,d,e||[],f||0),this);this.context.j.P(a,"touchstart",pa(function(){this.Zl=!1}),this);this.context.j.P(a,"touchmove",pa(function(){this.Zl=!0}),this)};g.yi=function(a,b,c,d,e,f,h){if(this.Zl)return!1;h.stopPropagation();h.preventDefault();(a=QB(b,c,this.context.C.videoId))&&MC(this,a,SB(a,b.target),d,e,f,b.j);return!1};function NC(a){return A()-a.H}g.lh=function(){this.H=A()};g.da=function(){};g.destroy=function(){Wf(this.la())};
g.Jh=function(){};function MC(a,b,c,d,e,f,h){var k=x(function(){h&&this.context.o.pauseVideo();Qz(b,void 0);Rz(b,"current"==c?"_top":void 0)},a);"new"==c&&(k(),k=null);var l={};l.interval=NC(a);GC(a.context.logger,d,k,l,e,f)};function OC(a,b){R.call(this,["div","ytp-cards-teaser",["div","ytp-cards-teaser-box"],["div","ytp-cards-teaser-text","{{text}}"]]);this.$=a;this.D=new Pr(this,250,!1);I(this,this.D);this.G=b;this.ya=null;this.o=[];this.C=this.B=null;S(this,a,"cardsteasershow",this.H);S(this,a,"cardsteaserhide",this.F);this.P("click",this.J)}B(OC,R);OC.prototype.J=function(){this.F();Gj("iv-teaser-clicked",!!this.ya);PC(this.$,!0)};
OC.prototype.H=function(a){this.ya||!a||QC(this.$)||this.B&&this.B.isActive()||(RC(this,a.teaserText,a.durationMs),Gj("iv-teaser-shown"))};function RC(a,b,c){Ar(a,"text",b);Rr(a.D);a.B=new oe(function(){K(this.$.sa(),"ytp-cards-teaser-shown")},0,a);a.B.start();SC(a.G,!1);a.ya=new oe(a.F,580+c,a);a.ya.start();a.o.push(a.P("mouseover",a.ya.stop,a.ya));a.o.push(a.P("mouseout",function(){this.ya.start()}))}
OC.prototype.F=function(){!this.ya||this.C&&this.C.isActive()||(this.D.da(),te(this.$.sa(),"ytp-cards-teaser-shown"),this.C=new oe(function(){for(var a=0;a<this.o.length;a++)this.ua(this.o[a]);this.o=[];this.ya&&(this.ya.dispose(),this.ya=null);SC(this.G,!0)},330,this),this.C.start())};OC.prototype.R=function(){var a=this.$.sa();a&&te(a,"ytp-cards-teaser-shown");Vb(this.B,this.C,this.ya);OC.N.R.call(this)};function TC(a,b,c){this.id=a;this.timestamp=b.timestamp||0;this.type=b.card_type;this.teaserText=b.teaser_text;this.teaserDurationMs=b.teaser_duration_ms;this.startMs=b.start_ms;this.B=b.auto_open||!1;this.Va=c;this.sponsored=b.sponsored||!1;a=b.tracking||{};this.j={fx:a.impression,click:a.click,close:a.close,SB:a.teaser_impression,Ol:a.teaser_click}};function UC(a,b,c){TC.call(this,a,b,c);this.channelId=b.channel_id;this.customMessage=b.custom_message;this.profileImageUrl=b.image_url;this.title=b.title;this.o=b.meta_info;this.url=KB({pause_on_navigation:b.pause_on_navigation,target:b.target||"new",value:b.url})}B(UC,TC);function VC(a,b,c){TC.call(this,a,b,c);this.imageUrl=b.image_url;this.displayDomain=b.display_domain;this.showLinkIcon=b.show_link_icon;this.o=b.button_icon_url;this.title=b.title;this.customMessage=b.custom_message;this.url=KB({pause_on_navigation:b.pause_on_navigation,target:b.target||"new",value:b.url})}B(VC,TC);function WC(a,b,c){VC.call(this,a,b,c);this.C=b.ypc_flow_type;this.A=b.innertube_request_params}B(WC,VC);function XC(a,b,c){this.j=a;this.o=b;this.A=c}
function YC(a,b){var c=["ul",""];E(b.choices,function(a){c.push(["li",b.o+"-"+a.index.toString(),["label",b.A==a.index?"iv-card-poll-choice-checked":"",["div","iv-card-poll-choice-percent"],a.desc,["input","iv-card-poll-choice-input",{type:"radio",name:b.o,value:a.index.toString()}]],["div","iv-card-poll-result",["div","iv-card-poll-result-bar"]]])},a);var d=["iv-card","iv-card-poll"],e=[["div","iv-card-content",["h2","",b.title],["form","",["fieldset","",c]]]];b.signinUrl&&(d.push("iv-card-poll-unavailable"),
e.push(["div",["iv-card-poll-signin"],["h2","",Q("YTP_DRAWER_POLL_SIGNIN_TITLE")],["a",["iv-card-poll-signin-button","iv-button"],{href:b.signinUrl},["span",["iv-button-content"],Q("YTP_SIGN_IN")]]]));d=new R(["div",d,{tabindex:"0"}].concat(e));e=d.element;void 0!==b.A&&ZC(b,e);RA(a.j.j,e,pa(a.C,b),a);b.signinUrl&&(e=Gf("iv-card-poll-signin-button",e),a.o(e,KB({target:"current",value:b.signinUrl}),b.id,b.Va,b.j.click,5));return d}
function $C(a,b,c){var d;d=aD(a,b.url,b.id);var e=b.displayDomain?["div","iv-card-image-text",b.displayDomain]:"",f=bD(b);d=["div","iv-card",{tabindex:"0"},["a","iv-click-target",{href:d},cD(b.imageUrl,e),["div","iv-card-content",["h2","",b.title],f]]];d=new R(d);dD(a,d,b,c);return d}
function eD(a,b,c){var d=aD(a,b.url,b.id),e=["yt-badge","standalone-ypc-badge-renderer-icon",b.D?"standalone-ypc-badge-renderer-icon-purchased":"standalone-ypc-badge-renderer-icon-available"],f={},e=b.C&&b.A?["span",e,f,b.A]:"";c=["div",["iv-card",c],{tabindex:"0"},["a","iv-click-target",{href:d},cD(b.F,e?["div","iv-card-image-text",e,b.priceText]:""),["div","iv-card-content",["h2","iv-card-primary-link",b.title],fD(b)]]];c=new R(c);dD(a,c,b);return c}
function gD(a){return a.customMessage?["div","iv-card-message",a.customMessage]:""}function cD(a,b){var c=["div","iv-card-image",{style:"background-image: url("+a+");"}];b&&c.push(b);return c}function fD(a){if(!a.o||0==a.o.length)return"";var b=["ul","iv-card-meta-info"];E(a.o,function(a){b.push(["li","",a])});return b}
function bD(a){if(!a.customMessage)return"";var b=["iv-card-action","iv-card-primary-link"],c={};a.o&&(b.push("iv-card-action-icon"),c.style="background-image: url("+a.o+");");b=["div",b,c,["span","",a.customMessage]];a.showLinkIcon&&(b.push("\u00a0"),b.push(["span","iv-card-link-icon"]));return b}
XC.prototype.C=function(a,b){var c=kg(b.target,"iv-card-poll");if(c){var d=ig(b.target,"label");K(d,"iv-card-poll-choice-checked");a:{if(d=b.target.form.elements[a.o]){if(d.type){d=fk(d);break a}for(var e=0;e<d.length;e++){var f=fk(d[e]);if(f){d=f;break a}}}d=null}a.choices[d].count++;ZC(a,c);vk(this.j.C.af,{yd:{action_poll_vote:1},Db:{poll_id:a.id,index:d}});c={};c["link-id"]=d;GC(this.j.logger,a.Va,void 0,c,a.j.click,5)}};
function ZC(a,b){hD(a,b);se(b,["iv-card-poll-expanded","iv-card-poll-voted"]);b.querySelector("fieldset").disabled=!0}function hD(a,b){var c=0;E(a.choices,function(a){c+=a.count});for(var c=c||1,d=0;d<a.choices.length;d++){var e=a.choices[d],f=e.count/c,e=Gf(a.o+"-"+e.index.toString(),b),h=Gf("iv-card-poll-choice-percent",e);dg(h,Q("YTP_DRAWER_POLL_PERCENT",{PERCENT:(100*f).toFixed(0)}));e=Gf("iv-card-poll-result-bar",e);og(e,"transform","scaleX("+f.toFixed(2)+")")}}
XC.prototype.B=function(a,b){var c=t("yt.www.ypc.bootstrap.api.loadOffersForInnertubeRequestParams");c&&(c=pa(c,a.C,a.A));iD(this,a,b,c)};XC.prototype.D=function(a,b){var c=t("yt.www.ypc.bootstrap.api.loadOffers");c&&(c=pa(c,a.C,a.A,a.D));iD(this,a,b,c)};function iD(a,b,c,d){c.stopPropagation();c.preventDefault();d?(a.j.o.pauseVideo(),a.j.o.Ja()&&Vz(a.j.o),GC(a.j.logger,b.Va,void 0,void 0,b.j.click,5),d()):a.A(c.target,b.url,b.id,b.Va,b.j.click,5,c)}
function aD(a,b,c){return b?QB(b,c,a.j.C.videoId,a.j.A):null}function dD(a,b,c,d){b=Ef(b.element);E(b,function(a){d?this.j.j.P(a,"click",d,this):this.o(a,c.url,c.id,c.Va,c.j.click,5)},a)};function jD(a,b,c){TC.call(this,a,b,c);this.A=b.image_url;this.playlistVideoCount=b.playlist_video_count;this.customMessage=b.custom_message;this.title=b.title;this.o=b.meta_info;this.url=KB({pause_on_navigation:b.pause_on_navigation,target:b.target||"new",value:b.url})}B(jD,TC);function kD(a,b,c){TC.call(this,a,b,c);this.o=this.id.replace(/[^a-z0-9-]/gi,"-");this.title=b.title;this.choices=b.choices;this.A=b.old_vote;this.signinUrl=b.signin_url||null}B(kD,TC);function lD(a,b,c){VC.call(this,a,b,c);this.offers=[];a=b.offers||[];for(b=0;b<a.length;b++)this.offers.push(new mD(a[b]))}B(lD,VC);function mD(a){this.merchant=D(a.merchant);this.price=D(a.price)};function nD(a,b,c){VC.call(this,a,b,c);this.C=b.ypc_item_type;this.A=b.ypc_item_id;this.D=b.ypc_flow_type}B(nD,VC);function oD(a,b,c){TC.call(this,a,b,c);this.C=b.image_url;this.videoDuration=b.video_duration||null;this.customMessage=b.custom_message;this.title=b.title;this.o=b.meta_info;this.A=!!b.is_live_now;this.url=KB({pause_on_navigation:b.pause_on_navigation,target:b.target||"new",value:b.url})}B(oD,TC);function pD(a,b,c){TC.call(this,a,b,c);this.F=b.image_url;this.A=b.badge_symbol||"";this.priceText=b.price_text||"";this.title=b.title;this.o=b.meta_info;this.C=!!b.is_paygated;this.D=!!b.user_has_entitlement;this.url=KB({target:b.target||"new",value:b.url})}B(pD,TC);function qD(a,b,c){KC.call(this,b,c);this.$=a;this.wi=this.C=this.M=this.S=!1;this.U=null;this.Uj=new oe(v,c.A.useTabletControls?4E3:3E3);this.o=new XC(c,x(this.Lf,this),x(this.yi,this));a=["div","iv-drawer",["div","iv-drawer-header",{"aria-role":"heading",tabindex:"0"},Q("YTP_DRAWER_HEADER_TEXT_2"),["button",["iv-drawer-close-button","ytp-button"],{"aria-label":Q("YTP_DRAWER_CLOSE_BUTTON_ARIA_LABEL")}]],["div","iv-drawer-content"]];this.F=new R(a);this.D=this.F.element;this.L=new Pr(this.F,330,!1);
this.T=Gf("iv-drawer-header",this.D);this.tc=Gf("iv-drawer-content",this.D);a=["iv-drawer-teaser"];this.o.j.A.experiments.bv&&a.push("iv-exp-cards-teaser-prominent");a=["div",a,["div","iv-drawer-teaser-box"],["div","iv-drawer-teaser-text"],["button",{title:Q("YTP_DRAWER_HEADER_TEXT_2"),"aria-label":Q("YTP_CARDS_BUTTON_ARIA_LABEL")},["span"]]];this.X=(new R(a)).element;Gf("iv-drawer-teaser-text",this.X);this.j=[];this.B=this.G=this.A=null;this.K=[];this.context.A.experiments.xa("cards_drawer_auto_open")&&
2!=c.o.getPresentingPlayerType()&&(a=this.context.A.experiments.jd("cards_drawer_auto_open_offset"),c=1E3*c.C.lengthSeconds,b=0<=a?a:c+a,b<c&&(LC(this,b,0x8000000000000,"",this.Zu),a=this.context.A.experiments.jd("cards_drawer_auto_open_duration"),b+=a,0<=a&&b<c&&LC(this,b,0x8000000000000,"",this.Xu)))}B(qD,KC);function rD(a,b){var c=sD(a,b);c&&(c==a.A&&(a.A=null),a.$.or(c.sb.id),Wf(c.Xj),xb(a.j,c),a.Jh())}g=qD.prototype;
g.isAvailable=function(){var a;if(a=!!this.j.length)(a=this.$.sa())?(a=Jg(a),a=177<a.width&&177<a.height):a=!1;return a};g.Zu=function(){this.context.A.experiments.xa("product_listing_ads_html5")&&!tD(this)||uD(this)};g.Xu=function(){vD(this)};
function uD(a,b){a.C||(Rr(a.L),a.G=new oe(function(){K(this.context.o.sa(),"ytp-iv-drawer-open")},0,a),a.G.start(),a.C=!0,a.H=A(),IC(a.context.logger,7,void 0,b&&b.sb?b.sb.Va:void 0),E(a.j,function(a){a.Ro||(a.Ro=!0,CC(this.context.logger,a.sb.Va,a.sb.j.fx))},a),wD(a.$),a.B=new oe(function(){var a;a:{var b=document;try{a=b&&b.activeElement;break a}catch(e){}a=null}this.J=a;this.T.focus()},330,a),a.B.start())}
function vD(a){a.C&&(a.L.da(),te(a.context.o.sa(),"ytp-iv-drawer-open"),a.C=!1,IC(a.context.logger,10),wD(a.$),a.B&&a.B.stop(),a.B=new oe(function(){this.J&&(this.J.focus(),this.J=null)},330,a),a.B.start())}g.Jh=function(){var a=this.isAvailable();Lr(this.la(),a);M(this.context.o.sa(),"ytp-iv-drawer-enabled",a);a&&(this.M||(IC(this.context.logger,11),this.M=!0),E(this.j,function(a){a.Qo||(a.Qo=!0,JC(this.context.logger,11,a.sb.Va))},this));wD(this.$)};
g.destroy=function(){xD(this.$,!1);this.$.sa().removeChild(this.D);Fj(this.K);Jm(this.U);this.G&&this.G.dispose();this.B&&this.B.dispose();qD.N.destroy.call(this)};var yD={adspaycreator:VC,associated:VC,associated:VC,collaborator:UC,donation:WC,episode:pD,fundraising:VC,location:VC,merch:VC,movie:pD,playlist:jD,poll:kD,product:VC,productListing:lD,tip:nD,video:oD};
function zD(a){var b=Gf("iv-drawer-close-button",a.D);a.context.j.P(b,"click",a.hv,a);a.context.j.P(a.tc,"touchend",function(){this.Uj.start()},a);a.context.j.P(a.tc,"scroll",a.xv,a);a.U=Hm(a.tc,"mousewheel",x(a.ED,a));a.context.B.subscribe("onHideControls",function(){this.wi=!0},a);a.context.B.subscribe("onShowControls",function(){this.wi=!1},a);a.context.B.subscribe("onVideoAreaChange",function(){this.wi=re(this.$.sa(),"ytp-autohide")},a);a.K.push(Dj("iv-teaser-shown",a.yx,a));a.K.push(Dj("iv-teaser-clicked",
a.xx,a))}g=qD.prototype;g.ED=function(a){this.Uj.start();a.preventDefault();if(a=Um(a||window.event,!1))this.tc.scrollTop+=a};
function AD(a,b){switch(b.type){case "adspaycreator":case "associated":case "fundraising":case "location":case "merch":case "product":return $C(a.o,b);case "collaborator":var c=a.o,d=["div",["iv-card","iv-card-channel"],{tabindex:"0"},["a",["iv-click-target","g-hovercard"],{href:aD(c,b.url,b.id),"data-ytid":b.channelId},cD(b.profileImageUrl),["div","iv-card-content",gD(b),["h2","iv-card-primary-link",b.title],fD(b)]]],d=new R(d);dD(c,d,b);return d;case "donation":return c=a.o,$C(c,b,pa(c.B,b));case "episode":return eD(a.o,
b,"iv-card-episode");case "movie":return eD(a.o,b,"iv-card-movie");case "playlist":return c=a.o,d=["div",["iv-card","iv-card-playlist"],{tabindex:"0"},["a","iv-click-target",{href:aD(c,b.url,b.id)},cD(b.A,["div","iv-card-image-overlay",["span","iv-card-playlist-video-count",b.playlistVideoCount.toString()]]),["div","iv-card-content",gD(b),["h2","iv-card-primary-link",b.title],fD(b)]]],d=new R(d),dD(c,d,b),d;case "poll":return YC(a.o,b);case "productListing":var c=a.o,d=aD(c,b.url,b.id),e=!ub(b.offers)&&
(b.sponsored||c.j.A.experiments.WB),f=["iv-card"],h="",k=bD(b);e&&(f.push("iv-card-product-listing"),h="iv-card-primary-link",k=b.offers[0],e=["div",null],k.price&&e.push(["div","iv-card-offer-price",k.price]),k.merchant&&e.push(["div","iv-card-offer-merchant",k.merchant]),k=e);e=b.sponsored?["div","iv-card-sponsored",Q("YTP_SPONSORED"),["div","iv-ad-info-container",["div","iv-ad-info","{{adInfo}}"],["div","iv-ad-info-icon-container",["div","iv-ad-info-icon"],["div","iv-ad-info-callout"]]]]:"";d=
new R(["div",f,{tabindex:"0"},["a",["iv-card-image","iv-click-target"],{style:"background-image: url("+b.imageUrl+");",href:d,"aria-hidden":"true",tabindex:"-1"}],["div","iv-card-content",e,["a","iv-click-target",{href:d},["h2",h,b.title],k]]]);f=Rf("span");f.innerHTML=Q("YTP_AD_SETTINGS_INFO",{BEGIN_FORMAT:'<a target="_blank" href="https://www.google.com/settings/ads/onweb">',END_FORMAT:"</a>"});d.Fb(f,"adInfo");dD(c,d,b);return d;case "tip":return c=a.o,$C(c,b,pa(c.D,b));case "video":return c=a.o,
d=aD(c,b.url,b.id),f=b.videoDuration?["span","iv-card-video-duration",b.videoDuration]:"",h=b.A?["span",["yt-badge","yt-badge-live"],Q("YTP_LIVE_NOW")]:"",d=["div",["iv-card","iv-card-video"],{tabindex:"0"},["a","iv-click-target",{href:d},cD(b.C,f),["div","iv-card-content",gD(b),["h2","iv-card-primary-link",b.title],fD(b),h]]],d=new R(d),dD(c,d,b),d}return null}
function BD(a,b){if(0==a.j.length)return 0;var c=sb(a.j,function(a){return b.sb.startMs>a.sb.startMs||b.sb.startMs==a.sb.startMs&&b.sb.timestamp>=a.sb.timestamp?!0:!1});return-1==c?0:c+1}
g.zq=function(a){if(!re(this.$.sa(),"ytp-cards-teaser-shown")){this.A!=a&&(this.A=a);var b;if(b=Mr(this.la()))2==this.context.o.getPresentingPlayerType()?b=1==(isNaN(void 0)?this.context.o.getAdState():void 0):(b=isNaN(void 0)?this.context.o.getPlayerState():void 0,b=1==b||0==b&&0===this.context.o.getCurrentTime());b&&a.sb.teaserDurationMs&&xD(this.$,!0,{teaserText:a.sb.teaserText,durationMs:a.sb.teaserDurationMs});(!this.C||!this.Uj.isActive()&&this.wi)&&CD(this,a)}};
g.HB=function(a){this.C||(this.A=a,CD(this,a),uD(this,a))};function CD(a,b){if(a.F.A){var c=new bB([0,a.tc.scrollTop],[0,b.Xj.offsetTop],600,fB);a.context.j.P(c,"animate",function(a){this.tc.scrollTop=a.y},a);a.context.j.P(c,"finish",function(a){this.tc.scrollTop=a.y},a);c.play()}else a.F.yb(!0),a.tc.scrollTop=b.Xj.offsetTop,a.F.yb(!1)}g.hv=function(){this.C&&(IC(this.context.logger,4,DD(this).j.close),vD(this))};g.xv=function(){M(this.D,"iv-drawer-scrolled",0<this.tc.scrollTop)};
function DD(a){return a.A&&a.A.sb||a.j[0]&&a.j[0].sb}function sD(a,b){return G(a.j,function(a){return a.sb.id==b},a)}g.yx=function(){var a=DD(this);JC(this.context.logger,8,a.Va,a.j.SB)};g.xx=function(a){var b=DD(this);this.A?a?(a=this.context.logger,JC(a,9,b.Va,b.j.Ol)):(a=this.context.logger,JC(a,12,b.Va,b.j.Ol)):(a=this.context.logger,IC(a,12,b.j.Ol));a.$.Zf(4,void 0)};function tD(a){return ob(a.j,function(a){return a.sb.sponsored&&"productListing"==a.sb.type})};var ED=/#(.)(.)(.)/;function FD(a){if(!GD.test(a))throw Error("'"+a+"' is not a valid hex color");4==a.length&&(a=a.replace(ED,"#$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 GD=/^#(?:[0-9a-f]{3}){1,2}$/i;function HD(a,b,c,d,e){bB.call(this,b,c,d,e);this.element=a}B(HD,bB);HD.prototype.B=v;HD.prototype.ml=function(){this.B();HD.N.ml.call(this)};HD.prototype.Lg=function(){this.B();HD.N.Lg.call(this)};HD.prototype.Ci=function(){this.B();HD.N.Ci.call(this)};function ID(a,b,c,d,e){if(2!=b.length||2!=c.length)throw Error("Start and end points must be 2D");HD.apply(this,arguments)}B(ID,HD);
ID.prototype.B=function(){this.element.style.left=Math.round(this.o[0])+"px";this.element.style.top=Math.round(this.o[1])+"px"};function JD(a,b,c){KC.call(this,a,b);this.annotation=c;this.isActive=!1}B(JD,KC);JD.prototype.Si=function(){JD.N.Si.call(this);var a=this.annotation.data;"start_ms"in a&&"end_ms"in a&&LC(this,this.annotation.data.start_ms,this.annotation.data.end_ms,this.annotation.id,this.lh,this.da)};function KD(a,b,c){JD.call(this,a,b,c);this.o=null;this.F=!1;this.j=null;this.A=!1;this.B=0;this.D=this.C=null}B(KD,JD);KD.prototype.J=function(a,b,c,d){this.j.stop();if(!this.A){var e=Jg(a);Hg(a,e.width);Hg(b,e.width);ug(c,e.width,e.height-Math.max(Math.min(e.height,d)/2+Math.round(10),20));this.A=!0;Nr(a);this.C=new oe(function(){K(this.la(),"iv-branding-active")},0,this);this.C.start()}};
KD.prototype.G=function(a,b){te(this.la(),"iv-branding-active");this.D=new oe(function(){Or(a);Hg(b,0)},250);this.D.start();this.A=!1};
KD.prototype.lh=function(){if(!this.isActive){KD.N.lh.call(this);if(!this.F){K(this.la(),"iv-branding");var a=this.annotation.data;this.B=a.image_width;this.o=O("img",{src:a.image_url,"class":"branding-img iv-click-target hid",width:a.image_width,height:a.image_height});var b=O("div","branding-img-container",this.o);this.la().appendChild(b);var c=O("div","iv-branding-context-name");dg(c,a.channel_name);var d=O("div","iv-branding-context-subscribe");this.annotation.A?d.innerHTML=this.annotation.A:
a.num_subscribers&&dg(d,a.num_subscribers);b=O("div","iv-branding-context-subscribe-caret");c=O("div",["branding-context-container-inner","hid"],b,c,d);d=O("div","branding-context-container-outer",c);og(d,"right",this.B+"px");this.la().appendChild(d);this.Lf(this.o,LD(this.annotation),this.annotation.id,this.annotation.Va);this.j=new oe(pa(this.G,c,d),500,this);this.context.j.P(this.la(),"mouseover",x(this.J,this,c,d,b,a.image_height));this.context.j.P(this.la(),"mouseout",x(this.j.start,this.j));
this.F=!0}CC(this.context.logger,this.annotation.Va);Nr(this.la());this.isActive=!0;var a=this.o,e,b=Lg(a).width,c=ga(void 0)?void 0:b;e=e||0;ug(a,c);e=new ID(a,[c,a.offsetTop],[c-b-e,a.offsetTop],200,eB);this.context.j.P(e,"begin",pa(Nr,a));e.play()}};KD.prototype.da=function(){this.isActive&&(Or(this.la()),this.isActive=!1)};function MD(a,b,c,d,e,f){this.j=a;this.A=b;this.C=c;this.logger=d;this.o=e;this.B=f};function ND(a,b,c){this.type=a;this.trigger=b;this.url=c}var OD={CLOSE:"close",AH:"openUrl",Bu:"subscribe"},PD={CLICK:"click",CLOSE:"close",HIDDEN:"hidden",eI:"rollOut",tu:"rollOver",wu:"shown"};function QD(a){if(!a)return null;var b=vB(a.type,OD),c=vB(a.trigger,PD),d=KB(rB(a.url));rB(a.subscribeData);return b?new ND(b,c,d):null};function RD(a,b,c,d,e,f,h,k,l,n,r,u,z,y){this.D=a;this.B=b;this.F=c;this.C=d;this.o=e;this.K=f;this.A=h;this.J=k;this.textSize=l;this.G=n;this.H=r;this.effects=u;this.j=z;this.L=y}
function SD(a){if(!a)return null;var b=tB(a.fgColor,"#1A1A1A"),c=tB(a.bgColor,"#FFF"),d=tB(a.borderColor,"#000"),e=yB(a.borderWidth,0,5,!1,0),f=yB(a.bgAlpha,0,1,!1,.8),h=tB(a.highlightFontColor,"#F2F2F2"),k=yB(a.highlightWidth,0,5,!1,3),l=uB(a.textAlign),n=yB(a.textSize,3.3,30.1,!0,3.6107),r=uB(a.fontWeight),u=BB(a.padding),z=CB(a.effects),y=yB(a.cornerRadius,0,10,!0,0);if(a=rB(a.gradient)){var V=yB(a.x1,0,100,!0,0),va=yB(a.y1,0,100,!0,0),L=yB(a.x2,0,100,!0,100),wa=yB(a.y2,0,100,!0,100),cc=tB(a.color1,
"#FFF"),Dg=tB(a.color2,"#000");a=new TD(V,va,L,wa,cc,Dg,yB(a.opacity1,0,100,!0,100),yB(a.opacity2,0,100,!0,0))}else a=null;return new RD(b,c,d,e,f,h,k,l,n,r,u,z,y,a)}function TD(a,b,c,d,e,f,h,k){this.C=a;this.F=b;this.D=c;this.G=d;this.j=e;this.o=f;this.A=h;this.B=k};function UD(a,b){this.j=a;this.videoId=b};var VD={qJ:"xx",rJ:"xy",uJ:"yx",vJ:"yy"};function WD(a,b,c){var d=a.D,e=a.F,f=a.j?a.j:"xy",h=XD(c,a.B,f);a=YD(c,a.o,f);var f=640*b.width*h/100,k=360*b.height*a/100;return new Ke(0==d?640*b.left*h/100:0<d?d:c.width+d-f,0==e?360*b.top*a/100:0<e?e:c.height+e-k,f,k)}function XD(a,b,c){var d=(c="xx"==c||"xy"==c)?640:360;return(d+((c?a.width:a.height)-d)*b)/d}function YD(a,b,c){var d=(c="xy"==c||"yy"==c)?360:640;return(d+((c?a.height:a.width)-d)*b)/d};function ZD(a,b,c,d,e,f,h,k,l,n,r){this.x=a;this.y=b;this.C=c;this.A=d;this.t=e;this.J=f;this.D=h;this.F=k;this.B=l;this.o=n;this.j=r}function $D(a,b){if(!a)return null;var c=xB(a.x,0),d=xB(a.y,0),e=xB(a.w,0),f=xB(a.h,0),h=zB(a.t),k=xB(a.scaleSlope,1);return b(c,d,e,f,h,xB(a.d,0),xB(a.px,0),xB(a.py,0),xB(a.scaleSlopeX,k),xB(a.scaleSlopeY,k),vB(a.scaleDimension,VD,"xy"))}
function aE(a,b){var c=bE(b,WD(a,new Ke(a.x,a.y,a.C,a.A),b.j)),d=b.j,e=c.clone();d&&!d.contains(c)&&(c.width<d.width?e.left=De(c.left,d.left,d.left+d.width-c.width):(e.left=d.left,e.width=d.width),c.height<d.height?e.top=De(c.top,d.top,d.top+d.height-c.height):(e.top=d.top,e.height=d.height));return e}function cE(a){return a?$D(a,function(a,c,d,e,f,h,k,l,n,r,u){return new ZD(a,c,d,e,f,h,k,l,n,r,u)}):null};function dE(a,b,c,d,e,f,h,k,l,n,r,u,z){ZD.call(this,a,b,c,d,e,k,l,n,r,u,z);this.G=f;this.H=h}B(dE,ZD);function eE(a){if(!a)return null;var b=xB(a.sx,0),c=xB(a.sy,0);return $D(a,function(a,e,f,h,k,l,n,r,u,z,y){return new dE(a,e,f,h,k,b,c,l,n,r,u,z,y)})};function fE(a,b,c,d){this.type=a;this.o=b;this.j=c;this.A=d}var gE={Ss:"anchored",SH:"rect",jI:"shapeless"};function hE(a){if(!a)return null;var b=vB(a.type,gE,"rect"),c=AB(a.rectRegion,cE),d=AB(a.anchoredRegion,eE);a=AB(a.shapelessRegion,cE);return new fE(b,c,d,a)}function iE(a){return a.o&&a.o.length?a.o[0]:a.j&&a.j.length?a.j[0]:a.A&&a.A.length?a.A[0]:null};function jE(a,b){this.o=a;this.j=b};function kE(a,b){this.state=a;this.j=b}var lE={CLOSED:"closed",FH:"playerControlShow",tu:"rollOver",wu:"shown"};function mE(a){if(!a)return null;var b=vB(a.state,lE);a=sB(a.ref);return b?new kE(b,a):null};function nE(a,b,c,d){this.j=a||[];this.A=b||[];this.B=c;this.o=d;this.value=!1}function oE(a){if(!a)return null;var b=AB(a.condition,mE),c=AB(a.notCondition,mE),d=wB(a.show_delay,!1);a=wB(a.hide_delay,!1);return b||c?new nE(b,c,d,a):null}function pE(a,b,c){E(a.j,pa(b,!1),c);E(a.A,pa(b,!0),c)};function qE(a,b,c,d,e,f,h,k,l,n,r,u,z,y,V,va){this.id=a;this.author=b;this.type=c;this.style=d;this.D=e;this.o=f;this.C=h||[];this.H=k||[];this.j=l;this.G=n;this.B=r;this.F=u;this.A=y;this.data=V;this.Va=va}
var rE={Ss:"anchored",BRANDING:"branding",CHANNEL:"channel",iG:"cta",MG:"highlightText",YG:"label",PLAYLIST:"playlist",HH:"popup",tI:"speech",Bu:"subscribe",FI:"title",VIDEO:"video",kJ:"vote",mJ:"website"},sE={BRANDING:"branding",XF:"card",LG:"highlight",IMAGE:"image",MARKER:"marker",LH:"promotion",TEXT:"text",nJ:"widget"},tE={gJ:"video_relative",GH:"player_relative"};
function uE(a){if(!a)return null;var b=sB(a.id),c=sB(a.author),d=vB(a.type,sE),e=vB(a.style,rE),f=uB(rB(a.TEXT)),h=uB(a.data),h=0!=h.length?ve(h):{},k;var l=rB(a.segment);l?(sB(l.timeRelative),k=sB(l.spaceRelative),k=(l=AB(l.movingRegion,hE))?new jE(k,l):null):k=null;var l=AB(a.action,QD),n=AB(a.trigger,oE),r=SD(rB(a.appearance));r||(r=SD({}));var u=vB(a.coordinate_system,tE,"video_relative"),z;z=(z=rB(a.image_source))?new UD(uB(z.standard_url),uB(z.video_id)):null;var y=wB(a.closeable,!0),V=uB(a.html_blob);
a=uB(a.log_data);return b&&d?new qE(b,c,d,e,f,k,l,n,r,u,z,y,0,V,h,a):null}function LD(a){return(a=vE(a,function(a){return"openUrl"==a.type&&null!=a.url}))?a.url:null}qE.prototype.showLinkIcon=function(){return wE(this,function(a){return null!=a.url&&a.url.showLinkIcon})};function xE(a){return wE(a,function(a){return"click"==a.trigger})}function wE(a,b){return ob(a.C,b,void 0)}function yE(a,b,c){E(a.C,b,c)}function vE(a,b){return G(a.C,b,void 0)}function zE(a,b,c){E(a.H,b,c)}
function AE(a,b){F(a.H,b,void 0)}function BE(a){return(a=CE(a))?iE(a):null}function CE(a){a.o?(a=a.o,a=a.j.length?a.j[0]:null):a=null;return a}function DE(a,b){var c=BE(a);return c&&b?YD(b,c.o,c.j?c.j:"xy"):1};function EE(a,b,c){JD.call(this,a,b,c);this.B=this.o=this.C=!1;this.A=5E3;this.j=null;this.kg=O("div","iv-promo-contents")}B(EE,JD);
function FE(a){var b=a.annotation.data,c;if("cta"==a.annotation.style)c=6;else if("video"==a.annotation.style||"playlist"==a.annotation.style)c=7;a.A=b.collapse_delay_ms||a.A;var d=["iv-promo","iv-promo-inactive"],e;if(b.image_url){e=O("div",["iv-promo-img","iv-click-target"]);var f=O("img",{src:b.image_url});e.appendChild(f);b.video_duration&&!b.is_live?(f=O("span","iv-promo-video-duration",b.video_duration),e.appendChild(f)):b.playlist_length&&(f=O("span","iv-promo-playlist-length",b.playlist_length.toString()),
e.appendChild(f));a.Lf(e,LD(a.annotation),a.annotation.id,a.annotation.Va,null,c)}var f=O("div","iv-promo-txt"),h,k,l;switch(a.annotation.style){case "cta":case "website":h=O("p",null,O("strong",null,b.text_line_1));k=O("p",null,O("span","iv-promo-link",b.text_line_2));K(f,"iv-click-target");a.Lf(f,LD(a.annotation),a.annotation.id,a.annotation.Va,null,c);break;case "playlist":case "video":h=O("p",null,O("span",null,b.text_line_1));k=O("p",null,O("strong",null,b.text_line_2));b.is_live&&(h=k,k=O("span",
["yt-badge","iv-promo-badge-live"],Q("YTP_LIVE_NOW")));K(f,"iv-click-target");a.Lf(f,LD(a.annotation),a.annotation.id,a.annotation.Va,null,c);d.push("iv-promo-video");break;case "vote":h=O("p",null,O("strong",null,b.text_line_1)),k=O("p",null,O("span",null,b.text_line_2)),l=O("div","iv-promo-button-container"),c=O("button",["iv-button","iv-promo-button"],O("span","iv-button-content",b.button_text)),a.context.j.P(c,"click",function(a){a.stopPropagation();GC(this.context.logger,this.annotation.Va,null,
{contest_vote:"1"},(b.tracking||{}).vote);var c=this.annotation.data;a=Gf("iv-promo-txt",this.kg);var d=Gf("iv-promo-button-container",this.kg),e=O("div",["iv-promo-txt","iv-click-target"]),f=O("p",null,O("strong",null,c.text_line_3)),c=O("p",null,c.text_line_4);Tf(e,f,c);Wf(d);Xf(e,a);te(this.la(),"iv-promo-with-button");this.Lf(e,LD(this.annotation),this.annotation.id,this.annotation.Va)},a),l.appendChild(c),d.push("iv-promo-with-button")}h&&f.appendChild(h);k&&f.appendChild(k);a.kg.appendChild(f);
l&&a.kg.appendChild(l);h=O("div","iv-promo-actions");k=O("div","iv-promo-expand");h.appendChild(k);a.context.j.P(a.la(),"mouseover",a.ew,a);a.context.j.P(a.la(),"mouseout",a.dw,a);a.context.j.P(a.la(),"touchend",pa(a.$n,5E3),a);k=O("div","iv-promo-close");a.context.j.P(k,"click",a.FD,a);h.appendChild(k);se(a.la(),d);e&&Sf(a.la(),e);Sf(a.la(),a.kg);Sf(a.la(),h)}g=EE.prototype;
g.lh=function(){this.isActive||(EE.N.lh.call(this),this.C||(FE(this),this.C=!0),Nr(this.la()),this.annotation&&this.annotation.Va&&CC(this.context.logger,this.annotation.Va),te(this.la(),"iv-promo-inactive"),this.isActive=!0,this.j&&(ne(this.j),this.j=null),GE(this),HE(this,this.A))};g.da=function(){this.isActive&&(K(this.la(),"iv-promo-inactive"),this.isActive=!1)};g.yi=function(a,b,c,d,e,f,h){return this.o?!1:EE.N.yi.call(this,a,b,c,d,e,f,h)};
g.$n=function(a,b){b.stopPropagation();GE(this);HE(this,a)};g.ew=function(a){this.B=!0;this.$n(500,a)};g.dw=function(){this.B=!1;IE(this)};function IE(a){a.o||a.B||a.j||(K(a.la(),"iv-promo-collapsed"),a.o=!0)}function GE(a){a.o&&(te(a.la(),"iv-promo-collapsed"),a.o=!1)}function HE(a,b){a.j||(a.j=me(function(){this.j&&(ne(this.j),this.j=null);IE(this)},b,a))}g.FD=function(a){a.stopPropagation();this.da();HC(this.context.logger,this.annotation.Va)};var JE={BF:"adunit",lG:"detailpage",rG:"embedded",ZG:"leanback",KH:"profilepage"};function KE(a,b,c){this.j={};this.o=!1;this.C="ivTrigger:"+a;this.A=c;pE(b,function(a,b){var c=LE(b.state,b.j);this.A.subscribe(c,x(this.B,this,c,a));this.j[c]=a},this)}KE.prototype.B=function(a,b,c,d){this.j[a]=b?!c:c;a=Zb(this.j,function(a){return a});this.o!=a&&(this.o=a,this.A.O(this.C,a,d))};function LE(a,b){var c="ivTriggerCondition:"+a;return b?c+":"+b:c};function ME(a,b,c){this.A=a;this.annotation=b;this.j=c;this.o=null;this.C=this.isVisible=!1;NE(b,a)}function NE(a,b){AE(a,function(c){return new KE(a.id,c,b)})}ME.prototype.da=function(){this.isVisible=!1;this.j&&(OE(this),this.j.da())};ME.prototype.destroy=function(){if(this.j){OE(this);var a=this.j;a.F.removeAll();a.jl.dispose();a.H.dispose();a.o&&Wf(a.o);a.A&&a.A.la()&&Wf(a.A.la())}PE(this)};function OE(a){a.A.unsubscribe("onResize",a.D,a);a.A.unsubscribe("onVideoAreaChange",a.B,a)}
ME.prototype.B=function(){QE(this.j)};function PE(a){a.o&&(a.o.stop(),a.o=null)}ME.prototype.D=function(){QE(this.j)};function RE(a,b){this.start=a<b?a:b;this.end=a<b?b:a}RE.prototype.clone=function(){return new RE(this.start,this.end)};function SE(){};function TE(a,b,c,d,e,f,h,k){this.C=a;this.F=b;this.D=c;this.G=d;this.j=e;this.o=f;this.A=p(h)?h:null;this.B=p(k)?k:null}B(TE,SE);function UE(){this.ra=[];this.va=[];this.bd=[]}UE.prototype.df=null;UE.prototype.Mc=null;UE.prototype.Ti=!0;var VE=[2,2,6,6,0];g=UE.prototype;g.clear=function(){this.ra.length=0;this.va.length=0;this.bd.length=0;delete this.df;delete this.Mc;delete this.Ti;return this};function WE(a,b,c){0==ib(a.ra)?a.bd.length-=2:(a.ra.push(0),a.va.push(1));a.bd.push(b,c);a.Mc=a.df=[b,c]}
g.tb=function(a){var b=ib(this.ra);if(null==b)throw Error("Path cannot start with lineTo");1!=b&&(this.ra.push(1),this.va.push(0));for(b=0;b<arguments.length;b+=2){var c=arguments[b],d=arguments[b+1];this.bd.push(c,d)}this.va[this.va.length-1]+=b/2;this.Mc=[c,d]};g.close=function(){var a=ib(this.ra);if(null==a)throw Error("Path cannot start with close");4!=a&&(this.ra.push(4),this.va.push(1),this.Mc=this.df);return this};
function XE(a,b,c,d){var e=a.Mc[0]-b*Math.cos(d*Math.PI/180)+b*Math.cos((d+90)*Math.PI/180),f=a.Mc[1]-c*Math.sin(d*Math.PI/180)+c*Math.sin((d+90)*Math.PI/180);a.ra.push(3);a.va.push(1);a.bd.push(b,c,d,90,e,f);a.Ti=!1;a.Mc=[e,f]}function YE(a,b){for(var c=a.bd,d=0,e=0,f=a.ra.length;e<f;e++){var h=a.ra[e],k=VE[h]*a.va[e];b(h,c.slice(d,d+k));d+=k}}
g.clone=function(){var a=new this.constructor;a.ra=this.ra.concat();a.va=this.va.concat();a.bd=this.bd.concat();a.df=this.df&&this.df.concat();a.Mc=this.Mc&&this.Mc.concat();a.Ti=this.Ti;return a};g.isEmpty=function(){return 0==this.ra.length};function ZE(a,b){this.H=a;this.J=null==b?1:b}B(ZE,SE);function $E(a,b,c){this.A=a;this.j=b;this.o=null==c?1:c}$E.prototype.getWidth=function(){return this.A};function aF(){}ba(aF);aF.prototype.j=0;function bF(a){J.call(this);this.L=a||Bf();this.M=null;this.Ie=!1;this.j=null;this.C=void 0;this.D=this.G=this.H=null}B(bF,J);g=bF.prototype;g.ww=aF.getInstance();g.getId=function(){return this.M||(this.M=":"+(this.ww.j++).toString(36))};g.la=function(){return this.j};g.Vg=function(a){if(this.H&&this.H!=a)throw Error("Method not supported");bF.N.Vg.call(this,a)};g.Zn=function(){this.j=this.L.createElement("DIV")};
g.pg=function(){cF(this,function(a){a.Ie&&a.pg()});this.C&&this.C.removeAll();this.Ie=!1};g.R=function(){this.Ie&&this.pg();this.C&&(this.C.dispose(),delete this.C);cF(this,function(a){a.dispose()});this.j&&Wf(this.j);this.H=this.j=this.D=this.G=null;bF.N.R.call(this)};g.Pd=function(){return this.j};function cF(a,b){a.G&&E(a.G,b,void 0)}
g.removeChild=function(a,b){if(a){var c=w(a)?a:a.getId();a=this.D&&c?mc(this.D,c)||null:null;if(c&&a){lc(this.D,c);xb(this.G,a);b&&(a.pg(),a.j&&Wf(a.j));c=a;if(null==c)throw Error("Unable to set parent component");c.H=null;bF.N.Vg.call(c,null)}}if(!a)throw Error("Child is not in parent component");return a};function dF(a,b,c,d,e){bF.call(this,e);this.width=a;this.height=b;this.B=c||null;this.J=d||null}B(dF,bF);dF.prototype.A=null;dF.prototype.vg=function(){return this.Ie?Ig(this.la()):ga(this.width)&&ga(this.height)?new N(this.width,this.height):null};function eF(a){var b=a.vg();return b?b.width/(a.B?new N(a.B,a.J):a.vg()).width:0}dF.prototype.resume=function(){};function fF(a,b){J.call(this);this.xg=a;this.yk=b;this[$c]=!1}B(fF,J);g=fF.prototype;g.yk=null;g.xg=null;g.la=function(){return this.xg};g.addEventListener=function(a,b,c,d){md(this.xg,a,b,c,d)};g.removeEventListener=function(a,b,c,d){ud(this.xg,a,b,c,d)};g.R=function(){fF.N.R.call(this);var a=this.xg;if(a)if(ad(a))a.removeAllListeners(void 0);else if(a=pd(a)){var b=0,c;for(c in a.j)for(var d=a.j[c].concat(),e=0;e<d.length;++e)vd(d[e])&&++b}};function gF(a,b,c,d){fF.call(this,a,b);a=this.yk;b=this.la();c?(b.setAttribute("stroke",c.j),b.setAttribute("stroke-opacity",c.o),c=c.getWidth(),w(c)&&-1!=c.indexOf("px")?b.setAttribute("stroke-width",parseFloat(c)/eF(a)):b.setAttribute("stroke-width",c)):b.setAttribute("stroke","none");c=this.yk;a=this.la();if(d instanceof ZE)a.setAttribute("fill",d.H),a.setAttribute("fill-opacity",d.J);else if(d instanceof TE){b="lg-"+d.C+"-"+d.F+"-"+d.D+"-"+d.G+"-"+d.j+"-"+d.o;var e=hF(c,b);if(!e){var e=iF(c,"linearGradient",
{x1:d.C,y1:d.F,x2:d.D,y2:d.G,gradientUnits:"userSpaceOnUse"}),f="stop-color:"+d.j;ga(d.A)&&(f+=";stop-opacity:"+d.A);f=iF(c,"stop",{offset:"0%",style:f});e.appendChild(f);f="stop-color:"+d.o;ga(d.B)&&(f+=";stop-opacity:"+d.B);d=iF(c,"stop",{offset:"100%",style:f});e.appendChild(d);e=jF(c,b,e)}a.setAttribute("fill","url(#"+e+")")}else a.setAttribute("fill","none")}B(gF,fF);function kF(a,b){fF.call(this,a,b)}B(kF,fF);function lF(a,b){fF.call(this,a,b)}B(lF,fF);function mF(a,b,c,d){gF.call(this,a,b,c,d)}B(mF,gF);function nF(a,b){fF.call(this,a,b)}B(nF,kF);nF.prototype.clear=function(){Uf(this.la())};nF.prototype.setSize=function(a,b){oF(this.la(),{width:a,height:b})};function pF(a,b,c,d){gF.call(this,a,b,c,d)}B(pF,mF);function qF(a,b){fF.call(this,a,b)}B(qF,lF);qF.prototype.setPosition=function(a,b){oF(this.la(),{x:a,y:b})};qF.prototype.setSize=function(a,b){oF(this.la(),{width:a,height:b})};function rF(a,b,c,d,e){dF.call(this,a,b,c,d,e);this.o={};this.U=Jc&&!Tc(526);this.K=new vn(this)}var sF;B(rF,dF);var tF=0;function iF(a,b,c){a=a.L.j.createElementNS("http://www.w3.org/2000/svg",b);c&&oF(a,c);return a}function oF(a,b){for(var c in b)a.setAttribute(c,b[c])}g=rF.prototype;
g.Zn=function(){var a=iF(this,"svg",{width:this.width,height:this.height,overflow:"hidden"}),b=iF(this,"g");this.F=iF(this,"defs");this.A=new nF(b,this);a.appendChild(this.F);a.appendChild(b);this.j=a;this.B&&(this.la().setAttribute("preserveAspectRatio","none"),this.U?this.Oq():this.la().setAttribute("viewBox","0 0 "+(this.B?this.B+" "+this.J:"")))};
g.Oq=function(){if(this.Ie){var a=this.vg();if(0==a.width)this.la().style.visibility="hidden";else{this.la().style.visibility="";var b=a.width/this.B,a=a.height/this.J;this.A.la().setAttribute("transform","scale("+b+" "+a+") translate(0 0)")}}};g.setSize=function(a,b){Gg(this.la(),a,b)};
g.vg=function(){if(!Ic)return this.Ie?Ig(this.la()):rF.N.vg.call(this);var a=this.width,b=this.height,c=w(a)&&-1!=a.indexOf("%"),d=w(b)&&-1!=b.indexOf("%");if(!this.Ie&&(c||d))return null;var e,f;c&&(e=this.la().parentNode,f=Jg(e),a=parseFloat(a)*f.width/100);d&&(e=e||this.la().parentNode,f=f||Jg(e),b=parseFloat(b)*f.height/100);return new N(a,b)};g.clear=function(){this.A.clear();Uf(this.F);this.o={}};function uF(a,b,c,d){b=iF(a,"path",{d:vF(b)});c=new pF(b,a,c,d);a.A.la().appendChild(c.la())}
function vF(a){var b=[];YE(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 jF(a,b,c){if(b in a.o)return a.o[b];var d="_svgdef_"+tF++;c.setAttribute("id",d);a.o[b]=d;a.F.appendChild(c);return d}
function hF(a,b){return b in a.o?a.o[b]:null}g.pg=function(){rF.N.pg.call(this);this.U&&this.K.ua(wF(),"tick",this.Oq)};g.R=function(){delete this.o;delete this.F;delete this.A;this.K.dispose();delete this.K;rF.N.R.call(this)};function wF(){sF||(sF=new ke(400),sF.start());return sF};function xF(){this.j=!1;this.C=this.A=null}function yF(a,b,c){a.A?(a.A.setSize(b,c),a.A.clear()):(b=new rF(b,c,void 0,void 0,void 0),a.A=b,a.A.Zn(),a.C=O("div"),b=a.A.la(),a.C.appendChild(b));return a.A}xF.prototype.la=function(){return this.C};xF.prototype.o=function(){};function zF(a,b,c){var d=document.createElementNS("http://www.w3.org/2000/svg",a);b&&Wb(b,function(a,b){d.setAttribute(b,a)});for(var e=2;e<arguments.length;e++)d.appendChild(arguments[e]);return d}function AF(a,b){var c;c=":"+(aF.getInstance().j++).toString(36);b.setAttribute("result",c);a.appendChild(b);return c};function BF(a,b){var c=AF(a,zF("feGaussianBlur",{"in":b,stdDeviation:"1.8"})),c=AF(a,zF("feDiffuseLighting",{"in":c,surfaceScale:"4",diffuseConstant:"1"},zF("feDistantLight",{azimuth:"270",elevation:"15","lighting-color":"white"}))),c=AF(a,zF("feComposite",{"in":c,in2:b,operator:"in"}));return AF(a,zF("feComposite",{in2:c,"in":b,operator:"arithmetic",k2:1,k3:.5,k4:0}))}
function CF(a,b){var c=AF(a,zF("feOffset",{"in":b,dx:"-7",dy:"-7"})),c=AF(a,zF("feGaussianBlur",{"in":c,stdDeviation:"3"})),c=AF(a,zF("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=AF(a,zF("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=AF(a,zF("feGaussianBlur",{"in":d,stdDeviation:"1"})),c=AF(a,zF("feComposite",{operator:"out","in":c,in2:d}));return AF(a,zF("feComposite",{operator:"over","in":b,in2:c}))}
function DF(a,b){return b}function EF(a){var b=zF("filter",{filterUnits:"userSpaceOnUse"}),c="SourceGraphic";E(a,function(a){a:{switch(a){case "bevel":a=BF;break a;case "dropshadow":a=CF;break a}a=DF}c=a(b,c)});return b}function FF(a){a=lb(a,function(a){return a in GF});Kb(a,function(a,c){return GF[a]-GF[c]});return a}function HF(a){return G(a,function(a){return"dropshadow"==a})?new Ie(0,7,7,0):new Ie(0,0,0,0)}var GF={bevel:1,dropshadow:2};function IF(a,b,c,d,e){var f=d?d.getWidth()/2+1:0;b=JF(b,c,f);uF(a,b,d,e)}function JF(a,b,c){var d=new UE;WE(d,a.left+b+c,a.top+c);d.tb(a.left+a.width-b-c,a.top+c);XE(d,b,b,-90);d.tb(a.left+a.width-c,a.top+a.height-b-c);XE(d,b,b,0);d.tb(a.left+b+c,a.top+a.height-c);XE(d,b,b,90);d.tb(a.left+c,a.top+b+c);XE(d,b,b,180);d.close();return d}function KF(a,b,c,d){var e=a.L;return e?new TE(e.C*b/100,e.F*c/100,e.D*b/100,e.G*c/100,e.j,e.o,e.A,e.B):new ZE(a.B,LF(d,a.o))}
function LF(a,b){return a?Math.max(b,.9):b}function MF(a,b){var c=Le(a),d=HF(b);ia(d)?(c.top-=d.top,c.right+=d.right,c.bottom+=d.bottom,c.left-=d.left):(c.top-=d,c.right+=void 0,c.bottom+=void 0,c.left-=NaN);return new Ke(c.left,c.top,c.right-c.left,c.bottom-c.top)}
function NF(a,b,c){if(c.length&&(b=Ff("g",void 0,b),b.length)){var d=FF(c);if(d){c="effects:"+(d?d.join("|"):"");var e=hF(a,c);e?a=e:(d=EF(d),a=0<d.childNodes.length?jF(a,c,d):null)}else a=null;a&&b[0].setAttribute("filter","url(#"+a+")")}};function OF(){xF.call(this);this.B=0}B(OF,xF);
OF.prototype.o=function(a,b){var c=BE(a);if(c){var d=aE(c,b);if(!(0>=d.width||0>=d.height)){var e;if(e=(c=(c=CE(a))&&c.j?c.j:null)&&c.length?c[0]:null){var f=Oe(bE(b,WD(e,new Ke(e.G,e.H,e.C,e.A),b.j))),h=d.clone(),c=new Ke(f.x,f.y,1,1),k=Math.max(h.left+h.width,c.left+c.width),l=Math.max(h.top+h.height,c.top+c.height);h.left=Math.min(h.left,c.left);h.top=Math.min(h.top,c.top);h.width=k-h.left;h.height=l-h.top;var c=a.j,h=MF(h,c.effects),k=yF(this,h.width,h.height),l=KF(c,h.width,h.height,this.j),
d=new Ke(d.left-h.left,d.top-h.top,d.width,d.height),n=new Ge(f.x-h.left,f.y-h.top);this.B=17*YD(b.j,e.o,e.j?e.j:"xy");e=c.j;var f=a.j,r=this.j&&xE(a),u=r?f.C+1:f.C,r=(f=u?new $E(u,r?f.D:f.F):null)?f.getWidth()/2:0,u=PF(d,n),z=this.D(d,e,n,u),y=n.x,n=n.y,V=d.width,va=d.height,L=d.left,d=d.top,wa=new UE;WE(wa,L+e+r,d+r);"t"==u&&(wa.tb(z.start,d+r),wa.tb(y,n),wa.tb(z.end,d+r));wa.tb(L+V-e-r,d+r);XE(wa,e,e,-90);"r"==u&&(wa.tb(L+V-r,z.start),wa.tb(y,n),wa.tb(L+V-r,z.end));wa.tb(L+V-r,d+va-e-r);XE(wa,
e,e,0);"b"==u&&(wa.tb(z.end,d+va-r),wa.tb(y,n),wa.tb(z.start,d+va-r));wa.tb(L+e+r,d+va-r);XE(wa,e,e,90);"l"==u&&(wa.tb(L+r,z.end),wa.tb(y,n),wa.tb(L+r,z.start));wa.tb(L+r,d+e+r);XE(wa,e,e,180);wa.close();uF(k,wa,f,l);if(l=this.la())K(l,"annotation-shape"),K(l,"annotation-speech-shape"),ug(l,h.left,h.top),Gg(l,h.width,h.height),NF(k,l,c.effects)}}}};
function PF(a,b){var c=a.top-b.y,d=b.x-a.left-a.width,e=b.y-a.top-a.height,f=a.left-b.x,h=Math.max(c,d,e,f);if(0>h)return"i";switch(h){case c:return"t";case d:return"r";case e:return"b";case f:return"l"}return"i"}OF.prototype.D=function(a,b,c,d){function e(a,c,d,e){a=Math.min(Math.max(e-2*b,0),a);c=De(c-a/2,d+b,d+e-a-b);return new RE(c,c+a)}return"t"==d||"b"==d?e(this.B,c.x,a.left,a.width):"l"==d||"r"==d?e(this.B,c.y,a.top,a.height):new RE(0,0)};function QF(){xF.call(this)}B(QF,xF);QF.prototype.o=function(a,b){var c=BE(a);if(c){var d=aE(c,b);if(!(0>=d.width||0>=d.height)){var c=a.j,e=MF(d,c.effects),f=yF(this,e.width,e.height);IF(f,new Ke(0,0,d.width,d.height),c.j,new $E(!c.A&&this.j?1:c.A,c.B),new ZE("#000",0));d=this.la();K(d,"annotation-shape");Mg(d,LF(this.j,c.o));ug(d,e.left,e.top);Gg(d,e.width,e.height)}}};function RF(a,b,c){xF.call(this);this.B=a||0;this.F=b||0;this.D=c||!1}B(RF,xF);function SF(a,b){var c=a.width,d=a.height,e=0,f=0;0<b&&(a.width/a.height>b?(d=a.width/b,f=(a.height-d)/2):(c=a.height*b,e=(a.width-c)/2));return new Ke(e,f,c,d)}
RF.prototype.o=function(a,b){var c=aE(BE(a),b);if(!(0>=c.width||0>=c.height)){var d=SF(c,this.F);d.left+=c.left;d.top+=c.top;var e=a.j,f=MF(d,e.effects),h=yF(this,f.width,f.height),k=new ZE("#000",0),d=SF(d,this.B),l;l=a.B?a.B.j?a.B.j:a.B.videoId?window.location.protocol+"//i1.ytimg.com/vi/"+escape(a.B.videoId)+"/hqdefault.jpg":"":"";d=iF(h,"image",{x:d.left,y:d.top,width:d.width,height:d.height,"image-rendering":"optimizeQuality",preserveAspectRatio:"none"});d.setAttributeNS("http://www.w3.org/1999/xlink",
"href",l);var n=new qF(d,h);h.A.la().appendChild(n.la());if(d=this.la()){Mg(d,LF(this.j,e.o));if(this.D&&0<e.A){l=new $E(e.A,e.B);var c=new Ke(0,0,c.width,c.height),r=l.getWidth()/2+1;var r=JF(c,e.j,r),u=hF(h,"mask");if(u)r=u;else{var u=document.createElementNS("http://www.w3.org/2000/svg","mask"),z=document.createElementNS("http://www.w3.org/2000/svg","path");z.setAttribute("d",vF(r));z.setAttribute("fill","#FFF");u.appendChild(z);r=jF(h,"mask",u)}n=n.la();r&&n.setAttribute("mask","url(#"+r+")");
IF(h,c,e.j,l,k)}K(d,"annotation-shape");K(d,"annotation-image-shape");ug(d,f.left,f.top);Gg(d,f.width,f.height);NF(h,d,e.effects)}}};function TF(){xF.call(this)}B(TF,xF);TF.prototype.o=function(a,b){var c=BE(a);if(c){var d=aE(c,b);if(!(0>=d.width||0>=d.height)){var c=a.j,e=MF(d,c.effects),f=yF(this,e.width,e.height),h=new Ke(0,0,d.width,d.height),d=KF(c,d.width,d.height,this.j),k=c.j,l=a.j,n=this.j&&xE(a),r=n?l.C+1:l.C;IF(f,h,k,r?new $E(r,n?l.D:l.F):null,d);if(h=this.la())K(h,"annotation-shape"),K(h,"annotation-popup-shape"),ug(h,e.left,e.top),Gg(h,e.width,e.height),NF(f,h,c.effects)}}};function UF(){OF.call(this)}B(UF,OF);UF.prototype.D=function(a,b,c,d){function e(a,c,d,e){a=Math.min(Math.max(e-2*b,0),a);c=c<=d+e/2?Math.max(d+e/4-a/2,d+b):Math.min(d+3*e/4-a/2,d+e-a-b);return new RE(c,c+a)}return"t"==d||"b"==d?e(this.B,c.x,a.left,a.width):"l"==d||"r"==d?e(this.B,c.y,a.top,a.height):new RE(0,0)};function VF(a,b){this.j=a;this.o=b||null}function bE(a,b){var c;c=a.o?aE(a.o,new VF(a.j)):a.j;var d=b.clone(),e=c.left;c=c.top;e instanceof Ge?(d.left+=e.x,d.top+=e.y):(d.left+=e,ga(c)&&(d.top+=c));return d};function WF(a,b,c,d,e){this.j=a;this.T=b;this.D=c;this.aa=d;this.Z=e;this.M=!1;this.F=new PA(this);this.U=this.C=this.G=this.L=this.o=null;this.X=!1;this.W=this.J=this.K=null;this.jl=new tn(this.cw,100,this);this.H=new oe(this.fo,500,this);this.S=this.A=this.B=null}function XF(a,b){var c=x(function(a,c,f){c=f?YF(this,c,x(f,this)):YF(this,c);this.F.P(b,a,c)},a);c("mouseover","d",a.Er);c("mouseout","c",a.Mg);c("click","a");c("touchend","a")}
function ZF(a){if(a.j.F){var b;wE(a.j,function(a){return"close"==a.type})?b=a.o:(a.B=O("div",["annotation-close-button","hid"]),hj(a.B,"annotation_id",a.j.id),a.o.appendChild(a.B),b=a.B);var c=function(a){a.stopPropagation()};a.F.P(b,"click",YF(a,"b",c));a.F.P(b,"touchend",YF(a,"b",c))}}
function YF(a,b,c){return x(function(a){if(this.Z)c&&c(a);else if(a.event.target instanceof Element){var e=a.event.target;Or(e);try{var f=document.elementFromPoint(a.event.clientX,a.event.clientY);if(kg(f,"annotation")){var h=document.createEvent("MouseEvent");h.initMouseEvent(a.event.type,a.event.bubbles,a.event.cancelable,a.event.view,a.event.detail,a.event.screenX,a.event.screenY,a.event.clientX,a.event.clientY,a.event.ctrlKey,a.event.altKey,a.event.shiftKey,a.event.metaKey,a.event.button,a.event.relatedTarget);
f.dispatchEvent(h)}}finally{Nr(e)}}e=Lg(a.target);a=new Ge(a.clientX,a.clientY);"c"==b&&e.contains(a)||this.aa.O(b,this.j)},a)}g=WF.prototype;g.Er=function(){this.M||(this.B&&Nr(this.B),this.C&&Nr(this.C),this.A&&(this.A.j=!0,Mg(this.o,$F(this)?1:0),this.A.o(this.j,aG(this))),this.H.isActive()&&this.H.stop(),this.M=!0,this.J=QA(this.F,bG(this.D),function(a){this.jl.stop();this.Mg(a)}))};
g.Mg=function(){this.M&&(this.U?this.H.start():this.fo(),this.A&&(this.A.j=!1,Mg(this.o,$F(this)?1:0),this.A.o(this.j,aG(this))),this.M=!1,this.J&&(this.F.ua(this.J),this.J=null))};g.fo=function(){this.B&&Or(this.B);this.C&&Or(this.C)};g.DD=function(a){this.W=a;this.jl.lf()};g.cw=function(){var a=this.W,b=new Ge(a.clientX,a.clientY),c=Ag(this.D.sa()),d=cG(c,this.L),c=(Mr(this.C)||Mr(this.B))&&cG(c,this.U);d&&d.contains(b)||c&&c.contains(b)?this.Er():this.Mg(a)};
function QE(a){if(a.o||a.A){var b=BE(a.j);if(b){var c=aG(a);if(a.o){var b=aE(b,c),d=dG(bG(a.D));Gg(a.o,b.width,b.height);ug(a.o,b.left,b.top);a.L=new Ke(d.left+b.left,d.top+b.top,b.width,b.height);var e;e=(e=BE(a.j))&&d?XD(d,e.B,e.j?e.j:"xy"):1;var f=DE(a.j,d),d=a.j.j;d.H?d=d.H:(d="speech"==a.j.style?1.6:.8,d=new Ie(d,d,d,d));d=new Ie(360*d.top*f/100,640*d.right*e/100,360*d.bottom*f/100,640*d.left*e/100);a.C&&(d.right+=1.5*c.j.height/100);a.o.style.padding=d.top+"px "+d.right+"px "+d.bottom+"px "+
d.left+"px";"label"==a.j.style&&a.G&&(a.G.style.padding=a.o.style.padding);var d=c.j,h=!1,k=0,l=0,n;n=dG(bG(a.D));var r=a.D.app.ea,u=bG(r.j).Ka(),u=new Ke(0,0,u.width,u.height);if(r.A.o&&!eG(r)){if(r.j.V().Da){var z=fG(r)?69:48;u.top+=z;u.height-=z}r.C&&(u.height-=fG(r.C.B)?72:50)}Me(n,u)?n=null:(u.top+=20,u.height-=40,"player_relative"!=a.j.G&&(u.left-=n.left,u.top-=n.top),n=u);n&&(k=n.top-(b.top+b.height),l=b.top-(n.top+n.height),h=0<k||0<l);if(h&&n){d=n;e=k;var f=l,y;a.C&&(l=gG(a,23,b,e,f),a.B&&
(y=43-l.width,0<y&&(b.left+l.left-y>d.left&&(l.left-=y),l.width+=y)),y=l,Gg(a.C,l.width,l.height),ug(a.C,l.left,l.top));a.B&&(y?b=new Ge(y.left+y.width-23-18,a.X?y.top+2:y.top+y.height-18-2):(y=gG(a,18,b,e,f),b=new Ge(y.left,y.top),Gg(a.B,y.width,y.height)),ug(a.B,b));a.U=new Ke(a.L.left+y.left,a.L.top+y.top,y.width,y.height);a.K=a.F.P(bG(a.D),"mousemove",a.DD)}else a.C&&(y=e/f*d.height*4.2/100,y=new N(y,y),"highlight"==a.j.type||"label"==a.j.style?(e=1.5*d.height/100,y=new Ke(b.width-y.width-e,b.height-
y.height-e,y.width,y.height)):y=new Ke(b.width-y.width-3*d.height/100,(b.height-y.height)/2,y.width,y.height),Gg(a.C,y.width,y.height),ug(a.C,y.left,y.top)),a.B&&(y=9<=d.left+d.width-(b.left+b.width),e=9<=b.top-d.top,ug(a.B,y&&e?new Ge(b.width-9,-9):y?new Ge(b.width-9,45<b.height?9:b.height-9):e?new Ge(45<b.width?b.width-9-18:-9,-9):b.width/d.width>b.height/d.height?new Ge(45<b.width?b.width-9-18:-9,b.height-9):new Ge(-9,45<b.height?9:b.height-9)))}a.A&&a.A.o(a.j,c);if(a.o){c=a.o;b=a.j.j;c.style.color=
"highlightText"==a.j.style?b.K:b.D;y=dG(bG(a.D));c.style.fontSize=360*b.textSize*DE(a.j,y)/100+"px";y=a.j.style;c.style.textAlign=b.J?b.J:"title"==y||"highlightText"==y?"center":"left";b.G&&(c.style.fontWeight=b.G);a=a.o;c=a.style.overflow;b=Gf("annotation-link-icon",a);y=Mr(b);d=Gf("annotation-close-button",a);e=Mr(d);b&&y&&Or(b);d&&e&&Or(d);l=f="";if(k=Gf("inner-text",a))f=k.style.overflow,l=k.style.position,k.style.overflow="visible",k.style.position="static";a.style.overflow="scroll";if(a.scrollHeight>
a.offsetHeight||a.scrollWidth>a.offsetWidth){n=h=Sg(a);r=5;for(u=Math.floor(h/2);u;)a.scrollHeight<=a.offsetHeight&&a.scrollWidth<=a.offsetWidth?(r=n,n=Math.min(n+u,h)):n=Math.max(n-u,r),u=Math.floor(u/2),a.style.fontSize=n+"px";n!=r&&(a.scrollHeight>a.offsetHeight||a.scrollWidth>a.offsetWidth)&&(a.style.fontSize=r+"px")}a.style.overflow=c;k&&(k.style.overflow=f,k.style.position=l);d&&e&&Nr(d);b&&y&&Nr(b)}}}}
function gG(a,b,c,d,e){var f=0<e;b=new Ke(0,c.height-b,Math.max(c.width,b),b);0<d&&(b.top=c.height,20<d&&(b.height+=d-20),K(a.o,"annotation-extend-down"));f&&(b.top=-b.height,20<e&&(c=e-20,b.top-=c,b.height+=c),K(a.o,"annotation-extend-up"),a.X=!0);return b}g.da=function(){Or(this.o);this.A&&Or(this.A.la());this.K&&(this.F.ua(this.K),this.K=null)};function $F(a){return"label"!=a.j.style||a.A.j}
function aG(a){var b;b=dG(bG(a.D));if("player_relative"==a.j.G){var c=bG(a.D).Ka();b=new Ke(-b.left,-b.top,c.width,c.height)}else b=new Ke(0,0,b.width,b.height);return new VF(b,a.S?BE(a.S):null)}function cG(a,b){return b?new Ke(a.x+b.left,a.y+b.top,b.width,b.height):null};function hG(a){lr.call(this,a);this.fa=!0;this.oa="iv-module";this.H="iv";this.G=0;this.A={};this.K={};this.C=new BC(0,a);a=iG;this.subscribe("onHideControls",this.dz,this);this.subscribe("onShowControls",this.qA,this);this.subscribe("onStateChange",this.Wz,this);this.subscribe("d",this.yD,this);this.subscribe("c",this.Mg,this);this.subscribe("a",this.Ux,this);this.subscribe("b",this.uy,this);this.subscribe("vast_info_card_add",this.NA,this);this.M=O("DIV",[a.Vt,"html5-stop-propagation"]);this.S=
O("DIV",a.kt);this.B=null;a=O("DIV",a.Us,this.M,this.S);K(a,this.oa);bG(this.j).T.appendChild(a);this.D=this.o=null;this.L=[]}B(hG,lr);hG.C="AnnotationsModule";var iG={Us:"video-annotations",kt:"video-custom-annotations",Vt:"video-legacy-annotations"};hG.B=function(a){switch(a.type){case "branding":case "promotion":return!0}return!1};hG.A=function(a){return"card"==a.type};hG.o=function(a){return hG.Za(a)?new hG(a):null};
hG.Za=function(a){var b=a.V();return"leanback"==b.Aa?!1:!b.H.isEmpty()||hG.Gg(b.j)?!0:qy(a.getVideoData(),"iv3_module")};hG.j=function(){return O("div",["annotation","annotation-type-custom","hid"])};hG.Gg=function(a){switch(a){case "annotation-editor":case "live-dashboard":return!0}return!1};g=hG.prototype;g.Gg=function(){return hG.Gg(this.j.V().j)};
g.ke=function(a,b){if(!this.Gg())return null;switch(a){case "loadCustomAnnotationsXml":var c=LA(b);c&&jG(this,c);return!0;case "removeCustomAnnotationById":return b&&this.o&&(rD(this.o,b),wD(this.j)),!0}return null};g.Re=function(){return this.Gg()?["loadCustomAnnotationsXml","removeCustomAnnotationById"]:[]};g.Za=function(){return hG.Za(this.j)};
g.create=function(){hG.N.create.call(this);this.B=new R(["div",["ytp-player-content","ytp-iv-player-content"]]);this.B.j(this.j.sa());var a=this.j.V(),b=this.j.getVideoData();1!=(a.ad||b.wa)&&da(a.H.get(b.videoId))||this.load()};g.destroy=function(){te(this.j.sa(),"ytp-iv-drawer-open");this.B.detach();this.B.dispose();hG.N.destroy.call(this)};g.Wz=function(a){U(a.state,2)&&(kG(this)&&lG(this)&&(kG(this),this.o&&vD(this.o)),mG(this,!1))};
g.load=function(){hG.N.load.call(this);this.G++;var a=this.j.getVideoData(),b=a.videoId,c=x(this.Wy,this,b,this.G);Zv()&&(c=nG(this,c));c={format:"XML",Xb:c,yd:{}};a.isPharma&&(c.yd.pharma="1");var d=this.j.V();d.experiments.xa("disable_iv_cors")?c.method="GET":(c.method="POST",c.withCredentials=!0);"gaming"==d.j&&(c.yd.gaming="1");(b=d.H.remove(b))&&oG(this,c,b);a.af&&(b=b&&(b.te||b.Wh),a.kn&&!b||wk(a.af,c))};
g.unload=function(){this.C.cb({"iv-event":1});mr(this);Wb(this.A,function(a){a.destroy()});Wb(this.K,function(a){a.destroy()});this.D=null;this.o&&(this.o.destroy(),this.o=null,wD(this.j));this.A={};this.K={};hG.N.unload.call(this)};
function pG(a,b){for(var c={},d=0;d<b.attributes.length;d++){var e=b.attributes[d];c[e.name]=e.nodeValue}for(d=0;d<b.childNodes.length;d++)if(e=b.childNodes[d],e.tagName){var f;if(c[e.tagName])f=c[e.tagName];else if("html_blob"==e.tagName||"data"==e.tagName){0<e.childNodes.length&&(f=e.childNodes[0].nodeValue,c[e.tagName]="string"==typeof f?f.trim():f);continue}else f=[],c[e.tagName]=f;e&&"TEXT"==e.tagName?1==e.childNodes.length&&3==e.childNodes[0].nodeType?f.push(e.childNodes[0].nodeValue):f.push(""):
e&&f.push(pG(a,e))}return c}
g.Wy=function(a,b,c){if(!qG(this,b,a)&&(a=rk(c)&&c.responseXML?c.responseXML:null)){jG(this,a);K(this.j.sa(),this.oa+"-loaded");a=[];for(var d in this.A){b=this.A[d].annotation;if(b.o)if(c=b.o,c.j.length)if(c=c.j[0].o||c.j[0].j||c.j[0].A,!c||2>c.length)c=null;else{var e=c.length-1;c=0>=c[0].t&&0>=c[e].t?null:{start:c[0].t,end:c[e].t}}else c=null;else c=null;if(e=c)if(c=1E3*e.start,e=1E3*e.end,0==c&&(c++,e++),!(e<c)){var f={id:d};"marker"==b.type&&(f.style="ytp-chapter-marker",f.tooltip=b.D,f.visible=
!0);b=new hr(c,e,f);a.push(b)}}this.gb(a)}};function qG(a,b,c){return!(a.loaded&&a.G==b&&a.j.getVideoData().videoId==c)}function rG(a,b){var c=sG(a,b);if(!c&&"marker"!=b.type)return null;zE(b,function(a){a=x(this.JA,this,b.id,a);this.subscribe("ivTrigger:"+b.id,a)},a);return new ME(a.U,b,c)}
function tG(a,b){var c=hG.j(),d=null;switch(b.type){case "branding":if(a.j.V().Wc)break;a.B.element.appendChild(c);d=new KD(c,uG(a),b);break;case "promotion":a.j.sa().appendChild(c),d=new EE(c,uG(a),b)}d&&d.Si();return d}g.NA=function(a){this.J&&a==this.j.getVideoData().videoId&&(this.loaded?vG(this):this.load())};
function vG(a){var b=a.j.getVideoData();if(b.af){var c=a.j.V(),d=c.H.remove(b.videoId);if(d){var e={format:"XML",yd:{}};c.experiments.xa("disable_iv_cors")||(e.method="POST",e.withCredentials=!0);"gaming"==c.j&&(e.yd.gaming="1");e.Xb=x(function(a,b,c){qG(this,a,b)||(a=rk(c)&&c.responseXML?c.responseXML:null)&&jG(this,a)},a,a.G,b.videoId);Zv()&&(e.Xb=nG(a,e.Xb));e.Db={ic_only:1};oG(a,e,d);wk(b.af,e)}}}
function oG(a,b,c){b.method="POST";b.Db=b.Db||{};c.te&&(b.Db.ic_xml=c.te);c.Rf&&(b.Db.ic_track=c.Rf);if(a=a.j.getVideoData(1))b.Db.organic_video_id=a.videoId}
function wG(a,b){if(!a.o){var c=new R(["div","hid"]);a.o=new qD(a.j,c.element,uG(a));c.j(a.B.element);a.o.Si()}var d=b&&b.data&&b.data.card_type;if(d&&yD[d]){c=a.o;d=new yD[d](b.id,b.data,b.Va);c.S||(se(c.la(),["html5-stop-propagation","iv-drawer-manager"]),c.$.sa().appendChild(c.D),zD(c),c.S=!0);rD(c,d.id);var e=AD(c,d);if(e){var f={sb:d,Xj:e.element,Qo:!1,Ro:!1},h=BD(c,f);Db(c.j,h,0,f);e.j(c.tc,h);c.Jh();d.B?LC(c,d.startMs,0x8000000000000,d.id,pa(c.HB,f)):(e=1E3*c.context.o.getCurrentTime(),5E3>
e&&e>d.startMs&&c.zq(f),LC(c,d.startMs,d.startMs+1,d.id,pa(c.zq,f)))}}wD(a.j)}function uG(a){a.D||(a.D=new MD(new PA(a),a.j.V(),a.j.getVideoData(),a.C,a.j,a.U));return a.D}function jG(a,b){for(var c=b.getElementsByTagName("annotation"),d=0;d<c.length;d++){var e=pG(a,c[d]),f=null;try{f=uE(e)}catch(h){}f&&(hG.B(f)?(e=tG(a,f))&&(a.K[f.id]=e):hG.A(f)?wG(a,f):(e=rG(a,f))&&(a.A[f.id]=e))}Wb(a.A,function(a){var b=a.annotation;b.o&&b.o.o&&(b=this.A[b.o.o])&&(a.j.S=b.annotation)},a)}
g.jc=function(a){hG.N.jc.call(this,a);a=a.getId();var b=this.A[a];b&&!b.C&&(b=b.annotation,xG(this,a),CC(this.C,b.Va))};g.Dc=function(a){hG.N.Dc.call(this,a);yG(this,a.getId())};function zG(a,b,c,d){d?xG(a,b,c):yG(a,b,c)}function yG(a,b,c){if(b=a.A[b])PE(b),c&&c.o?(a=x(a.eo,a,b),b.o=new oe(a,2E3),b.o.start()):a.eo(b)}g.eo=function(a){a&&(a.da(),AG(this,"shown",!1,a.annotation.id),this.Xh(a.annotation,"hidden"))};
function xG(a,b,c){if(b=a.A[b])PE(b),c&&c.B?(a=x(a.Gq,a,b),b.o=new oe(a,2E3),b.o.start()):a.Gq(b)}
g.Gq=function(a){if(a){a.isVisible=!0;if(a.j){var b=a.j,c=b.j.j,c=(c&&0==c.o||"title"==b.j.style||"highlightText"==b.j.style?!1:!0)&&!b.A,d=!b.o,e="widget"==b.j.type;if(c){var f=aG(b),h=null;"highlight"==b.j.type||"label"==b.j.style?h=new QF:"popup"==b.j.style?h=new TF:"anchored"==b.j.style?h=new OF:"speech"==b.j.style?h=new UF:"image"==b.j.type&&("video"==b.j.style?h=new RF(es,ds,!0):"channel"==b.j.style&&(h=new RF));h&&(h.o(b.j,f),b.A=h,f=h.la())&&(Or(f),K(f,"annotation-type-"+b.j.type.toLowerCase()),
b.T(f))}if(d){f=["annotation","hid"];"highlightText"!=b.j.style||f.push("annotation-no-mouse");f.push("annotation-type-"+b.j.type.toLowerCase());b.o=O("div",f);b.j.D&&(b.G=O("div","inner-text"),"label"==b.j.style&&(K(b.G,"label-text"),b.G.style.backgroundColor=b.j.j.B),dg(b.G,b.j.D),b.o.appendChild(b.G));hj(b.o,"annotation_id",b.j.id);b.T(b.o);XF(b,b.o);if(xE(b.j)&&"image"!=b.j.type&&b.j.showLinkIcon()){if(h=LD(b.j))f=b.o,h=new P(LB(h)),f.title=h.o+h.A;b.C=O("span",["annotation-link-icon","hid"]);
b.o.appendChild(b.C)}ZF(b);xE(b.j)||(b.o.style.cursor="default")}e&&("subscribe"==b.j.style?Gf("yt-uix-subscription-button",b.o)||(b.o.innerHTML=b.j.A):b.j.A&&(b.o.innerHTML=b.j.A));if(c||d){a:{c=b.j.o.j;if(c.length&&(c=iE(c[0]))){c=c.J;break a}c=0}b.o&&(b.o.style.zIndex=c);b.A&&b.A.la()&&(b.A.la().style.zIndex=c)}Nr(b.o);Mg(b.o,$F(b)?1:0);QE(b);b.A&&Nr(b.A.la());a.A.subscribe("onResize",a.D,a);a.A.subscribe("onVideoAreaChange",a.B,a)}AG(this,"shown",!0,a.annotation.id);this.Xh(a.annotation,"shown")}};
g.JA=function(a,b,c){var d=this.A[a];if(d&&b.value!=c){b.value=c;var e=!1;zE(d.annotation,function(a){e|=a.value});zG(this,a,b,e)}};g.Ux=function(a){if(a&&a.id){var b=LD(a);if(b){var c=LB(b);if(c){var d=x(this.Xh,this,a,"click"),e=this.j.getVideoData();if("new"==SB(c,b.target)||BG(this,b,e.videoId))d(),d=null;GC(this.C,a.Va,d)}}}};
g.Xh=function(a,b){yE(a,function(c){if(c.trigger==b&&"openUrl"==c.type){var d=this.j.getVideoData(),e;if(!(e=!BG(this,c.url,d.videoId))){e=PB(c.url);var f=OB(c.url);if(e){if(d.videoId==e)this.O("command_seek",f||0);else{var h=uG(this).o;Sy(h.app,e,void 0,void 0);f&&CG(uG(this).o)&&uG(this).o.Tb(f)}e=!0}else e=!1;e=!e}e&&(d=QB(c.url,a.id,d.videoId,this.j.V()))&&(this.pauseVideo(),c=SB(d,c.url.target),Qz(d,void 0),Rz(d,"current"==c?"_top":void 0))}},this)};
function BG(a,b,c){if("new"==b.target)return!1;var d=LB(b);if(!d)return!1;d=d.replace(/https?:\/\//g,"");if(!MB(d))return!1;d=lk(d);if(d.list||d.p)return!1;b=PB(b);if(!b)return!1;if(c==b)return!0;a=a.j.V();return a.K&&a.fa?!0:!1}g.dz=function(){AG(this,"playerControlShow",!1)};g.qA=function(){AG(this,"playerControlShow",!0)};g.yD=function(a){AG(this,"rollOver",!0,a.id)};g.Mg=function(a){AG(this,"rollOver",!1,a.id)};
g.uy=function(a){if(a||a.id)this.A[a.id].C=!0,yG(this,a.id),a&&(HC(this.C,a.Va),this.Xh(a,"close")),AG(this,"closed",!0,a.id)};function sG(a,b){if(DG(b)){var c=b.F||wE(b,function(a){return"click"==a||"rollOut"==a||"rollOut"==a});return new WF(b,x(a.M.appendChild,a.M),a.j,a.U,c)}return null}function DG(a){if("highlight"==a.type||"image"==a.type||"widget"==a.type)return!0;if("text"==a.type)for(var b in rE)if(a.style==rE[b])return!0;return!1}function AG(a,b,c,d){a.O(LE(b,d),c,d)}
function nG(a,b){return x(function(){if(!this.isDisposed()){var a=Array.prototype.slice.call(arguments,0);a.unshift(b);b=pa.apply(window,a);this.L.push($v(b,void 0))}},a)}function kG(a){return!!a.o&&a.o.isAvailable()}function lG(a){kG(a);return!!a.o&&a.o.C}function mG(a,b,c){a.O("publish_external_event",b?"cardsteasershow":"cardsteaserhide",c)}g.R=function(){for(var a=this.L,b=0,c=a.length;b<c;b++)aw(a[b]);this.L.length=0;hG.N.R.call(this)};function EG(a){this.$=a;this.o=null;this.j=new Ke(0,0,0,0);this.C=new N(0,0);this.B=this.A=0;Hc&&Tc(11)&&(this.o=document.createElement("canvas").getContext("2d"),Tc(12.10532)||(this.A=3))}
function FG(a,b){if(null===a.o)return b;var c=new N(b.videoWidth,b.videoHeight);if(!Je(c,a.C)&&(a.o.canvas.width=c.width,a.o.canvas.height=c.height,a.j.top=0,a.j.left=0,a.j.width=c.width,a.j.height=c.height,a.C=c,0<a.A)){a.A=3;var d=GG(bG(a.$)),e=16/9;d<e?(a.j.width=c.width*d/e,a.j.left=Math.ceil(.5*(c.width-a.j.width)),a.j.width|=0):d>e&&(a.j.height=c.height*e/d,a.j.top=Math.ceil(.5*(c.height-a.j.height)),a.j.height|=0)}0<a.A&&(a.B^=1,2<=a.j.top?(a.B?HG(a,b,0,0,a.j.width,a.j.top-1):HG(a,b,0,b.videoHeight-
a.j.top+1,a.j.width,a.j.top-1))&&--a.A:2<=a.j.left&&(a.B?HG(a,b,0,0,a.j.left-1,a.j.height):HG(a,b,b.videoWidth-a.j.left+1,0,a.j.left-1,a.j.height))&&--a.A,0>=a.A&&(a.j.top=0,a.j.left=0,a.j.width=b.videoWidth,a.j.height=b.videoHeight));try{a.o.drawImage(b,a.j.left,a.j.top,a.j.width,a.j.height,0,0,a.C.width,a.C.height)}catch(f){if(!(f instanceof DOMException)||"IndexSizeError"!=f.name)throw f;}return a.o.canvas}
function HG(a,b,c,d,e,f){e>=f?(d+=Math.random()*f|0,f=1):(c+=Math.random()*e|0,e=1);try{a.o.drawImage(b,c,d,e,f,c,d,e,f)}catch(h){if(!(h instanceof DOMException)||"IndexSizeError"!=h.name)throw h;}a=a.o.getImageData(c,d,e,f).data;for(b=0;b<a.length;b+=4)if(255<a[b]+a[b+1]+a[b+2]+a[b+3])return!0;return!1}EG.prototype.destroy=function(){null!=this.o&&(this.o.canvas.remove?this.o.canvas.remove():this.o.canvas.removeNode(!0),this.o=null)};function IG(a,b,c){this.G=b||!1;this.D=c||null;this.j="precision mediump float;\nuniform sampler2D uSplr;\nvarying vec2 vTexCrd;\nvoid main(void) {\n  gl_FragColor = texture2D(uSplr, vTexCrd);\n}";this.C=new EG(a)}g=IG.prototype;g.uk=function(){return"attribute vec3 aVertPos;\nvarying vec2 vTexCrd;\nvoid main(void) {\n  vTexCrd = vec2((aVertPos.x + 1.0) * 0.5, (1.0 - aVertPos.y) * 0.5);\n  gl_Position = vec4(aVertPos, 1.0);\n}"};g.qk=function(){return this.j};
g.Sc=function(a,b){a.uniform1i(a.getUniformLocation(b,"uSplr"),0)};g.Gr=function(){};g.zm=function(a){this.G&&(360>=As[a]?this.D(!0):this.D(!1))};g.Nc=function(a,b){a.texImage2D(a.TEXTURE_2D,0,a.RGBA,a.RGBA,a.UNSIGNED_BYTE,FG(this.C,b));a.drawArrays(a.TRIANGLE_STRIP,0,4)};g.aq=function(){return!0};g.gq=function(){return!1};g.Te=function(){return{shader:"NoOp"}};g.mh=function(){};g.destroy=function(){this.C&&this.C.destroy()};function JG(a,b){IG.call(this,a);this.j="precision mediump float;\nuniform sampler2D uSplr;\nuniform int mode;\nvarying vec2 vTexCrd;\nuniform mat4 mLt;\nuniform mat4 mRt;\nvoid anaglyph(float x, float y) {\n  x *= 0.5;\n  vec4 cLt = texture2D(uSplr, vec2(x, y));\n  vec4 cRt = texture2D(uSplr, vec2(0.5 + x, y));\n  gl_FragColor = mLt * cLt + mRt * cRt;\n}\nvoid main(void) {\n  if (mode == 1) {\n    anaglyph(vTexCrd.x, vTexCrd.y);\n  }\n  else if (mode == 0) {\n    gl_FragColor = texture2D(uSplr, vec2(vTexCrd.x * 0.5, vTexCrd.y));\n  }\n}";
this.F=b;this.B=null;this.o=1;this.A=!0}B(JG,IG);function KG(a,b){if(!(b.ga||Mi&&!Fu()))return!1;if(ty(a)&&3!=a.Ta&&4!=a.Ta)return!0;if(!a.j)return!1;for(var c in a.j.j){var d=a.j.j[c].info.video;if(d&&1==d.o)return!0}return!1}
JG.prototype.Sc=function(a,b,c){JG.N.Sc.call(this,a,b,c);a.uniformMatrix4fv(a.getUniformLocation(b,"mLt"),!1,new Float32Array([.456,-.04,-.015,0,.5,-.038,-.021,0,.176,-.016,-.005,0,0,0,0,1]));a.uniformMatrix4fv(a.getUniformLocation(b,"mRt"),!1,new Float32Array([-.043,.378,-.072,0,-.088,.734,-.113,0,0,-.018,1.226,0,0,0,0,1]));this.B=a.getUniformLocation(b,"mode");a.uniform1i(this.B,this.o)};JG.prototype.Nc=function(a,b,c){this.A&&(a.uniform1i(this.B,this.o),this.A=!1);JG.N.Nc.call(this,a,b,c)};
JG.prototype.Te=function(){return{shader:"Anaglyph3D",displayMode:this.o}};JG.prototype.mh=function(a){"Anaglyph3D"==a.shader&&(void 0!=a.displayMode&&(this.o=parseInt(a.displayMode,10),this.A=!0),this.F())};function LG(a,b){IG.call(this,a,!0,b);this.j="precision highp float;\nuniform sampler2D uSplr;\nuniform sampler2D uNoiseSplr;\nuniform float seed;\nvarying vec2 vTexCrd;\nvoid main(void) {\n  vec4 col = vec4(texture2D(uSplr, vTexCrd).xyz, 1.0);\n  vec4 noiseCol = texture2D(uNoiseSplr, vTexCrd + seed);\n  float amt = 0.05;\n  float maxCol = max(max(col.x, col.y), col.z);\n  amt = amt * smoothstep(0.0, 0.1, maxCol);\n  amt = amt * smoothstep(0.0, 0.1, 1.0 - maxCol);\n  col.xyz = col.xyz + (noiseCol.x - 0.5) * amt;\n  gl_FragColor = col;\n}";
this.A=null;this.$=a;this.H=a.V().experiments.xa("white_noise_with_interval");this.B=0}B(LG,IG);
LG.prototype.Sc=function(a,b,c){LG.N.Sc.call(this,a,b,c);c=new Uint8Array(4194304);for(var d=0;4194304>d;d++)c[d]=255*Math.random();d=a.createTexture();a.activeTexture(a.TEXTURE1);a.bindTexture(a.TEXTURE_2D,d);a.texParameteri(a.TEXTURE_2D,a.TEXTURE_MIN_FILTER,a.NEAREST);a.texParameteri(a.TEXTURE_2D,a.TEXTURE_MAG_FILTER,a.NEAREST);a.texParameteri(a.TEXTURE_2D,a.TEXTURE_WRAP_S,a.REPEAT);a.texParameteri(a.TEXTURE_2D,a.TEXTURE_WRAP_T,a.REPEAT);a.texImage2D(a.TEXTURE_2D,0,a.LUMINANCE,2048,2048,0,a.LUMINANCE,
a.UNSIGNED_BYTE,c);a.uniform1i(a.getUniformLocation(b,"uNoiseSplr"),1);this.A=a.getUniformLocation(b,"seed");(a=this.$.getVideoData())&&a.o&&this.zm(a.o.video.quality)};LG.prototype.Nc=function(a,b,c){if(this.H){var d=A();1E3<d-this.B&&(this.B=d,a.uniform1f(this.A,Math.random()))}else a.uniform1f(this.A,Math.random());LG.N.Nc.call(this,a,b,c)};LG.prototype.Te=function(){return{shader:"WhiteNoise"}};function MG(a,b){LG.call(this,a,b);this.j="precision highp float;\nuniform sampler2D uSplr;\nuniform float seed;\nuniform int mode;\nvarying vec2 vTexCrd;\nfloat noise(vec2 crd)\n{\n  return fract(sin(crd.y * 99.87 + crd.x * 0.0978) * seed);\n}\nvoid main(void) {\n  if (mode == 0) { gl_FragColor = texture2D(uSplr,vTexCrd); return; }\n  vec2 texCrdMinusx = vec2(vTexCrd.x - 0.00156, vTexCrd.y);\n  vec2 texCrdMinusy = vec2(vTexCrd.x, vTexCrd.y - 0.00277);\n  vec4 orjcol = texture2D(uSplr,vTexCrd);\n  vec4 col = orjcol * 1.8 -\n      texture2D(uSplr,texCrdMinusx) * 0.4 -\n      texture2D(uSplr,texCrdMinusy) * 0.4;\n  vec4 diff = orjcol * 2.0 -\n      texture2D(uSplr,texCrdMinusx) -\n      texture2D(uSplr,texCrdMinusy);\n  float fDiff = length(diff);\n  float maxCol = max(max(orjcol.x, orjcol.y), orjcol.z);\n  float namt = 0.035;\n  namt = namt * smoothstep(0.0, 0.1, maxCol);\n  namt = namt * smoothstep(0.0, 0.1, 1.0 - maxCol);\n  float noiseL = noise(gl_FragCoord.xy) * namt;\n  float eamt = smoothstep(0.0, 0.05, fDiff);\n  col = eamt * col + (1.0 - eamt) * orjcol;\n  col.xyz = col.xyz + ((1.0 - eamt) * noiseL);\n  gl_FragColor = col;\n}";
this.o=null;this.F=!1}B(MG,LG);MG.prototype.Sc=function(a,b,c){MG.N.Sc.call(this,a,b,c);this.o=a.getUniformLocation(b,"mode");a.uniform1i(this.o,1)};MG.prototype.Nc=function(a,b,c){this.F&&(a.uniform1i(this.o,1),this.F=!1);MG.N.Nc.call(this,a,b,c)};MG.prototype.Te=function(){return{shader:"EdgeEnhance"}};function NG(a,b,c,d){Mk.call(this);this.C=!!b;this.F=a;this.o=c||a;this.H=!!d;this.j=new ax(this);this.B=this.G=null;this.D=this.A=!1;b&&(Jc&&a.setAttribute("draggable","true"),a.style.setProperty("touch-action","none"));OG(this)}B(NG,Mk);g=NG.prototype;g.cancel=function(){this.D&&this.O("dragend",0,0,null);this.A&&this.O("hoverend",0,0,null);cx(this.j);OG(this)};function OG(a){a.B=null;a.G=null;T(a.j,a.o,PG("over"),a.Vq);T(a.j,a.o,"touchstart",a.jm);a.C&&T(a.j,a.o,PG("down"),a.Ax)}
g.Vq=function(a){cx(this.j);T(this.j,this.o,PG("move"),this.Tq);T(this.j,this.o,PG("out"),this.Uq);T(this.j,this.o,"touchstart",this.jm);this.C&&T(this.j,this.o,PG("down"),this.im);var b=Nm(a);a=Qm(a);this.A=!0;this.O("hoverstart",a.x,a.y,b);this.O("hovermove",a.x,a.y,b)};g.Tq=function(a){var b=Nm(a);a=Qm(a);if(this.B){var c=Pm(this.B),d=Qm(this.B);d.x==a.x&&d.y==a.y&&c==b||this.O("hovermove",a.x,a.y,b)}else this.O("hovermove",a.x,a.y,b);this.B=null};
g.Uq=function(a){var b=Qm(a),c=Pm(a);c&&bg(this.F,c)?(this.B=a,this.O("hovermove",b.x,b.y,c)):(cx(this.j),OG(this),this.A=!1,this.O("hoverend",b.x,b.y,c))};g.Ax=function(a){this.Vq(a);this.im(a)};
g.im=function(a){if(!ga(a.button)||0==a.button){cx(this.j);T(this.j,document,PG("move"),this.zx);T(this.j,document,PG("up"),this.lC);var b=Nm(a);if(Jc)T(this.j,this.o,"dragstart",this.wv);else if(Rm(a),(Hc||Ic)&&b)a:{for(var c=b;c;){if(fg(c)||"-1"===c.getAttribute("tabindex")){c.focus();break a}c=c.parentElement}document.activeElement.blur()}this.D=!0;a=Qm(a);this.O("dragstart",a.x,a.y,b);this.O("dragmove",a.x,a.y,b)}};g.wv=function(a){Rm(a)};
g.zx=function(a){var b=Nm(a);b==document&&(b=null);a=Qm(a);this.O("hovermove",a.x,a.y,b);this.O("dragmove",a.x,a.y,b)};g.lC=function(a){cx(this.j);this.D=!1;var b=Om(a),c=Nm(a);a=Qm(a);b&&bg(this.F,b)?(T(this.j,this.o,PG("move"),this.Tq),T(this.j,this.o,PG("out"),this.Uq),T(this.j,this.o,PG("down"),this.im),T(this.j,this.o,"touchstart",this.jm),this.O("dragend",a.x,a.y,c)):(OG(this),this.A=!1,this.O("dragend",a.x,a.y,c),this.O("hoverend",a.x,a.y,c))};
g.jm=function(a){var b=a.changedTouches[0];b&&(cx(this.j),T(this.j,this.o,"touchmove",this.mC),T(this.j,this.o,"touchend",this.Wq),T(this.j,this.o,"touchcancel",this.Wq),this.G=b.identifier,a=Nm(a),this.A||(this.A=!0,this.O("hoverstart",b.pageX,b.pageY,a)),this.O("hovermove",b.pageX,b.pageY,a),this.C&&(this.D=!0,this.O("dragstart",b.pageX,b.pageY,a),this.O("dragmove",b.pageX,b.pageY,a)))};
g.mC=function(a){var b=QG(this,a);b&&(Rm(a),a=Nm(a),this.O("hovermove",b.pageX,b.pageY,a),this.C&&this.O("dragmove",b.pageX,b.pageY,a))};g.Wq=function(a){var b=QG(this,a);if(b){cx(this.j);OG(this);this.A=!1;var c=Nm(a);this.C&&(this.H||Rm(a),this.D=!1,this.O("dragend",b.pageX,b.pageY,c));this.O("hoverend",b.pageX,b.pageY,c)}};function QG(a,b){for(var c=0;c<b.changedTouches.length;c++){var d=b.changedTouches[c];if(d.identifier==a.G)return d}return null}
function PG(a){return window.navigator.msPointerEnabled?"MSPointer"+a.charAt(0).toUpperCase()+a.substr(1):"mouse"+a}g.R=function(){this.C&&(Jc&&this.F.removeAttribute("draggable"),this.F.style.removeProperty("touch-action"));cx(this.j);NG.N.R.call(this)};function RG(){this.j=new Float32Array(16);this.A=new Float32Array(16);this.o=new Float32Array(16);this.identity()}RG.prototype.identity=function(){this.j.set([1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1])};RG.prototype.get=function(){return this.j};
function SG(a,b){for(var c=0;16>c;c+=4)a.o[c+0]=a.j[c+0]*b[0]+a.j[c+1]*b[4]+a.j[c+2]*b[8]+a.j[c+3]*b[12],a.o[c+1]=a.j[c+0]*b[1]+a.j[c+1]*b[5]+a.j[c+2]*b[9]+a.j[c+3]*b[13],a.o[c+2]=a.j[c+0]*b[2]+a.j[c+1]*b[6]+a.j[c+2]*b[10]+a.j[c+3]*b[14],a.o[c+3]=a.j[c+0]*b[3]+a.j[c+1]*b[7]+a.j[c+2]*b[11]+a.j[c+3]*b[15];c=a.j;a.j=a.o;a.o=c};function TG(a,b){this.J=a;this.U=b;this.C=new RG;this.Z=this.W=this.aa=this.Ga=null;this.A=.872;this.S=this.X=this.T=this.o=this.j=0;this.D=!0;this.H=3.14;this.B=0;this.K=new EG(a);this.G=null}g=TG.prototype;g.uk=function(){return"attribute vec3 aVertPos;\nvarying vec3 pos;\nvoid main() {\n  gl_Position = vec4(aVertPos.xyz, 1.0);\n  pos = aVertPos;\n}"};g.qk=function(){return"precision mediump float;varying vec3 pos;uniform sampler2D uSplr;uniform mat4 uVMat;uniform float uFOVx;uniform float uFOVy;\n#define INV_PI 0.3183\nvoid main() {  vec3 ray = vec3(pos.x * tan(uFOVx), pos.y * tan(uFOVy), -1);  ray = (uVMat * vec4(ray, 1.0)).xyz;  ray = normalize(ray);  vec2 texCrd = vec2(0.5 - atan(ray.x, ray.z) * INV_PI * 0.5,                     acos(ray.y) * INV_PI);  gl_FragColor = vec4(texture2D(uSplr, texCrd).xyz, 1.0);}"};
g.Sc=function(a,b){this.Ga=a.getUniformLocation(b,"uVMat");this.W=a.getUniformLocation(b,"uFOVx");this.Z=a.getUniformLocation(b,"uFOVy");this.aa=a.getUniformLocation(b,"uSplr");a.uniform1i(this.aa,0)};g.Gr=function(){this.D=!0};g.zm=v;
g.Nc=function(a,b){var c=this.j,d=this.o;if(this.D){a.o>a.j?(this.j=this.A,this.o=Math.atan(Math.tan(this.A)*a.j/a.o)):(this.o=this.A,this.j=Math.atan(Math.tan(this.A)*a.o/a.j));a.uniform1f(this.W,this.j);a.uniform1f(this.Z,this.o);this.B=De(this.B,-Math.PI/2,Math.PI/2);this.C.identity();var e=this.C,f=this.B,h=Math.sin(f),f=Math.cos(f);e.A.set([1,0,0,0,0,f,h,0,0,-h,f,0,0,0,0,1]);SG(e,e.A);e=this.C;f=this.H;h=Math.sin(f);f=Math.cos(f);e.A.set([f,0,-h,0,0,1,0,0,h,0,f,0,0,0,0,1]);SG(e,e.A);a.uniformMatrix4fv(this.Ga,
!1,this.C.get());this.D=!1;this.J.V().experiments.C&&(e=this.J,h=UG(e),e.app.Oa("webglsettingschanged",h))}e=A();(this.T!=this.j||this.X!=this.o)&&3E4<e-this.S&&c==this.j&&d==this.o&&(this.T=this.j,this.X=this.o,this.S=e,(c=nr(this.J.app))&&c.A&&(c=c.A.A,d=Math.round(360*this.j/Math.PI),e=Math.round(360*this.o/Math.PI),h=YB(c.j),hC(c,"fov",[d,e],h)));a.texImage2D(a.TEXTURE_2D,0,a.RGBA,a.RGBA,a.UNSIGNED_BYTE,FG(this.K,b));a.drawArrays(a.TRIANGLE_STRIP,0,4)};g.aq=function(){return!1};g.gq=function(){return!1};
g.Te=function(){return{shader:"Spherical",yaw:this.H,pitch:this.B,fovX:this.A}};g.mh=function(a){if("Spherical"==a.shader||"Spherical3D"==a.shader)a.yaw&&(this.H=a.yaw),a.pitch&&(this.B=a.pitch),a.fovX&&(this.A=De(a.fovX,.32,1.05)),this.D=!0,this.U()};g.destroy=function(){this.K&&this.K.destroy();this.G&&(this.G.dispose(),this.G=null)};function VG(a,b){TG.call(this,a,b);this.M=null;this.F=0;this.L=!0}B(VG,TG);g=VG.prototype;g.uk=function(){return"attribute vec3 aVertPos;\nvarying vec3 pos;\nvoid main() {\n  gl_Position = vec4(aVertPos.xyz, 1.0);\n  pos = aVertPos;\n}"};g.qk=function(){return"precision mediump float;varying vec3 pos;uniform sampler2D uSplr;uniform int mode;uniform mat4 uVMat;uniform float uFOVx;uniform float uFOVy;\n#define INV_PI 0.3183\nmat4 mRt = mat4(-.043, .378, -.072, 0.0, -.088, .734, -.113, 0.0, 0.0,   -0.018, 1.226, 0.0, 0.0, 0.0, 0.0, 1.0);mat4 mLt = mat4(.456, -.04, -.015, 0.0, .5, -.038, -.021, 0.0, .176,   -0.016, -.005, 0.0, 0.0, 0.0, 0.0, 1.0);void anaglyph(float x, float y) {  y *= 0.5;  vec4 cLt = texture2D(uSplr, vec2(x, y));  vec4 cRt = texture2D(uSplr, vec2(x, 0.5 + y));  gl_FragColor = mLt * cLt + mRt * cRt;}void main() {  vec3 ray = vec3(pos.x * tan(uFOVx), pos.y * tan(uFOVy), -1);  ray = (uVMat * vec4(ray, 1.0)).xyz;  ray = normalize(ray);  vec2 texCrd = vec2(0.5 - atan(ray.x, ray.z) * INV_PI * 0.5,                     acos(ray.y) * INV_PI);  if (mode == 1) {    anaglyph(texCrd.x, texCrd.y);  } else {    texCrd.y *= 0.5;    gl_FragColor = texture2D(uSplr, texCrd);  }}"};
g.Sc=function(a,b,c){VG.N.Sc.call(this,a,b,c);this.M=a.getUniformLocation(b,"mode");a.uniform1i(this.M,this.F)};g.Nc=function(a,b,c,d){this.L&&(a.uniform1i(this.M,this.F),this.L=!1);VG.N.Nc.call(this,a,b,c,d)};g.Te=function(){var a=VG.N.Te.call(this);a.shader="Spherical3D";a.displayMode=this.F;return a};g.mh=function(a){void 0!=a.displayMode&&(this.F=parseInt(a.displayMode,10),this.L=!0,this.U());VG.N.mh.call(this,a)};var WG=window,XG=document,YG=WG.location;function ZG(){}var $G=/\[native code\]/;function aH(a,b,c){return a[b]=a[b]||c}function bH(a){for(var b=0;b<this.length;b++)if(this[b]===a)return b;return-1}function cH(a){a=a.sort();for(var b=[],c=void 0,d=0;d<a.length;d++){var e=a[d];e!=c&&b.push(e);c=e}return b}function dH(){var a;if((a=Object.create)&&$G.test(a))a=a(null);else{a={};for(var b in a)a[b]=void 0}return a}var eH=aH(WG,"gapi",{});var fH;fH=aH(WG,"___jsl",dH());aH(fH,"I",0);aH(fH,"hel",10);function gH(){var a=YG.href,b;if(fH.dpo)b=fH.h;else{b=fH.h;var c=RegExp("([#].*&|[#])jsh=([^&#]*)","g"),d=RegExp("([?#].*&|[?#])jsh=([^&#]*)","g");if(a=a&&(c.exec(a)||d.exec(a)))try{b=decodeURIComponent(a[2])}catch(e){}}return b}function hH(a){var b=aH(fH,"PQ",[]);fH.PQ=[];var c=b.length;if(0===c)a();else for(var d=0,e=function(){++d===c&&a()},f=0;f<c;f++)b[f](e)}function iH(a){return aH(aH(fH,"H",dH()),a,dH())};var jH=aH(fH,"perf",dH());aH(jH,"g",dH());var kH=aH(jH,"i",dH());aH(jH,"r",[]);dH();dH();function lH(a,b,c){b&&0<b.length&&(b=mH(b),c&&0<c.length&&(b+="___"+mH(c)),28<b.length&&(b=b.substr(0,28)+(b.length-28)),c=b,b=aH(kH,"_p",dH()),aH(b,c,dH())[a]=(new Date).getTime(),b=jH.r,"function"===typeof b?b(a,"_p",c):b.push([a,"_p",c]))}function mH(a){return a.join("__").replace(/\./g,"_").replace(/\-/g,"_").replace(/\,/g,"_")};var nH=dH(),oH=[];function pH(a){throw Error("Bad hint"+(a?": "+a:""));};oH.push(["jsl",function(a){for(var b in a)if(Object.prototype.hasOwnProperty.call(a,b)){var c=a[b];"object"==typeof c?fH[b]=aH(fH,b,[]).concat(c):aH(fH,b,c)}if(b=a.u)a=aH(fH,"us",[]),a.push(b),(b=/^https:(.*)$/.exec(b))&&a.push("http:"+b[1])}]);var qH=/^(\/[a-zA-Z0-9_\-]+)+$/,rH=/^[a-zA-Z0-9\-_\.,!]+$/,sH=/^gapi\.loaded_[0-9]+$/,tH=/^[a-zA-Z0-9,._-]+$/;function uH(a,b,c,d){var e=a.split(";"),f=e.shift(),h=nH[f],k=null;h?k=h(e,b,c,d):pH("no hint processor for: "+f);k||pH("failed to generate load url");b=k;c=b.match(vH);(d=b.match(wH))&&1===d.length&&xH.test(b)&&c&&1===c.length||pH("failed sanity: "+a);return k}
function yH(a,b,c,d){function e(a){return encodeURIComponent(a).replace(/%2C/g,",")}a=zH(a);sH.test(c)||pH("invalid_callback");b=AH(b);d=d&&d.length?AH(d):null;return[encodeURIComponent(a.jB).replace(/%2C/g,",").replace(/%2F/g,"/"),"/k=",e(a.version),"/m=",e(b),d?"/exm="+e(d):"","/rt=j/sv=1/d=1/ed=1",a.cn?"/am="+e(a.cn):"",a.jq?"/rs="+e(a.jq):"",a.Js?"/t="+e(a.Js):"","/cb=",e(c)].join("")}
function zH(a){"/"!==a.charAt(0)&&pH("relative path");for(var b=a.substring(1).split("/"),c=[];b.length;){a=b.shift();if(!a.length||0==a.indexOf("."))pH("empty/relative directory");else if(0<a.indexOf("=")){b.unshift(a);break}c.push(a)}a={};for(var d=0,e=b.length;d<e;++d){var f=b[d].split("="),h=decodeURIComponent(f[0]),k=decodeURIComponent(f[1]);2==f.length&&h&&k&&(a[h]=a[h]||k)}b="/"+c.join("/");qH.test(b)||pH("invalid_prefix");c=BH(a,"k",!0);d=BH(a,"am");e=BH(a,"rs");a=BH(a,"t");return{jB:b,version:c,
cn:d,jq:e,Js:a}}function AH(a){for(var b=[],c=0,d=a.length;c<d;++c){var e=a[c].replace(/\./g,"_").replace(/-/g,"_");tH.test(e)&&b.push(e)}return b.join(",")}function BH(a,b,c){a=a[b];!a&&c&&pH("missing: "+b);if(a){if(rH.test(a))return a;pH("invalid: "+b)}return null}var xH=/^https?:\/\/[a-z0-9_.-]+\.google\.com(:\d+)?\/[a-zA-Z0-9_.,!=\-\/]+$/,wH=/\/cb=/g,vH=/\/\//g;function CH(){var a=gH();if(!a)throw Error("Bad hint");return a}
nH.m=function(a,b,c,d){(a=a[0])||pH("missing_hint");return"https://apis.google.com"+yH(a,b,c,d)};var DH=decodeURI("%73cript");function EH(a,b){for(var c=[],d=0;d<a.length;++d){var e=a[d];e&&0>bH.call(b,e)&&c.push(e)}return c}function FH(a){"loading"!=XG.readyState?GH(a):XG.write("<"+DH+' src="'+encodeURI(a)+'"></'+DH+">")}function GH(a){var b=XG.createElement(DH);b.setAttribute("src",a);b.async="true";(a=XG.getElementsByTagName(DH)[0])?a.parentNode.insertBefore(b,a):(XG.head||XG.body||XG.documentElement).appendChild(b)}
function HH(a,b){var c=b&&b._c;if(c)for(var d=0;d<oH.length;d++){var e=oH[d][0],f=oH[d][1];f&&Object.prototype.hasOwnProperty.call(c,e)&&f(c[e],a,b)}}function IH(a,b,c){JH(function(){var c;c=b===gH()?aH(eH,"_",dH()):dH();c=aH(iH(b),"_",c);a(c)},c)}
function KH(a,b){var c=b||{};"function"==typeof b&&(c={},c.callback=b);HH(a,c);var d=a?a.split(":"):[],e=c.h||CH(),f=aH(fH,"ah",dH());if(f["::"]&&d.length){for(var h=[],k=null;k=d.shift();){var l=k.split("."),l=f[k]||f[l[1]&&"ns:"+l[0]||""]||e,n=h.length&&h[h.length-1]||null,r=n;n&&n.hint==l||(r={hint:l,features:[]},h.push(r));r.features.push(k)}var u=h.length;if(1<u){var z=c.callback;z&&(c.callback=function(){0==--u&&z()})}for(;d=h.shift();)LH(d.features,c,d.hint)}else LH(d||[],c,e)}
function LH(a,b,c){function d(a,b){if(u)return 0;WG.clearTimeout(r);z.push.apply(z,V);var d=((eH||{}).config||{}).update;d?d(f):f&&aH(fH,"cu",[]).push(f);if(b){lH("me0",a,y);try{IH(b,c,n)}finally{lH("me1",a,y)}}return 1}a=cH(a)||[];var e=b.callback,f=b.config,h=b.timeout,k=b.ontimeout,l=b.onerror,n=void 0;"function"==typeof l&&(n=l);var r=null,u=!1;if(h&&!k||!h&&k)throw"Timeout requires both the timeout parameter and ontimeout parameter to be set";var l=aH(iH(c),"r",[]).sort(),z=aH(iH(c),"L",[]).sort(),
y=[].concat(l);0<h&&(r=WG.setTimeout(function(){u=!0;k()},h));var V=EH(a,z);if(V.length){var V=EH(a,l),va=aH(fH,"CP",[]),L=va.length;va[L]=function(a){function b(){var a=va[L+1];a&&a()}function c(b){va[L]=null;d(V,a)&&hH(function(){e&&e();b()})}if(!a)return 0;lH("ml1",V,y);0<L&&va[L-1]?va[L]=function(){c(b)}:c(b)};if(V.length){var wa="loaded_"+fH.I++;eH[wa]=function(a){va[L](a);eH[wa]=null};a=uH(c,V,"gapi."+wa,l);l.push.apply(l,V);lH("ml0",V,y);b.sync||WG.___gapisync?FH(a):GH(a)}else va[L](ZG)}else d(V)&&
e&&e()};function JH(a,b){if(fH.hee&&0<fH.hel)try{return a()}catch(c){b&&b(c),fH.hel--,KH("debug_error",function(){try{window.___jsl.hefn(c)}catch(a){throw c;}})}else try{return a()}catch(c){throw b&&b(c),c;}};eH.load=function(a,b){return JH(function(){return KH(a,b)})};function MH(){Mk.call(this);this.j={}}B(MH,Mk);function NH(a,b,c){if(!a.j[b]&&(c.te||c.Rf)){var d=a.j,e=c;Object.isFrozen&&!Object.isFrozen(c)&&(e=Object.create(c),Object.freeze(e));d[b]=e;a.O("vast_info_card_add",b)}}MH.prototype.remove=function(a){var b=this.get(a);delete this.j[a];return b};MH.prototype.get=function(a){return this.j[a]||null};MH.prototype.isEmpty=function(){return jc(this.j)};function OH(){if(null==t("_lact",window)){var a=parseInt(pj("LACT"),10),a=isFinite(a)?A()-Math.max(a,0):-1;q("_lact",a,window);-1==a&&PH();Hm(document,"keydown",PH);Hm(document,"keyup",PH);Hm(document,"mousedown",PH);Hm(document,"mouseup",PH);Dj("page-mouse",PH);Dj("page-scroll",PH);Dj("page-resize",PH)}}function PH(){null==t("_lact",window)&&(OH(),t("_lact",window));var a=A();q("_lact",a,window);Gj("USER_ACTIVE")}function mC(){var a=t("_lact",window);return null==a?-1:Math.max(A()-a,0)};var QH={RED:"red",WHITE:"white",BLUE:"blue"};var RH={"ad-trueview-indisplay-pv":6,"ad-trueview-insearch":7},SH={"ad-trueview-indisplay-pv":2,"ad-trueview-insearch":2},TH="blogger books docs google-live play picasaweb".split(" ");
function UH(a){H.call(this);a=nc(a);this.M={};this.experiments=new $B(a.fexp,a.fflags);iv=this.experiments.H;this.forcedExperiments=a.forced_experiments||null;var b;try{b=document.location.toString()}catch(e){b=""}this.ia=b;this.L=(this.K=Kq.test(this.ia))?Vv("",a.loaderUrl):this.ia;this.jb=Wq(this.L);this.protocol=(this.$e=(this.Sb=Sv(!1,a.ssl_stream))||Sv(!1,a.ssl))?"https":"http";this.baseYtUrl=Vq(a.BASE_YT_URL,this.experiments.xa("legacy_base_url"))||Vq(this.ia,this.experiments.xa("legacy_base_url"))||
this.protocol+"://www.youtube.com/";"adunit"==a.el?Rq.test(this.L)?this.Aa="adunit":this.Aa="embedded":this.experiments.xa("legacy_el")?this.Aa=a.el||this.Aa:"embedded"==a.el||this.jb?this.Aa=Tv(this.Aa,a.el,JE):a.el&&(this.Aa="embedded");OH();b=null;var c=a.ps,d=tb(TH,c);!c||d&&!this.jb||(b=c);this.j=b;this.Cb=tb(TH,this.j);this.B="blogger"==this.j||"books"==this.j||"docs"==this.j||"google-live"==this.j||"picasaweb"==this.j;this.wb=!this.B;this.Ye=Sv(!this.B,a.showwatchlater);this.o={};this.o.c=
"web";this.o.cver="html5";this.o.cplayer="UNIPLAYER";this.ob=Sv(!1,a.edu_mode);this.T=!(!Su().defaultPlaybackRate||Ec&&!Gu("chrome")||Ki||Ji||Gu("android")||Gu("silk"));a.use_media_volume?b=!1:(b=Su(),c=b.muted,b.muted=!c,b=b.muted!=c);this.ub=b;this.oe=Li;(Ki||Ji||Ni)&&"blazer"!=this.j&&VH(this);this.Da=Sv("adunit"!=this.Aa&&"detailpage"!=this.Aa&&!this.Cb,a.showinfo);this.isMobile=Sv("blazer"==this.j,a.is_html5_mobile_device);this.Rb=Sv(!1,a.playsinline);b=this.isMobile&&zu&&2.3>=yu;c=WH(this)||
!b&&Sv("native"==this.j,a.use_native_controls)?"3":"1";this.A="0"!=a.controls?c:"0";this.useTabletControls=this.experiments.xa("disable_new_tablet_mode_behavior")?Sv("blazer"==this.j||"touch"==this.j,a.use_tablet_controls):this.isMobile;this.color=Tv("red",a.color,QH);this.Gd="3"==this.A||Sv(!1,a.modestbranding)&&"red"==this.color;Sv(!1,a.nologo)&&(c=this.L,Sq.test(c),Wq(c));this.qc=(c=!XH(this)&&"detailpage"!=this.Aa&&!this.B&&!this.Cb)&&!this.Gd&&"1"==this.A;this.Wc="embedded"==this.Aa&&c&&!this.Da&&
!this.qc;this.Ze=this.Hd=b;this.G=Ji?this.experiments.ea&&7<=Jw:!0;this.vb=this.K||!1;this.S="detailpage"==this.Aa?"":(this.L||a.post_message_origin||"").substring(0,128);this.Xa=!!a.disableCast;this.autoplay=Sv(!1,a.autoplay);this.Bd=Sv(!1,a.autoplayoverride);this.Zc=this.autoplay||"detailpage"==this.Aa;b=this.Bd||!this.isMobile&&!Mu();this.za=this.Zc&&b;b="detailpage"==this.Aa&&"blazer"==this.j;this.wa=!Sv(!0,a.fs);this.Pa=!this.wa&&(b||ni());this.sc=Sv(!this.Cb,a.rel);this.Xe="adunit"!=this.Aa;
this.W="profilepage"==this.Aa;this.Ca="blazer"==this.j;switch(this.j){case "blogger":b="bl";break;case "books":b="gb";break;case "docs":b="gd";break;case "google-live":b="gl";break;case "play":b="gp";break;case "picasaweb":b="pw";break;default:b="yt"}this.Z=b;this.Bb=Vv("",a.authuser);this.fb=Sv(!1,a.disablekb);this.pageId=Vv("",a.pageid);this.Id=Yv(rv,a.vq);this.Jd=Vv("",a.playerapiid);this.We=Sv(!0,a.canplaylive);this.Cd=Sv(this.Cb,a.ss);(b=a.video_container_override)?(c=b.split("x"),2!=c.length?
b=null:(b=parseInt(c[0],10),c=parseInt(c[1],10),b=isNaN(b)||isNaN(c)||0>=b*c?null:new N(b,c))):b=null;this.La=b;this.mute=this.jb&&Sv(!1,a.mute);this.storeUserVolume=!this.mute&&Sv("0"!=this.A,a.store_user_volume);this.useMediaVolume=Sv(!1,a.use_media_volume);this.pe=Sv(!1,a.retryneterr)&&this.jb;this.ad="3"==this.A?3:Tv(void 0,a.iv_load_policy,yv);this.fa=Sv(!1,a.iv_allow_in_place_switch);this.Sa=Vv("",a.cc_lang_pref);this.aa=Tv(void 0,a.cc_load_policy,yv);this.ca=void 0==a.content_v?void 0:a.content_v.toString();
this.Dd=void 0==a.framer?void 0:a.framer.toString();this.X=Vv("en_US",a.hl);this.region=Vv("US",a.cr);this.hostLanguage=Vv("en",a.host_language);this.Fd=Sv(!1,a.privembed);this.Lb="";this.na=new Vk;this.J=Sv(!0,a.deviceHasDisplay);this.Ta=Uv(this.Ta,a.ismb);YH(this,a);this.M=a;this.H=new MH;this.C=this.isMobile;b=a;b.innertube_api_key&&b.innertube_api_version&&b.c&&b.innertube_context_client_version&&this.hostLanguage&&this.region||this.experiments.xa("disable_innertube_config_reporting")||vj(Error("MISSING_INNERTUBE_CONFIG"));
this.Ed={apiaryHost:Vv("",b.apiary_host),yJ:Vv("",b.apiary_host_firstparty),gapiHintOverride:Sv(!1,b.gapi_hint_override),gapiHintParams:Vv("",b.gapi_hint_params),innertubeApiKey:Vv("",b.innertube_api_key),innertubeApiVersion:Vv("",b.innertube_api_version),hx:Vv("",b.c),innertubeContextClientVersion:Vv("",b.innertube_context_client_version),jx:this.hostLanguage,ix:this.region};this.Jc=void 0!=window.WebKitPlaybackTargetAvailabilityEvent&&Sv(!1,a.airplay_button);this.F=new qx(this.J,"web"==this.o.c.toLowerCase().substr(0,
3)||Iu()||Ju())}B(UH,H);var ZH={SF:"cbrand",TF:"cbr",UF:"cbrver",TG:"c",WG:"cver",VG:"ctheme",UG:"cplayer",jH:"cmodel",qH:"cnetwork",BH:"cos",DH:"cosver",EH:"cplatform"};g=UH.prototype;g.Aa="detailpage";g.Ig=!1;g.Yk=!1;g.Hg=!1;g.lg=!1;g.mc=null;function $H(a,b){a.Wa=b.get("d",a.Wa);a.Ea=b.get("f",a.Ea)}
function YH(a,b){a.D=void 0;var c;(c=b.adformat)||(c=(c=b.attrib)&&gc(RH,c)&&gc(SH,c)?SH[c]+"_"+RH[c]:void 0);if(c){var d=c.match(/^(\d*)_((\d*)_?(\d*))$/);if(d&&5==d.length){var e=d[3],d=!(1==d[1]&&8==e)&&(6==e||7==e||8==e||10==e);if(a.K||a.jb||d)a.D=c,a.M.adformat=b.adformat,d||(a.Aa="adunit")}}if(c=b.video_id&&b.video_id!=a.Lb)a.Lb=b.video_id;if(b.adpings||c)a.$c=b.adpings?jk(b.adpings):null;a.ob?d="s.youtubeeducation.com":a.wb?(d=b.videostats_playback_base_url&&b.videostats_playback_base_url.split("/")[2]||
"s.youtube.com",a.experiments.fa&&"s.youtube.com"==d&&(d="www.youtube.com")):d="video.google.com";a.Yc=d;a.Xc="//"+a.Yc+"/api/stats/qoe";if(b.feature||c)d=b.feature,a.ga=d,a.M.feature=d;if(b.referrer||c)d=b.referrer,a.referrer=d,a.M.referrer=d;if(b.q||c)a.searchQuery=b.q;for(var f in ZH)c=ZH[f],d=b[c],void 0!=d&&(a.o[c]=d);!a.ea&&b.cl&&(a.ea=+b.cl);a.userAge=Uv(a.userAge,b.user_age);a.userDisplayImage=Vv(a.userDisplayImage,b.user_display_image);Lq.test(a.userDisplayImage)||(a.userDisplayImage="");
a.userDisplayName=Vv(a.userDisplayName,b.user_display_name);a.userGender=Vv(a.userGender,b.user_gender);a.U=Vv(a.U,b.eventid);a.U&&(Ov=a.U);a.csiPageType=Vv(a.csiPageType,b.csi_page_type);a.ha=Vv(a.ha,b.csi_service_name);a.Ca=Sv(a.Ca,b.enablecsi);b.enabled_engage_types&&(a.na=new Vk(b.enabled_engage_types.split(",")));a.fa=Sv(a.fa,b.iv_allow_in_place_switch)}
function Vr(a,b,c){b={video_id:b,html5:1,page_subscribe:c?1:0};a.Bb&&(b.authuser=a.Bb);a.pageId&&(b.pageid=a.pageId);return uh(a.baseYtUrl+"get_video_metadata",b)}function aI(a){var b;if(a.experiments.xa("disable_yt_base_url_host"))b=window.location.host;else{b=lh(a.baseYtUrl);var c=mh(a.baseYtUrl);c&&(b+=":"+c)}return"www.youtube-nocookie.com"==b||a.ob?"www.youtube.com":b}
g.getVideoUrl=function(a,b,c,d,e){b={list:b};c&&(e?b.time_continue=c:b.t=c);"gaming"==this.j?(c=this.protocol+"://gaming.youtube.com/watch",b.v=a):d&&"www.youtube.com"==aI(this)?c="https://youtu.be/"+a:(c=this.protocol+"://"+aI(this)+"/watch",b.v=a,(a=t("yt.www.ads.data.encryptedBiscottiId"))&&(b.ebc=a));return uh(c,b)};function py(a,b,c){return a.protocol+"://i1.ytimg.com/vi/"+b+"/"+(c||"hqdefault.jpg")}
function jC(a){var b={};if(a.mc){if(a.mc.getVideoPlaybackQuality)return a.mc.getVideoPlaybackQuality();a.mc.webkitDecodedFrameCount&&(b.totalVideoFrames=a.mc.webkitDecodedFrameCount,b.droppedVideoFrames=a.mc.webkitDroppedFrameCount)}return b}function bI(a){return a.experiments.G?az(a)||"leanback"==a.Aa:!0}function gz(a){return"leanback"==a.Aa||a.Cb||!a.sc&&!a.W?!1:!0}function cI(a){return az(a)||"embedded"==a.Aa||"profilepage"==a.Aa?!0:!1}function XH(a){return 0==a.L.indexOf(a.baseYtUrl)}
function az(a){return"detailpage"==a.Aa&&"gaming"!=a.j}function WH(a){return Ji&&!a.Rb||Mu()}function VH(a){return Lu()||"TV"==a.o.cplatform}function dI(){return window.devicePixelRatio||1}function Zy(a,b,c){return"detailpage"==a.Aa&&"blazer"!=a.j&&!!b&&!b.ypcPreview&&!b.Fa&&!tb(b.H,"ypc")&&!c}g.R=function(){this.mc=null;UH.N.R.call(this)};function eI(a,b,c,d){this.F=c;this.B=bG(a).o;this.J=10;this.C=!0;this.T=this.U=this.W=this.A=this.o=null;this.X=b;this.j=null;this.$=a;this.aa=d;this.L=null;this.D=new Ke(0,0,0,0);this.K=!1;this.H=!0}
function fI(a){a.o=document.createElement("canvas");if(!a.o)return 1;a.F.appendChild(a.o);try{a.A=a.o.getContext("webgl")||a.o.getContext("experimental-webgl")}catch(d){return 2}if(null==a.A)return 3;var b=gI(a);if(0!=b)return b;var b=a.A,c=b.createBuffer();b.bindBuffer(b.ARRAY_BUFFER,c);b.bufferData(b.ARRAY_BUFFER,new Float32Array([-1,-1,0,1,-1,0,-1,1,0,1,1,0]),b.STATIC_DRAW);a.U=c;b=a.A;c=b.createTexture();b.activeTexture(b.TEXTURE0);b.bindTexture(b.TEXTURE_2D,c);b.texParameteri(b.TEXTURE_2D,b.TEXTURE_MIN_FILTER,
b.LINEAR);b.texParameteri(b.TEXTURE_2D,b.TEXTURE_MAG_FILTER,b.LINEAR);b.texParameteri(b.TEXTURE_2D,b.TEXTURE_WRAP_S,b.CLAMP_TO_EDGE);b.texParameteri(b.TEXTURE_2D,b.TEXTURE_WRAP_T,b.CLAMP_TO_EDGE);a.W=c;b=a.A;b.clearColor(0,0,0,1);b.clear(b.COLOR_BUFFER_BIT|b.DEPTH_BUFFER_BIT);b.bindBuffer(b.ARRAY_BUFFER,a.U);b.vertexAttribPointer(a.S,3,b.FLOAT,!1,0,0);a.M();a.B.crossOrigin="use-credentials";return 0}
function gI(a){var b=a.A,c=b.createShader(b.VERTEX_SHADER);b.shaderSource(c,a.j.uk());b.compileShader(c);if(!b.getShaderParameter(c,b.COMPILE_STATUS))return 4;var d=b.createShader(b.FRAGMENT_SHADER);b.shaderSource(d,a.j.qk());b.compileShader(d);if(!b.getShaderParameter(d,b.COMPILE_STATUS))return 5;var e=b.createProgram();b.attachShader(e,c);if(1!=b.getProgramParameter(e,b.ATTACHED_SHADERS))return 6;b.attachShader(e,d);if(2!=b.getProgramParameter(e,b.ATTACHED_SHADERS))return 7;b.linkProgram(e);if(0==
b.getProgramParameter(e,b.LINK_STATUS))return 8;b.validateProgram(e);b.useProgram(e);if(0==b.getProgramParameter(e,b.VALIDATE_STATUS))return 9;a.S=b.getAttribLocation(e,"aVertPos");b.enableVertexAttribArray(a.S);a.T=e;a.j.Sc(b,a.T,a.F);return 0}
eI.prototype.M=function(){this.K=!1;if(this.A&&(this.B.videoWidth||this.B.videoHeight)){if(0==this.J){var a=dG(bG(this.$));if(!Me(this.D,a)){this.D=a;var b,c,d,a=bG(this.$).Ka();this.j.aq()?("Anaglyph3D"!=this.X?b=!1:(b=GG(bG(this.$)),c=this.$.getVideoData(),b=isNaN(b)||c.Oc("yt:stretch")||c.Oc("yt:crop")?!1:.01>Math.abs(b-32/9)||.01>Math.abs(b-8/9)),b?(16*a.height/9>a.width?(b=a.width,c=9*b/16):(c=a.height,b=16*c/9),d=(a.height-c)/2,a=(a.width-b)/2):(b=this.D.width,c=this.D.height,d=this.D.top,a=
this.D.left)):(b=a.width,c=a.height,a=d=0);a=new Ke(a|0,d|0,b|0,c|0);this.F.style.left=a.left+"px";this.F.style.top=a.top+"px";this.o.width=a.width;this.o.height=a.height;this.A.o=a.width;this.A.j=a.height;this.A.viewport(0,0,a.width,a.height);this.j.Gr()}}this.j.Nc(this.A,this.B,this.U,this.W)}(this.C||this.j&&this.j.gq())&&this.G()};
function hI(a){a.o&&(Wf(a.o),a.o=null);a.A=null;a.C=!1;a.j&&a.j.destroy(a.aa);a.j=null;a.B.removeAttribute("crossorigin");a.B.style.display="";a.J=10;a.L&&(a.L.dispose(),a.L=null)}eI.prototype.Z=function(a){this.H!=a&&this.o&&((this.H=a)?(this.F.appendChild(this.o),this.G(),Hc||(this.B.style.display="none")):(Wf(this.o),this.B.style.display=""))};eI.prototype.G=function(){!this.K&&this.H&&(requestAnimationFrame(this.M.bind(this)),this.K=!0)};function iI(a){lr.call(this,a);this.fa=!0;this.oa="webgl";this.subscribe("onResize",this.zD,this);this.subscribe("onPlaybackQualityChange",this.Pz,this);this.subscribe("onStateChange",this.Je,this);this.B=new R(["div","webgl"]);this.B.j(bG(a).B);this.$=a;this.o=null;this.A=!1}B(iI,lr);iI.o=function(a){return iI.Za(a)?new iI(a):null};iI.prototype.Za=function(){return iI.Za(this.j)};
iI.j=function(a){var b=a.V().o.c.toLowerCase(),c;c=a.getVideoData();a=a.V().experiments;if(KG(c,a))b="Anaglyph3D";else{var d;if(d=a.spherical||Mi&&!Li||Hc&&!Nu()&&Tc(11)||Ii&&!Li&&Tc(38)||Ec&&!Li&&Tc(27))a:{if(c.j)for(var e in c.j.j)if((d=c.j.j[e].info.video)&&2==d.projectionType){d=!0;break a}d=!1}if(d)b="Spherical";else{a:{if(!Li&&(Mi&&a.ca||a.xa("enable_spherical3d_firefox_opera_ie")&&(Hc&&!Nu()&&Tc(11)||Ii&&Tc(38)||Ec&&Tc(27))))for(var f in c.j.j)if((e=c.j.j[f].info.video)&&3==e.projectionType){c=
!0;break a}c=!1}b=c?"Spherical3D":a.S&&Mi&&"web"==b&&!Fu()?"NoOp":(a.Na||a.xa("white_noise_with_interval"))&&Mi&&"web"==b&&!Fu()?"WhiteNoise":a.F&&Mi&&"web"==b&&!Fu()?"EdgeEnhance":null}}return b};iI.Za=function(a){return a.V().J?null!=iI.j(a):!1};g=iI.prototype;g.zD=function(){if(this.A){var a=this.o;a.C||requestAnimationFrame(a.M.bind(a))}};g.Pz=function(a){if(this.A){var b=this.o;b.j&&b.j.zm(a)}};g.Je=function(a){if(this.A){var b=this.o,c=b.C;b.C=U(a.state,8);b.C&&!c&&b.G()}};g.R=function(){iI.N.R.call(this)};
g.create=function(){var a=iI.j(this.$);this.o=new eI(this.$,a,this.B.element,this);a:{a=this.o;a.j=null;var b=a.Z.bind(a),c=x(a.G,a);switch(a.X){case "Anaglyph3D":a.j=new JG(a.$,c);break;case "Spherical":a.j=new TG(a.$,c);break;case "WhiteNoise":a.j=new LG(a.$,b);break;case "EdgeEnhance":a.j=new MG(a.$,b);break;case "NoOp":a.j=new IG(a.$,!0,b);break;case "Spherical3D":a.j=new VG(a.$,c)}if(a.j){a.J=fI(a);if(0==a.J){a.H&&!Hc&&(a.B.style.display="none");a=!0;break a}a.$.app.o.nj(new Qw("html5.missingapi.webgl",
!1));hI(a)}a=!1}this.A=a;iI.N.create.call(this)};g.destroy=function(){hI(this.o);this.A=!1;iI.N.destroy.call(this);this.o=null};function jI(a){a=a.B;this.A=a.ypc_offer_button_text;this.description=a.ypc_offer_description;this.heading=a.ypc_offer_headline;this.B=a.ypc_full_video_message;this.offerId=a.ypc_offer_id;this.j=a.ypc_buy_url;this.thumbnail=a.ypc_item_thumbnail;Lq.test(this.thumbnail)||(this.thumbnail="");this.title=a.ypc_item_title;this.o=a.ypc_item_url;this.videoId=a.ypc_vid};function kI(){Fr.call(this,["div",["ytp-drawer","html5-stop-propagation"],["div","ytp-drawer-content","{{content}}"],["button",["ytp-drawer-close-button","ytp-button"],{tabindex:24}],["button",["ytp-drawer-open-button","ytp-button"],{tabindex:24}]]);var a=this.ma["ytp-drawer-close-button"];a.innerHTML=fi();var b=this.ma["ytp-drawer-open-button"];S(this,a,"click",this.B);S(this,b,"click",this.Ba);this.o=new oe(pa(te,this.element,"ytp-drawer-closed"),0);I(this,this.o);this.Fb(null);this.da()}B(kI,Fr);
kI.prototype.B=function(){this.da();this.O("close-clicked")};kI.prototype.da=function(){this.o.stop();K(this.element,"ytp-drawer-closed")};kI.prototype.Fb=function(a){a?(kI.N.Fb.call(this,a),Cr(this.element,"block")):Cr(this.element,"none")};kI.prototype.Ba=function(){this.o.start()};function lI(a,b,c){Mk.call(this);this.A=0==c;this.o=new kI;this.o.subscribe("close-clicked",this.G,this);I(this,this.o);this.B=document.createElement("div");K(this.B,"html5-ypc-endscreen");this.D=document.createElement("div");K(this.D,"html5-ypc-overlay");this.C=new wr(["div","html5-ypc-module",["div","html5-ypc-action-heading","{{heading}}"],["div","html5-ypc-thumbnail","{{thumbnail_element}}"],["div","html5-ypc-title","{{title}}"],["div","html5-ypc-description","{{description}}"],["button",["html5-ypc-purchase",
"ytp-button"],{tabindex:25},"{{button_label}}"]]);I(this,this.C);this.F=this.C.ma["html5-ypc-purchase"];Hm(this.F,"click",x(this.H,this));dg(this.D,b.B);c=b.title;b.o&&(c=["a",{href:b.o,target:"blank_"},b.title]);var d="";b.thumbnail&&(d=["img",{src:b.thumbnail}]);this.C.update({heading:b.heading,title:c,thumbnail_element:d,description:b.description,button_label:b.A});this.j(a)}B(lI,Mk);lI.prototype.R=function(){lI.N.R.call(this);this.F&&Mm(this.F);this.A||(Wf(this.B),Wf(this.D))};
lI.prototype.j=function(a){this.A||(this.o.j(a),this.o.Fb(this.C.element),a.appendChild(this.B))};function mI(a){a.A||(a.B.appendChild(a.C.element),a.o.Fb(null),Cr(a.B,"block"))}function nI(a){a.A||a.o.Ba()}lI.prototype.G=function(){this.O("ypcModuleCloseClicked")};lI.prototype.H=function(){this.O("ypcContentRequest")};function oI(a){lr.call(this,a);this.H=this.oa="ypc";this.o=this.A=null;this.C=NaN;this.B=null}B(oI,lr);g=oI.prototype;g.Za=function(){return qy(this.j.getVideoData(),"ypc_module")};function pI(a){return qy(a.getVideoData(),"ypc_module")?new oI(a):null}g.create=function(){oI.N.create.call(this);this.A=new jI(this.j.getVideoData());qj(x(this.CD,this),0);this.B=new R(["div",["ytp-player-content","ytp-ypc-player-content"]]);this.B.j(this.j.sa())};
g.destroy=function(){oI.N.destroy.call(this);this.A=null;this.B&&(this.B.detach(),this.B.dispose(),this.B=null)};g.CD=function(){this.J&&!this.loaded&&this.load()};
g.load=function(){oI.N.load.call(this);var a=this.j.V(),b=this.j.getVideoData();if(this.A.videoId&&!b.ypcPreview){for(var a={autoplay:"1",oauth_token:b.oauthToken,video_id:this.A.videoId,ypc_origin:b.videoId,ypc_preview:"1"},c=Sx.A,d=0;d<c.length;d++){var e=c[d];b.B.hasOwnProperty(e)&&(a[e]=b.B[e])}this.j.wr(a)}else qI(this,a,b),!this.A.videoId&&this.o?mI(this.o):b.ypcPreview?(this.O("publish_external_event","ypcStateChanged",!0),pr(this)):this.o||pr(this)};
function qI(a,b,c){var d=1E4;c.B.hasOwnProperty("ypc_overlay_timeout")&&(d=parseInt(c.B.ypc_overlay_timeout,10));a.o=new lI(a.B.element,a.A,d);a.o.subscribe("ypcContentRequest",a.Iy,a);a.o.subscribe("ypcModuleCloseClicked",a.yz,a);a.A.videoId&&a.B.element.appendChild(a.o.D);gz(b)&&(c=new hr(0x8000000000000,0x8000000000000,{priority:2}),a.gb([c]));nI(a.o);tj(a.C);a.C=qj(x(function(){if(this.o&&!b.experiments.K){var a=this.o;a.A||a.o.da()}},a),d)}
g.unload=function(){mr(this);isNaN(this.C)||tj(this.C);Vb(this.o);this.o=null;oI.N.unload.call(this);this.O("publish_external_event","ypcStateChanged",!1)};g.jc=function(a){oI.N.jc.call(this,a);mI(this.o)};g.Dc=function(a){oI.N.Dc.call(this,a);a=this.o;a.A||(Cr(a.B,"none"),a.o.Fb(a.C.element))};g.Iy=function(){if(this.A.j)"embedded"==this.j.V().Aa?Rz(this.A.j):Pz(this.A.j);else if(this.A.offerId){var a=t("yt.www.watch.player.handleEndPreview");a&&(this.j.Ja()&&Vz(this.j),a(this.A.offerId))}};
g.yz=function(){this.log({a:"ypc-checkout",label:"ypc-player-module-close-click",playertype:"html5"})};function rI(a,b,c){w(a)&&(a={mediaContentUrl:a,startSeconds:b,suggestedQuality:c});b=a;c=/\/([ve]|embed)\/([^#?]+)/.exec(a.mediaContentUrl);b.videoId=c&&c[2]?c[2]:null;return sI(a)}function sI(a,b,c){if(ia(a)){b="endSeconds startSeconds mediaContentUrl suggestedQuality videoId two_stage_token".split(" ");c={};for(var d=0;d<b.length;d++){var e=b[d];a[e]&&(c[e]=a[e])}return c}return{videoId:a,startSeconds:b,suggestedQuality:c}};function tI(a){if(a.Hg)return 4;var b=ki("visibilityState",document);return b&&"visible"!=b?3:a.Ig?2:a.Yk?1:0};var uI={"api.invalidparam":2,auth:150,"drm.auth":150,heartbeat:150,"html5.unsupportedads":5,"fmt.noneavailable":5,"fmt.decode":5,"fmt.unplayable":5,"html5.missingapi":5,"drm.unavailable":5};function vI(a,b){H.call(this);this.app=a;this.j=null;this.A={};this.B={};this.D={};this.C={};this.o=null;this.playerType=b;W(this,"cueVideoById",this.qm);W(this,"loadVideoById",this.um);W(this,"cueVideoByUrl",this.MC);W(this,"loadVideoByUrl",this.XC);W(this,"playVideo",this.Tc);W(this,"pauseVideo",this.pauseVideo);W(this,"stopVideo",this.sr);W(this,"clearVideo",this.KC);W(this,"getVideoBytesLoaded",this.SC);W(this,"getVideoBytesTotal",this.TC);W(this,"getVideoLoadedFraction",this.tm);W(this,"getVideoStartBytes",
this.UC);W(this,"cuePlaylist",this.LC);W(this,"loadPlaylist",this.nr);W(this,"nextVideo",this.rj);W(this,"previousVideo",this.sj);W(this,"playVideoAt",this.wm);W(this,"setShuffle",this.setShuffle);W(this,"setLoop",this.ZC);W(this,"getPlaylist",this.bc);W(this,"getPlaylistIndex",this.QC);W(this,"getPlaylistId",this.ie);W(this,"loadModule",this.qj);W(this,"unloadModule",this.ur);W(this,"setOption",this.zd);W(this,"getOption",this.rb);W(this,"getOptions",this.hh);W(this,"mute",this.mute);W(this,"unMute",
this.unMute);W(this,"isMuted",this.nc);W(this,"setVolume",this.setVolume);W(this,"getVolume",this.Eb);W(this,"seekTo",this.Tb);W(this,"getPlayerState",this.getPlayerState);W(this,"getPlaybackRate",this.PC);W(this,"setPlaybackRate",this.uj);W(this,"getAvailablePlaybackRates",this.oj);W(this,"getPlaybackQuality",this.pj);W(this,"setPlaybackQuality",this.tj);W(this,"getAvailableQualityLevels",this.lr);W(this,"getCurrentTime",this.getCurrentTime);W(this,"getDuration",this.gh);W(this,"addEventListener",
this.addEventListener);W(this,"removeEventListener",this.removeEventListener);W(this,"getVideoUrl",this.getVideoUrl);W(this,"getDebugText",this.sm);W(this,"getVideoEmbedCode",this.mr);W(this,"getVideoData",this.getVideoData);W(this,"addCueRange",this.kr);W(this,"removeCueRange",this.or);W(this,"setSize",this.setSize);W(this,"getApiInterface",this.NC);W(this,"destroy",this.destroy);W(this,"showVideoInfo",this.rr);W(this,"hideVideoInfo",this.VC);wI(this,"getInternalApiInterface",this.OC);wI(this,"getAdState",
this.getAdState);wI(this,"isNotServable",this.WC);wI(this,"getUpdatedConfigurationData",this.RC);wI(this,"updateRemoteReceivers",this.aD);wI(this,"sendAbandonmentPing",this.YC);wI(this,"setAutonav",this.pr);wI(this,"setAutonavState",this.qr);wI(this,"setMinimized",this.$C);wI(this,"channelSubscribed",v);wI(this,"channelUnsubscribed",v)}B(vI,H);function W(a,b,c){a.A[b]=x(c,a)}function wI(a,b,c){a.B[b]=x(c,a)}g=vI.prototype;g.NC=function(){return ec(this.A)};g.OC=function(){return ec(this.B)};
g.la=function(){return this.j};g.addEventListener=function(a,b){if(w(b)){var c=function(){t(b).apply(window,arguments)};this.D[b]=c;this.app.subscribe(a,c)}else this.app.subscribe(a,b)};g.Ev=function(a,b){var c=w(b)?a+b:a+ka(b);if(!this.C[c]){var d;w(b)?d=function(){t(b).apply(window,arguments)}:d=b;var e=x(function(a){d({target:this.o,data:a})},this);this.C[c]=e;this.addEventListener(a,e)}};
g.removeEventListener=function(a,b){if(w(b)){var c=this.D[b];lc(this.D,b);this.app.unsubscribe(a,c)}else this.app.unsubscribe(a,b)};g.Fv=function(a,b){var c=w(b)?a+b:a+ka(b),d=this.C[c];d&&(this.removeEventListener(a,d),lc(this.C,c))};g.getPlayerState=function(){return xI(this.app)};g.Tb=function(a,b){yI(this.app,!0,this.playerType);zI(this.app,a,b,void 0,this.playerType)};
g.getCurrentTime=function(){var a=this.app.V().experiments.xa("use_legacy_time_duration_api");return this.app.getCurrentTime(a?void 0:this.playerType)};g.gh=function(){var a=this.app.V().experiments.xa("use_legacy_time_duration_api");return AI(this.app,a?void 0:this.playerType)};g.Eb=function(){return this.app.X.volume};g.setVolume=function(a){a=De(Math.floor(a),0,100);BI(this.app,{volume:a,muted:this.nc()})};g.nc=function(){return this.app.X.muted};g.mute=function(){BI(this.app,{muted:!0,volume:this.Eb()})};
g.unMute=function(){BI(this.app,{muted:!1,volume:Math.max(5,this.Eb())})};g.Tc=function(){yI(this.app,!0,this.playerType);CI(this.app,this.playerType)};g.pauseVideo=function(){var a=this.app,b=this.playerType;if(DI(a.Ya)){var c=a.ca.play_pause?a.wa:null;c?c.Zd("control_pause"):a.pauseVideo(b)}};g.sr=function(){var a=this.app,b=this.playerType;XH(a.j)&&(EI(a,!1),a.Oa("pageTransition"));FI(a,b)};g.KC=function(){};g.PC=function(){return this.app.T};g.uj=function(a){GI(this.app,a)};
g.oj=function(){return this.app.j.T?fs:[1]};g.pj=function(){var a=nr(this.app,this.playerType);return a&&(a=a.getVideoData().o)?a.video.quality:"unknown"};g.tj=function(a){var b=this.app,c=nr(b,this.playerType);c&&!b.j.isMobile&&(a=pv(a,a,!0),HI(c,"p",a))};g.lr=function(){var a=nr(this.app,this.playerType);return a?(a=F(II(a),function(a){return a.quality}),a.length&&(a=a.concat(["auto"])),a):[]};g.SC=function(){return this.tm()};g.TC=function(){return 1};g.tm=function(){return xz(this.app.fa)};
g.UC=function(){return 0};g.setSize=function(){this.app.G.Sh()};g.pr=function(a){var b=this.app;a=a?2:1;b.getVideoData().Ld=a;b.Oa("autonavchange",a)};g.qr=function(a){var b=this.app;b.getVideoData().Ld=a;b.Oa("autonavchange",a)};g.$C=function(a){var b=this.app;b.j.Yk=a;b.Oa("minimized")};g.qj=function(a){var b=this.app.B;b.isAvailable(a)&&(a=JI(b,a))&&!a.loaded&&a.load()};g.ur=function(a){var b=this.app.B;b.isAvailable(a)&&(a=JI(b,a))&&a.loaded&&a.unload()};
g.um=function(a,b,c){a=KI(this.app,sI(a,b,c),this.playerType);yI(this.app,a,this.playerType)};g.qm=function(a,b,c){var d=this.playerType;LI(this.app,new Sx(sI(a,b,c)),d)};g.XC=function(a,b,c){a=rI(a,b,c);b=KI(this.app,a,this.playerType);yI(this.app,b,this.playerType);b=this.app;(a=Ph(new P(a.mediaContentUrl)))&&$H(b.j,a)};g.MC=function(a,b,c){a=rI(a,b,c);b=this.playerType;LI(this.app,new Sx(a),b);b=this.app;(a=Ph(new P(a.mediaContentUrl)))&&$H(b.j,a)};
g.getVideoUrl=function(){var a=this.app.V();if(a.B)return"";var b=MI(this.app),c=void 0;b.Fa||(c=Math.floor(this.app.getCurrentTime(1)));return a.getVideoUrl(b.videoId,this.ie()||void 0,c)};g.sm=function(){return NI(this.app)};g.mr=function(){var a=this.app,b=MI(a),c=a.G.Ka(),a=a.j,d="https://"+aI(a)+"/embed/"+b.videoId;b.playlistId&&(d=uh(d,{list:b.playlistId}));"gaming"==a.j&&(d=uh(d,{ps:a.j}));return'<iframe width="'+c.width+'" height="'+c.height+'" src="'+Ba(d)+'" frameborder="0" allowfullscreen></iframe>'};
g.kr=function(a,b,c){return OI(this.app,a,b,c)};g.or=function(a){a:{for(var b=this.app,c=b.o.F.j.j||[],d=0;d<c.length;d++){var e=c[d];if(e.getId()==a){b.o.F.eh(e);or(b,"cuerangesremoved",[e]);a=!0;break a}}a=!1}return a};g.nr=function(a,b,c,d){var e=this.app;e.Z=!1;PI(e,a,b,c,d);yI(this.app,!0,this.playerType)};g.LC=function(a,b,c,d){var e=this.app;e.Z=!0;PI(e,a,b,c,d)};g.rj=function(){QI(this.app);yI(this.app,!0,this.playerType)};g.sj=function(){RI(this.app);yI(this.app,!0,this.playerType)};
g.wm=function(a){SI(this.app,a);yI(this.app,!0,this.playerType)};g.setShuffle=function(a){var b=this.app.A;b&&b.setShuffle(a)};g.ZC=function(a){var b=this.app.A;b&&(b.G=a)};g.bc=function(){var a=this.app.A;if(!a)return null;for(var b=[],c=0;c<a.A;c++){var d=a.qb(c);d&&b.push(d.videoId)}return b};g.QC=function(){var a=this.app.A;return a?a.j:-1};g.ie=function(){var a=this.app.A;return a&&a.C?a.C.toString():null};g.zd=function(a,b,c){return TI(this.app,a,b,c)};
g.rb=function(a,b,c){return TI(this.app,a,b,c)};g.hh=function(a){return UI(this.app,a)};g.getVideoData=function(){var a=nr(this.app,this.playerType),a=a?a.getVideoData():{},a={video_id:a.videoId,author:a.author,title:a.title},b=this.ie();b&&(a.list=b);return a};g.rr=function(){var a=this.app.G;a.C||(a.C=new VI(a.app),I(a,a.C),a.C.j(a.element));a.C.Ba()};g.VC=function(){var a=this.app.G;a.C&&a.C.da()};g.getAdState=function(){return this.app.getAdState()};
g.WC=function(a){if(a!=this.app.W.args.video_id)return!1;a=(a=nr(this.app,1))?a.getPlayerState():null;return!(!a||!U(a,128)||5!=uI[a.j.errorCode])};g.RC=function(){var a=this.app.W.clone(),b=a.args,c=MI(this.app),d=nc(c.B);!c.Fa&&0<c.startSeconds&&(d.start=c.startSeconds);qa(b,d);return a};g.aD=function(a,b){var c=this.app;c.H&&WI(c.H,a,b);cI(c.j)&&6!=c.K&&(c.j.lg=!ub(a),c.j.lg?(1!=c.K&&3!=c.K||!b||XI(c,c.F),a.length&&1!=c.K&&YI(c)):XI(c,c.H))};g.destroy=function(){this.app.dispose()};
g.YC=function(){var a=nr(this.app);a&&!U(a.getPlayerState(),128)&&(a.O("internalAbandon"),ZI(a),$I(a))};g.R=function(){if(this.j){for(var a in this.A)this.j[a]=null;for(a in this.B)this.j[a]=null;this.j=null}this.D=this.C=null;vI.N.R.call(this)};function aJ(a,b){vI.call(this,a,b);W(this,"getPresentingPlayerType",this.getPresentingPlayerType);W(this,"addInfoCardXml",this.bD);W(this,"cueVideoByPlayerVars",this.cD);W(this,"loadVideoByPlayerVars",this.wr);W(this,"preloadVideoByPlayerVars",this.lD);W(this,"seekBy",this.Uc);W(this,"updatePlaylist",this.rD);W(this,"updateLastActiveTime",this.qD);W(this,"updateVideoData",this.sD);W(this,"getStoryboardFormat",this.hD);W(this,"getProgressState",this.Qe);W(this,"getHousebrandProperties",this.fD);W(this,
"setPlaybackQualityRange",this.mD);W(this,"getCurrentPlaylistSequence",this.eD);W(this,"canPlayType",this.canPlayType);W(this,"sendVideoStatsEngageEvent",this.Zf);W(this,"handleGlobalKeyDown",this.jD);W(this,"getAudioTrack",this.Yf);W(this,"setAudioTrack",this.xm);W(this,"getAvailableAudioTracks",this.vr);W(this,"getMaxPlaybackQuality",this.gD);W(this,"setSizeStyle",this.nD);W(this,"forceFrescaUpdate",this.dD);W(this,"setAutonav",this.pr);W(this,"setAutonavState",this.qr);W(this,"showControls",this.pD);
W(this,"hideControls",this.kD);W(this,"getVisibilityState",this.iD);W(this,"shouldSendVisibilityState",this.oD)}B(aJ,vI);g=aJ.prototype;g.getPresentingPlayerType=function(){return this.app.getPresentingPlayerType()};g.kr=function(a,b,c,d,e){return OI(this.app,a,b,c,d,e)};g.bD=function(a,b,c,d){NH(this.app.V().H,a,{te:b,Rf:c,Wh:d})};g.cD=function(a){var b=this.playerType;LI(this.app,new Sx(a),b)};g.getPlayerState=function(a){return xI(this.app,a)};g.wr=function(a){KI(this.app,a,this.playerType)};
g.lD=function(a){var b=this.app,c=this.playerType;c&&1!=c||b.L&&b.L.getVideoData().videoId==a.videoId||(a=new Sx(a),bJ(b,a))};g.Tc=function(){CI(this.app,this.playerType)};g.Tb=function(a,b){zI(this.app,a,b,void 0,this.playerType)};g.nr=function(a,b,c,d){var e=this.app;e.Z=!1;PI(e,a,b,c,d)};g.rj=function(a){QI(this.app,a)};g.sj=function(a){RI(this.app,a)};g.wm=function(a){SI(this.app,a)};g.Uc=function(a,b,c){var d=this.app,e=this.playerType;zI(d,d.getCurrentTime()+a,b,c,e)};
g.rD=function(a){if(a){var b=this.ie();if(!b||b==a.list){var c=a.video;(b=this.app.A)?this.app.Ya.Ja()&&((c=c[b.j])&&c.encrypted_id!=b.qb().videoId||(a.index=b.j)):cJ(this.app,{list:a.list,index:a.index,playlist_length:c.length});Hy(this.app.A,a)}}else a=this.app,dJ(a),a.Oa("onPlaylistUpdate")};g.qD=function(){PH()};g.sD=function(a){var b=nr(this.app,this.playerType||1);b&&(b=b.getVideoData(),Ux(b,a),b.O("dataupdated"))};g.hD=function(){var a=this.app.getVideoData();return a.B.storyboard_spec||a.B.live_storyboard_spec};
g.fD=function(){var a=this.app.V();return{Cb:a.Cb,jb:a.jb}};g.getVideoData=function(){var a=aJ.N.getVideoData.call(this),b=nr(this.app,this.playerType),b=b?b.getVideoData():{};a.cpn=b.clientPlaybackNonce;a.isLive=b.Fa;return a};g.getCurrentTime=function(a){return a?this.app.getCurrentTime(a):aJ.N.getCurrentTime.call(this)};g.gh=function(a){return a?AI(this.app,a):aJ.N.gh.call(this)};
g.Qe=function(){var a=this.app.getVideoData(),b=nr(this.app),c=CG(this.app.Ya),d=a.clipEnd,a=a.clipStart,e=this.getCurrentTime(),f=this.gh(),h=nr(this.app,void 0);if(h)var k=eJ(h.o),h=isNaN(k)?h.getCurrentTime():k;else h=0;return{allowSeeking:c,clipEnd:d,clipStart:a,current:e,displayedStart:-1,duration:f,loaded:h,seekableEnd:fJ(b,!0),seekableStart:ly(b.j)}};g.tm=function(a){var b=this.app;return(b.D&&2==b.D.S)==(2==a)?xz(b.fa):0};g.canPlayType=function(a){return this.app.canPlayType(a)};
g.mD=function(a,b){gJ(this.app,a,this.playerType,b)};g.eD=function(){var a;var b=this.app.getVideoData();a=this.app.getCurrentTime();if(b.j&&b.Fa){var c=b.j.j[b.o.id];c&&c.index?(b=c.index.jf(a),c=c.index.je(b),a={sequence:b,elapsed:Math.floor(1E3*(a-c))}):a=null}else a=null;return a};g.Zf=function(a){var b=this.app,c=nr(b,this.playerType);c&&b.j.na.contains(a.toString())&&c.A&&(b=sC(c.A,"engage"),b.D=a,b.send(void 0))};g.jD=function(a,b){var c=this.app;c.ea&&(c=c.ea,c.X&&hJ(c.X,a,b))};
g.Yf=function(){return iJ(this.app,this.playerType)};g.xm=function(a){var b=this.app,c=this.playerType,d=b.ca.set_audio_track?b.wa:null;if(d)d.Zd("control_set_audio_track",a);else{if(c=b=nr(b,c))if(c=!b.isDisposed()&&!U(b.B,128)&&b.j.A.j)c=b.C,c.isDisposed()?a=!0:(d=c.D,a=a.id,d.C="m",d.B=d.D.j[a],d.K=jJ(d),c.O("audioformatchange",new kJ(d.K,d.A,d.C)),c.j&&!c.j.j.remove?a=!1:(lJ(c,c.o,jJ(c.D)),mJ(c.o),nJ(c),a=!0)),c=!a;c&&(oJ(b),pJ(b),qJ(b))}};
g.vr=function(){var a=nr(this.app,this.playerType);return a.j.A?a.j.A.audioTracks:[]};g.gD=function(){var a=nr(this.app,this.playerType);return a&&a.getVideoData().o?wv(rJ(a.ia,a.j)):"unknown"};g.nD=function(a,b){sJ(this.app,a,b)};g.dD=function(){var a=JI(this.app.B,"fresca");a&&a.B.B()};g.pD=function(){var a=this.app.ea;a.wa=!1;a.ge()};g.kD=function(){var a=this.app.ea;a.wa=!0;a.ge()};g.iD=function(){return tI(this.app.V())};g.oD=function(){return this.app.V().experiments.xa("send_presence_signal_vis_desktop")};function tJ(a,b){aJ.call(this,a,b)}B(tJ,aJ);g=tJ.prototype;g.um=function(a,b,c){KI(this.app,sI(a,b,c),this.playerType)};function uJ(a){if(a=nr(a.app))oJ(a),pJ(a)}function Oy(a){return(a=JI(a.app.B,"endscreen"))?cz(a):!1}function vJ(a){var b=JI(a.app.B,"endscreen");return b&&hz(b)?!0:(a=JI(a.app.B,"ypc"))&&a.Za()?!0:!1}g.sa=function(){return bG(this).element};g.V=function(){return this.app.V()};
function FA(a){var b=a.app;a=a.playerType;return 3==b.getPresentingPlayerType()?b.H.M:nr(b,a).getPlayerState()}function bG(a){return a.app.G}g.bc=function(){return this.app.A};function wJ(a){return a.app.S&&!a.Ja()||!!a.bc()}g.getVideoData=function(a){return(a=nr(this.app,a||this.playerType))&&a.getVideoData()};g.Ja=function(){return this.app.V().Ig};function xJ(a){a.app.jj("onCaptionsToggle")}
function yJ(a,b){var c=TI(a.app,"captions","displaySettings",b);a.app.jj("onCaptionsDisplaySettings");return c}function Vz(a){a=a.app;EI(a,!a.M.Ja())}g.addEventListener=function(a,b,c){this.app.subscribe(a,b,c)};g.removeEventListener=function(a,b,c){this.app.unsubscribe(a,b,c)};g.tj=function(a){gJ(this.app,a,this.playerType)};function zJ(a){return(a=nr(a.app))?wv(AJ(a.ia,a.j)):"unknown"}g.sm=function(a){return NI(this.app,a)};
g.getVideoUrl=function(a,b,c){var d=this.getVideoData(),e=void 0;a||d.Fa||(e=Math.floor(this.getCurrentTime()));return this.app.V().getVideoUrl(d.videoId,2==this.getPresentingPlayerType()?void 0:this.ie()||void 0,e,b,c)};function UG(a){(a=JI(a.app.B,"webgl"))?a.A?(a=a.o,a=a.j?a.j.Te():{}):a={}:a={};return a}function BJ(a,b){var c=JI(a.app.B,"webgl");c&&c.A&&(c=c.o,c.j&&c.j.mh(b))}function Ty(a,b){a.V().experiments.xa("ui_logging")&&qr(a,"controlclicked",{controlClicked:b})}
function qr(a,b,c,d){var e=nr(a.app);c.event=b;a.Ja()&&(c.fs=1);c.ux=1;if(e.A){a=e.A;e=(b=a.j.o.experiments.xa("event_log_respect_caller_args"))?{}:c;e.rt=YB(a.j).toFixed(3);qa(e,tC(a.j));var f=a.j.o,h=a.j.j,k=h.na||f.ga,k={ns:f.Z,html5:"1",el:f.Aa,ps:f.j,fexp:f.experiments.experimentIds.join(",")||void 0,feature:k||void 0,ctrl:h.aa||void 0,ytr:h.ca||void 0,list:h.playlistId,d:f.Wa,f:f.Ea};f.autoplay&&(k.autoplay="1");h.subscribed&&(k.subscribed=h.subscribed);qa(e,k);delete e.fexp;b&&qa(e,c);c=mk(a.j.o.baseYtUrl+
"player_204",e);wC(a,c,d)}}function wD(a){a.app.Oa("cardstatechange",CJ(a)&&QC(a)?1:0)}function CJ(a){return(a=JI(a.app.B,"iv-module"))?kG(a):!1}function QC(a){return(a=JI(a.app.B,"iv-module"))?lG(a):!1}function PC(a,b){var c=JI(a.app.B,"iv-module");c&&(kG(c),c.o&&(b?uD(c.o):vD(c.o)))}function xD(a,b,c){(a=JI(a.app.B,"iv-module"))&&mG(a,b,c)}function cA(a,b){a.app.Oa("onFrescaStateChange",b);var c=nr(a.app);c&&b&&c.A&&hC(c.A.A,"stream",[b.hasActiveStream?"A":"I"])}
function DJ(a){return(a=JI(a.app.B,"fresca"))?!!a.C&&a.C.B.A:!1}function CG(a){var b=nr(a.app,1);if(!b)return!1;var c=b.getVideoData();return my(c)&&!ry(c)&&2!=a.getPresentingPlayerType()&&(!EJ(b)||3==a.getPresentingPlayerType())}function DI(a){return a.app.ca.play_pause||2==a.getPresentingPlayerType()?!0:!EJ(nr(a.app,1))}g.Zf=function(a,b){var c=this.app,d=nr(c,this.playerType);d&&c.j.na.contains(a.toString())&&d.A&&(c=sC(d.A,"engage"),c.D=a,c.send(b))};g.gb=function(a,b){FJ(this.app,a,b||this.playerType)};
function GJ(a,b,c){var d=a.app;a=c||a.playerType;if(c=nr(d,a))c.F.eh.apply(c.F,b),a&&d.getPresentingPlayerType()!=a||or(d,"cuerangesremoved",b)}g.Ri=function(a){var b=nr(this.app,this.playerType);b&&b.Ri(a)};function HJ(a,b,c){a.app.O("progresssync",b,c)}g.rb=function(a,b,c){return TI(this.app,a,b,c,!0)};g.hh=function(a){return UI(this.app,a,!0)};g.zd=function(a,b,c){return TI(this.app,a,b,c,!0)};g.setVolume=function(a){a=De(Math.floor(a),0,100);BI(this.app,{volume:a,muted:this.nc()},!0)};
g.mute=function(){BI(this.app,{muted:!0,volume:this.Eb()},!0)};g.unMute=function(){BI(this.app,{muted:!1,volume:Math.max(5,this.Eb())},!0)};function IJ(){wj({YTP_TRANSLATE_MENU_ITEM:"Translate captions",YTP_CONTRIBUTE_MENU_ITEM:"Add subtitles/CC",YTP_ASR_SETTINGS_LABEL:"Automatic Captions",YTP_LANGUAGE_OFF:"Off",YTP_FONT_FAMILY:"Font family",YTP_FONT_SIZE:"Font size",YTP_FONT_COLOR:"Font color",YTP_FONT_OPACITY:"Font opacity",YTP_BACKGROUND_COLOR:"Background color",YTP_BACKGROUND_OPACITY:"Background opacity",YTP_WINDOW_COLOR:"Window color",YTP_WINDOW_OPACITY:"Window opacity",YTP_COLOR_WHITE:"White",YTP_COLOR_YELLOW:"Yellow",YTP_COLOR_GREEN:"Green",
YTP_COLOR_CYAN:"Cyan",YTP_COLOR_BLUE:"Blue",YTP_COLOR_MAGENTA:"Magenta",YTP_COLOR_RED:"Red",YTP_COLOR_BLACK:"Black",YTP_FONT_FAMILY_MONO_SERIF:"Monospaced Serif",YTP_FONT_FAMILY_PROP_SERIF:"Proportional Serif",YTP_FONT_FAMILY_MONO_SANS:"Monospaced Sans-Serif",YTP_FONT_FAMILY_PROP_SANS:"Proportional Sans-Serif",YTP_FONT_FAMILY_CASUAL:"Casual",YTP_FONT_FAMILY_CURSIVE:"Cursive",YTP_FONT_FAMILY_SMALL_CAPS:"Small Capitals",YTP_CHAR_EDGE_STYLE:"Character edge style",YTP_EDGE_STYLE_NONE:"None",YTP_EDGE_STYLE_RAISED:"Raised",
YTP_EDGE_STYLE_DEPRESSED:"Depressed",YTP_EDGE_STYLE_OUTLINE:"Outline",YTP_EDGE_STYLE_DROP_SHADOW:"Drop Shadow",YTP_CLICK_FOR_SETTINGS:"Click $GEAR_ICON for settings"})};var JJ=/^#(?:[0-9a-f]{3}){1,2}$/i,KJ="default monoSerif propSerif monoSans propSans casual cursive smallCaps".split(" "),LJ=["none","raised","depressed","uniform","dropShadow"],MJ=["sub","inherit","super"],NJ={background:"#080808",backgroundOpacity:1,charEdgeStyle:3,color:"#fff",fontFamily:4,fontSizeIncrement:0,textOpacity:1,windowColor:"#080808",windowOpacity:0},OJ=["left","right","center"],PJ={anchorPoint:7,bold:!1,colCount:32,color:"#fff",heightPercentage:100,isVisible:!0,italic:!1,leftPercentage:50,
offset:1,rowCount:15,textAlign:2,textPrintDirection:0,topPercentage:100,underline:!1,widthPercentage:80},QJ={id:0,priority:0,colCount:100},RJ={id:98},SJ={id:99,priority:1,anchorPoint:0,leftPercentage:5,topPercentage:5,rowCount:2,textAlign:0},TJ=["en_CA","en_US","es_MX","fr_CA"];var UJ=[{option:"#fff",message:"YTP_COLOR_WHITE"},{option:"#ff0",message:"YTP_COLOR_YELLOW"},{option:"#0f0",message:"YTP_COLOR_GREEN"},{option:"#0ff",message:"YTP_COLOR_CYAN"},{option:"#00f",message:"YTP_COLOR_BLUE"},{option:"#f0f",message:"YTP_COLOR_MAGENTA"},{option:"#f00",message:"YTP_COLOR_RED"},{option:"#080808",message:"YTP_COLOR_BLACK"}],VJ=[{option:0,text:"0%"},{option:.25,text:"25%"},{option:.5,text:"50%"},{option:.75,text:"75%"},{option:1,text:"100%"}],WJ=[{option:"fontFamily",message:"YTP_FONT_FAMILY",
options:[{option:1,message:"YTP_FONT_FAMILY_MONO_SERIF"},{option:2,message:"YTP_FONT_FAMILY_PROP_SERIF"},{option:3,message:"YTP_FONT_FAMILY_MONO_SANS"},{option:4,message:"YTP_FONT_FAMILY_PROP_SANS"},{option:5,message:"YTP_FONT_FAMILY_CASUAL"},{option:6,message:"YTP_FONT_FAMILY_CURSIVE"},{option:7,message:"YTP_FONT_FAMILY_SMALL_CAPS"}]},{option:"color",message:"YTP_FONT_COLOR",options:UJ},{option:"fontSizeIncrement",message:"YTP_FONT_SIZE",options:[{option:-2,text:"50%"},{option:-1,text:"75%"},{option:0,
text:"100%"},{option:1,text:"150%"},{option:2,text:"200%"},{option:3,text:"300%"},{option:4,text:"400%"}]},{option:"background",message:"YTP_BACKGROUND_COLOR",options:UJ},{option:"backgroundOpacity",message:"YTP_BACKGROUND_OPACITY",options:VJ},{option:"windowColor",message:"YTP_WINDOW_COLOR",options:UJ},{option:"windowOpacity",message:"YTP_WINDOW_OPACITY",options:VJ},{option:"charEdgeStyle",message:"YTP_CHAR_EDGE_STYLE",options:[{option:0,message:"YTP_EDGE_STYLE_NONE"},{option:4,message:"YTP_EDGE_STYLE_DROP_SHADOW"},
{option:1,message:"YTP_EDGE_STYLE_RAISED"},{option:2,message:"YTP_EDGE_STYLE_DEPRESSED"},{option:3,message:"YTP_EDGE_STYLE_OUTLINE"}]},{option:"textOpacity",message:"YTP_FONT_OPACITY",options:[{option:.25,text:"25%"},{option:.5,text:"50%"},{option:.75,text:"75%"},{option:1,text:"100%"}]}];function XJ(a,b){this.K="";this.B=this.o=this.H=this.j=this.D=null;this.type=0;this.id=a;this.Ha={};qa(this.Ha,PJ);b?qa(this.Ha,b):qa(this.Ha,QJ);var c="caption-window";0==this.id&&(c+=" standard-caption-window");this.j=O("div",{id:"caption-window-"+this.id,"class":c});this.B=O("span",{"class":"captions-text",style:"visibility: hidden"});dg(this.B,"C");this.o=O("span",{"class":"captions-text",tabindex:7050,"aria-live":"assertive"});this.H=O("div",{"class":"caption-window-transform"});this.H.appendChild(this.o);
this.j.appendChild(this.H);this.L=1}g=XJ.prototype;g.getType=function(){return this.type};
g.xd=function(a,b){a&&qa(this.Ha,a);var c=this.Ha.charEdgeStyle,d=this.Ha.textOpacity,e="";if(0!=c){var f="rgba(34, 34, 34, "+d+")",h="rgba(204, 204, 204, "+d+")";this.Ha.charEdgeColor&&(h=f=this.Ha.charEdgeColor);switch(c){case 4:e="2px 2px 3px "+f+", 2px 2px 4px "+f+", 2px 2px 5px "+f;break;case 1:e="1px 1px "+f+", 2px 2px "+f+", 3px 3px "+f;break;case 2:e="1px 1px "+h+", 0 1px "+h+", -1px -1px "+f+", 0 -1px "+f;break;case 3:e="0 0 4px "+f+", 0 0 4px "+f+", 0 0 4px "+f+", 0 0 4px "+f}}c=this.Ha.fontFamily;
f="";switch(c){case 1:f='"Courier New", Courier, "Nimbus Mono L", "Cutive Mono", monospace';break;case 2:f='"Times New Roman", Times, Georgia, Cambria, "PT Serif Caption", serif';break;case 3:f='"Deja Vu Sans Mono", "Lucida Console", Monaco, Consolas, "PT Mono", monospace';break;case 5:f='"Comic Sans MS", Impact, Handlee, fantasy';break;case 6:f='"Monotype Corsiva", "URW Chancery L", "Apple Chancery", "Dancing Script", cursive';break;case 7:f='"Arial Unicode Ms", Arial, Helvetica, Verdana, "Marcellus SC", sans-serif';
break;case 0:case 4:f='Roboto, "Arial Unicode Ms", Arial, Helvetica, Verdana, "PT Sans Caption", sans-serif'}var k=FD(this.Ha.color),h=FD(this.Ha.background),k="rgba("+k[0]+","+k[1]+","+k[2]+","+d+")",d=this.Ha.offset||1;og(this.o,{color:k,fill:k,"background-color":"rgba("+h[0]+","+h[1]+","+h[2]+","+this.Ha.backgroundOpacity+")","text-shadow":e,"font-variant":7==c?"small-caps":"","font-family":f,"font-weight":this.Ha.bold?"bold":"","font-style":this.Ha.italic?"italic":"","text-decoration":this.Ha.underline?
"underline":"","vertical-align":MJ[d]});b&&(this.L=b.height/360);e=FD(this.Ha.windowColor);c=this.Ha.windowOpacity;f=this.Ha.fontSizeIncrement||0;1!=d&&(f*=.8);og(this.H,{"background-color":"rgba("+e[0]+","+e[1]+","+e[2]+","+c+")","font-size":Math.round(16*(1+.25*f)*this.L)+"px"})};g.ci=function(){var a;this.B.style.fontFamily=this.o.style.fontFamily;this.j.appendChild(this.B);a=this.B.offsetHeight;this.j.removeChild(this.B);return a};
g.be=function(){this.o&&(0!=this.id&&98!=this.id&&(Hg(this.j,"100%"),Hg(this.j,this.o.offsetWidth+1)),YJ(this),Lr(this.j,this.Ha.isVisible))};function YJ(a){ug(a.j,a.Ha.leftPercentage+"%",a.Ha.topPercentage+"%");for(var b=0;8>=b;b++)te(a.j,"anchor-point-"+b);K(a.j,"anchor-point-"+a.Ha.anchorPoint)}
g.Jl=function(a){if(a.length){var b=a[a.length-1].F;b&&this.xd(ZJ(b))}for(var b="",c=0;c<a.length;){0<c&&(b+="<br>");var d=a[c].o;for(c++;c<a.length;c++){var e=a[c];if(e.C)d+=e.o;else break}b+=$J(d)}this.ee(b);this.D=a};g.ee=function(a){this.K=a;this.o.innerHTML=a;this.j.style.textAlign=OJ[this.Ha.textAlign];1==this.Ha.textPrintDirection?this.o.setAttribute("dir","rtl"):this.o.removeAttribute("dir");this.be()};
g.toString=function(){var a="Caption window ("+this.id+"): "+this.K,b;for(b in this.Ha)a+=b+" "+this.Ha[b]+" | ";return a};function $J(a){if(!a)return a;if(-1==a.indexOf("\n"))return"&nbsp;"+a+"&nbsp;";a=a.split("\n");for(var b=0,c=a.length;b<c;b++)a[b]=a[b]?"&nbsp;"+a[b]+"&nbsp;":"";return a.join("<br>")}g.Uh=function(){this.D=[];this.ee("")};function aK(){this.o=[];this.j=[]};function bK(a,b,c,d,e,f,h){hr.call(this,a,a+b,{priority:c});this.windowId=d;this.o=e;this.C=f||!1;this.F=h||null}B(bK,hr);bK.prototype.toString=function(){return bK.N.toString.call(this)};
function cK(a){var b=a.firstChild&&a.firstChild.nodeValue||"",c=a.getAttribute("t"),c=c?parseInt(c,10):1E3*parseFloat(a.getAttribute("start")||0),d=a.getAttribute("d"),d=d?parseFloat(d):1E3*parseFloat(a.getAttribute("dur")||0),e=parseInt(a.getAttribute("w"),10)||0;a=!!a.getAttribute("append");return new bK(c,d,a?6:5,e,b,a)}function dK(a,b,c,d,e,f,h){hr.call(this,a,a+b,{priority:c});this.J=!1;this.id=d;this.params=e||{};this.F=f||null;this.G=h||null;this.o="";this.C=!1;eK(this)}B(dK,hr);
function fK(a){return a.params.modeHint?a.params.modeHint:a.params.textScrollDirection?2:a.C?1:0}function gK(){return new dK(0,0x8000000000000,0,0,QJ)}function eK(a){a.F&&qa(a.params,ZJ(a.F));a.G&&qa(a.params,ZJ(a.G))};function hK(a){aK.call(this);this.j.push(gK());a=a.firstChild.childNodes;for(var b=0,c=a.length;b<c;b++){var d=cK(a[b]);this.o.push(d)}}B(hK,aK);function iK(a){aK.call(this);this.A={};for(a=a.firstChild.firstChild;a;){switch(a.tagName){case "window":var b=a,c=parseInt(b.getAttribute("id"),10);a:{var d=b,e=this.A[c];if(d.getAttribute("t")||d.getAttribute("start")){b=d.getAttribute("start")?1E3*parseFloat(d.getAttribute("start")):parseInt(d.getAttribute("t"),10);e&&(e.end>=b?e.end=b:e=null);switch(d.getAttribute("op")){case "kill":b=null;break a;case "define":e=null}e?e.J=!0:e=gK();var f={};qa(f,e?e.params:QJ);d.getAttribute("id")&&(f.id=d.getAttribute("id"));
d.getAttribute("op")&&(f.operation=d.getAttribute("op"));d.getAttribute("rc")&&(f.rowCount=parseInt(d.getAttribute("rc"),10));d.getAttribute("cc")&&(f.colCount=parseInt(d.getAttribute("cc"),10));d.getAttribute("ap")&&(e=parseInt(d.getAttribute("ap"),10),f.anchorPoint=0>e||8<e?7:e);d.getAttribute("ah")&&(f.leftPercentage=parseInt(d.getAttribute("ah"),10));d.getAttribute("av")&&(f.topPercentage=parseInt(d.getAttribute("av"),10));d.getAttribute("id")&&(f.id=parseInt(d.getAttribute("id"),10)||0);d.getAttribute("vs")&&
(f.isVisible=Boolean(d.getAttribute("vs")));d.getAttribute("ju")&&(f.textAlign=parseInt(d.getAttribute("ju"),10));d.getAttribute("pd")&&(f.textPrintDirection=1,0==parseInt(d.getAttribute("pd"),10)&&(f.textPrintDirection=0));d.getAttribute("bc")&&(f.backgroundColor=parseInt(d.getAttribute("bc"),16));d.getAttribute("bo")&&(f.backgroundOpacity=parseInt(d.getAttribute("bo"),10)/100);d.getAttribute("fc")&&(f.color=parseInt(d.getAttribute("fc"),16));d.getAttribute("sd")&&(f.textScrollDirection=parseInt(d.getAttribute("sd"),
10));e=parseInt(d.getAttribute("d"),10)||1E3*parseFloat(d.getAttribute("dur"))||0x8000000000000;d=parseInt(d.getAttribute("id"),10)||0;b=new dK(b,e,0,d,f)}else b=null}this.A[c]=b;this.j.push(b);break;case "text":c=cK(a),this.o.push(c),b=c.windowId,this.A[b]&&(b=this.A[b],c=c.o,""!=b.o&&(b.C=!0),b.o+=c)}a=a.nextSibling}0==this.j.length&&this.j.push(gK())}B(iK,aK);function jK(a){this.parent=a||null;this.j={}}function kK(a,b,c){var d=a.j[b];if(void 0!=d)return d;if(a.parent&&(void 0==c||c))return kK(a.parent,b)}function lK(a,b,c){void 0!=c&&(a.j[b]=c)}function mK(a,b,c){void 0!=c&&(a.j[b]=c)}function ZJ(a){var b=a.parent?ZJ(a.parent):{};qa(b,a.j);return b};function nK(a){aK.call(this);var b={Og:{},am:{},bm:{}},c,d;a=a.firstChild.childNodes;for(var e=0;e<a.length;e++){var f=a[e];switch(f.tagName){case "head":c=f;break;case "body":d=f}}if(c)for(c=c.childNodes,a=0;a<c.length;a++)switch(e=c[a],e.tagName){case "pen":var f=b,h=oK(e,"p"),k=void 0;h&&f.Og[h]&&(k=f.Og[h]);f=new jK(k);lK(f,"id",oK(e,"id"));h=pK(e,"b");void 0!=h&&(f.j.bold=h);h=pK(e,"i");void 0!=h&&(f.j.italic=h);h=pK(e,"u");void 0!=h&&(f.j.underline=h);lK(f,"charEdgeStyle",qK(e,"et"));lK(f,"offset",
qK(e,"of"));lK(f,"textType",qK(e,"tt"));mK(f,"background",rK(e,"bc"));mK(f,"charEdgeColor",rK(e,"ec"));mK(f,"color",rK(e,"fc"));h=qK(e,"fs");void 0!=h&&0!=h&&lK(f,"fontFamily",h);h=oK(e,"sz");void 0!=h&&lK(f,"fontSizeIncrement",h/100-1);h=oK(e,"bo");void 0!=h&&lK(f,"backgroundOpacity",h/255);e=oK(e,"fo");void 0!=e&&lK(f,"textOpacity",e/255);e=kK(f,"id",!1);b.Og[e]=f;break;case "ws":f=sK(b,e);e=kK(f,"id",!1);b.bm[e]=f;break;case "wp":f=tK(b,e),e=kK(f,"id",!1),b.am[e]=f}if(d)for(c={},a=-1,d=d.childNodes,
e=0;e<d.length;e++)switch(f=d[e],f.tagName){case "w":h=uK(b,f);if(f=c[h.id])f.end=h.start;c[h.id]=h;this.j.push(h);break;case "p":for(var h=b,k=f,l=[],n=oK(k,"t")||0,r=oK(k,"d")||0,u=oK(k,"w")||0,z=!!pK(k,"a"),y=z?6:5,V=oK(k,"p"),V=V?h.Og[V]:null,va=k.childNodes,L=0;L<va.length;L++){var wa=va[L];if("s"==wa.tagName){0<L&&(z=!0);var cc;cc=h;var Dg=wa,wa=n,DB=r,EB=u,FB=z,GB=y,Oo=V,gu=Dg.textContent?Ba(Dg.textContent):"",Cl=oK(Dg,"p"),Oo=Cl?cc.Og[Cl]:Oo;cc=oK(Dg,"t")||0;cc=new bK(wa+cc,DB-cc,GB,EB,gu,
FB,Oo)}else cc=k.textContent?Ba(k.textContent):"",cc=new bK(n,r,y,u,cc,z,V);l.push(cc)}k=l;if(0<k.length)for(h=c[k[0].windowId],h||(h=uK(b,f),h.id=a--,this.j.push(h)),f=0;f<k.length;f++)l=k[f],k[f].windowId=h.id,n=h,r=l.o,""!=n.o&&(n.C=!0),n.o+=r,this.o.push(l)}}B(nK,aK);function oK(a,b){var c=a.getAttribute(b);if(null!=c)return parseFloat(c)}function pK(a,b){var c=a.getAttribute(b);if(null!=c)return"1"==c}function qK(a,b){var c=oK(a,b);if(void 0!=c)return c}
function rK(a,b){var c=a.getAttribute(b);if(null!=c)return JJ.test(c),c}function sK(a,b){var c=oK(b,"ws"),d;c&&a.bm[c]&&(d=a.bm[c]);c=new jK(d);lK(c,"id",oK(b,"id"));lK(c,"modeHint",qK(b,"mh"));lK(c,"textAlign",oK(b,"ju"));lK(c,"textPrintDirection",qK(b,"pd"));lK(c,"textScrollDirection",qK(b,"sd"));lK(c,"windowBorderType",qK(b,"et"));mK(c,"windowBorderColor",rK(b,"wbc"));mK(c,"windowColor",rK(b,"wfc"));d=oK(b,"wfo");void 0!=d&&lK(c,"windowOpacity",d/255);return c}
function tK(a,b){var c=oK(b,"wp"),d;c&&a.am[c]&&(d=a.am[c]);c=new jK(d);lK(c,"anchorPoint",qK(b,"ap"));lK(c,"colCount",oK(b,"cc"));lK(c,"id",oK(b,"id"));lK(c,"leftPercentage",oK(b,"ah"));lK(c,"rowCount",oK(b,"rc"));lK(c,"topPercentage",oK(b,"av"));return c}function uK(a,b){var c=oK(b,"id")||0,d;d=oK(b,"t");var e=oK(b,"d")||0x8000000000000,f=tK(a,b),h=sK(a,b);return new dK(d,e,0,c,null,f,h)};function vK(a,b){aK.call(this);this.j.push(gK());for(var c=a.split(wK),d=1;d<c.length;d++){var e;e=c[d];var f=b;if(""==e||0==e.search(xK))e=null;else{var h=e.split(yK),k=0,l=h[k++].match(zK);l||(l=h[k++].match(zK));l?(e=AK(l[1],f)||0,f=AK(l[3],f)||0,h=h.slice(k).join("\n"),e=new bK(e,f-e,5,0,h)):e=null}e&&this.o.push(e)}}B(vK,aK);var xK=/NOTE/,wK=/(?:\r\n|\r|\n){2,}/,yK=/\r\n|\r|\n/,zK=/(([\d]{2}:)?[\d]{2}:[\d]{2}\.[\d]{3})[\t ]+--\x3e[\t ]+(([\d]{2}:)?[\d]{2}:[\d]{2}\.[\d]{3})/;
function AK(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 BK(a,b){this.j=[];this.o=[];var c;c=a?"WEBVTT"==a.substring(0,6)?new vK(a,b||0):(c=LA(a))&&c.firstChild?"timedtext"==c.firstChild.tagName?3==parseInt(c.firstChild.getAttribute("format"),10)?new nK(c):new iK(c):new hK(c):null:null;c&&(this.o=c.j,this.j=c.o)};function CK(){this.A=[];this.j=[];this.o=-1}function DK(a,b){return b?a.j.concat(a.A):a.j}function EK(a,b){switch(b.A){case "asr":var c=a.A;G(c,x(b.equals,b))||c.push(b);break;default:if(b.isDefault||0>a.o)a.o=a.j.length;c=a.j;G(c,x(b.equals,b))||c.push(b)}}function FK(a,b){var c=qb(a.j,x(b.equals,b));-1!=c&&(a.o=c)};function GK(a){this.Bo=!!a;this.j=new CK;this.C=[]}B(GK,H);function HK(a,b){return G(DK(a.j,!0),function(a){return a.toString()==b})}g=GK.prototype;g.nk=function(a){var b=this.j.o,c=DK(this.j,!0);a&&0>b&&0<c.length&&(b=0);return 0>b?null:c[b]};g.Qd=function(){return null};g.seek=function(){};g.Tl=function(){};g.R=function(){GK.N.R.call(this);this.Tl()};function IK(a){GK.call(this,a.Oh);this.o=null;this.B=void 0;this.A=null;this.C=a.captionTranslationLanguages}B(IK,GK);g=IK.prototype;g.Bn=function(){for(var a=[],b=DK(this.j,void 0),c=0;c<b.length;c++){var d=b[c],e={kind:"subtitles",label:kv(d),srclang:d.j,src:JK(this,d)};d==this.nk()&&(e["default"]=1);a.push(O("track",e))}return a};
g.bl=function(a,b){gb(!this.isDisposed());var c=JK(this,a),d=x(function(c){this.A=null;c=new BK(c.responseText);b(c,a)},this);this.A&&this.A.abort();this.A=wk(c,{format:"RAW",kb:d,withCredentials:!0});this.o&&this.o.sg!=a&&(this.o.gk=a)};g.fl=function(a,b,c,d){this.B=c;if(this.o=d||null)for(b=0;b<this.o.captionTracks.length;b++)EK(this.j,this.o.captionTracks[b]);a()};function JK(a,b){var c=b.H,d={};if(a.B||b.C)d.fmt=a.B||"srv"+b.C;b.o&&(d.tlang=b.o.languageCode);return mk(c,d)}
g.Qd=function(){return this.o?this.o.sg:null};g.nk=function(){return this.o?this.o.gk:null};g.R=function(){this.A&&this.A.abort();IK.N.R.call(this)};function KK(){this.S=1;this.A=20971520;this.o=8388608;this.j=NaN;this.J=3145728;this.K=62914560;this.U=10485760;this.F=NaN;this.ga=2;this.ea=25;this.B=2097152;this.H=!1;this.D=1800;this.C=1.15;this.G=1.05;this.aa=!0;this.liveChunkReadahead=3;this.ia=Gu("xboxone")||Ku()||Fu();this.X=this.W=!1;this.ha=Mi&&!0;this.na=!0;this.M=this.ca=this.L=!1;this.Ga=this.T=0;this.Na=1;this.fa=this.Z=!1};function LK(){this.ra=[]}LK.prototype.contains=function(a){a=Gb(this.ra,a);return 0<=a||0>a&&1==(-a-1)%2};LK.prototype.length=function(){return this.ra.length/2};function MK(a,b){H.call(this);this.o=b;this.G=new LK;this.B=!0;this.H=this.C=this.D=this.F=this.j=null;this.A=0}B(MK,H);MK.prototype.R=function(){uj(this.A);this.A=0;this.B=!0;this.C&&this.C.abort()};MK.prototype.resume=function(){this.B=!1;uj(this.A);this.seek(this.o.getCurrentTime());NK(this)};MK.prototype.seek=function(a){this.j=ib(this.H.fi(a).j)};function OK(a,b){a.F=b}function PK(a){var b;if(b=!a.B&&null!==a.j)b=a.j,b=b.j.jh(b);return b&&!a.C&&!(a.j&&30<a.j.startTime-a.o.getCurrentTime())}
function QK(a){a.isDisposed();var b;b=a.j;b=rt(b.j,b);if(!a.G.contains(b.j[0].B)){var c=$s(ot(b));a.C=wk(c,{format:"RAW",Xb:x(a.J,a),withCredentials:!0});a.D=b;var c=a.G,d=a.D.j[0].B,e=Gb(c.ra,d);0<=e||0>e&&1==(-e-1)%2||(e=-e-1,0<e&&1==d-c.ra[e-1]&&e<c.ra.length&&1==c.ra[e]-d?(yb(c.ra,e),yb(c.ra,e-1)):0<e&&1==d-c.ra[e-1]?c.ra[e-1]=d:e<c.ra.length&&1==c.ra[e]-d?c.ra[e]=d:(Db(c.ra,e,0,d),Db(c.ra,e+1,0,d)))}a.j=ib(b.j)}
MK.prototype.J=function(a){this.isDisposed();null==a.responseText||400<=a.status||this.B||null===this.F||(a=new BK(a.responseText,1E3*this.D.j[0].startTime),this.F(a));this.C=this.D=null};function NK(a){a.A=sj(x(function(){PK(this)&&QK(this)},a),1E3);PK(a)&&QK(a)};function RK(a,b){GK.call(this);this.A=a;this.o=new MK(new KK,b)}B(RK,GK);g=RK.prototype;g.bl=function(a,b){OK(this.o,function(c){b(c,a)});this.o.H=this.A.j[a.j];this.o.resume()};g.fl=function(a){EK(this.j,new hv({format:1,languageCode:"en",languageName:"English",name:"",is_servable:!0,is_default:!0,is_translateable:!1}));a()};g.seek=function(a){this.o.seek(a)};g.Tl=function(){var a=this.o;uj(a.A);a.A=0;a.B=!0};g.R=function(){this.o.dispose();RK.N.R.call(this)};function SK(a,b){XJ.call(this,a,b);this.type=1;this.G=this.J="";this.F=!1;this.A=null;this.C=[];this.o.style.display="block";this.o.style.padding="0";var c=this.o;te(c,"captions-text");K(c,"caption-painton-text-rows")}B(SK,XJ);g=SK.prototype;g.ci=function(){return this.C[0]?this.C[0].offsetHeight:0};function TK(a){return a.C.reduce(function(a,c){return Math.max(a,c.offsetWidth)},0)}
g.be=function(){0!=this.id&&(Hg(this.j,"100%"),Hg(this.j,this.F?TK(this):this.A.width));var a=Math.round(this.Ha.rowCount*this.ci());this.j.style.maxHeight=a+"px";YJ(this);Lr(this.j,this.Ha.isVisible)};
g.ee=function(a){this.Uh();a=a.split("<br>");for(var b=0,c=a.length;b<c;b++)if(a[b]){var d=O("div",{"class":"caption-row-holder"}),e=O("span",{"class":"caption-row captions-text"});e.style.backgroundColor=this.G;d.appendChild(e);e.innerHTML=a[b];this.F||(this.o.style.height=this.A.height+"px",this.o.style.width=this.A.width+"px",d.style.position="absolute",d.style.top=this.A.nq[b]+"px",d.style.left=this.A.mq[b]+"px");this.o.appendChild(d);this.C.push(e)}this.be()};
g.Uh=function(){for(var a=0,b=this.C.length;a<b;a++){var c=kg(this.C[a],"caption-row-holder");Wf(c)}this.C=[]};g.xd=function(a,b){SK.N.xd.call(this,a,b);this.G=this.o.style.backgroundColor;this.o.style.backgroundColor="";for(var c=0,d=this.C.length;c<d;c++)this.C[c].style.backgroundColor=this.G};function UK(a){R.call(this,["div","ytp-project-beyond-crawl"]);this.B=NaN;this.C=0;this.$=a;this.o=[];this.D=new SA(this.G,void 0,this);I(this,this.D);S(this,this.$,"resize",this.F);this.F();this.D.start()}B(UK,R);UK.prototype.F=function(){var a=dG(bG(this.$),!0).height;this.B=a/480*22;this.element.style.fontSize=this.B+"px";og(this.element,"transform","translateX(-50%) perspective("+a+"px) rotateX(42deg)")};
UK.prototype.G=function(){this.D.start();for(var a=xj(),b=this.o.length-1;0<=b;b--){var c=this.o[b],d=a-c.startTime;2E4<d?(this.o.splice(b,1),Wf(c.element)):(c.element.style.top=49-(a-c.startTime)/400+"em",c.element.style.opacity=Math.min(1,5*(1-d/2E4)))}};
function VK(a,b,c,d){if(d){var e;for(d=a.o.length-1;0<=d;d--){var f=a.o[d];if(f.windowId==b){f.element.innerHTML=c;var h=Math.max(f.element.clientHeight/a.B,f.height);e=400*(h-f.height);f.height=h;break}}if(void 0!=e){if(e)for(a.C+=e,d++;d<a.o.length;d++)a.o[d].startTime+=e;return}}e=document.createElement("div");K(e,"ytp-project-beyond-crawl-line");e.innerHTML=c;a.element.appendChild(e);c=Math.max(xj(),a.C);a.o.length&&b!=a.o[a.o.length-1].windowId&&(c+=400);d=e.clientHeight/a.B;a.o.push({windowId:b,
height:d,startTime:c,element:e});a.C=c+400*d}UK.prototype.reset=function(){Uf(this.element);this.o.length=0};function WK(a){this.j="";this.o=a}WK.prototype.Jl=function(a){for(var b="",c=0;c<a.length;c++){var d=a[c];!d.C&&0<c&&(b+="\n");b+=d.o}b.lastIndexOf("\n")==b.length-1&&(b=b.substring(0,b.length-1));a=!1;a=this.j.lastIndexOf("\n");a=0>a?0:a+1;0==b.indexOf(this.j)?(c=b.substring(a),a=!0):(c=b,a=0==b.indexOf(this.j.substring(a)));if(-1!=c.indexOf("\n"))for(d=c.split("\n"),c=0;c<d.length;c++)VK(this.o,ka(this),d[c],0==c&&a);else VK(this.o,ka(this),c,a);this.j=b};function XK(a,b){XJ.call(this,a,b);this.type=2;this.M=32;this.C=0;this.G=null;this.D=[];this.F=[];this.A=[];this.G=new ke(433);this.G.stop();Hm(this.G,"tick",x(this.J,this))}B(XK,XJ);XK.prototype.be=function(){Hg(this.j,"100%");var a=this.j.offsetWidth,a=Math.min(YK(this),a);Hg(this.j,a+"px");Hg(this.H,"100%");this.o.style.whiteSpace="nowrap";YJ(this);Lr(this.j,this.Ha.isVisible)};
XK.prototype.Jl=function(a){var b=a.length;if(0>=b)this.Uh();else{for(var c=0;c<b&&0<=this.D.indexOf(a[c]);)c++;this.D=this.D.concat(a.slice(c));ZK(this)}};XK.prototype.Uh=function(){this.D=[];this.A=[];this.C=0;this.A=[];this.F=[];$K(this)};
function ZK(a){if(!aL(a))if(a.C>=a.D.length)$K(a);else{var b=a.A.length-1;0>b&&(a.F.push(0),a.C=0,a.A.push(""),b=0);for(var c=a.D.length,d=a.C;d<c;d++){var e=a.D[d];if("\n"==e.o){a.C++;a.F[b]++;break}if(e.C||0==a.A[b].length)a.A[b]+=e.o,a.C++,a.F[b]++;else break}$K(a);d<c&&!aL(a)&&(b=a.ci(),K(a.o,"caption-rollup"),a.j.style.overflow="hidden",a.o.style.top=-b+"px",a.G.start())}}function aL(a){return a.G.enabled||re(a.o,"caption-rollup")}
XK.prototype.J=function(){this.j.style.overflow="visible";this.o.style.top=0;this.G.stop();te(this.o,"caption-rollup");this.A.push("");this.F.push(0);ZK(this)};function $K(a){if(!aL(a)){for(;a.A.length<a.Ha.rowCount;)a.A.unshift(""),a.F.unshift(0);for(;a.A.length>a.Ha.rowCount;){a.A.shift();var b=a.F.shift();0<b&&(a.C-=b,a.D.splice(0,b))}a.ee($J(a.A.join("\n")))}}
function YK(a){a.B.style.fontFamily=a.o.style.fontFamily;a.B.style.fontSize=a.o.style.fontSize;a.o.appendChild(a.B);dg(a.B,"\u2014");var b=a.B.offsetWidth;dg(a.B,String.fromCharCode(160));b=2*a.B.offsetWidth+b*a.M;a.o.removeChild(a.B);return b};function bL(a,b,c,d){GK.call(this,d);c||(c=lk(a).hl||"",c=c.split("_").join("-"));this.A=mk(a,{hl:c});this.B=b;this.D={};this.o=null}B(bL,GK);bL.prototype.Bn=function(){for(var a=[],b=DK(this.j,void 0),c=0;c<b.length;c++){var d=b[c],e=cL(this,d),e={kind:"subtitles",label:d.B,srclang:d.j,src:e};d.isDefault&&(e["default"]=1);a.push(O("track",e))}return a};
bL.prototype.bl=function(a,b){gb(!this.isDisposed());var c=cL(this,a),d=x(function(c){this.o=null;c=new BK(c.responseText);b(c,a)},this);this.o&&this.o.abort();this.o=wk(c,{format:"RAW",kb:d,withCredentials:!0});FK(this.j,a)};
bL.prototype.fl=function(a,b,c){var d=this.A;b={type:"list",tlangs:1,v:this.B,fmts:Number(b||!1),vssids:1};this.Bo&&(b.asrs=1);d=mk(d,b);b=x(function(b){this.o=null;if((b=b.responseXML)&&b.firstChild){for(var d=this.j,h=b.getElementsByTagName("track"),k=h.length,l=0;l<k;l++){var n=h[l].getAttribute("formats"),r=c,u=h[l].getAttribute("lang_code"),z=h[l].getAttribute("lang_translated"),y=h[l].getAttribute("name"),V=h[l].getAttribute("kind"),va=h[l].getAttribute("id"),L="true"==h[l].getAttribute("lang_default"),
wa="true"==h[l].getAttribute("cantran"),cc=h[l].getAttribute("vss_id");EK(d,new hv({formats:n,format:r,languageCode:u,languageName:z,name:y,kind:V,id:va,is_servable:!0,is_default:L,is_translateable:wa,vss_id:cc}))}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"),n=b[h].getAttribute("lang_original"),r=b[h].getAttribute("id"),u="true"==b[h].getAttribute("lang_default"),k={languageCode:k,languageName:l,languageOriginal:n,
id:r,is_default:u},this.D[k.languageCode]=k.languageName,this.C.push(new gv(k))}a()},this);this.o&&this.o.abort();this.o=wk(d,{format:"RAW",kb:b,withCredentials:!0})};function cL(a,b){var c=a.A,d={v:a.B,type:"track",lang:b.j,name:b.B,kind:b.A,fmt:b.C};b.o&&(d.tlang=b.o.languageCode);return c=mk(c,d)}bL.prototype.R=function(){this.o&&this.o.abort();bL.N.R.call(this)};function dL(a){lr.call(this,a,"subtitlesModuleData");this.oa="captions";this.H="cc";IJ();this.fa=!0;this.ea=this.T=this.ha=!1;this.G=a.V();this.C=null;this.S=bG(a);this.A={};this.ga=this.W=null;this.ca=[];this.M={};this.aa={};this.Ca=this.K=this.wa=!1;this.Z=new XJ(99,SJ);this.o=this.B=this.D=null;this.Da=!1;this.ia=new oe(this.Ul,0,this);I(this,this.ia);this.na=new oe(this.xB,2E3,this);I(this,this.na);this.L=null;this.za=!1;this.subscribe("onResize",x(this.pp,this));this.subscribe("onCaptionsToggle",
x(this.BA,this));this.subscribe("onPlaybackAudioChange",x(this.cy,this));this.subscribe("onCaptionsDisplaySettings",x(this.Bl,this))}B(dL,lr);function eL(a){return"3"!=a.G.A?!1:!!a.S.o.textTracks}function fL(a,b,c,d,e){w(a.A[b])&&(a.A[c]=d.indexOf(a.A[b]),-1==a.A[c]&&(a.A[c]=e),delete a.A[b])}g=dL.prototype;
g.create=function(){dL.N.create.call(this);this.C=this.j.getVideoData();-1==TJ.indexOf(this.G.X)&&K(this.j.sa(),"cc-international");this.A=nc(NJ);qa(this.A,sr(this,"display-settings"));fL(this,"fontFamilyOption","fontFamily",KJ,4);fL(this,"charEdgeStyle","charEdgeStyle",LJ,3);this.ga=new R(["div",["ytp-player-content","ytp-subtitles-player-content"]]);this.ga.j(this.j.sa());this.W=this.ga.element;(this.C.Fa&&eL(this)?0:this.C.captionTracks.length&&this.j.Yf().sg||gL(this,!0))&&this.load()};
g.destroy=function(){this.ga.detach();this.ga.dispose();this.W=null;dL.N.destroy.call(this)};function gL(a,b){if(b&&a.C.captionTracks.length){var c=a.j.Yf().tn;if(2==c||3==c)return!0}if(1==a.G.aa||1==a.C.Gd||"alwayson"==a.C.Oc("yt:cc")||eL(a))return!0;c=sr(a,"module-enabled");return null!=c?!!c:"on"==a.C.Oc("yt:cc")}function hL(a){a.o&&a.o==a.B.Qd()&&iL(a);a.B.fl(x(a.Tp,a),!0,eL(a)?"vtt":void 0,a.j.Yf())}
g.load=function(){this.Ca="1"==this.C.B.cc_auto_caps||"1"==this.G.M.cc_auto_caps;this.za&&(this.L=new UK(this.j),this.L.j(this.W));dL.N.load.call(this);this.ha=!0;if(this.C.Fa)this.B=new RK(this.C.j,this.j),this.subscribe("seekto",this.Cr,this);else{var a=this.C.Fd||this.G.Sa||this.C.Oc("yt:cc_default_lang")||this.G.X,a=a&&a.split("_").join("-");this.C.captionTracks.length?this.B=new IK(this.C):this.B=new bL(this.C.Ph,this.C.videoId,a,this.C.Oh)}hL(this)};
g.unload=function(){this.F&&(jL(this),this.yl("control_subtitles_set_track"));if(eL(this)){var a;a=Ff("track",void 0,void 0);for(var b=0;b<a.length;b++)Wf(a[b])}else kL(this,!1),iL(this),this.unsubscribe("seekto",this.Cr,this),this.B.dispose(),this.B=null;this.L&&(this.L.dispose(),this.L=null);this.K=this.ea=this.T=this.ha=!1;dL.N.unload.call(this)};
g.Tp=function(){this.ha=!1;if(eL(this))for(var a=this.S.o,b=this.B.Bn(),c=0;c<b.length;c++)a.appendChild(b[c]);else if(c=this.K||gL(this,!this.ea),b=DK(this.B.j,!0),0<b.length){this.ea=!0;a=this.o&&-1!=b.indexOf(this.o);if(c&&!a)if(c=this.B.nk(),!c&&this.K&&(c=b[0]),c)this.wa=!0,lL(this,c),a=!0;else if(this.T||mL(this),b=this.B.j.A,b.length&&(b=b[0].toString(),this.K||this.Ca))a=HK(this.B,b),lL(this,a,void 0),a=!0;this.O("publish_external_event","onCaptionsTrackListChanged");a||nL(this)}else if(this.B.Qd())nL(this);
else if(a=this.j.app.B,b=JI(a,this.oa))xb(a.j,b),b.destroy()};function mL(a){a.T=!0;eL(a)||(oL(a),a.pp())}
g.Up=function(a,b){this.wa&&(this.wa=!1,this.O("publish_external_event","onCaptionsTrackListChanged"));if(b&&(!this.o||!b.equals(this.o))){iL(this);this.o=b;this.Da=We.test(b.j);var c={trackName:b.B,trackKind:b.A};b.o?(c.trackLangCode=b.o.languageCode,c.fromLangCode=b.j):c.trackLangCode=b.j;this.log(c);b!=this.B.Qd()&&(this.K&&(c=kv(b)||"",(c=c.replace(/<[^>]*>?/g,""))&&(c+="\n"),c+=Q("YTP_CLICK_FOR_SETTINGS",{GEAR_ICON:'<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" width="15px" height="15px" viewBox="0 0 15 15"><path fill-rule="evenodd" clip-rule="evenodd" d="M9.25,5.7C8.783,5.233,8.2,5,7.5,5S6.2,5.233,5.7,5.7C5.233,6.2,5,6.8,5,7.5s0.233,1.283,0.7,1.75C6.2,9.75,6.8,10,7.5,10s1.283-0.25,1.75-0.75C9.75,8.783,10,8.2,10,7.5S9.75,6.2,9.25,5.7z M8.75,2.15c0.6,0.1,1.15,0.317,1.65,0.65l1.5-1.5l1.75,1.75l-1.5,1.5c0.333,0.534,0.583,1.1,0.75,1.7H15v2.5h-2.1c-0.133,0.6-0.367,1.15-0.7,1.65l1.5,1.5l-1.75,1.75l-1.5-1.5c-0.534,0.333-1.1,0.583-1.7,0.75V15h-2.5v-2.1c-0.6-0.167-1.167-0.417-1.7-0.75l-1.5,1.5L1.3,11.9l1.5-1.5C2.467,9.9,2.25,9.35,2.15,8.75H0v-2.5h2.15c0.133-0.6,0.367-1.167,0.7-1.7l-1.5-1.5L3.1,1.3l1.5,1.5c0.5-0.333,1.05-0.55,1.65-0.65V0h2.5V2.15z"/></svg>'}),
this.W.appendChild(this.Z.j),this.Z.ee(c),this.Z.xd(this.A,this.S.Ka()),this.Z.be(),this.na.Of()),this.O("publish_external_event","captionschanged",jv(b)),(this.G.experiments.xa("cc_sticky_behavior")||this.K||VH(this.G))&&tr(this,"module-enabled",!0),(c=nr(this.j.app))&&c.A&&VB(c.A.o))}this.T||mL(this);this.gb(a.o.concat(a.j))};function nL(a){a.B.Qd()&&lL(a,a.B.Qd())}g.jc=function(a){this.ca.push(a);this.ia.Of()};g.Dc=function(a){xb(this.ca,a);this.ia.Of()};
g.oB=function(a){if(this.o)if(a instanceof dK){var b=this.M[a.id];qa(a.params,this.A);eK(a);!b||b instanceof WK||b.getType()==fK(a)||(Wf(b.j),delete this.M[a.id],b=null);if(!b){var b=this.M,c=a.id,d;a:{d=a.id;var e=a.params;if(this.L)d=new WK(this.L);else switch(fK(a)){case 1:d=new SK(d,e);break a;case 2:d=new XK(d,e);break a;default:d=new XJ(d,e)}}b=b[c]=d;b instanceof WK||(c=b.j,M(c,"captions-asr","asr"==this.o.A),null!=a.params.textPrintDirection&&(a.params.textPrintDirection=this.Da?1:0),this.W.appendChild(c))}if(!(b instanceof
WK)&&(b.xd(a.params,this.S.Ka()),1==fK(a))){b.J=$J(a.o);b.A={};b.F=!0;b.ee(b.J);b.A.lq=b.C.length;b.A.width=b.j.offsetWidth;b.A.height=b.j.offsetHeight;b.A.mq=[];b.A.nq=[];for(a=0;a<b.A.lq;a++)b.A.nq.push(b.C[a].offsetTop),b.A.mq.push(b.C[a].offsetLeft);b.F=!1;b.ee(b.J)}}else b=a.windowId,this.aa[b]||(this.aa[b]=[]),this.aa[b].push(a)};g.pp=function(){this.T&&(oL(this),Wb(this.M,function(a){a instanceof WK||a.be()},this))};
function pL(a){var b=[];Wb(a.M,function(a){a instanceof SK&&b.push(a)});if(0!=b.length){b.sort(function(a,b){return b.Ha.Sl-a.Ha.Sl});var c=qL(a.S).height,d=b[0].Ha.Sl;E(b,function(a){a.Ha.Sl=d;var b=Math.round(a.Ha.lq*a.ci());d-=Math.round(b/c*100);a.be()},a)}}g.xB=function(){Wf(this.Z.j)};
g.Ul=function(){this.ia.stop();this.T&&(kc(this.aa),this.ca.sort(kr),E(this.ca,this.oB,this),Wb(this.M,function(a,b){this.aa[b]?a.Jl(this.aa[b]):(a instanceof WK||Wf(a.j),delete this.M[b])},this),pL(this),this.D&&this.D.be())};function iL(a){a.o&&(a.o=null,mr(a),a.ca=[],a.o=null,a.Ul(),a.L&&a.L.reset(),a.B.Tl())}function lL(a,b,c){!b||a.o&&b.equals(a.o)||(null!=c&&(a.K=c),a.F?(a.o=b,jL(a),a.yl("control_subtitles_set_track",jv(b)),a.T||mL(a)):(a.B.bl(b,x(a.Up,a)),a.ha=!0))}
g.Bl=function(){tr(this,"display-settings",this.A)};function oL(a,b){var c=a.S.Ka();Wb(a.M,function(a){a instanceof WK||a.xd(this.A,c)},a);a.D&&a.D.xd(a.A,c);a.Z.xd(a.A,c);a.Ul();p(b)&&!b||a.Bl()}function rL(a){if(a.loaded){var b=a.na;b.isActive()&&pe(b);tr(a,"module-enabled",!1);(b=nr(a.j.app))&&b.A&&VB(b.A.o);iL(a);a.K=!1;a.F?(jL(a),a.yl("control_subtitles_set_track")):a.O("publish_external_event","captionschanged",{});nL(a)}}function sL(a){return dL.prototype.Za(a)?new dL(a):null}
g.ke=function(a,b){switch(a){case "fontSize":return isNaN(b)||(this.A.fontSizeIncrement=Math.max(-2,Math.min(4,b)),oL(this)),this.A.fontSizeIncrement;case "reload":b&&hL(this);break;case "stickyLoading":void 0!=b&&this.G.jb&&tr(this,"module-enabled",!!b);break;case "track":if(b){if(!ia(b))break;if(jc(b)){rL(this);break}for(var c,d=DK(this.B.j,!0),e=0;e<d.length;e++){var f=d[e];f.j!=b.languageCode||c&&f.D!=b.languageName||(c=b.translationLanguage?mv(f,b.translationLanguage):f)}c&&lL(this,c,!0)}else return this.o&&
this.o!=this.B.Qd()?jv(this.o):{};return"";case "tracklist":return this.ea?F(DK(this.B.j,b&&b.includeAsr),function(a){return jv(a)}):[];case "translationLanguages":return this.ea?this.B.C:[];case "displaySettings":return b&&ia(b)&&tL(this,b),c=nc(this.A),c.fontFamilyOption=KJ[c.fontFamily],c.charEdgeStyle=LJ[c.charEdgeStyle],c;case "sampleSubtitles":void 0!=b&&kL(this,!!b);break;case "xmlTrack":b&&this.G.jb&&(iL(this),c=new BK(b.xml),this.o=new hv({languageName:b.name}),this.Up(c,this.o));break;case "beyondCrawl":return void 0!=
b&&(this.za=!!b,this.loaded&&(this.unload(),this.load())),this.za}};function kL(a,b){if(b&&!a.D){a.D=new XJ(98,RJ);a.W.appendChild(a.D.j);var c=a.D,d=Q("YTP_SAMPLE_SUBTITLES");d&&(d=d.replace(/<[^>]*>?/g,""),c.ee($J(d)));a.D.xd(a.A,a.S.Ka())}else!b&&a.D&&(Wf(a.D.j),a.D=null)}g.Re=function(){var a="reload fontSize track tracklist translationLanguages displaySettings sampleSubtitle".split(" ");this.G.jb&&a.push("stickyLoading","xmlTrack");return a};g.ak=function(a,b){return a&&w(a)&&JJ.test(a)?a:b};
g.kl=function(a,b){return ga(a)&&!isNaN(a)?Math.max(0,Math.min(1,parseFloat(a))):b};g.cv=function(a,b){if(a&&w(a)){var c=LJ.indexOf(a);return-1!=c?c:b}return b};g.Kv=function(a,b){if(a&&w(a)){var c=KJ.indexOf(a);return-1!=c?c:b}return b};g.Lv=function(a,b){return ga(a)&&!isNaN(a)?Math.max(-2,Math.min(4,a)):b};var uL=null;
function tL(a,b){if(b)if(mc(b,"reset"))delete a.A,a.A=nc(NJ),a.Bl(),oL(a);else{if(!uL){var c={};c.color=a.ak;c.textOpacity=a.kl;c.background=a.ak;c.backgroundOpacity=a.kl;c.windowColor=a.ak;c.windowOpacity=a.kl;c.charEdgeStyle=a.cv;c.fontFamilyOption=a.Kv;c.fontSizeIncrement=a.Lv;uL=c}var c=uL,d;for(d in c)switch(d){case "fontFamilyOption":a.A.fontFamily=c[d](b[d],a.A.fontFamily);break;default:a.A[d]=c[d](b[d],a.A[d])}oL(a,VH(a.G))}}g=dL.prototype;
g.Za=function(a){if("lb3"==a.V().j)return!1;a=a.getVideoData();var b;if(b=a.Fa)b=a.j,b=!(!b||null==b.j.en);return!!(a.Ph||a.captionTracks.length||b)};g.Ei=function(a){a?iL(this):this.loaded&&(this.unload(),this.load())};function jL(a){var b={};a.o&&(b=jv(a.o));a.O("publish_external_event","captionschanged",b)}g.Cr=function(){this.B.seek(this.j.getCurrentTime())};g.kh=function(){var a=this.o;return a?{cc:a.F}:null};
g.BA=function(){this.K=!0;this.loaded?this.o&&this.o!=this.B.Qd()?rL(this):this.Tp():this.load()};g.cy=function(){this.C.captionTracks.length&&(this.loaded?hL(this):(this.j.Yf().sg||gL(this,!0))&&this.load())};function vL(a){lr.call(this,a);this.oa="ypc_license_checker";this.H="ypc_license";this.D=!1;this.B=0;this.C=!1;this.o=NaN;Rv();this.A=null}B(vL,lr);function wL(a){return qy(a.getVideoData(),"ypc_license_checker_module")}g=vL.prototype;g.Za=function(){return wL(this.j)};g.create=function(){vL.N.create.call(this);var a=new hr(1E3,0x7ffffffffffff,{priority:0});this.gb([a]);this.subscribe("heartbeatparams",this.AD,this);this.subscribe("onStateChange",this.BD,this)};
function xL(a){return wL(a)?new vL(a):null}g.destroy=function(){yL(this);vL.N.destroy.call(this)};g.jc=function(){this.D=!0;zL(this,2E3)};g.AD=function(a){this.A=a;zL(this,2E3)};g.BD=function(a){U(a.state,2)||U(a.state,64)?yL(this):(U(a.state,1)||U(a.state,8))&&zL(this,2E3)};function AL(a){var b=a.j.getVideoData();return iy(b)?!!a.A:!!b.heartbeatToken}
function zL(a,b){if(!a.o&&a.D&&AL(a)){var c=a.j.getVideoData(),d=a.j.V();if(iy(c)||!VH(d)||d.experiments.xa("tv_player_heartbeats"))c=b,void 0==c&&(c=a.C?a.A?1E3*a.A.interval:a.j.getVideoData().heartbeatInterval||6E4:1E3),a.o=qj(x(a.DB,a),c)}}
g.DB=function(){var a,b,c=this.j.V(),d=this.j.getVideoData();b=c.baseYtUrl;U(FA(this.j),4)?this.o=NaN:AL(this)?(iy(d)?(a="GET",b=uh(this.A.url,{request_id:Rv()}),d.K&&(b=uh(b,{vvt:d.K})),d.oauthToken&&(b=uh(b,{access_token:d.oauthToken}))):(a="GET",c=c.o,b=uh(b+"heartbeat",{video_id:d.videoId,heartbeat_token:d.heartbeatToken,c:c.c,cbrand:c.cbrand,cmodel:c.cmodel,vvt:d.K,access_token:d.oauthToken})),b=uh(b,{cpn:d.clientPlaybackNonce}),wk(b,{format:"RAW",method:a,timeout:3E4,kb:x(this.qx,this),onError:x(this.ox,
this),$d:x(this.rx,this),withCredentials:!0})):yL(this)};g.qx=function(a){if(this.o){a=a.responseText;var b;b=(b=BL(a))?"ok"==b.status?0:"stop"==b.status?1:-1:(b=a.match(CL))?"0"==b[1]?0:1:-1;if(-1==b)DL(this,"decode");else if(this.B=0,this.o=NaN,1==b){this.C=!1;b="YTP_ERROR_LICENSE";var c=BL(a);c?a=c.reason||Q(b):((a=a.match(CL))&&(a=parseInt(a[1],10))&&(b=nz(a)),a=Q(b));EA(this.j.app.o,"heartbeat",a,void 0)}else this.C=!0,zL(this)}};g.ox=function(a){DL(this,"net-"+a.status)};
g.rx=function(){DL(this,"timeout")};function DL(a,b){if(a.o){a.log({errorType:b});a.o=NaN;a.B++;var c=a.j.getVideoData();(c.heartbeatSoftFail?0:a.B>=(a.A?a.A.j:c.heartbeatRetries||5))?(c=Q("YTP_ERROR_LICENSE"),EA(a.j.app.o,"heartbeat",c,void 0)):zL(a)}}var CL=/^GLS\/1.0 (\d+) (\w+).*?\r\n\r\n([\S\s]*)$/;function BL(a){try{return ve(a)}catch(b){return null}}function yL(a){a.B=0;a.o&&(tj(a.o),a.o=NaN);a.C=!1};function EL(a){br("/gen_204?"+a,void 0)};function FL(a,b,c){if(!a)return null;var d=b.docid;b=b.fmt_list;if(d&&b){var e={};E(b,function(a){a.itag&&(e[a.itag.toString()]=!0)});return GL(a,d,e,c)}return null}function GL(a,b,c,d){d=F(d.split(","),jk);if(!lb(d,function(a){return!!c[a.itag]}).length)return null;var e=lh(a)||"",f=mh(a);return F(d,function(a){if(c[a.itag]){var d=Ch(Bh(Uh(a.url),e),f),l=jh(a.url),d=Qh(Qh(d,"orig_host",hh(l[1],l[2],l[3],l[4])),"scid",b);a.url=d.toString();a.isFastLoad="1"}return sh(a)}).join(",")};function HL(a,b,c){var d=IL(b);d?(d.status="success-prefetch-1",c(d)):a&&!b?c({status:"success"}):a?(a=[a,"v1/cache/videos",b,"metadata"].join("/"),wk(a,{format:"JSON",method:"GET",timeout:2E3,kb:function(a,b){null==b&&(b={});b.status="success";c(b)},onError:function(){c({status:"error"})},$d:function(){var a=IL(b);a?(a.status="success-prefetch-2",c(a)):c({status:"timeout"})}})):c({status:"nodevice"})}function IL(a){var b=window.acceleratorMeta;return(b?b.docid:null)===a?b:null};function JL(a){lr.call(this,a);this.H=this.oa="spacecast";this.o=null}B(JL,lr);g=JL.prototype;g.Za=function(){return!!this.j.getVideoData().spacecastModule};function KL(a){return a.getVideoData().spacecastModule?new JL(a):null}g.create=function(){JL.N.create.call(this);var a;a:{var b=ak("yt-accelerator-discover"),b=b&&b.addrmap||{};for(a in b){var c=b[a];if(c.active&&(c=c.last_probe_tstamp,!(c&&12E5<Date.now()-c))){a="//"+a;break a}}a=null}this.o=a;this.load()};
g.destroy=function(){JL.N.destroy.call(this);this.o=null};g.load=function(){JL.N.load.call(this);if(this.o){var a=this.j.getVideoData().videoId,b=A();HL(this.o,a,x(this.uw,this,a,b))}else pr(this)};g.ke=function(a){switch(a){case "getVideo":a=this.j.getVideoData();var b=Boolean(a&&my(a)&&a.o&&a.o.video.j);return{docid:a.videoId,isFastLoad:b}}};
g.uw=function(a,b,c){if(this.o){b=A()-b;var d=!1,e=this.j.getVideoData(),f="unknown";if(c){c.status&&(f=c.status);var h=FL(this.o,c,e.adaptiveFormats);h&&(e.spacecastAdaptiveFormats=h);if(c=FL(this.o,c,e.Sf))e.spacecastFormatMap=c;if(h||c)fy(e,this.j.V()),e.M||uJ(this.j),d=wv(e.Tg),this.j.tj(d),d=!0}(c=2==this.j.getPresentingPlayerType())&&!d?Kd(function(){var a=this.j.app;a.F&&a.F.J&&(a=a.F,a.D&&(a=a.A.o.j,null!=a&&a.xj()))},this):pr(this);Gj("yt-www-spacecast-cache-watch-video-cached",a,d);EL(sh({a:"spacecast",
module:"player",status:f,docid:a,cached:d?1:0,"cache-latency":b,isAd:c?1:0}))}};function LL(a){lr.call(this,a);this.oa="ypc_clickwrap";this.H="ypc-clickwrap";wj({YTP_YPC_START_RENTAL_HEADER:"Would you like to start this rental?",YTP_YPC_START_RENTAL_BUTTON:"Start rental period"});this.A=this.o=null}B(LL,lr);g=LL.prototype;g.Za=function(){return qy(this.j.getVideoData(),"ypc_clickwrap_module")};function ML(a){return qy(a.getVideoData(),"ypc_clickwrap_module")?new LL(a):null}g.create=function(){LL.N.create.call(this);this.load()};
g.load=function(){LL.N.load.call(this);this.o=new wr(["div",["ytp-ypc-clickwrap-overlay","ytp-player-content"],["h2","ytp-ypc-clickwrap-header",Q("YTP_YPC_START_RENTAL_HEADER")],["div","ytp-ypc-clickwrap-description",this.j.getVideoData().B.ypc_clickwrap_message],["button",["ytp-ypc-clickwrap-confirm","ytp-button"],{tabindex:26},Q("YTP_YPC_START_RENTAL_BUTTON")]]);this.o.j(this.j.sa());I(this,this.o);this.A=this.o.ma["ytp-ypc-clickwrap-confirm"];Hm(this.A,"click",x(this.Fy,this))};
g.unload=function(){LL.N.unload.call(this);Mm(this.A);this.o.detach();this.o.dispose();this.o=null};g.Fy=function(){pr(this);this.destroy()};function NL(){return[hG.o,kz,IA,KL,sL,iI.o,ML,xL,pI]};function OL(a){this.C=Math.exp(Math.log(.5)/a);this.o=this.B=0}OL.prototype.j=function(a,b){var c=Math.pow(this.C,a);this.o=b*(1-c)+c*this.o;this.B+=a};OL.prototype.A=function(){return this.o/(1-Math.pow(this.C,this.B))};function PL(a){this.o=window.Float32Array?new Float32Array(a):Array(a);this.j=a-1}function QL(a,b){a.j=(a.j+1)%a.o.length;a.o[a.j]=b}PL.prototype.forEach=function(a){for(var b=this.j+1;b<this.o.length;b++)a(this.o[b]||0);for(b=0;b<=this.j;b++)a(this.o[b]||0)};PL.prototype.Ia=function(){var a=[];this.forEach(x(a.push,a));return a};function RL(a,b,c){this.H=0;this.F=a;this.C=b||.5;this.D=c||0;this.G="index";this.o=0;this.B=[]}RL.prototype.j=function(a,b){SL(this,"index");this.B.push({index:this.H++,weight:a,value:b});this.o+=a;for(SL(this,"index");this.o>this.F;){var c=this.o-this.F,d=this.B[0];d.weight<=c?(this.o-=d.weight,this.B.shift()):(this.o-=c,d.weight-=c)}};function TL(a,b){SL(a,"value");var c=b*a.o,d=0,e=NaN;a.B.some(function(a){d+=a.weight;e=a.value;if(d>=c)return!0});return e}
RL.prototype.A=function(){return this.D?(TL(this,this.C-this.D)+TL(this,this.C)+TL(this,this.C+this.D))/3:TL(this,this.C)};function SL(a,b){a.G!=b&&(a.G=b,Mb(a.B,b))};function UL(a){this.B=a;this.o=[]}UL.prototype.j=function(a,b){this.o.push(b);this.o.length>this.B&&this.o.shift()};UL.prototype.A=function(){return Fe.apply(null,this.o)};function VL(a){this.j=a;this.D=this.F=0;this.o=-1;this.J=new PL(100);this.H=0;this.K=xj();this.B=new RL(4,.6);this.C=new OL(4);this.G=new UL(17);this.j.D?this.A=new OL(17):this.A=new RL(17,.5,.1);a=ak("yt-player-bandwidth")||{};this.A.j(this.j.A,0<a.byterate?a.byterate:this.j.o);0<a.delay&&this.B.j(1,Math.min(+a.delay,2));0<a.tailDelay&&this.C.j(1,+a.tailDelay);this.o=xj()}function WL(a,b,c){b=Math.max(b,.05);a.A.j(b,c/b);XL(a)}
function YL(a,b,c){isNaN(c)||(a.D+=c);isNaN(b)||(a.F+=b);a.G.j(b,c/b);XL(a)}function ZL(a){a=a.B.A();a=isNaN(a)?.5:a;return a=Math.min(a,5)}function $L(a){return a.C.A()||0}function aM(a){var b=a.A.A(),b=0<b?b:1;a=a.G.A();a=0<a?a:1;return a>2*b?(b+a)/2:b}function bM(a){var b={};b.delay=ZL(a);b.tailDelay=$L(a);b.byterate=aM(a);return b}function cM(a){-1<a.o&&3E4<xj()-a.o&&(dC(bM(a)),a.o=xj())}function XL(a){var b=xj();a.K=b;500<b-a.H&&(QL(a.J,1/(1/aM(a)+$L(a))),a.H=b)}
function dM(a){return 4E3<=xj()-a.K};function eM(){this.o=13E4;this.A=.5;this.D=!1;this.B=.02;this.j=.2;this.C=.05};function fM(){H.call(this);this.j=[];this.D={};this.A={};this.B={};this.o=this.F=null;this.C=[];this.G=null}B(fM,H);fM.prototype.H=function(a){if(this.o){var b;var c=ka(a);b=this.D[c];if(!b)if(this.o){if(b=a(this.o)){a=this.D[c]=b;for(var d in this.F)a.subscribe(d,this.F[d]);I(this,b)}}else b=null;b&&b.Za(this.o)&&!tb(this.j,b)&&(b.create(),this.j.push(b),tb(this.C,b.oa)&&(b.F=this.G,b.Ei(!!b.F)))}};function gM(a){a.j=lb(a.j,function(a){try{a.destroy()}catch(c){vj(c)}return!1},a)}
function hM(a,b,c){iM(a);a.G=b;a.C=Bb(c);E(a.j,function(a){0<=jb(c,a.oa)&&(a.F=b,a.Ei(!!a.F))})}function iM(a){E(a.C,function(a){if(a=JI(this,a))a.F=null,a.Ei(!1)},a);a.G=null;a.C=[]}function jM(a,b){var c=JI(a,b);return!(!c||!c.loaded)}function kM(a,b){if(!b)return F(a.j,function(a){return a.oa});var c=JI(a,b);return c?c.Re():[]}function JI(a,b){return G(a.j,function(a){return a.oa==b})}fM.prototype.J=function(a,b){E(this.j,function(c){c.O(a,b)})};
function lM(a){var b={};E(a.j,function(a){qa(b,a.kh())});return b}fM.prototype.isAvailable=function(a){a=JI(this,a);return!(!a||!a.fa)};function mM(a,b,c){this.B=b;this.j=c;this.C=a;this.o=!0}mM.prototype.getMessage=function(){return this.B};mM.prototype.getErrorCode=function(){return this.j};mM.prototype.getType=function(){return this.C};mM.prototype.toString=function(){return"AdError "+this.getErrorCode()+": "+this.getMessage()+(null!=this.A?" Caused by: "+this.A:"")};function nM(a,b){sc.call(this,"adError");this.B=a;this.A=b?b:null}B(nM,sc);nM.prototype.getError=function(){return this.B};var oM="adMetadata click companionBackfill complete firstquartile impression loaded log midpoint mute pause resume skipshown skippableStateChanged skip start thirdquartile trackingUrlPinged videoClicked youTubeChannelMetadata".split(" "),pM="abandon acceptinvitation acceptinvitationlinear video_extend_auto_skipped click close collapse complete creativeview engagedview exitfullscreen expand video_extend_shown video_extend_clicked externalActivityEvent firstquartile fullscreen measurable_impression midpoint mute MUTE_AD pause progress replay resume rewind show_ad skipshown skip start stop thirdquartile unmute userClose video_card_endcap_action video_card_endcap_collapse video_card_endcap_dismiss video_card_endcap_impression videoShareClicked videoShareShown viewable_impression why_this_ad_url why_this_ad_got_it_url why_this_ad_settings_url why_this_ad_learn_more_url why_this_ad_unsubscribe_url why_this_ad_unsubscribe_continue_url why_this_ad_unsubscribe_cancel_url mute_interaction_url mute_url mute_undo_url".split(" "),
qM="acceptinvitation click close collapse creativeview expand progress".split(" "),rM=["viewable_impression","measurable_impression","externalActivityEvent"],sM={fully_viewable_audible_half_duration_impression:"fully_viewable_audible_half_duration_impression"};function tM(a,b,c){sc.call(this,a);this.B=b;this.A=null!=c?c:null}B(tM,sc);tM.prototype.getAd=function(){return this.B};
var uM={zF:"adCanPlay",CONTENT_PAUSE_REQUESTED:"contentPauseRequested",CONTENT_RESUME_REQUESTED:"contentResumeRequested",CLICK:"click",dJ:"videoClicked",Nm:"engagedview",wG:"expandedChanged",STARTED:"start",yh:"impression",Pm:"measurable_impression",an:"viewable_impression",Om:"fully_viewable_audible_half_duration_impression",AG:"externalActivityEvent",PAUSED:"pause",cI:"resume",FIRST_QUARTILE:"firstquartile",MIDPOINT:"midpoint",THIRD_QUARTILE:"thirdquartile",COMPLETE:"complete",qG:"durationChange",
PF:"autoClose",USER_CLOSE:"userClose",USER_RECALL:"userRecall",IH:"prefetched",LOADED:"loaded",ALL_ADS_COMPLETED:"allAdsCompleted",SKIPPED:"skip",Ts:"video_extend_auto_skipped",yu:"skipshown",Dt:"video_extend_shown",zG:"video_extend_clicked",aH:"linearChanged",rI:"skippableStateChanged",AF:"adMetadata",yF:"adBreakReady",eH:"log",VOLUME_CHANGED:"volumeChange",jJ:"mute",fG:"companionBackfill",tJ:"youTubeVideoMetadata",sJ:"youTubeChannelMetadata",XI:"urlNavigationRequested",LI:"trackingUrlPinged",$I:"video_card_endcap_action",
aJ:"video_card_endcap_collapse",bJ:"video_card_endcap_dismiss",cJ:"video_card_endcap_impression",pJ:"why_this_ad_url",oJ:"why_this_ad_got_it_url",pH:"MUTE_AD"};var vM={Qt:5E3,Rt:15E3,pu:"://secure-...imrworldwide.com/ ://cdn.imrworldwide.com/ ://aksecure.imrworldwide.com/ ://yts?.moatads.com www.google.com/pagead/sul www.youtube.com/pagead/sul".split(" "),qu:/\bocr\b/,ck:0,ud:{},xq:function(a,b){a&&(vM.kx(a)?vM.yq(a,b):vM.FB(a,b))},kx:function(a){return C(D(a))?!1:0<=a.indexOf("://pagead2.googlesyndication.com/pagead/gen_204?id=yt3p&sr=1&")||(new P(a)).hf().match(vM.qu)?!0:null!=G(vM.pu,function(b){return null!=a.match(b)})},yq:function(a,b){if(a){var c=
'javascript:"data:text/html,<body><img src=\\"'+a+'\\"></body>"';b?vM.Go(function(b){vM.tq(b?c:'javascript:"data:text/html,<body><object data=\\"'+a+'\\" width=1 height=1 style=\\"visibility:hidden;\\"></body>"')}):vM.tq(c)}},tq:function(a){var b=O("iframe",{src:a,style:"display:none"});a=Df(b).body;var c,d=me(function(){vd(c);Wf(b)},vM.Rt);c=td(b,["load","error"],function(){me(function(){ne(d);Wf(b)},vM.Qt)});a.appendChild(b)},Go:function(a,b){var c=vM.ud.imageLoadingEnabled;if(null!=c)a(c);else{var d=
!1,c=function(b,c){delete vM.ud[c];d||(d=!0,null!=vM.ud.imageLoadingEnabled||(vM.ud.imageLoadingEnabled=b),a(b))};b?b(c):vM.wx(c)}},wx:function(a){var b=new Image,c,d=""+vM.ck++;vM.ud[d]=b;b.onload=function(){clearTimeout(c);a(!0,d)};c=setTimeout(function(){a(!1,d)},300);b.src="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw=="},EB:function(a){if(a){var b=Rf("OBJECT");b.data=a;b.width=1;b.height=1;b.style.visibility="hidden";var c=""+vM.ck++;vM.ud[c]=b;b.onload=b.onerror=
function(){delete vM.ud[c]};document.body.appendChild(b)}},uq:function(a){if(a){var b=new Image,c=""+vM.ck++;vM.ud[c]=b;b.onload=b.onerror=function(){delete vM.ud[c]};b.src=a}},FB:function(a,b){b?vM.Go(function(b){b?vM.uq(a):vM.EB(a)}):vM.uq(a)},FJ:function(a){null!=a&&E(a,function(a){vM.xq(a)})}};function wM(a,b){return a.replace(/(\[|%5B)([a-zA-Z0-9_]+)(\]|%5D)/g,function(a,d,e){try{var f=mc(b,e),f=f.toString();if(!C(D(f)))return encodeURIComponent(f).replace(/%2C/g,",")}catch(h){}return a})};function xM(a){this.j=a}function yM(){var a=zM();return AM(a,"disableExperiments")}function AM(a,b){if(gc(a.j,b)){var c=a.j[b];if("boolean"==typeof c)return c}return!1}function BM(a){if(gc(a.j,"forceExperimentIds")){a=a.j.forceExperimentIds;var b=[],c=0;ea(a)&&E(a,function(a){ga(a)&&(b[c++]=a)});return b}return null};function CM(a){return(a=a.match(/^\w{2,3}([-_]|$)/))?a[0].replace(/[_-]/g,""):""};function DM(){return EM.F}function zM(){var a=EM;if(null==a.C){var b={},c=Ph(new P(Nf().location.href));if($h(c,"tcnfp"))try{b=ve(c.get("tcnfp"))}catch(d){}a.C=new xM(b)}return a.C}var EM=new function(){this.o="always";this.D=1;this.j=!1;this.B=!0;this.F=!1;this.C=null};var FM=["ADSENSE","ADSENSE/ADX"],GM=["DART","DART_DFA","DART_DFP"],HM=["FREEWHEEL","YT:FREEWHEEL"],IM=["GDFP"],JM=["VIRAL","ADSENSE-VIRAL"],KM={"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"},LM={lH:"video/mp4",nH:"video/mpeg",fH:"application/x-mpegURL",yH:"video/ogg",BI:"video/3gpp",lJ:"video/webm",kH:"audio/mpeg",mH:"audio/mp4"};function MM(a,b,c,d){this.o=a;this.j=De(c||0,0,1);this.A=null!=d?d:!0}MM.prototype.getId=function(){return this.o};function NM(a){this.A=a;this.o=new Yg;this.j=null}NM.prototype.getId=function(){return this.A};function OM(a){var b=Math.random(),c=0,d=a.o.Ia();E(d,function(a){c+=a.j},a);var e=1<c?c:1;a.j=null;for(var f=0,h=0;h<d.length;++h)if(f+=d[h].j,f/e>=b){a.j=d[h];break}};function PM(){this.o=null!=m.G_testRunner;this.j=new Yg;QM(this,"ActiveViewExternalLayer",41351040,.2);QM(this,"ActiveViewExternalLayer",41351041,.2);QM(this,"ActiveViewExternalLayer",41351042,.2);QM(this,"ActiveViewExternalLayer",41351043,.2);QM(this,"GvnExternalLayer",41351050,.05);QM(this,"GvnExternalLayer",41351051,.05);QM(this,"GvnExternalLayer",41351052,.05);QM(this,"GvnExternalLayer",41351053,.05);QM(this,"GvnExternalLayer",41351082,.01);QM(this,"GvnExternalLayer",41351083,.01);QM(this,"GvnExternalLayer",
41351058,.01);QM(this,"GvnExternalLayer",41351059,.01);QM(this,"GvnExternalLayer",41351062,.01);QM(this,"GvnExternalLayer",41351063,.01);QM(this,"GvnExternalLayer",41351018,.01);QM(this,"GvnExternalLayer",41351019,.01);QM(this,"GvnExternalLayer",41351066,.01);QM(this,"GvnExternalLayer",41351067,.01);QM(this,"GvnExternalLayer",41351093,.01);QM(this,"GvnExternalLayer",41351094,.01);QM(this,"GvnExternalLayer",41351088,.01);QM(this,"GvnExternalLayer",41351089,.01);QM(this,"GvnExternalLayer",136961001,
.01);QM(this,"GvnExternalLayer",136961002,.01);RM(this);var a;a=zM();a=BM(a);null!=a&&(this.o=!1,SM(this,a.map(String)))}var TM=null;function UM(){TM||(TM=new PM);return TM}function VM(){var a=UM();E(a.j.Ma(),function(a){ua(a,"FORCED_PUB_EXP_LAYER_")&&this.j.remove(a)},a)}function QM(a,b,c,d){C(D(b))||isNaN(c)||0>=c||(c=new MM(c,0,d),WM(a,b).o.set(c.getId(),c))}function RM(a){yM()||E(a.j.Ia(),function(a){OM(a)},a)}
function SM(a,b,c){E(b,function(a){var b=Number(a);a="FORCED_PUB_EXP_LAYER_"+a;if(!(isNaN(b)||0>=b||C(D(a)))){var f=null!=c?c:!0;WM(this,a).j=new MM(b,0,0,f)}},a)}function XM(a,b){return a.o?!1:ob(a.j.Ia(),function(a){return!!a.j&&a.j.getId()==b})}function YM(a){return UM().o?!1:ob(a,function(a){return XM(UM(),a)})}function ZM(a){if(a.o)return"";var b=[];E(a.j.Ia(),function(a){(a=a.j)&&a.A&&b.push(a.getId())});return b.sort().join(",")}
function WM(a,b){var c=a.j.get(b);null==c&&(c=new NM(b),a.j.set(b,c));return c}function $M(){return YM([9418778,9417893,9417894,9417895,9419817])};var aN=["*.googlesyndication.com"],bN=["*.youtu.be","*.youtube.com"],cN="ad.doubleclick.net bid.g.doubleclick.net corp.google.com ggpht.com google.co.uk google.com googleads.g.doubleclick.net googleads4.g.doubleclick.net googleadservices.com googlesyndication.com googleusercontent.com gstatic.com gvt1.com prod.google.com pubads.g.doubleclick.net s0.2mdn.net static.doubleclick.net static.doubleclick.net surveys.g.doubleclick.net youtube.com ytimg.com".split(" "),dN=["c.googlesyndication.com"],eN=["googleads.g.doubleclick.net",
"pubads.g.doubleclick.net"];function fN(a){return null!=a?gN(bN,a):!1}function gN(a,b){try{var c=Mh(new P(b)),c=c.replace(/^www./i,"");return ob(a,function(a){return hN(a,c)})}catch(d){return!1}}function hN(a,b){if(C(D(b)))return!1;a=a.toLowerCase();b=b.toLowerCase();return"*."==a.substr(0,2)?(a=a.substr(2),a.length>b.length?!1:b.substr(-a.length)==a&&(b.length==a.length||"."==b.charAt(b.length-a.length-1))):a==b}
function iN(a){if(jN(a,dN))return a;if("https:"==window.location.protocol&&(jN(a,cN)||DM()&&YM([9417690,9417707]))){var b=new P(a);if("https"==b.B)return a;Ah(b,"https");return b.toString()}return a}function jN(a,b){return(new RegExp("^https?://([a-z0-9-]{1,63}\\.)*("+b.join("|").replace(/\./g,"\\.")+")(:[0-9]+)?([/?#]|$)","i")).test(a)};function kN(a){window.open(iN(a),"_blank")}function lN(a,b,c){null!=a?(Qh(a,"label",b),null!=c&&Qh(a,"value",c.join(";")),a=a.toString()):a="";mN(a)}
function mN(a,b,c,d,e,f){null!=a&&null!=b&&(a=wM(a,b));try{if(null!=c)if(b=a,C(D(c)))a=b;else{var h=new P(b);$h(h.j,"label")?(Qh(h,"acvw",c),a=h.toString().replace(/%2C/g,",")):a=b}null!=e&&(a=nN(a,e));a:{c=a;var k=c.length-11-2;if(!(-1==c.indexOf("URL_SIGNALS")||2048<=k||!f&&!window.Goog_AdSense_Lidar_getUrlSignalsArray))for(f=f||window.Goog_AdSense_Lidar_getUrlSignalsArray(),k={},e=0;e<f.length;++e){k.URL_SIGNALS=f[e];var l=wM(c,k);if(2048>l.length){a=l;break a}}a=c}}catch(r){}try{a=iN(a);var n=
!DM()||XM(UM(),41351089);null!=d&&d?vM.yq(a,n):vM.xq(a,n)}catch(r){}}function oN(a,b){null!=a&&E(a,function(a){mN(a,b)})}function nN(a,b,c){if(C(D(b)))return a;var d=new P(a),e=d.o;return null!=e&&xa(e,".g.doubleclick.net")&&(c||$h(d.j,"label"))?(Qh(d,"ged",b),d.toString()):a};function pN(a,b){this.message=a;this.errorCode=b}pN.prototype.getErrorCode=function(){return this.errorCode};pN.prototype.getMessage=function(){return this.message};
var qN=new pN("Unable to request ads from server. Cause: {0}.",1005),rN=new pN("Unable to request ads from server due to network error.",1012),sN=new pN("Cannot parse the {0} value for the adslist response: {1}.",900),tN=new pN("Invalid usage of the API. Cause: {0}",900),uN=new pN("Unable to display one or more required companions.",602),vN=new pN("There was a problem requesting ads from the server.",1005),wN=new pN("Ad tag URI {0} is invalid. It must be properly encoded before being passed.",1013),
xN=new pN("The provided ad type: {0} is not supported.",1005),yN=new pN("The provided {0} information: {1} is invalid.",1101),zN=new pN("The provided skip offset was invalid.",1105),AN=new pN("The extension contained is neither skippable nor nonskippable.",1105),BN=new pN("The response does not contain any valid ads.",1009),CN=new pN("The overlay ad content could not be displayed since creative dimensions do not align with display area.",501),DN=new pN("The ad playlist response was malformed or empty.",
1010),EN=new pN("The ad response was not understood and cannot be parsed.",1010),FN=new pN("An unexpected error occurred and the cause is not known. Refer to the inner error for more info.",900),GN=new pN("The ad response contains unexpected element. Cause {0}.",1010),HN=new pN("No assets were found in the VAST ad response.",200),IN=new pN("Duplicate node in <{0}>: {1}",101),JN=new pN("The VAST response document is empty.",1009),KN=new pN("Linear assets were found in the VAST ad response, but none of them matched the video player's capabilities.",
403),LN=new pN("Ad request reached a timeout.",301),MN=new pN("VAST response was malformed and could not be parsed.",100),NN=new pN("VAST media file loading reached a timeout of {0} seconds.",402),ON=new pN("Ad request could not be completed due to a network error.",301),PN=new pN("Non linear assets were found in the VAST ad response, but none of them matched the video player's capabilities.",503),QN=new pN("The maximum number of VAST wrappers ({0}) has been reached.",302),RN=new pN("VAST media file duration differs from the VAST response duration by {0} seconds.",
202),SN=new pN("Video player received an ad with unexpected or incompatible linearity",201),TN=new pN("Unknown node in <{0}>: {1}",101),UN=new pN("Invalid VAST resource type: {0}",101),VN=new pN("Invalid VAST version",102),WN=new pN("No additional VAST wrappers allowed.",300),XN=new pN("No Ads VAST response after one or more Wrappers",303),YN=new pN("There was an error playing the video ad.",400),ZN=new pN("VMAP unsupported node in <{0}>: {1}",1010),$N=new pN("An unexpected error occurred within the VPAID creative. Refer to the inner error for more info.",
901);function aO(a,b,c){return bO("adLoadError",a,b||null,Eb(arguments,2))}function cO(a,b,c){return bO("adPlayError",a,b||null,Eb(arguments,2))}function dO(a,b,c,d,e){var f=a.apply(null,Ab([c,d],Eb(arguments,3)));b.Y(new tM("log",null,f))}function bO(a,b,c,d){if(c instanceof mM)return c;var e=b.errorCode;b=b.message;if(0<d.length)for(var f=0;f<d.length;f++)b=b.replace(new RegExp("\\{"+f+"\\}","ig"),d[f]);a=new mM(a,b,e);a.A=c;return a}
function eO(a,b,c,d){var e=cO.apply(null,Ab([b,c],Eb(arguments,3)));a.Y(new nM(e))};function fO(){return!gO()&&(Ac("iPod")||Ac("iPhone")||Ac("Android")||Ac("IEMobile"))}function gO(){return Ac("iPad")||Ac("Android")&&!Ac("Mobile")||Ac("Silk")};var hO="abort canplay canplaythrough durationchange emptied loadstart loadeddata loadedmetadata progress ratechange seeked seeking stalled suspend waiting".split(" ");var iO={},kO="",lO=/OS (\S+) like/,mO=/Android ([\d\.]+)/;function nO(){return fO()||gO()}function oO(){return Nc&&!Oc||Ra(wc,"iPod")}function pO(){return oO()||Oc}function qO(a,b){if(null==iO[b]){var c;C(kO)&&(c=a.exec(wc))&&(kO=c[1]);(c=kO)?(c=c.replace(/_/g,"."),iO[b]=0<=Xa(c,b)):iO[b]=!1}return iO[b]}function rO(){var a=wc;return a?Ra(a,"AppleTV")||Ra(a,"GoogleTV")||Ra(a,"HbbTV")||Ra(a,"NetCast.TV")||Ra(a,"Opera TV")||Ra(a,"POV_TV")||Ra(a,"SMART-TV")||Ra(a,"SmartTV")||Mc&&Ra(a,"AFT"):!1}
function sO(){var a=wc;return a?Ra(a,"Nintendo WiiU"):!1}function tO(){return Ra(wc,"PlayStation")}function uO(){return oO()||Mc&&(!Mc||!qO(mO,4))||!DM()&&(Ra(wc,"CrKey")||tO()||Ra(wc,"Roku")||rO()||Ra(wc,"Xbox"))?!1:!0};function vO(){this.j=.01>Math.random();this.o=Math.floor(4503599627370496*Math.random())}ba(vO);function wO(a,b,c,d){if(a.j||d){c=c||{};c.lid=b;b=ZM(UM());C(D(b))||(c.e=b);c=xO(a,c);var e=new P("http://pagead2.googlesyndication.com/pagead/gen_204");Wb(c,function(a,b){Qh(e,b,null!=a?"boolean"==typeof a?a?"t":"f":""+a:"")},a);a=yO();Ah(e,a.B);mN(e.toString())}}function xO(a,b){b.id="";var c=yO();b.c=a.o;b.domain=c.o;return b}
function yO(){var a=Nf(),b=document;return new P(a.parent==a?a.location.href:b.referrer)};function zO(){}g=zO.prototype;g.Tu=!1;g.jn=!1;g.nn=!0;g.baseYouTubeUrl=null;g.bitrate=-1;g.contentId=null;g.uv=!1;g.Ag=null;g.surveyCreativeData=null;g.bC=!0;g.Wl=!1;g.useShareButton=!1;g.Pq=!1;g.useStyledNonLinearAds=!1;g.useVideoAdUi=!0;g.cC=!0;g.Pj=!1;g.vv=!1;g.youTubeAdNamespace=0;g.showContentThumbnail=!0;g.Vl=!1;g.Ef=null;g.loadVideoTimeout=15E3;g.pn=!0;g.$p=0;g.xl=-1;window.console&&"function"===typeof window.console.log&&x(window.console.log,window.console);function AO(a){return window.performance&&window.performance.timing&&window.performance.timing.domLoading&&0<window.performance.timing[a]?(a=A()-window.performance.timing[a],Math.round(a/1E3)):null}function BO(){this.domLoading=AO("domLoading");this.domComplete=AO("domComplete");this.unloadEventStart=AO("unloadEventStart")}BO.prototype.toString=function(){function a(a){a=mc(c,a);null!=a?b.push(""+a):b.push("u")}var b=[],c=this;a("domLoading");a("domComplete");a("unloadEventStart");return b.join(".")};
function CO(a){var b={},c=new BO,d=null;null!=c.domLoading&&(d=c.domLoading);0>d&&window.performance&&window.performance.timing&&(b.di="now."+A()+".loadstart."+window.performance.timing.domLoading+".tagload."+a);null==d&&null!=a&&(d=a);b.pt=c;b.td=d;return b};function DO(a){for(var b=[],c=a=Nf(a.ownerDocument);c!=a.top;c=c.parent)if(c.frameElement)b.push(c.frameElement);else break;return b};var EO=null;function FO(){this.j={};this.o=0}function GO(a,b){this.C=a;this.A=!0;this.j=b}GO.prototype.getValue=function(){return this.j};GO.prototype.$b=function(){return this.A?this.o():""};GO.prototype.o=function(){return String(this.j)};function HO(a,b,c){GO.call(this,a,c);this.B=b;this.j=!!c}B(HO,GO);HO.prototype.o=function(){return this.j?"1":"0"};function IO(a){GO.call(this,"sv",a);this.j=null==a?"1":"2"}B(IO,GO);IO.prototype.o=function(){return String(this.j)};
function JO(a,b){GO.call(this,a,b)}B(JO,GO);JO.prototype.o=function(){return this.j?Math.round(this.j.top)+"."+Math.round(this.j.left)+"."+(Math.round(this.j.top)+Math.round(this.j.height))+"."+(Math.round(this.j.left)+Math.round(this.j.width)):""};function KO(a){if(a.match(/^-?[0-9]+\.-?[0-9]+\.-?[0-9]+\.-?[0-9]+$/)){a=a.split(".");var b=Number(a[0]),c=Number(a[1]);return new JO("",new Ke(c,b,Number(a[3])-c,Number(a[2])-b))}return new JO("",new Ke(0,0,0,0))}
function LO(){EO||(EO=new FO);return EO}FO.prototype.setItem=function(a){this.j[a.C]=a};FO.prototype.getItem=function(a){return mc(this.j,a,null)};FO.prototype.$b=function(a){var b=[];a||(a=0);for(var c in this.j){var d=this.j[c];d instanceof HO&&d.getValue()&&(a|=d.B);(d=this.j[c].$b())&&b.push(c+d)}b.push("eb"+String(a));return b.join("_")};function MO(a){var b=new Ke(-Number.MAX_VALUE/2,-Number.MAX_VALUE/2,Number.MAX_VALUE,Number.MAX_VALUE),c=new Ke(0,0,0,0);if(!a||0==a.length)return c;for(var d=0;d<a.length;d++){var e;a:{e=b;var f=a[d],h=Math.max(e.left,f.left),k=Math.min(e.left+e.width,f.left+f.width);if(h<=k){var l=Math.max(e.top,f.top),f=Math.min(e.top+e.height,f.top+f.height);if(l<=f){e.left=h;e.top=l;e.width=k-h;e.height=f-l;e=!0;break a}}e=!1}if(!e)return c}return b}
function NO(a,b){var c=a.getBoundingClientRect(),d=Bg(a,b);return new Ke(Math.round(d.x),Math.round(d.y),Math.round(c.right-c.left),Math.round(c.bottom-c.top))}
function OO(a,b,c){if(b&&c){var d;a:{d=Math.max(b.left,c.left);var e=Math.min(b.left+b.width,c.left+c.width);if(d<=e){var f=Math.max(b.top,c.top),h=Math.min(b.top+b.height,c.top+c.height);if(f<=h){d=new Ke(d,f,e-d,h-f);break a}}d=null}e=d?d.height*d.width:0;f=d?b.height*b.width:0;d=d&&f?Math.round(e/f*100):0;a.setItem(new GO("vp",d));d&&0<d?(e=Le(b),f=Le(c),e=e.top>=f.top&&e.top<f.bottom):e=!1;a.setItem(new HO("ct",512,e));d&&0<d?(e=Le(b),f=Le(c),e=e.bottom<=f.bottom&&e.bottom>f.top):e=!1;a.setItem(new HO("vb",
1024,e));d&&0<d?(e=Le(b),f=Le(c),e=e.left>=f.left&&e.left<f.right):e=!1;a.setItem(new HO("vl",2048,e));d&&0<d?(b=Le(b),c=Le(c),c=b.right<=c.right&&b.right>c.left):c=!1;a.setItem(new HO("vr",4096,c))}};function PO(a){this.j=rc.apply(null,arguments);return this}g=PO.prototype;g.remove=function(a){lc(this.j,a)};g.set=function(a,b){this.j[a]=b};function QO(a,b){var c=mc(a.j,"eb",0);a.j.eb=c|b}g.get=function(a){return mc(this.j,a,null)};g.extend=function(a){qc(this.j,a)};g.$b=function(){var a=[],b;for(b in this.j)a.push(b+this.j[b]);return a.join("_")};var RO=null,SO=null;function TO(a,b){var c=0;fc(Nf(),"ima","video","client","tagged")&&(c=1);var d;d=null;a&&(d=a());if(d){var e=d;d=LO();d.j={};var f=new HO("ef",32,!0);f.A=!1;d.setItem(f);f=Nf().document;f=f.webkitVisibilityState||f.mozVisibilityState||f.visibilityState||f.msVisibilityState||"";d.setItem(new HO("tv",64,"hidden"!=f.toLowerCase().substring(f.length-6)?!0:!1));var h;try{var k;var l=Nf().top;try{k=!!l.location.href||""===l.location.href}catch(u){k=!1}if(k){var n=DO(e);h=n&&0!=n.length?"1":"0"}else h="2"}catch(u){h=
"2"}d.setItem(new GO("is",h));n=k=Nf().top;"2"==h&&(n=Nf());l=NO(e,n);d.setItem(new JO("er",l));var r;try{r=n.document&&!n.document.body?null:Jf(n||window)}catch(u){r=null}d.setItem(new IO(r));r?(n=mg(Bf(n.document)),d.setItem(new HO("sp",16384,!!n)),r=n?new Ke(n.x,n.y,r.width,r.height):null):r=null;d.setItem(new JO("vi",r));if(r&&"1"==h){h=DO(e);e=[];for(n=0;n<h.length;n++)(f=NO(h[n],k))&&e.push(f);e.push(r);r=MO(e)}OO(d,l,r);d.o&&(h=Math.round(A()/1E3)-d.o,d.setItem(new GO("ts",h)));d.o=Math.round(A()/
1E3)}else d=LO(),d.j={},d.o=Math.round(A()/1E3),d.setItem(new HO("ef",32,!1));this.A=d;this.j=new PO("ta",c,"ve",3);c&&QO(this.j,1);fc(Nf(),"ima","video","client","crossdomainTag")&&QO(this.j,4);fc(Nf(),"ima","video","client","sdkTag")&&QO(this.j,8);fc(Nf(),"ima","video","client","jsTag")&&QO(this.j,2);b&&mc(b,"fullscreen",!1)&&QO(this.j,16);this.o=d=null;if(c&&(c=fc(Nf(),"ima","video","client"),c.getEData)){this.o=c.getEData();if(c=fc(Nf(),"ima","video","client","getLastSnapshotFromTop"))if(h=c())this.o.extendWithDataFromTopIframe(h.buckets,
h.tt,h.pd),c=this.A,d=h.er,h=h.vi,d&&h&&(d=KO(d).getValue(),h=KO(h).getValue(),e=null,c.getItem("er")&&(e=c.getItem("er").getValue(),e.top+=d.top,e.left+=d.left,c.setItem(new JO("er",e))),c.getItem("vi")&&(r=c.getItem("vi").getValue(),r.top+=d.top,r.left+=d.left,k=[],k.push(r),k.push(d),k.push(h),d=MO(k),OO(c,e,d),c.setItem(new JO("vi",h))));d=this.o.getTimeSinceTagLoadSeconds()}this.j.extend(CO(d))}
TO.prototype.$b=function(){var a=[],b=Number(this.j.get("eb"));this.j.remove("eb");var c=this.j.$b();c&&a.push(c);this.o&&(c=this.o.serialize())&&a.push(c);(c=this.A.$b(b))&&a.push(c);this.j.set("eb",b);return a.join("_")};function UO(a,b){try{return(new TO(a,b)).$b()}catch(c){return"tle;"+Oa(c.name,12)+";"+Oa(c.message,40)}};var VO={START:"start",FIRST_QUARTILE:"firstquartile",MIDPOINT:"midpoint",THIRD_QUARTILE:"thirdquartile",COMPLETE:"complete",METRIC:"metric",PAUSE:"pause",RESUME:"resume",SKIPPED:"skip",an:"viewable_impression",MUTE:"mute",UNMUTE:"unmute",FULLSCREEN:"fullscreen",EXIT_FULLSCREEN:"exitfullscreen",Om:"fully_viewable_audible_half_duration_impression",Pm:"measurable_impression",Ks:"abandon",Nm:"engagedview",yh:"impression",CREATIVE_VIEW:"creativeview"},WO=["start","firstquartile","midpoint","thirdquartile",
"resume"],XO=["abandon"],YO={UNKNOWN:-1,START:0,FIRST_QUARTILE:1,MIDPOINT:2,THIRD_QUARTILE:3,COMPLETE:4,METRIC:5,PAUSE:6,RESUME:7,SKIPPED:8,an:9,MUTE:10,UNMUTE:11,FULLSCREEN:12,EXIT_FULLSCREEN:13,Om:14,Pm:15,Ks:16,Nm:17,yh:18,CREATIVE_VIEW:19},ZO=[3,5,8,13];function $O(a,b,c,d){a.addEventListener?a.addEventListener(b,c,d||!1):a.attachEvent&&a.attachEvent("on"+b,c)}function aP(a,b,c){a.removeEventListener?a.removeEventListener(b,c,!1):a.detachEvent&&a.detachEvent("on"+b,c)};function bP(a){try{return!!a&&null!=a.location.href&&vc(a,"foo")}catch(b){return!1}}function cP(a,b){if(!(1E-4>Math.random())){var c=Math.random();if(c<b){var d=window;try{var e=new Uint32Array(1);d.crypto.getRandomValues(e);c=e[0]/65536/65536}catch(f){c=Math.random()}return a[Math.floor(c*a.length)]}}return null}function dP(a,b){for(var c in a)Object.prototype.hasOwnProperty.call(a,c)&&b.call(void 0,a[c],c,a)}var eP=/https?:\/\/[^\/]+/;
function fP(){var a=gP;if(!a)return"";var b=/.*[&#?]google_debug(=[^&]*)?(&.*)?$/;try{var c=b.exec(decodeURIComponent(a));if(c)return c[1]&&1<c[1].length?c[1].substring(1):"true"}catch(d){}return""};function hP(a){var b="";dP(a,function(a,d){if(0===a||a)b+="&"+d+"="+encodeURIComponent(String(a))});return b}function iP(a,b,c){a.google_image_requests||(a.google_image_requests=[]);var d=a.document.createElement("img");if(c){var e=function(a){c(a);aP(d,"load",e);aP(d,"error",e)};$O(d,"load",e);$O(d,"error",e)}d.src=b;a.google_image_requests.push(d)};function jP(a,b,c){this.C=a;this.B=b;this.o=c;this.A=this.j}function kP(a,b,c){this.message=a;this.fileName=b||"";this.lineNumber=c||-1}function lP(a,b,c,d){var e;try{e=c()}catch(k){var f=a.o;try{var h=mP(k),f=(d||a.A).call(a,b,h,void 0,void 0)}catch(l){a.j("pAR",l)}if(!f)throw k;}finally{}return e}function nP(a,b){var c=oP;return function(){var d=arguments;return lP(c,a,function(){return b.apply(void 0,d)})}}
jP.prototype.j=function(a,b,c,d,e){var f={};f.context=a;b instanceof kP||(b=mP(b));f.msg=b.message.substring(0,512);b.fileName&&(f.file=b.fileName);0<b.lineNumber&&(f.line=b.lineNumber.toString());a=m.document;f.url=a.URL.substring(0,512);f.ref=a.referrer.substring(0,512);if(d)try{d(f)}catch(k){}d=this.C;try{if(Math.random()<(c||d.o)){var h=d.j+(e||this.B)+hP(f),h=h.substring(0,2E3);iP(m,h)}}catch(k){}return this.o};
function mP(a){var b=a.toString();a.name&&-1==b.indexOf(a.name)&&(b+=": "+a.name);a.message&&-1==b.indexOf(a.message)&&(b+=": "+a.message);if(a.stack){var c=a.stack,d=b;try{-1==c.indexOf(d)&&(c=d+"\n"+c);for(var e;c!=e;)e=c,c=c.replace(/((https?:\/..*\/)[^\/:]*:\d+(?:.|\n)*)\2/,"$1");b=c.replace(/\n */g,"\n")}catch(f){b=d}}return new kP(b,a.fileName,a.lineNumber)};var pP=document,X=window;function qP(a){return"function"==typeof encodeURIComponent?encodeURIComponent(a):escape(a)};var oP;oP=new jP(new function(){this.j="http"+("http:"==X.location.protocol?"":"s")+"://pagead2.googlesyndication.com/pagead/gen_204?id=";this.o=.01},"jserror",!0);var rP=oP.j;function sP(a,b){return nP(a,b)}function tP(a,b){return nP(a,b)};function uP(){for(var a=X,b=a,c=0;a&&a!=a.parent;)a=a.parent,c++,bP(a)&&(b=a);return b};var vP={YI:{Ua:"453848100",Ra:"453848101"},tH:{Ua:"828064124",Ra:"828064125"},sH:{Ua:"828064127",Ra:"828064128"},uH:{Ua:"828064170",Ra:"828064171"},nG:{Ua:"453848130",Ra:"453848131",RI:"453848132",SI:"453848133"},CH:{Ua:"24819308",Ra:"24819309",gG:"24819320"},mu:{Ua:"24819330",Ra:"24819331"},NH:{Ua:"828064162",Ra:"828064163"},MH:{Ua:"828064164",Ra:"828064165",xG:"828064166"},gH:{Ua:"86724438",Ra:"86724439"},iH:{Ua:"828064190",Ra:"828064191"},YH:{Ua:"10573505",Ra:"10573506"},ZH:{Ua:"10573595",Ra:"10573596"},
lI:{Ua:"10573511",Ra:"10573512"},mI:{Ua:"10573581",Ra:"10573582"},$H:{Ua:"10573531",Ra:"10573532"},bI:{Ua:"10573561",Ra:"10573562"},aI:{Ua:"10573551",Ra:"10573552"},WH:{Ua:"312815002",Ra:"312815003"},XH:{Ua:"312815102",Ra:"312815103"},sG:{Ua:"26835103",Ra:"26835104"},QG:{Ua:"35923720",Ra:"35923721"},RG:{Ua:"35923760",Ra:"35923761"},hJ:{Ua:"27415001",Ra:"27415002"},RH:{Ua:"20040000",Ra:"20040001"},oG:{Ua:"20040016",Ra:"20040017"},EG:{Ua:"828064202",Ra:"828064203"}};var wP={Gu:"ud=1",Fu:"ts=0",fI:"sc=1",DG:"gz=1",wH:"op=1"},xP={Ut:"la="};var yP=!1,zP="";function AP(a){a=a.match(/[\d]+/g);if(!a)return"";a.length=3;return a.join(".")}
(function(){if(navigator.plugins&&navigator.plugins.length){var a=navigator.plugins["Shockwave Flash"];if(a&&(yP=!0,a.description)){zP=AP(a.description);return}if(navigator.plugins["Shockwave Flash 2.0"]){yP=!0;zP="2.0.0.11";return}}if(navigator.mimeTypes&&navigator.mimeTypes.length&&(yP=(a=navigator.mimeTypes["application/x-shockwave-flash"])&&a.enabledPlugin)){zP=AP(a.enabledPlugin.description);return}try{var b=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7");yP=!0;zP=AP(b.GetVariable("$version"));
return}catch(c){}try{b=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6");yP=!0;zP="6.0.21";return}catch(c){}try{b=new ActiveXObject("ShockwaveFlash.ShockwaveFlash"),yP=!0,zP=AP(b.GetVariable("$version"))}catch(c){}})();var BP=yP,CP=zP;function DP(a){return{visible:1,hidden:2,prerender:3,preview:4}[a.webkitVisibilityState||a.mozVisibilityState||a.visibilityState||""]||0}function EP(){var a;pP.mozVisibilityState?a="mozvisibilitychange":pP.webkitVisibilityState?a="webkitvisibilitychange":pP.visibilityState&&(a="visibilitychange");return a};if(pP&&pP.URL){var gP=pP.URL,FP=!(gP&&0<fP().length);oP.o=FP}function GP(a,b,c,d){c=nP(d||"osd_or_lidar::"+b,c);$O(a,b,c,void 0);return c};var HP={},IP=null;HP.le=0;HP.nt=2;HP.Fr=3;function JP(a,b){var c=a||X;c.top!=c&&(c=c.top);try{return c.document&&!c.document.body?new N(-1,-1):b?(new N(c.innerWidth,c.innerHeight)).round():Jf(c||window).round()}catch(d){return new N(-12245933,-12245933)}}var KP=0;
function LP(){var a=MP().D,b=0<=NP?OP()-NP:-1,c=PP?OP()-QP:-1,d=0<=RP?OP()-RP:-1,e;if(79463068==a)return 500;if(947190538==a)a=[4E3],e=[250,1E3];else if(947190541==a)a=[4E3],e=[100,1E3];else{if(947190542==a)return 100;if(79463069==a)return 200;a=[2E3,4E3];e=[250,500,1E3]}var f=b;-1!=c&&c<b&&(f=c);for(var h,b=0;b<a.length;++b)if(f<a[b]){h=e[b];break}void 0===h&&(h=e[a.length]);return-1!=d&&1500<d&&4E3>d?500:h}var SP=(new Date).getTime(),NP=-1,PP=!1,QP=-1,RP=-1;
function OP(){return(new Date).getTime()-SP}function TP(a){var b=[];Wb(a,function(a,d){d in Object.prototype||"undefined"==typeof a||(ea(a)&&(a=a.join(",")),b.push([d,"=",a].join("")))});return b.join("&")}function UP(){var a=O("div");a.style.cssText="position:relative;left:0px;top:0px;width:0;height:0;";return a}
function VP(a){for(var b;a&&a!=a.parentElement;){if(a.style&&"none"==rg(a,"display"))return!0;b=a;a=a.parentElement}if(b&&(a=Df(b))){var c,d;try{if(c=Nf(a))d=c.frameElement}catch(e){return!1}if(c&&d&&c!=c.parent)return VP(d)}return!1}HP.Po=5;HP.me=1;HP.om=4;function WP(a){HP.e=-1;HP.i=6;HP.n=7;HP.t=8;if(!IP){var b=[];E(ec(HP),function(a){b[HP[a]+1]=a});var c=b.join("");IP=(c=a&&a[c])&&x(c,a)}return IP}function XP(){return Lc&&Ni&&av("6.0.1")&&0<=Xa(CP,"10.1")?!0:!1};function YP(a,b){this.B=null;this.F=a;this.G=b||1;this.j="u"}function ZP(a,b){var c=b.right-b.left,d=b.bottom-b.top,e=Math.floor(c/2),f=Math.floor(d/2);switch(a.G){case 4:return a.F?(e=Math.floor(.3*c),f=Math.floor(.3*d),[new Ge(e,f),new Ge(c-e,f),new Ge(e,d-f),new Ge(c-e,d-f)]):[new Ge(e,0),new Ge(0,f),new Ge(e,d-1),new Ge(c-1,f)];case 3:return[new Ge(c-1,0),new Ge(e,f),new Ge(0,d-1)];default:return[new Ge(e,f)]}}
function $P(a,b){var c;try{c=b||a.B.getBoundingClientRect()}catch(e){c=new Ie(0,0,0,0)}var d=ZP(a,c);E(d,function(a){a.x+=c.left;a.y+=c.top});return d}YP.prototype.getStatus=function(){return this.j};function aQ(a,b,c,d){YP.call(this,a,d);this.J=b||3E3;this.K=c||3E3;this.o=[];this.H=!1;this.A=-1;this.C=this.D=0}B(aQ,YP);function bQ(a,b,c){this.snapshot=a;this.o=b;this.j=c}
function cQ(a,b,c){if(!(b&&b.getBoundingClientRect&&0<=Xa(CP,"11")&&c)||Fc&&9>Rc||0<a.o.length)return!1;try{var d=b.getBoundingClientRect()}catch(n){return!1}var e="DIV"==b.tagName||"INS"==b.tagName,f=Df(b),h=[];if(e){var k=UP(),d=ZP(a,d);E(d,function(a,b){var d=new dQ("e",f,c,String(b));this.o.push(d);h.push(x(d.Do,d,k,a))},a);Vf(b,k,0)}else d=$P(a,d),E(d,function(a,d){var e=new dQ("e",f,c,String(d));this.o.push(e);h.push(x(e.Co,e,b,a))},a);var l=!0;E(h,function(a){l=l&&a()});l?(a.j="l",a.B=b,a.H=
!e):(E(a.o,function(a){a.remove()}),a.o=[]);return l}function eQ(a){if(a.B&&a.H){var b=$P(a);E(b,function(a,b){this.o[b]&&this.o[b].setPosition(a)},a)}}function fQ(a){E(a.o,function(a){a.remove()});a.o=[];a.j="d"}function gQ(a){var b=A(),c=a.D?b-a.D:0,d=-1,e=F(a.o,function(a){return hQ(a,b)});4==a.o.length?d=a.F?iQ(e):jQ(e):3==a.o.length?d=kQ(e):1==a.o.length&&(d=[-1,0,1,2,3,5][hQ(a.o[0],b)+1]);a.C=d==a.A?a.C+c:0;c=new bQ(d,a.A,c);a.A=d;a.D=b;lQ(a,d);eQ(a);return c}
function mQ(a){var b=Rb($b(nQ));E(a,function(a){0<=a&&++b[a]});return b}function jQ(a){a=mQ(a);return 4==a[4]?6:3<=a[4]?5:0<a[4]?4:4==a[2]?2:4==a[1]?1:4==a[0]?0:3}function kQ(a){var b=mQ(a);return 4==a[0]&&4==a[2]?6:4==a[1]?5:0<b[4]?4:3==b[2]?2:3==b[1]?1:3==b[0]?0:3}function iQ(a){a=mQ(a);return 3<=a[4]?5:2==a[4]?8:0<a[4]?7:4==a[2]?2:4==a[1]?1:4==a[0]?0:3}
function lQ(a,b){if(0==b&&oQ(a))a.j="n";else switch(b){case -1:a.j="d";break;case 0:a.j="l";break;case 1:a.j="f";break;case 2:a.j="c";break;case 3:case 4:case 5:case 6:a.j="r"}}function oQ(a){return"n"==a.j?!0:"l"==a.j&&a.C>=a.K}
function dQ(a,b,c,d){this.module=null;this.A=a;this.D="e"==a?String(c)+"~"+String(d):"";this.j=[];this.o=-1;this.C=0;this.B=Rb($b(pQ));this.F=Rb($b(nQ));"e"==this.A&&(qQ[this.D]=x(this.qw,this));Fc?(a=b.createElement("div"),a.innerHTML='<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" style="opacity:0;-ms-filter:\'progid:DXImageTransform.Microsoft.Alpha(opacity=0)\';filter:alpha(opacity=0)"><param name="movie" value="'+rQ(this,!0)+'"></param><param name="allowscriptaccess" value="always"></param><param name="wmode" value="transparent"></param></object>',
a=a.firstChild,a.id=String(Math.random())):a=sQ(this,b);a.width=1;a.height=1;a.style.zIndex=-999999;this.module=a}var nQ={TI:-1,LOADING:0,Jt:1,ft:2,Tt:3,VISIBLE:4},pQ={LOADING:0,Jt:1,ft:2,HI:3,xH:4,NI:5,OI:6,MI:7,zH:8,GI:9},qQ={};
function sQ(a,b){function c(a,c,d){var e=b.createElement("param");e.name=c;e.value=d;a.appendChild(e)}var d=rQ(a),e=b.createElement("object");e.type="application/x-shockwave-flash";e.data=d;c(e,"movie",d);c(e,"allowscriptaccess","always");c(e,"wmode","opaque");e.style.visibility="s"==a.A?"":"hidden";e.style.opacity=0;return e}
function rQ(a,b){var c=th("//pagead2.googlesyndication.com/osd/hbe.swf","id",a.D);"s"==a.A&&(c="//pagead2.googlesyndication.com/osd/hbts.swf");b&&(c=th(c,"delay","1"));return c}g=dQ.prototype;g.Do=function(a,b){if(!this.module)return!1;this.module.style.position="absolute";this.setPosition(b);var c=!0;try{a.appendChild(this.module)}catch(d){c=!1}return c};
g.Co=function(a,b){if(!this.module||!a.parentNode)return!1;this.module.style.position="fixed";this.setPosition(b);var c=!0;try{a.parentNode&&a.parentNode.insertBefore(this.module,a.nextSibling)}catch(d){c=!1}return c};g.setPosition=function(a){this.module&&!He(a,wg(this.module))&&ug(this.module,a)};g.remove=function(){if(this.module)try{Wf(this.module)}catch(a){}this.module=null};g.qw=function(a){this.o=a?3:4};
function hQ(a,b){if("e"==a.A){var c=null;try{c=a.module.it()}catch(f){}null===c?(c=0,0<a.o&&(c=2)):c=c?3:4;++a.F[c+1];a.o=c}else{var d=Number(b),e=tQ(a);uQ(a,e,d);c=a.j[a.j.length-1];if(null===e){if(e=d=0,0<a.o||ga(c.Yi))e=d=2}else null===c.Yi||c.Pl>=d?(d=10<=e?4:0,e=0):e>c.Yi?(c=(e-c.Yi)/(d-c.Pl)*1E3,d=10<=c?4:3,c=0==c?1:1>c?3:4>c?4:23>c?6:26>c?8:9,6==a.C&&6==c&&(c=7),e=c):e=d=1;6==a.C&&(--a.B[6],4==e||8==e?++a.B[5]:++a.B[7]);++a.B[e];a.o=d;a.C=e}return a.o}
function tQ(a){var b=null;try{b=a.module.fc()}catch(c){}return b}function uQ(a,b,c){var d=c-1E3,e=a.j.length;E(a.j,function(a,b){a.Pl<=d&&(e=Math.min(e,b+1))});var f=a.j.length-e;0<f&&a.j.splice(e,f);a.j.unshift({Yi:b,Pl:c})}q("gteh",sP("osd_or_lidar::gteh_ex",function(a,b){var c=qQ[a];ha(c)&&c(b)}),void 0);function vQ(){this.D=!0;this.j=new dQ("s",pP);this.C=!1;this.o=this.A=this.F=this.L=this.K=this.M=this.B=this.J=null;this.S=0;this.H=this.G=this.U=null}
var wQ={Tt:0,VISIBLE:1},xQ=new Ge(-99999,0);function yQ(a,b){b!==a.o&&(a.o=b,a.M(b),a.S++)}function zQ(a){var b=tQ(a.j);null===a.U&&null!==b&&null!==a.G&&(a.U=A()-a.G);return b}function AQ(a){var b=a.J.getBoundingClientRect(),c;c=null!=a.L?a.L.clone():new Ge(Math.floor((b.right-b.left)/2),Math.floor((b.bottom-b.top)/2));a.C&&(c.x+=b.left,c.y+=b.top);return c}function BQ(a){a.C&&(a.K=AQ(a));a.j.setPosition(a.K);a.F=X.setTimeout(tP("osd_or_lidar::sfm_tpto",x(a.X,a)),125)}
vQ.prototype.X=function(){var a=zQ(this);if(null===a)BQ(this);else if(null===this.A)this.A=a,BQ(this);else{var b=a-this.A;this.A=a;0==(4<=b?1:0)?(BQ(this),yQ(this,0)):(this.j.setPosition(xQ),this.F=X.setTimeout(tP("osd_or_lidar::sfm_cpto",x(this.T,this)),125))}};vQ.prototype.T=function(){var a=zQ(this),b=a-this.A;this.A=a;a=4<=b?1:0;BQ(this);yQ(this,0==a?1:0)};
function CQ(a){if(a.D){var b=x(function(){1===DP(pP)?(this.A=null,BQ(this)):(X.clearTimeout(this.F),yQ(this,0))},a),c=EP();if(c){var d=GP(pP,c,b,"osd_or_lidar::sfm_pv");a.H=function(){aP(pP,c,d);this.H=null}}a.D=!1;a.o=null;b()}}function DQ(a){a.D||(X.clearTimeout(a.F),null===a.H||a.H(),a.D=!0)}function EQ(a,b){YP.call(this,a,b);this.A=[];this.D=this.H=null;this.C=!0}B(EQ,YP);
function FQ(a,b,c){if(null!==a.D)return!1;a.B=b;a.H=c;c=b.getBoundingClientRect();c="DIV"==b.tagName||"INS"==b.tagName?ZP(a,c):$P(a,c);for(var d=0;d<c.length;++d){var e=c[d],f=new vQ,h;h=f;var k=b,l=x(a.J,a),n=e;if(null===h.G){var r="DIV"==k.tagName||"INS"==k.tagName;h.C=!r;h.J=k;e=AQ(h);if(null!=n){e=n;n=new Ge(0,0);if(h.C){var u=h.J.getBoundingClientRect();n.x+=u.left;n.y+=u.top}h.L=new Ge(e.x-n.x,e.y-n.y)}h.M=l;l=!1;r?(l=UP(),h.B=l,Vf(k,l,0),l=h.j.Do(l,e)):l=h.j.Co(k,e);l?(h.G=A(),h.K=e,h=!0):
(h.j.remove(),h.B&&Wf(h.B),h=!1)}else h=!1;if(!h)return GQ(a),a.j="c",!1;a.A.push(f)}a.D=A();a.j="l";return!0}function HQ(a){var b=Rb($b(wQ));E(a.A,function(a){null!=a.o&&0<=a.o&&++b[a.o]});switch(a.G){case 4:return IQ(a,b);case 3:return 1==a.A[0].o&&1==a.A[2].o?3:1==a.A[1].o?2:0<b[1]?1:0;default:return 1==b[1]?2:0}}function IQ(a,b){var c=b[1];if(a.F){if(3<=c)return 2;if(2==c)return 5;if(0<c)return 4}else{if(4==c)return 3;if(3==c)return 2;if(0<c)return 1}return 0}
EQ.prototype.J=function(){var a=HQ(this);this.o!=a&&(this.o=a,this.H(a))};function JQ(a){a.C&&null!==a.D&&"d"!=a.j&&(E(a.A,function(a){CQ(a)}),a.j="r",a.C=!1)}function KQ(a){a.C||(E(a.A,function(a){DQ(a)}),a.C=!0)}function GQ(a){KQ(a);E(a.A,function(a){DQ(a);a.j&&(a.j.remove(),a.j=null);a.B&&(Wf(a.B),a.B=null)});a.A=[];a.j="d"};function LQ(){this.B=!1;this.D=void 0;this.o=!bP(X.top);this.A=this.C=this.j=null}var MQ=null;function MP(){MQ||(MQ=new LQ);return MQ};function NQ(a,b,c,d,e,f){this.o=OQ.clone();this.F=this.aa=0;this.Fd=this.Gd=this.na=-1;this.za=[0,0,0,0,0];this.Z=[0,0,0,0,0];this.L=[0,0,0,0,0];this.La=0;this.Dd=[0,0,0,0,0];this.Cd=[0,0,0,0,0];this.ia=[0,0,0,0,0];this.sc=this.ga=0;this.K={};this.We={};this.Sb=[0,0,0,0,0];this.M=d;this.ea=this.W=-1;this.Jc=b;this.C=e;this.AB=f||v;this.fb=function(){};this.Dh=0;this.Lb=cP(ZO,0)||0;this.Lo=function(){};this.J=this.element=c;this.$e=0;this.qB=-1;this.U=this.B="";this.Ze=c?String(c._avi_||""):"";this.A=
null;this.H=1;this.ha=!1;this.Sa=null;this.Bh=!1;this.G=null;this.Ch=this.Ko=!1;this.S=null;this.Pa=0;this.Ea=!1;this.fa=null;this.Wa=this.Ta=!1;this.RB=.01>Math.random();this.Xo=!1;this.Rb=[];this.Ca=void 0;this.Yc=this.wb=this.pe=this.Da=!1;this.D=void 0;this.Id=0;this.wa=-1;this.Bd=this.Na=0;this.Xa=void 0;this.Hd=!1;this.Wc=1;this.T=-1;this.$c=void 0;this.vb=this.ca=0;this.ub=-1;this.oe=!1;this.Ga=this.Ye=this.qc=0;this.Xe=!1;this.j=0;this.sn=this.Hn=this.Jd=!1;this.Mn=0;this.cq=this.Zc=this.X=
!1;this.jo=0;this.Yo=!1;this.Ed=!0;this.ob=0;this.Xc=3==this.C?cP([1,2,3,4],0)||0:0;this.ad=0;this.rh=!1;PQ(this,c&&c._avm_);QQ(this);b=MP();RQ(this,a,b.o)}var OQ=new Ie(0,0,0,0);function PQ(a,b){if(w(b)&&0!=b.length)for(var c=b.split("&"),d=0;d<c.length;d++){var e=c[d],f=wP,h=xP;e!=f.Gu&&(e==f.Fu?a.Ed=!1:ua(e,h.Ut)&&(e=e.split("=")[1],"0"==e?a.ad=2:"1"==e&&(a.ad=1)))}}function QQ(a){if(a.Jc&&w(a.Jc)){var b=a.Jc.match(/loeid=([^&;]+)/);b&&2==b.length&&b[1].match(vP.mu.Ra)&&(a.rh=!0)}}
function SQ(a,b,c,d,e){if(!(0>a.M)){var f=X.innerWidth,h=X.innerHeight,k=new Ie(Math.round(X.mozInnerScreenY),Math.round(X.mozInnerScreenX+f),Math.round(X.mozInnerScreenY+h),Math.round(X.mozInnerScreenX));c=new Ie(X.screenY+d,X.screenX+c.width,X.screenY+c.height,X.screenX);e||(d=new Ie(k.top-c.top,k.right-c.left,k.bottom-c.top,k.left-c.left),d.top>a.o.top?a.o=d:(a.o.right=a.o.left+f,a.o.bottom=a.o.top+h),a.aa=f*h);a.aj(k,c,b,e,!0)}}
function TQ(a,b,c){var d=WP(X&&X.document);if(d){c||RQ(a,X,!0);if(UQ(a)||a.Hd)d=VQ(a,d);else var e=Math.floor((a.o.left+a.o.right)/2),f=Math.floor((a.o.top+a.o.bottom)/2),h=Kf(document),d=d(e-h.x,f-h.y)?.5:0;a.aj(a.o,d,b,c,!0)}}function WQ(a,b,c){var d;if(c(b))return b;for(;;){d=Math.floor((a+b)/2);if(d==a||d==b)return a;c(d)?a=d:b=d}}
function VQ(a,b){function c(a,c){return Boolean(b(a,c))}var d=Kf(document),e=a.Wc,f=Math.floor(a.o.left-d.x)+1,h=Math.floor(a.o.top-d.y)+1,k=Math.floor(a.o.right-d.x)-e,l=Math.floor(a.o.bottom-d.y)-e,d=(l-h)*(k-f);if(h>l||f>k)return 0;var e=c(f,h),n=c(k,l);if(e&&n)return 1;var r=c(k,h),u=c(f,l);if(e)l=WQ(h,l,function(a){return c(f,a)}),k=WQ(f,k,function(a){return c(a,h)});else if(r)l=WQ(h,l,function(a){return c(k,a)}),f=WQ(k,f,function(a){return c(a,h)});else if(u)h=WQ(l,h,function(a){return c(f,
a)}),k=WQ(f,k,function(a){return c(a,l)});else if(n)h=WQ(l,h,function(a){return c(k,a)}),f=WQ(k,f,function(a){return c(a,l)});else{var z=Math.floor((f+k)/2),y=Math.floor((h+l)/2);if(!c(z,y))return 0;h=WQ(y,h,function(a){return c(z,a)});l=WQ(y,l,function(a){return c(z,a)});f=WQ(z,f,function(a){return c(a,y)});k=WQ(z,k,function(a){return c(a,y)})}return(l-h)*(k-f)/d}g=NQ.prototype;
g.update=function(a,b,c,d,e){if(0>this.M)return null;c||RQ(this,d,e);Boolean(null)&&c&&(d.clearInterval(this.Sa),this.Sa=null);null!=this.fa&&(c?(d.clearInterval(this.S),this.S=null,this.Ea=!1):this.Ta&&!this.S&&(this.S=d.setInterval(tP("osd_or_lidar::adblock::iem_int",x(this.Nq,this,d,1E3)),1E3),this.Nq(d)));return this.aj(this.o,b,a,c,!1)};
g.aj=function(a,b,c,d,e,f){var h=XQ(this),k=Math.floor(100*this.F),l=this.ZB.apply(this,arguments),n=XQ(this),r=Math.floor(100*this.F);(!h&&n||r!=k)&&this.AB(n,r);return l};
g.ZB=function(a,b,c,d,e,f){var h=c-this.M||1;if(7==this.C){var k=1E4;-1!=this.T&&(k=Math.max(1E4,this.T/3));h=h>k?1:h}if(!f){k={};if("as"==this.D&&(f="getVideoMetadata"+this.U,ha(this.element[f])))try{k=this.element[f]()}catch(r){this.Jd=!0}if("h"==this.D&&(f=t("ima.common.getVideoMetadata"),ha(f)))try{k=f(this.B)}catch(r){this.Jd=!0}f=k.currentTime;p(f)?k.currentTime=Math.floor(1E3*f):this.sn=!0;f=k.duration;p(f)&&(k.duration=Math.floor(1E3*f));p(k.volume)||(k.volume=YQ(this));f=k}this.T=f.duration||
this.T;this.$c=f.isVpaid||this.$c;k=f.volume;f=p(f.currentTime)?f.currentTime:this.ca+h;f<this.ca&&(f=this.ca,this.Hn=!0);var l=f-this.ca,n=null;ga(b)?a=ZQ(this,b):(n=b,a=ZQ(this,a,n));this.Ca||$Q(this,a,h,this.W,e,d,n,k,l);this.W=d?-1:a;this.M=c;this.ca=f;-1!=a&&(0>this.na&&(this.na=c),this.Fd=c);-1==this.Gd&&XQ(this)&&(this.Gd=c);this.fb(this,n||OQ);return this.F};
function ZQ(a,b,c){if(a.Zc)return a.F=0,aR(a.F);if(a.X&&7==a.C)return a.F=1,aR(a.F);var d=null;if(ga(b))a.F=b;else{c=new Ie(Math.max(b.top,c.top),Math.min(b.right,c.right),Math.min(b.bottom,c.bottom),Math.max(b.left,c.left));if(0>=a.aa||c.top>=c.bottom||c.left>=c.right)return a.F=0,-1;var d=c.clone(),e=-b.left;b=-b.top;e instanceof Ge?(d.left+=e.x,d.right+=e.x,d.top+=e.y,d.bottom+=e.y):(d.left+=e,d.right+=e,ga(b)&&(d.top+=b,d.bottom+=b));d=(c.bottom-c.top)*(c.right-c.left);a.F=d/a.aa}return aR(a.F)}
function aR(a){var b=-1;1<=a?b=0:.75<=a?b=1:.5<=a?b=2:.3<=a?b=3:0<a&&(b=4);return b}function UQ(a){return 7==a.C||!(!MP().o||bR||cR||Boolean(Boolean(a.J&&!XP())&&!XP())||XP()&&a.rh)||a.Bh||a.Ch||a.Ta?!1:1==a.ad}
function $Q(a,b,c,d,e,f,h,k,l){e=e&&-1!=d&&d<=(UQ(a)?3:2);var n=-1==d||-1==b?-1:Math.max(d,b);d=e?n:d;l=l||0;-1!=d&&(a.za[d]+=c,a.Dd[d]+=l,d<=(UQ(a)?3:2)&&(a.La+=c,a.ga+=l));h=h||null;e=-1!=d&&d<=(UQ(a)?3:2);h?(e&&-1!=a.ea&&(a.Sb[a.ea]+=c),h=100*a.aa/((h.bottom-h.top)*(h.right-h.left)),a.ea=20<=h?0:10<=h?1:5<=h?2:2.5<=h?3:4):a.ea=-1;if(7==a.C){h=-1!=d&&2>=d;e=p(k)&&.1<=k&&.1<=a.Xa;e&&0==d||(a.Xe=!1);a.vb+=c;e&&(a.qc+=c,0==d&&(a.Ga+=c),h?a.Ye+=c:a.Na+=c);a.Na>a.Bd&&(a.Bd=a.Na);if(h||!p(k)||.1>k)a.Na=
0;p(k)&&(Number(k)?(h=Math.pow(10,3),k=Math.round(k*h)/h):k=0);a.Xa=k}for(k=d;0<=k&&4>=k;k++)a.L[k]+=c,a.ia[k]+=l,a.L[k]>a.Z[k]&&(a.Z[k]=a.L[k]),a.ia[k]>=a.Cd[k]&&(a.Cd[k]=a.ia[k]);for(k=0;k<a.L.length;++k)if(k<b||f||-1==b)a.L[k]=0,a.ia[k]=0}function dR(a,b,c,d){var e=UQ(a);a.H=c;e&&(a.H=4);if(!Boolean(Boolean(a.J&&!XP())&&!XP()))return a.ha=!0,!1;c=new aQ(e,void 0,void 0,a.H);(d=cQ(c,a.J,d))?(a.Lo=b,a.A=c):a.ha=!0;return d}
g.Nq=function(a,b){var c=WP(a&&a.document);if(c){RQ(this,a,!0);if(UQ(this))c=VQ(this,c)>=(UQ(this)?.3:.5);else var d=Math.floor((this.o.left+this.o.right)/2),e=Math.floor((this.o.top+this.o.bottom)/2),f=Kf(document),c=Boolean(c(d-f.x,e-f.y));d=b||0;c?(this.Pa+=this.Ea?d:0,this.Ea=!0):(this.Pa=0,this.Ea=!1);1E3<=this.Pa&&(a.clearInterval(this.S),this.S=null,this.Ta=!1,this.fa="v");RQ(this,a,!1)}else a.clearInterval(this.S),this.S=null,this.Ta=!1,this.fa="i"};
function eR(a,b){if(!a.element||!XP())return!1;a.H=b||1;UQ(a)&&(a.H=4);var c=new EQ(UQ(a),a.H),d=FQ(c,a.element,x(function(a){fR(this,OP(),!1,[0,.01,.5,1,.01,.3][a])},a));d?(a.G=c,JQ(c)):a.Ko=!0;return d}function fR(a,b,c,d){if(!(0>a.M)&&gR(a)){c?a.G&&KQ(a.G):(RQ(a,X,!0),a.G&&JQ(a.G));var e=d||0;ga(d)||-1==a.W||(e=[1,.75,.5,.3,.01][a.W]||0);a.aj(a.o,e,b,c,!1);XQ(a)&&7!=a.C&&a.G&&GQ(a.G)}}function gR(a){return null!==a.G&&"d"!=a.G.getStatus()}
g.$b=function(){var a=this.o,a=["p:",a.top,a.left,a.bottom,a.right];a.push("tos:",this.za.join(","));a.push("mtos:",this.Z.join(","));a.push("rs:",this.C);5!==this.C&&6!==this.C&&(a.push("zoom:",this.Sb.join(",")),a.push("ht:",this.$e));0<=this.na&&a.push("tfs:",this.na,"tls:",this.Fd);a.push("vt:",this.Gd);7==this.C&&a.push("qid:",this.B);this.Ze&&a.push("avi:",this.Ze);this.fa&&a.push("iemv:",this.fa);this.G?(a.push("sfm:",this.G.getStatus()),a.push("px:",String(this.H))):this.Ko&&(a.push("sfm:",
"-"),a.push("px:",String(this.H)));this.A?(a.push("swf:",this.A.getStatus()),a.push("px:",String(this.H))):this.ha&&(a.push("swf:","-"),a.push("px:",String(this.H)));UQ(this)&&a.push("la:","1");return a.join(",")};
function RQ(a,b,c){a.ob++;b=c?b:b.top;try{var d=OQ.clone(),e=new Ge(0,0);if(a.J){if(c||1!=a.C||!VP(a.J))d=a.J.getBoundingClientRect();e=Bg(a.J,b)}var f=e.x,h=e.y;a.o=new Ie(Math.round(h),Math.round(f+(d.right-d.left)),Math.round(h+(d.bottom-d.top)),Math.round(f))}catch(k){a.o=OQ.clone()}a.aa=(a.o.bottom-a.o.top)*(a.o.right-a.o.left);2!=a.C&&3!=a.C&&6!=a.C||0!=a.aa||(3!=a.C||!(2==a.Xc&&2>=a.ob||3==a.Xc&&4>=a.ob||4==a.Xc&&8>=a.ob))&&a.J&&a.J.parentElement&&a.RB&&a.J.parentElement.getBoundingClientRect()}
function XQ(a){var b=UQ(a)?3:2;return 1E3<=Math.max(a.L[b],a.Z[b])}function hR(a){return 2E3<=Math.max(a.L[2],a.Z[2])}function iR(a,b){var c=a.Id;PP||a.Ca||-1==a.wa||(c+=b-a.wa);return c}function YQ(a){if("as"==a.D){var b="sdkVolume"+a.U;if(ha(a.element[b]))try{return Number(a.element[b]())}catch(c){return-1}}if("h"==a.D&&(b=t("ima.common.sdkVolume"),ha(b)))try{return Number(b(a.B))}catch(c){return-1}}function jR(a){7==a.C&&(a.Hd=!0,a.Wc=2)}
function kR(a,b){Cb(a.Rb,Rb(b-a.Rb.length+1));a.Rb[b]=(100*a.F|0)/100}
function lR(a,b){var c=a.We[b];if(null!=c)return c;if(a.Wa)return{"if":0};var d=a.o.clone();d.round();var e=F(a.Rb,function(a){return 100*a|0}),c=MP(),d={gmm:1,"if":c.o?1:void 0,sdk:a.D?a.D:void 0,p:[d.top,d.left,d.bottom,d.right],tos:a.za,mtos:a.Z,ps:void 0,pt:e,vht:iR(a,OP()),mut:a.Bd,a:a.Xa,ns:a.jo,at:a.qc,afvt:a.Ga,vpt:a.vb};"fully_viewable_audible_half_duration_impression"==b&&(d.std="csm");0<a.Lb&&(d.veri=a.Lb);a.Hd&&(d.efpf=a.Wc);a.A&&(d.swf=a.A.getStatus(),d.px=a.H);a.G&&(d.sfm=a.G.getStatus(),
d.px=a.H);0<a.Mn&&(d.nnut=a.Mn);7==a.C&&(d.vme=a.Jd?1:0,d.nmtd=a.Hn?1:0,d.mmct=a.sn?1:0,d.vpaid=a.$c,d.dur=a.T,d.vmtime=a.ca,d.vmtos=a.Dd,d.vmmtos=a.Cd);mR(a,b)&&hR(a)&&7==a.C&&(d.dtos=a.La,d.vmdtos=a.ga,a.sc++,d.dtoss=a.sc,a.La=0,a.ga=0);!hR(a)&&2E3<=a.ga&&(d.vmdtos=a.ga);c.A&&(d.ps=[c.A.width,c.A.height]);a.ha&&(d.fmf="1",d.px=a.H);a.Da&&(d.ven="1");a.pe&&(d.veh="1");a.j&&(d.vds=a.j);nR()?d.c=(100*a.F|0)/100:d.tth=OP()-KP;return d}
function oR(a){a.A&&fQ(a.A);X.clearInterval(a.Sa);a.Sa=null;a.Bh=!1;a.G&&GQ(a.G);a.Ch=!1;X.clearTimeout(null)}function mR(a,b){if(tb(XO,b))return!0;var c=a.K[b];return p(c)&&(a.K[b]=!0,!c)?!0:!1};var pR=null,qR=null,rR=null,sR=null,tR=null,uR=!1;
function vR(){if(!uR){uR=!0;var a=m.requestAnimationFrame||m.webkitRequestAnimationFrame||m.mozRequestAnimationFrame||m.oRequestAnimationFrame||m.msRequestAnimationFrame;if(!pR){var b;if(a){var c=nP("osd_or_lidar::throttled_scroll_raf_callback",wR);b=function(){a(function(){X.setTimeout(c,0)})}}else b=wR;qR=new tn(nP("osd_or_lidar::throttled_scroll_timeout",b),100);b=x(qR.lf,qR);pR=GP(X,"scroll",b,"osd_or_lidar::throttled_scroll")}if(!rR){if(a){var d=nP("osd_or_lidar::throttled_resize_raf_callback",
xR);b=function(){a(function(){X.setTimeout(d,0)})}}else b=xR;sR=new tn(nP("osd_or_lidar::throttled_resize_timeout",b),100);b=x(sR.lf,sR);rR=GP(X,"resize",b,"osd_or_lidar::throttled_resize")}yR();zR()}}function xR(){AR(!1);wR()}function wR(){BR(CR,!1)}
function DR(){var a,b=MP();ER&&(b.j=JP(X,ER));var b=b.j,c=FR,d=bR;if(cR){a=c;AR(!1);var e=MP(),f=e.C,b=f.height-a;0>=b&&(b=f.height,a=0);e.j=new N(f.width,b);b=new GR;b.D=!0;b.A=e.j;b.o=f;b.B=a;return b}if(d)return a=new GR,a.C=!0,a;if(HR)return a=new GR,a.F=!0,a;if(IR)return a=new GR,a.G=!0,a;a:{c=new GR;c.A=b;c.j=!1;if(null!=b&&-1!=b.width&&-1!=b.height&&-12245933!=b.width&&-12245933!=b.height){try{var d=ER,h=X||X,h=h.top,e=b||JP(h,d),f=mg(Bf(h.document));a=-1==e.width||-12245933==e.width?new Ie(e.width,
e.width,e.width,e.width):new Ie(f.y,f.x+e.width,f.y+e.height,f.x)}catch(k){a=c;break a}c.H=a;c.j=!0}a=c}return a}
function BR(a,b){var c;if(!JR)if(window.clearTimeout(KR),KR=null,0==a.length)b||LR();else{var d=DR();try{var e=OP();if(d.D)for(c=0;c<a.length;c++)SQ(a[c],e,d.o,d.B,b);else if(d.C)for(c=0;c<a.length;c++)TQ(a[c],e,b);else if(d.F)E(a,function(a){if(b){if(a.A){var c=a.A;3<=c.A&&(c.A=3);a.W=-1}}else if(a.A&&"d"!=a.A.getStatus()){var c=gQ(a.A),d=[-1,-1,-1,-1,-1,4,2,0,4,3],e=d[c.snapshot+1];$Q(a,e,c.j,d[c.o+1],!0,!1);a.W=e;a.fb(a,OQ);XQ(a)&&7!=a.C&&!a.Ed&&a.A&&fQ(a.A);(c=2==c.snapshot||oQ(a.A))||(c=a.A,
c="f"==c.j&&c.C>=c.J);c&&(a.Lo(a),a.Ed=!1,a.A&&fQ(a.A))}});else if(d.G)for(c=0;c<a.length;c++)fR(a[c],e,b);else if(d.j){var f=MP();for(c=0;c<a.length;c++)a[c].update(e,d.H,b,X,f.o)}++MR}finally{b?E(a,function(a){a.F=0}):LR()}}}function yR(){var a=zR,b=EP();b&&(tR=tR||GP(pP,b,a,"osd_or_lidar::visibility"))}function zR(){var a=nR();if(a){if(!PP){var b=OP();QP=b;E(CR,function(a){a.Id=iR(a,b)})}PP=!0;AR(!0)}else b=OP(),PP=!1,KP=b,E(CR,function(a){0<=a.M&&(a.wa=b)});BR(CR,!a)}
function nR(){if(NR())return!0;var a=DP(X.document);return 1==a||0==a}function LR(){X&&(KR=X.setTimeout(tP("osd_or_lidar::psamp_to",function(){BR(CR,!1)}),LP()))}function OR(a){return null!=G(CR,function(b){return b.element==a})}var CR=[],JR=!1,KR=null,FR=0,cR=!1,bR=!1,HR=!1,IR=!1,ER=gO()||fO(),MR=0;function PR(){var a=X.document;return a.body&&a.body.getBoundingClientRect?!0:!1}
function AR(a){var b=MP();b.j=JP(X,ER);if(!a){b.C=X&&X.outerWidth?new N(X.outerWidth,X.outerHeight):new N(-12245933,-12245933);var c;a=X;a.top!=a&&(a=a.top);var d=0,e=0,f=MP().j;try{var h=a.document,k=h.body,l=h.documentElement;if("CSS1Compat"==h.compatMode&&l.scrollHeight)d=l.scrollHeight!=f.height?l.scrollHeight:l.offsetHeight,e=l.scrollWidth!=f.width?l.scrollWidth:l.offsetWidth;else{var n=l.scrollHeight,r=l.scrollWidth,u=l.offsetHeight,z=l.offsetWidth;l.clientHeight!=u&&(n=k.scrollHeight,r=k.scrollWidth,
u=k.offsetHeight,z=k.offsetWidth);n>f.height?n>u?(d=n,e=r):(d=u,e=z):n<u?(d=n,e=r):(d=u,e=z)}c=new N(e,d)}catch(y){c=new N(-12245933,-12245933)}b.A=c}}function QR(){var a=RR;if(1<=Math.random())return!1;var b=!1;E(CR,function(a){a=eR(a,3);b=b||a});(IR=b)&&E(CR,function(b){gR(b)||a(b)});return b}function SR(){var a=RR,b=!1;E(CR,function(c,d){var e=dR(c,a,p(1)&&1>Math.random()?3:1,String(d));b=b||e});(HR=b)&&E(CR,function(b){Boolean(b.A)||a(b)});return b}
function TR(a){E(a,function(a){OR(a.element)||CR.push(a)})}function UR(a){E(a,function(a){null==G(CR,function(c){return c.element==a.element&&c.U==a.U})&&CR.push(a)})}function NR(){return ob(CR,function(a){return a.X})}function GR(){this.o=this.A=null;this.B=0;this.H=null;this.j=this.G=this.F=this.C=this.D=!1};function VR(a,b){this.j=a;this.o=b}function WR(a){this.url=a;this.Ho=!1;this.depth=ga(void 0)?void 0:null}function XR(a){a=a?a:YR();for(var b=a.length-1,c=null,d=b;0<=d;--d){var e=a[d];if(e.url&&!e.Ho){c=e;break}}d=null;e=a.length&&a[b].url;c&&0==c.depth||!e||(d=a[b]);return new VR(c,d)}
function YR(){var a=m,b=[],c=null,d=null;do{var e=a;bP(e)?(c=e.location.href,d=e.document.referrer||null):(c=d,d=null);b.push(new WR(c));try{a=e.parent}catch(f){a=null}}while(a&&e!=a);a=0;for(e=b.length-1;a<=e;++a)b[a].depth=e-a;e=m;if(e.location&&e.location.ancestorOrigins&&e.location.ancestorOrigins.length==b.length-1)for(a=1;a<b.length;++a)c=b[a],c.url||(c.url=e.location.ancestorOrigins[a-1],c.Ho=!0);return b};function ZR(a,b,c){b=b||",$";"string"==typeof b&&(b=b.split(""));c=c||0;if(!(a instanceof Array)||c>=b.length)return encodeURIComponent(""+a);for(var d=[],e=0;e<a.length;e++)d.push(ZR(a[e],b,c+1));return d.join(b[c])};function $R(){var a=YR(),b=a.length-1,c=XR(a),a=c.j,d=c.o,c=[];d?(a&&c.push(aS(b,[d.url,2],0,[a.url,0],a.depth)),c.push(aS(b,[d.url,2],0))):a&&a.url&&(c.push(aS(b,void 0,void 0,[a.url,0],a.depth)),(d=(d=eP.exec(a.url))&&d[0]||"")&&c.push(aS(b,[d,1],a.depth)));c.push(aS(b));return c}function aS(a,b,c,d,e){a=[a];if(p(b)&&p(c)){for(var f=0;f<c;f++)a.push("");a.push(b)}if(p(d)&&p(e)){b=e-a.length+1;for(f=0;f<b;f++)a.push("");a.push(d)}return a}
function bS(){var a=$R();return F(a,function(a){return ZR(a)})};var cS=null,dS="",eS=!1;function fS(){var a=cS||X;if(!a)return"";var b=a.document,c=[];c.push("url="+qP(a.location.href.substring(0,512)));b&&b.referrer&&c.push("referrer="+qP(b.referrer.substring(0,512)));return c.join("&")};var gS=!1,hS=!1,iS=!1,jS=!1,kS=!1;function lS(a,b,c){c||(b=-1);return new NQ(X,"",a,b,7)}function mS(){gS=!0;try{NP=OP(),1>Math.random()&&(kS=!0),cS=uP(),AR(!1),PR()?(window.setTimeout(function(){},1),MP().o?nS():vR()):eS=!0}catch(a){throw CR=[],a;}}
function nS(){var a;if(Ic&&ga(X.screenX)&&ga(X.mozInnerScreenX)&&ga(X.outerWidth)){var b=X.navigator.userAgent,c=b.indexOf("Firefox/");a=-1;if(0<=c){a=Math.floor(b.substr(c+8))||-1;var d=b.indexOf("Mac OS X 10."),c=-1;0<=d&&(c=Number(b.substr(d+12,1))||-1);var e=0<c?-1:b.indexOf("Windows NT "),d=-1;0<=e&&(d={"6.0":0,"6.1":1,"6.2":2}[b.substr(e+11,3)]||-1);b=148;5<=c?b=4<=a?108:3<=a?127:108:0<=d&&(16==a||17==a||18==a)&&(b=[[146,146,146],[148,147,148],[131,130,136]][d][a-16]);a=b}else a=null;null!==
a&&(FR=a,cR=!0);a=!0}else a=!1;if(a)vR();else if(a=X&&X.document,a=Fc&&Tc(8)&&ha(WP(a))?bR=!0:!1,a)hS=1>Math.random(),vR();else{if(XP()){if(QR()){vR();jS=!0;return}}else if(SR()){vR();iS=!0;return}window.clearTimeout(KR);KR=null;dS="i";JR=!0}}
function RR(a){if(a){if(!a.Xo){var b=[];b.push("v=361v");b.push("r=fp");b.push("efm="+(iS?1:0));b.push("esfm="+(jS?1:0));b.push(sh(lR(a,"start")));b.push(fS());b="&"+b.join("&");iP(X,("//pagead2.googlesyndication.com/pagead/gen_204?id=lidarvf"+b).substring(0,2E3),void 0);a.Xo=!0}a.Wa=!0}}function oS(){return{moatInit:"init"}}
function pS(a,b,c){var d={};qc(d,{opt_adElement:void 0,opt_fullscreen:void 0,opt_nativeMobile:!1},c||{});var e=a.toLowerCase();if(a=hc(VO,function(a){return a==e})){a={v:"361v",e:YO[a]};if(d.opt_bounds)return a.msg="ol",TP(a);if(eS)return a.msg="ue",TP(a);b=qS(b,d);a.nas=CR.length;if(!b)return a.msg="nf",TP(a);gS||mS();"i"==dS&&(b.Wa=!0);hS&&jR(b);c=d.opt_fullscreen;p(c)&&(b.X=Boolean(c));tb(WO,e)&&(rS(b,d),kS&&sS(b));c={};c.start=tS;c.firstquartile=uS;c.midpoint=vS;c.thirdquartile=wS;c.complete=
xS;c.pause=yS;c.resume=zS;c.skip=AS;c.viewable_impression=BS;c.mute=CS;c.unmute=DS;c.fullscreen=ES;c.exitfullscreen=FS;c.fully_viewable_audible_half_duration_impression=GS;c.measurable_impression=HS;c.abandon=IS;c.engagedview=JS;c.impression=aaa;c.creativeview=baa;if(c=c[e]){d=c(b,d);if(!p(d)||w(d))return d;qc(a,d);return TP(a)}}}function caa(a,b){var c=MP();if(c.B!=a){c.B=a;var d=ob(CR,function(a){return a.Yo});E(CR,function(c){a||d||(c.M=b);c.Zc=a;c.Yo=!1})}}
function tS(a){a.jo++;kR(a,0);1==(100*a.F|0)/100&&.1<=a.Xa&&(a.Xe=!0);return lR(a,"start")}function uS(a){kR(a,1);BR([a],!nR());return lR(a,"firstquartile")}function vS(a){kR(a,2);a.oe=!0;BR([a],!nR());return lR(a,"midpoint")}function wS(a){kR(a,3);BR([a],!nR());return lR(a,"thirdquartile")}function xS(a){kR(a,4);BR([a],!nR());var b=lR(a,"complete");a.X=!1;KS(a.B);return b}function yS(a){return LS(a,"pause")}function IS(a){return LS(a,"abandon")}
function zS(a){var b=nR();a.Ca&&!b&&(a.wa=OP());BR([a],!b);a.Ca=!1;return lR(a,"resume")}function BS(a){var b=lR(a,"viewable_impression");b.hvvi="1";a.pe=!0;return b}function AS(a){var b=!nR();BR([a],b);b=lR(a,"skip");a.X=!1;KS(a.B);return b}function CS(a){BR([a],!nR());return lR(a,"mute")}function DS(a){BR([a],!nR());return lR(a,"unmute")}function ES(a){a.X=!0;BR([a],!nR());return lR(a,"fullscreen")}function FS(a){a.X=!1;BR([a],!nR());return lR(a,"exitfullscreen")}
function GS(a){return lR(a,"fully_viewable_audible_half_duration_impression")}function HS(a){return lR(a,"measurable_impression")}function JS(a){return lR(a,"engagedview")}function aaa(a){return lR(a,"impression")}function baa(a){return lR(a,"creativeview")}function LS(a,b){a.Id=iR(a,OP());var c=!nR();BR([a],c);a.Ca=!0;return lR(a,b)}
function rS(a,b){if(!a.cq){a.cq=!0;"i"!=dS&&(JR=!1);if(iS&&!Boolean(a.A)&&!a.ha){var c=1>Math.random()?3:1;dR(a,RR,c,String(jb(CR,a)))}jS&&!gR(a)&&(c=cP([3,1],1),eR(a,c));a.K={};a.K.firstquartile=!1;a.K.midpoint=!1;a.K.thirdquartile=!1;a.K.complete=!1;a.K.pause=!1;a.K.skip=!1;a.K.viewable_impression=!1;a.sc=0;c=p(b)?b.opt_nativeTime:void 0;RP=c=ga(c)?c:OP();a.za=[0,0,0,0,0];a.Z=[0,0,0,0,0];a.L=[0,0,0,0,0];a.Sb=[0,0,0,0,0];a.M=-1;a.na=-1;a.Fd=-1;a.$e=0;a.qB=-1;a.W=-1;a.ea=-1;a.F=0;a.M=c;var d=!1;nR()||
(d=!0,a.wa=c);BR([a],d)}}function KS(a){if(w(a)){var b=qb(CR,function(b){return b.B==a});0<=b&&(oR(CR[b]),yb(CR,b))}}function qS(a,b){if(b.opt_nativeMobile)return daa(a,b);if(b.opt_adElement)return eaa(a,b.opt_adElement);var c=faa(a,b.opt_sdkID||"");return c?c:c=G(CR,function(b){return b.B==a})}function daa(a,b){var c=G(CR,function(b){return b.B==a});c||(c=lS(null,b.opt_nativeTime,!0),c.D="n",c.fb=MS,TR([c]),c.B=a,c.Zc=MP().B);return c}
function eaa(a,b){var c=G(CR,function(a){return a.element==b});null!==c&&c.B!=a&&(KS(c.B),c=null);c||(c=NS(b),c.B=a,c.D="h");return c}function faa(a,b){var c=G(CR,function(c){return c.element?OS(c.element,b)==a&&c.U==b:!1});null!==c&&c.B!=a&&(KS(c.B),c=null);if(c)return c;c=gaa(b);c=G(c,function(c){return OS(c,b)==a});if(!c)return null;c=NS(c);c.D="as";c.B=a;c.U=b;return c}
function gaa(a){var b=X.document,c=Sb(F(["embed","object"],function(a){return Bb(b.getElementsByTagName(a))})),d="metricID"+a;return c=lb(c,function(a){if(!a||!ia(a)||1!=a.nodeType||!ha(a.getBoundingClientRect))return!1;var b=a.getBoundingClientRect();return 0!=b.width&&0!=b.height&&a[d]&&ha(a[d])?!0:!1})}function OS(a,b){var c="metricID"+b;if(!a||!a[c]||!ha(a[c]))return null;var d;try{d=a[c]()}catch(e){return null}return d.queryID}
function NS(a){a=lS(a,OP(),!1);a.fb=MS;MP().D=79463069;UR([a]);vR();return a}
function MS(a){-1==a.ub&&a.oe&&(a.ub=a.vb);a.Dh++;if(hR(a)&&(a.Da?0<a.Lb&&!a.pe&&0==a.Dh%a.Lb:1)){var b="as"==a.D,c="h"==a.D,d="n"==a.D,e=t("ima.common.triggerViewEvent"),f=t("ima.bridge.triggerViewEvent");try{var h=PS("viewable_impression",a);if(c)ha(e)?(e(a.B,h),a.Da=!0):a.j|=8;else if(d)ha(f)?(f(a.B,h),a.Da=!0):a.j|=32;else if(b){var k="triggerViewEvent"+a.U;a.element&&a.element[k]?(a.element[k](h),a.Da=!0):a.j|=1}else a.j|=16}catch(u){a.j|=2}}else a.j|=4;if((15E3<=a.Ga||a.oe&&(-1!=a.T?a.Ga>=a.T/
2:-1!=a.ub&&a.Ga>=a.ub))&&!a.Yc){b="as"==a.D;c="h"==a.D;try{if(c){var l=t("ima.common.triggerExternalActivityEvent");if(ha(l)){var n=PS("fully_viewable_audible_half_duration_impression",a);l(a.B,n,"fully_viewable_audible_half_duration_impression");a.Yc=!0}else a.j|=8192}else if(b){var r;r="triggerExternalActivityEvent"+a.U;a.element&&a.element[r]?(a.element[r]("fully_viewable_audible_half_duration_impression"),a.Yc=!0):a.j|=64}else a.j|=16384}catch(u){a.j|=128}}}
function sS(a){if(a.wb||a.Wa)a.j|=1024;else{var b="as"==a.D,c="h"==a.D,d="n"==a.D,e=t("ima.common.triggerMeasurableEvent"),f=t("ima.bridge.triggerMeasurableEvent");try{var h=PS("measurable_impression",a);if(c)ha(e)?(e(a.B,h),a.wb=!0):a.j|=2048;else if(d)ha(f)?(f(a.B,h),a.wb=!0):a.j|=32768;else if(b){var k="triggerMeasurableEvent"+a.U;a.element&&a.element[k]?(a.element[k](),a.wb=!0):a.j|=256}else a.j|=4096}catch(l){a.j|=512}}}
function PS(a,b){var c=hc(VO,function(b){return b==a}),c={e:YO[c],HJ:"361v",BJ:1},d=lR(b,a);qc(c,d);b.We[a]=d;return TP(c)}q("Goog_AdSense_Lidar_sendVastMessage",nP("lidar::handlevast_ex",pS),void 0);q("Goog_AdSense_Lidar_sendVastEvent",sP("lidar::handlevastevent_ex",function(a,b,c){var d={};d.viewability=pS(a,b,c);d.moatViewability="gmm=1";return d}),void 0);q("Goog_AdSense_Lidar_getInitSignals",nP("lidar::getinitsignals_ex",oS),void 0);
q("Goog_AdSense_Lidar_getUrlSignalsArray",sP("lidar::geturlsignalsarray_ex",function(){return bS()}),void 0);q("Goog_AdSense_Lidar_getUrlSignalsList",sP("lidar::geturlsignalslist_ex",function(){return xe(bS())}),void 0);function QS(){J.call(this);this.j=null;this.C=new vn(this);I(this,this.C);this.D=null;this.J=new Yg;this.H=new Yg;this.A=this.B=null;this.o=!1;this.F=(ha(null),null)}B(QS,J);var RS=null;function SS(){null!=RS||(RS=new QS);return RS}function TS(a){var b=SS();a=b.J.get(a)||b.D;return null!=a?a():{}}QS.prototype.destroy=function(){this.C.ua(this.j,"activityMonitor",this.G);this.A=null;this.o=!1};
QS.prototype.init=function(a){if(!this.o){if(this.j=a||null)this.C.P(this.j,"activityMonitor",this.G),US(this);if(EM.B&&!(m.ima&&m.ima.video&&m.ima.video.client&&m.ima.video.client.tagged)){q("ima.video.client.sdkTag",!0,void 0);var b=m.document;a=b.createElement("script");var c=b.location.protocol;"http:"!=c&&"https:"!=c&&(c="");a.src=c+"//s0.2mdn.net/instream/video/client.js";a.async=!0;a.type="text/javascript";b=b.getElementsByTagName("script")[0];b.parentNode.insertBefore(a,b)}this.o=!0}};
function VS(a){if(null==a)return!1;if(oO()&&null!=a.webkitDisplayingFullscreen)return a.webkitDisplayingFullscreen;var b=window.screen.availWidth||window.screen.width,c=window.screen.availHeight||window.screen.height;a=WS(a);return 0>=b-a.width&&42>=c-a.height}function WS(a){return ha(a.getBoundingClientRect)&&bg(Df(a),a)?a.getBoundingClientRect():{left:a.offsetLeft,top:a.offsetTop,width:a.offsetWidth,height:a.offsetHeight}}function haa(a,b){a.B=b}
function XS(a,b,c,d,e){if(a.o){if(a.F)return a.F(b,c,e);e=e||{};if(d=d?a.H.get(d):EM.A)null!=e.opt_fullscreen||(e.opt_fullscreen=VS(d)),null!=e.opt_adElement||(e.opt_adElement=d);null==e.opt_bounds&&a.B&&(e.opt_bounds=WS(a.B));return lP(oP,"lidar::handlevast_html5",pa(pS,b,c,e),rP)||""}return""}function iaa(){var a=SS();if(!a.o)return null;if(null!=a.A)return a.A;a.A=lP(oP,"lidar::getinitsignals_html5",oS,rP)||null;return a.A}
function US(a){if(ha(window.Goog_AdSense_Lidar_getUrlSignalsArray)){var b={};b.pageSignals=window.Goog_AdSense_Lidar_getUrlSignalsArray();a.j.send("activityMonitor","pageSignals",b)}}
QS.prototype.G=function(a){var b=a.rd,c=b.queryId,d={};d.eventId=b.eventId;switch(a.hc){case "getPageSignals":US(this);break;case "getViewability":d.viewabilityString=XS(this,"metric",c)||"";this.j.send("activityMonitor","viewability",d);break;case "reportVastEvent":var e=b.vastEvent;a=b.osdId;var f={};f.opt_fullscreen=b.isFullscreen;b.isOverlay&&(f.opt_bounds=b.overlayBounds);var h=null;gc(b,"isFullscreen")&&(h=b.isFullscreen);d.viewabilityString=XS(this,e,c,a,f);d.engagementString=YS(this,a,h);
this.j.send("activityMonitor","viewability",d);break;case "fetchAdTagUrl":c={},c.eventId=b.eventId,a=b.osdId,h=null,gc(b,"isFullscreen")&&(h=b.isFullscreen),c.engagementString=YS(this,a,h),this.j.send("activityMonitor","engagement",c)}};function YS(a,b,c){if(!EM.B)return"";var d=b?a.H.get(b):EM.A;a={};null!=c&&(a.fullscreen=c);return UO(function(){return d},a)}q("ima.common.getVideoMetadata",TS,void 0);q("ima.common.sdkVolume",function(a){a=TS(a).volume;return null!=a?a:-1},void 0);
q("ima.common.triggerViewEvent",function(a,b){var c={};c.queryId=a;c.viewabilityString=b;var d=SS().j;d?d.send("activityMonitor","viewableImpression",c):SS().Y(new tM("viewable_impression",null,c))},void 0);q("ima.common.triggerMeasurableEvent",function(a,b){var c={};c.queryId=a;c.viewabilityString=b;var d=SS().j;d?d.send("activityMonitor","measurableImpression",c):SS().Y(new tM("measurable_impression",null,c))},void 0);
q("ima.common.triggerExternalActivityEvent",function(a,b,c){var d={};d.queryId=a;d.viewabilityString=b;d.eventName=c;(a=SS().j)?a.send("activityMonitor","externalActivityEvent",d):SS().Y(new tM("externalActivityEvent",null,d))},void 0);function ZS(a,b,c){if(ub(a))return null;a=lb(a,function(a){var b=a.B;return"application/x-mpegurl"==D(a.j).toLowerCase()||"progressive"==b});ub(c)||(c=F(c,function(a){return a.toLowerCase()}),a=lb(a,function(a){return tb(c,D(a.j).toLowerCase())}));if(!ga(b)||0>=b)b=fO()?500:1E3;return jaa(a,b)}function jaa(a,b){return kaa(a,b)||laa(a,b)||maa(a,b)}function kaa(a,b){var c=null;E(a,function(a){var e=a.Xd,f=a.Wd;e>b||f<b||!(null==c||c.Xd>e)||(c=a)});return c}
function laa(a,b){var c=null;E(a,function(a){var e=a.Xd,f=a.Wd;f>b||(null==c||c.Wd<f?c=a:null!=c&&c.Wd==f&&c.Xd>e&&(c=a))});return c}function maa(a,b){var c=null;E(a,function(a){var e=a.Xd,f=a.Wd;if(!(e<b))if(null!=c&&c.Xd==e&&c.Wd<f)c=a;else if(null==c||c.Xd>e)c=a});return c};function $S(){J.call(this);this.D=this.H=this.L=this.F=!1;this.o=0;this.B=[];this.G=!1;this.U=this.M=Infinity;this.A=0;this.K=!1;this.C=new vn(this);this.J={}}B($S,J);function aT(a,b){null==b||a.F||(a.j=b,naa(a),a.F=!0)}function bT(a){null!=a.j&&a.F&&(cT(a),a.F=!1,a.H=!1,a.D=!1,a.o=0,a.B=[],a.G=!1)}
function naa(a){cT(a);!(a.j instanceof J)&&"ontouchstart"in document.documentElement&&pO()?(a.J={touchstart:x(a.EA,a),touchmove:x(a.DA,a),touchend:x(a.CA,a)},Wb(a.J,function(a,c){this.j.addEventListener(c,a,!1)},a)):a.C.P(a.j,"click",a.lo)}function cT(a){a.C.ua(a.j,"click",a.lo);Wb(a.J,function(a,c){this.j.removeEventListener(c,a,!1)},a);a.J={}}g=$S.prototype;
g.EA=function(a){this.H=!0;this.o=a.touches.length;this.A&&(window.clearTimeout(this.A),this.A=0,this.L=!0);(this.G=dT(this,a.touches)||1!=a.touches.length)?this.U=this.M=Infinity:(this.M=a.touches[0].clientX,this.U=a.touches[0].clientY);oaa(this,a.touches)};g.DA=function(a){this.o=a.touches.length;if(!pO()||!qO(lO,8)||Math.pow(a.changedTouches[0].clientX-this.M,2)+Math.pow(a.changedTouches[0].clientY-this.U,2)>Math.pow(5,2))this.D=!0};
g.CA=function(a){this.K?this.hk():(!this.H||1!=this.o||this.D||this.L||this.G||!dT(this,a.changedTouches)||(this.A=window.setTimeout(x(this.hk,this),300)),this.o=a.touches.length,0==this.o&&(this.D=this.H=!1,this.B=[]),this.L=!1)};g.lo=function(){this.hk()};function oaa(a,b){a.B=[];E(b,function(a){wb(this.B,a.identifier)},a)}function dT(a,b){return ob(b,function(a){return tb(this.B,a.identifier)},a)}g.hk=function(){this.A=0;this.Y(new sc("click"))};
g.R=function(){bT(this);this.C.dispose();this.C=null;$S.N.R.call(this)};function eT(a){null!=a?gN(aN,a)?(a=a.match(/yt_vid\/([a-zA-Z0-9_-]{11})/),a=null!=a&&1<a.length?a[1]:null):a=fN(a)?paa(a):null:a=null;return a}function fT(a,b,c){if(null==a)return null;c=new P((null!=c?c:"//www.youtube.com/")+"watch");var d=c.j;d.set("v",a);d.set("feature",b?"trueview-instream":"instream");Eh(c,d);return c.toString()}
function paa(a){if(C(D(a)))return null;var b=a.match(/^https?:\/\/[^\/]*youtu\.be\/([a-zA-Z0-9_-]+)$/);if(null!=b&&2==b.length)return b[1];b=a.match(/^https?:\/\/[^\/]*youtube.com\/video\/([a-zA-Z0-9_-]+)$/);if(null!=b&&2==b.length)return b[1];b=a.match(/^https?:\/\/[^\/]*youtube.com\/watch\/([a-zA-Z0-9_-]+)$/);if(null!=b&&2==b.length)return b[1];a=Ph(new P(a));return $h(a,"v")?a.get("v").toString():$h(a,"video_id")?a.get("video_id").toString():null}
function qaa(a){return C(D(a))?null:"//i1.ytimg.com/vi/"+a+"/mqdefault.jpg"};function gT(){J.call(this)}B(gT,J);var raa={RF:"beginFullscreen",CLICK:"click",tG:"end",uG:"endFullscreen",ERROR:"error",LOADED:"loaded",hH:"mediaLoadTimeout",PAUSE:"pause",PLAY:"play",SKIP:"skip",yu:"skipShown",yG:"video_extend_clicked",Dt:"video_extend_shown",Ts:"video_extend_auto_skipped",START:"start",DI:"timeUpdate",YF:"cardsStateChange",CI:"timedMetadata",iJ:"volumeChange",kI:"showCompanionAdLoaded"};gT.prototype.qo=function(){return!1};gT.prototype.El=v;gT.prototype.Ik=v;gT.prototype.ff=function(){return null};function hT(a){J.call(this);this.j=a;this.S=new rn(4);this.A=0;this.U=this.B=this.K=this.G=!1;this.L=this.Qc();this.J=this.Ud();this.T=15E3;this.M=!1}B(hT,gT);g=hT.prototype;
g.qq=function(a,b,c,d){if(d&&(d=G(a,function(a){return!da(eT(a.o))}),null!==d))return d;a=lb(a,function(a){var b=a.j;C(D(a.o))||"progressive"!=a.B&&"application/x-mpegurl"!=D(b).toLowerCase()?a=!1:(b=D(b).toLowerCase(),a=C(b)||Mc&&qO(mO,2.3)&&Ka(b,"application/ogg")?!1:Mc&&(Ka(b,"video/mp4")||Ka(b,"video/3gpp"))||pO()&&(Ka(b,"application/x-mpegurl")||Ka(b,"application/vnd.apple.mpegurl"))?!0:!C(this.j.canPlayType(b)));return a},this);return ZS(a,b,c)};
g.tk=function(){return lb(dc(LM),function(a){return!C(this.j.canPlayType(a))},this)};g.Hl=function(a){this.T=0<a.j?a.j:15E3};g.load=function(a){iT(this);this.j.src=a;this.j.load()};g.getVideoUrl=function(){return this.j.src};g.setVolume=function(a){this.j.volume=a};g.qd=function(){return this.j.volume};g.play=function(){this.M=!1;me(this.j.play,0,this.j);this.H||(this.H=me(this.fv,this.T,this))};g.pause=function(){this.M=!0;this.j.pause()};
g.tf=function(){return this.j.paused?pO()||Mi?this.j.currentTime<this.j.duration:!0:!1};g.sf=function(){return this.j.muted};g.jk=function(){oO()&&this.j.webkitDisplayingFullscreen&&this.j.webkitExitFullscreen()};g.Ud=function(){return VS(this.j)};g.mg=function(a){var b;a:{for(b=this.S.Ia();b.length;){var c=b.pop();if(0<c){b=c;break a}}b=-1}return b>=a};g.uf=function(a){this.j.currentTime=a};g.getCurrentTime=function(){return this.j.currentTime};g.ro=function(){return jT(this)};
g.Td=function(){return isNaN(this.j.duration)?-1:this.j.duration};g.Ge=function(){return this.j.ended};g.Qc=function(){return new N(this.j.offsetWidth,this.j.offsetHeight)};g.so=function(){return this.j.seeking};g.R=function(){this.vf();this.j=null;hT.N.R.call(this)};g.getError=function(){return this.j.error};
g.si=function(){this.vf();this.o=new vn(this);this.o.P(this.j,hO,this.Nz);this.o.P(this.j,"canplay",this.iy);this.o.P(this.j,"ended",this.Lw);this.o.P(this.j,"webkitbeginfullscreen",this.Jk);this.o.P(this.j,"webkitendfullscreen",this.uo);this.o.P(this.j,"pause",this.Nw);this.o.P(this.j,"playing",this.Xz);this.o.P(this.j,"timeupdate",this.yA);this.o.P(this.j,"volumechange",this.Ow);this.o.P(this.j,"error",this.to);this.o.P(this.j,Li||pO()&&(!pO()||!qO(lO,8))?"loadeddata":"canplay",this.oz);this.D=
new $S;this.o.P(this.D,"click",this.Kw);aT(this.D,this.j);this.F=new ke(1E3);this.o.P(this.F,"tick",this.Mw);this.F.start()};g.vf=function(){null!=this.D&&(bT(this.D),this.D=null);null!=this.F&&this.F.dispose();null!=this.o&&(this.o.dispose(),this.o=null);iT(this)};function iT(a){a.K=!1;a.B=!1;a.G=!1;a.A=0;a.U=!1;a.S.clear();kT(a);Ub(a.C)}g.Nz=function(a){this.Y(a.type)};function lT(a){a.B||(a.B=!0,kT(a),a.Y("start"),uO()||!Mc||Mc&&qO(mO,3)||oO()&&(!pO()||!qO(lO,4))||a.Jk())}
g.iy=function(){var a;if(a=Ni)a=wc,a=!(a&&(Ra(a,"SMART-TV")||Ra(a,"SmartTV")));a&&!this.U&&(this.uf(.001),this.U=!0)};g.oz=function(){this.K||(this.K=!0,this.Y("loaded"))};g.Xz=function(){this.Y("play");pO()||Li||lT(this)};
g.yA=function(){if(!this.B&&(pO()||Li)){if(0>=this.getCurrentTime())return;if(Li&&this.Ge()&&1==this.Td()){this.to();return}lT(this)}if(pO()||sO()){if(1.5<this.getCurrentTime()-this.A){this.G=!0;this.uf(this.A);return}this.G=!1;this.getCurrentTime()>this.A&&(this.A=this.getCurrentTime())}var a=this.S;a.j[a.o]=this.j.currentTime;a.o=(a.o+1)%a.A;this.Y("timeUpdate")};g.Ow=function(){this.Y("volumeChange")};
g.Nw=function(){var a;this.B&&pO()&&!this.M&&2>jT(this)-this.j.currentTime?(this.C=new ke(250),this.o.P(this.C,"tick",this.fy),this.C.start(),a=!0):a=!1;a||this.Y("pause")};g.Lw=function(){var a=XM(UM(),136961002),b=!0;if(pO()||sO()||a&&Mc)b=this.A>=this.j.duration-1.5;!this.G&&b&&this.Y("end")};g.Jk=function(){this.Y("beginFullscreen")};g.uo=function(){this.Y("endFullscreen")};g.to=function(){kT(this);this.Y("error")};g.Kw=function(){this.Y("click")};
g.Mw=function(){var a=this.Qc(),b=this.Ud();if(a.width!=this.L.width||a.height!=this.L.height)!this.J&&b?this.Jk():this.J&&!b&&this.uo(),this.L=a,this.J=b};g.fv=function(){if(!this.B){try{wO(vO.getInstance(),16)}catch(a){}iT(this);this.Y("mediaLoadTimeout")}};g.fy=function(){if(this.Ge()||!this.tf())Ub(this.C);else{var a=this.j.duration-this.j.currentTime,b=jT(this)-this.j.currentTime;0<b&&(2<=b||2>a)&&(Ub(this.C),this.play())}};
function jT(a){for(var b=a.j.buffered.length-1;0<=b;){if(a.j.buffered.start(b)<=a.j.currentTime)return a.j.buffered.end(b);b--}return 0}function kT(a){a.H&&(ne(a.H),a.H=null)};function mT(){J.call(this);this.o=new nT;this.j=new vn(this);var a=zM();if(a){a:{if(gc(a.j,"videoElementMockDuration")&&(a=a.j.videoElementMockDuration,ga(a)))break a;a=NaN}this.duration=a}}B(mT,J);function saa(){var a=["video/mp4"],b=["video/ogg"],c=new mT;c.canPlayType=function(c){return tb(a,c)?"probably":tb(b,c)?"maybe":""};c.width=0;c.height=0;c.offsetWidth=0;c.offsetHeight=0;return c}function taa(a){this.startTime=0;this.endTime=a}function nT(){this.length=0;this.j=[]}nT.prototype.start=function(a){return this.j[a].startTime};
nT.prototype.end=function(a){return this.j[a].endTime};g=mT.prototype;g.readyState=0;g.currentTime=0;g.duration=NaN;g.xf=!0;g.zo=!1;g.autoplay=!1;g.controls=!1;g.volume=1;g.muted=!1;g.src="";g.Uw=1;g.playbackRate=0;g.wd=null;g.xi=0;g.lB=4;g.gg=null;g.Wi=null;
g.play=function(){this.zo&&(this.currentTime=0,this.Y("timeupdate"));this.xf&&(this.xf=!1,this.Y("play"),this.readyState=this.lB,2>=this.readyState?this.Y("waiting"):this.Y("playing"));if(null===this.wd||this.wd.isDisposed())this.wd=new ke(10),this.wd.P("tick",x(this.Kq,this));this.xi=A();this.wd.start();this.autoplay=!1};g.pause=function(){this.autoplay=!1;this.xf||(this.wd.stop(),this.xf=!0,this.Y("timeupdate"),this.Y("pause"))};
g.load=function(){this.readyState=0;this.xf=!0;this.Y("loadstart");this.setProperty("duration",isNaN(this.duration)?10+20*Math.random():this.duration);var a=this.o;a.j.push(new taa(this.duration));a.length=a.j.length;this.Y("loadedmetadata");0<this.currentTime&&this.Y("timeupdate");this.Y("loadeddata");this.Y("canplay");this.Y("canplaythrough");this.Y("progress");this.playbackRate=this.Uw};
g.setProperty=function(a,b){switch(a){case "currentTime":var c=Number(b);this.Y("seeking");this.currentTime=c;this.Y("seeked");this.Kq();break;case "duration":this.duration=Number(b);this.Y("durationchange");break;case "volume":this.volume=Number(b),this.Y("volumechange")}};g.Kq=function(){var a=A()-this.xi,b=this.currentTime+a/1E3;this.xi+=a;2<this.readyState&&(this.currentTime=Math.min(b,this.duration));this.Y("timeupdate");this.currentTime==this.duration&&(this.zo=this.xf=!0,this.wd.stop(),this.Y("ended"))};
g.R=function(){this.wd&&this.wd.dispose();this.j.dispose()};g.SA=function(a){var b=null,c=null;switch(a.type){case "loadeddata":b="Loaded";break;case "playing":b="Playing";c="#00f";break;case "pause":b="Paused";break;case "ended":b="Ended",c="#000"}b&&this.Wi&&(this.Wi.innerText=b);c&&this.gg&&(this.gg.style.backgroundColor=c)};Fc&&Tc(8);function uaa(){};var oT={},pT={},qT={},rT={};function sT(){throw Error("Do not instantiate directly");}sT.prototype.fd=null;sT.prototype.getContent=function(){return this.content};sT.prototype.toString=function(){return this.content};function tT(){sT.call(this)}B(tT,sT);function uT(a,b){var c;a:{var d=a(b||vaa,void 0,void 0);c=Bf().createElement("DIV");d=waa(d);c.innerHTML=d;if(1==c.childNodes.length&&(d=c.firstChild,1==d.nodeType)){c=d;break a}}return c}function waa(a){if(!ia(a))return String(a);if(a instanceof sT){if(a.Vb===oT)return a.getContent();if(a.Vb===rT)return Ba(a.getContent())}return"zSoyz"}var vaa={};function vT(a){if(null!=a)switch(a.fd){case 1:return 1;case -1:return-1;case 0:return 0}return null}function wT(){sT.call(this)}B(wT,sT);wT.prototype.Vb=oT;function Y(a){return null!=a&&a.Vb===oT?a:a instanceof qf?xT(sf(a),a.gf()):xT(Ba(String(String(a))),vT(a))}function yT(){sT.call(this)}B(yT,sT);yT.prototype.Vb={};yT.prototype.fd=1;function zT(){sT.call(this)}B(zT,sT);zT.prototype.Vb=pT;zT.prototype.fd=1;function AT(){sT.call(this)}B(AT,sT);AT.prototype.Vb=qT;AT.prototype.fd=1;
function BT(){sT.call(this)}B(BT,sT);BT.prototype.Vb={};BT.prototype.fd=1;function CT(){sT.call(this)}B(CT,sT);CT.prototype.Vb={};CT.prototype.fd=1;function DT(a,b){this.content=String(a);this.fd=null!=b?b:null}B(DT,tT);DT.prototype.Vb=rT;function ET(a){function b(a){this.content=a}b.prototype=a.prototype;return function(a){return new b(String(a))}}var xT=function(a){function b(a){this.content=a}b.prototype=a.prototype;return function(a,d){var e=new b(String(a));void 0!==d&&(e.fd=d);return e}}(wT);
ET(yT);ET(zT);ET(AT);var xaa=ET(BT);ET(CT);var FT={},GT={};function HT(a,b,c){var d="key_"+a+":"+b,e=FT[d];if(void 0===e||0>e)FT[d]=0,GT[d]=c;else if(0==e)throw Error('Encountered two active delegates with the same priority ("'+a+":"+b+'").');}function IT(a,b){var c=GT["key_"+a+":"+b];c||""==b||(c=GT["key_"+a+":"]);return c?c:yaa;throw Error('Found no active impl for delegate call to "'+a+":"+b+'" (and not allowemptydefault="true").');}function yaa(){return""}
var JT=function(a){function b(a){this.content=a}b.prototype=a.prototype;return function(a,d){var e=String(a);if(!e)return"";e=new b(e);void 0!==d&&(e.fd=d);return e}}(wT);function KT(a){return Y(a)}function LT(a){return null!=a&&a.Vb===oT?(a=a.getContent(),a=String(a).replace(zaa,"").replace(Aaa,"&lt;"),String(a).replace(Baa,Caa)):Ba(String(a))}var MT=/['()]/g;function Daa(a){return"%"+a.charCodeAt(0).toString(16)}
function NT(a){a=za(String(a));MT.lastIndex=0;return MT.test(a)?a.replace(MT,Daa):a}var OT={};function PT(a){OT[1]||(OT[1]=new uaa);var b=vT(a);if(null==b){var c=b=0,d=!1;a=Re(a+"",null!=a&&a.Vb===oT).split(Xe);for(var e=0;e<a.length;e++){var f=a[e];Ue.test(Re(f,void 0))?(b++,c++):Ve.test(f)?d=!0:Te.test(Re(f,void 0))?c++:Ye.test(f)&&(d=!0)}b=0==c?d?1:0:.4<b/c?-1:1}return xaa(1!=b?-1==b?'dir="rtl"':1==b?'dir="ltr"':"":"")}
var Eaa={"\x00":"&#0;","\t":"&#9;","\n":"&#10;","\x0B":"&#11;","\f":"&#12;","\r":"&#13;"," ":"&#32;",'"':"&quot;","&":"&amp;","'":"&#39;","-":"&#45;","/":"&#47;","<":"&lt;","=":"&#61;",">":"&gt;","`":"&#96;","\u0085":"&#133;","\u00a0":"&#160;","\u2028":"&#8232;","\u2029":"&#8233;"};function Caa(a){return Eaa[a]}
var Faa={"\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 QT(a){return Faa[a]}var Baa=/[\x00\x22\x27\x3c\x3e]/g,RT=/[\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,Gaa=/^(?![^#?]*\/(?:\.|%2E){2}(?:[\/?#]|$))(?:(?:https?|mailto):|[^&:\/?#]*(?:[\/?#]|$))/i,zaa=/<(?:!|\/?([a-zA-Z][a-zA-Z0-9:\-]*))(?:[^>'"]|"[^"]*"|'[^']*')*>/g,Aaa=/</g;function Haa(a,b,c){return""+IT("a",a.Yh)(a,null,c)}
HT("a","",function(a){a=a||{};return'<div class="videoAdUi"><div class="videoAdUiTopBar videoAdUiTopBarWithGradients"><div class="videoAdUiAuthorIcon"></div><div class="videoAdUiTitle ellipsisText"></div><div class="videoAdUiAuthorName ellipsisText"></div><div class="videoAdUiLearnMore">'+Y(a.Cf)+'</div><div class="videoAdUiShare"></div></div><div class="videoAdUiBottomBar"><div class="videoAdUiLearnMoreText">'+Y(a.Cf)+'<div class="videoAdUiLearnMoreIcon"></div></div><div class="videoAdUiAttributionContainer"><div class="videoAdUiAttribution"'+KT(PT(a.Lc))+
">"+Y(a.Lc)+'</div><div class="videoAdUiAttributionIconContainer"><div class="videoAdUiAttributionIcon" id="videoAdUiAttributionIcon"></div><div class="videoAdUiAdInfoPopup"><div class="videoAdUiAdInfoPopupCallout"></div><div class="videoAdUiAdInfoPopupText" '+KT(PT(a.re))+">"+Y(a.re)+'</div></div></div></div></div><div class="videoAdUiProgressBar" dir="ltr"><div class="videoAdUiBuffer"></div><div class="videoAdUiProgress"></div></div></div>'});
HT("a","redesign2014q4",function(a){a=a||{};return'<div class="videoAdUi"><div class="videoAdUiTopBar videoAdUiTopBarWithGradients"><div class="videoAdUiAuthorIcon"></div><div class="videoAdUiTopButtons"><div class="videoAdUiTopButton videoAdUiTopButtonInfo"><div class="videoAdUiTopButtonCallout"><div class="videoAdUiTopButtonTooltip">'+Y(a.infoText)+'</div></div></div><div class="videoAdUiTopButton videoAdUiTopButtonShare"><div class="videoAdUiTopButtonCallout"><div class="videoAdUiTopButtonTooltip videoAdUiTopButtonShareTooltip">'+
Y(a.GJ)+'</div></div></div><div class="videoAdUiTopButton videoAdUiTopButtonWatchLater"><div class="videoAdUiTopButtonCallout"><div class="videoAdUiTopButtonTooltip">'+Y(a.IJ)+'</div></div></div></div><div class="videoAdUiTitle ellipsisText"></div><div class="videoAdUiAuthorName ellipsisText"></div></div><div class="videoAdUiBottomBar"><div class="videoAdUiBottomBarText"><div class="videoAdUiAttributionContainer"><div class="videoAdUiAttribution"'+KT(PT(a.Lc))+">"+Y(a.Lc)+'</div><div class="videoAdUiAttributionIconContainer"><div class="videoAdUiAttributionIcon" id="videoAdUiAttributionIcon"></div><div class="videoAdUiAdInfoPopup"><div class="videoAdUiAdInfoPopupCallout"></div><div class="videoAdUiAdInfoPopupText" '+
KT(PT(a.re))+">"+Y(a.re)+'</div></div></div></div><div class="videoAdUiVisitAdvertiserLink"><div class="videoAdUiVisitAdvertiserLinkText"></div><div class="videoAdUiVisitAdvertiserIcon"></div></div></div></div><div class="videoAdUiProgressBar" dir="ltr"><div class="videoAdUiBuffer"></div><div class="videoAdUiProgress"></div></div></div>'});
function Iaa(a){return'<div class="videoAdUi"><div class="videoAdUiTopBar"><div class="videoAdUiAttributionContainer videoAdUiAttributionContainer-gvn"><div class="videoAdUiAttribution"'+KT(PT(a.Lc))+">"+Y(a.Lc)+'</div></div></div><div class="videoAdUiProgressBar" dir="ltr"><div class="videoAdUiProgress"></div></div></div>'}
function Jaa(a){return'<div class="videoAdUi"><div class="videoAdUiTopBar"><div class="videoAdUiAttributionContainer videoAdUiAttributionContainer-gvn"><div class="videoAdUiAttribution"'+KT(PT(a.Lc))+">"+Y(a.Lc)+'</div></div><div class="videoAdUiLearnMoreText videoAdUiLearnMoreText-gvn">'+Y(a.Cf)+'<div class="videoAdUiLearnMoreIcon"></div></div></div><div class="videoAdUiProgressBar" dir="ltr"><div class="videoAdUiProgress"></div></div></div>'}
function Kaa(){return'<div class="videoAdUiPreSkipContainer"><div class="videoAdUiPreSkipButton"><div class="videoAdUiPreSkipText"></div><div class="videoAdUiPreSkipThumbnail" aria-hidden="true"></div></div></div>'}function ST(){var a="",b=ra("Share");return a+b}function TT(a){return""+IT("b",a.Yh)(a,null,void 0)}HT("b","",function(a){a=a||{};var b="";a=ra("You can skip this ad in {$xSeconds}",{xSeconds:Y(a.Uf)});return b+a});
HT("b","redesign2014q4",function(a){a=a||{};var b="";a=ra("You can skip to video in {$xSeconds}",{xSeconds:Y(a.Uf)});return b+a});
function Laa(a){return'<div class="videoAdUiSkipContainer html5-stop-propagation"><button tabindex="2" class="videoAdUiExtendButton videoAdUiAction" style="display: none">'+Y(a.Dv)+'</button><br/><button tabindex="1" class="videoAdUiSkipButton videoAdUiAction">'+Y(a.skipText)+'<div class="videoAdUiSkipIcon"></div><div class="videoAdUiAutoSkipText"></div></button></div>'}function Maa(){var a="",b=ra("Continue Ad");return a+b}
function UT(a){var b="";a=2<=a.$i&&1<=a.Eh?ra("Ad {$adPosition} of {$totalAds} {$timeLeft}",{adPosition:Y(a.Eh),totalAds:Y(a.$i),timeLeft:Y(a.Xi)}):ra("Ad {$timeLeft}",{timeLeft:Y(a.Xi)});return b+=a}function VT(){var a=WT(),b=xT("</a>"),c="",a=ra("Visit Google's {$beginFormat}Ad Settings{$endFormat} to learn more about how ads are targeted or to opt out of personalized ads.",{beginFormat:Y(a),endFormat:Y(b)});return xT(c+("<div class='videoAdUiAdSettingsLongTooltip'>"+a+"</div>"))}
function WT(){return xT('<a href="https://www.google.com/settings/ads/onweb" target="_blank">')}
function XT(a){return xT("<div class='videoAdUiPopupBackground'><div class='videoAdUiPopupCloseIcon'><svg height=\"100%\" viewBox=\"0 0 24 24\" width=\"100%\"><path d=\"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z\" fill=\"#fff\"></path></svg></div><div class='videoAdUiPopupPositioner'><form class='videoAdUiPopupFrame'><div class='videoAdUiPopupHeading videoAdUiHideIfEmpty'>"+Y(a.heading)+"</div><div class='videoAdUiPopupText'>"+Y(a.message)+
"</div><div class='videoAdUiPopupButtons'>"+Y(a.buttons)+"</div></form></div></div>")}
function Naa(a){for(var b="<ul class='videoAdUiWhyThisAdReasons videoAdUiHideIfEmpty'>",c=a.Jq,d=c.length,e=0;e<d;e++)b+="<li>"+Y(c[e])+"</li>";b+="</ul><div class='videoAdUiWhyThisAdGenericMessage'>"+Y(a.bi)+"</div><a class='videoAdUiWhyThisAdUnsubscribe videoAdUiHideIfEmpty'>"+Y(a.unsubscribe)+"</a><a class='videoAdUiWhyThisAdMute videoAdUiHideIfEmpty'>"+Y(a.mute)+"</a><a class='videoAdUiWhyThisAdControl videoAdUiHideIfEmpty' href='https://www.google.com/settings/ads/onweb' target='_blank'>"+Y(a.control)+
"</a>";a=""+XT({heading:JT(""+Y(a.heading)),message:JT(b),buttons:JT("<button class='videoAdUiWhyThisAdCloseButton videoAdUiPopupDefaultButton'>"+Y(a.close)+"</button>")});return xT(a)}
function Oaa(a){return xT(XT({heading:JT("<div class='videoAdUiPopupBack'></div>"+Y(a.heading)),message:JT(""+Y(a.message)),buttons:JT("<button class='videoAdUiUnsubscribeCancel videoAdUiPopupButton'>"+Y(a.cancel)+"</button><button class='videoAdUiUnsubscribeConfirm videoAdUiPopupDefaultButton'>"+Y(a.confirm)+"</button>")}))}
function Paa(a){for(var b=""+Y(a.question),c=a.options,d=c.length,e=0;e<d;e++)var f=c[e],b=b+("<label for='videoAdUiMuteOption"+LT(e)+"'><input type='radio' id='videoAdUiMuteOption"+LT(e)+"' name='videoAdUiMuteOption' class='videoAdUiMuteOption"+LT(e)+"' />"+Y(f)+"</label>");a=""+XT({heading:JT(Y(a.heading)+" <a class='videoAdUiMuteUndo'>"+Y(a.undo)+"</a>"),message:JT(b),buttons:JT("<button class='videoAdUiUnsubscribeCancel videoAdUiPopupButton'>"+Y(a.cancel)+"</button><button class='videoAdUiUnsubscribeConfirm videoAdUiPopupDefaultButton'>"+
Y(a.confirm)+"</button>")});return xT(a)}function Qaa(a){var b=String(""+a.heading);return xT(XT({heading:b?new DT(b,void 0):"",message:JT(""+Y(a.message)),buttons:JT("<button class='videoAdUiUnsubscribeCancel videoAdUiPopupButton'>"+Y(a.cancel)+"</button><button class='videoAdUiUnsubscribeConfirm videoAdUiPopupDefaultButton'>"+Y(a.confirm)+"</button>")}))};function ZT(a,b,c){if(null==a||!bg(Df(a),a))throw cO(yN,null,"containerElement","element");this.C=a;this.o=this.j=null;this.B=b;this.D=c||!1;this.A=null;this.j=O("div",{style:"display:none;"});a=zM();AM(a,"useVideoElementMock")?(a=saa(),b=O("div",{style:"position:absolute;width:100%;height:100%;top:0px;left:0px;"}),qa(b,a),a.gg=O("div",{style:"position:absolute;width:100%;height:100%;top:0px;left:0px;background-color:#000"}),a.Wi=O("p",{style:"position:absolute;top:25%;margin-left:10px;font-size:24px;color:#fff;"}),
a.gg.appendChild(a.Wi),b.appendChild(a.gg),a.j.P(a,["loadeddata","playing","pause","ended"],a.SA),a=b):(a="",b=ra("Advertisement"),a=O("video",{style:"background-color:#000;position:absolute;width:100%;height:100%;",title:a+b}));a.setAttribute("webkit-playsinline",!0);this.o=a;this.C.appendChild(this.j);this.j.appendChild(this.o);this.B&&(a=O("div",{id:this.B,style:"display:none;background-color:#000;position:absolute;width:100%;height:100%;"}),this.j.appendChild(a));this.D&&(this.A=O("div",{style:"position:absolute;width:100%;height:100%;"}),
this.j.appendChild(this.A))}B(ZT,H);ZT.prototype.initialize=function(){nO()&&this.o.load()};ZT.prototype.R=function(){Wf(this.j);ZT.N.R.call(this)};ZT.prototype.da=function(){$T(this.j,!1)};function $T(a,b){null!=a&&(a.style.display=b?"block":"none")};function aU(a){J.call(this);this.M="ima-chromeless-video";var b=null;null!=a&&(w(a)?this.M=a:b=a);this.U=new vn(this);this.D=null;this.B=!1;this.ea=this.Qc();this.ca=this.Ud();this.J=-1;this.W=!1;this.F=-1;this.A=this.X=this.K=null;this.T="";this.j=!1;this.aa=null!=b;this.fa=this.ia=this.L=this.Z=this.o=null;this.C=void 0;this.G=this.ha=null;this.H=this.na=0;this.aa?(this.j=!0,this.o=b,this.C=2):(a=x(this.qv,this),bU?a():(cU.push(a),a=Rf("script"),a.src="https://www.youtube.com/iframe_api",b=document.getElementsByTagName("script")[0],
b.parentNode.insertBefore(a,b)))}B(aU,gT);var Raa=["video/mp4","video/webm"],Saa={el:"adunit",controls:0,html5:1,playsinline:1,ps:"gvn",showinfo:0},cU=[],bU=!1;g=aU.prototype;g.qq=function(a,b,c){var d=G(a,function(a){return!da(eT(a.o))});if(null!==d)return d;a=lb(a,function(a){a=D(a.j);return this.j?this.o.canPlayType(a):tb(Raa,a)},this);ub(c)||(d=ZS(a,b,c));return null!=d?d:ZS(a,b,[])};g.Hl=function(a){this.A=a};g.load=function(a,b){null!==a&&(this.T=a,this.j?dU(this,a,b):(this.K=a,this.X=b))};
g.getVideoUrl=function(){return this.T};g.setVolume=function(a){this.aa?this.Y("volumeChange"):this.j?(a=De(100*a,0,100),this.o.setVolume(a),this.F=-1,this.Y("volumeChange")):this.F=a};g.qd=function(){return this.j?this.o.getVolume()/100:this.F};g.play=function(){if(!C(D(this.T))){if(!this.B){eU(this);var a=15E3;null!=this.A&&0<this.A.j&&(a=this.A.j);this.wa=me(this.Oz,a,this)}this.j?(this.W=!1,!this.B&&this.A&&this.A.o?this.o.loadVideoByPlayerVars(this.ha):this.o.playVideo()):this.W=!0}};
g.pause=function(){this.j&&this.B&&this.o.pauseVideo()};g.tf=function(){return this.j?2==this.o.getPlayerState(this.C):!1};g.sf=function(){return this.j?this.o.isMuted():0==this.qd()};g.jk=function(){};g.Ud=function(){var a=EM.j?EM.A:document.getElementById(this.M);return a?VS(a):!1};g.mg=function(a){return this.j?this.o.getCurrentTime(this.C)>=a:!1};g.uf=function(a){this.j?this.o.seekTo(a,!1):this.J=a};g.getCurrentTime=function(){return this.j?this.o.getCurrentTime(this.C):-1};
g.ro=function(){return this.j&&this.B?this.o.getVideoLoadedFraction(this.C)*this.o.getDuration(this.C):0};g.Td=function(){return this.j&&this.B?this.o.getDuration(this.C):-1};g.getError=function(){return null};g.tk=function(){return dc(LM)};g.Ge=function(){return this.j?0==this.o.getPlayerState(this.C):!1};g.Qc=function(){var a=EM.j?EM.A:document.getElementById(this.M);return a?new N(a.offsetWidth,a.offsetHeight):new N(0,0)};g.so=function(){return!1};g.qo=function(){return 1==this.na};
g.Tw=function(){var a=this.Qc(),b=this.Ud();if(a.width!=this.ea.width||a.height!=this.ea.height)!this.ca&&b?this.Y("beginFullscreen"):this.ca&&!b&&this.Y("endFullscreen"),this.ea=a,this.ca=b};
g.si=function(){this.Z=x(this.zp,this);this.L=x(this.Kk,this);this.ia=x(this.Ap,this);this.fa=x(this.Zp,this);this.aa&&(this.o.addEventListener("onAdStateChange",this.L),this.o.addEventListener("onReady",this.Z),this.o.addEventListener("onStateChange",this.L),this.o.addEventListener("onVolumeChange",this.ia),this.o.addEventListener("showCompanionAdLoaded",this.fa));this.S=new ke(1E3);this.U.P(this.S,"tick",this.Tw);this.S.start()};
g.vf=function(){this.aa&&(this.o.removeEventListener("onAdStateChange",this.L),this.o.removeEventListener("onReady",this.Z),this.o.removeEventListener("onStateChange",this.L),this.o.removeEventListener("onVolumeChange",this.ia),this.o.removeEventListener("showCompanionAdLoaded",this.fa));null!=this.S&&this.S.dispose()};
g.qv=function(){var a=this.M,b={playerVars:nc(Saa),events:{cardstatechange:x(this.Sw,this),onError:x(this.Uz,this),onReady:x(this.zp,this),onAdStateChange:x(this.Kk,this),onStateChange:x(this.Kk,this),onVolumeChange:x(this.Ap,this),showCompanionAdLoaded:x(this.Zp,this)}},c=t("YT");this.o=null!=c&&null!=c.Player?new c.Player(a,b):null};
function dU(a,b,c){var d={};if(null!=a.A){var e=a.A.D;null!=e&&(d.agcid=e);e=a.A.B;null!=e&&(d.adformat=e);e=a.A.C;null!=e&&(d.ad_query_id=e);(e=a.A.F)&&(d.cta_conversion_urls=e);a.A.isPharma()&&(d.is_pharma=1);d.iv_load_policy=a.A.J?1:3;a.A.G&&(d.noiba=1);a.A.K&&(d.utpsa=1);a.A.A&&qc(d,a.A.A)}e=eT(b);null===e?d.url_encoded_third_party_media="url="+encodeURIComponent(b)+"&type="+encodeURIComponent(null===c?"":c):d.videoId=e;a.B=!1;a.A&&a.A.o?(a.ha=d,a.o.preloadVideoByPlayerVars(a.ha)):a.o.cueVideoByPlayerVars(d);
a.Y("loaded")}g.Uz=function(){this.Y("error")};g.zp=function(){this.j=!0;this.G&&this.Ik(this.G.videoId,this.G.te,this.G.Rf,this.G.Wh);-1!=this.F&&(this.setVolume(this.F),this.F=-1);null!=this.K&&(dU(this,this.K,this.X),this.X=this.K=null);-1!=this.J&&(this.uf(this.J),this.J=-1);this.W&&this.play()};g.Sw=function(a){this.na=a.data;this.Y("cardsStateChange")};
g.Kk=function(a){switch(a.data){case 0:this.B?this.Y("end"):this.Y("error");break;case 1:this.B||(eU(this),this.B=!0,this.H=0,this.Y("start"));this.Y("play");fU(this);this.D=new ke(100);this.U.P(this.D,"tick",this.np);this.D.start();break;case 2:this.Y("pause"),fU(this)}};g.Ap=function(){this.Y("volumeChange")};g.Zp=function(){this.Y("showCompanionAdLoaded")};function fU(a){a.U.ua(a.D,"tick",a.np);null!=a.D&&(a.D.stop(),a.D=null)}function eU(a){null!=a.wa&&ne(a.wa)}
g.np=function(){if(Ji||sO()){if(1.5<this.getCurrentTime()-this.H){this.j&&this.o.seekTo(this.H,!0);return}this.getCurrentTime()>this.H&&(this.H=this.getCurrentTime())}this.Y("timeUpdate")};g.Oz=function(){this.Y("mediaLoadTimeout")};g.Ik=function(a,b,c,d){if(b||c)this.j?this.o.addInfoCardXml(a,b,c,d):this.G={videoId:a,te:b,Rf:c,Wh:d}};g.ff=function(){if(!this.j)return null;var a=this.o.getVideoData();return a?a.cpn:null};g.El=function(a){this.j&&eT(this.getVideoUrl())&&this.o.sendVideoStatsEngageEvent(a)};
g.R=function(){fU(this);eU(this);this.vf();this.j=!1;this.U.dispose();this.J=-1;this.X=null;this.W=!1;this.K=null;this.F=-1;this.Z=this.o=this.A=null;this.B=!1;this.T="";aU.N.R.call(this)};q("onYouTubeIframeAPIReady",function(){bU=!0;E(cU,function(a){a()});vb(cU)},window);function gU(a){J.call(this);this.j=a||ab();this.A=[]}B(gU,J);gU.prototype.o=!1;gU.prototype.connect=function(){for(this.o=!0;!ub(this.A);){var a=this.A.shift();this.sendMessage(a.name,a.type,a.data)}};gU.prototype.send=function(a,b,c){this.o?this.sendMessage(a,b,c):this.A.push({name:a,type:b,data:c})};function hU(a,b,c,d,e){sc.call(this,a);this.hc=b;this.rd=c;this.ko=d;this.B=e}B(hU,sc);hU.prototype.getOrigin=function(){return this.B};hU.prototype.toString=function(){return""};function iU(a,b){gU.call(this,b);this.B=a;this.Ec=null;this.C=new vn(this);this.logger=null;this.C.P(Nf(),"message",this.receive)}B(iU,gU);function jU(a){if(null==a||!w(a)||!ua(a,"ima://"))return null;a=a.substr(6);try{return ve(a)}catch(b){return null}}iU.prototype.sendMessage=function(a,b,c){null!=this.Ec&&null!=this.Ec.postMessage&&this.Ec.postMessage(Taa(this,a,b,c),"*");null!=this.Ec&&null==this.Ec.postMessage&&wO(vO.getInstance(),11)};iU.prototype.R=function(){this.C.dispose();iU.N.R.call(this)};
iU.prototype.receive=function(a){a=a.j;var b=jU(a.data);if(kU(this,b)){if(null==this.Ec)this.Ec=a.source,this.o||this.connect();else if(this.Ec!=a.source)return;kU(this,b)&&this.Y(new hU(b.name,b.type,b.data||{},b.sid,a.origin))}};function Taa(a,b,c,d){var e={};e.name=b;e.type=c;null!=d&&(e.data=d);e.sid=a.j;e.channel=a.B;return"ima://"+xe(e)}function kU(a,b){if(null==b)return!1;var c=b.channel;if(null==c||c!=a.B)return!1;c=b.sid;return null==c||"*"!=a.j&&c!=a.j?!1:!0};function lU(a,b){J.call(this);this.B=a;this.A=b;this.j={};this.o=new vn(this);this.o.P(Nf(),"message",this.C)}B(lU,J);lU.prototype.send=function(a){var b=a.A;this.j.hasOwnProperty(b)&&this.j[b].send(a.type,a.hc,a.rd)};function mU(a,b,c,d){a.j.hasOwnProperty(b)||(c=new iU(b,c),a.o.P(c,a.B,function(a){a=new nU(a.type,a.hc,a.rd,a.ko,a.getOrigin(),b);this.Y(a)}),c.Ec=d,c.connect(),a.j[b]=c)}lU.prototype.R=function(){this.o.dispose();for(var a in this.j)Ub(this.j[a]);lU.N.R.call(this)};
lU.prototype.C=function(a){a=a.j;var b=jU(a.data);if(null!=b){var c=b.channel;if(this.A&&!this.j.hasOwnProperty(c)){var d=b.sid;mU(this,c,d,a.source);this.Y(new nU(b.name,b.type,b.data||{},d,a.origin,c))}}};function nU(a,b,c,d,e,f){hU.call(this,a,b,c,d,e);this.A=f}B(nU,hU);function oU(){var a=t("google.ima.gptProxyInstance",Nf());if(null!=a)return a;vn.call(this);this.A=new lU("gpt",!0);I(this,this.A);this.P(this.A,"gpt",this.D);this.j=null;pU()||Nf().top===Nf()||(this.j=new lU("gpt",!1),I(this,this.j),this.P(this.j,"gpt",this.C))}B(oU,vn);function pU(){return!!t("googletag.cmd",Nf())}function qU(){var a=t("googletag.console",Nf());return null!=a?a:null}
oU.prototype.D=function(a){var b=a.getOrigin(),c=jh("//imasdk.googleapis.com"),b=jh(b);if(c[3]==b[3]&&c[4]==b[4])if(null!=this.j)mU(this.j,a.A,a.ko,Nf().parent),null!=this.j&&this.j.send(a);else if(c=a.rd,null!=c&&p(c.scope)){var b=c.scope,c=c.args,d;if("proxy"==b)c=a.hc,"isGptPresent"==c?d=pU():"isConsolePresent"==c&&(d=null!=qU());else if(pU())if("pubads"==b||"companionAds"==b){d=a.hc;var e,f=Nf().googletag;if(null!=f&&null!=f[b]&&(f=f[b](),null!=f&&(d=f[d],null!=d)))try{e=d.apply(f,c)}catch(h){}d=
e}else if("console"==b){if(f=a.hc,e=qU(),null!=e&&(f=e[f],null!=f))try{f.apply(e,c)}catch(h){}}else if(null===b){d=a.hc;e=Nf();if(tb(["googleGetCompanionAdSlots","googleSetCompanionAdContents"],d)&&(b=e[d],"googleSetCompanionAdContents"==d&&wO(vO.getInstance(),40,{type:"gptProxy"},!0),null!=b))try{f=b.apply(e,c)}catch(h){}d=f}p(d)&&(a.rd.returnValue=d,this.A.send(a))}};oU.prototype.C=function(a){this.A.send(a)};function rU(a,b,c,d,e,f,h,k,l,n,r,u){this.B=a;this.C=n;this.D=b;this.F=d;this.G=k;this.H=u;this.J=e;this.K=f;this.j=h;this.o=l;this.A=r}rU.prototype.isPharma=function(){return this.H};function Uaa(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,n,r,u){if("%"==n)return"%";var z=c.shift();if("undefined"==typeof z)throw Error("[goog.string.format] Not enough arguments");arguments[0]=z;return sU[n].apply(null,arguments)})}
var sU={s:function(a,b,c){return isNaN(c)||""==c||a.length>=c?a:a=-1<b.indexOf("-",0)?a+Ua(" ",c-a.length):Ua(" ",c-a.length)+a},f:function(a,b,c,d,e){d=a.toString();isNaN(e)||""==e||(d=parseFloat(a).toFixed(e));var f;f=0>a?"-":0<=b.indexOf("+")?"+":0<=b.indexOf(" ")?" ":"";0<=a&&(d=f+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-f.length;return d=0<=b.indexOf("-",0)?f+d+Ua(" ",a):f+Ua(0<=b.indexOf("0",0)?"0":" ",a)+d},d:function(a,b,c,
d,e,f,h,k){return sU.f(parseInt(a,10),b,c,d,0,f,h,k)}};sU.i=sU.d;sU.u=sU.d;function tU(a,b){J.call(this);this.B=new vn(this);this.G=!1;this.H=ab();this.D=new Yg;var c=this.H,d=("https:"==document.location.protocol?"https:":"http:")+Uaa("//imasdk.googleapis.com/js/core/bridge0.0.0_%s.html","en"),e;a:{var f=window;try{do{try{if(0==f.location.href.indexOf(d)||0==f.document.referrer.indexOf(d)){e=!0;break a}}catch(h){}f=f.parent}while(f!=f.top)}catch(h){}e=!1}e&&(d+="?f="+c);c=O("iframe",{src:d+"#"+c,style:"border:0; opacity:0; margin:0; padding:0; position:relative;"});zn(this.B,
c,"load",this.Nv);a.appendChild(c);this.o=c;c=this.D.get("*");null==c&&(c=new iU(this.H,"*"),this.G&&(c.Ec=cg(this.o),c.connect()),this.D.set("*",c));this.C=c;this.F=b;this.j=this.F.D;this.A=null;this.B.P(this.C,"mouse",this.bw);this.B.P(this.C,"touch",this.rw);null!=this.j&&(this.B.P(this.C,"displayContainer",this.Zv),this.B.P(this.C,"videoDisplay",this.ow),this.B.P(this.j,dc(raa),this.RA));c=Nf();d=t("google.ima.gptProxyInstance",c);null==d&&(d=new oU,q("google.ima.gptProxyInstance",d,c))}
B(tU,J);g=tU.prototype;g.R=function(){this.B.dispose();null!==this.A&&(this.A.dispose(),this.A=null);Wg(this.D.Ub(!1),function(a){a.dispose()});this.D.clear();Wf(this.o);tU.N.R.call(this)};g.bw=function(a){var b=a.rd,c=Ag(this.o),d=document.createEvent("MouseEvent");d.initMouseEvent(a.hc,!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(!Ni||pO()||0==document.webkitIsFullScreen)this.o.blur(),window.focus();this.o.dispatchEvent(d)};
function uU(a,b){var c=Ag(a.o),d=F(b,function(a){return document.createTouch(window,this.o,a.identifier,a.pageX+c.x,a.pageY+c.y,a.screenX,a.screenY)},a);return document.createTouchList.apply(document,d)}
g.rw=function(a){var b=a.rd,c=Ag(this.o),d=document.createEvent("TouchEvent");d.initTouchEvent(a.hc,!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,uU(this,b.touches),uU(this,b.targetTouches),uU(this,b.changedTouches),b.scale,b.rotation);this.o.dispatchEvent(d)};
g.ow=function(a){if(null!=this.j){var b=a.rd;switch(a.hc){case "startTracking":this.j.si();break;case "stopTracking":this.j.vf();break;case "exitFullscreen":this.j.jk();break;case "play":this.j.play();break;case "pause":this.j.pause();break;case "load":this.j.load(b.videoUrl,b.mimeType);break;case "setCurrentTime":this.j.uf(b.currentTime);break;case "setPlaybackOptions":a=b.playbackOptions,this.j.Hl(new rU(a.adFormat,a.adSenseAgcid,0,a.ctaAnnotationTrackingEvents,a.showAnnotations,a.viewCountsDisabled,
a.loadVideoTimeout,a.ibaDisabled,a.enablePreloading,a.adQemId,null,a.isPharma))}}};
g.RA=function(a){var b={};switch(a.type){case "beginFullscreen":a="fullscreen";break;case "endFullscreen":a="exitFullscreen";break;case "click":a="click";break;case "end":a="end";break;case "error":a="error";break;case "loaded":a="loaded";break;case "mediaLoadTimeout":a="mediaLoadTimeout";break;case "pause":a="pause";b.ended=this.j.Ge();break;case "play":a="play";break;case "skip":a="skip";break;case "start":a="start";break;case "timeUpdate":a="timeupdate";b.currentTime=this.j.getCurrentTime();b.duration=
this.j.Td();break;case "volumeChange":a="volumeChange";b.volume=this.j.qd();break;default:return}this.C.send("videoDisplay",a,b)};g.Zv=function(a){switch(a.hc){case "showVideo":null!=this.A?bT(this.A):(this.A=new $S,this.B.P(this.A,"click",this.OA));aT(this.A,vU(this.F));a=this.F;null!=a.j&&$T(a.j.j,!0);break;case "hide":null!==this.A&&(this.A.dispose(),this.A=null),this.F.da()}};g.OA=function(){this.C.send("displayContainer","videoClick")};
g.Nv=function(){Wg(this.D.Ub(!1),function(a){a.Ec=cg(this.o);a.connect()},this);this.G=!0};function wU(a,b,c,d,e){if(!(e||null!=a&&bg(Df(a),a)))throw cO(yN,null,"containerElement","element");this.A=a;var f=e=null!=b||null!=d,h=!1;EM.j||(EM.j||pO()||Mc&&(!Mc||!qO(mO,4))||Ra(wc,"CrKey")||tO()||Ra(wc,"Roku")||rO()||Ra(wc,"Xbox"))&&e||(nO()||Ra(wc,"CrKey")||tO()||Ra(wc,"Roku")||rO()||Ra(wc,"Xbox")||(h=!0),f=!1);this.C=f;this.G=h||f&&null!=d;EM.j?a=null:(e=O("div",{style:"position:absolute"}),a.insertBefore(e,a.firstChild),a=e);this.o=a;this.j=this.C||!this.o||EM.j||!nO()?null:new ZT(this.o,
null,!0);a=null;this.C?b?a=new hT(b):d&&(a=new aU(d)):this.j&&(a=new hT(this.j.o));this.B=(this.D=a)?c||null:null;this.H=null!=this.B;wO(vO.getInstance(),8,{enabled:this.C,yt:null!=d,customClick:null!=this.B});null===this.o?(b=this.A,EM.A=b):this.C&&b&&!ha(b.getBoundingClientRect)&&(b=this.A,EM.A=b);this.F=null==this.o||EM.j?null:new tU(this.o,this)}wU.prototype.initialize=function(){null!=this.j&&this.j.initialize()};wU.prototype.destroy=function(){Ub(this.j);Ub(this.F);Ub(this.D);Wf(this.o)};
wU.prototype.da=function(){null!=this.j&&this.j.da()};function vU(a){return a.H&&a.B?a.B:null!=a.j?a.j.A:null}wU.prototype.setSize=function(a,b){var c=this.o;null!=c&&(-1==a?(c.style.right=0,c.style.left=0):c.style.width=a+"px",-1==b?(c.style.bottom=0,c.style.top=0):c.style.height=b+"px");null!=this.F&&(c=this.F,c.o.width=-1==a?"100%":a,c.o.height=-1==b?"100%":b)};var xU="ad_type vpos mridx pos vad_type videoad_start_delay".split(" ");
function yU(a,b){var c=[],d="",e="";if(null!=b){for(var d=b,e=[],f=0;d&&25>f;++f){var h;a:{if(d&&d.nodeName&&d.parentElement){h=d.nodeName.toString().toLowerCase();for(var k=d.parentElement.childNodes,l=0,n=0;n<k.length;++n){var r=k[n];if(r.nodeName&&r.nodeName.toString().toLowerCase()==h){if(d==r){h="."+l;break a}++l}}}h=""}e.push((d.nodeName&&d.nodeName.toString().toLowerCase())+""+h);d=d.parentElement}d=e.join();if(b){e=(e=b.ownerDocument)?e.defaultView||e.parentWindow:null;f=[];if(e)try{var u=
e.parent;for(h=0;u&&u!=e&&25>h;++h){for(var z=u.frames,k=0;k<z.length;++k)if(e==z[k]){f.push(k);break}e=u;u=e.parent}}catch(y){}e=f.join()}else e=""}c.push(d,e);if(null!=a){for(u=0;u<xU.length-1;++u)c.push(xh(a,xU[u])||"");u=xh(a,"videoad_start_delay");z="";u&&(u=parseInt(u,10),z=0>u?"postroll":0==u?"preroll":"midroll");c.push(z)}else for(u=0;u<xU.length;++u)c.push("");c=c.join(":");u=c.length;if(0==u)c=0;else{z=305419896;for(d=0;d<u;d++)z^=(z<<5)+(z>>2)+c.charCodeAt(d)&4294967295;c=0<z?z:4294967296+
z}return c.toString()};function zU(){J.call(this);this.currentTime=0}B(zU,J);function AU(a){zU.call(this);this.currentTime=a.currentTime;if(!("currentTime"in a)||isNaN(a.currentTime))throw cO(yN,null,"content","currentTime");this.j=a;this.ya=new ke(250);this.o=new vn(this);yn(this.o,this.ya,"tick",this.A,this)}B(AU,zU);AU.prototype.start=function(){this.ya.start()};AU.prototype.stop=function(){this.ya.stop()};AU.prototype.R=function(){AU.N.R.call(this);this.o.dispose();this.ya.dispose()};
AU.prototype.A=function(){if("currentTime"in this.j&&!isNaN(this.j.currentTime)){var a=this.currentTime;this.currentTime=this.j.currentTime;a!=this.currentTime&&this.Y(new sc("currentTimeUpdate"))}else this.Y(new sc("contentWrapperError")),this.stop()};function BU(){this.reset()}BU.prototype.reset=function(){this.j=0;this.o=null};function CU(){this.o=this.j=null}CU.prototype.reset=function(){this.o=this.j=null};function DU(){this.j=EU();this.H=-1;this.L=this.M=this.A=this.G=this.B=null;this.D=EU();this.o=null;this.S=this.J=this.K="";this.F=this.U=this.T=this.C=null}function EU(){return Math.floor(4503599627370496*Math.random())}var FU=new DU;DU.prototype.clear=function(){this.j=EU();this.A=this.G=this.B=null;this.D=EU();this.o=null;this.S=this.J=this.K="";this.F=this.U=this.C=null};function GU(a){if(EM.j){var b;return"h.3.0.0"}b="h."+a.S;null!=a.C&&(b+="/n."+a.C,null!=a.B&&(b+="/"+a.B));return b};function HU(a,b){J.call(this);this.j=a;this.D=!!b;this.A=IU(this);if(!this.A){var c=Fc&&!Tc("7")?"readystatechange":"load";this.o=md(this.j,c,this.C,!1,this);this.B=window.setInterval(x(this.C,this),100)}}B(HU,J);HU.prototype.o=null;function JU(a){a.B&&(window.clearInterval(a.B),a.B=null)}HU.prototype.R=function(){delete this.j;JU(this);vd(this.o);HU.N.R.call(this)};
function IU(a){var b=!1;try{if(a.D||!Fc||Tc("11"))var c=a.j,d=(c.contentDocument||c.contentWindow.document).body,b=a.D?!!d&&!!d.firstChild:!!d;else b="complete"==a.j.readyState}catch(e){}return b}HU.prototype.C=function(){IU(this)&&(JU(this),vd(this.o),this.o=null,this.A=!0,this.Y("ifload"))};function KU(){J.call(this);this.B=!1;this.impressionUrls=[]}B(KU,J);function LU(a,b,c){sc.call(this,a);this.B=b||null;this.A=c||null}B(LU,sc);LU.prototype.getError=function(){return this.B};function MU(a,b){this.F=a;this.D=F(b,function(a){return a.clone()});this.C="";this.o=this.A=0;this.j=!0;this.B=[]}function NU(a){a.C="";a.A=0;a.o=0;a.j=!0;a.B=[]}MU.prototype.getContent=function(){return this.C};MU.prototype.clone=function(){var a=new MU(this.F,this.D),b=this.A,c=this.o,d=this.j,e=this.B;a.C=this.C;a.A=b;a.o=c;a.j=d;a.B=e||[];return a};function OU(){KU.call(this);this.G=[];this.C=!1;this.A="not_loaded";this.o=null;this.D=0;this.j=null;this.H=new Cf}B(OU,KU);ba(OU);function PU(a){var b=["googletag","googletag.cmd"];return G(a,function(a){return pb(b,function(b){return!da(t(b,a))})})||null}g=OU.prototype;g.R=function(){this.o&&this.o.dispose();OU.N.R.call(this)};g.initialize=function(){if(!this.B){var a;var b=lg(new Cf);try{t("googletag"),PU([b,b.top]),a=!0}catch(c){a=!1}a?QU(this):(this.B=!0,this.A="not_available")}};
function RU(a){return a.B?F(a.G,function(a){return a.clone()}):[]}function Vaa(a){a=RU(a);return null!=a?F(a,function(a){return a.D}):void 0}function SU(a,b,c){var d=0,e=0;null!=b&&(b=new P(b.j),d=Number(b.j.get("pod")||0),e=Number(b.j.get("ppos")||0));if(null!=a.setVideoSession)try{a.setVideoSession(FU.j,d,e,c)}catch(f){}}function Waa(a,b){var c=TU(a);if(null!==c){SU(c,b,!0);try{c.refreshAllSlots()}catch(d){}}}g.setVideoContent=function(a,b){var c=UU(this);if(null!=c)try{c.setVideoContent(a,b)}catch(d){}};
function VU(a,b){a.F=b;a.setVideoContent("","");var c=TU(a);null===c||SU(c,null,!1)}function TU(a){null==a.j&&WU(a);return null!=a.j&&null!=a.j.googletag&&null!=a.j.googletag.companionAds?a.j.googletag.companionAds():null}function UU(a){null==a.j&&WU(a);return null!=a.j&&null!=a.j.googletag&&null!=a.j.googletag.pubads?a.j.googletag.pubads():null}g.Cp=function(){0<this.D&&A()>=this.D?(this.B=!0,XU(this),YU(this)):QU(this)};
function XU(a){a.o&&(a.o.stop(),a.o.ua("tick",a.Cp,!1,a),a.o.dispose(),a.o=null)}
function QU(a){var b;if(b=!a.C)WU(a),b=null!=a.j&&null!=a.j.googleGetCompanionAdSlots;if(b){var c;try{if(null==a.j)a.C=!0,c=[];else{var d=a.j.googleGetCompanionAdSlots();c=F(d,a.GB,a)}}catch(f){a.C=!0,c=[]}a.G=c;a.C=!0}if("retrieved"!=a.A&&"not_available"!=a.A&&!da(TU(a))){var e;b=TU(a);if(null!==b&&null!=b.getDisplayAdsCorrelator)try{e=b.getDisplayAdsCorrelator()}catch(f){e=null}else e=null;switch(e){case "not_loaded":case "not_available":a.A=e;break;default:e=Number(e),isNaN(e)?a.A="not_available":
(a.F=e,a.A="retrieved")}}a.C&&"retrieved"==a.A?(a.B=!0,XU(a),a.Y(new LU("companions_success"))):a.C&&"not_available"==a.A?(a.B=!0,XU(a),YU(a)):a.o||(a.D=A()+5E3,a.o=new ke(100),a.o.P("tick",a.Cp,!1,a),a.o.start())}function WU(a){var b=lg(a.H);try{a.j=PU([b,b.top])}catch(c){a.j=null}}function YU(a){a.Y(new LU("companion_initialization_failed",Error("Partial or full service initialization failure.")))}
g.GB=function(a){var b=F(a.adSizes,function(a){return new N(a.adWidth,a.adHeight)});return new MU(a.slotId,b)};g.Ru=function(a){var b={};b.slotId=a.F;b.adContent=a.getContent();b.adWidth=a.A;b.adHeight=a.o;b.friendlyIframeRendering=a.j;XM(UM(),9419278)&&(b.onAdContentSet=x(this.By,this,a));return b};
g.By=function(a,b){var c;if(a.j)c=b.querySelector("iframe");else{var d=Zf(b);d&&(c=Zf(d))}if(c&&"IFRAME"==c.tagName)if(d=new HU(c,!0),d.A)ZU(this,a,c);else{var e=c;td(d,"ifload",function(){ZU(this,a,e)},!1,this)}};function ZU(a,b,c){a.Y(new LU("companion_slot_init",null,b));var d=c;"IFRAME"==c.tagName&&(d=(c.contentDocument||c.contentWindow.document).body);null!=d&&md(d,"click",x(a.Ay,a,b),!1,a)}g.Ay=function(a){this.Y(new LU("companion_click",null,a))};
g.sendImpressionUrls=function(a){oN(this.impressionUrls,a)};function $U(a,b){sc.call(this,a);this.A=b}B($U,sc);$U.prototype.getError=function(){return this.A};function aV(a){sc.call(this,a)}B(aV,sc);function bV(){}var Xaa={IMAGE:"Image",Ht:"Flash",ALL:"All"},Yaa={HTML:"Html",IFRAME:"IFrame",STATIC:"Static",ALL:"All"},Zaa={SG:"IgnoreSize",gI:"SelectExactMatch",hI:"SelectNearMatch"},$aa={pG:"DisallowResize",VH:"ResizeSmaller"};function cV(a,b){if(null==a||0>=a.width||0>=a.height)throw cO(yN,null,"ad slot size",a.toString());this.o=a;this.j=null!=b?b:new bV;this.C=dV(Yaa,this.j.A)?this.j.A:"All";this.B=dV(Xaa,this.j.creativeType)?this.j.creativeType:"All";this.F=dV(Zaa,this.j.B)?this.j.B:"SelectExactMatch";this.G=dV($aa,this.j.o)?this.j.o:"DisallowResize";this.A=null!=this.j.C?this.j.C:[];this.D=ga(this.j.j)&&0<this.j.j&&100>=this.j.j?this.j.j:90}
function eV(a,b){var c=[];E(b,function(a){!C(D(a.j.B))&&(isNaN(a.j.j)||isNaN(fV(a))||fV(a)==a.j.j)&&gV(this,a)?c.push(a):(a=aba(this,a),null!=a&&!C(D(a.j.B))&&c.push(a))},a);return c}
function gV(a,b){var c;if(c="Flash"!=b.getContentType()||BP){if(c="All"==a.C||a.C==b.j.aa)c=b.getContentType(),c=null!=c?"All"==a.B||a.B==c:!0;c&&(c=b.A,c=ub(a.A)?!0:null!=c?0<=jb(a.A,c):!1)}if(c){var d=b.j.Wb();if("IgnoreSize"==a.F||Je(a.o,d))c=!0;else if(c="SelectNearMatch"==a.F)"ResizeSmaller"==a.G&&(d=d.width<=a.o.width&&d.height<=a.o.height?d:hV(d,a.o)),c=d.width,d=d.height,c=c>a.o.width||d>a.o.height||c<a.D/100*a.o.width||d<a.D/100*a.o.height?!1:!0}else c=!1;return c}
function aba(a,b){var c=b.o;return null!=c?G(c,function(a){return gV(this,a)},a):null}function hV(a,b){var c=Math.min(b.width/a.width,b.height/a.height);return new N(c*a.width,c*a.height)}function dV(a,b){return null!=b&&bc(a,b)};function iV(){return YM([41351059,41351063])&&!DM()}function jV(a){switch(a){case 1:return"endslate";default:return"fullslot"}};function kV(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 bba(a){var b={};E(a.split(","),function(a){var d=a.split("=");2==d.length&&(a=ya(d[0]),d=ya(d[1]),0<a.length&&(b[a]=d))});return b}function lV(a,b){if(a[b])return mV(a[b]);var c=b.toLowerCase(),d;for(d in a)if(d&&d.toLowerCase()==c)return mV(a[d]);return!1}
function mV(a){return a?-1!=a.toString().search(/(?:true|1)/i):!1};function nV(a){P.call(this,a);this.F=new Yg;a=this.A;var b=a.indexOf(";"),c=null;0<=b?(Dh(this,a.substring(0,b)),c=a.substring(b+1)):Dh(this,a);cba(this,c)}B(nV,P);nV.prototype.toString=function(){return oV(this,nV.N.toString.call(this))};nV.prototype.Un=function(){return""};nV.prototype.hf=function(){return""};
function cba(a,b){C(D(b))||E(b.split(";"),function(a){var b=a.indexOf("=");if(0<b){var e=Aa(a.substring(0,b));a=Aa(a.substring(b+1));b=this.F.get(e);null!=b?tb(b,a)||b.push(a):b=[D(a)];this.F.set(e,b)}},a)}function dba(a){if(C(D("ord")))return null;a=a.F.get("ord");return null!=a?a:null}function pV(a,b,c){C(D(b))||(c=F(c,D),a.F.set(b,c))}function oV(a,b){var c=[D(b)];Cb(c,eba(a));return c.join(";")}
function eba(a){var b=dba(a);null!=b?C(D("ord"))||a.F.remove("ord"):b=[D(A())];var c=[];E(a.F.Ma(),function(a){E(this.F.get(a),function(b){Cb(c,a+"="+b)})},a);Cb(c,"ord="+b[0]);pV(a,"ord",b);return c}nV.prototype.clone=function(){return new nV(this.toString())};function qV(a){if(null==a)return!1;a=new P(a);var b=a.A;return xa(a.o,"googleads.g.doubleclick.net")&&rV("/pagead/ads",b)}function sV(a){a=a.j;return null!=a?"bid.g.doubleclick.net"==Mh(new P(a)):!1}function tV(a){if(null==a)return!1;var b=new nV(a);a=b.o;b=oV(b,b.A);return!xa(a,".g.doubleclick.net")&&xa(a,"doubleclick.net")&&rV("/(ad|pfad)[x|i|j]?/",b)}function uV(a){if(null==a)return!1;a=new P(a);var b=a.A;return xa(a.o,"doubleclick.net")&&rV("/gampad/(live/)?ads",b)}
function fba(a){return qV(a.j)||tV(a.j)||uV(a.j)||sV(a)}function gba(a){a=a.j;if(null==a)return null;a=Ph(new P(a));return null!=a.get("ms")?D(a.get("ms")):null}function rV(a,b){return C(D(b))?!1:(new RegExp(a)).test(b)};function vV(a){return aO(TN,null,a.parentNode.nodeName,a.nodeName)}function wV(a){return aO(IN,null,a.parentNode.nodeName,a.nodeName)}function xV(a,b){return null!=a?lb(Yf(a),function(a){return a.nodeName==b}):[]}function yV(a,b){var c=a.getAttribute(b);return null!=c?c.toLowerCase():null}function zV(a,b){if(null==a)return null;var c="";E(a.childNodes,function(a){if(4==a.nodeType||3==a.nodeType)c+=a.nodeValue});c=ya(c);return b?Ja(c):c}
function AV(a,b,c,d){null!=a&&E(Yf(a),function(a){if(a.nodeName==b)c.call(d,a);else throw vV(a);})}function BV(a){return C(D(a))?NaN:bb(D(a))}function CV(a,b){if(null!=a){var c=a.split(":");if(3==c.length)return c=new iA(0,0,0,bb(c[0]),bb(c[1]),bb(c[2])),60*(60*(24*c.j+c.o)+c.A)+c.B}return null!=b?b:-1}function DV(a,b){if(!C(D(a)))switch(a.toLowerCase()){case "true":case "1":return!0;case "false":case "0":return!1}return null!=b?b:!1};var hba=["ai","sigh"];function EV(a,b){if(b)return a;var c;c=null!=a&&/(doubleclick.net|googleadservices.com)/.test(a)?Ka(a,"/pagead/adview")?FV(a)?0:2:Ka(a,"/pagead/conversion")?FV(a)?1:2:2:2;if(0==c||1==c){c="&sdkv="+GU(FU);var d=a.indexOf("&adurl=");c=-1!=d?Wa(a.substr(0,d),c,a.substr(d,a.length)):a+c}else c=a;return c}function FV(a){return pb(hba,function(b){var c=a||"";return 0<=vh(c,0,b,c.search(wh))})};function GV(a,b){this.j=a;this.o=b}function HV(a){return a.o?-1:a.j}function IV(a,b){a.o&&(a.o=!1,a.j=a.j*b/100)};function JV(){this.j=new Yg}function KV(a,b){this.A=a;this.j=b}KV.prototype.getType=function(){return this.A};function LV(a,b){KV.call(this,"progress",a);this.o=b}B(LV,KV);function MV(a,b){E(b,function(a){var b=a.getType().toLowerCase(),e=NV(this,b);e.push(a);this.j.set(b,e)},a)}function OV(a,b,c,d){b=b.toLowerCase();var e=NV(a,b);null!=d?(d=new LV(c,d),null!=d?e.push(d):e.push(new KV(b,c))):e.push(new KV(b,c));a.j.set(b,e)}function NV(a,b){return null!=b?a.j.get(b.toLowerCase())||[]:[]}
function iba(a,b){var c=NV(a,"progress");E(c,function(a){IV(a.o,b)});Kb(c,function(a,b){return HV(a.o)-HV(b.o)})}JV.prototype.isEmpty=function(){return this.j.isEmpty()};function PV(a,b){return F(NV(a,b)||[],function(a){return a.j})};function QV(a,b){var c=new JV;AV(a,"Tracking",function(a){var e=yV(a,"event"),f=EV(zV(a),b);RV(f)&&null!=e&&("progress"==e?(a=yV(a,"offset"),a=SV(a),null!=a&&OV(c,e,f,a)):OV(c,e,f))});return c}function jba(a){if(C(D(a)))return null;a=new P(a);if("thismessage"!=a.B||"extensions"!=a.o)return null;a=a.A;if(!ua(a,"/"))return null;a=a.substr(1);return C(D(a))?null:a}
function SV(a){if(C(D(a)))return null;var b=null;0<a.indexOf("%")?(a=Number(a.substr(0,a.indexOf("%"))),!isNaN(a)&&0<=a&&(b=new GV(a,!0))):(a=CV(a),0<=a&&(b=new GV(a,!1)));return b}function RV(a){var b=!0;if(C(D(a)))b=!1;else try{new P(a)}catch(c){b=!1}return b};function TV(a,b){this.j=null!=a?a:new JV;this.G=null!=b?b:[]}function kba(a,b){var c=b.j;E(c.Ma(),function(a){MV(this.j,c.get(a))},a)}function UV(a,b){var c=PV(a.j,b);return null!=c?c:[]};function VV(a,b){TV.call(this);this.o=a;this.A=b}B(VV,TV);function WV(){}WV.prototype.parse=function(a){a=Zf(a);var b=zV(a),c;"skippable"==b?c="skippable":"nonskippable"==b&&(c="nonskippable");if(null==c)throw aO(AN);a=a.getAttribute("offset");a=SV(a);if("skippable"==c&&null==a)throw aO(zN);return new VV(c,a)};function XV(a,b){TV.call(this,b);this.o=a}B(XV,TV);function YV(a){TV.call(this);this.o=a}B(YV,TV);function ZV(a){TV.call(this);this.o=isNaN(a)?-1:a}B(ZV,TV);function lba(){this.o=this.B=1;this.j=this.A=0;this.C=1};function $V(){this.K={};this.Ga="";this.yf=new JV}$V.prototype.Pk=function(){return null};function aW(a,b,c){a.Ga=b;a.K=c}$V.prototype.Ug=function(a){this.ea=a};$V.prototype.getAd=function(){return this.ea};function bW(a,b){var c=[],d=a.M();E(d,function(a){a=NV(a.yf,b)||[];c=Ab(a,c)},a);return c}$V.prototype.M=function(){for(var a=[this],b=this.ea.j;b;){var c=cW(this,b)||cW(this,b,!0);null!=c&&a.push(c);b=b.j}return a};
function cW(a,b,c){var d=c||!1;return G(b.B,function(a){var b=a.j==this.j;return a instanceof this.constructor&&(d||b)},a)};function dW(a,b,c,d,e,f,h,k,l,n){this.B=a;this.j=b;this.F=c;isNaN(d)&&isNaN(e)&&isNaN(f)?f=e=0:isNaN(e)&&!isNaN(f)?e=f:!isNaN(e)&&isNaN(f)?f=e:!isNaN(d)&&isNaN(e)&&isNaN(f)&&(e=f=d);this.Xd=e;this.Wd=f;this.D=h;this.C=k;this.o=iN(D(l));this.A=n}dW.prototype.getWidth=function(){return this.D};dW.prototype.getHeight=function(){return this.C};function eW(a,b,c,d,e,f){$V.call(this);this.ga=a;this.A=b;this.o=c;this.J=Bb(d);this.fa=null;this.B=e;this.Na=Bb(f);Fb(this.Na,null,function(a){return a.H})}B(eW,$V);eW.prototype.Rc=function(){return this.A};function fW(a){var b=new Yg,c=a.M();E(c,function(a){if(a instanceof eW){var c=a.o;E(c.Ma(),function(a){b.set(a,Ab(c.get(a),b.get(a)||[]))},this)}},a);return b}
eW.prototype.getMediaUrl=function(a){var b="";ob(this.J,function(c){var d=c.o;return!C(D(a))&&a!=c.j||null==d||C(D(d))?!1:(b=d,!0)},this);return b};eW.prototype.Pk=function(){var a=G(this.J,function(a){return!C(D(a.j))&&-1!=a.j.indexOf("javascript")&&("VPAID"==a.A||"surveys"==a.A)});return null!=a?a.o:null};function gW(a,b,c){H.call(this);this.o=a;this.A=b;this.B=c;this.D=0;this.j=new vn(this);mba(this)}B(gW,H);function mba(a){a.B.forEach(function(a,c){this.j.P(c,"mousedown",this.F);this.j.P(c,"mouseup",this.H)},a);a.j.P(a.A,"mouseover",a.G)}gW.prototype.F=function(){this.C=A()};
gW.prototype.H=function(a){var b=null!=a.target.href?a.target:a.target.parentNode,c=[];this.o&1&&c.push("nm="+this.D);this.o&2&&c.push("nb="+this.B.get(b));if(this.o&8){var d=Ag(this.A);c.push("nx="+(a.clientX-d.x));c.push("ny="+(a.clientY-d.y))}this.o&16&&null!=this.C&&c.push("clkt="+(A()-this.C));0<c.length&&(b.href+=0<=b.href.indexOf("?")?"&"+c.join("&"):"?"+c.join("&"))};gW.prototype.G=function(){this.D++};gW.prototype.R=function(){gW.N.R.call(this);this.j.dispose()};var nba=Fc?'javascript:""':"about:blank";function hW(a,b,c,d,e){$V.call(this);C(D(a))&&(a=ab()+"_ima");this.S=D(a);this.ia=b;this.aa=c;this.Z=d;this.B=e;this.H=[];null!=this.Z?this.ca=KM[this.Z]||"Other":this.ca=null}B(hW,$V);g=hW.prototype;g.getContent=function(){return eg(this.Pd())};g.Dg=function(){return!1};g.Qk=function(){return this.Dg()?eg(this.Pd(!0)):""};g.getContentType=function(){return this.ca};g.Wb=function(){return this.ia};g.getWidth=function(){return this.Wb().width};g.getHeight=function(){return this.Wb().height};
g.Pk=function(){return"VPAID"==this.G?this.B:null};g.Rc=function(){return this.U};function iW(a,b,c,d,e){hW.call(this,a,b,c,d,e);this.X=this.o=null;this.ha=-2;this.A=null;this.T=this.L=v;this.W=[];this.na=[];this.C=!1}B(iW,hW);function jW(a,b){a.A=b;null!=a.o&&null!=b&&(kW(a,a.L),lW(a,a.T))}function kW(a,b){null!=a.A&&null!=a.o&&E(a.W,function(a){this.A.ua(a,"click",this.L);!C(D(this.Rc()))&&this.A.P(a,"click",b)},a);a.L=b}function lW(a,b){null!=a.A&&null!=a.o&&(a.A.ua(a.o,"creativeview",a.T),a.A.P(a.o,"creativeview",b));a.T=b}
iW.prototype.D=function(a){null==this.A||C(D(this.Rc()))||(this.A.P(a,"click",this.L),this.W.push(a))};iW.prototype.Pd=function(a){a?(null==this.X&&(this.X=this.ve(a),Tf(this.X,mW(this))),a=this.X):(null==this.o&&(this.o=this.ve(),Tf(this.o,mW(this))),a=this.o);null!=this.A&&this.A.P(a,"creativeview",this.T);return a};
function nW(a,b){var c=a.S,d={};d.style="cursor:default;position:relative;z-index:1001;height:"+a.getHeight()+"px;";"Text"!=a.getContentType()&&(d.style+="width:"+a.getWidth()+"px");C(D(c))||(d.id=c);return O("div",d,b)}iW.prototype.On=function(){return 2};
function mW(a){if(!a.C)return null;var b=bW(a,"start");Cb(b,bW(a,"creativeview"));if(null!=b&&!ub(b)){var c=[];E(b,function(a){if(!C(D(a))){var b;b=Bf();var f;f=w(void 0)?ef(void 0).kd():"";b=b.Sv("iframe",{frameborder:0,style:"border:0;vertical-align:bottom;"+f,src:nba});og(b,{display:"block",height:"0px",width:"0px"});f="iframe"+Math.floor(1E9*Math.random());b.setAttribute("height",0);b.setAttribute("width",0);b.setAttribute("src",iN(a.j));b.setAttribute("id",f);this.na.push(f);wb(c,b)}},a);return c}return null}
function oba(a,b){if(null!=a.o){var c=new Yg;E(a.W,function(a){c.set(a,this.On(a))},a);new gW(b,a.o,c)}}function pba(a){var b=[],c=a.M();E(c,function(a){b=Ab(b,a.H)},a);return b}iW.prototype.M=function(){var a=[this],b;for(b=this.getAd().j;b;){var c=this.C?cW(this,b)||cW(this,b,!0):oW(this,b)||oW(this,b,!0);null!=c&&a.push(c);b=b.j}return a};function oW(a,b,c){var d=c||!1;return G(b.B,function(a){var b=a.j==this.j;return this instanceof a.constructor&&(d||b)},a)};function pW(a,b,c,d,e,f,h,k,l,n,r,u,z,y,V,va){this.aa=a;this.X=b;this.J=c;this.Ca=d;this.ga=isNaN(h)||""==h||0==h?-1:h;this.W=k?Bb(k):[];this.H=l?Bb(l):[];this.B=n?Bb(n):[];this.Ga=r?Bb(r):[];this.F=[];E(this.Ga,function(a){Cb(this.F,Bb(a.j))},this);this.D=null;this.ca=!0;this.j=this.o=null;this.G=new Yg(u);this.K=null!=va;this.wa=(this.L=null!=z)?y||!1:!1;this.za=this.lx?V||!1:!1;this.Da=D(z);this.Ea=D(va);this.na=this.A=null;this.C=new lba;this.T=new N(0,0);this.Z=String(Math.floor(1E9*Math.random()));
this.M=this.S=this.U=null;this.ia=A();this.fa=this.ea=0;this.ha=this.Na=!1;E(Ab(this.B,this.F),function(a){a.Ug(this)},this);DM()&&qW(this)&&(this.F=lb(this.F,function(a){return 60>=a.getHeight()}))}function rW(a){var b;b=sW(a);b=lV(b,"hideMaster")||lV(b,"blockAllAds")?"3":qW(a)?tW(a)?"2_3":uW(a)?"2_4":vW(a)?wW(a)?"2_5":xW(a)?"2_1":"2_2":"2":"1";return(yW(a)?4:zW(a,JM)?15:AW(a,GM)||AW(a,IM)?1:BW(a)?2:0)+"_"+b}function CW(a){return null!=a.X?a.X:""}
function DW(a){return null!=a.j?Ab(DW(a.j),a.W):a.W}function EW(a){return null!=a.j?Ab(EW(a.j),a.H):a.H}g=pW.prototype;g.getContentType=function(){var a=this.o,b="";if(null===a)return b;if(a instanceof eW)a=a.fa,null===a||(b=D(a.j));else if(a instanceof iW)switch(a.aa){case "IFrame":case "Html":case "Static":b=D(a.Z)}return b};function FW(a){return null!=a.j?Ab(a.F,FW(a.j)):a.F}function sW(a){return null!=a.o?a.o.K:{}}
function qba(a){var b={};E(a.B,function(a){a=a.K;for(var d in a)b[d]=a[d]});return b}function rba(a){return null!=a.o?a.o.Ga:""}g.getExtension=function(a){return this.G.get(a)};function GW(a,b){a.o=b;a.T=null!=a.o&&a.o instanceof iW?a.o.Wb():new N(0,0)}function HW(a){return a.o}function IW(a){return null!=a.aa?a.aa:""}function JW(a){if(null==a.j||KW(a.j.J))return[];var b=[IW(a.j)];Cb(b,JW(a.j));return b}function sba(a){var b=JW(a).reverse();b.push(IW(a));return b}
function LW(a){if(null==a.j||KW(a.j.J))return[];var b=[CW(a.j)];Cb(b,LW(a.j));return b}function MW(a){if(!DM())return null;if(null!=a.j){var b=MW(a.j);if(null!=b)return b}a=a.getExtension("viral");return null!=a?a.o:null}function tba(a){var b=LW(a).reverse();b.push(CW(a));return b}function KW(a){return"YT:ADSENSE"==a||"YT:DOUBLECLICK"==a}function NW(a){if(null==a.j)return[a.J];var b=NW(a.j);b.push(a.J);KW(b[0])&&b.shift();return b}
function OW(a){a=a.getExtension("waterfall");return null!=a&&-1!=a.o?a.o:-1}function PW(a){if(-1!=a.ga)return a.ga;a=a.getExtension("pod");return null!=a&&-1!=a.o?a.o:-1}function QW(a,b,c,d){a=FW(a);return eV(new cV(new N(b,c),d),a)}function RW(a){var b=a.A.qf,c=a.A.pf;if(!b||!c)if(a=a.A.j?xh(a.A.j,"sz"):null)a=a.split("x"),2==a.length&&(b=parseInt(a[0],10)||0,c=parseInt(a[1],10)||0);return new N(b,c)}
function uba(a){if(!a.A||SW(a)&&!zW(a,["ADSENSE/ADX"]))return[];var b=RW(a);if(0>=b.width||0>=b.height)return[];var c=new bV;c.creativeType="All";c.A="All";c.B="SelectNearMatch";c.j=40;var d=QW(a,b.width,b.height,c);if(!ub(d))return d;c.o="ResizeSmaller";d=lb(FW(a),function(a){return a.j.Dg()},a);return eV(new cV(new N(b.width,b.height),c),d)}
function vba(a){var b=null,c=0;E(uba(a),function(a){var e;e=RW(this);e=!a.j.Dg()||a.getWidth()<=e.width&&a.getHeight()<=e.height?a.j.Wb():hV(a.j.Wb(),e);e=e.width*e.height;e>c&&(c=e,b=a)},a);return b}function wba(a){return a.D?a.D.j.Dg()?a.D.j.Qk():a.D.getContent():""}function TW(a,b){return b||null==a.j?a.Ga:Ab(a.Ga,TW(a.j))}function UW(a,b){return ob(a.B,function(a){return a instanceof eW&&"linear"==b||a instanceof iW&&"nonlinear"==b?!0:!1})}function uW(a){return-1!=VW(a)&&0!=VW(a)&&7>=VW(a)}
function qW(a){return a.Na?a.ha:WW(a)?!0:SW(a)?"video"==a.Ca:UW(a,"linear")}function vW(a){return null!=XW(a)}function WW(a){var b=a.o;return SW(a)&&null!=b&&b instanceof iW&&iV()&&(90<a.T.height||!DM()&&!1)}function YW(a,b){if(null==b)return null;var c=b.getExtension("adx");return null!=c?c:YW(a,b.j)}function wW(a){a=a.getExtension("AdSense");if(null==a)return!1;a=NV(a.j,"video_extend_clicked");return DM()?0!=a.length:!1}
function XW(a){var b=YW(a,a.j);if(null!=b){if("skippable"==b.o)return b.A;if("nonskippable"==b.o)return null}var b=null,c=new GV(5,!1),d=xba(a);"implicit"==d&&(b=c);var e=a.o;null==b&&null!=e&&e instanceof eW&&(b=e.B);null!=b||"explicit"!=d||(b=c);return null!=b&&DM()?a.A.ld("disable_skip_on_short_adsense")&&!tW(a)&&SW(a)&&33>=ZW(a)?null:isNaN(a.A.D)?c:new GV(a.A.D,!1):b}
function xba(a){if(null!=G(a.G.Ia(),function(a){return!ub(UV(a,"skip"))}))return"implicit";var b=a.G.get("DFP");if(b instanceof XV)switch(b.o){case "InstreamSelect":return"implicit";case "Generic":return"explicit"}a=a.o;return DM()&&null!=a&&(a=a.yf,null!=a&&!ub(NV(a,"skip")))?"explicit":"none"}
function $W(a){if(null==a.A)return!1;var b=a.A.j;null!=b&&xa(b,"/PrefetchedAd")&&null!=a.j&&(b=a.j.G.get("LocalRedirect"),b=null!=b?b.hd():null);(a=qV(b)||uV(b)||tV(b))||(null!=b?(b=Mh(new P(b)),a=xa(b,"viral.adsense.net")):a=!1);return a}
function xW(a){if(null==a.X||null==a.A)return!1;var b;(b=$W(a)||!1)&&!(b=SW(a)&&!zW(a,["ADSENSE/ADX"]))&&(zW(a,IM)?(b=a.G.get("DFP"),b=null!=b?"InstreamSelect"==b.o:!1):b=!1);if(b||a.j&&a.j.K&&$W(a.j))return!0;a=AW(a,["ADSENSE/ADX"])||a.j&&BW(a);return DM()&&!a}g.lx=function(){return this.L};function aX(a){return null===a.o?null:a.o.Rc()}function ZW(a){return null==a.o||a.o instanceof iW?-1:a.o.ga}function bX(a){return null===a.D?0:10}function VW(a){return ZW(a)+bX(a)}
function cX(a){return null===a.o?null:a.o.Pk()}function SW(a){return zW(a,FM)}function yW(a){return null!=a.j&&yW(a.j)||zW(a,HM)}function tW(a){var b=cX(a);return zW(a,["402"])||w(b)&&!da(b.match("//s0.2mdn.net/instream/html5/survey/survey.html"))}function BW(a){return AW(a,FM)||AW(a,["402"])}g.getWidth=function(){return qW(this)?0:this.T.width};g.getHeight=function(){return qW(this)?0:this.T.height};function dX(a){return a.U}function eX(a){a=a.getExtension("InfoCards");return null!=a?a.o:null}
function fX(a){a=a.getExtension("InfoCardsTracking");return null!=a?a.o:null}g.toString=function(){return"Ad: "+this.aa};function zW(a,b){return null!=a.X?tb(b,a.J):!1}function AW(a,b){for(var c=NW(a),d=c.length-1;0<=d;d--)if("UNKNOWN"!=c[d]){if(tb(b,c[d]))return!0;break}return!1}function gX(a){var b=tW(a)&&DM();if(a=null!=cX(a))a=0!=EM.D||b;return a};function hX(){J.call(this);this.A=[]}B(hX,J);hX.prototype.ln=function(){return!0};function iX(){return new pW("empty-ad","GDFP","GDFP","",0,0,0,[],[],[],[],new Yg)}hX.prototype.Ae=function(){return null};function jX(a){hX.call(this);this.j=a;this.F=null;this.G=!1;this.B=null;this.C=new vn;yn(this.C,this.j,["companions_success","companion_initialization_failed"],this.mA,this);yn(this.C,this.j,"companion_display_error",this.Cy,this);yn(this.C,this.j,["companion_slot_init","companion_click"],this.wy,this);this.j.B?this.G=!0:this.j.initialize()}B(jX,hX);g=jX.prototype;g.R=function(){this.destroy();jX.N.R.call(this)};
g.destroy=function(){null!=this.C&&this.C.dispose();this.B=null;E(this.A,function(a){NU(a)},this);this.o=null};function kX(a,b){Ub(a.o);a.o=new J;a.B=b;a.D=!0;a.G?lX(a):(a.D=mX(nX(b),[]),a.D||(a.B=null,a.o=null));return a.o}
function lX(a){var b=a.B;a.B=null;if(null!=a.j)if(ub(a.A))oX(a,Error("Companion slots not available."));else if(null!=b){var c=yba(a,b),d=a.j;try{d.j.googleSetCompanionAdContents(F(a.A,d.Ru,d)),d.sendImpressionUrls()}catch(f){d.Y(new LU("companion_display_error",f))}if(0<c.length&&b.ca){a=a.j;if(d=0!=c.length)d=NW(b),d=KW(d[0])&&1<d.length?d[1]:d[0],d="GDFP"==d;if(d){for(var d=[],e=0;e<c.length;e++)d.push(c[e].F);b=b.A;c=TU(a);if(null!==c){SU(c,b,!1);try{c.notifyUnfilledSlots(d)}catch(f){}}}}}else oX(a,
Error("Invalid master ad."))}function oX(a,b){a.Y(new $U("companion_display_error",b))}g.ln=function(){return this.D};g.mA=function(){null!=this.F&&(this.F.stop(),this.F.dispose(),this.F=null);if(null!=this.j){var a=RU(this.j);null!=a&&(this.A=a)}this.G=!0;null!=this.B&&lX(this);this.Y(new sc("initialized"))};g.Cy=function(a){oX(this,a.getError())};
g.wy=function(a){if(null!=a.A){var b=a.A;"companion_slot_init"==a.type?Ed(function(){null!=this.o&&this.o.Y(new aV("companion_impression"))},this):"companion_click"==a.type&&(zba(b.B),null!=this.o&&this.o.Y(new aV("companion_click")))}};function zba(a){XM(UM(),9419278)&&oN(a)}
function yba(a,b){var c=[],d=[];E(a.A,function(a){NU(a);ob(a.D,function(d){a:{d=QW(b,d.width,d.height);if(!ub(d)&&(d=Aba(d,c),null!=d)){var e=d.A;if(null!=e&&0!=a.F.indexOf(e)){d=!1;break a}c.push(d);var e=d.getContent(),l=d.getWidth(),n=d.getHeight(),r="IFrame"!=d.j.aa;d=d.j.H;a.C=e;a.A=l;a.o=n;a.j=r;a.B=d||[];d=!0;break a}d=!1}return d},this)||d.push(a)},a);var e=nX(b);a.D=mX(e,c);a.D||E(a.A,function(a){NU(a)},a);return d}
function mX(a,b){if(null==a)return!0;var c=a.j;return"all"==a.o?Bba(c,b):"any"==a.o?Cba(c,b):!0}function nX(a){return null==a||null==a.o||isNaN(a.o.j)?null:G(TW(a,!0),function(a){a=a.j;return ub(a)?!1:isNaN(a[0].j.j)?!1:a[0].j.j==fV(a[0])})}function Bba(a,b){return pb(a,function(a){return tb(b,a)})}function Cba(a,b){return ob(a,function(a){return tb(b,a)})}function Aba(a,b){return G(a,function(a){return!tb(b,a)})}g.Ae=function(){return this.j};function pX(a){this.j=a}g=pX.prototype;g.mk=function(){return vU(this.j)};g.gi=function(){return this.j.A};g.Be=function(){return this.j.A};g.oi=function(){var a=this.j.D;return null!=a?a:new aU};g.Bg=function(){var a=this.j;null!=a.j&&$T(a.j.j,!0)};g.Nf=function(){};g.fk=function(){return null!=this.j.B};g.Fk=function(){return this.j.C};g.Gk=function(){return!1};g.pi=function(){return this.j.G};g.setSize=function(a,b){this.j.setSize(a,b)};g.da=function(){};function qX(a,b){sc.call(this,"adsManagerLoaded");this.A=a;this.B=b}B(qX,sc);function rX(a,b,c,d){a.A.Md(new pX(b),c,d);return a.A};function sX(a){sc.call(this,a);this.D=[];this.C={};this.A=null;this.B=!0}B(sX,sc);function tX(){this.A=new Yg;this.o=.01>Math.random()&&!DM();this.B=0;this.j="0"}ba(tX);var Dba=/iu\=\/(\d+)\//;tX.prototype.start=function(a){this.o&&this.A.set(a,A())};tX.prototype.end=function(a,b){if(this.o&&$g(this.A,a)){var c=A()-this.A.get(a),d=uX(this,a,c,b);mN(d);this.A.remove(a);this.B+=c}};function Eba(){var a=tX.getInstance();a.sendMessage("ff",a.B);a.B=0}tX.prototype.sendMessage=function(a,b,c){this.o&&(a=uX(this,a,b,c),mN(a))};
function uX(a,b,c,d){d=d||{};var e=new P("https://csi.gstatic.com/csi?v=2&s=ima_sdk&action=html5");d.it=b+"."+c;d.sdkv=GU(FU);b=ZM(UM());C(D(b))||(d.e=b);Wb(d,function(a,b){Qh(e,b,a)},a);return e.toString()}function Fba(a,b){if(null!=b){var c=Aa(b),d=Dba.exec(c),c=D(Ph(new P(c)).get("client"));a.j=d&&2==d.length?d[1]:C(c)?"0":c}else a.j="0"};function vX(a,b,c){this.D=b;this.B=c;this.C=null;this.o=new vn(this);this.J=a;this.A=this.j=null;this.G=!1}vX.prototype.start=function(a,b){this.C=a;this.F=b;Gba(this);this.D.G?this.H():Bn(this.o,this.D,"initialized",this.H,this)};vX.prototype.H=function(){var a=this.D.Ae(),b;b=a.B?"retrieved"!=a.A?void 0:a.F:void 0;a=Vaa(a);null!=b&&(this.B.D=b);null!=a&&(this.B.F=a);Hba(this)};
function Hba(a){if(null===a.C)wX(a);else{var b=new P(a.C.j),c=D(b.j.get("vid")),b=D(b.j.get("cmsid")),d=a.B.K,e=a.B.J;a.B.K=c;a.B.J=b;if(C(D(c))||C(D(b)))wX(a);else if(c==d&&b==e)wX(a);else{var f=a.D.Ae();f.setVideoContent(c,b);Waa(f,a.C);a.A=new ke(100);yn(a.o,a.A,"tick",function(){var a;a:{var b=UU(f);if(null!=b)try{a=!1!==b.isAdRequestFinished();break a}catch(c){a=!0;break a}a=!1}a&&wX(this)},a);a.A.start()}}}
function Gba(a){a.j=new ke;Bn(a.o,a.j,"tick",function(){wX(this)},a);le(a.j,a.J);a.j.start()}function wX(a){null!=a.o&&(a.o.dispose(),a.o=null);null!=a.j&&(a.j.stop(),a.j=null);null!=a.A&&(a.A.stop(),a.A=null);a.G=!0;null===a.F||a.F()};function xX(){J.call(this);this.j=new Yg;this.o=null;this.D=new vn(this);I(this,this.D);this.C="";this.F=this.A=null}B(xX,J);var yX=null;function zX(){null!=yX||(yX=new xX);return yX}function AX(a,b){var c={};c.queryId=a;c.viewabilityString=b;zX().Y(new tM("measurable_impression",null,c))}function BX(a,b){var c={};c.queryId=a;c.viewabilityString=b;zX().Y(new tM("viewable_impression",null,c))}
function CX(a,b,c){var d={};d.queryId=a;d.viewabilityString=b;d.eventName=c;zX().Y(new tM("externalActivityEvent",null,d))}function Iba(a,b){a.A=b}function Jba(a,b){if(a.o){var c=a.j,d=window.setTimeout(function(){b("");E(c.Ma(),function(a){c.get(a)===b&&c.remove(a)})},200);a.j.set(d,b);var e={};a.B&&(e.isFullscreen=a.B.Ud());e.osdId=a.C;e.eventId=d;a.o.send("activityMonitor","fetchAdTagUrl",e)}else b("")}
function Kba(a,b,c,d){if(a.o){var e=200,f=UM();XM(f,41351051)?e=300:XM(f,41351052)?e=400:XM(f,41351053)&&(e=500);var h=a.j,e=window.setTimeout(function(){d("timeout");E(h.Ma(),function(a){h.get(a)===d&&h.remove(a)})},e);a.j.set(e,d);f={};a.B&&(f.isFullscreen=a.B.Ud());a.C&&(f.osdId=a.C);f.queryId=c;f.eventId=e;f.vastEvent=b;f.isOverlay=null!=a.A;a.A&&(f.overlayBounds=WS(a.A));a.o.send("activityMonitor","reportVastEvent",f)}else d("")}
xX.prototype.destroy=function(){this.D.ua(this.o,"activityMonitor",this.G);this.o=null};
xX.prototype.G=function(a){var b=a.rd,c=b.engagementString;switch(a.hc){case "appStateChanged":caa(b.appState,b.nativeTime);break;case "externalActivityEvent":CX(b.queryId,b.viewabilityString,b.eventName);break;case "measurableImpression":AX(b.queryId,b.viewabilityString);break;case "pageSignals":this.F=b.pageSignals;break;case "viewableImpression":BX(b.queryId,b.viewabilityString);break;case "viewability":a=b.eventId;window.clearTimeout(a);var d=this.j.get(a);d&&(this.j.remove(a),d(b.viewabilityString,
c));break;case "engagement":if(a=b.eventId,window.clearTimeout(a),d=this.j.get(a))this.j.remove(a),d(c)}};q("ima.bridge.getNativeViewability",function(a,b){zX();b({})},void 0);q("ima.bridge.triggerViewEvent",BX,void 0);q("ima.bridge.triggerMeasurableEvent",AX,void 0);q("ima.bridge.triggerExternalActivityEvent",CX,void 0);function DX(){};function EX(a,b,c){this.o=a;this.j=c;this.A=b};function Lba(a){this.A=a};function FX(a){this.A=a;this.o=this.j=!1}B(FX,Lba);function Mba(a,b,c){this.j=a;this.o=b;this.A=c};function GX(){this.j=new Yg}function HX(a,b,c){if(isNaN(c))throw Error("Incorrect time offset.");var d=[];$g(a.j,c)&&(d=a.j.get(c,[]));E(b,function(a){null!=a&&wb(d,a)});a.j.set(c,d)};function IX(a,b){this.j=a;this.o=b}B(IX,DX);IX.prototype.A=function(){return new EX(this.j,null,Nba(this))};
function Nba(a){var b=new GX;E(Yf(Zf(a.j)),function(a){switch(a.nodeName){case "Preroll":a=JX(this,a);HX(b,a,0);break;case "Midroll":var d=yV(a,"timeOffset"),e=CV(d);if(-1==e)throw aO(sN,null,"timeOffset",D(d));a=JX(this,a);HX(b,a,e);break;case "Postroll":a=JX(this,a);HX(b,a,-1);break;default:throw aO(EN,null,a.parentNode.nodeName,a.nodeName);}},a);if(0==b.j.Ma().length)throw aO(DN);return b}
function JX(a,b){var c=[];E(Yf(b),function(a){switch(a.nodeName){case "Ad":var b=D(zV(a));if(!C(b)){a=yV(a,"bumper");var f=this.o.clone();f.j=b;b=new FX(f);b.j=null!=a;b.o="always"==a;wb(c,b)}break;default:throw aO(EN,null,a.parentNode.nodeName,a.nodeName);}},a);return c};function KX(){this.A=null;this.B="http://www.google.com/adsense/support";this.D=0;this.C=15;this.o=5;this.j=3}function Oba(a,b){a.C=b};function LX(a,b,c,d,e,f,h,k,l,n,r){TV.call(this,n,r);this.C=a;this.D=b;this.A=c;this.F=l;this.H=h;this.B=f;this.o=e}B(LX,TV);LX.prototype.isPharma=function(){return this.F};function MX(){}MX.prototype.parse=function(a){var b;AV(a,"config",function(a){null!=b||(b=Pba(this,a))},this);return b};function Pba(a,b){var c;E(Yf(b),function(a){switch(a.nodeName){case "context":c="default"==a.getAttribute("data")?new KX:null;break;case "params":null!=c&&Qba(this,c,a)}},a);return c}function Qba(a,b,c){E(Yf(c),function(a){var c=a.attributes[0].value;switch(a.nodeName){case "attribution_url":b.B=c;break;case "attribution_text":b.A=c;break;case "signals":b.D=parseInt(c,10)}},a)};function NX(){}
NX.prototype.parse=function(a){if(null==a)return null;var b,c,d,e,f,h,k,l=!1,n=!1;E(Yf(a),function(a){switch(a.nodeName){case "AttributionText":c=zV(a);break;case "AttributionUrl":d=zV(a);break;case "ConversionUrl":f=zV(a);break;case "CustomTracking":null!=Yf(a)&&(e=QV(a));break;case "is_pharma":a=yV(a,"bool");n=DV(D(a));break;case "CheckedEvents":a=Yf(a);b=F(a,function(a){return yV(a,"id")});null!=b||(b=[]);break;case "PreviousAdInformation":zV(a);break;case "VisibleUrl":h=zV(a);break;case "UI":k=
(new MX).parse(a);break;case "ShowYouTubeAnnotations":var u=zV(a);l=DV(D(u),!1);case "QueryId":zV(a)}},this);null!=k||(k=new KX);return new LX(c,d,f,0,h,k,l,0,n,e,b)};function OX(){}OX.prototype.parse=function(a){if(null==a)return null;var b;E(Yf(a),function(a){switch(a.nodeName){case "CustomTracking":null!=Yf(a)&&(b=QV(a))}});a=null;null!=b&&0<NV(b,"skip").length&&(a="Generic");return new XV(a,b)};function PX(){}PX.prototype.parse=function(a){if(null==a)return null;var b,c;E(Yf(a),function(a){switch(a.nodeName){case "SkippableAdType":b=zV(a);break;case "CustomTracking":null!=Yf(a)&&(c=QV(a))}});return new XV(b,c)};function QX(){}QX.prototype.parse=function(a){if(null==a)return null;var b;E(Yf(a),function(a){switch(a.nodeName){case "CustomTracking":null!=Yf(a)&&(b=QV(a))}},this);return new TV(b)};function RX(a,b){a[b]||(a[b]=[]);return a[b]}function SX(a,b){return a[b]?a[b].length:0}function TX(a,b){if(null==a||null==b)return null==a==(null==b);if(a.constructor!=Array&&a.constructor!=Object)throw Error("Invalid object type passed into JsProto.areObjectsEqual()");if(a===b)return!0;if(a.constructor!=b.constructor)return!1;for(var c in a)if(!(c in b&&Rba(a[c],b[c])))return!1;for(var d in b)if(!(d in a))return!1;return!0}
function Rba(a,b){if(a===b||!(!0!==a&&1!==a||!0!==b&&1!==b)||!(!1!==a&&0!==a||!1!==b&&0!==b))return!0;if(a instanceof Object&&b instanceof Object){if(!TX(a,b))return!1}else return!1;return!0};function UX(a){this.j=a||{}}var VX;function WX(a){this.j=a||{}}var XX;function YX(a){this.j=a||{}}var ZX;function $X(a){this.j=a||{}}var aY,bY;function cY(a){this.j=a||{}}var dY;function eY(a){this.j=a||{}}var fY,gY;function hY(a){this.j=a||{}}var iY;function jY(a){this.j=a||{}}var kY;function lY(a){this.j=a||{}}var mY;function nY(a){this.j=a||{}}var oY;function pY(a){this.j=a||{}}var qY;function rY(a){this.j=a||{}}var sY;UX.prototype.equals=function(a){return TX(this.j,a?a.j:null)};
WX.prototype.equals=function(a){return TX(this.j,a?a.j:null)};WX.prototype.getType=function(){var a=this.j.type;return null!=a?a:0};var Sba=new YX,Tba=new jY,Uba=new eY,Vba=new hY,Wba=new lY,Xba=new nY,tY=new $X,Yba=new rY;YX.prototype.equals=function(a){return TX(this.j,a?a.j:null)};$X.prototype.equals=function(a){return TX(this.j,a?a.j:null)};
function uY(){if(!bY){var a={};bY={Mb:a};a.type={type:"e",label:1,ka:0};a.id={type:"s",label:1,ka:""};a.link_url={type:"s",label:1,ka:""};a.title={type:"s",label:1,ka:""};a.image={type:"m",label:1,ka:Zba,oa:vY()};a.event={type:"m",label:3,oa:wY()};a.target={type:"s",label:1,ka:""}}return bY}var Zba=new pY;function wY(){if(!dY){var a={};dY={Mb:a};a.type={type:"e",label:1,ka:0};a.base_url={type:"s",label:1,ka:""}}return dY}cY.prototype.equals=function(a){return TX(this.j,a?a.j:null)};
cY.prototype.getType=function(){var a=this.j.type;return null!=a?a:0};eY.prototype.equals=function(a){return TX(this.j,a?a.j:null)};var $ba=new pY;hY.prototype.equals=function(a){return TX(this.j,a?a.j:null)};var aca=new pY,bca=new pY,cca=new pY;jY.prototype.equals=function(a){return TX(this.j,a?a.j:null)};lY.prototype.equals=function(a){return TX(this.j,a?a.j:null)};nY.prototype.equals=function(a){return TX(this.j,a?a.j:null)};
function vY(){if(!qY){var a={};qY={Mb:a};a.image_url={type:"s",label:1,ka:""};a.thumbnail_url={type:"s",label:1,ka:""};a.image_height={type:"i",label:1,ka:0};a.image_width={type:"i",label:1,ka:0}}return qY}pY.prototype.equals=function(a){return TX(this.j,a?a.j:null)};rY.prototype.equals=function(a){return TX(this.j,a?a.j:null)};var dca=new pY;var xY;
xY={card:{prominence:{PROMINENCE_NONE:0,PROMINENCE_HIGHLIGHT:1,PROMINENCE_FEATURE:2},type:{TYPE_VOTE:3,TYPE_LOCATION:5,TYPE_NONE:0,TYPE_APP:2,TYPE_WEBSITE:4,TYPE_PRODUCT:1}},ad_card:{attribution_position:{POSITION_TOP_RIGHT:2,POSITION_BOTTOM_LEFT:0,POSITION_TOP_LEFT:1,POSITION_BOTTOM_RIGHT:3}},event:{type:{TYPE_ACTION_ENDCAP:9,TYPE_ACTION:6,TYPE_IMPRESSION_ENDCAP:8,TYPE_DISMISS:4,TYPE_NONE:0,TYPE_COLLAPSE_ENDCAP:10,TYPE_DISMISS_ENDCAP:11,TYPE_IMPRESSION:1,TYPE_EXPAND:2,TYPE_COLLAPSE:3,TYPE_HEADLINE_CLICK:5,TYPE_IMPRESSION_GALLERY:7}},
action:{type:{TYPE_PLAYLIST:7,TYPE_IRDB:8,TYPE_CHANNEL:2,TYPE_INTERNAL:13,TYPE_APPLICATION_STORE:4,TYPE_RESULTS:11,TYPE_NONE:0,TYPE_FUNDRAISING:10,TYPE_EXTERNAL:16,TYPE_HELPOUTS:15,TYPE_VOTE:18,TYPE_RESPONSE:12,TYPE_ATTRIBUTION:5,TYPE_SUBSCRIPTION:6,TYPE_INLINE_APPLICATION_STORE:19,TYPE_COLLAPSE:17,TYPE_MERCH:9,TYPE_HEADLINE:1,TYPE_VIDEO:3,TYPE_LETTERMAN:14}}};function yY(a,b,c){TV.call(this,c);this.o=a}B(yY,TV);function zY(a){this.j=a}
zY.prototype.parse=function(a){var b=NA(a);if(C(D(b)))return null;if(this.j){var c=AY;if(!VX){var d={};VX={Mb:d};if(!XX){var e={};XX={Mb:e};e.type={type:"e",label:1,ka:0};if(!ZX){var f={};ZX={Mb:f};f.major_version={type:"i",label:1,ka:0};f.minor_version={type:"i",label:1,ka:0}}e.version={type:"m",label:1,ka:Sba,oa:ZX};e.priority={type:"i",label:1,ka:0};e.start_time_ms={type:"j",label:1,ka:"0"};e.end_time_ms={type:"j",label:1,ka:""};e.action={type:"m",label:3,oa:uY()};e.event={type:"m",label:3,oa:wY()};
kY||(f={},kY={Mb:f},f.headline={type:"s",label:1,ka:""},f.description={type:"s",label:1,ka:""},f.attribution_icon_url={type:"s",label:1,ka:""},f.skippable_seconds={type:"i",label:1,ka:0},f.attribution_position={type:"e",label:1,ka:0});e.ad_card={type:"m",label:1,ka:Tba,oa:kY};if(!fY){f={};fY={Mb:f};f.headline={type:"s",label:1,ka:""};f.image={type:"m",label:1,ka:$ba,oa:vY()};f.description={type:"s",label:1,ka:""};f.rating={type:"f",label:1,ka:0};f.review_text={type:"s",label:1,ka:""};if(!gY){var h=
{};gY={Mb:h};h.merchant={type:"s",label:1,ka:""};h.price={type:"s",label:1,ka:""};h.shipping={type:"s",label:1,ka:""};h.shipping_tax={type:"s",label:1,ka:""};h.condition={type:"s",label:1,ka:""};h.unit_price={type:"s",label:1,ka:""};h.energy_label={type:"s",label:1,ka:""};h.description={type:"s",label:1,ka:""};h.rating={type:"f",label:1,ka:0};h.review_text={type:"s",label:1,ka:""};h.action={type:"m",label:3,oa:uY()};h.event={type:"m",label:3,oa:wY()}}f.offer={type:"m",label:3,oa:gY}}e.product_card=
{type:"m",label:1,ka:Uba,oa:fY};iY||(f={},iY={Mb:f},f.app_id={type:"s",label:1,ka:""},f.app_name={type:"s",label:1,ka:""},f.icon={type:"m",label:1,ka:aca,oa:vY()},f.price={type:"s",label:1,ka:""},f.rating_image={type:"s",label:1,ka:""},f.review_count={type:"i",label:1,ka:0},f.app_store_logo={type:"m",label:1,ka:bca,oa:vY()},f.button_text={type:"s",label:1,ka:""},f.screenshots={type:"m",label:3,oa:vY()},f.rating={type:"f",label:1,ka:0},f.back_button_text={type:"s",label:1,ka:""},f.screenshots_text=
{type:"s",label:1,ka:""},f.cover_photo={type:"m",label:1,ka:cca,oa:vY()});e.app_card={type:"m",label:1,ka:Vba,oa:iY};e.prominence={type:"e",label:1,ka:0};mY||(f={},mY={Mb:f},f.call_to_action_text={type:"s",label:1,ka:""});e.social_card={type:"m",label:1,ka:Wba,oa:mY};oY||(f={},oY={Mb:f},f.vote_line_1={type:"s",label:1,ka:""},f.vote_line_2={type:"s",label:1,ka:""},f.confirm_line_1={type:"s",label:1,ka:""},f.confirm_line_2={type:"s",label:1,ka:""});e.vote_card={type:"m",label:1,ka:Xba,oa:oY};e.sponsored=
{type:"b",label:1,ka:!1};e.teaser_text={type:"s",label:1,ka:""};aY||(f={},aY={Mb:f},f.hide_in_drawer={type:"b",label:1,ka:!1},f.show_in_endcap={type:"b",label:1,ka:!1},f.show_in_companion_mobile={type:"b",label:1,ka:!1},f.show_in_cta={type:"b",label:1,ka:!1});e.placement={type:"m",label:1,ka:tY,oa:aY};sY||(f={},sY={Mb:f},f.latitude_e6={type:"i",label:1,ka:0},f.longitude_e6={type:"i",label:1,ka:0},f.address={type:"s",label:1,ka:""},f.image={type:"m",label:1,ka:dca,oa:vY()},f.headline={type:"s",label:1,
ka:""});e.location_card={type:"m",label:1,ka:Yba,oa:sY}}d.card={type:"m",label:3,oa:XX};d.event={type:"m",label:3,oa:wY()}}a=c(this,a,VX);a=new UX(a);c=new JV;for(d=0;d<SX(a.j,"card");d++)if(e=d,e=new WX(RX(a.j,"card")[e]),f=e.j.placement,f=(f?new $X(f):tY).j.show_in_endcap,null!=f&&f)for(f=0;f<SX(e.j,"event");f++){var k,h=f;k=new cY(RX(e.j,"event")[h]);h=null;switch(k.getType()){case 9:h="video_card_endcap_action";break;case 10:h="video_card_endcap_collapse";break;case 11:h="video_card_endcap_dismiss";
break;case 8:h="video_card_endcap_impression"}h&&(k=k.j.base_url,OV(c,h,null!=k?k:""))}return new yY(b,0,c)}return new yY(b)};
function AY(a,b,c){for(var d={},e=0;e<b.attributes.length;e++){var f=b.attributes[e],h=c.Mb[f.nodeName];if(h)switch(h.type){case "b":d[f.nodeName]="false"!=f.nodeValue;break;case "d":case "f":d[f.nodeName]=parseFloat(f.nodeValue);break;case "e":d[f.nodeName]=xY[b.nodeName][f.nodeName][f.nodeValue];break;case "i":d[f.nodeName]=parseInt(f.nodeValue,10);break;default:d[f.nodeName]=f.nodeValue}}for(e=0;e<b.childNodes.length;e++)if(f=b.childNodes[e],f.nodeType==Node.ELEMENT_NODE){var h=c.Mb[f.nodeName],
k=AY(a,f,h.oa);3==h.label?(d[f.nodeName]||(d[f.nodeName]=[]),d[f.nodeName].push(k)):d[f.nodeName]=k}return d};function BY(a,b){TV.call(this);this.A=a;this.o=D(b)}B(BY,TV);BY.prototype.hd=function(){return this.o};function CY(a,b){this.logger=null;this.A=b;this.j={};this.o=[];this.j.CustomTracking=QV;this.j.UI=this.C}function DY(a,b){if(null==b)return null;var c={};E(Yf(b),function(a){c[a.nodeName]=null!=this.j[a.nodeName]?this.j[a.nodeName].call(this,a):null},a);return null==c.UI?null:c}
CY.prototype.C=function(a){var b={};E(this.o,function(a){b[a]=[]});var c=new RegExp("^"+this.A);E(Yf(a),function(a){"config"!=a.nodeName||E(Yf(a),function(a){"params"!=a.nodeName||E(Yf(a),function(a){var d=this.A?a.nodeName.replace(c,""):a.nodeName,e=a.getAttribute("data");null!=e||(e=zV(a));null!=a.getAttribute("learn_more")&&(e=e+"|");tb(this.o,d)?b[d].push(e):b[d]=e},this)},this)},this);return b};function EY(a,b,c,d,e,f){TV.call(this,f);this.A=a;this.C=b;this.D=c;this.B=d;this.o=e}B(EY,TV);function FY(a){return null!=a.o?a.o.length:0};function GY(){CY.call(this,0,"mute_");this.j.SurveyOptions=this.B}B(GY,CY);GY.prototype.parse=function(a){if(null==a)return null;a=DY(this,a);var b=a.UI;return new EY(b.gone,b.question,b.undo,b.hover_text,a.SurveyOptions||[],a.CustomTracking)};GY.prototype.B=function(a){var b=[],c=0;E(Yf(a),function(a){if("SurveyOption"==a.nodeName){var e,f;E(Yf(a),function(a){switch(a.nodeName){case "DisplayName":e=zV(a);break;case "URL":f=zV(a)}},this);null!=e&&null!=f&&(b.push({label:e,url:f}),c++)}},this);return b};function HY(){TV.call(this)}B(HY,TV);function IY(){}IY.prototype.j={Du:"TEMPLATE_PARAMETERS",Eu:"TEMPLATE_URL"};IY.prototype.parse=function(a){if(null==a)return null;E(Yf(a),function(a){switch(a.nodeName){case this.j.Du:eca(this,a)}},this);return new HY};function eca(a,b){E(Yf(b),function(a){a.nodeName==this.j.Eu&&zV(a)},a)};function JY(a,b,c,d){TV.call(this);this.A=a;this.B=b;this.C=c;this.o=d}B(JY,TV);function KY(){}KY.prototype.j={Xt:"Line1",Yt:"Line2",Zt:"Line3",St:"ImageUrl"};KY.prototype.parse=function(a){if(null==a)return null;var b,c,d,e;E(Yf(a),function(a){switch(a.nodeName){case this.j.Xt:b=zV(a,!0);break;case this.j.Yt:c=zV(a,!0);break;case this.j.Zt:d=zV(a,!0);break;case this.j.St:e=zV(a)}},this);return new JY(b,c,d,e)};function LY(a){TV.call(this);this.o=a}B(LY,TV);function MY(){}MY.prototype.parse=function(a){if(null==a)return null;var b;E(Yf(a),function(a){switch(a.nodeName){case "ViralExtensionData":a=a.getAttribute("query_id"),C(D(a))||(b=a)}},this);return new LY(b)};function NY(a,b,c,d,e,f,h,k,l,n,r){TV.call(this,d);this.J=a;this.K=b;this.H=c;this.C=e||null;this.B=f||null;this.L=h||null;this.A=k||null;this.o=l||null;this.F=n||null;this.D=r||null}B(NY,TV);function OY(){CY.call(this,0,"why_this_ad_");this.o.push("targeting_reason")}B(OY,CY);var fca=["menu","got_it"],gca=[["generic_message_left","generic_message_hypertext","generic_message_right"],["unsubscribe_visible_link","unsubscribe_legal","unsubscribe_redirect_url","unsubscribe_continue","unsubscribe_cancel"]];function PY(a,b){return null!=a?pb(b,function(b){return b in a}):!1}function hca(a,b){return null!=a?ob(b,function(b){return b in a}):!1}
OY.prototype.parse=function(a){if(null==a)return null;a=DY(this,a);var b=a.UI;if(!PY(b,fca))return null;var c,d=!0,e=!1;E(gca,function(a){hca(b,a)&&(PY(b,a)?e=!0:d=!1)});var f=b.targeting_reason;if(!d||!e||0==f.length)return null;for(var h=0;h<f.length;h++)Ka(f[h],"|")&&(f[h]+="https://support.google.com/ads/answer/1634057#Across+Google+products+and+services|"+b.learn_more);null!=b.generic_message_left&&(c=[b.generic_message_left,b.generic_message_hypertext,b.generic_message_right]);return new NY(b.menu,
b.targeting_reason,b.got_it,a.CustomTracking,c,b.unsubscribe_visible_link,b.unsubscribe_legal,b.control,b.unsubscribe_redirect_url,b.unsubscribe_continue,b.unsubscribe_cancel)};function QY(){}QY.prototype.parse=function(a){if(null==a)return null;a=a.getAttribute("sequence");a=null!=a?bb(a):NaN;a=isNaN(a)?-1:a;return new YV(a)};function RY(){TV.call(this)}B(RY,TV);function SY(){}SY.prototype.parse=function(a){return null!=a?new RY:null};function TY(){}TY.prototype.parse=function(a){if(null==a)return null;a=a.getAttribute("fallback_index");a=null!=a?bb(a):NaN;return new ZV(a)};function ica(a,b){this.j=a;this.o=b};function UY(a,b,c){this.j=a;this.o=b;this.A=c}g=UY.prototype;g.getContent=function(){return this.j.getContent()};g.getContentType=function(){return this.j.getContentType()};g.getWidth=function(){return this.j.getWidth()};g.getHeight=function(){return this.j.getHeight()};function fV(a){a=HW(a.j.getAd());return null!=a?a.j:NaN}g.getAd=function(){return this.j.getAd()};g.Ug=function(a){this.j.Ug(a);E(this.o,function(b){b.Ug(a)},this)};function jca(a){return'<div class="text-container '+(a.image?"pyv":"")+'"><div class="text-inner-container">'+(a.image?(a.Gb?'<a class="text-image-link" target="_blank" href="'+Y(a.Gb)+'">':'<a class="text-image-link" target="_blank">')+'<img src="'+Y(a.image)+'" class="text-image">'+(a.duration?'<div class="text-image-duration">'+Y(a.duration)+"</div>":"")+"</a>":"")+(a.Gb?'<a class="text-title" href="'+Y(a.Gb)+'" target="_blank" dir='+Y(a.dir)+">"+Y(a.title)+"</a>":"")+'<div class="text-description" dir='+
Y(a.dir)+">"+Y(a.text)+"</div>"+(a.Qq&&a.Gb?'<a target="_blank" href="'+Y(a.Gb)+'" class="text-ad-channel">'+Y(a.Qq)+"</a>":"")+"</div></div>"}
function kca(a){return'<div class="flash-container '+(a.cf?"click-capture":"")+'">'+(a.Gb?'<a class="click-layer" target="_blank" href="'+Y(a.Gb)+'"></a>':"")+'<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="//download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" width="'+Y(a.width)+'" height="'+Y(a.height)+'"><param name="movie" value="'+Y(a.url)+'"><param name="quality" value="high"><param name="wmode" value="transparent"><param name="AllowScriptAccess" value="never"><param name="FlashVars" value="clickTAG='+
NT(a.Gb)+'"><embed width="'+Y(a.width)+'" height="'+Y(a.height)+'" wmode="transparent" type="application/x-shockwave-flash" src="'+Y(a.url)+'" allowscriptaccess="never" pluginspage="//www.macromedia.com/go/getflashplayer" flashvars="clickTAG='+NT(a.Gb)+'"></object></div>'}
function lca(a){return'<div class="image-container" id="'+Y(a.id)+'" style="width:'+Y(a.width)+";height:"+Y(a.height)+';">'+(a.Gb?'<a target="_blank" href="'+Y(a.Gb)+'">':'<a target="_blank">')+'<img src="'+Y(a.url)+'" border="0"></a></div>'}function mca(a){return'<div class="image-container" id="'+Y(a.id)+'">'+(a.Gb?'<a target="_blank" href="'+Y(a.Gb)+'">':'<a target="_blank">')+'<img src="'+Y(a.url)+'" border="0" style="max-width:100%;max-height:100%;"></a></div>'};function VY(a,b,c,d){iW.call(this,a,b,"Static",c,d);this.un=!1}B(VY,iW);VY.prototype.ve=function(){var a=this.G,a=null!=a&&"clicktag"==a.toLowerCase(),a={url:iN(D(this.B)),width:this.getWidth(),height:this.getHeight(),Gb:this.Rc(),cf:this.un||!a},a=uT(kca,a);a.style.width=this.getWidth()+"px";a.style.height=this.getHeight()+"px";a.id=this.S;E(a.getElementsByTagName("object"),this.D,this);E(a.getElementsByTagName("a"),this.D,this);return a};function WY(a,b,c,d){iW.call(this,a,b,"Html",c,d)}B(WY,iW);WY.prototype.ve=function(){var a=O("div");a.innerHTML=this.B;this.D(a);return nW(this,a)};function XY(a,b,c,d){iW.call(this,a,b,"Static",c,d)}B(XY,iW);XY.prototype.getContent=function(){var a=XY.N.getContent.call(this);this.C&&(a=a.replace('src=""','src="'+iN(D(this.B))+'"'));return a};XY.prototype.Qk=function(){var a=XY.N.Qk.call(this);this.C&&(a=a.replace('src=""','src="'+iN(D(this.B))+'"'));return a};
XY.prototype.ve=function(a){var b="";this.C||(b=iN(D(this.B)));b={id:this.S,url:b,Gb:this.Rc(),width:this.getWidth()+"px",height:this.getHeight()+"px"};a=uT(a?mca:lca,b);E(a.getElementsByTagName("a"),this.D,this);return a};XY.prototype.Dg=function(){return!0};function YY(a,b){iW.call(this,a,b,"Static","text","")}B(YY,iW);g=YY.prototype;g.Wb=function(){return new N(this.getWidth(),this.getHeight())};g.getHeight=function(){return 63};g.getWidth=function(){return null!=this.F?Lg(this.F).width:0};g.On=function(a){return re(a,"text-image")?9:re(a,"text-ad-channel")?1:0};
g.ve=function(){var a=this.getAd(),b=a.getExtension("AdSense"),c=a.getExtension("TextAd"),d=c.A,e="rtl";null!=d&&(e=Se.test(Re(d,void 0))?"rtl":"ltr");d={title:d,text:c.B+" "+c.C,dir:e,Gb:this.Rc()};if(c=c.o)d.image=iN(c),a=G(a.B,function(a){return a instanceof eW}),null!=a&&(d.duration=kV(a.ga));b.o&&(d.Qq=b.o);this.F=uT(jca,d);E(this.F.getElementsByTagName("a"),this.D,this);this.F.id=this.S;this.F.style.height=this.getHeight()+"px";return this.F};function ZY(a,b,c,d,e){iW.call(this,a,b,c,d,e)}B(ZY,iW);ZY.prototype.ve=function(){var a=D(this.B);C(D(this.Rc()))||(a=new P(a),Qh(a,"clickTAG",za(this.Rc())),a=a.toString());var b=O("iframe",{marginwidth:0,marginheight:0,hspace:0,vspace:0,frameborder:0,scrolling:"no"},null);b.height=this.getHeight();"Text"!=this.getContentType()&&(b.width=this.getWidth());b.setAttribute("src",iN(a));this.D(b);return nW(this,b)};function $Y(a,b,c){if(ub(c))return new iW(a,b,"",null,"");var d=aZ(c);c=d.o;var e=d.j,d=d.A;switch(c){case "Html":return new WY(a,b,e,d);case "Static":switch(KM[e]){case "Image":return new XY(a,b,e,d);case "Flash":return new VY(a,b,e,d);case "Text":return new YY(a,b)}}return new ZY(a,b,c,e,d)}
function aZ(a){var b=G(a,function(a){return"Static"==a.o&&"Flash"==KM[a.j]}),c=G(a,function(a){return"IFrame"==a.o}),d=G(a,function(a){return"Html"==a.o}),e=G(a,function(a){return"Static"==a.o&&"Image"==KM[a.j]}),f=G(a,function(a){return"Static"==a.o&&"Text"==KM[a.j]});return BP&&null!=b?b:null!=c?c:null!=d?d:null!=e?e:null!=f?f:a[0]};function nca(a,b,c,d,e,f){var h=aZ(f),k=$Y(a.id,a.size,[h]);k.C=!0;k.G=a.apiFramework;k.U=b;k.H=c;k.j=d;e&&(k.yf=e);xb(f,h);var l=[];E(f,function(f){f=$Y(a.id,a.size,[f]);f.C=!0;f.G=a.apiFramework;f.U=b;f.H=c;f.j=d;e&&(f.yf=e);l.push(new UY(f,[],a.adSlotId))});return new UY(k,l,a.adSlotId)};function bZ(a,b,c){this.o=a;this.j=b;this.A=c}bZ.prototype.getContentType=function(){return null!=this.j?KM[this.j]||"Other":null};function cZ(a,b,c,d,e,f,h){this.A=a;this.H=b;this.C=c;this.D=d;this.o=e;this.F=f;this.G=h;this.j=this.A.ve()}cZ.prototype.Pd=function(){return this.j};
cZ.prototype.display=function(a){this.B=a;this.B.appendChild(this.j);a=this.j;var b=Jg(this.B),b="left"==this.C?"0px":"right"==this.C?b.width-this.A.Wb().width+"px":this.C+"px",c;c=Jg(this.B);c="bottom"==this.D?"0px":"top"==this.D?c.height-this.A.Wb().height+"px":c.height-this.A.Wb().height-eb(this.D)+"px";og(a,{position:"absolute",overflow:"hidden",left:b,bottom:c});Ng(this.j,!1)};
cZ.prototype.update=function(a,b){var c=null!=this.F?HV(this.F):0;this.o=0<=this.o?this.o:b;c<=a&&c+this.o>=a?oca(this):Ng(this.j,!1)};function oca(a){"none"==a.j.style.display&&(Ng(a.j,!0),E(a.G,function(a){mN(a)}))};function pca(a,b,c,d,e,f,h,k,l,n){b=$Y("icon"+a,b,n);b.G=h;b.U=k.iconClickThrough;return new cZ(b,a,c,d,e,f,l)};function dZ(a){this.B=a;this.logger=null}B(dZ,DX);
dZ.prototype.j={Ls:"Ad",Fj:"AdParameters",Ns:"AdSystem",Os:"AdTitle",xF:"Advertiser",Rs:"AltText",Xs:"ClickThrough",Ys:"ClickTracking",Zs:"Companion",COMPANION_ADS:"CompanionAds",$s:"CompanionClickThrough",bt:"CompanionClickTracking",gt:"Creative",hG:"CreativeExtensions",ht:"Creatives",lt:"CustomClick",vt:"Description",Hj:"Duration",ERROR:"Error",Et:"Extension",Ft:"Extensions",vh:"HTMLResource",Kt:"Icon",Lt:"Icons",Mt:"IconClicks",Nt:"IconClickThrough",Ot:"IconClickTracking",Pt:"IconViewTracking",
xh:"IFrameResource",yh:"Impression",INLINE:"InLine",LINEAR:"Linear",cu:"MediaFile",du:"MediaFiles",iu:"NonLinear",NON_LINEAR_ADS:"NonLinearAds",ju:"NonLinearClickThrough",ku:"NonLinearClickTracking",JH:"Pricing",zh:"StaticResource",Cu:"Survey",KI:"Tracking",Kj:"TrackingEvents",ZI:"VAST",Hu:"VASTAdTagURI",Iu:"VideoClicks",WRAPPER:"Wrapper"};
dZ.prototype.o={Ms:"adSlotID",Qs:"allowMultipleAds",sh:"apiFramework",Mm:"bitrate",jt:"creativeType",ut:"delivery",Hj:"duration",EVENT:"event",It:"followAdditionalWrappers",Bt:"expandedHeight",Ct:"expandedWidth",uh:"height",wh:"id",$t:"maintainAspectRatio",bu:"maxBitrate",fu:"minBitrate",gu:"minSuggestedDuration",lu:"offset",nu:"program",ru:"required",uu:"scalable",Rm:"sequence",xu:"skipoffset",$m:"type",VERSION:"version",Ju:"codec",Ah:"width",Lu:"xPosition",Mu:"yPosition"};
function eZ(a){if(null==a)return!1;a=Zf(a);return null!=a&&"VAST"==a.nodeName}function fZ(a){if(null==a)return 0;a=parseInt(a.getAttribute("version"),10);return ga(a)&&!isNaN(a)?a:0}function qca(a){var b=[],c=Zf(a.B),d=fZ(c);AV(c,a.j.Ls,function(a){var c;c=gZ(a);if(null==c)throw vV(a);var h=a.getAttribute(this.o.wh);a=Number(a.getAttribute(this.o.Rm));c=rca(this,c,h||null,a||0);null!=c&&(c.fa=d,b.push(c))},a);return b}dZ.prototype.A=function(){return new EX(this.B,qca(this),null)};
function gZ(a){var b=null;E(Yf(a),function(a){switch(a.nodeName){case "InLine":case "Wrapper":b=a;break;default:throw vV(a);}});return b}
function rca(a,b,c,d){var e,f,h=[],k=[],l=[],n=[],r=new Yg,u,z=b.nodeName==a.j.WRAPPER,y=z,V=z,va;E(Yf(b),function(a){switch(a.nodeName){case this.j.Hu:if(z){if(null!=u)throw wV(a);u=zV(a);va=jba(u);y=DV(b.getAttribute(this.o.Qs),y);V=DV(b.getAttribute(this.o.It),V)}else throw vV(a);break;case this.j.Ns:e=zV(a);break;case this.j.Os:f=zV(a);break;case this.j.vt:zV(a);break;case this.j.Cu:zV(a);break;case this.j.yh:a=zV(a);RV(a)&&h.push(EV(a));break;case this.j.ERROR:a=zV(a);k.push(EV(a));break;case this.j.ht:a=
sca(this,a);l=a.creatives;n=a.lv;break;case this.j.Ft:r=tca(this,a,va)}},a);return new pW(D(c),e,uca(e),f,0,0,d,k,h,l,n,r,u,y,V,vca(r))}function vca(a){var b=null;a=a.get("AdSense");null!=a&&(a=UV(a,"vast2tracking"),null!=a&&!ub(a)&&(b=a[0]));return b}
function uca(a){if(C(D(a)))return"UNKNOWN";a=a.toUpperCase();switch(a){case "ADSENSE":case "ADSENSE/ADX":case "ADSENSE-VIRAL":case "DART":case "DART_DFP":case "DART_DFA":case "FREEWHEEL":case "GDFP":case "402":case "YT:ADSENSE":case "YT:DOUBLECLICK":case "YT:FREEWHEEL":case "VIRAL":return a;default:return"UNKNOWN"}}function wca(a){if(C(D(a)))return"none";switch(a){case "all":case "any":case "none":return a;default:return"none"}}
function tca(a,b,c){var d=new Yg;try{var e=xV(b,a.j.Et);E(e,function(a){var b=a.getAttribute(this.o.$m);null!=b&&(b=b.toLowerCase());switch(b){case "geo":a=(new SY).parse(a);break;case "pod":a=(new QY).parse(a);break;case "waterfall":a=(new TY).parse(a);break;case "dart":a=(new OX).parse(a);break;case "dfp":b="DFP";a=(new PX).parse(a);break;case "adsense":b="AdSense";a=(new NX).parse(a);break;case "textad":b="TextAd";a=(new KY).parse(a);break;case "templatead":b="TemplateAd";a=(new IY).parse(a);break;
case "infocards":var b="InfoCards",e=new zY(!0);a=e.parse(a);break;case "infocardstracking":b="InfoCardsTracking";e=new zY(!1);a=e.parse(a);break;case c:case "prefetchedad":b="LocalRedirect";if(null!=a){var e=null,l=xV(a,"AdXml");1==l.length&&(e='<?xml version="1.0" encoding="UTF-8"?>'+NA(Zf(l[0])));a=xV(a,"VASTAdTagURI");l=null;1==a.length&&(l=a[0].textContent);a=new BY(e,l)}else a=null;break;case "viral":b="viral";a=(new MY).parse(a);break;case "adx":b="adx";a=(new WV).parse(a);break;case "why_this_ad":b=
"why_this_ad";a=(new OY).parse(a);break;case "mute":b="mute";a=(new GY).parse(a);break;default:e=new QX,b="generic",a=e.parse(a)}null!=a&&(e=d.get(b),null!=e?"generic"==b&&(kba(e,a.j),d.set(b,e)):d.set(b,a))},a)}catch(f){if(!ha(f.getErrorCode)||1105==f.getErrorCode())throw f;}return d}
function sca(a,b){var c=[],d=[];AV(b,a.j.gt,function(a){var b=a.getAttribute(this.o.Rm),h;C(D(b))||(h=parseFloat(b));a.getAttribute(this.o.wh);var k=!1;E(Yf(a),function(a){switch(a.nodeName){case this.j.LINEAR:if(k)throw wV(a);a=xca(this,a,isNaN(h)?0:h);Cb(c,a);k=!0;break;case this.j.COMPANION_ADS:if(k)throw wV(a);a=yca(this,a,isNaN(h)?void 0:h);Cb(d,a);k=!0;break;case this.j.NON_LINEAR_ADS:if(k)throw wV(a);a=zca(this,a,isNaN(h)?0:h);Cb(c,a);k=!0}},this)},a);return{creatives:c,lv:d}}
function zca(a,b,c){var d=[],e=new JV;E(Yf(b),function(a){switch(a.nodeName){case this.j.iu:a=Aca(this,a,c);null!=a&&d.push(a);break;case this.j.Kj:e=QV(a);break;default:throw vV(a);}},a);0!=d.length||e.isEmpty()||(a=new iW(null,new N(-1,-1),"",null,""),a.j=c,d.push(a));E(d,function(a){e&&(a.yf=e)});return d}
function hZ(a,b){var c={};c.id=b.getAttribute(a.o.wh);c.adSlotId=b.getAttribute(a.o.Ms);c.apiFramework=b.getAttribute(a.o.sh);var d=bb(b.getAttribute(a.o.Ah)),e=bb(b.getAttribute(a.o.uh));c.size=new N(d,e);d=b.getAttribute(a.o.Ct);e=b.getAttribute(a.o.Bt);C(D(d))||C(D(e))||(c.AJ=new N(bb(d),bb(e)));return c}
function Aca(a,b,c){var d=hZ(a,b);b.getAttribute(a.o.sh);b.getAttribute(a.o.uu);b.getAttribute(a.o.$t);var e=b.getAttribute(a.o.gu),e=CV(e,-1),f=[];new Yg;var h={},k="",l,n=[];E(Yf(b),function(a){switch(a.nodeName){case this.j.ku:n.push(zV(a));break;case this.j.ju:l=zV(a);break;case this.j.Fj:h=iZ(a);k=D(zV(a));break;case this.j.xh:case this.j.zh:case this.j.vh:a=jZ(this,a);null!=a&&f.push(a);break;default:throw vV(a);}},a);a=$Y(d.id,d.size,f);aW(a,k,h);a.G=d.apiFramework;a.U=l;a.H=n;a.ha=e;a.j=c;
return a}function jZ(a,b){var c=yV(b,a.o.jt);if(null!=c&&"text/javascript"==c)return null;var d;a:switch(d=b.nodeName,d){case a.j.zh:d="Static";break a;case a.j.xh:d="IFrame";break a;case a.j.vh:d="Html";break a;default:throw aO(UN,null,d);}var e=zV(b);null!=e||(e="");return new bZ(d,c,e)}function yca(a,b,c){var d=[],e=wca(yV(b,a.o.ru));AV(b,a.j.Zs,function(a){a=Bca(this,a,c);null!=a&&d.push(a)},a);return new ica(d,e)}
function Bca(a,b,c){var d=hZ(a,b),e=[],f=new JV,h,k=[];E(Yf(b),function(a){switch(a.nodeName){case this.j.bt:k.push(zV(a));break;case this.j.Kj:f=QV(a,!0);break;case this.j.$s:h=zV(a);break;case this.j.Rs:zV(a);break;case this.j.Fj:zV(a);break;case this.j.xh:case this.j.zh:case this.j.vh:a=jZ(this,a);null!=a&&e.push(a);break;default:throw vV(a);}},a);return ub(e)?null:nca(d,h,k,c,f,e)}
function xca(a,b,c){var d=new JV,e={},f="",h=[],k,l=new Yg,n=[],r=[],u,z=SV(yV(b,a.o.xu));E(Yf(b),function(a){switch(a.nodeName){case this.j.Lt:r=Cca(this,a);break;case this.j.Fj:e=iZ(a);f=D(zV(a));break;case this.j.Hj:u=CV(zV(a),0);break;case this.j.Kj:d=QV(a);break;case this.j.du:n=Dca(this,a);break;case this.j.Iu:a=Eca(this,a);l=a.customClicks;k=a.clickThrough;h=a.clickTrackingUrls;break;default:throw vV(a);}},a);E(h,function(a){OV(d,"click",a)});a=new eW(u,k,l,n,z,r);aW(a,f,e);a.j=c;d&&(a.yf=
d);return a}function Eca(a,b){var c,d=[],e=new Yg;E(Yf(b),function(a){switch(a.nodeName){case this.j.Xs:c=zV(a);break;case this.j.Ys:a=zV(a);d.push(a);break;case this.j.lt:var b=yV(a,this.o.wh);null!=b||(b="");var k=e.get(b,[]);k.push(zV(a));e.set(b,k);break;default:throw vV(a);}},a);return{clickThrough:c,clickTrackingUrls:d,customClicks:e}}
function Dca(a,b){var c=[];AV(b,a.j.cu,function(a){var b=yV(a,this.o.ut),f=yV(a,this.o.$m),h=yV(a,this.o.Ju),k=bb(a.getAttribute(this.o.Ah)),l=bb(a.getAttribute(this.o.uh)),n=a.getAttribute(this.o.sh),r=zV(a),u=BV(a.getAttribute(this.o.Mm)),z=BV(a.getAttribute(this.o.fu));a=BV(a.getAttribute(this.o.bu));b=new dW(b,f,h,u,z,a,k,l,r,n);c.push(b)},a);return c}function Cca(a,b){var c=[];AV(b,a.j.Kt,function(a){a=Fca(this,a);null!=a&&c.push(a)},a);return c}
function Fca(a,b){var c=b.getAttribute(a.o.nu),d=yV(b,a.o.Lu),e=yV(b,a.o.Mu),f=bb(b.getAttribute(a.o.Ah)),h=bb(b.getAttribute(a.o.uh)),f=new N(f,h),h=b.getAttribute(a.o.sh),k=SV(yV(b,a.o.lu)),l=b.getAttribute(a.o.Hj),l=CV(l,-1),n=[],r=[],u={};E(Yf(b),function(a){switch(a.nodeName){case this.j.Pt:r.push(zV(a));break;case this.j.Mt:u=Gca(this,a);break;case this.j.xh:case this.j.zh:case this.j.vh:a=jZ(this,a);null!=a&&n.push(a);break;default:throw vV(a);}},a);return ub(n)?null:pca(c,f,d,e,l,k,h,u,r,
n)}function Gca(a,b){var c=[],d;E(Yf(b),function(a){switch(a.nodeName){case this.j.Nt:d=zV(a);break;case this.j.Ot:c.push(zV(a));break;default:throw vV(a);}},a);return{iconClickThrough:d,CJ:c}}function iZ(a){a=zV(a);return null!=a?bba(a):{}};function kZ(a,b){this.o=a;this.j=b}B(kZ,DX);kZ.prototype.A=function(){return new EX(this.o,null,Hca(this))};function Ica(a){var b=[],c=xV(a,"vmap:Extensions")[0];if(c){var d;AV(c,"vmap:Extension",function(a){"vmap:YTBreakTime"==c.getAttribute("type")&&(d=a)});if(d&&(b=xV(d,"yt:BreakTime"),!ub(b)))return F(b,function(a){return yV(a,"timeOffset")})}return[yV(a,"timeOffset")]}
function Hca(a){var b=new GX;E(Yf(Zf(a.o)),function(a){if("vmap:AdBreak"==a.nodeName){var d=Jca(this,a);a=Ica(a);E(a,function(a,c){var h=CV(a);0<c&&(d=Kca(this,d));if("start"==a||0==h)HX(b,d,0);else if("end"==a)HX(b,d,-1);else{if(-1==h)throw aO(sN,null,"timeOffset",D(a));HX(b,d,h)}},this)}},a);if(0==b.j.Ma().length)throw aO(BN);return b}function Kca(a,b){return F(b,function(a){var b=new FX(a.A.clone());b.j=a.j;b.o=a.o;return b},a)}
function Lca(a){a=yV(a,"timeOffset");var b=CV(a);return"start"==a||0==b?0:"end"==a||-1==b?-1:1E3*b}function Mca(a){return(a=G(Yf(a),function(a){return"vmap:VASTData"==a.nodeName||"vmap:VASTAdData"==a.nodeName}))?G(Yf(a),function(a){return"VAST"==a.nodeName}):null}
function Jca(a,b){var c=[],d="",e=null,f=!1,h=!1;E(Yf(b),function(a){switch(a.nodeName){case "vmap:AdSource":if(!e){try{e=OA(a,"vmap:VASTData/VAST")||OA(a,"vmap:VASTAdData/VAST")}catch(b){}e||(e=Mca(a));if(!e){var c=xV(a,"vmap:AdTagURI"),k="";c.length&&(k=D(zV(c[0])));if(C(k))throw aO(ZN,null,a.parentNode.nodeName,a.nodeName);d=k}}break;case "vmap:Extensions":a=xV(a,"vmap:Extension"),a=Nca(this,a),null!=a&&(f=!0,a=yV(a,"suppress_bumper"),h=null!=a?"true"==a:!0)}},a);var k=null;e?k=Oca(a,e):C(d)||
(k=Pca(a,d));k&&(DM()&&(k.bh=Lca(b)),k=new FX(k),k.j=f,k.o=f&&!h,wb(c,k));return c}function Nca(a,b){return G(b,function(a){return"bumper"==yV(a,"type")},a)}function Pca(a,b){var c=a.j.clone();C(c.o)||(c.o="");c.j=b;return c}function Oca(a,b){var c=a.j.clone();c.o=NA(b);c.j="";return c};function Qca(a,b){if(null!=a){var c;null!=a?(c=Zf(a),c=null!=c&&"Playlist"==c.nodeName):c=!1;if(c)return tX.getInstance().o=!1,new IX(a,b);null!=a?(c=Zf(a),c=null!=c&&"vmap:VMAP"==c.nodeName):c=!1;if(c)return tX.getInstance().o=!1,new kZ(a,b);if(eZ(a)){if(!eZ(a))throw aO(EN);c=Zf(a);var d=fZ(c);if(1>d||3<d)throw aO(VN);c=xV(c,"Ad");if(ub(c))throw aO(JN);c=gZ(c[0]);if(null==c)throw aO(MN);if(1!=xV(c,"AdSystem").length)throw aO(MN);return new dZ(a)}}return null};function lZ(){}g=lZ.prototype;
g.clone=function(){var a=new lZ;"auto"==this.Me?a.Me="auto":"click"==this.Me&&(a.Me="click");a.j=this.j;a.qe=nc(this.qe);a.o=this.o;a.C=this.C;a.zb=nc(this.zb);a.D=this.D;a.location=this.location;a.referrer=this.referrer;a.G=this.G;a.language=this.language;a.qf=this.qf;a.pf=this.pf;a.Bc=this.Bc;a.Ac=this.Ac;a.kc=this.kc;a.mi=this.mi;a.ni=this.ni;a.Ml=this.Ml;a.A=this.A;a.B=this.B;a.bh=this.bh;a.ki=this.ki;a.afcRmFallback=this.afcRmFallback;a.J=this.J;a.H=this.H;a.rg=this.rg;this.F&&(a.F=Bb(this.F));
a.ld=this.ld;a.wk=this.wk;a.xk=this.xk;return a};g.qe=null;g.zb=null;g.Me="unknown";g.qf=0;g.pf=0;g.Bc=0;g.Ac=0;g.rg=!1;g.kc=null;g.mi=!1;g.ni=!1;g.Ml=!0;g.ld=function(){return!1};g.wk=function(){return NaN};g.xk=function(){return""};g.bh=0;g.En=!0;g.ki=null;g.afcRmFallback=!1;function mZ(a,b){this.o=a;this.A=b}function nZ(a,b){"auto"!=a.o.Me&&"click"!=a.o.Me||b.set("vpa",a.o.Me)}function oZ(a){C("")||(a.set("mpt",""),C("")||a.set("mpv",""))}function pZ(a,b){var c=a.A.C;null!=c&&b.set("js","ima-"+c);c=a.o.J;null!=c&&b.set("mv",c+"."+(a.o.H||""))}function qZ(a,b){b.set("osd",2);-1!=a.A.H&&b.set("frm",a.A.H);var c=a.A.T;null!=c&&b.set("ms",c)}mZ.prototype.G=function(){return this.B(this.C()).toString()};function rZ(a){return EM.j?"h.3.0.0":null!=a.A?GU(a.A):null}
mZ.prototype.D=function(){var a;a=1;uO()&&(a+=4);return a};function sZ(){this.j=["video"]}var tZ={QI:"ultrahigh",KG:"high",eu:"medium"},Rca={CF:1E3,DF:1001,EF:1002,FF:1003,GF:1004,HF:1005,IF:1006},Sca={au:1,Gt:2},Tca={CONTENT:"content",oI:"site",pI:"site_content"};g=sZ.prototype;g.Fh="high";g.Lk=!1;g.Lj=1;g.Mj=null;g.adType="video";g.adBlock=1;g.Mk=null;g.Nj=!0;g.Oj=null;g.dk=null;g.ng=null;g.experimentIds=null;g.gender=null;g.host=null;g.hostTierId=null;g.Nk=!1;g.language=null;g.wo=null;g.vo=null;g.zi=1E5;g.Ai=null;g.yo=null;g.xo=null;g.il=0;g.wf=null;
g.Ii=null;g.Pi=null;g.Nl=null;g.tagForChildDirectedTreatment=-1;g.url=null;g.ti=null;g.Xl=null;g.Ok=null;g.hm=null;g.dm=null;g.fm=null;g.gm=null;g.Tj=null;var Uca=(new Date).getTime();var Vca=[202,1009],Wca=["CONTENT_V","CPN","DISALLOW","LACT","VIS"],Xca={MOAT_INIT:["://yts.moatads.com","://pagead2.googlesyndication.com/pagead/gen_204"]};function uZ(a,b,c){var d={};a=new vZ(a,p(b)?b:null,p(c)?c:null);wZ(d,a);b=a.error;d.ERRORCODE=1E3>b.j?b.j:900;xZ(d,a);yZ(d,a);zZ(d,a);b=a.error.getErrorCode();d.ERROR_MSG=a.error.getMessage();d.IMA_ERROR=b;d.INTERNAL_ID="0";a=-1!=jb(Vca,b);d.BLOCKING_ERROR=a?"1":"0";d.YT_ERROR_CODE=3;return d}
function AZ(a,b){var c={},d=new vZ(null,a,p(b)?b:null);wZ(c,d);xZ(c,d);yZ(c,d);zZ(c,d);c.BREAK_TYPE="0";c.SLOT_POS="0";c.MIDROLL_POS="0";if(null!=d.j){var e=d.j.A,f=null!=e&&null!=e.zb&&null!=e.zb.GET_MIDROLL_POSITION_IN_SEC?e.zb.GET_MIDROLL_POSITION_IN_SEC:null;null!=e&&null!=e.qe&&null!=e.qe.video_start_delay?(e=e.qe.video_start_delay,0==e?c.BREAK_TYPE="1":-1==e?c.BREAK_TYPE="3":(c.BREAK_TYPE="2",c.MIDROLL_POS=f&&f(e)?f(e):e)):(e=d.j.C,c.BREAK_TYPE=0==e.A?"1":-1==e.A?"3":"2",c.SLOT_POS=e.o-1,e=
Math.round(e.j),0<e&&(c.MIDROLL_POS=f&&f(e)?f(e):e))}Yca(c,d);Zca(c,d);d=a.ia;for(f=a;null!=f;)d=f.ea+","+d,f=f.j;c.RWT=d;return c}function vZ(a,b,c){this.error=a;this.j=b;this.display=c}function $ca(a){return ob(Xca.MOAT_INIT,function(b){return null!=a.match(b)})}function wZ(a,b){a.CACHEBUSTING={toString:function(){return Math.round(1E8*Math.random()+1E8).toString().slice(1)}};a.ASSETURI={toString:function(){return null!=b.display?b.display.getVideoUrl():""}}}
function Zca(a,b){a.AD_CPN={toString:function(){return b.display.ff()}};a.AD_MT={toString:function(){return Math.round(Math.max(0,1E3*b.display.getCurrentTime())).toString()}};a.MT={toString:function(){if(qW(b.j)){var a=b.j.C;return 0<a.j?Math.round(1E3*a.j).toString():"0"}return b.display?Math.round(Math.max(0,1E3*b.display.getCurrentTime())).toString():"0"}};a.P_W={toString:function(){return null!=b.display&&null!=b.display.Qc()?b.display.Qc().width.toString():""}};a.P_H={toString:function(){return null!=
b.display&&null!=b.display.Qc()?b.display.Qc().height.toString():""}}}function xZ(a,b){a.SDKV=GU(FU);a.EL="adunit";a.CONN="0";a.MOAT_VIEWABILITY="gmm=1";null!=b.j&&(a.VIEWABILITY={toString:function(){var a;EM.j?(a=SS(),a=XS(a,"metric",b.j.Z)):(zX(),a="");return a}});a.WT={toString:function(){return Date.now()}}}function yZ(a,b){if(null!=b.j&&null!=b.j.A&&null!=b.j.A.zb&&DM()){var c=b.j.A.zb;E(Wca,function(b){b in c&&(a[b]=c[b])})}}
function zZ(a,b){if(null!=b.j){a.AD_ID=sba(b.j);a.AD_SYS=tba(b.j);var c=MW(b.j);a.AQI=null!=c?c:"";a.AD_V={toString:function(){if(null!=b.display){var a=eT(b.display.getVideoUrl());if(null!=a)return a}return"0"}};a.FORMAT_NAMESPACE="0";a.FORMAT_TYPE="0";a.FORMAT_SUBTYPE="0";c=[];try{c=rW(b.j).split("_")}catch(d){}1<=c.length&&(a.FORMAT_NAMESPACE=c[0]);2<=c.length&&(a.FORMAT_TYPE=c[1]);3<=c.length&&(a.FORMAT_SUBTYPE=c[2]);a.FINAL="1"}}
function Yca(a,b){null!=b.j&&(a.AD_LEN={toString:function(){var a=VW(b.j);return 0>a?"-1":Math.round(1E3*a).toString()}},a.VOL={toString:function(){return null!=b.display?b.display.sf()?"0":Math.round(100*b.display.qd()).toString():""}})};var ada={Ht:"flash",IMAGE:"image",sI:"skippablevideo",uI:"standardvideo",vI:"staticimage",TEXT:"text",VIDEO:"video"},bda=["flash","image","staticimage"],cda=[new N(200,200),new N(250,250),new N(300,250),new N(336,280),new N(450,50),new N(468,60),new N(480,70),new N(728,90)];
function BZ(a,b,c){if(null!=c){var d;null==b.A&&(b.A=new BU);d=b.A;var e;null!=c&&d.o!=c?(d.j=1,d.o=c):d.j=null!=c?d.j+1:1;e=d.j;1!=e&&a.set("ad_block",e);null==b.L&&(b.L=new CU);e=b.L;var f=c!=b.M;(d=0==d.j%100||f)||(d=36E5<(null===e.j?0:(new jA).getTime()-e.j));d&&e.reset();b.M=c;b=e.o;null!==b&&a.set("tok",b)}}function CZ(a,b){a.set("sz",Math.max(null!=b.qf?b.qf:0,null!=b.Bc?b.Bc:0)+"x"+Math.max(null!=b.pf?b.pf:0,null!=b.Ac?b.Ac:0))}
function DZ(a){var b={};b.u_tz=-(new Date).getTimezoneOffset();var c;try{c=X.history.length}catch(e){c=0}b.u_his=c;b.u_java=!!X.navigator&&"unknown"!=typeof X.navigator.javaEnabled&&!!X.navigator.javaEnabled&&X.navigator.javaEnabled();X.screen&&(b.u_h=X.screen.height,b.u_w=X.screen.width,b.u_ah=X.screen.availHeight,b.u_aw=X.screen.availWidth,b.u_cd=X.screen.colorDepth);X.navigator&&X.navigator.plugins&&(b.u_nplug=X.navigator.plugins.length);X.navigator&&X.navigator.mimeTypes&&(b.u_nmime=X.navigator.mimeTypes.length);
for(var d in b)a.set(d,b[d]);a.set("dt",Uca)}function EZ(a){if(a.zb&&a.zb.LACT){var b=a.zb.LACT.toString();if(b)return eb(b)}return a.G}function FZ(a){return DM()&&a.ld&&a.ld("send_presence_signal_vis")&&a.zb&&a.zb.VIS?a.zb.VIS.toString():null}
function GZ(a,b,c,d){var e=new Yg;$M(UM())||e.set("ad_type",c.adType);BP&&e.set("flash",CP);CZ(e,a);HZ(c)&&(e.set("ea","0"),null!=a.Bc&&null!=a.Ac&&e.set("image_size",IZ(c,a.Bc,a.Ac,a.rg)));JZ(e,d);e.set("lact",EZ(a));(c=FZ(a))&&e.set("yt_vis",c);e.set("videoad_start_delay",a.bh);DZ(e);KZ(a,e,!0);BZ(e,b,a.C);return e}function KZ(a,b,c){C(D(a.referrer))||(a=a.referrer,c&&(a=za(a)),LZ("ref",a,b))}
function MZ(a,b){var c=null!=b?b.split("_"):a;E(c,function(a){if(!bc(ada,a))throw aO(yN,null,"ad_type",String(b));});if(!uO()){var d=[];E(c,function(a){"video"==a?d.push("standardvideo"):"skippablevideo"!=a&&d.push(a)});if(0==d.length)throw aO(xN,null,"skippablevideo");return d}return c}function NZ(a,b){return null!=b?b.split(/[+, ]/):a}
function IZ(a,b,c,d){a.o&&(c=Math.min(c,90));var e=0,f=0;UM();a=iV();d=d&&a&&!DM()&&!1;a&&(e=15,f=XM(UM(),41351063)&&!DM()?25:65);var h=[];E(cda,function(a){var l=b-e>=a.width&&c-f>=a.height,n=!d&&!l&&90>=a.height&&b>=a.width&&c>=a.height;(l||n)&&h.push(a.width+"x"+a.height)});return h.join(",")}function OZ(a,b){return null==b||isNaN(b)?a:Number(b)}function PZ(a,b){return null!=b?String(b):null!=a?a:null}
function QZ(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 RZ(a,b,c){return null!=b&&bc(c,b)?b:a}function HZ(a){return ob(bda,function(b){return tb(a.j,b)})}function JZ(a,b){BP?a.set("ca_type","flash"):a.set("ca_type","image");if(null!=b){var c=b.A;null!=c&&0<c.length&&(c=c[0].D,0<c.length&&(a.set("ca_w",c[0].width),a.set("ca_h",c[0].height)))}}function LZ(a,b,c){null!=b&&c.set(a,b)};function SZ(a,b,c){mZ.call(this,a,b);var d=new sZ;a=Ph(new P(a.j));d.Mk=RZ(d.Mk,a.get("cust_age"),Rca);d.Fh=RZ(d.Fh,a.get("adsafe"),tZ);d.j=MZ(d.j,a.get("ad_type"));d.adType=d.j.join("_");d.Lj=OZ(d.Lj,a.get("videoad_start_delay"));d.Mj=PZ(d.Mj,a.get("slotname"));d.Lk=QZ(d.Lk,a.get("adtest"));d.Nj=QZ(d.Nj,a.get("scs"));d.Oj=PZ(d.Oj,a.get("alternate_ad_url"));d.channels=NZ(d.channels,a.get("channel"));d.dk=OZ(d.dk,a.get("cpm"));d.ng=PZ(d.ng,a.get("description_url"));d.experimentIds=PZ(d.experimentIds,
a.get("eid"));d.gender=RZ(d.gender,a.get("cust_gender"),Sca);d.o=QZ(d.o,a.get("overlay"));d.host=PZ(d.host,a.get("host"));d.A=NZ(d.A,a.get("h_ch"));d.hostTierId=OZ(d.hostTierId,a.get("ht_id"));d.Nk=QZ(d.Nk,a.get("lsv"));var e;null!=this.o.language?e=this.o.language:(e=m.navigator||null,e=CM(e.language||e.userLanguage||e.browserLanguage||e.systemLanguage||""));var f=null!=a.get("hl")?String(a.get("hl")):null;e=PZ(f,e);var h;null!=e&&!C(D(e))&&(h=CM(e));d.language=PZ(d.language,h);d.wo=OZ(d.wo,a.get("linearAdSlotWidth"));
d.vo=OZ(d.vo,a.get("linearAdSlotHeight"));d.zi=OZ(d.zi,a.get("max_ad_duration"));d.il=OZ(d.il,a.get("min_ad_duration"));d.Ai=OZ(d.Ai,a.get("sdmax"));d.yo=OZ(d.yo,a.get("nonLinearAdSlotWidth"));d.xo=OZ(d.xo,a.get("nonLinearAdSlotHeight"));d.wf=PZ(d.wf,a.get("client"));d.Ii=PZ(d.Ii,a.get("t_pyv"));h=a.get("sdki");d.Pi=OZ(d.Pi,w(h)?parseInt(h,16):h);d.tagForChildDirectedTreatment=OZ(d.tagForChildDirectedTreatment,a.get("tfcd"));d.Nl=RZ(d.Nl,a.get("targeting"),Tca);d.ti=OZ(d.ti,a.get("video_format"));
d.Xl=OZ(d.Xl,a.get("video_cpm"));d.Ok=PZ(d.Ok,a.get("loeid"));d.hm=PZ(d.hm,a.get("yt_pt"));d.dm=PZ(d.dm,a.get("ytdevice"));d.fm=PZ(d.fm,a.get("ytdevicever"));d.gm=PZ(d.gm,a.get("dbp"));d.B=PZ(d.B,a.get("ms"));d.adBlock=OZ(d.adBlock,a.get("adBlock"));d.url=PZ(d.url,a.get("url"));d.Tj=PZ(d.Tj,a.get("avo"));this.j=d;this.H=b;this.J=c;C(D(this.j.experimentIds))||(b=this.j.experimentIds.split(","),SM(UM(),b))}B(SZ,mZ);var dda=["skippablevideo","standardvideo","video"];
SZ.prototype.F={Ps:"allow",At:"exclude",UH:"require"};SZ.prototype.D=function(){var a=SZ.N.D.call(this);this.j.Pi&&(a|=this.j.Pi);return a};SZ.prototype.B=function(a){var b=new P("//googleads.g.doubleclick.net/pagead/ads"),c=a.Ma();E(c,function(c){Qh(b,c,a.get(c))});XM(UM(),41351083)||Ah(b,"https");return b};
SZ.prototype.C=function(){var a=new Yg;a.set("sdkv",rZ(this));a.set("sdki",this.D().toString(16));a.set("video_product_type",null!=this.j.wf?DM()?5:ua(this.j.wf,"ca-games-")?4:ua(this.j.wf,"ca-video-")?0:-1:-1);a.set("correlator",this.H.j);a.set("client",this.j.wf);DM()&&!C(D(this.j.url))?a.set("url",this.j.url):a.set("url",this.o.location?this.o.location:this.o.referrer);null!=this.o.kc&&a.set("adk",this.o.kc);a.set("num_ads",TZ(this));a.set("channel",eda(this));a.set("ad_type",this.j.adType);a.set("output",
"xml_vast3");this.j.Lk&&a.set("adtest","on");BP&&a.set("flash",CP);LZ("alternate_ad_url",this.j.Oj,a);LZ("cpm",this.j.dk,a);CZ(a,this.o);DM()||bc(tZ,this.j.Fh)&&a.set("adsafe",this.j.Fh);this.j.host&&(a.set("host",this.j.host),LZ("ht_id",this.j.hostTierId,a),null!=this.j.A&&LZ("h_ch",this.j.A.join("+"),a));LZ("hl",this.j.language,a);LZ("cust_age",this.j.Mk,a);LZ("cust_gender",this.j.gender,a);-1!=this.j.tagForChildDirectedTreatment&&LZ("tfcd",this.j.tagForChildDirectedTreatment,a);LZ("slotname",this.j.Mj,
a);var b=ZM(UM());C(D(b))||a.set("eid",b);DZ(a);BZ(a,this.H,this.o.C||this.j.ng);a.set("unviewed_position_start","1");b=this.j.Lj;a.set("videoad_start_delay",null!=b?b:1);pZ(this,a);qZ(this,a);nZ(this,a);HZ(this.j)&&(a.set("ea","0"),null!=this.o.Bc&&null!=this.o.Ac&&a.set("image_size",IZ(this.j,this.o.Bc,this.o.Ac,this.o.rg)));fda(this)&&a.set("video_format",null!=this.j.ti&&DM()?this.j.ti:Mi&&av(6)||Ii&&av(4)||Mc&&qO(mO,2.3)?43:18);b=null!=this.j.Ii?this.j.Ii:tb(this.j.adType.split("_"),"text")?
this.F.Ps:this.F.At;a.set("t_pyv",b);LZ("min_ad_duration",this.j.il,a);0<this.j.zi&&a.set("max_ad_duration",UZ(this.j.zi,TZ(this)));0<this.j.Ai&&a.set("sdmax",UZ(this.j.Ai,TZ(this)));JZ(a,this.J);DM()&&(b=eT(this.j.ng),null!=b&&a.set("video_doc_id","yt_"+b));LZ("description_url",this.j.ng,a);DM()&&(LZ("lact",EZ(this.o),a),LZ("loeid",this.j.Ok,a),LZ("lsv",this.j.Nk,a),this.j.Nj||LZ("scs","false",a),LZ("targeting",this.j.Nl,a),LZ("video_cpm",this.j.Xl,a),LZ("yt_pt",this.j.hm,a),LZ("ytdevice",this.j.dm,
a),LZ("ytdevicever",this.j.fm,a),LZ("yt_vis",FZ(this.o),a),LZ("dbp",this.j.gm,a),LZ("avo",this.j.Tj,a));null!=a.get("ms")||LZ("ms",this.j.B,a);oZ(a);KZ(this.o,a,!1);null!=this.o.qe&&LZ("loc",this.o.qe.page_location,a);return a};function fda(a){return ob(dda,function(a){return tb(this.j.j,a)},a)}function TZ(a){return DM()?1:tb(a.j.adType.split("_"),"text")?3:1}function eda(a){a=a.j.channels?a.j.channels:[];Fb(a);a=Eb(a,0,30);return a.join("+")}function UZ(a,b){return Math.round(1.1*(a||0)+0*b)};function VZ(a,b){mZ.call(this,a,b)}B(VZ,mZ);VZ.prototype.B=function(a){var b=new P(this.o.j);E(a.Ma(),function(c){C(a.get(c))?b.j.remove(c):Qh(b,c,a.get(c))});XM(UM(),41351083)||Ah(b,"https");return b};VZ.prototype.C=function(){var a=new Yg;a.set("sdkv",rZ(this));qZ(this,a);nZ(this,a);oZ(a);null!=this.o.kc&&a.set("adk",this.o.kc);return a};function WZ(a,b){mZ.call(this,a,b)}B(WZ,mZ);WZ.prototype.C=function(){return null};
WZ.prototype.B=function(){var a=new nV(this.o.j),b=rZ(this);b&&pV(a,"dc_sdkv",[b]);(b=this.D().toString(16))&&pV(a,"dc_sdki",[b]);(b=this.A.G)&&pV(a,"dc_submodel",[b]);null!=this.o.kc&&pV(a,"dc_adk",[this.o.kc]);b=new Yg;pZ(this,b);qZ(this,b);nZ(this,b);oZ(b);$g(b,"js")&&pV(a,"dc_js",[b.get("js")]);$g(b,"msid")&&pV(a,"dc_msid",[b.get("msid")]);$g(b,"frm")&&pV(a,"dc_frm",[b.get("frm")]);$g(b,"osd")&&pV(a,"dc_osd",[b.get("osd")]);pV(a,"dcmt",["text/xml"]);$g(b,"vpa")&&pV(a,"vpa",[b.get("vpa")]);$g(b,
"mpt")&&pV(a,"mpt",[b.get("mpt")]);$g(b,"mpv")&&pV(a,"mpv",[b.get("mpv")]);XM(UM(),41351083)||Ah(a,"https");return a};function XZ(a){mZ.call(this,a,null)}B(XZ,mZ);XZ.prototype.B=function(a){a=new P(a.get("adTagUrl"));XM(UM(),41351083)||Ah(a,"https");return a};XZ.prototype.G=function(){var a=D(this.C().get("adTagUrl"));XM(UM(),41351083)||(a=a.replace(/^http:/i,"https:"));return a};XZ.prototype.C=function(){var a=new Yg;a.set("adTagUrl",this.o.j);a.set("adsResponse",this.o.o);return a};function YZ(a){mZ.call(this,a,null)}B(YZ,mZ);YZ.prototype.B=function(a){return new P(a.get("adTagUrl"))};YZ.prototype.C=function(){var a=new Yg;a.set("adTagUrl",this.o.j);a.set("adsResponse",this.o.o);return a};function ZZ(a,b){mZ.call(this,a,b)}B(ZZ,mZ);ZZ.prototype.B=function(a){var b=new P(this.o.j);E(a.Ma(),function(c){C(a.get(c))?b.j.remove(c):Qh(b,c,a.get(c))});XM(UM(),41351083)||Ah(b,"https");return b};
ZZ.prototype.C=function(){var a=new Yg,b=UM(),c=ZM(b);C(D(c))||a.set("eid",c);a.set("sdkv",rZ(this));a.set("sdki",this.D().toString(16));a.set("correlator",this.A.D);a.set("scor",this.A.j);null!=this.o.kc&&a.set("adk",this.o.kc);pZ(this,a);qZ(this,a);nZ(this,a);oZ(a);var c=Ph(new P(this.o.j)),d=new sZ;d.o=QZ(d.o,c.get("overlay"));a.set("afvsz",IZ(d,this.o.Bc,this.o.Ac,this.o.rg));c=this.A.o;null!=c&&(this.A.o=null,a.set("fbidx",c));c=this.A.U;null!=c&&a.set("ppid",c);c="null";d=this.A.B;null!=d?c=
d:$Z(this.o.location)?c=this.o.location:$Z(this.o.referrer)&&(c=this.o.referrer);a.set("url",c);c=this.A.G;null!=c&&a.set("submodel",c);c=this.A.F;null!=c&&(c=gda(c),a.set("ciu_szs",c));a.set("impl","");XM(b,41351094)&&a.set("unviewed_position_start","");return a};function $Z(a){if(C(D(a)))return!1;a=new P(a);if(!a.B||"http"!=a.B&&"https"!=a.B)return!1;a=a.o;return-1==a.indexOf(".")||a.match(/^[\.0-9]*$/)?!1:!0}
function gda(a){var b=[];E(a,function(a){0<a.length&&b.push(F(a,function(a){return a.width+"x"+a.height}).join("|"))});return b.join(",")};function a_(a,b,c){mZ.call(this,a,b);var d=UM();this.H=$M()?!1:C(D(a.A));a=new sZ;$M(UM())||(a.j=MZ(a.j,this.o.A),a.adType=a.j.join("_"));a.experimentIds=PZ(a.experimentIds,this.o.B);this.j=a;this.J=b;this.F=c;C(D(this.j.experimentIds))||SM(d,this.j.experimentIds.split(","))}B(a_,ZZ);a_.prototype.B=function(a){a=a_.N.B.call(this,a);this.H||hda(this,a);return a};function ida(a){var b=GZ(a.o,a.J,a.j,a.F);b.set("sdkv",rZ(a));b.set("sdki",a.D().toString(16));return b}
function hda(a,b){var c=ida(a),d=F(c.Ma(),function(a){var b=c.get(a);return a+"="+(null!=b?b:"")});Qh(b,"afvparams",d.join("&"))};function b_(a,b,c){mZ.call(this,a,b);var d=UM();this.H=$M()?!1:C(D(a.A));d=new sZ;$M(UM())||(d.j=MZ(d.j,this.o.A),d.adType=d.j.join("_"));d.experimentIds=PZ(d.experimentIds,this.o.B);this.j=d;this.J=b;this.F=c;C(D(this.j.experimentIds))||(b=this.j.experimentIds.split(","),d=UM(),SM(d,b))}B(b_,WZ);b_.prototype.B=function(a){a=b_.N.B.call(this,a);this.H||jda(this,a);return a};function kda(a){var b=GZ(a.o,a.J,a.j,a.F);b.set("sdkv",rZ(a));return b}
function jda(a,b){var c=kda(a),d=F(c.Ma(),function(a){var b=c.get(a);return a+"="+(null!=b?b:"")});pV(b,"afvparams",[za(d.join("&"))])};function c_(a){mZ.call(this,a,null)}B(c_,mZ);var lda=["CPN","MT","LACT","VIS"];c_.prototype.B=function(){var a=new P(wM(this.o.j,mda(this)));XM(UM(),41351083)||Ah(a,"https");return a};c_.prototype.C=function(){return new Yg};function mda(a){if(null==a.o||null==a.o.zb)return{};var b={},c=a.o.zb;E(lda,function(a){a in c&&(b[a]=c[a])});return b};function nda(a,b){var c;if(!tV(a.j)&&!uV(a.j)||($M(UM())?null==a.j||-1==a.j.search("afvbase="):C(D(a.A))||null==a.j||-1==a.j.search("afvbase=")))if(tV(a.j))c=new WZ(a,FU);else if(qV(a.j))c=new SZ(a,FU,b);else if(uV(a.j))c=new ZZ(a,FU);else if(sV(a))c=new VZ(a,FU);else if(c=a.j,null!=c?(c=Mh(new P(c)),c=xa(c,".fwmrm.net")):c=!1,c)c=new XZ(a);else{c=a.j;if(null!=c){c=new P(c);var d=c.A;c=xa(c.o,"youtube.com")&&rV("/get_midroll_info",d)}else c=!1;c=c?new c_(a):new YZ(a)}else c=tV(a.j)?new b_(a,FU,b):
new a_(a,FU,b);return c};function oda(a){a=lb(a,function(a){return 0<PW(a)});Kb(a,function(a,c){return PW(a)-PW(c)});return a}function pda(a){return lb(a,function(a){return-1==PW(a)})};function d_(a){this.j=a};function qda(){this.j=0}function rda(a,b,c,d,e,f){var h=x(function(a){d(a,Error(Cn(a)))},a),k=x(function(a){6==a?e_(this,b,!1,c,h,e,f):h(a)},a);e_(a,b,!0,c,k,e,f)}
function e_(a,b,c,d,e,f,h){var k=new mo;k.S=c;po(k,sda(f));var l=new vn,n=x(function(){l.dispose();k.dispose()},a);c=x(function(){e(k.o);n()},a);Bn(l,k,"success",function(){var a;try{a=k.j?k.j.responseXML:null}catch(b){a=null}if(null==a){var c=Rn(k);try{a=LA(c)}catch(b){a:if(document.implementation&&document.implementation.createDocument)a=document.implementation.createDocument("","parsererror",null);else{if(KA&&(a=MA())){a.appendChild(a.createNode(1,"parsererror",""));break a}throw Error("Your browser does not support creating new documents");
}}}d(a);n()},a);Bn(l,k,["error","timeout"],c,a);var r;"POST"==h&&(b=new P(b),r=b.j.toString(),Eh(b,""),b=b.toString());a.j=A();k.send(iN(b),h,r)};function f_(a,b,c){var d=null,e=c+b;E(a.B,function(f){if(lV(f.K,"rm")){var h=AZ(a);yW(a)&&(h.FILLED_OPPORTUNITY=0);oN(a.H,h);(h=a.A)&&h.afcRmFallback&&(d=f)}else{if(h=f instanceof iW)0==c&&0==b||f instanceof YY?h=!0:(h=f.Wb(),h=h.width<=b&&h.height<=c);if(h&&(h=0==c&&0==b?0:c-f.Wb().height+b-f.Wb().width,"Flash"!=f.getContentType()||BP))if(null==d)d=f,e=h;else if(h==e&&f.j<d.j||h<e)d=f,e=h}});GW(a,d)}
function g_(a){var b=null;E(a.B,function(a){a instanceof eW&&(null===b||a.j<b.j)&&(b=a)});GW(a,b)};function h_(a,b,c,d){this.B=a;this.H=b;this.ads=0<this.B.length?this.B:this.H;this.D=c;this.C=this.K=!0;this.o=-1;this.j=null;this.F=0;this.M=d;this.logger=null}h_.prototype.od=function(){return null!=this.j&&this.j.od()?!0:0<this.ads.length&&this.o<this.ads.length-1};function i_(a,b,c){null!=a.j?tda(a,b,c):a.od()?uda(a,b,x(function(a){!this.od()||!DM()&&301==a.getErrorCode()?c(a):i_(this,b,c)},a)):c(new mM("adLoadError","The ad source contains no more ads.",1005))}
h_.prototype.J=function(a,b){return this.C?0<a.length?a:b:Eb(b,0,1)};h_.prototype.A=function(a,b,c){var d;if(!(d=null!=a.o)){var e=this.D;d=e.Bc||0;e=e.Ac||0;SW(a)&&!a.L?UW(a,"nonlinear")?f_(a,d,e):g_(a):UW(a,"linear")?g_(a):UW(a,"nonlinear")&&f_(a,d,e);d=null!=a.o}d?(this.F++,b(a)):(b=ub(a.B)?aO(MN):qW(a)?aO(HN):aO(PN),d=uZ(b,a),lV(qba(a),"rm")?b.o=!1:oN(a.W,d),c(b))};h_.prototype.G=function(a,b,c){var d=this.D.clone();d.o="";d.j=a.Da;d.kc=yU(d.j,d.ki);j_(this,a,d,b,c)};
function vda(a,b,c,d){var e=a.D.clone();e.o="";e.j=b.Ea;j_(a,b,e,c,d)}function j_(a,b,c,d,e){var f=b.getExtension("LocalRedirect");null!=f&&(f=f.A,null!=f&&(c.o=f));a.M.fetch(c,x(function(a){if(a instanceof h_){var c=this.C&&b.wa,f=b.za,n;for(n in a.ads)a.ads[n].j=b;a.C=c;a.ads=a.J(a.B,a.H);a.o=-1;a.K=f;d(a)}else a instanceof d_?e(new mM("adLoadError","Ad source cannot contain playlist response.",2)):e(new mM("adLoadError","Unknown ad source.",2))},a),e)}
function wda(a){var b=0;for(a=a.j;null!=a;)a=a.j,b++;return b}function tda(a,b,c){a.j.od()?i_(a.j,x(function(a){this.A(a,b,x(function(a){this.od()?i_(this,b,c):c(a)},this))},a),x(function(a){k_(this.ads[this.o],a);this.j=null;DM()||301!=a.getErrorCode()?this.od()?i_(this,b,c):c(a):c(a)},a)):(0==a.j.F&&k_(a.ads[a.o],aO(XN)),a.j=null,i_(a,b,c))}function k_(a,b){if(b.o){1012==b.getErrorCode()&&(b=aO(ON));var c=uZ(b,a);oN(a.W,c)}}
function uda(a,b,c){a.o++;var d=a.ads[a.o];d.L||d.K?d.K?vda(a,d,x(function(a){this.j=a;i_(this,b,c)},a),x(function(a){a=l_(a);k_(d,a);c(a)},a)):4<=wda(d)?(a=aO(QN,null,"4"),k_(d,a),c(a)):a.K?a.G(d,x(function(a){this.j=a;i_(this,b,c)},a),x(function(a){a=l_(a);k_(d,a);c(a)},a)):c(aO(WN)):a.A(d,b,c)}function l_(a){switch(a.getErrorCode()){case 300:case 301:case 302:case 303:case 200:case 1012:break;default:a=aO(XN)}return a};function m_(a,b,c,d){h_.call(this,[],a,b,c);this.L=d}B(m_,h_);m_.prototype.od=function(){return null!=this.j&&this.j.od()?!0:0<this.ads.length&&this.o<this.ads.length-1&&0==this.F};m_.prototype.J=function(a,b){return b};m_.prototype.A=function(a,b,c){var d=-1,d=null==this.j?OW(a):OW(this.ads[this.o]);this.L.o=d;m_.N.A.call(this,a,b,c)};m_.prototype.G=function(a,b,c){this.L.o=-1;m_.N.G.call(this,a,b,c)};function n_(a,b,c,d,e){this.C=a;this.A=b;this.B=c;this.j=d;this.D=e}n_.prototype.fetch=function(a,b,c){C(D(a.o))?uV(a.j)&&null!=this.j&&!this.j.G?this.j.start(a,x(function(){o_(this,a,b,c)},this)):o_(this,a,b,c):xda(this,a,b,c)};function xda(a,b,c,d){var e;try{e=LA(b.o)}catch(f){d(aO(EN,f));return}null!=e?p_(a,e,b,c,d):d(aO(EN))}function o_(a,b,c,d){var e;if(e=null!=b.j){a:{try{Aa(b.j)}catch(f){e=!1;break a}e=!0}e=!e}e?d(aO(wN,null,b.j)):EM.B?Jba(zX(),x(a.o,a,b,c,d)):a.o(b,c,d)}
n_.prototype.o=function(a,b,c,d){var e=nda(a,this.B).G(),e=nN(e,d,!0);d=a.ni&&gN(eN,e)?"POST":"GET";rda(this.A,e,x(function(d){p_(this,d,a,b,c)},this),x(function(b,d){var e;e=8==b?aO(LN):5==b||6==b?aO(rN):aO(vN,d);c(e);e="third_party";qV(a.j)?e="adsense":tV(a.j)?e="dart":uV(a.j)&&(e="xfp");e={rt:e,ec:b};wO(vO.getInstance(),18,e,!0)},this),this.D,d);yda(a)};
function yda(a){var b="third_party";qV(a.j)?b="adsense":tV(a.j)?b="dart":uV(a.j)?b="xfp":sV(a)&&(b="dbm");a={rt:b};wO(vO.getInstance(),17,a,!0)}function p_(a,b,c,d,e){var f;try{var h=Qca(b,c);if(!h)throw aO(EN);f=h.A();zda(a,f,c,d)}catch(k){k instanceof mM?e(k):e(aO(FN,k))}}
function zda(a,b,c,d){var e=b.j;if(null!=e)d(new d_(e));else{var f=b.A;if(null==f)throw aO(JN);E(f,function(a){a.A=c;var d=zM();d&&AM(d,"useCompanionsAsEndSlate")&&(a.D=vba(a));a.ea=this.A.j;DM()&&(a.na=b.o)},a);e=oda(f);f=pda(f);0<f.length&&0<=OW(f[0])?d(new m_(f,c,a,a.C)):d(new h_(e,f,c,a))}};function q_(a){this.j=a+A()}q_.prototype.reset=function(a){this.j=a+A()};function sda(a){var b=A();a=a.j-b;return 0<a?a:0};function Ada(a,b){this.j=a;this.o=b;EM.j&&SS().init();var c;a:{try{c=window.top.location.href}catch(d){c=2;break a}c=null!=c?c==window.document.location.href?0:1:2}FU.H=c}function Bda(a,b,c,d){var e=b.F;DM()&&e&&SM(UM(),e,!1);e=null;null!=a.j&&(e=new vX(1E3,a.j,a.o));var f=gba(b);null!=f&&fba(b)&&(a.o.T=f);(new n_(a.o,new qda,a.j,e,new q_(8E3))).fetch(b,x(function(a){a instanceof d_?c(a):Cda(this,a,c,d)},a),d)}
function Cda(a,b,c,d){var e=[],f=x(function(a,b){a.od()?i_(a,x(function(b){e.push(b);f(a,null)},this),x(function(b){301==b.getErrorCode()?d(aO(LN)):f(a,b)},this)):0<e.length?c(e):(null==b&&(b=aO(BN)),1012==b.getErrorCode()&&(b=aO(ON)),d(b))},a);f(b,null)};function Dda(a){this.A=a;this.o=new Zo;this.j=!1}function r_(a,b,c,d){var e=x(function(a){c(a);bp(this.o);this.j=!1;s_(this)},a),f=x(function(a){d(a);bp(this.o);this.j=!1;s_(this)},a);ap(a.o,x(function(){Bda(this.A,b,e,f)},a));s_(a)}function s_(a){if(!a.j){var b;b=a.o;$o(b);b=ib(b.j);null!=b&&(a.j=!0,b())}};function t_(a,b,c){J.call(this);this.B=new Dda(new Ada(b,c));this.C=a;this.o=b;this.j=!0;this.A=c}B(t_,J);function Eda(a,b,c){if(a.j){var d=null!=c?c:{};tX.getInstance().end("rtr");Fba(tX.getInstance(),b.j);tX.getInstance().start("vl");r_(a.B,b,x(function(a){u_(this,a,d)},a),x(function(a){v_(this,a,d)},a))}}function Fda(a,b,c){if(!a.j){var d=null!=c?c:{};r_(a.B,b,x(function(a){u_(this,a,d)},a),x(function(a){v_(this,a,d)},a))}}
function u_(a,b,c){if(a.j)b instanceof d_?(b=new w_(b.j,a),b.F=a.o,a.Y(new qX(b,c))):(b=x_(b),b.F=a.o,null!=b?(a.Y(new qX(b,c)),tX.getInstance().end("vl")):v_(a,aO(HN,null),c));else if(b instanceof d_)v_(a,aO(qN,null,"Unsupported ad format."),c);else{var d=new sX("adsLoaderSdkAdLoaded");d.D=b;d.C=c;a.Y(d)}}function v_(a,b,c){a.j?("always"==EM.o&&null!=a.o&&kX(a.o,iX()),a.Y(new nM(b,c))):(c=new sX("adsLoaderSdkAdError"),c.A=b,a.Y(c))};var Gda={NORMAL:"normal",FULLSCREEN:"fullscreen"};function Hda(a){return'<div class="close-padding"><a class="close-button" title="'+Y(a.close)+'" role="button" tabindex="0"></a></div>'}function Ida(){return'<div class="recall-button"></div>'}function Jda(a){return'<a target="_blank" href="'+Y(a.url)+'" class="attribution-button">'+Y(a.text)+"</a>"};function y_(a,b){this.H=a;this.G=O("div",{"class":"controls"});this.j=O("div",{"class":"adDisplay"});this.U=b||v;this.Pc=new vn(this)}B(y_,H);g=y_.prototype;g.Cg=!1;g.ho=1E3;g.So=30;g.To=45E3;g.fq=15E3;g.Rq=!1;function z_(a){var b=O("div",{"class":"ima-container"});Ir(b,"opacity 0.4s");a.Pc.P(b,"mouseover",a.vw);a.Pc.P(b,"mouseout",a.YB);b.appendChild(a.G);a.G.appendChild(a.j);return b}g.bk=function(){var a=z_(this);this.j.appendChild(this.H);this.display(this.H);this.play();return a};
g.la=function(){null==this.K&&(this.K=this.bk());return this.K};g.play=function(){null==this.o&&(this.o=me(function(){this.Cg||(this.da(),this.Rq=!0);this.o=null},this.Rq?this.fq:this.To,this))};g.stop=function(){null!=this.o&&(ne(this.o),this.o=null)};g.display=function(a){var b=document.createEvent("Event");b.initEvent("creativeview",!0,!0);a.dispatchEvent(b)};function A_(a){Mg(a.la(),1);null!=a.A&&(ne(a.A),a.A=null)}
g.da=function(){Mg(this.la(),this.So/100);null==this.A&&(this.A=me(function(){this.U();this.A=null},400,this))};g.vw=function(){A_(this);this.Cg=!0;this.C=me(function(){this.Cg&&this.stop();this.C=null},this.ho,this)};g.YB=function(){null!=this.C&&(ne(this.C),this.C=null);this.Cg&&this.play();this.Cg=!1};g.R=function(){y_.N.R.call(this);this.stop();Ub(this.Pc)};function B_(a,b){this.J=a;this.M=new Yg;this.L=15E3;this.D=O("span");y_.call(this,a[0],b);this.j.appendChild(this.D)}B(B_,y_);g=B_.prototype;
g.bk=function(){var a=z_(this);K(a,"ima-container-rotator");this.F=O("div");this.j.appendChild(this.F);E(this.J,function(a,c){K(a,"ima-container-highlight");var d=63/this.J.length*(c+.5)-5,e=O("div",{id:ab(),"class":"ima-container-selector"});e.style.top=d+"px";this.Pc.P(e,"click",function(a){this.Jf(a.target)});this.M.set(e.id,a);this.D.appendChild(e)},this);this.Jf(Zf(this.D));this.play();return a};
g.play=function(){null==this.ya&&(this.ya=new ke(this.L),this.Pc.P(this.ya,"tick",this.zB));B_.N.play.call(this);this.ya.start()};g.stop=function(){null!=this.ya&&this.ya.stop();B_.N.stop.call(this)};g.zB=function(){var a=this.B;this.Jf((p(a.nextElementSibling)?a.nextElementSibling:$f(a.nextSibling))||Zf(this.B.parentNode))};g.Jf=function(a){this.B&&te(this.B,"ima-container-active");K(a,"ima-container-active");var b=this.M.get(a.id);Xf(b,this.F);this.B=a;this.F=b;this.display(b)};function C_(a,b){y_.call(this,a[0],b);this.B=a;K(this.j,"ima-container-stack")}B(C_,y_);C_.prototype.da=v;C_.prototype.bk=function(){var a=z_(this);E(this.B,function(a){K(a,"ima-container-highlight");this.j.appendChild(a);this.display(a)},this);this.play();return a};function D_(a,b,c,d,e){aB.call(this);this.o=a;this.C=b;this.F=c;this.A=d;this.D=ea(e)?e:[e]}B(D_,aB);g=D_.prototype;g.play=function(){if(this.ib())return!1;this.Ci();this.dc("play");this.startTime=A();this.j=1;if(Kr())return og(this.o,this.F),this.B=me(this.Tv,void 0,this),!0;this.Ll(!1);return!1};g.Tv=function(){Jg(this.o);Ir(this.o,this.D);og(this.o,this.A);this.B=me(x(this.Ll,this,!1),1E3*this.C)};g.stop=function(){this.ib()&&this.Ll(!0)};
g.Ll=function(a){Jr(this.o,"");ne(this.B);og(this.o,this.A);this.endTime=A();this.j=0;a?this.dc("stop"):this.Xb();this.Lg()};g.R=function(){this.stop();D_.N.R.call(this)};g.pause=function(){};function E_(a,b,c,d,e){return new D_(a,b,{opacity:d},{opacity:e},{property:"opacity",duration:b,timing:c,delay:0})};function Kda(a){return'<a target="_blank" href="'+Y(a.url)+'" class="fullslot-attribution-button">'+Y(a.text)+"</a>"}function Lda(a){return'<div class="fullslot-autoclose">'+Y(a.Yu)+"</div></div>"}function F_(a){var b="";a=ra("Ad will close in {$xSeconds}",{xSeconds:Y(a.Uf)});return b+a};function G_(a,b){J.call(this);this.A=a;this.S=0;this.ca=this.F=!1;this.o=0==HV(this.A.skipOffset)?3:1;this.G=this.H=this.j=this.B=this.fa=this.T=this.M=this.D=null;this.C=new vn(this);this.aa=!1;this.ia=this.ha=this.Z=0;this.J=this.L=this.K=null;this.W=!1;this.X=new $S;this.U=new $S;this.ea="";Mda(this,b);this.C.P(this.X,"click",this.OB);aT(this.X,this.B);this.C.P(this.U,"click",this.Cv);aT(this.U,this.H)}B(G_,J);g=G_.prototype;
g.R=function(){null!=this.K&&(this.K.dispose(),this.K=null);null!=this.L&&(this.L.dispose(),this.L=null);H_(this);null!=this.D&&(Wf(this.D),this.D=null);null!=this.B&&(this.B=null);null!=this.j&&(Wf(this.j),this.j=null);this.X.dispose();this.X=null;this.U.dispose();this.U=null;this.C.dispose();this.C=null;this.W=!1;G_.N.R.call(this)};
g.update=function(a,b){this.S=b;if(!(0>=this.S||null==this.A.skipOffset||0>HV(this.A.skipOffset))){var c=HV(this.A.skipOffset);c>=this.S||3==this.o||(0>a?this.o=1:a<=c?(2!=this.o&&(I_(this,0),E_(this.D,.5,"ease-out",0,1).play(),Ng(this.D,!0)),this.o=2):(3!=this.o&&(Ng(this.j,!0),this.L=new D_(this.D,.5,{opacity:1,visibility:"shown"},{opacity:.9,visibility:"hidden"},{property:"opacity",duration:.5,timing:"ease-out",delay:0}),this.K=E_(this.j,.5,"ease-out",0,1),this.L.play(),this.K.play(),this.B.autofocus&&
this.B.focus(),this.C.P(ag(this.j),"mouseover",this.wB),this.C.P(ag(this.j),"mouseout",this.Cq),this.Cq()),this.o=3,this.Y("skipshown"),J_(this)&&(Ng(this.H,!0),Ng(this.G,!0),this.Y("video_extend_shown"))))}if(2==this.o)I_(this,a);else if(J_(this)&&!this.ca){var d=20-a;0<d?(c="",d=ra("Ad will skip in {$xSeconds}",{xSeconds:Y(" "+Math.round(d))}),dg(this.G,c+d)):this.F||3!=this.o||this.F||(this.F=!0,this.Y("video_extend_auto_skipped"))}};
g.skip=function(){return null==this.A.skipOffset||3!=this.o||this.F?!1:(this.F=!0,this.Y("PUBLISHER_INVOKED_SKIP"),!0)};g.Rw=function(a){var b=a.j;3==this.o&&1==b.touches.length&&(this.aa=!0,this.ia=b.touches[0].pageX,a.preventDefault())};g.Qw=function(a){var b=a.j;3==this.o&&1==b.touches.length&&this.aa&&(b=b.touches[0].pageX,this.Z=this.ha-b,this.ha=b,b=this.ia-b,0<b&&(this.j.style.right=b+"px"),a.preventDefault())};
g.Pw=function(){this.aa=!1;if(3==this.o){var a=Ig(ag(this.j));if(parseInt(this.j.style.right,10)+4*this.Z>.25*a.width&&0<this.Z){Ng(this.j,!1);this.F=!0;this.Y("skip");return}}this.j.style.right=0};
function Mda(a,b){a.A.H&&(a.C.P(b,"touchstart",a.Rw),a.C.P(b,"touchmove",a.Qw),a.C.P(b,"touchend",a.Pw));a.D=uT(Kaa);a.M=Gf("videoAdUiPreSkipButton",a.D);a.T=Gf("videoAdUiPreSkipText",a.M);a.fa=Gf("videoAdUiPreSkipThumbnail",a.M);dg(a.T,TT({Uf:K_(a)}));var c=qaa(a.A.ca)||"";if(a.A.showContentThumbnail&&!C(D(c))){var d=Rf("img");d.setAttribute("src",c);K(d,"videoAdUiPreSkipThumbnailImage");a.fa.appendChild(d)}else K(a.T,"videoAdUiPreSkipTextOnly");a.j=uT(Laa,{skipText:a.A.H?"\u00ab Swipe to Skip":
ya(Sa()),Dv:Maa()});a.H=Gf("videoAdUiExtendButton",a.j);a.B=Gf("videoAdUiSkipButton",a.j);a.G=Gf("videoAdUiAutoSkipText",a.B);XM(UM(),9413054)&&(K(a.B,"autofocused"),a.C.P(a.B,"blur",x(function(){te(this.B,"autofocused")},a)),a.B.autofocus=!0);Ng(a.D,!1);b.appendChild(a.D);0==HV(a.A.skipOffset)?a.Y("skipshown"):(Ng(a.j,!1),Mg(a.j,0));b.appendChild(a.j)}function K_(a){return null!=a.A.skipOffset&&-1!=HV(a.A.skipOffset)?HV(a.A.skipOffset):-1}
function I_(a,b){var c=K_(a);if(!(0>c)){var c=Math.round(c-b),d=" "+c;60<=c&&(d=" "+kV(c));c=TT({Uf:d,Yh:a.ea});dg(a.T,c)}}function J_(a){return 3==a.o&&a.A.M&&20<a.S}g.OB=function(a){DM()||a.stopPropagation();3!=this.o||this.F||(this.F=!0,this.Y("skip"))};g.Cv=function(a){DM()||a.stopPropagation();3!=this.o||this.F||this.ca||(this.ca=!0,this.Y("video_extend_clicked"),Ng(this.H,!1),Ng(this.G,!1))};
g.Cq=function(){null==this.J&&(this.J=me(function(){this.W=!0;E_(this.j,.5,"ease-in",1,.5).play();this.J=null},this.W?5E3:15E3,this))};g.wB=function(){Mg(this.j,1);H_(this)};function H_(a){null!=a.J&&(ne(a.J),a.J=null)}g.setVisible=function(a){null!=this.M&&Ng(this.M,a);null!=this.B&&Ng(this.B,a);null!=this.H&&Ng(this.H,a&&J_(this));null!=this.G&&Ng(this.G,a&&J_(this))};function L_(a,b,c){J.call(this);this.j=a;this.U=!1;this.wa=c;this.ca=this.W=this.X=this.D=this.J=this.K=this.G=this.aa=this.Z=this.T=this.o=null;this.ia=!1;this.na=this.ea=this.fa=this.H=this.B=this.C=this.ha=this.S=this.M=this.F=null;this.A=new vn(this);this.za=[];this.L=[];this.U=!this.j.B&&YM([9414784,9418335,9416126]);a={Lc:this.j.Lc,Cf:this.j.Cf,re:this.j.re,Yh:this.U?"redesign2014q4":""};this.o=uT(this.j.G,a);this.A.P(this.o,"touchmove",this.Jw);this.S=Gf("videoAdUiProgress",this.o);this.ha=
Gf("videoAdUiBuffer",this.o);this.T=Gf("videoAdUiAttributionContainer",this.o);this.Z=Gf("videoAdUiAttributionIconContainer",this.o);this.aa=Gf("videoAdUiAttribution",this.o);this.G=Gf("videoAdUiVisitAdvertiserLinkText",this.o);this.K=Gf("videoAdUiVisitAdvertiserIcon",this.o);this.J=Gf("videoAdUiAuthorIcon",this.o);this.D=Gf("videoAdUiAuthorName",this.o);this.X=Gf("videoAdUiLearnMore",this.o);this.W=Gf("videoAdUiLearnMoreText",this.o);this.U?(this.H=Gf("videoAdUiTopButtonShare",this.o),this.fa=Gf("videoAdUiTopButtonShareTooltip",
this.o),this.ea=Gf("videoAdUiTopButtonInfo",this.o),this.na=Gf("videoAdUiTopButtonWatchLater",this.o)):this.H=Gf("videoAdUiShare",this.o);this.F=Gf("videoAdUiTitle",this.o);this.M=Gf("videoAdUiTopBar",this.o);this.ca=Gf("videoAdUiBottomBar",this.o);null!=this.J&&this.A.P(this.J,"click",this.Vu);null!=this.D&&(c=new $S,this.L.push(c),this.A.P(c,"click",this.Wu),aT(c,this.D));null!=this.X&&(c=new $S,c.K=!0,this.L.push(c),this.A.P(c,"click",this.No),aT(c,this.X));null!=this.W&&(c=new $S,c.K=!0,this.L.push(c),
this.A.P(c,"click",this.No),aT(c,this.W));null!=this.H&&this.A.P(this.H,"click",this.MB);null!=this.F&&(c=new $S,this.L.push(c),this.A.P(c,"click",this.VB),aT(c,this.F));null!=this.M&&this.A.P(this.o,"mouseover",this.LB);null!=this.G&&this.A.P(this.G,"click",this.fj);null!=this.K&&this.A.P(this.K,"click",this.fj);null!=this.T&&null!=this.j.C&&M_(this.j.C)&&(this.A.P(this.T,"click",this.iB),this.A.P(this,"why_this_ad_got_it_url",this.dC));null!=this.j.skipOffset&&(this.B=new G_(this.j,this.o),this.B.Vg(this),
this.B.ea=a.Yh);400>=(parseInt(sg(b,"width"),10)||b.width)&&K(this.o,"videoAdUi-mobile");this.j.B&&(K(this.o,"blazer"),window.settings&&window.settings.isTablet?K(this.o,"tablet"):K(this.o,"phone"));this.j.H&&K(this.o,"videoAdUi-swipeable");a=kg(b,"html5-video-player");null!=a&&(this.U&&K(a,"videoAdUiRedesign"),this.j.o&&K(a,"ytp-video-ad-learn-more-ui"));Ng(this.o,!1);b.appendChild(this.o);this.j.o||this.U||!this.j.K||(this.C=O("div",{style:"width:100%;height:100%;pointer-events:auto;"}),this.o.appendChild(this.C));
N_(this)}B(L_,J);function Nda(a){null!=a.C&&Ng(a.C,!1)}g=L_.prototype;g.skip=function(){var a;if(a=null!=this.B)a=this.B,a=null!=a.A.skipOffset&&3==a.o;return a?this.B.skip():!1};function O_(a){a.B&&(a.B.dispose(),a.B=null)}g.R=function(){null!=this.o&&(Wf(this.o),this.o=null);O_(this);E(this.L,function(a){bT(a)});this.L=[];this.C=null;this.A.dispose();this.A=null;this.ia=!1;L_.N.R.call(this)};
g.update=function(a,b,c,d,e){this.ia=!0;null!=this.o&&(null!=this.aa&&Oda(this,a,c,d,e),null!=this.S&&Hg(this.S,a/c*100+"%"),null!=this.ha&&Hg(this.ha,b/c*100+"%"),0<c&&null!=this.j.skipOffset&&null!=this.B&&(IV(this.j.skipOffset,c),this.B.update(a,c)),this.j.F&&0<c&&5>c-a&&K(this.M,"videoAdUiTopBarNoFade"),E(this.za,function(b){b.update(a,c)},this))};function Pda(a,b){a.za=b;E(b,function(a){a.display(this.o)},a)}
function P_(a){null!=a.G&&(Ng(a.G,!0),dg(a.G,a.j.visitAdvertiserText));null!=a.K&&Ng(a.K,!0)}
function N_(a){var b=a.j.T&&(a.wa>a.j.aa||0==a.wa),c=b&&a.j.W,d=b&&a.j.Z,e=b&&a.j.A,f=b&&a.j.S,b=b&&a.j.F,h=a.j.U&&a.j.j,k="0px";null!=a.F&&(Ng(a.F,b),null!=a.J&&Ng(a.J,c),null!=a.D&&Ng(a.D,d),null!=a.X&&Ng(a.X,e),null!=a.H&&(Ng(a.H,f),f&&a.Y("videoShareShown")),null!=a.ea&&Ng(a.ea,!1),null!=a.na&&Ng(a.na,!1),null!=a.M&&Ng(a.M,b||c||d||e));null!=a.T&&Q_(a);null!=a.S&&(Ng(a.S,h),h&&(k=sg(a.S,"height")));null!=a.ca&&og(a.ca,"bottom",k);c=XM(UM(),41351019);null!=a.W&&Ng(a.W,(!c||DM())&&a.j.o);null!=
a.Z&&Ng(a.Z,a.j.J)}function Oda(a,b,c,d,e){var f=UT({Xi:"",Eh:0,$i:0});a.j.j&&a.j.L&&(b=kV(c-b),f=UT({Xi:a.j.B?" \u2022 "+b:a.U?" \u00b7 "+b:": ("+b+")",Eh:d,$i:e}));dg(a.aa,f);Q_(a)}function Q_(a){Ng(a.T,a.j.D&&(!a.j.j||a.ia))}g.Vu=function(){this.Y("videoAuthorIconClicked")};g.Wu=function(){this.Y("videoAuthorClicked")};g.No=function(){this.Y("videoLearnMoreClicked")};g.MB=function(){this.Y("videoShareClicked")};g.VB=function(){this.Y("videoTitleClicked")};g.Jw=function(a){a.preventDefault()};
g.fj=function(){this.Y("click")};g.LB=function(){K(this.M,"videoAdUiTopBarTransitions")};g.iB=function(){var a=kg(this.o,"html5-video-player"),b=this.j.C;null!=a&&(b.C=new vn(b),b.j=new J,b.j.Vg(this),b.D=a,b.tl(),b.j.Y("why_this_ad_url"));null!=this.B&&this.B.setVisible(!1)};g.dC=function(){null!=this.B&&this.B.setVisible(!0)};function R_(a,b,c){this.o=a;this.B=b;this.G=c;this.j=this.C=this.D=this.A=null;this.F=!1}function M_(a){return(a.G||null!=a.o&&null!=a.o.o)&&(null!=a.o||null!=a.B)}g=R_.prototype;
g.tl=function(){var a={heading:"",Jq:[],learnMore:"",bi:"",unsubscribe:"",control:"",mute:""};if(null!=this.o){a.heading="This ad is based on:";var b=this.o.C;if(b&&3==b.length){var c=b[1],d=b[2],b=xT(Y(b[0])+WT()+Y(c)+xT("</a>")+Y(d));a.bi=b}b=Bb(this.o.K);a.Jq=b;for(c=0;c<b.length;c++)if("string"==typeof b[c]&&Ka(b[c],"|")){var e=b[c].split("|"),f=e[1],d=e[2],h=xT,e=Y(e[0])+" <a class='"+LT("videoAdUiUnsubscribeLearnMore")+"' href='";null!=f&&f.Vb===pT||null!=f&&f.Vb===qT?f=String(f).replace(RT,
QT):f instanceof hf?(f=kf(f),f=String(f).replace(RT,QT)):f instanceof nf?(f=pf(f),f=String(f).replace(RT,QT)):(f=String(f),f=Gaa.test(f)?f.replace(RT,QT):"#zSoyz");d=h(e+LT(f)+"' target='_blank'>"+Y(d)+"</a>");b[c]=d}null!=this.o.o&&(a.unsubscribe=this.o.B,a.control=this.o.A,a.bi="");a.close=this.o.H}else a.bi=VT(),b="",c=ra("Got It"),a.close=b+c;null!=this.B&&(a.mute=this.B.B);S_(this,Naa,a);T_(this,"videoAdUiWhyThisAdCloseButton",this.jg);T_(this,"videoAdUiWhyThisAdControl",this.Dn);T_(this,"videoAdUiWhyThisAdMute",
this.gB);T_(this,"videoAdUiWhyThisAdUnsubscribe",this.hB);U_(this,"videoAdUiAdReasons",this.yv);U_(this,"videoAdUiWhyThisAdGenericMessage",this.Dn)};g.jg=function(){null!=this.C&&(this.C.dispose(),this.C=null);M_(this)&&null!=this.A&&(null!=this.j&&(this.j.Y("why_this_ad_got_it_url"),this.j.dispose(),this.j=null),this.A.parentElement.removeChild(this.A),this.A=null)};g.Dn=function(){null!=this.j&&this.j.Y("why_this_ad_settings_url")};g.yv=function(){null!=this.j&&this.j.Y("why_this_ad_learn_more_url")};
g.gB=function(){if(null!=this.B){this.j.Y("mute_interaction_url");var a,b=FY(this.B);if(0==b)a={heading:"",message:"Are you sure you want to stop seeing this ad?",confirm:"YES",cancel:"CANCEL"},S_(this,Qaa,a),T_(this,"videoAdUiUnsubscribeCancel",this.tl),T_(this,"videoAdUiUnsubscribeConfirm",this.nv);else{this.j.Y("mute_url");a={heading:this.B.A,undo:this.B.D,question:this.B.C,options:[],confirm:"SEND",cancel:"CLOSE"};for(var c=0;c<b;c++)a.options.push(this.B.o[c].label);S_(this,Paa,a);T_(this,"videoAdUiMuteUndo",
this.XB);T_(this,"videoAdUiUnsubscribeConfirm",this.QB);T_(this,"videoAdUiUnsubscribeCancel",this.Vh)}}};g.nv=function(){this.j.Y("mute_url");this.Vh()};g.XB=function(){this.j.Y("mute_undo_url");this.jg()};g.QB=function(){if(null!=this.B){for(var a=FY(this.B),b=!1,c=0;c<a;c++){var d=Gf("videoAdUiMuteOption"+c,this.A);if(null!=d&&d.checked){b=!0;mN(this.B.o[c].url);break}}if(!b)return}this.Vh()};
g.hB=function(){null!=this.o&&null!=this.o.o&&(S_(this,Oaa,{heading:this.o.B,message:this.o.L,control:this.o.A,cancel:this.o.D,confirm:this.o.F}),this.j.Y("why_this_ad_unsubscribe_url"),T_(this,"videoAdUiPopupBack",this.$u),T_(this,"videoAdUiUnsubscribeCancel",this.jv),T_(this,"videoAdUiUnsubscribeConfirm",this.ov))};
g.ov=function(){Ng(Gf("videoAdUiUnsubscribeConfirm",this.A),!1);Ng(Gf("videoAdUiPopupBack",this.A),!1);this.F=!0;this.j.Y("why_this_ad_unsubscribe_continue_url");var a=this.o.o,a=a instanceof hf?a:mf(a);window.open(kf(a),"",void 0,void 0)};g.jv=function(){this.F?this.Vh():(this.j.Y("why_this_ad_unsubscribe_cancel_url"),this.jg())};g.$u=function(){this.j.Y("why_this_ad_unsubscribe_cancel_url");this.tl()};g.Vh=function(){this.j.Y("MUTE_AD");this.jg()};
function T_(a,b,c){b=Gf(b,a.A);null!=b&&a.C.P(b,"click",c)}function U_(a,b,c){b=Gf(b,a.A);null!=b&&(b=b.getElementsByTagName("A")[0],null!=b&&a.C.P(b,"click",c))}function S_(a,b,c){null!=a.A&&a.A.parentElement.removeChild(a.A);a.A=uT(b,c);T_(a,"videoAdUiPopupCloseIcon",a.jg);a.D.appendChild(a.A);b=Gf("videoAdUiPopupFrame",a.A);null!=b&&md(b,"submit",function(a){a.preventDefault()});a=Gf("videoAdUiPopupDefaultButton",a.A);null!=a&&a.focus()};function V_(){this.Lc=UT({Xi:"",Eh:0,$i:0});var a="",b=ra("Learn More {$suffix}",{suffix:Y("")});this.Cf=a+b;a="";b=ra("Visit Advertiser's Site");this.visitAdvertiserText=a+b;this.re=VT();this.skipOffset=null;this.M=!1;this.aa=6E3;this.D=!0;this.J=!1;this.L=this.j=this.K=!0;this.S=this.U=this.A=!1;this.T=!0;this.F=this.Z=this.W=this.X=this.o=!1;this.G=null;this.H=Yc&&XM(UM(),0);this.showContentThumbnail=!0;this.B=!1}
function W_(a,b,c,d){var e=new V_;e.o=a;e.Ga=b;e.skipOffset=c;e.ca=null!=d?d.contentId:null;e.K=d.bC;e.G=Haa;e.ga=fT(b,null!=c,d.baseYouTubeUrl);e.showContentThumbnail=null!=d.contentId&&d.showContentThumbnail;return e};function X_(a,b,c,d,e,f,h){J.call(this);this.J=b;this.H=c;this.o=0;this.F=!1;this.C=this.J.C;this.D=new vn(this);this.L=f||v;this.K=h||v;this.j=a;this.B=this.G=null;K(this.j,jV(this.H));a=this.j;b=new V_;b.skipOffset=new GV(this.J.o,!1);this.B=new G_(b,a);d&&d.text&&(d=uT(Kda,d),this.j.appendChild(d));e?(e=this.j,d=F_({Uf:Y_(this.C)}),a=uT(Lda,{Yu:d}),dg(a,d),e.appendChild(a),e=a):e=null;this.G=e}B(X_,J);g=X_.prototype;
g.start=function(){var a=Jg(this.j);if(1==this.H){var b=400>=parseInt(sg(this.j,"width"),10)||400>=a.width;M(this.j,"videoAdUi-mobile",b)}else if(2==this.H){var c=Zf(this.j),d=Jg(c),e=65>=(a.height-d.height)/2;M(this.j,"fullslotAdUi-mobile",e);b=165>=(a.width-d.width)/2;M(this.j,"videoAdUi-mobile",b&&e);c.style.top=Math.max(5,Math.floor((a.height-d.height-65)/2))+"px"}this.B.update(this.o,this.C);E_(this.j,this.J.j,"ease-out",0,1).play();this.o=0;Z_(this);this.D.P(this.B,"skip",this.Qu)};
g.play=function(){this.F||Z_(this)};g.pause=function(){this.F&&$_(this)};g.getContainer=function(){return this.j};g.getCurrentTime=function(){return this.o};function Qda(a){var b=Gf("videoAdUiSkipButton",a.j);return b?Eg(b,a.j):new Ge(0,0)}g.Qu=function(){$_(this);this.L()};function Z_(a){$_(a);a.F=!0;a.A=new ke(200);a.D.P(a.A,"tick",a.Dp);a.A.start()}function $_(a){a.D.ua(a.A,"tick",a.Dp);null!=a.A&&(a.A.stop(),a.A=null);a.F=!1}
g.Dp=function(){this.o+=.2;var a=this.C-this.o;this.B.update(this.o,this.C);if(this.G){var b=F_({Uf:Y_(a)});dg(this.G,b)}this.Y("timeUpdate");0>=a&&($_(this),this.K())};function Y_(a){a=Math.ceil(a);return"0:"+(10>a?"0"+a:""+a)}g.R=function(){this.B&&this.B.dispose();$_(this);Uf(this.j);this.D.dispose();X_.N.R.call(this)};function a0(){H.call(this);this.C="";this.A=new JV;this.o=new Yg;this.D=[];this.H=!1;this.j={};this.G={};this.B=-1;this.F=[]}B(a0,H);function b0(a,b){if(EM.j){var c=XS(SS(),b.type,a.C);a.J(b.type,c)}else Kba(zX(),b.type,a.C,x(a.J,a,b.type))}
a0.prototype.J=function(a,b,c){if("timeout"==b){var d=this.G[a];null!=d&&(b=d)}null!=b&&null!=b&&(this.j.VIEWABILITY=b);"impression"==a&&!this.H&&null!=this.D&&0<this.D.length&&(d=tb(this.F,"impression"),c0(this,this.D,"",d),this.H=!0);if(Rda(this,a)){var d=tb(this.F,a),e=PV(this.A,a);0<e.length&&(c0(this,e,b,d,c),this.o.set(a,!0))}this.j.VIEWABILITY="na"};function Sda(a,b){null!=b&&E(b,function(a){tb(this.F,a)||this.F.push(a)},a)}
function c0(a,b,c,d,e){var f;EM.j||(f=zX().F||void 0);E(b,function(a){var b=this.j;if(DM()&&$ca(a)){var l=iaa();null!=l&&(b.MOAT_INIT=l.moatInit)}else b.MOAT_INIT="";mN(a,this.j,c,d,e,f)},a)}function Rda(a,b){switch(b){case "abandon":return!$g(a.o,b)&&!$g(a.o,"skip")&&!$g(a.o,"complete")&&($g(a.o,"impression")||a.H);case "click":return!0;case "complete":return!$g(a.o,b)&&!$g(a.o,"skip");default:return!$g(a.o,b)}};function d0(a){J.call(this);this.ads=a;this.G=null;this.X=new vn(this);I(this,this.X);this.M="normal";this.B=this.volume=null;this.o=new zO;this.za=!1;this.content={};this.C=new a0;this.aa=!1;E(a,function(){});E(a,function(b,c){var d=b.C;d.B=a.length;var e=c+1;d.o=e;d.C=e})}B(d0,J);
function e0(a){if(f0(a)){if(vW(a.G)&&!uO())throw cO(xN,null,"skippablevideo");if(gX(a.G)&&g0(a,a.G.j))throw cO(xN,null,"vpaidWithSkippabilityOverride");return a.G}throw cO(tN,null,"An ad has not been selected.\n"+Error().stack);}function g0(a,b){return null==b?!1:null!=b.getExtension("adx")?!0:g0(a,b.j)}function f0(a){return null!==a.G}g=d0.prototype;g.Sg=function(){var a=jb(this.ads,this.G);-1!=a&&++a<this.ads.length?this.G=this.ads[a]:this.G=null};
function Tda(a){return ob(a.ads,function(a){return ob(h0(a),function(a){return!C(D(eT(a.o)))})},a)}function h0(a){var b=a.j;if(b&&b.K&&(b=b.B,!ub(b)&&b[0]instanceof eW))return b[0].J;b=a.o;return i0(a)?b.J:[]}function i0(a){a=a.o;return null!=a&&a instanceof eW}g.pq=function(){if(!f0(this)){if(ub(this.ads))throw cO(HN);this.G=this.ads[0];if(null==this.G.o)throw aO(HN);}};g.ta=function(a){f0(this)?this.Y(new tM(a,e0(this))):this.Y(new tM(a,null))};
function j0(a){null==a.H&&(a.H=new vn(a));return a.H}g.yy=function(){};g.pl=function(){};function k0(a,b){if(null!=a.F){a.X.removeAll();zn(a.X,a.F,"companion_display_error",function(){});var c=kX(a.F,b);null!=c&&(a.X.P(c,"companion_impression",a.yy),a.X.P(c,"companion_click",a.pl));if(!a.F.ln())throw cO(uN);}}g.destroy=function(){EM.j&&(SS().D=null);this.dispose()};g.R=function(){f0(this)&&(GW(this.G,null),this.G=null);Ub(this.H);this.F=this.H=null;this.aa=!1;d0.N.R.call(this)};g.Sd=function(){return[]};
g.getCurrentAd=function(){return this.ads[0]};g.init=function(a){l0(this);this.ri(a);this.za=!0;this.Di()};g.Di=function(){this.ta("loaded")};g.sendImpressionUrls=function(a){f0(this)&&DM()&&oN(EW(e0(this)),a)};g.wq=v;
g.Md=function(a,b,c){if(!this.aa){if(null==a)throw cO(yN,null,"displayContainer");if(null!=c){var d=new Vk(ec(this.o));if(!gh(ec(c),d.contains,d))throw cO(yN,null,"opt_adsRenderingSettings should be instance of AdsRenderingSettings");d=this.o;if(null==c.bitrate||0>=c.bitrate)c.bitrate=-1;null==c.Ag&&(c.Ag=[]);Uda(c.Ag);ga(c.loadVideoTimeout)||(c.loadVideoTimeout=15E3);qc(d,c)}this.content=b;this.B=a;this.pq();EM.j&&(a=SS(),b=x(this.Ew,this),a.D=b);this.j=this.B.oi(Tda(this));this.aa=!0}};
g.Le=function(a){a=lV(sW(a),"rm")?a.H:EW(a);E(a,function(a){wb(this.C.D,a)},this)};g.ce=function(a,b){E(b,function(b){b=bW(a,b);MV(this.C.A,b)},this)};g.Mi=function(a){if(a instanceof eW){var b=fW(a);E(b.Ma(),function(a){var d=b.get(a);E(d,function(b){OV(this.C.A,a,b)},this)},this)}};function m0(a,b){b0(a.C,new sc(b))}function n0(a,b){b0(a.C,new sc(b));a.ta(b)}g.getCurrentTime=function(){return-1};g.Fe=function(){return-1};g.rf=function(a,b,c){this.ri(c)};g.pause=v;g.resume=v;g.skip=v;
g.start=function(){l0(this);if(!this.za)throw aO(tN,null,"Must call init before start.");};g.stop=function(){this.destroy()};g.no=function(){return null!=this.volume?this.volume:0};g.setVolume=function(a){(isNaN(a)||0>a||1<a)&&eO(this,yN,null,"volume",String(a));this.volume=a};g.ri=function(a){if(!bc(Gda,a))throw cO(yN,null,"view mode",a);this.M=a};function l0(a){if(!a.aa)throw cO(tN,null,"Ads manager is not correctly configured.");}g.getMediaUrl=function(){return null};g.oo=function(){return null};
g.ff=function(){return null};g.Ew=function(){var a=this.getCurrentTime(),b=this.Fe(),c=this.getCurrentAd();return{currentTime:a,duration:b,isVpaid:null!=c?gX(this.getCurrentAd()):!1,volume:this.no()}};function o0(a){do if(SW(a))return!1;while(a=a.j);return!0}function p0(a,b){for(var c=b;null!=c;)E(c.G.Ia(),a.uB,a),c=c.j}g.uB=function(a){E(Ab(pM,dc(sM)),function(b){var c=NV(a.j,b);ub(c)||this.zl(b,c)},this);Sda(this.C,a.G)};g.zl=function(a,b){E(b,function(a){var b=a.getType();OV(this.C.A,b,a.j)},this)};
function Uda(a){if(!ea(a))throw cO(tN,null,"adsRenderingSettings.mimeTypes should be an array");var b=Ab(dc(LM),dc(KM));E(a,function(a){if(!tb(b,a))throw cO(tN,null,"Invalid or unsuppoted mime type "+a);})};function q0(a){d0.call(this,a);this.D=null;this.fa=O("div",{style:"display:none;position:absolute;top:0;left:0;bottom:0;right:0;z-index:2000"});this.S=!1;this.Z=[]}B(q0,d0);g=q0.prototype;g.start=function(){q0.N.start.call(this);this.B.Nf();this.D=this.B.Be();if(null!=this.D){m0(this,"show_ad");Uf(this.D);var a=this.Vj();EM.j?haa(SS(),a):Iba(zX(),a);this.D.appendChild(a);this.Rh();E(this.Z,function(a){a()});vb(this.Z);this.S=!0}};g.rf=function(a,b,c){q0.N.rf.call(this,a,b,c);this.Rh()};
g.R=function(){Ub(this.A);this.B=this.A=null;this.S=!1;EM.j?SS().B=null:zX().A=null;null!=this.D&&(Uf(this.D),this.D=null);q0.N.R.call(this)};function r0(a,b){var c=pba(b);E(c,function(a){OV(this.C.A,"click",a)},a)}
g.Vj=function(){var a=HW(e0(this));if(null==a)throw a=cO(HN),s0(this,a),a;var b=e0(this);jW(a,j0(this));kW(a,this.Vv);a.C||lW(a,pa(this.Ek,b,a));try{k0(this,b)}catch(d){throw s0(this,d),d;}this.Le(b);var c=AZ(b,this.j);this.C.j=c;b.o&&(this.Le(b),(b=b.o)&&this.ce(b,qM));this.ce(a,["start"]);r0(this,a);return this.Gh([a.Pd()])};g.po=function(a,b){return new y_(a[0],b)};
g.Gh=function(a){null!=this.A&&this.A.stop();this.A=this.po(a,x(this.Zh,this));a=this.A.la();M(a,"autoalign",this.o.nn);M(a,"viewmode-fullscreen","fullscreen"==this.M);a.appendChild(this.fa);j0(this).P(a,"click",tc);(f0(this)&&SW(e0(this))||this.o.useStyledNonLinearAds)&&this.Qj(this.A.j);return a};
g.Qj=function(a){var b=j0(this);this.W=uT(Ida);b.P(this.W,"click",this.lw);var c="",d=ra("Close"),c=uT(Hda,{close:c+d});b.P(c,"click",this.ji);K(a,"extra-padding");null!=this.ha&&728<=this.ha.getWidth()&&K(a,"wide-overlay-ad");a.appendChild(c)};
g.Rh=function(a,b){if(null!=this.A){var c=a?a:0,d=b?b:0,e=Jg(this.B.Be()),f;f=Jg(Zf(this.A.j));if(f.width+c>e.width||f.height+d>e.height)throw c=cO(CN,null),s0(this,c),d={},d.pid=tX.getInstance().j,d.cz=f.width+"x"+f.height,d.sz=e.width+"x"+e.height,d.ct=HW(e0(this)).getContentType(),d.vm=this.M,wO(vO.getInstance(),38,d,!0),this.stop(),c;}};function s0(a,b){var c=uZ(b,e0(a)),d=DW(e0(a));oN(d,c)}g.Vv=function(a){n0(this,"click");tc(a)};g.ji=function(){m0(this,"close");this.Zh(!0)};
g.Ek=function(a,b){lW(b,v);this.S?this.Pg(a,b):this.Z.push(x(this.Pg,this,a,b))};g.Pg=function(a){a=AZ(a,this.j);this.C.j=a;n0(this,"impression");m0(this,"creativeview");n0(this,"start")};g.Zh=function(a){null!=this.A&&(this.A.stop(),null!=this.W&&Xf(this.W,this.A.j),a?this.ta("userClose"):this.ta("autoClose"))};g.lw=function(a){tc(a);A_(this.A);this.A.play();Xf(this.A.j,this.W);me(function(){Ng(this.fa,!1)},500,this);Ng(this.fa,!0);this.ta("userRecall")};function t0(a){q0.call(this,a);this.T=!1;this.K=this.U=null;this.ca=!1}B(t0,q0);g=t0.prototype;g.po=function(a,b){if(this.T||null==b)b=v;var c;DM()&&this.T?c=new y_(a[0],b):1<a.length?u0(this)||"fullscreen"==this.M?c=new C_(a):(c=new B_(a),c.L=15E3):c=new y_(a[0],b);c.ho=100;this.T&&(c.So=30);c.To=45E3;c.fq=6E3;M(c.j,"scalable",this.T);M(c.la(),"yt-text-overlay",DM()&&this.T);return c};
g.CB=function(a){var b=a.o;null!=b?(null==this.ea&&(this.ea=a.getExtension("AdSense").B),lW(b,pa(this.Ek,a,b)),kW(b,pa(this.Wv,a,b)),"Text"==b.getContentType()&&(this.T=!0),this.U.push(b)):(b=aO(HN),b=uZ(b,a),oN(DW(a),b))};g.Md=function(a,b,c){t0.N.Md.call(this,a,b,c);this.o.nn=!0;a=e0(this);ub(FW(a))?DM()&&this.ta("companionBackfill"):k0(this,a)};
g.Vj=function(){null==this.U&&(this.U=[],E(this.ads,this.CB,this));if(0==this.U.length)throw cO(HN);var a=[];E(this.U,function(b){jW(b,j0(this));"Flash"!=b.getContentType()||b.getAd().getExtension("TemplateAd")||(b.un=!0);a.push(b.Pd());oba(b,this.ea.D)},this);if(0==a.length)throw cO(HN);Vda(this);return this.Gh(a)};g.start=function(){t0.N.start.call(this);!this.ca&&u0(this)&&(this.ca=!0,this.ta("contentPauseRequested"));null!=this.K&&this.K.start();if(this.S){var a=v0(this);w0(33,a)}};
g.ji=function(a){t0.N.ji.call(this,a);E(this.U,function(a){var c=AZ(a.getAd(),this.j);this.C.j=c;this.ce(a,["close"]);m0(this,"close");this.C=new a0},this)};g.Zh=function(a){t0.N.Zh.call(this,a);u0(this)&&(null!=this.D&&Uf(this.D),this.ca&&(this.ca=!1,this.ta("contentResumeRequested")))};g.Gh=function(a){a=t0.N.Gh.call(this,a);if(u0(this)){var b=jV(2);K(this.A.j,b);K(a,b)}return a};
g.Qj=function(a){if(u0(this)){var b=ag(a);b&&((a=Yf(a)[0])&&og(a,{margin:"0 auto"}),a=this.ads[0].getExtension("AdSense"),this.K=new X_(b,a.B||new KX,2,x0(this),!0,x(this.pw,this),x(this.Bw,this)))}else t0.N.Qj.call(this,a),b=uT(Jda,x0(this)),a.appendChild(b)};function x0(a){var b=a.ads[0].getExtension("AdSense"),c=b.C,b=b.D;a={text:null!=c?c:a.ea.A,url:null!=b?b:a.ea.B};null==a.text&&(c="",b=ra("Ads by Google"),c=xT(c+b),a.text=c);return a}
g.Ek=function(a,b){this.S?this.Pg(a,b):this.Z.push(x(this.Pg,this,a,b));lW(b,v);this.ta("impression")};g.Pg=function(a,b){var c=AZ(a,this.j);this.C.j=c;this.Le(a);this.ce(b,["creativeview"]);m0(this,"impression");m0(this,"creativeview");n0(this,"start");this.C=new a0};
g.Wv=function(a,b,c){c=Fg(c);a=a.getExtension("AdSense");a=new P(a.A);var d=b.getWidth();isNaN(d)&&(d=Ig(b.Pd()).width);var e=b.getHeight();isNaN(e)&&(e=Ig(b.Pd()).height);b=UM();b=["0","aw="+d,"ah="+e,"nx="+c.x,"ny="+c.y,"viewMode="+this.M,"sdkv=h.0.0.0","eids="+ZM(b)];iV()&&(c=Jg(this.B.Be()),d=this.K?Qda(this.K):new Ge(-1,-1),b=b.concat(["bw="+c.width,"bh="+c.height,"sx="+d.x,"sy="+d.y]));lN(a,"elementclick",b);E(this.U,function(a){var b=AZ(a.getAd(),this.j);this.C.j=b;r0(this,a);m0(this,"click");
this.C=new a0},this);this.ta("click")};g.ri=function(a){this.M!=a&&(t0.N.ri.call(this,a),a=XM(UM(),41351067)||!1,null==this.D||this.K||a||(Uf(this.D),a=this.Vj(),this.D.appendChild(a)),this.ta("expandedChanged"))};g.Rh=function(){var a=this.K?15:0,b=this.K?XM(UM(),41351063)&&!DM()?25:65:0;t0.N.Rh.call(this,a,b)};function u0(a){return f0(a)&&WW(e0(a))}g.pw=function(){y0(this,"skip")};g.Bw=function(){y0(this,"close")};function Vda(a){var b=v0(a);b.rba=a.S;w0(37,b)}
function v0(a){var b=[],c=[];E(a.U,function(a){b.push(a.getWidth()+"x"+a.getHeight());c.push(a.getContentType())},a);var d={};d.pid=tX.getInstance().j;d.fsmode=null!=a.K;0<b.length&&(d.cz=b.join(","));0<c.length&&(d.ct=c.join(","));d.vm=a.M;return d}function y0(a,b){if(a.K){a.ji(new sc("close"));var c={};c.pid=tX.getInstance().j;c.evt=b;w0(35,c)}}function w0(a,b){var c=iV()&&!DM();wO(vO.getInstance(),a,b,c)};function z0(a){tM.call(this,"adMetadata",a)}B(z0,tM);function Wda(a,b,c){var d=v,e=new P("https://www.googleapis.com/youtube/v3/videos");Qh(e,"id",a);Qh(e,"part","snippet,status");Qh(e,"fields","items/id,items/snippet/title,items/snippet/channelId,items/status/privacyStatus");null!=c&&(b=x(b,c),d=x(d,c));A0(new mo,e,b,d)}
function Xda(a,b,c){var d=v,e=new P("https://www.googleapis.com/youtube/v3/channels");Qh(e,"id",a);Qh(e,"part","snippet,statistics");Qh(e,"fields","items/id,items/snippet/title,items/snippet/thumbnails/default/url,items/statistics/videoCount");null!=c&&(b=x(b,c),d=x(d,c));A0(new mo,e,b,d)}
function A0(a,b,c,d){Qh(b,"key","AIzaSyA-dlBUjVQeuc4a6ZN4RkNUYDFddrVLxrA");po(a,2E3);var e=new vn(a);zn(e,a,"success",function(a){a=a.target;var b;b=a.j?ve(a.j.responseText):void 0;c(b||{});e.dispose();a.dispose()});zn(e,a,["error","timeout"],function(a){a=a.target;var b=null;0!=a.o&&(b=Error(Cn(a.o)));d(b);e.dispose();a.dispose()});a.send(b)};function B0(a){if(a&&a.items&&a.items.length){a=a.items[0];this.channelId=a.id;var b=a.snippet;b&&(this.o=b.title,this.j=fc(b,"thumbnails","default","url"));if(a=a.statistics)this.videoCount=a.videoCount}}B0.prototype.videoCount=0;function C0(a){if(a&&a.items&&a.items.length){a=a.items[0];this.videoId=a.id;var b=a.snippet;a.snippet&&(this.channelId=b.channelId,this.title=b.title);if(a=a.status)this.isListed="unlisted"!=a.privacyStatus}}C0.prototype.isListed=!0;function Yda(){var a="",b=ra("Your video will play after this ad.");return xT(a+('<div class="videoAdInterstitial"><p>'+b+"</p></div>"))};function D0(){H.call(this);this.o=uT(Yda);this.ya=0}B(D0,H);D0.prototype.j=function(a){this.ya=0;Wf(this.o);a()};function E0(a){a.ya&&(ne(a.ya),a.j(v))}D0.prototype.R=function(){E0(this);D0.N.R.call(this)};function F0(a){sc.call(this,a)}B(F0,sc);function G0(a){J.call(this);this.B=a;this.L=new Yg;this.H=-1;this.J=this.M=!1;this.F=""}B(G0,J);function H0(a){this.j=!1;this.mute=a.sf();this.volume=a.qd()}H0.prototype.muted=function(a,b){return!this.mute&&a||0<this.volume&&0==b};var Zda={click:3,videoLearnMoreClicked:3,videoShareClicked:8,videoTitleClicked:14,videoAuthorClicked:15,videoAuthorIconClicked:15};g=G0.prototype;g.R=function(){I0(this);G0.N.R.call(this)};
function I0(a){null!=a.o&&a.o.dispose();null!=a.j&&a.j.vf();null!=a.D&&a.D.dispose();a.D=null;null!=a.G&&a.G.dispose();a.G=null;a.L.clear();a.H=-1;a.F="";a.M=!1;a.J=!1}function J0(a,b,c,d){if(!c||null==a.L.get(b)){d&&!a.J&&(b="error");a.L.set(b,!0);a:{c=b;if(a.A&&a.A.j.A){if("click"==c)break a;"videoLearnMoreClicked"==c&&b0(a.B,new sc("click"))}d=Zda[c]||null;null!=d&&null!=a.j&&a.j.El(d);b0(a.B,new sc(c))}a.Y(b)}}
g.uz=function(a){var b=a.A;this.B.G.measurable_impression=null!=b?b.viewabilityString:null;a.A.queryId==this.F&&J0(this,"measurable_impression",!0,!1)};g.XA=function(a){a=a.A;a.queryId==this.F&&(this.B.G.viewable_impression=null!=a?a.viewabilityString:null,J0(this,"viewable_impression",!0,!0))};g.Vy=function(a){a=a.A;var b=sM[a.eventName];b&&a.queryId==this.F&&(this.B.G[b]=null!=a?a.viewabilityString:null,J0(this,b,!0,!0))};
g.bx=function(){var a=this.j.Td();if(-1!=a){this.j.mg(.25*a)&&J0(this,"firstquartile",!0,!0);this.j.mg(.5*a)&&J0(this,"midpoint",!0,!0);this.j.mg(.75*a)&&J0(this,"thirdquartile",!0,!0);var b=this.B,c=this.j.getCurrentTime();0>b.B&&(iba(b.A,a),b.B=0);for(var a=NV(b.A,"progress"),d=b.B;d<a.length;d++){var e=a[d];if(HV(e.o)>c)break;b.B=d+1;mN(e.j,b.j)}}K0(this)};function K0(a){0>a.H||a.M||!a.j.mg(a.H)&&!a.j.Ge()||!a.J||(a.M=!0,J0(a,"engagedview",!0,!0),a.Y(new F0("viewCount")))}
g.ax=function(){this.J=!0;J0(this,"impression",!0,!0);J0(this,"creativeview",!0,!0);null!=this.K||null!=this.A||this.o.P(this.j,"click",this.Rk);null!=this.K&&(this.D=new $S,this.o.P(this.D,"click",this.Rk,!1),aT(this.D,this.K));null!=this.A&&(this.G=new $S,this.o.P(this.G,"click",this.Rk,!1),aT(this.G,this.A));J0(this,"start",!0,!0);(this.j.sf()||0==this.j.qd())&&J0(this,"mute",!1,!1)};
g.cx=function(){var a=this.j.sf(),b=this.j.qd(),c=this.C;c.mute&&!a||!a&&0==c.volume&&0<b?J0(this,"unmute",!1,!1):this.C.muted(a,b)&&J0(this,"mute",!1,!1);this.C.mute=a;this.C.volume=b};g.Zw=function(){this.j.Ge()?L0(this):this.j.tf()&&!this.j.so()&&(this.C.j=!0,J0(this,"pause",!1,!1))};g.$w=function(){this.C.j&&(this.C.j=!1,J0(this,"resume",!1,!1))};g.Vw=function(){L0(this)};g.Rk=function(){J0(this,"click",!1,!1)};g.Ww=function(){J0(this,"error",!1,!1)};
g.Yw=function(){J0(this,"mediaLoadTimeout",!1,!1)};g.Qp=function(){J0(this,"skipshown",!0,!1)};g.qp=function(){J0(this,"video_extend_shown",!0,!1)};g.Mv=function(a){J0(this,a.type,!1,!1)};g.KA=function(a){this.Y(a)};g.WA=function(){J0(this,"videoShareShown",!0,!1)};g.Ao=function(){J0(this,"skip",!0,!1)};g.kp=function(){J0(this,"video_extend_auto_skipped",!0,!1)};g.sp=function(){J0(this,"video_extend_clicked",!0,!1)};g.Yz=function(){J0(this,"skip",!0,!1)};g.Xw=function(){J0(this,"fullscreen",!1,!1)};
g.Uy=function(){J0(this,"exitfullscreen",!1,!1)};function L0(a){K0(a);if(DM()){var b=a.B;if(!(0>b.B))for(var c=NV(b.A,"progress"),d=b.B;d<c.length;d++){var e=c[d];b.B=d+1;mN(e.j,b.j)}}J0(a,"complete",!0,!0)};function M0(a){d0.call(this,a);this.D=this.A=null;this.ea=!1;this.U=new G0(this.C);this.Z=this.ha=this.wa=this.ia=this.S=!1;this.T=null;this.W=1;this.K=null;this.Da=new D0;this.na=new Vk;this.Ea=!1;this.ca=[];this.Ca=!nO()&&YM([9414784,9418335,9416126]);this.fa=XM(UM(),41351019)}B(M0,d0);function N0(a,b){var c=me(function(){this.na.remove(c);b.call(this)},0,a);Wk(a.na,c)}g=M0.prototype;
g.R=function(){O0(this);this.Da.dispose();P0(this);this.Z=!1;this.T=null;E(this.na.Ia(),ne);var a=!1;null!=this.B&&(a=this.B.Fk(),this.B.da(),this.B=null);this.S&&(this.S=!1,this.j.tf()||this.j.Ge()||this.j.pause(),pO()&&!a&&(this.j.uf(.001),this.j.load("","")),oO()&&this.j.Ud()&&!a&&this.j.jk(),this.ta("contentResumeRequested"),this.ta("allAdsCompleted"));M0.N.R.call(this)};function P0(a){Ub(a.A);a.A=null;Ub(a.U);Ub(a.C);a.ia=!1;a.ha=!1}function Q0(a){a.Sg();f0(a)?a.start():a.stop()}
g.Sg=function(){P0(this);M0.N.Sg.call(this);f0(this)&&(this.C=new a0,this.U=new G0(this.C))};g.pl=function(a){M0.N.pl.call(this,a);null!=this.j&&XM(UM(),9419278)&&this.j.El(1)};
function $da(a,b){wO(vO.getInstance(),34,{evt:"start"},!0);var c=O("div");K(c,"controls");var d=O("div");K(d,"adDisplay");K(d,"endslate");d.innerHTML=b;var e=Yf(d)[0];e&&og(e,{margin:"0 auto"});E(e.getElementsByTagName("a"),function(a){var b=a.getAttribute("href");b&&j0(this).P(a,"click",x(this.zv,this,b))},a);c.appendChild(d);d=new KX;Oba(d,bX(e0(a)));d.o=0;d.j=0;a.D=new X_(c,d,1,{},!0,x(a.Fn,a),x(a.Av,a));j0(a).P(a.D,"timeUpdate",a.Yp);Sf(a.B.Be(),a.D.getContainer());a.B.Nf();a.D.start();n0(a,"video_card_endcap_impression");
a.A&&(Nda(a.A),O_(a.A))}g.zv=function(a,b){b.preventDefault();this.ea||(this.ea=!0,wO(vO.getInstance(),34,{evt:"click"},!0),n0(this,"video_card_endcap_action"));a&&(this.D.pause(),kN(a))};g.Fn=function(){wO(vO.getInstance(),34,{evt:"skip"},!0);N0(this,function(){O0(this);this.ta("complete");n0(this,"video_card_endcap_dismiss");Q0(this)})};g.Av=function(){wO(vO.getInstance(),34,{evt:"complete"},!0);O0(this);this.ta("complete");n0(this,"video_card_endcap_collapse");Q0(this)};
function O0(a){a.D&&(a.D.dispose(),a.D=null);a.ea=!1}
g.tx=function(a,b,c){if(!this.ia){this.ia=!0;var d=eT(b);if(this.o.useVideoAdUi){var e=a.getExtension("AdSense"),f=this.Ca||a.A.ld("show_ads_pay_this_creator_info_card")||(null===b?!1:"modules"==(new P(b)).hf().toLowerCase())||null!=e&&e.H,e=uW(a)?null:XW(a),h;if(DM()||!this.fa)h=0;else{if(h=nO()){a:{for(h=0;h<this.ads.length;++h)if(!o0(this.ads[h])){h=!1;break a}h=nO()}h=!h||null==this.B||!this.B.fk()}h=h||!o0(a)}h&&(this.o.Wl=!0,this.o.Pq=!0);if(DM()||this.o.Pq){h=this.o;var k=C(D(aX(a)))?!1:this.o.Wl,
l=this.fa?DM()||!1:!0,n=DM();this.fa?o0(a):BW(a);var r=wW(a),d=W_(f,d,e,h);d.A=k;d.U=l;d.L=!0;d.J=n;d.M=r;d.B=h.Vl;d.S=h.useShareButton;d.X=h.cC;d.aa=0;h.Vl&&(e="",f=ra("Visit Advertiser"),d.Cf=e+f);XM(UM(),41351019)}else BW(a)||!C(D(a.U))?(!C(D(d))&&null!==e&&0<HV(e)&&(f=!0),d=W_(f,d,e,this.o),d.G=f?Jaa:Iaa):(d=W_(f,d,e,this.o),d.T=!1,d.D=!1,d.j=!1);e=this.B.gi();null===e?e=document.body:Uf(e);l=e0(this);f=1E3*VW(l);h=l.getExtension("why_this_ad");k=l.getExtension("mute");l=l.A.ld("enable_why_this_ad_for_desktop");
d.C=new R_(h,k,l);M_(d.C)&&(k=null!=h?h.J:void 0,h="<span class='videoAdUiAdSettingsShortTooltip'>",k?h+=Y(k):(k=ra("Click for Ad Settings"),h+=k),h=xT(h+"</span>"),d.re=h);this.A=new L_(d,e,f);e=d.Ga;null!=e&&(e0(this).U=e,R0(this),d.X&&S0(this,e));this.Ca&&(f=a.getExtension("AdSense"),null!=f?(e=this.A,f=D(f.o),null!=e.G&&(Ng(e.G,!0),f=new P(f),f=(f.o+f.A).replace(/^www\./i,""),C(D(f))?P_(e):dg(e.G,f)),null!=e.K&&Ng(e.K,!0)):P_(this.A));e=[];d.D&&e.push("adAttribution");d.j&&e.push("countdown")}else d&&
this.o.Pj&&(a.U=d,R0(this),S0(this,d));d=this.U;e=this.j;f=this.B.mk();h=this.A;I0(d);d.B.C=a.Z;d.j=e;d.A=h||null;d.j.si();d.C=new H0(d.j);d.K=f||null;d.o=new vn(d);d.F=a.Z;e=EM.j?SS():zX();d.o.P(e,"externalActivityEvent",d.Vy);d.o.P(e,"measurable_impression",d.uz);d.o.P(e,"viewable_impression",d.XA);d.o.P(d.j,"timeUpdate",d.bx);d.o.P(d.j,"volumeChange",d.cx);d.o.P(d.j,"pause",d.Zw);d.o.P(d.j,"play",d.$w);d.o.P(d.j,"end",d.Vw);d.o.P(d.j,"beginFullscreen",d.Xw);d.o.P(d.j,"endFullscreen",d.Uy);d.o.P(d.j,
"skip",d.Ao);d.o.P(d.j,"skipShown",d.Qp);d.o.P(d.j,"video_extend_auto_skipped",d.kp);d.o.P(d.j,"video_extend_clicked",d.sp);d.o.P(d.j,"video_extend_shown",d.qp);d.o.P(d.j,"start",d.ax);d.o.P(d.j,"error",d.Ww);d.o.P(d.j,"mediaLoadTimeout",d.Yw);null!=d.A&&(d.o.P(d.A,"urlNavigationRequested",d.KA),d.o.P(d.A,"videoShareShown",d.WA),d.o.P(d.A,"skipshown",d.Qp),d.o.P(d.A,"skip",d.Ao),d.o.P(d.A,"PUBLISHER_INVOKED_SKIP",d.Yz),d.o.P(d.A,"video_extend_auto_skipped",d.kp),d.o.P(d.A,"video_extend_clicked",d.sp),
d.o.P(d.A,"video_extend_shown",d.qp),d.o.P(d.A,"MUTE_AD videoAuthorIconClicked videoAuthorClicked videoClicked videoLearnMoreClicked videoTitleClicked videoShareClicked why_this_ad_url why_this_ad_got_it_url why_this_ad_settings_url why_this_ad_learn_more_url why_this_ad_unsubscribe_url why_this_ad_unsubscribe_continue_url why_this_ad_unsubscribe_cancel_url mute_interaction_url mute_url mute_undo_url".split(" "),d.Mv));j0(this).P(this.U,"engagedview urlNavigationRequested videoAuthorIconClicked videoAuthorClicked videoClicked videoLearnMoreClicked videoShareClicked videoShareShown videoTitleClicked".split(" "),
this.Wp);j0(this).P(this.j,"loaded",this.UA);j0(this).P(this.j,"cardsStateChange",this.Fw);j0(this).P(this.j,"timeUpdate",this.Yp);j0(this).P(this.j,"volumeChange",this.Iw);XM(UM(),9419966)&&j0(this).P(this.j,"showCompanionAdLoaded",this.pA);this.Le(a);d=AZ(a,this.j);this.C.j=d;d=a.o;null!=d&&d instanceof eW&&(this.ce(d,pM),this.Mi(d),d=j0(this),yn(d,this.U,"error",this.Gw,this),yn(d,this.U,"mediaLoadTimeout",this.Hw,this));p0(this,a);vW(a)&&(this.U.H=30);this.j.Hl(aea(this,a));this.j.load(b,c)}};
function R0(a){var b=f0(a)?dX(e0(a)):null;if(b){var c;a:{if(f0(a)&&(c=eX(a.G),null!=c))break a;c=""}var d;a:{if(f0(a)&&(d=fX(a.G),null!=d))break a;d=""}var e=e0(a).A.ld("show_ads_pay_this_creator_info_card");(c||d||e)&&a.j.Ik(b,c||null,d||null,e)}}
g.kB=function(a,b,c){null!==a.D&&wO(vO.getInstance(),34,{evt:"filled"},!0);this.wa||(this.wa=!0,this.ta("contentPauseRequested"));this.S=!0;this.tx(a,b,c);m0(this,"show_ad");this.setVolume(this.W);this.A&&(C(D(T0(a)))?(b=this.A,null!=b.C&&(b.A.ua(b.C,"click",b.fj),og(b.C,"cursor","default"))):(b=this.A,null!=b.C&&(b.A.P(b.C,"click",b.fj),og(b.C,"cursor","pointer"))),b=a.o.Na,ub(b)||Pda(this.A,b),b=this.A,null!=b.o&&Ng(b.o,!0));this.B.Bg();this.T=a;try{U0(this)}catch(d){V0(this,uN,d);return}tX.getInstance().end("pi");
tX.getInstance().start("bt");a=this.Da;b=this.B.gi();c=x(this.j.play,this.j);E0(a);Ji&&b?(b.appendChild(a.o),a.ya=me(x(a.j,a,c),2E3)):c()};function U0(a){var b=XM(UM(),9419966);!a.T||!a.Z&&b||(b=a.T,a.Z=!1,a.T=null,k0(a,b))}function W0(a,b,c,d){b=NV(b.j,c);ub(b)||(a[d]=b[0].j)}function X0(a,b,c){b=c.getExtension(b);null!=b&&(W0(a,b,"annotation_click","cta_annotation_clicked"),W0(a,b,"annotation_close","cta_annotation_closed"),W0(a,b,"annotation_start","cta_annotation_shown"))}
function aea(a,b){var c=SW(b)&&!b.L?IW(b):null,d=vW(b)&&!xW(b),e=null!=a.A&&a.A.j.o,f=b.A,h=!1,k=b.getExtension("AdSense");null!=k&&(h=k.isPharma());var k=rW(b),l;a.A?(l={},X0(l,"AdSense",b),X0(l,"dart",b),X0(l,"DFP",b)):l=null;return new rU(k,c,0,l,e,d,a.o.loadVideoTimeout,f?f.mi:!1,!1,MW(b),a.o.Ef,h)}function bea(a){var b=0;E(a.ads,function(a){!i0(a)||DM()&&0!=b||b++},a);var c=1;E(a.ads,function(a){var e=a.C;e.B=b;i0(a)&&(e.o=c,e.C=c,c++)},a)}
function T0(a){var b=a.j;return b&&b.K&&(b=b.B,!ub(b)&&b[0]instanceof eW)?b[0].Rc():aX(a)}function cea(a,b){if(vO.getInstance().j){var c=new Vk,d=!1;E(h0(b),function(a){Wk(c,a.j);"VPAID"==a.A&&(d=!0)},a);var e=a.j.tk(),e={aid:IW(b),mt:c.Ia().join(","),smt:e.join(","),hvp:d,st:NW(b).join(",")};wO(vO.getInstance(),28,e)}}
function dea(a,b,c,d){if(!DM())try{var e=F(a,function(a){return a.Wd}),f=F(a,function(a){return a.j});a={};a.brs=e.join(",");a.mts=f.join(",");a.pubbr=b;a.selbr=null===c?-1:c.Wd;a.selmt=null===c?"":c.j;a.ic=!1;a.nat=!1;a.iyh=fN(c.o)?"1":"0";a.as=d;wO(vO.getInstance(),22,a)}catch(h){}}g.Di=function(){bea(this);this.ta("loaded");this.Y(new z0(e0(this)))};function Y0(a,b){b in a.ca||(a.ca.push(b),a.ta(b))}g.skip=function(){f0(this)&&vW(e0(this))&&(null!=this.A?this.A.skip():(m0(this,"skip"),Z0(this)))};
g.wq=function(){n0(this,"skipshown")};
g.start=function(){M0.N.start.call(this);tX.getInstance().start("pi");this.ca=[];try{var a=e0(this),b;if(!i0(a))throw cO(SN);var c=a.o;if(C(D(null))){var d=h0(a),e=this.j.qq(d,this.o.bitrate,this.o.Ag||[],null!=a&&(DM()||this.B.pi()||this.B.Gk()||nO()));dea(d,this.o.bitrate,e,CW(a));if(null!=e)b=c.fa=e;else{try{cea(this,a)}catch(f){}throw cO(KN);}}else b=new dW("","","",0,0,0,0,0,null,"");this.K=b;N0(this,x(M0.prototype.kB,this,a,this.K.o,this.K.j))}catch(f){$0(this,f),this.Sg(),f0(this)?(dO(cO,this,
YN,f,void 0),this.start()):(this.S?dO(cO,this,YN,f,void 0):(null!=this.F&&kX(this.F,iX()),eO(this,YN,f)),this.stop())}};g.no=function(){l0(this);return this.j.sf()?0:this.j.qd()};g.setVolume=function(a){l0(this);this.S?this.j.setVolume(a):this.W=a};g.pause=function(){l0(this);this.D?this.D.pause():this.j.pause()};g.resume=function(){l0(this);this.D?this.D.play():this.j.play()};g.getCurrentTime=function(){l0(this);var a=this.D?this.D.getCurrentTime():0;return this.j.getCurrentTime()+a};
g.Fe=function(){l0(this);var a=f0(this)?bX(e0(this)):0;return this.j.Td()+a};g.ff=function(){return this.j.ff()};g.Gw=function(){this.j.getError();V0(this,YN,cO(YN,this.j.getError()))};g.Hw=function(){V0(this,NN,cO(NN,null,((0<this.o.loadVideoTimeout?this.o.loadVideoTimeout:15E3)/1E3).toString()))};function V0(a,b,c){b.getMessage();b.getErrorCode();$0(a,c);a.Sg();f0(a)?(dO(cO,a,b,c,void 0),a.start()):(eO(a,b,c),a.stop())}function $0(a,b){var c=cO(YN,b),c=uZ(c,e0(a),a.j),d=DW(e0(a));oN(d,c)}
function a1(a){if(EM.j){var b=T0(e0(a));null!=b&&kN(b)}a.ta("click")}g.zl=function(a,b){M0.N.zl.call(this,a,b);b1(this,a)};function b1(a,b){bc(uM,b)&&yn(j0(a),a.U,b,a.Wp,a)}
g.Wp=function(a){switch(a.type){case "start":eea(this);Eba();this.ta("start");break;case "impression":this.ta("impression");break;case "why_this_ad_url":this.Ea=this.j.tf();Y0(this,"why_this_ad_url");this.pause();break;case "pause":this.ta("pause");break;case "why_this_ad_got_it_url":Y0(this,"why_this_ad_got_it_url");this.Ea||this.resume();break;case "resume":this.ta("resume");break;case "firstquartile":this.ta("firstquartile");break;case "midpoint":this.ta("midpoint");break;case "thirdquartile":this.ta("thirdquartile");
break;case "complete":if(a=f0(this)?wba(e0(this)):""){$da(this,a);break}this.ta("complete");Q0(this);break;case "click":this.A&&this.A.j.A?this.j.tf()?this.resume():this.pause():a1(this);break;case "engagedview":fea(this);break;case "urlNavigationRequested":this.Y(a);break;case "videoAuthorIconClicked":c1(this);break;case "videoAuthorClicked":c1(this);break;case "videoClicked":this.ta("videoClicked");break;case "videoLearnMoreClicked":this.D&&wO(vO.getInstance(),34,{evt:"learn_more"},!0);this.j.pause();
a1(this);break;case "videoShareClicked":gea(this);break;case "videoShareShown":hea(this);break;case "videoTitleClicked":iea(this);break;case "skipshown":this.ta("skippableStateChanged");break;case "video_extend_auto_skipped":Z0(this,!0);break;case "skip":this.D?this.Fn():Z0(this);break;case "MUTE_AD":this.ta("MUTE_AD"),N0(this,function(){Q0(this)})}};
function fea(a){var b=e0(a),c=b.U;if(xW(b)&&!DM()&&!a.B.pi()&&c){var b=a.j.getCurrentTime(),d=a.j.Td(),e=new P("//s.youtube.com/s");Qh(e,"ns","yt");Qh(e,"el","adunit");Qh(e,"docid",c);Qh(e,"eurl",document.URL);Qh(e,"len",d.toFixed(2));Qh(e,"tv","1");Qh(e,"ps","trueview-instream");Qh(e,"st",b.toFixed(2));Qh(e,"et",b.toFixed(2));Qh(e,"rt",b.toFixed(2));mN(e.toString())}a.ta("engagedview")}
function gea(a){var b;b=e0(a).S;if(null!=b){b=b.videoId;var c=a.o.baseYouTubeUrl;if(C(D(b)))b=null;else{var c=new P((null!=c?c:"//www.youtube.com/")+"watch"),d=c.j;d.set("v",b);Eh(c,d);c.H="action=share";b=c.toString()}null!=b&&(kN(b),a=d1(a),null!=a&&lN(a,"sharebuttonclicked"))}}function hea(a){a=d1(a);null!=a&&lN(a,"sharebuttondisplayed")}
function d1(a){var b=e0(a).getExtension("AdSense");if(!(b=null!=b?new P(b.A):null))a:{if(a=HW(e0(a)))if(a=bW(a,"start"),!ub(a)){b=new P(a[0].j);break a}b=null}return b}function iea(a){var b=e0(a),c=b.S;null!=c&&(b=fT(c.videoId,null!=XW(b),a.o.baseYouTubeUrl),null!==b&&(a.j.pause(),kN(b)))}function Z0(a,b){N0(a,function(){this.ta(b?"video_extend_auto_skipped":"skip");Q0(this)})}g.Le=function(a){M0.N.Le.call(this,a);b1(this,"impression")};
g.ce=function(a,b){M0.N.ce.call(this,a,b);E(b,function(a){b1(this,a)},this)};g.Mi=function(a){M0.N.Mi.call(this,a);a instanceof eW&&(a=fW(a),E(a.Ma(),function(a){b1(this,a)},this))};g.getMediaUrl=function(){if(!f0(this))return null;var a=e0(this);if(!i0(a))throw cO(SN);a=a.o.J;return ub(a)?null:a[0].o};g.UA=function(){this.ta("adCanPlay")};g.Fw=function(){var a=this.A;null!=a.o&&M(a.o,"ytp-iv-drawer-open",this.j.qo())};
g.Yp=function(){var a=this.Fe(),b;l0(this);b=this.D?this.Fe():this.j.ro();var c=this.getCurrentTime(),d=0,e=0;f0(this)&&(e=e0(this),d=e.C.o,e=e.C.B);if(null!=this.A&&0<=a&&0<=c){var f;if(f=!this.ha)f=3==e0(this).fa;if(f){f=this.j.Td();var h=ZW(e0(this));f=Math.abs(f-h);2<f&&(f=cO(RN,null,Number(f).toFixed(2)),f=uZ(f,e0(this),this.j),h=DW(e0(this)),oN(h,f));this.ha=!0}this.A.update(c,b,a,d,e)}};g.Iw=function(){var a=this.j.qd();a!=this.W&&(this.W=a,this.ta("volumeChange"),0==a&&this.ta("mute"))};
g.pA=function(){this.Z=!0;wO(vO.getInstance(),39,{},!0);try{U0(this)}catch(a){V0(this,uN,a)}};
function S0(a,b){Wda(b,function(a){a=new C0(a);f0(this)&&dX(e0(this))==a.videoId&&(jea(this,a),!C(D(a.channelId))&&a.isListed&&Xda(a.channelId,function(a){a=new B0(a);if(null!=this.A){var b=this.A,c=a.o;b.j.Z=!C(D(c));b.j.ea=c;if(null!=b.D){var c="",h=ra("by {$userDisplayName}",{userDisplayName:""+b.j.ea});dg(b.D,(new DT(c+(""+h),void 0)).getContent())}N_(b);b=this.A;c=a.j;b.j.W=!C(D(c));null!=b.J&&(h=Rf("img"),h.setAttribute("src",c),K(h,"videoAdUiAuthorIconImage"),b.J.appendChild(h),null!=b.F&&
K(b.F,"videoAdUiTitleWithAuthorIcon"),null!=b.D&&K(b.D,"videoAdUiAuthorNameWithAuthorIcon"));N_(b)}f0(this)&&(e0(this).M=a,this.ta("youTubeChannelMetadata"));if(a=this.A)a=e0(this),b=a.S,a=DM()&&ub(FW(a))&&null!=a.M&&null!=b&&b.isListed;if(a){a=e0(this);j0(this).P(window,"message",this.Xv);var b=e0(this),c=b.M.channelId,h=rW(b),k=this.o.contentId,l=this.o.baseYouTubeUrl,l=new P((null!=l?l:"//www.youtube.com/")+"ad_companion"),n=l.j;n.set("adformat",h);n.set("p",c);n.set("render","video_wall_companion");
k&&n.set("content",k);c=new ZY("1",new N(300,250),"IFrame",null,l.toString());c.Ug(b);c.C=!0;a.F=[new UY(c,[],null)];k0(this,a)}},this))},a)}g.Xv=function(a){var b=a.j;if("companion-setup-complete"==b.data){a=e0(this);var c=encodeURIComponent(D(aX(a)))+","+encodeURIComponent(d1(this).toString());b.source.postMessage(c,"*");b=b.source.frameElement;b.parentNode.style.cssText="";b.width=370;b.height=null!=aX(a)?210:185}else"pause-video"==b.data&&this.pause()};
function jea(a,b){if(null!=a.A&&b.isListed){var c=a.A,d=b.title;c.j.F=!C(D(d));c.j.title=d;Se.test(Re(c.j.title,void 0));null!=c.F&&dg(c.F,c.j.title);N_(c);c=a.A;null!=c.fa?dg(c.fa,ST()):null!=c.H&&dg(c.H,ST())}f0(a)&&(e0(a).S=b,a.ta("youTubeVideoMetadata"))}function c1(a){var b;b=e0(a).M;if(null!=b){var c;c=a.o.baseYouTubeUrl;b=D(b.channelId);c=C(b)?null:(null!=c?c:"//www.youtube.com/")+"channel/"+(ua(b,"UC")&&24==b.length?b:"UC"+b);null!==c&&(a.j.pause(),kN(c))}}
function eea(a){var b=tX.getInstance();if(b.o){var c={};if(null!=a.K){var d=Mh(new P(a.K.o));if(null!=d){var d=fb(d,".",10),e=d.length;2<=e&&(c.dn=d[e-2]+"."+d[e-1])}c.br=a.K.Xd;c.mt=a.K.j;c.pid=b.j;c.smb=a.o.bitrate;c.iyh=fN(a.K.o)?"1":"0";d=a.K.getWidth();e=a.K.getHeight();null!=d&&null!=e&&(c.vs=d+"x"+e);a.j&&(d=a.j.Qc(),c.ps=d.width+"x"+d.height);a=a.K.F;C(D(a))||(c.vc=a)}b.end("bt",c)}};function e1(){sc.call(this,"vpaidEvent")}B(e1,sc);function f1(a){d0.call(this,a);this.ia=this.ha=this.W=!1;this.T=[];this.Z=ab();this.A=null;this.L=!0;this.ca=this.fa=-1;this.U=1;this.ea=this.na="";this.S=!1;this.K=2==EM.D}B(f1,d0);g=f1.prototype;
g.init=function(a){f1.N.init.call(this,a);j0(this).P(window,"message",this.YA);j0(this).P(zX(),rM,this.kz);if(this.K)this.Y(new e1);else{a=cX(e0(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.o.contentId&&(a=zh(a,"v",this.o.contentId));DM()&&(b=xh(a,"st"),a=zh(a,"st",b?b+" yt":"yt"))}a=D(a)}else{var b=new P(a),c=new P("http://tpc.googlesyndication.com/pagead/js/loader10.html");
"https"==b.B&&Ah(c,"https");this.na=b.o;a=Eh(c,a||"",void 0).toString()}this.D=O("iframe",{src:iN(a),allowtransparency:!0,background:"transparent",style:"border:0; opacity:1; margin:0; overflow:hidden;padding:0; width:100%; height:100%;position: absolute;display:none;"});j0(this).P(this.D,"load",this.rv);j0(this).P(this.D,"error",this.lz);this.B.Be().appendChild(this.D)}};
g.Md=function(a,b,c){f1.N.Md.call(this,a,b,c);b=e0(this);this.L=b.o instanceof eW;this.A=a.oi(!1);ub(FW(b))||k0(this,b);this.K||(j0(this).P(this.A,"click end error loaded mediaLoadTimeout pause play timeUpdate volumeChange".split(" "),this.dA),j0(this).P(this.A,hO,this.vy))};g.stop=function(){this.B.da();f1.N.stop.call(this)};
g.start=function(){f1.N.start.call(this);if(!DM()){var a={};a.pid=tX.getInstance().j;a.dn=this.na;a["if"]=this.K;wO(vO.getInstance(),29,a,!0)}a=e0(this);this.C.C=a.Z;var b=AZ(a,this.A);this.C.j=b;if(b=a.o)this.Le(a),this.ce(b,pM),this.Mi(b),p0(this,a);this.A.si();m0(this,"show_ad");this.B.Nf();null!=this.D&&(this.D.style.display="block");this.ia=!0;this.L&&this.ta("contentPauseRequested");g1(this)};g.rf=function(a,b,c){f1.N.rf.call(this,a,b,c);h1(this,"resizeAd",{width:a,height:b,viewMode:c})};
g.pause=function(){this.S||h1(this,"pauseAd")};g.resume=function(){this.S&&h1(this,"resumeAd")};g.setVolume=function(a){f1.N.setVolume.call(this,a);h1(this,"setAdVolume",{value:a})};g.R=function(){this.K&&this.Y(new e1);Wf(this.D);this.L&&this.ta("contentResumeRequested");this.ta("allAdsCompleted");this.W=!1;this.T=[];f1.N.R.call(this)};g.Di=function(){};
function i1(a){var b=rba(e0(a)),c=D(aX(e0(a))),d=cX(e0(a)),c={desiredBitrate:a.o.bitrate,creativeData:b,viewMode:a.M,clickThroughUrl:c,adUrl:d};cX(e0(a)).match("//s0.2mdn.net/instream/html5/survey/survey.html")&&0<=b.indexOf("yt_override")&&null!=a.o.surveyCreativeData&&(c.creativeData=a.o.surveyCreativeData);j1(a,"initAd",c);E(a.T,function(a){j1(this,a.type,a.params)},a);a.W=!0;a.T=[]}
g.rv=function(){if(!this.K){var a=this.A.tk();ub(a)&&(a=this.o.Ag);h1(this,"wrapperCall",{messageType:"supportedMimeTypes",supportedMimeTypes:a})}i1(this)};function h1(a,b,c){a.W?j1(a,b,c):a.T.push({type:b,params:c})}function j1(a,b,c){c=c||{};c.session=a.Z;c.type=b;a.K?window.parent.postMessage(xe(c),"*"):null!=a.D.contentWindow&&a.D.contentWindow.postMessage(xe(c),"*")}
g.YA=function(a){a=a.j;if(this.K){if(a=jU(a.data),null!=a){try{var b=ve(a.data)}catch(c){return}null!=b&&b.session==this.Z&&k1(this,b)}}else if(a.source==this.D.contentWindow){try{b=ve(a.data)}catch(c){return}b.session==this.Z&&k1(this,b)}};g.lz=function(a){l1(this,HN,a);this.stop()};function l1(a,b,c){var d=cO(b,c),d=uZ(d,e0(a)),e=DW(e0(a));oN(e,d);eO(a,b,c)}g.kz=function(a){var b=a.type;if(tb(rM,b)){if("externalActivityEvent"==b&&(b=a.A.eventName,!sM[b]))return;n0(this,b)}};
function k1(a,b){if(w(b.type))switch(b.type){case "friendlyReady":i1(a);break;case "videoCall":switch(b.func){case "load":case "play":a.B.Bg();a.ea!=b.src&&(a.ea=b.src,a.A.load(b.src,b.mimetype));a.A.play();break;case "pause":a.A.pause()}break;case "returnDuration":a.fa=b.duration;break;case "returnRemainingTime":var c=b.remainingTime;a.L||(ne(a.ca),ga(c)&&-1!=c||(c=30),a.ca=me(a.Hz,1E3*c,a));break;case "AdClickThru":m0(a,"click");a.ta("click");break;case "AdDurationChange":a.ta("durationChange");
h1(a,"getAdDuration");break;case "AdError":l1(a,$N,Error(b.message));a.stop();break;case "AdExpandedChange":a.ta("expandedChanged");break;case "AdImpression":a.ta("impression");break;case "AdLinearChange":c=b.isLinear;!a.L&&c?(a.ta("contentPauseRequested"),ne(a.ca)):!c&&a.L&&(a.ta("contentResumeRequested"),h1(a,"getAdRemainingTime"),h1(a,"getAdDuration"));a.L=c;var d=a.G;d.Na=!0;d.ha=c;a.ta("linearChanged");a.K&&a.Y(new e1);break;case "AdLoaded":a.ha=!0;g1(a);n0(a,"loaded");break;case "AdPaused":a.S=
!0;n0(a,"pause");break;case "AdPlaying":a.S=!1;n0(a,"resume");break;case "AdRemainingTimeChange":h1(a,"getAdRemainingTime");break;case "AdSkipped":n0(a,"skip");break;case "AdSkippableStateChange":n0(a,"skippableStateChanged");break;case "AdStarted":m0(a,"impression");m0(a,"creativeview");a.ta("start");break;case "AdStopped":m0(a,"stop");a.stop();break;case "AdUserAcceptInvitation":a.L?m0(a,"acceptinvitationlinear"):m0(a,"acceptinvitation");break;case "AdUserMinimize":m0(a,"collapse");break;case "AdUserClose":n0(a,
"userClose");break;case "AdVideoComplete":n0(a,"complete");break;case "AdVideoFirstQuartile":n0(a,"firstquartile");break;case "AdVideoMidpoint":n0(a,"midpoint");break;case "AdVideoStart":m0(a,"start");break;case "AdVideoThirdQuartile":n0(a,"thirdquartile");break;case "AdVolumeChange":c=b.volume;c!=a.U&&a.ta("volumeChange");0==c&&0!=a.U?(m0(a,"mute"),a.ta("mute")):0==a.U&&0!=c&&m0(a,"unmute");a.U=c;a.A.setVolume(c);break;case "Ping":mN(b.url)}}
g.dA=function(a){switch(a.type){case "timeUpdate":a=this.A.Td();var b=this.A.getCurrentTime();j1(this,"wrapperCall",{messageType:"timeupdate",duration:a,currentTime:b});break;case "end":m1(this,"ended");break;case "loaded":m1(this,"loadstart");break;case "mediaLoadTimeout":m1(this,"stalled");break;case "play":m1(this,"playing");break;default:m1(this,a.type)}};g.vy=function(a){m1(this,a.type)};function m1(a,b){j1(a,"wrapperCall",{messageType:b})}
function g1(a){a.ha&&a.ia&&(h1(a,"startAd"),a.L||(a.Y(new e1),h1(a,"getAdRemainingTime")),h1(a,"getAdDuration"))}g.getCurrentTime=function(){return null!=this.A?this.A.getCurrentTime():-1};g.Fe=function(){return this.fa};g.Hz=function(){h1(this,"stopAd")};function n1(a){this.j=a}g=n1.prototype;g.mk=function(){return this.j.mk()};g.gi=function(){return this.j.gi()};g.Be=function(){return this.j.Be()};g.oi=function(a){return this.j.oi(a)};g.setSize=function(a,b){this.j.setSize(a,b)};g.fk=function(){return this.j.fk()};g.Fk=function(){return this.j.Fk()};g.Gk=function(){return this.j.Gk()};g.pi=function(){return this.j.pi()};g.da=v;g.Bg=v;g.Nf=v;function o1(a,b,c,d,e,f,h){J.call(this);this.B=this.D=0;this.H=a;this.Kc=b;this.aa=c;this.C=null;this.J=d;this.X=f;this.U=EM.o;this.j=null;this.T="normal";this.L=null;this.G=e;this.o=[];this.Z=this.M=this.W=this.K=!1;this.S=h;kea(this)}B(o1,J);g=o1.prototype;g.init=function(a,b,c){null!=c&&(this.T=c);null!=this.j&&this.j.rf(a,b,c);null==this.F&&(this.F=new vn(this),yn(this.F,this.J,"adsLoaderSdkAdError",this.Kx,this));p1(this)};
g.start=function(){this.K=!0;lea(this);0<this.o.length?q1(this):("always"==EM.o&&null!=this.S&&kX(this.S,iX()),dO(aO,this,BN,void 0,void 0),0==this.Kc&&this.Y("contentResumeRequested"),r1(this))};g.destroy=function(){null!=this.F&&(this.F.dispose(),this.F=null);s1(this);EM.o=this.U;this.K=!1};g.getCurrentAd=function(){return this.B<this.o.length?this.o[this.B].j[0]:null};function t1(a){return null!=a&&UW(a,"nonlinear")}g.ib=function(){return this.K};g.pause=function(){null!=this.j&&this.j.pause()};
g.resume=function(){null!=this.j&&this.j.resume()};g.skip=function(){null!=this.j&&this.j.skip()};g.getCurrentTime=function(){return null!=this.j?this.j.getCurrentTime():-1};g.setVolume=function(a){null!=a&&(this.L=a,null!=this.j&&this.j.setVolume(this.L))};function kea(a){E(a.H,function(a){a=new P(a.A.j);var c=a.j.get("max_ad_duration");p(c)||a.j.get("pmxd")})}function u1(a){return a.D<a.H.length&&null!=a.H[a.D]}
function mea(a,b){if(DM()&&!ub(b)&&0==a.Kc&&t1(b[0])){var c=LW(b[0]);return"ADSENSE"==(0<c.length?c.pop():CW(b[0])).toUpperCase()}return!1}g.fp=function(a){EM.o=this.U;var b=a.D;ub(b)?this.D++:(a=a.C,a.j&&E(b,function(a){a.ca=!1},this),this.M=mea(this,b),wb(this.o,new Mba(b,a.j,a.o)),this.D++,this.F.ua(this.J,"adsLoaderSdkAdLoaded",this.fp,!1,this));p1(this)};
g.Kx=function(a){a=a.A;EM.o=this.U;a.getMessage();dO(aO,this,BN,void 0,void 0);this.D++;if(!u1(this)||2<=this.o.length-this.B)a=aO(BN),this.Y(new nM(a));p1(this)};function p1(a){!u1(a)||2<=a.o.length-a.B?a.W||(a.Y("adBreakInitialized"),a.W=!0):v1(a)}function v1(a){var b=a.H[a.D];yn(a.F,a.J,"adsLoaderSdkAdLoaded",a.fp,a);EM.o="on_master_ad";Fda(a.J,b.A,b)}function lea(a){null==a.Kc||ob(a.o,function(a){return!a.o})||(a.o=lb(a.o,function(a){return!(a.o&&!a.A)}))}
function q1(a){var b;a:{if(a.B<a.o.length&&(b=a.o[a.B].j,!ub(b))){b=null!=b[0]&&null==sW(b[0]).rm;break a}b=!1}if(b){b=a.o[a.B];try{if(a.M||(s1(a),a.j=w1(a,b.j),x1(a)),a.j.init(a.T),null!=a.L&&a.j.setVolume(a.L),y1(a.j))a.Y("contentResumeRequested"),a.G.Nf(),a.j.start(),null!=a.C&&a.C.start();else{var c=a.j;if(null!=c&&c instanceof M0)a.G.Bg(),a.j.start();else{var d=a.j;if(null!=d&&d instanceof f1)a.G.Nf(),a.G.Bg(),1==a.j.L||a.Y("contentResumeRequested"),a.j.start();else throw Error("Unknown ads manager type.");
}}}catch(e){a.B++,q1(a)}u1(a)&&v1(a)}else a.Y("contentResumeRequested"),r1(a)}function w1(a,b){var c=null;if(null!=a.J.C)c=x_(b);else if(gX(b[0]))c=new f1(b);else if(qW(b[0]))c=new M0(b);else if(t1(b[0]))c=new q0(b);else throw Error("No valid creative type found.");c.F=a.S;null!=a.A&&(a.A.dispose(),a.A=null);a.A=new vn(a);yn(a.A,c,"companionBackfill",a.gp,a);c.Md(new n1(a.G),{currentTime:0},a.X);return c}
function s1(a){a.G.da();null!=a.C&&(a.C.dispose(),a.C=null);null!=a.A&&(a.A.dispose(),a.A=null);null!=a.j&&(a.j.destroy(),a.j=null)}g.Gz=function(){s1(this);r1(this)};g.Lx=function(a){a.getError();this.B++;q1(this)};
function x1(a){if(null==a.j)throw Error("The current ads manager is not defined");var b=a.j;yn(a.A,b,"adError",a.Lx,a);yn(a.A,b,oM,a.gp,a);a.A.P(b,["allAdsCompleted"],v);yn(a.A,b,"contentPauseRequested",a.yw,a);yn(a.A,b,"contentResumeRequested",a.zw,a);yn(a.A,b,"userClose",a.Aw,a);yn(a.A,b,"autoClose",a.xw,a);y1(a.j)&&(b=HW(e0(a.j)).ha,0<b||a.X.pn)&&(0>b&&(b=15),null!=a.C&&a.C.dispose(),a.C=new ke(1E3*b),Bn(a.A,a.C,"tick",a.Gz,a))}g.Aw=function(){this.Y("userClose")};g.xw=function(){this.Y("autoClose")};
g.zw=function(){this.B++;q1(this)};g.yw=function(){this.Z||(this.Y("contentPauseRequested"),this.Z=!0)};function y1(a){return null!=a&&a instanceof q0}function r1(a){a.K=!1;a.Y("allAdsCompleted")}g.gp=function(a){nea(this,a.type,a.getAd());this.Y(a)};function nea(a,b,c){if("loaded"==b||"start"==b||"adMetadata"==b||"firstquartile"==b){var d=0,e=0;E(a.o,function(a,b){var f=a.j;jb(f,c);d+=f.length;b<this.B&&(e+=f.length)},a);b=c.C;var f=e+b.C;b.B=d+(a.H.length-a.D);b.o=f;b.A=a.aa;b.j=a.Kc}};function z1(a){sc.call(this,a);this.A=null}B(z1,sc);function A1(a,b,c){J.call(this);this.j=a;this.o=[];this.D=null!=c&&"boolean"==typeof c.backlog?c.backlog:!1;this.G=null!=c&&ga(c.prefetch)&&0<=c.prefetch?c.prefetch:0;this.A=null;this.B=!1;oea(this,b)}B(A1,J);function pea(a){this.j=a;this.A=this.o=!1}A1.prototype.getCurrentTime=function(){return this.j.currentTime};function B1(a){null!=a.A&&(a.A.dispose(),a.A=null);a.j.stop();a.B=!1}function qea(a){if(a.B){var b=G(a.o,function(a){return-1==a.j},a);null!=b&&C1(a,!0,b)}}
function oea(a,b){E(b,function(a){if(isNaN(a))throw Error("The ad play time is not a number:"+a);Pb(this.o,new pea(a),function(a,b){return Ib(a.j,b.j)})},a)}A1.prototype.C=function(){if(this.B){var a=this.j.currentTime;if(isNaN(a)||0>a)D1(this);else{var b=rea(this,a);this.D?E(b,function(a){C1(this,!0,a)},this):C1(this,!0,ib(b));C1(this,!1,sea(this,a))}}};function rea(a,b){for(var c=[],d=0;d<a.o.length;d++){var e=a.o[d];-1!=e.j&&e.j<=b&&wb(c,e)}return c}
function sea(a,b){for(var c=0;c<a.o.length;c++){var d=a.o[c];if(-1!=d.j&&b>=d.j-a.G&&b<d.j&&!a.o[c].o)return d}return null}A1.prototype.F=function(){D1(this)};function D1(a){a.Y(new z1("contentTrackingError"))}function C1(a,b,c){if(null!=c){if(!c.o){var d=new z1("requestAds");d.A=c.j;a.Y(d);c.o=!0}b&&!c.A&&(b=new z1("playAds"),b.A=c.j,a.Y(b),c.A=!0)}};function E1(a,b){H.call(this);this.A=a;this.j=-1;this.o=b}B(E1,H);function F1(a,b){if(0==b.Kc||0>=a.o||0>=a.j)return!1;var c=A()/1E3,d=b.Kc-a.A.currentTime;0<d&&(c+=d);return c-a.j<=a.o};function w_(a,b){d0.call(this,[]);this.T=a;this.J=new Yg;this.D=this.A=null;this.ea=new Zo;this.K=null;this.S=b;this.Z=this.ca=!1;this.W=this.U=null;this.fa=0}B(w_,d0);g=w_.prototype;
g.Md=function(a,b,c){null!=this.D&&(B1(this.D),this.D.dispose(),this.D=null);w_.N.Md.call(this,a,b,c);var d=this.T.j.Ma();b=new AU(b);var e=c&&0<=c.xl?c.xl:4;this.fa=null!=c?c.$p:0;this.D=new A1(b,d,{prefetch:e});E(d,function(b,c){if(isNaN(b))throw aO(sN,null,"timeOffset",b+"");var d=ga(b)&&!isNaN(b)?this.T.j.get(b,[]):[];if(!ub(d)){d=new o1(d,b,0==b||-1==b?b:c,this.S,a,this.o,this.F);if($g(this.J,b))throw aO(GN,null,"Multiple ad breaks cannot share same ad play time.");this.J.set(b,d)}},this);this.U=
ib(d);ob(d,function(a){if(-1==a)return this.U=a,!0;this.U=this.U<a?a:this.U;return!1},this)};
g.init=function(a){w_.N.init.call(this,a);null!=this.D&&(G1(this),a=j0(this),yn(a,this.D,"requestAds",this,this),yn(a,this.D,"playAds",this,this),yn(a,this.D,"contentTrackingError",this,this),yn(a,this.D,"adBreakReady",this.Ix,this),yn(a,this.S,"contentComplete",this.Hy,this),this.S.j=!1,a=this.D,a.B||(null==a.A&&(a.A=new vn(a)),a.A.P(a.j,"currentTimeUpdate",a.C,!1),a.A.P(a.j,"contentWrapperError",a.F,!1)),a.j.start(),a.B=!0,this.D.C(),a=ga(0)&&!isNaN(0)?this.T.j.get(0,[]):[],ub(a)&&this.ta("contentResumeRequested"))};
g.Di=function(){this.Sd();this.Y(new z0(null))};g.destroy=function(){this.dispose()};g.R=function(){this.S.j=!0;if(0<this.J.ab()){var a=this.J.Ia();E(a,this.og,this);this.J.clear()}G1(this);H1(this);null!=this.B&&(this.B.da(),this.B=null);w_.N.R.call(this)};g.start=function(){w_.N.start.call(this)};g.stop=function(){null!=this.A&&(this.og(this.A),this.Hk())};g.pause=function(){null!=this.A&&this.A.pause()};g.resume=function(){null!=this.A&&this.A.resume()};g.skip=function(){null!=this.A&&this.A.skip()};
g.setVolume=function(a){w_.N.setVolume.call(this,a);null!=this.A&&this.A.setVolume(a)};g.getCurrentTime=function(){return null!=this.A?this.A.getCurrentTime():-1};g.Fe=function(){var a;null!=this.A?(a=this.A,a=null!=a.j?a.j.Fe():-1):a=-1;return a};g.Sd=function(){return this.T.j.Ma()};g.getCurrentAd=function(){return null!=this.A?this.A.getCurrentAd():null};g.pq=function(){};g.handleEvent=function(a){"contentTrackingError"!=a.type&&(ap(this.ea,a),I1(this))};
function G1(a){null!=a.H&&(a.H.dispose(),a.H=null);a.ca=!1;null!=a.D&&B1(a.D)}
function I1(a){if(null==a.K){var b=bp(a.ea);if(null!=b){a.K=b;var c=a.J.get(a.K.A);if(null==c)a.K=null,I1(a);else if("requestAds"!=b.type&&"playAds"!=b.type)a.K=null,I1(a);else if(null!=a.W&&F1(a.W,c))a.K=null,I1(a);else if("requestAds"==b.type)b=j0(a),yn(b,c,oM,a.Y,a),yn(b,c,"adError",a.Ln,a),yn(b,c,"allAdsCompleted",a.$o,a),yn(b,c,"contentPauseRequested",a.mo,a),yn(b,c,"contentResumeRequested",a.Hk,a),yn(b,c,"userClose",a.Dw,a),yn(b,c,"autoClose",a.Cw,a),yn(b,c,"adBreakInitialized",a.ap,a),c.init(-1,
-1,a.M);else if("playAds"==b.type)if(null!=a.A&&a.A.ib()&&a.og(a.A),a.A=c,a.A.setVolume(a.volume),c=a.A,b=a.M,null!=b&&(c.T=b),null!=c.j&&c.j.rf(-1,-1,b),a.A.M){c=a.A;if(c.B<c.o.length){b=c.o[c.B];s1(c);try{c.j=w1(c,b.j),x1(c)}catch(d){c.B++,q1(c)}}a.ta("contentResumeRequested");a.D.getCurrentTime()>=a.fa?null!=a.A&&a.A.start():a.K=null}else a.A.start()}}}g.Dw=function(){this.ta("userClose")};g.Cw=function(){this.ta("autoClose")};
g.og=function(a){a.destroy();this.J.remove(a.Kc);this.A=null;null!=this.H&&(this.H.ua(a,oM,this.Y,!1,this),this.H.ua(a,"adError",this.Ln,!1,this),this.H.ua(a,"allAdsCompleted",this.$o,!1,this),this.H.ua(a,"contentPauseRequested",this.mo,!1,this),this.H.ua(a,"contentResumeRequested",this.Hk,!1,this),this.H.ua(a,"adBreakInitialized",this.ap,!1,this))};g.Hy=function(a){this.ca=!0;-1==this.U?a.B=!1:DM()&&0!=this.J.Ia().length||J1(this);qea(this.D)};
g.Ix=function(a){var b=a.A;-1==b?me(function(){var a=this.J.get(b);a&&this.og(a);DM()&&0!=this.J.Ia().length||J1(this)},500,this):0==b&&me(function(){this.ta("contentResumeRequested")},100,this);a={};a.adBreakTime=b;this.Y(new tM("adBreakReady",null,a))};g.Ln=function(a){var b=a.getError();DM()&&b&&"adLoadError"==b.getType()&&this.Y(a)};g.$o=function(a){this.og(a.target);(0==this.J.Ia().length||!DM()&&this.ca)&&J1(this);this.K=null;I1(this)};
function J1(a){a.Z||(a.Z=!0,a.S.j=!0,a.ta("allAdsCompleted"),-1==a.U&&H1(a))}function H1(a){FU.clear();null!=a.F&&(a=a.F.Ae(),null!=a&&VU(a,FU.j))}g.mo=function(){var a=this.D;a.j.stop();a.B=!1;this.ta("contentPauseRequested")};g.Hk=function(){this.ta("contentResumeRequested");if(!this.Z){var a=this.D;a.j.start();a.B=!0}this.K=null};g.ap=function(a){this.K=null;I1(this);a=a.target;var b={};b.adBreakTime=a.Kc;this.Y(new tM("prefetched",a.getCurrentAd(),b))};
g.ta=function(a){var b=null;null!=this.A&&(b=this.A.getCurrentAd());this.Y(new tM(a,b))};g.oo=function(a,b){return this.W=new E1(a,b)};function tea(){}function x_(a){if(!ub(a)){var b=a[0];switch(gX(b)?"vpaid":SW(b)&&UW(b,"nonlinear")?"overlay":UW(b,"linear")?"video":UW(b,"nonlinear")?"overlay":null){case "overlay":return SW(b)?new t0(a):new q0(a);case "video":return new M0(a);case "vpaid":return new f1(a)}}return null};function K1(a){J.call(this);this.o=a;a=new jX(new OU);this.j=new t_(new tea,a,FU);this.j.P("adsManagerLoaded",this.Y,!1,this);this.j.P("adError",this.Y,!1,this);this.j.P("adLoadError",this.Y,!1,this)}B(K1,J);function L1(a,b,c){VM();var d="",e=XR(),f=e.o,e=e.j;f&&f.url?d=f.url:e&&e.url&&(d=e.url);b.location=d;b.referrer=window.document.referrer;b.kc=yU(b.j,a.o.A);b.Ml=a.o.G;Eda(a.j,b,c)}
K1.prototype.R=function(){null!=this.j&&(this.j.ua("adsManagerLoaded",this.Y),this.j.ua("adError",this.Y),this.j.ua("adLoadError",this.Y),this.j=null);K1.N.R.call(this)};function M1(a,b){aJ.call(this,a,b)}B(M1,aJ);g=M1.prototype;g.Tc=function(){yI(this.app,!0,this.playerType);this.app.Ne(this.playerType)};g.pauseVideo=function(){this.app.pauseVideo(this.playerType)};g.Uc=function(a,b,c){yI(this.app,!0,this.playerType);var d=this.app,e=this.playerType;d.Vf(d.getCurrentTime()+a,b,c,e)};g.Tb=function(a,b){yI(this.app,!0,this.playerType);this.app.Vf(a,b,void 0,this.playerType)};g.sr=function(){FI(this.app,this.playerType)};function N1(a){this.app=a;lr.call(this,a.Ya)}B(N1,lr);N1.prototype.getAdState=function(){return-1};function O1(a,b,c){this.B=a;this.j=b||"";this.A=c||null;this.C=!1}O1.prototype.reset=function(){Dw(this.j)};O1.prototype.o=function(a,b){ww(a,b,this.j)};O1.prototype.info=function(a,b){Bw(a,b,this.j)};
function P1(a,b){var c=a.B;if(c.Ca&&("detailpage"==c.Aa||"leanback"==c.Aa||"embedded"==c.Aa&&(c.za||c.experiments.A))&&!a.C){a.C=!0;pj("TIMING_ACTION")||nj("TIMING_ACTION",a.B.csiPageType);a.B.ha&&nj("CSI_SERVICE_NAME",a.B.ha);if(a.A){var c=a.A.B,d;for(d in c)ww(d,c[d],a.j);d=a.A.A;for(var e in d)Bw(e,d[e],a.j);e=a.A;e.B={};e.A={}}if(e=ki("visibilityState",document)){d=-1;switch(e){case "hidden":d=0;break;case "visible":d=1;break;case "prerender":d=2;break;case "unloaded":d=3}Bw("yt_vis",d,a.j)}Bw("yt_pt",
"html5",a.j);b&&!Aw("pbs",a.j)&&a.o("pbs",b);e=a.B;("detailpage"!=e.Aa||"blazer"==e.j)&&Aw("_start",a.j)&&zw(a.j)}}(function(){var a=window.document;if(a&&"hidden"in a)return"hidden";var b=ng();return b?(b=b.toLowerCase(),b+=db("hidden"),!p(a)||b in a?b:null):null})();function uea(){this.C=new PL(50);this.o=null;this.B=this.A=0;this.j=[]}function vea(a,b){0!=a.j.length&&(b.C=a.j.length,b.G=nb(a.j,function(a,b){return a+b},0),b.F=ib(a.j),b.J=Math.min.apply(Math,a.j),b.H=Math.max.apply(Math,a.j),a.j=[])}function wea(a,b){if(a.o&&!(b>=a.A&&b<a.B)){var c=a.o.jf(b);a.A=a.o.je(c);a.B=a.A+a.o.$f(c);var d=A()/1E3,c=Vs(a.o,c),d=d-(c?c.o:NaN);QL(a.C,d);a.j.push(d)}};function xea(a,b){this.j=a;this.o=b;this.A=1}function Q1(a,b,c,d){d/=a.A;var e=$L(a.j)+1/aM(a.j),f;f=Math.max(.9*(d-3),ZL(a.j)+8192*e);c=f/e*a.o.Na/(b+c);c=Math.min(c,d);c=Math.max(a.o.ga,Math.min(a.o.ea,c));return Math.min(a.o.B,Math.max(65536,Math.ceil(c*b)))}function R1(a){var b=aM(a.j);a=1E-9+ZL(a.j)+1048576*$L(a.j);return b*Math.min(1,1048576/(b*a))}function S1(a){return R1(a)/a.A};function kJ(a,b,c){this.audio=a;this.video=b;this.reason=c};function yea(a,b,c,d){this.S=a;this.H=b;this.D=c;this.G=d;this.A=this.K=this.j=null;this.C="i";this.L=-1;this.F=this.B=null;this.o=[];this.M=this.U=0;this.T=null;this.J=!1}
function zea(a,b,c,d){"m"==c&&a.j.isLocked()&&!b.isLocked()&&(c="a");a.J=a.J||d;if("m"==c&&b.isLocked())return a.C=c,T1(a,b),U1(a),a.A=V1(a),new kJ(jJ(a),a.A,c);d=a.j.equals(b);if("m"==a.C&&a.j.isLocked()&&d)return null;"r"!=c||d||(a.L=-1);T1(a,b);b=V1(a);if("r"==c&&b==a.A){if(d)return null;a.A=b;return new kJ(jJ(a),b,c)}a.C=c;W1(a);return null}function Aea(a,b){X1(a);a.T=b;a.M=xj();a.L=-1;T1(a,a.j)}function X1(a){return!!a.M&&9E4>=xj()-a.M}function jJ(a){Y1(a);return a.B}
function V1(a){Y1(a);return a.F}function W1(a){a.A&&a.F&&Z1(a,a.A.info)<Z1(a,a.F.info)&&(a.J=a.J||a.F.info.video.width>1.6*a.A.info.video.width||"r"==a.C)}function $1(a){var b=a.C;a.C="a";a.L=xj();a.J=!1;return new kJ(a.K,a.A,b)}
function Y1(a){if(!(!a.j.isLocked()&&-1<a.L&&8E3>xj()-a.L)){a.M&&!X1(a)&&(a.M=0,T1(a,a.j));U1(a);var b=S1(a.S);if(a.j.isLocked())a.F=a.D.j[a.o[a.o.length-1].id];else{for(var c=Math.min(a.U,a.o.length-1),d=b/a.H.G-Z1(a,a.B.info);0<c&&!(Z1(a,a.o[c])<=d);c--);for(b=b/a.H.C-Z1(a,a.B.info);c<a.o.length-1&&!(Z1(a,a.o[c+1])>=b);c++);a.U=c;a.F=a.D.j[a.o[c].id];W1(a)}}}
function T1(a,b){a.j=b;var c=a.G.videoInfos;if(!a.j.isLocked()&&(c=lb(c,function(a){return Z1(this,a)>this.H.F?!1:!this.D.j[a.id].C},a),X1(a))){var c=lb(c,function(a){return a.id!=this.T.id},a),d=lb(c,function(a){a=us(a);return"140"==a||"134"==a||"243"==a});d.length&&(c=d)}c.length||(c=a.G.videoInfos);d=lb(c,b.B,b);d.length||(d=[c[0]]);d.sort(x(function(a,b){return Z1(this,a)-Z1(this,b)},a));for(c=1;c<d.length;c++){var e=d[c-1],f=d[c];e.video.width>f.video.width?(yb(d,c),c--):Z1(a,e)*a.H.C>Z1(a,f)&&
(yb(d,c-1),c--)}a.o=d}function Bea(a,b){if(b)a.B=a.D.j[b];else{var c=G(a.G.j,function(a){return!!a.Jb&&a.Jb.isDefault}),c=c||a.G.j[0];a.B=a.D.j[c.id]}U1(a)}function U1(a){if(!a.B.info.Jb&&(a.B=a.D.j[a.G.j[0].id],1<a.G.j.length)){var b=!1;if(a.j.isLocked())b=240>a.j.j;else{for(b=0;b+1<a.o.length&&"tiny"==a.o[b].video.quality;)b++;var c=S1(a.S)/a.H.C,b=Z1(a,a.B.info)+Z1(a,a.o[b])>c}b&&(a.B=a.D.j[a.G.j[1].id])}}
function Cea(a){var b=a.H.G,c=S1(a.S)/b-Z1(a,a.B.info),b=sb(a.o,function(a){return Z1(this,a)<c},a);0>b&&(b=0);a.U=b;a.F=a.D.j[a.o[b].id]}function Z1(a,b){return a.H.Z&&b.C?b.C:b.j};function a2(){this.j=this.o=!1}a2.prototype.start=function(){this.o=!0};a2.prototype.reset=function(){this.j=this.o=!1};function b2(a,b){this.J=a;this.A=b;this.C=[];this.j=[];this.B=this.o=null;this.D=0;this.U=b.info.j;this.K=this.L=!1;this.H=new a2;this.G=null;this.F=0}function c2(a,b){a.C.push(b);a.o=ib(b.info.j);a.D+=d2(b)}function e2(a){for(var b;a.C.length&&5==a.C[0].state;)b=a.C.shift(),!b.K&&b.j&&(a.D=f2(b,a.D)),g2(b)&&(b=h2(b),E(b,a.M,a));a.C.length&&g2(a.C[0])&&!it(a.C[0].info.j[0])&&(b=a.C[0],!b.K&&b.j&&(a.D=f2(b,a.D)),b=h2(b),E(b,a.M,a))}
b2.prototype.M=function(a){if(4==a.info.type){var b=a.info.j.iq(a);a.info.equals(this.o)&&(this.o=ib(b).info);E(b,this.M,this)}else 3==a.info.type&&this.j.push(a)};function i2(a){return!(!a.j.length||1!=a.j[0].info.j.info.o||0!=a.j[0].info.A)}function j2(a){var b=ut(a.j[0]);return b.getInt32(0)>b.byteLength&&1==a.j.length}
function k2(a,b){j2(a);var c=a.j[0],d=ut(c),e=Rt(d);if(e>d.byteLength){var f=a.j[1];if(f.range.length+d.byteLength<e)return null;var d=new Uint8Array(e),h=new Uint8Array(c.j,c.range.start,c.range.length);d.set(h);h=new Uint8Array(f.j,f.range.start,e-c.range.length);d.set(h,c.range.length);d=new DataView(d.buffer)}c=b||c.info.j.index.pk(c.info.B);return(c=Et(d,c))?c:null}
function l2(a){var b=a.j[0],c=ut(b),d=Rt(c);d>c.byteLength?(c=a.j[1],m2(a,b.range),m2(a,Ps(c.range.start,d-b.range.length))):m2(a,Ps(b.range.start,d))}
function Dea(a,b){if(a.L)return a.j[0].range;var c=!!a.A.info.audio,d=a.A.Nh();if(a.j[0].info.C>=b)return null;var e;for(e=1;e<a.j.length;e++){var f=a.j[e].j!=a.j[e-1].j;if(a.j[e].info.C>b||f||a.J.W)break}e--;var f=a.j[e].range.end,h=a.j[e].info.H-b;if(d&&c&&0<=a.J.S&&h>a.J.S){c=Math.floor((b-a.j[e].info.C)/a.j[e].info.G*a.j[e].info.o);if(0==c)return null;f=a.j[e].range.start+c-1}return new Ns(a.j[0].A?0:a.j[0].range.start,f)}
function m2(a,b){for(var c;a.j.length;){if(a.j[0].range.end>b.end){var d;c=a.j[0];var e=b.end-a.j[0].range.start+1,e=Math.min(e,c.info.o);d=new ht(c.info.type,c.info.j,c.info.range,c.info.B,c.info.startTime,c.info.duration,c.info.A,e,!1);var f=Ps(c.range.start,e);d=new bu(d,c.j,f,c.o,c.A);e=new ht(c.info.type,c.info.j,c.info.range,c.info.B,c.info.startTime,c.info.duration,c.info.A+e,c.info.o-e,c.info.F);f=new Ns(f.end+1,c.range.end);c=new bu(e,c.j,f,c.o,!1);d=[d,c];c=d[0];a.j[0]=d[1]}else c=a.j.shift();
d=a;f=c.info;d.B=f;d.L&&d.B.D&&(d.L=!1);d.U=Math.max(d.U,f.j.info.j);if(c.range.end==b.end)break}a.j.length&&c.j==a.j[0].j||(a.D-=c.o.length)}function n2(a,b){var c=o2(a,b);if(0<=c)return c;a.o=a.A.fi(b).j[0];p2(a)&&(a.B=null);a.G=null;a.F=0;return a.o.startTime}
function q2(a,b){r2(a);if(a.A.info.video&&a.B&&!a.B.D&&b){var c=qb(a.j,function(a){return a.info.D});a.j=Eb(a.j,0,c+1);a.L=!0}else a.j=[];if(a.j.length)for(a.D=a.j[0].o.length,c=1;c<a.j.length;c++)a.j[c].j!=a.j[c-1].j&&(a.D+=a.j[c].o.length);else a.D=0}function mJ(a){a.H.o||a.H.start();q2(a,!1);p2(a)&&(a.B=null)}
function Eea(a,b){for(var c=0;c<a.C.length&&b!==a.C[c];c++);if(c==a.C.length)b.dispose();else{for(;c<a.C.length;)a.S(a.C.pop());3==b.info.j[0].type?(b.j&&b.j.B?(c=b.j.B,c=new ht(c.type,c.j,c.range,c.B,c.startTime+c.duration,0,c.A+c.o,0,!1)):(c=b.info.j[0],c=new ht(c.type,c.j,c.range,c.B,c.startTime,0,c.A,0,!1)),a.o=c):a.o=null}}function Fea(a){return ob(a.j,function(a){return a.info.D})}function p2(a){return!!a.B&&a.B.F}
function s2(a){var b=[];a.B&&b.push(a.B);E(a.j,function(a){b.push(a.info)});E(a.C,function(a){E(a.info.j,function(a){3!=a.type&&4!=a.type||b.push(a)})});a.o&&a.o!=ib(b)&&b.push(a.o);return b}function t2(a){if(!a.o||!a.o.o)return!1;a=s2(a);if(!a.length)return!1;for(var b=1;b<a.length;b++)if(!(1E-6>=Math.abs(a[b].C-a[b-1].H)))return!1;return!0}
function o2(a,b){if(t2(a)){var c;a:{c=s2(a);for(var d=0;d<c.length;d++)if(c[d].C<=b&&c[d].startTime+c[d].duration>=b){c=c[d];break a}c=null}if(c)return c.startTime}return NaN}function u2(a){return ob(a.C,function(a){return 3<=a.state})}function v2(a){return!(!a.o||!gt(a.A)||a.o.j==a.A)}function w2(a){return v2(a)&&a.o.j.info.j<a.A.info.j}b2.prototype.S=function(a){a.dispose();this.D-=d2(a)};function r2(a){E(a.C,a.S,a);a.C=[];a.o=null}function x2(a){return!!a.o&&a.o.B<a.A.index.ug()};function Gea(a,b){this.o=a;this.D=this.C=!1;this.length=b;this.j=0;this.A=[];if(1==this.o.length&&!this.o[0].range){var c=this.o,d;d=this.o[0];var e=Ps(0,this.length);d=new ht(d.type,d.j,e,d.B,d.startTime,d.duration,d.A,e.length,d.F);c[0]=d}this.B=null}function Hea(a){var b=a.length-a.j;E(a.A,function(a){b+=a.range.length});return b};function y2(a,b,c,d){this.status=0;this.H=this.o=null;this.J=d;this.D=c;this.A=[];this.F=null;this.C=this.j=0;Iea++;this.K=NaN;this.B=null;a=new Request(a,{method:"GET",credentials:"include"});fetch(a).then(rj(x(this.rB,this)),rj(x(this.wj,this)));A();this.G=!1;b()}var Iea=0;g=y2.prototype;g.rB=function(a){this.status=a.status;a.ok?(this.B=a.body.getReader(),this.D?(this.H=a.headers,this.F=new Uint8Array(z2(this)),A2(this)):this.B.cancel("Cancelling")):this.wj()};
g.ry=function(a){if(this.D)if(A(),a.done)this.B=null,this.wj();else{a=a.value;this.C+=a.length;var b=a.length>=Math.max(z2(this)/2,16384),c=a.length+this.j>z2(this);(b||c)&&0!==this.j&&B2(this);b?this.A.push(a):(this.F.set(a,this.j),this.j+=a.length);this.D({timeStamp:A(),loaded:this.C});A2(this)}};function B2(a){a.A.push(a.F.subarray(0,a.j));a.j=0;a.F=a.G?null:new Uint8Array(z2(a))}function A2(a){a.B.read().then(rj(x(a.ry,a)),rj(x(a.wj,a)));var b=A();a.K=b}g.wj=function(){this.D&&(this.G=!0,this.J())};
g.ih=function(a){return this.H.get(a)};g.kk=function(){return this.C};g.dg=function(){return+this.ih("content-length")};g.bo=function(){return 200<=this.status&&300>this.status&&!!this.C};function z2(a){a=a.dg();return Math.max(16384,.125*a)}g.Io=function(){return!!this.A.length||this.G&&0<this.j};g.Fq=function(){this.A.length||B2(this);return this.A.shift()};g.zr=function(){this.A.length||B2(this);return this.A[0]};g.yr=function(){this.B&&this.B.cancel("Cancelling");this.J=this.D=null};function C2(a,b,c,d){this.status=0;this.o=null;Jea++;this.A=this.B=!1;this.j=new XMLHttpRequest;this.j.open("GET",a);this.j.responseType="arraybuffer";this.j.withCredentials=!0;this.C=d;this.D=c;a=rj(x(this.tD,this));this.j.addEventListener("load",a,!1);this.j.addEventListener("error",a,!1);this.j.send();b();this.j.addEventListener("progress",rj(x(this.uD,this)),!1)}var Jea=0;g=C2.prototype;g.tD=function(a){this.A||(this.status=this.j.status,this.o=this.j.response,this.B=!0,this.C(a))};
g.uD=function(a){this.A||(this.status=this.j.status,this.D(a))};g.ih=function(a){try{return this.j.getResponseHeader(a)}catch(b){return vj(b),""}};g.dg=function(){return+this.ih("content-length")};g.kk=function(){return this.o.byteLength};g.bo=function(){return 200<=this.status&&300>this.status&&!!this.o};g.Io=function(){return this.B&&!!this.o};g.Fq=function(){var a=this.o;this.o=null;return new Uint8Array(a)};g.zr=function(){return new Uint8Array(this.o)};g.yr=function(){this.A=!0;this.j.abort()};function D2(a,b,c){this.B=a;this.info=b;this.timing=c;this.state=1;this.A=null;this.L=this.D=this.J=0;this.C=NaN;this.F=this.o=this.M=null;this.G=0;this.j=null;this.K=!1;this.H=null;this.U=NaN}D2.A=!1;D2.o=1E4;D2.j=2048;g=D2.prototype;g.getErrorCode=function(){return this.F};g.Zk=function(){return 410==this.G||500==this.G||503==this.G};
function E2(a){var b;b=a.timing;b={rt:((A()-b.A)/1E3).toFixed(2),lb:b.j,pt:(b.L/1E3).toFixed(2),pb:b.J};b.shost=a.o?Is(a.o.j):"";b.rn=a.J.toString();a.G&&(b.rc=a.G.toString());a.Zk()&&(b.isPotentialFormatUnavaliable="true");return b}
g.start=function(a){var b=1==this.state,c=6==this.state;1==this.state||4==this.state||c&&F2(this);G2(this,2);this.U=0<=a?a:NaN;if(c&&2<=this.D)c=this.info.A,this.J<=c.A||(c.o++,c.A=dt-1,et(c)),this.D=0;else if(c){this.D++;b=D2.o*(.5+Math.random());1==this.D&&(b=2E3);qj(x(this.ym,this,a),b);return}b?this.ym(a):qj(x(this.ym,this,a),0)};
g.ym=function(a){if(!this.isDisposed()){this.J=dt++;if(this.j){var b=this.info,c=this.j.j,d=this.j.length;this.H=b.range?new Ns(b.range.start+c,b.range.end):Ps(c,d);this.o=ot(this.info,this.H)}else this.H=this.info.range,this.o=ot(this.info);this.o.set("rn",this.J.toString());this.D&&this.o.set("playerretry",this.D.toString());0<=a&&this.o.set("rbuf",(1E3*a).toFixed().toString());a=$s(this.o);try{var e=x(this.cB,this),f=x(this.eB,this),h=x(this.dB,this);this.A=(this.B.L||this.B.M&&5>this.U)&&"function"==
typeof window.fetch&&window.ReadableByteStream&&Kea(this)&&this.info.range?new y2(a,f,h,e):new C2(a,f,h,e)}catch(k){this.F="net.ssl",G2(this,6)}0<this.B.D&&(this.C=qj(x(this.hq,this),this.B.D));this.o.get("itag");this.o.get("range");A()}};g.eB=function(){this.L=0;var a=this.timing;this.o&&Is(this.o.j);a.A=A();a.D=a.A;a.j=0;a.K=!1;a.H=!1;a.C=0;a.G=bM(a.o);H2(a);a.L=a.F-a.A};
g.dB=function(a){if(!this.isDisposed()){this.G=this.A.status;I2(this,!1);var b=this.timing,c=a.timeStamp;a=a.loaded;c=c>b.A&&4E12>c?c:A();c-b.D<1E3*b.o.j.B||J2(b,c,a);b=this.timing;b.j>b.M&&8192<b.j&&3>this.state&&G2(this,3)}};
g.cB=function(){var a=this.A;if(!this.isDisposed()){this.C&&(tj(this.C),this.C=NaN);this.G=a.status;var b=!1;if(400<=a.status)b=!0,this.F="net.badstatus";else if(a.bo()){var c="";K2(this)&&(c=a.zr(),c.length>D2.j?c="":(c=String.fromCharCode.apply(String,c),c=Qq.test(c)?c:""));if(c){var a=this.info.A,d=this.o;d.j===a.j&&(a.j=bt(d,c));G2(this,4)}else{var c=a.dg(),a=a.kk(),d=!!this.H&&this.H.length,e=!0;!c&&d?e=d==a:!d&&c?e=c==a:d&&c&&(e=d==c&&c==a);e?(I2(this,!0),c=this.timing,d=A(),c.K||(c.K=!0,d=
d>c.A&&4E12>d?d:A(),J2(c,d,a),e=(d-c.A)/1E3,!c.H&&8192<=c.j&&WL(c.o,e,a),8192<=c.j&&(e=c.o,a=Math.max(a,8192),e.C.j(1,c.C/a),cM(e)),YL(c.o,(d-c.A)/1E3,c.j),c.B&&(c.B=!1)),A(),G2(this,5)):(b=!0,this.F="net.closed")}}else b=!0,this.F="net.connect";b&&(F2(this),G2(this,6),A())}};function F2(a){a.isDisposed();if(2>a.D)a=!0;else{var b=a.info.A;a=!(a.J>b.A&&1<=b.o)}return a}function G2(a,b){a.state=b;if(4<=a.state){var c=a.timing;c.B&&(c.B=!1)}a.M&&a.M(a)}
g.hq=function(){this.C=NaN;if(!(this.isDisposed()||this.B.ha&&this.A&&8192<=this.timing.j&&"quic"==this.A.ih("client-protocol"))){var a=A(),b=!1;if(8192<=this.timing.j){var c=this.timing.F;H2(this.timing);this.timing.F-c>=.8*this.B.D?(this.L++,b=5<=this.L):this.L=0}else b=this.timing,b=5E3<a-(b.A+1E3*b.G.delay);if(b){b=this.timing;c=a;c=c>b.A&&4E12>c?c:A();a=(c-b.A)/1E3;if(8192<=b.j){b.C+=(c-b.D)/1E3;var c=b.o,d=b.J,d=Math.max(d,8192);c.C.j(1,b.C/d)}else c=b.o,c.B.j(1,a);cM(c);YL(b.o,a,b.j);L2(this);
this.F="net.timeout";G2(this,6)}else this.C=qj(x(this.hq,this),this.B.D)}};function Kea(a){return pb(a.info.j,function(a){return 3==a.type})}g.isDisposed=function(){return-1==this.state};g.dispose=function(){it(this.info.j[0])&&5!=this.state&&(this.info.j[0].j.A=!1);G2(this,-1);this.M=null;L2(this);tj(this.C);this.C=NaN};function L2(a){if(a.A){var b=a.A;a.A=null;b.yr()}a=a.timing;a.B&&(a.B=!1)}
function K2(a){var b=a.A.ih("content-type"),c=a.A.dg(),c=!c||c<=D2.j;return(!M2(a)||!b||-1!=b.indexOf("text/plain"))&&c}function h2(a){a=a.j;var b=a.A;a.A=[];a.B=ib(b).info;return b}function g2(a){return 2<=a.state&&!!a.j&&!!a.j.A.length}
function I2(a,b){M2(a)&&!a.A.dg()&&(a.B.L=!1,a.B.M=!1);if(b||M2(a)&&!K2(a)){if(!a.j){var c=b?a.A.kk():a.A.dg();a.j=new Gea(a.info.j,c)}for(;a.A.Io();)for(var c=a.j,d=a.A.Fq(),e=0,f=0,h=0;h<c.o.length;h++){var k=c.o[h];if(e+k.o<=c.j)e+=k.o;else{var l;var n=c,r=k;1==r.type?(n.C=!0,l=!1):3==r.type||4==r.type?(r=n.C&&!n.D,n.D=!0,l=r):l=!1;var n=c,r=k,u=c.j-e,z=f,y=d,V=Math.min(r.o-u,y.length-z),va=void 0,va=new ht(r.type,r.j,r.range,r.B,r.startTime,r.duration,r.A+u,V,r.A+u+V==r.range.length&&r.F),L=u=
void 0,u=y.buffer,z=y.byteOffset+z,y=Ps(y.byteOffset,y.length);1==r.type?(u.slice?u=u.slice(z,V):(r=new Uint8Array(u,z,V),u=(new Uint8Array(r)).buffer),L=Ps(0,V)):L=Ps(z,V);n.A.push(new bu(va,u,L,y,l));n=V;c.j+=n;f+=n;e+=k.o;if(f==d.length)break}}}}function f2(a,b){a.K=!0;return b-pt(a.info)+d2(a)}function d2(a){return a.j&&a.K?Hea(a.j):pt(a.info)}function M2(a){return!!(a.B.L||a.B.M&&a.A&&a.A instanceof y2)};function Lea(a,b,c){this.o=a;this.J=b;this.M=c;this.j=this.D=this.A=NaN;this.H=this.K=this.B=!1;this.C=0;this.F=this.L=NaN}function J2(a,b,c){if(a.B){var d=(b-a.D)/1E3,e=c-a.j;0<e&&(d>a.o.j.j||1024>e?(a.C+=d,d>a.o.j.j&&WL(a.o,a.o.j.C,e)):WL(a.o,d,e),a.H=!0)}else 8192<=c&&(d=a.o,d.B.j(1,(b-a.A)/1E3),cM(d),a.B=!0);a.D=b;a.j=c}function H2(a){var b=a.J-a.j,b=1E3*(b*a.G.tailDelay+b/a.G.byterate),c=A(),b=8192<=a.j?b+c:b+Math.max(c,a.A+1E3*a.G.delay);a.F=b};function N2(a,b,c,d){Mk.call(this);this.H=a;this.B=b;this.F=c;this.A=this.o=null;this.K=new xea(a,b);this.j=null;this.D=new yea(this.K,b,this.F,d);this.C=this.ca=this.Z=this.aa=NaN;this.L=!1;this.G=NaN;this.ea=0;this.J=!1;this.ga={};this.S="";this.X=this.W=0}B(N2,Mk);N2.F=!1;N2.j=2/24;N2.C=1E3;N2.A=.2;N2.B=1E4;N2.o=1800;N2.D=25;g=N2.prototype;
g.initialize=function(a,b,c,d){a=a||0;var e=this.D;d=d&&d.id;e.C="i";"auto"!=eC()&&(e.C="s");T1(e,b);Bea(e,d);e.K=e.B;Cea(e);e.A=e.F;b=$1(e);this.o=new b2(this.B,b.audio);this.A=new b2(this.B,b.video);this.O("videoformatchange",b);this.C=a;c?(this.J=!0,O2(this)):P2(this)};function P2(a){0==a.C&&(a.o.A.A||Q2(a,a.o,!0),a.A.A.A||Q2(a,a.A,!0));a.seek(a.C);R2(a,"gv")}g.resume=function(){this.J&&(this.J=!1)};
g.Uu=function(a){this.o.K=!1;this.A.K=!1;this.resume();this.j=a;mx(a)&&(a.j.addEventListener("updateend",x(this.oc,this),!1),a.o.addEventListener("updateend",x(this.oc,this),!1),a.j.addEventListener("error",x(this.Bi,this,!0),!1),a.o.addEventListener("error",x(this.Bi,this,!1),!1));R2(this,"msa");tw.measure&&tw.getEntriesByName("vta").length&&tw.measure("measure_vta_to_msa","vta");this.T&&this.M&&bw();this.oc();this.ca=sj(x(this.oc,this),N2.B)};
function S2(a){a.j&&a.j.j&&a.j.j.removeEventListener&&(a.j.j.removeEventListener("updateend",x(a.oc,a),!1),a.j.o.removeEventListener("updateend",x(a.oc,a),!1),a.j.j.removeEventListener("error",x(a.Bi,a,!0),!1),a.j.o.removeEventListener("error",x(a.Bi,a,!1),!1));a.j=null;a.J=!0;a.A&&q2(a.A,!1);a.o&&q2(a.o,!1)}function T2(a){a.j&&jx(a.j)&&S2(a)}
function U2(a,b,c,d){a.isDisposed()||((b=zea(a.D,b,c,d))&&a.O("videoformatchange",b),lJ(a,a.A,V1(a.D)),a.D.j.isLocked()&&"m"==c&&(mJ(a.A),mJ(a.o)),w2(a.A)&&V2(a,a.A,a.o),nJ(a))}function W2(a,b,c){if(!b.H.o||!c.remove)return!1;if(c.updating)return!0;if(!b.H.j&&c.buffered.length)return a=c.buffered.end(c.buffered.length-1),c.remove(0,a),b.H.j=!0;b.H.reset();a.O("seekrequired");return!1}
function X2(a,b,c){if(a.J)return!1;if(!b.o){if(!gt(b.A))return b.A.A||Q2(a,b,!1),!1;n2(b,a.C)}var d=b.C.length+c.C.length;(u2(b)||u2(c)||a.F.isLive)&&--d;if(2<=d+1)return!1;d=b.o;4==d.type&&gt(d.j)&&(b.o=ib(d.j.Oi(d)),d=b.o);!d.F&&!d.j.jh(d)||d.j.info.audio&&4==d.type?a=!1:w2(b)&&!a.B.H?a=!0:(!(c=d.F||b.D+c.D>a.B.J||!!(c.o&&!c.o.F&&c.o.H<d.H))&&(c=3==d.type)&&(d=d.H,b=Y2(a,b,!0),a.D.j.isLocked()||(c=(xj()-a.ea)/1E3,b=Math.min(b,30+2*c)),c=d>a.C+b),a=c?!1:!0);return a}
function V2(a,b,c){if(!a.j||ix(a.j)||mx(a.j)){var d=a.C,e=a.K;c=Q1(e,b.A.info.j,c.A.info.j,0);e=ZL(e.j)+c*$L(e.j)+c/aM(e.j);a:{d+=Math.max(e,e+5-c/b.A.info.j);a=a.D.J;if(b.C.length){if(b.C[0].info.j[0].startTime<=d)break a;r2(b)}for(e=b.j.length-1;0<=e;e--)c=b.j[e],c.info.startTime>d&&(b.j.pop(),b.j.length&&b.j[e-1].j==c.j||(b.D-=c.o.length));b.C.length?b.o=ib(b.C[b.C.length-1].info.j):b.j.length?b.o=ib(b.j).info:b.o=b.B;a&&b.o&&d<b.o.startTime&&(b.G=null,b.F=0,b.o=b.A.fi(d,!0).j[0])}}}
function Z2(a,b,c){X2(a,b,c);var d=b.o;if(gt(b.o.j)){w2(b)&&!a.B.H&&(V2(a,b,c),b.o||n2(b,a.C));var d=b.o,e=d.H-a.C,f=!d.range||0==d.o&&0==d.A?0:d.range.length-(d.A+d.o);v2(b)&&(w2(b)||25>=e)&&0==f&&(f=d.startTime+N2.j,d.o&&(f+=d.duration),n2(b,f),d=b.o);d.j.Nh()?(c=Q1(a.K,d.j.info.j,c.A.info.j,e),e=v2(b),c=ku(d.j,d,c),c.range&&1<c.j.length&&(e?c=ku(d.j,d,c.j[0].o):(e=c.j[c.j.length-1],f=e.o/c.range.length,!e.D&&.4>f&&(c=ku(d.j,d,c.range.length-e.o)))),d=c):d=rt(d.j,d)}else d.j.Nh()?(c=Q1(a.K,b.A.info.j,
c.A.info.j,0),d=ku(d.j,d,c)):d=rt(d.j,d);c2(b,$2(a,d))}function $2(a,b){if(3==b.j[b.j.length-1].type){var c;a:{c=a.D;var d=b.j[0].j;if(d.info.video){if(c.A!=d){c.A=d;c=$1(c);break a}}else c.K=d;c=null}c&&a.O("videoformatchange",c)}c=pt(b);var d=a.H,e=a.K,f=Math.min(2.5,ZL(e.j)),e=R1(e);c=new D2(a.B,b,new Lea(d,c,c-f*e));d=x(a.eA,a);c.isDisposed();c.M=d;c.start(Math.max(0,b.j[0].C-a.C));return c}
g.eA=function(a){if(!this.isDisposed()&&3<=a.state){var b=a.info.j[0].j,c=!this.T&&b.info.video,d=!this.M&&b.info.audio,e=Math.max(0,a.info.j[0].C-this.C);4==a.state?(c?R2(this,"vrr"):d&&R2(this,"arr"),a.start(e)):5==a.state?(c?(this.T=a.o?$s(a.o):"",dw()):d&&(this.M=a.o?$s(a.o):""),b=a.j.A,E(b,function(a){it(a.info)&&a.info.j.ao(a)}),!pb(b,function(a){return cu(a)},this)||b[0]&&b[0].info.j.Xk()?this.sd(!0,"fmt.unparseable",E2(a)):this.oc()):3==a.state?(this.oc(),c&&dw()):6==a.state&&F2(a)?(this.sd(!1,
a.getErrorCode(),E2(a)),this.isDisposed()||((c=b.info.video&&(0<a.D||a.Zk())&&90&&!X1(this.D))&&Aea(this.D,b.info),6==a.state&&"net.timeout"==a.F||c?(Eea(b.info.video?this.A:this.o,a),this.oc()):a.start(e))):it(a.info.j[0])?(b.C=!0,this.oc()):this.sd(!0,"net.retryexhausted",E2(a))}};function nJ(a){if(isNaN(a.aa)){var b=x(a.oc,a);a.aa=qj(b,0)}}function O2(a){if(isNaN(a.Z)){var b=x(function(){this.Z=NaN;this.oc()},a);a.Z=qj(b,N2.C)}}
g.oc=function(){this.aa=NaN;T2(this);if(this.j&&ix(this.j)&&!kx(this.j))if(this.F.isLive)isNaN(this.G)?(this.G=this.C+2*N2.o,hx(this.j,this.G)):this.G<=this.C+N2.o&&(this.G+=N2.o,hx(this.j,this.G));else{var a=Math.max(this.o.A.index.ag(),this.A.A.index.ag());(!isFinite(this.G)||this.G!=a)&&0<a&&(hx(this.j,a),this.G=a)}if(!this.isDisposed())if(a=this.F,a.isLive&&xj()-a.D>=a.A)3==this.F.B?this.sd(!0,"manifest.net.retryexhausted",{rc:this.F.F.toString()}):(this.F.K(),O2(this));else{if(this.B.T&&xj()-
this.F.H>=1E3*this.B.T&&a3(this)>=this.B.Ga){var a=this.F,b=a.j,c;for(c in b)et(b[c].D);a.H=xj()}this.F.isLive&&(x2(this.A)||x2(this.o))&&(c=b3(this),isNaN(c)||this.seek(c));"prerender"==window.document.webkitVisibilityState?O2(this):(T2(this),e2(this.A),e2(this.o),this.o.A.A||(!this.J||dM(this.H)?P2(this):O2(this)),!this.j||W2(this,this.o,this.j.j)||W2(this,this.A,this.j.o)||((c=c3(this,this.A,this.j.o,null,this.o.F))&&!this.W&&(this.W=A(),R2(this,"vda"),this.X&&dw()),a=rz(this.j.o.buffered,this.C+
N2.j),isNaN(a)&&!p2(this.A)&&this.j.j.buffered.length||(p2(this.A)&&(a=NaN),a=c3(this,this.o,this.j.j,a,null),c|=a,a&&!this.X&&(this.X=A(),R2(this,"ada"),this.W&&dw())),p2(this.A)&&p2(this.o)&&ix(this.j)&&!kx(this.j)&&(a=this.j,ix(a)&&a.A.endOfStream(),a=this.H,dC(bM(a)),a.o=xj()),c&&!mx(this.j)&&nJ(this)),lJ(this,this.A,V1(this.D)),lJ(this,this.o,jJ(this.D)),this.A.A.C||this.o.A.C?this.sd(!0,"net.retryexhausted"):(X2(this,this.A,this.o)&&Z2(this,this.A,this.o),X2(this,this.o,this.A)&&Z2(this,this.o,
this.A),this.B.aa&&this.S&&!this.J&&dM(this.H)&&(c=this.S,this.S="",a=lh(c),wk(c,{format:"RAW",responseType:"arraybuffer",timeout:15E3,onError:x(this.sd,this,!1,"pathprobe.net",{shost:a})})),this.B.fa&&(this.B.Z=10<=a3(this)),this.F.C&&O2(this)))}};
function c3(a,b,c,d,e){if(c.updating)return!0;var f=b.j.length?b.j[0]:null;if(!f)return!1;!b.B||b.B.D||jt(b.B,f.info)||(b.B=null,ix(a.j)&&c.abort(),c.j=null);var h;if(h=a.F.isLive)1==f.info.j.info.o?(h=ut(f),h=!!Ft(h,0,1718909296)):h=Zt(new St(new DataView(f.j)));var k=!a.F.C&&b.J.W&&i2(b);if(h)c.j=null;else{if(h=k||!f.A)h=f.info.j.j,c.j==h?h=!1:(d3(a,c,h),c.j=h,a.O("initsegment",c.j),h=c.updating);if(h)return!0}h=Y2(a,b,!1);h=a.C+h;null!==d&&0<=d&&(h=Math.min(h,d));d=Dea(b,h);if(!d)return!1;if(k){if(j2(b))return!1;
if(h=k2(b))return e3(a,c,new Uint8Array(h),f,b)?(l2(b),!0):!1}h=new Uint8Array(f.j,d.start,d.length);if(f.info.j.info.video&&a.B.ca)for(var l=h,n=0;n<l.length-5;n++)0==l[n]&&0==l[n+1]&&0==l[n+2]&&12==l[n+3]&&6==l[n+4]&&45==l[n+5]&&(l[n+5]=63);l=!1;if(3==f.info.type&&(1==f.info.j.info.o||2==f.info.j.info.o))if(l=1==f.info.j.info.o&&a.B.ia&&!k&&!b.K&&0==f.info.A&&0<f.info.startTime)du(f,0);else if(a.F.C&&0==f.info.A){a:if(b.J.X&&i2(b)&&j2(b))e=!1;else{k=null===b.G?f.info.startTime:b.G;0==du(f,k)?(k=
mt(f.info),k.smst=1,a.sd(!0,"fmt.unparseable",k)):b.G=2==f.info.j.info.o?k+f.info.duration:k+eu(f);if(2!=f.info.j.info.o){k=0;if(f.info.j.info.video&&null!==e&&(n=1E3*(eu(f)-f.info.duration),n=b.F+n,e=e-n,!(Math.abs(e)<N2.D))){var k=e/1E3,r=eu(f)+k,u=mt(f.info);u.deltaOffsetMs=e;u.cumOffsetMs=n;u.finalDurSecs=r;a.sd(!1,"qoe.avsync",u)}if((e=k)&&b.J.X&&i2(b)){b.F+=1E3*(eu(f)-f.info.duration+e);b.G+=e;e=eu(f)+e;b:{k=0;for(n=new DataView(f.j);Mt(n,k);){r=Nt(n,k);if(1936286840==r.type){k=r.data.getUint32(r.offset+
16);break b}k=Pt(r.type)?k+8:k+r.size}k=NaN}if(isNaN(k))b:{k=f.info.j.j;n=0;for(r=new DataView(f.j);Mt(r,n);){u=Nt(r,n);if(1836476516==u.type){k=Ot(u);break b}n=Pt(u.type)?n+8:n+u.size}k=k?Lt(k):NaN}if(e=k2(b,e*k)){if(e3(a,c,new Uint8Array(e),f,b)){l2(b);e=!0;break a}e=!1;break a}}else b.F+=1E3*(eu(f)-f.info.duration)}e=null}if(null!=e)return e}if(!e3(a,c,h,f,b))return!1;b.K=!0;l?(du(f,f.info.startTime),c.abort(),c.j=null,lt(f.info)):(m2(b,d),lt(b.B),pz(c.buffered));f.A&&(c.j=f.info.j.j,a.O("initsegment",
c.j));return!0}function e3(a,b,c,d,e){return d3(a,b,c)?!0:(d.info.j.info.video?(a=a.B,a.A=Math.floor(.5*a.A),a.K=Math.floor(.5*a.K),a.j=Math.floor(.5*a.j),a.B=Math.floor(.5*a.B)):(a=a.B,a.o=Math.floor(.5*a.o),a.U=Math.floor(.5*a.U),a.j=Math.floor(.5*a.j)),mJ(e),!1)}function d3(a,b,c){try{mx(a.j)?b.appendBuffer(c):b.append(c)}catch(d){return 22!=d.code&&vj(d),!1}return!jx(a.j)}g.Bi=function(a){a=(a=a?this.o:this.A)&&a.B;this.sd(!0,"fmt.unplayable",a?mt(a):void 0)};
function Y2(a,b,c){var d;d=!a.B.H&&a.D.j.isLocked()?b.A.info.audio?a.B.U:a.B.K:b.A.info.audio?a.B.o:a.B.A;c&&(d+=a.B.J);b=a.D.j.isLocked()?b.o?b.o.j.info.j:b.A.info.j:b.U;d/=b;0<a.B.j&&(d=Math.min(d,a.B.j));return d}function b3(a){if(a.F.isLive){if(!a.o.A.index.cg())return NaN;var b=a.o.A.index.ug(),c=a.o.A.index.Nb(),d=a.o.A.index;return 1>a.B.liveChunkReadahead?d.je(c)+d.$f(c)-N2.A:d.je(Math.max(b,c-a.B.liveChunkReadahead+1))+N2.A}return Math.floor(Math.min(a.o.A.index.ag(),a.A.A.index.ag()))}
g.seek=function(a){if(!this.isDisposed()){T2(this);this.ea=xj();this.A.A=V1(this.D);var b=f3(this,this.A,a,this.j&&this.j.o);this.o.A=jJ(this.D);var c=f3(this,this.o,b,this.j&&this.j.j);this.C=Math.max(a,b,c);this.L=!0;nJ(this)}};
function f3(a,b,c,d){if(gt(b.A))if(d){var e=rz(d.buffered,c),f=NaN,h=b.B;h&&(f=rz(d.buffered,h.j.index.je(h.B)));if(e==f&&t2(b))return c;d=o2(b,c);if(0<=d)return d;q2(b,!0);b.A.info.video&&b.B&&!b.B.D&&!Fea(b)&&(d=b.B,b.j.length&&(d=ib(b.j).info),d=b.o||d,d=ku(d.j,d,d.range.length-(d.o+d.A)),c2(b,$2(a,d)));if(isNaN(e))return n2(b,c);n2(b,e+N2.j)}else n2(b,c);else b.A.A||Q2(a,b,!1),0!=c&&r2(b);return c}function lJ(a,b,c){b.A!=c&&(b.A=c,c.A||Q2(a,b,!1))}
function Q2(a,b,c){var d=c?65536:0;c&&!isNaN(2)&&(d=Math.min(a.B.B,Math.floor(Math.max(d,2*b.A.info.j))));c=b.A.Pn(d);E(c,function(a){if("f"!=a.j[0].j.info.B){var c=$2(this,a);!it(a.j[a.j.length-1])&&c2(b,c)}},a);b.A.A=!0}g.R=function(){S2(this);this.o&&(r2(this.o),r2(this.A));uj(this.ca);this.A=this.o=null;N2.N.R.call(this)};g.sd=function(a,b,c){this.O("error",new Qw(b,a,c));a&&(this.j&&ix(this.j)&&(a=this.j,ix(a)&&a.A.endOfStream("network")),this.dispose())};
function g3(a){if(!a.A.o)return"";a=Is(a.A.o.j.D.j);return a.substr(0,a.indexOf("."))}function R2(a,b,c){a.ga[b]=c?window.performance.timing.navigationStart+c:A()}function a3(a){return a.j&&!jx(a.j)?Math.min(tz(a.j.o.buffered,a.C),tz(a.j.j.buffered,a.C)):0};function h3(a,b,c,d,e){H.call(this);this.C=a;this.K=b;this.H=c;this.B=d;this.j=e;this.G="";this.o=this.J=this.D=this.F=null;this.A=new ax(this);I(this,this.A);this.B?(T(this.A,this.B,"message",this.gE),T(this.A,this.B,"keystatuseschange",this.gz)):this.j&&(T(this.A,this.j,"mskeymessage",this.Gp),T(this.A,this.j,"mskeyerror",this.Fp),T(this.A,this.j,"mskeyadded",this.Ep))}B(h3,H);g=h3.prototype;g.setCallbacks=function(a,b,c,d){this.F=a;this.D=b;this.J=c;this.o=d};
g.gE=function(a){this.F.call(this.o,new Uint8Array(a.message))};g.gz=function(){};g.ip=function(a,b){vj(b);var c=a;b instanceof DOMException&&(c+="."+b.name);this.D.call(this.o,c)};g.Gp=function(a){this.F.call(this.o,a.message)};g.Fp=function(a){var b;this.j?(b=this.j.error.code,a=this.j.error.systemCode):(b=a.errorCode&&a.errorCode.code,a=a.systemCode);this.D.call(this.o,""+b+"."+a)};g.Ep=function(){this.J.call(this.o)};
g.update=function(a){this.B?this.B.update(a).then(null,rj(x(this.ip,this,"u"))):this.j?this.j.update(a):this.C.addKey?this.C.addKey(this.K.j,a,this.H,this.G):this.C.webkitAddKey(this.K.j,a,this.H,this.G)};g.R=function(){this.C=null;h3.N.R.call(this)};function i3(a,b){H.call(this);this.j=a;this.o=b;this.D={};this.A=null;this.B=new ax(this);I(this,this.B);this.C=this.F=null}B(i3,H);function j3(a){if(a.o.A)return a.o.A.createMediaKeys().then(rj(x(function(a){this.F=a;this.j.setMediaKeys(a)},a)));Wu(a.o)?a.C=new (Xu())(a.o.j):Mea(a);return null}function Mea(a){bx(a.B,a.j,["keymessage","webkitkeymessage"],a.jE);bx(a.B,a.j,["keyerror","webkitkeyerror"],a.iE);bx(a.B,a.j,["keyadded","webkitkeyadded"],a.hE)}g=i3.prototype;
g.createSession=function(a){var b=a.j;if(this.o.A){var c=this.F.createSession(),b=c.generateRequest(a.contentType,b),c=new h3(null,null,null,c,null);b.then(null,rj(x(c.ip,c,"g")));return c}if(Wu(this.o)){c=new Uint8Array(270);for(a=0;135>a;a++)c[2*a]='<PlayReadyCDMData type="LicenseAcquisition"><LicenseAcquisition version="1.0" Proactive="true"></LicenseAcquisition></PlayReadyCDMData>'.charCodeAt(a);b=this.C.createSession("video/mp4",b,c);return new h3(null,null,null,null,b)}this.j.generateKeyRequest?
this.j.generateKeyRequest(this.o.j,b):this.j.webkitGenerateKeyRequest(this.o.j,b);return this.A=new h3(this.j,this.o,b,null,null)};function k3(a,b){var c=a.D[b.sessionId];!c&&a.A&&(c=a.A,a.A=null,c.G=b.sessionId,a.D[b.sessionId]=c);return c}g.jE=function(a){var b=k3(this,a);b&&b.Gp(a)};g.iE=function(a){var b=k3(this,a);b&&b.Fp(a)};g.hE=function(a){(a=k3(this,a))&&a.Ep()};g.R=function(){this.j=null;i3.N.R.call(this)};function Nea(a,b,c){this.url=a;this.interval=b;this.j=c};function Oea(a,b,c){this.j=a;this.headers=b;this.message=c};function l3(a,b,c,d,e){H.call(this);this.G=a;this.j=d;this.j.subscribe("oauthtoken",this.Ar,this);this.A={session_id:e};m3(this,a.C);this.B=this.C=!1;var f;try{f=b.createSession(c)}catch(h){a="g",h instanceof DOMException&&(a+=h.code),this.j.O("licenseerror","drm.unavailable",a,"YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK"),f=null}if(this.o=f)this.o.setCallbacks(this.xD,this.wD,this.vD,this),I(this,this.o)}B(l3,H);g=l3.prototype;g.Ar=function(a){this.D=a};
function m3(a,b){if(Jq.test(b)){for(var c in a.A)b=zh(b,c,a.A[c]);a.F=b}else n3(a,"drm.net","u")}
g.xD=function(a){if(!this.isDisposed()){this.C||(this.C=!0,this.j.O("newsession",this));if(Wu(this.G)){for(var b="",c=0;c<a.length;c+=2)b+=String.fromCharCode(a[c]);b=(new DOMParser).parseFromString(b,"text/xml").querySelector("Challenge");a=Uint8Array;b=b.childNodes[0].data;if(!RO)for(RO={},SO={},c=0;65>c;c++)RO[c]="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".charAt(c),SO[RO[c]]=c,62<=c&&(SO["ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_.".charAt(c)]=c);
for(var c=SO,d=[],e=0;e<b.length;){var f=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==f||null==h||null==k||null==l)throw Error();d.push(f<<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",postBody:a,responseType:"arraybuffer",withCredentials:!0,kb:this.jz,onError:this.up,context:this};b=this.F;this.D&&(b=zh(b,"access_token",this.D));wk(b,a)}};
g.vD=function(){this.isDisposed()||this.B||(this.j.O("sessionready"),this.B=!0)};
g.jz=function(a){if(!this.isDisposed())if(0!=a.status&&a.response){a:{a=new Uint8Array(a.response);var b=0,c=String.fromCharCode.apply(String,a.subarray(0,16384)).split("\r\n"),d=c[0];yb(c,0);c.pop();var b=b+(d.length+2),e=d.match(/^GLS\/1.\d ([0-9]{1,3}) (\w+)$/);if(null!=e)for(var d=eb(e[1]),f={},h=0;h<c.length;h++){e=c[h];b+=e.length+2;if(0==e.length){a=new Oea(d,f,a.subarray(b));break a}e=e.match(/([^:]+):\s+([\S\s]+)/);if(null==e)break;f[e[1]]=e[2]}a=null}a?0!=a.j?n3(this,"drm.auth","f"+a.j,
nz(a.j)):(b=(b=a.headers["Authorized-Format-Types"])?b.split(","):null,c=null,(d=a.headers["Heartbeat-Url"])&&(c=new Nea(d,parseInt(a.headers["Heartbeat-Interval-Secs"],10)||60,parseInt(a.headers["Heartbeat-Num-Retries"],10)||4)),(b||c)&&this.j.O("newlicense",b,c),this.o.update(a.message)):n3(this,"drm.net","p","YTP_ERROR_SERVER_ERROR")}else this.up(a)};g.wD=function(a){this.isDisposed()||n3(this,"drm.keyerror","s"+a)};g.up=function(a){n3(this,"drm.net","r"+a.status)};
function n3(a,b,c,d){a.isDisposed()||a.j.O("licenseerror",b,c,d);a.dispose()}g.R=function(){this.j=null;l3.N.R.call(this)};function o3(a,b){this.j=a;this.contentType=b||null};function p3(a,b){Mk.call(this);a.addKey||a.webkitAddKey||Xu()||$u();this.L=a;this.j=b;this.subscribe("newlicense",this.Ez,this);this.subscribe("newsession",this.Fz,this);this.subscribe("sessionready",this.nA,this);this.S=Rv();this.G=null;this.K={};this.o=[];this.B=qv;this.F=new i3(a,b);I(this,this.F);this.A=null;Wu(b)&&(this.A=new i3(a,b),I(this,this.A));this.J=2;this.D=new ax(this);I(this,this.D);this.H=!1;this.M=null;this.C=!1;var c=this.L;this.j.A?T(this.D,c,"encrypted",this.Sy):bx(this.D,c,Wu(this.j)?
["msneedkey"]:["needkey","webkitneedkey"],this.Cz);(c=j3(this.F))?c.then(rj(x(this.vz,this)),rj(x(this.ay,this))):this.C=!0;this.A&&j3(this.A)}B(p3,Mk);g=p3.prototype;g.Sy=function(a){a=new o3(new Uint8Array(a.initData),a.initDataType);q3(this,a,!0)};g.Cz=function(a){q3(this,new o3(a.initData,a.contentType),!0)};function q3(a,b,c){a.isDisposed()||Wu(a.j)==c||a.H&&"widevine"==a.j.o||(c=String.fromCharCode.apply(String,b.j),a.K[c]||(a.K[c]=!0,a.H=!0,a.o.push(b),1<a.o.length||a.C&&r3(a,b)))}
g.vz=function(){this.isDisposed()||(this.C=!0,this.o.length&&r3(this,this.o[0]))};g.ay=function(a){if(!this.isDisposed()){vj(a);var b="a";a instanceof DOMException&&(b+=a.name);this.O("licenseerror","drm.unavailable",b,"YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK")}};function r3(a,b){var c=new l3(a.j,a.F,b,a,a.S);c.Ar(a.G);I(a,c)}g.Ez=function(a,b){a&&tb(a,"HD")&&!uv(this.B)&&!Wu(this.j)&&(this.B=rv,this.O("qualitychange"));b&&!this.M&&(this.M=b,this.O("heartbeatparams",b))};
g.Fz=function(){this.isDisposed()||(this.o.shift(),this.o.length&&r3(this,this.o[0]))};g.nA=function(){if(Wu(this.j)&&(this.J--,0==this.J)){var a=this.A;a.j.msSetMediaKeys(a.C)}};g.R=function(){this.L=null;this.o=[];p3.N.R.call(this)};function s3(a){this.o={};this.o.c1a=x(this.C,this);this.o.c3a=x(this.D,this);this.o.c6a=x(this.B,this);(this.j=a)&&this.j.ea?this.A=jk(this.j.ea):this.A=[]}s3.prototype.C=function(){var a=t("yt.abuse.botguardInitialized");return a&&a()?(a=t("yt.abuse.invokeBotguard")())?"r1a="+a:null:null};s3.prototype.D=function(a){return"r3a="+Math.floor(this.j.lengthSeconds%bb(a.c3a))};s3.prototype.B=function(a){a=bb(a.c);var b;b=t("yt.abuse.dclkstatus.checkDclkStatus")();return"r6a="+(a^b)};function t3(a,b,c){this.j=a;this.reason=b;this.o=c};function Pea(a,b){this.j=a;this.o=b}function AJ(a,b){return vv(vv(a.j.Id,b.Tg),b.Yg)}function rJ(a,b){var c=eC();return"auto"!=c?pv("auto",c,!1):u3(a,b)}
function u3(a,b){if(VH(a.j)&&Dx(a.j.F,ns))return rv;var c;c=!!b.A.j;var d;WH(a.j)&&(d=window.screen&&window.screen.width?new N(window.screen.width,window.screen.height):null);d||(d=a.j.La?a.j.La.clone():a.o.Ka());(Ji||Lc||c)&&d.scale(dI());c=d;var e;d=b.A.videoInfos;if(d.length){var f=.85;2==d[0].video.projectionType&&(f*=.5);for(var h=0;h<d.length&&!(e=d[h].video,null===c||e.width*f<c.width&&e.height*f<c.height);h++);e=pv("auto",e.quality,!1)}else e=rv;c=e.j;Lu()&&(c=Math.max(c,As.hd1080));if(d=
(Gu("armv7")||Gu("android"))&&!VH(a.j))d=b.A.videoInfos[0],d="9"==d.B||"("==d.B;d&&(c=Math.min(c,As.large));c=Math.max(c,As.medium);e.j!=c&&(e=new ov(e.o,c,e.A));return e};function Qea(){this.B=this.j=NaN;this.A=this.o=!1}function Fz(a,b,c,d){if(d=1<d)a.A=!0;if(a.o)b!=a.j&&(a.o=!1);else if(0<b&&a.j==b)return c-a.B>(d||!a.A?1500:400);a.j=b;a.B=c;return!1};function v3(){Mk.call(this);this.o=null}B(v3,Mk);function w3(a,b){var c="";b&&(x3(a,b),c=Xw(b));a.j.src&&""==c||(c&&a.j.src!=c&&(a.j.src=c),b&&b.j||a.load())}function y3(a){a.j.ended&&z3(a,0);if(!a.j.src&&a.o){var b=Xw(a.o);a.j.src=b;a.o.j||a.load()}a.play();Kw&&7<=Jw&&Im(a,"playing",x(function(){qj(x(this.B,this,this.getCurrentTime(),0),500)},a))}v3.prototype.B=function(a,b){this.j.paused||this.getCurrentTime()>a||10<b||(this.play(),qj(x(this.B,this,this.getCurrentTime(),b+1),500))};
function x3(a,b){a.o&&a.o.equals(b)||(a.o&&a.o.dispose(),a.o=b)}function Dz(a){return tz(A3(a),a.getCurrentTime())}function z3(a,b){0<a.j.readyState&&(Kw&&4>Jw&&(b=Math.max(.1,b)),a.j.currentTime=b)}function B3(a){a.j.src&&(Eu&&z3(a,0),a.j.removeAttribute("src"),a.load(),a.o&&a.o.j&&x3(a,null))}function eJ(a){var b=A3(a);return 0<sz(b)&&a.j.duration?rz(b,a.getCurrentTime()):0}function C3(a,b,c,d){a.A[b]||(a.j.addEventListener(b,x(a.fE,a)),a.A[b]=!0);return a.subscribe(b,c,d)};function Rea(a,b,c){this.target=a;this.type=b;this.j=c||null};function D3(a){v3.call(this);this.j=a;this.A={}}B(D3,v3);g=D3.prototype;g.la=function(){return this.j};g.canPlayType=function(a,b){return this.j.canPlayType(a,b)};function A3(a){return a.j.buffered||oz()}g.getCurrentTime=function(){return this.j.currentTime};g.load=function(){this.j.load()};g.pause=function(){this.j.pause()};g.play=function(){this.j.play()};g.getErrorCode=function(){return this.j.error?this.j.error.code:null};g.setVolume=function(a){this.j.volume=a};
g.fE=function(a){this.O(a.type,new Rea(this,a.type,a))};function Sea(){this.o=0;this.j=this.D=this.A=this.B=NaN;this.C=0;this.H=this.J=this.F=this.G=NaN};function E3(){this.endTime=this.startTime=-1;this.Wj="-";this.playbackRate=1;this.visibilityState=0;this.Sj=""}E3.prototype.isEmpty=function(){return this.endTime==this.startTime};function Tea(a,b,c,d,e,f,h,k,l){this.j=a;this.o=b;this.C=c;this.D=d;this.A=e;this.F=f;this.J=h;this.H=k;this.G=l||function(){};this.B=-1}function YB(a){var b=xj();0>a.B&&(a.B=b);return Math.round(b-a.B)/1E3}
function tC(a){var b=a.C();a=a.j;var c={};a.o&&(c.fmt=a.o.id,a.D&&a.D.id!=a.o.id&&(c.afmt=a.D.id));c.plid=a.playbackId;c.ei=a.eventId;c.list=a.playlistId;c.cpn=a.clientPlaybackNonce;a.videoId&&(c.v=a.videoId);a.Hh&&(c.infringe=1);a.Wf&&(c.splay=1);a.Fa&&(c.live=a.Kd?"dvr":"live");a.Fg&&(c.autoplay=1);a.Hd&&(c.sdetail=a.Hd);a.S&&(c.partnerid=a.S);a.osid&&(c.osid=a.osid);qa(b,c);return b}
function UB(a){var b=new E3;b.Wj=a.C().cc||"-";var c=a.o;b.playbackRate=c.mc&&c.mc.playbackRate||1;c=tI(a.o);0!=c&&(b.visibilityState=c);a=a.H();a.Jb&&a.Jb.id&&"und"!=a.Jb.id&&(b.Sj=a.Jb.id);return b};function F3(a,b){this.o=this.A=0;this.D=a;this.C=b;this.j=NaN}F3.prototype.B=function(){var a=jC(this.D),b=a.totalVideoFrames,a=a.droppedVideoFrames,c=b-this.A,d=a-this.o;this.A=b;this.o=a;0<c&&.3<d/c&&this.C()};function G3(a,b){this.state=a;this.j=b}function zC(a,b){return U(a.state,b)&&!U(a.j,b)?1:!U(a.state,b)&&U(a.j,b)?-1:0};function H3(a,b,c,d,e){Mk.call(this);this.Sa=new Qea;this.H=c;this.Pa=d;this.F=new lB(x(this.getCurrentTime,this),x(this.HC,this),x(this.getPlayerState,this),x(this.ib,this),e);I(this,this.F);this.ga=NaN;this.M=this.G=null;this.D=a;this.ia=new Pea(a,this.Pa);this.K=!1;this.J=this.C=null;this.Z=[];this.ca=new a2;this.X=new a2;this.fb=this.Ea=!1;this.La=NaN;this.B=new zz;this.na=[];this.S=b;this.ea=this.ha=null;this.L=NaN;this.fa=[];this.j=new Sx;this.o=this.aa=null;this.za=NaN;this.A=null;this.Xa=
!1;this.wa=0;this.Ta=this.Wa=this.Ca=!1;this.T=this.W=null}B(H3,Mk);H3.j=1;H3.o=10;H3.A=5;H3.B=5;function $I(a){Zv()?aw(a.wa):tj(a.wa)}g=H3.prototype;g.R=function(){tj(this.za);uj(this.La);ZI(this);oJ(this);$I(this);I3(this);Vb(this.ea,this.j);this.M=null;this.Ca=!1};
g.Wg=function(a,b){var c=this.D.experiments.xa("legacy_cue_range_behavior2");this.Z.length=0;this.ca.reset();this.X.reset();this.L=this.ga=NaN;this.aa=null;this.Xa=!1;this.o&&B3(this.o);J3(this);ZI(this);oJ(this);$I(this);Ub(this.j);c&&this.F.reset();if(2==this.S||Rq.test(this.D.L))a.Jo=!0;this.D.Ig&&(a.Ld=this.j.Ld);this.j=a;this.j.subscribe("dataupdated",this.QA,this);this.j.subscribe("dataloaded",this.zn,this);this.j.subscribe("dataloaderror",this.nj,this);this.j.subscribe("onStatusFail",this.PA,
this);a.ef&&a.ef>a.startSeconds&&(c=a.ef,this.M&&(this.F.eh(this.M),this.M=null),this.M=new hr(1E3*c,0x7ffffffffffff),jr(this.M).subscribe("onEnter",this.Kf,this),this.F.gb([this.M]));ZI(this);this.j.Qf||(c=new Tea(this.j,this.D,b,x(this.Xf,this),x(this.getCurrentTime,this),x(this.Ov,this),x(this.Pa.Ka,this.Pa),x(this.pm,this),x(this.Yv,this)),this.A=new pC(c));this.Ca=!1;K3(this,"newdata");L3(this,new zz)};
function ZI(a){if(a.A){var b=a.A;if(!b.isDisposed()&&b.B){b.D="paused";var c=uC(b);c.T=!0;c.send();c=b.A;"PL"==c.o&&(c.o="N");hC(c,"vps",[c.o]);c.Qg();tj(b.C);b.dispose()}Ub(a.A);a.A=null}}g.getVideoData=function(){return this.j};g.V=function(){return this.D};function M3(a){return a.o?a.o.la():null}function N3(a){if(my(a.j))return!0;EA(a,"api.invalidparam");return!1}function O3(a,b){a.Ea=!!b;N3(a)&&!a.ca.o&&(a.ca.start(),a.A&&a.A.Pf(),a.zn())}
g.zn=function(){if(oy(this.j))oy(this.j),this.ca.j=!0,this.Z=Bb(this.j.H),fy(this.j,this.D),by(this.j)&&(this.j.Fa&&(this.W=new uea),this.j.A.j&&P3(this),HI(this,"i")),K3(this,"dataloaded"),this.X.o&&Q3(this);else if(this.j.fa){var a=this.j,b=this.D.experiments.L,c=this.D.experiments.xa("disable_versioned_mpd");a.Vd=!0;a.fa=!1;Qq.test(a.G)||vj(Error("DASH MPD Origin invalid: "+a.G),"WARNING");if(b)b=a.G;else var b=a.G,d=lh(b),b=0>Sx.B.indexOf(d)?Xq(b):Yq(b);c||(b=uh(b,{mpd_version:3}));c=b;ru(new lu(c),
c).then(a.Ny,a.My,a);ww("mrs")}else if(this.j.X)this.A&&(a=this.A.A,kC(a,"protected"),a.j.j.L?a.Aq():a.j.j.subscribe("dataloaded",a.Aq,a)),a=this.j,c=this.D.F,mu(a.j),c=new bv(Cx(c,a.j)),I(a,c),a.X=!1,a.Vd=!0,a=x(a.nx,a),c.B=a,$u()?dv(c):fv(c);else if(!this.j.Vd){a:switch(c=this.D,a=this.j,b=this.Pa.Ka(),d=tI(this.D),a.S){case 38:c=a.videoId.indexOf(":");c=uh("//play.google.com/books/volumes/"+a.videoId.slice(0,c)+"/content/media",{aid:a.videoId.slice(c+1),sig:a.We});break a;case 30:b="//docs.google.com/";
c.baseYtUrl!=UH.prototype.baseYtUrl&&(b=c.baseYtUrl);c=uh(b+"get_video_info",{docid:a.videoId,authuser:a.Bb,authkey:a.ob,eurl:c.S});break a;case 33:c=uh("//google-liveplayer.appspot.com/get_video_info",{key:a.videoId});break a;default:var e={html5:"1",video_id:a.videoId,cpn:a.clientPlaybackNonce,eurl:c.S,ps:c.j,el:c.Aa,hl:c.X,list:a.playlistId,agcid:a.pe,aqi:a.oe,sts:16734,lact:bI(c)?mC():"-1"};c.forcedExperiments&&(e.forced_experiments=c.forcedExperiments);a.K?e.vvt=a.K:a.oauthToken&&(e.access_token=
a.oauthToken);c.D&&(e.adformat=c.D);c.Sa&&(e.cc_lang_pref=c.Sa);c.aa&&2!=c.aa&&(e.cc_load_policy=c.aa);c.mute&&(e.mute=c.mute);a.wa&&2!=c.ad&&(e.iv_load_policy=a.wa);a.Da&&(e.itct=a.Da);a.Fg&&(e.autoplay="1");a.Uk&&(e.autonav="1");a.Wk&&(e.noiba="1");a.isMdxPlayback&&(e.mdx="1");a.ga&&(e.ytrcc=a.ga);a.al&&(e.utpsa="1");a.isFling&&(e.is_fling="1");a.vnd&&(e.vnd=a.vnd);b.width&&(e.width=b.width);b.height&&(e.height=b.height);a.Wf&&(e.splay="1");a.ypcPreview&&(e.ypc_preview="1");c.ca&&(e.content_v=c.ca);
a.zf&&(e.livemonitor=1);c.Bb&&(e.authuser=c.Bb);c.pageId&&(e.pageid=c.pageId);c.U&&(e.ei=c.U);c.Sb&&(e.ssl_stream="1");c.K&&(e.iframe="1");a.mj&&(e.tst=a.mj);a.contentCheckOk&&(e.cco="1");a.racyCheckOk&&(e.rco="1");c.jb&&a.liveStartWalltime&&(e.live_start_walltime=a.liveStartWalltime);c.jb&&a.wb&&(e.cyc=a.wb);0!=d&&c.experiments.xa("send_presence_signal_vis_desktop")&&(e.vis=d);qa(e,c.o);c=uh(c.baseYtUrl+"get_video_info",e)}a=this.j;b=this.D.experiments.Z;d=this.D.experiments.j;e=!this.D.experiments.xa("disable_gvi_cors");
a.isDisposed()||(a.Sb=c,a.ub=!!b,a.Cd=!!d,a.ad=!!e,a.Vd=!0,a.sq())}};function R3(a){a.o&&w3(a.o);O3(a);N3(a)&&!U(a.B,128)&&(a.X.o||(a.X.start(),L3(a,Gz(a.B,8)),oy(a.j)||L3(a,Gz(a.B,1))),Q3(a))}function Q3(a){a.isDisposed();if(!a.X.j&&a.ca.j&&!U(a.B,128)&&!a.Z.length&&(a.F.F||a.F.Pf(),!EJ(a))){if(a.C){var b=a.C;a.fb=!!b.M&&!!b.T}a.X.j=!0;a.j.Fa&&(S3(a,Infinity,!0),T3(a,!0));a.A&&(b=a.A,b.j.j.enableCardio&&b.j.j.enableCardioBeforePlayback&&(b.Qi("connected"),AC(b)));a.O("playbackready",a)}}
g.Kf=function(a){this.pauseVideo();a=0==a?new zz:new zz(14);L3(this,a)};function U3(a,b,c,d){a.j.o=c;a.j.D=d||c;if(a.A){var e=a.j,f=u3(a.ia,e),e=G(e.A.videoInfos,x(f.B,f)),e=new t3(c,b,e?e.id:"");d&&"i"==b&&V3(a,b,d);d=a.A.A;c=YB(d.j);hC(d,"vfs",[e.j.id,e.o,d.X,e.reason],c);d.X=e.j.id;e=d.j.J();0<e.width&&0<e.height&&(e=[Math.round(e.width),Math.round(e.height)],f=dI(),1<f&&e.push(f),hC(d,"view",e,c));hC(d,"vps",[d.o],c);d.Qg(c)}a.O("internalvideoformatchange",a.j,"m"==b)}
function V3(a,b,c){a.j.D=c;if(a.A){var d=a.A.A;c=new t3(c,b,"");var e=YB(d.j);c.j.id!=d.J&&(hC(d,"afs",[c.j.id,d.J,c.reason],e),d.J=c.j.id)}"i"!=b&&a.O("internalaudioformatchange",a.j,"m"==b)}function EA(a,b,c,d){var e,f;bc(lz,c)?e=c:c?f=c:e="YTP_ERROR_GENERIC_WITHOUT_LINK";b={errorCode:b,errorDetail:d,message:f||Q(e),messageKey:e};L3(a,Ez(a.B,128,b));$I(a);oJ(a);W3(a)}g.Ri=function(a){this.Z=this.Z.filter(function(b){return a!=b});this.X.o&&Q3(this)};
function EJ(a){return!!a.Z.length||0<hB(a.F.j,-0x8000000000000).length}g.ib=function(){return this.B.ib()};g.getPlayerState=function(){return this.B};function X3(a,b){var c=new D3(b);a.o&&I3(a);a.o=c;Uea(a)}function I3(a){a.J=null;a.C&&(nJ(a.C),a.C.J=!0);a.o&&(a.A&&a.ca.o&&U(a.B,64)&&!a.j.ze&&Y3(a),J3(a),E(a.fa,a.o.Pb,a.o),a.fa=[],B3(a.o),a.o=null)}
function qJ(a){if(!U(a.B,128)&&(R3(a),U(a.B,64)&&L3(a,Gz(a.B,8)),a.X.j&&a.o))if(a.j.A){if(a.j.Fa){var b=a.getCurrentTime()<ly(a.j),c=ry(a.j)&&U(a.B,4);(b||c)&&S3(a,Infinity,!0);Z3(a)?T3(a,!0):a.K&&S3(a,Infinity,!0)}if(a.j.A.j)b=pJ(a),a.C.resume();else{oJ(a);var b=a.j.Gf.o(),c=a.j,d={};c.W&&(d.ptk=c.W,d.oid=c.Yc,d.ptchn=c.Xc,d.pltype=c.Zc);qa(b.o,d);c=a.D.o;qa(b.o,{c:c.c,cver:c.cver})}(c=a.o.o)&&c.equals(b)?y3(a.o):Vea(a,b)}else EA(a,"fmt.noneavailable","YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK")}
function II(a){if(a.j.A){var b=$3(a)||rv;a=lb(a.j.A.videoInfos,x(b.B,b));for(var b=[],c={},d=0;d<a.length;d++){var e=a[d].video;c[e.quality]||(b.push(e),c[e.quality]=!0)}a=b}else a=[];return a}function a4(a){return vv(vv(AJ(a.ia,a.j),rJ(a.ia,a.j)),$3(a))}function $3(a){return a.j.ik?rv:a.G?a.G.B:by(a.j)&&a.j.A.j&&mu(a.j.j)?qv:rv}
function HI(a,b,c){if(!a.isDisposed()&&!U(a.B,128)&&(c&&(a.j.Yg=c),by(a.j))){"m"==b&&c&&uv(c)&&(b="a");var d=a4(a);if(a.j.A.j)"i"!=b&&U2(a.C,d,b,!1);else{c=a.j;a:{var e=a.j.M;if(d.j){for(var f=0;f<e.length;f++){var h=e[f].uc,k=As[h.video.quality];if((!d.A||"auto"!=h.video.quality)&&k<=d.j){d=e[f];break a}}d=e[e.length-1]}else d=e[0]}c.Gf=d;U3(a,b,a.j.Gf.uc)}a.ib()&&qJ(a)}}
g.pm=function(){var a=this.getVideoData(),b=a.D;if(!b)return a.T;var c=G(this.j.A?this.j.A.audioTracks:[],function(a){return a.id==b.id});return c?c:a.T};
function P3(a){wu(a.j.j,{c:a.D.o.c,cver:a.D.o.cver});var b=a.D,c=a.j,d=new KK;if(Ku()||b.experiments.Ga)d.W=!0;Ku()&&(d.S=-1);b.experiments.xa("use_streaming_xhr")&&(d.L=!0);b.experiments.xa("use_thresholded_streaming_xhr")&&(d.M=!0);Hu()&&(d.j=240);Ic&&(d.K=41943040);if(VH(b)||!lx()){var e=b.experiments;d.A=8388608;d.o=524288;d.J=2097152;d.B=1048576;d.ga=1.5;d.ea=15;d.H=!lx();d.aa=!1;Ju()&&!e.W&&(d.F=625E3);Iu()&&(d.F=75E4)}Lu()&&(d.A=20971520,d.o=1572864,d.F=812500,d.D=1E3);var e=b.La||new N(window.screen.width,
window.screen.height),f=dI();2560<=e.width*f&&1440<=e.height*f&&(d.A=36700160,d.o=5242880,d.J=10485760,d.B=4194304);b.experiments.U&&(d.F=NaN);d.na=b.J;d.liveChunkReadahead=Math.max(0,c.zf?c.liveChunkReadahead-1:c.liveChunkReadahead);d.ca=Hu()&&ty(c);c=b.experiments.jd("dash_html5_refresh_mapping_interval");e=b.experiments.jd("dash_html5_refresh_mapping_min_buffer");c&&(d.T=c);e&&(d.Ga=e);if(c=b.experiments.jd("html5_deadzone_multiplier"))d.C*=c,d.G*=c;if(c=b.experiments.jd("html5_request_sizing_multiplier"))d.Na=
c;b.experiments.xa("html5_use_average_bitrate")&&(d.Z=!0);b.experiments.xa("html5_use_average_bitrate_if_healthy")&&(d.fa=!0);b.experiments.xa("html5_avsync_slice_rewriting")&&(d.X=!0);a.C=new N2(a.ha,d,a.j.j,a.j.A);a.C.subscribe("initsegment",a.fz,a);a.C.subscribe("videoformatchange",a.qz,a);a.C.subscribe("audioformatchange",a.pz,a);a.C.subscribe("error",a.nj,a);a.C.subscribe("seekrequired",a.BB,a);b=tb(a.Z,"spacecast")||a.Ea;d=a.pm();d=d.Jb.isDefault?void 0:d;a.C.initialize(a.j.startSeconds,a4(a),
b,d);a.j.probeUrl&&(a.C.S=a.j.probeUrl);if(a.Z.length||a.Ea)a.C.J=!0;a.Ea&&Y3(a);a.D.experiments.jd("html5_dropped_frames_abr")&&(a.T=new F3(a.D,x(a.Fx,a)),a=a.T,a.j||(a.j=sj(x(a.B,a),5E3)))}function Y3(a){var b=new G3(new zz(4),a.B);yC(a.A,b)}function oJ(a){a.C&&(a.C.dispose(),a.C=null);a.J&&(a.J.dispose(),a.J=null);if(a.T&&a.T){var b=a.T;uj(b.j);b.j=NaN;a.T=null}}
g.Fx=function(){var a=this.C.D.j;a.isLocked()||(2==this.D.experiments.jd("html5_dropped_frames_abr")&&(a=vv(a,tv),U2(this.C,a,"a",!0)),this.A&&kC(this.A.A,"limit-frame-drops"),this.T&&(a=this.T,uj(a.j),a.j=NaN,this.T=null))};
function pJ(a){a.J||(a.C?a.C.seek(a.getCurrentTime()):P3(a),a.J=new dx(a.o.la(),a.j.lengthSeconds,a.j.A.videoInfos[0].mimeType,a.j.A.j[0].mimeType,a.D.J),ex(a.J,x(a.C.Uu,a.C)),fx(a.J,x(function(){EA(this,"fmt.unplayable",void 0,"msi.1")},a)));try{return gx(a.J)}catch(b){return b.message="window.URL object overwritten by external code",window.setTimeout(function(){throw b;},0),EA(a,"html5.missingapi","YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK"),null}}
g.fz=function(a){if(this.G){var b=this.G;if(Wu(b.j)){for(var c=new Uint8Array(0),d=new DataView(a.buffer,a.byteOffset,a.length),e=0;e<a.length-8;){var f=d.getUint32(e);if(1>f)break;var h=d.getUint32(e+4);if(1836019574==h)e+=8;else{if(1886614376==h){var h=a.subarray(e,e+f),k=new Uint8Array(c.length+h.length);k.set(c);k.set(h,c.length);c=k}e+=f}}a=c;0!=a.length&&q3(b,new o3(a),!1)}}};g.qz=function(a){U3(this,a.reason,a.video.info,a.audio.info);var b=jy(this.j);b&&b.C(a.video);this.W&&(this.W.o=a.audio.index)};
g.pz=function(a){V3(this,a.reason,a.audio.info)};g.nj=function(a){var b;ay(this.j)&&403==a.details.rc?(b=a.errorCode,b="net.badstatus"==b||"manifest.net.retryexhausted"==b):b=!1;if(b)ay(this.j),this.j.ze&&!this.Wa&&(this.Wa=!0,this.O("signatureexpired"));else if(a.details.Zk&&("net.retryexhausted"==a.errorCode||"net.badstatus"==a.errorCode)&&this.j.A.o)a=this.j,a.A=a.A.o,oJ(this),pJ(this),qJ(this);else if(a.j)EA(this,a.errorCode,void 0,Rw(a));else if(this.A)this.A.onError(a.errorCode,Rw(a))};
g.pauseVideo=function(a){U(this.B,64)&&!a&&(U(this.B,8)?L3(this,Iz(this.B)):L3(this,Hz(this.B,8)));this.o&&(U(this.B,128)||(a?L3(this,Gz(this.B,256)):L3(this,Iz(this.B))),this.o.pause())};function W3(a){a.o&&(a.o.pause(),J3(a),a.J&&(a.J.dispose(),a.J=null),a.j&&(a.j.startSeconds=a.getCurrentTime()),a.L=NaN,B3(a.o),U(a.B,128)||L3(a,Ez(a.B)))}
function S3(a,b,c,d){if(a.o&&a.X.j){b=De(b||0,ly(a.j),fJ(a,!1));var e=a.j.Fa&&!U(a.B,4)&&Z3(a,b);T3(a,e);a.j.startSeconds=b;a.L=b;e=a.Sa;e.j=b;e.o=!0;c?a.jr():(U(a.B,32)||(L3(a,Gz(a.B,32)),U(a.B,8)&&a.pauseVideo(!0),a.O("beginseeking",a)),d&&(a.ea||(a.ea=new oe(a.jr,d,a)),a.ea.start()),b4(a,!0));a.M&&b>a.j.ef&&(a.F.eh(a.M),a.M=null);b<a.Xf()&&L3(a,Hz(a.B,2));a.O("seekto",a,b)}else a.j.startSeconds=b||0}
g.jr=function(){if(!isNaN(this.L)&&this.o){var a=this.Xf();!this.j.Fa&&this.L>=Math.floor(a)?(this.L=a,this.O("endseeking",this),this.pauseVideo(!0),this.Kf()):(this.C&&this.C.seek(this.L),(!this.j.Fa||1<=this.o.j.readyState)&&z3(this.o,this.L))}this.ea&&(this.ea.dispose(),this.ea=null);U(this.B,32)&&(L3(this,Gz(Hz(this.B,32),16)),this.O("endseeking",this))};
g.getCurrentTime=function(){if(!isNaN(this.L))return this.L;var a=0;this.o&&1<=this.o.j.readyState?a=this.o.getCurrentTime():this.j&&(a=this.j.kj||this.j.startSeconds||0);return a};g.Xf=function(){return this.j.lengthSeconds?this.j.lengthSeconds:fJ(this,!1)?fJ(this,!1):0};
g.Ov=function(){var a=new Sea;if(this.ha&&this.C){var b=this.ha;a.A=b.D;a.D=b.F;a.j=aM(b);b=this.C;b.j&&!jx(b.j)&&(a.o=tz(b.j.o.buffered,b.C),a.B=tz(b.j.j.buffered,b.C));a.j=R1(b.K);aM(b.H);ZL(b.H);$L(b.H)}else this.o&&(a.o=Dz(this.o));this.W&&vea(this.W,a);return a};
function Wea(a){if(!a.o)return 0;if(ry(a.j))return 1;if(sy(a.j)){if(a.K)return 1;var b=a.o,c=A3(b),b=(0<sz(c)&&b.j.duration?c.end(c.length-1):0)-ly(a.j);a=fJ(a,!0)-ly(a.j);return Math.max(0,Math.min(1,b/a))}a=a.o;b=a.j.duration;return Infinity==b?1:b?eJ(a)/b:0}
function c4(a,b){var c={};if(b){a.A?qa(c,nC(sC(a.A,"playback"))):a.j&&(c.cpn=a.j.clientPlaybackNonce);if(a.o){var d;d=a.o;d={vct:d.getCurrentTime().toFixed(3),vd:d.j.duration.toFixed(3),vpl:pz(d.j.played||oz()),vbu:pz(A3(d)),vpa:d.j.paused,vsk:d.j.seeking,ven:d.j.ended,vpr:d.j.playbackRate,vrs:d.j.readyState,vns:d.j.networkState,vec:d.getErrorCode(),vvol:d.j.volume};qa(c,d)}if(a.C){d=a.C;var e={lct:d.C.toFixed(3),lsk:d.L,lmf:d.D.j.isLocked(),lbw:aM(d.H).toFixed(3),lhd:ZL(d.H).toFixed(3),ltd:(1E9*
$L(d.H)).toFixed(3),laa:d.o.B?lt(d.o.B):"",lva:d.A.B?lt(d.A.B):"",lar:d.o.o?lt(d.o.o):"",lvr:d.A.o?lt(d.A.o):"",lvh:g3(d)};d.j&&!jx(d.j)&&(e.lab=pz(d.j.j.buffered),e.lvb=pz(d.j.o.buffered));qa(c,e)}c.state=a.B.o.toString(16);U(a.B,128)&&(c.debug_error=a.B.j);EJ(a)&&(c.preroll="1");a.j.fh&&(c.ismb=a.j.fh)}c.debug_videoId=a.j.videoId;return c}g.QA=function(){if(this.G){var a=this.G,b=this.j.oauthToken;a.G=b;a.O("oauthtoken",b)}K3(this)};
g.PA=function(a){EA(this,"auth",unescape(a.reason),a.errordetail||"sec."+a.errorcode)};function K3(a,b){a.O("internalvideodatachange",b||"dataupdated",a,a.j)}
function Uea(a){E("loadstart loadeddata loadedmetadata play playing pause ended suspend progress seeking seeked timeupdate durationchange ratechange error waiting abort".split(" "),function(a){this.fa.push(C3(this.o,a,this.JC,this))},a);a.D.Jc&&(a.fa.push(C3(a.o,"webkitplaybacktargetavailabilitychanged",a.Rx,a)),a.fa.push(C3(a.o,"webkitcurrentplaybacktargetiswirelesschanged",a.Sx,a)))}
g.JC=function(a){var b=a.target.j.src;if(this.o&&this.o.j.src&&this.o.j.src==b){switch(a.type){case "error":if(this.D.pe&&2==this.o.getErrorCode()){setTimeout(x(function(){this.o&&(this.j.Gf&&this.o.load(),qJ(this))},this),500);if(this.A)this.A.onError("progressive.net");return}break;case "durationchange":var c=this.o.j.duration;(!this.J||isFinite(c)&&0<c)&&1!=c&&this.j.lengthSeconds!=c&&(this.j.lengthSeconds=c,K3(this));break;case "ratechange":this.C&&(this.C.K.A=Math.max(1,this.o.j.playbackRate));
this.F.Pf();break;case "loadedmetadata":this.j.startSeconds&&(0<(this.o.j.seekable||oz()).length?this.o.j.currentTime=this.j.startSeconds:(this.ga=this.j.startSeconds,this.pauseVideo(!0)));case "loadstart":uj(this.La);this.Zj()||(this.La=sj(x(this.Zj,this),100));break;case "progress":Xea(this);case "suspend":b4(this);this.O("onLoadProgress",this,Wea(this));break;case "seeked":d4(this);break;case "seeking":this.C&&this.C.seek(this.o.getCurrentTime());break;case "playing":this.H.o("plev");break;case "timeupdate":this.Xa=
!0;this.Zj();d4(this);b4(this);if(!this.o||this.o.j.src!=b)return;this.O("onVideoProgress",this,this.o.getCurrentTime());this.W&&this.K&&wea(this.W,this.o.getCurrentTime());break;case "waiting":if(0<(this.o.j.played||oz()).length&&0==A3(this.o).length&&0<this.o.getCurrentTime()&&5>this.o.getCurrentTime()&&this.C)return}this.o&&this.o.j.src==b&&(this.O("videoelementevent",a),a=Az(this.B,a,this.Sa),L3(this,a))}};g.Rx=function(a){a="available"==a.j.availability;a!=this.Ta&&(this.Ta=a,this.O("airplayavailabilitychange"))};
g.Sx=function(){var a=!!this.o.j.webkitCurrentPlaybackTargetIsWireless;a!=this.D.Hg&&(this.D.Hg=a)&&(fy(this.j,this.D),HI(this,"m"));this.O("airplayactivechange")};
g.Zj=function(){var a=this.o;a&&this.Xa&&!this.j.ze&&!Aw("vfp",this.H.j)&&2<=a.j.readyState&&!a.j.ended&&0<sz(A3(a))&&this.H.o("vfp");if((a=this.o)&&!this.j.ze&&0<a.j.duration&&(!Aw("pbr",this.H.j)&&a.j.paused&&2<=a.j.readyState&&0<sz(A3(a))&&this.H.o("pbr",void 0),0<a.getCurrentTime())){uj(this.La);tj(this.za);this.j.ze=!0;e4(this);if(this.A){a=this.A;if(!a.B){var b=sC(a,"playback");a.H=[10+a.j.j.lj,10,10,40+a.j.j.nm-a.j.j.lj,40];var c=a.o;uj(c.D);c.D=NaN;c.D=sj(x(c.update,c),100);c.C=YB(c.o);c.B=
UB(c.o);b.o=qC(a,!0);b.Ea=!0;b.send();a.j.j.W&&(b=a.j.o,c=a.j.j,b=uh(b.baseYtUrl+"ptracking",{html5:"1",video_id:c.videoId,cpn:c.clientPlaybackNonce,plid:c.playbackId,ei:c.eventId,ptk:c.W,oid:c.Yc,ptchn:c.Xc,pltype:c.Zc,content_v:b.ca}),wC(a,b));a.j.j.enableCardio&&(a.Qi("playback"),a.C||AC(a));a.j.j.Oe||vC(a);a.B=!0;a=a.o;a.j=a.o.A();a.C=YB(a.o);.5<a.j-a.A&&(a.A=a.j)}qj(x(this.Dl,this),4500)}this.O("playbackstarted");Zv()&&bw();return!0}return!1};
function e4(a){var b=a.getCurrentTime(),c=a.j;!Aw("pbs",a.H.j)&&tw.measure&&tw.getEntriesByName&&(tw.getEntriesByName("mark_navigation_requested")[0]?tw.measure("measure_above_the_fold","mark_navigation_requested"):tw.measure("measure_above_the_fold"));c.videoId&&a.H.info("docid",c.videoId);c.eventId&&a.H.info("ei",c.eventId);c.clientPlaybackNonce&&a.H.info("cpn",c.clientPlaybackNonce);0<c.startSeconds&&a.H.info("start",c.startSeconds.toString());a.o&&a.o.j.paused&&a.H.info("paused",1);c.o?a.H.info("fmt",
c.o.id):a.H.info("fmt","-1");c.Sa&&a.H.info("yt_pre",a.fb?"2":"1");a.D.Ig&&a.H.info("yt_fs","1");a.H.info("cmt",b.toFixed(3));if(a.C){b=a.C;window&&window.performance&&window.performance.getEntriesByName&&(c=window.performance.getEntriesByName(b.T),c.length&&(c=c[0],R2(b,"vri",c.fetchStart),R2(b,"vdns",c.domainLookupEnd),R2(b,"vreq",c.requestStart),R2(b,"fvb",c.responseStart),R2(b,"vrc",c.responseEnd)),c=window.performance.getEntriesByName(b.M),c.length&&(c=c[0],R2(b,"ari",c.fetchStart),R2(b,"adns",
c.domainLookupEnd),R2(b,"areq",c.requestStart),R2(b,"avb",c.responseStart),R2(b,"arc",c.responseEnd)));var b=b.ga,d;for(d in b)a.H.o(d,b[d])}}function Xea(a){if(a.ga&&a.o){var b=a.o.j.seekable||oz();b.length&&b.end(0)>a.ga&&(a.o.j.currentTime=a.ga,a.ga=NaN,a.Da=C3(a.o,"canplay",a.Oy,a),a.fa.push(a.Da))}}g.Oy=function(){this.Da&&(this.o.Pb(this.Da),delete this.Da,y3(this.o))};
function b4(a,b){if(a.o&&a.j){var c=a.getCurrentTime();if(c<ly(a.j))S3(a,fJ(a,!1),!0);else{if(a.K){var d=fJ(a,!1);if(c<d-H3.o){if(a.j.zf||ry(a.j)&&a.D.experiments.M){S3(a,d,!0);return}a.j.Fa&&T3(a,!1)}}if(a.C&&(d=a.C,d.j)){d.resume();if(d.L&&!jx(d.j)){var e=d.C<=c&&c<d.C+10,f=0<=qz(d.j.o.buffered,d.C+N2.j);e&&f&&(d.L=!1)}d.L||(d.C=c);O2(d)}5<c&&(a.j.startSeconds=c);(d=Zv())?aw(a.wa):tj(a.wa);if(Kz(a.B)||!a.o.j.paused)e=x(a.kw,a),a.wa=0==(a.o.j.played||oz()).length?d?$v(e,100):qj(e,100):d?$v(e,500):
qj(e,500);a.j.kj=c;!b&&a.ib()&&a.A&&(c=a.A,c.o.update(),oy(c.j.j)&&c.j.j.Oe&&!c.L&&WB(c.o)>=c.j.j.Oe&&(c.B&&c.j.j.Oe&&(d=sC(c,"delayplay"),d.za=!0,d.send(),c.L=!0),vC(c)),d=c.S,d.B||!d.j.wb||d.j.Fd||!d.o.lengthSeconds?d=!1:(e=Math.min(.8*d.o.lengthSeconds,180),d=WB(d.C)>=e),d&&c.S.send());a.O("progresssync",a,b)}}}
g.kw=function(){if(this.o){var a=this.getCurrentTime();if(U(this.B,8)&&Fz(this.Sa,a,xj(),Dz(this.o))){var b=this.Xf();b&&1>Math.abs(b-a)?this.Kf():L3(this,Gz(this.B,1))}else U(this.B,4)&&Kz(this.B)&&Dz(this.o)>H3.B&&L3(this,Hz(this.B,1));b4(this)}};
function L3(a,b){var c=a.B;if(b.o!=c.o||b.j!=c.j){c=new G3(b,a.B);a.B=b;var d=!a.na.length;a.na.push(c);0>zC(c,8)&&(tj(a.za),T3(a,!1));0<zC(c,32)&&T3(a,!1);if(U(c.state,2)&&sy(a.j)){var e=a.getCurrentTime();a.j.lengthSeconds!=e&&(a.j.lengthSeconds=e,K3(a));b4(a,!0)}0<zC(c,2)&&a.Dl();a.A&&yC(a.A,c);if(d){for(d=0;d<a.na.length;d++){var c=a.na[d],e=a.F,f=c;if(e.F&&!e.H)if(e.B.stop(),U(f.state,2)){e.D=null;for(var f=[],h=0;h<e.o.length;h++){var k=e.o[h];k.active&&0x8000000000000>k.end&&f.push(k)}h=hB(e.j,
0x7ffffffffffff);h=h.concat(iB(e.j,0x7ffffffffffff));f=oB(e,f).concat(nB(e,h));e.C=!0;pB(e,f);e.C=!1;e.G&&e.Gc()}else U(f.state,16)?(e.A=mB(e),e.J.start(),e.Gc()):(e.J.stop(),U(f.j,16)?(e.A=mB(e),null!=kB(e.j,Math.max(e.A-2E3,0))&&e.B.start()):e.Gc());a.O("statechange",c)}a.na.length=0}}}g.Yv=function(){this.j.Fa||this.O("connectionissue")};g.BB=function(){z3(this.o,this.o.getCurrentTime()+.1)};function d4(a){U(a.B,2)||U(a.B,32)||(a.L=NaN)}
function T3(a,b){a.j.Fa&&a.K!=b&&(a.K=b,a.O("liveviewshift",b))}function Vea(a,b){Yea(a,b);a.D.oe?qj(x(function(){y3(this.o)},a),0):y3(a.o)}
function Yea(a,b){a.H.o("vta");w3(a.o,b);if(iy(a.j)&&iy(a.j)&&!a.G&&a.o){var c=a.j.o.mimeType,d=a.j.L;if(d){var e=a.o.la();a.G=new p3(e,d);a.G.subscribe("newsession",a.Dz,a);a.G.subscribe("licenseerror",a.hz,a);a.G.subscribe("qualitychange",a.iz,a);a.G.subscribe("heartbeatparams",a.IC,a);var e=a.G,f=a.j.oauthToken;e.G=f;e.O("oauthtoken",f);I(a,a.G);a.o.canPlayType(c,d.j)}else EA(a,"fmt.unplayable","YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK")}a.J&&dw();tj(a.za);a.j.ze||(a.za=qj(x(a.nz,a),15E3))}
function J3(a){a.G&&(a.G.dispose(),a.G=null)}g.Dz=function(a){var b={};qa(b,this.D.o);b.cpn=this.j.clientPlaybackNonce;this.j.K&&(b.vvt=this.j.K);this.D.Bb&&(b.authuser=this.D.Bb);this.D.pageId&&(b.pageid=this.D.pageId);qc(a.A,b);m3(a,a.F)};g.hz=function(a,b,c){EA(this,a,p(c)?c:"YTP_ERROR_LICENSE",b)};g.iz=function(){HI(this,"r");K3(this)};g.IC=function(a){this.O("heartbeatparams",a)};
g.nz=function(){if(!this.j.ze&&this.o){0<this.o.j.readyState&&Dz(this.o)>=H3.A&&this.O("playbackstalledatstart");if(this.A)this.A.onError("qoe.start15s");this.O("loadsofttimeout")}};
g.Dl=function(){if(!this.Ca){var a=new s3(this.j),b;"c1a"in a.A?(b=t("yt.abuse.botguardInitialized"),b=!(b&&b())):b=!1;if(b)qj(x(this.Dl,this),4500);else{var c;if(a.j&&a.j.ea){b=[a.j.ea];for(c in a.o)if(a.A[c]&&a.o[c]){var d=a.o[c](a.A);d&&b.push(d)}c=b.join("&")}else c=null;c&&this.A&&(a=this.A,a.K||(b=sC(a,"atr"),b.K=c,b.send(),a.K=!0),this.Ca=!0)}}};
function fJ(a,b){if(!a.o)return 0;if(!a.j.Fa){var c=a.j;return c.j&&!isNaN(uu(c.j))?uu(c.j):c.lengthSeconds}if(b&&(a.K||ry(a.j)))return a.getCurrentTime();if(a.C)return c=b3(a.C),Math.max(Math.max(c,ly(a.j)),a.getCurrentTime())||0;c=a.o.j.seekable||oz();return(1>c.length?NaN:c.end(c.length-1))||0}g.HC=function(){return this.o?this.o.j.playbackRate:1};function Z3(a,b){void 0==b&&(b=a.getCurrentTime());return b>=fJ(a,!1)-H3.j};function f4(a,b){this.j=a;this.o=ga(b)?b:null;if(tb(g4,this.j)){if(!ga(this.o)||0>this.o)throw Error("Must have valid offset");}else if(null!==this.o)throw Error("Must not have offset");}function h4(a){var b=a.o;if(null!==b)return b;switch(a.j){case 1:return 0;case 3:return-1;default:return-100}}function Zea(a,b){var c=a.j,d=b.j;if(c!=d){if(1==c||3==d)return-1;if(1==d||3==c)return 1}var e=a.o,f=b.o;return e!=f?null===e?1:null===f?-1:e-f:c-d}var g4=[2,5];function i4(a,b){return"9t_D9IIh_ZI"==b.ga||j4(a,["9418752","9418753"])}function k4(a,b){return tb(a.experiments.experimentIds,b)}function j4(a,b){return ob(b,pa(tb,a.experiments.experimentIds))};function l4(a){return a?-1!=a.toString().search(/(?:true|1)/i):!1}function m4(a,b){if(a){var c="getErrorCode"in a?a.getErrorCode():null,d="";c?b.error_code=c:(c="getMessage"in a&&ha(a.getMessage)?a.getMessage():a.message,d=Oa(c||"",50),b.error_message=d)}}function n4(a,b){if(a){var c=JW(a).reverse();b.ad_id=Ab(c,IW(a)).join(",");c=LW(a).reverse();b.ad_sys=Ab(c,CW(a)).join(",");c=MW(a);null!=c&&(b.aqi=c)}}
function o4(a,b){if(a[b])return l4(a[b]);var c=b.toLowerCase(),d;for(d in a)if(d&&d.toLowerCase()==c)return l4(a[d]);return!1}function p4(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 q4(a,b,c){var d=new zO;d.baseYouTubeUrl=b.baseYtUrl;d.contentId=c.videoId;d.useShareButton=!0;d.useStyledNonLinearAds=!0;d.useVideoAdUi=a.T;d.showContentThumbnail=a.showContentThumbnail;d.Ef={};c.aa&&(d.Ef.ctrl=c.aa);c.ca&&(d.Ef.ytr=c.ca);c.ga&&(d.Ef.ytrcc=c.ga);c.isMdxPlayback&&(d.Ef.mdx="1");a.aa?(d.Pj=!0,d.uv=!0,d.showContentThumbnail=!1,d.Vl=!0,d.Wl=!0,d.useShareButton=!1):a.B&&(d.Pj=!0);return d}
function r4(a){var b=new lZ;b.D=a.o.Ea;var c=a.app.G.Ka();b.qf=c.width;b.pf=c.height;b.Bc=c.width;b.Ac=100;b.En=bI(a.V());b.F=a.V().experiments.experimentIds;b.ld=x(a.V().experiments.xa,a.V().experiments);b.wk=x(a.V().experiments.jd,a.V().experiments);b.xk=x(a.V().experiments.J,a.V().experiments);b.En?(a.V(),c=mC()):c=-1;c&&(b.G=c);a.o.tagForChildDirected&&(b.mi=!0);if(k4(a.V(),"9415521")||a.o.wb)b.ni=!0;c=s4(a);b.zb={CONTENT_V:c.videoId,CPN:c.clientPlaybackNonce,LACT:$ea(a),VIS:afa(a)};bI(a.V())||
(b.zb.LACT="-1");b.afcRmFallback=a.o.H;k4(a.V(),"9417581")&&(b.C="yt_"+s4(a).videoId);return b}function $ea(a){return{toString:function(){if(null==a||a.isDisposed())return a=null;a.V();return mC().toString()}}}function afa(a){return{toString:function(){return null==a||a.isDisposed()?a=null:tI(a.V()).toString()}}};function t4(a,b,c,d){this.o=this.A="";this.B=a;this.D=b;this.j=c;this.C=d}t4.prototype.A="";t4.prototype.o="";function u4(a){var b={};b.l_ns=a.D;b.l_state=a.C;b.break_type=a.B.j;b.sst=h4(a.B);b.sidx=0;a.A&&(b.at=a.A);a.o&&(b.ad_id=a.o);return b};var v4=!1,w4=!1;function x4(){var a=t("yt.www.watch.ads.loadAfc");ha(a)?a():v4=!0}function y4(){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 z4(){var a=t("window.google_show_companion_ad"),b;b=t("yt.www.watch.ads.getGlobals");ha(a)&&ha(b)?(b=b(),b=Boolean(b&&b.length)):b=!1;b?a():w4=!0}function A4(){var a=t("yt.www.watch.ads.setCompanion");a&&a()}
function bfa(a){var b=t("yt.www.watch.ads.showForcedMpu");b&&b(a)}Dj("showCompanionAdLoaded",function(){w4&&(z4(),w4=!1)});Dj("watchAdsInit",function(){v4&&(v4=!1,x4())});function B4(a,b){this.o=a;this.j=b}function C4(a){return a.j-a.o}function D4(a,b){return a.o+b*C4(a)}function E4(a,b,c){return C4(a)?De((b-a.o)/C4(a),0,1):null!=c?c:Infinity};function F4(){this.o=this.position=this.B=this.j=this.C=this.A=this.width=NaN}F4.prototype.update=function(a,b,c,d){this.width=b;this.A=c;this.C=d;this.j=b-c-d;this.B=De(a-c,0,this.j);this.position=this.B+c;this.o=this.B/this.j};function G4(a,b,c,d,e){var f=b.Uo/b.rows,h=Math.min(c/(b.Wo/b.Hb),d/f),k=b.Wo*h,l=b.Uo*h,k=Math.floor(k/b.Hb)*b.Hb,l=Math.floor(l/b.rows)*b.rows,n=k/b.Hb,r=l/b.rows,u=-b.kv*n,z=-b.row*r;e&&45>=f&&(r-=1/h);a=a.style;a.width=n+"px";a.height=r+"px";e||(d=(d-r)/2,c=(c-n)/2,a.marginTop=Math.floor(d)+"px",a.marginBottom=Math.ceil(d)+"px",a.marginLeft=Math.floor(c)+"px",a.marginRight=Math.ceil(c)+"px");a.background="url("+b.url+") "+u+"px "+z+"px/"+k+"px "+l+"px";if(e)return new N(n,r)};function cfa(){this.A=!1;this.o=0;this.j=""};function H4(a,b,c,d){Mk.call(this);this.j=a;this.o=d;this.B=null;this.adType=c;this.adSystem=b}B(H4,Mk);H4.prototype.Vc=function(){return this.adSystem+"_"+this.adType};H4.prototype.kf=function(){return this.Vc()};H4.prototype.getCurrentAd=function(){return this.o?this.o.getCurrentAd():null};H4.prototype.xj=v;function dfa(){this.clickThroughUrl="";this.isSkippable=!1;this.skipShown=this.skip=v;this.skipTime=0;this.videoUrl=this.videoId="";this.adSystem=0};function efa(a){this.j=a}function ffa(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 I4(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 gfa(a,b){this.C=null;this.A=NaN;this.o=null;this.j=a;this.B=b}function J4(a,b,c){a.j.O("AD_LOGGING_EVENT",b,c)}function K4(a,b,c){L4(a);var d=M4(a);c&&qa(d,c);d.ad_error=b;J4(a,7,d)}
function M4(a){var b={},c=a.j.B,d=a.j.C.Xf(),e=N4(a.j);n4(a.j.getCurrentAd(),b);d&&0<d&&(b.ad_len=d);b.ad_v="0";c&&c.videoId?b.ad_v=c.videoId:e&&(c=lh(e),b.ad_dom=c,a.B.o.B&&(b.ad_v_url=e.substr(0,512)));e=a.j;(e=e.o?e.o.ff():null)&&(b.ad_cpn=e);b.format=a.j.Vc();b.at=a.j.kf();b.ad_mt=Math.round(1E3*Math.max(hfa(a.j),0));return b}function L4(a){a.C||(a.C="InstreamAdDisplay ("+a.j.Vc()+")")};function P4(a,b){H.call(this);this.B=Math.max(0,a);this.A=this.o=0;this.C=b;this.j=NaN}B(P4,H);P4.prototype.start=function(){isNaN(this.j)&&(this.A=A(),this.j=me(this.C,this.B-this.o,this))};P4.prototype.stop=function(){isNaN(this.j)||(this.A=this.o=0,ne(this.j),this.j=NaN)};P4.prototype.pause=function(){isNaN(this.j)||(this.o=A()-this.A,ne(this.j),this.j=NaN)};P4.prototype.R=function(){isNaN(this.j)||ne(this.j)};function Q4(a,b,c,d,e,f){H4.call(this,b,a,2,c);this.K=!1;this.G=this.S=this.L=null;this.j.subscribe("control_toggle_play_pause",this.Pr,this);this.j.subscribe("control_play",this.wl,this);this.j.subscribe("control_pause",this.vl,this);this.D=new gfa(this,this.j);this.A=new PA(this);this.C=R4(b);this.C.subscribe("statechange",this.Je,this);this.C.subscribe("internalAbandon",this.Zo,this);this.C.subscribe("internalvideodatachange",this.Or,this);this.F=this.H=!1;this.T=d;this.M=!!e;this.X=!!f;this.J=
new P4(1E3*Q4.j,x(this.xj,this))}B(Q4,H4);Q4.j=15;g=Q4.prototype;g.xj=function(){K4(this.D,13);this.M||this.o.destroy();this.F=this.H=!1;S4(this)};g.Vc=function(){var a=0,a=this.getCurrentAd();if(tW(a))a=3;else if(uW(a))a=4;else if(vW(a))a=xW(a)?1:2;else return this.adSystem+"_"+this.adType;return this.adSystem+"_"+this.adType+"_"+a};g.kf=function(){return this.adSystem+"_"+this.adType};
g.ne=function(){var a=this.j,b=R4(a);T4(a.app,b);this.D.A=A();this.G=this.j.sa();this.C.subscribe("progresssync",this.ep,this);this.j.o.T&&Wf(Gf("video-ad-status-bar",this.G));se(this.G,["ad-showing","ad-interrupting"]);this.j.subscribe("onResize",this.Am,this);try{this.A.P(this.o,"adError",this.MD),this.A.P(this.o,"click",this.KD),this.A.P(this.o,"complete",this.Ey),this.A.P(this.o,"engagedview",this.Ty),this.A.P(this.o,"pause",this.Lr),this.A.P(this.o,"start",this.Mr),this.A.P(this.o,"skip",this.Nr),
this.A.P(this.o,"video_extend_auto_skipped",this.Nr),this.A.P(this.o,"MUTE_AD",this.xj),this.A.P(this.o,"skippableStateChanged",this.sA),this.A.P(this.o,"youTubeChannelMetadata",this.xz),this.A.P(Xr(this.j.G),"mouseup",this.ND),this.Am(),this.M||this.o.start()}catch(c){U4(this,c)}};
g.Or=function(a,b,c){if("newdata"==a&&this.B!=c){a={video_id:c.videoId};b=new dfa;b.isSkippable=this.T;b.skip=x(this.o.skip,this.o);b.skipShown=x(this.o.wq,this.o);var d=this.getCurrentAd();if(d){b.clickThroughUrl=aX(d)||"";var e;(e=this.j.o.Ea)||(e=c.lengthSeconds,(d=XW(d))?(IV(d,e),e=HV(d)):e=null);b.skipTime=e||0;b.adSystem=this.adSystem}b.videoId=c.videoId;b.videoId||(b.videoUrl=N4(this)||"");c.spacecastModule=this.X;V4(this.j,-1,a,b)}this.B=c};
g.Je=function(a){a=a.state;U(a,1)||this.J.pause();U(a,128)?U4(this,Error(a.j.message||"Video player error.")):U(a,1)&&this.J.start()};g.Mr=function(){this.K=!0;this.F=!1;if(!this.H){this.H=!0;var a=this.D;L4(a);var b=M4(a);if(isNaN(a.A))L4(a);else{var c=A()-a.A;b.ad_stl=c}J4(a,4,b);W4(this.j,1);X4(this,!1);(a=Q("ADS_INSTREAM_FIRST_PLAY"))&&this.j.O("publish_external_event","onAdAnnounce",a)}V4(this.j,1);this.O("adPlay",this)};g.Lr=function(){this.K&&(this.K=!1,V4(this.j,2))};
g.Ey=function(){if(!this.F){var a=this.D;L4(a);var b=M4(a),c=Y4(a.j);c?b.ad_fmt=c:L4(a);J4(a,5,b);S4(this);this.F=this.H=!1}};function X4(a,b){var c=a.j.V();if(a.j.o.T&&"3"==c.A){var c=a.j.app.G,d=c.app.V();WH(d);"3"==d.A&&(c.o.controls=b)}}function S4(a){var b=new cfa;b.A=a.F;b.o=A();a.B&&a.B.clientPlaybackNonce&&(b.j=a.B.clientPlaybackNonce);W3(R4(a.j));V4(a.j,0,b);W4(a.j,0);a.O("adEnd",a);X4(a,!0)}g.Ty=function(){var a=this.D;a.j.O("AD_LOGGING_EVENT",777,M4(a))};
g.Nr=function(){this.F=!0;var a=this.D,b=M4(a),c=Y4(a.j);c?b.ad_fmt=c:L4(a);J4(a,14,b);S4(this)};g.sA=function(){var a=Q("ADS_INSTREAM_SKIPPABLE");a&&this.j.O("publish_external_event","onAdAnnounce",a)};g.xz=function(){var a=this.getCurrentAd();if(a){var b=a.S;if((a=a.M)&&b){var c={};c.videoTitle=b.title;c.channelThumbnailUrl=a.j;c.channelTitle=a.o;c.channelVideoCount=a.videoCount;this.j.O("publish_external_event","onAdMetadataAvailable",c)}}};
g.MD=function(a){var b={};try{b.error_code=a.event.getError().getErrorCode()}catch(c){b.error_code=900,b.error_message=c.toString()}K4(this.D,32,b);U4(this,a.event.getError())};function U4(a,b){a.C.Kf();V4(a.j,0);a.O("adError",b)}g.KD=function(){var a=this.D;L4(a);var b=M4(a);if(a.o){var c=Z4(a.B);b.ck_xy=Math.round(a.o.x-c.left)+"x"+Math.round(a.o.y-c.top);b.ck_wh=c.width+"x"+c.height}J4(a,15,b);this.o.pause();this.O("select")};g.ep=function(){};g.Zo=function(){m0(this.o,"abandon");X4(this,!0)};
g.R=function(){this.j.unsubscribe("control_toggle_play_pause",this.Pr,this);this.j.unsubscribe("control_play",this.wl,this);this.j.unsubscribe("control_pause",this.vl,this);this.j.unsubscribe("onResize",this.Am,this);this.A.removeAll();this.C.unsubscribe("statechange",this.Je,this);this.C.unsubscribe("internalAbandon",this.Zo,this);this.C.unsubscribe("internalvideodatachange",this.Or,this);this.C.unsubscribe("progresssync",this.ep,this);this.M||this.o.destroy();this.L&&(Uf(this.L),this.L=null);this.S&&
(Wf(this.S),this.S=null);this.G&&(ue(this.G,["ad-showing","ad-interrupting"]),this.G=null);this.F=!1;var a=this.j;if(a.D){var b=a.app,a=a.D;$4(b);a!=b.o&&T4(b,b.o)}this.J.dispose();this.J=null;Q4.N.R.call(this)};function Y4(a){return a.B&&a.B.o?a.B.o.mimeType:null}function N4(a){return a.B&&a.B.Gf?Xw(a.B.Gf.o()):null}function hfa(a){return a.C?a.C.getCurrentTime():0}g.Pr=function(){this.K?this.vl():this.wl()};g.wl=function(){this.o.resume();this.Mr()};g.vl=function(){this.o.pause();this.Lr()};
g.Am=function(){Gg(Xr(this.j.G),this.j.app.G.Ka())};g.ND=function(a){p(a.j)||Dm(a);var b=a.j;p(a.o)||Dm(a);this.D.o=new Ge(b,a.o)};function ifa(a,b){this.j=a;this.C=b;this.j.Vc();this.o=this.B=0;this.A=null}function a5(a,b,c){a.j.O("AD_LOGGING_EVENT",b,c)}function b5(a){var b={};n4(a.j.getCurrentAd(),b);a.B&&a.o&&(b.ot=a.o-a.B);var c;c=a.C.Ja()?2:a.C.app.na?1:0;b.ad_ps=c;b.format=a.j.Vc();b.at=a.j.kf();return b};function c5(a,b,c,d){H4.call(this,b,a,1,c);this.A=null;this.F=!1;this.H=null;this.D=new ifa(this,b);this.C=new PA(this);this.G=!!d}B(c5,H4);g=c5.prototype;
g.ne=function(){if(!this.F||!d5(this.j)){K(this.j.sa(),"ad-showing");this.A=Xr(this.j.G);var a=this.o.getCurrentAd().getHeight();this.A.style.height=vg(a,!0);K(this.A,"ad-overlay");this.C.P(this.A,"mouseup",this.QD);try{this.C.P(this.o,"autoClose",this.ey),this.C.P(this.o,"userClose",this.LA),this.C.P(this.o,"userRecall",this.MA),this.C.P(this.o,"click",this.PD),this.C.P(this.o,"impression",this.ez),this.C.P(this.o,"adError",this.OD),e5(this,"normal"),this.G||this.o.start(),this.Bm(),this.j.subscribe("onResize",
this.zj,this),this.j.subscribe("onStateChange",this.Qr,this),this.O("adEnd",this)}catch(b){this.O("adError",b)}}};g.R=function(){this.C.removeAll();this.j.unsubscribe("onResize",this.zj,this);this.j.unsubscribe("onStateChange",this.Qr,this);te(this.j.sa(),"ad-showing");this.o&&(this.G||this.o.destroy(),this.o=null);this.A&&te(this.A,"ad-overlay");this.A=null;this.F=!1;c5.N.R.call(this)};
g.LA=function(){this.A&&this.o&&this.o.getCurrentAd()&&(this.A.style.height=vg(0,!0));this.F=!0;var a=this.D;a.o=A();var b=b5(a);a5(a,6,b);this.j.O("overlay_ad_close")};g.ey=function(){this.j.O("overlay_ad_close")};g.MA=function(){this.j.O("overlay_ad_open")};g.PD=function(){this.j.pauseVideo();var a=this.D;a.o=A();var b=b5(a);if(a.A){var c=Z4(a.C);b.ck_xy=Math.round(a.A.x-c.left)+"x"+Math.round(a.A.y-c.top);b.ck_wh=c.width+"x"+c.height}a5(a,100,b)};
g.ez=function(){var a=Q("ADS_OVERLAY_IMPRESSION");a&&this.j.O("publish_external_event","onAdAnnounce",a);this.j.O("overlay_ad_open")};g.QD=function(a){this.D.A=a.target==a.currentTarget?null:new Ge(a.pageX,a.pageY)};g.OD=function(a){a=a.event.getError();this.O("adError",a)};g.Qr=function(a){U(a.state,16)&&e5(this,"normal")};function e5(a,b){a.H!=b&&(a.H=b)}g.zj=function(){};g.Bm=function(){var a=this.D;a.B=A();var b=b5(a);a5(a,3,b)};function f5(a,b,c,d){H.call(this);this.L=null;this.S=a;this.o=b.Qa;this.G=b;this.J=b.getId();this.j=c;this.D=d;this.A=new t4(this.o,this.eg(),c,d);this.C=null;this.U=new vn(this);this.B=new vn(this);this.M=/^(http(s)?:\/\/)(.*.)?youtube.com\/.*$/}B(f5,H);f5.j="rm";f5.o=10;f5.C=200;f5.A=200;f5.B=190;g=f5.prototype;
g.load=function(){var a;a=this.j.app.G.Ka();var b;this.j.o.j?b=!1:(b=0<(this.D&3)?f5.B:f5.A,b=a.width<f5.C||a.height<b);if(b){b=this.A;var c=u4(b);c.ck_wh=a.width+"x"+a.height;g5(b.j,14,c);A4();this.zc(Error("The player size is too small."))}else if(this.C=this.j.M)a=this.A,h5(a.j,9,u4(a)),a=r4(this.j),(b=this.j.o.serverPrefetchedVast)&&0<(this.D&3)?(a.o=b,this.j.o.serverPrefetchedVast=void 0):a.j=this.hd(),this.C.P("adsManagerLoaded",this.Kr,!1,this),this.C.P("adError",this.Jr,!1,this),this.Ni(this.C,
a)};g.lk=function(){var a=q4(this.j.o,this.j.V(),s4(this.j));a.surveyCreativeData=this.j.o.surveyCreativeData;a.youTubeAdNamespace=this.eg();return a};g.eg=function(){return this.S};function i5(a){var b=new f4(2,f5.o);a.o=b;a.A.B=b}function j5(a,b){a.L=b;var c=b.Vc();a.A.A=c}function k5(a,b){var c=t("yt.www.watch.ads.setAdId");c&&c(b);a.A.o=b}function l5(a){a=h4(a.o);return 0==a||-1==a?a:1E3*a}
g.Kr=function(a){if(a.B===this){ww("aml");try{var b=this.lk(),c=a.A}catch(d){this.Yd(d);return}this.B.P(c,"companionBackfill",x(this.JD,this,c));this.B.P(c,"loaded",x(this.ID,this,c));this.B.P(c,"adError",x(this.GD,this,c));this.B.P(c,"allAdsCompleted",v);this.B.P(c,"contentPauseRequested",v);this.B.P(c,"contentResumeRequested",v);c=rX(a,this.j.L,{},b);try{c.init("normal")}catch(d){c.destroy(),this.Yd(d)}}};
g.ID=function(a,b){this.B.removeAll();var c=b.getAd(),d=qW(c),e=this.A,f=u4(e);f.ad_man=d?"instream":"overlay";h5(e.j,12,f);e=a.getMediaUrl();switch(d?this.nf(a,c,e):this.nd(a,c)){case 0:m5(this);break;case 1:a.destroy();this.zc(Error("Unable to create a display state."));break;case 2:c=this.A;g5(c.j,21,u4(c));a.destroy();this.zc(Error("Fallback to next ad."));break;case 3:this.zc(Error("SpaceCast user skipping instream ad not hosted on YouTube."));break;default:a.destroy()}};
g.GD=function(a,b){this.B.removeAll();a.destroy();this.Yd(b.getError())};g.Jr=function(a){var b=a.getError();"adLoadError"==b.getType()&&a.A===this&&this.Yd(b)};g.JD=function(){n5(this)};function n5(a){var b=a.j.V();k4(b,"9417098")&&(a=a.A,b=u4(a),b.format="2_3",b.at="2_3",b.trsp="1",h5(a.j,3,b));z4()}g.nf=function(a,b,c){var d=s4(this.j)&&s4(this.j).spacecastModule;if(d&&c&&!this.M.test(c))return 3;k5(this,IW(b));j5(this,new Q4(this.eg(),this.j,a,vW(b),void 0,d));return 0};
g.nd=function(a,b){k5(this,IW(b));j5(this,new c5(this.eg(),this.j,a));return 0};g.Yd=function(a){if(a){var b=this.A,c=u4(b);a&&m4(a,c);g5(b.j,32,c);this.zc(a)}};g.zc=function(){o5(this.G)};function m5(a){var b=a.G,c=a.o;b.j=a.L;b.Qa=c;I(b,b.j);0==b.D&&(a=b.j.kf(),b.A.ca.at=a);b.j instanceof Q4?b.o=!0:b.j instanceof p5?b.isVisible=!1:b.j instanceof q5?b.isVisible=!1:b.j instanceof r5&&(b.isVisible=!1);b.B="loaded";s5(b)}
g.R=function(){this.C&&(this.C.ua("adsManagerLoaded",this.Kr,!1,this),this.C.ua("adError",this.Jr,!1,this));this.U.removeAll();this.B.removeAll();f5.N.R.call(this)};g.Ni=function(a,b){try{L1(a,b,this),ww("ar")}catch(c){this.Yd(c)}};function jfa(a){this.j=a};function p5(a){H4.call(this,a,2,3,null);this.A=this.C=0}B(p5,H4);p5.prototype.ne=function(){x4();this.O("adEnd",this);this.C=sj(x(this.D,this),1E3)};p5.prototype.R=function(){t5(this);p5.N.R.call(this)};function t5(a){a.C&&(uj(a.C),a.A=0)}p5.prototype.D=function(){var a=t("yt.www.watch.ads.isAfcAdVisible");this.A++;var b={};b.at=this.kf();10<=this.A||!a?(t5(this),this.O("AD_LOGGING_EVENT",2,b)):a()&&(t5(this),this.O("AD_LOGGING_EVENT",3,b))};function u5(a,b,c){f5.call(this,2,a,b,c);this.F=new jfa(this.j.o);y4()}B(u5,f5);u5.prototype.lk=function(){var a=u5.N.lk.call(this);a.jn=0==this.J;a.Tu=d5(this.j)?a.jn:!0;return a};u5.prototype.hd=function(){var a;var b=this.F;a=l5(this);(b=4==this.D&&b.j.afvInvideoAdTag?b.j.afvInvideoAdTag:b.j.afvAdTag)?(ua(b,"http:")&&(b=b.substr(5)),a=mk(b,{videoad_start_delay:a})):a="";return a};
u5.prototype.nd=function(a,b){if(this.j.o.j)return 1;1==this.o.j&&(i5(this),h5(this.j,1));return u5.N.nd.call(this,a,b)};u5.prototype.zc=function(a){var b=this.j.o;b.j?u5.N.zc.call(this,a):b.W||this.D&4?(j5(this,new p5(this.j)),m5(this)):u5.N.zc.call(this,a)};function v5(a,b,c){this.o=this.D="";this.G=null;this.B=!1;this.C=this.A="";a&&(this.D=a,this.B=b.ub,this.F=c,b=this.D,c=b.indexOf(";sz="),a=hk(b.substring(c),";"),b=b.substring(0,c).split("pfadx"),a=2!=b.length?null:{av:b[0],nB:b[1],pB:a})&&(this.A=a.av,this.C=a.nB,this.G=a.pB)}
v5.prototype.j=function(a,b){var c,d=[];b&1&&(c=0==a?"pre":-1==a?"post":"mid;pos="+this.F,d.push("480x360"));b&2&&(c=0==a?"pre":-1==a?"post":"mid;pos="+this.F,d.push("480x361"));b&12&&d.push("480x70");var e=[],f,h;b&12&&(e.push("300x250"),f="watch-channel-brand-div",h=1);0<(b&3)&&(e.push("300x60"),f="watch-longform-ad",h=1);var k=h;h=oc(this.G);c&&(h.pos=c);k&&null==h.tile&&(h.tile=k.toString());f&&null==h.kmyd&&(h.kmyd=f);e&&0<e.length&&this.B&&null==h.ciu_szs&&(h.ciu_szs=e.join(","));h.dcmt="text/xml";
null==h.ord&&(this.o||(this.o=Math.floor(999999999*Math.random()).toString()),h.ord=this.o);d&&d.length&&null!=h.sz&&"WIDTHxHEIGHT"==h.sz&&lc(h,"sz");e=ik(h,";");d&&d.length&&null==h.sz&&(e="sz="+d.join(",")+";"+e);return[this.A,"pfadx",this.C,";",e,"?"].join("")};function w5(a){this.o=a?a:""}w5.prototype.j=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 P(this.o),f=e.j,h=f.get("scp",""),h=h?h+"&":"";-1==h.indexOf("pos")&&f.set("scp",h+("pos="+c));f.set("vpos",d);return e.toString()}return this.o};function r5(a,b,c,d){c5.call(this,1,a,b,d);this.J=c}B(r5,c5);r5.prototype.zj=function(){};r5.prototype.Vc=function(){return"1_3"};r5.prototype.Bm=function(){1==this.J?this.O("AD_LOGGING_EVENT",2,{}):r5.N.Bm.call(this)};function x5(a,b,c){f5.call(this,1,a,b,c);a=this.j.o;this.T=a.ca?new w5(a.adTag):new v5(a.adTag,a,this.J)}B(x5,f5);x5.prototype.hd=function(){return this.T.j(h4(this.o),this.D)};
x5.prototype.nd=function(a,b){k5(this,IW(b));var c=sW(b);if(o4(c,f5.j))return 1==this.D||d5(this.j)||A4(),a.sendImpressionUrls(),this.j.o.H?(j5(this,new p5(this.j)),0):2;if(o4(c,"blockAllAds"))return a.sendImpressionUrls(),j5(this,new r5(this.j,a,1)),0;if(o4(c,"hideMaster"))return j5(this,new r5(this.j,a,0)),0;if(this.j.o.j)return 1;j5(this,new c5(this.eg(),this.j,a));return 0};function y5(a,b,c,d){x5.call(this,a,b,c|d);this.K=c;this.H=d;this.F=null;y4()}B(y5,x5);var kfa={GDFP:1,DART:1,DART_DFP:1,DART_DFA:1,ADSENSE:2,"ADSENSE/ADX":2};g=y5.prototype;g.hd=function(){if(this.j.o.ca){var a=new w5(this.j.o.dynamicAllocationAdTag);return a.j(h4(this.o),this.K)}a=new v5(this.j.o.dynamicAllocationAdTag,this.j.o,this.J);return a.j(h4(this.o),this.K)};g.Ni=function(a,b){if(this.H){b.A=p4(this.H);var c=this.j.o.ha;c&&(b.B=c);b.bh=l5(this)}y5.N.Ni.call(this,a,b)};
g.nf=function(a,b,c){z5(this,a);return 1!=this.F&&2!=this.F?1:y5.N.nf.call(this,a,b,c)};g.nd=function(a,b){z5(this,a);switch(this.F){case 1:return y5.N.nd.call(this,a,b);case 2:var c;this.j.o.j?c=1:(1==this.o.j&&(i5(this),h5(this.j,1)),k5(this,IW(b)),j5(this,new c5(2,this.j,a)),c=0);return c;default:return 1}};g.eg=function(){return this.F||0};function z5(a,b){var c=b.getCurrentAd(),d=LW(c);d.unshift(CW(c));for(c=0;c<d.length;++c){var e=kfa[d[c].toUpperCase()];if(e){a.F=e;return}}a.F=0}
g.zc=function(a){var b=this.j.o;b.j?y5.N.zc.call(this,a):b.W||this.H&4?(j5(this,new p5(this.j)),m5(this)):y5.N.zc.call(this,a)};/*
 Portions of this code are from MochiKit, received by
 The Closure Authors under the MIT license. All other code is Copyright
 2005-2009 The Closure Authors. All Rights Reserved.
*/
function A5(a,b){this.C=[];this.L=a;this.K=b||null;this.B=this.j=!1;this.A=void 0;this.H=this.M=this.F=!1;this.D=0;this.o=null;this.G=0}A5.prototype.cancel=function(a){if(this.j)this.A instanceof A5&&this.A.cancel();else{if(this.o){var b=this.o;delete this.o;a?b.cancel(a):(b.G--,0>=b.G&&b.cancel())}this.L?this.L.call(this.K,this):this.H=!0;this.j||(a=new B5,C5(this),D5(this,!1,a))}};A5.prototype.J=function(a,b){this.F=!1;D5(this,a,b)};function D5(a,b,c){a.j=!0;a.A=c;a.B=!b;E5(a)}
function C5(a){if(a.j){if(!a.H)throw new F5;a.H=!1}}A5.prototype.Mh=function(a){C5(this);D5(this,!0,a)};function G5(a,b,c){H5(a,b,null,c)}function H5(a,b,c,d){a.C.push([b,c,d]);a.j&&E5(a)}A5.prototype.then=function(a,b,c){var d,e,f=new Sd(function(a,b){d=a;e=b});H5(this,d,function(a){a instanceof B5?f.cancel():e(a)});return f.then(a,b,c)};Qd(A5);function I5(a){return ob(a.C,function(a){return ha(a[1])})}
function E5(a){if(a.D&&a.j&&I5(a)){var b=a.D,c=J5[b];c&&(m.clearTimeout(c.hi),delete J5[b]);a.D=0}a.o&&(a.o.G--,delete a.o);for(var b=a.A,d=c=!1;a.C.length&&!a.F;){var e=a.C.shift(),f=e[0],h=e[1],e=e[2];if(f=a.B?h:f)try{var k=f.call(e||a.K,b);p(k)&&(a.B=a.B&&(k==b||k instanceof Error),a.A=b=k);if(Rd(b)||"function"===typeof m.Promise&&b instanceof m.Promise)d=!0,a.F=!0}catch(l){b=l,a.B=!0,I5(a)||(c=!0)}}a.A=b;d&&(k=x(a.J,a,!0),d=x(a.J,a,!1),b instanceof A5?(H5(b,k,d),b.M=!0):b.then(k,d));c&&(b=new K5(b),
J5[b.hi]=b,a.D=b.hi)}function F5(){sa.call(this)}B(F5,sa);F5.prototype.message="Deferred has already fired";F5.prototype.name="AlreadyCalledError";function B5(){sa.call(this)}B(B5,sa);B5.prototype.message="Deferred was canceled";B5.prototype.name="CanceledError";function K5(a){this.hi=m.setTimeout(x(this.o,this),0);this.j=a}K5.prototype.o=function(){delete J5[this.hi];throw this.j;};var J5={};function L5(a,b){var c=b.o;this.F=c.na;var d=0,c=c.X.toUpperCase();"INVIDEO"==c?d=4:"INSTREAM"==c?d=1:"MPU"==c&&(d=8);f5.call(this,2,a,b,d)}B(L5,f5);L5.o="https://www.googleapis.com/urlshortener/v1/url?key=AIzaSyBbSB-E7SYd1iggX6r2b5C7ljvO6fVqaj0&shortUrl=";L5.A="43";
L5.j=function(a){var b=new A5;wk(a,{format:"RAW",method:"GET",timeout:5E3,withCredentials:!0,$d:function(){var c=Error(a+" timed out");C5(b);D5(b,!1,c)},onError:function(c){c=Error("Problem loading "+a+" with status code "+c.status);C5(b);D5(b,!1,c)},kb:function(a){b.Mh(a)}});return b};L5.prototype.hd=function(){return""};
L5.prototype.Ni=function(a,b){var c=this.D;c&1||c&4||c&8?this.F?c&8?bfa(this.F):("goo.gl"==lh(this.F)?(c=L5.j(L5.o+this.F),G5(c,function(a){a=ve(a.responseText);if(!a)throw Error("Invalid expanded forced ad URL.");if(!a.longUrl)throw Error("Missing forced ad URL information.");a=new P(a.longUrl);Qh(a,"video_format",L5.A);return L5.j(a.toString())},this)):c=L5.j(this.F),G5(c,function(c){b.o=c.responseText;L1(a,b,this)},this),H5(c,null,this.Yd,this)):this.Yd(Error("Invalid empty URL")):this.Yd(Error("Invalid request type: "+
c))};function M5(a,b){H4.call(this,a,14,14,b)}B(M5,H4);M5.prototype.ne=function(){var a=s4(this.j).videoId;if(a){var b=this.o.getCurrentAd();NH(this.j.V().H,a,{te:eX(b)||null,Rf:fX(b)||null,Wh:!1});a={};a.format=this.Vc();a.at=this.kf();n4(b,a);this.O("AD_LOGGING_EVENT",3,a)}};function N5(a,b,c){f5.call(this,14,a,b,c)}B(N5,f5);N5.prototype.hd=function(){return this.j.o.Xa||""};N5.prototype.nd=function(a,b){k5(this,IW(b));j5(this,new M5(this.j,a));5!=this.o.j&&n5(this);return 0};N5.prototype.nf=function(){return 1};function O5(a,b,c){f5.call(this,14,a,b,c)}B(O5,N5);O5.prototype.hd=function(){return this.j.o.na||""};function lfa(a,b,c,d,e){this.B=a;this.A=b;this.j=c;this.C=this.B.V();this.D=d;this.G=s4(this.B).lengthSeconds;this.F=e;this.o="html5";P5(this)&&"embedded"==this.C.Aa?this.o="html5_embed":Ji||Ki?this.o="html5_ios":Gu("android")?this.o="html5_android":Nu()?this.o="html5_wp":Iu()?this.o="html5_ps3":"leanback"==this.C.Aa?(a=(fc(window,"environment","brand")||"").toLowerCase(),b=(fc(window,"environment","model")||"").toLowerCase(),this.o="roku"==a||"bskyb"==a?"roku":"wiiu"==b?"wii":"html5_tv_leanback"):
Mu()?this.o="html5_wii":P5(this)&&(this.o="html5_desktop")}function Q5(a){return R5(a.A)?"preroll":3==a.A.Qa.j?"postroll":"midroll"}function S5(a){return(a=a.B.A)?ob(a.A,function(a){return T5(a)||3==a.Qa.j}):!1}function P5(a){return!S5(a)||i4(a.C,a.j)};function q5(a,b){c5.call(this,4,a,b)}B(q5,c5);q5.prototype.zj=function(){};q5.prototype.Vc=function(){return"4_3"};function U5(a,b,c){f5.call(this,4,a,b,c);var d=this.j.o;this.F=D(d.Ta);var e=s4(this.j)&&s4(this.j).spacecastModule;this.H=new lfa(b,a,d,c,!!e)}B(U5,f5);
U5.prototype.hd=function(){var a;if(C(this.F)||0!=h4(this.o)){var b=this.H;if(b.j.ea&&b.j.Ca){a={};var c="youtube_watch_"+b.o;a.nw="10613";a.asnw=b.j.ea;a.ssnw=b.j.ea;a.caid=b.j.Ca;a.vdur=b.G;a.csid=c;a.resp="vast2";a.metr="121";c={};isNaN(b.j.Da)||(c._fw_d_001=b.j.Da);b.j.gender&&(c._fw_d_002=b.j.gender);b.j.za&&(c["_fwu:10613:lang"]=b.j.za);b.j.ia&&(c._fw_dbp=b.j.ia);b.j.ga&&(c._fw_distributorvideoassetid=b.j.ga);c._fw_yt_type=S5(b)?"long":"short";if(P5(b)){a.prof=S5(b)?"10613:youtube_html5_w_midroll":
"10613:10613_youtube_html5_2014";a.crtp="youtube";a.flag=R5(b.A)?"+slcb+qtcb+amcb+exvt+emcr":"+slcb+qtcb+amcb+emcr";var d="",e;if(b.D&1&&!b.F){e={};d=Q5(b);if(T5(b.A)){var f;if(T5(b.A)){f=0;var h=b.B.A;if(h)for(var h=h.A,k=0;k<h.length&&(T5(h[k])&&f++,h[k].getId()!=b.A.getId());k++);}else f=0;d=d+f}e.slid=d;e.ptgt="a";e.slau=Q5(b);e.tpos=h4(b.A.Qa).toString();d=ik(e,"&")+";";e={slid:"page_display1",w:"300",h:"60",ptgt:"s",slau:"display",flag:"+cmpn"};d+=ik(e,"&")+";"}b.D&4&&(e={slid:"overlay",ptgt:"a",
slau:"overlay",tpos:"10"},d+=ik(e,"&")+";",e={slid:"page_display2",w:"300",h:"250",ptgt:"s",slau:"display",flag:"+cmpn"},d+=ik(e,"&")+";");b.D&8&&(e={slid:"dis",w:"300",h:"250",ptgt:"s",slau:"display",flag:"+cmpn"},d+=ik(e,"&")+";");b=d.substr(0,d.length-1);a="//2975c.v.fwmrm.net/ad/g/1?"+ik(a,"&")+";"+ik(c,"&")+";"+b}else e="10613:10613_youtube_"+b.o.split("_")[0],a.prof="10613:10613_youtube_"+b.o,a.crtp="vast2s",a.flag="+emcr",d={},b.F||(d.ptgt="a",d.slid="preroll",d.slau=Q5(b),d.w="480",d.h="360",
d.tpos="0",d.tpcl="preroll",d.envp=e,d.cd="1440,900"),a="//2975c.v.fwmrm.net/ad/g/1?"+ik(a,"&")+";"+ik(c,"&")+";"+ik(d,"&")}else a=""}else a=this.F;return a};U5.prototype.nf=function(a,b){return U5.N.nf.call(this,a,b,null)};
U5.prototype.nd=function(a,b){var c=sW(b);if(o4(c,f5.j))return this.G.C=nc(a),2;if(this.j.o.j)return 1;if(o4(c,"hideMaster")){if(a.F&&a.F.Ae()){var c=a.F.Ae(),d;d=a.getCurrentAd();if(DM()){var e=d.H;d.H=[];d=e}else d=[];c.impressionUrls=d}j5(this,new q5(this.j,a));return 0}return U5.N.nd.call(this,a,b)};function V5(a,b,c){this.A=a;this.j=b;this.o=c||0}V5.prototype.getType=function(){return this.A};V5.prototype.create=function(a,b){switch(this.A){case 1:return new u5(a,b,this.j);case 2:return new x5(a,b,this.j);case 3:return new y5(a,b,this.j,this.o);case 5:return new U5(a,b,this.j);case 4:return new L5(a,b);case 7:return new N5(a,b,this.j);case 8:return new O5(a,b,this.j);default:return null}};function mfa(a){return 0<((a.j|a.o)&3)};function W5(a,b,c,d,e){Mk.call(this);this.G=!0;this.o=!1;this.isVisible=!0;this.B="unloaded";this.H=!1;this.D=b;this.A=a;this.Qa=c;this.F=d;this.C=this.j=null;this.J=!!e}B(W5,Mk);function X5(a){return R5(a)?Y5(a)&&Z5(a)?-0x8000000000000:0:ga(a.Qa.o)?1E3*h4(a.Qa):0x8000000000000}function nfa(a){return R5(a)||a.A.j&&1E3*a.A.j.getCurrentTime()>=X5(a)?!1:pb(a.F,function(a){switch(a.getType()){case 1:case 2:case 3:return!0;default:return!1}})}function Y5(a){return"loaded"==a.B||"error"==a.B}
function R5(a){return 1==a.Qa.j}function Z5(a){if(!Y5(a))throw Error("Preroll status is undefined before ad load.");return R5(a)&&a.o}function T5(a){return 2==a.Qa.j}function o5(a){a.B="loading";R5(a)&&!ob(a.F,mfa)&&pr(a.A);if(a.J)a.B="loaded",a.o=!0,s5(a);else{var b=a.F.shift();b?(R5(a)&&$5(a.A,"nl"),b=b.create(a,a.A),I(a,b),b.load()):(h5(a.A,2,a6(a,{})),b6(a,!1),a.B="error",s5(a))}}g=W5.prototype;g.getId=function(){return this.D};
function c6(a){a.j&&(a.j.unsubscribe("adEnd",a.cp,a),a.j.unsubscribe("adError",a.Ir,a),a.j.unsubscribe("AD_LOGGING_EVENT",a.wp,a),a.j.unsubscribe("select",a.Hr,a))}function s5(a){a.O("adBreakComplete",a)}function d6(a){a.H?a.j instanceof c5&&e5(a.j,"normal"):(a.H=!0,a.j instanceof Q4&&$5(a.A,"bs"),a.j.subscribe("adEnd",a.cp,a),a.j.subscribe("adError",a.Ir,a),a.j.subscribe("AD_LOGGING_EVENT",a.wp,a),a.j.subscribe("select",a.Hr,a),a.j.ne(),b6(a,!0))}
function b6(a,b){a.C&&(a.C.sendImpressionUrls({FILLED_OPPORTUNITY:b?1:0}),a.C.dispose(),a.C=null)}g.cp=function(){this.o&&(c6(this),e6(this.A));s5(this)};g.Ir=function(a){if(a){var b={};m4(a,b);a6(this,b);g5(this.A,32,b)}c6(this);s5(this)};g.wp=function(a,b){a6(this,b);h5(this.A,a,b)};g.Hr=function(){this.G=!1};function a6(a,b){b.break_type=a.Qa.j;b.sst=h4(a.Qa);b.sidx=0;return b}g.R=function(){c6(this);this.j=null;null!=this.C&&(this.C.dispose(),this.C=null);W5.N.R.call(this)};function f6(a){var b=0;a.K&&(b|=1);a.J&&(b|=2);var c=0;a.C&&(a.F&&(c=4),b||a.S||(b=c,c=0));a=new Yg;a.set(3,b);a.set(4,c);return a}
function g6(a,b){var c=[];if(a.Ga)return c.push("pla"==(a.X||"").toLowerCase()?new V5(8,16):new V5(4,0)),c;if(a.independentBreakOffsets&&5==b)return a.S&&c.push(new V5(7,16)),c;if(a.L){var d=0;if(a.A||a.D)d|=1;a.M&&(d|=4);a.U&&(d|=8);c.push(new V5(5,d))}d=0;a.G&&(a.A&&(d|=1),a.D&&(d|=2),a.M&&a.C&&(d|=4),a.U&&a.C&&(d|=8));var e=f6(a),f=e.get(3);d&&f&&ofa(a,b)?c.push(new V5(3,d,f)):(d&&c.push(new V5(2,d)),f&&c.push(new V5(1,f)));a.independentBreakOffsets||f&4||!a.S||c.push(new V5(7,16));(d=e.get(4))&&
c.push(new V5(1,d));return c};function h6(a){this.j=a}var i6=[new f4(1)];function j6(a){var b=[];E(pfa(a),function(a,d){var e=this.j,f;f=g6(this.j.o,a.j);e=new W5(e,d,a,f);b.push(e)},a);return b}
function pfa(a){var b=a.j.o,c=[];if(b.L&&!i4(a.j.V(),b))c=i6;else if(b.fa){var d=b.fa.split(",");for(a=0;a<d.length;a++){var e=bb(d[a]),e=0>e?new f4(3):0<e?new f4(2,e):new f4(1);c.push(e)}}else c=i6;if(b.independentBreakOffsets)for(b=b.independentBreakOffsets.split(","),a=0;a<b.length;a++)c.push(new f4(5,bb(b[a])));Kb(c,Zea);return c};function qfa(a,b){this.Na=a;this.aa=this.Na.isMobile;this.B="leanback"==this.Na.Aa;this.j=this.aa||this.B;this.T=!this.B&&!WH(a);this.A=l4(b.instream);this.La=1==b.livestream;this.D=l4(b.trueview);this.Z=l4(b.aftv);this.fa=b.ad_slots;this.independentBreakOffsets=b.independent_break_offsets;this.adFlags=b.ad_flags||0;this.ha=b.cafe_experiment_id;this.adTag=b.ad_tag;this.ob=!!b.adtest;this.afvAdTag=b.afv_ad_tag;this.Pa=rfa(this.afvAdTag);this.afvInvideoAdTag=b.afv_invideo_ad_tag;this.Da=parseInt(b.ad_age,
10);this.applyFadeOnMidrolls=!!b.apply_fade_on_midrolls;this.Sa=b.cid;this.ga=b.docid||b.video_id||b.videoId;this.dynamicAllocationAdTag=b.dynamic_allocation_ad_tag;this.excludedAds=b.excluded_ads;this.fadeInDurationMilliseconds=parseInt(b.fade_in_duration_milliseconds,10)||0;this.fadeInStartMilliseconds=parseInt(b.fade_in_start_milliseconds,10)||0;this.fadeOutDurationMilliseconds=parseInt(b.fade_out_duration_milliseconds,10)||0;this.fadeOutStartMilliseconds=parseInt(b.fade_out_start_milliseconds,
10)||0;this.Ea=parseInt(b.forced_skip_offset,10);this.X=b.force_ad_type;this.na=b.force_ad_url;this.Ta=b.freewheel_ad_tag;this.gender=ic(sfa,function(a){return a==b.ad_gender});this.ia=b.dbp;this.H=l4(b.afc_rm_fallback);this.ub=!!b.mpu;this.F=l4(b.afv)&&!this.j;this.J=this.Z&&this.D;this.K=this.Z&&this.A&&!l4(b.no_afv_instream);this.G=l4(b.dclk);this.ca=l4(b.gpt_migration);this.Ga=l4(b.forced_ad)&&!this.j;this.L=1==parseInt(b.tpas_ad_type_id,10);this.vb=!!b.fqsf;this.M=l4(b.invideo)&&!this.j;this.U=
l4(b.mpu)&&!this.j;tb(this.Pa,"yt_mabv");this.S=!!b.pla;this.Wa=l4(b.shortform);this.C=l4(b.sffb);this.za=b.ad_language_iso639_2;this.maxDynamicAllocationAdTagLength=parseInt(b.max_dynamic_allocation_ad_tag_length,10);isNaN(this.maxDynamicAllocationAdTagLength)&&(this.maxDynamicAllocationAdTagLength=2E3);this.o=parseInt(b.midroll_freqcap,10);isNaN(this.o)&&(this.o=-1);this.midrollPrefetchSize=parseInt(b.midroll_prefetch_size,10)||0;this.Xa=b.pla_ad_tag;"boolean"==typeof b.show_content_thumbnail&&
(this.showContentThumbnail=b.show_content_thumbnail);this.tagForChildDirected=l4(b.tag_for_child_directed);this.serverPrefetchedVast=b.server_prefetched_vast;this.surveyCreativeData=b.surveyCreativeData;this.W=this.Z&&this.C&&!this.F;this.wa=this.F||this.W;this.fb=parseInt(b.ad_device,10);this.Ca=b.tpas_video_id;this.ea=b.tpas_partner_id;this.vmap=b.vmap;this.Cb=this.Na.Cb;this.wb=b.post_ad_requests;this.showContentThumbnail=!0}var sfa={au:"m",Gt:"f"};
function ofa(a,b){if(C(D(a.dynamicAllocationAdTag)))return!1;var c=(a.A||a.D)&&a.G;a.C&&a.G&&(c=c||a.M||a.U);if(!c)return!1;c=a.J||a.K;if(!(c||a.C&&a.F))return!1;if(1==b&&a.serverPrefetchedVast)return!0;var d=a.dynamicAllocationAdTag.length+330+(a.ca?25:102);window.document.referrer&&(d+=za("ref="+za(window.document.referrer)).length);c||(d+=41);return d<=a.maxDynamicAllocationAdTagLength}function rfa(a){if(C(D(a)))return[];a=(new P(a)).j.get("channel");return null!=a?a.split("+"):[]};function tfa(a){this.o=s4(a);this.j=a.V()}var k6=["9412857","9412859"];function l6(a,b,c){var d=k6,d=null!=d?d:k6;if(j4(a.j,d)){var e=a.j.baseYtUrl+"player_204";c=c||{};c.event="cdp";c["var"]=b;c.sdkv="h.3.0.0";c.cpn=a.o.clientPlaybackNonce;c.exp=lb(d,Cd(pa(k4,a.j),pa(tb,k6))).join(",");a=mk(e,c);br(a)}};function m6(a){H.call(this);this.j=a;this.o=NaN;this.C={};a=a.o;this.D=a.fadeInDurationMilliseconds;this.F=a.fadeInStartMilliseconds;this.A=a.fadeOutDurationMilliseconds;this.B=a.fadeOutStartMilliseconds;this.Iq()}B(m6,H);g=m6.prototype;g.Iq=function(){this.j.subscribe("beginseeking",this.Th,this)};g.Eq=function(a,b){return a.o&&T5(a)?b+this.B+this.A:b};g.Dq=function(a,b){return a.o&&3!=a.Qa.j&&0x7ffffffffffff!=b&&0x8000000000000!=b?b+this.B+this.A:b};
g.fn=function(a){if(a.o&&T5(a)&&!(0>=this.A)){var b={priority:2,id:String(a.getId()),style:"ytp-ad-fadeout"},c=X5(a)+this.B,b=new hr(c,c+this.A-1,b);this.C[a.getId()]=b;this.j.gb([b])}};function n6(a,b){a.C[b]&&(GJ(a.j.j,[a.C[b]],void 0),delete a.C[b])}g.Tr=function(a){a.o&&T5(a)&&(n6(this,a.getId()),this.Th())};g.Th=function(){isNaN(this.o)||(tj(this.o),this.o=NaN);var a=o6(this.j);a.volume=this.j.app.Ya.Eb()/100;og(a,"transition","");og(a,"opacity","1")};
g.Ur=function(a){var b=X5(a)+this.B+this.A,b=50>=1E3*this.j.getCurrentTime(1)-b;a.o&&T5(a)&&b&&(a=.001*(X5(a)+this.F),this.j.O("command_seek",a),0>=this.D||(a=o6(this.j),og(a,"opacity","0"),a.volume=0,qj(x(this.RD,this),0)))};g.RD=function(){var a=o6(this.j);og(a,"transition","opacity "+String(this.D)+"ms linear");og(a,"opacity","1");p6(this,a,this.D,1)};function p6(a,b,c,d){0>=c||(isNaN(a.o)||tj(a.o),c=A()+c,a.o=0==d?Dr(x(a.Sr,a,b,c,100),0):Dr(x(a.Rr,a,b,c,100),0))}
g.Sr=function(a,b,c){if(!isNaN(this.o)){var d=Math.max(1,b-A()),d=Math.max(0,a.volume+-1*a.volume*c/d);a.volume=d;this.o=0<d?Dr(x(this.Sr,this,a,b,c),c):NaN}};g.Rr=function(a,b,c){if(!isNaN(this.o)){var d=Math.max(1,b-A()),e=this.j.app.Ya.Eb()/100,d=Math.min(e,a.volume+(e-a.volume)*c/d);a.volume=d;this.o=d<e?Dr(x(this.Rr,this,a,b,c),c):NaN}};g.R=function(){this.Th();this.j.unsubscribe("beginseeking",this.Th,this)};function q6(a){m6.call(this,a)}B(q6,m6);g=q6.prototype;g.Iq=v;g.Eq=function(a,b){return b};g.Dq=function(a,b){return b};g.fn=v;g.Tr=v;g.Ur=v;g.R=v;function r6(a){if(!/^\d+?(:\d+){0,2}(\.\d+)?$/.test(a))return null;var b=0;E(a.split(":"),function(a){b=60*b+Math.abs(parseFloat(a))});return 1E3*b};function s6(a){H.call(this);this.j=a;this.o=0;this.A={};this.C={};a=a.o;this.D=a.fadeInDurationMilliseconds;this.G=a.fadeInStartMilliseconds;this.H=a.fadeOutDurationMilliseconds;this.B=a.fadeOutStartMilliseconds;this.J=1E3*this.j.j.getVideoData().lengthSeconds;this.F=this.B+this.H;this.hn()}B(s6,H);g=s6.prototype;g.hn=function(){this.j.app.subscribe("applicationplayerstatechange",this.Je,this)};function t6(a,b){return 0!=b&&-1!=b&&-2!=b&&0<b&&b<a.J}g.Rn=function(){return 4-this.B/1E3};
g.Zi=function(a){return gc(this.A,1E3*a)?this.A[1E3*a]/1E3:a};function ufa(a){a=a.getAttribute("breakType");return!!a&&ob(a.split(","),function(a){a=ya(a);return"linear"==a})}function vfa(a,b){if(!t6(a,b))return null;var c,d=3;c=!0;d=d?d:0;c=c?c:!1;var e=parseFloat(Va(b/1E3,2,d)),f=Math.floor(e/60),h=Math.floor(f/60),f=f%60,d=Va(e%60,2,d);c=d=h||c?h+":"+Va(f,2)+":"+d:f+":"+d;return 1==c.split(":")[0].length?"0".concat(c):c}
g.bq=function(a){var b=!1,c={};E(a.childNodes,x(function(a){var e;if(e=(e=a.getAttribute("timeOffset"))?r6(e):null)b=b||ufa(a),c[e]=a},this));if(!b||0==$b(c))return!1;a=F(ec(c),function(a){return parseInt(a,10)});if(!wfa(this,a))return!1;Wb(c,x(function(a,b){var c=parseInt(hc(this.A,function(a){return a==b}),10);c&&a.setAttribute("timeOffset",vfa(this,c))},this));return!0};
function wfa(a,b){var c=Math.max(Math.abs(a.B),Math.abs(a.F));E(b,x(function(a){var e=ob(b,function(b){return a!=b&&b>=a-c&&b<=a+c}),f=xfa(this,a);if(e||!f)return!1;this.A[f]=a},a));return 0<$b(a.A)}function xfa(a,b){var c=1E3*Math.round((b+a.F)/1E3),d=b+a.B,e=b+a.G;return t6(a,b)&&t6(a,c)&&t6(a,d)&&t6(a,e)?c:null}
g.gn=function(a){if(!(0>=this.H)){var b=[];E(a,x(function(a){if(gc(this.A,1E3*a)){var d=new hr(1E3*this.Zi(a)+this.B,1E3*a+500,{priority:2,id:String(a),style:"ytp-ad-fadeout"});this.C[a]=d;b.push(d)}},this));this.j.gb(b)}};g.Zr=function(a){if(gc(this.A,1E3*a)){var b=o6(this.j);a=Math.max(0,1E3*a-1E3*this.j.getCurrentTime(1));og(b,"transition","opacity "+String(a)+"ms linear");og(b,"opacity","0");u6(this,b,a,0)}};
g.$r=function(a){t6(this,1E3*a)&&(this.C[a]&&(GJ(this.j.j,[this.C[a]],void 0),delete this.C[a]),this.nh())};g.Je=function(){U(FA(this.j.j),4)&&this.nh()};g.nh=function(){this.o&&(tj(this.o),this.o=0);var a=o6(this.j);a.volume=this.j.app.Ya.Eb()/100;og(a,"transition","");og(a,"opacity","1")};
g.bs=function(a){if(gc(this.A,1E3*a)){var b=1E3*a;200>=1E3*this.j.getCurrentTime(1)-b&&(this.j.O("command_seek",this.Zi(a)+this.G/1E3),0>=this.D||(a=o6(this.j),og(a,"opacity","0"),a.volume=0,qj(x(this.YD,this),0)))}};g.YD=function(){var a=o6(this.j);og(a,"transition","opacity "+String(this.D)+"ms linear");og(a,"opacity","1");u6(this,a,this.D,1)};function u6(a,b,c,d){0>=c||(a.o&&tj(a.o),c=A()+c,a.o=0==d?Dr(x(a.Yr,a,b,c,100),0):Dr(x(a.Xr,a,b,c,100),0))}
g.Yr=function(a,b,c){if(this.o){var d=Math.max(1,b-A()),d=Math.max(0,a.volume+-1*a.volume*c/d);a.volume=d;this.o=0<d?Dr(x(this.Yr,this,a,b,c),c):0}};g.Xr=function(a,b,c){if(this.o){var d=Math.max(1,b-A()),e=this.j.app.Ya.Eb()/100,d=Math.min(e,a.volume+(e-a.volume)*c/d);a.volume=d;this.o=d<e?Dr(x(this.Xr,this,a,b,c),c):0}};g.R=function(){this.nh();this.j.unsubscribe("applicationplayerstatechange",this.Je,this)};function v6(a){s6.call(this,a)}B(v6,s6);g=v6.prototype;g.hn=v;g.Rn=function(){return 4};g.Zi=function(a){return a};g.bq=function(){return!1};g.Zr=v;g.gn=v;g.nh=v;g.$r=v;g.bs=v;g.R=v;function w6(a,b){var c=a.o,c=c.applyFadeOnMidrolls&&(c.A||c.D);return a.B?c&&!b?new s6(a):new v6(a):c&&!b?new m6(a):new q6(a)};function x6(a,b,c){H.call(this);this.j=a;this.D=b;this.C=c;this.B=this.o=-1;this.C&&0<this.j.o.o&&this.j.subscribe("endseeking",this.A,this)}B(x6,H);function yfa(a,b){y6(a);0<b&&(a.B=qj(x(a.A,a),1E3*b))}function y6(a){-1!=a.B&&(tj(a.B),a.B=-1)}
x6.prototype.A=function(){var a=this.j.o.o;if(this.C&&!(0>=a)){var b=this.j.j.getCurrentTime(),c=[],d=null,e=Number.MAX_VALUE;Wb(this.D.B,function(a){a.isDisposed();if(a.isVisible&&!(0>=z6(this,a))){var f;f=a.getId();f=this.D.F[f];if(z6(this,a)>b){var l=!A6(this,a);l!=f.visible&&(f.visible=l,c.push(f));l||(f=z6(this,a)-b,f<e&&(e=f,d=a))}else f.visible||(f.visible=!0,c.push(f))}},this);0<c.length&&this.j.j.gb(c,1);if(d){var f=0;0<this.o&&(f=A()/1E3-this.o);yfa(this,a-f-e+2)}else y6(this)}};
function A6(a,b){if(!a.C||!T5(b)&&3!=b.Qa.j)return!1;var c=a.j.o.o;if(0>=c||0>=a.o)return!1;var d=A()/1E3,e=z6(a,b)-a.j.j.getCurrentTime();0<e&&(d+=e);return d-a.o<=c}function z6(a,b){return 3==b.Qa.j?a.j.j.getVideoData().lengthSeconds:h4(b.Qa)}x6.prototype.R=function(){y6(this);this.j.unsubscribe("endseeking",this.A,this)};function B6(a,b){H.call(this);this.o=null;this.U=[];this.K=0;this.A=b;this.H=[];this.B={};this.F={};this.j=a;var c=!a.o.La&&ob(this.A,function(a){return T5(a)||3==a.Qa.j});this.D=new x6(this.j,this,c);this.C=w6(this.j);this.X=ob(this.A,function(a){return R5(a)})}B(B6,H);function zfa(a){a.H.length||(a.H=lb(a.A,function(a){return"unloaded"==a.B}),0==a.H.length?pr(a.j):(a.X||pr(a.j),C6(a)))}function C6(a){if(a.H.length){var b=a.H.shift();b.subscribe("adBreakComplete",a.Df,a);o5(b)}}g=B6.prototype;
g.Df=function(a){a.unsubscribe("adBreakComplete",this.Df,this);this.K=qj(x(this.Hx,this,a),0)};
g.Hx=function(a){var b=Afa(this,a),c=b.previous,b=b.next;this.K=0;var d,e=!1;switch(a.Qa.j){case 5:d=0x7ffffffffffff;e=!0;break;case 3:d=0x8000000000000;break;default:d=b&&ga(b.Qa.o)?X5(b)-1:0x7ffffffffffff}0==a.D&&($5(this.j,"bl"),Z5(a)||$5(this.j,"fb"));"loaded"!=a.B||0==a.D&&Z5(a)&&b&&1E3*this.j.j.getCurrentTime()>=X5(b)?(c&&Y5(c)&&!e&&(b=d,d=X5(c),d>b&&(b=d),D6(this,c),E6(this,c,b)),this.ye(a)):(this.B[a.getId()]=a,E6(this,a,d),pr(this.j));$b(this.B)==this.A.length&&this.D.A();C6(this)};
function Afa(a,b){function c(a){return a&&5!=a.Qa.j}var d=jb(a.A,b),e=Eb(a.A,0,d),d=Eb(a.A,d+1);return{previous:G(e,c),next:G(d,c)}}function E6(a,b,c){var d=X5(b);if(!isNaN(d)){var e={};e.priority=-2!=h4(b.Qa)?2:3;e.id=String(b.getId());e.visible=b.isVisible;d=a.C.Eq(b,d);c=a.C.Dq(b,c);c=new hr(d,c,e);a.F[b.getId()]=c;a.j.gb([c]);a.C.fn(b)}}function D6(a,b){var c=b.getId();a.F[c]&&(n6(a.C,c),GJ(a.j.j,[a.F[c]],void 0),delete a.F[c])}
g.ye=function(a){a.unsubscribe("adBreakComplete",this.Df,this);this.o&&a==this.o&&(this.o=null);D6(this,a);xb(this.A,a);delete this.B[a.getId()];Ub(a)};g.oq=v;
function F6(a,b){if(p(b)){var c=a.yj(b);if(c)if(a.o==c&&!c.o&&c.isVisible)d6(c);else{if(a.o){if(5==c.Qa.j){a.o.o?a.U.push(b):d6(c);return}a.ye(a.o)}if(A6(a.D,c))a.o=null,c=a.F[c.getId()],c.visible||(c.visible=!0,a.j.j.gb([c],1)),a.j.V()&&(k4(a.j.V(),"9412857")||k4(a.j.V(),"9412859"))&&a.oq();else{5!=c.Qa.j&&(a.o=c);c.subscribe("adBreakComplete",a.ll,a);if(c.o&&(G6(a.j),null!=a.j.C)){var d=a.D.o,d=0<d?Math.floor(A()/1E3-d):0;l6(a.j.C,"show_instream_ads",{tfla:d})}a.C.Tr(c);d6(c)}}}}g.yj=function(a){return this.B[a]};
g.ll=function(a){if(a.o){if(3!=a.Qa.j&&a.G){var b=this.j;H6(b);vr(b);this.C.Ur(a)}else Z5(a)&&!a.G?(b=this.j,H6(b),vr(b)):H6(this.j);this.ye(a);null!=this.j.C&&(a=this.D.o,a=0<a?Math.floor(A()/1E3-a):0,l6(this.j.C,"set_previous_ad_end_time",{tfla:a}));a=this.D;a.C&&0<a.j.o.o&&(a.o=A()/1E3,a.A());for(;!ub(this.U);)F6(this,this.U.shift())}else a.isVisible||this.ye(a)};g.R=function(){this.K&&tj(this.K);Ub(this.C);Ub(this.D);E(this.A,this.ye,this);B6.N.R.call(this)};function I6(a,b,c){B6.call(this,a,b);this.L=[];this.M=[];this.G=[];this.T=c;this.J=0;this.S=a.o.o;if(1<=c)for(a=0;a<b.length;a++)if(c=b[a],nfa(c)){var d=new W5(c.A,c.D,c.Qa,c.F,!0);b[a]=d;this.L.push(c)}this.X||this.Ff()}B(I6,B6);g=I6.prototype;
g.yj=function(a){a=I6.N.yj.call(this,a);if(!a)return null;if(!a.J)return a;var b;b=null;if(this.G.length){var c=b=this.G.shift();c.Qa=a.Qa;c.D=a.getId()}b&&"loaded"==b.B?(a.unsubscribe("adBreakComplete",this.Df,this),this.B[a.getId()]=b,this.A[this.A.indexOf(a)]=b,Ub(a)):(this.Ff(),b&&(Ub(b),b=null),this.ye(a));b&&!b.o&&this.Ff();return b};g.Df=function(a){!R5(a)||"loaded"==a.B&&a.o||this.Ff();I6.N.Df.call(this,a)};g.ll=function(a){a.o&&10<this.S?J6(this):this.Ff();I6.N.ll.call(this,a)};
g.Ff=function(){if(!this.isDisposed())for(K6(this);this.L.length&&this.M.length+this.G.length<this.T;){var a=this.L.shift();a.subscribe("adBreakComplete",this.bp,this);this.M.push(a);o5(a)}};g.oq=function(){J6(this)};function J6(a){K6(a);a.J=qj(x(a.Ff,a),1E3*(a.S-10))}g.bp=function(a){a.unsubscribe("adBreakComplete",this.bp,this);xb(this.M,a);this.G.push(a)};g.R=function(){K6(this);E(this.M,Ub);E(this.G,Ub);E(this.L,Ub);I6.N.R.call(this)};function K6(a){a.J&&tj(a.J);a.J=0};function L6(a,b){B6.call(this,a,b);this.S=a;this.T=!0;this.J=[];this.ca=1;this.aa=null;this.L=0}B(L6,B6);L6.prototype.Wg=function(a){this.aa=a};L6.prototype.getVideoData=function(){return this.aa};L6.prototype.W=function(a){"loaded"==a.B&&this.J.push(a);a.unsubscribe("adBreakComplete",this.W,this)};function M6(a){if(null==a.o&&0<a.J.length){var b=a.J[0];b.isVisible?(a.T=a.G.K,a.Z=Math.ceil(A()/1E3),b.subscribe("adBreakComplete",a.M,a),a.o=b,d6(b)):a.M()}else null!=a.o&&a.L++}
L6.prototype.M=function(){if(null!=this.o&&0<this.J.length){var a=this.J.shift();delete this.B[h4(a.Qa)];var b=Math.floor(A()/1E3)-this.Z;this.Z=null;a.unsubscribe("adBreakComplete",this.M,this);this.ye(a);this.o=null}0<this.L?(this.L--,M6(this)):(a=this.S,H6(a),vr(a),isFinite(b)&&(this.T?S3(this.G,Infinity,!0):S3(this.G,this.G.getCurrentTime()+b,!0)))};function Bfa(a,b){this.H=a;this.o=b;this.G=A();this.D=0;this.j=a.o;this.C={};this.F=new efa(a);var c=[];this.j.L&&this.j.A&&c.push("4_2");this.j.G&&(this.j.A&&c.push("1_2"),this.j.D&&c.push("1_2_1"),this.j.M&&c.push("1_1"),this.j.U&&c.push("1_3"));this.j.J&&c.push("2_2_1");this.j.K&&c.push("2_2");this.j.F&&c.push("2_1");(this.j.wa||this.j.H)&&c.push("2_3");this.j.S&&c.push("14_14");this.B=c.join(",");this.A="";this.C.allowed=this.B;(c=this.j.excludedAds)&&(this.C.ex_ads=c)};function N6(a,b,c){H.call(this);this.o=a;this.A=b;this.G=c;this.B=this.D=-1;this.j=O6(this.A.Sd());a=this.A.Sd();a.length&&(a=a[a.length-1],-1==a&&this.o.gb([this.j[a]]));0<this.o.o.o&&this.o.subscribe("endseeking",this.C,this)}B(N6,H);function Cfa(a,b){P6(a);0<b&&(a.B=qj(x(a.C,a),1E3*b))}function P6(a){-1!=a.B&&(tj(a.B),a.B=-1)}N6.prototype.F=function(){this.j||(this.j=O6(this.A.Sd()));this.o.j.gb(dc(this.j),1)};
function O6(a){if(!a.length)return{};for(var b={},c=0;c<a.length-1;c++){var d=a[c],e;e=a[c+1];e=-1==e?0x8000000000000:1E3*e;b[d]=new hr(-1==d?0x8000000000000:1E3*d,0x8000000000000==e?e:e-1,{id:String(d),visible:!0})}d=a[a.length-1];b[d]=new hr(-1==d?0x8000000000000:1E3*d,0x8000000000000,{id:String(d),visible:!0});return b}
N6.prototype.C=function(){var a=this.o.o.o;if(!(0>=a)&&this.j){var b=this.o.j.getCurrentTime(),c=[],d=null,e=Number.MAX_VALUE;E(this.A.Sd(),function(a){var f=this.j[a];if(f){var l=this.A.J.get(a);l&&l.Kc>b?(a=!F1(this.G,l),a!=f.visible&&(f.visible=a,c.push(f)),a||(f=l.Kc-b,f<e&&(e=f,d=l))):!l||l.ib()?(GJ(this.o.j,[f],void 0),delete this.j[a]):!f.visible&&l&&(f.visible=!0,c.push(f))}},this);0<c.length&&this.o.j.gb(c,1);if(d){var f=0;0<this.D&&(f=A()/1E3-this.D);Cfa(this,a-f-e+2)}else P6(this)}};
function Q6(a){0<a.o.o.o&&(a.D=A()/1E3,a.C())}N6.prototype.R=function(){N6.N.R.call(this);this.o.unsubscribe("endseeking",this.C,this);P6(this)};function R6(a){H.call(this);this.H=this.A=this.B=this.F=this.o=null;this.K=this.J=!1;this.j=a;this.G=null;this.L={};this.M=new vn(this);this.D=new vn(this);this.C=null}B(R6,H);var Dfa={ADSENSE:2,"ADSENSE/ADX":2,"YT:ADSENSE":2,DART:1,DART_DFA:1,DART_DFP:1,GDFP:1,"YT:DOUBLECLICK":1,FREEWHEEL:4};
function Efa(a,b,c){a=a.cloneNode(!0);a.setAttribute("timeOffset",b);E(a.getElementsByTagName("VASTAdTagURI"),function(a){var e,f,h;"end"==b?(e="post",f=-1,h="postroll"):(e="mid",f=r6(b).toString(),h="midroll");var k={"[INDEX]":c.toString(),"[POSITION]":e,"[START]":f,"[GPTPOS]":h};a.textContent=a.textContent.replace(/\[[A-Z_]+\]/g,function(a){return k[a]||a})});return a}
function Ffa(a,b){var c=LA(b),d=c.childNodes[0];if(!d)return b;var e=G(d.childNodes,function(a){return"#1"==a.getAttribute("timeOffset")});if(e){var f=G(e.childNodes,function(a){return"Extensions"==a.localName}),h=G(f?f.childNodes:[],function(a){return"YTBreakTime"==a.getAttribute("type")}),f=f.removeChild(h),k=e,l=1;E(f?f.childNodes:[],function(a){a=a.getAttribute("timeOffset");a=Efa(e,a,l);l++;d.insertBefore(a,k.nextSibling);k=a});d.removeChild(e)}f=a.C.bq(d);f||(Ub(a.C),a.C=w6(a.j,!0));return e||
f?NA(c):b}g=R6.prototype;g.load=function(a){if(this.G=this.j.M){this.C=w6(this.j);var b=r4(this.j);b.o=Ffa(this,a);b.ki=this.j.L.A;b.zb.GET_MIDROLL_POSITION_IN_SEC=x(this.C.Zi,this.C);if(a=f6(this.j.o).get(3)){var c=this.j.V();j4(c,["9418778","9417893","9417894","9417895","9419817"])||(b.A=p4(a));if(a=this.j.o.ha)b.B=a}this.G.P("adsManagerLoaded",this.Wr,!1,this);this.G.P("adError",this.Vr,!1,this);L1(this.G,b,this)}};
function Gfa(a){var b=q4(a.j.o,a.j.V(),s4(a.j));b.vv=!0;b.pn=!1;b.$p=10;b.xl=a.C.Rn();return b}
g.Wr=function(a){if(a.B===this){var b={};Object.defineProperty(b,"currentTime",{get:x(function(){return this.j.getCurrentTime(1)},this),enumerable:!0});Object.defineProperty(b,"duration",{get:x(function(){return this.j.j.getVideoData().lengthSeconds},this),enumerable:!0});try{var c=Gfa(this);this.o=rX(a,this.j.L,b,c)}catch(d){S6(this,d);return}if(this.H=this.o.oo(b,this.j.o.o)){this.C.gn(this.o.Sd());this.F=new N6(this.j,this.o,this.H);I(this,this.F);qj(x(this.F.F,this.F),0);tb(this.o.Sd(),0)||T6(this);
this.D.P(this.o,"companionBackfill",x(this.VD,this));this.D.P(this.o,"prefetched",x(this.Mx,this));this.D.P(this.o,"loaded",x(this.UD,this));this.D.P(this.o,"adError",x(this.TD,this),!1);this.D.P(this.o,"start",x(this.Nx,this));this.D.P(this.o,"complete",x(this.Jx,this));this.D.P(this.o,"contentPauseRequested",x(this.WD,this));this.D.P(this.o,"contentResumeRequested",x(this.XD,this));this.D.P(this.o,"allAdsCompleted",v);try{this.o.init("normal"),this.o.start()}catch(d){l6(this.j.C,"vmap_ads_manager_init_exception"),
this.o.destroy(),this.o=null,S6(this,d)}}}};g.WD=function(a){U6(this);(this.A=a.getAd())&&qW(this.A)&&(a=V6(this.A),this.B=new Q4(a,this.j,this.o,vW(this.A),!0),G6(this.j),this.C.$r(this.A.C.j),this.B.ne(),null!=this.j.C&&(a=this.H.j,a=0<a?Math.floor(A()/1E3-a):0,l6(this.j.C,"show_instream_ads",{tfla:a})))};
function Hfa(a,b){var c=sW(b);if(o4(c,f5.j)&&a.j.o.H)return a.B=new p5(a.j),a.B.ne(),!1;if(o4(c,"blockAllAds"))return a.o.sendImpressionUrls(),a.B=new r5(a.j,a.o,1,!0),!1;if(o4(c,"hideMaster"))return a.B=new r5(a.j,a.o,0,!0),!1;a.B=new c5(V6(b),a.j,a.o,!0);a.B.ne();a.J=!1;return!0}
g.XD=function(a){T6(this);if(this.j.getCurrentTime(1)<this.j.j.getVideoData().lengthSeconds){var b=this.j;H6(b);vr(b);this.A&&qW(this.A)&&this.C.bs(this.A.C.j)}this.J?this.A=null:U6(this);a=a.getAd();b=!0;if(a&&a!==this.A&&!qW(a)){b=this.o;if(null!=b.A&&b.A.M&&!this.J){this.J=!0;b=this.F;if(null!=b.j[0]){var c=b.j[0];delete b.j[0];b.j[0]=new hr(1E4,c.end,{id:"10",visible:!0});c.visible=!1;b.o.j.gb([c,b.j[0]],1);b.o.gb([b.j[0]])}this.A=a;return}b=Hfa(this,a)}this.A&&qW(this.A)&&e6(this.j);this.A&&
qW(this.A)?(null!=this.j.C&&(b=this.H.j,b=0<b?Math.floor(A()/1E3-b):0,l6(this.j.C,"set_previous_ad_end_time",{tfla:b.toString()})),b=this.H,0<b.o&&(b.j=A()/1E3),Q6(this.F)):a&&a!==this.A&&!qW(a)&&b&&Q6(this.F);this.F.F();this.A=a};g.Nx=function(a){(a=a.getAd())&&this.B&&(a=V6(a),this.B.adSystem=a)};g.Jx=function(a){qW(a.getAd())||this.A!==a.getAd()||(U6(this),this.A=null)};g.Mx=function(a){var b=a.getAd();null!=b&&(this.L[a.A.adBreakTime]=b)};
g.UD=function(a){if(null!=a.getAd()){var b;b=a.getAd().C;0<b.j&&(this.J=!1);b.A||qW(a.getAd())||T6(this)}};g.TD=function(a){S6(this,a.getError())};g.Vr=function(a){var b=a.getError();"adLoadError"==b.getType()&&a.A===this&&S6(this,b)};g.VD=function(){y4();z4()};function S6(a,b){if(b&&"adLoadError"==b.getType()){var c=a.j.o;!c.j&&c.wa&&(a.B=new p5(a.j),a.B.ne())}}
g.R=function(){this.G&&(this.G.ua("adsManagerLoaded",this.Wr,!1,this),this.G.ua("adError",this.Vr,!1,this));this.M.removeAll();this.D.removeAll();this.K=!1;this.o&&(this.o.destroy(),this.o=null);Ub(this.C);R6.N.R.call(this)};function U6(a){a.B&&(a.B.dispose(),a.B=null)}function V6(a){var b=LW(a);a=0<b.length?b.pop():CW(a);a=Dfa[a.toUpperCase()];return null!=a?a:0}function T6(a){a.K||(pr(a.j),a.K=!0)};function W6(a){N1.call(this,a);this.H=this.oa="ad";this.o=this.A=this.K=null;this.T=this.W=!1;this.B=this.M=null;EM.j=!0;EM.B=!1;EM.F=!0;EM.D=0;this.L=null;this.ea={};this.ca={at:"0"};this.G=new Wr(this.j);this.G.j(this.j.sa());this.aa=this.D=null;this.S=-1;this.C=null;this.Z=[]}B(W6,N1);W6.A=10;W6.o=1E3;W6.j="livead";W6.Za=function(a){return!!a.Ya.getVideoData().adModule};g=W6.prototype;g.Za=function(){return W6.Za(this.app)};
g.create=function(){W6.N.create.call(this);this.C=new tfa(this);$5(this,"i");this.o=new qfa(this.V(),this.j.getVideoData().B||{});this.K=new Bfa(this,this.j);this.W=!1;if(this.M)this.M.j.A.D=EU();else{var a=this.o.T?void 0:as(this.G),b=new M1(this.app,2),c=Xr(this.G);b.o||(b.o=nc(b.A),b.o.addEventListener=x(b.Ev,b),b.o.removeEventListener=x(b.Fv,b));this.L=new wU(c,void 0,a,b.o,!0);this.L.setSize(-1,-1);this.M=new K1(this.L)}if(Boolean(this.o.vmap&&!this.o.Ga)){this.B=new R6(this);try{this.B.load(this.o.vmap)}catch(d){l6(this.C,
"vmap_load_exception"),this.B.dispose(),this.B=null,X6(this,j6(new h6(this)))}}else X6(this,j6(new h6(this)));this.Z.push(Dj("showCompanionAdLoaded",this.zy,this));a={};a.allowed=this.K.B;rr(this,{},a)};g.destroy=function(){Fj(this.Z);this.Z.length=0;this.T&&H6(this);if(this.D){var a=this.app,b=this.D;$4(a);b!=a.o&&T4(a,a.o)}Vb(this.A,this.D,this.B);this.K=this.o=this.B=this.aa=this.D=this.A=null;Yr(this.G);w4=v4=!1;this.C=null;this.J&&W6.N.destroy.call(this)};function s4(a){return MI(a.app)}
g.V=function(){return this.app.V()};g.Ja=function(){return this.j.Ja()||this.o.B};
function h5(a,b,c){a=a.K;c=c||{};var d=(A()-a.G)/1E3;c.art=d;d=a.H.V();d.ga&&(c.feature=d.Ea);c.ad_flags=a.j.adFlags;(d=a.j.Sa)&&(c.cid=d);c.mt=a.o.getCurrentTime();(d=mC())&&(c.lact=d);(d=a.o.gh())&&(c.len=d);a.j.vb&&(c.fqsf=1);c.sdkv="3";c.ad_event=b;if(3==b||4==b)a.A=c.at;b=a.F;a:{if(7==c.ad_event&&(a=c.ad_error,21==a||30==a||54==a||32==a&&(1009==c.error_code||!c.ad_id))){a=!1;break a}a=c&&c.ad_event?I4(c.ad_event):0;a=8==a||0!=a?!0:!1}if(a){var e;c.at&&(e=c.at);var f;c.sst&&(f=c.sst);"2_1"==e&&
10==f&&(c.break_type=1);e={};e.device=b.j.o.fb;e.ns=1;e.sdkv="h.3.0";e.ver="2.0";for(var h in c){f=e;a=h;var d=c[h],k=c;switch(a){case "trsp":f.slot_pos=d;break;case "break_type":tb(g4,bb(d))&&(f.m_pos=k.sst);case "format":case "ad_id":case "ad_v":case "ad_cpn":case "ad_mt":case "aqi":case "ad_sys":f[a]=d;break;case "ad_len":f[a]=Math.round(1E3*d);break;case "ad_error":f.error_code=ffa(d);break;case "error_code":f.ima_error=d;case "error_message":f.error_msg=d;break;case "ad_event":f.event=I4(d);
break;case "ck_xy":a=d.split("x"),2==a.length&&(f.i_x=a[0],f.i_y=a[1])}}h=R4(b.j);f=s4(b.j);e.cpn=f.clientPlaybackNonce;e.content_v=f.videoId;c.at&&c.at.match(/\d+_2.*/g)?(c=b.j.A,e.mt=null!=c&&null!=c.o?1E3*h4(c.o.Qa):0):e.mt=Math.round(1E3*h.getCurrentTime());c=b.j.V();e.ei=f.eventId;e.lact=mC();e.vol=Math.round(b.j.app.Ya.Eb());e.vis=tI(c);c=Z4(b.j);e.p_w=c.width;e.p_h=c.height;e.rt=A();if(c=(c=M3(h))&&Df(c)===document?zg(c):null)e.pv_h=c.getHeight(),e.pv_w=c.getWidth();h=eh(e);if("undefined"==
typeof h)throw Error("Keys are undefined");c=new Gh(null,0,void 0);e=dh(e);for(f=0;f<h.length;f++)a=h[f],d=e[f],ea(d)?Sh(c,a,d):Yh(c,a,d);b=b.j.V().baseYtUrl+"api/stats/ads";b=new P(b);Eh(b,c);br(b.toString())}}function g5(a,b,c){c=c||{};c.ad_error=b;h5(a,7,c)}g.kh=function(){var a;if(this.K){a=this.K;var b={allowed:a.B};a.j.excludedAds&&(b.ex_ad=a.j.excludedAds);a.A&&(b.at=a.A);a=b}else a=W6.N.kh.call(this);return a};
function e6(a){if(!a.W){var b=a.V().baseYtUrl;br(b+"mac_204?action_fcts=1");a.W=!0}}g.sa=function(){return this.j.sa()};function Y6(a){return a.A instanceof L6?a.A:null}function o6(a){a=a.G;if(a.o.V().G)a=bG(a.o).o;else{if(!a.B){var b;b=a.o.app;if(b.j.G){var c=wg(b.C),d=Jg(b.C);b.ga=new Ke(c.x,c.y,d.width,d.height);I3(b.D);yz(b.C,1);$r(b.C);b=b.C}else b=Z6.getTag(void 0,void 0);a.B=b;se(a.B,["video-stream","ad-video"])}a=a.B}return a}
function R4(a){if(!a.D){var b=nc(a.V().M);b.autoplay="1";b.eventid=s4(a).eventId;b.content_v=s4(a).videoId;b=new UH(b);b.Aa="adunit";var c=o6(a);b.mc=c;a.D=new H3(b,2,new O1(b,""),a.app.G,x(a.app.O,a.app))}return a.D}g.getVideoData=function(){return this.aa};g.getCurrentTime=function(a){return this.app.getCurrentTime(a)};function Z4(a){return a.o.B?(a=a.app.G.Ka(),new Ke(0,0,a.width,a.height)):Lg(a.sa())}
function X6(a,b){$5(a,"bd");var c;c=a.o;var d=c.midrollPrefetchSize;c=c.La?new L6(a,b):0<d?new I6(a,b,d):new B6(a,b);a.A=c;zfa(a.A)}function G6(a){a.T=!0;a.O("command_redirect_controls",a,["play_pause"],void 0);a.B||a.pauseVideo()}function H6(a){Yr(a.G);a.T=!1;ur(a)}g.getAdState=function(){return this.S};function W4(a,b){switch(b){case 1:a.S=1;a.O("publish_external_event","onAdStart");break;case 0:a.S=0,a.O("publish_external_event","onAdEnd")}}
function V4(a,b,c,d){d&&a.O("publish_external_event","onAdInfoChange",d);a.O("publish_external_event","onAdStateChange",b,o6(a),c)}
g.jc=function(a){W6.N.jc.call(this,a);var b=parseInt(a.getId(),10);if(this.A&&!isNaN(b))if("ytp-ad-fadeout"==a.style){var c=this.A,d=c.yj(b);if(d&&!A6(c.D,d)&&(c=c.C,d.o)){var e=o6(c.j),d=Math.max(0,X5(d)+c.B+c.A-1E3*c.j.getCurrentTime(1));og(e,"transition","opacity "+String(d)+"ms linear");og(e,"opacity","0");p6(c,e,d,0)}}else F6(this.A,b);this.B&&!isNaN(b)&&("ytp-ad-fadeout"==a.style?(d=this.B,(c=d.L[b])&&qW(c)&&d.C.Zr(b)):0>b?(b=this.M.j,d=new sX("contentComplete"),b.Y(d),d.B&&(b.A.clear(),null!=
b.o&&(d=b.o.Ae(),null!=d&&VU(d,b.A.j)))):(b=this.B,null!=b.A&&(b=b.o,null!=b.A&&b.A.start())));if(a.getId()===W6.j&&null!=Y6(this)){b=Y6(this);for(a=Math.floor(a.start/1E3);p(b.B[a]);)a++;var d=b.ca++,c=0==a?new f4(1):new f4(2,a),e=b.S,f;f=g6(b.S.o,c.j);d=new W5(e,d,c,f,!1);b.B[a]=d;d.subscribe("adBreakComplete",b.W,b);o5(d)}};
g.Dc=function(a){W6.N.Dc.call(this,a);var b=parseInt(a.getId(),10),c=this.getCurrentTime(1)*W6.o;this.A&&!isNaN(b)&&c>a.start&&(0x8000000000000==a.end||0x7ffffffffffff==a.end)&&(c=this.A,(b=c.B[b])&&c.o==b&&!b.o&&b.isVisible&&b.H&&b.j instanceof c5&&e5(b.j,"fullscreen"));this.B&&"ytp-ad-fadeout"==a.style&&this.B.C.nh();a.getId()===W6.j&&null!=Y6(this)&&this.getCurrentTime(1)*W6.o>=a.start&&(GJ(this.j,[a],1),M6(Y6(this)))};
function $5(a,b){var c=b;"nl"==b&&(c=a.K,c.D++,c=c.D.toString());a.ea[c]=A();"bs"!=c&&"fb"!=c||rr(a,a.ea,a.ca)}function d5(a){return Boolean(a.o.C&&a.A&&1<a.A.A.length)}g.Zd=function(a){this.O(a)};g.Ly=function(a){var b=Y6(this);if(null!=b&&null!=b.G){var c=Y6(this).G.getCurrentTime();E(a,function(a){0!=c&&a.fe>c&&(a=new hr(1E3*Math.floor(c+Math.random()*Math.max(a.fe-W6.A-c,0)),1E3*a.fe,{id:W6.j,priority:2}),this.gb([a],1))},this)}};g.zy=function(){this.O("publish_external_event","showCompanionAdLoaded")};
g.ke=function(a){switch(a){case "addata":var b=this.o;return{adTag:b.adTag,adTest:b.ob,forceAdType:b.X,isAfvSkippableInstreamEnabled:b.J,isAfvStandardInstreamEnabled:b.K,isBlazer:b.aa,isDoubleClickEnabled:b.G,isForcedAd:b.Ga,isFreeWheelEnabled:b.L,isHouseBrandPlayer:b.Cb,isLeanback:b.B,isShortform:b.Wa,tagForChildDirected:b.tagForChildDirected};case "adstate":return this.getAdState();case "midrollfreqcap":return b=this.A instanceof I6?this.A:null,null!=b?b.S:0;case "breakscount":return this.A?this.A.A.length:
0;case "displaystate":return b=null,this.A&&this.A.o&&(b=this.A.o.j),{adFormat:b instanceof H4?b.adType:!1,adSkipped:b instanceof Q4?b.F:!1,hasVideoStarted:b instanceof Q4?b.H:!1,skippable:b instanceof Q4?b.T:!1};case "getContentVideoData":return b=s4(this),{adModule:b.adModule,partnerTrackingToken:b.W,title:b.title,videoId:b.videoId};case "loadedadbreaks":if(this.A){a=this.A.B;var c=[];for(b in a)a.hasOwnProperty(b)&&c.push({isInterruptive:a[Number(b)].o});return c}return 0}};g.Re=function(){return"addata adstate breakscount displaystate getContentVideoData loadedadbreaks midrollfreqcap".split(" ")};function $6(a,b,c){H.call(this);this.o=a;a.subscribe("onVolumeChange",this.vp,this);this.J=x(this.rz,this);a.j.addEventListener("onCaptionsTrackListChanged",this.J);this.C=!1;this.j=c;c.subscribe("proxyStateChange",this.Jp,this);c.subscribe("remotePlayerChange",this.rl,this);c.subscribe("remoteQueueChange",this.sl,this);this.L=new zz;this.G=this.F=NaN;this.K=0;this.A={};this.D=null;this.H=new tn(this.UB,1E3,this);I(this,this.H);this.M=0;this.B=!1;a=this.o.j.rb("captions","track");jc(a)||a7(this,a);
this.sl();this.rl()}B($6,H);g=$6.prototype;g.R=function(){b7(this,new zz);c7(this);d7(this);this.o.unsubscribe("onVolumeChange",this.vp,this);this.o.j.removeEventListener("onCaptionsTrackListChanged",this.J);var a=this.j;a&&"function"==typeof a.isDisposed&&a.isDisposed()||(this.j.unsubscribe("proxyStateChange",this.Jp,this),this.j.unsubscribe("remotePlayerChange",this.rl,this),this.j.unsubscribe("remoteQueueChange",this.sl,this));e7(this,this.A);this.D&&this.o.j.xm(this.D);this.j=this.o=null};
g.ZD=function(a,b){2==this.j.o||(f7(this)?this.iw.apply(this,arguments):this.B&&this.gw.apply(this,arguments))};function g7(a,b){var c=a.o,d=a.o.j.getVideoData().lengthSeconds;c.K=b||0;HJ(c.j,b,d)}g.gw=function(a,b){var c=Array.prototype.slice.call(arguments,1);switch(a){case "control_toggle_play_pause":case "control_play":case "control_pause":h7(this,this.o.j.getCurrentTime());break;case "control_seek":h7(this,c[0])}};
g.iw=function(a,b){if(1081==qp(this.j).j)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":qp(this.j).ib()?i7(this):j7(this);break;case "control_play":j7(this);break;case "control_pause":i7(this);break;case "control_seek":this.M=c[0];this.H.lf();break;case "control_subtitles_set_track":a7(this,c[0]);break;case "control_set_audio_track":c=c[0],f7(this)&&
(this.j.Yq(k7(this),c),this.D=c)}};g.vp=function(a){if(f7(this)){var b=Math.round(a.volume);a=!!a.muted;var c=qp(this.j);b==c.volume&&a==c.muted||this.j.setVolume(b,a)}};g.rz=function(){jc(this.A)||e7(this,this.A);this.C=!1};g.Jp=function(a,b){d7(this);2==b&&this.Hq()};
g.rl=function(){if(f7(this)){c7(this);var a=qp(this.j);switch(a.j){case 1:l7(this);b7(this,new zz(8));break;case 3:b7(this,new zz(1));break;case 0:b7(this,new zz(2));this.H.stop();var b=this.o.j;(b=nr(b.app,b.playerType||1))&&b.Kf(!0);g7(this,this.o.j.getVideoData().lengthSeconds);break;case 2:b7(this,new zz(4));g7(this,ip(a));break;case -1:b7(this,new zz);break;case -1E3:b7(this,new zz(128,{}))}0==this.K&&(b=this.o.j,(b=nr(b.app,b.playerType||1))&&b.Kf(!1));this.K=a.j;a=qp(this.j).A;b=this.A;(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.A=a,e7(this,a));a=qp(this.j);-1==a.volume||Math.round(this.o.j.Eb())==a.volume&&this.o.j.nc()==a.muted||(this.o.j.setVolume(a.volume),a.muted?this.o.j.mute():this.o.j.unMute())}else m7(this)};function m7(a){a.B||(g7(a,0),c7(a),b7(a,new zz));az(a.o.app.Ya.V())||(a.B=!0)}g.sl=function(){f7(this)||m7(this)};
function a7(a,b){if(f7(a)&&!a.C){if(b){var c={style:a.o.j.rb("captions","displaySettings")};qc(c,b);a.j.Il(k7(a),c)}else a.j.Il(k7(a),null);a.A=qp(a.j).A}}function i7(a){a.j.pause();var b=qp(a.j);g7(a,ip(b));c7(a);b7(a,new zz(4))}function j7(a){a.j.play();l7(a);b7(a,new zz(8))}function h7(a,b){var c=a.o.j.bc();c?xp(a.j,k7(a),b,c.j,a.o.j.getVideoData().playlistId):xp(a.j,k7(a),b);b7(a,new zz(1))}
function e7(a,b){if(b){var c=a.o.j.rb("captions","tracklist",{Bo:1});c&&c.length?a.o.j.zd("captions","track",b):(a.o.j.qj("captions"),a.C=!0)}else a.o.j.zd("captions","track",{})}g.UB=function(){var a=this.M;c7(this);g7(this,a);-1==qp(this.j).j?h7(this,a):this.j.Xq(a);b7(this,new zz(1))};function f7(a){return gp(qp(a.j))==k7(a)}function k7(a){return a.o.j.getVideoData().videoId}
function l7(a){c7(a);if(!a.j.isDisposed()){var b=qp(a.j);b.ib()&&b7(a,new zz(8));g7(a,ip(b));a.F=qj(x(function(){l7(this)},a),500)}}function c7(a){tj(a.F);a.F=NaN}g.Hq=function(){d7(this);c7(this);var a=this.j.B.getReconnectTimeout();2!=this.j.o||isNaN(a)?this.B=!1:this.G=qj(x(this.Hq,this),1E3)};function d7(a){tj(a.G);a.G=NaN}function b7(a,b){d7(a);var c=a.L;a.L=b;a.B=!1;var d=a.o;d.M=b;d.app.O("presentingplayerstatechange",new G3(b,c))};function n7(a){N1.call(this,a);this.oa=this.H="remote";this.B={key:Gk(),name:Q("YTP_MDX_MY_COMPUTER")};this.A=null;this.D=[];this.G=this.L=this.o=null;this.S=[this.B];this.C=this.B;this.M=new zz;this.K=0}B(n7,N1);var Ifa=["play_pause","seek","set_audio_track"],Jfa=["captions"];g=n7.prototype;g.Za=function(){return this.app.Ya.V().lg};
g.create=function(){n7.N.create.call(this);this.D.push(Dj("yt-remote-before-disconnect",this.hy,this));this.D.push(Dj("yt-remote-connection-change",this.Kp,this));this.Kp();var a=this.j.app.K;this.C&&this.C!=this.B&&1!=a&&3!=a&&this.load()};g.destroy=function(){Fj(this.D);this.D.length=0;Ub(this.o);this.o=null;n7.N.destroy.call(this)};
g.load=function(){if(!this.loaded){n7.N.load.call(this);this.o&&(this.A=new $6(this,0,this.o));this.j.pauseVideo();this.O("command_redirect_controls",this,Ifa,Jfa);var a=Cq();if(0!=a){var b=this.o?gp(qp(this.o)):null;b&&b!=this.j.getVideoData().videoId||qj(x(function(){this.K=a||0;HJ(this.j,a,void 0)},this),0)}}};g.unload=function(){this.loaded&&(this.C=this.B,ur(this),Ub(this.A),this.A=null,n7.N.unload.call(this))};g.R=function(){this.destroy();Vb(this.A,this.o);this.o=this.A=null;n7.N.R.call(this)};
g.Zd=function(a,b){this.A&&this.A.ZD.apply(this.A,arguments)};function WI(a,b,c){var d=c||a.B;b.unshift(a.B);a.S=b||[a.B];d=G(b,function(a){return a.key==d.key});a.C=d||a.B;a.O("publish_external_event","onMdxReceiversChange")}g.getCurrentTime=function(){return this.K};g.hy=function(a){1==a&&(this.L=this.o?qp(this.o):null);this.G=a};
g.Kp=function(){var a=Eq();a?(this.o=a,this.G=this.L=null,this.load(),this.A||(this.A=new $6(this,0,this.o))):(Ub(this.o),this.o=null,this.loaded&&1==this.G&&(this.unload(),(a=this.L)&&gp(a)==this.j.getVideoData().videoId?this.j.qm(gp(a),ip(a)):this.j.qm(this.j.getVideoData().videoId)))};
g.ke=function(a,b){switch(a){case "casting":return!!this.o&&!!this.A;case "receivers":return this.S;case "currentReceiver":if(b)if("cast-selector-receiver"==b.key)um();else if(this.C=b||this.B,b.key==this.B.key)xq();else{var c=0,d="",e=this.j.bc();e&&(c=e.j,d=this.j.getVideoData().playlistId);if(e=this.j.bc()){for(var f=[],h=0;h<e.A;h++)f[h]=e.qb(h).videoId;e=f}else e=[this.j.getVideoData().videoId];c={videoIds:e,listId:d,videoId:this.j.getVideoData().videoId,index:c,currentTime:this.j.getCurrentTime()};
uq(b,c);Ub(this.A);this.A=null;this.load()}return this.C;case "castSelector":return c=jq(),c=1==c.length&&"cast-selector-receiver"==c[0].key,b&&c&&um(),c}};g.Re=function(){return["casting","receivers","currentReceiver","castSelector"]};function o7(a){R.call(this,["span"]);this.element.innerHTML=a}B(o7,R);function p7(a,b){R.call(this,["span","","{{sparkline_container}}"]);this.C=a;this.B=b;this.o=new o7("");I(this,this.o);Ar(this,"sparkline_container",this.o)}B(p7,R);function q7(a,b){for(var c=Math.max.apply(Math,b)||1,d=[],e=0;e<b.length;e++)d.push(e/b.length*a.C+","+a.B*(1-b[e]/c));return'<svg width="'+a.C+'" height="'+a.B+'" viewbox="0 0 '+a.C+" "+a.B+'"><g><polyline stroke="white" fill="none" points="'+d.join(" ")+'"/></g></svg>'};function VI(a){R.call(this,["div","html5-video-info-panel",["button",["html5-video-info-panel-close","ytp-button"],{tabindex:22,title:"close"},"[x]"],["div","html5-video-info-panel-content",["div","",["div","","Video ID:"],["span","","{{video_id}}"]],["div","",["div","","Dimensions:"],["span","","{{dimensions}}"]],["div","",["div","","Resolution:"],["span","","{{resolution}}"]],["div","",["div","","Volume:"],["span","","{{volume}}"]],["div","",["div","","Stream Host:"],["span","","{{stream_host}}"]],
["div","",["div","","Stream Type:"],["span","","{{stream_type}}"]],["div",{style:"{{cpn_style}}"},["div","","CPN:"],["span",{style:"font-family:monospace"},"{{cpn}}"]],["div","",["div","","Mime Type:"],["span","","{{mime}}"]],["div","",["div","","DASH:"],["span","","{{dash}}"]],["div",{style:"{{drm_style}}"},["div","","Protected:"],["span","","{{drm}}"]],["div","",["div","","Connection Speed:"],["span","",["span","","{{bandwidth_sparkline}}"],["span","","{{bandwidth_kbps}}"]]],["div",{style:"{{live_latency_style}}"},
["div","","Live Latency:"],["span","",["span","","{{live_latency_sparkline}}"],["span","","{{live_latency_seconds}}"]]],["div","",["div","","Dropped Frames:"],["span","","{{dropped_frames}}"]]]]);S(this,this.ma["html5-video-info-panel-close"],"click",this.da);this.B=new p7(200,14);I(this,this.B);Ar(this,"bandwidth_sparkline",this.B);this.C=new p7(200,14);I(this,this.C);Ar(this,"live_latency_sparkline",this.C);this.D=new oe(this.F,500,this);I(this,this.D);this.o=a}B(VI,R);
VI.prototype.Ba=function(){VI.N.Ba.call(this);this.F()};VI.prototype.da=function(){VI.N.da.call(this);this.D.stop()};
VI.prototype.F=function(){var a=nr(this.o),b=this.o.getVideoData(),c=this.o.G.o,d=this.o.V(),e=jC(d),f;f=this.o;f=f.Da?f.Da.J.Ia():[0];var h=8*ib(f)/1024,k=b.Fa&&this.o.V().experiments.showEndToEndLatency,l;l=this.o;l=(l=l.o&&l.o.W)?l.C.Ia():[0];var n=ib(l),r=a.G?a.G.j:null,u=r&&r.o,z=dI(),y=b.videoId,V=b.clientPlaybackNonce,va=b.clientPlaybackNonce?"":"display:none",e=e.totalVideoFrames?""+(e.droppedVideoFrames||0)+"/"+e.totalVideoFrames:"-",a=a.C?g3(a.C):"",L;a:{if(b.Sf&&(L=b.Sf.match(/url=(https?)/))&&
2==L.length){L=L[1];break a}L=""}c={video_id:y,cpn:V,cpn_style:va,mime:"",dash:"no",dropped_frames:e,stream_host:a,stream_type:L||d.protocol,dimensions:c.clientWidth+" x "+c.clientHeight+(1<z?" * "+z:""),resolution:c.videoWidth+" x "+c.videoHeight,volume:Math.round(this.o.Ya.Eb())+"%",bandwidth_kbps:h.toFixed(0)+" Kbps",live_latency_style:k?"":"display:none",live_latency_seconds:n.toFixed(0)+" s",drm_style:u?"":"display:none",drm:u?r.o+" / "+r.j:""};b.o&&(d=vs(b.o)?"yes":"no",d+=" ("+b.o.id,b.D&&
vs(b.o)&&(d+="/"+b.D.id),c.dash=d+")",c.mime=b.o.mimeType,b=b.o.video.fps,1<b&&(c.resolution+="@"+b));b=this.B;f=q7(b,f);b.o.element.innerHTML=f;f=this.C;l=q7(f,l);f.o.element.innerHTML=l;this.update(c);this.D.start()};function r7(a){var b=["div","html5-video-player",{tabindex:-1,id:a.W.attrs.id},["div","html5-video-container"]];b.push(["div","html5-video-content"]);Fr.call(this,b);hj(this.element,"version",a.W.assets.js);this.app=a;this.M=null;this.B=this.ma["html5-video-container"];this.ca=!!this.B;this.F=new Ke(0,0,0,0);this.o=null;this.J=new Ke(0,0,0,0);this.T=this.ma["html5-video-content"];this.X=this.aa=0;this.L=null;this.G=0;this.K=null;a=a.V();this.Z=a.vb||"blazer"==a.j;this.H=this.C=null;this.addEventListener=
x(this.element.addEventListener,this.element);this.removeEventListener=x(this.element.removeEventListener,this.element);this.dispatchEvent=function(){};a=az(a)&&"blazer"!=a.j&&"mweb-polymer"!=a.j&&window.matchMedia?x(window.matchMedia,window):v;this.W=a(r7.D);this.na=a(r7.C);this.fa=a(r7.B);this.ga=a(r7.o);this.ia=a(r7.j);this.ea=a(r7.A);this.D=null;wj({YTP_ADVERTISEMENT:"Advertisement",YTP_AIRPLAY:"AirPlay",YTP_AUDIO_TRACK_TITLE:"Audio track",YTP_AUTO:"Auto",YTP_AUTO_WITH_QUALITY_2:"Auto ($VIDEO_QUALITY)",
YTP_CARDS_BUTTON_ARIA_LABEL:"Show cards",YTP_CHANGE_QUALITY_WITH_QUALITY_2:"Change quality ($VIDEO_QUALITY)",YTP_COPY_DEBUG_INFO:"Copy debug info",YTP_COPY_VIDEO_URL:"Copy video URL",YTP_COPY_VIDEO_URL_AT_TIME:"Copy video URL at current time",YTP_DRAWER_CLOSE_BUTTON_ARIA_LABEL:"Hide cards",YTP_DRAWER_HEADER_TEXT_2:"More info",YTP_DRAWER_POLL_PERCENT:"$PERCENT%",YTP_DRAWER_POLL_SIGNIN_TITLE:"Want to vote?",YTP_GET_DEBUG_INFO:"Get debug info",YTP_GET_VIDEO_URL:"Get video URL",YTP_GET_VIDEO_URL_AT_TIME:"Get video URL at current time",
YTP_GET_EMBED:"Get embed code",YTP_DECREASE_PLAYBACK_SPEED:"Decrease playback speed",YTP_DEFAULT_VIEW:"Default view",YTP_EMBED_COPY:"Copy embed code",YTP_ERROR_GENERIC_WITHOUT_LINK:"An error occurred. Please try again later.",YTP_ERROR_GENERIC_WITH_LINK:"An error occurred. Please try again later. $BEGIN_LINKLearn More$END_LINK",YTP_EXIT_FULLSCREEN:"Exit full screen",YTP_FULLSCREEN_GENERIC_ERROR:"Full screen is unavailable. $BEGIN_LINKLearn More$END_LINK",YTP_FULLSCREEN_UNSUPPORTED_ERROR:"Your browser doesn't support full screen. $BEGIN_LINKLearn More$END_LINK",
YTP_FEATURED:"Featured",YTP_FULLSCREEN:"Full screen",YTP_INCREASE_PLAYBACK_SPEED:"Increase playback speed",YTP_GOTO_LIVE_TOOLTIP:"Skip ahead to live broadcast.",YTP_KEYBOARD_SHORTCUTS:"Keyboard shortcuts",YTP_LIVE:"Live",YTP_LIVE_NOW:"LIVE NOW",YTP_MIX:"Mix",YTP_MORE:"More",YTP_MDX_TITLE:"Play on",YTP_MDX_TOOLTIP:"Play on TV",YTP_MDX_MY_COMPUTER:"This computer",YTP_MUTE:"Mute",YTP_NEXT:"Next",YTP_NEXT_VIDEO_IN:"Next video in $TIME_LEFT",YTP_NORMAL_SPEED:"Normal",YTP_ON:"On",YTP_OFF:"Off",YTP_OPTIONS:"Options",
YTP_PLAY_ALL:"Play all",YTP_PLAY_PAUSE:"Toggle play/pause",YTP_PREVIOUS:"Previous",YTP_PLAYBACK_STALLED_AT_START:"If playback doesn't begin shortly, try restarting your device.",YTP_PLAYLIST:"Playlist",YTP_PLAYLIST_UP_NEXT:"Up Next",YTP_QUALITY_TITLE:"Quality",YTP_SUGGESTED_VIDEOS:"Suggested videos",YTP_REPLAY:"Replay",YTP_REPORT_ISSUE:"Report playback issue",YTP_SEEK_BACK:"Seek back 10 seconds",YTP_SEEK_FORWARD:"Seek forward 10 seconds",YTP_SEEK_PERCENT:"Seek to 0%-90%.",YTP_SETTINGS:"Settings",
YTP_SHARE:"Share",YTP_SHARE_LINK:"Share link",YTP_SHARE_WITH_PLAYLIST:"Share with playlist",YTP_SHARE_WITH_PLAYLIST_2:"Include playlist",YTP_SHOW_VIDEO_INFO:"Stats for nerds",YTP_SIGN_IN:"Sign in",YTP_SPHERICAL_CONTROL:"Spherical video control. Use the arrow keys to pan the video.",YTP_SPEED_TITLE:"Speed",YTP_ST_COLLAPSE:"Collapse",YTP_ST_EXPAND:"Expand",YTP_SUBTITLES:"Subtitles/CC",YTP_THREED_SHORT:"3D",YTP_THREED_VIEWMODE_2D:"2D",YTP_THREED_VIEWMODE_ANAGLYPH:"Anaglyph",YTP_THEATER_MODE:"Theater mode",
YTP_TOGGLE_FULLSCREEN:"Toggle fullscreen.",YTP_TOGGLE_MUTE:"Toggle mute",YTP_UNMUTE:"Unmute",YTP_URL_NAVIGATE:"Watch on YouTube.com",YTP_URL_NAVIGATE_TO:"Watch on $WEBSITE",YTP_WATCH_ALL:"Watch entire video",YTP_WATCH_LATER:"Watch Later",YTP_WATCH_LATER_AS_2:"Watch later as $USER_NAME",YTP_WEBGL_3D_ANAGLYPH:"Anaglyph",YTP_WEBGL_3D_2D:"2D",YTP_SUBSCRIBE_AS:"Subscribe as $USER_NAME",YTP_LIKE_AS:"Like as $USER_NAME",YTP_DISLIKE_AS:"Dislike as $USER_NAME",YTP_WATCH_NEXT:"Watch next",YTP_PLAY:"Play",YTP_WATERMARK:"Watermark",
YTP_ERROR_STREAMING_UNAVAILABLE:"Video playback is unavailable right now because this video has been downloaded for offline viewing.",YTP_ERROR_LICENSE:"Sorry, there was an error licensing this video.",YTP_ERROR_VIDEO_NOT_FOUND:"This video can not be found.",YTP_ERROR_ALREADY_PINNED_ON_A_DEVICE:"This video has already been downloaded on the maximum number of devices allowed by the copyright holder. Before you can play the video here, it needs to be unpinned on another device.",YTP_ERROR_CANNOT_ACTIVATE_RENTAL:"An error occurred when activating your rental. Please reload this page or try again later.",
YTP_ERROR_PURCHASE_NOT_FOUND:"This video requires payment.",YTP_ERROR_PURCHASE_REFUNDED:"This video's purchase has been refunded.",YTP_ERROR_STOPPED_BY_ANOTHER_PLAYBACK:"Your account is playing this video in another location. Please reload this page to resume watching.",YTP_ERROR_TOO_MANY_STREAMS_PER_USER:"Playback stopped because too many videos belonging to the same account are playing.",YTP_ERROR_TOO_MANY_STREAMS_PER_ENTITLEMENT:"Playback stopped because this video has been played on too many devices.",
YTP_ERROR_STREAMING_DEVICES_QUOTA_PER_24H_EXCEEDED:"Too many devices/IP addresses have been used over the 24 hour period.",YTP_ERROR_UNUSUAL_ACTIVITY:"Due to unusual account activity, this video is not currently available.",YTP_ERROR_NOT_SIGNED_IN:"Please sign in to resume watching.",YTP_CLOSE:"Close",YTP_ANNOTATIONS:"Annotations",YTP_DONE:"Done",YTP_SHARE_THIS_PLAYLIST:"Share this playlist",YTP_UPLOADED_BY_2:"by $AUTHOR",YTP_SEEK_SLIDER:"Seek slider",YTP_PAUSE:"Pause",YTP_AUTOPLAY:"Autoplay",YTP_AUTOPLAY_COUNTDOWN_2:"Next video in $SECONDS_LEFT",
YTP_AUTOPLAY_PAUSED:"Busy? We've paused autoplay.",YTP_AUTOPLAY_PAUSED_2:"Autoplay is paused.",YTP_AUTOPLAY_CANCEL:"Cancel autoplay",YTP_WATCH_VIDEO_OR_PLAYLIST:"Watch $TITLE",YTP_CANCEL:"Cancel",YTP_ON_GOOGLE_PLUS:"On Google+",YTP_STILL_THERE:"Are you still there? If so, please click the button below to continue watching the playlist.",YTP_DISMISS:"OK",YTP_RESET:"Reset",YTP_STOP:"Stop live playback",YTP_LIKE:"Like",YTP_DISLIKE:"Dislike",YTP_SCREENREADER_VOLUME_SETTING:"volume",YTP_SCREENREADER_VOLUME_MUTED:"muted",
YTP_SCREENREADER_VOLUME_MUTE:"mute",YTP_SCREENREADER_VOLUME_UNMUTE:"unmute",YTP_SCREENREADER_CONTROL_TOGGLE:"toggle",YTP_SAMPLE_SUBTITLES:"Captions look like this",YTP_HTML5_CONTEXT_MENU_LINK:"About the HTML5 player",YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK:"This video format is not supported.",YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK:"Your browser does not currently recognize any of the video formats available. $BEGIN_LINKClick here to visit our frequently asked questions about HTML5 video.$END_LINK",
YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK_FLASH:"The Adobe Flash Player is required for video playback. $BEGIN_LINKGet the latest Flash Player$END_LINK.",YTP_ERROR_CAST_SESSION_DEVICE_MISMATCHED:"The device in the cast session doesn't match the requested one.",YTP_ERROR_CAST_SESSION_VIDEO_MISMATCHED:"The video in the cast session doesn't match the requested one.",YTP_ERROR_CAST_TOKEN_EXPIRED:"Cast session was expired. Please refresh.",YTP_ERROR_CAST_TOKEN_FAILED:"Cast session not available. Please refresh or try again later.",
YTP_ERROR_CAST_TOKEN_MALFORMED:"Invalid cast session. Please refresh or try again later.",YTP_ERROR_GEO_FAILURE:"This video isn't available in your country.",YTP_ERROR_INVALID_DRM_MESSAGE:"The DRM system specific message is invalid.",YTP_ERROR_RENTAL_EXPIRED:"This video's rental has expired.",YTP_ERROR_RETRYABLE_ERROR:"There was a temporary server error. Please try again later.",YTP_ERROR_SERVER_ERROR:"There was an internal server error. Please try again later.",YTP_ERROR_STREAMING_NOT_ALLOWED:"Playback not allowed because this video is pinned on another device.",
YTP_ERROR_UNSUPPORTED_DEVICE:"Playback isn't supported on this device.",YTP_ERROR_VIDEO_FORBIDDEN:"Access to this video is forbidden.",YTP_MDX_STATUS_CONNECTED:"Playing on",YTP_MDX_STATUS_CONNECTING:"Connecting to",YTP_MDX_STATUS_ERROR:"Error on",YTP_MDX_PLAYER_ERROR:"This video is not available for remote playback.",YTP_MDX_PLAYER_RECONNECT_TIME:"Please check your Internet connection. Retrying in $FORMATTED_TIME...",YTP_MDX_PLAYER_RECONNECT_BUTTON:"Reconnect",YTP_DEVICE_FALLBACK:"Sorry, this video is not available on this device.",
YTP_AD_INTERRUPT_MESSAGE:"Your video will play after this ad.",YTP_VISIT_ADVERTISERS_SITE:"Visit advertiser's site",YTP_PROGRESS_LABEL_2:"$PLAY_PROGRESS of $DURATION",YTP_PLAYLIST_NAME:"Playlist: $PLAYLIST_NAME",YTP_PLAYLIST_POSITION:"$CURRENT_POSITION/$PLAYLIST_LENGTH",YTP_SHARE_PANEL_ERROR:"An error occurred while retrieving sharing information. Please try again later.",YTP_PLAYLIST_AUTHOR_AND_POSITION:"by $AUTHOR \u2022 $CURRENT_POSITION/$PLAYLIST_LENGTH",YTP_PLAYER_NORMAL:"YouTube Video Player",
YTP_PLAYER_FULLSCREEN:"YouTube Video Player in Fullscreen",YTP_SPONSORED:"Sponsored",YTP_AD_SETTINGS_INFO:"Visit Google's $BEGIN_FORMATAd Settings$END_FORMAT to learn more about how ads are targeted or to opt out of personalized ads.",YTP_BEYOND_CRAWL:"Star Wars crawl",YTP_PIP:"Picture in Picture",YTP_AUTO_TRANSLATE:"Auto-translate"});this.app.subscribe("initializingmode",this.tw,this);this.app.subscribe("videoplayerreset",this.eE,this);this.app.subscribe("videodatachange",this.dE,this);this.app.subscribe("presentingplayerstatechange",
this.jw,this)}B(r7,Fr);r7.D="(max-width: 656px)";r7.C="(min-width: 657px)";r7.B="(min-width: 1294px) and (min-height: 630px)";r7.o="(min-width: 1720px) and (min-height: 980px)";r7.A="(min-width: 1320px) and (min-height: 870px)";r7.j="(min-width: 967px)";g=r7.prototype;g.initialize=function(a){this.M=w(a)?document.getElementById(a):a;this.j(this.M)};g.tw=function(){this.J=new Ke(0,0,0,0);this.F=new Ke(0,0,0,0)};g.addClass=function(a){se(this.element,arguments)};
function Kfa(a,b){a.o=b;if(!a.o.parentNode)try{Vf(a.B,a.o,0)}catch(d){var c="videoElement_: "+!!a.o+", containerElement: "+!!a.B+", containerElement.childNodes: "+!(!a.B||!a.B.childNodes)+", containerInitiallyTruthy: "+a.ca+", isDisposed: "+a.isDisposed();throw Error(c);}a.D&&(a.D.disconnect(),a.D=null);!a.app.V().experiments.xa("no_detect_bad_extensions2")&&window.MutationObserver&&(a.D=new MutationObserver(x(function(a){for(var b=0;b<a.length;b++){var c=a[b];"style"==c.attributeName&&"100%"==c.target.style.height&&
(console.warn("Detected an extension setting the video size to an invalid height, which hides video playback. Restoring the original height..."),this.J=new Ke(0,0,0,0),s7(this))}},a)),a.D.observe(a.o,{attributes:!0}));a.J=new Ke(0,0,0,0);s7(a);Lfa(a)}
function Lfa(a){K(a.o,"video-stream");K(a.o,"html5-main-video");var b=a.app.V();"3"==b.A&&a.o.setAttribute("controls",!0);b.wa&&a.o.setAttribute("data-no-fullscreen",!0);b.Rb&&a.o.setAttribute("webkit-playsinline","");b.Hd&&(a.K=Hm(a.o,"click",x(a.o.play,a.o)))}g.Su=function(){this.G&&aw(this.G);var a=x(this.Sh,this);this.G=$v(a,0)};g.Sh=function(){Je(this.Ka(),Ne(this.F))||this.Bj()};
g.Bj=function(){if(this.o){var a=this.Ka();if(!a.isEmpty()){var b=!Je(a,Ne(this.F)),c=s7(this);b&&(this.F.width=a.width,this.F.height=a.height);(c||b)&&this.O("resize")}}};g.dE=function(a,b){t7(this,b)};g.eE=function(a){a.getVideoData()&&t7(this,a.getVideoData())};
function t7(a,b){if(a.o){var c=a.app.V();Eu&&(a.o.setAttribute("x-webkit-airplay","allow"),b.title?a.o.setAttribute("title",b.title):a.o.removeAttribute("title"));var d;c.Ze&&b.videoId?d=b.xc(c,"default.jpg"):c.experiments.xa("legacy_poster_behavior")||Jc&&!Kc&&!Fu()||(d="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7");d&&(a.o.poster=d)}c=b.Oc("yt:bgcolor");a.B.style.backgroundColor=c?c:"";a.aa=Xv(b.Oc("yt:stretch"));c=b.Oc("yt:crop");a.X="fullwidth"==c?Infinity:Xv(c)}
g.Ka=function(){var a=this.app.V(),b=this.app.Ya.Ja();if(b&&Fu())return new N(window.outerWidth,window.outerHeight);if(b||a.vb){if(window.matchMedia&&(a="(width: "+window.innerWidth+"px) and (height: "+window.innerHeight+"px)",this.H&&this.H.media==a||(this.H=window.matchMedia(a)),this.H&&this.H.matches||Gu("aquos_dtv")))return new N(window.innerWidth,window.innerHeight)}else if(this.W){if(a.experiments.xa("player_scaling_360p_to_720p")&&this.ia.matches)return new N(this.element.clientWidth,this.element.clientHeight);
if(this.W.matches)return new N(426,240);a=this.app.na;if((a?this.ea:this.ga).matches)return new N(1280,720);if(a||this.fa.matches)return new N(854,480);if(this.na.matches)return new N(640,360)}return new N(this.element.clientWidth,this.element.clientHeight)};function qL(a){return a.o?new N(0<a.o.style.width.indexOf("px")?parseInt(a.o.style.width,10):a.o.clientWidth,0<a.o.style.height.indexOf("px")?parseInt(a.o.style.height,10):a.o.clientHeight):new N(0,0)}
function GG(a){return(a=a.o)?u7(a.videoWidth,a.videoHeight):NaN}function dG(a,b){var c=a.Ka(),d=v7(a,c,GG(a),w7(a),b);return new Ke((c.width-d.width)/2,(c.height-d.height)/2,d.width,d.height)}
function v7(a,b,c,d,e){c=a.aa||c;a=isNaN(c)?c:a.X||c;d=u7(b.width,b.height);var f;a>d?(f=isFinite(a)?a:c,f={width:b.width,height:b.width/f,fg:f}):a<d?f={width:b.height*a,height:b.height,fg:a}:f={width:b.width,height:b.height,fg:d};e||isNaN(c)||(c>a?f.width=f.height*c:c<a&&(f.height=f.width/c),f.fg=c);return f}function u7(a,b){return 1>Math.abs(ds*b-a)||1>Math.abs(ds/a-b)?ds:a/b}function w7(a){return Eu?!0:"3"!=a.app.V().A&&!isNaN(GG(a))}
function s7(a){var b=GG(a),c=a.Ka(),d=1,e=w7(a),f=!1,h=nr(a.app),k=h&&h.getPlayerState(),h=v7(a,c,b),l=a.app.V();!k||U(k,2)||Jz(k)?l.experiments.xa("container_overflow")?(a.B.style.overflow="hidden",b=new Ke(0,0,c.width,c.height)):(b=-c.height,Eu?b*=window.devicePixelRatio:Gc&&(b-=window.screen.height),b=new Ke(0,b,c.width,c.height)):(l.experiments.xa("container_overflow")&&(a.B.style.overflow=""),e&&!isNaN(b)?(d=h.fg/b,b=new Ke((c.width-h.width/d)/2,(c.height-h.height)/2,h.width/d,h.height)):b=new Ke(0,
0,c.width,c.height));Me(a.J,b)||(a.J=b,Gg(a.o,Ne(b)),ug(a.o,Oe(b)),f=!0);c=new Ke((c.width-h.width)/2,(c.height-h.height)/2,h.width,h.height);Me(a.F,c)||(a.F=c,Gg(a.T,c.width,c.height),ug(a.T,c.left,c.top),f=!0);og(a.o,"transform",1==d?"none":"scaleX("+d+")");return f}g.jw=function(){this.Bj()};g.R=function(){this.D&&(this.D.disconnect(),this.D=null);this.L&&(this.Z||uj(this.L),this.G&&aw(this.G));this.K&&Jm(this.K);this.C&&this.C.da();this.o=this.B=this.M=null;r7.N.R.call(this)};function x7(a,b,c,d){ax.call(this);T(this,a,"click",this.J);T(this,a,"dblclick",this.G);this.H=b;this.B=c;this.C=d||null;this.o=new oe(this.F,200,this);I(this,this.o);this.j=!0;this.A=!1;this.D=null}B(x7,ax);x7.prototype.J=function(a){this.C&&this.C(a)?this.A=!0:this.o.isActive()?(this.o.stop(),this.B(a),this.A=this.j=!1):(this.D=a,this.o.start(),this.j=!0)};x7.prototype.G=function(a){this.A?this.A=!1:this.j&&this.B(a)};x7.prototype.F=function(){this.H(this.D);this.j=!0};function y7(){this.j=[];this.o=[]}ba(y7);var Z6=t("yt.player.utils.VideoTagPool.instance_")||y7.getInstance();q("yt.player.utils.VideoTagPool.instance_",Z6,void 0);g=y7.prototype;g.In=function(a){if(!(this.j.length>=a)){a-=this.j.length;for(var b=0;b<a;b++){var c=z7(this);this.j.push(c)}}};
function z7(a,b,c){c=document.createElement(c?"audio":"video");qa(c,wz);Hm(c,"loadeddata",x(c.ev,c));Hm(c,"volumechange",x(c.gv,c));Ji&&6<=Jw&&Hm(c,"webkitbeginfullscreen",x(c.play,c));b||c.src||c.load();a.o.push(c);return c}g.lE=function(a,b){return this.j.length?this.j.pop():z7(this,a,b)};g.vB=function(a){a&&tb(this.o,a)&&($r(a),Mm(a),xb(this.o,a))};g.ks=function(a){return this.j.length>=(a||1)};g.Pu=function(){this.j=[];this.ks(4)?E(this.o,function(a){a.src||a.load();this.j.push(a)},this):this.In(4)};
y7.prototype.fillPool=y7.prototype.In;y7.prototype.getTag=y7.prototype.lE;y7.prototype.releaseTag=y7.prototype.vB;y7.prototype.hasTags=y7.prototype.ks;y7.prototype.activateTags=y7.prototype.Pu;function A7(a,b,c){Mk.call(this);this.B=a;this.L=x(b,null);this.o=0;this.D=!1;this.A=new Ge(NaN,NaN);this.j=new ax(this);I(this,this.j);b=c?4E3:3E3;this.H=new oe(pa(this.bb,1,!1),b,this);I(this,this.H);this.J=new oe(pa(this.bb,2,!1),b,this);I(this,this.J);this.K=new oe(pa(this.bb,512,!1),3E3,this);I(this,this.K);c||(this.F=T(this.j,a,"mouseover",this.gs),T(this.j,a,"mousemove",this.$D),T(this.j,a,"mouseleave",this.Bx));Ic?T(this.j,a,"keypress",this.mx):T(this.j,a,"focusin",this.Hv);this.C=T(this.j,
a,"mousedown",this.es);this.G=T(this.j,a,"touchstart",this.hs);this.M=null;this.bb(640,!0)}B(A7,Mk);g=A7.prototype;g.$D=function(a){a=Qm(a);if(!He(a,this.A)){var b=2;this.D&&(b|=8);this.A=a;this.bb(b,!0)}};g.Bx=function(){this.D&&this.bb(8,!0);this.bb(2,!1)};g.gs=function(a){var b=Qm(a);He(b,this.A)||(this.A=b,(a=Nm(a))&&this.L(a)&&(this.bb(4,!0),this.j.ua(this.F),this.F=T(this.j,this.B,"mouseout",this.aE)))};
g.aE=function(a){a=Pm(a);a&&this.L(a)||(this.A=new Ge(NaN,NaN),this.bb(4,!1),this.j.ua(this.F),this.F=T(this.j,this.B,"mouseover",this.gs))};g.mx=function(){this.bb(1,!0)};g.Hv=function(a){a=Nm(a);a instanceof Element&&!(0<a.tabIndex)||this.bb(1,!0)};g.es=function(){this.D=!0;this.j.ua(this.C);this.C=T(this.j,document,"mouseup",this.bE)};g.bE=function(){this.D=!1;this.bb(8,!1);this.j.ua(this.C);this.C=T(this.j,this.B,"mousedown",this.es)};
g.hs=function(a){if(a=a.changedTouches[0])this.M=a.identifier,this.j.ua(this.G),this.G=T(this.j,this.B,"touchend",this.cE),this.bb(1024,!0)};g.cE=function(a){for(var b,c=0;c<a.changedTouches.length;c++){var d=a.changedTouches[c];if(d.identifier==this.M){b=d;break}}b&&(this.j.ua(this.G),this.G=T(this.j,this.B,"touchstart",this.hs),this.bb(1024,!1))};
g.bb=function(a,b){this.isDisposed();var c=!this.o;b?(this.o|=a,a&1&&this.H.start(),a&2&&this.J.start(),a&512&&this.K.start()):(this.o&=~a,a&1&&this.H.stop(),a&2&&this.J.stop(),a&512&&this.K.stop());var d=!this.o;c!=d&&this.O("autohideupdate",d)};function B7(a,b){Vy.call(this,a,b);this.K=null;this.F=this.G=this.C=this.B=0;this.D=-75;K(this.element,"ytp-tv-static");C7(this,a,b)}B(B7,Vy);function D7(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 C7(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"),f=e.getImageData(0,0,b,c),h=b*c,k=0;k<h;k++){var l=4*k;f.data[l]=f.data[l+1]=f.data[l+2]=Math.floor(35*Math.random());f.data[l+3]=255}e.putImageData(f,0,0);a.K=d;a.G=D7(b);a.F=D7(c/10);a.context.scale(1.5,1.5);a.context.fillStyle="rgba(255, 255, 255, 0.02)"}}
B7.prototype.Ba=function(){B7.N.Ba.call(this);var a=this.L;this.H=new Date;this.J(a,75)};B7.prototype.L=function(){var a=1-1/1.5;this.B=(this.B+this.G)%(this.width*a);this.C=(this.C+this.F)%(this.height*a);this.context.drawImage(this.K,-1*this.B,-1*this.C);this.context.fillRect(0,this.D,this.width,75);this.D=(this.D+75+7)%this.height-75};B7.prototype.da=function(){tj(this.o);B7.N.da.call(this)};function E7(a){R.call(this,["div",["ytp-error"],["div","ytp-error-content",["div","ytp-error-content-wrap","{{content}}"]]]);this.C=a;this.B=[];void 0==Pu&&(a=document.createElement("canvas"),Pu=!(!a.getContext||!a.getContext("2d")));Pu&&(this.o=new B7(1,1),this.o.j(this.element,0),I(this,this.o));a=bG(this.C).Ka();this.o&&C7(this.o,a.width,a.height)}B(E7,R);E7.prototype.Ba=function(){E7.N.Ba.call(this);this.o&&this.o.Ba()};E7.prototype.da=function(){E7.N.da.call(this);this.o&&this.o.da()};
E7.prototype.D=function(a){var b=t("yt.www.feedback.showArticle"),c={as3:!1,html5:!0,player:!0,cpn:this.C.getVideoData().clientPlaybackNonce};b(3037019,"player_error",c)||Rm(a)};E7.prototype.R=function(){E7.N.R.call(this)};function Mfa(a,b,c){F7("add_to_watch_later_list",a,b,c)}function Nfa(a,b,c){F7("delete_from_watch_later_list",a,b,c)}
function F7(a,b,c,d){wk(c?c+"playlist_video_ajax?action_"+a+"=1":"/playlist_video_ajax?action_"+a+"=1",{method:"POST",yd:{feature:b.feature||null,authuser:b.Bb||null,pageid:b.pageId||null},Db:{video_ids:b.videoIds||null,source_playlist_id:b.sourcePlaylistId||null,full_list_id:b.fullListId||null,delete_from_playlists:b.EJ||null,add_to_playlists:b.wJ||null,plid:pj("PLAYBACK_ID")||null},context:b.context,onError:b.onError,kb:b.kb,Xb:b.Xb,withCredentials:!!d})};function G7(a){this.A=a;this.o=this.j=null}function H7(a){if(!a.j){a.j=new R(["canvas",{style:"display: none"}]);a.j.j(a.A);var b=a.j.element;try{a.o=b.getContext("webgl")}catch(c){}}}function I7(a){a.o=null;a.j&&(a.j.detach(),a.j=null)}G7.prototype.isDisposed=function(){return!this.A};G7.prototype.dispose=function(){I7(this);delete this.A};function J7(a){R.call(this,["div","ytp-bezel",{role:"status","aria-label":"{{label}}"},["div","ytp-bezel-icon"]]);this.o=new Pr(this,500);I(this,this.o);this.$=a;this.B=null}B(J7,R);function K7(a){var b=FA(a.$);Bz(b)?(b=a.$.getVideoData(),b.Fa&&!b.Kd?L7(a,3):L7(a,2),Rr(a.o,!0)):U(b,64)||(L7(a,1),Rr(a.o,!0))}
function L7(a,b){if(a.B!=b){a.B=b;var c,d;switch(b){case 2:c=Q("YTP_PAUSE");d=ai?'<div class="ytp-icon ytp-icon-pause-bezel"></div>':'<svg xmlns:xlink="http://www.w3.org/1999/xlink" height="100%" version="1.1" viewBox="0 0 40 40" width="100%"><defs><path d="m 12.22,11.11 0,17.77 6.66,0 0,-17.77 -6.66,0 z m 10,0 0,17.77 6.66,0 0,-17.77 -6.66,0 z" id="ytp-svg-33" /></defs><use class="ytp-svg-shadow" xlink:href="#ytp-svg-33" /><use class="ytp-svg-fill" xlink:href="#ytp-svg-33" /></svg>';break;case 1:c=
Q("YTP_PLAY");d=ai?'<div class="ytp-icon ytp-icon-play-bezel"></div>':'<svg xmlns:xlink="http://www.w3.org/1999/xlink" height="100%" version="1.1" viewBox="0 0 40 40" width="100%"><defs><path d="m 12.22,28.88 0,-17.77 16.66,8.91 -16.66,8.86 z" id="ytp-svg-35" /></defs><use class="ytp-svg-shadow" xlink:href="#ytp-svg-35" /><use class="ytp-svg-fill" xlink:href="#ytp-svg-35" /></svg>';break;case 3:c=Q("YTP_STOP"),d=ai?'<div class="ytp-icon ytp-icon-stop-bezel"></div>':'<svg xmlns:xlink="http://www.w3.org/1999/xlink" height="100%" version="1.1" viewBox="0 0 40 40" width="100%"><defs><path d="m 11.11,11.11 17.77,0 0,17.77 -17.77,0 0,-17.77 z" id="ytp-svg-45" /></defs><use class="ytp-svg-shadow" xlink:href="#ytp-svg-45" /><use class="ytp-svg-fill" xlink:href="#ytp-svg-45" /></svg>'}var e=
a.element.children[0];M(e,"ytp-bezel-icon-play",1==b);Ar(a,"label",c);e.innerHTML=d}};function M7(a,b){var c=bG(a).Ka();R.call(this,["div","",["div","ytp-tooltip-bg","",["div","ytp-tooltip-duration","{{duration}}"]],["div","ytp-tooltip-text-wrapper",["div","ytp-tooltip-image"],["div","ytp-tooltip-title","{{title}}"],["span","ytp-tooltip-text","{{text}}"]]]);this.F=a;this.Z=b;this.L=this.ma["ytp-tooltip-bg"];this.fa=this.ma["ytp-tooltip-image"];this.X=x(this.Az,this);this.ea=x(this.Kl,this,1);this.ca=x(this.Kl,this,3);this.ga=x(this.Kl,this,4);this.o=null;this.H=new Pr(this,100);I(this,
this.H);this.K=this.G=this.B=null;this.C=NaN;this.J="";this.T=0;this.W=c.width;this.M=!0;this.aa=c;this.D=1;this.U=new oe(this.vx,250,this);I(this,this.U)}B(M7,R);function N7(a,b){switch(b){case 1:case 2:return a.ea;case 3:return a.ca;default:return a.ga}}function O7(a,b){if(null!=a.B)if(b)switch(a.B){case 1:case 3:case 4:P7(a);Rr(a.H,!1,400);break;default:Rr(a.H)}else a.H.da();a.M=b}
function Q7(a,b,c){if(a.Z)return v;var d=c||4;b.addEventListener("mouseover",N7(a,d));return x(function(){this.o==b&&this.Ee();b.removeEventListener("mouseover",N7(this,d))},a)}g=M7.prototype;
g.Kl=function(a,b){var c=b.currentTarget;if(!this.B){isNaN(this.C)||(this.C=NaN,this.L.style.background="");this.o=c;this.o.addEventListener("mouseout",this.X);this.J=this.o.getAttribute("title");this.o.removeAttribute("title");this.element.className="ytp-tooltip";if(c=this.o.getAttribute("data-tooltip-image"))this.fa.style.backgroundImage="url("+c+")";M(this.element,"ytp-tooltip-image-enabled",!!c);this.B=a;this.o.removeEventListener("mouseover",N7(this,this.B));1==this.B||2==this.B?K(this.element,
"ytp-bottom"):3==this.B&&K(this.element,"ytp-top");this.F.addEventListener("resize",this.Gs,this);this.M&&(P7(this),Rr(this.H,!1,400))}};
function P7(a){var b=a.o.getAttribute("data-tooltip-text");Ar(a,"text",b||a.J);if(b){b=a.o.getAttribute("data-duration");a.update({title:a.J,duration:b});var c=a.o.getAttribute("data-preview"),d=96*a.D,e=54*a.D,f=120*a.D,h=90*a.D;a.L.style.width=d+"px";a.L.style.height=e+"px";a.L.style.background=c?"#000 url("+c+") "+(d-f)/2+"px "+(e-h)/2+"px/"+f+"px "+h+"px":"";se(a.element,["ytp-text-detail","ytp-preview"]);M(a.element,"ytp-has-duration",!!b)}else ue(a.element,["ytp-text-detail","ytp-preview","ytp-has-duration"]);
b=Jg(a.o);c=Eg(a.o,a.F.sa());R7(a,c.x+b.width/2,c.y+b.height/2,b.height)}function R7(a,b,c,d){a.element.style.left="0px";a.element.style.top="";var e=Jg(a.element);b-=e.width/2;switch(a.B){case 1:case 2:b=De(b,a.T,a.T+a.W-e.width);break;case 3:c=bG(a.F).Ka().width;b=De(b,12,c-e.width-12);break;default:var f=bG(a.F).Ka();b=De(b,12,f.width-e.width-12);a.element.style.top=(c>f.height/2?c-d/2-12-e.height:c+d/2+12)+"px"}a.element.style.left=b+"px"}
function S7(a){a.o&&a.o.hasAttribute("title")&&(a.J=a.o.getAttribute("title"),a.o.removeAttribute("title"),a.M&&P7(a))}g.Az=function(a){(a=Pm(a))&&bg(this.o,a)||this.Ee()};g.Fs=function(a,b){if(a<=this.C&&this.C<=b){var c=this.C;this.C=NaN;T7(this,c)}};function T7(a,b){M(a.element,"ytp-preview",0<=b);if(!(0>b||b==a.C)){a.C=b;var c=96*a.D,d=96*a.D,e=Ev(a.K,a.C,c);G4(a.L,e,c,d,!0);a.U.start()}}g.vx=function(){Hv(this.K,this.C,96*this.D)};g.Gs=function(){Je(bG(this.F).Ka(),this.aa)||this.Ee()};
g.Ee=function(){switch(this.B){case 1:case 3:case 4:this.F.removeEventListener("resize",this.Gs,this);this.o.removeEventListener("mouseout",this.X);this.o.addEventListener("mouseover",N7(this,this.B));this.o.setAttribute("title",this.J);this.J="";this.o=null;break;case 2:this.G&&(this.G=null,this.K.unsubscribe("l",this.Fs,this),this.K=null),this.F.removeEventListener("videoready",this.Ee,this),this.U.stop()}this.B=null;this.M&&this.H.da()};
g.ig=function(a){for(var b=0;b<arguments.length;b++)arguments[b]==this.B&&this.Ee()};g.R=function(){null!=this.B&&this.Ee();M7.N.R.call(this)};function U7(a,b,c){var d=["button",["ytp-button","ytp-cards-button"],{tabindex:18,"aria-label":Q("YTP_CARDS_BUTTON_ARIA_LABEL"),"aria-owns":"ytp-cards","aria-haspopup":!0,"aria-expanded":"{{menuopen}}"}];R.call(this,d);this.element.innerHTML=ai?'<div class="ytp-icon ytp-icon-info-card"></div>':'<svg xmlns:xlink="http://www.w3.org/1999/xlink" height="100%" version="1.1" viewBox="0 0 36 36" width="100%"><defs><path d="M18,8 C12.47,8 8,12.47 8,18 C8,23.52 12.47,28 18,28 C23.52,28 28,23.52 28,18 C28,12.47 23.52,8 18,8 L18,8 Z M17,16 L19,16 L19,24 L17,24 L17,16 Z M17,12 L19,12 L19,14 L17,14 L17,12 Z" id="ytp-svg-21" /></defs><use class="ytp-svg-shadow" xlink:href="#ytp-svg-21" /><use class="ytp-svg-fill" xlink:href="#ytp-svg-21" /></svg>';
this.$=a;this.D=b;this.F=c;this.B=null;this.o=new Pr(this,250,!0);I(this,this.o);this.da();this.P("click",this.C);SC(this,!0)}B(U7,R);function SC(a,b){b?(a.element.title=Q("YTP_DRAWER_HEADER_TEXT_2"),a.B=Q7(a.D.o,a.element,3)):(a.B(),a.B=null,a.element.title="")}U7.prototype.R=function(){this.B&&this.B();U7.N.R.call(this)};U7.prototype.C=function(){var a=re(this.$.sa(),"ytp-cards-teaser-shown");Gj("iv-teaser-clicked",a);this.F()};function V7(a){this.aa=this.W=null;Fr.call(this,a);this.ca=new Pr(this,100);this.X=null}B(V7,Fr);g=V7.prototype;g.Ba=function(){V7.N.Ba.call(this);this.W=S(this,window,"blur",this.Ab);this.aa=S(this,document,"click",this.ME)};g.da=function(){V7.N.da.call(this);this.X=null;this.W&&(this.ua(this.W),this.ua(this.aa))};g.Ve=function(a){this.X=a;Rr(this.ca)};g.Ab=function(){this.ca.da();this.ua(this.W);this.ua(this.aa)};
g.ME=function(a){var b=Om(a);b&&(bg(this.element,b)||this.X&&bg(this.X,b)||!Ky(a))||this.Ab()};function W7(a){return a.A&&3!=a.ca.j};function X7(a,b){this.B=[a];this.C=a;Y7(this,a);this.size=new N(0,0);this.D=this.G=null;this.ga=this.fa=0;V7.call(this,["div",["ytp-popup",b||null],{child:a}]);this.P("keydown",this.KE)}B(X7,V7);function Y7(a,b){a.C.unsubscribe("size-change",a.$g,a);a.C=b;a.C.subscribe("size-change",a.$g,a)}g=X7.prototype;g.Ba=function(){X7.N.Ba.call(this);this.$g();this.C.focus();this.O("show",!0)};
g.da=function(){X7.N.da.call(this);1>=this.B.length||(this.C.unsubscribe("back",this.ae,this),this.B[this.B.length-1].detach(),Y7(this,this.B[0]),this.B=[this.C],this.C.j(this.element),og(this.C.element,"transform","translateX(0)"),og(this.C.element,"opacity","1"),this.$g());this.O("show",!1)};
function Z7(a){Gg(a.element,a.fa||"100%",a.ga||"100%");var b=a.C;b.element.style.width="";b.element.style.height="";b.element.style.maxWidth="100%";b.element.style.maxHeight="100%";b.B.style.height="";var c=Jg(b.element);c.width+=1;c.height+=1;b.element.style.width=c.width+"px";b.element.style.height=c.height+"px";b.element.style.maxWidth="";b.element.style.maxHeight="";var d=0;b.C&&(d=Jg(b.ma["ytp-panel-header"]).height);b.B.style.height=c.height-d+"px";a.size=c}
g.$g=function(){this.A&&(Z7(this),Gg(this.element,this.size))};function $7(a,b){a.B.push(b);a8(a,a.C,b)}g.ae=function(){var a=this.B.pop();a8(this,a,this.B[this.B.length-1],!0)};
function a8(a,b,c,d){a.G&&pe(a.G);a.D&&pe(a.D);b.unsubscribe("back",a.ae,a);c.subscribe("back",a.ae,a);c.j(a.element);Y7(a,c);if(a.A){c.focus();a.element.scrollLeft=0;a.element.scrollTop=0;var e=a.size;Z7(a);d=0==!d?-e.width:a.size.width;Gg(a.element,e);og(c.element,"transform","translateX("+d+"px)");og(c.element,"opacity","0");a.G=new oe(pa(a.PB,b,c,-d),20,a);a.G.start()}else og(c.element,"transform","translateX(0)"),og(c.element,"opacity","1"),b.detach()}
g.PB=function(a,b,c){this.G.dispose();this.G=null;b8(this,!0,[a,b]);og(a.element,"transform","translateX("+c+"px)");og(a.element,"opacity","0");og(b.element,"transform","translateX(0)");og(b.element,"opacity","1");Gg(this.element,this.size);this.D=new oe(pa(this.Tx,a,b),250,this);this.D.start()};g.Tx=function(a,b){b8(this,!1,[a,b]);a.detach();this.D.dispose();this.D=null};function b8(a,b,c){for(var d=0;d<c.length;d++)M(c[d].element,"ytp-panel-animating",b);M(a.element,"ytp-popup-animating",b)}
g.KE=function(a){if(!Sm(a))switch(Tm(a)){case 27:this.Ab();Rm(a);break;case 37:1<this.B.length&&this.ae();Rm(a);break;case 39:Rm(a)}};g.R=function(){X7.N.R.call(this);this.G&&this.G.dispose();this.D&&this.D.dispose()};function c8(a){Fr.call(this,["div","ytp-menu","{{content}}",{role:"menu",id:a||null}]);this.o=[]}B(c8,Fr);function d8(a,b,c){if(c)a.o.push(b),a.element.appendChild(b.element);else{c=Gb(a.o,b,a.mv);if(0<=c)return;c=~c;Db(a.o,c,0,b);Vf(a.element,b.element,c)}b.subscribe("size-change",a.ql,a);a.O("size-change")}g=c8.prototype;g.remove=function(a){xb(this.o,a);a.unsubscribe("size-change",this.ql,this);a=Bb(this.o);this.Fb(a);this.O("size-change")};
g.removeAll=function(){for(var a=0;a<this.o.length;a++)this.o[a].unsubscribe("size-change",this.ql,this);this.o=[];this.Fb([]);this.O("size-change")};g.mv=function(a,b){return b.priority-a.priority};g.ql=function(){this.O("size-change")};g.focus=function(){for(var a=0,b=0;b<this.o.length;b++)if("true"==this.o[b].element.getAttribute("aria-checked")){a=b;break}this.o[a].element.focus()};function e8(a,b,c,d){Fr.call(this,a);this.priority=b;c&&this.C(c);d&&this.Fb(d)}B(e8,Fr);function f8(a,b,c){b=b?b:[];b.push("ytp-menuitem");a=a?a:{};a.tabindex=38;"role"in a||(a.role="menuitem");return[c?"a":"div",b,a,["div","ytp-menuitem-label","{{label}}"],["div","ytp-menuitem-content","{{content}}"]]}e8.prototype.C=function(a){Ar(this,"label",a)};function g8(a,b,c,d){var e=["div","ytp-panel"];if(c){var f="ytp-panel-title",h=["div","ytp-panel-header",["button",["ytp-button",f],{tabindex:38},c]];if(d){var k="ytp-panel-options";h.push(["button",["ytp-button",k],{tabindex:38},Q("YTP_OPTIONS")])}e.push(h)}e.push(["div","ytp-panel-content",{child:b}]);Fr.call(this,e);this.B=this.ma["ytp-panel-content"];this.F=b;this.C=!1;c&&(S(this,this.ma[f],"click",this.J),this.C=!0,d&&S(this,this.ma[k],"click",d));this.F.subscribe("size-change",this.D,this);
S(this,a,"fullscreentoggled",this.D)}B(g8,Fr);g8.prototype.D=function(){this.O("size-change")};g8.prototype.focus=function(){this.F.focus()};g8.prototype.J=function(){this.O("back")};function h8(a){var b=f8({"aria-haspopup":!0});e8.call(this,b,a);this.P("keydown",this.o)}B(h8,e8);h8.prototype.o=function(a){Sm(a)||39!=Tm(a)||(this.element.click(),Rm(a))};h8.prototype.C=function(a){h8.N.C.call(this,a);this.O("size-change")};function i8(a,b){a.element.setAttribute("aria-haspopup",b)};function j8(a){this.o=a;this.Z=new ax(this);I(this,this.Z);this.H=new Fr(["div",["ytp-copytext","ytp-no-contextmenu"],{draggable:!1,tabindex:1},"{{text}}"]);I(this,this.H);this.ea=new g8(a,this.H);I(this,this.ea);var b=new c8("contextmenu");I(this,b);this.L=new h8(8);I(this,this.L);d8(b,this.L,!0);this.L.P("click",this.tE,this);this.K=new h8(6);I(this,this.K);d8(b,this.K,!0);this.K.P("click",this.az,this);this.J=new h8(5);I(this,this.J);d8(b,this.J,!0);this.J.P("click",this.sE,this);this.T=new e8(f8({href:"{{href}}",
target:"_blank"},void 0,!0),4,Q("YTP_REPORT_ISSUE"));I(this,this.T);d8(b,this.T,!0);this.T.P("click",this.vE,this);this.M=new h8(3);I(this,this.M);d8(b,this.M,!0);this.M.P("click",this.rE,this);var c=new e8(f8(),2,Q("YTP_SHOW_VIDEO_INFO"));I(this,c);d8(b,c,!0);c.P("click",this.wE,this);c="//"+aI(this.o.V())+"/html5";c=new e8(f8({href:c,target:"_blank"},void 0,!0),1,Q("YTP_HTML5_CONTEXT_MENU_LINK"));I(this,c);d8(b,c,!0);c.P("click",this.Gx,this);b=new g8(this.o,b);I(this,b);X7.call(this,b);K(this.element,
"ytp-contextmenu");b=document.queryCommandSupported&&document.queryCommandSupported("copy");Mi&&Tc(43)&&(b=!0);Ii&&!Tc(41)&&(b=!1);b&&(this.F=new R(["div","ytp-html5-clipboard"]),I(this,this.F),this.F.j(this.element));k8(this);S(this,this.o,"fullscreentoggled",this.qE);S(this,this.o,"pageTransition",this.uE);S(this,this.o,"videodatachange",this.xE);S(this,bG(this.o),"contextmenu",this.Jy);S(this,this.H.element,"click",this.Ky);a=a.getVideoData();l8(this,a);this.j(document.body)}B(j8,X7);
function m8(a,b){var c;if(a.F){dg(a.F.element,b);Er(a.F.element);try{c=document.execCommand("copy")}catch(d){}}c?a.Ab():(a.H.Fb(b,"text"),$7(a,a.ea),Er(a.H.element),a.F&&(a.F=null,k8(a)))}g=j8.prototype;g.da=function(){cx(this.Z);j8.N.da.call(this)};g.Gx=function(a){Ky(a)&&this.o.pauseVideo();this.Ab()};
g.Jy=function(a){if("gvn"!=this.o.V().j){var b=Om(a);if(!this.A&&(!b||"A"!=b.tagName&&!kg(b,"ytp-no-contextmenu"))){Rm(a);this.element.style.left="";this.element.style.top="";var c=Qm(a);c.x++;c.y++;b=zg(document.body);a=this.size;c=c.clone();a=a.clone();if(b){var d=c,e=a,f=5;65==(f&65)&&(d.x<b.left||d.x>=b.right)&&(f&=-2);132==(f&132)&&(d.y<b.top||d.y>=b.bottom)&&(f&=-5);d.x<b.left&&f&1&&(d.x=b.left);if(f&16){var h=d.x;d.x<b.left&&(d.x=b.left);d.x+e.width>b.right&&(e.width=Math.min(b.right-d.x,h+
e.width-b.left),e.width=Math.max(e.width,0))}d.x+e.width>b.right&&f&1&&(d.x=Math.max(b.right-e.width,b.left));d.y<b.top&&f&4&&(d.y=b.top);f&32&&(h=d.y,d.y<b.top&&(d.y=b.top),d.y+e.height>b.bottom&&(e.height=Math.min(b.bottom-d.y,h+e.height-b.top),e.height=Math.max(e.height,0)));d.y+e.height>b.bottom&&f&4&&(d.y=Math.max(b.bottom-e.height,b.top))}b=new Ke(0,0,0,0);b.left=c.x;b.top=c.y;b.width=a.width;b.height=a.height;ug(this.element,Oe(b));this.Ve();T(this.Z,document,"contextmenu",this.Ry)}}};
g.Ky=function(){Er(this.H.element)};g.Ry=function(a){Sm(a)||bg(this.element,Om(a))||this.Ab()};g.qE=function(a){this.Ab();this.j(a?this.o.sa():document.body)};g.rE=function(){m8(this,this.o.sm(!0))};g.sE=function(){m8(this,this.o.mr())};g.tE=function(){m8(this,this.o.getVideoUrl(!0,!0))};g.az=function(){m8(this,this.o.getVideoUrl(!1,!0))};g.uE=function(){this.Ab()};
g.vE=function(a){var b=this.o,c=nr(b.app);c&&c.nj(new Qw("feedback",!1,{gpu:n8(b.app)}));az(this.o.V())&&Ky(a)&&!t("yt.www.feedback.start")(void 0,{as3:!1,html5:!0,player:!0})&&(this.o.Ja()&&Vz(this.o),Rm(a));this.Ab()};g.wE=function(){this.o.rr();this.Ab()};g.xE=function(a,b){l8(this,b)};
function l8(a,b){var c=a.o.V(),d=!c.B&&!!b.videoId;"play"!=c.j?c="https://support.google.com/youtube/?p=report_playback":(c={contact_type:"playbackissue",html5:1,plid:b.playbackId,ei:b.eventId,v:b.videoId,p:"movies_playback"},b.o&&(c.fmt=b.o.id),b.clientPlaybackNonce&&(c.cpn=b.clientPlaybackNonce),b.S&&(c.partnerid=b.S),c=uh("//support.google.com/googleplay/",c));a.J.yb(d&&b.allowEmbed);a.L.yb(d);a.K.yb(d&&!b.Fa);a.T.Fb(c,"href")}
function k8(a){var b=!!a.F;a.M.C(Q(b?"YTP_COPY_DEBUG_INFO":"YTP_GET_DEBUG_INFO"));i8(a.M,!b);a.J.C(Q(b?"YTP_EMBED_COPY":"YTP_GET_EMBED"));i8(a.J,!b);a.L.C(Q(b?"YTP_COPY_VIDEO_URL":"YTP_GET_VIDEO_URL"));i8(a.L,!b);a.K.C(Q(b?"YTP_COPY_VIDEO_URL_AT_TIME":"YTP_GET_VIDEO_URL_AT_TIME"));i8(a.K,!b)};function o8(a){this.D=new ax(this);Sr.call(this,a,["div",["ytp-thumbnail-overlay","ytp-cued-thumbnail-overlay"]]);this.C=new oe(this.os,0,this);I(this,this.C);this.os();S(this,a,"presentingplayerstatechange",this.yE)}B(o8,Sr);g=o8.prototype;g.Ba=function(){this.A||(T(this.D,this.o,"videodatachange",this.C.Of,this.C),T(this.D,this.o,"videoplayerreset",this.C.Of,this.C));o8.N.Ba.call(this)};g.da=function(){cx(this.D);o8.N.da.call(this)};
g.yE=function(a){var b=this.o.V();az(b)&&(a=Jz(a.state)&&!Jz(a.j)||wJ(this.o)&&U(a.state,2),og(this.element,"transition-delay",a?"2s":""));this.C.Of()};g.os=function(){3==this.o.getPresentingPlayerType()?Rr(this.B):p8(this.B,this.o,FA(this.o));this.A&&3!=this.B.j&&this.$B(this.o.bc(),this.o.getVideoData())};function p8(a,b,c){b.V();var d=Jz(c);b=U(c,2)&&!vJ(b);d||b?Rr(a):(a.da(),U(c,1)||a.stop())}
g.$B=function(a){for(var b=this.o.V(),c,d=0;d<arguments.length;d++){var e=arguments[d];if(!(!e||e instanceof Sx&&!e.videoId)){if(!b.isMobile){c=bG(this.o).Ka();var f=c.width,h=c.height;if(900<f||600<h)if(c=e.xc(b,"maxresdefault.jpg"))break;if(430<f||320<h)if(c=e.xc(b,"sddefault.jpg")||e.xc(b,"hqdefault.jpg")||e.xc(b,"mqdefault.jpg"))break}if(c=e.xc(b,"default.jpg"))break}}this.element.style.backgroundImage=c?"url("+c+")":""};function q8(a,b,c,d,e,f,h){ax.call(this);this.j=a;this.J=c;this.F=d;this.A=e;this.G=f;this.H=h;this.o="";a=pa(this.D,!1);T(this,b,"mousedown",a);T(this,c.element,"mousedown",a);T(this,b,"keydown",this.B);T(this,c.element,"keydown",this.B);T(this,b,"keyup",this.C);T(this,c.element,"keyup",this.C)}B(q8,ax);
q8.prototype.B=function(a){var b=!1,c=Tm(a),d=Om(a),e=!a.altKey&&!a.ctrlKey&&!a.metaKey,f=!1,h=!1,k=this.j.V();Sm(a)?(e=!1,h=!0):k.fb&&(e=!1);if(9==c)b=!0;else{if(d)switch(c){case 32:case 13:if("BUTTON"==d.tagName||"A"==d.tagName)b=!0,e=!1;else if(e){var l=d.getAttribute("role");!l||"option"!=l&&"button"!=l&&0!=l.indexOf("menuitem")||(b=!0,d.click(),f=!0)}break;case 37:case 39:case 36:case 35:b="slider"==d.getAttribute("role");break;case 38:case 40:l=d.getAttribute("role"),d=38==c?d.previousSibling:
d.nextSibling,"slider"==l?b=!0:e&&("option"==l?(d&&"option"==d.getAttribute("role")&&d.focus(),f=b=!0):l&&0==l.indexOf("menuitem")&&(d&&d.hasAttribute("role")&&0==d.getAttribute("role").indexOf("menuitem")&&d.focus(),f=b=!0))}if(this.A.A&&e&&!f)switch(c){case 65:case 68:case 87:case 83:case 107:case 109:r8(this.A,c),f=!0}k.Cb||!e||f||(f=String.fromCharCode(c).toLowerCase(),this.o+=f,0=="awesome".indexOf(this.o)?(f=!0,7==this.o.length&&(k=this.j.sa(),l=!re(k,"ytp-color-party"),M(k,"ytp-color-party",
l))):(this.o=f,f=0=="awesome".indexOf(this.o)));if(e&&!f){switch(c){case 32:K7(this.G);Bz(FA(this.j))?this.j.pauseVideo():this.j.Tc();h=f=!0;break;case 37:this.j.Uc(-5);h=f=!0;break;case 39:this.j.Uc(5);h=f=!0;break;case 38:this.j.setVolume(Math.min(this.j.Eb()+5,100));h=f=!0;break;case 40:this.j.setVolume(Math.max(this.j.Eb()-5,0));h=f=!0;break;case 27:this.H()&&(h=f=!0);break;case 36:this.j.Tb(0);h=f=!0;break;case 35:this.j.Tb(Infinity);h=f=!0;break;case 67:JI(this.j.app.B,"captions")&&(xJ(this.j),
h=f=!0);break;case 66:s8(this,"background")&&(f=!0);break;case 79:s8(this,"textOpacity")&&(f=!0);break;case 87:s8(this,"windowOpacity")&&(f=!0);break;case 187:s8(this,"fontSizeIncrement",!1,!0)&&(f=!0);break;case 189:s8(this,"fontSizeIncrement",!0,!0)&&(f=!0)}var n;48<=c&&57>=c?n=c-48:96<=c&&105>=c&&(n=c-96);isNaN(n)||(h=this.j.Qe(),this.j.Tb(n/10*(h.seekableEnd-h.seekableStart)+h.seekableStart),h=f=!0)}}b&&this.D(!0);(b||h)&&this.F.bb(2,!0);(f||e&&hJ(this,c,a.shiftKey))&&Rm(a);b=this.j;b.V().jb&&
(a={keyCode:Tm(a),altKey:a.altKey,ctrlKey:a.ctrlKey,metaKey:a.metaKey,shiftKey:a.shiftKey,handled:Sm(a),fullscreen:b.Ja()},b.app.Hi("onKeyPress",a))};q8.prototype.C=function(a){this.A.A&&t8(this.A,Tm(a))};
function hJ(a,b,c){var d=!1,e=a.j.V();if(!e.fb){switch(b){case 80:c&&(a.j.sj(),d=!0);break;case 78:c&&(a.j.rj(),d=!0);break;case 74:a.j.Uc(-10);d=!0;break;case 76:a.j.Uc(10);d=!0;break;case 77:a.j.nc()?a.j.unMute():a.j.mute();d=!0;break;case 75:K7(a.G);Bz(FA(a.j))?a.j.pauseVideo():a.j.Tc();d=!0;break;case 190:if(c&&e.T)for(b=a.j.oj(),c=a.j.app.T,e=0;e<b.length-1;e++)b[e]==c&&(a.j.uj(b[e+1]),d=!0);break;case 188:if(c&&e.T)for(b=a.j.oj(),c=a.j.app.T,e=b.length-1;1<=e;e--)b[e]==c&&(a.j.uj(b[e-1]),d=
!0);break;case 70:Sz(a.j)&&(Vz(a.j),d=!0)}d&&a.F.bb(2,!0)}return d}q8.prototype.D=function(a){M(this.j.sa(),"ytp-keyboard-focus",a);M(this.J.element,"ytp-keyboard-focus",a)};
function s8(a,b,c,d){if(JI(a.j.app.B,"captions")){for(var e=a.j.rb("captions","displaySettings"),f,h=0;h<WJ.length;h++){var k=WJ[h];if(k.option==b){f=k.options;break}}for(var l,h=0;h<f.length;h++)f[h].option==e[b]&&(l=h);if(d)if(c){if(0==l)return!1}else if(l==f.length-1)return!1;d={};d[b]=f[(l+(c?f.length-1:1))%f.length].option;yJ(a.j,d);return!0}return!1};function u8(a){var b=["ytp-large-play-button","ytp-button"],c=a.V();(c.useTabletControls||c.isMobile)&&b.push("ytp-touch-device");R.call(this,["button",b,{tabindex:23,"aria-label":"{{label}}"}]);b=a.V();this.element.innerHTML=b.Cb?ai?'<div class="ytp-icon ytp-icon-house-brand-large-play-button"></div>':'<svg height="100%" version="1.1" viewBox="0 0 60 60" width="100%"><path class="ytp-large-play-button-bg" clip-rule="evenodd" d="M59.6,1.35c0.26,.5,.4,1.13,.4,1.9v53.5c0,.76-0.13,1.4-0.4,1.9c-0.5,.9-1.45,1.35-2.85,1.35H3.25c-1.4,0-2.33-0.43-2.8-1.3C0.15,58.16,0,57.51,0,56.75V3.25c0-0.83,.16-1.5,.5-2C1,.41,1.91,0,3.25,0h53.5C58.15,0,59.1,.45,59.6,1.35z M21,41.65l22.7-11.8L21,18V41.65z" fill="#1f1f1f" fill-rule="evenodd" /><path d="M21,41.65 L21,18 L43.7,29.85 L21,41.65 Z" fill="#fff" /></svg>':
ai?'<div class="ytp-icon ytp-icon-large-play-button"></div>':'<svg height="100%" version="1.1" viewBox="0 0 68 48" width="100%"><path class="ytp-large-play-button-bg" d="m .66,37.62 c 0,0 .66,4.70 2.70,6.77 2.58,2.71 5.98,2.63 7.49,2.91 5.43,.52 23.10,.68 23.12,.68 .00,-1.3e-5 14.29,-0.02 23.81,-0.71 1.32,-0.15 4.22,-0.17 6.81,-2.89 2.03,-2.07 2.70,-6.77 2.70,-6.77 0,0 .67,-5.52 .67,-11.04 l 0,-5.17 c 0,-5.52 -0.67,-11.04 -0.67,-11.04 0,0 -0.66,-4.70 -2.70,-6.77 C 62.03,.86 59.13,.84 57.80,.69 48.28,0 34.00,0 34.00,0 33.97,0 19.69,0 10.18,.69 8.85,.84 5.95,.86 3.36,3.58 1.32,5.65 .66,10.35 .66,10.35 c 0,0 -0.55,4.50 -0.66,9.45 l 0,8.36 c .10,4.94 .66,9.45 .66,9.45 z" fill="#1f1f1e" fill-opacity="0.9" /><path d="m 26.96,13.67 18.37,9.62 -18.37,9.55 -0.00,-19.17 z" fill="#fff" /><path d="M 45.02,23.46 45.32,23.28 26.96,13.67 43.32,24.34 45.02,23.46 z" fill="#ccc" /></svg>';
this.o=a;this.C=!1;this.B=new Pr(this,250);I(this,this.B);S(this,a,"presentingplayerstatechange",this.F);b.C||(S(this,a,"resize",this.D),this.D());v8(this,FA(a))}B(u8,R);u8.prototype.D=function(){var a=bG(this.o).Ka();M(this.element,"ytp-small",400>a.width)};u8.prototype.F=function(a){var b=this.o.V();az(b)&&og(this.element,"transition-delay",Jz(a.state)&&!Jz(a.j)?"2s":"");v8(this,a.state)};
function v8(a,b){if(a.o.V().Xe&&!a.C){p8(a.B,a.o,b);var c;c=(c=a.o.getVideoData())&&c.title?Q("YTP_WATCH_VIDEO_OR_PLAYLIST",{TITLE:c.title}):Q("YTP_PLAY");Ar(a,"label",c)}else a.da()};function w8(a){Fr.call(this,["div","ytp-mini-progress-bar-container",["div",["ytp-mini-progress-bar","ytp-swatch-background-color"]]]);this.o=a;this.F=this.ma["ytp-mini-progress-bar"];this.B=null;S(this,a,"presentingplayerstatechange",this.C);a.V();x8(this)&&S(this,a,"fullscreentoggled",this.C);this.da();this.C()}B(w8,Fr);w8.prototype.D=function(){var a=this.o.Qe();this.F.style.width=100*E4(new B4(a.seekableStart,a.seekableEnd),a.current,0)+"%"};
function x8(a){a=a.o.V();return a.experiments.xa("player_mini_progress_bar")&&az(a)}w8.prototype.C=function(){this.o.V();2==this.o.getPresentingPlayerType()||x8(this)&&!this.o.Ja()?this.B||(this.Ba(),this.B=S(this,this.o,"progresssync",this.D),this.D()):this.B&&(this.da(),this.ua(this.B),this.B=null)};function y8(a,b,c){var d;d=b.qb(c);var e=a.V(),f=d.xc(e,"default.jpg");R.call(this,["a",["ytp-video-menu-item","ytp-button"],{role:"menuitemradio","aria-label":d.title,tabindex:20,href:e.getVideoUrl(d.videoId,b.C?b.C.toString():null)},["div","ytp-video-menu-item-index",""+(c+1)],["div","ytp-video-menu-item-now-playing","\u25b6"],["div","ytp-video-menu-item-thumbnail",{style:f?"background-image: url("+f+");":null}],["div","ytp-video-menu-item-title",d.title],["div","ytp-video-menu-item-author",Q("YTP_UPLOADED_BY_2",
{AUTHOR:d.author})]]);this.o=a;this.B=c;this.P("click",this.C)}B(y8,R);y8.prototype.C=function(a){Tz(a,this.o)&&this.o.wm(this.B)};function z8(a,b){R.call(this,["div","ytp-playlist-menu",{role:"dialog"},["div","ytp-playlist-menu-header",["button",["ytp-playlist-menu-close","ytp-button"],{tabindex:19,"aria-label":Q("YTP_CLOSE")}],["div","ytp-playlist-menu-title",["a","ytp-playlist-menu-title-name",{href:"{{playlisturl}}",tabindex:20},"{{title}}"]],["div","ytp-playlist-menu-subtitle","{{subtitle}}"]],["div","ytp-playlist-menu-items",{role:"menu"}]]);var c=this.ma["ytp-playlist-menu-close"];c.innerHTML=fi();S(this,c,"click",this.LE);
S(this,this.ma["ytp-playlist-menu-title-name"],"click",this.AA);this.B=a;this.D=this.F=this.o=null;this.J=this.ma["ytp-playlist-menu-items"];this.C=[];this.H=b;this.G=new Pr(this,250)}B(z8,R);g=z8.prototype;g.Ba=function(){z8.N.Ba.call(this);this.B.addEventListener("videodatachange",this.oh,this);this.B.addEventListener("onPlaylistUpdate",this.oh,this);this.oh()};
g.da=function(){z8.N.da.call(this);this.B.removeEventListener("videodatachange",this.oh,this);this.B.removeEventListener("onPlaylistUpdate",this.oh,this);A8(this,null)};g.oh=function(){A8(this,this.B.bc());var a=this.o.author;this.update({title:this.o.title,subtitle:Q(a?"YTP_PLAYLIST_AUTHOR_AND_POSITION":"YTP_PLAYLIST_POSITION",{AUTHOR:a,CURRENT_POSITION:this.o.j+1,PLAYLIST_LENGTH:this.o.A}),playlisturl:this.B.getVideoUrl(!0)});this.Fm()};
g.Fm=function(){var a=this.o.J;if(a==this.F)this.D.element.setAttribute("aria-checked",!1),this.D=this.C[this.o.j];else{for(var b=0;b<this.C.length;b++)this.C[b].dispose();var c=this.o.A;this.C=[];for(b=0;b<c;b++){var d=new y8(this.B,this.o,b);this.C.push(d);d.j(this.J)}this.D=this.C[this.o.j];this.F=a}this.D.element.setAttribute("aria-checked",!0)};g.LE=function(){this.H()};g.AA=function(a){var b=this.B.getVideoUrl(!0);Uz(b,this.B,a)};
function A8(a,b){a.o!=b&&(a.o&&a.o.unsubscribe("shuffle",a.Fm,a),a.o=b,a.F=null,b?b.subscribe("shuffle",a.Fm,a):a.A&&a.H())}function B8(a){return a.A&&3!=a.G.j}g.focus=function(){this.D.focus()};g.R=function(){this.da();z8.N.R.call(this)};function C8(a,b,c){var d=["button",["ytp-playlist-menu-button","ytp-button"],{title:"{{title}}",tabindex:11,"aria-owns":"ytp_playlist_menu","aria-haspopup":!0,"aria-expanded":"{{menuopen}}","aria-label":Q("YTP_PLAYLIST")},["div","ytp-playlist-menu-button-icon",""],["div","ytp-playlist-menu-button-text","{{text}}"]];R.call(this,d);this.ma["ytp-playlist-menu-button-icon"].innerHTML=ai?'<div class="ytp-icon ytp-icon-playlist"></div>':'<svg xmlns:xlink="http://www.w3.org/1999/xlink" height="100%" version="1.1" viewBox="0 0 36 36" width="100%"><defs><path d="M9,11 L27,11 L27,14 L9,14 L9,11 Z M9,16 L27,16 L27,19 L9,19 L9,16 Z M9,21 L21,21 L21,24 L9,24 L9,21 Z M26,22.50 L22,25 L22,20 L26,22.50 Z" id="ytp-svg-36" /></defs><use class="ytp-svg-shadow" xlink:href="#ytp-svg-36" /><use class="ytp-svg-fill" xlink:href="#ytp-svg-36" /></svg>';
this.F=a;this.o=null;this.G=c;this.C=b.o;S(this,a,"videodatachange",this.D);S(this,a,"onPlaylistUpdate",this.D);S(this,a,"presentingplayerstatechange",this.B);this.da();this.D();Tb(this,Q7(this.C,this.element,3));this.P("click",this.G)}B(C8,R);
C8.prototype.B=function(){this.o&&2!=this.F.getPresentingPlayerType()?(this.update({text:Q("YTP_PLAYLIST_POSITION",{CURRENT_POSITION:this.o.j+1,PLAYLIST_LENGTH:this.o.A}),title:Q("YTP_PLAYLIST_NAME",{PLAYLIST_NAME:this.o.title})}),this.A||(this.Ba(),S7(this.C))):this.A&&(this.da(),S7(this.C))};C8.prototype.D=function(){this.o&&this.o.unsubscribe("shuffle",this.B,this);(this.o=this.F.bc())&&this.o.subscribe("shuffle",this.B,this);this.B()};function D8(a,b,c){R.call(this,["a",["ytp-video-menu-item","ytp-button"],{role:"menuitem","aria-label":"{{watch}}",tabindex:20,href:"{{url}}"},["div","ytp-video-menu-item-thumbnail",{style:"{{background}}"}],["div","ytp-video-menu-item-title","{{title}}"],["div","ytp-video-menu-item-author","{{author}}"]]);this.B=a;this.o=b;this.C=c;My(this,b,a.V());this.P("click",this.D)}B(D8,R);D8.prototype.D=function(a){Tz(a,this.B)&&(a=this.o.qb().videoId,Sy(this.B.app,a,this.o.Z,this.o.Pe()),this.C())};function E8(a,b){R.call(this,["div","ytp-related-menu",{role:"dialog"},["div","ytp-related-menu-header",["button",["ytp-related-menu-close","ytp-button"],{tabindex:19,"aria-label":Q("YTP_CLOSE")}],["div","ytp-related-menu-title",Q("YTP_SUGGESTED_VIDEOS")]],["div","ytp-related-menu-items",{role:"menu"}]]);var c=this.ma["ytp-related-menu-close"];c.innerHTML=fi();S(this,c,"click",this.XE);this.o=a;this.D=null;this.G=this.ma["ytp-related-menu-items"];this.B=[];this.C=b;this.F=new Pr(this,250)}B(E8,R);
g=E8.prototype;g.Ba=function(){E8.N.Ba.call(this);this.o.addEventListener("videodatachange",this.Gm,this);this.o.addEventListener("presentingplayerstatechange",this.Bs,this);this.Gm()};g.da=function(){E8.N.da.call(this);this.o.removeEventListener("videodatachange",this.Gm,this);this.o.removeEventListener("presentingplayerstatechange",this.Bs,this);this.D=null;this.A&&this.C()};
g.Gm=function(){var a=F(this.o.getVideoData().F,Ly);this.D=a;!a&&this.A&&this.C();for(a=0;a<this.B.length;a++)this.B[a].dispose();this.B=[];for(a=0;a<this.D.length;a++){var b=new D8(this.o,this.D[a],this.C);this.B.push(b);b.j(this.G)}};g.Bs=function(a){F8(this)&&U(a.state,2)&&this.C()};g.XE=function(){this.C()};function F8(a){return a.A&&3!=a.F.j}g.focus=function(){var a=this.B[0];K(this.element,"ytp-scroll-fix");a.focus();te(this.element,"ytp-scroll-fix")};g.R=function(){this.da();E8.N.R.call(this)};function G8(a,b,c){var d=["button",["ytp-button","ytp-related-menu-button"],{title:Q("YTP_SUGGESTED_VIDEOS"),tabindex:15,"aria-owns":"ytp-related-menu","aria-haspopup":!0,"aria-expanded":"{{menuopen}}"}];R.call(this,d);this.element.innerHTML=ai?'<div class="ytp-icon ytp-icon-related"></div>':'<svg xmlns:xlink="http://www.w3.org/1999/xlink" height="100%" version="1.1" viewBox="0 0 36 36" width="100%"><defs><path d="M10,10 L17,10 L17,17 L10,17 L10,10 Z M19,10 L26,10 L26,17 L19,17 L19,10 Z M10,19 L17,19 L17,26 L10,26 L10,19 Z M19,19 L26,19 L26,26 L19,26 L19,19 Z" id="ytp-svg-38" /></defs><use class="ytp-svg-shadow" xlink:href="#ytp-svg-38" /><use class="ytp-svg-fill" xlink:href="#ytp-svg-38" /></svg>';
this.o=a;this.C=c;S(this,a,"videodatachange",this.B);S(this,a,"presentingplayerstatechange",this.B);this.B();Tb(this,Q7(b.o,this.element,3));this.P("click",this.C)}B(G8,R);G8.prototype.B=function(){this.o.V().experiments.X&&2!=this.o.getPresentingPlayerType()&&this.o.getVideoData().F&&!U(FA(this.o),2)?this.A||this.Ba():this.A&&this.da()};function H8(a,b,c){var d=["div","ytp-share-panel",{id:"ytp-share-panel",role:"dialog","aria-labelledby":"ytp-share-panel-title"},["button",["ytp-share-panel-close","ytp-button"],{tabindex:19,title:Q("YTP_CLOSE")}],["div","ytp-share-panel-inner-content",["div","ytp-share-panel-title",{id:"ytp-share-panel-title"},Q("YTP_SHARE")],["div",["ytp-share-panel-link","ytp-no-contextmenu"],{tabindex:20,title:Q("YTP_SHARE_LINK"),"aria-label":Q("YTP_SHARE_LINK")},"{{link}}"],["label","ytp-share-panel-include-playlist",
["input","ytp-share-panel-include-playlist-checkbox",{type:"checkbox",checked:!0,tabindex:20}],Q("YTP_SHARE_WITH_PLAYLIST")],["div","ytp-share-panel-loading-spinner"],["div","ytp-share-panel-service-buttons","{{buttons}}"],["div","ytp-share-panel-error",Q("YTP_SHARE_PANEL_ERROR")]]];R.call(this,d);this.o=a;this.D=b.o;this.J=c;this.B=[];this.F=!1;this.H=new Pr(this,250);this.L=this.ma["ytp-share-panel-inner-content"];this.M=this.ma["ytp-share-panel-loading-spinner"];this.M.innerHTML=gi();this.G=this.ma["ytp-share-panel-close"];
this.G.innerHTML=fi();S(this,this.G,"click",this.J);Tb(this,Q7(this.D,this.G));this.K=this.ma["ytp-share-panel-include-playlist-checkbox"];S(this,this.K,"click",this.Cs);this.C=this.ma["ytp-share-panel-link"];Tb(this,Q7(this.D,this.C));S(this,this.C,"click",this.Cl);S(this,this.C,"focus",this.Cl);this.P("click",this.Mz);S(this,a,"videoplayerreset",this.da);S(this,a,"fullscreentoggled",this.ZE)}B(H8,R);g=H8.prototype;g.Mz=function(a){a=Om(a);bg(this.L,a)||bg(this.G,a)||this.J()};g.Cl=function(){Er(this.C)};
g.Ba=function(){H8.N.Ba.call(this);1==this.o.getPlayerState()&&(this.o.pauseVideo(),this.F=!0);this.Cs()};g.da=function(){var a=this.A;H8.N.da.call(this);a&&this.F&&(this.o.Tc(),this.F=!1)};function I8(a){return a.A&&3!=a.H.j}
g.Cs=function(){K(this.element,"ytp-share-panel-loading");te(this.element,"ytp-share-panel-fail");var a=this.o.getVideoData(),b=this.o.ie(),c=b&&this.K.checked;M(this.element,"ytp-share-panel-has-playlist",!!b);var d={action_get_share_info:1,feature:"player_embedded",video_id:a.videoId},e=this.o.V();e.Bb&&(d.authuser=e.Bb);e.pageId&&(d.pageid=e.pageId);c&&(d.list=b);var f=this.o.V();wk(f.baseYtUrl+"share_ajax",{context:this,method:"GET",onError:this.aF,kb:this.$E,yd:d,withCredentials:!0});a=e.getVideoUrl(a.videoId,
c?b:void 0,void 0,!0);Ar(this,"link",a);this.Cl()};
g.$E=function(a,b){if(!this.isDisposed()){te(this.element,"ytp-share-panel-loading");J8(this);for(var c=b.links,d=0,e=0;e<c.length&&3>d;e++){var f=c[e],h;a:{switch(f.img){case "facebook":h=ai?'<div class="ytp-icon ytp-icon-share-facebook"></div>':'<svg height="100%" version="1.1" viewBox="0 0 38 38" width="100%"><rect fill="#fff" height="34" width="34" x="2" y="2" /><path d="M 34.2,0 3.8,0 C 1.70,0 .01,1.70 .01,3.8 L 0,34.2 C 0,36.29 1.70,38 3.8,38 l 30.4,0 C 36.29,38 38,36.29 38,34.2 L 38,3.8 C 38,1.70 36.29,0 34.2,0 l 0,0 z m -1.9,3.8 0,5.7 -3.8,0 c -1.04,0 -1.9,.84 -1.9,1.9 l 0,3.8 5.7,0 0,5.7 -5.7,0 0,13.3 -5.7,0 0,-13.3 -3.8,0 0,-5.7 3.8,0 0,-4.75 c 0,-3.67 2.97,-6.65 6.65,-6.65 l 4.75,0 z" fill="#39579b" /></svg>';break a;
case "googleplus":h=ai?'<div class="ytp-icon ytp-icon-share-googleplus"></div>':'<svg height="100%" version="1.0" viewBox="0 0 38 38" width="100%"><rect fill="#fff" height="34" width="34" x="2" y="2" /><path d="M34.3,0H3.7C1.7,0,0,1.7,0,3.7v30.5c0,2,1.7,3.7,3.7,3.7h30.5c2,0,3.7-1.7,3.7-3.7V3.7C38,1.7,36.3,0,34.3,0z M13.3,28.5c-5.2,0-9.5-4.3-9.5-9.5c0-5.2,4.3-9.5,9.5-9.5c2.6,0,4.7,.9,6.4,2.5l-2.7,2.7c-1-0.9-2.2-1.4-3.6-1.4 c-3.1,0-5.6,2.6-5.6,5.7s2.5,5.7,5.6,5.7c2.8,0,4.7-1.6,5.1-3.8h-5.1v-3.6h8.9c0.1,.6,.2,1.3,.2,2C22.4,24.6,18.8,28.5,13.3,28.5 z M34.2,19.6H31v3.2h-2.2v-3.2h-3.2v-2.2h3.2v-3.2H31v3.2h3.2V19.6z" fill="#dc4537" /></svg>';
break a;case "twitter":h=ai?'<div class="ytp-icon ytp-icon-share-twitter"></div>':'<svg height="100%" version="1.1" viewBox="0 0 38 38" width="100%"><rect fill="#fff" height="34" width="34" x="2" y="2" /><path d="M 34.2,0 3.8,0 C 1.70,0 .01,1.70 .01,3.8 L 0,34.2 C 0,36.29 1.70,38 3.8,38 l 30.4,0 C 36.29,38 38,36.29 38,34.2 L 38,3.8 C 38,1.70 36.29,0 34.2,0 l 0,0 z M 29.84,13.92 C 29.72,22.70 24.12,28.71 15.74,29.08 12.28,29.24 9.78,28.12 7.6,26.75 c 2.55,.40 5.71,-0.60 7.41,-2.06 -2.50,-0.24 -3.98,-1.52 -4.68,-3.56 .72,.12 1.48,.09 2.17,-0.05 -2.26,-0.76 -3.86,-2.15 -3.95,-5.07 .63,.28 1.29,.56 2.17,.60 C 9.03,15.64 7.79,12.13 9.21,9.80 c 2.50,2.75 5.52,4.99 10.47,5.30 -1.24,-5.31 5.81,-8.19 8.74,-4.62 1.24,-0.23 2.26,-0.71 3.23,-1.22 -0.39,1.23 -1.17,2.09 -2.11,2.79 1.03,-0.14 1.95,-0.38 2.73,-0.77 -0.47,.99 -1.53,1.9 -2.45,2.66 l 0,0 z" fill="#01abf0" /></svg>';
break a}h=void 0}if(h){var k=new R(["a",["ytp-share-panel-service-button","ytp-button"],["span","ytp-share-panel-service-button-icon"],{href:f.url,target:"_blank",tabindex:20,title:f.sname}]);k.ma["ytp-share-panel-service-button-icon"].innerHTML=h;k.P("click",pa(this.lA,f.url));Tb(k,Q7(this.D,k.element));this.B.push(k);d++}}c=new R(["a",["ytp-share-panel-service-button","ytp-button"],["span",["ytp-share-panel-service-button-icon","ytp-share-panel-service-button-more"]],{href:b.more,target:"_blank",
tabindex:20,title:Q("YTP_MORE")}]);c.ma["ytp-share-panel-service-button-icon"].innerHTML=ai?'<div class="ytp-icon ytp-icon-share-more"></div>':'<svg height="100%" version="1.1" viewBox="0 0 38 38" width="100%"><rect fill="#fff" height="34" width="34" x="2" y="2" /><path d="M 34.2,0 3.8,0 C 1.70,0 .01,1.70 .01,3.8 L 0,34.2 C 0,36.29 1.70,38 3.8,38 l 30.4,0 C 36.29,38 38,36.29 38,34.2 L 38,3.8 C 38,1.70 36.29,0 34.2,0 Z m -5.7,21.85 c 1.57,0 2.85,-1.27 2.85,-2.85 0,-1.57 -1.27,-2.85 -2.85,-2.85 -1.57,0 -2.85,1.27 -2.85,2.85 0,1.57 1.27,2.85 2.85,2.85 z m -9.5,0 c 1.57,0 2.85,-1.27 2.85,-2.85 0,-1.57 -1.27,-2.85 -2.85,-2.85 -1.57,0 -2.85,1.27 -2.85,2.85 0,1.57 1.27,2.85 2.85,2.85 z m -9.5,0 c 1.57,0 2.85,-1.27 2.85,-2.85 0,-1.57 -1.27,-2.85 -2.85,-2.85 -1.57,0 -2.85,1.27 -2.85,2.85 0,1.57 1.27,2.85 2.85,2.85 z" fill="#4e4e4f" fill-rule="evenodd" /></svg>';
c.P("click",x(this.zz,this,b.more));Tb(c,Q7(this.D,c.element));this.B.push(c);Ar(this,"buttons",this.B)}};g.aF=function(){te(this.element,"ytp-share-panel-loading");K(this.element,"ytp-share-panel-fail")};
g.lA=function(a,b){if(Ky(b)){var c={};c.target=c.target||"YouTube";c.width=c.width||"600";c.height=c.height||"600";var d,e=c;e||(e={});c=window;a instanceof hf?d=kf(a):d="undefined"!=typeof a.href?a.href:String(a);var f=e.target||a.target,h=[],k;for(k in e)switch(k){case "width":case "height":case "top":case "left":h.push(k+"="+e[k]);break;case "target":case "noreferrer":break;default:h.push(k+"="+(e[k]?1:0))}k=h.join(",");if((Dc()||Ac("iPad")||Ac("iPod"))&&c.navigator&&c.navigator.standalone&&f&&
"_self"!=f)k=c.document.createElement("A"),k.setAttribute("href",d),k.setAttribute("target",f),e.noreferrer&&k.setAttribute("rel","noreferrer"),d=document.createEvent("MouseEvent"),d.initMouseEvent("click",!0,!0,c,1),k.dispatchEvent(d),c={};else if(e.noreferrer){if(c=c.open("",f,k))Hc&&Ka(d,";")&&(d="'"+d.replace(/'/g,"%27")+"'"),c.opener=null,d=Ba(d),d=gk(bf("b/12014412, meta tag with sanitized URL"),'<META HTTP-EQUIV="refresh" content="0; url='+d+'">'),c.document.write(sf(d)),c.document.close()}else c=
c.open(d,f,k);if(d=c)d.opener||(d.opener=window),d.focus();Rm(b)}};g.zz=function(a,b){if(Uz(a,this.o,b)){var c=this.o.app,d=c.getVideoData();c.O("SHARE_CLICKED",{videoId:d.videoId,listId:d.playlistId,feature:"player_"+c.j.Aa})}};g.ZE=function(a){!a&&I8(this)&&(this.F=!1,this.J())};function J8(a){for(var b=0;b<a.B.length;b++)a.B[b].detach(),Ub(a.B[b]);a.B=[]}g.focus=function(){this.C.focus()};g.R=function(){H8.N.R.call(this);J8(this)};function K8(a,b,c,d){c=["button",["ytp-button","ytp-share-button"],{title:Q("YTP_SHARE"),tabindex:17,"aria-haspopup":!0,"aria-owns":"ytp-share-panel"}];R.call(this,c);a.V().experiments.xa("sharrow")?this.element.innerHTML=ai?'<div class="ytp-icon ytp-icon-sharrow"></div>':'<svg xmlns:xlink="http://www.w3.org/1999/xlink" height="100%" version="1.1" viewBox="0 0 36 36" width="100%"><defs><path d="m 20.20,14.19 0,-4.45 7.79,7.79 -7.79,7.79 0,-4.56 C 16.27,20.69 12.10,21.81 9.34,24.76 8.80,25.13 7.60,27.29 8.12,25.65 9.08,21.32 11.80,17.18 15.98,15.38 c 1.33,-0.60 2.76,-0.98 4.21,-1.19 z" id="ytp-svg-41" /></defs><use class="ytp-svg-shadow" xlink:href="#ytp-svg-41" /><use class="ytp-svg-fill" xlink:href="#ytp-svg-41" /></svg>':
this.element.innerHTML=ai?'<div class="ytp-icon ytp-icon-share"></div>':'<svg xmlns:xlink="http://www.w3.org/1999/xlink" height="100%" version="1.1" viewBox="0 0 36 36" width="100%"><defs><path d="M21.54,22.88 L15.55,19.39 C15.67,19.04 15.74,18.68 15.74,18.29 C15.74,18.03 15.71,17.78 15.66,17.54 L21.54,14.11 C22.11,14.57 22.83,14.86 23.62,14.86 C25.49,14.86 27,13.32 27,11.43 C27,9.53 25.49,8 23.62,8 C21.75,8 20.25,9.53 20.25,11.43 C20.25,11.69 20.28,11.94 20.33,12.18 L14.45,15.61 C13.87,15.15 13.16,14.86 12.37,14.86 C10.50,14.86 9,16.40 9,18.29 C9,20.19 10.50,21.73 12.37,21.73 C13.02,21.73 13.62,21.53 14.14,21.20 L20.33,24.81 C20.28,25.05 20.25,25.30 20.25,25.56 C20.25,27.46 21.75,29 23.62,29 C25.49,29 27,27.46 27,25.56 C27,23.67 25.49,22.13 23.62,22.13 C22.83,22.13 22.12,22.41 21.54,22.88 L21.54,22.88 Z" id="ytp-svg-41" /></defs><use class="ytp-svg-shadow" xlink:href="#ytp-svg-41" /><use class="ytp-svg-fill" xlink:href="#ytp-svg-41" /></svg>';
this.o=a;this.P("click",d);this.o.V().Cd?this.da():(S(this,a,"videodatachange",this.B),this.B());Tb(this,Q7(b.o,this.element,3))}B(K8,R);K8.prototype.B=function(){this.yb(!!this.o.getVideoData().videoId)};function L8(a){R.call(this,["div","ytp-webgl-spherical-control",{tabindex:21,"aria-label":Q("YTP_SPHERICAL_CONTROL")}]);this.element.innerHTML=ai?'<div class="ytp-icon ytp-icon-spherical-control"></div>':'<svg xmlns:xlink="http://www.w3.org/1999/xlink" height="100%" version="1.1" viewBox="0 0 50 50" width="100%"><defs><circle cx="25" cy="25" id="ytp-svg-43" r="24" /><path d="M11.46,29.41 L9.97,30.90 L4,24.95 L9.97,19 L11.46,20.48 L7.00,24.95 L11.46,29.41 M42.46,24.95 L38,20.48 L39.48,19 L45.46,24.95 L39.48,30.90 L38,29.41 L42.46,24.95 M24.5,42.43 L28.96,37.96 L30.45,39.45 L24.5,45.43 L18.54,39.45 L20.03,37.96 L24.5,42.43 M24.5,6.97 L20.03,11.43 L18.54,9.94 L24.5,3.96 L30.45,9.94 L28.96,11.43 L24.5,6.97 Z" id="ytp-svg-44" /></defs><use opacity="0.15" stroke="#000" stroke-width="2" xlink:href="#ytp-svg-43" /><use fill="#fff" xlink:href="#ytp-svg-43" /><use opacity="0.15" stroke="#000" stroke-width="1" xlink:href="#ytp-svg-44" /><use fill="#999" xlink:href="#ytp-svg-44" /></svg>';
this.B=a;this.Z=this.aa=this.D=this.F=null;this.o=[];this.C=0;this.W=null;this.G=new SA(this.bF,null,this);I(this,this.G);this.L=-1;this.M=this.H=this.U=this.K=this.T=this.J=0;this.X=!1;S(this,a,"videodatachange",this.Hm);S(this,a,"onApiChange",this.Hm);this.da();this.Hm()}B(L8,R);function M8(a,b,c,d){a.T=De(b+a.T,-1,1);a.U=De(c+a.U,-1,1);a.M=De(d+a.M,-1,1);1!=a.C&&(a.C=1,K(a.element,"ytp-dragging"),a.L=A(),a.G.start())}
function N8(a){a.G.stop();a.C=0;a.T=0;a.U=0;a.M=0;a.o=[];te(a.element,"ytp-dragging")}g=L8.prototype;
g.Hm=function(){var a=UG(this.B).shader;"Spherical"==a||"Spherical3D"==a?this.A||(a=bG(this.B).B,K(this.B.sa(),"ytp-webgl-spherical"),this.Ba(),this.F=new NG(a,!0,null,!0),this.F.subscribe("dragstart",this.eF,this),this.F.subscribe("dragmove",this.Es,this),this.F.subscribe("dragend",this.dF,this),this.D=new NG(this.element,!0),this.D.subscribe("dragstart",this.Lz,this),this.D.subscribe("dragend",this.Kz,this),this.aa=this.P("keydown",this.fF),this.Z=this.P("keyup",this.gF),S(this,a,"click",this.cF,
this)):this.A&&(N8(this),te(this.B.sa(),"ytp-webgl-spherical"),this.da(),this.F.dispose(),this.F=null,this.D.dispose(),this.D=null,this.ua(this.aa),this.ua(this.Z))};g.Lz=function(a,b,c){N8(this);var d=Ag(c);a=a-d.x-c.clientWidth/2;b=b-d.y-c.clientHeight/2;Math.abs(a)>Math.abs(b)?M8(this,0<a?-1:1,0,0):M8(this,0,0<b?-1:1,0)};g.Kz=function(){N8(this);this.C=2;this.G.start()};g.eF=function(a,b){N8(this);this.X=!1;this.W=new Ge(a,b);K(this.B.sa(),"ytp-dragging")};
g.Es=function(a,b){var c=new Ge(a,b),d;d=this.W;d=new Ge(c.x-d.x,c.y-d.y);2<Math.sqrt(d.x*d.x+d.y*d.y)&&(this.X=!0);this.W=c;var c=UG(this.B),e=c.fovX,f=Math.PI*e*.8,h=bG(this.B).Ka();d.scale(1/h.width*f,1/h.height*f);O8(this,c.yaw+d.x,c.pitch+d.y,e,c,A())};g.dF=function(a,b){this.Es(a,b);te(this.B.sa(),"ytp-dragging");this.C=2;this.G.start()};g.cF=function(a){this.X&&(a.stopPropagation(),this.X=!1)};
function O8(a,b,c,d,e,f){var h=f-a.L;a.K=(a.J*a.K+(b-e.yaw))/(h+a.J);a.H=(a.J*a.H+(c-e.pitch))/(h+a.J);a.L=f;a.J=h;BJ(a.B,{shader:"Spherical",yaw:b,pitch:c,fovX:d})}g.bF=function(a){var b=UG(this.B),c=b.yaw,d=b.pitch,e=b.fovX;if(1==this.C)var f=.003*e*(a-this.L),c=c+f*this.T,d=d+f*this.U,e=e+f*this.M;else if(2==this.C){if(1E-5>Math.abs(this.K)&&1E-5>Math.abs(this.H)){this.C=this.H=this.K=0;return}f=a-this.L;f/=Math.pow(1.013,f);c+=f*this.K;d+=f*this.H}O8(this,c,d,e,b,a);this.G.start()};
g.fF=function(a){!Sm(a)&&r8(this,Tm(a))&&Rm(a)};g.gF=function(a){t8(this,Tm(a))};function r8(a,b){if(!(-1<a.o.indexOf(b)))switch(b){case 37:case 65:M8(a,1,0,0);a.o.push(b);break;case 39:case 68:M8(a,-1,0,0);a.o.push(b);break;case 38:case 87:M8(a,0,1,0);a.o.push(b);break;case 40:case 83:M8(a,0,-1,0);a.o.push(b);break;case 107:M8(a,0,0,-1);a.o.push(b);break;case 109:M8(a,0,0,1),a.o.push(b)}}
function t8(a,b){var c=a.o.indexOf(b);if(-1<c)switch(a.o.splice(c,1),b){case 37:case 65:M8(a,-1,0,0);break;case 39:case 68:M8(a,1,0,0);break;case 38:case 87:M8(a,0,-1,0);break;case 40:case 83:M8(a,0,1,0);break;case 107:M8(a,0,0,1);break;case 109:M8(a,0,0,-1)}0==a.o.length&&(N8(a),a.C=2,a.G.start())}g.R=function(){this.D&&(this.F.dispose(),this.F=null,this.D.dispose(),this.D=null);L8.N.R.call(this)};function P8(a){var b=["div","ytp-spinner",["span","ytp-spinner-svg"],["div","ytp-spinner-message",Q("YTP_PLAYBACK_STALLED_AT_START")]];R.call(this,b);this.F=this.ma["ytp-spinner-svg"];this.F.innerHTML=gi();this.D=this.ma["ytp-spinner-message"];this.B=a;this.C=new oe(this.Ba,500,this);this.o=null;S(this,a,"presentingplayerstatechange",this.hF);S(this,a,"onFrescaStateChange",this.Xy);Q8(this,FA(a))}B(P8,R);g=P8.prototype;
g.Ba=function(){this.A||(this.o=S(this,this.B,"playbackstalledatstart",this.Sz));P8.N.Ba.call(this)};g.da=function(){this.C.stop();this.D.style.display="none";null!==this.o&&(this.ua(this.o),this.o=null);P8.N.da.call(this)};g.hF=function(a){Q8(this,a.state)};g.Xy=function(){Q8(this,FA(this.B))};function Q8(a,b){var c;!(c=U(b,16))&&(c=U(b,1))&&(c=JI(a.B.app.B,"fresca"),c=!(c&&c.loaded));c?a.C.start():a.da()}g.Sz=function(){this.ua(this.o);this.o=null;this.D.style.display="block"};function R8(a,b){var c=["button",["ytp-airplay-button","ytp-button"],{title:Q("YTP_AIRPLAY"),tabindex:43}];R.call(this,c);this.o=a;this.P("click",this.C);S(this,a,"airplayactivechange",this.B);S(this,a,"airplayavailabilitychange",this.B);this.B();Tb(this,Q7(b.o,this.element,1))}B(R8,R);R8.prototype.C=function(){var a=nr(this.o.app);a&&a.o.j.webkitShowPlaybackTargetPicker()};
R8.prototype.B=function(){var a=this.o.V(),b=nr(this.o.app);this.yb(!!b&&b.Ta);this.element.innerHTML=a.Hg?ai?'<div class="ytp-icon ytp-icon-airplay-on"></div>':'<svg xmlns:xlink="http://www.w3.org/1999/xlink" height="100%" version="1.1" viewBox="0 0 36 36" width="100%"><defs><path d="M25,13.99 L12.03,13.99 L12.03,22 L15,22 L12.03,24.99 L9,24.99 L9,11 L28,11 L28,24.99 L23.99,24.99 L20.96,22 L25,22 L25,13.99 Z M23.06,26 L12.99,26 L18,21 L23.06,26 Z M13,15 L24.04,15.01 C24.04,15.01 24.04,15.07 24,15 C24.03,17.07 24,21 24,21 L20,21 L18,18.99 L16,21 L13,20.99 L13,15 Z" id="ytp-svg-1" /></defs><use class="ytp-svg-shadow" xlink:href="#ytp-svg-1" /><use class="ytp-svg-fill" xlink:href="#ytp-svg-1" /></svg>':
ai?'<div class="ytp-icon ytp-icon-airplay-off"></div>':'<svg xmlns:xlink="http://www.w3.org/1999/xlink" height="100%" version="1.1" viewBox="0 0 36 36" width="100%"><defs><path d="M25,13.99 L12.03,13.99 L12.03,22 L15,22 L12.03,24.99 L9,24.99 L9,11 L28,11 L28,24.99 L23.99,24.99 L20.96,22 L25,22 L25,13.99 Z M23.06,26 L12.99,26 L18,21 L23.06,26 Z" id="ytp-svg-0" /></defs><use class="ytp-svg-shadow" xlink:href="#ytp-svg-0" /><use class="ytp-svg-fill" xlink:href="#ytp-svg-0" /></svg>'};function S8(a,b){Fr.call(this,["div","ytp-storyboard",["div","ytp-storyboard-filmstrip",["div","ytp-storyboard-thumbnail"]],["div","ytp-storyboard-lens",["div","ytp-storyboard-lens-thumbnail"],["div","ytp-storyboard-lens-timestamp-wrapper",["span","ytp-storyboard-lens-timestamp"]]]]);this.B=a;this.ca=b.o;this.W=new tn(this.AE,250,this);I(this,this.W);this.G=bG(a).Ka().width;this.C=this.ma["ytp-storyboard-filmstrip"];this.ea=this.ma["ytp-storyboard-lens"];this.ga=this.ma["ytp-storyboard-lens-thumbnail"];
this.fa=this.ma["ytp-storyboard-lens-timestamp"];this.aa=this.ma["ytp-storyboard-thumbnail"];Wf(this.aa);this.L=0;this.Z=!1;this.X=this.o=0;this.T=this.J=this.F=NaN;this.H=this.D=null;this.K=new ax(this);this.M=new Pr(this,100);S(this,this.B,"resize",this.zE);S(this,this.B,"beginseeking",this.tv)}B(S8,Fr);S8.B=84;S8.j=10;S8.C=72;S8.o=200;S8.A=.555;g=S8.prototype;g.tv=function(){T8(this,this.B.getVideoData())};g.Gv=function(){this.M.da()};
g.Cj=function(){this.o=Math.floor(this.G/Math.min(S8.j,Math.ceil(this.G/S8.C)));this.X=this.o*S8.A;var a=this.B.Qe(),b=Fv(this.D,this.o),b=this.D.j[b].Aj(a.current);if(b!=this.T){var c=Math.round(2*this.o),d=Math.round(2*this.X),e=Ev(this.H,b,c),c=G4(this.ga,e,c,d,!0);ug(this.ea,(this.G-c.width)/2);this.element.style.height=vg(c.height+S8.B,!0);this.T=b}dg(this.fa,Jy(this.Z?a.current-a.seekableEnd:a.current));aw(this.L);a=x(this.cj,this);this.L=$v(a,void 0);this.W.lf()};
g.BE=function(a,b){T8(this,b)};function T8(a,b){a.H&&a.H.unsubscribe("l",a.cj,a);var c=!!a.D;a.D=b&&jy(b);a.H=b&&ky(b);a.Z=!!b&&b.Fa;a.D?(c||(T(a.K,a.B,"videodatachange",a.BE),T(a.K,a.B,"progresssync",a.Cj),T(a.K,a.B,"videoplayerreset",a.Cj),T(a.K,a.B,"endseeking",a.Gv)),a.H.subscribe("l",a.cj,a),a.T=NaN,a.F=NaN,a.J=NaN,a.Cj(),Rr(a.M,!1,S8.o)):(c&&cx(a.K),a.W.stop(),aw(a.L),a.M.da(),a.M.stop())}
g.cj=function(){Ng(this.C,!1);aw(this.L);var a=this.B.Qe(),b=this.D.j[0].cs(),c=this.D.j[0].Cm(),a=a.current/(a.seekableEnd-a.seekableStart)*(c-b+1)*this.o-this.G/2,d=Math.floor(a/this.o)+b,c=Math.min(d+Math.min(S8.j,Math.ceil(this.G/this.o)),c),d=Math.max(d,b),e;if(this.J>=d&&this.F<=c){for(e=this.J;e>c;e--)Wf(this.C.children[e-this.F]);for(e=d-1;e>=this.F;e--)Wf(this.C.children[e-this.F]);for(e=this.F-1;e>=d;e--)this.C.insertBefore(U8(this,e),this.C.firstChild);e=this.J+1}else Uf(this.C),e=d;for(;e<=
c;e++)this.C.appendChild(U8(this,e));for(e=d;e<=c;e++)og(this.C.children[e-d],"transform","translatex("+(-a+(e-b)*this.o)+"px)");this.F=d;this.J=c;Ng(this.C,!0)};function U8(a,b){var c=a.aa.cloneNode(!1),d=Ev(a.H,b,a.o);G4(c,d,a.o,a.X);return c}g.AE=function(){for(var a=this.F;a<=this.J;a++)Hv(this.H,a,2*this.o)};g.zE=function(){var a=bG(this.B).Ka();this.G!=a.width&&(this.G=a.width,this.D&&(this.Cj(),this.cj()))};g.CE=function(a){this.element.style.bottom=a+"px"};
g.Ba=function(){S8.N.Ba.call(this);O7(this.ca,!1)};g.da=function(){this.D&&T8(this,null);S8.N.da.call(this);O7(this.ca,!0)};g.R=function(){T8(this,null);S8.N.R.call(this)};function V8(a){R.call(this,["div","ytp-storyboard-framepreview",["div","ytp-storyboard-framepreview-img"]]);this.H=this.ma["ytp-storyboard-framepreview-img"];this.o=a;this.G=this.C=null;this.F=NaN;this.B=new ax(this);this.D=new Pr(this,100);S(this,a,"beginseeking",this.EE)}B(V8,R);g=V8.prototype;g.EE=function(){W8(this,this.o.getVideoData())};g.FE=function(){this.A||this.D.da()};g.HE=function(a){U(a.state,32)||U(a.state,16)||U(a.state,1)||this.D.da()};g.IE=function(a,b){W8(this,b)};
function W8(a,b){var c=!!a.C;a.C=b&&jy(b);a.G=b&&ky(b);a.C?(c||(T(a.B,a.o,"videodatachange",a.IE),T(a.B,a.o,"progresssync",a.GE),T(a.B,a.o,"resize",a.DE),T(a.B,a.o,"presentingplayerstatechange",a.HE),T(a.B,a.o,"endseeking",a.FE)),a.F=NaN,X8(a),Rr(a.D,!1,200)):(c&&cx(a.B),a.D.da(),a.D.stop())}g.GE=function(){var a=FA(this.o);(U(a,32)||U(a,16))&&X8(this)};
function X8(a){var b=a.o.getCurrentTime(),c=bG(a.o).Ka(),d=Fv(a.C,c.width),b=a.C.j[d].Aj(b);b!=a.F&&(a.F=b,Hv(a.G,b,c.width),b=Ev(a.G,b,c.width),G4(a.H,b,c.width,c.height))}g.DE=function(){this.F=NaN;X8(this)};g.da=function(){this.C&&W8(this,null);V8.N.da.call(this)};function Y8(a,b){R.call(this,["button",["ytp-fullscreen-button","ytp-button"],{title:"{{title}}",tabindex:45}]);this.B=a;this.D=b;this.o=null;this.C=Q7(b.o,this.element,1);S(this,a,"fullscreentoggled",this.rs);S(this,a,"presentingplayerstatechange",this.ts);this.P("click",this.JE);var c;c=mi("fullscreenerror");"msfullscreenerror"==c&&(c="MSFullscreenError");c&&S(this,document,c,this.Zy);a.V().Pa||Z8(this);this.ts();this.rs(a.Ja())}B(Y8,R);g=Y8.prototype;
g.JE=function(){this.B.V().Pa?(Ty(this.B,this.B.Ja()?"fullscreen_exit":"fullscreen_enter"),Vz(this.B)):this.o&&W7(this.o)?this.o.Ab():(this.D.A.bb(16,!0),this.o.Ve(this.element))};g.Zy=function(){Z8(this);this.D.A.bb(16,!0);this.o.Ve(this.element)};
function Z8(a){if(!a.o){var b=Q(void 0!=li(["requestFullscreen","requestFullScreen"],document.body)?"YTP_FULLSCREEN_GENERIC_ERROR":"YTP_FULLSCREEN_UNSUPPORTED_ERROR").split(/\$(BEGIN|END)_LINK/);a.o=new V7(["div",["ytp-popup","ytp-fullscreen-message"],b[0],["a",{href:"https://support.google.com/youtube/answer/6276924",target:"_blank"},b[2]],b[4]]);I(a,a.o);a.o.j(a.B.sa());a.element.setAttribute("aria-disabled",!0);a.C();a.C=null}}g.ts=function(){this.yb(Sz(this.B))};
g.rs=function(a){a?(this.element.innerHTML=ai?'<div class="ytp-icon ytp-icon-full-screen-close"></div>':'<svg xmlns:xlink="http://www.w3.org/1999/xlink" height="100%" version="1.1" viewBox="0 0 36 36" width="100%"><defs><path d="M13,10 L10,10 L10,13 L7,13 L7,16 L13,16 L13,10 Z" id="ytp-svg-16" /><path d="M29,16 L29,13 L26,13 L26,10 L23,10 L23,16 L29,16 Z" id="ytp-svg-17" /><path d="M29,23 L29,20 L23,20 L23,26 L26,26 L26,23 L29,23 Z" id="ytp-svg-18" /><path d="M10,26 L13,26 L13,20 L7,20 L7,23 L10,23 L10,26 Z" id="ytp-svg-19" /></defs><use class="ytp-svg-shadow ytp-fullscreen-close-button-corner-0" stroke="#000" stroke-opacity=".15" stroke-width="2px" xlink:href="#ytp-svg-16" /><use class="ytp-svg-shadow ytp-fullscreen-close-button-corner-1" stroke="#000" stroke-opacity=".15" stroke-width="2px" xlink:href="#ytp-svg-17" /><use class="ytp-svg-shadow ytp-fullscreen-close-button-corner-2" stroke="#000" stroke-opacity=".15" stroke-width="2px" xlink:href="#ytp-svg-18" /><use class="ytp-svg-shadow ytp-fullscreen-close-button-corner-3" stroke="#000" stroke-opacity=".15" stroke-width="2px" xlink:href="#ytp-svg-19" /><use class="ytp-svg-fill ytp-fullscreen-close-button-corner-0" fill="#fff" xlink:href="#ytp-svg-16" /><use class="ytp-svg-fill ytp-fullscreen-close-button-corner-1" fill="#fff" xlink:href="#ytp-svg-17" /><use class="ytp-svg-fill ytp-fullscreen-close-button-corner-2" fill="#fff" xlink:href="#ytp-svg-18" /><use class="ytp-svg-fill ytp-fullscreen-close-button-corner-3" fill="#fff" xlink:href="#ytp-svg-19" /></svg>',
a=Q("YTP_EXIT_FULLSCREEN")):(this.element.innerHTML=ai?'<div class="ytp-icon ytp-icon-full-screen"></div>':'<svg xmlns:xlink="http://www.w3.org/1999/xlink" height="100%" version="1.1" viewBox="0 0 36 36" width="100%"><defs><path d="M7,16 L10,16 L10,13 L13,13 L13,10 L7,10 L7,16 Z" id="ytp-svg-12" /><path d="M23,10 L23,13 L26,13 L26,16 L29,16 L29,10 L23,10 Z" id="ytp-svg-13" /><path d="M23,23 L23,26 L29,26 L29,20 L26,20 L26,23 L23,23 Z" id="ytp-svg-14" /><path d="M10,20 L7,20 L7,26 L13,26 L13,23 L10,23 L10,20 Z" id="ytp-svg-15" /></defs><use class="ytp-svg-shadow ytp-fullscreen-button-corner-0" stroke="#000" stroke-opacity=".15" stroke-width="2px" xlink:href="#ytp-svg-12" /><use class="ytp-svg-shadow ytp-fullscreen-button-corner-1" stroke="#000" stroke-opacity=".15" stroke-width="2px" xlink:href="#ytp-svg-13" /><use class="ytp-svg-shadow ytp-fullscreen-button-corner-2" stroke="#000" stroke-opacity=".15" stroke-width="2px" xlink:href="#ytp-svg-14" /><use class="ytp-svg-shadow ytp-fullscreen-button-corner-3" stroke="#000" stroke-opacity=".15" stroke-width="2px" xlink:href="#ytp-svg-15" /><use class="ytp-svg-fill ytp-fullscreen-button-corner-0" fill="#fff" xlink:href="#ytp-svg-12" /><use class="ytp-svg-fill ytp-fullscreen-button-corner-1" fill="#fff" xlink:href="#ytp-svg-13" /><use class="ytp-svg-fill ytp-fullscreen-button-corner-2" fill="#fff" xlink:href="#ytp-svg-14" /><use class="ytp-svg-fill ytp-fullscreen-button-corner-3" fill="#fff" xlink:href="#ytp-svg-15" /></svg>',
a=Q("YTP_FULLSCREEN"));Ar(this,"title",this.o?null:a);S7(this.D.o)};g.R=function(){this.o?this.D.A.bb(16,!1):(this.C(),this.C=null);Y8.N.R.call(this)};function $8(a,b){var c=["button",["ytp-pip-button","ytp-button"],{title:Q("YTP_PIP"),tabindex:44}];R.call(this,c);this.element.innerHTML=ai?'<div class="ytp-icon ytp-icon-pip"></div>':'<svg xmlns:xlink="http://www.w3.org/1999/xlink" height="100%" version="1.1" viewBox="0 0 36 36" width="100%"><defs><path d="m 25,17 h -8 v 6 h 8 v -6 z m 4,8 V 10.98 C 29,9.88 28.1,9 27,9 H 9 C 7.9,9 7,9.88 7,10.98 V 25 c 0,1.1 .9,2 2,2 h 18 c 1.1,0 2,-0.9 2,-2 z m -2,.02 H 9 V 10.97 h 18 v 14.05 z" id="ytp-svg-34" /></defs><use class="ytp-svg-shadow" xlink:href="#ytp-svg-34" /><use class="ytp-svg-fill" xlink:href="#ytp-svg-34" /></svg>';
this.o=a;this.P("click",this.B);Tb(this,Q7(b.o,this.element,1))}B($8,R);$8.prototype.B=function(){var a=nr(this.o.app);a&&(a=a.o,a.j.webkitSetPresentationMode("picture-in-picture"==a.j.webkitPresentationMode?"inline":"picture-in-picture"))};function a9(a,b){R.call(this,["button",["ytp-play-button","ytp-button"],{title:"{{title}}","aria-label":"{{label}}",tabindex:32}]);this.o=a;this.C=null;this.D=b.o;this.B=null;S(this,a,"fullscreentoggled",this.F);S(this,a,"presentingplayerstatechange",this.G);S(this,a,"videodatachange",this.F);b9(this,FA(a));this.P("click",this.H,this)}B(a9,R);var c9={1:"M11,10 L18,13.74 18,22.28 11,26 M18,13.74 L26,18 26,18 18,22.28",2:"M11,10 L17,10 17,26 11,26 M20,10 L26,10 26,26 20,26",4:"M10,10 L18,10 18,26 10,26 M18,10 L26,10 26,26 18,26"};
function Ofa(a){switch(a){case 1:return'<div class="ytp-icon ytp-icon-play"></div>';case 2:return'<div class="ytp-icon ytp-icon-pause"></div>';case 3:return'<div class="ytp-icon ytp-icon-replay"></div>';case 4:return'<div class="ytp-icon ytp-icon-stop"></div>'}}a9.prototype.G=function(a){b9(this,a.state)};
function b9(a,b){var c,d=ry(a.o.getVideoData()),e=!1;Bz(b)?c=d?4:2:U(b,2)?(c=3,e=d):c=1;a.element.disabled=e;if(a.C!=c){var f;switch(c){case 2:f=Q("YTP_PAUSE");break;case 3:f=Q("YTP_REPLAY");break;case 1:f=Q("YTP_PLAY");break;case 4:f=Q("YTP_STOP")}e=void 0;3==c?(a.B||(a.B=Q7(a.D,a.element,1)),d="M26.466,21.04 L30.966,16 L27.8,16 C26.873,11.435 22.841,8 18.001,8 C12.474,8 8,12.477 8,18 C8,23.523 12.474,28 18.001,28 C21.181,28 24.009,26.511 25.841,24.197 L24.005,22.361 C22.652,24.217 20.471,25.427 18.001,25.427 C13.899,25.427 10.569,22.101 10.569,18 C10.569,13.898 13.899,10.572 18.001,10.572 C21.407,10.572 24.268,12.871 25.142,16 L21.966,16 L26.466,21.04",
a.update({title:f,label:null})):(a.B&&(a.B(),a.B=null),a.update({title:null,label:f}),d=c9[c],e=c9[a.C]);S7(a.D);a.o.V().C?a.element.innerHTML=Ofa(c):a.element.innerHTML=Wz(ka(a),d,e);a.C=c}}a9.prototype.F=function(){M(this.element,"ytp-play-button-playlist",wJ(this.o))};a9.prototype.H=function(){2==this.C?Ty(this.o,"pause"):3==this.C?Ty(this.o,"replay"):1==this.C?Ty(this.o,"play"):4==this.C&&Ty(this.o,"stop");Bz(FA(this.o))?this.o.pauseVideo():this.o.Tc()};
a9.prototype.R=function(){this.B&&this.B();a9.N.R.call(this)};function d9(a,b,c){var d={title:"{{title}}",href:"{{url}}","data-preview":"{{preview}}","data-tooltip-text":"{{text}}","data-duration":"{{duration}}","aria-disabled":"{{disabled}}","data-next":"{{next}}","data-prev":"{{prev}}"},e,f;c?(e="ytp-next-button",f=ai?'<div class="ytp-icon ytp-icon-next"></div>':'<svg xmlns:xlink="http://www.w3.org/1999/xlink" height="100%" version="1.1" viewBox="0 0 36 36" width="100%"><defs><path d="M16.2,12.5 L16.2,16.49 L9,12.5 L9,23.5 L16.2,19.50 L16.2,23.5 L24.5,19.1 L24.5,23.5 L27,23.5 L27,12.5 L24.5,12.5 L24.5,17.45 L16.2,12.5 Z" id="ytp-svg-32" /></defs><use class="ytp-svg-shadow" xlink:href="#ytp-svg-32" /><use class="ytp-svg-fill" xlink:href="#ytp-svg-32" /></svg>',
d.tabindex=33):(e="ytp-prev-button",f=ai?'<div class="ytp-icon ytp-icon-prev"></div>':'<svg xmlns:xlink="http://www.w3.org/1999/xlink" height="100%" version="1.1" viewBox="0 0 36 36" width="100%"><defs><path d="M19.8,12.5 L19.8,16.49 L27,12.5 L27,23.5 L19.8,19.50 L19.8,23.5 L11.5,19.1 L11.5,23.5 L9,23.5 L9,12.5 L11.5,12.5 L11.5,17.45 L19.8,12.5 Z" id="ytp-svg-37" /></defs><use class="ytp-svg-shadow" xlink:href="#ytp-svg-37" /><use class="ytp-svg-fill" xlink:href="#ytp-svg-37" /></svg>',d.tabindex=
31);R.call(this,["a",[e,"ytp-button"],d]);this.element.innerHTML=f;this.o=a;this.M=b.o;this.D=c;this.B=this.G=null;this.L=!1;this.J=this.K=this.C=null;this.F=!1;S(this,a,"fullscreentoggled",this.H);S(this,a,"videodatachange",this.H);S(this,a,"onPlaylistUpdate",this.H);this.H()}B(d9,R);function e9(a){a.B&&a.B.unsubscribe("shuffle",a.H,a)}
d9.prototype.H=function(){e9(this);this.J&&(this.ua(this.J),this.J=null);this.G=this.o.getVideoData(1);if(this.B=this.o.bc())this.B.subscribe("shuffle",this.H,this),this.J=S(this,this.o,"progresssync",this.U);this.F=f9(this);g9(this);this.yb(wJ(this.o)||Zy(this.o.V(),this.G,this.B)&&this.D)};d9.prototype.T=function(a){Ty(this.o,this.D?"next":"previous");var b=!0;this.L?b=Tz(a,this.o):Rm(a);b&&(this.D?this.o.rj(!0):this.F?this.o.Tb(0):this.o.sj(!0))};
function f9(a){return!!a.B&&!a.D&&3<=a.o.getCurrentTime()&&1==a.o.getPresentingPlayerType()}d9.prototype.U=function(){var a=f9(this);a!=this.F&&(this.F=a,g9(this))};
function g9(a){var b={duration:null,preview:null,text:null,title:null,url:null},c=a.o.V(),d=wJ(a.o),e=a.D&&Zy(c,a.G,a.B);if(a.F)b.title=Q("YTP_REPLAY");else if(d){var f=null;a.B&&(f=a.B.qb(a.D?Cy(a.B,!0):Dy(a.B,!0)));if(f){if(f.videoId){var h=a.B.C;b.url=c.getVideoUrl(f.videoId,h?h.toString():void 0)}b.text=f.title;b.duration=f.lengthSeconds?Jy(f.lengthSeconds):null;b.preview=f.xc(c,"default.jpg")}b.title=Q(a.D?"YTP_NEXT":"YTP_PREVIOUS")}else e&&(a.G.F&&a.G.F.length&&(f=Ly(a.G.F[0]),b.url=f.vk(c),
b.text=f.title,b.duration=f instanceof Sx?Jy(f.lengthSeconds):null,b.preview=f.xc(c,"default.jpg")),b.title=Q("YTP_NEXT"));b.disabled=!e&&!d;a.update(b);a.L=!!b.url;e||d||a.F?a.C||(a.C=Q7(a.M,a.element,1),a.K=a.P("click",a.T,a)):a.C&&(a.C(),a.C=null,a.ua(a.K),a.K=null);S7(a.M)}d9.prototype.R=function(){this.C&&(this.C(),this.C=null);e9(this);d9.N.R.call(this)};function h9(a,b){var c=["div","ytp-progress-bar-container",{"aria-disabled":!0},["div","ytp-progress-bar",{tabindex:30,role:"slider","aria-label":Q("YTP_SEEK_SLIDER"),"aria-valuemin":"{{ariamin}}","aria-valuemax":"{{ariamax}}","aria-valuenow":"{{arianow}}","aria-valuetext":"{{arianowtext}}"},["div","ytp-progress-bar-padding"],["div","ytp-progress-list",["div",["ytp-play-progress","ytp-swatch-background-color"]],["div","ytp-load-progress"],["div","ytp-hover-progress"],["div","ytp-clip-start-exclude"],
["div","ytp-clip-end-exclude"],["div","ytp-ad-progress-list"],["div","ytp-marker-crenellation-list"],["div","ytp-marker-progress-list"]],["div","ytp-scrubber-pull-indicator"]],["div","ytp-bound-time-left","{{boundTimeLeft}}"],["div","ytp-bound-time-right","{{boundTimeRight}}"],["div","ytp-clip-start",{title:Q("YTP_WATCH_ALL")}],["div","ytp-clip-end",{title:Q("YTP_WATCH_ALL")}]];Fr.call(this,c);this.B=a;this.vb=b.o;this.ia=!1;this.F=this.fb=0;this.Z=1;this.C=this.ob=this.H=0;this.Sa=!1;this.M=this.ca=
0;this.wb=this.ma["ytp-ad-progress-list"];this.Lb=this.ma["ytp-marker-progress-list"];this.Pa=this.ma["ytp-marker-crenellation-list"];this.W={};this.fa={};this.T=Infinity;c=b.o;this.K=this.ma["ytp-clip-end"];this.K.innerHTML=di();Tb(this,Q7(c,this.K,1));this.na=new NG(this.K,!0);I(this,this.na);this.na.subscribe("hoverstart",this.xs,this);this.na.subscribe("hoverend",this.ws,this);S(this,this.K,"click",this.Dj);this.La=this.ma["ytp-clip-end-exclude"];this.Rb=this.ma["ytp-clip-start-exclude"];this.X=
0;this.L=this.ma["ytp-clip-start"];this.L.innerHTML=ei();Tb(this,Q7(c,this.L,1));this.wa=new NG(this.L,!0);I(this,this.wa);this.wa.subscribe("hoverstart",this.xs,this);this.wa.subscribe("hoverend",this.ws,this);S(this,this.L,"click",this.Dj);this.Xa=this.ma["ytp-load-progress"];this.ga=0;this.Sb=this.ma["ytp-play-progress"];this.ea=this.ma["ytp-hover-progress"];this.G=0;this.Ca=this.ma["ytp-progress-bar"];this.D=null;this.aa=new R(["div",["ytp-scrubber-button","ytp-swatch-background-color"]]);I(this,
this.aa);this.aa.j(this.Ca);this.Ea=new Pr(this.aa,100);this.ub=this.ma["ytp-scrubber-pull-indicator"];this.za=new Ge;this.Ta=new F4;this.o=new B4(0,0);this.J=this.Da=!1;this.Wa=null;S(this,a,"presentingplayerstatechange",this.NE);S(this,a,"videodatachange",this.us);S(this,a,"videoplayerreset",this.hw);S(this,a,"cuerangesadded",this.As);S(this,a,"cuerangesremoved",this.WE);S(this,a,"cuerangemarkersupdated",this.As);S(this,a,"onPlaybackQualityChange",this.OE);i9(this,a.getVideoData(),!0)}B(h9,Fr);
function j9(a){if(a.F){var b=a.B.Qe(),c=new B4(b.seekableStart,b.seekableEnd),d=E4(c,b.loaded,0),b=E4(c,b.current,0);a.o=c;k9(a);l9(a,b,d);m9(a)}}g=h9.prototype;g.PE=function(a){if(!Sm(a)){var b=!1;switch(Tm(a)){case 36:this.B.Tb(0);b=!0;break;case 35:this.B.Tb(Infinity);b=!0;break;case 34:this.B.Uc(-60);b=!0;break;case 33:this.B.Uc(60);b=!0;break;case 38:this.B.Uc(5);b=!0;break;case 40:this.B.Uc(-5),b=!0}b&&Rm(a)}};g.us=function(a,b){i9(this,b,"newdata"==a)};g.hw=function(){this.us("newdata",gb(this.B.getVideoData()))};
function i9(a,b,c){var d=!!b&&my(b);a.Da=d&&b.Kd;n9(a,CG(a.B));c&&(d?(c=b.clipEnd,a.X=b.clipStart,a.T=c,o9(a),l9(a,a.G,a.ga)):a.Dj());j9(a)}g.OE=function(){p9(this.B.getVideoData())?FA(this.B).ib()&&q9(this,!0):q9(this,!1)};g.NE=function(a){0<zC(a,64)||!p9(this.B.getVideoData())?q9(this,!1):Bz(a.state)&&0>zC(a,64)&&q9(this,!0)};function p9(a){return!!a&&my(a)&&!!a.o&&a.o.video.j}function q9(a,b){a.Sa=b;M(a.Xa,"ytp-fast-load",b)}g.RE=function(){Rr(this.Ea)};
g.TE=function(a,b,c){var d=Ag(this.element),e=r9(this).j,f=c?c.getAttribute("data-tooltip"):void 0;f&&(a=E4(this.o,Number(c.getAttribute("data-position")),0)*e+Ag(this.Ca).x);this.za.x=a-d.x;this.za.y=b-d.y;c=r9(this);a=D4(this.o,c.o);d=f||Jy(this.Da?a-this.o.j:a);b=this.vb;c=c.position+this.fb;f=!!f;2!=b.B&&(b.element.className="ytp-tooltip ytp-bottom",b.B=2,b.M&&Rr(b.H),e=b.F.getVideoData(),b.G=jy(e),b.G&&(b.K=ky(e),b.K.subscribe("l",b.Fs,b)));b.update({text:d,title:""});M(b.element,"ytp-text-detail",
!!f);f=-1;b.G&&(f=Fv(b.G,96*b.D),f=b.G.j[f].Aj(a));T7(b,f);R7(b,c);M(this.ea,"ytp-hover-progress-shown",!U(FA(this.B),64));m9(this)};g.SE=function(){this.vb.Ee();this.Ea.da();te(this.ea,"ytp-hover-progress-shown")};g.QE=function(a,b){this.C&&(uj(this.C),this.C=0);this.ob=b;K(this.element,"ytp-drag");(this.ia=Bz(FA(this.B)))&&this.B.pauseVideo()};
g.UE=function(){this.ca=0;te(this.element,"ytp-pull-ui");te(this.element,"ytp-pulling");if(0<this.H){var a=xj(),b=this.H,c=r9(this).position;this.C&&uj(this.C);this.C=Dr(x(this.zs,this,a,b,c),0)}this.B.Tb(D4(this.o,r9(this).o));te(this.element,"ytp-drag");this.ia&&!U(FA(this.B),2)&&this.B.Tc()};g.zs=function(a,b,c){var d;d=(xj()-a)/200;d=1-Math.pow(1-d,3);var e=c+d*(this.G*this.F-c);if(0>d||1<d)d=1;s9(this,(1-d)*b,e,this.G);this.C=1>d?Dr(x(this.zs,this,a,b,c),0):0};
function s9(a,b,c,d){b=De(b,0,a.J?60:40);a.H=b;var e=a.Z;a.Z=b/(a.J?60:40)*(Math.max(C4(a.o)/a.F,1)-1)+1;b=a.F*a.Z;a.M=De(d*b-c,0,b-a.F);e!=a.Z&&k9(a)}
g.VE=function(a,b){var c=!1,d=!1,e=r9(this);3600<=C4(this.o)&&(s9(this,this.ob-b-10,e.position,e.o),d=!0,c=this.H>.1*(this.J?60:40),e=r9(this));M(this.element,"ytp-pull-ui",d);c&&K(this.element,"ytp-pulling");c=0;e.A&&0>=e.position?c=-1:e.C&&e.position>=e.width&&(c=1);!this.C||c&&c==this.ca||tj(this.C);c&&(this.C=Dr(x(this.ys,this,xj(),this.M),0));this.ca=c;this.B.Tb(D4(this.o,e.o),!1)};
g.ys=function(a,b){if(this.ca){var c=this.F*(this.Z-1);this.M=De(b+this.ca*(xj()-a)*.3,0,c);k9(this);this.B.Tb(D4(this.o,r9(this).o),!1);0<this.M&&this.M<c&&(this.C=Dr(x(this.ys,this,a,b),0))}};
function k9(a){var b=r9(a),c=-b.A/b.j,d=(-b.A+b.width)/b.j,e=Yf(a.Pa),f=0;if(a.H>.2*(a.J?60:40))for(var h=C4(a.o)/60*d,k=Math.ceil(C4(a.o)/60*c);k<h;k++){var l=e[f];l||(l=document.createElement("div"),a.Pa.appendChild(l));f++;l.className=0==k%60?"ytp-60m-progress":0==k%30?"ytp-30m-progress":0==k%15?"ytp-15m-progress":"ytp-1m-progress";l.style.left=(60*k/C4(a.o)-c)*b.j+"px"}b=a.Da?a.o.j:0;a.update({boundTimeLeft:Jy(D4(a.o,c)-b),boundTimeRight:Jy(D4(a.o,d)-b)});for(c=e.length-1;c>=f;c--)Wf(e[c]);a.element.style.height=
a.H+(a.J?8:5)+"px";a.O("height-change",a.H);a.aa.element.style.height=a.H+(a.J?20:13)+"px";for(var n in a.W)t9(a,a.W[n],a.fa[n]);o9(a);l9(a,a.G,a.ga)}function r9(a){var b=a.za.x,c=a.F*a.Z,b=De(b,0,a.F);a.Ta.update(b,a.F,-a.M,-(c-a.M-a.F));return a.Ta}
function l9(a,b,c){a.G=b;a.ga=c;var d=r9(a),e=a.o.j,f=D4(a.o,a.G);a.update({ariamin:Math.floor(a.o.o),ariamax:Math.floor(e),arianow:Math.floor(f),arianowtext:Q("YTP_PROGRESS_LABEL_2",{PLAY_PROGRESS:Jy(f),DURATION:Jy(e)})});var e=E4(a.o,a.X,0),h=E4(a.o,a.T,1),f=De(b,e,h);c=a.Sa?1:De(c,e,h);h=b*d.j+d.A;b=0<=h&&b<=d.width;a.aa.element.style.visibility=b?"":"hidden";a.ub.style.display=b?"":"none";b=h+"px";a.aa.element.style.left=b;a.ub.style.left=b;u9(a,a.Sb,d,e,f);u9(a,a.Xa,d,e,c)}
function u9(a,b,c,d,e,f){b.style.left=Math.max(d*c.j+c.A,0)+"px";d=Math.min((e-d)*c.j+c.A,c.width);f||a.B.getVideoData().J?(b.style.width=d+"px",og(b,"transform","")):(og(b,"transform","scalex("+(c.width?d/c.width:0)+")"),b.style.width="")}g.setPosition=function(a,b,c){this.fb=a;this.F=b;this.J=c;k9(this)};
function o9(a){var b=a.X>a.o.o,c=0<a.o.j&&a.T<a.o.j;M(a.element,"ytp-clip-start-enabled",b);M(a.element,"ytp-clip-end-enabled",c);b=b?E4(a.o,a.X,0):0;c=c?E4(a.o,a.T,1):1;a.L.style.left=Math.round(1E3*b)/10+"%";a.K.style.left=Math.round(1E3*c)/10+"%";a.Rb.style.width=Math.round(1E3*b)/10+"%";a.La.style.left=Math.round(1E3*c)/10+"%";a.La.style.width=Math.round(1E3*(1-c))/10+"%"}function m9(a){var b=r9(a);u9(a,a.ea,b,a.G,b.o);M(a.ea,"ytp-hover-progress-light",b.o>a.G)}
g.xs=function(){this.L.innerHTML=ci();this.K.innerHTML=ci();K(this.element,"ytp-clip-hover")};g.ws=function(){this.L.innerHTML=ei();this.K.innerHTML=di();te(this.element,"ytp-clip-hover")};g.Dj=function(){this.X=0;this.T=Infinity;o9(this);l9(this,this.G,this.ga)};
function t9(a,b,c){var d=r9(a),e=E4(a.o,b.start/1E3,0),f;a:{switch(b.style){case "ytp-chapter-marker":f=8;break a;case "ytp-ad-progress":f=6;break a;case "ytp-time-marker":f=Number.POSITIVE_INFINITY;break a}f=void 0}var h=f/d.width;switch(b.style){case "ytp-chapter-marker":f=e+h/2;e-=h/2;break;default:f=E4(a.o,b.end/1E3,1),h!=Number.POSITIVE_INFINITY&&(e=De(e,0,f-h)),f=Math.min(f,e+h),b.color&&(c.style.background=b.color)}u9(a,c,d,e,f,!0);c.className=b.style}
g.As=function(a){for(var b=0;b<a.length;b++){var c=a[b];if(c.visible){var d=c.getId();if(!this.W[d]){var e=document.createElement("div");c.tooltip&&(e.setAttribute("data-tooltip",c.tooltip),e.setAttribute("data-position",c.start/1E3));this.W[d]=c;this.fa[d]=e;t9(this,c,e);"ytp-chapter-marker"==c.style?this.Lb.appendChild(e):this.wb.appendChild(e)}}else v9(this,c)}};g.WE=function(a){for(var b=0;b<a.length;b++)v9(this,a[b])};
function v9(a,b){var c=b.getId();a.W[c]==b&&(Wf(a.fa[c]),delete a.W[c],delete a.fa[c])}function n9(a,b){b?a.D||(a.element.removeAttribute("aria-disabled"),a.D=new NG(a.Ca,!0),a.D.subscribe("hoverstart",a.RE,a),a.D.subscribe("hovermove",a.TE,a),a.D.subscribe("hoverend",a.SE,a),a.D.subscribe("dragstart",a.QE,a),a.D.subscribe("dragmove",a.VE,a),a.D.subscribe("dragend",a.UE,a),a.Wa=a.P("keydown",a.PE)):a.D&&(a.element.setAttribute("aria-disabled",!0),a.ua(a.Wa),a.D.cancel(),a.D.dispose(),a.D=null)}
g.R=function(){this.C&&(tj(this.C),this.C=0);n9(this,!1);h9.N.R.call(this)};function w9(a){R.call(this,["div","ytp-remote",["div","ytp-remote-display-status",["div","ytp-remote-display-status-icon"],["div","ytp-remote-display-status-text","{{statustext}}"],["div","ytp-remote-display-status-receiver","{{receiver}}"]]]);this.o=new Pr(this,250);I(this,this.o);this.B=a;this.ma["ytp-remote-display-status-icon"].innerHTML=bi();S(this,a,"presentingplayerstatechange",this.C);x9(this,FA(a))}B(w9,R);w9.prototype.C=function(a){x9(this,a.state)};
function x9(a,b){if(3==a.B.getPresentingPlayerType()){var c;c=U(b,128)?Q("YTP_MDX_PLAYER_ERROR"):Q("YTP_MDX_STATUS_CONNECTED");var d=a.B.rb("remote","currentReceiver");a.update({statustext:c,receiver:d.name});Rr(a.o)}else a.o.da()};function y9(a,b,c){var d=["button",["ytp-remote-button","ytp-button"],{title:Q("YTP_MDX_TOOLTIP"),tabindex:42}];R.call(this,d);this.$=a;this.D=c;this.B=null;S(this,a,"onMdxReceiversChange",this.o);S(this,a,"presentingplayerstatechange",this.o);this.o();this.P("click",this.C,this);Tb(this,Q7(b.o,this.element,1))}B(y9,R);
y9.prototype.o=function(){var a=!1;-1!=this.$.hh().indexOf("remote")&&(a=1<this.$.rb("remote","receivers").length);this.yb(a);var b=1;a&&this.$.rb("remote","casting")&&(b=2);if(this.B!=b)switch(this.B=b,b){case 1:this.element.innerHTML=ai?'<div class="ytp-icon ytp-icon-cast-desktop-off"></div>':'<svg xmlns:xlink="http://www.w3.org/1999/xlink" height="100%" version="1.1" viewBox="0 0 36 36" width="100%"><defs><path d="M16.81,26 L15.09,26 C14.69,22.23 11.73,19.24 8,18.84 L8,17.11 C12.68,17.52 16.40,21.28 16.81,26 L16.81,26 Z M13.62,26 L11.91,26 C11.55,23.99 9.99,22.41 8,22.05 L8,20.32 C10.93,20.71 13.24,23.03 13.62,26 L13.62,26 Z M10.45,26 L8,26 L8,23.52 C9.20,23.84 10.13,24.78 10.45,26 L10.45,26 Z M18.12,25 C17.94,23.94 17.62,22.93 17.17,22 L25,22 L25,14 L12,14 L12,16.76 C11.06,16.30 10.05,15.97 9,15.79 L9,11 L28,11 L28,25 L18.12,25 Z" id="ytp-svg-4" /></defs><use class="ytp-svg-shadow" xlink:href="#ytp-svg-4" /><use class="ytp-svg-fill" xlink:href="#ytp-svg-4" /></svg>';
break;case 2:this.element.innerHTML=bi()}};y9.prototype.C=function(){Ty(this.$,"remote");if(this.$.rb("remote","castSelector"))this.$.Ja()&&Vz(this.$),this.$.zd("remote","castSelector",!0);else{var a=this.D,b=this.element;W7(a)?a.Ab():(z9(a),a.J.open(),a.Ve(b))}};function A9(a,b){this.o=!1;var c=f8({role:"menuitemcheckbox","aria-checked":this.o});e8.call(this,c,b,a,["div","ytp-menuitem-toggle-checkbox"]);this.P("click",this.K)}B(A9,e8);A9.prototype.K=function(){B9(this,!this.o);this.O("select",this.o)};A9.prototype.getValue=function(){return this.o};function B9(a,b){a.o=b;a.element.setAttribute("aria-checked",a.o)};function C9(a,b){A9.call(this,Q("YTP_ANNOTATIONS"),6);this.F=b;this.$=a;this.B=!1;S(this,a,"videodatachange",this.D);S(this,a,"onApiChange",this.D);this.subscribe("select",this.G,this);this.D()}B(C9,A9);C9.prototype.D=function(){JI(this.$.app.B,"iv-module")&&3!=this.$.getPresentingPlayerType()?this.B||(D9(this.F,this),this.B=!0):this.B&&(E9(this.F,this),this.B=!1);B9(this,jM(this.$.app.B,"iv-module"))};C9.prototype.G=function(a){jM(this.$.app.B,"iv-module");a?this.$.qj("iv-module"):this.$.ur("iv-module")};function F9(a,b,c,d,e){var f=f8({"aria-haspopup":!0});e8.call(this,f,b,a);this.o=d;this.J=null;this.B={};this.G=new c8;I(this,this.G);this.M=new g8(c,this.G,a,e);I(this,this.M);this.P("keydown",this.YE);this.P("click",this.open)}B(F9,e8);g=F9.prototype;g.open=function(){$7(this.o,this.M)};
g.Ic=function(a){if(this.J){var b=this.B[this.J];b.element.getAttribute("aria-checked");b.element.removeAttribute("aria-checked")}this.B[a].element.setAttribute("aria-checked",!0);this.Fb(this.wc(a));this.O("size-change");this.J=a};
function G9(a,b){a.G.removeAll();for(var c={},d=!1,e=0;e<b.length;e++){var f=b[e],h=a.B[f],k=f==a.J;k&&(d=!0);if(h&&h.priority==-e){var k=a,l=f,n=k.B[l];n.C(k.wc(l,!0));n.O("size-change");delete a.B[f]}else h=new e8(["div","ytp-menuitem",{tabindex:38,role:"menuitemradio","aria-checked":k?!0:null},["div","ytp-menuitem-label","{{label}}"]],-e,a.wc(f,!0)),h.P("click",x(a.Jz,a,f));c[f]=h;d8(a.G,h,!0)}d||(a.J=null);for(f in a.B)a.B[f].dispose();a.B=c}g.Kb=function(a){this.Ic(a);this.O("select",a)};
g.Jz=function(a){"true"!=this.B[a].element.getAttribute("aria-disabled")&&this.Kb(a)};g.wc=function(a){return a.toString()};g.YE=function(a){Sm(a)||39!=Tm(a)||(this.open(),Rm(a))};g.R=function(){F9.N.R.call(this);for(var a in this.B)this.B[a].dispose()};function H9(a,b){F9.call(this,Q("YTP_AUDIO_TRACK_TITLE"),2,a,b);this.$=a;this.K=new R(["div","",["span","",Q("YTP_AUDIO_TRACK_TITLE")],["span","ytp-menuitem-label-count","{{content}}"]]);this.C(this.K);this.L={};this.D=!1;S(this,a,"videodatachange",this.H);S(this,a,"onPlaybackAudioChange",this.H);this.H()}B(H9,F9);
H9.prototype.H=function(){var a=this.$.vr();1<a.length?(G9(this,F(a,this.F)),this.L=Qb(a,this.F,this),this.K.Fb(a.length?" ("+a.length+")":""),this.Ic(this.F(this.$.Yf())),this.D||(D9(this.o,this),this.D=!0)):this.D&&(E9(this.o,this),this.D=!1)};H9.prototype.Kb=function(a){H9.N.Kb.call(this,a);this.$.xm(this.L[a]);this.o.ae()};H9.prototype.F=function(a){return a.toString()};function I9(a,b){A9.call(this,Q("YTP_AUTOPLAY"),7);this.H=b;this.$=a;this.F=!1;this.B=[];S(this,a,"presentingplayerstatechange",this.D);this.subscribe("select",this.J,this);this.D()}B(I9,A9);
I9.prototype.D=function(){if(1==this.$.getPresentingPlayerType()&&Zy(this.$.V(),this.$.getVideoData(),this.$.bc()))this.F||(D9(this.H,this),this.F=!0,this.B.push(S(this,this.$,"videodatachange",this.D)),this.B.push(S(this,this.$,"videoplayerreset",this.D)),this.B.push(S(this,this.$,"onPlaylistUpdate",this.D)),this.B.push(S(this,this.$,"autonavchange",this.G)),this.G(this.$.getVideoData().Ld));else if(this.F){E9(this.H,this);this.F=!1;for(var a=0;a<this.B.length;a++)this.ua(this.B[a])}};
I9.prototype.G=function(a){B9(this,1!=a)};I9.prototype.J=function(a){this.$.app.O("onAutonavChangeRequest",1!=(a?2:1))};function J9(a,b){A9.call(this,Q("YTP_BEYOND_CRAWL"),3);this.D=b;this.$=a;S(this,a,"onApiChange",this.B);S(this,a,"videodatachange",this.B);this.subscribe("select",this.F,this);this.B()}B(J9,A9);J9.prototype.B=function(){if(this.$.getVideoData().J&&JI(this.$.app.B,"captions")){D9(this.D,this);var a=!!this.$.rb("captions","beyondCrawl");B9(this,a)}};J9.prototype.F=function(a){!a||jM(this.$.app.B,"captions")&&this.$.rb("captions","track").displayName||xJ(this.$);this.$.zd("captions","beyondCrawl",a)};function K9(a,b){F9.call(this,Q("YTP_QUALITY_TITLE"),1,a,b);K(this.G.element,"ytp-quality-menu");this.$=a;this.L={};this.K="unknown";this.D=!1;S(this,a,"videodatachange",this.F);S(this,a,"videoplayerreset",this.F);S(this,a,"onPlaybackQualityChange",this.H);this.F()}B(K9,F9);
K9.prototype.F=function(){if(1==this.$.getPresentingPlayerType()){for(var a={},b=II(nr(this.$.app)),c=0;c<b.length;c++){var d=b[c];a[d.quality]=d}this.L=a;a=this.$.lr();G9(this,a);if(a.length){this.H();this.D||(D9(this.o,this),this.D=!0);return}}this.D&&(E9(this.o,this),this.D=!1)};K9.prototype.H=function(){var a=zJ(this.$);this.B[a]&&(this.K=this.$.pj(),this.Ic(a),"auto"==a&&this.Fb(this.wc(a)))};K9.prototype.Kb=function(a){K9.N.Kb.call(this,a);this.$.tj(a);this.o.Ab()};
function L9(a,b,c){var d=(a=a.L[b])?a.qualityLabel:(d=As[b])?d+"p":Q("YTP_AUTO");c=["span",c,d];var e;a&&a.j?c.push(["div","ytp-menuitem-badge-container",{child:new o7('<svg fill="#00838f" height="11px" viewBox="0 0 48 48" width="11px"><path d="M0 0v48h48V0H0zm10.6 30.64L4 24.05l6.69-6.69 6.6 6.59-6.69 6.69zM24 44l-6.7-6.7 13.35-13.35-13.32-13.28L24 4l20 20-20 20z" /><path d="M 24,44 44,24 24,4 17.33,10.67 30.65,23.95 17.3,37.3 z M 10.6,30.64 17.29,23.95 10.69,17.36 4,24.05 z" style="fill:#ffffff" /></svg>')}]):
"highres"==b?e="8K":"hd2880"==b?e="5K":"hd2160"==b?e="4K":0==b.indexOf("hd")&&(e="HD");e&&(c.push(" "),c.push(["sup","ytp-swatch-color",e]));return c}K9.prototype.wc=function(a,b){var c=["div",null,L9(this,a)],d=zJ(this.$);b||"auto"!=d||"auto"!=a||(c.push(" "),c.push(L9(this,this.K,["ytp-menu-label-secondary"])));return c};function M9(a,b){F9.call(this,Q("YTP_MDX_TITLE"),0,a,b);this.$=a;this.D=!1;this.K={};S(this,a,"onMdxReceiversChange",this.H);S(this,a,"presentingplayerstatechange",this.H);this.H()}B(M9,F9);
M9.prototype.H=function(){var a=-1!=this.$.hh().indexOf("remote")?this.$.rb("remote","receivers"):[];1<a.length&&!this.$.rb("remote","castSelector")?(this.K=Qb(a,this.F,this),G9(this,F(a,this.F)),a=this.$.rb("remote","currentReceiver"),this.Ic(this.F(a)),this.D||(D9(this.o,this),this.D=!0)):this.D&&(E9(this.o,this),this.D=!1)};M9.prototype.F=function(a){return a.key};M9.prototype.wc=function(a){return this.K[a].name};
M9.prototype.Kb=function(a){M9.N.Kb.call(this,a);this.$.zd("remote","currentReceiver",this.K[a]);this.o.Ab()};function N9(a,b){F9.call(this,Q("YTP_SPEED_TITLE"),5,a,b);this.$=a;this.D=!1;this.F=null;S(this,a,"presentingplayerstatechange",this.Ds);this.Ds()}B(N9,F9);g=N9.prototype;g.sk=function(a){return a.toString()};g.wc=function(a){return"1"==a?Q("YTP_NORMAL_SPEED"):a.toString()};
g.Ds=function(){this.$.V().T&&1==this.$.getPresentingPlayerType()?this.D||(D9(this.o,this),this.D=!0,this.F=S(this,this.$,"onPlaybackRateChange",this.Qz),G9(this,F(this.$.oj(),this.sk)),this.Ic(this.sk(this.$.app.T))):this.D&&(E9(this.o,this),this.D=!1,this.ua(this.F),this.F=null)};g.Qz=function(a){this.Ic(this.sk(a))};g.Kb=function(a){N9.N.Kb.call(this,a);this.$.uj(parseFloat(a));this.o.ae()};function O9(a,b,c,d){F9.call(this,P9(d),a,b,c);K(this.element,"ytp-subtitles-options-menu-item");this.H=d.option.toString();this.D=Qb(d.options,this.F,this);G9(this,F(d.options,this.F))}B(O9,F9);O9.prototype.Ic=function(a){O9.N.Ic.call(this,a)};O9.prototype.F=function(a){return a.option.toString()};function P9(a){return(a.message?Q(a.message):a.text)||""}O9.prototype.wc=function(a){return P9(this.D[a])};O9.prototype.Kb=function(a){O9.N.Kb.call(this,a);this.O("settingChange",this.H,this.D[a].option)};function Q9(a,b){this.G={};this.o=new c8;for(var c=0;c<WJ.length;c++){var d=WJ[c],e=new O9(-c,a,b,d);I(this,e);e.subscribe("settingChange",this.H,this);this.G[d.option.toString()]=e;d8(this.o,e,!0)}c=new e8(f8(),-WJ.length,Q("YTP_RESET"));I(this,c);c.P("click",x(this.H,this,"reset",!0));d8(this.o,c,!0);g8.call(this,a,this.o,Q("YTP_OPTIONS"))}B(Q9,g8);function R9(a,b){for(var c in b){var d=a.G[c];if(d){var e=b[c].toString();d.B[e]&&d.Ic(e)}}}Q9.prototype.H=function(a,b){this.O("settingChange",a,b)};
Q9.prototype.focus=function(){this.o.focus()};function S9(a,b){F9.call(this,Q("YTP_AUTO_TRANSLATE"),0,a,b);this.D={}}B(S9,F9);S9.prototype.F=function(a){return a.languageCode};S9.prototype.wc=function(a){return this.D[a].languageName||""};S9.prototype.Kb=function(a){this.O("select",a);a=this.o;var b=a.B.pop(),c=a.B[0];a.B=[c];a8(a,b,c,!0)};function T9(a,b){F9.call(this,Q("YTP_SUBTITLES"),4,a,b,x(this.NB,this));this.$=a;this.L=!1;this.D={};this.K=new R(["div","",["span","",Q("YTP_SUBTITLES")],["span","ytp-menuitem-label-count","{{content}}"]]);I(this,this.K);this.C(this.K);this.H=new S9(a,b);I(this,this.H);this.H.subscribe("select",this.FA,this);this.F=new Q9(a,b);I(this,this.F);this.F.subscribe("settingChange",this.nF,this);S(this,a,"videodatachange",this.ph);S(this,a,"onApiChange",this.ph);S(this,a,"onCaptionsTrackListChanged",this.ph);
S(this,a,"captionschanged",this.ph);this.ph()}B(T9,F9);g=T9.prototype;g.Jm=function(a){return jc(a)?"__off__":a.displayName};g.wc=function(a){return"__off__"==a?Q("YTP_LANGUAGE_OFF"):"__translate__"==a?Q("YTP_AUTO_TRANSLATE"):"__contribute__"==a?Q("YTP_CONTRIBUTE_MENU_ITEM"):("__off__"==a?{}:this.D[a]).displayName};
g.Kb=function(a){if("__translate__"==a)this.H.open();else if("__contribute__"==a){this.$.pauseVideo();this.$.Ja()&&Vz(this.$);a=this.$.V();var b=this.$.getVideoData();Rz(a.baseYtUrl+"timedtext_video?v="+b.videoId)}else this.$.zd("captions","track","__off__"==a?{}:this.D[a]),T9.N.Kb.call(this,a),this.o.ae()};g.NB=function(){$7(this.o,this.F)};
g.ph=function(){var a=-1!=this.$.hh().indexOf("captions"),b=this.$.getVideoData().Ca;if(a||b){var c,d;if(a){var e;e=this.$.rb("captions","track");var f=this.$.rb("captions","tracklist",{includeAsr:!0}),h=this.$.rb("captions","translationLanguages"),k=this.$.rb("captions","displaySettings");U9(k);this.D=Qb(f,this.Jm,this);c=F(f,this.Jm);if(h.length){d=this.H;var l=h;d.D=Qb(l,d.F,d);G9(d,F(l,d.F));c.push("__translate__")}d=this.Jm(e)}else this.D={},c=[],d="__off__";c.unshift("__off__");this.D.__off__=
{};b&&c.unshift("__contribute__");this.D[d]||(this.D[d]=e,c.push(d));G9(this,c);this.Ic(d);a?(R9(this.F,k),this.K.Fb(f.length?" ("+f.length+")":""),a&&h.length&&this.B.__translate__.element.setAttribute("aria-disabled",!!jc(e))):this.K.Fb("");this.L||(D9(this.o,this),this.L=!0)}else this.L&&(E9(this.o,this),this.L=!1)};function U9(a){a.fontFamily=KJ.indexOf(a.fontFamilyOption);a.charEdgeStyle=LJ.indexOf(a.charEdgeStyle)}
g.FA=function(a){var b=this.$.rb("captions","track"),b=nc(b);b.translationLanguage=this.H.D[a];this.$.zd("captions","track",b)};g.nF=function(a,b){var c={};switch(a){case "fontFamily":c.fontFamilyOption=KJ[b];break;case "charEdgeStyle":c.charEdgeStyle=LJ[b];break;default:c[a]=b}c=yJ(this.$,c);U9(c);R9(this.F,c)};function V9(a,b){F9.call(this,Q("YTP_THREED_SHORT"),8,a,b);this.$=a;this.D=!1;S(this,a,"videodatachange",this.H);this.F=null;this.H()}B(V9,F9);var Pfa={0:"YTP_THREED_VIEWMODE_2D",1:"YTP_THREED_VIEWMODE_ANAGLYPH"};V9.prototype.wc=function(a){return Q(Pfa[parseInt(a,10)])};
V9.prototype.H=function(){var a=UG(this.$);"Anaglyph3D"==a.shader||"Spherical3D"==a.shader?(this.D||(this.F=a.shader,D9(this.o,this),this.D=!0,G9(this,[(0).toString(),(1).toString()])),a=a.displayMode,void 0!=a&&this.Ic(a.toString())):this.D&&(E9(this.o,this),this.D=!1)};V9.prototype.Kb=function(a){V9.N.Kb.call(this,a);BJ(this.$,{shader:this.F,displayMode:a});this.o.ae();a=this.$;var b=UG(a);a.app.Oa("webglsettingschanged",b)};function W9(a){this.o=a;this.F=new c8("ytp-main-menu-id");I(this,this.F);a=new g8(a,this.F);I(this,a);X7.call(this,a,"ytp-settings-menu");this.J=this.H=null;this.K=!1}B(W9,X7);function z9(a){if(!a.K){a.K=!0;var b=new K9(a.o,a);I(a,b);b=new T9(a.o,a);I(a,b);b=new J9(a.o,a);I(a,b);b=new C9(a.o,a);I(a,b);b=new N9(a.o,a);I(a,b);b=new V9(a.o,a);I(a,b);b=new I9(a.o,a);I(a,b);b=new H9(a.o,a);I(a,b);a.J=new M9(a.o,a);I(a,a.J);0>=a.F.o.length&&a.H.da()}}function D9(a,b){d8(a.F,b);a.H&&a.H.Ba()}
function E9(a,b){a.A&&1>=a.F.o.length&&a.da();a.F.remove(b);0>=a.F.o.length&&a.H&&a.H.da()}W9.prototype.Ve=function(a){z9(this);0<this.F.o.length&&W9.N.Ve.call(this,a)};W9.prototype.Ba=function(){W9.N.Ba.call(this)};W9.prototype.da=function(){document.activeElement&&bg(this.element,document.activeElement)&&this.H.focus();W9.N.da.call(this)};function X9(a,b,c){var d=["button",["ytp-button","ytp-settings-button"],{"aria-haspopup":!0,"aria-expanded":"{{pressed}}","aria-owns":"ytp-main-menu-id",title:Q("YTP_SETTINGS"),tabindex:39}];R.call(this,d);this.element.innerHTML=ai?'<div class="ytp-icon ytp-icon-settings"></div>':'<svg xmlns:xlink="http://www.w3.org/1999/xlink" height="100%" version="1.1" viewBox="0 0 36 36" width="100%"><defs><path d="M27,19.35 L27,16.65 L24.61,16.65 C24.44,15.79 24.10,14.99 23.63,14.28 L25.31,12.60 L23.40,10.69 L21.72,12.37 C21.01,11.90 20.21,11.56 19.35,11.38 L19.35,9 L16.65,9 L16.65,11.38 C15.78,11.56 14.98,11.90 14.27,12.37 L12.59,10.69 L10.68,12.60 L12.36,14.28 C11.89,14.99 11.55,15.79 11.38,16.65 L9,16.65 L9,19.35 L11.38,19.35 C11.56,20.21 11.90,21.01 12.37,21.72 L10.68,23.41 L12.59,25.32 L14.28,23.63 C14.99,24.1 15.79,24.44 16.65,24.61 L16.65,27 L19.35,27 L19.35,24.61 C20.21,24.44 21.00,24.1 21.71,23.63 L23.40,25.32 L25.31,23.41 L23.62,21.72 C24.09,21.01 24.43,20.21 24.61,19.35 L27,19.35 Z M18,22.05 C15.76,22.05 13.95,20.23 13.95,18 C13.95,15.76 15.76,13.95 18,13.95 C20.23,13.95 22.05,15.76 22.05,18 C22.05,20.23 20.23,22.05 18,22.05 L18,22.05 Z" id="ytp-svg-40" /></defs><use class="ytp-svg-shadow" xlink:href="#ytp-svg-40" /><use class="ytp-svg-fill" xlink:href="#ytp-svg-40" /></svg>';
this.B=c;this.B.subscribe("show",this.C,this);this.$=a;this.P("click",this.D);S(this,this.$,"onPlaybackQualityChange",this.o);S(this,a,"videodatachange",this.o);S(this,a,"webglsettingschanged",this.o);Tb(this,Q7(b.o,this.element,1));this.o();this.C(!1)}B(X9,R);X9.prototype.D=function(a){Ty(this.$,"settings");this.B.A?this.B.Ab():(this.$.qj("captions"),this.B.Ve(Nm(a)))};X9.prototype.C=function(a){Ar(this,"pressed",a)};
X9.prototype.o=function(){var a=1==this.$.getPresentingPlayerType(),b=UG(this.$),c=a&&("Anaglyph3D"==b.shader||"Spherical3D"==b.shader),b=c&&0==parseInt(b.displayMode,10),a=c||!a?null:this.$.pj();M(this.element,"ytp-hd-quality-badge","hd720"==a||"hd1080"==a||"hd1440"==a);M(this.element,"ytp-4k-quality-badge","hd2160"==a);M(this.element,"ytp-5k-quality-badge","hd2880"==a);M(this.element,"ytp-8k-quality-badge","highres"==a);M(this.element,"ytp-3d-badge-grey",c&&b);M(this.element,"ytp-3d-badge",c&&!b)};function Y9(a,b){R.call(this,["button",["ytp-size-button","ytp-button"],{title:"{{title}}",tabindex:40}]);this.o=a;this.D=b.o;this.C=null;S(this,a,"sizestylechange",this.B);S(this,a,"fullscreentoggled",this.B);S(this,a,"presentingplayerstatechange",this.B);this.B();this.P("click",this.F);Tb(this,Q7(this.D,this.element,1))}B(Y9,R);Y9.prototype.F=function(){Ty(this.o,this.o.app.na?"size_small":"size_large");var a=this.o.app,b=!a.na;sJ(a,!0,b);a.O("SIZE_CLICKED",b)};
Y9.prototype.B=function(){this.yb(this.o.app.wb&&!this.o.Ja()&&3!=this.o.getPresentingPlayerType());if(this.A){var a=this.o.app.na;if(this.C!=a){this.C=a;if(this.o.V().C)this.element.innerHTML=a?ai?'<div class="ytp-icon ytp-icon-default-view"></div>':'<svg xmlns:xlink="http://www.w3.org/1999/xlink" height="100%" version="1.1" viewBox="0 0 36 36" width="100%"><defs><path d="M10,13 L26,13 L26,23 L10,23 L10,13 Z M13,16 L13,20 L23,20 L23,16 L13,16 Z" id="ytp-svg-10" /></defs><use class="ytp-svg-shadow" xlink:href="#ytp-svg-10" /><use class="ytp-svg-fill" xlink:href="#ytp-svg-10" /></svg>':
ai?'<div class="ytp-icon ytp-icon-theater-mode"></div>':'<svg xmlns:xlink="http://www.w3.org/1999/xlink" height="100%" version="1.1" viewBox="0 0 36 36" width="100%"><defs><path d="M8,11 L28,11 L28,25 L8,25 L8,11 Z M11,14 L11,22 L25,22 L25,14 L11,14 Z" id="ytp-svg-47" /></defs><use class="ytp-svg-shadow" xlink:href="#ytp-svg-47" /><use class="ytp-svg-fill" xlink:href="#ytp-svg-47" /></svg>';else{var b=a?"M10,13 L26,13 26,23 10,23 10,13 Z M13,16 L13,20 23,20 23,16 13,16 Z":"M8,11 L28,11 28,25 8,25 8,11 Z M11,14 L11,22 25,22 25,14 11,14 Z",
c=a?"M8,11 L28,11 28,25 8,25 8,11 Z M11,14 L11,22 25,22 25,14 11,14 Z":"M10,13 L26,13 26,23 10,23 10,13 Z M13,16 L13,20 23,20 23,16 13,16 Z";this.element.innerHTML=Wz(ka(this),b,c)}a=a?Q("YTP_DEFAULT_VIEW"):Q("YTP_THEATER_MODE");Ar(this,"title",a);S7(this.D)}}};function Z9(a,b){var c=["button",["ytp-subtitles-button","ytp-button"],{"aria-pressed":"{{pressed}}",title:Q("YTP_SUBTITLES"),tabindex:37}];R.call(this,c);this.o=a;c=this.o.V().X;this.element.innerHTML=-1!=TJ.indexOf(c)?ai?'<div class="ytp-icon ytp-icon-closed-captioning"></div>':'<svg xmlns:xlink="http://www.w3.org/1999/xlink" height="100%" version="1.1" viewBox="0 0 36 36" width="100%"><defs><path d="M9,24 L27,24 L27,12 L9,12 L9,24 Z M17.05,19.50 C16.91,19.79 16.72,20.04 16.49,20.24 C16.26,20.44 15.99,20.60 15.69,20.70 C15.38,20.81 15.04,20.86 14.67,20.86 C14.21,20.86 13.79,20.79 13.43,20.64 C13.06,20.48 12.75,20.27 12.5,20.01 C12.24,19.74 12.05,19.42 11.91,19.06 C11.78,18.70 11.71,18.31 11.71,17.89 C11.71,17.47 11.78,17.07 11.91,16.70 C12.05,16.34 12.24,16.02 12.5,15.74 C12.75,15.47 13.06,15.26 13.43,15.10 C13.79,14.95 14.21,14.87 14.67,14.87 C15.00,14.87 15.31,14.91 15.61,15.01 C15.90,15.10 16.16,15.23 16.40,15.40 C16.63,15.58 16.82,15.79 16.97,16.05 C17.13,16.31 17.22,16.60 17.26,16.93 L15.98,16.93 C15.96,16.79 15.91,16.66 15.83,16.54 C15.75,16.41 15.65,16.31 15.53,16.22 C15.42,16.13 15.28,16.06 15.14,16.01 C14.98,15.95 14.83,15.93 14.67,15.93 C14.37,15.93 14.12,15.98 13.91,16.09 C13.70,16.20 13.53,16.35 13.40,16.54 C13.27,16.72 13.18,16.93 13.12,17.17 C13.06,17.40 13.03,17.64 13.03,17.89 C13.03,18.14 13.06,18.37 13.12,18.60 C13.18,18.82 13.27,19.03 13.40,19.21 C13.53,19.39 13.70,19.54 13.91,19.65 C14.12,19.76 14.37,19.81 14.67,19.81 C15.07,19.81 15.39,19.70 15.61,19.46 C15.84,19.22 15.98,18.91 16.03,18.53 L17.31,18.53 C17.28,18.89 17.19,19.21 17.05,19.50 L17.05,19.50 Z M24.04,19.51 C23.90,19.80 23.72,20.04 23.49,20.24 C23.26,20.45 22.99,20.60 22.68,20.71 C22.37,20.82 22.03,20.87 21.66,20.87 C21.20,20.87 20.79,20.80 20.42,20.64 C20.05,20.49 19.74,20.28 19.49,20.01 C19.24,19.75 19.04,19.43 18.91,19.07 C18.77,18.71 18.70,18.32 18.70,17.90 C18.70,17.47 18.77,17.08 18.91,16.71 C19.04,16.34 19.24,16.02 19.49,15.75 C19.74,15.48 20.05,15.26 20.42,15.11 C20.79,14.95 21.20,14.88 21.66,14.88 C21.99,14.88 22.30,14.92 22.60,15.01 C22.89,15.10 23.16,15.24 23.39,15.41 C23.62,15.58 23.82,15.80 23.97,16.06 C24.12,16.31 24.21,16.61 24.25,16.94 L22.97,16.94 C22.95,16.79 22.90,16.66 22.82,16.54 C22.74,16.42 22.65,16.32 22.53,16.22 C22.41,16.13 22.27,16.06 22.13,16.01 C21.98,15.96 21.82,15.94 21.66,15.94 C21.36,15.94 21.11,15.99 20.90,16.10 C20.7,16.21 20.53,16.36 20.40,16.54 C20.27,16.73 20.17,16.94 20.11,17.17 C20.06,17.41 20.03,17.65 20.03,17.90 C20.03,18.14 20.06,18.38 20.11,18.60 C20.17,18.83 20.27,19.04 20.40,19.22 C20.53,19.40 20.7,19.55 20.90,19.66 C21.11,19.76 21.36,19.82 21.66,19.82 C22.06,19.82 22.38,19.70 22.61,19.47 C22.84,19.23 22.97,18.92 23.02,18.54 L24.30,18.54 C24.27,18.89 24.18,19.22 24.04,19.51 L24.04,19.51 Z" id="ytp-svg-8" /></defs><use class="ytp-svg-shadow" xlink:href="#ytp-svg-8" /><use class="ytp-svg-fill" xlink:href="#ytp-svg-8" /></svg>':
ai?'<div class="ytp-icon ytp-icon-subtitles"></div>':'<svg xmlns:xlink="http://www.w3.org/1999/xlink" height="100%" version="1.1" viewBox="0 0 36 36" width="100%"><defs><path d="M25,19 L25,18 L11,18 L11,19 L25,19 Z M24,21 L24,22 L12,22 L12,21 L24,21 Z M27,12 L27,24 L9,24 L9,12 L27,12 Z" fill-rule="evenodd" id="ytp-svg-46" /></defs><use class="ytp-svg-shadow" xlink:href="#ytp-svg-46" /><use class="ytp-svg-fill" xlink:href="#ytp-svg-46" /></svg>';S(this,a,"videodatachange",this.B);S(this,a,"onApiChange",
this.B);S(this,a,"onCaptionsTrackListChanged",this.B);S(this,a,"captionschanged",this.B);this.B();this.P("click",this.C);Tb(this,Q7(b.o,this.element,1))}B(Z9,R);Z9.prototype.C=function(){Ty(this.o,"subtitles");xJ(this.o)};Z9.prototype.B=function(){var a=!!JI(this.o.app.B,"captions");this.yb(a);a&&Ar(this,"pressed",!!this.o.rb("captions","track").displayName)};function $9(a,b){R.call(this,["span",["ytp-time-display","notranslate"],["span","ytp-time-current","{{currenttime}}"],["span","ytp-time-separator"," / "],["span","ytp-time-duration","{{duration}}"]]);this.D=new R(["button",["ytp-live-badge","ytp-button"],{tabindex:36,disabled:!0},Q("YTP_LIVE")]);I(this,this.D);this.D.j(this.element);this.B=a;this.J=b.o;this.o=null;this.F=this.C=!1;this.H=this.G=null;this.P("click",this.oF);S(this,a,"presentingplayerstatechange",this.qh);S(this,a,"liveviewshift",this.pF);
S(this,a,"videodatachange",this.qF);var c=a.getVideoData();c&&(this.C=c.Fa,M(this.element,"ytp-live",this.C));this.qh()}B($9,R);g=$9.prototype;g.qh=function(){this.yb(!this.C||!U(FA(this.B),64));var a=this.B.Qe(),b=Jy(a.current);this.G!=b&&(Ar(this,"currenttime",b),this.G=b);a=Jy(a.duration);this.H!=a&&(Ar(this,"duration",a),this.H=a)};
g.pF=function(a){if(this.F!=a){this.F=a;this.qh();var b=this.D.element;(b.disabled=a)?this.o&&(this.o(),this.o=null,b.removeAttribute("title")):(b.title=Q("YTP_GOTO_LIVE_TOOLTIP"),this.o=Q7(this.J,this.D.element,1))}};g.qF=function(a,b){this.C=b.Fa;M(this.element,"ytp-live",this.C);this.qh()};g.oF=function(a){a.target==this.D.element?(Ty(this.B,"live"),this.B.Tb(Infinity),this.B.Tc()):Ty(this.B,"time")};g.R=function(){this.o&&this.o();$9.N.R.call(this)};function a$(a,b){R.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:35},["div","ytp-volume-slider",["div","ytp-volume-slider-track"],["div","ytp-volume-slider-handle"]]]]);this.o=a;this.za=b.o;this.X=!1;this.fa=this.B=0;this.C=new R(["button",["ytp-mute-button","ytp-button"],{tabindex:34,title:"{{title}}"}]);I(this,this.C);this.C.j(this.element,0);this.C.P("click",
this.Bz,this);this.ea=this.ma["ytp-volume-slider"];this.na=this.ma["ytp-volume-slider-handle"];this.wa=this.ma["ytp-volume-slider-track"];this.D=this.G=NaN;this.Z=-1;this.o.V().C&&(this.ia="");this.W=new SA(this.Is,null,this);I(this,this.W);this.T=new NG(this.ea,!0);I(this,this.T);this.T.subscribe("dragstart",this.vA,this);this.T.subscribe("dragmove",this.uA,this);this.T.subscribe("dragend",this.tA,this);S(this,a,"onVolumeChange",this.uF);S(this,this.ma["ytp-volume-panel"],"keydown",this.wA);S(this,
this.element,"mousewheel",this.sF);this.ga=S(this,a,"videodatachange",this.tF);this.U=!1;this.M=this.L=this.F=this.K=this.ca=null;this.H=this.aa=!1;this.J=new oe(this.Ou,125,this);I(this,this.J);this.X=!1;b$(this,this.o.Eb(),this.o.nc());Tb(this,Q7(b.o,this.C.element,1))}B(a$,R);
var Qfa=["M",19.87,17.99,"C",19.87,17.53,19.5,17.14,19,17,"L",19,19,"C",19.5,18.85,19.87,18.46,19.87,17.99,"Z"],Rfa=["M",22,17.99,"C",22,16.4,20.74,15.05,19,14.54,"L",19,21.44,"C",20.74,20.93,22,19.59,22,17.99,"Z"],Sfa=["M",19,24.31,"L",19,24.32,"C",22.01,23.59,24.25,21.16,24.24,18,"C",24.25,14.84,22.01,12.41,19,11.68,"L",19,11.68,"C",22.01,12.41,24.24,14.84,24.24,18,"C",24.24,21.15,22.01,23.58,19,24.31,"Z"],Tfa=["M",19,24.31,"L",19,26,"C",22.99,25.24,26,21.94,26,18,"C",26,14.05,22.99,10.75,19,10,
"L",19,11.68,"C",22.01,12.41,24.24,14.84,24.24,18,"C",24.24,21.15,22.01,23.58,19,24.31,"Z"];g=a$.prototype;g.wA=function(a){if(!Sm(a)){var b=Tm(a),c=null;37==b?c=this.B-5:39==b?c=this.B+5:36==b?c=0:35==b&&(c=100);null!=c&&(c=De(c,0,100),0==c?this.o.mute():(this.o.nc()&&this.o.unMute(),this.o.setVolume(c)),Rm(a))}};g.sF=function(a){Rm(a);(a=Um(a||window.event,!0)||-Um(a||window.event,!1))&&this.o.setVolume(this.B+De(a/20,-10,10))};
g.Bz=function(){this.o.nc()?(Ty(this.o,"unmute"),this.o.unMute()):(Ty(this.o,"mute"),this.o.mute())};g.vA=function(){Ty(this.o,"volume");this.aa=!0;this.fa=this.B;K(this.element,"ytp-volume-slider-active");this.o.nc()&&this.o.unMute()};g.uA=function(a){a-=Ag(this.ea).x;a=100*De(a/(this.X?81:54),0,1);if(this.U&&this.L.paused&&this.M.paused){var b=Math.abs(a-this.B);8<b?this.L.play():5<b&&this.M.play()}this.o.setVolume(a)};
g.tA=function(){this.aa=!1;te(this.element,"ytp-volume-slider-active");0==this.B&&(this.o.setVolume(this.fa),this.o.mute());this.U&&!this.H&&(this.F.pause(),this.K.play())};g.uF=function(a){b$(this,a.volume,a.muted)};function c$(a,b){var c=(b-a.Z)/250;return 1<=c?a.D:a.G+(a.D-a.G)*c}
g.Is=function(a){a=c$(this,a);var b=["M12.39,15.54 L10,15.54 L10,20.44 L12.4,20.44 L17,25.50 L17,10.48 L12.39,15.54 Z",1];if(0>=a)b.push("M19.63,15.92 L20.68,14.93 L22.81,16.94 L24.94,14.93 L26,15.92 L23.86,17.93 L26,19.93 L24.94,20.92 L22.81,18.92 L20.68,20.92 L19.63,19.93 L21.76,17.93 L19.63,15.92 Z",-a/.5);else{var c=De(2*a,0,1);b.push(d$(Qfa,Rfa,c),1);(c=De(2*(a-.5),0,1))&&b.push(d$(Sfa,Tfa,c),1)}for(var c='<svg width="100%" height="100%" viewBox="0 0 36 36" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">',
d=0;d<b.length;d+=2)0!=b[d].length&&(c+='<path class="ytp-svg-shadow" d="'+b[d]+'" opacity="'+b[d+1]+'"></path><path class="ytp-svg-fill" d="'+b[d]+'" opacity="'+b[d+1]+'"></path>');this.C.element.innerHTML=c+"</svg>";this.D!=a&&this.W.start()};function d$(a,b,c){for(var d="",e=!0,f=0;f<a.length;f++){var h=a[f];w(h)?d+=h:e?(d+=h+(b[f]-h)*c,e=!1):(d+=","+(h+(b[f]-h)*c)+" ",e=!0)}return d}
function b$(a,b,c){var d=Math.round(b),e=d+"% "+Q("YTP_SCREENREADER_VOLUME_SETTING")+(c?" "+Q("YTP_SCREENREADER_VOLUME_MUTED"):""),f=c?0:b/100;if(a.o.V().C){var h;h=0==f?'<div class="ytp-icon ytp-icon-volume-muted"></div>':0<f&&.5>f?'<div class="ytp-icon ytp-icon-volume-low"></div>':'<div class="ytp-icon ytp-icon-volume-high"></div>';h!=a.ia&&(a.C.element.innerHTML=h,a.ia=h)}else if(h=f?.5*Math.ceil(f/.5):-.5,a.D!=h){var k=A();isNaN(a.G)?(a.G=a.D=h,a.Z=k,a.Is(k)):(a.G=c$(a,k),a.D=h,a.Z=k,a.W.start())}Ar(a,
"valuenow",d);Ar(a,"valuetext",e);Ar(a.C,"title",c?Q("YTP_UNMUTE"):Q("YTP_MUTE"));S7(a.za);c=(a.X?74:49)*f;a.na.style.left=c+"px";a.wa.style.width=c+"px";a.B=b;a.U&&e$(a)}g.tF=function(){this.o.getVideoData().J&&(this.ca=f$(this,"activate.mp3"),this.K=f$(this,"deactivate.mp3"),this.F=f$(this,"active.mp3",!0),this.L=f$(this,"swing_fast.mp3"),this.M=f$(this,"swing_slow.mp3"),this.U=!0,e$(this),this.ua(this.ga),this.ga=null)};
function f$(a,b,c){b={src:"//www.gstatic.com/youtube/media/beyond/"+b,preload:"auto"};c&&(b.loop="loop");c=new wr(["audio",b]);I(a,c);c.j(a.element);return c.element}function e$(a){var b=a.o.nc()?0:a.B/100;a.ca.volume=b;a.K.volume=b;a.F.volume=b;a.L.volume=b;a.M.volume=b}function g$(a,b){a.aa||(b&&!a.H?a.J.start():!b&&a.H&&(a.J.isActive()?a.J.stop():(a.F.pause(),a.K.play())));a.H=b}g.Ou=function(){this.ca.play();this.F.play()};function h$(a,b){var c=a.V(),d="gaming"==c.j?"gaming.youtube.com":aI(c);R.call(this,["a",["ytp-youtube-button","ytp-button","yt-uix-sessionlink"],{href:"{{url}}",tabindex:41,target:"_blank",title:Q("YTP_URL_NAVIGATE_TO",{WEBSITE:d}),"data-sessionlink":"feature=player-button"}]);"gaming"==c.j?(this.element.innerHTML=ai?'<div class="ytp-icon ytp-icon-logo-gaming"></div>':'<svg xmlns:xlink="http://www.w3.org/1999/xlink" height="100%" version="1.1" viewBox="0 0 98 36" width="100%"><defs><path d="M19.40,22.92 L19.40,22.08 C18.87,22.71 18.42,23.03 17.93,23.03 C17.50,23.03 17.20,22.82 17.05,22.44 C16.96,22.21 16.89,21.85 16.89,21.32 L16.89,15.23 L18.29,15.23 L18.29,21.47 C18.33,21.69 18.41,21.76 18.59,21.76 C18.86,21.76 19.10,21.52 19.40,21.09 L19.40,15.23 L20.80,15.23 L20.80,22.92 L19.40,22.92 Z M15.41,15.91 C15.04,15.39 14.45,15.17 13.86,15.17 C13.19,15.17 12.69,15.39 12.31,15.91 C12.02,16.30 11.87,16.93 11.87,17.75 L11.87,20.48 C11.87,21.30 12.01,21.86 12.29,22.25 C12.67,22.77 13.27,23.05 13.86,23.05 C14.45,23.05 15.07,22.77 15.44,22.25 C15.73,21.86 15.86,21.30 15.86,20.48 L15.86,17.74 C15.86,16.92 15.70,16.30 15.41,15.91 L15.41,15.91 Z M14.45,20.63 C14.53,21.40 14.30,21.77 13.86,21.77 C13.43,21.77 13.20,21.40 13.27,20.63 L13.27,17.59 C13.20,16.83 13.43,16.47 13.86,16.47 C14.30,16.47 14.53,16.83 14.45,17.59 L14.45,20.63 Z M10.32,22.92 L8.84,22.92 L8.84,18.73 C8.84,18.73 7.31,13.60 7,12.64 L8.55,12.64 L9.58,16.65 L10.61,12.64 L12.16,12.64 L10.32,18.73 L10.32,22.92 Z" id="ytp-svg-27" /><path d="M42.90,11.22 C42.06,10.32 41.12,10.32 40.69,10.26 C37.60,10.03 32.97,10.03 32.97,10.03 C32.96,10.03 28.34,10.03 25.25,10.26 C24.82,10.32 23.88,10.32 23.04,11.22 C22.38,11.91 22.16,13.47 22.16,13.47 C22.16,13.47 21.94,15.30 21.94,17.13 L21.94,18.85 C21.94,20.68 22.16,22.51 22.16,22.51 C22.16,22.51 22.38,24.07 23.04,24.76 C23.88,25.66 24.98,25.63 25.47,25.73 C27.24,25.90 32.97,25.96 32.97,25.96 C32.97,25.96 37.60,25.95 40.69,25.72 C41.12,25.67 42.06,25.66 42.90,24.76 C43.56,24.07 43.77,22.51 43.77,22.51 C43.77,22.51 43.99,20.68 43.99,18.85 L43.99,17.13 C43.99,15.30 43.77,13.47 43.77,13.47 C43.77,13.47 43.56,11.91 42.90,11.22 L42.90,11.22 Z M25.31,22.92 L25.31,14.16 L23.76,14.16 L23.76,12.72 L28.41,12.71 L28.41,14.16 L26.79,14.16 L26.79,22.92 L25.31,22.92 Z M30.70,22.92 L30.70,22.08 C30.17,22.71 29.72,23.03 29.23,23.03 C28.79,23.03 28.50,22.82 28.35,22.44 C28.25,22.21 28.19,21.85 28.19,21.32 L28.19,15.30 L29.59,15.30 L29.59,21.47 C29.63,21.69 29.71,21.76 29.89,21.76 C30.16,21.76 30.40,21.52 30.70,21.09 L30.70,15.30 L32.10,15.30 L32.10,22.92 L30.70,22.92 Z M37.05,22.16 C36.87,22.72 36.48,23.02 35.95,23.02 C35.48,23.02 34.95,22.72 34.50,22.15 L34.50,22.92 L32.98,22.92 L32.98,12.71 L34.50,12.71 L34.50,16.04 C34.93,15.49 35.46,15.18 35.95,15.18 C36.48,15.18 36.84,15.50 37.02,16.07 C37.11,16.37 37.20,16.87 37.20,17.59 L37.20,20.63 C37.20,21.34 37.14,21.83 37.05,22.16 L37.05,22.16 Z M40.73,21.21 C40.75,21.14 40.74,20.81 40.74,20.25 L42.15,20.25 L42.15,20.47 C42.15,20.91 42.11,21.23 42.10,21.37 C42.05,21.67 41.95,21.95 41.79,22.19 C41.42,22.74 40.87,23.02 40.17,23.02 C39.47,23.02 38.94,22.76 38.55,22.24 C38.27,21.86 38.09,21.29 38.09,20.48 L38.09,17.82 C38.09,17.00 38.25,16.37 38.54,15.99 C38.92,15.47 39.45,15.19 40.14,15.19 C40.81,15.19 41.34,15.47 41.71,15.99 C41.99,16.37 42.15,16.97 42.15,17.78 L42.15,19.34 L39.49,19.34 L39.49,20.71 C39.48,21.41 39.68,21.76 40.14,21.76 C40.47,21.76 40.66,21.58 40.73,21.21 L40.73,21.21 Z M40.12,16.45 C39.68,16.45 39.49,16.64 39.49,17.36 L39.49,18.20 L40.74,18.20 L40.74,17.37 C40.74,16.66 40.57,16.45 40.12,16.45 L40.12,16.45 Z M34.54,16.80 L34.54,21.42 C34.76,21.65 35.02,21.76 35.24,21.76 C35.62,21.76 35.80,21.47 35.80,20.71 L35.80,17.44 C35.80,16.67 35.62,16.45 35.24,16.45 C35.02,16.45 34.76,16.57 34.54,16.80 L34.54,16.80 Z" id="ytp-svg-28" /><path d="M23,12 L43,12 L43,24 L23,24 Z" id="ytp-svg-29" /><g id="ytp-svg-30"><path d="M50.85,16.34 C50.14,16.34 49.78,16.77 49.72,17.30 C49.61,18.30 49.61,19.64 49.72,20.65 C49.78,21.18 50.14,21.61 50.85,21.61 C51.55,21.61 52.03,21.21 52.03,20.67 L52.03,20.16 C52.03,20.09 51.98,20.04 51.91,20.04 L51.12,20.04 C50.99,20.04 50.89,19.93 50.89,19.80 L50.89,18.66 C50.89,18.53 50.99,18.42 51.12,18.42 L53.39,18.42 C53.52,18.42 53.63,18.53 53.63,18.66 L53.63,20.67 C53.63,22.11 52.45,23.30 50.85,23.30 C49.25,23.30 48.25,22.09 48.08,20.65 C47.97,19.64 47.97,18.30 48.08,17.30 C48.25,15.86 49.25,14.65 50.85,14.65 C52.46,14.65 53.63,15.79 53.63,17.39 C53.63,17.52 53.52,17.63 53.39,17.63 L52.23,17.63 C52.10,17.63 52.01,17.52 52.00,17.39 C51.95,16.77 51.52,16.34 50.85,16.34" /><path d="M57.57,19.76 C57.55,19.86 57.60,19.90 57.67,19.90 L58.74,19.90 C58.81,19.90 58.85,19.86 58.83,19.76 L58.27,16.89 C58.26,16.85 58.25,16.84 58.21,16.84 L58.19,16.84 C58.16,16.84 58.14,16.85 58.13,16.89 L57.57,19.76 Z M56.80,22.98 C56.78,23.09 56.69,23.16 56.58,23.16 L55.36,23.16 C55.17,23.16 55.10,23.03 55.13,22.93 L57.21,14.96 C57.24,14.85 57.33,14.78 57.43,14.78 L58.99,14.78 C59.10,14.78 59.19,14.85 59.21,14.96 L61.29,22.93 C61.31,23.03 61.24,23.16 61.06,23.16 L59.83,23.16 C59.73,23.16 59.65,23.09 59.61,22.98 L59.25,21.75 C59.23,21.66 59.18,21.57 59.08,21.57 L57.31,21.57 C57.20,21.57 57.15,21.64 57.13,21.75 L56.80,22.98 Z" /><path d="M65.75,17.32 C65.78,17.44 65.92,17.44 65.96,17.32 L66.61,14.99 C66.64,14.84 66.73,14.78 66.85,14.78 L68.46,14.78 C68.59,14.78 68.69,14.89 68.69,15.02 L68.69,22.93 C68.69,23.06 68.59,23.16 68.46,23.16 L67.32,23.16 C67.19,23.16 67.09,23.06 67.09,22.93 L67.09,18.18 C67.09,18.12 67.02,18.11 66.99,18.17 L66.45,19.97 C66.40,20.11 66.33,20.17 66.20,20.17 L65.51,20.17 C65.39,20.17 65.32,20.11 65.27,19.97 L64.71,18.17 C64.69,18.11 64.62,18.12 64.62,18.18 L64.62,22.93 C64.62,23.06 64.51,23.16 64.38,23.16 L63.24,23.16 C63.12,23.16 63.01,23.06 63.01,22.93 L63.01,15.02 C63.01,14.89 63.12,14.78 63.24,14.78 L64.85,14.78 C64.98,14.78 65.06,14.84 65.10,14.99 L65.75,17.32 Z" /><path d="M72.68,16.52 C72.68,16.45 72.63,16.40 72.56,16.40 L71.39,16.40 C71.27,16.40 71.16,16.29 71.16,16.16 L71.16,15.02 C71.16,14.89 71.27,14.78 71.39,14.78 L75.59,14.78 C75.72,14.78 75.82,14.89 75.82,15.02 L75.82,16.16 C75.82,16.29 75.72,16.40 75.59,16.40 L74.42,16.40 C74.35,16.40 74.31,16.45 74.31,16.52 L74.31,21.43 C74.31,21.50 74.35,21.55 74.42,21.55 L75.70,21.55 C75.83,21.55 75.94,21.66 75.94,21.79 L75.94,22.93 C75.94,23.06 75.83,23.16 75.70,23.16 L71.28,23.16 C71.15,23.16 71.05,23.06 71.05,22.93 L71.05,21.79 C71.05,21.66 71.15,21.55 71.28,21.55 L72.56,21.55 C72.63,21.55 72.68,21.50 72.68,21.43 L72.68,16.52 Z" /><path d="M83.53,22.93 C83.53,23.06 83.42,23.16 83.30,23.16 L81.92,23.16 C81.72,23.16 81.64,23.06 81.61,22.96 L80.02,18.76 C80.00,18.69 79.92,18.71 79.92,18.78 L79.92,22.93 C79.92,23.06 79.81,23.16 79.69,23.16 L78.52,23.16 C78.39,23.16 78.29,23.06 78.29,22.93 L78.29,15.02 C78.29,14.89 78.39,14.78 78.52,14.78 L79.91,14.78 C80.08,14.78 80.16,14.89 80.20,15.00 L81.79,19.55 C81.82,19.62 81.90,19.60 81.90,19.52 L81.90,15.02 C81.90,14.89 82.00,14.78 82.13,14.78 L83.30,14.78 C83.42,14.78 83.53,14.89 83.53,15.02 L83.53,22.93 Z" /><path d="M88.59,16.34 C87.88,16.34 87.52,16.77 87.46,17.30 C87.35,18.30 87.35,19.64 87.46,20.65 C87.52,21.18 87.88,21.61 88.59,21.61 C89.29,21.61 89.77,21.21 89.77,20.67 L89.77,20.16 C89.77,20.09 89.72,20.04 89.65,20.04 L88.86,20.04 C88.73,20.04 88.63,19.93 88.63,19.80 L88.63,18.66 C88.63,18.53 88.73,18.42 88.86,18.42 L91.13,18.42 C91.26,18.42 91.37,18.53 91.37,18.66 L91.37,20.67 C91.37,22.11 90.19,23.30 88.59,23.30 C86.99,23.30 85.99,22.09 85.82,20.65 C85.71,19.64 85.71,18.30 85.82,17.30 C85.99,15.86 86.99,14.65 88.59,14.65 C90.20,14.65 91.37,15.79 91.37,17.39 C91.37,17.52 91.26,17.63 91.13,17.63 L89.97,17.63 C89.84,17.63 89.75,17.52 89.74,17.39 C89.69,16.77 89.26,16.34 88.59,16.34" /></g></defs><use class="ytp-svg-shadow" xlink:href="#ytp-svg-27" /><use class="ytp-svg-shadow" xlink:href="#ytp-svg-28" /><use class="ytp-svg-fill" xlink:href="#ytp-svg-27" /><use class="ytp-svg-fill ytp-svg-fill-logo-tube-text" fill="none" xlink:href="#ytp-svg-29" /><use class="ytp-svg-fill ytp-svg-fill-logo-tube-lozenge" fill="#fff" xlink:href="#ytp-svg-28" /><use class="ytp-svg-shadow" xlink:href="#ytp-svg-30" /><use class="ytp-svg-fill" xlink:href="#ytp-svg-30" /></svg>',
K(this.element,"ytp-youtube-gaming-button")):this.element.innerHTML=ai?'<div class="ytp-icon ytp-icon-logo"></div>':'<svg xmlns:xlink="http://www.w3.org/1999/xlink" height="100%" version="1.1" viewBox="0 0 51 36" width="100%"><defs><path d="M19.40,22.92 L19.40,22.08 C18.87,22.71 18.42,23.03 17.93,23.03 C17.50,23.03 17.20,22.82 17.05,22.44 C16.96,22.21 16.89,21.85 16.89,21.32 L16.89,15.23 L18.29,15.23 L18.29,21.47 C18.33,21.69 18.41,21.76 18.59,21.76 C18.86,21.76 19.10,21.52 19.40,21.09 L19.40,15.23 L20.80,15.23 L20.80,22.92 L19.40,22.92 Z M15.41,15.91 C15.04,15.39 14.45,15.17 13.86,15.17 C13.19,15.17 12.69,15.39 12.31,15.91 C12.02,16.30 11.87,16.93 11.87,17.75 L11.87,20.48 C11.87,21.30 12.01,21.86 12.29,22.25 C12.67,22.77 13.27,23.05 13.86,23.05 C14.45,23.05 15.07,22.77 15.44,22.25 C15.73,21.86 15.86,21.30 15.86,20.48 L15.86,17.74 C15.86,16.92 15.70,16.30 15.41,15.91 L15.41,15.91 Z M14.45,20.63 C14.53,21.40 14.30,21.77 13.86,21.77 C13.43,21.77 13.20,21.40 13.27,20.63 L13.27,17.59 C13.20,16.83 13.43,16.47 13.86,16.47 C14.30,16.47 14.53,16.83 14.45,17.59 L14.45,20.63 Z M10.32,22.92 L8.84,22.92 L8.84,18.73 C8.84,18.73 7.31,13.60 7,12.64 L8.55,12.64 L9.58,16.65 L10.61,12.64 L12.16,12.64 L10.32,18.73 L10.32,22.92 Z" id="ytp-svg-24" /><path d="M42.90,11.22 C42.06,10.32 41.12,10.32 40.69,10.26 C37.60,10.03 32.97,10.03 32.97,10.03 C32.96,10.03 28.34,10.03 25.25,10.26 C24.82,10.32 23.88,10.32 23.04,11.22 C22.38,11.91 22.16,13.47 22.16,13.47 C22.16,13.47 21.94,15.30 21.94,17.13 L21.94,18.85 C21.94,20.68 22.16,22.51 22.16,22.51 C22.16,22.51 22.38,24.07 23.04,24.76 C23.88,25.66 24.98,25.63 25.47,25.73 C27.24,25.90 32.97,25.96 32.97,25.96 C32.97,25.96 37.60,25.95 40.69,25.72 C41.12,25.67 42.06,25.66 42.90,24.76 C43.56,24.07 43.77,22.51 43.77,22.51 C43.77,22.51 43.99,20.68 43.99,18.85 L43.99,17.13 C43.99,15.30 43.77,13.47 43.77,13.47 C43.77,13.47 43.56,11.91 42.90,11.22 L42.90,11.22 Z M25.31,22.92 L25.31,14.16 L23.76,14.16 L23.76,12.72 L28.41,12.71 L28.41,14.16 L26.79,14.16 L26.79,22.92 L25.31,22.92 Z M30.70,22.92 L30.70,22.08 C30.17,22.71 29.72,23.03 29.23,23.03 C28.79,23.03 28.50,22.82 28.35,22.44 C28.25,22.21 28.19,21.85 28.19,21.32 L28.19,15.30 L29.59,15.30 L29.59,21.47 C29.63,21.69 29.71,21.76 29.89,21.76 C30.16,21.76 30.40,21.52 30.70,21.09 L30.70,15.30 L32.10,15.30 L32.10,22.92 L30.70,22.92 Z M37.05,22.16 C36.87,22.72 36.48,23.02 35.95,23.02 C35.48,23.02 34.95,22.72 34.50,22.15 L34.50,22.92 L32.98,22.92 L32.98,12.71 L34.50,12.71 L34.50,16.04 C34.93,15.49 35.46,15.18 35.95,15.18 C36.48,15.18 36.84,15.50 37.02,16.07 C37.11,16.37 37.20,16.87 37.20,17.59 L37.20,20.63 C37.20,21.34 37.14,21.83 37.05,22.16 L37.05,22.16 Z M40.73,21.21 C40.75,21.14 40.74,20.81 40.74,20.25 L42.15,20.25 L42.15,20.47 C42.15,20.91 42.11,21.23 42.10,21.37 C42.05,21.67 41.95,21.95 41.79,22.19 C41.42,22.74 40.87,23.02 40.17,23.02 C39.47,23.02 38.94,22.76 38.55,22.24 C38.27,21.86 38.09,21.29 38.09,20.48 L38.09,17.82 C38.09,17.00 38.25,16.37 38.54,15.99 C38.92,15.47 39.45,15.19 40.14,15.19 C40.81,15.19 41.34,15.47 41.71,15.99 C41.99,16.37 42.15,16.97 42.15,17.78 L42.15,19.34 L39.49,19.34 L39.49,20.71 C39.48,21.41 39.68,21.76 40.14,21.76 C40.47,21.76 40.66,21.58 40.73,21.21 L40.73,21.21 Z M40.12,16.45 C39.68,16.45 39.49,16.64 39.49,17.36 L39.49,18.20 L40.74,18.20 L40.74,17.37 C40.74,16.66 40.57,16.45 40.12,16.45 L40.12,16.45 Z M34.54,16.80 L34.54,21.42 C34.76,21.65 35.02,21.76 35.24,21.76 C35.62,21.76 35.80,21.47 35.80,20.71 L35.80,17.44 C35.80,16.67 35.62,16.45 35.24,16.45 C35.02,16.45 34.76,16.57 34.54,16.80 L34.54,16.80 Z" id="ytp-svg-25" /><path d="M23,12 L43,12 L43,24 L23,24 Z" id="ytp-svg-26" /></defs><use class="ytp-svg-shadow" xlink:href="#ytp-svg-24" /><use class="ytp-svg-shadow" xlink:href="#ytp-svg-25" /><use class="ytp-svg-fill" xlink:href="#ytp-svg-24" /><use class="ytp-svg-fill ytp-svg-fill-logo-tube-text" fill="none" xlink:href="#ytp-svg-26" /><use class="ytp-svg-fill ytp-svg-fill-logo-tube-lozenge" fill="#fff" xlink:href="#ytp-svg-25" /></svg>';
this.o=a;this.P("click",this.C);S(this,a,"videodatachange",this.B);this.B();Tb(this,Q7(b.o,this.element,1))}B(h$,R);h$.prototype.B=function(){var a=!!this.o.getVideoData().videoId;this.yb(a);a&&Ar(this,"url",this.o.getVideoUrl(!0))};h$.prototype.C=function(a){Ty(this.o,"youtube");var b=this.o.getVideoUrl(!Ky(a),!1,!0);Uz(b,this.o,a)};function i$(a,b,c){ax.call(this);var d=a.V(),e=a.sa();this.$=a;this.B=b;this.M=NaN;this.K=null;this.H=c;this.H.subscribe("autohideupdate",this.iF,this);c=!Jz(FA(a));var f=new R(["div","ytp-gradient-bottom"]);I(this,f);f.j(e);this.G=new Pr(f,250,c);I(this,this.G);this.A=new R(["div","ytp-chrome-bottom",["div","ytp-chrome-controls"]]);I(this,this.A);this.A.j(e);this.F=new Pr(this.A,250,c);I(this,this.F);c=this.A.element.children[0];this.j=new W9(a);I(this,this.j);this.j.j(e);this.j.subscribe("show",
this.aC,this);this.j.subscribe("show",b.KB,b);this.C=new h9(a,b);I(this,this.C);this.C.j(this.A.element,0);f=new S8(a,b);I(this,f);f.j(e);this.C.subscribe("height-change",f.CE,f);f=new V8(a);I(this,f);f.j(e);f=new d9(a,b,!1);I(this,f);f.j(c);f=new a9(a,b);I(this,f);f.j(c);f=new d9(a,b,!0);I(this,f);f.j(c);f=new wr(["div","ytp-volume-hover-area"]);I(this,f);f.j(c);this.o=new a$(a,b);I(this,this.o);this.o.j(f.element);this.o.yb(d.ub);this.J=new $9(a,b);I(this,this.J);this.J.j(f.element);this.D=new Y8(a,
b);I(this,this.D);this.D.j(c);this.U=new SA(pa(this.Ej,!1),void 0,this);if(Su().webkitSetPresentationMode){var h=new $8(a,b);I(this,h);h.j(c)}d.Jc&&(h=new R8(a,b),I(this,h),h.j(c));h=new w9(a);I(this,h);h.j(e);e=new y9(a,b,this.j);I(this,e);e.j(c);e=new Y9(a,b);I(this,e);e.j(c);!d.Cb&&d.qc&&(e=new h$(a,b),I(this,e),e.j(c));e=new X9(a,b,this.j);I(this,e);this.j.H=e;e.j(c);b=new Z9(a,b);I(this,b);b.j(c);d.ub&&(d=new NG(this.o.element),I(this,d),d.subscribe("hoverstart",this.mF,this),d=new NG(f.element),
I(this,d),d.subscribe("hoverend",this.lF,this));T(this,a,"resize",this.Im);T(this,a,"fullscreentoggled",this.jF);T(this,a,"progresssync",pa(this.Ej,!0));T(this,a,"presentingplayerstatechange",this.kF);this.Im()}B(i$,ax);g=i$.prototype;g.mF=function(){K(this.o.element,"ytp-volume-control-hover");this.$.getVideoData().J&&g$(this.o,!0)};g.lF=function(){te(this.o.element,"ytp-volume-control-hover");this.$.getVideoData().J&&g$(this.o,!1)};
function j$(a){var b=a.$.V(),c;if(c=!!a.H.o&&!b.isMobile&&FA(a.$).ib()){if(c=b.experiments.xa("smooth_progress_bar"))a=a.C,c=10*dI(a.B.V()),c=.25>C4(a.o)/a.F/c;c=c||b.experiments.xa("always_request_animation_frame")}return c}g.kF=function(){j$(this)&&this.U.start()};g.Ej=function(a){if(this.H.o){if(a||this.$.V().experiments.xa("smooth_progress_bar")){a=this.C;j9(a);var b=a.B.getCurrentTime();(b<a.X||b>a.T)&&a.Dj();this.J.qh()}j$(this)&&this.U.start()}};g.iF=function(){this.Ej(!0)};
function k$(a,b){a.$.V();Jz(FA(a.$))||b?b&&(a.F.da(),a.G.da(),a.B.o.ig(1)):b||(Rr(a.F),Rr(a.G),a.Ej(!0))}g.jF=function(a){a&&document.activeElement==this.D.element&&this.$.sa().focus();this.Im()};g.aC=function(){O7(this.B.o,!this.j.A)};
g.Im=function(){var a=fG(this.B),b=bG(this.$).Ka(),c=12*(a?2:1),d=Math.max(b.width-2*c,100);if(this.M!=b.width||this.K!=a){this.M=b.width;this.K=a;var e=Math.max(b.width-2*c,100);this.A.element.style.width=e+"px";this.A.element.style.left=c+"px";this.C.setPosition(c,e,a);var f=this.B.o;f.T=c;f.W=d;c=this.o;c.X=a;b$(c,c.o.Eb(),c.o.nc());M(this.$.sa(),"ytp-tiny-mode",200>e)}e=this.j;b=Math.min(250*(a?1.5:1),Math.round(.6*(b.height-(fG(this.B)?72:50))));e.fa=Math.min(350*(a?1.5:1),d);e.ga=b;e.$g()};function l$(a){R.call(this,["div","ytp-title",["a","ytp-title-channel-logo",{href:"{{channelImageLink}}",target:"_blank",tabindex:12}],["div","ytp-title-text",["a",["ytp-title-link","yt-uix-sessionlink"],{tabindex:13,target:"_blank",href:"{{url}}","data-sessionlink":"feature=player-title"},"{{title}}"],["a","ytp-title-channel-name",{href:"{{channelNameLink}}",target:"_blank",tabindex:14},"{{channelName}}"]]]);this.o=a;this.B=null;this.G=this.ma["ytp-title-link"];this.F=this.ma["ytp-title-channel-logo"];
this.D=null;S(this,a,"videodatachange",this.C);S(this,a,"videoplayerreset",this.C);this.C()}B(l$,R);l$.prototype.J=function(a){Ty(this.o,"title");var b=this.o.getVideoUrl(!Ky(a),!1,!0);Uz(b,this.o,a)};
function m$(a){var b=a.o.getVideoData(),c=b.videoId&&2==a.o.getPresentingPlayerType();c&&b.videoId==a.D?K(a.element,"ytp-title-extra-info"):(te(a.element,"ytp-title-extra-info"),c&&(b.author&&b.Qh&&b.profilePicture?n$(a,b.videoId,b.author,b.Qh,b.profilePicture):(c=Vr(a.o.V(),b.videoId,!1),wk(c,{method:"GET",kb:x(a.H,a,b.videoId),withCredentials:!0}))))}
l$.prototype.H=function(a,b,c){var d=c.user_info;d&&(b=d.channel_logo_url||d.image_url,c=d.channel_title||d.username,d=d.channel_url,b&&d&&c&&Lq.test(b)&&n$(this,a,c,d,b))};function n$(a,b,c,d,e){d=a.o.V().protocol+"://"+aI(a.o.V())+d;a.F.style.backgroundImage="url("+e+")";Ar(a,"channelImageLink",d);Ar(a,"channelNameLink",d);Ar(a,"channelName",Q("YTP_UPLOADED_BY_2",{AUTHOR:c}));a.D=b;m$(a)}
l$.prototype.C=function(){m$(this);var a=this.o.getVideoData();Ar(this,"title",a.title);!this.o.V().B&&a.videoId?(Ar(this,"url",this.o.getVideoUrl(!0)),this.B||(this.B=S(this,this.G,"click",this.J))):this.B&&(Ar(this,"url",null),this.ua(this.B),this.B=null)};function o$(a,b){R.call(this,["button",["ytp-watch-later-button","ytp-button"],{tabindex:16,title:"{{title}}","data-tooltip-image":"{{image}}"}]);this.C=a;this.F=b.o;this.D=null;this.o=this.B=!1;this.P("click",this.vF,this);S(this,a,"videoplayerreset",this.fA);S(this,a,"WATCH_LATER_VIDEO_ADDED",this.Ox);S(this,a,"WATCH_LATER_VIDEO_REMOVED",this.cA);S(this,a,"WATCH_LATER_ERROR",this.wF);p$(this,2);q$(this);Tb(this,Q7(b.o,this.element,3))}B(o$,R);
function q$(a,b){if(b)a.update({title:b,image:null});else{var c=a.C.V();c.userDisplayName?a.update({title:Q("YTP_WATCH_LATER_AS_2",{USER_NAME:c.userDisplayName}),image:c.userDisplayImage}):a.update({title:Q("YTP_WATCH_LATER"),image:null})}S7(a.F)}g=o$.prototype;g.Ox=function(){this.B=!0;this.o=!1;p$(this,1)};
g.vF=function(){Ty(this.C,"watchlater");var a=this.C.getVideoData().videoId;if(!this.o){this.o=!0;p$(this,3);q$(this);var b=this.C.app,c=!this.B;(c?Mfa:Nfa)({videoIds:a,Bb:b.j.Bb,pageId:b.j.pageId,onError:b.aB,kb:c?b.$A:b.bB,context:b},b.j.baseYtUrl,!0)}};g.wF=function(a){this.o=!1;p$(this,4);q$(this,a)};g.cA=function(){this.o=this.B=!1;p$(this,2)};g.fA=function(){this.o=this.B=!1;p$(this,2);q$(this)};
function p$(a,b){if(b!=a.D){var c=a.element;switch(b){case 3:c.innerHTML=gi();break;case 1:c.innerHTML=ai?'<div class="ytp-icon ytp-icon-watch-later-added"></div>':'<svg xmlns:xlink="http://www.w3.org/1999/xlink" height="100%" version="1.1" viewBox="0 0 36 36" width="100%"><defs><path d="M15.03,26 L7,17.91 L9.83,15.05 L14.94,20.19 L25.07,10 L28,12.94 L15.03,26 Z" id="ytp-svg-53" /></defs><use class="ytp-svg-shadow" xlink:href="#ytp-svg-53" /><use class="ytp-svg-fill" xlink:href="#ytp-svg-53" /></svg>';
break;case 2:c.innerHTML=ai?'<div class="ytp-icon ytp-icon-watch-later"></div>':'<svg xmlns:xlink="http://www.w3.org/1999/xlink" height="100%" version="1.1" viewBox="0 0 36 36" width="100%"><defs><path d="M18,8 C12.47,8 8,12.47 8,18 C8,23.52 12.47,28 18,28 C23.52,28 28,23.52 28,18 C28,12.47 23.52,8 18,8 L18,8 Z M16,19.02 L16,12.00 L18,12.00 L18,17.86 L23.10,20.81 L22.10,22.54 L16,19.02 Z" id="ytp-svg-52" /></defs><use class="ytp-svg-shadow" xlink:href="#ytp-svg-52" /><use class="ytp-svg-fill" xlink:href="#ytp-svg-52" /></svg>';
break;case 4:c.innerHTML=ai?'<div class="ytp-icon ytp-icon-alert"></div>':'<svg xmlns:xlink="http://www.w3.org/1999/xlink" height="100%" version="1.1" viewBox="0 0 36 36" width="100%"><defs><path d="M21,7.91 L19.60,20.91 L16.39,20.91 L15,7.91 L21,7.91 Z M18,27.91 C16.61,27.91 15.5,26.79 15.5,25.41 C15.5,24.03 16.61,22.91 18,22.91 C19.38,22.91 20.5,24.03 20.5,25.41 C20.5,26.79 19.38,27.91 18,27.91 Z" id="ytp-svg-2" /></defs><use class="ytp-svg-shadow" xlink:href="#ytp-svg-2" /><use class="ytp-svg-fill" xlink:href="#ytp-svg-2" /></svg>'}a.D=
b}};function r$(a){var b=a.V();R.call(this,["a",["ytp-watermark","yt-uix-sessionlink"],{tabindex:29,target:"_blank",href:"{{url}}","aria-label":Q("YTP_URL_NAVIGATE_TO",{WEBSITE:aI(b)}),"data-sessionlink":"feature=player-watermark"}]);this.element.innerHTML=ai?'<div class="ytp-icon ytp-icon-watermark"></div>':'<svg xmlns:xlink="http://www.w3.org/1999/xlink" height="100%" version="1.1" viewBox="0 0 77 34" width="100%"><defs><path d="m 26.81,26.92 0,-1.67 c -1.06,1.25 -1.96,1.89 -2.94,1.89 -0.86,0 -1.46,-0.41 -1.76,-1.17 -0.18,-0.46 -0.31,-1.18 -0.31,-2.23 l 0,-12.18 2.80,0 0,12.48 c .06,.42 .24,.58 .59,.58 .53,0 1.02,-0.48 1.61,-1.34 l 0,-11.72 2.80,0 0,15.38 -2.80,0 0,0 z M 18.83,12.91 c -0.74,-1.05 -1.91,-1.48 -3.10,-1.48 -1.33,0 -2.35,.43 -3.10,1.48 -0.57,.77 -0.88,2.02 -0.88,3.66 l -0.00,5.46 c 0,1.63 .27,2.76 .84,3.53 .74,1.04 1.95,1.60 3.13,1.60 1.18,0 2.41,-0.55 3.16,-1.60 .56,-0.76 .82,-1.89 .82,-3.53 l 0,-5.48 c 0,-1.64 -0.32,-2.87 -0.88,-3.65 l 0,0 0,0 z m -1.91,9.44 c .14,1.52 -0.31,2.27 -1.18,2.27 -0.87,0 -1.32,-0.75 -1.18,-2.27 l 0,-6.09 c -0.14,-1.52 .31,-2.23 1.18,-2.23 .87,0 1.33,.71 1.18,2.23 l -0.00,6.09 0,0 z m -8.27,4.56 -2.95,0 0,-8.37 c 0,0 -3.06,-10.27 -3.69,-12.18 l 3.10,0 2.07,8.02 2.06,-8.02 3.10,0 -3.69,12.18 0,8.37 0,0 z" id="ytp-svg-24" /><path d="M 73.80,3.53 C 72.12,1.72 70.24,1.72 69.38,1.61 63.21,1.15 53.95,1.15 53.95,1.15 c -0.01,0 -9.27,0 -15.44,.45 -0.86,.10 -2.74,.11 -4.41,1.91 -1.32,1.37 -1.75,4.49 -1.75,4.49 0,0 -0.44,3.66 -0.44,7.32 l 0,3.43 c 0,3.66 .44,7.32 .44,7.32 0,0 .43,3.11 1.75,4.49 1.67,1.80 3.88,1.74 4.86,1.93 C 42.48,32.89 53.94,33 53.94,33 c 0,0 9.26,-0.01 15.43,-0.47 .86,-0.10 2.74,-0.11 4.41,-1.91 1.32,-1.37 1.75,-4.49 1.75,-4.49 0,0 .44,-3.66 .44,-7.32 l 0,-3.43 c 0,-3.66 -0.44,-7.32 -0.44,-7.32 0,0 -0.43,-3.11 -1.75,-4.49 l 0,0 0,0 z m -35.17,23.39 0,-17.51 -3.10,0 0,-2.89 9.30,-0.00 0,2.89 -3.24,0 0,17.51 -2.95,0 0,0 z m 10.78,0 0,-1.67 c -1.06,1.25 -1.96,1.89 -2.94,1.89 -0.86,0 -1.46,-0.41 -1.76,-1.17 -0.18,-0.46 -0.31,-1.18 -0.31,-2.23 l 0,-12.03 2.80,0 0,12.33 c .06,.42 .24,.58 .59,.58 .53,0 1.02,-0.48 1.61,-1.34 l 0,-11.57 2.80,0 0,15.23 -2.80,0 0,0 z m 12.70,-1.52 c -0.35,1.13 -1.13,1.71 -2.19,1.71 -0.95,0 -2.01,-0.58 -2.90,-1.72 l -0.00,1.53 -3.02,0 0,-20.40 3.02,0 -0.00,6.65 c .86,-1.09 1.92,-1.71 2.91,-1.71 1.06,0 1.78,.63 2.13,1.77 .17,.61 .35,1.59 .35,3.03 l 0,6.09 c 0,1.40 -0.11,2.40 -0.29,3.04 l 0,0 0,0 z m 7.36,-1.89 c .02,-0.15 .02,-0.80 .02,-1.91 l 2.80,0 0,.43 c 0,.88 -0.07,1.51 -0.09,1.79 -0.09,.61 -0.30,1.16 -0.62,1.65 -0.73,1.10 -1.83,1.64 -3.23,1.64 -1.39,0 -2.46,-0.51 -3.23,-1.55 -0.56,-0.76 -0.93,-1.89 -0.93,-3.51 l 0,-5.33 c 0,-1.62 .33,-2.88 .89,-3.65 .77,-1.04 1.83,-1.59 3.20,-1.59 1.34,0 2.40,.55 3.15,1.59 .55,.76 .86,1.95 .86,3.58 l 10e-4,3.11 -5.32,0 0,2.73 c -0.00,1.40 .37,2.11 1.29,2.11 .65,0 1.04,-0.36 1.19,-1.10 l 0,0 0,0 z m -1.21,-9.51 c -0.89,0 -1.27,.38 -1.27,1.81 l 0,1.68 2.51,-0.00 0,-1.66 c 0,-1.40 -0.35,-1.83 -1.23,-1.83 l 0,0 0,0 z m -11.16,.69 -0.00,9.23 c .44,.46 .95,.69 1.39,.69 .77,0 1.11,-0.58 1.11,-2.10 l 0,-6.54 c 0,-1.52 -0.34,-1.97 -1.11,-1.97 -0.44,0 -0.94,.23 -1.39,.69 l 0,0 0,0 z" id="ytp-svg-25" /><path d="m 34,5.07 40,0 0,24 -40,0 z" id="ytp-svg-26" /></defs><use class="ytp-svg-shadow" xlink:href="#ytp-svg-24" /><use class="ytp-svg-shadow" xlink:href="#ytp-svg-25" /><use class="ytp-svg-fill" xlink:href="#ytp-svg-24" /><use class="ytp-svg-fill ytp-svg-fill-logo-tube-text" fill="none" xlink:href="#ytp-svg-26" /><use class="ytp-svg-fill ytp-svg-fill-logo-tube-lozenge" fill="#fff" xlink:href="#ytp-svg-25" /></svg>';
this.B=a;this.o=null;S(this,a,"videodatachange",this.C);this.C()}B(r$,R);r$.prototype.C=function(){this.B.getVideoData().videoId?(Ar(this,"url",this.B.getVideoUrl(!0)),this.o||(this.o=this.P("click",this.D))):this.o&&(Ar(this,"url",null),this.ua(this.o),this.o=null)};r$.prototype.D=function(a){var b=this.B.getVideoUrl(!Ky(a),!1,!0);Uz(b,this.B,a)};function s$(a){ax.call(this);IJ();var b=a.V(),c=a.sa(),d=bG(a);c.setAttribute("aria-label",Q("YTP_PLAYER_NORMAL"));this.j=a;Ufa(this);var e=FA(a);this.Da=!1;this.za=!0;this.wa=!1;var f=new o8(a);I(this,f);f.j(c);var h=new P8(a);I(this,h);h.j(c);this.U=new J7(a);I(this,this.U);this.U.j(c);var k=new R(["div","ytp-gradient-top"]);I(this,k);k.j(c);this.ha=new Pr(k,250,!0);I(this,this.ha);this.D=new R(["div","ytp-chrome-top"]);I(this,this.D);this.D.j(c);this.fa=new Pr(this.D,250,!0);I(this,this.fa);this.S=
new u8(a);I(this,this.S);this.S.j(f.element);this.A=new A7(d,x(this.mE,this),b.useTabletControls);I(this,this.A);this.A.subscribe("autohideupdate",this.nE,this);this.o=new M7(a,b.useTabletControls||b.isMobile);I(this,this.o);this.o.j(c);this.J=new U7(a,this,x(this.Lq,this));I(this,this.J);this.J.j(c);this.T=new OC(a,this.J);I(this,this.T);this.T.j(c);this.M=!1;k=x(this.Em,this);this.H=new H8(a,this,k);I(this,this.H);this.H.j(c);this.ga=new K8(a,this,0,k);I(this,this.ga);this.ga.j(this.D.element);
b.Ye&&(k=new o$(a,this),I(this,k),k.j(this.D.element));k=x(this.Ql,this);this.F=new z8(a,k);I(this,this.F);this.F.j(c);this.W=new C8(a,this,k);I(this,this.W);this.W.j(this.D.element);k=x(this.Rl,this);this.G=new E8(a,k);I(this,this.G);this.G.j(c);this.Z=new G8(a,this,k);I(this,this.Z);this.Z.j(this.D.element);k=new l$(a);I(this,k);k.j(this.D.element);k=new L8(a);I(this,k);k.j(c);this.C="1"==b.A?new i$(a,this,this.A):null;if(b.Pa){var l=new x7(d,x(this.Np,this),x(this.hA,this),x(this.Mp,this));I(this,
l)}else T(this,d,"click",x(function(a){this.Mp(a)||this.Np(a)},this));T(this,d,"touchstart",this.iA);this.K=new j8(a);I(this,this.K);this.K.subscribe("show",this.ms,this);this.na=!1;!b.Cb&&b.Wc&&(l=new r$(a),I(this,l),l.j(c));l=new w8(a);I(this,l);l.j(c);this.ea=a.getVideoData().videoId;this.B=null;this.ia=[];this.ca=new R(["div","",{tabindex:10}]);this.ca.P("focus",this.Iv,this);this.aa=new R(["div","",{tabindex:46}]);this.aa.P("focus",this.Jv,this);switch(b.color){case "white":K(c,"ytp-color-white");
break;case "blue":K(c,"ytp-color-blue")}(this.X=b.useTabletControls?null:new q8(a,d,this.K,this.A,k,this.U,x(this.Gn,this)))&&I(this,this.X);T(this,a,"resize",this.Dm);T(this,a,"fullscreentoggled",this.oE);T(this,a,"presentingplayerstatechange",this.pE);T(this,a,"videodatachange",this.ls);T(this,a,"videoplayerreset",this.Vz);T(this,a,"autonavvisibility",this.Zg,this);T(this,a,"cardstatechange",this.Mq,this);T(this,a,"minimized",this.ge,this);T(this,a,"onFrescaStateChange",this.ge,this);t$(this,e);
this.Zg();this.Dm();this.Ca=[d.B,h.element,f.element,this.U.element,this.S.element]}B(s$,ax);g=s$.prototype;g.ls=function(a,b){this.ea!=b.videoId&&(this.ea=b.videoId,this.A.bb(512,!0),this.Zg());if(b.J){var c=this.j.sa();K(c,"ytp-project-beyond");M(c,"ytp-project-beyond-light",1==b.J);M(c,"ytp-project-beyond-dark",2==b.J)}};g.Vz=function(){this.ls(0,gb(this.j.getVideoData()))};g.Ql=function(){var a=!eG(this);a?Rr(this.F.G):this.F.G.da();this.ge();Ar(this.W,"menuopen",a);u$(this.W,this.F,!a)};
g.Rl=function(){var a=!eG(this);a?Rr(this.G.F):this.G.F.da();this.ge();Ar(this.Z,"menuopen",a);u$(this.Z,this.G,!a)};function eG(a){a.j.app.V();DJ(a.j);return a.wa||a.M||B8(a.F)||I8(a.H)||F8(a.G)||DJ(a.j)||a.j.app.V().Yk}g.ge=function(){var a=!eG(this);a?(Rr(this.fa),Rr(this.ha),CJ(this.j)&&Rr(this.J.o)):(this.fa.da(),this.ha.da(),this.J.o.da(),this.o.ig(3));M(this.j.sa(),"ytp-menu-shown",!a);var b=this.S,c=!a;(b.C=c)?b.da():p8(b.B,b.o,FA(b.o));this.C&&k$(this.C,!a)};
g.mE=function(a){if(this.C&&!bg(this.C.A.element,a)&&!bg(this.D.element,a))return!1;for(;!a||!fg(a);){if(!a||a==this.j.sa())return!1;a=ag(a)}return!0};g.nE=function(a){var b=this.j.sa();M(b,"ytp-autohide",a);a&&(this.o.ig(1,3),te(b,"ytp-touch-mode"));b=this.j;a=!a;b.app.Oa("onVideoAreaChange");b.app.Oa(a?"onShowControls":"onHideControls")};
function v$(a,b){if(!b)return!1;for(var c=0;c<a.Ca.length;c++)if(bg(a.Ca[c],b))return!1;return re(b,"ytp-player-content")||re(b,"html5-endscreen")||b==a.j.sa()?!1:!0}function w$(a,b){if("3"==a.j.V().A){var c=FA(a.j);if((U(c,8)||U(c,4))&&(!U(c,2)||a.j.V().experiments.xa("disable_native_controls_ended"))&&(c=Om(b),"VIDEO"!=c.nodeName||c.controls))return!0}return!1}g.iA=function(a){this.j.V();this.A.o||w$(this,a)||v$(this,Om(a))||Rm(a);this.A.bb(2,!0);K(this.j.sa(),"ytp-touch-mode")};
g.Mp=function(a){if(v$(this,Om(a)))return!0;this.A.bb(2,!0);return this.Gn()?!0:!1};g.Np=function(a){v$(this,Om(a));var b=FA(this.j);U(b,2)&&vJ(this.j)||w$(this,a)||(K7(this.U),Bz(b)?this.j.pauseVideo():(this.j.Tc(),document.activeElement==this.S.element&&this.j.sa().focus()))};g.hA=function(a){v$(this,Om(a))||"3"!=this.j.V().A&&3!=this.j.getPresentingPlayerType()&&Vz(this.j)};
g.oE=function(a){var b=this.j.sa();a?(b.setAttribute("aria-label",Q("YTP_PLAYER_FULLSCREEN")),b.parentElement&&(this.ca.j(b.parentElement),this.aa.j(b.parentElement))):(b.setAttribute("aria-label",Q("YTP_PLAYER_NORMAL")),this.ca.detach(),this.aa.detach());this.Dm();this.Zg()};function fG(a){return!a.j.V().experiments.D&&a.j.Ja()}
g.Dm=function(){var a=fG(this),b=bG(this.j).Ka(),c=this.j.Ja(),d=this.j.sa();this.o.D=a?1.5:1;M(d,"ytp-fullscreen",c);M(d,"ytp-big-mode",a);M(this.K.element,"ytp-big-mode",a);this.B&&(a=this.B,a.o&&C7(a.o,b.width,b.height))};g.pE=function(a){t$(this,a.state);this.Zg();this.Mq()};
g.Zg=function(){var a=!this.j.getVideoData().isListed&&2==this.j.getPresentingPlayerType(),a=!!this.ea&&!Oy(this.j)&&!a&&(2==this.j.getPresentingPlayerType()||this.j.V().Da||this.j.Ja());this.za!=a&&(this.za=a,M(this.j.sa(),"ytp-hide-info-bar",!a),a||(this.o.ig(3),I8(this.H)&&this.Em(),B8(this.F)&&this.Ql(),F8(this.G)&&this.Rl()))};
g.Mq=function(){var a=CJ(this.j),b=a&&QC(this.j);b!=this.M&&(this.M=b,this.ge(),b&&(b=this.T,b=b.A&&3!=b.D.j),b&&this.T.F());b=FA(this.j);(a=a&&!U(b,2))&&!eG(this)?Rr(this.J.o):(b=this.J,b.A&&3!=b.o.j&&this.J.o.da());M(this.D.element,"ytp-cards-available",a)};
function t$(a,b){a.A.bb(128,!(b.ib()&&!U(b,32)));var c=3==a.j.getPresentingPlayerType();a.A.bb(256,c);var c=a.j.sa(),d;U(b,2)?d=["ended-mode"]:(d=[],U(b,8)?d.push("playing-mode"):U(b,4)&&d.push("paused-mode"),U(b,1)&&!U(b,32)&&d.push("buffering-mode"),U(b,32)&&d.push("seeking-mode"),U(b,64)&&d.push("unstarted-mode"));Nb(a.ia,d)||(ue(c,a.ia),a.ia=d,se(c,d));a.C&&k$(a.C,eG(a));d=a.j.V();var e=Jz(b);M(c,"ytp-hide-controls","1"!=d.A||e);M(c,"ytp-native-controls","3"==d.A&&!e&&!U(b,2));if(U(b,128)){a.B||
(a.B=new E7(a.j),I(a,a.B),a.B.j(c));var c=a.B,f=b.j,e=c.C.V();d=f.message;var h="embedded"==e.Aa,k=f.messageKey,l,f=!1;"YTP_ERROR_GENERIC_WITHOUT_LINK"!=k||e.Cb?"YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK_FLASH"==k?(l="https://get.adobe.com/flashplayer/",h=!0):"YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK"!=k||e.Cb||(l="//"+aI(e)+"/html5",k="YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK"):(l="//support.google.com/youtube/?p=player_error1",k="YTP_ERROR_GENERIC_WITH_LINK",XH(e)&&!e.K&&(f=!0));l&&(d=Q(k,
{BEGIN_LINK:'<br/><a href="'+l+'"'+(h?' target="_blank"':"")+">",END_LINK:"</a>"}));for(l=0;l<c.B.length;l++)c.ua(c.B[l]);c.B=[];Ar(c,"content",new o7(d));if(f)for(l=x(c.D,c),d=c.element.getElementsByTagName("a"),e=0;e<d.length;e++)h=S(c,d[e],"click",l),c.B.push(h);a.B.Ba()}else a.B&&(a.B.dispose(),a.B=null)}g.Lq=function(){this.M?PC(this.j,!1):PC(this.j,!0)};function u$(a,b,c){var d=c?b.element:a.element;document.activeElement&&bg(d,document.activeElement)&&(c?a:b).focus()}
g.Em=function(){var a=!eG(this);if(a)Rr(this.H.H);else{var b=this.H;b.H.da();b.D.ig(4)}this.ge();u$(this.ga,this.H,!a)};g.Gn=function(){if(this.K.A)return this.K.Ab(),!0;var a;if(a=this.C){a=this.C;var b=a.D;b.o&&W7(b.o)?(a.D.o.Ab(),a=!0):a.j.A?(a.j.Ab(),a=!0):a=!1}return a?!0:B8(this.F)?(this.Ql(),!0):I8(this.H)?(this.Em(),!0):F8(this.G)?(this.Rl(),!0):this.M?(this.Lq(),!0):Oy(this.j)?(Uy(this.j.app,!0),!0):!1};g.KB=function(a){this.A.bb(64,a);this.Da=a;this.ms()};
g.ms=function(){var a=this.Da||this.K.A;this.na!=a&&(this.na=a,this.j.app.O("onAutonavPauseRequest",this.na))};g.Iv=function(){x$(this,this.j.sa(),!0).focus()};g.Jv=function(){x$(this,this.j.sa(),!1).focus()};
function x$(a,b,c){b=c?b.lastElementChild:b.firstElementChild;for(var d=null;b;){if("none"!=sg(b,"display")&&"true"!=b.getAttribute("aria-hidden")){var e;0<b.tabIndex?e=b:e=x$(a,b,c);e&&(d?c?e.tabIndex>d.tabIndex&&(d=e):e.tabIndex<d.tabIndex&&(d=e):d=e)}b=c?b.previousElementSibling:b.nextElementSibling}return d}
function Ufa(a){a=a.j.V();var b=a.C;if(Uu("ytp-normal-css-loaded")){var c=Uu("ytp-sprite-mode-css-loaded");b!=c&&vj(Error("Player sprite mode mismatch. playerInSpriteMode: "+b+", spriteModeCssServed: "+c+", isMobile: "+a.isMobile),"WARNING")}};function y$(){}var z$=[];function Z(a,b){if(b<a.B){var c=b+a.C,d=a.j[c];return d===z$?a.j[c]=[]:d}d=a.o[b];return d===z$?a.o[b]=[]:d}y$.prototype.$b=function(){return m.JSON&&m.JSON.stringify?m.JSON.stringify(this.j):xe(this.j)};y$.prototype.toString=function(){return this.j.toString()};
y$.prototype.getExtension=function(a){if(this.o){this.A||(this.A={});var b=a.o;if(a.A){if(a.j)return this.A[b]||(this.A[b]=F(this.o[b]||[],function(b){return new a.j(b)})),this.A[b]}else if(a.j)return!this.A[b]&&this.o[b]&&(this.A[b]=new a.j(this.o[b])),this.A[b];return this.o[b]}};function A$(a){var b=a;a=Vfa;this.A=null;b||(b=[]);this.C=-1;this.j=b;a:{if(this.j.length){var b=this.j.length-1,c=this.j[b];if(c&&"object"==typeof c&&!ea(c)){this.B=b- -1;this.o=c;break a}}this.B=Number.MAX_VALUE}if(a)for(b=0;b<a.length;b++)c=a[b],c<this.B?(c+=-1,this.j[c]=this.j[c]||z$):this.o[c]=this.o[c]||z$}B(A$,y$);var Vfa=[241];A$.prototype.getStatus=function(){return Z(this,59)};A$.prototype.setVideoId=function(a){175<this.B?this.j[174]=a:this.o[175]=a};var Wfa={legacy_config:!0,player_response:!0,polymer_player_response:!0},B$={baseurl:"baseUrl",focenabled:"focEnabled",loaderurl:"loaderUrl",rmktenabled:"rmktEnabled",ytfocenabled:"ytfocEnabled",ytfochistoryenabled:"ytfocHistoryEnabled",suggestedquality:"suggestedQuality"};function C$(a,b){Mk.call(this);var c=b;c instanceof pi||(c=new pi(c));var c=this.W=c,d;a:{var e=c.args.legacy_config;if(e&&(e=e?ve(e):null)){var e=new A$(e),e={el:Z(e,1),ps:Z(e,2),autonav:Z(e,3),autoplay:Z(e,4),eventid:Z(e,5),fexp:Z(e,6),fflags:Z(e,7),isHtml5MobileDevice:Z(e,8),legacyBehavior:Z(e,9),playerErrorLogFraction:Z(e,10),canWatchLater:Z(e,11),mute:Z(e,12),partnerid:Z(e,13),showinfo:Z(e,14),ss:Z(e,15),watchXlb:Z(e,16),dclk:Z(e,17),ivModule:Z(e,18),iv3Module:Z(e,19),iv3EditModule:Z(e,20),ivInvideoUrl:Z(e,
21),ivLoadPolicy:Z(e,22),atc:Z(e,23),loudness:Z(e,24),infringe:Z(e,25),subtitlesXlb:Z(e,26),ccFont:Z(e,27),ccModule:Z(e,28),ccFontsUrl:Z(e,29),cc3Module:Z(e,30),ttsurl:Z(e,31),ccAsr:Z(e,32),ccContribute:Z(e,33),ccAutoCaps:Z(e,34),ccLoadPolicy:Z(e,35),captionTracks:Z(e,36),captionAudioTracks:Z(e,37),captionTranslationLanguages:Z(e,38),defaultAudioTrackIndex:Z(e,39),cr:Z(e,40),hostLanguage:Z(e,41),hl:Z(e,42),enablecsi:Z(e,43),csiPageType:Z(e,44),c:Z(e,45),cbr:Z(e,46),cbrver:Z(e,47),cos:Z(e,48),cosver:Z(e,
49),cplatform:Z(e,50),cbrand:Z(e,51),cmodel:Z(e,52),cnetwork:Z(e,53),isRtl:Z(e,54),enhanceModule:Z(e,55),enhanceXlb:Z(e,56),regionModule:Z(e,57),previewSplitMode:Z(e,58),status:Z(e,59),reason:Z(e,60),errorcode:Z(e,61),errordetail:Z(e,62),apiaryHost:Z(e,63),apiaryHostFirstparty:Z(e,64),gapiHintOverride:Z(e,65),gapiHintParams:Z(e,66),innertubeApiKey:Z(e,67),innertubeApiVersion:Z(e,68),innertubeContextClientVersion:Z(e,69),loaderurl:Z(e,70),multicameraModule:Z(e,71),multicameraPreroll:Z(e,72),multifeedMetadataList:Z(e,
73),allowEmbed:Z(e,74),allowedDomains:Z(e,75),ypcItemTitle:Z(e,76),ypcItemUrl:Z(e,77),ypcItemThumbnail:Z(e,78),ypcOfferHeadline:Z(e,79),ypcOfferDescription:Z(e,80),ypcOfferId:Z(e,81),ypcOfferButtonText:Z(e,82),ypcFullVideoMessage:Z(e,83),ypcModule:Z(e,84),ypcVid:Z(e,85),ypcLicenseCheckerModule:Z(e,86),heartbeatServerUrl:Z(e,87),ypcLicenseSessionToken:Z(e,88),purchaseId:Z(e,89),heartbeatToken:Z(e,90),heartbeatInterval:Z(e,91),heartbeatRetries:Z(e,92),ypcClickwrapModule:Z(e,93),ypcClickwrapMessage:Z(e,
94),livestream:Z(e,95),livePlayback:Z(e,96),authTimeout:Z(e,97),hlsdvr:Z(e,98),streaminglibModule:Z(e,99),frescaModule:Z(e,100),frescaPreroll:Z(e,101),frescaXlb:Z(e,102),enableCardio:Z(e,103),enableCardioBeforePlayback:Z(e,104),liveChunkReadahead:Z(e,105),innertubeClientVersion:Z(e,106),adHost:Z(e,107),adHostTierId:Z(e,108),coreDbp:Z(e,109),googleCustAge:Z(e,110),googleCustGender:Z(e,111),pyvAdChannel:Z(e,112),showPyvInRelated:Z(e,113),tagForChildDirected:Z(e,114),playerWide:Z(e,115),enablesizebutton:Z(e,
116),bannerUrl:Z(e,117),profilePicture:Z(e,118),channelTitle:Z(e,119),spacecastAddress:Z(e,120),timestamp:Z(e,121),fmtList:Z(e,122),urlEncodedFmtStreamMap:Z(e,123),adaptiveFmts:Z(e,124),licenseInfo:Z(e,125),idup:Z(e,126),dashmpd:Z(e,127),hlsvp:Z(e,128),hlsFormats:Z(e,129),probeUrl:Z(e,130),storyboardSpec:Z(e,131),liveStoryboardSpec:Z(e,132),ismb:Z(e,133),surveySmartpixelUrl:Z(e,134),surveycreativedata:Z(e,135),threedXlb:Z(e,136),threedModule:Z(e,137),threedConverted:Z(e,138),approxThreedLayout:Z(e,
139),threedLayout:Z(e,140),t:Z(e,141),token:Z(e,142),noGetVideoLog:Z(e,143),tmi:Z(e,144),plid:Z(e,145),pltype:Z(e,146),ptchn:Z(e,147),ptk:Z(e,148),oid:Z(e,149),idpj:Z(e,150),ldpj:Z(e,151),userAge:Z(e,153),userGender:Z(e,154),sw:Z(e,155),remarketingUrl:Z(e,156),ppvRemarketingUrl:Z(e,157),rmktenabled:Z(e,158),baseurl:Z(e,159),videostatsPlaybackBaseUrl:Z(e,160),subscribed:Z(e,161),engaged:Z(e,162),vid:Z(e,163),uid:Z(e,164),aid:Z(e,165),focenabled:Z(e,166),socialenabled:Z(e,167),ytfocenabled:Z(e,168),
ytfochistoryenabled:Z(e,169),ssrt:Z(e,170),delay:Z(e,171),cl:Z(e,172),osid:Z(e,173),vm:Z(e,174),videoId:Z(e,175),title:Z(e,176),lengthSeconds:Z(e,177),keywords:Z(e,178),ucid:Z(e,179),allowRatings:Z(e,180),avgRating:Z(e,181),viewCount:Z(e,182),author:Z(e,183),thumbnailUrl:Z(e,184),isListed:Z(e,185),liveDefaultBroadcast:Z(e,186),vq:Z(e,187),watermark:Z(e,188),accountPlaybackToken:Z(e,189),watchAjaxToken:Z(e,190),yvaXlb:Z(e,191),yvaModule:Z(e,192),yvaPreroll:Z(e,193),ypcXlb:Z(e,194),authuser:Z(e,195),
pageid:Z(e,196),userDisplayName:Z(e,197),userDisplayImage:Z(e,198),playlistTitle:Z(e,199),playlistLength:Z(e,200),index:Z(e,201),iurl:Z(e,202),iurlmq:Z(e,203),iurlhq:Z(e,204),iurlsd:Z(e,205),iurlmaxres:Z(e,206),iurlWebp:Z(e,207),iurlmqWebp:Z(e,208),iurlhqWebp:Z(e,209),iurlsdWebp:Z(e,210),iurlmaxresWebp:Z(e,211),start:Z(e,212),end:Z(e,213),resume:Z(e,214),of:Z(e,215),list:Z(e,216),q:Z(e,217),referrer:Z(e,218),sdetail:Z(e,219),sourceid:Z(e,220),externalList:Z(e,221),forcedExperiments:Z(e,222),cctp:Z(e,
223),adformat:Z(e,224),listtype:Z(e,225),privembed:Z(e,226),afvInstreamMax:Z(e,227),adLanguageIso6392:Z(e,228),adTag:Z(e,229),afvAdTagRestrictedToInstream:Z(e,230),maxDynamicAllocationAdTagLength:Z(e,231),asLaunchedInCountry:Z(e,232),adFlags:Z(e,233),adPreroll:Z(e,234),aftv:Z(e,235),invideo:Z(e,236),dynamicAllocationAdTag:Z(e,237),gutTag:Z(e,238),pyvInRelatedCafeExperimentId:Z(e,239),afvAdTag:Z(e,240),xJ:Z(e,241),loeid:Z(e,242),adDevice:Z(e,243),cafeExperimentId:Z(e,245),adsenseVideoDocId:Z(e,246),
fw:Z(e,247),adSlots:Z(e,248),shortform:Z(e,249),tpasPartnerId:Z(e,250),instream:Z(e,251),trueview:Z(e,252),midrollFreqcap:Z(e,253),mpvid:Z(e,254),mpu:Z(e,255),afv:Z(e,256),tpasAdTypeId:Z(e,257),tpasVideoId:Z(e,258),sffb:Z(e,259),contentOwnerName:Z(e,260),afvMergeEnabled:Z(e,261),excludedAds:Z(e,262),noAfvInstream:Z(e,263),adAge:Z(e,264),adGender:Z(e,265),adLoggingFlag:Z(e,266),showContentThumbnail:Z(e,267),cid:Z(e,268),afvInvideoAdTag:Z(e,269),allowHtml5Ads:Z(e,270),supportedWithoutAds:Z(e,271),instreamLong:Z(e,
272),adBreaks:Z(e,273),afcRmFallback:Z(e,275),allowAdInAutoplay:Z(e,276),c4:Z(e,277),dbp:Z(e,278),fqsf:Z(e,279),gptMigration:Z(e,280),xfp:Z(e,281),midrollPrefetchSize:Z(e,282),trueviewLactt:Z(e,283),xfpTag:Z(e,284),advideo:Z(e,285),ad3Module:Z(e,286),vmap:Z(e,287),serverPrefetchedVast:Z(e,288),amsBaseTag:Z(e,289),fadeOutStartMilliseconds:Z(e,290),fadeOutDurationMilliseconds:Z(e,291),fadeInStartMilliseconds:Z(e,292),fadeInDurationMilliseconds:Z(e,293),applyFadeOnMidrolls:Z(e,294),adModule:Z(e,295),
pla:Z(e,296),plaAdTag:Z(e,297),vastAdsModule:Z(e,298),forcedSkipOffset:Z(e,299),enabledEngageTypes:Z(e,300),freewheelAdTag:Z(e,301),postAdRequests:Z(e,302),enablejsapi:Z(e,303),ssl:Z(e,304),baseYtUrl:Z(e,306),controls:Z(e,307),disablekb:Z(e,308),jsapicallback:Z(e,309),svt:Z(e,310),canplaylive:Z(e,311),storeUserVolume:Z(e,312),useMediaVolume:Z(e,313),sslStream:Z(e,314),dash:Z(e,315),liveStartWalltime:Z(e,316),oauthToken:Z(e,317),visitorData:Z(e,318),vvt:Z(e,319),osig:Z(e,320),paygated:Z(e,321),videoMastheadAdQuartileUrls:Z(e,
322),tvList:Z(e,323),pyvViewBeaconUrl:Z(e,324),pyvQuartile25BeaconUrl:Z(e,325),pyvQuartile50BeaconUrl:Z(e,326),pyvQuartile75BeaconUrl:Z(e,327),pyvQuartile100BeaconUrl:Z(e,328),pyvBillableUrl:Z(e,329),rco:Z(e,330),cco:Z(e,331),feature:Z(e,332),isFling:Z(e,333),ctrl:Z(e,334),ytr:Z(e,335),ytrcc:Z(e,336),startseconds:Z(e,337),sentiment:Z(e,338),spacecastFormatMap:Z(e,339),spacecastAdaptiveFormats:Z(e,340),suggestedquality:Z(e,341),rvs:Z(e,342),urlEncodedThirdPartyMedia:Z(e,343),vssCredentialsToken:Z(e,
344),vssCredentialsType:Z(e,345),ypcGid:Z(e,346),ypcPreview:Z(e,347),ypcOrigin:Z(e,348),requiresPurchase:Z(e,349),mdx:Z(e,350),retryneterr:Z(e,351),itct:Z(e,352),ypcOverlayTimeout:Z(e,353),app:Z(e,354),cweb:Z(e,355),pyvConvUrl:Z(e,356),cver:Z(e,357),on3g:Z(e,358),autohide:Z(e,359),useNativeControls:Z(e,360),useTabletControls:Z(e,361),codeDbp:Z(e,362),rel:Z(e,363),attrib:Z(e,364)},f={};for(d in e){var h=B$[d]?B$[d]:d.replace(/([a-z\d])([A-Z])/g,"$1_$2").toLowerCase();f[h]=e[d]}d=f;break a}d=null}var k;
if(d){c=c.args;e=[];for(k in c)Wfa[k]||(d.hasOwnProperty(k)?typeof c[k]!=typeof d[k]?e.push("wrong type. key ["+k+"]: ("+typeof c[k]+") "+c[k]+"; ("+typeof d[k]+") "+d[k]):c[k]!==d[k]&&e.push("values differ. key ["+k+"]: ("+typeof c[k]+") "+c[k]+"; ("+typeof d[k]+") "+d[k]):e.push("missing. key ["+k+" ]: ("+typeof c[k]+") "+c[k]));k=e}else k=[];c=Math.floor(Math.random()*k.length);k=k.slice(c).concat(k.slice(0,c));for(c=0;c<k.length;c++)vj(Error("Discrepancy in legacy config: "+k[c]));k=this.W.args||
{};this.j=new UH(k);I(this,this.j);this.wb=Sv("detailpage"==this.j.Aa&&"blazer"!=this.j.j||"books"==this.j.j,k.enablesizebutton);this.na=Sv(!1,k.player_wide);this.S=this.j.jb&&Sv(!1,k.external_list);this.ia=new ax(this);I(this,this.ia);this.M=new tJ(this);I(this,this.M);this.Ya=new tJ(this,1);I(this,this.Ya);this.G=new r7(this);I(this,this.G);this.G.subscribe("resize",this.DC,this);this.K=1;this.Pa={};this.j.storeUserVolume?(k=ak("yt-player-volume")||{},c=k.volume,k={volume:isNaN(c)?100:De(Math.floor(c),
0,100),muted:!!k.muted}):k={volume:100,muted:this.j.mute};this.X=k;this.$=this.j.jb?new aJ(this,1):new vI(this,1);I(this,this.$);this.fa=this.C=null;this.Ca={};k=this.j;c=new eM;VH(k)&&(c.D=!0,c.A=.1);k.experiments.xa("streaming_xhr_min_progress_interval")&&(c.B=.05);k.experiments.xa("streaming_xhr_bandwidth_duration")&&(c.j=.5,c.C=.25);k.Ta&&(c.o=k.Ta/8);this.Da=new VL(c);this.Sa={internalvideodatachange:this.Xx,liveviewshift:this.AC,playbackready:this.Yx,playbackstarted:this.Zx,statechange:this.$x,
signatureexpired:this.rA};k=new fM;c=this.M;k.o!=c&&(gM(k),k.D={},k.o=c);c={};c.loaded=x(this.xp,this);c.unloaded=x(this.yp,this);c.destroyed=x(this.nl,this);c.command_pause=D$(this.pauseVideo,this);c.command_play=D$(this.Ne,this);c.command_seek=D$(this.Vf,this);c.command_redirect_controls=x(this.ir,this);c.command_stop_redirect_controls=x(this.Ui,this);c.publish_external_event=x(this.Hi,this);k.F=c;this.V().H.subscribe("vast_info_card_add",pa(k.J,"vast_info_card_add"),k);this.B=k;I(this,this.B);
this.J=new O1(this.j,"",this.B);k=new H3(this.j,1,this.J,this.G,x(this.O,this));E$(this,k,this.Sa);this.o=k;this.o.ha=this.Da;this.vb={airplayactivechange:this.Px,airplayavailabilitychange:this.Qx,beginseeking:this.xC,endseeking:this.yC,internalaudioformatchange:this.by,internalvideodatachange:this.FC,internalvideoformatchange:this.TA,playbackstalledatstart:this.xA,progresssync:this.CC,seekto:this.EC,onLoadProgress:this.mz,onVideoProgress:this.VA,playbackready:this.Rz,statechange:this.BC,connectionissue:this.Gy,
heartbeatparams:this.zC,videoelementevent:this.GC};this.L=this.D=null;this.Ta=this.Wa=-1;this.ga=this.H=this.F=null;this.ca={};this.wa=null;this.ob=new oe(this.G.Bj,16,this.G);I(this,this.ob);this.Ea=!1;this.Z=!0;this.za=this.A=null;this.T=1;this.ha=null;this.Lb=this.fb=!1;this.ub=null;this.aa=0;this.La=new G7(this.G.element);I(this,this.La);this.Xa=0;this.subscribe("crn_"+C$.A,this.Vx,this);this.subscribe("crx_"+C$.A,this.Wx,this);this.subscribe("crn_"+C$.o,this.hp,this);this.subscribe("crx_"+C$.o,
this.hp,this);this.G.initialize(a);ai=this.j.C;k=new Sx(this.W.args);my(k)&&(this.o.Wg(k,x(this.ij,this)),az(this.j)&&(c=k.videoId,c=(d=ak("yt-player-restore-playhead"))?d[c]:void 0,c&&(k.startSeconds=c)),bk("yt-player-restore-playhead"),(this.j.za||this.j.Zc&&this.j.experiments.T)&&O3(this.o));this.J.o("fs",void 0);k=this.G;k.isDisposed();c=k.app.V();c.G||k.addClass("tag-pool-enabled");c.Cb&&k.addClass("house-brand");"gvn"==c.j&&k.addClass("ytp-gvn");k.Z?S(k,window,"resize",k.Sh,k):(c=Zv()?x(k.Su,
k):x(k.Sh,k),k.L=sj(c,250));k=this.$;k.j=this.G.element;for(var l in k.A)k.j[l]=k.A[l];for(l in k.B)k.j[l]=k.B[l];l=mi("fullscreenchange");"msfullscreenchange"==l&&(l="MSFullscreenChange");l&&T(this.ia,document,l,this.Yy);T(this.ia,window,"resize",this.gA);k=this.W.args;F$(this);l=MI(this);this.Oa("onVolumeChange",this.X);k&&By(k)&&((c=az(this.j))&&!this.S&&(k.fetch=0),cJ(this,k),c&&!this.S?dJ(this):my(l)||(k=this.A,c=x(this.Bp,this),k.F=c,k.D&&qj(k.F,0)));if(k=this.W.args.jsapicallback)ha(k)||(k=
t(k)),k&&D$(x(k,m,this.j.Jd),m);this.j.Xa||(bq("embedded"==this.j.Aa),this.j.lg=cI(this.j)&&!ub(jq()));T4(this,this.o);k=Tu(this.j.J);"fmt.noneavailable"==k?EA(this.o,k,"YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK",void 0):"html5.missingapi"==k?EA(this.o,k,"YTP_ERROR_UNSUPPORTED_DEVICE",void 0):this.j.za&&my(l)?G$(this):"leanback"!=this.j.Aa&&H$(this);this.ea=new s$(this.M);I(this,this.ea);Ty(this.Ya,"init")}B(C$,Mk);C$.D="defaultcontext";C$.j={};C$.A="appapi";C$.o="appad";
C$.create=function(a,b){try{var c=C$.C(a);if(C$.j[c]){try{C$.j[c].dispose()}catch(e){vj(e)}C$.j[c]=null}var d=new C$(a,b);Tb(d,function(){C$.j[c]=null});return C$.j[c]=d}catch(e){throw vj(e),e.stack;}};C$.B=function(a,b){ww("pwc");var c=document.querySelector(a);document.registerElement(a,{});var d=c.querySelector("template"),c=c.createShadowRoot(),d=document.importNode(d.content,!0);c.appendChild(d);c=c.getElementById(b);d=t("ytplayer.config");c=C$.create(c,d);d.loaded=!0;return c};
C$.C=function(a){return w(a)?a:"player"+ka(a)};function F$(a){a.C=Z6.getTag(!0,!a.j.J);a.fa=a.C;a.D&&X3(a.D,a.C);yz(a.C,a.T);a.j.useMediaVolume?(a.ha&&a.ia.ua(a.ha),a.ha=T(a.ia,a.C,"volumechange",a.wz)):a.C.setVolume(a.X.volume,a.X.muted);Kfa(a.G,a.C);a=a.j.mc=a.C;a.src||a.load()}function I$(a){if(a.C){a.ha&&(a.ia.ua(a.ha),a.ha=null);a.D&&I3(a.D);var b=a.G;b.o&&(Wf(b.o),b.o=null);a.j.mc=null;Z6.releaseTag(a.C);a.C=null}}
function Zr(a,b){a.j.G?(a.ga&&(ug(a.C,a.ga.left,a.ga.top),Gg(a.C,Ne(a.ga)),a.ga=null),$r(a.C),I3(a.D),X3(a.D,a.C),yz(a.C,a.T)):Z6.releaseTag(b)}function T4(a,b){a.D!=b&&(a.D&&(gM(a.B),or(a,"cuerangesremoved",a.D.F.j.j||[]),$4(a)),b!=a.o&&(a.Ca[b.S]=b),a.D=b,b.ha=a.Da,a.C&&X3(b,a.C),E$(a,b,a.vb),J$(a,b,b.getVideoData()),b.ca.j&&K$(a,"dataloaded",b,b.getVideoData()),or(a,"cuerangesadded",a.D.F.j.j||[]),Bz(b.getPlayerState())&&qJ(b))}function E$(a,b,c){for(var d in c)b.subscribe(d,c[d],a)}
function $4(a){I3(a.D);var b=a.D,c=a.vb,d;for(d in c)b.unsubscribe(d,c[d],a);b=a.D;b!=a.o&&(c=b.S,a.Ca[c]==b&&delete a.Ca[c]);a.D=null}function nr(a,b){return b?1==b?a.o:a.Ca[b]||null:a.D}function L$(a){var b=a.B,c=NL();E(c,b.H,b);a.O("videoready",a.getVideoData())}g=C$.prototype;g.Yx=function(){M$(this)||N$(this,5)};g.Rz=function(a){M$(this)||(O$(this),Bz(a.getPlayerState())&&this.Ne())};g.Bq=function(a){var b=this.G.element;M(b,"ytp-ad-overlay-open",a);M(b,"ytp-ad-overlay-closed",!a)};
function YI(a){!a.H&&a.Ya.V().lg&&(a.H=new n7(a),P$(a,a.H));if(a.H){var b=qq();WI(a.H,jq(),b);var c=a.H;c&&!c.J&&c.Za(a.Ya)&&c.create();b&&a.H.load()}}
function P$(a,b){I(a,b);b.subscribe("loaded",a.xp,a);b.subscribe("unloaded",a.yp,a);b.subscribe("command_pause",D$(a.pauseVideo,a));b.subscribe("command_play",D$(a.Ne,a));b.subscribe("command_seek",D$(a.Vf,a));b.subscribe("command_redirect_controls",a.ir,a);b.subscribe("command_stop_redirect_controls",a.Ui,a);b.subscribe("publish_external_event",a.Hi,a)}function XI(a,b){b&&b.J&&("ad"==b.oa&&ue(a.G.element,["ytp-ad-overlay-open","ytp-ad-overlay-closed"]),b.destroy())}
g.Oa=function(a,b){this.O.apply(this,arguments);this.jj.apply(this,arguments)};g.Hf=function(a,b){var c=Bb(arguments);this.j.jb&&this.D&&c.push(this.D.S);this.O.apply(this,c)};g.canPlayType=function(a){return!!Su().canPlayType(a)};g.V=function(){return this.j};g.getVideoData=function(){return this.D.getVideoData()};function MI(a){return a.o.getVideoData()}
g.ij=function(){var a=jC(this.j);qa(a,lM(this.B));this.F&&qa(a,this.F.kh());a.fs=this.M.Ja();a.volume=Math.round(this.Ya.Eb());a.mos=this.Ya.nc()?1:0;return a};function H$(a){a.O("initializingmode");N$(a,2)}function G$(a){if(U(a.o.getPlayerState(),128))return!1;a.O("initializingmode");T4(a,a.o);N$(a,3);var b;(b=!a.j.G)||(t("yt.mobile.blazer.blazer_config.isMobilePersistentUniplayer"),b=!1);b&&(I$(a),F$(a),X3(a.o,a.C));R3(a.o);if(U(a.o.getPlayerState(),128))return!1;Q$(a,3);return a.Lb=!0}
function M$(a){return cI(a.j)&&!!qq()}function D$(a,b){return function(){var c=Array.prototype.slice.call(arguments);qj(function(){a.apply(b||this,c)},0)}}function GI(a,b){if(!isNaN(b)&&a.C){var c=1,c=a.j.T?fs:[1],c=1>b?G(c,function(a){return a>=b}):rb(c,function(a){return a<=b});a.T!=c&&(a.T=c,a.o==a.D&&yz(a.C,c),a.O("onPlaybackRateChange",c))}}function iJ(a,b){var c=nr(a,b);return c?c.pm():a.getVideoData().T}
function gJ(a,b,c,d){if(a=nr(a,c))d=d||b,b=pv(b,d,!0),Yj("yt-player-quality",d,604800),HI(a,"m",b)}g.getCurrentTime=function(a){return 3==this.getPresentingPlayerType()?this.H.getCurrentTime():(a=nr(this,a))?a.getCurrentTime():0};function AI(a,b){var c=nr(a,b);return c?c.Xf():0}
function NI(a,b){var c=c4(a.o,b);if(a.D&&a.D!=a.o){var d=c4(a.D,b),e;for(e in d)c["ad_"+e]=d[e]}(d=n8(a))&&(c.gpu=d);c.cgr=!0;c.debug_playbackQuality=a.Ya.pj();c.debug_date=(new Date).toString();delete c.uga;delete c.q;return xe(c)}g.getPresentingPlayerType=function(){var a;if(a=this.H)a=this.H,a=!!a.o&&!!a.A;return a?3:nr(this).S};function xI(a,b){return 3==a.getPresentingPlayerType()?Lz(a.H.M):2==b?a.Ta:a.Wa}
g.GC=function(a){var b=a.target;switch(a.type){case "loadedmetadata":this.J.o("fvb",void 0);this.ob.start();break;case "loadstart":this.J.o("gv",void 0);break;case "progress":case "timeupdate":2<=sz(b.buffered)&&this.J.o("l2s",void 0)}};g.mz=function(a,b){this.Hf("onLoadProgress",b)};g.xA=function(){this.Hf("playbackstalledatstart")};g.VA=function(a,b){this.Hf("onVideoProgress",b)};g.CC=function(){HJ(this.Ya)};
g.$x=function(a){!this.j.experiments.xa("disable_live_head_slowdown")&&0<zC(a,1)&&!U(a.state,64)&&MI(this).Fa&&Z3(this.o)&&1<this.T&&GI(this,1);var b;if(b=0<zC(a,2))this.A&&("embedded"==this.j.Aa||this.M.Ja())&&iz(this)?(QI(this),b=!0):b=!1,b=!b;b&&(this.j.experiments.xa("auto_exit_player_fullscreen")?WH(this.j)&&M3(this.o).webkitExitFullScreen&&M3(this.o).webkitExitFullScreen():this.j.isMobile&&EI(this,!1));U(a.state,128)&&(b=a.state,R$(this),b=b.j,this.O("onError",uI[b.errorCode]||5),this.O("onDetailedError",
b));this.O("applicationplayerstatechange",a);U(a.state,2)&&(a=this.getVideoData(),a.isLiveDefaultBroadcast&&KI(this,{videoId:a.videoId,livemonitor:a.zf}))};g.BC=function(a){!U(a.state,32)&&0>zC(a,16)&&(!U(a.state,8)||U(a.state,64)||this.C.ended||U(a.state,2)||this.Ne());this.O("presentingplayerstatechange",a);this.jj("onStateChange",a);Q$(this,Lz(a.state));S$(this)};function T$(a){XI(a,a.F);XI(a,a.H);a.fb=!1;a.Ui();GI(a,1);a.Pa={};a=a.J;var b=a.A;b.B={};b.A={};a.C=!1}
function J$(a,b){gM(a.B);yz(a.C,a.o==a.D?a.T:1);a.Oa("videoplayerreset",b)}
function K$(a,b,c,d){if(a.C){if("dataloaded"==b)if(YH(c.V(),d.B),a.D==a.o){a.j.Xa||bq("embedded"==a.j.Aa);var e=M$(a),f;if(f=!e)f=MI(a).co&&!a.j.isMobile;if(f){var h="YTP_DEVICE_FALLBACK";Kc||Nu()||Gu("xbox")&&Gu("trident")||Mu()||(h="YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK_FLASH");EA(a.o,"html5.unsupportedads",h,void 0)}else if(f=MI(a),!ny(f)||e||by(a.o.j)){oy(f);e&&N$(a,6);e=!1;!a.F&&W6.Za(a)&&(a.F=new W6(a),a.F&&P$(a,a.F),e=!0);try{(h=a.F)&&!h.J&&h.Za(a.Ya)&&h.create()}catch(k){vj(k),a.o&&a.o.Ri("ad")}e&&
(e=a.F,f=MI(a),h=nr(a),f.subscribe("cuepointupdated",e.Ly,e),e.aa=f,e=Y6(e),null!=e&&(e.G=h),a.F.subscribe("overlay_ad_open",pa(a.Bq,!0),a),a.F.subscribe("overlay_ad_close",pa(a.Bq,!1),a));YI(a);L$(a)}else EA(a.o,"fmt.noneavailable","YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK",void 0)}else L$(a);1==c.S&&(a.getVideoData().Hh?(h=a.C,h.Rj=!0,h.muted=!0):(a.C.Rj=!1,BI(a,a.X)),a.getVideoData().Fa&&!a.j.We&&EA(a.o,"html5.unsupportedlive","YTP_DEVICE_FALLBACK",void 0),h=aC?a.j.$c:a.getVideoData().Ed,oy(d)&&
(d.ha||d.La||d.C.focEnabled||d.C.rmktEnabled||h)&&(h=a.getVideoData(),U$(a,"part2viewed",1,0x8000000000000),U$(a,"engagedview",Math.max(1,1E3*h.Oe),0x8000000000000),h.Fa||(h=1E3*h.lengthSeconds,U$(a,"videoplaytime25",.25*h,h),U$(a,"videoplaytime50",.5*h,h),U$(a,"videoplaytime75",.75*h,h),U$(a,"videoplaytime100",h,0x8000000000000),U$(a,"conversionview",h,0x8000000000000))));a.Oa("videodatachange",b,d,c.S)}}g.Xx=function(a){"newdata"==a&&T$(this)};
g.by=function(a,b){var c=this.D.getVideoData();a==c&&this.Oa("onPlaybackAudioChange",iJ(this).Jb.name,b)};g.FC=function(a,b,c){"newdata"==a?J$(this,b):K$(this,a,b,c)};g.TA=function(a,b){var c=this.D.getVideoData();a==c&&(this.Oa("onPlaybackQualityChange",a.o.video.quality,b),S$(this))};function S$(a){var b=!1,c=a.getVideoData();c&&c.o&&nr(a).ib()&&(b=As[c.o.video.quality],b=1440<=b||1080<=b&&30<c.o.video.fps);b?H7(a.La):I7(a.La)}
function n8(a){a=a.La;var b=!a.j,c="";H7(a);if(a.o)try{a.o.getExtension("WEBGL_debug_renderer_info"),c=a.o.getParameter(37446),c=c.replace(/[ :]/g,"_")}catch(d){}b&&I7(a);return c}function dJ(a){var b=V$();if(b)if(b.list){if(a.A&&a.A.C.toString()==b.list)if(0<=b.index){var c=b.video;a.M.Ja()&&((c=c[a.A.j])&&c.encrypted_id!=a.A.qb().videoId||(b.index=a.A.j));Hy(a.A,b);a.za&&W$(a,a.za)}else a.za=null}else a.$j()}
function cJ(a,b){if(a.A){a.A.unsubscribe("error",a.$j,a);Ub(a.A);a.A=null;var c=JI(a.B,"playlist");c&&(xb(a.B.j,c),c.destroy())}b&&(a.S&&(b.fetch=0),a.A=new uy(b),a.A.subscribe("error",a.$j,a))}g.$j=function(){cJ(this,null);this.Oa("onPlaylistUpdate")};function U$(a,b,c,d){b in a.Pa||(c=new hr(c,d,{id:b,priority:1}),c.j=C$.o,a.o.F.gb([c]),a.Pa[b]=c)}
g.hp=function(a){var b=a.getId(),c=MI(this);if("part2viewed"==b)c.$c&&br(c.$c),c.La&&br(c.La);else if("conversionview"==b){var d=this.o;d.A&&xC(d.A)}else"engagedview"==b&&br(c.ha);c.ia&&(d=a.getId(),d=mk(c.ia,{label:d}),br(d));switch(b){case "videoplaytime25":c.qc&&br(c.qc);br(c.Ye);break;case "videoplaytime50":c.sc&&br(c.sc);br(c.Ze);break;case "videoplaytime75":c.Wc&&br(c.Wc);br(c.$e);break;case "videoplaytime100":c.Jc&&br(c.Jc),br(c.Xe)}(b=aC?this.j.$c:this.getVideoData().Ed)&&b[a.getId()]&&(b=
b[a.getId()],c=C(D(b))?!1:Pq.test(b)||Nq.test(b),br(b,void 0,c));this.o.F.eh(a)};function N$(a,b){b!=a.K&&(2==b&&(Q$(a,-1),Q$(a,5)),a.K=b,a.O("appstatechange",b))}function Q$(a,b){a.D&&2==a.D.S?a.Ta!=b&&(a.Ta=b,a.Hf("onAdStateChange",b)):a.Wa!=b&&(a.Wa=b,a.Hf("onStateChange",b))}g.Vf=function(a,b,c,d){b=0!=b;if(d=nr(this,d))2==this.K&&G$(this),S3(d,a,b,c)};g.EC=function(a,b){var c=a.getVideoData();if(1==this.K||2==this.K)c.startSeconds=b;2==this.K?G$(this):this.Oa("seekto",b)};g.Px=function(){this.O("airplayactivechange")};
g.Qx=function(){this.O("airplayavailabilitychange")};g.xC=function(){this.Oa("beginseeking")};g.yC=function(){this.Oa("endseeking")};function KI(a,b,c){var d=new Sx(b);b&&By(b)?(az(a.j)&&!a.S&&(b.fetch=0),cJ(a,b)):a.A&&cJ(a,null);a.S=Sv(!1,b.external_list);az(a.j)&&!a.S&&dJ(a);return X$(a,d,c)}function bJ(a,b){a.L&&a.L.getVideoData().videoId==b.videoId||(b.Sa=!0,a.L||(a.L=new H3(a.j,1,a.J,a.G,x(a.O,a)),a.L.ha=a.Da),a.L.Wg(b,x(a.ij,a)),O3(a.L,!0))}
function X$(a,b,c){if(!Aw("_start",a.J.j)){var d=a.J.j;Bw("yt_sts","p",d);ww("_start",void 0,d);a.J.info("srt",0)}if(a.L&&a.L.getVideoData().videoId==b.videoId){d=a.L;a.L=null;b=d;c=a.o;var e=a.Sa,f;for(f in e)c.unsubscribe(f,e[f],a);a.o.dispose();a.o=b;E$(a,b,a.Sa);T$(a)}else{d=nr(a,c);if(!d)return!1;a.ob.stop();R$(a,c);d.Wg(b,x(a.ij,a))}if(!N3(d))return!1;a.Ea&&(d.Wa=!1,a.Ea=!1);if(d==a.o)return N$(a,1),G$(a);R3(d);return!0}function yI(a,b,c){c=nr(a,c);b&&c==a.o&&(c.getVideoData().Wf=!0)}
function LI(a,b,c){var d=nr(a,c);d&&(R$(a,c),d.Wg(b,x(a.ij,a)),N3(d)&&(YH(d.V(),b.B),d==a.o&&(N$(a,1),H$(a))))}
function Sy(a,b,c,d){if(!b&&!d)throw Error("Playback source is invalid");if(a.M.Ja()||"detailpage"!=a.j.Aa){c=a.J;var e=c.A;e.B={};e.A={};c.C=!1;a.J.reset();d?(b={video_id:b,list:d},a.Z=!1,PI(a,b,void 0,void 0,void 0)):KI(a,{video_id:b},1)}else"gaming"==a.j.j?a.O("onPlayVideo",{videoId:b,sessionData:c,listId:d}):(b=a.j.getVideoUrl(b,d),d=c||{},d.lact=mC(),a.j.experiments.xa("send_presence_signal_vis_desktop")&&(d.vis=tI(a.j)),t("yt.player.exports.navigate")(b,d,!0),(window.ytspf||{}).enabled?spf.navigate(b):
Pz(b))}function PI(a,b,c,d,e){if(ia(b)&&!ea(b)){c="playlist list listType index startSeconds suggestedQuality".split(" ");d={};for(e=0;e<c.length;e++){var f=c[e];b[f]&&(d[f]=b[f])}b=d}else d={index:c,startSeconds:d,suggestedQuality:e},w(b)&&16==b.length?d.list="PL"+b:d.playlist=b,b=d;cJ(a,b);b=a.A;a=x(a.Bp,a);b.F=a;b.D&&qj(b.F,0)}g.Bp=function(){var a=this.A.qb(),b=this.getVideoData();b.Fg||!this.Z?(b=b.Wf,a=X$(this,a),b&&yI(this,a)):a&&LI(this,a)};
function iz(a){az(a.j)&&!a.S&&dJ(a);return!(!a.A||!a.A.hasNext())}function Uy(a,b){a.Oa("autonavcancel",b)}function QI(a,b){if(a.S&&!a.M.Ja())a.O("onPlaylistNext");else if(a.A)az(a.j)&&!a.M.Ja()?W$(a,"yt.www.watch.lists.next"):a.A.D?a.A.hasNext(b)&&X$(a,Ey(a.A,b),1):(Ey(a.A,b),a.Z=!1);else if(Zy(a.j,a.getVideoData(),a.A)&&nr(a,1).getVideoData().F){var c=F(nr(a,1).getVideoData().F,Ly)[0];Sy(a,c.qb().videoId,c.Z,c.Pe())}}
function RI(a,b){if(a.S&&!a.M.Ja())a.O("onPlaylistPrevious");else if(a.A)if(az(a.j)&&!a.M.Ja())W$(a,"yt.www.watch.lists.prev");else if(a.A.D){var c=a.A;(c.G||b||0<=c.j-1)&&X$(a,Gy(a.A,b),1)}else Gy(a.A),a.Z=!1}function W$(a,b){var c=t(b);if(c){var d=V$();d&&d.list&&c();a.za=null}else a.za=b}function SI(a,b){a.S&&!a.M.Ja()?a.O("onPlaylistIndex",b):a.A&&(a.A.D?X$(a,a.A.qb(b),1):a.Z=!1,Fy(a.A,b))}function V$(){var a=t("yt.www.watch.lists.getState");return a?a():null}
function OI(a,b,c,d,e,f){b={id:b};"chapter"==f?(b.style="ytp-chapter-marker",b.visible=!0):isNaN(e)||("ad"==f?b.style="ytp-ad-progress":(b.style="ytp-time-marker",b.color=e),b.visible=!0);c=new hr(1E3*c,1E3*d,b);c.j=C$.A;FJ(a,[c],1);return!0}g.Vx=function(a){this.O("onCueRangeEnter",a.getId())};g.Wx=function(a){this.O("onCueRangeExit",a.getId())};function FJ(a,b,c){var d=nr(a,c);d&&(d.F.gb(b),c&&a.getPresentingPlayerType()!=c||or(a,"cuerangesadded",b))}
g.Zx=function(){this.aa||(this.aa=pw(this.mp,this));P1(this.J,Y$(this));if(!this.fb&&"detailpage"==this.j.Aa){this.fb=!0;var a=this.o;if(a.aa&&a.aa.j){var b={},c={};a.j.videoId&&(b.docid=a.j.videoId);a.j.playbackId&&(b.plid=a.j.playbackId);b.cpn=a.j.clientPlaybackNonce;b.ad_cpn=a.aa.j;var d=A()-a.aa.o;a.aa.A?c.astv=d:c.actv=d;a={v:2,s:"youtube",action:"watch,ad2video_html5"};c.aft=c.pbs=c.astv||c.actv;var d=[],e;for(e in c)"_"!=e.charAt(0)&&d.push(e+"."+c[e]);a.rt=d.join(",");for(var f in b)"_"!=
f.charAt(0)&&(a[f]=b[f]);b=pj("TIMING_INFO")||{};"e"in b&&(a.e=b.e);"ei"in b&&(a.ei=b.ei);Hw(a)}}this.j.experiments.A&&iz(this)&&(b=this.A.qb(Cy(this.A)))&&bJ(this,b)};g.mp=function(a){a=a.j;if(!isNaN(a)&&0<a&&this.o){var b=this.o;b.A&&0<a&&(b.A.A.A.aft=[a])}};function Y$(a){var b=A(),c=a.getCurrentTime();a=a.getVideoData();return b-Math.max(1E3*(c-a.startSeconds),0)}g.xp=function(a){"remote"==a?(2==this.K&&G$(this),N$(this,6),XI(this,this.F)):this.nl()};
g.yp=function(a){"remote"!=a||M$(this)||(this.Ne(),this.pauseVideo());this.nl()};g.nl=function(){this.Hf("onApiChange")};g.wz=function(){var a={volume:100*this.C.volume,muted:this.C.muted};this.X=nc(a);this.Oa("onVolumeChange",a)};function BI(a,b,c){a.X=b;c&&a.j.storeUserVolume&&!a.j.useMediaVolume&&!b.unstorable&&Yj("yt-player-volume",b,2592E3);O$(a);a.j.useMediaVolume||(b=nc(b),a.j.storeUserVolume||(b.unstorable=!0),a.Oa("onVolumeChange",b))}
function O$(a){var b=a.getVideoData();b.Hh||a.C.setVolume(a.X.volume*(a.j.useMediaVolume?Sx.o:b.mn),a.X.muted)}g.Yy=function(){Z$(this,oi()?1:0)};function Z$(a,b){var c=!!b,d=!!a.Xa!=c;a.Xa=b;d&&(a.J.o("fsc"),a.j.Ig=c,a.G.Bj(),a.Oa("fullscreentoggled",c),d=MI(a),c={fullscreen:c,videoId:d.ypcOrigin||d.videoId},a.Ya.ie()&&(c.listId=a.Ya.ie()),a.j.experiments.xa("new_stop_video")&&(c.time=a.getCurrentTime()),a.O("onFullscreenChange",c))}
g.DC=function(){if(this.C){var a=!1;if(0!=this.C.readyState&&this.D){var b=new N(this.C.videoWidth,this.C.videoHeight),c=this.getVideoData();Je(c.Dd,b)||(c.Dd=b,a=!0)}b=dG(this.G);Me(this.ub,b)||(this.ub=b,a=!0);a&&(this.D&&HI(this.D,"r"),this.O("resize",this.G.Ka()),this.Oa("onResize"))}};g.gA=function(){2!=this.Xa&&Z$(this,oi()?1:0)};g.AC=function(a){this.Oa("liveviewshift",a)};g.$A=function(){this.O("WATCH_LATER_VIDEO_ADDED")};g.bB=function(){this.O("WATCH_LATER_VIDEO_REMOVED")};
g.aB=function(a,b){var c;b&&(c=b.errors&&b.errors.length?b.errors[0]:b.error_message);this.O("WATCH_LATER_ERROR",c||Q("YTP_ERROR_GENERIC_WITHOUT_LINK"))};function or(a,b,c){a.O(b,c);var d;switch(b){case "cuerangemarkersupdated":d="onCueRangeMarkersUpdated";break;case "cuerangesadded":d="onCueRangesAdded";break;case "cuerangesremoved":d="onCueRangesRemoved"}d&&c&&a.Hi(d,F(c,ir))}
g.Hi=function(a,b){if("onAdStateChange"==a){var c=arguments[1],d=arguments[2],e=arguments[3]||{};1==c&&(this.J.o("vr",void 0),this.aa||(this.aa=pw(this.mp,this)),e4(this.D),P1(this.J,Y$(this)));0==c&&e&&(this.o.aa=e);var f=this.j;"leanback"==f.Aa&&f.jb&&(0==c?this.fa=this.C:this.fa=d,this.O("onAdStateChange",c,e.video_id))}else this.O.apply(this,arguments)};g.jj=function(a,b){this.B.J.apply(this.B,arguments);this.F&&this.F.O.apply(this.F,arguments);this.H&&this.H.O.apply(this.H,arguments)};
g.Ne=function(a){if(a=nr(this,a))if(2==this.K)G$(this);else{var b=a.getPlayerState();if(U(a.getPlayerState(),2))this.Vf(0);else{if(!this.j.experiments.xa("new_stop_video")&&1==this.getPresentingPlayerType()&&U(b,64)){var b=this.B,c=NL();E(c,b.H,b)}qJ(a)}}};g.pauseVideo=function(a){(a=nr(this,a))&&a.pauseVideo()};function FI(a,b){if(a.j.experiments.xa("new_stop_video")){var c=a.o.getVideoData(),c=new Sx({video_id:a.o.getVideoData().videoId,oauth_token:c.oauthToken});LI(a,c,1)}else R$(a,b)}
function R$(a,b){qw(a.aa);a.aa=0;var c=nr(a,b);c&&1!=a.K&&2!=a.K&&(gM(a.B),1==b&&XI(a,a.F),W3(c),a.j.experiments.xa("legacy_cue_range_behavior2")||(or(a,"cuerangesremoved",a.D.F.j.j||[]),c.F.reset()))}function CI(a,b){if(DI(a.Ya)){var c=a.ca.play_pause?a.wa:null;c?c.Zd("control_play"):a.Ne(b)}}function zI(a,b,c,d,e){var f=nr(a,e);if(!f||2!=f.S&&!ry(f.getVideoData()))(f=a.ca.seek?a.wa:null)?f.Zd("control_seek",b):a.Vf(b,c,d,e)}function sJ(a,b,c){a.wb=b;a.na=c;a.Oa("sizestylechange",b,c)}
function EI(a,b){if(a.M.Ja()!=b)if(ni())if(b){var c=a.G.element,d=li(["requestFullscreen","requestFullScreen"],c);d&&d.apply(c)}else(c=li(["exitFullscreen","cancelFullscreen","cancelFullScreen"],document))&&c.call(document);else Z$(a,b?2:0)}g.getAdState=function(){return this.F?this.F.getAdState():-1};g.ir=function(a,b,c){this.Ui();this.wa=a;b&&E(b,function(a){this.ca[a]=!0},this);c&&hM(this.B,a,c)};g.Ui=function(){this.wa=null;this.ca={};iM(this.B)};
function TI(a,b,c,d,e){c=a.j.jb&&a.F&&b==a.F.oa?a.F.ke(c,d):(a.j.jb||e)&&a.H&&b==a.H.oa?a.H.ke(c,d):b&&c?(a=JI(a.B,b))?a.ke(c,d):null:null;return c}function UI(a,b,c){if(b){if(a.j.jb&&a.F&&b==a.F.oa)return a.F.Re();if((a.j.jb||c)&&a.H&&b==a.H.oa)return a.H.Re()}else return b=kM(a.B),a.j.jb&&a.F&&b.push(a.F.oa),(a.j.jb||c)&&a.H&&b.push(a.H.oa),b;return kM(a.B,b)}
g.rA=function(){if(!this.Ea){this.Ea=!0;var a=this.getVideoData(),b={};b.video_id=a.videoId;a.Fa||(b.start=nr(this).getCurrentTime());b.autoplay=1;b.reload=1;KI(this,b)}};g.Gy=function(){this.Oa("CONNECTION_ISSUE")};g.zC=function(a){this.Oa("heartbeatparams",a)};g.R=function(){gq();this.o.dispose();this.L&&this.L.dispose();I$(this);Vb(dc(this.Ca),this.A);this.fa=null;qw(this.aa);this.aa=0;C$.N.R.call(this)};q("yt.player.Application.create",C$.create,void 0);q("yt.player.Application.createWebComponent",C$.B,void 0);var $$=t("ytcsi.tick");$$&&$$("pe");})();
