(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=Ga(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),Ra=0;function Sa(a,b,c){return a.call.apply(a.bind,arguments)} function Ta(a,b,c){if(!a)throw Error();if(arguments.length>2){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 Ua(a,b,c){Ua=Function.prototype.bind&&Function.prototype.bind.toString().indexOf("native code")!=-1?Sa:Ta;return Ua.apply(null,arguments)} function Va(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 Ya(){return Date.now()} function Za(a){return a} function $a(a,b){function c(){} c.prototype=b.prototype;a.Aa=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 bc(a){var b=a.length;if(b>0){for(var c=Array(b),d=0;db?1:a4);e++)b[lc(a[e])]||(c+="\nInner error "+d++ +": ",a[e].stack&&a[e].stack.indexOf(a[e].toString())==0||(c+=typeof a[e]==="string"?a[e]:a[e].message+"\n"),c+=jc(a[e],b));e>>0;return b} ;var oc=RegExp("^(?:([^:/?#.]+):)?(?://(?:([^\\\\/?#]*)@)?([^\\\\/?#]*?)(?::([0-9]+))?(?=[\\\\/?#]|$))?([^?#]+)?(?:\\?([^#]*))?(?:#([\\s\\S]*))?$");function pc(a){return a?decodeURI(a):a} function qc(a){return pc(a.match(oc)[3]||null)} function rc(a){return pc(a.match(oc)[5]||null)} function sc(a){var b=a.match(oc);a=b[5];var c=b[6];b=b[7];var d="";a&&(d+=a);c&&(d+="?"+c);b&&(d+="#"+b);return d} function tc(a){var b=a.indexOf("#");return b<0?a:a.slice(0,b)} function uc(a,b){if(a){a=a.split("&");for(var c=0;c=0){var f=a[c].substring(0,d);e=a[c].substring(d+1)}else f=a[c];b(f,e?mc(e):"")}}} function vc(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 yc(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(Ac,"$1")} ;function Cc(){try{var a,b;return!!((a=window)==null?0:(b=a.top)==null?0:b.location.href)&&!1}catch(c){return!0}} ;function Dc(a){a&&typeof a.dispose=="function"&&a.dispose()} ;function Ec(a){for(var b=0,c=arguments.length;bb&&c.push(Nc(d,1))}); return c} ;var Pc;function Qc(){I.apply(this,arguments);this.o=1;this[Pc]=this.dispose} v(Qc,I);Qc.prototype.share=function(){if(this.ea)throw Error("E:AD");this.o++;return this}; Qc.prototype.dispose=function(){--this.o||I.prototype.dispose.call(this)}; Pc=Symbol.dispose;function Rc(a){return{fieldType:2,fieldName:a}} function Sc(a){return{fieldType:3,fieldName:a}} ;function Tc(a){this.h=a;a.Mc("/client_streamz/bg/frs",Sc("mk"))} Tc.prototype.record=function(a,b){this.h.record("/client_streamz/bg/frs",a,b)}; function Uc(a){this.h=a;a.Mc("/client_streamz/bg/wrl",Sc("mn"),Rc("ac"),Rc("sc"),Sc("rk"),Sc("mk"))} Uc.prototype.record=function(a,b,c,d,e,f){this.h.record("/client_streamz/bg/wrl",a,b,c,d,e,f)}; function Vc(a){this.h=a;a.Ob("/client_streamz/bg/ec",Sc("en"),Sc("mk"))} Vc.prototype.kb=function(a,b){this.h.Lb("/client_streamz/bg/ec",a,b)}; function Wc(a){this.h=a;a.Mc("/client_streamz/bg/el",Sc("en"),Sc("mk"))} Wc.prototype.record=function(a,b,c){this.h.record("/client_streamz/bg/el",a,b,c)}; function Xc(a){this.h=a;a.Ob("/client_streamz/bg/cec",Rc("ec"),Sc("mk"))} Xc.prototype.kb=function(a,b){this.h.Lb("/client_streamz/bg/cec",a,b)}; function Yc(a){this.h=a;a.Ob("/client_streamz/bg/po/csc",Rc("cs"),Sc("mk"))} Yc.prototype.kb=function(a,b){this.h.Lb("/client_streamz/bg/po/csc",a,b)}; function Zc(a){this.h=a;a.Ob("/client_streamz/bg/po/ctav",Sc("av"),Sc("mk"))} Zc.prototype.kb=function(a,b){this.h.Lb("/client_streamz/bg/po/ctav",a,b)}; function $c(a){this.h=a;a.Ob("/client_streamz/bg/po/cwsc",Sc("su"),Sc("mk"))} $c.prototype.kb=function(a,b){this.h.Lb("/client_streamz/bg/po/cwsc",a,b)};function ad(a){D.setTimeout(function(){throw a;},0)} ;var bd=Ka(610401301),cd=Ka(513659523),dd=Ka(568333945);function ed(){var a=D.navigator;return a&&(a=a.userAgent)?a:""} var fd,gd=D.navigator;fd=gd?gd.userAgentData||null:null;function hd(a){if(!bd||!fd)return!1;for(var b=0;b0:!1} function jd(){return id()?!1:J("Opera")} function kd(){return J("Firefox")||J("FxiOS")} function ld(){return id()?hd("Chromium"):(J("Chrome")||J("CriOS"))&&!(id()?0:J("Edge"))||J("Silk")} ;function md(){return bd?!!fd&&!!fd.platform:!1} function nd(){return J("iPhone")&&!J("iPod")&&!J("iPad")} ;function od(a){od[" "](a);return a} od[" "]=function(){};var pd=jd(),qd=id()?!1:J("Trident")||J("MSIE"),rd=J("Edge"),sd=J("Gecko")&&!(ed().toLowerCase().indexOf("webkit")!=-1&&!J("Edge"))&&!(J("Trident")||J("MSIE"))&&!J("Edge"),td=ed().toLowerCase().indexOf("webkit")!=-1&&!J("Edge");td&&J("Mobile");md()||J("Macintosh");md()||J("Windows");(md()?fd.platform==="Linux":J("Linux"))||md()||J("CrOS");var ud=md()?fd.platform==="Android":J("Android");nd();J("iPad");J("iPod");nd()||J("iPad")||J("iPod");ed().toLowerCase().indexOf("kaios");kd();var vd=nd()||J("iPod"),wd=J("iPad");!J("Android")||ld()||kd()||jd()||J("Silk");ld();var xd=J("Safari")&&!(ld()||(id()?0:J("Coast"))||jd()||(id()?0:J("Edge"))||(id()?hd("Microsoft Edge"):J("Edg/"))||(id()?hd("Opera"):J("OPR"))||kd()||J("Silk")||J("Android"))&&!(nd()||J("iPad")||J("iPod"));var yd={},zd=null;function Ad(a,b){Ma(a);b===void 0&&(b=0);Bd();b=yd[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 Cd(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;Dd(a,function(f){d[e++]=f}); return e!==c?d.subarray(0,e):d} function Dd(a,b){function c(k){for(;d>4);g!=64&&(b(f<<4&240|g>>2),h!=64&&b(g<<6&192|h))}} function Bd(){if(!zd){zd={};for(var a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".split(""),b=["+/=","+/","-_=","-_.","-_"],c=0;c<5;c++){var d=a.concat(b[c].split(""));yd[c]=d;for(var e=0;e=b||(d[a]=c+1,a=Error(),hc(a,"incident"),ad(a))}} ;var Qd=typeof Symbol==="function"&&typeof Symbol()==="symbol";function Rd(a,b,c){return typeof Symbol==="function"&&typeof Symbol()==="symbol"?(c===void 0?0:c)&&Symbol.for&&a?Symbol.for(a):a!=null?Symbol(a):Symbol():b} var Sd=Rd("jas",void 0,!0),Td=Rd(void 0,"1oa"),Ud=Rd(void 0,Symbol()),Vd=Rd(void 0,"0ub"),Wd=Rd(void 0,"0ubs"),Xd=Rd(void 0,"0actk"),Yd=Rd("m_m","ai",!0),Zd=Rd(void 0,"vps"),$d=Rd();Math.max.apply(Math,A(Object.values({rh:1,qh:2,ph:4,uh:8,xh:16,sh:32,Rf:64,nh:128,Wf:256,wh:512,Xf:1024,oh:2048,th:4096})));var ae={Ie:{value:0,configurable:!0,writable:!0,enumerable:!1}},be=Object.defineProperties,K=Qd?Sd:"Ie",ce,de=[];ee(de,7);ce=Object.freeze(de);function fe(a,b){Qd||K in a||be(a,ae);a[K]|=b} function ee(a,b){Qd||K in a||be(a,ae);a[K]=b} ;function ge(){return typeof BigInt==="function"} ;var he={};function ie(a,b){if(b===void 0){if(b=a.h!==je)b=!!(2&(a.F[K]|0));return b}return!!(2&b)&&a.h!==je} var je={},ke=Object.freeze({}),le={};function me(a){a.Vh=!0;return a} ;var ne=me(function(a){return typeof a==="number"}),oe=me(function(a){return typeof a==="string"}),pe=me(function(a){return typeof a==="boolean"}); function qe(){var a=re;return me(function(b){for(var c in a)if(b===a[c]&&!/^[0-9]+$/.test(c))return!0;return!1})} var se=me(function(a){return a!=null&&typeof a==="object"&&typeof a.then==="function"});var te=typeof D.BigInt==="function"&&typeof D.BigInt(0)==="bigint";function ue(a){var b=a;if(oe(b)){if(!/^\s*(?:-?[1-9]\d*|0)?\s*$/.test(b))throw Error(String(b));}else if(ne(b)&&!Number.isSafeInteger(b))throw Error(String(b));return te?BigInt(a):a=pe(a)?a?"1":"0":oe(a)?a.trim()||"0":String(a)} var Ae=me(function(a){return te?a>=ve&&a<=we:a[0]==="-"?xe(a,ye):xe(a,ze)}),ye=Number.MIN_SAFE_INTEGER.toString(),ve=te?BigInt(Number.MIN_SAFE_INTEGER):void 0,ze=Number.MAX_SAFE_INTEGER.toString(),we=te?BigInt(Number.MAX_SAFE_INTEGER):void 0; function xe(a,b){if(a.length>b.length)return!1;if(a.lengthe)return!1;if(d>>0;Be=b;Ce=(a-b)/4294967296>>>0} function Ee(a){if(a<0){De(0-a);var b=y(Fe(Be,Ce));a=b.next().value;b=b.next().value;Be=a>>>0;Ce=b>>>0}else De(a)} function Ge(a,b){b>>>=0;a>>>=0;if(b<=2097151)var c=""+(4294967296*b+a);else ge()?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+He(c)+He(a));return c} function He(a){a=String(a);return"0000000".slice(a.length)+a} function Ie(){var a=Be,b=Ce;b&2147483648?ge()?a=""+(BigInt(b|0)<>>0)):(b=y(Fe(a,b)),a=b.next().value,b=b.next().value,a="-"+Ge(a,b)):a=Ge(a,b);return a} function Fe(a,b){b=~b;a?a=~a+1:b+=1;return[a,b]} ;function Je(a){return Array.prototype.slice.call(a)} ;var Ke=typeof BigInt==="function"?BigInt.asIntN:void 0,Le=Number.isSafeInteger,Me=Number.isFinite,Ne=Math.trunc;function Oe(a){return a.displayName||a.name||"unknown type name"} function Pe(a){if(a!=null&&typeof a!=="boolean")throw Error("Expected boolean but got "+La(a)+": "+a);return a} var Qe=/^-?([1-9][0-9]*|0)(\.[0-9]+)?$/;function Re(a){switch(typeof a){case "bigint":return!0;case "number":return Me(a);case "string":return Qe.test(a);default:return!1}} function Se(a){if(typeof a!=="number")throw Od("int32");if(!Me(a))throw Od("int32");return a|0} function Te(a){return a==null?a:Se(a)} function Ue(a){if(a==null)return a;if(typeof a==="string"&&a)a=+a;else if(typeof a!=="number")return;return Me(a)?a|0:void 0} function Ve(a){var b=0;b=b===void 0?0:b;if(!Re(a))throw Od("int64");var c=typeof a;switch(b){case 512:switch(c){case "string":return We(a);case "bigint":return String(Ke(64,a));default:return Xe(a)}case 1024:switch(c){case "string":return Ye(a);case "bigint":return ue(Ke(64,a));default:return Ze(a)}case 0:switch(c){case "string":return We(a);case "bigint":return ue(Ke(64,a));default:return $e(a)}default:return Hb(b,"Unknown format requested type for int64")}} function af(a){return a==null?a:Ve(a)} function bf(a){var b=a.length;return a[0]==="-"?b<20?!0:b===20&&Number(a.substring(0,7))>-922337:b<19?!0:b===19&&Number(a.substring(0,6))<922337} function cf(a){a.indexOf(".");if(bf(a))return a;if(a.length<16)Ee(Number(a));else if(ge())a=BigInt(a),Be=Number(a&BigInt(4294967295))>>>0,Ce=Number(a>>BigInt(32)&BigInt(4294967295));else{var b=+(a[0]==="-");Ce=Be=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)),Ce*=1E6,Be=Be*1E6+d,Be>=4294967296&&(Ce+=Math.trunc(Be/4294967296),Ce>>>=0,Be>>>=0);b&&(b=y(Fe(Be,Ce)),a=b.next().value,b=b.next().value,Be=a,Ce=b)}return Ie()} function $e(a){Re(a);a=Ne(a);if(!Le(a)){Ee(a);var b=Be,c=Ce;if(a=c&2147483648)b=~b+1>>>0,c=~c>>>0,b==0&&(c=c+1>>>0);var d=c*4294967296+(b>>>0);b=Number.isSafeInteger(d)?d:Ge(b,c);a=typeof b==="number"?a?-b:b:a?"-"+b:b}return a} function Xe(a){Re(a);a=Ne(a);if(Le(a))a=String(a);else{var b=String(a);bf(b)?a=b:(Ee(a),a=Ie())}return a} function We(a){Re(a);var b=Ne(Number(a));if(Le(b))return String(b);b=a.indexOf(".");b!==-1&&(a=a.substring(0,b));return cf(a)} function Ye(a){var b=Ne(Number(a));if(Le(b))return ue(b);b=a.indexOf(".");b!==-1&&(a=a.substring(0,b));return ge()?ue(Ke(64,BigInt(a))):ue(cf(a))} function Ze(a){return Le(a)?ue($e(a)):ue(Xe(a))} function df(a){if(typeof a!=="string")throw Error();return a} function ef(a){if(a!=null&&typeof a!=="string")throw Error();return a} function ff(a){return a==null||typeof a==="string"?a:void 0} function gf(a,b){if(!(a instanceof b))throw Error("Expected instanceof "+Oe(b)+" but got "+(a&&Oe(a.constructor)));} function hf(a,b,c){if(a!=null&&a[Yd]===he)return a;if(Array.isArray(a)){var d=a[K]|0;c=d|c&32|c&2;c!==d&&ee(a,c);return new b(a)}} ;var jf={};function kf(a){return a} ;var lf={ki:!0};function mf(a,b,c,d){var e=d!==void 0;d=!!d;var f=Za(Ud),g;!e&&Qd&&f&&(g=a[f])&&g.Sh(nf);f=[];var h=a.length;g=4294967295;var k=!1,l=!!(b&64),m=l?b&128?0:-1:void 0;if(!(b&1)){var n=h&&a[h-1];n!=null&&typeof n==="object"&&n.constructor===Object?(h--,g=h):n=void 0;if(l&&!(b&128)&&!e){k=!0;var r;g=((r=of)!=null?r:kf)(g-m,m,a,n)+m}}b=void 0;for(e=0;e=g){var t=e-m,w=void 0;((w=b)!=null?w:b={})[t]=r}else f[e]=r;if(n)for(var x in n)a=n[x],a!=null&&(a=c(a, d))!=null&&(h=+x,e=void 0,l&&!Number.isNaN(h)&&(e=h+m)=1024)throw Error("pvtlmt");for(var k in h)f=+k,f1024)throw Error("spvt");e=e&-8380417|(k&1023)<<13}}}e|=64;d===0&&(e|=2048);ee(a,e);return a} function sf(){Pd(Xd,5)} ;function tf(a,b){if(typeof a!=="object")return a;if(Array.isArray(a)){var c=a[K]|0;a.length===0&&c&1?a=void 0:c&2||(!b||4096&c||16&c?a=uf(a,c,!1,b&&!(c&16)):(fe(a,34),c&4&&Object.freeze(a)));return a}if(a!=null&&a[Yd]===he)return b=a.F,c=b[K]|0,ie(a,c)?a:uf(b,c);if(a instanceof Kd)return a} function uf(a,b,c,d){d!=null||(d=!!(34&b));a=mf(a,b,tf,d);d=32;c&&(d|=2);b=b&8380609|d;ee(a,b);return a} function vf(a){var b=a.F,c=b[K]|0;return ie(a,c)?new a.constructor(uf(b,c,!1)):a} function wf(a){if(a.h!==je)return!1;var b=a.F;b=uf(b,b[K]|0);fe(b,2048);a.F=b;a.h=void 0;a.i=void 0;return!0} function xf(a){if(!wf(a)&&ie(a,a.F[K]|0))throw Error();} ;var yf=ue(0),zf={};function Af(a,b,c,d){Object.isExtensible(a);b=Bf(a.F,b,c);if(b!==null||d&&a.i!==je)return b} function Bf(a,b,c,d){if(b===-1)return null;var e=b+(c?0:-1),f=a.length-1;if(!(f<1+(c?0:-1))){if(e>=f){var g=a[f];if(g!=null&&typeof g==="object"&&g.constructor===Object){c=g[b];var h=!0}else if(e===f)c=g;else return}else c=a[e];if(d&&c!=null){d=d(c);if(d==null)return d;if(!Object.is(d,c))return h?g[b]=d:a[e]=d,d}return c}} function Cf(a,b,c,d){xf(a);var e=a.F;Df(e,e[K]|0,b,c,d);return a} function Df(a,b,c,d,e){var f=c+(e?0:-1),g=a.length-1;if(g>=1+(e?0:-1)&&f>=g){var h=a[g];if(h!=null&&typeof h==="object"&&h.constructor===Object)return h[c]=d,b}if(f<=g)return a[f]=d,b;if(d!==void 0){var k;g=((k=b)!=null?k:b=a[K]|0)>>13&1023||536870912;c>=g?d!=null&&(f={},a[g+(e?0:-1)]=(f[c]=d,f)):a[f]=d}return b} function Ef(a){return!!(2&a)&&!!(4&a)||!!(256&a)} function Ff(a,b,c){xf(a);var d=a.F,e=d[K]|0;if(b==null)return Df(d,e,3),a;if(!Array.isArray(b))throw Od();var f=b===ce?7:b[K]|0,g=f,h=Ef(f),k=h||Object.isFrozen(b);h||(f=0);k||(b=Je(b),g=0,f=Gf(f,e),k=!1);f|=5;h=4&f?512&f?512:1024&f?1024:0:void 0;h=h!=null?h:0;for(var l=0;l>>31)&4294967295;n=e[0];var w=e[1],x=e[2],z=e[3],G=e[4];for(t=0;t<80;t++){if(t<40)if(t<20){var H=z^w&(x^z);var S=1518500249}else H=w^x^z,S=1859775393;else t<60?(H=w&x|z&(w|x),S=2400959708):(H=w^x^z,S=3395469782);H=((n<<5|n>>>27)&4294967295)+H+G+S+r[t]&4294967295;G=z;z=x;x=(w<<30|w>>>2)&4294967295;w=n;n=H}e[0]=e[0]+n&4294967295;e[1]=e[1]+w&4294967295;e[2]= e[2]+x&4294967295;e[3]=e[3]+z&4294967295;e[4]=e[4]+G&4294967295} function c(n,r){if(typeof n==="string"){n=unescape(encodeURIComponent(n));for(var t=[],w=0,x=n.length;w=56;t--)f[t]=r&255,r>>>=8;b(f);for(t=r=0;t<5;t++)for(var w=24;w>=0;w-=8)n[r++]=e[t]>>w&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,ne:function(){for(var n=d(),r="",t=0;t=0;b--)this.remove(a[b])}; function ng(a){a=(a.h.cookie||"").split(";");for(var b=[],c=[],d,e,f=0;f0?d:void 0));d=Cf(d,4,Te(f>0?f:void 0));d=Cf(d,5,Te(g>0?g:void 0));f=d.F;g=f[K]|0;d=ie(d,g)?d:new d.constructor(uf(f,g,!0));Mf(h,Rg,10,d)}a=a.h.clone();h=Date.now().toString();a=Cf(a,4,af(h));b=b.slice();b=Nf(a,dh,3,b);e&&(a=new vg,e=Cf(a,13,Te(e)),a=new wg,e=Mf(a,vg,2,e),a=new ch,e=Mf(a,wg,1,e),e= Tf(e,2,9),Mf(b,ch,18,e));c&&Cf(b,14,af(c));return b} ;var lh=function(){if(!D.addEventListener||!Object.defineProperty)return!1;var a=!1,b=Object.defineProperty({},"passive",{get:function(){a=!0}}); try{var c=function(){}; D.addEventListener("test",c,b);D.removeEventListener("test",c,b)}catch(d){}return a}();function mh(a){this.h=this.i=this.j=a} mh.prototype.reset=function(){this.h=this.i=this.j}; mh.prototype.getValue=function(){return this.i};function Wf(a){this.F=L(a,8)} v(Wf,M);var nh=Yf(Wf);function Xf(a){this.F=L(a)} v(Xf,M);var oh;oh=new Vf;function ph(a){I.call(this);var b=this;this.componentId="";this.h=[];this.Ra="";this.pageId=null;this.fb=this.ma=-1;this.G=this.experimentIds=null;this.A=this.o=0;this.U=null;this.Z=this.ha=0;this.Mb=1;this.timeoutMillis=0;this.xa=!1;this.logSource=a.logSource;this.zb=a.zb||function(){}; this.j=new fh(a.logSource,a.Oa);this.network=a.network||null;this.ob=a.ob||null;this.bufferSize=1E3;this.P=a.Df||null;this.sessionIndex=a.sessionIndex||null;this.Sb=a.Sb||!1;this.logger=null;this.withCredentials=!a.vd;this.Oa=a.Oa||!1;this.Y=!this.Oa&&!!window&&!!window.navigator&&window.navigator.sendBeacon!==void 0;this.Qa=typeof URLSearchParams!=="undefined"&&!!(new URL(qh())).searchParams&&!!(new URL(qh())).searchParams.set;var c=bh(new ah);gh(this.j,c);this.u=new mh(1E4);a=rh(this,a.rd);this.i= new ug(this.u.getValue(),a);this.Fa=new ug(6E5,a);this.Sb||this.Fa.start();this.Oa||(document.addEventListener("visibilitychange",function(){if(document.visibilityState==="hidden"){th(b);var d;(d=b.U)==null||d.flush()}}),document.addEventListener("pagehide",function(){th(b); var d;(d=b.U)==null||d.flush()}))} v(ph,I);function rh(a,b){return a.Qa?b?function(){b().then(function(){a.flush()})}:function(){a.flush()}:function(){}} ph.prototype.ba=function(){th(this);this.i.stop();this.Fa.stop();I.prototype.ba.call(this)}; function uh(a){a.P||(a.P=qh());try{return(new URL(a.P)).toString()}catch(b){return(new URL(a.P,window.location.origin)).toString()}} function vh(a,b,c){a.U&&a.U.kb(b,c)} ph.prototype.log=function(a){vh(this,2,1);if(this.Qa){a=a.clone();var b=this.Mb++;a=Cf(a,21,af(b));this.componentId&&Rf(a,26,this.componentId);b=a;var c=Af(b,1);var d=d===void 0?!1:d;var e=typeof c;d=c==null?c:e==="bigint"?String(Ke(64,c)):Re(c)?e==="string"?We(c):d?Xe(c):$e(c):void 0;d==null&&(d=Date.now(),d=Number.isFinite(d)?d.toString():"0",Cf(b,1,af(d)));d=Af(b,15);d!=null&&(typeof d==="bigint"?Ae(d)?d=Number(d):(d=Ke(64,d),d=Ae(d)?Number(d):String(d)):d=Re(d)?typeof d==="number"?$e(d):We(d): void 0);d==null&&Cf(b,15,af((new Date).getTimezoneOffset()*60));this.experimentIds&&(d=this.experimentIds.clone(),Mf(b,tg,16,d));vh(this,1,1);b=this.h.length-this.bufferSize+1;b>0&&(this.h.splice(0,b),this.o+=b,vh(this,3,b));this.h.push(a);this.Sb||this.i.enabled||this.i.start()}}; ph.prototype.flush=function(a,b){var c=this;if(this.h.length===0)a&&a();else if(this.xa&&this.Y)this.j.i=3,wh(this);else{var d=Date.now();if(this.fb>d&&this.ma0&&(c.ma=Date.now(),c.fb=c.ma+r);r=Za(Ud);var x;Qd&&r&&((x=t.F[r])==null?void 0:x[175237375])!=null&&Pd(Vd,3);a:{var z=z===void 0?!1:z;if(Za($d)&&Za(Ud)&&void 0===$d){x=t.F;r=x[Ud];if(!r)break a;if(r=r.li)try{r(x,175237375,lf);break a}catch(G){ad(G)}}z&&(z=t.F,(x=Za(Ud))&& x in z&&(z=z[x])&&delete z[175237375])}z=oh.ctor?oh.h(t,oh.ctor,175237375,oh.i):oh.h(t,175237375,null,oh.i);if(z=z===null?void 0:z)z=Nc(z,1,-1),z!==-1&&(c.u=new mh(z<1?1:z),c.i.setInterval(c.u.getValue()))}}a&&a();c.A=0},m=function(r,t){var w=Lc(f,dh,3); var x=Number(Of(f,14)),z=c.u;z.h=Math.min(3E5,z.h*2);z.i=Math.min(3E5,z.h+Math.round(.1*(Math.random()-.5)*2*z.h));c.i.setInterval(c.u.getValue());r===401&&g&&(c.Ra=g);x&&(c.o+=x);t===void 0&&(t=c.isRetryable(r));t&&(c.h=w.concat(c.h),c.Sb||c.i.enabled||c.i.start());vh(c,7,1);b&&b("net-send-failed",r);++c.A},n=function(){c.network&&c.network.send(k,l,m)}; h?h.then(function(r){vh(c,5,e);k.Hc["Content-Encoding"]="gzip";k.Hc["Content-Type"]="application/binary";k.body=r;k.ge=2;n()},function(){vh(c,6,e); n()}):n()}}}}; function xh(a,b,c){c=c===void 0?null:c;var d=d===void 0?a.withCredentials:d;var e={},f=new URL(uh(a));c&&(e.Authorization=c);a.sessionIndex&&(e["X-Goog-AuthUser"]=a.sessionIndex,f.searchParams.set("authuser",a.sessionIndex));a.pageId&&(Object.defineProperty(e,"X-Goog-PageId",{value:a.pageId}),f.searchParams.set("pageId",a.pageId));return{url:f.toString(),body:b,ge:1,Hc:e,requestType:"POST",withCredentials:d,timeoutMillis:a.timeoutMillis}} function th(a){a.j.isFinal=!0;a.flush();a.j.isFinal=!1} function wh(a){yh(a,function(b,c){b=new URL(b);b.searchParams.set("format","json");var d=!1;try{d=window.navigator.sendBeacon(b.toString(),c.serialize())}catch(e){}d||(a.Y=!1);return d})} function yh(a,b){if(a.h.length!==0){var c=new URL(uh(a));c.searchParams.delete("format");var d=a.zb();d&&c.searchParams.set("auth",d);c.searchParams.set("authuser",a.sessionIndex||"0");for(d=0;d<10&&a.h.length;++d){var e=a.h.slice(0,32),f=kh(a.j,e,a.o,a.A,a.ob,a.ha,a.Z);if(!b(c.toString(),f)){++a.A;break}a.o=0;a.A=0;a.ha=0;a.Z=0;a.h=a.h.slice(e.length)}a.i.enabled&&a.i.stop()}} ph.prototype.isRetryable=function(a){return 500<=a&&a<600||a===401||a===0}; function qh(){return"https://play.google.com/log?format=json&hasfast=true"} ;function zh(){this.Zd=typeof AbortController!=="undefined"} zh.prototype.send=function(a,b,c){var d=this,e,f,g,h,k,l,m,n,r,t;return B(function(w){switch(w.h){case 1:return f=(e=d.Zd?new AbortController:void 0)?setTimeout(function(){e.abort()},a.timeoutMillis):void 0,va(w,2,3),g=Object.assign({},{method:a.requestType, headers:Object.assign({},a.Hc)},a.body&&{body:a.body},a.withCredentials&&{credentials:"include"},{signal:a.timeoutMillis&&e?e.signal:null}),w.yield(fetch(a.url,g),5);case 5:h=w.i;if(h.status!==200){(k=c)==null||k(h.status);w.B(3);break}if((l=b)==null){w.B(7);break}return w.yield(h.text(),8);case 8:l(w.i);case 7:case 3:w.P=[w.j];w.H=0;w.o=0;clearTimeout(f);ya(w);break;case 2:m=xa(w);switch((n=m)==null?void 0:n.name){case "AbortError":(r=c)==null||r(408);break;default:(t=c)==null||t(400)}w.B(3)}})}; zh.prototype.vc=function(){return 4};function Ah(a,b){b=b===void 0?"0":b;I.call(this);this.logSource=a;this.sessionIndex=b;this.Va="https://play.google.com/log?format=json&hasfast=true";this.i=null;this.o=!1;this.network=null;this.componentId="";this.h=this.ob=null;this.j=!1;this.pageId=null;this.bufferSize=void 0} v(Ah,I);function Bh(a,b){a.i=b;return a} function Ch(a,b){a.network=b;return a} function Dh(a,b){a.h=b} function Eh(a){a.j=!0;return a} Ah.prototype.vd=function(){this.u=!0;return this}; function Fh(a){a.network||(a.network=new zh);var b=new ph({logSource:a.logSource,zb:a.zb?a.zb:rg,sessionIndex:a.sessionIndex,Df:a.Va,Oa:a.o,Sb:!1,vd:a.u,rd:a.rd,network:a.network});Fc(a,b);if(a.i){var c=a.i,d=hh(b.j);Rf(d,7,c)}b.G=new sg;a.componentId&&(b.componentId=a.componentId);a.ob&&(b.ob=a.ob);a.pageId&&(b.pageId=a.pageId);a.h&&((d=a.h)?(b.experimentIds||(b.experimentIds=new tg),c=b.experimentIds,d=d.serialize(),Rf(c,4,d)):b.experimentIds&&Cf(b.experimentIds,4));a.j&&(b.xa=b.Y);jh(b.j);a.bufferSize&& (b.bufferSize=a.bufferSize);a.network.cc&&a.network.cc(a.logSource);a.network.sf&&a.network.sf(b);return b} ;function Gh(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;I.call(this);this.logSource=a;this.componentId=b;f?b=f:(a=new Ah(a,"0"),a.componentId=b,Fc(this,a),c!==""&&(a.Va=c),d&&(a.o=!0),e&&Bh(a,e),g&&Ch(a,g),b=Fh(a));this.h=b} v(Gh,I); Gh.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.lc=!1)):(b=new Rh(b,this.src,f,!!d,e),b.lc=c,a.push(b));return b}; Th.prototype.remove=function(a,b,c,d){a=a.toString();if(!(a in this.listeners))return!1;var e=this.listeners[a];b=Uh(e,b,c,d);return b>-1?(Sh(e[b]),Array.prototype.splice.call(e,b,1),e.length==0&&(delete this.listeners[a],this.h--),!0):!1}; function Vh(a,b){var c=b.type;c in a.listeners&&ac(a.listeners[c],b)&&(Sh(b),a.listeners[c].length==0&&(delete a.listeners[c],a.h--))} function Uh(a,b,c,d){for(var e=0;e-1?b[a]:null)&&ii(c))} function ii(a){if(typeof a!=="number"&&a&&!a.ac){var b=a.src;if(b&&b[Ph])Vh(b.i,a);else{var c=a.type,d=a.proxy;b.removeEventListener?b.removeEventListener(c,d,a.capture):b.detachEvent?b.detachEvent(ei(c),d):b.addListener&&b.removeListener&&b.removeListener(d);Yh--;(c=ci(b))?(Vh(c,a),c.h==0&&(c.src=null,b[Wh]=null)):Sh(a)}}} function ei(a){return a in Xh?Xh[a]:Xh[a]="on"+a} function fi(a,b){if(a.ac)a=!0;else{b=new Oh(b,this);var c=a.listener,d=a.xc||a.src;a.lc&&ii(a);a=c.call(d,b)}return a} function ci(a){a=a[Wh];return a instanceof Th?a:null} var ji="__closure_events_fn_"+(Math.random()*1E9>>>0);function ai(a){if(typeof a==="function")return a;a[ji]||(a[ji]=function(b){return a.handleEvent(b)}); return a[ji]} ;function ki(){I.call(this);this.i=new Th(this);this.xa=this;this.Z=null} $a(ki,I);ki.prototype[Ph]=!0;p=ki.prototype;p.addEventListener=function(a,b,c,d){Zh(this,a,b,c,d)}; p.removeEventListener=function(a,b,c,d){hi(this,a,b,c,d)}; function li(a,b){var c=a.Z;if(c){var d=[];for(var e=1;c;c=c.Z)d.push(c),++e}a=a.xa;c=b.type||b;typeof b==="string"?b=new Nh(b,a):b instanceof Nh?b.target=b.target||a:(e=b,b=new Nh(c,a),Kg(b,e));e=!0;var f;if(d)for(f=d.length-1;!b.j&&f>=0;f--){var g=b.h=d[f];e=mi(g,c,!0,b)&&e}b.j||(g=b.h=a,e=mi(g,c,!0,b)&&e,b.j||(e=mi(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 pi(a,b){a.o(b);a.i<100&&(a.i++,b.next=a.h,a.h=b)} ;function qi(){this.i=this.h=null} qi.prototype.add=function(a,b){var c=ri.get();c.set(a,b);this.i?this.i.next=c:this.h=c;this.i=c}; qi.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 ri=new oi(function(){return new si},function(a){return a.reset()}); function si(){this.next=this.scope=this.h=null} si.prototype.set=function(a,b){this.h=a;this.scope=b;this.next=null}; si.prototype.reset=function(){this.next=this.scope=this.h=null};var ti,ui=!1,vi=new qi;function wi(a,b){ti||xi();ui||(ti(),ui=!0);vi.add(a,b)} function xi(){var a=Promise.resolve(void 0);ti=function(){a.then(yi)}} function yi(){for(var a;a=vi.remove();){try{a.h.call(a.scope)}catch(b){ad(b)}pi(ri,a)}ui=!1} ;function zi(){} function Ai(a){var b=!1,c;return function(){b||(c=a(),b=!0);return c}} ;function Bi(a){this.X=0;this.bb=void 0;this.wb=this.Ta=this.parent_=null;this.wc=this.Pc=!1;if(a!=zi)try{var b=this;a.call(void 0,function(c){Ci(b,2,c)},function(c){Ci(b,3,c)})}catch(c){Ci(this,3,c)}} function Di(){this.next=this.context=this.h=this.i=this.child=null;this.j=!1} Di.prototype.reset=function(){this.context=this.h=this.i=this.child=null;this.j=!1}; var Ei=new oi(function(){return new Di},function(a){a.reset()}); function Fi(a,b,c){var d=Ei.get();d.i=a;d.h=b;d.context=c;return d} function Gi(a){return new Bi(function(b,c){c(a)})} Bi.prototype.then=function(a,b,c){return Hi(this,ni(typeof a==="function"?a:null),ni(typeof b==="function"?b:null),c)}; Bi.prototype.$goog_Thenable=!0;function Ii(a,b,c,d){Ji(a,Fi(b||zi,c||null,d))} p=Bi.prototype;p.finally=function(a){var b=this;a=ni(a);return new Promise(function(c,d){Ii(b,function(e){a();c(e)},function(e){a(); d(e)})})}; p.Jc=function(a,b){return Hi(this,null,ni(a),b)}; p.catch=Bi.prototype.Jc;p.cancel=function(a){if(this.X==0){var b=new Ki(a);wi(function(){Li(this,b)},this)}}; function Li(a,b){if(a.X==0)if(a.parent_){var c=a.parent_;if(c.Ta){for(var d=0,e=null,f=null,g=c.Ta;g&&(g.j||(d++,g.child==a&&(e=g),!(e&&d>1)));g=g.next)e||(f=g);e&&(c.X==0&&d==1?Li(c,b):(f?(d=f,d.next==c.wb&&(c.wb=d),d.next=d.next.next):Mi(c),Ni(c,e,3,b)))}a.parent_=null}else Ci(a,3,b)} function Ji(a,b){a.Ta||a.X!=2&&a.X!=3||Oi(a);a.wb?a.wb.next=b:a.Ta=b;a.wb=b} function Hi(a,b,c,d){var e=Fi(null,null,null);e.child=new Bi(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 Ki?g(h):f(k)}catch(l){g(l)}}:g}); e.child.parent_=a;Ji(a,e);return e.child} p.Bf=function(a){this.X=0;Ci(this,2,a)}; p.Cf=function(a){this.X=0;Ci(this,3,a)}; function Ci(a,b,c){if(a.X==0){a===c&&(b=3,c=new TypeError("Promise cannot resolve to itself"));a.X=1;a:{var d=c,e=a.Bf,f=a.Cf;if(d instanceof Bi){Ii(d,e,f,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(Oa(d))try{var k=d.then;if(typeof k==="function"){Pi(d,k,e,f,a);g=!0;break a}}catch(l){f.call(a,l);g=!0;break a}g=!1}}}g||(a.bb=c,a.X=b,a.parent_=null,Oi(a),b!=3||c instanceof Ki||Qi(a,c))}} function Pi(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 Oi(a){a.Pc||(a.Pc=!0,wi(a.te,a))} function Mi(a){var b=null;a.Ta&&(b=a.Ta,a.Ta=b.next,b.next=null);a.Ta||(a.wb=null);return b} p.te=function(){for(var a;a=Mi(this);)Ni(this,a,this.X,this.bb);this.Pc=!1}; function Ni(a,b,c,d){if(c==3&&b.h&&!b.j)for(;a&&a.wc;a=a.parent_)a.wc=!1;if(b.child)b.child.parent_=null,Ri(b,c,d);else try{b.j?b.i.call(b.context):Ri(b,c,d)}catch(e){Si.call(null,e)}pi(Ei,b)} function Ri(a,b,c){b==2?a.i.call(a.context,c):a.h&&a.h.call(a.context,c)} function Qi(a,b){a.wc=!0;wi(function(){a.wc&&Si.call(null,b)})} var Si=ad;function Ki(a){jb.call(this,a)} $a(Ki,jb);Ki.prototype.name="cancel";function Ti(a,b){ki.call(this);this.j=a||1;this.h=b||D;this.o=Ua(this.yf,this);this.u=Ya()} $a(Ti,ki);p=Ti.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.yf=function(){if(this.enabled){var a=Ya()-this.u;a>0&&a=a.o&&a.ec()} p.ec=function(){var a=this.i.values();a=[].concat(A(a)).filter(function(b){return b.h.size}); a.length&&this.G.flush(a,this.u);Wi(a);this.j=0;this.h.enabled&&this.h.stop()}; p.Ob=function(a){var b=C.apply(1,arguments);this.i.has(a)||this.i.set(a,new Lh(a,b))}; p.Mc=function(a){var b=C.apply(1,arguments);this.i.has(a)||this.i.set(a,new Mh(a,b))}; function Xi(a,b){return a.A.has(b)?void 0:a.i.get(b)} p.Lb=function(a){this.Yd(a,1,C.apply(1,arguments))}; p.Yd=function(a,b){var c=C.apply(2,arguments),d=Xi(this,a);d&&d instanceof Lh&&(d.j(b,c),Vi(this))}; p.record=function(a,b){var c=C.apply(2,arguments),d=Xi(this,a);d&&d instanceof Mh&&(d.record(b,c),Vi(this))}; function Wi(a){for(var b=0;b=0)||d||e||c.set("Content-Type","application/x-www-form-urlencoded;charset=utf-8");b=y(c);for(d=b.next();!d.done;d=b.next())c=y(d.value),d=c.next().value,c=c.next().value,this.K.setRequestHeader(d,c);this.ma&&(this.K.responseType=this.ma);"withCredentials"in this.K&&this.K.withCredentials!==this.ha&&(this.K.withCredentials=this.ha);try{this.u&&(clearTimeout(this.u),this.u=null),this.G>0&&(this.getStatus(),this.u=setTimeout(this.Af.bind(this),this.G)), this.getStatus(),this.A=!0,this.K.send(a),this.A=!1}catch(g){this.getStatus(),hj(this,g)}}; p.Af=function(){typeof Ha!="undefined"&&this.K&&(this.o="Timed out after "+this.G+"ms, aborting",this.getStatus(),li(this,"timeout"),this.abort(8))}; function hj(a,b){a.h=!1;a.K&&(a.j=!0,a.K.abort(),a.j=!1);a.o=b;ij(a);jj(a)} function ij(a){a.P||(a.P=!0,li(a,"complete"),li(a,"error"))} p.abort=function(){this.K&&this.h&&(this.getStatus(),this.h=!1,this.j=!0,this.K.abort(),this.j=!1,li(this,"complete"),li(this,"abort"),jj(this))}; p.ba=function(){this.K&&(this.h&&(this.h=!1,this.j=!0,this.K.abort(),this.j=!1),jj(this,!0));cj.Aa.ba.call(this)}; p.Gd=function(){this.ea||(this.U||this.A||this.j?kj(this):this.Re())}; p.Re=function(){kj(this)}; function kj(a){if(a.h&&typeof Ha!="undefined")if(a.A&&(a.K?a.K.readyState:0)==4)setTimeout(a.Gd.bind(a),0);else if(li(a,"readystatechange"),a.isComplete()){a.getStatus();a.h=!1;try{if(lj(a))li(a,"complete"),li(a,"success");else{try{var b=(a.K?a.K.readyState:0)>2?a.K.statusText:""}catch(c){b=""}a.o=b+" ["+a.getStatus()+"]";ij(a)}}finally{jj(a)}}} function jj(a,b){if(a.K){a.u&&(clearTimeout(a.u),a.u=null);var c=a.K;a.K=null;b||li(a,"ready");try{c.onreadystatechange=null}catch(d){}}} p.isActive=function(){return!!this.K}; p.isComplete=function(){return(this.K?this.K.readyState:0)==4}; function lj(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=String(a.Y).match(oc)[1]||null,!a&&D.self&&D.self.location&&(a=D.self.location.protocol.slice(0,-1)),b=!dj.test(a?a.toLowerCase():"");c=b}return c} p.getStatus=function(){try{return(this.K?this.K.readyState:0)>2?this.K.status:-1}catch(a){return-1}}; p.getLastError=function(){return typeof this.o==="string"?this.o:String(this.o)};function mj(){} mj.prototype.send=function(a,b,c){b=b===void 0?function(){}:b; c=c===void 0?function(){}:c; gj(a.url,function(d){d=d.target;if(lj(d)){try{var e=d.K?d.K.responseText:""}catch(f){e=""}b(e)}else c(d.getStatus())},a.requestType,a.body,a.Hc,a.timeoutMillis,a.withCredentials)}; mj.prototype.vc=function(){return 1};function nj(a,b){this.logger=a;this.event=b;this.startTime=oj()} nj.prototype.done=function(){this.logger.Xb(this.event,oj()-this.startTime)}; function pj(){Qc.apply(this,arguments)} v(pj,Qc);function qj(a,b){var c=oj();b=b();a.Xb("n",oj()-c);return b} function rj(){pj.apply(this,arguments)} v(rj,pj);p=rj.prototype;p.Uc=function(){}; p.Eb=function(){}; p.Xb=function(){}; p.Ha=function(){}; p.Gc=function(){}; p.Sd=function(){}; function sj(a){return{wf:new Tc(a),errorCount:new Xc(a),eventCount:new Vc(a),se:new Wc(a),yi:new Uc(a),Ai:new Yc(a),Ch:new Zc(a),zi:new $c(a)}} function tj(a,b,c,d){a=Eh(Ch(Bh(new Ah(1828,"0"),a),new mj));b.length&&Dh(a,$f(new Zf,b));d!==void 0&&(a.Va=d);var e=new Gh(1828,"","",!1,"",Fh(a));Fc(e,a);var f=new Ui({flush:function(g){try{e.flush(g)}catch(h){c(h)}}}); f.addOnDisposeCallback(function(){setTimeout(function(){try{f.ec()}finally{e.dispose()}})}); f.o=1E5;f.flushInterval=3E4;f.h.setInterval(3E4);return f} function uj(a,b){I.call(this);var c=this;this.callback=a;this.i=b;this.h=-b;this.addOnDisposeCallback(function(){return void clearTimeout(c.timer)})} v(uj,I);function vj(a){if(a.timer===void 0){var b=Math.max(0,a.h+a.i-oj());a.timer=setTimeout(function(){try{a.callback()}finally{a.h=oj(),a.timer=void 0}},b)}} function wj(a,b){pj.call(this);this.metrics=a;this.Da=b} v(wj,pj);wj.prototype.Uc=function(a){this.metrics.wf.record(a,this.Da)}; wj.prototype.Eb=function(a){this.metrics.eventCount.kb(a,this.Da)}; wj.prototype.Xb=function(a,b){this.metrics.se.record(b,a,this.Da)}; wj.prototype.Ha=function(a){this.metrics.errorCount.kb(a,this.Da)}; function xj(a,b){b=b===void 0?[]:b;var c={Da:a.Da||"_",uc:a.uc||[],Ac:a.Ac|0,Va:a.Va,Bc:a.Bc||function(){}, Kb:a.Kb||function(f,g){return tj(f,g,c.Bc,c.Va)}},d=c.Kb("49",c.uc.concat(b)); wj.call(this,sj(d),c.Da);var e=this;this.options=c;this.service=d;this.i=!a.Kb;this.h=new uj(function(){return void e.service.ec()},c.Ac); this.addOnDisposeCallback(function(){e.h.dispose();e.i&&e.service.dispose()}); (this.j=b.slice()).sort(fc)} v(xj,wj);xj.prototype.Sd=function(a){var b=this;a=a.slice();a.sort(fc);dc(a,this.j)||(this.h.dispose(),this.i&&this.service.dispose(),this.service=this.options.Kb("49",this.options.uc.concat(a)),this.h=new uj(function(){return void b.service.ec()},this.options.Ac),this.metrics=sj(this.service),this.j=a)}; xj.prototype.Gc=function(){vj(this.h)}; function oj(){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 yj(a){this.F=L(a)} v(yj,M);function zj(a){this.F=L(a)} v(zj,M);function Aj(a){this.F=L(a,0,"bfkj")} v(Aj,M);var Bj=function(a){return me(function(b){return b instanceof a&&!ie(b)})}(Aj); Aj.Pe="bfkj";function Mc(a){this.F=L(a)} v(Mc,M);function Cj(a){this.F=L(a)} v(Cj,M);var Dj=Yf(Cj);function Ej(){var a=this;this.promise=new Promise(function(b,c){a.resolve=b;a.reject=c})} ;function Fj(a,b,c){if(a.disable)return new rj;b=b?Kc(b):[];if(c)return c.Sd(b),c.share();a={Da:a.Da,uc:a.Qh,Ac:a.ci,Va:a.Va,Bc:a.Bc,Kb:a.Kb};c=b;c=c===void 0?[]:c;return new xj(a,c)} function Gj(a){function b(w,x,z,G){Promise.resolve().then(function(){k.done();h.Gc();h.dispose();g.resolve({ce:w,uf:x,Ve:z,Eh:G})})} function c(w,x,z,G){if(!d.logger.ea){var H="k";x?H="h":z&&(H="u");H!=="k"?G!==0&&(d.logger.Eb(H),d.logger.Xb(H,w)):d.i<=0?(d.logger.Eb(H),d.logger.Xb(H,w),d.i=Math.floor(Math.random()*200)):d.i--}} I.call(this);var d=this;this.i=Math.floor(Math.random()*200);this.h=new Cj;if("challenge"in a&&Bj(a.challenge)){var e=Pf(a.challenge,4,void 0,le);var f=Pf(a.challenge,5,void 0,le);Pf(a.challenge,7,void 0,le)&&(this.h=Dj(Pf(a.challenge,7,void 0,le)))}else e=a.program,f=a.globalName;this.addOnDisposeCallback(function(){var w,x,z;return B(function(G){if(G.h==1)return G.yield(d.j,2);w=G.i;x=w.uf;(z=x)==null||z();G.h=0})}); this.logger=Fj(a.Ed||{},this.h,a.Fh);Fc(this,this.logger);var g=new Ej;this.j=g.promise;this.logger.Eb("t");var h=this.logger.share(),k=new nj(h,"t");if(!D[f])throw this.logger.Ha(25),Error("EGOU");if(!D[f].a)throw this.logger.Ha(26),Error("ELIU");try{var l=D[f].a;f=[];for(var m=[],n=Kc(this.h),r=0;r>>31)&4294967295;b=a.h[0];c=a.h[1];e=a.h[2];for(var f=a.h[3],g=a.h[4],h,k,l=0;l<80;l++)l<40?l<20?(h=f^c&(e^f),k=1518500249):(h=c^e^f,k=1859775393):l<60?(h=c&e|f&(c|e),k=2400959708):(h=c^e^f,k=3395469782), h=(b<<5|b>>>27)+h+g+k+d[l]&4294967295,g=f,f=e,e=(c<<30|c>>>2)&4294967295,c=b,b=h;a.h[0]=a.h[0]+b&4294967295;a.h[1]=a.h[1]+c&4294967295;a.h[2]=a.h[2]+e&4294967295;a.h[3]=a.h[3]+f&4294967295;a.h[4]=a.h[4]+g&4294967295} gk.prototype.update=function(a,b){if(a!=null){b===void 0&&(b=a.length);for(var c=b-this.blockSize,d=0,e=this.u,f=this.i;d=56;c--)this.u[c]=b&255,b/=256;hk(this,this.u);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 ik(a){return typeof a.className=="string"?a.className:a.getAttribute&&a.getAttribute("class")||""} function jk(a,b){typeof a.className=="string"?a.className=b:a.setAttribute&&a.setAttribute("class",b)} function kk(a,b){a.classList?b=a.classList.contains(b):(a=a.classList?a.classList:ik(a).match(/\S+/g)||[],b=Vb(a,b)>=0);return b} function lk(){var a=document.body;a.classList?a.classList.remove("inverted-hdpi"):kk(a,"inverted-hdpi")&&jk(a,Array.prototype.filter.call(a.classList?a.classList:ik(a).match(/\S+/g)||[],function(b){return b!="inverted-hdpi"}).join(" "))} ;function mk(){} mk.prototype.next=function(){return nk}; var nk={done:!0,value:void 0};mk.prototype.tb=function(){return this};function ok(a){if(a instanceof pk||a instanceof qk||a instanceof rk)return a;if(typeof a.next=="function")return new pk(function(){return a}); if(typeof a[Symbol.iterator]=="function")return new pk(function(){return a[Symbol.iterator]()}); if(typeof a.tb=="function")return new pk(function(){return a.tb()}); throw Error("Not an iterator or iterable.");} function pk(a){this.h=a} pk.prototype.tb=function(){return new qk(this.h())}; pk.prototype[Symbol.iterator]=function(){return new rk(this.h())}; pk.prototype.i=function(){return new rk(this.h())}; function qk(a){this.h=a} v(qk,mk);qk.prototype.next=function(){return this.h.next()}; qk.prototype[Symbol.iterator]=function(){return new rk(this.h)}; qk.prototype.i=function(){return new rk(this.h)}; function rk(a){pk.call(this,function(){return a}); this.j=a} v(rk,pk);rk.prototype.next=function(){return this.j.next()};function N(a){I.call(this);this.u=1;this.j=[];this.o=0;this.h=[];this.i={};this.A=!!a} $a(N,I);p=N.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.hc(a)}return!1}; p.hc=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&&ac(c,a),delete this.h[a],delete this.h[a+1],delete this.h[a+2])}return!!b}; p.sb=function(a,b){var c=this.i[a];if(c){var d=Array(arguments.length-1),e=arguments.length,f;for(f=1;f0&&this.o==0)for(;c=this.j.pop();)this.hc(c)}}return f!=0}return!1}; function sk(a,b,c){wi(function(){a.apply(b,c)})} p.clear=function(a){if(a){var b=this.i[a];b&&(b.forEach(this.hc,this),delete this.i[a])}else this.h.length=0,this.i={}}; p.ba=function(){N.Aa.ba.call(this);this.clear();this.j.length=0};function tk(a){this.h=a} tk.prototype.set=function(a,b){b===void 0?this.h.remove(a):this.h.set(a,(new Yi).serialize(b))}; tk.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";}}; tk.prototype.remove=function(a){this.h.remove(a)};function uk(a){this.h=a} $a(uk,tk);function vk(a){this.data=a} function wk(a){return a===void 0||a instanceof vk?a:new vk(a)} uk.prototype.set=function(a,b){uk.Aa.set.call(this,a,wk(b))}; uk.prototype.i=function(a){a=uk.Aa.get.call(this,a);if(a===void 0||a instanceof Object)return a;throw"Storage: Invalid value was encountered";}; uk.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 xk(a){this.h=a} $a(xk,uk);xk.prototype.set=function(a,b,c){if(b=wk(b)){if(c){if(cYa())xk.prototype.remove.call(this,a);else return b}};function yk(){} ;function zk(){} $a(zk,yk);zk.prototype[Symbol.iterator]=function(){return ok(this.tb(!0)).i()}; zk.prototype.clear=function(){var a=Array.from(this);a=y(a);for(var b=a.next();!b.done;b=a.next())this.remove(b.value)};function Ak(a){this.h=a;this.i=null} $a(Ak,zk);p=Ak.prototype;p.isAvailable=function(){if(this.i===null){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;this.i=b}return this.i}; p.set=function(a,b){Bk(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){Bk(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){Bk(this);this.h.removeItem(a)}; p.tb=function(a){Bk(this);var b=0,c=this.h,d=new mk;d.next=function(){if(b>=c.length)return nk;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(){Bk(this);this.h.clear()}; p.key=function(a){Bk(this);return this.h.key(a)}; function Bk(a){if(a.h==null)throw Error("Storage mechanism: Storage unavailable");a.isAvailable()||ad(Error("Storage mechanism: Storage unavailable"))} ;function Ck(){var a=null;try{a=D.localStorage||null}catch(b){}Ak.call(this,a)} $a(Ck,Ak);function Dk(a,b){this.i=a;this.h=b+"::"} $a(Dk,zk);Dk.prototype.set=function(a,b){this.i.set(this.h+a,b)}; Dk.prototype.get=function(a){return this.i.get(this.h+a)}; Dk.prototype.remove=function(a){this.i.remove(this.h+a)}; Dk.prototype.tb=function(a){var b=this.i[Symbol.iterator](),c=this,d=new mk;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};function Ek(a){if(a.Wa&&typeof a.Wa=="function")return a.Wa();if(typeof Map!=="undefined"&&a instanceof Map||typeof Set!=="undefined"&&a instanceof Set)return Array.from(a.values());if(typeof a==="string")return a.split("");if(Ma(a)){for(var b=[],c=a.length,d=0;d1||f.length==1&& f[0]!="")&&f.pop(),d&&g==e.length&&f.push("")):(f.push(h),d=!0)}d=f.join("/")}else d=e}c?b.h=d:c=a.H.toString()!=="";c?Kk(b,a.H.clone()):c=!!a.u;c&&(b.u=a.u);return b}; Hk.prototype.clone=function(){return new Hk(this)}; function Ik(a,b,c){a.j=c?Lk(b,!0):b;a.j&&(a.j=a.j.replace(/:$/,""))} function Jk(a,b){if(b){b=Number(b);if(isNaN(b)||b<0)throw Error("Bad port number "+b);a.G=b}else a.G=null} function Kk(a,b,c){b instanceof Mk?(a.H=b,Sk(a.H,a.o)):(c||(b=Nk(b,Tk)),a.H=new Mk(b,a.o))} function Lk(a,b){return a?b?decodeURI(a.replace(/%25/g,"%2525")):decodeURIComponent(a):""} function Nk(a,b,c){return typeof a==="string"?(a=encodeURI(a).replace(b,Uk),c&&(a=a.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),a):null} function Uk(a){a=a.charCodeAt(0);return"%"+(a>>4&15).toString(16)+(a&15).toString(16)} var Ok=/[#\/\?@]/g,Qk=/[#\?:]/g,Pk=/[#\?]/g,Tk=/[#\?@]/g,Rk=/#/g;function Mk(a,b){this.i=this.h=null;this.j=a||null;this.o=!!b} function Vk(a){a.h||(a.h=new Map,a.i=0,a.j&&uc(a.j,function(b,c){a.add(mc(b),c)}))} p=Mk.prototype;p.add=function(a,b){Vk(this);this.j=null;a=Wk(this,a);var c=this.h.get(a);c||this.h.set(a,c=[]);c.push(b);this.i=this.i+1;return this}; p.remove=function(a){Vk(this);a=Wk(this,a);return this.h.has(a)?(this.j=null,this.i=this.i-this.h.get(a).length,this.h.delete(a)):!1}; p.clear=function(){this.h=this.j=null;this.i=0}; function Xk(a,b){Vk(a);b=Wk(a,b);return a.h.has(b)} p.forEach=function(a,b){Vk(this);this.h.forEach(function(c,d){c.forEach(function(e){a.call(b,e,d,this)},this)},this)}; p.Ub=function(){Vk(this);for(var a=Array.from(this.h.values()),b=Array.from(this.h.keys()),c=[],d=0;d0?String(a[0]):b}; p.toString=function(){if(this.j)return this.j;if(!this.h)return"";for(var a=[],b=Array.from(this.h.keys()),c=0;c0&&(this.j=null,this.h.set(Wk(this,e),bc(c)),this.i=this.i+c.length))},a)); a.o=b} p.extend=function(a){for(var b=0;b>>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 cl={};cl=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 dl={},el,fl=[],gl=0;gl<256;gl++){el=gl;for(var hl=0;hl<8;hl++)el=el&1?3988292384^el>>>1:el>>>1;fl[gl]=el}dl=function(a,b,c,d){c=d+c;for(a^=-1;d>>8^fl[(a^b[d])&255];return a^-1};var il={};il={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 jl(a){for(var b=a.length;--b>=0;)a[b]=0} var kl=[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],ll=[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],ml=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],nl=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],ol=Array(576);jl(ol);var pl=Array(60);jl(pl);var ql=Array(512);jl(ql);var rl=Array(256);jl(rl);var sl=Array(29);jl(sl);var tl=Array(30);jl(tl);function ul(a,b,c,d,e){this.Pd=a;this.xe=b;this.we=c;this.pe=d;this.Oe=e;this.Ad=a&&a.length} var vl,wl,xl;function yl(a,b){this.wd=a;this.Gb=0;this.cb=b} function zl(a,b){a.aa[a.pending++]=b&255;a.aa[a.pending++]=b>>>8&255} function Al(a,b,c){a.ia>16-c?(a.oa|=b<>16-a.ia,a.ia+=c-16):(a.oa|=b<>>=1,c<<=1;while(--b>0);return c>>>1} function Dl(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]=Cl(d[e]++,e))} function El(a){var b;for(b=0;b<286;b++)a.ra[b*2]=0;for(b=0;b<30;b++)a.hb[b*2]=0;for(b=0;b<19;b++)a.ja[b*2]=0;a.ra[512]=1;a.Pa=a.Jb=0;a.ya=a.matches=0} function Fl(a){a.ia>8?zl(a,a.oa):a.ia>0&&(a.aa[a.pending++]=a.oa);a.oa=0;a.ia=0} function Gl(a,b,c){Fl(a);zl(a,c);zl(a,~c);O.ub(a.aa,a.window,b,c,a.pending);a.pending+=c} function Hl(a,b,c,d){var e=b*2,f=c*2;return a[e]>>7)];Bl(a,g,c);h=ll[g];h!==0&&(e-=tl[g],Al(a,e,h))}}while(d>1;g>=1;g--)Il(a,c,g);k=f;do g=a.da[1],a.da[1]=a.da[a.Na--],Il(a,c,1),d=a.da[1],a.da[--a.Bb]=g,a.da[--a.Bb]=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.da[1]=k++,Il(a,c,1);while(a.Na>= 2);a.da[--a.Bb]=a.da[1];g=b.wd;k=b.Gb;d=b.cb.Pd;e=b.cb.Ad;f=b.cb.xe;var l=b.cb.we,m=b.cb.Oe,n,r=0;for(n=0;n<=15;n++)a.Ka[n]=0;g[a.da[a.Bb]*2+1]=0;for(b=a.Bb+1;b<573;b++){var t=a.da[b];n=g[g[t*2+1]*2+1]+1;n>m&&(n=m,r++);g[t*2+1]=n;if(!(t>k)){a.Ka[n]++;var w=0;t>=l&&(w=f[t-l]);var x=g[t*2];a.Pa+=x*(n+w);e&&(a.Jb+=x*(d[t*2+1]+w))}}if(r!==0){do{for(n=m-1;a.Ka[n]===0;)n--;a.Ka[n]--;a.Ka[n+1]+=2;a.Ka[m]--;r-=2}while(r>0);for(n=m;n!==0;n--)for(t=a.Ka[n];t!==0;)d=a.da[--b],d>k||(g[d*2+1]!==n&&(a.Pa+=(n-g[d* 2+1])*g[d*2],g[d*2+1]=n),t--)}Dl(c,h,a.Ka)} function Ll(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 Ol=!1;function Pl(a,b,c){a.aa[a.Rb+a.ya*2]=b>>>8&255;a.aa[a.Rb+a.ya*2+1]=b&255;a.aa[a.Tc+a.ya]=c&255;a.ya++;b===0?a.ra[c*2]++:(a.matches++,b--,a.ra[(rl[c]+256+1)*2]++,a.hb[(b<256?ql[b]:ql[256+(b>>>7)])*2]++);return a.ya===a.Wb-1} ;function Ql(a,b){a.msg=il[b];return b} function Rl(a){for(var b=a.length;--b>=0;)a[b]=0} function Sl(a){var b=a.state,c=b.pending;c>a.S&&(c=a.S);c!==0&&(O.ub(a.output,b.aa,b.Zb,c,a.Hb),a.Hb+=c,b.Zb+=c,a.md+=c,a.S-=c,b.pending-=c,b.pending===0&&(b.Zb=0))} function Tl(a,b){var c=a.va>=0?a.va:-1,d=a.v-a.va,e=0;if(a.level>0){a.M.Oc===2&&(a.M.Oc=Nl(a));Kl(a,a.zc);Kl(a,a.qc);Ll(a,a.ra,a.zc.Gb);Ll(a,a.hb,a.qc.Gb);Kl(a,a.td);for(e=18;e>=3&&a.ja[nl[e]*2+1]===0;e--);a.Pa+=3*(e+1)+5+5+4;var f=a.Pa+3+7>>>3;var g=a.Jb+3+7>>>3;g<=f&&(f=g)}else f=g=d+5;if(d+4<=f&&c!==-1)Al(a,b?1:0,3),Gl(a,c,d);else if(a.strategy===4||g===f)Al(a,2+(b?1:0),3),Jl(a,ol,pl);else{Al(a,4+(b?1:0),3);c=a.zc.Gb+1;d=a.qc.Gb+1;e+=1;Al(a,c-257,5);Al(a,d-1,5);Al(a,e-4,4);for(f=0;f>>8&255;a.aa[a.pending++]=b&255} function Vl(a,b){var c=a.Dd,d=a.v,e=a.wa,f=a.Fd,g=a.v>a.la-262?a.v-(a.la-262):0,h=a.window,k=a.eb,l=a.Ia,m=a.v+258,n=h[d+e-1],r=h[d+e];a.wa>=a.zd&&(c>>=2);f>a.D&&(f=a.D);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.Fb=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.D?e:a.D} function Wl(a){var b=a.la,c;do{var d=a.Vd-a.D-a.v;if(a.v>=b+(b-262)){O.ub(a.window,a.window,b,b,0);a.Fb-=b;a.v-=b;a.va-=b;var e=c=a.yc;do{var f=a.head[--e];a.head[e]=f>=b?f-b:0}while(--c);e=c=b;do f=a.Ia[--e],a.Ia[e]=f>=b?f-b:0;while(--c);d+=b}if(a.M.na===0)break;e=a.M;c=a.window;f=a.v+a.D;var g=e.na;g>d&&(g=d);g===0?c=0:(e.na-=g,O.ub(c,e.input,e.nb,g,f),e.state.wrap===1?e.J=cl(e.J,c,g,f):e.state.wrap===2&&(e.J=dl(e.J,c,g,f)),e.nb+=g,e.qb+=g,c=g);a.D+=c;if(a.D+a.sa>=3)for(d=a.v-a.sa,a.R=a.window[d], a.R=(a.R<=3&&(a.R=(a.R<=3)if(c=Pl(a,a.v-a.Fb,a.T-3),a.D-=a.T,a.T<=a.Vc&&a.D>=3){a.T--;do a.v++,a.R=(a.R<=3&&(a.R=(a.R<4096)&&(a.T=2));if(a.wa>=3&&a.T<=a.wa){d=a.v+a.D-3;c=Pl(a,a.v-1-a.Id,a.wa-3);a.D-=a.wa-1;a.wa-=2;do++a.v<=d&&(a.R=(a.R<=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.D&&(a.T=a.D)}a.T>=3?(c=Pl(a,1,a.T-3),a.D-=a.T,a.v+=a.T,a.T=0):(c=Pl(a,0,a.window[a.v]),a.D--,a.v++);if(c&&(Tl(a,!1),a.M.S===0))return 1}a.sa=0;return b===4?(Tl(a,!0),a.M.S===0?3:4): a.ya&&(Tl(a,!1),a.M.S===0)?1:2} function $l(a,b){for(var c;;){if(a.D===0&&(Wl(a),a.D===0)){if(b===0)return 1;break}a.T=0;c=Pl(a,0,a.window[a.v]);a.D--;a.v++;if(c&&(Tl(a,!1),a.M.S===0))return 1}a.sa=0;return b===4?(Tl(a,!0),a.M.S===0?3:4):a.ya&&(Tl(a,!1),a.M.S===0)?1:2} function am(a,b,c,d,e){this.Be=a;this.Ne=b;this.Qe=c;this.Me=d;this.ye=e} var bm;bm=[new am(0,0,0,0,function(a,b){var c=65535;for(c>a.za-5&&(c=a.za-5);;){if(a.D<=1){Wl(a);if(a.D===0&&b===0)return 1;if(a.D===0)break}a.v+=a.D;a.D=0;var d=a.va+c;if(a.v===0||a.v>=d)if(a.D=a.v-d,a.v=d,Tl(a,!1),a.M.S===0)return 1;if(a.v-a.va>=a.la-262&&(Tl(a,!1),a.M.S===0))return 1}a.sa=0;if(b===4)return Tl(a,!0),a.M.S===0?3:4;a.v>a.va&&Tl(a,!1);return 1}), new am(4,4,8,4,Xl),new am(4,5,16,8,Xl),new am(4,6,32,32,Xl),new am(4,4,16,16,Yl),new am(8,16,32,32,Yl),new am(8,16,128,128,Yl),new am(8,32,128,256,Yl),new am(32,128,258,1024,Yl),new am(32,258,258,4096,Yl)]; function cm(){this.M=null;this.status=0;this.aa=null;this.wrap=this.pending=this.Zb=this.za=0;this.I=null;this.Ba=0;this.method=8;this.Db=-1;this.eb=this.pd=this.la=0;this.window=null;this.Vd=0;this.head=this.Ia=null;this.Fd=this.zd=this.strategy=this.level=this.Vc=this.Dd=this.wa=this.D=this.Fb=this.v=this.lb=this.Id=this.T=this.va=this.Ma=this.La=this.Rc=this.yc=this.R=0;this.ra=new O.Ja(1146);this.hb=new O.Ja(122);this.ja=new O.Ja(78);Rl(this.ra);Rl(this.hb);Rl(this.ja);this.td=this.qc=this.zc= null;this.Ka=new O.Ja(16);this.da=new O.Ja(573);Rl(this.da);this.Bb=this.Na=0;this.depth=new O.Ja(573);Rl(this.depth);this.ia=this.oa=this.sa=this.matches=this.Jb=this.Pa=this.Rb=this.ya=this.Wb=this.Tc=0} function dm(a,b){if(!a||!a.state||b>5||b<0)return a?Ql(a,-2):-2;var c=a.state;if(!a.output||!a.input&&a.na!==0||c.status===666&&b!==4)return Ql(a,a.S===0?-5:-2);c.M=a;var d=c.Db;c.Db=b;if(c.status===42)if(c.wrap===2)a.J=0,P(c,31),P(c,139),P(c,8),c.I?(P(c,(c.I.text?1:0)+(c.I.Xa?2:0)+(c.I.extra?4:0)+(c.I.name?8:0)+(c.I.comment?16:0)),P(c,c.I.time&255),P(c,c.I.time>>8&255),P(c,c.I.time>>16&255),P(c,c.I.time>>24&255),P(c,c.level===9?2:c.strategy>=2||c.level<2?4:0),P(c,c.I.os&255),c.I.extra&&c.I.extra.length&& (P(c,c.I.extra.length&255),P(c,c.I.extra.length>>8&255)),c.I.Xa&&(a.J=dl(a.J,c.aa,c.pending,0)),c.Ba=0,c.status=69):(P(c,0),P(c,0),P(c,0),P(c,0),P(c,0),P(c,c.level===9?2:c.strategy>=2||c.level<2?4:0),P(c,3),c.status=113);else{var e=8+(c.pd-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;Ul(c,e+(31-e%31));c.v!==0&&(Ul(c,a.J>>>16),Ul(c,a.J&65535));a.J=1}if(c.status===69)if(c.I.extra){for(e=c.pending;c.Ba<(c.I.extra.length&65535)&&(c.pending!==c.za|| (c.I.Xa&&c.pending>e&&(a.J=dl(a.J,c.aa,c.pending-e,e)),Sl(a),e=c.pending,c.pending!==c.za));)P(c,c.I.extra[c.Ba]&255),c.Ba++;c.I.Xa&&c.pending>e&&(a.J=dl(a.J,c.aa,c.pending-e,e));c.Ba===c.I.extra.length&&(c.Ba=0,c.status=73)}else c.status=73;if(c.status===73)if(c.I.name){e=c.pending;do{if(c.pending===c.za&&(c.I.Xa&&c.pending>e&&(a.J=dl(a.J,c.aa,c.pending-e,e)),Sl(a),e=c.pending,c.pending===c.za)){var f=1;break}f=c.Ba e&&(a.J=dl(a.J,c.aa,c.pending-e,e));f===0&&(c.Ba=0,c.status=91)}else c.status=91;if(c.status===91)if(c.I.comment){e=c.pending;do{if(c.pending===c.za&&(c.I.Xa&&c.pending>e&&(a.J=dl(a.J,c.aa,c.pending-e,e)),Sl(a),e=c.pending,c.pending===c.za)){f=1;break}f=c.Bae&&(a.J=dl(a.J,c.aa,c.pending-e,e));f===0&&(c.status=103)}else c.status=103;c.status===103&&(c.I.Xa?(c.pending+2>c.za&&Sl(a),c.pending+2<=c.za&&(P(c, a.J&255),P(c,a.J>>8&255),a.J=0,c.status=113)):c.status=113);if(c.pending!==0){if(Sl(a),a.S===0)return c.Db=-1,0}else if(a.na===0&&(b<<1)-(b>4?9:0)<=(d<<1)-(d>4?9:0)&&b!==4)return Ql(a,-5);if(c.status===666&&a.na!==0)return Ql(a,-5);if(a.na!==0||c.D!==0||b!==0&&c.status!==666){d=c.strategy===2?$l(c,b):c.strategy===3?Zl(c,b):bm[c.level].ye(c,b);if(d===3||d===4)c.status=666;if(d===1||d===3)return a.S===0&&(c.Db=-1),0;if(d===2&&(b===1?(Al(c,2,3),Bl(c,256,ol),c.ia===16?(zl(c,c.oa),c.oa=0,c.ia=0):c.ia>= 8&&(c.aa[c.pending++]=c.oa&255,c.oa>>=8,c.ia-=8)):b!==5&&(Al(c,0,3),Gl(c,0,0),b===3&&(Rl(c.head),c.D===0&&(c.v=0,c.va=0,c.sa=0))),Sl(a),a.S===0))return c.Db=-1,0}if(b!==4)return 0;if(c.wrap<=0)return 1;c.wrap===2?(P(c,a.J&255),P(c,a.J>>8&255),P(c,a.J>>16&255),P(c,a.J>>24&255),P(c,a.qb&255),P(c,a.qb>>8&255),P(c,a.qb>>16&255),P(c,a.qb>>24&255)):(Ul(c,a.J>>>16),Ul(c,a.J&65535));Sl(a);c.wrap>0&&(c.wrap=-c.wrap);return c.pending!==0?0:1} ;var em={};em=function(){this.input=null;this.qb=this.na=this.nb=0;this.output=null;this.md=this.S=this.Hb=0;this.msg="";this.state=null;this.Oc=2;this.J=0};var fm=Object.prototype.toString; function gm(a){if(!(this instanceof gm))return new gm(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 em;this.M.S=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=Ql(b,-2);else{e===8&&(e=9);var k=new cm;b.state=k;k.M=b;k.wrap=h;k.I=null;k.pd=e;k.la=1<>=7;f<30;f++)for(tl[f]=g<<7,e=0;e<1<=l.la&&(b===0&&(Rl(l.head),l.v=0,l.va=0,l.sa=0),c=new O.rb(l.la),O.ub(c,f,g-l.la,l.la,0),f=c,g=l.la);c=a.na;d=a.nb;e=a.input;a.na=g;a.nb=0;a.input=f;for(Wl(l);l.D>=3;){f=l.v;g=l.D-2;do l.R=(l.R<0||c.S===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=Ql(c,-2):(c.state=null,a=d===113?Ql(c,-3):0)):a=-2,hm(this,a),this.ended=!0,a===0;e===2&&(hm(this,0),c.S=0);return!0}; function hm(a,b){b===0&&(a.result=a.options.to==="string"?a.chunks.join(""):O.xd(a.chunks));a.chunks=[];a.err=b;a.msg=a.M.msg} function im(a,b){b=b||{};b.gzip=!0;b=new gm(b);b.push(a,!0);if(b.err)throw b.msg||il[b.err];return b.result} ;function jm(a){return a?(a=a.privateDoNotAccessOrElseSafeScriptWrappedValue)?Lb(a):null:null} function km(a){return a?(a=a.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue)?rb(a):null:null} ;function lm(a){return rb(a===null?"null":a===void 0?"undefined":a)} ;function mm(a){this.name=a} ;var nm=new mm("rawColdConfigGroup");var om=new mm("rawHotConfigGroup");function pm(a){this.F=L(a)} v(pm,M);function qm(a){this.F=L(a)} v(qm,M);qm.prototype.setTrackingParams=function(a){if(a!=null)if(typeof a==="string")a=a?new Kd(a,Jd):Md||(Md=new Kd(null,Jd));else if(a.constructor!==Kd)if(Ed&&a!=null&&a instanceof Uint8Array)a instanceof Uint8Array||Array.isArray(a),a=a.length?new Kd(new Uint8Array(a),Jd):Md||(Md=new Kd(null,Jd));else throw Error();return Cf(this,1,a)};var rm=new mm("continuationCommand");var sm=new mm("webCommandMetadata");var tm=new mm("signalServiceEndpoint");var um={Vf:"EMBEDDED_PLAYER_MODE_UNKNOWN",Sf:"EMBEDDED_PLAYER_MODE_DEFAULT",Uf:"EMBEDDED_PLAYER_MODE_PFP",Tf:"EMBEDDED_PLAYER_MODE_PFL"};var wm=new mm("feedbackEndpoint");var re={ah:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_UNKNOWN",sg:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_FOR_TESTING",Kg:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_RESUME_TO_HOME_TTL",Sg:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_START_TO_SHORTS_ANALYSIS_SLICE",hg:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_DEVICE_LAYER_SLICE",Zg:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_UNIFIED_LAYER_SLICE",dh:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_VISITOR_LAYER_SLICE",Rg:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_SHOW_SHEET_COMMAND_HANDLER_BLOCK", fh:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WIZ_NEXT_MIGRATED_COMPONENT",eh:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WIZ_NEXT_CHANNEL_NAME_TOOLTIP",Ng:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ROTATION_LOCK_SUPPORTED",Ug:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_THEATER_MODE_ENABLED",jh:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_SHOW_PIN_SUGGESTION",ih:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_SHOW_LONG_PRESS_EDU_TOAST",hh:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_SHOW_AMBIENT",Vg:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_TIME_WATCHED_PANEL", Pg:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_SEARCH_FROM_SEARCH_BAR_OVERLAY",kh:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_SHOW_VOICE_SEARCH_EDU_TOAST",Tg:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_SUGGESTED_LANGUAGE_SELECTED",mh:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_TRIGGER_SHORTS_PIP",zg:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IN_ZP_VOICE_CRASHY_SET",Gg:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_REEL_FAST_SWIPE_SUPPRESSED",Fg:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_REEL_FAST_SWIPE_ALLOWED",Ig:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_REEL_PULL_TO_REFRESH_ATTEMPT", gh:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_BLOCK_KABUKI",Jg:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_REEL_TALL_SCREEN",Hg:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_REEL_NORMAL_SCREEN",Zf:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ACCESSIBILITY_MODE_ENABLED",Yf:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ACCESSIBILITY_MODE_DISABLED",ag:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_AUTOPLAY_ENABLED",cg:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_CAST_MATCH_OCCURRED",lg:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EMC3DS_ELIGIBLE",og:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ENDSCREEN_TRIGGERED", Eg:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_POSTPLAY_TRIGGERED",Dg:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_POSTPLAY_LACT_THRESHOLD_EXCEEDED",tg:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IDENTITIES_STATE_MATCHED_ON_REMOTE_CONNECTION",vg:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IDENTITIES_STATE_SWITCHABLE_ON_REMOTE_CONNECTION",ug:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IDENTITIES_STATE_MISATTRIBUTED_ON_REMOTE_CONNECTION",yg:"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",Bg:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ON_REMOTE_CONNECTION",gg:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_COBALT_PERSISTENT_SETTINGS_TEST_VALID",eg:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_COBALT_PERSISTENT_SETTINGS_TEST_INVALID",fg:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_COBALT_PERSISTENT_SETTINGS_TEST_UNDEFINED",dg:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_COBALT_PERSISTENT_SETTINGS_TEST_DEFINED",Ag:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_LACT_THRESHOLD_EXCEEDED", Og:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ROUND_TRIP_HANDLING_ON_REMOTE_CONNECTION",xg:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IDENTITIES_STATE_SWITCHED_ON_REMOTE_CONNECTION_BEFORE_APP_RELOAD",wg:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IDENTITIES_STATE_SWITCHED_ON_REMOTE_CONNECTION_AFTER_APP_RELOAD",mg:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EMC3DS_INELIGIBLE",Wg:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_TVHTML5_MID_ROLL_THRESHOLD_REACHED",qg:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EXP_COBALT_HTTP3_CONFIG_PENDING", pg:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EXP_COBALT_HTTP3_CONFIG_ACTIVATED",ng:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EMC3DS_M2_ELIGIBLE",Lg:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ROTATE_DEVICE_TO_LANDSCAPE",Mg:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ROTATE_DEVICE_TO_PORTRAIT",kg:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EMBEDS_FACEOFF_UI_EVENT",rg:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EXP_COBALT_HTTP3_CONFIG_RECEIVED",jg:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ELIGIBLE_TO_SUPPRESS_TRANSPORT_CONTROLS_BUTTONS", bh:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_USER_HAS_THEATER_MODE_COOKIE_ENABLED",ig:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_DOCUMENT_PICTURE_IN_PICTURE_SUPPORTED",Qg:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_SHORTS_NON_DEFAULT_ASPECT_RATIO",Cg:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_PLAYER_IN_SQUEEZEBACK"};var xm=new mm("shareEndpoint"),ym=new mm("shareEntityEndpoint"),zm=new mm("shareEntityServiceEndpoint"),Am=new mm("webPlayerShareEntityServiceEndpoint");var Bm=new mm("playlistEditEndpoint");var Cm=new mm("modifyChannelNotificationPreferenceEndpoint");var Dm=new mm("undoFeedbackEndpoint");var Em=new mm("unsubscribeEndpoint");var Fm=new mm("subscribeEndpoint");function Gm(){var a=Hm;F("yt.ads.biscotti.getId_")||E("yt.ads.biscotti.getId_",a)} function Im(a){E("yt.ads.biscotti.lastId_",a)} ;function Jm(a,b){b.length>1?a[b[0]]=b[1]:b.length===1&&Object.assign(a,b[0])} ;var Km=D.window,Lm,Mm,Nm=(Km==null?void 0:(Lm=Km.yt)==null?void 0:Lm.config_)||(Km==null?void 0:(Mm=Km.ytcfg)==null?void 0:Mm.data_)||{};E("yt.config_",Nm);function Om(){Jm(Nm,arguments)} function R(a,b){return a in Nm?Nm[a]:b} function Pm(a){var b=Nm.EXPERIMENT_FLAGS;return b?b[a]:void 0} ;var Qm=[];function Rm(a){Qm.forEach(function(b){return b(a)})} function Sm(a){return a&&window.yterr?function(){try{return a.apply(this,arguments)}catch(b){Tm(b)}}:a} function Tm(a){var b=F("yt.logging.errors.log");b?b(a,"ERROR",void 0,void 0,void 0,void 0,void 0):(b=R("ERRORS",[]),b.push([a,"ERROR",void 0,void 0,void 0,void 0,void 0]),Om("ERRORS",b));Rm(a)} function Um(a,b,c,d,e){var f=F("yt.logging.errors.log");f?f(a,"WARNING",b,c,d,void 0,e):(f=R("ERRORS",[]),f.push([a,"WARNING",b,c,d,void 0,e]),Om("ERRORS",f))} ;var Vm=/^[\w.]*$/,Wm={q:!0,search_query:!0};function Xm(a,b){b=a.split(b);for(var c={},d=0,e=b.length;d1?a[1]:a[0])):{}} function cn(a,b){return dn(a,b||{},!0)} function dn(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=an(e[1]||"");for(var f in b)!c&&e!==null&&f in e||(e[f]=b[f]);return xc(a,e)+d} function en(a){if(!b)var b=window.location.href;var c=a.match(oc)[1]||null,d=qc(a);c&&d?(a=a.match(oc),b=b.match(oc),a=a[3]==b[3]&&a[1]==b[1]&&a[4]==b[4]):a=d?qc(b)===d&&(Number(b.match(oc)[4]||null)||null)===(Number(a.match(oc)[4]||null)||null):!0;return a} function Ym(a){return a&&a.match(Vm)?a:mc(a)} ;function fn(a){var b=gn;a=a===void 0?F("yt.ads.biscotti.lastId_")||"":a;var c=Object,d=c.assign,e={};e.dt=Xj;e.flash="0";a:{try{var f=b.h.top.location.href}catch(Ia){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?Pj:g;try{var h=g.history.length}catch(Ia){h=0}e.u_his=h;var k;e.u_h=(k=Pj.screen)==null?void 0:k.height;var l;e.u_w=(l=Pj.screen)==null?void 0:l.width;var m;e.u_ah=(m=Pj.screen)==null?void 0:m.availHeight;var n;e.u_aw= (n=Pj.screen)==null?void 0:n.availWidth;var r;e.u_cd=(r=Pj.screen)==null?void 0:r.colorDepth}catch(Ia){}var t;h=b.h;try{var w=h.screenX;var x=h.screenY}catch(Ia){}try{var z=h.outerWidth;var G=h.outerHeight}catch(Ia){}try{var H=h.innerWidth;var S=h.innerHeight}catch(Ia){}try{var Z=h.screenLeft;var mb=h.screenTop}catch(Ia){}try{H=h.innerWidth,S=h.innerHeight}catch(Ia){}try{var Sb=h.screen.availWidth;var Wa=h.screen.availTop}catch(Ia){}w=[Z,mb,w,x,Sb,Wa,z,G,H,S];try{var Db=(b.h.top||window).document, Xa=Db.compatMode=="CSS1Compat"?Db.documentElement:Db.body;var Na=(new yg(Xa.clientWidth,Xa.clientHeight)).round()}catch(Ia){Na=new yg(-12245933,-12245933)}Db=Na;Na={};var Ja=Ja===void 0?D:Ja;Xa=new dk;"SVGElement"in Ja&&"createElementNS"in Ja.document&&Xa.set(0);x=Uj();x["allow-top-navigation-by-user-activation"]&&Xa.set(1);x["allow-popups-to-escape-sandbox"]&&Xa.set(2);Ja.crypto&&Ja.crypto.subtle&&Xa.set(3);"TextDecoder"in Ja&&"TextEncoder"in Ja&&Xa.set(4);Ja=ek(Xa);Na.bc=Ja;Na.bih=Db.height;Na.biw= Db.width;Na.brdim=w.join();b=b.i;b=b.prerendering?3:(t={visible:1,hidden:2,prerender:3,preview:4,unloaded:5,"":0}[b.visibilityState||b.webkitVisibilityState||b.mozVisibilityState||""])!=null?t:0;t=(Na.vis=b,Na.wgl=!!Pj.WebGLRenderingContext,Na);c=d.call(c,e,t);c.ca_type="image";a&&(c.bid=a);return c} var gn=new function(){var a=window.document;this.h=window;this.i=a}; E("yt.ads_.signals_.getAdSignalsString",function(a){return $m(fn(a))});Ya();navigator.userAgent.indexOf(" (CrKey ");var hn="XMLHttpRequest"in D?function(){return new XMLHttpRequest}:null; function jn(){if(!hn)return null;var a=hn();return"open"in a?a:null} function kn(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 ln(a,b){typeof a==="function"&&(a=Sm(a));return window.setTimeout(a,b)} ;var mn="client_dev_domain client_dev_expflag client_dev_regex_map client_dev_root_url client_rollout_override expflag forcedCapability jsfeat jsmode mods".split(" ");[].concat(A(mn),["client_dev_set_cookie"]);function T(a){a=nn(a);return typeof a==="string"&&a==="false"?!1:!!a} function on(a,b){a=nn(a);return a===void 0&&b!==void 0?b:Number(a||0)} function nn(a){return R("EXPERIMENT_FLAGS",{})[a]} function pn(){for(var a=[],b=R("EXPERIMENTS_FORCED_FLAGS",{}),c=y(Object.keys(b)),d=c.next();!d.done;d=c.next())d=d.value,a.push({key:d,value:String(b[d])});c=R("EXPERIMENT_FLAGS",{});d=y(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 qn={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"},rn="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(A(mn)),sn=!1;function tn(a,b,c,d,e,f,g,h){function k(){(l&&"readyState"in l?l.readyState:0)===4&&b&&Sm(b)(l)} c=c===void 0?"GET":c;d=d===void 0?"":d;h=h===void 0?!1:h;var l=jn();if(!l)return null;"onloadend"in l?l.addEventListener("loadend",k,!1):l.onreadystatechange=k;T("debug_forward_web_query_parameters")&&(a=un(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=vn(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){Um(n)}}l.send(d);return l} function vn(a,b){b=b===void 0?{}:b;var c=en(a),d=R("INNERTUBE_CLIENT_NAME"),e=T("web_ajax_ignore_global_headers_if_set"),f;for(f in qn){var g=R(qn[f]),h=f==="X-Goog-AuthUser"||f==="X-Goog-PageId";f!=="X-Goog-Visitor-Id"||g||(g=R("VISITOR_DATA"));var k;if(!(k=!g)){if(!(k=c||(qc(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=qc(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=rc(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||!qc(a))b["X-YouTube-Utc-Offset"]=String(-(new Date).getTimezoneOffset());if(c||!qc(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&&qc(a)||(b["X-YouTube-Ad-Signals"]=$m(fn()));return b} function wn(a,b){b.method="POST";b.postParams||(b.postParams={});return xn(a,b)} function xn(a,b){var c=b.format||"JSON";a=yn(a,b);var d=zn(a,b),e=!1,f=An(a,function(k){if(!e){e=!0;h&&window.clearTimeout(h);var l=kn(k),m=null,n=400<=k.status&&k.status<500,r=500<=k.status&&k.status<600;if(l||n||r)m=Bn(a,c,k,b.convertToSafeHtml);l&&(l=Cn(c,k,m));m=m||{};n=b.context||D;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=ln(function(){e||(e=!0,f.abort(),window.clearTimeout(h),g.call(b.context||D,f))},d)}return f} function yn(a,b){b.includeDomain&&(a=document.location.protocol+"//"+document.location.hostname+(document.location.port?":"+document.location.port:"")+a);var c=R("XSRF_FIELD_NAME");if(b=b.urlParams)b[c]&&delete b[c],a=cn(a,b);return a} function zn(a,b){var c=R("XSRF_FIELD_NAME"),d=R("XSRF_TOKEN"),e=b.postBody||"",f=b.postParams,g=R("XSRF_FIELD_NAME"),h;b.headers&&(h=b.headers["Content-Type"]);b.excludeXsrf||qc(a)&&!b.withCredentials&&qc(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=an(e),Kg(e,f),e=b.postBodyFormat&&b.postBodyFormat=== "JSON"?JSON.stringify(e):wc(e));f=e||f&&!Dg(f);!sn&&f&&b.method!=="POST"&&(sn=!0,Tm(Error("AJAX request with postData should use POST")));return e} function Bn(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,Um(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)?Dn(a):null)e={},Wb(a.getElementsByTagName("*"),function(g){e[g.tagName]=En(g)})}d&&Fn(e); return e} function Fn(a){if(Oa(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=a[b];var d=pb();c=d?d.createHTML(c):c;a[b]=new Ib(c)}else Fn(a[b])}} function Cn(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 Dn(a){return a?(a=("responseXML"in a?a.responseXML:a).getElementsByTagName("root"))&&a.length>0?a[0]:null:null} function En(a){var b="";Wb(a.childNodes,function(c){b+=c.nodeValue}); return b} function un(a){var b=window.location.search,c=qc(a);T("debug_handle_relative_url_for_query_forward_killswitch")||!c&&en(a)&&(c=document.location.hostname);var d=rc(a);d=(c=c&&(c.endsWith("youtube.com")||c.endsWith("youtube-nocookie.com")))&&d&&d.startsWith("/api/");if(!c||d)return a;var e=an(b),f={};Wb(rn,function(g){e[g]&&(f[g]=e[g])}); return dn(a,f||{},!1)} var An=tn;var Gn=[{Wc:function(a){return"Cannot read property '"+a.key+"'"}, Cc:{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"]}]}},{Wc:function(a){return"Cannot call '"+a.key+"'"}, Cc:{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"]}]}},{Wc:function(a){return a.key+" is not defined"}, Cc:{ReferenceError:[{regexp:/(.*) is not defined/,groups:["key"]},{regexp:/Can't find variable: (.*)/,groups:["key"]}]}}];var In={Za:[],Ua:[{callback:Hn,weight:500}]};function Hn(a){if(a.name==="JavaException")return!0;a=a.stack;return a.includes("chrome://")||a.includes("chrome-extension://")||a.includes("moz-extension://")} ;function Jn(){this.Ua=[];this.Za=[]} var Kn;function Ln(){if(!Kn){var a=Kn=new Jn;a.Za.length=0;a.Ua.length=0;In.Za&&a.Za.push.apply(a.Za,In.Za);In.Ua&&a.Ua.push.apply(a.Ua,In.Ua)}return Kn} ;var Mn=new N;function Nn(a){function b(){return a.charCodeAt(d++)} var c=a.length,d=0;do{var e=On(b);if(e===Infinity)break;var f=e>>3;switch(e&7){case 0:e=On(b);if(f===2)return e;break;case 1:if(f===2)return;d+=8;break;case 2:e=On(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=Nn(atob(g.replace(/-/g,"+").replace(/_/g,"/"))))?Qn(f+".ve",g,h,k):0;d+=f;d+=Qn(e,a[e],b,c);if(d>500)break}}else c[b]=Rn(a),d+=c[b].length;else c[b]=Rn(a),d+=c[b].length;return d} function Qn(a,b,c,d){c+="."+a;a=Rn(b);d[c]=a;return c.length+a.length} function Rn(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 Sn(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 Tn(){if(!D.matchMedia)return"WEB_DISPLAY_MODE_UNKNOWN";try{return D.matchMedia("(display-mode: standalone)").matches?"WEB_DISPLAY_MODE_STANDALONE":D.matchMedia("(display-mode: minimal-ui)").matches?"WEB_DISPLAY_MODE_MINIMAL_UI":D.matchMedia("(display-mode: fullscreen)").matches?"WEB_DISPLAY_MODE_FULLSCREEN":D.matchMedia("(display-mode: browser)").matches?"WEB_DISPLAY_MODE_BROWSER":"WEB_DISPLAY_MODE_UNKNOWN"}catch(a){return"WEB_DISPLAY_MODE_UNKNOWN"}} ;function Un(){this.Qd=!0} function Vn(){Un.instance||(Un.instance=new Un);return Un.instance} function Wn(a,b){a={};var c=[];"USER_SESSION_ID"in Nm&&c.push({key:"u",value:R("USER_SESSION_ID")});if(c=rg(c))a.Authorization=c,c=b=b==null?void 0:b.sessionIndex,c===void 0&&(c=Number(R("SESSION_INDEX",0)),c=isNaN(c)?0:c),T("voice_search_auth_header_removal")||(a["X-Goog-AuthUser"]=c.toString()),"INNERTUBE_HOST_OVERRIDE"in Nm||(a["X-Origin"]=window.location.origin),b===void 0&&"DELEGATED_SESSION_ID"in Nm&&(a["X-Goog-PageId"]=R("DELEGATED_SESSION_ID"));return a} ;var Xn={identityType:"UNAUTHENTICATED_IDENTITY_TYPE_UNKNOWN"};function Yn(a,b,c,d,e){og.set(""+a,b,{Yb:c,path:"/",domain:d===void 0?"youtube.com":d,secure:e===void 0?!1:e})} function Zn(a){return og.get(""+a,void 0)} function $n(a,b,c){og.remove(""+a,b===void 0?"/":b,c===void 0?"youtube.com":c)} function ao(){if(T("embeds_web_enable_cookie_detection_fix")){if(!D.navigator.cookieEnabled)return!1}else if(!og.isEnabled())return!1;if(og.h.cookie)return!0;T("embeds_web_enable_cookie_detection_fix")?og.set("TESTCOOKIESENABLED","1",{Yb:60,ff:"none",secure:!0}):og.set("TESTCOOKIESENABLED","1",{Yb:60});if(og.get("TESTCOOKIESENABLED")!=="1")return!1;og.remove("TESTCOOKIESENABLED");return!0} ;var bo=F("ytglobal.prefsUserPrefsPrefs_")||{};E("ytglobal.prefsUserPrefsPrefs_",bo);function co(){this.h=R("ALT_PREF_COOKIE_NAME","PREF");this.i=R("ALT_PREF_COOKIE_DOMAIN","youtube.com");var a=Zn(this.h);a&&this.parse(a)} var eo;function fo(){eo||(eo=new co);return eo} p=co.prototype;p.get=function(a,b){go(a);ho(a);a=bo[a]!==void 0?bo[a].toString():null;return a!=null?a:b?b:""}; p.set=function(a,b){go(a);ho(a);if(b==null)throw Error("ExpectedNotNull");bo[a]=b.toString()}; function io(a){return!!((jo("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 Ao(a){return!a.isHidden()&&a.ma} function yo(a){if(a.i[8].length){if(a.U)return 4;if(Ao(a))return 3}for(var b=5;b>=a.o;b--)if(a.i[b].length>0)return b>0?Ao(a)?3:2:1;return 0} p.Ha=function(a){var b=F("yt.logging.errors.log");b&&b(a)}; function xo(a,b){try{b()}catch(c){a.Ha(c)}} function Bo(a){for(var b=y(vo),c=b.next();!c.done;c=b.next())if(a.i[c.value].length)return!0;return!1} p.Ce=function(a){var b=void 0;a&&(b=a.timeRemaining());this.ha=!0;Co(this,b);this.ha=!1}; p.zf=function(){Co(this)}; p.be=function(){Do(this)}; p.Ze=function(a){this.U=!0;var b=yo(this);b===4&&b!==this.A&&(this.stop(),this.start());Co(this,void 0,a);this.U=!1}; p.Se=function(){this.isHidden()||Do(this);this.h&&(this.stop(),this.start())}; function Do(a){a.stop();a.u=!0;for(var b=Ya(),c=a.i[8];c.length;){var d=c.shift(),e=a.j[d];delete a.j[d];e&&xo(a,e)}Eo(a);a.u=!1;Bo(a)&&a.start();b=Ya()-b;a.G-=b} function Eo(a){for(var b=0,c=a.P.length;bd?a.o:d;if(!(Ya()>=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&&xo(a,c)}while(c&&Ya()a&&(b.o=a,b.start())} function Vo(){window.clearTimeout(Io);var a=Jo();a.o=0;a.start()} ;function Wo(){ro.apply(this,arguments)} v(Wo,ro);function Xo(){Wo.instance||(Wo.instance=new Wo);return Wo.instance} Wo.prototype.Sa=function(a,b,c){c!==void 0&&Number.isNaN(Number(c))&&(c=void 0);var d=F("yt.scheduler.instance.addJob");return d?d(a,b,c):c===void 0?(a(),NaN):ln(a,c||0)}; Wo.prototype.qa=function(a){if(a===void 0||!Number.isNaN(Number(a))){var b=F("yt.scheduler.instance.cancelJob");b?b(a):window.clearTimeout(a)}}; Wo.prototype.start=function(){var a=F("yt.scheduler.instance.start");a&&a()}; Wo.prototype.pause=function(){var a=F("yt.scheduler.instance.pause");a&&a()}; var ck=Xo(); T("web_scheduler_auto_init")&&!F("yt.scheduler.initialized")&&(E("yt.scheduler.instance.dispose",Ko),E("yt.scheduler.instance.addJob",Mo),E("yt.scheduler.instance.addImmediateJob",No),E("yt.scheduler.instance.cancelJob",Oo),E("yt.scheduler.instance.cancelAllJobs",Lo),E("yt.scheduler.instance.start",Qo),E("yt.scheduler.instance.pause",Ro),E("yt.scheduler.instance.setPriorityThreshold",To),E("yt.scheduler.instance.enablePriorityThreshold",Uo),E("yt.scheduler.instance.clearPriorityThreshold",Vo),E("yt.scheduler.initialized", !0));function Yo(a){var b=new Ck;this.h=(a=b.isAvailable()?a?new Dk(b,a):b:null)?new xk(a):null;this.i=document.domain||window.location.hostname} Yo.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 Yi).serialize(b))}catch(f){return}else e=escape(b);Yn(a,e,c,this.i)}; Yo.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=Zn(a))&&(c=unescape(c),b))try{c=JSON.parse(c)}catch(e){this.remove(a),c=void 0}return c}; Yo.prototype.remove=function(a){this.h&&this.h.remove(a);$n(a,"/",this.i)};var Zo=function(){var a;return function(){a||(a=new Yo("ytidb"));return a}}(); function $o(){var a;return(a=Zo())==null?void 0:a.get("LAST_RESULT_ENTRY_KEY",!0)} ;var ap=[],bp,cp=!1;function dp(){var a={};for(bp=new ep(a.handleError===void 0?fp:a.handleError,a.logEvent===void 0?gp:a.logEvent);ap.length>0;)switch(a=ap.shift(),a.type){case "ERROR":bp.Ha(a.payload);break;case "EVENT":bp.logEvent(a.eventType,a.payload)}} function hp(a){cp||(bp?bp.Ha(a):(ap.push({type:"ERROR",payload:a}),ap.length>10&&ap.shift()))} function ip(a,b){cp||(bp?bp.logEvent(a,b):(ap.push({type:"EVENT",eventType:a,payload:b}),ap.length>10&&ap.shift()))} ;function jp(a){if(a.indexOf(":")>=0)throw Error("Database name cannot contain ':'");} function kp(a){return a.substr(0,a.indexOf(":"))||a} ;var lp=vd||wd;function mp(a){var b=ed();return b?b.toLowerCase().indexOf(a)>=0:!1} ;var np={},op=(np.AUTH_INVALID="No user identifier specified.",np.EXPLICIT_ABORT="Transaction was explicitly aborted.",np.IDB_NOT_SUPPORTED="IndexedDB is not supported.",np.MISSING_INDEX="Index not created.",np.MISSING_OBJECT_STORES="Object stores not created.",np.DB_DELETED_BY_MISSING_OBJECT_STORES="Database is deleted because expected object stores were not created.",np.DB_REOPENED_BY_MISSING_OBJECT_STORES="Database is reopened because expected object stores were not created.",np.UNKNOWN_ABORT="Transaction was aborted for unknown reasons.", np.QUOTA_EXCEEDED="The current transaction exceeded its quota limitations.",np.QUOTA_MAYBE_EXCEEDED="The current transaction may have failed because of exceeding quota limitations.",np.EXECUTE_TRANSACTION_ON_CLOSED_DB="Can't start a transaction on a closed database",np.INCOMPATIBLE_DB_VERSION="The binary is incompatible with the database version",np),pp={},qp=(pp.AUTH_INVALID="ERROR",pp.EXECUTE_TRANSACTION_ON_CLOSED_DB="WARNING",pp.EXPLICIT_ABORT="IGNORED",pp.IDB_NOT_SUPPORTED="ERROR",pp.MISSING_INDEX= "WARNING",pp.MISSING_OBJECT_STORES="ERROR",pp.DB_DELETED_BY_MISSING_OBJECT_STORES="WARNING",pp.DB_REOPENED_BY_MISSING_OBJECT_STORES="WARNING",pp.QUOTA_EXCEEDED="WARNING",pp.QUOTA_MAYBE_EXCEEDED="WARNING",pp.UNKNOWN_ABORT="WARNING",pp.INCOMPATIBLE_DB_VERSION="WARNING",pp),rp={},sp=(rp.AUTH_INVALID=!1,rp.EXECUTE_TRANSACTION_ON_CLOSED_DB=!1,rp.EXPLICIT_ABORT=!1,rp.IDB_NOT_SUPPORTED=!1,rp.MISSING_INDEX=!1,rp.MISSING_OBJECT_STORES=!1,rp.DB_DELETED_BY_MISSING_OBJECT_STORES=!1,rp.DB_REOPENED_BY_MISSING_OBJECT_STORES= !1,rp.QUOTA_EXCEEDED=!1,rp.QUOTA_MAYBE_EXCEEDED=!0,rp.UNKNOWN_ABORT=!0,rp.INCOMPATIBLE_DB_VERSION=!1,rp);function tp(a,b,c,d,e){b=b===void 0?{}:b;c=c===void 0?op[a]:c;d=d===void 0?qp[a]:d;e=e===void 0?sp[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,tp.prototype)} v(tp,U);function up(a,b){tp.call(this,"MISSING_OBJECT_STORES",{expectedObjectStores:b,foundObjectStores:a},op.MISSING_OBJECT_STORES);Object.setPrototypeOf(this,up.prototype)} v(up,tp);function vp(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,vp.prototype)} v(vp,Error);var wp=["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 xp(a,b,c,d){b=kp(b);var e=a instanceof Error?a:Error("Unexpected error: "+a);if(e instanceof tp)return e;a={objectStoreNames:c,dbName:b,dbVersion:d};if(e.name==="QuotaExceededError")return new tp("QUOTA_EXCEEDED",a);if(xd&&e.name==="UnknownError")return new tp("QUOTA_MAYBE_EXCEEDED",a);if(e instanceof vp)return new tp("MISSING_INDEX",Object.assign({},a,{objectStore:e.objectStore,index:e.index}));if(e.name==="InvalidStateError"&&wp.some(function(f){return e.message.includes(f)}))return new tp("EXECUTE_TRANSACTION_ON_CLOSED_DB", a); if(e.name==="AbortError")return new tp("UNKNOWN_ABORT",a,e.message);e.args=[Object.assign({},a,{name:"IdbError",Hd:e.name})];e.level="WARNING";return e} function yp(a,b,c){var d=$o();return new tp("IDB_NOT_SUPPORTED",{context:{caller:a,publicName:b,version:c,hasSucceededOnce:d==null?void 0:d.hasSucceededOnce}})} ;function zp(a){if(!a)throw Error();throw a;} function Ap(a){return a} function Bp(a){this.h=a} function Cp(a){function b(e){if(d.state.status==="PENDING"){d.state={status:"REJECTED",reason:e};e=y(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=y(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)}} Cp.all=function(a){return new Cp(new Bp(function(b,c){var d=[],e=a.length;e===0&&b(d);for(var f={Cb:0};f.Cb=f)Sp(a,k,t,g,w,b.join(),e),h=w;z.B(2);break;case 4:return z.return(Promise.reject(h))}})} function Sp(a,b,c,d,e,f,g){b=c-b;e?(e instanceof tp&&(e.type==="QUOTA_EXCEEDED"||e.type==="QUOTA_MAYBE_EXCEEDED")&&ip("QUOTA_EXCEEDED",{dbName:kp(a.h.name),objectStoreNames:f,transactionCount:a.transactionCount,transactionMode:g.mode}),e instanceof tp&&e.type==="UNKNOWN_ABORT"&&(c-=a.j,c<0&&c>=2147483648&&(c=0),ip("TRANSACTION_UNEXPECTEDLY_ABORTED",{objectStoreNames:f,transactionDuration:b,transactionCount:a.transactionCount,dbDuration:c}),a.i=!0),Tp(a,!1,d,f,b,g.tag),hp(e)):Tp(a,!0,d,f,b,g.tag)} function Tp(a,b,c,d,e,f){ip("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 Op(a){this.h=a} p=Op.prototype;p.add=function(a,b){return Ip(this.h.add(a,b))}; p.autoIncrement=function(){return this.h.autoIncrement}; p.clear=function(){return Ip(this.h.clear()).then(function(){})}; function Up(a,b,c){a.h.createIndex(b,c,{unique:!1})} p.count=function(a){return Ip(this.h.count(a))}; function Vp(a,b){return Wp(a,{query:b},function(c){return c.delete().then(function(){return Xp(c)})}).then(function(){})} p.delete=function(a){return a instanceof IDBKeyRange?Vp(this,a):Ip(this.h.delete(a))}; p.get=function(a){return Ip(this.h.get(a))}; p.index=function(a){try{return new Yp(this.h.index(a))}catch(b){if(b instanceof Error&&b.name==="NotFoundError")throw new vp(a,this.h.name);throw b;}}; p.getName=function(){return this.h.name}; p.keyPath=function(){return this.h.keyPath}; function Wp(a,b,c){a=a.h.openCursor(b.query,b.direction);return Zp(a).then(function(d){return Jp(d,c)})} function Qp(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=tp;for(var f=b.h.objectStoreNames,g=[],h=0;h=z},x); x.done.catch(function(z){e(z)})}catch(z){e(z)}}); g.addEventListener("success",function(){var t=g.result;k&&t.addEventListener("versionchange",function(){k(f())}); t.addEventListener("close",function(){ip("IDB_UNEXPECTEDLY_CLOSED",{dbName:kp(a),dbVersion:t.version});l&&l()}); d(f())}); g.addEventListener("error",function(){e(g.error)}); h&&g.addEventListener("blocked",function(){h()})})} function cq(a,b,c){c=c===void 0?{}:c;return bq(a,b,c)} function dq(a,b){b=b===void 0?{}:b;var c,d,e,f;return B(function(g){if(g.h==1)return va(g,2),c=self.indexedDB.deleteDatabase(a),d=b,(e=d.ee)&&c.addEventListener("blocked",function(){e()}),g.yield(Hp(c),4); if(g.h!=2)return wa(g,0);f=xa(g);throw xp(f,a,"",-1);})} ;function eq(a,b){this.name=a;this.options=b;this.j=!0;this.u=this.o=0} eq.prototype.i=function(a,b,c){c=c===void 0?{}:c;return cq(a,b,c)}; eq.prototype.delete=function(a){a=a===void 0?{}:a;return dq(this.name,a)}; function fq(a,b){return new tp("INCOMPATIBLE_DB_VERSION",{dbName:a.name,oldVersion:a.options.version,newVersion:b})} function gq(a,b){if(!b)throw yp("openWithToken",kp(a.name));return a.open()} eq.prototype.open=function(){function a(){var f,g,h,k,l,m,n,r,t,w;return B(function(x){switch(x.h){case 1:return g=(f=Error().stack)!=null?f:"",va(x,2),x.yield(c.i(c.name,c.options.version,e),4);case 4:for(var z=h=x.i,G=c.options,H=[],S=y(Object.keys(G.Ib)),Z=S.next();!Z.done;Z=S.next()){Z=Z.value;var mb=G.Ib[Z],Sb=mb.af===void 0?Number.MAX_VALUE:mb.af;!(z.h.version>=mb.Pb)||z.h.version>=Sb||z.h.objectStoreNames.contains(Z)||H.push(Z)}k=H;if(k.length===0){x.B(5);break}l=Object.keys(c.options.Ib); m=h.objectStoreNames();if(c.uc.options.version+1)throw r.close(),c.j=!1,fq(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)),xp(n,c.name,"",(w=c.options.version)!=null?w:-1);}})} function b(){c.h===d&&(c.h=void 0)} var c=this;if(!this.j)throw fq(this);if(this.h)return this.h;var d,e={blocking:function(f){f.close()}, closed:b,xf:b,upgrade:this.options.upgrade};return this.h=d=a()};var hq=new eq("YtIdbMeta",{Ib:{databases:{Pb:1}},upgrade:function(a,b){b(1)&&Np(a,"databases",{keyPath:"actualName"})}}); function iq(a,b){var c;return B(function(d){if(d.h==1)return d.yield(gq(hq,b),2);c=d.i;return d.return(Mp(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 Ip(f.h.put(a,void 0)).then(function(){})})}))})} function jq(a,b){var c;return B(function(d){if(d.h==1)return a?d.yield(gq(hq,b),2):d.return();c=d.i;return d.return(c.delete("databases",a))})} function kq(a,b){var c,d;return B(function(e){return e.h==1?(c=[],e.yield(gq(hq,b),2)):e.h!=3?(d=e.i,e.yield(Mp(d,["databases"],{ka:!0,mode:"readonly"},function(f){c.length=0;return Wp(f.objectStore("databases"),{},function(g){a(g.getValue())&&c.push(g.getValue());return Xp(g)})}),3)):e.return(c)})} function lq(a){return kq(function(b){return b.publicName==="LogsDatabaseV2"&&b.userIdentifier!==void 0},a)} function mq(a,b,c){return kq(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 nq(a){var b,c;return B(function(d){if(d.h==1)return b=qo("YtIdbMeta hasAnyMeta other"),d.yield(kq(function(e){return e.userIdentifier!==void 0&&e.userIdentifier!==b},a),2); c=d.i;return d.return(c.length>0)})} ;var oq,pq=new function(){}(new function(){}); function qq(){var a,b,c,d;return B(function(e){switch(e.h){case 1:a=$o();if((b=a)==null?0:b.hasSucceededOnce)return e.return(!0);var f;if(f=lp)f=/WebKit\/([0-9]+)/.exec(ed()),f=!!(f&&parseInt(f[1],10)>=600);f&&(f=/WebKit\/([0-9]+)/.exec(ed()),f=!(f&&parseInt(f[1],10)>=602));if(f||rd)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); va(e,2);d={actualName:"yt-idb-test-do-not-use",publicName:"yt-idb-test-do-not-use",userIdentifier:void 0};return e.yield(iq(d,pq),4);case 4:return e.yield(jq("yt-idb-test-do-not-use",pq),5);case 5:return e.return(!0);case 2:return xa(e),e.return(!1)}})} function rq(){if(oq!==void 0)return oq;cp=!0;return oq=qq().then(function(a){cp=!1;var b;if((b=Zo())!=null&&b.h){var c;b={hasSucceededOnce:((c=$o())==null?void 0:c.hasSucceededOnce)||a};var d;(d=Zo())==null||d.set("LAST_RESULT_ENTRY_KEY",b,2592E3,!0)}return a})} function sq(){return F("ytglobal.idbToken_")||void 0} function tq(){var a=sq();return a?Promise.resolve(a):rq().then(function(b){(b=b?pq:void 0)&&E("ytglobal.idbToken_",b);return b})} ;var uq=0;function vq(a,b){uq||(uq=ck.pa(function(){var c,d,e,f,g;return B(function(h){switch(h.h){case 1:return h.yield(tq(),2);case 2:c=h.i;if(!c)return h.return();d=!0;va(h,3);return h.yield(mq(a,c,b),5);case 5:e=h.i;if(!e.length){d=!1;h.B(6);break}f=e[0];return h.yield(dq(f.actualName),7);case 7:return h.yield(jq(f.actualName,c),6);case 6:wa(h,4);break;case 3:g=xa(h),hp(g),d=!1;case 4:ck.qa(uq),uq=0,d&&vq(a,b),h.h=0}})}))} function wq(){var a;return B(function(b){return b.h==1?b.yield(tq(),2):(a=b.i)?b.return(nq(a)):b.return(!1)})} new Ej;function xq(a){if(!po())throw a=new tp("AUTH_INVALID",{dbName:a}),hp(a),a;var b=qo();return{actualName:a+":"+b,publicName:a,userIdentifier:b}} function yq(a,b,c,d){var e,f,g,h,k,l;return B(function(m){switch(m.h){case 1:return f=(e=Error().stack)!=null?e:"",m.yield(tq(),2);case 2:g=m.i;if(!g)throw h=yp("openDbImpl",a,b),T("ytidb_async_stack_killswitch")||(h.stack=h.stack+"\n"+f.substring(f.indexOf("\n")+1)),hp(h),h;jp(a);k=c?{actualName:a,publicName:a,userIdentifier:void 0}:xq(a);va(m,3);return m.yield(iq(k,g),5);case 5:return m.yield(cq(k.actualName,b,d),6);case 6:return m.return(m.i);case 3:return l=xa(m),va(m,7),m.yield(jq(k.actualName, g),9);case 9:wa(m,8);break;case 7:xa(m);case 8:throw l;}})} function zq(a,b,c){c=c===void 0?{}:c;return yq(a,b,!1,c)} function Aq(a,b,c){c=c===void 0?{}:c;return yq(a,b,!0,c)} function Bq(a,b){b=b===void 0?{}:b;var c,d;return B(function(e){if(e.h==1)return e.yield(tq(),2);if(e.h!=3){c=e.i;if(!c)return e.return();jp(a);d=xq(a);return e.yield(dq(d.actualName,b),3)}return e.yield(jq(d.actualName,c),0)})} function Cq(a,b,c){a=a.map(function(d){return B(function(e){return e.h==1?e.yield(dq(d.actualName,b),2):e.yield(jq(d.actualName,c),0)})}); return Promise.all(a).then(function(){})} function Dq(){var a=a===void 0?{}:a;var b,c;return B(function(d){if(d.h==1)return d.yield(tq(),2);if(d.h!=3){b=d.i;if(!b)return d.return();jp("LogsDatabaseV2");return d.yield(lq(b),3)}c=d.i;return d.yield(Cq(c,a,b),0)})} function Eq(a,b){b=b===void 0?{}:b;var c;return B(function(d){if(d.h==1)return d.yield(tq(),2);if(d.h!=3){c=d.i;if(!c)return d.return();jp(a);return d.yield(dq(a,b),3)}return d.yield(jq(a,c),0)})} ;function Fq(a,b){eq.call(this,a,b);this.options=b;jp(a)} v(Fq,eq);function Gq(a,b){var c;return function(){c||(c=new Fq(a,b));return c}} Fq.prototype.i=function(a,b,c){c=c===void 0?{}:c;return(this.options.shared?Aq:zq)(a,b,Object.assign({},c))}; Fq.prototype.delete=function(a){a=a===void 0?{}:a;return(this.options.shared?Eq:Bq)(this.name,a)}; function Hq(a,b){return Gq(a,b)} ;var Iq={},Jq=Hq("ytGcfConfig",{Ib:(Iq.coldConfigStore={Pb:1},Iq.hotConfigStore={Pb:1},Iq),shared:!1,upgrade:function(a,b){b(1)&&(Up(Np(a,"hotConfigStore",{keyPath:"key",autoIncrement:!0}),"hotTimestampIndex","timestamp"),Up(Np(a,"coldConfigStore",{keyPath:"key",autoIncrement:!0}),"coldTimestampIndex","timestamp"))}, version:1});function Kq(a){return gq(Jq(),a)} function Lq(a,b,c){var d,e,f;return B(function(g){switch(g.h){case 1:return d={config:a,hashData:b,timestamp:V()},g.yield(Kq(c),2);case 2:return e=g.i,g.yield(e.clear("hotConfigStore"),3);case 3:return g.yield(Pp(e,"hotConfigStore",d),4);case 4:return f=g.i,g.return(f)}})} function Mq(a,b,c,d){var e,f,g;return B(function(h){switch(h.h){case 1:return e={config:a,hashData:b,configData:c,timestamp:V()},h.yield(Kq(d),2);case 2:return f=h.i,h.yield(f.clear("coldConfigStore"),3);case 3:return h.yield(Pp(f,"coldConfigStore",e),4);case 4:return g=h.i,h.return(g)}})} function Nq(a){var b,c;return B(function(d){return d.h==1?d.yield(Kq(a),2):d.h!=3?(b=d.i,c=void 0,d.yield(Mp(b,["coldConfigStore"],{mode:"readwrite",ka:!0},function(e){return $p(e.objectStore("coldConfigStore").index("coldTimestampIndex"),{direction:"prev"},function(f){c=f.getValue()})}),3)):d.return(c)})} function Oq(a){var b,c;return B(function(d){return d.h==1?d.yield(Kq(a),2):d.h!=3?(b=d.i,c=void 0,d.yield(Mp(b,["hotConfigStore"],{mode:"readwrite",ka:!0},function(e){return $p(e.objectStore("hotConfigStore").index("hotTimestampIndex"),{direction:"prev"},function(f){c=f.getValue()})}),3)):d.return(c)})} ;function Pq(){I.call(this);this.i=[];this.h=[];var a=F("yt.gcf.config.hotUpdateCallbacks");a?(this.i=[].concat(A(a)),this.h=a):(this.h=[],E("yt.gcf.config.hotUpdateCallbacks",this.h))} v(Pq,I);Pq.prototype.ba=function(){for(var a=y(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;I.prototype.ba.call(this)};function Qq(){this.h=0;this.i=new Pq} function Rq(){var a;return(a=F("yt.gcf.config.hotConfigGroup"))!=null?a:R("RAW_HOT_CONFIG_GROUP")} function Sq(a,b,c){var d,e,f;return B(function(g){switch(g.h){case 1:if(!T("start_client_gcf")){g.B(0);break}c&&(a.j=c,E("yt.gcf.config.hotConfigGroup",a.j||null));a.o(b);d=sq();if(!d){g.B(3);break}if(c){g.B(4);break}return g.yield(Oq(d),5);case 5:e=g.i,c=(f=e)==null?void 0:f.config;case 4:return g.yield(Lq(c,b,d),3);case 3:if(c)for(var h=c,k=y(a.i.h),l=k.next();!l.done;l=k.next())l=l.value,l(h);g.h=0}})} function Tq(a,b,c){var d,e,f,g;return B(function(h){if(h.h==1){if(!T("start_client_gcf"))return h.B(0);a.coldHashData=b;E("yt.gcf.config.coldHashData",a.coldHashData||null);return(d=sq())?c?h.B(4):h.yield(Nq(d),5):h.B(0)}h.h!=4&&(e=h.i,c=(f=e)==null?void 0:f.config);if(!c)return h.B(0);g=c.configData;return h.yield(Mq(c,b,g,d),0)})} function Uq(){if(!Qq.instance){var a=new Qq;Qq.instance=a}a=Qq.instance;var b=V()-a.h;if(!(a.h!==0&&b0&&(b.request={internalExperimentFlags:c});c=a.Bd;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=Tn()}(d=F("yt.embedded_player.embed_url"))&&b&&(b.thirdParty={embedUrl:d});var e;if(T("web_log_memory_total_kbytes")&&((e=D.navigator)==null?0:e.deviceMemory)){var f;e=(f=D.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=no())&&b&&(b.client.connectionType=a);T("web_log_effective_connection_type")&& (a=oo())&&b&&(b.client.effectiveConnectionType=a);T("start_client_gcf")&&(e=Uq())&&(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)));R("DELEGATED_SESSION_ID")&&!T("pageid_as_header_web")&&(b.user={onBehalfOfUser:R("DELEGATED_SESSION_ID")});!T("fill_delegate_context_in_gel_killswitch")&&(a=R("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"))&& (b.user=Object.assign({},b.user,{serializedDelegationContext:a}));a=R("INNERTUBE_CONTEXT");var g;if(T("enable_persistent_device_token")&&(a==null?0:(g=a.client)==null?0:g.rolloutToken)){var h;b.client.rolloutToken=a==null?void 0:(h=a.client)==null?void 0:h.rolloutToken}g=Object;h=g.assign;a=b.client;f={};e=y(Object.entries(an(R("DEVICE",""))));for(d=e.next();!d.done;d=e.next())c=y(d.value),d=c.next().value,c=c.next().value,d==="cbrand"?f.deviceMake=c:d==="cmodel"?f.deviceModel=c:d==="cbr"?f.browserName= c:d==="cbrver"?f.browserVersion=c:d==="cos"?f.osName=c:d==="cosver"?f.osVersion=c:d==="cplatform"&&(f.platform=c);b.client=h.call(g,a,f);return b} function Yq(a,b,c){c=c===void 0?{}:c;var d={};R("EOM_VISITOR_DATA")?d={"X-Goog-EOM-Visitor-Id":R("EOM_VISITOR_DATA")}:d={"X-Goog-Visitor-Id":c.visitorData||R("VISITOR_DATA","")};if(b&&b.includes("www.youtube-nocookie.com"))return d;b=c.authorization||R("AUTHORIZATION");b||(a?b="Bearer "+F("gapi.auth.getToken")().zh:(a=Wn(Vn()),T("pageid_as_header_web")||delete a["X-Goog-PageId"],d=Object.assign({},d,a)));b&&(d.Authorization=b);return d} ;var Zq=typeof TextEncoder!=="undefined"?new TextEncoder:null,$q=Zq?function(a){return Zq.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;cur||g=zr&&(xr++,T("abandon_compression_after_N_slow_zips")?yr===on("compression_disable_point")&&xr>Ar&&(wr=!1):wr=!1);Jr(b);d.headers||(d.headers={});d.headers["Content-Encoding"]="gzip";d.postBody=a;d.postParams=void 0;e(c,d)} function Kr(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?F("yt.logging.gzipForFetch",!1):!0;if(wr&&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=Ir(g);if(h!=null&&(h>ur||h=zr)if(xr++,T("abandon_compression_after_N_slow_zips")||T("abandon_compression_after_N_slow_zips_lr")){b=xr/yr;var l=Ar/on("compression_disable_point");yr>0&&yr%on("compression_disable_point")===0&&b>=l&&(wr=!1)}else wr=!1;Jr(e)}}a.headers=Object.assign({},{"Content-Encoding":"gzip"},a.headers||{});a.body=f;return a}catch(m){return Um(m),a}}else return a} function Ir(a){try{return(new Blob(a.split(""))).size}catch(b){return Um(b),null}} function Jr(a){T("gel_compression_csi_killswitch")||!T("log_gel_compression_latency")&&!T("log_gel_compression_latency_lr")||pr("gel_compression",a,{sampleRate:.1})} ;function Lr(a){a=Object.assign({},a);delete a.Authorization;var b=rg();if(b){var c=new gk;c.update(R("INNERTUBE_API_KEY"));c.update(b);a.hash=Ad(c.digest(),3)}return a} ;var Mr;function Nr(){Mr||(Mr=new Yo("yt.innertube"));return Mr} function Or(a,b,c,d){if(d)return null;d=Nr().get("nextId",!0)||1;var e=Nr().get("requests",!0)||{};e[d]={method:a,request:b,authState:Lr(c),requestTime:Math.round(V())};Nr().set("nextId",d+1,86400,!0);Nr().set("requests",e,86400,!0);return d} function Pr(a){var b=Nr().get("requests",!0)||{};delete b[a];Nr().set("requests",b,86400,!0)} function Qr(a){var b=Nr().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=Lr(Yq(!1));Gg(e,f)&&(e=d.request,"requestTimeMs"in e&&(e.requestTimeMs=Math.round(V())),Rr(a,d.method,e,{}));delete b[c]}}Nr().set("requests",b,86400,!0)}} ;function Sr(a){this.kc=this.h=!1;this.potentialEsfErrorCounter=this.i=0;this.handleError=function(){}; this.Ab=function(){}; this.now=Date.now;this.Tb=!1;var b;this.Rd=(b=a.Rd)!=null?b:100;var c;this.Md=(c=a.Md)!=null?c:1;var d;this.Kd=(d=a.Kd)!=null?d:2592E6;var e;this.Jd=(e=a.Jd)!=null?e:12E4;var f;this.Ld=(f=a.Ld)!=null?f:5E3;var g;this.V=(g=a.V)!=null?g:void 0;this.sc=!!a.sc;var h;this.oc=(h=a.oc)!=null?h:.1;var k;this.Ec=(k=a.Ec)!=null?k:10;a.handleError&&(this.handleError=a.handleError);a.Ab&&(this.Ab=a.Ab);a.Tb&&(this.Tb=a.Tb);a.kc&&(this.kc=a.kc);this.W=a.W;this.Ca=a.Ca;this.ga=a.ga;this.fa=a.fa;this.sendFn=a.sendFn; this.cd=a.cd;this.Yc=a.Yc;Tr(this)&&(!this.W||this.W("networkless_logging"))&&Ur(this)} function Ur(a){Tr(a)&&!a.Tb&&(a.h=!0,a.sc&&Math.random()<=a.oc&&a.ga.he(a.V),Vr(a),a.fa.ta()&&a.fc(),a.fa.listen(a.cd,a.fc.bind(a)),a.fa.listen(a.Yc,a.ud.bind(a)))} p=Sr.prototype;p.writeThenSend=function(a,b){var c=this;b=b===void 0?{}:b;if(Tr(this)&&this.h){var d={url:a,options:b,timestamp:this.now(),status:"NEW",sendCount:0};this.ga.set(d,this.V).then(function(e){d.id=e;c.fa.ta()&&Wr(c,d)}).catch(function(e){Wr(c,d); Xr(c,e)})}else this.sendFn(a,b)}; p.sendThenWrite=function(a,b,c){var d=this;b=b===void 0?{}:b;if(Tr(this)&&this.h){var e={url:a,options:b,timestamp:this.now(),status:"NEW",sendCount:0};this.W&&this.W("nwl_skip_retry")&&(e.skipRetry=c);if(this.fa.ta()||this.W&&this.W("nwl_aggressive_send_then_write")&&!e.skipRetry){if(!e.skipRetry){var f=b.onError?b.onError:function(){}; b.onError=function(g,h){return B(function(k){if(k.h==1)return k.yield(d.ga.set(e,d.V).catch(function(l){Xr(d,l)}),2); f(g,h);k.h=0})}}this.sendFn(a,b,e.skipRetry)}else this.ga.set(e,this.V).catch(function(g){d.sendFn(a,b,e.skipRetry); Xr(d,g)})}else this.sendFn(a,b,this.W&&this.W("nwl_skip_retry")&&c)}; p.sendAndWrite=function(a,b){var c=this;b=b===void 0?{}:b;if(Tr(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.yb(d.id,c.V):e=!0;c.fa.mb&&c.W&&c.W("vss_network_hint")&&c.fa.mb(!0);f(g,h)}; this.sendFn(d.url,d.options,void 0,!0);this.ga.set(d,this.V).then(function(g){d.id=g;e&&c.ga.yb(d.id,c.V)}).catch(function(g){Xr(c,g)})}else this.sendFn(a,b,void 0,!0)}; p.fc=function(){var a=this;if(!Tr(this))throw Error("IndexedDB is not supported: throttleSend");this.i||(this.i=this.Ca.pa(function(){var b;return B(function(c){if(c.h==1)return c.yield(a.ga.yd("NEW",a.V),2);if(c.h!=3)return b=c.i,b?c.yield(Wr(a,b),3):(a.ud(),c.return());a.i&&(a.i=0,a.fc());c.h=0})},this.Rd))}; p.ud=function(){this.Ca.qa(this.i);this.i=0}; function Wr(a,b){var c;return B(function(d){switch(d.h){case 1:if(!Tr(a))throw Error("IndexedDB is not supported: immediateSend");if(b.id===void 0){d.B(2);break}return d.yield(a.ga.Le(b.id,a.V),3);case 3:(c=d.i)||a.Ab(Error("The request cannot be found in the database."));case 2:if(Yr(a,b,a.Kd)){d.B(4);break}a.Ab(Error("Networkless Logging: Stored logs request expired age limit"));if(b.id===void 0){d.B(5);break}return d.yield(a.ga.yb(b.id,a.V),5);case 5:return d.return();case 4:b.skipRetry||(b=Zr(a, b));if(!b){d.B(0);break}if(!b.skipRetry||b.id===void 0){d.B(8);break}return d.yield(a.ga.yb(b.id,a.V),8);case 8:a.sendFn(b.url,b.options,!!b.skipRetry),d.h=0}})} function Zr(a,b){if(!Tr(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 B(function(m){switch(m.h){case 1:g=$r(f);(h=as(f))&&a.W&&a.W("web_enable_error_204")&&a.handleError(Error("Request failed due to compression"),b.url,f);if(!(a.W&&a.W("nwl_consider_error_code")&&g||a.W&&!a.W("nwl_consider_error_code")&&a.potentialEsfErrorCounter<=a.Ec)){m.B(2);break}if(!a.fa.Ic){m.B(3);break}return m.yield(a.fa.Ic(),3);case 3:if(a.fa.ta()){m.B(2);break}c(e,f);if(!a.W||!a.W("nwl_consider_error_code")||((k=b)==null?void 0:k.id)===void 0){m.B(6); break}return m.yield(a.ga.dd(b.id,a.V,!1),6);case 6:return m.return();case 2:if(a.W&&a.W("nwl_consider_error_code")&&!g&&a.potentialEsfErrorCounter>a.Ec)return m.return();a.potentialEsfErrorCounter++;if(((l=b)==null?void 0:l.id)===void 0){m.B(8);break}return b.sendCount=c?!1:!0} function Vr(a){if(!Tr(a))throw Error("IndexedDB is not supported: retryQueuedRequests");a.ga.yd("QUEUED",a.V).then(function(b){b&&!Yr(a,b,a.Jd)?a.Ca.pa(function(){return B(function(c){if(c.h==1)return b.id===void 0?c.B(2):c.yield(a.ga.dd(b.id,a.V),2);Vr(a);c.h=0})}):a.fa.ta()&&a.fc()})} function Xr(a,b){a.Wd&&!a.fa.ta()?a.Wd(b):a.handleError(b)} function Tr(a){return!!a.V||a.kc} function $r(a){var b;return(a=a==null?void 0:(b=a.error)==null?void 0:b.code)&&a>=400&&a<=599?!1:!0} function as(a){var b;a=a==null?void 0:(b=a.error)==null?void 0:b.code;return!(a!==400&&a!==415)} ;var bs; function cs(){if(bs)return bs();var a={};bs=Hq("LogsDatabaseV2",{Ib:(a.LogsRequestsStore={Pb:2},a),shared:!1,upgrade:function(b,c,d){c(2)&&Np(b,"LogsRequestsStore",{keyPath:"id",autoIncrement:!0});c(3);c(5)&&(d=d.objectStore("LogsRequestsStore"),d.h.indexNames.contains("newRequest")&&d.h.deleteIndex("newRequest"),Up(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 bs()} ;function ds(a){return gq(cs(),a)} function es(a,b){var c,d,e,f;return B(function(g){if(g.h==1)return c={startTime:V(),infos:{transactionType:"YT_IDB_TRANSACTION_TYPE_WRITE"},ticks:{}},g.yield(ds(b),2);if(g.h!=3)return d=g.i,e=Object.assign({},a,{options:JSON.parse(JSON.stringify(a.options)),interface:R("INNERTUBE_CONTEXT_CLIENT_NAME",0)}),g.yield(Pp(d,"LogsRequestsStore",e),3);f=g.i;c.ticks.tc=V();gs(c);return g.return(f)})} function hs(a,b){var c,d,e,f,g,h,k,l;return B(function(m){if(m.h==1)return c={startTime:V(),infos:{transactionType:"YT_IDB_TRANSACTION_TYPE_READ"},ticks:{}},m.yield(ds(b),2);if(m.h!=3)return d=m.i,e=R("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(Mp(d,["LogsRequestsStore"],{mode:"readwrite",ka:!0},function(n){return $p(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();gs(c);return m.return(l)})} function is(a,b){var c;return B(function(d){if(d.h==1)return d.yield(ds(b),2);c=d.i;return d.return(Mp(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",Ip(f.h.put(g,void 0)).then(function(){return g})})}))})} function js(a,b,c,d){c=c===void 0?!0:c;var e;return B(function(f){if(f.h==1)return f.yield(ds(b),2);e=f.i;return f.return(Mp(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),Ip(h.h.put(k,void 0)).then(function(){return k})):Cp.resolve(void 0)})}))})} function ks(a,b){var c;return B(function(d){if(d.h==1)return d.yield(ds(b),2);c=d.i;return d.return(c.delete("LogsRequestsStore",a))})} function ls(a){var b,c;return B(function(d){if(d.h==1)return d.yield(ds(a),2);b=d.i;c=V()-2592E6;return d.yield(Mp(b,["LogsRequestsStore"],{mode:"readwrite",ka:!0},function(e){return Wp(e.objectStore("LogsRequestsStore"),{},function(f){if(f.getValue().timestamp<=c)return f.delete().then(function(){return Xp(f)})})}),0)})} function ms(){B(function(a){return a.yield(Dq(),0)})} function gs(a){T("nwl_csi_killswitch")||pr("networkless_performance",a,{sampleRate:1})} ;var ns={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, mdeQosEvent:510,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,producerAppStateChange:509,producerProjectDiskInsufficientExportFailure:516,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,miniAppAdEvent:506,dataPlanUpsellEvent:507,producerProjectRenamed:508,producerMediaSelectionEvent:511,embedsAutoplayStatusChanged:512,remoteConnectEvent:513,connectedSessionMisattributionEvent:514,producerProjectElementModified:515, adsSeenClientLogging:517,producerEvent:518,tvhtml5CleanStart:519};var ps={},qs=Hq("ServiceWorkerLogsDatabase",{Ib:(ps.SWHealthLog={Pb:1},ps),shared:!0,upgrade:function(a,b){b(1)&&Up(Np(a,"SWHealthLog",{keyPath:"id",autoIncrement:!0}),"swHealthNewRequest",["interface","timestamp"])}, version:1});function rs(a){return gq(qs(),a)} function ss(a){var b,c;B(function(d){if(d.h==1)return d.yield(rs(a),2);b=d.i;c=V()-2592E6;return d.yield(Mp(b,["SWHealthLog"],{mode:"readwrite",ka:!0},function(e){return Wp(e.objectStore("SWHealthLog"),{},function(f){if(f.getValue().timestamp<=c)return f.delete().then(function(){return Xp(f)})})}),0)})} function ts(a){var b;return B(function(c){if(c.h==1)return c.yield(rs(a),2);b=c.i;return c.yield(b.clear("SWHealthLog"),0)})} ;var us={},vs=0;function ws(a){var b=b===void 0?{}:b;var c=new Image,d=""+vs++;us[d]=c;c.onload=c.onerror=function(){delete us[d]}; b.mi&&(c.referrerPolicy="no-referrer");c.src=a} ;var xs;function ys(){xs||(xs=new Yo("yt.offline"));return xs} function zs(a){if(T("offline_error_handling")){var b=ys().get("errors",!0)||{};b[a.message]={name:a.name,stack:a.stack};a.level&&(b[a.message].level=a.level);ys().set("errors",b,2592E3,!0)}} ;function As(){this.h=new Map;this.i=!1} function Bs(){if(!As.instance){var a=F("yt.networkRequestMonitor.instance")||new As;E("yt.networkRequestMonitor.instance",a);As.instance=a}return As.instance} As.prototype.requestComplete=function(a,b){b&&(this.i=!0);a=this.removeParams(a);this.h.get(a)||this.h.set(a,b)}; As.prototype.isEndpointCFR=function(a){a=this.removeParams(a);return(a=this.h.get(a))?!1:a===!1&&this.i?!0:null}; As.prototype.removeParams=function(a){return a.split("?")[0]}; As.prototype.removeParams=As.prototype.removeParams;As.prototype.isEndpointCFR=As.prototype.isEndpointCFR;As.prototype.requestComplete=As.prototype.requestComplete;As.getInstance=Bs;function Cs(){ki.call(this);var a=this;this.j=!1;this.h=bk();this.h.listen("networkstatus-online",function(){if(a.j&&T("offline_error_handling")){var b=ys().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;Tm(d)}ys().set("errors",{},2592E3,!0)}}})} v(Cs,ki);function Ds(){if(!Cs.instance){var a=F("yt.networkStatusManager.instance")||new Cs;E("yt.networkStatusManager.instance",a);Cs.instance=a}return Cs.instance} p=Cs.prototype;p.ta=function(){return this.h.ta()}; p.mb=function(a){this.h.h=a}; p.Ae=function(){var a=window.navigator.onLine;return a===void 0?!0:a}; p.qe=function(){this.j=!0}; p.listen=function(a,b){return this.h.listen(a,b)}; p.Ic=function(a){a=Zj(this.h,a);a.then(function(b){T("use_cfr_monitor")&&Bs().requestComplete("generate_204",b)}); return a}; Cs.prototype.sendNetworkCheckRequest=Cs.prototype.Ic;Cs.prototype.listen=Cs.prototype.listen;Cs.prototype.enableErrorFlushing=Cs.prototype.qe;Cs.prototype.getWindowStatus=Cs.prototype.Ae;Cs.prototype.networkStatusHint=Cs.prototype.mb;Cs.prototype.isNetworkAvailable=Cs.prototype.ta;Cs.getInstance=Ds;function Es(a){a=a===void 0?{}:a;ki.call(this);var b=this;this.h=this.u=0;this.j=Ds();var c=F("yt.networkStatusManager.instance.listen").bind(this.j);c&&(a.rateLimit?(this.rateLimit=a.rateLimit,c("networkstatus-online",function(){Fs(b,"publicytnetworkstatus-online")}),c("networkstatus-offline",function(){Fs(b,"publicytnetworkstatus-offline")})):(c("networkstatus-online",function(){li(b,"publicytnetworkstatus-online")}),c("networkstatus-offline",function(){li(b,"publicytnetworkstatus-offline")})))} v(Es,ki);Es.prototype.ta=function(){var a=F("yt.networkStatusManager.instance.isNetworkAvailable");return a?a.bind(this.j)():!0}; Es.prototype.mb=function(a){var b=F("yt.networkStatusManager.instance.networkStatusHint").bind(this.j);b&&b(a)}; Es.prototype.Ic=function(a){var b=this,c;return B(function(d){c=F("yt.networkStatusManager.instance.sendNetworkCheckRequest").bind(b.j);return T("skip_network_check_if_cfr")&&Bs().isEndpointCFR("generate_204")?d.return(new Promise(function(e){var f;b.mb(((f=window.navigator)==null?void 0:f.onLine)||!0);e(b.ta())})):c?d.return(c(a)):d.return(!0)})}; function Fs(a,b){a.rateLimit?a.h?(ck.qa(a.u),a.u=ck.pa(function(){a.o!==b&&(li(a,b),a.o=b,a.h=V())},a.rateLimit-(V()-a.h))):(li(a,b),a.o=b,a.h=V()):li(a,b)} ;var Gs;function Hs(){var a=Sr.call;Gs||(Gs=new Es({Zh:!0,Ph:!0}));a.call(Sr,this,{ga:{he:ls,yb:ks,yd:hs,Le:is,dd:js,set:es},fa:Gs,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;b=new U(b.message,c,d==null?void 0:(g=d.error)==null?void 0:g.code);Um(b,void 0,void 0,void 0,!0)}else Tm(b)}, Ab:Um,sendFn:Is,now:V,Wd:zs,Ca:Xo(),cd:"publicytnetworkstatus-online",Yc:"publicytnetworkstatus-offline",sc:!0,oc:.1,Ec:on("potential_esf_error_limit",10),W:T,Tb:!(po()&&Js())});this.j=new Ej;T("networkless_immediately_drop_all_requests")&&ms();Eq("LogsDatabaseV2")} v(Hs,Sr);function Ks(){var a=F("yt.networklessRequestController.instance");a||(a=new Hs,E("yt.networklessRequestController.instance",a),T("networkless_logging")&&tq().then(function(b){a.V=b;Ur(a);a.j.resolve();a.sc&&Math.random()<=a.oc&&a.V&&ss(a.V);T("networkless_immediately_drop_sw_health_store")&&Ls(a)})); return a} Hs.prototype.writeThenSend=function(a,b){b||(b={});b=Qs(a,b);po()||(this.h=!1);Sr.prototype.writeThenSend.call(this,a,b)}; Hs.prototype.sendThenWrite=function(a,b,c){b||(b={});b=Qs(a,b);po()||(this.h=!1);Sr.prototype.sendThenWrite.call(this,a,b,c)}; Hs.prototype.sendAndWrite=function(a,b){b||(b={});b=Qs(a,b);po()||(this.h=!1);Sr.prototype.sendAndWrite.call(this,a,b)}; Hs.prototype.awaitInitialization=function(){return this.j.promise}; function Ls(a){var b;B(function(c){if(!a.V)throw b=yp("clearSWHealthLogsDb"),b;return c.return(ts(a.V).catch(function(d){a.handleError(d)}))})} function Is(a,b,c,d){d=d===void 0?!1:d;b=T("web_fp_via_jspb")?Object.assign({},b):b;T("use_cfr_monitor")&&Rs(a,b);if(T("use_request_time_ms_header"))b.headers&&en(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)tn(a,void 0,"POST",f,void 0);else if(R("USE_NET_AJAX_FOR_PING_TRANSPORT", !1)||h)tn(a,void 0,"GET","",void 0,void 0,g,h);else{b:{try{c:{var k=new hb({url:a});if(eb(k.h,db)==="1")var l=null;else{var m=eb(k.h,cb);if(m==="1"){var n=eb(k.h,bb);if(n)try{l={version:3,oe:decodeURIComponent(n),de:fb(k.h,"act=1","ri=1",ib(k))};break c}catch(Z){}}l=m==="2"?{version:4,oe:fb(k.h,"dct=1","suid="+k.i,""),de:fb(k.h,"act=1","ri=1","suid="+k.i)}:null}}if(l){var r=rc(a),t;if(!(t=!r||!r.endsWith("/aclk"))){var w=a.search(zc),x=yc(a,0,"ri",w);if(x<0)var z=null;else{var G=a.indexOf("&",x); if(G<0||G>w)G=w;z=mc(a.slice(x+3,G!==-1?G:0))}t=z!=="1"}var H=!t;break b}}catch(Z){}H=!1}if(H){b:{try{if(window.navigator&&window.navigator.sendBeacon&&window.navigator.sendBeacon(a,"")){var S=!0;break b}}catch(Z){}S=!1}c=S?!0:!1}else c=!1;c||ws(a)}}else b.compress?b.postBody?(typeof b.postBody!=="string"&&(b.postBody=JSON.stringify(b.postBody)),Hr(a,b.postBody,b,xn,d)):Hr(a,JSON.stringify(b.postParams),b,wn,d):xn(a,b)} function Qs(a,b){T("use_event_time_ms_header")&&en(a)&&(b.headers||(b.headers={}),b.headers["X-Goog-Event-Time"]=JSON.stringify(Math.round(V())));return b} function Rs(a,b){var c=b.onError?b.onError:function(){}; b.onError=function(e,f){Bs().requestComplete(a,!1);c(e,f)}; var d=b.onSuccess?b.onSuccess:function(){}; b.onSuccess=function(e,f){Bs().requestComplete(a,!0);d(e,f)}} function Js(){return qc(document.location.toString())!=="www.youtube-nocookie.com"} ;var Ss=!1,Ts=D.ytNetworklessLoggingInitializationOptions||{isNwlInitialized:Ss};E("ytNetworklessLoggingInitializationOptions",Ts);function Us(){var a;B(function(b){if(b.h==1)return b.yield(tq(),2);a=b.i;if(!a||!po()&&!T("nwl_init_require_datasync_id_killswitch")||!Js())return b.B(0);Ss=!0;Ts.isNwlInitialized=Ss;return b.yield(Ks().awaitInitialization(),0)})} ;function Vs(a){var b=this;this.config_=null;a?this.config_=a:Vq()&&(this.config_=Wq());so(function(){Qr(b)},5E3)} Vs.prototype.isReady=function(){!this.config_&&Vq()&&(this.config_=Wq());return!!this.config_}; function Rr(a,b,c,d){function e(n){n=n===void 0?!1:n;var r;if(d.retry&&h!="www.youtube-nocookie.com"&&(n||T("skip_ls_gel_retry")||g.headers["Content-Type"]!=="application/json"||(r=Or(b,c,l,k)),r)){var t=g.onSuccess,w=g.onFetchSuccess;g.onSuccess=function(G,H){Pr(r);t(G,H)}; c.onFetchSuccess=function(G,H){Pr(r);w(G,H)}}try{if(n&&d.retry&&!d.networklessOptions.bypassNetworkless)g.method="POST",d.networklessOptions.writeThenSend?Ks().writeThenSend(m,g):Ks().sendAndWrite(m,g); else if(d.compress){var x=!d.networklessOptions.writeThenSend;if(g.postBody){var z=g.postBody;typeof z!=="string"&&(z=JSON.stringify(g.postBody));Hr(m,z,g,xn,x)}else Hr(m,JSON.stringify(g.postParams),g,wn,x)}else T("web_all_payloads_via_jspb")?xn(m,g):wn(m,g)}catch(G){if(G.name==="InvalidAccessError")r&&(Pr(r),r=0),Um(Error("An extension is blocking network request."));else throw G;}r&&so(function(){Qr(a)},5E3)} !R("VISITOR_DATA")&&b!=="visitor_id"&&Math.random()<.01&&Um(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);Tm(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(n,r){if(d.onSuccess)d.onSuccess(r)}, onFetchSuccess:function(n){if(d.onSuccess)d.onSuccess(n)}, onError:function(n,r){if(d.onError)d.onError(r)}, onFetchError:function(n){if(d.onError)d.onError(n)}, timeout:d.timeout,withCredentials:!0,compress:d.compress};g.headers["Content-Type"]||(g.headers["Content-Type"]="application/json");var h="";(f=a.config_.Ge)&&(h=f);var k=a.config_.He||!1,l=Yq(k,h,d);Object.assign(g.headers,l);g.headers.Authorization&&!h&&k&&(g.headers["x-origin"]=window.location.origin);var m=cn(""+h+("/youtubei/"+a.config_.innertubeApiVersion+"/"+b),{alt:"json"});(F("ytNetworklessLoggingInitializationOptions")?Ts.isNwlInitialized:Ss)?rq().then(function(n){e(n)}):e(!1)} ;var Ws=0,Xs=td?"webkit":sd?"moz":qd?"ms":pd?"o":"";E("ytDomDomGetNextId",F("ytDomDomGetNextId")||function(){return++Ws});var Ys={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 Zs(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 Ys||(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 $s(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}} Zs.prototype.preventDefault=function(){this.event&&(this.event.returnValue=!1,this.event.preventDefault&&this.event.preventDefault())}; Zs.prototype.stopPropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopPropagation&&this.event.stopPropagation())}; Zs.prototype.stopImmediatePropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopImmediatePropagation&&this.event.stopImmediatePropagation())};var Cg=D.ytEventsEventsListeners||{};E("ytEventsEventsListeners",Cg);var at=D.ytEventsEventsCounter||{count:0};E("ytEventsEventsCounter",at); function bt(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 Bg(function(e){var f=typeof e[4]==="boolean"&&e[4]==!!d,g=Oa(e[4])&&Oa(d)&&Gg(e[4],d);return!!e.length&&e[0]==a&&e[1]==b&&e[2]==c&&(f||g)})} function ct(a,b,c,d){d=d===void 0?{}:d;if(!a||!a.addEventListener&&!a.attachEvent)return"";var e=bt(a,b,c,d);if(e)return e;e=++at.count+"";var f=!(b!="mouseenter"&&b!="mouseleave"||!a.addEventListener||"onmouseenter"in document);var g=f?function(h){h=new Zs(h);if(!Qg(h.relatedTarget,function(k){return k==a}))return h.currentTarget=a,h.type=b,c.call(a,h)}:function(h){h=new Zs(h); h.currentTarget=a;return c.call(a,h)}; g=Sm(g);a.addEventListener?(b=="mouseenter"&&f?b="mouseover":b=="mouseleave"&&f?b="mouseout":b=="mousewheel"&&"MozBoxSizing"in document.documentElement.style&&(b="MozMousePixelScroll"),dt()||typeof d==="boolean"?a.addEventListener(b,g,d):a.addEventListener(b,g,!!d.capture)):a.attachEvent("on"+b,g);Cg[e]=[a,b,c,g,d];return e} function et(a){a&&(typeof a=="string"&&(a=[a]),Wb(a,function(b){if(b in Cg){var c=Cg[b],d=c[0],e=c[1],f=c[3];c=c[4];d.removeEventListener?dt()||typeof c==="boolean"?d.removeEventListener(e,f,c):d.removeEventListener(e,f,!!c.capture):d.detachEvent&&d.detachEvent("on"+e,f);delete Cg[b]}}))} var dt=Ai(function(){var a=!1;try{var b=Object.defineProperty({},"capture",{get:function(){a=!0}}); window.addEventListener("test",null,b)}catch(c){}return a});function ft(a){this.G=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.U=ct(window,"mousemove",Ua(this.Y,this));a=Ua(this.P,this);typeof a==="function"&&(a=Sm(a));this.Z=window.setInterval(a,25)} $a(ft,I);ft.prototype.Y=function(a){a.h===void 0&&$s(a);var b=a.h;a.i===void 0&&$s(a);this.h=new xg(b,a.i)}; ft.prototype.P=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.G();this.u=d}this.o=a;this.A=this.h;this.j=(this.j+1)%4}}; ft.prototype.ba=function(){window.clearInterval(this.Z);et(this.U)};var gt={}; function ht(a){var b=a===void 0?{}:a;a=b.Xe===void 0?!1:b.Xe;b=b.re===void 0?!0:b.re;if(F("_lact",window)==null){var c=parseInt(R("LACT"),10);c=isFinite(c)?Date.now()-Math.max(c,0):-1;E("_lact",c,window);E("_fact",c,window);c==-1&&jt();ct(document,"keydown",jt);ct(document,"keyup",jt);ct(document,"mousedown",jt);ct(document,"mouseup",jt);a?ct(window,"touchmove",function(){kt("touchmove",200)},{passive:!0}):(ct(window,"resize",function(){kt("resize",200)}),b&&ct(window,"scroll",function(){kt("scroll",200)})); new ft(function(){kt("mouse",100)}); ct(document,"touchstart",jt,{passive:!0});ct(document,"touchend",jt,{passive:!0})}} function kt(a,b){gt[a]||(gt[a]=!0,ck.pa(function(){jt();gt[a]=!1},b))} function jt(){F("_lact",window)==null&&ht();var a=Date.now();E("_lact",a,window);F("_fact",window)==-1&&E("_fact",a,window);(a=F("ytglobal.ytUtilActivityCallback_"))&&a()} function lt(){var a=F("_lact",window);return a==null?-1:Math.max(Date.now()-a,0)} ;var mt=D.ytPubsubPubsubInstance||new N,nt=D.ytPubsubPubsubSubscribedKeys||{},ot=D.ytPubsubPubsubTopicToKeys||{},pt=D.ytPubsubPubsubIsSynchronous||{};function qt(a,b){var c=rt();if(c&&b){var d=c.subscribe(a,function(){function e(){nt[d]&&b.apply&&typeof b.apply=="function"&&b.apply(window,f)} var f=arguments;try{pt[a]?e():ln(e,0)}catch(g){Tm(g)}},void 0); nt[d]=!0;ot[a]||(ot[a]=[]);ot[a].push(d);return d}return 0} function st(a){var b=rt();b&&(typeof a==="number"?a=[a]:typeof a==="string"&&(a=[parseInt(a,10)]),Wb(a,function(c){b.unsubscribeByKey(c);delete nt[c]}))} function tt(a,b){var c=rt();c&&c.publish.apply(c,arguments)} function ut(a){var b=rt();if(b)if(b.clear(a),a)vt(a);else for(var c in ot)vt(c)} function rt(){return D.ytPubsubPubsubInstance} function vt(a){ot[a]&&(a=ot[a],Wb(a,function(b){nt[b]&&delete nt[b]}),a.length=0)} N.prototype.subscribe=N.prototype.subscribe;N.prototype.unsubscribeByKey=N.prototype.hc;N.prototype.publish=N.prototype.sb;N.prototype.clear=N.prototype.clear;E("ytPubsubPubsubInstance",mt);E("ytPubsubPubsubTopicToKeys",ot);E("ytPubsubPubsubIsSynchronous",pt);E("ytPubsubPubsubSubscribedKeys",nt);var wt=Symbol("injectionDeps");function xt(a){this.name=a} xt.prototype.toString=function(){return"InjectionToken("+this.name+")"}; function zt(a){this.key=a} function At(a){return new zt(a)} function Bt(){this.i=new Map;this.j=new Map;this.h=new Map} function Ct(a,b){a.i.set(b.pb,b);var c=a.j.get(b.pb);if(c)try{c.ji(a.resolve(b.pb))}catch(d){c.hi(d)}} Bt.prototype.resolve=function(a){return a instanceof zt?Dt(this,a.key,[],!0):Dt(this,a,[])}; function Dt(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.nd!==void 0)var e=d.nd;else if(d.Ef)e=d[wt]?Et(a,d[wt],c):[],e=d.Ef.apply(d,A(e));else if(d.Kc){e=d.Kc;var f=e[wt]?Et(a,e[wt],c):[];e=new (Function.prototype.bind.apply(e,[null].concat(A(f))))}else throw Error("Could not resolve providers for: "+b);c.pop();d.ri||a.h.set(b,e);return e} function Et(a,b,c){return b?b.map(function(d){return d instanceof zt?Dt(a,d.key,c,!0):Dt(a,d,c)}):[]} ;var Ft;function Gt(){Ft||(Ft=new Bt);return Ft} ;var Ht=window;function It(){var a,b;return"h5vcc"in Ht&&((a=Ht.h5vcc.traceEvent)==null?0:a.traceBegin)&&((b=Ht.h5vcc.traceEvent)==null?0:b.traceEnd)?1:"performance"in Ht&&Ht.performance.mark&&Ht.performance.measure?2:0} function Jt(a){var b=It();switch(b){case 1:Ht.h5vcc.traceEvent.traceBegin("YTLR",a);break;case 2:Ht.performance.mark(a+"-start");break;case 0:break;default:Hb(b,"unknown trace type")}} function Kt(a){var b=It();switch(b){case 1:Ht.h5vcc.traceEvent.traceEnd("YTLR",a);break;case 2:b=a+"-start";var c=a+"-end";Ht.performance.mark(c);Ht.performance.measure(a,b,c);break;case 0:break;default:Hb(b,"unknown trace type")}} ;var Lt=T("web_enable_lifecycle_monitoring")&&It()!==0,Mt=T("web_enable_lifecycle_monitoring");function Nt(a){var b,c;(c=(b=window).onerror)==null||c.call(b,a.message,"",0,0,a)} ;function Ot(a){var b=this;var c=c===void 0?0:c;var d=d===void 0?Xo():d;this.j=c;this.scheduler=d;this.i=new Ej;this.h=a;for(a={jb:0};a.jb-1&&a.plugins.splice(b,1)})}; p.transition=function(a,b){var c=this;Lt&&Kt(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&&(Pt(this.j),this.j=void 0);Rt(this,a,b);this.state=a;Lt&&Jt(this.state);d=d.action.bind(this);var e=this.plugins.filter(function(f){return f[a]}).map(function(f){return f[a]}); d(St(this,e),b)}else throw Error("no transition specified from "+this.state+" to "+a);}; function St(a,b){var c=b.filter(function(e){return Tt(a,e)===10}),d=b.filter(function(e){return Tt(a,e)!==10}); return a.A.oi?function(){var e=C.apply(0,arguments);return B(function(f){if(f.h==1)return f.yield(a.df.apply(a,[c].concat(A(e))),2);a.Od.apply(a,[d].concat(A(e)));f.h=0})}:function(){var e=C.apply(0,arguments); a.ef.apply(a,[c].concat(A(e)));a.Od.apply(a,[d].concat(A(e)))}} p.ef=function(a){for(var b=C.apply(1,arguments),c=Xo(),d=y(a),e=d.next(),f={};!e.done;f={Vb:void 0},e=d.next())f.Vb=e.value,c.Nb(function(g){return function(){Ut(g.Vb.name);Vt(function(){return g.Vb.callback.apply(g.Vb,A(b))}); Wt(g.Vb.name)}}(f))}; p.df=function(a){var b=C.apply(1,arguments),c,d,e,f,g;return B(function(h){h.h==1&&(c=Xo(),d=y(a),e=d.next(),f={});if(h.h!=3){if(e.done)return h.B(0);f.Ya=e.value;f.jc=void 0;g=function(k){return function(){Ut(k.Ya.name);var l=Vt(function(){return k.Ya.callback.apply(k.Ya,A(b))}); se(l)?k.jc=T("web_lifecycle_error_handling_killswitch")?l.then(function(){Wt(k.Ya.name)}):l.then(function(){Wt(k.Ya.name)},function(m){Nt(m); Wt(k.Ya.name)}):Wt(k.Ya.name)}}(f); c.Nb(g);return f.jc?h.yield(f.jc,3):h.B(3)}f={Ya:void 0,jc:void 0};e=d.next();return h.B(2)})}; p.Od=function(a){var b=C.apply(1,arguments),c=this,d=a.map(function(e){return{Sc:function(){Ut(e.name);Vt(function(){return e.callback.apply(e,A(b))}); Wt(e.name)}, priority:Tt(c,e)}}); d.length&&(this.j=new Ot(d))}; function Tt(a,b){var c,d;return(d=(c=a.o)!=null?c:b.priority)!=null?d:0} function Ut(a){Lt&&a&&Jt(a)} function Wt(a){Lt&&a&&Kt(a)} function Rt(a,b,c){Mt&&console.groupCollapsed&&console.groupEnd&&(console.groupCollapsed("["+a.constructor.name+"] '"+a.state+"' to '"+b+"'"),console.log("with message: ",c),console.groupEnd())} da.Object.defineProperties(Qt.prototype,{currentState:{configurable:!0,enumerable:!0,get:function(){return this.state}}}); function Vt(a){if(T("web_lifecycle_error_handling_killswitch"))return a();try{return a()}catch(b){Nt(b)}} ;function Xt(a){Qt.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.u},{from:"application_navigating",to:"application_navigating",action:function(){}}, {from:"none",to:"none",action:function(){}}]} var Yt;v(Xt,Qt);Xt.prototype.i=function(a,b){var c=this;this.h=so(function(){c.currentState==="application_navigating"&&c.transition("none")},5E3); a(b==null?void 0:b.event)}; Xt.prototype.u=function(a,b){this.h&&(ck.qa(this.h),this.h=null);a(b==null?void 0:b.event)}; function Zt(){Yt||(Yt=new Xt);return Yt} ;var $t=[];E("yt.logging.transport.getScrapedGelPayloads",function(){return $t});function au(){this.store={};this.h={}} au.prototype.storePayload=function(a,b){a=bu(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}; au.prototype.smartExtractMatchingEntries=function(a){if(!a.keys.length)return[];for(var b=cu(this,a.keys.splice(0,1)[0]),c=[],d=0;d=1E3?d():c>=a?ou||(ou=Cu(function(){d();ou=void 0},0)):f-h>=10&&(Du(e,b.tier),g.o=f)} function yu(a,b){if(a.endpoint==="log_event"){T("more_accurate_gel_parser")&&su().storePayload({isJspb:!1},a.payload);uu(a);var c=vu(a),d=new Map;d.set(c,[a.payload]);var e=wu(a.payload)||"";b&&(iu=new b);return new Bi(function(f,g){iu&&iu.isReady()?Eu(d,iu,f,g,{bypassNetworkless:!0},!0,e==="gelDebuggingEvent"):f()})}} function vu(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);qu[a.cttAuthInfo.token]=c;b=a.cttAuthInfo.token}return b} function Au(a,b,c,d){a=a===void 0?{}:a;c=c===void 0?!1:c;new Bi(function(e,f){var g=Bu(c,d),h=g.j;g.j=!1;Fu(g.i);Fu(g.h);g.h=0;iu&&iu.isReady()?d===void 0&&T("enable_web_tiered_gel")?Gu(e,f,a,b,c,300,h):Gu(e,f,a,b,c,d,h):(Du(c,d),e())})} function Gu(a,b,c,d,e,f,g){var h=iu;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")?su().smartExtractMatchingEntries({keys:[l,e],sizeLimit:1E3}):su().extractMatchingEntries(e),k.set(d,f);else for(d=y(Object.keys(ru)),l=d.next();!l.done;l=d.next())l=l.value,e=T("enable_web_tiered_gel")?su().smartExtractMatchingEntries({keys:[{isJspb:!1,cttAuthInfo:l,tier:f}, {isJspb:!1,cttAuthInfo:l}],sizeLimit:1E3}):su().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 ru[l];Eu(k,h,a,b,c,!1,g)} function Du(a,b){function c(){Au({writeThenSend:!0},void 0,a,b)} a=a===void 0?!1:a;b=b===void 0?200:b;var d=Bu(a,b),e=d===nu||d===mu?5E3:gu;T("web_gel_timeout_cap")&&!d.h&&(e=Cu(function(){c()},e),d.h=e); Fu(d.i);e=R("LOGGING_BATCH_TIMEOUT",on("web_gel_debounce_ms",1E4));T("shorten_initial_gel_batch_timeout")&&pu&&(e=fu);e=Cu(function(){on("gel_min_batch_size")>0?su().getSequenceCount({cttAuthInfo:void 0,isJspb:a,tier:b})>=hu&&c():c()},e); d.i=e} function Eu(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=y(a);var m=a.next();for(g={};!m.done;g={Xc:void 0,batchRequest:void 0,dangerousLogToVisitorSession:void 0,bd:void 0,Zc:void 0},m=a.next()){var n=y(m.value);m=n.next().value;n=n.next().value;g.batchRequest=Ig({context:Xq(b.config_||Wq())});if(!Ma(n)&&!T("throw_err_when_logevent_malformed_killswitch")){d();break}g.batchRequest.events=n;(n=qu[m])&& Hu(g.batchRequest,m,n);delete qu[m];g.dangerousLogToVisitorSession=m==="visitorOnlyApprovedKey";Iu(g.batchRequest,h,g.dangerousLogToVisitorSession);T("always_send_and_write")&&(e.writeThenSend=!1);g.bd=function(r){T("start_client_gcf")&&ck.pa(function(){return B(function(t){return t.yield(Ju(r),0)})}); k--;k||c()}; g.Xc=0;g.Zc=function(r){return function(){r.Xc++;if(e.bypassNetworkless&&r.Xc===1)try{Rr(b,l,r.batchRequest,Ku({writeThenSend:!0},r.dangerousLogToVisitorSession,r.bd,r.Zc,f)),pu=!1}catch(t){Tm(t),d()}k--;k||c()}}(g); try{Rr(b,l,g.batchRequest,Ku(e,g.dangerousLogToVisitorSession,g.bd,g.Zc,f)),pu=!1}catch(r){Tm(r),d()}}} function Ku(a,b,c,d,e){a={retry:!0,onSuccess:c,onError:d,networklessOptions:a,dangerousLogToVisitorSession:b,Bh:!!e,headers:{},postBodyFormat:"",postBody:"",compress:T("compress_gel")||T("compress_gel_lr")};Lu()&&(a.headers["X-Goog-Request-Time"]=JSON.stringify(Math.round(V())));return a} function Iu(a,b,c){Lu()||(a.requestTimeMs=String(b));T("unsplit_gel_payloads_in_logs")&&(a.unsplitGelPayloadsInLogs=!0);!c&&(b=R("EVENT_ID"))&&((c=R("BATCH_CLIENT_COUNTER")||0)||(c=Math.floor(Math.random()*65535/2)),c++,c>65535&&(c=1),Om("BATCH_CLIENT_COUNTER",c),a.serializedClientEventId={serializedEventId:b,clientCounter:String(c)})} function Hu(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 uu(a){var b=nn("il_payload_scraping");b=(b!==void 0?String(b):"")==="enable_il_payload_scraping";if(!F("yt.logging.transport.enableScrapingForTest"))if(b)$t=[],E("yt.logging.transport.enableScrapingForTest",!0),E("yt.logging.transport.scrapedPayloadsForTesting",$t),E("yt.logging.transport.payloadToScrape","visualElementShown visualElementHidden visualElementAttached screenCreated visualElementGestured visualElementStateChanged".split(" ")),E("yt.logging.transport.getScrapedPayloadFromClientEventsFunction"), E("yt.logging.transport.scrapeClientEvent",!0);else return;b=F("yt.logging.transport.scrapedPayloadsForTesting");var c=F("yt.logging.transport.payloadToScrape"),d=F("yt.logging.transport.scrapeClientEvent");if(c&&c.length>=1)for(var e=0;e=5))){d=[];e=y(Tu);for(f=e.next();!f.done;f=e.next()){f=f.value;try{f()&&d.push(f())}catch(z){}}d=[].concat(A(Su),A(d));var k=ic(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 w="params."+r,x=Rn(t[r]);c[w]=x;n+=w.length+x.length;if(n>500)break}}else c.params=Rn(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=Ln();c=y(a.Za);for(d=c.next();!d.done;d=c.next())if(d=d.value,r.message&&r.message.match(d.bi)){a=d.weight;break a}a=y(a.Ua);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=y(Gn);for(c=a.next();!c.done;c=a.next())if(c=c.value,c.Cc[r.name])for(e=y(c.Cc[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 Av(){return pg()||(vd||wd)&&mp("applewebkit")&&!mp("version")&&(!mp("safari")||mp("gsa/"))||ud&&mp("version/")?!0:R("EOM_VISITOR_DATA")?!1:!0} ;function Bv(a){var b=a.docid||a.video_id||a.videoId||a.id;if(b)return b;b=a.raw_player_response;b||(a=a.player_response)&&(b=JSON.parse(a));return b&&b.videoDetails&&b.videoDetails.videoId||null} ;function Cv(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 um)if(um[d]==c.embeddedPlayerMode){b=um[d];break b}}return b==="EMBEDDED_PLAYER_MODE_PFL"} ;function Dv(a){jb.call(this,a.message||a.description||a.name);this.isMissing=a instanceof Ev;this.isTimeout=a instanceof tv&&a.errorCode=="net.timeout";this.isCanceled=a instanceof Ki} v(Dv,jb);Dv.prototype.name="BiscottiError";function Ev(){jb.call(this,"Biscotti ID is missing from server")} v(Ev,jb);Ev.prototype.name="BiscottiMissingError";var rv={format:"RAW",method:"GET",timeout:5E3,withCredentials:!0},Fv=null;function Gv(){if(T("disable_biscotti_fetch_entirely_for_all_web_clients"))return Error("Biscotti id fetching has been disabled entirely.");if(!Av())return Error("User has not consented - not fetching biscotti id.");var a=R("PLAYER_VARS",{});if(Fg(a)=="1")return Error("Biscotti ID is not available in private embed mode");if(Cv(a))return Error("Biscotti id fetching has been disabled for pfl.")} function Hm(){var a=Gv();if(a!==void 0)return Gi(a);Fv||(Fv=qv().then(Hv).Jc(function(b){return Iv(2,b)})); return Fv} function Hv(a){a=a.xhr.responseText;if(a.lastIndexOf(")]}'",0)!=0)throw new Ev;a=JSON.parse(a.substr(4));if((a.type||1)>1)throw new Ev;a=a.id;Im(a);Fv=vv(a);Jv(18E5,2);return a} function Iv(a,b){b=new Dv(b);Im("");Fv=wv(b);a>0&&Jv(12E4,a-1);throw b;} function Jv(a,b){ln(function(){qv().then(Hv,function(c){return Iv(b,c)}).Jc(zi)},a)} function Kv(){try{var a=F("yt.ads.biscotti.getId_");return a?a():Hm()}catch(b){return Gi(b)}} ;var Qb=oa(["data-"]);function Lv(a){a&&(a.dataset?a.dataset[Mv()]="true":Rb(a))} function Nv(a){return a?a.dataset?a.dataset[Mv()]:a.getAttribute("data-loaded"):null} var Ov={};function Mv(){return Ov.loaded||(Ov.loaded="loaded".replace(/\-([a-z])/g,function(a,b){return b.toUpperCase()}))} ;function Pv(a){a=a||{};var b={},c={};this.url=a.url||"";this.args=a.args||Hg(b);this.assets=a.assets||{};this.attrs=a.attrs||Hg(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||{}} Pv.prototype.clone=function(){var a=new Pv,b;for(b in this)if(this.hasOwnProperty(b)){var c=this[b];La(c)=="object"?a[b]=Hg(c):a[b]=c}return a};var Qv=["att/get"],Rv=["share/get_share_panel"],Sv=["share/get_web_player_share_panel"],Tv=["feedback"],Uv=["notification/modify_channel_preference"],Vv=["browse/edit_playlist"],Wv=["subscription/subscribe"],Xv=["subscription/unsubscribe"];var Yv=window.yt&&window.yt.msgs_||window.ytcfg&&window.ytcfg.msgs||{};E("yt.msgs_",Yv);function Zv(a){Jm(Yv,arguments)} ;function $v(a,b,c){aw(a,b,c===void 0?null:c)} function bw(a){a=cw(a);var b=document.getElementById(a);b&&(ut(a),b.parentNode.removeChild(b))} function dw(a,b){a&&b&&(a=""+Pa(b),(a=ew[a])&&st(a))} function aw(a,b,c){c=c===void 0?null:c;var d=cw(a),e=document.getElementById(d),f=e&&Nv(e),g=e&&!f;f?b&&b():(b&&(f=qt(d,b),b=""+Pa(b),ew[b]=f),g||(e=fw(a,d,function(){Nv(e)||(Lv(e),tt(d),ln(function(){ut(d)},0))},c)))} function fw(a,b,c,d){d=d===void 0?null:d;var e=Og("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);Ob(e,lm(a));a=document.getElementsByTagName("head")[0]||document.body;a.insertBefore(e,a.firstChild);return e} function cw(a){var b=document.createElement("a");Gb(b,a);a=b.href.replace(/^[a-zA-Z]+:\/\//,"//");return"js-"+nc(a)} var ew={};function gw(a){var b=hw(a),c=document.getElementById(b),d=c&&Nv(c);d||c&&!d||(c=iw(a,b,function(){if(!Nv(c)){Lv(c);tt(b);var e=Va(ut,b);ln(e,0)}}))} function iw(a,b,c){var d=document.createElement("link");d.id=b;d.onload=function(){c&&setTimeout(c,0)}; a=lm(a);Ub(d,a);(document.getElementsByTagName("head")[0]||document.body).appendChild(d);return d} function hw(a){var b=Og("A");Gb(b,new yb(a));a=b.href.replace(/^[a-zA-Z]+:\/\//,"//");return"css-"+nc(a)} ;function jw(a){var b=C.apply(1,arguments);if(!kw(a)||b.some(function(d){return!kw(d)}))throw Error("Only objects may be merged."); b=y(b);for(var c=b.next();!c.done;c=b.next())lw(a,c.value)} function lw(a,b){for(var c in b)if(kw(b[c])){if(c in a&&!kw(a[c]))throw Error("Cannot merge an object into a non-object.");c in a||(a[c]={});lw(a[c],b[c])}else if(mw(b[c])){if(c in a&&!mw(a[c]))throw Error("Cannot merge an array into a non-array.");c in a||(a[c]=[]);nw(a[c],b[c])}else a[c]=b[c];return a} function nw(a,b){b=y(b);for(var c=b.next();!c.done;c=b.next())c=c.value,kw(c)?a.push(lw({},c)):mw(c)?a.push(nw([],c)):a.push(c);return a} function kw(a){return typeof a==="object"&&!Array.isArray(a)} function mw(a){return typeof a==="object"&&Array.isArray(a)} ;var ow="absolute_experiments app conditional_experiments debugcss debugjs expflag forced_experiments pbj pbjreload sbb spf spfreload sr_bns_address sttick".split(" "); function pw(a,b){var c=c===void 0?!0:c;var d=R("VALID_SESSION_TEMPDATA_DOMAINS",[]),e=qc(window.location.href);e&&d.push(e);e=qc(a);if(Vb(d,e)>=0||!e&&a.lastIndexOf("/",0)==0)if(d=document.createElement("a"),Gb(d,a),a=d.href)if(a=sc(a),a=tc(a))if(c&&!b.csn&&(b.itct||b.ved)&&(b=Object.assign({csn:nv()},b)),f){var f=parseInt(f,10);isFinite(f)&&f>0&&qw(a,b,f)}else qw(a,b)} function qw(a,b,c){a=rw(a);b=b?wc(b):"";c=c||5;Av()&&Yn(a,b,c)} function rw(a){for(var b=y(ow),c=b.next();!c.done;c=b.next())a=Bc(a,c.value);return"ST-"+nc(a).toString(36)} ;function sw(a){cr.call(this,1,arguments);this.csn=a} v(sw,cr);var lr=new dr("screen-created",sw),tw=[],uw=0,vw=new Map,ww=new Map,xw=new Map; function yw(a,b,c,d,e){e=e===void 0?!1:e;for(var f=zw({cttAuthInfo:pv(b)||void 0},b),g=y(d),h=g.next();!h.done;h=g.next()){h=h.value;var k=h.getAsJson();(Dg(k)||!k.trackingParams&&!k.veType)&&Wu(Error("Child VE logged with no data"));if(T("no_client_ve_attach_unless_shown")){var l=Aw(h,b);if(k.veType&&!ww.has(l)&&!xw.has(l)&&!e){if(!T("il_attach_cache_limit")||vw.size<1E3){vw.set(l,[a,b,c,h]);return}T("il_attach_cache_limit")&&vw.size>1E3&&Wu(new U("IL Attach cache exceeded limit"))}h=Aw(c,b);vw.has(h)? Bw(c,b):xw.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:Yb(d,function(m){return m.getAsJson()})}; b==="UNDEFINED_CSN"?Cw("visualElementAttached",f,c):a?Nu("visualElementAttached",c,a,f):gp("visualElementAttached",c,f)} function Cw(a,b,c){tw.push({We:a,payload:c,Wh:void 0,options:b});uw||(uw=mr())} function nr(a){if(tw){for(var b=y(tw),c=b.next();!c.done;c=b.next())c=c.value,c.payload&&(c.payload.csn=a.csn,gp(c.We,c.payload,c.options));tw.length=0}uw=0} function Aw(a,b){return""+a.getAsJson().veType+a.getAsJson().veCounter+b} function Bw(a,b){a=Aw(a,b);vw.has(a)&&(b=vw.get(a)||[],yw(b[0],b[1],b[2],[b[3]],!0),vw.delete(a))} function zw(a,b){T("log_sequence_info_on_gel_web")&&(a.sequenceGroup=b);return a} ;function Dw(){try{return!!self.localStorage}catch(a){return!1}} ;function Ew(a){a=a.match(/(.*)::.*::.*/);if(a!==null)return a[1]} function Fw(a){if(Dw()){var b=Object.keys(window.localStorage);b=y(b);for(var c=b.next();!c.done;c=b.next()){c=c.value;var d=Ew(c);d===void 0||a.includes(d)||self.localStorage.removeItem(c)}}} function Gw(){if(!Dw())return!1;var a=qo(),b=Object.keys(window.localStorage);b=y(b);for(var c=b.next();!c.done;c=b.next())if(c=Ew(c.value),c!==void 0&&c!==a)return!0;return!1} ;function Hw(){var a=!1;try{a=!!window.sessionStorage.getItem("session_logininfo")}catch(b){a=!0}return(R("INNERTUBE_CLIENT_NAME")==="WEB"||R("INNERTUBE_CLIENT_NAME")==="WEB_CREATOR")&&a} function Iw(){var a=a===void 0?!0:a;try{window.sessionStorage.removeItem("stickiness_reload");window.sessionStorage.removeItem("session_logininfo");Om("LOGIN_INFO","");a&&window.sessionStorage.setItem("from_switch_account","1");a=!0;a=a===void 0?!1:a;var b,c=Jw;c||(c=document.querySelector("#persist_identity"));if(b=c){var d=b.src?(new URL(b.src)).origin:"*";if(a){var e;(e=b.contentWindow)==null||e.postMessage({action:"clear"},d)}else if(!(Number(window.sessionStorage.getItem("stickiness_reload"))>= 2)){var f=window.sessionStorage.getItem("session_logininfo");if(f){var g;(g=b.contentWindow)==null||g.postMessage({loginInfo:f},d)}}}}catch(h){}} function Kw(a){if(a)if(a.startsWith("https://accounts.google.com/AddSession"))Iw();else if(a.startsWith("https://accounts.google.com/ServiceLogin"))Iw();else{var b;if(b=a.startsWith("https://myaccount.google.com"))b=(a instanceof Hk?a.clone():new Hk(a)).h.endsWith("/youtubeoptions");b&&Iw()}if(R("LOGGED_IN",!0)&&Hw()){b=R("VALID_SESSION_TEMPDATA_DOMAINS",[]);var c=qc(window.location.href);c&&b.push(c);c=qc(a);Vb(b,c)>=0||!c&&a.lastIndexOf("/",0)==0?(b=sc(a),(b=tc(b))?(b=rw(b),b=(b=Zn(b)||null)?an(b): {}):b=null):b=null;b==null&&(b={});c=b;var d=void 0;Hw()?(d||(d=R("LOGIN_INFO")),d?(c.session_logininfo=d,c=!0):c=!1):c=!1;c&&pw(a,b)}} var Jw=null;function Lw(a,b,c){b=b===void 0?{}:b;c=c===void 0?!1:c;var d=R("EVENT_ID");d&&(b.ei||(b.ei=d));b&&pw(a,b);if(c)return!1;Kw(a);var e=e===void 0?{}:e;var f=f===void 0?"":f;var g=g===void 0?window:g;b=xc(a,e);Kw(b);a=void 0;a=a===void 0?Cb:a;a:if(f=b+f,a=a===void 0?Cb:a,!(f instanceof yb)){for(b=0;b6E4&&delete ux[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||Wu(c)),!0):!1} ;var yx=window;function zx(){this.timing={};this.clearResourceTimings=function(){}; this.webkitClearResourceTimings=function(){}; this.mozClearResourceTimings=function(){}; this.msClearResourceTimings=function(){}; this.oClearResourceTimings=function(){}} function Ax(){var a;if(T("csi_use_performance_navigation_timing")||T("csi_use_performance_navigation_timing_tvhtml5")){var b,c,d,e=X==null?void 0:(a=X.getEntriesByType)==null?void 0:(b=a.call(X,"navigation"))==null?void 0:(c=b[0])==null?void 0:(d=c.toJSON)==null?void 0:d.call(c);e?(e.requestStart=Bx(e.requestStart),e.responseEnd=Bx(e.responseEnd),e.redirectStart=Bx(e.redirectStart),e.redirectEnd=Bx(e.redirectEnd),e.domainLookupEnd=Bx(e.domainLookupEnd),e.connectStart=Bx(e.connectStart),e.connectEnd= Bx(e.connectEnd),e.responseStart=Bx(e.responseStart),e.secureConnectionStart=Bx(e.secureConnectionStart),e.domainLookupStart=Bx(e.domainLookupStart),e.isPerformanceNavigationTiming=!0,a=e):a=X.timing}else a=T("csi_performance_timing_to_object")?JSON.parse(JSON.stringify(X.timing)):X.timing;return a} function Bx(a){return Math.round(Cx()+a)} function Cx(){return(T("csi_use_time_origin")||T("csi_use_time_origin_tvhtml5"))&&X.timeOrigin?Math.floor(X.timeOrigin):X.timing.navigationStart} var X=yx.performance||yx.mozPerformance||yx.msPerformance||yx.webkitPerformance||new zx;var Dx=!1,Ex=!1,Fx={'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",'script[name="embed_client"]':"ecj",'link[rel="stylesheet"][name="embed-ui"]':"ecc"};Ua(X.clearResourceTimings||X.webkitClearResourceTimings||X.mozClearResourceTimings||X.msClearResourceTimings||X.oClearResourceTimings||zi,X);function Gx(a,b){if(!T("web_csi_action_sampling_enabled")||!ix(b).actionDisabled){var c=qx(b||"");jw(c.info,a);a.loadType&&(c=a.loadType,kx(b).loadType=c);jw(nx(b),a);c=ox(b);b=ix(b).cttAuthInfo;wx().info(a,c,b)}} function Hx(){var a,b,c,d;return((d=Gt().resolve(At(Qq))==null?void 0:(a=Rq())==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 Ix(a,b,c){if(!T("web_csi_action_sampling_enabled")||!ix(c).actionDisabled){var d=ox(c),e;if(e=T("web_csi_debug_sample_enabled")&&d){(Gt().resolve(At(Qq))==null?0:Rq())&&!Ex&&(Ex=!0,Ix("gcfl",V(),c));var f,g,h;e=(Gt().resolve(At(Qq))==null?void 0:(f=Rq())==null?void 0:(g=f.loggingHotConfig)==null?void 0:(h=g.csiConfig)==null?void 0:h.debugSampleWeight)||0;if(f=e!==0)b:{f=Hx();if(f.length>0)for(g=0;gc.duration?d:c},{duration:0}))&&b.startTime>0&&b.responseEnd>0&&(Ix("wffs",Bx(b.startTime)),Ix("wffe",Bx(b.responseEnd)))} function Ox(a){var b=Px("aft",a);if(b)return b;b=R((a||"")+"TIMING_AFT_KEYS",["ol"]);for(var c=b.length,d=0;d0&&Gx(c);c={isNavigation:!0,actionType:rx[R("TIMING_ACTION")]||"LATENCY_ACTION_UNKNOWN"};var d=R("PREVIOUS_ACTION");d&&(c.previousAction=rx[d]||"LATENCY_ACTION_UNKNOWN");if(d=R("CLIENT_PROTOCOL"))c.httpProtocol=d;if(d=R("CLIENT_TRANSPORT"))c.transportProtocol=d;(d=nv())&&d!=="UNDEFINED_CSN"&&(c.clientScreenNonce=d);d=Kx();if(d===1||d===-1)c.isVisible=!0;kx();jx(); c.loadType="cold";d=jx();var e=Ax(),f=Cx(),g=R("CSI_START_TIMESTAMP_MILLIS",0);g>0&&!T("embeds_web_enable_csi_start_override_killswitch")&&(f=g);f&&(Ix("srt",e.responseStart),d.prerender!==1&&Ix("_start",f,void 0));d=Qx();d>0&&Ix("fpt",d);d=Ax();d.isPerformanceNavigationTiming&&Gx({performanceNavigationTiming:!0},void 0);Ix("nreqs",d.requestStart,void 0);Ix("nress",d.responseStart,void 0);Ix("nrese",d.responseEnd,void 0);d.redirectEnd-d.redirectStart>0&&(Ix("nrs",d.redirectStart,void 0),Ix("nre", d.redirectEnd,void 0));d.domainLookupEnd-d.domainLookupStart>0&&(Ix("ndnss",d.domainLookupStart,void 0),Ix("ndnse",d.domainLookupEnd,void 0));d.connectEnd-d.connectStart>0&&(Ix("ntcps",d.connectStart,void 0),Ix("ntcpe",d.connectEnd,void 0));d.secureConnectionStart>=Cx()&&d.connectEnd-d.secureConnectionStart>0&&(Ix("nstcps",d.secureConnectionStart,void 0),Ix("ntcpe",d.connectEnd,void 0));X&&"getEntriesByType"in X&&Nx();d=[];if(document.querySelector&&X&&X.getEntriesByName)for(var h in Fx)Fx.hasOwnProperty(h)&& (e=Fx[h],Mx(h,e)&&d.push(e));if(d.length>0)for(c.resourceInfo=[],h=y(d),d=h.next();!d.done;d=h.next())c.resourceInfo.push({resourceCache:d.value});Gx(c);c=mx();c.preLoggedGelInfos||(c.preLoggedGelInfos=[]);h=c.preLoggedGelInfos;c=nx();d=void 0;for(e=0;e-1&&(delete sh["@type"],Wa=sh);x&&a.h.has(x)&&a.h.delete(x);((Ns=b.config)==null?0:Ns.cf)&&Vx(b.config.cf);if(Wa||(Os=a.i)==null||!Os.Dh(b.input,b.Ga)){ha.B(15);break}return ha.yield(a.i.Xh(b.input,b.Ga),16);case 16:Wa=ha.i;case 15:return ly(a,Wa,b),((Ps=b.config)==null?0:Ps.Ye)&&Vx(b.config.Ye),d(), ha.return(Wa||void 0)}})} function gy(a,b){a:{a=a.u;var c,d=(c=eu(b,tm))==null?void 0:c.signal;if(d&&a.dc&&(c=a.dc[d])){var e=c();break a}var f;if((c=(f=eu(b,rm))==null?void 0:f.request)&&a.le&&(f=a.le[c])){e=f();break a}for(e in b)if(a.Nc[e]&&(b=a.Nc[e])){e=b();break a}e=void 0}if(e!==void 0)return Promise.resolve(e)} function iy(a,b){var c,d,e,f;return B(function(g){if(g.h==1){e=(c=a)==null?void 0:(d=c.Qb)==null?void 0:d.sessionIndex;var h=g.yield;var k=Wn(0,{sessionIndex:e});if(!(k instanceof Bi)){var l=new Bi(zi);Ci(l,2,k);k=l}return h.call(g,k,2)}f=g.i;return g.return(Promise.resolve(Object.assign({},Xw(b),f)))})} function hy(a,b){var c;a=a==null?void 0:(c=a.Qb)==null?void 0:c.sessionIndex;c=Wn(0,{sessionIndex:a});return Object.assign({},Xw(b),c)} ;var my=new xt("INNERTUBE_TRANSPORT_TOKEN");function ny(){} v(ny,ex);ny.prototype.j=function(){return Wv}; ny.prototype.i=function(a){return eu(a,Fm)||void 0}; ny.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(ny.prototype,{o:{configurable:!0,enumerable:!0,get:function(){return!0}}});function oy(){} v(oy,ex);oy.prototype.j=function(){return Xv}; oy.prototype.i=function(a){return eu(a,Em)||void 0}; oy.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(oy.prototype,{o:{configurable:!0,enumerable:!0,get:function(){return!0}}});var py=new xt("SHARE_CLIENT_PARAMS_PROVIDER_TOKEN");function qy(a){this.H=a} v(qy,ex);qy.prototype.j=function(){return Rv}; qy.prototype.i=function(a){return eu(a,ym)||eu(a,zm)||eu(a,xm)}; qy.prototype.h=function(a,b){b.serializedShareEntity&&(a.serializedSharedEntity=b.serializedShareEntity);if(b.clientParamIdentifier){var c;if((c=this.H)==null?0:c.h(b.clientParamIdentifier))a.clientParams=this.H.i(b.clientParamIdentifier)}}; qy[wt]=[py];function ry(){} v(ry,ex);ry.prototype.j=function(){return Tv}; ry.prototype.i=function(a){return eu(a,wm)||void 0}; ry.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(ry.prototype,{o:{configurable:!0,enumerable:!0,get:function(){return!0}}});function sy(){} v(sy,ex);sy.prototype.j=function(){return Uv}; sy.prototype.i=function(a){return eu(a,Cm)||void 0}; sy.prototype.h=function(a,b){b.params&&(a.params=b.params);b.secondaryParams&&(a.secondaryParams=b.secondaryParams)};function ty(){} v(ty,ex);ty.prototype.j=function(){return Vv}; ty.prototype.i=function(a){return eu(a,Bm)||void 0}; ty.prototype.h=function(a,b){b.actions&&(a.actions=b.actions);b.params&&(a.params=b.params);b.playlistId&&(a.playlistId=b.playlistId)};function uy(){} v(uy,ex);uy.prototype.j=function(){return Sv}; uy.prototype.i=function(a){return eu(a,Am)}; uy.prototype.h=function(a,b,c){c=c===void 0?{}:c;b.serializedShareEntity&&(a.serializedSharedEntity=b.serializedShareEntity);c.includeListId&&(a.includeListId=!0)};var vy=new xt("FETCH_FN_TOKEN"),wy=new xt("PARSE_FN_TOKEN"),xy=new xt("WINDOW_REQUEST_TOKEN");function yy(a,b){var c=C.apply(2,arguments);a=a===void 0?0:a;U.call(this,b,c);this.errorType=a;Object.setPrototypeOf(this,this.constructor.prototype)} v(yy,U);var zy=new xt("NETWORK_SLI_TOKEN");function Ay(a,b,c,d){this.h=a;this.i=b;this.j=c;this.o=d} Ay.prototype.fetch=function(a,b,c){var d=this,e,f,g;return B(function(h){e=By(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){Wu(k); if((c==null?0:c.ue)&&k instanceof yy&&k.errorType===1)return Promise.reject(k)}))})}; function By(a,b,c){if(a.h){var d=rc(Bc(b,"key"))||"/UNKNOWN_PATH";a.h.start(d)}d=c;T("wug_networking_gzip_request")&&(d=Kr(c));var e;return new ((e=a.o)!=null?e:window.Request)(b,d)} Ay.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.Ke)&&a.ok)return Uf(b.Ke,e);e=e.replace(")]}'","");if((b==null?0:b.ue)&&e)try{var f=d(e)}catch(h){throw new yy(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.Rh(),c=c.then(function(e){Wu(new U("Error: API fetch failed",a.status,a.url,e));return Object.assign({},e,{errorMetadata:{status:a.status}})})); return c}; Ay[wt]=[At(zy),At(vy),At(wy),At(xy)];var Cy=new xt("NETWORK_MANAGER_TOKEN");var Dy;function Ey(a){var b=new Aj;if(a.interpreterJavascript){var c=jm(a.interpreterJavascript);c=Mb(c).toString();var d=new yj;Rf(d,6,c);Mf(b,yj,1,d,le)}else a.interpreterUrl&&(c=km(a.interpreterUrl),c=sb(c).toString(),d=new zj,Rf(d,4,c),Mf(b,zj,2,d,le));a.interpreterHash&&Sf(b,3,a.interpreterHash);a.program&&Sf(b,4,a.program);a.globalName&&Sf(b,5,a.globalName);a.clientExperimentsStateBlob&&Sf(b,7,a.clientExperimentsStateBlob);return b} function Fy(a){var b={};a=y(a.split("&"));for(var c=a.next();!c.done;c=a.next())c=c.value.split("="),c.length===2&&(b[c[0]]=c[1]);return b} ;function Hc(){if(T("bg_st_hr"))return"havuokmhhs-0";var a,b=((a=performance)==null?void 0:a.timeOrigin)||0;return"havuokmhhs-"+Math.floor(b)} function Gy(a){this.h=a} Gy.prototype.bindInnertubeChallengeFetcher=function(a){this.h.bicf(a)}; Gy.prototype.registerChallengeFetchedCallback=function(a){this.h.bcr(a)}; Gy.prototype.getLatestChallengeResponse=function(){return this.h.blc()}; function Hy(){return new Promise(function(a){var b=window.top;b.ntpevasrs!==void 0?a(new Gy(b.ntpevasrs)):(b.ntpqfbel===void 0&&(b.ntpqfbel=[]),b.ntpqfbel.push(function(c){a(new Gy(c))}))})} ;var Iy=[],Jy=!1;function Ky(){if(Av()){var a=R("PLAYER_VARS",{});if(Fg(a)!="1"&&!Cv(a)){var b=function(){Jy=!0;"google_ad_status"in window?Om("DCLKSTAT",1):Om("DCLKSTAT",2)}; try{$v("//static.doubleclick.net/instream/ad_status.js",b)}catch(c){}Iy.push(ck.pa(function(){if(!(Jy||"google_ad_status"in window)){try{dw("//static.doubleclick.net/instream/ad_status.js",b)}catch(c){}Jy=!0;Om("DCLKSTAT",3)}},5E3))}}} function Ly(){var a=Number(R("DCLKSTAT",0));return isNaN(a)?0:a} ;function Y(a){this.h=a} [new Y("b.f_"),new Y("j.s_"),new Y("r.s_"),new Y("e.h_"),new Y("i.s_"),new Y("s.t_"),new Y("p.h_"),new Y("s.i_"),new Y("f.i_"),new Y("a.b_"),new Y("a.o_"),new Y("g.o_"),new Y("p.i_"),new Y("p.m_"),new Y("n.k_"),new Y("i.f_"),new Y("a.s_"),new Y("m.c_"),new Y("n.h_"),new Y("o.p_"),new Y("m.p_"),new Y("o.a_"),new Y("d.p_")].reduce(function(a,b){a[b.h]=b;return a},{});function My(a,b,c){var d=this;this.network=a;this.options=b;this.o=c;this.h=null;if(b.wi){var e=new Ej;this.h=e.promise;D.ytAtRC&&ck.Sa(function(){var f,g;return B(function(h){if(h.h==1){if(!D.ytAtRC)return h.return();f=Ny(null);return h.yield(d.ib(f),2)}g=h.i;D.ytAtRC&&D.ytAtRC(JSON.stringify(g));h.h=0})},2); Hy().then(function(f){var g,h,k,l;return B(function(m){if(m.h==1)return f.bindInnertubeChallengeFetcher(function(n){return d.ib(Ny(n))}),m.yield(Gc(),2); g=m.i;h=f.getLatestChallengeResponse();k=h.challenge;if(!k)throw Error("BGE_MACIL");l={challenge:k,gb:Fy(k),vm:g,bgChallenge:new Aj};e.resolve(l);f.registerChallengeFetchedCallback(function(n){n=n.challenge;if(!n)throw Error("BGE_MACR");n={challenge:n,gb:Fy(n),vm:g,bgChallenge:new Aj};d.h=Promise.resolve(n)}); m.h=0})})}else b.preload&&Oy(this,new Promise(function(f){so(function(){f(Py(d))},0)}))} My.prototype.j=function(){var a=this;return B(function(b){return b.h==1?b.yield(Promise.race([a.h,null]),2):b.return(!!b.i)})}; My.prototype.i=function(a,b,c){var d=this,e,f,g;return B(function(h){d.h===null&&Oy(d,Py(d));e=!1;f={};g=function(){var k,l,m;return B(function(n){switch(n.h){case 1:return n.yield(d.h,2);case 2:k=n.i;f.challenge=k.challenge;if(!k.vm){"c1a"in k.gb&&(f.error="ATTESTATION_ERROR_VM_NOT_INITIALIZED");n.B(3);break}l=Object.assign({},{c:k.challenge,e:a},b);va(n,4);e=!0;if(T("attbs")&&!T("attmusi")){m=k.vm.ld({xb:l});n.B(6);break}return n.yield(k.vm.snapshot({xb:l}),7);case 7:m=n.i;case 6:m?f.webResponse= m:f.error="ATTESTATION_ERROR_VM_NO_RESPONSE";wa(n,3);break;case 4:xa(n),f.error="ATTESTATION_ERROR_VM_INTERNAL_ERROR";case 3:if(a==="ENGAGEMENT_TYPE_PLAYBACK"){var r=k.gb,t={};r.c6a&&(t.reportingStatus=String(Number(r.c)^Ly()));r.c6b&&(t.broadSpectrumDetectionResult=String(Number(r.c)^Number(R("CATSTAT",0))));f.adblockReporting=t}return n.return(f)}})}; return h.return(Promise.race([g(),Qy(c,function(){var k=Object.assign({},f);e&&(k.error="ATTESTATION_ERROR_VM_TIMEOUT");return k})]))})}; function Ny(a){var b={engagementType:"ENGAGEMENT_TYPE_UNBOUND"};a&&(b.interpreterHash=a);return b} function Py(a,b){b=b===void 0?0:b;var c,d,e,f,g,h,k,l,m,n,r,t;return B(function(w){switch(w.h){case 1:c=Ny(Jj().h);if(T("att_fet_ks"))return va(w,7),w.yield(a.ib(c),9);va(w,4);return w.yield(Ry(a,c),6);case 6:g=w.i;e=g.Te;f=g.Ue;d=g;wa(w,3);break;case 4:return xa(w),Wu(Error("Failed to fetch attestation challenge after "+(b+" attempts; not retrying for 24h."))),Sy(a,864E5),w.return({challenge:"",gb:{},vm:void 0,bgChallenge:void 0});case 9:d=w.i;if(!d)throw Error("Fetching Attestation challenge returned falsy"); if(!d.challenge)throw Error("Missing Attestation challenge");e=d.challenge;f=Fy(e);if("c1a"in f&&(!d.bgChallenge||!d.bgChallenge.program))throw Error("Expected bg challenge but missing.");wa(w,3);break;case 7:h=xa(w);Wu(h);b++;if(b>=5)return Wu(Error("Failed to fetch attestation challenge after "+(b+" attempts; not retrying for 24h."))),Sy(a,864E5),w.return({challenge:"",gb:{},vm:void 0,bgChallenge:void 0});k=1E3*Math.pow(2,b-1)+Math.random()*1E3;return w.return(new Promise(function(x){so(function(){x(Py(a, b))},k)})); case 3:l=Number(f.t)||7200;Sy(a,l*1E3);m=void 0;if(!("c1a"in f&&d.bgChallenge)){w.B(10);break}n=Ey(d.bgChallenge);va(w,11);return w.yield(Kj(Jj(),n),13);case 13:wa(w,12);break;case 11:return r=xa(w),Wu(r),w.return({challenge:e,gb:f,vm:m,bgChallenge:n});case 12:return va(w,14),m=new Gj({challenge:n,Ed:{Da:"aGIf"}}),w.yield(m.gd,16);case 16:wa(w,10);break;case 14:t=xa(w),Wu(t),m=void 0;case 10:return w.return({challenge:e,gb:f,vm:m,bgChallenge:n})}})} My.prototype.ib=function(a){var b=this,c;return B(function(d){c=b.o;if(!c||c.ta())return d.return(b.network.ib(a));Zx("att_pna");return d.return(new Promise(function(e){gi(c,"publicytnetworkstatus-online",function(){b.network.ib(a).then(e)})}))})}; function Ty(a){if(!a)throw Error("Fetching Attestation challenge returned falsy");if(!a.challenge)throw Error("Missing Attestation challenge");var b=a.challenge,c=Fy(b);if("c1a"in c&&(!a.bgChallenge||!a.bgChallenge.program))throw Error("Expected bg challenge but missing.");return Object.assign({},a,{Te:b,Ue:c})} function Ry(a,b){var c,d,e,f,g;return B(function(h){switch(h.h){case 1:c=void 0,d=0,e={};case 2:if(!(d<5)){h.B(4);break}if(!(d>0)){h.B(5);break}e.sd=1E3*Math.pow(2,d-1)+Math.random()*1E3;return h.yield(new Promise(function(k){return function(l){so(function(){l(void 0)},k.sd)}}(e)),5); case 5:return va(h,7),h.yield(a.ib(b),9);case 9:return f=h.i,h.return(Ty(f));case 7:c=g=xa(h),g instanceof Error&&Wu(g);case 8:d++;e={sd:void 0};h.B(2);break;case 4:throw c;}})} function Oy(a,b){a.h=b} function Uy(a){var b,c,d;return B(function(e){if(e.h==1)return e.yield(Promise.race([a.h,null]),2);b=e.i;var f=Py(a);a.h=f;(c=b)==null||(d=c.vm)==null||d.dispose();e.h=0})} function Sy(a,b){function c(){var e;return B(function(f){e=d-Date.now();return e<1E3?f.yield(Uy(a),0):(so(c,Math.min(e,6E4)),f.B(0))})} var d=Date.now()+b;c()} function Qy(a,b){return new Promise(function(c){so(function(){c(b())},a)})} ;function Vy(a){this.h=a} Vy.prototype.ib=function(a){Zx("att_fsr");return ky(this.h,a).then(function(b){Zx("att_frr");return b})};function Wy(){var a,b,c;return B(function(d){if(d.h==1)return a=Gt().resolve(my),a?d.yield(fy(a),2):(Wu(Error("InnertubeTransportService unavailable in fetchDatasyncIds")),d.return(void 0));if(b=d.i){if(b.errorMetadata)return Wu(Error("Datasync IDs fetch responded with "+b.errorMetadata.status+": "+b.error)),d.return(void 0);c=b.Gh;return d.return(c)}Wu(Error("Network request to get Datasync IDs failed."));return d.return(void 0)})} ;function Xy(){} v(Xy,ex);Xy.prototype.j=function(){return Tv}; Xy.prototype.i=function(a){return eu(a,Dm)}; Xy.prototype.h=function(a,b){b.undoToken&&(a.feedbackTokens=[b.undoToken]);b.isUndoTokenUnencrypted&&(a.isFeedbackTokenUnencrypted=b.isUndoTokenUnencrypted)}; da.Object.defineProperties(Xy.prototype,{o:{configurable:!0,enumerable:!0,get:function(){return!0}}});function Yy(){var a;return(a=R("WEB_PLAYER_CONTEXT_CONFIGS"))==null?void 0:a.WEB_PLAYER_CONTEXT_CONFIG_ID_EMBEDDED_PLAYER} ;var Zy=D.caches,$y;function az(a){var b=a.indexOf(":");return b===-1?{Hd:a}:{Hd:a.substring(0,b),datasyncId:a.substring(b+1)}} function bz(){return B(function(a){if($y!==void 0)return a.return($y);$y=new Promise(function(b){var c;return B(function(d){switch(d.h){case 1:return va(d,2),d.yield(Zy.open("test-only"),4);case 4:return d.yield(Zy.delete("test-only"),5);case 5:wa(d,3);break;case 2:if(c=xa(d),c instanceof Error&&c.name==="SecurityError")return b(!1),d.return();case 3:b("caches"in window),d.h=0}})}); return a.return($y)})} function cz(a){var b,c,d,e,f,g,h;B(function(k){if(k.h==1)return k.yield(bz(),2);if(k.h!=3){if(!k.i)return k.return(!1);b=[];return k.yield(Zy.keys(),3)}c=k.i;d=y(c);for(e=d.next();!e.done;e=d.next())f=e.value,g=az(f),h=g.datasyncId,!h||a.includes(h)||b.push(Zy.delete(f));return k.return(Promise.all(b).then(function(l){return l.some(function(m){return m})}))})} function dz(){var a,b,c,d,e,f,g;return B(function(h){if(h.h==1)return h.yield(bz(),2);if(h.h!=3){if(!h.i)return h.return(!1);a=qo("cache contains other");return h.yield(Zy.keys(),3)}b=h.i;c=y(b);for(d=c.next();!d.done;d=c.next())if(e=d.value,f=az(e),(g=f.datasyncId)&&g!==a)return h.return(!0);return h.return(!1)})} ;function ez(){try{return!!self.sessionStorage}catch(a){return!1}} ;function fz(a){a=a.match(/(.*)::.*::.*/);if(a!==null)return a[1]} function gz(a){if(ez()){var b=Object.keys(window.sessionStorage);b=y(b);for(var c=b.next();!c.done;c=b.next()){c=c.value;var d=fz(c);d===void 0||a.includes(d)||self.sessionStorage.removeItem(c)}}} function hz(){if(!ez())return!1;var a=qo(),b=Object.keys(window.sessionStorage);b=y(b);for(var c=b.next();!c.done;c=b.next())if(c=fz(c.value),c!==void 0&&c!==a)return!0;return!1} ;function iz(){Wy().then(function(a){a&&(vq(a),cz(a),Fw(a),gz(a))})} function jz(){var a=new Es;ck.pa(function(){var b,c,d,e,f;return B(function(g){switch(g.h){case 1:if(T("ytidb_clear_optimizations_killswitch")){g.B(2);break}b=qo("clear");if(b.startsWith("V")&&b.endsWith("||")){var h=[b];vq(h);cz(h);Fw(h);gz(h);return g.return()}c=Gw();d=hz();return g.yield(dz(),3);case 3:return e=g.i,g.yield(wq(),4);case 4:if(f=g.i,!(c||d||e||f))return g.return();case 2:a.ta()?iz():gi(a,"publicytnetworkstatus-online",iz),g.h=0}})})} ;var kz=["www.youtube-nocookie.com","www.youtubeeducation.com","youtube.googleapis.com"];function lz(){this.state=1;this.vm=null;this.h=void 0} p=lz.prototype;p.initialize=function(a,b,c,d){this.h=d;if(a.program){var e;d=(e=a.interpreterUrl)!=null?e:null;if(a.interpreterSafeScript)e=jm(a.interpreterSafeScript);else{var f;e=(f=a.interpreterScript)!=null?f:null}a.interpreterSafeUrl&&(d=km(a.interpreterSafeUrl).toString());mz(this,e,d,a.program,b,c)}else Wu(Error("BL:CIP"))}; function mz(a,b,c,d,e,f){var g=g===void 0?"trayride":g;c?(a.state=2,$v(c,function(){window[g]?nz(a,d,g,e):(a.state=3,bw(c),Wu(new U("BL:ULB",""+c)))},f)):b?(f=Og("SCRIPT"),b instanceof Kb?(f.textContent=Mb(b),Nb(f)):f.textContent=b,f.nonce=Jb(document),document.head.appendChild(f),document.head.removeChild(f),window[g]?nz(a,d,g,e):(a.state=4,Wu(new U("BL:ULBJ")))):Wu(new U("BL:ULV"))} p.isLoading=function(){return this.state===2}; function nz(a,b,c,d){a.state=5;var e=!!a.h&&kz.includes(qc(a.h)||"");try{var f=new Gj({program:b,globalName:c,Ed:{disable:!T("att_web_record_metrics")||!T("att_skip_metrics_for_cookieless_domains_ks")&&e,Da:"aGIf"}});f.gd.then(function(){a.state=6;d&&d(b)}); a.ed(f)}catch(g){a.state=7,g instanceof Error&&Wu(g)}} p.invoke=function(a){a=a===void 0?{}:a;return this.od()?this.Ud({xb:a}):null}; p.dispose=function(){this.ed(null);this.state=8}; p.od=function(){return!!this.vm}; p.Ud=function(a){return this.vm.ld(a)}; p.ed=function(a){Dc(this.vm);this.vm=a};function oz(){var a=F("yt.abuse.playerAttLoader");return a&&["bgvma","bgvmb","bgvmc"].every(function(b){return b in a})?a:null} ;function pz(){lz.apply(this,arguments)} v(pz,lz);pz.prototype.ed=function(a){var b;(b=oz())==null||b.bgvma();a?(b={bgvma:a.dispose.bind(a),bgvmb:a.snapshot.bind(a),bgvmc:a.ld.bind(a)},E("yt.abuse.playerAttLoader",b),E("yt.abuse.playerAttLoaderRun",function(c){return a.snapshot(c)})):(E("yt.abuse.playerAttLoader",null),E("yt.abuse.playerAttLoaderRun",null))}; pz.prototype.od=function(){return!!oz()}; pz.prototype.Ud=function(a){return oz().bgvmc(a)};var qz=new xt("AUTH_SERVICE_TOKEN");function rz(a){Qt.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.G},{from:"document_active",to:"document_disposed",action:this.u},{from:"document_disposed_preventable",to:"document_disposed",action:this.u},{from:"document_disposed_preventable",to:"flush_logs",action:this.H},{from:"document_disposed_preventable",to:"document_active",action:this.i},{from:"document_disposed",to:"flush_logs", action:this.H},{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})})} v(rz,Qt);rz.prototype.G=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")}; rz.prototype.u=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"))}; rz.prototype.H=function(a,b){a(b==null?void 0:b.event);this.transition("document_active")}; rz.prototype.i=function(){this.h=new Map};function sz(a){Qt.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.H},{from:"document_visibility_unknown",to:"document_backgrounded",action:this.u},{from:"document_visible",to:"document_hidden",action:this.h},{from:"document_visible",to:"document_foregrounded", action:this.H},{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.H},{from:"document_hidden",to:"document_visible",action:this.i},{from:"document_hidden",to:"document_backgrounded",action:this.u},{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.u},{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})}))} v(sz,Qt);sz.prototype.i=function(a,b){a(b==null?void 0:b.event);T("visibility_lifecycles_dynamic_backgrounding")&&this.transition("document_foregrounded")}; sz.prototype.h=function(a,b){a(b==null?void 0:b.event);T("visibility_lifecycles_dynamic_backgrounding")&&this.transition("document_backgrounded")}; sz.prototype.u=function(a,b){a(b==null?void 0:b.event)}; sz.prototype.H=function(a,b){a(b==null?void 0:b.event)};function tz(){this.o=new rz;this.u=new sz} tz.prototype.install=function(){var a=C.apply(0,arguments),b=this;a.forEach(function(c){b.o.install(c)}); a.forEach(function(c){b.u.install(c)})};function uz(){this.o=[];this.i=new Map;this.h=new Map;this.j=new Set} uz.prototype.clickCommand=function(a,b,c){var d=a.clickTrackingParams;c=c===void 0?0:c;if(d)if(c=nv(c===void 0?0:c)){a=this.client;d=new gv({trackingParams:d});var e=void 0;if(T("no_client_ve_attach_unless_shown")){var f=Aw(d,c);ww.set(f,!0);Bw(d,c)}e=e||"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK";f=zw({cttAuthInfo:pv(c)||void 0},c);d={csn:c,ve:d.getAsJson(),gestureType:e};b&&(d.clientData=b);c==="UNDEFINED_CSN"?Cw("visualElementGestured",f,d):a?Nu("visualElementGestured",d,a,f):gp("visualElementGestured", d,f);b=!0}else b=!1;else b=!1;return b}; uz.prototype.stateChanged=function(a,b,c){this.visualElementStateChanged(new gv({trackingParams:a}),b,c===void 0?0:c)}; uz.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=nv(d);a||(a=(a=kv(d===void 0?0:d))?new gv({veType:a,youtubeData:void 0,jspbYoutubeData:void 0}):null);var e=a;c&&e&&(a=this.client,d=zw({cttAuthInfo:pv(c)||void 0},c),b={csn:c,ve:e.getAsJson(),clientData:b},c==="UNDEFINED_CSN"?Cw("visualElementStateChanged",d,b):a?Nu("visualElementStateChanged",b,a,d):gp("visualElementStateChanged",b,d))}}; function vz(a,b){if(b===void 0)for(var c=mv(),d=0;d0&&Iz(e)){var f=d;if(Oa(f[0])&&!Array.isArray(f[0]))var g=f[0];else switch(g={},e){case "loadVideoById":case "cueVideoById":g=Jz(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=Jz(g);break;case "loadPlaylist":case "cuePlaylist":g=Kz(f[0],f[1],f[2],f[3])}d.length=1;d[0]=g}b.api.handleExternalCall(e,d,c);Iz(e)&&Pz(b,Mz(b))}}}}; Qz.addEventListener("message",this.G);if(a=R("WIDGET_ID"))this.sessionId=a;Rz(this,"onReady",function(){b.u=!0;var c=b.api.getVideoData();if(!c.isPlayable){b.Z=!0;c=c.errorCode;var d=d===void 0?5:d;b.errorCode=c?Gz[c]||d:d;b.sendMessage("onError",Number(b.errorCode))}}); Rz(this,"onVideoProgress",this.pf.bind(this));Rz(this,"onVolumeChange",this.qf.bind(this));Rz(this,"onApiChange",this.gf.bind(this));Rz(this,"onPlaybackQualityChange",this.lf.bind(this));Rz(this,"onPlaybackRateChange",this.mf.bind(this));Rz(this,"onStateChange",this.nf.bind(this));Rz(this,"onWebglSettingsChanged",this.rf.bind(this));Rz(this,"onCaptionsTrackListChanged",this.hf.bind(this));Rz(this,"captionssettingschanged",this.jf.bind(this))} v(Lz,I);function Pz(a,b){a.sendMessage("infoDelivery",b)} p=Lz.prototype;p.sendMessage=function(a,b){a={event:a,info:b===void 0?null:b};this.Y?Nz(this,a):this.A.push(a)}; function Oz(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 Rz(a,b,c){a.j.push({eventType:b,listener:c});a.api.addEventListener(b,c)} function Mz(a){if(!a.api)return null;var b=a.api.getApiInterface();ac(b,"getVideoData");for(var c={apiInterface:b},d=0,e=b.length;d=0||this.h[a]||(b=sA(this,a),this.u&&this.u(a,b)),this.U.subscribe(a,d),a==="onReady"&&this.isReady()&&setTimeout(function(){d(c.api)},0))}; p.removeEventListener=function(a,b){this.ea||(b=hA(this,b))&&this.U.unsubscribe(a,b)}; function hA(a,b){var c=b;if(typeof b==="string"){if(a.Fa[b])return a.Fa[b];c=function(){var d=C.apply(0,arguments),e=F(b);if(e)try{e.apply(D,d)}catch(f){throw d=new U("PlayerProxy error when executing callback",{error:f}),d.level="ERROR",d;}}; a.Fa[b]=c}return c?c:null} function sA(a,b){function c(d){function e(){if(!a.ea)try{a.U.sb(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.ke});g.level="WARNING";throw g;}} if(nA(a,"web_player_publish_events_immediately"))e();else{var f=setTimeout(function(){e();var g=a.P,h=String(f);h in g&&delete g[h]},0); Eg(a.P,String(f))}} return a.h[b]=c} p.getPlayerType=function(){return this.Z||(jA(this)?"html5":null)}; p.getLastError=function(){return this.lastError}; function mA(a){a.cancel();cA(a);a.Z=null;a.config&&(a.config.loaded=!1);var b=jA(a);b&&(iA(a)||!pA(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.G&&dw(kA(this),this.G);clearTimeout(this.fb);this.Y=!1}; p.ba=function(){mA(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.Fa=null;for(a in this.h)this.h.hasOwnProperty(a)&&delete this.h[a];this.Ra=this.config=this.api=null;delete this.o;delete this.i;I.prototype.ba.call(this)}; function pA(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 kA(a){return a.webPlayerContextConfig?a.webPlayerContextConfig.jsUrl:(a=a.config.assets)?a.js:""} function oA(a){return a.webPlayerContextConfig?a.webPlayerContextConfig.cssUrl:(a=a.config.assets)?a.css:""} function nA(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 gA(a){for(var b={},c=y(Object.keys(a)),d=c.next();!d.done;d=c.next()){d=d.value;var e=a[d];b[d]=typeof e==="object"?Hg(e):e}return b} ;var tA={},uA="player_uid_"+(Math.random()*1E9>>>0);function vA(a,b){var c="player",d=!1;d=d===void 0?!0:d;c=typeof c==="string"?Ng(c):c;var e=uA+"_"+Pa(c),f=tA[e];if(f&&d)return wA(a,b)?f.api.loadVideoByPlayerVars(a.args||null):f.loadNewVideoConfig(a),f.api;f=new bA(c,e,a,b,void 0);tA[e]=f;f.addOnDisposeCallback(function(){delete tA[f.getId()]}); return f.api} function wA(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 xA=null,yA=null; function zA(){$x();var a=fo(),b=io(119),c=window.devicePixelRatio>1;if(document.body&&kk(document.body,"exp-invert-logo"))if(c&&!kk(document.body,"inverted-hdpi")){var d=document.body;if(d.classList)d.classList.add("inverted-hdpi");else if(!kk(d,"inverted-hdpi")){var e=ik(d);jk(d,e+(e.length>0?" inverted-hdpi":"inverted-hdpi"))}}else!c&&kk(document.body,"inverted-hdpi")&&lk();if(b!=c){b="f"+(Math.floor(119/31)+1);d=jo(b)||0;d=c?d|67108864:d&-67108865;d===0?delete bo[b]:(c=d.toString(16),bo[b]=c.toString()); c=!0;T("web_secure_pref_cookie_killswitch")&&(c=!1);b=a.h;d=[];for(f in bo)bo.hasOwnProperty(f)&&d.push(f+"="+encodeURIComponent(String(bo[f])));var f=d.join("&");Yn(b,f,63072E3,a.i,c)}} function AA(){BA()} function CA(){Vx("ep_init_pr");BA()} function BA(){var a=xA.getVideoData(1);a=a.title?a.title+" - YouTube":"YouTube";document.title!==a&&(document.title=a)} function DA(){xA&&xA.sendAbandonmentPing&&xA.sendAbandonmentPing();R("PL_ATT")&&Zz.dispose();for(var a=ck,b=0,c=Iy.length;b0){d=!0;break}}if(d){d=!1;e?d=!0:(typeof a==="string"?h=a:ErrorEvent&&a instanceof ErrorEvent?(d=!0,h=a.message,b=a.filename,c=a.lineno,f=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(f)?delete e.columnNumber:e.columnNumber=f);if(!T("wiz_enable_component_stack_propagation_killswitch")){a=e;var m;if((m=g)==null||!m.componentStack)if(a=a.ke){g||(g={});m=g;for(b=[];b.length<20&&a;)b.push(a.name),a=a.parent;a=b.join(" > ");m.componentStack=a}}g&&Zu(e,g);d?Vu(e):Wu(e)}}; Si=Xu;window.addEventListener("unhandledrejection",function(a){Xu(a.reason)}); Wb(R("ERRORS")||[],function(a){Vu.apply(null,a)}); Om("ERRORS",[]);Vx("ep_init_epe");}).call(this);