(function(){var t
function e(t){var e=0
return function(){return e<t.length?{done:!1,value:t[e++]}:{done:!0}}}var n="function"==typeof Object.defineProperties?Object.defineProperty:function(t,e,n){return t==Array.prototype||t==Object.prototype||(t[e]=n.value),t}
var r=function(t){t=["object"==typeof globalThis&&globalThis,t,"object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof global&&global]
for(var e=0;e<t.length;++e){var n=t[e]
if(n&&n.Math==Math)return n}throw Error("Cannot find global object")}(this)
function i(t,e){if(e)t:{for(var i=r,o=t.split("."),a=0;a<o.length-1;a++){var s=o[a]
if(!(s in i))break t
i=i[s]}(s=e(a=i[o=o[o.length-1]]))!=a&&null!=s&&n(i,o,{configurable:!0,writable:!0,value:s})}}function o(t){return(t={next:t})[Symbol.iterator]=function(){return this},t}function a(t){var n="undefined"!=typeof Symbol&&Symbol.iterator&&t[Symbol.iterator]
return n?n.call(t):{next:e(t)}}i("Symbol",(function(t){function e(t,e){this.f=t,n(this,"description",{configurable:!0,writable:!0,value:e})}if(t)return t
e.prototype.toString=function(){return this.f}
var r=0
return function t(n){if(this instanceof t)throw new TypeError("Symbol is not a constructor")
return new e("jscomp_symbol_"+(n||"")+"_"+r++,n)}})),i("Symbol.iterator",(function(t){if(t)return t
t=Symbol("Symbol.iterator")
for(var i="Array Int8Array Uint8Array Uint8ClampedArray Int16Array Uint16Array Int32Array Uint32Array Float32Array Float64Array".split(" "),a=0;a<i.length;a++){var s=r[i[a]]
"function"==typeof s&&"function"!=typeof s.prototype[t]&&n(s.prototype,t,{configurable:!0,writable:!0,value:function(){return o(e(this))}})}return t}))
var s,u="function"==typeof Object.create?Object.create:function(t){function e(){}return e.prototype=t,new e}
if("function"==typeof Object.setPrototypeOf)s=Object.setPrototypeOf
else{var c
t:{var f={}
try{f.__proto__={a:!0},c=f.a
break t}catch(ht){}c=!1}s=c?function(t,e){if(t.__proto__=e,t.__proto__!==e)throw new TypeError(t+" is not extensible")
return t}:null}var l=s
function h(t,e){if(t.prototype=u(e.prototype),t.prototype.constructor=t,l)l(t,e)
else for(var n in e)if("prototype"!=n)if(Object.defineProperties){var r=Object.getOwnPropertyDescriptor(e,n)
r&&Object.defineProperty(t,n,r)}else t[n]=e[n]
t.F=e.prototype}function p(){this.m=!1,this.i=null,this.g=void 0,this.f=1,this.j=this.l=0,this.v=this.h=null}function d(t){if(t.m)throw new TypeError("Generator is already running")
t.m=!0}function v(t,e){t.h={ia:e,U:!0},t.f=t.l||t.j}function g(t,e,n){return t.f=n,{value:e}}function y(t){this.f=new p,this.g=t}function m(t,e,n,r){try{var i=e.call(t.f.i,n)
if(!(i instanceof Object))throw new TypeError("Iterator result "+i+" is not an object")
if(!i.done)return t.f.m=!1,i
var o=i.value}catch(a){return t.f.i=null,v(t.f,a),w(t)}return t.f.i=null,r.call(t.f,o),w(t)}function w(t){for(;t.f.f;)try{var e=t.g(t.f)
if(e)return t.f.m=!1,{value:e.value,done:!1}}catch(n){t.f.g=void 0,v(t.f,n)}if(t.f.m=!1,t.f.h){if(e=t.f.h,t.f.h=null,e.U)throw e.ia
return{value:e.return,done:!0}}return{value:void 0,done:!0}}function b(t){this.next=function(e){return d(t.f),t.f.i?e=m(t,t.f.i.next,e,t.f.s):(t.f.s(e),e=w(t)),e},this.throw=function(e){return d(t.f),t.f.i?e=m(t,t.f.i.throw,e,t.f.s):(v(t.f,e),e=w(t)),e},this.return=function(e){return function(t,e){d(t.f)
var n=t.f.i
return n?m(t,"return"in n?n.return:function(t){return{value:t,done:!0}},e,t.f.return):(t.f.return(e),w(t))}(t,e)},this[Symbol.iterator]=function(){return this}}function E(t,e){var n=new b(new y(e))
return l&&t.prototype&&l(n,t.prototype),n}function _(t,e){return Object.prototype.hasOwnProperty.call(t,e)}p.prototype.s=function(t){this.g=t},p.prototype.return=function(t){this.h={return:t},this.f=this.j},p.prototype.B=function(t){this.f=t},i("Reflect.setPrototypeOf",(function(t){return t||(l?function(t,e){try{return l(t,e),!0}catch(n){return!1}}:null)})),i("Object.setPrototypeOf",(function(t){return t||l}))
var I="function"==typeof Object.assign?Object.assign:function(t,e){for(var n=1;n<arguments.length;n++){var r=arguments[n]
if(r)for(var i in r)_(r,i)&&(t[i]=r[i])}return t}
function S(t,e,n){if(null==t)throw new TypeError("The 'this' value for String.prototype."+n+" must not be null or undefined")
if(e instanceof RegExp)throw new TypeError("First argument to String.prototype."+n+" must not be a regular expression")
return t+""}function T(t,e){t instanceof String&&(t+="")
var n=0,r=!1,i={next:function(){if(!r&&n<t.length){var i=n++
return{value:e(i,t[i]),done:!1}}return r=!0,{done:!0,value:void 0}}}
return i[Symbol.iterator]=function(){return i},i}i("Object.assign",(function(t){return t||I})),i("Promise",(function(t){function e(t){this.f=0,this.h=void 0,this.g=[],this.m=!1
var e=this.i()
try{t(e.resolve,e.reject)}catch(n){e.reject(n)}}function n(){this.f=null}function i(t){return t instanceof e?t:new e((function(e){e(t)}))}if(t)return t
n.prototype.g=function(t){if(null==this.f){this.f=[]
var e=this
this.h((function(){e.j()}))}this.f.push(t)}
var o=r.setTimeout
n.prototype.h=function(t){o(t,0)},n.prototype.j=function(){for(;this.f&&this.f.length;){var t=this.f
this.f=[]
for(var e=0;e<t.length;++e){var n=t[e]
t[e]=null
try{n()}catch(r){this.i(r)}}}this.f=null},n.prototype.i=function(t){this.h((function(){throw t}))},e.prototype.i=function(){function t(t){return function(r){n||(n=!0,t.call(e,r))}}var e=this,n=!1
return{resolve:t(this.da),reject:t(this.j)}},e.prototype.da=function(t){if(t===this)this.j(new TypeError("A Promise cannot resolve to itself"))
else if(t instanceof e)this.fa(t)
else{t:switch(typeof t){case"object":var n=null!=t
break t
case"function":n=!0
break t
default:n=!1}n?this.sa(t):this.l(t)}},e.prototype.sa=function(t){var e=void 0
try{e=t.then}catch(n){return void this.j(n)}"function"==typeof e?this.ga(e,t):this.l(t)},e.prototype.j=function(t){this.s(2,t)},e.prototype.l=function(t){this.s(1,t)},e.prototype.s=function(t,e){if(0!=this.f)throw Error("Cannot settle("+t+", "+e+"): Promise already settled in state"+this.f)
this.f=t,this.h=e,2===this.f&&this.ea(),this.v()},e.prototype.ea=function(){var t=this
o((function(){if(t.G()){var e=r.console
void 0!==e&&e.error(t.h)}}),1)},e.prototype.G=function(){if(this.m)return!1
var t=r.CustomEvent,e=r.Event,n=r.dispatchEvent
return void 0===n||("function"==typeof t?t=new t("unhandledrejection",{cancelable:!0}):"function"==typeof e?t=new e("unhandledrejection",{cancelable:!0}):(t=r.document.createEvent("CustomEvent")).initCustomEvent("unhandledrejection",!1,!0,t),t.promise=this,t.reason=this.h,n(t))},e.prototype.v=function(){if(null!=this.g){for(var t=0;t<this.g.length;++t)s.g(this.g[t])
this.g=null}}
var s=new n
return e.prototype.fa=function(t){var e=this.i()
t.H(e.resolve,e.reject)},e.prototype.ga=function(t,e){var n=this.i()
try{t.call(e,n.resolve,n.reject)}catch(r){n.reject(r)}},e.prototype.then=function(t,n){function r(t,e){return"function"==typeof t?function(e){try{i(t(e))}catch(n){o(n)}}:e}var i,o,a=new e((function(t,e){i=t,o=e}))
return this.H(r(t,i),r(n,o)),a},e.prototype.catch=function(t){return this.then(void 0,t)},e.prototype.H=function(t,e){function n(){switch(r.f){case 1:t(r.h)
break
case 2:e(r.h)
break
default:throw Error("Unexpected state: "+r.f)}}var r=this
null==this.g?s.g(n):this.g.push(n),this.m=!0},e.resolve=i,e.reject=function(t){return new e((function(e,n){n(t)}))},e.race=function(t){return new e((function(e,n){for(var r=a(t),o=r.next();!o.done;o=r.next())i(o.value).H(e,n)}))},e.all=function(t){var n=a(t),r=n.next()
return r.done?i([]):new e((function(t,e){function o(e){return function(n){a[e]=n,0==--s&&t(a)}}var a=[],s=0
do{a.push(void 0),s++,i(r.value).H(o(a.length-1),e),r=n.next()}while(!r.done)}))},e})),i("String.prototype.endsWith",(function(t){return t||function(t,e){var n=S(this,t,"endsWith")
t+="",void 0===e&&(e=n.length)
for(var r=Math.max(0,Math.min(0|e,n.length)),i=t.length;0<i&&0<r;)if(n[--r]!=t[--i])return!1
return 0>=i}})),i("String.prototype.startsWith",(function(t){return t||function(t,e){var n=S(this,t,"startsWith")
t+=""
for(var r=n.length,i=t.length,o=Math.max(0,Math.min(0|e,n.length)),a=0;a<i&&o<r;)if(n[o++]!=t[a++])return!1
return a>=i}})),i("Array.prototype.keys",(function(t){return t||function(){return T(this,(function(t){return t}))}})),i("Array.prototype.values",(function(t){return t||function(){return T(this,(function(t,e){return e}))}})),i("Object.is",(function(t){return t||function(t,e){return t===e?0!==t||1/t==1/e:t!=t&&e!=e}})),i("Array.prototype.includes",(function(t){return t||function(t,e){var n=this
n instanceof String&&(n=String(n))
var r=n.length,i=e||0
for(0>i&&(i=Math.max(i+r,0));i<r;i++){var o=n[i]
if(o===t||Object.is(o,t))return!0}return!1}})),i("String.prototype.includes",(function(t){return t||function(t,e){return-1!==S(this,t,"includes").indexOf(t,e||0)}})),i("Array.prototype.entries",(function(t){return t||function(){return T(this,(function(t,e){return[t,e]}))}})),i("WeakMap",(function(t){function e(t){if(this.f=(c+=Math.random()+1).toString(),t){t=a(t)
for(var e;!(e=t.next()).done;)e=e.value,this.set(e[0],e[1])}}function r(){}function i(t){var e=typeof t
return"object"===e&&null!==t||"function"===e}function o(t){if(!_(t,u)){var e=new r
n(t,u,{value:e})}}function s(t){var e=Object[t]
e&&(Object[t]=function(t){return t instanceof r?t:(Object.isExtensible(t)&&o(t),e(t))})}if(function(){if(!t||!Object.seal)return!1
try{var e=Object.seal({}),n=Object.seal({}),r=new t([[e,2],[n,3]])
return 2==r.get(e)&&3==r.get(n)&&(r.delete(e),r.set(n,4),!r.has(e)&&4==r.get(n))}catch(i){return!1}}())return t
var u="$jscomp_hidden_"+Math.random()
s("freeze"),s("preventExtensions"),s("seal")
var c=0
return e.prototype.set=function(t,e){if(!i(t))throw Error("Invalid WeakMap key")
if(o(t),!_(t,u))throw Error("WeakMap key fail: "+t)
return t[u][this.f]=e,this},e.prototype.get=function(t){return i(t)&&_(t,u)?t[u][this.f]:void 0},e.prototype.has=function(t){return i(t)&&_(t,u)&&_(t[u],this.f)},e.prototype.delete=function(t){return!!(i(t)&&_(t,u)&&_(t[u],this.f))&&delete t[u][this.f]},e})),i("Map",(function(t){function e(){var t={}
return t.previous=t.next=t.head=t}function n(t,e){var n=t.f
return o((function(){if(n){for(;n.head!=t.f;)n=n.previous
for(;n.next!=n.head;)return n=n.next,{done:!1,value:e(n)}
n=null}return{done:!0,value:void 0}}))}function r(t,e){var n=e&&typeof e
"object"==n||"function"==n?s.has(e)?n=s.get(e):(n=""+ ++u,s.set(e,n)):n="p_"+e
var r=t.g[n]
if(r&&_(t.g,n))for(var i=0;i<r.length;i++){var o=r[i]
if(e!=e&&o.key!=o.key||e===o.key)return{id:n,list:r,index:i,o:o}}return{id:n,list:r,index:-1,o:void 0}}function i(t){if(this.g={},this.f=e(),this.size=0,t){t=a(t)
for(var n;!(n=t.next()).done;)n=n.value,this.set(n[0],n[1])}}if(function(){if(!t||"function"!=typeof t||!t.prototype.entries||"function"!=typeof Object.seal)return!1
try{var e=Object.seal({x:4}),n=new t(a([[e,"s"]]))
if("s"!=n.get(e)||1!=n.size||n.get({x:4})||n.set({x:4},"t")!=n||2!=n.size)return!1
var r=n.entries(),i=r.next()
return!i.done&&i.value[0]==e&&"s"==i.value[1]&&!((i=r.next()).done||4!=i.value[0].x||"t"!=i.value[1]||!r.next().done)}catch(o){return!1}}())return t
var s=new WeakMap
i.prototype.set=function(t,e){var n=r(this,t=0===t?0:t)
return n.list||(n.list=this.g[n.id]=[]),n.o?n.o.value=e:(n.o={next:this.f,previous:this.f.previous,head:this.f,key:t,value:e},n.list.push(n.o),this.f.previous.next=n.o,this.f.previous=n.o,this.size++),this},i.prototype.delete=function(t){return!(!(t=r(this,t)).o||!t.list)&&(t.list.splice(t.index,1),t.list.length||delete this.g[t.id],t.o.previous.next=t.o.next,t.o.next.previous=t.o.previous,t.o.head=null,this.size--,!0)},i.prototype.clear=function(){this.g={},this.f=this.f.previous=e(),this.size=0},i.prototype.has=function(t){return!!r(this,t).o},i.prototype.get=function(t){return(t=r(this,t).o)&&t.value},i.prototype.entries=function(){return n(this,(function(t){return[t.key,t.value]}))},i.prototype.keys=function(){return n(this,(function(t){return t.key}))},i.prototype.values=function(){return n(this,(function(t){return t.value}))},i.prototype.forEach=function(t,e){for(var n,r=this.entries();!(n=r.next()).done;)n=n.value,t.call(e,n[1],n[0],this)},i.prototype[Symbol.iterator]=i.prototype.entries
var u=0
return i})),i("Object.entries",(function(t){return t||function(t){var e,n=[]
for(e in t)_(t,e)&&n.push([e,t[e]])
return n}})),i("Set",(function(t){function e(t){if(this.f=new Map,t){t=a(t)
for(var e;!(e=t.next()).done;)this.add(e.value)}this.size=this.f.size}return function(){if(!t||"function"!=typeof t||!t.prototype.entries||"function"!=typeof Object.seal)return!1
try{var e=Object.seal({x:4}),n=new t(a([e]))
if(!n.has(e)||1!=n.size||n.add(e)!=n||1!=n.size||n.add({x:4})!=n||2!=n.size)return!1
var r=n.entries(),i=r.next()
return!i.done&&i.value[0]==e&&i.value[1]==e&&(!(i=r.next()).done&&i.value[0]!=e&&4==i.value[0].x&&i.value[1]==i.value[0]&&r.next().done)}catch(o){return!1}}()?t:(e.prototype.add=function(t){return t=0===t?0:t,this.f.set(t,t),this.size=this.f.size,this},e.prototype.delete=function(t){return t=this.f.delete(t),this.size=this.f.size,t},e.prototype.clear=function(){this.f.clear(),this.size=0},e.prototype.has=function(t){return this.f.has(t)},e.prototype.entries=function(){return this.f.entries()},e.prototype.values=function(){return this.f.values()},e.prototype.keys=e.prototype.values,e.prototype[Symbol.iterator]=e.prototype.values,e.prototype.forEach=function(t,e){var n=this
this.f.forEach((function(r){return t.call(e,r,r,n)}))},e)}))
var N=this||self
function x(t,e){for(var n=t.split("."),r=e||N,i=0;i<n.length;i++)if(null==(r=r[n[i]]))return null
return r}function O(){}function A(t){var e=typeof t
return"array"==(e="object"!=e?e:t?Array.isArray(t)?"array":e:"null")||"object"==e&&"number"==typeof t.length}function k(t){var e=typeof t
return"object"==e&&null!=t||"function"==e}function R(t){return Object.prototype.hasOwnProperty.call(t,j)&&t[j]||(t[j]=++C)}var j="closure_uid_"+(1e9*Math.random()>>>0),C=0
function P(t,e,n){return t.call.apply(t.bind,arguments)}function D(t,e,n){if(!t)throw Error()
if(2<arguments.length){var r=Array.prototype.slice.call(arguments,2)
return function(){var n=Array.prototype.slice.call(arguments)
return Array.prototype.unshift.apply(n,r),t.apply(e,n)}}return function(){return t.apply(e,arguments)}}function L(t,e,n){return(L=Function.prototype.bind&&-1!=Function.prototype.bind.toString().indexOf("native code")?P:D).apply(null,arguments)}function M(t,e){var n,r=t.split("."),i=N
r[0]in i||void 0===i.execScript||i.execScript("var "+r[0])
for(;r.length&&(n=r.shift());)r.length||void 0===e?i=i[n]&&i[n]!==Object.prototype[n]?i[n]:i[n]={}:i[n]=e}function U(t,e){function n(){}n.prototype=e.prototype,t.F=e.prototype,t.prototype=new n,t.prototype.constructor=t,t.Ga=function(t,n,r){for(var i=Array(arguments.length-2),o=2;o<arguments.length;o++)i[o-2]=arguments[o]
return e.prototype[n].apply(t,i)}}function B(t){return t}function q(t,e){var n=void 0
return new(n||(n=Promise))((function(r,i){function o(t){try{s(e.next(t))}catch(n){i(n)}}function a(t){try{s(e.throw(t))}catch(n){i(n)}}function s(t){t.done?r(t.value):new n((function(e){e(t.value)})).then(o,a)}s((e=e.apply(t,void 0)).next())}))}function V(t){if(Error.captureStackTrace)Error.captureStackTrace(this,V)
else{var e=Error().stack
e&&(this.stack=e)}t&&(this.message=String(t))}U(V,Error),V.prototype.name="CustomError"
var X=Array.prototype.indexOf?function(t,e){return Array.prototype.indexOf.call(t,e,void 0)}:function(t,e){if("string"==typeof t)return"string"!=typeof e||1!=e.length?-1:t.indexOf(e,0)
for(var n=0;n<t.length;n++)if(n in t&&t[n]===e)return n
return-1},Y=Array.prototype.forEach?function(t,e,n){Array.prototype.forEach.call(t,e,n)}:function(t,e,n){for(var r=t.length,i="string"==typeof t?t.split(""):t,o=0;o<r;o++)o in i&&e.call(n,i[o],o,t)},G=Array.prototype.reduce?function(t,e,n){return Array.prototype.reduce.call(t,e,n)}:function(t,e,n){var r=n
return Y(t,(function(n,i){r=e.call(void 0,r,n,i,t)})),r}
function K(t){var e=t.length
if(0<e){for(var n=Array(e),r=0;r<e;r++)n[r]=t[r]
return n}return[]}function F(t,e){for(var n=1;n<arguments.length;n++){var r=arguments[n]
if(A(r)){var i=t.length||0,o=r.length||0
t.length=i+o
for(var a=0;a<o;a++)t[i+a]=r[a]}else t.push(r)}}function W(t){var e,n=!1
return function(){return n||(e=t(),n=!0),e}}function z(t,e){for(var n in t)if(!(n in e)||t[n]!==e[n])return!1
for(var r in e)if(!(r in t))return!1
return!0}function H(t){if(!t||"object"!=typeof t)return t
if("function"==typeof t.clone)return t.clone()
var e,n=Array.isArray(t)?[]:"function"!=typeof ArrayBuffer||"function"!=typeof ArrayBuffer.isView||!ArrayBuffer.isView(t)||t instanceof DataView?{}:new t.constructor(t.length)
for(e in t)n[e]=H(t[e])
return n}var J,Q="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ")
var Z,$=String.prototype.trim?function(t){return t.trim()}:function(t){return/^[\s\xa0]*([\s\S]*?)[\s\xa0]*$/.exec(t)[1]},tt=/&/g,et=/</g,nt=/>/g,rt=/"/g,it=/'/g,ot=/\x00/g,at=/[\x00&<>"']/
t:{var st=N.navigator
if(st){var ut=st.userAgent
if(ut){Z=ut
break t}}Z=""}function ct(t){return-1!=Z.indexOf(t)}function ft(){}var lt,ht,pt=ct("Opera"),dt=ct("Trident")||ct("MSIE"),vt=ct("Edge"),gt=ct("Gecko")&&!(-1!=Z.toLowerCase().indexOf("webkit")&&!ct("Edge"))&&!(ct("Trident")||ct("MSIE"))&&!ct("Edge"),yt=-1!=Z.toLowerCase().indexOf("webkit")&&!ct("Edge")
function mt(){var t=N.document
return t?t.documentMode:void 0}t:{var wt="",bt=(ht=Z,gt?/rv:([^\);]+)(\)|;)/.exec(ht):vt?/Edge\/([\d\.]+)/.exec(ht):dt?/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(ht):yt?/WebKit\/(\S+)/.exec(ht):pt?/(?:Version)[ \/]?(\S+)/.exec(ht):void 0)
if(bt&&(wt=bt?bt[1]:""),dt){var Et=mt()
if(null!=Et&&Et>parseFloat(wt)){lt=String(Et)
break t}}lt=wt}var _t,It=lt
if(N.document&&dt){var St=mt()
_t=St||(parseInt(It,10)||void 0)}else _t=void 0
var Tt=_t,Nt=ct("iPhone")&&!ct("iPod")&&!ct("iPad")||ct("iPod"),xt=ct("iPad"),Ot={},At=null,kt=window
function Rt(t){var e=x("window.location.href")
if(null==t&&(t='Unknown Error of type "null/undefined"'),"string"==typeof t)return{message:t,name:"Unknown error",lineNumber:"Not available",fileName:e,stack:"Not available"}
var n=!1
try{var r=t.lineNumber||t.line||"Not available"}catch(a){r="Not available",n=!0}try{var i=t.fileName||t.filename||t.sourceURL||N.$googDebugFname||e}catch(a){i="Not available",n=!0}if(e=jt(t),!(!n&&t.lineNumber&&t.fileName&&t.stack&&t.message&&t.name)){if(null==(n=t.message)){if(t.constructor&&t.constructor instanceof Function){if(t.constructor.name)n=t.constructor.name
else if(n=t.constructor,Pt[n])n=Pt[n]
else{if(n=String(n),!Pt[n]){var o=/function\s+([^\(]+)/m.exec(n)
Pt[n]=o?o[1]:"[Anonymous]"}n=Pt[n]}n='Unknown Error of type "'+n+'"'}else n="Unknown Error of unknown type"
"function"==typeof t.toString&&Object.prototype.toString!==t.toString&&(n+=": "+t.toString())}return{message:n,name:t.name||"UnknownError",lineNumber:r,fileName:i,stack:e||"Not available"}}return t.stack=e,t}function jt(t,e){e||(e={}),e[Ct(t)]=!0
var n=t.stack||"",r=t.Ha
return r&&!e[Ct(r)]&&(n+="\nCaused by: ",r.stack&&0==r.stack.indexOf(r.toString())||(n+="string"==typeof r?r:r.message+"\n"),n+=jt(r,e)),n}function Ct(t){var e=""
return"function"==typeof t.toString&&(e=""+t),e+t.stack}var Pt={}
function Dt(t){this.f=t||{cookie:""}}(t=Dt.prototype).isEnabled=function(){return navigator.cookieEnabled},t.set=function(t,e,n){var r=!1
if("object"==typeof n){var i=n.Oa
r=n.secure||!1
var o=n.domain||void 0,a=n.path||void 0,s=n.V}if(/[;=\s]/.test(t))throw Error('Invalid cookie name "'+t+'"')
if(/[;\r\n]/.test(e))throw Error('Invalid cookie value "'+e+'"')
void 0===s&&(s=-1),this.f.cookie=t+"="+e+(o?";domain="+o:"")+(a?";path="+a:"")+(0>s?"":0==s?";expires="+new Date(1970,1,1).toUTCString():";expires="+new Date(Date.now()+1e3*s).toUTCString())+(r?";secure":"")+(null!=i?";samesite="+i:"")},t.get=function(t,e){for(var n,r=t+"=",i=(this.f.cookie||"").split(";"),o=0;o<i.length;o++){if(0==(n=$(i[o])).lastIndexOf(r,0))return n.substr(r.length)
if(n==t)return""}return e},t.remove=function(t,e,n){var r=void 0!==this.get(t)
return this.set(t,"",{V:0,path:e,domain:n}),r},t.isEmpty=function(){return!this.f.cookie},t.clear=function(){for(var t,e,n=(this.f.cookie||"").split(";"),r=[],i=[],o=0;o<n.length;o++)-1==(t=(e=$(n[o])).indexOf("="))?(r.push(""),i.push(e)):(r.push(e.substring(0,t)),i.push(e.substring(t+1)))
for(n=r.length-1;0<=n;n--)this.remove(r[n])}
var Lt=new Dt("undefined"==typeof document?null:document)
function Mt(t,e){this.width=t,this.height=e}function Ut(){var t=document,e="IFRAME"
return"application/xhtml+xml"===t.contentType&&(e=e.toLowerCase()),t.createElement(e)}(t=Mt.prototype).clone=function(){return new Mt(this.width,this.height)},t.aspectRatio=function(){return this.width/this.height},t.isEmpty=function(){return!(this.width*this.height)},t.ceil=function(){return this.width=Math.ceil(this.width),this.height=Math.ceil(this.height),this},t.floor=function(){return this.width=Math.floor(this.width),this.height=Math.floor(this.height),this},t.round=function(){return this.width=Math.round(this.width),this.height=Math.round(this.height),this}
var Bt=/^(?:([^:/?#.]+):)?(?:\/\/(?:([^\\/?#]*)@)?([^\\/?#]*?)(?::([0-9]+))?(?=[\\/?#]|$))?([^?#]+)?(?:\?([^#]*))?(?:#([\s\S]*))?$/
function qt(t){return t?decodeURI(t):t}function Vt(t){return qt(t.match(Bt)[3]||null)}function Xt(t){var e=t.match(Bt)
t=e[1]
var n=e[2],r=e[3]
e=e[4]
var i=""
return t&&(i+=t+":"),r&&(i+="//",n&&(i+=n+"@"),i+=r,e&&(i+=":"+e)),i}function Yt(t,e,n){if(Array.isArray(e))for(var r=0;r<e.length;r++)Yt(t,String(e[r]),n)
else null!=e&&n.push(t+(""===e?"":"="+encodeURIComponent(String(e))))}function Gt(t){var e,n=[]
for(e in t)Yt(e,t[e],n)
return n.join("&")}var Kt=/#|$/
function Ft(){var t=[]
return function(t){var e=Wt
if(e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.call(void 0,e[n],n,e)}((function(e){t.push(e)})),t}var Wt={ta:"allow-forms",ua:"allow-modals",va:"allow-orientation-lock",wa:"allow-pointer-lock",xa:"allow-popups",ya:"allow-popups-to-escape-sandbox",za:"allow-presentation",Aa:"allow-same-origin",Ba:"allow-scripts",Ca:"allow-top-navigation",Da:"allow-top-navigation-by-user-activation"},zt=W((function(){return Ft()}))
function Ht(){this.h=this.h,this.i=this.i}Ht.prototype.h=!1,Ht.prototype.dispose=function(){this.h||(this.h=!0,this.O())},Ht.prototype.O=function(){if(this.i)for(;this.i.length;)this.i.shift()()}
var Jt={}
function Qt(t,e){if(e!==Jt)throw Error("Bad secret")
this.f=t}h(Qt,(function(){})),Qt.prototype.toString=function(){return this.f},new Qt("about:blank",Jt),new Qt("about:invalid#zTSz",Jt)
var Zt,$t=(new Date).getTime()
function te(t){if(!t)return""
0==(t=(t=t.split("#")[0].split("?")[0]).toLowerCase()).indexOf("//")&&(t=window.location.protocol+t),/^[\w\-]*:\/\//.test(t)||(t=window.location.href)
var e=t.substring(t.indexOf("://")+3),n=e.indexOf("/")
if(-1!=n&&(e=e.substring(0,n)),"http"!==(t=t.substring(0,t.indexOf("://")))&&"https"!==t&&"chrome-extension"!==t&&"moz-extension"!==t&&"file"!==t&&"android-app"!==t&&"chrome-search"!==t&&"chrome-untrusted"!==t&&"chrome"!==t&&"app"!==t&&"devtools"!==t)throw Error("Invalid URI scheme in origin: "+t)
n=""
var r=e.indexOf(":")
if(-1!=r){var i=e.substring(r+1)
e=e.substring(0,r),("http"===t&&"80"!==i||"https"===t&&"443"!==i)&&(n=":"+i)}return t+"://"+e+n}function ee(t,e,n){var r=[],i=[]
if(1==(Array.isArray(n)?2:1))return i=[e,t],Y(r,(function(t){i.push(t)})),ne(i.join(" "))
var o=[],a=[]
return Y(n,(function(t){a.push(t.key),o.push(t.value)})),n=Math.floor((new Date).getTime()/1e3),i=0==o.length?[n,e,t]:[o.join(":"),n,e,t],Y(r,(function(t){i.push(t)})),t=[n,t=ne(i.join(" "))],0==a.length||t.push(a.join("")),t.join("_")}function ne(t){var e=function(){function t(){i[0]=1732584193,i[1]=4023233417,i[2]=2562383102,i[3]=271733878,i[4]=3285377520,f=c=0}function e(t){for(var e=a,n=0;64>n;n+=4)e[n/4]=t[n]<<24|t[n+1]<<16|t[n+2]<<8|t[n+3]
for(n=16;80>n;n++)t=e[n-3]^e[n-8]^e[n-14]^e[n-16],e[n]=4294967295&(t<<1|t>>>31)
t=i[0]
var r=i[1],o=i[2],s=i[3],u=i[4]
for(n=0;80>n;n++){if(40>n)if(20>n)var c=s^r&(o^s),f=1518500249
else c=r^o^s,f=1859775393
else 60>n?(c=r&o|s&(r|o),f=2400959708):(c=r^o^s,f=3395469782)
c=(4294967295&(t<<5|t>>>27))+c+u+f+e[n]&4294967295,u=s,s=o,o=4294967295&(r<<30|r>>>2),r=t,t=c}i[0]=i[0]+t&4294967295,i[1]=i[1]+r&4294967295,i[2]=i[2]+o&4294967295,i[3]=i[3]+s&4294967295,i[4]=i[4]+u&4294967295}function n(t,n){if("string"==typeof t){for(var r=[],i=0,a=(t=unescape(encodeURIComponent(t))).length;i<a;++i)r.push(t.charCodeAt(i))
t=r}if(n||(n=t.length),r=0,0==c)for(;r+64<n;)e(t.slice(r,r+64)),r+=64,f+=64
for(;r<n;)if(o[c++]=t[r++],f++,64==c)for(c=0,e(o);r+64<n;)e(t.slice(r,r+64)),r+=64,f+=64}function r(){var t=[],r=8*f
n(s,56>c?56-c:64-(c-56))
for(var a=63;56<=a;a--)o[a]=255&r,r>>>=8
for(e(o),a=r=0;5>a;a++)for(var u=24;0<=u;u-=8)t[r++]=i[a]>>u&255
return t}for(var i=[],o=[],a=[],s=[128],u=1;64>u;++u)s[u]=0
var c,f
return t(),{reset:t,update:n,digest:r,ha:function(){for(var t=r(),e="",n=0;n<t.length;n++)e+="0123456789ABCDEF".charAt(Math.floor(t[n]/16))+"0123456789ABCDEF".charAt(t[n]%16)
return e}}}()
return e.update(t),e.ha().toLowerCase()}function re(t){var e,n=te(String(N.location.href))
if((e=N.__SAPISID||N.__APISID||N.__OVERRIDE_SID)?e=!0:e=!!(e=(e=new Dt(document)).get("SAPISID")||e.get("APISID")||e.get("__Secure-3PAPISID")||e.get("SID")),e&&((e=(n=0==n.indexOf("https:")||0==n.indexOf("chrome-extension:")||0==n.indexOf("moz-extension:"))?N.__SAPISID:N.__APISID)||(e=(e=new Dt(document)).get(n?"SAPISID":"APISID")||e.get("__Secure-3PAPISID")),e)){n=n?"SAPISIDHASH":"APISIDHASH"
var r=String(N.location.href)
return r&&e&&n?[n,ee(te(r),e,t||null)].join(" "):null}return null}function ie(){this.g=[],this.f=-1}function oe(t,e){this.h=t,this.i=e,this.g=0,this.f=null}function ae(t,e){t.i(e),100>t.g&&(t.g++,e.next=t.f,t.f=e)}function se(t){N.setTimeout((function(){throw t}),0)}function ue(){this.g=this.f=null}ie.prototype.set=function(t,e){e=void 0===e||e,0<=t&&52>t&&0==t%1&&this.g[t]!=e&&(this.g[t]=e,this.f=-1)},ie.prototype.get=function(t){return!!this.g[t]},oe.prototype.get=function(){if(0<this.g){this.g--
var t=this.f
this.f=t.next,t.next=null}else t=this.h()
return t}
var ce,fe=new oe((function(){return new le}),(function(t){t.reset()}))
function le(){this.next=this.scope=this.f=null}function he(t,e){ce||function(){if(N.Promise&&N.Promise.resolve){var t=N.Promise.resolve(void 0)
ce=function(){t.then(ve)}}else ce=function(){var t=ve
"function"!=typeof N.setImmediate||N.Window&&N.Window.prototype&&!ct("Edge")&&N.Window.prototype.setImmediate==N.setImmediate?(Zt||(Zt=function(){var t=N.MessageChannel
if(void 0===t&&"undefined"!=typeof window&&window.postMessage&&window.addEventListener&&!ct("Presto")&&(t=function(){var t=Ut()
t.style.display="none",document.documentElement.appendChild(t)
var e=t.contentWindow;(t=e.document).open(),t.close()
var n="callImmediate"+Math.random(),r="file:"==e.location.protocol?"*":e.location.protocol+"//"+e.location.host
t=L((function(t){"*"!=r&&t.origin!=r||t.data!=n||this.port1.onmessage()}),this),e.addEventListener("message",t,!1),this.port1={},this.port2={postMessage:function(){e.postMessage(n,r)}}}),void 0!==t&&!ct("Trident")&&!ct("MSIE")){var e=new t,n={},r=n
return e.port1.onmessage=function(){if(void 0!==n.next){var t=(n=n.next).T
n.T=null,t()}},function(t){r.next={T:t},r=r.next,e.port2.postMessage(0)}}return function(t){N.setTimeout(t,0)}}()),Zt(t)):N.setImmediate(t)}}(),pe||(ce(),pe=!0),de.add(t,e)}ue.prototype.add=function(t,e){var n=fe.get()
n.set(t,e),this.g?this.g.next=n:this.f=n,this.g=n},ue.prototype.remove=function(){var t=null
return this.f&&(t=this.f,this.f=this.f.next,this.f||(this.g=null),t.next=null),t},le.prototype.set=function(t,e){this.f=t,this.scope=e,this.next=null},le.prototype.reset=function(){this.next=this.scope=this.f=null}
var pe=!1,de=new ue
function ve(){for(var t;t=de.remove();){try{t.f.call(t.scope)}catch(e){se(e)}ae(fe,t)}pe=!1}function ge(){this.g=64,this.f=[],this.l=[],this.m=[],this.i=[],this.i[0]=128
for(var t=1;t<this.g;++t)this.i[t]=0
this.j=this.h=0,this.reset()}function ye(t,e,n){n||(n=0)
var r=t.m
if("string"==typeof e)for(var i=0;16>i;i++)r[i]=e.charCodeAt(n)<<24|e.charCodeAt(n+1)<<16|e.charCodeAt(n+2)<<8|e.charCodeAt(n+3),n+=4
else for(i=0;16>i;i++)r[i]=e[n]<<24|e[n+1]<<16|e[n+2]<<8|e[n+3],n+=4
for(i=16;80>i;i++){var o=r[i-3]^r[i-8]^r[i-14]^r[i-16]
r[i]=4294967295&(o<<1|o>>>31)}e=t.f[0],n=t.f[1]
var a=t.f[2],s=t.f[3],u=t.f[4]
for(i=0;80>i;i++){if(40>i)if(20>i){o=s^n&(a^s)
var c=1518500249}else o=n^a^s,c=1859775393
else 60>i?(o=n&a|s&(n|a),c=2400959708):(o=n^a^s,c=3395469782)
o=(e<<5|e>>>27)+o+u+c+r[i]&4294967295,u=s,s=a,a=4294967295&(n<<30|n>>>2),n=e,e=o}t.f[0]=t.f[0]+e&4294967295,t.f[1]=t.f[1]+n&4294967295,t.f[2]=t.f[2]+a&4294967295,t.f[3]=t.f[3]+s&4294967295,t.f[4]=t.f[4]+u&4294967295}U(ge,(function(){this.g=-1})),ge.prototype.reset=function(){this.f[0]=1732584193,this.f[1]=4023233417,this.f[2]=2562383102,this.f[3]=271733878,this.f[4]=3285377520,this.j=this.h=0},ge.prototype.update=function(t,e){if(null!=t){void 0===e&&(e=t.length)
for(var n=e-this.g,r=0,i=this.l,o=this.h;r<e;){if(0==o)for(;r<=n;)ye(this,t,r),r+=this.g
if("string"==typeof t){for(;r<e;)if(i[o]=t.charCodeAt(r),++r,++o==this.g){ye(this,i),o=0
break}}else for(;r<e;)if(i[o]=t[r],++r,++o==this.g){ye(this,i),o=0
break}}this.h=o,this.j+=e}},ge.prototype.digest=function(){var t=[],e=8*this.j
56>this.h?this.update(this.i,56-this.h):this.update(this.i,this.g-(this.h-56))
for(var n=this.g-1;56<=n;n--)this.l[n]=255&e,e/=256
for(ye(this,this.l),n=e=0;5>n;n++)for(var r=24;0<=r;r-=8)t[e]=this.f[n]>>r&255,++e
return t}
var me="StopIteration"in N?N.StopIteration:{message:"StopIteration",stack:""}
function we(){}function be(t){if(t instanceof we)return t
if("function"==typeof t.A)return t.A(!1)
if(A(t)){var e=0,n=new we
return n.next=function(){for(;;){if(e>=t.length)throw me
if(e in t)return t[e++]
e++}},n}throw Error("Not implemented")}function Ee(t){if(A(t))return K(t)
t=be(t)
var e=[]
return function(t,e){if(A(t))try{Y(t,e,void 0)}catch(n){if(n!==me)throw n}else{t=be(t)
try{for(;;)e.call(void 0,t.next(),void 0,t)}catch(n){if(n!==me)throw n}}}(t,(function(t){e.push(t)})),e}function _e(t,e){this.h={},this.f=[],this.i=this.g=0
var n=arguments.length
if(1<n){if(n%2)throw Error("Uneven number of arguments")
for(var r=0;r<n;r+=2)this.set(arguments[r],arguments[r+1])}else if(t)if(t instanceof _e)for(n=Ie(t),r=0;r<n.length;r++)this.set(n[r],t.get(n[r]))
else for(r in t)this.set(r,t[r])}function Ie(t){return Te(t),t.f.concat()}function Se(t,e){return t===e}function Te(t){if(t.g!=t.f.length){for(var e=0,n=0;e<t.f.length;){var r=t.f[e]
Object.prototype.hasOwnProperty.call(t.h,r)&&(t.f[n++]=r),e++}t.f.length=n}if(t.g!=t.f.length){var i={}
for(n=e=0;e<t.f.length;)r=t.f[e],Object.prototype.hasOwnProperty.call(i,r)||(t.f[n++]=r,i[r]=1),e++
t.f.length=n}}we.prototype.next=function(){throw me},we.prototype.A=function(){return this},(t=_e.prototype).equals=function(t,e){if(this===t)return!0
if(this.g!=t.g)return!1
var n=e||Se
Te(this)
for(var r,i=0;r=this.f[i];i++)if(!n(this.get(r),t.get(r)))return!1
return!0},t.isEmpty=function(){return 0==this.g},t.clear=function(){this.h={},this.i=this.g=this.f.length=0},t.remove=function(t){return!!Object.prototype.hasOwnProperty.call(this.h,t)&&(delete this.h[t],this.g--,this.i++,this.f.length>2*this.g&&Te(this),!0)},t.get=function(t,e){return Object.prototype.hasOwnProperty.call(this.h,t)?this.h[t]:e},t.set=function(t,e){Object.prototype.hasOwnProperty.call(this.h,t)||(this.g++,this.f.push(t),this.i++),this.h[t]=e},t.forEach=function(t,e){for(var n=Ie(this),r=0;r<n.length;r++){var i=n[r],o=this.get(i)
t.call(e,o,i,this)}},t.clone=function(){return new _e(this)},t.A=function(t){Te(this)
var e=0,n=this.i,r=this,i=new we
return i.next=function(){if(n!=r.i)throw Error("The map has changed since the iterator was created")
if(e>=r.f.length)throw me
var i=r.f[e++]
return t?i:r.h[i]},i}
var Ne=N.JSON.stringify
function xe(t){if(this.f=0,this.m=void 0,this.i=this.g=this.h=null,this.j=this.l=!1,t!=O)try{var e=this
t.call(void 0,(function(t){Me(e,2,t)}),(function(t){Me(e,3,t)}))}catch(n){Me(this,3,n)}}function Oe(){this.next=this.context=this.onRejected=this.g=this.f=null,this.h=!1}Oe.prototype.reset=function(){this.context=this.onRejected=this.g=this.f=null,this.h=!1}
var Ae=new oe((function(){return new Oe}),(function(t){t.reset()}))
function ke(t,e,n){var r=Ae.get()
return r.g=t,r.onRejected=e,r.context=n,r}function Re(t){if(t instanceof xe)return t
var e=new xe(O)
return Me(e,2,t),e}function je(t){return new xe((function(e,n){n(t)}))}function Ce(t,e){return Le(t,null,e,void 0)}function Pe(t,e){if(0==t.f)if(t.h){var n=t.h
if(n.g){for(var r=0,i=null,o=null,a=n.g;a&&(a.h||(r++,a.f==t&&(i=a),!(i&&1<r)));a=a.next)i||(o=a)
i&&(0==n.f&&1==r?Pe(n,e):(o?((r=o).next==n.i&&(n.i=r),r.next=r.next.next):Be(n),qe(n,i,3,e)))}t.h=null}else Me(t,3,e)}function De(t,e){t.g||2!=t.f&&3!=t.f||Ue(t),t.i?t.i.next=e:t.g=e,t.i=e}function Le(t,e,n,r){var i=ke(null,null,null)
return i.f=new xe((function(t,o){i.g=e?function(n){try{var i=e.call(r,n)
t(i)}catch(a){o(a)}}:t,i.onRejected=n?function(e){try{var i=n.call(r,e)
void 0===i&&e instanceof Ye?o(e):t(i)}catch(a){o(a)}}:o})),i.f.h=t,De(t,i),i.f}function Me(t,e,n){if(0==t.f){t===n&&(e=3,n=new TypeError("Promise cannot resolve to itself")),t.f=1
t:{var r=n,i=t.v,o=t.G
if(r instanceof xe){De(r,ke(i||O,o||null,t))
var a=!0}else{if(r)try{var s=!!r.$goog_Thenable}catch(c){s=!1}else s=!1
if(s)r.then(i,o,t),a=!0
else{if(k(r))try{var u=r.then
if("function"==typeof u){(function(t,e,n,r,i){function o(t){s||(s=!0,r.call(i,t))}function a(t){s||(s=!0,n.call(i,t))}var s=!1
try{e.call(t,a,o)}catch(u){o(u)}})(r,u,i,o,t),a=!0
break t}}catch(c){o.call(t,c),a=!0
break t}a=!1}}}a||(t.m=n,t.f=e,t.h=null,Ue(t),3!=e||n instanceof Ye||function(t,e){t.j=!0,he((function(){t.j&&Xe.call(null,e)}))}(t,n))}}function Ue(t){t.l||(t.l=!0,he(t.s,t))}function Be(t){var e=null
return t.g&&(e=t.g,t.g=e.next,e.next=null),t.g||(t.i=null),e}function qe(t,e,n,r){if(3==n&&e.onRejected&&!e.h)for(;t&&t.j;t=t.h)t.j=!1
if(e.f)e.f.h=null,Ve(e,n,r)
else try{e.h?e.g.call(e.context):Ve(e,n,r)}catch(i){Xe.call(null,i)}ae(Ae,e)}function Ve(t,e,n){2==e?t.g.call(t.context,n):t.onRejected&&t.onRejected.call(t.context,n)}xe.prototype.then=function(t,e,n){return Le(this,"function"==typeof t?t:null,"function"==typeof e?e:null,n)},xe.prototype.$goog_Thenable=!0,xe.prototype.cancel=function(t){if(0==this.f){var e=new Ye(t)
he((function(){Pe(this,e)}),this)}},xe.prototype.v=function(t){this.f=0,Me(this,2,t)},xe.prototype.G=function(t){this.f=0,Me(this,3,t)},xe.prototype.s=function(){for(var t;t=Be(this);)qe(this,t,this.f,this.m)
this.l=!1}
var Xe=se
function Ye(t){V.call(this,t)}function Ge(t){Ht.call(this),this.m=1,this.j=[],this.l=0,this.f=[],this.g={},this.s=!!t}function Ke(t,e,n){he((function(){t.apply(e,n)}))}function Fe(t){this.f=t}function We(t){this.f=t}function ze(t){this.data=t}function He(t){return void 0===t||t instanceof ze?t:new ze(t)}function Je(t){this.f=t}function Qe(){}function Ze(t){this.f=t}function $e(){var t=null
try{t=window.localStorage||null}catch(e){}this.f=t}function tn(t,e){if(this.g=t,this.f=null,dt&&!(9<=Number(Tt))){nn||(nn=new _e),this.f=nn.get(t),this.f||(e?this.f=document.getElementById(e):(this.f=document.createElement("userdata"),this.f.addBehavior("#default#userData"),document.body.appendChild(this.f)),nn.set(t,this.f))
try{this.f.load(this.g)}catch(n){this.f=null}}}U(Ye,V),Ye.prototype.name="cancel",U(Ge,Ht),(t=Ge.prototype).subscribe=function(t,e,n){var r=this.g[t]
r||(r=this.g[t]=[])
var i=this.m
return this.f[i]=t,this.f[i+1]=e,this.f[i+2]=n,this.m=i+3,r.push(i),i},t.L=function(t){var e=this.f[t]
if(e){var n=this.g[e]
if(0!=this.l)this.j.push(t),this.f[t+1]=O
else{if(n){var r=X(n,t)
0<=r&&Array.prototype.splice.call(n,r,1)}delete this.f[t],delete this.f[t+1],delete this.f[t+2]}}return!!e},t.J=function(t,e){var n=this.g[t]
if(n){for(var r=Array(arguments.length-1),i=1,o=arguments.length;i<o;i++)r[i-1]=arguments[i]
if(this.s)for(i=0;i<n.length;i++){var a=n[i]
Ke(this.f[a+1],this.f[a+2],r)}else{this.l++
try{for(i=0,o=n.length;i<o;i++)a=n[i],this.f[a+1].apply(this.f[a+2],r)}finally{if(this.l--,0<this.j.length&&0==this.l)for(;n=this.j.pop();)this.L(n)}}return 0!=i}return!1},t.clear=function(t){if(t){var e=this.g[t]
e&&(Y(e,this.L,this),delete this.g[t])}else this.f.length=0,this.g={}},t.O=function(){Ge.F.O.call(this),this.clear(),this.j.length=0},Fe.prototype.set=function(t,e){void 0===e?this.f.remove(t):this.f.set(t,Ne(e))},Fe.prototype.get=function(t){try{var e=this.f.get(t)}catch(n){return}if(null!==e)try{return JSON.parse(e)}catch(n){throw"Storage: Invalid value was encountered"}},Fe.prototype.remove=function(t){this.f.remove(t)},U(We,Fe),We.prototype.set=function(t,e){We.F.set.call(this,t,He(e))},We.prototype.g=function(t){if(void 0===(t=We.F.get.call(this,t))||t instanceof Object)return t
throw"Storage: Invalid value was encountered"},We.prototype.get=function(t){if(t=this.g(t)){if(void 0===(t=t.data))throw"Storage: Invalid value was encountered"}else t=void 0
return t},U(Je,We),Je.prototype.set=function(t,e,n){if(e=He(e)){if(n){if(n<Date.now())return void Je.prototype.remove.call(this,t)
e.expiration=n}e.creation=Date.now()}Je.F.set.call(this,t,e)},Je.prototype.g=function(t){var e=Je.F.g.call(this,t)
if(e){var n=e.creation,r=e.expiration
if(!(r&&r<Date.now()||n&&n>Date.now()))return e
Je.prototype.remove.call(this,t)}},U(Qe,(function(){})),Qe.prototype.clear=function(){var t=Ee(this.A(!0)),e=this
Y(t,(function(t){e.remove(t)}))},U(Ze,Qe),(t=Ze.prototype).isAvailable=function(){if(!this.f)return!1
try{return this.f.setItem("__sak","1"),this.f.removeItem("__sak"),!0}catch(ht){return!1}},t.set=function(t,e){try{this.f.setItem(t,e)}catch(n){if(0==this.f.length)throw"Storage mechanism: Storage disabled"
throw"Storage mechanism: Quota exceeded"}},t.get=function(t){if("string"!=typeof(t=this.f.getItem(t))&&null!==t)throw"Storage mechanism: Invalid value was encountered"
return t},t.remove=function(t){this.f.removeItem(t)},t.A=function(t){var e=0,n=this.f,r=new we
return r.next=function(){if(e>=n.length)throw me
var r=n.key(e++)
if(t)return r
if("string"!=typeof(r=n.getItem(r)))throw"Storage mechanism: Invalid value was encountered"
return r},r},t.clear=function(){this.f.clear()},t.key=function(t){return this.f.key(t)},U($e,Ze),U(tn,Qe)
var en={".":".2E","!":".21","~":".7E","*":".2A","'":".27","(":".28",")":".29","%":"."},nn=null
function rn(t){return"_"+encodeURIComponent(t).replace(/[.!~*'()%]/g,(function(t){return en[t]}))}function on(t){try{t.f.save(t.g)}catch(e){throw"Storage mechanism: Quota exceeded"}}function an(t,e){this.g=t,this.f=e+"::"}(t=tn.prototype).isAvailable=function(){return!!this.f},t.set=function(t,e){this.f.setAttribute(rn(t),e),on(this)},t.get=function(t){if("string"!=typeof(t=this.f.getAttribute(rn(t)))&&null!==t)throw"Storage mechanism: Invalid value was encountered"
return t},t.remove=function(t){this.f.removeAttribute(rn(t)),on(this)},t.A=function(t){var e=0,n=this.f.XMLDocument.documentElement.attributes,r=new we
return r.next=function(){if(e>=n.length)throw me
var r=n[e++]
if(t)return decodeURIComponent(r.nodeName.replace(/\./g,"%")).substr(1)
if("string"!=typeof(r=r.nodeValue))throw"Storage mechanism: Invalid value was encountered"
return r},r},t.clear=function(){for(var t=this.f.XMLDocument.documentElement,e=t.attributes.length;0<e;e--)t.removeAttribute(t.attributes[e-1].nodeName)
on(this)},U(an,Qe),an.prototype.set=function(t,e){this.g.set(this.f+t,e)},an.prototype.get=function(t){return this.g.get(this.f+t)},an.prototype.remove=function(t){this.g.remove(this.f+t)},an.prototype.A=function(t){var e=this.g.A(!0),n=this,r=new we
return r.next=function(){for(var r=e.next();r.substr(0,n.f.length)!=n.f;)r=e.next()
return t?r.substr(n.f.length):n.g.get(r)},r}
var sn=window.yt&&window.yt.config_||window.ytcfg&&window.ytcfg.data_||{}
function un(t){var e=arguments
1<e.length?sn[e[0]]=e[1]:1===e.length&&Object.assign(sn,e[0])}function cn(t,e){return t in sn?sn[t]:e}M("yt.config_",sn)
var fn=[]
function ln(t){return t&&window.yterr?function(){try{return t.apply(this,arguments)}catch(e){hn(e),function(t){fn.forEach((function(e){return e(t)}))}(e)}}:t}function hn(t){var e=x("yt.logging.errors.log")
e?e(t,"ERROR",void 0,void 0,void 0):((e=cn("ERRORS",[])).push([t,"ERROR",void 0,void 0,void 0]),un("ERRORS",e))}function pn(t){var e=x("yt.logging.errors.log")
e?e(t,"WARNING",void 0,void 0,void 0):((e=cn("ERRORS",[])).push([t,"WARNING",void 0,void 0,void 0]),un("ERRORS",e))}var dn=0
M("ytDomDomGetNextId",x("ytDomDomGetNextId")||function(){return++dn})
var vn={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 gn(t){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(t=t||window.event){for(var e in this.event=t,t)e in vn||(this[e]=t[e])
var n=t.target||t.srcElement
n&&3==n.nodeType&&(n=n.parentNode),this.target=n
var r=t.relatedTarget
if(r)try{r=r.nodeName?r:null}catch(i){r=null}else"mouseover"==this.type?r=t.fromElement:"mouseout"==this.type&&(r=t.toElement)
this.relatedTarget=r,this.clientX=null!=t.clientX?t.clientX:t.pageX,this.clientY=null!=t.clientY?t.clientY:t.pageY,this.keyCode=t.keyCode?t.keyCode:t.which,this.charCode=t.charCode||("keypress"==this.type?this.keyCode:0),this.altKey=t.altKey,this.ctrlKey=t.ctrlKey,this.shiftKey=t.shiftKey,this.metaKey=t.metaKey}}catch(i){}}gn.prototype.preventDefault=function(){this.event&&(this.event.returnValue=!1,this.event.preventDefault&&this.event.preventDefault())},gn.prototype.stopPropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopPropagation&&this.event.stopPropagation())},gn.prototype.stopImmediatePropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopImmediatePropagation&&this.event.stopImmediatePropagation())}
var yn=N.ytEventsEventsListeners||{}
M("ytEventsEventsListeners",yn)
var mn=N.ytEventsEventsCounter||{count:0}
function wn(t,e,n,r){return r=void 0===r?{}:r,t.addEventListener&&("mouseenter"!=e||"onmouseenter"in document?"mouseleave"!=e||"onmouseenter"in document?"mousewheel"==e&&"MozBoxSizing"in document.documentElement.style&&(e="MozMousePixelScroll"):e="mouseout":e="mouseover"),function(t){var e,n=yn
for(e in n)if(t.call(void 0,n[e],e,n))return e}((function(i){var o="boolean"==typeof i[4]&&i[4]==!!r,a=k(i[4])&&k(r)&&z(i[4],r)
return!!i.length&&i[0]==t&&i[1]==e&&i[2]==n&&(o||a)}))}function bn(t){t&&("string"==typeof t&&(t=[t]),Y(t,(function(t){if(t in yn){var e=yn[t],n=e[0],r=e[1],i=e[3]
e=e[4],n.removeEventListener?En()||"boolean"==typeof e?n.removeEventListener(r,i,e):n.removeEventListener(r,i,!!e.capture):n.detachEvent&&n.detachEvent("on"+r,i),delete yn[t]}})))}M("ytEventsEventsCounter",mn)
var En=W((function(){var t=!1
try{var e=Object.defineProperty({},"capture",{get:function(){t=!0}})
window.addEventListener("test",null,e)}catch(n){}return t}))
function _n(t,e,n){var r=void 0===r?{}:r
if(t&&(t.addEventListener||t.attachEvent)){var i=wn(t,e,n,r)
if(!i){i=++mn.count+""
var o=!("mouseenter"!=e&&"mouseleave"!=e||!t.addEventListener||"onmouseenter"in document),a=o?function(r){if(!function(t,e){for(;t;){if(e(t))return t
t=t.parentNode}return null}((r=new gn(r)).relatedTarget,(function(e){return e==t})))return r.currentTarget=t,r.type=e,n.call(t,r)}:function(e){return(e=new gn(e)).currentTarget=t,n.call(t,e)}
a=ln(a),t.addEventListener?("mouseenter"==e&&o?e="mouseover":"mouseleave"==e&&o?e="mouseout":"mousewheel"==e&&"MozBoxSizing"in document.documentElement.style&&(e="MozMousePixelScroll"),En()||"boolean"==typeof r?t.addEventListener(e,a,r):t.addEventListener(e,a,!!r.capture)):t.attachEvent("on"+e,a),yn[i]=[t,e,n,a,r]}}}function In(t,e){return"function"==typeof t&&(t=ln(t)),window.setTimeout(t,e)}function Sn(t){return"function"==typeof t&&(t=ln(t)),window.setInterval(t,250)}function Tn(t){var e=[]
return function(t,e){for(var n in t)e.call(void 0,t[n],n,t)}(t,(function(t,n){var r,i=encodeURIComponent(String(n))
r=Array.isArray(t)?t:[t],Y(r,(function(t){""==t?e.push(i):e.push(i+"="+encodeURIComponent(String(t)))}))})),e.join("&")}function Nn(t){"?"==t.charAt(0)&&(t=t.substr(1))
for(var e={},n=0,r=(t=t.split("&")).length;n<r;n++){var i=t[n].split("=")
if(1==i.length&&i[0]||2==i.length)try{var o=decodeURIComponent((i[0]||"").replace(/\+/g," ")),a=decodeURIComponent((i[1]||"").replace(/\+/g," "))
o in e?Array.isArray(e[o])?F(e[o],a):e[o]=[e[o],a]:e[o]=a}catch(u){if("q"!=i[0]){var s=Error("Error decoding URL component")
s.params={key:i[0],value:i[1]},hn(s)}}}return e}function xn(t,e,n){var r=t.split("#",2)
t=r[0],r=1<r.length?"#"+r[1]:""
var i=t.split("?",2)
for(var o in t=i[0],i=Nn(i[1]||""),e)!n&&null!==i&&o in i||(i[o]=e[o])
return e=t,(t=Gt(i))?(0>(n=e.indexOf("#"))&&(n=e.length),0>(o=e.indexOf("?"))||o>n?(o=n,i=""):i=e.substring(o+1,n),n=(e=[e.substr(0,o),i,e.substr(n)])[1],e[1]=t?n?n+"&"+t:t:n,t=e[0]+(e[1]?"?"+e[1]:"")+e[2]):t=e,t+r}var On={}
var An={},kn=[],Rn=new Ge,jn={}
function Cn(){for(var t=a(kn),e=t.next();!e.done;e=t.next())(e=e.value)()}function Pn(t,e){e||(e=document)
var n=K(e.getElementsByTagName("yt:"+t)),r="yt-"+t,i=e||document
return r=i.querySelectorAll&&i.querySelector?i.querySelectorAll("."+r):function(t,e){var n,r,i=document
if((i=e||i).querySelectorAll&&i.querySelector&&t)return i.querySelectorAll(t?"."+t:"")
if(t&&i.getElementsByClassName){var o=i.getElementsByClassName(t)
return o}if(o=i.getElementsByTagName("*"),t){var a={}
for(n=r=0;i=o[n];n++){var s,u=i.className;(s="function"==typeof u.split)&&(s=0<=X(u.split(/\s+/),t)),s&&(a[r++]=i)}return a.length=r,a}return o}(r,e),function(t){return Array.prototype.concat.apply([],arguments)}(n,r=K(r))}function Dn(t,e){return"yt:"==t.tagName.toLowerCase().substr(0,3)?t.getAttribute(e):t?t.dataset?t.dataset[function(t){return On[t]||(On[t]=String(t).replace(/\-([a-z])/g,(function(t,e){return e.toUpperCase()})))}(e)]:t.getAttribute("data-"+e):null}function Ln(t){if(this.g=t||{},this.h=this.f=!1,t=document.getElementById("www-widgetapi-script"),this.f=!!("https:"==document.location.protocol||t&&0==t.src.indexOf("https:"))){t=[this.g,window.YTConfig||{}]
for(var e=0;e<t.length;e++)t[e].host&&(t[e].host=t[e].host.replace("http://","https://"))}}function Mn(t,e){for(var n=[t.g,window.YTConfig||{}],r=0;r<n.length;r++){var i=n[r][e]
if(null!=i)return i}return null}Ln.prototype.i=function(t){if(t.origin==Mn(this,"host")||t.origin==Mn(this,"host").replace(/^http:/,"https:")){try{var e=JSON.parse(t.data)}catch(n){return}this.h=!0,this.f||0!=t.origin.indexOf("https:")||(this.f=!0),(t=Un[e.id])&&(t.s=!0,t.s&&(Y(t.m,t.S,t),t.m.length=0),t.ba(e))}}
var Un=null
function Bn(t){return("string"!=typeof(t=Vn(t))||"false"!==t)&&!!t}function qn(t,e){var n=Vn(t)
return void 0===n&&void 0!==e?e:Number(n||0)}function Vn(t){var e=cn("EXPERIMENTS_FORCED_FLAGS",{})
return void 0!==e[t]?e[t]:cn("EXPERIMENT_FLAGS",{})[t]}function Xn(t,e){return Gn(t,0,e)}function Yn(){}function Gn(t,e,n){isNaN(n)&&(n=void 0)
var r=x("yt.scheduler.instance.addJob")
return r?r(t,e,n):void 0===n?(t(),NaN):In(t,n||0)}h(Yn,(function(){})),Yn.prototype.start=function(){var t=x("yt.scheduler.instance.start")
t&&t()},Yn.f=void 0,Yn.g=function(){Yn.f||(Yn.f=new Yn)},Yn.g()
var Kn=N.ytPubsubPubsubInstance||new Ge,Fn=N.ytPubsubPubsubSubscribedKeys||{},Wn=N.ytPubsubPubsubTopicToKeys||{},zn=N.ytPubsubPubsubIsSynchronous||{}
Ge.prototype.subscribe=Ge.prototype.subscribe,Ge.prototype.unsubscribeByKey=Ge.prototype.L,Ge.prototype.publish=Ge.prototype.J,Ge.prototype.clear=Ge.prototype.clear,M("ytPubsubPubsubInstance",Kn),M("ytPubsubPubsubTopicToKeys",Wn),M("ytPubsubPubsubIsSynchronous",zn),M("ytPubsubPubsubSubscribedKeys",Fn)
var Hn=window,Jn=Hn.ytcsi&&Hn.ytcsi.now?Hn.ytcsi.now:Hn.performance&&Hn.performance.timing&&Hn.performance.now&&Hn.performance.timing.navigationStart?function(){return Hn.performance.timing.navigationStart+Hn.performance.now()}:function(){return(new Date).getTime()},Qn=qn("initial_gel_batch_timeout",1e3),Zn=Math.pow(2,16)-1,$n=null,tr=0,er=void 0,nr=0,rr=0,ir=0,or=!0,ar=N.ytLoggingTransportLogPayloadsQueue_||{}
M("ytLoggingTransportLogPayloadsQueue_",ar)
var sr=N.ytLoggingTransportGELQueue_||new Map
M("ytLoggingTransportGELQueue_",sr)
var ur=N.ytLoggingTransportTokensToCttTargetIds_||{}
function cr(){window.clearTimeout(nr),window.clearTimeout(rr),rr=0,er&&er.isReady()?(lr(sr),"log_event"in ar&&lr(Object.entries(ar.log_event)),sr.clear(),delete ar.log_event):fr()}function fr(){Bn("web_gel_timeout_cap")&&!rr&&(rr=In(cr,6e4)),window.clearTimeout(nr)
var t=cn("LOGGING_BATCH_TIMEOUT",qn("web_gel_debounce_ms",1e4))
Bn("shorten_initial_gel_batch_timeout")&&or&&(t=Qn),nr=In(cr,t)}function lr(t){for(var e=er,n=Math.round(Jn()),r=(t=a(t)).next();!r.done;r=t.next()){var i=a(r.value)
r=i.next().value
var o=i.next().value;(i=H({context:Or(e.f||xr())})).events=o,(o=ur[r])&&pr(i,r,o),delete ur[r],hr(i,n),Bi(e,"log_event",i,{retry:!0,onSuccess:function(){tr=Math.round(Jn()-n)}}),or=!1}}function hr(t,e){t.requestTimeMs=String(e),Bn("unsplit_gel_payloads_in_logs")&&(t.unsplitGelPayloadsInLogs=!0)
var n=cn("EVENT_ID",void 0)
if(n){var r=cn("BATCH_CLIENT_COUNTER",void 0)||0
!r&&Bn("web_client_counter_random_seed")&&(r=Math.floor(Math.random()*Zn/2)),++r>Zn&&(r=1),un("BATCH_CLIENT_COUNTER",r),n={serializedEventId:n,clientCounter:String(r)},t.serializedClientEventId=n,$n&&tr&&Bn("log_gel_rtt_web")&&(t.previousBatchInfo={serializedClientEventId:$n,roundtripMs:String(tr)}),$n=n,tr=0}}function pr(t,e,n){if(n.videoId)var r="VIDEO"
else{if(!n.playlistId)return
r="PLAYLIST"}t.credentialTransferTokenTargetId=n,t.context=t.context||{},t.context.user=t.context.user||{},t.context.user.credentialTransferTokens=[{token:e,scope:r}]}M("ytLoggingTransportTokensToCttTargetIds_",ur)
var dr=N.ytLoggingGelSequenceIdObj_||{}
function vr(t){var e=gr
return t=void 0===t?x("yt.ads.biscotti.lastId_")||"":t,e=Object.assign(function(t){var e={}
e.dt=$t,e.flash="0"
t:{try{var n=t.f.top.location.href}catch(o){t=2
break t}t=n?n===t.g.location.href?0:1:2}e.frm=t,e.u_tz=-(new Date).getTimezoneOffset()
var r=void 0===r?kt:r
try{var i=r.history.length}catch(o){i=0}return e.u_his=i,e.u_java=!!kt.navigator&&"unknown"!=typeof kt.navigator.javaEnabled&&!!kt.navigator.javaEnabled&&kt.navigator.javaEnabled(),kt.screen&&(e.u_h=kt.screen.height,e.u_w=kt.screen.width,e.u_ah=kt.screen.availHeight,e.u_aw=kt.screen.availWidth,e.u_cd=kt.screen.colorDepth),kt.navigator&&kt.navigator.plugins&&(e.u_nplug=kt.navigator.plugins.length),kt.navigator&&kt.navigator.mimeTypes&&(e.u_nmime=kt.navigator.mimeTypes.length),e}(e),function(t){var e=t.f
try{var n=e.screenX,r=e.screenY}catch(l){}try{var i=e.outerWidth,o=e.outerHeight}catch(l){}try{var a=e.innerWidth,s=e.innerHeight}catch(l){}e=[e.screenLeft,e.screenTop,n,r,e.screen?e.screen.availWidth:void 0,e.screen?e.screen.availTop:void 0,i,o,a,s],n=t.f.top
try{var u=(n||window).document,c="CSS1Compat"==u.compatMode?u.documentElement:u.body,f=new Mt(c.clientWidth,c.clientHeight).round()}catch(l){f=new Mt(-12245933,-12245933)}return u=f,f={},c=new ie,N.SVGElement&&N.document.createElementNS&&c.set(0),n=function(){var t=Ut(),e={}
return Y(zt(),(function(n){t.sandbox&&t.sandbox.supports&&t.sandbox.supports(n)&&(e[n]=!0)})),e}(),n["allow-top-navigation-by-user-activation"]&&c.set(1),n["allow-popups-to-escape-sandbox"]&&c.set(2),N.crypto&&N.crypto.subtle&&c.set(3),N.TextDecoder&&N.TextEncoder&&c.set(4),c=function(t){return-1==t.f&&(t.f=G(t.g,(function(t,e,n){return e?t+Math.pow(2,n):t}),0)),t.f}(c),f.bc=c,f.bih=u.height,f.biw=u.width,f.brdim=e.join(),t=t.g,f.vis={visible:1,hidden:2,prerender:3,preview:4,unloaded:5}[t.visibilityState||t.webkitVisibilityState||t.mozVisibilityState||""]||0,f.wgl=!!kt.WebGLRenderingContext,f}(e)),e.ca_type="image",t&&(e.bid=t),e}M("ytLoggingGelSequenceIdObj_",dr)
var gr=new function(){var t=window.document
this.f=window,this.g=t}
M("yt.ads_.signals_.getAdSignalsString",(function(t){return Tn(vr(t))}))
var yr="XMLHttpRequest"in N?function(){return new XMLHttpRequest}:null
var mr,wr={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"},br="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(" "),Er=!1
function _r(t,e){var n=e.format||"JSON",r=Sr(t=Ir(t,e),e),i=!1,o=function(t,e,n,r,i,o,a){function s(){4==(u&&"readyState"in u?u.readyState:0)&&e&&ln(e)(u)}n=void 0===n?"GET":n,r=void 0===r?"":r
var u=function(){if(!yr)return null
var t=yr()
return"open"in t?t:null}()
if(!u)return null
if("onloadend"in u?u.addEventListener("loadend",s,!1):u.onreadystatechange=s,Bn("debug_forward_web_query_parameters")&&(t=function(t){var e=window.location.search,n=Vt(t),r=qt(t.match(Bt)[5]||null)
if(r=(n=n&&(n.endsWith("youtube.com")||n.endsWith("youtube-nocookie.com")))&&r&&r.startsWith("/api/"),!n||r)return t
var i=Nn(e),o={}
return Y(br,(function(t){i[t]&&(o[t]=i[t])})),xn(t,o||{},!1)}(t)),u.open(n,t,!0),o&&(u.responseType=o),a&&(u.withCredentials=!0),n=!("POST"!=n||void 0!==window.FormData&&r instanceof FormData),i=function(t,e){if(e=void 0===e?{}:e,!n)var n=window.location.href
var r=t.match(Bt)[1]||null,i=Vt(t)
for(var o in r&&i?(r=n,n=t.match(Bt),r=r.match(Bt),n=n[3]==r[3]&&n[1]==r[1]&&n[4]==r[4]):n=!i||Vt(n)==i&&(Number(n.match(Bt)[4]||null)||null)==(Number(t.match(Bt)[4]||null)||null),r=Bn("web_ajax_ignore_global_headers_if_set"),wr)!(i=cn(wr[o]))||!n&&Vt(t)||r&&void 0!==e[o]||(e[o]=i)
return!n&&Vt(t)||(e["X-YouTube-Utc-Offset"]=String(-(new Date).getTimezoneOffset())),(n||!Vt(t))&&(o="undefined"!=typeof Intl?(new Intl.DateTimeFormat).resolvedOptions().timeZone:null)&&(e["X-YouTube-Time-Zone"]=o),!n&&Vt(t)||(e["X-YouTube-Ad-Signals"]=Tn(vr(void 0))),e}(t,i))for(var c in i)u.setRequestHeader(c,i[c]),"content-type"==c.toLowerCase()&&(n=!1)
return n&&u.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),u.send(r),u}(t,(function(r){if(!i){i=!0,s&&window.clearTimeout(s)
t:switch(r&&"status"in r?r.status:-1){case 200:case 201:case 202:case 203:case 204:case 205:case 206:case 304:var o=!0
break t
default:o=!1}var u=null,c=400<=r.status&&500>r.status,f=500<=r.status&&600>r.status
if((o||c||f)&&(u=function(t,e,n,r){var i=null
switch(e){case"JSON":try{var o=n.responseText}catch(a){throw(r=Error("Error reading responseText")).params=t,pn(r),a}t=n.getResponseHeader("Content-Type")||"",o&&0<=t.indexOf("json")&&(i=JSON.parse(o))
break
case"XML":(t=(t=n.responseXML)?function(t){return t&&(t=("responseXML"in t?t.responseXML:t).getElementsByTagName("root"))&&0<t.length?t[0]:null}(t):null)&&(i={},Y(t.getElementsByTagName("*"),(function(t){i[t.tagName]=function(t){var e=""
return Y(t.childNodes,(function(t){e+=t.nodeValue})),e}(t)})))}return r&&Tr(i),i}(t,n,r,e.Ia)),o)t:if(r&&204==r.status)o=!0
else{switch(n){case"XML":o=0==parseInt(u&&u.return_code,10)
break t
case"RAW":o=!0
break t}o=!!u}u=u||{},c=e.context||N,o?e.onSuccess&&e.onSuccess.call(c,r,u):e.onError&&e.onError.call(c,r,u),e.P&&e.P.call(c,r,u)}}),e.method,r,e.headers,e.responseType,e.withCredentials)
if(e.I&&0<e.timeout)var a=e.I,s=In((function(){i||(i=!0,o.abort(),window.clearTimeout(s),a.call(e.context||N,o))}),e.timeout)}function Ir(t,e){e.Ma&&(t=document.location.protocol+"//"+document.location.hostname+(document.location.port?":"+document.location.port:"")+t)
var n=cn("XSRF_FIELD_NAME",void 0),r=e.ra
return r&&(r[n]&&delete r[n],t=xn(t,r||{},!0)),t}function Sr(t,e){var n,r=cn("XSRF_FIELD_NAME",void 0),i=cn("XSRF_TOKEN",void 0),o=e.postBody||"",a=e.u,s=cn("XSRF_FIELD_NAME",void 0)
if(e.headers&&(n=e.headers["Content-Type"]),e.La||Vt(t)&&!e.withCredentials&&Vt(t)!=document.location.hostname||"POST"!=e.method||n&&"application/x-www-form-urlencoded"!=n||e.u&&e.u[s]||(a||(a={}),a[r]=i),a&&"string"==typeof o&&(function(t,e){for(var n,r,i=1;i<arguments.length;i++){for(n in r=arguments[i])t[n]=r[n]
for(var o=0;o<Q.length;o++)n=Q[o],Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}}(o=Nn(o),a),o=e.aa&&"JSON"==e.aa?JSON.stringify(o):Gt(o)),!(r=o)&&(r=a)){t:{for(var u in a){a=!1
break t}a=!0}r=!a}return!Er&&r&&"POST"!=e.method&&(Er=!0,hn(Error("AJAX request with postData should use POST"))),o}function Tr(t){if(k(t))for(var e in t){var n
if((n="html_content"==e)||(n=0<=(n=e.length-5)&&e.indexOf("_html",n)==n),n){n=e
var r=t[e]
if(void 0===J){var i=null,o=N.trustedTypes
if(o&&o.createPolicy){try{i=o.createPolicy("goog#html",{createHTML:B,createScript:B,createScriptURL:B})}catch(a){N.console&&N.console.error(a.message)}J=i}else J=i}(i=J)&&i.createHTML(r),t[n]=new ft}else Tr(t[e])}}function Nr(){return"INNERTUBE_API_KEY"in sn&&"INNERTUBE_API_VERSION"in sn}function xr(){return{innertubeApiKey:cn("INNERTUBE_API_KEY",void 0),innertubeApiVersion:cn("INNERTUBE_API_VERSION",void 0),ja:cn("INNERTUBE_CONTEXT_CLIENT_CONFIG_INFO"),ka:cn("INNERTUBE_CONTEXT_CLIENT_NAME","WEB"),innertubeContextClientVersion:cn("INNERTUBE_CONTEXT_CLIENT_VERSION",void 0),ma:cn("INNERTUBE_CONTEXT_HL",void 0),la:cn("INNERTUBE_CONTEXT_GL",void 0),na:cn("INNERTUBE_HOST_OVERRIDE",void 0)||"",pa:!!cn("INNERTUBE_USE_THIRD_PARTY_AUTH",!1),oa:!!cn("INNERTUBE_OMIT_API_KEY_WHEN_AUTH_HEADER_IS_PRESENT",!1),appInstallData:cn("SERIALIZED_CLIENT_CONFIG_DATA",void 0)}}function Or(t){var e={client:{hl:t.ma,gl:t.la,clientName:t.ka,clientVersion:t.innertubeContextClientVersion,configInfo:t.ja}},n=window.devicePixelRatio
n&&1!=n&&(e.client.screenDensityFloat=String(n)),""!==(n=cn("EXPERIMENTS_TOKEN",""))&&(e.client.experimentsToken=n),n=[]
var r=cn("EXPERIMENTS_FORCED_FLAGS",{})
for(i in r)n.push({key:i,value:String(r[i])})
var i=cn("EXPERIMENT_FLAGS",{})
for(var o in i)o.startsWith("force_")&&void 0===r[o]&&n.push({key:o,value:String(i[o])})
return 0<n.length&&(e.request={internalExperimentFlags:n}),t.appInstallData&&Bn("web_log_app_install_experiments")&&(e.client.configInfo=e.client.configInfo||{},e.client.configInfo.appInstallData=t.appInstallData),cn("DELEGATED_SESSION_ID")&&!Bn("pageid_as_header_web")&&(e.user={onBehalfOfUser:cn("DELEGATED_SESSION_ID")}),e.client=Object.assign(e.client,function(){for(var t={},e=a(Object.entries(Nn(cn("DEVICE","")))),n=e.next();!n.done;n=e.next()){var r=a(n.value)
n=r.next().value,r=r.next().value,"cbrand"===n?t.deviceMake=r:"cmodel"===n?t.deviceModel=r:"cbr"===n?t.browserName=r:"cbrver"===n?t.browserVersion=r:"cos"===n?t.osName=r:"cosver"===n?t.osVersion=r:"cplatform"===n&&(t.platform=r)}return t}()),e}function Ar(t,e,n){var r={"X-Goog-Visitor-Id":(n=void 0===n?{}:n).visitorData||cn("VISITOR_DATA","")}
return e&&e.includes("www.youtube-nocookie.com")||((e=n.Fa||cn("AUTHORIZATION"))||(e=t?"Bearer "+x("gapi.auth.getToken")().Ea:re([])),e&&(r.Authorization=e,r["X-Goog-AuthUser"]=cn("SESSION_INDEX",0),Bn("pageid_as_header_web")&&(r["X-Goog-PageId"]=cn("DELEGATED_SESSION_ID")))),r}function kr(t){delete(t=Object.assign({},t)).Authorization
var e=re()
if(e){var n=new ge
if(n.update(cn("INNERTUBE_API_KEY",void 0)),n.update(e),e=n.digest(),n=3,A(e),void 0===n&&(n=0),!At){At={}
for(var r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".split(""),i=["+/=","+/","-_=","-_.","-_"],o=0;5>o;o++){var a=r.concat(i[o].split(""))
Ot[o]=a
for(var s=0;s<a.length;s++){var u=a[s]
void 0===At[u]&&(At[u]=s)}}}for(n=Ot[n],r=[],i=0;i<e.length;i+=3){var c=e[i],f=(o=i+1<e.length)?e[i+1]:0
s=c>>2,c=(3&c)<<4|f>>4,f=(15&f)<<2|(u=(a=i+2<e.length)?e[i+2]:0)>>6,u&=63,a||(u=64,o||(f=64)),r.push(n[s],n[c],n[f]||"",n[u]||"")}t.hash=r.join("")}return t}function Rr(){var t=new $e;(t=t.isAvailable()?new an(t,"yt.innertube"):null)||(t=(t=new tn("yt.innertube")).isAvailable()?t:null),this.f=t?new Je(t):null,this.g=document.domain||window.location.hostname}function jr(){return mr||(mr=new Rr),mr}function Cr(t){var e=jr().get("requests",!0)||{}
delete e[t],jr().set("requests",e,86400,!0)}function Pr(t){var e=jr().get("requests",!0)
if(e){for(var n in e){var r=e[n]
if(!(6e4>Math.round(Jn())-r.requestTime)){var i=r.authState
z(i,kr(Ar(!1)))&&("requestTimeMs"in(i=r.request)&&(i.requestTimeMs=Math.round(Jn())),Bi(t,r.method,i,{})),delete e[n]}}jr().set("requests",e,86400,!0)}}function Dr(){}Rr.prototype.set=function(t,e,n,r){if(n=n||31104e3,this.remove(t),this.f)try{return void this.f.set(t,e,Date.now()+1e3*n)}catch(o){}var i=""
if(r)try{i=escape(Ne(e))}catch(o){return}else i=escape(e)
e=this.g,Lt.set(""+t,i,{V:n,path:"/",domain:void 0===e?"youtube.com":e,secure:!1})},Rr.prototype.get=function(t,e){var n=void 0,r=!this.f
if(!r)try{n=this.f.get(t)}catch(i){r=!0}if(r&&(n=Lt.get(""+t,void 0))&&(n=unescape(n),e))try{n=JSON.parse(n)}catch(i){this.remove(t),n=void 0}return n},Rr.prototype.remove=function(t){this.f&&this.f.remove(t)
var e=this.g
Lt.remove(""+t,"/",void 0===e?"youtube.com":e)}
var Lr=Nt||xt
function Mr(t){if(!t)throw Error()
throw t}function Ur(t){return t}function Br(t){var e=this
this.g=t,this.state={status:"PENDING"},this.f=[],this.onRejected=[],this.g((function(t){if("PENDING"===e.state.status){e.state={status:"FULFILLED",value:t}
for(var n=(t=a(e.f)).next();!n.done;n=t.next())(n=n.value)()}}),(function(t){if("PENDING"===e.state.status){e.state={status:"REJECTED",reason:t}
for(var n=(t=a(e.onRejected)).next();!n.done;n=t.next())(n=n.value)()}}))}function qr(t,e){t.then(void 0,e)}function Vr(t,e,n,r,i){try{if("FULFILLED"!==t.state.status)throw Error("calling handleResolve before the promise is fulfilled.")
var o=n(t.state.value)
o instanceof Br?Yr(t,e,o,r,i):r(o)}catch(a){i(a)}}function Xr(t,e,n,r,i){try{if("REJECTED"!==t.state.status)throw Error("calling handleReject before the promise is rejected.")
var o=n(t.state.reason)
o instanceof Br?Yr(t,e,o,r,i):r(o)}catch(a){i(a)}}function Yr(t,e,n,r,i){e===n?i(new TypeError("Circular promise chain detected.")):n.then((function(n){n instanceof Br?Yr(t,e,n,r,i):r(n)}),(function(t){i(t)}))}function Gr(){var t=Error.call(this,"Transaction was aborted")
this.message=t.message,"stack"in t&&(this.stack=t.stack),this.name="YtIdbKnownError",Object.setPrototypeOf(this,Gr.prototype)}function Kr(){var t=Error.call(this,"IndexedDB is not supported.")
this.message=t.message,"stack"in t&&(this.stack=t.stack),this.name="YtIdbKnownError",Object.setPrototypeOf(this,Kr.prototype)}function Fr(){var t=Error.call(this,"The current transaction exceeded its quota limitations.")
this.message=t.message,"stack"in t&&(this.stack=t.stack),this.name="YtIdbKnownError",Object.setPrototypeOf(this,Fr.prototype)}function Wr(){var t=Error.call(this,"The current transaction may have failed because of exceeding quota limitations.")
this.message=t.message,"stack"in t&&(this.stack=t.stack),this.name="YtIdbKnownError",Object.setPrototypeOf(this,Wr.prototype)}function zr(t){return t instanceof DOMException||"DOMError"in self&&t instanceof DOMError?"VersionError"===t.name:t instanceof Object&&"message"in t&&"An attempt was made to open a database using a lower version than the existing version."===t.message}function Hr(t,e,n){function r(){n(t.error),o()}function i(){e(t.result),o()}function o(){try{t.removeEventListener("success",i),t.removeEventListener("error",r)}catch(e){}}t.addEventListener("success",i),t.addEventListener("error",r)}function Jr(t){return new Br((function(e,n){Hr(t,e,n)}))}function Qr(t,e){this.f=t,this.options=e}function Zr(t,e,n){return new ti(t=t.f.createObjectStore(e,n))}function $r(t,e,n,r){return n=void 0===n?"readonly":n,new xe((function(i,o){var a=new ei(t.f.transaction(e,n))
qr(r(a).then((function(t){Ce(function(t){var e=t.f
return e.commit&&!t.aborted&&e.commit(),t.done}(a).then((function(){i(t)})),(function(t){o(t)}))})),(function(t){o(t)}))}))}function ti(t){this.f=t}function ei(t){var e=this
this.f=t,this.g=new Map,this.aborted=!1,this.done=new xe((function(t,n){e.f.addEventListener("complete",(function(){t()})),e.f.addEventListener("error",(function(t){t.currentTarget===t.target&&n(e.f.error)})),e.f.addEventListener("abort",(function(){var t=e.f.error
t?("QuotaExceededError"===t.name?pn(new Fr):"UnknownError"===t.name&&pn(new Wr),n(t)):n(new Gr)}))}))}function ni(t,e){var n=t.f.objectStore(e),r=t.g.get(n)
return r||(r=new ti(n),t.g.set(n,r)),r}function ri(t){this.f=t}function ii(t,e,n){return function(t){return Jr(t).then((function(e){return null===e?null:new oi(t,e)}))}(t=t.f.openCursor(void 0===e.query?null:e.query,void 0===e.direction?"next":e.direction)).then((function(t){return function(t,e){return new Br((function(n,r){(function i(){var o=t?e(t):null
o?o.then((function(e){t=e,i()}),r):n()})()}))}(t,n)}))}function oi(t,e){this.request=t,this.f=e}function ai(t,e,n){function r(){return i||(i=new Qr(a.result,{closed:l})),i}var i,o=ei,a=self.indexedDB.open(t,e),s=n.blocked,u=n.blocking,c=n.Pa,f=n.upgrade,l=n.closed
return f&&a.addEventListener("upgradeneeded",(function(t){if(null===t.newVersion)throw Error("Invariant: newVersion on IDbVersionChangeEvent is null")
if(null===a.transaction)throw Error("Invariant: transaction on IDbOpenDbRequest is null")
var e=r(),n=new o(a.transaction)
f(e,t.oldVersion,t.newVersion,n)})),s&&a.addEventListener("blocked",(function(){s()})),function(t){return new xe((function(e,n){Hr(t,e,n)}))}(a).then((function(t){return u&&t.addEventListener("versionchange",(function(){u(r())})),c&&t.addEventListener("close",(function(){c()})),r()}))}function si(t,e,n){return ai(t,e,n=void 0===n?{}:n)}Br.all=function(t){return new Br((function(e,n){var r=[],i=t.length
0===i&&e(r)
for(var o={D:0};o.D<t.length;++(o={D:o.D}).D)qr(Br.resolve(t[o.D]).then(function(t){return function(n){r[t.D]=n,0===--i&&e(r)}}(o)),(function(t){n(t)}))}))},Br.resolve=function(t){return new Br((function(e,n){t instanceof Br?t.then(e,n):e(t)}))},Br.reject=function(t){return new Br((function(e,n){n(t)}))},Br.prototype.then=function(t,e){var n=this,r=null!=t?t:Ur,i=null!=e?e:Mr
return new Br((function(t,e){"PENDING"===n.state.status?(n.f.push((function(){Vr(n,n,r,t,e)})),n.onRejected.push((function(){Xr(n,n,i,t,e)}))):"FULFILLED"===n.state.status?Vr(n,n,r,t,e):"REJECTED"===n.state.status&&Xr(n,n,i,t,e)}))},h(Gr,Error),h(Kr,Error),h(Fr,Error),h(Wr,Error),(t=Qr.prototype).add=function(t,e,n){return $r(this,[t],"readwrite",(function(r){return ni(r,t).add(e,n)}))},t.clear=function(t){return $r(this,[t],"readwrite",(function(e){return ni(e,t).clear()}))},t.close=function(){var t
this.f.close(),null!==(t=this.options)&&void 0!==t&&t.closed&&this.options.closed()},t.count=function(t,e){return $r(this,[t],"readonly",(function(n){return ni(n,t).count(e)}))},t.delete=function(t,e){return $r(this,[t],"readwrite",(function(n){return ni(n,t).delete(e)}))},t.get=function(t,e){return $r(this,[t],"readwrite",(function(n){return ni(n,t).get(e)}))},(t=ti.prototype).add=function(t,e){return Jr(this.f.add(t,e))},t.clear=function(){return Jr(this.f.clear()).then((function(){}))},t.count=function(t){return Jr(this.f.count(t))},t.delete=function(t){return Jr(this.f.delete(t))},t.get=function(t){return Jr(this.f.get(t))},t.index=function(t){return new ri(this.f.index(t))},t.getName=function(){return this.f.name},ei.prototype.abort=function(){this.f.abort(),this.aborted=!0},ri.prototype.count=function(t){return Jr(this.f.count(t))},ri.prototype.get=function(t){return Jr(this.f.get(t))},oi.prototype.delete=function(){return Jr(this.f.delete()).then((function(){}))},oi.prototype.update=function(t){return Jr(this.f.update(t))}
var ui,ci,fi,li,hi=["getAll","getAllKeys","getKey","openKeyCursor"],pi=["getAll","getAllKeys","getKey","openKeyCursor"]
function di(){return q(this,(function t(){var e,n
return E(t,(function(t){switch(t.f){case 1:if(Lr&&function(){var t=/WebKit\/([0-9]+)/.exec(Z)
return!!(t&&600<=parseInt(t[1],10))}()&&!function(){var t=/WebKit\/([0-9]+)/.exec(Z)
return!!(t&&602<=parseInt(t[1],10))}()&&!Bn("ytidb_allow_on_ios_safari_v8_and_v9")||vt)return t.return(!1)
try{if(!((e=self).indexedDB&&e.IDBIndex&&e.IDBKeyRange&&e.IDBObjectStore))return t.return(!1)}catch(r){return t.return(!1)}return function(t){t.l=2,t.j=3}(t),g(t,Ce(si("yt-idb-test-do-not-use"),(function(){})),5)
case 5:if(!(n=t.g))return t.return(!1)
case 3:if(function(t){t.v=[t.h],t.l=0,t.j=0}(t),n)try{n.close()}catch(r){}(function(t){var e=t.v.splice(0)[0];(e=t.h=t.h||e)?e.U?t.f=t.l||t.j:null!=e.B&&t.j<e.B?(t.f=e.B,t.h=null):t.f=t.j:t.f=4})(t)
break
case 2:return function(t){t.l=0,t.h=null}(t),t.return(!1)
case 4:return t.return(!0)}}))}))}function vi(){return void 0!==ui?Re(ui):new xe((function(t){di().then((function(e){ui=e,t(e)}))}))}function gi(){function t(t){t.close(),fi=void 0}return fi||(fi=Ce(si("YtIdbMeta",1,{blocking:t,upgrade:function(t,e){1>e&&Zr(t,"databases",{keyPath:"actualName"})}}),(function(e){return zr(e)?si("YtIdbMeta",void 0,{blocking:t}):je(e)}))),fi}function yi(t){return gi().then((function(e){return e.get("databases",t.actualName).then((function(n){if(!n||(t.actualName!==n.actualName||t.publicName!==n.publicName||t.userIdentifier!==n.userIdentifier||t.signedIn!==n.signedIn))return function(t,e){return $r(t,["databases"],"readwrite",(function(t){return Jr((t=ni(t,"databases")).f.put(e,void 0))}))}(e,t)}))}))}function mi(t){try{var e={actualName:"LogsDataBase",publicName:"LogsDataBase",userIdentifier:void 0,signedIn:!1}}catch(n){return je(n)}return Ce(yi(e).then((function(){return t(e)})),(function(t){return Ce(function(t){return gi().then((function(e){return e.delete("databases",t)}))}(e.actualName),(function(){})).then((function(){return je(t)}))}))}function wi(t,e){return e=void 0===e?{}:e,vi().then((function(t){if(!t)throw new Kr})).then((function(){return mi((function(n){return si(n.actualName,t,e)}))}))}function bi(){throw Br.call(this,(function(){})),Error("Not allowed to instantiate the thennable outside of the core library.")}function Ei(){return q(this,(function t(){return E(t,(function(t){if(!li)try{li=wi(1,{upgrade:function(t,e){1>e&&(Zr(t,"LogsRequestsStore",{keyPath:"id",autoIncrement:!0}).f.createIndex("newRequest",["status","authHash","timestamp"],{unique:!1}),Zr(t,"sapisid"))}})}catch(e){if(!zr(e))return hn(e),t.return(Promise.reject(e))
li=wi()}return t.return(li)}))}))}function _i(t){return q(this,(function e(){var n
return E(e,(function(e){return 1==e.f?g(e,Ei(),2):(n=e.g,e.return(n.delete("LogsRequestsStore",t)))}))}))}function Ii(){return q(this,(function t(){var e
return E(t,(function(t){if(1==t.f){Dr.f||(Dr.f=new Dr)
var n={},r=re([])
return r&&(n.Authorization=r,n["X-Goog-AuthUser"]=cn("SESSION_INDEX",0),"INNERTUBE_HOST_OVERRIDE"in sn||(n["X-Origin"]=window.location.origin),Bn("pageid_as_header_web")&&"DELEGATED_SESSION_ID"in sn&&(n["X-Goog-PageId"]=cn("DELEGATED_SESSION_ID"))),g(t,n=Re(n),2)}return e=t.g,t.return(function(t){t=kr(t)
var e=new ge
e.update(JSON.stringify(t,Object.keys(t).sort())),t=e.digest(),e=""
for(var n=0;n<t.length;n++)e+="0123456789ABCDEF".charAt(Math.floor(t[n]/16))+"0123456789ABCDEF".charAt(t[n]%16)
return e}(e))}))}))}h(bi,Br),bi.reject=Br.reject,bi.resolve=Br.resolve,bi.all=Br.all
var Si=qn("network_polling_interval",3e4)
function Ti(){this.i=0,this.f=window.navigator.onLine,function(t){window.addEventListener("offline",(function(){t.f=!1,t.h&&t.h()}))}(this),function(t){window.addEventListener("online",(function(){t.f=!0,t.g&&t.g()}))}(this)}function Ni(){return Ti.f||(Ti.f=new Ti),Ti.f}function xi(t){var e=Ci,n=Pi
new xe((function(e){t.g=e})).then((function(){e(),n&&(t.h=n)})),function(t){t.i||(Oi(t),window.navigator.onLine&&t.g&&t.g())}(t)}function Oi(t){t.i=Xn((function(){window.navigator.onLine?(!1===t.f&&hn(Error("NetworkStatusManager missed online event.")),t.f=!0,t.g&&t.g()):(!0===t.f&&hn(Error("NetworkStatusManager missed offline event.")),t.f=!1,t.h&&t.h()),Oi(t)}),Si)}var Ai=qn("networkless_throttle_timeout")||100,ki=qn("networkless_retry_attempts")||1,Ri=0
function ji(t,e){e=void 0===e?{}:e,Li().then((function(n){var r=Ni().f
if(!n||Bn("networkless_bypass_write")||r&&Bn("vss_networkless_bypass_write"))_r(t,e)
else{var i={url:t,options:e,timestamp:Jn(),status:"NEW",sendCount:0};(function(t){return q(this,(function e(){var n,r,i
return E(e,(function(e){return 1==e.f?g(e,Ii(),2):3!=e.f?(n=e.g,g(e,Ei(),3)):(r=e.g,i=Object.assign(Object.assign({},t),{options:JSON.parse(JSON.stringify(t.options)),authHash:n}),e.return(r.add("LogsRequestsStore",i)))}))}))})(i).then((function(t){i.id=t,(t=Ni()).f&&!Bn("networkless_always_offline")?Di(i):xi(t)})).catch((function(t){Di(i),hn(t)}))}}))}function Ci(){var t=this
Ri||(Ri=Gn((function(){return q(t,(function t(){var e
return E(t,(function(t){return 1==t.f?g(t,function(){return q(this,(function t(){var e,n,r,i,o,a
return E(t,(function(t){switch(t.f){case 1:return g(t,Ii(),2)
case 2:return e=t.g,n=["NEW",e,0],r=["NEW",e,Jn()],i=IDBKeyRange.bound(n,r),g(t,Ei(),3)
case 3:return o=t.g,a=void 0,g(t,$r(o,["LogsRequestsStore"],"readwrite",(function(t){return ii(ni(t,"LogsRequestsStore").index("newRequest"),{query:i,direction:"prev"},(function(t){t.f.value&&((a=t.f.value).status="QUEUED",t.update(a))}))})),4)
case 4:return t.return(a)}}))}))}(),2):3!=t.f?(e=t.g)?g(t,Di(e),3):(Pi(),t.return()):(Ri=0,Ci(),void(t.f=0))}))}))}),1,Ai))}function Pi(){var t=Ri
if(!isNaN(t)){var e=x("yt.scheduler.instance.cancelJob")
e?e(t):window.clearTimeout(t)}Ri=0}function Di(t){return q(this,(function e(){var n
return E(e,(function(e){switch(e.f){case 1:if(!t.id){e.B(2)
break}return g(e,function(t){return q(this,(function e(){var n
return E(e,(function(e){return 1==e.f?g(e,Ei(),2):(n=e.g,e.return($r(n,["LogsRequestsStore"],"readwrite",(function(e){var n=ni(e,"LogsRequestsStore")
return n.get(t).then((function(t){if(t)return t.status="QUEUED",Jr(n.f.put(t,void 0)).then((function(){return t}))}))}))))}))}))}(t.id),3)
case 3:(n=e.g)?t=n:pn(Error("The request cannot be found in the database."))
case 2:var r=t.timestamp
if(!(2592e6<=Jn()-r)){e.B(4)
break}if(pn(Error("Networkless Logging: Stored logs request expired age limit")),!t.id){e.B(5)
break}return g(e,_i(t.id),5)
case 5:return e.return()
case 4:var i,o
r=t=function(t){var e=this,n=t.options.onError?t.options.onError:function(){}
t.options.onError=function(r,i){return q(e,(function e(){return E(e,(function(e){if(1==e.f)return t&&t.id?t.sendCount<ki?g(e,function(t){return q(this,(function e(){var n
return E(e,(function(e){return 1==e.f?g(e,Ei(),2):(n=e.g,e.return($r(n,["LogsRequestsStore"],"readwrite",(function(e){var n=ni(e,"LogsRequestsStore")
return n.get(t).then((function(t){return t?(t.status="NEW",t.sendCount+=1,Jr(n.f.put(t,void 0)).then((function(){return t}))):bi.resolve(void 0)}))}))))}))}))}(t.id),6):g(e,_i(t.id),2):e.B(2)
2!=e.f&&xi(Ni()),n(r,i),e.f=0}))}))}
var r=t.options.onSuccess?t.options.onSuccess:function(){}
return t.options.onSuccess=function(n,i){return q(e,(function e(){return E(e,(function(e){if(1==e.f)return t&&t.id?g(e,_i(t.id),2):e.B(2)
r(n,i),e.f=0}))}))},t}(t),null!==(o=null===(i=null==r?void 0:r.options)||void 0===i?void 0:i.u)&&void 0!==o&&o.requestTimeMs&&(r.options.u.requestTimeMs=Math.round(Jn())),(t=r)&&_r(t.url,t.options),e.f=0}}))}))}function Li(){return q(this,(function t(){return E(t,(function(t){return Bn("networkless_logging")?(2===qn("networkless_ytidb_version")&&(void 0!==ci?Re(ci):vi().then((function(t){if(!t)return!1
var e=a(hi)
for(t=e.next();!t.done;t=e.next())if(!IDBObjectStore.prototype[t.value])return!1
for(t=(e=a(pi)).next();!t.done;t=e.next())if(!IDBIndex.prototype[t.value])return!1
return!!IDBObjectStore.prototype.getKey})).then((function(t){return ci=t}))).then((function(t){return t})),t.return(vi())):t.return(!1)}))}))}function Mi(t,e){for(var n=[],r=1;r<arguments.length;++r)n[r-1]=arguments[r]
r=Error.call(this,t),this.message=r.message,"stack"in r&&(this.stack=r.stack),this.args=[].concat(n instanceof Array?n:function(t){for(var e,n=[];!(e=t.next()).done;)n.push(e.value)
return n}(a(n)))}function Ui(t){var e=this
this.f=null,t?this.f=t:Nr()&&(this.f=xr()),Xn((function(){Pr(e)}),5e3)}function Bi(t,e,n,r){if(!cn("VISITOR_DATA")&&"visitor_id"!==e&&.01>Math.random()&&pn(new Mi("Missing VISITOR_DATA when sending innertube request.",e,n,r)),!t.isReady()){var i=new Mi("innertube xhrclient not ready",e,n,r)
throw hn(i),i.sampleWeight=0,i}var o={headers:{"Content-Type":"application/json"},method:"POST",u:n,aa:"JSON",I:function(){r.I()},Y:r.I,onSuccess:function(t,e){r.onSuccess&&r.onSuccess(e)},X:function(t){r.onSuccess&&r.onSuccess(t)},onError:function(t,e){r.onError&&r.onError(e)},Na:function(t){r.onError&&r.onError(t)},timeout:r.timeout,withCredentials:!0},a="";(i=t.f.na)&&(a=i)
var s=t.f.pa||!1,u=Ar(s,a,r)
Object.assign(o.headers,u),o.headers.Authorization&&!a&&(o.headers["x-origin"]=window.location.origin),i="/youtubei/"+t.f.innertubeApiVersion+"/"+e
var c={alt:"json"}
t.f.oa&&o.headers.Authorization||(c.key=t.f.innertubeApiKey)
var f=xn(""+a+i,c||{},!0)
Li().then((function(i){if(r.retry&&Bn("retry_web_logging_batches")&&"www.youtube-nocookie.com"!=a){if(Bn("networkless_gel")&&!i||!Bn("networkless_gel"))var c=function(t,e,n,r){if(r)return null
r=jr().get("nextId",!0)||1
var i=jr().get("requests",!0)||{}
return i[r]={method:t,request:e,authState:kr(n),requestTime:Math.round(Jn())},jr().set("nextId",r+1,86400,!0),jr().set("requests",i,86400,!0),r}(e,n,u,s)
if(c){var l=o.onSuccess,h=o.X
o.onSuccess=function(t,e){Cr(c),l(t,e)},n.X=function(t,e){Cr(c),h(t,e)}}}try{Bn("use_fetch_for_op_xhr")?function(t,e){if(window.fetch&&"XML"!=e.format){var n={method:e.method||"GET",credentials:"same-origin"}
e.headers&&(n.headers=e.headers)
var r=Sr(t=Ir(t,e),e)
r&&(n.body=r),e.withCredentials&&(n.credentials="include")
var i,o=!1
fetch(t,n).then((function(t){if(!o){o=!0,i&&window.clearTimeout(i)
var n=t.ok,r=function(r){r=r||{}
var i=e.context||N
n?e.onSuccess&&e.onSuccess.call(i,r,t):e.onError&&e.onError.call(i,r,t),e.P&&e.P.call(i,r,t)}
"JSON"==(e.format||"JSON")&&(n||400<=t.status&&500>t.status)?t.json().then(r,(function(){r(null)})):r(null)}})),e.Y&&0<e.timeout&&(i=In((function(){o||(o=!0,window.clearTimeout(i),e.Y.call(e.context||N))}),e.timeout))}else _r(t,e)}(f,o):Bn("networkless_gel")&&r.retry?(o.method="POST",ji(f,o)):(o.method="POST",o.u||(o.u={}),_r(f,o))}catch(p){if("InvalidAccessError"!=p.name)throw p
c&&(Cr(c),c=0),pn(Error("An extension is blocking network request."))}c&&Xn((function(){Pr(t)}),5e3)}))}h(Mi,Error),Ui.prototype.isReady=function(){return!this.f&&Nr()&&(this.f=xr()),!!this.f}
var qi,Vi=[{W:function(t){return"Cannot read property '"+t.key+"'"},R:{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"]}]}},{W:function(t){return"Cannot call '"+t.key+"'"},R:{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"]}]}}]
function Xi(){this.f=[],this.g=[]}var Yi=new Ge,Gi=new Set,Ki=0,Fi=["PhantomJS","Googlebot","TO STOP THIS SECURITY SCAN go/scan"]
function Wi(t,e,n,r){return n+="."+t,t=String(JSON.stringify(e)).substr(0,500),r[n]=t,n.length+t.length}function zi(t,e,n){if(this.l=this.f=this.g=null,this.j=R(this),this.h=0,this.s=!1,this.m=[],this.i=null,this.v=n,this.G={},n=document,(t="string"==typeof t?n.getElementById(t):t)&&(n="iframe"==t.tagName.toLowerCase(),e.host||(e.host=n?Xt(t.src):"https://www.youtube.com"),this.g=new Ln(e),n||(e=function(t,e){for(var n=document.createElement("iframe"),r=e.attributes,i=0,o=r.length;i<o;i++){var a=r[i].value
null!=a&&""!=a&&"null"!=a&&n.setAttribute(r[i].name,a)}n.setAttribute("frameBorder",0),n.setAttribute("allowfullscreen",1),n.setAttribute("allow","accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture"),n.setAttribute("title","YouTube "+Mn(t.g,"title")),(r=Mn(t.g,"width"))&&n.setAttribute("width",r),(r=Mn(t.g,"height"))&&n.setAttribute("height",r)
var s=t.M()
return s.enablejsapi=window.postMessage?1:0,window.location.host&&(s.origin=window.location.protocol+"//"+window.location.host),s.widgetid=t.j,window.location.href&&Y(["debugjs","debugcss"],(function(t){var e=window.location.href,n=e.search(Kt)
t:{for(var r=0,i=t.length;0<=(r=e.indexOf(t,r))&&r<n;){var o=e.charCodeAt(r-1)
if((38==o||63==o)&&(!(o=e.charCodeAt(r+i))||61==o||38==o||35==o))break t
r+=i+1}r=-1}0>r?e=null:((0>(i=e.indexOf("&",r))||i>n)&&(i=n),r+=t.length+1,e=decodeURIComponent(e.substr(r,i-r).replace(/\+/g," "))),null!==e&&(s[t]=e)})),n.src=jSecure.sanitizeUrl(Mn(t.g,"host")+t.N()+"?"+Gt(s)),n}(this,t),this.l=t,(n=t.parentNode)&&n.replaceChild(e,t),t=e),this.f=t,this.f.id||(this.f.id="widget"+R(this.f)),An[this.f.id]=this,window.postMessage)){for(var r in this.i=new Ge,function(t){(function(t,e,n){Un||(Un={},_n(window,"message",L(t.i,t))),Un[n]=e})(t.g,t,t.j),t.h=Sn(L(t.Z,t)),_n(t.f,"load",L((function(){window.clearInterval(this.h),this.h=Sn(L(this.Z,this))}),t))}(this),e=Mn(this.g,"events"))e.hasOwnProperty(r)&&this.addEventListener(r,e[r])
for(var i in jn)Hi(this,i)}}function Hi(t,e){var n=e.split(".")
if(2==n.length){var r=n[1]
t.v==n[0]&&Qi(t,r)}}function Ji(t,e,n){n=n||[],e={event:"command",func:e,args:n=Array.prototype.slice.call(n)},t.s?t.S(e):t.m.push(e)}function Qi(t,e){t.G[e]||(t.G[e]=!0,Ji(t,"addEventListener",[e]))}function Zi(t,e){if(!t)throw Error("YouTube player element ID required.")
var n={title:"video player",videoId:"",width:640,height:360}
if(e)for(var r in e)n[r]=e[r]
zi.call(this,t,n,"player"),this.C={},this.playerInfo={}}function $i(t,e){if(k(e))for(var n in e)t.playerInfo[n]=e[n]}function to(t){if("iframe"!=t.tagName.toLowerCase()){var e=Dn(t,"videoid")
e&&new Zi(t,e={videoId:e,width:Dn(t,"width"),height:Dn(t,"height")})}}function eo(t,e){var n={title:"Thumbnail",videoId:"",width:120,height:68}
if(e)for(var r in e)n[r]=e[r]
zi.call(this,t,n,"thumbnail")}function no(t){if("iframe"!=t.tagName.toLowerCase()){var e=Dn(t,"videoid")
if(e){e={videoId:e,events:{},width:Dn(t,"width"),height:Dn(t,"height"),thumbWidth:Dn(t,"thumb-width"),thumbHeight:Dn(t,"thumb-height"),thumbAlign:Dn(t,"thumb-align")}
var n=Dn(t,"onclick")
n&&(e.events.onClick=n),new eo(t,e)}}}(t=zi.prototype).setSize=function(t,e){return this.f.width=t,this.f.height=e,this},t.qa=function(){return this.f},t.ba=function(t){this.K(t.event,t)},t.addEventListener=function(t,e){var n=e
return"string"==typeof e&&(n=function(){window[e].apply(window,arguments)}),n?(this.i.subscribe(t,n),Qi(this,t),this):this},t.destroy=function(){this.f.id&&(An[this.f.id]=null)
var t=this.i
if(t&&"function"==typeof t.dispose&&t.dispose(),this.l){var e=(t=this.f).parentNode
e&&e.replaceChild(this.l,t)}else(t=this.f)&&t.parentNode&&t.parentNode.removeChild(t)
for(var n in Un&&(Un[this.j]=null),this.g=null,t=this.f,yn)yn[n][0]==t&&bn(n)
this.l=this.f=null},t.M=function(){return{}},t.K=function(t,e){if(!this.i.h){var n={target:this,data:e}
this.i.J(t,n),function(t,e){Rn.J.apply(Rn,arguments)}(this.v+"."+t,n)}},t.Z=function(){this.f&&this.f.contentWindow?this.S({event:"listening"}):window.clearInterval(this.h)},t.S=function(t){t.id=this.j,t.channel="widget"
var e=Ne(t),n=this.g,r=Xt(this.f.src||""),i=0==r.indexOf("https:")?[r]:n.f?[r.replace("http:","https:")]:n.h?[r]:[r,r.replace("http:","https:")]
if(this.f.contentWindow)for(var o=0;o<i.length;o++)try{this.f.contentWindow.postMessage(e,i[o])}catch(oe){if(!oe.name||"SyntaxError"!=oe.name)throw oe
if(!(oe.message&&0<oe.message.indexOf("target origin ''"))){var s=void 0,u=void 0,c=oe;(u=void 0===u?{}:u).name=cn("INNERTUBE_CONTEXT_CLIENT_NAME",1),u.version=cn("INNERTUBE_CONTEXT_CLIENT_VERSION",void 0)
var f=u||{},l="WARNING"
if(l=void 0===l?"ERROR":l,s=void 0!==s&&s,c){if(Bn("console_log_js_exceptions")){var h=c,p=[]
p.push("Name: "+h.name),p.push("Message: "+h.message),h.hasOwnProperty("params")&&p.push("Error Params: "+JSON.stringify(h.params)),p.push("File name: "+h.fileName),p.push("Stacktrace: "+h.stack),window.console.log(p.join("\n"),h)}if((window&&window.yterr||s)&&!(5<=Ki)&&0!==c.sampleWeight){var d=void 0,v=c,g=f,y=Rt(v),m=y.message||"Unknown Error",w=y.name||"UnknownError",b=y.lineNumber||"Not available",E=y.fileName||"Not available",_=y.stack||v.f||"Not available"
if(v.hasOwnProperty("args")&&v.args&&v.args.length)for(var I=0,S=0;S<v.args.length;S++){var T=v.args[S],N="params."+S
if(I+=N.length,T)if(Array.isArray(T)){for(var O=g,A=I,k=0;k<T.length&&!(T[k]&&(A+=Wi(k,T[k],N,O),500<A));k++);I=A}else if("object"==typeof T){var R=void 0,j=g,C=I
for(R in T)if(T[R]&&500<(C+=Wi(R,T[R],N,j)))break
I=C}else g[N]=String(JSON.stringify(T)).substring(0,500),I+=g[N].length
else g[N]=String(JSON.stringify(T)).substring(0,500),I+=g[N].length
if(500<=I)break}else if(v.hasOwnProperty("params")&&v.params){var P=v.params
if("object"==typeof v.params){var D=0
for(d in P)if(P[d]){var L="params."+d,M=String(JSON.stringify(P[d])).substr(0,500)
if(g[L]=M,500<(D+=L.length+M.length))break}}else g.params=String(JSON.stringify(P)).substr(0,500)}navigator.vendor&&!g.hasOwnProperty("vendor")&&(g.vendor=navigator.vendor)
var U={message:m,name:w,lineNumber:b,fileName:E,stack:_,params:g},B=Number(v.columnNumber)
isNaN(B)||(U.lineNumber=U.lineNumber+":"+B)
for(var q,V=U,X=a(Vi),Y=X.next();!Y.done;Y=X.next()){var G=Y.value
if(G.R[V.name])for(var K=a(G.R[V.name]),F=K.next();!F.done;F=K.next()){var W=F.value,z=V.message.match(W.regexp)
if(z){V.params["error.original"]=z[0]
for(var H=W.groups,J={},Q=0;Q<H.length;Q++)J[H[Q]]=z[Q+1],V.params["error."+H[Q]]=z[Q+1]
V.message=G.W(J)
break}}}if(q=V,window.yterr&&"function"==typeof window.yterr&&window.yterr(q),!(Gi.has(q.message)||0<=q.stack.indexOf("/YouTubeCenter.js")||0<=q.stack.indexOf("/mytube.js"))){if(Yi.J("handleError",q),Bn("kevlar_gel_error_routing")){var $=void 0,tt=l,et=q
t:{for(var nt=a(Fi),rt=nt.next();!rt.done;rt=nt.next()){if(Z&&0<=Z.toLowerCase().indexOf(rt.value.toLowerCase())){var it=!0
break t}}it=!1}if(!it){var ot={stackTrace:et.stack}
et.fileName&&(ot.filename=et.fileName)
var at=et.lineNumber&&et.lineNumber.split?et.lineNumber.split(":"):[]
0!==at.length&&(1!==at.length||isNaN(Number(at[0]))?2!==at.length||isNaN(Number(at[0]))||isNaN(Number(at[1]))||(ot.lineNumber=Number(at[0]),ot.columnNumber=Number(at[1])):ot.lineNumber=Number(at[0]))
var st=et.message,ut=et.name
qi||(qi=new Xi)
var ct=qi
t:{for(var ft=a(ct.g),lt=ft.next();!lt.done;lt=ft.next()){var ht=lt.value
if(et.message&&et.message.match(ht.f)){var pt=ht.weight
break t}}for(var dt=a(ct.f),vt=dt.next();!vt.done;vt=dt.next()){var gt=vt.value
if(gt.f(et)){pt=gt.weight
break t}}pt=1}var yt={level:"ERROR_LEVEL_UNKNOWN",message:st,errorClassName:ut,sampleWeight:pt}
"ERROR"===tt?yt.level="ERROR_LEVEL_ERROR":"WARNING"===tt&&(yt.level="ERROR_LEVEL_WARNNING")
var mt={isObfuscated:!0,browserStackInfo:ot},wt={pageUrl:window.location.href,kvPairs:[]},bt=et.params
if(bt)for(var Et=a(Object.keys(bt)),_t=Et.next();!_t.done;_t=Et.next()){var It=_t.value
wt.kvPairs.push({key:"client."+It,value:String(bt[It])})}var St=cn("SERVER_NAME",void 0),Tt=cn("SERVER_VERSION",void 0)
St&&Tt&&(wt.kvPairs.push({key:"server.name",value:St}),wt.kvPairs.push({key:"server.version",value:Tt}))
var Nt={errorMetadata:wt,stackTrace:mt,logMessage:yt}
$=void 0===$?{}:$
var xt=Ui
cn("ytLoggingEventsDefaultDisabled",!1)&&(xt=null)
var Ot=xt,At=$
At=void 0===At?{}:At
var kt={}
kt.eventTimeMs=Math.round(At.timestamp||Jn()),kt.clientError=Nt
var jt=String
if(At.timestamp)var Ct=-1
else{var Pt=x("_lact",window)
Ct=null==Pt?-1:Math.max(Date.now()-Pt,0)}if(kt.context={lastActivityMs:jt(Ct)},Bn("log_sequence_info_on_gel_web")&&At.ca){var Dt=kt.context,Lt=At.ca
dr[Lt]=Lt in dr?dr[Lt]+1:0,Dt.sequence={index:dr[Lt],groupKey:Lt},At.Ka&&delete dr[At.ca]}var Mt=kt,Ut=At.Ja,Bt=Ot,qt=""
if(Ut){var Vt=Ut,Yt={}
Vt.videoId?Yt.videoId=Vt.videoId:Vt.playlistId&&(Yt.playlistId=Vt.playlistId),ur[Ut.token]=Yt,qt=Ut.token}var Gt=sr.get(qt)||[]
sr.set(qt,Gt),Gt.push(Mt),Bt&&(er=new Bt)
var Kt=qn("web_logging_max_batch")||100,Ft=Jn()
Gt.length>=Kt?cr():10<=Ft-ir&&(fr(),ir=Ft),cr()}}var Wt,zt=q,Ht=zt.params||{},Jt={ra:{a:"logerror",t:"jserror",type:zt.name,msg:zt.message.substr(0,250),line:zt.lineNumber,level:l,"client.name":Ht.name},u:{url:cn("PAGE_NAME",window.location.href),file:zt.fileName},method:"POST"}
if(Ht.version&&(Jt["client.version"]=Ht.version),Jt.u){zt.stack&&(Jt.u.stack=zt.stack)
for(var Qt=a(Object.keys(Ht)),Zt=Qt.next();!Zt.done;Zt=Qt.next()){var $t=Zt.value
Jt.u["client."+$t]=Ht[$t]}if(Wt=cn("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS",void 0))for(var te=a(Object.keys(Wt)),ee=te.next();!ee.done;ee=te.next()){var ne=ee.value
Jt.u[ne]=Wt[ne]}var re=cn("SERVER_NAME",void 0),ie=cn("SERVER_VERSION",void 0)
re&&ie&&(Jt.u["server.name"]=re,Jt.u["server.version"]=ie)}_r(cn("ECATCHER_REPORT_HOST","")+"/error_204",Jt),Gi.add(q.message),Ki++}}}}}else console&&console.warn&&console.warn("The YouTube player is not attached to the DOM. API calls should be made after the onReady event. See more: https://developers.google.com/youtube/iframe_api_reference#Events")},h(Zi,zi),(t=Zi.prototype).N=function(){return"/embed/"+Mn(this.g,"videoId")},t.M=function(){var t=Mn(this.g,"playerVars")
if(t){var e,n={}
for(e in t)n[e]=t[e]
t=n}else t={}
if(window!=window.top&&document.referrer&&(t.widget_referrer=document.referrer.substring(0,256)),e=Mn(this.g,"embedConfig")){if(k(e))try{e=JSON.stringify(e)}catch(r){console.error("Invalid embed config JSON",r)}t.embed_config=e}return t},t.ba=function(t){var e=t.event
switch(t=t.info,e){case"apiInfoDelivery":if(k(t))for(var n in t)this.C[n]=t[n]
break
case"infoDelivery":$i(this,t)
break
case"initialDelivery":window.clearInterval(this.h),this.playerInfo={},this.C={},function(t,e){Y(e,(function(t){this[t]||("getCurrentTime"==t?this[t]=function(){var t=this.playerInfo.currentTime
if(1==this.playerInfo.playerState){var e=(Date.now()/1e3-this.playerInfo.currentTimeLastUpdated_)*this.playerInfo.playbackRate
0<e&&(t+=Math.min(e,1))}return t}:function(t){return(0===t.search("cue")||0===t.search("load"))&&"loadModule"!==t}(t)?this[t]=function(){return this.playerInfo={},this.C={},Ji(this,t,arguments),this}:function(t){return 0===t.search("get")||0===t.search("is")}(t)?this[t]=function(){var e=0
return 0===t.search("get")?e=3:0===t.search("is")&&(e=2),this.playerInfo[t.charAt(e).toLowerCase()+t.substr(e+1)]}:this[t]=function(){return Ji(this,t,arguments),this})}),t)}(this,t.apiInterface),$i(this,t)
break
default:this.K(e,t)}},t.getVideoEmbedCode=function(){var t=parseInt(Mn(this.g,"width"),10),e=parseInt(Mn(this.g,"height"),10),n=Mn(this.g,"host")+this.N()
return at.test(n)&&(-1!=n.indexOf("&")&&(n=n.replace(tt,"&amp;")),-1!=n.indexOf("<")&&(n=n.replace(et,"&lt;")),-1!=n.indexOf(">")&&(n=n.replace(nt,"&gt;")),-1!=n.indexOf('"')&&(n=n.replace(rt,"&quot;")),-1!=n.indexOf("'")&&(n=n.replace(it,"&#39;")),-1!=n.indexOf("\0")&&(n=n.replace(ot,"&#0;"))),'<iframe width="'+t+'" height="'+e+'" src="'+jSecure.htmlEncode(jSecure.sanitizeUrl(n))+'" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>'},t.getOptions=function(t){return this.C.namespaces?t?this.C[t].options||[]:this.C.namespaces||[]:[]},t.getOption=function(t,e){if(this.C.namespaces&&t&&e)return this.C[t][e]},h(eo,zi),eo.prototype.N=function(){return"/embed/"+Mn(this.g,"videoId")},eo.prototype.M=function(){return{player:0,thumb_width:Mn(this.g,"thumbWidth"),thumb_height:Mn(this.g,"thumbHeight"),thumb_align:Mn(this.g,"thumbAlign")}},eo.prototype.K=function(t,e){zi.prototype.K.call(this,t,e?e.info:void 0)},M("YT.PlayerState.UNSTARTED",-1),M("YT.PlayerState.ENDED",0),M("YT.PlayerState.PLAYING",1),M("YT.PlayerState.PAUSED",2),M("YT.PlayerState.BUFFERING",3),M("YT.PlayerState.CUED",5),M("YT.get",(function(t){return An[t]})),M("YT.scan",Cn),M("YT.subscribe",(function(t,e,n){for(var r in Rn.subscribe(t,e,n),jn[t]=!0,An)Hi(An[r],t)})),M("YT.unsubscribe",(function(t,e,n){(function(t,e,n){var r=Rn
if(t=r.g[t]){var i=r.f;(t=function(t,e){t:{for(var n=t.length,r="string"==typeof t?t.split(""):t,i=0;i<n;i++)if(i in r&&e.call(void 0,r[i],i,t)){n=i
break t}n=-1}return 0>n?null:"string"==typeof t?t.charAt(n):t[n]}(t,(function(t){return i[t+1]==e&&i[t+2]==n})))&&r.L(t)}})(t,e,n)})),M("YT.Player",Zi),M("YT.Thumbnail",eo),zi.prototype.destroy=zi.prototype.destroy,zi.prototype.setSize=zi.prototype.setSize,zi.prototype.getIframe=zi.prototype.qa,zi.prototype.addEventListener=zi.prototype.addEventListener,Zi.prototype.getVideoEmbedCode=Zi.prototype.getVideoEmbedCode,Zi.prototype.getOptions=Zi.prototype.getOptions,Zi.prototype.getOption=Zi.prototype.getOption,kn.push((function(t){t=Pn("player",t),Y(t,to)})),kn.push((function(){var t=Pn("thumbnail")
Y(t,no)})),"undefined"!=typeof YTConfig&&YTConfig.parsetags&&"onload"!=YTConfig.parsetags||Cn()
var ro=N.onYTReady
ro&&ro()
var io=N.onYouTubeIframeAPIReady
io&&io()
var oo=N.onYouTubePlayerAPIReady
oo&&oo()}).call(this)

//# sourceMappingURL=www-widgetapi.map