(function(){'use strict';var p;function aa(a){var b=0;return function(){return b>>0)+"_",f=0;return b}); u("Symbol.iterator",function(a){if(a)return a;a=Symbol("Symbol.iterator");for(var b="Array Int8Array Uint8Array Uint8ClampedArray Int16Array Uint16Array Int32Array Uint32Array Float32Array Float64Array".split(" "),c=0;c>>0),ta=0;function ua(a,b,c){return a.call.apply(a.bind,arguments)} function va(a,b,c){if(!a)throw Error();if(arguments.length>2){var d=Array.prototype.slice.call(arguments,2);return function(){var f=Array.prototype.slice.call(arguments);Array.prototype.unshift.apply(f,d);return a.apply(b,f)}}return function(){return a.apply(b,arguments)}} function wa(a,b,c){wa=Function.prototype.bind&&Function.prototype.bind.toString().indexOf("native code")!=-1?ua:va;return wa.apply(null,arguments)} function H(a,b){a=a.split(".");var c=F;a[0]in c||typeof c.execScript=="undefined"||c.execScript("var "+a[0]);for(var d;a.length&&(d=a.shift());)a.length||b===void 0?c[d]&&c[d]!==Object.prototype[d]?c=c[d]:c=c[d]={}:c[d]=b} function xa(a,b){function c(){} c.prototype=b.prototype;a.I=b.prototype;a.prototype=new c;a.prototype.constructor=a;a.Y=function(d,f,k){for(var e=Array(arguments.length-2),g=2;g=0&&Array.prototype.splice.call(a,b,1)} function Aa(a){return Array.prototype.concat.apply([],arguments)} function Ba(a){var b=a.length;if(b>0){for(var c=Array(b),d=0;d0){this.h--;var a=this.g;this.g=a.next;a.next=null}else a=this.i();return a};var Da=/&/g,Ea=//g,Ga=/"/g,Ha=/'/g,Ia=/\x00/g,Ja=/[\x00&<>"']/;/* Copyright Google LLC SPDX-License-Identifier: Apache-2.0 */ function J(a){this.g=a} J.prototype.toString=function(){return this.g}; var Ka=new J("about:invalid#zClosurez");function La(a){this.S=a} function K(a){return new La(function(b){return b.substr(0,a.length+1).toLowerCase()===a+":"})} var Ma=[K("data"),K("http"),K("https"),K("mailto"),K("ftp"),new La(function(a){return/^[^:]*([/?#]|$)/.test(a)})]; function Na(a){var b=b===void 0?Ma:b;a:if(b=b===void 0?Ma:b,!(a instanceof J)){for(var c=0;c")!=-1&&(a=a.replace(Fa,">")),a.indexOf('"')!=-1&&(a=a.replace(Ga,""")),a.indexOf("'")!=-1&&(a=a.replace(Ha,"'")),a.indexOf("\x00")!=-1&&(a=a.replace(Ia,"�")));return a} ;var Ta,O;a:{for(var Ua=["CLOSURE_FLAGS"],P=F,Va=0;Va0:!1} function ab(a){var b={};a.forEach(function(c){b[c[0]]=c[1]}); return function(c){return b[c.find(function(d){return d in b})]||""}} function bb(){for(var a=Xa(),b=RegExp("([A-Z][\\w ]+)/([^\\s]+)\\s*(?:\\((.*?)\\))?","g"),c=[],d;d=b.exec(a);)c.push([d[1],d[2],d[3]||void 0]);a=ab(c);return($a()?Za():(R("Chrome")||R("CriOS"))&&($a()||!R("Edge"))||R("Silk"))?a(["Chrome","CriOS","HeadlessChrome"]):""} function cb(){if($a()){var a=Q.brands.find(function(b){return b.brand==="Chromium"}); if(!a||!a.version)return NaN;a=a.version.split(".")}else{a=bb();if(a==="")return NaN;a=a.split(".")}return a.length===0?NaN:Number(a[0])} ;function db(){var a=document;var b="IFRAME";a.contentType==="application/xhtml+xml"&&(b=b.toLowerCase());return a.createElement(b)} ;var eb;function fb(){var a=F.MessageChannel;typeof a==="undefined"&&typeof window!=="undefined"&&window.postMessage&&window.addEventListener&&!R("Presto")&&(a=function(){var f=db();f.style.display="none";document.documentElement.appendChild(f);var k=f.contentWindow;f=k.document;f.open();f.close();var e="callImmediate"+Math.random(),g=k.location.protocol=="file:"?"*":k.location.protocol+"//"+k.location.host;f=wa(function(h){if((g=="*"||h.origin==g)&&h.data==e)this.port1.onmessage()},this); k.addEventListener("message",f,!1);this.port1={};this.port2={postMessage:function(){k.postMessage(e,g)}}}); if(typeof a!=="undefined"){var b=new a,c={},d=c;b.port1.onmessage=function(){if(c.next!==void 0){c=c.next;var f=c.F;c.F=null;f()}}; return function(f){d.next={F:f};d=d.next;b.port2.postMessage(0)}}return function(f){F.setTimeout(f,0)}} ;function gb(a){F.setTimeout(function(){throw a;},0)} ;function hb(){this.h=this.g=null} hb.prototype.add=function(a,b){var c=ib.get();c.set(a,b);this.h?this.h.next=c:this.g=c;this.h=c}; hb.prototype.remove=function(){var a=null;this.g&&(a=this.g,this.g=this.g.next,this.g||(this.h=null),a.next=null);return a}; var ib=new Ca(function(){return new jb},function(a){return a.reset()}); function jb(){this.next=this.scope=this.g=null} jb.prototype.set=function(a,b){this.g=a;this.scope=b;this.next=null}; jb.prototype.reset=function(){this.next=this.scope=this.g=null};var S,kb=!1,lb=new hb;function mb(a){S||nb();kb||(S(),kb=!0);lb.add(a,void 0)} function nb(){if(F.Promise&&F.Promise.resolve){var a=F.Promise.resolve(void 0);S=function(){a.then(ob)}}else S=function(){var b=ob; typeof F.setImmediate!=="function"||F.Window&&F.Window.prototype&&F.Window.prototype.setImmediate==F.setImmediate?(eb||(eb=fb()),eb(b)):F.setImmediate(b)}} function ob(){for(var a;a=lb.remove();){try{a.g.call(a.scope)}catch(c){gb(c)}var b=ib;b.j(a);b.h<100&&(b.h++,a.next=b.g,b.g=a)}kb=!1} ;function T(){this.i=this.i;this.j=this.j} T.prototype.i=!1;T.prototype.dispose=function(){this.i||(this.i=!0,this.C())}; T.prototype[Symbol.dispose]=function(){this.dispose()}; T.prototype.addOnDisposeCallback=function(a,b){this.i?b!==void 0?a.call(b):a():(this.j||(this.j=[]),b&&(a=a.bind(b)),this.j.push(a))}; T.prototype.C=function(){if(this.j)for(;this.j.length;)this.j.shift()()};function U(a){T.call(this);this.s=1;this.l=[];this.m=0;this.g=[];this.h={};this.u=!!a} xa(U,T);p=U.prototype;p.subscribe=function(a,b,c){var d=this.h[a];d||(d=this.h[a]=[]);var f=this.s;this.g[f]=a;this.g[f+1]=b;this.g[f+2]=c;this.s=f+3;d.push(f);return f}; function pb(a,b,c){var d=V;if(a=d.h[a]){var f=d.g;(a=a.find(function(k){return f[k+1]==b&&f[k+2]==c}))&&d.D(a)}} p.D=function(a){var b=this.g[a];if(b){var c=this.h[b];this.m!=0?(this.l.push(a),this.g[a+1]=function(){}):(c&&za(c,a),delete this.g[a],delete this.g[a+1],delete this.g[a+2])}return!!b}; p.H=function(a,b){var c=this.h[a];if(c){for(var d=Array(arguments.length-1),f=1,k=arguments.length;f0&&this.m==0)for(;c=this.l.pop();)this.D(c)}}return f!=0}return!1}; function qb(a,b,c){mb(function(){a.apply(b,c)})} p.clear=function(a){if(a){var b=this.h[a];b&&(b.forEach(this.D,this),delete this.h[a])}else this.g.length=0,this.h={}}; p.C=function(){U.I.C.call(this);this.clear();this.l.length=0};var rb=RegExp("^(?:([^:/?#.]+):)?(?://(?:([^\\\\/?#]*)@)?([^\\\\/?#]*?)(?::([0-9]+))?(?=[\\\\/?#]|$))?([^?#]+)?(?:\\?([^#]*))?(?:#([\\s\\S]*))?$");function sb(a){var b=a.match(rb);a=b[1];var c=b[2],d=b[3];b=b[4];var f="";a&&(f+=a+":");d&&(f+="//",c&&(f+=c+"@"),f+=d,b&&(f+=":"+b));return f} function tb(a,b,c){if(Array.isArray(b))for(var d=0;d=119;return b.call(a,c&&!!navigator.permissions&&!!navigator.permissions.query&&"requestStorageAccessFor"in document)})} function zb(){var a=new xb,b=["https://www.youtube.com"];b=b===void 0?wb:b;pa(function(c){switch(c.g){case 1:return C(c,yb(),2);case 2:if(!c.m){c.g=3;break}return C(c,Promise.all(b.map(function(d){var f;return pa(function(k){if(k.g==1)return k.l=2,C(k,navigator.permissions.query({name:"top-level-storage-access",requestedOrigin:d}),4);k.g!=2?(f=k.m,f.state==="prompt"&&a.g.push(d),k.g=0,k.l=0):(k.l=0,k.i=null,k.g=0)})})),4); case 4:a.g.length>0&&window.addEventListener("click",a.h);case 3:return c.return()}})} ;var W={},Ab=[],V=new U,Bb={};function Cb(){for(var a=v(Ab),b=a.next();!b.done;b=a.next())b=b.value,b()} function Db(a,b){return a.tagName.toLowerCase().substring(0,3)==="yt:"?a.getAttribute(b):a.dataset?a.dataset[b]:a.getAttribute("data-"+b)} function Eb(a){V.H.apply(V,arguments)} ;function Fb(a){this.g=a||{};a=[this.g,window.YTConfig||{}];for(var b=0;b=0&&ml)n=l;m+=g.length+1;h=decodeURIComponent(h.slice(m,n!==-1?n:0).replace(/\+/g," "))}h!==null&&(e[g]=h)}); Nb.yt_embedsEnableIframeApiSendFullEmbedUrl&&(window.location.href&&(e.forigin=window.location.href),b=window.location.ancestorOrigins,e.aoriginsup=b===void 0?0:1,b&&b.length>0&&(e.aorigins=Array.from(b).join(",")),window.document.referrer&&(e.gporigin=window.document.referrer));a=""+X(a.h,"host")+("/embed/"+X(a.h,"videoId"))+"?"+ub(e);Nb.yt_embedsEnableIframeSrcWithIntent?(Ra(c,Na(a)),c.sandbox.add("allow-presentation","allow-top-navigation")):c.src=a;return c} p.G=function(){this.g&&this.g.contentWindow?this.sendMessage({event:"listening"}):clearInterval(this.i)}; function Pb(a){Gb(a.h,a,a.id);a.i=setInterval(a.G.bind(a),250);a.g&&(a.u=function(){clearInterval(a.i);a.i=setInterval(a.G.bind(a),250)},a.g.addEventListener("load",a.u))} function Rb(a,b){a.B[b]||(a.B[b]=!0,Sb(a,"addEventListener",[b]))} p.sendMessage=function(a){a.id=this.id;a.channel="widget";a=JSON.stringify(a);var b=[sb(this.g.src||"").replace("http:","https:")];if(this.g.contentWindow)for(var c=0;c0||console&&console.warn&&console.warn(d);else throw d;}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")}; function Tb(a){var b=X(a.h,"playerVars");if(b){var c={},d;for(d in b)c[d]=b[d];b=c}else b={};window!==window.top&&document.referrer&&(b.widget_referrer=document.referrer.substring(0,256));if(a=X(a.h,"embedConfig")){if(G(a))try{a=JSON.stringify(a)}catch(f){console.error("Invalid embed config JSON",f)}b.embed_config=a}return b} function Jb(a,b){if(G(b)){for(var c in b)b.hasOwnProperty(c)&&(a.playerInfo[c]=b[c]);a.playerInfo.hasOwnProperty("videoData")&&(b=a.playerInfo.videoData,b.hasOwnProperty("title")&&b.title?(b=b.title,b!==a.videoTitle&&(a.videoTitle=b,a.g.setAttribute("title",b))):(a.videoTitle="",a.g.setAttribute("title","YouTube "+X(a.h,"title"))))}} function Kb(a,b){I(b,function(c){this[c]||(c==="getCurrentTime"?this[c]=function(){var d=this.playerInfo.currentTime;if(this.playerInfo.playerState===1){var f=(Date.now()/1E3-this.playerInfo.currentTimeLastUpdated_)*this.playerInfo.playbackRate;f>0&&(d+=Math.min(f,1))}return d}:Lb(c)?this[c]=function(){this.playerInfo={}; this.v={};Sb(this,c,arguments);return this}:Mb(c)?this[c]=function(){var d=0; c.search("get")===0?d=3:c.search("is")===0&&(d=2);return this.playerInfo[c.charAt(d).toLowerCase()+c.substr(d+1)]}:this[c]=function(){Sb(this,c,arguments); return this})},a)} p.getVideoEmbedCode=function(){var a=X(this.h,"host")+("/embed/"+X(this.h,"videoId")),b=Number(X(this.h,"width")),c=Number(X(this.h,"height"));if(isNaN(b)||isNaN(c))throw Error("Invalid width or height property");b=Math.floor(b);c=Math.floor(c);var d=this.videoTitle;a=Sa(a);d=Sa(d!=null?d:"YouTube video player");return'')}; p.getOptions=function(a){return this.v.namespaces?a?this.v[a]?this.v[a].options||[]:[]:this.v.namespaces||[]:[]}; p.getOption=function(a,b){if(this.v.namespaces&&a&&b&&this.v[a])return this.v[a][b]}; function Ub(a){if(a.tagName.toLowerCase()!=="iframe"){var b=Db(a,"videoid");b&&(b={videoId:b,width:Db(a,"width"),height:Db(a,"height")},new Z(a,b))}} ;H("YT.PlayerState.UNSTARTED",-1);H("YT.PlayerState.ENDED",0);H("YT.PlayerState.PLAYING",1);H("YT.PlayerState.PAUSED",2);H("YT.PlayerState.BUFFERING",3);H("YT.PlayerState.CUED",5);H("YT.get",function(a){return W[a]}); H("YT.scan",Cb);H("YT.subscribe",function(a,b,c){V.subscribe(a,b,c);Bb[a]=!0;for(var d in W)W.hasOwnProperty(d)&&Qb(W[d],a)}); H("YT.unsubscribe",function(a,b,c){pb(a,b,c)}); H("YT.Player",Z);Z.prototype.destroy=Z.prototype.destroy;Z.prototype.setSize=Z.prototype.setSize;Z.prototype.getIframe=Z.prototype.getIframe;Z.prototype.addEventListener=Z.prototype.addEventListener;Z.prototype.getVideoEmbedCode=Z.prototype.getVideoEmbedCode;Z.prototype.getOptions=Z.prototype.getOptions;Z.prototype.getOption=Z.prototype.getOption; Ab.push(function(a){var b=a;b||(b=document);a=Ba(b.getElementsByTagName("yt:player"));var c=b||document;if(c.querySelectorAll&&c.querySelector)b=c.querySelectorAll(".yt-player");else{var d;c=document;b=b||c;if(b.querySelectorAll&&b.querySelector)b=b.querySelectorAll(".yt-player");else if(b.getElementsByClassName){var f=b.getElementsByClassName("yt-player");b=f}else{f=b.getElementsByTagName("*");var k={};for(c=d=0;b=f[c];c++){var e=b.className,g;if(g=typeof e.split=="function")g=ya(e.split(/\s+/), "yt-player")>=0;g&&(k[d++]=b)}k.length=d;b=k}}b=Ba(b);I(Aa(a,b),Ub)}); typeof YTConfig!=="undefined"&&YTConfig.parsetags&&YTConfig.parsetags!=="onload"||Cb();var Vb=F.onYTReady;Vb&&Vb();var Wb=F.onYouTubeIframeAPIReady;Wb&&Wb();var Xb=F.onYouTubePlayerAPIReady;Xb&&Xb();}).call(this);