Advertisement
Guest User

Untitled

a guest
May 3rd, 2016
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. var _yt_player={};(function(g){var window=this;var h,p=function(a){return void 0!==a},q=function(a,b,c){a=a.split(".");
  2. c=c||aa;a[0]in c||!c.execScript||c.execScript("var "+a[0]);for(var d;a.length&&(d=a.shift());)!a.length&&p(b)?c[d]=b:c[d]?c=c[d]:c=c[d]={}},r=function(a,b){for(var c=a.split("."),d=b||aa,e;e=c.shift();)if(null!=d[e])d=d[e];
  3. else return null;return d},v=function(){},ba=function(a){a.getInstance=function(){return a.Ub?a.Ub:a.Ub=new a}},ca=function(a){var b=typeof a;
  4. 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";
  5. else if("function"==b&&"undefined"==typeof a.call)return"object";return b},da=function(a){return"array"==ca(a)},ea=function(a){var b=ca(a);
  6. return"array"==b||"object"==b&&"number"==typeof a.length},w=function(a){return"string"==typeof a},fa=function(a){return"boolean"==typeof a},ga=function(a){return"number"==typeof a},ha=function(a){return"function"==ca(a)},ia=function(a){var b=typeof a;
  7. return"object"==b&&null!=a||"function"==b},ma=function(a){return a[ka]||(a[ka]=++la)},oa=function(a,b,c){return a.call.apply(a.bind,arguments)},pa=function(a,b,c){if(!a)throw Error();
  8. if(2<arguments.length){var d=Array.prototype.slice.call(arguments,2);return function(){var c=Array.prototype.slice.call(arguments);Array.prototype.unshift.apply(c,d);return a.apply(b,c)}}return function(){return a.apply(b,arguments)}},y=function(a,b,c){y=Function.prototype.bind&&-1!=Function.prototype.bind.toString().indexOf("native code")?oa:pa;
  9. return y.apply(null,arguments)},qa=function(a,b){var c=Array.prototype.slice.call(arguments,1);
  10. return function(){var b=c.slice();b.push.apply(b,arguments);return a.apply(this,b)}},ra=function(a,b){for(var c in b)a[c]=b[c]},z=function(a,b){function c(){}
  11. c.prototype=b.prototype;a.M=b.prototype;a.prototype=new c;a.prototype.constructor=a;a.base=function(a,c,f){for(var k=Array(arguments.length-2),m=2;m<arguments.length;m++)k[m-2]=arguments[m];return b.prototype[c].apply(a,k)}},sa=function(a){if(Error.captureStackTrace)Error.captureStackTrace(this,sa);
  12. else{var b=Error().stack;b&&(this.stack=b)}a&&(this.message=String(a))},ta=function(a,b){return 0==a.lastIndexOf(b,0)},ua=function(a,b){var c=a.length-b.length;
  13. return 0<=c&&a.indexOf(b,c)==c},A=function(a){return/^[\s\xa0]*$/.test(a)},va=function(a){return(0,window.encodeURIComponent)(String(a))},wa=function(a){return(0,window.decodeURIComponent)(a.replace(/\+/g," "))},Ea=function(a){if(!xa.test(a))return a;
  14. -1!=a.indexOf("&")&&(a=a.replace(ya,"&amp;"));-1!=a.indexOf("<")&&(a=a.replace(za,"&lt;"));-1!=a.indexOf(">")&&(a=a.replace(Aa,"&gt;"));-1!=a.indexOf('"')&&(a=a.replace(Ba,"&quot;"));-1!=a.indexOf("'")&&(a=a.replace(Ca,"&#39;"));-1!=a.indexOf("\x00")&&(a=a.replace(Da,"&#0;"));return a},Ja=function(a){return Fa(a,"&")?"document"in aa?Ha(a):Ia(a):a},Ha=function(a){var b={"&amp;":"&",
  15. "&lt;":"<","&gt;":">","&quot;":'"'},c;c=aa.document.createElement("div");return a.replace(Ka,function(a,e){var f=b[a];if(f)return f;if("#"==e.charAt(0)){var k=Number("0"+e.substr(1));(0,window.isNaN)(k)||(f=String.fromCharCode(k))}f||(c.innerHTML=a+" ",f=c.firstChild.nodeValue.slice(0,-1));return b[a]=f})},Ia=function(a){return a.replace(/&([^;]+);/g,function(a,c){switch(c){case "amp":return"&";
  16. case "lt":return"<";case "gt":return">";case "quot":return'"';default:if("#"==c.charAt(0)){var d=Number("0"+c.substr(1));if(!(0,window.isNaN)(d))return String.fromCharCode(d)}return a}})},La=function(a,b){a.length>b&&(a=a.substring(0,b-3)+"...");
  17. return a},Fa=function(a,b){return-1!=a.indexOf(b)},Ma=function(a,b){return Fa(a.toLowerCase(),b.toLowerCase())},Pa=function(a,b,c){a=p(c)?a.toFixed(c):String(a);
  18. c=a.indexOf(".");-1==c&&(c=a.length);return Na("0",Math.max(0,b-c))+a},C=function(a){return null==a?"":String(a)},Qa=function(a){return Array.prototype.join.call(arguments,"")},Ta=function(a,b){for(var c=0,d=Ra(String(a)).split("."),e=Ra(String(b)).split("."),f=Math.max(d.length,e.length),k=0;0==c&&k<f;k++){var m=d[k]||"",l=e[k]||"",n=RegExp("(\\d*)(\\D*)","g"),t=RegExp("(\\d*)(\\D*)","g");
  19. do{var u=n.exec(m)||["","",""],x=t.exec(l)||["","",""];if(0==u[0].length&&0==x[0].length)break;c=Sa(0==u[1].length?0:(0,window.parseInt)(u[1],10),0==x[1].length?0:(0,window.parseInt)(x[1],10))||Sa(0==u[2].length,0==x[2].length)||Sa(u[2],x[2])}while(0==c)}return c},Sa=function(a,b){return a<b?-1:a>b?1:0},Ua=function(a){for(var b=0,c=0;c<a.length;++c)b=31*b+a.charCodeAt(c)>>>0;
  20. return b},Wa=function(){return"goog_"+Va++},Xa=function(a){var b=Number(a);
  21. return 0==b&&A(a)?window.NaN:b},Ya=function(a){return String(a).replace(/\-([a-z])/g,function(a,c){return c.toUpperCase()})},Za=function(a){var b=w(void 0)?"undefined".replace(/([-()\[\]{}+?*.$\^|,:#<!\\])/g,"\\$1").replace(/\x08/g,"\\x08"):"\\s";
  22. return a.replace(new RegExp("(^"+(b?"|["+b+"]+":"")+")([a-z])","g"),function(a,b,e){return b+e.toUpperCase()})},$a=function(a){(0,window.isFinite)(a)&&(a=String(a));
  23. return w(a)?/^\s*-?0x/i.test(a)?(0,window.parseInt)(a,16):(0,window.parseInt)(a,10):window.NaN},ab=function(a,b,c){a=a.split(b);
  24. for(var d=[];0<c&&a.length;)d.push(a.shift()),c--;a.length&&d.push(a.join(b));return d},cb=function(a){return a[a.length-1]},eb=function(a,b,c){b=db(a,b,c);
  25. return 0>b?null:w(a)?a.charAt(b):a[b]},db=function(a,b,c){for(var d=a.length,e=w(a)?a.split(""):a,f=0;f<d;f++)if(f in e&&b.call(c,e[f],f,a))return f;
  26. return-1},gb=function(a,b){var c=fb(a,b,void 0);
  27. return 0>c?null:w(a)?a.charAt(c):a[c]},fb=function(a,b,c){for(var d=w(a)?a.split(""):a,e=a.length-1;0<=e;e--)if(e in d&&b.call(c,d[e],e,a))return e;
  28. return-1},jb=function(a,b){return 0<=ib(a,b)},kb=function(a){return 0==a.length},lb=function(a){if(!da(a))for(var b=a.length-1;0<=b;b--)delete a[b];
  29. a.length=0},nb=function(a,b){jb(a,b)||a.push(b)},pb=function(a,b){var c=ib(a,b),d;
  30. (d=0<=c)&&ob(a,c);return d},ob=function(a,b){Array.prototype.splice.call(a,b,1)},qb=function(a,b){var c=db(a,b,void 0);
  31. 0<=c&&ob(a,c)},rb=function(a){return Array.prototype.concat.apply(Array.prototype,arguments)},sb=function(a){var b=a.length;
  32. if(0<b){for(var c=Array(b),d=0;d<b;d++)c[d]=a[d];return c}return[]},tb=function(a,b){for(var c=1;c<arguments.length;c++){var d=arguments[c];
  33. if(ea(d)){var e=a.length||0,f=d.length||0;a.length=e+f;for(var k=0;k<f;k++)a[e+k]=d[k]}else a.push(d)}},vb=function(a,b,c,d){Array.prototype.splice.apply(a,ub(arguments,1))},ub=function(a,b,c){return 2>=arguments.length?Array.prototype.slice.call(a,b):Array.prototype.slice.call(a,b,c)},wb=function(a,b,c){function d(a){return ia(a)?"o"+ma(a):(typeof a).charAt(0)+a}
  34. b=b||a;c=c||d;for(var e={},f=0,k=0;k<a.length;){var m=a[k++],l=c(m);Object.prototype.hasOwnProperty.call(e,l)||(e[l]=!0,b[f++]=m)}b.length=f},zb=function(a,b,c){return xb(a,c||yb,!1,b)},Ab=function(a,b){return xb(a,b,!0,void 0,void 0)},xb=function(a,b,c,d,e){for(var f=0,k=a.length,m;f<k;){var l=f+k>>1,n;
  35. c?n=b.call(e,a[l],l,a):n=b(d,a[l]);0<n?f=l+1:(k=l,m=!n)}return m?f:~f},Bb=function(a,b){a.sort(b||yb)},Cb=function(a,b,c){var d=c||yb;
  36. Bb(a,function(a,c){return d(b(a),b(c))})},Db=function(a,b){Cb(a,function(a){return a[b]},void 0)},Fb=function(a,b,c){if(!ea(a)||!ea(b)||a.length!=b.length)return!1;
  37. var d=a.length;c=c||Eb;for(var e=0;e<d;e++)if(!c(a[e],b[e]))return!1;return!0},yb=function(a,b){return a>b?1:a<b?-1:0},Eb=function(a,b){return a===b},Gb=function(a,b,c){c=zb(a,b,c);
  38. 0>c&&vb(a,-(c+1),0,b)},Hb=function(a,b,c){var d={};
  39. F(a,function(e,f){d[b.call(c,e,f,a)]=e});
  40. return d},Ib=function(a){for(var b=[],c=0;c<a;c++)b[c]=0;
  41. return b},Jb=function(a){for(var b=[],c=0;c<arguments.length;c++){var d=arguments[c];
  42. if(da(d))for(var e=0;e<d.length;e+=8192)for(var f=ub(d,e,e+8192),f=Jb.apply(null,f),k=0;k<f.length;k++)b.push(f[k]);else b.push(d)}return b},G=function(){this.Va=this.Va;
  43. this.Na=this.Na},H=function(a,b){Kb(a,qa(Lb,b))},Kb=function(a,b){a.Va?b.call(void 0):(a.Na||(a.Na=[]),a.Na.push(p(void 0)?y(b,void 0):b))},Lb=function(a){a&&"function"==typeof a.dispose&&a.dispose()},Mb=function(a){for(var b=0,c=arguments.length;b<c;++b){var d=arguments[b];
  44. ea(d)?Mb.apply(null,d):Lb(d)}},Nb=function(a,b,c){for(var d in a)b.call(c,a[d],d,a)},Ob=function(a,b,c){var d={},e;
  45. for(e in a)b.call(c,a[e],e,a)&&(d[e]=a[e]);return d},Pb=function(a,b,c){for(var d in a)if(b.call(c,a[d],d,a))return!0;
  46. return!1},Qb=function(a,b){for(var c in a)if(!b.call(void 0,a[c],c,a))return!1;
  47. return!0},Rb=function(a){var b=0,c;
  48. for(c in a)b++;return b},Tb=function(a,b){return Sb(a,b)},Ub=function(a){var b=[],c=0,d;
  49. for(d in a)b[c++]=a[d];return b},Vb=function(a){var b=[],c=0,d;
  50. for(d in a)b[c++]=d;return b},Wb=function(a,b){for(var c=ea(b),d=c?b:arguments,c=c?0:1;c<d.length&&(a=a[d[c]],p(a));c++);
  51. return a},Xb=function(a,b){return null!==a&&b in a},Sb=function(a,b){for(var c in a)if(a[c]==b)return!0;
  52. return!1},Yb=function(a,b,c){for(var d in a)if(b.call(c,a[d],d,a))return d},Zb=function(a,b){var c=Yb(a,b,void 0);
  53. return c&&a[c]},$b=function(a){for(var b in a)return!1;
  54. return!0},ac=function(a){for(var b in a)delete a[b]},bc=function(a,b){b in a&&delete a[b]},cc=function(a,b,c){return null!==a&&b in a?a[b]:c},ec=function(a){var b=dc,c;
  55. for(c in a)if(!(c in b)||a[c]!==b[c])return!1;for(c in b)if(!(c in a))return!1;return!0},fc=function(a){var b={},c;
  56. for(c in a)b[c]=a[c];return b},gc=function(a){var b=ca(a);
  57. if("object"==b||"array"==b){if(ha(a.clone))return a.clone();var b="array"==b?[]:{},c;for(c in a)b[c]=gc(a[c]);return b}return a},ic=function(a,b){for(var c,d,e=1;e<arguments.length;e++){d=arguments[e];
  58. for(c in d)a[c]=d[c];for(var f=0;f<hc.length;f++)c=hc[f],Object.prototype.hasOwnProperty.call(d,c)&&(a[c]=d[c])}},jc=function(a){var b=arguments.length;
  59. if(1==b&&da(arguments[0]))return jc.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},kc=function(a,b){this.type=a;
  60. this.currentTarget=this.target=b;this.defaultPrevented=this.A=!1;this.Ar=!0},mc=function(a){a.stopPropagation()},nc=function(a){nc[" "](a);
  61. return a},oc=function(a,b){try{return nc(a[b]),!0}catch(c){}return!1},qc=function(a){return Fa(pc,a)},rc=function(){return(qc("Chrome")||qc("CriOS"))&&!qc("Edge")},sc=function(){return qc("iPhone")&&!qc("iPod")&&!qc("iPad")},tc=function(){var a=aa.document;
  62. return a?a.documentMode:void 0},wc=function(a){return uc[a]||(uc[a]=0<=Ta(vc,a))},yc=function(a){return Number(xc)>=a},Cc=function(a){return zc?"webkit"+a:Ac?"o"+a.toLowerCase():a.toLowerCase()},Dc=function(a,b){kc.call(this,a?a.type:"");
  63. this.relatedTarget=this.currentTarget=this.target=null;this.charCode=this.keyCode=this.button=this.screenY=this.screenX=this.clientY=this.clientX=0;this.metaKey=this.shiftKey=this.altKey=this.ctrlKey=!1;this.o=this.state=null;a&&this.init(a,b)},Fc=function(a){return!(!a||!a[Ec])},Hc=function(a,b,c,d,e){this.listener=a;
  64. this.o=null;this.src=b;this.type=c;this.wf=!!d;this.kd=e;this.key=++Gc;this.eg=this.ki=!1},Ic=function(a){a.eg=!0;
  65. a.listener=null;a.o=null;a.src=null;a.kd=null},Jc=function(a){this.src=a;
  66. this.o={};this.A=0},Lc=function(a,b,c,d,e,f){var k=b.toString();
  67. b=a.o[k];b||(b=a.o[k]=[],a.A++);var m=Kc(b,c,e,f);-1<m?(a=b[m],d||(a.ki=!1)):(a=new Hc(c,a.src,k,!!e,f),a.ki=d,b.push(a));return a},Mc=function(a,b){var c=b.type;
  68. if(!(c in a.o))return!1;var d=pb(a.o[c],b);d&&(Ic(b),0==a.o[c].length&&(delete a.o[c],a.A--));return d},Nc=function(a,b,c,d,e){a=a.o[b.toString()];
  69. b=-1;a&&(b=Kc(a,c,d,e));return-1<b?a[b]:null},Kc=function(a,b,c,d){for(var e=0;e<a.length;++e){var f=a[e];
  70. if(!f.eg&&f.listener==b&&f.wf==!!c&&f.kd==d)return e}return-1},Oc=function(a,b,c,d,e){if(da(b)){for(var f=0;f<b.length;f++)Oc(a,b[f],c,d,e);
  71. return null}c=Pc(c);return Fc(a)?a.O(b,c,d,e):Qc(a,b,c,!1,d,e)},Qc=function(a,b,c,d,e,f){if(!b)throw Error("Invalid event type");
  72. var k=!!e,m=Rc(a);m||(a[Sc]=m=new Jc(a));c=Lc(m,b,c,d,e,f);if(c.o)return c;d=Tc();c.o=d;d.src=a;d.listener=c;if(a.addEventListener)a.addEventListener(b.toString(),d,k);else if(a.attachEvent)a.attachEvent(Uc(b.toString()),d);else throw Error("addEventListener and attachEvent are unavailable.");Vc++;return c},Tc=function(){var a=Wc,b=Xc?function(c){return a.call(b.src,b.listener,c)}:function(c){c=a.call(b.src,b.listener,c);
  73. if(!c)return c};
  74. return b},Yc=function(a,b,c,d,e){if(da(b)){for(var f=0;f<b.length;f++)Yc(a,b[f],c,d,e);
  75. return null}c=Pc(c);return Fc(a)?Lc(a.R,String(b),c,!0,d,e):Qc(a,b,c,!0,d,e)},Zc=function(a,b,c,d,e){if(da(b))for(var f=0;f<b.length;f++)Zc(a,b[f],c,d,e);
  76. else c=Pc(c),Fc(a)?a.ya(b,c,d,e):a&&(a=Rc(a))&&(b=Nc(a,b,c,!!d,e))&&$c(b)},$c=function(a){if(ga(a)||!a||a.eg)return!1;
  77. var b=a.src;if(Fc(b))return Mc(b.R,a);var c=a.type,d=a.o;b.removeEventListener?b.removeEventListener(c,d,a.wf):b.detachEvent&&b.detachEvent(Uc(c),d);Vc--;(c=Rc(b))?(Mc(c,a),0==c.A&&(c.src=null,b[Sc]=null)):Ic(a);return!0},Uc=function(a){return a in ad?ad[a]:ad[a]="on"+a},cd=function(a,b,c,d){var e=!0;
  78. if(a=Rc(a))if(b=a.o[b.toString()])for(b=b.concat(),a=0;a<b.length;a++){var f=b[a];f&&f.wf==c&&!f.eg&&(f=bd(f,d),e=e&&!1!==f)}return e},bd=function(a,b){var c=a.listener,d=a.kd||a.src;
  79. a.ki&&$c(a);return c.call(d,b)},Wc=function(a,b){if(a.eg)return!0;
  80. if(!Xc){var c=b||r("window.event"),d=new Dc(c,this),e=!0;if(!(0>c.keyCode||void 0!=c.returnValue)){a:{var f=!1;if(0==c.keyCode)try{c.keyCode=-1;break a}catch(l){f=!0}if(f||void 0==c.returnValue)c.returnValue=!0}c=[];for(f=d.currentTarget;f;f=f.parentNode)c.push(f);for(var f=a.type,k=c.length-1;!d.A&&0<=k;k--){d.currentTarget=c[k];var m=cd(c[k],f,!0,d),e=e&&m}for(k=0;!d.A&&k<c.length;k++)d.currentTarget=c[k],m=cd(c[k],f,!1,d),e=e&&m}return e}return bd(a,new Dc(b,this))},Rc=function(a){a=a[Sc];
  81. return a instanceof Jc?a:null},Pc=function(a){if(ha(a))return a;
  82. a[dd]||(a[dd]=function(b){return a.handleEvent(b)});
  83. return a[dd]},I=function(){G.call(this);
  84. this.R=new Jc(this);this.Ta=this;this.Aa=null},ed=function(a,b,c,d){b=a.R.o[String(b)];
  85. if(!b)return!0;b=b.concat();for(var e=!0,f=0;f<b.length;++f){var k=b[f];if(k&&!k.eg&&k.wf==c){var m=k.listener,l=k.kd||k.src;k.ki&&Mc(a.R,k);e=!1!==m.call(l,d)&&e}}return e&&0!=d.Ar},fd=function(a,b,c){this.D=c;
  86. this.B=a;this.C=b;this.A=0;this.o=null},gd=function(a,b){a.C(b);
  87. a.A<a.D&&(a.A++,b.next=a.o,a.o=b)},hd=function(a){return function(){return a}},id=function(a){var b;
  88. b=b||0;return function(){return a.apply(this,Array.prototype.slice.call(arguments,0,b))}},jd=function(a){aa.setTimeout(function(){throw a;
  89. },0)},md=function(a,b){var c=a;
  90. b&&(c=y(a,b));!ha(aa.setImmediate)||aa.Window&&aa.Window.prototype&&!qc("Edge")&&aa.Window.prototype.setImmediate==aa.setImmediate?(kd||(kd=ld()),kd(c)):aa.setImmediate(c)},ld=function(){var a=aa.MessageChannel;
  91. "undefined"===typeof a&&"undefined"!==typeof window&&window.postMessage&&window.addEventListener&&!qc("Presto")&&(a=function(){var a=window.document.createElement("IFRAME");a.style.display="none";a.src="";window.document.documentElement.appendChild(a);var b=a.contentWindow,a=b.document;a.open();a.write("");a.close();var c="callImmediate"+Math.random(),d="file:"==b.location.protocol?"*":b.location.protocol+"//"+b.location.host,a=y(function(a){if(("*"==d||a.origin==d)&&a.data==c)this.port1.onmessage()},
  92. this);
  93. b.addEventListener("message",a,!1);this.port1={};this.port2={postMessage:function(){b.postMessage(c,d)}}});
  94. if("undefined"!==typeof a&&!qc("Trident")&&!qc("MSIE")){var b=new a,c={},d=c;b.port1.onmessage=function(){if(p(c.next)){c=c.next;var a=c.wo;c.wo=null;a()}};
  95. return function(a){d.next={wo:a};d=d.next;b.port2.postMessage(0)}}return"undefined"!==typeof window.document&&"onreadystatechange"in window.document.createElement("SCRIPT")?function(a){var b=window.document.createElement("SCRIPT");
  96. b.onreadystatechange=function(){b.onreadystatechange=null;b.parentNode.removeChild(b);b=null;a();a=null};
  97. window.document.documentElement.appendChild(b)}:function(a){aa.setTimeout(a,0)}},nd=function(){this.A=this.o=null},od=function(){this.next=this.scope=this.o=null},ud=function(a,b){pd||qd();
  98. rd||(pd(),rd=!0);var c=sd,d=td.get();d.set(a,b);c.A?c.A.next=d:c.o=d;c.A=d},qd=function(){if(aa.Promise&&aa.Promise.resolve){var a=aa.Promise.resolve(void 0);
  99. pd=function(){a.then(vd)}}else pd=function(){md(vd)}},vd=function(){for(var a=null;a=sd.remove();){try{a.o.call(a.scope)}catch(b){jd(b)}gd(td,a)}rd=!1},wd=function(a){a.prototype.then=a.prototype.then;
  100. a.prototype.$goog_Thenable=!0},xd=function(a){if(!a)return!1;
  101. try{return!!a.$goog_Thenable}catch(b){return!1}},zd=function(a,b){this.o=0;
  102. this.G=void 0;this.C=this.A=this.B=null;this.D=this.F=!1;if(a!=v)try{var c=this;a.call(b,function(a){yd(c,2,a)},function(a){yd(c,3,a)})}catch(d){yd(this,3,d)}},Ad=function(){this.next=this.context=this.A=this.C=this.o=null;
  103. this.B=!1},Cd=function(a,b,c){var d=Bd.get();
  104. d.C=a;d.A=b;d.context=c;return d},Dd=function(a){return new zd(function(b,c){c(a)})},Gd=function(){var a,b,c=new zd(function(c,e){a=c;
  105. b=e});
  106. return new Ed(c,a,b)},Id=function(a,b){return Hd(a,null,b,void 0)},Jd=function(a,b){if(0==a.o)if(a.B){var c=a.B;
  107. if(c.A){for(var d=0,e=null,f=null,k=c.A;k&&(k.B||(d++,k.o==a&&(e=k),!(e&&1<d)));k=k.next)e||(f=k);e&&(0==c.o&&1==d?Jd(c,b):(f?(d=f,d.next==c.C&&(c.C=d),d.next=d.next.next):Kd(c),Ld(c,e,3,b)))}a.B=null}else yd(a,3,b)},Nd=function(a,b){a.A||2!=a.o&&3!=a.o||Md(a);
  108. a.C?a.C.next=b:a.A=b;a.C=b},Hd=function(a,b,c,d){var e=Cd(null,null,null);
  109. e.o=new zd(function(a,k){e.C=b?function(c){try{var e=b.call(d,c);a(e)}catch(n){k(n)}}:a;
  110. e.A=c?function(b){try{var e=c.call(d,b);!p(e)&&b instanceof Od?k(b):a(e)}catch(n){k(n)}}:k});
  111. e.o.B=a;Nd(a,e);return e.o},yd=function(a,b,c){if(0==a.o){a==c&&(b=3,c=new TypeError("Promise cannot resolve to itself"));
  112. a.o=1;var d;a:{var e=c,f=a.I,k=a.J;if(e instanceof zd)Nd(e,Cd(f||v,k||null,a)),d=!0;else if(xd(e))e.then(f,k,a),d=!0;else{if(ia(e))try{var m=e.then;if(ha(m)){Pd(e,m,f,k,a);d=!0;break a}}catch(l){k.call(a,l);d=!0;break a}d=!1}}d||(a.G=c,a.o=b,a.B=null,Md(a),3!=b||c instanceof Od||Qd(a,c))}},Pd=function(a,b,c,d,e){function f(a){m||(m=!0,d.call(e,a))}
  113. function k(a){m||(m=!0,c.call(e,a))}
  114. var m=!1;try{b.call(a,k,f)}catch(l){f(l)}},Md=function(a){a.F||(a.F=!0,ud(a.H,a))},Kd=function(a){var b=null;
  115. a.A&&(b=a.A,a.A=b.next,b.next=null);a.A||(a.C=null);return b},Ld=function(a,b,c,d){if(3==c&&b.A&&!b.B)for(;a&&a.D;a=a.B)a.D=!1;
  116. if(b.o)b.o.B=null,Rd(b,c,d);else try{b.B?b.C.call(b.context):Rd(b,c,d)}catch(e){Sd.call(null,e)}gd(Bd,b)},Rd=function(a,b,c){2==b?a.C.call(a.context,c):a.A&&a.A.call(a.context,c)},Qd=function(a,b){a.D=!0;
  117. ud(function(){a.D&&Sd.call(null,b)})},Od=function(a){sa.call(this,a)},Ed=function(a,b,c){this.A=a;
  118. this.resolve=b;this.o=c},Td=function(a,b){I.call(this);
  119. this.o=a||1;this.A=b||aa;this.B=y(this.xx,this);this.C=J()},Ud=function(a,b){a.o=b;
  120. a.zc&&a.enabled?(a.stop(),a.start()):a.zc&&a.stop()},Vd=function(a,b,c){if(ha(a))c&&(a=y(a,c));
  121. else if(a&&"function"==typeof a.handleEvent)a=y(a.handleEvent,a);else throw Error("Invalid listener argument");return 2147483647<Number(b)?-1:aa.setTimeout(a,b||0)},Wd=function(a){aa.clearTimeout(a)},Xd=function(a,b,c){G.call(this);
  122. this.o=a;this.C=b||0;this.A=c;this.B=y(this.bp,this)},Yd=function(a){a.stop();
  123. a.bp()},Zd=function(a){if(a.classList)return a.classList;
  124. a=a.className;return w(a)&&a.match(/\S+/g)||[]},$d=function(a,b){return a.classList?a.classList.contains(b):jb(Zd(a),b)},K=function(a,b){a.classList?a.classList.add(b):$d(a,b)||(a.className+=0<a.className.length?" "+b:b)},ae=function(a,b){if(a.classList)F(b,function(b){K(a,b)});
  125. else{var c={};F(Zd(a),function(a){c[a]=!0});
  126. F(b,function(a){c[a]=!0});
  127. a.className="";for(var d in c)a.className+=0<a.className.length?" "+d:d}},ce=function(a,b){a.classList?a.classList.remove(b):$d(a,b)&&(a.className=be(Zd(a),function(a){return a!=b}).join(" "))},de=function(a,b){a.classList?F(b,function(b){ce(a,b)}):a.className=be(Zd(a),function(a){return!jb(b,a)}).join(" ")},M=function(a,b,c){c?K(a,b):ce(a,b)},ee=function(a){a=String(a);
  128. if(/^\s*$/.test(a)?0:/^[\],:{}\s\u2028\u2029]*$/.test(a.replace(/\\["\\\/bfnrtu]/g,"@").replace(/(?:"[^"\\\n\r\u2028\u2029\x00-\x08\x0a-\x1f]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?)[\s\u2028\u2029]*(?=:|,|]|}|$)/g,"]").replace(/(?:^|:|,)(?:[\s\u2028\u2029]*\[)+/g,"")))try{return eval("("+a+")")}catch(b){}throw Error("Invalid JSON string: "+a);},fe=function(a){return eval("("+a+")")},he=function(a,b){return(new ge(b)).Cc(a)},ge=function(a){this.o=a},ie=function(a,b,c){if(null==b)c.push("null");
  129. else{if("object"==typeof b){if(da(b)){var d=b;b=d.length;c.push("[");for(var e="",f=0;f<b;f++)c.push(e),e=d[f],ie(a,a.o?a.o.call(d,String(f),e):e,c),e=",";c.push("]");return}if(b instanceof String||b instanceof Number||b instanceof Boolean)b=b.valueOf();else{c.push("{");f="";for(d in b)Object.prototype.hasOwnProperty.call(b,d)&&(e=b[d],"function"!=typeof e&&(c.push(f),je(d,c),c.push(":"),ie(a,a.o?a.o.call(b,d,e):e,c),f=","));c.push("}");return}}switch(typeof b){case "string":je(b,c);break;case "number":c.push((0,window.isFinite)(b)&&
  130. !(0,window.isNaN)(b)?String(b):"null");break;case "boolean":c.push(String(b));break;case "function":c.push("null");break;default:throw Error("Unknown type: "+typeof b);}}},je=function(a,b){b.push('"',a.replace(ke,function(a){var b=le[a];
  131. b||(b="\\u"+(a.charCodeAt(0)|65536).toString(16).substr(1),le[a]=b);return b}),'"')},me=function(a,b,c){return Math.min(Math.max(a,b),c)},oe=function(a,b){var c=a%b;
  132. return 0>c*b?c+b:c},pe=function(a,b,c){return a+c*(b-a)},re=function(a){return qe(arguments,function(a,c){return a+c},0)},se=function(a){return re.apply(null,arguments)/arguments.length},te=function(a,b){this.x=p(a)?a:0;
  133. this.y=p(b)?b:0},ue=function(a,b){return a==b?!0:a&&b?a.x==b.x&&a.y==b.y:!1},ve=function(a,b,c,d){this.top=a;
  134. this.right=b;this.bottom=c;this.left=d},we=function(a,b){this.width=a;
  135. this.height=b},xe=function(a,b){return a==b?!0:a&&b?a.width==b.width&&a.height==b.height:!1},ye=function(a,b,c,d){this.left=a;
  136. this.top=b;this.width=c;this.height=d},ze=function(a){return new ve(a.top,a.left+a.width,a.top+a.height,a.left)},Ae=function(a,b){return a==b?!0:a&&b?a.left==b.left&&a.width==b.width&&a.top==b.top&&a.height==b.height:!1},Be=function(a){return new we(a.width,a.height)},Ce=function(a){return new te(a.left,a.top)},De=function(a){G.call(this);
  137. this.D=1;this.B=[];this.C=0;this.o=[];this.A={};this.F=!!a},Ee=function(a,b,c,d){if(b=a.A[b]){var e=a.o;
  138. if(b=eb(b,function(a){return e[a+1]==c&&e[a+2]==d}))return a.tc(b)}return!1},Fe=function(a,b,c){ud(function(){a.apply(b,c)})},Ge=function(){},Ie=function(a){if(a instanceof Ge)return a;
  139. if("function"==typeof a.gc)return a.gc(!1);if(ea(a)){var b=0,c=new Ge;c.next=function(){for(;;){if(b>=a.length)throw He;if(b in a)return a[b++];b++}};
  140. return c}throw Error("Not implemented");},Je=function(a,b,c){if(ea(a))try{F(a,b,c)}catch(d){if(d!==He)throw d;
  141. }else{a=Ie(a);try{for(;;)b.call(c,a.next(),void 0,a)}catch(d){if(d!==He)throw d;}}},Ke=function(a){if(ea(a))return sb(a);
  142. a=Ie(a);var b=[];Je(a,function(a){b.push(a)});
  143. return b},Le=function(a,b){this.A={};
  144. this.o=[];this.xe=this.xa=0;var c=arguments.length;if(1<c){if(c%2)throw Error("Uneven number of arguments");for(var d=0;d<c;d+=2)this.set(arguments[d],arguments[d+1])}else if(a){a instanceof Le?(c=a.Qa(),d=a.Oa()):(c=Vb(a),d=Ub(a));for(var e=0;e<c.length;e++)this.set(c[e],d[e])}},Ne=function(a,b){return Me(a.A,b)},Oe=function(a,b){return a===b},Pe=function(a){if(a.xa!=a.o.length){for(var b=0,c=0;b<a.o.length;){var d=a.o[b];
  145. Me(a.A,d)&&(a.o[c++]=d);b++}a.o.length=c}if(a.xa!=a.o.length){for(var e={},c=b=0;b<a.o.length;)d=a.o[b],Me(e,d)||(a.o[c++]=d,e[d]=1),b++;a.o.length=c}},Me=function(a,b){return Object.prototype.hasOwnProperty.call(a,b)},Qe=function(a){return a.fb&&"function"==typeof a.fb?a.fb():ea(a)||w(a)?a.length:Rb(a)},Re=function(a){if(a.Oa&&"function"==typeof a.Oa)return a.Oa();
  146. if(w(a))return a.split("");if(ea(a)){for(var b=[],c=a.length,d=0;d<c;d++)b.push(a[d]);return b}return Ub(a)},Se=function(a){if(a.Qa&&"function"==typeof a.Qa)return a.Qa();
  147. if(!a.Oa||"function"!=typeof a.Oa){if(ea(a)||w(a)){var b=[];a=a.length;for(var c=0;c<a;c++)b.push(c);return b}return Vb(a)}},Te=function(a,b,c){if(a.forEach&&"function"==typeof a.forEach)a.forEach(b,c);
  148. else if(ea(a)||w(a))F(a,b,c);else for(var d=Se(a),e=Re(a),f=e.length,k=0;k<f;k++)b.call(c,e[k],d&&d[k],a)},Ve=function(a,b,c){if("function"==typeof a.every)return a.every(b,c);
  149. if(ea(a)||w(a))return Ue(a,b,c);for(var d=Se(a),e=Re(a),f=e.length,k=0;k<f;k++)if(!b.call(c,e[k],d&&d[k],a))return!1;return!0},We=function(a,b,c,d,e,f,k){var m="";
  150. a&&(m+=a+":");c&&(m+="//",b&&(m+=b+"@"),m+=c,d&&(m+=":"+d));e&&(m+=e);f&&(m+="?"+f);k&&(m+="#"+k);return m},Ye=function(a){return a.match(Xe)},Ze=function(a){return a?(0,window.decodeURI)(a):a},$e=function(a){return Ze(Ye(a)[3]||null)},af=function(a){return Number(Ye(a)[4]||null)||null},bf=function(a,b){if(a)for(var c=a.split("&"),d=0;d<c.length;d++){var e=c[d].indexOf("="),f=null,k=null;
  151. 0<=e?(f=c[d].substring(0,e),k=c[d].substring(e+1)):f=c[d];b(f,k?wa(k):"")}},cf=function(a){if(a[1]){var b=a[0],c=b.indexOf("#");
  152. 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("")},df=function(a,b,c){if(da(b))for(var d=0;d<b.length;d++)df(a,String(b[d]),c);
  153. else null!=b&&c.push("&",a,""===b?"":"=",va(b))},ef=function(a,b,c){for(c=c||0;c<b.length;c+=2)df(b[c],b[c+1],a);
  154. return a},ff=function(a,b){for(var c in b)df(c,b[c],a);
  155. return a},gf=function(a){a=ff([],a);
  156. a[0]="";return a.join("")},hf=function(a,b){return cf(2==arguments.length?ef([a],arguments[1],0):ef([a],arguments,1))},jf=function(a,b){return cf(ff([a],b))},kf=function(a,b,c,d){for(var e=c.length;0<=(b=a.indexOf(c,b))&&b<d;){var f=a.charCodeAt(b-1);
  157. 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},mf=function(a,b){return 0<=kf(a,0,b,a.search(lf))},nf=function(a,b){var c=a.search(lf),d=kf(a,0,b,c);
  158. if(0>d)return null;var e=a.indexOf("&",d);if(0>e||e>c)e=c;d+=b.length+1;return wa(a.substr(d,e-d))},pf=function(a,b){for(var c=a.search(lf),d=0,e,f=[];0<=(e=kf(a,d,b,c));)f.push(a.substring(d,e)),d=Math.min(a.indexOf("&",e)+1||c,c);
  159. f.push(a.substr(d));return f.join("").replace(of,"$1")},qf=function(a,b,c){a=[pf(a,b),
  160. "&",b];null!=c&&a.push("=",va(c));return cf(a)},N=function(a,b){this.A=this.H=this.C="";
  161. this.D=null;this.I=this.B="";this.F=!1;var c;a instanceof N?(this.F=p(b)?b:a.F,rf(this,a.C),this.H=a.H,sf(this,a.A),tf(this,a.D),uf(this,a.B),vf(this,a.o.clone()),this.I=a.Ye()):a&&(c=Ye(String(a)))?(this.F=!!b,rf(this,c[1]||"",!0),this.H=wf(c[2]||""),sf(this,c[3]||"",!0),tf(this,c[4]),uf(this,c[5]||"",!0),vf(this,c[6]||"",!0),this.I=wf(c[7]||"")):(this.F=!!b,this.o=new xf(null,0,this.F))},rf=function(a,b,c){a.C=c?wf(b,!0):b;
  162. a.C&&(a.C=a.C.replace(/:$/,""))},sf=function(a,b,c){a.A=c?wf(b,!0):b;
  163. return a},tf=function(a,b){if(b){b=Number(b);
  164. if((0,window.isNaN)(b)||0>b)throw Error("Bad port number "+b);a.D=b}else a.D=null;return a},uf=function(a,b,c){a.B=c?wf(b,!0):b},vf=function(a,b,c){b instanceof xf?(a.o=b,yf(a.o,a.F)):(c||(b=zf(b,Af)),a.o=new xf(b,0,a.F));
  165. return a},Bf=function(a,b,c){a.o.set(b,c);
  166. return a},Df=function(a,b,c){da(c)||(c=[String(c)]);
  167. Cf(a.o,b,c)},Ef=function(a){Bf(a,"zx",Math.floor(2147483648*Math.random()).toString(36)+Math.abs(Math.floor(2147483648*Math.random())^J()).toString(36));
  168. return a},Ff=function(a){return a instanceof N?a.clone():new N(a,void 0)},Gf=function(a,b,c,d){var e=new N(null,void 0);
  169. a&&rf(e,a);b&&sf(e,b);c&&tf(e,c);d&&uf(e,d);return e},wf=function(a,b){return a?b?(0,window.decodeURI)(a.replace(/%25/g,"%2525")):(0,window.decodeURIComponent)(a):""},zf=function(a,b,c){return w(a)?(a=(0,window.encodeURI)(a).replace(b,Hf),c&&(a=a.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),a):null},Hf=function(a){a=a.charCodeAt(0);
  170. return"%"+(a>>4&15).toString(16)+(a&15).toString(16)},xf=function(a,b,c){this.xa=this.o=null;
  171. this.A=a||null;this.B=!!c},Kf=function(a){a.o||(a.o=new Le,a.xa=0,a.A&&bf(a.A,function(b,c){If(a,wa(b),c)}))},If=function(a,b,c){Kf(a);
  172. a.A=null;b=Lf(a,b);var d=a.o.get(b);d||a.o.set(b,d=[]);d.push(c);a.xa=a.xa+1},Mf=function(a,b){Kf(a);
  173. b=Lf(a,b);return Ne(a.o,b)},Cf=function(a,b,c){a.remove(b);
  174. 0<c.length&&(a.A=null,a.o.set(Lf(a,b),sb(c)),a.xa=a.xa+c.length)},Lf=function(a,b){var c=String(b);
  175. a.B&&(c=c.toLowerCase());return c},yf=function(a,b){b&&!a.B&&(Kf(a),a.A=null,a.o.forEach(function(a,b){var e=b.toLowerCase();
  176. b!=e&&(this.remove(b),Cf(this,e,a))},a));
  177. a.B=b},Nf=function(a,b){b.match(/\sstyle\s*=/);
  178. a.innerHTML=b},Pf=function(){return Of?'<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%"><use class="ytp-svg-shadow" xlink:href="#ytp-svg-4" /><path d="M 8,23.33 8,26 10.66,26 C 10.66,24.52 9.47,23.33 8,23.33 l 0,0 z m 0,-3.55 0,1.77 c 2.45,0 4.44,1.99 4.44,4.44 l 1.77,0 C 14.22,22.56 11.44,19.77 8,19.77 l 0,0 z m 16,-6.22 -12.44,0 0,1.44 c 3.52,1.13 6.30,3.92 7.44,7.44 l 5.00,0 0,-8.88 0,0 z M 8,16.22 8,18 c 4.41,0 8,3.58 8,8 l 1.77,0 c 0,-5.40 -4.38,-9.77 -9.77,-9.77 l 0,0 z M 25.77,10 9.77,10 C 8.8,10 8,10.8 8,11.77 l 0,2.66 1.77,0 0,-2.66 16.00,0 0,12.44 -6.22,0 0,1.77 6.22,0 c .97,0 1.77,-0.8 1.77,-1.77 l 0,-12.44 C 27.55,10.8 26.75,10 25.77,10 l 0,0 z" fill="#fff" id="ytp-svg-4" /></svg>'},
  179. Qf=function(){return Of?'<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>'},Rf=function(){return Of?'<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%"><use stroke="#000" stroke-opacity=".15" xlink:href="#ytp-svg-5" /><path d="M2,14 L5,11 L5,3 L2,0 L9,0 L9,14 L2,14 L2,14 Z" fill="#eaeaea" id="ytp-svg-5" /></svg>'},
  180. Sf=function(){return Of?'<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%"><use stroke="#000" stroke-opacity=".15" xlink:href="#ytp-svg-6" /><path d="M12,14 L9,11 L9,3 L12,0 L5,0 L5,14 L12,14 Z" fill="#eaeaea" id="ytp-svg-6" /></svg>'},Tf=function(){return Of?'<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>'},
  181. Uf=function(){return Of?'<div class="ytp-icon ytp-icon-pause"></div>':'<svg xmlns:xlink="http://www.w3.org/1999/xlink" height="100%" version="1.1" viewBox="0 0 36 36" width="100%"><use class="ytp-svg-shadow" xlink:href="#ytp-svg-27" /><path class="ytp-svg-fill" d="M 11,26 15.33,26 15.33,10 11,10 z M 19.66,26 24,26 24,10 19.66,10 z" id="ytp-svg-27" /></svg>'},Vf=function(){return Of?'<div class="ytp-icon ytp-icon-play"></div>':'<svg xmlns:xlink="http://www.w3.org/1999/xlink" height="100%" version="1.1" viewBox="0 0 36 36" width="100%"><use class="ytp-svg-shadow" xlink:href="#ytp-svg-29" /><path class="ytp-svg-fill" d="M 11,26 17.5,22 17.5,14 11,10 z M 17.5,22 24,18 24,18 17.5,14 z" id="ytp-svg-29" /></svg>'},
  182. Wf=function(){return Of?'<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%"><use class="ytp-svg-shadow" xlink:href="#ytp-svg-30" /><path d="m 10,13.57 13.6,0 0,2.28 -13.6,0 0,-2.28 0,0 z M 10,9 l 13.6,0 0,2.28 -13.6,0 L 10,9 10,9 z m 0,9.14 9.06,0 0,2.28 -9.06,0 0,-2.28 0,0 z m 11.33,0 0,6.85 L 27,21.57 l -5.66,-3.42 0,0 z" fill="#fff" id="ytp-svg-30" /></svg>'},Xf=function(){return Of?'<div class="ytp-icon ytp-icon-replay"></div>':
  183. '<svg xmlns:xlink="http://www.w3.org/1999/xlink" height="100%" version="1.1" viewBox="0 0 36 36" width="100%"><use class="ytp-svg-shadow" xlink:href="#ytp-svg-32" /><path class="ytp-svg-fill" d="M 24.68,20.43 29,15.63 l -3.03,0 C 25.07,11.27 21.21,8 16.58,8 11.28,8 7,12.27 7,17.53 c 0,5.26 4.28,9.53 9.58,9.53 3.04,0 5.75,-1.42 7.51,-3.62 l -1.75,-1.75 c -1.29,1.77 -3.38,2.92 -5.75,2.92 -3.92,0 -7.11,-3.17 -7.11,-7.08 0,-3.91 3.18,-7.08 7.11,-7.08 3.26,0 6.00,2.19 6.84,5.17 l -3.04,0 4.31,4.80" id="ytp-svg-32" /></svg>'},
  184. Zf=function(){return Of?'<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%"><use class="ytp-svg-shadow" xlink:href="#ytp-svg-33" /><path d="m 23.94,18.78 c .03,-0.25 .05,-0.51 .05,-0.78 0,-0.27 -0.02,-0.52 -0.05,-0.78 l 1.68,-1.32 c .15,-0.12 .19,-0.33 .09,-0.51 l -1.6,-2.76 c -0.09,-0.17 -0.31,-0.24 -0.48,-0.17 l -1.99,.8 c -0.41,-0.32 -0.86,-0.58 -1.35,-0.78 l -0.30,-2.12 c -0.02,-0.19 -0.19,-0.33 -0.39,-0.33 l -3.2,0 c -0.2,0 -0.36,.14 -0.39,.33 l -0.30,2.12 c -0.48,.2 -0.93,.47 -1.35,.78 l -1.99,-0.8 c -0.18,-0.07 -0.39,0 -0.48,.17 l -1.6,2.76 c -0.10,.17 -0.05,.39 .09,.51 l 1.68,1.32 c -0.03,.25 -0.05,.52 -0.05,.78 0,.26 .02,.52 .05,.78 l -1.68,1.32 c -0.15,.12 -0.19,.33 -0.09,.51 l 1.6,2.76 c .09,.17 .31,.24 .48,.17 l 1.99,-0.8 c .41,.32 .86,.58 1.35,.78 l .30,2.12 c .02,.19 .19,.33 .39,.33 l 3.2,0 c .2,0 .36,-0.14 .39,-0.33 l .30,-2.12 c .48,-0.2 .93,-0.47 1.35,-0.78 l 1.99,.8 c .18,.07 .39,0 .48,-0.17 l 1.6,-2.76 c .09,-0.17 .05,-0.39 -0.09,-0.51 l -1.68,-1.32 0,0 z m -5.94,2.01 c -1.54,0 -2.8,-1.25 -2.8,-2.8 0,-1.54 1.25,-2.8 2.8,-2.8 1.54,0 2.8,1.25 2.8,2.8 0,1.54 -1.25,2.8 -2.8,2.8 l 0,0 z" fill="#fff" id="ytp-svg-33" /></svg>'},
  185. $f=function(){return'<svg height="100%" version="1.1" viewBox="0 0 22 22" width="100%"><svg x="7" y="1"><circle class="ytp-spinner-dot ytp-spinner-dot-0" cx="4" cy="4" r="2" /></svg><svg x="11" y="3"><circle class="ytp-spinner-dot ytp-spinner-dot-1" cx="4" cy="4" r="2" /></svg><svg x="13" y="7"><circle class="ytp-spinner-dot ytp-spinner-dot-2" cx="4" cy="4" r="2" /></svg><svg x="11" y="11"><circle class="ytp-spinner-dot ytp-spinner-dot-3" cx="4" cy="4" r="2" /></svg><svg x="7" y="13"><circle class="ytp-spinner-dot ytp-spinner-dot-4" cx="4" cy="4" r="2" /></svg><svg x="3" y="11"><circle class="ytp-spinner-dot ytp-spinner-dot-5" cx="4" cy="4" r="2" /></svg><svg x="1" y="7"><circle class="ytp-spinner-dot ytp-spinner-dot-6" cx="4" cy="4" r="2" /></svg><svg x="3" y="3"><circle class="ytp-spinner-dot ytp-spinner-dot-7" cx="4" cy="4" r="2" /></svg></svg>'},
  186. ag=function(){return Of?'<div class="ytp-icon ytp-icon-stop"></div>':'<svg xmlns:xlink="http://www.w3.org/1999/xlink" height="100%" version="1.1" viewBox="0 0 36 36" width="100%"><use class="ytp-svg-shadow" xlink:href="#ytp-svg-37" /><path class="ytp-svg-fill" d="M 11,25 18,25 18,11 11,11 z M 18,25 25,25 25,11 18,11 z" id="ytp-svg-37" /></svg>'},bg=function(){return Of?'<div class="ytp-icon ytp-icon-volume-muted"></div>':'<svg xmlns:xlink="http://www.w3.org/1999/xlink" height="100%" version="1.1" viewBox="0 0 36 36" width="100%"><use class="ytp-svg-shadow" xlink:href="#ytp-svg-42" /><path class="ytp-svg-fill" d="m 9,15.37 0,5.25 3.58,0 4.48,4.37 0,-14 -4.48,4.37 -3.58,0 0,0 z" id="ytp-svg-42" /><svg class="ytp-svg-sound-mute-group"><use class="ytp-svg-shadow" xlink:href="#ytp-svg-43" /><path class="ytp-svg-fill" d="M 26.11,15.73 24.85,14.5 22.52,16.76 20.20,14.5 18.94,15.73 21.26,18 18.94,20.26 20.20,21.5 22.52,19.23 24.85,21.5 26.11,20.26 23.79,18 l 2.32,-2.26 0,0 z" id="ytp-svg-43" /></svg></svg>'},
  187. dg=function(a,b){return b?a.replace(cg,""):a},jg=function(a,b){for(var c=0,d=0,e=!1,f=dg(a,b).split(eg),k=0;k<f.length;k++){var m=f[k];
  188. fg.test(dg(m,void 0))?(c++,d++):gg.test(m)?e=!0:hg.test(dg(m,void 0))?d++:ig.test(m)&&(e=!0)}return 0==d?e?1:0:.4<c/d?-1:1},lg=function(){this.o="";
  189. this.A=kg},mg=function(a){return a instanceof lg&&a.constructor===lg&&a.A===kg?a.o:"type_error:Const"},ng=function(a){var b=new lg;
  190. b.o=a;return b},pg=function(){this.o="";
  191. this.A=og},qg=function(a){var b=new pg;
  192. b.o=a;return b},sg=function(){this.o="";
  193. this.A=rg},tg=function(a){if(a instanceof sg&&a.constructor===sg&&a.A===rg)return a.o;
  194. ca(a);return"type_error:SafeUrl"},wg=function(a){if(a instanceof sg)return a;
  195. a=a.cf?a.ce():String(a);ug.test(a)||(a="about:invalid#zClosurez");return vg(a)},vg=function(a){var b=new sg;
  196. b.o=a;return b},yg=function(){this.o="";
  197. this.A=xg},zg=function(a){if(a instanceof yg&&a.constructor===yg&&a.A===xg)return a.o;
  198. ca(a);return"type_error:TrustedResourceUrl"},Ag=function(a){var b=new yg;
  199. b.o=a;return b},Cg=function(){this.o="";
  200. this.B=Bg;this.A=null},Dg=function(a){if(a instanceof Cg&&a.constructor===Cg&&a.B===Bg)return a.o;
  201. ca(a);return"type_error:SafeHtml"},Fg=function(a){function b(a){if(da(a))F(a,b);
  202. else{var f;a instanceof Cg?f=a:(f=null,a.Ul&&(f=a.Cf()),a=Ea(a.cf?a.ce():String(a)),f=Eg(a,f));d+=Dg(f);f=f.Cf();0==c?c=f:0!=f&&c!=f&&(c=null)}}
  203. var c=0,d="";F(arguments,b);return Eg(d,c)},Eg=function(a,b){var c=new Cg;
  204. c.o=a;c.A=b;return c},Lg=function(a,b,c){var d=null,e,f="";
  205. if(b)for(e in b){if(!Gg.test(e))throw Error('Invalid attribute name "'+e+'".');var k=b[e];if(null!=k){var m,l=a;m=e;if(k instanceof lg)k=mg(k);else if("style"==m.toLowerCase()){if(!ia(k))throw Error('The "style" attribute requires goog.html.SafeStyle or map of style properties, '+typeof k+" given: "+k);if(!(k instanceof pg)){var l="",n=void 0;for(n in k){if(!/^[-_a-zA-Z0-9]+$/.test(n))throw Error("Name allows only [-_a-zA-Z0-9], got: "+n);var t=k[n];if(null!=t){if(t instanceof lg)t=mg(t);else if(Hg.test(t)){for(var u=
  206. !0,x=!0,E=0;E<t.length;E++){var B=t.charAt(E);"'"==B&&x?u=!u:'"'==B&&u&&(x=!x)}u&&x||(t="zClosurez")}else t="zClosurez";l+=n+":"+t+";"}}k=l?qg(l):Ig}l=void 0;k instanceof pg&&k.constructor===pg&&k.A===og?l=k.o:(ca(k),l="type_error:SafeStyle");k=l}else{if(/^on/i.test(m))throw Error('Attribute "'+m+'" requires goog.string.Const value, "'+k+'" given.');if(m.toLowerCase()in Jg)if(k instanceof yg)k=zg(k);else if(k instanceof sg)k=tg(k);else if(w(k))k=wg(k).ce();else throw Error('Attribute "'+m+'" on tag "'+
  207. l+'" requires goog.html.SafeUrl, goog.string.Const, or string, value "'+k+'" given.');}k.cf&&(k=k.ce());m=m+'="'+Ea(String(k))+'"';f+=" "+m}}e="<"+a+f;null!=c?da(c)||(c=[c]):c=[];!0===Kg[a.toLowerCase()]?e+=">":(d=Fg(c),e+=">"+Dg(d)+"</"+a+">",d=d.Cf());(a=b&&b.dir)&&(/^(ltr|rtl|auto)$/i.test(a)?d=0:d=null);return Eg(e,d)},Mg=function(a,b,c){var d={},e;
  208. for(e in a)d[e]=a[e];for(e in b)d[e]=b[e];for(e in c){var f=e.toLowerCase();if(f in a)throw Error('Cannot override "'+f+'" attribute, got "'+e+'" with value "'+c[e]+'"');f in b&&delete d[f];d[e]=c[e]}return d},Ng=function(a,b){var c;
  209. c=b instanceof sg?b:wg(b);a.href=tg(c)},Rg=function(a){return a?new Og(Pg(a)):Qg||(Qg=new Og)},Tg=function(a,b){var c=b||window.document;
  210. return c.querySelectorAll&&c.querySelector?c.querySelectorAll("."+a):Sg("*",a,b)},Ug=function(a,b){var c=b||window.document,d=null;
  211. c.getElementsByClassName?d=c.getElementsByClassName(a)[0]:c.querySelectorAll&&c.querySelector?d=c.querySelector("."+a):d=Sg("*",a,b)[0];return d||null},Sg=function(a,b,c){var d=window.document;
  212. c=c||d;a=a&&"*"!=a?a.toUpperCase():"";if(c.querySelectorAll&&c.querySelector&&(a||b))return c.querySelectorAll(a+(b?"."+b:""));if(b&&c.getElementsByClassName){c=c.getElementsByClassName(b);if(a){for(var d={},e=0,f=0,k;k=c[f];f++)a==k.nodeName&&(d[e++]=k);d.length=e;return d}return c}c=c.getElementsByTagName(a||"*");if(b){d={};for(f=e=0;k=c[f];f++)a=k.className,"function"==typeof a.split&&jb(a.split(/\s+/),b)&&(d[e++]=k);d.length=e;return d}return c},Wg=function(a,b){Nb(b,function(b,d){"style"==d?
  213. a.style.cssText=b:"class"==d?a.className=b:"for"==d?a.htmlFor=b:Vg.hasOwnProperty(d)?a.setAttribute(Vg[d],b):ta(d,"aria-")||ta(d,"data-")?a.setAttribute(d,b):a[d]=b})},Xg=function(a){a=a.document;
  214. a="CSS1Compat"==a.compatMode?a.documentElement:a.body;return new we(a.clientWidth,a.clientHeight)},$g=function(a){var b=Yg(a);
  215. a=a.parentWindow||a.defaultView;return Zg&&wc("10")&&a.pageYOffset!=b.scrollTop?new te(b.scrollLeft,b.scrollTop):new te(a.pageXOffset||b.scrollLeft,a.pageYOffset||b.scrollTop)},Yg=function(a){return a.scrollingElement?a.scrollingElement:zc||"CSS1Compat"!=a.compatMode?a.body||a.documentElement:a.documentElement},ah=function(a){return a?a.parentWindow||a.defaultView:window},O=function(a,b,c){return bh(window.document,arguments)},bh=function(a,b){var c=b[0],d=b[1];
  216. if(!ch&&d&&(d.name||d.type)){c=["<",c];d.name&&c.push(' name="',Ea(d.name),'"');if(d.type){c.push(' type="',Ea(d.type),'"');var e={};ic(e,d);delete e.type;d=e}c.push(">");c=c.join("")}c=a.createElement(c);d&&(w(d)?c.className=d:da(d)?c.className=d.join(" "):Wg(c,d));2<b.length&&dh(a,c,b,2);return c},dh=function(a,b,c,d){function e(c){c&&b.appendChild(w(c)?a.createTextNode(c):c)}
  217. for(;d<c.length;d++){var f=c[d];!ea(f)||ia(f)&&0<f.nodeType?e(f):F(eh(f)?sb(f):f,e)}},fh=function(a,b){a.appendChild(b)},gh=function(a,b){dh(Pg(a),a,arguments,1)},hh=function(a){for(var b;b=a.firstChild;)a.removeChild(b)},ih=function(a,b,c){a.insertBefore(b,a.childNodes[c]||null)},jh=function(a){a&&a.parentNode&&a.parentNode.removeChild(a)},kh=function(a,b){var c=b.parentNode;
  218. c&&c.replaceChild(a,b)},mh=function(a){return lh&&void 0!=a.children?a.children:be(a.childNodes,function(a){return 1==a.nodeType})},oh=function(a){return p(a.firstElementChild)?a.firstElementChild:nh(a.firstChild)},nh=function(a){for(;a&&1!=a.nodeType;)a=a.nextSibling;
  219. return a},ph=function(a){return ia(a)&&1==a.nodeType},rh=function(a){var b;
  220. if(qh&&!(Zg&&wc("9")&&!wc("10")&&aa.SVGElement&&a instanceof aa.SVGElement)&&(b=a.parentElement))return b;b=a.parentNode;return ph(b)?b:null},sh=function(a,b){if(!a||!b)return!1;
  221. if(a.contains&&1==b.nodeType)return a==b||a.contains(b);if("undefined"!=typeof a.compareDocumentPosition)return a==b||!!(a.compareDocumentPosition(b)&16);for(;b&&a!=b;)b=b.parentNode;return b==a},Pg=function(a){return 9==a.nodeType?a:a.ownerDocument||a.document},th=function(a){try{return a.contentWindow||(a.contentDocument?ah(a.contentDocument):null)}catch(b){}return null},uh=function(a,b){if("textContent"in a)a.textContent=b;
  222. 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{hh(a);var c=Pg(a);a.appendChild(c.createTextNode(String(b)))}},vh=function(a){if("outerHTML"in a)return a.outerHTML;
  223. var b=Pg(a).createElement("DIV");b.appendChild(a.cloneNode(!0));return b.innerHTML},yh=function(a){var b;
  224. if((b="A"==a.tagName||"INPUT"==a.tagName||"TEXTAREA"==a.tagName||"SELECT"==a.tagName||"BUTTON"==a.tagName?!a.disabled&&(!wh(a)||xh(a)):wh(a)&&xh(a))&&Zg){var c;!ha(a.getBoundingClientRect)||Zg&&null==a.parentElement?c={height:a.offsetHeight,width:a.offsetWidth}:c=a.getBoundingClientRect();a=null!=c&&0<c.height&&0<c.width}else a=b;return a},wh=function(a){a=a.getAttributeNode("tabindex");
  225. return null!=a&&a.specified},xh=function(a){a=a.tabIndex;
  226. return ga(a)&&0<=a&&32768>a},eh=function(a){if(a&&"number"==typeof a.length){if(ia(a))return"function"==typeof a.item||"string"==typeof a.item;
  227. if(ha(a))return"function"==typeof a.item}return!1},Ah=function(a,b,c,d){if(!b&&!c)return null;
  228. var e=b?b.toUpperCase():null;return zh(a,function(a){return(!e||a.nodeName==e)&&(!c||w(a.className)&&jb(a.className.split(/\s+/),c))},d)},Bh=function(a,b){return Ah(a,null,b,void 0)},zh=function(a,b,c){for(var d=0;a&&(null==c||d<=c);){if(b(a))return a;
  229. a=a.parentNode;d++}return null},Og=function(a){this.o=a||aa.document||window.document},Ch=function(a){a=a.o;
  230. return a.parentWindow||a.defaultView},Eh=function(a,b){if(a in b)return b[a];
  231. var c=Dh+a.charAt(0).toUpperCase()+a.substr(1);if(c in b)return b[c]},Gh=function(a,b){var c;
  232. Fh(a,function(a){c=Eh(a,b);return!!c});
  233. return c},Hh=function(a,b){if("on"+a in b)return a;
  234. var c=Dh+a;return"on"+c in b?c:null},Ih=function(){return!!Gh(["fullscreenEnabled",
  235. "fullScreenEnabled"],window.document)},Jh=function(){return Gh(["fullscreenElement",
  236. "fullScreenElement"],window.document)},Nh=function(a){a=a||{};
  237. this.url=a.url||"";this.urlV9As2=a.url_v9as2||"";this.args=a.args||fc(Kh);this.assets=a.assets||{};this.attrs=a.attrs||fc(Lh);this.params=a.params||fc(Mh);this.minVersion=a.min_version||"8.0.0";this.fallback=a.fallback||null;this.fallbackMessage=a.fallbackMessage||null;this.html5=!!a.html5;this.disable=a.disable||{};this.loaded=!!a.loaded;this.messages=a.messages||{}},Oh=function(){var a=window.navigator.userAgent.match(/Chrome\/([0-9]+)/);
  238. return a?50<=(0,window.parseInt)(a[1],10):!1},Ph=function(a,b){var c=new window.XMLHttpRequest;
  239. c.onreadystatechange=function(){4==c.readyState&&200==c.status&&b(!0)};
  240. c.onerror=function(){b(!1)};
  241. try{c.open("GET",a,!0),c.send()}catch(d){b(!1)}},Vh=function(a){if(a>=Qh.length)Rh();
  242. else{var b=Qh[a],c="chrome-extension://"+b+Sh;0<=Th.indexOf(b)?Ph(c,function(d){d?(window.chrome.cast=window.chrome.cast||{},window.chrome.cast.extensionId=b,Uh(c,Rh)):Vh(a+1)}):Uh(c,function(){Vh(a+1)})}},Uh=function(a,b){var c=window.document.createElement("script");
  243. c.onerror=b;c.src=a;(window.document.head||window.document.documentElement).appendChild(c)},Rh=function(){var a=window.__onGCastApiAvailable;
  244. a&&"function"==typeof a&&a(!1,"No cast extension found")},Wh=function(){if(0<=window.navigator.userAgent.indexOf("CriOS")){var a=window.__gCrWeb&&window.__gCrWeb.message&&window.__gCrWeb.message.invokeOnHost;
  245. if(a){a({command:"cast.sender.init"});return}}window.chrome?(a=window.navigator.userAgent,0<=a.indexOf("Android")&&0<=a.indexOf("Chrome/")&&window.navigator.presentation?(a=Oh()?"50":"",Uh("//www.gstatic.com/eureka/clank"+a+Sh,Rh)):Vh(0)):Rh()},bi=function(a){Zh();
  246. $h.push(a);ai($h)},ci=function(a){var b=r("yt.mdx.remote.debug.handlers_");
  247. pb(b||[],a)},fi=function(a,b){Zh();
  248. var c=$h,d=di(a,String(b));kb(c)?ei(d):(ai(c),F(c,function(a){a(d)}))},Zh=function(){$h||($h=r("yt.mdx.remote.debug.handlers_")||[],q("yt.mdx.remote.debug.handlers_",$h,void 0))},ei=function(a){var b=(gi+1)%50;
  249. gi=b;hi[b]=a;ii||(ii=49==b)},ai=function(a){var b=hi;
  250. if(b[0]){var c=gi,d=ii?c:-1;do{var d=(d+1)%50,e=b[d];F(a,function(a){a(e)})}while(d!=c);
  251. hi=Array(50);gi=-1;ii=!1}},di=function(a,b){var c=(J()-ji)/1E3;
  252. 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("")},ki=function(a){a=a||{};
  253. this.name=a.name||"";this.id=a.id||a.screenId||"";this.token=a.token||a.loungeToken||"";this.uuid=a.uuid||a.dialId||""},li=function(a,b){return!!b&&(a.id==b||a.uuid==b)},mi=function(a,b){return a||b?!a!=!b?!1:a.id==b.id&&a.token==b.token&&a.name==b.name&&a.uuid==b.uuid:!0},ni=function(a){return{name:a.name,
  254. screenId:a.id,loungeToken:a.token,dialId:a.uuid}},oi=function(a){return new ki(a)},qi=function(a){return da(a)?pi(a,oi):[]},ri=function(a){return a?'{name:"'+a.name+'",id:'+a.id.substr(0,6)+"..,token:"+(a.token?".."+a.token.slice(-6):"-")+",uuid:"+(a.uuid?".."+a.uuid.slice(-6):"-")+"}":"null"},si=function(a){return da(a)?"["+pi(a,ri).join(",")+"]":"null"},ui=function(a,b,c){a&&(a.dataset?a.dataset[ti(b)]=c:a.setAttribute("data-"+b,c))},vi=function(a){return a?a.dataset?a.dataset[ti("loaded")]:a.getAttribute("data-loaded"):
  255. null},ti=function(a){return wi[a]||(wi[a]=String(a).replace(/\-([a-z])/g,function(a,c){return c.toUpperCase()}))},zi=function(a){xi(yi,arguments)},Ai=function(a,b){return a in yi?yi[a]:b},Ci=function(a,b){ha(a)&&(a=Bi(a));
  256. return window.setTimeout(a,b)},Di=function(a,b){ha(a)&&(a=Bi(a));
  257. return window.setInterval(a,b)},Ei=function(a){window.clearTimeout(a)},Fi=function(a){window.clearInterval(a)},Bi=function(a){return a&&window.yterr?function(){try{return a.apply(this,arguments)}catch(b){throw Gi(b),b;
  258. }}:a},Gi=function(a,b){var c=r("yt.logging.errors.log");
  259. c?c(a,b,void 0,void 0,void 0):(c=Ai("ERRORS",[]),c.push([a,b,void 0,void 0,void 0]),zi("ERRORS",c))},Ii=function(a){xi(Hi,arguments)},P=function(a,b,c){var d=b||{};
  260. if(a=a in Hi?Hi[a]:c)for(var e in d)a=a.replace(new RegExp("\\$"+e,"gi"),function(){return d[e]});
  261. return a},xi=function(a,b){if(1<b.length){var c=b[0];
  262. a[c]=b[1]}else{var d=b[0];for(c in d)a[c]=d[c]}},Oi=function(a,b,c){var d=Ji();
  263. if(d){var e=d.subscribe(a,function(){if(!Ki||Ki!=e){var d=arguments,k;k=function(){Li[e]&&b.apply(c||window,d)};
  264. try{Mi[a]?k():Ci(k,0)}catch(m){Gi(m)}}},c);
  265. Li[e]=!0;Ni[a]||(Ni[a]=[]);Ni[a].push(e);return e}return 0},Pi=function(a){var b=Ji();
  266. b&&("number"==typeof a?a=[a]:"string"==typeof a&&(a=[(0,window.parseInt)(a,10)]),F(a,function(a){b.unsubscribeByKey(a);delete Li[a]}))},Qi=function(a,b){var c=Ji();
  267. c&&c.publish.apply(c,arguments)},Ri=function(a,b){Mi[a]=!0;
  268. var c=Ji();c&&c.publish.apply(c,arguments);Mi[a]=!1},Si=function(a){Ni[a]&&(a=Ni[a],F(a,function(a){Li[a]&&delete Li[a]}),a.length=0)},Ti=function(a){var b=Ji();
  269. if(b)if(b.clear(a),a)Si(a);else for(var c in Ni)Si(c)},Ji=function(){return r("yt.pubsub.instance_")},Wi=function(){var a=Ui(),b=window.document.getElementById(a),c=b&&vi(b);
  270. c||b&&!c||(b=Vi(a,function(){vi(b)||(ui(b,"loaded","true"),Qi(a),Ci(qa(Ti,a),0))}))},Vi=function(a,b){var c=window.document.createElement("script");
  271. c.id=a;c.onload=function(){b&&(0,window.setTimeout)(b,0)};
  272. c.onreadystatechange=function(){switch(c.readyState){case "loaded":case "complete":c.onload()}};
  273. c.src="https://www.gstatic.com/cv/js/sender/v1/cast_sender.js";var d=window.document.getElementsByTagName("head")[0]||window.document.body;d.insertBefore(c,d.firstChild);return c},Ui=function(){var a=window.document.createElement("a");
  274. Ng(a,"https://www.gstatic.com/cv/js/sender/v1/cast_sender.js");a=a.href.replace(/^[a-zA-Z]+:\/\//,"//");return"js-"+Ua(a)},Xi=function(){},Yi=function(){},Zi=function(a){this.o=a},$i=function(){var a=null;
  275. try{a=window.localStorage||null}catch(b){}this.o=a},aj=function(){var a=null;
  276. try{a=window.sessionStorage||null}catch(b){}this.o=a},bj=function(a){this.o=a},cj=function(a){this.o=a},dj=function(a){this.data=a},ej=function(a){return!p(a)||a instanceof dj?a:new dj(a)},fj=function(a){this.o=a},gj=function(a){var b=a.creation;
  277. a=a.expiration;return!!a&&a<J()||!!b&&b>J()},hj=function(a){this.o=a},ij=function(a,b){var c=[];
  278. Je(b,function(a){var b;try{b=hj.prototype.A.call(this,a,!0)}catch(f){if("Storage: Invalid value was encountered"==f)return;throw f;}p(b)?gj(b)&&c.push(a):c.push(a)},a);
  279. return c},jj=function(a,b){var c=ij(a,b);
  280. F(c,function(a){hj.prototype.remove.call(this,a)},a)},lj=function(){var a=kj;
  281. jj(a,a.o.gc(!0))},nj=function(a,b,c){var d=c&&0<c?c:0;
  282. c=d?J()+1E3*d:0;if((d=d?kj:mj)&&window.JSON){w(b)||(b=JSON.stringify(b,void 0));try{d.set(a,b,c)}catch(e){d.remove(a)}}},oj=function(a){if(!mj&&!kj||!window.JSON)return null;
  283. var b;try{b=mj.get(a)}catch(c){}if(!w(b))try{b=kj.get(a)}catch(c){}if(!w(b))return null;try{b=JSON.parse(b,void 0)}catch(c){}return b},pj=function(a){mj&&mj.remove(a);
  284. kj&&kj.remove(a)},qj=function(a,b){mg(a);
  285. mg(a);return Eg(b,null)},rj=function(a,b){for(var c=a.split(b),d={},e=0,f=c.length;e<f;e++){var k=c[e].split("=");
  286. if(1==k.length&&k[0]||2==k.length){var m=wa(k[0]||""),k=wa(k[1]||"");m in d?da(d[m])?tb(d[m],k):d[m]=[d[m],k]:d[m]=k}}return d},sj=function(a,b){var c=[];
  287. Nb(a,function(a,b){var f=va(b),k;da(a)?k=a:k=[a];F(k,function(a){""==a?c.push(f):c.push(f+"="+va(a))})});
  288. return c.join(b)},tj=function(a){"?"==a.charAt(0)&&(a=a.substr(1));
  289. return rj(a,"&")},uj=function(a){a=a.split(",");
  290. return a=a.map(function(a){return tj(a)})},vj=function(a){return-1!=a.indexOf("?")?(a=(a||"").split("#")[0],a=a.split("?",2),tj(1<a.length?a[1]:a[0])):{}},xj=function(a,b){return wj(a,b||{},!0)},wj=function(a,b,c){var d=a.split("#",2);
  291. a=d[0];var d=1<d.length?"#"+d[1]:"",e=a.split("?",2);a=e[0];var e=tj(e[1]||""),f;for(f in b)if(c||!Xb(e,f))e[f]=b[f];return jf(a,e)+d},yj=function(a){var b;
  292. b||(b=window.location.href);var c=Ye(a)[1]||null,d=$e(a);c&&d?(a=Ye(a),b=Ye(b),a=a[3]==b[3]&&a[1]==b[1]&&a[4]==b[4]):a=d?$e(b)==d&&af(b)==af(a):!0;return a},zj=function(){var a;
  293. a||(a=window.document.location.href);a=Ye(a)[1]||null;return null!==a&&"https"==a},Aj=function(a){switch(a&&"status"in a?a.status:-1){case 200:case 201:case 202:case 203:case 204:case 205:case 206:case 304:return!0;
  294. default:return!1}},Fj=function(a,b,c,d,e,f,k){function m(){4==(l&&"readyState"in l?l.readyState:0)&&b&&Bi(b)(l)}
  295. var l=Bj&&Bj();if(!("open"in l))return null;"onloadend"in l?l.addEventListener("loadend",m,!1):l.onreadystatechange=m;c=(c||"GET").toUpperCase();d=d||"";l.open(c,a,!0);f&&(l.responseType=f);k&&(l.withCredentials=!0);f="POST"==c;if(e=Ej(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},Ej=function(a,b){b=b||{};
  296. var c=yj(a),d;for(d in Gj){var e=Ai(Gj[d]),f;if((f=e)&&!(f=c)){f=d;var k=Ai("CORS_HEADER_WHITELIST")||{},m=$e(a);f=m?(k=k[m])?jb(k,f):!1:!0}f&&(b[d]=e)}return b},Ij=function(a,b){b.method="POST";
  297. b.Jb||(b.Jb={});Hj(a,b)},Jj=function(a,b){var c=Ai("XSRF_FIELD_NAME",void 0),d;
  298. b.headers&&(d=b.headers["Content-Type"]);return!b.ZN&&(!$e(a)||b.withCredentials||$e(a)==window.document.location.hostname)&&"POST"==b.method&&(!d||"application/x-www-form-urlencoded"==d)&&!(b.Jb&&b.Jb[c])},Hj=function(a,b){var c=b.format||"JSON";
  299. b.cO&&(a=window.document.location.protocol+"//"+window.document.location.hostname+(window.document.location.port?":"+window.document.location.port:"")+a);var d=Ai("XSRF_FIELD_NAME",void 0),e=Ai("XSRF_TOKEN",void 0),f=b.Xc;f&&(f[d]&&delete f[d],a=xj(a,f));var k=b.postBody||"",f=b.Jb;Jj(a,b)&&(f||(f={}),f[d]=e);f&&w(k)&&(d=tj(k),ic(d,f),k=b.pr&&"JSON"==b.pr?JSON.stringify(d):gf(d));var m=!1,l,n=Fj(a,function(a){if(!m){m=!0;l&&Ei(l);var d=Aj(a),e=null;if(d||400<=a.status&&500>a.status)e=Kj(c,a,b.Pw);
  300. if(d)a:{switch(c){case "XML":d=0==(0,window.parseInt)(e&&e.return_code,10);break a;case "RAW":d=!0;break a}d=!!e}var e=e||{},f=b.context||aa;d?b.ob&&b.ob.call(f,a,e):b.onError&&b.onError.call(f,a,e);b.$b&&b.$b.call(f,a,e)}},b.method,k,b.headers,b.responseType,b.withCredentials);
  301. b.Sc&&0<b.timeout&&(l=Ci(function(){m||(m=!0,n.abort(),Ei(l),b.Sc.call(b.context||aa,n))},b.timeout));
  302. return n},Kj=function(a,b,c){var d=null;
  303. switch(a){case "JSON":a=b.responseText;b=b.getResponseHeader("Content-Type")||"";a&&0<=b.indexOf("json")&&(d=fe(a));break;case "XML":if(b=(b=b.responseXML)?Lj(b):null)d={},F(b.getElementsByTagName("*"),function(a){d[a.tagName]=Mj(a)})}c&&Nj(d);
  304. return d},Nj=function(a){if(ia(a))for(var b in a)"html_content"==b||ua(b,"_html")?a[b]=qj(ng("HTML that is escaped and sanitized server-side and passed through yt.net.ajax"),a[b]):Nj(a[b])},Lj=function(a){return a?(a=("responseXML"in a?a.responseXML:a).getElementsByTagName("root"))&&0<a.length?a[0]:null:null},Mj=function(a){var b="";
  305. F(a.childNodes,function(a){b+=a.nodeValue});
  306. return b},Oj=function(a){this.C=this.B="";
  307. this.o="/api/lounge";this.A=!0;a=a||window.document.location.href;var b=af(a)||"";b&&(this.C=":"+b);this.B=$e(a)||"";a=pc;0<=a.search("MSIE")&&(a=a.match(/MSIE ([\d.]+)/)[1],0>Ta(a,"10.0")&&(this.A=!1))},Pj=function(a,b,c,d){var e=a.o;
  308. if(p(d)?d:a.A)e="https://"+a.B+a.C+a.o;return jf(e+b,c||{})},Qj=function(a,b,c,d,e){a={format:"JSON",
  309. method:"POST",context:a,timeout:5E3,withCredentials:!1,ob:qa(a.F,d,!0),onError:qa(a.D,e),Sc:qa(a.G,e)};c&&(a.Jb=c,a.headers={"Content-Type":"application/x-www-form-urlencoded"});return Hj(b,a)},Rj=function(a){this.o=this.name=this.id="";
  310. this.status="UNKNOWN";a&&(this.id=a.id||"",this.name=a.name||"",this.o=a.activityId||"",this.status=a.status||"UNKNOWN")},Sj=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(a){var b=16*Math.random()|0;
  311. return("x"==a?b:b&3|8).toString(16)})},Tj=function(a){return pi(a,function(a){return{key:a.id,
  312. name:a.name}})},Uj=function(a){return pi(a,function(a){return new Rj(a)})},Vj=function(a,b){return eb(a,function(a){return a.id==b})},Wj=function(a,b){return eb(a,function(a){return a||b?!a!=!b?!1:a.id==b.id:!0})},Xj=function(a,b){return eb(a,function(a){return li(a,b)})},Yj=function(){G.call(this);
  313. this.ca=new De;H(this,this.ca)},Zj=function(a){Yj.call(this);
  314. this.F=a;this.screens=[]},ak=function(a,b){var c=a.get(b.uuid)||a.get(b.id);
  315. if(c){var d=c.name;c.id=b.id||c.id;c.name=b.name;c.token=b.token;c.uuid=b.uuid||c.uuid;return c.name!=d}a.screens.push(b);return!0},bk=function(a,b){var c=a.screens.length!=b.length;
  316. a.screens=be(a.screens,function(a){return!!Wj(b,a)});
  317. for(var d=0,e=b.length;d<e;d++)c=ak(a,b[d])||c;return c},ck=function(a,b){var c=a.screens.length;
  318. a.screens=be(a.screens,function(a){return!(a||b?!a!=!b?0:a.id==b.id:1)});
  319. return a.screens.length<c},dk=function(a,b,c,d){Yj.call(this);
  320. this.G=a;this.F=b;this.C=c;this.D=d;this.B=0;this.o=null;this.A=window.NaN},ek=function(a,b){this.A=a;
  321. this.o=b+"::"},fk=function(a){var b=new $i;
  322. return b.isAvailable()?a?new ek(b,a):b:null},lk=function(a){this.o=new Le;
  323. a&&gk(this,a)},mk=function(a){var b=typeof a;
  324. return"object"==b&&a||"function"==b?"o"+ma(a):b.substr(0,1)+a},nk=function(a,b){a.o.set(mk(b),b)},gk=function(a,b){for(var c=Re(b),d=c.length,e=0;e<d;e++)nk(a,c[e])},ok=function(a,b){var c=Qe(b);
  325. if(a.fb()>c)return!1;!(b instanceof lk)&&5<c&&(b=new lk(b));return Ve(a,function(a){var c=b;return c.contains&&"function"==typeof c.contains?c.contains(a):c.Ue&&"function"==typeof c.Ue?c.Ue(a):ea(c)||w(c)?jb(c,a):Sb(c,a)})},qk=function(a){this.app=this.name=this.id="";
  326. this.type="REMOTE_CONTROL";this.avatar=this.username="";this.capabilities=new lk;this.experiments=new lk;this.theme="u";if(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";var b=a.capabilities||"";this.capabilities.clear();gk(this.capabilities,be(b.split(","),qa(Tb,pk)));a=a.experiments||"";this.experiments.clear();gk(this.experiments,a.split(","))}},rk=function(a){this.o=a||
  327. {cookie:""}},tk=function(a){a=(a.o.cookie||"").split(sk);
  328. 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}},zk=function(){var a=uk(),b=vk();
  329. jb(a,b);wk()&&Gb(a,b);a=xk(a);if(kb(a))try{yk.remove("remote_sid","/","youtube.com")}catch(d){}else try{var c=a.join(",");yk.set("remote_sid",c,-1,"/","youtube.com")}catch(d){}},uk=function(){var a=oj("yt-remote-connected-devices")||[];
  330. Bb(a);return a},xk=function(a){if(kb(a))return[];
  331. var b=a[0].indexOf("#"),c=-1==b?a[0]:a[0].substring(0,b);return pi(a,function(a,b){return 0==b?a:a.substring(c.length)})},Ak=function(a){nj("yt-remote-connected-devices",a,86400)},vk=function(){if(Bk)return Bk;
  332. var a=oj("yt-remote-device-id");a||(a=Sj(),nj("yt-remote-device-id",a,31536E3));for(var b=uk(),c=1,d=a;jb(b,d);)c++,d=a+"#"+c;return Bk=d},Ck=function(){return oj("yt-remote-session-browser-channel")},wk=function(){return oj("yt-remote-session-screen-id")},Fk=function(a){5<a.length&&(a=a.slice(a.length-5));
  333. var b=pi(Dk(),function(a){return a.loungeToken}),c=pi(a,function(a){return a.loungeToken});
  334. Ue(c,function(a){return!jb(b,a)})&&Ek();
  335. nj("yt-remote-local-screens",a,31536E3)},Dk=function(){return oj("yt-remote-local-screens")||[]},Ek=function(){nj("yt-remote-lounge-token-expiration",!0,86400)},Gk=function(a){nj("yt-remote-online-screens",a,60)},Hk=function(){return oj("yt-remote-online-dial-devices")||[]},Ik=function(a,b){nj("yt-remote-session-browser-channel",a);
  336. nj("yt-remote-session-screen-id",b);var c=uk(),d=vk();jb(c,d)||c.push(d);Ak(c);zk()},Jk=function(a){a||(pj("yt-remote-session-screen-id"),pj("yt-remote-session-video-id"));
  337. zk();a=uk();pb(a,vk());Ak(a)},Lk=function(){if(!Kk){var a=fk();
  338. a&&(Kk=new bj(a))}return Kk?!!Kk.get("yt-remote-use-staging-server"):!1},Nk=function(a){Zj.call(this,"LocalScreenService");
  339. this.A=a;this.o=window.NaN;Mk(this);this.info("Initializing with "+si(this.screens))},Ok=function(a){if(a.screens.length){var b=pi(a.screens,function(a){return a.id}),c=Pj(a.A,"/pairing/get_lounge_token_batch");
  340. Qj(a.A,c,{screen_ids:b.join(",")},y(a.Jx,a),y(a.Ix,a))}},Mk=function(a){var b=qi(Dk()),b=be(b,function(a){return!a.uuid});
  341. return bk(a,b)},Pk=function(a,b){Fk(pi(a.screens,ni));
  342. b&&Ek()},Rk=function(a,b){Yj.call(this);
  343. this.D=b;for(var c=oj("yt-remote-online-screen-ids")||"",c=c?c.split(","):[],d={},e=this.D(),f=0,k=e.length;f<k;++f){var m=e[f].id;d[m]=jb(c,m)}this.o=d;this.F=a;this.B=this.C=window.NaN;this.A=null;Qk("Initialized with "+he(this.o))},Sk=function(a,b,c){var d=Pj(a.F,"/pairing/get_screen_availability");
  344. Qj(a.F,d,{lounge_token:b.token},y(function(a){a=a.screens||[];for(var d=0,k=a.length;d<k;++d)if(a[d].loungeToken==b.token){c("online"==a[d].status);return}c(!1)},a),y(function(){c(!1)},a))},Uk=function(a,b){var c;
  345. a:if(Rb(b)!=Rb(a.o))c=!1;else{c=Vb(b);for(var d=0,e=c.length;d<e;++d)if(!a.o[c[d]]){c=!1;break a}c=!0}c||(Qk("Updated online screens: "+he(a.o)),a.o=b,a.S("screenChange"));Tk(a)},Vk=function(a){(0,window.isNaN)(a.B)||Ei(a.B);
  346. a.B=Ci(y(a.Dm,a),0<a.C&&a.C<J()?2E4:1E4)},Qk=function(a){fi("OnlineScreenService",a)},Wk=function(a){var b={};
  347. F(a.D(),function(a){a.token?b[a.token]=a.id:this.bb("Requesting availability of screen w/o lounge token.")});
  348. return b},Tk=function(a){var b=Vb(Ob(a.o,function(a){return a}));
  349. Bb(b);b.length?nj("yt-remote-online-screen-ids",b.join(","),60):pj("yt-remote-online-screen-ids");a=be(a.D(),function(a){return!!this.o[a.id]},a);
  350. Gk(pi(a,ni))},Yk=function(a){Zj.call(this,"ScreenService");
  351. this.D=a;this.o=this.A=null;this.B=[];this.C={};Xk(this)},al=function(a,b,c,d,e,f){a.info("getAutomaticScreenByIds "+c+" / "+b);
  352. c||(c=a.C[b]);var k=a.uc();if(k=(c?Xj(k,c):null)||Xj(k,b)){k.uuid=b;var m=Zk(a,k);Sk(a.o,m,function(a){e(a?m:null)})}else c?$k(a,c,y(function(a){var f=Zk(this,new ki({name:d,
  353. screenId:c,loungeToken:a,dialId:b||""}));Sk(this.o,f,function(a){e(a?f:null)})},a),f):e(null)},bl=function(a,b){for(var c=0,d=a.screens.length;c<d;++c)if(a.screens[c].name==b)return a.screens[c];
  354. return null},$k=function(a,b,c,d){a.info("requestLoungeToken_ for "+b);
  355. var e={Jb:{screen_ids:b},method:"POST",context:a,ob:function(a,e){var m=e&&e.screens||[];m[0]&&m[0].screenId==b?c(m[0].loungeToken):d(Error("Missing lounge token in token response"))},
  356. onError:function(){d(Error("Request screen lounge token failed"))}};
  357. Hj(Pj(a.D,"/pairing/get_lounge_token_batch"),e)},cl=function(a){a.screens=a.A.uc();
  358. var b=a.C,c={},d;for(d in b)c[b[d]]=d;b=0;for(d=a.screens.length;b<d;++b){var e=a.screens[b];e.uuid=c[e.id]||""}a.info("Updated manual screens: "+si(a.screens))},Xk=function(a){dl(a);
  359. a.A=new Nk(a.D);a.A.subscribe("screenChange",y(a.Ux,a));cl(a);a.B=qi(oj("yt-remote-automatic-screen-cache")||[]);dl(a);a.info("Initializing automatic screens: "+si(a.B));a.o=new Rk(a.D,y(a.uc,a,!0));a.o.subscribe("screenChange",y(function(){this.S("onlineScreenChange")},a))},Zk=function(a,b){var c=a.get(b.id);
  360. c?(c.uuid=b.uuid,b=c):((c=Xj(a.B,b.uuid))?(c.id=b.id,c.token=b.token,b=c):a.B.push(b),nj("yt-remote-automatic-screen-cache",pi(a.B,ni)));dl(a);a.C[b.uuid]=b.id;nj("yt-remote-device-id-map",a.C,31536E3);return b},dl=function(a){a.C=oj("yt-remote-device-id-map")||{}},el=function(a,b,c){Yj.call(this);
  361. this.L=c;this.I=a;this.A=b;this.B=null},fl=function(a,b){fi(a.L,b)},hl=function(a,b){el.call(this,a,b,"CastSession");
  362. this.o=null;this.D=0;this.C=null;this.G=y(this.yE,this);this.F=y(this.mD,this);this.D=Ci(y(function(){gl(this,null)},this),12E4)},jl=function(a){var b=a.C.videoId||a.C.videoIds[a.C.index];
  363. b&&il(a,"flingVideo",{videoId:b,currentTime:a.C.currentTime||0});a.C=null},il=function(a,b,c){a.info("sendYoutubeMessage_: "+b+" "+he(c));
  364. var d={};d.type=b;c&&(d.data=c);a.o?a.o.sendMessage("urn:x-cast:com.google.youtube.mdx",d,v,y(function(){fl(this,"Failed to send message: "+b+".")},a)):fl(a,"Sending yt message without session: "+he(d))},gl=function(a,b){Ei(a.D);
  365. if(b){if(a.info("onConnectedScreenId_: Received screenId: "+b),!a.B||a.B.id!=b){var c=y(a.jj,a),d=y(a.qc,a);a.Xo(b,c,d,5)}}else a.qc(Error("Waiting for session status timed out."))},kl=function(a,b){el.call(this,a,b,"DialSession");
  366. this.D=this.H=null;this.J="";this.C=null;this.G=v;this.F=window.NaN;this.K=y(this.BE,this);this.o=v},ll=function(a){a.o=a.I.ys(a.J,a.A.label,a.A.friendlyName,y(function(a){this.o=v;
  367. this.jj(a)},a),y(function(a){this.o=v;
  368. this.qc(a)},a))},ml=function(a){var b={};
  369. b.pairingCode=a.J;if(a.C){var c=a.C.index||0,d=a.C.currentTime||0;b.v=a.C.videoId||a.C.videoIds[c];b.t=d}Lk()&&(b.env_useStageMdx=1);return gf(b)},nl=function(a,b){el.call(this,a,b,"ManualSession");
  370. this.o=Ci(y(this.Yf,this,null),150)},ol=function(a){Yj.call(this);
  371. this.A=a;this.o=null;this.D=!1;this.B=[];this.C=y(this.hC,this)},pl=function(a,b){return b?eb(a.B,function(a){return li(b,a.label)},a):null},ql=function(a){fi("Controller",a)},rl=function(a){window.chrome&&window.chrome.cast&&window.chrome.cast.logMessage&&window.chrome.cast.logMessage(a)},sl=function(a){return a.D||!!a.B.length||!!a.o},tl=function(a,b,c){Lb(a.o);
  372. (a.o=b)?(c?a.S("yt-remote-cast2-receiver-resumed",b.A):a.S("yt-remote-cast2-receiver-selected",b.A),b.subscribe("sessionScreen",y(a.Yq,a,b)),b.B?a.S("yt-remote-cast2-session-change",b.B):c&&a.o.Yf(null)):a.S("yt-remote-cast2-session-change",null)},ul=function(a){var b=a.A.xs(),c=a.o&&a.o.A;
  373. a=pi(b,function(a){c&&li(a,c.label)&&(c=null);var b=a.uuid?a.uuid:a.id,f=pl(this,a);f?(f.label=b,f.friendlyName=a.name):(f=new window.chrome.cast.Receiver(b,a.name),f.receiverType=window.chrome.cast.ReceiverType.CUSTOM);return f},a);
  374. c&&(c.receiverType!=window.chrome.cast.ReceiverType.CUSTOM&&(c=new window.chrome.cast.Receiver(c.label,c.friendlyName),c.receiverType=window.chrome.cast.ReceiverType.CUSTOM),a.push(c));return a},Fl=function(a,b,c,d){vl()?xl(b)&&(zl(!0),window.chrome&&window.chrome.cast&&window.chrome.cast.isAvailable?Bl(a,c):(window.__onGCastApiAvailable=function(b,d){b?Bl(a,c):(Cl("Failed to load cast API: "+d),Dl(!1),zl(!1),pj("yt-remote-cast-available"),pj("yt-remote-cast-receiver"),El(),c(!1))},d?window.spf?window.spf.script.load("https://www.gstatic.com/cv/js/sender/v1/cast_sender.js",
  375. "",void 0):Wi():Wh())):wl("Cannot initialize because not running Chrome")},El=function(){wl("dispose");
  376. var a=Gl();a&&a.dispose();Hl=null;q("yt.mdx.remote.cloudview.instance_",null,void 0);Il(!1);Pi(Jl);Jl.length=0},Kl=function(){return!!oj("yt-remote-cast-installed")},Ll=function(){var a=oj("yt-remote-cast-receiver");
  377. return a?Ja(a.friendlyName):null},Ml=function(){wl("clearCurrentReciever");
  378. pj("yt-remote-cast-receiver")},Nl=function(){return Kl()?Gl()?Hl.getCastSession():(Cl("getCastSelector: Cast is not initialized."),null):(Cl("getCastSelector: Cast API is not installed!"),null)},Pl=function(){Kl()?Gl()?Ol()?(wl("Requesting cast selector."),Hl.requestSession()):(wl("Wait for cast API to be ready to request the session."),Jl.push(Oi("yt-remote-cast2-api-ready",Pl))):Cl("requestCastSelector: Cast is not initialized."):Cl("requestCastSelector: Cast API is not installed!")},Ql=function(a){Ol()?
  379. Gl().setLaunchParams(a):Cl("setLaunchParams called before ready.")},Rl=function(a,b){Ol()?Gl().setConnectedScreenStatus(a,b):Cl("setConnectedScreenStatus called before ready.")},vl=function(){var a=0<=pc.search(/\ (CrMo|Chrome|CriOS)\//);
  380. return Sl||a},Tl=function(a,b){Hl.init(a,b)},xl=function(a){var b=!1;
  381. if(!Hl){var c=r("yt.mdx.remote.cloudview.instance_");c||(c=new ol(a),c.subscribe("yt-remote-cast2-availability-change",function(a){nj("yt-remote-cast-available",a);Qi("yt-remote-cast2-availability-change",a)}),c.subscribe("yt-remote-cast2-receiver-selected",function(a){wl("onReceiverSelected: "+a.friendlyName);
  382. nj("yt-remote-cast-receiver",a);Qi("yt-remote-cast2-receiver-selected",a)}),c.subscribe("yt-remote-cast2-receiver-resumed",function(a){wl("onReceiverResumed: "+a.friendlyName);
  383. nj("yt-remote-cast-receiver",a)}),c.subscribe("yt-remote-cast2-session-change",function(a){wl("onSessionChange: "+ri(a));
  384. a||pj("yt-remote-cast-receiver");Qi("yt-remote-cast2-session-change",a)}),q("yt.mdx.remote.cloudview.instance_",c,void 0),b=!0);
  385. Hl=c}wl("cloudview.createSingleton_: "+b);return b},Gl=function(){Hl||(Hl=r("yt.mdx.remote.cloudview.instance_"));
  386. return Hl},Bl=function(a,b){Dl(!0);
  387. zl(!1);Tl(a,function(a){a?(Il(!0),Qi("yt-remote-cast2-api-ready")):(Cl("Failed to initialize cast API."),Dl(!1),pj("yt-remote-cast-available"),pj("yt-remote-cast-receiver"),El());b(a)})},wl=function(a){fi("cloudview",a)},Cl=function(a){fi("cloudview",a)},Dl=function(a){wl("setCastInstalled_ "+a);
  388. nj("yt-remote-cast-installed",a)},Ol=function(){return!!r("yt.mdx.remote.cloudview.apiReady_")},Il=function(a){wl("setApiReady_ "+a);
  389. q("yt.mdx.remote.cloudview.apiReady_",a,void 0)},zl=function(a){q("yt.mdx.remote.cloudview.initializing_",a,void 0)},Ul=function(a,b){this.action=a;
  390. this.params=b||null},Wl=function(a){this.type="";
  391. 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 Vl||(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"==
  392. this.type?b=a.fromElement:"mouseout"==this.type&&(b=a.toElement);this.relatedTarget=b;this.clientX=void 0!=a.clientX?a.clientX:a.pageX;this.clientY=void 0!=a.clientY?a.clientY:a.pageY;this.keyCode=a.keyCode?a.keyCode:a.which;this.charCode=a.charCode||("keypress"==this.type?this.keyCode:0);this.altKey=a.altKey;this.ctrlKey=a.ctrlKey;this.shiftKey=a.shiftKey;this.o=a.pageX;this.A=a.pageY}},Xl=function(a){if(window.document.body&&window.document.documentElement){var b=window.document.body.scrollTop+
  393. window.document.documentElement.scrollTop;
  394. a.o=a.clientX+(window.document.body.scrollLeft+window.document.documentElement.scrollLeft);a.A=a.clientY+b}},Zl=function(a,b,c,d){a.addEventListener&&("mouseenter"!=b||"onmouseenter"in window.document?"mouseleave"!=b||"onmouseenter"in window.document?"mousewheel"==b&&"MozBoxSizing"in window.document.documentElement.style&&(b="MozMousePixelScroll"):b="mouseout":b="mouseover");
  395. return Yb(Yl,function(e){return e[0]==a&&e[1]==b&&e[2]==c&&e[4]==!!d})},am=function(a,b,c,d){if(!a||!a.addEventListener&&!a.attachEvent)return"";
  396. d=!!d;var e=Zl(a,b,c,d);if(e)return e;var e=++$l.count+"",f=!("mouseenter"!=b&&"mouseleave"!=b||!a.addEventListener||"onmouseenter"in window.document),k;k=f?function(d){d=new Wl(d);if(!zh(d.relatedTarget,function(b){return b==a}))return d.currentTarget=a,d.type=b,c.call(a,d)}:function(b){b=new Wl(b);
  397. b.currentTarget=a;return c.call(a,b)};
  398. k=Bi(k);a.addEventListener?("mouseenter"==b&&f?b="mouseover":"mouseleave"==b&&f?b="mouseout":"mousewheel"==b&&"MozBoxSizing"in window.document.documentElement.style&&(b="MozMousePixelScroll"),a.addEventListener(b,k,d)):a.attachEvent("on"+b,k);Yl[e]=[a,b,c,k,d];return e},cm=function(a,b,c){var d;
  399. return d=am(a,b,function(){bm(d);c.apply(a,arguments)},void 0)},em=function(a,b){return dm(a,b,function(a){return $d(a,"iv-card-poll-choice-input")})},dm=function(a,b,c){var d=a||window.document;
  400. return am(d,"change",function(a){var f=zh(a.target,function(a){return a===d||c(a)});
  401. f&&f!==d&&!f.disabled&&(a.currentTarget=f,b.call(f,a))})},bm=function(a){a&&("string"==typeof a&&(a=[a]),F(a,function(a){if(a in Yl){var c=Yl[a],d=c[0],e=c[1],f=c[3],c=c[4];
  402. d.removeEventListener?d.removeEventListener(e,f,c):d.detachEvent&&d.detachEvent("on"+e,f);delete Yl[a]}}))},fm=function(a){for(var b in Yl)Yl[b][0]==a&&bm(b)},gm=function(a){a=a||window.event;
  403. a=a.target||a.srcElement;3==a.nodeType&&(a=a.parentNode);return a},hm=function(a){a=a||window.event;
  404. return a.path&&a.path.length?a.path[0]:gm(a)},im=function(a){a=a||window.event;
  405. var b=a.relatedTarget;b||("mouseover"==a.type?b=a.fromElement:"mouseout"==a.type&&(b=a.toElement));return b},jm=function(a){a=a||window.event;
  406. var b=a.pageX,c=a.pageY;window.document.body&&window.document.documentElement&&(b||(b=a.clientX+window.document.body.scrollLeft+window.document.documentElement.scrollLeft),c||(c=a.clientY+window.document.body.scrollTop+window.document.documentElement.scrollTop));return new te(b,c)},km=function(a){a=a||window.event;
  407. a.returnValue=!1;a.preventDefault&&a.preventDefault()},lm=function(a){a=a||window.event;
  408. return!1===a.returnValue||a.Np&&a.Np()},mm=function(a){a=a||window.event;
  409. return a.keyCode?a.keyCode:a.which},nm=function(){if(!("cast"in window))return!1;
  410. var a=window.cast||{};return"ActivityStatus"in a&&"Api"in a&&"LaunchRequest"in a&&"Receiver"in a},om=function(a){fi("CAST",a)},qm=function(a){var b=pm();
  411. b&&b.logMessage&&b.logMessage(a)},sm=function(a){if(a.event.source==window&&a.event.data&&"CastApi"==a.event.data.source&&"Hello"==a.event.data.event)for(;rm.length;)rm.shift()()},xm=function(){if(!r("yt.mdx.remote.castv2_")&&!tm&&(kb(um)&&tb(um,Hk()),nm())){var a=pm();
  412. a?(a.removeReceiverListener("YouTube",vm),a.addReceiverListener("YouTube",vm),om("API initialized in the other binary")):(a=new window.cast.Api,wm(a),a.addReceiverListener("YouTube",vm),a.setReloadTabRequestHandler&&a.setReloadTabRequestHandler(function(){Ci(function(){window.location.reload(!0)},1E3)}),bi(qm),om("API initialized"));
  413. tm=!0}},ym=function(){var a=pm();
  414. a&&(om("API disposed"),ci(qm),a.setReloadTabRequestHandler&&a.setReloadTabRequestHandler(v),a.removeReceiverListener("YouTube",vm),wm(null));tm=!1;rm=null;(a=Zl(window,"message",sm,!1))&&bm(a)},zm=function(a){var b=db(um,function(b){return b.id==a.id});
  415. 0<=b&&(um[b]={id:a.id,name:a.name,activityId:a.o,status:a.status})},vm=function(a){a.length&&om("Updating receivers: "+he(a));
  416. Am(a);Qi("yt-remote-cast-device-list-update");F(Bm(),function(a){Cm(a.id)});
  417. F(a,function(a){if(a.isTabProjected){var c=Dm(a.id);om("Detected device: "+c.id+" is tab projected. Firing DEVICE_TAB_PROJECTED event.");Ci(function(){Qi("yt-remote-cast-device-tab-projected",c.id)},1E3)}})},Fm=function(a,b){om("Updating "+a+" activity status: "+he(b));
  418. var c=Dm(a);c?(b.activityId&&(c.o=b.activityId),c.status="running"==b.status?"RUNNING":"stopped"==b.status?"STOPPED":"error"==b.status?"ERROR":"UNKNOWN","RUNNING"!=c.status&&(c.o=""),zm(c),Qi("yt-remote-cast-device-status-update",c)):om("Device not found")},Bm=function(){xm();
  419. return Uj(um)},Am=function(a){a=pi(a,function(a){var c={id:a.id,
  420. name:Ja(a.name)};if(a=Dm(a.id))c.activityId=a.o,c.status=a.status;return c});
  421. lb(um);tb(um,a)},Dm=function(a){var b=Bm();
  422. return eb(b,function(b){return b.id==a})||null},Cm=function(a){var b=Dm(a),c=pm();
  423. c&&b&&b.o&&c.getActivityStatus(b.o,function(b){"error"==b.status&&(b.status="stopped");Fm(a,b)})},Gm=function(a){xm();
  424. var b=Dm(a),c=pm();c&&b&&b.o?(om("Stopping cast activity"),c.stopActivity(b.o,qa(Fm,a))):om("Dropping cast activity stop")},pm=function(){return r("yt.mdx.remote.castapi.api_")},wm=function(a){q("yt.mdx.remote.castapi.api_",a,void 0)},Hm=function(){},Im=function(){this.o=J()},Jm=function(a,b){this.A=new ge(a);
  425. this.o=b?fe:ee},Km=function(a){this.A=0;
  426. this.B=a||100;this.o=[]},Lm=function(a,b){if(b>=a.o.length)throw Error("Out of bounds exception");
  427. return a.o.length<a.B?b:(a.A+Number(b))%a.B},Mm=function(a,b,c){G.call(this);
  428. this.C=null!=c?y(a,c):a;this.B=b;this.A=y(this.HC,this);this.o=[]},Nm=function(a){a.Ze=Vd(a.A,a.B);
  429. a.C.apply(null,a.o)},Om=function(a){G.call(this);
  430. this.C=a;this.A={}},Qm=function(a,b,c,d,e){Pm(a,b,c,d,!1,e)},Pm=function(a,b,c,d,e,f){da(c)||(c&&(Rm[0]=c.toString()),c=Rm);
  431. for(var k=0;k<c.length;k++){var m=Oc(b,c[k],d||a.handleEvent,e||!1,f||a.C||a);if(!m)break;a.A[m.key]=m}return a},Tm=function(a,b,c,d){Sm(a,b,c,d,void 0)},Um=function(a,b,c,d,e){Sm(a,b,c,d,!1,e)},Sm=function(a,b,c,d,e,f){if(da(c))for(var k=0;k<c.length;k++)Sm(a,b,c[k],d,e,f);
  432. else(b=Yc(b,c,d||a.handleEvent,e,f||a.C||a))&&(a.A[b.key]=b)},Vm=function(a){switch(a){case 0:return"No Error";
  433. 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"}},Wm=function(){},Ym=function(a){var b;
  434. (b=a.o)||(b={},Xm(a)&&(b[0]=!0,b[1]=!0),b=a.o=b);return b},Zm=function(){},$m=function(a){return(a=Xm(a))?new window.ActiveXObject(a):new window.XMLHttpRequest},Xm=function(a){if(!a.A&&"undefined"==typeof window.XMLHttpRequest&&"undefined"!=typeof window.ActiveXObject){for(var b=["MSXML2.XMLHTTP.6.0",
  435. "MSXML2.XMLHTTP.3.0","MSXML2.XMLHTTP","Microsoft.XMLHTTP"],c=0;c<b.length;c++){var d=b[c];try{return new window.ActiveXObject(d),a.A=d}catch(e){}}throw Error("Could not create ActiveXObject. ActiveX might be disabled, or MSXML might not be installed");}return a.A},an=function(a,b,c,d,e){this.o=a;
  436. this.B=c;this.H=d;this.G=e||1;this.D=45E3;this.C=new Om(this);this.A=new Td;Ud(this.A,250)},cn=function(a,b,c){a.Jf=1;
  437. a.de=Ef(b.clone());a.ef=c;a.F=!0;bn(a,null)},dn=function(a,b,c,d,e){a.Jf=1;
  438. a.de=Ef(b.clone());a.ef=null;a.F=c;e&&(a.Er=!1);bn(a,d)},bn=function(a,b){a.qh=J();
  439. en(a);a.re=a.de.clone();Df(a.re,"t",a.G);a.Fh=0;a.Ab=a.o.Qk(a.o.yh()?b:null);0<a.Al&&(a.nj=new Mm(y(a.ls,a,a.Ab),a.Al));a.C.O(a.Ab,"readystatechange",a.yD);var c=a.$e?fc(a.$e):{};a.ef?(a.Hj="POST",c["Content-Type"]="application/x-www-form-urlencoded",a.Ab.send(a.re,a.Hj,a.ef,c)):(a.Hj="GET",a.Er&&!zc&&(c.Connection="close"),a.Ab.send(a.re,a.Hj,null,c));a.o.Rc(1)},nn=function(a,b,c){for(var d=!0;!a.Qe&&a.Fh<c.length;){var e=fn(a,c);
  440. if(e==gn){4==b&&(a.af=4,hn(),d=!1);break}else if(e==jn){a.af=4;hn();d=!1;break}else kn(a,e)}4==b&&0==c.length&&(a.af=1,hn(),d=!1);a.Vc=a.Vc&&d;d||(ln(a),mn(a))},fn=function(a,b){var c=a.Fh,d=b.indexOf("\n",c);
  441. if(-1==d)return gn;c=Number(b.substring(c,d));if((0,window.isNaN)(c))return jn;d+=1;if(d+c>b.length)return gn;var e=b.substr(d,c);a.Fh=d+c;return e},qn=function(a,b){a.qh=J();
  442. en(a);var c=b?window.location.hostname:"";a.re=a.de.clone();Bf(a.re,"DOMAIN",c);Bf(a.re,"t",a.G);try{a.Wc=new window.ActiveXObject("htmlfile")}catch(n){ln(a);a.af=7;hn();mn(a);return}var d="<html><body>";if(b){for(var e="",f=0;f<c.length;f++){var k=c.charAt(f);if("<"==k)e+="\\x3c";else if(">"==k)e+="\\x3e";else{if(k in on)k=on[k];else if(k in pn)k=on[k]=pn[k];else{var m=k,l=k.charCodeAt(0);if(31<l&&127>l)m=k;else{if(256>l){if(m="\\x",16>l||256<l)m+="0"}else m="\\u",4096>l&&(m+="0");m+=l.toString(16).toUpperCase()}k=
  443. on[k]=m}e+=k}}d+='<script>document.domain="'+e+'"\x3c/script>'}d+="</body></html>";c=qj(ng("b/12014412"),d);a.Wc.open();a.Wc.write(Dg(c));a.Wc.close();a.Wc.parentWindow.m=y(a.QC,a);a.Wc.parentWindow.d=y(a.ir,a,!0);a.Wc.parentWindow.rpcClose=y(a.ir,a,!1);c=a.Wc.createElement("DIV");a.Wc.parentWindow.document.body.appendChild(c);d=wg(a.re.toString());d=Ea(tg(d));d=qj(ng("b/12014412"),'<iframe src="'+d+'"></iframe>');c.innerHTML=Dg(d);a.o.Rc(1)},en=function(a){a.cn=J()+a.D;
  444. rn(a,a.D)},rn=function(a,b){if(null!=a.rg)throw Error("WatchDog timer not null");
  445. a.rg=sn(y(a.fD,a),b)},tn=function(a){a.rg&&(aa.clearTimeout(a.rg),a.rg=null)},mn=function(a){a.o.cp()||a.Qe||a.o.ij(a)},ln=function(a){tn(a);
  446. Lb(a.nj);a.nj=null;a.A.stop();a.C.removeAll();if(a.Ab){var b=a.Ab;a.Ab=null;un(b);b.dispose()}a.Wc&&(a.Wc=null)},kn=function(a,b){try{a.o.Tq(a,b),a.o.Rc(4)}catch(c){}},wn=function(a,b,c,d,e){if(0==d)c(!1);
  447. else{var f=e||0;d--;vn(a,b,function(e){e?c(!0):aa.setTimeout(function(){wn(a,b,c,d,f)},f)})}},vn=function(a,b,c){var d=new window.Image;
  448. d.onload=function(){try{xn(d),c(!0)}catch(a){}};
  449. d.onerror=function(){try{xn(d),c(!1)}catch(a){}};
  450. d.onabort=function(){try{xn(d),c(!1)}catch(a){}};
  451. d.ontimeout=function(){try{xn(d),c(!1)}catch(a){}};
  452. aa.setTimeout(function(){if(d.ontimeout)d.ontimeout()},b);
  453. d.src=a},xn=function(a){a.onload=null;
  454. a.onerror=null;a.onabort=null;a.ontimeout=null},yn=function(a){this.o=a;
  455. this.A=new Jm(null,!0)},An=function(a){var b=zn(a.o,a.Mg,"/mail/images/cleardot.gif");
  456. Ef(b);wn(b.toString(),5E3,y(a.Fw,a),3,2E3);a.Rc(1)},Cn=function(a){var b=a.o.I;
  457. if(null!=b)hn(),b?(hn(),Bn(a.o,a,!1)):(hn(),Bn(a.o,a,!0));else if(a.sc=new an(a,0,void 0,void 0,void 0),a.sc.$e=a.xl,b=a.o,b=zn(b,b.yh()?a.Zg:null,a.zl),hn(),!Zg||yc(10))Df(b,"TYPE","xmlhttp"),dn(a.sc,b,!1,a.Zg,!1);else{Df(b,"TYPE","html");var c=a.sc;a=!!a.Zg;c.Jf=3;c.de=Ef(b.clone());qn(c,a)}},Dn=function(a){I.call(this);
  458. this.headers=new Le;this.L=a||null;this.B=!1;this.K=this.o=null;this.ca=this.H="";this.A=0;this.F="";this.C=this.P=this.G=this.N=!1;this.D=0;this.I=null;this.Y="";this.J=this.V=!1},En=function(a,b){a.D=Math.max(0,b)},Fn=function(a){return Zg&&wc(9)&&ga(a.timeout)&&p(a.ontimeout)},Gn=function(a){return"content-type"==a.toLowerCase()},Jn=function(a,b){a.B=!1;
  459. a.o&&(a.C=!0,a.o.abort(),a.C=!1);a.F=b;a.A=5;Hn(a);In(a)},Hn=function(a){a.N||(a.N=!0,a.Z("complete"),a.Z("error"))},un=function(a,b){a.o&&a.B&&(Kn(a,"Aborting"),a.B=!1,a.C=!0,a.o.abort(),a.C=!1,a.A=b||7,a.Z("complete"),a.Z("abort"),In(a))},On=function(a){if(a.B&&"undefined"!=typeof Ln)if(a.K[1]&&4==Mn(a)&&2==a.getStatus())Kn(a,"Local request error detected and ignored");
  460. else if(a.G&&4==Mn(a))Vd(a.Pq,0,a);else if(a.Z("readystatechange"),4==Mn(a)){Kn(a,"Request complete");a.B=!1;try{var b=a.getStatus(),c;a:switch(b){case 200:case 201:case 202:case 204:case 206:case 304:case 1223:c=!0;break a;default:c=!1}var d;if(!(d=c)){var e;if(e=0===b){var f=Ye(String(a.H))[1]||null;if(!f&&aa.self&&aa.self.location)var k=aa.self.location.protocol,f=k.substr(0,k.length-1);e=!Nn.test(f?f.toLowerCase():"")}d=e}if(d)a.Z("complete"),a.Z("success");else{a.A=6;var m;try{m=2<Mn(a)?a.o.statusText:
  461. ""}catch(l){m=""}a.F=m+" ["+a.getStatus()+"]";Hn(a)}}finally{In(a)}}},In=function(a,b){if(a.o){Pn(a);
  462. var c=a.o,d=a.K[0]?v:null;a.o=null;a.K=null;b||a.Z("ready");try{c.onreadystatechange=d}catch(e){}}},Pn=function(a){a.o&&a.J&&(a.o.ontimeout=null);
  463. ga(a.I)&&(Wd(a.I),a.I=null)},Mn=function(a){return a.o?a.o.readyState:0},Qn=function(a){try{return a.o?a.o.responseText:""}catch(b){return""}},Kn=function(a,b){return b+" ["+a.ca+" "+a.H+" "+a.getStatus()+"]"},Rn=function(a,b,c){this.G=a||null;
  464. this.o=1;this.A=[];this.C=[];this.D=new Jm(null,!0);this.H=b||null;this.I=null!=c?c:null},Sn=function(a,b){this.o=a;
  465. this.map=b;this.context=null},Tn=function(a){kc.call(this,"statevent",a)},Un=function(a,b){kc.call(this,"timingevent",a);
  466. this.size=b},Vn=function(a){kc.call(this,"serverreachability",a)},Zn=function(a){Wn(a);
  467. if(3==a.o){var b=a.hh++,c=a.Di.clone();Bf(c,"SID",a.B);Bf(c,"RID",b);Bf(c,"TYPE","terminate");Xn(a,c);b=new an(a,0,a.B,b,void 0);b.Jf=2;b.de=Ef(c.clone());(new window.Image).src=b.de;b.qh=J();en(b)}Yn(a)},Wn=function(a){if(a.Xd){var b=a.Xd;
  468. b.sc&&(b.sc.cancel(),b.sc=null);b.Bd=-1;a.Xd=null}a.vb&&(a.vb.cancel(),a.vb=null);a.xd&&(aa.clearTimeout(a.xd),a.xd=null);$n(a);a.Xb&&(a.Xb.cancel(),a.Xb=null);a.$d&&(aa.clearTimeout(a.$d),a.$d=null)},bo=function(a,b){if(0==a.o)throw Error("Invalid operation: sending map when state is closed");
  469. a.A.push(new Sn(a.Hz++,b));2!=a.o&&3!=a.o||ao(a)},ao=function(a){a.Xb||a.$d||(a.$d=sn(y(a.dr,a),0),a.Ug=0)},fo=function(a,b){if(1==a.o){if(!b){a.hh=Math.floor(1E5*Math.random());
  470. var c=a.hh++,d=new an(a,0,"",c,void 0);d.$e=null;var e=co(a),f=a.Di.clone();Bf(f,"RID",c);a.G&&Bf(f,"CVER",a.G);Xn(a,f);cn(d,f,e);a.Xb=d;a.o=2}}else 3==a.o&&(b?eo(a,b):0!=a.A.length&&(a.Xb||eo(a)))},eo=function(a,b){var c,d;
  471. b?6<a.Se?(a.A=a.C.concat(a.A),a.C.length=0,c=a.hh-1,d=co(a)):(c=b.H,d=b.ef):(c=a.hh++,d=co(a));var e=a.Di.clone();Bf(e,"SID",a.B);Bf(e,"RID",c);Bf(e,"AID",a.Xf);Xn(a,e);c=new an(a,0,a.B,c,a.Ug+1);c.$e=null;c.setTimeout(Math.round(1E4)+Math.round(1E4*Math.random()));a.Xb=c;cn(c,e,d)},Xn=function(a,b){if(a.Nb){var c=a.Nb.Qo(a);
  472. c&&Nb(c,function(a,c){Bf(b,c,a)})}},co=function(a){var b=Math.min(a.A.length,1E3),c=["count="+b],d;
  473. 6<a.Se&&0<b?(d=a.A[0].o,c.push("ofs="+d)):d=0;for(var e=0;e<b;e++){var f=a.A[e].o,k=a.A[e].map,f=6>=a.Se?e:f-d;try{Te(k,function(a,b){c.push("req"+f+"_"+b+"="+(0,window.encodeURIComponent)(a))})}catch(m){c.push("req"+f+"_type="+(0,window.encodeURIComponent)("_badmap"))}}a.C=a.C.concat(a.A.splice(0,b));
  474. return c.join("&")},go=function(a){a.vb||a.xd||(a.F=1,a.xd=sn(y(a.ar,a),0),a.tf=0)},io=function(a){if(a.vb||a.xd||3<=a.tf)return!1;
  475. a.F++;a.xd=sn(y(a.ar,a),ho(a,a.tf));a.tf++;return!0},Bn=function(a,b,c){a.Gj=c;
  476. a.Kc=b.Bd;a.ax(1,0);a.Di=zn(a,null,a.wl);ao(a)},$n=function(a){null!=a.Ve&&(aa.clearTimeout(a.Ve),a.Ve=null)},ho=function(a,b){var c=5E3+Math.floor(1E4*Math.random());
  477. a.isActive()||(c*=2);return c*b},ko=function(a,b){if(2==b||9==b){var c=null;
  478. a.Nb&&(c=null);var d=y(a.YD,a);c||(c=new N("//www.google.com/images/cleardot.gif"),Ef(c));vn(c.toString(),1E4,d)}else hn();jo(a,b)},jo=function(a,b){a.o=0;
  479. a.Nb&&a.Nb.xo(a,b);Yn(a);Wn(a)},Yn=function(a){a.o=0;
  480. a.Kc=-1;if(a.Nb)if(0==a.C.length&&0==a.A.length)a.Nb.Hk(a);else{var b=sb(a.C),c=sb(a.A);a.C.length=0;a.A.length=0;a.Nb.Hk(a,b,c)}},zn=function(a,b,c){var d=Ff(c);
  481. if(""!=d.A)b&&sf(d,b+"."+d.A),tf(d,d.D);else var e=window.location,d=Gf(e.protocol,b?b+"."+e.hostname:e.hostname,e.port,c);a.Sg&&Nb(a.Sg,function(a,b){Bf(d,b,a)});
  482. Bf(d,"VER",a.Se);Xn(a,d);return d},sn=function(a,b){if(!ha(a))throw Error("Fn must not be null and must be a function");
  483. return aa.setTimeout(function(){a()},b)},hn=function(){lo.Z(new Tn(lo))},mo=function(){},oo=function(a,b){Td.call(this);
  484. this.D=0;if(ha(a))b&&(a=y(a,b));else if(a&&ha(a.handleEvent))a=y(a.handleEvent,a);else throw Error("Invalid listener argument");this.G=a;Oc(this,"tick",y(this.F,this));no(this)},no=function(a){a.stop();
  485. Ud(a,5E3+2E4*Math.random())},po=function(a,b){this.K=a;
  486. this.C=b;this.B=new De;this.A=new oo(this.sE,this);this.o=null;this.J=!1;this.F=null;this.I="";this.H=this.D=0;this.G=[]},qo=function(a){return{firstTestResults:[""],
  487. secondTestResults:!a.o.Gj,sessionId:a.o.B,arrayId:a.o.Xf}},ro=function(a,b){a.H=b||0;
  488. a.A.stop();a.o&&(3==a.o.o&&fo(a.o),Zn(a.o));a.H=0},so=function(a,b){(a.C.loungeIdToken=b)||a.A.stop()},to=function(){this.o=[];
  489. this.A=[]},uo=function(a){kb(a.o)&&(a.o=a.A,a.o.reverse(),a.A=[])},vo=function(a,b){a.A.push(b)},wo=function(a){uo(a);
  490. return a.o.pop()},xo=function(a){uo(a);
  491. return cb(a.o)},yo=function(a){this.videoIds=null;
  492. this.index=-1;this.videoId=this.A="";this.volume=this.o=-1;this.muted=!1;this.audioTrackId=null;this.D=this.C=0;this.B=null;this.reset(a)},zo=function(a,b){if(a.A)throw Error(b+" is not allowed in V3.");
  493. },Ao=function(a){a.audioTrackId=null;
  494. a.B=null;a.o=-1;a.C=0;a.D=J()},Bo=function(a){a.index=-1;
  495. a.videoId="";Ao(a)},Co=function(a){return a.A?a.videoId:a.videoIds[a.index]},Do=function(a,b){a.C=b;
  496. a.D=J()},Eo=function(a){switch(a.o){case 1:return(J()-a.D)/1E3+a.C;
  497. case -1E3:return 0}return a.C},Fo=function(a,b,c){var d=a.videoId;
  498. a.videoId=b;a.index=c;b!=d&&Ao(a)},Go=function(a,b,c){zo(a,"setPlaylist");
  499. c=c||Co(a);Fb(a.videoIds,b)&&c==Co(a)||(a.videoIds=sb(b),a.setVideoId(c))},Ho=function(a){var b={};
  500. b.videoIds=sb(a.videoIds);b.index=a.index;b.listId=a.A;b.videoId=a.videoId;b.playerState=a.o;b.volume=a.volume;b.muted=a.muted;b.audioTrackId=a.audioTrackId;b.trackData=gc(a.B);b.playerTime=a.C;b.playerTimeAt=a.D;return b},Ko=function(a,b){Yj.call(this);
  501. this.A=0;this.C=a;this.G=[];this.F=new to;this.D=window.NaN;this.B=this.o=null;this.J=y(this.pA,this);this.H=y(this.ih,this);this.I=y(this.oA,this);var c=0;a?(c=a.getProxyState(),3!=c&&(a.subscribe("proxyStateChange",this.mn,this),Io(this))):c=3;0!=c&&(b?this.mn(c):Ci(y(function(){this.mn(c)},this),0));
  502. Jo(this,Nl())},Lo=function(a){return new yo(a.C.getPlayerContextData())},Oo=function(a,b,c,d,e){var f=Lo(a);
  503. d=d||0;var k={videoId:b,currentIndex:d,listId:e||f.A};Fo(f,b,d);p(c)&&(Do(f,c),k.currentTime=c);Mo(a,"setPlaylist",k);e||No(a,f)},Io=function(a){F(["remotePlayerChange",
  504. "remoteQueueChange"],function(a){this.G.push(this.C.subscribe(a,qa(this.$B,a),this))},a)},Po=function(a){F(a.G,function(a){this.C.unsubscribeByKey(a)},a);
  505. a.G.length=0},Qo=function(a,b){50>a.F.fb()&&vo(a.F,b)},Ro=function(a,b,c){var d=Lo(a);
  506. Do(d,c);-1E3!=d.o&&(d.o=b);No(a,d)},Mo=function(a,b,c){a.C.sendMessage(b,c)},No=function(a,b){Po(a);
  507. a.C.setPlayerContextData(Ho(b));Io(a)},So=function(a){Ei(a.D);
  508. a.D=Ci(y(function(){this.S("remotePlayerChange");this.D=window.NaN},a),2E3)},Jo=function(a,b){a.B&&(a.B.removeUpdateListener(a.J),a.B.removeMediaListener(a.H),a.ih(null));
  509. a.B=b;a.B&&(To("Setting cast session: "+a.B.sessionId),a.B.addUpdateListener(a.J),a.B.addMediaListener(a.H),a.B.media.length&&a.ih(a.B.media[0]))},Uo=function(a){var b=a.o.customData;
  510. if(a.o.media){var c=a.o.media,d=Lo(a);c.contentId!=d.videoId&&To("Cast changing video to: "+c.contentId);d.videoId=c.contentId;d.o=b.playerState;Do(d,a.o.getEstimatedTime());No(a,d)}else To("No cast media video. Ignoring state update.")},To=function(a){fi("CP",a)},Wo=function(a,b,c){Yj.call(this);
  511. this.D=window.NaN;this.L=!1;this.H=this.G=this.K=this.I=window.NaN;this.R=[];this.B=this.wa=this.o=null;this.fa=a;this.R.push(am(window,"beforeunload",y(this.Cx,this)));this.A=[];this.wa=new yo;3==c["mdx-version"]&&(this.wa.A="RQ"+b.token);this.N=b.id;this.o=Vo(this,c);this.o.subscribe("handlerOpened",this.uA,this);this.o.subscribe("handlerClosed",this.qA,this);this.o.subscribe("handlerError",this.rA,this);this.wa.A?this.o.subscribe("handlerMessage",this.sA,this):this.o.subscribe("handlerMessage",
  512. this.tA,this);so(this.o,b.token);this.subscribe("remoteQueueChange",function(){var a=this.wa.videoId;wk()&&nj("yt-remote-session-video-id",a)},this)},Vo=function(a,b){return new po(Pj(a.fa,"/bc",void 0,!1),b)},Xo=function(a,b){a.S("proxyStateChange",b)},Yo=function(a){a.D=Ci(y(function(){this.kb("Connecting timeout");
  513. this.C(1)},a),2E4)},Zo=function(a){Ei(a.D);
  514. a.D=window.NaN},$o=function(a){Ei(a.I);
  515. a.I=window.NaN},fp=function(a){ap(a);
  516. a.K=Ci(y(function(){bp(this,"getNowPlaying")},a),2E4)},ap=function(a){Ei(a.K);
  517. a.K=window.NaN},hp=function(a){var b=a.o;
  518. return!!b.o&&3==b.o.o&&(0,window.isNaN)(a.D)},jp=function(a,b){b&&(Zo(a),$o(a));
  519. b==hp(a)?b&&(Xo(a,1),bp(a,"getSubtitlesTrack")):b?(a.J()&&a.wa.reset(),Xo(a,1),bp(a,"getNowPlaying"),ip(a)):a.C(1)},kp=function(a,b){var c=b.params.videoId;
  520. delete b.params.videoId;c==a.wa.videoId&&($b(b.params)?a.wa.B=null:a.wa.B=b.params,a.S("remotePlayerChange"))},lp=function(a,b){var c=b.params.videoId||b.params.video_id,d=(0,window.parseInt)(b.params.currentIndex,10);
  521. a.wa.A=b.params.listId||a.wa.A;Fo(a.wa,c,d);a.S("remoteQueueChange")},np=function(a,b){b.params=b.params||{};
  522. lp(a,b);mp(a,b)},mp=function(a,b){var c=(0,window.parseInt)(b.params.currentTime||b.params.current_time,10);
  523. Do(a.wa,(0,window.isNaN)(c)?0:c);c=(0,window.parseInt)(b.params.state,10);c=(0,window.isNaN)(c)?-1:c;-1==c&&-1E3==a.wa.o&&(c=-1E3);a.wa.o=c;1==a.wa.o?fp(a):ap(a);a.S("remotePlayerChange")},op=function(a,b){var c="true"==b.params.muted;
  524. a.wa.volume=(0,window.parseInt)(b.params.volume,10);a.wa.muted=c;a.S("remotePlayerChange")},pp=function(a,b){switch(b.action){case "loungeStatus":var c=ee(b.params.devices);
  525. a.A=pi(c,function(a){return new qk(a)});
  526. break;case "loungeScreenDisconnected":qb(a.A,function(a){return"LOUNGE_SCREEN"==a.type});
  527. break;case "remoteConnected":var d=new qk(ee(b.params.device));eb(a.A,function(a){return a.equals(d)})||nb(a.A,d);
  528. break;case "remoteDisconnected":d=new qk(ee(b.params.device)),qb(a.A,function(a){return a.equals(d)})}},qp=function(a,b){var c=!1;
  529. if("loungeStatus"==b.action)c=!!eb(a.A,function(a){return"LOUNGE_SCREEN"==a.type});
  530. else if("loungeScreenConnected"==b.action)c=!0;else if("loungeScreenDisconnected"==b.action)c=!1;else return;if(!(0,window.isNaN)(a.I))if(c)$o(a);else return;c==hp(a)?c&&Xo(a,1):c?(Zo(a),a.J()&&a.wa.reset(),Xo(a,1),bp(a,"getNowPlaying"),ip(a)):a.C(1)},ip=function(a){Ei(a.H);
  531. a.H=Ci(y(a.C,a,1),864E5)},bp=function(a,b,c){c?a.kb("Sending: action="+b+", params="+he(c)):a.kb("Sending: action="+b);
  532. a.o.sendMessage(b,c)},sp=function(a,b){var c=rp(a);
  533. return be(b,function(a){return a.uuid?(a=Vj(this.B,a.uuid),!!a&&"RUNNING"==a.status):!!Wj(c,a)},a)},vp=function(a,b,c){var d=tp,e="";
  534. Ei(d.A);d.A=window.NaN;d.C="";if(Vj(d.B,a)){if(!e){var f=e=Sj();xm();var k=Dm(a),m=pm();if(m&&k){var l=new window.cast.Receiver(k.id,k.name),l=new window.cast.LaunchRequest("YouTube",l);l.parameters="pairingCode="+f;l.description=new window.cast.LaunchDescription;l.description.text=window.document.title;b&&(l.parameters+="&v="+b,c&&(l.parameters+="&t="+Math.round(c)),l.description.url="http://i.ytimg.com/vi/"+b+"/default.jpg");"UNKNOWN"!=k.status&&(k.status="UNKNOWN",zm(k),Qi("yt-remote-cast-device-status-update",
  535. k));om("Sending a cast launch request with params: "+l.parameters);m.launch(l,qa(Fm,a))}else om("No cast API or no cast device. Dropping cast launch.")}d.C=e;d.A=Ci(y(d.I,d,a,0,e),up[0])}else d.kb("No DIAL device with id: "+a)},wp=function(a,b){var c=Xj(rp(a),b);
  536. a.kb("Found screen: "+ri(c)+" with key: "+b);return c},xp=function(a){var b=tp,c=Xj(b.o,a);
  537. b.kb("Found online screen: "+ri(c)+" with key: "+a);return c},yp=function(a){var b=tp,c=Vj(b.B,a);
  538. if(!c){var d=Xj(b.F,a);d&&(c=Vj(b.B,d.uuid))}b.kb("Found DIAL: "+(c?c.toString():"null")+" with key: "+a);return c},rp=function(a){return rb(a.D,be(a.F,function(a){return!Wj(this.D,a)},a))},zp=function(a){Zj.call(this,"ScreenServiceProxy");
  539. this.Ub=a;this.o=[];this.o.push(this.Ub.$_s("screenChange",y(this.wE,this)));this.o.push(this.Ub.$_s("onlineScreenChange",y(this.OB,this)))},Np=function(a,b){q("yt.mdx.remote.castv2_",!0,void 0);
  540. kj&&lj();zk();Ap||(Ap=new Oj,Lk()&&(Ap.o="/api/loungedev"));Bp||(Bp=r("yt.mdx.remote.deferredProxies_")||[],q("yt.mdx.remote.deferredProxies_",Bp,void 0));Cp();var c=Dp();if(!c){var d=new Yk(Ap);q("yt.mdx.remote.screenService_",d,void 0);c=Dp();Fl(a,d,function(a){a?Ep()&&Rl(Ep(),"YouTube TV"):d.subscribe("onlineScreenChange",function(){Qi("yt-remote-receiver-availability-change")})},!(!b||!b.loadCastApiSetupScript))}if(b&&!r("yt.mdx.remote.initialized_")){q("yt.mdx.remote.initialized_",!0,void 0);
  541. Fp("Initializing: "+he(b));Gp.push(Oi("yt-remote-cast2-availability-change",function(){Qi("yt-remote-receiver-availability-change")}));
  542. Gp.push(Oi("yt-remote-cast2-receiver-selected",function(){Hp(null);Qi("yt-remote-auto-connect","cast-selector-receiver")}));
  543. Gp.push(Oi("yt-remote-cast2-session-change",Ip));Gp.push(Oi("yt-remote-connection-change",function(a){a?Rl(Ep(),"YouTube TV"):Jp()||(Rl(null,null),Ml())}));
  544. var e=Kp();b.isAuto&&(e.id+="#dial");e.name=b.device;e.app=b.app;Fp(" -- with channel params: "+he(e));Lp(e);c.start();Ep()||Mp()}},Pp=function(){Pi(Gp);
  545. Gp.length=0;Lb(Op);Op=null;Bp&&(F(Bp,function(a){a(null)}),Bp.length=0,Bp=null,q("yt.mdx.remote.deferredProxies_",null,void 0));
  546. tp&&(Lb(tp),tp=null);Ap=null;ym()},Up=function(){if(Qp()&&Kl()){var a=[];
  547. if(oj("yt-remote-cast-available")||r("yt.mdx.remote.cloudview.castButtonShown_")||Rp())a.push({key:"cast-selector-receiver",name:Sp()}),q("yt.mdx.remote.cloudview.castButtonShown_",!0,void 0);return a}return r("yt.mdx.remote.cloudview.initializing_")?[]:Tp()},Tp=function(){var a=[],a=Vp()?Dp().Ub.$_gos():qi(oj("yt-remote-online-screens")||[]),b=Wp();
  548. b&&Rp()&&(Wj(a,b)||a.push(b));Vp()||(b=Uj(Hk()),b=be(b,function(b){return!Xj(a,b.id)}),a=rb(a,b));
  549. return Tj(a)},Yp=function(){if(Qp()&&Kl()){var a=Ll();
  550. return a?{key:"cast-selector-receiver",name:a}:null}return Xp()},Xp=function(){var a=Tp(),b=Zp(),c=Wp();
  551. c||(c=Jp());return eb(a,function(a){return c&&li(c,a.key)||b&&(a=yp(a.key))&&a.id==b?!0:!1})},Sp=function(){if(Qp()&&Kl())return Ll();
  552. var a=Wp();return a?a.name:null},Wp=function(){var a=Ep();
  553. if(!a)return null;if(!tp){var b=Dp().uc();return Xj(b,a)}return wp(tp,a)},Ip=function(a){Fp("remote.onCastSessionChange_: "+ri(a));
  554. if(a){var b=Wp();b&&b.id==a.id?Rl(b.id,"YouTube TV"):(b&&$p(),aq(a,1))}else $p()},dq=function(a,b){Fp("Connecting to: "+he(a));
  555. if("cast-selector-receiver"==a.key)Hp(b||null),Ql(b||null);else{$p();Hp(b||null);var c=null;tp?c=xp(a.key):(c=Dp().uc(),c=Xj(c,a.key));if(c)aq(c,1);else{if(tp&&(c=yp(a.key))){bq(c);return}Ci(function(){cq(null)},0)}}},$p=function(){if(tp){var a=tp;
  556. Ei(a.A);a.A=window.NaN;a.C=""}a:{if(a=Rp())if(a=a.getOtherConnectedRemoteId()){Fp("Do not stop DIAL due to "+a);eq("");break a}(a=Zp())?(Fp("Stopping DIAL: "+a),Gm(a),eq("")):(a=Wp())&&a.uuid&&(Fp("Stopping DIAL: "+a.uuid),Gm(a.uuid))}Ol()?Gl().stopSession():Cl("stopSession called before API ready.");(a=Rp())?a.disconnect(1):(Ri("yt-remote-before-disconnect",1),Ri("yt-remote-connection-change",!1));cq(null)},hq=function(){var a=fq(),a=a?a.currentTime:0,b=gq();
  557. 0==a&&b&&(a=Eo(Lo(b)));return a},gq=function(){var a=Rp();
  558. return a&&3!=a.getProxyState()?new Ko(a,void 0):null},Fp=function(a){fi("remote",a)},Qp=function(){return!!r("yt.mdx.remote.castv2_")},Vp=function(){return r("yt.mdx.remote.screenService_")},Dp=function(){if(!Op){var a=Vp();
  559. Op=a?new zp(a):null}return Op},Ep=function(){return r("yt.mdx.remote.currentScreenId_")},iq=function(a){q("yt.mdx.remote.currentScreenId_",a,void 0);
  560. if(tp){var b=tp;b.H=J()+3E5;if(b.G=a){var c=wp(b,a);if(c&&!Wj(b.o,c)){a=sb(b.o);a.push(c);var c=sp(b,a),d=!Fb(b.o,c,mi);kb(a)||Gk(pi(c,ni));d&&(b.kb("Updating online screens: "+si(b.o)+" -> "+si(c)),b.o=c,b.S("onlineReceiverChange"))}}}},Zp=function(){return r("yt.mdx.remote.currentDialId_")},eq=function(a){q("yt.mdx.remote.currentDialId_",a,void 0)},fq=function(){return r("yt.mdx.remote.connectData_")},Hp=function(a){q("yt.mdx.remote.connectData_",a,void 0)},Rp=function(){return r("yt.mdx.remote.connection_")},
  561. cq=function(a){var b=Rp();
  562. Hp(null);a?Rp():(iq(""),eq(""));q("yt.mdx.remote.connection_",a,void 0);Bp&&(F(Bp,function(b){b(a)}),Bp.length=0);
  563. b&&!a?Ri("yt-remote-connection-change",!1):!b&&a&&Qi("yt-remote-connection-change",!0)},Jp=function(){var a=wk();
  564. if(!a)return null;if(Vp()){var b=Dp().uc();return Xj(b,a)}return tp?wp(tp,a):null},aq=function(a,b){Ep();
  565. iq(a.id);var c=new Wo(Ap,a,Kp());c.connect(b,fq());c.subscribe("beforeDisconnect",function(a){Ri("yt-remote-before-disconnect",a)});
  566. c.subscribe("beforeDispose",function(){Rp()&&(Rp(),cq(null))});
  567. cq(c)},bq=function(a){Zp();
  568. Fp("Connecting to: "+(a?a.toString():"null"));eq(a.id);var b=fq();b?vp(a.id,b.videoIds[b.index],b.currentTime):vp(a.id)},Mp=function(){var a=Jp();
  569. a?(Fp("Resume connection to: "+ri(a)),aq(a,0)):(Jk(),Ml(),Fp("Skipping connecting because no session screen found."))},Cp=function(){var a=Kp();
  570. if($b(a)){var a=vk(),b=oj("yt-remote-session-name")||"",c=oj("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)}},Kp=function(){return r("yt.mdx.remote.channelParams_")||{}},Lp=function(a){a?(nj("yt-remote-session-app",a.app),nj("yt-remote-session-name",a.name)):(pj("yt-remote-session-app"),pj("yt-remote-session-name"));
  571. q("yt.mdx.remote.channelParams_",a,void 0)},kq=function(a){return(a=jq.exec(a))?a[0]:""},nq=function(a){var b=lq.test(a),c;
  572. c=(new RegExp("^(https?:)?//([a-z0-9-]{1,63}\\.)*("+mq.join("|").replace(/\./g,".")+")(:[0-9]+)?([/?#]|$)","i")).test(a);!b&&c&&(a=Error("isTrustedLoader("+a+") behavior is not consistent"),.01>Math.random()&&Gi(a,"WARNING"));return b||c},oq=function(a){a=new N(a);
  573. rf(a,window.document.location.protocol);sf(a,window.document.location.hostname);window.document.location.port&&tf(a,window.document.location.port);return a.toString()},pq=function(a){a=new N(a);
  574. rf(a,window.document.location.protocol);return a.toString()},rq=function(){return qq("android")&&qq("chrome")&&!(qq("trident/")||qq("edge/"))},sq=function(){return qq("cobalt")},tq=function(){return qq("(ps3; leanback shell)")||qq("ps3")&&sq()},uq=function(){return qq("(ps4; leanback shell)")||qq("ps4")&&sq()},vq=function(){var a=/WebKit\/([0-9]+)/.exec(pc);
  575. return!!(a&&600<=a[1])},wq=function(){return Sl&&qq("crkey")},xq=function(){return qq("nintendo wiiu")},yq=function(){return qq("iemobile")||qq("windows phone")&&qq("edge")},qq=function(a){var b=pc;
  576. return b?0<=b.toLowerCase().indexOf(a):!1},Aq=function(a,b,c){a&&(c&&!sq()?a&&(a=O("iframe",{src:'javascript:"data:text/html,<body><img src=\\"'+a+'\\"></body>"',
  577. style:"display:none"}),Pg(a).body.appendChild(a)):zq(a,b))},Bq=function(a){try{window.navigator&&window.navigator.sendBeacon&&window.navigator.sendBeacon(a,"")||Aq(a,void 0)}catch(b){Aq(a,void 0)}},Eq=function(a){return A(C(a))?!1:Cq.test(a)||Dq.test(a)},zq=function(a,b){var c=new window.Image,d=""+Fq++;
  578. Gq[d]=c;c.onload=c.onerror=function(){b&&Gq[d]&&b();delete Gq[d]};
  579. c.src=a},Iq=function(a,b){this.start=a;
  580. this.end=b;this.D=Hq++},Jq=function(a,b,c){Iq.call(this,a,b);
  581. a=c||{};this.H=a.id||"";this.F=a.priority||7;this.active=!0;this.visible=a.visible||!1;this.style=a.style||"ytp-ad-progress";this.A=a.namespace||"";this.color="";a.color&&(b=a.color.toString(16),this.color="#"+Array(7-b.length).join("0")+b);this.B=null;this.tooltip=a.tooltip;this.visible=this.visible;this.style=this.style;this.start=this.start},Kq=function(a){return a.B||(a.B=new De)},Lq=function(a,b){return a.start-b.start||a.F-b.F||a.D-b.D},Mq=function(a,b){Yj.call(this);
  582. this.logEvent=this.ua="";this.Ba=b||"";this.ga=this.loaded=this.G=!1;this.R=this.H=null;this.o=a;if(this.Ba){var c=fk("yt-html5-player-modules::"+this.Ba);c&&(this.R=new bj(c))}},Pq=function(a){var b=a.o,c=b.app;
  583. a=a.ua;var b=b.playerType,d=Nq(c,b);if(d){for(var d=d.F,e=[],f=d.o.o,k=f.length-1;0<=k;k--){var m=f[k];if(m.A==a){var l=d.A.indexOf(m);0<=l&&d.A.splice(l,1);var n=d.o,l=n.o,n=zb(l,m,n.A);0<=n&&ob(l,n);e.push(m)}}d.Kd();b&&c.getPresentingPlayerType()!=b||Oq(c,"cuerangesremoved",e)}},Qq=function(a){a.o.uj(a.ua)},Rq=function(a,b,c){var d={},e;
  584. for(e in b)d[a.ua+"_"+e]=b[e];b={};for(var f in c)b[a.ua+"_"+f]=c[f];a=a.o.app.D;ra(a.C,d||null);ra(a.B,b||null)},Sq=function(a,b){if(!a.R)return null;
  585. var c;try{c=a.R.get(b)}catch(d){a.R&&a.R.remove(b)}return c},Tq=function(a,b,c){if(a.R)try{a.R.set(b,c)}catch(d){}},Uq=function(a){a.S("command_stop_redirect_controls")},Vq=function(a){a.S("command_play",!1,a.o.playerType)},Xq=function(a){G.call(this);
  586. this.sa={};this.ma={};this.element=Wq(this,a)},Wq=function(a,b){var c=0,d=window.document.createElement(b[c++]);
  587. if(w(b[c])){var e=b[c++];if(e=Yq(a,d,"className",e))Zq(a,d,"className",e),a.sa[e]=d}else if(da(b[c])){for(var e=b[c++],f=0;f<e.length;f++)a.sa[e[f]]=d;Zq(a,d,"className",e.join(" "))}for(;c<b.length;c++){var k=b[c];if(da(k))e=Wq(a,k),d.appendChild(e);else if(ia(k))if(k.element)d.appendChild(k.element);else{var e=a,f=d,m=void 0;for(m in k){var l=k[m];null!=l&&Zq(e,f,m,w(l)?Yq(e,f,m,l):l)}}else w(k)&&(e=Yq(a,d,"child",k),null!=e&&d.appendChild(window.document.createTextNode(String(e))))}return d},$q=
  588. function(a){jh(a.element)},Yq=function(a,b,c,d){return"{{"==d.substr(0,2)?(a.ma[d]=[b,
  589. c],null):d},ar=function(a){return da(a)&&w(a[0])},Zq=function(a,b,c,d){if("child"==c){hh(b);
  590. if(!da(d)||ar(d))d=[d];c=[];for(var e=0;e<d.length;e++){var f=d[e];if(null!=f)if(!f.nodeType||1!=f.nodeType&&3!=f.nodeType)if(ar(f))c.push(Wq(a,f));else if(f.element)c.push(f.element);else if(w(f)&&-1!=f.indexOf("\n"))for(var f=f.split("\n"),k=0;k<f.length;k++)0<k&&c.push(window.document.createElement("br")),c.push(window.document.createTextNode(String(f[k])));else c.push(window.document.createTextNode(String(f)));else c.push(f)}for(a=0;a<c.length;a++)b.appendChild(c[a])}else"className"==c?b.className=
  591. d:"style"==c?b.style.cssText=d?d:"":null===d?b.removeAttribute(c):b.setAttribute(c,d.toString())},br=function(a,b){a&&(a.style.display=b)},cr=function(a,b){var c=Eh("requestAnimationFrame",window);
  592. return Ci(function(){c?c.call(window,a):a()},b||0)},dr=function(a){if(window.document.createRange){var b=window.document.createRange();
  593. b.selectNodeContents(a);window.getSelection().removeAllRanges();window.getSelection().addRange(b)}},Q=function(a){Xq.call(this,a);
  594. this.C=!0;this.ca=[]},er=function(a){Q.call(this,a);
  595. this.V=new Yj;H(this,this.V)},fr=function(a,b){er.call(this,["div",
  596. ["html5-endscreen","ytp-player-content",b||"base-endscreen"]]);this.o=a;this.K=!1},gr=function(){Q.call(this,["div",
  597. "ytp-subscribe-card",["img","ytp-author-image",{src:"{{image}}"}],["div","ytp-subscribe-card-right",["div","ytp-author-name","{{author}}"],["div","html5-subscribe-button-container"]]])},ir=function(){return zc?"Webkit":hr?"Moz":Zg?"ms":Ac?"O":null},kr=function(a,b,c){if(w(b))(b=jr(a,b))&&(a.style[b]=c);
  598. else for(var d in b){c=a;var e=b[d],f=jr(c,d);f&&(c.style[f]=e)}},jr=function(a,b){var c=lr[b];
  599. if(!c){var d=Ya(b),c=d;void 0===a.style[d]&&(d=ir()+Za(d),void 0!==a.style[d]&&(c=d));lr[b]=c}return c},mr=function(a,b){var c=a.style[Ya(b)];
  600. return"undefined"!==typeof c?c:a.style[jr(a,b)]||""},nr=function(a,b){var c=Pg(a);
  601. return c.defaultView&&c.defaultView.getComputedStyle&&(c=c.defaultView.getComputedStyle(a,null))?c[b]||c.getPropertyValue(b)||"":""},or=function(a,b){return nr(a,b)||(a.currentStyle?a.currentStyle[b]:null)||a.style&&a.style[b]},qr=function(a,b,c){var d;
  602. b instanceof te?(d=b.x,b=b.y):(d=b,b=c);a.style.left=pr(d,!1);a.style.top=pr(b,!1)},rr=function(a){return new te(a.offsetLeft,a.offsetTop)},sr=function(a){var b;
  603. try{b=a.getBoundingClientRect()}catch(c){return{left:0,top:0,right:0,bottom:0}}Zg&&a.ownerDocument.body&&(a=a.ownerDocument,b.left-=a.documentElement.clientLeft+a.body.clientLeft,b.top-=a.documentElement.clientTop+a.body.clientTop);return b},tr=function(a){if(Zg&&!yc(8))return a.offsetParent;
  604. var b=Pg(a),c=or(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=or(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},vr=function(a){for(var b=new ve(0,window.Infinity,window.Infinity,0),c=Rg(a),d=c.o.body,e=c.o.documentElement,f=Yg(c.o);a=tr(a);)if(!(Zg&&0==a.clientWidth||zc&&0==a.clientHeight&&
  605. a==d)&&a!=d&&a!=e&&"visible"!=or(a,"overflow")){var k=ur(a),m=new te(a.clientLeft,a.clientTop);
  606. k.x+=m.x;k.y+=m.y;b.top=Math.max(b.top,k.y);b.right=Math.min(b.right,k.x+a.clientWidth);b.bottom=Math.min(b.bottom,k.y+a.clientHeight);b.left=Math.max(b.left,k.x)}d=f.scrollLeft;f=f.scrollTop;b.left=Math.max(b.left,d);b.top=Math.max(b.top,f);c=Xg(Ch(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},ur=function(a){var b=Pg(a),c=new te(0,0),d;
  607. d=b?Pg(b):window.document;d=!Zg||yc(9)||"CSS1Compat"==Rg(d).o.compatMode?d.documentElement:d.body;if(a==d)return c;a=sr(a);b=$g(Rg(b).o);c.x=a.left+b.x;c.y=a.top+b.y;return c},xr=function(a,b){var c=new te(0,0),d=ah(Pg(a));
  608. if(!oc(d,"parent"))return c;var e=a;do{var f=d==b?ur(e):wr(e);c.x+=f.x;c.y+=f.y}while(d&&d!=b&&d!=d.parent&&(e=d.frameElement)&&(d=d.parent));return c},zr=function(a,b){var c=yr(a),d=yr(b);
  609. return new te(c.x-d.x,c.y-d.y)},wr=function(a){a=sr(a);
  610. return new te(a.left,a.top)},yr=function(a){if(1==a.nodeType)return wr(a);
  611. a=a.changedTouches?a.changedTouches[0]:a;return new te(a.clientX,a.clientY)},Br=function(a,b,c){if(b instanceof we)c=b.height,b=b.width;
  612. else if(void 0==c)throw Error("missing height argument");Ar(a,b);a.style.height=pr(c,!0)},pr=function(a,b){"number"==typeof a&&(a=(b?Math.round(a):a)+"px");
  613. return a},Ar=function(a,b){a.style.width=pr(b,!0)},Dr=function(a){var b=Cr;
  614. if("none"!=or(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},Cr=function(a){var b=a.offsetWidth,c=a.offsetHeight,d=zc&&!b&&!c;
  615. return p(b)&&!d||!a.getBoundingClientRect?new we(b,c):(a=sr(a),new we(a.right-a.left,a.bottom-a.top))},Er=function(a){var b=ur(a);
  616. a=Dr(a);return new ye(b.x,b.y,a.width,a.height)},Fr=function(a,b){var c=a.style;
  617. "opacity"in c?c.opacity=b:"MozOpacity"in c?c.MozOpacity=b:"filter"in c&&(c.filter=""===b?"":"alpha(opacity="+100*Number(b)+")")},S=function(a,b){a.style.display=b?"":"none"},Gr=function(a){return"none"!=a.style.display},Hr=function(a,b){if(/^\d+px?$/.test(b))return(0,window.parseInt)(b,10);
  618. 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},Lr=function(a){var b=or(a,"fontSize"),c;
  619. c=(c=b.match(Ir))&&c[0]||null;if(b&&"px"==c)return(0,window.parseInt)(b,10);if(Zg){if(String(c)in Jr)return Hr(a,b);if(a.parentNode&&1==a.parentNode.nodeType&&String(c)in Kr)return a=a.parentNode,c=or(a,"fontSize"),Hr(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;jh(c);return b},Nr=function(a,b){da(b)||(b=[b]);
  620. var c=pi(b,function(a){return w(a)?a:a.property+" "+a.duration+"s "+a.timing+" "+a.delay+"s"});
  621. Mr(a,c.join(","))},Mr=function(a,b){kr(a,"transition",b)},Or=function(a,b,c,d){G.call(this);
  622. this.B=a;c||a.ia();this.D=b;this.F=null==d?b:d;this.o=null;this.C=!1;this.A=new Xd(this.Um,0,this);H(this,this.A)},Pr=function(a,b){var c=a.B.element;
  623. b?c.setAttribute("aria-hidden",!0):c.removeAttribute("aria-hidden")},Qr=function(a,b){Q.call(this,b||["div",
  624. "ytp-thumbnail-overlay"]);this.o=new Or(this,250);H(this,this.o);this.api=a},Rr=function(a){Qr.call(this,a,["div",
  625. ["ytp-thumbnail-overlay","ytp-channel-overlay"],["div","ytp-thumbnail-overlay-image",{style:"{{background}}"}],["div","ytp-thumbnail-overlay-curtain"]])},Tr=function(a){fr.call(this,a,"subscribecard-endscreen");
  626. this.D=new Rr(a);H(this,this.D);Sr(this.o,this.D.element,4);this.F=new gr;H(this,this.F);this.ia()},Ur=function(a){G.call(this);
  627. this.R=[];this.Ba=a||this},Vr=function(a,b,c,d){for(var e=0;e<c.length;e++)a.T(b,c[e],d)},Wr=function(a){for(;a.R.length;){var b=a.R.pop();
  628. b.target.removeEventListener(b.name,b.mi)}},Xr=function(a,b){this.type=a||"";
  629. this.id=b||""},Yr=function(a){return new Xr(a.substr(0,2),a.substr(2))},$r=function(a){a=a.split("");
  630. Zr.iv(a,14);Zr.C6(a,1);Zr.A4(a,71);Zr.iv(a,10);return a.join("")},as=function(a,b){return new zd(function(c,d){b.ob=function(a){Aj(a)?c(a):d(a)};
  631. b.onError=d;b.Sc=d;Hj(a,b)})},bs=function(a){function b(e,f,k){return Id(e,function(e){return 0>=f||403===e.status?Dd(e):c(k).then(function(){return b(as(a,d),f-1,Math.pow(2,4-f+1)*k)})})}
  632. function c(a){return new zd(function(b){(0,window.setTimeout)(b,a)})}
  633. var d={format:"RAW",method:"GET"};return b(as(a,d),3,1E3)},cs=function(a){this.o=a||0},fs=function(a,b,c,d,e,f,k,m){this.id=""+a;
  634. this.A=0<=b.indexOf("/mp4")?1:0<=b.indexOf("/webm")?2:0<=b.indexOf("/x-flv")?3:0<=b.indexOf("/vtt")?4:0;this.mimeType=b;this.o=k||0;this.C=m||0;this.audio=c||null;this.video=d||null;this.Ib=e||null;this.De=f||null;this.B=ds[es(this)]||""},es=function(a){return a.id.split(";",1)[0]},gs=function(a){return"9"==a.B||"("==a.B},hs=function(a){return!(a.audio&&a.video)},is=function(a){return 0<=a.indexOf("opus")||0<=a.indexOf("vorbis")||0<=a.indexOf("mp4a")},js=function(a){return 0<=a.indexOf("vp9")||0<=
  635. a.indexOf("vp8")||0<=a.indexOf("avc1")},ks=function(a,b,c){this.name=a;
  636. this.id=b;this.isDefault=c},ns=function(a,b,c,d,e,f,k,m,l){this.width=a;
  637. this.height=b;if(!f)a:{f=Math.max(a,b);a=Math.min(a,b);for(b=0;b<ls.length;b++){var n=ls[b],t=ms[n];if(f>=Math.floor(16*t/9)||a>=t){f=n;break a}}f="tiny"}this.quality=f;this.vD=ms[this.quality];this.o=!!k;this.fps=c||0;this.B=e||0;this.projectionType=d||0;(c=m)||(c=this.fps,d=ms[this.quality],c=0==d?P("YTP_AUTO"):d+"p"+(55<c?"60":49<c?"50":39<c?"48":""));this.qualityLabel=c;this.A=l||""},os=function(a){this.B=a;
  638. this.D=this.C=this.F="";this.o={};this.A=""},qs=function(a){ps(a);
  639. return a.D},rs=function(a){ps(a);
  640. return Pb(a.o,function(a){return null!==a})},ps=function(a){if(a.B){if(!ts.test(a.B))throw Error("Untrusted URL: "+a.B);
  641. var b=Ff(a.B);a.F=b.C;a.D=b.A+(null!=b.D?":"+b.D:"");var c=b.B;if(0==c.indexOf("/videoplayback"))a.C="/videoplayback",c=c.substr(14);else if(0==c.indexOf("/api/manifest/")){var d=c.indexOf("/",14);0<d?(a.C=c.substr(0,d),c=c.substr(d+1)):(a.C=c,c="")}d=a.o;a.o=us(c);ra(a.o,vs(b.ap()));ra(a.o,d);a.B="";a.A=""}},ws=function(a){ps(a);
  642. var b=a.F+(a.F?"://":"//")+a.D+a.C;if(rs(a)){var c=[];Nb(a.o,function(a,b){null!==a&&c.push(b+"="+a)});
  643. a=c.join("&");b+="?"+a}return b},us=function(a){a=a.split("/");
  644. var b=0;a[0]||b++;for(var c={};b<a.length;b+=2)a[b]&&xs(c,a[b],a[b+1]);return c},vs=function(a){a=a.split("&");
  645. for(var b={},c=0;c<a.length;c++){var d=a[c],e=d.indexOf("=");0<e?xs(b,d.substr(0,e),d.substr(e+1)):d&&(b[d]="")}return b},xs=function(a,b,c){if("cmo"==b){var d;
  646. 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},ys=function(a,b){this.start=a;
  647. this.end=b;this.length=b-a+1},zs=function(a){a=a.split("-");
  648. return 2==a.length&&(a=new ys((0,window.parseInt)(a[0],10),(0,window.parseInt)(a[1],10)),!(0,window.isNaN)(a.start)&&!(0,window.isNaN)(a.end)&&!(0,window.isNaN)(a.length)&&0<a.length)?a:null},As=function(a,b){return new ys(a,a+b-1)},Bs=function(a,b){for(var c=a;c;c=c.parentNode)if(c.attributes){var d=c.attributes[b];
  649. if(d)return d.value}return""},Cs=function(a,b){for(var c=a;c;c=c.parentNode){var d=c.getElementsByTagName(b);
  650. if(0<d.length)return d[0]}return null},Ds=function(a){if(!a)return 0;
  651. var b=a.match(/PT(([0-9]*)H)?(([0-9]*)M)?(([0-9.]*)S)?/);return b?3600*(0,window.parseFloat)(b[2]||0)+60*(0,window.parseFloat)(b[4]||0)+(0,window.parseFloat)(b[6]||0):(0,window.parseFloat)(a)},Es=function(a,b,c,d,e,f){this.duration=c;
  652. this.endTime=b+c;this.A=d;this.o=a;this.sourceURL=e;this.startTime=b;this.range=f||null},Fs=function(){this.va=[]},Gs=function(a,b){var c=zb(a.va,new Es(b,0,0,0,""),function(a,b){return a.o-b.o});
  653. return 0<=c?a.va[c]:null},Hs=function(a,b){var c=zb(a.va,{startTime:b},function(a,b){return a.startTime-b.startTime});
  654. return 0<=c?a.va[c]:a.va[Math.max(0,-c-2)]},Is=function(a,b){var c=db(a.va,function(a){return a.o>=b},a);
  655. 0<c&&a.va.splice(0,c)},Js=function(a){this.o=a;
  656. this.A={};this.B=""},Ks=function(a,b){var c=b.indexOf("?");
  657. if(0<c){var d=vs(b.substr(c+1));Nb(d,function(a,b){this.set(b,a)},a);
  658. b=b.substr(0,c)}d=us(b);Nb(d,function(a,b){this.set(b,a)},a)},Ls=function(a){var b=a.o.getUrl(),c=[];
  659. Nb(a.A,function(a,b){c.push(b+"="+a)});
  660. if(!c.length)return b;var d=c.join("&");a=rs(a.o)?"&":"?";return b+a+d},Ms=function(a,b){var c=new os(b);
  661. Nb(a.A,function(a,b){c.set(b,null)});
  662. return c},Ns=function(a){this.o=a;
  663. this.C=a.clone();this.A=0;this.D=-1;this.B=this.F=!1},Os=function(a){var b=a.C.getUrl(),c=new N(b);
  664. c.A.match("\\.googlevideo\\.com$")?(sf(c,"redirector.googlevideo.com"),b=c.toString()):c.A.match("r[1-9].*\\.c\\.youtube\\.com$")?(sf(c,"www.youtube.com"),b=c.toString()):b=oq(b);a.o=new os(b);a.A&&(b=""+a.A,a.o.set("cmo=pf",b),a.C.set("cmo=pf",b))},Ps=function(a,b,c){this.index=null;
  665. this.info=b;this.initRange=c||null;this.o=null;this.C=this.B=!1;this.F=new Ns(a)},Qs=function(a,b,c,d,e,f,k,m,l){this.o=b;
  666. this.range=c;this.type=a;this.C=0<=d?d:-1;this.startTime=e||0;this.duration=f||0;this.B=k||0;this.A=0<=m?m:this.range?this.range.length:window.NaN;this.G=!!l;this.range?(this.F=this.B+this.A==this.range.length,this.D=this.startTime+this.duration*this.B/this.range.length,this.I=this.duration*this.A/this.range.length):(this.F=0!=this.A,this.D=this.startTime,this.I=this.duration);this.H=this.D+this.I},Rs=function(a,b){return!(!b||b.o!=a.o||b.type!=a.type||(a.range&&b.range?b.range.end!=a.range.end:b.range!=
  667. a.range)||b.C!=a.C||b.B+b.A!=a.B+a.A)},Ss=function(a){return 1==a.type||2==a.type},Ts=function(a,b){return a.o==b.o&&a.range.start+a.B+a.A==b.range.start+b.B},Us=function(a){1==a.length||Ue(a,function(a){return!!a.range});
  668. for(var b=1;b<a.length;b++);b=a[a.length-1];return new ys(a[0].range.start+a[0].B,b.range.start+b.B+b.A-1)},Ws=function(a){var b="";
  669. Nb(Vs(a),function(a,d){b+=d+"="+a+","});
  670. return b.slice(0,-1)},Vs=function(a){var b={};
  671. b.itag=es(a.o.info);b.seg=a.C;a.range&&(b.range=""+(a.range.start+a.B)+"-"+(a.range.start+a.B+a.A-1));b.time=""+a.D.toFixed(1)+"-"+(a.D+a.I).toFixed(1);return b},Xs=function(a,b,c){this.B=a[0].o.F;
  672. this.A=b||"";this.o=a;this.range=this.o[0].range&&0<this.o[0].A?Us(this.o):null;this.C=!!c},Ys=function(a,b){var c;
  673. /http[s]?:\/\//.test(a.A)?c=new Js(new os(a.A)):(c=new Js(a.B.o),a.A&&Ks(c,a.A));var d=b||a.range;d&&c.set("range",d.toString());return c},Zs=function(a){if(a.range)return a.range.length;
  674. a=a.o[0];return Math.round(a.I*a.o.info.o)},$s=function(a,b,c,d,e,f){Ps.call(this,a,b,d);
  675. this.index=e||new Fs;this.G=c;this.D=!0;this.A=!!f},bt=function(a,b){a.Nh(b);
  676. return at(a,b.F?b.C+1:b.C,!1)},at=function(a,b,c){if(a.A&&0==a.index.Be(b))return a=new Qs(3,a,null,b),b=0<=b?"sq/"+b:"",new Xs([a],b,!!b);
  677. var d=a.index.Yo(b),e=a.index.Ce(b),f=a.index.Be(b);c?f=c=0:c=0<a.info.o?a.info.o*f:1E3;a=new Qs(3,a,null,b,e,f,0,c,b==a.index.Gb()&&!a.D&&0<c);return new Xs([a],d)},ct=function(a,b,c){this.te=a;
  678. this.durationSecs=b;this.context=c},dt=function(a,b,c,d){this.o=a;
  679. this.te=b;this.durationSecs=c;this.A=d||window.NaN},et=function(){this.o=[];
  680. this.A=null;this.C=0;this.B=[]},ft=function(a){var b=a.B;
  681. a.B=[];return b},gt=function(){this.C=[];
  682. this.o=null;this.A={};this.B={}},kt=function(a,b,c){var d=[];
  683. b=b.getElementsByTagName("SegmentTimeline");for(var e=0;e<b.length;e++){var f=b[e].parentNode.parentNode,k=null;"Period"==f.nodeName?k=ht(a):"AdaptationSet"==f.nodeName?k=it(a,f.attributes.mimeType.value):"Representation"==f.nodeName&&(k=jt(a,f.attributes.id.value));if(null==k)return;k.update(b[e],c);tb(d,ft(k))}Cb(d,function(a){return a.te});
  684. tb(a.C,d)},lt=function(a){a.o&&(a.o.o=[]);
  685. Nb(a.A,function(a){a.o=[]});
  686. Nb(a.B,function(a){a.o=[]})},ht=function(a){a.o||(a.o=new et);
  687. return a.o},it=function(a,b){a.A[b]||(a.A[b]=new et);
  688. return a.A[b]},jt=function(a,b){a.B[b]||(a.B[b]=new et);
  689. return a.B[b]},mt=function(a){var b={};
  690. a=a.split("\r\n");for(var c=0;c<a.length;c++){if(0==a[c].length)return b;var d=a[c].match(/([^:]+):\s+([\S\s]+)/);if(null==d)break;b[d[1]]=d[2]}return null},ut=function(a,b){var c=nt(a,0,1836019558);
  691. if(!c)return null;var d=nt(a,c.offset+8,1835427940),e=nt(a,c.offset+8,1953653094);if(!d||!e)return null;var f=nt(a,e.offset+8,1952868452),k=nt(a,e.offset+8,1953658222),m=nt(a,e.offset+8,1952867444);if(!f||!k||!m)return null;var l=nt(a,e.offset+8,1935763823),e=nt(a,e.offset+8,1935763834);if(l){var n=ot(l),t=ot(l);if(0!=n||1!=t)return null;n=ot(l)}for(var u=ot(f),x=ot(f),E=u&2,B=u&1?pt(f):0,L=E?ot(f):0,D=u&8?ot(f):0,t=u&16?ot(f):0,R=u&32?ot(f):0,u=ot(k),Oa=u&1,na=u&4,Ga=u&256,f=u&512,bb=u&1024,ne=u&
  692. 2048,u=ot(k),hk=Oa?ot(k):0,ik=na?ot(k):0,Oa=[],Em=[],jk=[],kk=[],Fv=0,Yf=0,lc=0;lc<u;lc++){var iD=Ga?ot(k):D;f&&Oa.push(ot(k));var Fd=R;na&&0==lc?Fd=ik:bb&&(Fd=ot(k));Em.push(Fd);Fd=ne?ot(k):0;0==lc&&(Fv=Fd);jk.push(Yf+Fd);kk.push(lc);Yf+=iD}Bb(kk,function(a,b){return jk[a]-jk[b]});
  693. k=[];for(lc=0;lc<u;lc++)k[kk[lc]]=lc;Yf=E?4:0;lc=16*u;Fd=68+Yf+m.size+lc+(l?l.size:0)+(e?e.size:0);c=Fd-c.size;D=new qt(Fd);rt(D,Fd);rt(D,1836019558);tt(D,d);rt(D,Fd-24);rt(D,1953653094);rt(D,16+Yf);rt(D,1952868452);rt(D,131072|(E?2:0));rt(D,x);E&&rt(D,L);tt(D,m);rt(D,20+lc);rt(D,1953658222);rt(D,16781057);rt(D,u);rt(D,B+hk+c);for(lc=Yf=0;lc<u;lc++)m=k[lc],d=Math.round(b*m/u),m=Math.round(b*(m+1)/u)-d,Fd=d-Yf+Fv,rt(D,m),rt(D,f?Oa[lc]:t),rt(D,Em[lc]),rt(D,Fd),Yf+=m;l&&(rt(D,l.size),rt(D,1935763823),
  694. rt(D,0),rt(D,1),rt(D,n+c));e&&tt(D,e);return D.data.buffer},At=function(a){a=new window.DataView(a.buffer,a.byteOffset,a.byteLength);
  695. for(var b=0;vt(a,b);){var c=wt(a,b);if(1836476516==c.type)return xt(c);b=zt(c.type)?b+8:b+c.size}return window.NaN},nt=function(a,b,c){for(;vt(a,b);){var d=wt(a,b);
  696. if(d.type==c)return d;b+=d.size}return null},wt=function(a,b){var c=a.getUint32(b),d=a.getUint32(b+4);
  697. return new Bt(a,b,c,d)},xt=function(a){var b=a.data.getUint8(a.offset+8)?28:20;
  698. return a.data.getUint32(a.offset+b)},vt=function(a,b){if(8>a.byteLength-b)return!1;
  699. 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},zt=function(a){return 1836019558==a||1836019574==a||1953653094==a},Bt=function(a,b,c,d){this.data=a;
  700. this.offset=b;this.size=c;this.type=d;this.o=8},ot=function(a){var b=a.data.getInt32(a.offset+a.o);
  701. a.o+=4;return b},Ct=function(a){var b=a.data.getUint32(a.offset+a.o);
  702. a.o+=4;return b},pt=function(a){var b;
  703. b=a.data;var c=a.offset+a.o;b=4294967296*b.getUint32(c)+b.getUint32(c+4);a.o+=8;return b},Dt=function(a){var b,c=[];
  704. do b=a.data.getUint8(a.offset+a.o),c.push(b),a.o++;while(0!=b);c.pop()},qt=function(a){this.data=new window.DataView(new window.ArrayBuffer(a));
  705. this.o=0},rt=function(a,b){a.data.setInt32(a.o,b);
  706. a.o+=4},tt=function(a,b){for(var c=0;c+4<=b.size;)rt(a,b.data.getUint32(b.offset+c)),c+=4;
  707. for(;c<b.size;)a.data.setUint8(a.o++,b.data.getUint8(b.offset+c++))},Et=function(a){return(a=nt(a,0,1836019558))?a.offset+a.size:null},Ft=function(a,b){this.A=a;
  708. this.o=0;this.B=b||0},It=function(a){for(var b=Gt(a,!1);236==b;)Ht(a),b=Gt(a,!1);
  709. return b},Jt=function(a){var b=Gt(a,!0),c=a.A.byteOffset+a.o,c=new window.DataView(a.A.buffer,c,Math.min(b,a.A.buffer.byteLength-c)),c=new Ft(c,a.B+a.o);
  710. a.o+=b;return c},Ot=function(a){for(var b=Gt(a,!0),c=Kt(a),d=1;d<b;d++)c=256*c+Kt(a);
  711. return c},Ht=function(a){var b=Gt(a,!0);
  712. a.o+=b},Qt=function(a){var b=a.o;
  713. a.o=0;var c=!1;Pt(a,440786851)&&(a.o=0,Pt(a,408125543)&&(c=!0));a.o=b;return c},Rt=function(a){var b=a.o;
  714. a.o=0;var c=1E6;Pt(a,408125543)&&(Gt(a,!0),Pt(a,357149030)&&(Gt(a,!0),Pt(a,2807729)&&(c=Ot(a))));a.o=b;return c},Tt=function(a,b){var c=a.o;
  715. a.o=0;if(!St(a)||!Pt(a,160))return a.o=c,window.NaN;Gt(a,!0);if(!Pt(a,161))return a.o=c,window.NaN;var d=Gt(a,!0);Kt(a);var e=Kt(a)<<8|Kt(a);a.o+=d-3;if(!Pt(a,155))return a.o=c,window.NaN;d=Ot(a);a.o=c;return(e+d)*b/1E9},St=function(a){if(Qt(a)){if(!Pt(a,408125543))return!1;
  716. Gt(a,!0)}if(!Pt(a,524531317))return!1;Gt(a,!0);return!0},Pt=function(a,b){for(;It(a)!=b;)if(Ht(a),a.o>=a.A.byteLength)return!1;
  717. return!0},Gt=function(a,b){var c=Kt(a);
  718. if(1==c){for(var d=c=0;7>d;d++)c=256*c+Kt(a);return c}for(var e=128,d=0;6>d&&e>c;d++)c=256*c+Kt(a),e*=128;return b?c-e:c},Kt=function(a){return a.A.getUint8(a.o++)},Ut=function(a,b,c,d,e){this.info=a;
  719. this.o=b;this.range=c;this.B=null;this.A=d;this.G=!1;this.D=e},Vt=function(a){return a.range?new window.DataView(a.o,a.range.start,a.range.length):new window.DataView(a.o)},Wt=function(a){if(a.info.A!=a.range.length)return!1;
  720. if(1==a.info.o.info.A){if(8>a.info.A||4==a.info.type)return!0;var b=Vt(a),c=b.getUint32(0,!1),b=b.getUint32(4,!1);if(2==a.info.type)return c==a.info.A&&1936286840==b;if(3==a.info.type&&0==a.info.B)return 1836019558==b||1936286840==b||1937013104==b||1718909296==b||1701671783==b}else if(2==a.info.o.info.A){if(4>a.info.A||4==a.info.type)return!0;b=Vt(a);c=b.getUint32(0,!1);if(3==a.info.type&&0==a.info.B)return 524531317==c||440786851==c}return!0},Xt=function(a,b){if(1==a.info.o.info.A){for(var c=a.info.o.o,
  721. d=window.NaN,e,f=0,k=new window.DataView(a.o);vt(k,f);){var m=wt(k,f);
  722. 1936286840==m.type?d=m.data.getUint32(m.offset+16):1836476516==m.type?d=xt(m):1952867444==m.type&&(e=m);f=zt(m.type)?f+8:f+m.size}!d&&c&&(d=At(c));e.data.getUint8(e.offset+8)?(c=e.data,e=e.offset+12,d=Math.round(b*d),c.setUint32(e,Math.round(d/4294967296)),c.setUint32(e+4,Math.round(d&4294967295))):e.data.setUint32(e.offset+12,Math.round(b*d));return!0}c=new Ft(new window.DataView(a.info.o.o.buffer));d=new Ft(new window.DataView(a.o));e=b;f=Rt(c);c=d.o;d.o=0;if(St(d)&&Pt(d,231))if(k=Gt(d,!0),e=Math.floor(1E9*
  723. e/f),Math.ceil(Math.log(e)/Math.log(2)/8)>k)d=!1;else{for(f=k-1;0<=f;f--)d.A.setUint8(d.o+f,e&255),e>>>=8;d.o=c;d=!0}else d=!1;return d},Yt=function(a){var b;
  724. if(1==a.info.o.info.A){a:{for(var c=0,d=new window.DataView(a.o);vt(d,c);){b=wt(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=zt(b.type)?c+8:c+b.size}b=window.NaN}if(!(0<=b)){c=a.info.o.o;d=0;b=new window.DataView(a.o);for(var e,f;vt(b,d);){var k=wt(b,d);1836476516==k.type?e=xt(k):1836019558==k.type&&(f=k);d=zt(k.type)?d+8:d+k.size}!e&&c&&(e=At(c));if(f&&e){f=nt(b,
  725. f.offset+8,1953653094);c=nt(b,f.offset+8,1952868452);f=nt(b,f.offset+8,1953658222);b=ot(c);ot(c);b&2&&ot(c);b=b&8?ot(c):0;var m=ot(f),l=m&1,c=m&4,d=m&256,k=m&512,n=m&1024,m=m&2048,t=Ct(f);l&&ot(f);c&&ot(f);for(var u=l=0;u<t;u++){var x=d?ot(f):b;k&&ot(f);c&&0==u||!n||ot(f);m&&ot(f);l+=x}b=l/e}else b=window.NaN}}else e=new Ft(new window.DataView(a.info.o.o.buffer)),b=Tt(new Ft(new window.DataView(a.o)),Rt(e));return b||a.info.I},Zt=function(a){return 1==a.info.o.info.A?a.G:Qt(new Ft(new window.DataView(a.o)))},
  726. $t=function(a,b){return a.B&&a.B[b]?(0,window.parseInt)(a.B[b],10):null},au=function(){this.xa=0;
  727. this.o=new window.Float64Array(128);this.A=new window.Float64Array(128);this.C=1;this.B=!1},bu=function(a){if(a.o.length<a.xa+1){var b=2*a.o.length,b=b+2,c=a.o;
  728. a.o=new window.Float64Array(b+1);var d=a.A;a.A=new window.Float64Array(b+1);for(b=0;b<a.xa+1;b++)a.o[b]=c[b],a.A[b]=d[b]}},cu=function(a,b,c,d,e,f){Ps.call(this,a,b,c||void 0);
  729. this.indexRange=d;this.D=null;this.index=new au;this.A=e;this.lastModified=f},du=function(a,b,c,d){for(var e=[];b<=a.index.Gb();b++){var f;
  730. f=a.index;var k=b;f=As(f.Zj(k),k+1<f.xa||f.B?f.o[k+1]-f.o[k]:-1);var k=a.index.Ce(b),m=a.index.Be(b),l=Math.max(0,c-f.start),n=Math.min(f.end+1,c+d)-(f.start+l);e.push(new Qs(3,a,f,b,k,m,l,n,b==a.index.Gb()&&l+n==f.length));if(f.start+l+n>=c+d)break}return new Xs(e)},eu=function(a,b,c){a.Nh(b);
  731. if(!a.Qc())return c=As(b.range.end+1,c),c.end+1>a.A&&(c=new ys(c.start,a.A-1)),a=[new Qs(4,b.o,c)],new Xs(a);4==b.type&&(b=a.rj(b),b=b[b.length-1]);var d=0,e=b.range.start+b.B+b.A;3==b.type&&(d=b.C,e==b.range.end+1&&(d+=1));return du(a,d,e,c)},gu=function(a,b){Yj.call(this);
  732. this.I=this.duration=0;this.isLive=this.B=!1;this.G=fu();this.D=window.Infinity;this.o={};this.K=a||"";this.F=this.H=0;this.C=null;this.J=fu();this.P=b||!1;this.A=!1},hu=function(a){return Pb(a.o,function(a){return!!a.info.De},a)},ku=function(a,b,c,d){return d?iu(a):ju(a,b,c)},ju=function(a,b,c){var d=new gu;
  733. d.duration=c||0;F(a,function(a){var c=lu(a,b,d.duration),k=zs(a.init),m=zs(a.index),l=(0,window.parseInt)(a.clen,10),n=mu(a.url,c,a.s);a=(0,window.parseInt)(a.lmt,10);n&&(c=new cu(n,c,k,m,l,a),d.o[c.info.id]=c)});
  734. return d},iu=function(a){var b=new gu;
  735. F(a,function(a){var d=lu(a);if(a=mu(a.url,d,a.s))d=new $s(a,d,"",void 0,void 0,!0),b.o[d.info.id]=d});
  736. b.B=!0;b.A=!0;b.isLive=!0;return b},lu=function(a,b,c){var d=a.type,e=nu(a),f=null;
  737. js(d)&&(f=(a.size||"640x360").split("x"),f=new ns(+f[0],+f[1],+a.fps,+a.projection_type,void 0,void 0,!!a.isFastLoad,a.quality_label,a.eotf));var k=null,m=null;is(d)&&(k=new cs,a.name&&(m=new ks(a.name,a.audio_track_id,"1"==a.isDefault)));var l=(0,window.parseInt)(a.bitrate,10)/8,n=(0,window.parseInt)(a.clen,10);c=c&&n?n/c:0;var t=null;b&&a.drm_families&&(t={},F(a.drm_families.split(","),function(a){t[a]=b[a]}));
  738. return new fs(e,d,k,f,m,t,l,c)},nu=function(a){var b=a.itag;
  739. a.xtags&&(b=a.itag+";"+a.xtags);return b},mu=function(a,b,c){a=new os(a);
  740. a.set("alr","yes");a.set("keepalive","yes");a.set("ratebypass","yes");a.set("mime",(0,window.encodeURIComponent)(b.mimeType.split(";")[0]));c&&a.set("signature",$r(c));return a},pu=function(a,b){var c=Bs(b,"id"),c=c.replace(":",";");
  741. "captions"==c&&(c=Bs(b,"lang"));var d=Bs(b,"mimeType"),e=Bs(b,"codecs"),d=e?d+'; codecs="'+e+'"':d,e=(0,window.parseInt)(Bs(b,"bandwidth"),10)/8,f=(0,window.parseInt)(Cs(b,"BaseURL").getAttribute("yt:contentLength"),10),f=a.duration&&f?f/a.duration:0,k=null;if(js(d)){var k=(0,window.parseInt)(Bs(b,"width"),10),m=(0,window.parseInt)(Bs(b,"height"),10),l=(0,window.parseInt)(Bs(b,"frameRate"),10),n=Bs(b,"yt:stereoLayout"),t="equirectangular"==Bs(b,"yt:projectionType"),u,x;t&&"layout_top_bottom"==n?u=
  742. 3:t&&!n?u=2:"layout_left_right"==n&&(x=1);k=new ns(k,m,l,u,x)}x=u=null;is(d)&&(u=new cs((0,window.parseInt)(Bs(b.getElementsByTagName("AudioChannelConfiguration")[0],"value"),10)),x=Bs(b,"lang")||"",(m=Cs(b,"Role"))?(m=Bs(m,"value")||"",x=x&&Xb(ou,m)?new ks(Bs(b,"yt:langName")||x+" - "+m,x+"."+ou[m],"main"==m):null):x=null);l=null;if(m=Cs(b,"ContentProtection"))if((l=m.attributes.schemeIdUri)&&"http://youtube.com/drm/2012/10/10"==l.textContent)for(l={},m=m.firstChild;null!=m;m=m.nextSibling)"yt:SystemURL"==
  743. m.nodeName&&(l[m.attributes.type.textContent]=m.textContent.trim());else l=null;return new fs(c,d,u,k,x,l,e,f)},qu=function(a,b){a.F=1;
  744. a.G=fu();return Id(bs(b||a.K).then(y(a.R,a)),y(a.N,a))},ru=function(a,b){var c=a.getAttribute("media"),d=null,e=a.getAttribute("mediaRange");
  745. null!=e&&(0<=(0,window.parseInt)(e.split("-")[1],10)?d=zs(e):c=c+"?range="+e);return new Es(b.o,b.te,b.durationSecs,b.A,c,d)},tu=function(a){a=a.o;
  746. for(var b in a){var c=a[b].index;if(c&&c.lf())return c.Ag()}return window.NaN},uu=function(a){a=a.o;
  747. for(var b in a){var c=a[b].index;if(c&&c.lf())return c.Ps()}return 0},vu=function(a){var b=a.o,c;
  748. for(c in b)if((a=b[c].index)&&a.lf()){c=0;for(b=a.Df();b<=a.Gb();b++)c+=a.Be(b);c/=a.nl();return.5*Math.round(c/.5)}return window.NaN},wu=function(a,b){Nb(a.o,function(a){Nb(b,function(b,e){var f=a.F;
  749. f.o.set(e,b);f.C.set(e,b)})})},xu=function(a,b){var c=(0).toString();
  750. if(!a.o[c]){var d=new ns(0,0,0,void 0,void 0,"auto"),d=new fs(c,"",void 0,d);a.o[c]=b?new $s(new os("http://www.youtube.com/videoplayback"),d,""):new cu(new os("http://www.youtube.com/videoplayback"),d,new ys(0,0),new ys(0,0),0,window.NaN)}},yu=function(){var a=r("yt.player.utils.videoElement_");
  751. a||(a=window.document.createElement("video"),q("yt.player.utils.videoElement_",a,void 0));return a},Bu=function(a){var b=yu();
  752. try{if(b.canPlayType){a=a?zu:Au;for(var c=0;c<a.length;c++)if(b.canPlayType(a[c]))return null}return"fmt.noneavailable"}catch(d){return"html5.missingapi"}},Cu=function(a){a=O("div",{"class":a});
  753. window.document.body.appendChild(a);var b="none"==nr(a,"display");jh(a);return b},Du=function(a,b,c){this.o=a;
  754. this.B=b;this.D=c;this.C={};this.A=null;this.fairPlayCert=""},Fu=function(a){return!a.A&&Eu()&&"com.microsoft.playready"==a.B},Gu=function(a){return!a.A&&Eu()&&"com.apple.fps.1_0"==a.B},Eu=function(){var a=window.MSMediaKeys;
  755. Hu&&wc("8")&&!a&&(a=window.WebKitMediaKeys);return a&&a.isTypeSupported?a:null},Lu=function(a){var b=Sl&&Iu("45"),c=Ju&&a.ea("edge_nonprefixed_eme");
  756. a=Ku&&Iu("47")&&a.ea("firefox_eme");return window.navigator.requestMediaKeySystemAccess&&(b||c||a)},Nu=function(a,b){this.A=[];
  757. this.o={};this.B={};this.C=null;this.G=b;Mu(this,a)},Mu=function(a,b){Nb(b,function(a){a.forEach(function(a){a.De&&Nb(a.De,function(b,c){Ou[c]&&Nb(Ou[c],function(b){this.o[b]=this.o[b]||new Du(c,b,a.De[c]);
  758. this.B[c]=this.B[c]||{};this.B[c][a.mimeType]=!0},this)},this)},this)},a);
  759. a.A=Pu.filter(function(a){return!!this.o[a]},a)},Ru=function(a){var b=a.A.shift(),c=a.o[b],d=Qu(a.B[c.o]);
  760. window.navigator.requestMediaKeySystemAccess(b,d).then(Bi(y(a.F,a,c)),Bi(y(a.D,a,c)))},Qu=function(a){var b={initDataTypes:["cenc",
  761. "webm"],audioCapabilities:[],videoCapabilities:[]};Nb(a,function(a,d){(0==d.indexOf("audio/")?b.audioCapabilities:b.videoCapabilities).push({contentType:d})});
  762. return[b]},Su=function(a){var b=Eu(),c=yu();
  763. if(b){if(Hu){a.C(new Du("fairplay","com.apple.fps.1_0",""));return}var d=function(a,c){return b.isTypeSupported(c,a)}}else c.addKey||c.webkitAddKey?d=y(c.canPlayType,c):d=function(){return!1};
  764. c=(c=eb(a.A,function(a){var b=this.o[a],c,m;Nb(this.B[b.o],function(l,n){d(n,a)&&(b.C[n]=!0,c|=0==n.indexOf("audio/"),m|=0==n.indexOf("video/"))},this);
  765. return c&&m},a))?a.o[c]:null;
  766. a.A=[];a.C(c)},Tu=function(a){this.languageCode=a.languageCode;
  767. this.languageName=a.languageName||null;this.o=a.languageOriginal||null;this.id=a.id||null;this.isDefault=a.is_default||!1},Uu=function(a){a=a||{};
  768. 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=(0,window.parseInt)(b[c],10);(0,window.isNaN)(d)||(this.C=Math.max(d,this.C))}this.A=a.languageCode||"";this.F=a.languageName;this.B=a.kind||"";this.D=a.name;this.L=a.id;this.K=a.is_servable;this.isDefault=a.is_default;this.H=a.is_translateable;this.I=a.url||null;this.G=a.vss_id||"";this.o=null;a.translationLanguage&&(this.o=new Tu(a.translationLanguage))},Wu=function(a){var b={format:a.C,
  769. languageCode:a.A,languageName:a.F,displayName:Vu(a),kind:a.B,name:a.D,id:a.L,is_servable:a.K,is_default:a.isDefault,is_translateable:a.H,vss_id:a.G};a.o&&(a=a.o,b.translationLanguage={languageCode:a.languageCode,languageName:a.languageName,languageOriginal:a.o,id:a.id,is_default:a.isDefault});return b},Vu=function(a){var b=a.F||"",c=[b];
  770. "asr"==a.B&&-1==b.indexOf("(")&&c.push(" (",P("YTP_ASR_SETTINGS_LABEL"),")");a.D&&c.push(" - ",a.D);a.o&&c.push(" >> ",a.o.languageName);return c.join("")},Xu=function(a,b){var c=new Uu;
  771. c.A=a.A;c.F=a.F;c.D=a.D;c.B=a.B;c.isDefault=!1;c.H=a.H;c.G=a.G;c.I=a.I;c.o=b;return c},Yu=function(a,b){this.id=a;
  772. this.Ib=b;this.captionTracks=[];this.Ci=this.Uk=null;this.uo=0},Zu=function(a,b,c){this.A=a||0;
  773. this.o=b||0;this.B=c},$u=function(a,b,c){return new Zu(ms[a]||0,ms[b]||0,c)},av=function(a){var b=ms.auto;
  774. return a.A==b&&a.o==b},cv=function(a,b){if(b.B&&av(b))return bv;
  775. if(b.B||av(a))return b;if(a.B||av(b))return a;var c=a.A&&b.A?Math.max(a.A,b.A):a.A||b.A,d=a.o&&b.o?Math.min(a.o,b.o):a.o||b.o,c=Math.min(c,d);return c==a.A&&d==a.o?a:new Zu(c,d,!1)},ev=function(a){var b=a.o||a.A;
  776. return Zb(dv,function(a){return ms[a]==b})||"auto"},fv=function(a,b,c){this.videoInfos=a;
  777. this.o=b||null;this.audioTracks=[];this.A=c||null;if(this.o){var d={};F(this.o,y(function(a){if(a.Ib&&!d[a.id]){var b=new Yu(a.id,a.Ib);d[a.id]=b;this.audioTracks.push(b)}},this))}},gv=function(a,b){this.o=a;
  778. this.A=b},hv=function(a){this.o=[];
  779. if(a)a:{var b;if(a instanceof hv){if(b=a.Qa(),a=a.Oa(),0>=this.fb()){for(var c=this.o,d=0;d<b.length;d++)c.push(new gv(b[d],a[d]));break a}}else b=Vb(a),a=Ub(a);for(d=0;d<b.length;d++)iv(this,b[d],a[d])}},iv=function(a,b,c){var d=a.o;
  780. d.push(new gv(b,c));b=d.length-1;a=a.o;for(c=a[b];0<b;)if(d=b-1>>1,a[d].o>c.o)a[b]=a[d],b=d;else break;a[b]=c},jv=function(){hv.call(this)},kv=function(a,b){Yj.call(this);
  781. this.A=a;this.B=new jv;this.o=null;this.D={};this.C=b||""},nv=function(a,b,c){var d;
  782. for(c=lv(a.A,c);0<=c;){d=a.A.o[c];if(d=d.B[Math.floor(b/(d.Lb*d.rows))]?mv(d,b):null)return d;c--}return mv(a.A.o[0],b)},pv=function(a,b,c){c=lv(a.A,c);
  783. for(var d,e;0<=c;c--)if(d=a.A.o[c],e=Math.floor(b/(d.Lb*d.rows)),!d.B[e]){d=a;var f=c,k=f+"-"+e;d.D[k]||(d.D[k]=!0,iv(d.B,f,{Xp:f,fq:e}))}ov(a)},ov=function(a){if(!a.o&&!a.B.isEmpty()){var b=a.B.remove(),c=new window.Image;
  784. a.C&&(c.crossOrigin=a.C);c.src=a.A.getUrl(b.Xp,b.fq);c.onload=y(a.F,a,b.Xp,b.fq);a.o=c}},qv=function(a,b,c,d){this.B={};
  785. this.L=a;this.J=b;a=c.split("#");this.H=(0,window.parseInt)(a[0],10);this.G=(0,window.parseInt)(a[1],10);this.A=(0,window.parseInt)(a[2],10);this.Lb=(0,window.parseInt)(a[3],10);this.rows=(0,window.parseInt)(a[4],10);this.D=(0,window.parseInt)(a[5],10);this.C=a[6];this.F=a[7];this.K=d},mv=function(a,b){var c=Math.floor(b/(a.Lb*a.rows)),d=a.Lb*a.rows,e=b%d,f=e%a.Lb,e=Math.floor(e/a.Lb),k,m=a.Dn()+1-d*c;
  786. m<a.Lb?(k=m,d=1):(k=a.Lb,d=m<d?Math.ceil(m/a.Lb):a.rows);return{url:a.getUrl(c),Lw:f,Lb:k,row:e,rows:d,gq:a.H*k,cq:a.G*d}},rv=function(a,b){this.o=this.A(a,b);
  787. this.B={};1<this.o.length&&this.o[0].isDefault()&&this.o.splice(0,1)},lv=function(a,b){var c=a.B[b];
  788. if(c)return c;for(var c=a.o.length,d=0;d<c;d++)if(a.o[d].getWidth()>=b)return a.B[b]=d;a.B[b]=c-1;return c-1},tv=function(a,b,c,d){c=c.split("#");
  789. c=[c[1],c[2],0,c[3],c[4],-1,c[0],""].join("#");qv.call(this,a,b,c,0);this.o=null;this.I=d?3:0},uv=function(a,b){this.F=b;
  790. rv.call(this,a,0)},vv=function(a,b){return void 0==b?a:"1"==b?!0:!1},wv=function(a,b,c){for(var d in c)if(c[d]==b)return c[d];
  791. return a},xv=function(a,b){return void 0==b?a:Number(b)},yv=function(a,b){return void 0==b?a:b.toString()},Av=function(a){if(a&&(a=a.match(zv))){var b=(0,window.parseFloat)(a[2]);
  792. if(0<b)return(0,window.parseFloat)(a[1])/b}return window.NaN},Bv=function(a,b){var c=ms.auto,d=ms[b];
  793. return d>ms.medium?new Zu(d,c,!1):d>=c?new Zu(c,d,!1):a},Cv=function(){this.o={apiaryHost:Ai("APIARY_HOST",void 0),
  794. rw:Ai("APIARY_HOST_FIRSTPARTY",void 0),gapiHintOverride:Ai("GAPI_HINT_OVERRIDE"),gapiHintParams:Ai("GAPI_HINT_PARAMS",void 0),innertubeApiKey:Ai("INNERTUBE_API_KEY",void 0),innertubeApiVersion:Ai("INNERTUBE_API_VERSION",void 0),Wl:Ai("INNERTUBE_CONTEXT_CLIENT_NAME","WEB"),innertubeContextClientVersion:Ai("INNERTUBE_CONTEXT_CLIENT_VERSION",void 0),Yl:Ai("INNERTUBE_CONTEXT_HL",void 0),Xl:Ai("INNERTUBE_CONTEXT_GL",void 0)}},Dv=function(){},Kv=function(){Ei(Ev);
  795. if(!$b(Gv))for(var a in Gv){var b=Hv[a];b||(b=new Iv[a],Hv[a]=b);var c=b.o,c={client:{hl:c.Yl,gl:c.Xl,clientName:c.Wl,clientVersion:c.innertubeContextClientVersion}};Ai("DELEGATED_SESSION_ID")&&(c.user={onBehalfOfUser:Ai("DELEGATED_SESSION_ID")});c={context:c};c.requestTimeMs=Math.round(fu());c[Jv[a]]=Gv[a];var d={};Ij("//"+b.o.apiaryHost+("/youtubei/"+b.o.innertubeApiVersion+"/"+a)+"?alt=json&key="+b.o.innertubeApiKey,{headers:{"Content-Type":"application/json","X-Goog-Visitor-Id":Ai("VISITOR_DATA")},
  796. Jb:c,pr:"JSON",Sc:d.Sc,ob:d.ob,onError:d.onError,timeout:d.timeout});delete Gv[a]}},Lv=function(a,b,c){var d={};
  797. d.eventTimeMs=Math.round(c||fu());d[a]=b;Gv.log_event=Gv.log_event||[];a=Gv.log_event;a.push(d);Iv.log_event=Cv;20<=a.length?Kv():(Ei(Ev),Ev=Ci(Kv,Ai("VISIBILITY_TIMEOUT",1E4)))},Mv=function(){return!!r("yt.scheduler.instance")},Nv=function(a,b){(0,window.isNaN)(b)&&(b=void 0);
  798. var c=r("yt.scheduler.instance.addJob");return c?c(a,0,b):void 0===b?(a(),window.NaN):Ci(a,b||0)},Ov=function(a){if(!(0,window.isNaN)(a)){var b=r("yt.scheduler.instance.cancelJob");
  799. b?b(a):Ei(a)}},Qv=function(){var a=r("yt.scheduler.instance.start");
  800. a&&(Ei(Pv),a())},Rv=function(){var a=r("yt.scheduler.instance.pause");
  801. a&&(a(),Ei(Pv),Pv=Ci(Qv,800))},Sv=function(a,b){this.version=a;
  802. this.args=b},Tv=function(a){if(!a.xe){var b={};
  803. a.call(b);a.xe=b.version}return a.xe},Uv=function(a,b){function c(){a.apply(this,b.args)}
  804. if(!b.args||!b.version)throw Error("yt.pubsub2.Data.deserialize(): serializedData is incomplete.");var d;try{d=Tv(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;}},Vv=function(a,b){this.topic=a;
  805. this.o=b},aw=function(a,b){var c=Wv,d=Xv();
  806. if(!d)return 0;var e=d.subscribe(c.toString(),function(d,k){if(!window.yt.pubsub2.skipSubKey_||window.yt.pubsub2.skipSubKey_!=e){var m=function(){if(Yv[e])try{if(k&&c instanceof Vv&&c!=d)try{k=Uv(c.o,k)}catch(l){throw l.message="yt.pubsub2 cross-binary conversion error for "+c.toString()+": "+l.message,l;}a.call(b||window,k)}catch(l){Gi(l)}};
  807. Zv[c.toString()]?Mv()?Nv(m,void 0):Ci(m,0):m()}});
  808. Yv[e]=!0;$v[c.toString()]||($v[c.toString()]=[]);$v[c.toString()].push(e);return e},cw=function(a,b){var c=aw(function(d){a.apply(b,arguments);
  809. bw(c)},b);
  810. return c},bw=function(a){var b=Xv();
  811. b&&(ga(a)&&(a=[a]),F(a,function(a){b.unsubscribeByKey(a);delete Yv[a]}))},Xv=function(){return r("yt.pubsub2.instance_")},ew=function(){if(window.crypto&&window.crypto.getRandomValues)try{var a=Array(16),b=new window.Uint8Array(16);
  812. window.crypto.getRandomValues(b);for(var c=0;c<a.length;c++)a[c]=b[c];return a}catch(e){}a=Array(16);for(b=0;16>b;b++){for(var c=J(),d=0;d<c%23;d++)a[b]=Math.random();a[b]=Math.floor(256*Math.random())}if(b=dw)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},fw=function(){for(var a=ew(),b=[],c=0;c<a.length;c++)b.push("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-_".charAt(a[c]&63));
  813. return b.join("")},gw=function(){return pi(ew(),function(a){return(a&15).toString(16)}).join("")},hw=function(a){Sv.call(this,1,arguments);
  814. this.o=a},jw=function(a){var b=a||window;
  815. if(!(b.performance&&b.performance.timing&&b.performance.getEntriesByType))return{wj:0,es:0};a=Xg(b||window);for(var c=[],d=b.document.getElementsByTagName("*"),e=0,f=d.length;e<f;e++){var k=d[e];if("IMG"==k.tagName||"IFRAME"==k.tagName){var m=iw(k,k.src,a);if(m){if("IFRAME"==k.tagName){var l;try{l=jw(k.contentWindow).wj}catch(n){l=0}0<l&&(m.timing=l)}c.push(m)}}(m=b.getComputedStyle(k)["background-image"])&&(m=kw.exec(m))&&1<m.length&&(m=iw(k,m[1],a))&&c.push(m)}l=b.performance.getEntriesByType("resource");
  816. k=b.performance.getEntriesByType("mark");d={};e=0;for(f=l.length;e<f;e++)m=l[e],d[m.name]=m.responseEnd;e=0;for(f=k.length;e<f;e++)m=k[e],"mark_iframe_loaded: "==m.name.slice(0,20)&&(d[m.name.slice(20)]=m.startTime);e=0;for(f=c.length;e<f;e++)k=c[e],k.timing||(k.timing=d[k.url]||0);b=lw(b,l);a=mw(b,a,c);k=c=0;if(a.length)for(d=l=0,e=a.length;d<e;d++)f=a[d],k=f.timing-k,0<k&&1>l&&(c+=(1-l)*k),k=f.timing,l=f.progress;return{wj:Math.round(c||b),es:k}},iw=function(a,b,c){if(b&&a.getBoundingClientRect){var d=
  817. a.getBoundingClientRect();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement