(function(){'use strict';var p;function aa(a){var b=0;return function(){return b>>0)+"_",e=0;return b}); u("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=f}}); u("String.prototype.endsWith",function(a){return a?a:function(b,c){var d=Ja(this,b,"endsWith");b+="";c===void 0&&(c=d.length);c=Math.max(0,Math.min(c|0,d.length));for(var e=b.length;e>0&&c>0;)if(d[--c]!=b[--e])return!1;return e<=0}}); u("Number.isFinite",function(a){return a?a:function(b){return typeof b!=="number"?!1:!isNaN(b)&&b!==Infinity&&b!==-Infinity}}); u("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>>0;if(b===0)return 32;var c=0;(b&4294901760)===0&&(b<<=16,c+=16);(b&4278190080)===0&&(b<<=8,c+=8);(b&4026531840)===0&&(b<<=4,c+=4);(b&3221225472)===0&&(b<<=2,c+=2);(b&2147483648)===0&&c++;return c}}); u("Math.log10",function(a){return a?a:function(b){return Math.log(b)/Math.LN10}}); u("Promise.prototype.finally",function(a){return a?a:function(b){return this.then(function(c){return Promise.resolve(b()).then(function(){return c})},function(c){return Promise.resolve(b()).then(function(){throw c; })})}});/* Copyright The Closure Library Authors. SPDX-License-Identifier: Apache-2.0 */ var Ka=Ka||{},La,C=this||self;function D(a,b,c){a=a.split(".");c=c||C;a[0]in c||typeof c.execScript=="undefined"||c.execScript("var "+a[0]);for(var d;a.length&&(d=a.shift());)a.length||b===void 0?c[d]&&c[d]!==Object.prototype[d]?c=c[d]:c=c[d]={}:c[d]=b} function E(a,b){a=a.split(".");b=b||C;for(var c=0;c2){var d=Array.prototype.slice.call(arguments,2);return function(){var e=Array.prototype.slice.call(arguments);Array.prototype.unshift.apply(e,d);return a.apply(b,e)}}return function(){return a.apply(b,arguments)}} function Va(a,b,c){Va=Function.prototype.bind&&Function.prototype.bind.toString().indexOf("native code")!=-1?Ta:Ua;return Va.apply(null,arguments)} function Wa(a,b){var c=Array.prototype.slice.call(arguments,1);return function(){var d=c.slice();d.push.apply(d,arguments);return a.apply(this,d)}} function Xa(){return Date.now()} function Ya(a,b){function c(){} c.prototype=b.prototype;a.Ba=b.prototype;a.prototype=new c;a.prototype.constructor=a;a.base=function(d,e,f){for(var g=Array(arguments.length-2),h=2;h=0)&&Array.prototype.splice.call(a,b,1);return c} function Pb(a,b){for(var c=1;c>>0;return b} ;var Wb=RegExp("^(?:([^:/?#.]+):)?(?://(?:([^\\\\/?#]*)@)?([^\\\\/?#]*?)(?::([0-9]+))?(?=[\\\\/?#]|$))?([^?#]+)?(?:\\?([^#]*))?(?:#([\\s\\S]*))?$");function Xb(a){return a?decodeURI(a):a} function Yb(a,b){return b.match(Wb)[a]||null} function Zb(a){return Xb(Yb(3,a))} function $b(a){var b=a.match(Wb);a=b[5];var c=b[6];b=b[7];var d="";a&&(d+=a);c&&(d+="?"+c);b&&(d+="#"+b);return d} function ac(a){var b=a.indexOf("#");return b<0?a:a.slice(0,b)} function bc(a,b,c){if(Array.isArray(b))for(var d=0;dc){d=c;var e=""}else e=a.substring(d+1,c);a=[a.slice(0,d),e,a.slice(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} function ec(a,b,c,d){for(var e=c.length;(b=a.indexOf(c,b))>=0&&b=0;)f.push(a.substring(d,e)),d=Math.min(a.indexOf("&",e)+1||c,c);f.push(a.slice(d));return f.join("").replace(hc,"$1")} ;function jc(a){var b=b===void 0?Number("31"):b;for(var c=[],d=0;db&&c.push(Number(mc(e,1)))}return c} ;function oc(a){return{fieldType:2,fieldName:a}} function F(a){return{fieldType:3,fieldName:a}} ;function pc(a){this.h=a;a.Pa("/client_streamz/bg/fic",F("ke"))} function qc(a){this.h=a;a.Pa("/client_streamz/bg/fiec",F("ke"),oc("ec"))} function rc(a){this.h=a;a.nb("/client_streamz/bg/fil",F("ke"))} rc.prototype.record=function(a,b){this.h.record("/client_streamz/bg/fil",a,b)}; function sc(a){this.h=a;a.Pa("/client_streamz/bg/fcc",oc("ph"),F("ke"))} function tc(a){this.h=a;a.nb("/client_streamz/bg/fcd",oc("ph"),F("ke"))} tc.prototype.record=function(a,b,c){this.h.record("/client_streamz/bg/fcd",a,b,c)}; function uc(a){this.h=a;a.Pa("/client_streamz/bg/fsc",F("ke"))} function vc(a){this.h=a;a.nb("/client_streamz/bg/fsl",F("ke"))} vc.prototype.record=function(a,b){this.h.record("/client_streamz/bg/fsl",a,b)}; function wc(a){this.h=a;a.nb("/client_streamz/bg/frs",F("ke"))} wc.prototype.record=function(a,b){this.h.record("/client_streamz/bg/frs",a,b)}; function xc(a){this.h=a;a.nb("/client_streamz/bg/wrl",F("mn"),oc("ac"),oc("sc"),F("rk"),F("mk"))} xc.prototype.record=function(a,b,c,d,e,f){this.h.record("/client_streamz/bg/wrl",a,b,c,d,e,f)}; function yc(a){this.h=a;a.nb("/client_streamz/bg/el",F("en"),F("rk"),F("mk"))} yc.prototype.record=function(a,b,c,d){this.h.record("/client_streamz/bg/el",a,b,c,d)}; function zc(a){this.h=a;a.Pa("/client_streamz/bg/cec",oc("ec"),F("rk"),F("mk"))} function Ac(a){a.Pa("/client_streamz/bg/po/csc",oc("cs"),F("rk"),F("mk"))} function Bc(a){a.Pa("/client_streamz/bg/po/ctav",F("av"),F("rk"),F("mk"))} function Cc(a){a.Pa("/client_streamz/bg/po/cwsc",F("su"),F("rk"),F("mk"))} ;function Dc(a){C.setTimeout(function(){throw a;},0)} ;var Ec,Fc=E("CLOSURE_FLAGS"),Gc=Fc&&Fc[610401301];Ec=Gc!=null?Gc:!1;function Hc(){var a=C.navigator;return a&&(a=a.userAgent)?a:""} var Ic,Jc=C.navigator;Ic=Jc?Jc.userAgentData||null:null;function Kc(a){return Ec?Ic?Ic.brands.some(function(b){return(b=b.brand)&&b.indexOf(a)!=-1}):!1:!1} function G(a){return Hc().indexOf(a)!=-1} ;function Lc(){return Ec?!!Ic&&Ic.brands.length>0:!1} function Mc(){return Lc()?!1:G("Opera")} function Nc(){return G("Firefox")||G("FxiOS")} function Oc(){return Lc()?Kc("Chromium"):(G("Chrome")||G("CriOS"))&&!(Lc()?0:G("Edge"))||G("Silk")} ;function Pc(){return Ec?!!Ic&&!!Ic.platform:!1} function Qc(){return G("iPhone")&&!G("iPod")&&!G("iPad")} ;var Rc=Mc(),Sc=Lc()?!1:G("Trident")||G("MSIE"),Tc=G("Edge"),Uc=G("Gecko")&&!(Hc().toLowerCase().indexOf("webkit")!=-1&&!G("Edge"))&&!(G("Trident")||G("MSIE"))&&!G("Edge"),Vc=Hc().toLowerCase().indexOf("webkit")!=-1&&!G("Edge");Vc&&G("Mobile");Pc()||G("Macintosh");Pc()||G("Windows");(Pc()?Ic.platform==="Linux":G("Linux"))||Pc()||G("CrOS");var Wc=Pc()?Ic.platform==="Android":G("Android");Qc();G("iPad");G("iPod");Qc()||G("iPad")||G("iPod");Hc().toLowerCase().indexOf("kaios");Nc();var Xc=Qc()||G("iPod"),Yc=G("iPad");!G("Android")||Oc()||Nc()||Mc()||G("Silk");Oc();var Zc=G("Safari")&&!(Oc()||(Lc()?0:G("Coast"))||Mc()||(Lc()?0:G("Edge"))||(Lc()?Kc("Microsoft Edge"):G("Edg/"))||(Lc()?Kc("Opera"):G("OPR"))||Nc()||G("Silk")||G("Android"))&&!(Qc()||G("iPad")||G("iPod"));var $c={},ad=null;function bd(a,b){Pa(a);b===void 0&&(b=0);cd();b=$c[b];for(var c=Array(Math.floor(a.length/3)),d=b[64]||"",e=0,f=0;e>2];g=b[(g&3)<<4|h>>4];h=b[(h&15)<<2|k>>6];k=b[k&63];c[f++]=""+l+g+h+k}l=0;k=d;switch(a.length-e){case 2:l=a[e+1],k=b[(l&15)<<2]||d;case 1:a=a[e],c[f]=""+b[a>>2]+b[(a&3)<<4|l>>4]+k+d}return c.join("")} function dd(a){var b=a.length,c=b*3/4;c%3?c=Math.floor(c):"=.".indexOf(a[b-1])!=-1&&(c="=.".indexOf(a[b-2])!=-1?c-2:c-1);var d=new Uint8Array(c),e=0;ed(a,function(f){d[e++]=f}); return e!==c?d.subarray(0,e):d} function ed(a,b){function c(k){for(;d>4);g!=64&&(b(f<<4&240|g>>2),h!=64&&b(g<<6&192|h))}} function cd(){if(!ad){ad={};for(var a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".split(""),b=["+/=","+/","-_=","-_.","-_"],c=0;c<5;c++){var d=a.concat(b[c].split(""));$c[c]=d;for(var e=0;e=Yd&&a<=Zd:a[0]==="-"?$d(a,ae):$d(a,be)}),ae=Number.MIN_SAFE_INTEGER.toString(),Yd=Wd?BigInt(Number.MIN_SAFE_INTEGER):void 0,be=Number.MAX_SAFE_INTEGER.toString(),Zd=Wd?BigInt(Number.MAX_SAFE_INTEGER):void 0; function $d(a,b){if(a.length>b.length)return!1;if(a.lengthe)return!1;if(d>>0;de=b;ee=(a-b)/4294967296>>>0} function ge(a){if(a<0){fe(0-a);var b=w(he(de,ee));a=b.next().value;b=b.next().value;de=a>>>0;ee=b>>>0}else fe(a)} function ie(a,b){b>>>=0;a>>>=0;if(b<=2097151)var c=""+(4294967296*b+a);else td()?c=""+(BigInt(b)<>>24|b<<8)&16777215,b=b>>16&65535,a=(a&16777215)+c*6777216+b*6710656,c+=b*8147497,b*=2,a>=1E7&&(c+=a/1E7>>>0,a%=1E7),c>=1E7&&(b+=c/1E7>>>0,c%=1E7),c=b+je(c)+je(a));return c} function je(a){a=String(a);return"0000000".slice(a.length)+a} function ke(){var a=de,b=ee;b&2147483648?td()?a=""+(BigInt(b|0)<>>0)):(b=w(he(a,b)),a=b.next().value,b=b.next().value,a="-"+ie(a,b)):a=ie(a,b);return a} function he(a,b){b=~b;a?a=~a+1:b+=1;return[a,b]} ;function le(a){return a.displayName||a.name||"unknown type name"} function me(a){if(a!=null&&typeof a!=="boolean")throw Error("Expected boolean but got "+Oa(a)+": "+a);return a} var ne=/^-?([1-9][0-9]*|0)(\.[0-9]+)?$/;function oe(a){var b=typeof a;switch(b){case "bigint":return!0;case "number":return Number.isFinite(a)}return b!=="string"?!1:ne.test(a)} function pe(a){if(typeof a!=="number")throw sd("int32");if(!Number.isFinite(a))throw sd("int32");return a|0} function qe(a){return a==null?a:pe(a)} function re(a){if(a==null)return a;if(typeof a==="string"){if(!a)return;a=+a}if(typeof a==="number")return Number.isFinite(a)?a|0:void 0} function se(a){var b=0;b=b===void 0?0:b;if(!oe(a))throw sd("int64");var c=typeof a;switch(b){case 4096:switch(c){case "string":return te(a);case "bigint":return String(BigInt.asIntN(64,a));default:return ue(a)}case 8192:switch(c){case "string":return b=Math.trunc(Number(a)),Number.isSafeInteger(b)?a=Xd(b):(b=a.indexOf("."),b!==-1&&(a=a.substring(0,b)),a=td()?Xd(BigInt.asIntN(64,BigInt(a))):Xd(ve(a))),a;case "bigint":return Xd(BigInt.asIntN(64,a));default:return Xd(we(a))}case 0:switch(c){case "string":return te(a); case "bigint":return Xd(BigInt.asIntN(64,a));default:return we(a)}default:return Ab(b,"Unknown format requested type for int64")}} function xe(a){return a==null?a:se(a)} function ye(a){return a[0]==="-"?a.length<20?!0:a.length===20&&Number(a.substring(0,7))>-922337:a.length<19?!0:a.length===19&&Number(a.substring(0,6))<922337} function ve(a){a.indexOf(".");if(ye(a))return a;if(a.length<16)ge(Number(a));else if(td())a=BigInt(a),de=Number(a&BigInt(4294967295))>>>0,ee=Number(a>>BigInt(32)&BigInt(4294967295));else{var b=+(a[0]==="-");ee=de=0;for(var c=a.length,d=0+b,e=(c-b)%6+b;e<=c;d=e,e+=6)d=Number(a.slice(d,e)),ee*=1E6,de=de*1E6+d,de>=4294967296&&(ee+=Math.trunc(de/4294967296),ee>>>=0,de>>>=0);b&&(b=w(he(de,ee)),a=b.next().value,b=b.next().value,de=a,ee=b)}return ke()} function we(a){oe(a);a=Math.trunc(a);if(!Number.isSafeInteger(a)){ge(a);var b=de,c=ee;if(a=c&2147483648)b=~b+1>>>0,c=~c>>>0,b==0&&(c=c+1>>>0);b=c*4294967296+(b>>>0);a=a?-b:b}return a} function ue(a){oe(a);a=Math.trunc(a);if(Number.isSafeInteger(a))a=String(a);else{var b=String(a);ye(b)?a=b:(ge(a),a=ke())}return a} function te(a){oe(a);var b=Math.trunc(Number(a));if(Number.isSafeInteger(b))return String(b);b=a.indexOf(".");b!==-1&&(a=a.substring(0,b));return ve(a)} function ze(a){if(a==null)return a;if(typeof a==="bigint")return ce(a)?a=Number(a):(a=BigInt.asIntN(64,a),a=ce(a)?Number(a):String(a)),a;if(oe(a))return typeof a==="number"?we(a):te(a)} function Ae(a){if(typeof a!=="string")throw Error();return a} function Be(a){if(a!=null&&typeof a!=="string")throw Error();return a} function Ce(a,b){if(!(a instanceof b))throw Error("Expected instanceof "+le(b)+" but got "+(a&&le(a.constructor)));} function De(a,b,c){if(a!=null&&typeof a==="object"&&a.Fc===Gd)return a;if(Array.isArray(a)){var d=Bd(a),e=d;e===0&&(e|=c&32);e|=c&2;e!==d&&Dd(a,e);return new b(a)}} ;function Ee(a){Fe===void 0&&(Fe=typeof Proxy==="function"?Ge(Proxy):null);if(!Fe||!He())return a;var b=Ie(a);if(b)return b;if(Math.random()>.01)return a;Je(a);b=new Fe(a,{set:function(c,d,e){Ke();c[d]=e;return!0}}); Le(a,b);return b} function Ke(){rd()} var Me=void 0,Ne=void 0;function Ie(a){var b;return(b=Me)==null?void 0:b.get(a)} function Oe(a){var b;return((b=Ne)==null?void 0:b.get(a))||a} function Le(a,b){(Me||(Me=new Pe)).set(a,b);(Ne||(Ne=new Pe)).set(b,a)} var Fe=void 0,Pe=void 0;function He(){Pe===void 0&&(Pe=typeof WeakMap==="function"?Ge(WeakMap):null);return Pe} function Ge(a){try{return a.toString().indexOf("[native code]")!==-1?a:null}catch(b){return null}} var Qe=void 0;function Je(a){if(Qe===void 0){var b=new Fe([],{});Qe=Array.prototype.concat.call([],b).length===1}Qe&&typeof Symbol==="function"&&Symbol.isConcatSpreadable&&(a[Symbol.isConcatSpreadable]=!0)} function Re(a,b,c){if(He()){if(Se(a,b)){if(c)return}else if(Math.random()>.01)return;var d=a.length;c={length:d};for(var e=0;e=1024)throw Error("pvtlmt");d=d&-33521665|(b&1023)<<15;break a}}if(b){b=Math.max(b,e-(+!!(d&512)-1));if(b>1024)throw Error("spvt");d=d&-33521665|(b&1023)<< 15}}}Dd(a,d);return a} ;function af(a,b){return bf(b)} function bf(a){switch(typeof a){case "number":return isFinite(a)?a:String(a);case "bigint":return ce(a)?Number(a):String(a);case "boolean":return a?1:0;case "object":if(a)if(Array.isArray(a)){if(Kd(a))return}else{if(ld(a))return hd(a);if(a instanceof pd){var b=a.value_;return b==null?"":typeof b==="string"?b:a.value_=hd(b)}}}return a} ;function cf(a,b,c){a=ud(a);var d=a.length,e=b&256?a[d-1]:void 0;d+=e?-1:0;for(b=b&512?1:0;b=a.length||b>=c))return a[b]} function mf(a,b,c,d){if(c===-1)return null;var e=b>>15&1023||536870912;if(c>=e){if(b&256)return a[a.length-1][c]}else{var f=a.length;if(d&&b&256&&(d=a[f-1][c],d!=null)){if(nf(a,b,e,c)&&yd!=null){var g;a=(g=qd)!=null?g:qd={};g=a[yd]||0;g>=4||(a[yd]=g+1,rd())}return d}return nf(a,b,e,c)}} function of(a,b,c){var d=a.G,e=Cd(d);Nd(e);pf(d,e,b,c);return a} function pf(a,b,c,d){Jd(d);var e=b>>15&1023||536870912;if(c>=e){var f=b;if(b&256)var g=a[a.length-1];else{if(d==null)return f;g=a[e+(+!!(b&512)-1)]={};f|=256}g[c]=d;c=0;n--){var r=c[n];d&&n===c.length-1&&r===d||(l++,r!=null&&k++)}if(d)for(var t in d)n=+t,isNaN(n)||(m+=Tf(n),h++,n>g&&(g=n));l=e(l,k)+f(h,g,m);t=k;n=h;r=g;for(var v=m,x=c.length-1;x>=0;x--){var y=c[x];if(!(y==null||d&&x===c.length-1&&y===d)){y=x-b;var H=e(y,t)+f(n,r,v);H= 1024||(n--,t++,v-=J.length,g=e(d,t)+f(n,r,v),g1?a-1:0)} function Rf(a,b){return(a>1?a-1:0)+(a-b)*4} function Pf(a,b){return a==0?0:9*Math.max(1<<32-Math.clz32(a+a/2-1),4)<=b?a==0?0:a<4?100+(a-1)*16:a<6?148+(a-4)*16:a<12?244+(a-6)*16:a<22?436+(a-12)*19:a<44?820+(a-22)*17:52+32*a:40+4*b} function Of(a){return 40+4*a} function Tf(a){return a>=100?a>=1E4?Math.ceil(Math.log10(1+a)):a<1E3?3:4:a<10?1:2} ;var Uf,Vf;function K(a,b,c){this.G=I(a,b,c)} p=K.prototype;p.toJSON=function(){return Wf(this)}; p.serialize=function(a){try{return Vf=!0,a&&(Uf=a===Lf||a!==Kf&&a!==Mf&&a!==Qf?Lf:a),JSON.stringify(Wf(this),af)}finally{a&&(Uf=void 0),Vf=!1}}; function Xf(a,b){if(b==null||b=="")return new a;b=JSON.parse(b);if(!Array.isArray(b))throw Error("dnarr");Ad(b,32);return $e(a,b)} p.clone=function(){var a=this.G;return hf(this,a,Cd(a),!1)}; p.Fc=Gd;p.toString=function(){try{return Vf=!0,Wf(this).toString()}finally{Vf=!1}}; function Wf(a){Ye(a);var b;Vf?b=a.G:b=ef(a.G,ff,void 0,void 0,!1);var c=!Vf,d=Cd(c?a.G:b);if(a=b.length){var e=b[a-1],f=Jd(e);f?a--:e=void 0;var g=+!!(d&512)-1,h=a-g;d=!!Uf&&!(d&512);var k,l=(k=Uf)!=null?k:Lf;k=d?l(h,g,b,e):h;d=(h=d&&h!==k)?Array.prototype.slice.call(b,0,a):b;if(f||h){b:{var m=d;var n=e;var r;f=!1;if(h)for(l=Math.max(0,k+g);l0;a--){r=d[a-1];if(!(r==null||Kd(r)||Id(r)&&r.size===0))break;var H=!0}if(d!==b||m||H){if(!h&&!c)d=Array.prototype.slice.call(d,0,a);else if(H||m||n)d.length=a;n&&d.push(n)}H= d}else H=b;return H} ;function Yf(a){return function(b){return Xf(a,b)}} ;function Zf(a){this.G=I(a)} z(Zf,K);function $f(a,b){return uf(a,b,pe)} ;function ag(a){this.G=I(a)} z(ag,K);var bg=[1,2,3];function cg(a){this.G=I(a)} z(cg,K);var dg=[1,2,3];function eg(a){this.G=I(a)} z(eg,K);function fg(a){this.G=I(a)} z(fg,K);function gg(a){this.G=I(a)} z(gg,K);function hg(a){if(!a)return"";if(/^about:(?:blank|srcdoc)$/.test(a))return window.origin||"";a.indexOf("blob:")===0&&(a=a.substring(5));a=a.split("#")[0].split("?")[0];a=a.toLowerCase();a.indexOf("//")==0&&(a=window.location.protocol+a);/^[\w\-]*:\/\//.test(a)||(a=window.location.href);var b=a.substring(a.indexOf("://")+3),c=b.indexOf("/");c!=-1&&(b=b.substring(0,c));c=a.substring(0,a.indexOf("://"));if(!c)throw Error("URI is missing protocol: "+a);if(c!=="http"&&c!=="https"&&c!=="chrome-extension"&& c!=="moz-extension"&&c!=="file"&&c!=="android-app"&&c!=="chrome-search"&&c!=="chrome-untrusted"&&c!=="chrome"&&c!=="app"&&c!=="devtools")throw Error("Invalid URI scheme in origin: "+c);a="";var d=b.indexOf(":");if(d!=-1){var e=b.substring(d+1);b=b.substring(0,d);if(c==="http"&&e!=="80"||c==="https"&&e!=="443")a=":"+e}return c+"://"+b+a} ;function ig(){function a(){e[0]=1732584193;e[1]=4023233417;e[2]=2562383102;e[3]=271733878;e[4]=3285377520;m=l=0} function b(n){for(var r=g,t=0;t<64;t+=4)r[t/4]=n[t]<<24|n[t+1]<<16|n[t+2]<<8|n[t+3];for(t=16;t<80;t++)n=r[t-3]^r[t-8]^r[t-14]^r[t-16],r[t]=(n<<1|n>>>31)&4294967295;n=e[0];var v=e[1],x=e[2],y=e[3],H=e[4];for(t=0;t<80;t++){if(t<40)if(t<20){var J=y^v&(x^y);var N=1518500249}else J=v^x^y,N=1859775393;else t<60?(J=v&x|y&(v|x),N=2400959708):(J=v^x^y,N=3395469782);J=((n<<5|n>>>27)&4294967295)+J+H+N+r[t]&4294967295;H=y;y=x;x=(v<<30|v>>>2)&4294967295;v=n;n=J}e[0]=e[0]+n&4294967295;e[1]=e[1]+v&4294967295;e[2]= e[2]+x&4294967295;e[3]=e[3]+y&4294967295;e[4]=e[4]+H&4294967295} function c(n,r){if(typeof n==="string"){n=unescape(encodeURIComponent(n));for(var t=[],v=0,x=n.length;v=56;t--)f[t]=r&255,r>>>=8;b(f);for(t=r=0;t<5;t++)for(var v=24;v>=0;v-=8)n[r++]=e[t]>>v&255;return n} for(var e=[],f=[],g=[],h=[128],k=1;k<64;++k)h[k]=0;var l,m;a();return{reset:a,update:c,digest:d,Sd:function(){for(var n=d(),r="",t=0;t=0;a--)this.remove(b[a])}; var og=new ng(typeof document=="undefined"?null:document);function pg(a){return!!mg.FPA_SAMESITE_PHASE2_MOD||!(a===void 0||!a)} function qg(a){a=a===void 0?!1:a;var b=C.__SAPISID||C.__APISID||C.__3PSAPISID||C.__OVERRIDE_SID;pg(a)&&(b=b||C.__1PSAPISID);if(b)return!0;if(typeof document!=="undefined"){var c=new ng(document);b=c.get("SAPISID")||c.get("APISID")||c.get("__Secure-3PAPISID");pg(a)&&(b=b||c.get("__Secure-1PAPISID"))}return!!b} function rg(a,b,c,d){(a=C[a])||typeof document==="undefined"||(a=(new ng(document)).get(b));return a?jg(a,c,d):null} function sg(a,b){b=b===void 0?!1:b;var c=hg(String(C.location.href)),d=[];if(qg(b)){c=c.indexOf("https:")==0||c.indexOf("chrome-extension:")==0||c.indexOf("chrome-untrusted://new-tab-page")==0||c.indexOf("moz-extension:")==0;var e=c?C.__SAPISID:C.__APISID;e||typeof document==="undefined"||(e=new ng(document),e=e.get(c?"SAPISID":"APISID")||e.get("__Secure-3PAPISID"));(e=e?jg(e,c?"SAPISIDHASH":"APISIDHASH",a):null)&&d.push(e);c&&pg(b)&&((b=rg("__1PSAPISID","__Secure-1PAPISID","SAPISID1PHASH",a))&&d.push(b), (a=rg("__3PSAPISID","__Secure-3PAPISID","SAPISID3PHASH",a))&&d.push(a))}return d.length==0?null:d.join(" ")} ;function tg(a){a&&typeof a.dispose=="function"&&a.dispose()} ;function ug(a){for(var b=0,c=arguments.length;b0&&(this.j.splice(0,b),this.u+=b);this.j.push(a);this.Gb||this.h.enabled||this.h.start()}}; p.flush=function(a,b){var c=this;if(this.j.length===0)a&&a();else{var d=Date.now();if(this.fa>d&&this.T0&&(c.T=Date.now(),c.fa=c.T+k),l=kh.ctor?kh.h(l,kh.ctor,175237375,!0):kh.h(l,175237375,null,!0),l=l===null?void 0:l)&&(l=mc(l,1,-1),l!==-1&&(c.o=new Tg(l<1?1:l),c.h.setInterval(c.o.getValue())))}a&&a();c.I=0}; h=function(k,l){var m=kc(e,fh,3);var n=ze(lf(e,14));n=n==null?void 0:n;var r=c.o;r.h=Math.min(3E5,r.h*2);r.i=Math.min(3E5,r.h+Math.round((Math.random()-.5)*.2*r.h));c.h.setInterval(c.o.getValue());k===401&&f&&(c.W=f);n&&(c.u+=n);l===void 0&&(l=c.isRetryable(k));l&&(c.j=m.concat(c.j),c.Gb||c.h.enabled||c.h.start());b&&b("net-send-failed",k);++c.I}; c.network&&c.network.send(d,g,h)}}}}; p.wc=function(){sh(this.i,!0);this.flush();sh(this.i,!1)}; p.isRetryable=function(a){return 500<=a&&a<600||a===401||a===0}; function nh(){return"https://play.google.com/log?format=json&hasfast=true"} function mh(a,b){this.cb=b=b===void 0?!1:b;this.i=this.locale=null;this.h=new gh;Number.isInteger(a)&&this.h.Pb(a);b||(this.locale=document.documentElement.getAttribute("lang"));oh(this,new bh)} mh.prototype.Pb=function(a){this.h.Pb(a);return this}; function oh(a,b){Bf(a.h,bh,1,b);Hf(b)||Jf(b,1,1);a.cb||(b=th(a),Gf(b,5)||If(b,5,a.locale));a.i&&(b=th(a),Af(b,Wg,9)||Bf(b,Wg,9,a.i))} function qh(a,b){qf(uh(a))&&(a=vh(a),Jf(a,1,b))} function sh(a,b){qf(uh(a))&&(a=vh(a),of(a,2,me(b)))} function uh(a){return Af(a.h,bh,1)} function wh(a){var b=b===void 0?Yg:b;var c=a.cb?void 0:window;c?ah(c,b).then(function(d){a.i=d;d=th(a);Bf(d,Wg,9,a.i);return!0}).catch(function(){return!1}):Promise.resolve(!1)} function th(a){a=uh(a);var b=Af(a,sf,11);b||(b=new sf,Bf(a,sf,11,b));return b} function vh(a){a=th(a);var b=Af(a,Ug,10);b||(b=new Ug,of(b,2,me(!1)),Bf(a,Ug,10,b));return b} function rh(a,b,c,d,e){var f=0,g=0;c=c===void 0?0:c;f=f===void 0?0:f;g=g===void 0?0:g;d=d===void 0?0:d;if(qf(uh(a))){var h=vh(a);of(h,3,qe(d))}qf(uh(a))&&(d=vh(a),of(d,4,qe(f)));qf(uh(a))&&(f=vh(a),of(f,5,qe(g)));a=a.h.clone();g=Date.now().toString();a=of(a,4,xe(g));b=b.slice();b=Cf(a,fh,3,b);e&&(a=new yg,e=of(a,13,qe(e)),a=new zg,e=Bf(a,yg,2,e),a=new eh,e=Bf(a,zg,1,e),e=Jf(e,2,9),Bf(b,eh,18,e));c&&of(b,14,xe(c));return b} ;function xh(){this.Id=typeof AbortController!=="undefined"} xh.prototype.send=function(a,b,c){var d=this,e,f,g,h,k,l,m,n,r,t;return A(function(v){switch(v.h){case 1:return f=(e=d.Id?new AbortController:void 0)?setTimeout(function(){e.abort()},a.timeoutMillis):void 0,za(v,2,3),g=Object.assign({},{method:a.requestType, headers:Object.assign({},a.rd)},a.body&&{body:a.body},a.withCredentials&&{credentials:"include"},{signal:a.timeoutMillis&&e?e.signal:null}),v.yield(fetch(a.url,g),5);case 5:h=v.i;if(h.status!==200){(k=c)==null||k(h.status);v.F(3);break}if((l=b)==null){v.F(7);break}return v.yield(h.text(),8);case 8:l(v.i);case 7:case 3:v.I=[v.j];v.o=0;v.D=0;clearTimeout(f);Ba(v);break;case 2:m=Aa(v);switch((n=m)==null?void 0:n.name){case "AbortError":(r=c)==null||r(408);break;default:(t=c)==null||t(400)}v.F(3)}})}; xh.prototype.cc=function(){return 4};function yh(a,b){L.call(this);this.logSource=a;this.sessionIndex=b;this.j="https://play.google.com/log?format=json&hasfast=true";this.h=null;this.o=!1;this.network=null;this.componentId="";this.pageId=this.i=this.zb=null} z(yh,L);yh.prototype.Xc=function(){this.u=!0;return this}; function zh(a){a.network||(a.network=new xh);var b=new lh({logSource:a.logSource,Ib:a.Ib?a.Ib:sg,sessionIndex:a.sessionIndex,kf:a.j,cb:a.o,Gb:!1,Xc:a.u,Sc:a.Sc,network:a.network});vg(a,b);if(a.h){var c=a.h,d=th(b.i);If(d,7,c)}a.componentId&&(b.componentId=a.componentId);a.zb&&(b.zb=a.zb);a.pageId&&(b.pageId=a.pageId);a.i&&((d=a.i)?(b.experimentIds||(b.experimentIds=new wg),c=b.experimentIds,d=d.serialize(),If(c,4,d)):b.experimentIds&&of(b.experimentIds,4));wh(b.i);a.network.Pb&&a.network.Pb(a.logSource); a.network.We&&a.network.We(b);return b} ;function Ah(a,b,c,d,e,f,g){a=a===void 0?-1:a;b=b===void 0?"":b;c=c===void 0?"":c;d=d===void 0?!1:d;e=e===void 0?"":e;L.call(this);this.logSource=a;this.componentId=b;f?b=f:(a=new yh(a,"0"),a.componentId=b,vg(this,a),c!==""&&(a.j=c),d&&(a.o=!0),e&&(a.h=e),g&&(a.network=g),b=zh(a));this.h=b} z(Ah,L); Ah.prototype.flush=function(a){var b=a||[];if(b.length){a=new gg;for(var c=[],d=0;d-1?(b=a[g],c||(b.Wb=!1)):(b=new Lh(b,this.src,f,!!d,e),b.Wb=c,a.push(b));return b}; Nh.prototype.remove=function(a,b,c,d){a=a.toString();if(!(a in this.listeners))return!1;var e=this.listeners[a];b=Oh(e,b,c,d);return b>-1?(Mh(e[b]),Array.prototype.splice.call(e,b,1),e.length==0&&(delete this.listeners[a],this.h--),!0):!1}; function Ph(a,b){var c=b.type;c in a.listeners&&Ob(a.listeners[c],b)&&(Mh(b),a.listeners[c].length==0&&(delete a.listeners[c],a.h--))} function Oh(a,b,c,d){for(var e=0;e-1?b[a]:null)&&bi(c))} function bi(a){if(typeof a!=="number"&&a&&!a.Ob){var b=a.src;if(b&&b[Jh])Ph(b.h,a);else{var c=a.type,d=a.proxy;b.removeEventListener?b.removeEventListener(c,d,a.capture):b.detachEvent?b.detachEvent(Zh(c),d):b.addListener&&b.removeListener&&b.removeListener(d);Sh--;(c=Xh(b))?(Ph(c,a),c.h==0&&(c.src=null,b[Qh]=null)):Mh(a)}}} function Zh(a){return a in Rh?Rh[a]:Rh[a]="on"+a} function $h(a,b){if(a.Ob)a=!0;else{b=new Ih(b,this);var c=a.listener,d=a.dc||a.src;a.Wb&&bi(a);a=c.call(d,b)}return a} function Xh(a){a=a[Qh];return a instanceof Nh?a:null} var ci="__closure_events_fn_"+(Math.random()*1E9>>>0);function Vh(a){if(typeof a==="function")return a;a[ci]||(a[ci]=function(b){return a.handleEvent(b)}); return a[ci]} ;function di(){L.call(this);this.h=new Nh(this);this.Ia=this;this.fa=null} Ya(di,L);di.prototype[Jh]=!0;p=di.prototype;p.addEventListener=function(a,b,c,d){Th(this,a,b,c,d)}; p.removeEventListener=function(a,b,c,d){ai(this,a,b,c,d)}; function ei(a,b){var c=a.fa;if(c){var d=[];for(var e=1;c;c=c.fa)d.push(c),++e}a=a.Ia;c=b.type||b;typeof b==="string"?b=new Hh(b,a):b instanceof Hh?b.target=b.target||a:(e=b,b=new Hh(c,a),Mg(b,e));e=!0;if(d)for(var f=d.length-1;!b.j&&f>=0;f--){var g=b.h=d[f];e=fi(g,c,!0,b)&&e}b.j||(g=b.h=a,e=fi(g,c,!0,b)&&e,b.j||(e=fi(g,c,!1,b)&&e));if(d)for(f=0;!b.j&&f0){this.i--;var a=this.h;this.h=a.next;a.next=null}else a=this.j();return a}; function hi(a,b){a.o(b);a.i<100&&(a.i++,b.next=a.h,a.h=b)} ;function ii(){this.i=this.h=null} ii.prototype.add=function(a,b){var c=ji.get();c.set(a,b);this.i?this.i.next=c:this.h=c;this.i=c}; ii.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 ji=new gi(function(){return new ki},function(a){return a.reset()}); function ki(){this.next=this.scope=this.h=null} ki.prototype.set=function(a,b){this.h=a;this.scope=b;this.next=null}; ki.prototype.reset=function(){this.next=this.scope=this.h=null};var li,mi=!1,ni=new ii;function oi(a,b){li||pi();mi||(li(),mi=!0);ni.add(a,b)} function pi(){var a=Promise.resolve(void 0);li=function(){a.then(qi)}} function qi(){for(var a;a=ni.remove();){try{a.h.call(a.scope)}catch(b){Dc(b)}hi(ji,a)}mi=!1} ;function ri(){} function si(a){var b=!1,c;return function(){b||(c=a(),b=!0);return c}} ;function ti(a){this.h=0;this.A=void 0;this.o=this.i=this.j=null;this.D=this.u=!1;if(a!=ri)try{var b=this;a.call(void 0,function(c){ui(b,2,c)},function(c){ui(b,3,c)})}catch(c){ui(this,3,c)}} function vi(){this.next=this.context=this.h=this.i=this.child=null;this.j=!1} vi.prototype.reset=function(){this.context=this.h=this.i=this.child=null;this.j=!1}; var wi=new gi(function(){return new vi},function(a){a.reset()}); function xi(a,b,c){var d=wi.get();d.i=a;d.h=b;d.context=c;return d} function yi(a){return new ti(function(b,c){c(a)})} ti.prototype.then=function(a,b,c){return zi(this,typeof a==="function"?a:null,typeof b==="function"?b:null,c)}; ti.prototype.$goog_Thenable=!0;p=ti.prototype;p.pc=function(a,b){return zi(this,null,a,b)}; p.catch=ti.prototype.pc;p.cancel=function(a){if(this.h==0){var b=new Ai(a);oi(function(){Bi(this,b)},this)}}; function Bi(a,b){if(a.h==0)if(a.j){var c=a.j;if(c.i){for(var d=0,e=null,f=null,g=c.i;g&&(g.j||(d++,g.child==a&&(e=g),!(e&&d>1)));g=g.next)e||(f=g);e&&(c.h==0&&d==1?Bi(c,b):(f?(d=f,d.next==c.o&&(c.o=d),d.next=d.next.next):Ci(c),Di(c,e,3,b)))}a.j=null}else ui(a,3,b)} function Ei(a,b){a.i||a.h!=2&&a.h!=3||Fi(a);a.o?a.o.next=b:a.i=b;a.o=b} function zi(a,b,c,d){var e=xi(null,null,null);e.child=new ti(function(f,g){e.i=b?function(h){try{var k=b.call(d,h);f(k)}catch(l){g(l)}}:f; e.h=c?function(h){try{var k=c.call(d,h);k===void 0&&h instanceof Ai?g(h):f(k)}catch(l){g(l)}}:g}); e.child.j=a;Ei(a,e);return e.child} p.hf=function(a){this.h=0;ui(this,2,a)}; p.jf=function(a){this.h=0;ui(this,3,a)}; function ui(a,b,c){if(a.h==0){a===c&&(b=3,c=new TypeError("Promise cannot resolve to itself"));a.h=1;a:{var d=c,e=a.hf,f=a.jf;if(d instanceof ti){Ei(d,xi(e||ri,f||null,a));var g=!0}else{if(d)try{var h=!!d.$goog_Thenable}catch(l){h=!1}else h=!1;if(h)d.then(e,f,a),g=!0;else{if(Qa(d))try{var k=d.then;if(typeof k==="function"){Gi(d,k,e,f,a);g=!0;break a}}catch(l){f.call(a,l);g=!0;break a}g=!1}}}g||(a.A=c,a.h=b,a.j=null,Fi(a),b!=3||c instanceof Ai||Hi(a,c))}} function Gi(a,b,c,d,e){function f(k){h||(h=!0,d.call(e,k))} function g(k){h||(h=!0,c.call(e,k))} var h=!1;try{b.call(a,g,f)}catch(k){f(k)}} function Fi(a){a.u||(a.u=!0,oi(a.Wd,a))} function Ci(a){var b=null;a.i&&(b=a.i,a.i=b.next,b.next=null);a.i||(a.o=null);return b} p.Wd=function(){for(var a;a=Ci(this);)Di(this,a,this.h,this.A);this.u=!1}; function Di(a,b,c,d){if(c==3&&b.h&&!b.j)for(;a&&a.D;a=a.j)a.D=!1;if(b.child)b.child.j=null,Ii(b,c,d);else try{b.j?b.i.call(b.context):Ii(b,c,d)}catch(e){Ji.call(null,e)}hi(wi,b)} function Ii(a,b,c){b==2?a.i.call(a.context,c):a.h&&a.h.call(a.context,c)} function Hi(a,b){a.D=!0;oi(function(){a.D&&Ji.call(null,b)})} var Ji=Dc;function Ai(a){Za.call(this,a)} Ya(Ai,Za);Ai.prototype.name="cancel";function Ki(a,b){di.call(this);this.j=a||1;this.i=b||C;this.o=Va(this.ef,this);this.u=Xa()} Ya(Ki,di);p=Ki.prototype;p.enabled=!1;p.Ea=null;p.setInterval=function(a){this.j=a;this.Ea&&this.enabled?(this.stop(),this.start()):this.Ea&&this.stop()}; p.ef=function(){if(this.enabled){var a=Xa()-this.u;a>0&&a2147483647?-1:C.setTimeout(a,b||0)} ;function Mi(a){L.call(this);this.H=a;this.j=0;this.o=100;this.u=!1;this.i=new Map;this.A=new Set;this.flushInterval=3E4;this.h=new Ki(this.flushInterval);this.h.listen("tick",this.Cb,!1,this);vg(this,this.h)} z(Mi,L);p=Mi.prototype;p.sendIsolatedPayload=function(a){this.u=a;this.o=1}; function Ni(a){a.h.enabled||a.h.start();a.j++;a.j>=a.o&&a.Cb()} p.Cb=function(){var a=this.i.values();a=[].concat(ka(a)).filter(function(b){return b.h.size}); a.length&&this.H.flush(a,this.u);Oi(a);this.j=0;this.h.enabled&&this.h.stop()}; p.Pa=function(a){var b=B.apply(1,arguments);this.i.has(a)||this.i.set(a,new Fh(a,b))}; p.nb=function(a){var b=B.apply(1,arguments);this.i.has(a)||this.i.set(a,new Gh(a,b))}; function Pi(a,b){return a.A.has(b)?void 0:a.i.get(b)} p.Bb=function(a){this.Hd(a,1,B.apply(1,arguments))}; p.Hd=function(a,b){var c=B.apply(2,arguments),d=Pi(this,a);d&&d instanceof Fh&&(d.j(b,c),Ni(this))}; p.record=function(a,b){var c=B.apply(2,arguments),d=Pi(this,a);d&&d instanceof Gh&&(d.record(b,c),Ni(this))}; function Oi(a){for(var b=0;b=0)||d||e||c.set("Content-Type","application/x-www-form-urlencoded;charset=utf-8");b=w(c);for(d=b.next();!d.done;d=b.next())c=w(d.value),d=c.next().value,c=c.next().value,this.U.setRequestHeader(d,c);this.oa&&(this.U.responseType=this.oa);"withCredentials"in this.U&&this.U.withCredentials!==this.ha&&(this.U.withCredentials=this.ha);try{dj(this),this.H>0&&(this.getStatus(),this.A=Li(this.gf,this.H,this)),this.getStatus(),this.u=!0,this.U.send(a),this.u= !1}catch(g){this.getStatus(),cj(this,g)}}; p.gf=function(){typeof Ka!="undefined"&&this.U&&(this.o="Timed out after "+this.H+"ms, aborting",this.getStatus(),ei(this,"timeout"),this.abort(8))}; function cj(a,b){a.i=!1;a.U&&(a.j=!0,a.U.abort(),a.j=!1);a.o=b;ej(a);fj(a)} function ej(a){a.T||(a.T=!0,ei(a,"complete"),ei(a,"error"))} p.abort=function(){this.U&&this.i&&(this.getStatus(),this.i=!1,this.j=!0,this.U.abort(),this.j=!1,ei(this,"complete"),ei(this,"abort"),fj(this))}; p.aa=function(){this.U&&(this.i&&(this.i=!1,this.j=!0,this.U.abort(),this.j=!1),fj(this,!0));Yi.Ba.aa.call(this)}; p.md=function(){this.da||(this.V||this.u||this.j?gj(this):this.ze())}; p.ze=function(){gj(this)}; function gj(a){if(a.i&&typeof Ka!="undefined")if(a.I[1]&&hj(a)==4&&a.getStatus()==2)a.getStatus();else if(a.u&&hj(a)==4)Li(a.md,0,a);else if(ei(a,"readystatechange"),a.isComplete()){a.getStatus();a.i=!1;try{if(ij(a))ei(a,"complete"),ei(a,"success");else{try{var b=hj(a)>2?a.U.statusText:""}catch(c){b=""}a.o=b+" ["+a.getStatus()+"]";ej(a)}}finally{fj(a)}}} function fj(a,b){if(a.U){dj(a);var c=a.U,d=a.I[0]?function(){}:null; a.U=null;a.I=null;b||ei(a,"ready");try{c.onreadystatechange=d}catch(e){}}} function dj(a){a.A&&(C.clearTimeout(a.A),a.A=null)} p.isActive=function(){return!!this.U}; p.isComplete=function(){return hj(this)==4}; function ij(a){var b=a.getStatus();a:switch(b){case 200:case 201:case 202:case 204:case 206:case 304:case 1223:var c=!0;break a;default:c=!1}if(!c){if(b=b===0)a=Yb(1,String(a.W)),!a&&C.self&&C.self.location&&(a=C.self.location.protocol.slice(0,-1)),b=!Zi.test(a?a.toLowerCase():"");c=b}return c} function hj(a){return a.U?a.U.readyState:0} p.getStatus=function(){try{return hj(this)>2?this.U.status:-1}catch(a){return-1}}; p.getLastError=function(){return typeof this.o==="string"?this.o:String(this.o)};function jj(){} jj.prototype.send=function(a,b,c){b=b===void 0?function(){}:b; c=c===void 0?function(){}:c; bj(a.url,function(d){d=d.target;if(ij(d)){try{var e=d.U?d.U.responseText:""}catch(f){e=""}b(e)}else c(d.getStatus())},a.requestType,a.body,a.rd,a.timeoutMillis,a.withCredentials)}; jj.prototype.cc=function(){return 1};var kj={wa:"_",qc:"",Ra:[],re:0};function lj(a,b,c){this.logger=a;this.event=b;if(c===void 0||c)this.h=mj()} lj.prototype.start=function(){this.h=mj()}; lj.prototype.done=function(){this.h!=null&&this.logger.Lb(this.event,mj()-this.h)}; function nj(){L.apply(this,arguments)} z(nj,L);function oj(a,b){var c=mj();b=b();a.Lb("n",mj()-c);return b} function pj(){nj.apply(this,arguments)} z(pj,nj);p=pj.prototype;p.jd=function(){}; p.Bc=function(){}; p.Cc=function(){}; p.Lb=function(){}; p.Fa=function(){}; p.Xa=function(){}; p.zd=function(){}; function qj(a,b,c){c=c===void 0?[]:c;nj.call(this);this.T=b;this.i=c;this.u=new Map;this.j=new Map;this.Ra=[];this.A=void 0;this.I=!1;b=Object.assign({},kj,a);this.wa=b.wa;this.qc=b.qc;this.H=b.re;this.Ra=b.Ra;var d=new Zf,e;if((e=this.T)==null?0:Ff(e)){var f;this.Ra=(f=b.Ra)==null?void 0:f.sort(function(g,h){return g-h}); this.i=c.sort(function(g,h){return g-h}); $f(d,this.Ra.concat(this.i))}else $f(d,a.Ra);rj(this,d);this.u.set("h",1);this.u.set("u",2);this.u.set("k",3);this.j.set(25,1);this.j.set(26,2);this.j.set(27,3);this.j.set(28,4)} z(qj,nj);p=qj.prototype;p.zd=function(a){var b;(b=this.T)!=null&&Ff(b)&&(a=a.sort(function(c,d){return c-d}),this.i!==a&&(this.i=a,a=$f(new Zf,this.Ra.concat(this.i)),rj(this,a)))}; function rj(a,b){var c=new yh(1828,"0");c.h="31";c.network=new jj;c.i=b;a.h&&(a.Xa(),a.h.dispose());a.o&&a.o.dispose();a.o=new Ah(1828,"","",!1,"",zh(c));a.h=new Mi(a.o);a.h.o=1E5;b=a.h;b.flushInterval=3E4;b.h.setInterval(3E4);a.ya=new rc(a.h);a.Ia=new uc(a.h);a.Ya=new vc(a.h);a.lb=new wc(a.h);a.oa=new qc(a.h);a.V=new sc(a.h);a.W=new tc(a.h);a.errorCount=new zc(a.h);a.fa=new yc(a.h);new xc(a.h);new Ac(a.h);new Bc(a.h);new Cc(a.h);a.ha=new pc(a.h);vg(a,a.o);vg(a,a.h)} p.jd=function(){var a;(a=this.ha)!=null&&a.h.Bb("/client_streamz/bg/fic",this.wa)}; p.Bc=function(){var a;(a=this.Ia)!=null&&a.h.Bb("/client_streamz/bg/fsc",this.wa)}; p.Cc=function(a){var b;(b=this.lb)==null||b.record(a,this.wa)}; p.Lb=function(a,b){if(a==="t"){var c;(c=this.ya)==null||c.record(b,this.wa)}else if(a==="n"){var d;(d=this.Ya)==null||d.record(b,this.wa)}else if(a==="h"||a==="u"||a==="k"){if(a=this.u.get(a)){var e;(e=this.V)!=null&&e.h.Bb("/client_streamz/bg/fcc",a,this.wa);var f;(f=this.W)==null||f.record(b,a,this.wa)}}else{var g;(g=this.fa)==null||g.record(b,a,this.qc,this.wa)}}; p.Fa=function(a){var b=this.j.get(a);if(b){var c;(c=this.oa)!=null&&c.h.Bb("/client_streamz/bg/fiec",this.wa,b)}else{var d;(d=this.errorCount)!=null&&d.h.Bb("/client_streamz/bg/cec",a,this.qc,this.wa)}}; p.Xa=function(){var a=this;if(!this.H){var b;(b=this.h)==null||b.Cb()}else if(!this.I)if(b=mj(),this.A===void 0){this.A=b;var c;(c=this.h)==null||c.Cb()}else if(c=b-this.A,c>=this.H){this.A=b;var d;(d=this.h)==null||d.Cb()}else this.I=!0,setTimeout(function(){a.da||(a.I=!1,a.Xa())},this.H-c)}; function mj(){var a,b,c;return(c=(a=globalThis.performance)==null?void 0:(b=a.now)==null?void 0:b.call(a))!=null?c:Date.now()} ;function lc(a){this.G=I(a)} z(lc,K);function sj(a){this.G=I(a)} z(sj,K);var tj=Yf(sj);function uj(a){this.G=I(a,0,"bfkj")} z(uj,K);var vj=function(a){return Qd(function(b){return b instanceof a&&!(Bd(b.G)&2)})}(uj);function wj(){var a=this;this.promise=new Promise(function(b,c){a.resolve=b;a.reject=c})} ;function xj(a){function b(y,H,J,N){Promise.resolve().then(function(){n.done();d.logger.Xa();m.resolve({Ld:y,Ze:H,nh:J,ah:N})})} function c(y,H,J,N){if(!d.logger.da){var P="k";H?P="h":J&&(P="u");P!=="k"?N!==0&&d.logger.Lb(P,y):d.j<=0?(d.logger.Lb(P,y),d.j=Math.floor(Math.random()*200)):d.j--}} L.call(this);var d=this;this.j=Math.floor(Math.random()*200);this.i=[];if("challenge"in a&&vj(a.challenge)){var e=Gf(a.challenge,4);var f=Gf(a.challenge,5);Gf(a.challenge,7).length?this.h=tj(Gf(a.challenge,7)):this.h=Af(a.challenge,sj,6)}else e=a.program,f=a.de;var g=new L;this.addOnDisposeCallback(function(){var y,H,J;return A(function(N){if(N.h==1)return N.yield(d.o,2);if(N.h!=3)return y=N.i,H=y.Ze,N.yield(Promise.all(d.i),3);d.i=[];d.logger.Xa();(J=H)==null||J();g.dispose();N.h=0})}); if(a.Fe!==!1)if(a.Pd){this.logger=a.Pd;var h;((h=this.h)==null?0:Ff(h))&&this.logger.zd(jc(this.h))}else{h=[];var k;if((k=this.h)==null?0:Ff(k))h=jc(this.h);var l;vg(g,this.logger=new qj((l=a.xe)!=null?l:kj,this.h,h))}else vg(g,this.logger=new pj);var m=new wj;this.o=m.promise;var n=new lj(this.logger,"t",!0);this.logger.jd();if(!C[f])throw this.logger.Fa(25),Error("EGOU");if(!C[f].a)throw this.logger.Fa(26),Error("ELIU");try{var r=C[f].a;f=[[],[]];var t;if((t=this.h)==null?0:Ff(t)){var v=jc(this.h); for(t=0;t>>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;e<80;e++){if(e<40)if(e<20){f=h^c&(g^h);var l=1518500249}else f=c^g^h,l=1859775393;else e<60?(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} Pj.prototype.update=function(a,b){if(a!=null){b===void 0&&(b=a.length);for(var c=b-this.blockSize,d=0,e=this.D,f=this.i;d=56;c--)this.D[c]=b&255,b/=256;Qj(this,this.D);for(c=b=0;c<5;c++)for(var d=24;d>=0;d-=8)a[b]=this.h[c]>>d&255,++b;return a};function Rj(a){return typeof a.className=="string"?a.className:a.getAttribute&&a.getAttribute("class")||""} function Sj(a,b){typeof a.className=="string"?a.className=b:a.setAttribute&&a.setAttribute("class",b)} function Tj(a,b){a.classList?b=a.classList.contains(b):(a=a.classList?a.classList:Rj(a).match(/\S+/g)||[],b=Ib(a,b)>=0);return b} function Uj(){var a=document.body;a.classList?a.classList.remove("inverted-hdpi"):Tj(a,"inverted-hdpi")&&Sj(a,Array.prototype.filter.call(a.classList?a.classList:Rj(a).match(/\S+/g)||[],function(b){return b!="inverted-hdpi"}).join(" "))} ;function Vj(){} Vj.prototype.next=function(){return Wj}; var Wj={done:!0,value:void 0};Vj.prototype.mb=function(){return this};function Xj(a){if(a instanceof Yj||a instanceof Zj||a instanceof ak)return a;if(typeof a.next=="function")return new Yj(function(){return a}); if(typeof a[Symbol.iterator]=="function")return new Yj(function(){return a[Symbol.iterator]()}); if(typeof a.mb=="function")return new Yj(function(){return a.mb()}); throw Error("Not an iterator or iterable.");} function Yj(a){this.h=a} Yj.prototype.mb=function(){return new Zj(this.h())}; Yj.prototype[Symbol.iterator]=function(){return new ak(this.h())}; Yj.prototype.i=function(){return new ak(this.h())}; function Zj(a){this.h=a} z(Zj,Vj);Zj.prototype.next=function(){return this.h.next()}; Zj.prototype[Symbol.iterator]=function(){return new ak(this.h)}; Zj.prototype.i=function(){return new ak(this.h)}; function ak(a){Yj.call(this,function(){return a}); this.j=a} z(ak,Yj);ak.prototype.next=function(){return this.j.next()};function M(a){L.call(this);this.u=1;this.j=[];this.o=0;this.h=[];this.i={};this.A=!!a} Ya(M,L);p=M.prototype;p.subscribe=function(a,b,c){var d=this.i[a];d||(d=this.i[a]=[]);var e=this.u;this.h[e]=a;this.h[e+1]=b;this.h[e+2]=c;this.u=e+3;d.push(e);return e}; p.unsubscribe=function(a,b,c){if(a=this.i[a]){var d=this.h;if(a=a.find(function(e){return d[e+1]==b&&d[e+2]==c}))return this.Sb(a)}return!1}; p.Sb=function(a){var b=this.h[a];if(b){var c=this.i[b];this.o!=0?(this.j.push(a),this.h[a+1]=function(){}):(c&&Ob(c,a),delete this.h[a],delete this.h[a+1],delete this.h[a+2])}return!!b}; p.kb=function(a,b){var c=this.i[a];if(c){for(var d=Array(arguments.length-1),e=1,f=arguments.length;e0&&this.o==0)for(;c=this.j.pop();)this.Sb(c)}}return e!=0}return!1}; function bk(a,b,c){oi(function(){a.apply(b,c)})} p.clear=function(a){if(a){var b=this.i[a];b&&(b.forEach(this.Sb,this),delete this.i[a])}else this.h.length=0,this.i={}}; p.aa=function(){M.Ba.aa.call(this);this.clear();this.j.length=0};function ck(a){this.h=a} ck.prototype.set=function(a,b){b===void 0?this.h.remove(a):this.h.set(a,(new Qi).serialize(b))}; ck.prototype.get=function(a){try{var b=this.h.get(a)}catch(c){return}if(b!==null)try{return JSON.parse(b)}catch(c){throw"Storage: Invalid value was encountered";}}; ck.prototype.remove=function(a){this.h.remove(a)};function dk(a){this.h=a} Ya(dk,ck);function ek(a){this.data=a} function fk(a){return a===void 0||a instanceof ek?a:new ek(a)} dk.prototype.set=function(a,b){dk.Ba.set.call(this,a,fk(b))}; dk.prototype.i=function(a){a=dk.Ba.get.call(this,a);if(a===void 0||a instanceof Object)return a;throw"Storage: Invalid value was encountered";}; dk.prototype.get=function(a){if(a=this.i(a)){if(a=a.data,a===void 0)throw"Storage: Invalid value was encountered";}else a=void 0;return a};function gk(a){this.h=a} Ya(gk,dk);gk.prototype.set=function(a,b,c){if(b=fk(b)){if(c){if(cXa())gk.prototype.remove.call(this,a);else return b}};function hk(){} ;function ik(){} Ya(ik,hk);ik.prototype[Symbol.iterator]=function(){return Xj(this.mb(!0)).i()}; ik.prototype.clear=function(){var a=Array.from(this);a=w(a);for(var b=a.next();!b.done;b=a.next())this.remove(b.value)};function jk(a){this.h=a;this.i=null} Ya(jk,ik);p=jk.prototype;p.isAvailable=function(){var a=this.h;if(a)try{a.setItem("__sak","1");a.removeItem("__sak");var b=!0}catch(c){b=c instanceof DOMException&&(c.name==="QuotaExceededError"||c.code===22||c.code===1014||c.name==="NS_ERROR_DOM_QUOTA_REACHED")&&a&&a.length!==0}else b=!1;return this.i=b}; p.set=function(a,b){kk(this);try{this.h.setItem(a,b)}catch(c){if(this.h.length==0)throw"Storage mechanism: Storage disabled";throw"Storage mechanism: Quota exceeded";}}; p.get=function(a){kk(this);a=this.h.getItem(a);if(typeof a!=="string"&&a!==null)throw"Storage mechanism: Invalid value was encountered";return a}; p.remove=function(a){kk(this);this.h.removeItem(a)}; p.mb=function(a){kk(this);var b=0,c=this.h,d=new Vj;d.next=function(){if(b>=c.length)return Wj;var e=c.key(b++);if(a)return{value:e,done:!1};e=c.getItem(e);if(typeof e!=="string")throw"Storage mechanism: Invalid value was encountered";return{value:e,done:!1}}; return d}; p.clear=function(){kk(this);this.h.clear()}; p.key=function(a){kk(this);return this.h.key(a)}; function kk(a){if(a.h==null)throw Error("Storage mechanism: Storage unavailable");var b;((b=a.i)!=null?b:a.isAvailable())||Dc(Error("Storage mechanism: Storage unavailable"))} ;function lk(){var a=null;try{a=C.localStorage||null}catch(b){}jk.call(this,a)} Ya(lk,jk);function mk(a,b){this.i=a;this.h=b+"::"} Ya(mk,ik);mk.prototype.set=function(a,b){this.i.set(this.h+a,b)}; mk.prototype.get=function(a){return this.i.get(this.h+a)}; mk.prototype.remove=function(a){this.i.remove(this.h+a)}; mk.prototype.mb=function(a){var b=this.i[Symbol.iterator](),c=this,d=new Vj;d.next=function(){var e=b.next();if(e.done)return e;for(e=e.value;e.slice(0,c.h.length)!=c.h;){e=b.next();if(e.done)return e;e=e.value}return{value:a?e.slice(c.h.length):c.i.get(e),done:!1}}; return d};/* (The MIT License) Copyright (C) 2014 by Vitaly Puzrin Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ----------------------------------------------------------------------------- Ported from zlib, which is under the following license https://github.com/madler/zlib/blob/master/zlib.h zlib.h -- interface of the 'zlib' general purpose compression library version 1.2.8, April 28th, 2013 Copyright (C) 1995-2013 Jean-loup Gailly and Mark Adler This software is provided 'as-is', without any express or implied warranty. In no event will the authors be held liable for any damages arising from the use of this software. Permission is granted to anyone to use this software for any purpose, including commercial applications, and to alter it and redistribute it freely, subject to the following restrictions: 1. The origin of this software must not be misrepresented; you must not claim that you wrote the original software. If you use this software in a product, an acknowledgment in the product documentation would be appreciated but is not required. 2. Altered source versions must be plainly marked as such, and must not be misrepresented as being the original software. 3. This notice may not be removed or altered from any source distribution. Jean-loup Gailly Mark Adler jloup@gzip.org madler@alumni.caltech.edu The data format used by the zlib library is described by RFCs (Request for Comments) 1950 to 1952 in the files http://tools.ietf.org/html/rfc1950 (zlib format), rfc1951 (deflate format) and rfc1952 (gzip format). */ var O={},nk=typeof Uint8Array!=="undefined"&&typeof Uint16Array!=="undefined"&&typeof Int32Array!=="undefined";O.assign=function(a){for(var b=Array.prototype.slice.call(arguments,1);b.length;){var c=b.shift();if(c){if(typeof c!=="object")throw new TypeError(c+"must be non-object");for(var d in c)Object.prototype.hasOwnProperty.call(c,d)&&(a[d]=c[d])}}return a}; O.Nc=function(a,b){if(a.length===b)return a;if(a.subarray)return a.subarray(0,b);a.length=b;return a}; var ok={ob:function(a,b,c,d,e){if(b.subarray&&a.subarray)a.set(b.subarray(c,c+d),e);else for(var f=0;f>>6:(f<65536?h[c++]=224|f>>>12:(h[c++]=240|f>>>18,h[c++]=128|f>>>12&63),h[c++]=128|f>>> 6&63),h[c++]=128|f&63);return h} ;var sk={};sk=function(a,b,c,d){var e=a&65535|0;a=a>>>16&65535|0;for(var f;c!==0;){f=c>2E3?2E3:c;c-=f;do e=e+b[d++]|0,a=a+e|0;while(--f);e%=65521;a%=65521}return e|a<<16|0};for(var tk={},uk,vk=[],wk=0;wk<256;wk++){uk=wk;for(var xk=0;xk<8;xk++)uk=uk&1?3988292384^uk>>>1:uk>>>1;vk[wk]=uk}tk=function(a,b,c,d){c=d+c;for(a^=-1;d>>8^vk[(a^b[d])&255];return a^-1};var yk={};yk={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"};function zk(a){for(var b=a.length;--b>=0;)a[b]=0} var Ak=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],Bk=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],Ck=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],Dk=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],Ek=Array(576);zk(Ek);var Fk=Array(60);zk(Fk);var Gk=Array(512);zk(Gk);var Hk=Array(256);zk(Hk);var Ik=Array(29);zk(Ik);var Jk=Array(30);zk(Jk);function Kk(a,b,c,d,e){this.xd=a;this.Zd=b;this.Yd=c;this.Td=d;this.we=e;this.dd=a&&a.length} var Lk,Mk,Nk;function Ok(a,b){this.Yc=a;this.wb=0;this.Va=b} function Pk(a,b){a.Z[a.pending++]=b&255;a.Z[a.pending++]=b>>>8&255} function Qk(a,b,c){a.ia>16-c?(a.na|=b<>16-a.ia,a.ia+=c-16):(a.na|=b<>>=1,c<<=1;while(--b>0);return c>>>1} function Tk(a,b,c){var d=Array(16),e=0,f;for(f=1;f<=15;f++)d[f]=e=e+c[f-1]<<1;for(c=0;c<=b;c++)e=a[c*2+1],e!==0&&(a[c*2]=Sk(d[e]++,e))} function Uk(a){var b;for(b=0;b<286;b++)a.ra[b*2]=0;for(b=0;b<30;b++)a.ab[b*2]=0;for(b=0;b<19;b++)a.ja[b*2]=0;a.ra[512]=1;a.Oa=a.Ab=0;a.za=a.matches=0} function Vk(a){a.ia>8?Pk(a,a.na):a.ia>0&&(a.Z[a.pending++]=a.na);a.na=0;a.ia=0} function Wk(a,b,c){Vk(a);Pk(a,c);Pk(a,~c);O.ob(a.Z,a.window,b,c,a.pending);a.pending+=c} function Xk(a,b,c,d){var e=b*2,f=c*2;return a[e]>>7)];Rk(a,g,c);h=Bk[g];h!==0&&(e-=Jk[g],Qk(a,e,h))}}while(d>1;g>=1;g--)Yk(a,c,g);k=f;do g=a.ba[1],a.ba[1]=a.ba[a.Ma--],Yk(a,c,1),d=a.ba[1],a.ba[--a.rb]=g,a.ba[--a.rb]=d,c[k*2]=c[g*2]+c[d*2],a.depth[k]=(a.depth[g]>=a.depth[d]?a.depth[g]:a.depth[d])+1,c[g*2+1]=c[d*2+1]=k,a.ba[1]=k++,Yk(a,c,1);while(a.Ma>= 2);a.ba[--a.rb]=a.ba[1];g=b.Yc;k=b.wb;d=b.Va.xd;e=b.Va.dd;f=b.Va.Zd;var l=b.Va.Yd,m=b.Va.we,n,r=0;for(n=0;n<=15;n++)a.Ja[n]=0;g[a.ba[a.rb]*2+1]=0;for(b=a.rb+1;b<573;b++){var t=a.ba[b];n=g[g[t*2+1]*2+1]+1;n>m&&(n=m,r++);g[t*2+1]=n;if(!(t>k)){a.Ja[n]++;var v=0;t>=l&&(v=f[t-l]);var x=g[t*2];a.Oa+=x*(n+v);e&&(a.Ab+=x*(d[t*2+1]+v))}}if(r!==0){do{for(n=m-1;a.Ja[n]===0;)n--;a.Ja[n]--;a.Ja[n+1]+=2;a.Ja[m]--;r-=2}while(r>0);for(n=m;n!==0;n--)for(t=a.Ja[n];t!==0;)d=a.ba[--b],d>k||(g[d*2+1]!==n&&(a.Oa+=(n-g[d* 2+1])*g[d*2],g[d*2+1]=n),t--)}Tk(c,h,a.Ja)} function al(a,b,c){var d,e=-1,f=b[1],g=0,h=7,k=4;f===0&&(h=138,k=3);b[(c+1)*2+1]=65535;for(d=0;d<=c;d++){var l=f;f=b[(d+1)*2+1];++g>>=1)if(b&1&&a.ra[c*2]!==0)return 0;if(a.ra[18]!==0||a.ra[20]!==0||a.ra[26]!==0)return 1;for(c=32;c<256;c++)if(a.ra[c*2]!==0)return 1;return 0} var dl=!1;function el(a,b,c){a.Z[a.Fb+a.za*2]=b>>>8&255;a.Z[a.Fb+a.za*2+1]=b&255;a.Z[a.Ac+a.za]=c&255;a.za++;b===0?a.ra[c*2]++:(a.matches++,b--,a.ra[(Hk[c]+256+1)*2]++,a.ab[(b<256?Gk[b]:Gk[256+(b>>>7)])*2]++);return a.za===a.Kb-1} ;function fl(a,b){a.msg=yk[b];return b} function gl(a){for(var b=a.length;--b>=0;)a[b]=0} function hl(a){var b=a.state,c=b.pending;c>a.R&&(c=a.R);c!==0&&(O.ob(a.output,b.Z,b.Nb,c,a.xb),a.xb+=c,b.Nb+=c,a.Oc+=c,a.R-=c,b.pending-=c,b.pending===0&&(b.Nb=0))} function il(a,b){var c=a.ta>=0?a.ta:-1,d=a.v-a.ta,e=0;if(a.level>0){a.M.vc===2&&(a.M.vc=cl(a));$k(a,a.hc);$k(a,a.Zb);al(a,a.ra,a.hc.wb);al(a,a.ab,a.Zb.wb);$k(a,a.Tc);for(e=18;e>=3&&a.ja[Dk[e]*2+1]===0;e--);a.Oa+=3*(e+1)+14;var f=a.Oa+3+7>>>3;var g=a.Ab+3+7>>>3;g<=f&&(f=g)}else f=g=d+5;if(d+4<=f&&c!==-1)Qk(a,b?1:0,3),Wk(a,c,d);else if(a.strategy===4||g===f)Qk(a,2+(b?1:0),3),Zk(a,Ek,Fk);else{Qk(a,4+(b?1:0),3);c=a.hc.wb+1;d=a.Zb.wb+1;e+=1;Qk(a,c-257,5);Qk(a,d-1,5);Qk(a,e-4,4);for(f=0;f>>8&255;a.Z[a.pending++]=b&255} function kl(a,b){var c=a.kd,d=a.v,e=a.xa,f=a.ld,g=a.v>a.la-262?a.v-(a.la-262):0,h=a.window,k=a.Wa,l=a.Ga,m=a.v+258,n=h[d+e-1],r=h[d+e];a.xa>=a.cd&&(c>>=2);f>a.B&&(f=a.B);do{var t=b;if(h[t+e]===r&&h[t+e-1]===n&&h[t]===h[d]&&h[++t]===h[d+1]){d+=2;for(t++;h[++d]===h[++t]&&h[++d]===h[++t]&&h[++d]===h[++t]&&h[++d]===h[++t]&&h[++d]===h[++t]&&h[++d]===h[++t]&&h[++d]===h[++t]&&h[++d]===h[++t]&&de){a.vb=b;e=t;if(t>=f)break;n=h[d+e-1];r=h[d+e]}}}while((b=l[b&k])>g&&--c!==0);return e<= a.B?e:a.B} function ll(a){var b=a.la,c;do{var d=a.Ed-a.B-a.v;if(a.v>=b+(b-262)){O.ob(a.window,a.window,b,b,0);a.vb-=b;a.v-=b;a.ta-=b;var e=c=a.ec;do{var f=a.head[--e];a.head[e]=f>=b?f-b:0}while(--c);e=c=b;do f=a.Ga[--e],a.Ga[e]=f>=b?f-b:0;while(--c);d+=b}if(a.M.ma===0)break;e=a.M;c=a.window;f=a.v+a.B;var g=e.ma;g>d&&(g=d);g===0?c=0:(e.ma-=g,O.ob(c,e.input,e.gb,g,f),e.state.wrap===1?e.K=sk(e.K,c,g,f):e.state.wrap===2&&(e.K=tk(e.K,c,g,f)),e.gb+=g,e.ib+=g,c=g);a.B+=c;if(a.B+a.sa>=3)for(d=a.v-a.sa,a.P=a.window[d], a.P=(a.P<=3&&(a.P=(a.P<=3)if(c=el(a,a.v-a.vb,a.S-3),a.B-=a.S,a.S<=a.Dc&&a.B>=3){a.S--;do a.v++,a.P=(a.P<=3&&(a.P=(a.P<4096)&&(a.S=2));if(a.xa>=3&&a.S<=a.xa){d=a.v+a.B-3;c=el(a,a.v-1-a.od,a.xa-3);a.B-=a.xa-1;a.xa-=2;do++a.v<=d&&(a.P=(a.P<=3&&a.v>0&&(d=a.v-1,c=f[d],c===f[++d]&&c===f[++d]&&c===f[++d])){for(e=a.v+258;c===f[++d]&&c===f[++d]&&c===f[++d]&&c===f[++d]&&c===f[++d]&&c===f[++d]&&c===f[++d]&&c===f[++d]&&da.B&&(a.S=a.B)}a.S>=3?(c=el(a,1,a.S-3),a.B-=a.S,a.v+=a.S,a.S=0):(c=el(a,0,a.window[a.v]),a.B--,a.v++);if(c&&(il(a,!1),a.M.R===0))return 1}a.sa=0;return b===4?(il(a,!0),a.M.R===0?3:4): a.za&&(il(a,!1),a.M.R===0)?1:2} function pl(a,b){for(var c;;){if(a.B===0&&(ll(a),a.B===0)){if(b===0)return 1;break}a.S=0;c=el(a,0,a.window[a.v]);a.B--;a.v++;if(c&&(il(a,!1),a.M.R===0))return 1}a.sa=0;return b===4?(il(a,!0),a.M.R===0?3:4):a.za&&(il(a,!1),a.M.R===0)?1:2} function ql(a,b,c,d,e){this.ee=a;this.ue=b;this.ye=c;this.te=d;this.ae=e} var rl;rl=[new ql(0,0,0,0,function(a,b){var c=65535;for(c>a.Aa-5&&(c=a.Aa-5);;){if(a.B<=1){ll(a);if(a.B===0&&b===0)return 1;if(a.B===0)break}a.v+=a.B;a.B=0;var d=a.ta+c;if(a.v===0||a.v>=d)if(a.B=a.v-d,a.v=d,il(a,!1),a.M.R===0)return 1;if(a.v-a.ta>=a.la-262&&(il(a,!1),a.M.R===0))return 1}a.sa=0;if(b===4)return il(a,!0),a.M.R===0?3:4;a.v>a.ta&&il(a,!1);return 1}), new ql(4,4,8,4,ml),new ql(4,5,16,8,ml),new ql(4,6,32,32,ml),new ql(4,4,16,16,nl),new ql(8,16,32,32,nl),new ql(8,16,128,128,nl),new ql(8,32,128,256,nl),new ql(32,128,258,1024,nl),new ql(32,258,258,4096,nl)]; function sl(){this.M=null;this.status=0;this.Z=null;this.wrap=this.pending=this.Nb=this.Aa=0;this.J=null;this.Ca=0;this.method=8;this.tb=-1;this.Wa=this.Qc=this.la=0;this.window=null;this.Ed=0;this.head=this.Ga=null;this.ld=this.cd=this.strategy=this.level=this.Dc=this.kd=this.xa=this.B=this.vb=this.v=this.eb=this.od=this.S=this.ta=this.La=this.Ka=this.yc=this.ec=this.P=0;this.ra=new O.Ha(1146);this.ab=new O.Ha(122);this.ja=new O.Ha(78);gl(this.ra);gl(this.ab);gl(this.ja);this.Tc=this.Zb=this.hc= null;this.Ja=new O.Ha(16);this.ba=new O.Ha(573);gl(this.ba);this.rb=this.Ma=0;this.depth=new O.Ha(573);gl(this.depth);this.ia=this.na=this.sa=this.matches=this.Ab=this.Oa=this.Fb=this.za=this.Kb=this.Ac=0} function tl(a,b){if(!a||!a.state||b>5||b<0)return a?fl(a,-2):-2;var c=a.state;if(!a.output||!a.input&&a.ma!==0||c.status===666&&b!==4)return fl(a,a.R===0?-5:-2);c.M=a;var d=c.tb;c.tb=b;if(c.status===42)if(c.wrap===2)a.K=0,R(c,31),R(c,139),R(c,8),c.J?(R(c,(c.J.text?1:0)+(c.J.Sa?2:0)+(c.J.extra?4:0)+(c.J.name?8:0)+(c.J.comment?16:0)),R(c,c.J.time&255),R(c,c.J.time>>8&255),R(c,c.J.time>>16&255),R(c,c.J.time>>24&255),R(c,c.level===9?2:c.strategy>=2||c.level<2?4:0),R(c,c.J.os&255),c.J.extra&&c.J.extra.length&& (R(c,c.J.extra.length&255),R(c,c.J.extra.length>>8&255)),c.J.Sa&&(a.K=tk(a.K,c.Z,c.pending,0)),c.Ca=0,c.status=69):(R(c,0),R(c,0),R(c,0),R(c,0),R(c,0),R(c,c.level===9?2:c.strategy>=2||c.level<2?4:0),R(c,3),c.status=113);else{var e=8+(c.Qc-8<<4)<<8;e|=(c.strategy>=2||c.level<2?0:c.level<6?1:c.level===6?2:3)<<6;c.v!==0&&(e|=32);c.status=113;jl(c,e+(31-e%31));c.v!==0&&(jl(c,a.K>>>16),jl(c,a.K&65535));a.K=1}if(c.status===69)if(c.J.extra){for(e=c.pending;c.Ca<(c.J.extra.length&65535)&&(c.pending!==c.Aa|| (c.J.Sa&&c.pending>e&&(a.K=tk(a.K,c.Z,c.pending-e,e)),hl(a),e=c.pending,c.pending!==c.Aa));)R(c,c.J.extra[c.Ca]&255),c.Ca++;c.J.Sa&&c.pending>e&&(a.K=tk(a.K,c.Z,c.pending-e,e));c.Ca===c.J.extra.length&&(c.Ca=0,c.status=73)}else c.status=73;if(c.status===73)if(c.J.name){e=c.pending;do{if(c.pending===c.Aa&&(c.J.Sa&&c.pending>e&&(a.K=tk(a.K,c.Z,c.pending-e,e)),hl(a),e=c.pending,c.pending===c.Aa)){var f=1;break}f=c.Ca e&&(a.K=tk(a.K,c.Z,c.pending-e,e));f===0&&(c.Ca=0,c.status=91)}else c.status=91;if(c.status===91)if(c.J.comment){e=c.pending;do{if(c.pending===c.Aa&&(c.J.Sa&&c.pending>e&&(a.K=tk(a.K,c.Z,c.pending-e,e)),hl(a),e=c.pending,c.pending===c.Aa)){f=1;break}f=c.Cae&&(a.K=tk(a.K,c.Z,c.pending-e,e));f===0&&(c.status=103)}else c.status=103;c.status===103&&(c.J.Sa?(c.pending+2>c.Aa&&hl(a),c.pending+2<=c.Aa&&(R(c,a.K& 255),R(c,a.K>>8&255),a.K=0,c.status=113)):c.status=113);if(c.pending!==0){if(hl(a),a.R===0)return c.tb=-1,0}else if(a.ma===0&&(b<<1)-(b>4?9:0)<=(d<<1)-(d>4?9:0)&&b!==4)return fl(a,-5);if(c.status===666&&a.ma!==0)return fl(a,-5);if(a.ma!==0||c.B!==0||b!==0&&c.status!==666){d=c.strategy===2?pl(c,b):c.strategy===3?ol(c,b):rl[c.level].ae(c,b);if(d===3||d===4)c.status=666;if(d===1||d===3)return a.R===0&&(c.tb=-1),0;if(d===2&&(b===1?(Qk(c,2,3),Rk(c,256,Ek),c.ia===16?(Pk(c,c.na),c.na=0,c.ia=0):c.ia>=8&& (c.Z[c.pending++]=c.na&255,c.na>>=8,c.ia-=8)):b!==5&&(Qk(c,0,3),Wk(c,0,0),b===3&&(gl(c.head),c.B===0&&(c.v=0,c.ta=0,c.sa=0))),hl(a),a.R===0))return c.tb=-1,0}if(b!==4)return 0;if(c.wrap<=0)return 1;c.wrap===2?(R(c,a.K&255),R(c,a.K>>8&255),R(c,a.K>>16&255),R(c,a.K>>24&255),R(c,a.ib&255),R(c,a.ib>>8&255),R(c,a.ib>>16&255),R(c,a.ib>>24&255)):(jl(c,a.K>>>16),jl(c,a.K&65535));hl(a);c.wrap>0&&(c.wrap=-c.wrap);return c.pending!==0?0:1} ;var ul={};ul=function(){this.input=null;this.ib=this.ma=this.gb=0;this.output=null;this.Oc=this.R=this.xb=0;this.msg="";this.state=null;this.vc=2;this.K=0};var vl=Object.prototype.toString; function wl(a){if(!(this instanceof wl))return new wl(a);a=this.options=O.assign({level:-1,method:8,chunkSize:16384,windowBits:15,memLevel:8,strategy:0,to:""},a||{});a.raw&&a.windowBits>0?a.windowBits=-a.windowBits:a.gzip&&a.windowBits>0&&a.windowBits<16&&(a.windowBits+=16);this.err=0;this.msg="";this.ended=!1;this.chunks=[];this.M=new ul;this.M.R=0;var b=this.M;var c=a.level,d=a.method,e=a.windowBits,f=a.memLevel,g=a.strategy;if(b){var h=1;c===-1&&(c=6);e<0?(h=0,e=-e):e>15&&(h=2,e-=16);if(f<1||f> 9||d!==8||e<8||e>15||c<0||c>9||g<0||g>4)b=fl(b,-2);else{e===8&&(e=9);var k=new sl;b.state=k;k.M=b;k.wrap=h;k.J=null;k.Qc=e;k.la=1<>=7;f<30;f++)for(Jk[f]=g<<7,e=0;e<1<=l.la&&(b===0&&(gl(l.head),l.v=0,l.ta=0,l.sa=0),c=new O.jb(l.la),O.ob(c,f,g-l.la,l.la,0),f=c,g=l.la);c=a.ma;d=a.gb;e=a.input;a.ma=g;a.gb=0;a.input=f;for(ll(l);l.B>=3;){f=l.v;g=l.B-2;do l.P=(l.P<0||c.R===0)&&a!==1);if(e===4)return(c=this.M)&&c.state?(d=c.state.status,d!==42&&d!==69&&d!==73&&d!==91&&d!==103&&d!==113&&d!==666?a=fl(c,-2):(c.state=null,a=d===113?fl(c,-3):0)):a=-2,xl(this,a),this.ended=!0,a===0;e===2&&(xl(this,0),c.R=0);return!0}; function xl(a,b){b===0&&(a.result=a.options.to==="string"?a.chunks.join(""):O.Zc(a.chunks));a.chunks=[];a.err=b;a.msg=a.M.msg} function yl(a,b){b=b||{};b.gzip=!0;b=new wl(b);b.push(a,!0);if(b.err)throw b.msg||yk[b.err];return b.result} ;function zl(a){if(!a)return null;a=a.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue;var b;a?b=gb(a):b=null;return b} ;function Al(a){return gb(a===null?"null":a===void 0?"undefined":a)} ;function Bl(a){this.name=a} ;var Cl=new Bl("rawColdConfigGroup");var Dl=new Bl("rawHotConfigGroup");function El(a){this.G=I(a)} z(El,K);function Fl(a){this.G=I(a)} z(Fl,K);Fl.prototype.setTrackingParams=function(a){if(a!=null)if(typeof a==="string")a=a?new pd(a,md):nd||(nd=new pd(null,md));else if(a.constructor!==pd)if(ld(a))a=a.length?new pd(new Uint8Array(a),md):nd||(nd=new pd(null,md));else throw Error();return of(this,1,a)};var Gl=new Bl("continuationCommand");var Hl=new Bl("webCommandMetadata");var Il=new Bl("signalServiceEndpoint");var Jl={Ef:"EMBEDDED_PLAYER_MODE_UNKNOWN",Bf:"EMBEDDED_PLAYER_MODE_DEFAULT",Df:"EMBEDDED_PLAYER_MODE_PFP",Cf:"EMBEDDED_PLAYER_MODE_PFL"};var Kl=new Bl("feedbackEndpoint");var Vd={Ag:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_UNKNOWN",Vf:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_FOR_TESTING",ng:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_RESUME_TO_HOME_TTL",sg:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_START_TO_SHORTS_ANALYSIS_SLICE",Pf:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_DEVICE_LAYER_SLICE",zg:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_UNIFIED_LAYER_SLICE",Bg:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_VISITOR_LAYER_SLICE",rg:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_SHOW_SHEET_COMMAND_HANDLER_BLOCK", Dg:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WIZ_NEXT_MIGRATED_COMPONENT",Cg:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WIZ_NEXT_CHANNEL_NAME_TOOLTIP",og:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ROTATION_LOCK_SUPPORTED",ug:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_THEATER_MODE_ENABLED",Hg:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_SHOW_PIN_SUGGESTION",Gg:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_SHOW_LONG_PRESS_EDU_TOAST",Fg:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_SHOW_AMBIENT",vg:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_TIME_WATCHED_PANEL", qg:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_SEARCH_FROM_SEARCH_BAR_OVERLAY",Ig:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_SHOW_VOICE_SEARCH_EDU_TOAST",tg:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_SUGGESTED_LANGUAGE_SELECTED",Jg:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_TRIGGER_SHORTS_PIP",dg:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IN_ZP_VOICE_CRASHY_SET",jg:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_REEL_FAST_SWIPE_SUPPRESSED",ig:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_REEL_FAST_SWIPE_ALLOWED",lg:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_REEL_PULL_TO_REFRESH_ATTEMPT", Eg:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_BLOCK_KABUKI",mg:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_REEL_TALL_SCREEN",kg:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_REEL_NORMAL_SCREEN",If:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ACCESSIBILITY_MODE_ENABLED",Hf:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ACCESSIBILITY_MODE_DISABLED",Jf:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_AUTOPLAY_ENABLED",Kf:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_CAST_MATCH_OCCURRED",Qf:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EMC3DS_ELIGIBLE",Sf:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ENDSCREEN_TRIGGERED", hg:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_POSTPLAY_TRIGGERED",gg:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_POSTPLAY_LACT_THRESHOLD_EXCEEDED",Wf:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IDENTITIES_STATE_MATCHED_ON_REMOTE_CONNECTION",Yf:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IDENTITIES_STATE_SWITCHABLE_ON_REMOTE_CONNECTION",Xf:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IDENTITIES_STATE_MISATTRIBUTED_ON_REMOTE_CONNECTION",cg:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IDENTITIES_TV_IS_SIGNED_IN_ON_REMOTE_CONNECTION",xg:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_TV_START_TYPE_COLD_ON_REMOTE_CONNECTION", yg:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_TV_START_TYPE_NON_COLD_ON_REMOTE_CONNECTION",fg:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ON_REMOTE_CONNECTION",Of:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_COBALT_PERSISTENT_SETTINGS_TEST_VALID",Mf:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_COBALT_PERSISTENT_SETTINGS_TEST_INVALID",Nf:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_COBALT_PERSISTENT_SETTINGS_TEST_UNDEFINED",Lf:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_COBALT_PERSISTENT_SETTINGS_TEST_DEFINED",eg:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_LACT_THRESHOLD_EXCEEDED", pg:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ROUND_TRIP_HANDLING_ON_REMOTE_CONNECTION",ag:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IDENTITIES_STATE_SWITCHED_ON_REMOTE_CONNECTION_BEFORE_APP_RELOAD",Zf:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IDENTITIES_STATE_SWITCHED_ON_REMOTE_CONNECTION_AFTER_APP_RELOAD",Rf:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EMC3DS_INELIGIBLE",wg:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_TVHTML5_MID_ROLL_THRESHOLD_REACHED",Uf:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EXP_COBALT_HTTP3_CONFIG_PENDING", Tf:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EXP_COBALT_HTTP3_CONFIG_ACTIVATED"};var Ll=new Bl("shareEndpoint"),Ml=new Bl("shareEntityEndpoint"),Nl=new Bl("shareEntityServiceEndpoint"),Ol=new Bl("webPlayerShareEntityServiceEndpoint");var Pl=new Bl("playlistEditEndpoint");var Ql=new Bl("modifyChannelNotificationPreferenceEndpoint");var Rl=new Bl("unsubscribeEndpoint");var Sl=new Bl("subscribeEndpoint");function Tl(){var a=Ul;E("yt.ads.biscotti.getId_")||D("yt.ads.biscotti.getId_",a)} function Vl(a){D("yt.ads.biscotti.lastId_",a)} ;function Wl(a,b){b.length>1?a[b[0]]=b[1]:b.length===1&&Object.assign(a,b[0])} ;var Xl=C.window,Yl,Zl,$l=(Xl==null?void 0:(Yl=Xl.yt)==null?void 0:Yl.config_)||(Xl==null?void 0:(Zl=Xl.ytcfg)==null?void 0:Zl.data_)||{};D("yt.config_",$l);function am(){Wl($l,arguments)} function S(a,b){return a in $l?$l[a]:b} function bm(a){var b=$l.EXPERIMENT_FLAGS;return b?b[a]:void 0} ;var cm=[];function dm(a){cm.forEach(function(b){return b(a)})} function em(a){return a&&window.yterr?function(){try{return a.apply(this,arguments)}catch(b){fm(b)}}:a} function fm(a){var b=E("yt.logging.errors.log");b?b(a,"ERROR",void 0,void 0,void 0,void 0,void 0):(b=S("ERRORS",[]),b.push([a,"ERROR",void 0,void 0,void 0,void 0,void 0]),am("ERRORS",b));dm(a)} function gm(a,b,c,d,e){var f=E("yt.logging.errors.log");f?f(a,"WARNING",b,c,d,void 0,e):(f=S("ERRORS",[]),f.push([a,"WARNING",b,c,d,void 0,e]),am("ERRORS",f))} ;var hm=/^[\w.]*$/,im={q:!0,search_query:!0};function jm(a,b){b=a.split(b);for(var c={},d=0,e=b.length;d1?a[1]:a[0])):{}} function pm(a,b,c){var d=a.split("#",2);a=d[0];d=d.length>1?"#"+d[1]:"";var e=a.split("?",2);a=e[0];e=nm(e[1]||"");for(var f in b)!c&&e!==null&&f in e||(e[f]=b[f]);return dc(a,e)+d} function qm(a){if(!b)var b=window.location.href;var c=Yb(1,a),d=Zb(a);c&&d?(a=a.match(Wb),b=b.match(Wb),a=a[3]==b[3]&&a[1]==b[1]&&a[4]==b[4]):a=d?Zb(b)===d&&(Number(Yb(4,b))||null)===(Number(Yb(4,a))||null):!0;return a} function km(a){return a&&a.match(hm)?a:decodeURIComponent(a.replace(/\+/g," "))} ;function rm(a){var b=sm;a=a===void 0?E("yt.ads.biscotti.lastId_")||"":a;var c=Object,d=c.assign,e={};e.dt=Gj;e.flash="0";a:{try{var f=b.h.top.location.href}catch(Ma){f=2;break a}f=f?f===b.i.location.href?0:1:2}e=(e.frm=f,e);try{e.u_tz=-(new Date).getTimezoneOffset();var g=g===void 0?yj:g;try{var h=g.history.length}catch(Ma){h=0}e.u_his=h;var k;e.u_h=(k=yj.screen)==null?void 0:k.height;var l;e.u_w=(l=yj.screen)==null?void 0:l.width;var m;e.u_ah=(m=yj.screen)==null?void 0:m.availHeight;var n;e.u_aw= (n=yj.screen)==null?void 0:n.availWidth;var r;e.u_cd=(r=yj.screen)==null?void 0:r.colorDepth}catch(Ma){}h=b.h;try{var t=h.screenX;var v=h.screenY}catch(Ma){}try{var x=h.outerWidth;var y=h.outerHeight}catch(Ma){}try{var H=h.innerWidth;var J=h.innerHeight}catch(Ma){}try{var N=h.screenLeft;var P=h.screenTop}catch(Ma){}try{H=h.innerWidth,J=h.innerHeight}catch(Ma){}try{var wa=h.screen.availWidth;var wb=h.screen.availTop}catch(Ma){}t=[N,P,t,v,wa,wb,x,y,H,J];try{var ea=(b.h.top||window).document,Z=ea.compatMode== "CSS1Compat"?ea.documentElement:ea.body;var oa=(new Bg(Z.clientWidth,Z.clientHeight)).round()}catch(Ma){oa=new Bg(-12245933,-12245933)}ea=oa;oa={};var Na=Na===void 0?C:Na;Z=new Mj;"SVGElement"in Na&&"createElementNS"in Na.document&&Z.set(0);v=Dj();v["allow-top-navigation-by-user-activation"]&&Z.set(1);v["allow-popups-to-escape-sandbox"]&&Z.set(2);Na.crypto&&Na.crypto.subtle&&Z.set(3);"TextDecoder"in Na&&"TextEncoder"in Na&&Z.set(4);Na=Nj(Z);oa.bc=Na;oa.bih=ea.height;oa.biw=ea.width;oa.brdim=t.join(); b=b.i;b=(oa.vis=b.prerendering?3:{visible:1,hidden:2,prerender:3,preview:4,unloaded:5}[b.visibilityState||b.webkitVisibilityState||b.mozVisibilityState||""]||0,oa.wgl=!!yj.WebGLRenderingContext,oa);c=d.call(c,e,b);c.ca_type="image";a&&(c.bid=a);return c} var sm=new function(){var a=window.document;this.h=window;this.i=a}; D("yt.ads_.signals_.getAdSignalsString",function(a){return mm(rm(a))});Xa();navigator.userAgent.indexOf(" (CrKey ");var tm="XMLHttpRequest"in C?function(){return new XMLHttpRequest}:null; function um(){if(!tm)return null;var a=tm();return"open"in a?a:null} function wm(a){switch(a&&"status"in a?a.status:-1){case 200:case 201:case 202:case 203:case 204:case 205:case 206:case 304:return!0;default:return!1}} ;function xm(a,b){typeof a==="function"&&(a=em(a));return window.setTimeout(a,b)} ;var ym="client_dev_domain client_dev_expflag client_dev_regex_map client_dev_root_url client_rollout_override expflag forcedCapability jsfeat jsmode mods".split(" ");[].concat(ka(ym),["client_dev_set_cookie"]);function T(a){a=zm(a);return typeof a==="string"&&a==="false"?!1:!!a} function Am(a,b){a=zm(a);return a===void 0&&b!==void 0?b:Number(a||0)} function zm(a){return S("EXPERIMENT_FLAGS",{})[a]} function Bm(){for(var a=[],b=S("EXPERIMENTS_FORCED_FLAGS",{}),c=w(Object.keys(b)),d=c.next();!d.done;d=c.next())d=d.value,a.push({key:d,value:String(b[d])});c=S("EXPERIMENT_FLAGS",{});d=w(Object.keys(c));for(var e=d.next();!e.done;e=d.next())e=e.value,e.startsWith("force_")&&b[e]===void 0&&a.push({key:e,value:String(c[e])});return a} ;var Cm={Authorization:"AUTHORIZATION","X-Goog-EOM-Visitor-Id":"EOM_VISITOR_DATA","X-Goog-Visitor-Id":"SANDBOXED_VISITOR_ID","X-Youtube-Domain-Admin-State":"DOMAIN_ADMIN_STATE","X-Youtube-Chrome-Connected":"CHROME_CONNECTED_HEADER","X-YouTube-Client-Name":"INNERTUBE_CONTEXT_CLIENT_NAME","X-YouTube-Client-Version":"INNERTUBE_CONTEXT_CLIENT_VERSION","X-YouTube-Delegation-Context":"INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT","X-YouTube-Device":"DEVICE","X-Youtube-Identity-Token":"ID_TOKEN","X-YouTube-Page-CL":"PAGE_CL", "X-YouTube-Page-Label":"PAGE_BUILD_LABEL","X-Goog-AuthUser":"SESSION_INDEX","X-Goog-PageId":"DELEGATED_SESSION_ID"},Dm="app debugcss debugjs expflag force_ad_params force_ad_encrypted force_viral_ad_response_params forced_experiments innertube_snapshots innertube_goldens internalcountrycode internalipoverride absolute_experiments conditional_experiments sbb sr_bns_address".split(" ").concat(ka(ym)),Em=!1;function Fm(a,b,c,d,e,f,g,h){function k(){(l&&"readyState"in l?l.readyState:0)===4&&b&&em(b)(l)} c=c===void 0?"GET":c;d=d===void 0?"":d;h=h===void 0?!1:h;var l=um();if(!l)return null;"onloadend"in l?l.addEventListener("loadend",k,!1):l.onreadystatechange=k;T("debug_forward_web_query_parameters")&&(a=Gm(a));l.open(c,a,!0);f&&(l.responseType=f);g&&(l.withCredentials=!0);c=c==="POST"&&(window.FormData===void 0||!(d instanceof FormData));if(e=Hm(a,e))for(var m in e)l.setRequestHeader(m,e[m]),"content-type"===m.toLowerCase()&&(c=!1);c&&l.setRequestHeader("Content-Type","application/x-www-form-urlencoded"); if(h&&"setAttributionReporting"in XMLHttpRequest.prototype){a={eventSourceEligible:!0,triggerEligible:!1};try{l.setAttributionReporting(a)}catch(n){gm(n)}}l.send(d);return l} function Hm(a,b){b=b===void 0?{}:b;var c=qm(a),d=S("INNERTUBE_CLIENT_NAME"),e=T("web_ajax_ignore_global_headers_if_set"),f;for(f in Cm){var g=S(Cm[f]),h=f==="X-Goog-AuthUser"||f==="X-Goog-PageId";f!=="X-Goog-Visitor-Id"||g||(g=S("VISITOR_DATA"));var k;if(!(k=!g)){if(!(k=c||(Zb(a)?!1:!0))){k=a;var l;if(l=T("add_auth_headers_to_remarketing_google_dot_com_ping")&&f==="Authorization"&&(d==="TVHTML5"||d==="TVHTML5_UNPLUGGED"||d==="TVHTML5_SIMPLY"))l=Zb(k),l=l!==null?l.split(".").reverse():null,l=l===null? !1:l[1]==="google"?!0:l[2]==="google"?l[0]==="au"&&l[1]==="com"?!0:l[0]==="uk"&&l[1]==="co"?!0:!1:!1;l&&(k=Xb(Yb(5,k))||"",k=k.split("/"),k="/"+(k.length>1?k[1]:""),l=k==="/pagead");k=l?!0:!1}k=!k}k||e&&b[f]!==void 0||d==="TVHTML5_UNPLUGGED"&&h||(b[f]=g)}"X-Goog-EOM-Visitor-Id"in b&&"X-Goog-Visitor-Id"in b&&delete b["X-Goog-Visitor-Id"];if(c||!Zb(a))b["X-YouTube-Utc-Offset"]=String(-(new Date).getTimezoneOffset());if(c||!Zb(a)){try{var m=(new Intl.DateTimeFormat).resolvedOptions().timeZone}catch(n){}m&& (b["X-YouTube-Time-Zone"]=m)}document.location.hostname.endsWith("youtubeeducation.com")||!c&&Zb(a)||(b["X-YouTube-Ad-Signals"]=mm(rm()));return b} function Im(a,b){b.method="POST";b.postParams||(b.postParams={});return Jm(a,b)} function Jm(a,b){var c=b.format||"JSON";a=Km(a,b);var d=Lm(a,b),e=!1,f=Mm(a,function(k){if(!e){e=!0;h&&window.clearTimeout(h);var l=wm(k),m=null,n=400<=k.status&&k.status<500,r=500<=k.status&&k.status<600;if(l||n||r)m=Nm(a,c,k,b.convertToSafeHtml);l&&(l=Om(c,k,m));m=m||{};n=b.context||C;l?b.onSuccess&&b.onSuccess.call(n,k,m):b.onError&&b.onError.call(n,k,m);b.onFinish&&b.onFinish.call(n,k,m)}},b.method,d,b.headers,b.responseType,b.withCredentials); d=b.timeout||0;if(b.onTimeout&&d>0){var g=b.onTimeout;var h=xm(function(){e||(e=!0,f.abort(),window.clearTimeout(h),g.call(b.context||C,f))},d)}return f} function Km(a,b){b.includeDomain&&(a=document.location.protocol+"//"+document.location.hostname+(document.location.port?":"+document.location.port:"")+a);var c=S("XSRF_FIELD_NAME");if(b=b.urlParams)b[c]&&delete b[c],a=pm(a,b||{},!0);return a} function Lm(a,b){var c=S("XSRF_FIELD_NAME"),d=S("XSRF_TOKEN"),e=b.postBody||"",f=b.postParams,g=S("XSRF_FIELD_NAME"),h;b.headers&&(h=b.headers["Content-Type"]);b.excludeXsrf||Zb(a)&&!b.withCredentials&&Zb(a)!==document.location.hostname||b.method!=="POST"||h&&h!=="application/x-www-form-urlencoded"||b.postParams&&b.postParams[g]||(f||(f={}),f[c]=d);(T("ajax_parse_query_data_only_when_filled")&&f&&Object.keys(f).length>0||f)&&typeof e==="string"&&(e=nm(e),Mg(e,f),e=b.postBodyFormat&&b.postBodyFormat=== "JSON"?JSON.stringify(e):cc(e));f=e||f&&!Fg(f);!Em&&f&&b.method!=="POST"&&(Em=!0,fm(Error("AJAX request with postData should use POST")));return e} function Nm(a,b,c,d){var e=null;switch(b){case "JSON":try{var f=c.responseText}catch(g){throw d=Error("Error reading responseText"),d.params=a,gm(d),g;}a=c.getResponseHeader("Content-Type")||"";f&&a.indexOf("json")>=0&&(f.substring(0,5)===")]}'\n"&&(f=f.substring(5)),e=JSON.parse(f));break;case "XML":if(a=(a=c.responseXML)?Pm(a):null)e={},Jb(a.getElementsByTagName("*"),function(g){e[g.tagName]=Qm(g)})}d&&Rm(e); return e} function Rm(a){if(Qa(a))for(var b in a){var c;(c=b==="html_content")||(c=b.length-5,c=c>=0&&b.indexOf("_html",c)==c);if(c){c=b;var d=a[b];var e=eb();d=new yb(e?e.createHTML(d):d);a[c]=d}else Rm(a[b])}} function Om(a,b,c){if(b&&b.status===204)return!0;switch(a){case "JSON":return!!c;case "XML":return Number(c&&c.return_code)===0;case "RAW":return!0;default:return!!c}} function Pm(a){return a?(a=("responseXML"in a?a.responseXML:a).getElementsByTagName("root"))&&a.length>0?a[0]:null:null} function Qm(a){var b="";Jb(a.childNodes,function(c){b+=c.nodeValue}); return b} function Gm(a){var b=window.location.search,c=Zb(a);T("debug_handle_relative_url_for_query_forward_killswitch")||!c&&qm(a)&&(c=document.location.hostname);var d=Xb(Yb(5,a));d=(c=c&&(c.endsWith("youtube.com")||c.endsWith("youtube-nocookie.com")))&&d&&d.startsWith("/api/");if(!c||d)return a;var e=nm(b),f={};Jb(Dm,function(g){e[g]&&(f[g]=e[g])}); return pm(a,f||{},!1)} var Mm=Fm;var Sm=[{Ec:function(a){return"Cannot read property '"+a.key+"'"}, ic:{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"]}]}},{Ec:function(a){return"Cannot call '"+a.key+"'"}, ic:{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"]}]}},{Ec:function(a){return a.key+" is not defined"}, ic:{ReferenceError:[{regexp:/(.*) is not defined/,groups:["key"]},{regexp:/Can't find variable: (.*)/,groups:["key"]}]}}];var Um={Ua:[],Qa:[{callback:Tm,weight:500}]};function Tm(a){if(a.name==="JavaException")return!0;a=a.stack;return a.includes("chrome://")||a.includes("chrome-extension://")||a.includes("moz-extension://")} ;function Vm(){this.Qa=[];this.Ua=[]} var Wm;function Xm(){if(!Wm){var a=Wm=new Vm;a.Ua.length=0;a.Qa.length=0;Um.Ua&&a.Ua.push.apply(a.Ua,Um.Ua);Um.Qa&&a.Qa.push.apply(a.Qa,Um.Qa)}return Wm} ;var Ym=new M;function Zm(a){function b(){return a.charCodeAt(d++)} var c=a.length,d=0;do{var e=$m(b);if(e===Infinity)break;var f=e>>3;switch(e&7){case 0:e=$m(b);if(f===2)return e;break;case 1:if(f===2)return;d+=8;break;case 2:e=$m(b);if(f===2)return a.substr(d,e);d+=e;break;case 5:if(f===2)return;d+=4;break;default:return}}while(d500));d++);d=e}else if(typeof a==="object")for(e in a){if(a[e]){var f=e;var g=a[e],h=b,k=c;f=typeof g!=="string"||f!=="clickTrackingParams"&&f!=="trackingParams"?0:(g=Zm(atob(g.replace(/-/g,"+").replace(/_/g,"/"))))?bn(f+".ve",g,h,k):0;d+=f;d+=bn(e,a[e],b,c);if(d>500)break}}else c[b]=cn(a),d+=c[b].length;else c[b]=cn(a),d+=c[b].length;return d} function bn(a,b,c,d){c+="."+a;a=cn(b);d[c]=a;return c.length+a.length} function cn(a){try{return(typeof a==="string"?a:String(JSON.stringify(a))).substr(0,500)}catch(b){return"unable to serialize "+typeof a+" ("+b.message+")"}} ;function dn(a){var b=this;this.i=void 0;this.h=!1;a.addEventListener("beforeinstallprompt",function(c){c.preventDefault();b.i=c}); a.addEventListener("appinstalled",function(){b.h=!0},{once:!0})} function en(){if(!C.matchMedia)return"WEB_DISPLAY_MODE_UNKNOWN";try{return C.matchMedia("(display-mode: standalone)").matches?"WEB_DISPLAY_MODE_STANDALONE":C.matchMedia("(display-mode: minimal-ui)").matches?"WEB_DISPLAY_MODE_MINIMAL_UI":C.matchMedia("(display-mode: fullscreen)").matches?"WEB_DISPLAY_MODE_FULLSCREEN":C.matchMedia("(display-mode: browser)").matches?"WEB_DISPLAY_MODE_BROWSER":"WEB_DISPLAY_MODE_UNKNOWN"}catch(a){return"WEB_DISPLAY_MODE_UNKNOWN"}} ;function fn(){this.cf=!0} function gn(){fn.h||(fn.h=new fn);return fn.h} function hn(a,b){a={};var c=[],d=T("enable_first_party_auth_v2")||(b==null?void 0:b.ed)&&T("enable_first_party_auth_v2_on_get_account_menu");"USER_SESSION_ID"in $l&&d&&c.push({key:"u",value:S("USER_SESSION_ID")});if(c=sg(c))a.Authorization=c,c=b=b==null?void 0:b.sessionIndex,c===void 0&&(c=Number(S("SESSION_INDEX",0)),c=isNaN(c)?0:c),T("voice_search_auth_header_removal")||(a["X-Goog-AuthUser"]=c.toString()),"INNERTUBE_HOST_OVERRIDE"in $l||(a["X-Origin"]=window.location.origin),b===void 0&&"DELEGATED_SESSION_ID"in $l&&(a["X-Goog-PageId"]=S("DELEGATED_SESSION_ID"));return a} ;var jn={identityType:"UNAUTHENTICATED_IDENTITY_TYPE_UNKNOWN"};function kn(a,b,c,d,e){og.set(""+a,b,{Mb:c,path:"/",domain:d===void 0?"youtube.com":d,secure:e===void 0?!1:e})} function ln(a){return og.get(""+a,void 0)} function mn(a,b,c){og.remove(""+a,b===void 0?"/":b,c===void 0?"youtube.com":c)} function nn(){if(T("embeds_web_enable_cookie_detection_fix")){if(!C.navigator.cookieEnabled)return!1}else if(!og.isEnabled())return!1;if(!og.fc())return!0;T("embeds_web_enable_cookie_detection_fix")?og.set("TESTCOOKIESENABLED","1",{Mb:60,Le:"none",secure:!0}):og.set("TESTCOOKIESENABLED","1",{Mb:60});if(og.get("TESTCOOKIESENABLED")!=="1")return!1;og.remove("TESTCOOKIESENABLED");return!0} ;var on=E("ytglobal.prefsUserPrefsPrefs_")||{};D("ytglobal.prefsUserPrefsPrefs_",on);function pn(){this.h=S("ALT_PREF_COOKIE_NAME","PREF");this.i=S("ALT_PREF_COOKIE_DOMAIN","youtube.com");var a=ln(this.h);a&&this.parse(a)} var qn;function rn(){qn||(qn=new pn);return qn} p=pn.prototype;p.get=function(a,b){sn(a);tn(a);a=on[a]!==void 0?on[a].toString():null;return a!=null?a:b?b:""}; p.set=function(a,b){sn(a);tn(a);if(b==null)throw Error("ExpectedNotNull");on[a]=b.toString()}; function un(a){return!!((vn("f"+(Math.floor(a/31)+1))||0)&1<=0;b--)a.i[b].length=0;a.i[8].length=0;a.j={};a.stop()} p.isHidden=function(){return!!document.hidden||!1}; function Mn(a){return!a.isHidden()&&a.ha} function Kn(a){if(a.i[8].length){if(a.T)return 4;if(Mn(a))return 3}for(var b=5;b>=a.o;b--)if(a.i[b].length>0)return b>0?Mn(a)?3:2:1;return 0} p.Fa=function(a){var b=E("yt.logging.errors.log");b&&b(a)}; function Jn(a,b){try{b()}catch(c){a.Fa(c)}} function Nn(a){for(var b=w(Hn),c=b.next();!c.done;c=b.next())if(a.i[c.value].length)return!0;return!1} p.ge=function(a){var b=void 0;a&&(b=a.timeRemaining());this.fa=!0;On(this,b);this.fa=!1}; p.ff=function(){On(this)}; p.Kd=function(){Pn(this)}; p.Ee=function(a){this.T=!0;var b=Kn(this);b===4&&b!==this.A&&(this.stop(),this.start());On(this,void 0,a);this.T=!1}; p.Ae=function(){this.isHidden()||Pn(this);this.h&&(this.stop(),this.start())}; function Pn(a){a.stop();a.u=!0;for(var b=Xa(),c=a.i[8];c.length;){var d=c.shift(),e=a.j[d];delete a.j[d];e&&Jn(a,e)}Qn(a);a.u=!1;Nn(a)&&a.start();b=Xa()-b;a.H-=b} function Qn(a){for(var b=0,c=a.I.length;bd?a.o:d;if(!(Xa()>=b)){do{a:{c=a;f=d;for(e=3;e>=f;e--)for(var g=c.i[e];g.length;){var h=g.shift(),k=c.j[h];delete c.j[h];if(k){c=k;break a}}c=null}c&&Jn(a,c)}while(c&&Xa()a&&(b.o=a,b.start())} function ho(){window.clearTimeout(Un);var a=Vn();a.o=0;a.start()} ;function io(){Dn.apply(this,arguments)} z(io,Dn);function jo(){io.h||(io.h=new io);return io.h} io.prototype.Za=function(a,b,c){c!==void 0&&Number.isNaN(Number(c))&&(c=void 0);var d=E("yt.scheduler.instance.addJob");return d?d(a,b,c):c===void 0?(a(),NaN):xm(a,c||0)}; io.prototype.qa=function(a){if(a===void 0||!Number.isNaN(Number(a))){var b=E("yt.scheduler.instance.cancelJob");b?b(a):window.clearTimeout(a)}}; io.prototype.start=function(){var a=E("yt.scheduler.instance.start");a&&a()}; io.prototype.pause=function(){var a=E("yt.scheduler.instance.pause");a&&a()}; var Lj=jo(); T("web_scheduler_auto_init")&&!E("yt.scheduler.initialized")&&(D("yt.scheduler.instance.dispose",Wn),D("yt.scheduler.instance.addJob",Yn),D("yt.scheduler.instance.addImmediateJob",Zn),D("yt.scheduler.instance.cancelJob",$n),D("yt.scheduler.instance.cancelAllJobs",Xn),D("yt.scheduler.instance.start",bo),D("yt.scheduler.instance.pause",co),D("yt.scheduler.instance.setPriorityThreshold",fo),D("yt.scheduler.instance.enablePriorityThreshold",go),D("yt.scheduler.instance.clearPriorityThreshold",ho),D("yt.scheduler.initialized", !0));function ko(a){var b=new lk;this.h=(a=b.isAvailable()?a?new mk(b,a):b:null)?new gk(a):null;this.i=document.domain||window.location.hostname} ko.prototype.set=function(a,b,c,d){c=c||31104E3;this.remove(a);if(this.h)try{this.h.set(a,b,Date.now()+c*1E3);return}catch(f){}var e="";if(d)try{e=escape((new Qi).serialize(b))}catch(f){return}else e=escape(b);kn(a,e,c,this.i)}; ko.prototype.get=function(a,b){var c=void 0,d=!this.h;if(!d)try{c=this.h.get(a)}catch(e){d=!0}if(d&&(c=ln(a))&&(c=unescape(c),b))try{c=JSON.parse(c)}catch(e){this.remove(a),c=void 0}return c}; ko.prototype.remove=function(a){this.h&&this.h.remove(a);mn(a,"/",this.i)};var lo=function(){var a;return function(){a||(a=new ko("ytidb"));return a}}(); function mo(){var a;return(a=lo())==null?void 0:a.get("LAST_RESULT_ENTRY_KEY",!0)} ;var no=[],oo,po=!1;function qo(){var a={};for(oo=new ro(a.handleError===void 0?so:a.handleError,a.logEvent===void 0?to:a.logEvent);no.length>0;)switch(a=no.shift(),a.type){case "ERROR":oo.Fa(a.payload);break;case "EVENT":oo.logEvent(a.eventType,a.payload)}} function uo(a){po||(oo?oo.Fa(a):(no.push({type:"ERROR",payload:a}),no.length>10&&no.shift()))} function vo(a,b){po||(oo?oo.logEvent(a,b):(no.push({type:"EVENT",eventType:a,payload:b}),no.length>10&&no.shift()))} ;function wo(a){if(a.indexOf(":")>=0)throw Error("Database name cannot contain ':'");} function xo(a){return a.substr(0,a.indexOf(":"))||a} ;var yo=Xc||Yc;function zo(a){var b=Hc();return b?b.toLowerCase().indexOf(a)>=0:!1} ;var Ao={},Bo=(Ao.AUTH_INVALID="No user identifier specified.",Ao.EXPLICIT_ABORT="Transaction was explicitly aborted.",Ao.IDB_NOT_SUPPORTED="IndexedDB is not supported.",Ao.MISSING_INDEX="Index not created.",Ao.MISSING_OBJECT_STORES="Object stores not created.",Ao.DB_DELETED_BY_MISSING_OBJECT_STORES="Database is deleted because expected object stores were not created.",Ao.DB_REOPENED_BY_MISSING_OBJECT_STORES="Database is reopened because expected object stores were not created.",Ao.UNKNOWN_ABORT="Transaction was aborted for unknown reasons.", Ao.QUOTA_EXCEEDED="The current transaction exceeded its quota limitations.",Ao.QUOTA_MAYBE_EXCEEDED="The current transaction may have failed because of exceeding quota limitations.",Ao.EXECUTE_TRANSACTION_ON_CLOSED_DB="Can't start a transaction on a closed database",Ao.INCOMPATIBLE_DB_VERSION="The binary is incompatible with the database version",Ao),Co={},Do=(Co.AUTH_INVALID="ERROR",Co.EXECUTE_TRANSACTION_ON_CLOSED_DB="WARNING",Co.EXPLICIT_ABORT="IGNORED",Co.IDB_NOT_SUPPORTED="ERROR",Co.MISSING_INDEX= "WARNING",Co.MISSING_OBJECT_STORES="ERROR",Co.DB_DELETED_BY_MISSING_OBJECT_STORES="WARNING",Co.DB_REOPENED_BY_MISSING_OBJECT_STORES="WARNING",Co.QUOTA_EXCEEDED="WARNING",Co.QUOTA_MAYBE_EXCEEDED="WARNING",Co.UNKNOWN_ABORT="WARNING",Co.INCOMPATIBLE_DB_VERSION="WARNING",Co),Eo={},Fo=(Eo.AUTH_INVALID=!1,Eo.EXECUTE_TRANSACTION_ON_CLOSED_DB=!1,Eo.EXPLICIT_ABORT=!1,Eo.IDB_NOT_SUPPORTED=!1,Eo.MISSING_INDEX=!1,Eo.MISSING_OBJECT_STORES=!1,Eo.DB_DELETED_BY_MISSING_OBJECT_STORES=!1,Eo.DB_REOPENED_BY_MISSING_OBJECT_STORES= !1,Eo.QUOTA_EXCEEDED=!1,Eo.QUOTA_MAYBE_EXCEEDED=!0,Eo.UNKNOWN_ABORT=!0,Eo.INCOMPATIBLE_DB_VERSION=!1,Eo);function Go(a,b,c,d,e){b=b===void 0?{}:b;c=c===void 0?Bo[a]:c;d=d===void 0?Do[a]:d;e=e===void 0?Fo[a]:e;U.call(this,c,Object.assign({},{name:"YtIdbKnownError",isSw:self.document===void 0,isIframe:self!==self.top,type:a},b));this.type=a;this.message=c;this.level=d;this.h=e;Object.setPrototypeOf(this,Go.prototype)} z(Go,U);function Ho(a,b){Go.call(this,"MISSING_OBJECT_STORES",{expectedObjectStores:b,foundObjectStores:a},Bo.MISSING_OBJECT_STORES);Object.setPrototypeOf(this,Ho.prototype)} z(Ho,Go);function Io(a,b){var c=Error.call(this);this.message=c.message;"stack"in c&&(this.stack=c.stack);this.index=a;this.objectStore=b;Object.setPrototypeOf(this,Io.prototype)} z(Io,Error);var Jo=["The database connection is closing","Can't start a transaction on a closed database","A mutation operation was attempted on a database that did not allow mutations"]; function Ko(a,b,c,d){b=xo(b);var e=a instanceof Error?a:Error("Unexpected error: "+a);if(e instanceof Go)return e;a={objectStoreNames:c,dbName:b,dbVersion:d};if(e.name==="QuotaExceededError")return new Go("QUOTA_EXCEEDED",a);if(Zc&&e.name==="UnknownError")return new Go("QUOTA_MAYBE_EXCEEDED",a);if(e instanceof Io)return new Go("MISSING_INDEX",Object.assign({},a,{objectStore:e.objectStore,index:e.index}));if(e.name==="InvalidStateError"&&Jo.some(function(f){return e.message.includes(f)}))return new Go("EXECUTE_TRANSACTION_ON_CLOSED_DB", a); if(e.name==="AbortError")return new Go("UNKNOWN_ABORT",a,e.message);e.args=[Object.assign({},a,{name:"IdbError",nd:e.name})];e.level="WARNING";return e} function Lo(a,b,c){var d=mo();return new Go("IDB_NOT_SUPPORTED",{context:{caller:a,publicName:b,version:c,hasSucceededOnce:d==null?void 0:d.hasSucceededOnce}})} ;function Mo(a){if(!a)throw Error();throw a;} function No(a){return a} function Oo(a){this.h=a} function Po(a){function b(e){if(d.state.status==="PENDING"){d.state={status:"REJECTED",reason:e};e=w(d.i);for(var f=e.next();!f.done;f=e.next())f=f.value,f()}} function c(e){if(d.state.status==="PENDING"){d.state={status:"FULFILLED",value:e};e=w(d.h);for(var f=e.next();!f.done;f=e.next())f=f.value,f()}} var d=this;this.state={status:"PENDING"};this.h=[];this.i=[];a=a.h;try{a(c,b)}catch(e){b(e)}} Po.all=function(a){return new Po(new Oo(function(b,c){var d=[],e=a.length;e===0&&b(d);for(var f={sb:0};f.sb=f)ep(a,k,t,g,v,b.join(),e),h=v;y.F(2);break;case 4:return y.return(Promise.reject(h))}})} function ep(a,b,c,d,e,f,g){b=c-b;e?(e instanceof Go&&(e.type==="QUOTA_EXCEEDED"||e.type==="QUOTA_MAYBE_EXCEEDED")&&vo("QUOTA_EXCEEDED",{dbName:xo(a.h.name),objectStoreNames:f,transactionCount:a.transactionCount,transactionMode:g.mode}),e instanceof Go&&e.type==="UNKNOWN_ABORT"&&(c-=a.j,c<0&&c>=2147483648&&(c=0),vo("TRANSACTION_UNEXPECTEDLY_ABORTED",{objectStoreNames:f,transactionDuration:b,transactionCount:a.transactionCount,dbDuration:c}),a.i=!0),fp(a,!1,d,f,b,g.tag),uo(e)):fp(a,!0,d,f,b,g.tag)} function fp(a,b,c,d,e,f){vo("TRANSACTION_ENDED",{objectStoreNames:d,connectionHasUnknownAbortedTransaction:a.i,duration:e,isSuccessful:b,tryCount:c,tag:f===void 0?"IDB_TRANSACTION_TAG_UNKNOWN":f})} p.getName=function(){return this.h.name}; function ap(a){this.h=a} p=ap.prototype;p.add=function(a,b){return Vo(this.h.add(a,b))}; p.autoIncrement=function(){return this.h.autoIncrement}; p.clear=function(){return Vo(this.h.clear()).then(function(){})}; function gp(a,b,c){a.h.createIndex(b,c,{unique:!1})} p.count=function(a){return Vo(this.h.count(a))}; function hp(a,b){return ip(a,{query:b},function(c){return c.delete().then(function(){return jp(c)})}).then(function(){})} p.delete=function(a){return a instanceof IDBKeyRange?hp(this,a):Vo(this.h.delete(a))}; p.get=function(a){return Vo(this.h.get(a))}; p.index=function(a){try{return new kp(this.h.index(a))}catch(b){if(b instanceof Error&&b.name==="NotFoundError")throw new Io(a,this.h.name);throw b;}}; p.getName=function(){return this.h.name}; p.keyPath=function(){return this.h.keyPath}; function ip(a,b,c){a=a.h.openCursor(b.query,b.direction);return lp(a).then(function(d){return Wo(d,c)})} function cp(a){var b=this;this.h=a;this.i=new Map;this.aborted=!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.aborted){e=Go;for(var f=b.h.objectStoreNames,g=[],h=0;h=y},x); x.done.catch(function(y){e(y)})}catch(y){e(y)}}); g.addEventListener("success",function(){var t=g.result;k&&t.addEventListener("versionchange",function(){k(f())}); t.addEventListener("close",function(){vo("IDB_UNEXPECTEDLY_CLOSED",{dbName:xo(a),dbVersion:t.version});l&&l()}); d(f())}); g.addEventListener("error",function(){e(g.error)}); h&&g.addEventListener("blocked",function(){h()})})} function pp(a,b,c){c=c===void 0?{}:c;return op(a,b,c)} function qp(a,b){b=b===void 0?{}:b;var c,d,e,f;return A(function(g){if(g.h==1)return za(g,2),c=self.indexedDB.deleteDatabase(a),d=b,(e=d.Md)&&c.addEventListener("blocked",function(){e()}),g.yield(Uo(c),4); if(g.h!=2)g.h=0,g.o=0;else throw f=Aa(g),Ko(f,a,"",-1);})} ;function rp(a,b){this.name=a;this.options=b;this.j=!0;this.D=this.o=0} rp.prototype.i=function(a,b,c){c=c===void 0?{}:c;return pp(a,b,c)}; rp.prototype.delete=function(a){a=a===void 0?{}:a;return qp(this.name,a)}; function sp(a,b){return new Go("INCOMPATIBLE_DB_VERSION",{dbName:a.name,oldVersion:a.options.version,newVersion:b})} function tp(a,b){if(!b)throw Lo("openWithToken",xo(a.name));return a.open()} rp.prototype.open=function(){function a(){var f,g,h,k,l,m,n,r,t,v;return A(function(x){switch(x.h){case 1:return g=(f=Error().stack)!=null?f:"",za(x,2),x.yield(c.i(c.name,c.options.version,e),4);case 4:for(var y=h=x.i,H=c.options,J=[],N=w(Object.keys(H.yb)),P=N.next();!P.done;P=N.next()){P=P.value;var wa=H.yb[P],wb=wa.Ge===void 0?Number.MAX_VALUE:wa.Ge;!(y.h.version>=wa.Eb)||y.h.version>=wb||y.h.objectStoreNames.contains(P)||J.push(P)}k=J;if(k.length===0){x.F(5);break}l=Object.keys(c.options.yb); m=h.objectStoreNames();if(c.Dc.options.version+1)throw r.close(),c.j=!1,sp(c,t);return x.return(r);case 8:throw b(),n instanceof Error&&!T("ytidb_async_stack_killswitch")&&(n.stack=n.stack+"\n"+g.substring(g.indexOf("\n")+1)),Ko(n,c.name,"",(v=c.options.version)!=null?v:-1);}})} function b(){c.h===d&&(c.h=void 0)} var c=this;if(!this.j)throw sp(this);if(this.h)return this.h;var d,e={blocking:function(f){f.close()}, closed:b,df:b,upgrade:this.options.upgrade};return this.h=d=a()};var up=new rp("YtIdbMeta",{yb:{databases:{Eb:1}},upgrade:function(a,b){b(1)&&$o(a,"databases",{keyPath:"actualName"})}}); function vp(a,b){var c;return A(function(d){if(d.h==1)return d.yield(tp(up,b),2);c=d.i;return d.return(Zo(c,["databases"],{ka:!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 Vo(f.h.put(a,void 0)).then(function(){})})}))})} function wp(a,b){var c;return A(function(d){if(d.h==1)return a?d.yield(tp(up,b),2):d.return();c=d.i;return d.return(c.delete("databases",a))})} function xp(a,b){var c,d;return A(function(e){return e.h==1?(c=[],e.yield(tp(up,b),2)):e.h!=3?(d=e.i,e.yield(Zo(d,["databases"],{ka:!0,mode:"readonly"},function(f){c.length=0;return ip(f.objectStore("databases"),{},function(g){a(g.getValue())&&c.push(g.getValue());return jp(g)})}),3)):e.return(c)})} function yp(a){return xp(function(b){return b.publicName==="LogsDatabaseV2"&&b.userIdentifier!==void 0},a)} function zp(a,b,c){return xp(function(d){return c?d.userIdentifier!==void 0&&!a.includes(d.userIdentifier)&&c.includes(d.publicName):d.userIdentifier!==void 0&&!a.includes(d.userIdentifier)},b)} function Ap(a){var b,c;return A(function(d){if(d.h==1)return b=Cn("YtIdbMeta hasAnyMeta other"),d.yield(xp(function(e){return e.userIdentifier!==void 0&&e.userIdentifier!==b},a),2); c=d.i;return d.return(c.length>0)})} ;var Bp,Cp=new function(){}(new function(){}); function Dp(){var a,b,c,d;return A(function(e){switch(e.h){case 1:a=mo();if((b=a)==null?0:b.hasSucceededOnce)return e.return(!0);var f;if(f=yo)f=/WebKit\/([0-9]+)/.exec(Hc()),f=!!(f&&parseInt(f[1],10)>=600);f&&(f=/WebKit\/([0-9]+)/.exec(Hc()),f=!(f&&parseInt(f[1],10)>=602));if(f||Tc)return e.return(!1);try{if(c=self,!(c.indexedDB&&c.IDBIndex&&c.IDBKeyRange&&c.IDBObjectStore))return e.return(!1)}catch(g){return e.return(!1)}if(!("IDBTransaction"in self&&"objectStoreNames"in IDBTransaction.prototype))return e.return(!1); za(e,2);d={actualName:"yt-idb-test-do-not-use",publicName:"yt-idb-test-do-not-use",userIdentifier:void 0};return e.yield(vp(d,Cp),4);case 4:return e.yield(wp("yt-idb-test-do-not-use",Cp),5);case 5:return e.return(!0);case 2:return Aa(e),e.return(!1)}})} function Ep(){if(Bp!==void 0)return Bp;po=!0;return Bp=Dp().then(function(a){po=!1;var b;if((b=lo())!=null&&b.h){var c;b={hasSucceededOnce:((c=mo())==null?void 0:c.hasSucceededOnce)||a};var d;(d=lo())==null||d.set("LAST_RESULT_ENTRY_KEY",b,2592E3,!0)}return a})} function Fp(){return E("ytglobal.idbToken_")||void 0} function Gp(){var a=Fp();return a?Promise.resolve(a):Ep().then(function(b){(b=b?Cp:void 0)&&D("ytglobal.idbToken_",b);return b})} ;var Hp=0;function Ip(a,b){Hp||(Hp=Lj.pa(function(){var c,d,e,f,g;return A(function(h){switch(h.h){case 1:return h.yield(Gp(),2);case 2:c=h.i;if(!c)return h.return();d=!0;za(h,3);return h.yield(zp(a,c,b),5);case 5:e=h.i;if(!e.length){d=!1;h.F(6);break}f=e[0];return h.yield(qp(f.actualName),7);case 7:return h.yield(wp(f.actualName,c),6);case 6:h.h=4;h.o=0;break;case 3:g=Aa(h),uo(g),d=!1;case 4:Lj.qa(Hp),Hp=0,d&&Ip(a,b),h.h=0}})}))} function Jp(){var a;return A(function(b){return b.h==1?b.yield(Gp(),2):(a=b.i)?b.return(Ap(a)):b.return(!1)})} new wj;function Kp(a){if(!Bn())throw a=new Go("AUTH_INVALID",{dbName:a}),uo(a),a;var b=Cn();return{actualName:a+":"+b,publicName:a,userIdentifier:b}} function Lp(a,b,c,d){var e,f,g,h,k,l;return A(function(m){switch(m.h){case 1:return f=(e=Error().stack)!=null?e:"",m.yield(Gp(),2);case 2:g=m.i;if(!g)throw h=Lo("openDbImpl",a,b),T("ytidb_async_stack_killswitch")||(h.stack=h.stack+"\n"+f.substring(f.indexOf("\n")+1)),uo(h),h;wo(a);k=c?{actualName:a,publicName:a,userIdentifier:void 0}:Kp(a);za(m,3);return m.yield(vp(k,g),5);case 5:return m.yield(pp(k.actualName,b,d),6);case 6:return m.return(m.i);case 3:return l=Aa(m),za(m,7),m.yield(wp(k.actualName, g),9);case 9:m.h=8;m.o=0;break;case 7:Aa(m);case 8:throw l;}})} function Mp(a,b,c){c=c===void 0?{}:c;return Lp(a,b,!1,c)} function Np(a,b,c){c=c===void 0?{}:c;return Lp(a,b,!0,c)} function Op(a,b){b=b===void 0?{}:b;var c,d;return A(function(e){if(e.h==1)return e.yield(Gp(),2);if(e.h!=3){c=e.i;if(!c)return e.return();wo(a);d=Kp(a);return e.yield(qp(d.actualName,b),3)}return e.yield(wp(d.actualName,c),0)})} function Pp(a,b,c){a=a.map(function(d){return A(function(e){return e.h==1?e.yield(qp(d.actualName,b),2):e.yield(wp(d.actualName,c),0)})}); return Promise.all(a).then(function(){})} function Qp(){var a=a===void 0?{}:a;var b,c;return A(function(d){if(d.h==1)return d.yield(Gp(),2);if(d.h!=3){b=d.i;if(!b)return d.return();wo("LogsDatabaseV2");return d.yield(yp(b),3)}c=d.i;return d.yield(Pp(c,a,b),0)})} function Rp(a,b){b=b===void 0?{}:b;var c;return A(function(d){if(d.h==1)return d.yield(Gp(),2);if(d.h!=3){c=d.i;if(!c)return d.return();wo(a);return d.yield(qp(a,b),3)}return d.yield(wp(a,c),0)})} ;function Sp(a,b){rp.call(this,a,b);this.options=b;wo(a)} z(Sp,rp);function Tp(a,b){var c;return function(){c||(c=new Sp(a,b));return c}} Sp.prototype.i=function(a,b,c){c=c===void 0?{}:c;return(this.options.shared?Np:Mp)(a,b,Object.assign({},c))}; Sp.prototype.delete=function(a){a=a===void 0?{}:a;return(this.options.shared?Rp:Op)(this.name,a)}; function Up(a,b){return Tp(a,b)} ;var Vp={},Wp=Up("ytGcfConfig",{yb:(Vp.coldConfigStore={Eb:1},Vp.hotConfigStore={Eb:1},Vp),shared:!1,upgrade:function(a,b){b(1)&&(gp($o(a,"hotConfigStore",{keyPath:"key",autoIncrement:!0}),"hotTimestampIndex","timestamp"),gp($o(a,"coldConfigStore",{keyPath:"key",autoIncrement:!0}),"coldTimestampIndex","timestamp"))}, version:1});function Xp(a){return tp(Wp(),a)} function Yp(a,b,c){var d,e,f;return A(function(g){switch(g.h){case 1:return d={config:a,hashData:b,timestamp:V()},g.yield(Xp(c),2);case 2:return e=g.i,g.yield(e.clear("hotConfigStore"),3);case 3:return g.yield(bp(e,"hotConfigStore",d),4);case 4:return f=g.i,g.return(f)}})} function Zp(a,b,c,d){var e,f,g;return A(function(h){switch(h.h){case 1:return e={config:a,hashData:b,configData:c,timestamp:V()},h.yield(Xp(d),2);case 2:return f=h.i,h.yield(f.clear("coldConfigStore"),3);case 3:return h.yield(bp(f,"coldConfigStore",e),4);case 4:return g=h.i,h.return(g)}})} function $p(a){var b,c;return A(function(d){return d.h==1?d.yield(Xp(a),2):d.h!=3?(b=d.i,c=void 0,d.yield(Zo(b,["coldConfigStore"],{mode:"readwrite",ka:!0},function(e){return mp(e.objectStore("coldConfigStore").index("coldTimestampIndex"),{direction:"prev"},function(f){c=f.getValue()})}),3)):d.return(c)})} function aq(a){var b,c;return A(function(d){return d.h==1?d.yield(Xp(a),2):d.h!=3?(b=d.i,c=void 0,d.yield(Zo(b,["hotConfigStore"],{mode:"readwrite",ka:!0},function(e){return mp(e.objectStore("hotConfigStore").index("hotTimestampIndex"),{direction:"prev"},function(f){c=f.getValue()})}),3)):d.return(c)})} ;function bq(){L.call(this);this.i=[];this.h=[];var a=E("yt.gcf.config.hotUpdateCallbacks");a?(this.i=[].concat(ka(a)),this.h=a):(this.h=[],D("yt.gcf.config.hotUpdateCallbacks",this.h))} z(bq,L);bq.prototype.aa=function(){for(var a=w(this.i),b=a.next();!b.done;b=a.next()){var c=this.h;b=c.indexOf(b.value);b>=0&&c.splice(b,1)}this.i.length=0;L.prototype.aa.call(this)};function cq(){this.h=0;this.i=new bq} function dq(){var a;return(a=E("yt.gcf.config.hotConfigGroup"))!=null?a:S("RAW_HOT_CONFIG_GROUP")} function eq(a,b,c){var d,e,f;return A(function(g){switch(g.h){case 1:if(!T("start_client_gcf")){g.F(0);break}c&&(a.j=c,D("yt.gcf.config.hotConfigGroup",a.j||null));a.o(b);d=Fp();if(!d){g.F(3);break}if(c){g.F(4);break}return g.yield(aq(d),5);case 5:e=g.i,c=(f=e)==null?void 0:f.config;case 4:return g.yield(Yp(c,b,d),3);case 3:if(c)for(var h=c,k=w(a.i.h),l=k.next();!l.done;l=k.next())l=l.value,l(h);g.h=0}})} function fq(a,b,c){var d,e,f,g;return A(function(h){if(h.h==1){if(!T("start_client_gcf"))return h.F(0);a.coldHashData=b;D("yt.gcf.config.coldHashData",a.coldHashData||null);return(d=Fp())?c?h.F(4):h.yield($p(d),5):h.F(0)}h.h!=4&&(e=h.i,c=(f=e)==null?void 0:f.config);if(!c)return h.F(0);g=c.configData;return h.yield(Zp(c,b,g,d),0)})} function gq(){if(!cq.h){var a=new cq;cq.h=a}a=cq.h;var b=V()-a.h;if(!(a.h!==0&&b0&&(b.request={internalExperimentFlags:c});c=a.gd;if((c==="WEB"||c==="MWEB"||c===1||c===2)&&b){var d;b.client.mainAppWebInfo=(d=b.client.mainAppWebInfo)!= null?d:{};b.client.mainAppWebInfo.webDisplayMode=en()}(d=E("yt.embedded_player.embed_url"))&&b&&(b.thirdParty={embedUrl:d});var e;if(T("web_log_memory_total_kbytes")&&((e=C.navigator)==null?0:e.deviceMemory)){var f;e=(f=C.navigator)==null?void 0:f.deviceMemory;b&&(b.client.memoryTotalKbytes=""+e*1E6)}a.appInstallData&&b&&(b.client.configInfo=b.client.configInfo||{},b.client.configInfo.appInstallData=a.appInstallData);(a=zn())&&b&&(b.client.connectionType=a);T("web_log_effective_connection_type")&& (a=An())&&b&&(b.client.effectiveConnectionType=a);T("start_client_gcf")&&(e=gq())&&(a=e.coldConfigData,f=e.coldHashData,e=e.hotHashData,b&&(b.client.configInfo=b.client.configInfo||{},a&&(b.client.configInfo.coldConfigData=a),f&&(b.client.configInfo.coldHashData=f),e&&(b.client.configInfo.hotHashData=e)));S("DELEGATED_SESSION_ID")&&!T("pageid_as_header_web")&&(b.user={onBehalfOfUser:S("DELEGATED_SESSION_ID")});!T("fill_delegate_context_in_gel_killswitch")&&(a=S("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"))&& (b.user=Object.assign({},b.user,{serializedDelegationContext:a}));a=Object;f=a.assign;e=b.client;d={};c=w(Object.entries(nm(S("DEVICE",""))));for(var g=c.next();!g.done;g=c.next()){var h=w(g.value);g=h.next().value;h=h.next().value;g==="cbrand"?d.deviceMake=h:g==="cmodel"?d.deviceModel=h:g==="cbr"?d.browserName=h:g==="cbrver"?d.browserVersion=h:g==="cos"?d.osName=h:g==="cosver"?d.osVersion=h:g==="cplatform"&&(d.platform=h)}b.client=f.call(a,e,d);return b} function kq(a,b,c){c=c===void 0?{}:c;var d={};S("EOM_VISITOR_DATA")?d={"X-Goog-EOM-Visitor-Id":S("EOM_VISITOR_DATA")}:d={"X-Goog-Visitor-Id":c.visitorData||S("VISITOR_DATA","")};if(b&&b.includes("www.youtube-nocookie.com"))return d;b=c.authorization||S("AUTHORIZATION");b||(a?b="Bearer "+E("gapi.auth.getToken")().Wg:(a=hn(gn()),T("pageid_as_header_web")||delete a["X-Goog-PageId"],d=Object.assign({},d,a)));b&&(d.Authorization=b);return d} ;var lq=typeof TextEncoder!=="undefined"?new TextEncoder:null,mq=lq?function(a){return lq.encode(a)}:function(a){for(var b=[],c=0,d=0;d>6|192:((e&64512)==55296&&d+1>18|240,b[c++]=e>>12&63|128):b[c++]=e>>12|224,b[c++]=e>>6&63|128),b[c++]=e&63|128)}a=new Uint8Array(b.length);for(c=0;c0){var v=Array(t);for(k=0;kFq||g=Kq&&(Iq++,T("abandon_compression_after_N_slow_zips")?Jq===Am("compression_disable_point")&&Iq>Lq&&(Hq=!1):Hq=!1);Uq(b);d.headers||(d.headers={});d.headers["Content-Encoding"]="gzip";d.postBody=a;d.postParams=void 0;e(c,d)} function Vq(a){var b=b===void 0?!1:b;var c=c===void 0?!1:c;var d=V(),e={startTime:d,ticks:{},infos:{}},f=b?E("yt.logging.gzipForFetch",!1):!0;if(Hq&&f){if(!a.body)return a;try{var g=c?a.body:typeof a.body==="string"?a.body:JSON.stringify(a.body);f=g;if(!c&&typeof g==="string"){var h=Tq(g);if(h!=null&&(h>Fq||h=Kq)if(Iq++,T("abandon_compression_after_N_slow_zips")||T("abandon_compression_after_N_slow_zips_lr")){b=Iq/Jq;var l=Lq/Am("compression_disable_point");Jq>0&&Jq%Am("compression_disable_point")===0&&b>=l&&(Hq=!1)}else Hq=!1;Uq(e)}}a.headers=Object.assign({},{"Content-Encoding":"gzip"},a.headers||{});a.body=f;return a}catch(m){return gm(m),a}}else return a} function Tq(a){try{return(new Blob(a.split(""))).size}catch(b){return gm(b),null}} function Uq(a){T("gel_compression_csi_killswitch")||!T("log_gel_compression_latency")&&!T("log_gel_compression_latency_lr")||Aq("gel_compression",a,{sampleRate:.1})} ;function Wq(a){a=Object.assign({},a);delete a.Authorization;var b=sg();if(b){var c=new Pj;c.update(S("INNERTUBE_API_KEY"));c.update(b);a.hash=bd(c.digest(),3)}return a} ;var Xq;function Yq(){Xq||(Xq=new ko("yt.innertube"));return Xq} function Zq(a,b,c,d){if(d)return null;d=Yq().get("nextId",!0)||1;var e=Yq().get("requests",!0)||{};e[d]={method:a,request:b,authState:Wq(c),requestTime:Math.round(V())};Yq().set("nextId",d+1,86400,!0);Yq().set("requests",e,86400,!0);return d} function $q(a){var b=Yq().get("requests",!0)||{};delete b[a];Yq().set("requests",b,86400,!0)} function ar(a){var b=Yq().get("requests",!0);if(b){for(var c in b){var d=b[c];if(!(Math.round(V())-d.requestTime<6E4)){var e=d.authState,f=Wq(kq(!1));Ig(e,f)&&(e=d.request,"requestTimeMs"in e&&(e.requestTimeMs=Math.round(V())),br(a,d.method,e,{}));delete b[c]}}Yq().set("requests",b,86400,!0)}} ;function cr(a){this.Vb=this.h=!1;this.potentialEsfErrorCounter=this.i=0;this.handleError=function(){}; this.qb=function(){}; this.now=Date.now;this.Hb=!1;var b;this.yd=(b=a.yd)!=null?b:100;var c;this.td=(c=a.td)!=null?c:1;var d;this.qd=(d=a.qd)!=null?d:2592E6;var e;this.pd=(e=a.pd)!=null?e:12E4;var f;this.sd=(f=a.sd)!=null?f:5E3;var g;this.X=(g=a.X)!=null?g:void 0;this.ac=!!a.ac;var h;this.Yb=(h=a.Yb)!=null?h:.1;var k;this.kc=(k=a.kc)!=null?k:10;a.handleError&&(this.handleError=a.handleError);a.qb&&(this.qb=a.qb);a.Hb&&(this.Hb=a.Hb);a.Vb&&(this.Vb=a.Vb);this.Y=a.Y;this.Da=a.Da;this.ga=a.ga;this.ea=a.ea;this.sendFn=a.sendFn; this.Kc=a.Kc;this.Hc=a.Hc;dr(this)&&(!this.Y||this.Y("networkless_logging"))&&er(this)} function er(a){dr(a)&&!a.Hb&&(a.h=!0,a.ac&&Math.random()<=a.Yb&&a.ga.Nd(a.X),fr(a),a.ea.va()&&a.Rb(),a.ea.listen(a.Kc,a.Rb.bind(a)),a.ea.listen(a.Hc,a.Uc.bind(a)))} p=cr.prototype;p.writeThenSend=function(a,b){var c=this;b=b===void 0?{}:b;if(dr(this)&&this.h){var d={url:a,options:b,timestamp:this.now(),status:"NEW",sendCount:0};this.ga.set(d,this.X).then(function(e){d.id=e;c.ea.va()&&gr(c,d)}).catch(function(e){gr(c,d); hr(c,e)})}else this.sendFn(a,b)}; p.sendThenWrite=function(a,b,c){var d=this;b=b===void 0?{}:b;if(dr(this)&&this.h){var e={url:a,options:b,timestamp:this.now(),status:"NEW",sendCount:0};this.Y&&this.Y("nwl_skip_retry")&&(e.skipRetry=c);if(this.ea.va()||this.Y&&this.Y("nwl_aggressive_send_then_write")&&!e.skipRetry){if(!e.skipRetry){var f=b.onError?b.onError:function(){}; b.onError=function(g,h){return A(function(k){if(k.h==1)return k.yield(d.ga.set(e,d.X).catch(function(l){hr(d,l)}),2); f(g,h);k.h=0})}}this.sendFn(a,b,e.skipRetry)}else this.ga.set(e,this.X).catch(function(g){d.sendFn(a,b,e.skipRetry); hr(d,g)})}else this.sendFn(a,b,this.Y&&this.Y("nwl_skip_retry")&&c)}; p.sendAndWrite=function(a,b){var c=this;b=b===void 0?{}:b;if(dr(this)&&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){d.id!==void 0?c.ga.pb(d.id,c.X):e=!0;c.ea.fb&&c.Y&&c.Y("vss_network_hint")&&c.ea.fb(!0);f(g,h)}; this.sendFn(d.url,d.options,void 0,!0);this.ga.set(d,this.X).then(function(g){d.id=g;e&&c.ga.pb(d.id,c.X)}).catch(function(g){hr(c,g)})}else this.sendFn(a,b,void 0,!0)}; p.Rb=function(){var a=this;if(!dr(this))throw Error("IndexedDB is not supported: throttleSend");this.i||(this.i=this.Da.pa(function(){var b;return A(function(c){if(c.h==1)return c.yield(a.ga.bd("NEW",a.X),2);if(c.h!=3)return b=c.i,b?c.yield(gr(a,b),3):(a.Uc(),c.return());a.i&&(a.i=0,a.Rb());c.h=0})},this.yd))}; p.Uc=function(){this.Da.qa(this.i);this.i=0}; function gr(a,b){var c;return A(function(d){switch(d.h){case 1:if(!dr(a))throw Error("IndexedDB is not supported: immediateSend");if(b.id===void 0){d.F(2);break}return d.yield(a.ga.se(b.id,a.X),3);case 3:(c=d.i)||a.qb(Error("The request cannot be found in the database."));case 2:if(ir(a,b,a.qd)){d.F(4);break}a.qb(Error("Networkless Logging: Stored logs request expired age limit"));if(b.id===void 0){d.F(5);break}return d.yield(a.ga.pb(b.id,a.X),5);case 5:return d.return();case 4:b.skipRetry||(b=jr(a, b));if(!b){d.F(0);break}if(!b.skipRetry||b.id===void 0){d.F(8);break}return d.yield(a.ga.pb(b.id,a.X),8);case 8:a.sendFn(b.url,b.options,!!b.skipRetry),d.h=0}})} function jr(a,b){if(!dr(a))throw Error("IndexedDB is not supported: updateRequestHandlers");var c=b.options.onError?b.options.onError:function(){}; b.options.onError=function(e,f){var g,h,k,l;return A(function(m){switch(m.h){case 1:g=kr(f);(h=lr(f))&&a.Y&&a.Y("web_enable_error_204")&&a.handleError(Error("Request failed due to compression"),b.url,f);if(!(a.Y&&a.Y("nwl_consider_error_code")&&g||a.Y&&!a.Y("nwl_consider_error_code")&&a.potentialEsfErrorCounter<=a.kc)){m.F(2);break}if(!a.ea.oc){m.F(3);break}return m.yield(a.ea.oc(),3);case 3:if(a.ea.va()){m.F(2);break}c(e,f);if(!a.Y||!a.Y("nwl_consider_error_code")||((k=b)==null?void 0:k.id)===void 0){m.F(6); break}return m.yield(a.ga.Lc(b.id,a.X,!1),6);case 6:return m.return();case 2:if(a.Y&&a.Y("nwl_consider_error_code")&&!g&&a.potentialEsfErrorCounter>a.kc)return m.return();a.potentialEsfErrorCounter++;if(((l=b)==null?void 0:l.id)===void 0){m.F(8);break}return b.sendCount=c?!1:!0} function fr(a){if(!dr(a))throw Error("IndexedDB is not supported: retryQueuedRequests");a.ga.bd("QUEUED",a.X).then(function(b){b&&!ir(a,b,a.pd)?a.Da.pa(function(){return A(function(c){if(c.h==1)return b.id===void 0?c.F(2):c.yield(a.ga.Lc(b.id,a.X),2);fr(a);c.h=0})}):a.ea.va()&&a.Rb()})} function hr(a,b){a.Fd&&!a.ea.va()?a.Fd(b):a.handleError(b)} function dr(a){return!!a.X||a.Vb} function kr(a){var b;return(a=a==null?void 0:(b=a.error)==null?void 0:b.code)&&a>=400&&a<=599?!1:!0} function lr(a){var b;a=a==null?void 0:(b=a.error)==null?void 0:b.code;return!(a!==400&&a!==415)} ;var mr; function nr(){if(mr)return mr();var a={};mr=Up("LogsDatabaseV2",{yb:(a.LogsRequestsStore={Eb:2},a),shared:!1,upgrade:function(b,c,d){c(2)&&$o(b,"LogsRequestsStore",{keyPath:"id",autoIncrement:!0});c(3);c(5)&&(d=d.objectStore("LogsRequestsStore"),d.h.indexNames.contains("newRequest")&&d.h.deleteIndex("newRequest"),gp(d,"newRequestV2",["status","interface","timestamp"]));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 mr()} ;function or(a){return tp(nr(),a)} function pr(a,b){var c,d,e,f;return A(function(g){if(g.h==1)return c={startTime:V(),infos:{transactionType:"YT_IDB_TRANSACTION_TYPE_WRITE"},ticks:{}},g.yield(or(b),2);if(g.h!=3)return d=g.i,e=Object.assign({},a,{options:JSON.parse(JSON.stringify(a.options)),interface:S("INNERTUBE_CONTEXT_CLIENT_NAME",0)}),g.yield(bp(d,"LogsRequestsStore",e),3);f=g.i;c.ticks.tc=V();qr(c);return g.return(f)})} function rr(a,b){var c,d,e,f,g,h,k,l;return A(function(m){if(m.h==1)return c={startTime:V(),infos:{transactionType:"YT_IDB_TRANSACTION_TYPE_READ"},ticks:{}},m.yield(or(b),2);if(m.h!=3)return d=m.i,e=S("INNERTUBE_CONTEXT_CLIENT_NAME",0),f=[a,e,0],g=[a,e,V()],h=IDBKeyRange.bound(f,g),k="prev",T("use_fifo_for_networkless")&&(k="next"),l=void 0,m.yield(Zo(d,["LogsRequestsStore"],{mode:"readwrite",ka:!0},function(n){return mp(n.objectStore("LogsRequestsStore").index("newRequestV2"),{query:h,direction:k}, function(r){r.getValue()&&(l=r.getValue(),a==="NEW"&&(l.status="QUEUED",r.update(l)))})}),3); c.ticks.tc=V();qr(c);return m.return(l)})} function sr(a,b){var c;return A(function(d){if(d.h==1)return d.yield(or(b),2);c=d.i;return d.return(Zo(c,["LogsRequestsStore"],{mode:"readwrite",ka:!0},function(e){var f=e.objectStore("LogsRequestsStore");return f.get(a).then(function(g){if(g)return g.status="QUEUED",Vo(f.h.put(g,void 0)).then(function(){return g})})}))})} function tr(a,b,c,d){c=c===void 0?!0:c;var e;return A(function(f){if(f.h==1)return f.yield(or(b),2);e=f.i;return f.return(Zo(e,["LogsRequestsStore"],{mode:"readwrite",ka:!0},function(g){var h=g.objectStore("LogsRequestsStore");return h.get(a).then(function(k){return k?(k.status="NEW",c&&(k.sendCount+=1),d!==void 0&&(k.options.compress=d),Vo(h.h.put(k,void 0)).then(function(){return k})):Po.resolve(void 0)})}))})} function ur(a,b){var c;return A(function(d){if(d.h==1)return d.yield(or(b),2);c=d.i;return d.return(c.delete("LogsRequestsStore",a))})} function vr(a){var b,c;return A(function(d){if(d.h==1)return d.yield(or(a),2);b=d.i;c=V()-2592E6;return d.yield(Zo(b,["LogsRequestsStore"],{mode:"readwrite",ka:!0},function(e){return ip(e.objectStore("LogsRequestsStore"),{},function(f){if(f.getValue().timestamp<=c)return f.delete().then(function(){return jp(f)})})}),0)})} function wr(){A(function(a){return a.yield(Qp(),0)})} function qr(a){T("nwl_csi_killswitch")||Aq("networkless_performance",a,{sampleRate:1})} ;var xr={accountStateChangeSignedIn:23,accountStateChangeSignedOut:24,delayedEventMetricCaptured:11,latencyActionBaselined:6,latencyActionInfo:7,latencyActionTicked:5,offlineTransferStatusChanged:2,offlineImageDownload:335,playbackStartStateChanged:9,systemHealthCaptured:3,mangoOnboardingCompleted:10,mangoPushNotificationReceived:230,mangoUnforkDbMigrationError:121,mangoUnforkDbMigrationSummary:122,mangoUnforkDbMigrationPreunforkDbVersionNumber:133,mangoUnforkDbMigrationPhoneMetadata:134,mangoUnforkDbMigrationPhoneStorage:135, mangoUnforkDbMigrationStep:142,mangoAsyncApiMigrationEvent:223,mangoDownloadVideoResult:224,mangoHomepageVideoCount:279,mangoHomeV3State:295,mangoImageClientCacheHitEvent:273,sdCardStatusChanged:98,framesDropped:12,thumbnailHovered:13,deviceRetentionInfoCaptured:14,thumbnailLoaded:15,backToAppEvent:318,streamingStatsCaptured:17,offlineVideoShared:19,appCrashed:20,youThere:21,offlineStateSnapshot:22,mdxSessionStarted:25,mdxSessionConnected:26,mdxSessionDisconnected:27,bedrockResourceConsumptionSnapshot:28, nextGenWatchWatchSwiped:29,kidsAccountsSnapshot:30,zeroStepChannelCreated:31,tvhtml5SearchCompleted:32,offlineSharePairing:34,offlineShareUnlock:35,mdxRouteDistributionSnapshot:36,bedrockRepetitiveActionTimed:37,unpluggedDegradationInfo:229,uploadMp4HeaderMoved:38,uploadVideoTranscoded:39,uploadProcessorStarted:46,uploadProcessorEnded:47,uploadProcessorReady:94,uploadProcessorRequirementPending:95,uploadProcessorInterrupted:96,uploadFrontendEvent:241,assetPackDownloadStarted:41,assetPackDownloaded:42, assetPackApplied:43,assetPackDeleted:44,appInstallAttributionEvent:459,playbackSessionStopped:45,adBlockerMessagingShown:48,distributionChannelCaptured:49,dataPlanCpidRequested:51,detailedNetworkTypeCaptured:52,sendStateUpdated:53,receiveStateUpdated:54,sendDebugStateUpdated:55,receiveDebugStateUpdated:56,kidsErrored:57,mdxMsnSessionStatsFinished:58,appSettingsCaptured:59,mdxWebSocketServerHttpError:60,mdxWebSocketServer:61,startupCrashesDetected:62,coldStartInfo:435,offlinePlaybackStarted:63,liveChatMessageSent:225, liveChatUserPresent:434,liveChatBeingModerated:457,liveCreationCameraUpdated:64,liveCreationEncodingCaptured:65,liveCreationError:66,liveCreationHealthUpdated:67,liveCreationVideoEffectsCaptured:68,liveCreationStageOccured:75,liveCreationBroadcastScheduled:123,liveCreationArchiveReplacement:149,liveCreationCostreamingConnection:421,liveCreationStreamWebrtcStats:288,mdxSessionRecoveryStarted:69,mdxSessionRecoveryCompleted:70,mdxSessionRecoveryStopped:71,visualElementShown:72,visualElementHidden:73, visualElementGestured:78,visualElementStateChanged:208,screenCreated:156,playbackAssociated:202,visualElementAttached:215,playbackContextEvent:214,cloudCastingPlaybackStarted:74,webPlayerApiCalled:76,tvhtml5AccountDialogOpened:79,foregroundHeartbeat:80,foregroundHeartbeatScreenAssociated:111,kidsOfflineSnapshot:81,mdxEncryptionSessionStatsFinished:82,playerRequestCompleted:83,liteSchedulerStatistics:84,mdxSignIn:85,spacecastMetadataLookupRequested:86,spacecastBatchLookupRequested:87,spacecastSummaryRequested:88, spacecastPlayback:89,spacecastDiscovery:90,tvhtml5LaunchUrlComponentChanged:91,mdxBackgroundPlaybackRequestCompleted:92,mdxBrokenAdditionalDataDeviceDetected:93,tvhtml5LocalStorage:97,tvhtml5DeviceStorageStatus:147,autoCaptionsAvailable:99,playbackScrubbingEvent:339,flexyState:100,interfaceOrientationCaptured:101,mainAppBrowseFragmentCache:102,offlineCacheVerificationFailure:103,offlinePlaybackExceptionDigest:217,vrCopresenceStats:104,vrCopresenceSyncStats:130,vrCopresenceCommsStats:137,vrCopresencePartyStats:153, vrCopresenceEmojiStats:213,vrCopresenceEvent:141,vrCopresenceFlowTransitEvent:160,vrCowatchPartyEvent:492,vrCowatchUserStartOrJoinEvent:504,vrPlaybackEvent:345,kidsAgeGateTracking:105,offlineDelayAllowedTracking:106,mainAppAutoOfflineState:107,videoAsThumbnailDownload:108,videoAsThumbnailPlayback:109,liteShowMore:110,renderingError:118,kidsProfilePinGateTracking:119,abrTrajectory:124,scrollEvent:125,streamzIncremented:126,kidsProfileSwitcherTracking:127,kidsProfileCreationTracking:129,buyFlowStarted:136, mbsConnectionInitiated:138,mbsPlaybackInitiated:139,mbsLoadChildren:140,liteProfileFetcher:144,mdxRemoteTransaction:146,reelPlaybackError:148,reachabilityDetectionEvent:150,mobilePlaybackEvent:151,courtsidePlayerStateChanged:152,musicPersistentCacheChecked:154,musicPersistentCacheCleared:155,playbackInterrupted:157,playbackInterruptionResolved:158,fixFopFlow:159,anrDetection:161,backstagePostCreationFlowEnded:162,clientError:163,gamingAccountLinkStatusChanged:164,liteHousewarming:165,buyFlowEvent:167, kidsParentalGateTracking:168,kidsSignedOutSettingsStatus:437,kidsSignedOutPauseHistoryFixStatus:438,tvhtml5WatchdogViolation:444,ypcUpgradeFlow:169,yongleStudy:170,ypcUpdateFlowStarted:171,ypcUpdateFlowCancelled:172,ypcUpdateFlowSucceeded:173,ypcUpdateFlowFailed:174,liteGrowthkitPromo:175,paymentFlowStarted:341,transactionFlowShowPaymentDialog:405,transactionFlowStarted:176,transactionFlowSecondaryDeviceStarted:222,transactionFlowSecondaryDeviceSignedOutStarted:383,transactionFlowCancelled:177,transactionFlowPaymentCallBackReceived:387, transactionFlowPaymentSubmitted:460,transactionFlowPaymentSucceeded:329,transactionFlowSucceeded:178,transactionFlowFailed:179,transactionFlowPlayBillingConnectionStartEvent:428,transactionFlowSecondaryDeviceSuccess:458,transactionFlowErrorEvent:411,liteVideoQualityChanged:180,watchBreakEnablementSettingEvent:181,watchBreakFrequencySettingEvent:182,videoEffectsCameraPerformanceMetrics:183,adNotify:184,startupTelemetry:185,playbackOfflineFallbackUsed:186,outOfMemory:187,ypcPauseFlowStarted:188,ypcPauseFlowCancelled:189, ypcPauseFlowSucceeded:190,ypcPauseFlowFailed:191,uploadFileSelected:192,ypcResumeFlowStarted:193,ypcResumeFlowCancelled:194,ypcResumeFlowSucceeded:195,ypcResumeFlowFailed:196,adsClientStateChange:197,ypcCancelFlowStarted:198,ypcCancelFlowCancelled:199,ypcCancelFlowSucceeded:200,ypcCancelFlowFailed:201,ypcCancelFlowGoToPaymentProcessor:402,ypcDeactivateFlowStarted:320,ypcRedeemFlowStarted:203,ypcRedeemFlowCancelled:204,ypcRedeemFlowSucceeded:205,ypcRedeemFlowFailed:206,ypcFamilyCreateFlowStarted:258, ypcFamilyCreateFlowCancelled:259,ypcFamilyCreateFlowSucceeded:260,ypcFamilyCreateFlowFailed:261,ypcFamilyManageFlowStarted:262,ypcFamilyManageFlowCancelled:263,ypcFamilyManageFlowSucceeded:264,ypcFamilyManageFlowFailed:265,restoreContextEvent:207,embedsAdEvent:327,autoplayTriggered:209,clientDataErrorEvent:210,experimentalVssValidation:211,tvhtml5TriggeredEvent:212,tvhtml5FrameworksFieldTrialResult:216,tvhtml5FrameworksFieldTrialStart:220,musicOfflinePreferences:218,watchTimeSegment:219,appWidthLayoutError:221, accountRegistryChange:226,userMentionAutoCompleteBoxEvent:227,downloadRecommendationEnablementSettingEvent:228,musicPlaybackContentModeChangeEvent:231,offlineDbOpenCompleted:232,kidsFlowEvent:233,kidsFlowCorpusSelectedEvent:234,videoEffectsEvent:235,unpluggedOpsEogAnalyticsEvent:236,playbackAudioRouteEvent:237,interactionLoggingDebugModeError:238,offlineYtbRefreshed:239,kidsFlowError:240,musicAutoplayOnLaunchAttempted:242,deviceContextActivityEvent:243,deviceContextEvent:244,templateResolutionException:245, musicSideloadedPlaylistServiceCalled:246,embedsStorageAccessNotChecked:247,embedsHasStorageAccessResult:248,embedsItpPlayedOnReload:249,embedsRequestStorageAccessResult:250,embedsShouldRequestStorageAccessResult:251,embedsRequestStorageAccessState:256,embedsRequestStorageAccessFailedState:257,embedsItpWatchLaterResult:266,searchSuggestDecodingPayloadFailure:252,siriShortcutActivated:253,tvhtml5KeyboardPerformance:254,latencyActionSpan:255,elementsLog:267,ytbFileOpened:268,tfliteModelError:269,apiTest:270, yongleUsbSetup:271,touStrikeInterstitialEvent:272,liteStreamToSave:274,appBundleClientEvent:275,ytbFileCreationFailed:276,adNotifyFailure:278,ytbTransferFailed:280,blockingRequestFailed:281,liteAccountSelector:282,liteAccountUiCallbacks:283,dummyPayload:284,browseResponseValidationEvent:285,entitiesError:286,musicIosBackgroundFetch:287,mdxNotificationEvent:289,layersValidationError:290,musicPwaInstalled:291,liteAccountCleanup:292,html5PlayerHealthEvent:293,watchRestoreAttempt:294,liteAccountSignIn:296, notaireEvent:298,kidsVoiceSearchEvent:299,adNotifyFilled:300,delayedEventDropped:301,analyticsSearchEvent:302,systemDarkThemeOptOutEvent:303,flowEvent:304,networkConnectivityBaselineEvent:305,ytbFileImported:306,downloadStreamUrlExpired:307,directSignInEvent:308,lyricImpressionEvent:309,accessibilityStateEvent:310,tokenRefreshEvent:311,genericAttestationExecution:312,tvhtml5VideoSeek:313,unpluggedAutoPause:314,scrubbingEvent:315,bedtimeReminderEvent:317,tvhtml5UnexpectedRestart:319,tvhtml5StabilityTraceEvent:478, tvhtml5OperationHealth:467,tvhtml5WatchKeyEvent:321,voiceLanguageChanged:322,tvhtml5LiveChatStatus:323,parentToolsCorpusSelectedEvent:324,offerAdsEnrollmentInitiated:325,networkQualityIntervalEvent:326,deviceStartupMetrics:328,heartbeatActionPlayerTransitioned:330,tvhtml5Lifecycle:331,heartbeatActionPlayerHalted:332,adaptiveInlineMutedSettingEvent:333,mainAppLibraryLoadingState:334,thirdPartyLogMonitoringEvent:336,appShellAssetLoadReport:337,tvhtml5AndroidAttestation:338,tvhtml5StartupSoundEvent:340, iosBackgroundRefreshTask:342,iosBackgroundProcessingTask:343,sliEventBatch:344,postImpressionEvent:346,musicSideloadedPlaylistExport:347,idbUnexpectedlyClosed:348,voiceSearchEvent:349,mdxSessionCastEvent:350,idbQuotaExceeded:351,idbTransactionEnded:352,idbTransactionAborted:353,tvhtml5KeyboardLogging:354,idbIsSupportedCompleted:355,creatorStudioMobileEvent:356,idbDataCorrupted:357,parentToolsAppChosenEvent:358,webViewBottomSheetResized:359,activeStateControllerScrollPerformanceSummary:360,navigatorValidation:361, mdxSessionHeartbeat:362,clientHintsPolyfillDiagnostics:363,clientHintsPolyfillEvent:364,proofOfOriginTokenError:365,kidsAddedAccountSummary:366,musicWearableDevice:367,ypcRefundFlowEvent:368,tvhtml5PlaybackMeasurementEvent:369,tvhtml5WatermarkMeasurementEvent:370,clientExpGcfPropagationEvent:371,mainAppReferrerIntent:372,leaderLockEnded:373,leaderLockAcquired:374,googleHatsEvent:375,persistentLensLaunchEvent:376,parentToolsChildWelcomeChosenEvent:378,browseThumbnailPreloadEvent:379,finalPayload:380, mdxDialAdditionalDataUpdateEvent:381,webOrchestrationTaskLifecycleRecord:382,startupSignalEvent:384,accountError:385,gmsDeviceCheckEvent:386,accountSelectorEvent:388,accountUiCallbacks:389,mdxDialAdditionalDataProbeEvent:390,downloadsSearchIcingApiStats:391,downloadsSearchIndexUpdatedEvent:397,downloadsSearchIndexSnapshot:398,dataPushClientEvent:392,kidsCategorySelectedEvent:393,mdxDeviceManagementSnapshotEvent:394,prefetchRequested:395,prefetchableCommandExecuted:396,gelDebuggingEvent:399,webLinkTtsPlayEnd:400, clipViewInvalid:401,persistentStorageStateChecked:403,cacheWipeoutEvent:404,playerEvent:410,sfvEffectPipelineStartedEvent:412,sfvEffectPipelinePausedEvent:429,sfvEffectPipelineEndedEvent:413,sfvEffectChosenEvent:414,sfvEffectLoadedEvent:415,sfvEffectUserInteractionEvent:465,sfvEffectFirstFrameProcessedLatencyEvent:416,sfvEffectAggregatedFramesProcessedLatencyEvent:417,sfvEffectAggregatedFramesDroppedEvent:418,sfvEffectPipelineErrorEvent:430,sfvEffectGraphFrozenEvent:419,sfvEffectGlThreadBlockedEvent:420, mdeVideoChangedEvent:442,mdePlayerPerformanceMetrics:472,mdeExporterEvent:497,genericClientExperimentEvent:423,homePreloadTaskScheduled:424,homePreloadTaskExecuted:425,homePreloadCacheHit:426,polymerPropertyChangedInObserver:427,applicationStarted:431,networkCronetRttBatch:432,networkCronetRttSummary:433,repeatChapterLoopEvent:436,seekCancellationEvent:462,lockModeTimeoutEvent:483,externalVideoShareToYoutubeAttempt:501,parentCodeEvent:502,offlineTransferStarted:4,musicOfflineMixtapePreferencesChanged:16, mangoDailyNewVideosNotificationAttempt:40,mangoDailyNewVideosNotificationError:77,dtwsPlaybackStarted:112,dtwsTileFetchStarted:113,dtwsTileFetchCompleted:114,dtwsTileFetchStatusChanged:145,dtwsKeyframeDecoderBufferSent:115,dtwsTileUnderflowedOnNonkeyframe:116,dtwsBackfillFetchStatusChanged:143,dtwsBackfillUnderflowed:117,dtwsAdaptiveLevelChanged:128,blockingVisitorIdTimeout:277,liteSocial:18,mobileJsInvocation:297,biscottiBasedDetection:439,coWatchStateChange:440,embedsVideoDataDidChange:441,shortsFirst:443, cruiseControlEvent:445,qoeClientLoggingContext:446,atvRecommendationJobExecuted:447,tvhtml5UserFeedback:448,producerProjectCreated:449,producerProjectOpened:450,producerProjectDeleted:451,producerProjectElementAdded:453,producerProjectElementRemoved:454,tvhtml5ShowClockEvent:455,deviceCapabilityCheckMetrics:456,youtubeClearcutEvent:461,offlineBrowseFallbackEvent:463,getCtvTokenEvent:464,startupDroppedFramesSummary:466,screenshotEvent:468,miniAppPlayEvent:469,elementsDebugCounters:470,fontLoadEvent:471, webKillswitchReceived:473,webKillswitchExecuted:474,cameraOpenEvent:475,manualSmoothnessMeasurement:476,tvhtml5AppQualityEvent:477,polymerPropertyAccessEvent:479,miniAppSdkUsage:480,cobaltTelemetryEvent:481,crossDevicePlayback:482,channelCreatedWithObakeImage:484,channelEditedWithObakeImage:485,offlineDeleteEvent:486,crossDeviceNotificationTransfer:487,androidIntentEvent:488,unpluggedAmbientInterludesCounterfactualEvent:489,keyPlaysPlayback:490,shortsCreationFallbackEvent:493,vssData:491,castMatch:494, miniAppPerformanceMetrics:495,userFeedbackEvent:496,kidsGuestSessionMismatch:498,musicSideloadedPlaylistMigrationEvent:499,sleepTimerSessionFinishEvent:500,watchEpPromoConflict:503,innertubeResponseCacheMetrics:505};var yr={},zr=Up("ServiceWorkerLogsDatabase",{yb:(yr.SWHealthLog={Eb:1},yr),shared:!0,upgrade:function(a,b){b(1)&&gp($o(a,"SWHealthLog",{keyPath:"id",autoIncrement:!0}),"swHealthNewRequest",["interface","timestamp"])}, version:1});function Ar(a){return tp(zr(),a)} function Br(a){var b,c;A(function(d){if(d.h==1)return d.yield(Ar(a),2);b=d.i;c=V()-2592E6;return d.yield(Zo(b,["SWHealthLog"],{mode:"readwrite",ka:!0},function(e){return ip(e.objectStore("SWHealthLog"),{},function(f){if(f.getValue().timestamp<=c)return f.delete().then(function(){return jp(f)})})}),0)})} function Cr(a){var b;return A(function(c){if(c.h==1)return c.yield(Ar(a),2);b=c.i;return c.yield(b.clear("SWHealthLog"),0)})} ;var Dr={},Er=0;function Fr(a){var b=new Image,c=""+Er++;Dr[c]=b;b.onload=b.onerror=function(){delete Dr[c]}; b.src=a} ;var Gr;function Hr(){Gr||(Gr=new ko("yt.offline"));return Gr} function Ir(a){if(T("offline_error_handling")){var b=Hr().get("errors",!0)||{};b[a.message]={name:a.name,stack:a.stack};a.level&&(b[a.message].level=a.level);Hr().set("errors",b,2592E3,!0)}} ;function Jr(){this.h=new Map;this.i=!1} function Kr(){if(!Jr.h){var a=E("yt.networkRequestMonitor.instance")||new Jr;D("yt.networkRequestMonitor.instance",a);Jr.h=a}return Jr.h} Jr.prototype.requestComplete=function(a,b){b&&(this.i=!0);a=this.removeParams(a);this.h.get(a)||this.h.set(a,b)}; Jr.prototype.isEndpointCFR=function(a){a=this.removeParams(a);return(a=this.h.get(a))?!1:a===!1&&this.i?!0:null}; Jr.prototype.removeParams=function(a){return a.split("?")[0]}; Jr.prototype.removeParams=Jr.prototype.removeParams;Jr.prototype.isEndpointCFR=Jr.prototype.isEndpointCFR;Jr.prototype.requestComplete=Jr.prototype.requestComplete;Jr.getInstance=Kr;function Lr(){di.call(this);var a=this;this.j=!1;this.i=Kj();this.i.listen("networkstatus-online",function(){if(a.j&&T("offline_error_handling")){var b=Hr().get("errors",!0);if(b){for(var c in b)if(b[c]){var d=new U(c,"sent via offline_errors");d.name=b[c].name;d.stack=b[c].stack;d.level=b[c].level;fm(d)}Hr().set("errors",{},2592E3,!0)}}})} z(Lr,di);function Mr(){if(!Lr.h){var a=E("yt.networkStatusManager.instance")||new Lr;D("yt.networkStatusManager.instance",a);Lr.h=a}return Lr.h} p=Lr.prototype;p.va=function(){return this.i.va()}; p.fb=function(a){this.i.i=a}; p.ce=function(){var a=window.navigator.onLine;return a===void 0?!0:a}; p.Ud=function(){this.j=!0}; p.listen=function(a,b){return this.i.listen(a,b)}; p.oc=function(a){a=Ij(this.i,a);a.then(function(b){T("use_cfr_monitor")&&Kr().requestComplete("generate_204",b)}); return a}; Lr.prototype.sendNetworkCheckRequest=Lr.prototype.oc;Lr.prototype.listen=Lr.prototype.listen;Lr.prototype.enableErrorFlushing=Lr.prototype.Ud;Lr.prototype.getWindowStatus=Lr.prototype.ce;Lr.prototype.networkStatusHint=Lr.prototype.fb;Lr.prototype.isNetworkAvailable=Lr.prototype.va;Lr.getInstance=Mr;function Nr(a){a=a===void 0?{}:a;di.call(this);var b=this;this.i=this.u=0;this.j=Mr();var c=E("yt.networkStatusManager.instance.listen").bind(this.j);c&&(a.rateLimit?(this.rateLimit=a.rateLimit,c("networkstatus-online",function(){Or(b,"publicytnetworkstatus-online")}),c("networkstatus-offline",function(){Or(b,"publicytnetworkstatus-offline")})):(c("networkstatus-online",function(){ei(b,"publicytnetworkstatus-online")}),c("networkstatus-offline",function(){ei(b,"publicytnetworkstatus-offline")})))} z(Nr,di);Nr.prototype.va=function(){var a=E("yt.networkStatusManager.instance.isNetworkAvailable");return a?a.bind(this.j)():!0}; Nr.prototype.fb=function(a){var b=E("yt.networkStatusManager.instance.networkStatusHint").bind(this.j);b&&b(a)}; Nr.prototype.oc=function(a){var b=this,c;return A(function(d){c=E("yt.networkStatusManager.instance.sendNetworkCheckRequest").bind(b.j);return T("skip_network_check_if_cfr")&&Kr().isEndpointCFR("generate_204")?d.return(new Promise(function(e){var f;b.fb(((f=window.navigator)==null?void 0:f.onLine)||!0);e(b.va())})):c?d.return(c(a)):d.return(!0)})}; function Or(a,b){a.rateLimit?a.i?(Lj.qa(a.u),a.u=Lj.pa(function(){a.o!==b&&(ei(a,b),a.o=b,a.i=V())},a.rateLimit-(V()-a.i))):(ei(a,b),a.o=b,a.i=V()):ei(a,b)} ;var Pr;function Qr(){var a=cr.call;Pr||(Pr=new Nr({kh:!0,dh:!0}));a.call(cr,this,{ga:{Nd:vr,pb:ur,bd:rr,se:sr,Lc:tr,set:pr},ea:Pr,handleError:function(b,c,d){var e,f=d==null?void 0:(e=d.error)==null?void 0:e.code;if(f===400||f===415){var g;gm(new U(b.message,c,d==null?void 0:(g=d.error)==null?void 0:g.code),void 0,void 0,void 0,!0)}else fm(b)}, qb:gm,sendFn:Rr,now:V,Fd:Ir,Da:jo(),Kc:"publicytnetworkstatus-online",Hc:"publicytnetworkstatus-offline",ac:!0,Yb:.1,kc:Am("potential_esf_error_limit",10),Y:T,Hb:!(Bn()&&Sr())});this.j=new wj;T("networkless_immediately_drop_all_requests")&&wr();Rp("LogsDatabaseV2")} z(Qr,cr);function Xr(){var a=E("yt.networklessRequestController.instance");a||(a=new Qr,D("yt.networklessRequestController.instance",a),T("networkless_logging")&&Gp().then(function(b){a.X=b;er(a);a.j.resolve();a.ac&&Math.random()<=a.Yb&&a.X&&Br(a.X);T("networkless_immediately_drop_sw_health_store")&&Yr(a)})); return a} Qr.prototype.writeThenSend=function(a,b){b||(b={});b=Zr(a,b);Bn()||(this.h=!1);cr.prototype.writeThenSend.call(this,a,b)}; Qr.prototype.sendThenWrite=function(a,b,c){b||(b={});b=Zr(a,b);Bn()||(this.h=!1);cr.prototype.sendThenWrite.call(this,a,b,c)}; Qr.prototype.sendAndWrite=function(a,b){b||(b={});b=Zr(a,b);Bn()||(this.h=!1);cr.prototype.sendAndWrite.call(this,a,b)}; Qr.prototype.awaitInitialization=function(){return this.j.promise}; function Yr(a){var b;A(function(c){if(!a.X)throw b=Lo("clearSWHealthLogsDb"),b;return c.return(Cr(a.X).catch(function(d){a.handleError(d)}))})} function Rr(a,b,c,d){d=d===void 0?!1:d;b=T("web_fp_via_jspb")?Object.assign({},b):b;T("use_cfr_monitor")&&$r(a,b);if(T("use_request_time_ms_header"))b.headers&&qm(a)&&(b.headers["X-Goog-Request-Time"]=JSON.stringify(Math.round(V())));else{var e;if((e=b.postParams)==null?0:e.requestTimeMs)b.postParams.requestTimeMs=Math.round(V())}if(c&&Object.keys(b).length===0){var f=f===void 0?"":f;var g=g===void 0?!1:g;var h=h===void 0?!1:h;if(a)if(f)Fm(a,void 0,"POST",f,void 0);else if(S("USE_NET_AJAX_FOR_PING_TRANSPORT", !1)||h)Fm(a,void 0,"GET","",void 0,void 0,g,h);else{b:{try{var k=new $a({url:a});if(k.j&&k.i||k.o){var l=Xb(Yb(5,a)),m;if(!(m=!l||!l.endsWith("/aclk"))){var n=a.search(fc),r=ec(a,0,"ri",n);if(r<0)var t=null;else{var v=a.indexOf("&",r);if(v<0||v>n)v=n;t=decodeURIComponent(a.slice(r+3,v!==-1?v:0).replace(/\+/g," "))}m=t!=="1"}var x=!m;break b}}catch(H){}x=!1}if(x){b:{try{if(window.navigator&&window.navigator.sendBeacon&&window.navigator.sendBeacon(a,"")){var y=!0;break b}}catch(H){}y=!1}c=y?!0:!1}else c= !1;c||Fr(a)}}else b.compress?b.postBody?(typeof b.postBody!=="string"&&(b.postBody=JSON.stringify(b.postBody)),Sq(a,b.postBody,b,Jm,d)):Sq(a,JSON.stringify(b.postParams),b,Im,d):Jm(a,b)} function Zr(a,b){T("use_event_time_ms_header")&&qm(a)&&(b.headers||(b.headers={}),b.headers["X-Goog-Event-Time"]=JSON.stringify(Math.round(V())));return b} function $r(a,b){var c=b.onError?b.onError:function(){}; b.onError=function(e,f){Kr().requestComplete(a,!1);c(e,f)}; var d=b.onSuccess?b.onSuccess:function(){}; b.onSuccess=function(e,f){Kr().requestComplete(a,!0);d(e,f)}} function Sr(){return Zb(document.location.toString())!=="www.youtube-nocookie.com"} ;var as=!1,bs=C.ytNetworklessLoggingInitializationOptions||{isNwlInitialized:as};D("ytNetworklessLoggingInitializationOptions",bs);function cs(){var a;A(function(b){if(b.h==1)return b.yield(Gp(),2);a=b.i;if(!a||!Bn()&&!T("nwl_init_require_datasync_id_killswitch")||!Sr())return b.F(0);as=!0;bs.isNwlInitialized=as;return b.yield(Xr().awaitInitialization(),0)})} ;function ds(a){var b=this;this.config_=null;a?this.config_=a:hq()&&(this.config_=iq());En(function(){ar(b)},5E3)} ds.prototype.isReady=function(){!this.config_&&hq()&&(this.config_=iq());return!!this.config_}; function br(a,b,c,d){function e(v){v=v===void 0?!1:v;var x;if(d.retry&&h!="www.youtube-nocookie.com"&&(v||T("skip_ls_gel_retry")||g.headers["Content-Type"]!=="application/json"||(x=Zq(b,c,l,k)),x)){var y=g.onSuccess,H=g.onFetchSuccess;g.onSuccess=function(P,wa){$q(x);y(P,wa)}; c.onFetchSuccess=function(P,wa){$q(x);H(P,wa)}}try{if(v&&d.retry&&!d.networklessOptions.bypassNetworkless)g.method="POST",d.networklessOptions.writeThenSend?Xr().writeThenSend(t,g):Xr().sendAndWrite(t,g); else if(d.compress){var J=!d.networklessOptions.writeThenSend;if(g.postBody){var N=g.postBody;typeof N!=="string"&&(N=JSON.stringify(g.postBody));Sq(t,N,g,Jm,J)}else Sq(t,JSON.stringify(g.postParams),g,Im,J)}else T("web_all_payloads_via_jspb")?Jm(t,g):Im(t,g)}catch(P){if(P.name==="InvalidAccessError")x&&($q(x),x=0),gm(Error("An extension is blocking network request."));else throw P;}x&&En(function(){ar(a)},5E3)} !S("VISITOR_DATA")&&b!=="visitor_id"&&Math.random()<.01&&gm(new U("Missing VISITOR_DATA when sending innertube request.",b,c,d));if(!a.isReady()){var f=new U("innertube xhrclient not ready",b,c,d);fm(f);throw f;}var g={headers:d.headers||{},method:"POST",postParams:c,postBody:d.postBody,postBodyFormat:d.postBodyFormat||"JSON",onTimeout:function(){d.onTimeout()}, onFetchTimeout:d.onTimeout,onSuccess:function(v,x){if(d.onSuccess)d.onSuccess(x)}, onFetchSuccess:function(v){if(d.onSuccess)d.onSuccess(v)}, onError:function(v,x){if(d.onError)d.onError(x)}, onFetchError:function(v){if(d.onError)d.onError(v)}, timeout:d.timeout,withCredentials:!0,compress:d.compress};g.headers["Content-Type"]||(g.headers["Content-Type"]="application/json");var h="";(f=a.config_.le)&&(h=f);var k=a.config_.oe||!1,l=kq(k,h,d);Object.assign(g.headers,l);(f=g.headers.Authorization)&&!h&&k&&(g.headers["x-origin"]=window.location.origin);var m="/youtubei/"+a.config_.innertubeApiVersion+"/"+b,n={alt:"json"},r=a.config_.ne&&f;r=r&&f.startsWith("Bearer");r||(n.key=a.config_.innertubeApiKey);var t=pm(""+h+m,n||{},!0);(E("ytNetworklessLoggingInitializationOptions")? bs.isNwlInitialized:as)?Ep().then(function(v){e(v)}):e(!1)} ;var es=0,gs=Vc?"webkit":Uc?"moz":Sc?"ms":Rc?"o":"";D("ytDomDomGetNextId",E("ytDomDomGetNextId")||function(){return++es});var hs={stopImmediatePropagation:1,stopPropagation:1,preventMouseEvent:1,preventManipulation:1,preventDefault:1,layerX:1,layerY:1,screenX:1,screenY:1,scale:1,rotation:1,webkitMovementX:1,webkitMovementY:1}; function is(a){this.type="";this.state=this.source=this.data=this.currentTarget=this.relatedTarget=this.target=null;this.charCode=this.keyCode=0;this.metaKey=this.shiftKey=this.ctrlKey=this.altKey=!1;this.rotation=this.clientY=this.clientX=0;this.scale=1;this.changedTouches=this.touches=null;try{if(a=a||window.event){this.event=a;for(var b in a)b in hs||(this[b]=a[b]);this.scale=a.scale;this.rotation=a.rotation;var c=a.target||a.srcElement;c&&c.nodeType==3&&(c=c.parentNode);this.target=c;var d=a.relatedTarget; if(d)try{d=d.nodeName?d:null}catch(e){d=null}else this.type=="mouseover"?d=a.fromElement:this.type=="mouseout"&&(d=a.toElement);this.relatedTarget=d;this.clientX=a.clientX!=void 0?a.clientX:a.pageX;this.clientY=a.clientY!=void 0?a.clientY:a.pageY;this.keyCode=a.keyCode?a.keyCode:a.which;this.charCode=a.charCode||(this.type=="keypress"?this.keyCode:0);this.altKey=a.altKey;this.ctrlKey=a.ctrlKey;this.shiftKey=a.shiftKey;this.metaKey=a.metaKey;this.h=a.pageX;this.i=a.pageY}}catch(e){}} function js(a){if(document.body&&document.documentElement){var b=document.body.scrollTop+document.documentElement.scrollTop;a.h=a.clientX+(document.body.scrollLeft+document.documentElement.scrollLeft);a.i=a.clientY+b}} is.prototype.preventDefault=function(){this.event&&(this.event.returnValue=!1,this.event.preventDefault&&this.event.preventDefault())}; is.prototype.stopPropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopPropagation&&this.event.stopPropagation())}; is.prototype.stopImmediatePropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopImmediatePropagation&&this.event.stopImmediatePropagation())};var Eg=C.ytEventsEventsListeners||{};D("ytEventsEventsListeners",Eg);var ks=C.ytEventsEventsCounter||{count:0};D("ytEventsEventsCounter",ks); function ls(a,b,c,d){d=d===void 0?{}:d;a.addEventListener&&(b!="mouseenter"||"onmouseenter"in document?b!="mouseleave"||"onmouseenter"in document?b=="mousewheel"&&"MozBoxSizing"in document.documentElement.style&&(b="MozMousePixelScroll"):b="mouseout":b="mouseover");return Dg(function(e){var f=typeof e[4]==="boolean"&&e[4]==!!d,g=Qa(e[4])&&Qa(d)&&Ig(e[4],d);return!!e.length&&e[0]==a&&e[1]==b&&e[2]==c&&(f||g)})} function ms(a,b,c,d){d=d===void 0?{}:d;if(!a||!a.addEventListener&&!a.attachEvent)return"";var e=ls(a,b,c,d);if(e)return e;e=++ks.count+"";var f=!(b!="mouseenter"&&b!="mouseleave"||!a.addEventListener||"onmouseenter"in document);var g=f?function(h){h=new is(h);if(!Rg(h.relatedTarget,function(k){return k==a}))return h.currentTarget=a,h.type=b,c.call(a,h)}:function(h){h=new is(h); h.currentTarget=a;return c.call(a,h)}; g=em(g);a.addEventListener?(b=="mouseenter"&&f?b="mouseover":b=="mouseleave"&&f?b="mouseout":b=="mousewheel"&&"MozBoxSizing"in document.documentElement.style&&(b="MozMousePixelScroll"),ns()||typeof d==="boolean"?a.addEventListener(b,g,d):a.addEventListener(b,g,!!d.capture)):a.attachEvent("on"+b,g);Eg[e]=[a,b,c,g,d];return e} function ps(a){a&&(typeof a=="string"&&(a=[a]),Jb(a,function(b){if(b in Eg){var c=Eg[b],d=c[0],e=c[1],f=c[3];c=c[4];d.removeEventListener?ns()||typeof c==="boolean"?d.removeEventListener(e,f,c):d.removeEventListener(e,f,!!c.capture):d.detachEvent&&d.detachEvent("on"+e,f);delete Eg[b]}}))} var ns=si(function(){var a=!1;try{var b=Object.defineProperty({},"capture",{get:function(){a=!0}}); window.addEventListener("test",null,b)}catch(c){}return a});function qs(a){this.H=a;this.h=null;this.o=0;this.A=null;this.u=0;this.i=[];for(a=0;a<4;a++)this.i.push(0);this.j=0;this.T=ms(window,"mousemove",Va(this.V,this));a=Va(this.I,this);typeof a==="function"&&(a=em(a));this.W=window.setInterval(a,25)} Ya(qs,L);qs.prototype.V=function(a){a.h===void 0&&js(a);var b=a.h;a.i===void 0&&js(a);this.h=new Ag(b,a.i)}; qs.prototype.I=function(){if(this.h){var a=V();if(this.o!=0){var b=this.A,c=this.h,d=b.x-c.x;b=b.y-c.y;d=Math.sqrt(d*d+b*b)/(a-this.o);this.i[this.j]=Math.abs((d-this.u)/this.u)>.5?1:0;for(c=b=0;c<4;c++)b+=this.i[c]||0;b>=3&&this.H();this.u=d}this.o=a;this.A=this.h;this.j=(this.j+1)%4}}; qs.prototype.aa=function(){window.clearInterval(this.W);ps(this.T)};var rs={}; function ss(a){var b=a===void 0?{}:a;a=b.Ce===void 0?!1:b.Ce;b=b.Vd===void 0?!0:b.Vd;if(E("_lact",window)==null){var c=parseInt(S("LACT"),10);c=isFinite(c)?Date.now()-Math.max(c,0):-1;D("_lact",c,window);D("_fact",c,window);c==-1&&ts();ms(document,"keydown",ts);ms(document,"keyup",ts);ms(document,"mousedown",ts);ms(document,"mouseup",ts);a?ms(window,"touchmove",function(){us("touchmove",200)},{passive:!0}):(ms(window,"resize",function(){us("resize",200)}),b&&ms(window,"scroll",function(){us("scroll",200)})); new qs(function(){us("mouse",100)}); ms(document,"touchstart",ts,{passive:!0});ms(document,"touchend",ts,{passive:!0})}} function us(a,b){rs[a]||(rs[a]=!0,Lj.pa(function(){ts();rs[a]=!1},b))} function ts(){E("_lact",window)==null&&ss();var a=Date.now();D("_lact",a,window);E("_fact",window)==-1&&D("_fact",a,window);(a=E("ytglobal.ytUtilActivityCallback_"))&&a()} function vs(){var a=E("_lact",window);return a==null?-1:Math.max(Date.now()-a,0)} ;var ws=C.ytPubsubPubsubInstance||new M,xs=C.ytPubsubPubsubSubscribedKeys||{},ys=C.ytPubsubPubsubTopicToKeys||{},zs=C.ytPubsubPubsubIsSynchronous||{};function As(a,b){var c=Bs();if(c&&b){var d=c.subscribe(a,function(){function e(){xs[d]&&b.apply&&typeof b.apply=="function"&&b.apply(window,f)} var f=arguments;try{zs[a]?e():xm(e,0)}catch(g){fm(g)}},void 0); xs[d]=!0;ys[a]||(ys[a]=[]);ys[a].push(d);return d}return 0} function Cs(a){var b=Bs();b&&(typeof a==="number"?a=[a]:typeof a==="string"&&(a=[parseInt(a,10)]),Jb(a,function(c){b.unsubscribeByKey(c);delete xs[c]}))} function Ds(a,b){var c=Bs();c&&c.publish.apply(c,arguments)} function Es(a){var b=Bs();if(b)if(b.clear(a),a)Fs(a);else for(var c in ys)Fs(c)} function Bs(){return C.ytPubsubPubsubInstance} function Fs(a){ys[a]&&(a=ys[a],Jb(a,function(b){xs[b]&&delete xs[b]}),a.length=0)} M.prototype.subscribe=M.prototype.subscribe;M.prototype.unsubscribeByKey=M.prototype.Sb;M.prototype.publish=M.prototype.kb;M.prototype.clear=M.prototype.clear;D("ytPubsubPubsubInstance",ws);D("ytPubsubPubsubTopicToKeys",ys);D("ytPubsubPubsubIsSynchronous",zs);D("ytPubsubPubsubSubscribedKeys",xs);var Gs=Symbol("injectionDeps");function Hs(a){this.name=a} Hs.prototype.toString=function(){return"InjectionToken("+this.name+")"}; function Is(a){this.key=a} function Js(){this.i=new Map;this.j=new Map;this.h=new Map} function Ks(a,b){a.i.set(b.nc,b);var c=a.j.get(b.nc);if(c)try{c.sh(a.resolve(b.nc))}catch(d){c.qh(d)}} Js.prototype.resolve=function(a){return a instanceof Is?Ls(this,a.key,[],!0):Ls(this,a,[])}; function Ls(a,b,c,d){d=d===void 0?!1:d;if(c.indexOf(b)>-1)throw Error("Deps cycle for: "+b);if(a.h.has(b))return a.h.get(b);if(!a.i.has(b)){if(d)return;throw Error("No provider for: "+b);}d=a.i.get(b);c.push(b);if(d.Bd!==void 0)var e=d.Bd;else if(d.lf)e=d[Gs]?Ms(a,d[Gs],c):[],e=d.lf.apply(d,ka(e));else if(d.Ad){e=d.Ad;var f=e[Gs]?Ms(a,e[Gs],c):[];e=new (Function.prototype.bind.apply(e,[null].concat(ka(f))))}else throw Error("Could not resolve providers for: "+b);c.pop();d.vh||a.h.set(b,e);return e} function Ms(a,b,c){return b?b.map(function(d){return d instanceof Is?Ls(a,d.key,c,!0):Ls(a,d,c)}):[]} ;var Ns;function Os(){Ns||(Ns=new Js);return Ns} ;var Ps=window;function Qs(){var a,b;return"h5vcc"in Ps&&((a=Ps.h5vcc.traceEvent)==null?0:a.traceBegin)&&((b=Ps.h5vcc.traceEvent)==null?0:b.traceEnd)?1:"performance"in Ps&&Ps.performance.mark&&Ps.performance.measure?2:0} function Rs(a){var b=Qs();switch(b){case 1:Ps.h5vcc.traceEvent.traceBegin("YTLR",a);break;case 2:Ps.performance.mark(a+"-start");break;case 0:break;default:Ab(b,"unknown trace type")}} function Ss(a){var b=Qs();switch(b){case 1:Ps.h5vcc.traceEvent.traceEnd("YTLR",a);break;case 2:b=a+"-start";var c=a+"-end";Ps.performance.mark(c);Ps.performance.measure(a,b,c);break;case 0:break;default:Ab(b,"unknown trace type")}} ;var Ts=T("web_enable_lifecycle_monitoring")&&Qs()!==0,Us=T("web_enable_lifecycle_monitoring");function Vs(a){var b=this;var c=c===void 0?0:c;var d=d===void 0?jo():d;this.j=c;this.scheduler=d;this.i=new wj;this.h=a;for(a={bb:0};a.bb-1&&a.plugins.splice(b,1)})}; p.transition=function(a,b){var c=this;Ts&&Ss(this.state);var d=this.transitions.find(function(f){return Array.isArray(f.from)?f.from.find(function(g){return g===c.state&&f.to===a}):f.from===c.state&&f.to===a}); if(d){this.j&&(Ws(this.j),this.j=void 0);Ys(this,a,b);this.state=a;Ts&&Rs(this.state);d=d.action.bind(this);var e=this.plugins.filter(function(f){return f[a]}).map(function(f){return f[a]}); d(Zs(this,e),b)}else throw Error("no transition specified from "+this.state+" to "+a);}; function Zs(a,b){var c=b.filter(function(e){return $s(a,e)===10}),d=b.filter(function(e){return $s(a,e)!==10}); return a.A.uh?function(){var e=B.apply(0,arguments);return A(function(f){if(f.h==1)return f.yield(a.Je.apply(a,[c].concat(ka(e))),2);a.vd.apply(a,[d].concat(ka(e)));f.h=0})}:function(){var e=B.apply(0,arguments); a.Ke.apply(a,[c].concat(ka(e)));a.vd.apply(a,[d].concat(ka(e)))}} p.Ke=function(a){for(var b=B.apply(1,arguments),c=jo(),d=w(a),e=d.next(),f={};!e.done;f={Jb:void 0},e=d.next())f.Jb=e.value,c.Db(function(g){return function(){at(g.Jb.name);g.Jb.callback.apply(g.Jb,ka(b));bt(g.Jb.name)}}(f))}; p.Je=function(a){var b=B.apply(1,arguments),c,d,e,f,g;return A(function(h){h.h==1&&(c=jo(),d=w(a),e=d.next(),f={});if(h.h!=3){if(e.done)return h.F(0);f.ub=e.value;f.Tb=void 0;g=function(k){return function(){at(k.ub.name);var l=k.ub.callback.apply(k.ub,ka(b));typeof(l==null?void 0:l.then)==="function"?k.Tb=l.then(function(){bt(k.ub.name)}):bt(k.ub.name)}}(f); c.Db(g);return f.Tb?h.yield(f.Tb,3):h.F(3)}f={ub:void 0,Tb:void 0};e=d.next();return h.F(2)})}; p.vd=function(a){var b=B.apply(1,arguments),c=this,d=a.map(function(e){return{zc:function(){at(e.name);e.callback.apply(e,ka(b));bt(e.name)}, priority:$s(c,e)}}); d.length&&(this.j=new Vs(d))}; function $s(a,b){var c,d;return(d=(c=a.o)!=null?c:b.priority)!=null?d:0} function at(a){Ts&&a&&Rs(a)} function bt(a){Ts&&a&&Ss(a)} function Ys(a,b,c){Us&&console.groupCollapsed&&console.groupEnd&&(console.groupCollapsed("["+a.constructor.name+"] '"+a.state+"' to '"+b+"'"),console.log("with message: ",c),console.groupEnd())} da.Object.defineProperties(Xs.prototype,{currentState:{configurable:!0,enumerable:!0,get:function(){return this.state}}});function ct(a){Xs.call(this,a===void 0?"none":a);this.h=null;this.o=10;this.transitions=[{from:"none",to:"application_navigating",action:this.i},{from:"application_navigating",to:"none",action:this.D},{from:"application_navigating",to:"application_navigating",action:function(){}}, {from:"none",to:"none",action:function(){}}]} var dt;z(ct,Xs);ct.prototype.i=function(a,b){var c=this;this.h=En(function(){c.currentState==="application_navigating"&&c.transition("none")},5E3); a(b==null?void 0:b.event)}; ct.prototype.D=function(a,b){this.h&&(Lj.qa(this.h),this.h=null);a(b==null?void 0:b.event)}; function et(){dt||(dt=new ct);return dt} ;var ft=[];D("yt.logging.transport.getScrapedGelPayloads",function(){return ft});function gt(){this.store={};this.h={}} gt.prototype.storePayload=function(a,b){a=ht(a);this.store[a]?this.store[a].push(b):(this.h={},this.store[a]=[b]);T("more_accurate_gel_parser")&&(b=new CustomEvent("TRANSPORTING_NEW_EVENT"),window.dispatchEvent(b));return a}; gt.prototype.smartExtractMatchingEntries=function(a){if(!a.keys.length)return[];for(var b=jt(this,a.keys.splice(0,1)[0]),c=[],d=0;d=1E3?e():d>=a?vt||(vt=Kt(function(){e();vt=void 0},0)):g-k>=10&&(Lt(f,c.tier),h.o=g)} function Gt(a,b){if(a.endpoint==="log_event"){T("more_accurate_gel_parser")&&At().storePayload({isJspb:!1},a.payload);Ct();var c=Dt(a),d=new Map;d.set(c,[a.payload]);var e=Et(a.payload)||"";b&&(pt=new b);return new ti(function(f,g){pt&&pt.isReady()?Mt(d,pt,f,g,{bypassNetworkless:!0},!0,e==="gelDebuggingEvent"):f()})}} function Dt(a){var b="";if(a.dangerousLogToVisitorSession)b="visitorOnlyApprovedKey";else if(a.cttAuthInfo){b=a.cttAuthInfo;var c={};b.videoId?c.videoId=b.videoId:b.playlistId&&(c.playlistId=b.playlistId);xt[a.cttAuthInfo.token]=c;b=a.cttAuthInfo.token}return b} function It(a,b,c,d){a=a===void 0?{}:a;c=c===void 0?!1:c;new ti(function(e,f){var g=Jt(c,d),h=g.j;g.j=!1;Nt(g.i);Nt(g.h);g.h=0;pt&&pt.isReady()?d===void 0&&T("enable_web_tiered_gel")?Ot(e,f,a,b,c,300,h):Ot(e,f,a,b,c,d,h):(Lt(c,d),e())})} function Ot(a,b,c,d,e,f,g){var h=pt;c=c===void 0?{}:c;e=e===void 0?!1:e;f=f===void 0?200:f;g=g===void 0?!1:g;var k=new Map,l={isJspb:e,cttAuthInfo:d,tier:f};e={isJspb:e,cttAuthInfo:d};if(d!==void 0)f=T("enable_web_tiered_gel")?At().smartExtractMatchingEntries({keys:[l,e],sizeLimit:1E3}):At().extractMatchingEntries(e),k.set(d,f);else for(d=w(Object.keys(zt)),l=d.next();!l.done;l=d.next())l=l.value,e=T("enable_web_tiered_gel")?At().smartExtractMatchingEntries({keys:[{isJspb:!1,cttAuthInfo:l,tier:f}, {isJspb:!1,cttAuthInfo:l}],sizeLimit:1E3}):At().extractMatchingEntries({isJspb:!1,cttAuthInfo:l}),e.length>0&&k.set(l,e),(T("web_fp_via_jspb_and_json")&&c.writeThenSend||!T("web_fp_via_jspb_and_json"))&&delete zt[l];Mt(k,h,a,b,c,!1,g)} function Lt(a,b){function c(){It({writeThenSend:!0},void 0,a,b)} a=a===void 0?!1:a;b=b===void 0?200:b;var d=Jt(a,b),e=d===ut||d===tt?5E3:nt;T("web_gel_timeout_cap")&&!d.h&&(e=Kt(function(){c()},e),d.h=e); Nt(d.i);e=S("LOGGING_BATCH_TIMEOUT",Am("web_gel_debounce_ms",1E4));T("shorten_initial_gel_batch_timeout")&&wt&&(e=mt);e=Kt(function(){Am("gel_min_batch_size")>0?At().getSequenceCount({cttAuthInfo:void 0,isJspb:a,tier:b})>=ot&&c():c()},e); d.i=e} function Mt(a,b,c,d,e,f,g){e=e===void 0?{}:e;var h=Math.round(V()),k=a.size,l=(g===void 0?0:g)&&T("vss_through_gel_video_stats")?"video_stats":"log_event";a=w(a);var m=a.next();for(g={};!m.done;g={Gc:void 0,batchRequest:void 0,dangerousLogToVisitorSession:void 0,Jc:void 0,Ic:void 0},m=a.next()){var n=w(m.value);m=n.next().value;n=n.next().value;g.batchRequest=Kg({context:jq(b.config_||iq())});if(!Pa(n)&&!T("throw_err_when_logevent_malformed_killswitch")){d();break}g.batchRequest.events=n;(n=xt[m])&& Pt(g.batchRequest,m,n);delete xt[m];g.dangerousLogToVisitorSession=m==="visitorOnlyApprovedKey";Qt(g.batchRequest,h,g.dangerousLogToVisitorSession);T("always_send_and_write")&&(e.writeThenSend=!1);g.Jc=function(r){T("start_client_gcf")&&Lj.pa(function(){return A(function(t){return t.yield(Rt(r),0)})}); k--;k||c()}; g.Gc=0;g.Ic=function(r){return function(){r.Gc++;if(e.bypassNetworkless&&r.Gc===1)try{br(b,l,r.batchRequest,St({writeThenSend:!0},r.dangerousLogToVisitorSession,r.Jc,r.Ic,f)),wt=!1}catch(t){fm(t),d()}k--;k||c()}}(g); try{br(b,l,g.batchRequest,St(e,g.dangerousLogToVisitorSession,g.Jc,g.Ic,f)),wt=!1}catch(r){fm(r),d()}}} function St(a,b,c,d,e){a={retry:!0,onSuccess:c,onError:d,networklessOptions:a,dangerousLogToVisitorSession:b,Yg:!!e,headers:{},postBodyFormat:"",postBody:"",compress:T("compress_gel")||T("compress_gel_lr")};Tt()&&(a.headers["X-Goog-Request-Time"]=JSON.stringify(Math.round(V())));return a} function Qt(a,b,c){Tt()||(a.requestTimeMs=String(b));T("unsplit_gel_payloads_in_logs")&&(a.unsplitGelPayloadsInLogs=!0);!c&&(b=S("EVENT_ID"))&&((c=S("BATCH_CLIENT_COUNTER")||0)||(c=Math.floor(Math.random()*65535/2)),c++,c>65535&&(c=1),am("BATCH_CLIENT_COUNTER",c),a.serializedClientEventId={serializedEventId:b,clientCounter:String(c)})} function Pt(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 Ct(){var a;(a=E("yt.logging.transport.enableScrapingForTest"))||(a=zm("il_payload_scraping"),a=(a!==void 0?String(a):"")!=="enable_il_payload_scraping");a||(ft=[],D("yt.logging.transport.enableScrapingForTest",!0),D("yt.logging.transport.scrapedPayloadsForTesting",ft),D("yt.logging.transport.payloadToScrape","visualElementShown visualElementHidden visualElementAttached screenCreated visualElementGestured visualElementStateChanged".split(" ")),D("yt.logging.transport.getScrapedPayloadFromClientEventsFunction"), D("yt.logging.transport.scrapeClientEvent",!0))} function Tt(){return T("use_request_time_ms_header")||T("lr_use_request_time_ms_header")} function Kt(a,b){return T("transport_use_scheduler")===!1?xm(a,b):T("logging_avoid_blocking_during_navigation")||T("lr_logging_avoid_blocking_during_navigation")?En(function(){if(et().currentState==="none")a();else{var c={};et().install((c.none={callback:a},c))}},b):En(a,b)} function Nt(a){T("transport_use_scheduler")?Lj.qa(a):window.clearTimeout(a)} function Rt(a){var b,c,d,e,f,g,h,k,l,m;return A(function(n){return n.h==1?(d=(b=a)==null?void 0:(c=b.responseContext)==null?void 0:c.globalConfigGroup,e=lt(d,Dl),g=(f=d)==null?void 0:f.hotHashData,h=lt(d,Cl),l=(k=d)==null?void 0:k.coldHashData,(m=Os().resolve(new Is(cq)))?g?e?n.yield(eq(m,g,e),2):n.yield(eq(m,g),2):n.F(2):n.return()):l?h?n.yield(fq(m,l,h),0):n.yield(fq(m,l),0):n.F(0)})} function Jt(a,b){b=b===void 0?200:b;return a?b===300?ut:st:b===300?tt:rt} function Et(a){a=Object.keys(a);a=w(a);for(var b=a.next();!b.done;b=a.next())if(b=b.value,xr[b])return b} function Ft(a){switch(a){case "DELAYED_EVENT_TIER_UNSPECIFIED":return 0;case "DELAYED_EVENT_TIER_DEFAULT":return 100;case "DELAYED_EVENT_TIER_DISPATCH_TO_EMPTY":return 200;case "DELAYED_EVENT_TIER_FAST":return 300;case "DELAYED_EVENT_TIER_IMMEDIATE":return 400;default:return 200}} ;var Ut=C.ytLoggingGelSequenceIdObj_||{};D("ytLoggingGelSequenceIdObj_",Ut); function Vt(a,b,c,d){d=d===void 0?{}:d;var e={},f=Math.round(d.timestamp||V());e.eventTimeMs=f ")} ;var Xt=new Set,Yt=0,Zt=0,$t=0,au=[],bu=["PhantomJS","Googlebot","TO STOP THIS SECURITY SCAN go/scan"];function so(a){cu(a)} function du(a){cu(a,"WARNING")} function eu(a){a instanceof Error?cu(a):(a=Qa(a)?JSON.stringify(a):String(a),a=new U(a),a.name="RejectedPromiseError",du(a))} function cu(a,b,c,d,e,f,g,h){f=f===void 0?{}:f;f.name=c||S("INNERTUBE_CONTEXT_CLIENT_NAME",1);f.version=d||S("INNERTUBE_CONTEXT_CLIENT_VERSION");c=f;b=b===void 0?"ERROR":b;g=g===void 0?!1:g;b=b===void 0?"ERROR":b;g=g===void 0?!1:g;if(a&&(a.hasOwnProperty("level")&&a.level&&(b=a.level),T("console_log_js_exceptions")&&(d=[],d.push("Name: "+a.name),d.push("Message: "+a.message),a.hasOwnProperty("params")&&d.push("Error Params: "+JSON.stringify(a.params)),a.hasOwnProperty("args")&&d.push("Error args: "+ JSON.stringify(a.args)),d.push("File name: "+a.fileName),d.push("Stacktrace: "+a.stack),d=d.join("\n"),window.console.log(d,a)),!(Yt>=5))){d=au;var k=Rb(a);e=k.message||"Unknown Error";f=k.name||"UnknownError";var l=k.stack||a.i||"Not available";if(l.startsWith(f+": "+e)){var m=l.split("\n");m.shift();l=m.join("\n")}m=k.lineNumber||"Not available";k=k.fileName||"Not available";var n=0;if(a.hasOwnProperty("args")&&a.args&&a.args.length)for(var r=0;r=500);r++);else if(a.hasOwnProperty("params")&&a.params){var t=a.params;if(typeof a.params==="object")for(r in t){if(t[r]){var v="params."+r,x=cn(t[r]);c[v]=x;n+=v.length+x.length;if(n>500)break}}else c.params=cn(t)}if(d.length)for(r=0;r=500);r++);navigator.vendor&&!c.hasOwnProperty("vendor")&&(c["device.vendor"]=navigator.vendor);r={message:e,name:f,lineNumber:m,fileName:k,stack:l,params:c,sampleWeight:1};c=Number(a.columnNumber);isNaN(c)||(r.lineNumber= r.lineNumber+":"+c);if(a.level==="IGNORED")a=0;else a:{a=Xm();c=w(a.Ua);for(d=c.next();!d.done;d=c.next())if(d=d.value,r.message&&r.message.match(d.lh)){a=d.weight;break a}a=w(a.Qa);for(c=a.next();!c.done;c=a.next())if(c=c.value,c.callback(r)){a=c.weight;break a}a=1}r.sampleWeight=a;a=w(Sm);for(c=a.next();!c.done;c=a.next())if(c=c.value,c.ic[r.name])for(e=w(c.ic[r.name]),d=e.next();!d.done;d=e.next())if(f=d.value,d=r.message.match(f.regexp)){r.params["params.error.original"]=d[0];e=f.groups;f={}; for(m=0;m0&&(a.headers=b);return a} ;function Gu(){return qg()||(Xc||Yc)&&zo("applewebkit")&&!zo("version")&&(!zo("safari")||zo("gsa/"))||Wc&&zo("version/")?!0:S("EOM_VISITOR_DATA")?!1:!0} ;function Hu(a){a:{var b="EMBEDDED_PLAYER_MODE_UNKNOWN";window.location.hostname.includes("youtubeeducation.com")&&(b="EMBEDDED_PLAYER_MODE_PFL");var c=a.raw_embedded_player_response;if(!c&&(a=a.embedded_player_response))try{c=JSON.parse(a)}catch(e){break a}if(c)b:for(var d in Jl)if(Jl[d]==c.embeddedPlayerMode){b=Jl[d];break b}}return b==="EMBEDDED_PLAYER_MODE_PFL"} ;function Iu(a){Za.call(this,a.message||a.description||a.name);this.isMissing=a instanceof Ju;this.isTimeout=a instanceof Bu&&a.errorCode=="net.timeout";this.isCanceled=a instanceof Ai} z(Iu,Za);Iu.prototype.name="BiscottiError";function Ju(){Za.call(this,"Biscotti ID is missing from server")} z(Ju,Za);Ju.prototype.name="BiscottiMissingError";var zu={format:"RAW",method:"GET",timeout:5E3,withCredentials:!0},Ku=null;function Lu(){if(T("disable_biscotti_fetch_entirely_for_all_web_clients"))return Error("Biscotti id fetching has been disabled entirely.");if(!Gu())return Error("User has not consented - not fetching biscotti id.");var a=S("PLAYER_VARS",{});if(Hg(a)=="1")return Error("Biscotti ID is not available in private embed mode");if(Hu(a))return Error("Biscotti id fetching has been disabled for pfl.")} function Ul(){var a=Lu();if(a!==void 0)return yi(a);Ku||(Ku=yu().then(Mu).pc(function(b){return Nu(2,b)})); return Ku} function Mu(a){a=a.xhr.responseText;if(a.lastIndexOf(")]}'",0)!=0)throw new Ju;a=JSON.parse(a.substr(4));if((a.type||1)>1)throw new Ju;a=a.id;Vl(a);Ku=Du(a);Ou(18E5,2);return a} function Nu(a,b){b=new Iu(b);Vl("");Ku=Eu(b);a>0&&Ou(12E4,a-1);throw b;} function Ou(a,b){xm(function(){yu().then(Mu,function(c){return Nu(b,c)}).pc(ri)},a)} function Pu(){try{var a=E("yt.ads.biscotti.getId_");return a?a():Ul()}catch(b){return yi(b)}} ;var xb=ha(["data-"]);function Qu(a){a&&(a.dataset?a.dataset[Ru()]="true":zb(a))} function Su(a){return a?a.dataset?a.dataset[Ru()]:a.getAttribute("data-loaded"):null} var Tu={};function Ru(){return Tu.loaded||(Tu.loaded="loaded".replace(/\-([a-z])/g,function(a,b){return b.toUpperCase()}))} ;function Uu(a){a=a||{};var b={},c={};this.url=a.url||"";this.args=a.args||Jg(b);this.assets=a.assets||{};this.attrs=a.attrs||Jg(c);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||{}} Uu.prototype.clone=function(){var a=new Uu,b;for(b in this)if(this.hasOwnProperty(b)){var c=this[b];Oa(c)=="object"?a[b]=Jg(c):a[b]=c}return a};var Vu=["share/get_share_panel"],Wu=["share/get_web_player_share_panel"],Xu=["feedback"],Yu=["notification/modify_channel_preference"],Zu=["browse/edit_playlist"],$u=["subscription/subscribe"],av=["subscription/unsubscribe"];var bv=window.yt&&window.yt.msgs_||window.ytcfg&&window.ytcfg.msgs||{};D("yt.msgs_",bv);function cv(a){Wl(bv,arguments)} ;function dv(a,b,c){ev(a,b,c===void 0?null:c)} function fv(a){a=gv(a);var b=document.getElementById(a);b&&(Es(a),b.parentNode.removeChild(b))} function hv(a,b){a&&b&&(a=iv[""+Ra(b)])&&Cs(a)} function ev(a,b,c){c=c===void 0?null:c;var d=gv(a),e=document.getElementById(d),f=e&&Su(e),g=e&&!f;f?b&&b():(b&&(f=As(d,b),iv[""+Ra(b)]=f),g||(e=jv(a,d,function(){Su(e)||(Qu(e),Ds(d),xm(function(){Es(d)},0))},c)))} function jv(a,b,c,d){d=d===void 0?null:d;var e=Qg("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);Hb(e,Al(a));a=document.getElementsByTagName("head")[0]||document.body;a.insertBefore(e,a.firstChild);return e} function gv(a){var b=document.createElement("a");ub(b,a);a=b.href.replace(/^[a-zA-Z]+:\/\//,"//");return"js-"+Vb(a)} var iv={};function kv(a){var b=lv(a),c=document.getElementById(b),d=c&&Su(c);d||c&&!d||(c=mv(a,b,function(){if(!Su(c)){Qu(c);Ds(b);var e=Wa(Es,b);xm(e,0)}}))} function mv(a,b,c){var d=document.createElement("link");d.id=b;d.onload=function(){c&&setTimeout(c,0)}; a=Al(a);Cb(d,a);(document.getElementsByTagName("head")[0]||document.body).appendChild(d);return d} function lv(a){var b=Qg("A");ub(b,new nb(a));a=b.href.replace(/^[a-zA-Z]+:\/\//,"//");return"css-"+Vb(a)} ;function nv(a){var b=B.apply(1,arguments);if(!ov(a)||b.some(function(d){return!ov(d)}))throw Error("Only objects may be merged."); b=w(b);for(var c=b.next();!c.done;c=b.next())pv(a,c.value)} function pv(a,b){for(var c in b)if(ov(b[c])){if(c in a&&!ov(a[c]))throw Error("Cannot merge an object into a non-object.");c in a||(a[c]={});pv(a[c],b[c])}else if(qv(b[c])){if(c in a&&!qv(a[c]))throw Error("Cannot merge an array into a non-array.");c in a||(a[c]=[]);rv(a[c],b[c])}else a[c]=b[c];return a} function rv(a,b){b=w(b);for(var c=b.next();!c.done;c=b.next())c=c.value,ov(c)?a.push(pv({},c)):qv(c)?a.push(rv([],c)):a.push(c);return a} function ov(a){return typeof a==="object"&&!Array.isArray(a)} function qv(a){return typeof a==="object"&&Array.isArray(a)} ;var sv="absolute_experiments app conditional_experiments debugcss debugjs expflag forced_experiments pbj pbjreload sbb spf spfreload sr_bns_address sttick".split(" "); function tv(a,b){var c=c===void 0?!0:c;var d=S("VALID_SESSION_TEMPDATA_DOMAINS",[]),e=Zb(window.location.href);e&&d.push(e);e=Zb(a);if(Ib(d,e)>=0||!e&&a.lastIndexOf("/",0)==0)if(d=document.createElement("a"),ub(d,a),a=d.href)if(a=$b(a),a=ac(a))if(c&&!b.csn&&(b.itct||b.ved)&&(b=Object.assign({csn:vu()},b)),f){var f=parseInt(f,10);isFinite(f)&&f>0&&uv(a,b,f)}else uv(a,b)} function uv(a,b,c){a=vv(a);b=b?cc(b):"";c=c||5;Gu()&&kn(a,b,c)} function vv(a){for(var b=w(sv),c=b.next();!c.done;c=b.next())a=ic(a,c.value);return"ST-"+Vb(a).toString(36)} ;function wv(a){nq.call(this,1,arguments);this.csn=a} z(wv,nq);var wq=new oq("screen-created",wv),xv=[],yv=0,zv=new Map,Av=new Map,Bv=new Map; function Cv(a,b,c,d,e){e=e===void 0?!1:e;for(var f=Dv({cttAuthInfo:xu(b)||void 0},b),g=w(d),h=g.next();!h.done;h=g.next()){h=h.value;var k=h.getAsJson();(Fg(k)||!k.trackingParams&&!k.veType)&&du(Error("Child VE logged with no data"));if(T("no_client_ve_attach_unless_shown")){var l=Ev(h,b);if(k.veType&&!Av.has(l)&&!Bv.has(l)&&!e){if(!T("il_attach_cache_limit")||zv.size<1E3){zv.set(l,[a,b,c,h]);return}T("il_attach_cache_limit")&&zv.size>1E3&&du(new U("IL Attach cache exceeded limit"))}h=Ev(c,b);zv.has(h)? Fv(c,b):Bv.set(h,!0)}}d=d.filter(function(m){m.csn!==b?(m.csn=b,m=!0):m=!1;return m}); c={csn:b,parentVe:c.getAsJson(),childVes:Lb(d,function(m){return m.getAsJson()})}; b==="UNDEFINED_CSN"?Gv("visualElementAttached",f,c):a?Vt("visualElementAttached",c,a,f):to("visualElementAttached",c,f)} function Gv(a,b,c){xv.push({Be:a,payload:c,hh:void 0,options:b});yv||(yv=xq())} function yq(a){if(xv){for(var b=w(xv),c=b.next();!c.done;c=b.next())c=c.value,c.payload&&(c.payload.csn=a.csn,to(c.Be,c.payload,c.options));xv.length=0}yv=0} function Ev(a,b){return""+a.getAsJson().veType+a.getAsJson().veCounter+b} function Fv(a,b){a=Ev(a,b);zv.has(a)&&(b=zv.get(a)||[],Cv(b[0],b[1],b[2],[b[3]],!0),zv.delete(a))} function Dv(a,b){T("log_sequence_info_on_gel_web")&&(a.sequenceGroup=b);return a} ;function Hv(){try{return!!self.localStorage}catch(a){return!1}} ;function Iv(a){a=a.match(/(.*)::.*::.*/);if(a!==null)return a[1]} function Jv(a){if(Hv()){var b=Object.keys(window.localStorage);b=w(b);for(var c=b.next();!c.done;c=b.next()){c=c.value;var d=Iv(c);d===void 0||a.includes(d)||self.localStorage.removeItem(c)}}} function Kv(){if(!Hv())return!1;var a=Cn(),b=Object.keys(window.localStorage);b=w(b);for(var c=b.next();!c.done;c=b.next())if(c=Iv(c.value),c!==void 0&&c!==a)return!0;return!1} ;function Lv(){var a=!1;try{a=!!window.sessionStorage.getItem("session_logininfo")}catch(b){a=!0}return(S("INNERTUBE_CLIENT_NAME")==="WEB"||S("INNERTUBE_CLIENT_NAME")==="WEB_CREATOR")&&a} function Mv(a){if(S("LOGGED_IN",!0)&&Lv()){var b=S("VALID_SESSION_TEMPDATA_DOMAINS",[]);var c=Zb(window.location.href);c&&b.push(c);c=Zb(a);Ib(b,c)>=0||!c&&a.lastIndexOf("/",0)==0?(b=$b(a),(b=ac(b))?(b=vv(b),b=(b=ln(b)||null)?nm(b):{}):b=null):b=null;b==null&&(b={});c=b;var d=void 0;Lv()?(d||(d=S("LOGIN_INFO")),d?(c.session_logininfo=d,c=!0):c=!1):c=!1;c&&tv(a,b)}} ;function Nv(a,b,c){b=b===void 0?{}:b;c=c===void 0?!1:c;var d=S("EVENT_ID");d&&(b.ei||(b.ei=d));b&&tv(a,b);if(c)return!1;Mv(a);var e=e===void 0?{}:e;var f=f===void 0?"":f;var g=g===void 0?window:g;a=dc(a,e);Mv(a);f=a+f;var h=h===void 0?rb:h;a:if(h=h===void 0?rb:h,f instanceof nb)h=f;else{for(a=0;a6E4&&delete ww[e];a&&(a.h=0)},5E3)); return c.count>5?(c.count===6&&Math.random()*1E5<1&&(c=new U("CSI data exceeded logging limit with key",b.split("_")),b.indexOf("plev")>=0||du(c)),!0):!1} ;var Aw=window;function Bw(){this.timing={};this.clearResourceTimings=function(){}; this.webkitClearResourceTimings=function(){}; this.mozClearResourceTimings=function(){}; this.msClearResourceTimings=function(){}; this.oClearResourceTimings=function(){}} function Cw(){var a;if(T("csi_use_performance_navigation_timing")||T("csi_use_performance_navigation_timing_tvhtml5")){var b,c,d,e=Y==null?void 0:(a=Y.getEntriesByType)==null?void 0:(b=a.call(Y,"navigation"))==null?void 0:(c=b[0])==null?void 0:(d=c.toJSON)==null?void 0:d.call(c);e?(e.requestStart=Dw(e.requestStart),e.responseEnd=Dw(e.responseEnd),e.redirectStart=Dw(e.redirectStart),e.redirectEnd=Dw(e.redirectEnd),e.domainLookupEnd=Dw(e.domainLookupEnd),e.connectStart=Dw(e.connectStart),e.connectEnd= Dw(e.connectEnd),e.responseStart=Dw(e.responseStart),e.secureConnectionStart=Dw(e.secureConnectionStart),e.domainLookupStart=Dw(e.domainLookupStart),e.isPerformanceNavigationTiming=!0,a=e):a=Y.timing}else a=T("csi_performance_timing_to_object")?JSON.parse(JSON.stringify(Y.timing)):Y.timing;return a} function Dw(a){return Math.round(Ew()+a)} function Ew(){return(T("csi_use_time_origin")||T("csi_use_time_origin_tvhtml5"))&&Y.timeOrigin?Math.floor(Y.timeOrigin):Y.timing.navigationStart} var Y=Aw.performance||Aw.mozPerformance||Aw.msPerformance||Aw.webkitPerformance||new Bw;var Fw=!1,Gw=!1,Hw={'script[name="scheduler/scheduler"]':"sj",'script[name="player/base"]':"pj",'link[rel="preload"][name="player/embed"]':"pej",'link[rel="stylesheet"][name="www-player"]':"pc",'link[rel="stylesheet"][name="player/www-player"]':"pc",'script[name="desktop_polymer/desktop_polymer"]':"dpj",'link[rel="import"][name="desktop_polymer"]':"dph",'script[name="mobile-c3"]':"mcj",'link[rel="stylesheet"][name="mobile-c3"]':"mcc",'script[name="player-plasma-ias-phone/base"]':"mcppj",'script[name="player-plasma-ias-tablet/base"]':"mcptj", 'link[rel="stylesheet"][name="mobile-polymer-player-ias"]':"mcpc",'link[rel="stylesheet"][name="mobile-polymer-player-svg-ias"]':"mcpsc",'script[name="mobile_blazer_core_mod"]':"mbcj",'link[rel="stylesheet"][name="mobile_blazer_css"]':"mbc",'script[name="mobile_blazer_logged_in_users_mod"]':"mbliuj",'script[name="mobile_blazer_logged_out_users_mod"]':"mblouj",'script[name="mobile_blazer_noncore_mod"]':"mbnj","#player_css":"mbpc",'script[name="mobile_blazer_desktopplayer_mod"]':"mbpj",'link[rel="stylesheet"][name="mobile_blazer_tablet_css"]':"mbtc", 'script[name="mobile_blazer_watch_mod"]':"mbwj"};Va(Y.clearResourceTimings||Y.webkitClearResourceTimings||Y.mozClearResourceTimings||Y.msClearResourceTimings||Y.oClearResourceTimings||ri,Y);function Iw(a,b){if(!T("web_csi_action_sampling_enabled")||!jw(b).actionDisabled){var c=rw(b||"");nv(c.info,a);a.loadType&&(c=a.loadType,lw(b).loadType=c);nv(ow(b),a);c=pw(b);b=jw(b).cttAuthInfo;yw().info(a,c,b)}} function Jw(){var a,b,c,d;return((d=Os().resolve(new Is(cq))==null?void 0:(a=dq())==null?void 0:(b=a.loggingHotConfig)==null?void 0:(c=b.csiConfig)==null?void 0:c.debugTicks)!=null?d:[]).map(function(e){return Object.values(e)[0]})} function Kw(a,b,c){if(!T("web_csi_action_sampling_enabled")||!jw(c).actionDisabled){var d=pw(c),e;if(e=T("web_csi_debug_sample_enabled")&&d){(Os().resolve(new Is(cq))==null?0:dq())&&!Gw&&(Gw=!0,Kw("gcfl",V(),c));var f,g,h;e=(Os().resolve(new Is(cq))==null?void 0:(f=dq())==null?void 0:(g=f.loggingHotConfig)==null?void 0:(h=g.csiConfig)==null?void 0:h.debugSampleWeight)||0;if(f=e!==0)b:{f=Jw();if(f.length>0)for(g=0;gc.duration?d:c},{duration:0}))&&b.startTime>0&&b.responseEnd>0&&(Kw("wffs",Dw(b.startTime)),Kw("wffe",Dw(b.responseEnd)))} function Qw(a){var b=Rw("aft",a);if(b)return b;b=S((a||"")+"TIMING_AFT_KEYS",["ol"]);for(var c=b.length,d=0;d0&&Iw(c);c={isNavigation:!0,actionType:tw[S("TIMING_ACTION")]||"LATENCY_ACTION_UNKNOWN"};var d=S("PREVIOUS_ACTION");d&&(c.previousAction=tw[d]||"LATENCY_ACTION_UNKNOWN");if(d=S("CLIENT_PROTOCOL"))c.httpProtocol=d;if(d=S("CLIENT_TRANSPORT"))c.transportProtocol=d;(d=vu())&&d!=="UNDEFINED_CSN"&&(c.clientScreenNonce=d);d=Mw();if(d===1||d===-1)c.isVisible=!0;lw();kw(); c.loadType="cold";d=kw();var e=Cw(),f=Ew(),g=S("CSI_START_TIMESTAMP_MILLIS",0);g>0&&!T("embeds_web_enable_csi_start_override_killswitch")&&(f=g);f&&(Kw("srt",e.responseStart),d.prerender!==1&&Kw("_start",f,void 0));d=Sw();d>0&&Kw("fpt",d);d=Cw();d.isPerformanceNavigationTiming&&Iw({performanceNavigationTiming:!0},void 0);Kw("nreqs",d.requestStart,void 0);Kw("nress",d.responseStart,void 0);Kw("nrese",d.responseEnd,void 0);d.redirectEnd-d.redirectStart>0&&(Kw("nrs",d.redirectStart,void 0),Kw("nre", d.redirectEnd,void 0));d.domainLookupEnd-d.domainLookupStart>0&&(Kw("ndnss",d.domainLookupStart,void 0),Kw("ndnse",d.domainLookupEnd,void 0));d.connectEnd-d.connectStart>0&&(Kw("ntcps",d.connectStart,void 0),Kw("ntcpe",d.connectEnd,void 0));d.secureConnectionStart>=Ew()&&d.connectEnd-d.secureConnectionStart>0&&(Kw("nstcps",d.secureConnectionStart,void 0),Kw("ntcpe",d.connectEnd,void 0));Y&&"getEntriesByType"in Y&&Pw();d=[];if(document.querySelector&&Y&&Y.getEntriesByName)for(var h in Hw)Hw.hasOwnProperty(h)&& (e=Hw[h],Ow(h,e)&&d.push(e));if(d.length>0)for(c.resourceInfo=[],h=w(d),d=h.next();!d.done;d=h.next())c.resourceInfo.push({resourceCache:d.value});Iw(c);c=nw();c.preLoggedGelInfos||(c.preLoggedGelInfos=[]);h=c.preLoggedGelInfos;c=ow();d=void 0;for(e=0;e-1&&(delete dh["@type"],ea=dh);x&&a.h.has(x)&&a.h.delete(x);((Ur=b.config)==null?0:Ur.Ie)&&Xw(b.config.Ie);if(ea||(Vr=a.i)==null||!Vr.Zg(b.input,b.Na)){ia.F(15);break}return ia.yield(a.i.ih(b.input,b.Na),16);case 16:ea=ia.i;case 15:return hx(a,ea,b),((Wr=b.config)==null?0:Wr.De)&&Xw(b.config.De),d(),ia.return(ea|| void 0)}})} function ex(a,b){a:{a=a.D;var c,d=(c=lt(b,Il))==null?void 0:c.signal;if(d&&a.Qb&&(c=a.Qb[d])){var e=c();break a}var f;if((c=(f=lt(b,Gl))==null?void 0:f.request)&&a.Rd&&(f=a.Rd[c])){e=f();break a}for(e in b)if(a.Vc[e]&&(b=a.Vc[e])){e=b();break a}e=void 0}if(e!==void 0)return Promise.resolve(e)} function fx(a,b){var c,d,e,f,g,h,k;return A(function(l){if(l.h==1){e=(c=a)==null?void 0:(d=c.Ub)==null?void 0:d.sessionIndex;h=((g=lt((f=a)==null?void 0:f.command,Il))==null?void 0:g.signal)==="GET_ACCOUNT_MENU"?!0:!1;var m=l.yield;var n=hn(0,{sessionIndex:e,ed:h});if(!(n instanceof ti)){var r=new ti(ri);ui(r,2,n);n=r}return m.call(l,n,2)}k=l.i;return l.return(Promise.resolve(Object.assign({},Yv(b),k)))})} ;var ix=new Hs("INNERTUBE_TRANSPORT_TOKEN");function jx(){} z(jx,fw);jx.prototype.j=function(){return $u}; jx.prototype.i=function(a){return lt(a,Sl)||void 0}; jx.prototype.h=function(a,b,c){c=c===void 0?{}:c;b.channelIds&&(a.channelIds=b.channelIds);b.siloName&&(a.siloName=b.siloName);b.params&&(a.params=b.params);c.botguardResponse&&(a.botguardResponse=c.botguardResponse);c.feature&&(a.clientFeature=c.feature)}; da.Object.defineProperties(jx.prototype,{o:{configurable:!0,enumerable:!0,get:function(){return!0}}});function kx(){} z(kx,fw);kx.prototype.j=function(){return av}; kx.prototype.i=function(a){return lt(a,Rl)||void 0}; kx.prototype.h=function(a,b){b.channelIds&&(a.channelIds=b.channelIds);b.siloName&&(a.siloName=b.siloName);b.params&&(a.params=b.params)}; da.Object.defineProperties(kx.prototype,{o:{configurable:!0,enumerable:!0,get:function(){return!0}}});var lx=new Hs("SHARE_CLIENT_PARAMS_PROVIDER_TOKEN");function mx(a){this.u=a} z(mx,fw);mx.prototype.j=function(){return Vu}; mx.prototype.i=function(a){return lt(a,Ml)||lt(a,Nl)||lt(a,Ll)}; mx.prototype.h=function(a,b){b.serializedShareEntity&&(a.serializedSharedEntity=b.serializedShareEntity);if(b.clientParamIdentifier){var c;if((c=this.u)==null?0:c.h(b.clientParamIdentifier))a.clientParams=this.u.i(b.clientParamIdentifier)}}; mx[Gs]=[lx];function nx(){} z(nx,fw);nx.prototype.j=function(){return Xu}; nx.prototype.i=function(a){return lt(a,Kl)||void 0}; nx.prototype.h=function(a,b,c){a.feedbackTokens=[];b.feedbackToken&&a.feedbackTokens.push(b.feedbackToken);if(b=b.cpn||c.cpn)a.feedbackContext={cpn:b};a.isFeedbackTokenUnencrypted=!!c.is_feedback_token_unencrypted;a.shouldMerge=!1;c.extra_feedback_tokens&&(a.shouldMerge=!0,a.feedbackTokens=a.feedbackTokens.concat(c.extra_feedback_tokens))}; da.Object.defineProperties(nx.prototype,{o:{configurable:!0,enumerable:!0,get:function(){return!0}}});function ox(){} z(ox,fw);ox.prototype.j=function(){return Yu}; ox.prototype.i=function(a){return lt(a,Ql)||void 0}; ox.prototype.h=function(a,b){b.params&&(a.params=b.params);b.secondaryParams&&(a.secondaryParams=b.secondaryParams)};function px(){} z(px,fw);px.prototype.j=function(){return Zu}; px.prototype.i=function(a){return lt(a,Pl)||void 0}; px.prototype.h=function(a,b){b.actions&&(a.actions=b.actions);b.params&&(a.params=b.params);b.playlistId&&(a.playlistId=b.playlistId)};function qx(){} z(qx,fw);qx.prototype.j=function(){return Wu}; qx.prototype.i=function(a){return lt(a,Ol)}; qx.prototype.h=function(a,b,c){c=c===void 0?{}:c;b.serializedShareEntity&&(a.serializedSharedEntity=b.serializedShareEntity);c.includeListId&&(a.includeListId=!0)};var rx=new Hs("FETCH_FN_TOKEN"),sx=new Hs("PARSE_FN_TOKEN");function tx(a,b){var c=B.apply(2,arguments);a=a===void 0?0:a;U.call(this,b,c);this.errorType=a;Object.setPrototypeOf(this,this.constructor.prototype)} z(tx,U);var ux=new Hs("NETWORK_SLI_TOKEN");function vx(a,b,c){this.h=a;this.i=b;this.j=c} vx.prototype.fetch=function(a,b,c){var d=this,e,f,g;return A(function(h){e=wx(d,a,b);g=(f=d.i)!=null?f:fetch;return h.return(g(e).then(function(k){return d.handleResponse(k,c)}).catch(function(k){du(k); if((c==null?0:c.Xd)&&k instanceof tx&&k.errorType===1)return Promise.reject(k)}))})}; function wx(a,b,c){if(a.h){var d=Xb(Yb(5,ic(b,"key")))||"/UNKNOWN_PATH";a.h.start(d)}a=c;T("wug_networking_gzip_request")&&(a=Vq(c));return new window.Request(b,a)} vx.prototype.handleResponse=function(a,b){var c,d=(c=this.j)!=null?c:JSON.parse;c=a.text().then(function(e){if((b==null?0:b.qe)&&a.ok)return Xf(b.qe,e);e=e.replace(")]}'","");if((b==null?0:b.Xd)&&e)try{var f=d(e)}catch(h){throw new tx(1,"JSON parsing failed after fetch");}var g;return(g=f)!=null?g:d(e)}); a.redirected||a.ok?this.h&&this.h.success():(this.h&&this.h.eh(),c=c.then(function(e){du(new U("Error: API fetch failed",a.status,a.url,e));return Object.assign({},e,{errorMetadata:{status:a.status}})})); return c}; vx[Gs]=[new Is(ux),new Is(rx),new Is(sx)];var xx=new Hs("NETWORK_MANAGER_TOKEN");var yx;function zx(){var a,b,c;return A(function(d){if(d.h==1)return a=Os().resolve(ix),a?d.yield(dx(a),2):(du(Error("InnertubeTransportService unavailable in fetchDatasyncIds")),d.return(void 0));if(b=d.i){if(b.errorMetadata)return du(Error("Datasync IDs fetch responded with "+b.errorMetadata.status+": "+b.error)),d.return(void 0);c=b.bh;return d.return(c)}du(Error("Network request to get Datasync IDs failed."));return d.return(void 0)})} ;function Ax(){var a;return(a=S("WEB_PLAYER_CONTEXT_CONFIGS"))==null?void 0:a.WEB_PLAYER_CONTEXT_CONFIG_ID_EMBEDDED_PLAYER} ;var Bx=C.caches,Cx;function Dx(a){var b=a.indexOf(":");return b===-1?{nd:a}:{nd:a.substring(0,b),datasyncId:a.substring(b+1)}} function Ex(){return A(function(a){if(Cx!==void 0)return a.return(Cx);Cx=new Promise(function(b){var c;return A(function(d){switch(d.h){case 1:return za(d,2),d.yield(Bx.open("test-only"),4);case 4:return d.yield(Bx.delete("test-only"),5);case 5:d.h=3;d.o=0;break;case 2:if(c=Aa(d),c instanceof Error&&c.name==="SecurityError")return b(!1),d.return();case 3:b("caches"in window),d.h=0}})}); return a.return(Cx)})} function Fx(a){var b,c,d,e,f,g,h;A(function(k){if(k.h==1)return k.yield(Ex(),2);if(k.h!=3){if(!k.i)return k.return(!1);b=[];return k.yield(Bx.keys(),3)}c=k.i;d=w(c);for(e=d.next();!e.done;e=d.next())f=e.value,g=Dx(f),h=g.datasyncId,!h||a.includes(h)||b.push(Bx.delete(f));return k.return(Promise.all(b).then(function(l){return l.some(function(m){return m})}))})} function Gx(){var a,b,c,d,e,f,g;return A(function(h){if(h.h==1)return h.yield(Ex(),2);if(h.h!=3){if(!h.i)return h.return(!1);a=Cn("cache contains other");return h.yield(Bx.keys(),3)}b=h.i;c=w(b);for(d=c.next();!d.done;d=c.next())if(e=d.value,f=Dx(e),(g=f.datasyncId)&&g!==a)return h.return(!0);return h.return(!1)})} ;function Hx(){try{return!!self.sessionStorage}catch(a){return!1}} ;function Ix(a){a=a.match(/(.*)::.*::.*/);if(a!==null)return a[1]} function Jx(a){if(Hx()){var b=Object.keys(window.sessionStorage);b=w(b);for(var c=b.next();!c.done;c=b.next()){c=c.value;var d=Ix(c);d===void 0||a.includes(d)||self.sessionStorage.removeItem(c)}}} function Kx(){if(!Hx())return!1;var a=Cn(),b=Object.keys(window.sessionStorage);b=w(b);for(var c=b.next();!c.done;c=b.next())if(c=Ix(c.value),c!==void 0&&c!==a)return!0;return!1} ;function Lx(){zx().then(function(a){a&&(Ip(a),Fx(a),Jv(a),Jx(a))})} function Mx(){var a=new Nr;Lj.pa(function(){var b,c,d,e,f;return A(function(g){switch(g.h){case 1:if(T("ytidb_clear_optimizations_killswitch")){g.F(2);break}b=Cn("clear");if(b.startsWith("V")&&b.endsWith("||")){var h=[b];Ip(h);Fx(h);Jv(h);Jx(h);return g.return()}c=Kv();d=Kx();return g.yield(Gx(),3);case 3:return e=g.i,g.yield(Jp(),4);case 4:if(f=g.i,!(c||d||e||f))return g.return();case 2:a.va()?Lx():a.h.add("publicytnetworkstatus-online",Lx,!0,void 0,void 0),g.h=0}})})} ;function Nx(){this.state=1;this.h=null} p=Nx.prototype;p.initialize=function(a,b,c){if(a.program){var d,e=(d=a.interpreterUrl)!=null?d:null;if(a.interpreterSafeScript){var f=a.interpreterSafeScript;f?((f=f.privateDoNotAccessOrElseSafeScriptWrappedValue)?(d=eb(),f=new Eb(d?d.createScript(f):f)):f=null,d=f):d=null}else d=(f=a.interpreterScript)!=null?f:null;a.interpreterSafeUrl&&(e=zl(a.interpreterSafeUrl).toString());Ox(this,d,e,a.program,b,c)}else du(Error("Cannot initialize botguard without program"))}; function Ox(a,b,c,d,e,f){var g=g===void 0?"trayride":g;c?(a.state=2,dv(c,function(){window[g]?Px(a,d,g,e):(a.state=3,fv(c),du(new U("Unable to load Botguard","from "+c)))},f)):b?(f=Qg("SCRIPT"),b instanceof Eb?Gb(f,b):f.textContent=b,f.nonce=Db(window),document.head.appendChild(f),document.head.removeChild(f),window[g]?Px(a,d,g,e):(a.state=4,du(new U("Unable to load Botguard from JS")))):du(new U("Unable to load VM; no url or JS provided"))} p.isLoading=function(){return this.state===2}; function Px(a,b,c,d){a.state=5;try{var e=new xj({program:b,de:c,Fe:T("att_web_record_metrics"),xe:{wa:"aGIf"}});e.Ye.then(function(){a.state=6;d&&d(b)}); a.Mc(e)}catch(f){a.state=7,f instanceof Error&&du(f)}} p.invoke=function(a){a=a===void 0?{}:a;return this.Pc()?this.Dd({Wc:a}):null}; p.dispose=function(){this.Mc(null);this.state=8}; p.Pc=function(){return!!this.h}; p.Dd=function(a){return this.h.wd(a)}; p.Mc=function(a){tg(this.h);this.h=a};var Qx=[],Rx=!1;function Sx(){if(!T("disable_biscotti_fetch_for_ad_blocker_detection")&&!T("disable_biscotti_fetch_entirely_for_all_web_clients")&&Gu()){var a=S("PLAYER_VARS",{});if(Hg(a)!="1"&&!Hu(a)){var b=function(){Rx=!0;"google_ad_status"in window?am("DCLKSTAT",1):am("DCLKSTAT",2)}; try{dv("//static.doubleclick.net/instream/ad_status.js",b)}catch(c){}Qx.push(Lj.pa(function(){if(!(Rx||"google_ad_status"in window)){try{hv("//static.doubleclick.net/instream/ad_status.js",b)}catch(c){}Rx=!0;am("DCLKSTAT",3)}},5E3))}}} function Tx(){var a=Number(S("DCLKSTAT",0));return isNaN(a)?0:a} ;function Ux(){var a=E("yt.abuse.playerAttLoader");return a&&["bgvma","bgvmb","bgvmc"].every(function(b){return b in a})?a:null} ;function Vx(){Nx.apply(this,arguments)} z(Vx,Nx);Vx.prototype.Mc=function(a){var b;(b=Ux())==null||b.bgvma();a?(b={bgvma:a.dispose.bind(a),bgvmb:a.snapshot.bind(a),bgvmc:a.wd.bind(a)},D("yt.abuse.playerAttLoader",b),D("yt.abuse.playerAttLoaderRun",function(c){return a.snapshot(c)})):(D("yt.abuse.playerAttLoader",null),D("yt.abuse.playerAttLoaderRun",null))}; Vx.prototype.Pc=function(){return!!Ux()}; Vx.prototype.Dd=function(a){return Ux().bgvmc(a)};function Wx(a){Xs.call(this,a===void 0?"document_active":a);var b=this;this.o=10;this.h=new Map;this.transitions=[{from:"document_active",to:"document_disposed_preventable",action:this.H},{from:"document_active",to:"document_disposed",action:this.D},{from:"document_disposed_preventable",to:"document_disposed",action:this.D},{from:"document_disposed_preventable",to:"flush_logs",action:this.u},{from:"document_disposed_preventable",to:"document_active",action:this.i},{from:"document_disposed",to:"flush_logs", action:this.u},{from:"document_disposed",to:"document_active",action:this.i},{from:"document_disposed",to:"document_disposed",action:function(){}}, {from:"flush_logs",to:"document_active",action:this.i}];window.addEventListener("pagehide",function(c){b.transition("document_disposed",{event:c})}); window.addEventListener("beforeunload",function(c){b.transition("document_disposed_preventable",{event:c})})} z(Wx,Xs);Wx.prototype.H=function(a,b){if(!this.h.get("document_disposed_preventable")){a(b==null?void 0:b.event);var c,d;if((b==null?0:(c=b.event)==null?0:c.defaultPrevented)||(b==null?0:(d=b.event)==null?0:d.returnValue)){b.event.returnValue||(b.event.returnValue=!0);b.event.defaultPrevented||b.event.preventDefault();this.h=new Map;this.transition("document_active");return}}this.h.set("document_disposed_preventable",!0);this.h.get("document_disposed")?this.transition("flush_logs"):this.transition("document_disposed")}; Wx.prototype.D=function(a,b){this.h.get("document_disposed")?this.transition("document_active"):(a(b==null?void 0:b.event),this.h.set("document_disposed",!0),this.transition("flush_logs"))}; Wx.prototype.u=function(a,b){a(b==null?void 0:b.event);this.transition("document_active")}; Wx.prototype.i=function(){this.h=new Map};function Xx(a){Xs.call(this,a===void 0?"document_visibility_unknown":a);var b=this;this.transitions=[{from:"document_visibility_unknown",to:"document_visible",action:this.i},{from:"document_visibility_unknown",to:"document_hidden",action:this.h},{from:"document_visibility_unknown",to:"document_foregrounded",action:this.u},{from:"document_visibility_unknown",to:"document_backgrounded",action:this.D},{from:"document_visible",to:"document_hidden",action:this.h},{from:"document_visible",to:"document_foregrounded", action:this.u},{from:"document_visible",to:"document_visible",action:this.i},{from:"document_foregrounded",to:"document_visible",action:this.i},{from:"document_foregrounded",to:"document_hidden",action:this.h},{from:"document_foregrounded",to:"document_foregrounded",action:this.u},{from:"document_hidden",to:"document_visible",action:this.i},{from:"document_hidden",to:"document_backgrounded",action:this.D},{from:"document_hidden",to:"document_hidden",action:this.h},{from:"document_backgrounded",to:"document_hidden", action:this.h},{from:"document_backgrounded",to:"document_backgrounded",action:this.D},{from:"document_backgrounded",to:"document_visible",action:this.i}];document.addEventListener("visibilitychange",function(c){document.visibilityState==="visible"?b.transition("document_visible",{event:c}):b.transition("document_hidden",{event:c})}); T("visibility_lifecycles_dynamic_backgrounding")&&(window.addEventListener("blur",function(c){b.transition("document_backgrounded",{event:c})}),window.addEventListener("focus",function(c){b.transition("document_foregrounded",{event:c})}))} z(Xx,Xs);Xx.prototype.i=function(a,b){a(b==null?void 0:b.event);T("visibility_lifecycles_dynamic_backgrounding")&&this.transition("document_foregrounded")}; Xx.prototype.h=function(a,b){a(b==null?void 0:b.event);T("visibility_lifecycles_dynamic_backgrounding")&&this.transition("document_backgrounded")}; Xx.prototype.D=function(a,b){a(b==null?void 0:b.event)}; Xx.prototype.u=function(a,b){a(b==null?void 0:b.event)};function Yx(){this.o=new Wx;this.D=new Xx} Yx.prototype.install=function(){var a=B.apply(0,arguments),b=this;a.forEach(function(c){b.o.install(c)}); a.forEach(function(c){b.D.install(c)})};function Zx(){this.o=[];this.i=new Map;this.h=new Map;this.j=new Set} Zx.prototype.clickCommand=function(a,b,c){var d=a.clickTrackingParams;c=c===void 0?0:c;if(d)if(c=vu(c===void 0?0:c)){a=this.client;d=new ou({trackingParams:d});var e=void 0;if(T("no_client_ve_attach_unless_shown")){var f=Ev(d,c);Av.set(f,!0);Fv(d,c)}e=e||"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK";f=Dv({cttAuthInfo:xu(c)||void 0},c);d={csn:c,ve:d.getAsJson(),gestureType:e};b&&(d.clientData=b);c==="UNDEFINED_CSN"?Gv("visualElementGestured",f,d):a?Vt("visualElementGestured",d,a,f):to("visualElementGestured", d,f);b=!0}else b=!1;else b=!1;return b}; Zx.prototype.stateChanged=function(a,b,c){this.visualElementStateChanged(new ou({trackingParams:a}),b,c===void 0?0:c)}; Zx.prototype.visualElementStateChanged=function(a,b,c){c=c===void 0?0:c;if(c===0&&this.j.has(c))this.o.push([a,b]);else{var d=c;d=d===void 0?0:d;c=vu(d);a||(a=(a=su(d===void 0?0:d))?new ou({veType:a,youtubeData:void 0,jspbYoutubeData:void 0}):null);var e=a;c&&e&&(a=this.client,d=Dv({cttAuthInfo:xu(c)||void 0},c),b={csn:c,ve:e.getAsJson(),clientData:b},c==="UNDEFINED_CSN"?Gv("visualElementStateChanged",d,b):a?Vt("visualElementStateChanged",b,a,d):to("visualElementStateChanged",b,d))}}; function $x(a,b){if(b===void 0)for(var c=uu(),d=0;d0&&ky(e)){var f=d;if(Qa(f[0])&&!Array.isArray(f[0]))var g=f[0];else switch(g={},e){case "loadVideoById":case "cueVideoById":g=ly(f[0],f[1]!==void 0?Number(f[1]):void 0,f[2]);break;case "loadVideoByUrl":case "cueVideoByUrl":g=f[0];typeof g==="string"&&(g={mediaContentUrl:g, startSeconds:f[1]!==void 0?Number(f[1]):void 0,suggestedQuality:f[2]});c:{if((f=g.mediaContentUrl)&&(f=/\/([ve]|embed)\/([^#?]+)/.exec(f))&&f[2]){f=f[2];break c}f=null}g.videoId=f;g=ly(g);break;case "loadPlaylist":case "cuePlaylist":g=my(f[0],f[1],f[2],f[3])}d.length=1;d[0]=g}b.api.handleExternalCall(e,d,c);ky(e)&&ry(b,oy(b))}}}}; sy.addEventListener("message",this.H);if(a=S("WIDGET_ID"))this.sessionId=a;ty(this,"onReady",function(){b.u=!0;var c=b.api.getVideoData();if(!c.isPlayable){b.W=!0;c=c.errorCode;var d=d===void 0?5:d;b.errorCode=c?iy[c]||d:d;b.sendMessage("onError",Number(b.errorCode))}}); ty(this,"onVideoProgress",this.Te.bind(this));ty(this,"onVolumeChange",this.Ue.bind(this));ty(this,"onApiChange",this.Me.bind(this));ty(this,"onPlaybackQualityChange",this.Qe.bind(this));ty(this,"onPlaybackRateChange",this.Re.bind(this));ty(this,"onStateChange",this.Se.bind(this));ty(this,"onWebglSettingsChanged",this.Ve.bind(this));ty(this,"onCaptionsTrackListChanged",this.Ne.bind(this));ty(this,"captionssettingschanged",this.Oe.bind(this))} z(ny,L);function ry(a,b){a.sendMessage("infoDelivery",b)} p=ny.prototype;p.sendMessage=function(a,b){a={event:a,info:b===void 0?null:b};this.V?py(this,a):this.A.push(a)}; function qy(a,b,c){return function(d){b==="onError"?a.api.logApiCall(b+" invocation",c,d):a.api.logApiCall(b+" invocation",c);a.sendMessage(b,d)}} function ty(a,b,c){a.j.push({eventType:b,listener:c});a.api.addEventListener(b,c)} function oy(a){if(!a.api)return null;var b=a.api.getApiInterface();Ob(b,"getVideoData");for(var c={apiInterface:b},d=0,e=b.length;d=0||this.h[a]||(b=Vy(this,a),this.u&&this.u(a,b)),this.T.subscribe(a,d),a==="onReady"&&this.isReady()&&setTimeout(function(){d(c.api)},0))}; p.removeEventListener=function(a,b){this.da||(b=Ky(this,b))&&this.T.unsubscribe(a,b)}; function Ky(a,b){var c=b;if(typeof b==="string"){if(a.ya[b])return a.ya[b];c=function(){var d=B.apply(0,arguments),e=E(b);if(e)try{e.apply(C,d)}catch(f){throw d=new U("PlayerProxy error when executing callback",{error:f}),d.level="ERROR",d;}}; a.ya[b]=c}return c?c:null} function Vy(a,b){function c(d){function e(){if(!a.da)try{a.T.kb(b,d!=null?d:void 0)}catch(h){var g=new U("PlayerProxy error when creating global callback",{error:h.message,event:b,playerId:a.A,data:d,originalStack:h.stack,componentStack:h.Qd});g.level="WARNING";throw g;}} if(Qy(a,"web_player_publish_events_immediately"))e();else{var f=setTimeout(function(){e();var g=a.I,h=String(f);h in g&&delete g[h]},0); Gg(a.I,String(f))}} return a.h[b]=c} p.getPlayerType=function(){return this.W||(My(this)?"html5":null)}; p.getLastError=function(){return this.lastError}; function Py(a){a.cancel();Fy(a);a.W=null;a.config&&(a.config.loaded=!1);var b=My(a);b&&(Ly(a)||!Sy(a)?a.j=b:(b&&b.destroy&&b.destroy(),a.j=null));if(a.o)for(a=a.o;b=a.firstChild;)a.removeChild(b)} p.cancel=function(){this.H&&hv(Ny(this),this.H);clearTimeout(this.lb);this.V=!1}; p.aa=function(){Py(this);if(this.j&&this.config&&this.j.destroy)try{this.j.destroy()}catch(b){var a=new U("PlayerProxy error during disposal",{error:b});a.level="ERROR";throw a;}this.ya=null;for(a in this.h)this.h.hasOwnProperty(a)&&delete this.h[a];this.Ya=this.config=this.api=null;delete this.o;delete this.i;L.prototype.aa.call(this)}; function Sy(a){var b,c;a=(b=a.config)==null?void 0:(c=b.args)==null?void 0:c.fflags;return!!a&&a.indexOf("player_destroy_old_version=true")!==-1} function Ny(a){return a.webPlayerContextConfig?a.webPlayerContextConfig.jsUrl:(a=a.config.assets)?a.js:""} function Ry(a){return a.webPlayerContextConfig?a.webPlayerContextConfig.cssUrl:(a=a.config.assets)?a.css:""} function Qy(a,b){if(a.webPlayerContextConfig)var c=a.webPlayerContextConfig.serializedExperimentFlags;else{var d;if((d=a.config)==null?0:d.args)c=a.config.args.fflags}return(c||"").split("&").includes(b+"=true")} function Jy(a){for(var b={},c=w(Object.keys(a)),d=c.next();!d.done;d=c.next()){d=d.value;var e=a[d];b[d]=typeof e==="object"?Jg(e):e}return b} ;var Wy={},Xy="player_uid_"+(Math.random()*1E9>>>0);function Yy(a,b){var c="player",d=!1;d=d===void 0?!0:d;c=typeof c==="string"?Pg(c):c;var e=Xy+"_"+Ra(c),f=Wy[e];if(f&&d)return Zy(a,b)?f.api.loadVideoByPlayerVars(a.args||null):f.loadNewVideoConfig(a),f.api;f=new Ey(c,e,a,b,void 0);Wy[e]=f;f.addOnDisposeCallback(function(){delete Wy[f.getId()]}); return f.api} function Zy(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 $y=null,az=null; function bz(){Yw();var a=rn(),b=un(119),c=window.devicePixelRatio>1;if(document.body&&Tj(document.body,"exp-invert-logo"))if(c&&!Tj(document.body,"inverted-hdpi")){var d=document.body;if(d.classList)d.classList.add("inverted-hdpi");else if(!Tj(d,"inverted-hdpi")){var e=Rj(d);Sj(d,e+(e.length>0?" inverted-hdpi":"inverted-hdpi"))}}else!c&&Tj(document.body,"inverted-hdpi")&&Uj();if(b!=c){b="f"+(Math.floor(119/31)+1);d=vn(b)||0;d=c?d|67108864:d&-67108865;d===0?delete on[b]:(c=d.toString(16),on[b]=c.toString()); c=!0;T("web_secure_pref_cookie_killswitch")&&(c=!1);b=a.h;d=[];for(f in on)on.hasOwnProperty(f)&&d.push(f+"="+encodeURIComponent(String(on[f])));var f=d.join("&");kn(b,f,63072E3,a.i,c)}} function cz(){dz()} function ez(){Xw("ep_init_pr");dz()} function dz(){var a=$y.getVideoData(1);a=a.title?a.title+" - YouTube":"YouTube";document.title!==a&&(document.title=a)} function fz(){$y&&$y.sendAbandonmentPing&&$y.sendAbandonmentPing();S("PL_ATT")&&By.dispose();for(var a=Lj,b=0,c=Qx.length;b0){g=!0;break}}if(g){g=!1;e?g=!0:(typeof a==="string"?h=a:ErrorEvent&&a instanceof ErrorEvent?(g=!0,h=a.message,b=a.filename,c=a.lineno,d=a.colno):(h="Unknown error",b="Unknown file",c=0),e=new U(h),e.name="UnhandledWindowError",e.message= h,e.fileName=b,e.lineNumber=c,isNaN(d)?delete e.columnNumber:e.columnNumber=d);if(!T("wiz_enable_component_stack_propagation_killswitch")){a=e;var m;if((m=f)==null||!m.componentStack)if(m=a.Qd)f||(f={}),f.componentStack=Wt(m)}f&&gu(e,f);g?cu(e):du(e)}}; Ji=eu;window.addEventListener("unhandledrejection",function(a){eu(a.reason)}); Jb(S("ERRORS")||[],function(a){cu.apply(null,a)}); am("ERRORS",[]);}).call(this);