(function(){/* Copyright The Closure Library Authors. SPDX-License-Identifier: Apache-2.0 */ 'use strict';var m;function aa(a){var b=0;return function(){return b>>0)+"_",e=0;return b}); r("Symbol.iterator",function(a){if(a)return a;a=Symbol("Symbol.iterator");for(var b="Array Int8Array Uint8Array Uint8ClampedArray Int16Array Uint16Array Int32Array Uint32Array Float32Array Float64Array".split(" "),c=0;c=e}}); r("Array.prototype.find",function(a){return a?a:function(b,c){a:{var d=this;d instanceof String&&(d=String(d));for(var e=d.length,f=0;f=f}}); r("Object.setPrototypeOf",function(a){return a||na}); var Ga="function"==typeof Object.assign?Object.assign:function(a,b){for(var c=1;cc&&(c=Math.max(c+e,0));c>>0),Qa=0;function Ra(a,b,c){return a.call.apply(a.bind,arguments)} function Sa(a,b,c){if(!a)throw Error();if(2b?null:"string"===typeof a?a.charAt(b):a[b]} function eb(a,b){b=$a(a,b);var c;(c=0<=b)&&Array.prototype.splice.call(a,b,1);return c} function fb(a){var b=a.length;if(0/g,Ib=/"/g,Jb=/'/g,Kb=/\x00/g,Lb=/[\x00&<>"']/;function Mb(a,b){this.h=b===Nb?a:""} m=Mb.prototype;m.ca=!0;m.ba=function(){return this.h.toString()}; m.Pa=!0;m.La=function(){return 1}; m.toString=function(){return this.h.toString()}; function Ob(a){if(a instanceof Mb&&a.constructor===Mb)return a.h;Ka(a);return"type_error:SafeUrl"} var Pb=RegExp('^(?:audio/(?:3gpp2|3gpp|aac|L16|midi|mp3|mp4|mpeg|oga|ogg|opus|x-m4a|x-matroska|x-wav|wav|webm)|font/\\w+|image/(?:bmp|gif|jpeg|jpg|png|tiff|webp|x-icon)|video/(?:mpeg|mp4|ogg|webm|quicktime|x-matroska))(?:;\\w+=(?:\\w+|"[\\w;,= ]+"))*$',"i"),Qb=/^data:(.*);base64,[a-z0-9+\/]+=*$/i,Rb=/^(?:(?:https?|mailto|ftp):|[^:/?#]*(?:[/?#]|$))/i,Nb={},Sb=new Mb("about:invalid#zClosurez",Nb);var Tb;a:{var Ub=z.navigator;if(Ub){var Vb=Ub.userAgent;if(Vb){Tb=Vb;break a}}Tb=""}function H(a){return-1!=Tb.indexOf(a)} ;function Wb(){return(H("Chrome")||H("CriOS"))&&!H("Edge")} ;var Xb={};function Yb(a,b,c){this.h=c===Xb?a:"";this.i=b;this.ca=this.Pa=!0} Yb.prototype.La=function(){return this.i}; Yb.prototype.ba=function(){return this.h.toString()}; Yb.prototype.toString=function(){return this.h.toString()}; function Zb(a,b){var c=tb();a=c?c.createHTML(a):a;return new Yb(a,b,Xb)} ;function $b(a,b){b instanceof Mb||b instanceof Mb||(b="object"==typeof b&&b.ca?b.ba():String(b),Rb.test(b)||(b="about:invalid#zClosurez"),b=new Mb(b,Nb));a.href=Ob(b)} function ac(a,b){a.rel="stylesheet";a.href=Bb(b).toString();(b=bc('style[nonce],link[rel="stylesheet"][nonce]',a.ownerDocument&&a.ownerDocument.defaultView))&&a.setAttribute("nonce",b)} function cc(){return bc("script[nonce]",void 0)} var dc=/^[\w+/_-]+[=]{0,2}$/;function bc(a,b){b=(b||z).document;return b.querySelector?(a=b.querySelector(a))&&(a=a.nonce||a.getAttribute("nonce"))&&dc.test(a)?a:"":""} ;function ec(a){for(var b=0,c=0;c>>0;return b} ;var fc=RegExp("^(?:([^:/?#.]+):)?(?://(?:([^\\\\/?#]*)@)?([^\\\\/?#]*?)(?::([0-9]+))?(?=[\\\\/?#]|$))?([^?#]+)?(?:\\?([^#]*))?(?:#([\\s\\S]*))?$");function gc(a){return a?decodeURI(a):a} function hc(a){return gc(a.match(fc)[3]||null)} function ic(a,b,c){if(Array.isArray(b))for(var d=0;dc&&(c=a.length);var d=a.indexOf("?");if(0>d||d>c){d=c;var e=""}else e=a.substring(d+1,c);a=[a.substr(0,d),e,a.substr(c)];c=a[1];a[1]=b?c?c+"&"+b:b:c;b=a[0]+(a[1]?"?"+a[1]:"")+a[2]}else b=a;return b} var lc=/#|$/;function mc(a){z.setTimeout(function(){throw a;},0)} ;var nc="symbol"===typeof Symbol(),oc=Symbol("INTERNAL_ARRAY_STATE");function pc(a){if(!Array.isArray(a))return a;Object.isFrozen(a)||(nc?a[oc]|=1:void 0!==a.h?a.h|=1:Object.defineProperties(a,{h:{value:1,configurable:!0,writable:!0,enumerable:!1}}));return a} ;function qc(){return H("iPhone")&&!H("iPod")&&!H("iPad")} ;function rc(a){rc[" "](a);return a} rc[" "]=Ia;var sc=H("Opera"),tc=H("Trident")||H("MSIE"),uc=H("Edge"),vc=H("Gecko")&&!(-1!=Tb.toLowerCase().indexOf("webkit")&&!H("Edge"))&&!(H("Trident")||H("MSIE"))&&!H("Edge"),wc=-1!=Tb.toLowerCase().indexOf("webkit")&&!H("Edge"),xc=H("Android");function yc(){var a=z.document;return a?a.documentMode:void 0} var zc;a:{var Ac="",Bc=function(){var a=Tb;if(vc)return/rv:([^\);]+)(\)|;)/.exec(a);if(uc)return/Edge\/([\d\.]+)/.exec(a);if(tc)return/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(a);if(wc)return/WebKit\/(\S+)/.exec(a);if(sc)return/(?:Version)[ \/]?(\S+)/.exec(a)}(); Bc&&(Ac=Bc?Bc[1]:"");if(tc){var Cc=yc();if(null!=Cc&&Cc>parseFloat(Ac)){zc=String(Cc);break a}}zc=Ac}var Dc=zc,Ec;if(z.document&&tc){var Fc=yc();Ec=Fc?Fc:parseInt(Dc,10)||void 0}else Ec=void 0;var Gc=Ec;var Hc=qc()||H("iPod"),Ic=H("iPad");!H("Android")||Wb();Wb();var Jc=H("Safari")&&!(Wb()||H("Coast")||H("Opera")||H("Edge")||H("Edg/")||H("OPR")||H("Firefox")||H("FxiOS")||H("Silk")||H("Android"))&&!(qc()||H("iPad")||H("iPod"));var Kc={},Lc=null; function Mc(a,b){La(a);void 0===b&&(b=0);if(!Lc){Lc={};for(var c="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".split(""),d=["+/=","+/","-_=","-_.","-_"],e=0;5>e;e++){var f=c.concat(d[e].split(""));Kc[e]=f;for(var g=0;g>2];k=b[(k&3)<<4|l>>4];l=b[(l&15)<<2|h>>6];h=b[h&63];c[e++]=""+g+k+l+h}g=0;h=d;switch(a.length- f){case 2:g=a[f+1],h=b[(g&15)<<2]||d;case 1:a=a[f],c[e]=""+b[a>>2]+b[(a&3)<<4|g>>4]+h+d}return c.join("")} ;var Nc="function"===typeof Uint8Array;function Oc(a){return null!==a&&"object"===typeof a&&a.constructor===Object} function Pc(a,b){if(null!=a)return Array.isArray(a)||Oc(a)?Qc(a,b):b(a)} function Qc(a,b){if(Array.isArray(a)){for(var c=Array(a.length),d=0;d=a.u?a.j?a.j[b]:void 0:a.i[b+a.l]} function cd(a,b,c){a.h||(a.h={});if(b in a.h)return a.h[b];var d=bd(a,b);d||(d=pc([]),dd(a,b,d));c=new Tc(d,c);return a.h[b]=c} function dd(a,b,c,d){(void 0===d?0:d)||b>=a.u?(ad(a),a.j[b]=c):a.i[b+a.l]=c} function ed(a,b,c,d){if(-1===c)return null;a.h||(a.h={});a.h[c]||(d=bd(a,c,void 0===d?!1:d))&&(a.h[c]=new b(d));return a.h[c]} function fd(a,b,c){a.h||(a.h={});var d=a.h[c];if(!d){var e=void 0===e?!1:e;d=bd(a,c,e);null==d&&(d=$c);d===$c&&(d=pc([]),dd(a,c,d,e));e=d;d=[];for(var f=0;fp;p+=4)u[p/4]=q[p]<<24|q[p+1]<<16|q[p+2]<<8|q[p+3];for(p=16;80>p;p++)q=u[p-3]^u[p-8]^u[p-14]^u[p-16],u[p]=(q<<1|q>>>31)&4294967295;q=e[0];var y=e[1],C=e[2],F=e[3],O=e[4];for(p=0;80>p;p++){if(40>p)if(20>p){var R=F^y&(C^F);var Aa=1518500249}else R=y^C^F,Aa=1859775393;else 60>p?(R=y&C|F&(y|C),Aa=2400959708):(R=y^C^F,Aa=3395469782);R=((q<<5|q>>>27)&4294967295)+R+O+Aa+u[p]&4294967295;O=F;F=C;C=(y<<30|y>>>2)&4294967295;y=q;q=R}e[0]=e[0]+q&4294967295;e[1]=e[1]+y&4294967295; e[2]=e[2]+C&4294967295;e[3]=e[3]+F&4294967295;e[4]=e[4]+O&4294967295} function c(q,u){if("string"===typeof q){q=unescape(encodeURIComponent(q));for(var p=[],y=0,C=q.length;yl?c(h,56-l):c(h,64-(l-56));for(var p=63;56<=p;p--)f[p]=u&255,u>>>=8;b(f);for(p=u=0;5>p;p++)for(var y=24;0<=y;y-=8)q[u++]=e[p]>>y&255;return q} for(var e=[],f=[],g=[],h=[128],k=1;64>k;++k)h[k]=0;var l,n;a();return{reset:a,update:c,digest:d,xb:function(){for(var q=d(),u="",p=0;ph?"":0==h?";expires="+(new Date(1970,1,1)).toUTCString():";expires="+(new Date(Date.now()+1E3*h)).toUTCString();this.h.cookie=a+"="+b+c+g+h+d+(null!=e?";samesite="+ e:"")}; m.get=function(a,b){for(var c=a+"=",d=(this.h.cookie||"").split(";"),e=0,f;e>>0);function qe(a){if("function"===typeof a)return a;a[ye]||(a[ye]=function(b){return a.handleEvent(b)}); return a[ye]} ;function J(){I.call(this);this.i=new ie(this);this.R=this;this.D=null} D(J,I);J.prototype[ee]=!0;J.prototype.addEventListener=function(a,b,c,d){oe(this,a,b,c,d)}; J.prototype.removeEventListener=function(a,b,c,d){we(this,a,b,c,d)}; function ze(a,b){var c=a.D;if(c){var d=[];for(var e=1;c;c=c.D)d.push(c),++e}a=a.R;c=b.type||b;"string"===typeof b?b=new Xd(b,a):b instanceof Xd?b.target=b.target||a:(e=b,b=new Xd(c,a),rb(b,e));e=!0;if(d)for(var f=d.length-1;!b.j&&0<=f;f--){var g=b.h=d[f];e=Ae(g,c,!0,b)&&e}b.j||(g=b.h=a,e=Ae(g,c,!0,b)&&e,b.j||(e=Ae(g,c,!1,b)&&e));if(d)for(f=0;!b.j&&fa&&0===a%1&&this.data_[a]!=b&&(this.data_[a]=b,this.h=-1)}; Ee.prototype.get=function(a){return!!this.data_[a]}; function Fe(a){-1==a.h&&(a.h=cb(a.data_,function(b,c,d){return c?b+Math.pow(2,d):b},0)); return a.h} ;function Ge(a,b){this.j=a;this.l=b;this.i=0;this.h=null} Ge.prototype.get=function(){if(0a.i&&(a.i++,b.next=a.h,a.h=b)} ;var Ie; function Je(){var a=z.MessageChannel;"undefined"===typeof a&&"undefined"!==typeof window&&window.postMessage&&window.addEventListener&&!H("Presto")&&(a=function(){var e=xd(document,"IFRAME");e.style.display="none";document.documentElement.appendChild(e);var f=e.contentWindow;e=f.document;e.open();e.close();var g="callImmediate"+Math.random(),h="file:"==f.location.protocol?"*":f.location.protocol+"//"+f.location.host;e=Ta(function(k){if(("*"==h||k.origin==h)&&k.data==g)this.port1.onmessage()},this); f.addEventListener("message",e,!1);this.port1={};this.port2={postMessage:function(){f.postMessage(g,h)}}}); if("undefined"!==typeof a&&!H("Trident")&&!H("MSIE")){var b=new a,c={},d=c;b.port1.onmessage=function(){if(void 0!==c.next){c=c.next;var e=c.bb;c.bb=null;e()}}; return function(e){d.next={bb:e};d=d.next;b.port2.postMessage(0)}}return function(e){z.setTimeout(e,0)}} ;function Ke(){this.i=this.h=null} Ke.prototype.add=function(a,b){var c=Le.get();c.set(a,b);this.i?this.i.next=c:this.h=c;this.i=c}; Ke.prototype.remove=function(){var a=null;this.h&&(a=this.h,this.h=this.h.next,this.h||(this.i=null),a.next=null);return a}; var Le=new Ge(function(){return new Me},function(a){return a.reset()}); function Me(){this.next=this.scope=this.h=null} Me.prototype.set=function(a,b){this.h=a;this.scope=b;this.next=null}; Me.prototype.reset=function(){this.next=this.scope=this.h=null};function Ne(a,b){Oe||Pe();Qe||(Oe(),Qe=!0);Re.add(a,b)} var Oe;function Pe(){if(z.Promise&&z.Promise.resolve){var a=z.Promise.resolve(void 0);Oe=function(){a.then(Se)}}else Oe=function(){var b=Se; "function"!==typeof z.setImmediate||z.Window&&z.Window.prototype&&!H("Edge")&&z.Window.prototype.setImmediate==z.setImmediate?(Ie||(Ie=Je()),Ie(b)):z.setImmediate(b)}} var Qe=!1,Re=new Ke;function Se(){for(var a;a=Re.remove();){try{a.h.call(a.scope)}catch(b){mc(b)}He(Le,a)}Qe=!1} ;function Te(a,b){this.h=a[z.Symbol.iterator]();this.i=b;this.j=0} Te.prototype[Symbol.iterator]=function(){return this}; Te.prototype.next=function(){var a=this.h.next();return{value:a.done?void 0:this.i.call(void 0,a.value,this.j++),done:a.done}}; function Ue(a,b){return new Te(a,b)} ;function Ve(){this.blockSize=-1} ;function We(){this.blockSize=-1;this.blockSize=64;this.h=[];this.u=[];this.m=[];this.j=[];this.j[0]=128;for(var a=1;ae;e++)d[e]=b.charCodeAt(c)<<24|b.charCodeAt(c+1)<<16|b.charCodeAt(c+2)<<8|b.charCodeAt(c+3),c+=4;else for(e=0;16>e;e++)d[e]=b[c]<<24|b[c+1]<<16|b[c+2]<<8|b[c+3],c+=4;for(e=16;80>e;e++){var f=d[e-3]^d[e-8]^d[e-14]^d[e-16];d[e]=(f<<1|f>>>31)&4294967295}b=a.h[0];c=a.h[1];var g=a.h[2],h=a.h[3],k=a.h[4];for(e=0;80>e;e++){if(40>e)if(20>e){f=h^c&(g^h);var l=1518500249}else f=c^g^h,l=1859775393;else 60>e?(f=c&g|h&(c|g),l=2400959708): (f=c^g^h,l=3395469782);f=(b<<5|b>>>27)+f+k+l+d[e]&4294967295;k=h;h=g;g=(c<<30|c>>>2)&4294967295;c=b;b=f}a.h[0]=a.h[0]+b&4294967295;a.h[1]=a.h[1]+c&4294967295;a.h[2]=a.h[2]+g&4294967295;a.h[3]=a.h[3]+h&4294967295;a.h[4]=a.h[4]+k&4294967295} We.prototype.update=function(a,b){if(null!=a){void 0===b&&(b=a.length);for(var c=b-this.blockSize,d=0,e=this.u,f=this.i;dthis.i?this.update(this.j,56-this.i):this.update(this.j,this.blockSize-(this.i-56));for(var c=this.blockSize-1;56<=c;c--)this.u[c]=b&255,b/=256;Xe(this,this.u);for(c=b=0;5>c;c++)for(var d=24;0<=d;d-=8)a[b]=this.h[c]>>d&255,++b;return a};function Ye(a){return"string"==typeof a.className?a.className:a.getAttribute&&a.getAttribute("class")||""} function Ze(a,b){"string"==typeof a.className?a.className=b:a.setAttribute&&a.setAttribute("class",b)} function $e(a,b){a.classList?b=a.classList.contains(b):(a=a.classList?a.classList:Ye(a).match(/\S+/g)||[],b=0<=$a(a,b));return b} function af(){var a=document.body;a.classList?a.classList.remove("inverted-hdpi"):$e(a,"inverted-hdpi")&&Ze(a,Array.prototype.filter.call(a.classList?a.classList:Ye(a).match(/\S+/g)||[],function(b){return"inverted-hdpi"!=b}).join(" "))} ;var bf="StopIteration"in z?z.StopIteration:{message:"StopIteration",stack:""};function cf(){} cf.prototype.V=function(){throw bf;}; cf.prototype.next=function(){return df}; var df={done:!0,value:void 0};cf.prototype.O=function(){return this};function ef(a){if(a instanceof ff||a instanceof gf||a instanceof hf)return a;if("function"==typeof a.V)return new ff(function(){return jf(a)}); if("function"==typeof a[Symbol.iterator])return new ff(function(){return a[Symbol.iterator]()}); if("function"==typeof a.O)return new ff(function(){return jf(a.O())}); throw Error("Not an iterator or iterable.");} function jf(a){if(!(a instanceof cf))return a;var b=!1;return{next:function(){for(var c;!b;)try{c=a.V();break}catch(d){if(d!==bf)throw d;b=!0}return{value:c,done:b}}}} function ff(a){this.i=a} ff.prototype.O=function(){return new gf(this.i())}; ff.prototype[Symbol.iterator]=function(){return new hf(this.i())}; ff.prototype.h=function(){return new hf(this.i())}; function gf(a){this.i=a} v(gf,cf);gf.prototype.V=function(){var a=this.i.next();if(a.done)throw bf;return a.value}; gf.prototype[Symbol.iterator]=function(){return new hf(this.i)}; gf.prototype.h=function(){return new hf(this.i)}; function hf(a){ff.call(this,function(){return a}); this.j=a} v(hf,ff);hf.prototype.next=function(){return this.j.next()};function kf(a,b){this.i={};this.h=[];this.ga=this.size=0;var c=arguments.length;if(12*this.size&&mf(this),!0):!1}; function mf(a){if(a.size!=a.h.length){for(var b=0,c=0;b=d.h.length)throw bf;var f=d.h[b++];return a?f:d.i[f]}; return e}; function nf(a,b){return Object.prototype.hasOwnProperty.call(a,b)} ;function pf(a){qf();return Cb(a)} var qf=Ia;function rf(a){var b=[];sf(new tf,a,b);return b.join("")} function tf(){} function sf(a,b,c){if(null==b)c.push("null");else{if("object"==typeof b){if(Array.isArray(b)){var d=b;b=d.length;c.push("[");for(var e="",f=0;fDate.now())Wf.prototype.remove.call(this,a);else return b}};function Xf(){} ;function Yf(){} D(Yf,Xf);Yf.prototype[Symbol.iterator]=function(){return ef(this.O(!0)).h()}; Yf.prototype.clear=function(){var a=Array.from(this);a=t(a);for(var b=a.next();!b.done;b=a.next())this.remove(b.value)};function Zf(a){this.h=a} D(Zf,Yf);m=Zf.prototype;m.isAvailable=function(){if(!this.h)return!1;try{return this.h.setItem("__sak","1"),this.h.removeItem("__sak"),!0}catch(a){return!1}}; m.set=function(a,b){try{this.h.setItem(a,b)}catch(c){if(0==this.h.length)throw"Storage mechanism: Storage disabled";throw"Storage mechanism: Quota exceeded";}}; m.get=function(a){a=this.h.getItem(a);if("string"!==typeof a&&null!==a)throw"Storage mechanism: Invalid value was encountered";return a}; m.remove=function(a){this.h.removeItem(a)}; m.O=function(a){var b=0,c=this.h,d=new cf;d.V=function(){if(b>=c.length)throw bf;var e=c.key(b++);if(a)return e;e=c.getItem(e);if("string"!==typeof e)throw"Storage mechanism: Invalid value was encountered";return e}; return d}; m.clear=function(){this.h.clear()}; m.key=function(a){return this.h.key(a)};function $f(){var a=null;try{a=window.localStorage||null}catch(b){}this.h=a} D($f,Zf);function ag(a,b){this.i=a;this.h=null;var c;if(c=tc)c=!(9<=Number(Gc));if(c){bg||(bg=new kf);this.h=bg.get(a);this.h||(b?this.h=document.getElementById(b):(this.h=document.createElement("userdata"),this.h.addBehavior("#default#userData"),document.body.appendChild(this.h)),bg.set(a,this.h));try{this.h.load(this.i)}catch(d){this.h=null}}} D(ag,Yf);var cg={".":".2E","!":".21","~":".7E","*":".2A","'":".27","(":".28",")":".29","%":"."},bg=null;function dg(a){return"_"+encodeURIComponent(a).replace(/[.!~*'()%]/g,function(b){return cg[b]})} m=ag.prototype;m.isAvailable=function(){return!!this.h}; m.set=function(a,b){this.h.setAttribute(dg(a),b);eg(this)}; m.get=function(a){a=this.h.getAttribute(dg(a));if("string"!==typeof a&&null!==a)throw"Storage mechanism: Invalid value was encountered";return a}; m.remove=function(a){this.h.removeAttribute(dg(a));eg(this)}; m.O=function(a){var b=0,c=this.h.XMLDocument.documentElement.attributes,d=new cf;d.V=function(){if(b>=c.length)throw bf;var e=c[b++];if(a)return decodeURIComponent(e.nodeName.replace(/\./g,"%")).substr(1);e=e.nodeValue;if("string"!==typeof e)throw"Storage mechanism: Invalid value was encountered";return e}; return d}; m.clear=function(){for(var a=this.h.XMLDocument.documentElement,b=a.attributes.length;0a;a++)this.j.push(0);this.l=0;this.N=Hg(window,"mousemove",Ta(this.R,this));a=Ta(this.H,this);"function"===typeof a&&(a=qg(a));this.Y=window.setInterval(a,25)} D(Lg,I);Lg.prototype.R=function(a){void 0===a.h&&Dg(a);var b=a.h;void 0===a.i&&Dg(a);this.i=new rd(b,a.i)}; Lg.prototype.H=function(){if(this.i){var a=Jg();if(0!=this.m){var b=this.B,c=this.i,d=b.x-c.x;b=b.y-c.y;d=Math.sqrt(d*d+b*b)/(a-this.m);this.j[this.l]=.5c;c++)b+=this.j[c]||0;3<=b&&this.D();this.o=d}this.m=a;this.B=this.i;this.l=(this.l+1)%4}}; Lg.prototype.F=function(){window.clearInterval(this.Y);Ig(this.N)};function Mg(){} function Ng(a,b){return Og(a,0,b)} Mg.prototype.L=function(a,b){return Og(a,1,b)};function Pg(){Mg.apply(this,arguments)} v(Pg,Mg);function Qg(){Pg.h||(Pg.h=new Pg);return Pg.h} function Og(a,b,c){void 0!==c&&Number.isNaN(Number(c))&&(c=void 0);var d=B("yt.scheduler.instance.addJob");return d?d(a,b,c):void 0===c?(a(),NaN):N(a,c||0)} Pg.prototype.aa=function(a){if(void 0===a||!Number.isNaN(Number(a))){var b=B("yt.scheduler.instance.cancelJob");b?b(a):Kg(a)}}; Pg.prototype.start=function(){var a=B("yt.scheduler.instance.start");a&&a()}; Pg.prototype.pause=function(){var a=B("yt.scheduler.instance.pause");a&&a()};var Rg=Qg();var Sg={}; function Tg(a){var b=void 0===a?{}:a;a=void 0===b.Ob?!1:b.Ob;b=void 0===b.zb?!0:b.zb;if(null==B("_lact",window)){var c=parseInt(G("LACT"),10);c=isFinite(c)?Date.now()-Math.max(c,0):-1;A("_lact",c,window);A("_fact",c,window);-1==c&&Ug();Hg(document,"keydown",Ug);Hg(document,"keyup",Ug);Hg(document,"mousedown",Ug);Hg(document,"mouseup",Ug);a?Hg(window,"touchmove",function(){Vg("touchmove",200)},{passive:!0}):(Hg(window,"resize",function(){Vg("resize",200)}),b&&Hg(window,"scroll",function(){Vg("scroll",200)})); new Lg(function(){Vg("mouse",100)}); Hg(document,"touchstart",Ug,{passive:!0});Hg(document,"touchend",Ug,{passive:!0})}} function Vg(a,b){Sg[a]||(Sg[a]=!0,Rg.L(function(){Ug();Sg[a]=!1},b))} function Ug(){null==B("_lact",window)&&Tg();var a=Date.now();A("_lact",a,window);-1==B("_fact",window)&&A("_fact",a,window);(a=B("ytglobal.ytUtilActivityCallback_"))&&a()} function Wg(){var a=B("_lact",window);return null==a?-1:Math.max(Date.now()-a,0)} ;function Xg(){var a=Yg;B("yt.ads.biscotti.getId_")||A("yt.ads.biscotti.getId_",a,void 0)} function Zg(a){A("yt.ads.biscotti.lastId_",a,void 0)} ;var $g=/^[\w.]*$/,ah={q:!0,search_query:!0};function bh(a,b){b=a.split(b);for(var c={},d=0,e=b.length;dk.status,u=500<=k.status&&600>k.status;if(l||q||u)n=xh(a,c,k,b.convertToSafeHtml);if(l)a:if(k&&204==k.status)l=!0;else{switch(c){case "XML":l=0==parseInt(n&&n.return_code,10);break a;case "RAW":l=!0;break a}l=!!n}n=n||{};q=b.context||z;l?b.onSuccess&&b.onSuccess.call(q,k,n):b.onError&&b.onError.call(q,k,n);b.onFinish&&b.onFinish.call(q,k,n)}},b.method, d,b.headers,b.responseType,b.withCredentials); if(b.onTimeout&&0")&&(b=b.replace(Gb,">")),-1!=b.indexOf('"')&&(b=b.replace(Ib,""")),-1!=b.indexOf("'")&&(b=b.replace(Jb,"'")),-1!=b.indexOf("\x00")&&(b=b.replace(Kb,"�")));a=Zb(b,a)}a instanceof Yb&&a.constructor===Yb?a=a.h:(Ka(a),a="type_error:SafeHtml");a=encodeURIComponent(String(rf(a.toString())))}/^[\s\xa0]*$/.test(a)||(a=wd("IFRAME",{src:'javascript:""',style:"display:none"}),(9==a.nodeType?a:a.ownerDocument|| a.document).body.appendChild(a))}}else if(e)wh(a,b,"POST",e,d);else if(G("USE_NET_AJAX_FOR_PING_TRANSPORT",!1)||d)wh(a,b,"GET","",d);else{b:{try{var g=new Ya({url:a});if(g.j&&g.i||g.l){var h=gc(a.match(fc)[5]||null),k;if(!(k=!h||!h.endsWith("/aclk"))){var l=a.search(lc);d:{for(c=0;0<=(c=a.indexOf("ri",c))&&cu)var p=null;else{var y=a.indexOf("&",u);if(0>y||y>l)y=l;u+=3; p=decodeURIComponent(a.substr(u,y-u).replace(/\+/g," "))}k="1"!==p}f=!k;break b}}catch(C){}f=!1}f?Gh(a)?(b&&b(),f=!0):f=!1:f=!1;f||Hh(a,b)}} function Ih(a){var b=void 0===b?"":b;Gh(a,b)||Fh(a,void 0,void 0,void 0,b)} function Gh(a,b){try{if(window.navigator&&window.navigator.sendBeacon&&window.navigator.sendBeacon(a,void 0===b?"":b))return!0}catch(c){}return!1} function Hh(a,b){var c=new Image,d=""+Eh++;Dh[d]=c;c.onload=c.onerror=function(){b&&Dh[d]&&b();delete Dh[d]}; c.src=a} ;var Jh=z.ytPubsubPubsubInstance||new K,Kh=z.ytPubsubPubsubSubscribedKeys||{},Lh=z.ytPubsubPubsubTopicToKeys||{},Mh=z.ytPubsubPubsubIsSynchronous||{};function Nh(a,b){var c=Oh();if(c&&b){var d=c.subscribe(a,function(){var e=arguments;var f=function(){Kh[d]&&b.apply&&"function"==typeof b.apply&&b.apply(window,e)}; try{Mh[a]?f():N(f,0)}catch(g){rg(g)}},void 0); Kh[d]=!0;Lh[a]||(Lh[a]=[]);Lh[a].push(d);return d}return 0} function Ph(a){var b=Oh();b&&("number"===typeof a?a=[a]:"string"===typeof a&&(a=[parseInt(a,10)]),E(a,function(c){b.unsubscribeByKey(c);delete Kh[c]}))} function Qh(a,b){var c=Oh();c&&c.publish.apply(c,arguments)} function Rh(a){var b=Oh();if(b)if(b.clear(a),a)Sh(a);else for(var c in Lh)Sh(c)} function Oh(){return z.ytPubsubPubsubInstance} function Sh(a){Lh[a]&&(a=Lh[a],E(a,function(b){Kh[b]&&delete Kh[b]}),a.length=0)} K.prototype.subscribe=K.prototype.subscribe;K.prototype.unsubscribeByKey=K.prototype.oa;K.prototype.publish=K.prototype.ha;K.prototype.clear=K.prototype.clear;A("ytPubsubPubsubInstance",Jh,void 0);A("ytPubsubPubsubTopicToKeys",Lh,void 0);A("ytPubsubPubsubIsSynchronous",Mh,void 0);A("ytPubsubPubsubSubscribedKeys",Kh,void 0);var Th=window,P=Th.ytcsi&&Th.ytcsi.now?Th.ytcsi.now:Th.performance&&Th.performance.timing&&Th.performance.now&&Th.performance.timing.navigationStart?function(){return Th.performance.timing.navigationStart+Th.performance.now()}:function(){return(new Date).getTime()};var Uh=wg("initial_gel_batch_timeout",2E3),Vh=Math.pow(2,16)-1,Wh=void 0,Xh=0,Yh=0,Zh=0,$h=!0,ai=z.ytLoggingTransportGELQueue_||new Map;A("ytLoggingTransportGELQueue_",ai,void 0);var bi=z.ytLoggingTransportTokensToCttTargetIds_||{};A("ytLoggingTransportTokensToCttTargetIds_",bi,void 0); function ci(a,b){if("log_event"===a.endpoint){var c="";a.za?c="visitorOnlyApprovedKey":a.cttAuthInfo&&(bi[a.cttAuthInfo.token]=di(a.cttAuthInfo),c=a.cttAuthInfo.token);var d=ai.get(c)||[];ai.set(c,d);d.push(a.payload);b&&(Wh=new b);a=wg("tvhtml5_logging_max_batch")||wg("web_logging_max_batch")||100;b=P();d.length>=a?ei({writeThenSend:!0},M("flush_only_full_queue")?c:void 0):10<=b-Zh&&(fi(),Zh=b)}} function gi(a,b){if("log_event"===a.endpoint){var c="";a.za?c="visitorOnlyApprovedKey":a.cttAuthInfo&&(bi[a.cttAuthInfo.token]=di(a.cttAuthInfo),c=a.cttAuthInfo.token);var d=new Map;d.set(c,[a.payload]);b&&(Wh=new b);return new yf(function(e){Wh&&Wh.isReady()?hi(d,e,{bypassNetworkless:!0},!0):e()})}} function ei(a,b){a=void 0===a?{}:a;new yf(function(c){Kg(Xh);Kg(Yh);Yh=0;if(Wh&&Wh.isReady())if(void 0!==b){var d=new Map,e=ai.get(b)||[];d.set(b,e);hi(d,c,a);ai.delete(b)}else hi(ai,c,a),ai.clear();else fi(),c()})} function fi(){M("web_gel_timeout_cap")&&!Yh&&(Yh=N(function(){ei({writeThenSend:!0})},6E4)); Kg(Xh);var a=G("LOGGING_BATCH_TIMEOUT",wg("web_gel_debounce_ms",1E4));M("shorten_initial_gel_batch_timeout")&&$h&&(a=Uh);Xh=N(function(){ei({writeThenSend:!0})},a)} function hi(a,b,c,d){var e=Wh;c=void 0===c?{}:c;var f=Math.round(P()),g=a.size;a=t(a);for(var h=a.next();!h.done;h=a.next()){var k=t(h.value);h=k.next().value;var l=k=k.next().value;k=pb({context:ii(e.config_||ji())});k.events=l;(l=bi[h])&&ki(k,h,l);delete bi[h];h="visitorOnlyApprovedKey"===h;li(k,f,h);M("always_send_and_write")&&(c.writeThenSend=!1);M("send_beacon_before_gel")&&window.navigator&&window.navigator.sendBeacon&&!c.writeThenSend&&Ih("/generate_204");mi(e,"log_event",k,{retry:!0,onSuccess:function(){g--; g||b()}, onError:function(){g--;g||b()}, kb:c,za:h,Rm:!!d});$h=!1}} function li(a,b,c){a.requestTimeMs=String(b);M("unsplit_gel_payloads_in_logs")&&(a.unsplitGelPayloadsInLogs=!0);!c&&(b=G("EVENT_ID",void 0))&&((c=G("BATCH_CLIENT_COUNTER",void 0)||0)||(c=Math.floor(Math.random()*Vh/2)),c++,c>Vh&&(c=1),L("BATCH_CLIENT_COUNTER",c),a.serializedClientEventId={serializedEventId:b,clientCounter:String(c)})} function ki(a,b,c){if(c.videoId)var d="VIDEO";else if(c.playlistId)d="PLAYLIST";else return;a.credentialTransferTokenTargetId=c;a.context=a.context||{};a.context.user=a.context.user||{};a.context.user.credentialTransferTokens=[{token:b,scope:d}]} function di(a){var b={};a.videoId?b.videoId=a.videoId:a.playlistId&&(b.playlistId=a.playlistId);return b} ;var ni=z.ytLoggingGelSequenceIdObj_||{};A("ytLoggingGelSequenceIdObj_",ni,void 0); function oi(a,b,c,d){d=void 0===d?{}:d;if(M("lr_drop_other_and_business_payloads")){if(yg[a]||xg[a])return}else if(M("lr_drop_other_payloads")&&yg[a])return;var e={},f=Math.round(d.timestamp||P());e.eventTimeMs=fMath.round(P())-d.requestTime)){var e=d.authState,f=Bi(Ai(!1));nb(e,f)&&(e=d.request,"requestTimeMs"in e&&(e.requestTimeMs=Math.round(P())),mi(a,d.method,e,{}));delete b[c]}}Ei().set("requests",b,86400,!0)}} ;var Ii=function(){var a;return function(){a||(a=new Ci("ytidb"));return a}}(); function Ji(){var a;return null===(a=Ii())||void 0===a?void 0:a.get("LAST_RESULT_ENTRY_KEY",!0)} ;var Ki=[],Li=!1;function Mi(a){Li||(Ki.push({type:"ERROR",payload:a}),10=f)uj(a,k,p,g,y,b.join(),e),h=y;F.A(2);break;case 3:return F.return(Promise.reject(h))}})} function uj(a,b,c,d,e,f,g){b=c-b;e?(e instanceof Q&&("QUOTA_EXCEEDED"===e.type||"QUOTA_MAYBE_EXCEEDED"===e.type)&&Ni("QUOTA_EXCEEDED",{dbName:Si(a.h.name),objectStoreNames:f,transactionCount:a.transactionCount,transactionMode:g.mode}),e instanceof Q&&"UNKNOWN_ABORT"===e.type&&(c-=a.j,0>c&&c>=Math.pow(2,31)&&(c=0),Ni("TRANSACTION_UNEXPECTEDLY_ABORTED",{objectStoreNames:f,transactionDuration:b,transactionCount:a.transactionCount,dbDuration:c}),a.i=!0),vj(a,!1,d,f,b,g.tag),Mi(e)):vj(a,!0,d,f,b,g.tag)} function vj(a,b,c,d,e,f){Ni("TRANSACTION_ENDED",{objectStoreNames:d,connectionHasUnknownAbortedTransaction:a.i,duration:e,isSuccessful:b,tryCount:c,tag:void 0===f?"IDB_TRANSACTION_TAG_UNKNOWN":f})} m.getName=function(){return this.h.name}; function qj(a){this.h=a} m=qj.prototype;m.add=function(a,b){return T(this.h.add(a,b))}; m.autoIncrement=function(){return this.h.autoIncrement}; m.clear=function(){return T(this.h.clear()).then(function(){})}; m.count=function(a){return T(this.h.count(a))}; function wj(a,b){return xj(a,{query:b},function(c){return c.delete().then(function(){return c.continue()})}).then(function(){})} m.delete=function(a){return a instanceof IDBKeyRange?wj(this,a):T(this.h.delete(a))}; m.get=function(a){return T(this.h.get(a))}; m.index=function(a){try{return new yj(this.h.index(a))}catch(b){if(b instanceof Error&&"NotFoundError"===b.name)throw new $i(a,this.h.name);throw b;}}; m.getName=function(){return this.h.name}; m.keyPath=function(){return this.h.keyPath}; function xj(a,b,c){a=a.h.openCursor(b.query,b.direction);return zj(a).then(function(d){return mj(d,c)})} function sj(a){var b=this;this.h=a;this.j=new Map;this.i=!1;this.done=new Promise(function(c,d){b.h.addEventListener("complete",function(){c()}); b.h.addEventListener("error",function(e){e.currentTarget===e.target&&d(b.h.error)}); b.h.addEventListener("abort",function(){var e=b.h.error;if(e)d(e);else if(!b.i){e=Q;for(var f=b.h.objectStoreNames,g=[],h=0;h=F},C); C.done.catch(function(F){e(F)})}catch(F){e(F)}}); g.addEventListener("success",function(){var p=g.result;k&&p.addEventListener("versionchange",function(){k(f())}); p.addEventListener("close",function(){Ni("IDB_UNEXPECTEDLY_CLOSED",{dbName:Si(a),dbVersion:p.version});l&&l()}); d(f())}); g.addEventListener("error",function(){e(g.error)}); h&&g.addEventListener("blocked",function(){h()})})} function Dj(a,b,c){c=void 0===c?{}:c;return Cj(a,b,c)} function Ej(a,b){b=void 0===b?{}:b;var c,d,e;return x(function(f){c=self.indexedDB.deleteDatabase(a);d=b;(e=d.blocked)&&c.addEventListener("blocked",function(){e()}); return w(f,lj(c),0)})} ;function Fj(a,b){this.name=a;this.options=b;this.l=!0;this.j=!1} Fj.prototype.i=function(a,b,c){c=void 0===c?{}:c;return Dj(a,b,c)}; Fj.prototype.delete=function(a){a=void 0===a?{}:a;return Ej(this.name,a)}; function Gj(a,b){return new Q("INCOMPATIBLE_DB_VERSION",{dbName:a.name,oldVersion:a.options.version,newVersion:b})} function Hj(a,b){if(!b)throw cj("openWithToken",Si(a.name));return a.open()} Fj.prototype.open=function(){function a(){var f,g,h,k,l,n,q,u;return x(function(p){switch(p.h){case 1:return h=null!==(f=Error().stack)&&void 0!==f?f:"",ra(p,2),w(p,c.i(c.name,c.options.version,e),4);case 4:k=p.i;a:{var y=c.options;for(var C=t(Object.keys(y.Da)),F=C.next();!F.done;F=C.next()){F=F.value;var O=y.Da[F],R=void 0===O.Qb?Number.MAX_VALUE:O.Qb;if(k.h.version>=O.Ka&&!(k.h.version>=R)&&!k.h.objectStoreNames.contains(F)){y=F;break a}}y=void 0}l=y;if(void 0===l){p.A(5);break}if(c.j){p.A(6); break}c.j=!0;return w(p,c.delete(),7);case 7:return Mi(new Q("DB_DELETED_BY_MISSING_OBJECT_STORE",{dbName:c.name,Kb:l})),p.return(a());case 6:throw new Zi(l);case 5:return p.return(k);case 2:n=sa(p);if(n instanceof DOMException?"VersionError"!==n.name:"DOMError"in self&&n instanceof DOMError?"VersionError"!==n.name:!(n instanceof Object&&"message"in n)||"An attempt was made to open a database using a lower version than the existing version."!==n.message){p.A(8);break}return w(p,c.i(c.name,void 0, Object.assign(Object.assign({},e),{upgrade:void 0})),9);case 9:q=p.i;u=q.h.version;if(void 0!==c.options.version&&u>c.options.version+1)throw q.close(),c.l=!1,Gj(c,u);return p.return(q);case 8:throw b(),n instanceof Error&&!M("ytidb_async_stack_killswitch")&&(n.stack=n.stack+"\n"+h.substring(h.indexOf("\n")+1)),bj(n,c.name,"",null!==(g=c.options.version)&&void 0!==g?g:-1);}})} function b(){c.h===d&&(c.h=void 0)} var c=this;if(!this.l)throw Gj(this);if(this.h)return this.h;var d,e={blocking:function(f){f.close()}, closed:b,Zb:b,upgrade:this.options.upgrade};return this.h=d=a()};var Ij=new Fj("YtIdbMeta",{Da:{databases:{Ka:1}},upgrade:function(a,b){b(1)&&pj(a,"databases",{keyPath:"actualName"})}}); function Jj(a,b){var c;return x(function(d){if(1==d.h)return w(d,Hj(Ij,b),2);c=d.i;return d.return(oj(c,["databases"],{M:!0,mode:"readwrite"},function(e){var f=e.objectStore("databases");return f.get(a.actualName).then(function(g){if(g?a.actualName!==g.actualName||a.publicName!==g.publicName||a.userIdentifier!==g.userIdentifier:1)return T(f.h.put(a,void 0)).then(function(){})})}))})} function Kj(a,b){var c;return x(function(d){if(1==d.h)return a?w(d,Hj(Ij,b),2):d.return();c=d.i;return d.return(c.delete("databases",a))})} function Lj(a,b){var c,d;return x(function(e){return 1==e.h?(c=[],w(e,Hj(Ij,b),2)):3!=e.h?(d=e.i,w(e,oj(d,["databases"],{M:!0,mode:"readonly"},function(f){c.length=0;return xj(f.objectStore("databases"),{},function(g){a(g.getValue())&&c.push(g.getValue());return g.continue()})}),3)):e.return(c)})} function Mj(a){return Lj(function(b){return"LogsDatabaseV2"===b.publicName&&void 0!==b.userIdentifier},a)} ;var Nj,Oj=new function(){}(new function(){}); function Pj(){var a,b,c;return x(function(d){switch(d.h){case 1:a=Ji();if(null===a||void 0===a?0:a.hasSucceededOnce)return d.return(!0);var e;if(e=Bh)e=/WebKit\/([0-9]+)/.exec(Tb),e=!!(e&&600<=parseInt(e[1],10));e&&(e=/WebKit\/([0-9]+)/.exec(Tb),e=!(e&&602<=parseInt(e[1],10)));if(e||uc)return d.return(!1);try{if(b=self,!(b.indexedDB&&b.IDBIndex&&b.IDBKeyRange&&b.IDBObjectStore))return d.return(!1)}catch(f){return d.return(!1)}if(!("IDBTransaction"in self&&"objectStoreNames"in IDBTransaction.prototype))return d.return(!1); ra(d,2);c={actualName:"yt-idb-test-do-not-use",publicName:"yt-idb-test-do-not-use",userIdentifier:void 0};return w(d,Jj(c,Oj),4);case 4:return w(d,Kj("yt-idb-test-do-not-use",Oj),5);case 5:return d.return(!0);case 2:return sa(d),d.return(!1)}})} function Qj(){if(void 0!==Nj)return Nj;Li=!0;return Nj=Pj().then(function(a){Li=!1;var b,c;null!==(b=Ii())&&void 0!==b&&b.h&&(b=Ji(),b={hasSucceededOnce:(null===b||void 0===b?void 0:b.hasSucceededOnce)||a},null===(c=Ii())||void 0===c?void 0:c.set("LAST_RESULT_ENTRY_KEY",b,2592E3,!0));return a})} function Rj(){return B("ytglobal.idbToken_")||void 0} function Sj(){var a=Rj();return a?Promise.resolve(a):Qj().then(function(b){(b=b?Oj:void 0)&&A("ytglobal.idbToken_",b,void 0);return b})} ;new function(){var a=this;this.promise=new Promise(function(b,c){a.resolve=b;a.reject=c})};function Tj(a){if(!Pi())throw a=new Q("AUTH_INVALID",{dbName:a}),Mi(a),a;var b=Qi();return{actualName:a+":"+b,publicName:a,userIdentifier:b}} function Uj(a,b,c,d){var e,f,g,h,k,l;return x(function(n){switch(n.h){case 1:return f=null!==(e=Error().stack)&&void 0!==e?e:"",w(n,Sj(),2);case 2:g=n.i;if(!g)throw h=cj("openDbImpl",a,b),M("ytidb_async_stack_killswitch")||(h.stack=h.stack+"\n"+f.substring(f.indexOf("\n")+1)),Mi(h),h;Ri(a);k=c?{actualName:a,publicName:a,userIdentifier:void 0}:Tj(a);ra(n,3);return w(n,Jj(k,g),5);case 5:return w(n,Dj(k.actualName,b,d),6);case 6:return n.return(n.i);case 3:return l=sa(n),ra(n,7),w(n,Kj(k.actualName, g),9);case 9:n.h=8;n.m=0;break;case 7:sa(n);case 8:throw l;}})} function Vj(a,b,c){c=void 0===c?{}:c;return Uj(a,b,!1,c)} function Wj(a,b,c){c=void 0===c?{}:c;return Uj(a,b,!0,c)} function Xj(a,b){b=void 0===b?{}:b;var c,d;return x(function(e){if(1==e.h)return w(e,Sj(),2);if(3!=e.h){c=e.i;if(!c)return e.return();Ri(a);d=Tj(a);return w(e,Ej(d.actualName,b),3)}return w(e,Kj(d.actualName,c),0)})} function Yj(a,b,c){a=a.map(function(d){return x(function(e){return 1==e.h?w(e,Ej(d.actualName,b),2):w(e,Kj(d.actualName,c),0)})}); return Promise.all(a).then(function(){})} function Zj(){var a=void 0===a?{}:a;var b,c;return x(function(d){if(1==d.h)return w(d,Sj(),2);if(3!=d.h){b=d.i;if(!b)return d.return();Ri("LogsDatabaseV2");return w(d,Mj(b),3)}c=d.i;return w(d,Yj(c,a,b),0)})} function ak(a,b){b=void 0===b?{}:b;var c;return x(function(d){if(1==d.h)return w(d,Sj(),2);if(3!=d.h){c=d.i;if(!c)return d.return();Ri(a);return w(d,Ej(a,b),3)}return w(d,Kj(a,c),0)})} ;function bk(a){var b,c,d,e,f,g,h,k;this.h=!1;this.potentialEsfErrorCounter=this.i=0;this.handleError=function(){}; this.na=function(){}; this.now=Date.now;this.qa=!1;this.rb=null!==(b=a.rb)&&void 0!==b?b:100;this.pb=null!==(c=a.pb)&&void 0!==c?c:1;this.nb=null!==(d=a.nb)&&void 0!==d?d:2592E6;this.lb=null!==(e=a.lb)&&void 0!==e?e:12E4;this.ob=null!==(f=a.ob)&&void 0!==f?f:5E3;this.C=null!==(g=a.C)&&void 0!==g?g:void 0;this.Aa=!!a.Aa;this.ya=null!==(h=a.ya)&&void 0!==h?h:.1;this.Fa=null!==(k=a.Fa)&&void 0!==k?k:10;a.handleError&&(this.handleError=a.handleError);a.na&&(this.na=a.na);a.qa&&(this.qa=a.qa);this.G=a.G;this.P=a.P;this.J=a.J; this.K=a.K;this.W=a.W;this.Ua=a.Ua;this.Ta=a.Ta;this.C&&(!this.G||this.G("networkless_logging"))&&ck(this)} function ck(a){x(function(b){if(!a.C||a.qa)return b.return();dk(a);a.K.I()&&a.sa();a.K.U(a.Ua,a.sa.bind(a));a.K.U(a.Ta,a.ab.bind(a));a.h=!0;return a.Aa&&Math.random()<=a.ya?w(b,a.J.wb(a.C),0):b.A(0)})} m=bk.prototype;m.writeThenSend=function(a,b){var c=this;b=void 0===b?{}:b;if(this.C&&this.h){var d={url:a,options:b,timestamp:this.now(),status:"NEW",sendCount:0};this.J.set(d,this.C).then(function(e){d.id=e;c.K.I()&&ek(c,d)}).catch(function(e){ek(c,d); fk(c,e)})}else this.W(a,b)}; m.sendThenWrite=function(a,b,c){var d=this;b=void 0===b?{}:b;if(this.C&&this.h){var e={url:a,options:b,timestamp:this.now(),status:"NEW",sendCount:0};this.G&&this.G("nwl_skip_retry")&&(e.skipRetry=c);if(this.K.I()){if(!e.skipRetry){var f=b.onError?b.onError:function(){}; b.onError=function(g,h){return x(function(k){if(1==k.h)return w(k,d.J.set(e,d.C).catch(function(l){fk(d,l)}),2); f(g,h);k.h=0})}}this.W(a,b,e.skipRetry)}else this.J.set(e,this.C).catch(function(g){d.W(a,b,e.skipRetry); fk(d,g)})}else this.W(a,b,this.G&&this.G("nwl_skip_retry")&&c)}; m.sendAndWrite=function(a,b){var c=this;b=void 0===b?{}:b;if(this.C&&this.h){var d={url:a,options:b,timestamp:this.now(),status:"NEW",sendCount:0},e=!1,f=b.onSuccess?b.onSuccess:function(){}; d.options.onSuccess=function(g,h){void 0!==d.id?c.J.ma(d.id,c.C):e=!0;c.K.ea&&c.G&&c.G("vss_network_hint")&&c.K.ea(!0);f(g,h)}; this.W(d.url,d.options);this.J.set(d,this.C).then(function(g){d.id=g;e&&c.J.ma(d.id,c.C)}).catch(function(g){fk(c,g)})}else this.W(a,b)}; m.sa=function(){var a=this;if(!this.C)throw cj("throttleSend");this.i||(this.i=this.P.L(function(){var b;return x(function(c){if(1==c.h)return w(c,a.J.hb("NEW",a.C),2);if(3!=c.h)return b=c.i,b?w(c,ek(a,b),3):(a.ab(),c.return());a.i&&(a.i=0,a.sa());c.h=0})},this.rb))}; m.ab=function(){this.P.aa(this.i);this.i=0}; function ek(a,b){var c,d;return x(function(e){switch(e.h){case 1:if(!a.C)throw c=cj("immediateSend"),c;if(void 0===b.id){e.A(2);break}return w(e,a.J.Jb(b.id,a.C),3);case 3:(d=e.i)?b=d:a.na(Error("The request cannot be found in the database."));case 2:if(gk(a,b,a.nb)){e.A(4);break}a.na(Error("Networkless Logging: Stored logs request expired age limit"));if(void 0===b.id){e.A(5);break}return w(e,a.J.ma(b.id,a.C),5);case 5:return e.return();case 4:b.skipRetry||(b=hk(a,b));if(!b){e.A(0);break}if(!b.skipRetry|| void 0===b.id){e.A(8);break}return w(e,a.J.ma(b.id,a.C),8);case 8:a.W(b.url,b.options,!!b.skipRetry),e.h=0}})} function hk(a,b){if(!a.C)throw cj("updateRequestHandlers");var c=b.options.onError?b.options.onError:function(){}; b.options.onError=function(e,f){var g;return x(function(h){switch(h.h){case 1:g=ik(f);if(!(a.G&&a.G("nwl_consider_error_code")&&g||a.G&&!a.G("nwl_consider_error_code")&&a.potentialEsfErrorCounter<=a.Fa)){h.A(2);break}if(!a.K.X){h.A(3);break}return w(h,a.K.X(),3);case 3:if(a.K.I()){h.A(2);break}c(e,f);if(!a.G||!a.G("nwl_consider_error_code")||void 0===(null===b||void 0===b?void 0:b.id)){h.A(6);break}return w(h,a.J.Va(b.id,a.C,!1),6);case 6:return h.return();case 2:if(a.G&&a.G("nwl_consider_error_code")&& !g&&a.potentialEsfErrorCounter>a.Fa)return h.return();a.potentialEsfErrorCounter++;if(void 0===(null===b||void 0===b?void 0:b.id)){h.A(8);break}return b.sendCount=c?!1:!0} function dk(a){if(!a.C)throw cj("retryQueuedRequests");a.J.hb("QUEUED",a.C).then(function(b){b&&!gk(a,b,a.lb)?a.P.L(function(){return x(function(c){if(1==c.h)return void 0===b.id?c.A(2):w(c,a.J.Va(b.id,a.C),2);dk(a);c.h=0})}):a.K.I()&&a.sa()})} function fk(a,b){a.sb&&!a.K.I()?a.sb(b):a.handleError(b)} function ik(a){var b;return(a=null===(b=null===a||void 0===a?void 0:a.error)||void 0===b?void 0:b.code)&&400<=a&&599>=a?!1:!0} ;function jk(a,b){this.version=a;this.args=b} ;function kk(a,b){this.topic=a;this.h=b} kk.prototype.toString=function(){return this.topic};var lk=B("ytPubsub2Pubsub2Instance")||new K;K.prototype.subscribe=K.prototype.subscribe;K.prototype.unsubscribeByKey=K.prototype.oa;K.prototype.publish=K.prototype.ha;K.prototype.clear=K.prototype.clear;A("ytPubsub2Pubsub2Instance",lk,void 0);var mk=B("ytPubsub2Pubsub2SubscribedKeys")||{};A("ytPubsub2Pubsub2SubscribedKeys",mk,void 0);var nk=B("ytPubsub2Pubsub2TopicToKeys")||{};A("ytPubsub2Pubsub2TopicToKeys",nk,void 0);var ok=B("ytPubsub2Pubsub2IsAsync")||{};A("ytPubsub2Pubsub2IsAsync",ok,void 0); A("ytPubsub2Pubsub2SkipSubKey",null,void 0);function pk(a,b){var c=qk();c&&c.publish.call(c,a.toString(),a,b)} function rk(a){var b=sk,c=qk();if(!c)return 0;var d=c.subscribe(b.toString(),function(e,f){var g=B("ytPubsub2Pubsub2SkipSubKey");g&&g==d||(g=function(){if(mk[d])try{if(f&&b instanceof kk&&b!=e)try{var h=b.h,k=f;if(!k.args||!k.version)throw Error("yt.pubsub2.Data.deserialize(): serializedData is incomplete.");try{if(!h.ga){var l=new h;h.ga=l.version}var n=h.ga}catch(q){}if(!n||k.version!=n)throw Error("yt.pubsub2.Data.deserialize(): serializedData version is incompatible.");try{f=Reflect.construct(h, fb(k.args))}catch(q){throw q.message="yt.pubsub2.Data.deserialize(): "+q.message,q;}}catch(q){throw q.message="yt.pubsub2.pubsub2 cross-binary conversion error for "+b.toString()+": "+q.message,q;}a.call(window,f)}catch(q){rg(q)}},ok[b.toString()]?B("yt.scheduler.instance")?Rg.L(g):N(g,0):g())}); mk[d]=!0;nk[b.toString()]||(nk[b.toString()]=[]);nk[b.toString()].push(d);return d} function tk(){var a=uk,b=rk(function(c){a.apply(void 0,arguments);vk(b)}); return b} function vk(a){var b=qk();b&&("number"===typeof a&&(a=[a]),E(a,function(c){b.unsubscribeByKey(c);delete mk[c]}))} function qk(){return B("ytPubsub2Pubsub2Instance")} ;function wk(a,b){Fj.call(this,a,b);this.options=b;Ri(a)} v(wk,Fj);function xk(a,b){var c;return function(){c||(c=new wk(a,b));return c}} wk.prototype.i=function(a,b,c){c=void 0===c?{}:c;return(this.options.Wa?Wj:Vj)(a,b,Object.assign({},c))}; wk.prototype.delete=function(a){a=void 0===a?{}:a;return(this.options.Wa?ak:Xj)(this.name,a)}; function yk(a,b){return xk(a,b)} ;var zk; function Ak(){if(zk)return zk();var a={};zk=yk("LogsDatabaseV2",{Da:(a.LogsRequestsStore={Ka:2},a),Wa:!1,upgrade:function(b,c,d){c(2)&&pj(b,"LogsRequestsStore",{keyPath:"id",autoIncrement:!0});c(3);c(5)&&(d=d.objectStore("LogsRequestsStore"),d.h.indexNames.contains("newRequest")&&d.h.deleteIndex("newRequest"),d.h.createIndex("newRequestV2",["status","interface","timestamp"],{unique:!1}));c(7)&&b.h.objectStoreNames.contains("sapisid")&&b.h.deleteObjectStore("sapisid");c(9)&&b.h.objectStoreNames.contains("SWHealthLog")&&b.h.deleteObjectStore("SWHealthLog")}, version:9});return zk()} ;function Bk(a){return Hj(Ak(),a)} function Ck(a,b){var c,d,e,f;return x(function(g){if(1==g.h)return c={startTime:P(),transactionType:"YT_IDB_TRANSACTION_TYPE_WRITE"},w(g,Bk(b),2);if(3!=g.h)return d=g.i,e=Object.assign(Object.assign({},a),{options:JSON.parse(JSON.stringify(a.options)),interface:G("INNERTUBE_CONTEXT_CLIENT_NAME",0)}),w(g,rj(d,e),3);f=g.i;c.ac=P();Dk(c);return g.return(f)})} function Ek(a,b){var c,d,e,f,g,h,k;return x(function(l){if(1==l.h)return c={startTime:P(),transactionType:"YT_IDB_TRANSACTION_TYPE_READ"},w(l,Bk(b),2);if(3!=l.h)return d=l.i,e=G("INNERTUBE_CONTEXT_CLIENT_NAME",0),f=[a,e,0],g=[a,e,P()],h=IDBKeyRange.bound(f,g),k=void 0,w(l,oj(d,["LogsRequestsStore"],{mode:"readwrite",M:!0},function(n){return Aj(n.objectStore("LogsRequestsStore").index("newRequestV2"),{query:h,direction:"prev"},function(q){q.getValue()&&(k=q.getValue(),"NEW"===a&&(k.status="QUEUED", q.update(k)))})}),3); c.ac=P();Dk(c);return l.return(k)})} function Fk(a,b){var c;return x(function(d){if(1==d.h)return w(d,Bk(b),2);c=d.i;return d.return(oj(c,["LogsRequestsStore"],{mode:"readwrite",M:!0},function(e){var f=e.objectStore("LogsRequestsStore");return f.get(a).then(function(g){if(g)return g.status="QUEUED",T(f.h.put(g,void 0)).then(function(){return g})})}))})} function Gk(a,b,c){c=void 0===c?!0:c;var d;return x(function(e){if(1==e.h)return w(e,Bk(b),2);d=e.i;return e.return(oj(d,["LogsRequestsStore"],{mode:"readwrite",M:!0},function(f){var g=f.objectStore("LogsRequestsStore");return g.get(a).then(function(h){return h?(h.status="NEW",c&&(h.sendCount+=1),T(g.h.put(h,void 0)).then(function(){return h})):S.resolve(void 0)})}))})} function Hk(a,b){var c;return x(function(d){if(1==d.h)return w(d,Bk(b),2);c=d.i;return d.return(c.delete("LogsRequestsStore",a))})} function Ik(a){var b,c;return x(function(d){if(1==d.h)return w(d,Bk(a),2);b=d.i;c=P()-2592E6;return w(d,oj(b,["LogsRequestsStore"],{mode:"readwrite",M:!0},function(e){return xj(e.objectStore("LogsRequestsStore"),{},function(f){if(f.getValue().timestamp<=c)return f.delete().then(function(){return f.continue()})})}),0)})} function Jk(){return x(function(a){return w(a,Zj(),0)})} function Dk(a){M("nwl_csi_killswitch")||.01>=Math.random()&&pk("nwl_transaction_latency_payload",a)} ;var Kk={},Lk=yk("ServiceWorkerLogsDatabase",{Da:(Kk.SWHealthLog={Ka:1},Kk),Wa:!0,upgrade:function(a,b){b(1)&&pj(a,"SWHealthLog",{keyPath:"id",autoIncrement:!0}).h.createIndex("swHealthNewRequest",["interface","timestamp"],{unique:!1})}, version:1});function Mk(a){return Hj(Lk(),a)} function Nk(a){var b,c;return x(function(d){if(1==d.h)return w(d,Mk(a),2);b=d.i;c=P()-2592E6;return w(d,oj(b,["SWHealthLog"],{mode:"readwrite",M:!0},function(e){return xj(e.objectStore("SWHealthLog"),{},function(f){if(f.getValue().timestamp<=c)return f.delete().then(function(){return f.continue()})})}),0)})} function Ok(a){var b;return x(function(c){if(1==c.h)return w(c,Mk(a),2);b=c.i;return w(c,b.clear("SWHealthLog"),0)})} ;var Pk;function Qk(){Pk||(Pk=new Ci("yt.offline"));return Pk} function Rk(a){if(M("offline_error_handling")){var b=Qk().get("errors",!0)||{};b[a.message]={name:a.name,stack:a.stack};a.level&&(b[a.message].level=a.level);Qk().set("errors",b,2592E3,!0)}} function Sk(){if(M("offline_error_handling")){var a=Qk().get("errors",!0);if(a){for(var b in a)if(a[b]){var c=new Oi(b,"sent via offline_errors");c.name=a[b].name;c.stack=a[b].stack;c.level=a[b].level;rg(c)}Qk().set("errors",{},2592E3,!0)}}} ;var Tk=wg("network_polling_interval",3E4);function U(){J.call(this);this.H=0;this.N=this.m=!1;this.l=this.Oa();M("use_shared_nsm")?(Be.h||(Be.h=new Be(Rg)),this.j=Be.h):(Uk(this),Vk(this))} v(U,J);function Wk(){if(!U.h){var a=B("yt.networkStatusManager.instance")||new U;A("yt.networkStatusManager.instance",a,void 0);U.h=a}return U.h} m=U.prototype;m.I=function(){var a;return M("use_shared_nsm")&&this.j?null===(a=this.j)||void 0===a?void 0:a.I():this.l}; m.ea=function(a){var b;M("use_shared_nsm")&&this.j?null===(b=this.j)||void 0===b?void 0:b.j=a:a!==this.l&&(this.l=a)}; m.Lb=function(a){!M("use_shared_nsm")&&(this.m=!0,void 0===a?0:a)&&(this.H||Xk(this))}; m.Oa=function(){var a=window.navigator.onLine;return void 0===a?!0:a}; m.yb=function(){this.N=!0}; m.U=function(a,b){return M("use_shared_nsm")&&this.j?this.j.U(a,b):J.prototype.U.call(this,a,b)}; function Vk(a){window.addEventListener("online",function(){return x(function(b){if(1==b.h)return w(b,a.X(),2);a.N&&Sk();b.h=0})})} function Uk(a){window.addEventListener("offline",function(){return x(function(b){return w(b,a.X(),0)})})} function Xk(a){a.H=Ng(function(){return x(function(b){if(1==b.h)return a.l?a.Oa()||!a.m?b.A(3):w(b,a.X(),3):w(b,a.X(),3);Xk(a);b.h=0})},Tk)} m.X=function(a){var b=this;return M("use_shared_nsm")&&this.j?Ce(this.j,a):this.o?this.o:this.o=new Promise(function(c){var d,e,f;return x(function(g){switch(g.h){case 1:return d=window.AbortController?new window.AbortController:void 0,e=null===d||void 0===d?void 0:d.signal,f=!1,ra(g,2,3),d&&(b.B=Rg.L(function(){d.abort()},a||2E4)),w(g,fetch("/generate_204",{method:"HEAD", signal:e}),5);case 5:f=!0;case 3:ta(g);b.o=void 0;b.B&&Rg.aa(b.B);f!==b.l&&(b.l=f,b.l&&b.m?ze(b,"ytnetworkstatus-online"):b.m&&ze(b,"ytnetworkstatus-offline"));c(f);ua(g);break;case 2:sa(g),f=!1,g.A(3)}})})}; U.prototype.sendNetworkCheckRequest=U.prototype.X;U.prototype.listen=U.prototype.U;U.prototype.enableErrorFlushing=U.prototype.yb;U.prototype.getWindowStatus=U.prototype.Oa;U.prototype.monitorNetworkStatusChange=U.prototype.Lb;U.prototype.networkStatusHint=U.prototype.ea;U.prototype.isNetworkAvailable=U.prototype.I;U.getInstance=Wk;function Yk(a){a=void 0===a?{}:a;J.call(this);var b=this;this.l=this.H=0;this.m="ytnetworkstatus-offline";this.o="ytnetworkstatus-online";M("use_shared_nsm")&&(this.m="networkstatus-offline",this.o="networkstatus-online");this.j=Wk();var c=B("yt.networkStatusManager.instance.monitorNetworkStatusChange").bind(this.j);c&&c(a.fb);a.Ca&&!M("use_shared_nsm")&&(c=B("yt.networkStatusManager.instance.enableErrorFlushing").bind(this.j))&&c();if(c=B("yt.networkStatusManager.instance.listen").bind(this.j))a.Ga? (this.Ga=a.Ga,c(this.o,function(){Zk(b,"publicytnetworkstatus-online");M("use_shared_nsm")&&a.Ca&&Sk()}),c(this.m,function(){Zk(b,"publicytnetworkstatus-offline")})):(c(this.o,function(){ze(b,"publicytnetworkstatus-online"); M("use_shared_nsm")&&a.Ca&&Sk()}),c(this.m,function(){ze(b,"publicytnetworkstatus-offline")}))} v(Yk,J);Yk.prototype.I=function(){var a=B("yt.networkStatusManager.instance.isNetworkAvailable").bind(this.j);return a?a():!0}; Yk.prototype.ea=function(a){var b=B("yt.networkStatusManager.instance.networkStatusHint").bind(this.j);b&&b(a)}; Yk.prototype.X=function(a){var b=this,c;return x(function(d){return(c=B("yt.networkStatusManager.instance.sendNetworkCheckRequest").bind(b.j))?d.return(c(a)):d.return(!0)})}; function Zk(a,b){a.Ga?a.l?(Rg.aa(a.H),a.H=Rg.L(function(){a.B!==b&&(ze(a,b),a.B=b,a.l=P())},a.Ga-(P()-a.l))):(ze(a,b),a.B=b,a.l=P()):ze(a,b)} ;var $k=!1,al=0,bl=0,cl,dl=z.ytNetworklessLoggingInitializationOptions||{isNwlInitialized:$k,potentialEsfErrorCounter:bl};A("ytNetworklessLoggingInitializationOptions",dl,void 0); function el(){var a;x(function(b){switch(b.h){case 1:return w(b,Sj(),2);case 2:a=b.i;if(!a||!Pi()&&!M("nwl_init_require_datasync_id_killswitch")){b.A(0);break}$k=!0;dl.isNwlInitialized=$k;return w(b,ak("LogsDatabaseV2"),4);case 4:if(!(.1>=Math.random())){b.A(5);break}return w(b,Ik(a),6);case 6:return w(b,Nk(a),5);case 5:fl();gl().I()&&hl();gl().U("publicytnetworkstatus-online",hl);gl().U("publicytnetworkstatus-offline",il);if(!M("networkless_immediately_drop_sw_health_store")){b.A(8);break}return w(b, jl(),8);case 8:if(M("networkless_immediately_drop_all_requests"))return w(b,Jk(),0);b.A(0)}})} function kl(a,b){function c(d){var e=gl().I();if(!ll()||!d||e&&M("vss_networkless_bypass_write"))ml(a,b);else{var f={url:a,options:b,timestamp:P(),status:"NEW",sendCount:0};Ck(f,d).then(function(g){f.id=g;gl().I()&&nl(f)}).catch(function(g){nl(f); gl().I()?rg(g):Rk(g)})}} b=void 0===b?{}:b;M("skip_is_supported_killswitch")?Sj().then(function(d){c(d)}):c(Rj())} function ol(a,b){function c(d){if(ll()&&d){var e={url:a,options:b,timestamp:P(),status:"NEW",sendCount:0},f=!1,g=b.onSuccess?b.onSuccess:function(){}; e.options.onSuccess=function(h,k){void 0!==e.id?Hk(e.id,d):f=!0;M("vss_network_hint")&&gl().ea(!0);g(h,k)}; ml(e.url,e.options);Ck(e,d).then(function(h){e.id=h;f&&Hk(e.id,d)}).catch(function(h){gl().I()?rg(h):Rk(h)})}else ml(a,b)} b=void 0===b?{}:b;M("skip_is_supported_killswitch")?Sj().then(function(d){c(d)}):c(Rj())} function hl(){var a=Rj();if(!a)throw cj("throttleSend");al||(al=Rg.L(function(){var b;return x(function(c){if(1==c.h)return w(c,Ek("NEW",a),2);if(3!=c.h)return b=c.i,b?w(c,nl(b),3):(il(),c.return());al&&(al=0,hl());c.h=0})},100))} function il(){Rg.aa(al);al=0} function nl(a){var b,c,d;return x(function(e){switch(e.h){case 1:b=Rj();if(!b)throw c=cj("immediateSend"),c;if(void 0===a.id){e.A(2);break}return w(e,Fk(a.id,b),3);case 3:(d=e.i)?a=d:sg(Error("The request cannot be found in the database."));case 2:if(pl(a,2592E6)){e.A(4);break}sg(Error("Networkless Logging: Stored logs request expired age limit"));if(void 0===a.id){e.A(5);break}return w(e,Hk(a.id,b),5);case 5:return e.return();case 4:a.skipRetry||(a=ql(a));var f=a,g,h;if(null===(h=null===(g=null=== f||void 0===f?void 0:f.options)||void 0===g?void 0:g.postParams)||void 0===h?0:h.requestTimeMs)f.options.postParams.requestTimeMs=Math.round(P());a=f;if(!a){e.A(0);break}if(!a.skipRetry||void 0===a.id){e.A(8);break}return w(e,Hk(a.id,b),8);case 8:ml(a.url,a.options,!!a.skipRetry),e.h=0}})} function ql(a){var b=Rj();if(!b)throw cj("updateRequestHandlers");var c=a.options.onError?a.options.onError:function(){}; a.options.onError=function(e,f){var g;return x(function(h){switch(h.h){case 1:g=ik(f);if(!(M("nwl_consider_error_code")&&g||!M("nwl_consider_error_code")&&rl()<=wg("potential_esf_error_limit",10))){h.A(2);break}return w(h,gl().X(),3);case 3:if(gl().I()){h.A(2);break}c(e,f);if(!M("nwl_consider_error_code")||void 0===(null===a||void 0===a?void 0:a.id)){h.A(5);break}return w(h,Gk(a.id,b,!1),5);case 5:return h.return();case 2:if(M("nwl_consider_error_code")&&!g&&rl()>wg("potential_esf_error_limit",10))return h.return(); B("ytNetworklessLoggingInitializationOptions")&&dl.potentialEsfErrorCounter++;bl++;if(void 0===(null===a||void 0===a?void 0:a.id)){h.A(7);break}return 1>a.sendCount?w(h,Gk(a.id,b),11):w(h,Hk(a.id,b),7);case 11:Rg.L(function(){gl().I()&&hl()},5E3); case 7:c(e,f),h.h=0}})}; var d=a.options.onSuccess?a.options.onSuccess:function(){}; a.options.onSuccess=function(e,f){return x(function(g){if(1==g.h)return void 0===(null===a||void 0===a?void 0:a.id)?g.A(2):w(g,Hk(a.id,b),2);M("vss_network_hint")&&gl().ea(!0);d(e,f);g.h=0})}; return a} function pl(a,b){a=a.timestamp;return P()-a>=b?!1:!0} function fl(){var a=Rj();if(!a)throw cj("retryQueuedRequests");Ek("QUEUED",a).then(function(b){b&&!pl(b,12E4)?Rg.L(function(){return x(function(c){if(1==c.h)return void 0===b.id?c.A(2):w(c,Gk(b.id,a),2);fl();c.h=0})}):gl().I()&&hl()})} function jl(){var a,b;return x(function(c){a=Rj();if(!a)throw b=cj("clearSWHealthLogsDb"),b;return c.return(Ok(a).catch(function(d){rg(d)}))})} function gl(){cl||(cl=new Yk({Ca:!0,fb:!0}));return cl} function ml(a,b,c){c&&0===Object.keys(b).length?Fh(a):th(a,b)} function ll(){return B("ytNetworklessLoggingInitializationOptions")?dl.isNwlInitialized:$k} function rl(){return B("ytNetworklessLoggingInitializationOptions")?dl.potentialEsfErrorCounter:bl} ;function sl(){bk.call(this,{J:{wb:Ik,ma:Hk,hb:Ek,Jb:Fk,Va:Gk,set:Ck},K:new Yk({Ca:!0,fb:!0}),handleError:rg,na:sg,W:tl,now:P,sb:Rk,P:Qg(),Ua:"publicytnetworkstatus-online",Ta:"publicytnetworkstatus-offline",Aa:!0,ya:.1,Fa:wg("potential_esf_error_limit",10),G:M,qa:!Pi()});this.Aa&&Math.random()<=this.ya&&this.C&&Nk(this.C);M("networkless_immediately_drop_sw_health_store")&&ul(this);M("networkless_immediately_drop_all_requests")&&Jk();ak("LogsDatabaseV2")} v(sl,bk);function vl(){var a=B("yt.networklessRequestController.instance");a||(a=new sl,A("yt.networklessRequestController.instance",a,void 0),M("networkless_logging")&&Sj().then(function(b){a.C=b;ck(a)})); return a} sl.prototype.writeThenSend=function(a,b){b||(b={});Pi()||(this.h=!1);bk.prototype.writeThenSend.call(this,a,b)}; sl.prototype.sendThenWrite=function(a,b,c){b||(b={});Pi()||(this.h=!1);bk.prototype.sendThenWrite.call(this,a,b,c)}; sl.prototype.sendAndWrite=function(a,b){b||(b={});Pi()||(this.h=!1);bk.prototype.sendAndWrite.call(this,a,b)}; function ul(a){var b;x(function(c){if(!a.C)throw b=cj("clearSWHealthLogsDb"),b;return c.return(Ok(a.C).catch(function(d){a.handleError(d)}))})} function tl(a,b,c){var d;if(null===(d=b.postParams)||void 0===d?0:d.requestTimeMs)b.postParams.requestTimeMs=Math.round(P());c&&0===Object.keys(b).length?Fh(a):th(a,b)} ;function wl(a){var b=this;this.config_=null;a?this.config_=a:zi()&&(this.config_=ji());Ng(function(){Hi(b)},5E3)} wl.prototype.isReady=function(){!this.config_&&zi()&&(this.config_=ji());return!!this.config_}; function mi(a,b,c,d){function e(y){y=void 0===y?!1:y;var C;if(d.retry&&"www.youtube-nocookie.com"!=h&&(y||M("skip_ls_gel_retry")||(C=Fi(b,c,l,k)),C)){var F=g.onSuccess,O=g.onFetchSuccess;g.onSuccess=function(R,Aa){Gi(C);F(R,Aa)}; c.onFetchSuccess=function(R,Aa){Gi(C);O(R,Aa)}}try{y&&d.retry&&!d.kb.bypassNetworkless?(g.method="POST",d.kb.writeThenSend?M("use_new_nwl")?vl().writeThenSend(p,g):kl(p,g):M("use_new_nwl")?vl().sendAndWrite(p,g):ol(p,g)):(g.method="POST",g.postParams||(g.postParams={}),th(p,g))}catch(R){if("InvalidAccessError"==R.name)C&&(Gi(C),C=0),sg(Error("An extension is blocking network request.")); else throw R;}C&&Ng(function(){Hi(a)},5E3)} !G("VISITOR_DATA")&&"visitor_id"!==b&&.01>Math.random()&&sg(new Oi("Missing VISITOR_DATA when sending innertube request.",b,c,d));if(!a.isReady()){var f=new Oi("innertube xhrclient not ready",b,c,d);rg(f);throw f;}var g={headers:{"Content-Type":"application/json"},method:"POST",postParams:c,postBodyFormat:"JSON",onTimeout:function(){d.onTimeout()}, onFetchTimeout:d.onTimeout,onSuccess:function(y,C){if(d.onSuccess)d.onSuccess(C)}, onFetchSuccess:function(y){if(d.onSuccess)d.onSuccess(y)}, onError:function(y,C){if(d.onError)d.onError(C)}, onFetchError:function(y){if(d.onError)d.onError(y)}, timeout:d.timeout,withCredentials:!0},h="";(f=a.config_.Gb)&&(h=f);var k=a.config_.Ib||!1,l=Ai(k,h,d);Object.assign(g.headers,l);(f=g.headers.Authorization)&&!h&&(g.headers["x-origin"]=window.location.origin);var n="/youtubei/"+a.config_.innertubeApiVersion+"/"+b,q={alt:"json"},u=a.config_.Hb&&f;M("omit_innertube_api_key_for_bearer_auth_header")&&(u=u&&f.startsWith("Bearer"));u||(q.key=a.config_.innertubeApiKey);var p=hh(""+h+n,q||{},!0);M("use_new_nwl")||ll()?Qj().then(function(y){e(y)}):e(!1)} ;function V(a,b,c){c=void 0===c?{}:c;var d=wl;G("ytLoggingEventsDefaultDisabled",!1)&&wl==wl&&(d=null);oi(a,b,d,c)} ;var xl=[{Sa:function(a){return"Cannot read property '"+a.key+"'"}, Ea:{Error:[{regexp:/(Permission denied) to access property "([^']+)"/,groups:["reason","key"]}],TypeError:[{regexp:/Cannot read property '([^']+)' of (null|undefined)/,groups:["key","value"]},{regexp:/\u65e0\u6cd5\u83b7\u53d6\u672a\u5b9a\u4e49\u6216 (null|undefined) \u5f15\u7528\u7684\u5c5e\u6027\u201c([^\u201d]+)\u201d/,groups:["value","key"]},{regexp:/\uc815\uc758\ub418\uc9c0 \uc54a\uc74c \ub610\ub294 (null|undefined) \ucc38\uc870\uc778 '([^']+)' \uc18d\uc131\uc744 \uac00\uc838\uc62c \uc218 \uc5c6\uc2b5\ub2c8\ub2e4./, groups:["value","key"]},{regexp:/No se puede obtener la propiedad '([^']+)' de referencia nula o sin definir/,groups:["key"]},{regexp:/Unable to get property '([^']+)' of (undefined or null) reference/,groups:["key","value"]},{regexp:/(null) is not an object \(evaluating '(?:([^.]+)\.)?([^']+)'\)/,groups:["value","base","key"]}]}},{Sa:function(a){return"Cannot call '"+a.key+"'"}, Ea:{TypeError:[{regexp:/(?:([^ ]+)?\.)?([^ ]+) is not a function/,groups:["base","key"]},{regexp:/([^ ]+) called on (null or undefined)/,groups:["key","value"]},{regexp:/Object (.*) has no method '([^ ]+)'/,groups:["base","key"]},{regexp:/Object doesn't support property or method '([^ ]+)'/,groups:["key"]},{regexp:/\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306f '([^']+)' \u30d7\u30ed\u30d1\u30c6\u30a3\u307e\u305f\u306f\u30e1\u30bd\u30c3\u30c9\u3092\u30b5\u30dd\u30fc\u30c8\u3057\u3066\u3044\u307e\u305b\u3093/, groups:["key"]},{regexp:/\uac1c\uccb4\uac00 '([^']+)' \uc18d\uc131\uc774\ub098 \uba54\uc11c\ub4dc\ub97c \uc9c0\uc6d0\ud558\uc9c0 \uc54a\uc2b5\ub2c8\ub2e4./,groups:["key"]}]}},{Sa:function(a){return a.key+" is not defined"}, Ea:{ReferenceError:[{regexp:/(.*) is not defined/,groups:["key"]},{regexp:/Can't find variable: (.*)/,groups:["key"]}]}}];var zl={da:[],Z:[{Za:yl,weight:500}]};function yl(a){if("JavaException"===a.name)return!0;a=a.stack;return a.includes("chrome://")||a.includes("chrome-extension://")||a.includes("moz-extension://")} ;function Al(){this.Z=[];this.da=[]} var Bl;function Cl(){if(!Bl){var a=Bl=new Al;a.da.length=0;a.Z.length=0;zl.da&&a.da.push.apply(a.da,zl.da);zl.Z&&a.Z.push.apply(a.Z,zl.Z)}return Bl} ;var Dl=new K;function El(a){function b(){return a.charCodeAt(d++)} var c=a.length,d=0;do{var e=Fl(b);if(Infinity===e)break;var f=e>>3;switch(e&7){case 0:e=Fl(b);if(2===f)return e;break;case 1:if(2===f)return;d+=8;break;case 2:e=Fl(b);if(2===f)return a.substr(d,e);d+=e;break;case 5:if(2===f)return;d+=4;break;default:return}}while(db)return c;b=a();c|=(b&127)<<7;if(128>b)return c;b=a();c|=(b&127)<<14;if(128>b)return c;b=a();return 128>b?c|(b&127)<<21:Infinity} ;function Gl(a,b,c,d){if(a)if(Array.isArray(a)){var e=d;for(d=0;da;a++){b=Date.now();for(c=0;c>=8);b[c++]=e}return Mc(b,3)} function Em(a,b,c){zm.push({payloadName:a,payload:b,options:c});Cm||(Cm=tk())} function uk(a){if(zm){for(var b=t(zm),c=b.next();!c.done;c=b.next())c=c.value,c.payload&&(c.payload.csn=a.csn,oi(c.payloadName,c.payload,null,c.options));zm.length=0}Cm=0} ;function Fm(){this.i=new Set;this.h=new Set;this.j=new Map} Fm.prototype.clear=function(){this.i.clear();this.h.clear();this.j.clear()}; Ja(Fm);function Gm(a,b){for(var c=[],d=1;d1E5*Math.random()&&(c=new Oi("CSI data exceeded logging limit with key",b.split("_")),0<=b.indexOf("plev")||Pl(c)),!0):!1} ;var X={},mn=(X.auto_search="LATENCY_ACTION_AUTO_SEARCH",X.ad_to_ad="LATENCY_ACTION_AD_TO_AD",X.ad_to_video="LATENCY_ACTION_AD_TO_VIDEO",X["analytics.explore"]="LATENCY_ACTION_CREATOR_ANALYTICS_EXPLORE",X.app_startup="LATENCY_ACTION_APP_STARTUP",X["artist.analytics"]="LATENCY_ACTION_CREATOR_ARTIST_ANALYTICS",X["artist.events"]="LATENCY_ACTION_CREATOR_ARTIST_CONCERTS",X["artist.presskit"]="LATENCY_ACTION_CREATOR_ARTIST_PROFILE",X.browse="LATENCY_ACTION_BROWSE",X.channels="LATENCY_ACTION_CHANNELS",X.creator_channel_dashboard= "LATENCY_ACTION_CREATOR_CHANNEL_DASHBOARD",X["channel.analytics"]="LATENCY_ACTION_CREATOR_CHANNEL_ANALYTICS",X["channel.comments"]="LATENCY_ACTION_CREATOR_CHANNEL_COMMENTS",X["channel.content"]="LATENCY_ACTION_CREATOR_POST_LIST",X["channel.copyright"]="LATENCY_ACTION_CREATOR_CHANNEL_COPYRIGHT",X["channel.editing"]="LATENCY_ACTION_CREATOR_CHANNEL_EDITING",X["channel.monetization"]="LATENCY_ACTION_CREATOR_CHANNEL_MONETIZATION",X["channel.music"]="LATENCY_ACTION_CREATOR_CHANNEL_MUSIC",X["channel.playlists"]= "LATENCY_ACTION_CREATOR_CHANNEL_PLAYLISTS",X["channel.translations"]="LATENCY_ACTION_CREATOR_CHANNEL_TRANSLATIONS",X["channel.videos"]="LATENCY_ACTION_CREATOR_CHANNEL_VIDEOS",X["channel.live_streaming"]="LATENCY_ACTION_CREATOR_LIVE_STREAMING",X.chips="LATENCY_ACTION_CHIPS",X["dialog.copyright_strikes"]="LATENCY_ACTION_CREATOR_DIALOG_COPYRIGHT_STRIKES",X["dialog.uploads"]="LATENCY_ACTION_CREATOR_DIALOG_UPLOADS",X.direct_playback="LATENCY_ACTION_DIRECT_PLAYBACK",X.embed="LATENCY_ACTION_EMBED",X.entity_key_serialization_perf= "LATENCY_ACTION_ENTITY_KEY_SERIALIZATION_PERF",X.entity_key_deserialization_perf="LATENCY_ACTION_ENTITY_KEY_DESERIALIZATION_PERF",X.explore="LATENCY_ACTION_EXPLORE",X.home="LATENCY_ACTION_HOME",X.library="LATENCY_ACTION_LIBRARY",X.live="LATENCY_ACTION_LIVE",X.live_pagination="LATENCY_ACTION_LIVE_PAGINATION",X.onboarding="LATENCY_ACTION_ONBOARDING",X.parent_profile_settings="LATENCY_ACTION_KIDS_PARENT_PROFILE_SETTINGS",X.parent_tools_collection="LATENCY_ACTION_PARENT_TOOLS_COLLECTION",X.parent_tools_dashboard= "LATENCY_ACTION_PARENT_TOOLS_DASHBOARD",X.player_att="LATENCY_ACTION_PLAYER_ATTESTATION",X["post.comments"]="LATENCY_ACTION_CREATOR_POST_COMMENTS",X["post.edit"]="LATENCY_ACTION_CREATOR_POST_EDIT",X.prebuffer="LATENCY_ACTION_PREBUFFER",X.prefetch="LATENCY_ACTION_PREFETCH",X.profile_settings="LATENCY_ACTION_KIDS_PROFILE_SETTINGS",X.profile_switcher="LATENCY_ACTION_LOGIN",X.reel_watch="LATENCY_ACTION_REEL_WATCH",X.results="LATENCY_ACTION_RESULTS",X.search_ui="LATENCY_ACTION_SEARCH_UI",X.search_suggest= "LATENCY_ACTION_SUGGEST",X.search_zero_state="LATENCY_ACTION_SEARCH_ZERO_STATE",X.secret_code="LATENCY_ACTION_KIDS_SECRET_CODE",X.seek="LATENCY_ACTION_PLAYER_SEEK",X.settings="LATENCY_ACTION_SETTINGS",X.tenx="LATENCY_ACTION_TENX",X.video_to_ad="LATENCY_ACTION_VIDEO_TO_AD",X.watch="LATENCY_ACTION_WATCH",X.watch_it_again="LATENCY_ACTION_KIDS_WATCH_IT_AGAIN",X["watch,watch7"]="LATENCY_ACTION_WATCH",X["watch,watch7_html5"]="LATENCY_ACTION_WATCH",X["watch,watch7ad"]="LATENCY_ACTION_WATCH",X["watch,watch7ad_html5"]= "LATENCY_ACTION_WATCH",X.wn_comments="LATENCY_ACTION_LOAD_COMMENTS",X.ww_rqs="LATENCY_ACTION_WHO_IS_WATCHING",X["video.analytics"]="LATENCY_ACTION_CREATOR_VIDEO_ANALYTICS",X["video.comments"]="LATENCY_ACTION_CREATOR_VIDEO_COMMENTS",X["video.edit"]="LATENCY_ACTION_CREATOR_VIDEO_EDIT",X["video.editor"]="LATENCY_ACTION_CREATOR_VIDEO_VIDEO_EDITOR",X["video.editor_async"]="LATENCY_ACTION_CREATOR_VIDEO_VIDEO_EDITOR_ASYNC",X["video.live_settings"]="LATENCY_ACTION_CREATOR_VIDEO_LIVE_SETTINGS",X["video.live_streaming"]= "LATENCY_ACTION_CREATOR_VIDEO_LIVE_STREAMING",X["video.monetization"]="LATENCY_ACTION_CREATOR_VIDEO_MONETIZATION",X["video.translations"]="LATENCY_ACTION_CREATOR_VIDEO_TRANSLATIONS",X.voice_assistant="LATENCY_ACTION_VOICE_ASSISTANT",X.cast_load_by_entity_to_watch="LATENCY_ACTION_CAST_LOAD_BY_ENTITY_TO_WATCH",X.networkless_performance="LATENCY_ACTION_NETWORKLESS_PERFORMANCE",X),Y={},nn=(Y.ad_allowed="adTypesAllowed",Y.yt_abt="adBreakType",Y.ad_cpn="adClientPlaybackNonce",Y.ad_docid="adVideoId",Y.yt_ad_an= "adNetworks",Y.ad_at="adType",Y.aida="appInstallDataAgeMs",Y.browse_id="browseId",Y.p="httpProtocol",Y.t="transportProtocol",Y.cs="commandSource",Y.cpn="clientPlaybackNonce",Y.ccs="creatorInfo.creatorCanaryState",Y.ctop="creatorInfo.topEntityType",Y.csn="clientScreenNonce",Y.docid="videoId",Y.GetHome_rid="requestIds",Y.GetSearch_rid="requestIds",Y.GetPlayer_rid="requestIds",Y.GetWatchNext_rid="requestIds",Y.GetBrowse_rid="requestIds",Y.GetLibrary_rid="requestIds",Y.is_continuation="isContinuation", Y.is_nav="isNavigation",Y.b_p="kabukiInfo.browseParams",Y.is_prefetch="kabukiInfo.isPrefetch",Y.is_secondary_nav="kabukiInfo.isSecondaryNav",Y.nav_type="kabukiInfo.navigationType",Y.prev_browse_id="kabukiInfo.prevBrowseId",Y.query_source="kabukiInfo.querySource",Y.voz_type="kabukiInfo.vozType",Y.yt_lt="loadType",Y.mver="creatorInfo.measurementVersion",Y.yt_ad="isMonetized",Y.nr="webInfo.navigationReason",Y.nrsu="navigationRequestedSameUrl",Y.ncnp="webInfo.nonPreloadedNodeCount",Y.pnt="performanceNavigationTiming", Y.prt="playbackRequiresTap",Y.plt="playerInfo.playbackType",Y.pis="playerInfo.playerInitializedState",Y.paused="playerInfo.isPausedOnLoad",Y.yt_pt="playerType",Y.fmt="playerInfo.itag",Y.yt_pl="watchInfo.isPlaylist",Y.yt_pre="playerInfo.preloadType",Y.yt_ad_pr="prerollAllowed",Y.pa="previousAction",Y.yt_red="isRedSubscriber",Y.rce="mwebInfo.responseContentEncoding",Y.rc="resourceInfo.resourceCache",Y.scrh="screenHeight",Y.scrw="screenWidth",Y.st="serverTimeMs",Y.ssdm="shellStartupDurationMs",Y.br_trs= "tvInfo.bedrockTriggerState",Y.kebqat="kabukiInfo.earlyBrowseRequestInfo.abandonmentType",Y.kebqa="kabukiInfo.earlyBrowseRequestInfo.adopted",Y.label="tvInfo.label",Y.is_mdx="tvInfo.isMdx",Y.preloaded="tvInfo.isPreloaded",Y.aac_type="tvInfo.authAccessCredentialType",Y.upg_player_vis="playerInfo.visibilityState",Y.query="unpluggedInfo.query",Y.upg_chip_ids_string="unpluggedInfo.upgChipIdsString",Y.yt_vst="videoStreamType",Y.vph="viewportHeight",Y.vpw="viewportWidth",Y.yt_vis="isVisible",Y.rcl="mwebInfo.responseContentLength", Y.GetSettings_rid="requestIds",Y.GetTrending_rid="requestIds",Y.GetMusicSearchSuggestions_rid="requestIds",Y.REQUEST_ID="requestIds",Y),on="isContinuation isNavigation kabukiInfo.earlyBrowseRequestInfo.adopted kabukiInfo.isPrefetch kabukiInfo.isSecondaryNav isMonetized navigationRequestedSameUrl performanceNavigationTiming playerInfo.isPausedOnLoad prerollAllowed isRedSubscriber tvInfo.isMdx tvInfo.isPreloaded isVisible watchInfo.isPlaylist playbackRequiresTap".split(" "),pn={},qn=(pn.ccs="CANARY_STATE_", pn.mver="MEASUREMENT_VERSION_",pn.pis="PLAYER_INITIALIZED_STATE_",pn.yt_pt="LATENCY_PLAYER_",pn.pa="LATENCY_ACTION_",pn.ctop="TOP_ENTITY_TYPE_",pn.yt_vst="VIDEO_STREAM_TYPE_",pn),rn="all_vc ap aq c cbr cbrand cbrver cmodel cos cosver cplatform ctheme cver ei l_an l_mm plid srt yt_fss yt_li vpst vpni2 vpil2 icrc icrt pa GetAccountOverview_rid GetHistory_rid cmt d_vpct d_vpnfi d_vpni nsru pc pfa pfeh pftr pnc prerender psc rc start tcrt tcrc ssr vpr vps yt_abt yt_fn yt_fs yt_pft yt_pre yt_pt yt_pvis ytu_pvis yt_ref yt_sts tds".split(" "); function sn(a){return!!G("FORCE_CSI_ON_GEL",!1)||M("csi_on_gel")||M("enable_csi_on_gel")||M("unplugged_tvhtml5_csi_on_gel")||!!Ym(a).useGel} function tn(a,b,c){var d=un(c);d.gelTicks&&(d.gelTicks["tick_"+a]=!0);c||b||P();if(sn(c)){dn(c||"").tick[a]=b||P();d=$m(c);var e=Ym(c).cttAuthInfo;"_start"===a?(a=kn(),ln(a,"baseline_"+d)||V("latencyActionBaselined",{clientActionNonce:d},{timestamp:b,cttAuthInfo:e})):kn().tick(a,d,b,e);an(c);return!0}return!1} function vn(a,b,c){c=un(c);if(c.gelInfos)c.gelInfos["info_"+a]=!0;else{var d={};c.gelInfos=(d["info_"+a]=!0,d)}if(a.match("_rid")){var e=a.split("_rid")[0];a="REQUEST_ID"}if(a in nn){c=nn[a];0<=$a(on,c)&&(b=!!b);a in qn&&"string"===typeof b&&(b=qn[a]+b.toUpperCase());a=b;b=c.split(".");for(var f=d={},g=0;gc.duration?d:c},{duration:0}))&&0f&&(c=a.substring(f,e),c=c.replace(Nn,""),c=c.replace(On,""),c=c.replace("debug-",""),c=c.replace("tracing-",""))}spf.script.load(a,c,b)}else Qn(a,b,c)} function Qn(a,b,c){c=void 0===c?null:c;var d=Rn(a),e=document.getElementById(d),f=e&&Ln(e,"loaded"),g=e&&!f;f?b&&b():(b&&(f=Nh(d,b),b=""+Oa(b),Sn[b]=f),g||(e=Tn(a,d,function(){Ln(e,"loaded")||(Jn(e),Qh(d),N(Ua(Rh,d),0))},c)))} function Tn(a,b,c,d){d=void 0===d?null:d;var e=xd(document,"SCRIPT");e.id=b;e.onload=function(){c&&setTimeout(c,0)}; e.onreadystatechange=function(){switch(e.readyState){case "loaded":case "complete":e.onload()}}; d&&e.setAttribute("nonce",d);qd(e,pf(a));a=document.getElementsByTagName("head")[0]||document.body;a.insertBefore(e,a.firstChild);return e} function Un(a){a=Rn(a);var b=document.getElementById(a);b&&(Rh(a),b.parentNode.removeChild(b))} function Vn(a,b){a&&b&&(a=""+Oa(b),(a=Sn[a])&&Ph(a))} function Rn(a){var b=document.createElement("a");$b(b,a);a=b.href.replace(/^[a-zA-Z]+:\/\//,"//");return"js-"+ec(a)} var Sn={};var Wn=[],Xn=!1;function Yn(){if(!M("disable_biscotti_fetch_for_ad_blocker_detection")&&!M("disable_biscotti_fetch_entirely_for_all_web_clients")&&$l()&&"1"!=mb()){var a=function(){Xn=!0;"google_ad_status"in window?L("DCLKSTAT",1):L("DCLKSTAT",2)}; try{Pn("//static.doubleclick.net/instream/ad_status.js",a)}catch(b){}Wn.push(Rg.L(function(){if(!(Xn||"google_ad_status"in window)){try{Vn("//static.doubleclick.net/instream/ad_status.js",a)}catch(b){}Xn=!0;L("DCLKSTAT",3)}},5E3))}} function Zn(){var a=Number(G("DCLKSTAT",0));return isNaN(a)?0:a} ;function $n(){this.i=!1;this.h=null} $n.prototype.initialize=function(a,b,c,d){d=void 0===d?!1:d;var e,f;if(a.program){var g=null!==(e=a.interpreterScript)&&void 0!==e?e:null,h=null!==(f=a.interpreterUrl)&&void 0!==f?f:null;if(a.interpreterSafeScript){g=a.interpreterSafeScript;wb("From proto message. b/166824318");g=g.privateDoNotAccessOrElseSafeScriptWrappedValue||"";var k=tb();g=k?k.createScript(g):g;g=(new yb(g)).toString()}a.interpreterSafeUrl&&(h=a.interpreterSafeUrl,wb("From proto message. b/166824318"),h=Cb(h.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue|| "").toString());ao(this,g,h,a.program,b,c,d)}else Pl(Error("Cannot initialize botguard without program"))}; function ao(a,b,c,d,e,f,g){g=void 0===g?!1:g;c?(a.i=!0,Pn(c,function(){a.i=!1;var h=0<=c.indexOf("/th/");(h?window.trayride:window.botguard)?bo(a,d,!!g,h,e):(Un(c),Pl(new Oi("Unable to load Botguard","from "+c)))},f)):b&&(f=xd(document,"SCRIPT"),f.textContent=b,f.nonce=cc(),document.head.appendChild(f),document.head.removeChild(f),((b=b.includes("trayride"))?window.trayride:window.botguard)?bo(a,d,!!g,b,e):Pl(Error("Unable to load Botguard from JS")))} function bo(a,b,c,d,e){var f,g;if(d=d?null===(f=window.trayride)||void 0===f?void 0:f.ad:null===(g=window.botguard)||void 0===g?void 0:g.bg)if(c)try{co(a,new d(b,e?function(){return e(b)}:Ia))}catch(h){h instanceof Error&&Pl(h)}else{try{co(a,new d(b))}catch(h){h instanceof Error&&Pl(h)}e&&e(b)}else Pl(Error("Failed to finish initializing VM"))} $n.prototype.invoke=function(a){a=void 0===a?{}:a;return this.h?this.h.hasOwnProperty("hot")?this.h.hot(void 0,void 0,a):this.h.invoke(void 0,void 0,a):null}; $n.prototype.dispose=function(){this.h=null}; function co(a,b){a.h=b} ;var eo=new $n;function fo(){return!!eo.h} function go(a){a=void 0===a?{}:a;return eo.invoke(a)} ;var ho=window,io=/[A-Za-z]+\/[0-9.]+/g;function jo(a,b){if(a.replace(io,"")!==b.replace(io,""))return!1;a=a.match(io);b=b.match(io);if(a.length!==b.length)return!1;for(var c=0;c>>0);function ep(a,b,c){var d="player";c=void 0===c?!0:c;d="string"===typeof d?td(d):d;var e=dp+"_"+Oa(d),f=cp[e];if(f&&c)return fp(a,b)?f.api.loadVideoByPlayerVars(a.args||null):f.loadNewVideoConfig(a),f.api;f=new Ko(d,e,a,b);cp[e]=f;Qh("player-added",f.api);Wd(f,function(){delete cp[f.getId()]}); return f.api} function fp(a,b){return b&&b.serializedExperimentFlags?b.serializedExperimentFlags.includes("web_player_remove_playerproxy=true"):a&&a.args&&a.args.fflags?a.args.fflags.includes("web_player_remove_playerproxy=true"):!1} ;var gp=null,hp=null,ip=null;function jp(){var a=gp.getVideoData(1);a=a.title?a.title+" - YouTube":"YouTube";document.title!==a&&(document.title=a)} ;function kp(a,b,c){a="ST-"+ec(a).toString(36);b=b?jc(b):"";c=c||5;$l()&&qi(a,b,c)} ;function lp(a,b,c){b=void 0===b?{}:b;c=void 0===c?!1:c;var d=G("EVENT_ID");d&&(b.ei||(b.ei=d));if(b){d=a;var e=void 0===e?!0:e;var f=G("VALID_SESSION_TEMPDATA_DOMAINS",[]),g=hc(window.location.href);g&&f.push(g);g=hc(d);if(0<=$a(f,g)||!g&&0==d.lastIndexOf("/",0))if(M("autoescape_tempdata_url")&&(f=document.createElement("a"),$b(f,d),d=f.href),d){g=d.match(fc);d=g[5];f=g[6];g=g[7];var h="";d&&(h+=d);f&&(h+="?"+f);g&&(h+="#"+g);d=h;f=d.indexOf("#");if(d=0>f?d:d.substr(0,f))if(e&&!b.csn&&(b.itct||b.ved)&& (b=Object.assign({csn:um()},b)),k){var k=parseInt(k,10);isFinite(k)&&0=Xm()&&0