241b232f3124efb37c23eeb5b056a5f1bae46e25388111c5257bcc04642a32e0

Source Code:

(function(){/*

 Copyright The Closure Library Authors.
 SPDX-License-Identifier: Apache-2.0
*/
var m;function aa(a){var b=0;return function(){return b<a.length?{done:!1,value:a[b++]}:{done:!0}}}
var ba="function"==typeof Object.defineProperties?Object.defineProperty:function(a,b,c){if(a==Array.prototype||a==Object.prototype)return a;a[b]=c.value;return a};
function ca(a){a=["object"==typeof globalThis&&globalThis,a,"object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof global&&global];for(var b=0;b<a.length;++b){var c=a[b];if(c&&c.Math==Math)return c}throw Error("Cannot find global object");}
var da=ca(this);function t(a,b){if(b)a:{for(var c=da,d=a.split("."),e=0;e<d.length-1;e++){var f=d[e];if(!(f in c))break a;c=c[f]}d=d[d.length-1];e=c[d];f=b(e);f!=e&&null!=f&&ba(c,d,{configurable:!0,writable:!0,value:f})}}
t("Symbol",function(a){function b(e){if(this instanceof b)throw new TypeError("Symbol is not a constructor");return new c("jscomp_symbol_"+(e||"")+"_"+d++,e)}
function c(e,f){this.f=e;ba(this,"description",{configurable:!0,writable:!0,value:f})}
if(a)return a;c.prototype.toString=function(){return this.f};
var d=0;return b});
t("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<b.length;c++){var d=da[b[c]];"function"===typeof d&&"function"!=typeof d.prototype[a]&&ba(d.prototype,a,{configurable:!0,writable:!0,value:function(){return ea(aa(this))}})}return a});
function ea(a){a={next:a};a[Symbol.iterator]=function(){return this};
return a}
function u(a){var b="undefined"!=typeof Symbol&&Symbol.iterator&&a[Symbol.iterator];return b?b.call(a):{next:aa(a)}}
function fa(a){if(!(a instanceof Array)){a=u(a);for(var b,c=[];!(b=a.next()).done;)c.push(b.value);a=c}return a}
var ha="function"==typeof Object.create?Object.create:function(a){function b(){}
b.prototype=a;return new b},ia=function(){function a(){function c(){}
new c;Reflect.construct(c,[],function(){});
return new c instanceof c}
if("undefined"!=typeof Reflect&&Reflect.construct){if(a())return Reflect.construct;var b=Reflect.construct;return function(c,d,e){c=b(c,d);e&&Reflect.setPrototypeOf(c,e.prototype);return c}}return function(c,d,e){void 0===e&&(e=c);
e=ha(e.prototype||Object.prototype);return Function.prototype.apply.call(c,e,d)||e}}(),ja;
if("function"==typeof Object.setPrototypeOf)ja=Object.setPrototypeOf;else{var ka;a:{var la={a:!0},na={};try{na.__proto__=la;ka=na.a;break a}catch(a){}ka=!1}ja=ka?function(a,b){a.__proto__=b;if(a.__proto__!==b)throw new TypeError(a+" is not extensible");return a}:null}var oa=ja;
function pa(a,b){a.prototype=ha(b.prototype);a.prototype.constructor=a;if(oa)oa(a,b);else for(var c in b)if("prototype"!=c)if(Object.defineProperties){var d=Object.getOwnPropertyDescriptor(b,c);d&&Object.defineProperty(a,c,d)}else a[c]=b[c];a.D=b.prototype}
function qa(){this.A=!1;this.j=null;this.g=void 0;this.f=1;this.o=this.v=0;this.F=this.i=null}
function ra(a){if(a.A)throw new TypeError("Generator is already running");a.A=!0}
qa.prototype.B=function(a){this.g=a};
function sa(a,b){a.i={rb:b,Ia:!0};a.f=a.v||a.o}
qa.prototype["return"]=function(a){this.i={"return":a};this.f=this.o};
function w(a,b,c){a.f=c;return{value:b}}
qa.prototype.K=function(a){this.f=a};
function ta(a){a.v=2;a.o=3}
function ua(a){a.v=0;a.i=null}
function va(a){a.F=[a.i];a.v=0;a.o=0}
function wa(a){var b=a.F.splice(0)[0];(b=a.i=a.i||b)?b.Ia?a.f=a.v||a.o:void 0!=b.K&&a.o<b.K?(a.f=b.K,a.i=null):a.f=a.o:a.f=0}
function xa(a){this.f=new qa;this.g=a}
function ya(a,b){ra(a.f);var c=a.f.j;if(c)return za(a,"return"in c?c["return"]:function(d){return{value:d,done:!0}},b,a.f["return"]);
a.f["return"](b);return Aa(a)}
function za(a,b,c,d){try{var e=b.call(a.f.j,c);if(!(e instanceof Object))throw new TypeError("Iterator result "+e+" is not an object");if(!e.done)return a.f.A=!1,e;var f=e.value}catch(g){return a.f.j=null,sa(a.f,g),Aa(a)}a.f.j=null;d.call(a.f,f);return Aa(a)}
function Aa(a){for(;a.f.f;)try{var b=a.g(a.f);if(b)return a.f.A=!1,{value:b.value,done:!1}}catch(c){a.f.g=void 0,sa(a.f,c)}a.f.A=!1;if(a.f.i){b=a.f.i;a.f.i=null;if(b.Ia)throw b.rb;return{value:b["return"],done:!0}}return{value:void 0,done:!0}}
function Ba(a){this.next=function(b){ra(a.f);a.f.j?b=za(a,a.f.j.next,b,a.f.B):(a.f.B(b),b=Aa(a));return b};
this["throw"]=function(b){ra(a.f);a.f.j?b=za(a,a.f.j["throw"],b,a.f.B):(sa(a.f,b),b=Aa(a));return b};
this["return"]=function(b){return ya(a,b)};
this[Symbol.iterator]=function(){return this}}
function Ca(a,b){var c=new Ba(new xa(b));oa&&a.prototype&&oa(c,a.prototype);return c}
t("Reflect",function(a){return a?a:{}});
t("Reflect.construct",function(){return ia});
t("Reflect.setPrototypeOf",function(a){return a?a:oa?function(b,c){try{return oa(b,c),!0}catch(d){return!1}}:null});
function Da(a,b){return Object.prototype.hasOwnProperty.call(a,b)}
t("WeakMap",function(a){function b(k){this.f=(h+=Math.random()+1).toString();if(k){k=u(k);for(var l;!(l=k.next()).done;)l=l.value,this.set(l[0],l[1])}}
function c(){}
function d(k){var l=typeof k;return"object"===l&&null!==k||"function"===l}
function e(k){if(!Da(k,g)){var l=new c;ba(k,g,{value:l})}}
function f(k){var l=Object[k];l&&(Object[k]=function(n){if(n instanceof c)return n;Object.isExtensible(n)&&e(n);return l(n)})}
if(function(){if(!a||!Object.seal)return!1;try{var k=Object.seal({}),l=Object.seal({}),n=new a([[k,2],[l,3]]);if(2!=n.get(k)||3!=n.get(l))return!1;n["delete"](k);n.set(l,4);return!n.has(k)&&4==n.get(l)}catch(p){return!1}}())return a;
var g="$jscomp_hidden_"+Math.random();f("freeze");f("preventExtensions");f("seal");var h=0;b.prototype.set=function(k,l){if(!d(k))throw Error("Invalid WeakMap key");e(k);if(!Da(k,g))throw Error("WeakMap key fail: "+k);k[g][this.f]=l;return this};
b.prototype.get=function(k){return d(k)&&Da(k,g)?k[g][this.f]:void 0};
b.prototype.has=function(k){return d(k)&&Da(k,g)&&Da(k[g],this.f)};
b.prototype["delete"]=function(k){return d(k)&&Da(k,g)&&Da(k[g],this.f)?delete k[g][this.f]:!1};
return b});
t("Map",function(a){function b(){var h={};return h.previous=h.next=h.head=h}
function c(h,k){var l=h.f;return ea(function(){if(l){for(;l.head!=h.f;)l=l.previous;for(;l.next!=l.head;)return l=l.next,{done:!1,value:k(l)};l=null}return{done:!0,value:void 0}})}
function d(h,k){var l=k&&typeof k;"object"==l||"function"==l?f.has(k)?l=f.get(k):(l=""+ ++g,f.set(k,l)):l="p_"+k;var n=h.g[l];if(n&&Da(h.g,l))for(var p=0;p<n.length;p++){var q=n[p];if(k!==k&&q.key!==q.key||k===q.key)return{id:l,list:n,index:p,H:q}}return{id:l,list:n,index:-1,H:void 0}}
function e(h){this.g={};this.f=b();this.size=0;if(h){h=u(h);for(var k;!(k=h.next()).done;)k=k.value,this.set(k[0],k[1])}}
if(function(){if(!a||"function"!=typeof a||!a.prototype.entries||"function"!=typeof Object.seal)return!1;try{var h=Object.seal({x:4}),k=new a(u([[h,"s"]]));if("s"!=k.get(h)||1!=k.size||k.get({x:4})||k.set({x:4},"t")!=k||2!=k.size)return!1;var l=k.entries(),n=l.next();if(n.done||n.value[0]!=h||"s"!=n.value[1])return!1;n=l.next();return n.done||4!=n.value[0].x||"t"!=n.value[1]||!l.next().done?!1:!0}catch(p){return!1}}())return a;
var f=new WeakMap;e.prototype.set=function(h,k){h=0===h?0:h;var l=d(this,h);l.list||(l.list=this.g[l.id]=[]);l.H?l.H.value=k:(l.H={next:this.f,previous:this.f.previous,head:this.f,key:h,value:k},l.list.push(l.H),this.f.previous.next=l.H,this.f.previous=l.H,this.size++);return this};
e.prototype["delete"]=function(h){h=d(this,h);return h.H&&h.list?(h.list.splice(h.index,1),h.list.length||delete this.g[h.id],h.H.previous.next=h.H.next,h.H.next.previous=h.H.previous,h.H.head=null,this.size--,!0):!1};
e.prototype.clear=function(){this.g={};this.f=this.f.previous=b();this.size=0};
e.prototype.has=function(h){return!!d(this,h).H};
e.prototype.get=function(h){return(h=d(this,h).H)&&h.value};
e.prototype.entries=function(){return c(this,function(h){return[h.key,h.value]})};
e.prototype.keys=function(){return c(this,function(h){return h.key})};
e.prototype.values=function(){return c(this,function(h){return h.value})};
e.prototype.forEach=function(h,k){for(var l=this.entries(),n;!(n=l.next()).done;)n=n.value,h.call(k,n[1],n[0],this)};
e.prototype[Symbol.iterator]=e.prototype.entries;var g=0;return e});
function Ea(a,b){a instanceof String&&(a+="");var c=0,d={next:function(){if(c<a.length){var e=c++;return{value:b(e,a[e]),done:!1}}d.next=function(){return{done:!0,value:void 0}};
return d.next()}};
d[Symbol.iterator]=function(){return d};
return d}
t("Array.prototype.keys",function(a){return a?a:function(){return Ea(this,function(b){return b})}});
function Fa(a,b,c){if(null==a)throw new TypeError("The 'this' value for String.prototype."+c+" must not be null or undefined");if(b instanceof RegExp)throw new TypeError("First argument to String.prototype."+c+" must not be a regular expression");return a+""}
t("String.prototype.endsWith",function(a){return a?a:function(b,c){var d=Fa(this,b,"endsWith");b+="";void 0===c&&(c=d.length);for(var e=Math.max(0,Math.min(c|0,d.length)),f=b.length;0<f&&0<e;)if(d[--e]!=b[--f])return!1;return 0>=f}});
t("String.prototype.startsWith",function(a){return a?a:function(b,c){var d=Fa(this,b,"startsWith");b+="";for(var e=d.length,f=b.length,g=Math.max(0,Math.min(c|0,d.length)),h=0;h<f&&g<e;)if(d[g++]!=b[h++])return!1;return h>=f}});
t("Set",function(a){function b(c){this.f=new Map;if(c){c=u(c);for(var d;!(d=c.next()).done;)this.add(d.value)}this.size=this.f.size}
if(function(){if(!a||"function"!=typeof a||!a.prototype.entries||"function"!=typeof Object.seal)return!1;try{var c=Object.seal({x:4}),d=new a(u([c]));if(!d.has(c)||1!=d.size||d.add(c)!=d||1!=d.size||d.add({x:4})!=d||2!=d.size)return!1;var e=d.entries(),f=e.next();if(f.done||f.value[0]!=c||f.value[1]!=c)return!1;f=e.next();return f.done||f.value[0]==c||4!=f.value[0].x||f.value[1]!=f.value[0]?!1:e.next().done}catch(g){return!1}}())return a;
b.prototype.add=function(c){c=0===c?0:c;this.f.set(c,c);this.size=this.f.size;return this};
b.prototype["delete"]=function(c){c=this.f["delete"](c);this.size=this.f.size;return c};
b.prototype.clear=function(){this.f.clear();this.size=0};
b.prototype.has=function(c){return this.f.has(c)};
b.prototype.entries=function(){return this.f.entries()};
b.prototype.values=function(){return this.f.values()};
b.prototype.keys=b.prototype.values;b.prototype[Symbol.iterator]=b.prototype.values;b.prototype.forEach=function(c,d){var e=this;this.f.forEach(function(f){return c.call(d,f,f,e)})};
return b});
t("Array.prototype.values",function(a){return a?a:function(){return Ea(this,function(b,c){return c})}});
var Ga="function"==typeof Object.assign?Object.assign:function(a,b){for(var c=1;c<arguments.length;c++){var d=arguments[c];if(d)for(var e in d)Da(d,e)&&(a[e]=d[e])}return a};
t("Object.assign",function(a){return a||Ga});
t("Promise",function(a){function b(g){this.g=0;this.i=void 0;this.f=[];var h=this.j();try{g(h.resolve,h.reject)}catch(k){h.reject(k)}}
function c(){this.f=null}
function d(g){return g instanceof b?g:new b(function(h){h(g)})}
if(a)return a;c.prototype.g=function(g){if(null==this.f){this.f=[];var h=this;this.i(function(){h.o()})}this.f.push(g)};
var e=da.setTimeout;c.prototype.i=function(g){e(g,0)};
c.prototype.o=function(){for(;this.f&&this.f.length;){var g=this.f;this.f=[];for(var h=0;h<g.length;++h){var k=g[h];g[h]=null;try{k()}catch(l){this.j(l)}}}this.f=null};
c.prototype.j=function(g){this.i(function(){throw g;})};
b.prototype.j=function(){function g(l){return function(n){k||(k=!0,l.call(h,n))}}
var h=this,k=!1;return{resolve:g(this.O),reject:g(this.o)}};
b.prototype.O=function(g){if(g===this)this.o(new TypeError("A Promise cannot resolve to itself"));else if(g instanceof b)this.ca(g);else{a:switch(typeof g){case "object":var h=null!=g;break a;case "function":h=!0;break a;default:h=!1}h?this.F(g):this.v(g)}};
b.prototype.F=function(g){var h=void 0;try{h=g.then}catch(k){this.o(k);return}"function"==typeof h?this.la(h,g):this.v(g)};
b.prototype.o=function(g){this.A(2,g)};
b.prototype.v=function(g){this.A(1,g)};
b.prototype.A=function(g,h){if(0!=this.g)throw Error("Cannot settle("+g+", "+h+"): Promise already settled in state"+this.g);this.g=g;this.i=h;this.B()};
b.prototype.B=function(){if(null!=this.f){for(var g=0;g<this.f.length;++g)f.g(this.f[g]);this.f=null}};
var f=new c;b.prototype.ca=function(g){var h=this.j();g.ea(h.resolve,h.reject)};
b.prototype.la=function(g,h){var k=this.j();try{g.call(h,k.resolve,k.reject)}catch(l){k.reject(l)}};
b.prototype.then=function(g,h){function k(q,r){return"function"==typeof q?function(v){try{l(q(v))}catch(B){n(B)}}:r}
var l,n,p=new b(function(q,r){l=q;n=r});
this.ea(k(g,l),k(h,n));return p};
b.prototype["catch"]=function(g){return this.then(void 0,g)};
b.prototype.ea=function(g,h){function k(){switch(l.g){case 1:g(l.i);break;case 2:h(l.i);break;default:throw Error("Unexpected state: "+l.g);}}
var l=this;null==this.f?f.g(k):this.f.push(k)};
b.resolve=d;b.reject=function(g){return new b(function(h,k){k(g)})};
b.race=function(g){return new b(function(h,k){for(var l=u(g),n=l.next();!n.done;n=l.next())d(n.value).ea(h,k)})};
b.all=function(g){var h=u(g),k=h.next();return k.done?d([]):new b(function(l,n){function p(v){return function(B){q[v]=B;r--;0==r&&l(q)}}
var q=[],r=0;do q.push(void 0),r++,d(k.value).ea(p(q.length-1),n),k=h.next();while(!k.done)})};
return b});
t("Object.setPrototypeOf",function(a){return a||oa});
t("Array.prototype.entries",function(a){return a?a:function(){return Ea(this,function(b,c){return[b,c]})}});
t("Object.entries",function(a){return a?a:function(b){var c=[],d;for(d in b)Da(b,d)&&c.push([d,b[d]]);return c}});
t("Object.is",function(a){return a?a:function(b,c){return b===c?0!==b||1/b===1/c:b!==b&&c!==c}});
t("Array.prototype.includes",function(a){return a?a:function(b,c){var d=this;d instanceof String&&(d=String(d));var e=d.length,f=c||0;for(0>f&&(f=Math.max(f+e,0));f<e;f++){var g=d[f];if(g===b||Object.is(g,b))return!0}return!1}});
t("String.prototype.includes",function(a){return a?a:function(b,c){return-1!==Fa(this,b,"includes").indexOf(b,c||0)}});
var x=this||self;function y(a,b){for(var c=a.split("."),d=b||x,e=0;e<c.length;e++)if(d=d[c[e]],null==d)return null;return d}
function Ha(){}
function Ia(a){a.pa=void 0;a.C=function(){return a.pa?a.pa:a.pa=new a}}
function Ja(a){var b=typeof a;return"object"!=b?b:a?Array.isArray(a)?"array":b:"null"}
function Ka(a){var b=Ja(a);return"array"==b||"object"==b&&"number"==typeof a.length}
function Ma(a){return"function"==Ja(a)}
function Na(a){var b=typeof a;return"object"==b&&null!=a||"function"==b}
function Oa(a){return Object.prototype.hasOwnProperty.call(a,Pa)&&a[Pa]||(a[Pa]=++Qa)}
var Pa="closure_uid_"+(1E9*Math.random()>>>0),Qa=0;function Ra(a,b,c){return a.call.apply(a.bind,arguments)}
function Sa(a,b,c){if(!a)throw Error();if(2<arguments.length){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 z(a,b,c){Function.prototype.bind&&-1!=Function.prototype.bind.toString().indexOf("native code")?z=Ra:z=Sa;return z.apply(null,arguments)}
function Ta(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)}}
var Ua=Date.now;function A(a,b){var c=a.split("."),d=x;c[0]in d||"undefined"==typeof d.execScript||d.execScript("var "+c[0]);for(var e;c.length&&(e=c.shift());)c.length||void 0===b?d[e]&&d[e]!==Object.prototype[e]?d=d[e]:d=d[e]={}:d[e]=b}
function D(a,b){function c(){}
c.prototype=b.prototype;a.D=b.prototype;a.prototype=new c;a.prototype.constructor=a}
function Va(a){return a}
function Wa(a){var b=null,c=x.trustedTypes;if(!c||!c.createPolicy)return b;try{b=c.createPolicy(a,{createHTML:Va,createScript:Va,createScriptURL:Va})}catch(d){x.console&&x.console.error(d.message)}return b}
;function Xa(a){this.xa=a}
;function Ya(a,b,c){this.j=a;this.g=b;this.f=c||[];this.Y=new Map}
m=Ya.prototype;m.Sb=function(a,b){for(var c=[],d=1;d<arguments.length;++d)c[d-1]=arguments[d];this.Y.set(this.Ea(c),[new Xa(a)])};
m.Da=function(a){for(var b=[],c=0;c<arguments.length;++c)b[c-0]=arguments[c];b=this.Ea(b);return this.Y.has(b)?this.Y.get(b):void 0};
m.tb=function(a){for(var b=[],c=0;c<arguments.length;++c)b[c-0]=arguments[c];return(b=this.Da(b))&&b.length?b[0]:void 0};
m.clear=function(){this.Y.clear()};
m.Ea=function(a){for(var b=[],c=0;c<arguments.length;++c)b[c-0]=arguments[c];return b?b.join(","):"key"};function Za(a,b){Ya.call(this,a,3,b)}
pa(Za,Ya);Za.prototype.i=function(a,b){for(var c=[],d=1;d<arguments.length;++d)c[d-1]=arguments[d];d=0;var e=this.tb(c);e&&(d=e.xa);this.Sb(d+a,c)};function $a(a){if(Error.captureStackTrace)Error.captureStackTrace(this,$a);else{var b=Error().stack;b&&(this.stack=b)}a&&(this.message=String(a))}
D($a,Error);$a.prototype.name="CustomError";var ab;function bb(){this.i=this.i;this.o=this.o}
bb.prototype.i=!1;bb.prototype.ha=function(){return this.i};
bb.prototype.dispose=function(){this.i||(this.i=!0,this.S())};
bb.prototype.S=function(){if(this.o)for(;this.o.length;)this.o.shift()()};
function cb(a){a&&"function"==typeof a.dispose&&a.dispose()}
;function db(a,b){this.type=a;this.currentTarget=this.target=b;this.defaultPrevented=this.f=!1}
db.prototype.stopPropagation=function(){this.f=!0};
db.prototype.preventDefault=function(){this.defaultPrevented=!0};var eb=Array.prototype.indexOf?function(a,b){return Array.prototype.indexOf.call(a,b,void 0)}:function(a,b){if("string"===typeof a)return"string"!==typeof b||1!=b.length?-1:a.indexOf(b,0);
for(var c=0;c<a.length;c++)if(c in a&&a[c]===b)return c;return-1},E=Array.prototype.forEach?function(a,b,c){Array.prototype.forEach.call(a,b,c)}:function(a,b,c){for(var d=a.length,e="string"===typeof a?a.split(""):a,f=0;f<d;f++)f in e&&b.call(c,e[f],f,a)},fb=Array.prototype.filter?function(a,b,c){return Array.prototype.filter.call(a,b,c)}:function(a,b,c){for(var d=a.length,e=[],f=0,g="string"===typeof a?a.split(""):a,h=0;h<d;h++)if(h in g){var k=g[h];
b.call(c,k,h,a)&&(e[f++]=k)}return e},gb=Array.prototype.map?function(a,b){return Array.prototype.map.call(a,b,void 0)}:function(a,b){for(var c=a.length,d=Array(c),e="string"===typeof a?a.split(""):a,f=0;f<c;f++)f in e&&(d[f]=b.call(void 0,e[f],f,a));
return d},hb=Array.prototype.reduce?function(a,b,c){return Array.prototype.reduce.call(a,b,c)}:function(a,b,c){var d=c;
E(a,function(e,f){d=b.call(void 0,d,e,f,a)});
return d},ib=Array.prototype.some?function(a,b){return Array.prototype.some.call(a,b,void 0)}:function(a,b){for(var c=a.length,d="string"===typeof a?a.split(""):a,e=0;e<c;e++)if(e in d&&b.call(void 0,d[e],e,a))return!0;
return!1};
function jb(a,b){a:{var c=a.length;for(var d="string"===typeof a?a.split(""):a,e=0;e<c;e++)if(e in d&&b.call(void 0,d[e],e,a)){c=e;break a}c=-1}return 0>c?null:"string"===typeof a?a.charAt(c):a[c]}
function kb(a,b){return 0<=eb(a,b)}
function lb(a,b){var c=eb(a,b),d;(d=0<=c)&&Array.prototype.splice.call(a,c,1);return d}
function mb(a){return Array.prototype.concat.apply([],arguments)}
function nb(a){var b=a.length;if(0<b){for(var c=Array(b),d=0;d<b;d++)c[d]=a[d];return c}return[]}
function ob(a,b){for(var c=1;c<arguments.length;c++){var d=arguments[c];if(Ka(d)){var e=a.length||0,f=d.length||0;a.length=e+f;for(var g=0;g<f;g++)a[e+g]=d[g]}else a.push(d)}}
function pb(a,b,c,d){return Array.prototype.splice.apply(a,qb(arguments,1))}
function qb(a,b,c){return 2>=arguments.length?Array.prototype.slice.call(a,b):Array.prototype.slice.call(a,b,c)}
function rb(a){for(var b=[],c=0;c<arguments.length;c++){var d=arguments[c];if(Array.isArray(d))for(var e=0;e<d.length;e+=8192){var f=qb(d,e,e+8192);f=rb.apply(null,f);for(var g=0;g<f.length;g++)b.push(f[g])}else b.push(d)}return b}
;var sb=String.prototype.trim?function(a){return a.trim()}:function(a){return/^[\s\xa0]*([\s\S]*?)[\s\xa0]*$/.exec(a)[1]};
function tb(a,b){for(var c=0,d=sb(String(a)).split("."),e=sb(String(b)).split("."),f=Math.max(d.length,e.length),g=0;0==c&&g<f;g++){var h=d[g]||"",k=e[g]||"";do{h=/(\d*)(\D*)(.*)/.exec(h)||["","","",""];k=/(\d*)(\D*)(.*)/.exec(k)||["","","",""];if(0==h[0].length&&0==k[0].length)break;c=ub(0==h[1].length?0:parseInt(h[1],10),0==k[1].length?0:parseInt(k[1],10))||ub(0==h[2].length,0==k[2].length)||ub(h[2],k[2]);h=h[3];k=k[3]}while(0==c)}return c}
function ub(a,b){return a<b?-1:a>b?1:0}
;var vb;a:{var wb=x.navigator;if(wb){var xb=wb.userAgent;if(xb){vb=xb;break a}}vb=""}function F(a){return-1!=vb.indexOf(a)}
;function yb(a,b,c){for(var d in a)b.call(c,a[d],d,a)}
function zb(a){var b=[],c=0,d;for(d in a)b[c++]=a[d];return b}
function Ab(a){var b=Bb,c;for(c in b)if(a.call(void 0,b[c],c,b))return c}
function Cb(a,b){for(var c in a)if(!(c in b)||a[c]!==b[c])return!1;for(var d in b)if(!(d in a))return!1;return!0}
function Db(a){var b=Ja(a);if("object"==b||"array"==b){if(Ma(a.clone))return a.clone();b="array"==b?[]:{};for(var c in a)b[c]=Db(a[c]);return b}return a}
var Eb="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");function Fb(a,b){for(var c,d,e=1;e<arguments.length;e++){d=arguments[e];for(c in d)a[c]=d[c];for(var f=0;f<Eb.length;f++)c=Eb[f],Object.prototype.hasOwnProperty.call(d,c)&&(a[c]=d[c])}}
;function Gb(){return F("Firefox")||F("FxiOS")}
function Hb(){return F("Safari")&&!(Ib()||F("Coast")||F("Opera")||F("Edge")||F("Edg/")||F("OPR")||Gb()||F("Silk")||F("Android"))}
function Ib(){return(F("Chrome")||F("CriOS"))&&!F("Edge")}
function Jb(){return F("Android")&&!(Ib()||Gb()||F("Opera")||F("Silk"))}
;function Kb(a){var b=!1,c;return function(){b||(c=a(),b=!0);return c}}
;var Lb;function Mb(a,b){this.f=a===Nb&&b||"";this.g=Ob}
Mb.prototype.oa=!0;Mb.prototype.na=function(){return this.f.toString()};
var Pb=/^(?:(?:https?|mailto|ftp):|[^:/?#]*(?:[/?#]|$))/i,Ob={},Nb={};function Rb(){this.f="";this.g=Sb}
Rb.prototype.oa=!0;Rb.prototype.na=function(){return this.f.toString()};
function Tb(a){if(a instanceof Rb&&a.constructor===Rb&&a.g===Sb)return a.f;Ja(a);return"type_error:SafeHtml"}
var Sb={},Ub=new Rb;Ub.f=x.trustedTypes&&x.trustedTypes.emptyHTML?x.trustedTypes.emptyHTML:"";var Vb=Kb(function(){var a=document.createElement("div"),b=document.createElement("div");b.appendChild(document.createElement("div"));a.appendChild(b);b=a.firstChild.firstChild;a.innerHTML=Tb(Ub);return!b.parentElement});
function Wb(a,b){if(Vb())for(;a.lastChild;)a.removeChild(a.lastChild);a.innerHTML=Tb(b)}
;function Xb(a){return String(a).replace(/\-([a-z])/g,function(b,c){return c.toUpperCase()})}
function Yb(a){return a.replace(RegExp("(^|[\\s]+)([a-z])","g"),function(b,c,d){return c+d.toUpperCase()})}
;function Zb(){return F("iPhone")&&!F("iPod")&&!F("iPad")}
function $b(){return Zb()||F("iPad")||F("iPod")}
;function ac(a){ac[" "](a);return a}
ac[" "]=Ha;function bc(a,b){try{return ac(a[b]),!0}catch(c){}return!1}
function cc(a,b){var c=dc;return Object.prototype.hasOwnProperty.call(c,a)?c[a]:c[a]=b(a)}
;var ec=F("Opera"),G=F("Trident")||F("MSIE"),fc=F("Edge"),gc=fc||G,hc=F("Gecko")&&!(-1!=vb.toLowerCase().indexOf("webkit")&&!F("Edge"))&&!(F("Trident")||F("MSIE"))&&!F("Edge"),ic=-1!=vb.toLowerCase().indexOf("webkit")&&!F("Edge"),jc=F("Macintosh"),kc=F("Windows"),lc=F("Android"),mc=Zb(),nc=F("iPad"),oc=F("iPod"),pc=$b();function qc(){var a=x.document;return a?a.documentMode:void 0}
var rc;a:{var sc="",tc=function(){var a=vb;if(hc)return/rv:([^\);]+)(\)|;)/.exec(a);if(fc)return/Edge\/([\d\.]+)/.exec(a);if(G)return/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(a);if(ic)return/WebKit\/(\S+)/.exec(a);if(ec)return/(?:Version)[ \/]?(\S+)/.exec(a)}();
tc&&(sc=tc?tc[1]:"");if(G){var uc=qc();if(null!=uc&&uc>parseFloat(sc)){rc=String(uc);break a}}rc=sc}var vc=rc,dc={};function wc(a){return cc(a,function(){return 0<=tb(vc,a)})}
var xc;if(x.document&&G){var yc=qc();xc=yc?yc:parseInt(vc,10)||void 0}else xc=void 0;var zc=xc;function Ac(a){var b=y("window.location.href");null==a&&(a='Unknown Error of type "null/undefined"');if("string"===typeof a)return{message:a,name:"Unknown error",lineNumber:"Not available",fileName:b,stack:"Not available"};var c=!1;try{var d=a.lineNumber||a.line||"Not available"}catch(g){d="Not available",c=!0}try{var e=a.fileName||a.filename||a.sourceURL||x.$googDebugFname||b}catch(g){e="Not available",c=!0}b=Bc(a);if(!(!c&&a.lineNumber&&a.fileName&&a.stack&&a.message&&a.name)){c=a.message;if(null==
c){if(a.constructor&&a.constructor instanceof Function){if(a.constructor.name)c=a.constructor.name;else if(c=a.constructor,Cc[c])c=Cc[c];else{c=String(c);if(!Cc[c]){var f=/function\s+([^\(]+)/m.exec(c);Cc[c]=f?f[1]:"[Anonymous]"}c=Cc[c]}c='Unknown Error of type "'+c+'"'}else c="Unknown Error of unknown type";"function"===typeof a.toString&&Object.prototype.toString!==a.toString&&(c+=": "+a.toString())}return{message:c,name:a.name||"UnknownError",lineNumber:d,fileName:e,stack:b||"Not available"}}a.stack=
b;return a}
function Bc(a,b){b||(b={});b[Dc(a)]=!0;var c=a.stack||"",d=a.pc;d&&!b[Dc(d)]&&(c+="\nCaused by: ",d.stack&&0==d.stack.indexOf(d.toString())||(c+="string"===typeof d?d:d.message+"\n"),c+=Bc(d,b));return c}
function Dc(a){var b="";"function"===typeof a.toString&&(b=""+a);return b+a.stack}
var Cc={};var Ec=!G||9<=Number(zc),Fc=G&&!wc("9"),Gc=function(){if(!x.addEventListener||!Object.defineProperty)return!1;var a=!1,b=Object.defineProperty({},"passive",{get:function(){a=!0}});
try{x.addEventListener("test",Ha,b),x.removeEventListener("test",Ha,b)}catch(c){}return a}();function Hc(a,b){db.call(this,a?a.type:"");this.relatedTarget=this.currentTarget=this.target=null;this.button=this.screenY=this.screenX=this.clientY=this.clientX=0;this.key="";this.charCode=this.keyCode=0;this.metaKey=this.shiftKey=this.altKey=this.ctrlKey=!1;this.state=null;this.pointerId=0;this.pointerType="";this.g=null;a&&this.init(a,b)}
D(Hc,db);var Ic={2:"touch",3:"pen",4:"mouse"};
Hc.prototype.init=function(a,b){var c=this.type=a.type,d=a.changedTouches&&a.changedTouches.length?a.changedTouches[0]:null;this.target=a.target||a.srcElement;this.currentTarget=b;var e=a.relatedTarget;e?hc&&(bc(e,"nodeName")||(e=null)):"mouseover"==c?e=a.fromElement:"mouseout"==c&&(e=a.toElement);this.relatedTarget=e;d?(this.clientX=void 0!==d.clientX?d.clientX:d.pageX,this.clientY=void 0!==d.clientY?d.clientY:d.pageY,this.screenX=d.screenX||0,this.screenY=d.screenY||0):(this.clientX=void 0!==a.clientX?
a.clientX:a.pageX,this.clientY=void 0!==a.clientY?a.clientY:a.pageY,this.screenX=a.screenX||0,this.screenY=a.screenY||0);this.button=a.button;this.keyCode=a.keyCode||0;this.key=a.key||"";this.charCode=a.charCode||("keypress"==c?a.keyCode:0);this.ctrlKey=a.ctrlKey;this.altKey=a.altKey;this.shiftKey=a.shiftKey;this.metaKey=a.metaKey;this.pointerId=a.pointerId||0;this.pointerType="string"===typeof a.pointerType?a.pointerType:Ic[a.pointerType]||"";this.state=a.state;this.g=a;a.defaultPrevented&&this.preventDefault()};
Hc.prototype.stopPropagation=function(){Hc.D.stopPropagation.call(this);this.g.stopPropagation?this.g.stopPropagation():this.g.cancelBubble=!0};
Hc.prototype.preventDefault=function(){Hc.D.preventDefault.call(this);var a=this.g;if(a.preventDefault)a.preventDefault();else if(a.returnValue=!1,Fc)try{if(a.ctrlKey||112<=a.keyCode&&123>=a.keyCode)a.keyCode=-1}catch(b){}};var Jc="closure_listenable_"+(1E6*Math.random()|0),Kc=0;function Lc(a,b,c,d,e){this.listener=a;this.f=null;this.src=b;this.type=c;this.capture=!!d;this.ga=e;this.key=++Kc;this.Z=this.da=!1}
function Mc(a){a.Z=!0;a.listener=null;a.f=null;a.src=null;a.ga=null}
;function Nc(a){this.src=a;this.listeners={};this.f=0}
Nc.prototype.add=function(a,b,c,d,e){var f=a.toString();a=this.listeners[f];a||(a=this.listeners[f]=[],this.f++);var g=Oc(a,b,d,e);-1<g?(b=a[g],c||(b.da=!1)):(b=new Lc(b,this.src,f,!!d,e),b.da=c,a.push(b));return b};
Nc.prototype.remove=function(a,b,c,d){a=a.toString();if(!(a in this.listeners))return!1;var e=this.listeners[a];b=Oc(e,b,c,d);return-1<b?(Mc(e[b]),Array.prototype.splice.call(e,b,1),0==e.length&&(delete this.listeners[a],this.f--),!0):!1};
function Pc(a,b){var c=b.type;c in a.listeners&&lb(a.listeners[c],b)&&(Mc(b),0==a.listeners[c].length&&(delete a.listeners[c],a.f--))}
function Oc(a,b,c,d){for(var e=0;e<a.length;++e){var f=a[e];if(!f.Z&&f.listener==b&&f.capture==!!c&&f.ga==d)return e}return-1}
;var Qc="closure_lm_"+(1E6*Math.random()|0),Rc={},Sc=0;function Uc(a,b,c,d,e){if(d&&d.once)Vc(a,b,c,d,e);else if(Array.isArray(b))for(var f=0;f<b.length;f++)Uc(a,b[f],c,d,e);else c=Wc(c),a&&a[Jc]?a.f.add(String(b),c,!1,Na(d)?!!d.capture:!!d,e):Xc(a,b,c,!1,d,e)}
function Xc(a,b,c,d,e,f){if(!b)throw Error("Invalid event type");var g=Na(e)?!!e.capture:!!e,h=Yc(a);h||(a[Qc]=h=new Nc(a));c=h.add(b,c,d,g,f);if(!c.f){d=Zc();c.f=d;d.src=a;d.listener=c;if(a.addEventListener)Gc||(e=g),void 0===e&&(e=!1),a.addEventListener(b.toString(),d,e);else if(a.attachEvent)a.attachEvent($c(b.toString()),d);else if(a.addListener&&a.removeListener)a.addListener(d);else throw Error("addEventListener and attachEvent are unavailable.");Sc++}}
function Zc(){var a=ad,b=Ec?function(c){return a.call(b.src,b.listener,c)}:function(c){c=a.call(b.src,b.listener,c);
if(!c)return c};
return b}
function Vc(a,b,c,d,e){if(Array.isArray(b))for(var f=0;f<b.length;f++)Vc(a,b[f],c,d,e);else c=Wc(c),a&&a[Jc]?a.f.add(String(b),c,!0,Na(d)?!!d.capture:!!d,e):Xc(a,b,c,!0,d,e)}
function bd(a,b,c,d,e){if(Array.isArray(b))for(var f=0;f<b.length;f++)bd(a,b[f],c,d,e);else(d=Na(d)?!!d.capture:!!d,c=Wc(c),a&&a[Jc])?a.f.remove(String(b),c,d,e):a&&(a=Yc(a))&&(b=a.listeners[b.toString()],a=-1,b&&(a=Oc(b,c,d,e)),(c=-1<a?b[a]:null)&&cd(c))}
function cd(a){if("number"!==typeof a&&a&&!a.Z){var b=a.src;if(b&&b[Jc])Pc(b.f,a);else{var c=a.type,d=a.f;b.removeEventListener?b.removeEventListener(c,d,a.capture):b.detachEvent?b.detachEvent($c(c),d):b.addListener&&b.removeListener&&b.removeListener(d);Sc--;(c=Yc(b))?(Pc(c,a),0==c.f&&(c.src=null,b[Qc]=null)):Mc(a)}}}
function $c(a){return a in Rc?Rc[a]:Rc[a]="on"+a}
function dd(a,b,c,d){var e=!0;if(a=Yc(a))if(b=a.listeners[b.toString()])for(b=b.concat(),a=0;a<b.length;a++){var f=b[a];f&&f.capture==c&&!f.Z&&(f=ed(f,d),e=e&&!1!==f)}return e}
function ed(a,b){var c=a.listener,d=a.ga||a.src;a.da&&cd(a);return c.call(d,b)}
function ad(a,b){if(a.Z)return!0;if(!Ec){var c=b||y("window.event"),d=new Hc(c,this),e=!0;if(!(0>c.keyCode||void 0!=c.returnValue)){a:{var f=!1;if(0==c.keyCode)try{c.keyCode=-1;break a}catch(k){f=!0}if(f||void 0==c.returnValue)c.returnValue=!0}c=[];for(f=d.currentTarget;f;f=f.parentNode)c.push(f);f=a.type;for(var g=c.length-1;!d.f&&0<=g;g--){d.currentTarget=c[g];var h=dd(c[g],f,!0,d);e=e&&h}for(g=0;!d.f&&g<c.length;g++)d.currentTarget=c[g],h=dd(c[g],f,!1,d),e=e&&h}return e}return ed(a,new Hc(b,this))}
function Yc(a){a=a[Qc];return a instanceof Nc?a:null}
var fd="__closure_events_fn_"+(1E9*Math.random()>>>0);function Wc(a){if(Ma(a))return a;a[fd]||(a[fd]=function(b){return a.handleEvent(b)});
return a[fd]}
;function gd(){bb.call(this);this.f=new Nc(this);this.F=this;this.v=null}
D(gd,bb);gd.prototype[Jc]=!0;gd.prototype.addEventListener=function(a,b,c,d){Uc(this,a,b,c,d)};
gd.prototype.removeEventListener=function(a,b,c,d){bd(this,a,b,c,d)};
gd.prototype.dispatchEvent=function(a){var b=this.v;if(b){var c=[];for(var d=1;b;b=b.v)c.push(b),++d}b=this.F;d=a.type||a;if("string"===typeof a)a=new db(a,b);else if(a instanceof db)a.target=a.target||b;else{var e=a;a=new db(d,b);Fb(a,e)}e=!0;if(c)for(var f=c.length-1;!a.f&&0<=f;f--){var g=a.currentTarget=c[f];e=hd(g,d,!0,a)&&e}a.f||(g=a.currentTarget=b,e=hd(g,d,!0,a)&&e,a.f||(e=hd(g,d,!1,a)&&e));if(c)for(f=0;!a.f&&f<c.length;f++)g=a.currentTarget=c[f],e=hd(g,d,!1,a)&&e;return e};
gd.prototype.S=function(){gd.D.S.call(this);if(this.f){var a=this.f,b=0,c;for(c in a.listeners){for(var d=a.listeners[c],e=0;e<d.length;e++)++b,Mc(d[e]);delete a.listeners[c];a.f--}}this.v=null};
function hd(a,b,c,d){b=a.f.listeners[String(b)];if(!b)return!0;b=b.concat();for(var e=!0,f=0;f<b.length;++f){var g=b[f];if(g&&!g.Z&&g.capture==c){var h=g.listener,k=g.ga||g.src;g.da&&Pc(a.f,g);e=!1!==h.call(k,d)&&e}}return e&&!d.defaultPrevented}
;function id(a,b){this.i=a;this.j=b;this.g=0;this.f=null}
id.prototype.get=function(){if(0<this.g){this.g--;var a=this.f;this.f=a.next;a.next=null}else a=this.i();return a};
function jd(a,b){a.j(b);100>a.g&&(a.g++,b.next=a.f,a.f=b)}
;var kd=!hc&&!G||G&&9<=Number(zc)||hc&&wc("1.9.1"),ld=G&&!wc("9");function H(a,b){this.x=void 0!==a?a:0;this.y=void 0!==b?b:0}
m=H.prototype;m.clone=function(){return new H(this.x,this.y)};
m.equals=function(a){return a instanceof H&&(this==a?!0:this&&a?this.x==a.x&&this.y==a.y:!1)};
function md(a,b){return new H(a.x-b.x,a.y-b.y)}
m.ceil=function(){this.x=Math.ceil(this.x);this.y=Math.ceil(this.y);return this};
m.floor=function(){this.x=Math.floor(this.x);this.y=Math.floor(this.y);return this};
m.round=function(){this.x=Math.round(this.x);this.y=Math.round(this.y);return this};function nd(a,b){this.width=a;this.height=b}
m=nd.prototype;m.clone=function(){return new nd(this.width,this.height)};
m.aspectRatio=function(){return this.width/this.height};
m.isEmpty=function(){return!(this.width*this.height)};
m.ceil=function(){this.width=Math.ceil(this.width);this.height=Math.ceil(this.height);return this};
m.floor=function(){this.width=Math.floor(this.width);this.height=Math.floor(this.height);return this};
m.round=function(){this.width=Math.round(this.width);this.height=Math.round(this.height);return this};function od(a){return a?new pd(qd(a)):ab||(ab=new pd)}
function I(a){return"string"===typeof a?document.getElementById(a):a}
function rd(a,b){var c=b||document;return c.querySelectorAll&&c.querySelector?c.querySelectorAll("."+a):sd(document,"*",a,b)}
function J(a,b){var c=b||document;if(c.getElementsByClassName)c=c.getElementsByClassName(a)[0];else{c=document;var d=b||c;c=d.querySelectorAll&&d.querySelector&&a?d.querySelector(a?"."+a:""):sd(c,"*",a,b)[0]||null}return c||null}
function sd(a,b,c,d){a=d||a;b=b&&"*"!=b?String(b).toUpperCase():"";if(a.querySelectorAll&&a.querySelector&&(b||c))return a.querySelectorAll(b+(c?"."+c:""));if(c&&a.getElementsByClassName){a=a.getElementsByClassName(c);if(b){d={};for(var e=0,f=0,g;g=a[f];f++)b==g.nodeName&&(d[e++]=g);d.length=e;return d}return a}a=a.getElementsByTagName(b||"*");if(c){d={};for(f=e=0;g=a[f];f++)b=g.className,"function"==typeof b.split&&kb(b.split(/\s+/),c)&&(d[e++]=g);d.length=e;return d}return a}
function td(a,b){yb(b,function(c,d){c&&"object"==typeof c&&c.oa&&(c=c.na());"style"==d?a.style.cssText=c:"class"==d?a.className=c:"for"==d?a.htmlFor=c:ud.hasOwnProperty(d)?a.setAttribute(ud[d],c):0==d.lastIndexOf("aria-",0)||0==d.lastIndexOf("data-",0)?a.setAttribute(d,c):a[d]=c})}
var ud={cellpadding:"cellPadding",cellspacing:"cellSpacing",colspan:"colSpan",frameborder:"frameBorder",height:"height",maxlength:"maxLength",nonce:"nonce",role:"role",rowspan:"rowSpan",type:"type",usemap:"useMap",valign:"vAlign",width:"width"};function vd(a){a=a.document;a=wd(a)?a.documentElement:a.body;return new nd(a.clientWidth,a.clientHeight)}
function xd(a){var b=yd(a);a=zd(a);return G&&wc("10")&&a.pageYOffset!=b.scrollTop?new H(b.scrollLeft,b.scrollTop):new H(a.pageXOffset||b.scrollLeft,a.pageYOffset||b.scrollTop)}
function yd(a){return a.scrollingElement?a.scrollingElement:!ic&&wd(a)?a.documentElement:a.body||a.documentElement}
function zd(a){return a.parentWindow||a.defaultView}
function Ad(a,b){b=String(b);"application/xhtml+xml"===a.contentType&&(b=b.toLowerCase());return a.createElement(b)}
function wd(a){return"CSS1Compat"==a.compatMode}
function Bd(a){a&&a.parentNode&&a.parentNode.removeChild(a)}
function Cd(a){return kd&&void 0!=a.children?a.children:fb(a.childNodes,function(b){return 1==b.nodeType})}
function Dd(a){return Na(a)&&1==a.nodeType}
function Ed(a,b){if(!a||!b)return!1;if(a.contains&&1==b.nodeType)return a==b||a.contains(b);if("undefined"!=typeof a.compareDocumentPosition)return a==b||!!(a.compareDocumentPosition(b)&16);for(;b&&a!=b;)b=b.parentNode;return b==a}
function qd(a){return 9==a.nodeType?a:a.ownerDocument||a.document}
function Fd(a,b){if("textContent"in a)a.textContent=b;else if(3==a.nodeType)a.data=String(b);else if(a.firstChild&&3==a.firstChild.nodeType){for(;a.lastChild!=a.firstChild;)a.removeChild(a.lastChild);a.firstChild.data=String(b)}else{for(var c;c=a.firstChild;)a.removeChild(c);c=qd(a);a.appendChild(c.createTextNode(String(b)))}}
function Gd(a,b){var c=[];return Hd(a,b,c,!0)?c[0]:void 0}
function Hd(a,b,c,d){if(null!=a)for(a=a.firstChild;a;){if(b(a)&&(c.push(a),d)||Hd(a,b,c,d))return!0;a=a.nextSibling}return!1}
var Id={SCRIPT:1,STYLE:1,HEAD:1,IFRAME:1,OBJECT:1},Jd={IMG:" ",BR:"\n"};function Kd(a){var b;if((b="A"==a.tagName&&a.hasAttribute("href")||"INPUT"==a.tagName||"TEXTAREA"==a.tagName||"SELECT"==a.tagName||"BUTTON"==a.tagName?!a.disabled&&(!Ld(a)||Md(a)):Ld(a)&&Md(a))&&G){var c;!Ma(a.getBoundingClientRect)||G&&null==a.parentElement?c={height:a.offsetHeight,width:a.offsetWidth}:c=a.getBoundingClientRect();a=null!=c&&0<c.height&&0<c.width}else a=b;return a}
function Ld(a){return G&&!wc("9")?(a=a.getAttributeNode("tabindex"),null!=a&&a.specified):a.hasAttribute("tabindex")}
function Md(a){a=a.tabIndex;return"number"===typeof a&&0<=a&&32768>a}
function Nd(a){if(ld&&null!==a&&"innerText"in a)a=a.innerText.replace(/(\r\n|\r|\n)/g,"\n");else{var b=[];Od(a,b,!0);a=b.join("")}a=a.replace(/ \xAD /g," ").replace(/\xAD/g,"");a=a.replace(/\u200B/g,"");ld||(a=a.replace(/ +/g," "));" "!=a&&(a=a.replace(/^\s*/,""));return a}
function Od(a,b,c){if(!(a.nodeName in Id))if(3==a.nodeType)c?b.push(String(a.nodeValue).replace(/(\r\n|\r|\n)/g,"")):b.push(a.nodeValue);else if(a.nodeName in Jd)b.push(Jd[a.nodeName]);else for(a=a.firstChild;a;)Od(a,b,c),a=a.nextSibling}
function Pd(a,b,c,d){if(!b&&!c)return null;var e=b?String(b).toUpperCase():null;return Qd(a,function(f){return(!e||f.nodeName==e)&&(!c||"string"===typeof f.className&&kb(f.className.split(/\s+/),c))},!0,d)}
function K(a,b){return Pd(a,null,b,void 0)}
function Qd(a,b,c,d){a&&!c&&(a=a.parentNode);for(c=0;a&&(null==d||c<=d);){if(b(a))return a;a=a.parentNode;c++}return null}
function pd(a){this.f=a||x.document||document}
pd.prototype.getElementsByTagName=function(a,b){return(b||this.f).getElementsByTagName(String(a))};
pd.prototype.createElement=function(a){return Ad(this.f,a)};
pd.prototype.appendChild=function(a,b){a.appendChild(b)};
pd.prototype.isElement=Dd;function Rd(a){x.setTimeout(function(){throw a;},0)}
var Sd;
function Td(){var a=x.MessageChannel;"undefined"===typeof a&&"undefined"!==typeof window&&window.postMessage&&window.addEventListener&&!F("Presto")&&(a=function(){var e=Ad(document,"IFRAME");e.style.display="none";document.documentElement.appendChild(e);var f=e.contentWindow;e=f.document;e.open();e.close();var g="callImmediate"+Math.random(),h="file:"==f.location.protocol?"*":f.location.protocol+"//"+f.location.host;e=z(function(k){if(("*"==h||k.origin==h)&&k.data==g)this.port1.onmessage()},this);
f.addEventListener("message",e,!1);this.port1={};this.port2={postMessage:function(){f.postMessage(g,h)}}});
if("undefined"!==typeof a&&!F("Trident")&&!F("MSIE")){var b=new a,c={},d=c;b.port1.onmessage=function(){if(void 0!==c.next){c=c.next;var e=c.wa;c.wa=null;e()}};
return function(e){d.next={wa:e};d=d.next;b.port2.postMessage(0)}}return function(e){x.setTimeout(e,0)}}
;function Vd(){this.g=this.f=null}
var Xd=new id(function(){return new Wd},function(a){a.reset()});
Vd.prototype.add=function(a,b){var c=Xd.get();c.set(a,b);this.g?this.g.next=c:this.f=c;this.g=c};
Vd.prototype.remove=function(){var a=null;this.f&&(a=this.f,this.f=this.f.next,this.f||(this.g=null),a.next=null);return a};
function Wd(){this.next=this.scope=this.f=null}
Wd.prototype.set=function(a,b){this.f=a;this.scope=b;this.next=null};
Wd.prototype.reset=function(){this.next=this.scope=this.f=null};function Yd(a,b){Zd||$d();ae||(Zd(),ae=!0);be.add(a,b)}
var Zd;function $d(){if(x.Promise&&x.Promise.resolve){var a=x.Promise.resolve(void 0);Zd=function(){a.then(ce)}}else Zd=function(){var b=ce;
!Ma(x.setImmediate)||x.Window&&x.Window.prototype&&!F("Edge")&&x.Window.prototype.setImmediate==x.setImmediate?(Sd||(Sd=Td()),Sd(b)):x.setImmediate(b)}}
var ae=!1,be=new Vd;function ce(){for(var a;a=be.remove();){try{a.f.call(a.scope)}catch(b){Rd(b)}jd(Xd,a)}ae=!1}
;function de(a){this.f=0;this.A=void 0;this.j=this.g=this.i=null;this.o=this.v=!1;if(a!=Ha)try{var b=this;a.call(void 0,function(c){ee(b,2,c)},function(c){ee(b,3,c)})}catch(c){ee(this,3,c)}}
function fe(){this.next=this.context=this.onRejected=this.i=this.f=null;this.g=!1}
fe.prototype.reset=function(){this.context=this.onRejected=this.i=this.f=null;this.g=!1};
var ge=new id(function(){return new fe},function(a){a.reset()});
function he(a,b,c){var d=ge.get();d.i=a;d.onRejected=b;d.context=c;return d}
function ie(a){if(a instanceof de)return a;var b=new de(Ha);ee(b,2,a);return b}
function je(a){return new de(function(b,c){c(a)})}
de.prototype.then=function(a,b,c){return ke(this,Ma(a)?a:null,Ma(b)?b:null,c)};
de.prototype.$goog_Thenable=!0;function le(a,b){var c=he(b,b,void 0);c.g=!0;me(a,c)}
function ne(a,b){return ke(a,null,b,void 0)}
de.prototype.cancel=function(a){if(0==this.f){var b=new oe(a);Yd(function(){pe(this,b)},this)}};
function pe(a,b){if(0==a.f)if(a.i){var c=a.i;if(c.g){for(var d=0,e=null,f=null,g=c.g;g&&(g.g||(d++,g.f==a&&(e=g),!(e&&1<d)));g=g.next)e||(f=g);e&&(0==c.f&&1==d?pe(c,b):(f?(d=f,d.next==c.j&&(c.j=d),d.next=d.next.next):qe(c),re(c,e,3,b)))}a.i=null}else ee(a,3,b)}
function me(a,b){a.g||2!=a.f&&3!=a.f||se(a);a.j?a.j.next=b:a.g=b;a.j=b}
function ke(a,b,c,d){var e=he(null,null,null);e.f=new de(function(f,g){e.i=b?function(h){try{var k=b.call(d,h);f(k)}catch(l){g(l)}}:f;
e.onRejected=c?function(h){try{var k=c.call(d,h);void 0===k&&h instanceof oe?g(h):f(k)}catch(l){g(l)}}:g});
e.f.i=a;me(a,e);return e.f}
de.prototype.F=function(a){this.f=0;ee(this,2,a)};
de.prototype.O=function(a){this.f=0;ee(this,3,a)};
function ee(a,b,c){if(0==a.f){a===c&&(b=3,c=new TypeError("Promise cannot resolve to itself"));a.f=1;a:{var d=c,e=a.F,f=a.O;if(d instanceof de){me(d,he(e||Ha,f||null,a));var g=!0}else{if(d)try{var h=!!d.$goog_Thenable}catch(l){h=!1}else h=!1;if(h)d.then(e,f,a),g=!0;else{if(Na(d))try{var k=d.then;if(Ma(k)){te(d,k,e,f,a);g=!0;break a}}catch(l){f.call(a,l);g=!0;break a}g=!1}}}g||(a.A=c,a.f=b,a.i=null,se(a),3!=b||c instanceof oe||ue(a,c))}}
function te(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 se(a){a.v||(a.v=!0,Yd(a.B,a))}
function qe(a){var b=null;a.g&&(b=a.g,a.g=b.next,b.next=null);a.g||(a.j=null);return b}
de.prototype.B=function(){for(var a;a=qe(this);)re(this,a,this.f,this.A);this.v=!1};
function re(a,b,c,d){if(3==c&&b.onRejected&&!b.g)for(;a&&a.o;a=a.i)a.o=!1;if(b.f)b.f.i=null,ve(b,c,d);else try{b.g?b.i.call(b.context):ve(b,c,d)}catch(e){we.call(null,e)}jd(ge,b)}
function ve(a,b,c){2==b?a.i.call(a.context,c):a.onRejected&&a.onRejected.call(a.context,c)}
function ue(a,b){a.o=!0;Yd(function(){a.o&&we.call(null,b)})}
var we=Rd;function oe(a){$a.call(this,a)}
D(oe,$a);oe.prototype.name="cancel";function xe(a,b){gd.call(this);this.j=a||1;this.g=b||x;this.A=z(this.Ub,this);this.B=Ua()}
D(xe,gd);m=xe.prototype;m.enabled=!1;m.L=null;m.setInterval=function(a){this.j=a;this.L&&this.enabled?(this.stop(),this.start()):this.L&&this.stop()};
m.Ub=function(){if(this.enabled){var a=Ua()-this.B;0<a&&a<.8*this.j?this.L=this.g.setTimeout(this.A,this.j-a):(this.L&&(this.g.clearTimeout(this.L),this.L=null),this.dispatchEvent("tick"),this.enabled&&(this.stop(),this.start()))}};
m.start=function(){this.enabled=!0;this.L||(this.L=this.g.setTimeout(this.A,this.j),this.B=Ua())};
m.stop=function(){this.enabled=!1;this.L&&(this.g.clearTimeout(this.L),this.L=null)};
m.S=function(){xe.D.S.call(this);this.stop();delete this.g};function ye(){this.O=new ze;this.i=new Map;this.B=new Set;this.o=0;this.v=100;this.flushInterval=3E4;this.f=new xe(this.flushInterval);this.f.f.add("tick",this.A,!1,!1,this)}
ye.prototype.A=function(){var a=this.i.values();a=[].concat(fa(a)).filter(function(b){return b.Y.size});
a.length&&this.O.flush(a);Ae(a);this.o=0;this.f.enabled&&this.f.stop()};
ye.prototype.g=function(a,b){for(var c=[],d=1;d<arguments.length;++d)c[d-1]=arguments[d];this.i.has(a)||this.i.set(a,new Za(a,c))};
ye.prototype.j=function(a,b){for(var c=[],d=1;d<arguments.length;++d)c[d-1]=arguments[d];this.F.apply(this,[a,1].concat(fa(c)))};
ye.prototype.F=function(a,b,c){for(var d=[],e=2;e<arguments.length;++e)d[e-2]=arguments[e];(e=this.B.has(a)?void 0:this.i.get(a))&&e instanceof Za&&(e.i(b,d),this.f.enabled||this.f.start(),this.o++,this.o>=this.v&&this.A())};
function Ae(a){for(var b=0;b<a.length;b++)a[b].clear()}
;function Be(){this.f=Ce();this.f.g("/client_streamz/youtube/web/network/one_platform_requests",{U:3,T:"request_url"})}
function De(){this.f=Ce();this.f.g("/client_streamz/youtube/web/network/one_platform_redirects",{U:2,T:"response_code"},{U:3,T:"request_url"},{U:3,T:"response_url"})}
function Ee(a,b,c,d){a.f.j("/client_streamz/youtube/web/network/one_platform_redirects",b,c,d)}
function Fe(){this.f=Ce();this.f.g("/client_streamz/youtube/web/network/one_platform_request_success",{U:3,T:"request_url"})}
function Ge(){this.f=Ce();this.f.g("/client_streamz/youtube/web/network/one_platform_request_failed",{U:2,T:"response_code"},{U:3,T:"request_url"})}
;var He=0,Ie=0;function Je(a){var b=0>a;a=Math.abs(a);var c=a>>>0;a=Math.floor((a-c)/4294967296);a>>>=0;b&&(a=~a>>>0,c=(~c>>>0)+1,4294967295<c&&(c=0,a++,4294967295<a&&(a=0)));He=c;Ie=a}
function Ke(a){var b=0>a?1:0;a=b?-a:a;if(0===a)Ie=0<1/a?0:2147483648,He=0;else if(isNaN(a))Ie=2147483647,He=4294967295;else if(1.7976931348623157E308<a)Ie=(b<<31|2146435072)>>>0,He=0;else if(2.2250738585072014E-308>a)a/=Math.pow(2,-1074),Ie=(b<<31|a/4294967296)>>>0,He=a>>>0;else{var c=a,d=0;if(2<=c)for(;2<=c&&1023>d;)d++,c/=2;else for(;1>c&&-1022<d;)c*=2,d--;a*=Math.pow(2,-d);Ie=(b<<31|d+1023<<20|1048576*a&1048575)>>>0;He=4503599627370496*a>>>0}}
;function Le(){this.f=[]}
Le.prototype.length=function(){return this.f.length};
Le.prototype.end=function(){var a=this.f;this.f=[];return a};
function Me(a){for(var b=He,c=Ie;0<c||127<b;)a.f.push(b&127|128),b=(b>>>7|c<<25)>>>0,c>>>=7;a.f.push(b)}
function Ne(a,b){for(;127<b;)a.f.push(b&127|128),b>>>=7;a.f.push(b)}
function Oe(a,b){if(0<=b)Ne(a,b);else{for(var c=0;9>c;c++)a.f.push(b&127|128),b>>=7;a.f.push(1)}}
function Pe(a,b){a.f.push(b>>>0&255);a.f.push(b>>>8&255);a.f.push(b>>>16&255);a.f.push(b>>>24&255)}
;var Qe=Gb(),Re=Zb()||F("iPod"),Se=F("iPad"),Te=Jb(),Ue=Ib(),Ve=Hb()&&!$b();var We={},Xe=null;
function Ye(a,b){Ka(a);void 0===b&&(b=0);if(!Xe){Xe={};for(var c="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".split(""),d=["+/=","+/","-_=","-_.","-_"],e=0;5>e;e++){var f=c.concat(d[e].split(""));We[e]=f;for(var g=0;g<f.length;g++){var h=f[g];void 0===Xe[h]&&(Xe[h]=g)}}}c=We[b];d=[];for(e=0;e<a.length;e+=3){var k=a[e],l=(f=e+1<a.length)?a[e+1]:0,n=(g=e+2<a.length)?a[e+2]:0;h=k>>2;k=(k&3)<<4|l>>4;l=(l&15)<<2|n>>6;n&=63;g||(n=64,f||(l=64));d.push(c[h],c[k],c[l]||"",c[n]||"")}return d.join("")}
;function Ze(){this.i=[];this.g=0;this.f=new Le}
function $e(a,b){af(a,b,2);var c=a.f.end();a.i.push(c);a.g+=c.length;c.push(a.g);return c}
function bf(a,b){var c=b.pop();for(c=a.g+a.f.length()-c;127<c;)b.push(c&127|128),c>>>=7,a.g++;b.push(c);a.g++}
Ze.prototype.reset=function(){this.i=[];this.f.end();this.g=0};
function af(a,b,c){Ne(a.f,8*b+c)}
function cf(a,b,c){null!=c&&(af(a,b,1),a=a.f,b=c>>>0,c=Math.floor((c-b)/4294967296)>>>0,He=b,Ie=c,Pe(a,He),Pe(a,Ie))}
function df(a,b,c){null!=c&&(af(a,b,0),a.f.f.push(c?1:0))}
function ef(a,b,c){if(null!=c){b=$e(a,b);for(var d=a.f,e=0;e<c.length;e++){var f=c.charCodeAt(e);if(128>f)d.f.push(f);else if(2048>f)d.f.push(f>>6|192),d.f.push(f&63|128);else if(65536>f)if(55296<=f&&56319>=f&&e+1<c.length){var g=c.charCodeAt(e+1);56320<=g&&57343>=g&&(f=1024*(f-55296)+g-56320+65536,d.f.push(f>>18|240),d.f.push(f>>12&63|128),d.f.push(f>>6&63|128),d.f.push(f&63|128),e++)}else d.f.push(f>>12|224),d.f.push(f>>6&63|128),d.f.push(f&63|128)}bf(a,b)}}
function ff(a,b,c,d){null!=c&&(b=$e(a,b),d(c,a),bf(a,b))}
function gf(a,b,c,d){if(null!=c)for(var e=0;e<c.length;e++){var f=$e(a,b);d(c[e],a);bf(a,f)}}
;function hf(){}
var jf="function"==typeof Uint8Array;function kf(a,b,c,d){a.f=null;b||(b=[]);a.A=void 0;a.j=-1;a.g=b;a:{if(b=a.g.length){--b;var e=a.g[b];if(!(null===e||"object"!=typeof e||Array.isArray(e)||jf&&e instanceof Uint8Array)){a.o=b-a.j;a.i=e;break a}}a.o=Number.MAX_VALUE}a.v={};if(c)for(b=0;b<c.length;b++)e=c[b],e<a.o?(e+=a.j,a.g[e]=a.g[e]||lf):(mf(a),a.i[e]=a.i[e]||lf);if(d&&d.length)for(b=0;b<d.length;b++)nf(a,d[b])}
var lf=[];function mf(a){var b=a.o+a.j;a.g[b]||(a.i=a.g[b]={})}
function L(a,b){if(b<a.o){var c=b+a.j,d=a.g[c];return d===lf?a.g[c]=[]:d}if(a.i)return d=a.i[b],d===lf?a.i[b]=[]:d}
function of(a,b,c){b<a.o?a.g[b+a.j]=c:(mf(a),a.i[b]=c);return a}
function pf(a,b,c,d){(c=nf(a,c))&&c!==b&&void 0!==d&&(a.f&&c in a.f&&(a.f[c]=void 0),of(a,c,void 0));of(a,b,d)}
function nf(a,b){for(var c,d,e=0;e<b.length;e++){var f=b[e],g=L(a,f);null!=g&&(c=f,d=g,of(a,f,void 0))}return c?(of(a,c,d),c):0}
function qf(a,b,c){a.f||(a.f={});if(!a.f[c]){var d=L(a,c);d&&(a.f[c]=new b(d))}return a.f[c]}
function rf(a,b,c){a.f||(a.f={});if(!a.f[c]){for(var d=L(a,c),e=[],f=0;f<d.length;f++)e[f]=new b(d[f]);a.f[c]=e}b=a.f[c];b==lf&&(b=a.f[c]=[]);return b}
function sf(a,b,c){a.f||(a.f={});c=c||[];for(var d=[],e=0;e<c.length;e++)d[e]=tf(c[e]);a.f[b]=c;of(a,b,d)}
function uf(a){if(a.f)for(var b in a.f){var c=a.f[b];if(Array.isArray(c))for(var d=0;d<c.length;d++)c[d]&&tf(c[d]);else c&&tf(c)}}
function tf(a){uf(a);return a.g}
hf.prototype.toString=function(){uf(this);return this.g.toString()};
hf.prototype.clone=function(){return new this.constructor(vf(tf(this)))};
function vf(a){if(Array.isArray(a)){for(var b=Array(a.length),c=0;c<a.length;c++){var d=a[c];null!=d&&(b[c]="object"==typeof d?vf(d):d)}return b}if(jf&&a instanceof Uint8Array)return new Uint8Array(a);b={};for(c in a)d=a[c],null!=d&&(b[c]="object"==typeof d?vf(d):d);return b}
;var wf=window;function xf(a){this.f=a||{cookie:""}}
m=xf.prototype;m.isEnabled=function(){return navigator.cookieEnabled};
m.set=function(a,b,c){var d=!1;if("object"===typeof c){var e=c.Bc;d=c.secure||!1;var f=c.domain||void 0;var g=c.path||void 0;var h=c.La}if(/[;=\s]/.test(a))throw Error('Invalid cookie name "'+a+'"');if(/[;\r\n]/.test(b))throw Error('Invalid cookie value "'+b+'"');void 0===h&&(h=-1);c=f?";domain="+f:"";g=g?";path="+g:"";d=d?";secure":"";h=0>h?"":0==h?";expires="+(new Date(1970,1,1)).toUTCString():";expires="+(new Date(Ua()+1E3*h)).toUTCString();this.f.cookie=a+"="+b+c+g+h+d+(null!=e?";samesite="+e:
"")};
m.get=function(a,b){for(var c=a+"=",d=(this.f.cookie||"").split(";"),e=0,f;e<d.length;e++){f=sb(d[e]);if(0==f.lastIndexOf(c,0))return f.substr(c.length);if(f==a)return""}return b};
m.remove=function(a,b,c){var d=void 0!==this.get(a);this.set(a,"",{La:0,path:b,domain:c});return d};
m.isEmpty=function(){return!this.f.cookie};
m.clear=function(){for(var a=(this.f.cookie||"").split(";"),b=[],c=[],d,e,f=0;f<a.length;f++)e=sb(a[f]),d=e.indexOf("="),-1==d?(b.push(""),c.push(e)):(b.push(e.substring(0,d)),c.push(e.substring(d+1)));for(a=b.length-1;0<=a;a--)this.remove(b[a])};
var yf=new xf("undefined"==typeof document?null:document);var zf=/^(?:([^:/?#.]+):)?(?:\/\/(?:([^\\/?#]*)@)?([^\\/?#]*?)(?::([0-9]+))?(?=[\\/?#]|$))?([^?#]+)?(?:\?([^#]*))?(?:#([\s\S]*))?$/;function Af(a){return a?decodeURI(a):a}
function Bf(a,b){return b.match(zf)[a]||null}
function Cf(a){return Af(Bf(3,a))}
function Df(a,b){if(!b)return a;var c=a.indexOf("#");0>c&&(c=a.length);var d=a.indexOf("?");if(0>d||d>c){d=c;var e=""}else e=a.substring(d+1,c);c=[a.substr(0,d),e,a.substr(c)];d=c[1];c[1]=b?d?d+"&"+b:b:d;return c[0]+(c[1]?"?"+c[1]:"")+c[2]}
function Ef(a,b,c){if(Array.isArray(b))for(var d=0;d<b.length;d++)Ef(a,String(b[d]),c);else null!=b&&c.push(a+(""===b?"":"="+encodeURIComponent(String(b))))}
function Ff(a,b){for(var c=[],d=b||0;d<a.length;d+=2)Ef(a[d],a[d+1],c);return c.join("&")}
function Gf(a){var b=[],c;for(c in a)Ef(c,a[c],b);return b.join("&")}
function Hf(a,b){var c=2==arguments.length?Ff(arguments[1],0):Ff(arguments,1);return Df(a,c)}
function If(a,b){var c=Gf(b);return Df(a,c)}
function Jf(a,b,c){for(;0<=(b=a.indexOf("key",b))&&b<c;){var d=a.charCodeAt(b-1);if(38==d||63==d)if(d=a.charCodeAt(b+3),!d||61==d||38==d||35==d)return b;b+=4}return-1}
var Kf=/#|$/,Lf=/[?&]($|#)/;function Mf(a){for(var b=a.search(Kf),c=0,d,e=[];0<=(d=Jf(a,c,b));)e.push(a.substring(c,d)),c=Math.min(a.indexOf("&",d)+1||b,b);e.push(a.substr(c));return e.join("").replace(Lf,"$1")}
;function Nf(a){var b=Of;if(b)for(var c in b)Object.prototype.hasOwnProperty.call(b,c)&&a.call(void 0,b[c],c,b)}
function Pf(){var a=[];Nf(function(b){a.push(b)});
return a}
var Of={Yb:"allow-forms",Zb:"allow-modals",ac:"allow-orientation-lock",cc:"allow-pointer-lock",dc:"allow-popups",ec:"allow-popups-to-escape-sandbox",fc:"allow-presentation",hc:"allow-same-origin",ic:"allow-scripts",jc:"allow-top-navigation",kc:"allow-top-navigation-by-user-activation"},Qf=Kb(function(){return Pf()});
function Rf(){var a=Ad(document,"IFRAME"),b={};E(Qf(),function(c){a.sandbox&&a.sandbox.supports&&a.sandbox.supports(c)&&(b[c]=!0)});
return b}
;function Sf(a,b){var c=void 0;return new (c||(c=Promise))(function(d,e){function f(k){try{h(b.next(k))}catch(l){e(l)}}
function g(k){try{h(b["throw"](k))}catch(l){e(l)}}
function h(k){k.done?d(k.value):(new c(function(l){l(k.value)})).then(f,g)}
h((b=b.apply(a,void 0)).next())})}
;function Tf(a,b,c,d){this.top=a;this.right=b;this.bottom=c;this.left=d}
m=Tf.prototype;m.getHeight=function(){return this.bottom-this.top};
m.clone=function(){return new Tf(this.top,this.right,this.bottom,this.left)};
m.ceil=function(){this.top=Math.ceil(this.top);this.right=Math.ceil(this.right);this.bottom=Math.ceil(this.bottom);this.left=Math.ceil(this.left);return this};
m.floor=function(){this.top=Math.floor(this.top);this.right=Math.floor(this.right);this.bottom=Math.floor(this.bottom);this.left=Math.floor(this.left);return this};
m.round=function(){this.top=Math.round(this.top);this.right=Math.round(this.right);this.bottom=Math.round(this.bottom);this.left=Math.round(this.left);return this};function Uf(a,b,c,d){this.left=a;this.top=b;this.width=c;this.height=d}
Uf.prototype.clone=function(){return new Uf(this.left,this.top,this.width,this.height)};
Uf.prototype.ceil=function(){this.left=Math.ceil(this.left);this.top=Math.ceil(this.top);this.width=Math.ceil(this.width);this.height=Math.ceil(this.height);return this};
Uf.prototype.floor=function(){this.left=Math.floor(this.left);this.top=Math.floor(this.top);this.width=Math.floor(this.width);this.height=Math.floor(this.height);return this};
Uf.prototype.round=function(){this.left=Math.round(this.left);this.top=Math.round(this.top);this.width=Math.round(this.width);this.height=Math.round(this.height);return this};function Vf(a,b,c){if("string"===typeof b)(b=Wf(a,b))&&(a.style[b]=c);else for(var d in b){c=a;var e=b[d],f=Wf(c,d);f&&(c.style[f]=e)}}
var Xf={};function Wf(a,b){var c=Xf[b];if(!c){var d=Xb(b);c=d;void 0===a.style[d]&&(d=(ic?"Webkit":hc?"Moz":G?"ms":ec?"O":null)+Yb(d),void 0!==a.style[d]&&(c=d));Xf[b]=c}return c}
function Yf(a,b){var c=qd(a);return c.defaultView&&c.defaultView.getComputedStyle&&(c=c.defaultView.getComputedStyle(a,null))?c[b]||c.getPropertyValue(b)||"":""}
function Zf(a,b){return Yf(a,b)||(a.currentStyle?a.currentStyle[b]:null)||a.style&&a.style[b]}
function $f(a){try{return a.getBoundingClientRect()}catch(b){return{left:0,top:0,right:0,bottom:0}}}
function ag(a){if(G&&!(8<=Number(zc)))return a.offsetParent;var b=qd(a),c=Zf(a,"position"),d="fixed"==c||"absolute"==c;for(a=a.parentNode;a&&a!=b;a=a.parentNode)if(11==a.nodeType&&a.host&&(a=a.host),c=Zf(a,"position"),d=d&&"static"==c&&a!=b.documentElement&&a!=b.body,!d&&(a.scrollWidth>a.clientWidth||a.scrollHeight>a.clientHeight||"fixed"==c||"absolute"==c||"relative"==c))return a;return null}
function bg(a){for(var b=new Tf(0,Infinity,Infinity,0),c=od(a),d=c.f.body,e=c.f.documentElement,f=yd(c.f);a=ag(a);)if(!(G&&0==a.clientWidth||ic&&0==a.clientHeight&&a==d)&&a!=d&&a!=e&&"visible"!=Zf(a,"overflow")){var g=cg(a),h=new H(a.clientLeft,a.clientTop);g.x+=h.x;g.y+=h.y;b.top=Math.max(b.top,g.y);b.right=Math.min(b.right,g.x+a.clientWidth);b.bottom=Math.min(b.bottom,g.y+a.clientHeight);b.left=Math.max(b.left,g.x)}d=f.scrollLeft;f=f.scrollTop;b.left=Math.max(b.left,d);b.top=Math.max(b.top,f);c=
vd(zd(c.f)||window);b.right=Math.min(b.right,d+c.width);b.bottom=Math.min(b.bottom,f+c.height);return 0<=b.top&&0<=b.left&&b.bottom>b.top&&b.right>b.left?b:null}
function cg(a){var b=qd(a),c=new H(0,0);var d=b?qd(b):document;d=!G||9<=Number(zc)||wd(od(d).f)?d.documentElement:d.body;if(a==d)return c;a=$f(a);b=xd(od(b).f);c.x=a.left+b.x;c.y=a.top+b.y;return c}
function dg(a){a=$f(a);return new H(a.left,a.top)}
function eg(a,b){"number"==typeof a&&(a=(b?Math.round(a):a)+"px");return a}
function fg(a){var b=gg;if("none"!=Zf(a,"display"))return b(a);var c=a.style,d=c.display,e=c.visibility,f=c.position;c.visibility="hidden";c.position="absolute";c.display="inline";a=b(a);c.display=d;c.position=f;c.visibility=e;return a}
function gg(a){var b=a.offsetWidth,c=a.offsetHeight,d=ic&&!b&&!c;return(void 0===b||d)&&a.getBoundingClientRect?(a=$f(a),new nd(a.right-a.left,a.bottom-a.top)):new nd(b,c)}
function hg(a){var b=cg(a);a=fg(a);return new Uf(b.x,b.y,a.width,a.height)}
function ig(a){return"rtl"==Zf(a,"direction")}
function jg(a,b){if(/^\d+px?$/.test(b))return parseInt(b,10);var c=a.style.left,d=a.runtimeStyle.left;a.runtimeStyle.left=a.currentStyle.left;a.style.left=b;var e=a.style.pixelLeft;a.style.left=c;a.runtimeStyle.left=d;return+e}
function kg(a,b){var c=a.currentStyle?a.currentStyle[b]:null;return c?jg(a,c):0}
var lg={thin:2,medium:4,thick:6};function mg(a,b){if("none"==(a.currentStyle?a.currentStyle[b+"Style"]:null))return 0;var c=a.currentStyle?a.currentStyle[b+"Width"]:null;return c in lg?lg[c]:jg(a,c)}
;var ng=(new Date).getTime();function og(a){if(!a)return"";a=a.split("#")[0].split("?")[0];a=a.toLowerCase();0==a.indexOf("//")&&(a=window.location.protocol+a);/^[\w\-]*:\/\//.test(a)||(a=window.location.href);var b=a.substring(a.indexOf("://")+3),c=b.indexOf("/");-1!=c&&(b=b.substring(0,c));a=a.substring(0,a.indexOf("://"));if("http"!==a&&"https"!==a&&"chrome-extension"!==a&&"file"!==a&&"android-app"!==a&&"chrome-search"!==a&&"chrome-untrusted"!==a&&"chrome"!==a&&"app"!==a&&"devtools"!==a)throw Error("Invalid URI scheme in origin: "+
a);c="";var d=b.indexOf(":");if(-1!=d){var e=b.substring(d+1);b=b.substring(0,d);if("http"===a&&"80"!==e||"https"===a&&"443"!==e)c=":"+e}return a+"://"+b+c}
;/*
 gapi.loader.OBJECT_CREATE_TEST_OVERRIDE &&*/
var pg=window,qg=document,rg=pg.location;function sg(){}
var tg=/\[native code\]/;function M(a,b,c){return a[b]=a[b]||c}
function ug(a){a=a.sort();for(var b=[],c=void 0,d=0;d<a.length;d++){var e=a[d];e!=c&&b.push(e);c=e}return b}
function vg(){var a;if((a=Object.create)&&tg.test(a))a=a(null);else{a={};for(var b in a)a[b]=void 0}return a}
var wg=M(pg,"gapi",{});var N;N=M(pg,"___jsl",vg());M(N,"I",0);M(N,"hel",10);function xg(){var a=rg.href;if(N.dpo)var b=N.h;else{b=N.h;var c=RegExp("([#].*&|[#])jsh=([^&#]*)","g"),d=RegExp("([?#].*&|[?#])jsh=([^&#]*)","g");if(a=a&&(c.exec(a)||d.exec(a)))try{b=decodeURIComponent(a[2])}catch(e){}}return b}
function yg(a){var b=M(N,"PQ",[]);N.PQ=[];var c=b.length;if(0===c)a();else for(var d=0,e=function(){++d===c&&a()},f=0;f<c;f++)b[f](e)}
function zg(a){return M(M(N,"H",vg()),a,vg())}
;function Ag(){function a(){e[0]=1732584193;e[1]=4023233417;e[2]=2562383102;e[3]=271733878;e[4]=3285377520;n=l=0}
function b(p){for(var q=g,r=0;64>r;r+=4)q[r/4]=p[r]<<24|p[r+1]<<16|p[r+2]<<8|p[r+3];for(r=16;80>r;r++)p=q[r-3]^q[r-8]^q[r-14]^q[r-16],q[r]=(p<<1|p>>>31)&4294967295;p=e[0];var v=e[1],B=e[2],C=e[3],Qb=e[4];for(r=0;80>r;r++){if(40>r)if(20>r){var ma=C^v&(B^C);var La=1518500249}else ma=v^B^C,La=1859775393;else 60>r?(ma=v&B|C&(v|B),La=2400959708):(ma=v^B^C,La=3395469782);ma=((p<<5|p>>>27)&4294967295)+ma+Qb+La+q[r]&4294967295;Qb=C;C=B;B=(v<<30|v>>>2)&4294967295;v=p;p=ma}e[0]=e[0]+p&4294967295;e[1]=e[1]+
v&4294967295;e[2]=e[2]+B&4294967295;e[3]=e[3]+C&4294967295;e[4]=e[4]+Qb&4294967295}
function c(p,q){if("string"===typeof p){p=unescape(encodeURIComponent(p));for(var r=[],v=0,B=p.length;v<B;++v)r.push(p.charCodeAt(v));p=r}q||(q=p.length);r=0;if(0==l)for(;r+64<q;)b(p.slice(r,r+64)),r+=64,n+=64;for(;r<q;)if(f[l++]=p[r++],n++,64==l)for(l=0,b(f);r+64<q;)b(p.slice(r,r+64)),r+=64,n+=64}
function d(){var p=[],q=8*n;56>l?c(h,56-l):c(h,64-(l-56));for(var r=63;56<=r;r--)f[r]=q&255,q>>>=8;b(f);for(r=q=0;5>r;r++)for(var v=24;0<=v;v-=8)p[q++]=e[r]>>v&255;return p}
for(var e=[],f=[],g=[],h=[128],k=1;64>k;++k)h[k]=0;var l,n;a();return{reset:a,update:c,digest:d,ob:function(){for(var p=d(),q="",r=0;r<p.length;r++)q+="0123456789ABCDEF".charAt(Math.floor(p[r]/16))+"0123456789ABCDEF".charAt(p[r]%16);return q}}}
;function Bg(a,b,c){var d=[],e=[];if(1==(Array.isArray(c)?2:1))return e=[b,a],E(d,function(h){e.push(h)}),Cg(e.join(" "));
var f=[],g=[];E(c,function(h){g.push(h.key);f.push(h.value)});
c=Math.floor((new Date).getTime()/1E3);e=0==f.length?[c,b,a]:[f.join(":"),c,b,a];E(d,function(h){e.push(h)});
a=Cg(e.join(" "));a=[c,a];0==g.length||a.push(g.join(""));return a.join("_")}
function Cg(a){var b=Ag();b.update(a);return b.ob().toLowerCase()}
;function Dg(a){var b=og(String(x.location.href)),c;(c=x.__SAPISID||x.__APISID||x.__OVERRIDE_SID)?c=!0:(c=new xf(document),c=c.get("SAPISID")||c.get("APISID")||c.get("__Secure-3PAPISID")||c.get("SID"),c=!!c);if(c&&(c=(b=0==b.indexOf("https:")||0==b.indexOf("chrome-extension:"))?x.__SAPISID:x.__APISID,c||(c=new xf(document),c=c.get(b?"SAPISID":"APISID")||c.get("__Secure-3PAPISID")),c)){b=b?"SAPISIDHASH":"APISIDHASH";var d=String(x.location.href);return d&&c&&b?[b,Bg(og(d),c,a||null)].join(" "):null}return null}
;var Eg=M(N,"perf",vg());M(Eg,"g",vg());var Fg=M(Eg,"i",vg());M(Eg,"r",[]);vg();vg();function Gg(a,b,c){b&&0<b.length&&(b=Hg(b),c&&0<c.length&&(b+="___"+Hg(c)),28<b.length&&(b=b.substr(0,28)+(b.length-28)),c=b,b=M(Fg,"_p",vg()),M(b,c,vg())[a]=(new Date).getTime(),b=Eg.r,"function"===typeof b?b(a,"_p",c):b.push([a,"_p",c]))}
function Hg(a){return a.join("__").replace(/\./g,"_").replace(/\-/g,"_").replace(/,/g,"_")}
;var Ig=vg(),Jg=[];function Kg(a){throw Error("Bad hint"+(a?": "+a:""));}
Jg.push(["jsl",function(a){for(var b in a)if(Object.prototype.hasOwnProperty.call(a,b)){var c=a[b];"object"==typeof c?N[b]=M(N,b,[]).concat(c):M(N,b,c)}if(b=a.u)a=M(N,"us",[]),a.push(b),(b=/^https:(.*)$/.exec(b))&&a.push("http:"+b[1])}]);
var Lg=/^(\/[a-zA-Z0-9_\-]+)+$/,Mg=[/\/amp\//,/\/amp$/,/^\/amp$/],Ng=/^[a-zA-Z0-9\-_\.,!]+$/,Og=/^gapi\.loaded_[0-9]+$/,Pg=/^[a-zA-Z0-9,._-]+$/;function Qg(a,b,c,d){var e=a.split(";"),f=e.shift(),g=Ig[f],h=null;g?h=g(e,b,c,d):Kg("no hint processor for: "+f);h||Kg("failed to generate load url");b=h;c=b.match(Rg);(d=b.match(Sg))&&1===d.length&&Tg.test(b)&&c&&1===c.length||Kg("failed sanity: "+a);return h}
function Ug(a,b,c,d){function e(f){return encodeURIComponent(f).replace(/%2C/g,",")}
a=Vg(a);Og.test(c)||Kg("invalid_callback");b=Wg(b);d=d&&d.length?Wg(d):null;return[encodeURIComponent(a.pathPrefix).replace(/%2C/g,",").replace(/%2F/g,"/"),"/k=",e(a.version),"/m=",e(b),d?"/exm="+e(d):"","/rt=j/sv=1/d=1/ed=1",a.ua?"/am="+e(a.ua):"",a.Ya?"/rs="+e(a.Ya):"",a.ib?"/t="+e(a.ib):"","/cb=",e(c)].join("")}
function Vg(a){"/"!==a.charAt(0)&&Kg("relative path");for(var b=a.substring(1).split("/"),c=[];b.length;){a=b.shift();if(!a.length||0==a.indexOf("."))Kg("empty/relative directory");else if(0<a.indexOf("=")){b.unshift(a);break}c.push(a)}a={};for(var d=0,e=b.length;d<e;++d){var f=b[d].split("="),g=decodeURIComponent(f[0]),h=decodeURIComponent(f[1]);2==f.length&&g&&h&&(a[g]=a[g]||h)}b="/"+c.join("/");Lg.test(b)||Kg("invalid_prefix");c=0;for(d=Mg.length;c<d;++c)Mg[c].test(b)&&Kg("invalid_prefix");c=Xg(a,
"k",!0);d=Xg(a,"am");e=Xg(a,"rs");a=Xg(a,"t");return{pathPrefix:b,version:c,ua:d,Ya:e,ib:a}}
function Wg(a){for(var b=[],c=0,d=a.length;c<d;++c){var e=a[c].replace(/\./g,"_").replace(/-/g,"_");Pg.test(e)&&b.push(e)}return b.join(",")}
function Xg(a,b,c){a=a[b];!a&&c&&Kg("missing: "+b);if(a){if(Ng.test(a))return a;Kg("invalid: "+b)}return null}
var Tg=/^https?:\/\/[a-z0-9_.-]+\.google(rs)?\.com(:\d+)?\/[a-zA-Z0-9_.,!=\-\/]+$/,Sg=/\/cb=/g,Rg=/\/\//g;function Yg(){var a=xg();if(!a)throw Error("Bad hint");return a}
Ig.m=function(a,b,c,d){(a=a[0])||Kg("missing_hint");return"https://apis.google.com"+Ug(a,b,c,d)};
var Zg=decodeURI("%73cript"),$g=/^[-+_0-9\/A-Za-z]+={0,2}$/;function ah(a,b){for(var c=[],d=0;d<a.length;++d){var e=a[d],f;if(f=e){a:{for(f=0;f<b.length;f++)if(b[f]===e)break a;f=-1}f=0>f}f&&c.push(e)}return c}
function bh(){var a=N.nonce;return void 0!==a?a&&a===String(a)&&a.match($g)?a:N.nonce=null:qg.querySelector?(a=qg.querySelector("script[nonce]"))?(a=a.nonce||a.getAttribute("nonce")||"",a&&a===String(a)&&a.match($g)?N.nonce=a:N.nonce=null):null:null}
function ch(a){if("loading"!=qg.readyState)dh(a);else{var b=bh(),c="";null!==b&&(c=' nonce="'+b+'"');a="<"+Zg+' src="'+encodeURI(a)+'"'+c+"></"+Zg+">";qg.write(eh?eh.createHTML(a):a)}}
function dh(a){var b=qg.createElement(Zg);b.setAttribute("src",eh?eh.createScriptURL(a):a);a=bh();null!==a&&b.setAttribute("nonce",a);b.async="true";(a=qg.getElementsByTagName(Zg)[0])?a.parentNode.insertBefore(b,a):(qg.head||qg.body||qg.documentElement).appendChild(b)}
function fh(a,b){var c=b&&b._c;if(c)for(var d=0;d<Jg.length;d++){var e=Jg[d][0],f=Jg[d][1];f&&Object.prototype.hasOwnProperty.call(c,e)&&f(c[e],a,b)}}
function gh(a,b,c){hh(function(){var d=b===xg()?M(wg,"_",vg()):vg();d=M(zg(b),"_",d);a(d)},c)}
function ih(a,b){var c=b||{};"function"==typeof b&&(c={},c.callback=b);fh(a,c);var d=a?a.split(":"):[],e=c.h||Yg(),f=M(N,"ah",vg());if(f["::"]&&d.length){for(var g=[],h=null;h=d.shift();){var k=h.split(".");k=f[h]||f[k[1]&&"ns:"+k[0]||""]||e;var l=g.length&&g[g.length-1]||null,n=l;l&&l.hint==k||(n={hint:k,features:[]},g.push(n));n.features.push(h)}var p=g.length;if(1<p){var q=c.callback;q&&(c.callback=function(){0==--p&&q()})}for(;d=g.shift();)jh(d.features,c,d.hint)}else jh(d||[],c,e)}
function jh(a,b,c){function d(ma,La){if(p)return 0;pg.clearTimeout(n);q.push.apply(q,v);var Tc=((wg||{}).config||{}).update;Tc?Tc(f):f&&M(N,"cu",[]).push(f);if(La){Gg("me0",ma,r);try{gh(La,c,l)}finally{Gg("me1",ma,r)}}return 1}
a=ug(a)||[];var e=b.callback,f=b.config,g=b.timeout,h=b.ontimeout,k=b.onerror,l=void 0;"function"==typeof k&&(l=k);var n=null,p=!1;if(g&&!h||!g&&h)throw"Timeout requires both the timeout parameter and ontimeout parameter to be set";k=M(zg(c),"r",[]).sort();var q=M(zg(c),"L",[]).sort(),r=[].concat(k);0<g&&(n=pg.setTimeout(function(){p=!0;h()},g));
var v=ah(a,q);if(v.length){v=ah(a,k);var B=M(N,"CP",[]),C=B.length;B[C]=function(ma){function La(){var Ud=B[C+1];Ud&&Ud()}
function Tc(Ud){B[C]=null;d(v,ma)&&yg(function(){e&&e();Ud()})}
if(!ma)return 0;Gg("ml1",v,r);0<C&&B[C-1]?B[C]=function(){Tc(La)}:Tc(La)};
if(v.length){var Qb="loaded_"+N.I++;wg[Qb]=function(ma){B[C](ma);wg[Qb]=null};
a=Qg(c,v,"gapi."+Qb,k);k.push.apply(k,v);Gg("ml0",v,r);b.sync||pg.___gapisync?ch(a):dh(a)}else B[C](sg)}else d(v)&&e&&e()}
var eh=Wa("goog#gapi");function hh(a,b){if(N.hee&&0<N.hel)try{return a()}catch(c){b&&b(c),N.hel--,ih("debug_error",function(){try{window.___jsl.hefn(c)}catch(d){throw c;}})}else try{return a()}catch(c){throw b&&b(c),c;
}}
wg.load=function(a,b){return hh(function(){return ih(a,b)})};function kh(){this.g=-1}
;function lh(){this.g=64;this.f=[];this.v=[];this.A=[];this.j=[];this.j[0]=128;for(var a=1;a<this.g;++a)this.j[a]=0;this.o=this.i=0;this.reset()}
D(lh,kh);lh.prototype.reset=function(){this.f[0]=1732584193;this.f[1]=4023233417;this.f[2]=2562383102;this.f[3]=271733878;this.f[4]=3285377520;this.o=this.i=0};
function mh(a,b,c){c||(c=0);var d=a.A;if("string"===typeof b)for(var e=0;16>e;e++)d[e]=b.charCodeAt(c)<<24|b.charCodeAt(c+1)<<16|b.charCodeAt(c+2)<<8|b.charCodeAt(c+3),c+=4;else for(e=0;16>e;e++)d[e]=b[c]<<24|b[c+1]<<16|b[c+2]<<8|b[c+3],c+=4;for(e=16;80>e;e++){var f=d[e-3]^d[e-8]^d[e-14]^d[e-16];d[e]=(f<<1|f>>>31)&4294967295}b=a.f[0];c=a.f[1];var g=a.f[2],h=a.f[3],k=a.f[4];for(e=0;80>e;e++){if(40>e)if(20>e){f=h^c&(g^h);var l=1518500249}else f=c^g^h,l=1859775393;else 60>e?(f=c&g|h&(c|g),l=2400959708):
(f=c^g^h,l=3395469782);f=(b<<5|b>>>27)+f+k+l+d[e]&4294967295;k=h;h=g;g=(c<<30|c>>>2)&4294967295;c=b;b=f}a.f[0]=a.f[0]+b&4294967295;a.f[1]=a.f[1]+c&4294967295;a.f[2]=a.f[2]+g&4294967295;a.f[3]=a.f[3]+h&4294967295;a.f[4]=a.f[4]+k&4294967295}
lh.prototype.update=function(a,b){if(null!=a){void 0===b&&(b=a.length);for(var c=b-this.g,d=0,e=this.v,f=this.i;d<b;){if(0==f)for(;d<=c;)mh(this,a,d),d+=this.g;if("string"===typeof a)for(;d<b;){if(e[f]=a.charCodeAt(d),++f,++d,f==this.g){mh(this,e);f=0;break}}else for(;d<b;)if(e[f]=a[d],++f,++d,f==this.g){mh(this,e);f=0;break}}this.i=f;this.o+=b}};
lh.prototype.digest=function(){var a=[],b=8*this.o;56>this.i?this.update(this.j,56-this.i):this.update(this.j,this.g-(this.i-56));for(var c=this.g-1;56<=c;c--)this.v[c]=b&255,b/=256;mh(this,this.v);for(c=b=0;5>c;c++)for(var d=24;0<=d;d-=8)a[b]=this.f[c]>>d&255,++b;return a};function nh(a){kf(this,a,oh,null)}
D(nh,hf);function ph(a){kf(this,a,null,null)}
D(ph,hf);var oh=[1];function qh(a,b){var c=rf(a,ph,1);0<c.length&&gf(b,1,c,rh)}
function rh(a,b){var c=L(a,1);if(null!=c&&null!=c){af(b,1,1);var d=b.f;Ke(c);Pe(d,He);Pe(d,Ie)}c=L(a,2);null!=c&&null!=c&&null!=c&&(af(b,2,0),d=b.f,Je(c),Me(d))}
;function sh(a){kf(this,a,th,null)}
D(sh,hf);function uh(a){kf(this,a,null,vh)}
D(uh,hf);function wh(a){kf(this,a,null,null)}
D(wh,hf);function xh(a){kf(this,a,null,null)}
D(xh,hf);function yh(a){kf(this,a,zh,null)}
D(yh,hf);function Ah(a){kf(this,a,null,Bh)}
D(Ah,hf);function Ch(a){kf(this,a,null,Dh)}
D(Ch,hf);var th=[3,6,4],vh=[[1,2]];function Eh(a,b){var c=qf(a,wh,1);null!=c&&ff(b,1,c,Fh);c=qf(a,xh,2);null!=c&&ff(b,2,c,Gh)}
function Fh(a,b){var c=L(a,1);null!=c&&ef(b,1,c);c=L(a,2);null!=c&&ef(b,2,c);c=L(a,3);null!=c&&df(b,3,c)}
function Gh(a,b){var c=L(a,1);null!=c&&ef(b,1,c);c=L(a,2);null!=c&&ef(b,2,c);c=L(a,3);null!=c&&null!=c&&null!=c&&(af(b,3,0),Oe(b.f,c));c=L(a,4);null!=c&&df(b,4,c)}
var zh=[1];function Hh(a,b){var c=rf(a,Ah,1);0<c.length&&gf(b,1,c,Ih);c=qf(a,Ch,2);null!=c&&ff(b,2,c,Jh)}
var Bh=[[1,2,3]];function Ih(a,b){var c=L(a,1);null!=c&&ef(b,1,c);c=L(a,2);null!=c&&null!=c&&null!=c&&(af(b,2,0),Oe(b.f,c));c=L(a,3);null!=c&&df(b,3,c)}
var Dh=[[1,2,3]];function Jh(a,b){var c=L(a,1);if(null!=c&&null!=c&&null!=c){af(b,1,0);var d=b.f;Je(c);Me(d)}c=L(a,2);null!=c&&null!=c&&(af(b,2,1),d=b.f,Ke(c),Pe(d,He),Pe(d,Ie));c=qf(a,nh,3);null!=c&&ff(b,3,c,qh)}
;function Kh(){this.g=[];this.f=-1}
Kh.prototype.set=function(a,b){b=void 0===b?!0:b;0<=a&&52>a&&0===a%1&&this.g[a]!=b&&(this.g[a]=b,this.f=-1)};
Kh.prototype.get=function(a){return!!this.g[a]};
function Lh(a){-1==a.f&&(a.f=hb(a.g,function(b,c,d){return c?b+Math.pow(2,d):b},0));
return a.f}
;var Mh="StopIteration"in x?x.StopIteration:{message:"StopIteration",stack:""};function Nh(){}
Nh.prototype.next=function(){throw Mh;};
Nh.prototype.P=function(){return this};
function Oh(a){if(a instanceof Nh)return a;if("function"==typeof a.P)return a.P(!1);if(Ka(a)){var b=0,c=new Nh;c.next=function(){for(;;){if(b>=a.length)throw Mh;if(b in a)return a[b++];b++}};
return c}throw Error("Not implemented");}
function Ph(a,b){if(Ka(a))try{E(a,b,void 0)}catch(c){if(c!==Mh)throw c;}else{a=Oh(a);try{for(;;)b.call(void 0,a.next(),void 0,a)}catch(c){if(c!==Mh)throw c;}}}
function Qh(a){if(Ka(a))return nb(a);a=Oh(a);var b=[];Ph(a,function(c){b.push(c)});
return b}
;function Rh(a,b){this.i={};this.f=[];this.R=this.g=0;var c=arguments.length;if(1<c){if(c%2)throw Error("Uneven number of arguments");for(var d=0;d<c;d+=2)this.set(arguments[d],arguments[d+1])}else if(a)if(a instanceof Rh)for(c=Sh(a),d=0;d<c.length;d++)this.set(c[d],a.get(c[d]));else for(d in a)this.set(d,a[d])}
function Sh(a){Th(a);return a.f.concat()}
m=Rh.prototype;m.equals=function(a,b){if(this===a)return!0;if(this.g!=a.g)return!1;var c=b||Uh;Th(this);for(var d,e=0;d=this.f[e];e++)if(!c(this.get(d),a.get(d)))return!1;return!0};
function Uh(a,b){return a===b}
m.isEmpty=function(){return 0==this.g};
m.clear=function(){this.i={};this.R=this.g=this.f.length=0};
m.remove=function(a){return Object.prototype.hasOwnProperty.call(this.i,a)?(delete this.i[a],this.g--,this.R++,this.f.length>2*this.g&&Th(this),!0):!1};
function Th(a){if(a.g!=a.f.length){for(var b=0,c=0;b<a.f.length;){var d=a.f[b];Object.prototype.hasOwnProperty.call(a.i,d)&&(a.f[c++]=d);b++}a.f.length=c}if(a.g!=a.f.length){var e={};for(c=b=0;b<a.f.length;)d=a.f[b],Object.prototype.hasOwnProperty.call(e,d)||(a.f[c++]=d,e[d]=1),b++;a.f.length=c}}
m.get=function(a,b){return Object.prototype.hasOwnProperty.call(this.i,a)?this.i[a]:b};
m.set=function(a,b){Object.prototype.hasOwnProperty.call(this.i,a)||(this.g++,this.f.push(a),this.R++);this.i[a]=b};
m.forEach=function(a,b){for(var c=Sh(this),d=0;d<c.length;d++){var e=c[d],f=this.get(e);a.call(b,f,e,this)}};
m.clone=function(){return new Rh(this)};
m.P=function(a){Th(this);var b=0,c=this.R,d=this,e=new Nh;e.next=function(){if(c!=d.R)throw Error("The map has changed since the iterator was created");if(b>=d.f.length)throw Mh;var f=d.f[b++];return a?f:d.i[f]};
return e};function Vh(a){return"string"==typeof a.className?a.className:a.getAttribute&&a.getAttribute("class")||""}
function Wh(a){return a.classList?a.classList:Vh(a).match(/\S+/g)||[]}
function Xh(a,b){"string"==typeof a.className?a.className=b:a.setAttribute&&a.setAttribute("class",b)}
function O(a,b){return a.classList?a.classList.contains(b):kb(Wh(a),b)}
function P(a,b){if(a.classList)a.classList.add(b);else if(!O(a,b)){var c=Vh(a);Xh(a,c+(0<c.length?" "+b:b))}}
function Yh(a,b){if(a.classList)E(b,function(f){P(a,f)});
else{var c={};E(Wh(a),function(f){c[f]=!0});
E(b,function(f){c[f]=!0});
var d="",e;for(e in c)d+=0<d.length?" "+e:e;Xh(a,d)}}
function Zh(a,b){a.classList?a.classList.remove(b):O(a,b)&&Xh(a,fb(Wh(a),function(c){return c!=b}).join(" "))}
function $h(a,b){a.classList?E(b,function(c){Zh(a,c)}):Xh(a,fb(Wh(a),function(c){return!kb(b,c)}).join(" "))}
function ai(a,b,c){c?P(a,b):Zh(a,b)}
function bi(a,b,c){O(a,b)&&(Zh(a,b),P(a,c))}
function ci(a,b){var c=!O(a,b);ai(a,b,c)}
;var di=!G&&!Hb();function ei(a,b){if(/-[a-z]/.test(b))return null;if(di&&a.dataset){if(Jb()&&!(b in a.dataset))return null;var c=a.dataset[b];return void 0===c?null:c}return a.getAttribute("data-"+String(b).replace(/([A-Z])/g,"-$1").toLowerCase())}
;function fi(a){var b=[];gi(new hi,a,b);return b.join("")}
function hi(){}
function gi(a,b,c){if(null==b)c.push("null");else{if("object"==typeof b){if(Array.isArray(b)){var d=b;b=d.length;c.push("[");for(var e="",f=0;f<b;f++)c.push(e),gi(a,d[f],c),e=",";c.push("]");return}if(b instanceof String||b instanceof Number||b instanceof Boolean)b=b.valueOf();else{c.push("{");e="";for(d in b)Object.prototype.hasOwnProperty.call(b,d)&&(f=b[d],"function"!=typeof f&&(c.push(e),ii(d,c),c.push(":"),gi(a,f,c),e=","));c.push("}");return}}switch(typeof b){case "string":ii(b,c);break;case "number":c.push(isFinite(b)&&
!isNaN(b)?String(b):"null");break;case "boolean":c.push(String(b));break;case "function":c.push("null");break;default:throw Error("Unknown type: "+typeof b);}}}
var ji={'"':'\\"',"\\":"\\\\","/":"\\/","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t","\x0B":"\\u000b"},ki=/\uffff/.test("\uffff")?/[\\"\x00-\x1f\x7f-\uffff]/g:/[\\"\x00-\x1f\x7f-\xff]/g;function ii(a,b){b.push('"',a.replace(ki,function(c){var d=ji[c];d||(d="\\u"+(c.charCodeAt(0)|65536).toString(16).substr(1),ji[c]=d);return d}),'"')}
;var li=function(){if(kc){var a=/Windows NT ([0-9.]+)/;return(a=a.exec(vb))?a[1]:"0"}return jc?(a=/10[_.][0-9_.]+/,(a=a.exec(vb))?a[0].replace(/_/g,"."):"10"):lc?(a=/Android\s+([^\);]+)(\)|;)/,(a=a.exec(vb))?a[1]:""):mc||nc||oc?(a=/(?:iPhone|CPU)\s+OS\s+(\S+)/,(a=a.exec(vb))?a[1].replace(/_/g,"."):""):""}();function mi(a){return(a=a.exec(vb))?a[1]:""}
var ni=function(){if(Qe)return mi(/Firefox\/([0-9.]+)/);if(G||fc||ec)return vc;if(Ue)return $b()?mi(/CriOS\/([0-9.]+)/):mi(/Chrome\/([0-9.]+)/);if(Ve&&!$b())return mi(/Version\/([0-9.]+)/);if(Re||Se){var a=/Version\/(\S+).*Mobile\/(\S+)/.exec(vb);if(a)return a[1]+"."+a[2]}else if(Te)return(a=mi(/Android\s+([0-9.]+)/))?a:mi(/Version\/([0-9.]+)/);return""}();function oi(a,b,c,d,e,f,g){var h;if(h=c.offsetParent){var k="HTML"==h.tagName||"BODY"==h.tagName;if(!k||"static"!=Zf(h,"position")){var l=cg(h);if(!k){k=ig(h);var n;if(n=k){if(n=Ve)n=0<=tb(ni,10);var p;if(p=pc)p=0<=tb(li,10);n=hc||n||p}k=n?-h.scrollLeft:!k||gc&&wc("8")||"visible"==Zf(h,"overflowX")?h.scrollLeft:h.scrollWidth-h.clientWidth-h.scrollLeft;l=md(l,new H(k,h.scrollTop))}}}h=l||new H;l=hg(a);if(k=bg(a)){var q=new Uf(k.left,k.top,k.right-k.left,k.bottom-k.top);k=Math.max(l.left,q.left);n=
Math.min(l.left+l.width,q.left+q.width);k<=n&&(p=Math.max(l.top,q.top),q=Math.min(l.top+l.height,q.top+q.height),p<=q&&(l.left=k,l.top=p,l.width=n-k,l.height=q-p))}k=od(a);p=od(c);if(k.f!=p.f){n=k.f.body;p=zd(p.f);q=new H(0,0);var r=(r=qd(n))?zd(r):window;if(bc(r,"parent")){var v=n;do{var B=r==p?cg(v):dg(v);q.x+=B.x;q.y+=B.y}while(r&&r!=p&&r!=r.parent&&(v=r.frameElement)&&(r=r.parent))}n=md(q,cg(n));!G||9<=Number(zc)||wd(k.f)||(n=md(n,xd(k.f)));l.left+=n.x;l.top+=n.y}a=pi(a,b);b=l.left;a&4?b+=l.width:
a&2&&(b+=l.width/2);b=new H(b,l.top+(a&1?l.height:0));b=md(b,h);e&&(b.x+=(a&4?-1:1)*e.x,b.y+=(a&1?-1:1)*e.y);var C;g&&(C=bg(c))&&(C.top-=h.y,C.right-=h.x,C.bottom-=h.y,C.left-=h.x);return qi(b,c,d,f,C,g,void 0)}
function qi(a,b,c,d,e,f,g){a=a.clone();var h=pi(b,c);c=fg(b);g=g?g.clone():c.clone();a=a.clone();g=g.clone();var k=0;if(d||0!=h)h&4?a.x-=g.width+(d?d.right:0):h&2?a.x-=g.width/2:d&&(a.x+=d.left),h&1?a.y-=g.height+(d?d.bottom:0):d&&(a.y+=d.top);if(f){if(e){d=a;h=g;k=0;65==(f&65)&&(d.x<e.left||d.x>=e.right)&&(f&=-2);132==(f&132)&&(d.y<e.top||d.y>=e.bottom)&&(f&=-5);d.x<e.left&&f&1&&(d.x=e.left,k|=1);if(f&16){var l=d.x;d.x<e.left&&(d.x=e.left,k|=4);d.x+h.width>e.right&&(h.width=Math.min(e.right-d.x,
l+h.width-e.left),h.width=Math.max(h.width,0),k|=4)}d.x+h.width>e.right&&f&1&&(d.x=Math.max(e.right-h.width,e.left),k|=1);f&2&&(k|=(d.x<e.left?16:0)|(d.x+h.width>e.right?32:0));d.y<e.top&&f&4&&(d.y=e.top,k|=2);f&32&&(l=d.y,d.y<e.top&&(d.y=e.top,k|=8),d.y+h.height>e.bottom&&(h.height=Math.min(e.bottom-d.y,l+h.height-e.top),h.height=Math.max(h.height,0),k|=8));d.y+h.height>e.bottom&&f&4&&(d.y=Math.max(e.bottom-h.height,e.top),k|=2);f&8&&(k|=(d.y<e.top?64:0)|(d.y+h.height>e.bottom?128:0));e=k}else e=
256;k=e}f=new Uf(0,0,0,0);f.left=a.x;f.top=a.y;f.width=g.width;f.height=g.height;e=k;if(e&496)return e;a=new H(f.left,f.top);a instanceof H?(g=a.x,a=a.y):(g=a,a=void 0);b.style.left=eg(g,!1);b.style.top=eg(a,!1);g=new nd(f.width,f.height);c==g||c&&g&&c.width==g.width&&c.height==g.height||(c=g,g=qd(b),a=wd(od(g).f),!G||wc("10")||a&&wc("8")?(b=b.style,hc?b.MozBoxSizing="border-box":ic?b.WebkitBoxSizing="border-box":b.boxSizing="border-box",b.width=Math.max(c.width,0)+"px",b.height=Math.max(c.height,
0)+"px"):(g=b.style,a?(G?(a=kg(b,"paddingLeft"),f=kg(b,"paddingRight"),d=kg(b,"paddingTop"),h=kg(b,"paddingBottom"),a=new Tf(d,f,h,a)):(a=Yf(b,"paddingLeft"),f=Yf(b,"paddingRight"),d=Yf(b,"paddingTop"),h=Yf(b,"paddingBottom"),a=new Tf(parseFloat(d),parseFloat(f),parseFloat(h),parseFloat(a))),!G||9<=Number(zc)?(f=Yf(b,"borderLeftWidth"),d=Yf(b,"borderRightWidth"),h=Yf(b,"borderTopWidth"),b=Yf(b,"borderBottomWidth"),b=new Tf(parseFloat(h),parseFloat(d),parseFloat(b),parseFloat(f))):(f=mg(b,"borderLeft"),
d=mg(b,"borderRight"),h=mg(b,"borderTop"),b=mg(b,"borderBottom"),b=new Tf(h,d,b,f)),g.pixelWidth=c.width-b.left-a.left-a.right-b.right,g.pixelHeight=c.height-b.top-a.top-a.bottom-b.bottom):(g.pixelWidth=c.width,g.pixelHeight=c.height)));return e}
function pi(a,b){return(b&8&&ig(a)?b^4:b)&-9}
;function Q(a){bb.call(this);this.A=1;this.j=[];this.v=0;this.f=[];this.g={};this.B=!!a}
D(Q,bb);m=Q.prototype;m.subscribe=function(a,b,c){var d=this.g[a];d||(d=this.g[a]=[]);var e=this.A;this.f[e]=a;this.f[e+1]=b;this.f[e+2]=c;this.A=e+3;d.push(e);return e};
function ri(a,b){var c=!1,d=a.subscribe("ROOT_MENU_REMOVED",function(e){c||(c=!0,this.aa(d),b.apply(void 0,arguments))},a)}
function si(a,b,c){if(b=a.g[b]){var d=a.f;(b=jb(b,function(e){return d[e+1]==c&&void 0==d[e+2]}))&&a.aa(b)}}
m.aa=function(a){var b=this.f[a];if(b){var c=this.g[b];0!=this.v?(this.j.push(a),this.f[a+1]=Ha):(c&&lb(c,a),delete this.f[a],delete this.f[a+1],delete this.f[a+2])}return!!b};
m.N=function(a,b){var c=this.g[a];if(c){for(var d=Array(arguments.length-1),e=1,f=arguments.length;e<f;e++)d[e-1]=arguments[e];if(this.B)for(e=0;e<c.length;e++){var g=c[e];ti(this.f[g+1],this.f[g+2],d)}else{this.v++;try{for(e=0,f=c.length;e<f;e++)g=c[e],this.f[g+1].apply(this.f[g+2],d)}finally{if(this.v--,0<this.j.length&&0==this.v)for(;c=this.j.pop();)this.aa(c)}}return 0!=e}return!1};
function ti(a,b,c){Yd(function(){a.apply(b,c)})}
m.clear=function(a){if(a){var b=this.g[a];b&&(E(b,this.aa,this),delete this.g[a])}else this.f.length=0,this.g={}};
function ui(a,b){if(b){var c=a.g[b];return c?c.length:0}c=0;for(var d in a.g)c+=ui(a,d);return c}
m.S=function(){Q.D.S.call(this);this.clear();this.j.length=0};function vi(a){this.f=a}
vi.prototype.set=function(a,b){void 0===b?this.f.remove(a):this.f.set(a,fi(b))};
vi.prototype.get=function(a){try{var b=this.f.get(a)}catch(c){return}if(null!==b)try{return JSON.parse(b)}catch(c){throw"Storage: Invalid value was encountered";}};
vi.prototype.remove=function(a){this.f.remove(a)};function wi(a){this.f=a}
D(wi,vi);function xi(a){this.data=a}
function yi(a){return void 0===a||a instanceof xi?a:new xi(a)}
wi.prototype.set=function(a,b){wi.D.set.call(this,a,yi(b))};
wi.prototype.g=function(a){a=wi.D.get.call(this,a);if(void 0===a||a instanceof Object)return a;throw"Storage: Invalid value was encountered";};
wi.prototype.get=function(a){if(a=this.g(a)){if(a=a.data,void 0===a)throw"Storage: Invalid value was encountered";}else a=void 0;return a};function zi(a){this.f=a}
D(zi,wi);zi.prototype.set=function(a,b,c){if(b=yi(b)){if(c){if(c<Ua()){zi.prototype.remove.call(this,a);return}b.expiration=c}b.creation=Ua()}zi.D.set.call(this,a,b)};
zi.prototype.g=function(a){var b=zi.D.g.call(this,a);if(b){var c=b.creation,d=b.expiration;if(d&&d<Ua()||c&&c>Ua())zi.prototype.remove.call(this,a);else return b}};function Ai(){}
;function Bi(){}
D(Bi,Ai);Bi.prototype.clear=function(){var a=Qh(this.P(!0)),b=this;E(a,function(c){b.remove(c)})};function Ci(a){this.f=a}
D(Ci,Bi);m=Ci.prototype;m.isAvailable=function(){if(!this.f)return!1;try{return this.f.setItem("__sak","1"),this.f.removeItem("__sak"),!0}catch(a){return!1}};
m.set=function(a,b){try{this.f.setItem(a,b)}catch(c){if(0==this.f.length)throw"Storage mechanism: Storage disabled";throw"Storage mechanism: Quota exceeded";}};
m.get=function(a){a=this.f.getItem(a);if("string"!==typeof a&&null!==a)throw"Storage mechanism: Invalid value was encountered";return a};
m.remove=function(a){this.f.removeItem(a)};
m.P=function(a){var b=0,c=this.f,d=new Nh;d.next=function(){if(b>=c.length)throw Mh;var e=c.key(b++);if(a)return e;e=c.getItem(e);if("string"!==typeof e)throw"Storage mechanism: Invalid value was encountered";return e};
return d};
m.clear=function(){this.f.clear()};
m.key=function(a){return this.f.key(a)};function Di(){var a=null;try{a=window.localStorage||null}catch(b){}this.f=a}
D(Di,Ci);function Ei(a,b){this.g=a;this.f=null;if(G&&!(9<=Number(zc))){Fi||(Fi=new Rh);this.f=Fi.get(a);this.f||(b?this.f=document.getElementById(b):(this.f=document.createElement("userdata"),this.f.addBehavior("#default#userData"),document.body.appendChild(this.f)),Fi.set(a,this.f));try{this.f.load(this.g)}catch(c){this.f=null}}}
D(Ei,Bi);var Gi={".":".2E","!":".21","~":".7E","*":".2A","'":".27","(":".28",")":".29","%":"."},Fi=null;function Hi(a){return"_"+encodeURIComponent(a).replace(/[.!~*'()%]/g,function(b){return Gi[b]})}
m=Ei.prototype;m.isAvailable=function(){return!!this.f};
m.set=function(a,b){this.f.setAttribute(Hi(a),b);Ii(this)};
m.get=function(a){a=this.f.getAttribute(Hi(a));if("string"!==typeof a&&null!==a)throw"Storage mechanism: Invalid value was encountered";return a};
m.remove=function(a){this.f.removeAttribute(Hi(a));Ii(this)};
m.P=function(a){var b=0,c=this.f.XMLDocument.documentElement.attributes,d=new Nh;d.next=function(){if(b>=c.length)throw Mh;var e=c[b++];if(a)return decodeURIComponent(e.nodeName.replace(/\./g,"%")).substr(1);e=e.nodeValue;if("string"!==typeof e)throw"Storage mechanism: Invalid value was encountered";return e};
return d};
m.clear=function(){for(var a=this.f.XMLDocument.documentElement,b=a.attributes.length;0<b;b--)a.removeAttribute(a.attributes[b-1].nodeName);Ii(this)};
function Ii(a){try{a.f.save(a.g)}catch(b){throw"Storage mechanism: Quota exceeded";}}
;function Ji(a,b){this.g=a;this.f=b+"::"}
D(Ji,Bi);Ji.prototype.set=function(a,b){this.g.set(this.f+a,b)};
Ji.prototype.get=function(a){return this.g.get(this.f+a)};
Ji.prototype.remove=function(a){this.g.remove(this.f+a)};
Ji.prototype.P=function(a){var b=this.g.P(!0),c=this,d=new Nh;d.next=function(){for(var e=b.next();e.substr(0,c.f.length)!=c.f;)e=b.next();return a?e.substr(c.f.length):c.g.get(e)};
return d};var Ki=window.yt&&window.yt.config_||window.ytcfg&&window.ytcfg.data_||{};A("yt.config_",Ki);function Li(a){var b=arguments,c=Ki;1<b.length?c[b[0]]=b[1]:1===b.length&&Object.assign(c,b[0])}
function R(a,b){return a in Ki?Ki[a]:b}
;var Mi=[];function Ni(a){Mi.forEach(function(b){return b(a)})}
function Oi(a){return a&&window.yterr?function(){try{return a.apply(this,arguments)}catch(b){Pi(b),Ni(b)}}:a}
function Pi(a){var b=y("yt.logging.errors.log");b?b(a,"ERROR",void 0,void 0,void 0):(b=R("ERRORS",[]),b.push([a,"ERROR",void 0,void 0,void 0]),Li("ERRORS",b))}
function Qi(a){var b=y("yt.logging.errors.log");b?b(a,"WARNING",void 0,void 0,void 0):(b=R("ERRORS",[]),b.push([a,"WARNING",void 0,void 0,void 0]),Li("ERRORS",b))}
;function Ri(a,b){"function"===typeof a&&(a=Oi(a));return window.setTimeout(a,b)}
function Si(a){window.clearTimeout(a)}
;var Ti=x.ytPubsubPubsubInstance||new Q,Ui=x.ytPubsubPubsubSubscribedKeys||{},Vi=x.ytPubsubPubsubTopicToKeys||{},Wi=x.ytPubsubPubsubIsSynchronous||{};function Xi(a,b,c){var d=Yi();if(d){var e=d.subscribe(a,function(){var f=arguments;var g=function(){Ui[e]&&b.apply&&"function"==typeof b.apply&&b.apply(c||window,f)};
try{Wi[a]?g():Ri(g,0)}catch(h){Pi(h)}},c);
Ui[e]=!0;Vi[a]||(Vi[a]=[]);Vi[a].push(e);return e}return 0}
function Zi(a){var b=Yi();b&&("number"===typeof a?a=[a]:"string"===typeof a&&(a=[parseInt(a,10)]),E(a,function(c){b.unsubscribeByKey(c);delete Ui[c]}))}
function $i(a,b){var c=Yi();return c?c.publish.apply(c,arguments):!1}
function aj(a,b){Wi[a]=!0;var c=Yi();c&&c.publish.apply(c,arguments);Wi[a]=!1}
function Yi(){return x.ytPubsubPubsubInstance}
Q.prototype.subscribe=Q.prototype.subscribe;Q.prototype.unsubscribeByKey=Q.prototype.aa;Q.prototype.publish=Q.prototype.N;Q.prototype.clear=Q.prototype.clear;A("ytPubsubPubsubInstance",Ti);A("ytPubsubPubsubTopicToKeys",Vi);A("ytPubsubPubsubIsSynchronous",Wi);A("ytPubsubPubsubSubscribedKeys",Ui);function bj(a,b,c){a&&(a.dataset?a.dataset[cj(b)]=String(c):a.setAttribute("data-"+b,c))}
function dj(a,b){return a?a.dataset?a.dataset[cj(b)]:a.getAttribute("data-"+b):null}
function ej(a,b){a&&(a.dataset?delete a.dataset[cj(b)]:a.removeAttribute("data-"+b))}
var fj={};function cj(a){return fj[a]||(fj[a]=String(a).replace(/\-([a-z])/g,function(b,c){return c.toUpperCase()}))}
;function S(a,b){this.version=a;this.args=b}
;function T(a,b){this.topic=a;this.f=b}
T.prototype.toString=function(){return this.topic};function gj(){}
function hj(a,b){return ij(a,0,b)}
function jj(a,b){return ij(a,1,b)}
;function kj(){}
pa(kj,gj);function ij(a,b,c){isNaN(c)&&(c=void 0);var d=y("yt.scheduler.instance.addJob");return d?d(a,b,c):void 0===c?(a(),NaN):Ri(a,c||0)}
kj.prototype.start=function(){var a=y("yt.scheduler.instance.start");a&&a()};
Ia(kj);kj.C();var lj=y("ytPubsub2Pubsub2Instance")||new Q;Q.prototype.subscribe=Q.prototype.subscribe;Q.prototype.unsubscribeByKey=Q.prototype.aa;Q.prototype.publish=Q.prototype.N;Q.prototype.clear=Q.prototype.clear;A("ytPubsub2Pubsub2Instance",lj);var mj=y("ytPubsub2Pubsub2SubscribedKeys")||{};A("ytPubsub2Pubsub2SubscribedKeys",mj);var nj=y("ytPubsub2Pubsub2TopicToKeys")||{};A("ytPubsub2Pubsub2TopicToKeys",nj);var oj=y("ytPubsub2Pubsub2IsAsync")||{};A("ytPubsub2Pubsub2IsAsync",oj);
A("ytPubsub2Pubsub2SkipSubKey",null);function U(a,b){var c=pj();c&&c.publish.call(c,a.toString(),a,b)}
function qj(a,b,c){var d=pj();if(!d)return 0;var e=d.subscribe(a.toString(),function(f,g){var h=y("ytPubsub2Pubsub2SkipSubKey");h&&h==e||(h=function(){if(mj[e])try{if(g&&a instanceof T&&a!=f)try{var k=a.f,l=g;if(!l.args||!l.version)throw Error("yt.pubsub2.Data.deserialize(): serializedData is incomplete.");try{if(!k.R){var n=new k;k.R=n.version}var p=k.R}catch(q){}if(!p||l.version!=p)throw Error("yt.pubsub2.Data.deserialize(): serializedData version is incompatible.");try{g=Reflect.construct(k,nb(l.args))}catch(q){throw q.message=
"yt.pubsub2.Data.deserialize(): "+q.message,q;}}catch(q){throw q.message="yt.pubsub2.pubsub2 cross-binary conversion error for "+a.toString()+": "+q.message,q;}b.call(c||window,g)}catch(q){Pi(q)}},oj[a.toString()]?y("yt.scheduler.instance")?jj(h):Ri(h,0):h())});
mj[e]=!0;nj[a.toString()]||(nj[a.toString()]=[]);nj[a.toString()].push(e);return e}
function rj(a){var b=pj();b&&("number"===typeof a&&(a=[a]),E(a,function(c){b.unsubscribeByKey(c);delete mj[c]}))}
function pj(){return y("ytPubsub2Pubsub2Instance")}
;var sj=0;function tj(a){var b=a.__yt_uid_key;b||(b=uj(),a.__yt_uid_key=b);return b}
function vj(a,b){a=I(a);b=I(b);return!!Qd(a,function(c){return c===b},!0,void 0)}
function wj(a,b){var c=sd(document,a,null,b);return c.length?c[0]:null}
function xj(){var a=document,b;ib(["fullscreenElement","webkitFullscreenElement","mozFullScreenElement","msFullscreenElement"],function(c){b=a[c];return!!b});
return b}
function yj(){ai(document.body,"hide-players",!1);var a=rd("preserve-players");E(a,function(b){Zh(b,"preserve-players")})}
var uj=y("ytDomDomGetNextId")||function(){return++sj};
A("ytDomDomGetNextId",uj);var zj={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 Aj(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.clientY=this.clientX=0;this.changedTouches=this.touches=null;try{if(a=a||window.event){this.event=a;for(var b in a)b in zj||(this[b]=a[b]);var c=a.target||a.srcElement;c&&3==c.nodeType&&(c=c.parentNode);this.target=c;var d=a.relatedTarget;if(d)try{d=d.nodeName?d:null}catch(e){d=null}else"mouseover"==
this.type?d=a.fromElement:"mouseout"==this.type&&(d=a.toElement);this.relatedTarget=d;this.clientX=void 0!=a.clientX?a.clientX:a.pageX;this.clientY=void 0!=a.clientY?a.clientY:a.pageY;this.keyCode=a.keyCode?a.keyCode:a.which;this.charCode=a.charCode||("keypress"==this.type?this.keyCode:0);this.altKey=a.altKey;this.ctrlKey=a.ctrlKey;this.shiftKey=a.shiftKey;this.metaKey=a.metaKey}}catch(e){}}
Aj.prototype.preventDefault=function(){this.event&&(this.event.returnValue=!1,this.event.preventDefault&&this.event.preventDefault())};
Aj.prototype.stopPropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopPropagation&&this.event.stopPropagation())};
Aj.prototype.stopImmediatePropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopImmediatePropagation&&this.event.stopImmediatePropagation())};var Bb=x.ytEventsEventsListeners||{};A("ytEventsEventsListeners",Bb);var Bj=x.ytEventsEventsCounter||{count:0};A("ytEventsEventsCounter",Bj);
function Cj(a,b,c,d){d=void 0===d?{}:d;a.addEventListener&&("mouseenter"!=b||"onmouseenter"in document?"mouseleave"!=b||"onmouseenter"in document?"mousewheel"==b&&"MozBoxSizing"in document.documentElement.style&&(b="MozMousePixelScroll"):b="mouseout":b="mouseover");return Ab(function(e){var f="boolean"===typeof e[4]&&e[4]==!!d,g=Na(e[4])&&Na(d)&&Cb(e[4],d);return!!e.length&&e[0]==a&&e[1]==b&&e[2]==c&&(f||g)})}
function V(a,b,c,d){d=void 0===d?{}:d;if(!a||!a.addEventListener&&!a.attachEvent)return"";var e=Cj(a,b,c,d);if(e)return e;e=++Bj.count+"";var f=!("mouseenter"!=b&&"mouseleave"!=b||!a.addEventListener||"onmouseenter"in document);var g=f?function(h){h=new Aj(h);if(!Qd(h.relatedTarget,function(k){return k==a},!0))return h.currentTarget=a,h.type=b,c.call(a,h)}:function(h){h=new Aj(h);
h.currentTarget=a;return c.call(a,h)};
g=Oi(g);a.addEventListener?("mouseenter"==b&&f?b="mouseover":"mouseleave"==b&&f?b="mouseout":"mousewheel"==b&&"MozBoxSizing"in document.documentElement.style&&(b="MozMousePixelScroll"),Dj()||"boolean"===typeof d?a.addEventListener(b,g,d):a.addEventListener(b,g,!!d.capture)):a.attachEvent("on"+b,g);Bb[e]=[a,b,c,g,d];return e}
function Ej(a,b,c){var d=a||document;return V(d,"click",function(e){var f=Qd(e.target,function(g){return g===d||c(g)},!0);
f&&f!==d&&!f.disabled&&(e.currentTarget=f,b.call(f,e))})}
function Fj(a){a=a||window.event;a=a.target||a.srcElement;3==a.nodeType&&(a=a.parentNode);return a}
var Dj=Kb(function(){var a=!1;try{var b=Object.defineProperty({},"capture",{get:function(){a=!0}});
window.addEventListener("test",null,b)}catch(c){}return a});
function Gj(a,b,c){return Ej(a,b,function(d){return O(d,c)})}
function Hj(a){if(document.createEvent){var b=document.createEvent("HTMLEvents");b.initEvent("click",!0,!0);a.dispatchEvent(b)}else b=document.createEventObject(),a.fireEvent("onclick",b)}
function Ij(a){a&&("string"==typeof a&&(a=[a]),E(a,function(b){if(b in Bb){var c=Bb[b],d=c[0],e=c[1],f=c[3];c=c[4];d.removeEventListener?Dj()||"boolean"===typeof c?d.removeEventListener(e,f,c):d.removeEventListener(e,f,!!c.capture):d.detachEvent&&d.detachEvent("on"+e,f);delete Bb[b]}}))}
;var Jj={},Kj="ontouchstart"in document;function Lj(a,b,c){switch(a){case "mouseover":case "mouseout":var d=3;break;case "mouseenter":case "mouseleave":d=9}return Qd(c,function(e){return O(e,b)},!0,d)}
function Mj(a){var b="mouseover"==a.type&&"mouseenter"in Jj||"mouseout"==a.type&&"mouseleave"in Jj,c=a.type in Jj||b;if("HTML"!=a.target.tagName&&c){if(b){b="mouseover"==a.type?"mouseenter":"mouseleave";c=Jj[b];for(var d in c.g){var e=Lj(b,d,a.target);e&&!Qd(a.relatedTarget,function(f){return f==e},!0)&&c.N(d,e,b,a)}}if(b=Jj[a.type])for(d in b.g)(e=Lj(a.type,d,a.target))&&b.N(d,e,a.type,a)}}
V(document,"blur",Mj,!0);V(document,"change",Mj,!0);V(document,"click",Mj);V(document,"focus",Mj,!0);V(document,"mouseover",Mj);V(document,"mouseout",Mj);V(document,"mousedown",Mj);V(document,"keydown",Mj);V(document,"keyup",Mj);V(document,"keypress",Mj);V(document,"cut",Mj);V(document,"paste",Mj);Kj&&(V(document,"touchstart",Mj),V(document,"touchend",Mj),V(document,"touchcancel",Mj));function Nj(a){this.o=a;this.A={};this.F=[];this.B=[]}
m=Nj.prototype;m.J=function(a){return K(a,W(this))};
function W(a,b){return"yt-uix"+(a.o?"-"+a.o:"")+(b?"-"+b:"")}
m.unregister=function(){Zi(this.F);this.F.length=0;rj(this.B);this.B.length=0};
m.init=Ha;m.dispose=Ha;function Oj(a,b,c){a.F.push(Xi(b,c,a))}
function Pj(a,b,c){a.B.push(qj(b,c,a))}
function X(a,b,c,d){d=W(a,d);var e=z(c,a);b in Jj||(Jj[b]=new Q);Jj[b].subscribe(d,e);a.A[c]=e}
function Y(a,b,c,d){if(b in Jj){var e=Jj[b];si(e,W(a,d),a.A[c]);0>=ui(e)&&(e.dispose(),delete Jj[b])}delete a.A[c]}
m.X=function(a,b,c){var d=this.l(a,b);if(d&&(d=y(d))){var e=qb(arguments,2);pb(e,0,0,a);d.apply(null,e)}};
m.l=function(a,b){return dj(a,b)};
function Qj(a,b){bj(a,"tooltip-text",b)}
;var Rj=window.yt&&window.yt.uix&&window.yt.uix.widgets_||{};A("yt.uix.widgets_",Rj);function Sj(a){var b=[];yb(a,function(c,d){var e=encodeURIComponent(String(d)),f;Array.isArray(c)?f=c:f=[c];E(f,function(g){""==g?b.push(e):b.push(e+"="+encodeURIComponent(String(g)))})});
return b.join("&")}
function Tj(a){"?"==a.charAt(0)&&(a=a.substr(1));a=a.split("&");for(var b={},c=0,d=a.length;c<d;c++){var e=a[c].split("=");if(1==e.length&&e[0]||2==e.length)try{var f=decodeURIComponent((e[0]||"").replace(/\+/g," ")),g=decodeURIComponent((e[1]||"").replace(/\+/g," "));f in b?Array.isArray(b[f])?ob(b[f],g):b[f]=[b[f],g]:b[f]=g}catch(k){if("q"!=e[0]){var h=Error("Error decoding URL component");h.params={key:e[0],value:e[1]};Pi(h)}}}return b}
function Uj(a){return-1!=a.indexOf("?")?(a=(a||"").split("#")[0],a=a.split("?",2),Tj(1<a.length?a[1]:a[0])):{}}
function Vj(a,b,c){var d=a.split("#",2);a=d[0];d=1<d.length?"#"+d[1]:"";var e=a.split("?",2);a=e[0];e=Tj(e[1]||"");for(var f in b)!c&&null!==e&&f in e||(e[f]=b[f]);return If(a,e)+d}
function Wj(a){if(!b)var b=window.location.href;var c=Bf(1,a),d=Cf(a);c&&d?(a=a.match(zf),b=b.match(zf),a=a[3]==b[3]&&a[1]==b[1]&&a[4]==b[4]):a=d?Cf(b)==d&&(Number(Bf(4,b))||null)==(Number(Bf(4,a))||null):!0;return a}
;function Xj(a){a=void 0===a?{}:a;"function"===typeof a&&(a={callback:a});if(a.gapiHintOverride||R("GAPI_HINT_OVERRIDE")){var b=Uj(document.location.href).gapi_jsh;b&&Fb(a,{_c:{jsl:{h:b}}})}ih("gapi.iframes:gapi.iframes.style.common",a)}
;function Yj(){return y("gapi.iframes.getContext")()}
;function Zj(a){S.call(this,1,arguments);this.f=a}
D(Zj,S);function ak(a){S.call(this,1,arguments);this.f=a}
D(ak,S);function bk(a,b,c){S.call(this,3,arguments);this.i=a;this.g=b;this.f=null!=c?!!c:null}
D(bk,S);function ck(a,b,c,d,e,f){S.call(this,2,arguments);this.f=a;this.g=b;this.j=c||null;this.i=d||null;this.source=e||null;this.params=f||null}
D(ck,S);function dk(a,b,c){S.call(this,1,arguments);this.f=a;this.g=b}
D(dk,S);function ek(a,b,c,d,e,f,g,h){S.call(this,1,arguments);this.f=a;this.o=b;this.g=c;this.v=d||null;this.j=e||null;this.i=f||null;this.source=g||null;this.params=h||null}
D(ek,S);
var fk=new T("subscription-batch-subscribe",Zj),gk=new T("subscription-batch-unsubscribe",Zj),hk=new T("subscription-subscribe",ck),ik=new T("subscription-subscribe-loading",ak),jk=new T("subscription-subscribe-loaded",ak),kk=new T("subscription-subscribe-success",dk),lk=new T("subscription-subscribe-external",ck),mk=new T("subscription-unsubscribe",ek),nk=new T("subscription-unsubscirbe-loading",ak),ok=new T("subscription-unsubscribe-loaded",ak),pk=new T("subscription-unsubscribe-success",ak),qk=
new T("subscription-external-unsubscribe",ek),rk=new T("subscription-enable-ypc",ak),sk=new T("subscription-disable-ypc",ak),tk=new T("subscription-prefs",bk),uk=new T("subscription-prefs-success",bk),vk=new T("subscription-prefs-failure",bk);function wk(){var a=void 0===a?!1:a;var b=xj();if(a)for(;b&&b.shadowRoot;)b=b.shadowRoot.fullscreenElement;return b?b:null}
;function xk(a,b){(a=I(a))&&a.style&&(a.style.display=b?"":"none",ai(a,"hid",!b))}
function yk(a){return(a=I(a))?"none"!=a.style.display&&!O(a,"hid"):!1}
function zk(a){E(arguments,function(b){!Ka(b)||b instanceof Element?xk(b,!0):E(b,function(c){zk(c)})})}
function Ak(a){E(arguments,function(b){!Ka(b)||b instanceof Element?xk(b,!1):E(b,function(c){Ak(c)})})}
;function Bk(){Nj.call(this,"tooltip");this.f=0;this.g={}}
D(Bk,Nj);Ia(Bk);m=Bk.prototype;m.register=function(){X(this,"mouseover",this.ia);X(this,"mouseout",this.V);X(this,"focus",this.Ca);X(this,"blur",this.va);X(this,"click",this.V);X(this,"touchstart",this.cb);X(this,"touchend",this.ka);X(this,"touchcancel",this.ka)};
m.unregister=function(){Y(this,"mouseover",this.ia);Y(this,"mouseout",this.V);Y(this,"focus",this.Ca);Y(this,"blur",this.va);Y(this,"click",this.V);Y(this,"touchstart",this.cb);Y(this,"touchend",this.ka);Y(this,"touchcancel",this.ka);this.dispose();Bk.D.unregister.call(this)};
m.dispose=function(){for(var a in this.g)this.V(this.g[a]);this.g={}};
m.ia=function(a){if(!(this.f&&1E3>Ua()-this.f)){var b=parseInt(this.l(a,"tooltip-hide-timer"),10);b&&(ej(a,"tooltip-hide-timer"),Si(b));b=z(function(){Ck(this,a);ej(a,"tooltip-show-timer")},this);
var c=parseInt(this.l(a,"tooltip-show-delay"),10)||0;b=Ri(b,c);bj(a,"tooltip-show-timer",b.toString());a.title&&(Qj(a,Dk(this,a)),a.title="");b=Oa(a).toString();this.g[b]=a}};
m.V=function(a){var b=parseInt(this.l(a,"tooltip-show-timer"),10);b&&(Si(b),ej(a,"tooltip-show-timer"));b=z(function(){if(a){var c=I(Ek(this,a));c&&(Fk(c),Bd(c),ej(a,"content-id"));c=I(Ek(this,a,"arialabel"));Bd(c)}ej(a,"tooltip-hide-timer")},this);
b=Ri(b,50);bj(a,"tooltip-hide-timer",b.toString());if(b=this.l(a,"tooltip-text"))a.title=b;b=Oa(a).toString();delete this.g[b]};
m.Ca=function(a,b){this.f=0;this.ia(a,b)};
m.va=function(a){this.f=0;this.V(a)};
m.cb=function(a,b,c){c.changedTouches&&(this.f=0,(a=Lj(b,W(this),c.changedTouches[0].target))&&this.ia(a,b))};
m.ka=function(a,b,c){c.changedTouches&&(this.f=Ua(),(a=Lj(b,W(this),c.changedTouches[0].target))&&this.V(a))};
function Gk(a,b,c){Qj(b,c);a=a.l(b,"content-id");(a=I(a))&&Fd(a,c)}
function Dk(a,b){return a.l(b,"tooltip-text")||b.title}
function Ck(a,b){if(b){var c=Dk(a,b);if(c){var d=I(Ek(a,b));if(!d){d=document.createElement("div");d.id=Ek(a,b);Xh(d,W(a,"tip"));var e=document.createElement("div");Xh(e,W(a,"tip-body"));var f=document.createElement("div");Xh(f,W(a,"tip-arrow"));var g=document.createElement("div");g.setAttribute("aria-hidden","true");Xh(g,W(a,"tip-content"));var h=Hk(a,b),k=Ek(a,b,"content");g.id=k;bj(b,"content-id",k);e.appendChild(g);h&&d.appendChild(h);d.appendChild(e);d.appendChild(f);var l=Nd(b);k=Ek(a,b,"arialabel");
f=document.createElement("div");P(f,W(a,"arialabel"));f.id=k;l=b.hasAttribute("aria-label")?b.getAttribute("aria-label"):"rtl"==document.body.getAttribute("dir")?c+" "+l:l+" "+c;Fd(f,l);b.setAttribute("aria-labelledby",k);k=wk()||document.body;k.appendChild(f);k.appendChild(d);Gk(a,b,c);(c=parseInt(a.l(b,"tooltip-max-width"),10))&&e.offsetWidth>c&&(e.style.width=c+"px",P(g,W(a,"normal-wrap")));g=O(b,W(a,"reverse"));Ik(a,b,d,e,h,g)||Ik(a,b,d,e,h,!g);var n=W(a,"tip-visible");Ri(function(){P(d,n)},0)}}}}
function Ik(a,b,c,d,e,f){ai(c,W(a,"tip-reverse"),f);var g=0;f&&(g=1);var h=fg(b);f=new H((h.width-10)/2,f?h.height:0);var k=cg(b);qi(new H(k.x+f.x,k.y+f.y),c,g);f=vd(window);if(1==c.nodeType)var l=dg(c);else c=c.changedTouches?c.changedTouches[0]:c,l=new H(c.clientX,c.clientY);c=fg(d);var n=Math.floor(c.width/2);g=!!(f.height<l.y+h.height);h=!!(l.y<h.height);k=!!(l.x<n);f=!!(f.width<l.x+n);l=(c.width+3)/-2- -5;a=a.l(b,"force-tooltip-direction");if("left"==a||k)l=-5;else if("right"==a||f)l=20-c.width-
3;a=Math.floor(l)+"px";d.style.left=a;e&&(e.style.left=a,e.style.height=c.height+"px",e.style.width=c.width+"px");return!(g||h)}
function Ek(a,b,c){a=W(a)+tj(b);c&&(a+="-"+c);return a}
function Hk(a,b){var c=null;kc&&O(b,W(a,"masked"))&&((c=I("yt-uix-tooltip-shared-mask"))?(c.parentNode.removeChild(c),zk(c)):(c=Ad(document,"IFRAME"),c.src='javascript:""',c.id="yt-uix-tooltip-shared-mask",Xh(c,W(a,"tip-mask"))));return c}
function Fk(a){var b=I("yt-uix-tooltip-shared-mask"),c=b&&Qd(b,function(d){return d==a},!1,2);
b&&c&&(b.parentNode.removeChild(b),Ak(b),document.body.appendChild(b))}
;function Jk(a){var b=Kk();if(b=window.open(b,"loginPopup","width=375,height=440,resizable=yes,scrollbars=yes",!0)){var c=Xi("LOGGED_IN",function(d){Zi(R("LOGGED_IN_PUBSUB_KEY",void 0));Li("LOGGED_IN",!0);a(d)});
Li("LOGGED_IN_PUBSUB_KEY",c);b.moveTo((screen.width-375)/2,(screen.height-440)/2)}}
function Kk(){var a=document.location.protocol+"//"+document.domain+"/post_login";a=Hf(a,"mode","subscribe");a=Hf("/signin?context=popup","next",a);return a=Hf(a,"feature","sub_button")}
A("yt.pubsub.publish",$i);function Z(a){a=Lk(a);return"string"===typeof a&&"false"===a?!1:!!a}
function Mk(a,b){var c=Lk(a);return void 0===c&&void 0!==b?b:Number(c||0)}
function Lk(a){var b=R("EXPERIMENTS_FORCED_FLAGS",{});return void 0!==b[a]?b[a]:R("EXPERIMENT_FLAGS",{})[a]}
function Nk(){var a=[],b=R("EXPERIMENTS_FORCED_FLAGS",{});for(c in b)a.push({key:c,value:String(b[c])});var c=R("EXPERIMENT_FLAGS",{});for(var d in c)d.startsWith("force_")&&void 0===b[d]&&a.push({key:d,value:String(c[d])});return a}
;var Ok=window,Pk=Ok.ytcsi&&Ok.ytcsi.now?Ok.ytcsi.now:Ok.performance&&Ok.performance.timing&&Ok.performance.now&&Ok.performance.timing.navigationStart?function(){return Ok.performance.timing.navigationStart+Ok.performance.now()}:function(){return(new Date).getTime()};var Qk=Mk("initial_gel_batch_timeout",1E3),Rk=Math.pow(2,16)-1,Sk=null,Tk=0,Uk=void 0,Vk=0,Wk=0,Xk=0,Yk=!0,Zk=x.ytLoggingTransportLogPayloadsQueue_||{};A("ytLoggingTransportLogPayloadsQueue_",Zk);var $k=x.ytLoggingTransportGELQueue_||new Map;A("ytLoggingTransportGELQueue_",$k);var al=x.ytLoggingTransportTokensToCttTargetIds_||{};A("ytLoggingTransportTokensToCttTargetIds_",al);
function bl(){Si(Vk);Si(Wk);Wk=0;Uk&&Uk.isReady()?(cl($k),"log_event"in Zk&&cl(Object.entries(Zk.log_event)),$k.clear(),delete Zk.log_event):dl()}
function dl(){Z("web_gel_timeout_cap")&&!Wk&&(Wk=Ri(bl,6E4));Si(Vk);var a=R("LOGGING_BATCH_TIMEOUT",Mk("web_gel_debounce_ms",1E4));Z("shorten_initial_gel_batch_timeout")&&Yk&&(a=Qk);Vk=Ri(bl,a)}
function cl(a){var b=Uk,c=Math.round(Pk());a=u(a);for(var d=a.next();!d.done;d=a.next()){var e=u(d.value);d=e.next().value;var f=e.next().value;e=Db({context:el(b.f||fl())});e.events=f;(f=al[d])&&gl(e,d,f);delete al[d];hl(e,c);il(b,"log_event",e,{retry:!0,onSuccess:function(){Tk=Math.round(Pk()-c)}});
Yk=!1}}
function hl(a,b){a.requestTimeMs=String(b);Z("unsplit_gel_payloads_in_logs")&&(a.unsplitGelPayloadsInLogs=!0);var c=R("EVENT_ID",void 0);if(c){var d=R("BATCH_CLIENT_COUNTER",void 0)||0;!d&&Z("web_client_counter_random_seed")&&(d=Math.floor(Math.random()*Rk/2));d++;d>Rk&&(d=1);Li("BATCH_CLIENT_COUNTER",d);c={serializedEventId:c,clientCounter:String(d)};a.serializedClientEventId=c;Sk&&Tk&&Z("log_gel_rtt_web")&&(a.previousBatchInfo={serializedClientEventId:Sk,roundtripMs:String(Tk)});Sk=c;Tk=0}}
function gl(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}]}
;var jl=x.ytLoggingGelSequenceIdObj_||{};A("ytLoggingGelSequenceIdObj_",jl);
function kl(a,b,c,d){d=void 0===d?{}:d;var e={};e.eventTimeMs=Math.round(d.timestamp||Pk());e[a]=b;a=String;d.timestamp?b=-1:(b=y("_lact",window),b=null==b?-1:Math.max(Ua()-b,0));e.context={lastActivityMs:a(b)};Z("log_sequence_info_on_gel_web")&&d.Za&&(a=e.context,b=d.Za,jl[b]=b in jl?jl[b]+1:0,a.sequence={index:jl[b],groupKey:b},d.tc&&delete jl[d.Za]);d=d.sc;a="";d&&(a={},d.videoId?a.videoId=d.videoId:d.playlistId&&(a.playlistId=d.playlistId),al[d.token]=a,a=d.token);d=$k.get(a)||[];$k.set(a,d);
d.push(e);c&&(Uk=new c);c=Mk("web_logging_max_batch")||100;e=Pk();d.length>=c?bl():10<=e-Xk&&(dl(),Xk=e)}
;function ll(a){var b=ml;a=void 0===a?y("yt.ads.biscotti.lastId_")||"":a;b=Object.assign(nl(b),ol(b));b.ca_type="image";a&&(b.bid=a);return b}
function nl(a){var b={};b.dt=ng;b.flash="0";a:{try{var c=a.f.top.location.href}catch(f){a=2;break a}a=c?c===a.g.location.href?0:1:2}b=(b.frm=a,b);b.u_tz=-(new Date).getTimezoneOffset();var d=void 0===d?wf:d;try{var e=d.history.length}catch(f){e=0}b.u_his=e;b.u_java=!!wf.navigator&&"unknown"!==typeof wf.navigator.javaEnabled&&!!wf.navigator.javaEnabled&&wf.navigator.javaEnabled();wf.screen&&(b.u_h=wf.screen.height,b.u_w=wf.screen.width,b.u_ah=wf.screen.availHeight,b.u_aw=wf.screen.availWidth,b.u_cd=
wf.screen.colorDepth);wf.navigator&&wf.navigator.plugins&&(b.u_nplug=wf.navigator.plugins.length);wf.navigator&&wf.navigator.mimeTypes&&(b.u_nmime=wf.navigator.mimeTypes.length);return b}
function ol(a){var b=a.f;try{var c=b.screenX;var d=b.screenY}catch(l){}try{var e=b.outerWidth;var f=b.outerHeight}catch(l){}try{var g=b.innerWidth;var h=b.innerHeight}catch(l){}b=[b.screenLeft,b.screenTop,c,d,b.screen?b.screen.availWidth:void 0,b.screen?b.screen.availTop:void 0,e,f,g,h];c=a.f.top;try{var k=vd(c||window).round()}catch(l){k=new nd(-12245933,-12245933)}c=k;k={};d=new Kh;x.SVGElement&&x.document.createElementNS&&d.set(0);e=Rf();e["allow-top-navigation-by-user-activation"]&&d.set(1);e["allow-popups-to-escape-sandbox"]&&
d.set(2);x.crypto&&x.crypto.subtle&&d.set(3);x.TextDecoder&&x.TextEncoder&&d.set(4);d=Lh(d);k.bc=d;k.bih=c.height;k.biw=c.width;k.brdim=b.join();a=a.g;return k.vis={visible:1,hidden:2,prerender:3,preview:4,unloaded:5}[a.visibilityState||a.webkitVisibilityState||a.mozVisibilityState||""]||0,k.wgl=!!wf.WebGLRenderingContext,k}
var ml=new function(){var a=window.document;this.f=window;this.g=a};
A("yt.ads_.signals_.getAdSignalsString",function(a){return Sj(ll(a))});Ua();var pl="XMLHttpRequest"in x?function(){return new XMLHttpRequest}:null;
function ql(){if(!pl)return null;var a=pl();return"open"in a?a:null}
;var rl={Authorization:"AUTHORIZATION","X-Goog-Visitor-Id":"SANDBOXED_VISITOR_ID","X-YouTube-Client-Name":"INNERTUBE_CONTEXT_CLIENT_NAME","X-YouTube-Client-Version":"INNERTUBE_CONTEXT_CLIENT_VERSION","X-YouTube-Device":"DEVICE","X-Youtube-Identity-Token":"ID_TOKEN","X-YouTube-Page-CL":"PAGE_CL","X-YouTube-Page-Label":"PAGE_BUILD_LABEL","X-YouTube-Variants-Checksum":"VARIANTS_CHECKSUM"},sl="app debugcss debugjs expflag force_ad_params force_viral_ad_response_params forced_experiments innertube_snapshots innertube_goldens internalcountrycode internalipoverride absolute_experiments conditional_experiments sbb sr_bns_address".split(" "),
tl=!1;function ul(a,b){b=void 0===b?{}:b;var c=Wj(a),d=Z("web_ajax_ignore_global_headers_if_set"),e;for(e in rl){var f=R(rl[e]);!f||!c&&Cf(a)||d&&void 0!==b[e]||(b[e]=f)}if(c||!Cf(a))b["X-YouTube-Utc-Offset"]=String(-(new Date).getTimezoneOffset());(c||!Cf(a))&&(d="undefined"!=typeof Intl?(new Intl.DateTimeFormat).resolvedOptions().timeZone:null)&&(b["X-YouTube-Time-Zone"]=d);if(c||!Cf(a))b["X-YouTube-Ad-Signals"]=Sj(ll(void 0));return b}
function vl(a){var b=window.location.search,c=Cf(a),d=Af(Bf(5,a));d=(c=c&&(c.endsWith("youtube.com")||c.endsWith("youtube-nocookie.com")))&&d&&d.startsWith("/api/");if(!c||d)return a;var e=Tj(b),f={};E(sl,function(g){e[g]&&(f[g]=e[g])});
return Vj(a,f||{},!1)}
function wl(a,b){if(window.fetch&&"XML"!=b.format){var c={method:b.method||"GET",credentials:"same-origin"};b.headers&&(c.headers=b.headers);a=xl(a,b);var d=yl(a,b);d&&(c.body=d);b.withCredentials&&(c.credentials="include");var e=!1,f;fetch(a,c).then(function(g){if(!e){e=!0;f&&Si(f);var h=g.ok,k=function(l){l=l||{};var n=b.context||x;h?b.onSuccess&&b.onSuccess.call(n,l,g):b.onError&&b.onError.call(n,l,g);b.ba&&b.ba.call(n,l,g)};
"JSON"==(b.format||"JSON")&&(h||400<=g.status&&500>g.status)?g.json().then(k,function(){k(null)}):k(null)}});
b.Ua&&0<b.timeout&&(f=Ri(function(){e||(e=!0,Si(f),b.Ua.call(b.context||x))},b.timeout))}else zl(a,b)}
function zl(a,b){var c=b.format||"JSON";a=xl(a,b);var d=yl(a,b),e=!1,f=Al(a,function(k){if(!e){e=!0;h&&Si(h);a:switch(k&&"status"in k?k.status:-1){case 200:case 201:case 202:case 203:case 204:case 205:case 206:case 304:var l=!0;break a;default:l=!1}var n=null,p=400<=k.status&&500>k.status,q=500<=k.status&&600>k.status;if(l||p||q)n=Bl(a,c,k,b.qc);if(l)a:if(k&&204==k.status)l=!0;else{switch(c){case "XML":l=0==parseInt(n&&n.return_code,10);break a;case "RAW":l=!0;break a}l=!!n}n=n||{};p=b.context||x;
l?b.onSuccess&&b.onSuccess.call(p,k,n):b.onError&&b.onError.call(p,k,n);b.ba&&b.ba.call(p,k,n)}},b.method,d,b.headers,b.responseType,b.withCredentials);
if(b.ja&&0<b.timeout){var g=b.ja;var h=Ri(function(){e||(e=!0,f.abort(),Si(h),g.call(b.context||x,f))},b.timeout)}}
function xl(a,b){b.wc&&(a=document.location.protocol+"//"+document.location.hostname+(document.location.port?":"+document.location.port:"")+a);var c=R("XSRF_FIELD_NAME",void 0),d=b.sa;d&&(d[c]&&delete d[c],a=Vj(a,d||{},!0));return a}
function yl(a,b){var c=R("XSRF_FIELD_NAME",void 0),d=R("XSRF_TOKEN",void 0),e=b.postBody||"",f=b.G,g=R("XSRF_FIELD_NAME",void 0),h;b.headers&&(h=b.headers["Content-Type"]);b.uc||Cf(a)&&!b.withCredentials&&Cf(a)!=document.location.hostname||"POST"!=b.method||h&&"application/x-www-form-urlencoded"!=h||b.G&&b.G[g]||(f||(f={}),f[c]=d);f&&"string"===typeof e&&(e=Tj(e),Fb(e,f),e=b.Xa&&"JSON"==b.Xa?JSON.stringify(e):Gf(e));if(!(c=e)&&(c=f)){a:{for(var k in f){f=!1;break a}f=!0}c=!f}!tl&&c&&"POST"!=b.method&&
(tl=!0,Pi(Error("AJAX request with postData should use POST")));return e}
function Bl(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,Qi(d),g;}a=c.getResponseHeader("Content-Type")||"";f&&0<=a.indexOf("json")&&(e=JSON.parse(f));break;case "XML":if(a=(a=c.responseXML)?Cl(a):null)e={},E(a.getElementsByTagName("*"),function(g){e[g.tagName]=Dl(g)})}d&&El(e);
return e}
function El(a){if(Na(a))for(var b in a){var c;(c="html_content"==b)||(c=b.length-5,c=0<=c&&b.indexOf("_html",c)==c);if(c){c=b;var d=a[b],e=new Rb;void 0===Lb&&(Lb=Wa("goog#html"));var f=Lb;e.f=f?f.createHTML(d):d;a[c]=e}else El(a[b])}}
function Cl(a){return a?(a=("responseXML"in a?a.responseXML:a).getElementsByTagName("root"))&&0<a.length?a[0]:null:null}
function Dl(a){var b="";E(a.childNodes,function(c){b+=c.nodeValue});
return b}
function Al(a,b,c,d,e,f,g){function h(){4==(k&&"readyState"in k?k.readyState:0)&&b&&Oi(b)(k)}
c=void 0===c?"GET":c;d=void 0===d?"":d;var k=ql();if(!k)return null;"onloadend"in k?k.addEventListener("loadend",h,!1):k.onreadystatechange=h;Z("debug_forward_web_query_parameters")&&(a=vl(a));k.open(c,a,!0);f&&(k.responseType=f);g&&(k.withCredentials=!0);c="POST"==c&&(void 0===window.FormData||!(d instanceof FormData));if(e=ul(a,e))for(var l in e)k.setRequestHeader(l,e[l]),"content-type"==l.toLowerCase()&&(c=!1);c&&k.setRequestHeader("Content-Type","application/x-www-form-urlencoded");k.send(d);
return k}
;function Fl(){for(var a={},b=u(Object.entries(Tj(R("DEVICE","")))),c=b.next();!c.done;c=b.next()){var d=u(c.value);c=d.next().value;d=d.next().value;"cbrand"===c?a.deviceMake=d:"cmodel"===c?a.deviceModel=d:"cbr"===c?a.browserName=d:"cbrver"===c?a.browserVersion=d:"cos"===c?a.osName=d:"cosver"===c?a.osVersion=d:"cplatform"===c&&(a.platform=d)}return a}
;function Gl(){return"INNERTUBE_API_KEY"in Ki&&"INNERTUBE_API_VERSION"in Ki}
function fl(){return{innertubeApiKey:R("INNERTUBE_API_KEY",void 0),innertubeApiVersion:R("INNERTUBE_API_VERSION",void 0),zb:R("INNERTUBE_CONTEXT_CLIENT_CONFIG_INFO"),Ab:R("INNERTUBE_CONTEXT_CLIENT_NAME","WEB"),innertubeContextClientVersion:R("INNERTUBE_CONTEXT_CLIENT_VERSION",void 0),Cb:R("INNERTUBE_CONTEXT_HL",void 0),Bb:R("INNERTUBE_CONTEXT_GL",void 0),Db:R("INNERTUBE_HOST_OVERRIDE",void 0)||"",Fb:!!R("INNERTUBE_USE_THIRD_PARTY_AUTH",!1),Eb:!!R("INNERTUBE_OMIT_API_KEY_WHEN_AUTH_HEADER_IS_PRESENT",
!1)}}
function el(a){a={client:{hl:a.Cb,gl:a.Bb,clientName:a.Ab,clientVersion:a.innertubeContextClientVersion,configInfo:a.zb}};var b=window.devicePixelRatio;b&&1!=b&&(a.client.screenDensityFloat=String(b));b=R("EXPERIMENTS_TOKEN","");""!==b&&(a.client.experimentsToken=b);b=Nk();0<b.length&&(a.request={internalExperimentFlags:b});R("DELEGATED_SESSION_ID")&&!Z("pageid_as_header_web")&&(a.user={onBehalfOfUser:R("DELEGATED_SESSION_ID")});a.client=Object.assign(a.client,Fl());return a}
function Hl(a,b,c){c=void 0===c?{}:c;var d={"X-Goog-Visitor-Id":c.visitorData||R("VISITOR_DATA","")};if(b&&b.includes("www.youtube-nocookie.com"))return d;(b=c.oc||R("AUTHORIZATION"))||(a?b="Bearer "+y("gapi.auth.getToken")().nc:b=Dg([]));b&&(d.Authorization=b,d["X-Goog-AuthUser"]=R("SESSION_INDEX",0),Z("pageid_as_header_web")&&(d["X-Goog-PageId"]=R("DELEGATED_SESSION_ID")));return d}
;function Il(a){a=Object.assign({},a);delete a.Authorization;var b=Dg();if(b){var c=new lh;c.update(R("INNERTUBE_API_KEY",void 0));c.update(b);a.hash=Ye(c.digest(),3)}return a}
function Jl(a){a=Il(a);var b=new lh;b.update(JSON.stringify(a,Object.keys(a).sort()));a=b.digest();b="";for(var c=0;c<a.length;c++)b+="0123456789ABCDEF".charAt(Math.floor(a[c]/16))+"0123456789ABCDEF".charAt(a[c]%16);return b}
;function Kl(a,b,c,d,e){yf.set(""+a,b,{La:c,path:"/",domain:void 0===d?"youtube.com":d,secure:void 0===e?!1:e})}
function Ll(a){return yf.get(""+a,void 0)}
;function Ml(){var a=new Di;(a=a.isAvailable()?new Ji(a,"yt.innertube"):null)||(a=new Ei("yt.innertube"),a=a.isAvailable()?a:null);this.f=a?new zi(a):null;this.g=document.domain||window.location.hostname}
Ml.prototype.set=function(a,b,c,d){c=c||31104E3;this.remove(a);if(this.f)try{this.f.set(a,b,Ua()+1E3*c);return}catch(f){}var e="";if(d)try{e=escape(fi(b))}catch(f){return}else e=escape(b);Kl(a,e,c,this.g)};
Ml.prototype.get=function(a,b){var c=void 0,d=!this.f;if(!d)try{c=this.f.get(a)}catch(e){d=!0}if(d&&(c=Ll(a))&&(c=unescape(c),b))try{c=JSON.parse(c)}catch(e){this.remove(a),c=void 0}return c};
Ml.prototype.remove=function(a){this.f&&this.f.remove(a);var b=this.g;yf.remove(""+a,"/",void 0===b?"youtube.com":b)};var Nl;function Ol(){Nl||(Nl=new Ml);return Nl}
function Pl(a,b,c,d){if(d)return null;d=Ol().get("nextId",!0)||1;var e=Ol().get("requests",!0)||{};e[d]={method:a,request:b,authState:Il(c),requestTime:Math.round(Pk())};Ol().set("nextId",d+1,86400,!0);Ol().set("requests",e,86400,!0);return d}
function Ql(a){var b=Ol().get("requests",!0)||{};delete b[a];Ol().set("requests",b,86400,!0)}
function Rl(a){var b=Ol().get("requests",!0);if(b){for(var c in b){var d=b[c];if(!(6E4>Math.round(Pk())-d.requestTime)){var e=d.authState,f=Il(Hl(!1));Cb(e,f)&&(e=d.request,"requestTimeMs"in e&&(e.requestTimeMs=Math.round(Pk())),il(a,d.method,e,{}));delete b[c]}}Ol().set("requests",b,86400,!0)}}
;function Sl(){}
function Tl(){Sl.f||(Sl.f=new Sl);return Sl.f}
function Ul(){var a={},b=Dg([]);b&&(a.Authorization=b,a["X-Goog-AuthUser"]=R("SESSION_INDEX",0),"INNERTUBE_HOST_OVERRIDE"in Ki||(a["X-Origin"]=window.location.origin),Z("pageid_as_header_web")&&"DELEGATED_SESSION_ID"in Ki&&(a["X-Goog-PageId"]=R("DELEGATED_SESSION_ID")));return ie(a)}
;var Vl={identityType:"UNAUTHENTICATED_IDENTITY_TYPE_UNKNOWN"};var Wl=Re||Se;function Xl(){var a=/WebKit\/([0-9]+)/.exec(vb);return!!(a&&600<=parseInt(a[1],10))}
function Yl(){var a=/WebKit\/([0-9]+)/.exec(vb);return!!(a&&602<=parseInt(a[1],10))}
;function Zl(){var a=Error.call(this,"Transaction was aborted");this.message=a.message;"stack"in a&&(this.stack=a.stack);Object.setPrototypeOf(this,Zl.prototype)}
pa(Zl,Error);function $l(a){return a instanceof DOMException?"VersionError"===a.name:"DOMError"in self&&a instanceof DOMError?"VersionError"===a.name:a instanceof Object&&"message"in a?"An attempt was made to open a database using a lower version than the existing version."===a.message:!1}
;function am(a){return new de(function(b,c){function d(){c(a.error);f()}
function e(){b(a.result);f()}
function f(){a.removeEventListener("success",e);a.removeEventListener("error",d)}
a.addEventListener("success",e);a.addEventListener("error",d)})}
;function bm(a){this.f=a}
m=bm.prototype;m.add=function(a,b,c){return cm(dm(this,[a],"readwrite"),a).add(b,c)};
m.clear=function(a){return cm(dm(this,[a],"readwrite"),a).clear()};
m.close=function(){this.f.close()};
m.count=function(a,b){return cm(dm(this,[a]),a).count(b)};
function em(a,b,c){a=a.f.createObjectStore(b,c);return new fm(a)}
m["delete"]=function(a,b){return cm(dm(this,[a],"readwrite"),a)["delete"](b)};
m.get=function(a,b){return cm(dm(this,[a]),a).get(b)};
function dm(a,b,c){a=a.f.transaction(b,void 0===c?"readonly":c);return new gm(a,b)}
function fm(a){this.f=a}
m=fm.prototype;m.add=function(a,b){var c=b?this.f.add(a,b):this.f.add(a);return am(c)};
m.clear=function(){return am(this.f.clear()).then(function(){})};
m.count=function(a){a=a?this.f.count(a):this.f.count();return am(a)};
m["delete"]=function(a){return am(this.f["delete"](a))};
m.get=function(a){return am(this.f.get(a))};
m.index=function(a){return new hm(this.f.index(a))};
m.getName=function(){return this.f.name};
function im(a,b,c){a=c?a.f.put(b,c):a.f.put(b);return am(a)}
function gm(a){var b=this;this.f=a;this.g=new Map;this.done=new de(function(c,d){b.f.addEventListener("complete",function(){c()});
b.f.addEventListener("error",function(){d(b.f.error)});
b.f.addEventListener("abort",function(){d(new Zl)})})}
gm.prototype.abort=function(){this.f.abort();return this.done};
function cm(a,b){var c=a.f.objectStore(b),d=a.g.get(c);d||(d=new fm(c),a.g.set(c,d));return d}
function hm(a){this.f=a}
hm.prototype.count=function(a){a=a?this.f.count(a):this.f.count();return am(a)};
hm.prototype.get=function(a){return am(this.f.get(a))};
function jm(a,b){this.request=a;this.f=b}
function km(a){return am(a).then(function(b){return null===b?null:new jm(a,b)})}
jm.prototype["delete"]=function(){return am(this.f["delete"]()).then(function(){})};
jm.prototype.update=function(a){return am(this.f.update(a))};function lm(a,b,c){function d(){n||(n=new bm(f.result));return n}
var e=gm;var f=void 0!==b?self.indexedDB.open(a,b):self.indexedDB.open(a);var g=c.blocked,h=c.blocking,k=c.f,l=c.upgrade,n;l&&f.addEventListener("upgradeneeded",function(p){if(null===p.newVersion)throw Error("Invariant: newVersion on IDbVersionChangeEvent is null");if(null===f.transaction)throw Error("Invariant: transaction on IDbOpenDbRequest is null");var q=d(),r=new e(f.transaction);l(q,p.oldVersion,p.newVersion,r)});
g&&f.addEventListener("blocked",function(){g()});
return am(f).then(function(p){h&&p.addEventListener("versionchange",function(){h(d())});
k&&p.addEventListener("close",function(){k()});
return d()})}
function mm(a,b,c){c=void 0===c?{}:c;return lm(a,b,c)}
;var nm,om,pm=["getAll","getAllKeys","getKey","openKeyCursor"],qm=["getAll","getAllKeys","getKey","openKeyCursor"];function rm(){return new Promise(function(a){setTimeout(a,50)})}
function sm(){return Sf(this,function b(){var c,d,e;return Ca(b,function(f){switch(f.f){case 1:if(Wl&&Xl()&&!Yl()&&!Z("ytidb_allow_on_ios_safari_v8_and_v9")||!self.indexedDB)return f["return"](!1);ta(f);d=!1;return w(f,mm("yt-idb-test-do-not-use",void 0,{blocking:function(){d=!0;c&&(c.close(),c=void 0)}}),5);
case 5:return c=f.g,e=mm("yt-idb-test-do-not-use",c.f.version+1).then(function(g){try{g.close()}catch(h){}}),w(f,Promise.race([e,
rm()]),6);case 6:return f["return"](d);case 3:va(f);if(c)try{c.close()}catch(g){}wa(f);break;case 2:return ua(f),f["return"](!1)}})})}
function tm(){return void 0!==nm?ie(nm):new de(function(a){sm().then(function(b){nm=b;a(b)})})}
function um(){return void 0!==om?ie(om):tm().then(function(a){if(!a)return!1;var b=u(pm);for(a=b.next();!a.done;a=b.next())if(!IDBObjectStore.prototype[a.value])return!1;b=u(qm);for(a=b.next();!a.done;a=b.next())if(!IDBIndex.prototype[a.value])return!1;return IDBObjectStore.prototype.getKey?!0:!1}).then(function(a){return om=a})}
;var vm;function wm(){function a(b){b.close();vm=void 0}
vm||(vm=ne(mm("YtIdbMeta",1,{blocking:a,upgrade:function(b,c){1>c&&em(b,"databases",{keyPath:"actualName"})}}),function(b){return $l(b)?mm("YtIdbMeta",void 0,{blocking:a}):je(b)}));
return vm}
function xm(a){return wm().then(function(b){return b.get("databases",a.actualName).then(function(c){if(c?a.actualName!==c.actualName||a.publicName!==c.publicName||a.userIdentifier!==c.userIdentifier||a.signedIn!==c.signedIn:1)return im(cm(dm(b,["databases"],"readwrite"),"databases"),a,void 0)})})}
function ym(a){return wm().then(function(b){return b["delete"]("databases",a)})}
;function zm(a){try{var b={actualName:"LogsDataBase",publicName:"LogsDataBase",userIdentifier:void 0,signedIn:!1}}catch(c){return je(c)}return ne(xm(b).then(function(){return a(b)}),function(c){return ne(ym(b.actualName),function(){}).then(function(){return je(c)})})}
function Am(a,b){b=void 0===b?{}:b;return zm(function(c){return mm(c.actualName,a,b)})}
;var Bm;function Cm(){return Sf(this,function b(){return Ca(b,function(c){if(!Bm)try{Bm=Am(1,{upgrade:function(d,e){1>e&&(em(d,"LogsRequestsStore",{keyPath:"id",autoIncrement:!0}).f.createIndex("newRequest",["status","authHash","timestamp"],{unique:!1}),em(d,"sapisid"))}})}catch(d){if(!$l(d))return Pi(d),c["return"](Promise.reject(d));
Bm=Am()}return c["return"](Bm)})})}
function Dm(a){return Sf(this,function c(){var d,e,f,g,h;return Ca(c,function(k){switch(k.f){case 1:return w(k,Cm(),2);case 2:return d=k.g,e=cm(dm(d,["LogsRequestsStore"],"readwrite"),"LogsRequestsStore"),w(k,Em(),3);case 3:return f=k.g,g=Object.assign(Object.assign({},a),{options:JSON.parse(JSON.stringify(a.options)),authHash:f}),w(k,e.add(g),4);case 4:return h=k.g,k["return"](h)}})})}
function Fm(){return Sf(this,function b(){var c,d,e,f,g,h,k,l;return Ca(b,function(n){switch(n.f){case 1:return w(n,Em(),2);case 2:return c=n.g,d=["NEW",c,0],e=["NEW",c,Pk()],f=IDBKeyRange.bound(d,e),w(n,Cm(),3);case 3:g=n.g;h=dm(g,["LogsRequestsStore"],"readwrite");var p=cm(h,"LogsRequestsStore").index("newRequest");p=f?p.f.openCursor(f,"prev"):f?p.f.openCursor(f):p.f.openCursor();p=km(p);return w(n,p,4);case 4:k=n.g;l=void 0;if(null===k||void 0===k||!k.f.value){n.K(5);break}l=k.f.value;l.status=
"QUEUED";return w(n,k.update(l),5);case 5:return n["return"](l)}})})}
function Gm(a){return Sf(this,function c(){var d,e,f;return Ca(c,function(g){switch(g.f){case 1:return w(g,Cm(),2);case 2:return d=g.g,e=cm(dm(d,["LogsRequestsStore"],"readwrite"),"LogsRequestsStore"),w(g,e.get(a),3);case 3:return f=g.g,f.status="QUEUED",w(g,im(e,f),4);case 4:return g["return"](f)}})})}
function Hm(a){return Sf(this,function c(){var d,e,f;return Ca(c,function(g){switch(g.f){case 1:return w(g,Cm(),2);case 2:return d=g.g,e=cm(dm(d,["LogsRequestsStore"],"readwrite"),"LogsRequestsStore"),w(g,e.get(a),3);case 3:f=g.g;if(!f){g.K(4);break}f.status="NEW";f.sendCount+=1;return w(g,im(e,f),4);case 4:return g["return"](f)}})})}
function Im(){return Sf(this,function b(){var c,d;return Ca(b,function(e){if(1==e.f)return w(e,Cm(),2);if(3!=e.f)return c=e.g,w(e,c.count("LogsRequestsStore"),3);d=e.g;return e["return"](!d)})})}
function Jm(a){return Sf(this,function c(){var d;return Ca(c,function(e){if(1==e.f)return w(e,Cm(),2);d=e.g;return e["return"](d["delete"]("LogsRequestsStore",a))})})}
function Em(){return Sf(this,function b(){var c;return Ca(b,function(d){if(1==d.f)return w(d,Ul(Tl()),2);c=d.g;return d["return"](Jl(c))})})}
;var Km=Mk("network_polling_interval",3E4);function Lm(){this.j=0;this.f=window.navigator.onLine;Mm(this);Nm(this)}
function Om(){Lm.f||(Lm.f=new Lm);return Lm.f}
function Pm(a){var b=Qm,c=Rm;Sm(a);(new de(function(d){a.g=d})).then(function(){b();
c&&(a.i=c)})}
function Nm(a){window.addEventListener("online",function(){a.f=!0;a.g&&a.g()})}
function Mm(a){window.addEventListener("offline",function(){a.f=!1;a.i&&a.i()})}
function Sm(a){a.j||(Tm(a),window.navigator.onLine&&a.g&&a.g())}
function Tm(a){a.j=hj(function(){window.navigator.onLine?(!1===a.f&&Pi(Error("NetworkStatusManager missed online event.")),a.f=!0,a.g&&a.g()):(!0===a.f&&Pi(Error("NetworkStatusManager missed offline event.")),a.f=!1,a.i&&a.i());Tm(a)},Km)}
;var Um=Mk("networkless_throttle_timeout")||100,Vm=Mk("networkless_retry_attempts")||1,Wm=0;function Xm(a,b){b=void 0===b?{}:b;Ym().then(function(c){if(c&&!Z("networkless_bypass_write")){var d={url:a,options:b,timestamp:Pk(),status:"NEW",sendCount:0};Dm(d).then(function(e){d.id=e;e=Om();e.f?Zm(d):Pm(e)})["catch"](function(e){Zm(d);
Pi(e)})}else zl(a,b)})}
function Qm(){Wm||(Wm=jj(function(){Zm();Wm=0;Qm()},Um))}
function Rm(){var a=Wm;if(!isNaN(a)){var b=y("yt.scheduler.instance.cancelJob");b?b(a):Si(a)}Wm=0}
function Zm(a){Sf(this,function c(){var d=this,e,f,g,h;return Ca(c,function(k){switch(k.f){case 1:e=d;if(!a)return w(k,Fm(),6);if(!a.id){k.K(3);break}return w(k,Gm(a.id),5);case 5:a=k.g;k.K(3);break;case 6:if(a=k.g){k.K(3);break}return w(k,Im(),8);case 8:return(f=k.g)&&Rm(),k["return"]();case 3:if($m(a))g=a.options.onError?a.options.onError:function(){},h=a.options.onSuccess?a.options.onSuccess:function(){},a.options.onError=function(l,n){return Sf(e,function q(){return Ca(q,function(r){if(1==r.f)return a&&
a.id?a.sendCount<Vm?w(r,Hm(a.id),6):w(r,Jm(a.id),2):r.K(2);
2!=r.f&&(Wm||Pm(Om()),g(l,n));g(l,n);r.f=0})})},a.options.onSuccess=function(l,n){return Sf(e,function q(){return Ca(q,function(r){if(1==r.f)return a&&a.id?w(r,Jm(a.id),2):r.K(2);
h(l,n);r.f=0})})},zl(a.url,a.options);
else if(Qi(Error("Networkless Logging: Stored logs request expired age limit")),a.id)return w(k,Jm(a.id),0);k.K(0)}})})}
function $m(a){a=a.timestamp;return 2592E6<=Pk()-a?!1:!0}
function Ym(){return Z("networkless_logging")?2===Mk("networkless_ytidb_version")?um():tm():ie(!1)}
;function an(a,b){for(var c=[],d=1;d<arguments.length;++d)c[d-1]=arguments[d];d=Error.call(this,a);this.message=d.message;"stack"in d&&(this.stack=d.stack);this.args=[].concat(fa(c))}
pa(an,Error);function bn(a){var b=this;this.f=null;a?this.f=a:Gl()&&(this.f=fl());hj(function(){Rl(b)},5E3)}
bn.prototype.isReady=function(){!this.f&&Gl()&&(this.f=fl());return!!this.f};
function il(a,b,c,d){!R("VISITOR_DATA")&&"visitor_id"!==b&&.01>Math.random()&&Qi(new an("Missing VISITOR_DATA when sending innertube request.",b,c,d));if(!a.isReady()){var e=new an("innertube xhrclient not ready",b,c,d);Pi(e);e.f=0;throw e;}var f={headers:{"Content-Type":"application/json"},method:"POST",G:c,Xa:"JSON",ja:function(){d.ja()},
Ua:d.ja,onSuccess:function(p,q){if(d.onSuccess)d.onSuccess(q)},
Ta:function(p){if(d.onSuccess)d.onSuccess(p)},
onError:function(p,q){if(d.onError)d.onError(q)},
xc:function(p){if(d.onError)d.onError(p)},
timeout:d.timeout,withCredentials:!0},g="";(e=a.f.Db)&&(g=e);var h=a.f.Fb||!1,k=Hl(h,g,d);Object.assign(f.headers,k);f.headers.Authorization&&!g&&(f.headers["x-origin"]=window.location.origin);e="/youtubei/"+a.f.innertubeApiVersion+"/"+b;var l={alt:"json"};a.f.Eb&&f.headers.Authorization||(l.key=a.f.innertubeApiKey);var n=Vj(""+g+e,l||{},!0);Ym().then(function(p){if(d.retry&&Z("retry_web_logging_batches")&&"www.youtube-nocookie.com"!=g){if(Z("networkless_gel")&&!p||!Z("networkless_gel"))var q=Pl(b,
c,k,h);if(q){var r=f.onSuccess,v=f.Ta;f.onSuccess=function(B,C){Ql(q);r(B,C)};
c.Ta=function(B,C){Ql(q);v(B,C)}}}try{Z("use_fetch_for_op_xhr")?wl(n,f):Z("networkless_gel")&&d.retry?(f.method="POST",Xm(n,f)):(f.method="POST",f.G||(f.G={}),zl(n,f))}catch(B){if("InvalidAccessError"==B.name)q&&(Ql(q),q=0),Qi(Error("An extension is blocking network request."));
else throw B;}q&&hj(function(){Rl(a)},5E3)})}
;var cn=Ua().toString();var dn;
if(!(dn=x.ytLoggingDocDocumentNonce_)){var en;a:{if(window.crypto&&window.crypto.getRandomValues)try{var fn=Array(16),gn=new Uint8Array(16);window.crypto.getRandomValues(gn);for(var hn=0;hn<fn.length;hn++)fn[hn]=gn[hn];en=fn;break a}catch(a){}for(var jn=Array(16),kn=0;16>kn;kn++){for(var ln=Ua(),mn=0;mn<ln%23;mn++)jn[kn]=Math.random();jn[kn]=Math.floor(256*Math.random())}if(cn)for(var nn=1,on=0;on<cn.length;on++)jn[nn%16]=jn[nn%16]^jn[(nn-1)%16]/4^cn.charCodeAt(on),nn++;en=jn}for(var pn=en,qn=[],
rn=0;rn<pn.length;rn++)qn.push("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".charAt(pn[rn]&63));dn=qn.join("")}var sn=dn;A("ytLoggingDocDocumentNonce_",sn);function tn(a){a=void 0===a?0:a;return 0==a?"client-screen-nonce":"client-screen-nonce."+a}
function un(a){a=void 0===a?0:a;return 0==a?"ROOT_VE_TYPE":"ROOT_VE_TYPE."+a}
A("yt_logging_screen.getRootVeType",function(a){return R(un(void 0===a?0:a),void 0)});
function vn(){var a=R("csn-to-ctt-auth-info");a||(a={},Li("csn-to-ctt-auth-info",a));return a}
function wn(a){a=void 0===a?0:a;var b=R(tn(a));if(!b&&!R("USE_CSN_FALLBACK",!0))return null;b||0!=a||(Z("kevlar_client_side_screens")||Z("c3_client_side_screens")?b="UNDEFINED_CSN":b=R("EVENT_ID"));return b?b:null}
A("yt_logging_screen.getCurrentCsn",wn);function xn(a,b,c){var d=vn();(c=wn(c))&&delete d[c];b&&(d[a]=b)}
A("yt_logging_screen.getCttAuthInfo",function(a){return vn()[a]});
A("yt_logging_screen.setCurrentScreen",function(a,b,c,d){c=void 0===c?0:c;if(a!==R(tn(c))||b!==R(un(c)))if(xn(a,d,c),Li(tn(c),a),Li(un(c),b),0==c||Z("web_screen_associated_all_layers"))b=function(){setTimeout(function(){a&&kl("foregroundHeartbeatScreenAssociated",{clientDocumentNonce:sn,clientScreenNonce:a},bn)},0)},"requestAnimationFrame"in window?window.requestAnimationFrame(b):b()});function yn(){Nj.call(this,"button");this.f=null;this.i=[];this.g={}}
D(yn,Nj);Ia(yn);m=yn.prototype;m.register=function(){X(this,"click",this.eb);X(this,"keydown",this.Ja);X(this,"keypress",this.Ka);Oj(this,"page-scroll",this.wb)};
m.unregister=function(){Y(this,"click",this.eb);Y(this,"keydown",this.Ja);Y(this,"keypress",this.Ka);zn(this);this.g={};yn.D.unregister.call(this)};
m.eb=function(a){a&&!a.disabled&&(this.toggle(a),this.click(a))};
m.Ja=function(a,b,c){if(!(c.altKey||c.ctrlKey||c.shiftKey||c.metaKey)&&(b=An(this,a))){var d=function(g){var h="";g.tagName&&(h=g.tagName.toLowerCase());return"ul"==h||"table"==h},e;
d(b)?e=b:e=Gd(b,d);if(e){e=e.tagName.toLowerCase();if("ul"==e)var f=this.Kb;else"table"==e&&(f=this.Jb);f&&Bn(this,a,b,c,z(f,this))}}};
m.wb=function(){var a=this.g,b=0;for(d in a)b++;if(0!=b)for(var c in a){b=a[c];var d=K(b.activeButtonNode||b.parentNode,W(this));if(void 0==d||void 0==b)break;Cn(this,d,b,!0)}};
function Bn(a,b,c,d,e){var f=yk(c),g=9==d.keyCode;if(g||32==d.keyCode||13==d.keyCode)if(d=Dn(a,c)){if(void 0!==d.firstElementChild)b=d.firstElementChild;else for(b=d.firstChild;b&&1!=b.nodeType;)b=b.nextSibling;if("a"==b.tagName.toLowerCase()){var h=void 0===h?{}:h;var k=void 0===k?"":k;var l=void 0===l?window:l;l=l.location;h=If(b.href,h)+k;h instanceof Mb||h instanceof Mb||(h="object"==typeof h&&h.oa?h.na():String(h),Pb.test(h)||(h="about:invalid#zClosurez"),h=new Mb(Nb,h));h instanceof Mb&&h.constructor===
Mb&&h.g===Ob?h=h.f:(Ja(h),h="type_error:SafeUrl");l.href=h}else Hj(b)}else g&&En(a,b);else f?27==d.keyCode?(Dn(a,c),En(a,b)):e(b,c,d):(h=O(b,W(a,"reverse"))?38:40,d.keyCode==h&&(Hj(b),d.preventDefault()))}
m.Ka=function(a,b,c){c.altKey||c.ctrlKey||c.shiftKey||c.metaKey||(a=An(this,a),yk(a)&&c.preventDefault())};
function Dn(a,b){var c=W(a,"menu-item-highlight"),d=J(c,b);d&&Zh(d,c);return d}
function Fn(a,b,c){P(c,W(a,"menu-item-highlight"));var d=c.getAttribute("id");d||(d=W(a,"item-id-"+Oa(c)),c.setAttribute("id",d));b.setAttribute("aria-activedescendant",d)}
m.Jb=function(a,b,c){var d=Dn(this,b);b=wj("table",b);var e=wj("tr",b);e=sd(document,"td",null,e).length;b=sd(document,"td",null,b);d=Gn(d,b,e,c);-1!=d&&(Fn(this,a,b[d]),c.preventDefault())};
m.Kb=function(a,b,c){if(40==c.keyCode||38==c.keyCode){var d=Dn(this,b);b=fb(sd(document,"li",null,b),yk);d=Gn(d,b,1,c);Fn(this,a,b[d]);c.preventDefault()}};
function Gn(a,b,c,d){var e=b.length;a=eb(b,a);if(-1==a)if(38==d.keyCode)a=e-c;else{if(37==d.keyCode||38==d.keyCode||40==d.keyCode)a=0}else 39==d.keyCode?(a%c==c-1&&(a-=c),a+=1):37==d.keyCode?(0==a%c&&(a+=c),--a):38==d.keyCode?(a<c&&(a+=e),a-=c):40==d.keyCode&&(a>=e-c&&(a-=e),a+=c);return a}
function Hn(a,b){var c=b.iframeMask;c||(c=Ad(document,"IFRAME"),c.src='javascript:""',Xh(c,W(a,"menu-mask")),Ak(c),b.iframeMask=c);return c}
function Cn(a,b,c,d){var e=K(b,W(a,"group")),f=!!a.l(b,"button-menu-ignore-group");e=e&&!f?e:b;f=9;var g=8,h=hg(b);if(O(b,W(a,"reverse"))){f=8;g=9;h=h.top+"px";try{c.style.maxHeight=h}catch(n){}}O(b,"flip")&&(O(b,W(a,"reverse"))?(f=12,g=13):(f=13,g=12));var k;a.l(b,"button-has-sibling-menu")?k=ag(e):a.l(b,"button-menu-root-container")&&(k=In(a,b));G&&!wc("8")&&(k=null);if(k){var l=hg(k);l=new Tf(-l.top,l.left,l.top,-l.left)}k=new H(0,1);O(b,W(a,"center-menu"))&&(k.x-=Math.round((fg(c).width-fg(b).width)/
2));d&&(k.y+=xd(document).y);if(a=Hn(a,b))b=fg(c),a.style.width=b.width+"px",a.style.height=b.height+"px",oi(e,f,a,g,k,l,197),d&&Vf(a,"position","fixed");oi(e,f,c,g,k,l,197)}
function In(a,b){if(a.l(b,"button-menu-root-container")){var c=a.l(b,"button-menu-root-container");return K(b,c)}return document.body}
m.gb=function(a){if(a){var b=An(this,a);if(b){a.setAttribute("aria-pressed","true");a.setAttribute("aria-expanded","true");b.originalParentNode=b.parentNode;b.activeButtonNode=a;b.parentNode.removeChild(b);var c;this.l(a,"button-has-sibling-menu")?c=a.parentNode:c=In(this,a);c.appendChild(b);b.style.minWidth=a.offsetWidth-2+"px";var d=Hn(this,a);d&&c.appendChild(d);(c=!!this.l(a,"button-menu-fixed"))&&(this.g[tj(a).toString()]=b);Cn(this,a,b,c);aj("yt-uix-button-menu-before-show",a,b);zk(b);d&&zk(d);
this.X(a,"button-menu-action",!0);P(a,W(this,"active"));b=z(this.fb,this,a,!1);d=z(this.fb,this,a,!0);c=z(this.Wb,this,a,void 0);this.f&&An(this,this.f)==An(this,a)||zn(this);$i("yt-uix-button-menu-show",a);Ij(this.i);this.i=[V(document,"click",d),V(document,"contextmenu",b),V(window,"resize",c)];this.f=a}}};
function En(a,b){if(b){var c=An(a,b);if(c){a.f=null;b.setAttribute("aria-pressed","false");b.setAttribute("aria-expanded","false");b.removeAttribute("aria-activedescendant");Ak(c);a.X(b,"button-menu-action",!1);var d=Hn(a,b),e=tj(c).toString();delete a.g[e];Ri(function(){d&&d.parentNode&&(Ak(d),d.parentNode.removeChild(d));c.originalParentNode&&(c.parentNode.removeChild(c),c.originalParentNode.appendChild(c),c.originalParentNode=null,c.activeButtonNode=null)},1)}e=K(b,W(a,"group"));
var f=[W(a,"active")];e&&f.push(W(a,"group-active"));$h(b,f);$i("yt-uix-button-menu-hide",b);Ij(a.i);a.i.length=0}}
m.Wb=function(a,b){var c=An(this,a);if(c){b&&(b instanceof Rb?Wb(c,b):Fd(c,b));var d=!!this.l(a,"button-menu-fixed");Cn(this,a,c,d)}};
m.fb=function(a,b,c){c=Fj(c);var d=K(c,W(this));if(d){d=An(this,d);var e=An(this,a);if(d==e)return}d=K(c,W(this,"menu"));e=d==An(this,a);var f=O(c,W(this,"menu-item")),g=O(c,W(this,"menu-close"));if(!d||e&&(f||g))En(this,a),d&&b&&this.l(a,"button-menu-indicate-selected")&&((a=J(W(this,"content"),a))&&Fd(a,Nd(c)),Jn(this,d,c))};
function Jn(a,b,c){var d=W(a,"menu-item-selected");a=rd(d,b);E(a,function(e){Zh(e,d)});
P(c.parentNode,d)}
function An(a,b){if(!b.widgetMenu){var c=a.l(b,"button-menu-id");c=c&&I(c);var d=W(a,"menu");c?Yh(c,[d,W(a,"menu-external")]):c=J(d,b);b.widgetMenu=c}return b.widgetMenu}
m.isToggled=function(a){return O(a,W(this,"toggled"))};
m.toggle=function(a){if(this.l(a,"button-toggle")){var b=K(a,W(this,"group")),c=W(this,"toggled"),d=O(a,c);if(b&&this.l(b,"button-toggle-group")){var e=this.l(b,"button-toggle-group");b=rd(W(this),b);E(b,function(f){f!=a||"optional"==e&&d?(Zh(f,c),f.removeAttribute("aria-pressed")):(P(a,c),f.setAttribute("aria-pressed","true"))})}else d?a.removeAttribute("aria-pressed"):a.setAttribute("aria-pressed","true"),ci(a,c)}};
m.click=function(a){if(An(this,a)){var b=An(this,a);if(b){var c=K(b.activeButtonNode||b.parentNode,W(this));c&&c!=a?(En(this,c),Ri(z(this.gb,this,a),1)):yk(b)?En(this,a):this.gb(a)}a.focus()}this.X(a,"button-action")};
function zn(a){a.f&&En(a,a.f)}
;function Kn(a){Nj.call(this,a);this.i=null}
D(Kn,Nj);m=Kn.prototype;m.J=function(a){var b=Nj.prototype.J.call(this,a);return b?b:a};
m.register=function(){Oj(this,"yt-uix-kbd-nav-move-out-done",this.hide)};
m.dispose=function(){Ln(this);Kn.D.dispose.call(this)};
m.l=function(a,b){var c=Kn.D.l.call(this,a,b);return c?c:(c=Kn.D.l.call(this,a,"card-config"))&&(c=y(c))&&c[b]?c[b]:null};
m.show=function(a){var b=this.J(a);if(b){P(b,W(this,"active"));var c=Mn(this,a,b);if(c){c.cardTargetNode=a;c.cardRootNode=b;Nn(this,a,c);var d=W(this,"card-visible"),e=this.l(a,"card-delegate-show")&&this.l(b,"card-action");this.X(b,"card-action",a);this.i=a;Ak(c);Ri(z(function(){e||(zk(c),$i("yt-uix-card-show",b,a,c));On(c);P(c,d);$i("yt-uix-kbd-nav-move-in-to",c)},this),10)}}};
function Mn(a,b,c){var d=c||b,e=W(a,"card");c=Pn(a,d);var f=I(W(a,"card")+tj(d));if(f)return a=J(W(a,"card-body"),f),Ed(a,c)||(Bd(c),a.appendChild(c)),f;f=document.createElement("div");f.id=W(a,"card")+tj(d);Xh(f,e);(d=a.l(d,"card-class"))&&Yh(f,d.split(/\s+/));d=document.createElement("div");d.className=W(a,"card-border");b=a.l(b,"orientation")||"horizontal";e=document.createElement("div");e.className="yt-uix-card-border-arrow yt-uix-card-border-arrow-"+b;var g=document.createElement("div");g.className=
W(a,"card-body");a=document.createElement("div");a.className="yt-uix-card-body-arrow yt-uix-card-body-arrow-"+b;Bd(c);g.appendChild(c);d.appendChild(a);d.appendChild(g);f.appendChild(e);f.appendChild(d);document.body.appendChild(f);return f}
function Nn(a,b,c){var d=a.l(b,"orientation")||"horizontal";var e=J(W(a,"anchor"),b)||b;var f=a.l(b,"position"),g=!!a.l(b,"force-position"),h=a.l(b,"position-fixed");d="horizontal"==d;var k="bottomright"==f||"bottomleft"==f,l="topright"==f||"bottomright"==f;if(l&&k){var n=13;var p=8}else l&&!k?(n=12,p=9):!l&&k?(n=9,p=12):(n=8,p=13);var q=ig(document.body);f=ig(b);q!=f&&(n^=4);if(d){f=b.offsetHeight/2-12;var r=new H(-12,b.offsetHeight+6)}else f=b.offsetWidth/2-6,r=new H(b.offsetWidth+6,-12);var v=
fg(c);f=Math.min(f,(d?v.height:v.width)-24-6);6>f&&(f=6,d?r.y+=12-b.offsetHeight/2:r.x+=12-b.offsetWidth/2);v=null;g||(v=10);b=W(a,"card-flip");a=W(a,"card-reverse");ai(c,b,l);ai(c,a,k);v=oi(e,n,c,p,r,null,v);!g&&v&&(v&48&&(l=!l,n^=4,p^=4),v&192&&(k=!k,n^=1,p^=1),ai(c,b,l),ai(c,a,k),oi(e,n,c,p,r));h&&(e=parseInt(c.style.top,10),g=xd(document).y,Vf(c,"position","fixed"),Vf(c,"top",e-g+"px"));q&&(c.style.right="",e=hg(c),e.left=e.left||parseInt(c.style.left,10),g=vd(window),c.style.left="",c.style.right=
g.width-e.left-e.width+"px");e=J("yt-uix-card-body-arrow",c);g=J("yt-uix-card-border-arrow",c);d=d?k?"top":"bottom":!q&&l||q&&!l?"left":"right";e.setAttribute("style","");g.setAttribute("style","");e.style[d]=f+"px";g.style[d]=f+"px";k=J("yt-uix-card-arrow",c);l=J("yt-uix-card-arrow-background",c);k&&l&&(c="right"==d?fg(c).width-f-13:f+11,f=c/Math.sqrt(2),k.style.left=c+"px",k.style.marginLeft="1px",l.style.marginLeft=-f+"px",l.style.marginTop=f+"px")}
m.hide=function(a){if(a=this.J(a)){var b=I(W(this,"card")+tj(a));b&&(Zh(a,W(this,"active")),Zh(b,W(this,"card-visible")),Ak(b),this.i=null,b.cardTargetNode=null,b.cardRootNode=null,b.cardMask&&(Bd(b.cardMask),b.cardMask=null))}};
function Ln(a){a.i&&a.hide(a.i)}
m.Vb=function(a,b){var c=this.J(a);if(c){if(b){var d=Pn(this,c);if(!d)return;b instanceof Rb?Wb(d,b):Fd(d,b)}O(c,W(this,"active"))&&(c=Mn(this,a,c),Nn(this,a,c),zk(c),On(c))}};
m.isActive=function(a){return(a=this.J(a))?O(a,W(this,"active")):!1};
function Pn(a,b){var c=b.cardContentNode;if(!c){var d=W(a,"content"),e=W(a,"card-content");(c=(c=a.l(b,"card-id"))?I(c):J(d,b))||(c=document.createElement("div"));var f=c;Zh(f,d);P(f,e);b.cardContentNode=c}return c}
function On(a){var b=a.cardMask;b||(b=Ad(document,"IFRAME"),b.src='javascript:""',Yh(b,["yt-uix-card-iframe-mask"]),a.cardMask=b);b.style.position=a.style.position;b.style.top=a.style.top;b.style.left=a.offsetLeft+"px";b.style.height=a.clientHeight+"px";b.style.width=a.clientWidth+"px";document.body.appendChild(b)}
;function Qn(){Nj.call(this,"kbd-nav")}
var Rn;D(Qn,Nj);Ia(Qn);m=Qn.prototype;m.register=function(){X(this,"keydown",this.Ga);Oj(this,"yt-uix-kbd-nav-move-in",this.Ra);Oj(this,"yt-uix-kbd-nav-move-in-to",this.Lb);Oj(this,"yt-uix-kbd-move-next",this.Sa);Oj(this,"yt-uix-kbd-nav-move-to",this.fa)};
m.unregister=function(){Y(this,"keydown",this.Ga);Ij(Rn)};
m.Ga=function(a,b,c){var d=c.keyCode;if(a=K(a,W(this)))switch(d){case 13:case 32:this.Ra(a);break;case 27:c.preventDefault();c.stopImmediatePropagation();a:{for(c=ei(a,"kbdNavMoveOut");!c;){c=K(a.parentElement,W(this));if(!c)break a;c=ei(c,"kbdNavMoveOut")}c=I(c);this.fa(c);$i("yt-uix-kbd-nav-move-out-done",c)}break;case 40:case 38:if((b=c.target)&&O(a,W(this,"list")))switch(d){case 40:this.Sa(b,a);break;case 38:d=document.activeElement==a,a=Sn(a),b=a.indexOf(b),0>b&&!d||(b=d?a.length-1:(a.length+
b-1)%a.length,a[b].focus(),Tn(this,a[b]))}c.preventDefault()}};
m.Ra=function(a){var b=ei(a,"kbdNavMoveIn");b=I(b);Un(this,a,b);this.fa(b)};
m.Lb=function(a){var b=document;try{var c=b&&b.activeElement;var d=c&&c.nodeName?c:null}catch(e){d=null}Un(this,d,a);this.fa(a)};
m.fa=function(a){if(a)if(Kd(a))a.focus();else{var b=Gd(a,function(c){return Dd(c)?Kd(c):!1});
b?b.focus():(a.setAttribute("tabindex","-1"),a.focus())}};
function Un(a,b,c){if(b&&c)if(P(c,W(a)),a=b.id,a||(a="kbd-nav-"+Math.floor(1E6*Math.random()+1),b.id=a),b=a,di&&c.dataset)c.dataset.kbdNavMoveOut=b;else{if(/-[a-z]/.test("kbdNavMoveOut"))throw Error("");c.setAttribute("data-"+"kbdNavMoveOut".replace(/([A-Z])/g,"-$1").toLowerCase(),b)}}
m.Sa=function(a,b){var c=document.activeElement==b,d=Sn(b),e=d.indexOf(a);0>e&&!c||(c=c?0:(e+1)%d.length,d[c].focus(),Tn(this,d[c]))};
function Tn(a,b){if(b){var c=Pd(b,"LI");c&&(P(c,W(a,"highlight")),Rn=V(b,"blur",z(function(d){Zh(d,W(this,"highlight"));Ij(Rn)},a,c)))}}
function Sn(a){if("UL"!=a.tagName.toUpperCase())return[];a=fb(Cd(a),function(b){return"LI"==b.tagName.toUpperCase()});
return fb(gb(a,function(b){return yk(b)?Gd(b,function(c){return Dd(c)?Kd(c):!1}):!1}),function(b){return!!b})}
;function Vn(){Nj.call(this,"menu");this.g=this.f=null;this.i={};this.v={};this.j=null}
D(Vn,Nj);Ia(Vn);function Wn(a){var b=Vn.C();if(O(a,W(b)))return a;var c=b.J(a);return c?c:K(a,W(b,"content"))==b.f?b.g:null}
m=Vn.prototype;m.register=function(){X(this,"click",this.Fa);X(this,"mouseenter",this.ub);Oj(this,"page-scroll",this.xb);Oj(this,"yt-uix-kbd-nav-move-out-done",function(a){a=this.J(a);Xn(this,a)});
this.j=new Q};
m.unregister=function(){Y(this,"click",this.Fa);this.g=this.f=null;Ij(rb(zb(this.i)));this.i={};yb(this.v,function(a){Bd(a)},this);
this.v={};cb(this.j);this.j=null;Vn.D.unregister.call(this)};
m.Fa=function(a,b,c){a&&(b=Yn(this,a),!b.disabled&&vj(c.target,b)&&Zn(this,a))};
m.ub=function(a,b,c){a&&O(a,W(this,"hover"))&&(b=Yn(this,a),vj(c.target,b)&&Zn(this,a,!0))};
m.xb=function(){this.f&&this.g&&$n(this,this.g,this.f)};
function $n(a,b,c){var d=ao(a,b);if(d){var e=fg(c);if(e instanceof nd){var f=e.height;e=e.width}else throw Error("missing height argument");d.style.width=eg(e,!0);d.style.height=eg(f,!0)}c==a.f&&(e=9,f=8,O(b,W(a,"reversed"))&&(e^=1,f^=1),O(b,W(a,"flipped"))&&(e^=4,f^=4),a=new H(0,1),d&&oi(b,e,d,f,a,null,197),oi(b,e,c,f,a,null,197))}
function Zn(a,b,c){bo(a,b)&&!c?Xn(a,b):(co(a,b),!a.f||vj(b,a.f)?a.hb(b):ri(a.j,z(a.hb,a,b)))}
m.hb=function(a){if(a){var b=eo(this,a);if(b){aj("yt-uix-menu-before-show",a,b);if(this.f)vj(a,this.f)||Xn(this,this.g);else{this.g=a;this.f=b;O(a,W(this,"sibling-content"))||(Bd(b),document.body.appendChild(b));var c=Yn(this,a).offsetWidth-2;b.style.minWidth=c+"px"}(c=ao(this,a))&&b.parentNode&&b.parentNode.insertBefore(c,b.nextSibling);Zh(b,W(this,"content-hidden"));$n(this,a,b);Yh(Yn(this,a),[W(this,"trigger-selected"),"yt-uix-button-toggled"]);$i("yt-uix-menu-show",a);fo(b);go(this,a);$i("yt-uix-kbd-nav-move-in-to",
b);var d=z(this.Xb,this,a),e=z(this.Hb,this,a);c=Oa(a).toString();this.i[c]=[V(b,"click",e),V(document,"click",d)];O(a,W(this,"indicate-selected"))&&(d=z(this.Ib,this,a),this.i[c].push(V(b,"click",d)));O(a,W(this,"hover"))&&(a=z(this.vb,this,a),this.i[c].push(V(document,"mousemove",a)))}}};
m.vb=function(a,b){var c=Fj(b);if(c){var d=Yn(this,a);vj(c,d)||ho(this,c)||io(this,a)}};
m.Xb=function(a,b){var c=Fj(b);if(c){if(ho(this,c)){var d=K(c,W(this,"content")),e=Pd(c,"LI");e&&d&&Ed(d,e)&&aj("yt-uix-menu-item-clicked",c);c=K(c,W(this,"close-on-select"));if(!c)return;d=Wn(c)}Xn(this,d||a)}};
function co(a,b){if(b){var c=K(b,W(a,"content"));c&&(c=rd(W(a),c),E(c,function(d){!vj(d,b)&&bo(this,d)&&io(this,d)},a))}}
function Xn(a,b){if(b){var c=[];c.push(b);var d=eo(a,b);d&&(d=rd(W(a),d),d=nb(d),c=c.concat(d),E(c,function(e){bo(this,e)&&io(this,e)},a))}}
function io(a,b){if(b){var c=eo(a,b);$h(Yn(a,b),[W(a,"trigger-selected"),"yt-uix-button-toggled"]);P(c,W(a,"content-hidden"));var d=eo(a,b);d&&td(d,{"aria-expanded":"false"});(d=ao(a,b))&&d.parentNode&&Bd(d);c&&c==a.f&&(a.g.appendChild(c),a.f=null,a.g=null,a.j&&a.j.N("ROOT_MENU_REMOVED"));$i("yt-uix-menu-hide",b);c=Oa(b).toString();Ij(a.i[c]);delete a.i[c]}}
m.Hb=function(a,b){var c=Fj(b);c&&jo(this,a,c)};
m.Ib=function(a,b){var c=Fj(b);if(c){var d=Yn(this,a);if(d&&(c=Pd(c,"LI")))if(c=Nd(c).trim(),d.hasChildNodes()){var e=yn.C();(d=J(W(e,"content"),d))&&Fd(d,c)}else Fd(d,c)}};
function go(a,b){var c=eo(a,b);if(c){E(c.children,function(e){"LI"==e.tagName&&td(e,{role:"menuitem"})});
td(c,{"aria-expanded":"true"});var d=c.id;d||(d="aria-menu-id-"+Oa(c),c.id=d);(c=Yn(a,b))&&td(c,{"aria-controls":d})}}
function jo(a,b,c){var d=eo(a,b);d&&O(b,W(a,"checked"))&&(a=Pd(c,"LI"))&&(a=J("yt-ui-menu-item-checked-hid",a))&&(d=rd("yt-ui-menu-item-checked",d),E(d,function(e){bi(e,"yt-ui-menu-item-checked","yt-ui-menu-item-checked-hid")}),bi(a,"yt-ui-menu-item-checked-hid","yt-ui-menu-item-checked"))}
function bo(a,b){var c=eo(a,b);return c?!O(c,W(a,"content-hidden")):!1}
function fo(a){a=sd(document,"UL",null,a);E(a,function(b){b.tabIndex=0;var c=Qn.C();Yh(b,[W(c),W(c,"list")])})}
function eo(a,b){var c=dj(b,"menu-content-id");return c&&(c=I(c))?(Yh(c,[W(a,"content"),W(a,"content-external")]),c):b==a.g?a.f:J(W(a,"content"),b)}
function ao(a,b){var c=Oa(b).toString(),d=a.v[c];if(!d){d=Ad(document,"IFRAME");d.src='javascript:""';var e=[W(a,"mask")];E(Wh(b),function(f){e.push(f+"-mask")});
Yh(d,e);a.v[c]=d}return d||null}
function Yn(a,b){return J(W(a,"trigger"),b)}
function ho(a,b){return vj(b,a.f)||vj(b,a.g)}
;function ko(){Kn.call(this,"clickcard");this.f={};this.g={}}
D(ko,Kn);Ia(ko);m=ko.prototype;m.register=function(){ko.D.register.call(this);X(this,"click",this.za,"target");X(this,"click",this.ya,"close")};
m.unregister=function(){ko.D.unregister.call(this);Y(this,"click",this.za,"target");Y(this,"click",this.ya,"close");for(var a in this.f)Ij(this.f[a]);this.f={};for(a in this.g)Ij(this.g[a]);this.g={}};
m.za=function(a,b,c){c.preventDefault();b=Pd(c.target,"button");if(!b||!b.disabled){if(b=this.l(a,"card-target"))a=document,a="string"===typeof b?a.getElementById(b):b;b=this.J(a);this.l(b,"disabled")||(O(b,W(this,"active"))?(this.hide(a),Zh(b,W(this,"active"))):(this.show(a),P(b,W(this,"active"))))}};
m.show=function(a){ko.D.show.call(this,a);var b=this.J(a),c=Oa(a).toString();if(!dj(b,"click-outside-persists")){if(this.f[c])return;b=V(document,"click",z(this.Aa,this,a));var d=V(window,"blur",z(this.Aa,this,a));this.f[c]=[b,d]}a=V(window,"resize",z(this.Vb,this,a,void 0));this.g[c]=a};
m.hide=function(a){ko.D.hide.call(this,a);a=Oa(a).toString();var b=this.f[a];b&&(Ij(b),this.f[a]=null);if(b=this.g[a])Ij(b),delete this.g[a]};
m.Aa=function(a,b){var c="yt-uix"+(this.o?"-"+this.o:"")+"-card",d=null;b.target&&(d=K(b.target,c)||K(Wn(b.target),c));(d=d||K(document.activeElement,c)||(document.activeElement?K(Wn(document.activeElement),c):null))||this.hide(a)};
m.ya=function(a){(a=K(a,W(this,"card")))&&(a=a.cardTargetNode)&&this.hide(a)};function lo(){Kn.call(this,"hovercard")}
D(lo,Kn);Ia(lo);m=lo.prototype;m.register=function(){X(this,"mouseenter",this.Na,"target");X(this,"mouseleave",this.Pa,"target");X(this,"mouseenter",this.Oa,"card");X(this,"mouseleave",this.Qa,"card")};
m.unregister=function(){Y(this,"mouseenter",this.Na,"target");Y(this,"mouseleave",this.Pa,"target");Y(this,"mouseenter",this.Oa,"card");Y(this,"mouseleave",this.Qa,"card")};
m.Na=function(a){if(mo!=a){mo&&(this.hide(mo),mo=null);var b=z(this.show,this,a),c=parseInt(this.l(a,"delay-show"),10);b=Ri(b,-1<c?c:200);bj(a,"card-timer",b.toString());mo=a;a.alt&&(bj(a,"card-alt",a.alt),a.alt="");a.title&&(bj(a,"card-title",a.title),a.title="")}};
m.Pa=function(a){var b=parseInt(this.l(a,"card-timer"),10);Si(b);this.J(a).isCardHidable=!0;b=parseInt(this.l(a,"delay-hide"),10);b=-1<b?b:200;Ri(z(this.yb,this,a),b);if(b=this.l(a,"card-alt"))a.alt=b;if(b=this.l(a,"card-title"))a.title=b};
m.yb=function(a){this.J(a).isCardHidable&&(this.hide(a),mo=null)};
m.Oa=function(a){a&&(a.cardRootNode.isCardHidable=!1)};
m.Qa=function(a){a&&this.hide(a.cardTargetNode)};
var mo=null;function no(a,b,c,d,e,f){this.f=a;this.A=null;this.i=J("yt-dialog-fg",this.f)||this.f;if(a=J("yt-dialog-title",this.i)){var g="yt-dialog-title-"+Oa(this.i);a.setAttribute("id",g);this.i.setAttribute("aria-labelledby",g)}this.i.setAttribute("tabindex","-1");this.O=J("yt-dialog-focus-trap",this.f);this.ca=!1;this.j=new Q;this.B=[];this.B.push(Gj(this.f,z(this.Mb,this),"yt-dialog-dismiss"));this.B.push(V(this.O,"focus",z(this.sb,this),!0));oo(this);this.la=b;this.kb=c;this.jb=d;this.F=e;this.lb=f;this.v=
this.o=null}
var po={LOADING:"loading",lc:"content",mc:"working"};function qo(a,b){a.ha()||a.j.subscribe("post-all",b)}
function oo(a){a=J("yt-dialog-fg-content",a.f);var b=[];yb(po,function(c){b.push("yt-dialog-show-"+c)});
$h(a,b);P(a,"yt-dialog-show-content")}
m=no.prototype;
m.show=function(){if(!this.ha()){this.A=document.activeElement;if(!this.jb){this.g||(this.g=I("yt-dialog-bg"),this.g||(this.g=Ad(document,"div"),this.g.id="yt-dialog-bg",Xh(this.g,"yt-dialog-bg"),document.body.appendChild(this.g)));var a=window,b=a.document;var c=0;if(b){c=b.body;var d=b.documentElement;if(d&&c)if(a=vd(a).height,wd(b)&&d.scrollHeight)c=d.scrollHeight!=a?d.scrollHeight:d.offsetHeight;else{b=d.scrollHeight;var e=d.offsetHeight;d.clientHeight!=e&&(b=c.scrollHeight,e=c.offsetHeight);c=
b>a?b>e?b:e:b<e?b:e}else c=0}this.g.style.height=c+"px";zk(this.g)}this.Ha();c=ro(this);so(c);this.o=V(document,"keydown",z(this.Gb,this));c=this.f;d=Xi("player-added",this.Ha,this);bj(c,"player-ready-pubsub-key",d);this.kb&&(this.v=V(document,"click",z(this.Rb,this)));zk(this.f);this.i.setAttribute("tabindex","0");to(this);this.F||P(document.body,"yt-dialog-active");zn(yn.C());Ln(ko.C());Ln(lo.C());$i("yt-ui-dialog-show-complete",this)}};
function uo(){var a=rd("yt-dialog");return ib(a,function(b){return yk(b)})}
m.Ha=function(){if(!this.lb){var a=this.f;ai(document.body,"hide-players",!0);a&&ai(a,"preserve-players",!0)}};
function ro(a){var b=sd(document,"iframe",null,a.f);E(b,function(c){var d=dj(c,"onload");d&&(d=y(d))&&V(c,"load",d);if(d=dj(c,"src"))c.src=d},a);
return nb(b)}
function so(a){E(document.getElementsByTagName("iframe"),function(b){-1==eb(a,b)&&P(b,"iframe-hid")})}
function vo(){var a=rd("iframe-hid");E(a,function(b){Zh(b,"iframe-hid")})}
m.Mb=function(a){a=a.currentTarget;a.disabled||(a=dj(a,"action")||"",this.dismiss(a))};
m.dismiss=function(a){if(!this.ha()){this.j.N("pre-all");this.j.N("pre-"+a);Ak(this.f);Ln(ko.C());Ln(lo.C());this.i.setAttribute("tabindex","-1");uo()||(Ak(this.g),this.F||Zh(document.body,"yt-dialog-active"),yj(),vo());this.o&&(Ij(this.o),this.o=null);this.v&&(Ij(this.v),this.v=null);var b=this.f;if(b){var c=dj(b,"player-ready-pubsub-key");c&&(Zi(c),ej(b,"player-ready-pubsub-key"))}this.j.N("post-all");$i("yt-ui-dialog-hide-complete",this);"cancel"==a&&$i("yt-ui-dialog-cancelled",this);this.j&&this.j.N("post-"+
a);this.A&&this.A.focus()}};
m.setTitle=function(a){Fd(J("yt-dialog-title",this.f),a)};
m.Gb=function(a){Ri(z(function(){this.la||27!=a.keyCode||this.dismiss("cancel")},this),0);
9==a.keyCode&&a.shiftKey&&O(document.activeElement,"yt-dialog-fg")&&a.preventDefault()};
m.Rb=function(a){"yt-dialog-base"==a.target.className&&this.dismiss("cancel")};
m.ha=function(){return this.ca};
m.dispose=function(){yk(this.f)&&this.dismiss("dispose");Ij(this.B);this.B.length=0;Ri(z(function(){this.A=null},this),0);
this.O=this.i=null;this.j.dispose();this.j=null;this.ca=!0};
m.sb=function(a){a.stopPropagation();to(this)};
function to(a){Ri(z(function(){this.i&&this.i.focus()},a),0)}
A("yt.ui.Dialog",no);function wo(){Nj.call(this,"overlay");this.j=this.g=this.i=this.f=null}
pa(wo,Nj);m=wo.prototype;m.register=function(){X(this,"click",this.ra,"target");X(this,"click",this.hide,"close");xo(this)};
m.unregister=function(){Nj.prototype.unregister.call(this);Y(this,"click",this.ra,"target");Y(this,"click",this.hide,"close");this.j&&(Zi(this.j),this.j=null);this.g&&(Ij(this.g),this.g=null)};
m.ra=function(a){if(!this.f||!yk(this.f.f)){var b=this.J(a);a=yo(b,a);b||(b=a?a.overlayParentNode:null);if(b&&a){var c=!!this.l(b,"disable-shortcuts")||!1,d=!!this.l(b,"disable-outside-click-dismiss")||!1;this.f=new no(a,c);this.i=b;var e=J("yt-dialog-fg",a);if(e){var f=this.l(b,"overlay-class")||"",g=this.l(b,"overlay-style")||"default",h=this.l(b,"overlay-shape")||"default";f=f?f.split(" "):[];f.push(W(this,g));f.push(W(this,h));Yh(e,f)}this.f.show();$i("yt-uix-kbd-nav-move-to",e||a);xo(this);c||
d||(c=z(function(k){O(k.target,"yt-dialog-base")&&zo(this)},this),a=J("yt-dialog-base",a),this.g=V(a,"click",c));
this.X(b,"overlay-shown");$i("yt-uix-overlay-shown",b)}}};
function xo(a){a.j||(a.j=Xi("yt-uix-overlay-hide",Ao));a.f&&qo(a.f,function(){var b=wo.C();b.i=null;b.f.dispose();b.f=null})}
function zo(a){if(a.f){var b=a.i;a.f.dismiss("overlayhide");b&&a.X(b,"overlay-hidden");a.i=null;a.g&&(Ij(a.g),a.g=null);a.f=null}}
function yo(a,b){var c;if(a)if(c=J("yt-dialog",a)){var d=I("body-container");d&&(d.appendChild(c),a.overlayContentNode=c,c.overlayParentNode=a)}else c=a.overlayContentNode;else b&&(c=K(b,"yt-dialog"));return c}
function Bo(){var a=wo.C();if(a.i)a=J("yt-dialog-fg-content",a.i.overlayContentNode);else a:{if(a=rd("yt-dialog-fg-content"))for(var b=0;b<a.length;b++){var c=K(a[b],"yt-dialog");if(yk(c)){a=a[b];break a}}a=null}return a}
m.hide=function(a){a&&a.disabled||$i("yt-uix-overlay-hide")};
function Ao(){zo(wo.C())}
m.show=function(a){this.ra(a)};
Ia(wo);var Co={},Do=[];function Eo(a){a=K(a,"yt-uix-button-subscription-container");a=J("unsubscribe-confirmation-overlay-container",a);return J("yt-dialog",a)}
function Fo(a,b){Ij(Do);Do.length=0;Co[b]||(Co[b]=Eo(a));wo.C().show(Co[b]);var c=Bo();return new de(function(d){Do.push(Gj(c,function(){d()},"overlay-confirmation-unsubscribe-button"))})}
;function Go(){var a=R("PLAYER_CONFIG");return a&&a.args&&void 0!==a.args.authuser?!0:!(!R("SESSION_INDEX")&&!R("LOGGED_IN"))}
;function Ho(){Nj.call(this,"subscription-button")}
pa(Ho,Nj);m=Ho.prototype;m.register=function(){X(this,"click",this.ta);Pj(this,ik,this.Wa);Pj(this,jk,this.Va);Pj(this,kk,this.Pb);Pj(this,nk,this.Wa);Pj(this,ok,this.Va);Pj(this,pk,this.Qb);Pj(this,rk,this.Ob);Pj(this,sk,this.Nb)};
m.unregister=function(){Y(this,"click",this.ta);Nj.prototype.unregister.call(this)};
m.isSubscribed=function(a){return!!this.l(a,"is-subscribed")};
m.ta=function(a){var b=this.l(a,"href"),c=this.l(a,"insecure");if(b)a=this.l(a,"target")||"_self",window.open(b,a);else if(!c)if(Go()){b=this.l(a,"channel-external-id");c=this.l(a,"clicktracking");var d=Io(this,a),e=this.l(a,"parent-url");if(this.l(a,"is-subscribed")){var f=this.l(a,"subscription-id"),g=this.l(a,"unsubscribe-params"),h=new ek(b,f,d,a,c,e,g);this.l(a,"show-unsub-confirm-dialog")?Fo(a,b).then(function(){U(mk,h)}):U(mk,h)}else a=this.l(a,"params"),U(hk,new ck(b,d,c,e,void 0,a))}else Jo(this,
a)};
m.Wa=function(a){this.W(a.f,this.ab,!0)};
m.Va=function(a){this.W(a.f,this.ab,!1)};
m.Pb=function(a){this.W(a.f,this.bb,!0,a.g)};
m.Qb=function(a){this.W(a.f,this.bb,!1)};
m.Ob=function(a){this.W(a.f,this.qb)};
m.Nb=function(a){this.W(a.f,this.pb)};
m.bb=function(a,b,c){b?(bj(a,"is-subscribed","true"),c&&bj(a,"subscription-id",c)):(ej(a,"is-subscribed"),ej(a,"subscription-id"));Ko(this,a)};
function Io(a,b){if(!a.l(b,"ypc-enabled"))return null;var c=a.l(b,"ypc-item-type"),d=a.l(b,"ypc-item-id");return{itemType:c,itemId:d,subscriptionElement:b}}
m.ab=function(a,b){var c=K(a,"yt-uix-button-subscription-container");ai(c,"yt-subscription-button-disabled-mask-container",b);a.setAttribute("aria-busy",b?"true":"false");a.disabled=b};
function Ko(a,b){var c=a.l(b,"style-type"),d=!!a.l(b,"is-subscribed");c="-"+c;var e="yt-uix-button-subscribed"+c;ai(b,"yt-uix-button-subscribe"+c,!d);ai(b,e,d);a.l(b,"subscriber-count-tooltip")&&!a.l(b,"subscriber-count-show-when-subscribed")&&(c=W(Bk.C()),ai(b,c,!d),b.title=d?"":a.l(b,"subscriber-count-title"));d?Ri(function(){P(b,"hover-enabled")},1E3):Zh(b,"hover-enabled")}
m.qb=function(a){var b=!!this.l(a,"ypc-item-type"),c=!!this.l(a,"ypc-item-id");!this.l(a,"ypc-enabled")&&b&&c&&(P(a,"ypc-enabled"),bj(a,"ypc-enabled","true"))};
m.pb=function(a){this.l(a,"ypc-enabled")&&(Zh(a,"ypc-enabled"),ej(a,"ypc-enabled"))};
function Lo(a,b){var c=rd(W(a));return fb(c,function(d){return b==this.l(d,"channel-external-id")},a)}
m.mb=function(a,b,c){var d=qb(arguments,2);E(a,function(e){b.apply(this,mb(e,d))},this)};
m.W=function(a,b,c){var d=Lo(this,a);d=mb([d],qb(arguments,1));this.mb.apply(this,d)};
function Jo(a,b){var c=z(function(d){d.discoverable_subscriptions&&Li("SUBSCRIBE_EMBED_DISCOVERABLE_SUBSCRIPTIONS",d.discoverable_subscriptions);this.ta(b)},a);
Jk(c)}
Ia(Ho);function Mo(a){this.f=a;this.M=null;R("SUBSCRIBE_EMBED_HOVERCARD_URL")&&(No(this),V(this.f,"mouseover",z(this.j,this)),V(this.f,"mouseout",z(this.ma,this)),V(this.f,"click",z(this.ma,this)),qj(kk,Ta(this.g,!0),this),qj(pk,Ta(this.g,!1),this),Oo(this))}
function No(a){var b={url:R("SUBSCRIBE_EMBED_HOVERCARD_URL"),style:"bubble",hideClickDetection:!0,show:!1,anchor:a.f,relayOpen:"-1"};a=z(a.i,a);Yj().open(b,a)}
function Oo(a){Go()||Xi("LOGGED_IN",function(){this.M&&(this.ma(),this.M.close(),this.M=null,No(this))},a)}
Mo.prototype.i=function(a){this.M=a;a=Ho.C().isSubscribed(this.f);this.g(a)};
Mo.prototype.j=function(){this.M&&this.M.restyle({show:!0})};
Mo.prototype.ma=function(){this.M&&this.M.restyle({show:!1})};
Mo.prototype.g=function(a){if(this.M){a={isSubscribed:a};try{this.M.send("msg-hovercard-subscription",a,void 0,y("gapi.iframes.SAME_ORIGIN_IFRAMES_FILTER"))}catch(b){}}};function Po(){Xj(function(){var a=fg(I("yt-subscribe"));a={width:a.width,height:a.height};var b=Qo;Yj().ready(a,null,b)})}
function Qo(a){if(a.length&&a[a.length-1]){a=a[a.length-1].eurl;var b=I("yt-subscribe"),c=Ho.C();if(b=J(W(c),b))a&&(Ho.C(),bj(b,"parent-url",a)),new Mo(b)}}
;function Ro(a,b){var c=void 0===c?{}:c;var d=bn;R("ytLoggingEventsDefaultDisabled",!1)&&bn==bn&&(d=null);kl(a,b,d,c)}
;var So=y("ytglobal.prefsUserPrefsPrefs_")||{};A("ytglobal.prefsUserPrefsPrefs_",So);function To(){this.f=R("ALT_PREF_COOKIE_NAME","PREF");var a=Ll(this.f);if(a){a=decodeURIComponent(a).split("&");for(var b=0;b<a.length;b++){var c=a[b].split("="),d=c[0];(c=c[1])&&(So[d]=c.toString())}}}
m=To.prototype;m.get=function(a,b){Uo(a);Vo(a);var c=Wo(a);return null!=c?c:b?b:""};
m.set=function(a,b){Uo(a);Vo(a);if(null==b)throw Error("ExpectedNotNull");So[a]=b.toString()};
function Xo(a){var b=Wo("f"+(Math.floor(a/31)+1));return!!(((null!=b&&/^[A-Fa-f0-9]+$/.test(b)?parseInt(b,16):null)||0)&1<<a%31)}
m.remove=function(a){Uo(a);Vo(a);delete So[a]};
m.save=function(){Kl(this.f,this.dump(),63072E3)};
m.clear=function(){for(var a in So)delete So[a]};
m.dump=function(){var a=[],b;for(b in So)a.push(b+"="+encodeURIComponent(String(So[b])));return a.join("&")};
function Vo(a){if(/^f([1-9][0-9]*)$/.test(a))throw Error("ExpectedRegexMatch: "+a);}
function Uo(a){if(!/^\w+$/.test(a))throw Error("ExpectedRegexMismatch: "+a);}
function Wo(a){return void 0!==So[a]?So[a].toString():null}
Ia(To);var Yo=new Map([["dark","USER_INTERFACE_THEME_DARK"],["light","USER_INTERFACE_THEME_LIGHT"]]),Zo=["/fashion","/channel/UCrpQ4p1Ql_hG8rKXIKM1MOQ","/channel/UCTApTkbpcqiLL39WUlne4ig","/channel/UCW5PCzG3KQvbOX4zc3KY0lQ"];function $o(){var a=void 0===a?window.location.href:a;if(Z("kevlar_disable_theme_param"))return null;var b=Af(Bf(5,a));if(ap(b))return"USER_INTERFACE_THEME_DARK";a=Uj(a).theme;return Yo.get(a)||null}
function ap(a){var b=Zo.map(function(c){return c.toLowerCase()});
return!Z("disable_dark_fashion_destination_launch")&&b.some(function(c){return a.toLowerCase().startsWith(c)})?!0:!1}
;function bp(){this.f={};var a=Ll("CONSISTENCY");a&&cp(this,{encryptedTokenJarContents:a})}
bp.prototype.replace=function(a,b){for(var c=u(a),d=c.next();!d.done;d=c.next())delete this.f[d.value.encryptedTokenJarContents];cp(this,b)};
function cp(a,b){if(b.encryptedTokenJarContents&&(a.f[b.encryptedTokenJarContents]=b,"string"===typeof b.expirationSeconds)){var c=Number(b.expirationSeconds);setTimeout(function(){delete a.f[b.encryptedTokenJarContents]},1E3*c);
Kl("CONSISTENCY",b.encryptedTokenJarContents,c,void 0,!0)}}
;var dp={bluetooth:"CONN_DISCO",cellular:"CONN_CELLULAR_UNKNOWN",ethernet:"CONN_WIFI",none:"CONN_NONE",wifi:"CONN_WIFI",wimax:"CONN_CELLULAR_4G",other:"CONN_UNKNOWN",unknown:"CONN_UNKNOWN","slow-2g":"CONN_CELLULAR_2G","2g":"CONN_CELLULAR_2G","3g":"CONN_CELLULAR_3G","4g":"CONN_CELLULAR_4G"};var ep=[{Ma:function(a){return"Cannot read property '"+a.key+"'"},
qa:{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"]}],Error:[{regexp:/(Permission denied) to access property "([^']+)"/,groups:["reason","key"]}]}},{Ma:function(a){return"Cannot call '"+a.key+"'"},
qa:{TypeError:[{regexp:/(?:([^ ]+)?\.)?([^ ]+) is not a function/,groups:["base","key"]},{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"]}]}}];var fp=new Set,gp=0;function hp(a){ip(a)}
function ip(a,b){var c=void 0===c?{}:c;c.name=R("INNERTUBE_CONTEXT_CLIENT_NAME",1);c.version=R("INNERTUBE_CONTEXT_CLIENT_VERSION",void 0);var d=c||{};c=void 0===b?"ERROR":b;c=void 0===c?"ERROR":c;var e=void 0===e?!1:e;if(a){if(Z("console_log_js_exceptions")){var f=[];f.push("Name: "+a.name);f.push("Message: "+a.message);a.hasOwnProperty("params")&&f.push("Error Params: "+JSON.stringify(a.params));f.push("File name: "+a.fileName);f.push("Stacktrace: "+a.stack);window.console.log(f.join("\n"),a)}if((window&&
window.yterr||e)&&!(5<=gp)&&0!==a.f){var g=Ac(a);e=g.message||"Unknown Error";f=g.name||"UnknownError";var h=g.lineNumber||"Not available",k=g.fileName||"Not available";g=g.stack||a.g||"Not available";if(a.hasOwnProperty("args")&&a.args&&a.args.length)for(var l=0,n=0;n<a.args.length;n++){var p=a.args[n],q="params."+n;l+=q.length;if(p)if(Array.isArray(p))for(var r=d,v=0;v<p.length&&!(p[v]&&(l+=jp(v,p[v],q,r),500<l));v++);else if("object"===typeof p)for(r in r=void 0,v=d,p){if(p[r]&&(l+=jp(r,p[r],q,
v),500<l))break}else d[q]=String(JSON.stringify(p)).substring(0,500),l+=d[q].length;else d[q]=String(JSON.stringify(p)).substring(0,500),l+=d[q].length;if(500<=l)break}else if(a.hasOwnProperty("params")&&a.params)if(p=a.params,"object"===typeof a.params)for(n in q=0,p){if(p[n]&&(l="params."+n,r=String(JSON.stringify(p[n])).substr(0,500),d[l]=r,q+=l.length+r.length,500<q))break}else d.params=String(JSON.stringify(p)).substr(0,500);navigator.vendor&&!d.hasOwnProperty("vendor")&&(d.vendor=navigator.vendor);
d={message:e,name:f,lineNumber:h,fileName:k,stack:g,params:d};e=Number(a.columnNumber);isNaN(e)||(d.lineNumber=d.lineNumber+":"+e);e=u(ep);for(f=e.next();!f.done;f=e.next())if(f=f.value,f.qa[d.name])for(k=u(f.qa[d.name]),h=k.next();!h.done;h=k.next())if(g=h.value,h=d.message.match(g.regexp)){d.params["error.original"]=h[0];k=g.groups;g={};for(n=0;n<k.length;n++)g[k[n]]=h[n+1],d.params["error."+k[n]]=h[n+1];d.message=f.Ma(g);break}window.yterr&&"function"===typeof window.yterr&&window.yterr(d);if(!(fp.has(d.message)||
0<=d.stack.indexOf("/YouTubeCenter.js")||0<=d.stack.indexOf("/mytube.js"))){if(Z("kevlar_gel_error_routing")){f=c;h={stackTrace:d.stack};d.fileName&&(h.filename=d.fileName);e=d.lineNumber&&d.lineNumber.split?d.lineNumber.split(":"):[];0!==e.length&&(1!==e.length||isNaN(Number(e[0]))?2!==e.length||isNaN(Number(e[0]))||isNaN(Number(e[1]))||(h.lineNumber=Number(e[0]),h.columnNumber=Number(e[1])):h.lineNumber=Number(e[0]));e={level:"ERROR_LEVEL_UNKNOWN",message:d.message};"ERROR"===f?e.level="ERROR_LEVEL_ERROR":
"WARNING"===f&&(e.level="ERROR_LEVEL_WARNNING");f={isObfuscated:!0,browserStackInfo:h};h={pageUrl:window.location.href,kvPairs:[]};if(k=d.params)for(g=u(Object.keys(k)),n=g.next();!n.done;n=g.next())n=n.value,h.kvPairs.push({key:"client."+n,value:String(k[n])});Ro("clientError",{errorMetadata:h,stackTrace:f,logMessage:e});bl()}e=d.params||{};c={sa:{a:"logerror",t:"jserror",type:d.name,msg:d.message.substr(0,250),line:d.lineNumber,level:c,"client.name":e.name},G:{url:R("PAGE_NAME",window.location.href),
file:d.fileName},method:"POST"};e.version&&(c["client.version"]=e.version);if(c.G){d.stack&&(c.G.stack=d.stack);f=u(Object.keys(e));for(h=f.next();!h.done;h=f.next())h=h.value,c.G["client."+h]=e[h];if(e=R("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS",void 0))for(f=u(Object.keys(e)),h=f.next();!h.done;h=f.next())h=h.value,c.G[h]=e[h];e=R("SERVER_NAME",void 0);f=R("SERVER_VERSION",void 0);e&&f&&(c.G["server.name"]=e,c.G["server.version"]=f)}zl(R("ECATCHER_REPORT_HOST","")+"/error_204",c);fp.add(d.message);
gp++}}}}
function jp(a,b,c,d){c+="."+a;a=String(JSON.stringify(b)).substr(0,500);d[c]=a;return c.length+a.length}
;function kp(a,b){this.f=a;this.i=b;this.g=hp}
function lp(a){if(!mp){var b={Ba:{playlistEditEndpoint:np,subscribeEndpoint:op,unsubscribeEndpoint:pp,modifyChannelNotificationPreferenceEndpoint:qp}};rp.f||(rp.f=new rp);var c=rp.f;Tl();kp.f=new kp(b,c);mp=kp.f}b=mp;var d=void 0===d?Vl:d;a:{var e,f;if((null===(e=a.signalServiceEndpoint)||void 0===e?0:e.signal)&&b.f.Tb&&(e=b.f.Tb[a.signalServiceEndpoint.signal])){var g=new e;break a}if((null===(f=a.continuationCommand)||void 0===f?0:f.request)&&b.f.nb&&(f=b.f.nb[a.continuationCommand.request])){g=
new f;break a}for(g in a)if(b.f.Ba[g]&&(f=b.f.Ba[g])){g=new f;break a}g=void 0}if(!g)return b.g(new an("Error: No request builder found for command.",a)),ie({});f=void 0;f=void 0===f?{}:f;e=a.clickTrackingParams;var h=void 0===h?!0:h;if(c=R("INNERTUBE_CONTEXT")){c=Db(c);c.client||(c.client={});var k=c.client;"MWEB"===k.clientName&&(k.clientFormFactor=R("IS_TABLET")?"LARGE_FORM_FACTOR":"SMALL_FORM_FACTOR");k.screenWidthPoints=window.innerWidth;k.screenHeightPoints=window.innerHeight;k.screenPixelDensity=
Math.round(window.devicePixelRatio)||1;k.utcOffsetMinutes=-Math.floor((new Date).getTimezoneOffset());var l=void 0===l?!1:l;To.C();var n=Xo(165)?"USER_INTERFACE_THEME_DARK":"USER_INTERFACE_THEME_LIGHT";Z("kevlar_apply_prefers_color_theme")&&(n=Xo(165)?"USER_INTERFACE_THEME_DARK":Xo(174)?"USER_INTERFACE_THEME_LIGHT":window.matchMedia&&window.matchMedia("(prefers-color-scheme)").matches&&window.matchMedia("(prefers-color-scheme: dark)").matches?"USER_INTERFACE_THEME_DARK":"USER_INTERFACE_THEME_LIGHT");
l=l?n:$o()||n;k.userInterfaceTheme=l;if(Z("web_log_connection")){c:{if(n=(l=window.navigator)?l.connection:void 0){l=dp[n.type||"unknown"]||"CONN_UNKNOWN";n=dp[n.f||"unknown"]||"CONN_UNKNOWN";"CONN_CELLULAR_UNKNOWN"===l&&"CONN_UNKNOWN"!==n&&(l=n);if("CONN_UNKNOWN"!==l)break c;if("CONN_UNKNOWN"!==n){l=n;break c}}l=void 0}l&&(k.connectionType=l)}(l=Ll("EXPERIMENTS_DEBUG"))?k.experimentsToken="ZERO"===l?"GgIQAQ%3D%3D":l:delete k.experimentsToken;l=Nk();bp.f||(bp.f=new bp);k=zb(bp.f.f);c.request=Object.assign(Object.assign({},
c.request),{internalExperimentFlags:l,consistencyTokenJars:k});k=To.C();l=Xo(58);k=k.get("gsml","");c.user=Object.assign({},c.user);l&&(c.user.enableSafetyMode=l);k&&(c.user.lockedSafetyMode=!0);(l=R("DELEGATED_SESSION_ID"))&&!Z("pageid_as_header_web")&&(c.user.onBehalfOfUser=l);h&&(h=wn())&&(c.clientScreenNonce=h);e&&(c.clickTracking={clickTrackingParams:e});h=c}else ip(Error("Error: No InnerTubeContext shell provided in ytconfig.")),h={};h={context:h};(e=g.i(a))?g.f(h,e,f):(ip(new an("Error: Failed to create Request from Command.",
a)),h=void 0);if(!h)return b.g(new an("Error: Failed to build request for command.",a)),ie({});f=sp("/youtubei/v1/"+tp(g.g()));var p;var q=(a=null===(p=null===(q=a.commandMetadata)||void 0===q?void 0:q.webCommandMetadata)||void 0===p?void 0:p.apiUrl)?sp(a):void 0;q&&(f=q);return up(b,h,f,d,g.j())}
function up(a,b,c,d,e){d=void 0===d?Vl:d;var f=JSON.stringify(b),g=Wj(c)?"same-origin":"cors",h=Wj(c)?"same-origin":"include";return vp().then(function(k){k={method:"POST",mode:g,credentials:h,headers:k,body:f};var l;e&&(l=Object.assign({yc:c,zc:k,identity:d,requestTime:Pk(),Ac:0},e));return a.i.fetch(c,k,l)}).then(function(k){return ie(k)})}
function sp(a){var b=Vj(a,{key:R("INNERTUBE_API_KEY")},!1);if(a=R("INNERTUBE_HOST_OVERRIDE")){a=String(a);var c=String,d=b.match(zf);b=d[5];var e=d[6];d=d[7];var f="";b&&(f+=b);e&&(f+="?"+e);d&&(f+="#"+d);b=a+c(f)}return b}
function vp(){return Ul().then(function(a){a=Object.assign({"Content-Type":"application/json","X-Goog-Visitor-Id":R("VISITOR_DATA")},a);return ie(a)})}
;var wp=["notification/modify_channel_preference"],xp=["browse/edit_playlist"],yp=["subscription/subscribe"],zp=["subscription/unsubscribe"];var Ap={},Bp=(Ap.WEB_UNPLUGGED="^unplugged/",Ap.WEB_UNPLUGGED_ONBOARDING="^unplugged/",Ap.WEB_UNPLUGGED_OPS="^unplugged/",Ap.WEB_UNPLUGGED_PUBLIC="^unplugged/",Ap.WEB_CREATOR="^creator/",Ap.WEB_KIDS="^kids/",Ap.WEB_EXPERIMENTS="^experiments/",Ap.WEB_MUSIC="^music/",Ap.WEB_REMIX="^music/",Ap.WEB_MUSIC_EMBEDDED_PLAYER="^music/",Ap.WEB_MUSIC_EMBEDDED_PLAYER="^main_app/|^sfv/",Ap);
function tp(a){var b=void 0===b?"UNKNOWN_INTERFACE":b;if(1===a.length)return a[0];var c=Bp[b];if(c){var d=new RegExp(c),e=u(a);for(c=e.next();!c.done;c=e.next())if(c=c.value,d.exec(c))return c}var f=[];Object.entries(Bp).forEach(function(g){var h=u(g);g=h.next().value;h=h.next().value;b!==g&&f.push(h)});
d=new RegExp(f.join("|"));a.sort(function(g,h){return g.length-h.length});
e=u(a);for(c=e.next();!c.done;c=e.next())if(c=c.value,!d.exec(c))return c;return a[0]}
;function Cp(){}
Cp.prototype.j=function(){};function op(){}
pa(op,Cp);op.prototype.g=function(){return yp};
op.prototype.j=function(){return{}};
op.prototype.i=function(a){return a.subscribeEndpoint};
op.prototype.f=function(a,b,c){c=void 0===c?{}: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)};function pp(){}
pa(pp,Cp);pp.prototype.g=function(){return zp};
pp.prototype.j=function(){return{}};
pp.prototype.i=function(a){return a.unsubscribeEndpoint};
pp.prototype.f=function(a,b){b.channelIds&&(a.channelIds=b.channelIds);b.siloName&&(a.siloName=b.siloName);b.params&&(a.params=b.params)};function qp(){}
pa(qp,Cp);qp.prototype.g=function(){return wp};
qp.prototype.i=function(a){return a.modifyChannelNotificationPreferenceEndpoint};
qp.prototype.f=function(a,b){b.params&&(a.params=b.params);b.secondaryParams&&(a.secondaryParams=b.secondaryParams)};function np(){}
pa(np,Cp);np.prototype.g=function(){return xp};
np.prototype.i=function(a){return a.playlistEditEndpoint};
np.prototype.f=function(a,b){b.actions&&(a.actions=b.actions);b.params&&(a.params=b.params);b.playlistId&&(a.playlistId=b.playlistId)};function ze(){}
ze.prototype.flush=function(a){a=void 0===a?[]:a;if(Z("enable_client_streamz_web")){a=u(a);for(var b=a.next();!b.done;b=a.next()){b=b.value;var c=new sh;c=of(c,1,b.j);for(var d=b,e=[],f=0;f<d.f.length;f++)e.push(d.f[f].T);c=of(c,3,e||[]);d=[];e=[];f=u(b.Y.keys());for(var g=f.next();!g.done;g=f.next())e.push(g.value.split(","));for(f=0;f<e.length;f++){g=e[f];var h=b.g;for(var k=b.Da(g)||[],l=[],n=0;n<k.length;n++){var p=k[n];p=p&&p.xa;var q=new Ch;switch(h){case 3:pf(q,1,Dh[0],Number(p));break;case 2:pf(q,
2,Dh[0],Number(p))}l.push(q)}h=l;for(k=0;k<h.length;k++){n=h[k];l=new yh;l.f||(l.f={});p=n?tf(n):n;l.f[2]=n;l=of(l,2,p);n=g;p=[];q=b;for(var r=[],v=0;v<q.f.length;v++)r.push(q.f[v].U);q=r;for(r=0;r<q.length;r++){v=q[r];var B=n[r],C=new Ah;switch(v){case 3:pf(C,1,Bh[0],String(B));break;case 2:pf(C,2,Bh[0],Number(B));break;case 1:pf(C,3,Bh[0],"true"==B)}p.push(C)}sf(l,1,p);d.push(l)}}sf(c,4,d);d=b=new Ze;e=L(c,1);null!=e&&ef(d,1,e);e=L(c,5);null!=e&&cf(d,5,e);e=qf(c,uh,2);null!=e&&ff(d,2,e,Eh);e=L(c,
3);if(0<e.length&&null!=e)for(f=0;f<e.length;f++)ef(d,3,e[f]);e=L(c,6);if(0<e.length&&null!=e)for(f=0;f<e.length;f++)cf(d,6,e[f]);e=rf(c,yh,4);0<e.length&&gf(d,4,e,Hh);c=new Uint8Array(b.g+b.f.length());e=b.i;f=e.length;for(g=d=0;g<f;g++)h=e[g],c.set(h,d),d+=h.length;e=b.f.end();c.set(e,d);b.i=[c];b={serializedIncrementBatch:Ye(c)};Ro("streamzIncremented",b)}}};var Dp;function Ce(){if(!Dp){Dp=new ye;var a=Mk("client_streamz_web_flush_count",-1);-1!==a&&(Dp.v=a)}return Dp}
;function rp(){this.j=new Be;this.g=new De;this.i=new Fe;this.f=new Ge}
rp.prototype.fetch=function(a,b){var c=this,d=new Request(a,b),e=Af(Bf(5,Mf(d.url)));this.j.f.j("/client_streamz/youtube/web/network/one_platform_requests",e);return ie(fetch(d).then(function(f){return Ep(c,f,e)})["catch"](function(f){ip(f,"WARNING")}))};
function Ep(a,b,c){var d=b.json();b.redirected?Ee(a.g,b.status,c,Af(Bf(5,b.url))):b.ok?a.i.f.j("/client_streamz/youtube/web/network/one_platform_request_success",c):(a.f.f.j("/client_streamz/youtube/web/network/one_platform_request_failed",b.status,c),d.then(function(e){ip(new an("Error: API fetch failed",b.status,b.url,e),"WARNING")}));
return d}
;var mp;function Fp(a){S.call(this,1,arguments);this.f=a}
D(Fp,S);function Gp(a,b){S.call(this,2,arguments);this.g=a;this.f=b}
D(Gp,S);function Hp(a,b,c,d){S.call(this,1,arguments);this.f=b;this.itemType=c||null;this.itemId=d||null}
D(Hp,S);function Ip(a,b){S.call(this,1,arguments);this.g=a;this.f=b||null}
D(Ip,S);function Jp(a){S.call(this,1,arguments)}
D(Jp,S);var Kp=new T("ypc-core-load",Fp),Lp=new T("ypc-guide-sync-success",Gp),Mp=new T("ypc-purchase-success",Hp),Np=new T("ypc-subscription-cancel",Jp),Op=new T("ypc-subscription-cancel-success",Ip),Pp=new T("ypc-init-subscription",Jp);var Qp=[];function Rp(a){a.g?U(Kp,new Fp(function(){U(Pp,new Jp(a.g))})):Z("web_classic_innertube_subscription_update")?Sp(a.f,a.params):Tp(a.f,a.j,a.i,a.source,a.params)}
function Up(a){a.g?U(Kp,new Fp(function(){U(Np,new Jp(a.g))})):Z("web_classic_innertube_subscription_update")?Vp(a.f,a.params):Wp(a.f,a.o,a.j,a.i,a.source)}
function Xp(a){Yp(nb(a.f))}
function Zp(a){$p(nb(a.f))}
function aq(a){bq(a.i,a.g,a.f)}
function cq(a){var b=a.itemId,c=a.f.subscriptionId;b&&c&&U(kk,new dk(b,c,a.f.channelInfo))}
function dq(a){var b=a.f;yb(a.g,function(c,d){U(kk,new dk(d,c,b[d]))})}
function eq(a){U(pk,new ak(a.g.itemId));a.f&&a.f.length&&(fq(a.f,pk),fq(a.f,rk))}
function Sp(a,b){var c=new ak(a);U(ik,c);le(lp({commandMetadata:{webCommandMetadata:{apiUrl:"/youtubei/v1/subscription/subscribe"}},subscribeEndpoint:{channelIds:[a],params:b}}).then(function(){U(kk,new dk(a,Math.round(1E4*Math.random()).toString(),{thumbnail:"",title:"",url:"",vc:a}))}),function(){U(jk,c)})}
function Tp(a,b,c,d,e){var f=new ak(a);U(ik,f);var g={};g.c=a;c&&(g.eurl=c);d&&(g.source=d);c={};(d=R("PLAYBACK_ID"))&&(c.plid=d);(d=R("EVENT_ID"))&&(c.ei=d);e&&(c.params=e);b&&gq(b,c);zl("/subscription_ajax?action_create_subscription_to_channel=1",{method:"POST",sa:g,G:c,onSuccess:function(h,k){var l=k.response;U(kk,new dk(a,l.id,l.channel_info));l.show_feed_privacy_dialog&&$i("SHOW-FEED-PRIVACY-SUBSCRIBE-DIALOG",a)},
ba:function(){U(jk,f)}})}
function Vp(a,b){var c=new ak(a);U(nk,c);le(lp({commandMetadata:{webCommandMetadata:{apiUrl:"/youtubei/v1/subscription/unsubscribe"}},unsubscribeEndpoint:{channelIds:[a],params:b}}).then(function(){U(pk,c)}),function(){U(ok,c)})}
function Wp(a,b,c,d,e){var f=new ak(a);U(nk,f);var g={};g.c=a;d&&(g.eurl=d);e&&(g.source=e);d={};d.c=a;d.s=b;(a=R("PLAYBACK_ID"))&&(d.plid=a);(a=R("EVENT_ID"))&&(d.ei=a);c&&gq(c,d);zl("/subscription_ajax?action_remove_subscriptions=1",{method:"POST",sa:g,G:d,onSuccess:function(){U(pk,f)},
ba:function(){U(ok,f)}})}
function bq(a,b,c){if(a){var d={};d.channel_id=a;switch(b){case "receive-all-updates":d.receive_all_updates=!0;break;case "receive-no-updates":d.receive_no_updates=!0;d.receive_post_updates=!1;break;case "receive-highlight-updates":d.receive_all_updates=!1;d.receive_no_updates=!1;break;default:return}null===c||d.receive_no_updates||(d.receive_post_updates=c);var e=new bk(a,b,c);zl("/subscription_ajax?action_update_subscription_preferences=1",{method:"POST",G:d,onError:function(){U(vk,e)},
onSuccess:function(){U(uk,e)}})}}
function Yp(a){if(a.length){var b=pb(a,0,40);U("subscription-batch-subscribe-loading");fq(b,ik);var c={};c.a=b.join(",");var d=function(){U("subscription-batch-subscribe-loaded");fq(b,jk)};
zl("/subscription_ajax?action_create_subscription_to_all=1",{method:"POST",G:c,onSuccess:function(e,f){d();var g=f.response,h=g.id;if(Array.isArray(h)&&h.length==b.length){var k=g.channel_info_map;E(h,function(l,n){var p=b[n];U(kk,new dk(p,l,k[p]))});
a.length?Yp(a):U("subscription-batch-subscribe-finished")}},
onError:function(){d();U("subscription-batch-subscribe-failure")}})}}
function $p(a){if(a.length){var b=pb(a,0,40);U("subscription-batch-unsubscribe-loading");fq(b,nk);var c={};c.c=b.join(",");var d=function(){U("subscription-batch-unsubscribe-loaded");fq(b,ok)};
zl("/subscription_ajax?action_remove_subscriptions=1",{method:"POST",G:c,onSuccess:function(){d();fq(b,pk);a.length&&$p(a)},
onError:function(){d()}})}}
function fq(a,b){E(a,function(c){U(b,new ak(c))})}
function gq(a,b){var c=Tj(a),d;for(d in c)b[d]=c[d]}
;A("yt.setConfig",Li);A("yt.config.set",Li);A("ytbin.www.subscribeembed.init",function(){var a=!0;Qp.push(qj(hk,Rp),qj(mk,Up));a||Qp.push(qj(lk,Rp),qj(qk,Up),qj(fk,Xp),qj(gk,Zp),qj(tk,aq),qj(Mp,cq),qj(Op,eq),qj(Lp,dq));a=Ho.C();var b=W(a);b in Rj||(a.register(),Oj(a,"yt-uix-init-"+b,a.init),Oj(a,"yt-uix-dispose-"+b,a.dispose),Rj[b]=a);Po()});}).call(this);