'use strict';/*
 Portions of this code are from MochiKit, received by
 The Closure Authors under the MIT license. All other code is Copyright
 2005-2009 The Closure Authors. All Rights Reserved.
*/
var Sz=function(a,b){this.u=[];this.J=a;this.M=b||null;this.C=this.j=!1;this.l=void 0;this.G=this.L=this.D=!1;this.F=0;this.h=null;this.o=0};Sz.prototype.cancel=function(a){if(this.j)this.l instanceof Sz&&this.l.cancel();else{if(this.h){var b=this.h;delete this.h;a?b.cancel(a):(b.o--,0>=b.o&&b.cancel())}this.J?this.J.call(this.M,this):this.G=!0;this.j||this.g(new Tz(this))}};Sz.prototype.H=function(a,b){this.D=!1;Uz(this,a,b)};
var Uz=function(a,b,c){a.j=!0;a.l=c;a.C=!b;Vz(a)},Xz=function(a){if(a.j){if(!a.G)throw new Wz(a);a.G=!1}};Sz.prototype.callback=function(a){Xz(this);Uz(this,!0,a)};Sz.prototype.g=function(a){Xz(this);Uz(this,!1,a)};var Zz=function(a,b,c){return Yz(a,b,null,c)},$z=function(a,b){return Yz(a,null,b,void 0)},Yz=function(a,b,c,d){a.u.push([b,c,d]);a.j&&Vz(a);return a};
Sz.prototype.then=function(a,b,c){var d,e,f=new Ys(function(g,h){d=g;e=h});Yz(this,d,function(g){g instanceof Tz?f.cancel():e(g)});return f.then(a,b,c)};Us(Sz);var aA=function(a,b){b instanceof Sz?Zz(a,x(b.m,b)):Zz(a,function(){return b})};Sz.prototype.m=function(a){var b=new Sz;Yz(this,b.callback,b.g,b);a&&(b.h=this,this.o++);return b};Sz.prototype.isError=function(a){return a instanceof Error};
var bA=function(a){return Ob(a.u,function(b){return Ma(b[1])})},Vz=function(a){if(a.F&&a.j&&bA(a)){var b=a.F,c=cA[b];c&&(w.clearTimeout(c.Sa),delete cA[b]);a.F=0}a.h&&(a.h.o--,delete a.h);b=a.l;for(var d=c=!1;a.u.length&&!a.D;){var e=a.u.shift(),f=e[0],g=e[1];e=e[2];if(f=a.C?g:f)try{var h=f.call(e||a.M,b);void 0!==h&&(a.C=a.C&&(h==b||a.isError(h)),a.l=b=h);if(Vs(b)||"function"===typeof w.Promise&&b instanceof w.Promise)d=!0,a.D=!0}catch(m){b=m,a.C=!0,bA(a)||(c=!0)}}a.l=b;d&&(h=x(a.H,a,!0),d=x(a.H,
a,!1),b instanceof Sz?(Yz(b,h,d),b.L=!0):b.then(h,d));c&&(b=new dA(b),cA[b.Sa]=b,a.F=b.Sa)},fA=function(){var a=new Sz;a.callback(new eA(200,""));return a},gA=function(a){var b=new Sz;a.then(function(c){b.callback(c)},function(c){b.g(c)});return b},hA=function(a){var b=new Sz;b.g(a);return b},Wz=function(){Ab.call(this)};B(Wz,Ab);Wz.prototype.message="Deferred has already fired";Wz.prototype.name="AlreadyCalledError";var Tz=function(){Ab.call(this)};B(Tz,Ab);Tz.prototype.message="Deferred was canceled";
Tz.prototype.name="CanceledError";var dA=function(a){this.Sa=w.setTimeout(x(this.h,this),0);this.g=a};dA.prototype.h=function(){delete cA[this.Sa];throw this.g;};var cA={};var iA=function(){T.call(this)};B(iA,T);iA.prototype.s=Zf("fava.debug.ErrorReporter");iA.prototype.init=function(){};new iA;Zf("fava.debug.errorContext");/*

 Copyright The Closure Library Authors.
 SPDX-License-Identifier: Apache-2.0
*/
var jA=function(a,b){T.call(this);this.j=null;this.l=b;this.g=[];if(a>this.l)throw Error("[goog.structs.SimplePool] Initial cannot be greater than max");for(b=0;b<a;b++)this.g.push(this.h())};B(jA,T);var kA=function(a,b){a.j=b},mA=function(a,b){a.g.length<a.l?a.g.push(b):lA(b)};jA.prototype.h=function(){return this.j?this.j():{}};var lA=function(a){if(Na(a))if(Ma(a.dispose))a.dispose();else for(var b in a)delete a[b]};
jA.prototype.ba=function(){jA.Db.ba.call(this);for(var a=this.g;a.length;)lA(a.pop());delete this.g};var pA=function(){this.g=[];this.h=new Om;this.G=this.H=this.M=this.o=0;this.j=new Om;this.m=this.D=0;this.J=1;this.l=new jA(0,4E3);this.l.h=function(){return new nA};this.F=new jA(0,50);this.F.h=function(){return new oA};var a=this;this.u=new jA(0,2E3);kA(this.u,function(){return a.J++});this.C={}};pA.prototype.s=Zf("goog.debug.Trace");var oA=function(){this.al=this.time=this.count=0};
oA.prototype.toString=function(){var a=[];a.push(this.type," ",this.count," (",Math.round(10*this.time)/10," ms)");this.al&&a.push(" [VarAlloc = ",this.al,"]");return a.join("")};var nA=function(){},sA=function(a,b,c,d){var e=[];-1==c?e.push("    "):e.push(qA(a.eventTime-c));e.push(" ",rA(a.eventTime-b));0==a.eventType?e.push(" Start        "):1==a.eventType?(e.push(" Done "),e.push(qA(a.h-a.startTime)," ms ")):e.push(" Comment      ");e.push(d,a);0<a.g&&e.push("[VarAlloc ",a.g,"] ");return e.join("")};
nA.prototype.toString=function(){return null==this.type?this.comment:"["+this.type+"] "+this.comment};var tA={IL:!0};pA.prototype.vk=function(){this.C={}};var uA=function(a){a.C.stop&&Km(a.h,function(b){this.C.stop(b.id,tA)},a);a.h.clear()};
pA.prototype.reset=function(){uA(this);for(var a=0;a<this.g.length;a++){var b=this.g[a];b.id?Rm(this.h,b.id)||(mA(this.u,b.id),mA(this.l,b)):mA(this.l,b)}this.g.length=0;this.o=Va();this.m=this.D=this.G=this.H=this.M=0;a=this.j.Pb();for(b=0;b<a.length;b++){var c=this.j.get(a[b]);c.count=0;c.time=0;c.al=0;mA(this.F,c)}this.j.clear()};
pA.prototype.toString=function(){for(var a=[],b=-1,c=[],d=0;d<this.g.length;d++){var e=this.g[d];1==e.eventType&&c.pop();a.push(" ",sA(e,this.o,b,c.join("")));b=e.eventTime;a.push("\n");0==e.eventType&&c.push("|  ")}if(0!=this.h.ya()){var f=Va();a.push(" Unstopped timers:\n");Km(this.h,function(g){a.push("  ",g," (",f-g.startTime," ms, started at ",rA(g.startTime),")\n")})}b=this.j.Pb();for(d=0;d<b.length;d++)c=this.j.get(b[d]),1<c.count&&a.push(" TOTAL ",c,"\n");a.push("Total tracers created ",this.D,
"\n","Total comments created ",this.m,"\n","Overhead start: ",this.M," ms\n","Overhead end: ",this.H," ms\n","Overhead comment: ",this.G," ms\n");return a.join("")};var qA=function(a){a=Math.round(a);var b="";1E3>a&&(b=" ");100>a&&(b="  ");10>a&&(b="   ");return b+a},rA=function(a){a=Math.round(a);return String(100+a/1E3%60).substring(1,3)+"."+String(1E3+a%1E3).substring(1,4)};new pA;Zf("goog.debug.ErrorReporter");var vA=function(a){this.h=0;this.j=a||100;this.g=[]};k=vA.prototype;k.add=function(a){var b=this.g[this.h];this.g[this.h]=a;this.h=(this.h+1)%this.j;return b};k.get=function(a){a=wA(this,a);return this.g[a]};k.set=function(a,b){a=wA(this,a);this.g[a]=b};k.ya=function(){return this.g.length};k.zc=function(){return 0==this.g.length};k.clear=function(){this.h=this.g.length=0};k.Ma=function(){return xA(this,this.ya())};var xA=function(a,b){var c=a.ya(),d=[];for(b=a.ya()-b;b<c;b++)d.push(a.get(b));return d};
vA.prototype.Pb=function(){for(var a=[],b=this.ya(),c=0;c<b;c++)a[c]=c;return a};vA.prototype.lf=function(a){for(var b=this.ya(),c=0;c<b;c++)if(this.get(c)==a)return!0;return!1};var wA=function(a,b){if(b>=a.g.length)throw Error("Out of bounds exception");return a.g.length<a.j?b:(a.h+Number(b))%a.j};Va();Zf("fava.debug.DebugService");var yA=function(a,b,c,d,e,f){var g=new FormData;g.append("prod",Re?"Google_Talk_Plugin_Mac":Se?"Google_Talk_Plugin":"Google_Talk_Plugin_Linux");g.append("ver",(f?f:"unknown")+"-calls");g.append("email",b);g.append("type","log");g.append("log",new Blob([a]),e);c&&g.append("participant_log_id",c);if(a=d)try{a=!!navigator.sendBeacon&&navigator.sendBeacon("https://clients2.google.com/cr/report",g)}catch(m){a=!1}if(a)return fA();try{var h=new Sz;Tv("https://clients2.google.com/cr/report",function(m){m=
m.target;cw(m)?h.callback(new eA(m.Ja(),ew(m))):(m=Error(m.u+" "+m.Ja()+" "+ew(m)),h.g(m))},"POST",g);return h}catch(m){return hA(m)}},eA=function(a,b){this.g=a;this.h=b};var zA=function(a,b){xv.call(this);this.G=a||4194304;this.J=b||10485760;this.g=this.l=this.j=this.u=this.H=null;this.h=this.o=0;this.m=[]};t(zA,xv);var AA=function(a){a.j||(a.j=new Uint8Array(a.G+a.J),a.l=a.j.subarray(0,a.G),a.g=a.j.subarray(a.G))};zA.prototype.open=function(a,b,c){if(!this.H){var d=jt();this.H=d.fa;a=BA(a,b,!!c);b=CA(a);b=DA(this,b);EA(this,b,a).then(function(e){this.u=e;this.D();d.resolve()},x(d.reject,d),this)}return this.H};
var HA=function(a){return"undefined"!==typeof TextEncoder?(FA||(FA=new TextEncoder),FA.encode(a)):GA(fk(a))},GA=function(a){if(Uint8Array.__proto__&&Uint8Array.__proto__.from)return Uint8Array.from(a);a=Object(a);if(!a.length)return new Uint8Array(0);for(var b=new Uint8Array(a.length),c=0;c<b.length;c++)b[c]=a[c];return b};zA.prototype.write=function(a){Hb(a,function(b){this.m.push(HA(b))},this);this.D()};zA.prototype.zc=function(){return 0==this.h&&0==this.m.length};
var IA=function(a){var b=0,c=[];if(a.j&&a.h>a.j.length){for(var d=a.l.length;d&&127<a.l[d-1];)d--;for(var e=a.g.length,f=a.o;e&&127<a.g[f];)f++,e--,f==a.g.length&&(f=0);c.push(a.l.subarray(0,d));b+=d;d=GA(fk("...\r\n\r\n##### LOG TRUNCATED - REMOVED "+(a.h-d-e)+" BYTES#####\r\n\r\n..."));c.push(d);b+=d.length;f+e<=a.g.length?c.push(a.g.subarray(f,f+e)):(c.push(a.g.subarray(f)),c.push(a.g.subarray(0,e-(a.g.length-f))));b+=e}else a.j&&a.h&&(b+=a.h,c.push(a.j.subarray(0,a.h)));a.m.length&&Hb(a.m,function(m){c.push(m);
b+=m.length});var g=new Uint8Array(b),h=0;Hb(c,function(m){g.set(m,h);h+=m.length});return g},BA=function(a,b,c){var d=jt();a.then(function(e){e.getFile(b,c?{}:{create:!0},x(d.resolve,d),x(d.reject,d))},x(d.reject,d));return d.fa},CA=function(a){var b=jt();a.then(function(c){c.file(x(b.resolve,b),x(b.reject,b))},x(b.reject,b));return b.fa},DA=function(a,b){var c=jt();b.then(function(d){AA(this);this.h=d.size;if(this.h>this.j.length){var e=jt(),f=new FileReader;f.onload=x(function(){this.l.set(new Uint8Array(f.result));
e.resolve()},this);f.readAsArrayBuffer(d.slice(0,this.l.length));var g=jt(),h=new FileReader;h.onload=x(function(){this.g.set(new Uint8Array(h.result));g.resolve()},this);h.readAsArrayBuffer(d.slice(d.size-this.g.length,d.size));c.resolve(ht([e.fa,g.fa]))}else{var m=new FileReader;m.onload=x(function(){var q=new Uint8Array(m.result);this.j.set(q);this.h>this.l.length&&(this.o=(this.h-this.l.length)%this.g.length);c.resolve()},this);m.readAsArrayBuffer(d)}},x(c.reject,c),a);return c.fa},EA=function(a,
b,c){var d=jt();gt([b,c]).then(function(e){e[1].createWriter(x(function(f){f.seek(f.length);f.onwriteend=x(this.D,this);d.resolve(f)},this),x(d.reject,d))},x(d.reject,d),a);return d.fa};
zA.prototype.D=function(){this.u&&this.u.readyState!=this.u.WRITING&&0<this.m.length&&(this.u.write(new Blob(this.m)),AA(this),Hb(this.m,function(a){var b=this.h;this.h+=a.length;if(b<this.j.length){var c=a.subarray(0,Math.min(this.j.length-b,a.length));this.j.set(c,b);a=a.subarray(c.length)}for(b=this.g.length-this.o;a.length;)c=a.subarray(0,Math.min(b,a.length)),this.g.set(c,this.o),a=a.subarray(c.length),this.o=c.length==b?0:this.o+c.length,b=this.g.length},this),this.m.length=0)};var FA=null;var KA=function(a){K(this,a,"cl:plu",-1,JA,null)};B(KA,J);var LA=function(a){K(this,a,0,-1,null,null)};B(LA,J);var JA=[1];KA.messageId="cl:plu";var MA=function(){};var NA=function(){};B(NA,MA);NA.prototype.ya=function(){var a=0;Km(this.Tb(!0),function(){a++});return a};NA.prototype.clear=function(){var a=Mm(this.Tb(!0)),b=this;Hb(a,function(c){b.remove(c)})};var OA=function(a){this.g=a};B(OA,NA);k=OA.prototype;k.isAvailable=function(){if(!this.g)return!1;try{return this.g.setItem("__sak","1"),this.g.removeItem("__sak"),!0}catch(a){return!1}};k.set=function(a,b){try{this.g.setItem(a,b)}catch(c){if(0==this.g.length)throw"Storage mechanism: Storage disabled";throw"Storage mechanism: Quota exceeded";}};k.get=function(a){a=this.g.getItem(a);if("string"!==typeof a&&null!==a)throw"Storage mechanism: Invalid value was encountered";return a};k.remove=function(a){this.g.removeItem(a)};
k.ya=function(){return this.g.length};k.Tb=function(a){var b=0,c=this.g,d=new Im;d.next=function(){if(b>=c.length)throw Hm;var e=c.key(b++);if(a)return e;e=c.getItem(e);if("string"!==typeof e)throw"Storage mechanism: Invalid value was encountered";return e};return d};k.clear=function(){this.g.clear()};k.key=function(a){return this.g.key(a)};var PA=function(){var a=null;try{a=window.localStorage||null}catch(b){}this.g=a};B(PA,OA);var QA=function(){this.g=new PA;this.h=new Kn};Ja(QA);var RA=[31,37,41,43,47,53,61,67,71,73];QA.prototype.s=Zf("talk.media.webrtc.PendingLogUploadManager");
var SA=function(a){for(var b=[],c=0,d=0;d<a.length;d++){var e=a.charCodeAt(d);255<e&&(b[c++]=e&255,e>>=8);b[c++]=e}for(a=0;a<b.length;a++)b[a]^=RA[a%RA.length];return"wrplumplu-"+Qk(b)},TA=function(a,b,c){var d=Va()-432E6;b=a.g.get(SA(b));if(null!=b)try{var e=Es(b);if("cl:plu"==e[0]){var f=new KA(e),g=Lb(R(f,LA,1),function(h){return null!=L(h,1)&&null!=L(h,2)&&null!=L(h,3)&&0<L(h,1)&&L(h,3)>d&&L(h,2)!=c});Cl(f,1,g);return f}}catch(h){C(a.s,"Invalid pending JS log upload storage: "+b,h)}return new KA};
QA.prototype.add=function(a,b,c){D(this.s,"Recording pending upload for session "+b+" for "+a);this.h.add(b);var d=TA(this,a,b),e=R(d,LA,1);var f=new LA;f=N(f,1,5);b=N(f,2,b);c=N(b,4,c);b=Va();c=N(c,3,b);Wb(e,void 0,0,c);Cl(d,1,e);this.g.set(SA(a),d.va())};QA.prototype.remove=function(a,b){D(this.s,"Removing record for session "+b+" for "+a);b=TA(this,a,b);this.g.set(SA(a),b.va())};
var UA=function(a,b){var c=TA(a,b),d=R(c,LA,1),e=Qb(d,function(q){q=L(q,2);return!this.h.contains(q)},a);if(0<=e){var f=d[e],g=L(f,2),h=L(f,4),m=L(f,1);m--;N(f,1,m);0>=m&&Yb(d,e);Cl(c,1,d);a.g.set(SA(b),c.va());D(a.s,"Signaling session "+g+" for "+b+" to re-upload");a.h.add(g);return{sessionId:g,Dc:h}}return null};var WA=function(){this.m="";this.G=0;this.D=null;this.u=new zA;this.g={};this.C=VA();nt(this.C,Ia);this.j=QA.Ob();this.o=this.h=null;this.M=window.requestIdleCallback||null;this.l=!1};Ja(WA);
var XA=function(a,b,c,d){var e=Va();null==a.D&&(a.D=e);d=null!=d?d:8;if(!(d<a.G))if(c="["+((e-a.D)/1E3).toFixed(3)+"s]"+d+" "+c+"\n",null!=b)a=a.g[b],null!=a&&a.write([c]);else{for(b in a.g)a.g[b].write([c]);null==b&&a.u.write([c])}},ZA=function(a,b,c,d){a.j.add(c,b,d);return YA(a,b,c,d)},YA=function(a,b,c,d){var e="hangouts-call-"+b+".log",f=a.g[b];if(null!=f)return a.l=!0,$z(Zz(yA(IA(f),c,d,!0,e,a.m),x(a.H,a,b,c)),x(a.F,a,b,c));f=new zA;var g=new Sz;f.open(a.C,e,!0).then(function(){if(f.zc())XA(this,
this.h,"JS log for "+b+" has no content",9),g.callback(new eA(null,"No log content for session "+b));else{var h=$z(Zz(yA(IA(f),c,d,!1,void 0,this.m),x(this.H,this,b,c)),x(this.F,this,b,c));Yz(h,g.callback,g.g,g);this.l=!0}},function(h){this.F(b,c,h);g.g(h)},a);return g},VA=function(){var a=w.requestFileSystem||w.webkitRequestFileSystem;if(!a)return ct("Filesystem API not accessible");var b=jt();a(window.TEMPORARY,0,function(c){c.root.getDirectory("log_v2",{create:!0},x(b.resolve,b),x(b.reject,b))},
x(b.reject,b));return b.fa};WA.prototype.ub=function(a){var b=jt(),c=a.createReader(),d=[],e=0,f=function(){c.readEntries(function(g){g.length?(e++,d=d.concat(g),100<e?b.resolve(d):f()):b.resolve(d)},function(g){b.reject(g)})};f();return b.fa};
WA.prototype.X=function(){var a=new Date(Va()-432E6),b=jt();this.C.then(this.ub,null,this).then(function(c){var d={};Hb(c,function(e){d[e.name]=!0});Hb(c,function(e){var f=function(){delete d[e.name];Gc(d)&&b.resolve()};e.getMetadata(function(g){g.modificationTime<a?e.remove(f,f):f()},f)})},x(b.resolve,b));return b.fa};
WA.prototype.H=function(a,b,c){200==c.g?(XA(this,this.h,"JS log upload for "+a+" successful: "+c.h),this.j.remove(b,a)):XA(this,this.h,"JS log upload for "+a+" failure "+c.g+": "+c.h,10);this.l=!1};WA.prototype.F=function(a,b,c){XA(this,this.h,"JS log upload for "+a+" failed: "+c,10);this.l=!1};var $A=function(a,b){return null==a.o?(a.o=new Sz,a.L(b,0),a.o):null};WA.prototype.L=function(a,b){Av(x(this.ga,this,a,b),13E3)};
WA.prototype.ga=function(a,b){"function"===typeof this.M?this.M.call(null,x(this.J,this,a,b)):this.J(a,b)};WA.prototype.J=function(a,b){var c=UA(this.j,a);if(null!=c){var d=c.sessionId;c=c.Dc;XA(this,this.h,"Retrying JS log upload for "+d);$z(Zz(YA(this,d,a,c),x(this.L,this,a,c,b+1)),x(this.V,this,a,b))}else this.V(b)};WA.prototype.V=function(a){this.o.callback(a);Av(this.X,13E3,this)};var bB=function(a){K(this,a,0,-1,aB,null)};B(bB,J);var aB=[14];bB.prototype.sa=function(){return L(this,1)};bB.prototype.yc=function(){return L(this,4)};var cB=function(a){K(this,a,0,-1,null,null)};B(cB,J);var dB=function(a,b){var c=L(a,1);null!=c&&G(b,1,c);c=L(a,2);null!=c&&null!=c&&Xk(b,2,c);c=L(a,3);null!=c&&null!=c&&Xk(b,3,c);c=L(a,4);null!=c&&null!=c&&Xk(b,4,c)};cB.prototype.ac=function(){return L(this,4)};var eB=function(a){K(this,a,0,-1,null,null)};B(eB,J);var fB=function(a,b){var c=L(a,1);null!=c&&G(b,1,c);c=L(a,2);null!=c&&G(b,2,c);c=L(a,3);null!=c&&G(b,3,c);c=L(a,4);null!=c&&G(b,4,c)};var gB=function(a){K(this,a,0,-1,null,null)};B(gB,J);var hB=function(a,b){var c=L(a,1);null!=c&&Yk(b,1,c);c=L(a,2);null!=c&&G(b,2,c)};var iB=function(a){K(this,a,0,-1,null,null)};B(iB,J);var jB=function(a,b){var c=L(a,1);null!=c&&F(b,1,c);c=L(a,2);null!=c&&F(b,2,c);c=L(a,3);null!=c&&G(b,3,c);c=L(a,4);null!=c&&Yk(b,4,c);c=L(a,5);null!=c&&G(b,5,c);c=L(a,6);null!=c&&G(b,6,c);c=L(a,7);null!=c&&b.g(7,c)};iB.prototype.ac=function(){return L(this,4)};var kB=function(a){K(this,a,0,-1,null,null)};B(kB,J);var lB=function(a,b){var c=L(a,1);null!=c&&F(b,1,c);c=L(a,2);null!=c&&F(b,2,c);c=L(a,3);null!=c&&F(b,3,c);c=L(a,4);null!=c&&F(b,4,c);c=L(a,5);null!=c&&F(b,5,c)};kB.prototype.getDevice=function(){return L(this,1)};var mB=function(a,b){return N(a,1,b)};var nB=function(a){K(this,a,0,-1,null,null)};B(nB,J);var oB=function(a,b){var c=Q(a,iB,1);null!=c&&I(b,1,c,jB);c=Q(a,eB,2);null!=c&&I(b,2,c,fB);c=Q(a,gB,3);null!=c&&I(b,3,c,hB);c=L(a,4);null!=c&&G(b,4,c);c=L(a,5);null!=c&&E(b,5,c);c=L(a,6);null!=c&&b.C(6,c);c=Q(a,kB,7);null!=c&&I(b,7,c,lB);c=L(a,8);null!=c&&G(b,8,c);c=Q(a,cB,9);null!=c&&I(b,9,c,dB)};var pB=function(a){K(this,a,0,-1,null,null)};B(pB,J);var qB=function(a,b){for(;Bk(b)&&!Ak(b);)switch(b.h){case 1:var c=Fk(b);N(a,1,c);break;case 2:c=wk(b.g,mk);N(a,2,c);break;default:Ck(b)}return a};var rB=function(a){K(this,a,0,-1,null,null)};B(rB,J);
var sB=function(a,b){for(;Bk(b)&&!Ak(b);)switch(b.h){case 1:var c=Fk(b);N(a,1,c);break;case 2:c=Gk(b);N(a,2,c);break;case 3:c=Gk(b);N(a,3,c);break;case 4:c=wk(b.g,pk);N(a,4,c);break;case 10:c=Gk(b);N(a,10,c);break;case 11:c=xk(b.g);N(a,11,c);break;case 5:c=wk(b.g,mk);N(a,5,c);break;case 6:c=wk(b.g,mk);N(a,6,c);break;case 7:c=Gk(b);N(a,7,c);break;case 8:c=Gk(b);N(a,8,c);break;case 9:c=new pB;Dk(b,c,qB);S(a,9,c);break;case 12:c=Fk(b);N(a,12,c);break;case 13:c=Ek(b);N(a,13,c);break;default:Ck(b)}return a};
rB.prototype.Ja=function(){return L(this,1)};var tB=function(a){K(this,a,0,-1,null,null)};B(tB,J);var vB=function(a){K(this,a,0,-1,uB,null)};B(vB,J);var uB=[6];vB.prototype.sa=function(){return L(this,1)};vB.prototype.getTitle=function(){return L(this,9)};vB.prototype.setTitle=function(a){return N(this,9,a)};vB.prototype.ci=function(a){return N(this,10,a)};var wB={Qq:0,Cp:1,TIMEOUT:2,ERROR:3,TC:4,Ny:5,UNKNOWN:6,SA:7,zp:8,up:9,Lz:10,GG:11,oJ:12,zF:13,sx:14,GA:15,nC:16,YJ:17,zx:18,kC:19,LH:20,kE:21,Dz:22,CA:23,ME:24,eI:25,VH:26,Zp:27,Rp:28,VJ:29,FG:30,uE:31,Ey:32,tp:33,WJ:34,bq:35,BK:36,gK:37,UB:38,TB:39,VB:40,mK:41,CF:42,wA:43,DA:44,jK:45,Jx:46,xE:47,mF:48,vE:49,nF:50,gF:51,iF:52,hF:53,kF:54,jF:55,gI:56,RA:57,DK:58,WC:59,CC:60,Kx:61,yx:62,gz:63,JC:64,JB:65,HB:66,wC:67,KB:68,Lx:69,jB:70,ay:71,wE:72,hA:73,SH:74,NF:75,oD:76,YH:77,OF:78,PF:79,Fy:102,HC:103,
dK:104,cK:105,eK:106,WI:107,qx:108,fI:109,oC:110,KD:111,GC:112,LD:113,ND:114,MD:115,eF:116,dF:117,XH:118,Nz:119,WH:120,Jz:121,yz:122,iK:123,hz:124};var xB=function(a){K(this,a,0,-1,null,null)};B(xB,J);xB.prototype.getService=function(){return L(this,1)};xB.prototype.De=function(){return null!=L(this,2)};var yB=function(a){K(this,a,0,-1,null,null)};B(yB,J);var zB=function(a,b){return N(a,1,b)};var BB=function(a){K(this,a,0,-1,AB,null)};B(BB,J);var AB=[15,26];k=BB.prototype;k.sa=function(){return L(this,1)};k.Kn=function(a){return N(this,1,a)};k.ka=function(){return L(this,14)};k.xc=function(){return Q(this,yB,17)};k.nd=function(a){return S(this,17,a)};k.lj=function(){return null!=L(this,17)};var DB=function(a){K(this,a,0,-1,CB,null)};B(DB,J);var CB=[4];DB.prototype.setRequestHeader=function(a){return S(this,1,a)};DB.prototype.da=function(){return Q(this,Ll,3)};DB.prototype.O=function(a){S(this,3,a)};DB.prototype.ma=function(){this.O(void 0)};var FB=function(a){K(this,a,0,-1,EB,null)};B(FB,J);var EB=[20,8,19,26];FB.prototype.sa=function(){return L(this,1)};FB.prototype.u=function(a){return N(this,1,a)};FB.prototype.Z=function(){return L(this,2)};FB.prototype.l=function(a){return N(this,2,a)};var HB=function(a){K(this,a,0,-1,GB,null)};B(HB,J);var GB=[6];HB.prototype.setRequestHeader=function(a){return S(this,1,a)};HB.prototype.da=function(){return Q(this,Ll,5)};HB.prototype.O=function(a){S(this,5,a)};HB.prototype.ma=function(){this.O(void 0)};var IB=function(a){K(this,a,0,-1,null,null)};B(IB,J);k=IB.prototype;k.setRequestHeader=function(a){return S(this,1,a)};k.sa=function(){return L(this,2)};k.da=function(){return Q(this,Ll,3)};k.O=function(a){S(this,3,a)};k.ma=function(){this.O(void 0)};var JB=function(a){K(this,a,0,-1,null,null)};B(JB,J);k=JB.prototype;k.setRequestHeader=function(a){return S(this,1,a)};k.sa=function(){return L(this,2)};k.da=function(){return Q(this,Ll,3)};k.O=function(a){S(this,3,a)};k.ma=function(){this.O(void 0)};var KB=function(a){K(this,a,0,-1,null,null)};B(KB,J);KB.prototype.getName=function(){return L(this,1)};var MB=function(a){K(this,a,0,-1,LB,null)};B(MB,J);var LB=[3];k=MB.prototype;k.setRequestHeader=function(a){return S(this,1,a)};k.ka=function(){return M(this,6,1)};k.da=function(){return Q(this,Ll,8)};k.O=function(a){S(this,8,a)};k.ma=function(){this.O(void 0)};var NB=function(a){K(this,a,0,-1,null,null)};B(NB,J);var OB=function(a){K(this,a,0,-1,null,null)};B(OB,J);var QB=function(a){K(this,a,0,-1,PB,null)};B(QB,J);var RB=function(a){K(this,a,0,-1,null,null)};B(RB,J);var PB=[8,10];RB.prototype.De=function(){return null!=L(this,2)};QB.prototype.getName=function(){return L(this,2)};var SB=function(a,b){N(a,2,b)};QB.prototype.ka=function(){return L(this,3)};var TB=function(a,b){N(a,3,b)},UB=function(a,b){Cl(a,8,b)};var VB=function(a){K(this,a,0,-1,null,null)};B(VB,J);var XB=function(a){K(this,a,0,-1,WB,null)};B(XB,J);var WB=[5];XB.prototype.yc=function(){return Q(this,OB,3)};var YB=function(a){K(this,a,0,-1,null,null)};B(YB,J);YB.prototype.ka=function(){return L(this,1)};var ZB=function(a){K(this,a,0,-1,null,null)};B(ZB,J);ZB.prototype.getId=function(){return L(this,1)};ZB.prototype.ka=function(){return L(this,3)};var $B=function(a){K(this,a,0,-1,null,null)};B($B,J);$B.prototype.Cb=function(){return L(this,4)};$B.prototype.ka=function(){return L(this,9)};var bC=function(a){K(this,a,0,-1,aC,null)};B(bC,J);var cC=function(a){K(this,a,0,-1,null,null)};B(cC,J);var aC=[3,6];var eC=function(a){K(this,a,0,-1,dC,null)};B(eC,J);var dC=[3,4,5,6];eC.prototype.ka=function(){return M(this,1,4)};var fC=function(a){K(this,a,0,-1,null,null)};B(fC,J);fC.prototype.getChannelId=function(){return L(this,1)};fC.prototype.Be=function(){return L(this,4)};var hC=function(a){K(this,a,0,-1,gC,null)};B(hC,J);var jC=function(a){K(this,a,0,-1,iC,null)};B(jC,J);var gC=[3,4,5,6,10,16],iC=[2];hC.prototype.l=function(){return L(this,1)};hC.prototype.u=function(a){return N(this,1,a)};var kC=function(a,b){Cl(a,3,b)},lC=function(a,b){N(a,6,b||[])};hC.prototype.Hh=function(){return Q(this,jC,17)};var nC=function(a){K(this,a,0,-1,mC,null)};B(nC,J);var mC=[4];nC.prototype.setRequestHeader=function(a){return S(this,1,a)};nC.prototype.da=function(){return Q(this,Ll,3)};nC.prototype.O=function(a){S(this,3,a)};nC.prototype.ma=function(){this.O(void 0)};var oC=function(a){K(this,a,0,-1,null,null)};B(oC,J);oC.prototype.setRequestHeader=function(a){return S(this,1,a)};oC.prototype.da=function(){return Q(this,Ll,3)};oC.prototype.O=function(a){S(this,3,a)};oC.prototype.ma=function(){this.O(void 0)};var pC=function(a){K(this,a,0,-1,null,null)};B(pC,J);var qC=function(a){K(this,a,0,-1,null,null)};B(qC,J);var rC=function(a){K(this,a,0,-1,null,null)};B(rC,J);var tC=function(a){K(this,a,0,-1,sC,null)};B(tC,J);var uC=function(a){K(this,a,0,-1,null,null)};B(uC,J);var vC=function(a){K(this,a,0,-1,null,null)};B(vC,J);qC.prototype.qc=function(){return sl(this,1)};var sC=[3];k=pC.prototype;k.sa=function(){return L(this,1)};k.Ln=function(a){return N(this,1,a)};k.Z=function(){return L(this,2)};
k.ck=function(a){return N(this,2,a)};k.Ba=function(){return L(this,3)};k.Mn=function(a){return N(this,3,a)};k.ka=function(){return L(this,4)};var xC=function(a){K(this,a,0,-1,wC,null)};B(xC,J);var wC=[4];xC.prototype.setRequestHeader=function(a){return S(this,1,a)};xC.prototype.da=function(){return Q(this,Ll,3)};xC.prototype.O=function(a){S(this,3,a)};xC.prototype.ma=function(){this.O(void 0)};var yC=function(a){K(this,a,0,-1,null,null)};B(yC,J);k=yC.prototype;k.setRequestHeader=function(a){return S(this,1,a)};k.sa=function(){return L(this,2)};k.Z=function(){return L(this,3)};k.da=function(){return Q(this,Ll,4)};k.O=function(a){S(this,4,a)};k.ma=function(){this.O(void 0)};var zC=function(a){K(this,a,0,-1,null,null)};B(zC,J);var BC=function(a){K(this,a,0,-1,AC,null)};B(BC,J);var DC=function(a){K(this,a,0,-1,CC,null)};B(DC,J);var EC=function(a){K(this,a,0,-1,null,null)};B(EC,J);var GC=function(a){K(this,a,0,-1,FC,null)};B(GC,J);var HC=function(a){K(this,a,0,-1,null,null)};B(HC,J);var IC=function(a){K(this,a,0,-1,null,null)};B(IC,J);var AC=[1,2,3],CC=[2],JC=function(a,b){N(a,1,b||[])};EC.prototype.qc=function(){return sl(this,1)};var FC=[1];
HC.prototype.setPaused=function(a){return N(this,1,a)};IC.prototype.setPaused=function(a){return N(this,1,a)};k=zC.prototype;k.Ou=function(){return L(this,1)};k.fk=function(a){return N(this,1,a)};k.ka=function(){return L(this,2)};k.Pu=function(){return L(this,3)};k.hk=function(a){return N(this,3,a)};k.Wh=function(){return L(this,4)};k.ik=function(a){return N(this,4,a)};k.sa=function(){return L(this,5)};k.gk=function(a){return N(this,5,a)};k.Z=function(){return L(this,6)};
k.Ba=function(){return L(this,7)};var LC=function(a){K(this,a,0,-1,KC,null)};B(LC,J);var KC=[4];LC.prototype.setRequestHeader=function(a){return S(this,1,a)};LC.prototype.da=function(){return Q(this,Ll,3)};LC.prototype.O=function(a){S(this,3,a)};LC.prototype.ma=function(){this.O(void 0)};var MC=function(a,b){return Cl(a,4,b)};var NC=function(a){K(this,a,0,-1,null,null)};B(NC,J);NC.prototype.setRequestHeader=function(a){return S(this,1,a)};var OC=function(a,b){return N(a,2,b)},PC=function(a,b){return N(a,3,b)};NC.prototype.sa=function(){return L(this,4)};var QC=function(a,b){return N(a,4,b)};NC.prototype.da=function(){return Q(this,Ll,5)};NC.prototype.O=function(a){S(this,5,a)};NC.prototype.ma=function(){this.O(void 0)};var RC=function(a){K(this,a,0,-1,null,null)};B(RC,J);var SC=function(a,b){return S(a,3,b)},TC=function(a,b){return S(a,4,b)};var VC=function(a){K(this,a,0,-1,UC,null)};B(VC,J);var UC=[2];VC.prototype.setRequestHeader=function(a){return S(this,1,a)};var WC=function(a,b){Cl(a,2,b)};VC.prototype.Nd=function(a){return Dl(this,2,a,RC)};VC.prototype.da=function(){return Q(this,Ll,3)};VC.prototype.O=function(a){S(this,3,a)};VC.prototype.ma=function(){this.O(void 0)};var YC=function(a){K(this,a,"charp",-1,XC,null)};B(YC,J);var XC=[5];YC.messageId="charp";YC.prototype.getResponseHeader=function(){return Q(this,rB,1)};YC.prototype.da=function(){return Q(this,Ll,3)};YC.prototype.O=function(a){S(this,3,a)};YC.prototype.ma=function(){this.O(void 0)};var $C=function(a){K(this,a,"chparp",-1,ZC,null)};B($C,J);var ZC=[5];$C.messageId="chparp";$C.prototype.getResponseHeader=function(){return Q(this,rB,1)};$C.prototype.da=function(){return Q(this,Ll,3)};$C.prototype.O=function(a){S(this,3,a)};$C.prototype.ma=function(){this.O(void 0)};var bD=function(a){K(this,a,"chpsrp",-1,aD,null)};B(bD,J);var aD=[2,4];bD.messageId="chpsrp";bD.prototype.getResponseHeader=function(){return Q(this,rB,1)};bD.prototype.da=function(){return Q(this,Ll,3)};bD.prototype.O=function(a){S(this,3,a)};bD.prototype.ma=function(){this.O(void 0)};var cD=function(a){K(this,a,"chqrp",-1,null,null)};B(cD,J);cD.messageId="chqrp";cD.prototype.getResponseHeader=function(){return Q(this,rB,1)};cD.prototype.da=function(){return Q(this,Ll,3)};cD.prototype.O=function(a){S(this,3,a)};cD.prototype.ma=function(){this.O(void 0)};var dD=function(a){K(this,a,"chrrp",-1,null,null)};B(dD,J);dD.messageId="chrrp";k=dD.prototype;k.getResponseHeader=function(){return Q(this,rB,1)};k.sa=function(){return L(this,2)};k.da=function(){return Q(this,Ll,5)};k.O=function(a){S(this,5,a)};k.ma=function(){this.O(void 0)};var eD=function(a){K(this,a,0,-1,null,null)};B(eD,J);eD.prototype.sa=function(){return L(this,7)};var gD=function(a){K(this,a,"chsearp",-1,fD,null)};B(gD,J);var fD=[4];gD.messageId="chsearp";gD.prototype.getResponseHeader=function(){return Q(this,rB,1)};gD.prototype.da=function(){return Q(this,Ll,3)};gD.prototype.O=function(a){S(this,3,a)};gD.prototype.ma=function(){this.O(void 0)};var hD=function(a){K(this,a,"chseqrp",-1,null,null)};B(hD,J);hD.messageId="chseqrp";hD.prototype.getResponseHeader=function(){return Q(this,rB,1)};hD.prototype.da=function(){return Q(this,Ll,3)};hD.prototype.O=function(a){S(this,3,a)};hD.prototype.ma=function(){this.O(void 0)};var jD=function(a){K(this,a,"chsoarp",-1,iD,null)};B(jD,J);var iD=[4];jD.messageId="chsoarp";jD.prototype.getResponseHeader=function(){return Q(this,rB,1)};jD.prototype.da=function(){return Q(this,Ll,3)};jD.prototype.O=function(a){S(this,3,a)};jD.prototype.ma=function(){this.O(void 0)};var lD=function(a){K(this,a,"chsosrp",-1,kD,null)};B(lD,J);var kD=[2];lD.messageId="chsosrp";lD.prototype.getResponseHeader=function(){return Q(this,rB,1)};lD.prototype.da=function(){return Q(this,Ll,3)};lD.prototype.O=function(a){S(this,3,a)};lD.prototype.ma=function(){this.O(void 0)};var nD=function(a){K(this,a,"chstarp",-1,mD,null)};B(nD,J);var mD=[4];nD.messageId="chstarp";nD.prototype.getResponseHeader=function(){return Q(this,rB,1)};nD.prototype.da=function(){return Q(this,Ll,3)};nD.prototype.O=function(a){S(this,3,a)};nD.prototype.ma=function(){this.O(void 0)};var pD=function(a){K(this,a,"chstsrp",-1,oD,null)};B(pD,J);var oD=[2];pD.messageId="chstsrp";pD.prototype.getResponseHeader=function(){return Q(this,rB,1)};pD.prototype.da=function(){return Q(this,Ll,3)};pD.prototype.O=function(a){S(this,3,a)};pD.prototype.ma=function(){this.O(void 0)};var qD=function(a){K(this,a,0,-1,null,null)};B(qD,J);var sD=function(a){K(this,a,"chbrp",-1,rD,null)};B(sD,J);var rD=[2];sD.messageId="chbrp";k=sD.prototype;k.getResponseHeader=function(){return Q(this,rB,1)};k.Nd=function(a){return Dl(this,2,a,qD)};k.da=function(){return Q(this,Ll,3)};k.O=function(a){S(this,3,a)};k.ma=function(){this.O(void 0)};var uD=function(a){K(this,a,0,-1,tD,null)};B(uD,J);var tD=[4];uD.prototype.setRequestHeader=function(a){return S(this,1,a)};uD.prototype.da=function(){return Q(this,Ll,3)};uD.prototype.O=function(a){S(this,3,a)};uD.prototype.ma=function(){this.O(void 0)};var wD=function(a){K(this,a,"chmrp",-1,vD,null)};B(wD,J);var vD=[4];wD.messageId="chmrp";wD.prototype.getResponseHeader=function(){return Q(this,rB,1)};wD.prototype.da=function(){return Q(this,Ll,3)};wD.prototype.O=function(a){S(this,3,a)};wD.prototype.ma=function(){this.O(void 0)};var yD=function(a){K(this,a,0,-1,xD,null)};B(yD,J);var xD=[4];yD.prototype.setRequestHeader=function(a){return S(this,1,a)};yD.prototype.da=function(){return Q(this,Ll,3)};yD.prototype.O=function(a){S(this,3,a)};yD.prototype.ma=function(){this.O(void 0)};var AD=function(a){K(this,a,"chpmrp",-1,zD,null)};B(AD,J);var zD=[4];AD.messageId="chpmrp";AD.prototype.getResponseHeader=function(){return Q(this,rB,1)};AD.prototype.da=function(){return Q(this,Ll,3)};AD.prototype.O=function(a){S(this,3,a)};AD.prototype.ma=function(){this.O(void 0)};var BD=function(a){K(this,a,0,-1,null,null)};B(BD,J);k=BD.prototype;k.setRequestHeader=function(a){return S(this,1,a)};k.sa=function(){return L(this,2)};k.Z=function(){return L(this,3)};k.da=function(){return Q(this,Ll,4)};k.O=function(a){S(this,4,a)};k.ma=function(){this.O(void 0)};var CD=function(a){K(this,a,"chpqrp",-1,null,null)};B(CD,J);CD.messageId="chpqrp";CD.prototype.getResponseHeader=function(){return Q(this,rB,1)};CD.prototype.da=function(){return Q(this,Ll,3)};CD.prototype.O=function(a){S(this,3,a)};CD.prototype.ma=function(){this.O(void 0)};var DD=function(a){K(this,a,0,-1,null,null)};B(DD,J);DD.prototype.sa=function(){return L(this,1)};DD.prototype.l=function(a){return N(this,1,a)};DD.prototype.Z=function(){return L(this,2)};DD.prototype.u=function(a){return N(this,2,a)};var FD=function(a){K(this,a,0,-1,ED,null)};B(FD,J);var ED=[6,7];k=FD.prototype;k.setRequestHeader=function(a){return S(this,1,a)};k.sa=function(){return L(this,2)};k.Z=function(){return L(this,3)};k.da=function(){return Q(this,Ll,4)};k.O=function(a){S(this,4,a)};k.ma=function(){this.O(void 0)};var GD=function(a,b){return Cl(a,7,b)};var HD=function(a){K(this,a,"chprrp",-1,null,null)};B(HD,J);HD.messageId="chprrp";HD.prototype.getResponseHeader=function(){return Q(this,rB,1)};HD.prototype.da=function(){return Q(this,Ll,2)};HD.prototype.O=function(a){S(this,2,a)};HD.prototype.ma=function(){this.O(void 0)};var ID=function(a){K(this,a,0,-1,null,null)};B(ID,J);ID.prototype.sa=function(){return L(this,1)};var JD=function(a){K(this,a,0,-1,null,null)};B(JD,J);k=JD.prototype;k.sa=function(){return L(this,1)};k.Ju=function(a){return N(this,1,a)};k.Z=function(){return L(this,2)};k.Ku=function(a){return N(this,2,a)};k.Ba=function(){return L(this,3)};k.Lu=function(a){return N(this,3,a)};var LD=function(a){K(this,a,0,-1,KD,null)};B(LD,J);var KD=[3];LD.prototype.sa=function(){return L(this,1)};var ND=function(a){K(this,a,0,-1,MD,null)};B(ND,J);var MD=[4];ND.prototype.setRequestHeader=function(a){return S(this,1,a)};ND.prototype.da=function(){return Q(this,Ll,3)};ND.prototype.O=function(a){S(this,3,a)};ND.prototype.ma=function(){this.O(void 0)};var PD=function(a){K(this,a,"chstmrp",-1,OD,null)};B(PD,J);var OD=[4];PD.messageId="chstmrp";PD.prototype.getResponseHeader=function(){return Q(this,rB,1)};PD.prototype.da=function(){return Q(this,Ll,3)};PD.prototype.O=function(a){S(this,3,a)};PD.prototype.ma=function(){this.O(void 0)};var QD=function(a){K(this,a,0,-1,null,null)};B(QD,J);var RD=function(a,b){var c=L(a,1);null!=c&&G(b,1,c);c=L(a,2);null!=c&&F(b,2,c);c=L(a,3);null!=c&&F(b,3,c);c=L(a,4);null!=c&&F(b,4,c)};QD.prototype.Ia=function(){return L(this,2)};var SD=function(a){K(this,a,0,-1,null,null)};B(SD,J);var TD=function(a,b){var c=L(a,1);null!=c&&b.g(1,c);c=L(a,2);null!=c&&b.g(2,c);c=L(a,3);null!=c&&b.g(3,c);c=L(a,4);null!=c&&b.g(4,c);c=L(a,5);null!=c&&b.g(5,c)};SD.prototype.ya=function(){return L(this,5)};var UD=function(a){K(this,a,0,-1,null,null)};B(UD,J);var VD=function(a,b){var c=L(a,1);null!=c&&F(b,1,c);c=L(a,2);null!=c&&F(b,2,c);c=Q(a,SD,3);null!=c&&I(b,3,c,TD);c=Q(a,SD,4);null!=c&&I(b,4,c,TD);c=L(a,5);null!=c&&F(b,5,c);c=Q(a,SD,6);null!=c&&I(b,6,c,TD)};var WD=function(a){K(this,a,0,-1,null,null)};B(WD,J);var XD=function(a,b){var c=L(a,1);null!=c&&F(b,1,c);c=L(a,2);null!=c&&b.g(2,c);c=L(a,3);null!=c&&b.g(3,c);c=L(a,4);null!=c&&b.g(4,c);c=L(a,5);null!=c&&Yk(b,5,c);c=L(a,6);null!=c&&Yk(b,6,c);c=L(a,9);null!=c&&$k(b,9,c);c=L(a,10);null!=c&&$k(b,10,c)};var ZD=function(a){K(this,a,0,-1,YD,null)};B(ZD,J);var YD=[2,3],$D=function(a,b){var c=L(a,1);null!=c&&G(b,1,c);c=L(a,2);0<c.length&&cl(b,2,c);c=L(a,3);0<c.length&&cl(b,3,c);c=Q(a,SD,4);null!=c&&I(b,4,c,TD);c=Q(a,SD,5);null!=c&&I(b,5,c,TD)};ZD.prototype.ac=function(){return L(this,1)};var bE=function(a){K(this,a,0,-1,aE,null)};B(bE,J);var aE=[1],cE=function(a,b){var c=L(a,1);0<c.length&&bl(b,1,c);c=L(a,2);null!=c&&b.g(2,c);c=L(a,3);null!=c&&b.g(3,c);c=L(a,4);null!=c&&b.g(4,c);c=L(a,5);null!=c&&b.g(5,c);c=L(a,6);null!=c&&b.g(6,c);c=L(a,7);null!=c&&b.g(7,c);c=L(a,8);null!=c&&b.g(8,c);c=L(a,14);null!=c&&b.g(14,c);c=L(a,9);null!=c&&b.g(9,c);c=L(a,10);null!=c&&Yk(b,10,c);c=L(a,11);null!=c&&Yk(b,11,c);c=L(a,12);null!=c&&Yk(b,12,c);c=L(a,13);null!=c&&Yk(b,13,c)};var eE=function(a){K(this,a,0,-1,dE,null)};B(eE,J);var dE=[2],fE=function(a,b){var c=L(a,1);null!=c&&b.g(1,c);c=L(a,2);0<c.length&&bl(b,2,c);c=L(a,3);null!=c&&b.g(3,c);c=L(a,4);null!=c&&Yk(b,4,c);c=L(a,5);null!=c&&Yk(b,5,c);c=L(a,6);null!=c&&Yk(b,6,c);c=L(a,7);null!=c&&Yk(b,7,c);c=L(a,8);null!=c&&Yk(b,8,c);c=L(a,9);null!=c&&Yk(b,9,c);c=L(a,10);null!=c&&Yk(b,10,c)};var gE=function(a){K(this,a,0,-1,null,null)};B(gE,J);var hE=function(a,b){var c=a.getSeconds();0!==c&&Yk(b,1,c);c=M(a,2,0);0!==c&&b.g(2,c)};gE.prototype.getSeconds=function(){return M(this,1,0)};gE.prototype.setSeconds=function(a){return wl(this,1,a,0)};var iE=function(a){K(this,a,0,-1,null,null)};B(iE,J);var jE=function(a,b){var c=a.getSeconds();0!==c&&Yk(b,1,c);c=M(a,2,0);0!==c&&b.g(2,c)};iE.prototype.getSeconds=function(){return M(this,1,0)};iE.prototype.setSeconds=function(a){return wl(this,1,a,0)};var kE=function(a){K(this,a,0,-1,null,null)};B(kE,J);var lE=function(a,b){var c=L(a,1);null!=c&&b.g(1,c);c=L(a,2);null!=c&&b.g(2,c);c=L(a,3);null!=c&&b.g(3,c);c=L(a,4);null!=c&&b.g(4,c);c=L(a,5);null!=c&&b.g(5,c);c=L(a,6);null!=c&&b.g(6,c)};var mE=function(a){K(this,a,0,-1,null,null)};B(mE,J);var nE=function(a,b){var c=L(a,1);null!=c&&b.g(1,c);c=L(a,2);null!=c&&b.g(2,c);c=L(a,3);null!=c&&b.g(3,c);c=L(a,4);null!=c&&b.g(4,c);c=L(a,5);null!=c&&b.g(5,c);c=L(a,6);null!=c&&b.g(6,c);c=L(a,7);null!=c&&b.g(7,c)};var oE=function(a){K(this,a,0,-1,null,null)};B(oE,J);var pE=function(a,b){var c=Q(a,iE,1);null!=c&&I(b,1,c,jE);c=Q(a,iE,2);null!=c&&I(b,2,c,jE);c=L(a,3);null!=c&&$k(b,3,c);c=L(a,4);null!=c&&b.g(4,c);c=L(a,5);null!=c&&b.g(5,c);c=L(a,6);null!=c&&$k(b,6,c);c=L(a,7);null!=c&&$k(b,7,c)};var rE=function(a){K(this,a,0,-1,qE,null)};B(rE,J);
var qE=[20],sE=function(a,b){var c=L(a,1);null!=c&&F(b,1,c);c=L(a,2);null!=c&&$k(b,2,c);c=L(a,3);null!=c&&$k(b,3,c);c=L(a,4);null!=c&&$k(b,4,c);c=L(a,5);null!=c&&$k(b,5,c);c=L(a,6);null!=c&&$k(b,6,c);c=Q(a,iE,7);null!=c&&I(b,7,c,jE);c=Q(a,iE,8);null!=c&&I(b,8,c,jE);c=L(a,9);null!=c&&Yk(b,9,c);c=L(a,10);null!=c&&Yk(b,10,c);c=L(a,11);if(null!=c&&null!=c){Tk(b,11,1);var d=b.h;lk(c);Mk(d,hk);Mk(d,ik)}c=L(a,12);null!=c&&b.g(12,c);c=Q(a,iE,13);null!=c&&I(b,13,c,jE);c=Q(a,iE,14);null!=c&&I(b,14,c,jE);c=
L(a,15);null!=c&&$k(b,15,c);c=Q(a,kE,17);null!=c&&I(b,17,c,lE);c=Q(a,oE,18);null!=c&&I(b,18,c,pE);c=Q(a,mE,19);null!=c&&I(b,19,c,nE);c=tl(a,20);if(0<c.length&&null!=c)for(d=0;d<c.length;d++)$k(b,20,c[d]);c=L(a,21);null!=c&&b.g(21,c);c=L(a,22);null!=c&&Yk(b,22,c);c=L(a,23);null!=c&&b.g(23,c);c=L(a,24);null!=c&&b.g(24,c)};var tE=function(a){K(this,a,0,-1,null,null)};B(tE,J);var uE=function(a,b){var c=L(a,1);null!=c&&G(b,1,c);c=L(a,2);null!=c&&G(b,2,c);c=L(a,3);null!=c&&b.g(3,c)};var vE=function(a){K(this,a,0,-1,null,null)};B(vE,J);var wE=function(a,b){var c=L(a,1);null!=c&&Yk(b,1,c);c=L(a,2);null!=c&&Yk(b,2,c);c=L(a,4);null!=c&&F(b,4,c);c=L(a,5);null!=c&&F(b,5,c);c=L(a,6);null!=c&&F(b,6,c);c=Q(a,iE,7);null!=c&&I(b,7,c,jE)};vE.prototype.getState=function(){return L(this,6)};var xE=function(a){K(this,a,0,-1,null,null)};B(xE,J);var yE=function(a,b){var c=L(a,1);if(null!=c&&null!=c){c=qk(c);Tk(b,1,2);Kk(b.h,c.length);var d=b.h.end();b.l.push(d);b.l.push(c);b.j+=d.length+c.length}c=L(a,2);null!=c&&b.C(2,c)};xE.prototype.Kc=function(){return L(this,1)};xE.prototype.Cb=function(){return L(this,2)};var zE=function(a){K(this,a,0,-1,null,null)};B(zE,J);var AE=function(a,b){a=L(a,1);null!=a&&b.g(1,a)};var CE=function(a){K(this,a,0,-1,null,BE)};B(CE,J);var BE=[[6]],DE=function(a,b){var c=L(a,1);null!=c&&F(b,1,c);c=L(a,2);null!=c&&b.g(2,c);c=L(a,3);null!=c&&Yk(b,3,c);c=Q(a,zE,6);null!=c&&I(b,6,c,AE)};var FE=function(a){K(this,a,0,-1,EE,null)};B(FE,J);var EE=[1],GE=function(a,b){var c=R(a,CE,1);0<c.length&&el(b,1,c,DE);c=Q(a,xE,2);null!=c&&I(b,2,c,yE);c=Q(a,xE,3);null!=c&&I(b,3,c,yE);c=L(a,4);null!=c&&F(b,4,c);c=Q(a,vE,5);null!=c&&I(b,5,c,wE)};var HE=function(a){K(this,a,0,-1,null,null)};B(HE,J);var IE=function(a,b){var c=L(a,1);null!=c&&b.C(1,c);c=L(a,6);null!=c&&b.g(6,c);c=L(a,2);null!=c&&Zk(b,2,c);a.g||(a.g={});c=3 in a.g?a.g[3]:(c=L(a,3))?a.g[3]=new kl(c):void 0;if(c&&0<ll(c).length){var d=Sk.prototype.C,e=Sk.prototype.g,f=ll(c);f.sort();for(var g=0;g<f.length;g++){var h=c.g[f[g]];b.m.push(Uk(b,3));d.call(b,1,h.key);e.call(b,2,h.value);Vk(b,b.m.pop())}}c=L(a,4);null!=c&&b.g(4,c);c=Q(a,iE,5);null!=c&&I(b,5,c,jE)};var LE=function(a){K(this,a,0,-1,JE,KE)};B(LE,J);var JE=[6],KE=[[1,2]],ME=function(a,b){var c=Q(a,tE,1);null!=c&&I(b,1,c,uE);c=L(a,2);null!=c&&G(b,2,c);c=Q(a,gE,3);null!=c&&I(b,3,c,hE);c=L(a,4);null!=c&&F(b,4,c);c=L(a,5);null!=c&&F(b,5,c);c=R(a,FE,6);0<c.length&&el(b,6,c,GE);c=Q(a,HE,7);null!=c&&I(b,7,c,IE);c=Q(a,rE,8);null!=c&&I(b,8,c,sE)};var OE=function(a){K(this,a,0,-1,NE,null)};B(OE,J);var QE=function(a){K(this,a,0,-1,PE,null)};B(QE,J);var SE=function(a){K(this,a,0,-1,RE,null)};B(SE,J);var TE=function(a){K(this,a,0,-1,null,null)};B(TE,J);var VE=function(a){K(this,a,0,-1,UE,null)};B(VE,J);var WE=function(a){K(this,a,0,-1,null,null)};B(WE,J);var YE=function(a){K(this,a,0,-1,XE,null)};B(YE,J);var ZE=function(a){K(this,a,0,-1,null,null)};B(ZE,J);var aF=function(a){K(this,a,0,-1,$E,null)};B(aF,J);
var cF=function(a){K(this,a,0,-1,bF,null)};B(cF,J);var dF=function(a){K(this,a,0,-1,null,null)};B(dF,J);var eF=function(a){K(this,a,0,-1,null,null)};B(eF,J);var fF=function(a){K(this,a,0,-1,null,null)};B(fF,J);var hF=function(a){K(this,a,0,-1,gF,null)};B(hF,J);var iF=function(a){K(this,a,0,-1,null,null)};B(iF,J);
var NE=[5,52,182],nF=function(a,b){var c=L(a,1);null!=c&&G(b,1,c);c=L(a,2);null!=c&&G(b,2,c);c=L(a,133);null!=c&&Yk(b,133,c);c=L(a,3);null!=c&&b.g(3,c);c=L(a,105);null!=c&&F(b,105,c);c=L(a,107);null!=c&&Yk(b,107,c);c=L(a,104);null!=c&&Yk(b,104,c);c=L(a,4);null!=c&&G(b,4,c);c=L(a,43);null!=c&&G(b,43,c);c=R(a,QE,5);0<c.length&&fl(b,5,c,jF);c=L(a,28);null!=c&&E(b,28,c);c=L(a,29);null!=c&&b.g(29,c);c=L(a,30);null!=c&&b.g(30,c);c=L(a,112);null!=c&&G(b,112,c);c=L(a,106);null!=c&&b.g(106,c);c=L(a,100);null!=
c&&G(b,100,c);c=L(a,68);null!=c&&b.g(68,c);c=Q(a,fF,69);null!=c&&I(b,69,c,kF);c=L(a,42);null!=c&&Yk(b,42,c);c=R(a,hF,52);0<c.length&&el(b,52,c,lF);c=Q(a,iF,135);null!=c&&I(b,135,c,mF);c=L(a,170);null!=c&&F(b,170,c);c=R(a,LE,182);0<c.length&&el(b,182,c,ME)},PE=[2,13,154,200],jF=function(a,b){var c=L(a,1);null!=c&&b.g(6,c);c=L(a,113);null!=c&&b.g(118,c);c=L(a,118);null!=c&&b.g(123,c);c=L(a,162);null!=c&&F(b,167,c);c=L(a,174);null!=c&&F(b,179,c);c=Q(a,eE,207);null!=c&&I(b,212,c,fE);c=Q(a,eE,208);null!=
c&&I(b,213,c,fE);c=Q(a,bE,221);null!=c&&I(b,226,c,cE);c=oF(a);0<c.length&&fl(b,7,c,pF);c=qF(a);0<c.length&&fl(b,18,c,rF);c=L(a,34);null!=c&&b.g(39,c);c=L(a,92);null!=c&&b.g(97,c);c=L(a,94);null!=c&&b.g(99,c);c=L(a,93);null!=c&&b.g(98,c);c=L(a,35);null!=c&&b.g(40,c);c=L(a,36);null!=c&&b.g(41,c);c=L(a,189);null!=c&&$k(b,194,c);c=L(a,54);null!=c&&b.g(59,c);c=L(a,66);null!=c&&F(b,71,c);c=L(a,71);null!=c&&$k(b,76,c);c=L(a,72);null!=c&&b.g(77,c);c=L(a,73);null!=c&&b.g(78,c);c=L(a,74);null!=c&&E(b,79,c);
c=L(a,75);null!=c&&b.g(80,c);c=Q(a,aF,129);null!=c&&I(b,134,c,sF);c=L(a,150);null!=c&&Yk(b,155,c);c=L(a,151);null!=c&&Yk(b,156,c);c=R(a,WD,154);0<c.length&&el(b,159,c,XD);c=Q(a,dF,183);null!=c&&I(b,188,c,tF);c=R(a,eF,200);0<c.length&&el(b,205,c,uF);c=Q(a,ZD,222);null!=c&&I(b,227,c,$D)},RE=[169,178,153,214,53,136,54,174,176,157,208,158,190,135,141,142,150],pF=function(a,b){var c=L(a,1);null!=c&&F(b,8,c);c=L(a,169);0<c.length&&dl(b,176,c);c=L(a,2);null!=c&&b.g(9,c);c=L(a,3);null!=c&&b.g(10,c);c=L(a,
4);null!=c&&b.g(11,c);c=L(a,5);null!=c&&b.g(12,c);c=L(a,6);null!=c&&b.g(13,c);c=L(a,178);0<c.length&&gl(b,185,c);c=L(a,7);null!=c&&Yk(b,14,c);c=L(a,8);null!=c&&b.g(15,c);c=L(a,9);null!=c&&Yk(b,16,c);c=L(a,10);null!=c&&b.g(17,c);c=L(a,24);null!=c&&F(b,31,c);c=L(a,184);null!=c&&F(b,191,c);c=L(a,185);null!=c&&b.g(192,c);c=L(a,25);null!=c&&Zk(b,32,c);c=L(a,117);null!=c&&$k(b,124,c);c=L(a,26);null!=c&&b.g(33,c);c=Q(a,SD,140);null!=c&&I(b,147,c,TD);c=L(a,188);null!=c&&$k(b,195,c);c=Q(a,SD,189);null!=c&&
I(b,196,c,TD);c=L(a,27);null!=c&&b.g(34,c);c=L(a,151);null!=c&&b.g(158,c);c=L(a,28);null!=c&&b.g(35,c);c=L(a,29);null!=c&&b.g(36,c);c=L(a,30);null!=c&&b.g(37,c);c=L(a,197);null!=c&&b.g(204,c);c=L(a,31);null!=c&&b.g(38,c);c=L(a,50);null!=c&&$k(b,57,c);c=L(a,87);null!=c&&$k(b,94,c);c=L(a,51);null!=c&&$k(b,58,c);c=L(a,88);null!=c&&$k(b,95,c);c=L(a,37);null!=c&&b.g(44,c);c=L(a,38);null!=c&&b.g(45,c);c=L(a,39);null!=c&&b.g(46,c);c=L(a,40);null!=c&&b.g(47,c);c=L(a,41);null!=c&&b.g(48,c);c=L(a,42);null!=
c&&b.g(49,c);c=L(a,43);null!=c&&b.g(50,c);c=L(a,124);null!=c&&b.g(131,c);c=L(a,125);null!=c&&b.g(132,c);c=L(a,96);null!=c&&b.g(103,c);c=L(a,80);null!=c&&b.g(87,c);c=L(a,44);null!=c&&G(b,51,c);c=L(a,94);null!=c&&G(b,101,c);c=L(a,143);null!=c&&G(b,150,c);c=L(a,46);null!=c&&b.g(53,c);c=L(a,47);null!=c&&b.g(54,c);c=L(a,48);null!=c&&b.g(55,c);c=L(a,49);null!=c&&b.g(56,c);c=L(a,63);null!=c&&$k(b,70,c);c=L(a,129);null!=c&&$k(b,136,c);c=L(a,133);null!=c&&$k(b,140,c);c=L(a,153);0<c.length&&gl(b,160,c);c=L(a,
154);null!=c&&b.g(161,c);c=L(a,155);null!=c&&Yk(b,162,c);c=L(a,213);null!=c&&b.g(220,c);c=tl(a,214);0<c.length&&hl(b,221,c);c=vF(a);0<c.length&&bl(b,60,c);c=wF(a);0<c.length&&el(b,143,c,xF);c=R(a,VE,54);0<c.length&&fl(b,61,c,yF);c=L(a,174);0<c.length&&dl(b,181,c);c=R(a,cF,176);0<c.length&&el(b,183,c,zF);c=L(a,57);null!=c&&b.g(64,c);c=L(a,58);null!=c&&b.g(65,c);c=L(a,144);null!=c&&b.g(151,c);c=L(a,145);null!=c&&b.g(152,c);c=L(a,114);null!=c&&b.g(121,c);c=L(a,115);null!=c&&b.g(122,c);c=L(a,159);null!=
c&&b.g(166,c);c=L(a,113);null!=c&&b.g(120,c);c=L(a,139);null!=c&&b.g(146,c);c=L(a,78);null!=c&&b.g(85,c);c=L(a,79);null!=c&&b.g(86,c);c=L(a,59);null!=c&&E(b,66,c);c=L(a,173);null!=c&&F(b,180,c);c=L(a,60);null!=c&&E(b,67,c);c=L(a,65);null!=c&&b.g(72,c);c=L(a,95);null!=c&&b.g(102,c);c=L(a,194);null!=c&&b.g(201,c);c=Q(a,WE,196);null!=c&&I(b,203,c,AF);c=L(a,68);null!=c&&$k(b,75,c);c=L(a,103);null!=c&&$k(b,110,c);c=L(a,207);null!=c&&$k(b,214,c);c=L(a,106);null!=c&&$k(b,113,c);c=L(a,107);null!=c&&$k(b,
114,c);c=L(a,104);null!=c&&$k(b,111,c);c=L(a,156);null!=c&&$k(b,163,c);c=tl(a,157);0<c.length&&hl(b,164,c);c=tl(a,208);0<c.length&&hl(b,215,c);c=L(a,158);0<c.length&&gl(b,165,c);c=tl(a,190);0<c.length&&hl(b,197,c);c=L(a,74);null!=c&&b.g(81,c);c=L(a,165);null!=c&&Yk(b,172,c);c=L(a,170);if(null!=c&&null!=c){Tk(b,177,1);var d=b.h;lk(c);Mk(d,hk);Mk(d,ik)}c=L(a,171);null!=c&&Yk(b,178,c);c=L(a,166);null!=c&&Yk(b,173,c);c=L(a,167);null!=c&&Yk(b,174,c);c=L(a,168);null!=c&&Yk(b,175,c);c=L(a,75);null!=c&&b.g(82,
c);c=L(a,76);null!=c&&b.g(83,c);c=L(a,77);null!=c&&b.g(84,c);c=L(a,81);null!=c&&b.g(88,c);c=L(a,82);null!=c&&b.g(89,c);c=L(a,83);null!=c&&b.g(90,c);c=L(a,84);null!=c&&b.g(91,c);c=L(a,85);null!=c&&b.g(92,c);c=L(a,86);null!=c&&b.g(93,c);c=L(a,134);null!=c&&b.g(141,c);c=L(a,89);null!=c&&b.g(96,c);c=L(a,112);null!=c&&b.g(119,c);c=L(a,118);null!=c&&b.g(125,c);c=L(a,119);null!=c&&b.g(126,c);c=Q(a,SD,132);null!=c&&I(b,139,c,TD);c=Q(a,SD,120);null!=c&&I(b,127,c,TD);c=Q(a,SD,121);null!=c&&I(b,128,c,TD);c=
Q(a,SD,146);null!=c&&I(b,153,c,TD);c=Q(a,SD,122);null!=c&&I(b,129,c,TD);c=Q(a,SD,123);null!=c&&I(b,130,c,TD);c=Q(a,SD,147);null!=c&&I(b,154,c,TD);c=L(a,138);null!=c&&b.g(145,c);c=Q(a,SD,137);null!=c&&I(b,144,c,TD);c=L(a,108);null!=c&&b.g(115,c);c=L(a,109);null!=c&&b.g(116,c);c=L(a,110);null!=c&&b.g(117,c);c=L(a,130);null!=c&&Yk(b,137,c);c=L(a,131);null!=c&&Yk(b,138,c);c=L(a,182);null!=c&&b.g(189,c);c=L(a,183);null!=c&&b.g(190,c);c=L(a,191);null!=c&&b.g(198,c);c=L(a,192);null!=c&&b.g(199,c);c=L(a,
193);null!=c&&b.g(200,c);c=L(a,135);0<c.length&&al(b,142,c);c=L(a,141);0<c.length&&al(b,148,c);c=L(a,142);0<c.length&&al(b,149,c);c=L(a,150);0<c.length&&al(b,157,c);c=Q(a,UD,180);null!=c&&I(b,187,c,VD);c=Q(a,SD,195);null!=c&&I(b,202,c,TD);c=L(a,221);null!=c&&b.g(228,c);c=L(a,222);null!=c&&Yk(b,229,c);c=L(a,223);null!=c&&Yk(b,230,c);c=L(a,224);null!=c&&Yk(b,231,c);c=L(a,225);null!=c&&Yk(b,232,c)},xF=function(a,b){var c=L(a,1);null!=c&&Yk(b,1,c);c=L(a,2);null!=c&&Yk(b,2,c);c=L(a,3);null!=c&&Zk(b,3,
c)},UE=[2],yF=function(a,b){var c=L(a,1);null!=c&&G(b,62,c);c=L(a,2);0<c.length&&bl(b,63,c)},AF=function(a,b){a=L(a,1);null!=a&&b.g(1,a)},BF=function(a){return L(a,1)};SE.prototype.u=function(a){return N(this,178,a||[])};var CF=function(a){return L(a,24)},DF=function(a,b){N(a,184,b)},EF=function(a){return L(a,25)};SE.prototype.F=function(a){return S(this,140,a)};var vF=function(a){return L(a,53)},wF=function(a){return R(a,TE,136)};SE.prototype.l=function(a){return Cl(this,136,a)};
var FF=function(a,b){N(a,59,b)},GF=function(a,b){N(a,173,b)};k=SE.prototype;k.Wg=function(a){return N(this,68,a)};k.ki=function(a){return N(this,103,a)};k.mw=function(a){return N(this,207,a)};k.hi=function(a){return N(this,106,a)};k.bi=function(a){return N(this,107,a)};k.ii=function(a){return N(this,104,a)};k.ji=function(a){return N(this,156,a)};k.Aw=function(a){return N(this,157,a||[])};k.nw=function(a){return N(this,208,a||[])};k.qw=function(a){return N(this,158,a||[])};
k.vw=function(a){return S(this,132,a)};k.pw=function(a){return S(this,121,a)};k.zw=function(a){return S(this,146,a)};k.ow=function(a){return S(this,122,a)};k.ww=function(a){return S(this,147,a)};k.rw=function(a){return S(this,137,a)};
var XE=[168,175],rF=function(a,b){var c=L(a,1);null!=c&&b.g(19,c);c=L(a,2);null!=c&&b.g(20,c);c=L(a,3);null!=c&&b.g(21,c);c=L(a,168);0<c.length&&gl(b,186,c);c=L(a,4);null!=c&&Yk(b,22,c);c=L(a,5);null!=c&&b.g(23,c);c=L(a,90);null!=c&&b.g(108,c);c=L(a,91);null!=c&&b.g(109,c);c=L(a,6);null!=c&&Yk(b,24,c);c=L(a,7);null!=c&&b.g(25,c);c=L(a,150);null!=c&&b.g(168,c);c=L(a,151);null!=c&&b.g(169,c);c=L(a,188);null!=c&&Yk(b,206,c);c=L(a,189);null!=c&&Yk(b,207,c);c=L(a,192);null!=c&&Yk(b,210,c);c=L(a,193);null!=
c&&Yk(b,211,c);c=L(a,190);null!=c&&$k(b,208,c);c=L(a,191);null!=c&&$k(b,209,c);c=L(a,153);null!=c&&b.g(171,c);c=Q(a,QD,8,1);null!=c&&I(b,26,c,RD);c=Q(a,QD,9,1);null!=c&&I(b,27,c,RD);c=L(a,55);null!=c&&b.g(73,c);c=Q(a,ZE,56);null!=c&&I(b,74,c,HF);c=R(a,cF,175);0<c.length&&el(b,193,c,zF)},HF=function(a,b){var c=L(a,1);null!=c&&b.g(1,c);c=L(a,2);null!=c&&b.g(2,c);c=L(a,3);null!=c&&b.g(3,c);c=L(a,4);null!=c&&b.g(4,c)},IF=function(a,b){N(a,1,b)},JF=function(a,b){N(a,2,b)};
YE.prototype.l=function(a){return N(this,168,a||[])};
var $E=[3],sF=function(a,b){var c=L(a,1);null!=c&&b.g(1,c);c=L(a,2);null!=c&&b.g(2,c);c=L(a,3);0<c.length&&al(b,3,c)},bF=[1],zF=function(a,b){var c=L(a,1);0<c.length&&dl(b,1,c);c=L(a,2);null!=c&&G(b,2,c)},tF=function(a,b){a=L(a,1);null!=a&&E(b,1,a)},uF=function(a,b){var c=L(a,1);null!=c&&F(b,1,c);c=L(a,2);null!=c&&b.g(2,c);c=L(a,3);null!=c&&b.g(3,c)},oF=function(a){return R(a,SE,2)},KF=function(a,b){Cl(a,2,b)},qF=function(a){return R(a,YE,13)},kF=function(a,b){var c=L(a,1);null!=c&&F(b,1,c);c=L(a,
2);null!=c&&Yk(b,2,c)},gF=[3,4],lF=function(a,b){var c=L(a,1);null!=c&&G(b,1,c);c=L(a,2);null!=c&&G(b,2,c);c=L(a,3);0<c.length&&bl(b,3,c);c=L(a,4);0<c.length&&bl(b,4,c)},mF=function(a,b){var c=L(a,1);null!=c&&G(b,1,c);c=L(a,2);null!=c&&F(b,2,c)};var LF=function(a){K(this,a,0,-1,null,null)};B(LF,J);var MF=function(a,b){var c=L(a,1);null!=c&&F(b,1,c);c=L(a,2);null!=c&&Yk(b,2,c)};var OF=function(a){K(this,a,0,-1,null,NF)};B(OF,J);var PF=function(a){K(this,a,0,-1,null,null)};B(PF,J);var QF=function(a){K(this,a,0,-1,null,null)};B(QF,J);var NF=[[1,2]],TF=function(a,b){var c=Q(a,PF,1);null!=c&&I(b,1,c,RF);c=Q(a,QF,2);null!=c&&I(b,2,c,SF)},RF=function(a,b){a=L(a,1);null!=a&&F(b,1,a)},SF=function(a,b){a=L(a,1);null!=a&&F(b,1,a)};var UF=function(a){K(this,a,0,-1,null,null)};B(UF,J);var VF=function(a){K(this,a,0,-1,null,null)};B(VF,J);var XF=function(a,b){var c=Q(a,VF,1);null!=c&&I(b,1,c,WF);c=Q(a,VF,2);null!=c&&I(b,2,c,WF);c=L(a,3);null!=c&&F(b,3,c);c=Q(a,OF,4);null!=c&&I(b,4,c,TF);c=L(a,5);null!=c&&E(b,5,c)},WF=function(a,b){var c=L(a,1);null!=c&&G(b,1,c);c=L(a,2);null!=c&&G(b,2,c);c=L(a,3);null!=c&&G(b,3,c)};var YF=function(a){K(this,a,0,-1,null,null)};B(YF,J);var ZF=function(a,b){var c=L(a,1);null!=c&&G(b,1,c);c=L(a,2);null!=c&&G(b,2,c);c=L(a,3);null!=c&&E(b,3,c);c=L(a,4);null!=c&&G(b,4,c);c=L(a,5);null!=c&&G(b,5,c);c=L(a,6);null!=c&&G(b,6,c);c=L(a,7);null!=c&&F(b,7,c)};YF.prototype.sa=function(){return L(this,6)};var $F=function(a){K(this,a,0,-1,null,null)};B($F,J);var aG=function(a,b){var c=L(a,1);null!=c&&G(b,1,c);c=L(a,2);null!=c&&G(b,2,c);c=L(a,3);null!=c&&G(b,3,c);c=L(a,4);null!=c&&G(b,4,c);c=L(a,5);null!=c&&G(b,5,c)};var bG=function(a){K(this,a,0,-1,null,null)};B(bG,J);var cG=function(a,b){var c=L(a,1);null!=c&&F(b,1,c);c=Q(a,YF,2);null!=c&&I(b,2,c,ZF);c=Q(a,UF,6);null!=c&&I(b,6,c,XF);c=L(a,3);null!=c&&G(b,3,c);c=L(a,11);null!=c&&G(b,11,c);c=L(a,4);null!=c&&G(b,4,c);c=L(a,5);null!=c&&b.g(5,c);c=L(a,7);null!=c&&Yk(b,7,c);c=L(a,8);null!=c&&G(b,8,c);c=Q(a,LF,12);null!=c&&I(b,12,c,MF);c=L(a,9);null!=c&&F(b,9,c);c=L(a,10);null!=c&&F(b,10,c);c=L(a,13);null!=c&&E(b,13,c);c=Q(a,$F,14);null!=c&&I(b,14,c,aG)};var eG=function(a){K(this,a,0,-1,dG,null)};B(eG,J);var fG=function(a){K(this,a,0,-1,null,null)};B(fG,J);var gG=function(a){K(this,a,0,-1,null,null)};B(gG,J);
var dG=[5,8,9],jG=function(a,b){var c=L(a,1);null!=c&&G(b,1,c);c=L(a,2);null!=c&&G(b,2,c);c=L(a,3);null!=c&&b.g(3,c);c=L(a,4);null!=c&&b.g(4,c);c=R(a,fG,5);0<c.length&&fl(b,5,c,hG);c=R(a,gG,8);0<c.length&&el(b,8,c,iG);c=L(a,9);0<c.length&&cl(b,9,c)},hG=function(a,b){var c=L(a,1);null!=c&&G(b,6,c);c=L(a,2);null!=c&&G(b,7,c)},iG=function(a,b){var c=L(a,1);null!=c&&F(b,1,c);c=L(a,2);null!=c&&G(b,2,c)};var lG=function(a){K(this,a,0,-1,kG,null)};B(lG,J);var nG=function(a){K(this,a,0,-1,mG,null)};B(nG,J);var oG=function(a){K(this,a,0,-1,null,null)};B(oG,J);
var kG=[1],qG=function(a,b){var c=R(a,nG,1);0<c.length&&fl(b,1,c,pG);c=L(a,15);null!=c&&F(b,15,c);c=L(a,16);null!=c&&b.g(16,c);c=L(a,17);null!=c&&b.g(17,c);c=Q(a,ZE,18);null!=c&&I(b,18,c,HF)},mG=[8,9,10,11,12,13],pG=function(a,b){var c=L(a,1);null!=c&&G(b,2,c);c=L(a,2);null!=c&&G(b,3,c);c=L(a,3);null!=c&&G(b,4,c);c=L(a,4);null!=c&&G(b,5,c);c=L(a,5);null!=c&&G(b,6,c);c=L(a,6);null!=c&&F(b,7,c);c=L(a,7);null!=c&&F(b,8,c);c=R(a,oG,8);0<c.length&&el(b,9,c,rG);c=R(a,oG,9);0<c.length&&el(b,10,c,rG);c=R(a,
oG,10);0<c.length&&el(b,11,c,rG);c=R(a,oG,11);0<c.length&&el(b,12,c,rG);c=R(a,oG,12);0<c.length&&el(b,13,c,rG);c=R(a,oG,13);0<c.length&&el(b,14,c,rG)},rG=function(a,b){var c=L(a,1);null!=c&&b.g(1,c);c=L(a,2);null!=c&&b.g(2,c)};var sG=function(a){K(this,a,0,-1,null,null)};B(sG,J);var tG=function(a){K(this,a,0,-1,null,null)};B(tG,J);
var vG=function(a,b){var c=L(a,1);null!=c&&G(b,1,c);c=L(a,2);null!=c&&G(b,2,c);c=L(a,3);null!=c&&G(b,3,c);c=L(a,4);null!=c&&b.g(4,c);c=L(a,5);null!=c&&b.g(5,c);c=Q(a,tG,6);null!=c&&I(b,6,c,uG);c=L(a,7);null!=c&&G(b,7,c)},uG=function(a,b){var c=L(a,1);null!=c&&E(b,1,c);c=L(a,51);null!=c&&E(b,51,c);c=L(a,4);null!=c&&E(b,4,c);c=L(a,61);null!=c&&F(b,61,c);c=L(a,7);null!=c&&E(b,7,c);c=L(a,109);null!=c&&E(b,109,c);c=L(a,14);null!=c&&E(b,14,c);c=L(a,15);null!=c&&b.g(15,c);c=L(a,16);null!=c&&b.g(16,c);c=
L(a,31);null!=c&&b.g(31,c);c=L(a,33);null!=c&&E(b,33,c);c=L(a,35);null!=c&&E(b,35,c);c=L(a,36);null!=c&&E(b,36,c);c=L(a,37);null!=c&&E(b,37,c);c=L(a,38);null!=c&&E(b,38,c);c=L(a,43);null!=c&&E(b,43,c);c=L(a,44);null!=c&&E(b,44,c);c=L(a,45);null!=c&&E(b,45,c);c=L(a,46);null!=c&&E(b,46,c);c=L(a,47);null!=c&&E(b,47,c);c=L(a,48);null!=c&&E(b,48,c);c=L(a,49);null!=c&&E(b,49,c);c=L(a,50);null!=c&&E(b,50,c);c=L(a,88);null!=c&&E(b,88,c);c=L(a,56);null!=c&&E(b,56,c);c=L(a,57);null!=c&&b.g(57,c);c=L(a,58);
null!=c&&E(b,58,c);c=L(a,59);null!=c&&E(b,59,c);c=L(a,60);null!=c&&E(b,60,c);c=L(a,62);null!=c&&G(b,62,c);c=L(a,63);null!=c&&E(b,63,c);c=L(a,64);null!=c&&b.g(64,c);c=L(a,66);null!=c&&E(b,66,c);c=L(a,67);null!=c&&E(b,67,c);c=L(a,68);null!=c&&E(b,68,c);c=L(a,104);null!=c&&b.g(104,c);c=L(a,70);null!=c&&b.g(70,c);c=L(a,110);null!=c&&E(b,110,c);c=L(a,71);null!=c&&E(b,71,c);c=L(a,72);null!=c&&E(b,72,c);c=L(a,74);null!=c&&E(b,74,c);c=L(a,75);null!=c&&$k(b,75,c);c=L(a,76);null!=c&&E(b,76,c);c=L(a,77);null!=
c&&b.g(77,c);c=L(a,78);null!=c&&E(b,78,c);c=L(a,79);null!=c&&E(b,79,c);c=L(a,80);null!=c&&E(b,80,c);c=L(a,81);null!=c&&E(b,81,c);c=L(a,82);null!=c&&E(b,82,c);c=L(a,84);null!=c&&E(b,84,c);c=L(a,85);null!=c&&E(b,85,c);c=L(a,86);null!=c&&E(b,86,c);c=L(a,87);null!=c&&E(b,87,c);c=L(a,99);null!=c&&E(b,99,c);c=L(a,89);null!=c&&E(b,89,c);c=L(a,112);null!=c&&b.g(112,c);c=L(a,90);null!=c&&b.g(90,c);c=L(a,97);null!=c&&b.g(97,c);c=L(a,91);null!=c&&E(b,91,c);c=L(a,92);null!=c&&E(b,92,c);c=L(a,93);null!=c&&E(b,
93,c);c=L(a,101);null!=c&&G(b,101,c)};tG.prototype.aj=function(){return ul(this,7,!1)};tG.prototype.ij=function(){return ul(this,46,!1)};tG.prototype.rf=function(){return ul(this,66,!1)};var wG=function(a){K(this,a,0,-1,null,null)};B(wG,J);var xG=function(a,b){var c=L(a,1);null!=c&&F(b,1,c);c=L(a,2);null!=c&&F(b,2,c);c=L(a,3);null!=c&&G(b,3,c);c=L(a,4);null!=c&&G(b,4,c);c=L(a,5);null!=c&&Yk(b,5,c);c=L(a,6);null!=c&&Yk(b,6,c)},yG=function(a,b){return N(a,1,b)},zG=function(a,b){return N(a,3,b)},AG=function(a,b){return N(a,4,b)},BG=function(a,b){return N(a,5,b)};var CG=function(a){K(this,a,0,-1,null,null)};B(CG,J);var DG=function(a,b){var c=L(a,1);null!=c&&b.g(1,c);c=L(a,2);null!=c&&b.g(2,c);c=L(a,3);null!=c&&Yk(b,3,c);c=L(a,4);null!=c&&Yk(b,4,c)};var EG=function(a){K(this,a,0,-1,null,null)};B(EG,J);var FG=function(a,b){var c=L(a,1);null!=c&&F(b,1,c);c=L(a,2);null!=c&&G(b,2,c);c=L(a,3);null!=c&&b.g(3,c);c=L(a,4);null!=c&&b.g(4,c);c=L(a,6);null!=c&&b.g(6,c);c=L(a,7);null!=c&&b.g(7,c);c=L(a,8);null!=c&&b.g(8,c);c=L(a,9);null!=c&&G(b,9,c);c=L(a,5);null!=c&&F(b,5,c)};EG.prototype.getName=function(){return L(this,2)};EG.prototype.getDeviceId=function(){return L(this,6)};var HG=function(a){K(this,a,0,-1,GG,null)};B(HG,J);var IG=function(a){K(this,a,0,-1,null,null)};B(IG,J);var KG=function(a){K(this,a,0,-1,JG,null)};B(KG,J);var LG=function(a){K(this,a,0,-1,null,null)};B(LG,J);
var GG=[24],OG=function(a,b){var c=L(a,1);null!=c&&G(b,1,c);c=L(a,2);null!=c&&b.g(2,c);c=L(a,3);null!=c&&b.g(3,c);c=L(a,25);null!=c&&G(b,25,c);c=L(a,4);null!=c&&b.g(4,c);c=L(a,5);null!=c&&G(b,5,c);c=L(a,6);null!=c&&b.g(6,c);c=L(a,7);null!=c&&b.g(7,c);c=L(a,8);null!=c&&G(b,8,c);c=L(a,9);null!=c&&b.g(9,c);c=L(a,10);null!=c&&b.g(10,c);c=L(a,11);null!=c&&G(b,11,c);c=L(a,12);null!=c&&G(b,12,c);c=L(a,13);null!=c&&G(b,13,c);c=L(a,14);null!=c&&G(b,14,c);c=L(a,15);null!=c&&G(b,15,c);c=L(a,16);null!=c&&G(b,
16,c);c=L(a,17);null!=c&&b.g(17,c);c=L(a,18);null!=c&&b.g(18,c);c=L(a,19);null!=c&&G(b,19,c);c=L(a,26);null!=c&&G(b,26,c);c=L(a,20);null!=c&&G(b,20,c);c=Q(a,IG,21);null!=c&&I(b,21,c,MG);c=L(a,22);null!=c&&G(b,22,c);c=Q(a,KG,23);null!=c&&I(b,23,c,NG);c=R(a,EG,24);0<c.length&&el(b,24,c,FG)},MG=function(a,b){var c=L(a,1);null!=c&&E(b,1,c);c=L(a,2);null!=c&&b.g(2,c);c=L(a,3);null!=c&&b.g(3,c);c=L(a,4);null!=c&&b.g(4,c);c=L(a,5);null!=c&&b.g(5,c)},JG=[3],NG=function(a,b){var c=L(a,1);null!=c&&b.g(1,c);
c=L(a,2);null!=c&&b.g(2,c);c=R(a,LG,3);0<c.length&&el(b,3,c,PG)},PG=function(a,b){var c=L(a,1);null!=c&&F(b,1,c);c=L(a,2);null!=c&&F(b,2,c);c=L(a,4);null!=c&&F(b,4,c);c=L(a,3);null!=c&&F(b,3,c)},QG=function(a,b){N(a,18,b)};var SG=function(a){K(this,a,0,-1,RG,null)};B(SG,J);
var RG=[11],TG=function(a,b){var c=L(a,1);null!=c&&G(b,1,c);c=L(a,2);null!=c&&G(b,2,c);c=L(a,14);null!=c&&G(b,14,c);c=L(a,21);null!=c&&G(b,21,c);c=L(a,24);null!=c&&G(b,24,c);c=L(a,3);null!=c&&G(b,3,c);c=Q(a,OE,4);null!=c&&I(b,4,c,nF);c=Q(a,eG,5);null!=c&&I(b,5,c,jG);c=Q(a,lG,6);null!=c&&I(b,6,c,qG);c=Q(a,sG,7);null!=c&&I(b,7,c,vG);c=Q(a,HG,8);null!=c&&I(b,8,c,OG);c=Q(a,bG,10);null!=c&&I(b,10,c,cG);c=Q(a,CG,17);null!=c&&I(b,17,c,DG);c=Q(a,wG,15);null!=c&&I(b,15,c,xG);c=L(a,11);0<c.length&&dl(b,11,
c);c=L(a,12);null!=c&&E(b,12,c);c=L(a,9);null!=c&&F(b,9,c);c=L(a,13);null!=c&&G(b,13,c);c=L(a,16);null!=c&&G(b,16,c);c=L(a,18);null!=c&&E(b,18,c);c=L(a,19);null!=c&&Yk(b,19,c);c=L(a,20);null!=c&&Yk(b,20,c);c=L(a,22);null!=c&&G(b,22,c);c=L(a,23);null!=c&&G(b,23,c)};SG.prototype.sa=function(){return L(this,2)};SG.prototype.qb=function(){return L(this,21)};SG.prototype.Z=function(){return L(this,3)};var UG=function(a){var b=new SG;return S(b,15,a)};SG.prototype.Qb=function(){return L(this,22)};var VG=function(a){K(this,a,0,-1,null,null)};B(VG,J);k=VG.prototype;k.Iu=function(){var a=new Sk;var b=Q(this,nB,1);null!=b&&I(a,1,b,oB);b=L(this,2);null!=b&&G(a,2,b);b=Q(this,SG,3);null!=b&&I(a,3,b,TG);b=this.da();null!=b&&I(a,4,b,Rl);return Wk(a)};k.setRequestHeader=function(a){return S(this,1,a)};k.da=function(){return Q(this,Ll,4)};k.O=function(a){S(this,4,a)};k.ma=function(){this.O(void 0)};var WG=function(a){K(this,a,"chselrp",-1,null,null)};B(WG,J);var XG=function(a){a=new zk(a);for(var b=new WG;Bk(a)&&!Ak(a);)switch(a.h){case 1:var c=new rB;Dk(a,c,sB);S(b,1,c);break;case 2:c=new Ll;Dk(a,c,Pl);b.O(c);break;default:Ck(a)}return b};WG.messageId="chselrp";WG.prototype.getResponseHeader=function(){return Q(this,rB,1)};WG.prototype.da=function(){return Q(this,Ll,2)};WG.prototype.O=function(a){S(this,2,a)};WG.prototype.ma=function(){this.O(void 0)};var ZG=function(a){K(this,a,0,-1,YG,null)};B(ZG,J);var YG=[4];ZG.prototype.setRequestHeader=function(a){return S(this,1,a)};ZG.prototype.da=function(){return Q(this,Ll,3)};ZG.prototype.O=function(a){S(this,3,a)};ZG.prototype.ma=function(){this.O(void 0)};var aH=function(a){K(this,a,"chsemrp",-1,$G,null)};B(aH,J);var $G=[4];aH.messageId="chsemrp";aH.prototype.getResponseHeader=function(){return Q(this,rB,1)};aH.prototype.da=function(){return Q(this,Ll,3)};aH.prototype.O=function(a){S(this,3,a)};aH.prototype.ma=function(){this.O(void 0)};var cH=function(a){K(this,a,0,-1,bH,null)};B(cH,J);var bH=[4];cH.prototype.setRequestHeader=function(a){return S(this,1,a)};cH.prototype.da=function(){return Q(this,Ll,3)};cH.prototype.O=function(a){S(this,3,a)};cH.prototype.ma=function(){this.O(void 0)};var eH=function(a){K(this,a,"chsomrp",-1,dH,null)};B(eH,J);var dH=[4];eH.messageId="chsomrp";eH.prototype.getResponseHeader=function(){return Q(this,rB,1)};eH.prototype.da=function(){return Q(this,Ll,3)};eH.prototype.O=function(a){S(this,3,a)};eH.prototype.ma=function(){this.O(void 0)};var fH=function(a){K(this,a,0,-1,null,null)};B(fH,J);fH.prototype.setRequestHeader=function(a){return S(this,1,a)};fH.prototype.sa=function(){return L(this,2)};fH.prototype.Z=function(){return L(this,3)};fH.prototype.Ba=function(){return L(this,4)};var gH=function(a){K(this,a,"chsoqrp",-1,null,null)};B(gH,J);gH.messageId="chsoqrp";gH.prototype.getResponseHeader=function(){return Q(this,rB,1)};var hH=function(a){K(this,a,0,-1,null,null)};B(hH,J);hH.prototype.setRequestHeader=function(a){return S(this,1,a)};hH.prototype.sa=function(){return L(this,5)};var iH=function(a){K(this,a,"chstqrp",-1,null,null)};B(iH,J);iH.messageId="chstqrp";iH.prototype.getResponseHeader=function(){return Q(this,rB,1)};iH.prototype.Ia=function(){return Q(this,zC,2)};var kH=function(a){K(this,a,0,-1,jH,null)};B(kH,J);var jH=[7];kH.prototype.setRequestHeader=function(a){return S(this,1,a)};var lH=function(a,b){return N(a,3,b)};kH.prototype.sa=function(){return L(this,5)};kH.prototype.da=function(){return Q(this,Ll,6)};kH.prototype.O=function(a){S(this,6,a)};kH.prototype.ma=function(){this.O(void 0)};var mH=function(a,b){return N(a,7,b||[])};var nH=function(a){K(this,a,"chstrrp",-1,null,null)};B(nH,J);nH.messageId="chstrrp";nH.prototype.getResponseHeader=function(){return Q(this,rB,1)};nH.prototype.da=function(){return Q(this,Ll,2)};nH.prototype.O=function(a){S(this,2,a)};nH.prototype.ma=function(){this.O(void 0)};var pH=function(a){K(this,a,0,-1,oH,null)};B(pH,J);var oH=[2,3];k=pH.prototype;k.da=function(){return Q(this,Ll,1)};k.O=function(a){S(this,1,a)};k.ma=function(){this.O(void 0)};k.Rb=function(){return R(this,bB,2)};k.wc=function(){return R(this,ID,3)};k.Wb=function(){return Q(this,ID,4)};var qH=function(a){K(this,a,0,-1,null,null)};B(qH,J);qH.prototype.sa=function(){return L(this,1)};var sH=function(a){K(this,a,0,-1,rH,null)};B(sH,J);var rH=[2,3];k=sH.prototype;k.da=function(){return Q(this,Ll,1)};k.O=function(a){S(this,1,a)};k.ma=function(){this.O(void 0)};k.Rb=function(){return R(this,vB,2)};k.wc=function(){return R(this,qH,3)};k.Wb=function(){return Q(this,qH,4)};var tH=function(a){K(this,a,0,-1,null,null)};B(tH,J);tH.prototype.da=function(){return Q(this,Ll,1)};tH.prototype.O=function(a){S(this,1,a)};tH.prototype.ma=function(){this.O(void 0)};var vH=function(a){K(this,a,0,-1,uH,null)};B(vH,J);var uH=[1];var wH=function(a){K(this,a,0,-1,null,null)};B(wH,J);var xH=function(a){K(this,a,0,-1,null,null)};B(xH,J);xH.prototype.sa=function(){return L(this,1)};xH.prototype.l=function(a){return N(this,1,a)};var zH=function(a){K(this,a,0,-1,yH,null)};B(zH,J);var yH=[2];k=zH.prototype;k.da=function(){return Q(this,Ll,1)};k.O=function(a){S(this,1,a)};k.ma=function(){this.O(void 0)};k.Rb=function(){return R(this,eD,2)};k.Wb=function(){return Q(this,xH,3)};var BH=function(a){K(this,a,0,-1,AH,null)};B(BH,J);var AH=[2,3];k=BH.prototype;k.da=function(){return Q(this,Ll,1)};k.O=function(a){S(this,1,a)};k.ma=function(){this.O(void 0)};k.Rb=function(){return R(this,FB,2)};k.wc=function(){return R(this,DD,3)};k.Wb=function(){return Q(this,DD,5)};var DH=function(a){K(this,a,0,-1,CH,null)};B(DH,J);var CH=[2];DH.prototype.da=function(){return Q(this,Ll,1)};DH.prototype.O=function(a){S(this,1,a)};DH.prototype.ma=function(){this.O(void 0)};DH.prototype.Rb=function(){return R(this,LD,2)};var FH=function(a){K(this,a,0,-1,EH,null)};B(FH,J);var EH=[2,3];k=FH.prototype;k.da=function(){return Q(this,Ll,1)};k.O=function(a){S(this,1,a)};k.ma=function(){this.O(void 0)};k.Rb=function(){return R(this,BB,2)};k.wc=function(){return R(this,xH,3)};k.Wb=function(){return Q(this,xH,4)};var GH=function(a){K(this,a,0,-1,null,null)};B(GH,J);GH.prototype.l=function(){return L(this,1)};GH.prototype.u=function(a){return N(this,1,a)};var IH=function(a){K(this,a,0,-1,HH,null)};B(IH,J);var HH=[2,3];k=IH.prototype;k.da=function(){return Q(this,Ll,1)};k.O=function(a){S(this,1,a)};k.ma=function(){this.O(void 0)};k.Rb=function(){return R(this,hC,2)};k.wc=function(){return R(this,GH,3)};k.Wb=function(){return Q(this,GH,4)};var KH=function(a){K(this,a,0,-1,JH,null)};B(KH,J);var JH=[2,3];k=KH.prototype;k.da=function(){return Q(this,Ll,1)};k.O=function(a){S(this,1,a)};k.ma=function(){this.O(void 0)};k.Rb=function(){return R(this,pC,2)};k.wc=function(){return R(this,JD,3)};k.Wb=function(){return Q(this,JD,4)};var LH=function(a){K(this,a,0,-1,null,null)};B(LH,J);k=LH.prototype;k.sa=function(){return L(this,1)};k.Nn=function(a){return N(this,1,a)};k.Vh=function(){return L(this,2)};k.On=function(a){return N(this,2,a)};k.ek=function(){return L(this,3)};k.Nu=function(a){return N(this,3,a)};k.dk=function(){return L(this,4)};k.Mu=function(a){return N(this,4,a)};var NH=function(a){K(this,a,0,-1,MH,null)};B(NH,J);var MH=[2,3];k=NH.prototype;k.da=function(){return Q(this,Ll,1)};k.O=function(a){S(this,1,a)};k.ma=function(){this.O(void 0)};k.Rb=function(){return R(this,zC,2)};k.wc=function(){return R(this,LH,3)};k.Wb=function(){return Q(this,LH,4)};var OH=function(a){K(this,a,0,-1,null,null)};B(OH,J);var PH=function(a,b){for(;Bk(b)&&!Ak(b);)switch(b.h){case 1:var c=Gk(b);P(a,1,c);break;case 2:c=b;var d=xk(c.g);c=c.g;if(0>d||c.g+d>c.h.length)c.C=!0,Eb("Invalid byte length!"),c=new Uint8Array(0);else{var e=c.h.subarray(c.g,c.g+d);c.g+=d;c=e}wl(a,2,c,"");break;default:Ck(b)}return a};var RH=function(a){K(this,a,0,-1,QH,null)};B(RH,J);var SH=function(a){K(this,a,0,-1,null,null)};B(SH,J);var TH=function(a){K(this,a,0,-1,null,null)};B(TH,J);var UH=function(a){K(this,a,0,-1,null,null)};B(UH,J);var VH=function(a){K(this,a,0,-1,null,null)};B(VH,J);var WH=function(a){K(this,a,0,-1,null,null)};B(WH,J);var XH=function(a){K(this,a,0,-1,null,null)};B(XH,J);var YH=function(a){K(this,a,0,-1,null,null)};B(YH,J);
var QH=[7,13,16,17,18],$H=function(a){a=new zk(a);var b=new RH;return ZH(b,a)},ZH=function(a,b){for(;Bk(b)&&!Ak(b);)switch(b.h){case 1:var c=Gk(b);a.l(c);break;case 2:c=Gk(b);P(a,2,c);break;case 29:c=Gk(b);P(a,29,c);break;case 24:c=new SH;Dk(b,c,aI);S(a,24,c);break;case 3:c=Gk(b);P(a,3,c);break;case 4:c=Fk(b);bI(a,c);break;case 5:c=Ek(b);wl(a,5,c,!1);break;case 28:c=Fk(b);xl(a,28,c);break;case 7:c=Gk(b);L(a,7).push(c);break;case 22:c=Gk(b);cI(a,c);break;case 23:c=Gk(b);P(a,23,c);break;case 8:c=Ek(b);
wl(a,8,c,!1);break;case 9:c=Ek(b);wl(a,9,c,!1);break;case 10:c=Gk(b);P(a,10,c);break;case 11:c=Fk(b);xl(a,11,c);break;case 12:c=new TH;Dk(b,c,dI);eI(a,c);break;case 30:c=new TH;Dk(b,c,dI);S(a,30,c);break;case 27:c=new UH;Dk(b,c,fI);S(a,27,c);break;case 13:c=Hk(b,b.g.m);N(a,13,c||[]);break;case 14:c=new VH;Dk(b,c,gI);S(a,14,c);break;case 15:c=Ek(b);wl(a,15,c,!1);break;case 16:c=new WH;Dk(b,c,hI);Dl(a,16,c,WH);break;case 17:c=new XH;Dk(b,c,iI);Dl(a,17,c,XH);break;case 18:c=Hk(b,b.g.m);N(a,18,c||[]);
break;case 19:c=Gk(b);P(a,19,c);break;case 20:c=new YH;Dk(b,c,jI);S(a,20,c);break;case 21:c=Gk(b);P(a,21,c);break;case 25:c=Fk(b);xl(a,25,c);break;case 26:c=Ek(b);wl(a,26,c,!1);break;default:Ck(b)}return a},sI=function(a,b){var c=a.Gb();0<c.length&&G(b,1,c);c=M(a,2,"");0<c.length&&G(b,2,c);c=M(a,29,"");0<c.length&&G(b,29,c);c=Q(a,SH,24);null!=c&&I(b,24,c,kI);c=M(a,3,"");0<c.length&&G(b,3,c);c=lI(a);0!==c&&F(b,4,c);(c=ul(a,5,!1))&&E(b,5,c);c=M(a,28,0);0!==c&&F(b,28,c);c=L(a,7);0<c.length&&dl(b,7,c);
c=M(a,22,"");0<c.length&&G(b,22,c);c=M(a,23,"");0<c.length&&G(b,23,c);(c=ul(a,8,!1))&&E(b,8,c);(c=ul(a,9,!1))&&E(b,9,c);c=M(a,10,"");0<c.length&&G(b,10,c);c=M(a,11,0);0!==c&&F(b,11,c);c=Q(a,TH,12);null!=c&&I(b,12,c,mI);c=Q(a,TH,30);null!=c&&I(b,30,c,mI);c=Q(a,UH,27);null!=c&&I(b,27,c,nI);c=L(a,13);0<c.length&&il(b,13,c);c=Q(a,VH,14);null!=c&&I(b,14,c,oI);(c=ul(a,15,!1))&&E(b,15,c);c=R(a,WH,16);0<c.length&&el(b,16,c,pI);c=R(a,XH,17);0<c.length&&el(b,17,c,qI);c=L(a,18);0<c.length&&il(b,18,c);c=M(a,
19,"");0<c.length&&G(b,19,c);c=Q(a,YH,20);null!=c&&I(b,20,c,rI);c=M(a,21,"");0<c.length&&G(b,21,c);c=M(a,25,0);0!==c&&F(b,25,c);(c=ul(a,26,!1))&&E(b,26,c)},aI=function(a,b){for(;Bk(b)&&!Ak(b);)switch(b.h){case 1:var c=Fk(b);xl(a,1,c);break;default:Ck(b)}return a},kI=function(a,b){a=M(a,1,0);0!==a&&F(b,1,a)},dI=function(a,b){for(;Bk(b)&&!Ak(b);)switch(b.h){case 1:var c=Gk(b);P(a,1,c);break;default:Ck(b)}return a},mI=function(a,b){a=M(a,1,"");0<a.length&&G(b,1,a)},fI=function(a,b){for(;Bk(b)&&!Ak(b);)switch(b.h){case 1:var c=
Gk(b);P(a,1,c);break;default:Ck(b)}return a},nI=function(a,b){a=M(a,1,"");0<a.length&&G(b,1,a)},gI=function(a,b){for(;Bk(b)&&!Ak(b);)switch(b.h){case 1:var c=Gk(b);P(a,1,c);break;case 2:c=Fk(b);xl(a,2,c);break;case 3:c=Fk(b);xl(a,3,c);break;default:Ck(b)}return a},oI=function(a,b){var c=M(a,1,"");0<c.length&&G(b,1,c);c=M(a,2,0);0!==c&&F(b,2,c);c=M(a,3,0);0!==c&&F(b,3,c)},hI=function(a,b){for(;Bk(b)&&!Ak(b);)switch(b.h){case 1:var c=Gk(b);P(a,1,c);break;case 2:c=Fk(b);xl(a,2,c);break;case 3:c=Fk(b);
xl(a,3,c);break;case 4:c=Fk(b);xl(a,4,c);break;case 5:c=Ek(b);wl(a,5,c,!1);break;default:Ck(b)}return a},pI=function(a,b){var c=M(a,1,"");0<c.length&&G(b,1,c);c=M(a,2,0);0!==c&&F(b,2,c);c=M(a,3,0);0!==c&&F(b,3,c);c=M(a,4,0);0!==c&&F(b,4,c);(c=ul(a,5,!1))&&E(b,5,c)},iI=function(a,b){for(;Bk(b)&&!Ak(b);)switch(b.h){case 1:var c=Gk(b);P(a,1,c);break;case 2:c=Fk(b);xl(a,2,c);break;default:Ck(b)}return a},qI=function(a,b){var c=M(a,1,"");0<c.length&&G(b,1,c);c=M(a,2,0);0!==c&&F(b,2,c)},jI=function(a,b){for(;Bk(b)&&
!Ak(b);)switch(b.h){case 1:var c=Gk(b);P(a,1,c);break;case 2:c=Fk(b);xl(a,2,c);break;case 3:c=Gk(b);P(a,3,c);break;case 4:c=Gk(b);P(a,4,c);break;default:Ck(b)}return a},rI=function(a,b){var c=M(a,1,"");0<c.length&&G(b,1,c);c=M(a,2,0);0!==c&&F(b,2,c);c=M(a,3,"");0<c.length&&G(b,3,c);c=M(a,4,"");0<c.length&&G(b,4,c)};RH.prototype.Gb=function(){return M(this,1,"")};RH.prototype.l=function(a){return P(this,1,a)};
var lI=function(a){return M(a,4,0)},bI=function(a,b){return xl(a,4,b)},cI=function(a,b){return P(a,22,b)},eI=function(a,b){S(a,12,b)};var tI=function(a){K(this,a,0,-1,null,null)};B(tI,J);tI.prototype.ac=function(){return M(this,1,0)};var vI=function(a){K(this,a,0,-1,uI,null)};B(vI,J);var uI=[2,3];k=vI.prototype;k.da=function(){return Q(this,tI,1)};k.O=function(a){S(this,1,a)};k.ma=function(){this.O(void 0)};k.Rb=function(){return R(this,RH,2)};k.wc=function(){return L(this,3)};k.Wb=function(){return M(this,4,"")};var wI=function(a){K(this,a,0,-1,null,null)};B(wI,J);var yI=function(a){K(this,a,0,-1,xI,null)};B(yI,J);var xI=[2];k=yI.prototype;k.da=function(){return Q(this,tI,1)};k.O=function(a){S(this,1,a)};k.ma=function(){this.O(void 0)};k.Rb=function(){return R(this,wI,2)};k.Wb=function(){return M(this,3,"")};var zI=function(a){K(this,a,0,-1,null,null)};B(zI,J);zI.prototype.getName=function(){return M(this,1,"")};var BI=function(a){K(this,a,0,-1,AI,null)};B(BI,J);var AI=[2];k=BI.prototype;k.da=function(){return Q(this,tI,1)};k.O=function(a){S(this,1,a)};k.ma=function(){this.O(void 0)};k.Rb=function(){return R(this,zI,2)};k.Wb=function(){return M(this,3,"")};var DI=function(a){K(this,a,0,-1,CI,null)};B(DI,J);var CI=[4];DI.prototype.getName=function(){return M(this,1,"")};DI.prototype.getState=function(){return M(this,3,0)};var FI=function(a){K(this,a,0,-1,EI,null)};B(FI,J);var EI=[2,3];k=FI.prototype;k.da=function(){return Q(this,tI,1)};k.O=function(a){S(this,1,a)};k.ma=function(){this.O(void 0)};k.Rb=function(){return R(this,DI,2)};k.wc=function(){return L(this,3)};k.Wb=function(){return M(this,4,"")};var GI=function(a){K(this,a,0,-1,null,null)};B(GI,J);GI.prototype.getName=function(){return M(this,1,"")};var II=function(a){K(this,a,0,-1,HI,null)};B(II,J);var HI=[2];k=II.prototype;k.da=function(){return Q(this,tI,1)};k.O=function(a){S(this,1,a)};k.ma=function(){this.O(void 0)};k.Rb=function(){return R(this,GI,2)};k.Wb=function(){return M(this,3,"")};var JI=function(a){K(this,a,0,-1,null,null)};B(JI,J);JI.prototype.getName=function(){return M(this,1,"")};JI.prototype.getState=function(){return M(this,6,0)};var LI=function(a){K(this,a,0,-1,KI,null)};B(LI,J);var KI=[2,3];k=LI.prototype;k.da=function(){return Q(this,tI,1)};k.O=function(a){S(this,1,a)};k.ma=function(){this.O(void 0)};k.Rb=function(){return R(this,JI,2)};k.wc=function(){return L(this,3)};k.Wb=function(){return M(this,4,"")};var MI=function(a){K(this,a,0,-1,null,null)};B(MI,J);MI.prototype.getTitle=function(){return M(this,2,"")};MI.prototype.setTitle=function(a){return P(this,2,a)};var OI=function(a){K(this,a,0,-1,NI,null)};B(OI,J);var NI=[2,3];k=OI.prototype;k.da=function(){return Q(this,tI,1)};k.O=function(a){S(this,1,a)};k.ma=function(){this.O(void 0)};k.Rb=function(){return R(this,MI,2)};k.wc=function(){return L(this,3)};k.Wb=function(){return M(this,4,"")};var QI=function(a){K(this,a,0,-1,PI,null)};B(QI,J);var RI=function(a){K(this,a,0,-1,null,null)};B(RI,J);
var PI=[1],TI=function(a,b){for(;Bk(b)&&!Ak(b);)switch(b.h){case 1:var c=new RI;Dk(b,c,SI);Dl(a,1,c,RI);break;case 2:c=Gk(b);P(a,2,c);break;case 3:c=Fk(b);xl(a,3,c);break;default:Ck(b)}return a},VI=function(a,b){var c=R(a,RI,1);0<c.length&&el(b,1,c,UI);c=M(a,2,"");0<c.length&&G(b,2,c);c=M(a,3,0);0!==c&&F(b,3,c)},SI=function(a,b){for(;Bk(b)&&!Ak(b);)switch(b.h){case 1:var c=Gk(b);P(a,1,c);break;default:Ck(b)}return a},UI=function(a,b){a=M(a,1,"");0<a.length&&G(b,1,a)};var XI=function(a){K(this,a,0,-1,WI,null)};B(XI,J);var YI=function(a){K(this,a,0,-1,null,null)};B(YI,J);var ZI=function(a){K(this,a,0,-1,null,null)};B(ZI,J);var $I=function(a){K(this,a,0,-1,null,null)};B($I,J);var aJ=function(a){K(this,a,0,-1,null,null)};B(aJ,J);var bJ=function(a){K(this,a,0,-1,null,null)};B(bJ,J);var cJ=function(a){K(this,a,0,-1,null,null)};B(cJ,J);var dJ=function(a){K(this,a,0,-1,null,null)};B(dJ,J);var fJ=function(a){K(this,a,0,-1,eJ,null)};B(fJ,J);
var gJ=function(a){K(this,a,0,-1,null,null)};B(gJ,J);var hJ=function(a){K(this,a,0,-1,null,null)};B(hJ,J);var iJ=function(a){K(this,a,0,-1,null,null)};B(iJ,J);
var WI=[5,11,13],pJ=function(a){a=new zk(a);for(var b=new XI;Bk(a)&&!Ak(a);)switch(a.h){case 1:var c=Gk(a);b.u(c);break;case 2:c=Gk(a);P(b,2,c);break;case 3:c=Gk(a);P(b,3,c);break;case 5:c=new YI;Dk(a,c,jJ);Dl(b,5,c,YI);break;case 8:c=new ZI;Dk(a,c,kJ);S(b,8,c);break;case 6:c=new fJ;Dk(a,c,lJ);S(b,6,c);break;case 7:c=Gk(a);P(b,7,c);break;case 9:c=new gJ;Dk(a,c,mJ);S(b,9,c);break;case 10:c=Gk(a);P(b,10,c);break;case 11:c=Hk(a,a.g.m);N(b,11,c||[]);break;case 12:c=new QI;Dk(a,c,TI);S(b,12,c);break;case 13:c=
new hJ;Dk(a,c,nJ);Dl(b,13,c,hJ);break;case 14:c=new iJ;Dk(a,c,oJ);S(b,14,c);break;default:Ck(a)}return b},xJ=function(a,b){var c=a.l();0<c.length&&G(b,1,c);c=a.Qb();0<c.length&&G(b,2,c);c=M(a,3,"");0<c.length&&G(b,3,c);c=R(a,YI,5);0<c.length&&el(b,5,c,qJ);c=Q(a,ZI,8);null!=c&&I(b,8,c,rJ);c=sJ(a);null!=c&&I(b,6,c,tJ);c=M(a,7,"");0<c.length&&G(b,7,c);c=Q(a,gJ,9);null!=c&&I(b,9,c,uJ);c=M(a,10,"");0<c.length&&G(b,10,c);c=L(a,11);0<c.length&&il(b,11,c);c=Q(a,QI,12);null!=c&&I(b,12,c,VI);c=R(a,hJ,13);0<
c.length&&el(b,13,c,vJ);c=Q(a,iJ,14);null!=c&&I(b,14,c,wJ)},jJ=function(a,b){for(;Bk(b)&&!Ak(b);)switch(b.h){case 1:var c=Gk(b);P(a,1,c);break;case 2:c=Gk(b);P(a,2,c);break;case 3:c=Gk(b);P(a,3,c);break;case 4:c=Gk(b);P(a,4,c);break;default:Ck(b)}return a},qJ=function(a,b){var c=M(a,1,"");0<c.length&&G(b,1,c);c=M(a,2,"");0<c.length&&G(b,2,c);c=M(a,3,"");0<c.length&&G(b,3,c);c=M(a,4,"");0<c.length&&G(b,4,c)},kJ=function(a,b){for(;Bk(b)&&!Ak(b);)switch(b.h){case 1:var c=Gk(b);P(a,1,c);break;case 2:c=
Gk(b);P(a,2,c);break;default:Ck(b)}return a},rJ=function(a,b){var c=M(a,1,"");0<c.length&&G(b,1,c);c=M(a,2,"");0<c.length&&G(b,2,c)},yJ=function(a,b){for(;Bk(b)&&!Ak(b);)switch(b.h){case 1:var c=Gk(b);P(a,1,c);break;case 2:c=Gk(b);P(a,2,c);break;default:Ck(b)}return a},zJ=function(a,b){var c=M(a,1,"");0<c.length&&G(b,1,c);c=M(a,2,"");0<c.length&&G(b,2,c)},BJ=function(a,b){for(;Bk(b)&&!Ak(b);)switch(b.h){case 1:var c=Fk(b);xl(a,1,c);break;case 2:c=Gk(b);P(a,2,c);break;case 3:c=Gk(b);P(a,3,c);break;
case 4:c=new bJ;Dk(b,c,AJ);S(a,4,c);break;case 5:c=Gk(b);P(a,5,c);break;case 6:c=Fk(b);xl(a,6,c);break;default:Ck(b)}return a},DJ=function(a,b){var c=M(a,1,0);0!==c&&F(b,1,c);c=M(a,2,"");0<c.length&&G(b,2,c);c=M(a,3,"");0<c.length&&G(b,3,c);c=Q(a,bJ,4);null!=c&&I(b,4,c,CJ);c=M(a,5,"");0<c.length&&G(b,5,c);c=M(a,6,0);0!==c&&F(b,6,c)},AJ=function(a,b){for(;Bk(b)&&!Ak(b);)switch(b.h){case 1:var c=Gk(b);P(a,1,c);break;case 2:c=Fk(b);xl(a,2,c);break;default:Ck(b)}return a},CJ=function(a,b){var c=a.getDeviceId();
0<c.length&&G(b,1,c);c=M(a,2,0);0!==c&&F(b,2,c)};bJ.prototype.getDeviceId=function(){return M(this,1,"")};
var FJ=function(a,b){for(;Bk(b)&&!Ak(b);)switch(b.h){case 1:var c=Fk(b);xl(a,1,c);break;case 2:c=Gk(b);P(a,2,c);break;case 3:c=Fk(b);xl(a,3,c);break;case 4:c=new dJ;Dk(b,c,EJ);S(a,4,c);break;case 5:c=Gk(b);P(a,5,c);break;case 6:c=Fk(b);xl(a,6,c);break;case 7:c=Ek(b);wl(a,7,c,!1);break;default:Ck(b)}return a},HJ=function(a,b){var c=a.Ja();0!==c&&F(b,1,c);c=M(a,2,"");0<c.length&&G(b,2,c);c=M(a,3,0);0!==c&&F(b,3,c);c=Q(a,dJ,4);null!=c&&I(b,4,c,GJ);c=M(a,5,"");0<c.length&&G(b,5,c);c=M(a,6,0);0!==c&&F(b,
6,c);(c=ul(a,7,!1))&&E(b,7,c)},EJ=function(a,b){for(;Bk(b)&&!Ak(b);)switch(b.h){case 1:var c=Gk(b);P(a,1,c);break;case 2:c=Fk(b);xl(a,2,c);break;default:Ck(b)}return a},GJ=function(a,b){var c=a.getDeviceId();0<c.length&&G(b,1,c);c=M(a,2,0);0!==c&&F(b,2,c)};dJ.prototype.getDeviceId=function(){return M(this,1,"")};cJ.prototype.Ja=function(){return M(this,1,0)};
var eJ=[9],lJ=function(a,b){for(;Bk(b)&&!Ak(b);)switch(b.h){case 1:var c=new $I;Dk(b,c,yJ);a.nd(c);break;case 2:c=new aJ;Dk(b,c,BJ);S(a,2,c);break;case 3:c=Gk(b);P(a,3,c);break;case 4:c=Gk(b);P(a,4,c);break;case 6:c=xk(b.g);wl(a,6,c,0);break;case 8:c=Gk(b);P(a,8,c);break;case 9:c=new cJ;Dk(b,c,FJ);Dl(a,9,c,cJ);break;default:Ck(b)}return a},tJ=function(a,b){var c=a.xc();null!=c&&I(b,1,c,zJ);c=Q(a,aJ,2);null!=c&&I(b,2,c,DJ);c=M(a,3,"");0<c.length&&G(b,3,c);c=M(a,4,"");0<c.length&&G(b,4,c);c=M(a,6,0);
0!==c&&b.g(6,c);c=M(a,8,"");0<c.length&&G(b,8,c);c=R(a,cJ,9);0<c.length&&el(b,9,c,HJ)};fJ.prototype.xc=function(){return Q(this,$I,1)};fJ.prototype.nd=function(a){return S(this,1,a)};fJ.prototype.lj=function(){return null!=L(this,1)};var mJ=function(a,b){for(;Bk(b)&&!Ak(b);)switch(b.h){case 2:var c=Ek(b);a.setEnabled(c);break;default:Ck(b)}return a},uJ=function(a,b){(a=ul(a,2,!1))&&E(b,2,a)};gJ.prototype.setEnabled=function(a){return wl(this,2,a,!1)};
var nJ=function(a,b){for(;Bk(b)&&!Ak(b);)switch(b.h){case 1:var c=Gk(b);P(a,1,c);break;case 2:c=Gk(b);P(a,2,c);break;default:Ck(b)}return a},vJ=function(a,b){var c=M(a,1,"");0<c.length&&G(b,1,c);c=M(a,2,"");0<c.length&&G(b,2,c)},oJ=function(a,b){for(;Bk(b)&&!Ak(b);)switch(b.h){case 1:var c=Gk(b);P(a,1,c);break;case 2:c=Fk(b);xl(a,2,c);break;default:Ck(b)}return a},wJ=function(a,b){var c=M(a,1,"");0<c.length&&G(b,1,c);c=M(a,2,0);0!==c&&F(b,2,c)};XI.prototype.l=function(){return M(this,1,"")};
XI.prototype.u=function(a){return P(this,1,a)};XI.prototype.Qb=function(){return M(this,2,"")};var sJ=function(a){return Q(a,fJ,6)};var JJ=function(a){K(this,a,0,-1,IJ,null)};B(JJ,J);var IJ=[2];k=JJ.prototype;k.da=function(){return Q(this,tI,1)};k.O=function(a){S(this,1,a)};k.ma=function(){this.O(void 0)};k.Rb=function(){return R(this,XI,2)};k.Wb=function(){return M(this,3,"")};var KJ=function(a){K(this,a,0,-1,null,null)};B(KJ,J);k=KJ.prototype;k.Mr=function(){return Q(this,vI,1)};k.Is=function(){return Q(this,JJ,2)};k.Hs=function(){return Q(this,OI,3)};k.Bs=function(){return Q(this,yI,4)};k.Cs=function(){return Q(this,BI,6)};k.Ds=function(){return Q(this,FI,7)};k.Fs=function(){return Q(this,II,8)};k.Gs=function(){return Q(this,LI,9)};var LJ=function(a){K(this,a,0,-1,null,null)};B(LJ,J);k=LJ.prototype;k.Ur=function(){return Q(this,BH,1)};k.ws=function(){return Q(this,IH,2)};k.ys=function(){return Q(this,NH,3)};k.Kr=function(){return Q(this,tH,4)};k.xs=function(){return Q(this,KH,5)};k.Sr=function(){return Q(this,pH,7)};k.Vr=function(){return Q(this,FH,8)};k.Lr=function(){return Q(this,sH,9)};k.Es=function(){return Q(this,DH,10)};k.As=function(){return Q(this,KJ,13)};k.Tr=function(){return Q(this,zH,15)};var MJ=function(a){K(this,a,0,-1,null,null)};B(MJ,J);var OJ=function(a){K(this,a,"hcbu",-1,NJ,null)};B(OJ,J);var NJ=[1];OJ.messageId="hcbu";var QJ=function(a){K(this,a,0,-1,PJ,null)};B(QJ,J);var PJ=[2,6];var RJ=function(a){K(this,a,0,-1,null,null)};B(RJ,J);RJ.prototype.sa=function(){return L(this,3)};RJ.prototype.Z=function(){return L(this,4)};RJ.prototype.qb=function(){return L(this,10)};RJ.prototype.Qb=function(){return L(this,13)};var SJ=function(a){K(this,a,0,-1,null,null)};B(SJ,J);var UJ=function(a){K(this,a,0,-1,TJ,null)};B(UJ,J);var TJ=[3];var VJ=function(a){K(this,a,0,-1,null,null)};B(VJ,J);var WJ=function(a){K(this,a,0,-1,null,null)};B(WJ,J);VJ.prototype.bj=function(){return L(this,2)};var XJ=function(a){K(this,a,0,-1,null,null)};B(XJ,J);XJ.prototype.getId=function(){return L(this,1)};var YJ=function(a,b){return N(a,1,b)},ZJ=function(a,b){return N(a,2,b)};var aK=function(a){K(this,a,0,-1,$J,null)};B(aK,J);var $J=[1,2,3],bK=function(a){var b=new aK;return Cl(b,2,a)},cK=function(a,b){return N(a,3,b||[])};var dK=function(a){K(this,a,0,-1,null,null)};B(dK,J);var eK=function(a){K(this,a,0,-1,null,null)};B(eK,J);var V={},fK=(V[264]=4,V[275]=4,V[1579]=4,V[2360]=4,V[2359]=3,V[1781]=1,V[1169]=1,V[1167]=7,V[2053]=1,V[2054]=1,V[1168]=1,V[2052]=2,V[1177]=1,V[1199]=7,V[2245]=2,V[1175]=1,V[1176]=7,V[1172]=1,V[1173]=1,V[1174]=1,V[1184]=1,V[1183]=1,V[1182]=1,V[1181]=1,V[1180]=1,V[1179]=1,V[1178]=1,V[1827]=1,V[1171]=1,V[1170]=1,V[1387]=6,V[649]=6,V[640]=6,V[584]=6,V[2173]=4,V[1591]=6,V[574]=7,V[597]=3,V[2175]=3,V[1495]=4,V[588]=6,V[575]=4,V[587]=6,V[572]=7,V[598]=6,V[1580]=3,V[2754]=6,V[1260]=3,V[1584]=3,V[1871]=1,
V[2190]=1,V[2187]=1,V[2191]=1,V[2188]=1,V[2186]=1,V[288]=6,V[2962]=3,V[2840]=6,V[1080]=4,V[1081]=6,V[2055]=7,V[2056]=7,V[2494]=4,V[2496]=7,V[2679]=4,V[2495]=4,V[1518]=3,V[1079]=4,V[2686]=6,V[1528]=4,V[1595]=6,V[1541]=4,V[1520]=4,V[1519]=6,V[2687]=7,V[2788]=3,V[2789]=4,V[2970]=3,V[2971]=3,V[2972]=3,V[2796]=3,V[2797]=3,V[2960]=3,V[2794]=3,V[990]=4,V[1227]=6,V[2704]=4,V[2705]=6,V[2706]=6,V[2707]=7,V[2703]=4,V[783]=4,V[784]=4,V[782]=4,V[2805]=6,V[2806]=4,V[4708]=6,V[4711]=6,V[4749]=6,V[4163]=4,V[4578]=
6,V[4730]=6,V[2124]=6,V[2123]=6,V[2126]=6,V[2125]=6,V[4408]=6,V[4410]=6,V[3839]=6,V[4631]=6,V[4630]=1,V[41]=6,V[4411]=4,V[4589]=1,V[3341]=1,V[3342]=1,V[4664]=7,V[4609]=7,V[4030]=7,V[4782]=7,V[4031]=7,V[4610]=7,V[4286]=3,V[3906]=7,V[3908]=7,V[3682]=7,V[3907]=7,V[4263]=3,V[4417]=7,V[3948]=7,V[3950]=7,V[4419]=7,V[3939]=7,V[3941]=7,V[3940]=7,V[3942]=7,V[3949]=7,V[3945]=7,V[3947]=7,V[3946]=7,V[3943]=7,V[3944]=7,V[4418]=7,V[3951]=7,V[4633]=6,V[4632]=1,V[4590]=1,V[4592]=6,V[4591]=1,V[3854]=1,V[3853]=1,V[3855]=
1,V[3856]=1,V[3857]=1,V[315]=6,V[3215]=6,V[4161]=6,V[4588]=6,V[3220]=4,V[3221]=4,V[4080]=6,V[3053]=4,V[3055]=6,V[3054]=4,V[4355]=4,V[4384]=6,V[4387]=6,V[3799]=2,V[4599]=7,V[4335]=4,V[4336]=4,V[4183]=4,V[4242]=7,V[4579]=6,V[4580]=3,V[3918]=6,V[3916]=3,V[4212]=4,V[3917]=3,V[4680]=4,V[4359]=3,V[4358]=7,V[4204]=6,V[4205]=4,V[4516]=6,V[4682]=7,V[4759]=4,V[4760]=7,V[4761]=4,V[4292]=4,V[4293]=7,V[4294]=4,V[4289]=4,V[4290]=7,V[4291]=4,V[4628]=6,V[4629]=4,V[3746]=6,V[3762]=4,V[4472]=6,V[4350]=6,V[4351]=3,
V[4348]=6,V[4349]=3,V[4433]=6,V[4434]=3,V[4352]=6,V[4353]=3,V[4223]=3,V[4224]=3,V[4225]=3,V[4301]=1,V[4304]=1,V[4305]=1,V[4302]=1,V[4303]=1,V[4306]=1,V[4265]=1,V[4268]=1,V[4266]=1,V[4269]=1,V[4267]=1,V[3679]=7,V[3680]=3,V[3134]=3,V[3135]=3,V[3735]=3,V[3734]=3,V[4611]=4,V[4360]=3,V[3834]=4,V[3833]=6,V[4354]=7,V[4460]=6,V[4478]=6,V[4477]=6,V[4476]=6,V[4481]=6,V[4480]=6,V[4461]=6,V[4462]=6,V[4463]=7,V[4464]=6,V[4475]=6,V[4465]=6,V[4479]=7,V[4466]=6,V[4471]=6,V[4208]=6,V[4526]=6,V[4209]=4,V[4201]=6,V[4139]=
6,V[4167]=6,V[3958]=3,V[4005]=3,V[3956]=6,V[4211]=7,V[4210]=4,V[4236]=6,V[4179]=7,V[4788]=6,V[4435]=6,V[4202]=4,V[3911]=6,V[4216]=6,V[4235]=3,V[4126]=6,V[4127]=3,V[4213]=6,V[4214]=6,V[4215]=6,V[4164]=6,V[4558]=6,V[4555]=6,V[4604]=6,V[4165]=3,V[4559]=6,V[4556]=6,V[4605]=6,V[4557]=6,V[4554]=6,V[4603]=6,V[3763]=3,V[3651]=7,V[4513]=6,V[4681]=4,V[3748]=6,V[4118]=6,V[4119]=3,V[4116]=6,V[4117]=3,V[4431]=6,V[4432]=3,V[4120]=6,V[4121]=3,V[4381]=6,V[4379]=4,V[4734]=6,V[4737]=6,V[3511]=6,V[3510]=6,V[4128]=6,
V[3061]=7,V[3062]=4,V[3359]=6,V[4787]=6,V[3526]=7,V[4663]=7,V[3915]=7,V[3914]=7,V[3525]=7,V[4207]=2,V[4206]=7,V[3952]=7,V[3439]=7,V[3798]=4,V[3438]=4,V[3832]=7,V[3852]=4,V[3848]=7,V[3825]=6,V[3782]=4,V[3672]=6,V[3677]=7,V[3829]=6,V[4333]=6,V[4009]=6,V[4010]=4,V[3480]=6,V[4309]=6,V[4308]=6,V[4307]=6,V[3463]=5,V[3466]=5,V[3462]=5,V[3464]=5,V[3465]=5,V[3460]=5,V[3459]=5,V[3461]=5,V[3775]=6,V[3458]=7,V[4088]=6,V[4087]=6,V[4086]=6,V[3632]=3,V[3631]=3,V[4314]=6,V[3633]=4,V[3733]=6,V[3611]=3,V[3612]=6,V[3610]=
3,V[3613]=7,V[3619]=7,V[3549]=3,V[3550]=6,V[3808]=6,V[3809]=6,V[3803]=7,V[3804]=7,V[3802]=1,V[3800]=1,V[3812]=1,V[3960]=6,V[3801]=1,V[3810]=7,V[3811]=6,V[3961]=1,V[3927]=6,V[4102]=1,V[3806]=7,V[3807]=7,V[3805]=1,V[4137]=6,V[3725]=3,V[4103]=1,V[4101]=1,V[4849]=6,V[4094]=6,V[4096]=6,V[4100]=6,V[4098]=6,V[4568]=6,V[4399]=6,V[4400]=6,V[3473]=6,V[3470]=6,V[3496]=6,V[4011]=6,V[4012]=4,V[4688]=6,V[3688]=6,V[4547]=8,V[4013]=7,V[4619]=3,V[4553]=3,V[4582]=6,V[4618]=6,V[4552]=6,V[326]=6,V[3476]=3,V[4022]=3,
V[3475]=3,V[3625]=3,V[4021]=3,V[4020]=3,V[3474]=3,V[3626]=3,V[3553]=3,V[3693]=3,V[3692]=3,V[3628]=3,V[3629]=3,V[3930]=3,V[3690]=3,V[3932]=3,V[3931]=3,V[3691]=3,V[4499]=3,V[4501]=7,V[4500]=4,V[4487]=3,V[4502]=4,V[4509]=6,V[4485]=3,V[4484]=3,V[4489]=3,V[4491]=3,V[4490]=3,V[4488]=3,V[4492]=1,V[4495]=7,V[4496]=7,V[4494]=1,V[4493]=3,V[4498]=7,V[4497]=3,V[4731]=3,V[4486]=3,V[3929]=8,V[4019]=3,V[3928]=3,V[4537]=6,V[4026]=3,V[4538]=6,V[4542]=6,V[4025]=3,V[4023]=3,V[4545]=8,V[4549]=4,V[4551]=4,V[4550]=4,V[4027]=
3,V[4029]=3,V[4028]=3,V[4548]=8,V[4540]=8,V[4378]=6,V[4376]=4,V[4344]=6,V[4343]=3,V[4342]=6,V[4241]=6,V[4018]=3,V[4046]=6,V[4240]=6,V[4043]=3,V[4186]=1,V[4184]=6,V[4185]=1,V[4577]=1,V[4536]=4,V[4541]=4,V[4544]=8,V[4543]=4,V[4375]=8,V[4373]=3,V[4238]=6,V[4039]=3,V[4331]=8,V[4345]=7,V[4341]=8,V[4340]=3,V[4339]=6,V[4330]=8,V[4329]=3,V[4328]=6,V[4239]=8,V[4045]=3,V[4044]=6,V[4237]=6,V[4035]=3,V[4539]=8,V[4546]=8,V[4024]=3,V[3736]=7,V[3777]=6,V[3778]=4,V[5036]=3,V[5033]=3,V[5035]=3,V[5034]=3,V[5037]=3,
V[5032]=3,V[5540]=7,V[4962]=7,V[6554]=4,V[6556]=6,V[6557]=4,V[6711]=4,V[6555]=6,V[6177]=7,V[6176]=4,V[6175]=4,V[4899]=4,V[5437]=4,V[5466]=4,V[5436]=4,V[5438]=6,V[5439]=7,V[5277]=6,V[5514]=1,V[5515]=1,V[5403]=4,V[5268]=7,V[6111]=3,V[6112]=3,V[6113]=3,V[6010]=4,V[6011]=4,V[6107]=7,V[5964]=4,V[5965]=7,V[5963]=4,V[5867]=6,V[5722]=4,V[6032]=4,V[5404]=4,V[6216]=6,V[6215]=4,V[6451]=1,V[6452]=1,V[6752]=1,V[4824]=6,V[4936]=6,V[4947]=6,V[4946]=6,V[4945]=6,V[4950]=6,V[4949]=6,V[4937]=6,V[4938]=6,V[4939]=6,V[4940]=
6,V[4944]=6,V[4941]=6,V[4948]=7,V[4942]=6,V[4943]=6,V[6601]=6,V[6602]=6,V[4983]=4,V[4981]=4,V[4982]=4,V[5669]=6,V[5668]=6,V[5672]=6,V[5667]=6,V[5671]=6,V[5666]=6,V[5674]=6,V[5670]=6,V[5027]=6,V[5023]=6,V[5026]=6,V[4995]=6,V[4986]=4,V[4984]=4,V[4985]=4,V[6131]=6,V[6130]=6,V[6127]=6,V[5025]=6,V[5022]=6,V[5024]=6,V[4994]=6,V[4975]=1,V[4976]=4,V[4924]=3,V[5122]=4,V[5123]=4,V[5120]=4,V[5121]=4,V[5197]=4,V[5220]=6,V[5226]=6,V[4971]=4,V[5296]=6,V[5297]=6,V[4803]=6,V[5224]=6,V[5225]=6,V[5223]=6,V[5118]=4,
V[5119]=4,V[5116]=4,V[5117]=4,V[4978]=4,V[4977]=4,V[5144]=4,V[5142]=4,V[5143]=4,V[6389]=7,V[5442]=6,V[5441]=6,V[5440]=6,V[5818]=7,V[5382]=8,V[5383]=1,V[5639]=4,V[5638]=4,V[5640]=4,V[5626]=4,V[5721]=4,V[6121]=4,V[6371]=7,V[5099]=7,V[5097]=4,V[5111]=6,V[5059]=4,V[5102]=7,V[5105]=6,V[5108]=7,V[5190]=7,V[5138]=3,V[5139]=3,V[5028]=3,V[5029]=3,V[5031]=3,V[5030]=3,V[5378]=4,V[5374]=3,V[5376]=7,V[5377]=7,V[5375]=4,V[6055]=4,V[6057]=7,V[6056]=4,V[5137]=3,V[5870]=3,V[5869]=7,V[5872]=7,V[5868]=7,V[5871]=4,V[4810]=
7,V[4809]=7,V[4806]=7,V[4805]=7,V[4808]=7,V[4807]=7,V[5002]=3,V[5004]=3,V[5003]=3,V[5001]=3,V[5E3]=3,V[5005]=3,V[5006]=3,V[5009]=3,V[5007]=3,V[5008]=3,V[4847]=4,V[4848]=4,V[6549]=7,V[6719]=7,V[6720]=7,V[5149]=1,V[5150]=1,V[5147]=1,V[5148]=1,V[6266]=3,V[6323]=6,V[4802]=6,V[6063]=6,V[6320]=6,V[4867]=4,V[6465]=4,V[6464]=4,V[6463]=4,V[6461]=7,V[6462]=7,V[6466]=3,V[6468]=7,V[6467]=4,V[4798]=6,V[4796]=4,V[5803]=6,V[4797]=3,V[4801]=6,V[4799]=4,V[5802]=6,V[4800]=3,V[6126]=6,V[5517]=6,V[5518]=7,V[5298]=6,
V[4952]=6,V[4815]=6,V[4813]=4,V[4821]=6,V[4819]=4,V[4820]=3,V[4814]=3,V[4818]=6,V[4816]=4,V[4817]=3,V[4970]=6,V[5038]=4,V[5402]=4,V[5401]=4,V[5400]=4,V[5269]=4,V[5270]=4,V[5124]=6,V[5156]=6,V[5157]=6,V[5158]=6,V[5155]=6,V[4901]=4,V[6123]=6,V[4869]=6,V[4868]=6,V[6161]=4,V[5040]=4,V[5039]=4,V);var gK=function(a,b){this.namespace_=a;this.h=b;this.constructor.Nl||(this.constructor.Nl={});this.constructor.Nl[this.toString()]=this};gK.prototype.va=function(){return this.toString()};gK.prototype.toString=function(){this.g||(this.g="fva:"+this.h);return this.g};var hK=function(a,b){gK.call(this,a,b)};B(hK,gK);var iK=function(a,b,c){if(c)for(var d=0;d<c.length;d++);this.j=a;this.h=b||null;this.g=c||[]};iK.prototype.toString=function(){return this.j};var jK=new iK("pVbxBc");var kK=function(a){var b={},c={},d=[],e=[],f=function(q){if(!c[q]){var r=q instanceof iK?q.g:[];c[q]=cc(r);Hb(r,function(u){b[u]=b[u]||[];b[u].push(q)});r.length||d.push(q);Hb(r,f)}};for(Hb(a,f);d.length;){var g=d.shift();e.push(g);b[g]&&Hb(b[g],function(q){Zb(c[q],g);c[q].length||d.push(q)})}var h={},m=[];Hb(e,function(q){q instanceof iK&&(q=q.h,null==q||h[q]||(h[q]=!0,m.push(q)))});return{services:e,cu:m}};var nK=function(a){T.call(this);this.id=lK++;this.J=[];this.h={};this.F={};this.o={};this.g={};this.j={};this.H={};this.m=a?a.m:new xv;this.L=!a;this.l=null;a?(this.l=a,this.o=a.o,this.g=a.g,this.F=a.F,this.j=a.j):Va();a=mK(this);this!=a&&(a.u?a.u.push(this):a.u=[this])};B(nK,T);var lK=1,oK=.05>Math.random(),mK=function(a){for(;a.l;)a=a.l;return a},pK=function(a,b){for(;a;){if(a==b)return!0;a=a.l}return!1};
nK.prototype.get=function(a){var b=qK(this,a);null==b&&this.V&&(b={BOGUS:"Service "+a+" was not registered"});if(null==b)throw new rK(a);return b};
var sK=function(a,b){return!(!a.h[b]&&!a.o[b])},qK=function(a,b){for(var c=a;c;c=c.l){if(c.C())throw Error("AppContext is disposed, can not get "+b+".");if(c.h[b])return c.h[b][0];if(c.H[b])break}if(c=a.o[b]){c=c(a);if(null==c)throw Error("Factory method for service "+b+" returned null or undefined.");a.registerService(b,c);return c}return null},uK=function(a,b,c){return tK(a,[b],c)[b]},tK=function(a,b,c){var d=vK(a),e=!c;c={};var f=[],g=[],h={},m={},q=qK(a,jK),r={};b=n(b);for(var u=b.next();!u.done;r=
{Lb:r.Lb},u=b.next())if(r.Lb=u.value,u=qK(a,r.Lb)){var A=new Sz;c[r.Lb]=A;u.Fi&&(aA(A,u.Fi()),Zz(A,Ua(function(z){return z},u)));A.callback(u)}else a.j[r.Lb]?(u=a.j[r.Lb].m(),Zz(u,function(z){return function(){return a.fj(z.Lb)}}(r)),c[r.Lb]=u):(u=void 0,r.Lb instanceof iK?u=kK([r.Lb]).cu:(A=a.F[r.Lb])&&(u=[A]),!e||u&&u.length?(u&&(q&&r.Lb instanceof iK&&q.CL()&&(oK&&(A=q.FL(wK),m[r.Lb]=A),q.pL(r.Lb)),f.push.apply(f,p(u)),h[r.Lb]=Fb(u)),g.push(r.Lb)):(u=new Sz,c[r.Lb]=u,u.g(new rK(r.Lb))));if(e){if(f.length){a.D&&
0<f.filter(function(z){return!xK(d,z)}).length&&a.D.push(new yK);r=n(g);for(e=r.next();!e.done;e=r.next())a.m.N(new zK("b",e.value));f=AK(vK(a),f,void 0);r={};g=n(g);for(e=g.next();!e.done;r={me:r.me},e=g.next())r.me=e.value,e=h[r.me],b=f[e],b=b instanceof Sz?b.m():gA(b),c[r.me]=b,m[r.me]&&Zz(b,function(z){return function(){q.bL(m[z.me])}}(r)),BK(a,b,r.me,e)}}else for(f={},g=n(g),e=g.next();!e.done;f={rd:f.rd,Rf:f.Rf},e=g.next())f.rd=e.value,f.Rf=h[f.rd],e=new Sz(function(z){return function(H){var O=
z.rd,za=a.g&&a.g[O];if(za){for(var Ib=0;Ib<za.length;++Ib)if(za[Ib].ra==a&&za[Ib].d==H){Yb(za,Ib);break}0==za.length&&delete a.g[O]}}}(f)),c[f.rd]=e,(r=a.g[f.rd])||(a.g[f.rd]=r=[]),f.Rf&&CK(a,e,f.rd,f.Rf),Zz(e,function(z){return function(){return a.gj(z.rd,z.Rf)}}(f)),r.push({ra:a,d:e});return c},CK=function(a,b,c,d){Zz(b,function(){var e=vK(this);this.D&&this.D.push(new yK);return e.load(d)},a);$z(b,x(a.Em,a,c,d))},BK=function(a,b,c,d){Zz(b,function(){this.m.N(new zK("c",c))},a);$z(b,x(a.Em,a,c,
d));Zz(b,x(a.gj,a,c,d))};k=nK.prototype;k.gj=function(a,b){var c=qK(this,a);if(null==c){if(this.j[a]){var d=this.j[a].m();Zz(d,x(this.gj,this,a,b));return d}if(!b)throw Error("Module undefined but service or factory "+a+" not registered with app contexts.");throw new DK(a,b,"Module loaded but service or factory not registered with app contexts.");}return c.Fi?(d=new Sz,aA(d,c.Fi()),d.callback(c),Zz(d,x(this.fj,this,a)),d):this.fj(a)};k.fj=function(a){this.j[a]&&delete this.j[a];return this.get(a)};
k.Em=function(a,b,c){return c instanceof Tz?c:new EK(a,b,c)};k.registerService=function(a,b,c){if(this.C())c||Cs(b);else{this.J.push(a);this.h[a]=[b,!c];c=FK(this,this,a);for(var d=0;d<c.length;d++)c[d].callback(null);delete this.F[a];return b}};k.unregisterService=function(a){if(!this.h[a])throw Error('Service for "'+a+'" is not registered');var b=this.h[a];delete this.h[a];b[1]&&Cs(b[0])};
var HK=function(a,b,c){a.o[b]=c;if(c=a.g[b]){if(1<c.length){for(var d=0;d<c.length;++d)c[d].index=d;c.sort(GK)}for(;c.length;)c.shift().d.callback(null);delete a.g[b]}},GK=function(a,b){if(a.ra!=b.ra){if(pK(a.ra,b.ra))return 1;if(pK(b.ra,a.ra))return-1}return a.index<b.index?-1:a.index==b.index?0:1},FK=function(a,b,c){var d=[],e=a.g[c];e&&(Kb(e,function(f){pK(f.ra,b)&&(d.push(f.d),Zb(e,f))}),0==e.length&&delete a.g[c]);return d},IK=function(a,b){a.g&&xc(a.g,function(c,d,e){Kb(c,function(f){f.ra==
b&&Zb(c,f)});0==c.length&&delete e[d]})};nK.prototype.ba=function(){if(mK(this)==this){var a=this.u;if(a)for(;a.length;)a[0].dispose()}else{a=mK(this).u;for(var b=0;b<a.length;b++)if(a[b]==this){a.splice(b,1);break}}for(var c in this.h)a=this.h[c],a[1]&&a[0].dispose&&a[0].dispose();this.h=null;this.L&&this.m.dispose();IK(this,this);this.g=null;Cs(this.M);this.H=this.M=null;nK.Db.ba.call(this)};
var vK=function(a){return a.G?a.G:a.l?vK(a.l):null},LK=function(a){!JK&&KK&&(JK=KK());a.G=JK},rK=function(a){Ab.call(this);this.id=a;this.message='Service for "'+a+'" is not registered'};B(rK,Ab);var EK=function(a,b,c){Ab.call(this);this.cause=c;this.message='Module "'+b+'" failed to load when requesting the service "'+a+'" [cause: '+c+"]";this.stack=c.stack+"\nWRAPPED BY:\n"+this.stack};B(EK,Ab);
var DK=function(a,b,c){Ab.call(this);this.message='Configuration error when loading the module "'+b+'" for the service "'+a+'": '+c};B(DK,Ab);var yK=function(){Df()},zK=function(a){U.call(this,a)};B(zK,U);var wK=new hK(new function(){},1);var MK=new iK("b2QWee","hl"),NK=new iK("e6ID2c","hl"),OK=new iK("PvLNsc","hl"),PK=new iK("VzLulf","rsr");var QK=new iK("n73qwf");var RK=new iK("boklXe","T6U9J");var SK=new iK("HETvff","lHoXXe");var TK=new iK("qb1U6e","ma",[QK,RK,SK]);var UK=new iK("PyB2Cf","zYiFGf"),VK=new iK("eLo6Uc","hioBjc");var YK=function(a,b,c,d,e){d=void 0===d?WK:d;e=void 0===e?null:e;T.call(this);this.l=a;this.J=b;this.M=d;this.j=e;this.h=-1;this.F=jt();this.g=null;this.u=!1;this.G=0;this.H=this.D=void 0;this.Sa=++XK;this.V=c};t(YK,T);YK.prototype.L=function(a){this.h=a;ZK(this);return!0};YK.prototype.o=function(){return this.F.fa};YK.prototype.m=function(){return this.u};var $K=function(a){null==a.g&&(a.g=a.J(),ZK(a));return a.g};k=YK.prototype;k.Lj=function(a){this.G=a};k.Th=function(){return this.G};
k.Xg=function(a,b){void 0!==b&&(b=Math.max(a,b));this.D=a;this.H=b};k.Ig=function(){return this.D};k.Kj=function(){return this.H};var ZK=function(a){if(a.g&&-1!=a.h){var b=a.g;"function"===typeof b.O?(a=Nl(new Ll,a.h),b.O(a)):"function"===typeof b.ma&&b.ma()}};YK.prototype.Im=function(){return this.l};YK.prototype.Hm=function(){return $K(this).toString()};YK.prototype.toString=function(){return"[Operation id: "+this.Sa+": "+this.l+", version: "+this.h+"]"};function WK(){return[]}var XK=0,aL=function(){Ab.call(this)};
t(aL,Ab);aL.prototype.message="Operation has already been executed.";aL.prototype.name="AlreadyExecutedError";var bL=function(a){this.h=a};bL.prototype.hj=function(){return!0};bL.prototype.zd=function(){};bL.prototype.Ad=function(){};bL.prototype.Qd=function(){};var cL=function(){bL.apply(this,arguments)};t(cL,bL);var dL=function(){cL.apply(this,arguments)};t(dL,cL);k=dL.prototype;k.zd=function(a){return new YK("hangouts/add",function(){var b=new DB;return Cl(b,4,a)},YC,function(b){return R(b,BB,5)})};k.Ad=function(a){return new YK("hangouts/modify",function(){var b=new uD;return Cl(b,4,a)},wD,function(b){return R(b,BB,4)})};k.Qd=function(){return null};
k.Pd=function(a){return new YK("hangouts/query",function(){var b=new JB,c=a.sa();return N(b,2,c)},cD,function(b){return[Q(b,BB,2)]},{set:function(b,c){return S(b,8,c)},get:function(b){return Q(b,cD,8)}})};k.te=function(a){return this.Pd(a)};var eL=function(){cL.apply(this,arguments)};t(eL,cL);k=eL.prototype;k.zd=function(a){return new YK("hangout_participants/add",function(){var b=new HB;return Cl(b,6,a)},$C,function(b){return R(b,FB,5)})};k.Ad=function(a){return new YK("hangout_participants/modify",function(){var b=new yD;return Cl(b,4,a)},AD,function(b){return R(b,FB,4)})};k.Qd=function(a,b){var c=b&&b.jYdIne||0;return new YK("hangout_participants/remove",function(){var d=GD(new FD,a);return N(d,5,c)},HD)};
k.Pd=function(a){return new YK("hangout_participants/query",function(){var b=new BD;var c=a.sa();b=N(b,2,c);c=a.Z();return N(b,3,c)},CD,function(b){return[Q(b,FB,2)]})};k.te=function(a){return new YK("hangout_participants/search",function(){var b=new IB,c=a.sa();return N(b,2,c)},bD,function(b){return R(b,FB,2)},{set:function(b,c){return S(b,7,c)},get:function(b){return Q(b,bD,7)}})};var fL=function(){cL.apply(this,arguments)};t(fL,cL);k=fL.prototype;k.zd=function(a){return new YK("media_sources/add",function(){var b=new xC;return Cl(b,4,a)},jD,function(b){return R(b,pC,4)})};k.Ad=function(a){return new YK("media_sources/modify",function(){var b=new cH;return Cl(b,4,a)},eH,function(b){return R(b,pC,4)})};k.Qd=function(){return null};
k.Pd=function(a){return new YK("media_sources/query",function(){var b=new fH;var c=a.sa();b=N(b,2,c);c=a.Z();b=N(b,3,c);c=a.Ba();return N(b,4,c)},gH,function(b){return[Q(b,pC,2)]})};k.te=function(a){return new YK("media_sources/search",function(){var b=new yC,c=a.sa();return N(b,2,c)},lD,function(b){return R(b,pC,2)},{set:function(b,c){return S(b,6,c)},get:function(b){return Q(b,lD,6)}})};var gL=function(a){var b=a.Ke,c=a.Le,d=a.Se,e=a.Te,f=a.Pe,g=a.Ne,h=a.Oe,m=a.Qe,q=a.Re,r=a.ko,u=a.ju;this.g=a.Me;this.F=b;this.D=c;this.L=d;this.u=b.concat(d);this.V=c.concat(e);this.l=f;this.G=g;this.H=h;this.M=m;this.o=g.concat(m);this.J=h.concat(q);this.m=r||sc;this.C=u||Ia};gL.prototype.j=function(a){if(a instanceof this.g)var b=this.F;else if(a instanceof this.l)b=this.G;else return Eb("Passed in object did not match resource or identifier type"),[];return b.map(function(c){return c.call(a)})};
var hL=function(a,b){if(b instanceof a.g)a=a.L;else if(b instanceof a.l)a=a.M;else return Eb("Passed in object did not match resource or identifier type"),[];return a.map(function(c){return c.call(b)})};gL.prototype.h=function(a){if(a instanceof this.g)var b=this.u;else if(a instanceof this.l)b=this.o;else return Eb("Passed in object did not match resource or identifier type"),[];return b.map(function(c){return c.call(a)})};
gL.prototype.pb=function(a,b){var c=this.V;a.length!=c.length&&(b?a=a.concat(b):c=this.D);var d=new this.g;a.forEach(function(e,f){c[f].call(d,e)});return d};
var iL=function(a,b){var c=a.J;b.length!=c.length&&(c=a.H);var d=new a.l;b.forEach(function(e,f){c[f].call(d,e)});return d},jL=function(a,b){if(b instanceof a.g)a=a.u;else if(b instanceof a.l)a=a.o;else return Eb("Passed in item did not match resource or identifier type"),!1;return a.every(function(c){return null!=c.call(b)})},lL=function(a,b,c){b=kL(a,b,a.h);a=kL(a,c,a.h);return mc(b,a)},kL=function(a,b,c){return b instanceof Array?b:c.call(a,b)};var mL=function(){return new gL({Me:FB,Ke:[FB.prototype.sa],Le:[FB.prototype.u],Se:[FB.prototype.Z],Te:[FB.prototype.l],Pe:DD,Ne:[DD.prototype.sa],Oe:[DD.prototype.l],Qe:[DD.prototype.Z],Re:[DD.prototype.u]})};var nL=function(a){this.h=uK(a,NK,!0)};nL.prototype.Y=function(a,b){this.h.then(function(c){return c.Y(a,b)})};nL.prototype.g=function(a,b){this.h.then(function(c){return c.g(a,b)})};var oL=1,pL=1,qL=function(a){T.call(this);this.h=new Set;(this.g=a)&&a.T(this)};t(qL,T);qL.prototype.signal=function(){return rL(this,!1)};var sL=function(a){return rL(a,!0)};qL.prototype.W=function(a,b){return tL({signal:uL(this,a),data:b})};
var vL=function(a,b,c){c=void 0===c?function(e){return e}:c;var d=uL(a,b);return{W:function(e){return a.W(d,c(e))}}},rL=function(a,b){b=new wL(b);a.h.add(b);a.T(b);return b},uL=function(a,b){b.o||(b.o=xL(a,b)+"-"+pL++);return b},xL=function(a,b){return a.g?(a=Object.entries(a.g).find(function(c){c=n(c);c.next();return c.next().value==b}))&&a[0]||"ANONYMOUS":"OWNERLESS"},yL=function(a){this.h=a;this.g=[]};yL.prototype.add=function(a,b){this.g.push({signal:uL(this.h,a),data:b})};
yL.prototype.W=function(){var a=tL.apply(null,p(this.g));this.g.length=0;return a};var wL=function(a){T.call(this);this.g=new Map;this.h=new Set;this.l=a;this.j=!1};t(wL,T);wL.prototype.attach=function(a,b){var c=this,d=oL++;zL(function(){return AL(c,d,a,b)});return d};
var CL=function(a,b,c){var d="function"===typeof c,e=oL++,f=d?c:b;var g=d?g:c;zL(function(){a.j?(b(a.m),AL(a,e,f,g)):d?AL(a,e,BL(b,f),g):AL(a,e,f,g)});return e},AL=function(a,b,c,d){if(!a.C())if(d){if(!d.C()){var e=function(){return zL(function(){a.g.delete(b);var f=DL.get(d);f&&Zb(f,e)})};a.g.set(b,{slot:c,Ri:e});EL(d,e)}}else a.g.set(b,{slot:c,Ri:function(){return a.g.delete(b)}})};wL.prototype.detach=function(a){var b=this;zL(function(){var c=b.g.get(a);c&&c.Ri()})};
wL.prototype.value=function(a){return FL(this,!0,a)};wL.prototype.next=function(a){return FL(this,!1,a)};var FL=function(a,b,c){var d=jt();zL(function(){if(a.C())d.reject(new Xs("Signal disposed"));else if(c&&c.C())d.reject(new Xs("Owner disposed"));else if(b&&a.l&&a.j)d.resolve(a.m);else if(a.h.add(d),mt(d.fa,function(){a.h.delete(d)}),c){var e=function(){d.reject(new Xs("Owner disposed"))};mt(d.fa,function(){var f=DL.get(c);f&&Zb(f,e)});EL(c,e)}});return d.fa};
wL.prototype.ba=function(){var a=this;T.prototype.ba.call(this);zL(function(){a.g.forEach(function(b){b=b.Ri;return b()});a.g.clear();a.h.forEach(function(b){return b.reject(new Xs("Signal disposed"))});a.h.clear()})};
var tL=function(a){for(var b=[],c=0;c<arguments.length;++c)b[c-0]=arguments[c];return 0==b.length?Promise.resolve():1==b.length?(b=b[0],GL(b.signal,b.data)):Promise.all(b.map(function(d){return GL(d.signal,d.data)}))},GL=function(a,b){return new Promise(function(c){zL(function(){a.g.forEach(function(d){d=d.slot;try{d(b)}catch(e){Is(e)}});a.h.forEach(function(d){return d.resolve(b)});a.h.clear();a.l&&(a.m=b,a.j=!0);c()})})},HL=[],IL=!1,zL=function(a){HL.push(a);JL()},JL=function(){var a,b;Ba(function(c){switch(c.g){case 1:if(IL){c.fb(0);
break}qa(c,3,4);IL=!0;a=KL(0);case 6:if(!(a<HL.length)){c.fb(4);break}return v(c,Promise.resolve(),8);case 8:a=KL(a);c.fb(6);break;case 4:c.F=[c.j];c.m=0;c.l=0;HL.length=0;IL=!1;ta(c);break;case 3:b=sa(c),Is(b),c.fb(4)}})},KL=function(a){for(var b=a+100;a<b&&a<HL.length;)try{HL[a++]()}catch(c){Is(c)}return a},DL=new WeakMap,EL=function(a,b){if(a.C())b();else{var c=DL.get(a);if(c)c.push(b);else{var d=[b];DL.set(a,d);Bs(a,function(){[].concat(p(d)).forEach(function(e){return e()});DL.delete(a)})}}},
BL=function(a,b){var c=!0;return function(d){c?(c=!1,a(d)):b(d)}};var LL=function(){T.call(this);this.l=new qL(this);this.j=this.l.signal()};t(LL,T);var ML=function(a){a.l.W(a.j,void 0)};var NL=function(a){K(this,a,0,-1,null,null)};B(NL,J);var PL=function(a){K(this,a,0,-1,OL,null)};B(PL,J);var QL=function(a){K(this,a,0,-1,null,null)};B(QL,J);var OL=[3];QL.prototype.getName=function(){return L(this,2)};var RL={Kp:["BC","AD"],Jp:["Before Christ","Anno Domini"],Yp:"JFMAMJJASOND".split(""),Aq:"JFMAMJJASOND".split(""),Vp:"January February March April May June July August September October November December".split(" "),zq:"January February March April May June July August September October November December".split(" "),wq:"Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec".split(" "),Cq:"Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec".split(" "),Wq:"Sunday Monday Tuesday Wednesday Thursday Friday Saturday".split(" "),
Eq:"Sunday Monday Tuesday Wednesday Thursday Friday Saturday".split(" "),yq:"Sun Mon Tue Wed Thu Fri Sat".split(" "),Dq:"Sun Mon Tue Wed Thu Fri Sat".split(" "),pE:"SMTWTFS".split(""),Bq:"SMTWTFS".split(""),xq:["Q1","Q2","Q3","Q4"],hq:["1st quarter","2nd quarter","3rd quarter","4th quarter"],rp:["AM","PM"],lA:["EEEE, MMMM d, y","MMMM d, y","MMM d, y","M/d/yy"],pJ:["h:mm:ss a zzzz","h:mm:ss a z","h:mm:ss a","h:mm a"],mA:["{1} 'at' {0}","{1} 'at' {0}","{1}, {0}","{1}, {0}"],nl:6,FK:[5,6],ol:5},SL=RL;
SL=RL;var TL=function(a,b,c,d,e){a=new Date(a,b,c);e=e||0;return a.valueOf()+864E5*(((void 0!==d?d:3)-e+7)%7-((a.getDay()+6)%7-e+7)%7)};var UL=function(){},WL=function(a){if("number"==typeof a){var b=new UL;b.h=a;var c=a;if(0==c)c="Etc/GMT";else{var d=["Etc/GMT",0>c?"-":"+"];c=Math.abs(c);d.push(Math.floor(c/60)%100);c%=60;0!=c&&d.push(":",we(c,2));c=d.join("")}b.l=c;c=a;0==c?c="UTC":(d=["UTC",0>c?"+":"-"],c=Math.abs(c),d.push(Math.floor(c/60)%100),c%=60,0!=c&&d.push(":",c),c=d.join(""));a=VL(a);b.C=[c,c];b.g={xI:a,El:a};b.j=[];return b}b=new UL;b.l=a.id;b.h=-a.std_offset;b.C=a.names;b.g=a.names_ext;b.j=a.transitions;return b},VL=
function(a){var b=["GMT"];b.push(0>=a?"+":"-");a=Math.abs(a);b.push(we(Math.floor(a/60)%100,2),":",we(a%60,2));return b.join("")},XL=function(a,b){b=Date.UTC(b.getUTCFullYear(),b.getUTCMonth(),b.getUTCDate(),b.getUTCHours(),b.getUTCMinutes())/36E5;for(var c=0;c<a.j.length&&b>=a.j[c];)c+=2;return 0==c?0:a.j[c-1]};var $L=function(){this.h=[];this.g=SL;var a="HH:mm:ss";for(YL&&(a=a.replace(/\u200f/g,""));a;){for(var b=a,c=0;c<ZL.length;++c){var d=a.match(ZL[c]);if(d){var e=d[0];a=a.substring(e.length);0==c&&("''"==e?e="'":(e=e.substring(1,"'"==d[1]?e.length-1:e.length),e=e.replace(/''/g,"'")));this.h.push({text:e,type:c});break}}if(b===a)throw Error("Malformed pattern part: "+a);}},ZL=[/^'(?:[^']|'')*('|$)/,/^(?:G+|y+|Y+|M+|k+|S+|E+|a+|h+|K+|H+|c+|L+|Q+|d+|m+|s+|v+|V+|w+|z+|Z+)/,/^[^'GyYMkSEahKHcLQdmsvVwzZ]+/],
aM=function(a){return a.getHours?a.getHours():0};
$L.prototype.format=function(a,b){if(!a)throw Error("The date to format must be non-null.");var c=b?6E4*(a.getTimezoneOffset()-(b.h-XL(b,a))):0,d=c?new Date(a.getTime()+c):a,e=d;b&&d.getTimezoneOffset()!=a.getTimezoneOffset()&&(e=6E4*(d.getTimezoneOffset()-a.getTimezoneOffset()),d=new Date(d.getTime()+e),c+=0<c?-864E5:864E5,e=new Date(a.getTime()+c));c=[];for(var f=0;f<this.h.length;++f){var g=this.h[f].text;1==this.h[f].type?c.push(bM(this,g,a,d,e,b)):c.push(g)}return c.join("")};
var cM=function(a,b){b=String(b);a=a.g||SL;if(void 0!==a.Xq){for(var c=[],d=0;d<b.length;d++){var e=b.charCodeAt(d);c.push(48<=e&&57>=e?String.fromCharCode(a.Xq+e-48):b.charAt(d))}b=c.join("")}return b},YL=!1,dM=function(a){if(!(a.getHours&&a.getSeconds&&a.getMinutes))throw Error("The date to format has no time (probably a goog.date.Date). Use Date or goog.date.DateTime, or use a pattern without time fields.");},bM=function(a,b,c,d,e,f){var g=b.length;switch(b.charAt(0)){case "G":return c=0<d.getFullYear()?
1:0,4<=g?a.g.Jp[c]:a.g.Kp[c];case "y":return c=d.getFullYear(),0>c&&(c=-c),2==g&&(c%=100),cM(a,we(c,g));case "Y":return c=(new Date(TL(d.getFullYear(),d.getMonth(),d.getDate(),a.g.ol,a.g.nl))).getFullYear(),0>c&&(c=-c),2==g&&(c%=100),cM(a,we(c,g));case "M":a:switch(c=d.getMonth(),g){case 5:g=a.g.Yp[c];break a;case 4:g=a.g.Vp[c];break a;case 3:g=a.g.wq[c];break a;default:g=cM(a,we(c+1,g))}return g;case "k":return dM(e),cM(a,we(aM(e)||24,g));case "S":return cM(a,(e.getMilliseconds()/1E3).toFixed(Math.min(3,
g)).substr(2)+(3<g?we(0,g-3):""));case "E":return c=d.getDay(),4<=g?a.g.Wq[c]:a.g.yq[c];case "a":return dM(e),g=aM(e),a.g.rp[12<=g&&24>g?1:0];case "h":return dM(e),cM(a,we(aM(e)%12||12,g));case "K":return dM(e),cM(a,we(aM(e)%12,g));case "H":return dM(e),cM(a,we(aM(e),g));case "c":a:switch(c=d.getDay(),g){case 5:g=a.g.Bq[c];break a;case 4:g=a.g.Eq[c];break a;case 3:g=a.g.Dq[c];break a;default:g=cM(a,we(c,1))}return g;case "L":a:switch(c=d.getMonth(),g){case 5:g=a.g.Aq[c];break a;case 4:g=a.g.zq[c];
break a;case 3:g=a.g.Cq[c];break a;default:g=cM(a,we(c+1,g))}return g;case "Q":return c=Math.floor(d.getMonth()/3),4>g?a.g.xq[c]:a.g.hq[c];case "d":return cM(a,we(d.getDate(),g));case "m":return dM(e),cM(a,we(e.getMinutes(),g));case "s":return dM(e),cM(a,we(e.getSeconds(),g));case "v":return g=f||WL(c.getTimezoneOffset()),g.l;case "V":return a=f||WL(c.getTimezoneOffset()),2>=g?a.l:0<XL(a,c)?void 0!==a.g.Ep?a.g.Ep:a.g.DST_GENERIC_LOCATION:void 0!==a.g.El?a.g.El:a.g.STD_GENERIC_LOCATION;case "w":return c=
TL(e.getFullYear(),e.getMonth(),e.getDate(),a.g.ol,a.g.nl),cM(a,we(Math.floor(Math.round((c-(new Date((new Date(c)).getFullYear(),0,1)).valueOf())/864E5)/7)+1,g));case "z":return a=f||WL(c.getTimezoneOffset()),4>g?a.C[0<XL(a,c)?2:0]:a.C[0<XL(a,c)?3:1];case "Z":return b=f||WL(c.getTimezoneOffset()),4>g?(g=-(b.h-XL(b,c)),a=[0>g?"-":"+"],g=Math.abs(g),a.push(we(Math.floor(g/60)%100,2),we(g%60,2)),g=a.join("")):g=cM(a,VL(b.h-XL(b,c))),g;default:return""}};var eM=function(a){var b=Q(a,dK,1)||new dK;S(a,1,b);return b},fM=function(a){var b=Q(a,kB,5)||new kB;S(a,5,b)},gM=function(a){a=eM(a);var b=Q(a,RJ,1)||new RJ;S(a,1,b);return b},hM=function(a){var b=Q(a,WJ,3)||new WJ;S(a,3,b);return b};function iM(a,b){b=void 0===b?!1:b;var c=new kB;a=N(c,2,a);return N(mB(a,jM(b)),3,1)}function jM(a){return Ue?Oe?2:3:Ve?4:We?5:(void 0===a?0:a)?be("Linux")?17:18:1};var kM=function(a,b,c){this.g=a;this.h=b;this.j=c};var mM=function(a){K(this,a,"hc:cc",-1,lM,null)};B(mM,J);var nM=function(a){K(this,a,0,-1,null,null)};B(nM,J);var lM=[14,15];mM.messageId="hc:cc";k=mM.prototype;k.Vb=function(){return L(this,6)};k.sf=function(){return sl(this,18)};k.ug=function(){return L(this,20)};k.vg=function(){return L(this,21)};k.xg=function(){return ul(this,22,!1)};var oM=function(a,b,c,d){Ab.call(this);this.status=a;this.g=b;this.h=c;this.response=d};B(oM,Ab);oM.prototype.toString=function(){var a="["+this.status+"/"+this.g;null!=this.h&&(a+="/"+this.h);null!=this.response&&(a+=": ",a=La(this.response)?a+In(this.response,this.j,this).join("; "):a+this.j(this.response));return a+"]"};
oM.prototype.j=function(a){if(null!=a&&null!=a.error){var b=a.error;a=b.message+" "+b.code;b=b.data||b.errors;null!=b&&(b=In(b,function(c){var d=c.domain+" - "+c.reason;null!=c.debugInfo&&(d+=" = "+Ae(c.debugInfo,"\n",4).slice(0,3).join(" - "));return d}),Gn(b)||(a+=": "+b.join(", ")));return a}return La(a)&&0<a.length?String(a):"Unknown"};var pM=function(){this.H={}},qM=function(a,b){a.H=b||{};return a};var rM=function(a,b,c,d){this.l=a;this.C=b;this.j=this.g=a;this.m=c||0;this.o=d||2};rM.prototype.h=0;rM.prototype.reset=function(){this.j=this.g=this.l;this.h=0};var sM=function(a){a.j=Math.min(a.C,a.j*a.o);a.g=Math.min(a.C,a.j+(a.m?Math.round(a.m*(Math.random()-.5)*2*a.j):0));a.h++};var uM=function(){this.H={};this.g=new tM};B(uM,pM);k=uM.prototype;k.toString=function(){return"<# "+this.l+" to "+(this.j||"")+" for "+this.h+">"};k.Jk=function(a){this.j=a;return this};k.tk=function(a){this.h=a;return this};k.Ck=function(){return this};k.Fk=function(){return this};k.Kk=function(){return this};k.ci=function(){return this};k.Gf=function(){};k.Lk=function(){return this};k.wg=function(){return this.g};k.To=function(){};k.wo=function(){};k.cancel=function(){this.Gf("c")};var tM=function(){};
tM.prototype.Dk=function(a){this.g=a;return this};tM.prototype.Ek=function(){};tM.prototype.callback=function(a){this.g(a)};var vM=new iK("FwiOSb");var wM=function(a,b,c,d){this.status=a;this.Yc=b;this.g=c;this.response=d};wM.prototype.toString=function(){var a="["+this.status+"/"+this.Yc;null!=this.g&&(a+="/"+this.g);null!=this.response&&null!=this.response.Fb&&(a+=": ",a=La(this.response.Fb)?a+In(this.response.Fb,this.h,this).join("; "):a+this.h(this.response.Fb));return a+"]"};
wM.prototype.h=function(a){if(a&&(a.error||a.Fb&&a.Fb.error)){var b=a.error||a.Fb.error;a=b.message+" "+b.code;b=b.data||b.errors;null!=b&&(b=In(b,function(c){var d=c.domain+" - "+c.reason;null!=c.debugInfo&&(d+=" = "+Ae(c.debugInfo,"\n",4).slice(0,3).join(" - "));return d}),Gn(b)||(a+=": "+b.join(", ")));return a}return La(a)&&0<a.length?a+"":JSON.stringify(a)};var yM=function(){this.H={};this.ga=new xM;this.D=new rM(1E3,36E4);this.g=new rM(6E4,6E4);this.V=!1;this.ub=[];this.o=[]};B(yM,pM);var zM=function(a){var b=Va();a.m=b;return a};yM.prototype.Jk=function(a){this.u=a;return this};yM.prototype.tk=function(a){this.C=a;return this};yM.prototype.Ck=function(a){this.na=a;return this};var AM=function(a){return a.na||a.C};k=yM.prototype;k.Fk=function(a){this.L=a;return this};k.Kk=function(a){this.X=a;return this};k.ci=function(a){this.M=a;return this};
k.Gf=function(a){this.l=a};k.Lk=function(a){this.F=a;return this};k.wg=function(){return this.ga};k.To=function(a){this.j=a};k.wo=function(a){this.g=0>=a?null:new rM(a,a)};var BM=function(a){var b=a.D?a.D.g:0;b=Math.min(b,24E4);b=Math.round(.5*b)+Math.floor(Math.random()*b);a.D&&sM(a.D);a.j--;return b+0};yM.prototype.cancel=function(){this.V=!0;this.Gf("c")};yM.prototype.toString=function(){return"<Request to "+AM(this)+" with payload "+this.M+">"};var xM=function(){};
xM.prototype.Dk=function(a){this.g=a;return this};xM.prototype.Ek=function(a){this.h=a};xM.prototype.callback=function(a){this.g(a)};var CM=function(a,b){xv.call(this);this.l=!1;this.G=jt();this.m=a;this.m.h.fa.then(function(){this.G.resolve(null);this.l=!0;this.N("e")},null,this);this.g=b;this.s=Zf("realtime.network.RetryClient");this.H=0;this.D=[];this.j=new Om;this.h=new Om};t(CM,xv);CM.prototype.ba=function(){xv.prototype.ba.call(this);var a=this.j.Pb();Hb(a,Bv);a=this.h.Pb();Hb(a,Bv)};var DM=function(a,b){Hb(a.D,function(c){c.g(b)},a)};
CM.prototype.request=function(a){if(!this.C()&&!a.V)if(this.l){var b=this.H++;a.h=b;this.g&&this.g.onRequest(a);try{D(this.s,"Sending request, path = "+a.C+", requestNum = "+a.h);a.Gf("p");var c=null!=EM?Tm(EM):null;DM(this,a);var d=this.m.sendRequest(zM(a),c);d.then(Ua(this.o,a),Ua(this.u,a),this);null!=(a.g?a.g.g:null)&&this.h.set(a.h,Av(x(this.J,this,a,d),(a.g?a.g.g:null)||void 0))}catch(e){ag(this.s,"Failed to enqueue Apiary request: ",e),FM(this,a,new wM("fatal","request_queuing",null,null),
0)}}else C(this.s,"Apiary Client request while client is not ready")};CM.prototype.J=function(a,b){var c=new wM("retry","deadline_exceeded",null,null);b.cancel();FM(this,a,c,0)};
CM.prototype.o=function(a,b){GM(this,a);if(!this.C()&&"p"==a.l){var c="ok";a.Gf("o");a.wg().callback(b);if("o"!=a.l){var d="response_callback";switch(a.l){case "r":c="retry";break;case "d":c="fatal";break;default:ag(this.s,"Received an unexpected response state: "+a.l)}}"ok"==c?(bg(this.s,"Apiary response succeeded."),this.g&&this.g.D(a,b)):FM(this,a,new wM(c,d,b.gd,b),0)}HM(this,a)};
var GM=function(a,b){var c=a.j.get(b.h);null!=c&&(a.j.remove(b.h),Bv(c))},HM=function(a,b){var c=a.h.get(b.h);null!=c&&(a.h.remove(b.h),Bv(c))};
CM.prototype.u=function(a,b){if(!(b instanceof Xs)){GM(this,a);if(!this.C()&&"p"==a.l){var c=b.Yc,d=b.status,e=0;if("network_or_frontend"==b.Yc){switch(b.g){case -1:case 0:case 6:c="transport_unavailable";d="retry";break;case 8:c="deadline_exceeded";d="retry";break;case 400:c="bad_request";d="fatal";break;case 401:c="unauthorized";d="fatal";break;case 402:c="payment_required";d="fatal";break;case 403:c="forbidden";d="fatal";break;case 102:c="processing";break;case 500:c="internal_server_error";break;
case 503:c="service_unavailable"}b.status=d;b.Yc=c;if(null!=b.response.headers&&null!=b.response.headers["Retry-After"])try{e=1E3*parseInt(b.response.headers["Retry-After"],10),e=Math.min(Math.max(e,0),72E5)}catch(f){}}FM(this,a,b,e)}HM(this,a)}};
var FM=function(a,b,c,d){if(!a.C()&&("p"==b.l||"r"==b.l)){D(a.s,"Request failed: "+b.h+" to "+(b.u||"")+" for path "+b.C);a.g&&a.g.onError(b,c);var e=null!=b.j?b.j:0;"retry"==c.status&&0<e?(a.j.set(b.h,Av(x(a.request,a,b),Math.max(BM(b),d))),"deadline_exceeded"==c.Yc&&b.g&&sM(b.g)):(b.cancel(),b.wg().h(c))}},EM=null;var IM=function(a,b,c,d,e){var f=this;xv.call(this);this.m=b;this.o=c;this.u=null==e?"https://clients6.google.com":e;this.l=d;this.g=a;this.h=a instanceof CM;this.G=new Ys(function(g){f.g.l?g():qv(f.g,f.h?"e":"d",function(){return g()})})};B(IM,xv);
IM.prototype.request=function(a,b,c,d,e,f,g){this.G.then(function(){var h=(this.h?new yM:new uM).Jk(this.u).Ck(a).tk("/"+this.m+"/"+this.o+"/"+a).Fk(b).Kk(c).Lk(void 0===g||g).ci(d),m=jt();m.fa.then(e,f||Ia);h.wg().Dk(x(m.resolve,m)).Ek(x(m.reject,m));this.g.request(h)},null,this)};
IM.prototype.makeRequest=function(a,b,c,d,e,f,g,h){var m=ld(xe(this.l))?{}:{key:this.l},q=qM((this.h?new yM:new uM).Jk(this.u).Ck(a).tk("/"+this.m+"/"+this.o+"/"+a).Fk("POST").Kk(m).Lk(!0).ci(b),g);h&&q instanceof yM&&(q.G=h);null!=d&&(null!=f&&q instanceof yM&&f>d?q.g=0>=d?null:new rM(d,f):q.wo(d));null!=e&&q.To(e);var r=jt();q.wg().Dk(x(function(u){var A=null;try{A=this.D(u,c)}catch(O){u=this.h?new wM("fatal","response_decoding",null,u):new oM("fatal","response_decoding",null,u);r.reject(u);return}var z=
0;if(A&&"function"===typeof A.getResponseHeader){var H=A.getResponseHeader();H&&"function"===typeof H.Ja&&(z=H.Ja())}1==z?r.resolve(A):!this.h||2!=z&&3!=z?(A=11===z,this.h?r.reject(new wM("fatal",A?"not_found":"backend",null,u)):r.reject(new oM("fatal",A?"not_found":"backend",null,u))):q.Gf("r")},this)).Ek(x(r.reject,r));this.G.then(x(this.g.request,this.g,q));return r.fa};IM.prototype.D=function(a,b){a=this.h?a.Fb:a;return a instanceof J?a:0<a.length?new b(a):null};var JM=function(a,b,c){a=$q(a,encodeURIComponent("$ct"),c);if(null==navigator.sendBeacon||!navigator.sendBeacon(a,b)){c=a;var d="POST",e=b;a=$q(a,encodeURIComponent("$httpMethod"),"POST");a=$q(a,encodeURIComponent("$req"),b);2048>a.length&&(c=a,d="GET",e=null);try{var f=Ov(Mv);f.open(d,c,!1);f.send(e)}catch(g){b=Zf("realtime.network.Beacon"),ag(b,"Cannot fallback from sendBeacon",g)}}};var KM=function(a){return(a=a.da())&&a.ac()},LM=function(a){a=a.getResponseHeader();return!!a&&1===a.Ja()},MM=function(a){a=(a=a[0]&&Q(a[0],HB,1))&&R(a,FB,6)||[];return 1==a.length?a[0].sa():null};var NM=function(a,b,c,d,e,f){IM.call(this,a,b,c,d,e);this.j=f||new Qw;this.H=new qL(this);this.J=this.H.signal()};t(NM,IM);NM.prototype.makeRequest=function(a,b,c,d,e,f,g,h){!0!==h&&OM(this,b);return IM.prototype.makeRequest.call(this,a,b,c,d,e,f,g,h&&h.va?h:null).then(this.L,null,this)};var OM=function(a,b){if(b&&a.j.g&&"function"===typeof b.da&&"function"===typeof b.O){var c=b.da()||new Ll;S(c,3,a.j.g);b.O(c)}};
NM.prototype.L=function(a){"function"===typeof a.getResponseHeader&&LM(a)&&PM(this,a);return a};var PM=function(a,b){(b=(b="function"===typeof b.da&&b.da()||null)&&Q(b,Ml,3))&&Rw(a.j,b)};NM.prototype.D=function(a,b){(a=IM.prototype.D.call(this,a,b))&&a instanceof sD&&(b=a.getResponseHeader())&&R(a,qD,2).length&&N(b,1,1);return a};var QM=function(){xv.apply(this,arguments)};t(QM,xv);QM.prototype.pf=function(a,b,c){try{return xv.prototype.pf.call(this,a,b,c)}catch(d){return!1}};var RM=function(){QM.call(this);this.s=Zf("realtime.pushnotifications.Dispatcher")};t(RM,QM);RM.prototype.g=function(a){var b=Q(a,LJ,2),c;if(b)for(a=0;a<SM.length;a++){if(c=SM[a].xb.call(b)){if("p"==SM[a].eventType)for(b=c,a=0;a<SM.length;a++){if(c=TM[a].xb.call(b)){var d=TM[a].eventType;break}}else d=SM[a].eventType;break}}else(b=Q(a,wH,3))&&(c=Q(b,vH,1))&&(d="l");c?(D(this.s,"Received notification of type "+d),this.N(new UM(d,c))):C(this.s,"A batch notification is empty.")};
var SM=[{xb:LJ.prototype.ws,eventType:"m"},{xb:LJ.prototype.ys,eventType:"o"},{xb:LJ.prototype.Vr,eventType:"i"},{xb:LJ.prototype.Ur,eventType:"j"},{xb:LJ.prototype.xs,eventType:"n"},{xb:LJ.prototype.Kr,eventType:"f"},{xb:LJ.prototype.Sr,eventType:"g"},{xb:LJ.prototype.Es,eventType:"z"},{xb:LJ.prototype.Lr,eventType:"h"},{xb:LJ.prototype.As,eventType:"p"},{xb:LJ.prototype.Tr,eventType:"k"}],TM=[{xb:KJ.prototype.Mr,eventType:"q"},{xb:KJ.prototype.Bs,eventType:"s"},{xb:KJ.prototype.Hs,eventType:"x"},
{xb:KJ.prototype.Is,eventType:"y"},{xb:KJ.prototype.Cs,eventType:"u"},{xb:KJ.prototype.Ds,eventType:"t"},{xb:KJ.prototype.Fs,eventType:"w"},{xb:KJ.prototype.Gs,eventType:"v"}],UM=function(a,b){U.call(this,a);this.notification=b};t(UM,U);var XM=function(a){this.g=new mM(void 0);if(a instanceof NM){var b=a;a=new IM(a.g,a.m,a.o,a.l,a.u)}else a instanceof IM?b=new NM(a.g,a.m,a.o,a.l,a.u,new Qw):a=b=a;this.h=b;this.C=a;this.l=new VM;this.j=new RM;null==L(this.g,1)&&N(this.g,1,32);b=WM(this)||"rmjs";N(this.g,2,b);b=L(this.g,3)||"Unknown";N(this.g,3,b);b=L(this.g,4)||"0.0";N(this.g,4,b);null==M(this.g,5,0)&&N(this.g,5,0);b=this.Vb()||WM(this)+ze().toUpperCase();N(this.g,6,b);b=L(this.g,7)||this.Vb()+"@fake.com";N(this.g,7,b);null==rl(this.g,
9)&&N(this.g,9,.01);b=L(this.g,10)||null;N(this.g,10,b);b=L(this.g,11)||"https://clients2.google.com/cr/report";N(this.g,11,b);b=L(this.g,12)||null;N(this.g,12,b);b=Q(this.g,NL,13)||new NL;S(this.g,13,b);null==sl(this.g,8)&&N(this.g,8,!1);null==sl(this.g,16)&&N(this.g,16,!1);b=L(this.g,14)||[];N(this.g,14,b||[]);b=Q(this.g,PL,17)||new PL;S(this.g,17,b);b=this.sf()||null;N(this.g,18,b)};XM.prototype.register=function(a){a.registerService(YM,this);ZM(this,a);return this};
var ZM=function(a,b){uK(b,MK).then(function(c){var d={Og:function(e){var f=iM(M(a.g,5,0),$M(a));S(e,5,f);var g=eM(e);f=Q(g,QJ,9)||new QJ;S(g,9,f);g=WM(a);N(f,4,g);e=gM(e);f=L(a.g,7);e=N(e,8,f);f=a.Vb();N(e,1,f)},Pg:function(){}};aN(c,d);Bs(b,function(){Zb(c.h,d)})})},bN=function(a){var b=ze().toUpperCase();N(a.g,6,"castouts"+b)},cN=function(a){var b=new nB;var c=new iB;var d=L(a.g,1);c=N(c,1,d);b=S(b,1,c);c=new eB;d=a.Vb();c=N(c,1,d);b=S(b,2,c);b=N(b,4,"en");a=iM(M(a.g,5,0),$M(a));return S(b,7,a)},
$M=function(a){return L(a.g,7).endsWith("@hangouts-enterprise-devices.gserviceaccount.com")},WM=function(a){return L(a.g,2)},dN=function(a){var b=chrome.runtime.id+chrome.runtime.getManifest().version;N(a.g,4,b)};k=XM.prototype;k.Vb=function(){return this.g.Vb()};k.sf=function(){return this.g.sf()};k.ug=function(){return this.g.ug()};k.vg=function(){return this.g.vg()};k.xg=function(){return this.g.xg()};k.va=function(){return this.g.va()};var YM=new iK("CgjDUd"),VM=function(){};function eN(a,b){a=cN(a);var c=Q(a,eB,2);N(c,4,b);return a};var fN=new WeakMap,gN=function(a,b){LL.call(this);this.s=Zf("realtime.collections.apiary.OperationExecutor");this.h=a;this.o=b;this.g=[]};t(gN,LL);var hN=function(a,b){fN.has(a)||(b=new gN(b,function(){return uK(a,OK).then(function(c){return c.h})}),fN.set(a,b));return fN.get(a)},iN=function(a){return a.o().then(function(b){return eN(a.h,b)})};gN.prototype.execute=function(a,b){if(a.m())throw new aL(a);void 0===b&&a.j?(this.g.push(a),1==this.g.length&&Ss(this.m,this)):jN(this,a,b)};
gN.prototype.m=function(){for(var a=0;a+5<this.g.length;)kN(this,this.g.slice(a,a+5)),a+=5;1==this.g.length-a?jN(this,this.g[a]):kN(this,this.g.slice(a));this.g.length=0};
var jN=function(a,b,c){c=void 0===c?b.Ig():c;var d=b.l,e=$K(b);iN(a).then(function(f){e.setRequestHeader(f);D(a.s,"Making request for operation: "+b+", jid: "+a.h.Vb());f=b.Th();var g=Math.max(c,b.Kj()||0);nt(a.h.h.makeRequest(d,e,b.V,c,f,g,{isCollectionOperation:!0}).then(function(h){return lN(a,b,h)}),function(h){return mN(a,b,h)})})},lN=function(a,b,c){var d=c.getResponseHeader();if(1==d.Ja())d="function"===typeof c.da&&null!=c.da()?c.da().ac():null,"string"===typeof d&&(d=parseInt(d,10)),d=null==
d?-1:d,c=b.M(c),c={version:d,data:c},D(a.s,"Apiary operation succeeded for "+b+", result: "+c),b.u=!0,b.F.resolve(c);else{var e=Error(L(d,8));e.stack=L(d,2)||"Missing Stack";ag(a.s,"Apiary operation "+b+" failed with status "+d.Ja(),e);mN(a,b,new oM("fatal","backend",null,c))}},mN=function(a,b,c){b.u=!0;ag(a.s,"Apiary operation failed for "+b+": "+c);b.F.reject(c)},kN=function(a,b){var c=new VC;iN(a).then(function(d){c.setRequestHeader(d);WC(c,b.map(function(f){return f.j.set(new RC,$K(f))}));D(a.s,
"Making bulk request for "+b.length+"operations , jid: "+a.h.Vb());d=Math.max.apply(null,b.map(function(f){return f.Th()}));var e=b.map(function(f){return f.Ig()}).filter(function(f){return void 0!==f});e=e.length?Math.min.apply(null,e):void 0;nt(a.h.h.makeRequest("hangouts/bulk",c,sD,e,d,void 0,{isCollectionOperation:!0}).then(function(f){return nN(a,b,f)}),function(f){return oN(a,b,f)})})},nN=function(a,b,c){PM(a.h.h,c);var d=R(c,qD,2);b.forEach(function(e,f){(f=e.j.get(d[f]))?(PM(a.h.h,f),lN(a,
e,f)):mN(a,e,new oM("fatal","backend",null,c))})},oN=function(a,b,c){b.forEach(function(d){return mN(a,d,c)})};var pN=function(a,b,c){U.call(this,"A");this.Sc=b;this.Bc=a;this.removed=c};t(pN,U);var qN=function(a,b){this.g=a;this.eventType=b};var rN=function(){xv.call(this)};t(rN,xv);Ja(rN);var W=function(a){T.call(this);this.Ab=a;this.L={}};B(W,T);var sN=[];W.prototype.listen=function(a,b,c,d){return tN(this,a,b,c,d)};
var tN=function(a,b,c,d,e,f){Array.isArray(c)||(c&&(sN[0]=c.toString()),c=sN);for(var g=0;g<c.length;g++){var h=jv(b,c[g],d||a.handleEvent,e||!1,f||a.Ab||a);if(!h)break;a.L[h.key]=h}return a},vN=function(a,b,c,d){uN(a,b,c,d,void 0)},uN=function(a,b,c,d,e,f){if(Array.isArray(c))for(var g=0;g<c.length;g++)uN(a,b,c[g],d,e,f);else(b=iv(b,c,d||a.handleEvent,e,f||a.Ab||a))&&(a.L[b.key]=b)},wN=function(a,b,c,d,e,f){if(Array.isArray(c))for(var g=0;g<c.length;g++)wN(a,b,c[g],d,e,f);else d=d||a.handleEvent,
e=Na(e)?!!e.capture:!!e,f=f||a.Ab||a,d=kv(d),e=!!e,c=Yu(b)?ev(b.M,String(c),d,e,f):b?(b=mv(b))?ev(b,c,d,e,f):null:null,c&&(sv(c),delete a.L[c.key]);return a};W.prototype.removeAll=function(){xc(this.L,function(a,b){this.L.hasOwnProperty(b)&&sv(a)},this);this.L={}};W.prototype.ba=function(){W.Db.ba.call(this);this.removeAll()};W.prototype.handleEvent=function(){throw Error("EventHandler.handleEvent not implemented");};var zN=function(a,b,c,d,e){e=void 0===e?null:e;xv.call(this);var f=this;this.g=c;this.ua=d;this.l=iL(this.g,b);this.Sa=++xN;this.R=Zf("Collection."+this.Sa);this.pa=d.h;this.Za=e&&e.g;this.nc=e&&e.eventType;this.zb=d.hj();this.Wc=new W(this);this.T(this.Wc);this.data={};this.dc=0;this.ob=[];this.nb={};this.h=-2;this.H=!0;this.u=jt();this.state="ha";this.config=Jl(a);rN.Ob();this.ga={};this.kc=qc;this.D=new qL(this);this.La=this.D.signal();this.onChange=this.D.signal();this.Da=function(g){f.g.C(g.data);
return new yN(g.version,g.data,[],"da")}};t(zN,xv);zN.prototype.toString=function(){return"[Collection #: "+this.Sa+", id: "+this.l+", data version: "+this.h+"]"};var AN=function(a,b){return new yN(b.version,[],a,"da")},BN=function(a){"ha"==a.state&&(a.state="fa",a.Za&&a.Wc.listen(a.Za,a.nc,a.Pc))};zN.prototype.start=function(a){a&&CN(this,a);"ha"==this.state&&BN(this);if("fa"!=this.state)return null;this.state="ga";DN(this);D(this.R,"Collection started: "+this.toString()+", "+this.m());return null};
zN.prototype.stop=function(){if("ga"==this.state||"fa"==this.state)this.flush(),this.ab(),this.state="ha",D(this.R,"Collection stopped: "+this.toString()+": "+this.m())};var DN=function(a){a.H&&a.u&&(D(a.R,"Initial data available: "+a.toString()),a.u.resolve(a.ob),a.u=null)};zN.prototype.ab=function(){this.Za&&wN(this.Wc,this.Za,this.nc,this.Pc)};var CN=function(a,b){b instanceof a.g.g&&(b=iL(a.g,a.g.j(b)));a.l=EN(b)};
zN.prototype.pb=function(a){for(var b=[],c=0;c<arguments.length;++c)b[c-0]=arguments[c];if(0==b.length)return this.g.pb(this.g.j(this.l));if(b[0]instanceof this.g.g)return this.g.pb(this.g.h(b[0]));b=Array.prototype.concat.apply(Array.prototype,b);return this.g.pb(this.g.j(this.l),b)};zN.prototype.G=function(a){for(var b=[],c=0;c<arguments.length;++c)b[c-0]=arguments[c];return this.nb[FN(this,Array.prototype.concat.apply(Array.prototype,b))]||null};var GN=function(a){return"ga"==a.state&&!0};
zN.prototype.ba=function(){this.flush();this.stop();this.u&&(C(this.R,"Never any data: "+this.toString()),this.u.fa.cancel(),this.u=null);xv.prototype.ba.call(this)};zN.prototype.get=function(){return this.ob};var HN=function(a){return a.u?a.u.fa:bt(a.get())};zN.prototype.flush=function(){do{IN(this);var a=this.V()}while(0<a)};var IN=function(a){xc(a.ga,function(b){for(;b&&1<=b.length&&b[0].g;)b.shift()})};zN.prototype.za=function(){return Cc(this.data).map(function(a){return a.va()})};
zN.prototype.add=function(a,b){FN(this,a);if(JN(this,a)&&this.zb)return b=KN(this,"ja",a),Ss(this.V,this),b;a=this.ua.zd([a]);return LN(this,a,b,this.Da)};var MN=function(a,b,c){FN(a,b);if(JN(a,b)&&a.zb)return c=KN(a,"ka",b),Ss(a.V,a),c;b=a.ua.Ad([b]);return LN(a,b,c,a.Da)};zN.prototype.remove=function(a,b,c){var d=NN(this,a);return JN(this,a)&&null==c&&this.zb?(a=KN(this,"la",d,b),Ss(this.V,this),a):LN(this,ON(this,[d],b),c,Ua(AN,[d]))};
var KN=function(a,b,c,d){var e=a.Kb(c).toString(),f=a.ga[e]||[];a.ga[e]=f;e=null;a=f.length;if(1<=a&&!f[a-1].g)if(a=f[a-1],"ja"==b){if("ja"==a.type||"ka"==a.type)e=a.Bb,f.pop()}else if("ka"==b&&("ja"==a.type||"ka"==a.type)){b=a.resource;d=JSON.parse(b.va());c=JSON.parse(c.va());for(f=0;f<c.length;f++)null==c[f]||Gl(d[f],c[f])||(d[f]=c[f]);c=new b.constructor(d);a.resource=c;return a.Bb.fa}e=e||jt();f.push(new PN(b,c,e,d));return e.fa};
zN.prototype.V=function(){var a=0,b={};xc(this.ga,function(c){if(c&&1<=c.length&&(c=c[0],!c.g)){c.g=!0;if("la"==c.type&&c.h){var d=[c.resource];QN(this,ON(this,d,c.h),Ua(AN,d),[c.Bb],d)}else d=b[c.type]||[],d.push(c),b[c.type]=d;a++}},this);xc(b,function(c,d){if(1<=c.length){var e=[],f=[];c.forEach(function(g){e.push(g.resource);f.push(g.Bb)});switch(d){case "ja":QN(this,this.ua.zd(e),this.Da,f,e);break;case "ka":QN(this,this.ua.Ad(e),this.Da,f,e);break;case "la":QN(this,ON(this,e),Ua(AN,e),f,e);
break;default:Eb("A request with type "+d+" was put in the queue.")}}},this);return a};var QN=function(a,b,c,d,e){null==b&&d.forEach(function(g){g.reject("Operation not available")});b.Lj(M(a.config,7,0));b.Xg(M(a.config,8,6E4),M(a.config,13,6E4));var f=e.map(a.Kb,a);e=b.o();mt(e,function(){return RN(a,f)});nt(e.then(x(a.rc,a,b,c,d,f)),function(g){SN(a,b,g);d.forEach(function(h){return h.reject(g)})});a.pa.execute(b)};zN.prototype.J=function(){return!0};
var ON=function(a,b,c){return a.ua.Qd(b.map(a.xa,a),c)},JN=function(a,b){return b instanceof TN?jL(a.g,a.xa(b)):jL(a.g,b)},NN=function(a,b){b=iL(a.g,a.g.h(b));return new TN(a.g,b)},UN=function(a,b){var c=a.g;b=a.xa(b);a=kL(c,a.l,c.j);c=kL(c,b,c.j);return mc(a,c)},LN=function(a,b,c,d){if(null==b)return ct("Operation not available");var e=jt();VN(a,b,d,e,c);bg(a.R,"Executing operation: "+b);a.pa.execute(b);return e.fa},VN=function(a,b,c,d,e){e=void 0===e?M(a.config,7,0):e;b.Lj(e);e=b.Ig()||M(a.config,
8,6E4);var f=b.Kj()||Math.max(e,M(a.config,13,6E4)||0);b.Xg(e,f);nt(b.o().then(x(a.rc,a,b,c,[d],null)),function(g){SN(a,b,g);d.reject(g)})};
zN.prototype.rc=function(a,b,c,d,e){var f=this;D(this.R,"Operation executed: "+a+", result:"+e);b&&(this.J(e.version)?(a=b(e))?this.Oa(a):D(this.R,"Operation resulted in no update"):GN(this)&&Eb("Result of an operation must have a valid version number, if the collection is active."));!d||null==e.data||1>=e.data.length?c[0].resolve(e.data):c.forEach(function(g,h){var m=d[h];h=e.data.filter(function(q){return f.Kb(q).equals(m)});0==h.length&&ag(f.R,"Result data is empty after filtering for target resource id "+
m);g.resolve(h)})};
var SN=function(a,b,c){c instanceof Error?ag(a.R,"Operation failed:",c):ag(a.R,"Operation failed: "+c);new WN(b.Im(),b.Hm(),c);c.response&&c.response.getResponseHeader&&(b=c.response.getResponseHeader().Ja(),(c=XN.get(b))&&YN(a,c,"Collection apiary operation failed with response code "+b+" triggering endcause "+c))},RN=function(a,b){var c=!1;b.forEach(function(d){var e=a.ga[d.toString()];e&&1<=e.length?(e.shift(),c=c||1<=e.length):ag(a.R,"A writing request with resource id "+d+" completed but it is not in the request queue.")});
c&&a.V()};zN.prototype.Pc=function(a){"ga"!=this.state&&"fa"!=this.state||this.yb(a)};
zN.prototype.yb=function(a){var b=this.lc(a);D(this.R,"Received push notification, version: "+b+", checking if any updates apply to this collection "+this.toString());var c=ZN(this,a);a=$N(this,a);c.length||a.length?(D(this.R,"Notification applies to this collection: version: "+b+", add/modify: "+c.length+", remove:"+a.length),this.g.C(c),b=new yN(b,c,a,"ca"),bg(this.R,"Created partial update for notification: "+b),$f(this.R,Sf,"Add/modify: ["+b.Ye.join("|")+"], remove: ["+b.Lf.join("|")+"]"),this.Oa(b)):
D(this.R,"Notification does not apply to this collection, ignoring.")};zN.prototype.lc=function(){return-2};var ZN=function(a,b){var c=[];b.notification.Rb().forEach(function(d){var e=a.g;d=d instanceof e.g?d:new e.g(JSON.parse(d.va()));jL(a.g,d)?UN(a,NN(a,d))&&c.push(d):d.va()});return c},$N=function(a,b){if(!b.notification.wc)return[];var c=[];b.notification.wc().forEach(function(d){var e=a.g.m(d);jL(a.g,e)?(d=NN(a,e),UN(a,d)&&c.push(d)):d.va()});return c};
zN.prototype.Oa=function(a){bg(this.R,"Begin processing update: "+a);a instanceof yN&&(bg(this.R,"Applying partial update: "+a),aO(this,a));bg(this.R,"Finish processing update: "+a+": "+this.m())};zN.prototype.m=function(){return"state: "+this.state+", local version: "+this.h+", snapshot size: "+this.dc};
var aO=function(a,b){bg(a.R,"Processing partial update: "+b);$f(a.R,Sf,"Add/modify: ["+b.Ye.join("|")+"], remove: ["+b.Lf.join("|")+"]");b.Ye.forEach(function(d){jL(a.g,d)?a.data[FN(a,d)]=EN(d):d.va()});var c=[];b.Lf.forEach(function(d){var e=FN(a,d);a.data[e]?delete a.data[e]:c.push(d)});0<c.length&&Fs(c);bO(a)},bO=function(a){var b={},c={};xc(a.data,function(g,h){this.kc(g)&&(b[h]=g,c[h]=g)},a);var d=[],e=[];xc(a.nb,function(g,h){var m=b[h];m?(delete c[h],Hl(g,m)||e.push(m)):d.push(g)});var f=Cc(c);
a.nb=b;a.ob=Cc(b);a.dc=Ac(a.data);if(0<e.length||0<f.length||0<d.length)D(a.R,"Obtained update of the filtered view : modified: "+e.length+", added: "+f.length+", removed:"+d.length),$f(a.R,Sf,"Modified: ["+e.join("|")+"], added: ["+f.join("|")+"], removed: ["+d.join("|")+"]"),a.D.W(a.onChange,{Sc:f,Bc:e,removed:d}),a.N(new pN(e,f,d))},cO=function(a,b){a.kc=b;bO(a)};zN.prototype.Kb=function(a){return null==a||a instanceof TN?a:NN(this,a)};
var FN=function(a,b){var c;Array.isArray(b)?c=b:c=b instanceof TN?hL(a.g,b.g):hL(a.g,b);return Fs(c)},YN=function(a,b,c){"ia"!=a.state&&(a.ab(),a.state="ia",ag(a.R,"Collection failed: "+a+": "+a.m()+": "+c),a.D.W(a.La,{Mb:b,reason:c}))};zN.prototype.xa=function(a){return a.g};var eO=function(a){this.g=a;this.id=++dO},yN=function(a,b,c,d){eO.call(this,a);this.h=d;this.Ye=b;this.Lf=c};t(yN,eO);
yN.prototype.toString=function(){return"[Partial update id: "+this.id+", version: "+this.g+", add/modify: "+this.Ye.length+", remove: "+this.Lf.length+", type: "+this.h+"]"};function EN(a){return a instanceof J?Jl(a):a.clone()}var PN=function(a,b,c,d){this.type=a;this.resource=b;this.Bb=c;this.h=void 0===d?null:d;this.g=!1},XN=(new Map).set(10,67),xN=0,dO=0,TN=function(a,b){this.h=a;this.g=b};TN.prototype.equals=function(a){return lL(this.h,this.g,a.g)};TN.prototype.toString=function(){return this.g.va()};
var WN=function(a,b,c){a=Error.call(this,"operation: "+a+", error = "+Bf(c));this.message=a.message;"stack"in a&&(this.stack=a.stack);this.request=b;this.ye=c};t(WN,Error);var fO=function(a,b,c){T.call(this);this.F=null!=c?x(a,c):a;this.u=b;this.o=x(this.Ls,this);this.h=!1;this.j=0;this.l=this.g=null;this.m=[]};B(fO,T);k=fO.prototype;k.Ks=function(a){this.m=arguments;this.h=!1;this.g?this.l=Va()+this.u:this.g=Av(this.o,this.u)};k.stop=function(){this.g&&(Bv(this.g),this.g=null);this.l=null;this.h=!1;this.m=[]};k.pause=function(){++this.j};k.resume=function(){this.j&&(--this.j,!this.j&&this.h&&(this.h=!1,this.F.apply(null,this.m)))};k.ba=function(){this.stop();fO.Db.ba.call(this)};
k.Ls=function(){this.l?(this.g=Av(this.o,this.l-Va()),this.l=null):(this.g=null,this.j?this.h=!0:(this.h=!1,this.F.apply(null,this.m)))};var gO=function(a,b,c,d,e,f,g,h){h=void 0===h?null:h;zN.call(this,b,c,d,e,f,g);this.R=Zf("realtime.collections.SyncableCollection of "+h);this.bd=a instanceof nK?new nL(a):a;this.qd=h;this.Ab=e;this.h=-1;this.H=!1;this.na=null;this.Ca=-1;this.j=[];this.Pa=this.Fa=this.gb=this.L=null;this.X=!1;this.mc=0;this.ta=null;this.o=new rM(M(this.config,2,1E3),M(this.config,3,6E4));this.oc=this.D.signal();this.td=this.D.signal();this.bc=new fO(this.cc,0,this)};t(gO,zN);
var jO=function(a,b,c){a.L=bt().then(function(){a.g.C(c);a.Oa(new hO(b,c,"pa"));iO(a,!1)});return a.L};gO.prototype.start=function(a,b){var c=this;zN.prototype.start.call(this,a);if("ga"!=this.state)return null;null==this.na&&(this.na=this.pa.j.attach(function(){kO(c,"oa",!0)},this));lO(this,!0);if(b)return D(this.R,"Initializing collection with data."),jO(this,b.version,b.data);D(this.R,"Starting initial resync.");return kO(this,"pa",!0)};
gO.prototype.ab=function(){zN.prototype.ab.call(this);null!=this.na&&(this.pa.j.detach(this.na),this.na=null);Bv(this.Pa);this.Pa=null;this.o.reset();Bv(this.gb);this.gb=null;Bv(this.Fa);this.ta=this.Fa=null;this.H=!1};gO.prototype.query=function(a,b){a=NN(this,a);a=this.Ab.Pd(this.xa(a));return LN(this,a,b)};gO.prototype.search=function(a){return LN(this,this.Ab.te(EN(this.l)),a)};
var pO=function(a,b){"oa"!=b&&0==a.o.h&&ML(a.pa);bg(a.R,"Starting sync. Type: "+b);var c="qa"==b||"ra"==b,d=a.Ab.te(EN(a.l)),e=-2;ul(a.config,11,!1)&&(9E4>Date.now()-a.mc&&d.L(a.h)?e=a.h:a.mc=Date.now());d=LN(a,d,void 0,function(f){lO(a,!0);return e!=f.version?(a.g.C(f.data),new hO(f.version,f.data,b)):null});nt(d.then(function(){return iO(a,c)}),function(f){var g=(c?"Poll":"Resync")+" error: "+f;ag(a.R,g,f instanceof Error?f:Error(g));mO(a,!0);GN(a)?(sM(a.o),nO(a)):oO(a)});a.L=d;nt(a.L,Ia);return d};
gO.prototype.J=function(a){return 0<=a};var qO=function(a){return null!=kO(a,"sa",!0)||a.L?a.L:ct("Collection not yet started, so cannot resync.")};gO.prototype.yb=function(a){var b=!1,c=a.notification.Wb();c&&""!=c&&(b=this.g.m(c),b=NN(this,b),b=UN(this,b));b?qO(this):zN.prototype.yb.call(this,a)};gO.prototype.lc=function(a){var b;"function"===typeof a.notification.da&&a.notification.da()&&(b=a.notification.da().ac());return b};
gO.prototype.Oa=function(a){bg(this.R,"Begin processing update: "+a);var b=a.g==this.Ca;this.Ca=Math.max(this.Ca,a.g);lO(this,!1);if(a instanceof hO)rO(this,a);else{sO(this,a.Ye,a.Lf);if(this.J(this.h)&&a.g<=this.h){var c=!1;b&&(c=!0);100<this.h-a.g&&(c=!0);c&&kO(this,"ta",!0);bg(this.R,"Ignoring update "+a+" below or equal to local version ("+this.h+")");return}b=this.j.find(function(d){return d.g<=a.g});if(null!=b&&a.g==b.g){C(this.R,"Duplicate update received, ignoring it.");return}bg(this.R,"Queuing partial update: "+
a);Xb(this.j,a,b)}a instanceof hO?this.cc():this.bc.Ks();bg(this.R,"Finish processing update: "+a+": "+this.m())};
var sO=function(a,b,c){a.J(a.h)||(bg(a.R,"Dispatch early notification: "),a.D.W(a.oc,{Ye:b,Lf:c}))},kO=function(a,b,c){if(!GN(a)||a.X)return null;a.o.reset();var d=null;a.X=!0;c?d=pO(a,b):nO(a);return d},oO=function(a){a.X&&(D(a.R,"Ending resync"),a.X=!1,a.D.W(a.td,void 0))},nO=function(a){var b=a.o.g;D(a.R,"Scheduling resync timer, backoff count: "+a.o.h+", backoff: "+b);a.Pa=Av(a.vd,b,a)};
gO.prototype.vd=function(){D(this.R,"Resync timer triggered, "+this.m());this.Pa=null;GN(this)?pO(this,"ta"):oO(this)};
var iO=function(a,b){D(a.R,(b?"Poll":"Resync")+" operation executed, "+a.m());mO(a,!1);if(a.H||!GN(a))oO(a);else{b=!1;var c=M(a.config,5,4);a.o.h>=c?(D(a.R,"Hard sync threshold reached ("+c+"), doing a hard resync"),b=!0):a.j.length>M(a.config,4,64)&&(bg(a.R,"Number of queued updates is larger than the max ("+M(a.config,4,64)+"), clearing the queue"),b=!0);b?(Ub(a.j),a.o.reset(),pO(a,"ua")):(sM(a.o),nO(a))}};
gO.prototype.m=function(){return zN.prototype.m.call(this)+", is synced: "+this.H+", is resyncing: "+this.X+", queue size: "+this.j.length+", highest observed server version: "+this.Ca+(0<this.j.length?", smallest queued version: "+Fb(this.j).g+", largest queued version: "+this.j[0].g:"")};
gO.prototype.cc=function(){this.bc.stop();if(0!=this.j.length&&this.J(this.h)){bg(this.R,"Trying to apply any queued updates, "+this.m());for(var a=0;0<this.j.length&&Fb(this.j).g<=this.h;){var b=this.j.pop();bg(this.R,"Tossing queued update "+b+" below or equal to local version ("+this.h+")");a++}0<a&&bg(this.R,"Tossed "+a+" queued old updates below or equal to local version ("+this.h+")");for(a=0;0<this.j.length;)if(b=Fb(this.j),b.g==this.h)this.j.pop(),a++;else if(b.g==this.h+1)this.h=b.g,aO(this,
b),this.j.pop(),a++;else{bg(this.R,"Unable to incrementally apply next queued update,  lowest queue update version: "+b.g+", local version:"+this.h+", remaining queue length: "+this.j.length);break}bg(this.R,"Applied "+a+" queued updates")}(this.H=0==this.j.length&&this.J(this.h))?DN(this):kO(this,"ta",!1)};gO.prototype.Qc=function(a){GN(this)&&(D(this.R,"Executing poll sync operation"),kO(this,a,!0),lO(this,!0))};
var lO=function(a,b){if(GN(a)){D(a.R,"Scheduling next poll for "+M(a.config,1,3E4)/1E3+" seconds from now");Bv(a.gb);a.gb=Av(Ua(a.Qc,"qa"),M(a.config,1,3E4),a);var c=M(a.config,9,9E4);null==c&&(c=9E4);b&&0<c&&(Bv(a.Fa),a.Fa=Av(Ua(a.Qc,"ra"),c,a))}},mO=function(a,b){if(b)if(null==a.ta)a.ta=Date.now(),C(a.R,"Sync operation failed, we will continue retrying for up to "+M(a.config,6,3E5)/1E3+" seconds before shutting down...");else{b=Date.now()-a.ta;var c="Sync operations failing for a period of "+b/
1E3+" seconds (limit configured to: "+M(a.config,6,3E5)/1E3+" seconds).";C(a.R,c);b>=M(a.config,6,3E5)&&YN(a,22,c)}else a.ta=null},rO=function(a,b){bg(a.R,"Processing full update: "+b);$f(a.R,Sf,"Snapshot: ["+b.data.join("|")+"]");if(a.h>=b.g&&100>a.h-b.g){var c=[];if(a.h==b.g){var d={};b.data.forEach(function(h){var m=FN(a,h);d[m]=!0;m=a.data[m]||null;if(null==m)c.push({local:null,server:h.va(),mismatch:"local_missing"});else{var q=m==h?null:m instanceof h.constructor?tO(JSON.parse(m.va()),JSON.parse(h.va())):
"_";null!=q&&c.push({local:m.va(),server:h.va(),mismatch:q})}});xc(a.data,function(h,m){d[m]||c.push({local:h.va(),server:null,mismatch:"server_missing"})})}if(0!=c.length)C(a.R,"Reapplying update with version that's the same, update: "+b.g+", local: "+a.h+", type: "+b.h),a.bd.Y(1827,{Zb:a.qd+":"+c[0].mismatch});else{bg(a.R,"Ignoring update with version not newer than local version, update: "+b.g+", local: "+a.h+", type: "+b.h);return}}var e=b.data.filter(function(h){if(jL(a.g,h))return!0;h.va();
return!1}),f=[],g={};b.data.forEach(function(h){g[FN(a,h)]=!0});xc(a.data,function(h,m){g[m]||f.push(NN(a,h))});bg(a.R,"Applying full update as partial and advancing version from "+a.h+" to "+b.g);a.h=b.g;aO(a,new yN(b.g,e,f,"ea"))},tO=function(a,b){if(Array.isArray(a)&&0===a.length||!1===a||0===a||""===a)a=null;if(Array.isArray(b)&&0===b.length||!1===b||0===b||""===b)b=null;if(a==b)return null;if(!Array.isArray(a)||!Array.isArray(b))return"";for(var c=0;c<Math.max(a.length,b.length);c++){var d=tO(a[c],
b[c]);if(null!=d)return c+(""===d?"":"."+d)}return null},hO=function(a,b,c){eO.call(this,a);this.data=b;this.h=c};t(hO,eO);hO.prototype.toString=function(){return"[Full update id: "+this.id+", version: "+this.g+", resource count: "+this.data.length+", sync type: "+this.h+"]"};var uO=function(){bL.apply(this,arguments)};t(uO,bL);uO.prototype.zd=function(a){return new YK("media_sessions/add",function(){var b=new nC;return Cl(b,4,a)},gD,function(b){return R(b,hC,4)})};uO.prototype.Ad=function(a){return new YK("media_sessions/modify",function(){var b=new ZG;return Cl(b,4,a)},aH,function(b){return R(b,hC,4)})};uO.prototype.Qd=function(){return null};var vO=function(){cL.apply(this,arguments)};t(vO,cL);k=vO.prototype;k.zd=function(a){return new YK("media_streams/add",function(){return MC(new LC,a)},nD,function(b){return R(b,zC,4)})};k.Ad=function(a){return new YK("media_streams/modify",function(){var b=new ND;return Cl(b,4,a)},PD,function(b){return R(b,zC,4)})};
k.Qd=function(a){if(!a.length)throw Error("Cannot create MediaStreamRemoveRequest with no stream identifiers.");return new YK("media_streams/remove",function(){return mH(N(lH(new kH,a[0].Vh()),2,2),a.map(function(b){return b.ek()}))},nH)};k.Pd=function(a){return new YK("media_streams/query",function(){var b=new hH;var c=a.sa();b=N(b,5,c);c=a.dk();b=N(b,2,c);c=a.Vh();b=N(b,3,c);c=a.ek();return N(b,4,c)},iH,function(b){return[b.Ia()]})};
k.te=function(a){return new YK("media_streams/search",function(){return OC(PC(QC(new NC,a.sa()),a.Vh()),a.dk())},pD,function(b){return R(b,zC,2)},{set:function(b,c){return TC(b,c)},get:function(b){return Q(b,pD,4)}})};var xO=new gL({Me:zC,Ke:[zC.prototype.sa,zC.prototype.Ou,zC.prototype.Pu],Le:[zC.prototype.gk,zC.prototype.fk,zC.prototype.hk],Se:[zC.prototype.Wh],Te:[zC.prototype.ik],Pe:LH,Ne:[LH.prototype.sa,LH.prototype.dk,LH.prototype.Vh],Oe:[LH.prototype.Nn,LH.prototype.Mu,LH.prototype.On],Qe:[LH.prototype.ek],Re:[LH.prototype.Nu],ju:wO});function wO(a){a.forEach(function(b){if(b=Q(b,BC,8))JC(b,L(b,1).map(yO)),R(b,DC,2).forEach(function(c){var d=L(c,2).map(yO);return N(c,2,d||[])})})}
var yO=function(a){return a>>>0};function zO(a,b,c,d,e,f,g){e=new e(hN(a,b));f=new qN(b.j,f);return new gO(new nL(a),Q(b.g,NL,13),c,d,e,f,b.l,g)};var AO=function(a,b,c){return zO(a,b,[c],new gL({Me:BB,Ke:[BB.prototype.sa],Le:[BB.prototype.Kn],Se:[],Te:[],Pe:xH,Ne:[xH.prototype.sa],Oe:[xH.prototype.l],Qe:[],Re:[]}),dL,"i","Hangout")},BO=function(a,b,c){return zO(a,b,[c],new gL({Me:pC,Ke:[pC.prototype.sa],Le:[pC.prototype.Ln],Se:[pC.prototype.Z,pC.prototype.Ba],Te:[pC.prototype.ck,pC.prototype.Mn],Pe:JD,Ne:[JD.prototype.sa],Oe:[JD.prototype.Ju],Qe:[JD.prototype.Z,JD.prototype.Ba],Re:[JD.prototype.Ku,JD.prototype.Lu]}),fL,"n","MediaSources")};function CO(a,b,c){var d=AO(a,b,"");return d.add(c).then(function(e){CN(d,e[0]);return d},function(e){Cs(d);throw e;})}function DO(a,b,c,d){function e(h){if(1==h.getResponseHeader().Ja())return h=h.sa(),AO(a,b,h);throw new oM("fatal","backend",null,h);}function f(){return nt(EO(a,b,c).then(e),function(h){if(Va()<g)return Cv(5E3).then(f);throw h;})}var g=0;void 0!==d&&(c=Jl(c),N(c,5,!0),g=Va()+d);return f()}
function EO(a,b,c){return uK(a,OK).then(function(d){return d.h}).then(function(d){return b.h.makeRequest("hangouts/resolve",Jl(c).setRequestHeader(eN(b,d)),dD)})};var FO=function(a){this.g=a.g;this.Ag=a.h};FO.prototype.ee=function(){return cc(this.g)};FO.prototype.toString=function(){return"RIDs(send="+this.Ag+", rids="+this.ee()+")"};var GO=function(){this.g=[];this.h=!0};GO.prototype.ja=function(){return new FO(this)};var HO=function(a,b){a.g=cc(b);return a};var IO=function(a,b){this.g=a;this.h=cc(b)};IO.prototype.toString=function(){return"SsrcGroup(semantics="+this.g+", ssrcs="+this.h+")"};IO.prototype.eb=function(){return cc(this.h)};var JO=function(a,b,c,d){this.g=a;this.h=b;this.width=c;this.height=d};JO.prototype.clone=function(){return new JO(this.g,this.h,this.width,this.height)};JO.prototype.toString=function(){return"("+this.g+", "+this.h+" - "+this.width+"w x "+this.height+"h)"};var KO=function(a,b){return a==b?!0:a&&b?a.g==b.g&&a.width==b.width&&a.h==b.h&&a.height==b.height:!1};JO.prototype.contains=function(a){return this.g<=a.g&&this.g+this.width>=a.g+a.width&&this.h<=a.h&&this.h+this.height>=a.h+a.height};
JO.prototype.ceil=function(){this.g=Math.ceil(this.g);this.h=Math.ceil(this.h);this.width=Math.ceil(this.width);this.height=Math.ceil(this.height);return this};JO.prototype.floor=function(){this.g=Math.floor(this.g);this.h=Math.floor(this.h);this.width=Math.floor(this.width);this.height=Math.floor(this.height);return this};JO.prototype.round=function(){this.g=Math.round(this.g);this.h=Math.round(this.h);this.width=Math.round(this.width);this.height=Math.round(this.height);return this};var NO=function(a,b,c,d,e,f,g){d=void 0===d?"un":d;e=void 0===e?"li":e;f=void 0===f?null:f;g=void 0===g?null:g;QM.call(this);this.j=a;this.Sa=b;this.Ka=c;this.g=d;this.h=e;this.l="sc"!==d;this.pd=null;LO(this,g);this.Ie=f;this.m=new qL(this);this.Cc=sL(this.m);MO(this)};t(NO,QM);var MO=function(a){a.m.W(a.Cc,{state:a.h,content:a.g})};NO.prototype.toString=function(){return"Source(id="+this.Sa+" type="+this.Ka+" content="+this.g+" state="+this.h+" participantId="+this.j+")"};NO.prototype.Z=function(){return this.j};
NO.prototype.getId=function(){return this.Sa};NO.prototype.getContent=function(){return this.g};var OO=function(a,b){a.g!=b&&(a.g=b,a.N("E"),MO(a))};NO.prototype.getState=function(){return this.h};var PO=function(a,b){a.h!=b&&(a.h=b,a.N("G"),MO(a))};NO.prototype.Zd=function(){return this.l};
var QO=function(a,b){a.l!=b&&(a.l=b,a.N("H"))},LO=function(a,b){var c=null!=a.pd&&0!=a.pd.length,d=null!=b&&0!=b.length;d?b=cc(b).sort(function(e,f){return e.g-f.g||e.h-f.h||e.width-f.width||e.height-f.height}):b=null;if(c=d!=c||d&&!mc(a.pd,b,KO))a.pd=b;return c};NO.prototype.N=function(a){return QM.prototype.N.call(this,a)};
var RO=function(a){return new NO(void 0===a.Zh?"":a.Zh,a.id,a.mediaType,void 0===a.content?"un":a.content,void 0===a.state?"li":a.state,void 0===a.io?null:a.io,void 0===a.lp?null:a.lp)};var SO=function(a){this.u=a.u;this.D=a.D;this.G=a.H;this.g=a.J;this.F=a.F;this.o=a.l;this.M=a.L;this.m=a.j;this.de=a.m;this.j=a.o;this.J=a.C;this.H=cc(a.h);this.h=a.G;this.C=cc(a.M);this.l=a.g};k=SO.prototype;
k.toString=function(){return"Stream(participantId="+this.D+", mediaType="+this.u+", sourceId="+this.G+", streamId="+this.g+", muted="+this.F+", downlinkPaused="+this.o+", uplinkPaused="+this.M+", croppable="+this.m+", mediaStreamId="+this.de+", mediaStreamTrackId="+this.j+", ssrcs="+this.H+", rids="+this.h+", ssrcGroups="+this.C+", adaptationFlags="+this.l+")"};k.ka=function(){return this.u};k.Z=function(){return this.D};k.Ba=function(){return this.G};k.qc=function(){return this.F};k.Zd=function(){return this.m};
k.eb=function(){return cc(this.H)};k.matches=function(a){return this.Z()==a.Z()&&this.ka()==a.ka()&&this.Ba()==a.Ba()&&this.g==a.g};var TO=function(a){this.u=(a=void 0===a?null:a)?a.u:null;this.D=a?a.D:"";this.H=a?a.G:null;this.J=a?a.g:null;this.F=a?a.F:!1;this.l=a?a.o:!1;this.L=a?a.M:!1;this.j=a?a.m:!0;this.m=a?a.de:null;this.o=a?a.j:null;this.C=a?a.J:null;this.h=a?cc(a.H):[];this.G=a?a.h:null;this.M=a?cc(a.C):[];this.g=a?a.l:0};TO.prototype.ja=function(){return new SO(this)};
var UO=function(a,b){a.u=b;return a},VO=function(a,b){a.D=b;return a},WO=function(a,b){a.H=b;return a},XO=function(a,b){a.J=b;return a},YO=function(a,b){a.F=b;return a},ZO=function(a,b){a.l=b;return a},$O=function(a,b){a.L=b;return a},aP=function(a,b){a.j=b;return a},bP=function(a,b){a.m=b;return a},cP=function(a,b){a.o=b;return a},dP=function(a,b){a.C=b;return a},eP=function(a,b){a.h=cc(b);return a},fP=function(a,b){a.h.push(b);return a};TO.prototype.eb=function(){return cc(this.h)};
var gP=function(a,b){a.G=b;return a},hP=function(a,b){a.M=cc(b);return a},iP=function(a,b){a.g=b;return a};var jP=function(a){QM.call(this);this.g=a;a.F=this;this.T(a);this.h="nr"};t(jP,QM);k=jP.prototype;k.za=function(){return{config:this.pn(),muted:this.Sb(),state:kP(this)}};k.ka=function(){return this.g.Ka};k.Sb=function(){return"mu"==this.g.getState()};k.tj=function(){return!1};k.pn=function(){return null};
var kP=function(a){switch(a.h){case "re":return chrome.i18n.getMessage("6950033741572394811");case "nr":return chrome.i18n.getMessage("8757444822404164848");case "nd":return chrome.i18n.getMessage("4782049665629043191");case "ad":return chrome.i18n.getMessage("2100823569845184829");case "fa":return chrome.i18n.getMessage("99290588561553105");case "st":return chrome.i18n.getMessage("7017840133230118615")}return""};
jP.prototype.u=function(a){if(a!==this.h){var b=this.Sb();this.h=a;this.N("M");b!==this.Sb()&&this.N("L")}};jP.prototype.ab=function(){};jP.prototype.Da=function(){};var lP=function(a){this.g=a.g;this.h=a.h;this.j=a.j};lP.prototype.toString=function(){return"BandwidthConstraints(minBandwidthKbps="+(this.h+", maxBandwidthKbps=")+(this.g+", startBandwidthKbps=")+this.j};var mP=function(){this.j=this.h=this.g=-1};mP.prototype.ja=function(){return new lP(this)};var nP=function(a,b,c,d,e,f,g,h,m,q,r){this.g=a;this.o=b;this.h=c;this.m=d;this.l=e;this.C=f;this.u=g;this.j=h;this.F=m;this.D=void 0===q?null:q;this.G=void 0===r?null:r},oP=function(a,b){return a==b?!0:a&&b?a.g===b.g&&a.o===b.o&&a.h===b.h&&a.m===b.m&&a.l===b.l&&a.C===b.C&&a.u===b.u&&a.j===b.j&&a.F===b.F&&a.D===b.D&&a.G===b.G:!1};
nP.prototype.toString=function(){return"Candidate(component="+this.g+", priority="+this.o+", type="+(this.h+", protocol="+this.m+", ip="+this.l+", port=")+(this.C+", foundation="+this.u+", generation=")+(this.j+", network="+this.F+", relatedIp=")+(this.D+", relatedPort="+this.G+")")};nP.prototype.la=function(){return new nP(this.g,this.o,this.h,this.m,this.l,this.C,this.u,this.j,this.F,this.D,this.G)};nP.prototype.Cb=function(){return this.C};nP.prototype.pi=function(a){var b=this.la();b.C=a;return b};var qP=function(a){this.l=a.m;this.Hd=a.u;this.C=a.o;this.j=a.C;this.h=a.h;this.g=a.g;this.m=a.l;this.Gd=Object.freeze(pP(a.j))};qP.prototype.toString=function(){return"Codec(name="+this.C+", mediaType="+this.l+", payloadType="+this.Hd+", bitrate="+this.j+", clockrate="+this.h+", channels="+this.g+", audioNack="+this.m+", params="+Fs(this.Gd)+")"};qP.prototype.ka=function(){return this.l};qP.prototype.getName=function(){return this.C};var rP=function(a,b){return 0==od(a.getName(),b)};
qP.prototype.clone=function(){return(new sP(this)).ja()};var sP=function(a){this.m=(a=void 0===a?null:a)&&a.l;this.u=a&&a.Hd;this.o=a&&a.C;this.C=a&&a.j;this.h=a&&a.h;this.g=a&&a.g;this.l=a&&a.m;this.j=pP(a?a.Gd:{})};sP.prototype.ja=function(){return new qP(this)};var tP=function(a){var b=new sP;b.m=a;return b},uP=function(a,b){a.u=b;return a};sP.prototype.bf=function(a){this.o=a;return this};var vP=function(a,b,c){a.j[b]=c;return a};function pP(a){return Object.assign(Object.create(null),a)};var wP=function(a){this.g=a.j;this.j=a.g;this.l=a.h;this.h=a.l};wP.prototype.toString=function(){return"Crypto(suite="+this.g+", keyParams=<redacted>, sessionParams_="+(null!=this.l?"<redacted>":null)+", tag="+this.h+")"};var xP=function(){var a;this.j=(a=void 0===a?null:a)?a.g:null;this.g=a?a.j:null;this.h=a?a.l:null;this.l=a?a.h:null};xP.prototype.ja=function(){return new wP(this)};var yP=function(a,b,c,d){this.h=a;this.l=b;this.g=c;this.j=d};yP.prototype.toString=function(){return"DataChannelDescriptor(label="+this.j+" id="+this.h+", SSRC="+(this.g+", format="+this.l+")")};yP.prototype.getChannelId=function(){return this.h};yP.prototype.Be=function(){return this.j};yP.prototype.equals=function(a){return null==a?!1:this.h==a.h&&this.j==a.j&&this.g==a.g};var zP=function(a,b,c){this.id=a;this.uri=b;this.mediaType=void 0===c?null:c};zP.prototype.toString=function(){return"RtpHeaderExtension(uri="+this.uri+", id="+this.id+", mediaType="+this.mediaType+")"};var AP=function(a){this.l=a.j;this.j=a.h;this.h=a.l;this.g=a.g};AP.prototype.za=function(){return{port:this.Cb(),name:this.getName(),messagesize:this.h,numstreams:this.g}};AP.prototype.Cb=function(){return this.l};AP.prototype.getName=function(){return this.j};var BP=function(){var a;this.j=(a=void 0===a?null:a)?a.l:null;this.h=a?a.j:null;this.l=a?a.h:null;this.g=a?a.g:null};BP.prototype.ja=function(){return new AP(this)};BP.prototype.pi=function(a){this.j=a;return this};
BP.prototype.bf=function(a){this.h=a;return this};var CP=function(a,b){a.g=b;return a};var DP=function(a){this.o=a.l;this.F=a.o;this.m=a.j;this.g=a.g&&a.g.clone();this.j=a.h;this.h=a.C;this.u=a.m;this.C=a.D;this.D=a.u.slice();this.l=a.F};k=DP.prototype;k.toString=function(){return"StreamRequest(participantId: "+this.o+", sourceId: "+this.F+", mediaType: "+this.m+", resolution: "+(this.g&&this.g.width+"x"+this.g.height)+", frameRate: "+this.j+", adaptationReason: "+this.C+", send: "+this.h+", ssrcs: "+this.D+", streamId: "+this.l+")"};k.Z=function(){return this.o};k.ka=function(){return this.m};
k.Ba=function(){return this.F};k.yc=function(){return this.g&&this.g.clone()};k.eb=function(){return this.D};k.matches=function(a){return this.Z()==a.Z()&&EP(this,a)};var EP=function(a,b){return a.ka()==b.ka()&&a.Ba()==b.Ba()},FP=function(a){this.l=(a=void 0===a?null:a)?a.o:"";this.o=a?a.F:"";this.j=a&&a.m;this.g=a&&a.g&&a.g.clone();this.h=a&&a.j;this.C=null===a?!0:a.h;this.m=a&&a.u;this.D=a&&a.C||0;this.u=a&&a.D||[];this.F=a&&a.l||null};FP.prototype.ja=function(){return new DP(this)};
var GP=function(a,b){a.j=b;return a},HP=function(a,b){a.u=b;return a},IP=function(a,b){a.F=b;return a},JP=function(a,b){a.o=b;return a},KP=function(a,b){a.m=b;return a},LP=function(a,b){a.C=b;return a},MP=function(a,b){a.g=new dg(b.width,b.height);return a},NP=function(a,b){a.h=b;return a},OP=function(a){var b=new dg(0,0),c=Math.min;null!==a.g&&(b=new dg(c(a.g.width,b.width),c(a.g.height,b.height)));return MP(a,b)},PP=function(a){a.h=Math.min(a.h||Infinity,0);return a};var QP=function(a,b,c,d){this.h=a;this.m=b;this.D=c;this.cd=void 0===d?null:d;this.g=null;this.u=[];this.C="";this.Td=[];this.F=this.o=!0;this.j=[];this.l=null},TP=function(a,b){return a===b?!0:a&&b?a.h===b.h&&mc(RP(a),RP(b),function(c,d){return c===d?!0:c&&d?c.l===d.l&&c.Hd===d.Hd&&c.C===d.C&&c.j===d.j&&c.h===d.h&&c.g===d.g:!1})&&mc(SP(a),SP(b),function(c,d){return c===d?!0:c&&d?c.uri===d.uri&&c.id===d.id&&c.mediaType===d.mediaType:!1}):!1};
QP.prototype.za=function(){var a=this.g?this.g.za():{};return{type:this.h,mediaId:UP(this),bandwidthConstraints:String(this.Ae()),codecs:RP(this),streams:VP(this),sctpSettings:a,rtpHeaderExtensions:SP(this),defaultRequests:this.Tc().map(String),send:this.o,receive:this.F,virtualSsrcs:cc(this.j),loudestCsrc:this.l}};QP.prototype.la=function(){var a=new QP(this.h,this.m,this.D,this.cd);a.g=this.g;a.u=this.u;a.C=this.C;a.Td=this.Td;a.o=this.o;a.F=this.F;a.j=this.j;a.l=this.l;return a};
var RP=function(a){return cc(a.m)},WP=function(a,b){a=a.la();a.m=b;return a},XP=function(a,b){a=a.la();a.g=b;return a},SP=function(a){return cc(a.D)},YP=function(a,b){a=a.la();a.D=b;return a},VP=function(a){return cc(a.u)},ZP=function(a,b){a=a.la();a.u=b;return a},UP=function(a){if(a.C)return a.C;switch(a.h){case "a":return"audio";case "v":return"video";case "d":return"data";default:return Eb("No default media ID for unknown type: "+a.h),""}},$P=function(a,b){a=a.la();a.C=b;return a};
QP.prototype.Tc=function(){return cc(this.Td)};QP.prototype.Of=function(a){var b=this.la();b.Td=a;return b};QP.prototype.dl=function(a){var b=this.la();b.cd=a;return b};QP.prototype.Ae=function(){return this.cd};
var aQ=function(a,b){a=a.la();a.o=b;return a},bQ=function(a,b){a=a.la();a.F=b;return a},cQ=function(a,b){a=a.la();a.j=b;return a},dQ=function(a,b){a=a.la();a.l=b;return a},eQ=function(a){return 0<a.j.length?a.j.map(function(b){return eP(bP(XO(WO(UO(new TO,"a"),b.toString()),b.toString()),b.toString()),[b]).ja()}):VP(a)},gQ=function(a,b,c){var d=new Set(c.map(fQ));c=VP(a);ac(c,function(e){return d.has(e.g)});return ZP(a,c.concat(b))},iQ=function(a){return hQ(a,function(b){return rP(b,"CN")})},hQ=function(a,
b){return WP(a,a.m.filter(vc(b)))},kQ=function(a,b){var c=void 0===c?sc:c;return jQ(a,function(d){return rP(d,b)},c)},jQ=function(a,b,c){c=void 0===c?sc:c;b=Qb(a.m,b);if(-1==b)return a;var d=RP(a);c=c(d[b]);Yb(d,b);Wb(d,0,0,c);return WP(a,d)},lQ=function(a,b){if(null===b)return a;var c=a.la(),d=b.cd?b.cd.g:null;if(d){null==d&&(d=-1);c=c.la();var e=new mP;e.g=d;c.cd=e.ja()}d=RP(b);0==d.length||(c=WP(c,d));(d=b.g)&&(c=XP(c,d));d=SP(b);0==d.length||(c=YP(c,d));d=b.Tc();0==d.length||(c=c.Of(d));a=VP(a);
b=VP(b);d=fQ;a=nc(a,d);Object.assign(a,nc(b,d));b=Object.values(a);return ZP(c,b)},fQ=function(a){return a.g};var mQ=function(a,b,c,d,e,f){e=void 0===e?[]:e;this.m=a;this.j=b;this.h=c;this.g=void 0===d?null:d;this.C=null;this.l=e;this.o=void 0===f?"full":f},nQ=function(a,b){return a===b?!0:a&&b?a.m===b.m&&a.j===b.j&&a.h===b.h&&a.g===b.g&&mc(cc(a.l),cc(b.l),function(c,d){return oP(c,d)}):!1};mQ.prototype.za=function(){return{version:this.ac(),ufrag:this.j,pwd:this.h,fingerprint:this.g,dtlsRole:this.C,candidates:cc(this.l).toString(),mode:this.o}};
mQ.prototype.la=function(){var a=new mQ(this.m,this.j,this.h,this.g,this.l,this.o);a.C=this.C;return a};mQ.prototype.ac=function(){return this.m};var oQ=function(a,b){a=a.la();a.C=b;return a};var pQ=function(a,b,c,d,e,f,g){var h=this;f=void 0===f?null:f;g=void 0===g?null:g;this.wa=void 0===a?null:a;this.qa=void 0===b?null:b;this.Wa=void 0===c?null:c;this.j=void 0===d?null:d;this.l=new Map;((void 0===e?null:e)||[]).forEach(function(m){h.l.set(m.Be(),m)});this.g=f;this.h=g||[]},rQ=function(a,b){var c=a.qa;if(!c)return a;b=RP(c).filter(b);var d=b.map(function(e){return e.Hd.toString()});b=b.filter(function(e){return!rP(e,"rtx")||d.includes("apt"in e.Gd?e.Gd.apt:null)});return qQ(a,WP(c,b))},
sQ=function(a,b){return a===b?!0:a&&b?TP(a.wa,b.wa)&&TP(a.qa,b.qa)&&nQ(a.g,b.g)&&mc(cc(a.h),cc(b.h),function(c,d){return c===d?!0:c&&d?c.g===d.g&&c.j===d.j&&c.l===d.l&&c.h===d.h:!1}):!1};pQ.prototype.za=function(){return{sessionId:this.j,audio:this.wa&&this.wa.za(),video:this.qa&&this.qa.za(),data:this.Wa&&this.Wa.za(),pushChannels:tQ(this)&&tQ(this).toString(),transport:this.g&&this.g.za(),cryptos:cc(this.h)}};
pQ.prototype.la=function(){var a=new pQ(this.wa,this.qa,this.Wa,this.j,[],this.g,this.h);a.l=new Map(this.l);return a};
var uQ=function(a,b){a=a.la();a.wa=b;return a},qQ=function(a,b){a=a.la();a.qa=b;return a},vQ=function(a,b){a=a.la();a.Wa=b;return a},wQ=function(a,b){a=a.la();a.g=b;return a},tQ=function(a){return[].concat(p(a.l.values()))},xQ=function(a,b){a=a.la();a.h=b;return a},zQ=function(a,b,c){a=a.la();a.wa=yQ(a.wa,b,c);a.qa=yQ(a.qa,b,c);a.Wa=yQ(a.Wa,b,c);return a},yQ=function(a,b,c){if(!a)return null;b=b.filter(function(d){return d.ka()==a.h});c=c.filter(function(d){return d.ka()==a.h});return gQ(a,b,c)};var AQ=Zf("realtime.media.mesi.MesiProtoConverter"),BQ=function(){};BQ.prototype.C=function(a){var b=new uC;N(b,1,a.g);N(b,2,a.h);N(b,3,a.width);N(b,4,a.height);return b};BQ.prototype.D=function(a){var b=rl(a,1),c=rl(a,2),d=rl(a,3);a=rl(a,4);return null==b||null==c||null==d||null==a?null:new JO(b,c,d,a)};
var EQ=function(a,b,c,d,e,f,g,h){d=void 0===d?null:d;g=void 0===g?!1:g;h=void 0===h?null:h;e=new hC;null!=b.j&&e.u(b.j);N(e,7,1);d=d||[];null!=c&&lC(e,[c]);d=d.concat(b.wa.Tc());c=b.qa;null!=c&&(d=d.concat(c.Tc()));c=CQ([b.wa,b.qa,b.Wa]);a=DQ(a,c,d,b.g,cc(b.h));N(a,1,4);kC(e,[a]);b=tQ(b).map(function(m){var q=new fC,r=m.getChannelId();N(q,1,r);N(q,2,m.l);r=m.Be();N(q,4,r);switch(r){case "collections":N(q,5,1)}m=m.g;null!=m&&N(q,3,m);return q});Cl(e,5,b);f&&N(e,14,1);g&&N(e,15,2);null!=h&&S(e,17,h);
return e},JQ=function(a,b){var c=null,d=null,e=null,f=null,g=[],h=b.l(),m=R(b,eC,4);if(0<m.length){m=m[0];e=FQ(a,m);c=cQ(GQ(e,"a"),L(b,10));L(b,12)&&0!==L(b,12)&&(c=dQ(c,L(b,12)));d=GQ(e,"v");e=GQ(e,"d");var q=Q(m,bC,2);q&&(f=HQ(a,q));(m=R(m,VB,4))&&(g=IQ(m,a.Eu,a)||[])}a=R(b,fC,5).map(function(r){return new yP(r.getChannelId(),L(r,2),L(r,3),r.Be())},a);return new pQ(c,d,e,null==h?void 0:h,a,f,g)},GQ=function(a,b){var c=RP(a).filter(function(f){return f.ka()==b}),d="d"==b?a.g:null;if(0==c.length&&
null==d)return null;var e=SP(a).filter(function(f){return f.mediaType==b});a=a.Tc().filter(function(f){return f.ka()==b});return XP((new QP(b,c,e)).Of(a),d)},DQ=function(a,b,c,d,e){var f=new eC,g=KQ(b.h)||void 0;N(f,1,g);g=RP(b).map(a.jr,a);Cl(f,3,g);e=e.map(a.Zl,a);Cl(f,4,e);e=SP(b).map(a.kr,a);Cl(f,5,e);if(null!=d){e=new bC;a:{g=d.ac();switch(g){case "GICE":g=1;break a;case "ICE":g=2;break a}C(AQ,"Unknown ICE version: "+g);g=void 0}N(e,1,g);N(e,4,d.j);N(e,5,d.h);g=cc(d.l).map(a.h,a);Cl(e,6,g);var h=
d.g;h&&(g=new cC,h=h.split(" "),N(g,1,h[0]),N(g,2,h[1]),S(e,2,g));switch(d.C){case "actpass":var m=3;break;case "passive":m=2;break;case "active":m=1}m&&N(e,7,m);S(f,2,e)}b.g&&(d=b.g.getName(),N(f,8,d));if(b=b.Ae())d=new NB,-1!=b.h&&N(d,1,b.h),-1!=b.g&&N(d,2,b.g),-1!==b.j&&N(d,3,b.j),S(f,7,d);a=c.map(a.j,a);Cl(f,6,a);return f};
BQ.prototype.j=function(a){var b=new XB;N(b,2,a.h);var c=new OB;N(c,1,a.g&&a.g.height);N(c,2,a.g&&a.g.width);N(c,3,a.j);S(b,3,c);c=new YB;S(c,2,b);a=KQ(a.ka())||void 0;N(c,1,a);return c};
var CQ=function(a){for(var b=[],c=[],d=[],e=null,f=null,g=0;g<a.length;g++)null!=a[g]&&(b=b.concat(RP(a[g])),c=c.concat(SP(a[g])),d=d.concat(a[g].Tc()),!e&&a[g].g&&(e=a[g].g),!f&&a[g].Ae()&&(f=a[g].Ae()));return XP(YP(WP(a[0],b),c).Of(d).dl(f),e)},FQ=function(a,b){var c=LQ(b.ka());if(null==c)return null;var d=IQ(R(b,QB,3),a.Du,a)||[],e=IQ(R(b,ZB,5),x(function(g){var h=L(g,2)||"",m=g.getId(),q=LQ(g.ka(),c||void 0);null==h||null==m?(C(AQ,"Missing RTP header extension id or uri: "+g),g=null):g=new zP(m,
h,q);return g},a))||[],f=[];R(b,YB,6).forEach(function(g){var h=LQ(g.ka());null!=h&&(h=GP(new FP,h),g=MQ(h,Q(g,XB,2)),f.push(g))},a);a=null;(b=L(b,8))&&(a=CP((new BP).bf(b).pi(5E3),256).ja());return XP((new QP(c,d,e)).Of(f),a)},KQ=function(a){switch(a){case "a":return 1;case "v":return 2;case "d":return 3}C(AQ,"Unknown media type: "+a)},LQ=function(a,b){b=void 0===b?null:b;switch(a){case 1:return"a";case 2:return"v";case 3:return"d";case 4:return"a"}C(AQ,"Unknown media type: "+a);return b};k=BQ.prototype;
k.jr=function(a){var b=new QB;TB(b,KQ(a.ka()));N(b,1,a.Hd);SB(b,a.getName());UB(b,Object.entries(a.Gd).map(function(d){var e=n(d);d=e.next().value;e=e.next().value;var f=new RB;N(f,1,d);N(f,2,e);return f}));var c=a.j;N(b,5,null==c?0:c);N(b,6,a.h);N(b,7,a.g);N(b,9,a.m);return b};
k.Du=function(a){var b=LQ(a.ka()),c=L(a,1),d=a.getName();if(null==b||null==c||null==d)return C(AQ,"Bad codec: "+a),null;var e=uP(tP(b),c).bf(d);b=L(a,5);null!=b&&(e.C=b);b=L(a,6);null!=b&&(e.h=b);b=L(a,7);null!=b&&(e.g=b);b=sl(a,9);null!=b&&(e.l=b);R(a,RB,8).forEach(function(f){var g=L(f,1)||"";f=L(f,2)||"";vP(e,g,f)});return e.ja()};
k.Zl=function(a){a:{var b=a.g;switch(b){case "AES_CM_128_HMAC_SHA1_32":b=2;break a;case "AES_CM_128_HMAC_SHA1_80":b=1;break a}C(AQ,"Unknown crypto suite: "+b);b=null}if(null==b)return C(AQ,"Unknown crypto suite: "+a.g),null;var c=new VB;N(c,1,b);N(c,2,a.j);N(c,3,a.l||void 0);N(c,4,a.h);return c};
k.Eu=function(a){a:{var b=L(a,1);switch(b){case 2:b="AES_CM_128_HMAC_SHA1_32";break a;case 1:b="AES_CM_128_HMAC_SHA1_80";break a}C(AQ,"Unknown crypto suite: "+b);b=null}if(null==b)return C(AQ,"Unknown crypto suite: "+L(a,1)),null;var c=L(a,2),d=L(a,3),e=L(a,4);if(null==c||null==e)return C(AQ,"Bad crypto: "+a),null;a=new xP;a.j=b;a.g=c;a.l=e;d&&(a.h=d);return a.ja()};k.kr=function(a){var b=a.id,c=a.uri;a=a.mediaType;var d=new ZB;c=N(d,2,c);b=N(c,1,b);a=KQ(a);return N(b,3,a)};
var HQ=function(a,b){a:{var c=L(b,1);switch(c){case 1:c="GICE";break a;case 2:c="ICE";break a}C(AQ,"Unknown ICE version: "+c);c=null}if(null==c)return null;var d="ICE"===c?"lite":"full",e=L(b,4)||"",f=L(b,5)||"",g=R(b,$B,6);a=IQ(g,a.m,a)||[];g=Q(b,cC,2);var h;g&&(h=L(g,1)+" "+L(g,2));h=new mQ(c,e,f,h,a,d);switch(L(b,7)){case 1:h=oQ(h,"active");break;case 2:h=oQ(h,"passive");break;case 3:Eb("Received unexpected ACTPASS dtls role.")}return h};
BQ.prototype.h=function(a){var b=new $B;a:{var c=a.g;switch(c){case 1:c=1;break a;case 2:c=2;break a}C(AQ,"Unknown ICE component: "+c);c=void 0}N(b,1,c);a:{c=a.m;switch(c){case "UDP":c=1;break a;case "TCP":c=2;break a;case "SSLTCP":c=3;break a}C(AQ,"Unknown candidate protocol: "+c);c=void 0}N(b,2,c);N(b,3,a.l);c=a.Cb();N(b,4,c);c=NQ(a.h);N(b,5,c);N(b,6,a.o);N(b,7,a.F);N(b,8,a.j);return b};
BQ.prototype.m=function(a){a:{var b=L(a,1);switch(b){case 1:b=1;break a;case 2:b=2;break a}C(AQ,"Unknown ICE component: "+b);b=null}var c=L(a,6);null==c&&(c=0);var d=OQ(L(a,5)),e=PQ(L(a,2)),f=L(a,3),g=a.Cb();if(!(b&&d&&e&&f&&g))return C(AQ,"Missing or unknown candidate parmeters: "+a),null;var h=c.toString(),m=L(a,7)||"";a=L(a,8)||0;return new nP(b,c,d,e,f,g,h,a,m)};
var PQ=function(a){switch(a){case 1:return"UDP";case 2:return"TCP";case 3:return"SSLTCP"}C(AQ,"Unknown candidate protocol: "+a);return null},NQ=function(a){switch(a){case "LOCAL":return 1;case "PEER_REFLEX":return 2;case "STUN":return 3;case "RELAY":return 4}C(AQ,"Unknown candidate type: "+a)},OQ=function(a){switch(a){case 1:return"LOCAL";case 2:return"PEER_REFLEX";case 3:return"STUN";case 4:return"RELAY"}C(AQ,"Unknown ICE type: "+a);return null},QQ=function(a,b,c,d){var e=new zC;e.fk(2);null!=b&&
e.hk(b);e.gk(c);b=d.Z()||null;N(e,6,b);b=KQ(d.ka());N(e,2,b);b=d.Ba();N(e,7,b);e.ik(d.g);"v"==d.ka()&&N(e,11,d.Zd());b=new EC;c=d.qc();N(b,1,c);S(e,10,b);b=new HC;b.setPaused(d.o);S(e,14,b);b=new IC;b.setPaused(d.M);S(e,15,b);b=new BC;JC(b,d.eb());d.h&&(c=d.h.ee(),N(b,3,c||[]));a=cc(d.C).map(a.l,a);Cl(b,2,a);S(e,8,b);return e},SQ=function(a){var b=RQ;return IQ(a,b.u,b)||[]};
BQ.prototype.u=function(a){var b=LQ(a.ka());if(null==b)return C(AQ,"Unknown stream media type: "+a),null;var c=a.Z(),d=a.Ba(),e=a.Wh();if(null==c||null==d||null==e)return C(AQ,"Missing stream parmeters: "+a),null;var f=Q(a,EC,10);f=!(!f||!f.qc());var g=Q(a,HC,14);g=!(!g||!sl(g,1));var h=Q(a,IC,15);h=!(!h||!sl(h,1));var m=null!=L(a,11)?!!sl(a,11):!0,q=[],r=[],u=[],A=null,z=Q(a,BC,8);null!=z&&(q=IQ(L(z,1),this.g,this)||[],r=IQ(R(z,DC,2),this.o,this)||[],u=L(z,3),A=L(z,4));z=null;0<u.length&&(z=HO(new GO,
u).ja());var H=cP(bP(gP(hP(eP(aP($O(ZO(YO(dP(XO(WO(VO(UO(new TO,b),c),d),e),A),f),g),h),m),q),r),z),e),e);a=Q(a,GC,13);(a&&L(a,1)||[]).forEach(function(O){if(O=TQ.get(O))H.g|=O});return H.ja()};BQ.prototype.g=function(a){return a>>>0};var UQ=function(a){return a>>>0};BQ.prototype.l=function(a){var b=new DC;b=N(b,1,a.g);a=a.eb();return N(b,2,a||[])};BQ.prototype.o=function(a){var b=IQ(L(a,2),this.g)||[],c=L(a,1);return null==c?(C(AQ,"Unknown ssrc group semantics: "+a),null):new IO(c,b)};
var VQ=function(a){var b=RQ;return IQ(a,b.F,b)||[]};BQ.prototype.F=function(a){var b=LQ(a.ka());if(null==b)return C(AQ,"Unknown stream request media type: "+a),null;var c=a.Z(),d=a.Ba();if(null==c||null==d)return C(AQ,"Missing stream request parmeters: "+a),null;var e=IP(new FP,a.Wh());e.l=c;b=JP(GP(e,b),d);c=Q(a,BC,8);null!=c&&HP(b,IQ(L(c,1),this.g,this)||[]);return MQ(b,Q(a,XB,9))};
var MQ=function(a,b){if(b&&sl(b,2)){LP(a,!0);var c=L(b,5);c.length&&HP(a,c.map(UQ));if(b=b.yc())(c=L(b,3))&&NP(a,c),c=L(b,2),b=L(b,1),c&&b&&MP(a,new dg(c,b))}else LP(a,!1);return a.ja()},IQ=function(a,b,c){if(null==a||!Array.isArray(a))return null;for(var d=[],e=0;e<a.length;e++){var f=a[e];if(null==f)return C(AQ,"Failed to parse: "+a),null;var g=b.call(c,f);if(null==g)return C(AQ,"Failed to parse: "+f),null;d.push(g)}return d},TQ=new Map([[1,1],[2,2],[3,4],[4,8]]);var XQ=function(a){W.call(this);this.j=a;this.g=null;this.h=[];this.m=this.o=!1;this.G=new BQ;this.u=this.F=null;WQ(this)};t(XQ,W);XQ.prototype.ba=function(){this.h=[];this.g=null;W.prototype.ba.call(this)};var ZQ=function(a){var b=a.g,c=a.h[a.h.length-1]||null;a.h.forEach(function(d){"sc"==d.g.getContent()&&(c=d)});b!=c&&(a.g=c,YQ(a))};XQ.prototype.D=function(a){var b=this.g;ZQ(this);b&&b==this.g&&a.target==b.g&&YQ(this)};
var YQ=function(a){a.C()||null===a.u||(a.m?a.o=!0:(a.o=!1,a.m=!0,gt([a.j.hb,a.j.ha,a.j.We]).then(function(b){var c=b[1],d=b[2];if(null!=this.g){var e=this.G;var f=b[0],g=this.g.g;b=new pC;b.Ln(f);b.ck(g.Z());b.Mn(g.getId());f=KQ(g.Ka);N(b,4,f);f="mu"==g.getState();var h=new qC;S(b,5,h);h=Q(b,qC,5);N(h,1,f);if("a"==g.Ka)null!=g.Ie&&(e=new vC,N(e,2,g.Ie),g=g.Z(),N(e,1,g),S(b,8,e));else if("v"==g.Ka){f=new tC;S(b,7,f);f=Q(b,tC,7);a:{h=g.getContent();switch(h){case "ca":h=1;break a;case "sc":h=2;break a}C(AQ,
"Unknown media content: "+h);h=void 0}N(f,1,h);f=g.pd&&cc(g.pd);null!=f&&(g=Q(b,tC,7),e=f.map(e.C,e),Cl(g,3,e))}this.F=e=b.ck(c)}else this.F&&(e=this.F,c=Q(e,qC,5),N(c,1,!0));e?d.add(e).then(this.l,this.l,this):this.l()},a.l,a)))},WQ=function(a){mt(a.j.onConnect.then(),function(){a.j.hb.then(function(b){a.u!==b&&(a.u=b,YQ(a))})})};XQ.prototype.l=function(){this.m=!1;this.o&&YQ(this)};var $Q=function(a){a=void 0===a?!1:a;QM.call(this);this.m=a;this.g=new Set;this.h=new qL(this);this.l=sL(this.h);this.h.W(this.l,null);this.j=sL(this.h);this.h.W(this.j,null)};t($Q,QM);$Q.prototype.add=function(a,b){b=void 0===b?!0:b;if(null!=aR(this,a.Ka,a.getId(),a.Z()))return!1;this.g.add(a);b&&(a.F=this);this.N(new bR("O",a));cR(this,a.Ka);return!0};$Q.prototype.remove=function(a){return this.g.delete(a)?(a.F==this&&(a.F=null),this.N(new bR("P",a)),cR(this,a.Ka),!0):!1};
var aR=function(a,b,c,d){for(var e=n(a.g),f=e.next();!f.done;f=e.next()){f=f.value;var g=f.Ka==b,h=null==c||f.getId()==c,m=null==d||a.m&&""===d||f.Z()==d;!m&&a.m&&""==f.Z()&&(Eb("Should never allow Source matching against empty participantId"),m=!0);if(g&&h&&m)return f}return null},cR=function(a,b){var c="v"===b?a.l:"a"===b?a.j:null;if(c){for(var d=n(a.g),e=d.next();!e.done;e=d.next())if(e=e.value,e.Ka===b){a.h.W(c,e);return}a.h.W(c,null)}},bR=function(a,b){U.call(this,a);this.source=b};t(bR,U);var dR=function(){QM.apply(this,arguments)};t(dR,QM);var eR=function(a,b,c){U.call(this,a);this.ha=b;this.Pk=c};t(eR,U);var fR=function(){dR.apply(this,arguments)};t(fR,dR);var gR=function(a){U.call(this,"W");this.lb=a};t(gR,U);var hR=function(a){U.call(this,"X");this.sessionId=a};t(hR,U);var iR=function(a){U.call(this,"S");this.id=a};t(iR,U);var jR=function(a){U.call(this,"T");this.sessionDescription=a};t(jR,U);var kR=function(a,b,c){c=void 0===c?null:c;U.call(this,"ba");this.Ml=a;this.ho=b;this.sessionId=c};t(kR,U);var lR=function(){U.call(this,"Y")};t(lR,U);var mR=function(a,b){U.call(this,"V");this.g=a;this.sessionId=b};t(mR,U);
var nR=function(a){U.call(this,"U");this.sessionId=a};t(nR,U);var oR=function(a,b,c,d){d=void 0===d?1:d;QM.call(this);this.u=a;this.D=b;this.h=c;this.l=d};t(oR,QM);oR.prototype.Z=function(){return this.u};oR.prototype.Ba=function(){return this.D};oR.prototype.getState=function(){return this.l};var pR=function(a,b){b!=a.l&&(a.l=b,a.N("ca"))};oR.prototype.getInfo=function(){return this.h};var qR={lC:"INITIAL",rI:"STARTING",qI:"STARTED",rC:"INPROGRESS",PAUSED:"PAUSED",STOPPED:"STOPPED",FINISHED:"FINISHED"},rR=function(a,b,c){U.call(this,"da");this.state=a;this.Mb=b;this.g=c};t(rR,U);var sR=Date.now,tR=performance&&performance.timeOrigin&&performance.now?function(){return Math.floor(performance.timeOrigin+performance.now())}:Date.now,uR=function(a){this.g=a},X=function(){return new uR(sR!=Date.now?Date.now():tR())},vR=function(a,b){return new uR(a.g+b)},wR=function(a,b){return a.g-b.g};uR.prototype.toString=function(){return this.g+"ms"};var xR=new uR(-Infinity),yR=new uR(Infinity);var zR=function(a){a=void 0===a?null:a;this.g=new Map;this.h=a&&a.slice()},AR=function(a,b,c){c=void 0===c?X().g:c;!a.g.has(b)&&0<c&&a.g.set(b,c)},BR=function(a){var b=[];a.g.forEach(function(c,d){return b.push(ZJ(YJ(new XJ,d),c))});return cK(bK(b),a.h&&a.h.slice())};var CR=new Set;function DR(a){CR.add(a);return new ER(a)}var ER=function(a){this.key=a;this.value=null};ER.prototype.isDefined=function(){return null!==this.value};
var GR=function(a){if(!a.isDefined())return!1;var b=a.value.toLowerCase();return"true"!==b&&"false"!==b?(FR(a,"Expected true/false, but was "+a.value+"."),!1):"true"===b},HR=function(a,b){if(!a.isDefined())return b;var c=Number(a.value);return isNaN(c)||""===a.value?(FR(a,"Expected a number, but was "+c+"."),b):c},FR=function(a,b){IR?IR(a.key,b):(a="Flag "+a.key+": "+b,Eb(a),Is(Error(a)))},IR=null;var JR={zL:!0},KR=function(){throw Error("Do not instantiate directly");};KR.prototype.em=null;KR.prototype.getContent=function(){return this.content};KR.prototype.toString=function(){return this.content};var LR=function(){KR.call(this)};B(LR,KR);LR.prototype.fm=JR;var MR=function(a){function b(c){this.content=c}b.prototype=a.prototype;return function(c,d){c=new b(String(c));void 0!==d&&(c.em=d);return c}}(LR),NR={"\x00":"&#0;","\t":"&#9;","\n":"&#10;","\x0B":"&#11;","\f":"&#12;","\r":"&#13;"," ":"&#32;",'"':"&quot;","&":"&amp;","'":"&#39;","-":"&#45;","/":"&#47;","<":"&lt;","=":"&#61;",">":"&gt;","`":"&#96;","\u0085":"&#133;","\u00a0":"&#160;","\u2028":"&#8232;","\u2029":"&#8233;"},OR=function(a){return NR[a]},PR=/[\x00\x22\x27\x3c\x3e]/g,QR=/<(?:!|\/?([a-zA-Z][a-zA-Z0-9:\-]*))(?:[^>'"]|"[^"]*"|'[^']*')*>/g,
RR=/</g;var SR=/^<(body|caption|col|colgroup|head|html|tr|td|th|tbody|thead|tfoot)>/i;var TR=function(){if("realtimeDevtoolsDevtoolsecoBadge".fm===JR){var a="realtimeDevtoolsDevtoolsecoBadge".getContent();a=String(a).replace(QR,"").replace(RR,"&lt;");a=String(a).replace(PR,OR)}else a=ue("realtimeDevtoolsDevtoolsecoBadge");return MR('<div class="'+a+'"><div>ECO MODE</div><div>TESTING ONLY</div></div>')};TR.g="realtime.devtools.templates.ecoBadge";var WR=function(){var a=UR;a.g=document.createElement("div");document.body.appendChild(a.g);VR(a)},VR=function(a){if(a.g&&(a.l||a.C||a.m)){var b=TR();var c=qg(fg(),"DIV");if(Na(b))if(b instanceof KR){if(b.fm!==JR)throw Error("Sanitized content was not of kind HTML.");b=me(b.toString(),b.em||null)}else Eb("Soy template output is unsafe for use as HTML: "+b),b=ne("zSoyz");else b=ne(String(b));b.Uc().match(SR);re(c,b);1==c.childNodes.length&&(b=c.firstChild,1==b.nodeType&&(c=b));a.g.appendChild(c)}},
UR=new function(){if(window&&window.location&&window.location.href){var a=(new dr(window.location.href)).h;if(wr(a,"max_send_resolution")){var b=a.get("max_send_resolution");if(b){a:{var c=b.split("x");if(2===c.length&&(b=Number(c[0]),c=Number(c[1]),!isNaN(b)&&!isNaN(c))){b=new dg(b,c);break a}b=void 0}this.C=b}}wr(a,"max_send_fps")&&(b=Number(a.get("max_send_fps")),isNaN(b)||(this.l=b));wr(a,"present_mute_camera")&&(this.m=!0);wr(a,"disable_webrtc_cpu_based_adaptation")&&(this.h=!0);wr(a,"force_lens_vip")&&
(this.j=a.get("force_lens_vip"))}VR(this)};var YR=function(){this.s=Zf("realtime.diagnostics.DiagnosticDataService");this.j=new Map;this.g=new Map;this.h=new Map},$R=function(a,b,c){var d=YR.Ob(),e;for(e in b){var f=ZR(d,e,b[e],c);Bs(a,f)}},ZR=function(a,b,c,d){d=void 0===d?!0:d;a.g.has(b)&&(C(a.s,"Already registered a diagnostics data callback for key '"+b+"'."),b=aS(a,b));a.h.delete(b);a.g.set(b,c);return function(){a.g.get(b)==c&&(a.g.delete(b),d&&a.h.set(b,c()))}};
YR.prototype.za=function(){var a={};this.h.forEach(function(b,c){return a[c]=b});this.g.forEach(function(b,c){return a[c]=b()});return a};YR.prototype.reset=function(){this.j.clear();this.g.clear();this.h.clear()};var aS=function(a,b){for(var c=0;a.g.has(b+"("+c+")");)c++;return b+"("+c+")"};Ja(YR);var bS=new dg(320,180),cS=new dg(640,360),dS=new dg(1280,720);var eS={host:"LOCAL",srflx:"STUN",relay:"RELAY",prflx:"PEER_REFLEX"};var fS=function(a,b){this.g=a;this.h=b};da.Object.defineProperties(fS.prototype,{key:{configurable:!0,enumerable:!0,get:function(){return this.g}},value:{configurable:!0,enumerable:!0,get:function(){return this.h}}});var gS=function(a,b,c,d){this.j=a;this.g=b;this.h=c;this.l=d};da.Object.defineProperties(gS.prototype,{type:{configurable:!0,enumerable:!0,get:function(){return this.j}},port:{configurable:!0,enumerable:!0,get:function(){return this.g}},protocol:{configurable:!0,enumerable:!0,get:function(){return this.h}}});var hS=function(a,b){this.l=a;"string"===typeof b?(this.g=b,"m"===a?(a=b.split(" "),this.j=new gS(a[0],a[1],a[2],a.slice(3))):"a"===a&&(a=Ae(b,":",1),b=a[0],this.h=1===a.length?new fS(b,null):new fS(b,a[1]))):b instanceof gS?(this.j=b,this.g=b.j+" "+b.g+" "+b.h+" "+b.l.join(" ")):b instanceof fS&&(this.h=b,this.g=b.h?b.g+":"+b.h:b.g)};hS.prototype.toString=function(){return this.Fg+"="+this.value};var iS=function(a){a=Ae(a,"=",1);return new hS(a[0],a[1])};
da.Object.defineProperties(hS.prototype,{Fg:{configurable:!0,enumerable:!0,get:function(){return this.l}},value:{configurable:!0,enumerable:!0,get:function(){return this.g}},C:{configurable:!0,enumerable:!0,get:function(){return this.h}},m:{configurable:!0,enumerable:!0,get:function(){return this.j}}});var kS=function(a){this.h=a;this.g=new Map;jS(this)},jS=function(a){var b=new Map;a.h.forEach(function(c){if("a"===c.Fg){c=c.C;var d=c.key,e=b.get(d);e||(e=[],b.set(d,e));c.value?e.push(c.value):e.push("")}});b.forEach(function(c,d){a.g.set(d,new lS(d,c," ",!1))})};kS.prototype.get=function(a){return this.g.get(a)||new lS(a,[]," ",!0)};
var lS=function(a,b,c,d){d=void 0===d?!1:d;this.u=a;this.l=b;this.F=void 0===c?":":c;this.j=(this.o=d)?new Map:null;this.C=d?[]:null},mS=function(a,b){return a.h?a:b};lS.prototype.forEach=function(a){nS(this);this.j.forEach(a)};lS.prototype.get=function(a){nS(this);return this.j.get(a)||new lS(a,[],":",!0)};var nS=function(a){if(null===a.j){var b=new Map;a.l.forEach(function(c){c=Ae(c,a.F,1);var d=c[0],e=b.get(d)||[];b.set(d,[].concat(p(e),[c[1]||""]))});a.j=oS(b);a.C=Array.from(a.j.keys())}};
da.Object.defineProperties(lS.prototype,{m:{configurable:!0,enumerable:!0,get:function(){return this.l}},g:{configurable:!0,enumerable:!0,get:function(){return this.o||0===this.l.length?null:this.l[0]}},h:{configurable:!0,enumerable:!0,get:function(){return!this.o}},key:{configurable:!0,enumerable:!0,get:function(){return this.u}},keys:{configurable:!0,enumerable:!0,get:function(){nS(this);return this.C}}});function oS(a){var b=new Map;a.forEach(function(c,d){b.set(d,new lS(d,c))});return b};var pS=function(a){this.g=a;this.C=this.m=this.l=null;this.G=this.M=!1;this.H=[];this.D=this.u=null;this.J=[];this.o=[];this.L=new Map;this.j=this.h=this.F=null},vS=function(a,b){b=new kS(b);var c=b.get("ice-ufrag").g;null!=c&&(a.m=c);c=b.get("ice-pwd").g;null!=c&&(a.C=c);c=b.get("fingerprint").g;null!=c&&(a.u=c);if(c=b.get("setup").g)a.D=c;qS(a,b);if(a.g){c=b.get("sendonly").h;var d=b.get("recvonly").h,e=b.get("sendrecv").h;if(c||e)a.M=!0;if(d||e)a.G=!0;a.l=b.get("mid").g;rS(a,b,a.g);a.h=b.get("rid").keys;
if(c=b.get("simulcast").g)if(d=n(Ae(c.trim()," ",1)),c=d.next().value,d=d.next().value,"send"===c&&d&&(c=n(Ae(d,"=",1)),c.next(),c=c.next().value))a.j=c.split(";");sS(a,b,a.g);tS(a,b,a.g);uS(a,b)}},qS=function(a,b){b.get("crypto").forEach(function(c,d){var e=n(Ae(c.g," ",2));c=e.next().value;var f=e.next().value;e=e.next().value;var g=new xP;g.l=parseInt(d,10);g.j=c;g.g=f;g.h=e||"";d=g.ja();a.H.push(d)})},rS=function(a,b,c){b.get("extmap").forEach(function(d,e){d=d.g;e=n(Ae(e,"/",2));var f=e.next().value;
e.next();a.J.push(new zP(parseInt(f,10),d,c))})},sS=function(a,b,c){var d=new Map;b.get("fmtp").forEach(function(e,f){var g={};e.g.split(";").forEach(function(h){h=Ae(h,"=",1);2===h.length&&(g[h[0]]=h[1])});d.set(parseInt(f,10),g)});b.get("rtpmap").forEach(function(e,f){f=parseInt(f,10);var g=e.g.split("/"),h=g[0];e=parseInt(g[1],10);g=2<g.length?parseInt(g[2],10):1;h=uP(tP(c),f).bf(h);h.h=e;h.g=g;e=d.get(f)||{};h.j=pP(e);e=h.ja();d.delete(f);a.o.push(e)})},tS=function(a,b,c){var d=b.get("msid"),
e=a.L,f=new Set;b.get("ssrc").forEach(function(h,m){m=parseInt(m,10);var q=h.get("cname").g;h=mS(h.get("msid"),d);f.add(m);if(h.h){h=n(Ae(h.g," ",1));var r=h.next().value,u=h.next().value;h=e.get(r);h||(h=new TO,dP(cP(XO(bP(UO(h,c),r),u),u),a.l),e.set(r,h));q&&WO(h,q);a.h&&0<a.h.length&&(q=[],a.j&&0<a.j.length?(a.j.forEach(function(A){return a.h.includes(A)}),q=a.j.reverse()):q=a.h,q=HO(new GO,q).ja(),gP(h,q));fP(h,m)}});b=b.get("ssrc-group").m.map(function(h){var m=h.split(" ");h=m[0];m=m.slice(1).map(function(q){return parseInt(q,
10)});m.forEach(function(q){return f.has(q)});return new IO(h,m)});var g=new Map;b.forEach(function(h){h.eb().forEach(function(m){return g.set(m,[].concat(p(g.get(m)||[]),[h]))})});e.forEach(function(h){var m=new Set;h.eb().forEach(function(q){(g.get(q)||[]).forEach(function(r){return m.add(r)})});hP(h,Array.from(m))})},uS=function(a,b){var c=CP(new BP,1024).bf("webrtc-datachannel"),d=!1;b.get("sctpmap").forEach(function(e,f){f=parseInt(f,10);var g=n(e.g.split(" "));e=g.next().value;g=g.next().value;
0!==f&&"rejected"!==e&&(g=parseInt(g,10),c=CP(c.pi(f).bf(e),g),d=!0)});b.get("sctp-port").forEach(function(e,f){c=c.pi(parseInt(f,10));d=!0});d&&(a.F=c.ja())},xS=function(a,b){var c=b.g||new mQ("ICE","","");if(a.m&&a.C){var d=a.m;c=c.la();c.j=d;d=a.C;c=c.la();c.h=d}a.u&&(d=a.u,c=c.la(),c.g=d);a.D&&(c=oQ(c,a.D));b=xQ(wQ(b,c),[].concat(p(cc(b.h)),p(a.H)));if(a.g)switch(c=a.g,a=wS(a,c),c){case "a":b=uQ(b,a);break;case "v":b=qQ(b,a);break;case "d":b=vQ(b,a)}return b},wS=function(a,b){var c=Array.from(a.L.values()).map(function(d){return d.ja()});
b=ZP(WP(bQ(aQ(new QP(b,a.o,a.J),a.M),a.G),a.o),c);a.l&&(b=$P(b,a.l));a.F&&(b=XP(b,a.F));return b};var yS=function(a){this.u=a;this.o=a[0];this.m=this.h=null};
da.Object.defineProperties(yS.prototype,{C:{configurable:!0,enumerable:!0,get:function(){return this.u}},l:{configurable:!0,enumerable:!0,get:function(){return this.o.m}},mediaType:{configurable:!0,enumerable:!0,get:function(){return this.l.type}},j:{configurable:!0,enumerable:!0,get:function(){if(!this.h){var a=this.g;a.get("sendonly").h?this.h="sendonly":a.get("recvonly").h?this.h="recvonly":a.get("inactive").h?this.h="inactive":this.h="sendrecv"}return this.h}},Ag:{configurable:!0,enumerable:!0,
get:function(){return"sendrecv"===this.j||"sendonly"===this.j}},wj:{configurable:!0,enumerable:!0,get:function(){return"sendrecv"===this.j||"recvonly"===this.j}},g:{configurable:!0,enumerable:!0,get:function(){this.m||(this.m=new kS(this.C));return this.m}}});var zS=function(a){this.sessionId=a};var AS=function(a){this.g=a;this.sessionId=a.filter(function(b){return"o"===b.Fg}).map(function(b){return(new zS(b.value.split(" ")[1])).sessionId})[0]};var BS=function(a,b){this.g=a;this.h=b},CS=function(a){return a.g.g.concat.apply(a.g.g,p(a.h.map(function(b){return b.C}))).map(function(b){return b.Fg+"="+b.value}).join("\r\n")+"\r\n"},DS=function(a){function b(){c?d.push(new yS(e)):c=new AS(e)}var c=null,d=[],e=[];a.split(/\r?\n/).forEach(function(f){ld(f)||(f=iS(f),"m"===f.Fg&&(b(),e=[]),e.push(f))});b();return new BS(c,d)};
da.Object.defineProperties(BS.prototype,{session:{configurable:!0,enumerable:!0,get:function(){return this.g}},media:{configurable:!0,enumerable:!0,get:function(){return this.h}}});function ES(a){a=a.trim().split(" ");var b=a[0].split(":")[1],c=parseInt(a[1],10),d=a[2].toUpperCase(),e=parseInt(a[3],10),f=a[4],g=parseInt(a[5],10),h=eS[a[7]],m;a.forEach(function(A,z){"generation"===A&&(m=z+1)});switch(h){case "STUN":case "RELAY":case "PEER_REFLEX":var q=a[9];var r=parseInt(a[11],10)}var u=0;m&&(u=parseInt(a[m],10));return new nP(c,e,h,d,f,g,b,u,"",q,r)}
function FS(a){var b="string"===typeof a?DS(a):a;a=new pQ;var c=new pS(null);vS(c,b.session.g);a=xS(c,a);c=b.media.filter(function(e){return"audio"===e.l.type});var d=b.media.filter(function(e){return"video"===e.l.type});b=b.media.filter(function(e){return"data"===e.l.type||"application"===e.l.type});a=GS("a",c,a);a=GS("v",d,a);return a=GS("d",b,a)}function GS(a,b,c){var d=new pS(a);b.forEach(function(e){return vS(d,e.C)});return xS(d,c)};var HS=function(a,b,c){T.call(this);this.g=a;this.l=b||0;this.h=c;this.j=x(this.Ms,this)};B(HS,T);k=HS.prototype;k.Sa=0;k.ba=function(){HS.Db.ba.call(this);this.stop();delete this.g;delete this.h};k.start=function(a){this.stop();this.Sa=Av(this.j,void 0!==a?a:this.l)};k.stop=function(){0!=this.Sa&&Bv(this.Sa);this.Sa=0};k.Ms=function(){this.Sa=0;this.g&&this.g.call(this.h)};var JS=function(a){U.call(this,IS);this.message=a};t(JS,U);var IS=new Ru("ea");var KS=function(){this.h=this.g=this.l=this.o=this.j=null},LS=function(a,b){a.j=b;return a};KS.prototype.Qb=function(){return this.g};KS.prototype.C=function(a){this.j&&N(a,14,this.j);this.l&&N(a,16,this.l);this.g&&N(a,22,this.g);this.h&&N(a,23,this.h)};KS.prototype.toString=function(){return"{ ParticipantLogId: "+(this.j||"")+", MucJid: "+(this.o||"")+", SyntheticId: "+(this.l||"")+", MeetingCode: "+(this.g||"")+", MeetingSpaceId: "+(this.h||"")+" }"};var MS=function(){xv.apply(this,arguments)};t(MS,xv);k=MS.prototype;k.za=function(){return{id:this.g,isInProgress:"INPROGRESS"==this.getState(),state:this.getState()}};k.pause=function(){};k.resume=function(){};k.Ia=function(){throw Error("getStream not supported on RemoteSession");};k.ym=function(){return ct("Not implemented")};k.rn=function(){};var NS=new Ru("fa"),OS=new Ru("ga"),PS=function(a,b,c){U.call(this,NS);this.Sc=cc(a);this.Bc=cc(b);this.removed=cc(c)};t(PS,U);
var QS=function(a){U.call(this,OS);this.g=cc(a)};t(QS,U);var RS=function(){QM.call(this);this.dc="INITIAL";this.cc=void 0};t(RS,QM);k=RS.prototype;k.za=function(){var a=this.l;return{state:this.getState(),endCause:this.cc,id:this.h.g,isInProgress:"INPROGRESS"==this.getState(),localId:this.qb(),localDescription:this.g.g.localDescription.za(),localSession:this.g.za(),options:this.j.za(),remoteAudioCodecs:cc(this.pa).map(String),remoteSession:this.h.za(),remoteSessionDescription:a&&a.za(),useEarlyMedia:null!==this.j.ed&&0<this.j.Tc().length}};k.getState=function(){return this.dc};
k.ln=function(){throw Error("Unimplemented");};k.mn=function(){return 0};k.Wm=function(){return!1};var SS=function(a,b,c){this.modelName=void 0===a?"":a;this.j=(void 0===b?0:b)||Ha("navigator.hardwareConcurrency")||0;this.h=void 0===c?!1:c;this.g=null},VS=function(a){return""==a.modelName||a.h&&TS.some(function(b){return b.test(a.modelName)})?!1:4<=a.j&&!US(a)},US=function(a){null==a.g&&(a.g=(a.modelName.startsWith("Intel")?WS:a.modelName.startsWith("AMD")?XS:YS).some(function(b){return b.test(a.modelName)}));return a.g},XS=[/^AMD A(4|6|8|10|12)/,/^AMD Athlon\(tm\) 5[0-9]{3} APU/,/^AMD Athlon\(tm\) X4/,
/^AMD E2-/,/^AMD FX-[0-9]{4}.*R(ADEON|adeon)/,/^AMD FX\(tm\)-4[0-9]{3} Quad-Core Processor/,/^AMD GX-/,/^AMD Opteron/,/^AMD PRO A(4|6|8|10|12)/,/^AMD Phenom\(tm\) 9/,/^AMD Processor model unknown/,/^AMD RX?-/,/^AMD Sempron/],WS=[/^Intel\(R\) (Pentium|Celeron)\(R\).*[NJ][0-9]{4} /,/^Intel\(R\) Atom\(TM\)/,/^Intel\(R\) Core\(TM\) ([im][357]|M)-[0-9]*Y[0-9]*/,/^Intel\(R\) Core\(TM\) i3-[23][0-9]{3}M/,/^Intel\(R\) Core\(TM\) i3-[3-7][0-9]+U/,/^Intel\(R\) Core\(TM\) i[357] CPU +[MUQLX] [0-9]{3} /,/^Intel\(R\) Core\(TM\) i[57]-2[0-9]{3}M/,
/^Intel\(R\) Core\(TM\) i[57]-[3-5][0-9]+U/,/^Intel\(R\) Core\(TM\)2/,/^Intel\(R\) Pentium\(R\) CPU [34][0-9]{3}[UY]/,/^Intel\(R\) Processor 5Y/],YS=[/^.+AMD Opteron/,/^Genuine Intel\(R\) CPU[ 0]+@/,/^HP Hexa-Core 2\.0GHz/,/^Quad-Core Processor \(up to 1.4GHz\)/,/^Rockchip \(Device Tree\)/,/^SAMSUNG EXYNOS/,/^Snapdragon/,/^Unknown x86 device/],TS=[/^Intel\(R\) Core\(TM\) i5-10210U CPU @ 1.60GHz/];var ZS=function(){xv.call(this);this.hb=this.ua=null};t(ZS,xv);k=ZS.prototype;k.za=function(){return{hangoutId:this.hb,isInProgress:"INPROGRESS"==this.getState(),remoteJid:this.ua,sessionId:this.h,state:this.getState()}};k.Ia=function(){throw Error("getStream not supported on LocalSession");};k.se=function(){};k.Uj=function(){};k.jo=function(){return!1};k.Sk=function(){return!1};k.xo=function(){};k.wm=function(){return null};k.Dm=function(){return null};k.qn=function(){return new SS};
var $S=function(a,b){U.call(this,"ia");this.g=a;this.j=b};t($S,U);var aT=function(a){U.call(this,"ja");this.g=a};t(aT,U);var bT=function(a){U.call(this,"la");this.lb=a};t(bT,U);var cT=function(a,b,c){U.call(this,"ka");this.j=a;this.Mb=b;this.g=c};t(cT,U);var dT=function(a,b,c){U.call(this,"ha");this.ha=a;this.label=b;this.payload=c};t(dT,U);var eT=function(a){U.call(this,"pa");this.Bg=a};t(eT,U);var fT=function(){this.m=null;this.F=!1;this.j=this.l=this.g=this.h=this.o=!0;this.H=!1;this.u=this.D=this.G=this.C=!0};fT.prototype.za=function(){return{autoGainControl:this.g,echoCancellation:this.h,highPassFilter:this.j,inbandFec:this.G,dtx:this.D,noiseSuppression:this.l,preferredSendCodec:this.m,sendComfortNoise:this.o,sendOpus:this.u,sendStereo:this.F,stereoSwapping:this.H,transientSuppression:this.C}};
fT.prototype.la=function(){var a=new fT;a.m=this.m;a.F=this.F;a.o=this.o;a.h=this.h;a.g=this.g;a.l=this.l;a.j=this.j;a.H=this.H;a.C=this.C;a.G=this.G;a.D=this.D;a.u=this.u;return a};var gT=function(){this.Mf=this.Xk=this.Yk=this.je=!0;this.Ti=!1;this.Ol=!0;this.ed=null;this.Td=[];this.Uw=!0;this.ve=this.Sd=!1;this.Mi=null;this.af=!0;this.Om=[{urls:["stun:stun.l.google.com:19302","stun:stun1.l.google.com:19302","stun:stun2.l.google.com:19302","stun:stun3.l.google.com:19302","stun:stun4.l.google.com:19302"]}];this.Hw=!0;this.kg=new fT;this.gp=!0;this.Bk=this.qf=this.ai=this.Ei=this.Pl=!1;this.rr=void 0;this.bh=!1;this.Zk=this.hp=!0;this.cd=null;this.Cg=void 0;this.zj=1E4;this.Hf=
!1;this.kp=!0;this.Ld=this.Od=null;this.Tw=this.Di=this.Ci=this.Sw=!0;this.Ph=!1;this.jg=120;this.Gi=null;this.Gc=0;this.ni=!1;this.Cf=1E3;this.Gh=!0;this.Ql=!1};
gT.prototype.za=function(){return{useAudio:this.je,useVideo:this.Yk,useData:this.Xk,useVideoRtx:this.Mf,dumpRtpHeaders:this.Ti,allowEarlyMedia:this.Ol,earlyMediaHangoutId:this.ed,defaultRequests:this.Td,useStandardIce:this.Uw,debugLogUploadAllowed:this.Sd,debugLogUploadForced:this.ve,clientResource:this.Mi,useSimulcast:this.af,startMuted:this.Hw,useConferenceMode:this.gp,AudioDscp:this.Od,VideoDscp:this.Ld,useVirtualAudioSSRCs:this.kp,allowH264:this.Pl,allowVp9:this.Ei,sendVp9:this.ai,forceVp9:this.qf,
useAdaptiveLayering_:this.bh,useWebrtcCpuAdaptation:this.Zk,useBackendLoudestSpeaker:this.Sw,bandwidthConstraints:this.cd,jmiIntervalMs:this.Cg,jmiUploadIntervalMs:this.zj,shouldHistogramData:this.Hf,allowOnlyRequestedVideo:this.Di,isTestCall:this.Ph,audioJitterBufferMinDelayMs:this.jg,audioProcessorConfig:this.Gi,audioLevelMode:this.Gc,usePassiveListener:this.ni,passiveModeDelayMillis:this.Cf,excludeSelfStreams:this.Gh,allowSinglecast:this.Ql}};
gT.prototype.la=function(){var a=new gT,b;for(b in this)a[b]=this[b];return a};var hT=function(a){a=a.la();a.je=!1;return a},iT=function(a){a=a.la();a.Mf=!1;return a};gT.prototype.ij=function(){return this.kp};gT.prototype.sf=function(){return this.Ti};var jT=function(a,b){if(a.Sd&&a.ve)return a;a=a.la();a.Sd=b;return a},kT=function(a){a=a.la();a.ve=!0;return a},lT=function(a,b){a=a.la();a.ed=b;return a};gT.prototype.Tc=function(){return this.Td};
gT.prototype.Of=function(a){var b=this.la();b.Td=a;return b};gT.prototype.Vb=function(){return this.Mi};var mT=function(a,b){a=a.la();a.kg=b;return a};gT.prototype.aj=function(){return this.Pl};gT.prototype.rf=function(){return this.Ei};var nT=function(a,b){a=a.la();a.Od=b;return a},oT=function(a,b){a=a.la();a.Ld=b;return a};k=gT.prototype;k.dl=function(a){var b=this.la();b.cd=a;return b};k.Ae=function(){return this.cd};k.ug=function(){return this.Cg};k.vg=function(){return this.zj};k.xg=function(){return this.Hf};
k.Hh=function(){return this.Gi};var pT=function(a){if(!a)return"";a=a.split("#")[0].split("?")[0];a=a.toLowerCase();0==a.indexOf("//")&&(a=window.location.protocol+a);/^[\w\-]*:\/\//.test(a)||(a=window.location.href);var b=a.substring(a.indexOf("://")+3),c=b.indexOf("/");-1!=c&&(b=b.substring(0,c));a=a.substring(0,a.indexOf("://"));if("http"!==a&&"https"!==a&&"chrome-extension"!==a&&"file"!==a&&"android-app"!==a&&"chrome-search"!==a&&"chrome-untrusted"!==a&&"chrome"!==a&&"app"!==a)throw Error("Invalid URI scheme in origin: "+a);
c="";var d=b.indexOf(":");if(-1!=d){var e=b.substring(d+1);b=b.substring(0,d);if("http"===a&&"80"!==e||"https"===a&&"443"!==e)c=":"+e}return a+"://"+b+c};var qT=function(){function a(){e[0]=1732584193;e[1]=4023233417;e[2]=2562383102;e[3]=271733878;e[4]=3285377520;r=q=0}function b(u){for(var A=g,z=0;64>z;z+=4)A[z/4]=u[z]<<24|u[z+1]<<16|u[z+2]<<8|u[z+3];for(z=16;80>z;z++)u=A[z-3]^A[z-8]^A[z-14]^A[z-16],A[z]=(u<<1|u>>>31)&4294967295;u=e[0];var H=e[1],O=e[2],za=e[3],Ib=e[4];for(z=0;80>z;z++){if(40>z)if(20>z){var Jb=za^H&(O^za);var Nj=1518500249}else Jb=H^O^za,Nj=1859775393;else 60>z?(Jb=H&O|za&(H|O),Nj=2400959708):(Jb=H^O^za,Nj=3395469782);Jb=((u<<5|u>>>
27)&4294967295)+Jb+Ib+Nj+A[z]&4294967295;Ib=za;za=O;O=(H<<30|H>>>2)&4294967295;H=u;u=Jb}e[0]=e[0]+u&4294967295;e[1]=e[1]+H&4294967295;e[2]=e[2]+O&4294967295;e[3]=e[3]+za&4294967295;e[4]=e[4]+Ib&4294967295}function c(u,A){if("string"===typeof u){u=unescape(encodeURIComponent(u));for(var z=[],H=0,O=u.length;H<O;++H)z.push(u.charCodeAt(H));u=z}A||(A=u.length);z=0;if(0==q)for(;z+64<A;)b(u.slice(z,z+64)),z+=64,r+=64;for(;z<A;)if(f[q++]=u[z++],r++,64==q)for(q=0,b(f);z+64<A;)b(u.slice(z,z+64)),z+=64,r+=
64}function d(){var u=[],A=8*r;56>q?c(h,56-q):c(h,64-(q-56));for(var z=63;56<=z;z--)f[z]=A&255,A>>>=8;b(f);for(z=A=0;5>z;z++)for(var H=24;0<=H;H-=8)u[A++]=e[z]>>H&255;return u}for(var e=[],f=[],g=[],h=[128],m=1;64>m;++m)h[m]=0;var q,r;a();return{reset:a,update:c,digest:d,digestString:function(){for(var u=d(),A="",z=0;z<u.length;z++)A+="0123456789ABCDEF".charAt(Math.floor(u[z]/16))+"0123456789ABCDEF".charAt(u[z]%16);return A}}};var sT=function(a,b,c){var d=[],e=[];if(1==(Array.isArray(c)?2:1))return e=[b,a],Hb(d,function(h){e.push(h)}),rT(e.join(" "));var f=[],g=[];Hb(c,function(h){g.push(h.key);f.push(h.value)});c=Math.floor((new Date).getTime()/1E3);e=0==f.length?[c,b,a]:[f.join(":"),c,b,a];Hb(d,function(h){e.push(h)});a=rT(e.join(" "));a=[c,a];0==g.length||a.push(g.join(""));return a.join("_")},rT=function(a){var b=qT();b.update(a);return b.digestString().toLowerCase()};var tT=function(){this.g=document||{cookie:""}};k=tT.prototype;k.isEnabled=function(){return navigator.cookieEnabled};
k.set=function(a,b,c){var d=!1;if("object"===typeof c){var e=c.yL;d=c.secure||!1;var f=c.domain||void 0;var g=c.path||void 0;var h=c.Qt}if(/[;=\s]/.test(a))throw Error('Invalid cookie name "'+a+'"');if(/[;\r\n]/.test(b))throw Error('Invalid cookie value "'+b+'"');void 0===h&&(h=-1);c=f?";domain="+f:"";g=g?";path="+g:"";d=d?";secure":"";h=0>h?"":0==h?";expires="+(new Date(1970,1,1)).toUTCString():";expires="+(new Date(Va()+1E3*h)).toUTCString();this.g.cookie=a+"="+b+c+g+h+d+(null!=e?";samesite="+e:
"")};k.get=function(a,b){for(var c=a+"=",d=(this.g.cookie||"").split(";"),e=0,f;e<d.length;e++){f=nd(d[e]);if(0==f.lastIndexOf(c,0))return f.substr(c.length);if(f==a)return""}return b};k.remove=function(a,b,c){var d=void 0!==this.get(a);this.set(a,"",{Qt:0,path:b,domain:c});return d};k.Pb=function(){return uT(this).keys};k.Ma=function(){return uT(this).values};k.zc=function(){return!this.g.cookie};k.ya=function(){return this.g.cookie?(this.g.cookie||"").split(";").length:0};
k.lf=function(a){for(var b=uT(this).values,c=0;c<b.length;c++)if(b[c]==a)return!0;return!1};k.clear=function(){for(var a=uT(this).keys,b=a.length-1;0<=b;b--)this.remove(a[b])};var uT=function(a){a=(a.g.cookie||"").split(";");for(var b=[],c=[],d,e,f=0;f<a.length;f++)e=nd(a[f]),d=e.indexOf("="),-1==d?(b.push(""),c.push(e)):(b.push(e.substring(0,d)),c.push(e.substring(d+1)));return{keys:b,values:c}};var vT=function(a){var b=pT(String(w.location.href)),c;(c=w.__SAPISID||w.__APISID||w.__OVERRIDE_SID)?c=!0:(c=new tT,c=c.get("SAPISID")||c.get("APISID")||c.get("__Secure-3PAPISID")||c.get("SID"),c=!!c);if(c&&(c=(b=0==b.indexOf("https:")||0==b.indexOf("chrome-extension:"))?w.__SAPISID:w.__APISID,c||(c=new tT,c=c.get(b?"SAPISID":"APISID")||c.get("__Secure-3PAPISID")),c)){b=b?"SAPISIDHASH":"APISIDHASH";var d=String(w.location.href);return d&&c&&b?[b,sT(pT(d),c,a||null)].join(" "):null}return null};var wT=function(a,b,c){Tv(a.url,function(d){d=d.target;cw(d)?b(ew(d)):c(d.Ja())},a.requestType,a.body,a.requestHeaders,a.timeoutMillis,a.withCredentials)};var xT=function(a){K(this,a,0,-1,null,null)};B(xT,J);var yT=function(a){K(this,a,0,-1,null,null)};B(yT,J);var AT=function(a){K(this,a,0,30,zT,null)};B(AT,J);var zT=[3,20,27],BT=function(a,b){return N(a,8,b)};var DT=function(a){K(this,a,0,17,CT,null)};B(DT,J);var CT=[3,5],ET=function(a){var b=Va().toString();return N(a,4,b)},FT=function(a,b){return Cl(a,3,b)},GT=function(a,b){return N(a,14,b)};var IT=function(a){K(this,a,0,6,HT,null)};B(IT,J);var HT=[5];var JT=function(a){K(this,a,0,-1,null,null)};B(JT,J);var KT=new function(){this.Rd=JT};var MT=function(a,b,c,d,e,f,g,h,m,q,r){xv.call(this);this.xa=a;this.ua=b||Ia;this.D=new DT;this.Da=d;this.pa=r;this.h=[];this.ga="";this.La=Ua(of,0,1);this.l=e||null;this.L=c||null;this.G=g||!1;this.J=m||null;this.na=this.V=-1;this.X=!1;this.s=Zf("playlog.clearcut.ClearcutBase");this.Fa=!h;this.o=null;this.H=0;this.Ca=1;this.ta=f||!1;a=new yT;a=N(a,1,1);f||(f=new xT,b=document.documentElement.getAttribute("lang"),f=N(f,5,b),S(a,11,f));S(this.D,1,a);N(this.D,2,this.xa);this.j=new rM(1E4,3E5,.1);this.g=
new yv(this.j.g);this.T(this.g);jv(this.g,"tick",uc(LT(this,q)),!1,this);this.u=new yv(6E5);this.T(this.u);jv(this.u,"tick",uc(LT(this,q)),!1,this);this.G||this.u.start();this.ta||(jv(kg(),"beforeunload",this.m,!1,this),jv(kg(),"unload",this.m,!1,this),jv(document,"pagehide",this.m,!1,this))};B(MT,xv);var LT=function(a,b){return b?function(){b().then(a.flush.bind(a))}:a.flush};MT.prototype.ba=function(){this.m();MT.Db.ba.call(this)};var NT=function(a,b){a.j=new rM(1>b?1:b,3E5,.1);zv(a.g,a.j.g)};
MT.prototype.log=function(a){a=Jl(a);var b=this.Ca++;N(a,21,b);L(a,1)||(b=Va().toString(),N(a,1,b));for(;1E3<=this.h.length;)this.h.shift(),++this.H;this.h.push(a);this.N(new OT(a));this.G||this.g.enabled||this.g.start()};
MT.prototype.flush=function(a,b){var c=this;if(0==this.h.length)a&&a();else{var d=Va();if(this.na>d&&this.V<d)D(this.s,"Not flushing because server requested delay."),b&&b("throttled");else{var e=GT(FT(ET(Jl(this.D)),this.h),this.H);d={};var f=this.ua();f&&(d.Authorization=f);this.l||(this.l=.01>this.La()?"https://www.google.com/log?format=json&hasfast=true":"https://play.google.com/log?format=json&hasfast=true");var g=this.l;this.L&&(d["X-Goog-AuthUser"]=this.L,g=$q(g,"authuser",this.L));this.J&&
(d["X-Goog-PageId"]=this.J,g=$q(g,"pageId",this.J));if(f&&this.ga==f)D(this.s,"XHR with unauthorized request not retried"),b&&b("stale-auth-token");else{D(this.s,"Flushing log to clearcut.");this.h=[];this.g.enabled&&this.g.stop();this.H=0;var h=e.va(),m;this.o&&this.o.be(h.length)&&(m=this.o.g(h));var q={url:g,body:h,hr:1,requestHeaders:d,requestType:"POST",withCredentials:this.Fa,timeoutMillis:0},r=x(function(z){this.j.reset();zv(this.g,this.j.g);if(z){try{var H=JSON.parse(z.replace(")]}'\n",""));
var O=new IT(H)}catch(za){C(this.s,"Response parse failed: "+za)}O&&(z=M(O,1,"-1"),z=Number(z),0<z&&(this.V=Va(),this.na=this.V+z),pl(O),O.g||(O.g={}),KT.Rd?(!O.g[175237375]&&O.j[175237375]&&(O.g[175237375]=new KT.Rd(O.j[175237375])),O=O.g[175237375]):O=O.j[175237375],O&&(O=M(O,1,-1),-1!=O&&(this.X||NT(this,O))))}a&&a()},this),u=x(function(z){var H=R(e,AT,3);sM(this.j);zv(this.g,this.j.g);401==z&&f&&(this.ga=f);if(500<=z&&600>z||401==z||0==z)this.h=H.concat(this.h),this.G||this.g.enabled||this.g.start();
C(this.s,"Flush failed. Status code: "+z);b&&b("net-send-failed",z)},this),A=function(){c.pa?c.pa.send(q,r,u):c.Da(q,r,u)};m?m.then(function(z){q.requestHeaders["Content-Encoding"]="gzip";q.requestHeaders["Content-Type"]="application/binary";q.body=z;q.hr=2;A()},function(){A()}):A()}}}};MT.prototype.m=function(){this.flush()};var OT=function(){this.type="event-logged"};B(OT,U);var PT=function(a,b,c,d,e,f,g){MT.call(this,a,vT,b,wT,c,d,e,void 0,f,g)};B(PT,MT);var QT=function(a){this.F=a;this.j=Date.now();this.g=this.h=this.l=this.C=this.m=this.u=this.o=0};QT.prototype.getStats=function(){var a=new WD;N(a,1,this.F);N(a,2,this.o);N(a,3,this.u);N(a,4,this.m);N(a,5,this.C);N(a,6,this.l);var b=Date.now(),c=-1,d=-1;if(-1!=this.j){var e=(b-this.j)/1E3;0<e&&(c=this.h/e,d=this.g/e)}N(a,9,c);N(a,10,d);this.g=this.h=0;this.j=b;return a};var RT=function(){this.g=new Map},ST=function(a){sK(a,PK)||HK(a,PK,function(){return new RT})};RT.prototype.reset=function(){this.g.clear()};var TT=function(a,b){if(a.g.has(b))return a.g.get(b);var c=new QT(b);a.g.set(b,c);return c};var UT=function(a,b){this.j=a;this.h=b};UT.prototype.toString=function(){for(var a=this.j,b=this.h,c="",d=0;d<a.length;d++)c+=a[d],d<b.length&&(c+=b[d]);return c};da.Object.defineProperties(UT.prototype,{g:{configurable:!0,enumerable:!0,get:function(){return this.j}},values:{configurable:!0,enumerable:!0,get:function(){return this.h}}});
var VT=function(a,b){for(var c=[],d=1;d<arguments.length;++d)c[d-1]=arguments[d];d=[];for(var e=[],f=0;f<a.length;f++)if(0<d.length?d[d.length-1]+=a[f]:d.push(a[f]),!(f>=c.length)){var g=c[f];g instanceof UT?0<g.g.length&&(d[d.length-1]+=g.g[0],d.push.apply(d,p(g.g.slice(1))),e.push.apply(e,p(g.values))):(e.push(g),d.push(""))}return new UT(d,e)};var WT=function(){};WT.prototype.Nd=function(a){var b=Zf(a.name),c=XT(a.level),d=a.message.toString();a.context&&(d="["+a.context.toString()+"] "+d);a.json&&(d+=" json="+JSON.stringify(a.json));$f(b,c,d,a.error)};function XT(a){switch(a){case 0:return Rf;case 1:return Pf;case 2:return Of;case 3:return Nf;default:return Rf}};var YT=function(){var a=this;this.h=new Set;this.g=[];setTimeout(function(){a.g=null},5E3)},ZT=l(["",""]),aU=function(){var a=$T,b=new WT;if(null!==a.g)a.g.forEach(function(d){return b.Nd(d)});else if(null===a.g){var c={level:2,message:VT(ZT,"A backend has been registered, but all catch-up entries have already been cleared. In order for a backend to receive catch-up entries, it must be registered within 5 seconds of the LogManager's creation."),name:"realtime.logging.internal.LogManager",context:null,
error:null,json:null,sessionId:null,timestamp:Date.now()};b.Nd(c)}a.h.add(b)};YT.prototype.Nd=function(a){null!==this.g&&this.g.push(a);for(var b=n(this.h),c=b.next();!c.done;c=b.next()){c=c.value;try{c.Nd(a)}catch(d){setTimeout(function(){throw d;},0)}}};var $T;var bU=function(a,b){void 0===b&&($T||($T=new YT,aU()),b=$T);this.o=a;this.C=b;this.F=this.m=this.u=this.h=this.l=this.j=null},cU=function(a){a.h=null;a.u=null;a.m=null;a.F=null},dU=function(a,b){a.h=b;return a},eU=function(a,b){a.m=b;return a};bU.prototype.g=function(a,b){for(var c=[],d=1;d<arguments.length;++d)c[d-1]=arguments[d];fU(this,0,a,c)};bU.prototype.info=function(a,b){for(var c=[],d=1;d<arguments.length;++d)c[d-1]=arguments[d];fU(this,1,a,c)};
bU.prototype.K=function(a,b){for(var c=[],d=1;d<arguments.length;++d)c[d-1]=arguments[d];fU(this,2,a,c)};bU.prototype.Ta=function(a,b){for(var c=[],d=1;d<arguments.length;++d)c[d-1]=arguments[d];fU(this,3,a,c)};
var gU=l(["CONTEXT FAILED"]),hU=l(["An error occurred generating context for log entry"]),fU=function(a,b,c,d){var e=a.o,f=a.h||a.j,g=a.u||a.l,h=a.m,m=a.F;c=new UT(c,d);cU(a);d=Date.now();var q=null;if(f)try{f(function(r,u){for(var A=[],z=1;z<arguments.length;++z)A[z-1]=arguments[z];q=new UT(r,A)})}catch(r){q=VT(gU),iU(a,d,g,VT(hU),r)}a.C.Nd({name:e,level:b,timestamp:d,sessionId:g,message:c,context:q,error:h,json:m})},iU=function(a,b,c,d,e){a.C.Nd({name:a.o,level:2,timestamp:b,sessionId:c,message:d,
context:null,json:null,error:e})},jU=function(a){var b=new bU(a.o,a.C);b.j=a.h||a.j;b.l=a.u||a.l;cU(a);return b};var kU=function(a,b,c){var d=a.g;oR.call(this,d.Z(),d.getId(),b,c);this.g=a};t(kU,oR);var lU=new iK("ySXoze","rrm");function mU(){}var nU=function(){T.call(this);this.u=new qL(this);this.j=this.u.signal()};t(nU,T);
var pU=function(a,b,c,d){c=void 0===c?mU:c;d=void 0===d?{mo:5,dm:40}:d;return new oU(a,b,c,d)},qU=l(["localSessionId=",""]),oU=function(a,b,c,d){nU.call(this);var e=this;this.g=new Set;this.D=b;this.s=jU(dU(new bU("realtime.media.session.ConnectionLostMonitor"),function(f){return f(qU,e.D.h)}));this.l=this.h=null;this.m=!1;this.F=new W(this);this.T(this.F);this.F.listen(this.D,"pa",function(f){rU(e,"tu",!f.Bg)});uK(a,lU).then(function(f){f.o.attach(function(g){rU(e,"rfs",g>d.mo)})});this.o=c;this.G=
1E3*d.dm};t(oU,nU);var sU=l(["Connection lost alarm triggering: ",""]),tU=l(["Connection lost alarm not triggering: ",""]),rU=function(a,b,c){c?a.s.K(sU,b):a.s.info(tU,b);c?a.g.add(b):a.g.delete(b);a.g.size?null==a.h&&(a.h=Av(function(){a.o(6371,{Zb:Array.from(a.g).join(",")});a.m=!0;a.u.W(a.j,!0)},a.G),a.l=X(),a.o(3061,{Zb:Array.from(a.g).join(",")})):null!=a.h&&(Bv(a.h),a.h=null,a.m&&(a.m=!1,a.u.W(a.j,!1)),b=a.l?Math.round(wR(X(),a.l)/1E3):-1,a.o(3062,{Jc:b}),a.l=null)};var uU=function(a,b,c){return pU(a,b,c)};var vU=function(a){QM.call(this);this.g=a;this.l=M(this.g,3,0);this.j=0;this.h=!1};t(vU,QM);
var xU=function(a,b){b=oF(b);if(null!=b){for(var c=n(b),d=c.next();!d.done;d=c.next())if(d=d.value,0==CF(d)&&2==BF(d)&&(0==L(d,57)||0==L(d,58))){a.l=M(a.g,3,0);return}b=n(b);for(d=b.next();!d.done;d=b.next())switch(c=d.value,CF(c)){case 2:d=a,0<d.l?--d.l:(L(c,40)||0)<M(d.g,1,6E4)?d.h||(++d.j,d.j>=M(d.g,2,1)&&(d.N(new wU(0)),d.h=!0)):(d.h&&(d.N(new wU(1)),d.h=!1),d.j=0)}}},wU=function(a){U.call(this,"ra");this.id=a};t(wU,U);var yU=function(){this.g=new Map};yU.prototype.register=function(a,b,c){var d=a.messageId;if("string"===typeof d){var e=this.g.get(d);e?(e.uo=e.uo||b,e.mm=e.mm||c):this.g.set(d,{Rd:a,uo:b,mm:c})}};yU.prototype.Ah=function(a){var b=a[0],c=this.g.get(b);if(c)return new c.Rd(a);throw Error("Unknown Message "+b);};var zU={},AU=new yU,BU=function(a,b){U.call(this,"sa");this.ha=a;this.data=b};t(BU,U);var CU=function(a){if(!a.g){a:{var b=a.data,c=b?b.indexOf(","):-1;if(-1!=c){var d=b.substring(0,c);if(d=d&&zU[d])try{var e=rk(b.substring(c+1));var f=d.Ah(e);break a}catch(h){}}try{var g=JSON.parse(b);if(Array.isArray(g)){f=AU.Ah(g);break a}}catch(h){}f=null}a.g=f}return a.g},DU=function(a){U.call(this,"ta");this.data=a};t(DU,U);var EU=function(a,b,c){U.call(this,"ua");this.sessionId=a;this.j=b;this.g=new Map(c)};t(EU,U);var FU=function(a){U.call(this,"va");this.kn=a};t(FU,U);var HU=function(){T.call(this);this.s=new bU("realtime.media.stats.BackendLoudestReportService");this.o=new W(this);this.T(this.o);this.h=new GU;this.g=new GU;this.j=new Map;this.l=null;this.m=new Map};t(HU,T);
var JU=function(a){sK(a,IU)||a.registerService(IU,new HU)},KU=function(a,b){a.o.listen(b,"va",function(c){null==a.l&&(a.l=c.kn)})},MU=function(a,b){a.g.Eb!==b&&(a.g.Eb=b,a.g.g=Va(),LU(a))},NU=function(a,b){a.h.Eb!==b&&(a.h.Eb=b,a.h.g=Va(),LU(a))},OU=function(a,b){null!=a.l&&oF(b).forEach(function(c){if(1==BF(c)&&1==CF(c)){var d=[];wF(c).forEach(function(e){var f=L(e,3),g=L(e,2)||0;null!=f&&null!=L(e,1)&&null!=g&&((a.j.get(f)||[]).forEach(function(h){var m=h.Hi-(a.l||0);m>=(L(e,1)||0)&&m<=g&&d.push(h.client-
h.Hi)}),(!a.m.get(f)||g>a.m.get(f))&&a.m.set(f,g))});N(c,150,d||[])}})},PU=l(["Latencies for csrc "," reset before reporting"]),QU=function(a){null!=a.l?a.j.forEach(function(b,c){var d=a.m.get(c);b.filter(function(e){return!d||e.Hi-(a.l||0)>d});100<b.length&&(a.s.info(PU,c),b=[])}):a.j.clear()},LU=function(a){if(a.g.Eb&&a.g.Eb===a.h.Eb){if(2147483647>=Math.abs((a.h.g||0)-(a.g.g||0))){var b=a.g.Eb;a.j.has(b)||a.j.set(b,[]);a.j.get(b).push({Hi:a.g.g,client:a.h.g})}a.g.reset();a.h.reset()}},GU=function(){this.g=
this.Eb=null};GU.prototype.reset=function(){this.g=this.Eb=null};var IU=new iK("kmRoq");var RU=function(){T.call(this);this.s=Zf("realtime.media.stats.HighResVideoTracker");this.h={};this.g={}};t(RU,T);var SU=function(a,b){oF(b).forEach(function(c){if(2==BF(c)&&1==CF(c)&&0<vF(c).length){var d=vF(c)[0];N(c,135,a.g[d]||[])}})};var TU=function(a){return null!=a?a:NaN};var UU=function(a){K(this,a,0,-1,null,null)};B(UU,J);var WU=function(){this.h=!1;this.Dg=this.g=null;this.media=new SE;VU.set(this.media,this)},VU=new WeakMap;var ZU=function(){this.g=null;this.j=new XU(function(){return null},function(a,b){b=null!=b?b:NaN;a||(a=new SD);var c=TU(L(a,3));var d=TU(L(a,4));var e=TU(a.ya());if(isNaN(b))d={Hj:c,Qk:d,n:e};else if(isNaN(c)||isNaN(e)||1>e)d={Hj:b,Qk:NaN,n:1};else{e+=1;var f=b-c;c+=f/e;var g=NaN;1<e&&(g=Math.sqrt(((isNaN(d)?0:d*d)*(e-2)+f*(b-c))/(e-1)));d={Hj:c,Qk:g,n:e}}e=d.Hj;f=d.Qk;N(a,5,d.n);N(a,3,Math.round(e));N(a,4,Math.round(f));d=TU(L(a,1));e=TU(L(a,2));isNaN(b)?(N(a,1,d),N(a,2,e)):isNaN(d)?(N(a,1,b),N(a,
2,b)):(N(a,1,Math.min(b,d)),N(a,2,Math.max(b,e)));return a});this.l=new XU(function(){return new YU},function(a,b){a.update(b);return a});this.h=new XU(function(){return[]},function(a,b){if(null==b)return a;20<=a.length&&(a.length=0);a.push(b);return a})};ZU.prototype.update=function(a){this.g=a;$U(this)};
var $U=function(a){qF(a.g).forEach(function(b){var c=L(b,1),d=L(b,2);b=L(b,3);var e=a.h;aV(e,e.h,c+"-"+d,bV,b)});oF(a.g).forEach(function(b){var c=vF(b)[0];if(c){var d=CF(b);cV(a,c,d,dV,L(b,2));cV(a,c,d,eV,L(b,113));cV(a,c,d,fV,L(b,96));cV(a,c,d,gV,L(b,42));switch(BF(b)){case 1:hV(a,c,d,iV,L(b,26));1==d?(cV(a,c,d,jV,rl(b,107)),cV(a,c,d,kV,rl(b,68)),cV(a,c,d,lV,rl(b,106)),cV(a,c,d,mV,rl(b,104)),cV(a,c,d,nV,rl(b,156)),cV(a,c,d,oV,rl(b,103)),cV(a,c,d,pV,rl(b,207)),qV(a,c,d,oV,rl(b,103)),qV(a,c,d,iV,
L(b,26)),qV(a,c,d,pV,rl(b,207)),(wF(b)||[]).forEach(function(e){qV(a,c,d,rV,e)})):0==d&&qV(a,c,d,bV,L(b,6));break;case 2:if(1==d){if(hV(a,c,d,sV,L(b,89)),0<(L(b,138)||0)&&(hV(a,c,d,tV,L(b,138)),b=VU.get(b).g))hV(a,c,d,uV,(L(b,12)||0)-(L(b,11)||0)),hV(a,c,d,vV,(L(b,4)||0)-(L(b,3)||0)),hV(a,c,d,wV,(L(b,12)||0)-(L(b,9)||0)),hV(a,c,d,xV,(L(b,6)||0)-(L(b,2)||0))}else 0==d&&qV(a,c,d,bV,L(b,6))}}})},hV=function(a,b,c,d,e){a=a.j;aV(a,a.g,b+"-"+c,d,e)},cV=function(a,b,c,d,e){null!=e&&-1!=e&&(a=a.l,aV(a,a.g,
b+"-"+c,d,e))},qV=function(a,b,c,d,e){a=a.h;aV(a,a.g,b+"-"+c,d,e)},BV=function(a){if(!a.g)return null;qF(a.g).forEach(function(b){var c=b.l,d=bV,e=L(b,1),f=L(b,2);(d=a.h.h.get(e+"-"+f+"-"+d))&&c.call(b,d)});oF(a.g).forEach(function(b){var c=vF(b)[0],d=CF(b);c&&(yV(a,c,d,iV,b,b.F),yV(a,c,d,tV,b,b.rw),yV(a,c,d,sV,b,b.vw),yV(a,c,d,uV,b,b.ow),yV(a,c,d,vV,b,b.pw),yV(a,c,d,wV,b,b.ww),yV(a,c,d,xV,b,b.zw),zV(a,c,d,jV,b,b.bi),zV(a,c,d,kV,b,b.Wg),zV(a,c,d,lV,b,b.hi),zV(a,c,d,mV,b,b.ii),zV(a,c,d,nV,b,b.ji),
zV(a,c,d,oV,b,b.ki),zV(a,c,d,pV,b,b.mw),zV(a,c,d,dV,b,function(e){return N(b,2,Math.round(e))}),zV(a,c,d,eV,b,function(e){return N(b,113,Math.round(e))}),zV(a,c,d,fV,b,function(e){return N(b,96,Math.round(e))}),zV(a,c,d,gV,b,function(e){return N(b,42,Math.round(e))}),AV(a,c,d,oV,b,b.Aw),AV(a,c,d,iV,b,b.qw),AV(a,c,d,bV,b,b.u),AV(a,c,d,rV,b,b.l),AV(a,c,d,pV,b,b.nw))});return a.g},yV=function(a,b,c,d,e,f){(a=a.j.g.get(b+"-"+c+"-"+d))&&0<TU(a.ya())&&!isNaN(L(a,1))&&!isNaN(L(a,2))&&!isNaN(L(a,3))&&!isNaN(L(a,
4))&&f.call(e,a)},zV=function(a,b,c,d,e,f){(a=a.l.g.get(b+"-"+c+"-"+d))&&!isNaN(a.g)&&f.call(e,a.g)},AV=function(a,b,c,d,e,f){(a=a.h.g.get(b+"-"+c+"-"+d))&&f.call(e,a)};ZU.prototype.reset=function(){this.g=null;this.j.reset();this.l.reset();this.h.reset()};var XU=function(a,b){this.j=a;this.l=b;this.g=new Map;this.h=new Map},aV=function(a,b,c,d,e){c=c+"-"+d;d=b.has(c)?b.get(c):a.j();a=a.l(d,e);b.set(c,a)};XU.prototype.reset=function(){this.g.clear();this.h.clear()};var CV=function(a){this.Sa=a};
CV.prototype.toString=function(){return this.Sa};var iV=new CV("XTvm9d"),tV=new CV("TdVfcf"),sV=new CV("eQTbEc"),uV=new CV("a4Yxj"),vV=new CV("nUWCZc"),wV=new CV("Nboi5"),xV=new CV("R5vmJf"),jV=new CV("gzdO6e"),kV=new CV("tXhbTd"),lV=new CV("KQMrwb"),mV=new CV("VV4zEf"),nV=new CV("JFlPof"),oV=new CV("BUnMQ"),pV=new CV("i5kSvf"),rV=new CV("bBLyge"),bV=new CV("Wau6Je"),dV=new CV("YoLTIb"),eV=new CV("A1VqNe"),fV=new CV("F2EIlf"),gV=new CV("DbrXbf"),YU=function(){this.g=NaN;this.h=0};
YU.prototype.update=function(a){this.h++;this.g=1===this.h?a:this.g+(a-this.g)/this.h};var EV=function(){T.call(this);var a=this;this.s=Zf("realtime.media.stats.SpeakerSwitchReportService");this.o=new Map;this.m=new Map;this.u=new Map;this.h=new W;this.T(this.h);this.l=function(b){DV(a,null,b.target)};this.j=new Map;this.g=0};t(EV,T);
var FV=function(a){sK(a,SK)||HK(a,SK,function(){return new EV})},GV=function(a,b){var c=new W;a.T(c);c.listen(b,"ua",function(){}).listen(b,"va",function(d){a.g||(a.g=d.kn)})},HV=function(a,b){var c=b.Z();b=b?b.getInfo().eb():[];c&&0<b.length&&a.u.set(c,b[0])},IV=function(a,b){"a"==b.getInfo().ka()&&(a.h.listen(b,"ca",a.l),HV(a,b))},DV=function(a,b,c){b&&(wN(a.h,b,"ca",a.l),IV(a,c));if("a"==c.getInfo().ka()&&0<c.getInfo().eb().length){b=c.getInfo().eb()[0];var d=c.getInfo().qc(),e=0==c.getState();
d||e?(a.m.set(b,Va()),a.o.clear()):a.m.delete(b);HV(a,c)}},JV=function(a,b){if("a"==b.getInfo().ka()){wN(a.h,b,"ca",a.l);var c=b.getInfo().eb()[0]||null;c&&(a.m.delete(c),a.o.clear());a.u.delete(b.Z())}},KV=function(a,b){oF(b).forEach(function(c){if(1==BF(c)&&1==CF(c)&&0!=vF(c).length){var d=vF(c)[0],e=[];0!=wF(c).length&&a.g?wF(c).forEach(function(f){var g=L(f,3);null!=g&&null!=L(f,1)&&null!=L(f,2)&&(a.j.get(g)||[]).forEach(function(h){var m=h.he-a.g;m>=(L(f,1)||0)&&m<=(L(f,2)||0)&&e.push(h.Wd-h.he)})}):
a.j.has(d)&&a.j.get(d).forEach(function(f){return e.push(f.Wd-f.he)});N(c,142,e||[])}})};var LV=function(){T.call(this);this.s=Zf("realtime.media.stats.VideoFeedTracker");this.h=new Map;this.g=new Map};t(LV,T);var MV=function(a,b){oF(b).forEach(function(c){if(2==BF(c)&&0<vF(c).length){var d=vF(c)[0];d=a.g.get(d)||[];N(c,141,d||[])}})};var NV=function(a,b,c){oR.call(this,b.Z(),b.Ba(),b,c);this.j=a;this.g=!1};t(NV,oR);NV.prototype.o=function(){return this.j};var OV=function(){QM.apply(this,arguments)};t(OV,QM);var PV=function(a){U.call(this,"xa");this.g=a.slice()};t(PV,U);var QV=l(["localSessionId=",""]),RV=l(["Creating a new session with options=","."]),WV=function(a,b,c,d,e){RS.call(this);var f=this;this.s=dU(new bU("realtime.media.session.SessionImpl"),function(g){return g(QV,f.qb())});this.oh=b;this.j=d;this.g=c;this.T(this.g);this.h=SV(b,a,d,e);this.T(this.h);this.H=TV(b,d,e);this.T(this.H);this.s.info(RV,Fs(d.za()));this.mh=uK(a,NK);this.Vf=uK(a,MK);this.nh=null;uK(a,PK).then(function(g){f.nh=g});d=uU(a,c,function(g,h){return UV(f,g,h)});d.j.attach(function(g){g&&
f.stop(10)});this.T(d);this.Wf=!1;this.nb=pU(a,c,void 0,{mo:2,dm:5});this.nb.j.attach(function(g){f.Wf=g});this.T(this.nb);this.Da=null;this.o=new W(this);this.T(this.o);this.o.listen(this.g,"ha",this.Yi).listen(this.g,"ja",this.ph).listen(this.g,"ia",this.Cj).listen(this.g,IS,this.nj).listen(this.g,"la",this.yj).listen(this.g,"ka",this.pj).listen(this.g,"oa",this.Aj).listen(this.g,"na",this.Gj).listen(this.g,"da",this.Zf);this.Vf.then(function(g){vN(f.o,g,"qa",function(){f.j.Sd&&VV(f.g)})});this.o.listen(this.h,
"da",this.bg).listen(this.h,"T",this.qh).listen(this.h,OS,this.Xj);this.o.listen(this.h,NS,this.th,!0);this.ob=this.qd=!1;this.pa=[];this.mc=jt();this.fg=jt();this.Xf="";this.u={};this.l=this.Za=this.ta=this.ua=null;this.kc=[];this.ab=[];this.m=[];this.lc={};this.Oa=new vA(20);this.G=this.gb=null;this.Kb=this.Ab=this.xa=X();this.td=this.bd=!1;this.Fa=!0;this.na=this.gg=!1;this.vd=xR;this.yb=!1;b=(b=b.h)&&Q(b.g,nM,19)||new nM;this.bc=void 0;this.Uf=Ia;this.Hf=this.j.xg();this.zb=new ZU;this.Pc=new vU(b);
this.o.listen(this.Pc,"ra",this.Dh);this.Ca=jt();this.J=[];this.Pa=null;(b=navigator.getBattery?navigator.getBattery():null)&&b.then&&b.then(function(g){return f.Pa=g});this.La=new RU;this.oc=new LV;this.D=null;uK(a,SK,!0).then(function(g){return f.D=g});this.ga=null;uK(a,IU,!0).then(function(g){f.ga=g});this.Qc="";this.X=new Map;this.oe=new Map;this.eg=!1;this.L=this.V=null;this.rc=this.pe=0};t(WV,RS);
WV.prototype.ln=function(a){var b=void 0;b=void 0===b?{ordered:!0,maxRetransmits:10}:b;a=XV(this.g.g,a,b);return new YV(a)};WV.prototype.mn=function(){var a=this.xa;return sR!=Date.now?a.g:a.g+(Date.now()-(sR!=Date.now?Date.now():tR()))};WV.prototype.Wm=function(){return this.eg};WV.prototype.Zi=function(a){var b=this;this.ob=!0;this.ab.forEach(function(c){return ZV(b,c)});this.ab=[];return a};
var $V=l(["Starting session after already started."]),aW=l(["Preparation failed because local session failed to create an offer."]),bW=l(["Preparation failed because because local session failed to prepare."]),cW=l(["Request early media for hangout\n       ",""]),dW=l(["Failed to prepare session because remote session failed to prepare."]),oW=function(a){if("INITIAL"!=a.getState())return a.s.K($V),!1;eW(a,"STARTING");if(!a.g.g.localDescription)return a.s.K(aW),!1;var b=a.g;if("INITIAL"!=b.l)b.j.K("Called prepare in a bad state."),
b=!1;else if(b.g.localDescription){var c=b.o,d=b.h;c.g.info("Starting logging for sessionId="+d);fW.add(d);gW(c,3220);var e=WA.Ob();e.h=d;e.g[d]=e.u;e.u=new zA;e.g[d].open(e.C,"hangouts-call-"+d+".log");var f=new Date;XA(e,d,"### Start ["+f.toString()+"] ### "+d);XA(e,d,"Current time is "+f.toUTCString());XA(e,d,"Google Talk Plugin Version: "+e.m);XA(e,d,"User agent: "+Zd);c.C||(c.C=d,c.h?hW(c):iW(c));jW(b.g);kW(b,"STARTING");b=!0}else b.j.K("Prepare called before local offer has been generated."),
b=!1;if(!b)return a.s.K(bW),!1;b=a.g;c=a.j.sf();b.j.info("enableRtpHeaderDump called with enable="+c+" for sessionId="+b.h);lW(b.o,b.h,c);a.j.ed&&a.j.Tc().length&&a.s.info(cW,a.j.ed);b=null!==a.j.ed&&0<a.j.Tc().length?a.j.ed:null;c=a.h;"INITIAL"!=c.o?b=!1:(c.ab=null!=b,mW(c,b||""),nW(c,"STARTING"),b=!0);return b?!0:(a.s.K(dW),!1)},pW=l(["Starting with remote description: ",""]),qW=l(["Received remote description without session id."]);
WV.prototype.start=function(a){this.qd=!0;if("INITIAL"==this.getState()&&!oW(this))return!1;this.Za=a;this.s.info(pW,Fs(a.za()));var b=a.wa;null!=b&&(a=uQ(a,kQ(b,"opus")),this.pa=RP(b),this.N(new lR(this.pa)));a=rW(this,a);this.l=a=sW(this,a);b=a.j;if(null==b)return this.s.K(qW),UV(this,3948),this.stop(16,"Received remote description without session id."),!1;this.kc.forEach(function(c){a=zQ(a,c.Ml,c.ho)});Ub(this.kc);tW(this,b);this.h.start(b);this.g.start(a);uW(this.g,this.J);eW(this,"STARTED");
b=vW(a);0<b.length&&wW(this.g.g,b);xW(this);yW(this);this.mc.resolve();this.j.ve&&this.j.Sd&&VV(this.g);return!0};
var AW=function(a){var b=zW(a.oh);if(!b)return null;var c=null!=L(b,7)?Q(b,sG,7):new sG,d=null!=L(c,6)?Q(c,tG,6):new tG;"high"==a.j.Od&&N(d,84,!0);"high"==a.j.Ld?N(d,85,!0):"very-low"==a.j.Ld&&N(d,86,!0);S(c,6,d);S(b,7,c);return b},BW=l(["Connecting session to hangoutId=","."]),CW=l(["Upload log failed on connectToHangout."]),DW=l(["Uploaded logging data for ","."]),EW=l(["Uploading logging data for "," failed."]),FW=l(["No logging data to upload for ","."]);
WV.prototype.vh=function(a,b,c){var d=this,e=this.g.h;this.s.info(BW,a);this.Xf=b;this.g.hb=a;this.g.connect();c||(c=new KS);var f={hb:a,ha:b,Zc:c,lr:X(),mr:Date.now()};this.h.vh(a,b,c);this.H.g=f;this.mc.fa.then(function(){ge()&&De()&&0<w.navigator.maxTouchPoints&&UV(d,6589);nt(GW(d.H,AW(d),e),function(g){eU(d.s,g).K(CW)})});(a=this.g.Dm())?nt(a.then(function(g){return GW(d.H,g,e)}).then(function(){d.s.info(DW,e);UV(d,5817)}),function(g){eU(d.s,g).K(EW,e);UV(d,5818)}):(UV(this,5819),this.s.info(FW,
e))};var HW=l(["Attempting to pause session."]),IW=l(["Failed to pause session."]);WV.prototype.pause=function(){this.s.info(HW);if("INPROGRESS"!=this.getState())return!1;this.m.forEach(function(a){"d"!=a.getInfo().ka()&&pR(a,0)});if(!this.g.pause())return this.s.Ta(IW),!1;Bv(this.G);this.G=null;eW(this,"PAUSED");return!0};var JW=l(["Attempting to resume session."]),KW=l(["Failed to resume session."]);
WV.prototype.resume=function(){this.s.info(JW);if("PAUSED"!=this.getState())return!1;if(!this.g.resume())return this.s.Ta(KW),!1;this.h.resume();this.m.forEach(function(a){"d"!=a.getInfo().ka()&&pR(a,1)});this.N("Z");eW(this,"INPROGRESS");this.N(new kR([],[],this.qb()));xW(this);return!0};
var LW=l(["Ignoring call to stop with endCause: "," and debug information: ",", because it has already stopped."]),MW=l(["Stopping because stop called with endCause: ",".\n        Debug information (if any): ","\n        Stack trace:\n        ",""]);
WV.prototype.stop=function(a,b){if("STOPPED"==this.getState()||"FINISHED"==this.getState())return this.s.info(LW,a,b),!0;this.s.info(MW,a,b,Ff());b&&(this.Qc=b);wN(wN(wN(wN(this.o,this.g,"da",this.Zf),this.h,"da",this.bg),this.ua,"xa",this.cg),this.ta,"xa",this.dg);var c;if(c=this.j.Sd)a:switch(a){case 3:case 8:case 111:case 113:case 114:case 115:case 10:case 102:case 13:case 58:case 19:case 15:case 16:case 17:case 23:case 26:case 120:case 28:case 29:case 32:case 33:case 34:case 109:case 108:case 110:case 119:c=
!0;break a;default:c=!1}c&&VV(this.g);Bv(this.G);this.G=null;this.g.stop(a,b);this.h.stop(a,b);eW(this,"STOPPED",a,b);mt(Cv(2E3),this.Ca.resolve,this.Ca);return!0};WV.prototype.ba=function(){this.stop(this.qd?6:72);mt(this.Ca.fa,QM.prototype.ba,this)};
var NW=l(["Adding stream after end."]),OW=l(["Successfully added capture: ",""]),ZV=function(a,b){switch(a.getState()){case "STOPPED":case "FINISHED":return a.s.K(NW),!1}if(!a.ob)return a.ab.push(b),!0;var c=b.g,d=a.u[PW(c)];if(d)return b="sc"!=c.getContent(),QW(d,b),!1;d=RW(a.g,b);if(null==d)return!1;var e=YO(new TO(d),b.Sb()).ja();"v"==c.Ka&&a.mc.fa.then(function(){var f=NP(MP(IP(HP(KP(GP(JP(new FP,c.getId()),"v"),a.h.g),e.eb()),e.g),dS),30).ja();SW(a,[f])});TW(a.h,[e]);"v"==c.Ka&&a.o.listen(c,
"E",a.ag);d=UW(b,a.qb(),e);a.u[PW(c)]=d;a.N(new kR([d.getInfo()],[]));a.o.listen(b,"L",a.Yf);a.s.info(OW,Fs(b.za()));return!0},VW=l(["Removing stream after end."]);WV.prototype.ag=function(a){a=a.target;if("sc"==a.getContent())a=a.getId()+"ca",QW(this.u[a],!1),WW(this.h);else if("ca"==a.getContent()){var b=this.u[PW(a)];QW(b,!0);XW(this.h);YW(this.h,this.u[PW(a)].getInfo())}};
var ZW=function(a,b){a.Uf=b},$W=l(["Now has these "," participant(s): ",""]),aX=function(a,b){a.s.info($W,b.length,Fs(b));a=a.h;a.xa=new Set(b);null!=a.l&&bO(a.l)},bX=l(["Changed state from "," to ",""]),cX=l(["State change due to ",""]),eW=function(a,b,c,d){a.s.info(bX,a.getState(),b);d&&a.s.info(cX,d);a.dc!=b&&(a.dc=b,a.cc=c,a.N(new rR(b,c,d)))},dX=l(["Changing stream requests after end."]),eX=l(["Received stream request for DOWN stream from UI: ",""]);
WV.prototype.se=function(a){var b=this;switch(this.getState()){case "STOPPED":case "FINISHED":this.s.K(dX);return}this.j.Ph||(a=a.filter(function(c){c=new NO(c.Z(),c.Ba(),c.ka());return null===fX(b,c)}));a.forEach(function(c){b.s.info(eX,c);var d=b.La,e=c.Z(),f=c.Ba();c=c.yc();e+=f;c&&c.width*c.height>=dS.width*dS.height?d.h[e]||(d.h[e]=Va()):delete d.h[e]});null!=this.ua?gX(this.ua,a):hX(this,a)};WV.prototype.cg=function(a){iX(this,a.g);hX(this,a.g)};
var hX=function(a,b){UV(a,5150);a.g.se(b);a.h.se(b);a.lc={};b.forEach(function(c){if(c.h){var d=c.Z();c=c.Ba();a.lc[d+c]=!0}});a.m.forEach(a.nc,a)};WV.prototype.nc=function(a){var b=a.Z(),c=a.Ba();b=this.lc[b+c]||!1;b!=a.g&&(a.g=b,a.N("wa"))};
var iX=function(a,b){b=n(b);for(var c=b.next();!c.done;c=b.next()){c=c.value;var d=c.eb();if(null!=d){c=c.C;d=n(d);for(var e=d.next();!e.done;e=d.next())a.X.set(e.value,c)}}},jX=l(["Stream Requests for UP streams received from remote\n     side: ","."]),kX=l(["Audio Stream Requests for UP streams received unexpectedly from remote\n       side: ","."]),SW=function(a,b){a.s.info(jX,Fs(b));lX(a,mX(a,b));if(null!==a.ta){if(b.filter(function(c){return"v"==c.ka()}).length){gX(a.ta,b);return}a.s.K(kX,Fs(b))}nX(a,
b)},oX=l(["Muted unknown capture."]);WV.prototype.Yf=function(a){var b=a.target;a=b.Sb();b=b.g;var c=b.Ka;"a"==c?this.pe++:"v"==c&&this.rc++;(b=this.u[PW(b)])?(a=YO(new TO(b.getInfo()),a).ja(),b.h=a,YW(this.h,a)):this.s.K(oX)};var QW=function(a,b){a&&(b=aP(new TO(a.getInfo()),b).ja(),a.h=b)};WV.prototype.dg=function(a){nX(this,a.g)};
var pX=l(["Sending stream requests for UP streams to local session:\n     ","."]),nX=function(a,b){var c=b.filter(function(e){e=e.u;return!(null!=e&&a.h.g!=e)});if(0!=c.length){iX(a,c);a.J=bc(a.J.filter(function(e){return!c.some(function(f){return EP(e,f)})}),c);var d=a.j.rr;void 0!=d&&(a.J=a.J.map(function(e){return(e.j||0)>d?NP(new FP(e),d).ja():e}));a.s.info(pX,Fs(a.J));UV(a,5147);uW(a.g,a.J)}},mX=function(a,b){if(!mf||!Xp(59)||!a.j.bh)return!1;var c=null;b.forEach(function(d){!ld(d.Ba())&&d.yc()&&
(null==c||d.yc().width>c.yc().width)&&(c=d)});if(null==c)return!1;a=c.yc();return a.height*a.width<dS.width*dS.height},lX=function(a,b){if(a.l&&a.yb!=b)if(a.yb=b)a.Da=new zR,AR(a.Da,834),a.V=X(),a.L=null;else{var c=a.Da;a.Da=null;a.V=null;a.L=X();AR(c,835);a.Vf.then(function(d){return qX(d,BR(c))})}};WV.prototype.Ia=function(a){if(!this.j.Ph){var b=fX(this,a);if(null!=b)return b}return Sb(this.m,function(c){c=c.getInfo();return c.Z()==a.Z()&&c.ka()==a.Ka&&c.Ba()==a.getId()})};
WV.prototype.za=function(){var a=RS.prototype.za.call(this),b=AW(this);Object.assign(a,{sessionOptions:this.j.za(),audioOptions:this.j.kg.za(),systemInfo:b?b.va():"Unavailable",sessionEndDebugInfo:this.Qc});return a};
var fX=function(a,b){if(b.Z()!=a.Xf&&""!=b.Z())return null;a=Object.values(a.u).filter(function(c){c=c.g.g;return b.getId()==c.getId()&&b.Ka==c.Ka});return 1<a.length?a.find(function(c){return"sc"==c.g.g.getContent()}):1==a.length?a[0]:null},PW=function(a){var b=a.getId();a=a.getContent();return b+a};WV.prototype.qb=function(){return this.g.h};var vW=function(a){return(a=a.g)?cc(a.l):[]},rX=l(["Received local candidates before starting."]),sX=l(["Received local candidates after stopped."]);
WV.prototype.ph=function(a){var b=this;switch(this.getState()){case "INITIAL":this.s.K(rX);return;case "STOPPED":case "FINISHED":this.s.K(sX);return}a.g.forEach(function(c){2!=c.g&&0>Qb(b.Oa.Ma(),function(d){return oP(d,c)})&&b.Oa.add(c)});null==this.gb&&(this.gb=Av(function(){b.fg.fa.then(b.ak,null,b);b.gb=null},500))};var tX=l(["Sending local ICE candidates over to the other side:\n     ","."]);WV.prototype.ak=function(a){this.s.info(tX,Fs(this.Oa.Ma()));this.N(new mR(this.Oa.Ma(),a))};
var vX=function(a,b){if(b=oF(b))for(var c=0;c<b.length;c++){var d=b[c];if(null!=d&&2==BF(d)){var e=L(d,65)||0;0==CF(d)&&a.yb&&(e|=4096);var f=EF(d);if(null!=f&&a.X.has(f))e|=a.X.get(f);else{f=n(vF(d));for(var g=f.next();!g.done;g=f.next())if(g=g.value,a.X.has(g)){e|=a.X.get(g);break}}0==CF(d)&&vF(d).some(function(h){return uX(a,h).some(function(m){return!!m.getInfo().l})})&&(e|=8192);N(d,65,e)}}},yX=function(a,b){(b=oF(b))&&b.forEach(function(c){var d=vF(c)[0];if(1==CF(c)&&null==L(c,59)){var e=2==
BF(c)&&Sb(a.m,function(f){return f.getInfo().g==d});e&&FF(c,!e.getInfo().Zd())}else 0==CF(c)&&(e=wX(a,d).map(function(f){return f.g}).filter(function(f){return"sc"==f.getContent()}),FF(c,0<e.length),GF(c,xX(e)))})},zX=function(a){var b=oF(a);if(b){var c=[],d=[];b=n(b);for(var e=b.next();!e.done;e=b.next())e=e.value,1==CF(e)&&2==BF(e)?(e=EF(e)||vF(e)[0]||0,c.push(e)):d.push(e);b=HR(DR("cPNXuf"),50);c.length>b&&(b=new eE,b=N(b,1,c.length),c=N(b,2,c||[]),S(a,207,c),KF(a,d))}},AX=function(a,b,c){var d=
oF(b);d&&KF(b,d.filter(function(e){if(1==CF(e)){var f=EF(e)||vF(e)[0]||0,g=a.oe.get(f)||{},h=g.packets||0,m=g.Et||!1;e=L(e,10)||0;h=h==e;m=!m||!h;c&&(g.packets=e,g.Et=h,a.oe.set(f,g));return m}return!0}))},BX=function(a,b){var c=a.V&&15E3<wR(X(),a.V),d=a.L&&15E3<wR(X(),a.L);if(c||d){var e=oF(b).filter(function(f){return f&&2==BF(f)&&0==CF(f)});b=c&&e.some(function(f){return(L(f,57)||0)>=dS.width});e=d&&e.every(function(f){return(L(f,57)||0)<=cS.width});b&&UV(a,4627);e&&UV(a,4875);c&&(a.V=null);d&&
(a.L=null)}},DX=function(a,b){oF(b).forEach(function(c){return CX(a,c)})},CX=function(a,b){var c=vF(b)[0];if(0==CF(b)){var d=wX(a,c);0<d.length&&DF(b,d.every(function(e){return e.Sb()})?1:2);2==BF(b)?N(b,185,a.rc):1==BF(b)&&N(b,185,a.pe)}else 1==CF(b)&&2==BF(b)&&(a=Sb(a.m,function(e){return"v"==e.getInfo().ka()&&e.getInfo().eb()[0]==c}))&&DF(b,a.getInfo().qc()?1:2)};WV.prototype.Dh=function(a){this.N(new iR(a.id))};
WV.prototype.yj=function(a){DX(this,a.lb);vX(this,a.lb);EX(this,a.lb);SU(this.La,a.lb);MV(this.oc,a.lb);this.D&&KV(this.D,a.lb);this.ga&&OU(this.ga,a.lb);yX(this,a.lb);BX(this,a.lb);this.h.rn(a.lb);this.Uf(a.lb);this.bc=a.lb;this.Hf&&this.zb.update(a.lb);this.Fa||(this.Fa="PAUSED"!=this.getState());var b=this.Fa&&this.j.vg()<wR(X(),this.vd);AX(this,a.lb,b);b&&(zX(a.lb),this.j.Ci&&(b=this.Hf&&BV(this.zb)||a.lb,FX(this.H,b,this.qb())),this.vd=X(),this.bc=void 0,this.zb.reset(),this.La.g={},this.oc.g.clear(),
this.D&&this.D.j.clear(),this.ga&&QU(this.ga),this.Fa="PAUSED"!=this.getState());xU(this.Pc,a.lb);var c=!1;qF(a.lb).forEach(function(d){c=c||0<L(d,7)});this.eg=c;this.N(new gR(a.lb))};var GX=l(["Logging finished before media stopped!"]),HX=l(["Finalize log uploads failed."]);WV.prototype.pj=function(a){var b=this;IX(this.H,a.j,this.qb(),a.Mb,this.bc,a.g).then(function(){"STOPPED"!=b.getState()?b.s.K(GX):(eW(b,"FINISHED"),b.Ca.resolve())},function(c){eU(b.s,c).K(HX)})};
WV.prototype.Aj=function(a){var b=this.La,c=a.ha,d=a.sourceId,e=a.ssrc,f=c+d;(a=a.g)&&a.width*a.height>=dS.width*dS.height&&(a=b.h[f])&&(a=Va()-a,0<=a&&(b.g[e]=b.g[e]||[],b.g[e].push(a),delete b.h[f],bg(b.s,"participantId: "+c+" sourceId: "+d+" ssrc: "+(e+" latency: "+a))))};
WV.prototype.Gj=function(a){var b=a.source?this.Ia(a.source):null,c=b?b.getInfo().eb():[];b=this.oc;a=a.id;c=0<c.length?c[0]:null;if(b.h.has(a)){var d=Va()-b.h.get(a).he,e=b.h.get(a).ssrc;0<=d&&2147483647>=d?(b.g.has(e)||b.g.set(e,[]),b.g.get(e).push(d),bg(b.s,"Logged ssrc: "+e+" duration: "+d)):D(b.s,"Ignore invalid main feed ssrc: "+e+" duration: "+d)}else D(b.s,"Skip logging duration for id: "+a);c?b.h.set(a,{ssrc:c,he:Va()}):b.h.delete(a)};var JX=l(["Latency event: ","."]);
WV.prototype.nj=function(a){this.s.info(JX,a.message);"transport writable"==a.message?(this.gg=!0,this.na||Av(this.lh,2E3,this),this.N(new kR([],[],this.qb())),yW(this)):"recv first video packet"==a.message?(this.na=!0,yW(this)):"transport not writable"==a.message&&(a=this.h,KX(a.D),a.j&&qO(a.j),a.l&&qO(a.l))};WV.prototype.lh=function(){this.na||(this.na=!0,yW(this))};
var yW=function(a){"STARTED"==a.getState()&&a.gg&&a.na&&(eW(a,"INPROGRESS"),a.N(new kR([],[],a.qb())))},LX=l(["Received data on the broadcast data channel. Data: ",""]);WV.prototype.Yi=function(a){switch(a.label){case "collections":this.N(new DU(a.payload));break;case "dataSendChannel":this.s.Ta(LX,a.payload);break;default:this.N(new BU(a.ha,a.payload))}};
var xW=function(a){a.G=Av(a.kh,5E3,a)},MX=l(["Session started receiving audio."]),NX=l(["Session stopped receiving audio!"]),OX=l(["Session started receiving video."]),PX=l(["Session stopped receiving video!"]);WV.prototype.Cj=function(a){if(null!=this.G){a.g!=this.bd&&(a.g?this.s.info(MX):this.s.K(NX),this.bd=a.g);a.j!=this.td&&(a.j?this.s.info(OX):this.s.K(PX),this.td=a.j);var b=X();a.g&&(this.Ab=b);a.j&&(this.Kb=b);if(a.g||a.j)Bv(this.G),this.G=null,xW(this)}};
var QX=l(["Session has never received audio."]),RX=l(["Session has not received audio for "," seconds."]),SX=l(["Session has never received video."]),TX=l(["Session has not received video for "," seconds."]);WV.prototype.kh=function(){var a=X(),b=wR(a,this.Ab)/1E3;a=wR(a,this.Kb)/1E3;this.N(new hR(this.h.g,b,a));this.Ab==this.xa?this.s.info(QX):5E3<b&&this.s.info(RX,b);this.Kb==this.xa?this.s.info(SX):5E3<a&&this.s.info(TX,a);xW(this)};
var UX=l(["Stopping session because local session stopped with endCause: ","."]),VX=l(["Local session stopped before starting."]),WX=l(["Local session stopped after already stopped."]);WV.prototype.Zf=function(a){if("STOPPED"==this.g.getState()){this.s.info(UX,a.Mb);switch(this.getState()){case "INITIAL":this.s.K(VX);eW(this,"STOPPED",a.Mb,a.g);return;case "STOPPED":this.s.K(WX);return}this.stop(a.Mb,a.g)}};var XX=l(["Remote session stopped before starting."]),YX=l(["Remote session stopped after already stopped."]);
WV.prototype.bg=function(a){if("STOPPED"==this.h.getState()){switch(this.getState()){case "INITIAL":this.s.K(XX);return;case "STOPPED":this.s.K(YX);return}this.stop(a.Mb,a.g)}};WV.prototype.qh=function(a){this.N(a)};
var ZX=l(["Remote description changed before starting."]),$X=l(["Remote description changed after end."]),aY=l(["Received modified remote description: ","."]),bY=l(["Session IDs are now set: LocalSession ID: ",",\n       RemoteSession ID: ",". Note: Session\n       is not yet active."]),tW=function(a,b){null!=b&&null==a.h.g&&(cY(a.h,b),a.H.l=b,a.fg.resolve(b),a.s.info(bY,a.qb(),dY(a.h)))},eY=l(["Received remote streams before starting."]),fY=l(["Received remote streams after end."]),gY=l(["Queuing stream changes. addedStreams.length=",
",\n         removedStreams.length=",""]),hY=l(["Sending stream adds. addedStreams.length=",",\n         removedStreams.length=",""]);
WV.prototype.th=function(a){var b=a.Sc,c=a.Bc;a=a.removed;switch(this.getState()){case "INITIAL":this.s.K(eY);return;case "STOPPED":case "FINISHED":this.s.K(fY);return}if(0<b.length||0<a.length)"STARTING"==this.getState()?(this.s.info(gY,b.length,a.length),this.kc.push({Ml:b,ho:a})):(this.s.info(hY,b.length,a.length),this.l=zQ(this.l,b,a),this.g.update(this.l,a));Hb(a,this.Yj,this);Hb(c,this.rk,this);Hb(b,this.jh,this);(0<a.length||0<c.length||0<b.length)&&this.N(new kR(bc(b,c),a))};
WV.prototype.jh=function(a){a=new NV(this.g.h,a);this.nc(a);this.m.push(a);this.D&&IV(this.D,a)};var iY=l(["Tried to update non-existent remote stream: ","."]);WV.prototype.rk=function(a){var b=this.m.findIndex(function(d){return d.getInfo().matches(a)});if(-1==b)this.s.K(iY,a);else{var c=new NV(this.g.h,a);this.nc(c);this.D&&DV(this.D,this.m[b],c);this.m[b]=c}};var jY=l(["Tried to remove non-existent remote stream: ","."]);
WV.prototype.Yj=function(a){var b=Qb(this.m,function(d){return d.getInfo().matches(a)});if(-1==b)this.s.K(jY,a);else{var c=this.m[b];Yb(this.m,b);this.D&&JV(this.D,c);pR(c,0)}};var kY=l(["Received remote stream requests before starting."]),lY=l(["Received remote stream requests after end."]);WV.prototype.Xj=function(a){switch(this.getState()){case "INITIAL":this.s.K(kY);return;case "STOPPED":case "FINISHED":this.s.K(lY);return}UV(this,5148);SW(this,a.g)};
var mY=l(["Setting audio options to\n     ","."]),pY=function(a,b){null!=b&&(a.s.info(mY,Fs(b.za())),a.j=mT(a.j,b),a.l=nY(a,a.l),b=a.l,null!=b.wa&&oY(a.g,b))},nY=function(a,b){var c=b.wa;a=a.j.kg;a.o||(c=iQ(c));var d=RP(c),e=Qb(d,function(h){return rP(h,"OPUS")});if(-1!=e){if(!a.u&&1<d.length)Yb(d,e);else{var f=a.D&&!(mf&&!Xp(48));f=vP(vP(vP(new sP(d[e]),"stereo",a.F?"1":"0"),"useinbandfec",a.G?"1":"0"),"usedtx",f?"1":"0");var g=HR(DR("E0Ul7"),-1);-1!=g&&vP(f,"ptime",g.toString());d[e]=f.ja()}c=WP(c,
d)}a=a.m;null!=a&&(c=kQ(c,a));return uQ(b,c)},rW=function(a,b){if(!b.qa||0==RP(b.qa).length)return b;a.j.aj()||(b=rQ(b,function(f){return!rP(f,"h264")}));a.j.rf()||(b=rQ(b,function(f){return!rP(f,"vp9")}));b=qQ(b,kQ(b.qa,"vp8"));var c=VS(a.g.qn()),d=a.j.ai&&c||a.j.qf,e=RP(b.qa).some(function(f){return rP(f,"vp9")});d&&e?b=qQ(b,kQ(b.qa,"vp9")):a.j.rf()&&(e||UV(a,5772),c||UV(a,5771));Qb(RP(b.qa),function(f){return rP(f,"h264")});return b},sW=function(a,b){if(b.wa&&UP(b.wa)!=UP(a.g.g.localDescription.wa)){var c=
UP(a.g.g.localDescription.wa);b=uQ(b,$P(b.wa,c))}b.qa&&UP(b.qa)!=UP(a.g.g.localDescription.qa)&&(c=UP(a.g.g.localDescription.qa),b=qQ(b,$P(b.qa,c)));b.Wa&&UP(b.Wa)!=UP(a.g.g.localDescription.Wa)&&(a=UP(a.g.g.localDescription.Wa),b=vQ(b,$P(b.Wa,a)));return b};WV.prototype.toString=function(){return"Session(Id="+this.h.g+" useAudio="+this.j.je+" useVideo="+this.j.Yk+")"};
var EX=function(a,b){a.Pa&&(N(b,75,Math.round(100*a.Pa.level)),N(b,74,!a.Pa.charging))},UV=function(a,b,c){c=void 0===c?{}:c;a.mh.then(function(d){c.sessionId=a.h.g||void 0;d.Y(b,c)})},wX=function(a,b){return Object.values(a.u).filter(function(c){return c.getInfo().eb()[0]===b}).map(function(c){return c.g})},uX=function(a,b){return Object.values(a.u).filter(function(c){return c.getInfo().eb()[0]===b})},xX=function(a){switch(a.find(function(){return!1})&&0){case 1:return 2;case 2:return 3;case 3:return 4;
case 4:return 5;default:return 0}};var qY=function(){QM.call(this);this.g=Va();this.h=new yv(1E3);jv(this.h,"tick",x(this.j,this));this.h.start()};t(qY,QM);qY.prototype.j=function(){var a=Va();6E4<a-this.g&&this.N("ya");this.g=a};Ja(qY);var sY=function(a){T.call(this);var b=this;this.s=new bU("realtime.media.stats.BandwidthLatencyReporter");this.o=a;this.g=new Map;this.l=jt();this.m=jt();this.h=new Map([["call connect",25],["bandwidth 500",10],["bandwidth 1000",11],["bandwidth 1500",12],["bandwidth 2500",26],["bandwidth 3150",27],["bandwidth HD",28]]);this.j=new Map;this.h.forEach(function(c){b.j.set(c,jt())});a=Array.from(this.j.values(),function(c){return c.fa});a=ht(a);ft([a,this.l.fa,this.m.fa]).then(function(){rY(b)})};
t(sY,T);var tY=l(["Latency: "," Id: "," was marked at: ",""]),uY=function(a,b){if(a.h.has(b)){var c=a.h.get(b);if(!a.g.has(c)&&(25===c||a.g.has(25))){var d=X();a.g.set(c,d);a.j.get(c).resolve();a.s.info(tY,b,c,d);25===c&&Cv(3E5).then(function(){a.m.resolve()})}}},vY=l(["",""]),rY=function(a){if(0!==a.g.size){var b=new zR;a.g.forEach(function(d,e){AR(b,e,d.g)});var c=BR(b);a.s.info(vY,c.va());a.o.then(function(d){return qX(d,c)});a.h.clear();a.g.clear()}};var wY={SUCCESS:0,Cp:100,fF:101,jH:102,kH:103,kx:200,vx:221,up:201,Yx:202,Gy:203,mB:204,yB:205,aE:206,bE:207,fE:208,EE:209,Zp:210,TE:211,BE:222,XJ:223,VE:212,EF:213,DF:214,LF:215,oH:216,vH:217,mH:255,UJ:218,USER_CANCELED:219,hK:252,tK:220,sA:224,SE:225,QE:226,RJ:227,Hz:228,MB:229,yF:230,RE:231,xC:232,KC:233,MC:234,JF:235,FE:236,px:237,ox:238,rA:239,JE:240,LC:241,BD:242,Gz:243,pC:244,tH:245,sH:249,ED:246,Mz:247,gA:250,WB:248,zp:251,jI:253,GE:254,sK:256,Iz:257,Ix:300,Cy:301,iz:302,lz:332,mz:333,nz:334,
jz:335,oz:336,rz:337,pz:338,kz:350,DC:303,FC:304,tE:305,pH:306,NC:339,aI:307,Yz:308,kI:309,zC:310,uA:311,nH:312,lH:313,EC:314,qC:315,Zz:316,IB:317,Ry:318,wx:319,PE:320,UE:321,SJ:322,vC:323,GD:324,AD:325,xx:326,qH:327,uH:328,rH:329,FD:330,CD:331,Ky:340,Ly:341,Jy:342,SB:343,uF:344,tF:345,pI:346,vA:347,oI:348,fK:349,UH:351};var yY=function(a,b,c,d,e){QM.call(this);var f=this;this.s=Zf("realtime.media.session.SessionManager");this.J=a;this.X=b;this.L=this.X.h;this.g=xY(this.X,"realtime.media.session.SessionManager");this.u=new W(this);this.T(this.u);this.Kb=e;this.Fa=this.Da=this.h=null;this.G="INITIAL";this.ga=null;this.m=new Map;xc(qR,function(g){f.m.set(g,new Set)});this.Pa=jt();this.l=new Set;this.na=new Map;this.j=null;this.D=new gT;this.V=new BQ;this.rc=c;this.yb=d;this.o=[];this.ua=null;this.ab=[];$R(this,{sessionManagerState:function(){return f.getState()},
sessions:function(){return Array.from(f.l,function(g){return g.za()})}});this.Oa=jt();this.Ca=new Set;this.La=this.pa=null;this.zb=uK(a,NK);this.ta=uK(a,MK);this.Za=new sY(this.ta.then());this.H=new zR;this.gb=Ia;this.ob=new qL(this);this.Ab=this.ob.signal();this.nb=new qL(this);this.lc=sL(this.nb);this.xa=!1;this.bc=GR(DR("nlZjzc"))};t(yY,QM);yY.prototype.ba=function(){this.l.forEach(Cs);QM.prototype.ba.call(this)};yY.prototype.getState=function(){return this.G};
var zY=function(a,b,c,d){b!=a.G&&(a.g.info("SessionManager changed state from "+a.G+" to "+b),a.G=b,a.N(new rR(b,c,d)))};yY.prototype.connect=function(a,b,c){if("STARTING"!=this.getState()&&"INPROGRESS"!=this.getState())return!1;this.h=a;this.Da=b;this.Fa=c;this.g.info("Connecting to hangoutId: "+a+", with participantId: "+b+" and sessionLogData: "+c);this.Oa.resolve(this.h);bc(AY(this),BY(this),CY(this)).forEach(function(d){d.vh(a,b,c)});return!0};
var DY=function(a,b,c){c.Vb()?(a=new yP("call/"+c.Vb(),1,null,"collections"),b=b.la(),b.l.set(a.Be(),a)):C(a.s,"Collections' push channel not added. ClientResource not available");return b},FY=function(a){var b=AY(a);if(0<b.length)return b;b=CY(a);return 0<b.length?b:EY(a)},aaa=function(a){var b=[];FY(a).forEach(function(c){dc(b,Object.values(c.u))});return b},GY=function(a){var b=[];FY(a).forEach(function(c){dc(b,c.m)});return b},baa=function(a){var b=FY(a);b=0<b.length&&b.every(function(c){return c.Wf});
b!=a.xa&&a.ob.W(a.Ab,b);a.xa=b},caa=function(a,b){a.gb=b},HY=function(a,b){a.l.forEach(function(c){c.j.Sd||(c.j=jT(c.j,b),c.j.ve&&VV(c.g))});a.D=jT(a.D,b)},IY=function(a){a.D.ve||(a.l.forEach(function(b){b.j.ve||(b.j=kT(b.j),b.j.Sd&&VV(b.g))}),a.D=kT(a.D))},eaa=function(a,b){a.g.info("Adding capture: "+Fs(b.za()));var c=JY(a).map(function(d){return ZV(d,b)}).every(function(d){return d})||"sc"==b.g.getContent();c?a.o.push(b):daa(a,b);return c},daa=function(a,b){JY(a).map(function(c){a:{switch(c.getState()){case "STOPPED":case "FINISHED":c.s.K(VW);
c=!1;break a}if(c.ob){var d=b.g;"sc"==d.getContent()?XW(c.h):"v"==d.Ka&&wN(c.o,d,"E",c.ag);wN(c.o,b,"L",c.Yf);var e=c.g;switch(e.l){case "STOPPED":e.j.K("Remove local stream called after stopped.")}var f=e.g;KY(f,"Removing capture="+b);var g=LY(b,f.g);f.Da.delete(b);wN(f.j,b,"N",f.Km);f.dc&&wN(f.j,b,"L",f.nn);if(f.Za){var h=f.Za;b===h.h&&null!==b&&wN(h,b,MY,h.m)}"d"!=b.ka()&&(NY(f,g),OY(f,null,b));b.Da(e.h);e.u.delete(b);if(e=c.u[PW(d)])delete c.u[PW(d)],c.N(new kR([],[e.getInfo()])),faa(c.h,e.getInfo());
c=!0}else c=Zb(c.ab,b)}return c}).every(function(c){return c})&&Zb(a.o,b)},gaa=function(a,b){a.ua=b&&b.size?new Map(b):null;a.l.forEach(function(c){return c.g.Uj(a.ua)})},haa=function(a,b){a.pa=b;a.N("ba")};
yY.prototype.Ia=function(a,b){var c=this.pa&&this.pa(a);if(c)return c;c=bc(AY(this),CY(this),EY(this));if(null!=b){for(var d,e=n(this.l),f=e.next();!f.done;f=e.next())if(f=f.value,f.qb()==b){d=f;break}d&&c.unshift(d)}if(0==c.length)return this.g.info("No active session to get stream from to render source: "+a),null;for(d=0;d<c.length;d++)if(e=c[d],b=e.Ia(a),null!=b)return a="Using stream: "+b.getInfo()+" from "+e.qb()+" to render source: "+a,this.g.g.g(PY,a),b;this.g.K("Unable to find stream to use to render source: "+
a);return null};yY.prototype.se=function(a){bc(EY(this),CY(this),AY(this)).forEach(function(b){b.se(a)})};var iaa=function(a,b){a.l.forEach(function(c){aX(c,b)});a.ab=b};yY.prototype.stop=function(a,b){this.g.info("Stopping video call because stop called with endCause: "+a);if("INITIAL"==this.getState()||"STOPPED"==this.getState()||"FINISHED"==this.getState())return!1;this.Za.l.resolve();zY(this,"STOPPED",a,b);this.l.forEach(function(c){c.stop(a,b)});return!0};
var SY=function(a){var b=UR&&UR.j?bt(UR.j):bt(null),c=a.D,d=c.ed||a.h;c=null!=d&&c.Ol?lT(c,d):lT(c,null);var e=jaa(a,c);if(null==e)return a.g.K("Did not create cloud session."),null;kaa(e.g).then(e.Zi,null,e).then(function(f){if(f){a.g.info("Local session initialize completed.");f=DY(a,f,c);c.je||(f=uQ(f,f.wa.Of([laa])));var g=EQ(a.V,f,c.ed,c.Tc(),c.Vb(),c.Tw,c.Ph,c.Hh());N(g,22,a.bc);c.ij()&&e.g.Sk()&&(QY(a,4355),N(g,9,!0),N(g,11,1));AR(a.H,878);a.ta.then(function(h){return qX(h,BR(a.H))});nt(b.then(function(h){h&&
N(g,19,h)}).then(function(){return a.ga.add(g)}).then(function(h){if(1>h.length||null==h[0])QY(a,3945),e.stop(16,"Received null session proto.");else{var m=h[0];null!=L(m,17)&&null!=L(m,21)&&a.nb.W(a.lc,M(m.Hh(),1,0)===L(m,21));m=JQ(a.V,m);null==m?(QY(a,3947),e.stop(16,"Error parsing session proto.")):RY(a,e,m)}return h}),function(h){var m="Failed to add session to collection. Error: "+h;a.g.K(m);QY(a,3949,{Zb:m});m.includes("Malformed RTCIceServer")&&QY(a,4264);e.stop("transport_unavailable"==h.Yc?
108:16,m);throw h;})}else a.g.error("Local session initialize failed to create local offer."),QY(a,3942),e.stop(16,"Local session initialize failed to create local offer.")},function(f){var g="Failed to initialize session. Error: "+Bf(f);a.g.K(g);QY(a,3943,{sessionId:e.h.g||void 0,Zb:g});e.stop(109,"Failed to initialize session.");throw f;});e.g.jo()&&(a.Ca.add(e),maa(a));e.nb.j.attach(function(){baa(a)});return e},oaa=function(a,b){var c=a.L.ug();c&&(b=b.la(),b.Cg=c);if(c=a.L.vg()){var d=b.la();
b.Cg&&(c=Math.max(b.Cg,c));d.zj=c;b=d}c=a.L.xg();b=b.la();b.Hf=c;c=naa(a.X,a.J,b);c.Uj(a.ua);return new WV(a.J,a.X,c,b,a.Kb)},jaa=function(a,b){b=oaa(a,b);if(null==b)return null;a.l.add(b);a.m.get(b.getState()).add(b);a.na.set(b.qb(),b.getState());b.ua=a.yb;b.o.listen(b.ua,"xa",b.cg);b.ta=a.rc;b.o.listen(b.ta,"xa",b.dg);aX(b,a.ab);ZW(b,function(c){return a.gb(c)});a.u.listen(b,["sa","ta","X","ba","W"],a.N);a.u.listen(b.g,IS,function(c){return a.N(c)});a.u.listen(b.h,NS,function(c){return a.N(c)});
a.u.listen(b,"da",a.kc);a.u.listen(b,"V",a.cc);a.u.listen(b,"T",a.dc);a.u.listen(b.g,IS,a.nc);a.u.listen(b,"U",a.mc);return b},paa=function(a,b,c){b.start(c);a.o.forEach(function(d){ZV(b,d)})},JY=function(a){return bc(Array.from(a.m.get("INITIAL")),EY(a),CY(a),BY(a),AY(a))},BY=function(a){return Array.from(a.m.get("PAUSED"))},AY=function(a){return Array.from(a.m.get("INPROGRESS"))},CY=function(a){return Array.from(a.m.get("STARTED"))},EY=function(a){return Array.from(a.m.get("STARTING"))};
yY.prototype.dc=function(a){RY(this,a.h,a.sessionDescription)};
var RY=function(a,b,c){var d=b.getState(),e=0!=cc(c.h).length;var f=!1;var g=c.g;g&&null!=g.g&&(f=2==g.g.split(" ").length);f=e!=f;e=c.g;g=null!=e&&null!=e.j&&null!=e.h&&0<cc(e.l).length;e=f&&"INITIAL"==d;f=f&&g&&("INITIAL"==d||"STARTING"==d);d="INITIAL"!=d&&"STARTING"!=d;g=c.j;null!=g&&tW(b,g);e&&(a.g.info("Received remote description for session "+dY(b.h)+" with sufficient data to allow session preparation."),oW(b));if(f)a.g.info("Received remote description for session "+dY(b.h)+" with sufficient data to allow starting the session."),
paa(a,b,c);else if(d)a:{switch(b.getState()){case "INITIAL":case "STARTING":b.s.K(ZX);break a;case "STOPPED":case "FINISHED":b.s.K($X);break a}sQ(b.Za,c)||(b.Za.g.g!=c.g.g&&b.N(new nR(c.j)),b.Za=vQ(c,c.Wa),b.s.info(aY,Fs(c.za())),a=vW(c),0<a.length&&wW(b.g.g,a),c=nY(b,c),c=rW(b,c),b.l=xQ(wQ(b.l,c.g),cc(c.h)),a=b.l,(d=a.wa)?d=lQ(d,c.wa):d=c.wa,(e=a.qa)?e=lQ(e,c.qa):e=c.qa,a=qQ(uQ(a,d),e),b.l=a,a=b.l.wa,null!=a&&(b.pa=RP(a),b.N(new lR(b.pa))),null==a&&null==b.l.qa||b.g.update(b.l,[]))}};
yY.prototype.nc=function(a){uY(this.Za,a.message)};yY.prototype.mc=function(){var a=this.j;TY(this,a,a,7)};
yY.prototype.cc=function(a){var b=this;switch(this.getState()){case "INITIAL":C(this.s,"Received local candidates before starting.");return;case "STOPPED":case "FINISHED":C(this.s,"Received local candiates after end.");return}var c=a.target,d=a.g.map(function(g){g=b.V.h(g);N(g,9,void 0);return g});if(!(1>d.length)){var e=new bC;Cl(e,6,d);if(d=c.g.g.localDescription.g)if(N(e,4,d.j),N(e,5,d.h),d.g){var f=new cC;N(f,1,d.g.split(" ")[0]);N(f,2,d.g.split(" ")[1]);S(e,2,f)}d=cc(c.g.g.localDescription.h).map(function(g){return b.V.Zl(g)});
c=new eC;N(c,1,4);S(c,2,e);Cl(c,4,d);e=new hC;e.u(a.sessionId);kC(e,[c]);MN(this.ga,e)}};
yY.prototype.kc=function(a){var b=a.target,c=this.na.get(b.qb()),d=b.getState();if(c!=d){this.na.set(b.qb(),d);this.m.get(c).delete(b);this.m.get(d).add(b);"INPROGRESS"==d&&this.Pa.resolve(b);switch(d){case "STARTED":qaa(this,b);break;case "INPROGRESS":raa(this,b);break;case "STOPPED":saa(this,b,a.Mb,a.g);break;case "FINISHED":this.m.get(b.getState()).delete(b),this.na.delete(b.qb()),this.l.delete(b),this.Ca.delete(b),Cs(b),this.l.size==this.m.get("FINISHED").size&&("STOPPED"!=this.G?C(this.s,"Session Manager finished before stopping."):
zY(this,"FINISHED"))}this.N(a)}};
var qaa=function(a,b){null!=a.h&&null!=a.Da&&null!=a.Fa&&(b.vh(a.h,a.Da,a.Fa),AY(a).filter(function(c){return c!=b}).forEach(function(c){TY(a,c,b)}))},raa=function(a,b){if("INITIAL"==a.getState()||"STOPPED"==a.getState()||"FINISHED"==a.getState())ag(a.s,"Should not have new active sessions now.");else{"STARTING"==a.getState()&&zY(a,"INPROGRESS");pY(b,a.D.kg);var c=b.qb();AY(a).filter(function(d){return c!=d.qb()}).forEach(function(d){d.pause()})}},saa=function(a,b,c,d){a.o.forEach(function(f){f.Da(b.qb())});
if(26==c)c=a.j,a.j=SY(a),c&&(a.j?TY(a,c,a.j,6):a.g.error("Cloud session"+c.h.g+" to cloud handoff failed"));else{var e=a.m.get("STOPPED").size+a.m.get("FINISHED").size;a.l.size==e?"STOPPED"!=a.G&&(a.g.info("All sessions now stopped."),a.stop(c,d)):0==AY(a).length&&BY(a).forEach(function(f){f.resume();TY(a,b,f)})}},TY=function(a,b,c,d){d=void 0===d?6:d;var e=X().g;c.g.xo();var f=c.g.wm();if(f){var g=d;f.then(function(){var h=X().g;7==d&&(AR(a.H,29,e),AR(a.H,30,h),a.ta.then(function(m){return qX(m,
BR(a.H))}));UY(a,b,c,h-e,g)},function(){UY(a,b,c,null,g)})}},UY=function(a,b,c,d,e){var f=BG(AG(zG(N(yG(new wG,e),2,0),b.h.g),c.h.g),d);f=UG(f);nt(GW(b.H,f,b.qb()),function(g){a.g.K("Upload log failed during handoff: "+g)});6==e?(a.g.info("Cloud to cloud handoff took: "+d+" ms"),QY(a,null===d?4653:4652,{sessionId:c.h.g||void 0})):7==e&&(a.g.info("Cloud to cloud DTLS handoff took: "+d+" ms"),QY(a,null===d?5589:5588,{sessionId:c.h.g||void 0}))},maa=function(a){a.La||(a.La=qY.Ob(),a.u.listen(a.La,"ya",
a.oc))};yY.prototype.oc=function(){var a=this,b=new Set(this.Ca);0===b.size?D(this.s,"SleepWatcher suspend ignored. No effected sessions."):(this.g.info("SleepWatcher fired. Waiting 3 seconds to determine if media is live."),Cv(3E3).then(function(){a.j.Wm()?(a.g.info("SleepWatcher fired but session is still live. Not suspending."),QY(a,4588),a.N("$")):(a.g.K("Suspend triggered by SleepWatcher, effecting "+(b.size+" session(s).")),QY(a,2056),taa(a,b),a.N("aa"))}))};
var taa=function(a,b){var c=a.o.concat().filter(function(d){return"v"===d.g.Ka});D(a.s,"Muting "+c.length+" video capture(s).");c.forEach(function(d){return VY(d)});Cv(2E3).then(function(){b.forEach(function(d){switch(a.getState()){case "STOPPED":case "FINISHED":D(a.s,"Suspend ignored for finished/stopped session. "+d);return}D(a.s,"Ending session due to SleepWatcher trigger. "+d);a.stop(112,"JS was suspended for too long.")})})},vaa=function(a,b){var c=a.j;c&&c.g.Sk()&&b.ij()?uK(a.J,RK).then(function(d){uaa(d);
QY(a,4899)},function(){return QY(a,4900)}):QY(a,4900)},QY=function(a,b,c){a.zb.then(function(d){return d.Y(b,c)})};GP(new FP,"a").ja();var laa=LP(GP(new FP,"a"),!1).ja();NP(MP(GP(new FP,"v"),bS),30).ja();NP(MP(GP(new FP,"v"),dS),30).ja();var WY=function(a,b,c,d,e){fR.call(this);var f=this;this.H=new BQ;this.h=a;this.G=b;this.D=e;this.g=new Map;this.l=new $Q;this.l.F=this;this.u=new W(this);this.T(this.u);this.G.onChange.attach(function(){return f.m()},this);this.u.listen(this.D,["ba","da"],this.m);d.forEach(this.j,this)};t(WY,fR);var waa=function(a,b,c,d,e){return new WY(a,b,c,d,e)};WY.prototype.j=function(a){""==a.Z()&&(a.j=this.h);this.l.add(a)};WY.prototype.Ce=function(a){return a==this.h?this.l:this.g.get(a)||null};
WY.prototype.o=function(a){var b=this,c=new Set;a.forEach(function(d){if(d!=b.h&&(c.add(d),!b.g.has(d))){var e=new $Q;e.F=b;b.g.set(d,e);b.N(new eR("Q",d,e))}});this.g.forEach(function(d,e){c.has(e)||b.g.delete(e)&&b.N(new eR("R",e,d))});this.m()};
WY.prototype.m=function(){var a=this,b=new Set;this.G.get().forEach(function(c){var d=c.Z();if(d&&(d=a.g.get(d))){var e=a.H,f=c.Z();var g=c.Ba();var h=LQ(c.ka()),m="un";if(null!=Q(c,tC,7)){a:{var q=L(Q(c,tC,7),1);switch(q){case 1:m="ca";break a;case 2:m="sc";break a}C(AQ,"Unknown capture type: "+q);m="un"}q=IQ(R(Q(c,tC,7),uC,3),e.D,e)||void 0}if(null!=Q(c,vC,8)){var r=rl(Q(c,vC,8),2);r="number"===typeof r?r:void 0}var u=Q(c,qC,5)&&Q(c,qC,5).qc()?"mu":"li";e=null;null!=f&&null!=g&&null!=h&&(e=RO({Zh:f,
id:g,mediaType:h,content:m,state:u,io:r,lp:q}));null!=Q(c,qC,5)&&(f=Q(c,qC,5),L(f,2));null!=Q(c,rC,6)&&L(Q(c,rC,6),1);if(g=e)(f=aR(d,g.Ka,g.getId(),g.Z()))?(OO(f,g.getContent()),d=g.Ie,f.Ie!=d&&(f.Ie=d,f.N("F")),PO(f,g.getState()),d=g.pd&&cc(g.pd),LO(f,d)&&f.N("H")):d.add(g)}b.add(XY(c.Z(),c.Ba()))});GY(this.D).forEach(function(c){var d=c.Z(),e=c.Ba();if(d!=a.h&&!b.has(d+"/"+e)){c=c.getInfo().ka();var f=a.g.get(d);null==f||aR(f,c,e,d)||f.add(RO({Zh:d,id:e,mediaType:c}));b.add(d+"/"+e)}});this.g.forEach(function(c){Array.from(c.g).forEach(function(d){b.has(XY(d.Z(),
d.getId()))||c.remove(d)})})};var XY=function(a,b){return a+"/"+b};var YY=new iK("y89nuf","Z6rzZb",[RK]),xaa=new iK("L6b6Xe","BezZ2c");var yaa={IE:0,BA:1,AA:2,vF:3,II:4,HI:5,GI:6,SUCCESS:7},zaa=[4,5,6,7];var ZY=function(a){this.C=a.C;this.D=a.D;this.u=a.u;this.m=a.m;this.o=a.o;this.H=a.M;this.F=a.F;this.G=a.H;this.M=a.J;this.h=a.h;this.l=a.l;this.g=a.g;this.j=a.j;this.J=a.G};
ZY.prototype.toString=function(){return"AudioConfig(deviceId="+this.g+", updateDeviceId="+(this.l+", useAecDelayCorrection=")+(this.C+", useInternalAgc=")+(this.D+", useDucking=")+(this.u+", useAec=")+(this.m+", useAgc=")+(this.o+", useNoiseSuppression=")+(this.H+", useHighpassFilter=")+(this.F+", useMirroring=")+(this.G+", useTransisentSuppression=")+(this.M+", disableWhitelistAec=")+(this.h+")treatAsScreencast=")+(this.j+")")};
ZY.prototype.equals=function(a){return this===a?!0:null===a?!1:this.C===a.C&&this.D===a.D&&this.u===a.u&&this.m===a.m&&this.o===a.o&&this.H===a.H&&this.F===a.F&&this.G===a.G&&this.M===a.M&&this.h===a.h&&this.l===a.l&&this.g===a.g&&this.j===a.j&&this.J==a.J};ZY.prototype.getDeviceId=function(){return this.g};var $Y=function(){this.j=!1;this.D=this.C=!0;this.u=!1;this.l=this.h=this.J=this.H=this.F=this.M=this.o=this.m=!0;this.G=this.g=null};$Y.prototype.ja=function(){return new ZY(this)};(new $Y).ja();var aZ=function(a){this.l=a.l;this.h=a.h;this.g=a.g;this.j=a.j};aZ.prototype.toString=function(){return"VideoConfig(deviceId="+this.h+", updateDeviceId="+(this.l+", croppable=")+(this.g+", treatAsScreencast=")+(this.j+")")};aZ.prototype.getDeviceId=function(){return this.h};aZ.prototype.Zd=function(){return this.g};var bZ=function(){this.j=!1;this.l=!0;this.h=null;this.g=!0};bZ.prototype.ja=function(){return new aZ(this)};(new bZ).ja();var cZ=function(a){this.id=a.Sa;this.displayName=a.g;this.groupId=a.C;this.g=a.h;this.isSelected=a.l};cZ.prototype.toJson=function(){return{id:this.id,displayName:this.displayName,groupId:this.groupId,fullName:this.g,isSelected:this.isSelected}};cZ.prototype.toString=function(){return"Device(id="+this.id+", displayName="+this.displayName+", groupId="+this.groupId+", fullName="+this.g+", isSelected="+this.isSelected+")"};var dZ=function(){this.Sa=null;this.h=this.C=this.g="";this.l=!1};
dZ.prototype.ja=function(){return new cZ(this)};var eZ=function(a){var b=new dZ;b.Sa=a;return b};dZ.prototype.j=function(a){this.C=a;return this};var fZ=eZ("__absent_device__");fZ.g="__absent_device__";var gZ=fZ.j("__absent_device__");gZ.h="__absent_device__";var Aaa=gZ.ja();var hZ=function(a,b,c,d,e,f){QM.call(this);this.X=a;this.H=b;this.D=c;this.J=d;this.G=e;this.V=f;this.L=[];this.j=this.g=this.h=null;this.u=new W(this);this.T(this.u);this.m=new W(this);this.T(this.m);this.l=new W(this);this.T(this.l);this.o=new W(this);this.T(this.o);this.jf(new kR([],[]))};t(hZ,QM);hZ.prototype.Z=function(){return this.X};
var iZ=function(a,b){a.g===b?!a.g&&a.h&&a.m.listen(a.h,"O",a.jf):(a.g&&wN(a.l,a.g,["G","E","F","H"]),(a.g=b)?(a.l.listen(b,"G",a.Zt),a.l.listen(b,["E","F","H"],a.zu),a.o.listen(a.G,"ba",a.jf)):a.o.removeAll(),a.N("Da"),a.h&&a.m.listen(a.h,null!==b?"P":"O",a.jf))};k=hZ.prototype;k.Ia=function(){return this.j};k.release=function(a){Zb(this.L,a)&&this.N("Ea")};
k.jf=function(a){var b=this.J.Ce(this.Z());this.h&&this.h===b||(this.u.removeAll(),this.h&&wN(this.m,this.h,["P","O"]),this.h=b,this.u.listen(this.J,null!==b?"R":"Q",this.jf));if(null==this.h)iZ(this,null);else{b=Array.from(this.h.g);for(var c=this.g,d=null,e=0;e<b.length&&(this.V!=b[e].Ka||null!=this.D&&this.D!=b[e].getContent()||null!=this.H&&this.H!=b[e].getId()||(d=b[e],d!=c));e++);iZ(this,d)}b=this.g;null!=b?(a=this.G.Ia(b,a instanceof kR?a.sessionId:void 0),this.j!=a&&(this.j=a,this.N("Ea")),
a instanceof kU&&iZ(this,a.g.g)):null!=this.j&&(this.j=null,this.N("Ea"))};k.zu=function(a){this.N(a)};k.Zt=function(a){this.jf(a);this.N("Fa")};var jZ=function(a,b,c,d,e){hZ.call(this,a,b,c,d,e,"a")};t(jZ,hZ);jZ.prototype.matches=function(a,b,c){b=void 0===b?null:b;c=void 0===c?null:c;return this.Z()==a&&(this.g&&this.g.getId())==b&&(this.g&&this.g.getContent())==c};var kZ=function(a,b){QM.call(this);this.s=new bU("realtime.media.rendering.ParticipantRenderableManager");this.j=a;this.h=b;this.g=new W(this);this.T(this.g)};t(kZ,QM);var lZ=function(){QM.call(this);var a=this;this.h=0;this.o=new qL(this);this.u=sL(this.o);this.g=this.m=null;this.j=new W(this);this.T(this.j);this.l=new W(this);this.T(this.l);$R(this,{participantId:function(){return a.g&&a.g.Z()},lastVolumeChangedValue:function(){return a.h},lastVolumeChangedTime:function(){return a.m}},!1)};t(lZ,QM);lZ.prototype.ba=function(){Cs(this.g);QM.prototype.ba.call(this)};
var Baa=function(a,b,c){null!=a.g&&a.g.matches(c,void 0,void 0)||(b=new jZ(c,null,null,b.j,b.h),a.g!=b&&(c=a.g,a.g=b,a.j.removeAll(),null!=a.g&&a.j.listen(a.g,"F",a.yu).listen(a.g,"Fa",a.Tv).listen(a.g,"Da",a.Au).listen(a.g,"Ea",a.co),a.co(),a.N("Ja"),null!=c&&Cs(c)))};k=lZ.prototype;k.yu=function(a){this.N(a)};k.Tv=function(){this.N("Ka")};k.Au=function(){};k.co=function(){this.l.removeAll();if(null!=this.g){var a=this.g.Ia();null!=a&&this.l.listen(a,"ca",this.eo)}this.eo()};k.eo=function(){this.N("La")};
var mZ=function(a,b){a.N("Na");b=Math.floor(5*b)/5;a.h!=b&&(a.h=b,a.m=X().g,a.N("Ma"),a.o.W(a.u,{bl:b}))};var nZ=function(a){xv.call(this);this.g=a||window;this.h=jv(this.g,"resize",this.l,!1,this);this.j=ig(this.g||window)};B(nZ,xv);nZ.prototype.ba=function(){nZ.Db.ba.call(this);this.h&&(sv(this.h),this.h=null);this.j=this.g=null};nZ.prototype.l=function(){var a=ig(this.g||window),b=this.j;a==b||a&&b&&a.width==b.width&&a.height==b.height||(this.j=a,this.N("resize"))};var oZ=function(a){xv.call(this);this.g=a?jg(a.g):window;this.l=1.5<=this.g.devicePixelRatio?2:1;this.j=x(this.m,this);this.h=this.g.matchMedia?this.g.matchMedia("(min-resolution: 1.5dppx), (-webkit-min-device-pixel-ratio: 1.5)"):null};B(oZ,xv);oZ.prototype.start=function(){this.h&&this.h.addListener(this.j)};oZ.prototype.m=function(){var a=1.5<=this.g.devicePixelRatio?2:1;this.l!=a&&(this.l=a,this.N("Sa"))};oZ.prototype.ba=function(){this.h&&this.h.removeListener(this.j);oZ.Db.ba.call(this)};var pZ=function(a,b){T.call(this);this.m=a;if(b){if(this.l)throw Error("[fava.component.DomServices] Owner document already initialized");this.l=b;this.g=fg(b);this.h=new nZ(kg(b));this.h.F=this.m.m;this.j=new oZ(this.g);this.j.start()}};B(pZ,T);var Caa=function(a){var b=new pZ(a,document);a.registerService(QK,b)};pZ.prototype.ba=function(){this.g=this.l=null;this.h&&(this.h.dispose(),this.h=null);Cs(this.j);this.j=null};var qZ=dS.clone();qZ.width*=.75;qZ.height*=.75;var rZ=cS.clone();rZ.width*=.75;rZ.height*=.75;var sZ=function(){this.g=[]},Eaa=function(a){return If(tZ.g.map(function(b){return Daa(b,a)}))},Daa=function(a,b){b=void 0===b?function(c){return new c}:b;return a.Rd?b(a.Rd):a.instance},uZ=function(){sZ.apply(this,arguments)};t(uZ,sZ);var vZ=function(a){var b=tZ,c=a.priority,d=~gc(b.g,function(e){return e.priority<c?-1:1});b.g.splice(d,0,a)};var wZ=function(a){this.h=a;this.ra=a.ra},Faa=function(a){return Eaa(function(b){return new b(a)})};k=wZ.prototype;k.jn=function(){return null};k.Jg=function(){return null};k.hn=function(){return null};k.dn=function(){return null};k.gn=function(){return null};k.cn=function(){return null};k.fn=function(){return null};k.gm=function(){return null};k.en=function(){return null};var tZ=new uZ;var xZ=function(a,b){a=n(a);for(var c=a.next();!c.done;c=a.next())if(c=b(c.value),null!=c)return c};var zZ=function(a){QM.call(this);var b=this;this.ra=a;this.h=this.l=null;this.D=uK(a,NK);this.m=uK(a,YM,!0).then(function(c){b.h=c;yZ(b,6273);return c},function(c){yZ(b,6274);throw c;});this.o=0;this.u=jt();gt([this.m,this.u.fa]);this.j=null;this.g=Faa(this);yZ(this,6661)};t(zZ,QM);
var Gaa=function(a){sK(a,TK)||HK(a,TK,function(b){return new zZ(b)})},Haa=function(a){null==a.j&&(a.j=gt([xZ(a.g,function(b){return b.jn()})||7,a.m]).then(function(b){return b[0]}),a.j.then(function(b){b!=a.o&&"number"===typeof b&&Fc(yaa,b)&&(a.o=b,a.N("bb"))},function(){return a.j=null}));return a.j},zW=function(a){return xZ(a.g,function(b){return b.hn()})||null},Iaa=function(a){a.l||(a.l=xZ(a.g,function(b){return b.gm()}));return a.l},SV=function(a,b,c,d){return xZ(a.g,function(e){return e.gn(b,
c,d)})},naa=function(a,b,c){var d="c"+Math.round(2147483648*Math.random())+Math.round(2147483648*Math.random())+"_NMS";return xZ(a.g,function(e){return e.cn(b,d,c)})},TV=function(a,b,c){return xZ(a.g,function(d){return d.dn(b,c)})},Jaa=function(a){return xZ(a.g,function(b){return b.fn()})},xY=function(a,b){return xZ(a.g,function(c){return c.en(b)})},yZ=function(a,b){a.D.then(function(c){c.Y(b)})};var Laa=Kaa();
function Kaa(){var a=Kc({aK:0,kK:1,Ty:2,Qy:25,OB:13,NB:3,RB:14,jE:4,Mx:15,vD:16,uD:5,LA:17,OA:6,HA:7,iH:8,hH:31,NA:9,Sx:10,Ox:11,Px:12,Qx:26,Rx:27,Tx:28,vK:18,uK:19,fB:20,hB:21,gB:22,iB:23,Sy:24,Az:29,zz:30,qF:100,oF:101,pF:102,dI:103,bI:104,cI:105,nI:106,lI:107,mI:108,FI:109,DI:110,EI:111,My:112,Hy:113,Iy:114,iD:200,lD:201,mD:202,jD:203,nD:204,kD:205,Gx:300,Fx:301,uB:302,tB:303,KH:304,JH:305,hD:306,gD:307,Vx:308,Ux:309,UF:310,TF:311,cF:312,aF:313,bF:314,hE:315,gE:316,jA:317,iA:318,pB:319,oB:320,
RH:321,OH:322,QH:323,PH:324,zE:325,yE:326,YF:327,XF:328,IH:329,DH:330,EH:331,FH:332,GH:333,HH:334,UA:335,TA:336,Pz:337,Oz:338,Tz:339,Qz:340,eB:341,dB:342,KA:343,JA:344,IA:345,Sz:346,Rz:347,Hx:348,Dy:349,Cz:350,yA:351,bC:352,wH:353,xH:354,JI:355,wB:356,vB:357,rB:358,qB:359,aC:360,YB:361,XB:362,ZB:363,fz:364,dz:365,ez:366,XD:400,WD:401,rK:500,qK:501,oK:502,pK:503,fA:600,dA:601,eA:602,EG:603,CG:604,DG:605,cA:606,aA:607,bA:608,JD:609,HD:610,ID:611,eH:700,gH:701,fH:702,dH:703,NG:704,MG:705,SG:706,QG:707,
cH:708,TG:709,JG:710,LG:711,KG:712,ZG:713,YG:714,XG:715,WG:716,VG:717,UG:718,PG:719,OG:720,bH:721,aH:722,IG:723,HG:724,zD:801,uC:884,QC:894,SC:802,OC:885,PC:886,RC:803,hC:887,jC:888,iC:889,gC:890,tC:804,AB:805,zB:806,RD:807,VD:891,QD:892,UD:893,SD:883,MA:808,PA:809,yD:810,sI:811,Uy:812,uI:813,ZD:814,tI:815,tD:816,BG:817,PD:818,Uz:819,OD:820,dG:821,eG:822,bG:823,cG:824,gG:825,iG:832,hG:833,fG:826,jG:827,lG:863,kG:864,mG:828,nG:829,eE:830,dE:831,nx:834,mx:835,BI:836,zI:837,yI:838,CI:839,wz:840,xz:841,
qz:842,vz:843,uz:844,sz:845,jy:846,iy:847,qy:848,by:849,gy:865,ey:866,hy:850,my:851,oy:867,ny:868,py:852,ty:853,sy:854,uy:855,By:856,yy:869,xy:870,Ay:879,zy:880,vy:871,wy:872,ly:857,ky:858,rF:859,sF:860,ux:861,tx:862,bD:873,YC:874,aD:875,ZC:895,Ex:876,Dx:877,sD:878,Py:881,Oy:882,TI:900,SI:901,VI:902,UI:903,RI:904,QI:905,hJ:1E3,nJ:1001,mJ:1002,bJ:1003,aJ:1004,lJ:1012,kJ:1013,gJ:1005,jJ:1006,iJ:1007,fJ:1008,eJ:1009,dJ:1010,cJ:1011,IK:1100,KK:1101,JK:1102,HK:1103,GK:1104,oG:1200,qG:1201,pG:1202,qJ:1300,
uJ:1301,tJ:1302,AJ:1303,zJ:1304,vJ:1305,wJ:1306,xJ:1307,yJ:1308,sJ:1309,rJ:1310,BJ:1311,NI:1400,KI:1401,MI:1402,EB:1500,DB:1501,FB:1502,GB:1503,CB:1504,BB:1505,wK:1600,yK:1601,xK:1602,zK:1603});return function(b){return a[b]}};function AZ(a){return(a.Jj?"\ud83d\udc4e":"\ud83d\udc4d")+" "+a.timestamp+" "+Laa(a.id)};var BZ=Zf("realtime.analytics.markrecord.MarkRecorder"),CZ=function(a,b){T.call(this);this.j=a;this.h=new qL(this);this.g=new Map;this.l=this.h.signal();b&&b.T(this)};t(CZ,T);k=CZ.prototype;k.attach=function(a,b){for(var c=n([].concat(p(this.g.values()))),d=c.next();!d.done;d=c.next())a(d.value);this.l.attach(a,b)};k.Kg=function(a){for(var b=[],c=0;c<arguments.length;++c)b[c-0]=arguments[c];this.Pt.apply(this,[void 0].concat(p(b)))};
k.Pt=function(a,b){for(var c=[],d=1;d<arguments.length;++d)c[d-1]=arguments[d];a=void 0===a?X().g:a;c=n(c);for(d=c.next();!d.done;d=c.next())DZ(this,{id:d.value,timestamp:a,Jj:!1})};k.Jj=function(a){for(var b=[],c=0;c<arguments.length;++c)b[c-0]=arguments[c];this.Yt.apply(this,[void 0].concat(p(b)))};k.Yt=function(a,b){for(var c=[],d=1;d<arguments.length;++d)c[d-1]=arguments[d];a=void 0===a?X().g:a;c=n(c);for(d=c.next();!d.done;d=c.next())DZ(this,{id:d.value,timestamp:a,Jj:!0})};
var DZ=function(a,b){if(a.C())ag(BZ,AZ(b)+" from "+a.j+" when disposed");else{var c=!a.g.has(b.id);D(BZ,AZ(b)+" from "+a.j+" "+(c?"\u2714\ufe0f":"\u2716\ufe0f"));c&&(a.g.set(b.id,b),a.h.W(a.l,b))}};var EZ=new iK("uuTheb",fe()?"Z5j79c":"SFhYHb");var FZ=function(){T.call(this);this.h=new qL(this);this.Cc=this.h.signal()};t(FZ,T);FZ.prototype.Z=function(){return null};var GZ=function(a){FZ.call(this,a);this.g=new W(this);this.T(this.g)};t(GZ,FZ);GZ.prototype.Z=function(){return FZ.prototype.Z.call(this)};var Maa=function(){this.g=new Set},Naa=function(a,b){a.g.add(b)},Oaa=function(a,b){a.g.forEach(function(c){return c(b)})};var HZ=function(){this.g=0;this.h=jt();this.j=null};HZ.prototype.then=function(a,b,c){return this.h.fa.then(a,b,c)};var IZ=function(a,b){return mt(a.h.fa,b,void 0)};HZ.prototype.get=function(){return this.j};var JZ=function(a){return 2==a.g};Us(HZ);var KZ=function(){this.g=new HZ};KZ.prototype.resolve=function(a){var b=this;0==this.g.g&&(this.g.h.resolve(a),Vs(a)?(a.then(function(c){return LZ(b,c)},function(){return LZ(b,null)}),this.g.g=1):LZ(this,a))};var LZ=function(a,b){a.g.g=2;a.g.j=b};
KZ.prototype.reject=function(a){0==this.g.g&&(this.g.g=2,this.g.h.reject(a))};var NZ=function(){T.call(this);var a=this;this.h=[];this.g=new MZ(function(b){return Paa(a,b)});this.T(this.g)};t(NZ,T);var Paa=function(a,b){return a.h.reduce(function(c,d){d=d.filter;return d(c)},b)},MZ=function(a){OV.call(this);this.l=a;this.h=[];this.g=!1};t(MZ,OV);var gX=function(a,b){a.h=cc(b);a.g||(a.g=!0,Ss(a.j,a))};MZ.prototype.j=function(){this.g=!1;var a=this.l(this.h);this.N(new PV(a))};var OZ=new iK("zlvswc","DWfIKf");var PZ=function(a,b){for(var c in a){var d=n(a[c]),e=d.next().value;d=d.next().value;if(e<b&&b<=d)return c}return null},QZ=function(a,b,c){this.m=Math.min(0,a);this.u=Math.max(0,a);this.l=this.C;this.o=void 0===b?1:b;this.g=void 0===c?2:c;this.j=new vA(this.g);this.h=0};QZ.prototype.add=function(a){var b=this.j.add(a);this.l(a)&&(this.h+=1);void 0!=b&&this.l(b)&&--this.h};QZ.prototype.C=function(a){return this.m<=a&&a<=this.u};
var RZ=function(a){return a.j.ya()<a.g?!1:a.h/a.g>=a.o},SZ=function(a){return a.j.ya()>=a.g},TZ=function(a){this.h=new vA(a);this.l=a;this.j=this.g=0};TZ.prototype.add=function(a){var b=this.h.add(a),c=this.h.ya();this.g+=a;b&&(this.g-=b);this.j=this.g/c};var Qaa=function(a){return a.h.ya()>=a.l};var VZ=function(a,b,c,d){T.call(this);var e=this;this.R=Zf(c);this.V=new nL(a);this.m=new Map;this.M=new qL(this);this.g=this.M.signal();this.F=0;this.D=new vA(300);this.j=YR.Ob();this.G=[];d&&UZ(this,d.name,function(){return d.cb.concat(Raa(e))});b.attach(function(f){var g=f.Oc,h=f.data;f=f.sequenceNumber;1<f-e.F&&e.reset();h=e.Xa(h,g);null!==h&&(e.Zm(h),e.F=f,e.rb(h),e.kb(h),e.mi(h,g),e.M.W(e.g,h))},this)};t(VZ,T);VZ.prototype.Y=function(a,b){this.V.Y(a,b)};
var WZ=function(a,b,c,d){c!==a.m.get(b)&&a.Y(c,d);a.m.set(b,c)},XZ=function(a,b,c){WZ(a,"O0r3Gd",b,c)},YZ=function(a){a.m.delete("O0r3Gd")},ZZ=function(a,b,c){WZ(a,"jOfkMb",b,c)},$Z=function(a){a.m.delete("jOfkMb")};k=VZ.prototype;k.Zm=function(a){bg(this.R,JSON.stringify(a))};k.reset=function(){};k.rb=function(){};k.mi=function(a,b){0===this.F%10&&this.D.add({data:a,Oc:b})};k.kb=function(){};
var Saa=function(a){var b=Math.min(a.D.ya(),300);return xA(a.D,b)},Raa=function(a){return Saa(a).map(function(b){return[b.Oc].concat(p(a.Ya(b.data)))})},UZ=function(a,b,c){a.G.push(ZR(a.j,b,c))};VZ.prototype.ba=function(){this.G.forEach(function(a){return a()});T.prototype.ba.call(this)};var a_=function(a,b){VZ.call(this,a,b,"realtime.media.stats.emitters.monitors.BandwidthEstimateMonitor",{name:"recentAvailableSendBandwidth",cb:["Time Since Call Start","Required Send Bandwidth (kbps)","Available Send Bandwidth (kbps)"]});this.l=0;this.h=!1;this.o=X()};t(a_,VZ);
a_.prototype.Xa=function(a,b){var c=L(a[0],124);c=Math.round(c/100)/10;a=L(a[0],40);a=Math.round(a/100)/10;if(0>=c||0>=a)return null;this.l=this.l?.65*this.l+.35*a:a;var d=!1,e=!1,f=!1,g=X();15>b?b=this.o=g:(d=this.l<c,f=!this.h&&d,b=this.h!==d?g:this.o,e=2E3<wR(g,b));return{Ak:c,Fh:a,Nh:d,bb:b,jb:f,Ea:e}};a_.prototype.rb=function(a){var b=a.Nh,c=a.jb;(a.Ea||c)&&ZZ(this,b?3747:3763)};a_.prototype.kb=function(a){var b=a.Nh;a=a.bb;this.h!==b&&(this.h=b,this.o=a)};
a_.prototype.Ya=function(a){return[a.Ak,a.Fh]};var b_=function(a,b,c){T.call(this);var d=this;this.g=new qL(this);this.onChange=this.g.signal();this.l=sL(this.g);c?this.j=c:(this.j=new a_(a,b),this.T(this.j));this.h=!1;this.j.g.attach(function(e){var f=e.Nh,g=e.Ea,h=f&&!d.h;g=!f&&g&&d.h;e={Ak:e.Ak,Fh:e.Fh,Nh:f};d.g.W(d.onChange,e);(h||g)&&d.g.W(d.l,e);h?d.h=!0:g&&(d.h=!1)},this)};t(b_,T);var c_=function(a,b){VZ.call(this,a,b,"realtime.media.stats.emitters.monitors.AnqMonitor",{name:"anqScores",cb:["Time Since Call Start","Average ANQ Score"]});this.l=new Map;this.h={gf:0,rh:"XhYBrd",Oc:0};this.o=new qL(this);this.u=sL(this.o)};t(c_,VZ);
c_.prototype.Xa=function(a,b){var c=this,d=[];a.forEach(function(e){var f=rl(e,207);if(null!=f&&(d.push(f),e=1===wF(e).length?L(wF(e)[0],3):null,null!==e)){c.l.has(e)||c.l.set(e,{Hg:{active:!1,startTime:0},yg:{active:!1,startTime:0}});f=PZ(d_,f);e=c.l.get(e);var g="AGpuT"===f;f="ElqWd"===f||g;g!==e.yg.active&&(e.yg.active=g,e.yg.startTime=b);f!==e.Hg.active&&(e.Hg.active=f,e.Hg.startTime=b)}});Taa(this,b);if(0===d.length)return null;a=Math.max.apply(Math,p(d));this.h.gf=0===this.h.Oc?a:.7*a+this.h.gf*
(1-.7);this.h.Oc=b;this.h.rh=PZ(d_,this.h.gf);return{gf:this.h.gf,rh:this.h.rh,Oc:b}};c_.prototype.Ya=function(a){return[a.gf]};var Taa=function(a,b){a.l.forEach(function(c,d){c.Hg.active&&60<b-c.Hg.startTime&&a.o.W(a.u,d);c.yg.active&&30<b-c.yg.startTime&&a.o.W(a.u,d)})},e_={},d_=(e_.XhYBrd=[-.1,.2],e_.ElqWd=[.2,.6],e_.AGpuT=[.6,1],e_);var f_=function(a,b){VZ.call(this,a,b,"realtime.media.stats.emitters.monitors.RttMonitor",{name:"recentRTT",cb:["Time Since Call Start","Connection Round trip time (ms)","Audio Round trip time (ms)","Video Round trip time (ms)"]});this.h=new Map([[1,0],[2,0]])};t(f_,VZ);
f_.prototype.Xa=function(a){var b=this,c=qF(a).find(function(f){return!!(L(f,2)&1)}),d,e;oF(a).forEach(function(f){if(0==CF(f)){var g=BF(f),h=L(f,7);switch(g){case 1:h&&h==b.h.get(g)?d=-1:(d=L(f,6),b.h.set(g,h));break;case 2:h&&h==b.h.get(g)?e=-1:(e=L(f,6),b.h.set(g,h))}}});return{xr:c?L(c,3):-1,Ul:d,Xw:e}};f_.prototype.Ya=function(a){return[a.xr,a.Ul,a.Xw]};var h_=function(a,b,c,d){T.call(this);var e=this;this.G=uK(a,NK).then();this.o=d;this.o.g.attach(function(f){var g=Math.round(f.Oc-e.F);e.F=f.Oc;if("AGpuT"===f.rh){if(200>e.m){f=60<=e.g;e.g+=g;var h=60<=e.g;!f&&h&&g_(e,5966)}else 60<=e.g&&g_(e,5967),e.g=0;200<e.l?(f=60<=e.j,e.j+=g,h=60<=e.j,!f&&h&&g_(e,5971)):(60<=e.j&&g_(e,5972),e.j=0);200>e.m&&200<e.l?(f=30<=e.h,e.h+=g,g=30<=e.h,!f&&g&&g_(e,5973)):(30<=e.h&&g_(e,5974),e.h=0)}else 60<=e.g&&g_(e,5967),e.g=0,60<=e.j&&g_(e,5972),e.j=0,30<=e.h&&g_(e,
5974),e.h=0},this);this.o.u.attach(function(f){e.u.W(e.H,f)},this);this.D=b;this.D.onChange.attach(function(f){e.m=f.Fh},this);this.M=c;this.M.g.attach(function(f){e.l=f.Ul},this);this.F=this.h=this.j=this.g=this.l=this.m=0;this.u=new qL(this);this.H=sL(this.u)};t(h_,T);var g_=function(a,b){a.G.then(function(c){c.Y(b)})};var i_=function(a,b){VZ.call(this,a,b,"realtime.media.stats.emitters.monitors.audioreceived.BitRateMonitor",{name:"recentMaxAudioRecvBitrate",cb:["Time Since Call Start","Max Audio Recv Bitrate"]});this.l=X();this.o=yR;this.H=new Map;this.reset()};t(i_,VZ);k=i_.prototype;k.reset=function(){this.u="lcN5Wd";this.l=X();this.h=!0;this.o=yR;YZ(this)};
k.Xa=function(a){var b=this,c=0<a.length,d=a.filter(function(h){var m=EF(h)||vF(h)[0];null===m?h=!1:(m=b.H.get(m)||0,h=(L(h,9)||0)!==m);return h}),e=0,f=null;a=X();var g=!1;0<d.length&&(d.forEach(function(h){var m=EF(h)||vF(h)[0];null!==m&&(h=L(h,9)||0,b.H.set(m,h))}),d=d.map(function(h){return L(h,96)||0}),e=Math.max.apply(Math,[].concat(p(d),[0])),f=PZ(Uaa,e));null!==f&&(f===this.u&&(a=this.l),g=1E4<wR(X(),a));return{uc:e,Vm:c,status:f,Nt:a,Ea:g}};
k.rb=function(a){a.Vm?this.h||XZ(this,4619):0<wR(X(),this.o)?XZ(this,4707):XZ(this,4618)};k.kb=function(a){var b=a.Vm,c=a.status;a=a.Nt;null!==c&&(c!==this.u&&(this.u=c,this.l=a),b!==this.h&&(this.o=vR(X(),b?Infinity:2E4),this.h=b))};k.Ya=function(a){return[a.uc]};var j_={},Uaa=(j_.x5ghY=[-Infinity,0],j_.MNynB=[0,2E3],j_.lcN5Wd=[2E3,Infinity],j_);var k_=function(a,b){VZ.call(this,a,b,"realtime.media.stats.emitters.monitors.audioreceived.DelayMonitor",{name:"recentAudioPlayoutDelay",cb:["Time Since Call Start","Max Audio Playout Delay (ms)"]});this.h=!1};t(k_,VZ);k_.prototype.Xa=function(a){a=a.filter(function(c){return null!=L(c,26)&&5<L(c,26)}).reduce(function(c,d){return Math.max(c,L(d,39)||0)},-Infinity);a=-Infinity<a?a:null;var b=this.h;return{delay:a,uj:null===a?b:500<=a,np:b}};
k_.prototype.rb=function(a){var b=a.uj;a=a.np;!a&&b?this.Y(4009):a&&!b&&this.Y(4010)};k_.prototype.kb=function(a){var b=a.uj;null!==a.delay&&(this.h=b)};k_.prototype.Ya=function(a){return[a.delay]};var l_=function(a,b,c,d){VZ.call(this,a,b,"realtime.media.stats.emitters.monitors.audioreceived.EnergyMonitor",{name:"recentMaxReceivedAudioEnergy",cb:["Time Since Call Start","Max Received Audio Energy"]});var e=this;this.L=d;this.h=X();this.u=new QZ(2E3,.75,Math.round(6E4/c));UZ(this,"energyLowBeforeSendingFeedback",function(){return RZ(e.u)});UZ(this,"overallRecvLowEnergyPercent",function(){return Math.round(100*e.H/e.J)});this.o=new Map;this.H=this.J=0;this.reset()};t(l_,VZ);
l_.prototype.reset=function(){this.l="lcN5Wd";this.h=X()};
l_.prototype.Xa=function(a){var b=this,c=a.filter(function(g){var h=EF(g)||vF(g)[0];null===h?g=!1:(h=b.o.get(h)||0,g=(L(g,9)||0)!==h);return g}),d=0,e=null;a=X();var f=!1;0<c.length&&(c.forEach(function(g){var h=EF(g)||vF(g)[0];null!==h&&(g=L(g,9)||0,b.o.set(h,g))}),d=c.map(function(g){return L(g,26)||0}),d=Math.max.apply(Math,[].concat(p(d),[0])),e=PZ(Vaa,d));null!==e&&(e===this.l&&(a=this.h),f=wR(X(),a),c=Waa.get(e),f=f>c);return{Eh:d,status:e,bb:a,Ea:f}};
l_.prototype.kb=function(a){var b=a.Eh,c=a.status;a=a.bb;null!==c&&(c!==this.l&&(this.l=c,this.h=a),this.L()||(this.J++,2E3>b&&this.H++),this.u.add(b))};l_.prototype.Ya=function(a){return[a.Eh]};var m_={},Vaa=(m_.x5ghY=[-Infinity,0],m_.MNynB=[0,2E3],m_.lcN5Wd=[2E3,Infinity],m_),Waa=new Map([["x5ghY",5E3],["MNynB",15E3],["lcN5Wd",15E3]]);var n_=function(a,b,c){VZ.call(this,a,b,"realtime.media.stats.emitters.monitors.audioreceived.FractionLostMonitor",{name:"recentMaxAudioRecvFractionLost",cb:["Time Since Call Start","Max Audio Recv Fraction Lost (%)"]});this.X=3E4/c;this.u=new TZ(this.X);this.L=6E4/c;this.o=new QZ(20,.6,this.L);this.l=this.H=!1;this.h=!0;this.J=new Map};t(n_,VZ);
n_.prototype.Xa=function(a){var b=this;a=a.filter(function(h){var m=EF(h)||vF(h)[0];null===m?h=!1:(m=b.J.get(m)||0,h=(L(h,9)||0)!==m);return h});if(0==a.length)return null;a.forEach(function(h){var m=EF(h)||vF(h)[0]||0;h=L(h,9)||0;b.J.set(m,h)});a=a.reduce(function(h,m){return Math.max(h,L(m,2))},0);this.u.add(a);this.o.add(a);var c=50<a,d=this.H,e=this.l;Qaa(this.u)&&(e=20<this.u.j);var f=this.l,g=this.h;SZ(this.o)&&(g=RZ(this.o));return{fractionLost:a,Um:c,gx:d,Tm:e,bx:f,Rl:g,ix:this.h}};
n_.prototype.rb=function(a){var b=a.Um,c=a.gx,d=a.Tm,e=a.bx,f=a.Rl;a=a.ix;b&&!c?this.Y(4348):!b&&c&&this.Y(4349);d&&!e?this.Y(4350):!d&&e&&this.Y(4351);f&&!a?this.Y(4434):!f&&a&&this.Y(4433)};n_.prototype.kb=function(a){var b=a.Tm,c=a.Rl;this.H=a.Um;this.l=b;this.h=c};n_.prototype.Ya=function(a){return[a.fractionLost]};var o_=function(a,b){VZ.call(this,a,b,"realtime.media.stats.emitters.monitors.audioreceived.JitterBufferSizeMonitor",{name:"recentMaxAudioRecvJitterBufferSize",cb:["Time Since Call Start","Max Audio Recv Jitter Buffer Size (ms)"]});this.h=new Map};t(o_,VZ);
o_.prototype.Xa=function(a){var b=this;a=a.filter(function(c){var d=EF(c)||vF(c)[0];null===d?c=!1:(d=b.h.get(d)||0,c=(L(c,9)||0)!==d);return c});if(0==a.length)return null;a.forEach(function(c){var d=EF(c)||vF(c)[0]||0;c=L(c,9)||0;b.h.set(d,c)});return{Lt:a.reduce(function(c,d){return Math.max(c,L(d,37)||-1)},0)}};o_.prototype.Ya=function(a){return[a.Lt]};var p_=function(a,b,c){VZ.call(this,a,b,"realtime.media.stats.emitters.monitors.audioreceived.SpeechExpandRateMonitor",{name:"recentMaxSpeechExpandRate",cb:["Time Since Call Start","Max Speech Expand Rate (%)"]});this.l=new QZ(20,.6,5E3/c);this.H=vR(X(),6E4);this.o=this.h=0;this.u=new Map};t(p_,VZ);
p_.prototype.Xa=function(a){var b=this;a=a.filter(function(h){var m=EF(h)||vF(h)[0];null===m?h=!1:(m=b.u.get(m)||0,h=(L(h,9)||0)!==m);return h});if(0==a.length)return null;a.forEach(function(h){var m=EF(h)||vF(h)[0];null!==m&&(h=L(h,9)||0,b.u.set(m,h))});a=a.map(function(h){return rl(h,103)}).filter(function(h){return null!=h});a=Math.round(100*Math.max.apply(Math,[].concat(p(a),[0])));this.l.add(a);var c=X(),d=this.H,e=null;0<wR(c,d)&&(d=vR(c,6E4),e=(this.h+a)/(this.o+1));c=40<a;var f=SZ(this.l),
g=RZ(this.l);return{Vo:a,Wl:e,hu:d,It:c,Gt:f,Ft:g}};p_.prototype.rb=function(a){var b=this,c=a.Wl,d=a.Gt,e=a.Ft;a.It?WZ(b,"BcmLRd",4116):WZ(b,"BcmLRd",4117);d&&(e?WZ(b,"vhhrIe",4432):WZ(b,"vhhrIe",4431));null!==c&&(a=function(f){return WZ(b,"YK82pb",f)},20<=c?a(4269):10<=c?a(4268):5<=c?a(4267):2<=c?a(4266):a(4265))};p_.prototype.kb=function(a){var b=a.Vo,c=a.hu;null!==a.Wl?(this.o=this.h=0,this.H=c):(this.h+=b,this.o++)};p_.prototype.Ya=function(a){return[a.Vo]};var q_=function(a,b,c,d){T.call(this);var e=this;this.u=d;this.g=new qL(this);this.j=!0;this.G=this.g.signal();this.L=sL(this.g);this.H=this.g.signal();this.J=sL(this.g);this.M=sL(this.g);this.l=!0;this.V=this.g.signal();this.X=sL(this.g);this.m=new i_(a,b);this.T(this.m);this.m.g.attach(function(f){var g=f.uc,h=f.status;f=f.Ea;null!==h&&(g={uc:g,status:h},e.g.W(e.G,g),f!==e.j&&(f&&e.g.W(e.L,g),e.j=f))},this);this.o=new k_(a,b);this.T(this.o);this.o.g.attach(function(f){var g=f.np,h=f.uj;f={zh:f.delay};
e.g.W(e.H,f);!g&&h?e.g.W(e.J,f):g&&!h&&e.g.W(e.M,f)},this);this.h=new l_(a,b,c,function(){return Xaa(e)});this.T(this.h);this.h.g.attach(function(f){var g=f.Eh,h=f.status;f=f.Ea;null!==h&&(g={Eh:g,status:h},e.g.W(e.V,g),f!==e.l&&(f&&e.g.W(e.X,g),e.l=f))},this);this.D=new n_(a,b,c);this.T(this.D);this.F=new o_(a,b);this.T(this.F);this.ga=new p_(a,b,c);this.T(this.ga)};t(q_,T);var Xaa=function(a){return a.u().every(function(b){b=b.getInfo();return"a"!==b.ka()||b.qc()})};var r_=function(a,b){VZ.call(this,a,b,"realtime.media.stats.emitters.monitors.CpuUsageMonitor",{name:"recentSystemCpuUsage",cb:["Time Since Call Start","System","Process","Browser","GPU"]});this.u=this.o=0;this.h=this.l=!1};t(r_,VZ);
r_.prototype.Xa=function(a){var b=L(a,36)||0;if(0<b){var c=Math.round((L(a,35)||0)/b),d=Math.round((L(a,34)||0)/b),e=Math.round((L(a,92)||0)/b);a=Math.round((L(a,94)||0)/b);b=.65*this.o+.35*c;var f=.65*this.u+.35*(d+e+a);return{Uk:c,bk:d,Ki:e,kj:a,Dw:b,Ew:f,pp:this.l,mp:this.h,xj:90<=b,sj:60<=b-f}}return null};r_.prototype.rb=function(a){var b=a.xj,c=a.sj,d=a.mp;b!==a.pp&&this.Y(b?3746:3762);c!==d&&this.Y(c?4628:4629)};
r_.prototype.kb=function(a){var b=a.Ew,c=a.xj,d=a.sj;this.o=a.Dw;this.u=b;this.l=c;this.h=d};r_.prototype.Ya=function(a){return[a.Uk,a.bk,a.Ki,a.kj]};var s_=function(a,b){T.call(this);var c=this;this.g=new qL(this);this.onChange=this.g.signal();this.l=sL(this.g);this.j=sL(this.g);this.h=new r_(a,b);this.T(this.h);this.h.g.attach(function(d){var e=d.xj,f=d.sj,g=d.pp,h=d.mp;d={Uk:d.Uk,bk:d.bk,Ki:d.Ki,kj:d.kj,kL:e,iL:f};c.g.W(c.onChange,d);e!==g&&c.g.W(c.l,d);f!==h&&c.g.W(c.j,d)},this)};t(s_,T);var t_=function(a,b){VZ.call(this,a,b,"realtime.media.stats.emitters.monitors.LeakyBucketDelayMonitor",{name:"recentLeakyBucketDelay",cb:["Time Since Call Start","Leaky Bucket Delay (ms)"]});this.h="lcN5Wd";this.l=X()};t(t_,VZ);
t_.prototype.Xa=function(a,b){if(15>b)return this.l=X(),null;a=L(a[0],80);if(null===a)return null;b=PZ(u_,a);if(null===b){var c=X();return{Eg:a,status:b,bb:c,jb:!1,Ea:!1,wb:!1}}c=u_[this.h][0]<u_[b][0];var d=b!==this.h?X():this.l,e=2E3<wR(X(),d);return{Eg:a,status:b,bb:d,jb:c,Ea:e,wb:3E3<a}};t_.prototype.rb=function(a){var b=a.status,c=a.jb,d=a.Ea;a=a.wb;if(d||c)"lcN5Wd"===b?ZZ(this,4379):"CNusmb"===b&&ZZ(this,4380);a?XZ(this,4381):d&&YZ(this)};
t_.prototype.kb=function(a){var b=a.status;a=a.bb;null!==b&&b!==this.h&&(this.h=b,this.l=a)};t_.prototype.Ya=function(a){return[a.Eg]};var v_={},u_=(v_.lcN5Wd=[-Infinity,3E3],v_.CNusmb=[3E3,Infinity],v_);var w_=function(a,b){T.call(this);var c=this;this.h=new qL(this);this.l=sL(this.h);this.j=new t_(a,b);this.T(this.j);this.g=!1;this.j.g.attach(function(d){var e=d.Eg,f=d.wb,g=d.Ea;d=f&&!c.g;g=!f&&g&&c.g;(d||g)&&c.h.W(c.l,{mL:e,Ht:f});d?c.g=!0:g&&(c.g=!1)},this)};t(w_,T);var x_=function(a,b){VZ.call(this,a,b,"realtime.media.stats.emitters.monitors.audioreceived.NeteqCallsMonitor",{name:"recentNeteqCalls",cb:["Time Since Call Start","Min Neteq Calls (%)"]});this.h=!1;this.l=new Map;this.o=new Map};t(x_,VZ);
x_.prototype.Xa=function(a,b){var c=this;a=a.filter(function(d){var e=EF(d)||vF(d)[0];null===e?d=!1:(e=c.l.get(e)||0,d=(L(d,9)||0)!==e);return d});if(0==a.length)return null;a.forEach(function(d){var e=EF(d)||vF(d)[0]||0;d=L(d,9)||0;c.l.set(e,d)});a=Math.min.apply(Math,[].concat(p(a.map(function(d){var e=vF(d)[0];if(d=L(d,82)){var f=100,g=c.o.get(e);if(g){var h=1E3*(b-g.Oc)/10;0!=h&&(g=d-g.fu,g>h/10&&(f=Math.min(100,Math.round(g/h*100))))}c.o.set(e,{fu:d,Oc:b});e=f}else e=100;return e})),[100]));
return{gu:a,Oh:80>=a}};x_.prototype.rb=function(a){a=a.Oh;!a&&this.h?this.Y(4127):a&&!this.h&&this.Y(4126)};x_.prototype.kb=function(a){a=a.Oh;a!==this.h&&(this.h=a)};x_.prototype.Ya=function(a){return[a.gu]};var y_=function(a,b){VZ.call(this,a,b,"realtime.media.stats.emitters.monitors.audiosent.BitRateMonitor",{name:"statsAudioSentBitrate",cb:["Time Since Call Start","Audio Sent Bitrate (bps)"]});this.h="lcN5Wd"};t(y_,VZ);y_.prototype.Xa=function(a,b){if(5>b)return null;a=Math.min.apply(Math,p(a.map(function(c){return L(c,42)})));if(Infinity===a)return null;b=PZ(Yaa,a);return{uc:a,status:b}};y_.prototype.kb=function(a){a=a.status;null!==a&&a!==this.h&&(this.h=a)};y_.prototype.Ya=function(a){return[a.uc]};
var z_={},Yaa=(z_.MNynB=[-Infinity,500],z_.lcN5Wd=[500,Infinity],z_);var A_=function(a,b){VZ.call(this,a,b,"realtime.media.stats.emitters.monitors.audiosent.EchoLikelihoodMonitor",{name:"statsAudioSentEchoLikelihoodRecentMax",cb:["Time Since Call Start","Max Audio Sent Residual Echo Likelihood"]});this.h=!1};t(A_,VZ);A_.prototype.Xa=function(a){a=Math.max.apply(Math,p(a.map(function(b){return rl(b,133)||0})));return-Infinity<a?(a=Math.round(1E3*a)/10,{Cr:a,Qm:55<=a}):null};A_.prototype.rb=function(a){a=a.Qm;var b=this.h;a&&!b?this.Y(4472):!a&&b&&this.Y(4473)};
A_.prototype.kb=function(a){this.h=a.Qm};A_.prototype.Ya=function(a){return[a.Cr]};var B_=function(a,b,c){VZ.call(this,a,b,"realtime.media.stats.emitters.monitors.audiosent.EnergyMonitor",{name:"statsAudioSentEnergy",cb:["Time Since Call Start","Sent Energy"]});var d=this;this.o=this.u=0;Bs(this,ZR(this.j,"overallSentEnergyLow",function(){return!!d.o&&80<d.u/d.o*100&&5<=d.o}));this.h=!1;Bs(this,ZR(this.j,"sentEnergyConsistentlyZero",function(){return d.h}));Bs(this,function(){d.h&&d.Y(5197)});this.H=!0;this.L=Zaa();this.l=null;CL(c,function(e){d.l=e});this.J=new QZ(100,.7,10)};
t(B_,VZ);B_.prototype.Xa=function(a){a=L(a[0],26);if("number"!==typeof a)return null;this.J.add(a);return{qm:a}};B_.prototype.kb=function(a){a=a.qm;!this.l||this.l.Sb()||this.l.tj()||(this.H&&(this.h=a<=this.L?!0:this.H=!1),this.o++,100>a&&this.u++)};var Zaa=function(){var a=0;be("Windows")?a=1:be("CrOS")&&(a=2);return a};B_.prototype.Ya=function(a){return[a.qm]};var C_=function(a,b){VZ.call(this,a,b,"realtime.media.stats.emitters.monitors.BatteryMonitor",{name:"recentBatteryLevel",cb:["Time Since Call Start","Battery level (%)"]});this.h=0};t(C_,VZ);C_.prototype.Xa=function(a){a=Math.round(100*M(a,75,-1));return a===this.h?null:{Xl:a}};C_.prototype.kb=function(a){this.h=a.Xl};C_.prototype.Ya=function(a){return[a.Xl]};var D_=function(a,b){VZ.call(this,a,b,"realtime.media.stats.emitters.monitors.ConnectionMonitor");var c=this;this.h=this.l=0;mf&&Xp(61)&&Bs(this,ZR(this.j,"connection",function(){return $aa()}));Bs(this,ZR(this.j,"networkType",function(){return c.h+": "+aba[c.h]}));Bs(this,ZR(this.j,"transportProtocol",function(){a:switch(c.l){case 1:var d="UDP";break a;case 2:case 3:d="TCP";break a;default:d="Unknown"}return d}))};t(D_,VZ);
D_.prototype.Xa=function(a){var b=L(a,55);b=this.h=null!=b&&bba.includes(b)?b:0;a=this.l=L(Q(a,QD,8,1),4);return{network:b,protocol:a}};D_.prototype.rb=function(a){switch(a.protocol){case 1:ZZ(this,3778);break;case 2:case 3:ZZ(this,3777)}};D_.prototype.mi=function(){};
var $aa=function(){var a=Ie(),b={};["type","effectiveType","downlinkMax","downlink","rtt"].forEach(function(c){return b[c]=a.connection[c]||"unknown"});return b},bba=Cc({NJ:0,IJ:1,PJ:2,QJ:3,GJ:4,JJ:5,KJ:6,LJ:7,MJ:8,HJ:10,OJ:11}),E_={},aba=(E_[0]="Unknown",E_[1]="Ethernet",E_[2]="WiFi",E_[3]="Wimax",E_[4]="Bluetooth",E_[5]="Mobile",E_[6]="Mobile 2G",E_[7]="Ethernet",E_[8]="Mobile 3G",E_[10]="Dummy",E_[11]="VPN",E_);var F_=function(a,b){VZ.call(this,a,b,"realtime.media.stats.emitters.monitors.NetworkMonitor");this.o=new Map;this.l=!1;this.h=X();this.u=0};t(F_,VZ);k=F_.prototype;k.Xa=function(a){var b=this,c=0<a.length;a=a.reduce(function(g,h){var m=EF(h)||vF(h)[0]||0,q=b.o.get(m)||0;h=L(h,10)||0;b.o.set(m,h);return g+Math.max(h-q,0)},0);c=c&&!a;var d=this.l,e=this.h,f=this.u;!d&&c?e=X():d&&!c&&(f=wR(X(),this.h));return{vj:c,op:d,wn:a,Gn:e,Zj:f}};k.Zm=function(){};
k.rb=function(a){var b=a.vj,c=a.op;a=a.Zj;!c&&b?this.Y(4552):c&&!b&&(1E4<a&&this.Y(4582),this.Y(4553))};k.kb=function(a){var b=a.Gn,c=a.Zj;this.l=a.vj;this.h=b;this.u=c};k.Ya=function(a){return[a.wn]};var G_=function(a,b){T.call(this);var c=this;this.g=new qL(this);this.l=sL(this.g);this.j=sL(this.g);this.h=new F_(a,b);this.T(this.h);this.h.g.attach(function(d){var e=d.vj,f=d.op,g=d.Gn,h=d.Zj;d=d.wn;e&&!f&&c.g.W(c.l,{Mt:d,EL:g});!e&&f&&c.g.W(c.j,{Mt:d,WK:h})},this)};t(G_,T);var H_=function(a,b){VZ.call(this,a,b,"realtime.media.stats.emitters.monitors.screensharereceived.BitRateMonitor",{name:"recentScreenshareRecvBitrate",cb:["Time Since Call Start","Screenshare Recv Bitrate (kbps)"]});this.o=0;this.h="lcN5Wd";this.l=X()};t(H_,VZ);k=H_.prototype;k.reset=function(){this.o=0;this.h="lcN5Wd";this.l=X();YZ(this);$Z(this)};
k.Xa=function(a,b){if(5>b)return this.l=X(),null;a=Math.min.apply(Math,p(a.map(function(h){return L(h,96)})));if(Infinity===a)return null;a=Math.round(a/100)/10;b=.65*this.o+.35*a;var c=PZ(I_,b),d=X(),e=!1,f=!1,g=!1;null!==c&&(e=I_[this.h][0]>I_[c][0],c===this.h&&(d=this.l),f=5E3<wR(X(),d),g=200>=b);return{uc:a,status:c,bb:d,jb:e,Ea:f,wb:g,Ok:b}};k.rb=function(a){var b=a.status,c=a.Ea,d=a.wb;if(a.jb||c)"lcN5Wd"===b?ZZ(this,4376):"MNynB"===b&&ZZ(this,4377);d?XZ(this,4378):c&&YZ(this)};
k.kb=function(a){var b=a.status,c=a.bb;this.o=a.Ok;null!==b&&b!==this.h&&(this.h=b,this.l=c)};k.Ya=function(a){return[a.uc]};var J_={},I_=(J_.MNynB=[-Infinity,200],J_.lcN5Wd=[200,Infinity],J_);var K_=function(a,b){VZ.call(this,a,b,"realtime.media.stats.emitters.monitors.screensharereceived.FpsDecodeMonitor",{name:"recentScreenshareRecvFpsDecode",cb:["Time Since Call Start","Screenshare Decoded FPS"]});this.h="lcN5Wd";this.l=X()};t(K_,VZ);k=K_.prototype;k.reset=function(){this.h="lcN5Wd";this.l=X();$Z(this)};
k.Xa=function(a,b){if(10>b)return this.l=X(),null;a=Math.min.apply(Math,p(a.map(function(f){return L(f,31)})));if(!(0<=a&&60>=a))return null;b=PZ(L_,a);var c=X(),d=!1,e=!1;null!==b&&(e=L_[this.h][0]>L_[b][0],b===this.h&&(c=this.l),d=5E3<wR(X(),c));return{Ij:a,status:b,bb:c,jb:e,Ea:d}};k.rb=function(a){var b=a.status,c=a.jb;if(a.Ea||c)"lcN5Wd"===b?ZZ(this,4343):"x5ghY"===b&&ZZ(this,4342)};k.kb=function(a){var b=a.status;a=a.bb;null!==b&&b!==this.h&&(this.h=b,this.l=a)};k.Ya=function(a){return[a.Ij]};
var M_={},L_=(M_.x5ghY=[-Infinity,0],M_.lcN5Wd=[0,Infinity],M_);var N_=function(a,b){VZ.call(this,a,b,"realtime.media.stats.emitters.monitors.screensharereceived.FpsRenderInputMonitor",{name:"recentScreenshareRecvFpsRenderInput",cb:["Time Since Call Start","Screenshare Render Input (FPS)"]});this.h="lcN5Wd";this.l=X()};t(N_,VZ);k=N_.prototype;k.reset=function(){this.h="lcN5Wd";this.l=X();$Z(this)};
k.Xa=function(a,b){if(10>b)return this.l=X(),null;a=Math.min.apply(Math,p(a.map(function(f){return rl(f,50)})));if(!(0<=a&&60>=a))return null;b=PZ(O_,a);var c=X(),d=!1,e=!1;null!==b&&(e=O_[this.h][0]>O_[b][0],b===this.h&&(c=this.l),d=5E3<wR(X(),c));return{Ij:a,status:b,bb:c,jb:e,Ea:d}};k.rb=function(a){var b=a.status,c=a.jb;if(a.Ea||c)"lcN5Wd"===b?ZZ(this,4018):"x5ghY"===b&&ZZ(this,4046)};k.kb=function(a){var b=a.status;a=a.bb;null!==b&&b!==this.h&&(this.h=b,this.l=a)};k.Ya=function(a){return[a.Ij]};
var P_={},O_=(P_.x5ghY=[-Infinity,0],P_.lcN5Wd=[0,Infinity],P_);var Q_=function(a,b){VZ.call(this,a,b,"realtime.media.stats.emitters.monitors.screensharereceived.FractionLostMonitor",{name:"recentScreenshareRecvFractionLost",cb:["Time Since Call Start","Fraction Lost (%)"]});this.h=X();this.reset()};t(Q_,VZ);k=Q_.prototype;k.reset=function(){this.l="lcN5Wd";this.o=0;this.h=X();$Z(this)};
k.Xa=function(a,b){if(10>b)return this.h=X(),null;a=Math.max.apply(Math,p(a.map(function(g){return L(g,2)})));if(!(0<=a&&100>=a))return null;b=.65*this.o+.35*a;var c=PZ(R_,b),d=X(),e=!1,f=!1;null!==c&&(f=R_[this.l][0]<R_[c][0],c===this.l&&(d=this.h),e=8E3<wR(X(),d));return{fractionLost:a,Nk:b,status:c,bb:d,jb:f,Ea:e}};
k.rb=function(a){var b=a.status,c=a.jb;if(a.Ea||c)switch(b){case "lcN5Wd":ZZ(this,4043);break;case "QIiD3":ZZ(this,4040);break;case "ucYu5c":ZZ(this,4041);break;case "rBGRnf":ZZ(this,4042)}};k.kb=function(a){var b=a.status,c=a.bb;a=a.Nk;null!==b&&(this.o=a,b!==this.l&&(this.l=b,this.h=c))};k.Ya=function(a){return[a.fractionLost]};var S_={},R_=(S_.lcN5Wd=[-1,5],S_.QIiD3=[5,10],S_.ucYu5c=[10,20],S_.rBGRnf=[20,Infinity],S_);var T_=function(a,b){VZ.call(this,a,b,"realtime.media.stats.emitters.monitors.screensharereceived.FrameSpacingMonitor",{name:"recentScreenshareRecvFrameSpacing",cb:["Time Since Call Start","Max Frame Spacing (ms)"]});this.o=X();this.l=new Map;this.reset()};t(T_,VZ);T_.prototype.reset=function(){this.h="lcN5Wd";this.u=-1;this.l.clear();this.o=X();YZ(this);$Z(this)};
T_.prototype.Xa=function(a){var b=this;a=a.filter(function(m){m=VU.get(m);return m.h&&!!m.Dg});if(0===a.length)return null;var c=a.map(function(m){var q=U_(m),r=q.Nb;q=q.ssrc;0>=r&&(r=(r=b.l.get(q))?wR(X(),r):Infinity);return{Nb:Math.min(r,VU.get(m).Dg),ssrc:q}});a.forEach(function(m){m=U_(m);var q=m.ssrc;0<m.Nb&&b.l.set(q,X())});c=cba?dba(c):eba(c);if(!c)return null;a=c.Nb;c=c.ssrc;var d=PZ(V_,a),e=X(),f=!1,g=!1,h=!1;null!==d&&(h=V_[this.h][0]<V_[d][0],d===this.h&&(e=this.o),f=5E3<wR(X(),e),g=5E3<
a);return{Nb:a,ssrc:c,status:d,bb:e,jb:h,Ea:f,wb:g}};var dba=function(a){a=a.reduce(function(c,d){return c.Nb<d.Nb?d:c},{Nb:-1,ssrc:0});var b=a.Nb;return-1===b?null:{Nb:b,ssrc:a.ssrc}};T_.prototype.mi=function(a,b){a.Nb===this.u&&VZ.prototype.mi.call(this,a,b)};var eba=function(a){var b=a.reduce(function(c,d){return c.Nb<d.Nb?d:c},{Nb:-Infinity,ssrc:0});a=b.Nb;b=b.ssrc;return 0<=a&&12E4>=a?{Nb:a,ssrc:b}:null};
T_.prototype.rb=function(a){var b=a.status,c=a.Ea,d=a.wb,e=a.ssrc;if(a.jb||c)switch(b){case "lcN5Wd":ZZ(this,4185,{Jc:e});break;case "peRWwb":ZZ(this,4186,{Jc:e});break;case "kJFEZb":ZZ(this,4187,{Jc:e});break;case "fcP1q":ZZ(this,4188,{Jc:e});break;case "ozt2pf":ZZ(this,4189,{Jc:e})}d?XZ(this,4184,{Jc:e}):c&&YZ(this)};T_.prototype.kb=function(a){var b=a.Nb,c=a.status;a=a.bb;null!==c&&(this.u=b,c!==this.h&&(this.h=c,this.o=a))};T_.prototype.Ya=function(a){return[a.Nb]};
var U_=function(a){var b=EF(a)||vF(a)[0]||0;return{Nb:L(a,138)||0,ssrc:b}},cba=mf&&Xp(62),W_={},V_=(W_.lcN5Wd=[-Infinity,300],W_.peRWwb=[300,1500],W_.kJFEZb=[1500,5E3],W_.fcP1q=[5E3,2E4],W_.ozt2pf=[2E4,Infinity],W_);var X_=function(a,b){VZ.call(this,a,b,"realtime.media.stats.emitters.monitors.screensharereceived.OneWayDelayMonitor",{name:"recentScreenshareRecvOneWayDelay",cb:["Time Since Call Start","One Way Delay (ms)"]});this.h=X();this.reset()};t(X_,VZ);k=X_.prototype;k.reset=function(){this.l="lcN5Wd";this.o=0;this.h=X();$Z(this)};
k.Xa=function(a,b){if(10>b)return this.h=X(),null;a=a.map(function(g){return{delay:L(g,89),rg:VU.get(g).Dg}}).filter(function(g){var h=g.delay;g=!!g.rg;return"number"===typeof h&&0<h&&9E4>h&&g}).map(function(g){return Math.min(g.delay,g.rg)});a=Math.max.apply(Math,[].concat(p(a),[-1]));if(0>a)return null;b=.65*this.o+.35*a;var c=PZ(Y_,b),d=X(),e=!1,f=!1;null!==c&&(e=Y_[this.l][0]<Y_[c][0],c===this.l&&(d=this.h),f=1E4<wR(X(),d));return{Bu:a,Fw:b,status:c,bb:d,jb:e,Ea:f}};
k.rb=function(a){var b=a.status,c=a.Ea;if(a.jb||c)switch(b){case "lcN5Wd":ZZ(this,4017);break;case "MNZVHe":ZZ(this,4014);break;case "CUJ8qd":ZZ(this,4015);break;case "ydPu5e":ZZ(this,4016)}};k.kb=function(a){var b=a.status,c=a.Fw;a=a.bb;null!==b&&(this.o=c,b!==this.l&&(this.l=b,this.h=a))};k.Ya=function(a){return[a.Bu]};var Z_={},Y_=(Z_.lcN5Wd=[0,2E3],Z_.MNZVHe=[2E3,3E3],Z_.CUJ8qd=[3E3,5E3],Z_.ydPu5e=[5E3,Infinity],Z_);var $_=function(a,b){T.call(this);var c=this;this.j=new qL(this);this.F=sL(this.j);this.h=new H_(a,b);this.T(this.h);this.h.g.attach(function(d){var e=d.uc,f=d.wb,g=d.Ea;d=f&&!c.g;g=!f&&g&&c.g;(d||g)&&c.j.W(c.F,{uc:e,Oh:f});d?c.g=!0:g&&(c.g=!1)},this);this.g=!1;this.l=new K_(a,b);this.T(this.l);this.m=new N_(a,b);this.T(this.m);this.u=new Q_(a,b);this.T(this.u);this.o=new T_(a,b);this.T(this.o);this.D=new X_(a,b);this.T(this.D)};t($_,T);var a0=function(a,b){VZ.call(this,a,b,"realtime.media.stats.emitters.monitors.screensharesent.BitRateMonitor",{name:"recentScreenshareSentBitrate",cb:["Time Since Call Start","Screenshare Sent Bitrate (kbps)"]});this.o=0;this.h="lcN5Wd";this.l=X()};t(a0,VZ);k=a0.prototype;k.reset=function(){this.o=0;this.h="lcN5Wd";this.l=X();YZ(this);$Z(this)};
k.Xa=function(a){a=a.filter(function(h){return"number"===typeof L(h,29)&&0<L(h,29)&&"number"===typeof L(h,42)}).map(function(h){return L(h,42)});a=Math.min.apply(Math,p(a));if(Infinity===a)return null;a=Math.round(a/100)/10;var b=.65*this.o+.35*a,c=PZ(b0,b),d=X(),e=!1,f=!1,g=!1;null!==c&&(e=b0[this.h][0]>b0[c][0],c===this.h&&(d=this.l),f=5E3<wR(X(),d),g=200>=b);return{uc:a,status:c,bb:d,jb:e,Ea:f,wb:g,Ok:b}};
k.rb=function(a){var b=a.status,c=a.Ea,d=a.wb;if(a.jb||c)"lcN5Wd"===b?ZZ(this,4373):"MNynB"===b&&ZZ(this,4374);d&&XZ(this,4375)};k.kb=function(a){var b=a.status,c=a.bb;this.o=a.Ok;null!==b&&b!==this.h&&(this.h=b,this.l=c)};k.Ya=function(a){return[a.uc]};var c0={},b0=(c0.MNynB=[-Infinity,200],c0.lcN5Wd=[200,Infinity],c0);var d0=function(a,b,c){VZ.call(this,a,b,"realtime.media.stats.emitters.monitors.screensharesent.FpsCaptureMonitor",{name:"recentScreenshareSentFpsCapture",cb:["Time Since Call Start","Sent FPS (Capture)"]});this.o=new QZ(0,.6,1E4>c?10:2);this.h="lcN5Wd";this.l=X()};t(d0,VZ);k=d0.prototype;k.reset=function(){this.h="lcN5Wd";this.l=X();YZ(this);$Z(this)};
k.Xa=function(a,b){if(10>b)return this.l=X(),null;a=Math.min.apply(Math,p(a.map(function(g){return L(g,29)})));if(0>a||60<a)return null;this.o.add(a);b=PZ(e0,a);var c=X(),d=!1,e=!1,f=!1;null!==b&&(d=e0[this.h][0]>e0[b][0],b===this.h&&(c=this.l),e=5E3<wR(X(),c),f=0>=a&&RZ(this.o));return{tm:a,status:b,bb:c,jb:d,Ea:e,wb:f}};k.rb=function(a){var b=a.status,c=a.Ea,d=a.wb;if(a.jb||c)"lcN5Wd"===b?ZZ(this,4340):"x5ghY"===b&&ZZ(this,4339);d?XZ(this,4341):c&&YZ(this)};
k.kb=function(a){var b=a.status;a=a.bb;null!==b&&b!==this.h&&(this.h=b,this.l=a)};k.Ya=function(a){return[a.tm]};var f0={},e0=(f0.x5ghY=[-Infinity,0],f0.lcN5Wd=[0,Infinity],f0);var g0=function(a,b){VZ.call(this,a,b,"realtime.media.stats.emitters.monitors.screensharesent.FpsEncodeMonitor",{name:"recentScreenshareSentFpsEncode",cb:["Time Since Call Start","Sent FPS (Encode)"]});this.h="lcN5Wd";this.l=X()};t(g0,VZ);k=g0.prototype;k.reset=function(){this.h="lcN5Wd";this.l=X();YZ(this);$Z(this)};
k.Xa=function(a){a=a.filter(function(g){return"number"===typeof L(g,29)&&0<L(g,29)&&"number"===typeof L(g,30)});a=Math.min.apply(Math,p(a.map(function(g){return L(g,30)})));if(0>a||60<a)return null;var b=PZ(h0,a),c=X(),d=!1,e=!1,f=!1;null!==b&&(d=h0[this.h][0]>h0[b][0],b===this.h&&(c=this.l),e=2E3<wR(X(),c),f=0>=a);return{um:a,status:b,bb:c,jb:d,Ea:e,wb:f}};k.rb=function(a){var b=a.status,c=a.Ea,d=a.wb;if(a.jb||c)"lcN5Wd"===b?ZZ(this,4329):"x5ghY"===b&&ZZ(this,4328);d&&XZ(this,4330)};
k.kb=function(a){var b=a.status;a=a.bb;null!==b&&b!==this.h&&(this.h=b,this.l=a)};k.Ya=function(a){return[a.um]};var i0={},h0=(i0.x5ghY=[-Infinity,0],i0.lcN5Wd=[0,Infinity],i0);var j0=function(a,b){VZ.call(this,a,b,"realtime.media.stats.emitters.monitors.screensharesent.FractionLostMonitor",{name:"recentScreenshareSentFractionLost",cb:["Time Since Call Start","Fraction Lost (%)"]});this.h=X();this.reset()};t(j0,VZ);k=j0.prototype;k.reset=function(){this.o=0;this.l="lcN5Wd";this.h=X();YZ(this);$Z(this)};
k.Xa=function(a,b){var c=X();if(10>b)return this.h=c,null;a=Math.max.apply(Math,p(a.map(function(m){return L(m,2)})));if(0>a||100<a)return null;b=.65*this.o+.35*a;var d=PZ(k0,b),e=c,f=!1,g=!1,h=!1;null!==d&&(f=k0[this.l][0]<k0[d][0],d===this.l&&(e=this.h),g=8E3<wR(c,e),h=20<=b);return{fractionLost:a,status:d,bb:e,jb:f,Ea:g,wb:h,Nk:b}};
k.rb=function(a){var b=a.status,c=a.Ea,d=a.wb;if(a.jb||c){a=void 0;switch(b){case "lcN5Wd":a=4035;break;case "QIiD3":a=4032;break;case "ucYu5c":a=4033;break;case "rBGRnf":a=4034}a&&ZZ(this,a)}d?XZ(this,4237):c&&YZ(this)};k.kb=function(a){var b=a.status,c=a.bb;this.o=a.Nk;null!==b&&b!==this.l&&(this.l=b,this.h=c)};k.Ya=function(a){return[a.fractionLost]};var l0={},k0=(l0.lcN5Wd=[-1,5],l0.QIiD3=[5,10],l0.ucYu5c=[10,20],l0.rBGRnf=[20,Infinity],l0);var m0=function(a,b,c){T.call(this);var d=this;this.g=new qL(this);this.G=sL(this.g);this.H=sL(this.g);this.M=sL(this.g);this.J=sL(this.g);this.l=this.j=this.h=this.m=!1;this.F=new a0(a,b);this.T(this.F);this.F.g.attach(function(e){var f=e.uc,g=e.wb,h=e.Ea;e=g&&!d.m;h=!g&&h&&d.m;(e||h)&&d.g.W(d.G,{uc:f,Oh:g});e?d.m=!0:h&&(d.m=!1)},this);this.o=new d0(a,b,c);this.T(this.o);this.o.g.attach(function(e){var f=e.tm,g=e.wb,h=e.Ea;e=g&&!d.h;h=!g&&h&&d.h;(e||h)&&d.g.W(d.H,{Ir:f,eL:!g});e?d.h=!0:h&&(d.h=!1)},
this);this.u=new g0(a,b);this.T(this.u);this.u.g.attach(function(e){var f=e.um,g=e.wb,h=e.Ea;e=g&&!d.j;h=!g&&h&&d.j;(e||h)&&d.g.W(d.M,{Ir:f,hL:!g});e?d.j=!0:h&&(d.j=!1)},this);this.D=new j0(a,b);this.T(this.D);this.D.g.attach(function(e){var f=e.fractionLost,g=e.wb,h=e.Ea;e=g&&!d.l;h=!g&&h&&d.l;(e||h)&&d.g.W(d.J,{fractionLost:f,Ht:g});e?d.l=!0:h&&(d.l=!1)},this)};t(m0,T);var n0=function(a,b){VZ.call(this,a,b,"realtime.media.stats.emitters.monitors.videoreceived.DelayMonitor",{name:"recentVideoDelay",cb:["Time Since Call Start","Max Video Delay (ms)"]});this.h=X();this.reset()};t(n0,VZ);k=n0.prototype;k.reset=function(){this.l="lcN5Wd";this.h=X();$Z(this)};
k.Xa=function(a,b){var c=X();if(15>b)return this.h=c,null;a=a.map(function(h){return[h,VU.get(h)]}).filter(function(h){h=n(h);h.next();return!!h.next().value}).map(function(h){var m=n(h);h=m.next().value;m=m.next().value;return{delay:L(h,89),rg:m.Dg}}).filter(function(h){var m=h.delay;h=!!h.rg;return"number"===typeof m&&0<m&&9E4>m&&h}).map(function(h){return Math.min(h.delay,h.rg)});a=Math.max.apply(Math,[].concat(p(a),[-1]));if(0>a)return null;b=PZ(o0,a);var d=c,e=!1,f=!1,g=!1;null!==b&&(e=o0[this.l][0]<
o0[b][0],b===this.l&&(d=this.h),f=1E4<wR(c,d),g=1E3<a);return{zh:a,status:b,bb:d,jb:e,Ea:f,wb:g}};k.rb=function(a){var b=a.status,c=a.Ea;if(a.jb||c)"lcN5Wd"===b?ZZ(this,4012):"CNusmb"===b&&ZZ(this,4011)};k.kb=function(a){var b=a.status;a=a.bb;null!==b&&b!==this.l&&(this.l=b,this.h=a)};k.Ya=function(a){return[a.zh]};var p0={},o0=(p0.lcN5Wd=[-Infinity,1E3],p0.CNusmb=[1E3,Infinity],p0);var q0=function(a,b){T.call(this);var c=this;this.g=new qL(this);this.l=this.g.signal();this.o=sL(this.g);this.m=sL(this.g);this.h=!1;this.j=new n0(a,b);this.T(this.j);this.j.g.attach(function(d){var e=d.wb,f=d.Ea;d={zh:d.zh};c.g.W(c.l,d);e&&!c.h?(c.g.W(c.o,d),c.h=!0):!e&&f&&c.h&&(c.g.W(c.m,d),c.h=!1)},this)};t(q0,T);var s0=function(a,b,c,d,e){T.call(this);this.g=new r0(b);this.o=new q_(a,this.g.j,1E3,function(){return e()});this.T(this.o);this.F=new A_(a,this.g.l);this.T(this.F);this.D=new B_(a,this.g.l,c);this.T(this.D);this.j=new b_(a,this.g.o);this.T(this.j);this.M=new s_(a,this.g.h);this.T(this.M);this.Eg=new w_(a,this.g.o);this.T(this.Eg);this.network=new G_(a,this.g.F);this.T(this.network);this.l=new f_(a,this.g.h);this.T(this.l);this.L=new $_(a,this.g.D);this.T(this.L);this.V=new m0(a,this.g.H,1E3);this.T(this.V);
this.X=new q0(a,this.g.G);this.T(this.X);this.h=new c_(a,this.g.j);this.T(this.h);this.m=new h_(a,this.j,this.l,this.h);this.T(this.m);this.u=new y_(a,this.g.l);this.T(this.u);this.G=new C_(a,this.g.h);this.T(this.G);this.H=new D_(a,this.g.u);this.T(this.H);this.J=new x_(a,this.g.j,1E3);this.T(this.J)};t(s0,T);
var r0=function(a){T.call(this);var b=this;this.g=new qL(this);this.m=0;this.h=this.g.signal();this.F=this.g.signal();this.o=this.g.signal();this.j=this.g.signal();this.D=this.g.signal();this.G=this.g.signal();this.l=this.g.signal();this.H=this.g.signal();this.L=this.g.signal();this.u=this.g.signal();this.J=X();this.M=0;a.attach(function(c){c=c.lb;var d=Math.round(wR(X(),b.J)/100)/10;b.M=d;b.m++;b.g.W(b.h,{data:c,Oc:d,sequenceNumber:b.m});d=fba(c);var e=d.gr,f=d.Uv,g=d.Wv,h=d.Xv,m=d.iw,q=d.jw,r=d.kw;
t0(b,b.F,d.Vv);t0(b,b.o,e);t0(b,b.j,f);t0(b,b.D,g);t0(b,b.G,h);t0(b,b.l,m);t0(b,b.H,q);t0(b,b.L,r);c=gba(c);null!==c&&t0(b,b.u,c)},this)};t(r0,T);
var t0=function(a,b,c){(!Array.isArray(c)||0<c.length)&&a.g.W(b,{data:c,Oc:a.M,sequenceNumber:a.m})},fba=function(a){var b=[],c=[],d=[],e=[],f=[],g=[],h=[],m=[];oF(a).forEach(function(q){switch(CF(q)){case 1:b.push(q);sl(q,59)?e.push(q):2==BF(q)?f.push(q):1==BF(q)&&d.push(q);break;case 0:sl(q,59)?h.push(q):2==BF(q)?m.push(q):1==BF(q)&&g.push(q);break;case 2:c.push(q)}});return{Vv:b,gr:c,Uv:d,Wv:e,Xv:f,iw:g,jw:h,kw:m}},gba=function(a){return qF(a).find(function(b){return 1==(L(b,2)&1)})||null};var u0=function(a,b){xv.call(this);this.l=b;this.g=new W(this);this.T(this.g);this.g.removeAll();this.g.listen(a,"ta",this.j)};t(u0,xv);u0.prototype.j=function(a){var b=this.l,c=JSON.parse(a.data);c=new OJ(c);c=R(c,MJ,1);D(b.s,"handlePushNotification invoked, batch size: "+c.length);c.forEach(b.g,b);a=JSON.parse(a.data);a=R(new OJ(a),MJ,1);0!=a.length&&1==a.length&&Hb(a,this.h,this)};
u0.prototype.h=function(a){var b=Q(a,tB,1);b&&L(b,3);a=Q(a,LJ,2);if(null!=a)for(var c=0;c<SM.length&&(b=SM[c].xb.call(a),null==b);c++);};function v0(a){(a=void 0===a?"":a)&&(a+="_");return a+ze()};var y0=function(a,b,c){W.call(this);var d=this;this.R=Zf("realtime.media.call.BaseCall");this.ra=a;this.La=b;this.l=this.La.h;this.na=this.ua=this.contentType=null;this.km.bind(this);this.getInfo=w0(this,this.hm.bind(this));this.im.bind(this);this.getSelf=w0(this,this.Sv.bind(this));this.dc=new KZ;this.onConnect=this.dc.g;this.zb=void 0;this.Fa=jt();this.dg=new KZ;this.onDisconnect=this.dg.g;this.pe=void 0;this.ab=new KZ;this.fg=this.ab.g;this.h=new KZ;this.hb=this.h.g;this.kc=new KZ;this.ha=this.kc.g;
this.gb=[];this.Dc=c||v0(WM(this.l));this.ga=new CZ("F75qrd",this);this.ga.Kg(2);this.j=new qL(this);this.mc=this.j.signal();this.Xj=this.j.signal();this.Cc=this.j.signal();this.Zf=this.j.signal();this.eg=this.j.signal();this.cg=sL(this.j);this.ih=sL(this.j);this.Yj=sL(this.j);this.j.W(this.Yj,{enabled:!1});this.nj=new s0(a,this.eg,this.cg,this.ih,function(){return GY(d.Aa)});this.T(this.nj);this.Cj=this.j.signal();this.nc=this.j.signal();uK(a,OK).then(function(e){var f=d.Dc;f!==e.g&&(e.g?e.h=bt(f):
e.j.resolve(f),e.g=f)});uK(a,MK).then(function(e){var f={Og:function(g){return d.Pc(g)},Pg:function(){}};aN(e,f);Bs(d,function(){return IZ(d.onDisconnect,function(){Zb(e.h,f)})})});this.Zc=new x0(this);LS(this.Zc,this.Dc).o="jid";this.bd=new KZ;this.ob=this.bd.g;this.oc=new KZ;this.nb=this.oc.g;this.th=new NZ;this.T(this.th);this.Uf=new NZ;this.T(this.Uf);this.Aa=new yY(a,b,this.th.g,this.Uf.g,this.Dc);this.T(this.Aa);this.gg=new KZ;this.Aa.Pa.fa.then(function(e){return e.h.ym()}).then(function(){return d.gg.resolve(!0)});
this.oe=new Maa;caa(this.Aa,function(e){return Oaa(d.oe,e)});this.J=new Map;haa(this.Aa,function(e){var f=e.Z(),g=[].concat(p(d.J.keys())).find(function(h){return h.ha.get()==f});return g&&"v"==e.Ka&&(e=new NO("",e.getId(),e.Ka,e.getContent(),e.getState(),e.Ie,e.pd&&cc(e.pd)),g=g.Aa.Ia(e))?g:null});(new KZ).resolve(this.Aa);this.Za=0;this.listen(this.Aa,IS,function(e){return d.j.W(d.Zf,{message:e.message})});this.listen(this.Aa,"W",function(e){return d.j.W(d.eg,{lb:e.lb})});this.listen(this.Aa,"sa",
function(e){return d.j.W(d.Cj,{ha:e.ha,data:e.data,lL:CU(e)})});this.listen(this.Aa,NS,function(e){return d.j.W(d.nc,{Sc:e.Sc,Bc:e.Bc,removed:e.removed})});this.listen(this.Aa,"da",this.pj);hba(this);this.oh=new KZ;this.sessionId=this.oh.g;uK(a,UK).then(function(e){return iba(e,d)});this.yb=!1;this.Qc=this.xa=this.Da=-1;$R(this,this.tg());jba.forEach(function(e){return e(d)})};t(y0,W);
var kba=function(a){var b;return Ba(function(c){if(1==c.g)return a.na?c.fb(2):v(c,a.Gm(),3);2!=c.g&&(b=c.h,a.na||(a.na=b(),a.T(a.na)));return c.return(a.na)})};y0.prototype.Sv=function(){var a=this,b,c,d;return Ba(function(e){switch(e.g){case 1:return v(e,kba(a),2);case 2:return b=e.h,v(e,a.ha,3);case 3:c=e.h;case 4:return(d=b.get(c))?e.return(d):v(e,b.h.next(a),4)}})};var w0=function(a,b){return wc(function(){var c;return Ba(function(d){if(1==d.g)return v(d,b(),2);c=d.h;a.T(c);return d.return(c)})})};
y0.prototype.pa=function(a){this.H=a instanceof gT?{Oi:a}:Object.assign({},a);bg(this.R,"Starting the media session.");this.ga.Kg(16);a=this.H;var b=this.H.Oi;if(b.Xk){var c=this.l.Vb();b=b.la();b.Mi=c}c=this.l.sf();null!=c&&(b=b.la(),b.Ti=c);this.H.zg&&nf&&(c=b.la(),c.af=!1,b=c);this.H.VK&&(c=b,b=b.kg.la(),b.h=!1,b=b.la(),b.g=!1,b=b.la(),b.l=!1,b=b.la(),b.j=!1,b=b.la(),b.C=!1,b=mT(c,b));Object.assign({},this.H).Kt&&(c=b.la(),c.hp=!1,c=hT(c).la(),c.Gi=null,b=c);a.Oi=b;a=this.Aa;c=this.H.Oi;if("INITIAL"!=
a.getState())a=!1;else{b=c.rf()&&mf&&Xp(73)&&!GR(DR("Qb5Zab"));c=c.la();c.Ei=b;b=c.ai&&c.rf()&&!GR(DR("b3GUjf"));c=c.la();c.ai=b;b=c.qf||GR(DR("r2N8Gc"));c=c.la();c.qf=b;b=c.Bk||GR(DR("Jd3rO"));c=c.la();c.Bk=b;b=c.Ci&&!GR(DR("n0TZ4"));c=c.la();c.Ci=b;b=mf&&Xp(75)?c.jg:0;c=c.la();c.jg=b;b=HR(DR("tvRQLd"),-1);c=c.la();c.ni=0<=b;c.ni&&(c=c.la(),c.Cf=b);c.Od&&"low"!==c.Od||c.Ld&&"low"!==c.Ld||!GR(DR("Yp6mEf"))||(c=oT(nT(c,"high"),"high"));c.qf&&QY(a,5455);UR&&(b=UR,void 0!==b.h&&(b=!b.h,c=c.la(),c.Zk=
b));b=a.L;var d=new gL({Me:hC,Ke:[],Le:[],Se:[hC.prototype.l],Te:[hC.prototype.u],Pe:GH,Ne:[],Oe:[],Qe:[GH.prototype.l],Re:[GH.prototype.u]}),e=new uO(hN(a.J,b)),f=new qN(b.j,"m");b=new zN(Q(b.g,NL,13),[],d,e,f,b.l);a.ga=b;a.T(a.ga);b=c;a.g.info("Updating default options to: "+Fs(b.za()));a.D=b;if(null==a.h||ld(a.h))a.h=a.D.ed;null==a.h||ld(a.h)||a.Oa.resolve(a.h);a.j=SY(a);null==a.j?(a.g.error("Failed to create the cloud session."),a.stop(16,"Failed to create cloud session."),a=!1):(vaa(a,c),zY(a,
"STARTING"),a=!0)}a?this.ab.resolve(null):this.ab.reject("Failed to create session.")};
y0.prototype.tg=function(){var a=this,b=null;this.onDisconnect.then(function(c){return b=c});return{callDuration:function(){var c=void 0===a.zb?0:(a.pe||X().g)-a.zb;c=new Date(c);return we(c.getUTCHours(),2)+":"+we(c.getUTCMinutes(),2)+":"+we(c.getUTCSeconds(),2)},callState:function(){return a.getState()},endCause:function(){return b},hangoutId:function(){return a.hb.get()},pid:function(){return a.ha.get()},plid:function(){return a.Dc},sessionId:function(){return z0(a)}}};
y0.prototype.ba=function(){bg(this.R,"Disposing call.");this.disconnect(0);this.J.forEach(function(a){return Cs(a)});W.prototype.ba.call(this)};y0.prototype.getState=function(){return this.Za};
var A0=function(a,b){b!=a.Za&&(D(a.R,"Call state changed from "+a.Za+" to "+b),a.Za=b,a.j.W(a.Cc,void 0))},z0=function(a){return a.Aa.j&&a.Aa.j.qb()},B0=function(a,b,c){JZ(a.ha)||(a.h.resolve(b),a.kc.resolve(c))},C0=function(a,b,c,d){D(a.R,"triggerConnected() called. HangoutId: "+c+" ParticipantId: "+d);B0(a,c,d);var e=a.jm();a.T(e);a.bd.resolve(e);a.listen(e,"F",a.qd);vN(a,e,"F",function(){return a.nc.attach(function(){return a.qd()},a)});var f=!1;vN(a,e,"F",function(){f=!0});a.nc.attach(function(){f&&
a.qd()},a);e=new kZ(e,a.Aa);a.oc.resolve(e);a.T(e);a.zb=X().g;b.resolve();a.dc.resolve(null);A0(a,2);a.ga.Kg(25);a.Aa.connect(c,d,a.Zc);a.T(new u0(a.Aa,a.l.j,a.l.l));D(a.R,"Call connected")};y0.prototype.T=function(a){a=W.prototype.T.bind(this,a);JZ(this.onDisconnect)?a():this.onDisconnect.then(a,a)};var D0=function(a,b){a.gb=cc(b);iaa(a.Aa,a.gb);a.ob.then(function(c){c.o(a.gb)})};
y0.prototype.disconnect=function(a){if(3==this.getState()||4==this.getState())return D(this.R,"disconnect() skipped, already disconnecting."),this.onDisconnect;a=E0.has(a)&&this.Aa.xa?E0.get(a):a;D(this.R,"disconnect() called. Endcause: "+a);this.pe=X().g;var b=2==this.getState();A0(this,3);this.Aa.stop(a);this.ah(b,a);return this.onDisconnect};
y0.prototype.ah=function(a,b){D(this.R,"triggerDisconnected(). Endcause: "+b);a=new F0(b);this.h.reject(a);this.kc.reject(a);this.bd.reject(a);this.oc.reject(a);this.dc.reject(a);this.ab.reject(a);this.gg.reject(a);this.dg.resolve(b);A0(this,4)};y0.prototype.Uh=function(a){if(3==this.getState()||4==this.getState())return D(this.R,"addCapture() failed, because we are disconnecting"),!1;var b=eaa(this.Aa,a);if(b)switch(a.g.Ka){case "a":this.j.W(this.cg,a);break;case "v":this.j.W(this.ih,a)}return b};
var hba=function(a){Ba(function(b){a.Zf.attach(function(c){"render first video frame"===c.message&&a.ga.Kg(6,809)});b.g=0})};y0.prototype.pj=function(a){a.target==this.Aa?"STOPPED"==a.state?(D(this.R,"Disconnect received from session. Endcause: "+a.Mb),this.disconnect(a.Mb)):"INPROGRESS"==a.state&&(this.ga.Kg(5),this.j.W(this.Xj,void 0)):"STARTING"==a.state&&(a=a.target.h.g,JZ(this.sessionId)?this.Dh(a):this.oh.resolve(a))};
y0.prototype.xc=function(){this.ua||(Object.assign({},this.H).Kt||Ke||GR(DR("hnkCOb"))?this.ua=new FZ(this):this.ua=new GZ(this),this.T(this.ua));return this.ua};y0.prototype.qd=function(){var a=this;this.yb||(this.yb=!0,Ss(function(){a.yb=!1;var b=a.ob.get(),c=new Map;a.gb.forEach(function(d){(d=b.Ce(d))&&Array.from(d.g).forEach(function(e){var f=e.Ie;f=1*(null===f?1:f);"a"==e.Ka&&1!==f&&(e=a.Aa.Ia(e))&&c.set(e,f)})});gaa(a.Aa,c)}))};
y0.prototype.Pc=function(a){a=gM(a);var b=this.hb.get();null!=b&&N(a,3,b);b=this.ha.get();null!=b&&N(a,4,b);b=z0(this);null!=b&&N(a,10,b);b=this.Aa.j&&this.Aa.j.h.g;null!=b&&N(a,2,b)};
var lba=function(a,b){(b=qF(b).find(function(c){return!!(L(c,2)&1)}))?(a.Da=L(b,5),a.xa=L(b,7),a.Qc=L(b,3)):(a.Da=-1,a.xa=-1,a.Qc=-1)},mba=function(a,b){if(b=qF(b).find(function(f){return!!(L(f,2)&1)})){var c=L(b,5),d=L(b,7),e=L(b,3);[].concat(p(a.J.keys())).forEach(function(f){-1!=c&&-1!=f.Da&&(c+=f.Da);-1!=d&&-1!=f.xa&&(d+=f.xa);-1!=e&&(e=Math.max(e,f.Qc))});N(b,150,c);N(b,151,d);N(b,153,e)}};y0.prototype.Y=function(a){uK(this.ra,MK).then(function(b){return b.Y(a)})};
var I0=function(a,b,c){return a.getState()!=b?(C(a.R,"Unexpected state while in "+c+": "+a.getState()+" != "+b),new G0(302,new H0(b,a.getState()))):null},nba=function(a){var b=cN(a.l),c=Q(b,eB,2);N(c,4,a.Dc);S(b,2,c);return b},jba=[],H0=function(){var a=Error.call(this);this.message=a.message;"stack"in a&&(this.stack=a.stack)};t(H0,Error);var F0=function(a){var b=Error.call(this,"DisconnectedError, EndCause = "+a);this.message=b.message;"stack"in b&&(this.stack=b.stack);this.Mb=a};t(F0,Error);
var x0=function(a){KS.call(this);this.m=a};t(x0,KS);x0.prototype.C=function(a){var b=this;KS.prototype.C.call(this,a);var c=0<this.m.J.size?2:1;if(a=Q(a,OE,4))N(a,170,c),(R(a,QE,5)||[]).forEach(function(d){lba(b.m,d);0<b.m.J.size&&mba(b.m,d)})};var G0=function(a,b){var c=Error.call(this,"startupCode: "+a+", error = "+Bf(b));this.message=c.message;"stack"in c&&(this.stack=c.stack);this.Iw=a;this.ye=b};t(G0,Error);var E0=new Map([[63,124],[0,123]]);var J0=function(a,b,c){fR.call(this);this.h=a;this.m=c;this.g=new Map;this.l=new $Q(!0);this.l.F=this;this.u=new W(this);this.T(this.u);this.u.listen(this.m,["ba","da"],this.D);b.forEach(this.j,this)};t(J0,fR);var oba=function(a,b,c){return new J0(a,b,c)};J0.prototype.j=function(a){""==a.Z()&&(a.j=this.h);this.l.add(a)};J0.prototype.Ce=function(a){return""==a||a==this.h?this.l:this.g.get(a)||null};
J0.prototype.o=function(a){var b=this,c=new Set;a.forEach(function(d){if(d!=b.h&&(c.add(d),!b.g.has(d))){var e=new $Q;e.F=b;b.g.set(d,e);b.N(new eR("Q",d,e))}});this.g.forEach(function(d,e){c.has(e)||(b.g.delete(e),b.N(new eR("R",e,d)))});this.D()};
J0.prototype.D=function(){var a=this,b=new Map;this.m.j.m.concat(aaa(this.m)).forEach(function(c){var d=c.Z()||a.h,e=c.Ba();e=d+"/"+e;b.has(e)?b.get(e).push(c):(b.set(e,[c]),c=a.Ce(d),null==c&&(c=new $Q,a.g.set(d,c),a.N(new eR("Q",d,c))))});b.forEach(function(c){var d=c.find(function(q){return!q.getInfo().qc()})||c[0],e=d.getInfo();c=e.ka();var f=d.Ba(),g=d.Z()||a.h,h=e.qc()?"mu":"li",m=a.Ce(g);d=aR(m,c,f,g);null==d?(d=RO({Zh:g,id:f,mediaType:c,state:h}),m.add(d)):PO(d,h);e=e.Zd();"v"==c&&OO(d,e?
"ca":"sc");QO(d,e)});this.g.forEach(function(c){Array.from(c.g).forEach(function(d){b.has(pba(d.Z(),d.getId()))||c.remove(d)})})};var pba=function(a,b){return a+"/"+b};var K0=function(a){K(this,a,0,-1,null,null)};B(K0,J);var qba=function(a,b){for(;Bk(b)&&!Ak(b);)switch(b.h){case 1:var c=yk(b.g);wl(a,1,c,0);break;case 2:c=Gk(b);P(a,2,c);break;default:Ck(b)}return a};var L0=function(a){K(this,a,0,-1,rba,null)};B(L0,J);var rba=[7],sba=function(a,b){for(;Bk(b)&&!Ak(b);)switch(b.h){case 1:var c=Gk(b);P(a,1,c);break;case 2:c=wk(b.g,nk);wl(a,2,c,0);break;case 3:c=xk(b.g);wl(a,3,c,0);break;case 4:c=Ek(b);wl(a,4,c,!1);break;case 5:c=yk(b.g);wl(a,5,c,0);break;case 6:c=Gk(b);P(a,6,c);break;case 7:c=new K0;Dk(b,c,qba);Dl(a,7,c,K0);break;case 8:c=Fk(b);xl(a,8,c);break;default:Ck(b)}return a};L0.prototype.getDeviceId=function(){return M(this,1,"")};
L0.prototype.ac=function(){return M(this,3,0)};var O0=function(a){T.call(this);this.h=new qL(this);M0(a);this.m=a.getDeviceId();M(a,2,0);this.j=a.ac();this.g=ul(a,4,!1);vl(a,5);N0(a);this.l=X();this.onUpdated=this.h.signal()};t(O0,T);O0.prototype.update=function(a){var b=a.ac();return b>this.j?(this.j=b,this.g=ul(a,4,!1),N0(a),X(),this.h.W(this.onUpdated,void 0),!0):!1};O0.prototype.getDeviceId=function(){return this.m};O0.prototype.isFinal=function(){return this.g};O0.prototype.getCreationTime=function(){return this.l};
var M0=function(a){return a.getDeviceId()+"|"+M(a,2,0)},N0=function(a){R(a,K0,7).length?R(a,K0,7).map(function(b){return{text:M(b,2,""),confidence:vl(b,1)}}):M(a,6,"")&&(M(a,6,""),vl(a,5))};var P0=function(a){K(this,a,0,-1,tba,null)};B(P0,J);var Q0=function(a){K(this,a,0,-1,null,null)};B(Q0,J);var R0=function(a){K(this,a,0,-1,null,null)};B(R0,J);var tba=[5,7];k=P0.prototype;k.zs=function(){return M(this,1,"")};k.uw=function(a){return N(this,1,a)};k.xt=function(){return null!=L(this,1)};k.Qb=function(){return M(this,2,"")};k.Yu=function(a){return N(this,2,a)};k.Uu=function(){return null!=L(this,2)};k.Su=function(){return M(this,3,"")};k.Zu=function(a){return N(this,3,a)};
k.yt=function(){return null!=L(this,3)};k.Ru=function(){return M(this,4,"")};k.Xu=function(a){return N(this,4,a)};k.wt=function(){return null!=L(this,4)};k.Tu=function(){return Q(this,Q0,6)};k.av=function(a){return S(this,6,a)};k.Vu=function(){return null!=L(this,6)};k.Rr=function(){return Q(this,R0,8)};k.sw=function(a){return S(this,8,a)};k.Vs=function(){return null!=L(this,8)};k.Qu=function(){return M(this,9,"")};k.Wu=function(a){return N(this,9,a)};k.Us=function(){return null!=L(this,9)};var S0=function(a){this.g=a};S0.prototype.update=function(a,b,c){var d=!1;try{if(this.g.has.call(b)){var e=this.g.get.call(b);e!==this.g.get.call(a)&&(this.g.set.call(a,e),d=!0,c&&this.g.signal&&c.add(this.g.signal,e))}}catch(f){Is(f)}return d};function T0(a,b,c,d){return c.reduce(function(e,f){return f.update(a,b,d)||e},!1)}function U0(a){return new S0(a)};var V0=P0.prototype,W0=function(a){T.call(this);var b=this;this.h=new P0;this.g=new qL(this);this.j=sL(this.g);this.o=sL(this.g);this.u=sL(this.g);this.m=sL(this.g);this.l=[U0({has:V0.xt,get:V0.zs,set:V0.uw}),U0({has:V0.Uu,get:V0.Qb,set:V0.Yu,signal:this.u}),U0({has:V0.yt,get:V0.Su,set:V0.Zu}),U0({has:V0.wt,get:V0.Ru,set:V0.Xu,signal:this.o}),U0({has:V0.Vu,get:V0.Tu,set:V0.av}),U0({has:V0.Vs,get:V0.Rr,set:V0.sw}),U0({has:V0.Us,get:V0.Qu,set:V0.Wu,signal:this.m})];this.g.W(this.j,this.h);a.jc.attach(function(c){var d=
c.g,e=c.j,f=new yL(b.g);c=T0(b.h,c.h,b.l,f);d&&(c=!0,N(b.h,7,d||[]));e&&(c=!0,Cl(b.h,5,e));c&&f.add(b.j,b.h.clone());f.W()})};t(W0,T);var X0=function(a){K(this,a,0,-1,null,null)};B(X0,J);X0.prototype.Ja=function(){return M(this,2,0)};var Y0=function(a){K(this,a,0,-1,uba,null)};B(Y0,J);var uba=[1];var Z0=function(a,b,c){var d=a.signal();b.attach(function(e){c(e)&&a.W(d,e)});return d},$0=function(a,b,c,d){d=void 0===d?function(e){return e}:d;c.attach(function(e){a.W(b,d(e))},a)},a1=function(a,b,c,d){d=void 0===d?function(e){return e}:d;CL(c,function(e){a.W(b,d(e))},a)};var b1=function(a){T.call(this);this.controller=a;this.g=new qL(this);this.Lg=sL(this.g);this.h=sL(this.g);this.g.W(this.Lg,new Y0);a1(this.g,this.Lg,this.controller.Lg);a1(this.g,this.h,this.Lg,vba)};t(b1,T);b1.prototype.Ll=function(a){return this.controller.Ll(a)};function wba(a){return 3===a.Ja()||2===a.Ja()}function vba(a){return R(a,X0,1).filter(wba)};var d1=function(a,b,c,d){y0.call(this,a,b,d);var e=this;this.Fa.resolve(!1);this.F=!1;this.G=new KZ;this.g=this.G.g;this.Pa=null;this.X=!1;this.V=new KZ;this.ib=this.V.g;this.ib.then(function(f){f.onChange.attach(function(){return c1(e,f)},e);c1(e,f)});this.ta=new KZ;this.We=this.ta.g;this.u={};this.Ca=this.D=this.o=null;this.m={hb:"",ha:"",cookie:null};this.M=null;uK(a,UK,!1).then(x(function(f){this.M=f},this));c&&this.pa(c)};t(d1,y0);
var c1=function(a,b){D0(a,b.get().map(function(d){return d.Z()}));var c=a.ha.get();c&&(b=!!b.get().find(function(d){return d.Z()===c}),a.X&&!b?a.disconnect(21):!a.X&&b&&(a.X=!0))};
d1.prototype.lh=function(){var a=void 0===a?{}:a;var b=I0(this,0,"preJoin");if(b)return ct(b);var c=a.name;a=a.mediaType;if(c){a=this.ra;b=this.l;if(ld(c))c=[];else{var d=/([^/]*)\/(.*)/.exec(c);c=d?d.slice(1):[c]}d=c;if(0==d.length)c=new BB,a=CO(a,b,c);else if(1==d.length)a=bt(AO(a,b,d[0]));else{c=new MB;if(-1==d[0].indexOf(".")){var e=new xB;e=N(e,2,d[1]);d=N(e,1,d[0]);S(c,2,d)}else e=new KB,e=N(e,1,d[1]),d=N(e,2,d[0]),S(c,4,d);a=DO(a,b,c,6E5)}}else if(a)b=this.ra,c=this.l,d=new BB,d=N(d,2,7),a=
N(d,14,a),a=CO(b,c,a);else return bt();return this.Pa=a};
d1.prototype.connect=function(a,b){return this.fg.then(function(){D(this.R,"connect() was called");if(0!=this.getState())return C(this.R,"connect() failed. Not in INITIALIZED. State: "+this.getState()),ct(new H0(0,this.getState()));var c=jt();A0(this,1);if("string"===typeof a){bg(this.R,"Skipping Hangout resolution");var d=AO(this.ra,this.l,a);e1(this,c,d,b||null)}else a?xba(this,c,a,b):c.reject(Error("Can only connect without params for secondary calls"));return c.fa},void 0,this)};
var yba=function(a){var b,c;return Ba(function(d){if(1==d.g)return v(d,a.Pa,2);b=d.h;c=EN(b.l).sa()||"";return d.return(Promise.resolve(zO(a.ra,a.l,[c],mL(),eL,"j","HangoutParticipant")))})},xba=function(a,b,c,d){bg(a.R,"Resolving Hangout");c.then(function(e){e1(this,b,e,d||null)},function(e){C(this.R,"Hangout resolve failed, reverting to INITIALIZED state");A0(this,0);b.reject(new G0(306,e))},a)},e1=function(a,b,c,d){var e=EN(c.l).sa();bg(a.R,"connectToHangout(). HangoutId: "+e);1!=a.getState()?
(C(a.R,"connectToHangout() failed, not in CONNECTING state. State: "+a.getState()),b.reject(new G0(302,new H0(1,a.getState()))),Cs(c)):(a.m.hb=e,a.m.ha=d||"",a.D=iv(kg(),"beforeunload",a.Fn,!1,a),a.Ca=iv(kg(),"unload",a.Fn,!1,a),a.Oa(e,d,b,c,0))};d1.prototype.Dh=function(){};
d1.prototype.Oa=function(a,b,c,d,e){this.sessionId.then(function(f){var g=zO(this.ra,this.l,[a],mL(),eL,"j","HangoutParticipant");bg(this.R,"Adding participant");var h=g.pb();N(h,26,[f]);ld(b||"")||h.l(b);zba(this,h,c,d,g,e)},void 0,this)};
var zba=function(a,b,c,d,e,f){e.add(b).then(function(g){var h={dr:g,oL:!1},m=h.dr[0],q=m.sa();g=m.Z();a.m.ha=g;var r=a.getState();if(1!=r){C(a.R,"add participant succeeded, but we are no longer CONNECTING. State: "+a.getState());h=302;if(63==a.o||3==r||4==r)h=219;c.reject(new G0(h,new H0(1,a.getState())));h=new FB;h.u(q);h.l(g);e.remove(h).then(a.Ch,null,a);Cs(d);Cs(e)}else D(a.R,"add participant succeeded"),10==M(m,17,0)?(D(a.R,"participant in knocking state"),30>f?(D(a.R,"will attempt again after delay"),
Cv(1E3).then(x(a.Oa,a,q,g,c,d,f+1))):(D(a.R,"max knock attempt, failing join"),a.En(c,d,e,234))):(D(a.R,"success adding and not a knock result"),q=EN(d.l).sa(),a.G.resolve(d),a.V.resolve(e),a.T(d),a.T(e),a.Kb=h.We,C0(a,c,q,g),d.start(void 0,h.dL),e.start(void 0,h.ib))},x(a.En,a,c,d,e))};k=d1.prototype;
k.En=function(a,b,c,d){this.Ch();1==this.getState()?(C(this.R,"add participant failed, moving back to INITIALIZED state"),A0(this,0)):C(this.R,"add participant failed, but call already disconnected");Cs(b);Cs(c);a.reject(new G0(Aba(this,d),d))};k.tg=function(){var a=this;return Object.assign(y0.prototype.tg.call(this),{hangout:function(){return a.g.get()&&a.g.get().za()},participants:function(){return a.ib.get()&&a.ib.get().za()},mediaSources:function(){return a.We.get()&&a.We.get().za()}})};
k.jm=function(){var a=this,b=BO(this.ra,this.l,this.hb.get());this.T(b);this.ta.resolve(b);b.start(void 0,this.Kb);b.onChange.attach(function(c){return Bba(a,c.Bc)},this);return waa(this.ha.get(),b,this.ib.get(),this.Aa.o.concat().map(function(c){return c.g}),this.Aa)};
k.ah=function(a,b){var c=this;this.o=b;this.m.cookie=this.l.h.j.g;var d=bt();if(a&&!this.F){D(this.R,"Removing participant on disconnect");d=new FB;d.u(this.hb.get());d.l(this.ha.get());var e={};e=(e.jYdIne=b,e);d=this.ib.get().remove(d,e,2).then(this.Ch,null,this)}mt(d,function(){c.l.h.j.g=null;y0.prototype.ah.call(c,a,b)});xc(this.u,Cs);Hc(this.u);d=new F0(b);this.G.reject(d);this.V.reject(d);this.ta.reject(d);null!=this.g.get()&&this.g.get().stop();null!=this.ib.get()&&this.ib.get().stop();null!=
this.We.get()&&this.We.get().stop()};k.Uh=function(a){if(3==this.getState()||4==this.getState())return D(this.R,"addCapture() failed, because we are disconnecting"),!1;var b=this.u[a.g.getId()];if(b&&b.h.includes(a))return C(this.R,"HangoutCall.addCapture() failed because we already have this capture"),!1;b||(b=new XQ(this),this.u[a.g.getId()]=b);b.listen(a.g,["E","F","G","H"],b.D);b.h.push(a);ZQ(b);return y0.prototype.Uh.call(this,a)};
k.Gm=function(){var a=this;return Ba(function(b){return b.return(uK(a.ra,YY).then(function(c){return function(){return c(a)}}))})};k.km=function(){var a=this,b;return Ba(function(c){b=new qL(a);return c.return(new b1({Lg:sL(b),Ll:function(){return ct("unsupported")}}))})};k.hm=function(){var a=this,b;return Ba(function(c){b=new qL(a);return c.return(new W0({jc:sL(b)}))})};k.im=function(){var a=this;return Ba(function(b){return b.return(uK(a.ra,xaa).then(function(c){return c(a)}))})};
k.Ch=function(){null!=this.D&&sv(this.D);null!=this.Ca&&sv(this.Ca)};
k.Fn=function(){this.Ch();var a=L(this.l.g,12),b=null!=this.o?this.o:63;if(null!=a){var c=new FD;N(c,5,b);var d=new DD;d.l(this.m.hb);ld(this.m.ha)||d.u(this.m.ha);GD(c,[d]);c.setRequestHeader(nba(this));d=new Ll;S(d,3,this.m.cookie||this.l.h.j.g);c.O(d);c=c.va();d=(this.M?f1(this.M,this):[]).map(function(f){return f.va()});if(null!=navigator.sendBeacon){var e=new FormData;e.append("r",c);d.forEach(function(f){e.append("l",f)});this.F=navigator.sendBeacon(a,e)}this.F||(a=$q(a,"r",c),a=$q(a,"l",d),
c=Ov(Mv),c.open("GET",a,!1),c.send(null));this.F=!0}this.disconnect(b)};
var Aba=function(a,b){var c=null,d=null;try{c=b.response.Fb,d=c[0]}catch(f){}var e;"chparp"===d?(b=new $C(c),(c=b.getResponseHeader())&&(e=10==c.Ja()?Cba[L(b,4)]||209:Dba[c.Ja()])):"number"===typeof b&&(e=b);return void 0!==e?e:63==a.o||3==a.getState()||4==a.getState()?219:302},Bba=function(a,b){var c=a.ha.get(),d=b.filter(function(f){return f.Z()===c}),e=(b=a.Aa.o.concat().find(function(f){return"a"===f.g.Ka}))&&b.g.getId();if(d=(d=e&&d.find(function(f){return f.Ba()===e}))&&Q(d,rC,6)&&L(Q(d,rC,
6),1))VY(b),a.j.W(a.mc,{dw:d}),a.Y(990)},Cba={1:200,2:201,3:202,4:206,5:207,6:209,7:216,11:223,17:235,12:236,13:237,14:238,15:239,16:240},Dba={1:0,2:307,3:303,4:217,5:305,6:307,7:307,8:306,11:217};var h1=function(a,b,c){kU.call(this,a,c,1);var d=this;this.j=b;this.m=new W;this.T(this.m);this.m.listen(this.g,"N",function(){var e=d.g;var f=d.j;e=e.Pa?e.Ia():LY(e,f);null!=e&&d.N(new g1(d.j,e))})};t(h1,kU);h1.prototype.o=function(){return this.j};var g1=function(a,b){U.call(this,"cb");this.sessionId=a;this.stream=b};t(g1,U);function Eba(){var a=Ie();return a&&a.mediaDevices&&a.mediaDevices.enumerateDevices?bt(a.mediaDevices.enumerateDevices()):bt([])}function Fba(a){var b=Ie();return b&&b.mediaDevices&&b.mediaDevices.getUserMedia?bt(b.mediaDevices.getUserMedia(a)):b&&b.webkitGetUserMedia?new Ys(function(c,d){b.webkitGetUserMedia(a,c,d)}):ct("Missing getUserMedia API.")};var i1=function(a){this.deviceId=a.o;this.j=a.C;this.groupId=a.l;this.l=a.u;this.m=a.m};i1.prototype.equals=function(a){return a===this?!0:a&&this.deviceId===a.deviceId?hf?!0:"default"===this.deviceId||"communications"===this.deviceId?this.j===a.j&&this.groupId===a.groupId:!0:!1};i1.prototype.toString=function(){return"MediaSettings(deviceId="+this.deviceId+",deviceLabel="+this.j+",groupId="+this.groupId+")"};
i1.prototype.C=function(a){return void 0===a||a?{deviceId:{exact:this.deviceId}}:{mandatory:{sourceId:this.deviceId},optional:[]}};var j1=function(a){this.o=a?a.deviceId:null;this.C=a?a.j:null;this.l=a?a.groupId:null;this.u=a?a.l:null;this.m=a?a.m:0};j1.prototype.ja=function(){return new i1(this)};j1.prototype.j=function(a){this.l=a;return this};function Gba(a){a=a instanceof Error&&a.name;return"NotAllowedError"===a||"PermissionDeniedError"===a||"PermissionDismissedError"===a}function Hba(a){a=a instanceof Error&&a.name;return"NotReadableError"===a||"TrackStartError"===a}
function Iba(a){var b;if(b=De()){b=Zd;var c="";be("Windows")?(c=/Windows (?:NT|Phone) ([0-9.]+)/,c=(b=c.exec(b))?b[1]:"0.0"):Ce()?(c=/(?:iPhone|iPod|iPad|CPU)\s+OS\s+(\S+)/,c=(b=c.exec(b))&&b[1].replace(/_/g,".")):De()?(c=/Mac OS X ([0-9_.]+)/,c=(b=c.exec(b))?b[1].replace(/_/g,"."):"10"):-1!=Zd.toLowerCase().indexOf("kaios")?(c=/(?:KaiOS)\/(\S+)/i,c=(b=c.exec(b))&&b[1]):be("Android")?(c=/Android\s+([^\);]+)(\)|;)/,c=(b=c.exec(b))&&b[1]):be("CrOS")&&(c=/(?:CrOS\s+(?:i686|x86_64)\s+([0-9.]+))/,c=(b=
c.exec(b))&&b[1]);b=0<=yd(c||"",10.14)}if(!(b&&a&&a instanceof Error&&a.name))return!1;if(fe())if(0<=yd(ie(),73)){if("NotAllowedError"==a.name&&"Permission denied by system"==a.message)return!0}else{if("NotReadableError"==a.name)return!0}else if(ee()&&"NotFoundError"==a.name)return!0;return!1};var k1=function(a){this.g=new bU(a)},Jba=l(["",""]);k1.prototype.error=function(a){this.g.Ta(Jba,a)};var Kba=l(["",""]);k1.prototype.K=function(a){this.g.K(Kba,a)};var Lba=l(["",""]);k1.prototype.info=function(a){this.g.info(Lba,a)};var PY=l(["",""]);var l1=function(a,b,c){jP.call(this,b);this.pa=new k1("realtime.media.api.webrtc.Capture");this.Oa=new qL(this);this.ra=a;this.yb=uK(a,NK).then();this.j=c;this.J=this.l=this.H=this.na=null;this.o=new Set;this.V=new Map;this.G=this.ga=!1;this.nb=null;this.ua=this.xa=!1;this.Ca=this.Za=this.La=this.L=null;this.Fa=!1;this.Ab=this.Oa.signal();this.Pa=GR(DR("nlZjzc"));this.X=new Set;this.ob=[]};t(l1,jP);l1.prototype.ba=function(){this.stop();m1(this,null);this.o.clear();this.nb=null;jP.prototype.ba.call(this)};
l1.prototype.toString=function(){return"Capture(source="+this.g+" muted="+this.ga+" paused="+this.G+" deviceState="+this.h+" stream="+(this.l?this.l.id:null)+")"};l1.prototype.D=function(a){a&&(n1(this,"Stopping stream with id="+a.id),[].concat(p(a.getAudioTracks()),p(a.getVideoTracks())).forEach(function(b){tv(b);b.stop()}))};var o1=function(a){n1(a,"Starting media.");a.u("re");a.m().then(pc(a))};
l1.prototype.u=function(a){n1(this,"Updating device state to: "+a);var b=this.Sb();jP.prototype.u.call(this,a);"nd"===a&&m1(this,null);this.Sb()!==b&&(p1(this),this.Sb()?m1(this,null):this.m())};l1.prototype.getDeviceId=function(){return this.j.deviceId};l1.prototype.pn=function(){return this.nb};var LY=function(a,b){return a.l?a.V.get(b)||null:null};l1.prototype.Ia=function(){return this.l};var UW=function(a,b,c){return new h1(a,b,c)};
l1.prototype.ab=function(a){n1(this,"Registering sessionId="+a+".");0===this.o.size&&this.resume();if(this.o.has(a))throw Error("Called registerSession() twice with the same sessionId='"+a+"'");this.o.add(a);this.l&&q1(this,a,this.l)};l1.prototype.Da=function(a){n1(this,"Unregistering sessionId="+a+".");this.o.delete(a);var b=LY(this,a);this.D(b);this.V.delete(a);this.X.delete(a);0>=this.o.size&&this.pause()};
l1.prototype.stop=function(){if("st"===this.h)return!1;n1(this,"Stopping.");m1(this,null);this.o.clear();this.u("st");return!0};var VY=function(a){if("st"==a.h)return!1;r1(a,!0);return!0};l1.prototype.start=function(){o1(this)};l1.prototype.Sb=function(){switch(this.h){case "nd":case "ad":case "fa":return!0;default:return this.ga}};var r1=function(a,b){n1(a,"Setting mute state to mute="+b+".");var c=a.Sb();a.ga=b;c!=b&&(b?m1(a,null):a.m(),p1(a),a.N("L"))};
l1.prototype.pause=function(){this.G||"st"==this.h||(n1(this,"Pausing."),this.G=!0,m1(this,null))};l1.prototype.resume=function(){this.G&&"st"!=this.h&&(n1(this,"Resuming."),this.G=!1,this.m())};var p1=function(a){var b=a.g.getState(),c=a.Sb()?"mu":"li";b!==c&&(n1(a,"Update source state from "+b+" to "+c),PO(a.g,c))};
l1.prototype.m=function(a,b){var c=this;a=void 0===a?!0:a;b=void 0===b?!1:b;if(this.H)return nt(this.H,Ia).then(function(){return c.m(a,b)});var d=this.h;"fa"!=this.h&&"ad"!=this.h||this.u("re");if("re"!=this.h)return n1(this,"Skipping update usermedia while device in state="+this.h+"."),bt();if(this.G)return n1(this,"Skipping update usermedia because capture is paused."),bt();if("re"==d&&this.ga)return n1(this,"Skipping update usermedia because capture is muted."),bt();if(this.l&&this.na&&this.na.equals(this.j)&&
!this.xa)return n1(this,"Skipping update usermedia because settings were unchanged and the track has not failed."),bt();if(this.j.l)return this.j.l==this.J?bt():s1(this,this.j.l);var e=Mba(this);if(!e)return this.pa.error("["+this+"] Attempting to update usermedia with null constraints."),ct("Attempting to update usermedia with null constraints.");if(Gc(e))return n1(this,"Skipping update usermedia with empty constraints."),bt();var f=this.j;b&&m1(this,null);this.na=f;var g=Nba++;n1(this,"Attempting to update usermedia with id="+
g+" settings="+this.j+" constraints="+w.JSON.stringify(e)+".");var h=this.g.Ka;"a"==h?this.Y(4799):"v"==h&&this.Y(4796);this.H=Fba(e).then(function(m){c.Ca=null;c.Fa=!1;"a"==h?c.Y(4800):"v"==h&&c.Y(4797);t1(c);c.G||!c.j.equals(f)||"st"===c.h?(n1(c,"During update usermedia with id="+g+" capture settings changed to "+c.j+"."),c.D(m)):c.ga?(n1(c,"During update usermedia with id="+g+" capture was muted."),c.D(m)):(n1(c,"Update usermedia success with id="+g+"."),s1(c,m))},function(m){u1(c,"Error during update usermedia call with id="+
g+" constraints="+w.JSON.stringify(e)+": "+m+".");m&&(c.Ca=m,Oba(c,h,m.name));Iba(m)?(t1(c),c.Fa=!0,"a"==h?c.Y(5802):"v"==h&&c.Y(5803),c.u("ad")):Gba(m)?(t1(c),c.u("ad")):Hba(m)&&a?null!==c.L?u1(c,"Ignore getUserMedia failure with id="+g+" as we are still in the failure delay period."):(u1(c,"Delaying transitioning capture to failure after unexpected getUserMedia failure with id="+(g+".")),c.na=null,c.L=setTimeout(function(){c.L=null;u1(c,"getUserMedia still has not succeeded after delay. About to make one final explicit attempt.");
c.Y(4578);c.m(!1,b)},2E3)):c.u("fa");throw m;});Pba(this,this.H);mt(this.H,function(){n1(c,"Clearing pending getUserMedia request with id="+g+".");c.H=null});return this.H};
var Pba=function(a,b){var c=setTimeout(function(){a.Oa.W(a.Ab,void 0)},5E3);mt(b,function(){clearTimeout(c)})},t1=function(a){null!==a.L&&(clearTimeout(a.L),a.L=null,n1(a,"Cancelling pending failure timer since getUserMedia eventually succeeded after delay."))},Mba=function(a){if(null==a.getDeviceId()||a.getDeviceId()===Aaa.id)return n1(a,"Return empty user media constraints with null deviceId."),{};var b={audio:!1,video:!1},c=a.g.Ka;switch(c){case "a":b.audio=a.j.C(!mf);break;case "v":b.video=a.j.C();
break;default:return a.pa.error("["+a+"] Invalid mediaType="+(c+".")),null}return b},s1=function(a,b){n1(a,"getUserMedia success for stream="+b.id+".");Va();if(0==b.getAudioTracks().length&&0==b.getVideoTracks().length)return u1(a,"No media tracks for stream="+b.id+"."),bt();m1(a,null);[].concat(p(b.getAudioTracks()),p(b.getVideoTracks())).forEach(function(c){jv(c,"ended",a.zb,void 0,a);jv(c,["mute","unmute"],a.gb,void 0,a)});Qba(a);m1(a,b);a.gb();Rba(a,b);Sba(a,b);return bt()};l1.prototype.zb=function(){this.N("I")};
var Qba=function(a){!1!==a.xa&&(a.xa=!1,a.N("J"))};l1.prototype.gb=function(){var a=Tba(this);a!==this.ua&&(this.ua=a,this.N("K"))};var Tba=function(a){if(!a.J)return!1;a=[].concat(p(a.J.getAudioTracks()),p(a.J.getVideoTracks()));return 0!=a.length&&a.every(function(b){return b.muted})};l1.prototype.tj=function(){return this.ua};
var Uba=function(a,b){var c=b.u;if(a.Pa&&c)if(b.h)a.X.has(c)&&a.Ia()&&(q1(a,c,a.Ia()),a.X.delete(c),a.N("N"));else if(b=LY(a,c))a.D(b),a.V.delete(c),a.X.add(c)},n1=function(a,b){a.pa.info("["+a+"] "+b)},u1=function(a,b){a.pa.K("["+a+"] "+b)},m1=function(a,b){if(b!=a.J){var c=a.J;a.J=b;Vba(a,b?b.clone():null);a.D(c);a.ob.forEach(function(d){return a.D(d)});a.ob.length=0}},Vba=function(a,b){b!==a.l&&(a.V.forEach(a.D,a),a.V.clear(),a.X.clear(),a.D(a.l),b&&a.o.forEach(function(c){q1(a,c,b)}),n1(a,"Stream changed with new stream="+
(b&&b.id)+"."),a.l=b,a.N("N"))},q1=function(a,b,c){c=c.clone();a.V.set(b,c)};l1.prototype.Y=function(a){this.yb.then(function(b){b.Y(a)})};
var Rba=function(a,b){b=b.getAudioTracks().map(function(c){return c.getSettings().echoCancellation}).filter(function(c){return"boolean"===typeof c});0!==b.length&&(b=b.some(function(c){return!c}),b!==a.La&&(a.La=b,a.Y(b?4705:4706),n1(a,"echoCancellation="+!b)))},Sba=function(a,b){b=b.getAudioTracks();if(0!==b.length){var c=b.map(function(e){return e.getSettings().echoCancellationType}).filter(function(e){return e});if(0===c.length)a.Y(5286),n1(a,"echoCancellationType=none (unknown)");else{b=mf&&Xp(74)?
new Map([["browser",5289],["system",5288]]):new Map([["browser",5287],["aec3",5289],["system",5288]]);var d=Array.from(b.keys());c=c.sort(function(e,f){return d.indexOf(f)-d.indexOf(e)})[0];a.Za!=c&&(a.Za=c,a.Y(b.get(c)||5286),n1(a,"echoCancellationType="+c))}}},Oba=function(a,b,c){"a"==b?(a.Y(4801),v1.has(c)?a.Y(v1.get(c).audio):a.Y(4471)):"v"==b&&(a.Y(4798),v1.has(c)?a.Y(v1.get(c).video):a.Y(4943))},Nba=0,v1=new Map([["AbortError",{audio:4460,video:4936}],["NotAllowedError",{audio:4461,video:4937}],
["NotFoundError",{audio:4462,video:4938}],["NotReadableError",{audio:4463,video:4939}],["OverconstrainedError",{audio:4464,video:4940}],["SecurityError",{audio:4465,video:4941}],["TypeError",{audio:4466,video:4942}],["PermissionDeniedError",{audio:4475,video:4944}],["InvalidStateError",{audio:4476,video:4945}],["DevicesNotFoundError",{audio:4477,video:4946}],["ConstraintNotSatisfiedError",{audio:4478,video:4947}],["TrackStartError",{audio:4479,video:4948}],["MediaDeviceFailedDueToShutdown",{audio:4480,
video:4949}],["MediaDeviceKillSwitchOn",{audio:4481,video:4950}]]);var w1=function(a){this.width=a.j;this.height=a.h;this.frameRate=a.g};w1.prototype.toString=function(){return"VideoShape(width="+this.width+", height="+this.height+", frameRate="+(this.frameRate+")")};w1.prototype.toJson=function(){return{width:this.width,height:this.height,frameRate:this.frameRate}};w1.prototype.equals=function(a){return!!a&&this.width==a.width&&this.height==a.height&&this.frameRate==a.frameRate};var x1=function(){this.g=this.h=this.j=null};x1.prototype.ja=function(){return new w1(this)};
var y1=function(a,b){a.j=b;return a},z1=function(a,b){a.h=b;return a},A1=function(a,b){a.g=b;return a};var B1=function(a){i1.call(this,a);this.h=a.h;this.g=a.g};t(B1,i1);B1.prototype.equals=function(a){return i1.prototype.equals.call(this,a)&&a instanceof B1?this.h.equals(a.h)&&this.g.equals(a.g):!1};B1.prototype.toString=function(){return"VideoSettings(base="+i1.prototype.toString.call(this)+", minVideoShape="+(this.h+", maxVideoShape=")+(this.g+")")};
B1.prototype.C=function(){var a=i1.prototype.C.call(this);nf?(a.aspectRatio=16/9,a.height=this.g.height,a.width=this.g.width,a.frameRate=this.g.frameRate):a.advanced=[{frameRate:{min:this.h.frameRate}},{height:{min:this.h.height}},{width:{min:this.h.width}},{frameRate:{max:this.g.frameRate}},{width:{max:this.g.width}},{height:{max:this.g.height}},{aspectRatio:{exact:16/9}}];return a};var C1=function(a){j1.call(this,a);this.h=a?a.h:null;this.g=a?a.g:null};t(C1,j1);C1.prototype.ja=function(){return new B1(this)};var E1=function(a){K(this,a,0,-1,null,D1)};B(E1,J);var D1=[[1,2]];var F1=function(a){K(this,a,0,-1,null,null)};B(F1,J);F1.prototype.l=function(){return L(this,1)};F1.prototype.F=function(a){return N(this,1,a)};F1.prototype.Gb=function(){return L(this,2)};F1.prototype.u=function(a){return N(this,2,a)};var G1=function(a){K(this,a,0,-1,null,null)};B(G1,J);G1.prototype.l=function(){return L(this,1)};G1.prototype.u=function(a){return N(this,1,a)};/*

 Copyright (C) 2010 The Libphonenumber Authors.

 Licensed under the Apache License, Version 2.0 (the "License");
 you may not use this file except in compliance with the License.
 You may obtain a copy of the License at

 http://www.apache.org/licenses/LICENSE-2.0

 Unless required by applicable law or agreed to in writing, software
 distributed under the License is distributed on an "AS IS" BASIS,
 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 See the License for the specific language governing permissions and
 limitations under the License.
*/
var I1=function(a){W.call(this);var b=this;this.h=new qL(this);this.j=a;this.m=this.h.signal();this.D=this.h.signal();this.F=this.h.signal();this.o=this.h.signal();this.u=sL(this.h);this.l=this.h.signal();this.j.then(function(c){b.listen(c,"A",function(){H1(b,c.G())})})};t(I1,W);I1.prototype.getId=function(){return this.g?this.g.l()||"":""};I1.prototype.Qb=function(){return this.g?this.g.Qb()||"":""};
I1.prototype.nd=function(a){var b=new $I;a&&P(b,1,a);var c=new fJ;c.nd(b);return this.j.then(function(d){var e=d.pb();S(e,6,c);return MN(d,e)})};
var H1=function(a,b){var c=a.g;a.g=b;var d=c&&sJ(c),e=b&&sJ(b),f=new yL(a.h),g=d&&M(d,3,"");e=e&&M(e,3,"");g!==e&&f.add(a.m,{RK:e});g=d&&R(d,cJ,9)||[];e=(e=a.g&&sJ(a.g))&&R(e,cJ,9)||[];mc(g,e)||f.add(a.D,{GL:e});g=d&&Q(d,aJ,2);e=(e=a.g&&sJ(a.g))&&Q(e,aJ,2);g!==e&&f.add(a.F,{xL:e});g=d&&M(d,8,"");e=(e=a.g&&sJ(a.g))&&M(e,8,"");g!==e&&f.add(a.o,{rL:e});d=(d=d&&d.xc())?M(d,1,"")||null:null;g=(g=(g=a.g&&sJ(a.g))&&g.xc())?M(g,1,"")||null:null;d!==g&&f.add(a.u,{wL:g});c=c&&Q(c,iJ,14);b=b&&Q(b,iJ,14);Hl(c,
b)||f.add(a.l,{QK:b});f.W()};var J1=function(a){K(this,a,0,-1,null,null)};B(J1,J);var Wba=function(a,b){for(;Bk(b)&&!Ak(b);)switch(b.h){case 1:var c=Fk(b);xl(a,1,c);break;default:Ck(b)}return a};J1.prototype.getState=function(){return M(this,1,0)};var K1=function(a){K(this,a,0,-1,null,Al)};B(K1,J);var Al=[[1,2]];var L1=function(a,b){W.call(this);var c=this;this.h=new qL(this);this.F=this.h.signal();this.D=this.h.signal();this.o=this.h.signal();this.u=this.h.signal();this.j=new Map;this.m=a;this.l=!1;this.g=null;this.listen(this.m,"da",this.Tk);Naa(b,function(d){if(!c.C()){var e=new dF;N(e,1,c.l);S(d,183,e)}})};t(L1,W);k=L1.prototype;k.ba=function(){M1(this);W.prototype.ba.call(this)};k.be=function(){return!Ke&&(!hf||Xp(71))};k.isEnabled=function(){return this.l};
k.setEnabled=function(a){this.C()||a===this.isEnabled()||(this.l=a,this.Tk(),this.h.W(this.F,a))};k.Tk=function(){var a=this.m.j,b=!!a&&Xba.has(a.getState());!this.g||this.l&&b||M1(this);!this.g&&this.l&&b&&(this.g=Yba(this,a))};
var Yba=function(a,b){var c=b.ln("captions");c.m.attach(function(d){d=new zk(d.data);for(var e=new K1;Bk(d)&&!Ak(d);)switch(d.h){case 1:var f=new L0;Dk(d,f,sba);Bl(e,1,f);break;case 2:f=new J1;Dk(d,f,Wba);Bl(e,2,f);break;default:Ck(d)}if(null!=L(e,1))if(d=Q(e,L0,1),e=M0(d),f=a.j.get(e))f.update(d);else{d=new O0(d);for(a.j.set(e,d);100<a.j.size;)f=n(a.j.entries().next().value),e=f.next().value,f=f.next().value,a.j.delete(e),Cs(f);a.h.W(a.o,d)}else if(null!=L(e,2))d=Q(e,J1,2),2===d.getState()&&(a.setEnabled(!1),
a.h.W(a.D,!0)),a.h.W(a.u,d.getState());else throw Error("Received unknown data from MR");},a);mt(c.h.fa,function(){c===a.g&&(a.g=null,a.Tk())});return c},M1=function(a){a.g&&(Cs(a.g),a.g=null,a.j.forEach(function(b){return Cs(b)}),a.j.clear())},Xba=new Set(["STARTED","INPROGRESS","PAUSED"]);var N1=function(a){K(this,a,0,-1,null,null)};B(N1,J);N1.prototype.l=function(){var a=new Sk;var b=M(this,1,"");0<b.length&&G(a,1,b);b=Q(this,RH,2);null!=b&&I(a,2,b,sI);(b=ul(this,3,!1))&&E(a,3,b);return Wk(a)};var O1=function(a){K(this,a,0,-1,null,null)};B(O1,J);O1.prototype.l=function(){var a=new Sk;var b=this.getDeviceId();0<b.length&&G(a,1,b);return Wk(a)};O1.prototype.getDeviceId=function(){return M(this,1,"")};var P1=function(a){K(this,a,0,-1,null,null)};B(P1,J);P1.prototype.l=function(){var a=new Sk;var b=M(this,1,"");0<b.length&&G(a,1,b);return Wk(a)};var Zba=function(a,b){return P(a,1,b)};var Q1=function(a){K(this,a,0,-1,$ba,null)};B(Q1,J);var $ba=[1];var R1=function(a){K(this,a,0,-1,null,null)};B(R1,J);R1.prototype.l=function(){var a=new Sk;var b=Q(this,RH,1);null!=b&&I(a,1,b,sI);return Wk(a)};var aca={ld:"CreateMeetingDevice",fe:N1.prototype.l,Vd:$H},bca={ld:"GetMeetingDevice",fe:O1.prototype.l,Vd:$H},cca={ld:"ListMeetingDevices",fe:P1.prototype.l,Vd:function(a){a=new zk(a);for(var b=new Q1;Bk(a)&&!Ak(a);)switch(a.h){case 1:var c=new RH;Dk(a,c,ZH);Dl(b,1,c,RH);break;default:Ck(a)}return b}},dca={ld:"UpdateMeetingDevice",fe:R1.prototype.l,Vd:$H};var S1=function(a){K(this,a,0,-1,null,null)};B(S1,J);var T1=function(a,b){a=M(a,1,"");0<a.length&&G(b,1,a)};var U1=function(a){K(this,a,0,-1,null,null)};B(U1,J);U1.prototype.l=function(){var a=new Sk;var b=Q(this,XI,1);null!=b&&I(a,1,b,xJ);b=Q(this,S1,3);null!=b&&I(a,3,b,T1);b=M(this,4,"");0<b.length&&G(a,4,b);(b=ul(this,5,!1))&&E(a,5,b);return Wk(a)};var V1=function(a){K(this,a,0,-1,null,null)};B(V1,J);V1.prototype.l=function(){var a=new Sk;var b=M(this,1,"");0<b.length&&G(a,1,b);return Wk(a)};var W1=function(a){K(this,a,0,-1,null,null)};B(W1,J);var X1=function(a){K(this,a,0,-1,null,null)};B(X1,J);W1.prototype.l=function(){var a=new Sk;var b=this.Qb();0<b.length&&G(a,1,b);b=M(this,2,"");0<b.length&&G(a,2,b);b=Q(this,S1,3);null!=b&&I(a,3,b,T1);b=M(this,4,"");0<b.length&&G(a,4,b);b=Q(this,X1,5);null!=b&&I(a,5,b,eca);(b=ul(this,6,!1))&&E(a,6,b);return Wk(a)};var eca=function(a,b){var c=M(a,1,"");0<c.length&&G(b,1,c);c=a.getToken();0<c.length&&G(b,2,c)};
X1.prototype.getToken=function(){return M(this,2,"")};X1.prototype.setToken=function(a){return P(this,2,a)};W1.prototype.Qb=function(){return M(this,1,"")};var Y1=function(a){K(this,a,0,-1,null,null)};B(Y1,J);Y1.prototype.l=function(){var a=new Sk;var b=Q(this,XI,1);null!=b&&I(a,1,b,xJ);return Wk(a)};var fca={ld:"CreateMeetingSpace",fe:U1.prototype.l,Vd:pJ},gca={ld:"GetMeetingSpace",fe:V1.prototype.l,Vd:pJ},hca={ld:"ResolveMeetingSpace",fe:W1.prototype.l,Vd:pJ},ica={ld:"UpdateMeetingSpace",fe:Y1.prototype.l,Vd:pJ};var Z1=function(a,b,c,d){var e=this;this.h=a;this.j={};xc(b,function(f,g){return e.j[g.toLowerCase()]=f});this.Kd=c;this.C=d};Z1.prototype.fd=function(){return Ic(this.j)};Z1.prototype.bj=function(){return this.C};var a2=function(a,b,c,d,e,f){var g=this;f=void 0===f?{}:f;this.m=a;this.C=b;this.g=c;this.j={};xc(d,function(h,m){return $1(g,m,h)});this.h=Jc(f);this.l=null;this.l=e?e.clone():null};a2.prototype.getContext=function(){return this.m};a2.prototype.fd=function(){var a={};xc(this.j,function(b,c){b="function"===typeof b?b():b;null!=b&&(a[c]=b)});return a};
var b2=function(a,b){a=a.j[b.toLowerCase()]||null;return"function"===typeof a?a():a},$1=function(a,b,c){b=b.toLowerCase();null==c?delete a.j[b]:a.j[b]=c};a2.prototype.clone=function(){return new a2(this.m,this.C,this.g,this.j,this.l,this.h)};var c2=function(a){return{h:a}};var d2=function(a){K(this,a,0,-1,jca,null)};B(d2,J);var jca=[3],e2=function(a){a=new zk(a);for(var b=new d2;Bk(a)&&!Ak(a);)switch(a.h){case 1:var c=xk(a.g);wl(b,1,c,0);break;case 2:c=Gk(a);P(b,2,c);break;case 3:c=new OH;Dk(a,c,PH);Dl(b,3,c,OH);break;default:Ck(a)}return b};d2.prototype.getMessage=function(){return M(this,2,"")};var f2=function(a,b,c,d,e,f){d=void 0===d?{}:d;e=void 0===e?null:e;f=void 0===f?null:f;var g=c instanceof d2;Z1.call(this,a,b,g?null:c,d);this.g=g?c:null;this.m=f;this.l=e};t(f2,Z1);f2.prototype.getMessage=function(){return this.m};var kca=function(a){var b=null,c="validation failed";b=void 0===b?null:b;c=void 0===c?null:c;var d=a instanceof f2?a.g:null;return new f2(a.h,a.fd(),d||a.Kd,a.bj(),b,c)};var g2=function(a,b,c,d){d=void 0===d?{}:d;Z1.call(this,a,b,c,d)};t(g2,Z1);var h2=function(){},i2=function(){h2.Ob();return Ba(function(){throw Error("Worker not ready");})},j2=function(){h2.Ob();return!1};Ja(h2);var k2=function(){this.g=!1};k2.prototype.j=function(a){this.g=a;return this};
k2.prototype.h=function(a,b,c){var d=a.getContext();$1(a,"Content-Type","application/x-protobuf");$1(a,"X-Goog-Api-Key",l2(d)||null);$1(a,"X-Goog-Encode-Response-If-Executable","base64");var e=m2(d)+("/$rpc/"+a.C+"/"+a.g),f=jt(),g=new Pv;g.listen("complete",this.l.bind(this,f,c));qv(g,"ready",g.dispose);n2(d)&&(g.o=Math.max(0,n2(d)));g.G=!0;g.u="arraybuffer";var h=a.l,m=null,q=null;h?(m=(c=b.call(h))?c.length:null,this.g&&c&&1024<=c.length&&j2()?i2().then(function(r){$1(a,"Content-Encoding","gzip");
m=r.length;g.send(e,"POST",r,a.fd());q="gzip-on"},function(){g.send(e,"POST",b.call(h),a.fd());q="gzip-failed"}):(g.send(e,"POST",c,a.fd()),q="gzip-off")):(g.send(e,"POST",null,a.fd()),q="no-body");a.h.sendPath=q;a.h.bodySize=String(m||0);nt(f.fa,function(r){r instanceof Xs&&g.abort()});return f.fa};
k2.prototype.l=function(a,b,c){var d={Mg:0};try{var e=c.target,f=e.Ja(),g=hw(e),h=gw(e);c=null;h&&(c=new Uint8Array(h),d={Mg:c.length||0});c&&zc(g,function(q,r){return"BASE64"==q.toUpperCase()&&"X-GOOG-SAFETY-ENCODING"==r.toUpperCase()})&&(c=rk(gk(c)));if(cw(e))try{a.resolve(new g2(f,g,b?b(c):null,d))}catch(q){a.resolve(new f2(10002,g,null,d,q,"Failed to decode response"))}else{var m=lca(f,e.m);try{a.resolve(new f2(m,g,c?e2(c):null,d,Error("string"===typeof e.j?e.j:String(e.j))))}catch(q){a.resolve(new f2(m,
g,null,d,q,"Failed to decode status"))}}}catch(q){a.resolve(new f2(10005,{},null,d,q,"Failure in XHR result processing"))}};var lca=function(a,b){return 0!=a?a:6==b?10007:b+3E4};var mca=new k2,o2=function(a){this.g=void 0===a?null:a;this.u=this.l=this.D=this.j=this.o=this.F=null;this.m=[];this.h=[];this.C=[]};o2.prototype.G=function(){var a=new o2;a.setApiKey(l2(this));a.o=m2(this);a.j=n2(this);a.D=p2(this);a.l=q2(this);a.u=r2(this);Hb(s2(this),function(b){return t2(a,b)});Hb(u2(this),function(b){a.h.push(b)});Hb(v2(this),function(b){return w2(a,b)});return a};
var nca=function(a,b){b=void 0===b?function(){return!0}:b;var c=new o2(a.g);c.F=a.F;c.o=a.o;c.j=a.j;c.D=a.D;c.l=a.l;c.u=a.u;c.m.push.apply(c.m,p(a.m.filter(b)));c.h.push.apply(c.h,p(a.h.filter(b)));c.C.push.apply(c.C,p(a.C.filter(b)));return c},m2=function(a){return null!=a.o?a.o:a.g?m2(a.g):""};o2.prototype.setApiKey=function(a){this.F=a};
var l2=function(a){return null!=a.F?a.F:a.g?l2(a.g):""},n2=function(a){return null!=a.j?a.j:a.g?n2(a.g):6E4},p2=function(a){return null!=a.D?a.D:a.g?p2(a.g):3E5},oca=function(a,b){a.l=b},q2=function(a){return null!=a.l?a.l:a.g?q2(a.g):0},r2=function(a){return a.u?a.u:a.g?r2(a.g):mca},t2=function(a,b){a.m.push(b)},s2=function(a){return a.g?a.m.concat(s2(a.g)):a.m.concat()},u2=function(a){return a.g?a.h.concat(u2(a.g)):a.h.concat()},w2=function(a,b){a.C.push(b)},v2=function(a){return a.g?a.C.concat(v2(a.g)):
a.C.concat()};var pca=function(a,b){if(window.AbortController){var c=new AbortController,d=null;b&&(d=Cv(b),d.then(function(){return c.abort()}));nt(a,function(e){e instanceof Xs&&(c.abort(),d&&d.cancel())});return c.signal}},qca=function(a,b){return fetch(a,b)},rca=function(a){var b={};a=n(a.entries());for(var c=a.next();!c.done;c=a.next())c=c.value,b[c[0].toLowerCase()]=c[1];return b};var x2=function(){this.g=!1};x2.prototype.j=function(a){this.g=a;return this};
x2.prototype.h=function(a,b,c){var d=a.getContext();$1(a,"Content-Type","application/x-protobuf");$1(a,"X-Goog-Api-Key",l2(d)||null);$1(a,"X-Goog-Encode-Response-If-Executable","base64");var e=m2(d)+("/$rpc/"+a.C+"/"+a.g),f=Promise.resolve(),g=a.l;g&&(f=b.call(g),f=this.g&&f&&1024<=f.length&&j2()?i2().then(function(m){$1(a,"Content-Encoding","gzip");return m},function(){return b.call(g)}):Promise.resolve(f));var h=jt();f.then(function(m){qca(e,{method:"POST",body:m,headers:new Headers(a.fd()),mode:"cors",
credentials:"include",signal:pca(h.fa,n2(d))}).then(function(q){return sca(c,q)}).then(function(q){return h.resolve(q)},function(q){q instanceof TypeError?h.resolve(new f2(10007,{},null,{Mg:0},q,"Failure in Fetch")):h.resolve(new f2(10005,{},null,{Mg:0},q,"Failure in Fetch"))});a.h.bodySize=String(m.length)});return h.fa};
var sca=function(a,b){var c=b.status,d=rca(b.headers);return b.arrayBuffer().then(function(e){e=new Uint8Array(e);var f={Mg:e.length};e&&"BASE64"==(b.headers.get("X-Goog-Safety-Encoding")||"").toUpperCase()&&(e=rk(gk(e)));if(b.ok)try{return new g2(c,d,a?a(e):null,f)}catch(g){return new f2(10002,d,null,f,g,"Failed to decode response")}else try{return new f2(c,d,e2(e),f)}catch(g){return new f2(c,d,null,f,g,"Failed to decode status")}})};var uca=function(){var a=this;this.g=new vA(100);this.h={onRequest:function(b,c){for(var d=[],e=1;e<arguments.length;++e)d[e-1]=arguments[e];a.g.add({name:d[0].yh.g,initReq:y2(b),req:y2(d[0].yh),resp:z2(d[0].response),attemptsHistory:tca(d)})}}},vca=function(a,b,c,d){b=void 0===b?"":b;c=void 0===c?100:c;d=void 0===d?!1:d;b=b.toLowerCase();a=a.g.Ma().filter(function(e){return-1!=e.name.toLowerCase().indexOf(b)&&(!d||400<=e.resp.code)});return a.slice(-Math.min(a.length,c))},B2=function(a,b){var c=
void 0===c?!1:c;return vca(A2(),a,b,c)},wca=function(a){var b=A2();w2(a,b.h)},A2=function(){C2||(C2=new uca);return C2},C2=null,D2=function(a){if(a){if(a.va)return JSON.parse(a.va());if(La(a))return Mb(a,function(b){return D2(b)})}return a},y2=function(a){return{name:a.C+"/"+a.g,body:Fs(D2(a.l)),head:a.fd(),meta:a.h}},z2=function(a){var b={code:a.h,body:Fs(D2(a.Kd)),head:a.fd()};a instanceof f2&&(b.status=Fs(D2(a.g)),b.ex=a.l,b.msg=a.getMessage());return b},tca=function(a){var b=[];Hb(a,function(c){var d=
y2(c.yh),e=z2(c.response);b.push({Ue:(new Date(c.Ue)).toString(),Df:(new Date(c.Df)).toString(),yh:d,response:e})});return b};y("grpc_lookup",function(a){return B2(a,1)[0]});y("grpc_dump",function(a,b){return B2(a,b)});var xca=function(a,b,c){var d=this;this.m=new rM(1E3,36E4);this.g=a.getContext();this.u=a;a=n2(this.g);var e=p2(this.g);this.j=0<a?new rM(a,Math.max(a,e)):null;this.G=b;this.D=c;this.h=jt();this.F=0;this.l=this.o=!1;E2(this.h.fa,function(){d.l=!0});this.C=[];F2(this)},F2=function(a){var b=Va();yca(a).then(function(c){a.C.unshift({Ue:b,Df:Va(),yh:c.request,response:c.response});2==c.Nf&&a.F<q2(a.g)?zca(a):Aca(a,c)})},zca=function(a){a.F++;a.j&&(sM(a.j),a.g.j=a.j.g);var b=Cv(a.m.g).then(function(){return F2(a)});
sM(a.m);E2(a.h.fa,function(){return b.cancel()})},Aca=function(a,b){a.o||(0==b.Nf?a.h.resolve(b.response):(b.response instanceof g2&&(b.response=kca(b.response)),a.h.reject(b.response)),a.o=!0,Hb(v2(a.g),function(c){return Ss(function(){return c.onRequest.apply(c,[a.u.clone()].concat(p(a.C)))})}))},yca=function(a){var b=jt().fa;E2(a.h.fa,function(){return b.cancel()});var c=a.u.clone(),d=!1,e={Mg:0},f=[],g=Bca(a,b,c),h=g.then(function(r){return d?new f2(20002,{},null):Cca(a,b,r)}),m=gt([g,h]).then(function(r){return d?
1:Dca(a,b,r[0],r[1])},function(){return 3});f.push(ht([g,h,m]).then(function(r){return r[0].Yd?r[1].Yd?r[2].Yd?{request:r[0].value,response:r[1].value,Nf:r[2].value}:{request:r[0].value,response:new f2(10006,r[1].value.fd(),r[1].value.Kd,r[1].value.bj(),r[2].reason),Nf:3}:{request:r[0].value,response:new f2(10005,{},null,e,r[1].reason),Nf:3}:{request:c.clone(),response:new f2(10004,{},null,e,r[0].reason),Nf:3}}));if(a.j){var q=Cv(a.j.g).then(function(){d=!0;return{request:c.clone(),response:new f2(10001,
{},null,e,null,"Client timed out"),Nf:2}});E2(b,function(){return q.cancel()});f.push(q)}f=ft(f);mt(f,function(){return b.cancel()});return f},Bca=function(a,b,c){if(a.l)return ct(new Xs);var d=Mb(s2(a.g),function(e){try{return e.h(c)||bt()}catch(f){return ct(f)}});E2(b,function(){return Hb(d,function(e){return e.cancel()})});return gt(d).then(function(){return c.clone()})},Cca=function(a,b,c){if(a.l)return ct(new Xs);var d=r2(a.g).h(c,a.G,a.D);E2(b,function(){return d.cancel()});return d},Dca=function(a,
b,c,d){if(a.l)return ct(new Xs);var e=Mb(u2(a.g),function(f){return f.validate(c,d)});E2(b,function(){return Hb(e,function(f){return f.cancel()})});return gt(e).then(function(f){return Nb(f,function(g,h){return Math.max(g,h)},d instanceof g2?0:1)})},E2=function(a,b){nt(a,function(c){c instanceof Xs&&b()})};var G2=function(a,b){o2.call(this,void 0===b?null:b);this.H=a};t(G2,o2);G2.prototype.makeRequest=function(a,b,c,d){c=void 0===c?{}:c;d=void 0===d?{}:d;b=new a2(this.G(),this.H,a.ld,c,b,d);return(new xca(b,a.fe,a.Vd)).h.fa};G2.prototype.G=function(){return new G2(this.H,o2.prototype.G.call(this))};var Eca=new Set([502,504,500,503]),Fca=new Set([0,-1,10007]),Gca={validate:function(a,b){return bt(Eca.has(b.h)?2:0)}},Hca={validate:function(a,b){return bt(Fca.has(b.h)?2:0)}};var Ica=["ResolveMeetingSpace","CreateMeetingSpace"],Jca=function(a){var b=cr("https://meetings.clients6.google.com","/v1/${path}");a&&(b=$q(b,"key",a));return b},Kca=function(a,b){a=new o2(a);b=new H2(b);t2(a,b);w2(a,b);return a},I2=function(a){var b="",c=Uw();b=void 0===b?null:b;var d=null;if(a instanceof I2){c="v1";var e=a.h;b=a.j;var f=nca(a.g,function(g){return!(g instanceof H2)});d=new H2(c);t2(f,d);w2(f,d);d=a.Tj}else e=Jca(b),c=c||new Qw,b=Lca(this,a,b),f=Kca(b,c);this.h=e;this.l=c;this.j=
b;this.g=f;this.Tj=d},Lca=function(a,b,c){var d=new o2;d.setApiKey(c);d.o="https://meetings.clients6.google.com";d.l=2;d.j=2E4;d.u=("function"===typeof window.fetch?new x2:new k2).j(!1);d.h.push(Gca);d.h.push(Hca);d.h.push(Mca);t2(d,c2(function(e){if(!b2(e,"X-Goog-Meeting-Debugid")){var f=b.g;f&&$1(e,"X-Goog-Meeting-Debugid",f)}}));w2(d,{onRequest:function(e,f){for(var g=[],h=1;h<arguments.length;++h)g[h-1]=arguments[h];if(g=g[0].response.j["x-goog-meeting-debugid"]||null)a.Tj=g}});wca(d);return d},
Mca={validate:function(a,b){return bt(400==b.h?2:0)}},H2=function(a){this.g=a};H2.prototype.h=function(a){null!=b2(a,"X-Goog-Meeting-Token")||Tb(Ica,a.g)||$1(a,"X-Goog-Meeting-Token",Sw(this.g))};H2.prototype.onRequest=function(a,b){for(var c=[],d=1;d<arguments.length;++d)c[d-1]=arguments[d];if((c=c[0].response.j["x-goog-meeting-token"]||null)&&c){d=c.split(";");var e=Number(d[0]);if(!isNaN(e)){c=this.g;var f=new Ml;e=N(f,2,e);d=N(e,1,d[1]);Rw(c,d)}}};var J2=function(a,b,c){W.call(this);var d=this;this.s=Zf("realtime.meetings.call.PhoneAudioManager");uK(a,vM);uK(a,NK);this.m=b;this.j=new qL(this);this.o=this.j.signal();this.h="";this.g=!1;this.l=null;c.attach(function(e){d.l=e},this)};t(J2,W);var Nca=function(a,b){a.h!=b&&(a.h=b,a.j.W(a.o,b))},Oca=function(a,b){b!==a.g&&(a.g=b,Iaa(a.m).g=b)};var Pca=new iK("wTv9bc","pJeK7d"),K2=new iK("ozVaAf","uxsdib",[RK]),Qca=new iK("ajMdH","Z9QyEe"),Rca=new iK("nOd1zc","ldlvqd"),Sca=new iK("TwbNfc","GMPq1d");var L2=Zf("realtime.meetings.call.StreamingSessionUtil"),Tca=function(a,b){return 1==a?b:null},Vca=function(a,b){var c=(b=b&&sJ(b))&&R(b,cJ,9);if(c=c&&(c.filter(function(d){return M(d,3,0)==a})[0]||null))return c;b=Tca(a,b&&Q(b,aJ,2));return Uca(b)},M2=function(a){var b=Wca.map(function(c){return Xca(c,a)});return gt(b).then(function(c){c.some(function(d){return d})&&a.o.then(function(d){return qO(d)});return c.every(function(d){return d})})},Xca=function(a,b){var c=b.F;if(!c)return ct(Error("No spaces collection"));
var d=b.g;if(!d)return ct(Error("No devices collection"));var e=N2(b);if(!e)return ct(Error("No local device"));var f=a.ig,g=function(A){var z=new WH;P(z,1,A);xl(z,2,a.hg);xl(z,3,f);return z};c=c.G();var h=(c=Vca(f,c))&&c.Ja(),m=2===h||3===h?M(c,2,""):null,q=!1,r=!1,u=[];(R(e,WH,16)||[]).forEach(function(A){r=r||1===M(A,2,0);q=q||M(A,1,"")===m;u.push(g(M(A,1,"")))});m&&!q&&(r=!0,u.push(g(m)));return r?(e=d.pb(e.Gb()),Cl(e,16,u),b.Y(O2.get(f).rpc),MN(d,e).then(function(){D(L2,"ack: Modified device");
b.Y(O2.get(f).Rk);return!0},function(A){D(L2,"ack: Failed to modify device: "+JSON.stringify(A));b.Y(O2.get(f).Xi);throw A;})):bt(!1)},Yca=function(a){M2(a);var b=jv(a.F,"A",function(){return M2(a)});a.onDisconnect.then(function(){return sv(b)})},$ca=function(a){Zca(a,function(){return M2(a).then(function(b){if(!b)throw Error("Prerequisite not handled");})});a.onConnect.then(function(){return Yca(a)})},Wca=[{ig:1,hg:3},{ig:1,hg:6},{ig:4,hg:4},{ig:3,hg:3},{ig:4,hg:5}],O2=new Map([[1,{rpc:3852,Rk:3831,
Xi:3832}],[4,{rpc:5097,Rk:5098,Xi:5099}],[3,{rpc:3852,Rk:3831,Xi:3832}]]),ada=new Map([[0,0],[2,2],[3,3],[1,1]]);function Uca(a){if(!a)return null;var b=new cJ;var c=ada.get(M(a,1,0));b=xl(b,1,c);c=M(a,2,"");b=P(b,2,c);c=M(a,6,0);b=xl(b,3,c);c=M(a,5,"");b=P(b,5,c);if(a=Q(a,bJ,4)){c=new dJ;var d=a.getDeviceId();c=P(c,1,d);a=M(a,2,0);a=xl(c,2,a);S(b,4,a)}return b};var P2=function(a){return(a=bda.exec(a))?a[1]:null},Q2=function(a){if(!a)return{jd:"",Bd:"",yd:""};a=a.split("/");return 6===a.length?{jd:"spaces/"+a[1],Bd:"*"===a[3]?"":a[3],yd:a[5]}:{jd:"spaces/"+a[1],Bd:"*"===a[3]?"":a[3],yd:""}},R2=function(a){var b=a.jd,c=void 0===a.Bd?"":a.Bd;return(a=void 0===a.yd?"":a.yd)?b+"/devices/"+(c||"*")+"/botguard/"+a:b+"/devices/"+(c||"*")},bda=/^(spaces\/[a-zA-Z0-9_-]+)\//;var S2=function(a,b,c,d,e,f,g){e=void 0===e?null:e;f=void 0===f?null:f;g=void 0===g?[]:g;T.call(this);this.l=a;this.h=b;this.ga=c;this.u=null;this.na=d;this.j=e;this.X=f;this.V=g;this.g=[this];this.J=0;this.F=jt();this.D=!1;this.M=this.G=this.H=void 0;this.Sa=++cda};t(S2,T);S2.prototype.merge=function(a){return a.h===this.h&&a.l===this.l&&this.j&&a.j&&a.j(T2(this))?(this.g.push(a),!0):!1};S2.prototype.L=function(a){this.J=a;return!0};S2.prototype.o=function(){return this.F.fa};S2.prototype.m=function(){return this.D};
var dda=function(a){var b={},c=null,d=new Set;a.g.forEach(function(e){c=c||e.X;e.V.forEach(function(f){return d.add(f)})});c&&(b["X-Goog-Meeting-Botguardid"]=c);return b},T2=function(a){a.u||(a.u=a.ga(a));return a.u},U2=function(a,b){a.g.forEach(function(c){c.D=!0;b instanceof g2?c.F.resolve(c.na(b)):c.F.reject(b)})};k=S2.prototype;k.Lj=function(a){this.H=a};k.Xg=function(a,b){void 0!==b&&(b=Math.max(a,b));this.G=a;this.M=b};
k.Th=function(){return this.g.reduce(function(a,b){return V2(a,b.H)},void 0)||0};k.Ig=function(){return this.g.reduce(function(a,b){return V2(a,b.G)},void 0)};k.Kj=function(){return this.g.reduce(function(a,b){return V2(a,b.M)},void 0)};k.Im=function(){return this.h.ld};k.Hm=function(){return T2(this).va()};k.toString=function(){return"[Operation id: "+this.Sa+": service: "+this.l+", call: "+this.h.ld+", version: "+this.J+"]"};
var W2=function(a){a=parseInt(a.j.etag||null,10);return isNaN(a)?-1:a},X2=function(){Ab.call(this);this.message="Operation has already been executed.";this.name="AlreadyExecutedError"};t(X2,Ab);var V2=function(a,b){return void 0==a?b:void 0==b?a:Math.min(a,b)},cda=0;var Y2=new WeakMap,Z2=function(a){LL.call(this);this.s=Zf("realtime.collections.oneplatform.OperationExecutor");this.h=uK(a,vM);this.g=new Set};t(Z2,LL);Z2.prototype.execute=function(a,b){var c=this;if(a.m())throw new X2(a);a.j?[].concat(p(this.g)).find(function(d){return d.merge(a)})?"number"===typeof b&&a.Xg(b):(this.g.add(a),1==this.g.size&&ML(this),Ss(function(){c.g.delete(a);$2(c,a,b)})):$2(this,a,b)};
var $2=function(a,b,c){c=void 0===c?null:c;D(a.s,"Making request for operation: "+b);var d="number"===typeof c?c:b.Ig();a.h.then(function(e){e=new G2(b.l,e.g);"number"===typeof d&&(e.j=d);oca(e,b.Th());nt(e.makeRequest(b.h,T2(b),dda(b),{gL:!0}).then(function(f){U2(b,f)}),function(f){return a3(a,b,f)})},function(e){return a3(a,b,e)})},a3=function(a,b,c){a=a.s;if(Na(c))if("undefined"==typeof c)var d="undefined";else if(null==c)d="NULL";else{var e=[];for(d in c)if(!Ma(c[d])){var f=d+" = ";try{f+=c[d]}catch(g){f+=
"*** "+g+" ***"}e.push(f)}d=e.join("\n")}else d=c;ag(a,"OnePlatform operation failed for "+(b+": "+d));U2(b,c)};function eda(a){if("string"===typeof a){var b=P2(a);return(new F1).F(b).u(a)}return a}function fda(){return P2(this.Gb())}function gda(a){var b=Q2(this.Gb());this.l(R2({jd:a,Bd:b.Bd,yd:b.yd}));return this};function hda(a){return"string"===typeof a?(new G1).u(a):a};var b3=function(a,b){cL.call(this,a);this.g=b};t(b3,cL);k=b3.prototype;k.hj=function(){return!1};k.zd=function(a){a=a[0].clone();var b=Q2(a.Gb()),c=b.jd,d=b.yd;b.Bd&&Eb("A full meetingDeviceId set on addDevice operation: "+a.Gb());a.l("");b=new N1;c=P(b,1,c);c=S(c,2,a);d=c3(aca,c,d);4==M(a,11,0)&&d.Xg(1E4);return d};k.Ad=function(a){a=a[0].clone();var b=Q2(a.Gb()),c=b.jd,d=b.Bd;(b=b.yd)&&a.l(R2({jd:c,Bd:d}));c=new R1;a=S(c,1,a);return c3(dca,a,b)};
k.Qd=function(){throw Error("Invalid Operation: Meeting Device Remove");};k.Pd=function(a){var b=new O1;a=a.Gb();b=P(b,1,a);return c3(bca,b)};k.te=function(a){(a=a.l())||uK(this.g,NK,!0).then(function(b){return b.Y(5268)});return ida(a)};
var ida=function(a){var b=Zba(new P1,a);return new S2("google.rtc.meetings.v1.MeetingDeviceService",cca,function(){return b},function(c){return{data:R(c.Kd,RH,1),version:W2(c)}})},c3=function(a,b,c){return new S2("google.rtc.meetings.v1.MeetingDeviceService",a,function(){return b},function(d){return{data:[d.Kd],version:W2(d)}},void 0,(void 0===c?"":c)||null)};var d3=function(a){cL.call(this,a)};t(d3,cL);k=d3.prototype;k.hj=function(){return!1};k.zd=function(a){var b=new U1;a=S(b,1,a[0]);return e3(fca,a)};k.Ad=function(a){var b=new Y1;a=S(b,1,a[0]);return e3(ica,a)};k.Qd=function(){throw Error("Invalid Operation: Meeting Space Remove");};k.Pd=function(a){var b=new V1;a=a.l();b=P(b,1,a);return e3(gca,b)};k.te=function(a){return this.Pd(a)};
var e3=function(a,b){return new S2("google.rtc.meetings.v1.MeetingSpaceService",a,function(){return b},function(c){return{data:[c.Kd],version:W2(c)}})};var f3=function(a,b,c,d,e,f,g){if(Y2.has(a))var h=Y2.get(a);else h=new Z2(a),Y2.set(a,h);e=new e(h,a);f=new qN(b.j,f);return new gO(new nL(a),Q(b.g,NL,13),c,d,e,f,b.l,g)};var jda=function(a,b,c){var d=void 0===d?{}:d;return uK(a,vM).then(function(e){return g3(e,b,c,void 0,!0,d)})},g3=function(a,b,c,d,e,f){f=void 0===f?{}:f;b=kda(b,d,e);return lda(a,b,c,f).then(function(g){return g.Kd})};function lda(a,b,c,d){d=(void 0===d?{}:d).sL;var e={};c&&(e["X-Goog-Meeting-Botguardid"]=c);d&&(e["X-Goog-Meeting-Token"]=d);return(a instanceof G2?a:new G2("google.rtc.meetings.v1.MeetingSpaceService",a.g)).makeRequest(hca,b,e)}
function kda(a,b,c){var d=new W1;a=P(d,1,a);b&&P(a,4,b);c&&wl(a,6,c,!1);return a};var h3=function(a,b,c,d){y0.call(this,a,b,d);var e=this;this.Aj=this.j.signal();this.s=new bU("realtime.meetings.call.MeetingCall");this.rc=new Set;this.u=c;this.qh=bt(uK(a,vM));var f=jt();this.F=null;this.Yf=c=new KZ;this.D=c.g;this.D.then(function(g){HN(g).then(function(){return f.resolve()})});this.vd=new I1(this.D);this.g=null;this.cc=new KZ;this.o=this.cc.g;this.V=null;this.M=new KZ;this.jd=this.M.g;this.ag=new KZ;this.Xf=this.ag.g;this.yj=new KZ;this.Kb=!1;this.Yi=new L1(this.Aa,this.oe);this.T(this.Yi);
this.Pa=this.j.signal();this.kh=new J2(a,b,this.Pa,this.jd);this.bc=jt();this.Zi=this.bc.fa;this.G=this.mh=null;this.ak=new KZ;this.Oa=this.ta=null;this.bg=!1;this.lc=null;uK(a,UK,!1).then(function(g){e.lc=g});this.jh=new vA(20);this.td=this.m=null;this.X=new yv(3E4);this.T(this.X);this.listen(this.X,"tick",this.rk);this.nh=function(){return ct("No prerequisite handler")};this.Wf=this.Ca=null;this.u&&this.Fa.resolve(!0);this.o.then(function(g){e.listen(g,"A",e.ph);e.ph()});UR&&WR()};t(h3,y0);
h3.prototype.Qb=function(){return this.V};h3.prototype.tg=function(){var a=this;return Object.assign(y0.prototype.tg.call(this),{joinState:function(){var b=N2(a);return b?lI(b):0},meetingSpace:function(){return a.D.get()&&a.D.get().za()},meetingDevices:function(){return a.o.get()&&a.o.get().za()},recentMeetingOperations:function(){return a.jh.Ma()},mediaBackendInfo:function(){var b=a.F&&a.F.G();return(b=b&&sJ(b))&&M(b,8,"")}})};var mda=l(["Removing meeting device on disconnect"]);
h3.prototype.ah=function(a,b){var c=this,d=bt(b);this.Oa=b;var e=bt();if(0==b||123==b){var f=i3(this);f&&(f=this.g.pb(f),bI(f,7),e=MN(this.g,f).then(function(){c.Y(6096)}))}67==b&&this.m&&(d=this.g.search().then(function(g){return(g=g.find(function(h){return h.Gb()==c.m}))&&7==lI(g)?43:b},function(){return b}));d.then(function(g){var h=bt();c.Oa=g;mt(e,function(){if(!c.bg&&(a||c.m)){c.s.info(mda);var q=c.ha.get()||c.m;q=c.g.pb(q);bI(q,6);h=MN(c.g,q,2).then(function(){j3(c);c.m=null;c.j.W(c.Pa,null)})}c.Ca&&
c.Ca.cancel();mt(h,function(){c.qh.then(function(r){c.td=Sw(r.l);c.l.h.j.g=null;y0.prototype.ah.call(c,a,g)})})});var m=new F0(g);c.Yf.reject(m);c.cc.reject(m);c.bc.reject(m);c.D.get()&&c.D.get().stop();c.o.get()&&c.o.get().stop()})};var k3=function(a,b){a.rc.add(b);mt(b,function(){a.rc.delete(b)});return b};
h3.prototype.resolve=function(a,b){var c=this;if(this.V)return ct(l3("Meeting already resolved"));if(this.u&&!b)return ct(l3("Missing required botguard id"));if(!this.u&&b)return ct(l3("Botguard id not allowed when logged in"));var d=I0(this,0,"resolve");if(d)return ct(d);b=jda(this.ra,a,b);return k3(this,b).then(function(e){c.V=e.Qb();c.Zc.g=c.V;var f=e.l();c.F=f3(c.ra,c.l,[f],new gL({Me:XI,Ke:[XI.prototype.l],Le:[XI.prototype.u],Se:[],Te:[],Pe:G1,Ne:[G1.prototype.l],Oe:[G1.prototype.u],Qe:[],Re:[],
ko:hda}),d3,"y","MeetingSpaces");N(c.F.config,8,5E3);c.T(c.F);c.g=f3(c.ra,c.l,[f],new gL({Me:RH,Ke:[fda],Le:[gda],Se:[RH.prototype.Gb],Te:[RH.prototype.l],Pe:F1,Ne:[F1.prototype.l],Oe:[F1.prototype.F],Qe:[F1.prototype.Gb],Re:[F1.prototype.u],ko:eda}),b3,"q","MeetingDevices");N(c.g.config,8,5E3);c.T(c.g);c.u&&c.X.start();c.M.resolve(f);c.Zc.h=f;H1(c.vd,e);return c.vd},function(e){var f="Resolve code "+a;e instanceof wM?f+=", errorType: "+e.Yc:e instanceof f2?f+=", error message: "+e.getMessage():"number"===
typeof e&&(f+=", rpc status code: "+e);var g=306,h=m3(e);null!=h&&(f+=", statusCode: "+h,g=nda.get(h)||g,c.u&&(g=n3.get(h)||g),f+=", "+o3(e));c.jh.add(f);c.s.Ta(oda,f);if(f=p3(e))f=M(f,2,0),g=pda.get(f)||g;e=new G0(g,e);c.M.reject(e);c.M=new KZ;throw e;})};var oda=l(["",""]);h3.prototype.pa=function(a){var b=this;this.u?this.M.g.then(function(){y0.prototype.pa.call(b,a)}):y0.prototype.pa.call(this,a)};var qda=l(["prejoin() was called"]);
h3.prototype.lh=function(){var a=this;this.s.info(qda);var b=I0(this,0,"preJoin");return b?ct(b):bt().then(function(){if(a.u)return bt();if(a.G)return a.G.then(function(c){return q3(a,c)});a.G=r3(a,2).then(function(c){if(a.C())return c;q3(a,c);a.Fa.resolve(5==lI(c));a.ak.resolve(null);return c});return a.G})};var q3=function(a,b){2==lI(b)?(B0(a,a.Xf.get(),a.m),s3(a)):a.X.start()},rda=l(["Modifying the meeting device as VIEWING"]),sda=l(["Unexpected view state: ",""]);
h3.prototype.view=function(){var a=this;return(this.G||this.lh()).then(function(){return a.sessionId.then(function(b){var c=I0(a,0,"view");if(c)throw c;a.ta||(a.s.info(rda),c=new RH,c.l(a.m),cI(c,b),bI(c,12),a.ta=nt(MN(a.g,c).then(function(d){d=d[0];t3(a,d);var e=I0(a,0,"view");if(e)throw e;d=lI(d);if(12!=d)throw a.s.Ta(sda,d),new Ab("Unexpected join state: "+d);return d}),function(d){a.ta=null;throw d;}));return a.ta.then(function(d){12==d&&(a.g.stop(),a.X.start());return d})})})};var tda=l(["connect() was called"]);
h3.prototype.connect=function(a,b){var c=this;a=void 0===a?null:a;b=void 0===b?null:b;return this.u&&!a?ct(new G0(302,"Missing name for anonymous user")):this.u&&!b?ct(new G0(302,"Missing botguard id for anonymous user")):this.fg.then(function(){c.s.info(tda);var d=I0(c,0,"connect");if(d)return ct(d);A0(c,1);c.X.stop();return c.G?gt([c.G,c.ta]).then(function(){return u3(c)}):r3(c,1,a,b).then(function(e){c.Fa.resolve(3==lI(e));return v3(c,e,Va())})})};
var uda=function(a){return a.Aa.o.concat().find(function(b){return"a"===b.ka()})||null},vda=l(["Should not update the same session id."]),wda=l(["Modifying the session id: ",""]),xda=l(["Failed to update the session id: ",""]);h3.prototype.Dh=function(a){var b=this;if(this.sessionId.get()==a)this.s.Ta(vda);else{this.s.info(wda,a);var c=new RH;c.l(this.m);cI(c,a);c=MN(this.g,c).then(function(d){return t3(b,d[0])},function(){b.s.Ta(xda,a)});k3(this,c)}};
h3.prototype.ph=function(){var a=this.o.get(),b=a.get(),c=b.filter(this.Vf).map(function(e){return e.Gb()});D0(this,c);var d=this.ha.get();if(2==this.getState()&&(a=d?a.G(d):null))switch(lI(a)){case 7:this.Y(3952);this.disconnect(43);break;case 8:this.disconnect(yda(a));break;case 2:case 3:case 5:case 9:case 12:break;case 1:zda(this,a);break;default:this.disconnect(34)}if(a=i3(this))d=M(Q(a,YH,20),1,""),Nca(this.kh,d);Oca(this.kh,!!a&&1===lI(a));D(this.R,b.length+" raw devices; "+c.length+" joined.")};
var i3=function(a){if(a.g)return a.g.get().find(function(b){return a.Vf(b)&&!!Q(b,YH,20)&&M(Q(b,YH,20),4,"")==a.ha.get()})};h3.prototype.Vf=function(a){return ul(a,5,!1)||10==lI(a)};
var Ada=l(["Failed to clear AudioMuteRequest"]),zda=function(a,b){var c=Q(b,TH,12)&&M(Q(b,TH,12),1,"");if(c!=a.Wf){var d=c==b.Gb();if(a.Wf=c){if(!d||!a.Kb){var e=uda(a);e&&!e.Sb()&&VY(e)}b=a.g.pb(b);eI(b,new TH);nt(MN(a.g,b),function(){a.s.Ta(Ada)});d?a.Kb||(a.j.W(a.Aj,void 0),a.Y(4203)):(a.j.W(a.mc,{dw:c}),a.Y(990))}}},r3=function(a,b,c,d){c=void 0===c?null:c;d=void 0===d?"":d;return nt(gt([a.M.g,a.sessionId,a.qh]).then(function(e){var f=n(e);e=f.next().value;var g=f.next().value,h=f.next().value;
f=cI(bI((new RH).l(R2({jd:e,yd:d||""})),b),g);g=a.contentType&&w3.get(a.contentType);1==b&&g&&xl(f,25,g);a.u&&P(f,2,c);Bda(a,h,e);e=k3(a,a.g.add(f));e.then(function(){a.ag.resolve(h.Tj)});return e}).then(function(e){e=e[0];a.m=e.Gb();a.j.W(a.Pa,a.m);var f=a.m.split("/")[3]||a.Dc;a.u&&(a.Zc.l=f,a.yj.resolve(f));t3(a,e);return e},a.Gj,a),function(e){throw l3(e);})},Cda=l(["Device add operation has been cancelled."]),Dda=l(["Device add error: ",""]);
h3.prototype.Gj=function(a){j3(this);C(this.R,"add device failed, moving back to INITIALIZED state");A0(this,0);this.G=null;var b=325,c=m3(a);a instanceof Xs?(b=219,this.s.Ta(Cda)):null!=c&&(b=x3(a,b),this.u&&(b=n3.get(c)||b),this.s.Ta(Dda,o3(a)));throw new G0(b,a);};
var Eda=l(["Modifying the meeting device as JOINED"]),Fda=l(["Device modify error: ",""]),u3=function(a){return nt(a.sessionId.then(function(b){a.s.info(Eda);var c=new RH;c.l(a.m);cI(c,b);(b=a.contentType&&w3.get(a.contentType))&&xl(c,25,b);bI(c,1);return MN(a.g,c)}).then(function(b){t3(a,b[0]);return v3(a,b[0],Va())},function(b){var c=303;null!=m3(b)&&(c=x3(b,c),a.s.Ta(Fda,o3(b)));throw new G0(c,b);}),function(b){return y3(a,l3(b))})},Gda=l(["Checking the join state"]),Hda=l(["Unexpected join state: ",
""]),v3=function(a,b,c){var d=I0(a,1,"checkJoinState");if(d)return y3(a,d);a.s.info(Gda);switch(lI(b)){case 1:return Ida(a);case 3:if(6E5<=Va()-c)return y3(a,new G0(234));a.Ca=Cv(5E3).then(function(){return Jda(a,c)},function(){y3(a,new G0(252))});return a.Ca;case 4:return y3(a,new G0(233));case 11:return y3(a,new G0(241));case 9:var e=0,f=function(){return 5>e++?Kda(a).then(function(m){return a.nh(m)}):ct()},g=function(){return y3(a,new G0(325))},h=function(){return f().then(function(){return nt(u3(a),
function(){return h()})},g)};return h();default:return a.s.Ta(Hda,lI(b)),y3(a,"Unexpected join state: "+lI(b))}},Jda=function(a,b){return a.g.search().then(function(c){c=c.find(function(d){return d.Gb()==a.m});t3(a,c);return v3(a,c,b)},function(c){var d=303;null!=m3(c)&&(d=x3(c,d));return y3(a,new G0(d,c))})},Ida=function(a){s3(a);var b=jt();C0(a,b,a.Xf.get(),a.m);return b.fa},s3=function(a){a.Yf.resolve(a.F);a.cc.resolve(a.g);a.F.start();a.g.start()};
h3.prototype.jm=function(){return oba(this.ha.get(),this.Aa.o.concat().map(function(a){return a.g}),this.Aa)};var y3=function(a,b){C(a.R,"connect failed, moving back to DISCONNECTED state");A0(a,4);if(a.m){var c=new RH;c.l(a.m);bI(c,6);mt(MN(a.g,c,2),function(){return j3(a)});a.m=null;a.j.W(a.Pa,null);a.G=null}return ct(l3(b))},Bda=function(a,b,c){Lda(a,function(){j3(a);var d={meetingToken:Sw(b.l)||a.td};JM(b.h.replace("${path}",c+"/devices:close"),Fs(d),"application/json");a.bg=!0},function(){return Mda(a)})};
h3.prototype.Pc=function(a){y0.prototype.Pc.call(this,a);a=gM(a);this.V&&N(a,13,this.V);var b=this.M.g.get();b&&N(a,14,b)};var Mda=function(a){var b=function(){a.lc&&f1(a.lc,a).forEach(function(c){var d=a.l.h,e=cr(d.u,"/"+d.m+"/"+d.o+"/media_sessions/callperf");d.l&&(e=$q(e,"key",d.l));OM(d,c);JM(e,c.va(),"application/json+protobuf")})};a.disconnect(null!=a.Oa?a.Oa:63).then(b,b)};h3.prototype.rk=function(){this.u?this.F.search():this.g.search()};
var l3=function(a){return a instanceof G0||a instanceof Xs?a:new G0(302,a)},m3=function(a){return a instanceof wM?a.g:a instanceof f2?a.h:"number"===typeof a?Nda.get(a):null},p3=function(a){if(a instanceof f2)a:{if(a.g){a=n(R(a.g,OH,3));for(var b=a.next();!b.done;b=a.next())if(b=b.value,"google.rtc.meetings.v1.ErrorDetails"==M(b,1,"")||"type.googleapis.com/google.rtc.meetings.v1.ErrorDetails"==M(b,1,"")){a=M(b,2,"");null==a||a instanceof Uint8Array||("string"===typeof a?a=rk(a):(Eb("Cannot coerce to Uint8Array: "+
Ka(a)),a=null));a=new zk(a);for(b=new E1;Bk(a)&&!Ak(a);)switch(a.h){case 1:var c=Fk(a);yl(b,1,D1[0],c);break;case 2:c=Fk(a);yl(b,2,D1[0],c);break;default:Ck(a)}a=b;break a}}a=null}else a=null;return a},Oda=function(a){var b="",c=a.l;c&&(b+=" exception name: "+c.name,b+=" exception message: "+c.message);a.g&&(b+=" status: "+a.g.va());a.Kd&&(a=a.Kd,Array.isArray(a)?(a=a.map(function(d){return d instanceof J?d.va():Bf(d)}),b+=" response: "+Fs(a)):b=a instanceof J?b+(" response: "+a.va()):b+(" response: "+
Bf(a)));return b},o3=function(a){if(a instanceof wM&&a.response){a=a.response.Rv||"";try{var b=JSON.parse(a).body;var c=b?Fs(b):a}catch(d){c=a}}else c=a instanceof f2?Oda(a):Bf(a);return c},x3=function(a,b){var c=p3(a);if(c&&M(c,1,0)&&(c=Pda.get(M(c,1,0))))return c;a=m3(a);return null!=a?Qda.get(a)||b:b},Zca=function(a,b){a.nh=b},t3=function(a,b){b&&(a.mh=b,a.bc.resolve(!0))},N2=function(a){var b=null;a.g&&a.m&&(b=a.g.G(a.m));return b||a.mh},Rda=function(a){return a.F.search().then(function(b){return b[0]})},
Kda=function(a){var b=Rda(a);a=a.g.start()||HN(a.g);return gt([b,a]).then(function(c){return n(c).next().value})};h3.prototype.ba=function(){this.rc.forEach(function(a){a.cancel()});y0.prototype.ba.call(this)};var yda=function(a){a:switch(M(a,28,0)){case 2:a=121;break a;case 3:a=10;break a;default:a=null}return null!=a?a:Sda()},Sda=function(){var a=B2("ListMeetingDevices",1)[0]||B2("UpdateMeetingDevice",1)[0];switch(a&&a.resp.code){case 400:return 114;case 401:return 113;case 403:return 115;default:return 111}};
h3.prototype.Gm=function(){var a=this;return Ba(function(b){return b.return(uK(a.ra,K2).then(function(c){return function(){return c(a)}}))})};h3.prototype.hm=function(){var a=this;return Ba(function(b){return b.return(uK(a.ra,Pca).then(function(c){return c(a)}))})};h3.prototype.km=function(){var a=this;return Ba(function(b){return b.return(uK(a.ra,Rca).then(function(c){return c(a)}))})};h3.prototype.im=function(){var a=this;return Ba(function(b){return b.return(uK(a.ra,Sca).then(function(c){return c(a)}))})};
var nda=new Map([[404,217],[401,300],[400,327],[403,256],[504,328],[10001,328],[10007,249],[-1,329],[0,329]]),pda=new Map([[1,217],[4,254],[3,253]]),Nda=new Map([[0,200],[2,500],[3,400],[4,504],[5,404],[7,403],[16,401],[8,429],[9,400],[13,500],[11,400],[6,409],[10,409],[14,503],[12,501]]),n3=new Map([[403,200]]),Qda=new Map([[400,324],[403,200],[500,307],[429,216],[10001,330],[10007,331],[-1,331],[0,331]]),Pda=new Map([[1,239],[4,257]]),z3=new Map,A3=function(){var a=[].concat(p(z3.values()));a.forEach(function(b){b=
b.Ow;return b()});a.forEach(function(b){b=b.ir;return b()});z3.clear();rv(kg(),["beforeunload","unload"],A3)},Lda=function(a,b,c){0==z3.size&&jv(kg(),["beforeunload","unload"],A3);z3.set(a,{Ow:b,ir:c})},j3=function(a){z3.delete(a);0==z3.size&&rv(kg(),["beforeunload","unload"],A3)},w3=new Map([["stqyie",1],["iaamBc",2],["vLwGKe",3],["hQbUN",4]]);var B3=function(a,b,c,d,e){T.call(this);this.s=$a("mr.mirror.hangouts.HangoutCallService");this.h=a;this.m=d;this.L=e;this.g=null;this.u=!1;this.D=new zb;this.j=new zb;this.G=!1;this.F=new zb;this.o=this.l=null;this.H=!1;Tda(this,b,c)};t(B3,T);
var Xda=function(a,b){a.s.info("Connecting to hangout");setTimeout(function(){a.j.reject(Error("Timed out before connecting"))},3E4);a.D.g.then(function(c){gb(a.s,"Call ready.");a.u=c.Fd;if(a.u)c=Uda(a,c);else{var d=c.hb,e=c.Vg;c=a.h.get(YM);if(e)gb(a.s,"Already resolved id: "+e),c=bt(AO(a.h,c,e));else{gb(a.s,"resolving hangout id: "+d);e=a.h;d=d.split("@");var f=new MB;N(f,5,!0);if(-1!=d[1].indexOf(".")){var g=new KB;N(g,1,d[0]);N(g,2,d[1]);S(f,4,g)}else g=new xB,N(g,1,d[1]),N(g,2,d[0]),S(f,2,g);
c=DO(e,c,f)}c=a.g.connect(c)}return c}).then(null,function(c){Vda(a,c);if(c.ye){for(var d="",e=n(Object.entries(wY)),f=e.next();!f.done;f=e.next()){var g=n(f.value);f=g.next().value;g=g.next().value;if(g==c.Iw){d=f+"("+g+")";break}}a.s.error("Call connect error startupCode: "+d);c=c.ye}d="SESSION_FAILURE";c.response&&Array.isArray(c.response)&&0<c.response.length&&"chrrp"==(new dD(c.response)).D&&(d="HANGOUT_INVALID");a.m(new Oj(d));a.j.reject(c);C3(a,16)});return a.j.g.then(function(){return a.g.ha}).then(function(c){D3(a,
b,c);if(a.u)return E3(a,c);F3(a,c);Wda(a,a.g.g.get())})},Yda=function(a,b){return new Promise(function(c,d){a.g.ha.then(function(e){D3(a,b,e);if(!a.H){if(a.u){E3(a,e).then(c,d);return}F3(a,e)}c()},d)})},Zda=function(a,b){a.g.Aa.o.concat().forEach(function(c){"a"===c.ka()&&(b?VY(c):"st"!=c.h&&r1(c,!1))})},$da=function(a){return a.j.g.then(function(){IY(a.g.Aa)}).catch(function(){if(a.g)IY(a.g.Aa);else throw Error("call was never created");})};B3.prototype.stop=function(){C3(this,0);return this.F.g};
B3.prototype.ba=function(){var a=this;this.l&&this.l.dispose();this.o&&this.o.dispose();this.D.reject(Error("Disposed"));this.j.reject(Error("Disposed"));setTimeout(function(){a.F.reject(Error("Timed out before stopping"))},1E4);this.g&&this.g.dispose();T.prototype.ba.call(this)};
var Tda=function(a,b,c){a.m(new Oj("REFRESH_AUTH"));b.then(function(){return c}).then(function(d){gb(a.s,"Creating call for hangout id: "+d.hb+" resolvedId: "+d.Vg);var e=hT(new gT);a.g=aea(a,d,e);a.g.onConnect.then(a.M,null,a);a.g.onDisconnect.then(a.J,function(f){a.s.K("Error on disconnect: "+f)},a);a.D.resolve(d)})},aea=function(a,b,c){b.Fd?(b=new h3(a.h,a.h.get(TK),!1),b.Kb=!0,b.contentType="iaamBc",b.pa(c),b.o.then(a.V,null,a),$ca(b)):(b=new d1(a.h,a.h.get(TK),c),b.ib.then(a.X,null,a));b.mc.attach(function(){a.m(new Oj("STATUS_RESPONSE",
{mute:!0}));a.L(!0)});return b},Uda=function(a,b){var c=a.g;return c.resolve(b.hb).then(function(){return c.connect()})},D3=function(a,b,c){if(0<b.getAudioTracks().length)if(a.l){var d=a.l;d.ta=b;d.m()}else a.l=new G3(a.h,new NO(c,"1","a","sc"),b),o1(a.l),a.g.Uh(a.l);a.o?(a=a.o,a.ta=b,a.m()):(c=new NO(c,"2","v","sc"),LO(c,[new JO(0,0,1,1)])&&c.N("H"),a.o=new G3(a.h,c,b),o1(a.o),a.g.Uh(a.o))},E3=function(a,b){var c=new $I;P(c,1,b);var d=a.g.D.get();a=new fJ;a.nd(c);var e=d.pb();S(e,6,a);return new Promise(function(f,
g){MN(d,e).then(f,g)})},F3=function(a,b){var c=new yB;zB(c,b);b=new BB;b.nd(c);b.Kn(a.g.hb.get());MN(a.g.g.get(),b)},Wda=function(a,b){b.onChange.attach(function(){a.g.ha.then(function(c){a.H=b.get().some(function(d){return d.xc()&&L(d.xc(),1)==c})})},a)};B3.prototype.V=function(a){var b=this;a.onChange.attach(function(c){return bea(b,c.Bc)},this)};var bea=function(a,b){b.forEach(function(c){c.Gb()==a.g.ha.get()&&7==lI(c)&&C3(a,43)})};
B3.prototype.X=function(a){var b=this;a.onChange.attach(function(){return cea(b,a)},this);a.La.attach(function(c){b.s.error("Failure in collection: "+c.reason);b.j.reject(c.reason);C3(b,c.Mb)},this)};var cea=function(a,b){gb(a.s,function(){return"Participants updated: "+b.get().filter(function(c){return ul(c,18,!1)}).map(function(c){return L(c,4)}).join(", ")});!a.G&&2>b.get().length&&(a.m(new Oj("HANGOUT_INACTIVE")),C3(a,61))};
B3.prototype.M=function(){this.s.info("Call connected");this.m(new Oj("SESSION_START_SUCCESS"));this.j.resolve(void 0)};B3.prototype.J=function(a){this.m(new Oj("SESSION_END"));var b="",c;for(c in wB)if(wB[c]==a){b=c+"("+a+")";break}this.s.info("Call ended with endcause: "+b);0!=a&&61!=a&&16!=a&&this.m(new Oj("SESSION_FAILURE"))};
var C3=function(a,b){a.s.info("Stopping call with end Cause: "+b);a.G?a.s.info("Ignore stop, already stopping."):(a.G=!0,a.g?a.g.disconnect(b).then(function(c){gb(a.s,"Call disconnected with endCause: "+c);a.F.resolve(void 0)}):a.F.resolve(void 0))},Vda=function(a,b){b instanceof Error?a.s.error("Connect error",b):La(b)?a.s.error(function(){return"Connect error: "+JSON.stringify(b)}):Na(b)?a.s.error("Connect error: "+JSON.stringify(b)):a.s.error("Connect error: "+b)},G3=function(a,b,c){l1.call(this,
a,b,dea);this.ta=c};t(G3,l1);G3.prototype.m=function(){var a=this.ta.clone();s1(this,a);a.getVideoTracks().forEach(function(b){"contentHint"in b&&(b.contentHint="detail")});return bt()};var H3=new C1,eea=z1(y1(A1(new x1,30),320),180).ja();H3.h=eea;var fea=z1(y1(A1(new x1,30),640),360).ja();H3.g=fea;var dea=H3.ja();var gea=new RegExp(/(?:hangouts\/_|present)/.source+"[/]"+/(?:[^\/]+\.[^\/]+)/.source+"[/]"+/([\w_\-]+)/.source+/[\?\/]?/.source);var I3=new bU("realtime.hangoutsextension.Extension");function J3(){var a=kg(),b=a,c=b.chrome&&b.chrome.runtime;try{do{try{b.location.origin==a.location.origin&&(c=b.chrome&&b.chrome.runtime||c)}catch(d){}if(b==b.parent)break;b=b.parent}while(null!=b)}catch(d){}return c}function K3(){return"https:"==kg().location.protocol?"nkeimhogjdpnpccoofpliimaahmaaome":"hoblmflfjcnhdllclikeemgdcbbflkhi"}var L3=function(a,b){this.status=void 0===a?99:a;this.value=b};
L3.prototype.toString=function(){return"ExtensionResult(status="+this.status+", value="+this.value+")"};var hea=l(["",""]);
function M3(a,b){b=void 0===b?!0:b;var c=jt(),d=J3(),e=a.method;if(d&&d.sendMessage){e=iea(c,e,b);b=kg().location;a.origin=b.origin+"/";var f=br(b.href,"tabId");f&&(a.tabId=f);b=br(b.href,"winUrl")||br(b.href,"origin")||b.origin;a.winUrl=b;d.sendMessage(K3(),a,e)}else d?(d='chrome.runtime lacks "sendMessage" method',a=8):(d="chrome.runtime missing",a=5),d="Method: "+e+"; Type: "+d+"; Explanation: ",I3.Ta(hea,d),c.reject(new L3(a,d));return c.fa}var jea=l(["Sending message: ",""]);
function N3(a){var b=Fs(a);var c=void 0===c?"#REDACTED#":c;var d=gea.exec(b);b=d&&d[1]?b.replace(d[1],c):b;I3.info(jea,b);return M3(a)}var kea=l(["Opening port named ",""]);function lea(){var a=J3();if(a&&null!=a.connect){I3.info(kea,"processCpu");var b=a.connect(K3(),{name:"processCpu"}),c=function(){return b.disconnect()};jv(kg(),"unload",c);b.onDisconnect.addListener(function(){rv(window,"unload",c)});return b}return null}var mea=l(["Received response to ",": ",""]),nea=l(["",""]);
function iea(a,b,c){return function(d){var e="No response from extension.",f=2;if(null!=d)if(f=1,e=d.error,null!=e)e="Extension reported: "+e.name+" - "+e.message+".";else{c&&(f=Fs(d.value),I3.g(mea,b,f));a.resolve(new L3(0,d.value));return}(d=J3())?null!=d.lastError&&(e+=" chrome.runtime.lastError.message: "+d.lastError.message):(f=5,e+=" No chrome.runtime to get chrome.runtime.lastError.message.");d="Method: "+b+"; Type: Hangout Component Extension Error; Explanation: "+(e||"");I3.Ta(nea,d);a.reject(new L3(f,
d))}}var O3=!1;var oea=new Map([[1,4030],[2,4031],[4,4610],[5,4664],[8,4962]]);var P3=function(a){var b=this;this.g=a;this.j=null;this.h=function(c){var d=oea.get(c.status);if(d){var e=c.value;e="string"==typeof e?e:JSON.stringify(e);b.g.Y(d,{Zb:e})}d=0==c.status;null!=b.j&&(!b.j&&d?b.g.Y(4783):b.j&&!d&&b.g.Y(4784));b.j=d;return c}},Q3=function(a,b){sK(a,EZ)||HK(a,EZ,function(c){return new P3(b(c))})},R3=function(a){return a.g.Nj().then(a.h,a.h)};P3.prototype.sg=function(){return this.g.sg()};
var pea=function(a){return a.g.Qj().then(a.h,a.h)},qea=function(a,b,c){return a.g.Rj(b,c).then(a.h,a.h)},S3=function(a,b){return a.g.Mj(b).then(a.h,a.h)},rea=function(a,b,c){return a.g.Sj(b,c).then(a.h,a.h)},T3=function(a){this.h=uK(a,NK)};T3.prototype.Y=function(a,b){this.h.then(function(c){c.Y(a,b)})};var U3=function(a){T3.call(this,a);this.Y(4865)};t(U3,T3);k=U3.prototype;k.Nj=function(){return new Ys(function(a){chrome.system.cpu.getInfo(function(b){a(new L3(0,b))})})};
k.sg=function(){if(!chrome.processes)return null;var a=Ia,b,c=function(d){pj(10);if(void 0==b)gj("mr.mirror.hangouts.HangoutsService").then(function(r){if(r=r.g)r=r.h.mediaSource,-1!=r.indexOf(":tab:")&&(r=r.split(":"),chrome.processes.getProcessIdForTab(parseInt(r[r.length-1],10),function(u){chrome.runtime.lastError||(b=u)}))});else{var e=d[b];if(e){var f=0,g=0,h=0,m;for(m in d){var q=d[m];"browser"==q.type?g=q.cpu:"gpu"==q.type?h=q.cpu:"extension"==q.type&&q.title==chrome.runtime.getManifest().name&&
(f=q.cpu)}a({tabCpuUsage:e.cpu,browserCpuUsage:g,gpuCpuUsage:h,pluginCpuUsage:f})}}};return{onMessage:{addListener:function(d){a=d;chrome.processes.onUpdated.addListener(c)}},disconnect:function(){chrome.processes.onUpdated.removeListener(c);a=Ia}}};k.Mj=function(){return V3()};k.Qj=function(){return V3()};k.Rj=function(){return V3()};k.Pj=function(){return V3()};k.Sj=function(){return V3()};k.Oj=function(){return V3()};var V3=function(){return ct(new L3(7,"This method is not intended to be implemented."))};var sea={TAB:0,ll:1},W3=function(a){ub("MediaRouter.Hangouts.Start.Success",a,sea)};var X3=function(a,b,c){Hj.call(this,a);var d=this;this.V=b;this.L=c;this.s=$a("mr.mirror.hangouts.HangoutSession");this.H=$w(a.id);this.m=new zb;this.C=!1;this.o=this.D=null;this.u=new zb;this.u.g.catch(function(e){d.s.error("Error in cloud provider",e)});this.F=this.J=null;tea(this);this.g=null};t(X3,Hj);
X3.prototype.start=function(a){var b=this;gb(this.s,"Starting new hangouts mirror session.");this.D=a;if(this.g)return Promise.reject(Error("Mirroring already started"));if(this.o)return Promise.reject(Error("Session permanently stopped"));this.J=new kb("MediaRouter.Hangouts.Session.Launch");this.g=new B3(this.V,this.L,this.u.g,this.l.bind(this),this.X.bind(this));Xda(this.g,this.D).then(function(){gb(b.s,"Call connected");b.l(new Oj("SESSION_START_SUCCESS"));b.J.end();b.J=null;b.F=new qb("MediaRouter.Hangouts.Session.Length");
b.m.resolve(b)},function(c){b.m.reject(c);b.stop()});return this.m.g};X3.prototype.Yo=function(){return!0};X3.prototype.fp=function(a){var b=this;return new Promise(function(c,d){b.g?Yda(b.g,a).then(function(){b.D=a;c()},d):d(Error("Mirroring was never started"))})};
X3.prototype.stop=function(){var a=this;gb(this.s,"Stopping hangouts mirror session.");this.m.reject(Error("Session stop requested."));this.F&&(this.F.end(),this.F=null);if(!this.g)return Promise.resolve();if(this.o)return this.o;this.m.reject(Error("Stopped"));this.u.reject(Error("Stopped"));var b=function(){try{a.H.dispose()}catch(c){a.s.error("Error while disposing message port",c)}try{a.g.dispose()}catch(c){a.s.error("Error while disposing call service",c)}};return this.o=new Promise(function(c,
d){setTimeout(function(){b();d(Error("Timed out before stopping"))},1E4);a.g.stop().then(function(){b();c()}).catch(function(e){b();d(e)})})};
var tea=function(a){a.H.onMessage=function(b){if("string"===typeof b){b=JSON.parse(b);var c=b.clientId;if(c){"client_connect"==b.type?a.l({message:{sessionId:"castouts"},clientId:c,type:"new_session"}):"v2_message"==b.type&&"STOP"==b.message.type&&a.l({message:"castouts",clientId:c,type:"remove_session"});return}}if(!b.type)throw Error("Message has no type.");switch(b.type){case "AUTH_READY":b=b.data;gb(a.s,"received auth ready message");a.u.resolve(b);break;case "MUTE":b.data&&(a.C=!!b.data.mute,
a.g&&Zda(a.g,a.C));break;case "STATUS_RESPONSE":gb(a.s,"route status response message");b.data&&(a.C=!!b.data.mute);break;case "STATUS_REQUEST":gb(a.s,"route status request message");a.l(new Oj("STATUS_RESPONSE",{routeDescription:a.h.description,mute:a.C}));break;default:throw Error("Unknown message type: "+b.type);}}};X3.prototype.l=function(a){gb(this.s,function(){return"sending message to mrp: "+JSON.stringify(a)});this.H.sendMessage(a,uea)};X3.prototype.X=function(a){this.C=a};var uea={channelType:"mesi"};var Y3=function(a){this.g=a};Y3.prototype.onError=function(a,b){401==b.g&&this.g(new Oj("REFRESH_AUTH"))};Y3.prototype.onRequest=Ia;Y3.prototype.D=Ia;var wea=function(a,b){var c=a.M,d=a.G;c=c&&c instanceof J?d?d.va.call(c):c.va():c;var e=null==a.J?{}:a.J;d=null==a.X?{}:a.X;var f=null==a.pa?"application/json":a.pa;if(null==a.F||a.F)a.G?(d.alt="proto",f="application/x-protobuf",e["X-Goog-Encode-Response-If-Executable"]="base64"):(d.alt="protojson",f="application/json+protobuf");var g=a.ub;if(0<g.length){e["MIME-Version"]="1.0";var h="END_OF_PART_"+ze();e["Content-Type"]='multipart/related; boundary="'+h+'"';c=vea(f,c,g,h)}else"application/x-www-form-urlencoded"==
f&&(c=Yq(d),d.key?d={key:d.key}:d={}),null!=c&&(e["Content-Type"]=f);e["Accept-Language"]=a.Rc||"en";null!=b&&xc(b,function(m,q){null==e[q]&&(e[q]=m)});b={method:a.L,path:a.C,params:d,headers:e,body:c};ld(xe(a.u||""))||(b.root=a.u||"");return b},vea=function(a,b,c,d){var e="\r\n\r\n--"+d+"\r\n";d="\r\n\r\n--"+d+"--\r\n";var f=e+"Content-Type: "+a+"\r\n\r\n"+b;Hb(c,function(g){f+=e+"Content-Type: "+g.type+"\r\nContent-transfer-encoding: "+g.g+"\r\n\r\n"+g.data+"\r\n\r\n"});return f+=d};var Z3=function(a,b){b=void 0===b?!1:b;T.call(this);var c=this;this.h=jt();this.g=!1;this.j=b;a.then(function(d){c.m={lw:d};c.g=!0;c.h.resolve(null)},Ia);this.s=Zf("realtime.network.CorsApiaryTransport")};t(Z3,T);
Z3.prototype.sendRequest=function(a,b){var c=this,d=jt();if(!this.g)return ag(this.s,"Attempted to use Apiary transport for "+AM(a)+" when not ready."),d.reject(new wM("fatal","transport_unavailable",null,null)),d.fa;var e=wea(a,b),f=e.headers;b=f["Content-Type"];var g=e.body;g&&!b&&(b="application/json",f["Content-Type"]=b);"application/json"!=b||e.params.alt||(e.params.alt="json");!g||!Na(g)||g instanceof Uint8Array||(g=Fs(g));Ec(f,"Authorization")&&(f["X-Goog-AuthUser"]=this.m.lw);b=Zq(e.path,
e.params);var h=cr(e.root,b),m=function(){return Tv(h,x(c.o,c,d,a,g&&g.length||0),e.method,g,f,(a.g?a.g.g:null)||0,!0)};this.j&&Uint8Array&&g&&1024<=g.length&&j2()?(b=g instanceof Uint8Array?g:fk(g),(new Uint8Array(b.length)).set(b),i2().then(function(q){f["Content-Encoding"]="gzip";g=q;m()},function(){m()})):m();return d.fa};
Z3.prototype.o=function(a,b,c,d){d=d.target;var e=ew(d),f={body:e,headers:hw(d),status:d.Ja(),statusText:dw(d)};c={cw:c,Cu:e&&e.length||0};c={gd:d.Ja(),headers:hw(d),Rv:Fs(f),Fb:null,extraData:c};if(null!=e)try{var g=b.G;if(g){if(cw(d)){if("base64"==d.getResponseHeader("X-Goog-Safety-Encoding"))var h=rk(e);else a:{try{if(d.g&&"responseBody"in d.g){h=d.g.responseBody;break a}}catch(m){bg(d.s,"Can not get responseBody: "+m.message)}h=null}c.Fb=g.Ah(h)}}else c.Fb=JSON.parse(e)}catch(m){C(this.s,"Failed to parse response for "+
AM(b)+": "+e,m)}4==bw(d)&&cw(d)?null==c.Fb?a.reject(new wM("retry","response_decoding",c.gd,c)):null!=c.Fb&&null!=c.Fb.error?(c.gd=c.Fb.error.code,C(this.s,AM(b)+" request failed "+c.Fb.error.code+": "+c.Fb.error.message),a.reject(new wM("retry","network_or_frontend",c.gd,c))):(g=Zf("realtime.network.ApiaryTransportHelper"),h=c.Fb,(b=(null==b.F?!0:b.F)&&!b.G)&&!La(h)||!b&&!Na(h)?(C(g,"Apiary returned bad response type; expected "+(b?"Array":"Object")+", received "+Ka(h)),a.reject(new wM("retry","response_format",
c.gd,c))):a.resolve(c)):(0>=d.Ja()&&(C(this.s,"Request failed: A network error occurred and the "+AM(b)+" request could not be completed"),c.gd=0),a.reject(new wM("retry","network_or_frontend",c.gd||d.m,c)))};var $3=function(a){Z3.call(this,bt(0));this.l=a};t($3,Z3);$3.prototype.sendRequest=function(a,b){var c=this;return new Ys(function(d,e){c.l.getAuthToken().then(function(f){null==b&&(b={});b.Authorization="Bearer "+f;d(Z3.prototype.sendRequest.call(c,a,b))},e)})};var a4=function(){},yea=function(a){for(var b=a.constructor;b&&!b.Ud;)b=b.Db&&b.Db.constructor;b.Ud.lm||(b.Ud.lm=xea(b));return new b.Ud.lm(a)},xea=function(a){var b=a.Ud,c=function(m){c.Db.constructor.call(this,m);var q=this.dd.length;this.g=[];for(var r=0;r<q;++r)this.dd[r].UK||(this.g[r]=new this.dd[r](m))};B(c,b);for(var d=[];a&&a!==Object;){if(b=a.Ud){b.dd&&(dc(d,b.dd),fc(d));var e=b.prototype,f;for(f in e)if(e.hasOwnProperty(f)&&Ma(e[f])&&e[f]!==b){var g=!!e[f].SK,h=zea(f,e,d,g);(g=Aea(f,e,
h,g))&&(c.prototype[f]=g)}}a=b4(a)}c.prototype.dd=d;return c},b4=function(a){return a===Object?Object:Object.getPrototypeOf?Object.getPrototypeOf(a.prototype).constructor||Object:a.Db&&a.Db.constructor||Object},zea=function(a,b,c,d){for(var e=[],f=0;f<c.length&&(c[f].prototype[a]===b[a]||(e.push(f),!d));++f);return e},Aea=function(a,b,c,d){var e;c.length?d?e=function(f){var g=this.g[c[0]];return g?g[a].apply(this.g[c[0]],arguments):this.dd[c[0]].prototype[a].apply(this,arguments)}:b[a].pr?e=function(f){a:{var g=
Array.prototype.slice.call(arguments,0);for(var h=0;h<c.length;++h){var m=this.g[c[h]];if(m=m?m[a].apply(m,g):this.dd[c[h]].prototype[a].apply(this,g)){g=m;break a}}g=!1}return g}:b[a].nr?e=function(f){a:{var g=Array.prototype.slice.call(arguments,0);for(var h=0;h<c.length;++h){var m=this.g[c[h]];m=m?m[a].apply(m,g):this.dd[c[h]].prototype[a].apply(this,g);if(null!=m){g=m;break a}}g=void 0}return g}:b[a].yn?e=function(f){for(var g=Array.prototype.slice.call(arguments,0),h=0;h<c.length;++h){var m=
this.g[c[h]];m?m[a].apply(m,g):this.dd[c[h]].prototype[a].apply(this,g)}}:e=function(f){for(var g=Array.prototype.slice.call(arguments,0),h=[],m=0;m<c.length;++m){var q=this.g[c[m]];h.push(q?q[a].apply(q,g):this.dd[c[m]].prototype[a].apply(this,g))}return h}:d||b[a].pr||b[a].nr||b[a].yn?e=null:e=Bea;return e},Bea=function(){return[]};a4.prototype.j=function(a){if(this.g)for(var b=0;b<this.g.length;++b)if(this.g[b]instanceof a)return this.g[b];return null};
var c4=function(){var a=function(){};a.yn=!0;return a};var Cea=function(a){return this.ng.j(a)};/*

 (The MIT License)

 Copyright (C) 2014 by Vitaly Puzrin

 Permission is hereby granted, free of charge, to any person obtaining a copy
 of this software and associated documentation files (the "Software"), to deal
 in the Software without restriction, including without limitation the rights
 to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
 copies of the Software, and to permit persons to whom the Software is
 furnished to do so, subject to the following conditions:

 The above copyright notice and this permission notice shall be included in
 all copies or substantial portions of the Software.

 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
 AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
 OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
 THE SOFTWARE.

 -----------------------------------------------------------------------------
 Ported from zlib, which is under the following license
 https://github.com/madler/zlib/blob/master/zlib.h

 zlib.h -- interface of the 'zlib' general purpose compression library
   version 1.2.8, April 28th, 2013
   Copyright (C) 1995-2013 Jean-loup Gailly and Mark Adler
   This software is provided 'as-is', without any express or implied
   warranty.  In no event will the authors be held liable for any damages
   arising from the use of this software.
   Permission is granted to anyone to use this software for any purpose,
   including commercial applications, and to alter it and redistribute it
   freely, subject to the following restrictions:
   1. The origin of this software must not be misrepresented; you must not
      claim that you wrote the original software. If you use this software
      in a product, an acknowledgment in the product documentation would be
      appreciated but is not required.
   2. Altered source versions must be plainly marked as such, and must not be
      misrepresented as being the original software.
   3. This notice may not be removed or altered from any source distribution.
   Jean-loup Gailly        Mark Adler
   jloup@gzip.org          madler@alumni.caltech.edu
   The data format used by the zlib library is described by RFCs (Request for
   Comments) 1950 to 1952 in the files http://tools.ietf.org/html/rfc1950
   (zlib format), rfc1951 (deflate format) and rfc1952 (gzip format).
*/
var d4={},Dea="undefined"!==typeof Uint8Array&&"undefined"!==typeof Uint16Array&&"undefined"!==typeof Int32Array;d4.assign=function(a){for(var b=Array.prototype.slice.call(arguments,1);b.length;){var c=b.shift();if(c){if("object"!==typeof c)throw new TypeError(c+"must be non-object");for(var d in c)Object.prototype.hasOwnProperty.call(c,d)&&(a[d]=c[d])}}return a};d4.Mk=function(a,b){if(a.length===b)return a;if(a.subarray)return a.subarray(0,b);a.length=b;return a};
var Eea={hf:function(a,b,c,d,e){if(b.subarray&&a.subarray)a.set(b.subarray(c,c+d),e);else for(var f=0;f<d;f++)a[e+f]=b[c+f]},sm:function(a){var b,c;var d=c=0;for(b=a.length;d<b;d++)c+=a[d].length;var e=new Uint8Array(c);d=c=0;for(b=a.length;d<b;d++){var f=a[d];e.set(f,c);c+=f.length}return e}},Fea={hf:function(a,b,c,d,e){for(var f=0;f<d;f++)a[e+f]=b[c+f]},sm:function(a){return[].concat.apply([],a)}};
d4.Bw=function(){Dea?(d4.ne=Uint8Array,d4.ud=Uint16Array,d4.yp=Int32Array,d4.assign(d4,Eea)):(d4.ne=Array,d4.ud=Array,d4.yp=Array,d4.assign(d4,Fea))};d4.Bw();for(var e4=new d4.ne(256),f4=0;256>f4;f4++)e4[f4]=252<=f4?6:248<=f4?5:240<=f4?4:224<=f4?3:192<=f4?2:1;e4[254]=e4[254]=1;
var g4=function(a){var b,c,d=a.length,e=0;for(b=0;b<d;b++){var f=a.charCodeAt(b);if(55296===(f&64512)&&b+1<d){var g=a.charCodeAt(b+1);56320===(g&64512)&&(f=65536+(f-55296<<10)+(g-56320),b++)}e+=128>f?1:2048>f?2:65536>f?3:4}var h=new d4.ne(e);for(b=c=0;c<e;b++)f=a.charCodeAt(b),55296===(f&64512)&&b+1<d&&(g=a.charCodeAt(b+1),56320===(g&64512)&&(f=65536+(f-55296<<10)+(g-56320),b++)),128>f?h[c++]=f:(2048>f?h[c++]=192|f>>>6:(65536>f?h[c++]=224|f>>>12:(h[c++]=240|f>>>18,h[c++]=128|f>>>12&63),h[c++]=128|
f>>>6&63),h[c++]=128|f&63);return h};var h4={};h4=function(a,b,c,d){var e=a&65535|0;a=a>>>16&65535|0;for(var f;0!==c;){f=2E3<c?2E3:c;c-=f;do e=e+b[d++]|0,a=a+e|0;while(--f);e%=65521;a%=65521}return e|a<<16|0};for(var i4={},j4,k4=[],l4=0;256>l4;l4++){j4=l4;for(var m4=0;8>m4;m4++)j4=j4&1?3988292384^j4>>>1:j4>>>1;k4[l4]=j4}i4=function(a,b,c,d){c=d+c;for(a^=-1;d<c;d++)a=a>>>8^k4[(a^b[d])&255];return a^-1};var n4={};n4={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"};function o4(a){for(var b=a.length;0<=--b;)a[b]=0}var p4=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],q4=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],Gea=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],r4=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],s4=Array(576);o4(s4);var t4=Array(60);o4(t4);var u4=Array(512);o4(u4);var v4=Array(256);o4(v4);var w4=Array(29);o4(w4);var x4=Array(30);o4(x4);
function y4(a,b,c,d,e){this.Wo=a;this.Hr=b;this.Gr=c;this.Dr=d;this.Vt=e;this.Nm=a&&a.length}var z4,A4,B4;function C4(a,b){this.om=a;this.wf=0;this.ie=b}function D4(a,b){a.tb[a.pending++]=b&255;a.tb[a.pending++]=b>>>8&255}function E4(a,b,c){a.Ub>16-c?(a.hc|=b<<a.Ub&65535,D4(a,a.hc),a.hc=b>>16-a.Ub,a.Ub+=c-16):(a.hc|=b<<a.Ub&65535,a.Ub+=c)}function F4(a,b,c){E4(a,c[2*b],c[2*b+1])}function G4(a,b){var c=0;do c|=a&1,a>>>=1,c<<=1;while(0<--b);return c>>>1}
function H4(a,b,c){var d=Array(16),e=0,f;for(f=1;15>=f;f++)d[f]=e=e+c[f-1]<<1;for(c=0;c<=b;c++)e=a[2*c+1],0!==e&&(a[2*c]=G4(d[e]++,e))}function I4(a){var b;for(b=0;286>b;b++)a.pc[2*b]=0;for(b=0;30>b;b++)a.xe[2*b]=0;for(b=0;19>b;b++)a.Yb[2*b]=0;a.pc[512]=1;a.Id=a.If=0;a.Lc=a.matches=0}function J4(a){8<a.Ub?D4(a,a.hc):0<a.Ub&&(a.tb[a.pending++]=a.hc);a.hc=0;a.Ub=0}function K4(a,b,c){J4(a);D4(a,c);D4(a,~c);d4.hf(a.tb,a.window,b,c,a.pending);a.pending+=c}
function L4(a,b,c,d){var e=2*b,f=2*c;return a[e]<a[f]||a[e]===a[f]&&d[b]<=d[c]}function M4(a,b,c){for(var d=a.vb[c],e=c<<1;e<=a.Ed;){e<a.Ed&&L4(b,a.vb[e+1],a.vb[e],a.depth)&&e++;if(L4(b,d,a.vb[e],a.depth))break;a.vb[c]=a.vb[e];c=e;e<<=1}a.vb[c]=d}
function N4(a,b,c){var d=0;if(0!==a.Lc){do{var e=a.tb[a.mg+2*d]<<8|a.tb[a.mg+2*d+1];var f=a.tb[a.Bj+d];d++;if(0===e)F4(a,f,b);else{var g=v4[f];F4(a,g+256+1,b);var h=p4[g];0!==h&&(f-=w4[g],E4(a,f,h));e--;g=256>e?u4[e]:u4[256+(e>>>7)];F4(a,g,c);h=q4[g];0!==h&&(e-=x4[g],E4(a,e,h))}}while(d<a.Lc)}F4(a,256,b)}
function O4(a,b){var c=b.om,d=b.ie.Wo,e=b.ie.Nm,f=b.ie.Dr,g,h=-1;a.Ed=0;a.tf=573;for(g=0;g<f;g++)0!==c[2*g]?(a.vb[++a.Ed]=h=g,a.depth[g]=0):c[2*g+1]=0;for(;2>a.Ed;){var m=a.vb[++a.Ed]=2>h?++h:0;c[2*m]=1;a.depth[m]=0;a.Id--;e&&(a.If-=d[2*m+1])}b.wf=h;for(g=a.Ed>>1;1<=g;g--)M4(a,c,g);m=f;do g=a.vb[1],a.vb[1]=a.vb[a.Ed--],M4(a,c,1),d=a.vb[1],a.vb[--a.tf]=g,a.vb[--a.tf]=d,c[2*m]=c[2*g]+c[2*d],a.depth[m]=(a.depth[g]>=a.depth[d]?a.depth[g]:a.depth[d])+1,c[2*g+1]=c[2*d+1]=m,a.vb[1]=m++,M4(a,c,1);while(2<=
a.Ed);a.vb[--a.tf]=a.vb[1];g=b.om;m=b.wf;d=b.ie.Wo;e=b.ie.Nm;f=b.ie.Hr;var q=b.ie.Gr,r=b.ie.Vt,u,A=0;for(u=0;15>=u;u++)a.xd[u]=0;g[2*a.vb[a.tf]+1]=0;for(b=a.tf+1;573>b;b++){var z=a.vb[b];u=g[2*g[2*z+1]+1]+1;u>r&&(u=r,A++);g[2*z+1]=u;if(!(z>m)){a.xd[u]++;var H=0;z>=q&&(H=f[z-q]);var O=g[2*z];a.Id+=O*(u+H);e&&(a.If+=O*(d[2*z+1]+H))}}if(0!==A){do{for(u=r-1;0===a.xd[u];)u--;a.xd[u]--;a.xd[u+1]+=2;a.xd[r]--;A-=2}while(0<A);for(u=r;0!==u;u--)for(z=a.xd[u];0!==z;)d=a.vb[--b],d>m||(g[2*d+1]!==u&&(a.Id+=(u-
g[2*d+1])*g[2*d],g[2*d+1]=u),z--)}H4(c,h,a.xd)}function P4(a,b,c){var d,e=-1,f=b[1],g=0,h=7,m=4;0===f&&(h=138,m=3);b[2*(c+1)+1]=65535;for(d=0;d<=c;d++){var q=f;f=b[2*(d+1)+1];++g<h&&q===f||(g<m?a.Yb[2*q]+=g:0!==q?(q!==e&&a.Yb[2*q]++,a.Yb[32]++):10>=g?a.Yb[34]++:a.Yb[36]++,g=0,e=q,0===f?(h=138,m=3):q===f?(h=6,m=3):(h=7,m=4))}}
function Q4(a,b,c){var d,e=-1,f=b[1],g=0,h=7,m=4;0===f&&(h=138,m=3);for(d=0;d<=c;d++){var q=f;f=b[2*(d+1)+1];if(!(++g<h&&q===f)){if(g<m){do F4(a,q,a.Yb);while(0!==--g)}else 0!==q?(q!==e&&(F4(a,q,a.Yb),g--),F4(a,16,a.Yb),E4(a,g-3,2)):10>=g?(F4(a,17,a.Yb),E4(a,g-3,3)):(F4(a,18,a.Yb),E4(a,g-11,7));g=0;e=q;0===f?(h=138,m=3):q===f?(h=6,m=3):(h=7,m=4)}}}
function Hea(a){var b=4093624447,c;for(c=0;31>=c;c++,b>>>=1)if(b&1&&0!==a.pc[2*c])return 0;if(0!==a.pc[18]||0!==a.pc[20]||0!==a.pc[26])return 1;for(c=32;256>c;c++)if(0!==a.pc[2*c])return 1;return 0}var R4=!1;function S4(a,b,c){a.tb[a.mg+2*a.Lc]=b>>>8&255;a.tb[a.mg+2*a.Lc+1]=b&255;a.tb[a.Bj+a.Lc]=c&255;a.Lc++;0===b?a.pc[2*c]++:(a.matches++,b--,a.pc[2*(v4[c]+256+1)]++,a.xe[2*(256>b?u4[b]:u4[256+(b>>>7)])]++);return a.Lc===a.Gg-1};function T4(a,b){a.msg=n4[b];return b}function U4(a){for(var b=a.length;0<=--b;)a[b]=0}function V4(a){var b=a.state,c=b.pending;c>a.Ra&&(c=a.Ra);0!==c&&(d4.hf(a.He,b.tb,b.Ng,c,a.yf),a.yf+=c,b.Ng+=c,a.Wk+=c,a.Ra-=c,b.pending-=c,0===b.pending&&(b.Ng=0))}
function W4(a,b){var c=0<=a.vc?a.vc:-1,d=a.ca-a.vc,e=0;if(0<a.level){2===a.Na.Ni&&(a.Na.Ni=Hea(a));O4(a,a.Rh);O4(a,a.xh);P4(a,a.pc,a.Rh.wf);P4(a,a.xe,a.xh.wf);O4(a,a.Yl);for(e=18;3<=e&&0===a.Yb[2*r4[e]+1];e--);a.Id+=3*(e+1)+14;var f=a.Id+3+7>>>3;var g=a.If+3+7>>>3;g<=f&&(f=g)}else f=g=d+5;if(d+4<=f&&-1!==c)E4(a,b?1:0,3),K4(a,c,d);else if(4===a.od||g===f)E4(a,2+(b?1:0),3),N4(a,s4,t4);else{E4(a,4+(b?1:0),3);c=a.Rh.wf+1;d=a.xh.wf+1;e+=1;E4(a,c-257,5);E4(a,d-1,5);E4(a,e-4,4);for(f=0;f<e;f++)E4(a,a.Yb[2*
r4[f]+1],3);Q4(a,a.pc,c-1);Q4(a,a.xe,d-1);N4(a,a.pc,a.xe)}I4(a);b&&J4(a);a.vc=a.ca;V4(a.Na)}function X4(a,b){a.tb[a.pending++]=b}function Y4(a,b){a.tb[a.pending++]=b>>>8&255;a.tb[a.pending++]=b&255}
function Z4(a,b){var c=a.an,d=a.ca,e=a.Ec,f=a.xn,g=a.ca>a.ec-262?a.ca-(a.ec-262):0,h=a.window,m=a.ke,q=a.kd,r=a.ca+258,u=h[d+e-1],A=h[d+e];a.Ec>=a.Jm&&(c>>=2);f>a.oa&&(f=a.oa);do{var z=b;if(h[z+e]===A&&h[z+e-1]===u&&h[z]===h[d]&&h[++z]===h[d+1]){d+=2;for(z++;h[++d]===h[++z]&&h[++d]===h[++z]&&h[++d]===h[++z]&&h[++d]===h[++z]&&h[++d]===h[++z]&&h[++d]===h[++z]&&h[++d]===h[++z]&&h[++d]===h[++z]&&d<r;);z=258-(r-d);d=r-258;if(z>e){a.vf=b;e=z;if(z>=f)break;u=h[d+e-1];A=h[d+e]}}}while((b=q[b&m])>g&&0!==--c);
return e<=a.oa?e:a.oa}
function $4(a){var b=a.ec,c;do{var d=a.qp-a.oa-a.ca;if(a.ca>=b+(b-262)){d4.hf(a.window,a.window,b,b,0);a.vf-=b;a.ca-=b;a.vc-=b;var e=c=a.Mh;do{var f=a.head[--e];a.head[e]=f>=b?f-b:0}while(--c);e=c=b;do f=a.kd[--e],a.kd[e]=f>=b?f-b:0;while(--c);d+=b}if(0===a.Na.fc)break;e=a.Na;c=a.window;f=a.ca+a.oa;var g=e.fc;g>d&&(g=d);0===g?c=0:(e.fc-=g,d4.hf(c,e.input,e.Fe,g,f),1===e.state.wrap?e.Ha=h4(e.Ha,c,g,f):2===e.state.wrap&&(e.Ha=i4(e.Ha,c,g,f)),e.Fe+=g,e.Ze+=g,c=g);a.oa+=c;if(3<=a.oa+a.insert)for(d=a.ca-
a.insert,a.Qa=a.window[d],a.Qa=(a.Qa<<a.Dd^a.window[d+1])&a.Cd;a.insert&&!(a.Qa=(a.Qa<<a.Dd^a.window[d+3-1])&a.Cd,a.kd[d&a.ke]=a.head[a.Qa],a.head[a.Qa]=d,d++,a.insert--,3>a.oa+a.insert););}while(262>a.oa&&0!==a.Na.fc)}
function a5(a,b){for(var c;;){if(262>a.oa){$4(a);if(262>a.oa&&0===b)return 1;if(0===a.oa)break}c=0;3<=a.oa&&(a.Qa=(a.Qa<<a.Dd^a.window[a.ca+3-1])&a.Cd,c=a.kd[a.ca&a.ke]=a.head[a.Qa],a.head[a.Qa]=a.ca);0!==c&&a.ca-c<=a.ec-262&&(a.Va=Z4(a,c));if(3<=a.Va)if(c=S4(a,a.ca-a.vf,a.Va-3),a.oa-=a.Va,a.Va<=a.Fj&&3<=a.oa){a.Va--;do a.ca++,a.Qa=(a.Qa<<a.Dd^a.window[a.ca+3-1])&a.Cd,a.kd[a.ca&a.ke]=a.head[a.Qa],a.head[a.Qa]=a.ca;while(0!==--a.Va);a.ca++}else a.ca+=a.Va,a.Va=0,a.Qa=a.window[a.ca],a.Qa=(a.Qa<<a.Dd^
a.window[a.ca+1])&a.Cd;else c=S4(a,0,a.window[a.ca]),a.oa--,a.ca++;if(c&&(W4(a,!1),0===a.Na.Ra))return 1}a.insert=2>a.ca?a.ca:2;return 4===b?(W4(a,!0),0===a.Na.Ra?3:4):a.Lc&&(W4(a,!1),0===a.Na.Ra)?1:2}
function b5(a,b){for(var c,d;;){if(262>a.oa){$4(a);if(262>a.oa&&0===b)return 1;if(0===a.oa)break}c=0;3<=a.oa&&(a.Qa=(a.Qa<<a.Dd^a.window[a.ca+3-1])&a.Cd,c=a.kd[a.ca&a.ke]=a.head[a.Qa],a.head[a.Qa]=a.ca);a.Ec=a.Va;a.Jn=a.vf;a.Va=2;0!==c&&a.Ec<a.Fj&&a.ca-c<=a.ec-262&&(a.Va=Z4(a,c),5>=a.Va&&(1===a.od||3===a.Va&&4096<a.ca-a.vf)&&(a.Va=2));if(3<=a.Ec&&a.Va<=a.Ec){d=a.ca+a.oa-3;c=S4(a,a.ca-1-a.Jn,a.Ec-3);a.oa-=a.Ec-1;a.Ec-=2;do++a.ca<=d&&(a.Qa=(a.Qa<<a.Dd^a.window[a.ca+3-1])&a.Cd,a.kd[a.ca&a.ke]=a.head[a.Qa],
a.head[a.Qa]=a.ca);while(0!==--a.Ec);a.Ee=0;a.Va=2;a.ca++;if(c&&(W4(a,!1),0===a.Na.Ra))return 1}else if(a.Ee){if((c=S4(a,0,a.window[a.ca-1]))&&W4(a,!1),a.ca++,a.oa--,0===a.Na.Ra)return 1}else a.Ee=1,a.ca++,a.oa--}a.Ee&&(S4(a,0,a.window[a.ca-1]),a.Ee=0);a.insert=2>a.ca?a.ca:2;return 4===b?(W4(a,!0),0===a.Na.Ra?3:4):a.Lc&&(W4(a,!1),0===a.Na.Ra)?1:2}
function Iea(a,b){for(var c,d,e,f=a.window;;){if(258>=a.oa){$4(a);if(258>=a.oa&&0===b)return 1;if(0===a.oa)break}a.Va=0;if(3<=a.oa&&0<a.ca&&(d=a.ca-1,c=f[d],c===f[++d]&&c===f[++d]&&c===f[++d])){for(e=a.ca+258;c===f[++d]&&c===f[++d]&&c===f[++d]&&c===f[++d]&&c===f[++d]&&c===f[++d]&&c===f[++d]&&c===f[++d]&&d<e;);a.Va=258-(e-d);a.Va>a.oa&&(a.Va=a.oa)}3<=a.Va?(c=S4(a,1,a.Va-3),a.oa-=a.Va,a.ca+=a.Va,a.Va=0):(c=S4(a,0,a.window[a.ca]),a.oa--,a.ca++);if(c&&(W4(a,!1),0===a.Na.Ra))return 1}a.insert=0;return 4===
b?(W4(a,!0),0===a.Na.Ra?3:4):a.Lc&&(W4(a,!1),0===a.Na.Ra)?1:2}function Jea(a,b){for(var c;;){if(0===a.oa&&($4(a),0===a.oa)){if(0===b)return 1;break}a.Va=0;c=S4(a,0,a.window[a.ca]);a.oa--;a.ca++;if(c&&(W4(a,!1),0===a.Na.Ra))return 1}a.insert=0;return 4===b?(W4(a,!0),0===a.Na.Ra?3:4):a.Lc&&(W4(a,!1),0===a.Na.Ra)?1:2}function c5(a,b,c,d,e){this.Js=a;this.Ut=b;this.iu=c;this.Tt=d;this.Jr=e}var d5;
d5=[new c5(0,0,0,0,function(a,b){var c=65535;for(c>a.Nc-5&&(c=a.Nc-5);;){if(1>=a.oa){$4(a);if(0===a.oa&&0===b)return 1;if(0===a.oa)break}a.ca+=a.oa;a.oa=0;var d=a.vc+c;if(0===a.ca||a.ca>=d)if(a.oa=a.ca-d,a.ca=d,W4(a,!1),0===a.Na.Ra)return 1;if(a.ca-a.vc>=a.ec-262&&(W4(a,!1),0===a.Na.Ra))return 1}a.insert=0;if(4===b)return W4(a,!0),0===a.Na.Ra?3:4;a.ca>a.vc&&W4(a,!1);return 1}),new c5(4,4,8,4,a5),new c5(4,5,16,8,a5),new c5(4,6,32,32,a5),new c5(4,4,16,16,b5),new c5(8,16,32,32,b5),new c5(8,16,128,128,
b5),new c5(8,32,128,256,b5),new c5(32,128,258,1024,b5),new c5(32,258,258,4096,b5)];
function Kea(){this.Na=null;this.status=0;this.tb=null;this.wrap=this.pending=this.Ng=this.Nc=0;this.Ga=null;this.Vc=0;this.method=8;this.uf=-1;this.ke=this.cl=this.ec=0;this.window=null;this.qp=0;this.head=this.kd=null;this.xn=this.Jm=this.od=this.level=this.Fj=this.an=this.Ec=this.oa=this.vf=this.ca=this.Ee=this.Jn=this.Va=this.vc=this.Dd=this.Cd=this.mj=this.Mh=this.Qa=0;this.pc=new d4.ud(1146);this.xe=new d4.ud(122);this.Yb=new d4.ud(78);U4(this.pc);U4(this.xe);U4(this.Yb);this.Yl=this.xh=this.Rh=
null;this.xd=new d4.ud(16);this.vb=new d4.ud(573);U4(this.vb);this.tf=this.Ed=0;this.depth=new d4.ud(573);U4(this.depth);this.Ub=this.hc=this.insert=this.matches=this.If=this.Id=this.mg=this.Lc=this.Gg=this.Bj=0}
function Lea(a,b){if(!a||!a.state||5<b||0>b)return a?T4(a,-2):-2;var c=a.state;if(!a.He||!a.input&&0!==a.fc||666===c.status&&4!==b)return T4(a,0===a.Ra?-5:-2);c.Na=a;var d=c.uf;c.uf=b;if(42===c.status)if(2===c.wrap)a.Ha=0,X4(c,31),X4(c,139),X4(c,8),c.Ga?(X4(c,(c.Ga.text?1:0)+(c.Ga.ae?2:0)+(c.Ga.Xd?4:0)+(c.Ga.name?8:0)+(c.Ga.comment?16:0)),X4(c,c.Ga.time&255),X4(c,c.Ga.time>>8&255),X4(c,c.Ga.time>>16&255),X4(c,c.Ga.time>>24&255),X4(c,9===c.level?2:2<=c.od||2>c.level?4:0),X4(c,c.Ga.os&255),c.Ga.Xd&&
c.Ga.Xd.length&&(X4(c,c.Ga.Xd.length&255),X4(c,c.Ga.Xd.length>>8&255)),c.Ga.ae&&(a.Ha=i4(a.Ha,c.tb,c.pending,0)),c.Vc=0,c.status=69):(X4(c,0),X4(c,0),X4(c,0),X4(c,0),X4(c,0),X4(c,9===c.level?2:2<=c.od||2>c.level?4:0),X4(c,3),c.status=113);else{var e=8+(c.cl-8<<4)<<8;e|=(2<=c.od||2>c.level?0:6>c.level?1:6===c.level?2:3)<<6;0!==c.ca&&(e|=32);c.status=113;Y4(c,e+(31-e%31));0!==c.ca&&(Y4(c,a.Ha>>>16),Y4(c,a.Ha&65535));a.Ha=1}if(69===c.status)if(c.Ga.Xd){for(e=c.pending;c.Vc<(c.Ga.Xd.length&65535)&&(c.pending!==
c.Nc||(c.Ga.ae&&c.pending>e&&(a.Ha=i4(a.Ha,c.tb,c.pending-e,e)),V4(a),e=c.pending,c.pending!==c.Nc));)X4(c,c.Ga.Xd[c.Vc]&255),c.Vc++;c.Ga.ae&&c.pending>e&&(a.Ha=i4(a.Ha,c.tb,c.pending-e,e));c.Vc===c.Ga.Xd.length&&(c.Vc=0,c.status=73)}else c.status=73;if(73===c.status)if(c.Ga.name){e=c.pending;do{if(c.pending===c.Nc&&(c.Ga.ae&&c.pending>e&&(a.Ha=i4(a.Ha,c.tb,c.pending-e,e)),V4(a),e=c.pending,c.pending===c.Nc)){var f=1;break}f=c.Vc<c.Ga.name.length?c.Ga.name.charCodeAt(c.Vc++)&255:0;X4(c,f)}while(0!==
f);c.Ga.ae&&c.pending>e&&(a.Ha=i4(a.Ha,c.tb,c.pending-e,e));0===f&&(c.Vc=0,c.status=91)}else c.status=91;if(91===c.status)if(c.Ga.comment){e=c.pending;do{if(c.pending===c.Nc&&(c.Ga.ae&&c.pending>e&&(a.Ha=i4(a.Ha,c.tb,c.pending-e,e)),V4(a),e=c.pending,c.pending===c.Nc)){f=1;break}f=c.Vc<c.Ga.comment.length?c.Ga.comment.charCodeAt(c.Vc++)&255:0;X4(c,f)}while(0!==f);c.Ga.ae&&c.pending>e&&(a.Ha=i4(a.Ha,c.tb,c.pending-e,e));0===f&&(c.status=103)}else c.status=103;103===c.status&&(c.Ga.ae?(c.pending+2>
c.Nc&&V4(a),c.pending+2<=c.Nc&&(X4(c,a.Ha&255),X4(c,a.Ha>>8&255),a.Ha=0,c.status=113)):c.status=113);if(0!==c.pending){if(V4(a),0===a.Ra)return c.uf=-1,0}else if(0===a.fc&&(b<<1)-(4<b?9:0)<=(d<<1)-(4<d?9:0)&&4!==b)return T4(a,-5);if(666===c.status&&0!==a.fc)return T4(a,-5);if(0!==a.fc||0!==c.oa||0!==b&&666!==c.status){d=2===c.od?Jea(c,b):3===c.od?Iea(c,b):d5[c.level].Jr(c,b);if(3===d||4===d)c.status=666;if(1===d||3===d)return 0===a.Ra&&(c.uf=-1),0;if(2===d&&(1===b?(E4(c,2,3),F4(c,256,s4),16===c.Ub?
(D4(c,c.hc),c.hc=0,c.Ub=0):8<=c.Ub&&(c.tb[c.pending++]=c.hc&255,c.hc>>=8,c.Ub-=8)):5!==b&&(E4(c,0,3),K4(c,0,0),3===b&&(U4(c.head),0===c.oa&&(c.ca=0,c.vc=0,c.insert=0))),V4(a),0===a.Ra))return c.uf=-1,0}if(4!==b)return 0;if(0>=c.wrap)return 1;2===c.wrap?(X4(c,a.Ha&255),X4(c,a.Ha>>8&255),X4(c,a.Ha>>16&255),X4(c,a.Ha>>24&255),X4(c,a.Ze&255),X4(c,a.Ze>>8&255),X4(c,a.Ze>>16&255),X4(c,a.Ze>>24&255)):(Y4(c,a.Ha>>>16),Y4(c,a.Ha&65535));V4(a);0<c.wrap&&(c.wrap=-c.wrap);return 0!==c.pending?0:1};var e5={};e5=function(){this.input=null;this.Ze=this.fc=this.Fe=0;this.He=null;this.Wk=this.Ra=this.yf=0;this.msg="";this.state=null;this.Ni=2;this.Ha=0};var f5=Object.prototype.toString;
function g5(a){if(!(this instanceof g5))return new g5(a);a=this.options=d4.assign({level:-1,method:8,ur:16384,le:15,Xt:8,od:0,ap:""},a||{});a.raw&&0<a.le?a.le=-a.le:a.Os&&0<a.le&&16>a.le&&(a.le+=16);this.ye=0;this.msg="";this.ended=!1;this.lg=[];this.Na=new e5;this.Na.Ra=0;var b=this.Na;var c=a.level,d=a.method,e=a.le,f=a.Xt,g=a.od;if(b){var h=1;-1===c&&(c=6);0>e?(h=0,e=-e):15<e&&(h=2,e-=16);if(1>f||9<f||8!==d||8>e||15<e||0>c||9<c||0>g||4<g)b=T4(b,-2);else{8===e&&(e=9);var m=new Kea;b.state=m;m.Na=
b;m.wrap=h;m.Ga=null;m.cl=e;m.ec=1<<m.cl;m.ke=m.ec-1;m.mj=f+7;m.Mh=1<<m.mj;m.Cd=m.Mh-1;m.Dd=~~((m.mj+3-1)/3);m.window=new d4.ne(2*m.ec);m.head=new d4.ud(m.Mh);m.kd=new d4.ud(m.ec);m.Gg=1<<f+6;m.Nc=4*m.Gg;m.tb=new d4.ne(m.Nc);m.mg=1*m.Gg;m.Bj=3*m.Gg;m.level=c;m.od=g;m.method=d;if(b&&b.state){b.Ze=b.Wk=0;b.Ni=2;c=b.state;c.pending=0;c.Ng=0;0>c.wrap&&(c.wrap=-c.wrap);c.status=c.wrap?42:113;b.Ha=2===c.wrap?0:1;c.uf=0;if(!R4){d=Array(16);for(f=g=0;28>f;f++)for(w4[f]=g,e=0;e<1<<p4[f];e++)v4[g++]=f;v4[g-
1]=f;for(f=g=0;16>f;f++)for(x4[f]=g,e=0;e<1<<q4[f];e++)u4[g++]=f;for(g>>=7;30>f;f++)for(x4[f]=g<<7,e=0;e<1<<q4[f]-7;e++)u4[256+g++]=f;for(e=0;15>=e;e++)d[e]=0;for(e=0;143>=e;)s4[2*e+1]=8,e++,d[8]++;for(;255>=e;)s4[2*e+1]=9,e++,d[9]++;for(;279>=e;)s4[2*e+1]=7,e++,d[7]++;for(;287>=e;)s4[2*e+1]=8,e++,d[8]++;H4(s4,287,d);for(e=0;30>e;e++)t4[2*e+1]=5,t4[2*e]=G4(e,5);z4=new y4(s4,p4,257,286,15);A4=new y4(t4,q4,0,30,15);B4=new y4([],Gea,0,19,7);R4=!0}c.Rh=new C4(c.pc,z4);c.xh=new C4(c.xe,A4);c.Yl=new C4(c.Yb,
B4);c.hc=0;c.Ub=0;I4(c);c=0}else c=T4(b,-2);0===c&&(b=b.state,b.qp=2*b.ec,U4(b.head),b.Fj=d5[b.level].Ut,b.Jm=d5[b.level].Js,b.xn=d5[b.level].iu,b.an=d5[b.level].Tt,b.ca=0,b.vc=0,b.oa=0,b.insert=0,b.Va=b.Ec=2,b.Ee=0,b.Qa=0);b=c}}else b=-2;if(0!==b)throw Error(n4[b]);a.Ct&&(b=this.Na)&&b.state&&2===b.state.wrap&&(b.state.Ga=a.Ct);if(a.og){var q;"string"===typeof a.og?q=g4(a.og):"[object ArrayBuffer]"===f5.call(a.og)?q=new Uint8Array(a.og):q=a.og;a=this.Na;f=q;g=f.length;if(a&&a.state)if(q=a.state,
b=q.wrap,2===b||1===b&&42!==q.status||q.oa)b=-2;else{1===b&&(a.Ha=h4(a.Ha,f,g,0));q.wrap=0;g>=q.ec&&(0===b&&(U4(q.head),q.ca=0,q.vc=0,q.insert=0),c=new d4.ne(q.ec),d4.hf(c,f,g-q.ec,q.ec,0),f=c,g=q.ec);c=a.fc;d=a.Fe;e=a.input;a.fc=g;a.Fe=0;a.input=f;for($4(q);3<=q.oa;){f=q.ca;g=q.oa-2;do q.Qa=(q.Qa<<q.Dd^q.window[f+3-1])&q.Cd,q.kd[f&q.ke]=q.head[q.Qa],q.head[q.Qa]=f,f++;while(--g);q.ca=f;q.oa=2;$4(q)}q.ca+=q.oa;q.vc=q.ca;q.insert=q.oa;q.oa=0;q.Va=q.Ec=2;q.Ee=0;a.Fe=d;a.input=e;a.fc=c;q.wrap=b;b=0}else b=
-2;if(0!==b)throw Error(n4[b]);this.MK=!0}}
g5.prototype.push=function(a,b){var c=this.Na,d=this.options.ur;if(this.ended)return!1;var e=b===~~b?b:!0===b?4:0;"string"===typeof a?c.input=g4(a):"[object ArrayBuffer]"===f5.call(a)?c.input=new Uint8Array(a):c.input=a;c.Fe=0;c.fc=c.input.length;do{0===c.Ra&&(c.He=new d4.ne(d),c.yf=0,c.Ra=d);a=Lea(c,e);if(1!==a&&0!==a)return h5(this,a),this.ended=!0,!1;if(0===c.Ra||0===c.fc&&(4===e||2===e))if("string"===this.options.ap){var f=d4.Mk(c.He,c.yf);b=f;f=f.length;if(65537>f&&(b.subarray||!b.subarray))b=
String.fromCharCode.apply(null,d4.Mk(b,f));else{for(var g="",h=0;h<f;h++)g+=String.fromCharCode(b[h]);b=g}this.lg.push(b)}else b=d4.Mk(c.He,c.yf),this.lg.push(b)}while((0<c.fc||0===c.Ra)&&1!==a);if(4===e)return(c=this.Na)&&c.state?(d=c.state.status,42!==d&&69!==d&&73!==d&&91!==d&&103!==d&&113!==d&&666!==d?a=T4(c,-2):(c.state=null,a=113===d?T4(c,-3):0)):a=-2,h5(this,a),this.ended=!0,0===a;2===e&&(h5(this,0),c.Ra=0);return!0};
var h5=function(a,b){0===b&&(a.result="string"===a.options.ap?a.lg.join(""):d4.sm(a.lg));a.lg=[];a.ye=b;a.msg=a.Na.msg};function Mea(a){var b={};b=b||{};b.Os=!0;b=new g5(b);b.push(a,!0);if(b.ye)throw b.msg||n4[b.ye];return b.result};var i5=function(){};i5.prototype.g=function(a){return Promise.resolve(Mea(Uint8Array.from(fk(a))))};i5.prototype.be=function(){try{return!!Uint8Array.from}catch(a){return!1}};var j5=function(){this.h=new i5};j5.prototype.g=function(a){1024<=4*a.length&&j2()?(Uint8Array.from(fk(a)),a=i2()):a=this.h.g(a);return a};j5.prototype.be=function(a){return 1024<=a&&j2()||this.h.be(a)};function k5(){}B(k5,a4);k5.prototype.init=c4();k5.prototype.Og=c4();k5.prototype.Pg=c4();Zf("realtime.util.GlobalJspbRegistry");var Nea=new Set,Oea=new Set,l5=null,Pea=function(a){if(!l5){for(var b=n(Nea),c=b.next();!c.done;c=b.next())a(5959,c.value);b=n(Oea);for(c=b.next();!c.done;c=b.next())a(5960,c.value)}l5=a};var m5=function(a,b,c){xv.call(this);var d=this;this.m=new vA(300);this.u=new vA(300);this.o="";this.h=[];$R(this,{recentImpressions:function(){return d.m.Ma()},roboHippoImpressions:function(){return d.u.Ma()}});this.D=new Set;this.l=Qea(c);null!=b&&Rea(this,b);this.ng||(this.ng=yea(this),this.j||(this.j=Cea));this.ng.init(a)};t(m5,xv);
var Qea=function(a){var b=window.location.pathname,c=window.location.search;a||(b=(b=/\/u\/(\d+)\/?/.exec(b))&&b[1],a=(c=/[\?&]authuser=(\d+)/.exec(c))&&c[1]||b||"0");c=new PT(50,a);c.o=new j5;c.X=!0;NT(c,18E4);return c},Sea=function(a){var b=function(c,d){var e=new m5(c);Pea(function(f,g){e.Y(f,{Zb:g})});c.registerService(d,e);return e};sK(a,MK)||HK(a,MK,function(c){return b(c,NK)});sK(a,NK)||HK(a,NK,function(c){return b(c,MK)})},n5=function(a){var b=new eK;fM(b);mB(Q(b,kB,5),jM());N(Q(b,kB,5),3,
1);a.ng.Og(b);a.h.forEach(function(c){return c.Og(b)});return b},Rea=function(a,b){b.then(function(c){null!=c&&(this.l.l=c)},void 0,a)};
m5.prototype.Y=function(a,b){b=void 0===b?{}:b;var c=n5(this);var d=new VJ;d=N(d,1,a);var e=eM(c);S(e,8,d);if(b.sessionId){var f=gM(c);N(f,2,b.sessionId)}b.Dc&&(f=gM(c),N(f,5,b.Dc));b.hb&&(f=gM(c),N(f,3,b.hb));b.Jc&&(f=hM(d),N(f,2,b.Jc));b.Zb&&(f=hM(d),N(f,1,b.Zb));b.fr&&S(e,16,b.fr);b.ax&&S(e,18,b.ax);b.Zw&&S(e,17,b.Zw);b.lo&&(d=hM(d),S(d,6,b.lo));b.Wt&&(d=gM(c),N(d,16,b.Wt));d=fK[a];1!=d&&(e=Date.now(),e=new Date(e),e=(new $L).format(e),e==this.o?f=a+"@":(f=a+"@"+e,this.o=e),this.m.add(f),Tea.has(a)&&
this.u.add(f));o5(this,c,a,b.timestamp);8<=d&&this.N("qa")};m5.prototype.g=function(a,b){this.D.has(a)||(this.Y(a,b),this.D.add(a))};var qX=function(a,b){var c=n5(a),d=eM(c);S(d,14,b);o5(a,c)},o5=function(a,b,c,d){a.ng.Pg(b);a.h.forEach(function(f){return f.Pg(b)});var e=BT(new AT,b.va());c&&N(e,11,c);d&&N(e,1,d.toString());a.l.log(e)},aN=function(a,b){a.h.includes(b)||a.h.push(b)};k5.Db||B(k5,a4);m5.Ud=k5;var p5=m5;do p5=b4(p5);while(p5!==Object&&!p5.Ud);
if(p5!==Object&&p5.Ud!==b4(k5))throw Error("delegate base must derive from superclass delegate base");var Tea=new Set([4179,4202,4208,4209,4213,4223,4354,4461,4463,4475,4479,4554,4557]);var q5=function(a){T.call(this);var b=this;this.F=new vA(10);this.u=a&&uK(a,MK);this.g=a&&uK(a,NK);this.l=new bU("realtime.analytics.networkmonitoring.RequestResponseMonitor");this.h=null;a&&uK(a,PK).then(function(c){b.h=c});this.j=0;this.m=new qL(this);this.o=this.m.signal();this.g&&this.g.then(function(c){return c.Y(6660)})};t(q5,T);var Uea=function(a){sK(a,lU)||HK(a,lU,function(b){return new q5(b)})},Vea=l("HTTP Request [;] ; ; (deadline=;ms, remainingRetries=;)".split(";"));
q5.prototype.onRequest=function(a){this.l.info(Vea,a.h,a.L,a.C,a.g?a.g.g:null,null!=a.j?a.j:0)};var Wea=l(["HTTP Response [","] ",""]);
q5.prototype.D=function(a,b){this.l.info(Wea,a.h,b.gd);var c={Ue:a.m,Df:Va(),response:b};a.o.unshift(c);c=r5(a);s5(this,"VCichb",c);c=AM(a);var d=a.m,e=Va();t5(this,c,840,d,841,e);c=AM(a);d=u5(a);e=Va();t5(this,c,843,d,844,e);this.h&&(c=(c=b instanceof wM?b.response:b)&&c.extraData)&&(a=AM(a),a=v5[a]?v5[a]:a.includes("media_sessions")?3:a.includes("media_streams")?4:a.includes("hangouts/bulk")?5:9,d=c.cw||0,e=TT(this.h,a),e.o++,e.C+=d,e.h+=d,b=!(b instanceof wM),c=c.Cu||0,a=TT(this.h,a),b?a.u++:a.m++,
a.l+=c,a.g+=c);this.j&&(this.j=0,this.m.W(this.o,0))};var Xea=l(["HTTP Error [","] "," "," (httpStatusCode=",")"]);
q5.prototype.onError=function(a,b){this.l.Ta(Xea,a.h,b.status,b.Yc,b.g);var c={Ue:a.m,Df:Va(),response:b};a.o.unshift(c);c=AM(a);var d=a.m,e=Va();t5(this,c,840,d,842,e);if("retry"!=b.status||0==(null!=a.j?a.j:0))Yea.has(b.Yc),this.F.add({sendTimestamp:a.m,receiveTimestamp:Va(),name:AM(a),req:Zea(a),resp:w5(b),attemptsHistory:$ea(a.o)}),b=r5(a),s5(this,"oZuDyc",b),b=AM(a),a=u5(a),c=Va(),t5(this,b,843,a,845,c),this.j++,this.m.W(this.o,this.j)};
q5.prototype.search=function(a,b){b=void 0===b?10:b;b=0>b?10:b;var c=this.F.Ma().filter(function(d){return 0<=a.indexOf(d.resp.code)});return c.slice(-Math.min(c.length,b))};
var s5=function(a,b,c){a.g&&a.g.then(function(d){return d.Y(afa[b],{lo:c})})},t5=function(a,b,c,d,e,f){if(a.u){var g=new zR([bfa[b]||26]);AR(g,c,d);AR(g,e,f);a.u.then(function(h){return qX(h,BR(g))})}},u5=function(a){var b=a.o;return 0<b.length?b[b.length-1].Ue:a.m},Zea=function(a){return{name:(a.u||"")+a.C,body:Fs(x5(a.M)),head:null==a.J?{}:a.J,httpMethod:a.L,remainRetries:null!=a.j?a.j:0}},w5=function(a){var b=a instanceof wM?a.response:a;b={code:b&&b.gd,body:b&&Fs(b.Fb),head:b&&b.headers};a instanceof
wM&&(b.code=a.g,b.status=a.status,b.errorType=a.Yc);return b},$ea=function(a){var b=[];Hb(a,function(c){var d=w5(c.response);b.push({Ue:(new Date(c.Ue)).toString(),Df:(new Date(c.Df)).toString(),response:d})});return b},x5=function(a){if(a){if("function"===typeof a.va)return JSON.parse(a.va());if(La(a))return Mb(a,function(b){return x5(b)})}return a},r5=function(a){var b=new UJ,c=a.o;N(b,1,AM(a));N(b,2,c.length);var d=[];c.forEach(function(e){e=e.response instanceof wM?e.response.g:e.response.gd;
var f=new SJ;Fc(Ku,e)?N(f,1,e):N(f,2,cfa[e||-1]||1);d.push(f)});Cl(b,3,d);return b},y5={},afa=(y5.VCichb=4630,y5.oZuDyc=4631,y5),bfa={"hangouts/bulk":27,"hangouts/ping":28,"media_sessions/add":29,"media_sessions/query":30,"media_sessions/modify":31,"media_sessions/log":32,"media_sessions/callperf":33,"media_streams/search":34,"media_streams/add":35,"media_streams/modify":36},z5={},cfa=(z5[0]=0,z5[1]=2,z5[2]=3,z5[3]=4,z5[4]=5,z5[5]=6,z5[6]=7,z5[7]=8,z5[8]=9,z5[9]=10,z5),v5={"media_sessions/callperf":1,
"media_sessions/query":2},Yea=new Set("backend bad_request network_or_frontend request_queuing response_callback response_decoding response_format processing internal_server_error service_unavailable not_found".split(" "));var dfa=function(){this.g=null;this.j=jt();this.h=this.j.fa},efa=function(a){sK(a,OK)||HK(a,OK,function(b){var c=new dfa;uK(b,MK).then(function(d){aN(d,new A5(c))});return c})},A5=function(a){this.g=a};A5.prototype.Og=function(a){var b=this.g.g;null!=b&&(a=gM(a),N(a,5,b))};A5.prototype.Pg=function(){};var C5=function(){T.call(this);this.g=new B5};t(C5,T);var B5=function(){this.g=0;for(this.h=new vA(3);3>this.h.ya();)this.h.add(0)};B5.prototype.update=function(a){var b=this.h.add(a),c=this.h.ya();void 0!=b?(this.g+=(a-b)/c,this.g=0<=this.g?this.g:0):this.g=(this.g*(c-1)+a)/c;return this.g};B5.prototype.get=function(){return this.g};var F5=function(a){QM.call(this);var b=this;this.G=a;this.m=new Map;this.u=new Map;this.j=[];this.J=new Map;this.V=new Map;this.D=!1;this.g=new D5;this.l=new D5;this.H=new W;this.T(this.H);this.L=function(c){E5(b,c)};this.h=1;this.s=new bU("realtime.media.audio.service.AudioVolumeService");this.o=null};t(F5,QM);
var ffa=l(["Register participant ",""]),gfa=function(a,b){var c=E5(a,new U("",b));a.H.listen(b,["Ja","La"],a.L);a.s.info(ffa,c)},ifa=function(a,b){a.g.reset();a.l.reset();a.u.forEach(function(c,d){var e=b.has(c)?b.get(c).volume:0;if(a.h&1){var f=a.m.get(d).g.update(e);if(a.g.l<f){var g=a.g;g.j=d;g.l=f}}a.h&2&&(a.J.set(d,e),b.has(c)&&b.get(c).Sh&&(c=a.l,c.j=d,c.l=e))});hfa(a)},jfa=l(["Use backend loudest info."]),uaa=function(a){a.h|=2;JU(a.G);uK(a.G,IU).then(function(b){a.o=b});a.s.info(jfa)},hfa=
function(a){a.D||(Av(a.X,0,a),a.D=!0)},kfa=l(["Stream updated: id: "," oldSsrc: "," newSsrc: ",""]),E5=function(a,b){b=b.target;var c=lfa(b);if(null!=c){a.h&1&&(a.m.has(c)||a.m.set(c,new C5));a.h&2&&a.J.set(c,0);var d=a.u.get(c)||null,e=mfa(b);null!=e&&a.u.set(c,e);e!==d&&a.s.g(kfa,c,d,e);d=a.j.find(function(f){return f.Af===c});d||(d={Af:c,Qh:Va(),muted:!1,ce:null},a.j.push(d));d.muted=nfa(b)}return c};
F5.prototype.X=function(){this.D=!1;ofa(this);if(this.h&1){var a=this.g.g;a=a&&this.m.has(a)?this.m.get(a).g.get():null;(null==a||null===this.g.h||this.g.h!==this.g.j||.6<=this.g.l-a)&&G5(this,this.g)}this.h&2&&G5(this,this.l)};
var pfa=l(["Backend new speaking participant: ",""]),qfa=l(["Client new speaking participant: ",""]),G5=function(a,b){if(b.g!==b.h){b.g=b.h;var c=b.g?a.u.get(b.g)||null:null;a.h&2?b===a.l?(a.s.info(pfa,b.g),a.N(new H5(b.g)),a.o&&c&&MU(a.o,c)):a.o&&c&&NU(a.o,c):(a.s.info(qfa,b.g),a.N(new H5(b.g)));b.g&&(c=a.j.find(function(d){return d.Af===b.g}),c.ce=Va(),a.V.set(c.Af,c.ce))}},lfa=function(a){return(a=a.g||null)?a.Z():null},mfa=function(a){a=(a=(a=a.g||null)&&a.Ia()?a.Ia().getInfo():null)?a.eb():[];
return 0<a.length?a[0]:null},nfa=function(a){return(a=(a=a.g||null)&&a.Ia()?a.Ia().getInfo():null)?a.qc():!1},ofa=function(a){if(a.h&1){var b=a.g.j;0!==a.j.length&&a.j.every(function(d){return d.muted})&&(a.j.sort(I5),b=a.j[0].Af);a.g.h=b}if(a.h&2){var c=a.l.j;0===a.j.length||c||(a.j.sort(I5),a.j.some(function(d){a.u.has(d.Af)&&(c=d.Af);return!!c}));a.l.h=c}},rfa=function(a){sK(a,RK)||HK(a,RK,function(b){return new F5(b)})},H5=function(a){U.call(this,"db");this.ha=a};t(H5,U);
var I5=function(a,b){return a.ce&&b.ce?-hc(a.ce,b.ce)||hc(a.Qh,b.Qh):a.ce?-1:b.ce?1:hc(a.Qh,b.Qh)},D5=function(){this.j=null;this.l=-1;this.g=this.h=null};D5.prototype.reset=function(){this.j=null;this.l=-1;this.h=null};var J5=function(a){K(this,a,0,-1,null,null)};B(J5,J);J5.prototype.Z=function(){return M(this,1,"")};var K5=function(a,b){return N(a,1,b)};k=J5.prototype;k.Fm=function(){return M(this,32,"")};k.gi=function(a){return N(this,32,a)};k.At=function(){return null!=L(this,32)};k.getName=function(){return M(this,29,"")};k.nk=function(a){return N(this,29,a)};k.kv=function(){return null!=L(this,29)};k.dv=function(){return M(this,38,"")};k.mk=function(a){return N(this,38,a)};
k.jv=function(){return null!=L(this,38)};k.bv=function(){return M(this,2,"")};k.kk=function(a){return N(this,2,a)};k.gv=function(){return null!=L(this,2)};k.cv=function(){return M(this,3,0)};k.lk=function(a){return N(this,3,a)};k.hv=function(){return null!=L(this,3)};k.fv=function(){return M(this,28,0)};k.Xh=function(a){return N(this,28,a)};k.zt=function(){return null!=L(this,28)};k.bs=function(){return ul(this,5,!1)};k.ei=function(a){return N(this,5,a)};k.at=function(){return null!=L(this,5)};
k.cj=function(){return ul(this,6,!1)};k.Bo=function(a){return N(this,6,a)};k.Lm=function(){return null!=L(this,6)};k.Wr=function(){return ul(this,33,!1)};k.yo=function(a){return N(this,33,a)};k.Ws=function(){return null!=L(this,33)};k.gs=function(){return M(this,40,"")};k.Eo=function(a){return N(this,40,a)};k.jt=function(){return null!=L(this,40)};k.es=function(){return ul(this,17,!1)};k.Co=function(a){return N(this,17,a)};k.ht=function(){return null!=L(this,17)};
k.Xr=function(){return ul(this,34,!1)};k.zo=function(a){return N(this,34,a)};k.Xs=function(){return null!=L(this,34)};k.Zr=function(){return ul(this,4,!1)};k.di=function(a){return N(this,4,a)};k.Zs=function(){return null!=L(this,4)};k.cs=function(){return ul(this,7,!1)};k.Gk=function(a){return N(this,7,a)};k.bt=function(){return null!=L(this,7)};k.ev=function(){return ul(this,12,!1)};k.Qg=function(a){return N(this,12,a)};k.Mm=function(){return null!=L(this,12)};k.zm=function(){return ul(this,13,!1)};
k.Ve=function(a){return N(this,13,a)};k.dt=function(){return null!=L(this,13)};k.ds=function(){return ul(this,10,!1)};k.tw=function(a){return N(this,10,a)};k.ct=function(){return null!=L(this,10)};k.Am=function(){return ul(this,14,!1)};k.Hk=function(a){return N(this,14,a)};k.et=function(){return null!=L(this,14)};k.Bm=function(){return ul(this,15,!1)};k.Ff=function(a){return N(this,15,a)};k.ft=function(){return null!=L(this,15)};k.Cm=function(){return ul(this,16,!1)};
k.fi=function(a){return N(this,16,a)};k.gt=function(){return null!=L(this,16)};k.jk=function(){return vl(this,35)};k.Uo=function(a){return N(this,35,a)};k.Bt=function(){return null!=L(this,35)};k.fs=function(){return M(this,36,0)};k.Do=function(a){return N(this,36,a)};k.it=function(){return null!=L(this,36)};k.Yr=function(){return ul(this,37,!1)};k.Ao=function(a){return N(this,37,a)};k.Ys=function(){return null!=L(this,37)};k.Pn=function(){return M(this,30,0)};k.pk=function(a){return N(this,30,a)};
k.lv=function(){return null!=L(this,30)};var N5=function(a,b,c,d,e,f){W.call(this);var g=this;this.j=c;this.g=new Map;this.h=null;this.l=d;Promise.all([e,a,f]).then(function(h){h=n(h);var m=h.next().value,q=h.next().value,r=h.next().value;if(!g.C()){b.h.attach(function(A){A=A.ha;L5(g,A,q.Ce(A),m,r)});b.Xc.attach(function(A){A=A.ha;var z=g.g.get(A);z&&(Cs(z),g.g.delete(A))},g);h=n(b.getAll());for(var u=h.next();!u.done;u=h.next())u=u.value.ha,L5(g,u,q.Ce(u),m,r);g.listen(q,"Q",function(A){var z=A.ha;A=A.Pk;b.get(z)&&L5(g,z,A,m,r)});g.listen(q,
"R",function(A){A=A.ha;b.get(A)&&L5(g,A,null,m,r)});g.listen(r,"db",function(A){A=A.ha;g.h!==A&&(M5(g,g.h,!1),g.h=A,M5(g,g.h,!0))})}})};t(N5,W);var M5=function(a,b,c){b&&a.g.get(b)&&a.j.W(K5(new J5,b).Ao(c))},L5=function(a,b,c,d,e){var f=a.g.get(b);if(f){if(f.Pk===c)return;Cs(f);a.g.delete(b)}c&&(a.g.set(b,new O5(b,c,a.j,a.l,d,e)),a.h===b&&M5(a,b,!0))};N5.prototype.ba=function(){W.prototype.ba.call(this);for(var a=n(this.g.values()),b=a.next();!b.done;b=a.next())Cs(b.value);this.g.clear()};
var O5=function(a,b,c,d,e,f){T.call(this);this.Pk=b;P5(this,b.l,function(g,h){g=K5(new J5,a).Co("li"!==g).zo("en"!==g);switch(h){case "ca":g.Qg(!1);break;case "sc":g.Qg(!0)}c.W(g)});P5(this,b.j,function(g){c.W(K5(new J5,a).Bo("li"!==g).ei("li"===g).yo("en"!==g))});b=Jaa(d);Baa(b,e,a);this.T(b);CL(b.u,function(g){g=g.bl;c.W(K5(new J5,a).Uo(g))},this);gfa(f,b)};t(O5,T);
var P5=function(a,b,c){var d,e=null;CL(b,function(f){e!==f&&(e&&e.Cc.detach(d),(e=f)?d=CL(e.Cc,function(g){return c(g.state,g.content)},a):c("en","un"))},a)};var Y=J5.prototype,R5=function(a,b,c){T.call(this);var d=this;this.controller=c;this.h=new J5;this.g=new qL(this);this.o=sL(this.g);this.jc=this.g.signal();this.j=sL(this.g);this.Xc=sL(this.g);this.Da=sL(this.g);this.na=sL(this.g);this.X=sL(this.g);this.ga=sL(this.g);this.xa=sL(this.g);this.L=sL(this.g);this.V=sL(this.g);this.pa=sL(this.g);this.Fa=sL(this.g);this.ua=sL(this.g);this.ta=sL(this.g);this.D=sL(this.g);this.F=sL(this.g);this.J=sL(this.g);this.Cc=sL(this.g);this.u=sL(this.g);this.M=[U0({has:Y.At,
get:Y.Fm,set:Y.gi}),U0({has:Y.Zs,get:Y.Zr,set:Y.di}),U0({has:Y.bt,get:Y.cs,set:Y.Gk}),U0({has:Y.ct,get:Y.ds,set:Y.tw}),U0({has:Y.et,get:Y.Am,set:Y.Hk}),U0({has:Y.ft,get:Y.Bm,set:Y.Ff}),U0({has:Y.gt,get:Y.Cm,set:Y.fi}),U0({has:Y.kv,get:Y.getName,set:Y.nk,signal:this.Da}),U0({has:Y.jv,get:Y.dv,set:Y.mk,signal:this.na}),U0({has:Y.gv,get:Y.bv,set:Y.kk,signal:this.X}),U0({has:Y.hv,get:Y.cv,set:Y.lk,signal:this.ga}),U0({has:Y.zt,get:Y.fv,set:Y.Xh,signal:this.xa}),U0({has:Y.at,get:Y.bs,set:Y.ei,signal:this.L}),
U0({has:Y.Lm,get:Y.cj,set:Y.Bo,signal:this.V}),U0({has:Y.Ws,get:Y.Wr,set:Y.yo,signal:this.pa}),U0({has:Y.jt,get:Y.gs,set:Y.Eo}),U0({has:Y.ht,get:Y.es,set:Y.Co,signal:this.Fa}),U0({has:Y.Xs,get:Y.Xr,set:Y.zo,signal:this.ua}),U0({has:Y.Mm,get:Y.ev,set:Y.Qg,signal:this.ta}),U0({has:Y.dt,get:Y.zm,set:Y.Ve,signal:this.D}),U0({has:Y.Ys,get:Y.Yr,set:Y.Ao,signal:this.F}),U0({has:Y.Bt,get:Y.jk,set:Y.Uo,signal:this.J}),U0({has:Y.it,get:Y.fs,set:Y.Do}),U0({has:Y.lv,get:Y.Pn,set:Y.pk,signal:this.Cc})];K5(this.h,
a.Z());Q5(this,a);b(function(e){return Q5(d,e)})};t(R5,T);R5.prototype.ba=function(){5===this.state&&this.g.W(this.j,void 0);this.g.W(this.Xc,void 0);T.prototype.ba.call(this)};var Q5=function(a,b){var c=5===a.state,d=6===a.state,e=new yL(a.g),f=T0(a.h,b,a.M,e);N(a.h,8,a.l||a.m);b.Lm()&&!b.cj()&&N(a.h,40,void 0);0<b.jk()&&a.h.Do(Date.now());b=5===a.state;c!==b&&e.add(b?a.o:a.j,void 0);f&&e.add(a.jc,void 0);c=6===a.state;d!==c&&e.add(a.u,c);e.W();return f};k=R5.prototype;k.yk=function(){return this.controller.yk(this.ha)};
k.zk=function(){return this.controller.zk(this.ha)};k.Vi=function(){return this.controller.Vi(this.ha)};k.accept=function(){return 6!==this.state?Promise.reject("Not a knocking participant."):this.controller.accept(this.ha)};k.Qi=function(){return 6!==this.state?Promise.reject("Not a knocking participant."):this.controller.Qi(this.ha)};k.za=function(){return{lastVolume:this.bl}};
da.Object.defineProperties(R5.prototype,{ha:{configurable:!0,enumerable:!0,get:function(){return this.h.Z()}},Ca:{configurable:!0,enumerable:!0,get:function(){return this.h.Fm()||null}},isLocal:{configurable:!0,enumerable:!0,get:function(){return ul(this.h,8,!1)}},l:{configurable:!0,enumerable:!0,get:function(){return this.h.Bm()}},m:{configurable:!0,enumerable:!0,get:function(){return this.h.Cm()}},name:{configurable:!0,enumerable:!0,get:function(){return this.h.getName()||null}},G:{configurable:!0,
enumerable:!0,get:function(){return!!this.h.cj()}},H:{configurable:!0,enumerable:!0,get:function(){return this.h.zm()}},state:{configurable:!0,enumerable:!0,get:function(){return this.h.Pn()}},bl:{configurable:!0,enumerable:!0,get:function(){return this.h.jk()}}});var vfa=function(a){var b=this;this.ib=a;this.g=new vA(200);this.h=0;sfa(this);$R(a,{participantCountHistory:function(){return b.g.Ma()},participantCountMax:function(){return b.h},presenterParticipant:function(){return tfa(b)},remoteUserAllMuted:function(){return ufa(b)}})},sfa=function(a){var b=a.ib;b=n([b.h,b.l,b.jc,b.m,b.Xc]);for(var c=b.next();!c.done;c=b.next())c.value.attach(function(){var d=S5(a.ib).length;var e=a.g;e=0==e.ya()?null:e.get(e.ya()-1);e&&e[1]===d||(a.g.add([X(),d]),a.h=Math.max(a.h,
d))})},tfa=function(a){return(a=a.ib.getAll().find(function(b){return b.H}))?a.ha:null},ufa=function(a){a=wfa(a.ib);return!!a.length&&a.every(function(b){return b.G})};var V5=function(a,b,c){T.call(this);var d=this;this.controller=b;this.M=c;this.g=new qL(this);this.ib=new Map;this.o=this.j=null;this.G=new HS(function(){d.g.W(d.F,d.j)},50);this.D=new HS(function(){d.g.W(d.u,d.o)},200);this.h=this.g.signal();this.l=this.g.signal();this.jc=this.g.signal();this.m=this.g.signal();this.Xc=this.g.signal();this.F=sL(this.g);this.u=sL(this.g);this.Cc=this.g.signal();Z0(this.g,this.Cc,function(e){return 6===e.state});Z0(this.g,this.Cc,function(e){return 2===e.state});this.H=
this.g.signal();Z0(this.g,this.h,function(e){return!e.isLocal});Z0(this.g,this.l,function(e){return!e.isLocal});Z0(this.g,this.jc,function(e){return!e.isLocal});Z0(this.g,this.m,function(e){return!e.isLocal});Z0(this.g,this.Xc,function(e){return!e.isLocal});this.J=Z0(this.g,this.h,function(e){return e.l});this.self=this.J.next();this.self.then(function(){});b.jc.attach(function(e){T5(d,e)});b.Xc.attach(function(e){var f=e.Z(),g=d.ib.get(f);g&&(T5(d,e),U5(d,g.Bf,!1),g.Bf.dispose(),d.ib.delete(f))});
a.forEach(function(e){T5(d,e)});this.g.W(this.F,null);this.g.W(this.u,null);new vfa(this)};t(V5,T);V5.prototype.getAll=function(){return[].concat(p(this.ib.values())).map(function(a){return a.Bf})};var S5=function(a){return a.getAll().filter(function(b){return 5===b.state})},wfa=function(a){return S5(a).filter(function(b){return!b.isLocal})};V5.prototype.get=function(a){return(a=this.ib.get(a))?a.Bf:null};
V5.prototype.ba=function(){var a=new yL(this.g);try{for(var b=n(this.ib.values()),c=b.next();!c.done;c=b.next()){var d=c.value.Bf;d.dispose();a.add(this.Xc,d)}this.ib.clear()}finally{a.W()}T.prototype.ba.call(this)};
var T5=function(a,b){var c=b.Z(),d=a.ib.get(c);if(d)d.Pw(b);else{var e=null,f=new R5(b,function(g){e=g},a.controller,a.M);a1(a.g,a.l,f.o,function(){return f});a1(a.g,a.m,f.j,function(){return f});$0(a.g,a.jc,f.jc,function(){return f});a1(a.g,a.Xc,f.Xc,function(){return f});a1(a.g,a.Cc,f.Cc,function(){return f});a1(a.g,a.H,f.u,function(g){return{Bf:f,jL:g}});CL(f.D,function(g){U5(a,f,g)},a);CL(f.F,function(g){a.o=g?f:null;a.D.start()},a);e?(a.ib.set(c,{Bf:f,Pw:e}),a.g.W(a.h,f)):(f.dispose(),Eb("No participant callback set for new participant"))}},
U5=function(a,b,c){if(c){if(a.j===b)return;a.j=b}else{if(a.j!==b)return;a.j=null}a.G.start()};var Cfa=function(a){var b=new qL,c=b.signal(),d=b.signal(),e=a.ib.get();e=e?e.get().map(function(u){return W5(u)}):[];var f=new V5(e,{jc:c,Xc:d,yk:function(u){return xfa(a,u)},zk:function(){return Promise.resolve(!1)},Vi:function(u){return yfa(a,u)},nd:function(u){return zfa(a,u)},accept:function(){return Afa()},Qi:function(){return Bfa()}},a.nb.then());f.T(b);var g=null;a.g.then(function(u){var A=function(H){if(H!=g){if(g){var O=f.get(g);O&&(O=O.ha,b.W(c,K5(new J5,O).Ve(!1)))}H&&(O=f.get(H))&&(O=
O.ha,b.W(c,K5(new J5,O).Ve(!0)));g=H}},z=u.get()[0];A(z&&z.lj()&&L(z.xc(),1));u.onChange.attach(function(H){var O=H.Bc,za=H.removed;[].concat(p(H.Sc),p(O)).forEach(function(Ib){return A(Ib.lj()&&L(Ib.xc(),1)||null)});za.forEach(function(){return A(null)})})});e=new N5(a.ob,f,vL(b,c,function(u){if(u.Mm()){var A=u.Z();if([].concat(p(a.J.keys())).some(function(z){return z.ha.get()===A}))return N(u.clone(),12,void 0)}return u}),a.La,a.nb,uK(a.ra,RK));f.T(e);var h,m=function(u){var A=W5(u),z=u.Z();h&&
A.Ff(z===h);[].concat(p(a.J.keys())).some(function(H){return H.ha.get()===z})&&(A.Qg(!0),A.fi(!0),A.Ff(!1),h&&A.gi(h));A.Ve(z===g);b.W(c,A)},q=new Map,r=function(u){var A=new Map;u.forEach(function(z){m(z);A.set(z.Z(),z);q.delete(z.Z())});q.forEach(function(z){b.W(d,W5(z))});q=A};(function(){var u,A;return Ba(function(z){switch(z.g){case 1:return v(z,yba(a),2);case 2:u=z.h;case 3:if(0!==a.getState()){z.fb(0);break}return v(z,u.search(),5);case 5:A=z.h;if(0!==a.getState())return z.return();r(A);return v(z,
Cv(4E3),3)}})})();a.ha.then(function(u){h=u;a.ib.then(function(A){HN(A).then(function(z){r(z);f.getAll().forEach(function(H){var O=H.ha;H.m?b.W(c,K5((new J5).gi(h),O)):b.W(c,K5(new J5,O).Ff(O==h))})});A.onChange.attach(function(z){var H=z.Bc,O=z.removed;z.Sc.forEach(m);H.forEach(function(za){return b.W(c,W5(za))});O.forEach(function(za){return b.W(d,W5(za))})},f)})});return f},W5=function(a){var b=K5(new J5,a.Z()).Xh(3).ei(!0);null!=L(a,4)&&b.nk(L(a,4));null!=L(a,10)&&b.mk(L(a,10));null!=L(a,5)&&
b.kk(L(a,5));if(null!=L(a,13)){var c=5==M(a,13,1);b.Hk(c);b.lk(c?1:0)}null!=L(a,17)&&b.pk(Dfa(a));null!=L(a,3)?b.di(!1):b.di(!b.Am());null!=L(a,12)&&b.Gk(4==L(a,12));return b},Dfa=function(a){switch(M(a,17,0)){case 1:return 5;case 10:return 6;case 11:return 2;case 12:return 1;case 2:case 20:case 21:case 22:return 9;default:return ul(a,18,!1)?5:0}},xfa=function(a,b){var c,d,e;return Ba(function(f){switch(f.g){case 1:return!JZ(a.onConnect)||JZ(a.onDisconnect)?f.return(!1):v(f,a.ha.then(),2);case 2:return c=
f.h,v(f,a.We.then(),3);case 3:return d=f.h,e=d.get().filter(function(g){return g.Z()==b&&1==g.ka()}),v(f,Promise.all(e.map(function(g){g=d.pb(g);var h=new rC;h=N(h,1,c);g=S(g,6,h);return MN(d,g)})),4);case 4:return f.return(!0)}})},yfa=function(a,b){var c,d,e;return Ba(function(f){if(1==f.g)return!JZ(a.onConnect)||JZ(a.onDisconnect)?f.return(Promise.resolve(!1)):v(f,a.ib.then(),2);if(3!=f.g)return c=f.h,d={},v(f,c.remove(c.pb(b),(d.jYdIne=43,d)),3);e=f.h;return f.return(1==e.length)})},zfa=function(a,
b){var c,d;return Ba(function(e){if(1==e.g)return!JZ(a.onConnect)||JZ(a.onDisconnect)?e.return(Promise.resolve(!1)):v(e,a.g,2);if(3!=e.g)return c=e.h,v(e,MN(c,c.pb().nd(zB(new yB,b))),3);d=e.h;return e.return(1==d.length)})},Afa=function(){return Ba(function(){throw Error("Not supported");})},Bfa=function(){return Ba(function(){throw Error("Not supported");})};var X5=function(a){T3.call(this,a);this.g=new k1("realtime.media.api.webrtc.extension.HangoutExtensionServiceImpl");this.Y(4864)};t(X5,T3);var Efa=function(a){Q3(a,function(b){return new X5(b)})};X5.prototype.Nj=function(){var a={method:"cpu.getInfo"};O3?a=M3(a,!1):(O3=!0,a=N3(a));return a.then()};X5.prototype.sg=function(){return lea()};
var Y5=function(a,b,c,d){d=void 0===d?!0:d;var e=N3({method:"logging.setMetadata",metaData:[{key:"client",value:"Hangouts"},{key:"sessionId",value:b},{key:"participantLogId",value:c},{key:"url",value:window.location.href}]}).then(function(){a.g.g.g(PY,"Extension logging setMetadata succeeded for "+b)},function(f){a.g.g.g(PY,"Extension loggings setMetadata failed for session: "+b+(", error: "+f.value))});return d?nt(e,function(){return Y5(a,b,c,!1)}):e};X5.prototype.Qj=function(){return Z5(this)};
X5.prototype.Rj=function(a,b){var c=this;return b?N3({method:"logging.stopAndUpload"}).then(function(d){c.g.info("logging.stopAndUpload succeeded with result="+JSON.stringify(d.value));return d},function(d){c.g.K("logging.stopAndUpload failed with error="+d.value);throw d;}):N3({method:"logging.stop"}).then(function(){c.g.info("logging.stop succeeded");return a?Xp(42)?N3({method:"logging.store",logId:a}):N3({method:"logging.stop"}):N3({method:"logging.discard"})},function(d){c.g.K("logging.stop failed with error="+
d)})};X5.prototype.Mj=function(a){var b=this;return a?N3({method:"logging.startRtpDump",incoming:!0,outgoing:!0}).then(function(c){b.g.info("logging.startRtpDump succeeded");return c},function(c){b.g.info("logging.startRtpDump failed with error="+c);throw c;}):N3({method:"logging.stopRtpDump",incoming:!0,outgoing:!0}).then(function(c){b.g.info("logging.stopRtpDump succeeded");return c},function(c){b.g.info("logging.stopRtpDump failed with error="+c);throw c;})};
var Z5=function(a,b){b=void 0===b?!0:b;var c=bt(N3({method:"logging.start"}));return b?nt(c,function(){return Z5(a,!1)}):c};X5.prototype.Sj=function(a,b){return Y5(this,a,b).then(function(){return N3({method:"logging.uploadOnRenderClose"})})};X5.prototype.Pj=function(a){var b=void 0===b?{hx:1,Rt:4268032}:b;var c=mf&&Xp(74),d={};a=(d.method="logging.startEventLogging",d[c?"sessionId":"peerConnectionId"]=a,d.maxLogSizeBytes=b.Rt,d.webAppId=b.hx,d);return N3(a).then()};X5.prototype.Oj=function(){return N3({method:"getHardwarePlatformInfo"}).then()};var $5=function(a){T3.call(this,a);this.Y(4866)};t($5,T3);var Ffa=function(a){Q3(a,function(b){return new $5(b)})};k=$5.prototype;k.Nj=function(){return a6(this,"cpu.getInfo")};k.sg=function(){return null};k.Mj=function(){return a6(this,"enableRtpHeaderDump")};k.Oj=function(){return a6(this,"getHardwarePlatformInfo")};k.Qj=function(){return a6(this,"logging.start")};k.Rj=function(){return a6(this,"logging.stop")};k.Sj=function(){return a6(this,"logging.uploadOnRenderClose")};
k.Pj=function(){return a6(this,"logging.startEventLogging")};var a6=function(a,b){return ct(new L3(6,a.constructor.name+":  Method: "+b+"; Type: expected failure; Explanation: Operation ignored, no Hangout Extension expected."))};var b6=function(a,b,c){this.s=Zf("realtime.media.apiary.Client");this.h=a;this.j=b;this.g=c},Gfa=function(a,b,c,d){var e=new oC;e.setRequestHeader(a.g());N(e,2,b);null!==c&&(b=Nl(new Ll,c),e.O(b));return nt(c6(a,"media_sessions/query",e,hD,d),function(f){if(f instanceof wM?"fatal"===f.status&&"not_found"===f.Yc:f instanceof oM&&"fatal"===f.status&&"not_found"===f.g)throw new d6("The requested resource was not found.",11);throw f;})},f6=function(a,b,c){b=e6(a,b,c);return nt(c6(a,"media_sessions/callperf",
b,WG,void 0,{va:VG.prototype.Iu,Ah:XG}),function(d){C(a.s,"Failed to upload log data: "+d);throw d;})},e6=function(a,b,c){b=Jl(b);N(b,13,a.j);var d=new VG;d.setRequestHeader(a.g());c&&N(d,2,c);S(d,3,b);return d},c6=function(a,b,c,d,e,f){var g=void 0===e?{}:e;e=g.Xe;g=g.St;f=void 0===f?null:f;return null==a.h?(d="Failed to "+b+" "+c+": no service",C(a.s,d),ct(d)):a.h.makeRequest(b,c,d,e,g,void 0,void 0,f).then(function(h){if(null==h)throw new d6("Got empty response.");if(void 0!==h.getResponseHeader){var m=
h.getResponseHeader();if(null==m)throw new d6("Missing response header.");m=m.Ja();if(1!=m)throw new d6("Got bad status in response header.",m);}return h},function(h){C(a.s,"Failed to "+b+" "+c+": "+h);throw h;})},d6=function(a,b){b=void 0===b?0:b;Ab.call(this,a+" (status: "+b+")");this.desc=a;this.status=b;this.name="ClientError"};t(d6,Ab);var Hfa=function(a,b){this.g=new b6(a.C,WM(a),function(){return eN(a,b)})},g6=function(a,b){return new Hfa(a,b||v0(WM(a)))};var h6=function(a){K(this,a,"hc:rc",-1,Ifa,null)};B(h6,J);var i6=function(a){K(this,a,0,-1,null,null)};B(i6,J);var Ifa=[7];h6.messageId="hc:rc";k=h6.prototype;k.getTime=function(){return L(this,1)};k.setTime=function(a){return N(this,1,a)};k.sa=function(){return L(this,3)};k.Vb=function(){return L(this,11)};k.Qb=function(){return L(this,12)};var Jfa=function(){this.h=-1};var j6=function(){this.h=64;this.g=Array(4);this.C=Array(this.h);this.l=this.j=0;this.reset()};B(j6,Jfa);j6.prototype.reset=function(){this.g[0]=1732584193;this.g[1]=4023233417;this.g[2]=2562383102;this.g[3]=271733878;this.l=this.j=0};
var k6=function(a,b,c){c||(c=0);var d=Array(16);if("string"===typeof b)for(var e=0;16>e;++e)d[e]=b.charCodeAt(c++)|b.charCodeAt(c++)<<8|b.charCodeAt(c++)<<16|b.charCodeAt(c++)<<24;else for(e=0;16>e;++e)d[e]=b[c++]|b[c++]<<8|b[c++]<<16|b[c++]<<24;b=a.g[0];c=a.g[1];e=a.g[2];var f=a.g[3];var g=b+(f^c&(e^f))+d[0]+3614090360&4294967295;b=c+(g<<7&4294967295|g>>>25);g=f+(e^b&(c^e))+d[1]+3905402710&4294967295;f=b+(g<<12&4294967295|g>>>20);g=e+(c^f&(b^c))+d[2]+606105819&4294967295;e=f+(g<<17&4294967295|g>>>
15);g=c+(b^e&(f^b))+d[3]+3250441966&4294967295;c=e+(g<<22&4294967295|g>>>10);g=b+(f^c&(e^f))+d[4]+4118548399&4294967295;b=c+(g<<7&4294967295|g>>>25);g=f+(e^b&(c^e))+d[5]+1200080426&4294967295;f=b+(g<<12&4294967295|g>>>20);g=e+(c^f&(b^c))+d[6]+2821735955&4294967295;e=f+(g<<17&4294967295|g>>>15);g=c+(b^e&(f^b))+d[7]+4249261313&4294967295;c=e+(g<<22&4294967295|g>>>10);g=b+(f^c&(e^f))+d[8]+1770035416&4294967295;b=c+(g<<7&4294967295|g>>>25);g=f+(e^b&(c^e))+d[9]+2336552879&4294967295;f=b+(g<<12&4294967295|
g>>>20);g=e+(c^f&(b^c))+d[10]+4294925233&4294967295;e=f+(g<<17&4294967295|g>>>15);g=c+(b^e&(f^b))+d[11]+2304563134&4294967295;c=e+(g<<22&4294967295|g>>>10);g=b+(f^c&(e^f))+d[12]+1804603682&4294967295;b=c+(g<<7&4294967295|g>>>25);g=f+(e^b&(c^e))+d[13]+4254626195&4294967295;f=b+(g<<12&4294967295|g>>>20);g=e+(c^f&(b^c))+d[14]+2792965006&4294967295;e=f+(g<<17&4294967295|g>>>15);g=c+(b^e&(f^b))+d[15]+1236535329&4294967295;c=e+(g<<22&4294967295|g>>>10);g=b+(e^f&(c^e))+d[1]+4129170786&4294967295;b=c+(g<<
5&4294967295|g>>>27);g=f+(c^e&(b^c))+d[6]+3225465664&4294967295;f=b+(g<<9&4294967295|g>>>23);g=e+(b^c&(f^b))+d[11]+643717713&4294967295;e=f+(g<<14&4294967295|g>>>18);g=c+(f^b&(e^f))+d[0]+3921069994&4294967295;c=e+(g<<20&4294967295|g>>>12);g=b+(e^f&(c^e))+d[5]+3593408605&4294967295;b=c+(g<<5&4294967295|g>>>27);g=f+(c^e&(b^c))+d[10]+38016083&4294967295;f=b+(g<<9&4294967295|g>>>23);g=e+(b^c&(f^b))+d[15]+3634488961&4294967295;e=f+(g<<14&4294967295|g>>>18);g=c+(f^b&(e^f))+d[4]+3889429448&4294967295;c=
e+(g<<20&4294967295|g>>>12);g=b+(e^f&(c^e))+d[9]+568446438&4294967295;b=c+(g<<5&4294967295|g>>>27);g=f+(c^e&(b^c))+d[14]+3275163606&4294967295;f=b+(g<<9&4294967295|g>>>23);g=e+(b^c&(f^b))+d[3]+4107603335&4294967295;e=f+(g<<14&4294967295|g>>>18);g=c+(f^b&(e^f))+d[8]+1163531501&4294967295;c=e+(g<<20&4294967295|g>>>12);g=b+(e^f&(c^e))+d[13]+2850285829&4294967295;b=c+(g<<5&4294967295|g>>>27);g=f+(c^e&(b^c))+d[2]+4243563512&4294967295;f=b+(g<<9&4294967295|g>>>23);g=e+(b^c&(f^b))+d[7]+1735328473&4294967295;
e=f+(g<<14&4294967295|g>>>18);g=c+(f^b&(e^f))+d[12]+2368359562&4294967295;c=e+(g<<20&4294967295|g>>>12);g=b+(c^e^f)+d[5]+4294588738&4294967295;b=c+(g<<4&4294967295|g>>>28);g=f+(b^c^e)+d[8]+2272392833&4294967295;f=b+(g<<11&4294967295|g>>>21);g=e+(f^b^c)+d[11]+1839030562&4294967295;e=f+(g<<16&4294967295|g>>>16);g=c+(e^f^b)+d[14]+4259657740&4294967295;c=e+(g<<23&4294967295|g>>>9);g=b+(c^e^f)+d[1]+2763975236&4294967295;b=c+(g<<4&4294967295|g>>>28);g=f+(b^c^e)+d[4]+1272893353&4294967295;f=b+(g<<11&4294967295|
g>>>21);g=e+(f^b^c)+d[7]+4139469664&4294967295;e=f+(g<<16&4294967295|g>>>16);g=c+(e^f^b)+d[10]+3200236656&4294967295;c=e+(g<<23&4294967295|g>>>9);g=b+(c^e^f)+d[13]+681279174&4294967295;b=c+(g<<4&4294967295|g>>>28);g=f+(b^c^e)+d[0]+3936430074&4294967295;f=b+(g<<11&4294967295|g>>>21);g=e+(f^b^c)+d[3]+3572445317&4294967295;e=f+(g<<16&4294967295|g>>>16);g=c+(e^f^b)+d[6]+76029189&4294967295;c=e+(g<<23&4294967295|g>>>9);g=b+(c^e^f)+d[9]+3654602809&4294967295;b=c+(g<<4&4294967295|g>>>28);g=f+(b^c^e)+d[12]+
3873151461&4294967295;f=b+(g<<11&4294967295|g>>>21);g=e+(f^b^c)+d[15]+530742520&4294967295;e=f+(g<<16&4294967295|g>>>16);g=c+(e^f^b)+d[2]+3299628645&4294967295;c=e+(g<<23&4294967295|g>>>9);g=b+(e^(c|~f))+d[0]+4096336452&4294967295;b=c+(g<<6&4294967295|g>>>26);g=f+(c^(b|~e))+d[7]+1126891415&4294967295;f=b+(g<<10&4294967295|g>>>22);g=e+(b^(f|~c))+d[14]+2878612391&4294967295;e=f+(g<<15&4294967295|g>>>17);g=c+(f^(e|~b))+d[5]+4237533241&4294967295;c=e+(g<<21&4294967295|g>>>11);g=b+(e^(c|~f))+d[12]+1700485571&
4294967295;b=c+(g<<6&4294967295|g>>>26);g=f+(c^(b|~e))+d[3]+2399980690&4294967295;f=b+(g<<10&4294967295|g>>>22);g=e+(b^(f|~c))+d[10]+4293915773&4294967295;e=f+(g<<15&4294967295|g>>>17);g=c+(f^(e|~b))+d[1]+2240044497&4294967295;c=e+(g<<21&4294967295|g>>>11);g=b+(e^(c|~f))+d[8]+1873313359&4294967295;b=c+(g<<6&4294967295|g>>>26);g=f+(c^(b|~e))+d[15]+4264355552&4294967295;f=b+(g<<10&4294967295|g>>>22);g=e+(b^(f|~c))+d[6]+2734768916&4294967295;e=f+(g<<15&4294967295|g>>>17);g=c+(f^(e|~b))+d[13]+1309151649&
4294967295;c=e+(g<<21&4294967295|g>>>11);g=b+(e^(c|~f))+d[4]+4149444226&4294967295;b=c+(g<<6&4294967295|g>>>26);g=f+(c^(b|~e))+d[11]+3174756917&4294967295;f=b+(g<<10&4294967295|g>>>22);g=e+(b^(f|~c))+d[2]+718787259&4294967295;e=f+(g<<15&4294967295|g>>>17);g=c+(f^(e|~b))+d[9]+3951481745&4294967295;a.g[0]=a.g[0]+b&4294967295;a.g[1]=a.g[1]+(e+(g<<21&4294967295|g>>>11))&4294967295;a.g[2]=a.g[2]+e&4294967295;a.g[3]=a.g[3]+f&4294967295};
j6.prototype.update=function(a,b){void 0===b&&(b=a.length);for(var c=b-this.h,d=this.C,e=this.j,f=0;f<b;){if(0==e)for(;f<=c;)k6(this,a,f),f+=this.h;if("string"===typeof a)for(;f<b;){if(d[e++]=a.charCodeAt(f++),e==this.h){k6(this,d);e=0;break}}else for(;f<b;)if(d[e++]=a[f++],e==this.h){k6(this,d);e=0;break}}this.j=e;this.l+=b};
j6.prototype.digest=function(){var a=Array((56>this.j?this.h:2*this.h)-this.j);a[0]=128;for(var b=1;b<a.length-8;++b)a[b]=0;var c=8*this.l;for(b=a.length-8;b<a.length;++b)a[b]=c&255,c/=256;this.update(a);a=Array(16);for(b=c=0;4>b;++b)for(var d=0;32>d;d+=8)a[c++]=this.g[b]>>>d&255;return a};var m6=function(a,b,c,d,e){var f=new h6;N(f,3,b);b=Va();f.setTime(b);b=l6(L(a.g,7),b);N(f,2,b);b=WM(a);N(f,4,b);b=M(a.g,5,0);N(f,5,b);N(f,6,c.j);a=a.Vb();N(f,11,a);Cl(f,7,d);void 0!==e&&N(f,8,e);(d=c.l)&&N(f,10,d);(d=c.Qb())&&N(f,12,d);(c=c.h)&&N(f,13,c);return f},n6=function(a,b,c){var d=new OE,e=(new Date(L(b,4))).toString();N(d,2,e);e=L(b,4);N(d,133,e);e=null!=L(b,3)?L(b,3):L(a,8);N(d,30,e);N(d,3,-2);(e=L(b,1))&&N(d,1,e);e=new SG;S(e,4,d);d=a.sa();N(e,2,d);d=L(c.g,14);N(e,11,d||[]);b=L(b,2);N(e,
21,b);c=sl(c.g,8);N(e,12,c);c=L(a,6);N(e,14,c);c=L(a,10);N(e,16,c);c=a.Qb();N(e,22,c);a=L(a,13);N(e,23,a);return e},o6=function(a,b,c){var d=L(c,6),e=c.sa();a.then(function(f){f.Y(b,{Dc:d,hb:e})})},l6=function(a,b){a+=b;b=new j6;b.update(a,a.length);return String.fromCharCode.apply(String,b.digest())};var Kfa=function(a){this.g=a},Lfa=function(a,b,c){var d=jt();p6(a,b,c,new rM(4E3,36E5,.25,4),d.resolve);return d.fa},p6=function(a,b,c,d,e){var f=g6(b,L(c,6)),g=R(c,i6,7).map(function(h){var m=n6(c,h,b);h=L(h,1);return f6(f.g,m,h)});g=ht(g);o6(a.g,4159,c);g.then(function(h){h.every(function(m){return m.Yd})?(e(),o6(a.g,4160,c)):(Av(function(){p6(a,b,c,d,e)},d.g),sM(d),o6(a.g,4161,c))})};var q6=function(a){K(this,a,"hc:rcs",-1,Mfa,null)};B(q6,J);var Mfa=[2];q6.messageId="hc:rcs";var Nfa=function(a,b){var c=this;this.h=a;this.j=b;this.g=new PA;this.s=new bU("realtime.media.call.PersistentReportingService");a=window.requestIdleCallback;"function"===typeof a?a(function(){r6(c)}):Av(function(){r6(c)})},Ofa=function(a){sK(a,VK)||HK(a,VK,function(b){b=uK(b,NK).then();return new Nfa(new Kfa(b),b)})},u6=function(a,b,c,d,e,f){if(!s6(a,"Could not save RecentCallSummary because storage was unavailable")||0===e.length)return null;b=m6(b,c,d,e,f);d=new q6;S(d,1,b);c=t6(b);d=d.va();a.g.set(c,
d);return b},Pfa=function(a,b){if(!s6(a,"Could not get RecentCalls because storage was unavailable"))return[];for(var c=Va()-6E4,d=[],e=0;e<a.g.ya();){var f=a.g.key(e++);if(null!==f&&jd(f,"rcsprs_")&&(f=v6(a,f),null!==f&&null!=L(f,1)&&!(Q(f,h6,1).getTime()<c))){var g=l6(b,Q(f,h6,1).getTime());L(Q(f,h6,1),2)===g&&d.push(Q(f,h6,1))}}return d},Qfa=l(["Failed to create RecentCallSummary."]),v6=function(a,b){if(s6(a,"Could not load RecentCallSummary because storage was unavailable")&&(b=a.g.get(b),null!==
b))try{return new q6(b?JSON.parse(b):null)}catch(c){eU(a.s,c).K(Qfa)}return null},Rfa=function(a,b,c){Lfa(a.h,b,c).then(function(){var d=t6(c),e=v6(a,d);if(null!==e&&-1===L(e,2).indexOf(1)){var f=L(e,2).concat([1]);N(e,2,f||[]);e=e.va();a.g.set(d,e)}})},Sfa=l(["",""]),s6=function(a,b){if(a.g.isAvailable())return!0;a.s.K(Sfa,b);return!1},r6=function(a){if(s6(a,"Could not delete old RecentCallSummaries because storage was unavailable")){for(var b=Va()-3456E5,c=new Map,d="",e=0,f=0;f<a.g.ya();f++){var g=
a.g.key(f);if(null!==g&&jd(g,"rcsprs_")){var h=v6(a,g);if(null!==h&&null!=L(h,1)){var m=Q(h,h6,1);m.getTime()>e&&(d=g,e=m.getTime());(m.getTime()<b||-1!==L(h,2).indexOf(1))&&c.set(g,h)}else c.set(g,h)}}c.delete(d);c.forEach(function(q,r){a.g.remove(r);q&&null!=L(q,1)&&-1===L(q,2).indexOf(1)&&o6(a.j,4162,Q(q,h6,1))})}};function t6(a){return"rcsprs_"+L(a,6)+"_"+a.Vb()};/*

 ## MIT

 Copyright (c) 2013?2015 Streams Standard Reference Implementation Authors

 Permission is hereby granted, free of charge, to any person obtaining a copy
 of this software and associated documentation files (the "Software"), to deal
 in the Software without restriction, including without limitation the rights
 to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
 copies of the Software, and to permit persons to whom the Software is
 furnished to do so, subject to the following conditions:

 The above copyright notice and this permission notice shall be included in all
 copies or substantial portions of the Software.

 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL THE
 AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
 OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
 SOFTWARE.



 ## CC0

 To the extent possible under law, the authors have dedicated all copyright and
 related and neighboring rights to this software to the public domain worldwide.
 This software is distributed without any warranty.

 You should have received a copy of the CC0 Public Domain Dedication along with
 this software. If not, see https://creativecommons.org/publicdomain/zero/1.0/.

 Creative Commons Legal Code

 CC0 1.0 Universal

     CREATIVE COMMONS CORPORATION IS NOT A LAW FIRM AND DOES NOT PROVIDE
     LEGAL SERVICES. DISTRIBUTION OF THIS DOCUMENT DOES NOT CREATE AN
     ATTORNEY-CLIENT RELATIONSHIP. CREATIVE COMMONS PROVIDES THIS
     INFORMATION ON AN "AS-IS" BASIS. CREATIVE COMMONS MAKES NO WARRANTIES
     REGARDING THE USE OF THIS DOCUMENT OR THE INFORMATION OR WORKS
     PROVIDED HEREUNDER, AND DISCLAIMS LIABILITY FOR DAMAGES RESULTING FROM
     THE USE OF THIS DOCUMENT OR THE INFORMATION OR WORKS PROVIDED
     HEREUNDER.

 Statement of Purpose

 The laws of most jurisdictions throughout the world automatically confer
 exclusive Copyright and Related Rights (defined below) upon the creator
 and subsequent owner(s) (each and all, an "owner") of an original work of
 authorship and/or a database (each, a "Work").

 Certain owners wish to permanently relinquish those rights to a Work for
 the purpose of contributing to a commons of creative, cultural and
 scientific works ("Commons") that the public can reliably and without fear
 of later claims of infringement build upon, modify, incorporate in other
 works, reuse and redistribute as freely as possible in any form whatsoever
 and for any purposes, including without limitation commercial purposes.
 These owners may contribute to the Commons to promote the ideal of a free
 culture and the further production of creative, cultural and scientific
 works, or to gain reputation or greater distribution for their Work in
 part through the use and efforts of others.

 For these and/or other purposes and motivations, and without any
 expectation of additional consideration or compensation, the person
 associating CC0 with a Work (the "Affirmer"), to the extent that he or she
 is an owner of Copyright and Related Rights in the Work, voluntarily
 elects to apply CC0 to the Work and publicly distribute the Work under its
 terms, with knowledge of his or her Copyright and Related Rights in the
 Work and the meaning and intended legal effect of CC0 on those rights.

 1. Copyright and Related Rights. A Work made available under CC0 may be
 protected by copyright and related or neighboring rights ("Copyright and
 Related Rights"). Copyright and Related Rights include, but are not
 limited to, the following:

   i. the right to reproduce, adapt, distribute, perform, display,
      communicate, and translate a Work;
  ii. moral rights retained by the original author(s) and/or performer(s);
 iii. publicity and privacy rights pertaining to a person's image or
      likeness depicted in a Work;
  iv. rights protecting against unfair competition in regards to a Work,
      subject to the limitations in paragraph 4(a), below;
   v. rights protecting the extraction, dissemination, use and reuse of data
      in a Work;
  vi. database rights (such as those arising under Directive 96/9/EC of the
      European Parliament and of the Council of 11 March 1996 on the legal
      protection of databases, and under any national implementation
      thereof, including any amended or successor version of such
      directive); and
 vii. other similar, equivalent or corresponding rights throughout the
      world based on applicable law or treaty, and any national
      implementations thereof.

 2. Waiver. To the greatest extent permitted by, but not in contravention
 of, applicable law, Affirmer hereby overtly, fully, permanently,
 irrevocably and unconditionally waives, abandons, and surrenders all of
 Affirmer's Copyright and Related Rights and associated claims and causes
 of action, whether now known or unknown (including existing as well as
 future claims and causes of action), in the Work (i) in all territories
 worldwide, (ii) for the maximum duration provided by applicable law or
 treaty (including future time extensions), (iii) in any current or future
 medium and for any number of copies, and (iv) for any purpose whatsoever,
 including without limitation commercial, advertising or promotional
 purposes (the "Waiver"). Affirmer makes the Waiver for the benefit of each
 member of the public at large and to the detriment of Affirmer's heirs and
 successors, fully intending that such Waiver shall not be subject to
 revocation, rescission, cancellation, termination, or any other legal or
 equitable action to disrupt the quiet enjoyment of the Work by the public
 as contemplated by Affirmer's express Statement of Purpose.

 3. Public License Fallback. Should any part of the Waiver for any reason
 be judged legally invalid or ineffective under applicable law, then the
 Waiver shall be preserved to the maximum extent permitted taking into
 account Affirmer's express Statement of Purpose. In addition, to the
 extent the Waiver is so judged Affirmer hereby grants to each affected
 person a royalty-free, non transferable, non sublicensable, non exclusive,
 irrevocable and unconditional license to exercise Affirmer's Copyright and
 Related Rights in the Work (i) in all territories worldwide, (ii) for the
 maximum duration provided by applicable law or treaty (including future
 time extensions), (iii) in any current or future medium and for any number
 of copies, and (iv) for any purpose whatsoever, including without
 limitation commercial, advertising or promotional purposes (the
 "License"). The License shall be deemed effective as of the date CC0 was
 applied by Affirmer to the Work. Should any part of the License for any
 reason be judged legally invalid or ineffective under applicable law, such
 partial invalidity or ineffectiveness shall not invalidate the remainder
 of the License, and in such case Affirmer hereby affirms that he or she
 will not (i) exercise any of his or her remaining Copyright and Related
 Rights in the Work or (ii) assert any associated claims and causes of
 action with respect to the Work, in either case contrary to Affirmer's
 express Statement of Purpose.

 4. Limitations and Disclaimers.

  a. No trademark or patent rights held by Affirmer are waived, abandoned,
     surrendered, licensed or otherwise affected by this document.
  b. Affirmer offers the Work as-is and makes no representations or
     warranties of any kind concerning the Work, express, implied,
     statutory or otherwise, including without limitation warranties of
     title, merchantability, fitness for a particular purpose, non
     infringement, or the absence of latent or other defects, accuracy, or
     the present or absence of errors, whether or not discoverable, all to
     the greatest extent permissible under applicable law.
  c. Affirmer disclaims responsibility for clearing rights of other persons
     that may apply to the Work or any use thereof, including without
     limitation any person's Copyright and Related Rights in the Work.
     Further, Affirmer disclaims responsibility for obtaining any necessary
     consents, permissions or other rights required for any use of the
     Work.
  d. Affirmer understands and acknowledges that Creative Commons is not a
     party to this document and has no duty or obligation with respect to
     this CC0 or use of the Work.
*/
Zf("third_party.whatwgstreams");var w6=function(){var a=w.location;return a.origin||a.protocol+"//"+a.hostname+(a.port?":"+a.port:"")};var Tfa=function(a){return c2(function(b){return a().then(function(c){$1(b,"Authorization","Bearer "+c);c=m2(b.getContext());var d;if((d=Ke||Me)&&!(d=!c)){var e=c.match(Uq);c=e[1];d=e[3];e=e[4];var f="";c&&(f+=c+":");d&&(f=f+"//"+d,e&&(f+=":"+e));d=f===w6()}d&&$1(b,"X-Origin",w6())})})};var Ufa=new bU("realtime.media.logging.upload.uploader");jt();var Vfa=l(["Call has ended"]);var x6=function(a){QM.call(this);this.s=new bU("realtime.media.logging.upload.LogUploadService");this.g=!1;new W(this);this.h=null;uK(a,NK)};t(x6,QM);var Wfa=l(["Log upload allowed. Starting upload."]),Xfa=l(["Log upload disallowed. Stopping upload."]),Yfa=function(a){sK(a,OZ)||HK(a,OZ,function(b){return new x6(b)})};var y6=function(a){var b=this;this.g=null;this.D=uK(a,YM,!0).then(function(c){return b.g=c});this.h=null;this.J=uK(a,VK).then().then(function(c){return b.h=c});this.u=null;uK(a,TK).then(function(c){b.u=c});this.o=bt(uK(a,OZ));this.F=jt();this.G=this.F.fa;this.l=null;this.j=!1;this.C=new Set;this.m=!1},Zfa=function(a){sK(a,UK)||HK(a,UK,function(b){return new y6(b)})},z6=function(a){return Array.from(a.Aa.l).map(function(b){var c=new i6;c=N(c,1,b.h.g);var d=b.qb();c=N(c,2,d);c=N(c,3,b.cc);b=b.mn();
return N(c,4,b)})},B6=function(a){a.m||A6(a);return a.l||!1},iba=function(a,b){a.g=a.g||b.l;a.u=a.u||b.La;a.m||A6(a);HY(b.Aa,B6(a));Math.random()<=(rl(a.g.g,9)||0)&&IY(b.Aa);a.C.add(b);b.onConnect.then(function(){return $fa(a,b)});IZ(b.onDisconnect,function(){return aga(a,b)});C6(a)},bga=function(a,b){a.g?b():a.D.then(b)},D6=function(a,b){a.h?b():a.J.then(b)},$fa=function(a,b){D6(a,function(){var c=b.hb.get()||"";cga(a,c,L(b.l.g,7)||"");var d=b.Zc,e=z6(b);u6(a.h,b.l,c,d,e)})},cga=function(a,b,c){var d=
void 0===d?!1:d;a.G.then(function(){(B6(a)||d)&&Pfa(a.h,c).filter(function(e){return e.sa()===b}).forEach(function(e){R(e,i6,7).forEach(function(f){L(f,2);e.sa()})})})},aga=function(a,b){a.C.delete(b);C6(a);a.o.then(function(){Ufa.info(Vfa)});D6(a,function(){gt([b.onConnect,b.onDisconnect]).then(function(c){c=n(c);c.next();var d=c.next().value;c=b.l;var e=b.hb.get()||"",f=b.Zc,g=z6(b),h=a.h;(d=u6(h,c,e,f,g,d))&&Rfa(h,c,d)},Ia)})},C6=function(a){a.o.then(function(){})},A6=function(a,b){bga(a,function(){a.m=
!0;a.j=null;var c=jt();c.fa.then(x(a.M,a),x(a.H,a,b));var d=L(a.g.g,10);if(null!=d){null!=b&&(d=$q(d,"set",String(b)));var e=Ov(Mv);e.open("GET",d,!0);e.onreadystatechange=function(){4==e.readyState&&(200==e.status?c.resolve(e.responseText):c.reject(null))};e.send(null)}else c.reject(null)})};y6.prototype.M=function(a){this.j="true"==a;E6(this)};y6.prototype.H=function(a){this.j=void 0!==a?a:B6(this);E6(this)};
var E6=function(a){a.F.resolve();null===a.l&&(a.l=a.j,a.o.then(function(b){var c=B6(a);b.g=c;b.g?b.s.info(Wfa):b.s.info(Xfa)}),a.C.forEach(function(b){HY(b.Aa,B6(a))}));a.j!=a.l&&A6(a,B6(a))},f1=function(a,b){var c=dga(b);if(null==L(c,4)||null==L(c,5)||null==L(c,6)||0==(R(c,i6,7)||[]).length)return[];var d=a.g,e=g6(d,L(c,6));return R(c,i6,7).map(function(f){var g=n6(c,f,d);f=L(f,1);return e6(e.g,g,f)})},dga=function(a){var b=a.l,c=a.hb.get(),d=a.Zc,e=z6(a);a=JZ(a.onDisconnect)?a.onDisconnect.get():
void 0;return m6(b,c,d,e,a)};var F6=new iK("t8xkq","q7SqFb");var G6=function(){this.storage=new PA;this.R=new bU("realtime.media.call.lite_mode.StoredLiteModeOptions")},ega=l(["Localstorage unavailable: can't persist LiteModeOptions"]),fga=l(["Failed to persist LiteModeOptions."]);G6.prototype.store=function(a){if(!this.storage.isAvailable())return this.R.K(ega),!1;try{if(null!=a){var b=a.va();this.storage.set("mlpm_rs",b)}else this.storage.remove("mlpm_rs");return!0}catch(c){eU(this.R,c).K(fga)}return!1};var hga=function(a){var b=this;this.h=null;this.j=new nL(a);new G6;this.g=0;(a=navigator.getBattery?navigator.getBattery():null)&&a.then&&a.then(function(c){b.h=c;b.h.g=function(){1===b.g&&(b.j.g(6731),b.R.info(gga),Db(1===b.g),b.g=2)}});this.R=new bU("realtime.media.call.lite_mode.LiteModeService")},gga=l(["Battery state changed, ignoring call for lite mode modelling."]),iga=function(a){sK(a,F6)||HK(a,F6,function(b){return new hga(b)})};var H6=function(a){T.call(this);this.g=a;this.h=new qL(this);this.onChange=this.h.signal()};t(H6,T);var I6=function(a){H6.call(this,2);var b=this,c=new W(this);this.T(c);c.listen(a,"eb",function(){b.h.W(b.onChange,b.g)})};t(I6,H6);var J6=function(){H6.call(this,4)};t(J6,H6);var K6=new iK("dm3J4d","bm");var L6=new iK("tVuxC","TH1Apc",[TK,K6]);var M6=function(){H6.call(this,1);this.receive=this.send=void 0};t(M6,H6);var O6=function(a){T.call(this);this.h=new Map;this.g=new qL(this);this.onChange=this.g.signal();this.j=new M6;a.get(TK);N6(this,this.j);a=a.get(K6);N6(this,new I6(a));N6(this,new J6)};t(O6,T);var N6=function(a,b){Db(!a.h.has(b.g),"Tried to add >1 caps of same type "+b.g);a.h.set(b.g,b);$0(a.g,a.onChange,b.onChange);a.g.W(a.onChange,b.g)},jga=function(a){sK(a,L6)||HK(a,L6,function(b){return new O6(b)})};var qga=function(a){var b=a.ha.get(),c=new qL,d=c.signal(),e=c.signal(),f=a.o.get();f=f?f.get().map(function(m){return P6(m,b)}):[];var g=new V5(f,{jc:d,Xc:e,yk:function(m){return kga(a,m)},zk:function(m){return lga(a,m)},Vi:function(m){return mga(a,m)},nd:function(m){return nga(a,m)},accept:function(m){return oga(a,m)},Qi:function(m){return pga(a,m)}},a.nb.then());g.T(c);f=new N5(a.ob,g,vL(c,d,function(m){return N(m.clone(),12,void 0)}),a.La,a.nb,uK(a.ra,RK));g.T(f);var h=null;a.D.then(function(m){var q=
function(u){if(u!=h){if(h){var A=g.get(h);A&&(A=A.ha,c.W(d,K5(new J5,A).Ve(!1)))}u&&(A=g.get(u))&&(A=A.ha,c.W(d,K5(new J5,A).Ve(!0)));h=u}},r=m.get()[0];r=r&&sJ(r);q(r&&r.xc()&&M(r.xc(),1,""));m.onChange.attach(function(u){var A=u.Bc,z=u.removed;[].concat(p(u.Sc),p(A)).forEach(function(H){H=H&&sJ(H);q(H&&H.xc()&&M(H.xc(),1,"")||null)});z.forEach(function(){return q(null)})})});a.o.then(function(m){(b=a.ha.get())||a.ha.then(function(r){b=r;g.getAll().forEach(function(u){var A=u.ha;u=u.Ca;c.W(d,K5(new J5,
A).Ff(A==b).fi(u==b))})});var q=function(r){var u=P6(r,b);r=r.Gb();u.Ve(r===h);c.W(d,u)};m.onChange.attach(function(r){var u=r.Bc,A=r.removed;r.Sc.forEach(q);u.forEach(function(z){return c.W(d,P6(z,b))});A.forEach(function(z){return c.W(e,P6(z,b))})},g);m.get().forEach(q)});return g},P6=function(a,b){var c=4==M(a,11,0),d=c?rga:sga,e=a.Gb(),f=M(a,21,"");c=K5(new J5,e).gi(f).Hk(c).lk(c?1:0).Xh(3).ei(!0).Eo(Q(a,TH,12)&&M(Q(a,TH,12),1,"")).pk(tga(a)).di(ul(a,15,!1)).Gk(ul(a,8,!1)).Qg(ul(a,26,!1)).mk(M(a,
29,"")).nk(M(a,2,"")||d);b&&(c.Ff(e===b),c.fi(f===b));M(a,3,"")&&c.kk(M(a,3,""));null!=L(a,14)&&c.Xh(uga(M(Q(a,VH,14),3,0)));return c},uga=function(a){switch(a){case 1:return 1;case 2:return 2;case 3:return 3;default:return 0}},tga=function(a){switch(lI(a)){case 1:return 5;case 2:return 10;case 3:return 6;case 4:case 11:return 2;case 9:return 8;case 10:return 9;case 6:return 7;case 7:return 3;case 8:return 4;default:return ul(a,5,!1)?5:0}},kga=function(a,b){var c,d,e,f;return Ba(function(g){return 1==
g.g?!JZ(a.onConnect)||JZ(a.onDisconnect)?g.return(!1):v(g,a.ha.then(),2):3!=g.g?(c=g.h,d=new TH,P(d,1,c),e=a.o.get(),f=e.pb(b),eI(f,d),v(g,MN(e,f),3)):g.return(!0)})},lga=function(a,b){var c,d,e,f;return Ba(function(g){return 1==g.g?!JZ(a.onConnect)||JZ(a.onDisconnect)?g.return(!1):v(g,a.ha.then(),2):3!=g.g?(c=g.h,d=new UH,P(d,1,c),e=a.o.get(),f=e.pb(b),S(f,27,d),v(g,MN(e,f),3)):g.return(!0)})},mga=function(a,b){var c,d,e;return Ba(function(f){if(1==f.g){if(!JZ(a.onConnect)||JZ(a.onDisconnect))return f.return(Promise.resolve(!1));
c=a.o.get();d=c.pb(b);bI(d,7);return v(f,MN(c,d),2)}e=f.h;return f.return(1==e.length)})},nga=function(a,b){var c,d,e,f;return Ba(function(g){if(1==g.g)return!JZ(a.onConnect)||JZ(a.onDisconnect)?g.return(Promise.resolve(!1)):v(g,a.D,2);if(3!=g.g){c=g.h;d=new $I;b&&P(d,1,b);var h=c.pb(),m=(new fJ).nd(d);e=S(h,6,m);return v(g,MN(c,e),3)}f=g.h;return g.return(1==f.length)})},oga=function(a,b){return Ba(function(c){return c.return(Q6(!0,a,b))})},pga=function(a,b){return Ba(function(c){return c.return(Q6(!1,
a,b))})},Q6=function(a,b,c){var d,e,f,g;return Ba(function(h){if(1==h.g){if(!JZ(b.onConnect)||JZ(b.onDisconnect))return h.return(Promise.resolve(!1));d=b.o.get();e=d.pb(c);f=a?1:4;bI(e,f);return v(h,MN(d,e),2)}g=h.h;return h.return(1==g.length)})},sga=chrome.i18n.getMessage("2551467977781415455"),rga=chrome.i18n.getMessage("5734888811966502047");var R6=function(a){K(this,a,0,-1,null,null)};B(R6,J);k=R6.prototype;k.Qn=function(){return ul(this,1,!1)};k.qk=function(a){return N(this,1,a)};k.Rn=function(){return null!=L(this,1)};k.mv=function(){return ul(this,2,!1)};k.Sn=function(a){return N(this,2,a)};k.vv=function(){return null!=L(this,2)};k.nv=function(){return ul(this,3,!1)};k.Tn=function(a){return N(this,3,a)};k.wv=function(){return null!=L(this,3)};k.pv=function(){return ul(this,4,!1)};k.Vn=function(a){return N(this,4,a)};
k.yv=function(){return null!=L(this,4)};k.qv=function(){return ul(this,5,!1)};k.Wn=function(a){return N(this,5,a)};k.zv=function(){return null!=L(this,5)};k.rv=function(){return ul(this,6,!1)};k.Xn=function(a){return N(this,6,a)};k.Av=function(){return null!=L(this,6)};k.ov=function(){return ul(this,7,!1)};k.Un=function(a){return N(this,7,a)};k.xv=function(){return null!=L(this,7)};k.tv=function(){return ul(this,9,!1)};k.Zn=function(a){return N(this,9,a)};k.Cv=function(){return null!=L(this,9)};
k.uv=function(){return ul(this,10,!1)};k.ao=function(a){return N(this,10,a)};k.Dv=function(){return null!=L(this,10)};k.us=function(){return ul(this,11,!1)};k.Po=function(a){return N(this,11,a)};k.ut=function(){return null!=L(this,11)};k.vs=function(){return ul(this,12,!1)};k.Qo=function(a){return N(this,12,a)};k.vt=function(){return null!=L(this,12)};k.sv=function(){return ul(this,13,!1)};k.Yn=function(a){return N(this,13,a)};k.Bv=function(){return null!=L(this,13)};
k.ms=function(){return ul(this,14,!1)};k.Io=function(a){return N(this,14,a)};k.nt=function(){return null!=L(this,14)};k.ss=function(){return ul(this,15,!1)};k.No=function(a){return N(this,15,a)};k.st=function(){return null!=L(this,15)};k.ts=function(){return ul(this,16,!1)};k.Oo=function(a){return N(this,16,a)};k.tt=function(){return null!=L(this,16)};k.rs=function(){return ul(this,17,!1)};k.Mo=function(a){return N(this,17,a)};k.rt=function(){return null!=L(this,17)};
k.qs=function(){return ul(this,18,!1)};k.Lo=function(a){return N(this,18,a)};k.qt=function(){return null!=L(this,18)};k.ks=function(){return ul(this,19,!1)};k.Go=function(a){return N(this,19,a)};k.lt=function(){return null!=L(this,19)};k.ps=function(){return ul(this,20,!1)};k.Ko=function(a){return N(this,20,a)};k.pt=function(){return null!=L(this,20)};k.hs=function(){return ul(this,21,!1)};k.Fo=function(a){return N(this,21,a)};k.kt=function(){return null!=L(this,21)};
k.ls=function(){return ul(this,22,!1)};k.Ho=function(a){return N(this,22,a)};k.mt=function(){return null!=L(this,22)};k.ns=function(){return ul(this,23,!1)};k.Jo=function(a){return N(this,23,a)};k.ot=function(){return null!=L(this,23)};var Z=R6.prototype,T6=function(a,b){T.call(this);var c=this;this.controller=b;this.j=new R6;this.g=new qL(this);this.jc=this.g.signal();this.h=[U0({has:Z.Rn,get:Z.Qn,set:Z.qk}),U0({has:Z.vv,get:Z.mv,set:Z.Sn}),U0({has:Z.wv,get:Z.nv,set:Z.Tn}),U0({has:Z.yv,get:Z.pv,set:Z.Vn}),U0({has:Z.zv,get:Z.qv,set:Z.Wn}),U0({has:Z.Av,get:Z.rv,set:Z.Xn}),U0({has:Z.Rn,get:Z.Qn,set:Z.qk}),U0({has:Z.xv,get:Z.ov,set:Z.Un}),U0({has:Z.Cv,get:Z.tv,set:Z.Zn}),U0({has:Z.Dv,get:Z.uv,set:Z.ao}),U0({has:Z.ut,get:Z.us,set:Z.Po}),
U0({has:Z.vt,get:Z.vs,set:Z.Qo}),U0({has:Z.Bv,get:Z.sv,set:Z.Yn}),U0({has:Z.nt,get:Z.ms,set:Z.Io}),U0({has:Z.st,get:Z.ss,set:Z.No}),U0({has:Z.tt,get:Z.ts,set:Z.Oo}),U0({has:Z.rt,get:Z.rs,set:Z.Mo}),U0({has:Z.qt,get:Z.qs,set:Z.Lo}),U0({has:Z.lt,get:Z.ks,set:Z.Go}),U0({has:Z.pt,get:Z.ps,set:Z.Ko}),U0({has:Z.kt,get:Z.hs,set:Z.Fo}),U0({has:Z.mt,get:Z.ls,set:Z.Ho}),U0({has:Z.ot,get:Z.ns,set:Z.Jo})];b.jc.attach(function(d){S6(c,d)});S6(this,a)};t(T6,T);var S6=function(a,b){T0(a.j,b,a.h)&&a.g.W(a.jc,void 0)};var vga=function(a){var b=new qL,c=b.signal(),d=a.o.get(),e=a.ha.get();d=e&&d?d.G(e):null;var f=new T6(U6(d),{jc:c});f.T(b);a.ha.then(function(g){a.Zi.then(function(){var h=N2(a);h&&b.W(c,U6(h));a.o.then(function(m){b.W(c,U6(m.G(g)));m.onChange.attach(function(){b.W(c,U6(m.G(g)))},f)})})});return f},U6=function(a){return a?(a=new Set(L(a,13)),(new R6).qk(!0).Sn(!0).Tn(a.has(3)).Vn(a.has(1)).Wn(a.has(8)).Xn(a.has(9)).Un(a.has(5)).Zn(!0).ao(a.has(2)).Po(a.has(4)).Qo(a.has(7)).Yn(a.has(10)).Io(a.has(11)).No(a.has(12)).Oo(a.has(14)).Mo(a.has(15)).Lo(a.has(16)).Go(a.has(17)).Ko(a.has(18)).Fo(a.has(19)).Ho(a.has(20)).Jo(a.has(21))):
new R6};var V6=function(a){xv.call(this);var b=this;this.g=null;this.l=a;this.h=!1;$R(this,{shouldConserveBattery:function(){return b.h}});(a=navigator.getBattery?navigator.getBattery():null)&&a.then&&a.then(function(c){b.g=c;var d=new W(b);b.T(d);d.listen(c,["chargingchange","levelchange"],b.j);b.j()})};t(V6,xv);V6.prototype.j=function(){var a=!this.g.charging&&.1>this.g.level;this.h!=a&&(this.h=a,this.N("eb"),this.l.Y(a?2805:2806))};var wga=function(a){sK(a,K6)||HK(a,K6,function(b){return new V6(new nL(b))})};var xga=function(a){var b=void 0===b?!1:b;Gaa(a);rfa(a);wga(a);Zfa(a);a.registerService(YY,Cfa);Sea(a);iga(a);jga(a);a.registerService(K2,qga);efa(a);Ofa(a);a.registerService(Qca,vga);Uea(a);ST(a);FV(a);Yfa(a);fe()&&!b?Efa(a):Ffa(a)};var W6=function(a,b,c){T.call(this);this.o=a;this.h=b;this.m=c;this.g=this.l=null;this.j=[];this.u=HR(DR("DmKtxe"),1)};t(W6,T);
var GW=function(a,b,c){var d=a.l;if(null==d)return ct(Error("Cannot upload LogData without a sessionId."));if(!a.g)return ct(Error("Cannot upload LogData without hangout data."));null!=a.h&&N(b,1,a.h);X6(a,b);N(b,2,a.g.hb);N(b,3,a.g.ha);a.g.Zc.C(b);N(b,21,c);return a.o(b,d)},FX=function(a,b,c){Y6(a,c,b)},IX=function(a,b,c,d,e,f){return Y6(a,c,e,b,d,f,!0)},Y6=function(a,b,c,d,e,f,g){g=void 0===g?!1:g;var h=a.l;if(null==h)return ct(Error("Cannot upload LogData without a sessionId."));if(!a.g)return ct(Error("Cannot upload LogData without hangout data."));
if(null==c&&null==d)return ct("Nothing to upload");null!=c&&a.j.push(c);if(!g&&a.j.length!=a.u)return bt();c=a.g;g=c.lr;var m=c.mr;c=new OE;N(c,2,(new Date(m)).toString());GR(DR("xKXfOb"))?N(c,133,m):N(c,133,g.g);m=-2;g&&(g=wR(X(),g),m=Math.round(g/1E3));N(c,3,m);N(c,1,h);null!=d&&N(c,29,d);null!=e&&N(c,30,e);null==f||ld(xe(f))||N(c,100,f);Cl(c,5,a.j);a.j=[];d=new SG;S(d,4,c);N(d,2,a.g.hb);null!=a.g.ha&&(N(d,3,a.g.ha),N(d,24,a.g.ha));null!=a.h&&N(d,1,a.h);X6(a,d);e=a.g.Zc;e.o&&(f=Q(d,OE,4)||new OE,
N(f,4,e.o),S(d,4,f));e.C(d);N(d,21,b);return a.o(d,h)},X6=function(a,b){N(b,11,a.m.g.slice()||[]);N(b,12,a.m.h);N(b,18,a.m.j)};var Z6=function(a,b,c,d){var e=d.Lw;d=d.Vw;QM.call(this);this.L=a;this.g=b;this.u=c;this.V=e;this.X=d;this.o=new W(this);this.T(this.o);this.G=new BQ;this.h=this.j=null;this.l=-1;this.m=null};t(Z6,QM);var a7=function(a){a.g.info("["+a.h+"] stopping session sync");$6(a);wN(a.o,a.u,"m",a.D);a.j=null},KX=function(a){null!=a.j&&(a.g.info("["+a.h+"] session resync requested"),$6(a),b7(a))};Z6.prototype.ba=function(){a7(this);QM.prototype.ba.call(this)};
var b7=function(a){a.g.info("["+a.h+"] sending session query");var b=null;a.X&&-1!==a.l&&(b=a.l);a.L(a.j,b,{Xe:3E3,St:8}).then(a.J,a.H,a)},c7=function(a){$6(a);a.g.info("["+a.h+"] scheduling session query");a.m=Av(function(){a.m=null;b7(a)},a.V)},$6=function(a){null!=a.m&&(Bv(a.m),a.m=null)},e7=function(a,b){b=JQ(a.G,b);a.N(new d7(b))};
Z6.prototype.J=function(a){if(null!=this.j){var b=a.da().ac();this.g.info("["+this.h+"] session query returned version "+(b+", have "+this.l));a=Q(a,hC,2);if(b>this.l)if(a)this.l=b,e7(this,a);else throw Error("Expected new session version to contain session data");c7(this)}};
Z6.prototype.H=function(a){if(null!=this.j){var b=a instanceof d6?a:new d6(""+a);switch(b.status){case 4:case 5:case 7:case 11:this.g.error("["+this.h+"] stopping sync due to session query error: "+a);a7(this);this.N(new f7(b.status,b.desc));break;default:this.g.K("["+this.h+"] ignoring session query error: "+a),c7(this)}}};
Z6.prototype.D=function(a){var b=this;if(null!=this.j)if(a=a.notification,a.wc().some(function(e){return e.l()==b.j}))this.g.info("["+this.h+"] removed by session push"),a7(this),this.N(new f7(11,"session removed"));else{var c=a.da();c=c&&c.ac();if(void 0===c)this.g.info("["+this.h+"] session push with no version, have "+this.l);else if(this.g.info("["+this.h+"] session push provided version "+(c+", have "+this.l)),!(c<=this.l)){var d=a.Rb().find(function(e){return e.l()==b.j});null!=d&&(this.g.info("["+
this.h+"] modified by session push"),this.l=c,e7(this,d));null!=L(a,4)&&a.Wb().l()==this.j&&(this.g.info("["+this.h+"] resync requested by session push"),KX(this))}}else this.g.info("["+this.h+"] not syncing. Ignoring session push.")};var g7=new Ru("fb"),h7=new Ru("gb"),f7=function(a,b){U.call(this,g7);this.status=a;this.message=b};t(f7,U);var d7=function(a){U.call(this,h7);this.sessionDescription=a};t(d7,U);var i7=function(a,b,c){T.call(this);var d=this;this.u=a;this.F=b;this.s=new bU("realtime.media.api.a.BulkJoinProcessor");this.j=c;this.g=null;this.h=new Promise(function(e){return d.D=e});this.o=new Promise(function(e){d.m=e});this.l=!1};t(i7,T);
var yga=l(["Connecting Bulk Join Handler for ",""]),zga=l(["Disconnecting Bulk Join Handler for ",""]),Aga=l(["Set sessionId ",""]),Cga=function(a,b){if(!a.g){a.s.info(yga,b);var c=a.u.attach(function(d){return Bga(a,d)},a);a.o.finally(function(){a.s.info(zga,b);a.u.detach(c)})}a.s.info(Aga,b);a.g=b},Dga=l(["Ignoring bulk join request for "," since we already are handling one."]),Ega=l(["Adding session "," to bulk join for ",""]),Fga=l(["Failed to get down streams!"]),Gga=l(["Appending "," MediaStreamAdds to bulk join for ",
""]),Hga=l(["Failed to get down streams!"]),Iga=l(["We bulk joined a different hangoutId! Session had "," and bulk join was for ",""]),Jga=l(["Bulk join complete. UpStreams: ",". DownStreams: ","."]),Bga=function(a,b){var c=b.XK,d=b.NK,e,f,g,h,m,q,r;return Ba(function(u){switch(u.g){case 1:e=MM(c);if(!e)return u.return();f=e;if(a.l)return a.s.K(Dga,f),u.return();a.s.info(Ega,a.g,f);a.l=!0;g=d(TC(new RC,OC(QC(PC(new NC,a.g),f),1))).then(j7).catch(function(A){eU(a.s,k7(A)).Ta(Fga)});h=new Promise(function(A){a.s.info(Gga,
a.j.length,f);a.j.length?A(Kga(a,d,f)):A(d(TC(new RC,OC(QC(PC(new NC,a.g),f),2))).then(j7).catch(function(z){eU(a.s,k7(z)).Ta(Hga)}))});return v(u,a.h,2);case 2:return m=u.h,f!==m?v(u,h,7):v(u,h,5);case 5:return q=u.h,v(u,g,6);case 6:r={cp:q,nm:u.h};a.s.info(Jga,l7(r.cp),l7(r.nm));a.m(r);u.fb(0);break;case 7:a.s.Ta(Iga,m,f),a.m({}),u.g=0}})},Lga=l(["Failed to add streams! Pushing streams back ","."]),Kga=function(a,b,c){var d=a.j.concat(),e=d.map(function(f){f=QQ(a.F,a.g,c,f);N(f,6,void 0);return f});
a.j.length=0;return b(SC(new RC,MC(new LC,e))).then(function(f){var g,h,m;return Ba(function(q){if(1==q.g)return v(q,a.h,2);g=q.h;if(c!==g)throw Error("Added streams from another hangout");h=Q(f,nD,3);if(!h||!LM(h))throw Error("Failed to add streams");m=KM(h);return q.return({version:m,data:R(h,zC,4)||[]})})}).catch(function(f){eU(a.s,k7(f)).Ta(Lga,d.length);a.j.unshift.apply(a.j,p(d))})},Mga=l(["Set hangout id: ",""]),Nga=l(["Bulk never occurred before session finalization."]),Oga=function(a){return Ba(function(b){a.l||
(a.s.info(Nga),a.l=!0,a.m({}));return b.return(a.o)})},j7=function(a){a=Q(a,pD,4);if(!a)throw Error("Missing Search Response");if(!LM(a))throw Error("Early search failed");var b=KM(a);if(null!=b)return{version:b,data:R(a,zC,2)||[]};throw Error("No version found!");},l7=function(a){return a?a.data.length+" items ("+a.version+")":"NONE"},k7=function(a){return a instanceof Error?a:Error(""+a)};var Pga=function(a){a=[[1300,L(a,2)],[1301,L(a,3)],[1302,L(a,4)],[1303,L(a,5)],[1304,L(a,6)],[1305,L(a,7)],[1306,L(a,8)],[1307,L(a,9)],[1308,L(a,10)],[1309,L(a,11)],[1310,L(a,12)],[1311,L(a,13)]].map(function(b){var c=n(b);b=c.next().value;c=c.next().value;return ZJ(YJ(new XJ,b),c)});return bK(a)};var RQ=new BQ,Qga=l(["sessionId=",""]),m7=function(a,b,c,d){var e=d.Fr;d=d.Dc;MS.call(this);var f=this;this.s=Zf("realtime.media.api.apiary.RemoteSession");this.m=dU(new bU("realtime.media.api.apiary.RemoteSession"),function(g){return g(Qga,dY(f))});this.Pa=a;this.ta=b;this.ob=d;this.Fa=this.h=this.Ca=this.g=null;this.Gh=e;this.G=new nL(a);this.l=this.j=null;this.ga=jt();this.ua=[];this.ab=!1;this.Da=new W(this);this.T(this.Da);this.D=c;this.T(this.D);this.o="INITIAL";this.xa=new Set;this.J=[];this.H=
[];this.V=new Map;this.u=new Map;this.X=new Map;this.pa=new Map;this.Oa=new Map;this.gb=new Map;this.La=jt();this.na=jt();this.Za=new Set;this.Ab=uK(a,MK);this.L=new i7(this.ta.h.J,RQ,this.J);this.T(this.L);$R(this,{mediaSessionStartTime:function(){return(new Date(f.nb)).toString()},mediaUpStreams:function(){return f.j&&f.j.za()},mediaDownStreams:function(){return f.l&&f.l.za()}})};t(m7,MS);
var Rga=l(["state changed "," -> ",""]),nW=function(a,b,c,d){a.o!=b&&(a.m.info(Rga,a.o,b),a.o=b,a.N(new rR(b,c,d)))};m7.prototype.getState=function(){return this.o};m7.prototype.ym=function(){return this.ga.fa.then(function(a){return HN(a)})};
var Tga=function(a,b,c,d){null!=a.j?ag(a.s,"Local streams collection already initiated"):(a.j=zO(a.Pa,a.ta,[c,2,b],xO,vO,"o","MediaUpStream"),a.T(a.j),a.j.La.attach(function(e){var f=e.Mb;a.m.Ta(n7,e.reason);a.stop(f)},a),a.j.start(void 0,d),a.j.onChange.attach(function(e){return Sga(a,e.Sc,e.Bc,e.removed)},a))},mW=function(a,b){null!=a.l?ag(a.s,"Remote streams collection already initiated"):(a.l=zO(a.Pa,a.ta,[b,1,""],xO,vO,"o","MediaDownStream"),a.T(a.l),a.l.La.attach(function(c){var d=c.Mb;a.m.Ta(n7,
c.reason);a.stop(d)},a),a.l.oc.attach(function(c){c=c.Ye;bg(a.s,"Received early streams push notification with "+c.length+" modified streams");if(a.ab&&0!=c.length)if("INPROGRESS"==a.o)o7(a,c);else if("STARTING"==a.o||"STARTED"==a.o)a.H=bc(a.H,c)},a),a.ga.resolve(a.l),BN(a.l),a.l.onChange.attach(function(c){var d=c.Sc,e=c.Bc;c=c.removed;0<d.length&&o7(a,d);0<e.length&&Uga(a,e);0<c.length&&Vga(a,c)},a))},Wga=l(["Stopping due to down stream search failure: ",""]),Yga=function(a,b,c,d){b=EN(a.l.l).On(b).Nn(c);
nt(a.l.start(b,d),function(e){a.m.Ta(Wga,e);a.G.Y(3950,{sessionId:a.g||void 0});a.stop(16,"Down stream search failure: "+e)});Xga(a)},Xga=function(a){null==a.xa?C(a.s,"Attempting to install collection filters with null participants. setParticipants() must be called prior to this call!"):cO(a.l,function(b){return a.xa.has(b.Z()||"")})};m7.prototype.start=function(a){var b=this;cY(this,a);nW(this,"STARTED");this.La.fa.then(function(){Zga(b)});return!0};var $ga=l(["Connecting to Hangout: ",""]);
m7.prototype.vh=function(a,b){this.m.info($ga,a);switch(this.o){case "INITIAL":C(this.s,"Connect to hangout called before starting.");return;case "STOPPED":case "FINISHED":C(this.s,"Connect to hangout called after end.");return}null!=this.h?ag(this.s,"Multiple hangouts per RemoteSession not yet supported."):(this.h=a,this.Fa=b,this.nb=X().g,a=this.L,b=this.h,a.s.info(Mga,b),a.D(b),this.La.resolve())};
var aha=l(["Finished connecting to Hangout: "," with participantId: "," and participantLogId: ",""]),Zga=function(a){var b;Ba(function(c){if(1==c.g)return a.m.info(aha,a.h,a.Fa,a.ob),v(c,Oga(a.L),2);b=c.h;Tga(a,a.g,a.h,b.cp);p7(a,a.g,a.h,a.J);Ub(a.J);Yga(a,a.g,a.h,b.nm);0<a.H.length&&(o7(a,a.H),Ub(a.H));nW(a,"INPROGRESS");a.na.resolve();q7(a);c.g=0})};m7.prototype.resume=function(){this.u=new Map};var bha=l(["Stopping with endCause: ",""]);
m7.prototype.stop=function(a,b){this.m.info(bha,a);if("STOPPED"==this.o)return!1;Cs(this.D);null==this.g||"STARTING"!=this.o&&"INPROGRESS"!=this.o||(Cs(this.j),this.j=null,Cs(this.l),this.l=null,this.ga.reject(a),this.ga=jt());nW(this,"STOPPED",a,b);return!0};
m7.prototype.rn=function(a){var b=this;if(a=oF(a)){var c=new Set;a.forEach(function(d){var e=vF(d)[0]>>>0;switch(CF(d)){case 1:if(2===BF(d)){VU.get(d)||b.G.g(6642);var f=X(),g=L(d,10)||0,h=b.Oa.get(e)||{bp:0,Ym:new uR(0)},m=0<Math.max(g-h.bp,0);b.Oa.set(e,{bp:g,Ym:m?f:h.Ym});g=b.pa.get(e);if(null!=g){h=g.settings.width;var q=g.settings.height,r=g.settings.framerate,u=b.s;N(d,114,h);N(d,115,q);if(r){N(d,159,Math.ceil(1E3/r));var A=L(d,65)||0;N(d,65,30>r?A|65536:A&-65537)}bg(u,"Set last request width="+
h+", height="+q+(r?", fps="+r:"")+" for ssrc "+e+" in jmidata.");b.X.get(e);m=!r7(b,e)||m;h=!!sl(d,59);if(g.Rm!=m||g.zg!=h)g.Rm=m,g.zg=h,g.ze&&(g.ze=f.g);if(q=VU.get(d))b.gb.get(e),g.ze&&(q.h=m,q.Dg=f.g-g.ze,h&&cha(b,q.g,L(d,138)||0))}}break;case 0:c.add(e)}})}};m7.prototype.yb=function(a){this.N(new jR(a.sessionDescription))};m7.prototype.zb=function(a){switch(a.status){case 11:var b=25;break;default:b=15}this.stop(b,"ClientResponseStatus: "+a.status+" with desc: "+a.message)};
var s7=function(a,b){var c;(c=a.h!=b.h||a.j!=b.j)||(a=a.yc(),b=b.yc(),c=null==a&&null==b?!1:null==a||null==b?!0:a.width!=b.width||a.height!=b.height);return c},cha=function(a,b,c){if(0<c&&b&&sl(b,14)){a.G.Y(4577);var d=Pga(b);cK(d,[25]);a.Ab.then(function(e){qX(e,d)})}},dha=l(["Attempting to add local streams before we have a sessionId."]),TW=function(a,b){switch(a.o){case "INITIAL":case "STARTING":case "STARTED":dc(a.J,b);return;case "STOPPED":case "FINISHED":C(a.s,"Add local streams called after end.");
return}var c=a.g,d=a.h;null==c?a.m.Ta(dha):null==d?dc(a.J,b):p7(a,c,d,b)},eha=l(["Ignore addLocalStream due to pending add for the same stream ",""]),fha=l(["Stopping due to addLocalStream failure: ",""]),p7=function(a,b,c,d){d.forEach(function(e){var f=QQ(RQ,b,c,e),g=xO.h(f);if(a.ua.some(function(m){return mc(g,m)}))a.m.K(eha,e);else{var h=a.j.get().some(function(m){return lL(xO,f,m)});h||"d"==e.ka()||a.ua.push(g);h=h?MN(a.j,f):a.j.add(f);"d"!=e.ka()&&nt(h,function(m){a.m.Ta(fha,m);a.G.Y(3951,{sessionId:a.g||
void 0});a.stop(16,"addLocalStream failure: "+m)})}})},YW=function(a,b){a.na.fa.then(function(){var c=a.j.pb(b.g),d=KQ(b.ka());N(c,2,d);d=new EC;var e=b.qc();N(d,1,e);S(c,10,d);MN(a.j,c)})},faa=function(a,b){"a"==b.ka()&&a.na.fa.then(function(){var c=a.j.pb(b.g),d=KQ(b.ka());N(c,2,d);d=new EC;N(d,1,!0);S(c,10,d);MN(a.j,c)})},gha=l(["New session id: ",""]),cY=function(a,b){if(a.g!=b){a.m.info(gha,b||"{unset}");a.g=b;Cga(a.L,b);a.Da.listen(a.D,h7,a.yb);a.Da.listen(a.D,g7,a.zb);var c=a.D;a=dY(a);a=void 0===
a?b:a;c.g.info("["+a+"] starting session sync");c.j=b;c.h=a;c.o.listen(c.u,"m",c.D);b7(c)}},dY=function(a){if(null==a.g)return"{unset}";null==a.Ca&&(a.Ca=a.g.substring(0,6)+"{#"+(a.g.length-7)+"}"+a.g.substring(a.g.length-1));return a.Ca},hha=l(["Attempting to signal screencast started, but no video stream found!"]),WW=function(a){if(null!=a.j){var b=a.j.get().find(function(d){return 2==d.ka()});if(null==b)a.m.K(hha);else{b=a.j.pb(b);N(b,2,2);N(b,11,!1);var c=new EC;N(c,1,!1);S(b,10,c);MN(a.j,b)}}},
iha=l(["Attempting to signal screencast ended, but no video stream found!"]),XW=function(a){if(null!=a.j){var b=a.j.get().find(function(c){return 2==c.ka()});null==b?a.m.K(iha):(b=a.j.pb(b),N(b,2,2),N(b,11,!0),MN(a.j,b))}};m7.prototype.se=function(a){var b=this;this.V=new Map;a.forEach(function(c){var d=t7(c.Z(),c.Ba());b.V.set(d,c)});q7(this)};
var jha=l(["Ignoring changed stream requests because we don't have a sessionId."]),kha=l(["Ignoring changed stream requests because we don't have a hangoutId."]),q7=function(a){switch(a.o){case "INITIAL":case "STARTING":case "STOPPED":case "FINISHED":return}if(null==a.g)a.m.Ta(jha);else if(null==a.h)a.m.Ta(kha);else{var b=new Map,c=KQ("v");a.l.get().forEach(function(e){if(e.ka()==c){var f=t7(e.Z(),e.Ba());b.set(f,e)}});var d=[];a.V.forEach(function(e,f){if(b.has(f)){var g=a.u.get(f);if(!g||s7(g,e))a.u.set(f,
e),d.push(u7(a,b.get(f),e))}else D(a.s,"Skipping stream request for "+e.Z()+" (no matching stream was found).")});a.u.forEach(function(e,f){if(!a.V.has(f)){var g=LP(PP(OP(new FP(e))),!1).ja();s7(e,g)&&(a.u.delete(f),(e=b.get(f))?d.push(u7(a,e,g)):D(a.s,"Unable to turn off stream request for "+f+" (no matching stream was found)."))}});lha(a,d)}},mha=l(["Sending stream request: "," with streamId: ",""]),u7=function(a,b,c){a.Za.has(c.Z())&&(c=JP(new FP(c),"").ja());var d=c.yc(),e=c.h;if(!d||0>=d.height||
0>=d.width||!c.j)e=!1;var f=b.Wh(),g=a.g,h=a.h,m=c,q=e;e=new zC;e.ik(f);e.fk(1);e.hk(g);e.gk(h);g=m.Z()||null;N(e,6,g);g=KQ(m.ka());N(e,2,g);g=m.Ba();N(e,7,g);g=new XB;N(g,2,q);q=m.yc();null!=q&&(h=new OB,N(h,1,q.height),N(h,2,q.width),N(h,3,m.j),S(g,3,h));S(e,9,g);a.m.info(mha,c,f);b=Q(b,BC,8);a.G.Y(5149);S(e,8,b);d&&b&&L(b,1)&&(b=L(b,1)[0]>>>0,null!=b&&(f={width:d.width,height:d.height,framerate:c.j||void 0},(c=a.pa.get(b))?c.settings=f:(c={ze:0,Rm:!r7(a,b),zg:!1,settings:f},a.pa.set(b,c)),f=76800<
f.width*f.height,!c.ze&&f?c.ze=X().g:f||(c.ze=0),bg(a.s,"Building map: last request width/height "+d.width+"/"+d.height+" for ssrc "+b)));return e},lha=function(a,b){b=n(b);for(var c=b.next();!c.done;c=b.next())MN(a.l,c.value)},r7=function(a,b){a=a.X.get(b);return void 0===a?!1:null!==a.eu},v7=function(a,b){var c=!!(b.qc()||b.l&8);b.eb().forEach(function(d){if(r7(a,d)!==c){var e=c?X():null;a.X.set(d,{eu:e})}})},nha=function(a,b){b.eb().forEach(function(c){a.gb.set(c,X())})},t7=function(a,b){return(void 0===
a?"":a)+"/"+(void 0===b?"":b)},oha=l(["Notified of new remote stream: ",""]),o7=function(a,b){w7(a,b,function(c){var d=c;a.Gh&&(d=c.filter(function(e){return e.Z()!=a.Fa}));q7(a);d.forEach(function(e){a.m.info(oha,e);v7(a,e);nha(a,e)});a.N(new PS(d,[],[]))})},pha=l(["Received modified remote stream: ",""]),Uga=function(a,b){w7(a,b,function(c){c.forEach(function(d){a.m.info(pha,d);v7(a,d)});a.N(new PS([],c,[]))})},qha=l(["Removing remote stream: ",""]),Vga=function(a,b){w7(a,b,function(c){c.forEach(function(d){a.m.info(qha,
d);d.eb().forEach(function(e){a.X.delete(e)});d=t7(d.Z(),d.Ba());a.u.delete(d)});a.N(new PS([],[],c))})},w7=function(a,b,c){var d=rha(a,b);null==d?C(a.s,"Failed to parse streamInfos: "+d):0==d.length?C(a.s,"Got empty streamInfos: "+b):c(d)},rha=function(a,b){return SQ(b).map(function(c){if(""==c.Ba()){var d=sha[c.ka()];c=WO(new TO(c),d).ja();a.Za.add(c.Z())}return c})},tha=l(["Terminating to handle failover."]),Sga=function(a,b,c,d){0<b.length&&b.map(function(e){return xO.h(e)}).forEach(function(e){ac(a.ua,
function(f){return mc(e,f)})});0<d.length?0==a.j.get().length&&(a.m.info(tha),nW(a,"STOPPED",26)):0<c.length&&(b=VQ(c),null==b?C(a.s,"Failed to parse stream requests: "+JSON.stringify(c.map(function(e){return e.va()}))):0==b.length?C(a.s,"Got empty stream requests: "+JSON.stringify(c.map(function(e){return e.va()}))):a.N(new QS(b)))},n7=l(["Stopping due to stream collection failure: ",""]),x7={},sha=(x7.a="1",x7.v="2",x7.d="3",x7);var y7=function(){wZ.apply(this,arguments)};t(y7,wZ);var z7=function(a,b){return new b6(a.h,WM(a),function(){return eN(a,b)})};y7.prototype.dn=function(a,b){var c=this.h.h,d=z7(c,b);return new W6(function(e,f){return f6(d,e,f)},c.Vb(),new kM(L(c.g,14),sl(c.g,8)||!1,!!sl(c.g,16)),a)};y7.prototype.gn=function(a,b,c){var d=this.h.h,e=z7(d,c);e=uha(this,e,d);return new m7(a,d,e,{Fr:b.Gh,Dc:c})};
var uha=function(a,b,c){var d=GR(DR("M3bN6b"));a=xY(a.h,"realtime.media.session.MediaSessionSyncer");var e=M(Q(c.g,NL,13),1,3E4);return new Z6(function(f,g,h){return Gfa(b,f,g,h)},a,c.j,{Lw:e,Vw:d})};vZ({Rd:y7,priority:1});var A7=function(a,b){U.call(this,"hb");this.sessionId=a;this.g=new Map(b)};t(A7,U);var B7=null,C7=null,D7=null;function E7(){var a=B7;a&&"suspended"===a.state&&a.resume()}function F7(){B7||(B7=new (window.AudioContext||window.webkitAudioContext),C7=new yv(2E3),D7=new W,D7.listen(C7,"tick",function(){return E7()}),E7(),C7.start());return B7};var G7=function(a){if("string"===typeof a){var b=Number(a);a=0==b&&ld(a)?NaN:b}return 1E3>a?a/2E3:2E3>a?(a-1E3)/2E3+.5:3E3>a?(a-2E3)/2E3+1:4E3>a?(a-3E3)/2E3+1.5:6E3>a?(a-4E3)/4E3+2:1E4>a?(a-6E3)/8E3+2.5:15E3>a?(a-1E4)/1E4+3:19E3>a?(a-15E3)/8E3+3.5:22E3>a?(a-19E3)/6E3+4:32767>=a?(a-22E3)/21534+4.5:5};var H7=function(a){T.call(this);this.g=null;var b=a;mf&&(b=this.g=a.clone(),b.getAudioTracks().forEach(function(c){return c.enabled=!0}));this.l=b};t(H7,T);H7.prototype.ba=function(){this.g&&([].concat(p(this.g.getAudioTracks()),p(this.g.getVideoTracks())).forEach(function(a){a.stop()}),this.g=null);T.prototype.ba.call(this)};H7.prototype.stream=function(){return this.l};var I7=function(a){H7.call(this,a);this.h=F7().createAnalyser();this.h.fftSize=2048;this.j=F7().createMediaStreamSource(this.stream());this.j.connect(this.h)};t(I7,H7);I7.prototype.ba=function(){this.j.disconnect();H7.prototype.ba.call(this)};var vha=function(a){var b=new Uint8Array(a.h.fftSize);a.h.getByteTimeDomainData(b);a=256*b.reduce(function(c,d){return Math.max(c,Math.abs(d-128))},0);return G7(a)};var wha=l(["",""]),J7=function(a,b,c,d){xv.call(this);var e=this;this.R=jU(dU(new bU("realtime.media.audio.AudioOutput"),function(f){return f(wha,e)}));this.o=d&&uK(d,NK);0===a.getAudioTracks().length&&this.Y(6549);this.u=a;this.j=new W(this);this.T(this.j);this.volume=0;this.l=b?new I7(a):null;this.T(this.l);this.D=c};t(J7,xv);J7.prototype.toString=function(){return"AudioOutput(stream="+this.u.id+", volume="+this.volume+")"};var xha=l(["Setting requested volume to ","."]);
J7.prototype.Xb=function(a){this.R.info(xha,a);this.volume=a};J7.prototype.Ia=function(){return this.u};J7.prototype.ba=function(){this.Xb(0);xv.prototype.ba.call(this)};var yha=l(["Rebuilding."]);J7.prototype.m=function(){this.R.info(yha)};J7.prototype.Y=function(a,b,c){this.o&&this.o.then(function(d){d.Y(a,{Jc:b,Zb:c})})};var K7=function(a,b){U.call(this,"playing_error");this.code=a;this.message=b};t(K7,U);var L7=function(a,b,c,d,e){J7.call(this,b,c,d,e);this.h=a;this.g=[];a=HR(DR("AgRW1b"),0);this.G=Math.pow(10,-a/20);this.Xb(1)};t(L7,J7);L7.prototype.toString=function(){return"HtmlAudioOutput(stream="+this.Ia().id+", volume="+this.volume+", elements.length="+this.g.length+")"};var zha=l(["Lowering volume to ","."]);
L7.prototype.Xb=function(a){J7.prototype.Xb.call(this,a);1>this.G&&(a*=this.G,this.R.info(zha,a));if(this.h){var b=Math.ceil(a)-this.g.length;if(0<b)this.H(b);else if(0>b){b=-b;this.R.info(Aha,b);for(var c=0;c<b;++c){var d=this.g.pop();d.srcObject=null;this.h.Ns(d)}}0<a&&(this.g[0].volume=a-(this.g.length-1))}};L7.prototype.m=function(){J7.prototype.m.call(this);var a=this.volume;this.Xb(0);this.Xb(a)};var Bha=l(["Adding "," elements."]);
L7.prototype.H=function(a){this.R.info(Bha,a);for(var b=[],c=0;c<a;++c){var d=qg(this.h,"AUDIO");d.srcObject=this.Ia();b.push(d)}Cha(this,b)};
var Dha=l(["Failed to set sink IDs. Error: ",""]),Eha=l(["Setting audio output device is not supported in browser."]),Cha=function(a,b){var c=[];b.forEach(function(d){var e=jt(),f=!1;c.push(e.fa);var g=d.play();g&&g.then(Ia,function(h){a.N(new K7(-1,h))});Av(function(){f||a.Y(5298)},15E3);vN(a.j,d,"playing",function(){f=!0;e.resolve()});vN(a.j,d,"error",function(){return a.N(new K7(d.error.code,d.error.message))});a.g.push(d);a.h.appendChild(a.h.g.body,d)});gt(c).then(function(){return a.N("playing")});
""!==a.D&&(mf?nt(Fha(a,b),function(d){a.R.Ta(Dha,d);throw d;}):a.R.info(Eha))},Aha=l(["Removing "," elements."]),Fha=function(a,b){b=b.map(function(c){return bt().then(function(){var d=Date.now();a.Y(5269,void 0,"stream id: "+a.Ia().id);return c.setSinkId(a.D).then(function(){a.Y(5270,Date.now()-d,"stream id: "+a.Ia().id)},function(e){a.Y(5124,Date.now()-d,"stream id: "+a.Ia().id+" "+e);e&&("TypeError"===e.name?a.Y(5155,void 0,""+e):"AbortError"===e.name?a.Y(5156,void 0,""+e):"NotFoundError"===e.name?
a.Y(5157,void 0,""+e):"SecurityError"===e.name&&a.Y(5158,void 0,""+e));throw e;})})});return gt(b).then(function(){})};var M7=function(){W.call(this);this.s=new bU("realtime.media.stats.OutputTracker");this.j=new Map;this.h=new Map;this.g=new Map;tN(this,document,"visibilitychange",this.l,!1,this)};t(M7,W);
var Gha=l(["recordBeforeAudioStop: No info found for ssrc ",""]),Hha=l(["recordBeforeAudioStop: No matching element found for ssrc ",""]),Iha=function(a,b,c){var d=a.g.get(b);d?$b(d,function(e){return e.He==c})?0==d.length&&a.g.delete(b):a.s.K(Hha,b):a.s.K(Gha,b)},O7=function(a,b){var c=a.j.get(b);c&&c.forEach(function(e){return N7(a,b,e)});var d=a.h.get(b);if(!d)return null;a.h.delete(b);c=Jha(d);d=Kha(d);return null!=c||null!=d?{Kh:c,Lh:d}:null},Lha=l(["Non-monotonic frame count: ",""]),Mha=l(["Negative fps! s:",
" e:",""]),N7=function(a,b,c){c=c.h();c.end.g<c.start.g?a.s.K(Lha,c.end.g):(a.h.has(b)||a.h.set(b,[]),-1>c.h()&&a.s.K(Mha,c.start,c.end),a.h.get(b).push(c))};M7.prototype.l=function(){var a=this;this.j.forEach(function(b,c){b.forEach(function(d){N7(a,c,d)})})};
var Jha=function(a){var b=0,c=0;a.forEach(function(d){b+=d.end.g-d.start.g;c+=d.end.timestamp-d.start.timestamp});return 0==c?null:b/c},Kha=function(a){var b=[];a.forEach(function(g){g.j||(b.push({t:g.start.timestamp,c:1,i:g}),b.push({t:g.end.timestamp,c:-1,i:g}))});kc(b);var c=0,d=0,e=-Infinity,f=[];b.forEach(function(g){var h=g.t,m=h-e;0<f.length&&(c+=h-e,d+=L(f[0],29)*m);1==g.c?(Vb(f,g.i),ic(f,Nha)):Zb(f,g.i);e=h});return 0==c?null:d/c},Oha=function(a,b){a=a.j.get(b)||a.g.get(b);if(!a)return null;
var c=0,d=!1;a.forEach(function(e){e=e.g();null!=e&&(c=Math.max(e,c),d=!0)});return d?c:null},P7=function(a,b){return(a=a.j.get(b))?Nb(a,function(c,d){d=d.j();return null==c?d:null==d?c:Math.max(c,d)},null):null};M7.prototype.ba=function(){this.j.clear();this.g.clear();this.h.clear();W.prototype.ba.call(this)};var Q7=new WeakMap,Nha=function(a,b){var c=b.g-a.g;0==c&&(c=L(b,29)-L(a,29));return c},Pha=function(a){this.He=a};var S7=function(a,b,c,d){d=void 0===d?function(f,g,h,m,q){return new L7(f,g,h,m,q)}:d;xv.call(this);var e=this;this.s=new bU("realtime.media.audio.output.OutputManager");this.h=new W;this.T(this.h);this.u=a;this.j=b;this.m=c;this.o=d;this.g=new Map;this.l=!1;new nL(this.m);vN(this.h,jg(a.g),"click",function(){R7(e)});vN(this.h,jg(a.g),"keyup",function(){R7(e)})};t(S7,xv);
var Qha=l(["Creating audio output for stream (id=","), ssrc (","),\n     and output device (id=",")"]),Rha=l(["Stream (id=",") with no SSRC added."]),Sha=function(a,b,c,d){var e=b.id;a.s.info(Qha,e,c,"");b=a.o(a.u,b,d,"",a.m);a.g.set(e,{Tl:b,ssrc:c});c?(a=a.j,a.g.has(c)||a.g.set(c,[]),a.g.get(c).push(new Pha(b))):a.s.K(Rha,e);return b},Tha=l(["Attempted to remove a non-existing or already removed audio\n       stream (id=",") in output manager."]),Uha=l(["Removing audio output for stream (id=","), ssrc (",
")."]),Vha=l(["Unusual removal of stream (id=",") which had no SSRC."]),T7=function(a,b){if(a.g.has(b)){var c=a.g.get(b),d=c.Tl;c=c.ssrc;a.s.info(Uha,b,c);c?Iha(a.j,c,d):a.s.K(Vha,b);a.g.delete(b);Cs(d)}else a.s.K(Tha,b)},Wha=l(["Rebuilding audio output (streamId=",") to unblock playback."]),R7=function(a){a.l||(a.l=!0,a.g.forEach(function(b,c){b=b.Tl;a.s.info(Wha,c);b.m()}))};var U7=function(){this.g=new Map};U7.prototype.smooth=function(a){for(var b=this,c=n(this.g.keys()),d=c.next();!d.done;d=c.next())d=d.value,a.has(d)||this.g.delete(d);a.forEach(function(e,f){var g=b.g.get(f);void 0!==g&&(e.volume=.75*e.volume+.25*g);b.g.set(f,e.volume)})};var V7=function(a){this.g=a};V7.prototype.l=function(a){var b=this.g;if(b=b.m?Array.from(new Int32Array(b.g.HEAP32.buffer,b.g._GetEchoHistogram(),b.g._GetEchoHistogramSize())):null){a=n(oF(a));for(var c=a.next();!c.done;c=a.next())if(c=c.value,1===BF(c)&&0===CF(c)){var d=Array.from(b);N(c,153,d||[]);N(c,154,5);N(c,155,245201848)}}};var W7=function(a){this.g=0;this.h=new Map([[0,0],[1,4],[2,a?2:1],[3,1073741824],[4,1073741824]])};W7.prototype.l=function(a){a=n(oF(a));for(var b=a.next();!b.done;b=a.next())if(b=b.value,2===BF(b)&&0===CF(b)){var c=this.h.get(this.g),d=Q(b,WE,196)||new WE;c=N(d,1,c);S(b,196,c)}};var MY=["L","K"],X7=function(a,b){var c=void 0===b?{}:b;b=void 0===c.Mw?1100:c.Mw;var d=void 0===c.Nw?400:c.Nw,e=void 0===c.Qw?500:c.Qw,f=void 0===c.Rw?300:c.Rw,g=c.Yq,h=c.Fu;c=void 0===c.zr?50:c.zr;W.call(this);this.D=a;this.G=b;this.H=d;this.M=e;this.J=f;this.o=g;this.Cf=h;this.F=c;this.s=new bU("realtime.media.api.webrtc.PassiveListener");this.g=!1;this.l=g;this.h=this.j=null};t(X7,W);X7.prototype.ba=function(){Bv(this.j);W.prototype.ba.call(this)};var Xha=l([""," listener mode is enabled."]);
X7.prototype.m=function(){var a=this,b=this.h.Sb()||this.h.tj();b!==this.g&&(this.g=b,Bv(this.j),this.j=Av(function(){a.s.K(Xha,a.g?"Passive":"Active");a.u()},this.g?this.G:this.H))};var Yha=l(["Finish transition to\n          "," listener mode."]);X7.prototype.u=function(){var a=Math.min(Math.max(this.l+(this.g?1:-1)*this.F,this.o),this.Cf);this.l=a;this.D(a);(this.g?this.l>=this.Cf:this.l<=this.o)?(this.j=null,this.s.K(Yha,this.g?"passive":"active")):this.j=Av(this.u,this.g?this.M:this.J,this)};var Y7={audio:"a",video:"v",data:"d",application:"d"};var Z7=function(a,b){b=void 0===b?{}:b;this.l=a;this.j=b;this.m=[];this.G=new Set;this.u="ICE";this.o="full";this.C=null},$7=function(a){if(a.C)return a.C;var b=Math.pow(2,53)*Math.random(),c=[];c.push(new hS("v","0"));c.push(new hS("o","- "+b+" 2 IN IP4 127.0.0.1"));c.push(new hS("s","-"));c.push(new hS("t","0 0"));b=a.j.jp?Zha(a):$ha(a);0<a.m.length&&c.push(a.g.apply(a,["group","BUNDLE"].concat(p(a.m))));c.push(a.g("ice-options","trickle"));c.push.apply(c,p(aia(a,a.u,a.o)));c.push(a.g("msid-semantic",
"WMS","*"));c=new AS(c);a.C=new BS(c,b);return a.C},$ha=function(a){return[a.l.wa,a.l.qa,a.l.Wa].filter(function(b){return null!=b}).map(function(b,c){var d=eQ(b),e=UP(b);a.h&&(e=a.h.media[c].g.get("mid").g);return a8(a,b.h,e,d,[],!0,!0)})},Zha=function(a){var b=a.h?a.h.media:[],c=a.j.bn||bia(a),d=!!a.j.bn,e=!!a.j.bn,f=!1,g=[];c.forEach(function(h,m){var q=h.send,r=h.receive,u=h.type,A=h.stream;h=h.mid;var z=[];a.h||"a"!==u||d||(d=r=!0);a.h||"v"!==u||e||(e=r=!0,a.j.lu&&z.push.apply(z,p(a.j.lu)));
"d"!==u||f||(f=r=q=!0);if(b[m]&&b[m].Ag){var H=b[m];r=!0;H.g.get("rid").forEach(function(O,za){"send"===O.g&&z.push(za)})}a.h?b[m]&&b[m].wj&&(q=!0):q=q||!!A;A=A?[A]:[];h||a.h||(h="mid_"+m);g.push(a8(a,u,h,A,z,q,r))});return g},bia=function(a){var b=cia(a,a.l),c=a.D?a.D.media:[],d=[];c.forEach(function(r){var u=Y7[r.mediaType];r=r.g.get("mid").g;d.push({type:u,mid:r,send:!1,receive:!1,stream:null})});var e=dia(c),f=eia(c,a.h);if(a.h){c=a.h;for(var g=0;g<c.media.length;g++){var h=c.media[g],m=h.g.get("mid").g;
if(g<d.length)d[g].mid=m;else{var q=Y7[h.mediaType];d.push({type:q,mid:m,send:!1,receive:!1,stream:null});h.wj&&(h=f.get(q)||[],f.set(q,[].concat(p(h),[g])))}}}b.forEach(function(r){var u=r.type,A=(r=r.stream)&&(r.j||r.de);if(A&&(A=e.get(A),void 0!==A)){d[A].stream=r;return}(A=f.get(u))&&0<A.length?(u=A.shift(),d[u].stream=r):a.h||d.push({type:u,stream:r,mid:null,send:!1,receive:!1})});return d},cia=function(a,b){var c=[];b=[b.wa,b.qa,b.Wa];a=Math.max.apply(Math,[a.h?0:1].concat(p(b.map(function(e){return eQ(e).length}))));
for(var d={df:0};d.df<a;d={df:d.df},d.df++)b.forEach(function(e){return function(f){var g=eQ(f)[e.df];f=f.h;(g||0===e.df)&&c.push({type:f,stream:g})}}(d));return c},fia=function(a,b){a=a.l;switch(b){case "a":return a.wa;case "v":return a.qa;case "d":return a.Wa;default:Eb()}},gia=function(a,b,c){b=[new hS("m",new gS(Kc(Y7)[b],"0","RTP/SAVPF",["0"])),new hS("c","IN IP6 ::"),a.g("inactive")];c&&b.push(a.g("mid",c));return new yS(b)},a8=function(a,b,c,d,e,f,g){var h=fia(a,b),m=a.l.g,q=cc(a.l.h),r=!f&&
!g;hf&&r&&(c=null);c&&!a.m.includes(c)&&a.m.push(c);if(r)return gia(a,b,c);r=[];var u=Kc(Y7)[b],A=RP(h),z=h.g,H="RTP/SAVPF";m&&m.g&&(H=z?"DTLS/SCTP":"UDP/TLS/RTP/SAVPF");var O="DTLS/SCTP"===H?[z.Cb()]:A.map(function(za){return za.Hd.toString()});r.push(new hS("m",new gS(u,"9",H,O)));u="inactive";f&&g?u="sendrecv":g?u="recvonly":f&&(u="sendonly");r.push.apply(r,p(hia(a,c,u)));r.push.apply(r,p(iia(a,m)));r.push.apply(r,p(jia(a,q)));r.push.apply(r,p(kia(a,h,g)));r.push.apply(r,p(lia(a,A,b,mia(SP(h)))));
(b=h.Ae())&&r.push.apply(r,p(nia(b)));0<e.length&&r.push.apply(r,p(b8(a,"recv",e)));r.push.apply(r,p(z?[a.g("sctpmap",z.Cb().toString(),z.getName(),z.g.toString())]:[]));r.push.apply(r,p(oia(a,d)));return new yS(r)};Z7.prototype.g=function(a,b){for(var c=[],d=1;d<arguments.length;++d)c[d-1]=arguments[d];return new hS("a",new fS(a,c.join(" ")))};
var hia=function(a,b,c){var d=[];d.push(new hS("c","IN IP6 ::"));d.push(a.g("rtcp","9","IN IP6 ::"));d.push(a.g("rtcp-mux"));b&&d.push(a.g("mid",b));d.push(a.g(c));a=Mb(a.j.jx||[],function(e){return this.g("x-google-flag",e)},a);d.push.apply(d,p(a));return d},iia=function(a,b){var c=b&&b.h||"123456789012345678901234",d=[];d.push(a.g("ice-ufrag",b&&b.j||"1234567890123456"),a.g("ice-pwd",c));b&&(a.u=b.ac(),a.o=b.o);b&&b.g&&(d.push(a.g("fingerprint",b.g)),d.push(a.g("setup",a.h?b.C:"actpass")));return d},
aia=function(a,b,c){if("ICE"==b){if("lite"==c)return[a.g("ice-lite")]}else Eb("google-ice is no longer supported.");return[]},jia=function(a,b){var c;0<b.length&&(c=b[0]);return null!=c?[a.g("crypto",c.h.toString(),c.g,c.j)]:[]},kia=function(a,b,c){return SP(b).map(function(d){var e=d.id.toString();if(d.uri.includes("rtp-stream-id"))if(!a.h||c)e+="/recvonly";else return null;return a.g("extmap",e,d.uri)}).filter(function(d){return null!=d})},lia=function(a,b,c,d){var e=[];b.forEach(function(f){var g=
f.Hd.toString(),h=f.getName(),m=f.h;if("v"===c||"d"===c)m=9E4;h=h+"/"+m;"a"===c&&1<(f.g||0)&&(h+="/"+f.g);e.push(a.g("rtpmap",g,h));h=f.Gd;if(void 0!==Bc(h)){var q=[];xc(h,function(r,u){u&&r&&q.push(u+"="+r)});h="";0<q.length&&(h=q.join("; "));e.push(a.g("fmtp",g,h))}"a"===c&&!a.h&&f.m&&e.push(a.g("rtcp-fb",g,"nack"));if(rP(f,"vp8")||rP(f,"vp9")||rP(f,"h264"))e.push(a.g("rtcp-fb",g,"ccm fir"),a.g("rtcp-fb",g,"nack"),a.g("rtcp-fb",g,"goog-remb")),d&&e.push(a.g("rtcp-fb",g,"transport-cc"));rP(f,"opus")&&
d&&e.push(a.g("rtcp-fb",g,"transport-cc"))});return e},nia=function(a){var b=[];a=a.g;-1!=a&&b.push(new hS("b","AS:"+a));return b},oia=function(a,b){var c=[];b.forEach(function(d){if(!ld(xe(d.de))){var e=d.Ba(),f=d.de,g=d.j?d.j:f;a.j.jp&&c.push(a.g("msid",f+" "+g));a.G.add(f);var h=cc(d.C).map(function(q){return a.g.apply(a,["ssrc-group",q.g].concat(p(q.eb())))});c.push.apply(c,p(h));if(d.h&&0<d.h.ee().length){var m=d.h;h=m.Ag?"send":"recv";m=m.ee().reverse();c.push.apply(c,p(b8(a,h,m)))}d.eb().forEach(function(q){c.push(a.g("ssrc",
q.toString(),"cname:"+e));c.push(a.g("ssrc",q.toString(),"msid:"+f+" "+g))})}});return c},b8=function(a,b,c){var d=c.map(function(f){return a.g("rid",f,b)}),e=!hf||!Xp(68);return 0<d.length?(c=a.g("simulcast",b,(e?"rid=":"")+c.join(";")),[].concat(p(d),[c])):[]};da.Object.defineProperties(Z7.prototype,{F:{configurable:!0,enumerable:!0,set:function(a){this.D=a;this.C=null}},H:{configurable:!0,enumerable:!0,set:function(a){this.h=a;this.C=null}}});
function mia(a){return(mf&&Xp(59)||nf&&GR(DR("AepsRe")))&&a.some(function(b){return b.uri.includes("http://www.ietf.org/id/draft-holmer-rmcat-transport-wide-cc-extensions")})}function dia(a){var b=new Map;a.forEach(function(c,d){c=c.g.get("msid");c.h&&(c=n(c.g.split(" ")),c.next(),c=c.next().value,b.set(c,d))});return b}
function eia(a,b){var c=new Map;a.forEach(function(d,e){if(!(d.g.get("msid").h||b&&b.media[e]&&!b.media[e].wj)){d=Y7[d.mediaType];var f=c.get(d)||[];c.set(d,[].concat(p(f),[e]))}});return c};function c8(a,b){var c=void 0===c?{}:c;a=new Z7(a,c);a.F=void 0===b?null:b;return $7(a)}
function pia(a){var b=a.g,c=a.m,d=a.l,e=a.Cb(),f=a.D,g=a.G,h=a.h,m=a.j;a=[a.u,b,c.toLowerCase(),a.o,d,e,"typ",Kc(eS)[h]];switch(h){case "LOCAL":"TCP"==c&&a.push("tcptyp","active");break;case "STUN":case "RELAY":case "PEER_REFLEX":f&&g&&a.push("raddr",f,"rport",g);break;default:Eb("Unexpected candidate type: "+h)}a.push("generation",m);return new RTCIceCandidate({sdpMLineIndex:0,candidate:"candidate:"+a.join(" ")})};var g8=function(a){xv.call(this);var b=this;this.j=qia(this,a);this.h=new k1("realtime.media.api.webrtc.PeerConnection");this.g=ria(this);this.m=jt();this.l=new Map;this.g.onicecandidate=this.u.bind(this);mf&&(this.g.onaddstream=function(c){(c=c.stream)&&b.N(new d8(c,c.id))},this.g.onremovestream=function(c){if(c=c.stream)b.N(new e8(c,c.id)),f8(c)});this.o=sia(this)};t(g8,xv);
g8.prototype.ba=function(){nf?this.g.getSenders().forEach(function(a){return a.track&&a.track.stop()}):this.g.getRemoteStreams().forEach(function(a){return f8(a)});this.close();xv.prototype.ba.call(this)};
var sia=function(a){var b,c;return Ba(function(d){if(mf)return d.return();a.g.addTransceiver("audio",{direction:"sendonly",streams:[new MediaStream]});b=a.g.addTransceiver("video",{direction:"sendonly",streams:[new MediaStream]});if(!a.j.af||nf||mf)return d.fb(0);c=[{rid:"f"},{rid:"h",scaleResolutionDownBy:2},{rid:"q",scaleResolutionDownBy:4}];return v(d,b.sender.setParameters({encodings:c}),0)})},ria=function(a){var b=a.j.Om;hf&&0<b.length&&(b[0].urls=b[0].urls.slice(0,2));b={iceServers:b,bundlePolicy:"max-bundle"};
var c=RTCPeerConnection||webkitRTCPeerConnection;if(mf){var d={mandatory:{RtpDataChannels:!1,DtlsSrtpKeyAgreement:!0},optional:[{googHighStartBitrate:!0},{googHighBitrate:!0},{googPayloadPadding:!0},{googSkipEncodingUnusedStreams:!0},{googScreencastMinBitrate:100},{googVeryHighBitrate:!0}]};a.j.Zk?(d.optional.push({googCpuOveruseDetection:!0}),d.optional.push({googCpuOveruseEncodeUsage:!0}),d.optional.push({googCpuUnderuseThreshold:55}),d.optional.push({googCpuOveruseThreshold:85})):d.optional.push({googCpuOveruseDetection:!1});
null==a.j.Od&&null==a.j.Ld||d.optional.push({googDscp:!0});b.sdpSemantics=mf?"plan-b":"unified-plan";a.h.info("Creating new PeerConnection with config="+Fs(b)+" constraints="+Fs(d))}else a.h.info("Creating new PeerConnection with config="+Fs(b));return new c(b,d)},qia=function(a,b){return"high"!=b.Od&&"high"==b.Ld?(a.h.error("Misconfigured DSCP priorities: Video priority > Audio."),oT(nT(b,null),null)):b},i8=function(a,b,c){c||(c={});null==c.id&&(h8+=2,c.id=h8);return a.g.createDataChannel(b,c)};
g8.prototype.close=function(){"closed"!=this.g.signalingState&&this.g.close();tv(this.g);this.g.onicecandidate=null;this.g.oniceconnectionstatechange=null;this.g.onaddstream=null;this.g.onremovestream=null;this.g.ondatachannel=null};
var tia=function(a,b){var c,d;return Ba(function(e){if(mf)return a.g.addStream(b),e.fb(0);c=b.getTracks()[0];d=a.g.getTransceivers().find(function(f){return("sendonly"==f.direction||"sendrecv"==f.direction)&&f.receiver.track.kind==c.kind});return v(e,d.sender.replaceTrack(c),0)})},uia=function(a,b){if(mf)a.g.removeStream(b);else{var c=b.getTracks()[0];a.g.getTransceivers().find(function(d){return d.sender.track==c}).sender.replaceTrack(null)}},j8=function(a){return a.g.getReceivers?a.g.getReceivers():
[]},via=function(a){return a.g.getSenders?a.g.getSenders():[]};g8.prototype.u=function(a){if(a=a.candidate)a.candidate?(a=ES(a.candidate),this.N(new k8(a))):this.h.K("RTCIceCandidate.candidate had no value.")};
var wia=function(a,b){var c,d,e;return Ba(function(f){switch(f.g){case 1:return v(f,a.o,2);case 2:return qa(f,3),v(f,a.g.createOffer(b),5);case 5:return c=f.h,d=DS(c.sdp),a.m.resolve(mf&&Xp(74)?d.session.sessionId:a.g.id),f.return(d);case 3:throw e=sa(f),a.h.error("createOffer Failed: "+e),e;}})};g8.prototype.getStats=function(){var a=this;return Ba(function(b){return 1==b.g?v(b,a.g.getStats(),2):b.return(b.h)})};
var xia=function(a){return Ba(function(b){return b.return(new Promise(function(c){return a.g.getStats(c)}))})},l8=function(a,b){b=pia(b);b=bt(a.g.addIceCandidate(b));nt(b,function(c){a.h.K("addIceCandidate Failed: "+c)});return b},m8=function(a,b){var c=new RTCSessionDescription({type:"offer",sdp:CS(b)});b=bt(a.g.setLocalDescription(c));nt(b,function(d){a.h.K("setLocalDescription Failed: "+d);a.h.K("The current signalingState is : "+a.g.signalingState);a.h.K("The offending SDP was: \n"+c.sdp)});return b.then(Ia)},
zia=function(a,b){var c=new RTCSessionDescription({type:"answer",sdp:CS(b)}),d=bt(a.g.setRemoteDescription(c));nt(d,function(e){a.h.K("setRemoteDescription Failed: "+e);a.h.K("The current signalingState is : "+a.g.signalingState);a.h.K("The offending SDP was: \n"+c.sdp);throw e;});d.then(function(){return yia(a,b)});return d.then(Ia)},yia=function(a,b){var c=new Map;b.media.forEach(function(e){var f=e.g.get("mid").g;f&&(e=e.g.get("msid"),e.h&&(e=n(e.g.split(" ")).next().value,c.set(f,e)))});var d=
new Map(a.l);a.g.getTransceivers().forEach(function(e){var f=e.mid;e=e.receiver.track;e.enabled&&f&&(f=c.get(f))&&(a.l.has(f)?d.delete(f):(e=new MediaStream([e]),a.l.set(f,e),a.N(new d8(e,f))))});d.forEach(function(e,f){a.l.delete(f);a.N(new e8(e,f))})},k8=function(a){U.call(this,"jb");this.candidate=a};t(k8,U);var d8=function(a,b){U.call(this,"kb");this.stream=a;this.g=b};t(d8,U);var e8=function(a,b){U.call(this,"lb");this.stream=a;this.g=b};t(e8,U);
var f8=function(a){return[].concat(p(a.getAudioTracks()),p(a.getVideoTracks())).forEach(function(b){return b.stop()})},h8=0;function n8(a){return a.af&&a.Ql};var o8=function(){this.h=new Set;var a=Math.max(void 0===a?2:a,2);var b=Math.min(void 0===b?4294967295:b,4294967295);a>b&&(a=2,b=4294967295);this.g=a;this.j=b},p8=function(a){for(var b=a.j-a.g+1,c=Math.floor(a.g+b*Math.random()),d=0;a.h.has(c);)if(c<a.j?++c:c=a.g,++d>=b)return null;a.h.add(c);return c};var q8=function(a,b,c){this.ia=a;this.g=b;this.D=c;this.s=new bU("realtime.media.api.webrtc.PeerNegotiator");this.j=this.ue=null;this.G=0;this.u=this.Jd=this.nf=null;this.l=[];this.C=[];this.m=this.o=!1;this.h=[];this.F=!0},Aia=l(["Negotiation (id=","): Starting."]),Bia=l(["Negotiation (id=","): Successfully completed."]),Dia=function(a){var b,c,d,e,f;return Ba(function(g){switch(g.g){case 1:b=a.G++;c=a.F;a.F=!1;d=a.u;a.s.info(Aia,b);e=!0;if(!c){g.fb(2);break}e=a.Jd;if(mf){g.fb(2);break}f=vQ(qQ(uQ(d,
cQ(ZP(d.wa,[]),[])),cQ(ZP(d.qa,[]),[])),cQ(ZP(d.Wa,[]),[]));return v(g,r8(a,b,f),4);case 4:e=!0;case 2:if(!e){g.fb(5);break}return v(g,Cia(a,b,d),5);case 5:return v(g,r8(a,b,d),7);case 7:a.s.info(Bia,b),g.g=0}})},Cia=function(a,b,c){var d,e,f,g,h;return Ba(function(m){switch(m.g){case 1:d=a.ia;qa(m,2);e=null;f=a.m;a.m=!1;g=!mf||f;if(!g){m.fb(4);break}return v(m,Eia(a,c,f),5);case 5:e=m.h;case 4:if(f){var q=FS(e);a.Jd=wQ(a.localDescription,q.g)}a.Jd&&(a.nf=a.Jd,a.Jd=null);e=mf?c8(a.nf,a.ue):s8(a,e);
t8(a);return v(m,m8(d,e),6);case 6:a.ue=e;ra(m,0);break;case 2:throw h=sa(m),u8(a,"Failed to create or set local offer.",b,h),h;}})},s8=function(a,b){!mf&&(nf||mf)&&a.g.af&&(b=Fia(b));return b},Fia=function(a){var b=new o8;a.media.forEach(function(c,d){if("video"==c.mediaType&&c.Ag&&!c.g.get("ssrc-group").get("SIM").h){var e=c.g.get("ssrc-group").get("FID").g.split(" "),f=Array.from(c.C),g=[e[0],p8(b),p8(b)],h=[e[1],p8(b),p8(b)];f.push(iS("a=ssrc-group:SIM "+g.join(" ")));var m=c.g.get("ssrc").get(e[0]).m;
g.forEach(function(q,r){var u=h[r];0<r&&(f.push(iS("a=ssrc-group:FID "+q+" "+u)),m.forEach(function(A){f.push(iS("a=ssrc:"+q+" "+A))}),m.forEach(function(A){f.push(iS("a=ssrc:"+u+" "+A))}))});a.media[d]=new yS(f)}});return a},r8=function(a,b,c){var d,e,f,g,h;return Ba(function(m){if(1==m.g){qa(m,2);c=Gia(a,c);d=a.j;f=(e=a.g.gp)?["conference"]:[];var q={jx:f,jp:!mf||!1};q=void 0===q?{}:q;q=new Z7(c,q);q.H=a.ue;q.F=void 0===d?null:d;g=$7(q);return v(m,Hia(a,g),4)}if(2!=m.g)return ra(m,0);h=sa(m);u8(a,
"Failed to create or set remote answer.",b,h);throw h;})},Iia=l(["Creating initial offer."]),Jia=l(["Initial offer successfully created."]),Lia=function(a,b){var c,d;return Ba(function(e){if(1==e.g)return a.s.info(Iia),v(e,v8(a,0,0,!1),2);if(3!=e.g){c=e.h;c=s8(a,c);a.s.info(Jia);d=Kia(a,c,b);if(mf)return a.Jd=d,e.fb(3);a.D.then(function(f){f.g(6161)});a.ue=c;a.nf=d;t8(a);return v(e,m8(a.ia,c),3)}return e.return(d)})},Mia=l(["Queueing setting of the initial local description."]),Nia=l(["Generating initial local offer SDP."]),
Oia=l(["Setting initial local offer."]),Pia=l(["Initial local offer set successfully."]),Qia=function(a){if(!mf)return Promise.resolve();a.s.info(Mia);return w8(a,function(){var b,c,d,e;return Ba(function(f){switch(f.g){case 1:b=a.ia;c=a.localDescription;a.Jd=null;a.nf=c;a.s.info(Nia);if(mf){d=c8(c);f.fb(2);break}return v(f,v8(a,0,0,!1),3);case 3:d=f.h;case 2:return e=d,e=s8(a,e),a.ue=e,a.s.info(Oia),t8(a),v(f,m8(b,e),4);case 4:a.s.info(Pia),f.g=0}})})},Ria=function(a,b){a.u=b;return x8(a)},Sia=function(a,
b,c){var d=a.localDescription;0<b.length&&(b=ZP(d.wa,b),d=uQ(d,b));0<c.length&&(c=ZP(d.qa,c),d=qQ(d,c));a.Jd=d;return x8(a)},Tia=l(["Queueing negotiation."]),Uia=l(["Skipping negotiation since remote description has been set yet."]),x8=function(a){if(a.u)return a.s.info(Tia),w8(a,function(){return Dia(a)});a.s.info(Uia);return Promise.resolve()},Via=function(a,b){var c=a.ia;c.g.remoteDescription&&c.g.remoteDescription.sdp?(t8(a),b.forEach(function(d){return l8(c,d)})):a.h.push.apply(a.h,p(b))},Wia=
l(["Cancelling "," pending negotiation(s)."]);q8.prototype.cancel=function(){this.s.info(Wia,this.l.length);this.C.forEach(function(a){return a.reject(new Xs("Negotiations cancelled due to cancel() call."))});this.l.length=0;this.C.length=0};
var w8=function(a,b){var c;return Ba(function(d){c=jt();a.l.push(b);a.C.push(c);y8(a);return v(d,c.fa,0)})},y8=function(a){var b,c,d;Ba(function(e){switch(e.g){case 1:if(0===a.l.length||a.o)return e.return();b=a.l.shift();c=a.C.shift();a.o=!0;qa(e,2,3);return v(e,b(),5);case 5:c.resolve();case 3:e.F=[e.j];e.m=0;e.l=0;a.o=!1;y8(a);ta(e);break;case 2:d=sa(e),c.reject(d),e.fb(3)}})},Xia=l(["Adding "," pending ICE candidates after setRemoteDescription."]),Hia=function(a,b){return Ba(function(c){if(1==
c.g)return t8(a),v(c,zia(a.ia,b),2);a.j=b;0<a.h.length&&(a.s.info(Xia,a.h.length),t8(a),a.h.forEach(function(d){return l8(a.ia,d)}),a.h.length=0);c.g=0})},Eia=function(a,b,c){var d,e,f;return Ba(function(g){return 1==g.g?(e=d=1,mf||(d=eQ(b.wa).length,e=eQ(b.qa).length,f=new Set([].concat(p(eQ(b.wa)),p(eQ(b.qa))).map(function(h){return h.de})),a.j.media.forEach(function(h){if("inactive"!==h.j){var m=h.g.get("msid");if(m.h){m=n(m.g.split(" "));var q=m.next().value;m.next();f.has(q)||("audio"===h.mediaType?
d++:"video"===h.mediaType&&e++)}}})),v(g,v8(a,d,e,c),2)):g.return(g.h)})},Yia=l(["Creating a local offer (isIceRestart=",")."]),v8=function(a,b,c,d){var e,f,g,h,m,q,r,u,A,z,H;return Ba(function(O){if(1==O.g){a.s.info(Yia,d);t8(a);e={};if(mf)e.offerToReceiveAudio=!0,e.offerToReceiveVideo=!0;else{f=a.ia.g;g=f.getTransceivers();h=b;m=c;q=n(g);for(r=q.next();!r.done;r=q.next())u=r.value,u.stopped||"sendrecv"!==u.direction&&"recvonly"!==u.direction||(A=u.receiver.track,"audio"===A.kind?h--:"video"===A.kind&&
m--);for(z=0;z<h;z++)f.addTransceiver("audio",{direction:"recvonly"});for(H=0;H<m;H++)f.addTransceiver("video",{direction:"recvonly"})}d&&(e.iceRestart=!0);return v(O,wia(a.ia,e),2)}return O.return(O.h)})},Zia=l(["Creating the initial local description from the offer SDP."]),$ia=l(["RTX is enabled, but offer does not contain RTX codec."]),Kia=function(a,b,c){a.s.info(Zia);b=FS(b);var d=a.g.Ae();d&&(b=qQ(b,b.qa.dl(d)));c=c(b);b=vQ(qQ(uQ(b,aQ(ZP(b.wa,VP(c.wa)),!0)),aQ(ZP(b.qa,VP(c.qa)),!0)),aQ(ZP(b.Wa,
VP(c.Wa)),!0));c=RP(b.qa);c=aja(c);var e=c.findIndex(function(f){return kd(f.getName(),"rtx")});a.g.Mf&&-1==e&&a.s.K($ia);c=bja(a,c);a.g.bh&&mf&&(c=c.map(function(f){return vP(new sP(f),"useadaptivelayering_v2","true").ja()}));n8(a.g)&&(c=c.map(function(f){return vP(new sP(f),"useadaptivelayering","true").ja()}));d&&0<c.length&&mf&&(e=c[0],d=d.h,-1!=d&&(e=vP(new sP(e),"x-google-min-bitrate",d.toString()).ja()),c[0]=e);b=qQ(b,WP(b.qa,c));b=cja(b);a.g.Yk||(b=qQ(b,null));a.g.Xk||(b=vQ(b,null));return b},
dja=l(["Altering remote description (",")."]),Gia=function(a,b){a.s.info(dja,"answer");var c=a.nf;b=b.Wa.g?vQ(b,ZP(b.Wa,[])):eja(b);if(b.g.g){var d=b.g.C;d||(d="passive");b=wQ(b,oQ(b.g,d))}d=b.qa&&RP(b.qa)||[];d=0<d.length&&rP(d[0],"vp9");c=VP(c.qa).some(function(e){return!e.Zd()});d&&c&&!fja(a)&&(b=qQ(b,kQ(b.qa,"vp8")));return b},cja=function(a){if(!(mf&&Xp(59)||nf&&GR(DR("AepsRe")))){var b=a.wa,c=a.qa;b=YP(b,SP(b).filter(function(d){return"http://www.ietf.org/id/draft-holmer-rmcat-transport-wide-cc-extensions-01"!==
d.uri}));c=YP(c,SP(c).filter(function(d){return"http://www.ietf.org/id/draft-holmer-rmcat-transport-wide-cc-extensions-01"!==d.uri}));a=uQ(a,b);a=qQ(a,c)}GR(DR("fpSHtb"))&&(b=a.qa,b=YP(b,SP(b).filter(function(d){return"urn:3gpp:video-orientation"!==d.uri})),a=qQ(a,b));return a},z8=function(a){var b=function(c,d){return c.some(function(e){return e.Hd==d})};return a.filter(function(c,d,e){return!kd(c.getName(),"rtx")||b(e,"apt"in c.Gd?c.Gd.apt:null)})},aja=function(a){var b=function(c){return zc(c.Gd,
function(d,e){return kd(e,"packetization-mode")&&"1"===d})};a=a.filter(function(c,d,e){var f=!0;e.forEach(function(g,h){h!=d&&g.getName()==c.getName()&&kd(c.getName(),"H264")&&(f=f&&b(c))});return f});return z8(a)},bja=function(a,b){b=b.filter(function(c){return kd(c.getName(),"vp8")||kd(c.getName(),"h264-svc")||a.g.Mf&&kd(c.getName(),"rtx")||a.g.rf()&&kd(c.getName(),"vp9")||a.g.aj()&&kd(c.getName(),"h264")});return z8(b)},eja=function(a){var b=bP(eP(XO(WO(UO(new TO,"d"),"dataSendChannel"),"dataSendChannel"),
[0]),"dataSendChannel").ja(),c=VP(a.Wa);c.push(b);return vQ(a,ZP(a.Wa,c))},gja=l(["Rengotiation (id=",") FAILED: ",". Error=",""]),hja=l(["Last local SDP was: ",""]),ija=l(["Last remote SDP was: ",""]),jja=l(["PeerConnection's current local SDP is: ",""]),kja=l(["PeerConnection's current remote SDP is: ",""]),u8=function(a,b,c,d){a.s.K(gja,c,b,d);a.ue&&a.s.K(hja,CS(a.ue));a.j&&a.s.K(ija,CS(a.j));b=a.ia.g;b.localDescription&&a.s.K(jja,b.localDescription.sdp);b.remoteDescription&&a.s.K(kja,b.remoteDescription.sdp)},
t8=function(a){if("closed"==a.ia.g.signalingState)throw new A8("Negotiation cancelled due to the state of the peer.");},fja=function(a){return a.g.Bk||a.g.qf?!0:(a.D.then(function(b){b.Y(5770)}),!1)};da.Object.defineProperties(q8.prototype,{localDescription:{configurable:!0,enumerable:!0,get:function(){return this.Jd||this.nf}}});var A8=function(a){a=Error.call(this,a);this.message=a.message;"stack"in a&&(this.stack=a.stack);this.name="NegotiationCancelledError"};t(A8,Error);var lja=new Set(["video/vp8"]);var mja=function(a,b){this.s=new bU("realtime.media.api.webrtc.SenderConfigurer");this.l=b;this.j=n8(b);this.h=b.bh&&GR(DR("lSsX3e"));this.m=this.j||this.h;this.o=b.Mf?2:1;this.g=new Map;this.C=a},nja=l(["Configuring video sender params, original: ",""]),oja=l(["Applying video sender params update: ",""]),qja=function(a,b,c,d){var e=d.zg;d=d.mimeType;var f=b.getParameters(),g=!1,h=function(){g||a.s.info(nja,"encodings="+JSON.stringify(f&&f.encodings,null,2));g=!0};if(f.encodings&&f.encodings.length){if(mf){var m=
a.l.Ld;Xp(72)&&null!=m&&f.encodings[0].networkPriority!=m&&(h(),f.encodings[0].networkPriority=m)}var q=pja(a,f.encodings,b.track,c,e,d);a.C.g=q.Ih();f.encodings.forEach(function(r,u){u=q.li(r,u);r.active!==u&&(h(),r.active=u)});g&&(a.s.info(oja,"encodings="+JSON.stringify(f&&f.encodings,null,2)),b.setParameters(f))}},pja=function(a,b,c,d,e,f){return!e&&null!=f&&lja.has(f)&&3===b.length&&a.g.has(d)?a.g.get(d):e&&mf&&10>=c.getSettings().frameRate?rja:sja},B8=function(a,b,c){var d=b.getParameters();
a=a.l.Od;if(d.encodings&&0<d.encodings.length){var e=d.encodings[0],f=!1;tja&&null!=a&&e.networkPriority!=a&&(e.networkPriority=a,f=!0);e.active!==c&&(e.active=c,f=!0);f&&b.setParameters(d)}},uja=function(a,b){return a.m?b.getStats().then(function(c){c=n(c.values());for(var d=c.next();!d.done;d=c.next())if(d=d.value,"codec"===d.type)return d.mimeType.toLowerCase();return null}):Promise.resolve(null)},tja=mf&&Xp(72);function C8(a){return a.width+"x"+a.height}
var sja={li:function(){return!0},Ih:function(){return 2}},rja={li:function(a,b){return 0===b},Ih:function(){return 3}},D8=function(a){var b=a.Wi;this.h=a.rid;this.g=b};D8.prototype.li=function(a,b){return a.rid?a.rid===this.h:b===this.g};D8.prototype.Ih=function(){return 1};var E8=function(a){var b=a.Ej;this.h=new Set(a.ee);this.g=b};E8.prototype.li=function(a,b){return a.rid?this.h.has(String(a.rid)):b<=this.g};E8.prototype.Ih=function(){return 2};
var vja=new Map([[C8(dS),new D8({rid:"f",Wi:2})],[C8(cS),new D8({rid:"h",Wi:1})],[C8(bS),new D8({rid:"q",Wi:0})]]),wja=new Map([[C8(dS),new E8({ee:["q","h","f"],Ej:2})],[C8(cS),new E8({ee:["q","h"],Ej:1})],[C8(bS),new E8({ee:["q"],Ej:0})]]);var F8=function(){this.V=3;this.h=this.j=null;this.G=this.l=this.J=this.D=this.H=0;this.M=1;this.g=this.u=this.o=this.m=this.C=this.F=this.L=0},G8=function(a,b){null==a.j&&(a.j=b);var c=Va();null!=a.h&&a.D+b.getTime()<a.h.getTime()&&(a.D=a.h.getTime()+(c-a.H)-b.getTime());a.h=new Date(b.getTime()+a.D);a.H=c};
F8.prototype.toJson=function(){var a={};return a.jmiVersion=this.V,a.numOfProcessors=this.M,a.totalCpuUsage=this.L,a.tabCpuUsage=this.g?this.F/this.g:null,a.browserCpuUsage=this.g?this.C/this.g:null,a.gpuCpuUsage=this.g?this.m/this.g:null,a.tabJsMemoryAllocated=this.g?this.o/this.g:null,a.tabJsMemoryUsed=this.g?this.u/this.g:null,a};var xja=(new Date(0)).getTime()-(new Date("1900/01/01 00:00 GMT")).getTime(),yja=function(a,b,c){b&&(Ec(a,"googFrameWidthSent")&&(a.googFrameWidthSent=0),Ec(a,"googFrameHeightSent")&&(a.googFrameHeightSent=0));b=Number(a.ssrc);if(null!=b){var d=a.googCaptureStartNtpTimeMs;if(null!=d&&0<d){var e=Oha(c,b);null!=e&&(d=d-xja+1E3*e,a.oneWayDelayMs=Va()-d)}null!=a.bytesReceived&&(d=O7(c,b),null!=d&&(null!=d.Kh&&(a.fpsGraphicsInput=d.Kh),null!=d.Lh&&(a.fpsGraphicsOutput=d.Lh)));d=0;e=a.googCpuLimitedResolution;
var f=a.googBandwidthLimitedResolution,g=a.googViewLimitedResolution;if(null!=e||null!=f||null!=g)"true"==e&&(d|=1),"true"==f&&(d|=2),"true"==g&&(d|=4),a.googAdaptationReason=d;if("number"!==typeof a.googInterframeDelayMax||isNaN(a.googInterframeDelayMax))c=P7(c,b),null!=c&&(a.googInterframeDelayMax=c)}};var I8=function(a,b,c){var d=H8;this.C=uK(a,NK).then();this.h=b;this.l=c;this.j=d;this.g=new Set};I8.prototype.update=function(a,b){var c=this.j(b);b=this.l(b);var d="un";this.g.has(a)?c?(this.g.delete(a),d="r"):d="m":b&&(this.g.add(a),zja(this),d="m");return d};var zja=function(a){a.C.then(function(b){b.Y(a.h)})};var J8=function(a){return"number"!==typeof a||isNaN(a)?-1:a},Aja=function(a,b,c){c?("number"!==typeof a.aecDivergentFilterFraction||isNaN(a.aecDivergentFilterFraction)||N(b,117,a.aecDivergentFilterFraction),"number"!==typeof a.audioInputLevel||isNaN(a.audioInputLevel)||N(b,26,Math.round(a.audioInputLevel)),"number"!==typeof a.googEchoCancellationEchoDelayMedian||isNaN(a.googEchoCancellationEchoDelayMedian)||N(b,46,Math.round(a.googEchoCancellationEchoDelayMedian)),"number"!==typeof a.googEchoCancellationEchoDelayStdDev||
isNaN(a.googEchoCancellationEchoDelayStdDev)||N(b,47,Math.round(a.googEchoCancellationEchoDelayStdDev)),"number"!==typeof a.googEchoCancellationReturnLoss||isNaN(a.googEchoCancellationReturnLoss)||N(b,48,Math.round(a.googEchoCancellationReturnLoss)),"number"!==typeof a.googEchoCancellationReturnLossEnhancement||isNaN(a.googEchoCancellationReturnLossEnhancement)||N(b,49,Math.round(a.googEchoCancellationReturnLossEnhancement)),"number"!==typeof a.googEchoCancellationQualityMin||isNaN(a.googEchoCancellationQualityMin)||
N(b,63,a.googEchoCancellationQualityMin),"number"!==typeof a.googResidualEchoLikelihood||isNaN(a.googResidualEchoLikelihood)||N(b,129,a.googResidualEchoLikelihood),"number"!==typeof a.googResidualEchoLikelihoodRecentMax||isNaN(a.googResidualEchoLikelihoodRecentMax)||N(b,133,a.googResidualEchoLikelihoodRecentMax)):("number"!==typeof a.audioOutputLevel||isNaN(a.audioOutputLevel)||N(b,26,Math.round(a.audioOutputLevel)),"number"!==typeof a.googJitterBufferMs||isNaN(a.googJitterBufferMs)||N(b,37,Math.round(a.googJitterBufferMs)),
"number"!==typeof a.googPreferredJitterBufferMs||isNaN(a.googPreferredJitterBufferMs)||N(b,38,Math.round(a.googPreferredJitterBufferMs)),"number"!==typeof a.googCurrentDelayMs||isNaN(a.googCurrentDelayMs)||N(b,39,Math.round(a.googCurrentDelayMs)),"number"!==typeof a.googExpandRate||isNaN(a.googExpandRate)||b.Wg(a.googExpandRate),"number"!==typeof a.googSpeechExpandRate||isNaN(a.googSpeechExpandRate)||b.ki(a.googSpeechExpandRate),"number"!==typeof a.googPreemptiveExpandRate||isNaN(a.googPreemptiveExpandRate)||
b.hi(a.googPreemptiveExpandRate),"number"!==typeof a.googAccelerateRate||isNaN(a.googAccelerateRate)||b.bi(a.googAccelerateRate),"number"!==typeof a.googSecondaryDecodedRate||isNaN(a.googSecondaryDecodedRate)||b.ii(a.googSecondaryDecodedRate),"number"!==typeof a.googSecondaryDiscardedRate||isNaN(a.googSecondaryDiscardedRate)||b.ji(a.googSecondaryDiscardedRate),"number"!==typeof a.googDecodingCTSG||isNaN(a.googDecodingCTSG)||N(b,81,Math.round(a.googDecodingCTSG)),"number"!==typeof a.googDecodingCTN||
isNaN(a.googDecodingCTN)||N(b,82,Math.round(a.googDecodingCTN)),"number"!==typeof a.googDecodingNormal||isNaN(a.googDecodingNormal)||N(b,83,Math.round(a.googDecodingNormal)),"number"!==typeof a.googDecodingPLC||isNaN(a.googDecodingPLC)||N(b,84,Math.round(a.googDecodingPLC)),"number"!==typeof a.googDecodingCNG||isNaN(a.googDecodingCNG)||N(b,85,Math.round(a.googDecodingCNG)),"number"!==typeof a.googDecodingPLCCNG||isNaN(a.googDecodingPLCCNG)||N(b,86,Math.round(a.googDecodingPLCCNG)),"number"!==typeof a.googDecodingMuted||
isNaN(a.googDecodingMuted)||N(b,134,Math.round(a.googDecodingMuted)))};var Bja={Sf:"bytesReceived",Tf:"bytesSent",eC:"id",dD:"localCandidateId",WF:"readable",sG:"remoteCandidateId",NH:"selected",LK:"writable"},Cja={lx:"googActiveConnection",Sf:"bytesReceived",Tf:"bytesSent",cD:"googLocalAddress",rG:"googRemoteAddress"},Dja={Wx:"bitrateMean",Xx:"bitrateStdDev",YA:"framerateMean",ZA:"framerateStdDev",pl:"framesDecoded",ql:"framesEncoded",bB:"framesReceived",cB:"framesSent",aB:"framesPerSecond",Sf:"bytesReceived",Tf:"bytesSent",XA:"fractionLost",QA:"firCount",yC:"isRemote",
AC:"jitter",IC:"kind",wD:"mediaType",oE:"nackCount",vl:"packetsReceived",vi:"packetsLost",wl:"packetsSent",BF:"pliCount",SF:"qualityLimitationResolutionChanges",wi:"qpSum",tG:"remoteId",eD:"localId",zH:"roundTripTime",Dl:"ssrc",FJ:"trackId",Bz:"codecId",Vz:"contentType",RF:"qualityLimitationReason"},Eja={Sf:"bytesReceived",Tf:"bytesSent",pl:"framesDecoded",ql:"framesEncoded",Np:"hugeFramesSent",vl:"packetsReceived",vi:"packetsLost",wl:"packetsSent",wi:"qpSum",Dl:"ssrc"};var K8=function(){this.j=new Map;this.h=new Map;this.g=new Map};K8.prototype.clear=function(){this.j.clear();this.h.clear();this.g.clear()};
var N8=function(a,b,c,d,e){var f=(e=void 0===e?!0:e)?Eja:Dja,g=b[f.Dl];return null==g?null:d?L8(a.j,g,function(){return new M8(d)}).update(c,b[f.Tf],b[f.wl],e?b[f.vi]:0,b[f.ql],b[f.wi],b[f.Np]):L8(a.h,g,function(){return new M8(d)}).update(c,b[f.Sf],b[f.vl],b[f.vi],b[f.pl],b[f.wi],null)},P8=function(a,b,c,d){d=void 0===d?!0:d;var e=b?d?"false"==b.googActiveConnection?null:b.googLocalAddress+b.googRemoteAddress:"false"==b.selected?null:b.id:null;if(!e)return null;d=d?Cja:Bja;return L8(a.g,e,function(){return new O8}).update(c,
b[d.Tf],b[d.Sf])},L8=function(a,b,c){var d=a.get(b);null==d&&(d=c(),a.set(b,d));return d},M8=function(a){this.u=a;this.g=-1;this.j=this.l=this.h=this.m=this.o=this.C=0};
M8.prototype.update=function(a,b,c,d,e,f,g){var h={bitrate:-1,Dj:-1,sk:-1,oj:-1};if("number"===typeof a&&"number"===typeof b&&"number"===typeof c&&"number"===typeof d){if(a>this.g){var m=c-this.o,q=Math.max(d-this.m,0);m=this.u?m:m+q;h.Dj=0<m?Math.round(100*q/m):-1;0<=this.g&&(q=a-this.g,m=b-this.C,h.bitrate=0<m?Math.round(8*m/q):0)}this.g=a;this.C=b;this.o=c;this.m=d}"number"===typeof e&&"number"===typeof f&&(a=e-this.h,h.sk=0<a?Math.round((f-this.l)/a):-1,this.h=e,this.l=f);"number"===typeof g&&
(h.oj=g-this.j,this.j=g);return h};var O8=function(){this.g=-1;this.h=this.j=0};O8.prototype.update=function(a,b,c){var d=null;if("number"===typeof a&&"number"===typeof b&&"number"===typeof c){if(0<=this.g&&a>this.g){d=a-this.g;var e=b-this.j,f=c-this.h;d={to:0<e?Math.round(e/d):0,fo:0<f?Math.round(f/d):0}}this.g=a;this.j=b;this.h=c}return d};var Hja=function(a,b){this.s=new bU("realtime.media.api.webrtc.JmiStatsParser");this.H=b;this.o=new K8;this.j=null;this.G=uK(a,NK).then();this.h=-1;this.l=new Map;this.u=new Map;this.m=new Map;this.C=new Map;this.g=new Map;this.F=new I8(a,4549,Fja);this.D=new I8(a,4550,Gja);this.M=[this.F,this.D]},Ija=l(["Ignore report with stale timestamp "," from "," of ",""]),Mja=function(a,b,c,d,e,f){Jja(a,b,e);var g=new Map;b.forEach(function(h){if("localcandidate"===h.type){var m=h.stat("networkType");ld(xe(h.id))||
ld(xe(m))||g.set(h.id,Kja[m]||0)}});b.forEach(function(h){var m=h.timestamp&&h.timestamp.getTime()||0;if(m&&m==(a.m.get(h.id)||0))a.C.get(h.id)!=m&&(a.C.set(h.id,m),a.s.info(Ija,m,h.id,h.type));else switch(a.m.set(h.id,m),h.type){case "ssrc":Lja(a,Q8(h),c,d,e,f);break;case "VideoBwe":h=Q8(h);m=new SE;N(m,1,2);N(m,24,2);"number"!==typeof h.googAvailableSendBandwidth||isNaN(h.googAvailableSendBandwidth)||N(m,40,Math.round(h.googAvailableSendBandwidth));"number"!==typeof h.googAvailableReceiveBandwidth||
isNaN(h.googAvailableReceiveBandwidth)||N(m,41,Math.round(h.googAvailableReceiveBandwidth));"number"!==typeof h.googTransmitBitrate||isNaN(h.googTransmitBitrate)||N(m,42,Math.round(h.googTransmitBitrate));"number"!==typeof h.googRetransmitBitrate||isNaN(h.googRetransmitBitrate)||N(m,43,Math.round(h.googRetransmitBitrate));"number"!==typeof h.googTargetEncBitrate||isNaN(h.googTargetEncBitrate)||N(m,124,Math.round(h.googTargetEncBitrate));"number"!==typeof h.googActualEncBitrate||isNaN(h.googActualEncBitrate)||
N(m,125,Math.round(h.googActualEncBitrate));"number"!==typeof h.googBucketDelay||isNaN(h.googBucketDelay)||N(m,80,Math.round(h.googBucketDelay));N(m,2,-1);N(m,3,-1);N(m,4,-1);N(m,5,-1);N(m,6,-1);N(m,7,-1);N(m,8,-1);N(m,9,-1);N(m,10,-1);Dl(e,2,m,SE);break;case "googCandidatePair":m=Q8(h);h=new YE;N(h,3,Math.round(J8(m.googRtt)));N(h,4,Math.round(J8(m.bytesSent)));"number"!==typeof m.packetsSent||isNaN(m.packetsSent)||N(h,90,Math.round(m.packetsSent));"number"!==typeof m.packetsDiscardedOnSend||isNaN(m.packetsDiscardedOnSend)||
N(h,91,Math.round(m.packetsDiscardedOnSend));N(h,6,Math.round(J8(m.bytesReceived)));var q=0;"true"===m.googActiveConnection&&(q|=1);"true"===m.googWritable&&(q|=2);"true"===m.googReadable&&(q|=4);JF(h,q);q=new QD;var r=new QD;N(q,1,m.googLocalAddress||"");N(r,1,m.googRemoteAddress||"");N(q,2,1);N(r,2,1);var u={local:1,stun:2,relay:3};N(q,3,u[m.googLocalCandidateType]||0);N(r,3,u[m.googRemoteCandidateType]||0);u={udp:1,tcp:2,ssltcp:3}[m.googTransportType]||0;N(q,4,u);N(r,4,u);S(h,8,q);S(h,9,r);IF(h,
q.Ia());q=P8(a.o,m,a.h);N(h,5,q?q.to:-1);N(h,7,q?q.fo:-1);m=m.localCandidateId;"string"===typeof m&&!ld(xe(m))&&g.has(m)&&(m=g.get(m),N(h,55,m));Dl(e,13,h,YE)}});a.g.clear()},Nja=l(["Elapsed time in jmidata decreased from "," to\n      ",""]),Jja=function(a,b,c){b=R8(b);a.j||(a.j=b);b=b?(b.getTime()-a.j.getTime())/1E3:-1;0>b||(b<=a.h&&a.s.K(Nja,a.h,b),N(c,1,Math.round(b)),a.h=b)},R8=function(a){var b=null;a.forEach(function(c){(c=S8(c.timestamp))&&0<c.getTime()&&(!b||b.getTime()<c.getTime())&&(b=
c)});return b},Oja=function(a){var b=new Map;a.forEach(function(c){var d=c.stat("ssrc");c=c.stat("audioOutputLevel");ld(xe(d))||ld(xe(c))||(d=parseInt(d,10),c=G7(c),b.set(d,c))});return b},Qja=function(a,b){b.forEach(function(c){if("ssrc"===c.type&&c.names().includes("googExpandRate")){for(var d=new Map,e=n(Pja),f=e.next();!f.done;f=e.next()){f=f.value;var g=c.stat(f);ld(xe(g))||(g=Number(g),isNaN(g)||d.set(f,g))}c=parseInt(c.stat("ssrc"),10);a.g.has(c)||a.g.set(c,[]);a.g.get(c).push(d)}})},Rja=function(a,
b){var c={audio:!1,video:!1};b.forEach(function(d){if("ssrc"===d.type){var e=d.names();if(e.includes("packetsReceived")){var f=Number(d.stat("ssrc"));a.l.has(f)||a.l.set(f,0);d=Number(d.stat("packetsReceived"));0>=d-a.l.get(f)||(a.l.set(f,d),e.includes("audioOutputLevel")?c.audio=!0:e.includes("googFrameRateReceived")&&(c.video=!0))}}});return c},Sja=function(a){return a.reduce(function(b,c){var d=-1;"VideoBwe"===c.type&&(c=c.stat("googAvailableSendBandwidth"),ld(xe(c))||(d=Math.round(Number(c))));
return Math.max(b,d)},-1)},Lja=function(a,b,c,d,e,f){yja(b,c,a.H);var g=!1;g="mediaType"in b?"audio"===b.mediaType:"audioInputLevel"in b||"audioOutputLevel"in b||"googExpandRate"in b;var h="bytesSent"in b;if(!(f&&g&&h)||d||Tja(a,b))if(!f||g||!h||!c||"screen"!==b.googContentType){var m=g?new SE:(new WU).media;Uja(b,m,h,g);g?Vja(a,b,m,h):Wja(b,m,h);var q=EF(m);null!=q&&a.M.forEach(function(r){return r.update(q,m)});Xja(a,b,m,h);Dl(e,2,m,SE)}},Uja=function(a,b,c,d){N(b,1,d?1:2);N(b,24,c?0:1);"number"===
typeof a.ssrc&&(N(b,25,a.ssrc),N(b,53,[a.ssrc]));N(b,2,Math.round(J8(a.fractionLost)));N(b,3,Math.round(J8(a.packetsLost)));N(b,4,Math.round(J8(a.highestSequenceNumber)));N(b,5,Math.round(J8(a.googJitterReceived)));N(b,6,Math.round(J8(a.googRtt)));N(b,7,Math.round(J8(a.bytesSent)));N(b,8,Math.round(J8(a.packetsSent)));N(b,9,Math.round(J8(a.bytesReceived)));N(b,10,Math.round(J8(a.packetsReceived)));c?null!=a.googCodecName&&N(b,44,a.googCodecName):(null!=a.googCodecName&&N(b,94,a.googCodecName),"number"!==
typeof a.oneWayDelayMs||isNaN(a.oneWayDelayMs)||N(b,89,Math.round(a.oneWayDelayMs)),"number"!==typeof a.oneWayMaxDelayMs||isNaN(a.oneWayMaxDelayMs)||N(b,112,Math.round(a.oneWayMaxDelayMs)),"number"!==typeof a.oneWayStddevDelayMs||isNaN(a.oneWayStddevDelayMs)||N(b,118,Math.round(a.oneWayStddevDelayMs)),"number"!==typeof a.oneWayMinDelayMs||isNaN(a.oneWayMinDelayMs)||N(b,119,Math.round(a.oneWayMinDelayMs)))},T8=function(a,b,c){var d=0,e=0;b.forEach(function(f){f.has(a)&&(e+=f.get(a),d+=1)});0<d&&c(e/
d)},Vja=function(a,b,c,d){Aja(b,c,d);!d&&a.g.has(b.ssrc)&&(a=a.g.get(b.ssrc),T8("googExpandRate",a,function(e){return c.Wg(e)}),T8("googSpeechExpandRate",a,function(e){return c.ki(e)}),T8("googPreemptiveExpandRate",a,function(e){return c.hi(e)}),T8("googAccelerateRate",a,function(e){return c.bi(e)}),T8("googSecondaryDecodedRate",a,function(e){return c.ii(e)}),T8("googSecondaryDiscardedRate",a,function(e){return c.ji(e)}))},Xja=function(a,b,c,d){b=N8(a.o,b,a.h,d);d?(N(c,42,b.bitrate),0<b.oj&&sl(c,
59)&&Yja(a,{Jc:b.oj})):N(c,96,b.bitrate);N(c,2,b.Dj);N(c,113,b.sk)},Wja=function(a,b,c){c?("number"!==typeof a.googFirsReceived||isNaN(a.googFirsReceived)||N(b,27,Math.round(a.googFirsReceived)),"number"!==typeof a.googPlisReceived||isNaN(a.googPlisReceived)||N(b,151,Math.round(a.googPlisReceived)),"number"!==typeof a.googNacksReceived||isNaN(a.googNacksReceived)||N(b,28,Math.round(a.googNacksReceived)),"number"!==typeof a.googFrameRateInput||isNaN(a.googFrameRateInput)||N(b,29,Math.round(a.googFrameRateInput)),
"number"!==typeof a.googFrameRateSent||isNaN(a.googFrameRateSent)||N(b,30,Math.round(a.googFrameRateSent)),null!=a.codecImplementationName&&N(b,143,a.codecImplementationName),"number"!==typeof a.googFrameWidthSent||isNaN(a.googFrameWidthSent)||N(b,57,Math.round(a.googFrameWidthSent)),"number"!==typeof a.googFrameHeightSent||isNaN(a.googFrameHeightSent)||N(b,58,Math.round(a.googFrameHeightSent)),"number"!==typeof a.googFrameWidthInput||isNaN(a.googFrameWidthInput)||N(b,144,Math.round(a.googFrameWidthInput)),
"number"!==typeof a.googFrameHeightInput||isNaN(a.googFrameHeightInput)||N(b,145,Math.round(a.googFrameHeightInput)),"number"!==typeof a.googQpSent||isNaN(a.googQpSent)||N(b,113,Math.round(a.googQpSent)),"number"!==typeof a.qpSum||isNaN(a.qpSum)||N(b,139,Math.round(a.qpSum)),"number"!==typeof a.googAdaptationChanges||isNaN(a.googAdaptationChanges)||N(b,95,Math.round(a.googAdaptationChanges)),"number"!==typeof a.qualityLimitationResolutionChanges||isNaN(a.qualityLimitationResolutionChanges)||N(b,194,
Math.round(a.qualityLimitationResolutionChanges)),"number"!==typeof a.googAvgEncodeMs||isNaN(a.googAvgEncodeMs)||N(b,75,Math.round(a.googAvgEncodeMs)),"number"!==typeof a.googEncodeUsagePercent||isNaN(a.googEncodeUsagePercent)||N(b,76,Math.round(a.googEncodeUsagePercent))):("number"!==typeof a.googFirsSent||isNaN(a.googFirsSent)||N(b,27,Math.round(a.googFirsSent)),"number"!==typeof a.googPlisSent||isNaN(a.googPlisSent)||N(b,151,Math.round(a.googPlisSent)),"number"!==typeof a.googNacksSent||isNaN(a.googNacksSent)||
N(b,28,Math.round(a.googNacksSent)),"number"!==typeof a.googFrameRateOutput||isNaN(a.googFrameRateOutput)||N(b,29,Math.round(a.googFrameRateOutput)),"number"!==typeof a.googFrameRateReceived||isNaN(a.googFrameRateReceived)||N(b,30,Math.round(a.googFrameRateReceived)),"number"!==typeof a.googFrameRateDecoded||isNaN(a.googFrameRateDecoded)||N(b,31,Math.round(a.googFrameRateDecoded)),"number"!==typeof a.fpsGraphicsInput||isNaN(a.fpsGraphicsInput)||N(b,50,a.fpsGraphicsInput),"number"!==typeof a.fpsGraphicsOutput||
isNaN(a.fpsGraphicsOutput)||N(b,51,a.fpsGraphicsOutput),null!=a.codecImplementationName&&N(b,143,a.codecImplementationName),"number"!==typeof a.googFrameWidthReceived||isNaN(a.googFrameWidthReceived)||N(b,57,Math.round(a.googFrameWidthReceived)),"number"!==typeof a.googFrameHeightReceived||isNaN(a.googFrameHeightReceived)||N(b,58,Math.round(a.googFrameHeightReceived)),"number"!==typeof a.googQpReceived||isNaN(a.googQpReceived)||N(b,113,Math.round(a.googQpReceived)),"number"!==typeof a.qpSum||isNaN(a.qpSum)||
N(b,139,Math.round(a.qpSum)),"number"!==typeof a.googInterframeDelayMax||isNaN(a.googInterframeDelayMax)||N(b,138,Math.round(a.googInterframeDelayMax)));if(c){var d=a.googContentType;d&&FF(b,"screen"===d);d=L(b,65)||0;U8(a.googCpuLimitedResolution)&&(d|=1);U8(a.googBandwidthLimitedResolution)&&(d|=2);N(b,65,d)}else if(a=a.googTimingFrameInfo){b=VU.get(b);try{a="["+a+"]",d=new UU(a?JSON.parse(a):null),b.g=d}catch(e){}}},Tja=function(a,b){var c=Number(b.bytesSent);b=Number(b.ssrc);var d=a.u.get(b)||
0;a.u.set(b,c);return c>d},Q8=function(a){var b={};a.names().forEach(function(c){var d=a.stat(c);null!=d&&(isNaN(d)||"string"===typeof d&&ld(d)||(d=Number(d)));b[c]=d});return b},Yja=function(a,b){a.G.then(function(c){c.Y(4804,b)})};function Fja(a){return 0===CF(a)&&!H8(a)&&0<(L(a,29)||0)}function Gja(a){return 0===CF(a)&&!H8(a)&&0<(L(a,30)||0)}function H8(a){return!(sl(a,59)&&(L(a,58)||L(a,57)))}function U8(a){return"true"!==a&&"false"!==a?null:"true"===a}
var Kja={lan:1,vpn:11,wlan:2,wwan:5},Pja="googExpandRate googSpeechExpandRate googPreemptiveExpandRate googAccelerateRate googSecondaryDecodedRate googSecondaryDiscardedRate".split(" "),S8=function(a){return"number"===typeof a?new Date(a):a};var Zja=function(a){this.s=new bU("realtime.media.api.webrtc.RtcStatsParser");this.o=a;this.u=new K8;this.g=this.h=null;this.l=new Map;this.j=new Map;this.m=new Map;this.C=new Map},$ja=l(["No valid timestamp for the stats: ",""]),aka=l(["Ignore report with timestamp prior to initial stats:\n      ",""]),bka=l(["Ignore report with stale timestamp "," from "," of ",""]),eka=function(a,b,c){var d=V8(b);if(d)if(W8(a,d),d=X8(a),0>d)a.s.K(aka,Y8(b));else{N(c,1,Math.round(d));d=n(b);for(var e=d.next();!e.done;e=
d.next()){e=n(e.value);var f=e.next().value;e=e.next().value;f=e.id||f;var g=e.timestamp;g="number"===typeof g?g:g?g.getTime():0;if(g&&g==(a.m.get(f)||0))a.C.get(f)!=g&&(a.C.set(f,g),a.s.info(bka,g,f,e.type));else switch(a.m.set(f,g),Z8[e.type]||e.type){case "candidate-pair":cka(a,e,c,b);break;case "inbound-rtp":case "outbound-rtp":dka(a,e,c,b)}}}else a.s.K($ja,Y8(b))},gka=function(a,b,c){a=fka(a,b);c=n(oF(c));for(b=c.next();!b.done;b=c.next())if(b=b.value,null!=L(b,1)&&null!=L(b,24)&&null!=L(b,25)&&
1===CF(b)&&a.has(EF(b))){var d=a.get(EF(b));switch(BF(b)){case 1:var e=L(d,167)||0;N(b,167,e);e=rl(d,170)||0;N(b,170,e);e=L(d,171)||0;N(b,171,e);e=L(d,168)||0;N(b,168,e);e=L(d,165)||0;N(b,165,e);d=L(d,166)||0;N(b,166,d);break;case 2:d=L(d,130)||0,N(b,130,d)}}},fka=function(a,b){for(var c=new Map,d={},e=n(b.values()),f=e.next();!f.done;d={Qf:d.Qf},f=e.next()){var g=f.value;f=g;if("inbound-rtp"===(Z8[g.type]||g.type)&&b.get(g.trackId)){var h=g,m=b.get(h.trackId);g=Number(g.ssrc);d.Qf=new SE;switch(f.kind){case "audio":$8(a,
h,m,d.Qf,f.kind);break;case "video":a9(h.framesDecoded,function(q){return function(r){return N(q.Qf,130,r)}}(d))}c.set(g,d.Qf)}}return c},W8=function(a,b){null===a.h&&(a.h=b);if(null===a.g||b.getTime()>a.g.getTime())a.g=b},c9=function(a,b,c,d){a=b9(a,b,c,!0);b=a.value;a.De&&d(b)},b9=function(a,b,c,d){d=void 0===d?!1:d;var e=b&&b[c];if("number"!==typeof e)return{value:-1,De:!1};b=b.id+"_"+c;c=!a.l.has(b);var f=a.l.get(b)||{In:0,Hn:0},g=f.In;f=f.Hn;var h=X8(a);(h>f||c)&&a.l.set(b,{In:e,Hn:h});return h>
f&&!c?{value:d?Math.round((e-g)/(h-f)):e-g,De:!0}:{value:-1,De:!1}},X8=function(a){return a.g&&a.h?(a.g.getTime()-a.h.getTime())/1E3:-1},cka=function(a,b,c,d){if(d9(b,d)){var e=Dl(c,13,void 0,YE);c=new QD;var f=new QD;N(c,3,0);N(c,4,0);N(c,2,1);N(f,3,0);N(f,4,0);N(f,2,1);S(e,8,c);S(e,9,f);N(e,7,-1);N(e,5,-1);IF(e,c.Ia());JF(e,0);N(e,3,-1);N(e,6,-1);N(e,4,-1);var g=b.remoteCandidateId||"",h=d.get(b.localCandidateId||"");h&&e9(h,c);(g=d.get(g))&&e9(g,f);S(e,8,c);S(e,9,f);JF(e,hka(b,d));IF(e,c.Ia());
a9(b.bytesReceived,function(m){return N(e,6,m)});a9(b.bytesSent,function(m){return N(e,4,m)});a9(b.currentRoundTripTime,function(m){return N(e,3,Math.round(1E3*m))});a9(b.packetsSent,function(m){return N(e,90,m)});a9(b.packetsDiscardedOnSend,function(m){return N(e,91,m)});if(a=P8(a.u,b,X8(a),!1))N(e,5,a.to),N(e,7,a.fo)}},e9=function(a,b){var c=a.ip||a.ipAddress||"",d=a.port||a.portNumber||0;!ld(c)&&0<d&&(c=c.includes(":")?"["+c+"]:"+d:c+":"+d,N(b,1,c));N(b,3,ika[a.candidateType||""]||0);N(b,4,jka[a.protocol||
a.transport||""]||0)},kka=l(["Video sender ignored: ",""]),dka=function(a,b,c,d){if(!f9(b)){var e=g9(b),f="outbound-rtp"===(Z8[b.type]||b.type),g="video"===e;if(g){var h=(new WU).media;N(h,1,2)}else h=new SE,N(h,1,"audio"===e?1:0);mf&&f&&g&&oF(c).some(function(m){return 0===CF(m)&&2===BF(m)})?a.s.K(kka,b.id):(c=Dl(c,2,h,SE),N(c,9,-1),N(c,7,-1),N(c,3,-1),N(c,2,-1),N(c,5,-1),N(c,4,-1),N(c,10,-1),N(c,8,-1),N(c,6,-1),f?lka(a,b,c,d,e):mka(a,b,c,d,e),nka(a,b,c,e,f))}},h9=function(a,b,c,d){var e=a.ssrc;
"string"!==typeof e||ld(e)||(e=Number(e));"number"===typeof e&&(N(b,25,e),N(b,53,[e]));(a=a.codecId)&&d.has(a)&&(d=d.get(a).mimeType,d=(a=oka[d.toLowerCase()])?a:d,c?N(b,44,d):N(b,94,d))},$8=function(a,b,c,d,e){"video"===e?(a9(c&&c.frameWidth,function(f){return N(d,57,f)},-2),a9(c&&c.frameHeight,function(f){return N(d,58,f)},-2),c9(a,c,"framesReceived",function(f){return N(d,30,f)})):(a9(c&&c.audioLevel,function(f){return N(d,26,Math.round(32767*f))}),a9(c&&c.concealedSamples,function(f){return N(d,
167,f)}),a9(c&&c.totalSamplesReceived,function(f){return N(d,168,f)}),pka(b,c,d));a9(c&&b9(a,c,"jitterBufferDelay").value,function(f){return N(d,37,f)});a9(c&&c.jitterBufferDelay,function(f){return N(d,170,f)});a9(c&&c.jitterBufferEmittedCount,function(f){return N(d,171,f)});a9(c&&c.jitterBufferFlushes,function(f){return N(d,165,f)});a9(c&&c.delayedPacketOutageSamples,function(f){return N(d,166,f)})},ska=function(a,b,c,d,e){"video"===e?(a9(c&&c.frameWidth,function(f){return N(d,57,f)},-2),a9(c&&c.frameHeight,
function(f){return N(d,58,f)},-2),c9(a,c,"framesSent",function(f){return N(d,30,f)}),qka(b,c,d)):rka(b,c,d)},pka=function(a,b,c){i9([b&&b.concealedSamples,j9(b&&b.totalSamplesReceived)],function(d){var e=n(d);d=e.next().value;e=e.next().value;return c.Wg(Math.round(d/e))});i9([b&&b.concealedSamples,j9(b&&b.totalSamplesReceived)],function(d){var e=n(d);d=e.next().value;e=e.next().value;return c.Wg(Math.round(d/e))});i9([b&&b.silentConcealedSamples,b&&b.concealedSamples,j9(b&&b.totalSamplesReceived)],
function(d){var e=n(d);d=e.next().value;var f=e.next().value;e=e.next().value;return c.ki(Math.round((f-d)/e))});i9([b&&b.insertedSamplesForDeceleration,j9(b&&b.totalSamplesReceived)],function(d){var e=n(d);d=e.next().value;e=e.next().value;return c.hi(Math.round(d/e))});i9([b&&b.removedSamplesForAcceleration],function(d){d=n(d).next().value;return c.bi(d)});i9([b&&b.fecPacketsReceived,b&&b.fecPacketsDiscarded,j9(a.packetsReceived)],function(d){var e=n(d);d=e.next().value;var f=e.next().value;e=e.next().value;
return c.ii(Math.round((d-f)/e))});i9([b&&b.fecPacketsDiscarded,j9(b&&a.packetsReceived)],function(d){var e=n(d);d=e.next().value;e=e.next().value;return c.ji(Math.round(d/e))})},qka=function(a,b,c){a=b&&b.mediaSourceId&&a.get(b.mediaSourceId);a9(a&&a.framesPerSecond,function(d){return N(c,29,Math.round(d))})},rka=function(a,b,c){a=b&&b.mediaSourceId&&a.get(b.mediaSourceId);a9(a&&a.audioLevel,function(d){return N(c,26,Math.round(32767*d))})},mka=function(a,b,c,d,e){N(c,24,1);h9(b,c,!1,d);"video"===
e&&(a9(b.firCount,function(f){return N(c,27,f)}),a9(b.pliCount,function(f){return N(c,151,f)}),a9(b.nackCount,function(f){return N(c,28,f)}),a9(b.qpSum,function(f){return N(c,139,f)}));$8(a,b,d.get(b.trackId),c,e);"video"===e&&(a9(b.framesDecoded,function(f){return N(c,130,f)}),a9(b.bitrateMean,function(f){return N(c,96,Math.round(f))}));a9(b.jitter,function(f){return N(c,5,Math.round(1E3*f))});a9(b.packetsReceived,function(f){return N(c,10,f)});a9(b.packetsLost,function(f){return N(c,3,f)});a9(b.bytesReceived,
function(f){return N(c,9,f)});a9(b.fractionLost,function(f){return N(c,2,Math.round(100*f))});N(c,143,b.decoderImplementation||"");tka(a,b,c);"video"===e&&c9(a,b,"framesDecoded",function(f){return N(c,31,f)})},lka=function(a,b,c,d,e){N(c,24,0);h9(b,c,!0,d);"video"===e&&(a9(b.firCount,function(g){return N(c,27,g)}),a9(b.pliCount,function(g){return N(c,151,g)}),a9(b.nackCount,function(g){return N(c,28,g)}),a9(b.qpSum,function(g){return N(c,139,g)}));ska(a,d,d.get(b.trackId),c,e);a9(b.packetsSent,function(g){return N(c,
8,g)});a9(b.bytesSent,function(g){return N(c,7,g)});N(c,143,b.encoderImplementation||"");if(b.qualityLimitationReason){var f=L(c,65)||0;N(c,65,f|(b.qualityLimitationReason in k9?k9[b.qualityLimitationReason]:1073741824))}a9(b.qualityLimitationResolutionChanges,function(g){return N(c,194,g)});uka(b,c,d);"video"===e&&(a9(b.bitrateMean,function(g){return N(c,42,Math.round(g))}),c9(a,b,"framesEncoded",function(g){return N(c,197,g)}),mf||l9(L(c,29))||a9(L(c,197),function(g){return N(c,29,g)}),a9(b.framesEncoded,
function(g){return N(c,130,g)}))},uka=function(a,b,c){a=vka(c,a);c=!hf||Xp(67);a9(c?a&&a.roundTripTime:void 0,function(d){return N(b,6,Math.round(1E3*d))});a9(c?a&&a.jitter:void 0,function(d){return N(b,5,Math.round(1E3*d))});a9(a&&a.packetsLost,function(d){return N(b,3,d)})},tka=function(a,b,c){var d=b.fractionLost;"number"===typeof d?N(c,2,Math.round(100*d)):(d=b9(a,b,"packetsLost"),a=b9(a,b,"packetsReceived"),d.De&&a.De?(b=Math.max(d.value,0),a=b+a.value,N(c,2,0<a?Math.round(100*b/a):0)):N(c,2,
-1))},Y8=function(a){for(var b={},c=n(a.keys()),d=c.next();!d.done;d=c.next())d=d.value,b[d]=a.get(d);return w.JSON.stringify(b)},nka=function(a,b,c,d,e){b=N8(a.u,b,X8(a),e,!1);if(e)null!=L(c,42)||N(c,42,b.bitrate);else if(l9(L(c,2))||N(c,2,b.Dj),l9(L(c,96))||N(c,96,b.bitrate),!l9(L(c,138))&&"video"===d&&(d=EF(c)||vF(c)[0]||0,(e=P7(a.o,d))&&N(c,138,e),a=O7(a.o,d)))null!=a.Kh&&N(c,50,Math.round(a.Kh)),null!=a.Lh&&N(c,51,Math.round(a.Lh));N(c,113,b.sk)},hka=function(a,b){b=d9(a,b);var c=void 0!==a.writable?
a.writable:b;a=void 0!==a.writable?a.writable:b;var d=0;b&&(d|=1);!0===c&&(d|=2);!0===a&&(d|=4);return d},V8=function(a){var b=null;a=n(a.values());for(var c=a.next();!c.done;c=a.next())if(c=c.value,!c.localId&&!f9(c)){b=c.timestamp;break}return"number"===typeof b?new Date(Math.round(b)):null};function f9(a){a=a?a.isRemote:void 0;return"boolean"===typeof a&&!0===a}
var Z8={inboundrtp:"inbound-rtp",outboundrtp:"outbound-rtp",candidatepair:"candidate-pair",localcandidate:"local-candidate",remotecandidate:"remote-candidate"},ika={host:1,serverreflexive:2,peerreflexive:2,relayed:3},jka={udp:1,tcp:2},k9={bandwidth:2,cpu:1,none:0},oka={"video/vp8":"VP8","video/vp9":"VP9","video/h264":"H264","audio/opus":"opus"};function l9(a){return null!=a&&-1!==a}function i9(a,b){a.every(function(c){return void 0!==c})&&b(a)}function j9(a){return 0!==a?a:void 0}
function a9(a,b,c){void 0!==a&&null!==a?b(a):void 0!==c&&b(c)}function g9(a){var b=["mediaType","kind"],c="";c=void 0===c?-1:c;if(a){b=n(b);for(var d=b.next();!d.done;d=b.next())if(d=d.value,typeof a[d]===typeof c)return a[d]}return c}function vka(a,b){var c=b.remoteId;if(c=c&&a.get(c))return c;a=n(a.values());for(c=a.next();!c.done;c=a.next())if(c=c.value,c.localId===b.id)return c}
function d9(a,b){return(b=b.get(a.transportId))&&b.selectedCandidatePairId?b.selectedCandidatePairId===a.id:a.selected};var m9=function(){var a=null;try{a=window.sessionStorage||null}catch(b){}this.g=a};B(m9,OA);var wka=function(){if(Se){var a=/Windows NT ([0-9.]+)/;return(a=a.exec(Zd))?a[1]:"0"}return Re?(a=/10[_.][0-9_.]+/,(a=a.exec(Zd))?a[0].replace(/_/g,"."):"10"):Ue?(a=/Android\s+([^\);]+)(\)|;)/,(a=a.exec(Zd))?a[1]:""):Ve||We||Xe?(a=/(?:iPhone|CPU)\s+OS\s+(\S+)/,(a=a.exec(Zd))?a[1].replace(/_/g,"."):""):""}();var o9=function(a){this.m=uK(a,EZ);this.F=uK(a,NK);this.j=new PA;this.l=new m9;this.u=sK(a,QK)?a.get(QK).g:new eg;this.g={};this.h={};this.C=null;a=x(this.o,this);var b=null;if(this.j.isAvailable()){var c=this.j.get("scp"),d=null!=c;try{b=JSON.parse(c)}catch(e){d=!1}!d&&a&&(b=a())}else n9.error("Error in retrieving cpu info from local storage.");if(a=b)this.g=a;xka(this);yka(this)},Dka=function(a){var b=new HG;N(b,1,zka());N(b,14,wka);var c=Aka();N(b,15,c);N(b,16,Wp);p9()&&q9(a,4749);r9(a)?N(b,5,
"ARM"):(N(b,2,6),N(b,3,14),N(b,5,"GenuineIntel"),QG(b,Bka(a.g)));N(b,25,a.g.modelName);N(b,6,a.g.numOfProcessors);N(b,19,a.h.model);N(b,26,a.h.manufacturer);Cka(a).forEach(function(d){var e=Dl(b,24,void 0,EG);N(e,1,6);N(e,2,d.substring(0,100))});return b},Aka=function(){var a="Other";Je?a="Opera":Ke?a="Internet Explorer":hf?a="Firefox":be("Edg/")?a="Chromium-based Edge":mf?a=p9()?"Chromium-based":"Chrome":nf&&(a="Safari");return a},p9=function(){if(null!=s9)return s9;var a=navigator.plugins,b;for(b in a)if("Chromium PDF Viewer"==
a[b].name)return s9=!0;return s9=!1},zka=function(){var a="other";Se?a="windows":Re?a=-1!=Pe.indexOf("Intel")?"mac":"mac-ppc":0<=Zd.indexOf("CrOS")?a="cros":Te&&(a="linux");return a},t9=function(a){return a.m.then(function(b){return R3(b)})},r9=function(a){return a.g.archName&&(jd(a.g.archName,"aarch")||jd(a.g.archName,"arm"))?!0:-1!=Pe.indexOf("armv7l")||-1!=Pe.indexOf("aarch64")},Bka=function(a){if(null==a)return n9.K("Cannot get cpuFlags from null."),-1;var b=a.features;return b?b.reduce(function(c,
d){return c|(Eka.get(d)||0)},0):a.cpuHasSSE2?2:-1},xka=function(a){t9(a).then(function(b){if(b=b.value){a.g=b;a.j.isAvailable()?a.j.set("scp",Fs(b)):n9.error("Error in saving scp to local storage.");b=YR.Ob();var c={archName:a.g.archName,features:a.g.features,modelName:a.g.modelName,numOfProcessors:a.g.numOfProcessors},d="cpuInfo";b.g.has(d)&&(C(b.s,"Already registered a diagnostics data callback for key '"+d+"'."),d=aS(b,d));b.h.set(d,c)}},function(b){return n9.error("Error in getting cpu info from extension "+
b)})},yka=function(a){u9(a)?n9.info("Got getHardwarePlatformInfo: "+JSON.stringify(a.h)):a.m.then(function(b){return b.g.Oj().then(function(c){u9(a)||(v9(a,c.value),q9(a,5548),n9.info("Got getHardwarePlatformInfo from extension: "+JSON.stringify(a.h)))},function(c){u9(a)||(v9(a,null),q9(a,5549,c.value),n9.info("Could not get getHardwarePlatformInfo from extension: "+c.value))})})},u9=function(a){var b=null;if(!a.l.isAvailable())return n9.error("Unable to access session storage."),!1;var c=a.l.get("hpi");
if(!c)return!1;try{b=JSON.parse(c)}catch(d){return n9.error("HardwarePlatformInfo corrupt in session storage."),!1}a.h=b;return!0},v9=function(a,b){a.h=b||{};a.l.isAvailable()?a.l.set("hpi",Fs(a.h)):n9.error("Error in saving hardwarePlatformInfo to session storage.")};o9.prototype.o=function(){return r9(this)?{archName:"armv7l",modelName:"Unknown ARM device",numOfProcessors:2}:{archName:"x86",modelName:"Unknown x86 device",numOfProcessors:4}};
var Cka=function(a){function b(e){try{var f=c.getContext("webgl",e);if(f){var g=f.getExtension("WEBGL_debug_renderer_info");if(g){var h=f.getParameter(g.UNMASKED_RENDERER_WEBGL);h&&!d.includes(h)&&d.push(h)}}}catch(m){n9.error("Error getting WebGL unmasked renderer name: "+m)}}if(null!=a.C)return a.C;var c=qg(a.u,"CANVAS"),d=[];b({failIfMajorPerformanceCaveat:!0});b({failIfMajorPerformanceCaveat:!0,powerPreference:"high-performance"});b({failIfMajorPerformanceCaveat:!0,powerPreference:"low-power"});
b({});return a.C=d},q9=function(a,b,c){a.F.then(function(d){d.g(b,{Zb:c})})},n9=new k1("realtime.media.api.webrtc.Utils"),Eka=new Map([["neon",1],["sse2",2],["ssse3",4],["sse4_1",8],["sse4_2",16],["avx",32]]),s9=null;var Fka=function(){var a=Ie();switch(a.connection&&a.connection.type){case "wifi":return 2;case "ethernet":return 1;default:return 0}};var w9=function(a,b){var c=mf&&!0;this.s=new bU("realtime.media.api.webrtc.StatsManager");this.l=new Hja(a,b);this.g=null;this.m=!1;this.G=uK(a,EZ);this.H=new o9(a);this.h=new F8;this.C=new Zja(b);this.u=this.F=0;this.o=!1;this.j=c;this.D=[]},x9=function(a,b){a.D.push(b)};w9.prototype.start=function(){mf&&Gka(this)};w9.prototype.stop=function(){mf&&(this.g&&(this.g.disconnect(),this.g=null),this.m=!0)};
var Hka=function(a,b,c){var d=Va();if(!(1E3>d-a.F)){a.F=d;if(a.j)a=Rja(a.l,b);else{a=a.C;d={audio:!1,video:!1};b=n(b.values());for(var e=b.next();!e.done;e=b.next())if(e=e.value,"inbound-rtp"==(Z8[e.type]||e.type)&&!f9(e)){var f=Number(e.ssrc),g=e.packetsReceived;f&&"number"===typeof g&&(a.j.has(f)||a.j.set(f,0),0>=g-a.j.get(f)||(a.j.set(f,g),e=g9(e),"audio"===e&&(d.audio=!0),"video"===e&&(d.video=!0)))}a=d}c(a.audio,a.video)}},Ika=function(a,b,c){var d=Va();200>d-a.u||(a.u=d,a=a.j?Sja(b):-1,c(a))},
Mka=function(a,b,c,d,e){var f=!mf||!1;f=void 0===f?!1:f;var g,h,m;return Ba(function(q){if(1==q.g)return g=new QE,h=null,b?(h=R8(b),Mja(a.l,b,d,e,g,f)):(h=V8(c),eka(a.C,c,g)),mf?v(q,t9(a.H),3):q.fb(2);2!=q.g&&(m=q.h,Jka(a,g,m,h));b&&c&&gka(a.C,c,g);Kka(g);Lka(g);a.D.forEach(function(r){return r.l(g)});return q.return(g)})},Gka=function(a){a.G.then(function(b){a.g||a.m||(a.g=b.sg(),a.g&&a.g.onMessage.addListener(function(c){var d=a.h;d.F+=c.tabCpuUsage;d.C+=c.browserCpuUsage;d.m+=c.gpuCpuUsage;d.o+=
c.tabJsMemoryAllocated;d.u+=c.tabJsMemoryUsed;d.g++}))})},Jka=function(a,b,c,d){var e=a.h.toJson();"number"!==typeof e.tabCpuUsage||isNaN(e.tabCpuUsage)||N(b,34,Math.round(e.tabCpuUsage));"number"!==typeof e.browserCpuUsage||isNaN(e.browserCpuUsage)||N(b,92,Math.round(e.browserCpuUsage));"number"!==typeof e.gpuCpuUsage||isNaN(e.gpuCpuUsage)||N(b,94,Math.round(e.gpuCpuUsage));"number"!==typeof e.pluginCpuUsage||isNaN(e.pluginCpuUsage)||N(b,93,Math.round(e.pluginCpuUsage));"number"!==typeof e.totalCpuUsage||
isNaN(e.totalCpuUsage)||N(b,35,Math.round(e.totalCpuUsage));"number"!==typeof e.numOfProcessors||isNaN(e.numOfProcessors)||N(b,36,Math.round(e.numOfProcessors));"number"!==typeof e.tabJsMemoryAllocated||isNaN(e.tabJsMemoryAllocated)||N(b,150,Math.round(e.tabJsMemoryAllocated));"number"!==typeof e.tabJsMemoryUsed||isNaN(e.tabJsMemoryUsed)||N(b,151,Math.round(e.tabJsMemoryUsed));if(d){G8(a.h,d);d=a.h;var f=c.value;if(e=f&&f.numOfProcessors){var g=0,h=0;if(f=f.processors){f=n(f);for(var m=f.next();!m.done;m=
f.next())m=m.value.usage,g+=m.user+m.kernel,h+=m.total}else g=d.G,h=d.l;f=h==d.l?d.J:100*e*(g-d.G)/(h-d.l);d.G=g;d.l=h;d.J=f;d.L=f;d.M=e}c.value&&c.value.temperatures&&c.value.temperatures[0]&&N(b,189,c.value.temperatures[0]);b=a.h;0>(null!=b.h&&null!=b.j?(b.h.getTime()-b.j.getTime())/1E3:-1)||(a=a.h,a.F=0,a.C=0,a.m=0,a.o=0,a.u=0,a.g=0)}},Lka=function(a){KF(a,oF(a).filter(function(b){return 0<L(b,10)||1!=CF(b)}))},Kka=function(a){var b=Fka();0!==b&&qF(a).forEach(function(c){N(c,55,b)})};var y9=function(){this.j=0;this.g=new Map;this.h=new Map},Oka=function(a,b){Nka(a,b);a.g.forEach(function(c,d){var e=b.get(parseInt(d,10));e&&e.Eb==c.Eb?(d=e.timestamp-a.j,c.he!=d&&(c.Wd=d)):(c.Wd&&(e=a.h.get(d)||[],e.push(c),a.h.set(d,e)),a.g.delete(d))});b.forEach(function(c,d){var e=a.g.get(d.toString());void 0==e&&(e={Eb:c.Eb,he:c.timestamp-a.j,Wd:null},a.g.set(d.toString(),e))})},Nka=function(a,b){if(0===a.j){var c=Number.MAX_VALUE;b.forEach(function(d){d=d.timestamp;d<c&&(c=d)});c!==Number.MAX_VALUE&&
(a.j=c)}};y9.prototype.l=function(a){var b=this;oF(a).forEach(function(c){var d=wF(c),e=vF(c);if(!(1>e.length)&&(e=e[0].toString(),""!=e)){var f=b.h.get(e);f&&(f.forEach(function(g){g=z9(g);d.push(g)}),b.h.delete(e));(e=b.g.get(e))&&e.Wd&&(f=z9(e),d.push(f),e.he=e.Wd,e.Wd=null);0<d.length&&c.l(d)}})};var z9=function(a){var b=new TE;b=N(b,3,a.Eb);b=N(b,1,a.he);return N(b,2,a.Wd)};var Rka=function(a){var b={vr:!0,timeout:3E4},c=b.document||document,d=ed(a).toString(),e=lg(document,"SCRIPT"),f={oo:e,Zg:void 0},g=new Sz(Pka,f),h=null,m=null!=b.timeout?b.timeout:5E3;0<m&&(h=window.setTimeout(function(){A9(e,!0);g.g(new B9(1,"Timeout reached for loading script "+d))},m),f.Zg=h);e.onload=e.onreadystatechange=function(){e.readyState&&"loaded"!=e.readyState&&"complete"!=e.readyState||(A9(e,b.vr||!1,h),g.callback(null))};e.onerror=function(){A9(e,!0,h);g.g(new B9(0,"Error while loading script "+
d))};f=b.attributes||{};Mc(f,{type:"text/javascript",charset:"UTF-8"});hg(e,f);te(e,a);Qka(c).appendChild(e);return g},Qka=function(a){var b;return(b=(a||document).getElementsByTagName("HEAD"))&&0!=b.length?b[0]:a.documentElement},Pka=function(){if(this&&this.oo){var a=this.oo;a&&"SCRIPT"==a.tagName&&A9(a,!0,this.Zg)}},A9=function(a,b,c){null!=c&&w.clearTimeout(c);a.onload=Ia;a.onerror=Ia;a.onreadystatechange=Ia;b&&window.setTimeout(function(){og(a)},0)},B9=function(a,b){var c="Jsloader error (code #"+
a+")";b&&(c+=": "+b);Ab.call(this,c);this.code=a};B(B9,Ab);var Ska=l(["EchoDetector constructor"]),Tka=l(["EchoDetector module: ",""]),Uka=l(["EchoDetector module: ",""]),Vka=l(["onAbort called - WebAssembly failure"]),Wka=l(["Loaded and initialized in ","ms"]),Xka=l(["Wasm module initialization failed."]),Yka=l(["Failed to create echoDetector."]),Zka=l(["Failed to load glue code."]),bla=function(a){var b=this;this.s=new bU("realtime.media.audio.EchoDetector");this.s.info(Ska);this.G=uK(a,NK);this.h=F7();this.j=null;this.l=new Map;this.m=!1;this.g=this.F=
this.u=null;this.D=id();this.C=this.h.createScriptProcessor(2048,1,1);this.o=this.h.createScriptProcessor(2048,1,1);a=this.h.createMediaStreamDestination();this.C.connect(a);this.o.connect(a);var c=Va(),d={print:function(e){return b.s.info(Tka,e)},printErr:function(e){return b.s.K(Uka,e)},onAbort:function(){b.s.K(Vka);C9(b,5388,{Zb:"onAbort"})},onRuntimeInitialized:function(){try{var e=b.g._GetVersion();if(5!=e)throw Error("Version mismatch - expected 5, got "+e);b.g._Initialize(2048,b.h.sampleRate,
1,2048,b.h.sampleRate,1);b.s.info($ka,e);b.u=new Float32Array(b.g.HEAP32.buffer,b.g._GetCaptureAudioBuffer(),2048);b.F=new Float32Array(b.g.HEAP32.buffer,b.g._GetRenderAudioBuffer(),2048);ala(b);b.m=!0;var f=Va()-c;b.s.info(Wka,f);C9(b,5389,{Jc:f})}catch(g){eU(b.s,g).K(Xka),C9(b,5388,{Zb:g.message})}}};Rka(this.D).then(function(){try{window._createWasmEchoDetectorV2(d),b.g=d}catch(e){eU(b.s,e).K(Yka),C9(b,5388,{Zb:e.message})}},function(e){eU(b.s,e).K(Zka);C9(b,5387,{Zb:e.message})})},$ka=l(["Initialized - version ",
""]),ala=function(a){a.o.onaudioprocess=function(b){a.m&&null!=a.j&&(a.u.set(b.inputBuffer.getChannelData(0)),a.g._AnalyzeCaptureAudio())};a.C.onaudioprocess=function(b){a.m&&0<a.l.size&&(a.F.set(b.inputBuffer.getChannelData(0)),a.g._AnalyzeRenderAudio())}},C9=function(a,b,c){a.G.then(function(d){d.Y(b,c)})},cla=l(["addRenderStream completed"]),dla=function(a,b){var c=a.h.createMediaStreamSource(b);c.connect(a.C);a.l.set(b,c);a.s.info(cla)},ela=l(["removeRenderStream completed"]),fla=l(["setCaptureStream completed"]),
gla=function(a,b){a.j instanceof MediaStreamAudioSourceNode&&a.j.disconnect();a.j=a.h.createMediaStreamSource(b);a.j.connect(a.o);a.s.info(fla)};var E9=function(a,b,c,d){xv.call(this);var e=this;this.g=b;this.bc=c;mf||nf||(d=iT(d));this.u=d;b=new W7(d.bh);this.Fa=new mja(b,d);var f=null;d.ni&&(f=new X7(function(g){e.nc=g;D9(e)},{Yq:d.jg,Fu:d.Cf}),this.T(f));this.Za=f;this.X=d.hp&&d.je?new bla(a):null;this.nc=d.jg;this.ta=new k1("realtime.media.api.webrtc.PeerController");this.pe=new o8;this.j=new W(this);this.T(this.j);this.ia=null;this.mc=!1;this.J=this.cc=this.D=this.oc=null;this.G=new w9(a,c.j);x9(this.G,b);this.X&&x9(this.G,new V7(this.X));
this.Qc=new y9;x9(this.G,this.Qc);this.Pc=new Map;this.Ab=this.u.ug()||1E4;this.ua=Va();this.Kb=!0;this.xa=1;this.H=new Map;this.o=null;this.zb=[];this.m=null;this.ga=new Map;this.yb=new Map;this.kc=new Map;this.La=this.ab=this.Pa=null;this.Da=new Set;this.gb=new Set;this.L=this.V=null;this.Oa=!1;this.Ca=null;this.lc=!1;this.l=this.na=this.ob=null;this.qd=new U7;this.nb=this.h=this.pa=null;uK(a,RK).then(function(g){e.nb=g});this.rc=bt(uK(a,NK));a=this.u.Gc;0==a&&(a=mf?1:2);this.Gc=a;this.dc=GR(DR("JNxaef"))};
t(E9,xv);E9.prototype.toString=function(){return"PeerController(sessionId="+this.g+")"};
var D9=function(a){if(a.ia)for(var b=n(j8(a.ia)),c=b.next();!c.done;c=b.next()){c=c.value;var d=a.nc/1E3;c.playoutDelayHint=d;c.jitterBufferDelayHint=d}},KY=function(a,b){a.ta.info("["+a+"] "+b)},F9=function(a,b){a.ta.K("["+a+"] "+b)},G9=function(a,b){for(var c=[],d=0;d<b;d++)c.push(p8(a.pe));return c},H9=function(a,b){var c=G9(a,a.u.af?3:1),d=[];1<c.length&&a.u.af&&d.push(new IO("SIM",c));if(a.u.Mf)for(var e=G9(a,c.length),f=0;f<e.length;f++)c.push(e[f]),d.push(new IO("FID",[c[f],e[f]]));return hP(eP(XO(WO(UO(new TO,
"v"),b),a.g+"/"+b),c),d).ja()},J9=function(a,b){a.Pc.has(b)||(a.Pc.set(b,!0),a.N(new I9(a.g,b)))};k=E9.prototype;
k.au=function(a){var b=a.stream,c=a.g;a=b.getAudioTracks();var d=b.getVideoTracks();KY(this,"Remote stream added with id="+c+" audioTracks="+(a.length+" videoTracks="+d.length));D9(this);d=function(e){return e.de==c};VP(this.m.wa).some(d)||VP(this.m.qa).some(d)||cc(this.m.wa.j).some(function(e){return e.toString()==c})?0<a.length?this.u.je?(a=K9(this,this.m,c),L9(this,5038),d=Sha(this.bc,b,a,2==this.Gc),this.X&&dla(this.X,b),M9(this,c,d),this.H.set(c,d),this.j.listen(d,"playing",this.An),this.j.listen(d,
"playing_error",this.nu),a||F9(this,"Participant left before their audio was added")):(KY(this,"Ignoring incoming audio track as audio output is disabled."),a.forEach(function(e){return e.stop()})):(this.ga.has(c)||this.ga.set(c,{Bb:jt(),rm:!1}),a=this.ga.get(c),a.Bb.resolve(b),a.rm=!0):KY(this,"Ignoring incoming tracks with no matching msid.")};
k.bu=function(a){var b=a.stream;a=a.g;var c=b.getAudioTracks(),d=b.getVideoTracks();KY(this,"Remote stream removed with id="+a+" audioTracks="+(c.length+" videoTracks="+d.length));this.H.has(a)&&(c=this.H.get(a),wN(this.j,c,"playing",this.An),T7(this.bc,b.id),this.H.delete(a));this.X&&(c=this.X,c.l.has(b)&&(c.l.get(b).disconnect(c.C),c.l.delete(b),c.s.info(ela)));this.ga.has(a)&&(b=this.ga.get(a),this.ga.delete(a),b.rm||F9(this,"Asked to remove stream that was never added."))};
k.An=function(a){L9(this,4901,a.target.Ia().id);J9(this,"play first audio")};k.nu=function(a){L9(this,4970,a.code+","+a.message)};k.Km=function(a){a=a.target;var b=LY(a,this.g);b&&N9(this,b,a)};k.nn=function(a){a=a.target;if(this.o&&this.o.Ba()===a.g.getId()){a=a.Sb();this.o=YO(new TO(this.o),a).ja();var b=O9(this,this.o);b&&B8(this.Fa,b,!a)}};
var hla=function(a,b){switch(b){case "a":var c=VP(a.localDescription.wa)[0];break;case "v":c=VP(a.localDescription.qa).find(function(d){return"2"==d.Ba()});break;case "d":c=VP(a.localDescription.Wa)[0];break;default:Eb("Unknown media type: "+b)}return c},P9=function(a,b){var c=b.g;if(!a.localDescription)return null;if("v"!=c.Ka)return hla(a,c.Ka);var d=VP(a.localDescription.qa).find(function(e){return e.Ba()==c.getId()});d||(d=H9(a,c.getId()));return iP(aP(new TO(d),c.Zd()),b.j.m).ja()},OY=function(a,
b,c){var d=c.g,e=d.Ka,f=c.Sb();c=P9(a,c);var g=null,h=null;if(b){g=b.id;b="a"==e?b.getAudioTracks():b.getVideoTracks();if(0==b.length)return a.ta.error("["+a+"] Got MediaStream without associated tracks."),null;h=b[0].id}c=YO(cP(bP(new TO(c),g),h),f).ja();"a"==e?a.o=c:(e=VP(a.localDescription.qa).filter(function(m){return m.Ba()!==d.getId()}),a.zb=[].concat(p(e),[c]));KY(a,"StreamInfo="+c+" updated.");Sia(a.D,a.o?[a.o]:[],a.zb).catch(function(m){F9(a,"Negotiating with updated local streams failed with error="+
m);Q9(a,m)});return c},R9=function(a,b){return Ba(function(c){if(!b||a.Kb||!a.ia)return c.fb(0);a.gb.add(b);KY(a,"Adding stream with id="+b.id+" to peer");return v(c,tia(a.ia,b),0)})},NY=function(a,b){b&&a.ia&&a.gb.has(b)&&(a.gb.delete(b),KY(a,"Removing stream with id="+b.id+" to peer"),uia(a.ia,b))},N9=function(a,b,c){if(!a.localDescription)return null;R9(a,b).then(function(){mf&&!mf&&S9(a)});var d=OY(a,b,c);c=c.g;a.X&&"a"==c.Ka&&"sc"!=c.getContent()&&gla(a.X,b);return d},ila=function(a){a.u.je||
j8(a.ia).forEach(function(b){(b=b.track)&&"audio"==b.kind&&b.stop()})},S9=function(a){if(!mf||Xp(68))if(a.zb.forEach(function(c){var d=!c.Zd(),e=O9(a,c);e&&uja(a.Fa,e).then(function(f){qja(a.Fa,e,c.g,{zg:d,mimeType:f})})}),a.o){var b=O9(a,a.o);b&&B8(a.Fa,b,a.dc?!a.o.qc():!0)}},O9=function(a,b){return via(a.ia).find(function(c){return c.track&&c.track.id==b.j&&"live"==c.track.readyState})||null};
E9.prototype.stopSession=function(a,b){this.D&&this.D.cancel();Cs(this.ia);this.ia=null;this.J&&(this.J.close(),this.J=null);this.V&&(this.V.stop(),this.Oa=!1,this.ua=0,this.N(new T9(a,b)));this.L&&this.L.stop();this.G.stop();this.ga.clear();U9(this,0)};
var nla=function(a){var b,c;return Ba(function(d){switch(d.g){case 1:return a.ia&&Eb("Attempted to recreate a peer connection."),J9(a,"send initiate"),KY(a,"Instantiating new peer"),jla(a,a.u.Om),a.ia=new g8(a.u),a.cc=a.ia.g.signalingState,a.D=new q8(a.ia,a.u,a.rc),D9(a),a.j.listen(a.ia.g,"signalingstatechange",a.oe),GR(DR("lftkhd"))&&kla(a),a.xa=1,a.j.listen(a.ia,"jb",a.bd),a.ia.g.oniceconnectionstatechange=function(e){return lla(a,e)},a.j.listen(a.ia,"kb",a.au),a.j.listen(a.ia,"lb",a.bu),a.ia.g.ondatachannel=
function(e){return mla(a,e.channel)},a.J=i8(a.ia,"dataSendChannel"),a.J.onopen=function(){return KY(a,"send datachannel is open.")},a.J.onclose=function(){return KY(a,"send datachannel is closed.")},a.J.onerror=function(e){return F9(a,"send datachannel error: "+e.error)},b=function(e){var f=new TO;if(0==VP(e.wa).length){var g=G9(a,1);f=eP(UO(f,"a"),g)}else f=new TO(VP(e.wa)[0]);g=XO(WO(f,"1"),a.g+"/1").ja();var h=0==VP(e.qa).length?H9(a,"2"):XO(WO(new TO(VP(e.qa)[0]),"2"),a.g+"/2").ja();f=new TO;
0==VP(e.Wa).length?(f=eP(UO(f,"d"),G9(a,1)),!mf&&(f=dP(f,UP(e.Wa)))):f=new TO(VP(e.Wa)[0]);f=XO(WO(f,"3"),a.g+"/3");bP(f,"dataSendChannel");e=f.ja();return new pQ(ZP(new QP("a",[],[]),[g]),ZP(new QP("v",[],[]),[h]),ZP(new QP("d",[],[]),[e]))},qa(d,2),v(d,Lia(a.D,b),4);case 4:ra(d,3);break;case 2:return c=sa(d),a.ta.error("["+a+"] Creating the initial local description failed: "+c),d.return(null);case 3:return KY(a,"Creating the initial local description succeeded"),d.return(a.localDescription)}})},
jW=function(a){var b;Ba(function(c){switch(c.g){case 1:J9(a,"recv local description");a.G.start();if(!a.V){var d=1==a.Gc||hf&&!0;a.V=new yv(a.u.je&&d?V9:Math.min(1E3,a.Ab));a.j.listen(a.V,"tick",a.vd);a.V.start()}1==a.Gc||a.L||(a.L=new yv(V9),a.j.listen(a.L,"tick",a.td),a.L.start());KY(a,"Calling initial setLocalDescription");qa(c,2);return v(c,Qia(a.D),4);case 4:ra(c,3);break;case 2:throw b=sa(c),KY(a,"Initial setLocalDescription offer failed with error="+b),Q9(a,b),b;case 3:KY(a,"Initial setLocalDescription offer succeeded"),
c.g=0}})},XV=function(a,b,c){return i8(a.ia,b,c)};E9.prototype.vd=function(){this.V.enabled&&(1==this.Gc&&W9(this),this.Oa||(mf?0:1E3>Va()-this.ua)||ola(this))};E9.prototype.td=function(){if(this.L.enabled)if(W9(this),2==this.Gc){for(var a=new Map,b=n(this.H.keys()),c=b.next();!c.done;c=b.next()){var d=c.value;c=this.H.get(d);(d=K9(this,this.m,d))&&X9(this,a,d,(c.l?vha(c.l):null)||0)}Y9(this,a);Z9(this,a)}else 3==this.Gc&&Z9(this,this.pa)};
var ola=function(a){var b,c,d,e,f,g,h,m,q,r,u,A;Ba(function(z){switch(z.g){case 1:return a.Oa=!0,mf?v(z,xia(a.ia),5):v(z,a.ia.getStats(),4);case 4:b=z.h;z.fb(3);break;case 5:b=z.h.result();case 3:c=b;a.Oa=!1;pla(a,c);qla(a,c);1==a.Gc&&rla(a,c);a.l&&Oka(a.Qc,a.l);var H=a.G;if(!H.o){if(H.j){var O=H.l;for(var za=null,Ib=n(c),Jb=Ib.next();!Jb.done;Jb=Ib.next())(Jb=S8(Jb.value.timestamp))&&0<Jb.getTime()&&(!za||Jb.getTime()<za.getTime())&&(za=Jb);O=O.j=za}else O=H.C,(za=V8(c))&&W8(O,za),O=za;O&&(H.o=!0,
G8(H.h,O))}H=a.G;H.j&&Qja(H.l,c);d=Va();if(!(d-a.ua>=a.Ab)){z.fb(0);break}a.ua=0==a.ua?d:a.ua+a.Ab;f=e=!1;g=n(a.Da);for(h=g.next();!h.done;h=g.next())m=h.value,"v"!==m.ka()||m.Sb()?"a"===m.ka()&&(f=!0):e=!0;q=mf?c:null;if(!mf){r=c;z.fb(7);break}return v(z,a.ia.getStats(),8);case 8:r=z.h;case 7:return u=r,v(z,Mka(a.G,q,u,!e,f),9);case 9:A=z.h,a.N(new $9(A)),z.g=0}})},rla=function(a,b){b=a.G.j?Oja(b):new Map;var c=new Map;b.forEach(function(d,e){X9(a,c,e,d)});Y9(a,c);Z9(a,c)},W9=function(a){var b=a.l;
a.l=null;a.na=null;a.pa=null;if(a.m&&0<a.m.wa.j.length){a.l=new Map;a.pa=new Map;for(var c=a.m.wa.l,d=0,e=n(j8(a.ia)),f=e.next();!f.done;f=e.next())if(f=f.value,"audio"==f.track.kind&&"function"===typeof f.getContributingSources){a.ob||(a.ob=Va(),a.N(new a$(a.ob)));var g=f.getContributingSources();if(0!=g.length)if(f=sla(f),null==f)F9(a,"Could not find SSRC for RTCRtpReceiver.");else{g.sort(function(r,u){var A=b$(r.timestamp);u=b$(u.timestamp);return A==u&&null!=c?r.source==c?1:-1:u-A});var h=null,
m=null;g=n(g);for(var q=g.next();!q.done;q=g.next()){q=q.value;if(null!=h&&(null==c||q.timestamp<=d))break;null!=c&&q.source==c?q.timestamp>d&&(d=q.timestamp,a.na=m):(null==h&&(h=q),m=q.source)}null!=h&&(m=h.source,a.l.set(f,{Eb:m,timestamp:b$(h.timestamp)}),a.pa.set(m,{volume:G7(Math.min(3E5*(h.audioLevel||0),32768)),Sh:!1}))}}Y9(a,a.pa);3==a.Gc&&a.qd.smooth(a.pa)}tla(a,b)},X9=function(a,b,c,d){a.l&&(c=(c=a.l.get(c))?c.Eb:null);null!==c&&(1==a.Gc&&a.h&&(a=a.h.get(c),null!=a&&0!=a&&(d/=a)),b.set(c,
{volume:d,Sh:!1}))},Y9=function(a,b){a.na&&(b.has(a.na)?b.get(a.na).Sh=!0:b.set(a.na,{volume:0,Sh:!0}))},pla=function(a,b){Hka(a.G,b,function(c,d){c&&J9(a,"recv first audio packet");d&&J9(a,"recv first video packet");a.N(new c$(c,d))})},qla=function(a,b){a.Ca&&Ika(a.G,b,function(c){ula.forEach(function(d,e){c>=e&&(J9(a,d),"bandwidth 3150"==d&&(a.Ca=!1))})})},K9=function(a,b,c){if(!b||!b.wa)return null;if(0<a.m.wa.j.length){if(b=cc(a.m.wa.j).find(function(d){return d.toString()==c}))return b;F9(a,
"Received audio from non-virtual ssrc "+c+"when only virtual ssrcs should be used");return null}if(a=VP(b.wa).find(function(d){return d.g==c}))if(a=a.eb(),0!=a.length)return a[0];return null},wW=function(a,b){b.forEach(function(){J9(a,"recv candidate ")});Via(a.D,b)},wla=function(a){vla(a);null==a.La&&1==a.xa&&(L9(a,2703),a.Pa=Av(function(){1==a.xa&&(F9(a,"Transport writable 1st timer timed out."),L9(a,2705))},2E4),a.ab=Av(function(){1==a.xa&&(F9(a,"Transport writable 2nd timer timed out."),L9(a,
2706))},3E4),a.La=Av(function(){if(1==a.xa){F9(a,"Transport writable timeout failed, aborting.");var b=27;L9(a,2707);a.lc||(L9(a,3736),b=24);a.N(new d$(b,a.g))}},55E3))},U9=function(a,b){null!=a.Pa&&(Bv(a.Pa),a.Pa=null);null!=a.ab&&(Bv(a.ab),a.ab=null);null!=a.La&&(Bv(a.La),a.La=null);a.xa=b},lla=function(a,b){var c,d;return Ba(function(e){switch(e.g){case 1:a.oc=b;c=a.ia.g.iceConnectionState;KY(a,"ICE connection state changed to: "+c+", signaling state: "+a.ia.g.signalingState);"disconnected"==c?
L9(a,5442):"failed"==c&&L9(a,5441);if("disconnected"!=c){if("connected"==c||"completed"==c)U9(a,2),a.mc=!0,J9(a,"transport writable"),L9(a,2704),a.N(new e$(!0,"completed"==c));e.fb(0);break}e.fb(3);break;case 4:if(a.oc!=b)return e.return();case 3:a.mc&&(J9(a,"transport not writable"),a.N(new e$(!1,!1)));if(hf)return e.return();KY(a,"Initiating ICE restart");L9(a,5440);qa(e,5);var f=a.D;f.m=!0;f=x8(f);return v(e,f,7);case 7:ra(e,0);break;case 5:throw d=sa(e),F9(a,"ICE restart failed with error="+d),
Q9(a,d),d;}})};E9.prototype.bd=function(a){a=a.candidate;KY(this,"Got local ICE candidate: "+JSON.stringify(a));this.N(new f$(this.g,[a]));a=a.h;J9(this,"send candidate "+a);"STUN"!=a&&(this.lc=!0)};
var vla=function(a){J9(a,"call connect");null==a.Ca&&(a.Ca=!0,Cv(3E5).then(function(){a.Ca=!1}))},xla=function(a,b){var c;return Ba(function(d){switch(d.g){case 1:return J9(a,"recv remote description"),a.m=b,a.kc=new Map(VP(b.Wa).map(function(e){return[e.de||e.Ba(),e]})),qa(d,2),v(d,Ria(a.D,b),4);case 4:ra(d,3);break;case 2:throw c=sa(d),F9(a,"Negotiating with updated remote description failed with error="+c),Q9(a,c),c;case 3:S9(a),ila(a),d.g=0}})},yla=function(a){a.Da.forEach(function(b){(b=LY(b,
a.g))&&NY(a,b)});a.Kb=!0},g$=function(a){a.Kb=!1;a.Da.forEach(function(b){(b=LY(b,a.g))&&R9(a,b)})};E9.prototype.ba=function(){var a=this;Cs(this.V);Cs(this.L);this.H.forEach(function(b){return T7(a.bc,b.Ia().id)});this.H.clear();Cs(this.ia);this.ia=null;this.J&&(this.J.close(),this.J=null);xv.prototype.ba.call(this)};
var zla=function(a,b){J9(a,"recv view request");var c=a.Fa;c.g.clear();b=n(b);for(var d=b.next();!d.done;d=b.next()){var e=d.value;if("v"===e.ka()){d=e.l;var f=e.yc(),g=c;e=g.j&&e.eb().length===g.o?vja:g.h?wja:null;d&&f&&e&&(f=e.get(C8(f)))&&c.g.set(d,f)}}S9(a)},mla=function(a,b){KY(a,"receive datachannel "+b.label+" created.");a.yb.set(b.label,b);b.onopen=function(){KY(a,"receive datachannel "+b.label+" is open.")};b.onclose=function(){KY(a,"receive datachannel "+b.label+" is closed.");a.yb.delete(b.label)};
b.onerror=function(c){F9(a,"receive datachannel "+b.label+" threw error: "+c.error);a.yb.delete(b.label)};b.onmessage=function(c){c=c.data;var d=a.kc.get(b.label);d=d?d.Z():b.label;KY(a,"dataReceived: participantId="+d+(" label="+b.label+" data="+c));null!=c&&a.N(new h$(a.g,d,b.label,c))}},tla=function(a,b){a.h&&a.l&&a.l.forEach(function(c,d){var e=b&&b.get(d);c=c.Eb;e&&e.Eb==c||(d=a.H.get(d.toString()))&&d.Xb(a.h.has(c)?a.h.get(c):1)})},Ala=function(a,b){if(b){var c=!a.h,d=new Map;b.forEach(function(e,
f){(f=f.getInfo())&&f.eb().forEach(function(g){d.set(g,e);c=c||e!==a.h.get(g)})});if(!c&&a.h.size==d.size)return;a.h=d}else{if(!a.h)return;a.h=null}a.H.forEach(function(e,f){return M9(a,f,e)})},M9=function(a,b,c){a.h?(b=K9(a,a.m,b),null!=b&&(a.l&&a.l.has(b)&&(b=a.l.get(b).Eb),c.Xb(a.h.has(b)?a.h.get(b):1))):c.Xb(1)},kla=function(a){Ba(function(b){if(a.C())return b.fb(0);i$(a);return v(b,Cv(1E3),1)})};E9.prototype.oe=function(a){a.target==this.ia.g&&i$(this)};
var i$=function(a){a.cc!=a.ia.g.signalingState&&(a.cc=a.ia.g.signalingState,j$(a))},j$=function(a){a.C()||"closed"!=a.ia.g.signalingState||(L9(a,2055),a.N(new d$(4,a.g)))},Z9=function(a,b){b=b||new Map;a.N(new A7(a.g,b));a.nb&&ifa(a.nb,b)},jla=function(a,b){0==b.length&&a.ta.K("No ICE servers provided.");b.some(function(c){return!c.url&&!c.urls})&&(a.ta.K("Malformed Ice servers: "+JSON.stringify(b)),L9(a,4264))},Q9=function(a,b){b instanceof A8?j$(a):a.N(new d$(19,a.g,b+""))},L9=function(a,b,c){a.rc.then(function(d){d.Y(b,
{sessionId:a.g,Zb:c})})},sla=function(a){if(mf)return parseInt(a.track.id,10);if("function"!==typeof a.getSynchronizationSources)return null;a=a.getSynchronizationSources();return 0<a.length?a[0].source:null};da.Object.defineProperties(E9.prototype,{localDescription:{configurable:!0,enumerable:!0,get:function(){return this.D?this.D.localDescription:null}}});
var V9=mf&&!Xp(40)?200:100,ula=new Map([[5E5,"bandwidth 500"],[1E6,"bandwidth 1000"],[15E5,"bandwidth 1500"],[25E5,"bandwidth 2500"],[315E4,"bandwidth 3150"]]),c$=function(a,b){U.call(this,"qb");this.g=a;this.j=b};t(c$,U);var $9=function(a){U.call(this,"ub");this.lb=a};t($9,U);var T9=function(a,b){U.call(this,"vb");this.Mb=a;this.g=b};t(T9,U);var f$=function(a,b){U.call(this,"sb");this.sessionId=a;this.g=b};t(f$,U);var I9=function(a,b){U.call(this,"rb");this.sessionId=a;this.message=b};t(I9,U);
var e$=function(a,b){U.call(this,"xb");this.Bg=a;this.Dt=b};t(e$,U);var h$=function(a,b,c,d){U.call(this,"ob");this.sessionId=a;this.ha=b;this.label=c;this.payload=d};t(h$,U);var d$=function(a,b,c){U.call(this,"pb");this.Mb=a;this.sessionId=b;this.g=c};t(d$,U);var a$=function(a){U.call(this,"nb");this.g=a};t(a$,U);var b$=function(a){return"number"===typeof a?a:a?a.getTime():0};var k$=function(){QM.call(this);this.s=new bU("realtime.media.api.webrtc.AudioMonitor");this.j=this.g=null;this.l=new yv(100);this.T(this.l);var a=new W(this);this.T(a);a.listen(this.l,"tick",this.D);this.h=null;this.m=0};t(k$,QM);k$.prototype.ba=function(){this.g&&(this.s.info(Bla,this.g),this.l.stop(),this.g=null,Cs(this.j),this.j=null);Cs(this.j);QM.prototype.ba.call(this)};
var Cla=l(["Registering peer controller=","."]),Dla=function(a,b){a.s.info(Cla,b);var c=new W(a);a.T(c);c.listen(b,"hb",a.o).listen(b,"nb",a.u).listen(b,"vb",function(){return Cs(c)})},Bla=l(["Unregistering audio capture=","."]),Fla=function(a){if(a.h){var b=a.h;var c;(c=null!==b.g)&&(c=1E3<=wR(X(),b.j))&&b.s.info(Ela);c&&(b.g=null);b=b.g;if(null!==b)return b}return a.g?a.g.ta():0},l$=function(a,b,c){c=void 0===c?null:c;a.N(new EU(void 0===b?"amsid":b,Fla(a),c||new Map))};
k$.prototype.D=function(){1E3<Va()-this.m&&l$(this)};k$.prototype.o=function(a){this.m=Va();l$(this,a.sessionId,a.g)};k$.prototype.u=function(a){this.N(new FU(a.g))};var m$=function(a){K(this,a,0,-1,null,null)};B(m$,J);var Gla=function(a,b){for(;Bk(b)&&!Ak(b);)switch(b.h){case 1:var c=xk(b.g);wl(a,1,c,0);break;default:Ck(b)}return a};var n$=function(a){K(this,a,0,-1,null,null)};B(n$,J);var YV=function(a){T.call(this);var b=this;this.j=new qL(this);this.g=a;this.l=jt();this.h=jt();Hla(this);this.o=this.j.signal();this.m=this.j.signal();Bs(this,function(){return b.l.fa.then(function(){return b.g.close()})})};t(YV,T);
var Hla=function(a){a.g.binaryType="arraybuffer";a.g.onerror=function(b){a.l.reject(b);a.h.reject(b)};a.g.onopen=function(){a.l.resolve()};a.g.onclose=function(){a.h.resolve()};a.g.onmessage=function(b){b=b.data;b instanceof ArrayBuffer?a.j.W(a.m,{data:new Uint8Array(b)}):"string"===typeof b?a.j.W(a.o,{data:b}):Eb("Unsupported data type received on RTCDataChannel")}};YV.prototype.send=function(a){this.g.send(a)};YV.prototype.isOpen=function(){return"open"==this.g.readyState};
YV.prototype.onClose=function(){return this.h.fa};var o$=function(a){W.call(this);var b=this;this.s=new bU("realtime.media.api.webrtc.AudioProcessorLevelMonitor");this.g=this.h=null;this.j=xR;var c=new W(this);this.T(c);c.listen(a,"xb",function(d){d.Bg&&d.Dt&&Ila(b,a)})};t(o$,W);o$.prototype.ba=function(){p$(this);W.prototype.ba.call(this)};
var p$=function(a){Cs(a.h);a.h=null},Jla=l(["Data Channel is opened"]),Kla=l(["Data Channel is closed"]),Ila=function(a,b){p$(a);var c=new YV(XV(b,"audioprocessor",{ordered:!1,maxRetransmits:0}));c.m.attach(function(d){d=new zk(d.data);for(var e=new n$;Bk(d)&&!Ak(d);)switch(d.h){case 1:var f=new m$;Dk(d,f,Gla);S(e,1,f);break;default:Ck(d)}null!=L(e,1)?(d=M(Q(e,m$,1),1,0),0<=d&&5>=d&&(null===a.g&&a.s.info(Lla,d),a.j=X(),a.g=d)):a.s.K(Mla)},a);c.l.fa.then(function(){a.s.info(Jla)});mt(c.h.fa,function(){c===
a.h&&(a.s.info(Kla),p$(a))});a.h=c},Ela=l(["Level is stale. Waiting for new data."]),Lla=l(["Got an initial level: ",""]),Mla=l(["Got unexpected message from Audio Processor Data Channel"]);var q$=function(){this.g=[]};q$.prototype.push=function(a){this.g.push(a)};q$.prototype.extend=function(a){this.g=[].concat(p(this.g),p(a.g))};q$.prototype.search=function(a,b){for(var c=n(this.g),d=c.next();!d.done;d=c.next())if(d=d.value,d.name.test(a)||d.h.test(b))return d.g;return A1(z1(y1(new x1,Infinity),Infinity),Infinity).ja()};q$.prototype.be=function(a){for(var b=n(this.g),c=b.next();!c.done;c=b.next())if(c=c.value,c.name.test(a)&&null!=c.be)return c.be;return!0};
var Nla=function(a,b,c,d,e,f){this.name=r$(a);this.h=r$(b);this.be=f;this.g=A1(z1(y1(new x1,c?c:Infinity),d?d:Infinity),e?e:Infinity).ja()};function r$(a){return a?(a=String(a).replace(/([-()\[\]{}+?*.$\^|,:#<!\\])/g,"\\$1").replace(/\x08/g,"\\x08").replace(/\\\*/g,".*"),new RegExp("^"+a+"$","im")):/1^/};var Ola=function(a){if(!s$){var b=new SS;a=nt(uK(a,EZ).then(function(c){return R3(c)}).then(function(c){return 0!=c.status||null==c.value?b:new SS(c.value.modelName||"",c.value.numOfProcessors||0,be("CrOS"))}),function(){return b});s$=ft([a,Cv(2E3,b)])}return s$},s$=null;var fW=new Set,Pla=[["Feature disabled.",5519],["Unlimited size disallowed.",5886],["Max size too small.",5887],["Excessively large max log size.",5888],["Excessively large output period (ms).",5889],["Illegal web-app ID.",5890],["Unknown or inactive peer connection.",5891],["Already logging.",5892],["Unspecified error.",5893],["RPH already dead.",5903],["Could not create file.",5904],["Used history file path.",5905],["Used log file path.",5906],["Disabled for browser context.",5907],["No additional active logs allowed.",
5908]],Rla=function(a){var b=this;this.g=new k1("realtime.media.api.webrtc.LoggingManager");this.M=uK(a,NK);this.V=uK(a,OK,!0);this.j=WA.Ob();this.j.G=8;this.m=uK(a,EZ);this.F=null;this.J=new Set;this.L=new Map;this.H=new Map;this.u=new Set;this.h=!1;this.C=this.o=this.l=null;this.G=this.D=!1;jv(rN.Ob(),["B","C","D"],function(){b.j.l&&Qla(b);t$(b)})},Sla=function(a,b){a.g.info("Logging manager initialized with userId: "+b);a.F=b;a.j.m="11.0.0.0";if(b){var c=$A(a.j,b);null!=c&&c.then(function(d){0<
d&&gW(a,2679)});gW(a,5184,R(TA(a.j.j,b),LA,1).length)}iW(a);bt(7)},lW=function(a,b,c){a.g.info("enableRtpHeaderDump called with sessionId="+b+(" and enable="+c));a.G==c?a.g.info("Ignoring enableRtpHeaderDump call for sessionId="+b+(" as header dump already in state with enable="+c)):a.h?a.m.then(function(d){S3(d,c).then(function(){a.g.info("RTP header dump succeeded for sessionId="+b+(" and enable="+c));a.G=c},function(e){a.g.K("Error setting RTP header dump for sessionId="+b+(" and enable="+c+". Error="+
e.value));throw e;})}):a.l?(a.g.info("Delaying rtp header dump request until native WebRTC logging has started."),a.l.then(function(){return lW(a,b,c)})):a.g.K("enableRtpHeaderDump called when native logging is not active or pending")},Tla=function(a,b,c){Ba(function(d){a.g.info("Starting WebRTC event logging for sessionId="+b+", peerId="+c);a.H.set(b,c);return v(d,u$(a,b),0)})},Ula=function(a,b){if(fW.has(b)){a.g.info("Stopping logging for sessionId="+b);fW.delete(b);gW(a,3221);var c=a.u.has(b);
a.u.delete(b);c?(a.g.info("Uploading logs for "+b),gW(a,2494),c=v$(a).then(function(e){if(a.F)return a.g.info("################# Save #################"),ZA(a.j,b,a.F,e).then(function(){gW(a,2495)},function(){gW(a,2496)});a.g.K("Failed to upload beacause of missing user identifier.")})):c=bt();var d=t$(a);mt(gt([c,d]),function(){var e=WA.Ob(),f=new Date;XA(e,b,"### Stop ["+f.toString()+"] ### "+b);XA(e,b,"Current time is "+f.toUTCString());delete e.g[b]})}else a.g.info("Skipping stopLogging call for sessionId="+
b+" as logging is not active for this session.")},Vla=function(a,b){Ba(function(c){a.g.info("Log upload requested for sessionId="+b);a.u.add(b);v$(a).then(function(d){a.F&&a.j.j.add(a.F,b,d)});hW(a);return v(c,u$(a,b),0)})},w$=function(a,b){var c=a.L.get(b);c||(c=jt(),a.L.set(b,c));return c},iW=function(a){a.h||a.l||(a.g.info("Requesting native WebRTC logging"),gW(a,4732),a.l=a.m.then(function(b){return mt(pea(b).then(function(){a.h=!0;gW(a,4733);a.g.info("Native WebRTC logging started");hW(a)},function(c){var d=
c.value;gW(a,4734);a.g.K("Native WebRTC logging failed to start, error: "+d);throw c;}),function(){a.l=null})}))},u$=function(a,b){var c;return Ba(function(d){if(!a.u.has(b))return d.return();c=a.H.get(b);if(!c||a.J.has(b))return d.return();a.J.add(b);return v(d,Wla(a,b,c),0)})},Wla=function(a,b,c){var d,e,f,g,h,m,q,r,u,A,z;return Ba(function(H){switch(H.g){case 1:return a.g.info("WebRTC event logging requested for "+b+", peer id: "+c),v(H,a.m,2);case 2:return d=H.h,qa(H,3),v(H,d.g.Pj(c).then(d.h),
5);case 5:e=H.h;f=e.value.logId;w$(a,b).resolve(f);gW(a,5520);a.g.info("WebRTC event logging started, logId: "+f);ra(H,0);break;case 3:g=sa(H);if(!(g instanceof L3))return gW(a,5518),a.g.error("WebRTC event logging failed unexpectedly, error: "+JSON.stringify(g)),H.return();h=g.value;m=n(Pla);for(q=m.next();!q.done;q=m.next())if(r=q.value,u=n(r),A=u.next().value,z=u.next().value,h.includes(A))return gW(a,z),a.g.info("WebRTC event logging start error: "+h),H.return();gW(a,5517);a.g.K("WebRTC event logging failed to start, error: "+
JSON.stringify(g));H.g=0}})},t$=function(a){if(a.o)return a.o;if(a.l)return a.l.then(function(){t$(a)});if(!a.h)return bt();if(0==!fW.size)return a.g.info("Ignoring native WebRTC logging stop request due to active session ids="+fW.keys()),bt();a.g.info("Stopping native WebRTC logging.");a.o=a.m.then(function(b){a.G&&S3(b,!1);return mt(qea(b,a.C,a.D).then(function(){a.g.info("Request to stop native WebRTC logging succeeded")},function(c){a.g.K("Request to stop native WebRTC logging failed with error="+
c.value);throw c;}),function(){a.h=!1;a.C=null;a.o=null;a.D=!1})});return a.o},hW=function(a){if(!a.D&&a.h&&a.C&&a.u.has(a.C)){a.g.info("Requesting upload of the native WebRTC logs");a.D=!0;var b=a.C;gW(a,4735);v$(a).then(function(c){return Xla(a,b,c)})}},Xla=function(a,b,c){a.m.then(function(d){rea(d,b,c).then(function(){gW(a,4736);a.g.info("Native uploadLogOnRenderClose succeeded.")},function(e){gW(a,4737);a.g.K("Native uploadLogOnRenderClose failed witherror="+e.value);throw e;})})},gW=function(a,
b,c){a.M.then(function(d){d.Y(b,{Jc:c})})},Qla=function(a){a.M.then(function(b){b.g(5183,{Zb:void 0})})},v$=function(a){return a.V.then(function(b){return b.h})};var x$=function(a,b,c,d,e){ZS.call(this);var f=this;this.j=new k1("realtime.media.api.webrtc.LocalSession");this.h=a;this.g=b;this.ga=c;this.L=jt();this.o=e;w$(this.o,a).fa.then(function(g){var h=new SG,m=new sG;N(m,7,g);S(h,7,m);f.L.resolve(h)});this.X=new W(this);this.T(this.X);this.X.listen(this.g,"ob",this.qu).listen(this.g,"pb",this.ru).listen(this.g,"qb",this.su).listen(this.g,"rb",this.tu).listen(this.g,"sb",this.uu).listen(this.g,"ub",this.wu).listen(this.g,"vb",this.vu).listen(this.g,"xb",
this.xu);this.l="INITIAL";this.u=new Set;this.G=new Set;this.H=null;this.D=void 0;this.J=this.m=null;this.V=new SS;d.then(function(g){return f.V=g})};t(x$,ZS);var kW=function(a,b,c,d){a.l!=b&&(a.l=b,"number"!==typeof a.D&&"number"===typeof c&&(a.D=c),a.N(new rR(a.l,a.D,d)))};x$.prototype.Dm=function(){return this.L.fa};x$.prototype.qn=function(){return this.V};x$.prototype.getState=function(){return this.l};x$.prototype.wm=function(){return this.m?this.m.fa:null};
var kaa=function(a){return"INITIAL"!=a.l?(a.j.K("Called initialize in a bad state."),ct()):bt(nla(a.g))};k=x$.prototype;k.start=function(a){if("STARTING"!=this.l)return this.j.K("Called start in a bad state."),!1;this.j.info("sendLogComment: RemoteSessionId="+a.j);kW(this,"INPROGRESS");oY(this,a);return!0};k.connect=function(){var a=this;"PAUSED"!=this.getState()&&g$(this.g);wla(this.g);var b=GR(DR("MKhH1b"));mf&&Xp(72)&&!b&&this.g.ia.m.fa.then(function(c){c?Tla(a.o,a.h,c):a.j.error("Cannot start WebRTC event logging - peer connection id is not found.")})};
k.update=function(a){switch(this.l){case "INITIAL":return this.j.K("Update called before started."),Promise.reject(Error("Update called before started."));case "STOPPED":return this.j.K("Update called after stopped."),Promise.reject(Error("Update called after stopped."))}return oY(this,a)};k.stop=function(a,b){if("STOPPED"==this.l)return!1;kW(this,"STOPPED",a,b);this.g.stopSession(this.D,b);Ula(this.o,this.h);return!0};
k.pause=function(){if("INPROGRESS"!=this.getState())return!1;yla(this.g);kW(this,"PAUSED");return!0};k.resume=function(){if("PAUSED"!=this.getState())return!1;g$(this.g);kW(this,"INPROGRESS");return!0};
var VV=function(a){Vla(a.o,a.h)},RW=function(a,b){var c=b.g.Ka;switch(a.l){case "STOPPED":case "FINISHED":return a.j.K("Add local stream called after ended."),null}if(a.u.has(b))return a.j.error("Capture "+b+" has already been added."),null;b.ab(a.h);var d=a.g;KY(d,"Adding capture="+b);d.Da.add(b);d.j.listen(b,"N",d.Km);"a"===b.ka()&&d.dc&&d.j.listen(b,"L",d.nn);if(d.Za){var e=d.Za;if("a"===b.ka()){var f=e.h;f===e.h&&null!==f&&wN(e,f,MY,e.m);e.h=b;e.listen(b,MY,e.m)}}d=(e=LY(b,d.g))?N9(d,e,b):P9(d,
b);if(null==d)return a.j.error("A stream for capture of type: "+c+", was not created."),null;a.u.add(b);return d};x$.prototype.se=function(a){if(this.ga.Di){var b=new Set;a.filter(function(c){return"v"===c.ka()&&c.h&&c.l}).forEach(function(c){return b.add(c.l)});Yla(this,b)&&(this.G=b,this.H&&oY(this,this.H))}};
var uW=function(a,b){if("INPROGRESS"==a.l){for(var c={},d=n(a.u),e=d.next();!e.done;c={eh:c.eh},e=d.next())if(c.eh=e.value,e=b.find(function(f){return function(g){return g.ka()==f.eh.g.Ka}}(c)))e=KP(new FP(e),a.h).ja(),Uba(c.eh,e);b=b.filter(function(f){return f.h});zla(a.g,b)}};k=x$.prototype;k.Uj=function(a){Ala(this.g,a)};k.Sk=function(){return!mf||Xp(59)};k.su=function(a){this.N(new $S(a.g,a.j))};k.jo=function(){return!0};k.uu=function(a){a.sessionId==this.h&&this.N(new aT(a.g))};
k.tu=function(a){a.sessionId==this.h&&this.N(new JS(a.message))};k.wu=function(a){this.N(new bT(a.lb))};k.vu=function(a){this.N(new cT(0,a.Mb,a.g))};k.ru=function(a){a.sessionId==this.h&&this.stop(a.Mb,a.g)};k.xu=function(a){this.m&&a.Bg&&(Bv(this.J),this.m.resolve(),this.m=null);this.N(new eT(a.Bg))};k.qu=function(a){this.h==a.sessionId&&this.N(new dT(a.ha,a.label,a.payload))};k.HL=function(){return!0};k.xo=function(){null==this.m&&(this.m=jt(),this.J=Av(this.na,25E3,this))};
var oY=function(a,b){if(null!=(b.l.get("collections")||null)){var c=tQ(b).map(a.pa,a),d=b.Wa;null==d&&(d=[uP(tP("d"),101).bf("google-data").ja()],d=new QP("d",d,[]));d=ZP(d,VP(d).concat(c));b=vQ(b,d)}a.H=b;if(a.ga.Di&&b.qa){c=[];d=n(VP(b.qa));for(var e=d.next();!e.done;e=d.next())e=e.value,a.G.has(e.g)&&c.push(e);b=qQ(b,ZP(b.qa,c))}a.j.info("Session "+a.h+" setting remote descriptions: "+Fs(b.za()));return xla(a.g,b)};
x$.prototype.pa=function(a){var b=a.g,c=a.Be()||"local_push_channel",d=a.getChannelId()||"";return bP(fP(XO(WO(VO(UO(new TO,"d"),d),c),b.toString()),b),a.Be()).ja()};var Yla=function(a,b){if(a.G.size!==b.size)return!0;a=n(a.G.values());for(var c=a.next();!c.done;c=a.next())if(!b.has(c.value))return!0;return!1};x$.prototype.na=function(){this.m.reject(Error("Session handoff timed out."));this.m=null};var y$=function(a){lZ.call(this);this.T((new W(this)).listen(a,"ua",this.D))};t(y$,lZ);y$.prototype.D=function(a){if(this.g&&(this.g||null).Ia()){var b=(this.g||null).Ia();if(b instanceof h1)mZ(this,a.j/5);else if(b.o()==a.sessionId){b=n(b.getInfo().eb());for(var c=b.next();!c.done;c=b.next())if(c=c.value,a.g.has(c)){mZ(this,a.g.get(c).volume/5);return}mZ(this,0)}}else mZ(this,0)};var z$=function(){T.call(this);this.g=new Map};t(z$,T);var Zla=function(a,b){a.g.set(b.h,b);var c=new W(a);a.T(c);c.listen(b,"da",function(d){"FINISHED"==d.state&&(this.g.delete(b.h),Cs(c))})};var A$=chrome.i18n.getMessage("4464119502738861996"),B$=eZ("__synthetic_default_speaker_device__");B$.g=A$;B$.h=A$;var C$=B$.j("__synthetic_default_speaker_device__");C$.l=!0;C$.ja();var D$=Zf("realtime.media.audio.output.DefaultAudioPlayer"),E$=function(a){this.j=a;(a=w.AudioContext||w.webkitAudioContext)&&new a;this.h=this.g=!1};E$.prototype.play=function(a){var b=this;return F$(this,{pm:function(){return G$(b,a)},loop:!1,cm:!0})};E$.prototype.loop=function(a){var b=this;return F$(this,{pm:function(){return G$(b,a)},loop:!0,cm:!0})};
var F$=function(a,b){var c=b.pm,d=b.loop,e=b.cm;if(a.g)return bt();var f=c();b=new Ys(function(g,h){f.loop=d;f.onended=function(){e&&(f.src="");g()};f.onerror=h;f.currentTime=0;var m=f.play();m?m.then(function(){D(D$,"Playing "+f.src);a.h=!0},function(){C(D$,"Autoplay of "+f.src+" was prevented");h("Autoplay was prevented")}):C(D$,"Playing status of "+f.src+" is unknown")});nt(b,function(g){g instanceof Xs&&f.pause()});return b},G$=function(a,b){a=qg(a.j,"AUDIO");b=new dr(b.prefix+((a.canPlayType("audio/ogg")?
b.uL:void 0)||b.tL||b.JL));b.ic||(er(b,"https"),b.ic="www.gstatic.com");a.src=b.toString();return a};var H$=function(a){wZ.call(this,a);new k1("realtime.media.api.webrtc.Delegate");this.m=new Rla(this.ra);this.g=new k$;this.o=new q$;a=this.ra.get(QK).g;var b=this.ra;Q7.has(b)||Q7.set(b,new M7);b=Q7.get(b);this.D=new S7(a,b,this.ra);this.u=new z$;this.C=0;this.l=this.j=!0;this.F=uK(this.ra,NK)};t(H$,wZ);var I$=function(a,b){a.F.then(function(c){c.Y(b)})};
H$.prototype.jn=function(){var a=this;if(!J$())return null;I$(this,6270);var b=this.h.m.then(function(c){Sla(a.m,L(c.g,7));c=Q(c.g,PL,17)?R(Q(c.g,PL,17),QL,3)||[]:[];a.o=$la(c);return 7});I$(this,4163);uK(this.ra,SK,!0).then(function(c){return GV(c,a.g)});uK(this.ra,IU,!0).then(function(c){return KU(c,a.g)});b=[b,ama(this)];return gt(b).then(function(c){I$(a,6271);return bma(a,c)},function(c){I$(a,6272);throw c;})};var bma=function(a,b){(b=b.find(function(c){return 7!=c}))||(b=7);return a.C=b};
H$.prototype.Jg=function(){return J$()?zaa.includes(this.C):null};var ama=function(a){return Eba().then(function(b){for(var c=0,d=!1,e=0,f=!1,g=0;g<b.length;g++)"audioinput"==b[g].kind?(c++,d=d||!ld(xe(b[g].label))):"videoinput"==b[g].kind&&(e++,f=f||!ld(xe(b[g].label)));a.j=0<c;a.l=0<e;d=d||!a.j;f=f||!a.l;if(d||f){if(!d)return 5;if(!f)return 4}else return 6;return 7})};k=H$.prototype;k.hn=function(){if(J$()){var a=new o9(this.ra),b=new SG,c=new sG;N(c,1,"11.0.0.0");S(b,7,c);a=Dka(a);S(b,8,a);return b}return null};
k.cn=function(a,b,c){if(this.Jg()){a=new E9(a,b,this.D,c);Dla(this.g,a);if(c.Hh()){var d=new o$(a),e=this.g;e.h=d;e.T(e.h)}b=new x$(b,a,c,Ola(this.ra),this.m);b.T(a);Zla(this.u,b);return b}return null};k.fn=function(){return this.Jg()?new y$(this.g):null};k.gm=function(){if(this.Jg()){var a=this.ra.get(QK).g;return new E$(a)}return null};k.en=function(a){return this.Jg()?new k1(a):null};var J$=function(){var a=!(nf&&!Xp(13)&&br(window.location.href,"snwr"))&&!1;return mf||hf&&df(54)||a};
vZ({Rd:H$,priority:6});var $la=function(a){var b=new q$;a.forEach(function(c){ld(xe(L(c,1)))&&ld(xe(c.getName()))||b.push(new Nla(c.getName(),L(c,1),L(c,3),L(c,4),L(c,5),ul(c,6,!0)))});return b};var K$=function(a,b){this.g=a;this.h=b};K$.prototype.execute=function(a){this.g&&(this.g.call(this.h||null,a),this.g=this.h=null)};K$.prototype.abort=function(){this.h=this.g=null};var L$=function(a,b){T.call(this);this.j=a;this.Sa=b;this.h=[];this.g=[];this.l=[]};B(L$,T);L$.prototype.getId=function(){return this.Sa};L$.prototype.D=function(a,b){this.h.push(new K$(a,b))};var cma=function(a,b){a.g.push(new K$(b,void 0))};L$.prototype.onError=function(a){for(var b=this.g,c=[],d=0;d<b.length;d++)try{b[d].execute(a)}catch(e){Is(e),c.push(e)}b.length=0;(a=c.length?c:null)&&window.setTimeout(tc("Module errback failures: "+a),0);this.l.length=0;this.h.length=0};
L$.prototype.ba=function(){L$.Db.ba.call(this);Cs(null)};var M$=function(){};M$.prototype.H=function(){return!1};M$.prototype.J=function(){return!1};M$.prototype.D=function(){};var JK=null,KK=null;var N$=function(){this.l={};this.h=[];this.j=[];this.F=[];this.g=[];this.m=[];this.ub={};this.u={};this.X=new L$([],"");this.s=Zf("goog.module.ModuleManager");this.o=0;this.M=this.V=this.L=!1};B(N$,M$);N$.prototype.H=function(){return 0<this.h.length};N$.prototype.J=function(){return 0<this.m.length};
var P$=function(a){var b=a.H();b!=a.L&&(O$(a,b?"active":"idle"),a.L=b);b=a.J();b!=a.V&&(O$(a,b?"userActive":"userIdle"),a.V=b)},AK=function(a,b,c){var d=[];fc(b,d);b=[];for(var e={},f=0;f<d.length;f++){var g=d[f],h=a.l[g];if(!h)throw Error("Unknown module: "+g);var m=new Sz;e[g]=m;dma(a,g,h,!!c,m);xK(a,g)||b.push(g)}0<b.length&&(0==a.h.length?a.G(b):(a.g.push(b),P$(a)));return e},dma=function(a,b,c,d,e){c.D(e.callback,e);cma(c,function(f){e.g(Error(f))});xK(a,b)?d&&(bg(a.s,"User initiated module already loading: "+
b),Tb(a.m,b)||a.m.push(b),P$(a)):d?(bg(a.s,"User initiated module load: "+b),Tb(a.m,b)||a.m.push(b)):bg(a.s,"Initiating module load: "+b)};N$.prototype.G=function(a,b,c){b||(this.o=0);a=ema(this,a);bg(this.s,"Loading module(s): "+a);this.h=a;this.j=cc(a);P$(this);0!=a.length&&(this.F.push.apply(this.F,a),c=x(null.nL,null,cc(a),this.l,{YK:this.ub,cL:!!c,onError:x(this.ga,this,this.j,a),vL:x(this.na,this)}),(a=5E3*Math.pow(this.o,2))?window.setTimeout(c,a):c())};
var ema=function(a,b){b=Lb(b,function(){return!0});for(var c=[],d=0;d<b.length;d++)c=c.concat(Q$(a,b[d]));fc(c);return 1<c.length?(d=c.shift(),bg(a.s,"Must load "+d+" module before "+b),a.g=Mb(c,function(e){return[e]}).concat(a.g),[d]):c},Q$=function(a,b){var c=Nc(a.F),d=[];c[b]||d.push(b);b=[b];for(var e=0;e<b.length;e++)for(var f=a.l[b[e]].j,g=f.length-1;0<=g;g--){var h=f[g];c[h]||(d.push(h),b.push(h))}d.reverse();fc(d);return d},xK=function(a,b){if(Tb(a.h,b))return!0;for(var c=0;c<a.g.length;c++)if(Tb(a.g[c],
b))return!0;return!1};N$.prototype.load=function(a,b){return AK(this,[a],b)[a]};N$.prototype.ga=function(a,b,c){this.o++;this.j=a;Hb(b,Ua(Zb,this.F),this);401==c?(D(this.s,"Module loading unauthorized"),R$(this,0),this.g.length=0):410==c?(S$(this,3),T$(this)):3<=this.o?(D(this.s,"Aborting after failure to load: "+this.h),S$(this,1),T$(this)):(D(this.s,"Retrying after failure to load: "+this.h),this.G(this.j,!0,8001==c))};
N$.prototype.na=function(){D(this.s,"Aborting after timeout: "+this.h);S$(this,2);T$(this)};
var S$=function(a,b){1<a.j.length?a.g=Mb(a.j,function(c){return[c]}).concat(a.g):R$(a,b)},R$=function(a,b){var c=a.j;a.h.length=0;for(var d=[],e=0;e<a.g.length;e++){var f=Lb(a.g[e],function(m){var q=Q$(this,m);return Ob(c,function(r){return Tb(q,r)})},a);dc(d,f)}for(e=0;e<c.length;e++)Vb(d,c[e]);for(e=0;e<d.length;e++){for(f=0;f<a.g.length;f++)Zb(a.g[f],d[e]);Zb(a.m,d[e])}var g=a.u.error;if(g)for(e=0;e<g.length;e++){var h=g[e];for(f=0;f<d.length;f++)h("error",d[f],b)}for(e=0;e<c.length;e++)if(a.l[c[e]])a.l[c[e]].onError(b);
a.j.length=0;P$(a)},T$=function(a){for(;a.g.length;){var b=Lb(a.g.shift(),function(){return!0},a);if(0<b.length){a.G(b);return}}P$(a)};N$.prototype.D=function(a,b){Array.isArray(a)||(a=[a]);for(var c=0;c<a.length;c++){var d=a[c],e=b,f=this.u;f[d]||(f[d]=[]);f[d].push(e)}};var O$=function(a,b){a=a.u[b];for(var c=0;a&&c<a.length;c++)a[c](b)};N$.prototype.dispose=function(){Ds(Cc(this.l),this.X);this.l={};this.h=[];this.j=[];this.m=[];this.g=[];this.u={};this.M=!0};N$.prototype.C=function(){return this.M};
KK=function(){return new N$};var U$=function(a){vj.call(this,a);this.ra=new nK;LK(this.ra);Caa(this.ra);Q3(this.ra,function(b){return new U3(b)});xga(this.ra);this.l=this.F=this.m=this.u=null;this.H=Uw()};t(U$,vj);k=U$.prototype;k.qg=function(){fma(this);km(this)};k.Ua=function(){throw Error("not implemented");};k.Ib=function(){return[{lastSessionId:this.l}]};k.Hb=function(){var a=hm(this);a&&a.lastSessionId&&(this.l=a.lastSessionId)};
k.Vj=function(){var a=this;return this.l||this.g?new Promise(function(b,c){setTimeout(c,5E3);var d=function(){a.m.then(function(){a.l?(a.l=null,b()):c(Error("No session to upload"))})},e=a.g;e?(e.g?$da(e.g):Promise.reject(Error("no call in the session"))).then(function(){b()},d):a.l?d():c(Error("No session to upload"))}):Promise.reject(Error("No session to upload"))};k.Ii=function(a){a.g?(a=a.g,a=a.g?z0(a.g):null):a=null;this.l=a;return Promise.resolve()};
k.wh=function(a,b){a=new X3(b,this.ra,this.m);this.u=a.l.bind(a);return a};k.Ug=function(){W3(0)};k.Rg=function(){W3(1)};k.Sg=function(){tb("MediaRouter.Hangouts.Session.End")};k.Ef=function(a){ub("MediaRouter.Hangouts.Start.Failure",a,Mi)};k.Tg=function(){tb("MediaRouter.Hangouts.Stream.End")};k.du=function(a){this.u&&this.u(a)};k.xm=function(){return"v1"};
var fma=function(a){var b=new CM(new $3(Vw(Tw.Ob())),new Y3(a.du.bind(a)));b=new NM(b,"hangouts",a.xm(),"",.1>Math.random()?"https://preprod-hangouts-googleapis.sandbox.google.com":"https://hangouts.clients6.google.com",a.H);b=new XM(b);N(b.g,1,39);N(b.g,5,158);N(b.g,2,"castouts");N(b.g,3,"castouts");dN(b);bN(b);var c=.01;"google.com"==Mt(Vw(Tw.Ob()))&&(c=1);N(b.g,9,c);N(b.g,10,"https://hangouts.google.com/hangouts/_/logpref");N(b.g,11,"https://clients2.google.com/cr/report");b.register(a.ra);a.m=
new Promise(function(d,e){a.F=a.ra.get(TK);Haa(a.F).then(d,e)})};var V$=function(){U$.call(this,"hangouts")};t(V$,U$);V$.prototype.Ua=function(){return"HangoutsService"};var gma=new V$;mj("mr.mirror.hangouts.HangoutsService",gma);var W$=function(){U$.call(this,"meetings");this.C=null};t(W$,U$);W$.prototype.Ua=function(){return"MeetingsService"};W$.prototype.xm=function(){return"v1_meetings"};var X$=function(a){null==a.C&&(a.C=new I2(a.ra.get(OK)),t2(a.C.j,Tfa(function(){return bt(Vw(Tw.Ob()).getAuthToken())})));return a.C};W$.prototype.Qb=function(a){return Promise.resolve(g3(X$(this),a.input).then(function(b){return b.Qb()}))};
W$.prototype.qg=function(){U$.prototype.qg.call(this);var a=X$(this);this.ra.registerService(vM,a)};var hma=new W$;mj("mr.mirror.hangouts.MeetingsService",hma);
