'use strict';var Zz=function(){this.h=new Ol;this.b=2;this.f=4294967295;this.b=Math.max(this.b,2);this.f=Math.min(this.f,4294967295);this.b>this.f&&(this.b=2,this.f=4294967295)},$z=function(a){for(var b=a.f-a.b+1,c=Math.floor(a.b+b*Math.random()),d=0;a.h.contains(c);)if(c<a.f?++c:c=a.b,++d>=b)return null;a.h.add(c);return c};new Fk({neon:1,sse2:2,ssse3:4,sse4_1:8,sse4_2:16,avx:32});/*
 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 aA=function(a,b){this.o=[];this.L=a;this.C=b||null;this.j=this.h=!1;this.g=void 0;this.B=this.D=this.A=!1;this.u=0;this.f=null;this.m=0};aA.prototype.cancel=function(a){if(this.h)this.g instanceof aA&&this.g.cancel();else{if(this.f){var b=this.f;delete this.f;a?b.cancel(a):(b.m--,0>=b.m&&b.cancel())}this.L?this.L.call(this.C,this):this.B=!0;this.h||this.b(new bA(this))}};aA.prototype.F=function(a,b){this.A=!1;cA(this,a,b)};
var cA=function(a,b,c){a.h=!0;a.g=c;a.j=!b;dA(a)},fA=function(a){if(a.h){if(!a.B)throw new eA(a);a.B=!1}};aA.prototype.callback=function(a){fA(this);cA(this,!0,a)};aA.prototype.b=function(a){fA(this);cA(this,!1,a)};var hA=function(a,b,c){return gA(a,b,null,c)},iA=function(a,b){return gA(a,null,b,void 0)},gA=function(a,b,c,d){a.o.push([b,c,d]);a.h&&dA(a);return a};
aA.prototype.then=function(a,b,c){var d,e,f=new It(function(a,b){d=a;e=b});gA(this,d,function(a){a instanceof bA?f.cancel():e(a)});return f.then(a,b,c)};Et(aA);var jA=function(a,b){b instanceof aA?hA(a,p(b.s,b)):hA(a,function(){return b})};aA.prototype.s=function(a){var b=new aA;gA(this,b.callback,b.b,b);a&&(b.f=this,this.m++);return b};aA.prototype.isError=function(a){return a instanceof Error};
var kA=function(a){return dc(a.o,function(a){return hb(a[1])})},dA=function(a){if(a.u&&a.h&&kA(a)){var b=a.u,c=lA[b];c&&(Pa.clearTimeout(c.Oa),delete lA[b]);a.u=0}a.f&&(a.f.m--,delete a.f);b=a.g;for(var d=c=!1;a.o.length&&!a.A;){var e=a.o.shift(),f=e[0],h=e[1];e=e[2];if(f=a.j?h:f)try{var k=f.call(e||a.C,b);Qa(k)&&(a.j=a.j&&(k==b||a.isError(k)),a.g=b=k);if(Ft(b)||"function"===typeof Pa.Promise&&b instanceof Pa.Promise)d=!0,a.A=!0}catch(n){b=n,a.j=!0,kA(a)||(c=!0)}}a.g=b;d&&(k=p(a.F,a,!0),d=p(a.F,a,
!1),b instanceof aA?(gA(b,k,d),b.D=!0):b.then(k,d));c&&(b=new mA(b),lA[b.Oa]=b,a.u=b.Oa)},oA=function(){var a=new aA;a.callback(new nA(200,""));return a},pA=function(a){var b=new aA;a.then(function(a){b.callback(a)},function(a){b.b(a)});return b},qA=function(a){var b=new aA;b.b(a);return b},eA=function(){Ub.call(this)};t(eA,Ub);eA.prototype.message="Deferred has already fired";eA.prototype.name="AlreadyCalledError";var bA=function(){Ub.call(this)};t(bA,Ub);bA.prototype.message="Deferred was canceled";
bA.prototype.name="CanceledError";var mA=function(a){this.Oa=Pa.setTimeout(p(this.f,this),0);this.b=a};mA.prototype.f=function(){delete lA[this.Oa];throw this.b;};var lA={};var rA=function(){Hs.call(this)};t(rA,Hs);rA.prototype.l=ls("fava.debug.ErrorReporter");rA.prototype.init=function(){};new rA;ls("fava.debug.errorContext");var sA=function(a,b){Hs.call(this);this.j=b;this.b=[];if(a>this.j)throw Error("[goog.structs.SimplePool] Initial cannot be greater than max");for(b=0;b<a;b++)this.b.push(this.f())};t(sA,Hs);var tA=function(a,b){a.b.length<a.j?a.b.push(b):a.g(b)};sA.prototype.f=function(){return{}};sA.prototype.g=function(a){if(ib(a))if(hb(a.Ra))a.Ra();else for(var b in a)delete a[b]};sA.prototype.ja=function(){sA.ra.ja.call(this);for(var a=this.b;a.length;)this.g(a.pop());delete this.b};var wA=function(){this.b=[];this.f=new Fk;this.B=this.F=this.C=this.o=0;this.h=new Fk;this.m=this.A=0;this.L=1;this.g=new sA(0,4E3);this.g.f=function(){return new uA};this.u=new sA(0,50);this.u.f=function(){return new vA};var a=this;this.j=new sA(0,2E3);this.j.f=function(){return String(a.L++)};this.j.g=function(){};this.s={}};wA.prototype.l=ls("goog.debug.Trace");var vA=function(){this.Ji=this.time=this.count=0};
vA.prototype.toString=function(){var a=[];a.push(this.type," ",this.count," (",Math.round(10*this.time)/10," ms)");this.Ji&&a.push(" [VarAlloc = ",this.Ji,"]");return a.join("")};var uA=function(){},zA=function(a,b,c,d){var e=[];-1==c?e.push("    "):e.push(xA(a.eventTime-c));e.push(" ",yA(a.eventTime-b));0==a.eventType?e.push(" Start        "):1==a.eventType?(e.push(" Done "),e.push(xA(a.f-a.startTime)," ms ")):e.push(" Comment      ");e.push(d,a);0<a.b&&e.push("[VarAlloc ",a.b,"] ");return e.join("")};
uA.prototype.toString=function(){return null==this.type?this.comment:"["+this.type+"] "+this.comment};var AA={wx:!0};wA.prototype.xi=function(){this.s={}};var BA=function(a){a.s.stop&&Ak(a.f,function(a){this.s.stop(a.id,AA)},a);a.f.clear()};
wA.prototype.reset=function(){BA(this);for(var a=0;a<this.b.length;a++){var b=this.b[a];b.id?Ik(this.f,b.id)||(tA(this.j,b.id),tA(this.g,b)):tA(this.g,b)}this.b.length=0;this.o=q();this.m=this.A=this.B=this.F=this.C=0;a=this.h.ub();for(b=0;b<a.length;b++){var c=this.h.get(a[b]);c.count=0;c.time=0;c.Ji=0;tA(this.u,c)}this.h.clear()};
wA.prototype.toString=function(){for(var a=[],b=-1,c=[],d=0;d<this.b.length;d++){var e=this.b[d];1==e.eventType&&c.pop();a.push(" ",zA(e,this.o,b,c.join("")));b=e.eventTime;a.push("\n");0==e.eventType&&c.push("|  ")}if(0!=this.f.pa()){var f=q();a.push(" Unstopped timers:\n");Ak(this.f,function(b){a.push("  ",b," (",f-b.startTime," ms, started at ",yA(b.startTime),")\n")})}b=this.h.ub();for(d=0;d<b.length;d++)c=this.h.get(b[d]),1<c.count&&a.push(" TOTAL ",c,"\n");a.push("Total tracers created ",this.A,
"\n","Total comments created ",this.m,"\n","Overhead start: ",this.C," ms\n","Overhead end: ",this.F," ms\n","Overhead comment: ",this.B," ms\n");return a.join("")};var xA=function(a){a=Math.round(a);var b="";1E3>a&&(b=" ");100>a&&(b="  ");10>a&&(b="   ");return b+a},yA=function(a){a=Math.round(a);return String(100+a/1E3%60).substring(1,3)+"."+String(1E3+a%1E3).substring(1,4)};new wA;ls("goog.debug.ErrorReporter");var CA=function(a){this.f=0;this.h=a||100;this.b=[]};g=CA.prototype;g.add=function(a){var b=this.b[this.f];this.b[this.f]=a;this.f=(this.f+1)%this.h;return b};g.get=function(a){a=DA(this,a);return this.b[a]};g.set=function(a,b){a=DA(this,a);this.b[a]=b};g.pa=function(){return this.b.length};g.cc=function(){return 0==this.b.length};g.clear=function(){this.f=this.b.length=0};g.ea=function(){var a=this.pa(),b=this.pa(),c=[];for(a=this.pa()-a;a<b;a++)c.push(this.get(a));return c};
g.ub=function(){for(var a=[],b=this.pa(),c=0;c<b;c++)a[c]=c;return a};g.re=function(a){for(var b=this.pa(),c=0;c<b;c++)if(this.get(c)==a)return!0;return!1};var DA=function(a,b){if(b>=a.b.length)throw Error("Out of bounds exception");return a.b.length<a.h?b:(a.f+Number(b))%a.h};q();ls("fava.debug.DebugService");var EA="https://clients2.google.com/cr/report",FA=function(a,b,c,d,e){var f=new FormData;f.append("prod",Ld?"Google_Talk_Plugin_Mac":Md?"Google_Talk_Plugin":"Google_Talk_Plugin_Linux");f.append("ver",(e?e:"unknown")+"-calls");f.append("email",b);f.append("type","log");f.append("log",new Blob([a]),d);if(a=c)try{a=!!navigator.sendBeacon&&navigator.sendBeacon(EA,f)}catch(k){a=!1}if(a)return oA();try{var h=new aA;Zv(EA,function(a){a=a.target;iw(a)?h.callback(new nA(a.Ia(),jw(a))):(a=Error(a.u+" "+a.Ia()+
" "+jw(a)),h.b(a))},"POST",f);return h}catch(k){return qA(k)}},nA=function(a,b){this.b=a;this.f=b};var GA=function(a,b){Y.call(this);this.B=a||4194304;this.D=b||10485760;this.b=this.j=this.g=this.u=this.C=null;this.f=this.o=0;this.m=[]};t(GA,Y);var HA=function(a){a.g||(a.g=new Uint8Array(a.B+a.D),a.j=a.g.subarray(0,a.B),a.b=a.g.subarray(a.B))};GA.prototype.open=function(a,b,c){if(!this.C){var d=Ut();this.C=d.U;a=IA(a,b,!!c);b=JA(a);b=KA(this,b);LA(this,b,a).then(function(a){this.u=a;this.A();d.resolve()},p(d.reject,d),this)}return this.C};
var MA=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};GA.prototype.write=function(a){w(a,function(a){this.m.push(MA(ph(a)))},this);this.A()};GA.prototype.cc=function(){return 0==this.f&&0==this.m.length};
var NA=function(a){var b=0,c=[];if(a.g&&a.f>a.g.length){for(var d=a.j.length;d&&127<a.j[d-1];)d--;for(var e=a.b.length,f=a.o;e&&127<a.b[f];)f++,e--,f==a.b.length&&(f=0);c.push(a.j.subarray(0,d));b+=d;d=MA(ph("...\r\n\r\n##### LOG TRUNCATED - REMOVED "+(a.f-d-e)+" BYTES#####\r\n\r\n..."));c.push(d);b+=d.length;f+e<=a.b.length?c.push(a.b.subarray(f,f+e)):(c.push(a.b.subarray(f)),c.push(a.b.subarray(0,e-(a.b.length-f))));b+=e}else a.g&&a.f&&(b+=a.f,c.push(a.g.subarray(0,a.f)));a.m.length&&w(a.m,function(a){c.push(a);
b+=a.length});var h=new Uint8Array(b),k=0;w(c,function(a){h.set(a,k);k+=a.length});return h},IA=function(a,b,c){var d=Ut();a.then(function(a){a.getFile(b,c?{}:{create:!0},p(d.resolve,d),p(d.reject,d))},p(d.reject,d));return d.U},JA=function(a){var b=Ut();a.then(function(a){a.file(p(b.resolve,b),p(b.reject,b))},p(b.reject,b));return b.U},KA=function(a,b){var c=Ut();b.then(function(a){HA(this);this.f=a.size;if(this.f>this.g.length){var b=Ut(),d=new FileReader;d.onload=p(function(){this.j.set(new Uint8Array(d.result));
b.resolve()},this);d.readAsArrayBuffer(a.slice(0,this.j.length));var h=Ut(),k=new FileReader;k.onload=p(function(){this.b.set(new Uint8Array(k.result));h.resolve()},this);k.readAsArrayBuffer(a.slice(a.size-this.b.length,a.size));c.resolve(St([b.U,h.U]))}else{var n=new FileReader;n.onload=p(function(){var a=new Uint8Array(n.result);this.g.set(a);this.f>this.j.length&&(this.o=(this.f-this.j.length)%this.b.length);c.resolve()},this);n.readAsArrayBuffer(a)}},p(c.reject,c),a);return c.U},LA=function(a,
b,c){var d=Ut();Rt([b,c]).then(function(a){a[1].createWriter(p(function(a){a.seek(a.length);a.onwriteend=p(this.A,this);d.resolve(a)},this),p(d.reject,d))},p(d.reject,d),a);return d.U};
GA.prototype.A=function(){this.u&&this.u.readyState!=this.u.WRITING&&0<this.m.length&&(this.u.write(new Blob(this.m)),HA(this),w(this.m,function(a){var b=this.f;this.f+=a.length;if(b<this.g.length){var c=a.subarray(0,Math.min(this.g.length-b,a.length));this.g.set(c,b);a=a.subarray(c.length)}for(b=this.b.length-this.o;a.length;)c=a.subarray(0,Math.min(b,a.length)),this.b.set(c,this.o),a=a.subarray(c.length),this.o=c.length==b?0:this.o+c.length,b=this.b.length},this),this.m.length=0)};var PA=function(a){N(this,a,"cl:plu",-1,OA)};t(PA,M);var OA=[1];PA.prototype.w=function(){var a=new y;var b=U(this,QA,1);0<b.length&&K(a,1,b,RA);return A(a)};var QA=function(a){N(this,a,0,-1,null)};t(QA,M);QA.prototype.w=function(){var a=new y;RA(this,a);return A(a)};var RA=function(a,b){var c=O(a,1);null!=c&&hi(b,1,c);c=O(a,2);null!=c&&J(b,2,c);c=O(a,3);null!=c&&E(b,3,c)};QA.prototype.Aa=function(a){S(this,2,a)};Ti("cl:plu",PA);var SA=function(){};var TA=function(){};t(TA,SA);TA.prototype.pa=function(){var a=0;Ak(this.tb(!0),function(){a++});return a};TA.prototype.clear=function(){var a=Dk(this.tb(!0)),b=this;w(a,function(a){b.remove(a)})};var UA=function(a){this.b=a};t(UA,TA);g=UA.prototype;g.isAvailable=function(){if(!this.b)return!1;try{return this.b.setItem("__sak","1"),this.b.removeItem("__sak"),!0}catch(a){return!1}};g.set=function(a,b){try{this.b.setItem(a,b)}catch(c){if(0==this.b.length)throw"Storage mechanism: Storage disabled";throw"Storage mechanism: Quota exceeded";}};g.get=function(a){a=this.b.getItem(a);if(!Ra(a)&&null!==a)throw"Storage mechanism: Invalid value was encountered";return a};g.remove=function(a){this.b.removeItem(a)};
g.pa=function(){return this.b.length};g.tb=function(a){var b=0,c=this.b,d=new yk;d.next=function(){if(b>=c.length)throw xk;var d=c.key(b++);if(a)return d;d=c.getItem(d);if(!Ra(d))throw"Storage mechanism: Invalid value was encountered";return d};return d};g.clear=function(){this.b.clear()};g.key=function(a){return this.b.key(a)};var VA=function(){var a=null;try{a=window.localStorage||null}catch(b){}this.b=a};t(VA,UA);var WA=function(){this.b=new VA;this.f=new Ol};ab(WA);var XA=[31,37,41,43,47,53,61,67,71,73];WA.prototype.l=ls("talk.media.webrtc.PendingLogUploadManager");
var YA=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]^=XA[a%XA.length];return"wrplumplu-"+Ah(b)},ZA=function(a,b,c){var d=q()-432E6;b=a.b.get(YA(b));if(null!=b)try{var e=Eu(b);if("cl:plu"==e[0]){var f=new PA(e),h=ac(U(f,QA,1),function(a){return null!=O(a,1)&&null!=O(a,2)&&null!=O(a,3)&&0<O(a,1)&&O(a,3)>d&&O(a,2)!=c});Ji(f,1,h);return f}}catch(k){os(a.l,"Invalid pending JS log upload storage: "+b,k)}return new PA};
WA.prototype.add=function(a,b){W(this.l,"Recording pending upload for session "+b+" for "+a);this.f.add(b);var c=ZA(this,a,b),d=U(c,QA,1),e=new QA;S(e,1,5);e.Aa(b);b=q();S(e,3,b);lc(d,void 0,0,e);Ji(c,1,d);this.b.set(YA(a),c.ya())};WA.prototype.remove=function(a,b){W(this.l,"Removing record for session "+b+" for "+a);b=ZA(this,a,b);this.b.set(YA(a),b.ya())};
var $A=function(a,b){var c=ZA(a,b),d=U(c,QA,1),e=fc(d,function(a){a=O(a,2);return!this.f.contains(a)},a);if(0<=e){var f=d[e],h=O(f,2),k=O(f,1);k--;S(f,1,k);0>=k&&oc(d,e);Ji(c,1,d);a.b.set(YA(b),c.ya());W(a.l,"Signaling session "+h+" for "+b+" to re-upload");a.f.add(h);return h}return null};var bB=function(){this.j="";this.u=null;this.m=new GA;this.b={};this.h=aB();Yt(this.h,Ya);this.g=WA.Ha();this.s=this.f=null;this.B=window.requestIdleCallback||null};ab(bB);
var cB=function(a,b,c,d){var e=q();null==a.u&&(a.u=e);d=null!=d?d:8;if(!(0>d))if(c="["+((e-a.u)/1E3).toFixed(3)+"s]"+d+" "+c+"\n",null!=b)a=a.b[b],null!=a&&a.write([c]);else{for(b in a.b)a.b[b].write([c]);null!=b||a.m.write([c])}},eB=function(a,b,c){a.g.add(c,b);return dB(a,b,c)},dB=function(a,b,c){var d="hangouts-call-"+b+".log",e=a.b[b];if(null!=e)return iA(hA(FA(NA(e),c,!0,d,a.j),p(a.A,a,b,c)),p(a.o,a,b,c));e=new GA;var f=new aA;e.open(a.h,d,!0).then(function(){if(e.cc())cB(this,this.f,"JS log for "+
b+" has no content",9),f.callback(new nA(null,"No log content for session "+b));else{var a=iA(hA(FA(NA(e),c,!1,void 0,this.j),p(this.A,this,b,c)),p(this.o,this,b,c));gA(a,f.callback,f.b,f)}},function(a){this.o(b,c,a);f.b(a)},a);return f},aB=function(){var a=Pa.requestFileSystem||Pa.webkitRequestFileSystem;if(!a)return Nt("Filesystem API not accessible");var b=Ut();a(window.TEMPORARY,0,function(a){a.root.getDirectory("log_v2",{create:!0},p(b.resolve,b),p(b.reject,b))},p(b.reject,b));return b.U};
bB.prototype.ka=function(a){var b=Ut(),c=a.createReader(),d=[],e=0,f=function(){c.readEntries(function(a){a.length?(e++,d=d.concat(a),100<e?b.resolve(d):f()):b.resolve(d)},function(a){b.reject(a)})};f();return b.U};
bB.prototype.D=function(){var a=new Date(q()-432E6),b=Ut();this.h.then(this.ka,null,this).then(function(c){var d={};w(c,function(a){d[a.name]=!0});w(c,function(c){var e=function(){delete d[c.name];nd(d)&&b.resolve()};c.getMetadata(function(b){b.modificationTime<a?c.remove(e,e):e()},e)})},p(b.resolve,b));return b.U};bB.prototype.A=function(a,b,c){200==c.b?(cB(this,this.f,"JS log upload for "+a+" successful: "+c.f),this.g.remove(b,a)):cB(this,this.f,"JS log upload for "+a+" failure "+c.b+": "+c.f,10)};
bB.prototype.o=function(a,b,c){cB(this,this.f,"JS log upload for "+a+" failed: "+c,10)};var fB=function(a,b){return null==a.s?(a.s=new aA,a.C(b,0),a.s):null};bB.prototype.C=function(a,b){iu(p(this.K,this,a,b),13E3)};bB.prototype.K=function(a,b){hb(this.B)?this.B.call(null,p(this.F,this,a,b)):this.F(a,b)};bB.prototype.F=function(a,b){var c=$A(this.g,a);null!=c?(cB(this,this.f,"Retrying JS log upload for "+c),iA(hA(dB(this,c,a),p(this.C,this,a,b+1)),p(this.L,this,a,b))):this.L(b)};
bB.prototype.L=function(a){this.s.callback(a);iu(this.D,13E3,this)};var gB=new RegExp(/(?:hangouts\/_|present)/.source+"[/]"+/(?:[^\/]+\.[^\/]+)/.source+"[/]"+/([\w_\-]+)/.source+/[\?\/]?/.source);var hB=function(a,b){this.status=void 0===a?99:a;this.value=b},iB=new Map([[1,4030],[2,4031],[3,4609],[4,4610],[5,4664]]);var jB=function(){var a=Re(),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},kB=function(){return"https:"==Re().location.protocol?"nkeimhogjdpnpccoofpliimaahmaaome":"hoblmflfjcnhdllclikeemgdcbbflkhi"},nB=function(a,b){b=void 0===b?!0:b;var c=new aA,d=jB(),e=a.method;if(d&&null!=d.sendMessage){b=lB(c,e,b);e=Re().location;a.origin=e.origin+"/";var f=eq(e.href,
"tabId");f&&(a.tabId=f);e=eq(e.href,"winUrl")||e.origin;a.winUrl=e;d.sendMessage(kB(),a,b)}else a=mB(e,"chrome.runtime missing"),cB(bB.Ha(),null,a,10),c.b(new hB(5,a));return c},oB=function(a){var b=bB.Ha();var c=Fu(a);var d=void 0===d?"#REDACTED#":d;var e=gB.exec(c);c=e&&e[1]?c.replace(e[1],d):c;cB(b,null,"talk.media.webrtc.Extension: Sending message "+c);return nB(a)},pB=function(){var a=jB();if(a&&null!=a.connect){cB(bB.Ha(),null,"talk.media.webrtc.Extension: Opening port named processCpu");a=
a.connect(kB(),{name:"processCpu"});var b=p(a.disconnect,a);ct(Re(),"unload",b);a.onDisconnect.addListener(function(){kt(window,"unload",b)});return a}return null},lB=function(a,b,c){return function(d){if(null!=d){var e=d.error;if(null!=e)e="Extension reported: "+e.name+" - "+e.message+".";else{c&&cB(bB.Ha(),null,"talk.media.webrtc.Extension: Received response to "+b+": "+Fu(d.value),5);a.callback(new hB(0,d.value));return}}else e="No response from extension.";d=null!=d?1:2;var f=jB();f?null!=f.lastError&&
(e+=" chrome.runtime.lastError.message: "+f.lastError.message):(d=5,e+=" No chrome.runtime to get chrome.runtime.lastError.message.");e=mB(b,"Hangout Component Extension Error",e);cB(bB.Ha(),null,e,10);a.b(new hB(d,e))}},qB=!1,mB=function(a,b,c){return"talk.media.webrtc.Extension: "+("Method: "+a+"; Type: "+b+"; Explanation: "+(c||""))};var rB=function(a){Hs.call(this);this.o=a;this.f={}};t(rB,Hs);var sB=[];rB.prototype.listen=function(a,b,c,d){return tB(this,a,b,c,d)};
var tB=function(a,b,c,d,e,f){fb(c)||(c&&(sB[0]=c.toString()),c=sB);for(var h=0;h<c.length;h++){var k=ct(b,c[h],d||a.handleEvent,e||!1,f||a.o||a);if(!k)break;a.f[k.key]=k}return a},vB=function(a,b,c,d){uB(a,b,c,d,void 0)},uB=function(a,b,c,d,e,f){if(fb(c))for(var h=0;h<c.length;h++)uB(a,b,c[h],d,e,f);else(b=bt(b,c,d||a.handleEvent,e,f||a.o||a))&&(a.f[b.key]=b)},wB=function(a,b,c,d,e,f){if(fb(c))for(var h=0;h<c.length;h++)wB(a,b,c[h],d,e,f);else d=d||a.handleEvent,e=ib(e)?!!e.capture:!!e,f=f||a.o||
a,d=dt(d),e=!!e,c=Rs(b)?Ys(b.F,String(c),d,e,f):b?(b=ft(b))?Ys(b,c,d,e,f):null:null,c&&(lt(c),delete a.f[c.key]);return a};rB.prototype.removeAll=function(){dd(this.f,function(a,b){this.f.hasOwnProperty(b)&&lt(a)},this);this.f={}};rB.prototype.ja=function(){rB.ra.ja.call(this);this.removeAll()};rB.prototype.handleEvent=function(){throw Error("EventHandler.handleEvent not implemented");};var xB=function(){this.f=this.u=null;this.B=this.h=this.L=this.A=this.F=0;this.C=1;this.b=this.m=this.s=this.j=this.g=this.o=this.D=0},yB=function(a,b){null==a.u&&(a.u=b);var c=q();null!=a.f&&a.A+b.getTime()<a.f.getTime()&&(a.A=a.f.getTime()+(c-a.F)-b.getTime());a.f=new Date(b.getTime()+a.A);a.F=c},zB=function(a){return null!=a.f&&null!=a.u?(a.f.getTime()-a.u.getTime())/1E3:-1};
xB.prototype.toJson=function(){return{jmiVersion:3,numOfProcessors:this.C,totalCpuUsage:this.D,tabCpuUsage:this.b?this.o/this.b:null,browserCpuUsage:this.b?this.g/this.b:null,gpuCpuUsage:this.b?this.j/this.b:null,tabJsMemoryAllocated:this.b?this.s/this.b:null,tabJsMemoryUsed:this.b?this.m/this.b:null}};var AB=function(a){this.f=a;this.l=ls(a);this.b=bB.Ha()},BB=function(a,b){os(a.l,b);cB(a.b,null,"Warning("+a.f+"): "+b,9)};AB.prototype.info=function(a){W(this.l,a);cB(this.b,null,this.f+": "+a,8)};AB.prototype.config=function(a){ms(this.l,cs,a);cB(this.b,null,this.f+": "+a,7)};var CB=function(a){N(this,a,0,-1,null)};t(CB,M);CB.prototype.w=function(){var a=new y;DB(this,a);return A(a)};var DB=function(a,b){var c=O(a,1);null!=c&&J(b,1,c);c=O(a,2);null!=c&&G(b,2,c);c=O(a,3);null!=c&&G(b,3,c);c=O(a,4);null!=c&&G(b,4,c)};CB.prototype.bc=function(){return O(this,2)};CB.prototype.Uc=function(){return O(this,4)};var EB=function(a){N(this,a,0,-1,null)};t(EB,M);EB.prototype.w=function(){var a=new y;FB(this,a);return A(a)};var FB=function(a,b){var c=O(a,1);null!=c&&C(b,1,c);c=O(a,2);null!=c&&C(b,2,c);c=O(a,3);null!=c&&C(b,3,c);c=O(a,4);null!=c&&C(b,4,c);c=O(a,5);null!=c&&C(b,5,c)};EB.prototype.pa=function(){return O(this,5)};var HB=function(a){N(this,a,0,-1,GB)};t(HB,M);var GB=[5,52];HB.prototype.w=function(){var a=new y;IB(this,a);return A(a)};
var IB=function(a,b){var c=O(a,1);null!=c&&J(b,1,c);c=O(a,2);null!=c&&J(b,2,c);c=O(a,133);null!=c&&E(b,133,c);c=O(a,3);null!=c&&C(b,3,c);c=O(a,105);null!=c&&G(b,105,c);c=O(a,107);null!=c&&E(b,107,c);c=O(a,104);null!=c&&E(b,104,c);c=O(a,4);null!=c&&J(b,4,c);c=O(a,43);null!=c&&J(b,43,c);c=U(a,JB,5);0<c.length&&ui(b,5,c,KB);c=O(a,28);null!=c&&F(b,28,c);c=O(a,29);null!=c&&C(b,29,c);c=O(a,30);null!=c&&C(b,30,c);c=O(a,112);null!=c&&J(b,112,c);c=O(a,106);null!=c&&C(b,106,c);c=O(a,100);null!=c&&J(b,100,c);
c=O(a,68);null!=c&&C(b,68,c);c=T(a,LB,69);null!=c&&b.b(69,c,MB);c=O(a,42);null!=c&&E(b,42,c);c=U(a,NB,52);0<c.length&&K(b,52,c,OB);c=T(a,PB,135);null!=c&&b.b(135,c,QB)},JB=function(a){N(this,a,0,-1,RB)};t(JB,M);var RB=[2,13];JB.prototype.w=function(){var a=new y;KB(this,a);return A(a)};
var KB=function(a,b){var c=O(a,1);null!=c&&C(b,6,c);c=O(a,113);null!=c&&C(b,118,c);c=O(a,118);null!=c&&C(b,123,c);c=SB(a);0<c.length&&ui(b,7,c,TB);c=U(a,UB,13);0<c.length&&ui(b,18,c,VB);c=O(a,34);null!=c&&C(b,39,c);c=O(a,92);null!=c&&C(b,97,c);c=O(a,94);null!=c&&C(b,99,c);c=O(a,93);null!=c&&C(b,98,c);c=O(a,35);null!=c&&C(b,40,c);c=O(a,36);null!=c&&C(b,41,c);c=O(a,54);null!=c&&C(b,59,c);c=O(a,66);null!=c&&G(b,71,c);c=O(a,71);null!=c&&li(b,76,c);c=O(a,72);null!=c&&C(b,77,c);c=O(a,73);null!=c&&C(b,78,
c);c=O(a,74);null!=c&&F(b,79,c);c=O(a,75);null!=c&&C(b,80,c);c=T(a,WB,129);null!=c&&b.b(134,c,XB);c=O(a,150);null!=c&&E(b,155,c);c=O(a,151);null!=c&&E(b,156,c)},ZB=function(a){N(this,a,0,-1,YB)};t(ZB,M);var YB=[53,136,54,135,141,142,150];ZB.prototype.w=function(){var a=new y;TB(this,a);return A(a)};
var TB=function(a,b){var c=O(a,1);null!=c&&G(b,8,c);c=O(a,2);null!=c&&C(b,9,c);c=O(a,3);null!=c&&C(b,10,c);c=O(a,4);null!=c&&C(b,11,c);c=O(a,5);null!=c&&C(b,12,c);c=O(a,6);null!=c&&C(b,13,c);c=O(a,7);null!=c&&E(b,14,c);c=O(a,8);null!=c&&C(b,15,c);c=O(a,9);null!=c&&E(b,16,c);c=O(a,10);null!=c&&C(b,17,c);c=O(a,24);null!=c&&G(b,31,c);c=O(a,25);null!=c&&ki(b,32,c);c=O(a,117);null!=c&&li(b,124,c);c=O(a,26);null!=c&&C(b,33,c);c=T(a,EB,140);null!=c&&b.b(147,c,FB);c=O(a,27);null!=c&&C(b,34,c);c=O(a,151);
null!=c&&C(b,158,c);c=O(a,28);null!=c&&C(b,35,c);c=O(a,29);null!=c&&C(b,36,c);c=O(a,30);null!=c&&C(b,37,c);c=O(a,31);null!=c&&C(b,38,c);c=O(a,50);null!=c&&li(b,57,c);c=O(a,87);null!=c&&li(b,94,c);c=O(a,51);null!=c&&li(b,58,c);c=O(a,88);null!=c&&li(b,95,c);c=O(a,37);null!=c&&C(b,44,c);c=O(a,38);null!=c&&C(b,45,c);c=O(a,39);null!=c&&C(b,46,c);c=O(a,40);null!=c&&C(b,47,c);c=O(a,41);null!=c&&C(b,48,c);c=O(a,42);null!=c&&C(b,49,c);c=O(a,43);null!=c&&C(b,50,c);c=O(a,124);null!=c&&C(b,131,c);c=O(a,125);
null!=c&&C(b,132,c);c=O(a,96);null!=c&&C(b,103,c);c=O(a,80);null!=c&&C(b,87,c);c=O(a,44);null!=c&&J(b,51,c);c=O(a,94);null!=c&&J(b,101,c);c=O(a,143);null!=c&&J(b,150,c);c=O(a,46);null!=c&&C(b,53,c);c=O(a,47);null!=c&&C(b,54,c);c=O(a,48);null!=c&&C(b,55,c);c=O(a,49);null!=c&&C(b,56,c);c=O(a,63);null!=c&&li(b,70,c);c=O(a,129);null!=c&&li(b,136,c);c=O(a,133);null!=c&&li(b,140,c);c=P(a,53);0<c.length&&qi(b,60,c);c=U(a,$B,136);0<c.length&&K(b,143,c,aC);c=U(a,bC,54);0<c.length&&ui(b,61,c,cC);c=O(a,57);
null!=c&&C(b,64,c);c=O(a,58);null!=c&&C(b,65,c);c=O(a,144);null!=c&&C(b,151,c);c=O(a,145);null!=c&&C(b,152,c);c=O(a,114);null!=c&&C(b,121,c);c=O(a,115);null!=c&&C(b,122,c);c=O(a,113);null!=c&&C(b,120,c);c=O(a,139);null!=c&&C(b,146,c);c=O(a,78);null!=c&&C(b,85,c);c=O(a,79);null!=c&&C(b,86,c);c=O(a,59);null!=c&&F(b,66,c);c=O(a,60);null!=c&&F(b,67,c);c=O(a,65);null!=c&&C(b,72,c);c=O(a,95);null!=c&&C(b,102,c);c=O(a,68);null!=c&&li(b,75,c);c=O(a,103);null!=c&&li(b,110,c);c=O(a,106);null!=c&&li(b,113,c);
c=O(a,107);null!=c&&li(b,114,c);c=O(a,104);null!=c&&li(b,111,c);c=O(a,74);null!=c&&C(b,81,c);c=O(a,75);null!=c&&C(b,82,c);c=O(a,76);null!=c&&C(b,83,c);c=O(a,77);null!=c&&C(b,84,c);c=O(a,81);null!=c&&C(b,88,c);c=O(a,82);null!=c&&C(b,89,c);c=O(a,83);null!=c&&C(b,90,c);c=O(a,84);null!=c&&C(b,91,c);c=O(a,85);null!=c&&C(b,92,c);c=O(a,86);null!=c&&C(b,93,c);c=O(a,134);null!=c&&C(b,141,c);c=O(a,89);null!=c&&C(b,96,c);c=O(a,112);null!=c&&C(b,119,c);c=O(a,118);null!=c&&C(b,125,c);c=O(a,119);null!=c&&C(b,126,
c);c=T(a,EB,132);null!=c&&b.b(139,c,FB);c=T(a,EB,120);null!=c&&b.b(127,c,FB);c=T(a,EB,121);null!=c&&b.b(128,c,FB);c=T(a,EB,146);null!=c&&b.b(153,c,FB);c=T(a,EB,122);null!=c&&b.b(129,c,FB);c=T(a,EB,123);null!=c&&b.b(130,c,FB);c=T(a,EB,147);null!=c&&b.b(154,c,FB);c=O(a,138);null!=c&&C(b,145,c);c=T(a,EB,137);null!=c&&b.b(144,c,FB);c=O(a,108);null!=c&&C(b,115,c);c=O(a,109);null!=c&&C(b,116,c);c=O(a,110);null!=c&&C(b,117,c);c=O(a,130);null!=c&&E(b,137,c);c=O(a,131);null!=c&&E(b,138,c);c=P(a,135);0<c.length&&
ni(b,142,c);c=P(a,141);0<c.length&&ni(b,148,c);c=P(a,142);0<c.length&&ni(b,149,c);c=P(a,150);0<c.length&&ni(b,157,c)},dC={Zv:0,Wv:1,Pm:2,Yv:3},eC={Om:0,oj:1,Xv:2},fC={Ni:0,Mi:1,Li:2,Cl:4,tq:8,wq:16,vq:32,xq:64,uq:128,pq:256,sq:512,rq:1024,qq:2048,oq:4096,yq:1073741824},$B=function(a){N(this,a,0,-1,null)};t($B,M);$B.prototype.w=function(){var a=new y;aC(this,a);return A(a)};
var aC=function(a,b){var c=O(a,1);null!=c&&E(b,1,c);c=O(a,2);null!=c&&E(b,2,c);c=O(a,3);null!=c&&ki(b,3,c)},bC=function(a){N(this,a,0,-1,gC)};t(bC,M);var gC=[2];bC.prototype.w=function(){var a=new y;cC(this,a);return A(a)};var cC=function(a,b){var c=O(a,1);null!=c&&J(b,62,c);c=P(a,2);0<c.length&&qi(b,63,c)};ZB.prototype.g=function(a){S(this,6,a)};var hC=function(a){return O(a,24)};g=ZB.prototype;g.Pp=function(a){V(this,140,a)};g.Cd=function(a){S(this,57,a)};g.Bd=function(a){S(this,58,a)};
g.Rp=function(a){V(this,132,a)};g.Op=function(a){V(this,121,a)};g.Wp=function(a){V(this,146,a)};g.Np=function(a){V(this,122,a)};g.Sp=function(a){V(this,147,a)};g.Qp=function(a){V(this,137,a)};var UB=function(a){N(this,a,0,-1,null)};t(UB,M);UB.prototype.w=function(){var a=new y;VB(this,a);return A(a)};
var VB=function(a,b){var c=O(a,1);null!=c&&C(b,19,c);c=O(a,2);null!=c&&C(b,20,c);c=O(a,3);null!=c&&C(b,21,c);c=O(a,4);null!=c&&E(b,22,c);c=O(a,5);null!=c&&C(b,23,c);c=O(a,90);null!=c&&C(b,108,c);c=O(a,91);null!=c&&C(b,109,c);c=O(a,6);null!=c&&E(b,24,c);c=O(a,7);null!=c&&C(b,25,c);c=T(a,CB,8,1);null!=c&&b.b(26,c,DB);c=T(a,CB,9,1);null!=c&&b.b(27,c,DB);c=O(a,55);null!=c&&C(b,73,c);c=T(a,iC,56);null!=c&&b.b(74,c,jC)},iC=function(a){N(this,a,0,-1,null)};t(iC,M);
iC.prototype.w=function(){var a=new y;jC(this,a);return A(a)};var jC=function(a,b){var c=O(a,1);null!=c&&C(b,1,c);c=O(a,2);null!=c&&C(b,2,c);c=O(a,3);null!=c&&C(b,3,c);c=O(a,4);null!=c&&C(b,4,c)};UB.prototype.g=function(a){S(this,3,a)};var WB=function(a){N(this,a,0,-1,kC)};t(WB,M);var kC=[3];WB.prototype.w=function(){var a=new y;XB(this,a);return A(a)};
var XB=function(a,b){var c=O(a,1);null!=c&&C(b,1,c);c=O(a,2);null!=c&&C(b,2,c);c=P(a,3);0<c.length&&ni(b,3,c)},SB=function(a){return U(a,ZB,2)},lC=function(a,b){Ji(a,2,b)};JB.prototype.g=function(a){S(this,36,a)};var LB=function(a){N(this,a,0,-1,null)};t(LB,M);LB.prototype.w=function(){var a=new y;MB(this,a);return A(a)};var MB=function(a,b){var c=O(a,1);null!=c&&G(b,1,c);c=O(a,2);null!=c&&E(b,2,c)},NB=function(a){N(this,a,0,-1,mC)};t(NB,M);var mC=[3,4];
NB.prototype.w=function(){var a=new y;OB(this,a);return A(a)};var OB=function(a,b){var c=O(a,1);null!=c&&J(b,1,c);c=O(a,2);null!=c&&J(b,2,c);c=P(a,3);0<c.length&&qi(b,3,c);c=P(a,4);0<c.length&&qi(b,4,c)},PB=function(a){N(this,a,0,-1,null)};t(PB,M);PB.prototype.w=function(){var a=new y;QB(this,a);return A(a)};var QB=function(a,b){var c=O(a,1);null!=c&&J(b,1,c);c=O(a,2);null!=c&&G(b,2,c)};PB.prototype.Uc=function(){return O(this,2)};var nC=new Date(0)-new Date("1900/01/01 00:00 GMT"),qC=function(a,b,c){b&&(kd(a,"googFrameWidthSent")&&(a.googFrameWidthSent=0),kd(a,"googFrameHeightSent")&&(a.googFrameHeightSent=0));b=Number(a.ssrc);if(null!=b){var d=a.googCaptureStartNtpTimeMs;if(null!=d&&0<d){var e=c.xf(b);null!=e&&(d=d-nC+1E3*e,a.oneWayDelayMs=q()-d)}null!=a.bytesReceived&&(d=oC(c,b),null!=d&&(null!=d.ek&&(a.fpsGraphicsInput=d.ek),null!=d.fk&&(a.fpsGraphicsOutput=d.fk)));d=fC.Ni;e=a.googCpuLimitedResolution;var f=a.googBandwidthLimitedResolution,
h=a.googViewLimitedResolution;if(null!=e||null!=f||null!=h)"true"==e&&(d|=fC.Mi),"true"==f&&(d|=fC.Li),"true"==h&&(d|=fC.Cl),a.googAdaptationReason=d;if(!m(a.googInterframeDelayMax)||isNaN(a.googInterframeDelayMax))c=pC(c,b),null!=c&&(a.googInterframeDelayMax=c)}};var rC=function(a,b,c){if(c)for(var d=0;d<c.length;d++);this.h=a;this.f=b||null;this.b=c||[]};rC.prototype.toString=function(){return this.h};var sC=function(){rB.call(this);this.j=new Fk;this.g=new Fk;this.b=new Fk;tB(this,document,"visibilitychange",this.u,!1,this);this.m=new AB("talk.media.webrtc.OutputTracker")};t(sC,rB);var tC=new rC("Y2E25b"),uC=function(a,b){var c=b.f-a.f;0==c&&(c=O(b,29)-O(a,29));return c},vC=function(a){this.xb=a};vC.prototype.xf=function(){return this.xb.xf()};
var xC=function(a){var b=void 0===b?!1:b;a.m[tC]||wC(a,tC,function(a){return new sC(a)});b&&(a.F[tC]=!0)},yC=function(a,b,c){var d=a.b.get(b);null!=d?qc(d,function(a){return a.xb==c},a)?0==d.length&&a.b.remove(b):BB(a.m,"recordBeforeAudioStop: No matching element found for ssrc "+b):BB(a.m,"recordBeforeAudioStop: No info found for ssrc "+b)},oC=function(a,b){var c=a.j.get(b);null!=c&&w(c,function(a){zC(this,b,a)},a);c=a.g.get(b);if(null==c)return null;a.g.remove(b);a=AC(c);c=BC(c);return null!=a||
null!=c?{ek:a,fk:c}:null},zC=function(a,b,c){c=c.b();c.b.b<c.start.b?BB(a.m,"Non-monotonic frame count: "+c.b.b):(Ik(a.g,b)||a.g.set(b,[]),-1>c.h()&&BB(a.m,"Negative fps! s:{"+c.start.toString()+"} e:{"+c.b.toString()+"}"),a.g.get(b).push(c))};sC.prototype.u=function(){this.j.forEach(function(a,b){w(a,function(a){zC(this,b,a)},this)},this)};
var AC=function(a){var b=0,c=0;w(a,function(a){b+=a.b.b-a.start.b;c+=a.b.timestamp-a.start.timestamp});return 0==c?null:b/c},BC=function(a){var b=[];w(a,function(a){a.g||(b.push({t:a.start.timestamp,c:1,i:a}),b.push({t:a.b.timestamp,c:-1,i:a}))});Ac(b);var c=0,d=0,e=-Infinity,f=[];w(b,function(a){var b=a.t,h=b-e;0<f.length&&(c+=b-e,d+=O(f[0],29)*h);1==a.c?(kc(f,a.i),yc(f,uC)):pc(f,a.i);e=b});return 0==c?null:d/c};
sC.prototype.xf=function(a){a=this.j.get(a)||this.b.get(a);if(null==a)return null;var b=0,c=!1;w(a,function(a){a=a.xf();null!=a&&(b=Math.max(a,b),c=!0)});return c?b:null};var pC=function(a,b){a=a.j.get(b);return null!=a?cc(a,function(a,b){b=pC(b);return null==a?b:null==b?a:Math.max(a,b)},null):null};sC.prototype.ja=function(){this.j.clear();this.b.clear();this.g.clear();sC.ra.ja.call(this)};var CC=function(a){N(this,a,0,-1,null)};t(CC,M);CC.prototype.w=function(){var a=new y;DC(this,a);return A(a)};var DC=function(a,b){var c=T(a,EC,1);null!=c&&b.b(1,c,FC);c=T(a,GC,2);null!=c&&b.b(2,c,HC);c=T(a,GC,3);null!=c&&b.b(3,c,HC);c=T(a,IC,4);null!=c&&b.b(4,c,JC)},EC=function(a){N(this,a,0,-1,null)};t(EC,M);EC.prototype.w=function(){var a=new y;FC(this,a);return A(a)};var FC=function(a,b){var c=O(a,1);null!=c&&J(b,1,c);c=O(a,2);null!=c&&G(b,2,c)},GC=function(a){N(this,a,0,-1,null)};t(GC,M);
GC.prototype.w=function(){var a=new y;HC(this,a);return A(a)};
var HC=function(a,b){var c=O(a,1);null!=c&&C(b,1,c);c=O(a,2);null!=c&&C(b,2,c);c=O(a,3);if(null!=c&&(a=c,null!=a)){di(b,3,1);b=b.f;var d=a;d=(a=0>d?1:0)?-d:d;0===d?(Eh=0<1/d?0:2147483648,Dh=0):isNaN(d)?(Eh=2147483647,Dh=4294967295):1.7976931348623157E308<d?(Eh=(a<<31|2146435072)>>>0,Dh=0):2.2250738585072014E-308>d?(d/=Math.pow(2,-1074),Eh=(a<<31|d/4294967296)>>>0,Dh=d>>>0):(c=Math.floor(Math.log(d)/Math.LN2),1024==c&&(c=1023),d*=Math.pow(2,-c),Eh=(a<<31|c+1023<<20|1048576*d&1048575)>>>0,Dh=4503599627370496*
d>>>0);ci(b,Dh);ci(b,Eh)}},IC=function(a){N(this,a,0,-1,null)};t(IC,M);IC.prototype.w=function(){var a=new y;JC(this,a);return A(a)};var JC=function(a,b){var c=O(a,1);null!=c&&G(b,1,c);c=O(a,2);null!=c&&J(b,2,c);c=O(a,3);null!=c&&E(b,3,c);c=O(a,4);null!=c&&E(b,4,c)};var KC=function(a){N(this,a,0,-1,null)};t(KC,M);KC.prototype.w=function(){var a=new y;LC(this,a);return A(a)};var LC=function(a,b){var c=O(a,1);null!=c&&J(b,1,c);c=T(a,MC,2);null!=c&&b.b(2,c,NC)},MC=function(a){N(this,a,0,-1,null)};t(MC,M);MC.prototype.w=function(){var a=new y;NC(this,a);return A(a)};var NC=function(a,b){var c=O(a,1);null!=c&&J(b,1,c);c=O(a,2);null!=c&&J(b,2,c);c=O(a,3);null!=c&&C(b,3,c);c=O(a,4);null!=c&&J(b,4,c);c=O(a,5);null!=c&&F(b,5,c);c=O(a,6);null!=c&&G(b,6,c)};var OC=function(a){N(this,a,0,1,null)};t(OC,M);OC.prototype.w=function(){var a=new y;PC(this,a);return A(a)};var PC=function(a,b){zi(a,b,QC,OC.prototype.m)},QC={};var SC=function(a){N(this,a,0,-1,RC)};t(SC,M);var RC=[14];SC.prototype.w=function(){var a=new y;TC(this,a);return A(a)};
var TC=function(a,b){var c=O(a,1);null!=c&&J(b,1,c);c=O(a,2);null!=c&&J(b,2,c);c=O(a,3);null!=c&&J(b,3,c);c=O(a,4);null!=c&&G(b,4,c);c=O(a,10);null!=c&&J(b,10,c);c=O(a,5);null!=c&&J(b,5,c);c=T(a,UC,6);null!=c&&b.b(6,c,VC);c=O(a,7);null!=c&&G(b,7,c);c=T(a,WC,8);null!=c&&b.b(8,c,XC);c=T(a,YC,9);null!=c&&b.b(9,c,ZC);c=T(a,$C,11);null!=c&&b.b(11,c,aD);c=a.Dg();null!=c&&b.b(12,c,bD);c=O(a,13);null!=c&&G(b,13,c);c=P(a,14);0<c.length&&si(b,14,c)},WC=function(a){N(this,a,0,-1,null)};t(WC,M);
WC.prototype.w=function(){var a=new y;XC(this,a);return A(a)};var XC=function(a,b){var c=O(a,1);null!=c&&E(b,1,c);c=T(a,cD,2);null!=c&&b.b(2,c,dD);c=O(a,3);null!=c&&J(b,3,c);c=T(a,eD,4);null!=c&&b.b(4,c,fD);c=T(a,gD,5);null!=c&&b.b(5,c,hD);c=T(a,iD,6);null!=c&&b.b(6,c,jD);c=T(a,OC,7);null!=c&&b.b(7,c,PC)},cD=function(a){N(this,a,0,-1,null)};t(cD,M);cD.prototype.w=function(){var a=new y;dD(this,a);return A(a)};
var dD=function(a,b){var c=O(a,1);null!=c&&E(b,1,c);c=O(a,2);null!=c&&E(b,2,c)},UC=function(a){N(this,a,0,-1,null)};t(UC,M);UC.prototype.w=function(){var a=new y;VC(this,a);return A(a)};var VC=function(a,b){var c=O(a,1);null!=c&&J(b,1,c);c=O(a,2);null!=c&&G(b,2,c)},eD=function(a){N(this,a,0,-1,null)};t(eD,M);eD.prototype.w=function(){var a=new y;fD(this,a);return A(a)};var fD=function(a,b){a=O(a,1);null!=a&&J(b,1,a)},gD=function(a){N(this,a,0,-1,null)};t(gD,M);
gD.prototype.w=function(){var a=new y;hD(this,a);return A(a)};var hD=function(a,b){var c=O(a,1);null!=c&&J(b,1,c);c=O(a,2);null!=c&&E(b,2,c);c=O(a,3);null!=c&&J(b,3,c);c=O(a,4);null!=c&&J(b,4,c)};gD.prototype.getTitle=function(){return O(this,3)};gD.prototype.setTitle=function(a){S(this,3,a)};var YC=function(a){N(this,a,0,-1,kD)};t(YC,M);var kD=[5];YC.prototype.w=function(){var a=new y;ZC(this,a);return A(a)};
var ZC=function(a,b){var c=O(a,1);null!=c&&J(b,1,c);c=O(a,2);null!=c&&J(b,2,c);c=O(a,3);null!=c&&F(b,3,c);c=O(a,4);null!=c&&G(b,4,c);c=P(a,5);0<c.length&&si(b,5,c)},iD=function(a){N(this,a,0,-1,null)};t(iD,M);iD.prototype.w=function(){var a=new y;jD(this,a);return A(a)};var jD=function(a,b){var c=O(a,1);null!=c&&G(b,1,c);c=O(a,2);null!=c&&J(b,2,c);c=O(a,3);null!=c&&J(b,3,c)};iD.prototype.Ia=function(){return Q(this,1,0)};var $C=function(a){N(this,a,0,-1,null)};t($C,M);
$C.prototype.w=function(){var a=new y;aD(this,a);return A(a)};var aD=function(a,b){var c=O(a,3);null!=c&&G(b,3,c);c=O(a,4);null!=c&&E(b,4,c);c=O(a,5);null!=c&&F(b,5,c)};$C.prototype.getCurrentState=function(){return O(this,3)};var lD=function(a){N(this,a,0,-1,null)};t(lD,M);lD.prototype.w=function(){var a=new y;bD(this,a);return A(a)};var bD=function(a,b){var c=O(a,1);null!=c&&G(b,1,c);c=O(a,2);null!=c&&G(b,2,c)};SC.prototype.ba=function(){return O(this,1)};SC.prototype.Y=function(a){S(this,1,a)};
SC.prototype.Lb=function(){return O(this,4)};SC.prototype.Dg=function(){return T(this,lD,12)};var mD=function(a){N(this,a,0,-1,null)};t(mD,M);mD.prototype.w=function(){var a=new y;nD(this,a);return A(a)};var nD=function(a,b){var c=O(a,1);null!=c&&J(b,1,c);c=O(a,2);null!=c&&ii(b,2,c);c=O(a,3);null!=c&&ii(b,3,c);c=O(a,4);null!=c&&ii(b,4,c)};mD.prototype.mc=function(){return O(this,4)};var oD=function(a){N(this,a,0,-1,null)};t(oD,M);oD.prototype.w=function(){var a=new y;pD(this,a);return A(a)};var pD=function(a,b){var c=O(a,1);null!=c&&J(b,1,c);c=O(a,2);null!=c&&J(b,2,c);c=O(a,3);null!=c&&J(b,3,c);c=O(a,4);null!=c&&J(b,4,c)};var qD=function(a){N(this,a,0,-1,null)};t(qD,M);qD.prototype.w=function(){var a=new y;rD(this,a);return A(a)};var rD=function(a,b){a=O(a,1);null!=a&&E(b,1,a)};var sD=function(a){N(this,a,0,-1,null)};t(sD,M);sD.prototype.w=function(){var a=new y;tD(this,a);return A(a)};var tD=function(a,b){var c=O(a,1);null!=c&&G(b,1,c);c=O(a,2);null!=c&&G(b,2,c);c=O(a,3);null!=c&&J(b,3,c);c=O(a,4);null!=c&&E(b,4,c);c=O(a,5);null!=c&&J(b,5,c);c=O(a,6);null!=c&&J(b,6,c);c=O(a,7);null!=c&&C(b,7,c)},uD=function(a,b){S(a,1,b)};sD.prototype.mc=function(){return O(this,4)};var vD=function(a){N(this,a,0,-1,null)};t(vD,M);vD.prototype.w=function(){var a=new y;wD(this,a);return A(a)};var wD=function(a,b){var c=O(a,1);null!=c&&G(b,1,c);c=O(a,2);null!=c&&G(b,2,c);c=O(a,3);null!=c&&G(b,3,c)};vD.prototype.getDevice=function(){return O(this,1)};var xD=function(a,b){S(a,1,b)};var yD=function(a){N(this,a,0,-1,null)};t(yD,M);yD.prototype.w=function(){var a=new y;zD(this,a);return A(a)};var zD=function(a,b){var c=T(a,sD,1);null!=c&&b.b(1,c,tD);c=T(a,oD,2);null!=c&&b.b(2,c,pD);c=T(a,qD,3);null!=c&&b.b(3,c,rD);c=O(a,4);null!=c&&J(b,4,c);c=O(a,5);null!=c&&F(b,5,c);c=O(a,6);null!=c&&hi(b,6,c);c=T(a,vD,7);null!=c&&b.b(7,c,wD);c=O(a,8);null!=c&&J(b,8,c);c=T(a,mD,9);null!=c&&b.b(9,c,nD)},AD=function(a,b){V(a,1,b)};var BD=function(a){N(this,a,0,-1,null)};t(BD,M);BD.prototype.w=function(){var a=new y;CD(this,a);return A(a)};var CD=function(a,b){var c=O(a,1);null!=c&&G(b,1,c);c=O(a,2);null!=c&&ii(b,2,c)};var DD=function(a){N(this,a,0,-1,null)};t(DD,M);DD.prototype.w=function(){var a=new y;ED(this,a);return A(a)};var ED=function(a,b){var c=O(a,1);null!=c&&G(b,1,c);c=O(a,2);null!=c&&J(b,2,c);c=O(a,3);null!=c&&J(b,3,c);c=O(a,4);null!=c&&ji(b,4,c);c=O(a,10);null!=c&&J(b,10,c);c=O(a,11);null!=c&&C(b,11,c);c=O(a,5);null!=c&&ii(b,5,c);c=O(a,6);null!=c&&ii(b,6,c);c=O(a,7);null!=c&&J(b,7,c);c=O(a,8);null!=c&&J(b,8,c);c=T(a,BD,9);null!=c&&b.b(9,c,CD)};DD.prototype.Ia=function(){return O(this,1)};var GD=function(a){N(this,a,"chbarp",-1,FD)};t(GD,M);var FD=[4];GD.prototype.w=function(){var a=new y;var b=this.getResponseHeader();null!=b&&a.b(1,b,ED);b=T(this,SC,2);null!=b&&a.b(2,b,TC);b=this.G();null!=b&&a.b(3,b,Vi);b=U(this,SC,4);0<b.length&&K(a,4,b,TC);return A(a)};Ti("chbarp",GD);g=GD.prototype;g.getResponseHeader=function(){return T(this,DD,1)};g.setBroadcast=function(a){V(this,2,a)};g.G=function(){return T(this,Ui,3)};g.H=function(a){V(this,3,a)};g.W=function(){this.H(void 0)};var HD=function(a){N(this,a,0,-1,null)};t(HD,M);HD.prototype.w=function(){var a=new y;ID(this,a);return A(a)};var ID=function(a,b){var c=O(a,1);null!=c&&J(b,1,c);c=O(a,2);null!=c&&J(b,2,c)};HD.prototype.ba=function(){return O(this,1)};HD.prototype.Y=function(a){S(this,1,a)};var KD=function(a){N(this,a,"chbmrp",-1,JD)};t(KD,M);var JD=[4];KD.prototype.w=function(){var a=new y;var b=this.getResponseHeader();null!=b&&a.b(1,b,ED);b=T(this,SC,2);null!=b&&a.b(2,b,TC);b=this.G();null!=b&&a.b(3,b,Vi);b=U(this,SC,4);0<b.length&&K(a,4,b,TC);return A(a)};Ti("chbmrp",KD);g=KD.prototype;g.getResponseHeader=function(){return T(this,DD,1)};g.setBroadcast=function(a){V(this,2,a)};g.G=function(){return T(this,Ui,3)};g.H=function(a){V(this,3,a)};g.W=function(){this.H(void 0)};var LD=function(a){N(this,a,"chbqrp",-1,null)};t(LD,M);LD.prototype.w=function(){var a=new y;var b=this.getResponseHeader();null!=b&&a.b(1,b,ED);b=T(this,SC,2);null!=b&&a.b(2,b,TC);b=this.G();null!=b&&a.b(3,b,Vi);return A(a)};Ti("chbqrp",LD);g=LD.prototype;g.getResponseHeader=function(){return T(this,DD,1)};g.setBroadcast=function(a){V(this,2,a)};g.G=function(){return T(this,Ui,3)};g.H=function(a){V(this,3,a)};g.W=function(){this.H(void 0)};var MD=function(a){N(this,a,"chbrrp",-1,null)};t(MD,M);MD.prototype.w=function(){var a=new y;var b=this.getResponseHeader();null!=b&&a.b(1,b,ED);b=this.G();null!=b&&a.b(2,b,Vi);return A(a)};Ti("chbrrp",MD);MD.prototype.getResponseHeader=function(){return T(this,DD,1)};MD.prototype.G=function(){return T(this,Ui,2)};MD.prototype.H=function(a){V(this,2,a)};MD.prototype.W=function(){this.H(void 0)};var OD=function(a){N(this,a,"chbsrp",-1,ND)};t(OD,M);var ND=[2];OD.prototype.w=function(){var a=new y;var b=this.getResponseHeader();null!=b&&a.b(1,b,ED);b=U(this,SC,2);0<b.length&&K(a,2,b,TC);b=this.G();null!=b&&a.b(3,b,Vi);return A(a)};Ti("chbsrp",OD);OD.prototype.getResponseHeader=function(){return T(this,DD,1)};OD.prototype.G=function(){return T(this,Ui,3)};OD.prototype.H=function(a){V(this,3,a)};OD.prototype.W=function(){this.H(void 0)};var QD=function(a){N(this,a,0,-1,PD)};t(QD,M);var PD=[2,3];QD.prototype.w=function(){var a=new y;RD(this,a);return A(a)};var RD=function(a,b){var c=a.G();null!=c&&b.b(1,c,Vi);c=a.Wa();0<c.length&&K(b,2,c,TC);c=a.mb();0<c.length&&K(b,3,c,ID);c=a.hb();null!=c&&b.b(4,c,ID)};g=QD.prototype;g.G=function(){return T(this,Ui,1)};g.H=function(a){V(this,1,a)};g.W=function(){this.H(void 0)};g.Wa=function(){return U(this,SC,2)};g.mb=function(){return U(this,HD,3)};g.hb=function(){return T(this,HD,4)};var TD=function(a){N(this,a,0,-1,SD)};t(TD,M);var SD=[10];TD.prototype.w=function(){var a=new y;UD(this,a);return A(a)};var UD=function(a,b){var c=O(a,1);null!=c&&J(b,1,c);c=O(a,2);null!=c&&E(b,2,c);c=O(a,4);null!=c&&G(b,4,c);c=O(a,5);null!=c&&E(b,5,c);c=O(a,6);null!=c&&E(b,6,c);c=O(a,7);null!=c&&E(b,7,c);c=O(a,8);null!=c&&J(b,8,c);c=O(a,9);null!=c&&J(b,9,c);c=U(a,VD,10);0<c.length&&K(b,10,c,WD);c=O(a,11);null!=c&&J(b,11,c)},VD=function(a){N(this,a,0,-1,null)};t(VD,M);
VD.prototype.w=function(){var a=new y;WD(this,a);return A(a)};var WD=function(a,b){var c=O(a,1);null!=c&&J(b,1,c);c=O(a,2);null!=c&&li(b,2,c)};TD.prototype.ba=function(){return O(this,1)};TD.prototype.Y=function(a){S(this,1,a)};TD.prototype.X=function(){return O(this,4)};var YD=function(a){N(this,a,"carp",-1,XD)};t(YD,M);var XD=[2];YD.prototype.w=function(){var a=new y;var b=this.getResponseHeader();null!=b&&a.b(1,b,ED);b=U(this,TD,2);0<b.length&&K(a,2,b,UD);return A(a)};Ti("carp",YD);YD.prototype.getResponseHeader=function(){return T(this,DD,1)};var ZD=function(a){N(this,a,0,-1,null)};t(ZD,M);ZD.prototype.w=function(){var a=new y;$D(this,a);return A(a)};var $D=function(a,b){var c=O(a,1);null!=c&&J(b,1,c);c=O(a,2);null!=c&&E(b,2,c)};ZD.prototype.ba=function(){return O(this,1)};ZD.prototype.Y=function(a){S(this,1,a)};var bE=function(a){N(this,a,0,-1,aE)};t(bE,M);var aE=[2,3];bE.prototype.w=function(){var a=new y;cE(this,a);return A(a)};var cE=function(a,b){var c=a.Wa();0<c.length&&K(b,2,c,UD);c=a.mb();0<c.length&&K(b,3,c,$D)};bE.prototype.Wa=function(){return U(this,TD,2)};bE.prototype.mb=function(){return U(this,ZD,3)};var dE=function(a){N(this,a,0,-1,null)};t(dE,M);dE.prototype.w=function(){var a=new y;eE(this,a);return A(a)};var eE=function(a,b){var c=O(a,1);null!=c&&F(b,1,c);c=O(a,2);null!=c&&J(b,2,c)};var fE=function(a){N(this,a,0,-1,null)};t(fE,M);fE.prototype.w=function(){var a=new y;gE(this,a);return A(a)};var gE=function(a,b){var c=O(a,1);null!=c&&F(b,1,c);c=O(a,2);null!=c&&G(b,2,c)};var hE=function(a){N(this,a,0,-1,null)};t(hE,M);hE.prototype.w=function(){var a=new y;iE(this,a);return A(a)};var iE=function(a,b){a=O(a,1);null!=a&&J(b,1,a)};hE.prototype.getId=function(){return O(this,1)};var jE=function(a){N(this,a,0,-1,null)};t(jE,M);jE.prototype.w=function(){var a=new y;kE(this,a);return A(a)};var kE=function(a,b){var c=O(a,1);null!=c&&F(b,1,c);c=O(a,2);null!=c&&ii(b,2,c)};var mE=function(a){N(this,a,0,-1,lE)};t(mE,M);var lE=[6];mE.prototype.w=function(){var a=new y;nE(this,a);return A(a)};var nE=function(a,b){var c=O(a,1);null!=c&&J(b,1,c);c=O(a,2);null!=c&&J(b,2,c);c=O(a,3);null!=c&&J(b,3,c);c=T(a,KC,7);null!=c&&b.b(7,c,LC);c=O(a,4);null!=c&&J(b,4,c);c=U(a,oE,6);0<c.length&&K(b,6,c,pE);c=O(a,5);null!=c&&mi(b,5,c)},oE=function(a){N(this,a,0,-1,null)};t(oE,M);oE.prototype.w=function(){var a=new y;pE(this,a);return A(a)};
var pE=function(a,b){var c=T(a,qE,1);null!=c&&b.b(1,c,rE);c=T(a,sE,2);null!=c&&b.b(2,c,tE);c=T(a,uE,3);null!=c&&b.b(3,c,vE)},qE=function(a){N(this,a,0,-1,null)};t(qE,M);qE.prototype.w=function(){var a=new y;rE(this,a);return A(a)};var rE=function(a,b){a=T(a,KC,1);null!=a&&b.b(1,a,LC)},sE=function(a){N(this,a,0,-1,null)};t(sE,M);sE.prototype.w=function(){var a=new y;tE(this,a);return A(a)};var tE=function(a,b){a=O(a,1);null!=a&&J(b,1,a)},uE=function(a){N(this,a,0,-1,null)};t(uE,M);
uE.prototype.w=function(){var a=new y;vE(this,a);return A(a)};var vE=function(a,b){a=O(a,1);null!=a&&J(b,1,a)};var wE=function(a){N(this,a,0,-1,null)};t(wE,M);wE.prototype.w=function(){var a=new y;xE(this,a);return A(a)};var xE=function(a,b){a=T(a,jE,1);null!=a&&b.b(1,a,kE)};var yE=function(a){N(this,a,0,-1,null)};t(yE,M);yE.prototype.w=function(){var a=new y;zE(this,a);return A(a)};var zE=function(a,b){var c=O(a,1);null!=c&&G(b,1,c);c=T(a,wE,4);null!=c&&b.b(4,c,xE);c=O(a,3);null!=c&&ji(b,3,c);c=O(a,5);null!=c&&ii(b,5,c);c=T(a,fE,6);null!=c&&b.b(6,c,gE);c=O(a,2);null!=c&&mi(b,2,c);c=O(a,7);null!=c&&J(b,7,c);c=O(a,8);null!=c&&J(b,8,c)};var BE=function(a){N(this,a,0,-1,AE)};t(BE,M);var AE=[6];BE.prototype.w=function(){var a=new y;CE(this,a);return A(a)};var CE=function(a,b){var c=O(a,1);null!=c&&J(b,1,c);c=O(a,2);null!=c&&J(b,2,c);c=O(a,3);null!=c&&G(b,3,c);c=O(a,4);null!=c&&J(b,4,c);c=O(a,5);null!=c&&J(b,5,c);c=P(a,6);0<c.length&&si(b,6,c);c=O(a,7);null!=c&&J(b,7,c);c=O(a,8);null!=c&&G(b,8,c);c=O(a,9);null!=c&&J(b,9,c);c=O(a,10);null!=c&&J(b,10,c);c=O(a,11);null!=c&&G(b,11,c)};g=BE.prototype;g.ba=function(){return O(this,1)};
g.Y=function(a){S(this,1,a)};g.getTitle=function(){return O(this,9)};g.setTitle=function(a){S(this,9,a)};g.Bi=function(a){S(this,10,a)};var DE=function(a){N(this,a,0,-1,null)};t(DE,M);DE.prototype.w=function(){var a=new y;EE(this,a);return A(a)};var EE=function(a,b){var c=O(a,1);null!=c&&J(b,1,c);c=O(a,2);null!=c&&J(b,2,c)};DE.prototype.ba=function(){return O(this,1)};DE.prototype.Y=function(a){S(this,1,a)};var GE=function(a){N(this,a,0,-1,FE)};t(GE,M);var FE=[2,3];GE.prototype.w=function(){var a=new y;HE(this,a);return A(a)};var HE=function(a,b){var c=a.G();null!=c&&b.b(1,c,Vi);c=a.Wa();0<c.length&&K(b,2,c,CE);c=a.mb();0<c.length&&K(b,3,c,EE);c=a.hb();null!=c&&b.b(4,c,EE)};g=GE.prototype;g.G=function(){return T(this,Ui,1)};g.H=function(a){V(this,1,a)};g.W=function(){this.H(void 0)};g.Wa=function(){return U(this,BE,2)};g.mb=function(){return U(this,DE,3)};g.hb=function(){return T(this,DE,4)};var JE=function(a){N(this,a,0,-1,IE)};t(JE,M);var IE=[1];JE.prototype.w=function(){var a=new y;KE(this,a);return A(a)};var KE=function(a,b){a=U(a,LE,1);0<a.length&&K(b,1,a,ME)},LE=function(a){N(this,a,0,-1,null)};t(LE,M);LE.prototype.w=function(){var a=new y;ME(this,a);return A(a)};var ME=function(a,b){a=O(a,1);null!=a&&G(b,1,a)};var NE=function(a){N(this,a,0,-1,null)};t(NE,M);NE.prototype.w=function(){var a=new y;OE(this,a);return A(a)};var OE=function(a,b){var c=O(a,1);null!=c&&J(b,1,c);c=O(a,2);null!=c&&J(b,2,c)};NE.prototype.getService=function(){return O(this,1)};var PE=function(a){N(this,a,0,-1,null)};t(PE,M);PE.prototype.w=function(){var a=new y;QE(this,a);return A(a)};var QE=function(a,b){var c=O(a,1);null!=c&&J(b,1,c);c=O(a,2);null!=c&&J(b,2,c)};var SE=function(a){N(this,a,0,-1,RE)};t(SE,M);var RE=[15,26];SE.prototype.w=function(){var a=new y;TE(this,a);return A(a)};
var TE=function(a,b){var c=O(a,1);null!=c&&J(b,1,c);c=O(a,2);null!=c&&G(b,2,c);c=T(a,NE,3);null!=c&&b.b(3,c,OE);c=O(a,4);null!=c&&F(b,4,c);c=O(a,6);null!=c&&E(b,6,c);c=O(a,7);null!=c&&E(b,7,c);c=O(a,8);null!=c&&J(b,8,c);c=T(a,hE,9);null!=c&&b.b(9,c,iE);c=O(a,10);null!=c&&F(b,10,c);c=O(a,11);null!=c&&E(b,11,c);c=O(a,12);null!=c&&E(b,12,c);c=O(a,13);null!=c&&J(b,13,c);c=O(a,14);null!=c&&G(b,14,c);c=P(a,15);0<c.length&&si(b,15,c);c=O(a,16);null!=c&&F(b,16,c);c=O(a,24);null!=c&&G(b,24,c);c=a.Bf();null!=
c&&b.b(17,c,QE);c=O(a,18);null!=c&&F(b,18,c);c=O(a,25);null!=c&&G(b,25,c);c=T(a,dE,19);null!=c&&b.b(19,c,eE);c=O(a,21);null!=c&&G(b,21,c);c=O(a,22);null!=c&&G(b,22,c);c=O(a,23);null!=c&&G(b,23,c);c=P(a,26);0<c.length&&ri(b,26,c);c=O(a,27);null!=c&&J(b,27,c);c=O(a,28);null!=c&&J(b,28,c);c=O(a,29);null!=c&&J(b,29,c);c=O(a,30);null!=c&&J(b,30,c);c=O(a,31);null!=c&&F(b,31,c)};g=SE.prototype;g.ba=function(){return O(this,1)};g.Y=function(a){S(this,1,a)};g.X=function(){return O(this,2)};
g.da=function(){return O(this,14)};g.sb=function(a){S(this,14,a)};g.Bf=function(){return T(this,PE,17)};var VE=function(a){N(this,a,0,-1,UE)};t(VE,M);var UE=[4];VE.prototype.w=function(){var a=new y;WE(this,a);return A(a)};var WE=function(a,b){var c=T(a,yD,1);null!=c&&b.b(1,c,zD);c=T(a,SE,2);null!=c&&b.b(2,c,TE);c=a.G();null!=c&&b.b(3,c,Vi);c=U(a,SE,4);0<c.length&&K(b,4,c,TE)};VE.prototype.setRequestHeader=function(a){V(this,1,a)};VE.prototype.G=function(){return T(this,Ui,3)};VE.prototype.H=function(a){V(this,3,a)};VE.prototype.W=function(){this.H(void 0)};var YE=function(a){N(this,a,"charp",-1,XE)};t(YE,M);var XE=[5];YE.prototype.w=function(){var a=new y;ZE(this,a);return A(a)};var ZE=function(a,b){var c=a.getResponseHeader();null!=c&&b.b(1,c,ED);c=T(a,SE,2);null!=c&&b.b(2,c,TE);c=O(a,4);null!=c&&J(b,4,c);c=a.G();null!=c&&b.b(3,c,Vi);c=U(a,SE,5);0<c.length&&K(b,5,c,TE)};Ti("charp",YE);YE.prototype.getResponseHeader=function(){return T(this,DD,1)};YE.prototype.G=function(){return T(this,Ui,3)};YE.prototype.H=function(a){V(this,3,a)};
YE.prototype.W=function(){this.H(void 0)};var $E=function(a){N(this,a,0,-1,null)};t($E,M);$E.prototype.w=function(){var a=new y;aF(this,a);return A(a)};var aF=function(a,b){var c=a.G();null!=c&&b.b(1,c,Vi);c=O(a,2);null!=c&&E(b,2,c);c=O(a,3);null!=c&&J(b,3,c)};$E.prototype.G=function(){return T(this,Ui,1)};$E.prototype.H=function(a){V(this,1,a)};$E.prototype.W=function(){this.H(void 0)};var bF=function(a){N(this,a,0,-1,null)};t(bF,M);bF.prototype.w=function(){var a=new y;cF(this,a);return A(a)};var cF=function(a,b){var c=T(a,KC,1);null!=c&&b.b(1,c,LC);c=O(a,2);null!=c&&mi(b,2,c);c=O(a,3);null!=c&&ii(b,3,c)};var dF=function(a){N(this,a,0,-1,null)};t(dF,M);dF.prototype.w=function(){var a=new y;eF(this,a);return A(a)};var eF=function(a,b){var c=O(a,1);null!=c&&E(b,1,c);c=O(a,2);null!=c&&J(b,2,c);c=T(a,KC,3);null!=c&&b.b(3,c,LC);c=O(a,4);null!=c&&F(b,4,c);c=O(a,5);null!=c&&F(b,5,c);c=T(a,bF,6);null!=c&&b.b(6,c,cF)};dF.prototype.ba=function(){return O(this,2)};dF.prototype.Y=function(a){S(this,2,a)};var fF=function(a){N(this,a,0,-1,null)};t(fF,M);fF.prototype.w=function(){var a=new y;gF(this,a);return A(a)};var gF=function(a,b){var c=T(a,yD,1);null!=c&&b.b(1,c,zD);c=T(a,dF,2);null!=c&&b.b(2,c,eF);c=a.G();null!=c&&b.b(3,c,Vi)};fF.prototype.setRequestHeader=function(a){V(this,1,a)};fF.prototype.G=function(){return T(this,Ui,3)};fF.prototype.H=function(a){V(this,3,a)};fF.prototype.W=function(){this.H(void 0)};var hF=function(a){N(this,a,0,-1,null)};t(hF,M);hF.prototype.w=function(){var a=new y;iF(this,a);return A(a)};var iF=function(a,b){var c=O(a,1);null!=c&&E(b,1,c);c=O(a,2);null!=c&&E(b,2,c);c=O(a,3);null!=c&&G(b,3,c)};var kF=function(a){N(this,a,0,-1,jF)};t(kF,M);var jF=[2];kF.prototype.w=function(){var a=new y;lF(this,a);return A(a)};var lF=function(a,b){var c=T(a,mF,1);null!=c&&b.b(1,c,nF);c=P(a,2);0<c.length&&ri(b,2,c);c=O(a,3);null!=c&&J(b,3,c);c=O(a,4);null!=c&&J(b,4,c)},mF=function(a){N(this,a,0,-1,null)};t(mF,M);mF.prototype.w=function(){var a=new y;nF(this,a);return A(a)};var nF=function(a,b){var c=T(a,oF,1);null!=c&&b.b(1,c,pF);c=T(a,hE,4);null!=c&&b.b(4,c,iE)},oF=function(a){N(this,a,0,-1,null)};
t(oF,M);oF.prototype.w=function(){var a=new y;pF(this,a);return A(a)};var pF=function(a,b){var c=O(a,1);null!=c&&J(b,1,c);c=O(a,2);null!=c&&J(b,2,c)};var rF=function(a){N(this,a,0,-1,qF)};t(rF,M);var qF=[11];rF.prototype.w=function(){var a=new y;sF(this,a);return A(a)};var sF=function(a,b){var c=O(a,8);null!=c&&E(b,8,c);c=O(a,1);null!=c&&J(b,1,c);c=T(a,mE,2);null!=c&&b.b(2,c,nE);c=U(a,kF,11);0<c.length&&K(b,11,c,lF);c=O(a,3);null!=c&&G(b,3,c);c=O(a,4);null!=c&&F(b,4,c);c=O(a,6);null!=c&&G(b,6,c);c=T(a,hF,7);null!=c&&b.b(7,c,iF);c=O(a,9);null!=c&&J(b,9,c);c=O(a,99);null!=c&&J(b,99,c)};rF.prototype.ba=function(){return O(this,1)};
rF.prototype.Y=function(a){S(this,1,a)};var tF=function(a){N(this,a,0,-1,null)};t(tF,M);tF.prototype.w=function(){var a=new y;uF(this,a);return A(a)};var uF=function(a,b){var c=T(a,yD,1);null!=c&&b.b(1,c,zD);c=T(a,rF,2);null!=c&&b.b(2,c,sF);c=a.G();null!=c&&b.b(3,c,Vi)};tF.prototype.setRequestHeader=function(a){V(this,1,a)};tF.prototype.G=function(){return T(this,Ui,3)};tF.prototype.H=function(a){V(this,3,a)};tF.prototype.W=function(){this.H(void 0)};var wF=function(a){N(this,a,0,-1,vF)};t(wF,M);var vF=[20,8,19,26];wF.prototype.w=function(){var a=new y;xF(this,a);return A(a)};
var xF=function(a,b){var c=O(a,1);null!=c&&J(b,1,c);c=O(a,2);null!=c&&J(b,2,c);c=O(a,3);null!=c&&J(b,3,c);c=O(a,4);null!=c&&J(b,4,c);c=O(a,5);null!=c&&J(b,5,c);c=O(a,6);null!=c&&F(b,6,c);c=O(a,7);null!=c&&F(b,7,c);c=U(a,yF,20);0<c.length&&K(b,20,c,zF);c=P(a,8);0<c.length&&si(b,8,c);c=O(a,9);null!=c&&F(b,9,c);c=O(a,10);null!=c&&J(b,10,c);c=O(a,11);null!=c&&J(b,11,c);c=O(a,12);null!=c&&G(b,12,c);c=O(a,13);null!=c&&G(b,13,c);c=O(a,14);null!=c&&G(b,14,c);c=O(a,17);null!=c&&G(b,17,c);c=O(a,18);null!=c&&
F(b,18,c);c=P(a,19);0<c.length&&ri(b,19,c);c=O(a,21);null!=c&&F(b,21,c);c=T(a,CC,22);null!=c&&b.b(22,c,DC);c=O(a,23);null!=c&&E(b,23,c);c=O(a,24);null!=c&&G(b,24,c);c=O(a,25);null!=c&&J(b,25,c);c=P(a,26);0<c.length&&si(b,26,c)},yF=function(a){N(this,a,0,-1,null)};t(yF,M);yF.prototype.w=function(){var a=new y;zF(this,a);return A(a)};var zF=function(a,b){var c=O(a,1);null!=c&&J(b,1,c);c=O(a,2);null!=c&&G(b,2,c)};g=wF.prototype;g.ba=function(){return O(this,1)};g.Y=function(a){S(this,1,a)};
g.S=function(){return O(this,2)};g.Da=function(a){S(this,2,a)};g.he=function(a){S(this,26,a||[])};var AF=function(a){N(this,a,0,-1,null)};t(AF,M);AF.prototype.w=function(){var a=new y;BF(this,a);return A(a)};var BF=function(a,b){var c=O(a,3);null!=c&&F(b,3,c);c=O(a,4);null!=c&&F(b,4,c)};var DF=function(a){N(this,a,0,-1,CF)};t(DF,M);var CF=[6];DF.prototype.w=function(){var a=new y;EF(this,a);return A(a)};var EF=function(a,b){var c=T(a,yD,1);null!=c&&b.b(1,c,zD);c=T(a,wF,2);null!=c&&b.b(2,c,xF);c=T(a,AF,3);null!=c&&b.b(3,c,BF);c=O(a,4);null!=c&&F(b,4,c);c=a.G();null!=c&&b.b(5,c,Vi);c=U(a,wF,6);0<c.length&&K(b,6,c,xF)};DF.prototype.setRequestHeader=function(a){V(this,1,a)};DF.prototype.G=function(){return T(this,Ui,5)};DF.prototype.H=function(a){V(this,5,a)};DF.prototype.W=function(){this.H(void 0)};var FF=function(a){N(this,a,0,-1,null)};t(FF,M);FF.prototype.w=function(){var a=new y;GF(this,a);return A(a)};var GF=function(a,b){var c=T(a,yD,1);null!=c&&b.b(1,c,zD);c=O(a,2);null!=c&&J(b,2,c);c=a.G();null!=c&&b.b(3,c,Vi)};g=FF.prototype;g.setRequestHeader=function(a){V(this,1,a)};g.ba=function(){return O(this,2)};g.Y=function(a){S(this,2,a)};g.G=function(){return T(this,Ui,3)};g.H=function(a){V(this,3,a)};g.W=function(){this.H(void 0)};var HF=function(a){N(this,a,0,-1,null)};t(HF,M);HF.prototype.w=function(){var a=new y;IF(this,a);return A(a)};var IF=function(a,b){var c=T(a,yD,1);null!=c&&b.b(1,c,zD);c=O(a,2);null!=c&&J(b,2,c);c=a.G();null!=c&&b.b(3,c,Vi)};g=HF.prototype;g.setRequestHeader=function(a){V(this,1,a)};g.ba=function(){return O(this,2)};g.Y=function(a){S(this,2,a)};g.G=function(){return T(this,Ui,3)};g.H=function(a){V(this,3,a)};g.W=function(){this.H(void 0)};var JF=function(a){N(this,a,0,-1,null)};t(JF,M);JF.prototype.w=function(){var a=new y;KF(this,a);return A(a)};var KF=function(a,b){var c=O(a,1);null!=c&&J(b,1,c);c=O(a,2);null!=c&&J(b,2,c);c=O(a,3);null!=c&&J(b,3,c);c=O(a,4);null!=c&&J(b,4,c)};JF.prototype.getName=function(){return O(this,1)};var MF=function(a){N(this,a,0,-1,LF)};t(MF,M);var LF=[3];MF.prototype.w=function(){var a=new y;NF(this,a);return A(a)};var NF=function(a,b){var c=T(a,yD,1);null!=c&&b.b(1,c,zD);c=T(a,NE,2);null!=c&&b.b(2,c,OE);c=U(a,mE,3);0<c.length&&K(b,3,c,nE);c=T(a,JF,4);null!=c&&b.b(4,c,KF);c=O(a,5);null!=c&&F(b,5,c);c=O(a,6);null!=c&&G(b,6,c);c=O(a,7);null!=c&&J(b,7,c);c=a.G();null!=c&&b.b(8,c,Vi)};g=MF.prototype;g.setRequestHeader=function(a){V(this,1,a)};g.da=function(){return Q(this,6,1)};
g.sb=function(a){S(this,6,a)};g.G=function(){return T(this,Ui,8)};g.H=function(a){V(this,8,a)};g.W=function(){this.H(void 0)};var OF=function(a){N(this,a,0,-1,null)};t(OF,M);OF.prototype.w=function(){var a=new y;PF(this,a);return A(a)};var PF=function(a,b){var c=O(a,1);null!=c&&hi(b,1,c);c=O(a,2);null!=c&&hi(b,2,c);c=O(a,3);null!=c&&hi(b,3,c)};var RF=function(a){N(this,a,0,-1,QF)};t(RF,M);var QF=[8];RF.prototype.w=function(){var a=new y;SF(this,a);return A(a)};var SF=function(a,b){var c=O(a,1);null!=c&&C(b,1,c);c=O(a,2);null!=c&&J(b,2,c);c=O(a,3);null!=c&&G(b,3,c);c=O(a,4);null!=c&&C(b,4,c);c=O(a,5);null!=c&&C(b,5,c);c=O(a,6);null!=c&&C(b,6,c);c=O(a,7);null!=c&&C(b,7,c);c=U(a,TF,8);0<c.length&&K(b,8,c,UF)},TF=function(a){N(this,a,0,-1,null)};t(TF,M);TF.prototype.w=function(){var a=new y;UF(this,a);return A(a)};
var UF=function(a,b){var c=O(a,1);null!=c&&J(b,1,c);c=O(a,2);null!=c&&J(b,2,c)};RF.prototype.getName=function(){return O(this,2)};var VF=function(a,b){S(a,2,b)};RF.prototype.da=function(){return O(this,3)};RF.prototype.sb=function(a){S(this,3,a)};var WF=function(a,b){Ji(a,8,b)};var XF=function(a){N(this,a,0,-1,null)};t(XF,M);XF.prototype.w=function(){var a=new y;YF(this,a);return A(a)};var YF=function(a,b){var c=O(a,1);null!=c&&G(b,1,c);c=O(a,2);null!=c&&J(b,2,c);c=O(a,3);null!=c&&J(b,3,c);c=O(a,4);null!=c&&C(b,4,c)};XF.prototype.sd=function(){return O(this,1)};XF.prototype.Ce=function(){return O(this,2)};XF.prototype.Cf=function(){return O(this,3)};XF.prototype.Ud=function(){return O(this,4)};var ZF=function(a){N(this,a,0,-1,null)};t(ZF,M);ZF.prototype.w=function(){var a=new y;$F(this,a);return A(a)};var $F=function(a,b){var c=O(a,1);null!=c&&C(b,1,c);c=O(a,2);null!=c&&C(b,2,c);c=O(a,3);null!=c&&C(b,3,c)};ZF.prototype.Bd=function(a){S(this,1,a)};ZF.prototype.Cd=function(a){S(this,2,a)};var bG=function(a){N(this,a,0,-1,aG)};t(bG,M);var aG=[5];bG.prototype.w=function(){var a=new y;cG(this,a);return A(a)};var cG=function(a,b){var c=O(a,1);null!=c&&F(b,1,c);c=O(a,2);null!=c&&F(b,2,c);c=a.Lb();null!=c&&b.b(3,c,$F);c=O(a,4);null!=c&&hi(b,4,c);c=P(a,5);0<c.length&&ni(b,5,c)};bG.prototype.Lb=function(){return T(this,ZF,3)};bG.prototype.Td=function(){return O(this,4)};var dG=function(a){N(this,a,0,-1,null)};t(dG,M);dG.prototype.w=function(){var a=new y;eG(this,a);return A(a)};var eG=function(a,b){var c=O(a,1);null!=c&&G(b,1,c);c=T(a,bG,2);null!=c&&b.b(2,c,cG)};dG.prototype.da=function(){return O(this,1)};dG.prototype.sb=function(a){S(this,1,a)};var fG=function(a){N(this,a,0,-1,null)};t(fG,M);fG.prototype.w=function(){var a=new y;gG(this,a);return A(a)};var gG=function(a,b){var c=O(a,1);null!=c&&C(b,1,c);c=O(a,2);null!=c&&J(b,2,c);c=O(a,3);null!=c&&G(b,3,c)};fG.prototype.getId=function(){return O(this,1)};fG.prototype.Fc=function(){return O(this,2)};fG.prototype.da=function(){return O(this,3)};fG.prototype.sb=function(a){S(this,3,a)};var hG=function(a){N(this,a,0,-1,null)};t(hG,M);hG.prototype.w=function(){var a=new y;iG(this,a);return A(a)};var iG=function(a,b){var c=O(a,1);null!=c&&G(b,1,c);c=O(a,2);null!=c&&G(b,2,c);c=O(a,3);null!=c&&J(b,3,c);c=O(a,4);null!=c&&C(b,4,c);c=O(a,5);null!=c&&G(b,5,c);c=O(a,6);null!=c&&C(b,6,c);c=O(a,7);null!=c&&J(b,7,c);c=O(a,8);null!=c&&C(b,8,c);c=O(a,9);null!=c&&G(b,9,c)};g=hG.prototype;g.Qd=function(){return O(this,1)};g.Uc=function(){return O(this,2)};g.Be=function(){return O(this,3)};
g.Sa=function(){return O(this,4)};g.X=function(){return O(this,5)};g.Td=function(){return O(this,6)};g.Af=function(){return O(this,7)};g.ze=function(){return O(this,8)};g.da=function(){return O(this,9)};g.sb=function(a){S(this,9,a)};var kG=function(a){N(this,a,0,-1,jG)};t(kG,M);var jG=[3,6];kG.prototype.w=function(){var a=new y;lG(this,a);return A(a)};var lG=function(a,b){var c=O(a,1);null!=c&&G(b,1,c);c=T(a,mG,2);null!=c&&b.b(2,c,nG);c=P(a,3);0<c.length&&si(b,3,c);c=O(a,4);null!=c&&J(b,4,c);c=O(a,5);null!=c&&J(b,5,c);c=U(a,hG,6);0<c.length&&K(b,6,c,iG)},mG=function(a){N(this,a,0,-1,null)};t(mG,M);mG.prototype.w=function(){var a=new y;nG(this,a);return A(a)};
var nG=function(a,b){var c=O(a,1);null!=c&&J(b,1,c);c=O(a,2);null!=c&&J(b,2,c)};var pG=function(a){N(this,a,0,-1,oG)};t(pG,M);var oG=[3,4,5,6];pG.prototype.w=function(){var a=new y;qG(this,a);return A(a)};var qG=function(a,b){var c=O(a,1);null!=c&&G(b,1,c);c=T(a,kG,2);null!=c&&b.b(2,c,lG);c=U(a,RF,3);0<c.length&&K(b,3,c,SF);c=U(a,XF,4);0<c.length&&K(b,4,c,YF);c=U(a,fG,5);0<c.length&&K(b,5,c,gG);c=U(a,dG,6);0<c.length&&K(b,6,c,eG);c=T(a,OF,7);null!=c&&b.b(7,c,PF);c=O(a,8);null!=c&&J(b,8,c);c=O(a,9);null!=c&&G(b,9,c)};pG.prototype.da=function(){return Q(this,1,4)};
pG.prototype.sb=function(a){S(this,1,a)};var sG=function(a){N(this,a,0,-1,rG)};t(sG,M);var rG=[1];sG.prototype.w=function(){var a=new y;tG(this,a);return A(a)};var tG=function(a,b){var c=P(a,1);0<c.length&&si(b,1,c);c=O(a,2);null!=c&&J(b,2,c);c=O(a,3);null!=c&&J(b,3,c)};var uG=function(a){N(this,a,0,-1,null)};t(uG,M);uG.prototype.w=function(){var a=new y;vG(this,a);return A(a)};var vG=function(a,b){var c=O(a,1);null!=c&&J(b,1,c);c=O(a,2);null!=c&&G(b,2,c);c=O(a,3);null!=c&&C(b,3,c);c=O(a,4);null!=c&&J(b,4,c);c=O(a,5);null!=c&&G(b,5,c)};uG.prototype.getChannelId=function(){return O(this,1)};uG.prototype.rd=function(){return O(this,4)};uG.prototype.X=function(){return O(this,5)};var xG=function(a){N(this,a,0,-1,wG)};t(xG,M);var wG=[3,4,5,6,8,10];xG.prototype.w=function(){var a=new y;yG(this,a);return A(a)};
var yG=function(a,b){var c=O(a,1);null!=c&&J(b,1,c);c=U(a,pG,3);0<c.length&&K(b,3,c,qG);c=U(a,pG,4);0<c.length&&K(b,4,c,qG);c=U(a,uG,5);0<c.length&&K(b,5,c,vG);c=P(a,6);0<c.length&&si(b,6,c);c=O(a,7);null!=c&&G(b,7,c);c=U(a,sG,8);0<c.length&&K(b,8,c,tG);c=O(a,9);null!=c&&F(b,9,c);c=P(a,10);0<c.length&&pi(b,10,c);c=O(a,11);null!=c&&G(b,11,c);c=O(a,12);null!=c&&hi(b,12,c);c=O(a,13);null!=c&&J(b,13,c)};xG.prototype.g=function(){return O(this,1)};xG.prototype.Aa=function(a){S(this,1,a)};
var zG=function(a,b){Ji(a,3,b)},AG=function(a,b){S(a,6,b||[])};xG.prototype.X=function(){return O(this,7)};var CG=function(a){N(this,a,0,-1,BG)};t(CG,M);var BG=[4];CG.prototype.w=function(){var a=new y;DG(this,a);return A(a)};var DG=function(a,b){var c=T(a,yD,1);null!=c&&b.b(1,c,zD);c=a.G();null!=c&&b.b(3,c,Vi);c=U(a,xG,4);0<c.length&&K(b,4,c,yG)};CG.prototype.setRequestHeader=function(a){V(this,1,a)};CG.prototype.G=function(){return T(this,Ui,3)};CG.prototype.H=function(a){V(this,3,a)};CG.prototype.W=function(){this.H(void 0)};var EG=function(a){N(this,a,0,-1,null)};t(EG,M);EG.prototype.w=function(){var a=new y;FG(this,a);return A(a)};var FG=function(a,b){var c=T(a,yD,1);null!=c&&b.b(1,c,zD);c=O(a,2);null!=c&&J(b,2,c);c=a.G();null!=c&&b.b(3,c,Vi)};g=EG.prototype;g.setRequestHeader=function(a){V(this,1,a)};g.Aa=function(a){S(this,2,a)};g.G=function(){return T(this,Ui,3)};g.H=function(a){V(this,3,a)};g.W=function(){this.H(void 0)};var GG=function(a){N(this,a,0,-1,null)};t(GG,M);GG.prototype.w=function(){var a=new y;HG(this,a);return A(a)};var HG=function(a,b){var c=O(a,1);null!=c&&J(b,1,c);c=O(a,2);null!=c&&J(b,2,c);c=O(a,3);null!=c&&J(b,3,c);c=O(a,4);null!=c&&G(b,4,c);c=T(a,IG,5);null!=c&&b.b(5,c,JG);c=T(a,KG,6);null!=c&&b.b(6,c,LG);c=T(a,MG,7);null!=c&&b.b(7,c,NG);c=T(a,OG,8);null!=c&&b.b(8,c,PG)},IG=function(a){N(this,a,0,-1,null)};t(IG,M);IG.prototype.w=function(){var a=new y;JG(this,a);return A(a)};
var JG=function(a,b){var c=O(a,1);null!=c&&F(b,1,c);c=O(a,2);null!=c&&J(b,2,c);c=O(a,3);null!=c&&li(b,3,c)};IG.prototype.Ec=function(){return O(this,1)};var KG=function(a){N(this,a,0,-1,null)};t(KG,M);KG.prototype.w=function(){var a=new y;LG(this,a);return A(a)};var LG=function(a,b){a=O(a,1);null!=a&&J(b,1,a)},MG=function(a){N(this,a,0,-1,QG)};t(MG,M);var QG=[3];MG.prototype.w=function(){var a=new y;NG(this,a);return A(a)};
var NG=function(a,b){var c=O(a,1);null!=c&&G(b,1,c);c=T(a,ZF,2);null!=c&&b.b(2,c,$F);c=U(a,RG,3);0<c.length&&K(b,3,c,SG)},RG=function(a){N(this,a,0,-1,null)};t(RG,M);RG.prototype.w=function(){var a=new y;SG(this,a);return A(a)};var SG=function(a,b){var c=O(a,1);null!=c&&li(b,1,c);c=O(a,2);null!=c&&li(b,2,c);c=O(a,3);null!=c&&li(b,3,c);c=O(a,4);null!=c&&li(b,4,c)};RG.prototype.Cd=function(a){S(this,3,a)};RG.prototype.Bd=function(a){S(this,4,a)};var OG=function(a){N(this,a,0,-1,null)};t(OG,M);
OG.prototype.w=function(){var a=new y;PG(this,a);return A(a)};var PG=function(a,b){var c=O(a,1);null!=c&&J(b,1,c);c=O(a,2);null!=c&&li(b,2,c)};g=GG.prototype;g.ba=function(){return O(this,1)};g.Y=function(a){S(this,1,a)};g.S=function(){return O(this,2)};g.Da=function(a){S(this,2,a)};g.sa=function(){return O(this,3)};g.li=function(a){S(this,3,a)};g.da=function(){return O(this,4)};g.sb=function(a){S(this,4,a)};g.Tf=function(a){V(this,5,a)};var UG=function(a){N(this,a,0,-1,TG)};t(UG,M);var TG=[4];UG.prototype.w=function(){var a=new y;VG(this,a);return A(a)};var VG=function(a,b){var c=T(a,yD,1);null!=c&&b.b(1,c,zD);c=a.fa();null!=c&&b.b(2,c,HG);c=a.G();null!=c&&b.b(3,c,Vi);c=U(a,GG,4);0<c.length&&K(b,4,c,HG)};g=UG.prototype;g.setRequestHeader=function(a){V(this,1,a)};g.fa=function(){return T(this,GG,2)};g.G=function(){return T(this,Ui,3)};g.H=function(a){V(this,3,a)};g.W=function(){this.H(void 0)};var WG=function(a){N(this,a,0,-1,null)};t(WG,M);WG.prototype.w=function(){var a=new y;XG(this,a);return A(a)};var XG=function(a,b){var c=T(a,yD,1);null!=c&&b.b(1,c,zD);c=O(a,2);null!=c&&J(b,2,c);c=O(a,3);null!=c&&J(b,3,c);c=a.G();null!=c&&b.b(4,c,Vi)};g=WG.prototype;g.setRequestHeader=function(a){V(this,1,a)};g.ba=function(){return O(this,2)};g.Y=function(a){S(this,2,a)};g.S=function(){return O(this,3)};g.Da=function(a){S(this,3,a)};g.G=function(){return T(this,Ui,4)};g.H=function(a){V(this,4,a)};
g.W=function(){this.H(void 0)};var YG=function(a){N(this,a,0,-1,null)};t(YG,M);YG.prototype.w=function(){var a=new y;ZG(this,a);return A(a)};var ZG=function(a,b){var c=O(a,1);null!=c&&G(b,1,c);c=O(a,2);null!=c&&G(b,2,c);c=O(a,3);null!=c&&J(b,3,c);c=O(a,4);null!=c&&J(b,4,c);c=O(a,5);null!=c&&J(b,5,c);c=O(a,6);null!=c&&J(b,6,c);c=O(a,7);null!=c&&J(b,7,c);c=T(a,$G,8);null!=c&&b.b(8,c,aH);c=T(a,bG,9);null!=c&&b.b(9,c,cG);c=T(a,bH,10);null!=c&&b.b(10,c,cH);c=O(a,11);null!=c&&F(b,11,c)},$G=function(a){N(this,a,0,-1,dH)};t($G,M);
var dH=[1,2,3];$G.prototype.w=function(){var a=new y;aH(this,a);return A(a)};var aH=function(a,b){var c=P(a,1);0<c.length&&pi(b,1,c);c=U(a,eH,2);0<c.length&&K(b,2,c,fH);c=P(a,3);0<c.length&&si(b,3,c)},eH=function(a){N(this,a,0,-1,gH)};t(eH,M);var gH=[2];eH.prototype.w=function(){var a=new y;fH(this,a);return A(a)};var fH=function(a,b){var c=O(a,1);null!=c&&J(b,1,c);c=P(a,2);0<c.length&&pi(b,2,c)},bH=function(a){N(this,a,0,-1,null)};t(bH,M);bH.prototype.w=function(){var a=new y;cH(this,a);return A(a)};
var cH=function(a,b){a=O(a,1);null!=a&&F(b,1,a)};bH.prototype.Ec=function(){return O(this,1)};g=YG.prototype;g.lp=function(){return O(this,1)};g.oi=function(a){S(this,1,a)};g.da=function(){return O(this,2)};g.sb=function(a){S(this,2,a)};g.mp=function(){return O(this,3)};g.Aa=function(a){S(this,3,a)};g.yb=function(){return O(this,4)};g.pi=function(a){S(this,4,a)};g.ba=function(){return O(this,5)};g.Y=function(a){S(this,5,a)};g.S=function(){return O(this,6)};g.Da=function(a){S(this,6,a)};
g.sa=function(){return O(this,7)};g.Tf=function(a){V(this,10,a)};var iH=function(a){N(this,a,0,-1,hH)};t(iH,M);var hH=[4];iH.prototype.w=function(){var a=new y;jH(this,a);return A(a)};var jH=function(a,b){var c=T(a,yD,1);null!=c&&b.b(1,c,zD);c=a.G();null!=c&&b.b(3,c,Vi);c=U(a,YG,4);0<c.length&&K(b,4,c,ZG)};iH.prototype.setRequestHeader=function(a){V(this,1,a)};iH.prototype.G=function(){return T(this,Ui,3)};iH.prototype.H=function(a){V(this,3,a)};iH.prototype.W=function(){this.H(void 0)};var kH=function(a){N(this,a,0,-1,null)};t(kH,M);kH.prototype.w=function(){var a=new y;lH(this,a);return A(a)};var lH=function(a,b){var c=T(a,yD,1);null!=c&&b.b(1,c,zD);c=O(a,2);null!=c&&G(b,2,c);c=O(a,3);null!=c&&J(b,3,c);c=O(a,4);null!=c&&J(b,4,c);c=a.G();null!=c&&b.b(5,c,Vi)};g=kH.prototype;g.setRequestHeader=function(a){V(this,1,a)};g.Aa=function(a){S(this,3,a)};g.ba=function(){return O(this,4)};g.Y=function(a){S(this,4,a)};g.G=function(){return T(this,Ui,5)};g.H=function(a){V(this,5,a)};g.W=function(){this.H(void 0)};var mH=function(a){N(this,a,0,-1,null)};t(mH,M);mH.prototype.w=function(){var a=new y;nH(this,a);return A(a)};
var nH=function(a,b){var c=T(a,DF,1);null!=c&&b.b(1,c,EF);c=T(a,CG,2);null!=c&&b.b(2,c,DG);c=T(a,iH,3);null!=c&&b.b(3,c,jH);c=T(a,kH,4);null!=c&&b.b(4,c,lH);c=T(a,UG,5);null!=c&&b.b(5,c,VG);c=T(a,WG,6);null!=c&&b.b(6,c,XG);c=T(a,FF,7);null!=c&&b.b(7,c,GF);c=T(a,HF,8);null!=c&&b.b(8,c,IF);c=T(a,VE,9);null!=c&&b.b(9,c,WE);c=T(a,MF,10);null!=c&&b.b(10,c,NF);c=T(a,tF,11);null!=c&&b.b(11,c,uF);c=T(a,fF,12);null!=c&&b.b(12,c,gF);c=T(a,EG,13);null!=c&&b.b(13,c,FG)};mH.prototype.A=function(a){V(this,4,a)};
mH.prototype.u=function(a){V(this,6,a)};mH.prototype.g=function(a){V(this,7,a)};mH.prototype.o=function(a){V(this,8,a)};var pH=function(a){N(this,a,0,-1,oH)};t(pH,M);var oH=[2];pH.prototype.w=function(){var a=new y;var b=T(this,yD,1);null!=b&&a.b(1,b,zD);b=U(this,mH,2);0<b.length&&K(a,2,b,nH);b=this.G();null!=b&&a.b(3,b,Vi);return A(a)};pH.prototype.setRequestHeader=function(a){V(this,1,a)};var qH=function(a,b){Ji(a,2,b)};pH.prototype.G=function(){return T(this,Ui,3)};pH.prototype.H=function(a){V(this,3,a)};pH.prototype.W=function(){this.H(void 0)};var rH=function(a){N(this,a,"chpara",-1,null)};t(rH,M);rH.prototype.w=function(){var a=new y;sH(this,a);return A(a)};var sH=function(a,b){var c=a.getResponseHeader();null!=c&&b.b(1,c,ED);c=T(a,dF,2);null!=c&&b.b(2,c,eF);c=a.G();null!=c&&b.b(3,c,Vi)};Ti("chpara",rH);rH.prototype.getResponseHeader=function(){return T(this,DD,1)};rH.prototype.G=function(){return T(this,Ui,3)};rH.prototype.H=function(a){V(this,3,a)};rH.prototype.W=function(){this.H(void 0)};var tH=function(a){N(this,a,"chiarp",-1,null)};t(tH,M);tH.prototype.w=function(){var a=new y;uH(this,a);return A(a)};var uH=function(a,b){var c=a.getResponseHeader();null!=c&&b.b(1,c,ED);c=T(a,rF,2);null!=c&&b.b(2,c,sF);c=O(a,3);null!=c&&G(b,3,c);c=a.G();null!=c&&b.b(4,c,Vi)};Ti("chiarp",tH);tH.prototype.getResponseHeader=function(){return T(this,DD,1)};tH.prototype.G=function(){return T(this,Ui,4)};tH.prototype.H=function(a){V(this,4,a)};tH.prototype.W=function(){this.H(void 0)};var wH=function(a){N(this,a,"chparp",-1,vH)};t(wH,M);var vH=[5];wH.prototype.w=function(){var a=new y;xH(this,a);return A(a)};var xH=function(a,b){var c=a.getResponseHeader();null!=c&&b.b(1,c,ED);c=T(a,wF,2);null!=c&&b.b(2,c,xF);c=a.G();null!=c&&b.b(3,c,Vi);c=O(a,4);null!=c&&G(b,4,c);c=U(a,wF,5);0<c.length&&K(b,5,c,xF)};Ti("chparp",wH);wH.prototype.getResponseHeader=function(){return T(this,DD,1)};wH.prototype.G=function(){return T(this,Ui,3)};wH.prototype.H=function(a){V(this,3,a)};
wH.prototype.W=function(){this.H(void 0)};var yH=function(a){N(this,a,0,-1,null)};t(yH,M);yH.prototype.w=function(){var a=new y;zH(this,a);return A(a)};var zH=function(a,b){var c=O(a,1);null!=c&&J(b,1,c);c=O(a,2);null!=c&&G(b,2,c)};yH.prototype.S=function(){return O(this,1)};yH.prototype.Da=function(a){S(this,1,a)};var BH=function(a){N(this,a,"chpsrp",-1,AH)};t(BH,M);var AH=[2,4];BH.prototype.w=function(){var a=new y;CH(this,a);return A(a)};var CH=function(a,b){var c=a.getResponseHeader();null!=c&&b.b(1,c,ED);c=U(a,wF,2);0<c.length&&K(b,2,c,xF);c=a.G();null!=c&&b.b(3,c,Vi);c=U(a,yH,4);0<c.length&&K(b,4,c,zH)};Ti("chpsrp",BH);BH.prototype.getResponseHeader=function(){return T(this,DD,1)};BH.prototype.G=function(){return T(this,Ui,3)};BH.prototype.H=function(a){V(this,3,a)};BH.prototype.W=function(){this.H(void 0)};var DH=function(a){N(this,a,"chqrp",-1,null)};t(DH,M);DH.prototype.w=function(){var a=new y;EH(this,a);return A(a)};var EH=function(a,b){var c=a.getResponseHeader();null!=c&&b.b(1,c,ED);c=T(a,SE,2);null!=c&&b.b(2,c,TE);c=a.G();null!=c&&b.b(3,c,Vi)};Ti("chqrp",DH);DH.prototype.getResponseHeader=function(){return T(this,DD,1)};DH.prototype.G=function(){return T(this,Ui,3)};DH.prototype.H=function(a){V(this,3,a)};DH.prototype.W=function(){this.H(void 0)};var FH=function(a){N(this,a,"chrrp",-1,null)};t(FH,M);FH.prototype.w=function(){var a=new y;GH(this,a);return A(a)};var GH=function(a,b){var c=a.getResponseHeader();null!=c&&b.b(1,c,ED);c=O(a,2);null!=c&&J(b,2,c);c=O(a,3);null!=c&&G(b,3,c);c=O(a,4);null!=c&&J(b,4,c);c=a.G();null!=c&&b.b(5,c,Vi);c=O(a,6);null!=c&&J(b,6,c)};Ti("chrrp",FH);g=FH.prototype;g.getResponseHeader=function(){return T(this,DD,1)};g.ba=function(){return O(this,2)};g.Y=function(a){S(this,2,a)};
g.G=function(){return T(this,Ui,5)};g.H=function(a){V(this,5,a)};g.W=function(){this.H(void 0)};var IH=function(a){N(this,a,"chsearp",-1,HH)};t(IH,M);var HH=[4];IH.prototype.w=function(){var a=new y;JH(this,a);return A(a)};var JH=function(a,b){var c=a.getResponseHeader();null!=c&&b.b(1,c,ED);c=a.G();null!=c&&b.b(3,c,Vi);c=U(a,xG,4);0<c.length&&K(b,4,c,yG)};Ti("chsearp",IH);IH.prototype.getResponseHeader=function(){return T(this,DD,1)};IH.prototype.G=function(){return T(this,Ui,3)};IH.prototype.H=function(a){V(this,3,a)};IH.prototype.W=function(){this.H(void 0)};var KH=function(a){N(this,a,"chseqrp",-1,null)};t(KH,M);KH.prototype.w=function(){var a=new y;LH(this,a);return A(a)};var LH=function(a,b){var c=a.getResponseHeader();null!=c&&b.b(1,c,ED);c=T(a,xG,2);null!=c&&b.b(2,c,yG);c=a.G();null!=c&&b.b(3,c,Vi)};Ti("chseqrp",KH);KH.prototype.getResponseHeader=function(){return T(this,DD,1)};KH.prototype.G=function(){return T(this,Ui,3)};KH.prototype.H=function(a){V(this,3,a)};KH.prototype.W=function(){this.H(void 0)};var NH=function(a){N(this,a,"chsoarp",-1,MH)};t(NH,M);var MH=[4];NH.prototype.w=function(){var a=new y;OH(this,a);return A(a)};var OH=function(a,b){var c=a.getResponseHeader();null!=c&&b.b(1,c,ED);c=a.fa();null!=c&&b.b(2,c,HG);c=a.G();null!=c&&b.b(3,c,Vi);c=U(a,GG,4);0<c.length&&K(b,4,c,HG)};Ti("chsoarp",NH);g=NH.prototype;g.getResponseHeader=function(){return T(this,DD,1)};g.fa=function(){return T(this,GG,2)};g.G=function(){return T(this,Ui,3)};g.H=function(a){V(this,3,a)};g.W=function(){this.H(void 0)};var QH=function(a){N(this,a,"chsosrp",-1,PH)};t(QH,M);var PH=[2];QH.prototype.w=function(){var a=new y;RH(this,a);return A(a)};var RH=function(a,b){var c=a.getResponseHeader();null!=c&&b.b(1,c,ED);c=U(a,GG,2);0<c.length&&K(b,2,c,HG);c=a.G();null!=c&&b.b(3,c,Vi)};Ti("chsosrp",QH);QH.prototype.getResponseHeader=function(){return T(this,DD,1)};QH.prototype.G=function(){return T(this,Ui,3)};QH.prototype.H=function(a){V(this,3,a)};QH.prototype.W=function(){this.H(void 0)};var TH=function(a){N(this,a,"chstarp",-1,SH)};t(TH,M);var SH=[4];TH.prototype.w=function(){var a=new y;UH(this,a);return A(a)};var UH=function(a,b){var c=a.getResponseHeader();null!=c&&b.b(1,c,ED);c=a.G();null!=c&&b.b(3,c,Vi);c=U(a,YG,4);0<c.length&&K(b,4,c,ZG)};Ti("chstarp",TH);TH.prototype.getResponseHeader=function(){return T(this,DD,1)};TH.prototype.G=function(){return T(this,Ui,3)};TH.prototype.H=function(a){V(this,3,a)};TH.prototype.W=function(){this.H(void 0)};var WH=function(a){N(this,a,"chstsrp",-1,VH)};t(WH,M);var VH=[2];WH.prototype.w=function(){var a=new y;XH(this,a);return A(a)};var XH=function(a,b){var c=a.getResponseHeader();null!=c&&b.b(1,c,ED);c=U(a,YG,2);0<c.length&&K(b,2,c,ZG);c=a.G();null!=c&&b.b(3,c,Vi)};Ti("chstsrp",WH);WH.prototype.getResponseHeader=function(){return T(this,DD,1)};WH.prototype.G=function(){return T(this,Ui,3)};WH.prototype.H=function(a){V(this,3,a)};WH.prototype.W=function(){this.H(void 0)};var YH=function(a){N(this,a,0,-1,null)};t(YH,M);YH.prototype.w=function(){var a=new y;ZH(this,a);return A(a)};
var ZH=function(a,b){var c=T(a,wH,1);null!=c&&b.b(1,c,xH);c=T(a,IH,2);null!=c&&b.b(2,c,JH);c=T(a,TH,3);null!=c&&b.b(3,c,UH);c=a.A();null!=c&&b.b(4,c,XH);c=T(a,NH,5);null!=c&&b.b(5,c,OH);c=a.u();null!=c&&b.b(6,c,RH);c=a.g();null!=c&&b.b(7,c,CH);c=a.o();null!=c&&b.b(8,c,EH);c=T(a,YE,9);null!=c&&b.b(9,c,ZE);c=T(a,FH,10);null!=c&&b.b(10,c,GH);c=T(a,tH,11);null!=c&&b.b(11,c,uH);c=T(a,rH,12);null!=c&&b.b(12,c,sH);c=T(a,KH,13);null!=c&&b.b(13,c,LH)};YH.prototype.A=function(){return T(this,WH,4)};
YH.prototype.u=function(){return T(this,QH,6)};YH.prototype.g=function(){return T(this,BH,7)};YH.prototype.o=function(){return T(this,DH,8)};var aI=function(a){N(this,a,"chbrp",-1,$H)};t(aI,M);var $H=[2];aI.prototype.w=function(){var a=new y;var b=this.getResponseHeader();null!=b&&a.b(1,b,ED);b=U(this,YH,2);0<b.length&&K(a,2,b,ZH);b=this.G();null!=b&&a.b(3,b,Vi);return A(a)};Ti("chbrp",aI);aI.prototype.getResponseHeader=function(){return T(this,DD,1)};aI.prototype.G=function(){return T(this,Ui,3)};aI.prototype.H=function(a){V(this,3,a)};aI.prototype.W=function(){this.H(void 0)};var cI=function(a){N(this,a,0,-1,bI)};t(cI,M);var bI=[1];cI.prototype.w=function(){var a=new y;dI(this,a);return A(a)};var dI=function(a,b){a=P(a,1);0<a.length&&si(b,1,a)};var eI=function(a){N(this,a,0,-1,null)};t(eI,M);eI.prototype.w=function(){var a=new y;fI(this,a);return A(a)};var fI=function(a,b){a=T(a,cI,1);null!=a&&b.b(1,a,dI)};var gI=function(a){N(this,a,0,-1,null)};t(gI,M);gI.prototype.w=function(){var a=new y;hI(this,a);return A(a)};var hI=function(a,b){var c=O(a,1);null!=c&&J(b,1,c);c=O(a,2);null!=c&&J(b,2,c)};gI.prototype.ba=function(){return O(this,1)};gI.prototype.Y=function(a){S(this,1,a)};gI.prototype.S=function(){return O(this,2)};gI.prototype.Da=function(a){S(this,2,a)};var jI=function(a){N(this,a,0,-1,iI)};t(jI,M);var iI=[2,3];jI.prototype.w=function(){var a=new y;kI(this,a);return A(a)};var kI=function(a,b){var c=a.G();null!=c&&b.b(1,c,Vi);c=a.Wa();0<c.length&&K(b,2,c,xF);c=a.mb();0<c.length&&K(b,3,c,hI);c=O(a,4);null!=c&&G(b,4,c);c=a.hb();null!=c&&b.b(5,c,hI);c=O(a,6);null!=c&&G(b,6,c)};g=jI.prototype;g.G=function(){return T(this,Ui,1)};g.H=function(a){V(this,1,a)};g.W=function(){this.H(void 0)};g.Wa=function(){return U(this,wF,2)};
g.mb=function(){return U(this,gI,3)};g.hb=function(){return T(this,gI,5)};var lI=function(a){N(this,a,0,-1,null)};t(lI,M);lI.prototype.w=function(){var a=new y;mI(this,a);return A(a)};var mI=function(a,b){a=O(a,1);null!=a&&G(b,1,a)};var nI=function(a){N(this,a,0,-1,null)};t(nI,M);nI.prototype.w=function(){var a=new y;oI(this,a);return A(a)};var oI=function(a,b){var c=O(a,1);null!=c&&G(b,1,c);c=O(a,2);null!=c&&C(b,2,c)};var qI=function(a){N(this,a,0,-1,pI)};t(qI,M);var pI=[3];qI.prototype.w=function(){var a=new y;rI(this,a);return A(a)};var rI=function(a,b){var c=O(a,1);null!=c&&J(b,1,c);c=O(a,2);null!=c&&J(b,2,c);c=P(a,3);0<c.length&&si(b,3,c);c=O(a,9);null!=c&&E(b,9,c);c=O(a,4);null!=c&&G(b,4,c);c=T(a,JE,5);null!=c&&b.b(5,c,KE);c=T(a,nI,7);null!=c&&b.b(7,c,oI);c=T(a,lI,8);null!=c&&b.b(8,c,mI);c=O(a,6);null!=c&&F(b,6,c)};qI.prototype.ba=function(){return O(this,1)};qI.prototype.Y=function(a){S(this,1,a)};var tI=function(a){N(this,a,0,-1,sI)};t(tI,M);var sI=[2];tI.prototype.w=function(){var a=new y;uI(this,a);return A(a)};var uI=function(a,b){var c=a.G();null!=c&&b.b(1,c,Vi);c=a.Wa();0<c.length&&K(b,2,c,rI)};tI.prototype.G=function(){return T(this,Ui,1)};tI.prototype.H=function(a){V(this,1,a)};tI.prototype.W=function(){this.H(void 0)};tI.prototype.Wa=function(){return U(this,qI,2)};var vI=function(a){N(this,a,0,-1,null)};t(vI,M);vI.prototype.w=function(){var a=new y;wI(this,a);return A(a)};var wI=function(a,b){a=O(a,1);null!=a&&J(b,1,a)};vI.prototype.ba=function(){return O(this,1)};vI.prototype.Y=function(a){S(this,1,a)};var yI=function(a){N(this,a,0,-1,xI)};t(yI,M);var xI=[2,3];yI.prototype.w=function(){var a=new y;zI(this,a);return A(a)};var zI=function(a,b){var c=a.G();null!=c&&b.b(1,c,Vi);c=a.Wa();0<c.length&&K(b,2,c,TE);c=a.mb();0<c.length&&K(b,3,c,wI);c=a.hb();null!=c&&b.b(4,c,wI)};g=yI.prototype;g.G=function(){return T(this,Ui,1)};g.H=function(a){V(this,1,a)};g.W=function(){this.H(void 0)};g.Wa=function(){return U(this,SE,2)};g.mb=function(){return U(this,vI,3)};g.hb=function(){return T(this,vI,4)};var AI=function(a){N(this,a,0,-1,null)};t(AI,M);AI.prototype.w=function(){var a=new y;BI(this,a);return A(a)};var BI=function(a,b){a=O(a,1);null!=a&&J(b,1,a)};AI.prototype.g=function(){return O(this,1)};AI.prototype.Aa=function(a){S(this,1,a)};var DI=function(a){N(this,a,0,-1,CI)};t(DI,M);var CI=[2,3];DI.prototype.w=function(){var a=new y;EI(this,a);return A(a)};var EI=function(a,b){var c=a.G();null!=c&&b.b(1,c,Vi);c=a.Wa();0<c.length&&K(b,2,c,yG);c=a.mb();0<c.length&&K(b,3,c,BI);c=a.hb();null!=c&&b.b(4,c,BI)};g=DI.prototype;g.G=function(){return T(this,Ui,1)};g.H=function(a){V(this,1,a)};g.W=function(){this.H(void 0)};g.Wa=function(){return U(this,xG,2)};g.mb=function(){return U(this,AI,3)};g.hb=function(){return T(this,AI,4)};var FI=function(a){N(this,a,0,-1,null)};t(FI,M);FI.prototype.w=function(){var a=new y;GI(this,a);return A(a)};var GI=function(a,b){var c=O(a,1);null!=c&&J(b,1,c);c=O(a,2);null!=c&&J(b,2,c);c=O(a,3);null!=c&&J(b,3,c)};g=FI.prototype;g.ba=function(){return O(this,1)};g.Y=function(a){S(this,1,a)};g.S=function(){return O(this,2)};g.Da=function(a){S(this,2,a)};g.sa=function(){return O(this,3)};g.hp=function(a){S(this,3,a)};var II=function(a){N(this,a,0,-1,HI)};t(II,M);var HI=[2,3];II.prototype.w=function(){var a=new y;JI(this,a);return A(a)};var JI=function(a,b){var c=a.G();null!=c&&b.b(1,c,Vi);c=a.Wa();0<c.length&&K(b,2,c,HG);c=a.mb();0<c.length&&K(b,3,c,GI);c=a.hb();null!=c&&b.b(4,c,GI)};g=II.prototype;g.G=function(){return T(this,Ui,1)};g.H=function(a){V(this,1,a)};g.W=function(){this.H(void 0)};g.Wa=function(){return U(this,GG,2)};g.mb=function(){return U(this,FI,3)};g.hb=function(){return T(this,FI,4)};var KI=function(a){N(this,a,0,-1,null)};t(KI,M);KI.prototype.w=function(){var a=new y;LI(this,a);return A(a)};var LI=function(a,b){var c=O(a,1);null!=c&&J(b,1,c);c=O(a,2);null!=c&&J(b,2,c);c=O(a,3);null!=c&&J(b,3,c);c=O(a,4);null!=c&&G(b,4,c)};g=KI.prototype;g.ba=function(){return O(this,1)};g.Y=function(a){S(this,1,a)};g.ni=function(){return O(this,2)};g.Aa=function(a){S(this,2,a)};g.yb=function(){return O(this,3)};g.kp=function(a){S(this,3,a)};g.mi=function(){return O(this,4)};
g.jp=function(a){S(this,4,a)};var NI=function(a){N(this,a,0,-1,MI)};t(NI,M);var MI=[2,3];NI.prototype.w=function(){var a=new y;OI(this,a);return A(a)};var OI=function(a,b){var c=a.G();null!=c&&b.b(1,c,Vi);c=a.Wa();0<c.length&&K(b,2,c,ZG);c=a.mb();0<c.length&&K(b,3,c,LI);c=a.hb();null!=c&&b.b(4,c,LI)};g=NI.prototype;g.G=function(){return T(this,Ui,1)};g.H=function(a){V(this,1,a)};g.W=function(){this.H(void 0)};g.Wa=function(){return U(this,YG,2)};g.mb=function(){return U(this,KI,3)};g.hb=function(){return T(this,KI,4)};var QI=function(a){N(this,a,0,-1,PI)};t(QI,M);
var PI=[7,13,16,17,18],SI=function(a){a=new Lh(a);var b=new QI;return RI(b,a)},RI=function(a,b){for(;Nh(b)&&!Mh(b);)switch(b.f){case 1:var c=Qh(b);a.g(c);break;case 2:c=Qh(b);Fi(a,2,c);break;case 3:c=Qh(b);Fi(a,3,c);break;case 4:c=Ph(b);Gi(a,4,c);break;case 5:c=!!b.b.f();Ei(a,5,c,!1);break;case 6:c=Qh(b);Fi(a,6,c);break;case 7:c=Qh(b);P(a,7).push(c);break;case 8:c=!!b.b.f();Ei(a,8,c,!1);break;case 9:c=!!b.b.f();Ei(a,9,c,!1);break;case 10:c=Qh(b);Fi(a,10,c);break;case 11:c=Ph(b);Gi(a,11,c);break;case 12:c=
new TI;b.h(c,UI);VI(a,c);break;case 13:c=Rh(b,b.b.A);S(a,13,c||[]);break;case 14:c=new WI;b.h(c,XI);V(a,14,c);break;case 15:c=!!b.b.f();Ei(a,15,c,!1);break;case 16:c=new YI;b.h(c,ZI);Ki(a,16,c,YI);break;case 17:c=new $I;b.h(c,aJ);Ki(a,17,c,$I);break;case 18:c=Rh(b,b.b.A);S(a,18,c||[]);break;case 19:c=Qh(b);Fi(a,19,c);break;case 20:c=new bJ;b.h(c,cJ);V(a,20,c);break;case 21:c=Qh(b);Fi(a,21,c);break;default:Oh(b)}return a};QI.prototype.w=function(){var a=new y;dJ(this,a);return A(a)};
var dJ=function(a,b){var c=a.ac();0<c.length&&J(b,1,c);c=Q(a,2,"");0<c.length&&J(b,2,c);c=Q(a,3,"");0<c.length&&J(b,3,c);c=eJ(a);0!==c&&G(b,4,c);(c=Q(a,5,!1))&&F(b,5,c);c=Q(a,6,"");0<c.length&&J(b,6,c);c=P(a,7);0<c.length&&si(b,7,c);(c=Q(a,8,!1))&&F(b,8,c);(c=Q(a,9,!1))&&F(b,9,c);c=Q(a,10,"");0<c.length&&J(b,10,c);c=Q(a,11,0);0!==c&&G(b,11,c);c=T(a,TI,12);null!=c&&b.b(12,c,fJ);c=P(a,13);0<c.length&&vi(b,13,c);c=T(a,WI,14);null!=c&&b.b(14,c,gJ);(c=Q(a,15,!1))&&F(b,15,c);c=U(a,YI,16);0<c.length&&K(b,
16,c,hJ);c=U(a,$I,17);0<c.length&&K(b,17,c,iJ);c=P(a,18);0<c.length&&vi(b,18,c);c=Q(a,19,"");0<c.length&&J(b,19,c);c=T(a,bJ,20);null!=c&&b.b(20,c,jJ);c=Q(a,21,"");0<c.length&&J(b,21,c)},TI=function(a){N(this,a,0,-1,null)};t(TI,M);var UI=function(a,b){for(;Nh(b)&&!Mh(b);)switch(b.f){case 1:var c=Qh(b);Fi(a,1,c);break;default:Oh(b)}return a};TI.prototype.w=function(){var a=new y;fJ(this,a);return A(a)};var fJ=function(a,b){a=Q(a,1,"");0<a.length&&J(b,1,a)},WI=function(a){N(this,a,0,-1,null)};t(WI,M);
var XI=function(a,b){for(;Nh(b)&&!Mh(b);)switch(b.f){case 1:var c=Qh(b);Fi(a,1,c);break;case 2:c=Ph(b);Gi(a,2,c);break;case 3:c=Ph(b);Gi(a,3,c);break;default:Oh(b)}return a};WI.prototype.w=function(){var a=new y;gJ(this,a);return A(a)};var gJ=function(a,b){var c=Q(a,1,"");0<c.length&&J(b,1,c);c=Q(a,2,0);0!==c&&G(b,2,c);c=Q(a,3,0);0!==c&&G(b,3,c)},YI=function(a){N(this,a,0,-1,null)};t(YI,M);
var ZI=function(a,b){for(;Nh(b)&&!Mh(b);)switch(b.f){case 1:var c=Qh(b);Fi(a,1,c);break;case 2:c=Ph(b);Gi(a,2,c);break;case 3:c=Ph(b);Gi(a,3,c);break;default:Oh(b)}return a};YI.prototype.w=function(){var a=new y;hJ(this,a);return A(a)};var hJ=function(a,b){var c=a.zc();0<c.length&&J(b,1,c);c=Q(a,2,0);0!==c&&G(b,2,c);c=Q(a,3,0);0!==c&&G(b,3,c)};YI.prototype.zc=function(){return Q(this,1,"")};var $I=function(a){N(this,a,0,-1,null)};t($I,M);
var aJ=function(a,b){for(;Nh(b)&&!Mh(b);)switch(b.f){case 1:var c=Qh(b);Fi(a,1,c);break;case 2:c=Ph(b);Gi(a,2,c);break;default:Oh(b)}return a};$I.prototype.w=function(){var a=new y;iJ(this,a);return A(a)};var iJ=function(a,b){var c=a.zc();0<c.length&&J(b,1,c);c=Q(a,2,0);0!==c&&G(b,2,c)};$I.prototype.zc=function(){return Q(this,1,"")};var bJ=function(a){N(this,a,0,-1,null)};t(bJ,M);
var cJ=function(a,b){for(;Nh(b)&&!Mh(b);)switch(b.f){case 1:var c=Qh(b);Fi(a,1,c);break;case 2:c=Ph(b);Gi(a,2,c);break;case 3:c=Qh(b);Fi(a,3,c);break;default:Oh(b)}return a};bJ.prototype.w=function(){var a=new y;jJ(this,a);return A(a)};var jJ=function(a,b){var c=Q(a,1,"");0<c.length&&J(b,1,c);c=Q(a,2,0);0!==c&&G(b,2,c);c=Q(a,3,"");0<c.length&&J(b,3,c)};QI.prototype.ac=function(){return Q(this,1,"")};QI.prototype.g=function(a){Fi(this,1,a)};var eJ=function(a){return Q(a,4,0)};
QI.prototype.he=function(a){S(this,7,a||[])};var VI=function(a,b){V(a,12,b)};var kJ=function(a){N(this,a,0,-1,null)};t(kJ,M);kJ.prototype.w=function(){var a=new y;lJ(this,a);return A(a)};var lJ=function(a,b){a=a.mc();0!==a&&E(b,1,a)};kJ.prototype.mc=function(){return Q(this,1,0)};var nJ=function(a){N(this,a,0,-1,mJ)};t(nJ,M);var mJ=[2,3];nJ.prototype.w=function(){var a=new y;oJ(this,a);return A(a)};var oJ=function(a,b){var c=a.G();null!=c&&b.b(1,c,lJ);c=a.Wa();0<c.length&&K(b,2,c,dJ);c=a.mb();0<c.length&&si(b,3,c);c=a.hb();0<c.length&&J(b,4,c)};g=nJ.prototype;g.G=function(){return T(this,kJ,1)};g.H=function(a){V(this,1,a)};g.W=function(){this.H(void 0)};g.Wa=function(){return U(this,QI,2)};g.mb=function(){return P(this,3)};g.hb=function(){return Q(this,4,"")};var pJ=function(a){N(this,a,0,-1,null)};t(pJ,M);pJ.prototype.w=function(){var a=new y;qJ(this,a);return A(a)};var qJ=function(a,b){var c=Q(a,1,0);0!==c&&E(b,1,c);c=Q(a,2,0);0!==c&&C(b,2,c)};var rJ=function(a){N(this,a,0,-1,null)};t(rJ,M);rJ.prototype.w=function(){var a=new y;sJ(this,a);return A(a)};var sJ=function(a,b){var c=Q(a,1,"");0<c.length&&J(b,1,c);c=Q(a,2,"");0<c.length&&J(b,2,c);c=Q(a,3,0);0!==c&&E(b,3,c);c=T(a,pJ,4);null!=c&&b.b(4,c,qJ);c=T(a,tJ,5);null!=c&&b.b(5,c,uJ);c=Q(a,6,0);0!==c&&G(b,6,c)},tJ=function(a){N(this,a,0,-1,null)};t(tJ,M);tJ.prototype.w=function(){var a=new y;uJ(this,a);return A(a)};
var uJ=function(a,b){var c=Q(a,1,"");0<c.length&&J(b,1,c);(c=Q(a,2,!1))&&F(b,2,c);c=T(a,vJ,3);null!=c&&b.b(3,c,wJ)},vJ=function(a){N(this,a,0,-1,null)};t(vJ,M);vJ.prototype.w=function(){var a=new y;wJ(this,a);return A(a)};var wJ=function(a,b){a=Q(a,1,0);0!==a&&C(b,1,a)};var yJ=function(a){N(this,a,0,-1,xJ)};t(yJ,M);var xJ=[2];yJ.prototype.w=function(){var a=new y;zJ(this,a);return A(a)};var zJ=function(a,b){var c=a.G();null!=c&&b.b(1,c,lJ);c=a.Wa();0<c.length&&K(b,2,c,sJ);c=a.hb();0<c.length&&J(b,3,c)};g=yJ.prototype;g.G=function(){return T(this,kJ,1)};g.H=function(a){V(this,1,a)};g.W=function(){this.H(void 0)};g.Wa=function(){return U(this,rJ,2)};g.hb=function(){return Q(this,3,"")};var BJ=function(a){N(this,a,0,-1,AJ)};t(BJ,M);var AJ=[10];BJ.prototype.w=function(){var a=new y;CJ(this,a);return A(a)};
var CJ=function(a,b){var c=a.zc();0<c.length&&J(b,1,c);c=a.getTitle();0<c.length&&J(b,2,c);c=a.Lb();0!==c&&G(b,4,c);c=Q(a,5,0);0!==c&&G(b,5,c);c=T(a,pJ,7);null!=c&&b.b(7,c,qJ);c=T(a,pJ,8);null!=c&&b.b(8,c,qJ);c=Q(a,9,"");0<c.length&&J(b,9,c);c=P(a,10);0<c.length&&vi(b,10,c);c=Q(a,11,"");0<c.length&&J(b,11,c);c=T(a,DJ,12);null!=c&&b.b(12,c,EJ);c=a.Cg();0!==c&&G(b,13,c);c=Q(a,14,"");0<c.length&&J(b,14,c);c=Q(a,15,"");0<c.length&&J(b,15,c)},FJ=function(a){N(this,a,0,-1,null)};t(FJ,M);
FJ.prototype.w=function(){var a=new y;GJ(this,a);return A(a)};var GJ=function(a,b){var c=Q(a,1,0);0!==c&&G(b,1,c);c=a.getDeviceId();0<c.length&&J(b,2,c)};FJ.prototype.getDeviceId=function(){return Q(this,2,"")};var DJ=function(a){N(this,a,0,-1,HJ)};t(DJ,M);var HJ=[1];DJ.prototype.w=function(){var a=new y;EJ(this,a);return A(a)};var EJ=function(a,b){a=U(a,FJ,1);0<a.length&&K(b,1,a,GJ)};g=BJ.prototype;g.zc=function(){return Q(this,1,"")};g.getTitle=function(){return Q(this,2,"")};
g.setTitle=function(a){Fi(this,2,a)};g.Lb=function(){return Q(this,4,0)};g.Cg=function(){return Q(this,13,0)};var JJ=function(a){N(this,a,0,-1,IJ)};t(JJ,M);var IJ=[2,3];JJ.prototype.w=function(){var a=new y;KJ(this,a);return A(a)};var KJ=function(a,b){var c=a.G();null!=c&&b.b(1,c,lJ);c=a.Wa();0<c.length&&K(b,2,c,CJ);c=a.mb();0<c.length&&si(b,3,c);c=a.hb();0<c.length&&J(b,4,c)};g=JJ.prototype;g.G=function(){return T(this,kJ,1)};g.H=function(a){V(this,1,a)};g.W=function(){this.H(void 0)};g.Wa=function(){return U(this,BJ,2)};g.mb=function(){return P(this,3)};g.hb=function(){return Q(this,4,"")};var MJ=function(a){N(this,a,0,-1,LJ)};t(MJ,M);var LJ=[5],VJ=function(a){a=new Lh(a);for(var b=new MJ;Nh(a)&&!Mh(a);)switch(a.f){case 1:var c=Qh(a);b.o(c);break;case 2:c=Qh(a);Fi(b,2,c);break;case 3:c=Qh(a);Fi(b,3,c);break;case 4:c=Ph(a);Gi(b,4,c);break;case 5:c=new NJ;a.h(c,OJ);Ki(b,5,c,NJ);break;case 8:c=new PJ;a.h(c,QJ);V(b,8,c);break;case 6:c=new RJ;a.h(c,SJ);V(b,6,c);break;case 7:c=Qh(a);Fi(b,7,c);break;case 9:c=new TJ;a.h(c,UJ);V(b,9,c);break;case 10:c=Qh(a);Fi(b,10,c);break;default:Oh(a)}return b};
MJ.prototype.w=function(){var a=new y;WJ(this,a);return A(a)};var WJ=function(a,b){var c=a.g();0<c.length&&J(b,1,c);c=a.lc();0<c.length&&J(b,2,c);c=Q(a,3,"");0<c.length&&J(b,3,c);c=Q(a,4,0);0!==c&&G(b,4,c);c=U(a,NJ,5);0<c.length&&K(b,5,c,XJ);c=T(a,PJ,8);null!=c&&b.b(8,c,YJ);c=T(a,RJ,6);null!=c&&b.b(6,c,ZJ);c=Q(a,7,"");0<c.length&&J(b,7,c);c=T(a,TJ,9);null!=c&&b.b(9,c,$J);c=Q(a,10,"");0<c.length&&J(b,10,c)},NJ=function(a){N(this,a,0,-1,null)};t(NJ,M);
var OJ=function(a,b){for(;Nh(b)&&!Mh(b);)switch(b.f){case 1:var c=Qh(b);Fi(a,1,c);break;case 2:c=Qh(b);Fi(a,2,c);break;case 3:c=Qh(b);Fi(a,3,c);break;case 4:c=Qh(b);Fi(a,4,c);break;default:Oh(b)}return a};NJ.prototype.w=function(){var a=new y;XJ(this,a);return A(a)};var XJ=function(a,b){var c=Q(a,1,"");0<c.length&&J(b,1,c);c=Q(a,2,"");0<c.length&&J(b,2,c);c=Q(a,3,"");0<c.length&&J(b,3,c);c=Q(a,4,"");0<c.length&&J(b,4,c)},PJ=function(a){N(this,a,0,-1,null)};t(PJ,M);
var QJ=function(a,b){for(;Nh(b)&&!Mh(b);)switch(b.f){case 1:var c=Qh(b);Fi(a,1,c);break;case 2:c=Qh(b);Fi(a,2,c);break;default:Oh(b)}return a};PJ.prototype.w=function(){var a=new y;YJ(this,a);return A(a)};var YJ=function(a,b){var c=Q(a,1,"");0<c.length&&J(b,1,c);c=Q(a,2,"");0<c.length&&J(b,2,c)},aK=function(a){N(this,a,0,-1,null)};t(aK,M);var bK=function(a,b){for(;Nh(b)&&!Mh(b);)switch(b.f){case 1:var c=Qh(b);Fi(a,1,c);break;case 2:c=Qh(b);Fi(a,2,c);break;default:Oh(b)}return a};
aK.prototype.w=function(){var a=new y;cK(this,a);return A(a)};var cK=function(a,b){var c=Q(a,1,"");0<c.length&&J(b,1,c);c=Q(a,2,"");0<c.length&&J(b,2,c)},dK=function(a){N(this,a,0,-1,null)};t(dK,M);var gK=function(a,b){for(;Nh(b)&&!Mh(b);)switch(b.f){case 1:var c=Ph(b);Gi(a,1,c);break;case 2:c=Qh(b);Fi(a,2,c);break;case 3:c=Qh(b);Fi(a,3,c);break;case 4:c=new eK;b.h(c,fK);V(a,4,c);break;case 5:c=Qh(b);Fi(a,5,c);break;case 6:c=Ph(b);Gi(a,6,c);break;default:Oh(b)}return a};
dK.prototype.w=function(){var a=new y;hK(this,a);return A(a)};var hK=function(a,b){var c=a.Dg();0!==c&&G(b,1,c);c=a.zc();0<c.length&&J(b,2,c);c=Q(a,3,"");0<c.length&&J(b,3,c);c=T(a,eK,4);null!=c&&b.b(4,c,iK);c=a.Bg();0<c.length&&J(b,5,c);c=a.Cg();0!==c&&G(b,6,c)},eK=function(a){N(this,a,0,-1,null)};t(eK,M);var fK=function(a,b){for(;Nh(b)&&!Mh(b);)switch(b.f){case 1:var c=Qh(b);Fi(a,1,c);break;case 2:c=Ph(b);Gi(a,2,c);break;default:Oh(b)}return a};eK.prototype.w=function(){var a=new y;iK(this,a);return A(a)};
var iK=function(a,b){var c=a.getDeviceId();0<c.length&&J(b,1,c);c=a.X();0!==c&&G(b,2,c)};eK.prototype.getDeviceId=function(){return Q(this,1,"")};eK.prototype.X=function(){return Q(this,2,0)};dK.prototype.Dg=function(){return Q(this,1,0)};dK.prototype.zc=function(){return Q(this,2,"")};dK.prototype.Bg=function(){return Q(this,5,"")};dK.prototype.Cg=function(){return Q(this,6,0)};var jK=function(a){N(this,a,0,-1,null)};t(jK,M);
var mK=function(a,b){for(;Nh(b)&&!Mh(b);)switch(b.f){case 1:var c=Ph(b);Gi(a,1,c);break;case 2:c=Qh(b);a.Aa(c);break;case 3:c=Ph(b);Gi(a,3,c);break;case 4:c=new kK;b.h(c,lK);V(a,4,c);break;case 5:c=Qh(b);Fi(a,5,c);break;default:Oh(b)}return a};jK.prototype.w=function(){var a=new y;nK(this,a);return A(a)};
var nK=function(a,b){var c=a.Ia();0!==c&&G(b,1,c);c=Q(a,2,"");0<c.length&&J(b,2,c);c=Q(a,3,0);0!==c&&G(b,3,c);c=T(a,kK,4);null!=c&&b.b(4,c,oK);c=a.Bg();0<c.length&&J(b,5,c)},kK=function(a){N(this,a,0,-1,null)};t(kK,M);var lK=function(a,b){for(;Nh(b)&&!Mh(b);)switch(b.f){case 1:var c=Qh(b);Fi(a,1,c);break;case 2:c=Ph(b);Gi(a,2,c);break;default:Oh(b)}return a};kK.prototype.w=function(){var a=new y;oK(this,a);return A(a)};
var oK=function(a,b){var c=a.getDeviceId();0<c.length&&J(b,1,c);c=a.X();0!==c&&G(b,2,c)};kK.prototype.getDeviceId=function(){return Q(this,1,"")};kK.prototype.X=function(){return Q(this,2,0)};jK.prototype.Ia=function(){return Q(this,1,0)};jK.prototype.Aa=function(a){Fi(this,2,a)};jK.prototype.Bg=function(){return Q(this,5,"")};var RJ=function(a){N(this,a,0,-1,pK)};t(RJ,M);
var pK=[9],SJ=function(a,b){for(;Nh(b)&&!Mh(b);)switch(b.f){case 1:var c=new aK;b.h(c,bK);V(a,1,c);break;case 2:c=new dK;b.h(c,gK);V(a,2,c);break;case 3:c=Qh(b);Fi(a,3,c);break;case 4:c=Qh(b);Fi(a,4,c);break;case 5:c=Qh(b);Fi(a,5,c);break;case 6:c=b.b.m();Ei(a,6,c,0);break;case 7:c=!!b.b.f();Ei(a,7,c,!1);break;case 8:c=Qh(b);Fi(a,8,c);break;case 9:c=new jK;b.h(c,mK);Ki(a,9,c,jK);break;default:Oh(b)}return a};RJ.prototype.w=function(){var a=new y;ZJ(this,a);return A(a)};
var ZJ=function(a,b){var c=a.Bf();null!=c&&b.b(1,c,cK);c=T(a,dK,2);null!=c&&b.b(2,c,hK);c=Q(a,3,"");0<c.length&&J(b,3,c);c=Q(a,4,"");0<c.length&&J(b,4,c);c=Q(a,5,"");0<c.length&&J(b,5,c);c=Q(a,6,0);0!==c&&C(b,6,c);(c=Q(a,7,!1))&&F(b,7,c);c=Q(a,8,"");0<c.length&&J(b,8,c);c=U(a,jK,9);0<c.length&&K(b,9,c,nK)};RJ.prototype.Bf=function(){return T(this,aK,1)};var TJ=function(a){N(this,a,0,-1,null)};t(TJ,M);
var UJ=function(a,b){for(;Nh(b)&&!Mh(b);)switch(b.f){case 2:var c=!!b.b.f();a.setEnabled(c);break;default:Oh(b)}return a};TJ.prototype.w=function(){var a=new y;$J(this,a);return A(a)};var $J=function(a,b){(a=Q(a,2,!1))&&F(b,2,a)};TJ.prototype.setEnabled=function(a){Ei(this,2,a,!1)};MJ.prototype.g=function(){return Q(this,1,"")};MJ.prototype.o=function(a){Fi(this,1,a)};MJ.prototype.lc=function(){return Q(this,2,"")};var rK=function(a){N(this,a,0,-1,qK)};t(rK,M);var qK=[2];rK.prototype.w=function(){var a=new y;sK(this,a);return A(a)};var sK=function(a,b){var c=a.G();null!=c&&b.b(1,c,lJ);c=a.Wa();0<c.length&&K(b,2,c,WJ);c=a.hb();0<c.length&&J(b,3,c)};g=rK.prototype;g.G=function(){return T(this,kJ,1)};g.H=function(a){V(this,1,a)};g.W=function(){this.H(void 0)};g.Wa=function(){return U(this,MJ,2)};g.hb=function(){return Q(this,3,"")};var tK=function(a){N(this,a,0,-1,null)};t(tK,M);tK.prototype.w=function(){var a=new y;uK(this,a);return A(a)};var uK=function(a,b){var c=a.g();null!=c&&b.b(1,c,oJ);c=a.A();null!=c&&b.b(2,c,sK);c=a.u();null!=c&&b.b(3,c,KJ);c=a.o();null!=c&&b.b(4,c,zJ)};tK.prototype.g=function(){return T(this,nJ,1)};tK.prototype.A=function(){return T(this,rK,2)};tK.prototype.u=function(){return T(this,JJ,3)};tK.prototype.o=function(){return T(this,yJ,4)};var vK=function(a){N(this,a,0,-1,null)};t(vK,M);vK.prototype.w=function(){var a=new y;wK(this,a);return A(a)};var wK=function(a,b){var c=a.Uj();null!=c&&b.b(1,c,kI);c=a.Xj();null!=c&&b.b(2,c,EI);c=a.Zj();null!=c&&b.b(3,c,OI);c=a.Qj();null!=c&&b.b(4,c,aF);c=a.Yj();null!=c&&b.b(5,c,JI);c=a.Tj();null!=c&&b.b(7,c,RD);c=a.Vj();null!=c&&b.b(8,c,zI);c=a.Sj();null!=c&&b.b(9,c,HE);c=a.ck();null!=c&&b.b(10,c,uI);c=a.Rj();null!=c&&b.b(11,c,cE);c=a.ak();null!=c&&b.b(13,c,uK)};g=vK.prototype;
g.Uj=function(){return T(this,jI,1)};g.Xj=function(){return T(this,DI,2)};g.Zj=function(){return T(this,NI,3)};g.Qj=function(){return T(this,$E,4)};g.Yj=function(){return T(this,II,5)};g.Tj=function(){return T(this,QD,7)};g.Vj=function(){return T(this,yI,8)};g.Sj=function(){return T(this,GE,9)};g.ck=function(){return T(this,tI,10)};g.Rj=function(){return T(this,bE,11)};g.ak=function(){return T(this,tK,13)};var xK=function(a){N(this,a,0,-1,null)};t(xK,M);xK.prototype.w=function(){var a=new y;yK(this,a);return A(a)};var yK=function(a,b){var c=T(a,yE,1);null!=c&&b.b(1,c,zE);c=T(a,vK,2);null!=c&&b.b(2,c,wK);c=T(a,eI,3);null!=c&&b.b(3,c,fI)};var AK=function(a){N(this,a,"hcbu",-1,zK)};t(AK,M);var zK=[1];AK.prototype.w=function(){var a=new y;var b=U(this,xK,1);0<b.length&&K(a,1,b,yK);return A(a)};Ti("hcbu",AK);var CK=function(a){N(this,a,0,-1,BK)};t(CK,M);var BK=[4];g=CK.prototype;g.w=function(){var a=new y;var b=T(this,yD,1);null!=b&&a.b(1,b,zD);b=T(this,SE,2);null!=b&&a.b(2,b,TE);b=this.G();null!=b&&a.b(3,b,Vi);b=U(this,SE,4);0<b.length&&K(a,4,b,TE);return A(a)};g.setRequestHeader=function(a){V(this,1,a)};g.G=function(){return T(this,Ui,3)};g.H=function(a){V(this,3,a)};g.W=function(){this.H(void 0)};var EK=function(a){N(this,a,"chmrp",-1,DK)};t(EK,M);var DK=[4];EK.prototype.w=function(){var a=new y;var b=this.getResponseHeader();null!=b&&a.b(1,b,ED);b=T(this,SE,2);null!=b&&a.b(2,b,TE);b=this.G();null!=b&&a.b(3,b,Vi);b=U(this,SE,4);0<b.length&&K(a,4,b,TE);return A(a)};Ti("chmrp",EK);EK.prototype.getResponseHeader=function(){return T(this,DD,1)};EK.prototype.G=function(){return T(this,Ui,3)};EK.prototype.H=function(a){V(this,3,a)};EK.prototype.W=function(){this.H(void 0)};var GK=function(a){N(this,a,0,-1,FK)};t(GK,M);var FK=[4];g=GK.prototype;g.w=function(){var a=new y;var b=T(this,yD,1);null!=b&&a.b(1,b,zD);b=T(this,wF,2);null!=b&&a.b(2,b,xF);b=this.G();null!=b&&a.b(3,b,Vi);b=U(this,wF,4);0<b.length&&K(a,4,b,xF);return A(a)};g.setRequestHeader=function(a){V(this,1,a)};g.G=function(){return T(this,Ui,3)};g.H=function(a){V(this,3,a)};g.W=function(){this.H(void 0)};var IK=function(a){N(this,a,"chpmrp",-1,HK)};t(IK,M);var HK=[4];IK.prototype.w=function(){var a=new y;var b=this.getResponseHeader();null!=b&&a.b(1,b,ED);b=T(this,wF,2);null!=b&&a.b(2,b,xF);b=this.G();null!=b&&a.b(3,b,Vi);b=U(this,wF,4);0<b.length&&K(a,4,b,xF);return A(a)};Ti("chpmrp",IK);IK.prototype.getResponseHeader=function(){return T(this,DD,1)};IK.prototype.G=function(){return T(this,Ui,3)};IK.prototype.H=function(a){V(this,3,a)};IK.prototype.W=function(){this.H(void 0)};var JK=function(a){N(this,a,0,-1,null)};t(JK,M);g=JK.prototype;g.w=function(){var a=new y;var b=T(this,yD,1);null!=b&&a.b(1,b,zD);b=O(this,2);null!=b&&J(a,2,b);b=O(this,3);null!=b&&J(a,3,b);b=this.G();null!=b&&a.b(4,b,Vi);return A(a)};g.setRequestHeader=function(a){V(this,1,a)};g.ba=function(){return O(this,2)};g.Y=function(a){S(this,2,a)};g.S=function(){return O(this,3)};g.Da=function(a){S(this,3,a)};g.G=function(){return T(this,Ui,4)};g.H=function(a){V(this,4,a)};g.W=function(){this.H(void 0)};var KK=function(a){N(this,a,"chpqrp",-1,null)};t(KK,M);KK.prototype.w=function(){var a=new y;var b=this.getResponseHeader();null!=b&&a.b(1,b,ED);b=T(this,wF,2);null!=b&&a.b(2,b,xF);b=this.G();null!=b&&a.b(3,b,Vi);return A(a)};Ti("chpqrp",KK);KK.prototype.getResponseHeader=function(){return T(this,DD,1)};KK.prototype.G=function(){return T(this,Ui,3)};KK.prototype.H=function(a){V(this,3,a)};KK.prototype.W=function(){this.H(void 0)};var MK=function(a){N(this,a,0,-1,LK)};t(MK,M);var LK=[6,7];g=MK.prototype;g.w=function(){var a=new y;var b=T(this,yD,1);null!=b&&a.b(1,b,zD);b=O(this,2);null!=b&&J(a,2,b);b=O(this,3);null!=b&&J(a,3,b);b=O(this,5);null!=b&&G(a,5,b);b=this.G();null!=b&&a.b(4,b,Vi);b=P(this,6);0<b.length&&si(a,6,b);b=U(this,gI,7);0<b.length&&K(a,7,b,hI);return A(a)};g.setRequestHeader=function(a){V(this,1,a)};g.ba=function(){return O(this,2)};g.Y=function(a){S(this,2,a)};g.S=function(){return O(this,3)};
g.Da=function(a){S(this,3,a)};g.G=function(){return T(this,Ui,4)};g.H=function(a){V(this,4,a)};g.W=function(){this.H(void 0)};var NK=function(a,b){Ji(a,7,b)};var OK=function(a){N(this,a,"chprrp",-1,null)};t(OK,M);OK.prototype.w=function(){var a=new y;var b=this.getResponseHeader();null!=b&&a.b(1,b,ED);b=this.G();null!=b&&a.b(2,b,Vi);b=O(this,3);null!=b&&G(a,3,b);return A(a)};Ti("chprrp",OK);OK.prototype.getResponseHeader=function(){return T(this,DD,1)};OK.prototype.G=function(){return T(this,Ui,2)};OK.prototype.H=function(a){V(this,2,a)};OK.prototype.W=function(){this.H(void 0)};var QK=function(a){N(this,a,"chsetcrp",-1,PK)};t(QK,M);var PK=[2];QK.prototype.w=function(){var a=new y;var b=this.getResponseHeader();null!=b&&a.b(1,b,ED);b=U(this,sG,2);0<b.length&&K(a,2,b,tG);return A(a)};Ti("chsetcrp",QK);QK.prototype.getResponseHeader=function(){return T(this,DD,1)};var RK=function(a){N(this,a,0,-1,null)};t(RK,M);RK.prototype.w=function(){var a=new y;SK(this,a);return A(a)};var SK=function(a,b){var c=T(a,TK,1);null!=c&&b.b(1,c,UK);c=T(a,TK,2);null!=c&&b.b(2,c,UK);c=O(a,3);null!=c&&G(b,3,c)},TK=function(a){N(this,a,0,-1,null)};t(TK,M);TK.prototype.w=function(){var a=new y;UK(this,a);return A(a)};var UK=function(a,b){var c=O(a,1);null!=c&&J(b,1,c);c=O(a,2);null!=c&&J(b,2,c);c=O(a,3);null!=c&&J(b,3,c)};var VK=function(a){N(this,a,0,-1,null)};t(VK,M);VK.prototype.w=function(){var a=new y;WK(this,a);return A(a)};var WK=function(a,b){var c=O(a,1);null!=c&&J(b,1,c);c=O(a,2);null!=c&&J(b,2,c);c=O(a,3);null!=c&&F(b,3,c);c=O(a,4);null!=c&&J(b,4,c);c=O(a,5);null!=c&&J(b,5,c);c=O(a,6);null!=c&&J(b,6,c);c=O(a,7);null!=c&&G(b,7,c)};VK.prototype.ba=function(){return O(this,6)};VK.prototype.Y=function(a){S(this,6,a)};var XK=function(a){N(this,a,0,-1,null)};t(XK,M);XK.prototype.w=function(){var a=new y;YK(this,a);return A(a)};var YK=function(a,b){var c=O(a,1);null!=c&&G(b,1,c);c=T(a,VK,2);null!=c&&b.b(2,c,WK);c=T(a,RK,6);null!=c&&b.b(6,c,SK);c=O(a,3);null!=c&&J(b,3,c);c=O(a,4);null!=c&&J(b,4,c);c=O(a,5);null!=c&&C(b,5,c);c=O(a,7);null!=c&&E(b,7,c);c=O(a,8);null!=c&&J(b,8,c);c=O(a,9);null!=c&&G(b,9,c);c=O(a,10);null!=c&&G(b,10,c)};var $K=function(a){N(this,a,0,-1,ZK)};t($K,M);var ZK=[5,8];$K.prototype.w=function(){var a=new y;aL(this,a);return A(a)};var aL=function(a,b){var c=O(a,1);null!=c&&J(b,1,c);c=O(a,2);null!=c&&J(b,2,c);c=O(a,3);null!=c&&C(b,3,c);c=O(a,4);null!=c&&C(b,4,c);c=U(a,bL,5);0<c.length&&ui(b,5,c,cL);c=U(a,dL,8);0<c.length&&K(b,8,c,eL)},bL=function(a){N(this,a,0,-1,null)};t(bL,M);bL.prototype.w=function(){var a=new y;cL(this,a);return A(a)};
var cL=function(a,b){var c=O(a,1);null!=c&&J(b,6,c);c=O(a,2);null!=c&&J(b,7,c)},dL=function(a){N(this,a,0,-1,null)};t(dL,M);dL.prototype.w=function(){var a=new y;eL(this,a);return A(a)};var eL=function(a,b){var c=O(a,1);null!=c&&G(b,1,c);c=O(a,2);null!=c&&J(b,2,c)};var gL=function(a){N(this,a,0,-1,fL)};t(gL,M);var fL=[1];gL.prototype.w=function(){var a=new y;hL(this,a);return A(a)};var hL=function(a,b){var c=U(a,iL,1);0<c.length&&ui(b,1,c,jL);c=O(a,15);null!=c&&G(b,15,c);c=O(a,16);null!=c&&C(b,16,c);c=O(a,17);null!=c&&C(b,17,c);c=T(a,iC,18);null!=c&&b.b(18,c,jC)},iL=function(a){N(this,a,0,-1,kL)};t(iL,M);var kL=[8,9,10,11,12,13];iL.prototype.w=function(){var a=new y;jL(this,a);return A(a)};
var jL=function(a,b){var c=O(a,1);null!=c&&J(b,2,c);c=O(a,2);null!=c&&J(b,3,c);c=O(a,3);null!=c&&J(b,4,c);c=O(a,4);null!=c&&J(b,5,c);c=O(a,5);null!=c&&J(b,6,c);c=O(a,6);null!=c&&G(b,7,c);c=O(a,7);null!=c&&G(b,8,c);c=U(a,lL,8);0<c.length&&K(b,9,c,mL);c=U(a,lL,9);0<c.length&&K(b,10,c,mL);c=U(a,lL,10);0<c.length&&K(b,11,c,mL);c=U(a,lL,11);0<c.length&&K(b,12,c,mL);c=U(a,lL,12);0<c.length&&K(b,13,c,mL);c=U(a,lL,13);0<c.length&&K(b,14,c,mL)},lL=function(a){N(this,a,0,-1,null)};t(lL,M);
lL.prototype.w=function(){var a=new y;mL(this,a);return A(a)};var mL=function(a,b){var c=O(a,1);null!=c&&C(b,1,c);c=O(a,2);null!=c&&C(b,2,c)};lL.prototype.g=function(a){S(this,1,a)};var nL=function(a){N(this,a,0,-1,null)};t(nL,M);nL.prototype.w=function(){var a=new y;oL(this,a);return A(a)};var oL=function(a,b){var c=O(a,1);null!=c&&J(b,1,c);c=O(a,2);null!=c&&J(b,2,c);c=O(a,3);null!=c&&J(b,3,c);c=O(a,4);null!=c&&C(b,4,c);c=O(a,5);null!=c&&C(b,5,c);c=T(a,pL,6);null!=c&&b.b(6,c,qL)},pL=function(a){N(this,a,0,-1,null)};t(pL,M);pL.prototype.w=function(){var a=new y;qL(this,a);return A(a)};
var qL=function(a,b){var c=O(a,1);null!=c&&F(b,1,c);c=O(a,51);null!=c&&F(b,51,c);c=O(a,4);null!=c&&F(b,4,c);c=O(a,61);null!=c&&G(b,61,c);c=O(a,7);null!=c&&F(b,7,c);c=O(a,14);null!=c&&F(b,14,c);c=O(a,15);null!=c&&C(b,15,c);c=O(a,16);null!=c&&C(b,16,c);c=O(a,31);null!=c&&C(b,31,c);c=O(a,33);null!=c&&F(b,33,c);c=O(a,35);null!=c&&F(b,35,c);c=O(a,36);null!=c&&F(b,36,c);c=O(a,37);null!=c&&F(b,37,c);c=O(a,38);null!=c&&F(b,38,c);c=O(a,43);null!=c&&F(b,43,c);c=O(a,44);null!=c&&F(b,44,c);c=O(a,45);null!=c&&
F(b,45,c);c=O(a,46);null!=c&&F(b,46,c);c=O(a,47);null!=c&&F(b,47,c);c=O(a,48);null!=c&&F(b,48,c);c=O(a,49);null!=c&&F(b,49,c);c=O(a,50);null!=c&&F(b,50,c);c=O(a,56);null!=c&&F(b,56,c);c=O(a,57);null!=c&&C(b,57,c);c=O(a,58);null!=c&&F(b,58,c);c=O(a,59);null!=c&&F(b,59,c);c=O(a,60);null!=c&&F(b,60,c);c=O(a,62);null!=c&&J(b,62,c)};var rL=function(a){N(this,a,0,-1,null)};t(rL,M);rL.prototype.w=function(){var a=new y;sL(this,a);return A(a)};var sL=function(a,b){var c=O(a,1);null!=c&&G(b,1,c);c=O(a,2);null!=c&&G(b,2,c);c=O(a,3);null!=c&&J(b,3,c);c=O(a,4);null!=c&&J(b,4,c);c=O(a,5);null!=c&&E(b,5,c);c=O(a,6);null!=c&&E(b,6,c)};rL.prototype.X=function(){return O(this,1)};var tL=function(a){N(this,a,0,-1,null)};t(tL,M);tL.prototype.w=function(){var a=new y;uL(this,a);return A(a)};var uL=function(a,b){var c=O(a,1);null!=c&&C(b,1,c);c=O(a,2);null!=c&&C(b,2,c);c=O(a,3);null!=c&&E(b,3,c);c=O(a,4);null!=c&&E(b,4,c)};var vL=function(a){N(this,a,0,-1,null)};t(vL,M);vL.prototype.w=function(){var a=new y;wL(this,a);return A(a)};var wL=function(a,b){var c=O(a,1);null!=c&&G(b,1,c);c=O(a,2);null!=c&&J(b,2,c);c=O(a,3);null!=c&&C(b,3,c);c=O(a,4);null!=c&&C(b,4,c);c=O(a,6);null!=c&&C(b,6,c);c=O(a,7);null!=c&&C(b,7,c);c=O(a,8);null!=c&&C(b,8,c);c=O(a,9);null!=c&&J(b,9,c);c=O(a,5);null!=c&&G(b,5,c)};vL.prototype.X=function(){return O(this,1)};vL.prototype.getName=function(){return O(this,2)};
vL.prototype.getDeviceId=function(){return O(this,6)};var yL=function(a){N(this,a,0,-1,xL)};t(yL,M);var xL=[24];yL.prototype.w=function(){var a=new y;zL(this,a);return A(a)};
var zL=function(a,b){var c=O(a,1);null!=c&&J(b,1,c);c=O(a,2);null!=c&&C(b,2,c);c=O(a,3);null!=c&&C(b,3,c);c=O(a,25);null!=c&&J(b,25,c);c=O(a,4);null!=c&&C(b,4,c);c=O(a,5);null!=c&&J(b,5,c);c=O(a,6);null!=c&&C(b,6,c);c=O(a,7);null!=c&&C(b,7,c);c=O(a,8);null!=c&&J(b,8,c);c=O(a,9);null!=c&&C(b,9,c);c=O(a,10);null!=c&&C(b,10,c);c=O(a,11);null!=c&&J(b,11,c);c=O(a,12);null!=c&&J(b,12,c);c=O(a,13);null!=c&&J(b,13,c);c=O(a,14);null!=c&&J(b,14,c);c=O(a,15);null!=c&&J(b,15,c);c=O(a,16);null!=c&&J(b,16,c);c=
O(a,17);null!=c&&C(b,17,c);c=O(a,18);null!=c&&C(b,18,c);c=O(a,19);null!=c&&J(b,19,c);c=O(a,20);null!=c&&J(b,20,c);c=T(a,AL,21);null!=c&&b.b(21,c,BL);c=O(a,22);null!=c&&J(b,22,c);c=T(a,CL,23);null!=c&&b.b(23,c,DL);c=U(a,vL,24);0<c.length&&K(b,24,c,wL)},AL=function(a){N(this,a,0,-1,null)};t(AL,M);AL.prototype.w=function(){var a=new y;BL(this,a);return A(a)};
var BL=function(a,b){var c=O(a,1);null!=c&&F(b,1,c);c=O(a,2);null!=c&&C(b,2,c);c=O(a,3);null!=c&&C(b,3,c);c=O(a,4);null!=c&&C(b,4,c);c=O(a,5);null!=c&&C(b,5,c)},CL=function(a){N(this,a,0,-1,EL)};t(CL,M);var EL=[3];CL.prototype.w=function(){var a=new y;DL(this,a);return A(a)};var DL=function(a,b){var c=O(a,1);null!=c&&C(b,1,c);c=O(a,2);null!=c&&C(b,2,c);c=U(a,FL,3);0<c.length&&K(b,3,c,GL)},FL=function(a){N(this,a,0,-1,null)};t(FL,M);FL.prototype.w=function(){var a=new y;GL(this,a);return A(a)};
var GL=function(a,b){var c=O(a,1);null!=c&&G(b,1,c);c=O(a,2);null!=c&&G(b,2,c);c=O(a,4);null!=c&&G(b,4,c);c=O(a,3);null!=c&&G(b,3,c)};yL.prototype.g=function(a){S(this,6,a)};var IL=function(a){N(this,a,0,-1,HL)};t(IL,M);var HL=[11];IL.prototype.w=function(){var a=new y;JL(this,a);return A(a)};
var JL=function(a,b){var c=O(a,1);null!=c&&J(b,1,c);c=O(a,2);null!=c&&J(b,2,c);c=O(a,14);null!=c&&J(b,14,c);c=O(a,21);null!=c&&J(b,21,c);c=O(a,3);null!=c&&J(b,3,c);c=T(a,HB,4);null!=c&&b.b(4,c,IB);c=T(a,$K,5);null!=c&&b.b(5,c,aL);c=T(a,gL,6);null!=c&&b.b(6,c,hL);c=T(a,nL,7);null!=c&&b.b(7,c,oL);c=T(a,yL,8);null!=c&&b.b(8,c,zL);c=T(a,XK,10);null!=c&&b.b(10,c,YK);c=T(a,tL,17);null!=c&&b.b(17,c,uL);c=T(a,rL,15);null!=c&&b.b(15,c,sL);c=P(a,11);0<c.length&&si(b,11,c);c=O(a,12);null!=c&&F(b,12,c);c=O(a,
9);null!=c&&G(b,9,c);c=O(a,13);null!=c&&J(b,13,c);c=O(a,16);null!=c&&J(b,16,c);c=O(a,18);null!=c&&F(b,18,c);c=O(a,19);null!=c&&E(b,19,c);c=O(a,20);null!=c&&E(b,20,c);c=O(a,22);null!=c&&J(b,22,c);c=O(a,23);null!=c&&J(b,23,c)};g=IL.prototype;g.ba=function(){return O(this,2)};g.Y=function(a){S(this,2,a)};g.vb=function(){return O(this,21)};g.S=function(){return O(this,3)};g.Da=function(a){S(this,3,a)};g.lc=function(){return O(this,22)};var KL=function(a){N(this,a,0,-1,null)};t(KL,M);g=KL.prototype;g.w=function(){var a=new y;var b=T(this,yD,1);null!=b&&a.b(1,b,zD);b=O(this,2);null!=b&&J(a,2,b);b=T(this,IL,3);null!=b&&a.b(3,b,JL);b=this.G();null!=b&&a.b(4,b,Vi);return A(a)};g.setRequestHeader=function(a){V(this,1,a)};g.Aa=function(a){S(this,2,a)};g.G=function(){return T(this,Ui,4)};g.H=function(a){V(this,4,a)};g.W=function(){this.H(void 0)};var LL=function(a){N(this,a,"chselrp",-1,null)};t(LL,M);LL.prototype.w=function(){var a=new y;var b=this.getResponseHeader();null!=b&&a.b(1,b,ED);b=this.G();null!=b&&a.b(2,b,Vi);return A(a)};Ti("chselrp",LL);LL.prototype.getResponseHeader=function(){return T(this,DD,1)};LL.prototype.G=function(){return T(this,Ui,2)};LL.prototype.H=function(a){V(this,2,a)};LL.prototype.W=function(){this.H(void 0)};var NL=function(a){N(this,a,0,-1,ML)};t(NL,M);var ML=[4];g=NL.prototype;g.w=function(){var a=new y;var b=T(this,yD,1);null!=b&&a.b(1,b,zD);b=this.G();null!=b&&a.b(3,b,Vi);b=U(this,xG,4);0<b.length&&K(a,4,b,yG);return A(a)};g.setRequestHeader=function(a){V(this,1,a)};g.G=function(){return T(this,Ui,3)};g.H=function(a){V(this,3,a)};g.W=function(){this.H(void 0)};var PL=function(a){N(this,a,"chsemrp",-1,OL)};t(PL,M);var OL=[4];PL.prototype.w=function(){var a=new y;var b=this.getResponseHeader();null!=b&&a.b(1,b,ED);b=this.G();null!=b&&a.b(3,b,Vi);b=U(this,xG,4);0<b.length&&K(a,4,b,yG);return A(a)};Ti("chsemrp",PL);PL.prototype.getResponseHeader=function(){return T(this,DD,1)};PL.prototype.G=function(){return T(this,Ui,3)};PL.prototype.H=function(a){V(this,3,a)};PL.prototype.W=function(){this.H(void 0)};var RL=function(a){N(this,a,0,-1,QL)};t(RL,M);var QL=[4];g=RL.prototype;g.w=function(){var a=new y;var b=T(this,yD,1);null!=b&&a.b(1,b,zD);b=this.fa();null!=b&&a.b(2,b,HG);b=this.G();null!=b&&a.b(3,b,Vi);b=U(this,GG,4);0<b.length&&K(a,4,b,HG);return A(a)};g.setRequestHeader=function(a){V(this,1,a)};g.fa=function(){return T(this,GG,2)};g.G=function(){return T(this,Ui,3)};g.H=function(a){V(this,3,a)};g.W=function(){this.H(void 0)};var TL=function(a){N(this,a,"chsomrp",-1,SL)};t(TL,M);var SL=[4];TL.prototype.w=function(){var a=new y;var b=this.getResponseHeader();null!=b&&a.b(1,b,ED);b=this.fa();null!=b&&a.b(2,b,HG);b=this.G();null!=b&&a.b(3,b,Vi);b=U(this,GG,4);0<b.length&&K(a,4,b,HG);return A(a)};Ti("chsomrp",TL);g=TL.prototype;g.getResponseHeader=function(){return T(this,DD,1)};g.fa=function(){return T(this,GG,2)};g.G=function(){return T(this,Ui,3)};g.H=function(a){V(this,3,a)};g.W=function(){this.H(void 0)};var UL=function(a){N(this,a,0,-1,null)};t(UL,M);g=UL.prototype;g.w=function(){var a=new y;var b=T(this,yD,1);null!=b&&a.b(1,b,zD);b=O(this,2);null!=b&&J(a,2,b);b=O(this,3);null!=b&&J(a,3,b);b=O(this,4);null!=b&&J(a,4,b);return A(a)};g.setRequestHeader=function(a){V(this,1,a)};g.ba=function(){return O(this,2)};g.Y=function(a){S(this,2,a)};g.S=function(){return O(this,3)};g.Da=function(a){S(this,3,a)};g.sa=function(){return O(this,4)};var VL=function(a){N(this,a,"chsoqrp",-1,null)};t(VL,M);VL.prototype.w=function(){var a=new y;var b=this.getResponseHeader();null!=b&&a.b(1,b,ED);b=this.fa();null!=b&&a.b(2,b,HG);return A(a)};Ti("chsoqrp",VL);VL.prototype.getResponseHeader=function(){return T(this,DD,1)};VL.prototype.fa=function(){return T(this,GG,2)};var XL=function(a){N(this,a,0,-1,WL)};t(XL,M);var WL=[4];g=XL.prototype;g.w=function(){var a=new y;var b=T(this,yD,1);null!=b&&a.b(1,b,zD);b=this.G();null!=b&&a.b(3,b,Vi);b=U(this,YG,4);0<b.length&&K(a,4,b,ZG);return A(a)};g.setRequestHeader=function(a){V(this,1,a)};g.G=function(){return T(this,Ui,3)};g.H=function(a){V(this,3,a)};g.W=function(){this.H(void 0)};var ZL=function(a){N(this,a,"chstmrp",-1,YL)};t(ZL,M);var YL=[4];ZL.prototype.w=function(){var a=new y;var b=this.getResponseHeader();null!=b&&a.b(1,b,ED);b=this.G();null!=b&&a.b(3,b,Vi);b=U(this,YG,4);0<b.length&&K(a,4,b,ZG);return A(a)};Ti("chstmrp",ZL);ZL.prototype.getResponseHeader=function(){return T(this,DD,1)};ZL.prototype.G=function(){return T(this,Ui,3)};ZL.prototype.H=function(a){V(this,3,a)};ZL.prototype.W=function(){this.H(void 0)};var $L=function(a){N(this,a,0,-1,null)};t($L,M);g=$L.prototype;g.w=function(){var a=new y;var b=T(this,yD,1);null!=b&&a.b(1,b,zD);b=O(this,2);null!=b&&G(a,2,b);b=O(this,3);null!=b&&J(a,3,b);b=O(this,4);null!=b&&J(a,4,b);b=O(this,5);null!=b&&J(a,5,b);return A(a)};g.setRequestHeader=function(a){V(this,1,a)};g.Aa=function(a){S(this,3,a)};g.yb=function(){return O(this,4)};g.ba=function(){return O(this,5)};g.Y=function(a){S(this,5,a)};var aM=function(a){N(this,a,"chstqrp",-1,null)};t(aM,M);aM.prototype.w=function(){var a=new y;var b=this.getResponseHeader();null!=b&&a.b(1,b,ED);b=this.bc();null!=b&&a.b(2,b,ZG);return A(a)};Ti("chstqrp",aM);aM.prototype.getResponseHeader=function(){return T(this,DD,1)};aM.prototype.bc=function(){return T(this,YG,2)};var bM=function(a){N(this,a,0,-1,null)};t(bM,M);bM.prototype.w=function(){var a=new y;cM(this,a);return A(a)};var cM=function(a,b){a=O(a,1);null!=a&&gi(b,1,a)};var dM=function(a){N(this,a,0,-1,null)};t(dM,M);dM.prototype.w=function(){var a=new y;eM(this,a);return A(a)};var eM=function(a,b){var c=O(a,1);null!=c&&J(b,1,c);c=O(a,2);null!=c&&J(b,2,c);c=O(a,3);null!=c&&G(b,3,c)};var fM=function(a){N(this,a,0,-1,null)};t(fM,M);fM.prototype.w=function(){var a=new y;gM(this,a);return A(a)};var gM=function(a,b){var c=O(a,1);null!=c&&G(b,1,c);c=O(a,2);null!=c&&J(b,2,c);c=O(a,3);null!=c&&ji(b,3,c)};var hM=function(a){N(this,a,0,-1,null)};t(hM,M);hM.prototype.w=function(){var a=new y;iM(this,a);return A(a)};var iM=function(a,b){var c=O(a,1);null!=c&&G(b,1,c);c=O(a,2);null!=c&&G(b,2,c);c=T(a,dM,3);null!=c&&b.b(3,c,eM);c=T(a,fM,4);null!=c&&b.b(4,c,gM)};hM.prototype.fa=function(){return O(this,1)};var jM=function(a){N(this,a,0,-1,null)};t(jM,M);jM.prototype.w=function(){var a=new y;kM(this,a);return A(a)};var kM=function(a,b){var c=T(a,lM,1);null!=c&&b.b(1,c,mM);c=T(a,nM,2);null!=c&&b.b(2,c,oM);c=T(a,pM,3);null!=c&&b.b(3,c,qM);c=O(a,4);null!=c&&E(b,4,c);c=T(a,rM,5);null!=c&&b.b(5,c,sM);c=T(a,tM,6);null!=c&&b.b(6,c,uM)},lM=function(a){N(this,a,0,-1,null)};t(lM,M);lM.prototype.w=function(){var a=new y;mM(this,a);return A(a)};
var mM=function(a,b){var c=O(a,1);null!=c&&F(b,1,c);c=O(a,2);null!=c&&F(b,2,c);c=O(a,3);null!=c&&F(b,3,c);c=O(a,4);null!=c&&G(b,4,c);c=O(a,5);null!=c&&E(b,5,c);c=O(a,6);null!=c&&J(b,6,c);c=O(a,7);null!=c&&F(b,7,c);c=O(a,8);null!=c&&E(b,8,c);c=O(a,9);null!=c&&E(b,9,c);c=O(a,10);null!=c&&E(b,10,c);c=O(a,11);null!=c&&G(b,11,c);c=O(a,12);null!=c&&G(b,12,c);c=O(a,13);null!=c&&F(b,13,c);c=O(a,14);null!=c&&F(b,14,c);c=O(a,15);null!=c&&F(b,15,c)},nM=function(a){N(this,a,0,-1,null)};t(nM,M);
nM.prototype.w=function(){var a=new y;oM(this,a);return A(a)};var oM=function(a,b){var c=O(a,1);null!=c&&F(b,1,c);c=O(a,2);null!=c&&F(b,2,c)},pM=function(a){N(this,a,0,-1,null)};t(pM,M);pM.prototype.w=function(){var a=new y;qM(this,a);return A(a)};var qM=function(a,b){var c=O(a,1);null!=c&&F(b,1,c);c=O(a,2);null!=c&&G(b,2,c)},rM=function(a){N(this,a,0,-1,null)};t(rM,M);rM.prototype.w=function(){var a=new y;sM(this,a);return A(a)};
var sM=function(a,b){var c=O(a,1);null!=c&&G(b,1,c);c=O(a,2);null!=c&&F(b,2,c);c=O(a,3);null!=c&&G(b,3,c)},tM=function(a){N(this,a,0,-1,null)};t(tM,M);tM.prototype.w=function(){var a=new y;uM(this,a);return A(a)};var uM=function(a,b){a=O(a,1);null!=a&&F(b,1,a)};var vM=function(a){N(this,a,0,-1,null)};t(vM,M);vM.prototype.w=function(){var a=new y;wM(this,a);return A(a)};var wM=function(a,b){var c=O(a,1);null!=c&&G(b,1,c);c=O(a,2);null!=c&&E(b,2,c);c=O(a,3);null!=c&&E(b,3,c);c=O(a,4);null!=c&&G(b,4,c);c=O(a,5);null!=c&&G(b,5,c);c=O(a,6);null!=c&&G(b,6,c);c=O(a,7);null!=c&&J(b,7,c);c=O(a,8);null!=c&&J(b,8,c);c=O(a,9);null!=c&&G(b,9,c)};var xM=function(a){N(this,a,0,-1,null)};t(xM,M);xM.prototype.w=function(){var a=new y;yM(this,a);return A(a)};var yM=function(a,b){var c=O(a,1);null!=c&&G(b,1,c);c=O(a,2);null!=c&&G(b,2,c);c=O(a,3);null!=c&&E(b,3,c)};var zM=function(a){N(this,a,"azvep",-1,null)};t(zM,M);zM.prototype.w=function(){var a=new y;AM(this,a);return A(a)};
var AM=function(a,b){var c=O(a,1);null!=c&&li(b,1,c);c=O(a,2);null!=c&&C(b,2,c);c=O(a,3);null!=c&&li(b,3,c);c=O(a,4);null!=c&&li(b,4,c);c=O(a,5);null!=c&&li(b,5,c);c=O(a,6);null!=c&&C(b,6,c);c=O(a,7);null!=c&&li(b,7,c);c=O(a,8);null!=c&&li(b,8,c);c=O(a,9);null!=c&&li(b,9,c);c=O(a,10);null!=c&&li(b,10,c);c=O(a,11);null!=c&&li(b,11,c);c=O(a,12);null!=c&&li(b,12,c);c=O(a,13);null!=c&&li(b,13,c);c=O(a,14);null!=c&&li(b,14,c);c=O(a,15);null!=c&&C(b,15,c);c=O(a,16);null!=c&&C(b,16,c);c=O(a,29);null!=c&&
C(b,29,c);c=O(a,17);null!=c&&C(b,17,c);c=O(a,22);null!=c&&C(b,22,c);c=O(a,23);null!=c&&C(b,23,c);c=O(a,24);null!=c&&C(b,24,c);c=O(a,25);null!=c&&C(b,25,c);c=O(a,26);null!=c&&C(b,26,c);c=O(a,27);null!=c&&C(b,27,c);c=O(a,28);null!=c&&li(b,28,c);c=O(a,18);null!=c&&li(b,18,c);c=O(a,19);null!=c&&li(b,19,c);c=O(a,20);null!=c&&li(b,20,c);c=O(a,21);null!=c&&F(b,21,c)};Ti("azvep",zM);var CM=function(a){N(this,a,0,-1,BM)};t(CM,M);var BM=[4,5,8];CM.prototype.w=function(){var a=new y;DM(this,a);return A(a)};
var DM=function(a,b){var c=O(a,1);null!=c&&G(b,1,c);c=T(a,EM,2);null!=c&&b.b(2,c,FM);c=O(a,3);null!=c&&C(b,3,c);c=U(a,GM,4);0<c.length&&K(b,4,c,HM);c=U(a,IM,5);0<c.length&&K(b,5,c,JM);c=T(a,zM,6);null!=c&&b.b(6,c,AM);c=T(a,xM,7);null!=c&&b.b(7,c,yM);c=U(a,KM,8);0<c.length&&K(b,8,c,LM);c=a.getMetadata();null!=c&&b.b(9,c,MM);c=O(a,10);null!=c&&E(b,10,c);c=T(a,EM,11);null!=c&&b.b(11,c,FM);c=T(a,NM,12);null!=c&&b.b(12,c,OM)},EM=function(a){N(this,a,0,-1,null)};t(EM,M);
EM.prototype.w=function(){var a=new y;FM(this,a);return A(a)};var FM=function(a,b){var c=O(a,1);null!=c&&F(b,1,c);c=O(a,2);null!=c&&li(b,2,c);c=O(a,3);null!=c&&li(b,3,c);c=O(a,4);null!=c&&li(b,4,c);c=O(a,5);null!=c&&li(b,5,c)},GM=function(a){N(this,a,0,-1,null)};t(GM,M);GM.prototype.w=function(){var a=new y;HM(this,a);return A(a)};
var HM=function(a,b){var c=T(a,EM,1);null!=c&&b.b(1,c,FM);c=O(a,2);null!=c&&G(b,2,c);c=O(a,3);null!=c&&E(b,3,c);c=O(a,4);null!=c&&li(b,4,c);c=O(a,5);null!=c&&G(b,5,c);c=O(a,6);null!=c&&li(b,6,c)};GM.prototype.X=function(){return O(this,2)};var IM=function(a){N(this,a,0,-1,null)};t(IM,M);IM.prototype.w=function(){var a=new y;JM(this,a);return A(a)};var JM=function(a,b){var c=O(a,1);null!=c&&G(b,1,c);c=O(a,2);null!=c&&E(b,2,c);c=O(a,3);null!=c&&li(b,3,c);c=O(a,4);null!=c&&E(b,4,c)};
IM.prototype.fa=function(){return Q(this,1,0)};var KM=function(a){N(this,a,0,-1,null)};t(KM,M);KM.prototype.w=function(){var a=new y;LM(this,a);return A(a)};var LM=function(a,b){var c=O(a,1);null!=c&&G(b,1,c);c=O(a,2);null!=c&&E(b,2,c)};KM.prototype.X=function(){return Q(this,1,0)};var PM=function(a){N(this,a,0,-1,null)};t(PM,M);PM.prototype.w=function(){var a=new y;MM(this,a);return A(a)};
var MM=function(a,b){var c=O(a,1);null!=c&&J(b,1,c);c=O(a,2);null!=c&&J(b,2,c);c=O(a,3);null!=c&&E(b,3,c)},NM=function(a){N(this,a,0,-1,null)};t(NM,M);NM.prototype.w=function(){var a=new y;OM(this,a);return A(a)};var OM=function(a,b){var c=O(a,1);null!=c&&G(b,1,c);c=O(a,2);null!=c&&J(b,2,c)};CM.prototype.Ia=function(){return O(this,1)};CM.prototype.getMetadata=function(){return T(this,PM,9)};var QM=function(a){N(this,a,0,-1,null)};t(QM,M);QM.prototype.w=function(){var a=new y;RM(this,a);return A(a)};var RM=function(a,b){var c=O(a,1);null!=c&&C(b,1,c);c=O(a,2);null!=c&&C(b,2,c);c=O(a,3);null!=c&&F(b,3,c)};QM.prototype.setEnabled=function(a){S(this,3,a)};var SM=function(a){N(this,a,0,-1,null)};t(SM,M);SM.prototype.w=function(){var a=new y;TM(this,a);return A(a)};var TM=function(a,b){a=O(a,1);null!=a&&F(b,1,a)};var VM=function(a){N(this,a,0,-1,UM)};t(VM,M);var UM=[2,6];VM.prototype.w=function(){var a=new y;WM(this,a);return A(a)};var WM=function(a,b){var c=O(a,1);null!=c&&E(b,1,c);c=P(a,2);0<c.length&&si(b,2,c);c=U(a,QM,6);0<c.length&&K(b,6,c,RM);c=O(a,3);null!=c&&F(b,3,c);c=O(a,4);null!=c&&J(b,4,c);c=O(a,5);null!=c&&F(b,5,c);c=T(a,SM,7);null!=c&&b.b(7,c,TM)};var XM=function(a){N(this,a,0,-1,null)};t(XM,M);XM.prototype.w=function(){var a=new y;YM(this,a);return A(a)};var YM=function(a,b){a=O(a,1);null!=a&&J(b,1,a)};XM.prototype.getId=function(){return O(this,1)};var ZM=function(a){N(this,a,0,-1,null)};t(ZM,M);ZM.prototype.w=function(){var a=new y;$M(this,a);return A(a)};
var $M=function(a,b){var c=O(a,1);null!=c&&J(b,1,c);c=O(a,2);null!=c&&J(b,2,c);c=O(a,3);null!=c&&J(b,3,c);c=O(a,4);null!=c&&J(b,4,c);c=O(a,5);null!=c&&J(b,5,c);c=T(a,XM,6);null!=c&&b.b(6,c,YM);c=O(a,7);null!=c&&J(b,7,c);c=O(a,8);null!=c&&J(b,8,c);c=O(a,9);null!=c&&J(b,9,c);c=O(a,12);null!=c&&J(b,12,c);c=O(a,10);null!=c&&J(b,10,c);c=O(a,11);null!=c&&J(b,11,c);c=O(a,13);null!=c&&J(b,13,c);c=O(a,14);null!=c&&J(b,14,c);c=O(a,15);null!=c&&J(b,15,c)};g=ZM.prototype;g.Aa=function(a){S(this,2,a)};
g.ba=function(){return O(this,3)};g.Y=function(a){S(this,3,a)};g.S=function(){return O(this,4)};g.Da=function(a){S(this,4,a)};g.vb=function(){return O(this,10)};g.lc=function(){return O(this,13)};var aN=function(a){N(this,a,0,-1,null)};t(aN,M);aN.prototype.w=function(){var a=new y;bN(this,a);return A(a)};var bN=function(a,b){var c=O(a,4);null!=c&&G(b,4,c);c=O(a,1);null!=c&&G(b,1,c);c=O(a,2);null!=c&&G(b,2,c);c=O(a,3);null!=c&&E(b,3,c)};aN.prototype.getId=function(){return O(this,4)};var cN=function(a){N(this,a,0,-1,null)};t(cN,M);cN.prototype.w=function(){var a=new y;dN(this,a);return A(a)};var dN=function(a,b){var c=O(a,1);null!=c&&G(b,1,c);c=O(a,2);null!=c&&E(b,2,c)};cN.prototype.getId=function(){return O(this,1)};var fN=function(a){N(this,a,0,-1,eN)};t(fN,M);var eN=[1,2,3];fN.prototype.w=function(){var a=new y;gN(this,a);return A(a)};var gN=function(a,b){var c=U(a,aN,1);0<c.length&&K(b,1,c,bN);c=U(a,cN,2);0<c.length&&K(b,2,c,dN);c=P(a,3);0<c.length&&ri(b,3,c)};var hN=function(a){N(this,a,0,-1,null)};t(hN,M);hN.prototype.w=function(){var a=new y;iN(this,a);return A(a)};var iN=function(a,b){var c=O(a,1);null!=c&&C(b,1,c);c=O(a,2);null!=c&&C(b,2,c);c=O(a,3);null!=c&&C(b,3,c);c=O(a,4);null!=c&&C(b,4,c)};var jN=function(a){N(this,a,0,-1,null)};t(jN,M);jN.prototype.w=function(){var a=new y;kN(this,a);return A(a)};var kN=function(a,b){var c=O(a,1);null!=c&&C(b,1,c);c=O(a,2);null!=c&&C(b,2,c);c=O(a,3);null!=c&&G(b,3,c);c=O(a,4);null!=c&&C(b,4,c)};var lN=function(a){N(this,a,0,-1,null)};t(lN,M);lN.prototype.w=function(){var a=new y;mN(this,a);return A(a)};var mN=function(a,b){a=O(a,1);null!=a&&F(b,1,a)};var nN=function(a){N(this,a,0,-1,null)};t(nN,M);nN.prototype.w=function(){var a=new y;oN(this,a);return A(a)};var oN=function(a,b){var c=O(a,1);null!=c&&C(b,1,c);c=O(a,2);null!=c&&J(b,2,c);c=O(a,3);null!=c&&C(b,3,c);c=O(a,4);null!=c&&C(b,4,c);c=T(a,iC,5);null!=c&&b.b(5,c,jC)};var pN=function(a){N(this,a,0,-1,null)};t(pN,M);pN.prototype.w=function(){var a=new y;qN(this,a);return A(a)};var qN=function(a,b){a=O(a,1);null!=a&&J(b,1,a)};var rN=function(a){N(this,a,0,-1,null)};t(rN,M);rN.prototype.w=function(){var a=new y;sN(this,a);return A(a)};var sN=function(a,b){var c=O(a,1);null!=c&&J(b,1,c);c=O(a,2);null!=c&&C(b,2,c);c=O(a,3);null!=c&&C(b,3,c);c=O(a,4);null!=c&&C(b,4,c);c=T(a,pN,5);null!=c&&b.b(5,c,qN)};var tN=function(a){N(this,a,0,-1,null)};t(tN,M);tN.prototype.w=function(){var a=new y;uN(this,a);return A(a)};var uN=function(a,b){var c=O(a,1);null!=c&&C(b,1,c);c=O(a,2);null!=c&&C(b,2,c)};var vN=function(a){N(this,a,0,-1,null)};t(vN,M);vN.prototype.w=function(){var a=new y;wN(this,a);return A(a)};var wN=function(a,b){var c=O(a,1);null!=c&&hi(b,1,c);c=O(a,2);null!=c&&hi(b,2,c);c=O(a,3);null!=c&&hi(b,3,c);c=O(a,4);null!=c&&ii(b,4,c);c=O(a,5);null!=c&&li(b,5,c);c=O(a,6);null!=c&&ii(b,6,c)};var yN=function(a){N(this,a,0,-1,xN)};t(yN,M);var xN=[2];yN.prototype.w=function(){var a=new y;zN(this,a);return A(a)};var zN=function(a,b){var c=O(a,1);null!=c&&J(b,1,c);c=U(a,vN,2);0<c.length&&K(b,2,c,wN);c=O(a,3);null!=c&&hi(b,3,c);c=O(a,4);null!=c&&G(b,4,c)};var BN=function(a){N(this,a,0,-1,AN)};t(BN,M);var AN=[1];BN.prototype.w=function(){var a=new y;CN(this,a);return A(a)};var CN=function(a,b){var c=P(a,1);0<c.length&&ri(b,1,c);c=O(a,2);null!=c&&G(b,2,c);c=O(a,3);null!=c&&hi(b,3,c)};var EN=function(a){N(this,a,0,-1,DN)};t(EN,M);var DN=[2,4];EN.prototype.w=function(){var a=new y;FN(this,a);return A(a)};var FN=function(a,b){var c=O(a,1);null!=c&&ii(b,1,c);c=P(a,2);0<c.length&&pi(b,2,c);c=O(a,3);null!=c&&hi(b,3,c);c=U(a,BN,4);0<c.length&&K(b,4,c,CN);c=O(a,5);null!=c&&hi(b,5,c);c=O(a,6);null!=c&&hi(b,6,c)};EN.prototype.getId=function(){return O(this,1)};var GN=function(a){N(this,a,0,-1,null)};t(GN,M);GN.prototype.w=function(){var a=new y;HN(this,a);return A(a)};var HN=function(a,b){var c=O(a,1);null!=c&&J(b,1,c);c=O(a,2);null!=c&&F(b,2,c);c=O(a,3);null!=c&&F(b,3,c);c=O(a,4);null!=c&&F(b,4,c)};var IN=function(a){N(this,a,0,-1,null)};t(IN,M);IN.prototype.w=function(){var a=new y;JN(this,a);return A(a)};var JN=function(a,b){var c=O(a,1);null!=c&&C(b,1,c);c=O(a,2);null!=c&&G(b,2,c)};var LN=function(a){N(this,a,0,-1,KN)};t(LN,M);var KN=[3];LN.prototype.w=function(){var a=new y;MN(this,a);return A(a)};var MN=function(a,b){var c=O(a,1);null!=c&&J(b,1,c);c=O(a,2);null!=c&&C(b,2,c);c=U(a,IN,3);0<c.length&&K(b,3,c,JN)};var NN=function(a){N(this,a,0,-1,null)};t(NN,M);NN.prototype.w=function(){var a=new y;ON(this,a);return A(a)};var ON=function(a,b){var c=O(a,1);null!=c&&G(b,1,c);c=O(a,2);null!=c&&hi(b,2,c);c=O(a,3);null!=c&&hi(b,3,c)};var PN=function(a){N(this,a,0,-1,null)};t(PN,M);PN.prototype.w=function(){var a=new y;QN(this,a);return A(a)};var QN=function(a,b){var c=O(a,1);null!=c&&ii(b,1,c);c=O(a,2);null!=c&&G(b,2,c);c=O(a,3);null!=c&&C(b,3,c)};PN.prototype.getId=function(){return O(this,1)};PN.prototype.X=function(){return O(this,2)};var RN=function(a){N(this,a,0,-1,null)};t(RN,M);RN.prototype.w=function(){var a=new y;SN(this,a);return A(a)};
var SN=function(a,b){var c=O(a,1);null!=c&&C(b,1,c);c=O(a,2);null!=c&&J(b,2,c);c=T(a,TN,3);null!=c&&b.b(3,c,UN);c=T(a,hN,4);null!=c&&b.b(4,c,iN);c=T(a,nN,5);null!=c&&b.b(5,c,oN);c=T(a,lN,6);null!=c&&b.b(6,c,mN);c=T(a,GN,7);null!=c&&b.b(7,c,HN);c=T(a,rN,8);null!=c&&b.b(8,c,sN);c=T(a,PN,9);null!=c&&b.b(9,c,QN);c=T(a,yN,10);null!=c&&b.b(10,c,zN);c=T(a,NN,11);null!=c&&b.b(11,c,ON);c=T(a,EN,12);null!=c&&b.b(12,c,FN);c=T(a,tN,13);null!=c&&b.b(13,c,uN);c=T(a,pN,14);null!=c&&b.b(14,c,qN);c=T(a,jN,15);null!=
c&&b.b(15,c,kN)},TN=function(a){N(this,a,0,-1,null)};t(TN,M);TN.prototype.w=function(){var a=new y;UN(this,a);return A(a)};var UN=function(a,b){var c=O(a,1);null!=c&&J(b,1,c);c=O(a,2);null!=c&&C(b,2,c);c=O(a,3);null!=c&&G(b,3,c);c=T(a,VN,4);null!=c&&b.b(4,c,WN);c=O(a,5);null!=c&&G(b,5,c);c=T(a,LN,6);null!=c&&b.b(6,c,MN)},VN=function(a){N(this,a,0,-1,null)};t(VN,M);VN.prototype.w=function(){var a=new y;WN(this,a);return A(a)};var WN=function(a,b){a=O(a,1);null!=a&&C(b,1,a)};
RN.prototype.X=function(){return O(this,1)};var XN=function(a){N(this,a,0,-1,null)};t(XN,M);XN.prototype.w=function(){var a=new y;YN(this,a);return A(a)};var YN=function(a,b){var c=O(a,1);null!=c&&C(b,1,c);c=O(a,2);null!=c&&C(b,2,c);c=O(a,3);null!=c&&C(b,3,c);c=O(a,4);null!=c&&C(b,4,c);c=O(a,5);null!=c&&C(b,5,c);c=O(a,6);null!=c&&C(b,6,c);c=O(a,7);null!=c&&C(b,7,c);c=O(a,8);null!=c&&C(b,8,c);c=O(a,9);null!=c&&C(b,9,c);c=O(a,10);null!=c&&C(b,10,c);c=O(a,11);null!=c&&C(b,11,c)};var ZN=function(a){N(this,a,0,-1,null)};t(ZN,M);ZN.prototype.w=function(){var a=new y;$N(this,a);return A(a)};var $N=function(a,b){var c=O(a,1);null!=c&&C(b,1,c);c=O(a,2);null!=c&&C(b,2,c);c=O(a,3);null!=c&&gi(b,3,c);c=O(a,4);null!=c&&F(b,4,c)};var aO=function(a){N(this,a,0,-1,null)};t(aO,M);aO.prototype.w=function(){var a=new y;bO(this,a);return A(a)};
var bO=function(a,b){var c=T(a,ZM,1);null!=c&&b.b(1,c,$M);c=T(a,HB,2);null!=c&&b.b(2,c,IB);c=T(a,XK,3);null!=c&&b.b(3,c,YK);c=T(a,tL,13);null!=c&&b.b(13,c,uL);c=T(a,rL,10);null!=c&&b.b(10,c,sL);c=T(a,$K,4);null!=c&&b.b(4,c,aL);c=T(a,gL,5);null!=c&&b.b(5,c,hL);c=T(a,nL,6);null!=c&&b.b(6,c,oL);c=T(a,yL,7);null!=c&&b.b(7,c,zL);c=T(a,RN,8);null!=c&&b.b(8,c,SN);c=T(a,VM,9);null!=c&&b.b(9,c,WM);c=T(a,ZN,11);null!=c&&b.b(11,c,$N);c=T(a,XN,12);null!=c&&b.b(12,c,YN);c=T(a,fN,14);null!=c&&b.b(14,c,gN);c=T(a,
vM,15);null!=c&&b.b(15,c,wM);c=T(a,CM,16);null!=c&&b.b(16,c,DM)};var cO=function(a){N(this,a,0,-1,null)};t(cO,M);cO.prototype.w=function(){var a=new y;dO(this,a);return A(a)};var dO=function(a,b){var c=O(a,1);null!=c&&J(b,1,c);c=O(a,7);null!=c&&ii(b,7,c)};cO.prototype.getId=function(){return O(this,1)};var eO=function(a){N(this,a,0,-1,null)};t(eO,M);eO.prototype.w=function(){var a=new y;fO(this,a);return A(a)};var fO=function(a,b){var c=O(a,21);null!=c&&G(b,21,c);c=O(a,2);null!=c&&G(b,2,c);c=O(a,3);null!=c&&G(b,3,c);c=O(a,4);null!=c&&F(b,4,c)};var gO=function(a){N(this,a,0,-1,null)};t(gO,M);gO.prototype.w=function(){var a=new y;hO(this,a);return A(a)};var hO=function(a,b){var c=O(a,1);null!=c&&J(b,1,c);c=O(a,2);null!=c&&J(b,2,c);c=O(a,3);null!=c&&J(b,3,c);c=O(a,4);null!=c&&G(b,4,c);c=O(a,5);null!=c&&E(b,5,c);c=O(a,6);null!=c&&F(b,6,c);c=O(a,7);null!=c&&J(b,7,c);c=O(a,8);null!=c&&G(b,8,c);c=O(a,9);null!=c&&F(b,9,c)};var iO=function(a){N(this,a,0,-1,null)};t(iO,M);iO.prototype.w=function(){var a=new y;jO(this,a);return A(a)};var jO=function(a,b){var c=O(a,1);null!=c&&J(b,1,c);c=T(a,gO,2);null!=c&&b.b(2,c,hO);c=T(a,eO,5);null!=c&&b.b(5,c,fO);c=O(a,6);null!=c&&C(b,6,c);c=O(a,7);null!=c&&G(b,7,c);c=O(a,8);null!=c&&G(b,8,c);c=O(a,9);null!=c&&ii(b,9,c);c=O(a,10);null!=c&&G(b,10,c);c=O(a,11);null!=c&&ii(b,11,c)};var kO=function(a){N(this,a,0,-1,null)};t(kO,M);kO.prototype.w=function(){var a=new y;lO(this,a);return A(a)};var lO=function(a,b){var c=O(a,1);null!=c&&G(b,1,c);c=O(a,2);null!=c&&G(b,2,c)};var mO=function(a){N(this,a,0,-1,null)};t(mO,M);mO.prototype.w=function(){var a=new y;nO(this,a);return A(a)};var nO=function(a,b){a=O(a,1);null!=a&&C(b,1,a)};var oO=function(a){N(this,a,0,-1,null)};t(oO,M);oO.prototype.w=function(){var a=new y;pO(this,a);return A(a)};var pO=function(a,b){var c=O(a,1);null!=c&&E(b,1,c);c=O(a,2);null!=c&&F(b,2,c);c=O(a,5);null!=c&&J(b,5,c);c=O(a,6);null!=c&&J(b,6,c)};var qO=function(a){N(this,a,0,-1,null)};t(qO,M);qO.prototype.w=function(){var a=new y;rO(this,a);return A(a)};var rO=function(a,b){var c=O(a,1);null!=c&&J(b,1,c);c=O(a,2);null!=c&&C(b,2,c);c=O(a,3);null!=c&&C(b,3,c)};qO.prototype.getName=function(){return O(this,1)};qO.prototype.setSize=function(a){S(this,2,a)};var tO=function(a){N(this,a,0,-1,sO)};t(tO,M);var sO=[12,10,26,31];tO.prototype.w=function(){var a=new y;uO(this,a);return A(a)};
var uO=function(a,b){var c=O(a,1);null!=c&&G(b,1,c);c=T(a,XM,2);null!=c&&b.b(2,c,YM);c=O(a,20);null!=c&&J(b,20,c);c=O(a,3);null!=c&&G(b,3,c);c=P(a,12);0<c.length&&ri(b,12,c);c=O(a,4);null!=c&&G(b,4,c);c=O(a,5);null!=c&&G(b,5,c);c=O(a,6);null!=c&&C(b,6,c);c=O(a,7);null!=c&&G(b,7,c);c=O(a,8);null!=c&&J(b,8,c);c=O(a,9);null!=c&&J(b,9,c);c=U(a,oO,10);0<c.length&&K(b,10,c,pO);c=a.sa();null!=c&&b.b(13,c,pO);c=O(a,11);null!=c&&ji(b,11,c);c=O(a,14);null!=c&&J(b,14,c);c=O(a,15);null!=c&&ji(b,15,c);c=O(a,16);
null!=c&&hi(b,16,c);c=O(a,17);null!=c&&G(b,17,c);c=O(a,18);null!=c&&F(b,18,c);c=O(a,19);null!=c&&ji(b,19,c);c=O(a,21);null!=c&&G(b,21,c);c=T(a,iO,22);null!=c&&b.b(22,c,jO);c=O(a,23);null!=c&&G(b,23,c);c=T(a,cO,24);null!=c&&b.b(24,c,dO);c=O(a,25);null!=c&&J(b,25,c);c=U(a,qO,26);0<c.length&&K(b,26,c,rO);c=T(a,mO,27);null!=c&&b.b(27,c,nO);c=O(a,28);null!=c&&ii(b,28,c);c=O(a,29);null!=c&&J(b,29,c);c=O(a,30);null!=c&&J(b,30,c);c=U(a,iO,31);0<c.length&&K(b,31,c,jO);c=T(a,kO,32);null!=c&&b.b(32,c,lO)};
g=tO.prototype;g.fa=function(){return O(this,1)};g.ba=function(){return O(this,20)};g.Y=function(a){S(this,20,a)};g.setDestination=function(a){S(this,5,a)};g.sa=function(){return T(this,oO,13)};var vO=function(a){N(this,a,0,-1,null)};t(vO,M);vO.prototype.w=function(){var a=new y;var b=T(this,aO,1);null!=b&&a.b(1,b,bO);b=T(this,tO,2);null!=b&&a.b(2,b,uO);b=T(this,jM,3);null!=b&&a.b(3,b,kM);b=T(this,bM,4);null!=b&&a.b(4,b,cM);b=T(this,vD,5);null!=b&&a.b(5,b,wD);b=T(this,hM,6);null!=b&&a.b(6,b,iM);return A(a)};var Z={},wO=(Z[264]=4,Z[275]=4,Z[1579]=4,Z[2360]=4,Z[2359]=3,Z[1781]=1,Z[1169]=1,Z[1167]=7,Z[2053]=1,Z[2054]=1,Z[1168]=1,Z[2052]=2,Z[1177]=1,Z[1199]=7,Z[2245]=2,Z[1175]=1,Z[1176]=7,Z[1172]=1,Z[1173]=1,Z[1174]=1,Z[1184]=1,Z[1183]=1,Z[1182]=1,Z[1181]=1,Z[1180]=1,Z[1179]=1,Z[1178]=1,Z[1827]=1,Z[1171]=1,Z[1170]=1,Z[1387]=6,Z[649]=6,Z[640]=6,Z[584]=6,Z[2173]=4,Z[1591]=6,Z[574]=7,Z[597]=3,Z[2175]=3,Z[1495]=4,Z[588]=6,Z[575]=4,Z[587]=6,Z[572]=7,Z[598]=6,Z[1580]=3,Z[2754]=6,Z[1260]=3,Z[1584]=3,Z[1871]=1,
Z[2190]=1,Z[2187]=1,Z[2191]=1,Z[2188]=1,Z[2186]=1,Z[288]=6,Z[2962]=3,Z[2840]=6,Z[1080]=4,Z[1081]=6,Z[2055]=7,Z[2056]=7,Z[2494]=4,Z[2496]=7,Z[2679]=4,Z[2495]=4,Z[1518]=3,Z[1079]=4,Z[2686]=6,Z[1528]=4,Z[1595]=6,Z[1541]=4,Z[1520]=4,Z[1519]=6,Z[2687]=7,Z[2788]=3,Z[2789]=4,Z[2970]=3,Z[2971]=3,Z[2972]=3,Z[2796]=3,Z[2797]=3,Z[2960]=3,Z[2794]=3,Z[990]=4,Z[1227]=6,Z[2704]=4,Z[2705]=6,Z[2706]=6,Z[2707]=7,Z[2703]=4,Z[783]=4,Z[784]=4,Z[782]=4,Z[2805]=6,Z[2806]=4,Z[4708]=6,Z[4711]=6,Z[4749]=6,Z[4163]=4,Z[4578]=
6,Z[4730]=6,Z[2124]=6,Z[2123]=6,Z[2126]=6,Z[2125]=6,Z[4408]=6,Z[4410]=6,Z[3839]=6,Z[4631]=6,Z[4630]=1,Z[41]=6,Z[4411]=4,Z[4589]=1,Z[3341]=1,Z[3342]=1,Z[4664]=7,Z[4609]=7,Z[4030]=7,Z[4031]=7,Z[4610]=7,Z[4286]=3,Z[3906]=7,Z[3908]=7,Z[3682]=7,Z[3907]=7,Z[4263]=3,Z[4417]=7,Z[3948]=7,Z[3950]=7,Z[4419]=7,Z[3939]=7,Z[3941]=7,Z[3940]=7,Z[3942]=7,Z[3949]=7,Z[3945]=7,Z[3947]=7,Z[3946]=7,Z[3943]=7,Z[3944]=7,Z[4418]=7,Z[3951]=7,Z[4633]=6,Z[4632]=1,Z[4590]=1,Z[4592]=6,Z[4591]=1,Z[3854]=1,Z[3853]=1,Z[3855]=1,Z[3856]=
1,Z[3857]=1,Z[315]=6,Z[3215]=6,Z[4161]=6,Z[4588]=6,Z[3220]=4,Z[3221]=4,Z[4080]=6,Z[3053]=4,Z[3055]=6,Z[3054]=4,Z[4355]=4,Z[4384]=6,Z[4387]=6,Z[3799]=2,Z[4599]=7,Z[4335]=4,Z[4336]=4,Z[4183]=4,Z[4242]=7,Z[4579]=6,Z[4580]=3,Z[3918]=6,Z[3916]=3,Z[4212]=4,Z[3917]=3,Z[4680]=4,Z[4359]=3,Z[4358]=7,Z[4204]=6,Z[4205]=4,Z[4516]=6,Z[4682]=7,Z[4759]=4,Z[4760]=7,Z[4761]=4,Z[4292]=4,Z[4293]=7,Z[4294]=4,Z[4289]=4,Z[4290]=7,Z[4291]=4,Z[4628]=6,Z[4629]=4,Z[3746]=6,Z[3762]=4,Z[4350]=6,Z[4351]=3,Z[4348]=6,Z[4349]=3,
Z[4433]=6,Z[4434]=3,Z[4352]=6,Z[4353]=3,Z[4223]=3,Z[4224]=3,Z[4225]=3,Z[4301]=1,Z[4304]=1,Z[4305]=1,Z[4302]=1,Z[4303]=1,Z[4306]=1,Z[4265]=1,Z[4268]=1,Z[4266]=1,Z[4269]=1,Z[4267]=1,Z[3679]=7,Z[3680]=3,Z[3134]=3,Z[3135]=3,Z[3735]=3,Z[3734]=3,Z[4611]=4,Z[4360]=3,Z[3834]=4,Z[3833]=6,Z[4354]=7,Z[4460]=6,Z[4478]=6,Z[4477]=6,Z[4476]=6,Z[4481]=6,Z[4480]=6,Z[4461]=6,Z[4462]=6,Z[4463]=7,Z[4464]=6,Z[4475]=6,Z[4465]=6,Z[4479]=7,Z[4466]=6,Z[4471]=6,Z[4208]=6,Z[4526]=6,Z[4209]=4,Z[4201]=6,Z[4139]=6,Z[4167]=6,Z[3958]=
3,Z[4005]=3,Z[3956]=6,Z[4211]=7,Z[4210]=4,Z[4236]=6,Z[4179]=7,Z[4788]=6,Z[4435]=6,Z[4202]=4,Z[3911]=6,Z[4216]=6,Z[4235]=3,Z[4126]=6,Z[4127]=3,Z[4213]=6,Z[4214]=6,Z[4215]=6,Z[4164]=6,Z[4558]=6,Z[4555]=6,Z[4604]=6,Z[4165]=3,Z[4559]=6,Z[4556]=6,Z[4605]=6,Z[4557]=6,Z[4554]=6,Z[4603]=6,Z[3763]=4,Z[3651]=7,Z[4513]=6,Z[4681]=4,Z[3748]=6,Z[4118]=6,Z[4119]=3,Z[4116]=6,Z[4117]=3,Z[4431]=6,Z[4432]=3,Z[4120]=6,Z[4121]=3,Z[4381]=6,Z[4379]=4,Z[4734]=6,Z[4737]=6,Z[3511]=6,Z[3510]=6,Z[4128]=6,Z[3061]=7,Z[3062]=4,
Z[3359]=6,Z[4787]=6,Z[3526]=7,Z[4663]=7,Z[3915]=7,Z[3914]=7,Z[3525]=7,Z[4207]=2,Z[4206]=7,Z[3952]=7,Z[3439]=7,Z[3798]=4,Z[3438]=4,Z[3832]=7,Z[3852]=4,Z[3848]=7,Z[3825]=6,Z[3782]=4,Z[3672]=6,Z[3677]=7,Z[3829]=6,Z[4333]=6,Z[4009]=6,Z[4010]=4,Z[3480]=6,Z[4309]=6,Z[4308]=6,Z[4307]=6,Z[3463]=5,Z[3466]=5,Z[3462]=5,Z[3464]=5,Z[3465]=5,Z[3460]=5,Z[3459]=5,Z[3461]=5,Z[3775]=6,Z[3458]=7,Z[4088]=6,Z[4087]=6,Z[4086]=6,Z[3632]=3,Z[3631]=3,Z[4314]=6,Z[3733]=6,Z[3611]=3,Z[3612]=6,Z[3610]=3,Z[3613]=7,Z[3619]=7,Z[3549]=
3,Z[3550]=6,Z[3808]=6,Z[3809]=6,Z[3803]=7,Z[3804]=7,Z[3802]=1,Z[3800]=1,Z[3812]=1,Z[3960]=6,Z[3801]=1,Z[3810]=7,Z[3811]=6,Z[3961]=1,Z[3927]=6,Z[4102]=1,Z[3806]=7,Z[3807]=7,Z[3805]=1,Z[4137]=6,Z[3725]=3,Z[4103]=1,Z[4101]=1,Z[4849]=6,Z[4094]=6,Z[4096]=6,Z[4100]=6,Z[4098]=6,Z[4568]=6,Z[4399]=6,Z[4400]=6,Z[3473]=6,Z[3470]=6,Z[3496]=6,Z[4011]=6,Z[4012]=4,Z[4688]=6,Z[3688]=6,Z[4547]=8,Z[4013]=7,Z[4619]=3,Z[4553]=3,Z[4582]=6,Z[4618]=6,Z[4552]=6,Z[326]=6,Z[3476]=4,Z[4022]=4,Z[3475]=4,Z[3625]=4,Z[4021]=4,
Z[4020]=4,Z[3474]=4,Z[3626]=4,Z[3553]=4,Z[3693]=4,Z[3692]=4,Z[3628]=4,Z[3629]=4,Z[3930]=4,Z[3690]=4,Z[3932]=4,Z[3931]=4,Z[3691]=4,Z[4499]=3,Z[4501]=7,Z[4500]=4,Z[4487]=3,Z[4502]=4,Z[4509]=6,Z[4485]=3,Z[4484]=3,Z[4489]=3,Z[4491]=3,Z[4490]=3,Z[4488]=3,Z[4492]=1,Z[4495]=7,Z[4496]=7,Z[4494]=1,Z[4493]=3,Z[4498]=7,Z[4497]=3,Z[4731]=3,Z[4486]=3,Z[3929]=8,Z[4019]=4,Z[3928]=4,Z[4537]=6,Z[4026]=4,Z[4538]=6,Z[4542]=6,Z[4025]=4,Z[4023]=4,Z[4545]=8,Z[4549]=4,Z[4551]=4,Z[4550]=4,Z[4027]=4,Z[4029]=4,Z[4028]=4,Z[4548]=
8,Z[4540]=8,Z[4378]=6,Z[4376]=4,Z[4344]=6,Z[4343]=4,Z[4342]=6,Z[4241]=6,Z[4018]=4,Z[4046]=6,Z[4240]=6,Z[4043]=3,Z[4186]=1,Z[4184]=6,Z[4185]=1,Z[4577]=1,Z[4536]=4,Z[4541]=4,Z[4544]=8,Z[4543]=4,Z[4375]=8,Z[4373]=4,Z[4238]=6,Z[4039]=4,Z[4331]=8,Z[4345]=7,Z[4341]=8,Z[4340]=4,Z[4339]=6,Z[4330]=8,Z[4329]=4,Z[4328]=6,Z[4239]=8,Z[4045]=4,Z[4044]=6,Z[4237]=6,Z[4035]=3,Z[4539]=8,Z[4546]=8,Z[4024]=4,Z[3736]=7,Z[3777]=6,Z[3778]=4,Z[4899]=4,Z[4824]=6,Z[4936]=6,Z[4947]=6,Z[4946]=6,Z[4945]=6,Z[4950]=6,Z[4949]=6,
Z[4937]=6,Z[4938]=6,Z[4939]=6,Z[4940]=6,Z[4944]=6,Z[4941]=6,Z[4948]=7,Z[4942]=6,Z[4943]=6,Z[4924]=3,Z[4803]=6,Z[4810]=7,Z[4809]=7,Z[4806]=7,Z[4805]=7,Z[4808]=7,Z[4807]=7,Z[4847]=4,Z[4848]=4,Z[4802]=8,Z[4798]=6,Z[4796]=1,Z[4797]=1,Z[4801]=6,Z[4799]=1,Z[4800]=1,Z[4952]=6,Z[4815]=1,Z[4813]=1,Z[4821]=1,Z[4819]=1,Z[4820]=1,Z[4814]=1,Z[4818]=1,Z[4816]=1,Z[4817]=1,Z[4901]=6,Z[4869]=6,Z[4868]=6,Z);var xO=function(a,b){this.namespace_=a;this.b=b;this.constructor.wj||(this.constructor.wj={});this.constructor.wj[this.toString()]=this};xO.prototype.ya=function(){return this.toString()};xO.prototype.toString=function(){this.f||(this.f=this.namespace_.b+":"+this.b);return this.f};xO.prototype.X=function(){return this.b};var yO=function(a,b){xO.call(this,a,b)};t(yO,xO);var zO=function(a){var b={},c={},d=[],e=[],f=function(a){if(!c[a]){var e=a instanceof rC?a.b:[];c[a]=x(e);w(e,function(c){b[c]=b[c]||[];b[c].push(a)});e.length||d.push(a);w(e,f)}};for(w(a,f);d.length;){var h=d.shift();e.push(h);b[h]&&w(b[h],function(a){pc(c[a],h);c[a].length||d.push(a)})}var k={},n=[];w(e,function(a){a instanceof rC&&(a=a.f,null==a||k[a]||(k[a]=!0,n.push(a)))});return{services:e,vo:n}};var AO=new rC("pVbxBc"),BO=new rC("n73qwf");var EO=function(a){Hs.call(this);this.id=CO++;this.K=[];this.f={};this.A={};this.m={};this.b={};this.g={};this.F={};this.o=a?a.o:new Y;this.M=!a;this.j=null;a?(this.j=a,this.m=a.m,this.b=a.b,this.A=a.A,this.g=a.g):q();a=DO(this);this!=a&&(a.u?a.u.push(this):a.u=[this])};t(EO,Hs);var CO=1,FO=.05>Math.random(),DO=function(a){for(;a.j;)a=a.j;return a},GO=function(a,b){for(;a;){if(a==b)return!0;a=a.j}return!1};
EO.prototype.get=function(a){var b=HO(this,a);null==b&&this.P&&(b={BOGUS:"Service "+a+" was not registered"});if(null==b)throw new IO(a);return b};
var JO=function(a,b){return!(!a.f[b]&&!a.m[b])},HO=function(a,b){for(var c=a;c;c=c.j){if(c.s)throw Error("AppContext is disposed.");if(c.f[b])return c.f[b][0];if(c.F[b])break}if(c=a.m[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},LO=function(a,b,c){return KO(a,[b],c)[b]},KO=function(a,b,c){var d=!c;c={};for(var e=[],f=[],h={},k={},n=HO(a,AO),u=0;u<b.length;u++){var z=b[u],B=HO(a,z);if(B){var D=new aA;
c[z]=D;B.qh&&(jA(D,B.qh()),hA(D,ob(function(a){return a},B)));D.callback(B)}else if(a.g[z])D=a.g[z].s(),hA(D,p(a.Hh,a,z)),c[z]=D;else{if(z instanceof rC)var R=zO([z]).vo;else(B=a.A[z])&&(R=[B]);!d||R&&R.length?(R&&(n&&z instanceof rC&&n.sx()&&(FO&&(D=n.tx(MO),k[z]=D),n.nx(z)),e.push.apply(e,R),h[z]=Yb(R)),f.push(z)):(D=new aA,c[z]=D,D.b(new IO(z)))}}if(d){if(e.length){a.B&&a.B.push(new NO);for(u=0;u<f.length;u++)a.o.I(new OO("b",f[u]));b=PO(QO(a),e,void 0);for(u=0;u<f.length;u++)z=f[u],B=h[z],e=b[B],
D=e instanceof aA?e.s():pA(e),c[z]=D,k[z]&&hA(D,function(){n.cx(k[z])}),RO(a,D,z,B)}}else for(u=0;u<f.length;u++)z=f[u],B=e[u],D=new aA(p(a.L,a,z)),c[z]=D,(h=a.b[z])||(a.b[z]=h=[]),B&&SO(a,D,z,B),hA(D,p(a.Ih,a,z,B)),h.push({xa:a,d:D});return c},SO=function(a,b,c,d){hA(b,function(){var a=QO(this);this.B&&this.B.push(new NO);return a.load(d)},a);iA(b,p(a.bk,a,c,d))},RO=function(a,b,c,d){hA(b,function(){this.o.I(new OO("c",c))},a);iA(b,p(a.bk,a,c,d));hA(b,p(a.Ih,a,c,d))};g=EO.prototype;
g.Ih=function(a,b){var c=HO(this,a);if(null==c){if(this.g[a]){var d=this.g[a].s();hA(d,p(this.Ih,this,a,b));return d}throw new TO(a,b,"Module loaded but service or factory not registered with app contexts.");}return c.qh?(d=new aA,jA(d,c.qh()),d.callback(c),hA(d,p(this.Hh,this,a)),d):this.Hh(a)};g.Hh=function(a){this.g[a]&&delete this.g[a];return this.get(a)};g.bk=function(a,b,c){return c instanceof bA?c:new UO(a,b,c)};
g.registerService=function(a,b,c){if(this.s)c||Js(b);else{this.K.push(a);this.f[a]=[b,!c];c=VO(this,this,a);for(var d=0;d<c.length;d++)c[d].callback(null);delete this.A[a];return b}};g.unregisterService=function(a){if(!this.f[a])throw Error('Service for "'+a+'" is not registered');var b=this.f[a];delete this.f[a];b[1]&&Js(b[0])};
var wC=function(a,b,c){a.m[b]=c;if(c=a.b[b]){if(1<c.length){for(var d=0;d<c.length;++d)c[d].index=d;c.sort(WO)}for(;c.length;)c.shift().d.callback(null);delete a.b[b]}},WO=function(a,b){if(a.xa!=b.xa){if(GO(a.xa,b.xa))return 1;if(GO(b.xa,a.xa))return-1}return a.index<b.index?-1:a.index==b.index?0:1},VO=function(a,b,c){var d=[],e=a.b[c];e&&($b(e,function(a){GO(a.xa,b)&&(d.push(a.d),pc(e,a))}),0==e.length&&delete a.b[c]);return d},XO=function(a,b){a.b&&dd(a.b,function(a,d,e){$b(a,function(c){c.xa==
b&&pc(a,c)});0==a.length&&delete e[d]})};EO.prototype.L=function(a,b){var c=this.b&&this.b[a];if(c){for(var d=0;d<c.length;++d)if(c[d].xa==this&&c[d].d==b){oc(c,d);break}0==c.length&&delete this.b[a]}};
EO.prototype.ja=function(){if(DO(this)==this){var a=this.u;if(a)for(;a.length;)a[0].Ra()}else{a=DO(this).u;for(var b=0;b<a.length;b++)if(a[b]==this){a.splice(b,1);break}}for(var c in this.f)a=this.f[c],a[1]&&a[0].Ra&&a[0].Ra();this.f=null;this.M&&this.o.Ra();XO(this,this);this.b=null;Js(this.D);this.F=this.D=null;EO.ra.ja.call(this)};var QO=function(a){return a.C?a.C:a.j?QO(a.j):null},ZO=function(a){var b=YO();a.C=b},IO=function(a){Ub.call(this);this.id=a;this.message='Service for "'+a+'" is not registered'};
t(IO,Ub);var UO=function(a,b,c){Ub.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};t(UO,Ub);var TO=function(a,b,c){Ub.call(this);this.message='Configuration error when loading the module "'+b+'" for the service "'+a+'": '+c};t(TO,Ub);var NO=function(){Sr()},OO=function(a){X.call(this,a)};t(OO,X);var MO=new yO(new function(){this.b="fva"},1);var $O=function(){},aP=function(a,b){a.ra||t(a,$O);b.od=a;do b=b.ra&&b.ra.constructor;while(b&&!b.od);if(b&&b.od!==a.ra.constructor)throw Error("delegate base must derive from superclass delegate base");},bP=function(a,b,c){if(!a.ra){for(var d in a.prototype)if(a.prototype.hasOwnProperty(d))throw Error("delegate registered after defining methods. you should extend your delegate base explicitly immediately after defining your delegate class");t(a,b)}c=c||0;a.Ij=c;if(b.Yb){b=b.Yb;d=0;for(var e=b.length-
1;d<=e;){var f=d+e>>1;c>b[f].Ij?e=f-1:d=f+1}d<b.length&&b[d].Ij==c&&++d;b.splice(d,0,a)}else b.Yb=[a]},eP=function(a){var b=a.od,c=function(a){c.ra.constructor.call(this,a);var b=this.Yb.length;this.b=[];for(var d=0;d<b;++d)this.Yb[d].Yw||(this.b[d]=new this.Yb[d](a))};t(c,b);for(var d=[];a;){if(b=a.od){b.Yb&&uc(d,b.Yb);var e=b.prototype,f;for(f in e)if(e.hasOwnProperty(f)&&hb(e[f])&&e[f]!==b){var h=!!e[f].Sw,k=cP(f,e,d,h);(h=dP(f,e,k,h))&&(c.prototype[f]=h)}}a=a.ra&&a.ra.constructor}c.prototype.Yb=
d;return c},cP=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},dP=function(a,b,c,d){var e;c.length?d?e=function(b){var d=this.b[c[0]];return d?d[a].apply(this.b[c[0]],arguments):this.Yb[c[0]].prototype[a].apply(this,arguments)}:b[a].Dn?e=function(b){a:{var d=Array.prototype.slice.call(arguments,0);for(var e=0;e<c.length;++e){var f=this.b[c[e]];if(f=f?f[a].apply(f,d):this.Yb[c[e]].prototype[a].apply(this,d)){d=f;break a}}d=!1}return d}:b[a].Ej?
e=function(b){a:{var d=Array.prototype.slice.call(arguments,0);for(var e=0;e<c.length;++e){var f=this.b[c[e]];f=f?f[a].apply(f,d):this.Yb[c[e]].prototype[a].apply(this,d);if(null!=f){d=f;break a}}d=void 0}return d}:b[a].zk?e=function(b){for(var d=Array.prototype.slice.call(arguments,0),e=0;e<c.length;++e){var f=this.b[c[e]];f?f[a].apply(f,d):this.Yb[c[e]].prototype[a].apply(this,d)}}:e=function(b){for(var d=Array.prototype.slice.call(arguments,0),e=[],f=0;f<c.length;++f){var u=this.b[c[f]];e.push(u?
u[a].apply(u,d):this.Yb[c[f]].prototype[a].apply(this,d))}return e}:d||b[a].Dn||b[a].Ej||b[a].zk?e=null:e=fP;return e},fP=function(){return[]};$O.prototype.Bh=function(a){if(this.b)for(var b=0;b<this.b.length;++b)if(this.b[b]instanceof a)return this.b[b];return null};var gP=function(){var a=function(){};a.Ej=!0;return a},hP=function(){var a=function(){};a.zk=!0;return a};var iP=new rC("bBNFlf","bm"),jP=new rC("FolmWb","dlh"),kP=new rC("EitxU","hl"),lP=new rC("T3bcCc","hl"),mP=new rC("QFLvic","ma"),nP=new rC("TjR1Nb","ma",[BO]),oP=new rC("X8Krae","hl"),pP=new rC("YZ7tye","ma"),qP=new rC("T2hLvb","he"),rP=new rC("jMMyYe","prs"),sP=new rC("uZXhye","lu");var tP={gu:0,fs:1,es:2,Fu:3,Pv:4,Ov:5,Nv:6,SUCCESS:7};var uP=function(a){this.g=a.g;this.u=a.u;this.m=a.m;this.j=a.j;this.s=a.s;this.B=a.B;this.o=a.o;this.A=a.A;this.F=a.F;this.f=a.f;this.h=a.h;this.b=a.b};
uP.prototype.toString=function(){return"AudioConfig(deviceId="+this.b+", "+("updateDeviceId="+this.h+", ")+("useAecDelayCorrection="+this.g+", ")+("useInternalAgc="+this.u+", ")+("useDucking="+this.m+", ")+("useAec="+this.j+", ")+("useAgc="+this.s+", ")+("useNoiseSuppresssion="+this.B+", ")+("useHighpassFilter="+this.o+", ")+("useMirroring="+this.A+", ")+("useTransisentSuppression="+this.F+", ")+("disableWhitelistAec="+this.f+")")};
uP.prototype.equals=function(a){return this===a?!0:null===a?!1:this.g===a.g&&this.u===a.u&&this.m===a.m&&this.j===a.j&&this.s===a.s&&this.B===a.B&&this.o===a.o&&this.A===a.A&&this.F===a.F&&this.f===a.f&&this.h===a.h&&this.b===a.b};uP.prototype.getDeviceId=function(){return this.b};var vP=function(){this.u=this.g=!0;this.m=!1;this.h=this.f=this.F=this.A=this.o=this.B=this.s=this.j=!0;this.b=null};vP.prototype.V=function(){return new uP(this)};(new vP).V();var wP=function(){Y.call(this)};t(wP,Y);wP.prototype.ve=function(a,b,c){try{return wP.ra.ve.call(this,a,b,c)}catch(d){return!1}};var xP=function(a){this.b=a.b;this.Ig=a.f};xP.prototype.toString=function(){return"RIDs(send="+this.Ig+", rids="+x(this.b)+")"};var yP=function(){this.b=[];this.f=!0};yP.prototype.V=function(){return new xP(this)};var zP=function(a,b){a.b=x(b);return a};var AP=function(a){this.b=a.b;this.f=x(a.f)};AP.prototype.toString=function(){return"SsrcGroup(semantics="+this.b+", ssrcs="+this.f+")"};AP.prototype.nb=function(){return x(this.f)};var BP=function(){this.b=null;this.f=[]};BP.prototype.V=function(){return new AP(this)};var CP=function(a){var b=new BP;b.b=a;return b},DP=function(a,b){a.f=x(b);return a};var EP=function(a,b,c,d){this.b=a;this.f=b;this.width=c;this.height=d};EP.prototype.clone=function(){return new EP(this.b,this.f,this.width,this.height)};EP.prototype.toString=function(){return"("+this.b+", "+this.f+" - "+this.width+"w x "+this.height+"h)"};var FP=function(a,b){return a==b?!0:a&&b?a.b==b.b&&a.width==b.width&&a.f==b.f&&a.height==b.height:!1};EP.prototype.contains=function(a){return this.b<=a.b&&this.b+this.width>=a.b+a.width&&this.f<=a.f&&this.f+this.height>=a.f+a.height};
EP.prototype.ceil=function(){this.b=Math.ceil(this.b);this.f=Math.ceil(this.f);this.width=Math.ceil(this.width);this.height=Math.ceil(this.height);return this};EP.prototype.floor=function(){this.b=Math.floor(this.b);this.f=Math.floor(this.f);this.width=Math.floor(this.width);this.height=Math.floor(this.height);return this};EP.prototype.round=function(){this.b=Math.round(this.b);this.f=Math.round(this.f);this.width=Math.round(this.width);this.height=Math.round(this.height);return this};var HP=function(a,b,c,d,e,f,h){d=void 0===d?"un":d;e=void 0===e?"li":e;f=void 0===f?null:f;h=void 0===h?null:h;Y.call(this);this.g=a;this.Oa=b;this.j=c;this.Kb=d;this.b=e;this.f="sc"!==d;this.Pc=null;GP(this,h);this.Ue=f};l(HP,wP);g=HP.prototype;g.toString=function(){return"Source(id="+this.Oa+" type="+this.j+" content="+this.Kb+" state="+this.b+" participantId="+this.g+")"};g.S=function(){return this.g};g.Da=function(a){this.g=a};g.getId=function(){return this.Oa};g.X=function(){return this.j};
g.setContent=function(a){this.Kb!=a&&(this.Kb=a,this.I("e"))};g.getState=function(){return this.b};g.lb=function(a){this.b!=a&&(this.b=a,this.I("g"))};g.ye=function(){return this.f};var GP=function(a,b){var c=null!=a.Pc&&0!=a.Pc.length,d=null!=b&&0!=b.length;d?b=x(b).sort(function(a,b){return a.b-b.b||a.f-b.f||a.width-b.width||a.height-b.height}):b=null;if(c=d!=c||d&&!Cc(a.Pc,b,FP))a.Pc=b;return c};HP.prototype.I=function(a){return wP.prototype.I.call(this,a)};var IP=function(a){this.j=a.j;this.m=a.m;this.o=a.u;this.A=a.B;this.s=a.s;this.g=a.f;this.yd=a.h;this.f=a.g;this.u=x(a.b);this.b=a.o;this.h=x(a.A)};g=IP.prototype;g.toString=function(){return"Stream(participantId="+this.m+", mediaType="+this.j+", sourceId="+this.o+", streamId="+this.A+", muted="+this.s+", croppable="+this.g+", mediaStreamId="+this.yd+", mediaStreamTrackId="+this.f+", ssrcs="+this.u+", rids="+this.b+", ssrcGroups="+this.h+")"};g.da=function(){return this.j};g.S=function(){return this.m};
g.sa=function(){return this.o};g.yb=function(){return this.A};g.Ec=function(){return this.s};g.ye=function(){return this.g};g.nb=function(){return x(this.u)};g.matches=function(a){return this.S()==a.S()&&this.da()==a.da()&&this.sa()==a.sa()&&this.yb()==a.yb()};var JP=function(a){this.j=(a=void 0===a?null:a)?a.j:null;this.m=a?a.m:"";this.u=a?a.o:null;this.B=a?a.A:null;this.s=a?a.s:!1;this.f=a?a.g:!0;this.h=a?a.yd:null;this.g=a?a.f:null;this.b=a?x(a.u):[];this.o=a?a.b:null;this.A=a?x(a.h):[]};
JP.prototype.V=function(){return new IP(this)};var KP=function(a,b){a.j=b;return a},LP=function(a,b){a.m=b;return a},MP=function(a,b){a.u=b;return a},NP=function(a,b){a.B=b;return a},OP=function(a,b){a.s=b;return a},PP=function(a,b){a.f=b;return a},QP=function(a,b){a.h=b;return a},RP=function(a,b){a.g=b;return a},SP=function(a,b){a.b=x(b);return a},TP=function(a,b){a.b.push(b);return a};JP.prototype.nb=function(){return x(this.b)};var UP=function(a,b){a.o=b;return a},VP=function(a,b){a.A=x(b);return a};var WP=function(a){Y.call(this);this.Ua=a;a.L=this;this.h(a);this.b="nr"};l(WP,wP);var YP=function(a){return{config:a.va(),muted:a.Hc(),state:XP(a)}};WP.prototype.fa=function(){return this.Ua};WP.prototype.Hc=function(){return"mu"==this.fa().getState()};WP.prototype.va=function(){return null};
var XP=function(a){switch(a.b){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""};
WP.prototype.u=function(a){if(a!==this.b){var b=this.Hc();this.b=a;this.I("m");b!==this.Hc()&&this.I("l")}};WP.prototype.Yk=function(){};WP.prototype.Ii=function(){};var ZP=function(a){this.id=a.Oa;this.displayName=a.b;this.groupId=a.h;this.b=a.f;this.f=a.j};ZP.prototype.toJson=function(){return{id:this.id,displayName:this.displayName,groupId:this.groupId,fullName:this.b,isPreferred:this.f}};ZP.prototype.toString=function(){return"Device(id="+this.id+", displayName="+this.displayName+", groupId="+this.groupId+", fullName="+this.b+", isPreferred="+this.f+")"};var $P=function(){this.Oa=null;this.f=this.h=this.b="";this.j=!1};$P.prototype.V=function(){return new ZP(this)};
$P.prototype.g=function(a){this.h=a;return this};var aQ=new $P;aQ.Oa="__absent_device__";aQ.b="__absent_device__";var bQ=aQ.g("__absent_device__");bQ.f="__absent_device__";var cQ=bQ.V();var dQ=function(a){this.h=a.h;this.f=a.f;this.b=a.b};dQ.prototype.toString=function(){return"VideoConfig(deviceId="+this.f+", "+("updateDeviceId="+this.h+", ")+("croppable="+this.b+")")};dQ.prototype.getDeviceId=function(){return this.f};dQ.prototype.ye=function(){return this.b};var eQ=function(){this.h=!0;this.f=null;this.b=!0};eQ.prototype.V=function(){return new dQ(this)};(new eQ).V();var fQ=function(a,b,c,d){d=void 0===d?"a":d;Y.call(this);this.o=a;this.u=b;this.f=c;this.g=d};l(fQ,wP);g=fQ.prototype;g.S=function(){return this.o};g.sa=function(){return this.u};g.getState=function(){return this.g};g.lb=function(a){a!=this.g&&(this.g=a,this.I("s"))};g.getInfo=function(){return this.f};var gQ=function(a,b,c){var d=a.fa();fQ.call(this,d.S(),d.getId(),b,c);this.b=a};l(gQ,fQ);var hQ={Os:"INITIAL",Jv:"STARTING",Iv:"STARTED",Us:"INPROGRESS",PAUSED:"PAUSED",STOPPED:"STOPPED",FINISHED:"FINISHED"},iQ=function(a,b,c){X.call(this,"u");this.state=a;this.b=b;this.yc=c};t(iQ,X);var jQ=function(a,b,c,d,e,f,h,k,n,u,z){this.vh=a;this.ii=b;this.si=c;this.ri=d;this.Ph=e;this.Pa=f;this.vf=h;this.Dh=k;this.ei=n;this.Rf=Qa(u)?u:null;this.Sf=Qa(z)?z:null};g=jQ.prototype;g.Qd=function(){return this.vh};g.Td=function(){return this.ii};g.X=function(){return this.si};g.Uc=function(){return this.ri};g.Be=function(){return this.Ph};g.Sa=function(){return this.Pa};g.ze=function(){return this.Dh};g.Af=function(){return this.ei};var lQ=function(a){this.g=a.j;this.bd=a.m;this.j=a.s;this.h=a.f;this.f=a.g;this.b=a.h;this.ad=Object.freeze(kQ(a.b))};lQ.prototype.toString=function(){return"Codec(name="+this.j+", mediaType="+this.g+", payloadType="+this.bd+", bitrate="+this.h+", clockrate="+this.f+", channels="+this.b+", params="+Fu(this.ad)+")"};lQ.prototype.da=function(){return this.g};lQ.prototype.getName=function(){return this.j};
var mQ=function(a,b){a=a.getName();a=String(a).toLowerCase();b=String(b).toLowerCase();return 0==(a<b?-1:a==b?0:1)};lQ.prototype.clone=function(){return(new nQ(this)).V()};var nQ=function(a){this.j=(a=void 0===a?null:a)&&a.g;this.m=a&&a.bd;this.s=a&&a.j;this.f=a&&a.h;this.g=a&&a.f;this.h=a&&a.b;this.b=kQ(a?a.ad:{})};nQ.prototype.V=function(){return new lQ(this)};
var oQ=function(a,b){a.j=b;return a},pQ=function(a,b){a.m=b;return a},qQ=function(a,b){a.s=b;return a},rQ=function(a,b){a.g=b;return a},sQ=function(a,b){a.h=b;return a},tQ=function(a,b,c){a.b[b]=c;return a};function kQ(a){return Object.assign(Object.create(null),a)};var uQ=function(a){this.f=a.h;this.g=a.b;this.b=a.f;this.h=a.g};g=uQ.prototype;g.toString=function(){return"Crypto(suite="+this.f+", keyParams=<redacted>, sessionParams_="+(null!=this.b?"<redacted>":null)+", tag="+this.h+")"};g.sd=function(){return this.f};g.Ce=function(){return this.g};g.Cf=function(){return this.b};g.Ud=function(){return this.h};var vQ=function(){this.g=this.f=this.b=this.h=null};vQ.prototype.V=function(){return new uQ(this)};var wQ=function(a,b,c,d){this.f=a;this.g=b;this.b=c;this.h=d};wQ.prototype.toString=function(){return"DataChannelDescriptor(label="+this.h+" id="+this.f+", SSRC="+this.b+", format="+this.g+")"};wQ.prototype.getChannelId=function(){return this.f};wQ.prototype.rd=function(){return this.h};wQ.prototype.equals=function(a){return null==a?!1:this.f==a.f&&this.h==a.h&&this.b==a.b};var xQ=function(a){this.b=a.b;this.f=a.f;this.h=a.h};xQ.prototype.toString=function(){return"BandwidthConstraints("+("minBandwidthKbps="+this.f+", ")+("maxBandwidthKbps="+this.b+", ")+("startBandwidthKbps="+this.h)};var yQ=function(){this.h=this.f=this.b=-1};yQ.prototype.V=function(){return new xQ(this)};var zQ=function(a){this.f=a.f;this.Oa=a.Oa;this.b=a.b};zQ.prototype.toString=function(){return"RtpHeaderExtension(uri="+this.f+", id="+this.Oa+", mediaType="+this.b+")"};zQ.prototype.Fc=function(){return this.f};zQ.prototype.getId=function(){return this.Oa};zQ.prototype.da=function(){return this.b};var AQ=function(){this.b=this.Oa=this.f=null};AQ.prototype.V=function(){return new zQ(this)};var BQ=function(a){this.Pa=a.Pa;this.h=a.f;this.f=a.h;this.b=a.b};BQ.prototype.Sa=function(){return this.Pa};BQ.prototype.getName=function(){return this.h};var CQ=function(){this.b=this.h=this.f=this.Pa=null};CQ.prototype.V=function(){return new BQ(this)};var DQ=function(a,b){a.Pa=b;return a},EQ=function(a,b){a.f=b;return a},FQ=function(a,b){a.b=b;return a};var GQ=function(a){this.s=a.j;this.m=a.h;this.j=a.g;this.b=a.b&&a.b.clone();this.h=a.f;this.f=a.s;this.u=a.m;this.g=a.u;this.o=a.o.slice()};g=GQ.prototype;g.toString=function(){return"StreamRequest(participantId: "+this.s+", sourceId: "+this.m+", mediaType: "+this.j+", resolution: "+(this.b&&this.b.width+"x"+this.b.height)+", frameRate: "+this.h+", adaptationReason: "+this.g+", send: "+this.f+", ssrcs: "+this.o+")"};g.S=function(){return this.s};g.da=function(){return this.j};g.sa=function(){return this.m};
g.Lb=function(){return this.b&&this.b.clone()};g.nb=function(){return this.o};g.matches=function(a){return this.S()==a.S()&&HQ(this,a)};var HQ=function(a,b){return a.da()==b.da()&&a.sa()==b.sa()},IQ=function(a){this.j=(a=void 0===a?null:a)?a.s:"";this.h=a?a.m:"";this.g=a&&a.j;this.b=a&&a.b&&a.b.clone();this.f=a&&a.h;this.s=null===a?!0:a.f;this.m=a&&a.u;this.u=a&&a.g||0;this.o=a&&a.o||[]};IQ.prototype.V=function(){return new GQ(this)};
var JQ=function(a,b){a.g=b;return a},KQ=function(a,b){a.o=b;return a},LQ=function(a,b){a.m=b;return a},MQ=function(a,b){a.s=b;return a},NQ=function(a,b){a.b=new Oe(b.width,b.height);return a},OQ=function(a,b){a.f=b;return a},PQ=function(a){var b=new Oe(0,0),c=Math.min;null!==a.b&&(b=new Oe(c(a.b.width,b.width),c(a.b.height,b.height)));return NQ(a,b)},QQ=function(a){a.f=Math.min(a.f||Infinity,0);return a};var RQ=function(a,b,c,d){this.B=a;this.u=b;this.f=c;this.h=void 0===d?null:d;this.b=null;this.o=[];this.m="";this.g=[];this.F=this.A=!0;this.j=[];this.s=null},VQ=function(a){if(a.b){var b=a.b;b={port:b.Sa(),name:b.getName(),messagesize:b.f,numstreams:b.b}}else b={};return{type:a.X(),mediaId:SQ(a),bandwidthConstraints:String(a.h),codecs:TQ(a),streams:UQ(a),sctpSettings:b,defaultRequests:x(a.g).map(String),send:a.A,receive:a.F}},WQ=function(a){var b=new RQ(a.B,a.u,a.f,a.h);b.b=a.b;b.o=a.o;b.m=a.m;b.g=
a.g;b.A=a.A;b.F=a.F;b.j=a.j;b.s=a.s;return b};RQ.prototype.X=function(){return this.B};
var TQ=function(a){return x(a.u)},XQ=function(a,b){a=WQ(a);a.u=b;return a},YQ=function(a,b){a=WQ(a);a.b=b;return a},ZQ=function(a,b){a=WQ(a);a.f=b;return a},UQ=function(a){return x(a.o)},$Q=function(a,b){a=WQ(a);a.o=b;return a},SQ=function(a){if(a.m)return a.m;switch(a.B){case "a":return"audio";case "v":return"video";case "d":return"data";default:return Xb("No default media ID for unknown type: "+a.B),""}},aR=function(a,b){a=WQ(a);a.m=b;return a},bR=function(a,b){a=WQ(a);a.g=b;return a},cR=function(a,
b){null==b&&(b=-1);a=WQ(a);var c=new yQ;c.b=b;a.h=c.V();return a},dR=function(a){return a.h?a.h.b:null},eR=function(a,b){a=WQ(a);a.h=b;return a},fR=function(a,b){a=WQ(a);a.A=b;return a},gR=function(a,b){a=WQ(a);a.F=b;return a},hR=function(a,b){a=WQ(a);a.j=b;return a},iR=function(a){return 0<a.j.length&&0<a.o.length},jR=function(a,b){a=WQ(a);a.s=b;return a},kR=function(a){return iR(a)?a.j.map(function(a){return SP(QP(NP(MP(KP(new JP,"a"),a.toString()),a.toString()),a.toString()),[a]).V()}):UQ(a)},
mR=function(a,b,c){var d=new Set(c.map(lR));c=UQ(a);rc(c,function(a){return d.has(a.yb())});return $Q(a,c.concat(b))},oR=function(a,b){var c=void 0===c?uk:c;return nR(a,function(a){return mQ(a,b)},c)},nR=function(a,b,c){c=void 0===c?uk:c;b=fc(a.u,b);if(-1==b)return a;var d=TQ(a);c=c(d[b]);oc(d,b);lc(d,0,0,c);return XQ(a,d)},pR=function(a,b){if(null===b)return a;var c=WQ(a),d=dR(b);d&&(c=cR(c,d));d=TQ(b);0==d.length||(c=XQ(c,d));(d=b.b)&&(c=YQ(c,d));d=x(b.f);0==d.length||(c=ZQ(c,d));d=x(b.g);0==d.length||
(c=bR(c,d));a=UQ(a);b=UQ(b);d=lR;a=Fc(a,d);Object.assign(a,Fc(b,d));b=Object.values(a);return $Q(c,b)},lR=function(a){return a.yb()};var qR=function(a,b,c,d,e,f){this.m=a;this.h=b;this.f=c;this.b=d||null;this.j=null;this.g=e||[];this.s=f||"full"};qR.prototype.mc=function(){return this.m};var rR=function(a,b){a=qd(a);a.j=b;return a};var sR=function(a,b,c,d,e,f,h){this.oa=a||null;this.ga=b||null;this.Ka=c||null;this.g=Qa(d)?d:null;this.f=new Fk;Ek(this.f,Fc(e||[],function(a){return a.rd()},this));this.b=f||null;this.h=h||[]},uR=function(a,b){var c=a.ga;if(!c)return a;b=ac(TQ(c),b);var d=bc(b,function(a){return a.bd.toString()});b=ac(b,function(a){return!mQ(a,"rtx")||ic(d,"apt"in a.ad?a.ad.apt:null)});return tR(a,XQ(c,b))},vR=function(a){return{sessionId:a.g,audio:a.oa&&VQ(a.oa),video:a.ga&&VQ(a.ga),data:a.Ka&&VQ(a.Ka),pushChannels:a.f.ea()&&
a.f.ea().toString(),cryptos:x(a.h)}},wR=function(a){var b=qd(a);b.f=a.f.clone();return b},xR=function(a,b){a=wR(a);a.oa=b;return a},tR=function(a,b){a=wR(a);a.ga=b;return a},yR=function(a,b){a=wR(a);a.Ka=b;return a},zR=function(a,b){a=wR(a);a.b=b;return a},AR=function(a,b){a=wR(a);a.h=b;return a},CR=function(a,b,c){a=wR(a);a.oa=BR(a.oa,b,c);a.ga=BR(a.ga,b,c);a.Ka=BR(a.Ka,b,c);return a},BR=function(a,b,c){if(null==a)return null;b=ac(b,function(b){return b.da()==a.X()});c=ac(c,function(b){return b.da()==
a.X()});return mR(a,b,c)};var DR=function(){},ER=function(){return{autoGainControl:!0,echoCancellation:!0,highPassFilter:!0,inbandFec:!0,dtx:!0,noiseSuppression:!0,preferredSendCodec:null,sendComfortNoise:!0,sendOpus:!0,sendStereo:!1,stereoSwapping:!1,transientSuppression:!0}};var FR=function(a){N(this,a,0,-1,null)};t(FR,M);FR.prototype.w=function(){var a=new y;GR(this,a);return A(a)};var GR=function(a,b){var c=O(a,1);null!=c&&C(b,1,c);c=O(a,2);null!=c&&C(b,2,c);c=O(a,3);null!=c&&C(b,3,c);c=O(a,4);null!=c&&C(b,4,c);c=O(a,5);null!=c&&C(b,5,c);c=O(a,6);null!=c&&C(b,6,c);c=O(a,7);null!=c&&C(b,7,c);c=O(a,8);null!=c&&C(b,8,c);c=O(a,9);null!=c&&C(b,9,c);c=O(a,11);null!=c&&F(b,11,c);c=O(a,12);null!=c&&C(b,12,c);c=O(a,13);null!=c&&C(b,13,c)};var IR=function(a){N(this,a,0,-1,HR)};t(IR,M);var HR=[3];IR.prototype.w=function(){var a=new y;JR(this,a);return A(a)};var JR=function(a,b){var c=O(a,1);null!=c&&J(b,1,c);c=O(a,2);null!=c&&J(b,2,c);c=U(a,KR,3);0<c.length&&K(b,3,c,LR)},KR=function(a){N(this,a,0,-1,null)};t(KR,M);KR.prototype.w=function(){var a=new y;LR(this,a);return A(a)};
var LR=function(a,b){var c=O(a,1);null!=c&&J(b,1,c);c=O(a,2);null!=c&&J(b,2,c);c=O(a,3);null!=c&&C(b,3,c);c=O(a,4);null!=c&&C(b,4,c);c=O(a,5);null!=c&&C(b,5,c);c=O(a,6);null!=c&&F(b,6,c);c=O(a,7);null!=c&&F(b,7,c)};KR.prototype.getName=function(){return O(this,2)};var NR=function(a){N(this,a,"hc:cc",-1,MR)};t(NR,M);var MR=[14,15];
NR.prototype.w=function(){var a=new y;var b=O(this,1);null!=b&&G(a,1,b);b=O(this,2);null!=b&&J(a,2,b);b=O(this,3);null!=b&&J(a,3,b);b=O(this,4);null!=b&&J(a,4,b);b=O(this,5);null!=b&&G(a,5,b);b=O(this,6);null!=b&&J(a,6,b);b=O(this,7);null!=b&&J(a,7,b);b=O(this,8);null!=b&&F(a,8,b);b=O(this,9);null!=b&&li(a,9,b);b=O(this,10);null!=b&&J(a,10,b);b=O(this,11);null!=b&&J(a,11,b);b=O(this,12);null!=b&&J(a,12,b);b=T(this,FR,13);null!=b&&a.b(13,b,GR);b=P(this,14);0<b.length&&si(a,14,b);b=P(this,15);0<b.length&&
si(a,15,b);b=O(this,16);null!=b&&F(a,16,b);b=T(this,IR,17);null!=b&&a.b(17,b,JR);b=O(this,18);null!=b&&F(a,18,b);b=T(this,OR,19);null!=b&&a.b(19,b,PR);b=O(this,20);null!=b&&C(a,20,b);b=O(this,21);null!=b&&C(a,21,b);b=O(this,22);null!=b&&F(a,22,b);b=O(this,23);null!=b&&J(a,23,b);b=O(this,24);null!=b&&J(a,24,b);b=O(this,25);null!=b&&J(a,25,b);b=O(this,26);null!=b&&C(a,26,b);return A(a)};var OR=function(a){N(this,a,0,-1,null)};t(OR,M);OR.prototype.w=function(){var a=new y;PR(this,a);return A(a)};
var PR=function(a,b){var c=O(a,1);null!=c&&C(b,1,c);c=O(a,2);null!=c&&C(b,2,c);c=O(a,3);null!=c&&C(b,3,c)};Ti("hc:cc",NR);var QR=function(a,b){S(a,4,b)};NR.prototype.o=function(a){S(this,6,a)};var RR=function(a){Y.call(this);this.b=a;this.j=Q(this.b,3,0);this.g=0;this.f=!1};t(RR,wP);var TR=function(a,b){b=SB(b);if(null!=b){for(var c=0;c<b.length;++c)if(0==hC(b[c])&&2==O(b[c],1)&&(0==O(b[c],57)||0==O(b[c],58))){a.j=Q(a.b,3,0);return}for(c=0;c<b.length;++c)switch(hC(b[c])){case 2:var d=a,e=b[c];0<d.j?--d.j:O(e,40)<Q(d.b,1,6E4)?d.f||(++d.g,d.g>=Q(d.b,2,1)&&(d.I(new SR(0)),d.f=!0)):(d.f&&(d.I(new SR(1)),d.f=!1),d.g=0)}}},SR=function(a){X.call(this,"v");this.id=a};t(SR,X);var UR={an:0,Hl:1,TIMEOUT:2,ERROR:3,ot:4,dr:5,qj:6,os:7,zr:8,Fl:9,Gr:10,dv:11,Sv:12,Ju:13,Cq:14,ls:15,Qs:16,gw:17,Hq:18,Ns:19,vv:20,Qt:21,Ar:22,gs:23,ju:24,Av:25,yv:26,fm:27,Vs:28,dw:29,cv:30,Yt:31,Xq:32,Qq:33,ew:34,Eu:35,ow:36,iw:37,Js:38,Is:39,Ks:40,lw:41,Mu:42,bs:43,hs:44,jw:45,Nq:46,bu:47,Au:48,Zt:49,Bu:50,vu:51,xu:52,wu:53,zu:54,yu:55,Cv:56,ns:57,qw:58,rt:59,et:60,Oq:61,Gq:62,pr:63,jt:64,Bs:65,zs:66,Xs:67,Cs:68,Pq:69,rs:70,Vq:71,au:72,Lr:73,wv:74,Yq:102,Uu:104,Bq:108,Bv:109,Rs:110,Ht:111,it:112,
It:113,Kt:114,Jt:115};var VR=function(){Y.call(this);this.fb=this.D=null};l(VR,Y);var WR=function(a){return{hangoutId:a.fb,isInProgress:"INPROGRESS"==a.getState(),remoteJid:a.D,sessionId:a.f,state:a.getState()}};g=VR.prototype;g.bc=function(){throw Error("getStream not supported on LocalSession");};g.cd=function(){};g.start=function(){};g.be=function(){};g.pe=function(){};g.vk=function(){};g.al=function(){return!1};g.uj=function(){};g.Y=function(a){this.fb=a};var XR=function(a,b){X.call(this,"x");this.b=a;this.h=b};
l(XR,X);var YR=function(a){X.call(this,"y");this.b=a};l(YR,X);var ZR=function(a){X.call(this,"A");this.b=a};l(ZR,X);var $R=function(a,b,c){X.call(this,"z");this.h=a;this.b=b;this.yc=c};l($R,X);var aS=function(a,b,c){X.call(this,"w");this.Ja=a;this.label=b;this.payload=c};l(aS,X);var bS=function(a){X.call(this,"E");this.b=a};l(bS,X);var cS=function(){Y.call(this)};t(cS,Y);var dS=function(a){return{id:a.f,isInProgress:"INPROGRESS"==a.getState(),state:a.getState()}};cS.prototype.pause=Ya;cS.prototype.resume=Ya;cS.prototype.fc=Ya;cS.prototype.uc=Ya;var eS=function(a,b,c){X.call(this,"H");this.h=x(a);this.b=x(b);this.removed=x(c)};t(eS,X);var fS=function(a){X.call(this,"I");this.b=x(a)};t(fS,X);var gS=function(){this.f=this.g=this.h=this.j=this.s=this.b=null},hS=function(a,b){a.b=b;return a};gS.prototype.lc=function(){return this.h};gS.prototype.vb=function(){return this.f};var iS=function(a,b){a.f=b;return a},jS=function(a,b){a.b&&S(b,14,a.b);a.j&&S(b,16,a.j);a.h&&S(b,22,a.h);a.g&&S(b,23,a.g);a.f&&S(b,21,a.f)};
gS.prototype.toString=function(){return"{ ParticipantLogId: "+(this.b||"")+", MucJid: "+(this.s||"")+", SyntheticId: "+(this.j||"")+", MeetingCode: "+(this.h||"")+", MeetingSpaceId: "+(this.g||"")+", LocalSessionId: "+(this.f||"")+" }"};var kS=function(){this.A=this.B=this.j=!0;this.K=!1;this.f=null;this.s=[];this.g=this.h=!1;this.F=null;this.u=!0;this.b=!1;this.C=[{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.Z=!0;this.T=new DR;this.ka=!1;this.D=!0;this.L=!1;this.o=null;this.m=void 0;this.M=1E4;this.P=!1},lS=function(a){return{useAudio:a.j,useVideo:a.B,useData:!0,useVideoRtx:a.A,dumpRtpHeaders:a.K,allowEarlyMedia:!0,
earlyMediaHangoutId:a.f,defaultRequests:a.s,useStandardIce:!0,debugLogUploadAllowed:a.h,debugLogUploadForced:a.g,clientResource:a.F,useCallPerf:!1,useSimulcast:a.u,useP2P:a.b,useTURN:!1,startMuted:a.Z,useDtls:a.ka,workaroundCrbug810848:!1,useConferenceMode:a.D,useDscp:!1,useSsbwe:!0,useVirtualAudioSSRCs:!1,allowH264:!1,allowVP9:!1,useAdaptiveLayering_:a.L,useWebrtcCpuAdaptation:!0,useSpeakerSwitchSmoothing:!1,useBackendLoudestSpeaker:!1,useReversedOfferAnswerFlow:!1,bandwidthConstraints:a.o,jmiIntervalMs:a.m,
jmiUploadIntervalMs:a.M,shouldHistogramData:a.P}},mS=function(a){var b=new kS,c;for(c in a)b[c]=a[c];return b},nS=function(){var a=mS(new kS);a.B=!0;a=mS(a);a.j=!1;return a},oS=function(a,b){if(a.h&&a.g)return a;a=mS(a);a.h=b;return a},pS=function(a){a=mS(a);a.g=!0;return a},qS=function(a,b){a=mS(a);a.f=b;return a},tS=function(a){var b=[rS,sS];a=mS(a);a.s=b;return a},uS=function(a){a=mS(a);a.u=!1;return a},vS=function(a,b){a=mS(a);a.b=b;return a},wS=function(a,b){a=mS(a);a.C=b;return a},xS=function(a){a=
mS(a);a.Z=!1;return a},yS=function(a,b){a=mS(a);a.ka=b;return a},zS=function(a,b){a=mS(a);a.D=b;return a},AS=function(a,b){a=mS(a);a.o=b;return a};var BS=function(a,b,c){fQ.call(this,b.S(),b.sa(),b,c);this.b=!1};l(BS,fQ);var CS=function(){Y.call(this);this.Id="INITIAL";this.Hd=void 0};t(CS,wP);g=CS.prototype;g.ti=function(){return{state:this.getState(),endCause:this.Hd,id:DS(this),isInProgress:"INPROGRESS"==this.getState(),localId:this.vb(),localDescription:vR(this.b.b.g),localSession:WR(this.b),options:lS(this.f),remoteAudioCodecs:bc(x(this.va),function(a){return a.toString()}),remoteSession:dS(this.g),useEarlyMedia:null!==this.f.f&&0<this.f.s.length}};g.getState=function(){return this.Id};g.Uk=Ya;g.Tk=rk(0);
g.pk=rk(!1);var ES=function(){X.call(this,"Q")};t(ES,X);var FS=function(a){X.call(this,"S");this.sessionId=a};t(FS,X);var GS=function(a){X.call(this,"L");this.id=a};t(GS,X);var HS=function(a){X.call(this,"M");this.sessionDescription=a};t(HS,X);var IS=function(a,b,c){X.call(this,"X");this.vj=a;this.Zk=b;this.sessionId=c||null};t(IS,X);var JS=function(){X.call(this,"T")};t(JS,X);var KS=function(a,b){X.call(this,"P");this.b=a;this.sessionId=b};t(KS,X);
var LS=function(a){X.call(this,"O");this.message=a};t(LS,X);var MS=function(a){Y.call(this);this.f=a||!1;this.b=[]};t(MS,wP);MS.prototype.add=function(a,b){if(null!=NS(this,a.X(),a.getId(),a.S()))return!1;this.b.push(a);if(!Qa(b)||b)a.L=this;this.I(new OS("Y",a));return!0};MS.prototype.remove=function(a){return pc(this.b,a)?(a.L==this&&(a.L=null),this.I(new OS("Z",a)),!0):!1};
var NS=function(a,b,c,d){return gc(a.b,function(a){var e=a.X()==b,h=null==c||a.getId()==c,k=null==d||this.f&&""===d||a.S()==d;!k&&this.f&&""==a.S()&&(Xb("Should never allow Source matching against empty participantId"),k=!0);return e&&h&&k},a)},OS=function(a,b){X.call(this,a);this.source=b};t(OS,X);var PS=function(){Y.call(this)};t(PS,wP);var QS=function(a,b){X.call(this,a);this.b=b};t(QS,X);QS.prototype.S=function(){return this.b};var RS=function(){Y.call(this);this.b=new rB(this);this.h(this.b)};l(RS,wP);var SS=function(a){this.xa=a.xa;this.f=a;this.xa&&LO(this.xa,lP).then()};t(SS,$O);SS.prototype.Xa=gP();SS.prototype.Ng=gP();SS.prototype.Xh=gP();gP();gP();gP();SS.prototype.g=gP();SS.prototype.tk=gP();gP();gP();gP();gP();gP();gP();SS.prototype.Mg=gP();var VS=function(a,b,c){gQ.call(this,a,c,"a");var d=this;this.m=b;this.j=new rB;this.h(this.j);this.j.listen(this.b,"n",function(){var a=TS(d.b,d.m);null!=a&&d.I(new US(d.m,a))})};l(VS,gQ);var US=function(a,b){X.call(this,"za");this.sessionId=a;this.stream=b};l(US,X);var WS=function(a){var b=Pa.navigator||null;return vh&&null!=b.webkitGetUserMedia?Yt(new It(function(c,d){b.webkitGetUserMedia(a,c,d)}),function(a){var b=Error(a.message);b.name=a.name;throw b;}):rh&&b.mediaDevices&&b.mediaDevices.getUserMedia?Mt(b.mediaDevices.getUserMedia(a)):Nt("Missing getUserMedia API.")};var XS=function(a){this.deviceId=a.s;this.h=a.j;this.groupId=a.h};XS.prototype.equals=function(a){return a===this?!0:a&&this.deviceId===a.deviceId?rh?!0:"default"===this.deviceId||"communications"===this.deviceId?this.h===a.h&&this.groupId===a.groupId:!0:!1};XS.prototype.toString=function(){return"MediaSettings(deviceId="+this.deviceId+",deviceLabel="+this.h+",groupId="+this.groupId+")"};
XS.prototype.g=function(){var a={};vh?(a.optional=[],a.optional.push({sourceId:this.deviceId})):rh&&(a.deviceId={exact:this.deviceId});return a};var YS=function(a){this.s=a?a.deviceId:null;this.j=a?a.h:null;this.h=a?a.groupId:null};YS.prototype.V=function(){return new XS(this)};YS.prototype.g=function(a){this.h=a;return this};var ZS=function(a,b){this.f=a;this.h=b};ZS.prototype.toString=function(){for(var a=this.f,b=this.h,c="",d=0;d<a.length;d++)c+=a[d],d<b.length&&(c+=b[d]);return c};ba.Object.defineProperties(ZS.prototype,{b:{configurable:!0,enumerable:!0,get:function(){return this.f}},values:{configurable:!0,enumerable:!0,get:function(){return this.h}}});
var $S=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 h=c[f];h instanceof ZS?0<h.b.length&&(d[d.length-1]+=h.b[0],d.push.apply(d,xa(h.b.slice(1))),e.push.apply(e,xa(h.values))):(e.push(h),d.push(""))}return new ZS(d,e)};var aT=function(){};aT.prototype.b=function(a){var b=ls(a.name),c=bT(a.level),d=a.message.toString();a.context&&(d="["+a.context.toString()+"] "+d);a.json&&(d+=" json="+JSON.stringify(a.json));ms(b,c,d,a.error)};function bT(a){switch(a){case 0:return ds;case 1:return bs;case 2:return as;case 3:return $r;default:return ds}};var cT=function(){this.f=bB.Ha()};cT.prototype.b=function(a){var b=a.name;var c=a.message.toString();a.context&&(c="["+a.context.toString()+"] "+c);a.json&&(c+=" json="+JSON.stringify(a.json));a.error&&(c+=" error="+a.error);var d=this.f;switch(a.level){case 0:cB(d,a.sessionId,b+": "+c,5);break;case 1:cB(d,a.sessionId,b+": "+c,8);break;case 2:cB(d,a.sessionId,"Warning("+b+"): "+c,9);break;case 3:cB(d,a.sessionId,"Error("+b+"): "+c,10)}};var dT=function(){this.b=new Set},eT=function(a,b){a=ma(a.b);for(var c=a.next();!c.done;c=a.next())c.value.b(b)},fT;var gT=["An error occurred generating context for log entry"];gT.raw=["An error occurred generating context for log entry"];var hT=["CONTEXT FAILED"];hT.raw=["CONTEXT FAILED"];var iT=function(a,b){void 0===b&&(fT||(fT=new dT,fT.b.add(new aT),fT.b.add(new cT)),b=fT);this.o=a;this.s=b;this.A=this.B=this.u=this.h=this.j=this.g=null},jT=function(a){a.h=null;a.u=null;a.B=null;a.A=null},kT=function(a){var b=new iT("realtime.media.session.SessionImpl");b.h=a;return b};
iT.prototype.m=function(a,b){for(var c=[],d=1;d<arguments.length;++d)c[d-1]=arguments[d];lT(this,0,a,c)};iT.prototype.info=function(a,b){for(var c=[],d=1;d<arguments.length;++d)c[d-1]=arguments[d];lT(this,1,a,c)};iT.prototype.b=function(a,b){for(var c=[],d=1;d<arguments.length;++d)c[d-1]=arguments[d];lT(this,2,a,c)};iT.prototype.f=function(a,b){for(var c=[],d=1;d<arguments.length;++d)c[d-1]=arguments[d];lT(this,3,a,c)};
var lT=function(a,b,c,d){var e=a.o,f=a.h||a.g,h=a.u||a.j,k=a.B,n=a.A;c=new ZS(c,d);jT(a);d=Date.now();var u=null;if(f)try{f(function(a,b){for(var c=[],d=1;d<arguments.length;++d)c[d-1]=arguments[d];u=new ZS(a,c)})}catch(z){u=$S(hT),mT(a,d,h,$S(gT),z)}eT(a.s,{name:e,level:b,timestamp:d,sessionId:h,message:c,context:u,error:k,json:n})},mT=function(a,b,c,d,e){eT(a.s,{name:a.o,level:2,timestamp:b,sessionId:c,message:d,context:null,json:null,error:e})},nT=function(a){var b=new iT(a.o,a.s);b.g=a.h||a.g;
b.j=a.u||a.j;jT(a);return b};var oT=["",""];oT.raw=["",""];var pT=["",""];pT.raw=["",""];var qT=["",""];qT.raw=["",""];var rT=["",""];rT.raw=["",""];var sT=function(a){this.b=new iT(a)};sT.prototype.error=function(a){this.b.f(rT,a)};var tT=function(a,b){a.b.b(qT,b)};sT.prototype.info=function(a){this.b.info(pT,a)};var vT=function(a,b,c){WP.call(this,b);this.P=new sT("realtime.media.api.webrtc.Capture");this.Qa=LO(a,lP).then();this.j=c;this.T=this.f=this.C=this.M=null;this.bb=uT;this.m=new Set;this.K=new Map;this.o=this.A=!1;this.Ba=null;this.ma=this.Ca=!1;this.Ga=0;this.la=this.ta=this.B=null};l(vT,WP);vT.prototype.ja=function(){this.stop();wT(this,null);this.m.clear();this.Ba=null;WP.prototype.ja.call(this)};
vT.prototype.toString=function(){return"Capture(source="+this.fa()+" muted="+this.A+" "+("paused="+this.o+" deviceState="+this.b+" ")+("stream="+(this.f?this.f.id:null)+")")};vT.prototype.D=function(a){a&&(xT(this,"Stopping stream with id="+a.id),[].concat(xa(a.getAudioTracks()),xa(a.getVideoTracks())).forEach(function(a){mt(a);a.stop()}))};var yT=function(a){xT(a,"Starting media.");a.u("re");a.g().then(rk(a))};
vT.prototype.u=function(a){var b=this.Hc();WP.prototype.u.call(this,a);"nd"===a&&wT(this,null);this.Hc()!==b&&(zT(this),this.Hc()?wT(this,null):this.g())};vT.prototype.getDeviceId=function(){return this.j.deviceId};vT.prototype.va=function(){return this.Ba};var TS=function(a,b){return a.f?a.K.get(b)||null:null};vT.prototype.bc=function(){return this.f};var AT=function(a,b,c){return new VS(a,b,c)};g=vT.prototype;
g.Yk=function(a){xT(this,"Registering sessionId="+a+".");0===this.m.size&&this.resume();this.m.add(a);if(this.f){var b=this.f.clone();xT(this,"Creating clone with id="+b.id+" of stream with "+("id="+this.f.id+" while registering sessionId="+a+"."));this.K.set(a,b)}};g.Ii=function(a){xT(this,"Unregistering sessionId="+a+".");this.m.delete(a);this.D(TS(this,a));this.K.delete(a);0>=this.m.size&&this.pause()};
g.stop=function(){if("st"===this.b)return!1;xT(this,"Stopping.");wT(this,null);this.m.clear();this.u("st");return!0};g.Hf=function(){if("st"==this.b)return!1;BT(this,!0);return!0};g.Hc=function(){switch(this.b){case "nd":case "ad":case "fa":return!0;default:return this.A}};var BT=function(a,b){xT(a,"Setting mute state to mute="+b+".");a.A=b;a.A?wT(a,null):a.g();zT(a);a.I("l")};vT.prototype.pause=function(){this.o||"st"==this.b||(xT(this,"Pausing."),this.o=!0,wT(this,null))};
vT.prototype.resume=function(){this.o&&"st"!=this.b&&(xT(this,"Resuming."),this.o=!1,this.g())};var zT=function(a){var b=a.fa().getState(),c=a.Hc()?"mu":"li";b!==c&&(xT(a,"Update source state from "+b+" to "+c),a.fa().lb(c))};
vT.prototype.g=function(a){var b=this;a=void 0===a?!0:a;if(this.C)return Yt(this.C,Ya).then(function(){return b.g(a)});"fa"!=this.b&&"ad"!=this.b||this.u("re");if("re"!=this.b)return xT(this,"Skipping update usermedia while device in "+("state="+this.b+".")),Mt();if(this.o)return xT(this,"Skipping update usermedia because capture is paused."),Mt();if(this.A)return xT(this,"Skipping update usermedia because capture is muted."),Mt();if(this.f&&this.M&&this.M.equals(this.j))return xT(this,"Skipping update usermedia because settings were unchanged."),
Mt();var c=CT(this);if(!c)return this.P.error("["+this+"] Attempting to update usermedia with null constraints."),Nt("Attempting to update usermedia with null constraints.");if(nd(c))return xT(this,"Skipping update usermedia with empty constraints."),Mt();var d=this.j;this.M=d;var e=this.Ga++;xT(this,"Attempting update usermedia with id="+e+" settings="+this.j+("constraints="+Pa.JSON.stringify(c)+"."));var f=this.fa().X();"a"==f?DT(this,4799):"v"==f&&DT(this,4796);this.C=WS(c).then(function(a){b.la=
null;"a"==f?DT(b,4800):"v"==f&&DT(b,4797);ET(b);b.o||!b.j.equals(d)?(xT(b,"During update usermedia with id="+e+" capture settings "+("changed to "+b.j+".")),b.D(a)):b.A?(xT(b,"During update usermedia with id="+e+" capture was muted."),b.D(a)):(xT(b,"Update usermedia success with id="+e+"."),FT(b,a))},function(c){GT(b,"Error during update usermedia call with id="+e+": "+c+".");c&&(b.la=c,HT(b,f,c.name));c&&c.name&&("NotAllowedError"===c.name||"PermissionDeniedError"===c.name||"PermissionDismissedError"===
c.name)?(ET(b),b.u("ad")):c&&c.name&&("NotReadableError"===c.name||"TrackStartError"===c.name)&&a?null!==b.B?GT(b,"Ignore getUserMedia failure with id="+e+" as we are still in the failure delay period."):(GT(b,"Delaying transitioning capture to failure after "+("unexpected getUserMedia failure with id="+e+".")),b.M=null,b.B=setTimeout(function(){b.B=null;GT(b,"getUserMedia still has not succeeded after delay. About to make one final explicit attempt.");DT(b,4578);b.g(!1)},2E3)):b.u("fa");throw c;
});Xt(this.C,function(){b.C=null});return this.C};
var ET=function(a){null!==a.B&&(clearTimeout(a.B),a.B=null,xT(a,"Cancelling pending failure timer since getUserMedia eventually succeeded after delay."))},CT=function(a){if(null==a.getDeviceId()||a.getDeviceId()===cQ.id)return xT(a,"Return empty user media constraints with null deviceId."),{};var b={audio:!1,video:!1},c=a.fa().X();switch(c){case "a":b.audio=a.j.g();break;case "v":b.video=a.j.g();break;default:return a.P.error("["+a+"] "+("Invalid mediaType="+c+".")),null}return b},FT=function(a,b){xT(a,
"getUserMedia success for stream="+b.id+".");q();0==b.getAudioTracks().length&&0==b.getVideoTracks().length?GT(a,"No media tracks for stream="+b.id+"."):(wT(a,null),[].concat(xa(b.getAudioTracks()),xa(b.getVideoTracks())).forEach(function(b){ct(b,"ended",a.Va,void 0,a);ct(b,["mute","unmute"],a.wa,void 0,a)}),IT(a),wT(a,b),a.wa(),JT(a,b));Mt()};vT.prototype.Va=function(){this.I("i")};var IT=function(a){!1!==a.Ca&&(a.Ca=!1,a.I("j"))};
vT.prototype.wa=function(){var a=KT(this);a!==this.ma&&(this.ma=a,this.I("k"))};
var KT=function(a){if(!a.f)return!1;a=[].concat(xa(a.f.getAudioTracks()),xa(a.f.getVideoTracks()));return 0!=a.length&&a.every(function(a){return a.muted})},xT=function(a,b){a.P.info("["+a+"] "+b)},GT=function(a,b){tT(a.P,"["+a+"] "+b)},wT=function(a,b){b!=a.T&&(LT(a,a.bb.transform(b)),a.T&&a.D(a.T),a.T=b)},LT=function(a,b){b!==a.f&&(a.K.forEach(a.D,a),a.K.clear(),a.D(a.f),b&&a.m.forEach(function(c){a.K.set(c,b.clone())}),xT(a,"Stream changed with new stream="+(b&&b.id)+"."),a.f=b,a.I("n"))},DT=function(a,
b){a.Qa.then(function(a){MT(a,b)})},JT=function(a,b){b=b.getAudioTracks().map(function(a){return a.getSettings().echoCancellation}).filter(function(a){return"boolean"===typeof a});0!==b.length&&(b=b.some(function(a){return!a}),b!==a.ta&&(a.ta=b,DT(a,b?4705:4706),xT(a,"echoCancellation="+!b)))},HT=function(a,b,c){"a"==b?(DT(a,4801),NT.has(c)?DT(a,NT.get(c).audio):DT(a,4471)):"v"==b&&(DT(a,4798),NT.has(c)?DT(a,NT.get(c).video):DT(a,4943))},NT=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}]]),uT={transform:function(a){return a&&a.clone()}};var PT=function(a,b){var c=this;this.f=b;this.g=LO(a,lP).then();this.h=null;this.b=function(a){var b=iB.get(a.status);if(b){var d=a.value;d="string"==typeof d?d:JSON.stringify(d);OT(c,b,d)}b=0==a.status;null!=c.h&&(!c.h&&b?OT(c,4783):c.h&&!b&&OT(c,4784));c.h=b;return a}},QT=function(a,b){return a.f.ai(b).then(a.b,a.b)},RT=function(a,b,c){return a.f.bi(b,c).then(a.b,a.b)},ST=function(a,b){return a.f.Og(b).then(a.b,a.b)},TT=function(a){return a.f.ci().then(a.b,a.b)},OT=function(a,b,c){a.g.then(function(a){MT(a,
b,void 0,void 0,void 0,void 0,void 0,c,void 0)})},UT=function(a){this.f=LO(a,lP).then()},VT=function(a,b){a.f.then(function(a){MT(a,b,void 0,void 0,void 0,void 0,void 0,void 0,void 0)})};var WT=function(){this.l=ls("realtime.diagnostics.DiagnosticDataService");this.g=0;this.f=new Map;this.b=new Map},XT=function(a,b,c,d){d=void 0===d?!0:d;a.b.has(b)&&os(a.l,"Already registered a diagnostics data callback for key '"+b+"'.");a.b.set(b,c);return function(){a.b.delete(b);d&&a.b.set(b,rk(c()))}},YT=function(a,b,c){b=XT(a,b,c,!1);c=a.g++;a.f.set(c,b);return c};WT.prototype.h=function(a){var b=this.f.get(a);this.f.delete(a)&&b()};WT.prototype.reset=function(){this.g=0;this.f.clear();this.b.clear()};
ab(WT);var ZT=function(){if(Md){var a=/Windows NT ([0-9.]+)/;return(a=a.exec(Zc))?a[1]:"0"}return Ld?(a=/10[_.][0-9_.]+/,(a=a.exec(Zc))?a[0].replace(/_/g,"."):"10"):Od?(a=/Android\s+([^\);]+)(\)|;)/,(a=a.exec(Zc))?a[1]:""):Pd||Qd||Rd?(a=/(?:iPhone|CPU)\s+OS\s+(\S+)/,(a=a.exec(Zc))?a[1].replace(/_/g,"."):""):""}();var $T=function(){this.f=-1};var aU=function(){this.f=64;this.b=[];this.s=[];this.m=[];this.g=[];this.g[0]=128;for(var a=1;a<this.f;++a)this.g[a]=0;this.j=this.h=0;this.reset()};t(aU,$T);aU.prototype.reset=function(){this.b[0]=1732584193;this.b[1]=4023233417;this.b[2]=2562383102;this.b[3]=271733878;this.b[4]=3285377520;this.j=this.h=0};
var bU=function(a,b,c){c||(c=0);var d=a.m;if(Ra(b))for(var e=0;16>e;e++)d[e]=b.charCodeAt(c)<<24|b.charCodeAt(c+1)<<16|b.charCodeAt(c+2)<<8|b.charCodeAt(c+3),c+=4;else for(e=0;16>e;e++)d[e]=b[c]<<24|b[c+1]<<16|b[c+2]<<8|b[c+3],c+=4;for(e=16;80>e;e++){var f=d[e-3]^d[e-8]^d[e-14]^d[e-16];d[e]=(f<<1|f>>>31)&4294967295}b=a.b[0];c=a.b[1];var h=a.b[2],k=a.b[3],n=a.b[4];for(e=0;80>e;e++){if(40>e)if(20>e){f=k^c&(h^k);var u=1518500249}else f=c^h^k,u=1859775393;else 60>e?(f=c&h|k&(c|h),u=2400959708):(f=c^h^
k,u=3395469782);f=(b<<5|b>>>27)+f+n+u+d[e]&4294967295;n=k;k=h;h=(c<<30|c>>>2)&4294967295;c=b;b=f}a.b[0]=a.b[0]+b&4294967295;a.b[1]=a.b[1]+c&4294967295;a.b[2]=a.b[2]+h&4294967295;a.b[3]=a.b[3]+k&4294967295;a.b[4]=a.b[4]+n&4294967295};
aU.prototype.update=function(a,b){if(null!=a){Qa(b)||(b=a.length);for(var c=b-this.f,d=0,e=this.s,f=this.h;d<b;){if(0==f)for(;d<=c;)bU(this,a,d),d+=this.f;if(Ra(a))for(;d<b;){if(e[f]=a.charCodeAt(d),++f,++d,f==this.f){bU(this,e);f=0;break}}else for(;d<b;)if(e[f]=a[d],++f,++d,f==this.f){bU(this,e);f=0;break}}this.h=f;this.j+=b}};
aU.prototype.digest=function(){var a=[],b=8*this.j;56>this.h?this.update(this.g,56-this.h):this.update(this.g,this.f-(this.h-56));for(var c=this.f-1;56<=c;c--)this.s[c]=b&255,b/=256;bU(this,this.s);for(c=b=0;5>c;c++)for(var d=24;0<=d;d-=8)a[b]=this.b[c]>>d&255,++b;return a};var cU=function(){var a=window.crypto||window.msCrypto;a&&a.getRandomValues&&(this.yl=!0,this.uf=Infinity);if(16>this.uf){var b=this.Hg;a=this.uf;this.Hg="";this.uf=16;a=Math.max(0,a);if(!this.yl){b=this.gi+b;var c=new aU;c.update(b);b=String.fromCharCode.apply(String,c.digest());this.Rg+=a;this.Rg>=this.uf?(c.reset(),c.update("SEED_SALT:"+b+this.Hg),this.Hg=String.fromCharCode.apply(String,c.digest()),this.gi="",this.Rg=0):this.gi=b}}};g=cU.prototype;g.yl=!1;g.Hg="";g.gi="";g.Rg=0;g.uf=-1;var fU=function(a){this.j=LO(a,qP);this.g=LO(a,lP);this.f=new VA;this.b={};a=p(this.h,this);var b=null;if(this.f.isAvailable()){var c=this.f.get("scp"),d=null!=c;try{b=JSON.parse(c)}catch(e){d=!1}!d&&a&&(b=a())}else dU.error("Error in retrieving cpu info from local storage.");if(a=b)this.b=a;eU(this)},hU=function(){var a="Other";Dd?a="Opera":Ed?a="Internet Explorer":rh?a="Firefox":vh?a=gU()?"Chromium-based":"Chrome":wh&&(a="Safari");return a},gU=function(){if(null!=iU)return iU;var a=navigator.plugins,
b;for(b in a)if("Chromium PDF Viewer"==a[b].name)return iU=!0;return iU=!1},jU=function(a){return a.j.then(function(a){return a.f.Yh().then(a.b,a.b)})},kU=function(a){return a.b.archName&&(Gc(a.b.archName,"aarch")||Gc(a.b.archName,"arm"))?!0:-1!=Jd.indexOf("armv7l")},mU=function(a){if(null==a)return tT(dU,"Cannot get cpuFlags from null."),-1;var b=a.features;return b?b.reduce(function(a,b){return a|(lU.get(b)||0)},0):a.cpuHasSSE2?2:-1},eU=function(a){jU(a).then(function(b){if(b=b.value)a.b=b,a.f.isAvailable()?
a.f.set("scp",Fu(b)):dU.error("Error in saving scp to local storage."),XT(WT.Ha(),"cpuInfo",rk({archName:b.archName,features:b.features,modelName:b.modelName,numOfProcessors:b.numOfProcessors}))})};fU.prototype.h=function(){return kU(this)?{archName:"armv7l",modelName:"Unknown ARM device",numOfProcessors:2}:{archName:"x86",modelName:"Unknown x86 device",numOfProcessors:4}};var oU=function(a){a.g.then(function(a){nU(a,4749)})},dU=new sT("realtime.media.api.webrtc.Utils");new cU;
var lU=new Map([["neon",1],["sse2",2],["ssse3",4],["sse4_1",8],["sse4_2",16],["avx",32]]),iU=null;var pU=function(a){this.b=new sT("realtime.media.api.webrtc.LoggingManager");this.D=LO(a,lP).then();this.o=bB.Ha();this.m=LO(a,qP);this.s=null;this.h=new Set;this.u=new Set;this.A=this.g=!1;this.B=this.j=this.f=null;this.L=this.C=!1};pU.prototype.Xa=function(a){var b=this;this.b.info("Logging manager initialized with userId="+a);this.s=a;this.o.j="11.0.0.0";a&&(a=fB(this.o,a),null!=a&&hA(a,function(a){0<a&&qU(b,2679)}));return Mt(7)};
var rU=function(a,b,c){a.b.info("enableRtpHeaderDump called with sessionId="+b+(" and enable="+c));a.L==c?a.b.info("Ignoring enableRtpHeaderDump call for sessionId="+b+(" as header dump already in state with enable="+c)):a.g?a.m.then(function(d){ST(d,c).then(function(){a.b.info("RTP header dump succeeded for sessionId="+b+(" and enable="+c));a.L=c},function(d){tT(a.b,"Error setting RTP header dump for sessionId="+b+(" and enable="+c+". Error="+d.value));throw d;})}):a.f?(a.b.info("Delaying rtp header dump request until native WebRTC logging has started."),
a.f.then(function(){return rU(a,b,c)})):tT(a.b,"enableRtpHeaderDump called when native logging is not active or pending")},tU=function(a,b){if(a.h.has(b)){a.b.info("Stopping logging for sessionId="+b);a.h.delete(b);qU(a,3221);var c=a.u.has(b);a.u.delete(b);c?(a.b.info("Uploading logs for "+b),qU(a,2494),a.s?(a.b.info("################# Save #################"),c=eB(a.o,b,a.s).then(function(){qU(a,2495)},function(){qU(a,2496)})):(tT(a.b,"Failed to upload beacause of missing user identifier."),c=Mt())):
c=Mt();var d=sU(a);Xt(Rt([c,d]),function(){var a=bB.Ha(),c=new Date;cB(a,b,"### Stop ["+c.toString()+"] ### "+b);cB(a,b,"Current time is "+c.toUTCString());delete a.b[b]})}else a.b.info("Skipping stopLogging call for sessionId="+b+" as logging is not active for this session.")},vU=function(a,b){a.g||a.f||(a.b.info("Requesting native WebRTC logging for sessionId="+b),qU(a,4732),a.f=a.m.then(function(c){return Xt(QT(c,b).then(function(){a.g=!0;a.A=!0;a.B=b;qU(a,4733);a.b.info("Native WebRTC logging started for sessionId="+
b)},function(c){var d=c.value,f=iB.get(c.status);qU(a,4734);f&&(d=JSON.stringify(d),uU(a,f,d));tT(a.b,"Native WebRTC logging failed to start for "+("sessionId="+b+" , error: "+c.value));throw c;}),function(){a.f=null})}),a.u.has(b)&&a.f.then(function(){a.F()}))},sU=function(a){if(a.j)return a.j;if(!a.g)return Mt();if(a.f)return a.f.then(function(){sU(a)});if(0==!a.h.size)return a.b.info("Ignoring native WebRTC logging stop request due to active session ids="+a.h.values()),Mt();a.b.info("Stopping native WebRTC logging.");
a.j=a.m.then(function(b){return Xt(RT(b,a.B,a.C).then(function(){a.b.info("Request to stop native WebRTC logging succeeded")},function(b){tT(a.b,"Request to stop native WebRTC logging failed with error="+b.value);throw b;}),function(){a.g=!1;a.B=null;a.j=null})});return a.j};
pU.prototype.F=function(){var a=this;this.C||(this.b.info("Requesting upload of the native WebRTC logs"),this.C=!0,this.A=!1,qU(this,4735),this.m.then(function(b){TT(b).then(function(){qU(a,4736);a.b.info("Native uploadLogOnRenderClose succeeded.")},function(b){qU(a,4737);tT(a.b,"Native uploadLogOnRenderClose failed witherror="+b.value);throw b;})}))};var qU=function(a,b){a.D.then(function(a){MT(a,b)})},uU=function(a,b,c){a.D.then(function(a){nU(a,b,void 0,void 0,void 0,void 0,void 0,c)})};var wU=function(a){X.call(this,"Ca");this.sessionId=a};l(wU,X);var xU={host:"LOCAL",srflx:"STUN",relay:"RELAY",prflx:"PEER_REFLEX"};var yU={audio:"a",video:"v",data:"d",application:"d"};var zU=function(a,b){this.b=a;this.f=b};ba.Object.defineProperties(zU.prototype,{key:{configurable:!0,enumerable:!0,get:function(){return this.b}},value:{configurable:!0,enumerable:!0,get:function(){return this.f}}});var AU=function(a,b,c,d){this.f=a;this.Pa=b;this.b=c;this.h=d};ba.Object.defineProperties(AU.prototype,{type:{configurable:!0,enumerable:!0,get:function(){return this.f}},port:{configurable:!0,enumerable:!0,get:function(){return this.Pa}},protocol:{configurable:!0,enumerable:!0,get:function(){return this.b}}});var BU=function(a,b){this.g=a;Ra(b)?(this.b=b,"m"===a?(a=b.split(" "),this.h=new AU(a[0],a[1],a[2],a.slice(3))):"a"===a&&(a=Yc(b,":",1),b=a[0],this.f=1===a.length?new zU(b,null):new zU(b,a[1]))):b instanceof AU?(this.h=b,this.b=b.f+" "+b.Pa+" "+b.b+" "+b.h.join(" ")):b instanceof zU&&(this.f=b,this.b=b.f?b.b+":"+b.f:b.b)};BU.prototype.toString=function(){return this.Lg+"="+this.value};
ba.Object.defineProperties(BU.prototype,{Lg:{configurable:!0,enumerable:!0,get:function(){return this.g}},value:{configurable:!0,enumerable:!0,get:function(){return this.b}},j:{configurable:!0,enumerable:!0,get:function(){return this.f}},s:{configurable:!0,enumerable:!0,get:function(){return this.h}}});var DU=function(a){this.f=a;this.b=new Map;CU(this)},CU=function(a){var b=new Map;a.f.forEach(function(a){if("a"===a.Lg){a=a.j;var c=a.key,e=b.get(c);e||(e=[],b.set(c,e));a.value?e.push(a.value):e.push("")}});b.forEach(function(b,d){a.b.set(d,new EU(d,b," ",!1))})};DU.prototype.get=function(a){return this.b.get(a)||new EU(a,[]," ",!0)};
var EU=function(a,b,c,d){d=void 0===d?!1:d;this.m=a;this.g=b;this.u=void 0===c?":":c;this.h=(this.s=d)?new Map:null;this.j=d?[]:null},FU=function(a,b){return a.f?a:b};EU.prototype.forEach=function(a){GU(this);this.h.forEach(a)};EU.prototype.get=function(a){GU(this);return this.h.get(a)||new EU(a,[],":",!0)};var GU=function(a){if(null===a.h){var b=new Map;a.g.forEach(function(c){c=Yc(c,a.u,1);var d=c[0],e=b.get(d)||[];b.set(d,[].concat(xa(e),[c[1]||""]))});a.h=HU(b);a.j=Array.from(a.h.keys())}};
ba.Object.defineProperties(EU.prototype,{o:{configurable:!0,enumerable:!0,get:function(){return this.g}},b:{configurable:!0,enumerable:!0,get:function(){return this.s||0===this.g.length?null:this.g[0]}},f:{configurable:!0,enumerable:!0,get:function(){return!this.s}},key:{configurable:!0,enumerable:!0,get:function(){return this.m}},keys:{configurable:!0,enumerable:!0,get:function(){GU(this);return this.j}}});function HU(a){var b=new Map;a.forEach(function(a,d){b.set(d,new EU(d,a))});return b};var IU=function(a){this.u=a;this.o=a[0];this.s=this.f=null};
ba.Object.defineProperties(IU.prototype,{j:{configurable:!0,enumerable:!0,get:function(){return this.u}},g:{configurable:!0,enumerable:!0,get:function(){return this.o.s}},mediaType:{configurable:!0,enumerable:!0,get:function(){return this.g.type}},h:{configurable:!0,enumerable:!0,get:function(){if(!this.f){var a=this.b;a.get("sendonly").f?this.f="sendonly":a.get("recvonly").f?this.f="recvonly":a.get("inactive").f?this.f="inactive":this.f="sendrecv"}return this.f}},Ig:{configurable:!0,enumerable:!0,
get:function(){return"sendrecv"===this.h||"sendonly"===this.h}},m:{configurable:!0,enumerable:!0,get:function(){return"sendrecv"===this.h||"recvonly"===this.h}},b:{configurable:!0,enumerable:!0,get:function(){this.s||(this.s=new DU(this.j));return this.s}}});var JU=function(a){this.f=a};ba.Object.defineProperties(JU.prototype,{b:{configurable:!0,enumerable:!0,get:function(){return this.f}}});var KU=function(a,b){this.b=a;this.f=b},LU=function(a){return a.b.b.concat.apply(a.b.b,xa(a.f.map(function(a){return a.j}))).map(function(a){return a.Lg+"="+a.value}).join("\r\n")+"\r\n"},MU=function(a){function b(){c?d.push(new IU(e)):c=new JU(e)}var c=null,d=[],e=[];a.split(/\r?\n/).forEach(function(a){Ic(a)||(a=Yc(a,"=",1),a=new BU(a[0],a[1]),"m"===a.Lg&&(b(),e=[]),e.push(a))});b();return new KU(c,d)};
ba.Object.defineProperties(KU.prototype,{session:{configurable:!0,enumerable:!0,get:function(){return this.b}},media:{configurable:!0,enumerable:!0,get:function(){return this.f}}});var NU=function(a,b){b=void 0===b?{}:b;this.h=a;this.o=b;this.j=[];this.B=new Set;this.m="ICE";this.s="full";this.g=null},RU=function(a){if(a.g)return a.g;var b=Math.pow(2,53)*Math.random(),c=[];c.push(new BU("v","0"));c.push(new BU("o","- "+b+" 2 IN IP4 127.0.0.1"));c.push(new BU("s","-"));c.push(new BU("t","0 0"));b=vh?OU(a):PU(a);0<a.j.length&&c.push(a.b.apply(a,["group","BUNDLE"].concat(xa(a.j))));c.push(a.b("ice-options","trickle"));c.push.apply(c,xa(QU(a,a.m,a.s)));c.push(a.b("msid-semantic",
"WMS","*"));a.g=new KU(new JU(c),b);return a.g},OU=function(a){return[a.h.oa,a.h.ga,a.h.Ka].filter(function(a){return null!=a}).map(function(b,c){var d=kR(b),e=SQ(b);a.f&&(e=a.f.media[c].b.get("mid").b);return SU(a,b.X(),e,d,[],!0,!0)})},PU=function(a){var b=TU(a,a.h),c=a.f?a.f.media:[],d=a.A?a.A.media:[],e=[];d.forEach(function(a){var b=yU[a.mediaType];a=a.b.get("mid").b;e.push({type:b,Vh:a})});var f=UU(d),h=VU(d,a.f);if(a.f){d=a.f;for(var k=0;k<d.media.length;k++){var n=d.media[k],u=n.b.get("mid").b;
if(k<e.length)e[k].Vh=u;else{var z=yU[n.mediaType];e.push({type:z,Vh:u});n.m&&(n=h.get(z)||[],h.set(z,[].concat(xa(n),[k])))}}}b.forEach(function(a){var b=a.type,c=(a=a.stream)&&(a.f||a.yd);if(c&&(c=f.get(c),void 0!==c)){e[c].stream=a;return}(c=h.get(b))&&0<c.length?(b=c.shift(),e[b].stream=a):e.push({type:b,stream:a})});var B=!1,D=!1,R=!1,la=[];e.forEach(function(b,d){var e=!1,f=!1,h=b.type,k=b.stream;b=b.Vh;var n=[];"a"!==h||B||(B=f=!0);"v"!==h||D||(D=f=!0,a.o.Ck&&n.push.apply(n,xa(a.o.Ck)));"d"!==
h||R||(R=f=e=!0);if(c[d]&&c[d].Ig){var u=c[d];f=!0;u.b.get("rid").forEach(function(a,b){"send"===a.b&&n.push(b)})}u=[];k&&(e=!0,u=[k]);b||(b="mid_"+d);la.push(SU(a,h,b,u,n,e,f))});return la},TU=function(a,b){var c=[];b=[b.oa,b.ga,b.Ka];a=Math.max.apply(Math,[a.f?0:1].concat(xa(b.map(function(a){return kR(a).length}))));for(var d={He:0};d.He<a;d={He:d.He},d.He++)b.forEach(function(a){return function(b){var d=kR(b)[a.He];b=b.X();(d||0===a.He)&&c.push({type:b,stream:d})}}(d));return c},WU=function(a,
b){a=a.h;switch(b){case "a":return a.oa;case "v":return a.ga;case "d":return a.Ka;default:Xb()}},XU=function(a,b){a=[new BU("m",new AU(sd(yU)[b],"0","RTP/SAVPF",["0"])),new BU("c","IN IP6 ::"),a.b("inactive")];return new IU(a)},SU=function(a,b,c,d,e,f,h){var k=WU(a,b),n=a.h.b,u=x(a.h.h);if(!f&&!h)return XU(a,b);var z=[],B=sd(yU)[b];c&&!a.j.includes(c)&&a.j.push(c);var D=TQ(k),R=k.b,la="RTP/SAVPF";n&&n.b&&(la=R?"DTLS/SCTP":"UDP/TLS/RTP/SAVPF");var ra="DTLS/SCTP"===la?[R.Sa()]:D.map(function(a){return a.bd.toString()});
z.push(new BU("m",new AU(B,"9",la,ra)));B="inactive";f&&h?B="sendrecv":h?B="recvonly":f&&(B="sendonly");z.push.apply(z,xa(YU(a,c,B)));z.push.apply(z,xa(ZU(a,n)));z.push.apply(z,xa($U(a,u)));z.push.apply(z,xa(aV(a,k,h)));z.push.apply(z,xa(bV(a,D,b,cV(x(k.f)))));(b=k.h)&&z.push.apply(z,xa(dV(b)));0<e.length&&z.push.apply(z,xa(eV(a,"recv",e)));z.push.apply(z,xa(fV(a,R)));z.push.apply(z,xa(gV(a,d)));return new IU(z)};
NU.prototype.b=function(a,b){for(var c=[],d=1;d<arguments.length;++d)c[d-1]=arguments[d];return new BU("a",new zU(a,c.join(" ")))};
var YU=function(a,b,c){var d=[];d.push(new BU("c","IN IP6 ::"));d.push(a.b("rtcp","9","IN IP6 ::"));d.push(a.b("rtcp-mux"));b&&d.push(a.b("mid",b));d.push(a.b(c));a=bc(a.o.Al||[],function(a){return this.b("x-google-flag",a)},a);d.push.apply(d,xa(a));return d},ZU=function(a,b){var c=b&&b.f||"123456789012345678901234",d=[];d.push(a.b("ice-ufrag",b&&b.h||"1234567890123456"),a.b("ice-pwd",c));b&&(a.m=b.mc(),a.s=b.s);d.push.apply(d,xa(QU(a,a.m,a.s)));b&&b.b&&(d.push(a.b("fingerprint",b.b)),d.push(a.b("setup",
a.f?b.j:"actpass")));return d},QU=function(a,b,c){if("ICE"==b){if("lite"==c)return[a.b("ice-lite")]}else Xb("google-ice is no longer supported.");return[]},$U=function(a,b){var c;0<b.length&&(c=b[0]);return null!=c?[a.b("crypto",c.Ud().toString(),c.sd(),c.Ce())]:[]},aV=function(a,b,c){return x(b.f).map(function(b){var d=b.getId().toString();if(b.Fc().includes("rtp-stream-id"))if(!a.f||c)d+="/recvonly";else return null;return a.b("extmap",d,b.Fc())}).filter(function(a){return null!=a})},bV=function(a,
b,c,d){var e=[];b.forEach(function(b){var f=b.bd.toString(),k=b.getName(),n=b.f;if("v"===c||"d"===c)n=9E4;k=k+"/"+n;"a"===c&&1<b.b&&(k+="/"+b.b);e.push(a.b("rtpmap",f,k));k=b.ad;if(Qa(hd(k))){var u=[];dd(k,function(a,b){b&&a&&u.push(b+"="+a)});k="";0<u.length&&(k=u.join("; "));e.push(a.b("fmtp",f,k))}if(mQ(b,"vp8")||mQ(b,"vp9")||mQ(b,"h264"))e.push(a.b("rtcp-fb",f,"ccm fir"),a.b("rtcp-fb",f,"nack"),a.b("rtcp-fb",f,"goog-remb")),d&&e.push(a.b("rtcp-fb",f,"transport-cc"))});return e},dV=function(a){var b=
[];a=a.b;-1!=a&&b.push(new BU("b","AS:"+a));return b},fV=function(a,b){return b?[a.b("sctpmap",b.Sa().toString(),b.getName(),b.b.toString())]:[]},gV=function(a,b){var c=[],d=rh&&1===b.length;b.forEach(function(b){if(!Ic(Tc(b.yd))){var e=b.sa(),h=b.yd,k=b.f?b.f:h;d&&c.push(a.b("msid",h+" "+k));a.B.add(h);var n=x(b.h).map(function(b){return a.b.apply(a,["ssrc-group",b.b].concat(xa(b.nb())))});c.push.apply(c,xa(n));if(b.b&&0<x(b.b.b).length){var u=b.b;n=u.Ig?"send":"recv";u=x(u.b).reverse();c.push.apply(c,
xa(eV(a,n,u)))}b.nb().forEach(function(b){c.push(a.b("ssrc",b.toString(),"cname:"+e));c.push(a.b("ssrc",b.toString(),"msid:"+h+" "+k))})}});return c},eV=function(a,b,c){var d=c.map(function(c){return a.b("rid",c,b)});return 0<d.length?(c=a.b("simulcast",b,"rid="+c.join(";")),[].concat(xa(d),[c])):[]};ba.Object.defineProperties(NU.prototype,{u:{configurable:!0,enumerable:!0,set:function(a){this.A=a;this.g=null}},F:{configurable:!0,enumerable:!0,set:function(a){this.f=a;this.g=null}}});
function cV(a){return vh&&ao(59)&&a.some(function(a){return a.Fc().includes("http://www.ietf.org/id/draft-holmer-rmcat-transport-wide-cc-extensions")})}function UU(a){var b=new Map;a.forEach(function(a,d){a=a.b.get("msid");a.f&&(a=ma(a.b.split(" ")),a.next(),a=a.next().value,b.set(a,d))});return b}function VU(a,b){var c=new Map;a.forEach(function(a,e){if(!(a.b.get("msid").f||b&&b.media[e]&&!b.media[e].m)){a=yU[a.mediaType];var d=c.get(a)||[];c.set(a,[].concat(xa(d),[e]))}});return c};var hV=function(a,b,c){c=void 0===c?{}:c;a=new NU(a,c);a.u=void 0===b?null:b;return RU(a)},iV=function(a,b,c,d){d=void 0===d?{}:d;a=new NU(a,d);a.F=b;a.u=void 0===c?null:c;return RU(a)},jV=function(a){var b=a.Qd(),c=a.Uc(),d=a.Be(),e=a.Sa(),f=a.Rf,h=a.Sf,k=a.X(),n=sd(xU)[k],u=a.Td(),z=a.ze();a=[a.vf,b,c.toLowerCase(),u,d,e,"typ",n];switch(k){case "LOCAL":"TCP"==c&&a.push("tcptyp","active");break;case "STUN":case "RELAY":case "PEER_REFLEX":f&&h&&a.push("raddr",f,"rport",h);break;default:Xb("Unexpected candidate type: "+
k)}a.push("generation",z);return new RTCIceCandidate({sdpMLineIndex:0,candidate:"candidate:"+a.join(" ")})};var kV=function(a){this.b=a;this.g=this.j=this.s=null;this.A=this.F=!1;this.B=[];this.o=null;this.C=[];this.m=[];this.L=new Map;this.h=this.f=this.u=null},qV=function(a,b){b=new DU(b);var c=b.get("ice-ufrag").b;null!=c&&(a.j=c);c=b.get("ice-pwd").b;null!=c&&(a.g=c);c=b.get("fingerprint").b;null!=c&&(a.o=c);lV(a,b);if(a.b){c=b.get("sendonly").f;var d=b.get("recvonly").f,e=b.get("sendrecv").f;if(c||e)a.F=!0;if(d||e)a.A=!0;c=b.get("mid").b;null!=c&&(a.s=c);mV(a,b,a.b);a.f=b.get("rid").keys;if(c=b.get("simulcast").b)if(d=
ma(Yc(c.trim()," ",1)),c=d.next().value,d=d.next().value,"send"===c&&d&&(c=ma(Yc(d,"=",1)),c.next(),c=c.next().value))a.h=c.split(";");nV(a,b,a.b);oV(a,b,a.b);pV(a,b)}},lV=function(a,b){b.get("crypto").forEach(function(b,d){var c=ma(Yc(b.b," ",2));b=c.next().value;var f=c.next().value;c=c.next().value;var h=new vQ;h.g=parseInt(d,10);h.h=b;h.b=f;h.f=c||"";d=h.V();a.B.push(d)})},mV=function(a,b,c){b.get("extmap").forEach(function(b,e){b=b.b;var d=ma(Yc(e,"/",2));e=d.next().value;d.next();d=new AQ;d.Oa=
parseInt(e,10);d.f=b;d.b=c;b=d.V();a.C.push(b)})},nV=function(a,b,c){var d=new Map;b.get("fmtp").forEach(function(a,b){var c={};a.b.split(";").forEach(function(a){a=Yc(a,"=",1);2===a.length&&(c[a[0]]=a[1])});d.set(parseInt(b,10),c)});b.get("rtpmap").forEach(function(b,f){f=parseInt(f,10);var e=b.b.split("/");b=e[0];var k=parseInt(e[1],10);e=2<e.length?parseInt(e[2],10):1;b=sQ(rQ(qQ(pQ(oQ(new nQ,c),f),b),k),e);k=d.get(f)||{};b.b=kQ(k);b=b.V();d.delete(f);a.m.push(b)})},oV=function(a,b,c){var d=b.get("msid"),
e=a.L,f=new Set;b.get("ssrc").forEach(function(b,h){h=parseInt(h,10);var k=b.get("cname").b;b=FU(b.get("msid"),d);f.add(h);if(b.f){b=ma(Yc(b.b," ",1));var n=b.next().value,B=b.next().value;b=e.get(n);b||(b=new JP,RP(NP(QP(KP(b,c),n),B),B),e.set(n,b));k&&MP(b,k);a.f&&0<a.f.length&&(k=[],a.h&&0<a.h.length?(a.h.forEach(function(b){return a.f.includes(b)}),k=a.h.reverse()):k=a.f,k=zP(new yP,k).V(),UP(b,k));TP(b,h)}});b=b.get("ssrc-group").o.map(function(a){var b=a.split(" ");a=b[0];b=b.slice(1).map(function(a){return parseInt(a,
10)});b.forEach(function(a){return f.has(a)});return DP(CP(a),b).V()});var h=new Map;b.forEach(function(a){a.nb().forEach(function(b){return h.set(b,[].concat(xa(h.get(b)||[]),[a]))})});e.forEach(function(a){var b=new Set;a.nb().forEach(function(a){(h.get(a)||[]).forEach(function(a){return b.add(a)})});VP(a,Array.from(b))})},pV=function(a,b){b.get("sctpmap").forEach(function(b,d){d=parseInt(d,10);var c=ma(b.b.split(" "));b=c.next().value;c=c.next().value;0!==d&&"rejected"!==b&&(c=parseInt(c,10),a.u=
FQ(EQ(DQ(new CQ,d),b),c).V())})},sV=function(a,b){var c=b.b||new qR("ICE","","");a.j&&a.g&&(c=qd(c),c.h=a.j,c=qd(c),c.f=a.g);a.o&&(c=qd(c),c.b=a.o);b=AR(zR(b,c),[].concat(xa(x(b.h)),xa(a.B)));if(a.b)switch(c=a.b,a=rV(a,c),c){case "a":b=xR(b,a);break;case "v":b=tR(b,a);break;case "d":b=yR(b,a)}return b},rV=function(a,b){var c=Array.from(a.L.values()).map(function(a){return a.V()});b=$Q(XQ(gR(fR(new RQ(b,a.m,a.C),a.F),a.A),a.m),c);a.s&&(b=aR(b,a.s));a.u&&(b=YQ(b,a.u));return b};var tV=function(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],h=parseInt(a[5],10),k=xU[a[7]],n;a.forEach(function(a,b){"generation"===a&&(n=b+1)});switch(k){case "STUN":case "RELAY":case "PEER_REFLEX":var u=a[9];var z=parseInt(a[11],10)}var B=0;n&&(B=parseInt(a[n],10));return new jQ(c,e,k,d,f,h,b,B,"",u,z)},vV=function(a){var b=Ra(a)?MU(a):a;a=new sR;var c=new kV(null);qV(c,b.session.b);a=sV(c,a);c=b.media.filter(function(a){return"audio"===
a.g.type});var d=b.media.filter(function(a){return"video"===a.g.type});b=b.media.filter(function(a){return"data"===a.g.type||"application"===a.g.type});a=uV("a",c,a);a=uV("v",d,a);return a=uV("d",b,a)};function uV(a,b,c){var d=new kV(a);b.forEach(function(a){return qV(d,a.j)});return sV(d,c)};var wV=null,xV=function(){wV||(wV=new (window.AudioContext||window.webkitAudioContext));return wV};var yV=function(a){Y.call(this);this.o=a;this.A=a.ka;this.f=new sT("realtime.media.api.webrtc.PeerConnection");a=this.o.C;rh&&(a[0].urls=a[0].urls.slice(0,2));a={iceServers:a,bundlePolicy:"max-bundle"};if(vh){var b={mandatory:{RtpDataChannels:!this.A,DtlsSrtpKeyAgreement:this.o.ka},optional:[{googHighStartBitrate:!0},{googHighBitrate:!0},{googPayloadPadding:!0},{googSkipEncodingUnusedStreams:!0},{googScreencastMinBitrate:400},{googVeryHighBitrate:!0}]};b.optional.push({googCpuOveruseDetection:!0});
b.optional.push({googCpuOveruseEncodeUsage:!0});b.optional.push({googCpuUnderuseThreshold:55});b.optional.push({googCpuOveruseThreshold:85});this.f.info("Creating new PeerConnection with config="+Fu(a)+" constraints="+Fu(b));a=new webkitRTCPeerConnection(a,b)}else rh?(this.f.info("Creating new PeerConnection with config="+Fu(a)),a=new RTCPeerConnection(a)):(Xb(),a=void 0);this.b=a;this.m=this.j=this.u=this.g=null;rh?(this.g=xV().createMediaStreamDestination().stream,this.j=this.g.getAudioTracks()[0],
this.j.enabled=!1,this.b.addTrack(this.j,this.g),a=document.createElement("canvas"),a.getContext("2d"),this.u=a.captureStream(),this.m=this.u.getVideoTracks()[0],this.m.enabled=!1,a=this.b.addTrack(this.m,this.u)):a=null;this.B=a;this.b.onicecandidate=this.D.bind(this);vh?this.b.onaddstream=this.C.bind(this):this.b.ontrack=this.M.bind(this);this.b.onremovestream=this.K.bind(this)};l(yV,Y);yV.prototype.ja=function(){this.close();Y.prototype.ja.call(this)};
yV.prototype.Xa=function(){if(!this.B)return Promise.resolve();var a={},b=this.o.o;b&&0<b.b&&(a.maxBitrate=b.b);b=[a];this.o.u&&(a.rid="f",b.push({rid:"h",scaleResolutionDownBy:2}),b.push({rid:"q",scaleResolutionDownBy:4}));return this.B.setParameters({encodings:b})};var zV=function(a){var b;vh&&!a.A&&(b={reliable:!1});return a.b.createDataChannel("dataSendChannel",b)};
yV.prototype.close=function(){"closed"!=this.b.signalingState&&this.b.close();mt(this.b);this.b.onicecandidate=null;this.b.oniceconnectionstatechange=null;this.b.onaddstream=null;this.b.onremovestream=null;this.b.ondatachannel=null};var AV=function(a,b){a.b.getSenders().forEach(function(a){a.track.kind==b.kind&&a.replaceTrack(b)})},BV=function(a,b){a="audio"==b.kind?a.g:a.u;a.removeTrack(a.getTracks()[0]);a.addTrack(b);return a},CV=function(a){return hb(a.b.getReceivers)?a.b.getReceivers():null};
yV.prototype.C=function(a){a.stream&&this.I(new DV(a.stream))};yV.prototype.M=function(a){0==a.streams.length||this.I(new DV(a.streams[0]))};yV.prototype.K=function(a){a.stream&&this.I(new EV(a.stream))};yV.prototype.D=function(a){if(a=a.candidate)a.candidate?(a=tV(a.candidate),this.I(new FV(a))):tT(this.f,"RTCIceCandidate.candidate had no value.")};
var GV=function(a,b){var c=Ut();vh?a.b.createOffer(c.resolve,c.reject,b):rh?c.resolve(a.b.createOffer(b)):c.reject("Unsupported platform");return c.U.then(function(a){return MU(a.sdp)},function(b){a.f.error("createOffer Failed: "+b);throw b;})},HV=function(a){var b=Ut();vh?a.b.createAnswer(b.resolve,b.reject):rh?b.resolve(a.b.createAnswer()):b.reject("Unsupported platform");return Yt(b.U,function(b){a.f.error("nativeCreateAnswer_ Failed: "+b);throw b;})},IV=function(a){return HV(a).then(function(a){return MU(a.sdp)},
function(b){a.f.error("createAnswer Failed: "+b);throw b;})};yV.prototype.getStats=function(){var a=this;return vh?new It(function(b){a.b.getStats(b)}):rh?Mt(this.b.getStats()):Nt("Unsupported platform")};
var JV=function(a,b){b=jV(b);var c=Ut();vh?a.b.addIceCandidate(b,c.resolve,c.reject):rh?c.resolve(a.b.addIceCandidate(b)):c.reject("Unsupported platform");Yt(c.U,function(b){tT(a.f,"addIceCandidate Failed: "+b)});return c.U},LV=function(a,b,c){var d=new RTCSessionDescription({type:b,sdp:LU(c)});b=KV(a,d);Yt(b,function(b){tT(a.f,"setLocalDescription Failed: "+b);tT(a.f,"The current signalingState is : "+a.b.signalingState);tT(a.f,"The offending SDP was: \n"+d.sdp)});return b.then(Ya)},KV=function(a,
b){return vh?new It(function(c,d){a.b.setLocalDescription(b,c,d)}):rh?Mt(a.b.setLocalDescription(b)):Nt("Unsupported platform")},MV=function(a,b,c){var d=new RTCSessionDescription({type:b,sdp:LU(c)});b=Ut();vh?a.b.setRemoteDescription(d,b.resolve,b.reject):rh?b.resolve(a.b.setRemoteDescription(d)):b.reject("Unsupported platform");Yt(b.U,function(b){tT(a.f,"setRemoteDescription Failed: "+b);tT(a.f,"The current signalingState is : "+a.b.signalingState);tT(a.f,"The offending SDP was: \n"+d.sdp);throw b;
});return b.U},FV=function(a){X.call(this,"Da");this.candidate=a};l(FV,X);var DV=function(a){X.call(this,"Ea");this.stream=a};l(DV,X);var EV=function(a){X.call(this,"Fa");this.stream=a};l(EV,X);var NV=function(a,b){this.s=a;this.h=b;this.b=this.M();this.j=this.m=null;this.T=0;this.o=this.f=this.B=null;this.A=[];this.F=[];this.C=this.L=!1;this.D=[]},QV=function(a,b){return pa(function d(){var e,f;return Na(d,function(d){if(1==d.b)return a.b.info("Creating initial offer."),Ba(d,OV(a,1,1,!1),2);e=d.j;a.b.info("Initial offer successfully created.");f=PV(a,e,b);a.f=f;return d.return(f)})}())},SV=function(a){a.b.info("Queueing setting of the initial local description.");return RV(a,function(){return pa(function c(){var d,
e,f;return Na(c,function(c){if(1==c.b)return d=a.g,e=a.u,a.f=null,a.B=e,a.b.info("Generating initial local offer SDP."),f=hV(e),a.m=f,a.b.info("Setting initial local offer."),Ba(c,LV(d,"offer",f),2);a.b.info("Initial local offer set successfully.");c.b=0})}())})},UV=function(a,b){a.o=b;return TV(a)},VV=function(a,b,c){var d=a.u;0<b.length&&(b=$Q(d.oa,b),d=xR(d,b));0<c.length&&(c=$Q(d.ga,c),d=tR(d,c));a.f=d;return TV(a)},TV=function(a){if(a.o)return a.b.info("Queueing negotiation."),RV(a,function(){return a.P()});
a.b.info("Skipping negotiation since remote description has been set yet.");return Promise.resolve()},WV=function(a,b){var c=a.s;c.b.remoteDescription&&c.b.remoteDescription.sdp?b.forEach(function(a){return JV(c,a)}):a.D.push.apply(a.D,xa(b))};NV.prototype.cancel=function(){this.b.info("Cancelling "+this.A.length+" pending negotiation(s).");this.F.forEach(function(a){return a.reject(new Ht("Negotiations cancelled due to cancel() call."))});this.A.length=0;this.F.length=0};
var RV=function(a,b){return pa(function d(){var e;return Na(d,function(d){e=Ut();a.A.push(b);a.F.push(e);XV(a);return Ba(d,e.U,0)})}())},XV=function(a){pa(function c(){var d,e,f;return Na(c,function(c){switch(c.b){case 1:if(0===a.A.length||a.L)return c.return();d=a.A.shift();e=a.F.shift();a.L=!0;Ca(c,2,3);return Ba(c,d(),5);case 5:e.resolve();case 3:c.u=[c.f];c.s=0;c.g=0;a.L=!1;XV(a);var h=c.u.splice(0)[0];(h=c.f=c.f||h)?h.kk?c.b=c.s||c.g:void 0!=h.Wd&&c.g<h.Wd?(c.b=h.Wd,c.f=null):c.b=c.g:c.b=0;break;
case 2:f=Fa(c),e.reject(f),c.Wd(3)}})}())},YV=function(a,b,c){return pa(function e(){var f;return Na(e,function(e){if(1==e.b)return Ba(e,MV(a.s,b,c),2);a.j=c;if(f=a.D)a.b.info("Adding "+f.length+" pending ICE candidates after setRemoteDescription."),f.forEach(function(b){return JV(a.s,b)}),f.length=0;e.b=0})}())},ZV=function(a,b){return pa(function d(){var e,f;return Na(d,function(d){return 1==d.b?(f=e=1,rh&&(e=kR(b.oa).length,f=kR(b.ga).length,a.j.media.forEach(function(a){"inactive"!==a.h&&("audio"===
a.mediaType?e++:"video"===a.mediaType&&f++)})),Ba(d,OV(a,e,f,!0),2)):d.return(d.j)})}())},OV=function(a,b,c,d){return pa(function f(){var h,k,n,u,z,B,D;return Na(f,function(f){if(1==f.b){a.b.info("Creating a local offer (isIceRestart="+d+").");h={};if(rh){if(ao(59)){k=a.s.b;n=k.getTransceivers();u=b;z=c;for(var la=ma(n),R=la.next();!R.done;R=la.next())B=R.value,B.stopped||"sendrecv"!==B.direction&&"recvonly"!==B.direction||(D=B.receiver.track,"audio"===D.kind?u--:"video"===D.kind&&z--);for(la=0;la<
u;la++)k.addTransceiver("audio",{direction:"recvonly"});for(la=0;la<z;la++)k.addTransceiver("video",{direction:"recvonly"})}else h.offerToReceiveAudio=b,h.offerToReceiveVideo=c;d&&(h.iceRestart=!0)}else h.mandatory={OfferToReceiveAudio:!0,OfferToReceiveVideo:!0},d&&(h.mandatory.IceRestart=!0);return Ba(f,GV(a.s,h),2)}return f.return(f.j)})}())},PV=function(a,b,c){a.b.info("Creating the initial local description from the offer SDP.");b=vV(b);var d=a.h.o;d&&(b=tR(b,eR(b.ga,d)));c=c(b);b=yR(tR(xR(b,
fR($Q(b.oa,UQ(c.oa)),!0)),fR($Q(b.ga,UQ(c.ga)),!0)),fR($Q(b.Ka,UQ(c.Ka)),!0));c=TQ(b.ga);c=$V(c);var e=c.findIndex(function(a){return Hc(a.getName(),"rtx")});a.h.A&&-1==e&&tT(a.b,"RTX is enabled, but offer does not contain RTX codec.");c=aW(a,c);a.h.L&&vh&&(c=c.map(function(a){return tQ(new nQ(a),"useadaptivelayering_v2","true").V()}));if(d&&0<c.length&&vh){var f=d.h;e=c[0];-1!==f&&(e=tQ(new nQ(e),"x-google-start-bitrate",f.toString()).V());d=d.f;-1!=d&&(e=tQ(new nQ(e),"x-google-min-bitrate",d.toString()).V());
c[0]=e}b=tR(b,XQ(b.ga,c));b=tR(b,bW(b.ga));a.h.B||(b=tR(b,null));return b},cW=function(a,b,c){a.b.info("Altering remote description ("+b+").");var d=a.u;if(c.Ka.b)c=yR(c,$Q(c.Ka,[]));else{var e=QP(SP(NP(MP(KP(new JP,"d"),"dataSendChannel"),"dataSendChannel"),[0]),"dataSendChannel").V(),f=UQ(c.Ka);f.push(e);c=yR(c,$Q(c.Ka,f))}"answer"===b&&(b=c.b.b)&&(c=zR(c,rR(c.b,a.h.b?b>d.b.b?"passive":"active":"passive")));return c},bW=function(a){rh&&(a=ZQ(a,x(a.f).filter(function(a){return"urn:ietf:params:rtp-hdrext:toffset"!==
a.Fc()})));return a},dW=function(a){var b=function(a,b){return a.some(function(a){return a.bd==b})};return a.filter(function(a,d,e){return!Hc(a.getName(),"rtx")||b(e,"apt"in a.ad?a.ad.apt:null)})},$V=function(a){var b=function(a){return fd(a.ad,function(a,b){return Hc(b,"packetization-mode")&&"1"===a})};a=a.filter(function(a,d,e){var c=!0;e.forEach(function(e,f){f!=d&&e.getName()==a.getName()&&Hc(a.getName(),"H264")&&(c&=b(a))});return c});return dW(a)},aW=function(a,b){b=b.filter(function(b){return Hc(b.getName(),
"vp8")||Hc(b.getName(),"h264-svc")||a.h.A&&Hc(b.getName(),"rtx")||!1});return dW(b)},eW=function(a,b,c,d){tT(a.b,"Rengotiation (id="+c+") FAILED: "+b+". Error="+d);a.m&&tT(a.b,"Last local SDP was: "+LU(a.m));a.j&&tT(a.b,"Last remote SDP was: "+LU(a.j));b=a.g.b;b.localDescription&&tT(a.b,"PeerConnection's current local SDP is: "+b.localDescription.sdp);b.remoteDescription&&tT(a.b,"PeerConnection's current remote SDP is: "+b.remoteDescription.sdp)};
ba.Object.defineProperties(NV.prototype,{g:{configurable:!0,enumerable:!0,get:function(){return this.s}},K:{configurable:!0,enumerable:!0,get:function(){return this.h}},u:{configurable:!0,enumerable:!0,get:function(){return this.f||this.B}}});var fW=function(a,b){NV.call(this,a,b);this.ka=!0};l(fW,NV);fW.prototype.M=function(){return new sT("realtime.media.api.webrtc.PeerNegotiatorLegacy")};
fW.prototype.P=function(){var a=this;return pa(function c(){var d;return Na(c,function(c){switch(c.b){case 1:if(!a.ka){c.Wd(2);break}a.ka=!1;return Ba(c,gW(a),3);case 3:if(null==a.f)return c.return();case 2:if(!a.C){c.Wd(4);break}a.b.info("Performing ICE restart.");a.C=!1;return Ba(c,ZV(a,a.o),5);case 5:d=c.j;var e=vV(d);a.f=zR(a.u,e.b);case 4:return Ba(c,hW(a),0)}})}())};
var gW=function(a){return pa(function c(){var d,e,f,h,k;return Na(c,function(c){a.b.info("Setting initial remote description.");a.m||tT(a.b,"Current local SDP is unexpectedly not set while attempting to set the initial remote description.");d=a.m;e=cW(a,"answer",a.o);a.b.info("Generating initial remote answer SDP.");h=(f=a.K.D)?["conference"]:[];k=iV(e,d,null,{Al:h});a.b.info("Setting initial remote answer.");return Ba(c,YV(a,"answer",k),0)})}())},hW=function(a){return pa(function c(){var d,e,f,h;
return Na(c,function(c){switch(c.b){case 1:return d=a.T++,e=a.o,a.f&&(a.B=a.f,a.f=null),a.b.info("Rengotiation (id="+d+"): Starting."),Ca(c,2),Ba(c,iW(a,e,d),4);case 4:Ea(c,3);break;case 2:throw f=Fa(c),eW(a,"Failed to create or set remote offer.",d,f),f;case 3:return Ca(c,5),Ba(c,jW(a,a.B,e,d),7);case 7:Ea(c,6);break;case 5:throw h=Fa(c),eW(a,"Failed to create or set local answer.",d,h),h;case 6:a.b.info("Rengotiation (id="+d+"): Successfully completed."),c.b=0}})}())},iW=function(a,b,c){return pa(function e(){var f,
h,k,n;return Na(e,function(e){a.b.info("Rengotiation (id="+c+"): Generating remote offer SDP.");b=cW(a,"offer",b);f=a.j;k=(h=a.K.D)?["conference"]:[];n=hV(b,f,{Al:k,Ck:kW(a)});a.b.info("Rengotiation (id="+c+"): Setting remote offer.");return Ba(e,YV(a,"offer",n),0)})}())},jW=function(a,b,c,d){return pa(function f(){var h,k,n;return Na(f,function(f){if(1==f.b)return a.b.info("Rengotiation (id="+d+"): Generating and setting local answer."),rh?Ba(f,IV(a.g),6):Ba(f,IV(a.g),4);if(6!=f.b){var u=b;a.b.info("Altering local description (answer).");
var B=u.b,D=B.b,R=B.j;!D||R&&"actpass"!==R||(u=a.h.b?zR(u,rR(B,c.b.b>D?"active":"passive")):zR(u,rR(B,"active")));h=u;k=iV(h,a.j);return Ba(f,LV(a.g,"answer",k),0)}n=f.j;return Ba(f,LV(a.g,"answer",n),0)})}())},kW=function(a){if(!rh)return[];a=a.g.b.getSenders().find(function(a){return"video"===a.track.kind});return a?(a=a.getParameters().encodings)&&0!==a.length?a.map(function(a){return a.rid}):[]:[]};var mW=function(a,b,c){var d=lW;this.j=LO(a,lP).then();this.f=b;this.g=c;this.h=d;this.b=new Set};mW.prototype.update=function(a,b){var c=this.h(b);b=this.g(b);var d="un";this.b.has(a)?c?(this.b.delete(a),d="r"):d="m":b&&(this.b.add(a),nW(this),d="m");return d};var nW=function(a){a.j.then(function(b){MT(b,a.f)})};var oW=function(a){var b=a;Ra(a)&&(b=Number(a),b=0==b&&Ic(a)?NaN:b);return 1E3>b?b/2E3:2E3>b?(b-1E3)/2E3+.5:3E3>b?(b-2E3)/2E3+1:4E3>b?(b-3E3)/2E3+1.5:6E3>b?(b-4E3)/4E3+2:1E4>b?(b-6E3)/8E3+2.5:15E3>b?(b-1E4)/1E4+3:19E3>b?(b-15E3)/8E3+3.5:22E3>b?(b-19E3)/6E3+4:32767>=b?(b-22E3)/21534+4.5:5};var pW=function(a){return m(a)&&!isNaN(a)?a:Qa(void 0)?void 0:-1},qW=function(a,b,c){c?(m(a.aecDivergentFilterFraction)&&!isNaN(a.aecDivergentFilterFraction)&&S(b,117,a.aecDivergentFilterFraction),m(a.audioInputLevel)&&!isNaN(a.audioInputLevel)&&S(b,26,Math.round(a.audioInputLevel)),m(a.googEchoCancellationEchoDelayMedian)&&!isNaN(a.googEchoCancellationEchoDelayMedian)&&S(b,46,Math.round(a.googEchoCancellationEchoDelayMedian)),m(a.googEchoCancellationEchoDelayStdDev)&&!isNaN(a.googEchoCancellationEchoDelayStdDev)&&
S(b,47,Math.round(a.googEchoCancellationEchoDelayStdDev)),m(a.googEchoCancellationReturnLoss)&&!isNaN(a.googEchoCancellationReturnLoss)&&S(b,48,Math.round(a.googEchoCancellationReturnLoss)),m(a.googEchoCancellationReturnLossEnhancement)&&!isNaN(a.googEchoCancellationReturnLossEnhancement)&&S(b,49,Math.round(a.googEchoCancellationReturnLossEnhancement)),m(a.googEchoCancellationQualityMin)&&!isNaN(a.googEchoCancellationQualityMin)&&S(b,63,a.googEchoCancellationQualityMin),m(a.googResidualEchoLikelihood)&&
!isNaN(a.googResidualEchoLikelihood)&&S(b,129,a.googResidualEchoLikelihood),m(a.googResidualEchoLikelihoodRecentMax)&&!isNaN(a.googResidualEchoLikelihoodRecentMax)&&S(b,133,a.googResidualEchoLikelihoodRecentMax)):(m(a.audioOutputLevel)&&!isNaN(a.audioOutputLevel)&&S(b,26,Math.round(a.audioOutputLevel)),m(a.googJitterBufferMs)&&!isNaN(a.googJitterBufferMs)&&S(b,37,Math.round(a.googJitterBufferMs)),m(a.googPreferredJitterBufferMs)&&!isNaN(a.googPreferredJitterBufferMs)&&S(b,38,Math.round(a.googPreferredJitterBufferMs)),
m(a.googCurrentDelayMs)&&!isNaN(a.googCurrentDelayMs)&&S(b,39,Math.round(a.googCurrentDelayMs)),m(a.googExpandRate)&&!isNaN(a.googExpandRate)&&S(b,68,a.googExpandRate),m(a.googSpeechExpandRate)&&!isNaN(a.googSpeechExpandRate)&&S(b,103,a.googSpeechExpandRate),m(a.googPreemptiveExpandRate)&&!isNaN(a.googPreemptiveExpandRate)&&S(b,106,a.googPreemptiveExpandRate),m(a.googAccelerateRate)&&!isNaN(a.googAccelerateRate)&&S(b,107,a.googAccelerateRate),m(a.googSecondaryDecodedRate)&&!isNaN(a.googSecondaryDecodedRate)&&
S(b,104,a.googSecondaryDecodedRate),m(a.googDecodingCTSG)&&!isNaN(a.googDecodingCTSG)&&S(b,81,Math.round(a.googDecodingCTSG)),m(a.googDecodingCTN)&&!isNaN(a.googDecodingCTN)&&S(b,82,Math.round(a.googDecodingCTN)),m(a.googDecodingNormal)&&!isNaN(a.googDecodingNormal)&&S(b,83,Math.round(a.googDecodingNormal)),m(a.googDecodingPLC)&&!isNaN(a.googDecodingPLC)&&S(b,84,Math.round(a.googDecodingPLC)),m(a.googDecodingCNG)&&!isNaN(a.googDecodingCNG)&&S(b,85,Math.round(a.googDecodingCNG)),m(a.googDecodingPLCCNG)&&
!isNaN(a.googDecodingPLCCNG)&&S(b,86,Math.round(a.googDecodingPLCCNG)),m(a.googDecodingMuted)&&!isNaN(a.googDecodingMuted)&&S(b,134,Math.round(a.googDecodingMuted)))};var rW={gf:"bytesReceived",hf:"bytesSent",Vl:"id",st:"localCandidateId",Wu:"readable",Zu:"remoteCandidateId",zm:"selected",tw:"writable"},sW={Bl:"googActiveConnection",gf:"bytesReceived",hf:"bytesSent",Xl:"googLocalAddress",vm:"googRemoteAddress"},tW={Rq:"bitrateMean",Sq:"bitrateStdDev",ps:"framerateMean",qs:"framerateStdDev",Ui:"framesDecoded",Vi:"framesEncoded",gf:"bytesReceived",hf:"bytesSent",ms:"firCount",Zs:"isRemote",ct:"jitter",Pt:"mozRtt",zt:"mediaType",St:"nackCount",bj:"packetsReceived",
ih:"packetsLost",cj:"packetsSent",Lu:"pliCount",jh:"qpSum",av:"remoteId",rv:"roundTripTime",jj:"ssrc"},uW={gf:"bytesReceived",hf:"bytesSent",Ui:"framesDecoded",Vi:"framesEncoded",bj:"packetsReceived",ih:"packetsLost",cj:"packetsSent",jh:"qpSum",jj:"ssrc"},vW=function(a,b){if(!a)return null;if(b){b=sW;if("false"==a[b.Bl])return null;a=a[b.Xl]+a[b.vm]}else{b=rW;if("false"==a[b.zm])return null;a=a[b.Vl]}return a};var wW=function(){this.h=new Map;this.f=new Map;this.b=new Map};wW.prototype.clear=function(){this.h.clear();this.f.clear();this.b.clear()};
var zW=function(a,b,c,d,e){var f=(e=void 0===e?!0:e)?uW:tW,h=b[f.jj];return null==h?null:d?xW(a.h,h,function(){return new yW(d)}).update(c,b[f.hf],b[f.cj],e?b[f.ih]:0,b[f.Vi],b[f.jh]):xW(a.f,h,function(){return new yW(d)}).update(c,b[f.gf],b[f.bj],b[f.ih],b[f.Ui],b[f.jh])},BW=function(a,b,c,d){d=void 0===d?!0:d;var e=vW(b,d);if(!e)return null;d=d?sW:rW;return xW(a.b,e,function(){return new AW}).update(c,b[d.hf],b[d.gf])},xW=function(a,b,c){var d=a.get(b);null==d&&(d=c(),a.set(b,d));return d},yW=function(a){this.m=
a;this.b=-1;this.h=this.f=this.j=this.s=this.g=0};yW.prototype.update=function(a,b,c,d,e,f){var h={pf:-1,Sh:-1,Qk:-1};if(m(a)&&m(b)&&m(c)&&m(d)){if(a>this.b){var k=c-this.s,n=d-this.j;k=this.m?k:k+n;h.Sh=0<k?Math.round(100*n/k):-1;0<=this.b&&(n=a-this.b,k=b-this.g,h.pf=0<k?Math.round(8*k/n):0)}this.b=a;this.g=b;this.s=c;this.j=d}m(e)&&m(f)&&(a=e-this.f,h.Qk=0<a?Math.round((f-this.h)/a):-1,this.f=e,this.h=f);return h};var AW=function(){this.b=-1;this.f=this.h=0};
AW.prototype.update=function(a,b,c){var d=null;if(m(a)&&m(b)&&m(c)){if(0<=this.b&&a>this.b){d=a-this.b;var e=b-this.h,f=c-this.f;d={hl:0<e?Math.round(e/d):0,Xk:0<f?Math.round(f/d):0}}this.b=a;this.h=b;this.f=c}return d};var CW=function(a){N(this,a,0,-1,null)};t(CW,M);
CW.prototype.w=function(){var a=new y;var b=O(this,1);null!=b&&C(a,1,b);b=O(this,2);null!=b&&C(a,2,b);b=O(this,3);null!=b&&C(a,3,b);b=O(this,4);null!=b&&C(a,4,b);b=O(this,5);null!=b&&C(a,5,b);b=O(this,6);null!=b&&C(a,6,b);b=O(this,7);null!=b&&C(a,7,b);b=O(this,8);null!=b&&C(a,8,b);b=O(this,9);null!=b&&C(a,9,b);b=O(this,10);null!=b&&C(a,10,b);b=O(this,11);null!=b&&C(a,11,b);b=O(this,12);null!=b&&C(a,12,b);b=O(this,13);null!=b&&C(a,13,b);b=O(this,14);null!=b&&F(a,14,b);b=O(this,15);null!=b&&F(a,15,
b);return A(a)};var DW=function(a){CW.apply(this,arguments)};l(DW,CW);var FW=function(a){for(var b=[],c=0;c<EW.length;c++){var d=new cN;S(d,1,EW[c]);S(d,2,a.f[c+1]);b.push(d)}a=new fN;Ji(a,2,b);return a},EW=[1300,1301,1302,1303,1304,1305,1306,1307,1308,1309,1310,1311];var GW=function(){ZB.call(this);this.o=null};l(GW,ZB);var HW=["Incompatible version number: ",""];HW.raw=["Incompatible version number: ",""];var IW=["Elapsed time in jmidata decreased from "," to\n      ",""];IW.raw=["Elapsed time in jmidata decreased from "," to\n      ",""];
var LW=function(a,b){this.l=new iT("realtime.media.api.webrtc.JmiStatsParser");this.s=a;this.B=b;this.m=new wW;this.A=LO(this.s,qP);this.h=-1;this.g=new Map;this.f=new xB;this.C=new fU(this.s);this.b=null;this.j=!1;this.o=new mW(a,4549,JW);this.u=new mW(a,4550,KW);this.F=[this.o,this.u]},MW=function(a){a.A.then(function(b){a.b||a.j||(a.b=b.f.Zh(),a.b&&a.b.onMessage.addListener(function(b){var c=a.f;c.o+=b.tabCpuUsage;c.g+=b.browserCpuUsage;c.j+=b.gpuCpuUsage;c.s+=b.tabJsMemoryAllocated;c.m+=b.tabJsMemoryUsed;
c.b++}))})},SW=function(a,b,c,d,e){NW(a,b);var f=new Map;b.forEach(function(a){if("localcandidate"===a.type){var b=OW(a);a=a.id;null!=b&&(b=b.networkType,Ic(Tc(a))||Ic(Tc(b))||((b=PW[b])||(b=0),f.set(a,b)))}});b.forEach(function(b){switch(b.type){case "ssrc":QW(a,OW(b),c,d);break;case "VideoBwe":if(b=OW(b)){var e=new ZB;S(e,1,2);S(e,24,2);m(b.googAvailableSendBandwidth)&&!isNaN(b.googAvailableSendBandwidth)&&S(e,40,Math.round(b.googAvailableSendBandwidth));m(b.googAvailableReceiveBandwidth)&&!isNaN(b.googAvailableReceiveBandwidth)&&
S(e,41,Math.round(b.googAvailableReceiveBandwidth));m(b.googTransmitBitrate)&&!isNaN(b.googTransmitBitrate)&&S(e,42,Math.round(b.googTransmitBitrate));m(b.googRetransmitBitrate)&&!isNaN(b.googRetransmitBitrate)&&S(e,43,Math.round(b.googRetransmitBitrate));m(b.googTargetEncBitrate)&&!isNaN(b.googTargetEncBitrate)&&S(e,124,Math.round(b.googTargetEncBitrate));m(b.googActualEncBitrate)&&!isNaN(b.googActualEncBitrate)&&S(e,125,Math.round(b.googActualEncBitrate));m(b.googBucketDelay)&&!isNaN(b.googBucketDelay)&&
S(e,80,Math.round(b.googBucketDelay));S(e,2,-1);S(e,3,-1);S(e,4,-1);S(e,5,-1);e.g(-1);S(e,7,-1);S(e,8,-1);S(e,9,-1);S(e,10,-1);RW(d,e)}break;case "googCandidatePair":var h=OW(b);if(h){b=U(d,UB,13);e=new UB;e.g(Math.round(pW(h.googRtt)));S(e,4,Math.round(pW(h.bytesSent)));m(h.packetsSent)&&!isNaN(h.packetsSent)&&S(e,90,Math.round(h.packetsSent));m(h.packetsDiscardedOnSend)&&!isNaN(h.packetsDiscardedOnSend)&&S(e,91,Math.round(h.packetsDiscardedOnSend));S(e,6,Math.round(pW(h.bytesReceived)));var u=0;
"true"===h.googActiveConnection&&(u|=1);"true"===h.googWritable&&(u|=2);"true"===h.googReadable&&(u|=4);S(e,2,u);u=new CB;var z=new CB;S(u,1,h.googLocalAddress||"");S(z,1,h.googRemoteAddress||"");var B=h.googChannelId,D=0;Gc(B,"Channel-audio-")?D=1:Gc(B,"Channel-video-")&&(D=2);S(u,2,D);S(z,2,D);B={local:1,stun:2,relay:3};S(u,3,B[h.googLocalCandidateType]||0);S(z,3,B[h.googRemoteCandidateType]||0);B={udp:1,tcp:2,ssltcp:3}[h.googTransportType]||0;S(u,4,B);S(z,4,B);V(e,8,u);V(e,9,z);u=u.bc();S(e,1,
u);u=BW(a.m,h,a.h);S(e,5,u?u.hl:-1);S(e,7,u?u.Xk:-1);h=h.localCandidateId;Ra(h)&&!Ic(Tc(h))&&f.has(h)&&(h=f.get(h),S(e,55,h));b.push(e);Ji(d,13,b)}}});jU(a.C).then(function(b){var c;(c=a.f.toJson())?(m(c.tabCpuUsage)&&!isNaN(c.tabCpuUsage)&&S(d,34,Math.round(c.tabCpuUsage)),m(c.browserCpuUsage)&&!isNaN(c.browserCpuUsage)&&S(d,92,Math.round(c.browserCpuUsage)),m(c.gpuCpuUsage)&&!isNaN(c.gpuCpuUsage)&&S(d,94,Math.round(c.gpuCpuUsage)),m(c.pluginCpuUsage)&&!isNaN(c.pluginCpuUsage)&&S(d,93,Math.round(c.pluginCpuUsage)),
m(c.totalCpuUsage)&&!isNaN(c.totalCpuUsage)&&S(d,35,Math.round(c.totalCpuUsage)),m(c.numOfProcessors)&&!isNaN(c.numOfProcessors)&&d.g(Math.round(c.numOfProcessors)),m(c.tabJsMemoryAllocated)&&!isNaN(c.tabJsMemoryAllocated)&&S(d,150,Math.round(c.tabJsMemoryAllocated)),m(c.tabJsMemoryUsed)&&!isNaN(c.tabJsMemoryUsed)&&S(d,151,Math.round(c.tabJsMemoryUsed)),c=c.jmiVersion,c=m(c)?c:Qa(void 0)?void 0:-1):c=0;if(3!==c)a.l.f(HW,c);else{c=a.f;var f=b.value;if(b=f&&f.numOfProcessors){var h=0,z=0;if(f=f.processors)for(var B=
0;B<f.length;B++){var D=f[B].usage;h+=D.user+D.kernel;z+=D.total}else h=c.B,z=c.h;f=z==c.h?c.L:100*b*(h-c.B)/(z-c.h);c.B=h;c.h=z;c.L=f;c.D=f;c.C=b}0>a.h||(S(d,1,Math.round(a.h)),c=a.f,c.o=0,c.g=0,c.j=0,c.s=0,c.m=0,c.b=0,e(d))}})},NW=function(a,b){var c=null;b.forEach(function(a){a.timestamp&&0<a.timestamp.getTime()&&(!c||c.getTime()<a.timestamp.getTime())&&(c=a.timestamp)});c&&yB(a.f,c);b=zB(a.f);0>b||(b<=a.h&&a.l.b(IW,a.h,b),a.h=b)},TW=function(a){var b=new Map;a.forEach(function(a){var c=a.stat("ssrc");
a=a.stat("audioOutputLevel");Ic(Tc(c))||Ic(Tc(a))||(c=parseInt(c,10),a=oW(a),b.set(c,a))});return b},UW=function(a,b){var c={audio:!1,video:!1};b.forEach(function(b){if("ssrc"===b.type){var d=b.names();if(d.includes("packetsReceived")){var f=Number(b.stat("ssrc"));a.g.has(f)||a.g.set(f,0);b=Number(b.stat("packetsReceived"));0>=b-a.g.get(f)||(a.g.set(f,b),d.includes("audioOutputLevel")?c.audio=!0:d.includes("googFrameRateReceived")&&(c.video=!0))}}});return c},VW=function(a){return a.reduce(function(a,
c){var b=-1;"VideoBwe"===c.type&&(c=c.stat("googAvailableSendBandwidth"),Ic(Tc(c))||(b=Math.round(Number(c))));return Math.max(a,b)},-1)},QW=function(a,b,c,d){qC(b,c,a.B);if(b){c=!1;c=kd(b,"mediaType")?"audio"===(null!==b&&"mediaType"in b?b.mediaType:void 0):kd(b,"audioInputLevel")||kd(b,"audioOutputLevel")||kd(b,"googExpandRate");var e=kd(b,"bytesSent"),f=c?new ZB:new GW;WW(b,f,e,c);c?qW(b,f,e):XW(b,f,e);var h=O(f,25);null!=h&&a.F.forEach(function(a){return a.update(h,f)});YW(a,b,f,e);RW(d,f)}},
WW=function(a,b,c,d){S(b,1,d?1:2);S(b,24,c?0:1);m(a.ssrc)&&(S(b,25,a.ssrc),S(b,53,[a.ssrc]));S(b,2,Math.round(pW(a.fractionLost)));S(b,3,Math.round(pW(a.packetsLost)));S(b,4,Math.round(pW(a.highestSequenceNumber)));S(b,5,Math.round(pW(a.googJitterReceived)));b.g(Math.round(pW(a.googRtt)));S(b,7,Math.round(pW(a.bytesSent)));S(b,8,Math.round(pW(a.packetsSent)));S(b,9,Math.round(pW(a.bytesReceived)));S(b,10,Math.round(pW(a.packetsReceived)));c?null!=a.googCodecName&&S(b,44,a.googCodecName):(null!=a.googCodecName&&
S(b,94,a.googCodecName),m(a.oneWayDelayMs)&&!isNaN(a.oneWayDelayMs)&&S(b,89,Math.round(a.oneWayDelayMs)),m(a.oneWayMaxDelayMs)&&!isNaN(a.oneWayMaxDelayMs)&&S(b,112,Math.round(a.oneWayMaxDelayMs)),m(a.oneWayStddevDelayMs)&&!isNaN(a.oneWayStddevDelayMs)&&S(b,118,Math.round(a.oneWayStddevDelayMs)),m(a.oneWayMinDelayMs)&&!isNaN(a.oneWayMinDelayMs)&&S(b,119,Math.round(a.oneWayMinDelayMs)))},YW=function(a,b,c,d){a=zW(a.m,b,a.h,d);d?S(c,42,a.pf):S(c,96,a.pf);S(c,2,a.Sh);S(c,113,a.Qk)},XW=function(a,b,c){c?
(m(a.googFirsReceived)&&!isNaN(a.googFirsReceived)&&S(b,27,Math.round(a.googFirsReceived)),m(a.googPlisReceived)&&!isNaN(a.googPlisReceived)&&S(b,151,Math.round(a.googPlisReceived)),m(a.googNacksReceived)&&!isNaN(a.googNacksReceived)&&S(b,28,Math.round(a.googNacksReceived)),m(a.googFrameRateInput)&&!isNaN(a.googFrameRateInput)&&S(b,29,Math.round(a.googFrameRateInput)),m(a.googFrameRateSent)&&!isNaN(a.googFrameRateSent)&&S(b,30,Math.round(a.googFrameRateSent)),null!=a.codecImplementationName&&S(b,
143,a.codecImplementationName),m(a.googFrameWidthSent)&&!isNaN(a.googFrameWidthSent)&&b.Cd(Math.round(a.googFrameWidthSent)),m(a.googFrameHeightSent)&&!isNaN(a.googFrameHeightSent)&&b.Bd(Math.round(a.googFrameHeightSent)),m(a.googFrameWidthInput)&&!isNaN(a.googFrameWidthInput)&&S(b,144,Math.round(a.googFrameWidthInput)),m(a.googFrameHeightInput)&&!isNaN(a.googFrameHeightInput)&&S(b,145,Math.round(a.googFrameHeightInput)),m(a.googQpSent)&&!isNaN(a.googQpSent)&&S(b,113,Math.round(a.googQpSent)),m(a.qpSum)&&
!isNaN(a.qpSum)&&S(b,139,Math.round(a.qpSum)),m(a.googAdaptationChanges)&&!isNaN(a.googAdaptationChanges)&&S(b,95,Math.round(a.googAdaptationChanges)),m(a.googAvgEncodeMs)&&!isNaN(a.googAvgEncodeMs)&&S(b,75,Math.round(a.googAvgEncodeMs)),m(a.googEncodeUsagePercent)&&!isNaN(a.googEncodeUsagePercent)&&S(b,76,Math.round(a.googEncodeUsagePercent))):(m(a.googFirsSent)&&!isNaN(a.googFirsSent)&&S(b,27,Math.round(a.googFirsSent)),m(a.googPlisSent)&&!isNaN(a.googPlisSent)&&S(b,151,Math.round(a.googPlisSent)),
m(a.googNacksSent)&&!isNaN(a.googNacksSent)&&S(b,28,Math.round(a.googNacksSent)),m(a.googFrameRateOutput)&&!isNaN(a.googFrameRateOutput)&&S(b,29,Math.round(a.googFrameRateOutput)),m(a.googFrameRateReceived)&&!isNaN(a.googFrameRateReceived)&&S(b,30,Math.round(a.googFrameRateReceived)),m(a.googFrameRateDecoded)&&!isNaN(a.googFrameRateDecoded)&&S(b,31,Math.round(a.googFrameRateDecoded)),m(a.fpsGraphicsInput)&&!isNaN(a.fpsGraphicsInput)&&S(b,50,a.fpsGraphicsInput),m(a.fpsGraphicsOutput)&&!isNaN(a.fpsGraphicsOutput)&&
S(b,51,a.fpsGraphicsOutput),null!=a.codecImplementationName&&S(b,143,a.codecImplementationName),m(a.googFrameWidthReceived)&&!isNaN(a.googFrameWidthReceived)&&b.Cd(Math.round(a.googFrameWidthReceived)),m(a.googFrameHeightReceived)&&!isNaN(a.googFrameHeightReceived)&&b.Bd(Math.round(a.googFrameHeightReceived)),m(a.googQpReceived)&&!isNaN(a.googQpReceived)&&S(b,113,Math.round(a.googQpReceived)),m(a.qpSum)&&!isNaN(a.qpSum)&&S(b,139,Math.round(a.qpSum)),m(a.googInterframeDelayMax)&&!isNaN(a.googInterframeDelayMax)&&
S(b,138,Math.round(a.googInterframeDelayMax)));var d=a.googContentType;d&&S(b,59,"screen"===d);if(c){var e=fC.Ni;c=ZW(a.googBandwidthLimitedResolution);ZW(a.googCpuLimitedResolution)&&(e|=fC.Mi);c&&(e|=fC.Li);S(b,65,e)}else if(a=a.googTimingFrameInfo)try{a="["+a+"]",e=new DW(a?JSON.parse(a):null),b.o=e}catch(f){}},OW=function(a){var b={};a.names().forEach(function(c){var d=a.stat(c);null!=d&&(isNaN(d)||Ra(d)&&Ic(d)||(d=Number(d)));b[c]=d});return b},RW=function(a,b){b=b||new ZB;var c=SB(a);c.push(b);
lC(a,c)};function JW(a){return 0===hC(a)&&!lW(a)&&0<O(a,29)}function KW(a){return 0===hC(a)&&!lW(a)&&0<O(a,30)}function lW(a){return!(O(a,59)&&(O(a,58)||O(a,57)))}function ZW(a){return"true"!==a&&"false"!==a?null:"true"===a}var PW={lan:1,vpn:11,wlan:2,wwan:5};var $W=["Ignore report with timestamp prior to initial stats:\n      ",""];$W.raw=["Ignore report with timestamp prior to initial stats:\n      ",""];var aX=["No valid timestamp for the stats: ",""];aX.raw=["No valid timestamp for the stats: ",""];
var bX=function(){this.l=new iT("realtime.media.api.webrtc.RtcStatsParser");this.g=new wW;this.b=this.f=null;this.h=new Map},nX=function(a,b,c,d){var e=cX(b);e?(dX(a,e),e=eX(a),0>e?a.l.b($W,fX(b)):(S(c,1,Math.round(e)),b.forEach(function(d){switch(gX[d.type]||d.type){case "candidate-pair":if(d){var e=d.selected;if(Ta(e)&&!1!==e){e=U(c,UB,13);var f=new UB,n=new CB,u=new CB;hX(n);hX(u);V(f,8,n);V(f,9,u);S(f,7,-1);S(f,5,-1);var z=O(n,3);S(f,1,z);S(f,2,0);f.g(-1);S(f,6,-1);S(f,4,-1);z=d.remoteCandidateId||
"";iX(b.get(d.localCandidateId||""),n);iX(b.get(z),u);V(f,8,n);V(f,9,u);u=d.selected;z=d.writable;var B=d.readable;Ta(u)&&(z=void 0===z?!0:z,B=void 0===B?!0:B);var D=0;!0===u&&(D|=1);!0===z&&(D|=2);!0===B&&(D|=4);S(f,2,D);n=O(n,3);S(f,1,n);n=jX(d,"bytesReceived");S(f,6,n);n=jX(d,"bytesSent");S(f,4,n);if(d=BW(a.g,d,eX(a),!1))S(f,5,d.hl),S(f,7,d.Xk);e.push(f);Ji(c,13,e)}}break;case "inbound-rtp":case "outbound-rtp":d&&!kX(d)&&(e=SB(c),f=new ZB,S(f,9,-1),S(f,7,-1),S(f,3,-1),S(f,2,-1),S(f,5,-1),S(f,4,
-1),S(f,1,0),S(f,10,-1),S(f,8,-1),f.g(-1),n="outbound-rtp"===(gX[d.type]||d.type),d&&(S(f,24,n?0:1),u="audio"===d.mediaType,S(f,1,u?1:2),z=d.ssrc,Ra(z)&&!Ic(z)&&(z=Number(z),S(f,25,z),S(f,53,[z])),z=d.nackCount,m(z)&&S(f,28,z),z=d.firCount,m(z)&&S(f,27,z),u||kX(d)||(u=Math.round(jX(d,"framerateMean")),S(f,29,u),n?(u=Math.round(jX(d,"bitrateMean")),S(f,42,u)):(u=Math.round(jX(d,"bitrateMean")),S(f,96,u)),f.Bd(-2),f.Cd(-2))),n?lX(a,d,f,b):mX(a,d,f,b),d=zW(a.g,d,eX(a),n,!1),n?S(f,42,d.pf):(S(f,2,d.Sh),
S(f,96,d.pf)),e.push(f),lC(c,e))}}),d(c))):a.l.b(aX,fX(b))},oX=function(a,b){var c={audio:!1,video:!1};b.forEach(function(b){if("inbound-rtp"==(gX[b.type]||b.type)&&!kX(b)){var d=b.ssrc,f=b.packetsReceived;Ra(d)&&!Ic(d)&&m(f)&&(d=Number(d),a.h.has(d)||a.h.set(d,0),0>=f-a.h.get(d)||(a.h.set(d,f),"audio"===b.mediaType&&(c.audio=!0),"video"===b.mediaType&&(c.video=!0)))}});return c},dX=function(a,b){null===a.f&&(a.f=b);if(null===a.b||b.getTime()>a.b.getTime())a.b=b},eX=function(a){return a.b&&a.f?(a.b.getTime()-
a.f.getTime())/1E3:-1},iX=function(a,b){if(a){var c=a.ipAddress||"",d=a.portNumber||"";Ic(c)||Ic(d)||S(b,1,c+":"+d);S(b,3,pX[a.candidateType||""]||0);S(b,4,qX[a.transport||""]||0)}},mX=function(a,b,c,d){if(b){var e=kX(b),f=b.remoteId;e||!Ra(f)||Ic(f)||lX(a,d.get(f),c,d);a=Math.round(jX(b,"jitter"));S(c,5,a);c.g(Math.round(rX(b,["mozRtt","roundTripTime"])));a=jX(b,"packetsLost");S(c,3,a);e||(e=jX(b,"packetsReceived"),S(c,10,e),b=jX(b,"bytesReceived"),S(c,9,b))}},lX=function(a,b,c,d){if(b){var e=kX(b),
f=b.remoteId;e||!Ra(f)||Ic(f)||mX(a,d.get(f),c,d);e||(a=jX(b,"packetsSent"),S(c,8,a),b=jX(b,"bytesSent"),S(c,7,b))}},hX=function(a){S(a,3,0);S(a,4,0);S(a,2,0)},jX=function(a,b){return rX(a,[b],void 0)},rX=function(a,b,c){c=c||-1;b=ma(b);for(var d=b.next();!d.done;d=b.next())if(d=d.value,a&&m(a[d])){c=a[d];break}return c},fX=function(a){for(var b={},c=ma(a.keys()),d=c.next();!d.done;d=c.next())d=d.value,b[d]=a.get(d);return Pa.JSON.stringify(b)};
function kX(a){a=a?a.isRemote:void 0;return Ta(a)&&!0===a}function cX(a){for(var b=null,c=ma(a.keys()),d=c.next();!d.done;d=c.next())if(d=a.get(d.value),!kX(d)){b=d.timestamp;break}return m(b)?new Date(Math.round(b)):null}var gX={inboundrtp:"inbound-rtp",outboundrtp:"outbound-rtp",candidatepair:"candidate-pair",localcandidate:"local-candidate",remotecandidate:"remote-candidate"},pX={host:1,serverreflexive:2,peerreflexive:2,relayed:3},qX={udp:1,tcp:2};var sX=function(){};t(sX,Hs);var tX=function(a){var b={networkType:0};w(U(a,UB,13),function(a){S(a,55,b.networkType);if(2===b.networkType){var c=new iC;S(c,1,void 0!==b.lq?b.lq:-1);V(a,56,c)}})},uX=function(){};t(uX,sX);var vX=new uX,wX=new rC("QfoKtd");var xX=["Unsupported platform. All stats ignored."];xX.raw=["Unsupported platform. All stats ignored."];var yX=["NetworkInfoService unable to be loaded\n                             ",""];yX.raw=["NetworkInfoService unable to be loaded\n                             ",""];
var zX=function(a,b,c){var d=this;this.l=new iT("realtime.media.api.webrtc.StatsManager");this.A=a;this.B=b;this.u=null;c.then(function(a){return d.u=a},function(a){return d.l.info(yX,a)});this.b=new LW(this.A,this.B);this.s=new bX;this.m=this.o=0;this.f=null;this.h=new Map;this.g=new Map;this.j=!1};zX.prototype.start=function(){vh?MW(this.b):rh||this.l.f(xX)};zX.prototype.stop=function(){if(vh){var a=this.b;a.b&&(a.b.disconnect(),a.b=null);a.j=!0}};
var AX=function(a,b){if(!a.j)if(vh){var c=a.b;var d=null;b=ma(b);for(var e=b.next();!e.done;e=b.next())(e=e.value.timestamp)&&0<e.getTime()&&(!d||e.getTime()<d.getTime())&&(d=e);d?(yB(c.f,d),c=!0):c=!1;a.j=c}else rh&&(c=a.s,(d=cX(b))?(dX(c,d),c=!0):c=!1,a.j=c)},BX=function(a,b,c){var d=new Map;vh?d=TW(a):rh&&(d=new Map);var e=new Map;b?d.forEach(function(a,c){b.get(c)&&e.set(b.get(c).Md,{volume:a,Yd:!1})}):d.forEach(function(a,b){e.set(b,{volume:a,Yd:!1})});c(e)},CX=function(a,b){if(null==a.f){var c=
Number.MAX_VALUE;b.forEach(function(a){a.timestamp<c&&(c=a.timestamp)});c!=Number.MAX_VALUE&&(a.f=c)}a.h.forEach(function(c,e){var d=b.get(parseInt(e,10));d&&d.Md==c.Md?c.Xe!=d.timestamp-a.f&&(c.Pd=d.timestamp-a.f):(c.Pd&&(d=a.g.get(e)||[],d.push(c),a.g.set(e,d)),a.h.delete(e))});b.forEach(function(b,c){var d=a.h.get(c.toString());void 0==d&&(d={Md:b.Md,Xe:b.timestamp-a.f,Pd:null},a.h.set(c.toString(),d))})},DX=function(a,b,c){var d=q();1E3>d-a.o||(a.o=d,d={audio:!1,video:!1},vh?d=UW(a.b,b):rh&&(d=
oX(a.s,b)),c(d.audio,d.video))},EX=function(a,b,c){var d=q();200>d-a.m||(a.m=d,a=0,vh?a=VW(b):rh&&(a=-1),c(a))},HX=function(a,b,c,d){var e=new JB,f=function(a){return FX(d,a)},h=function(b){a.u&&tX(b);GX(a,f,b)};vh?SW(a.b,b,c,e,h):rh&&nX(a.s,b,e,h)},FX=function(a,b){lC(b,SB(b).filter(function(a){return 0<O(a,10)||1!=hC(a)}));a(b)},GX=function(a,b,c){SB(c).forEach(function(b){var c=U(b,$B,136),d=P(b,53);if(!(1>d.length)&&(d=d[0].toString(),""!=d)){var h=a.g.get(d);h&&(h.forEach(function(a){a=IX(a);
c.push(a)}),a.g.delete(d));(d=a.h.get(d))&&d.Pd&&(h=IX(d),c.push(h),d.Xe=d.Pd,d.Pd=null);0<c.length&&Ji(b,136,c)}});b(c)},IX=function(a){var b=new $B;S(b,3,a.Md);S(b,1,a.Xe);S(b,2,a.Pd);return b};var KX=function(a,b,c,d){Y.call(this);this.o=new AB("talk.media.webrtc.AudioOutput");this.g=a;this.j=b;this.m=new rB(this);this.h(this.m);this.b=[];this.A=0;this.f=null;c&&(this.f=JX(b));this.u=d;this.Lc(1)};l(KX,Y);KX.prototype.toString=function(){return"AudioOutput(stream="+this.j+", volume="+this.A+", elements.length="+this.b.length+")"};var LX=function(a,b){a.o.info("["+a+"] "+b)};
KX.prototype.Lc=function(a){if(this.g){LX(this,"Setting volume to "+a+".");var b=Math.ceil(a)-this.b.length;if(0<b)MX(this,b);else if(0>b){b=-b;LX(this,"Removing "+b+" elements.");for(var c=0;c<b;++c){var d=this.b.pop();d.srcObject=null;d&&d.parentNode&&d.parentNode.removeChild(d)}}0<a&&(this.b[0].volume=a-(this.b.length-1));this.A=a}};KX.prototype.bc=function(){return this.j};
var MX=function(a,b){LX(a,"Adding "+b+" elements.");for(var c=[],d=[],e={},f=0;f<b;e={Sg:e.Sg},++f){var h=a.g.b.createElement("AUDIO");e.Sg=Ut();c.push(e.Sg.U);h.autoplay=!0;h.srcObject=a.j;vB(a.m,h,"playing",function(a){return function(){return a.Sg.resolve()}}(e));a.b.push(h);d.push(h);a.g.b.body.appendChild(h)}Rt(c).then(function(){return a.I("playing")});""!==a.u&&Yt(NX(a,d),function(b){BB(a.o,"["+a+"] "+("Failed to set sink IDs.  Most likely sinkIds are not supported. Error: "+b))})},NX=function(a,
b){b=b.map(function(b){return Mt().then(function(){return b.setSinkId(a.u)})});return Rt(b).then(function(){})};KX.prototype.ja=function(){this.Lc(0);Y.prototype.ja.call(this)};KX.prototype.xf=function(){return 0==this.b.length?null:this.b[0].currentTime};
var JX=function(a){var b=a;vh&&(b=a.clone(),b.getAudioTracks().forEach(function(a){return a.enabled=!0}));a=xV().createAnalyser();a.fftSize=2048;xV().createMediaStreamSource(b).connect(a);return a},OX=function(a){if(!a.f)return null;var b=new Uint8Array(a.f.fftSize);a.f.getByteTimeDomainData(b);a=256*cc(b,function(a,b){return Math.max(a,Math.abs(b-128))},0);return oW(a)};var PX=new rC("kmRoq");var QX=function(){Y.call(this);this.b=new rB;this.h(this.b);new AB("realtime.media.audio.service.AudioVolumeService")};l(QX,wP);var RX=function(a){JO(a,mP)||wC(a,mP,function(a){return new QX(a)})};var SX=["Unusual removal of stream (id=",") which had no SSRC."];SX.raw=["Unusual removal of stream (id=",") which had no SSRC."];var TX=["Removing audio output for stream (id=","), ssrc (",")."];TX.raw=["Removing audio output for stream (id=","), ssrc (",")."];var UX=["Attempted to remove a non-existing or already removed audio\n       stream (id=",") in output manager."];UX.raw=["Attempted to remove a non-existing or already removed audio\n       stream (id=",") in output manager."];
var VX=["Stream (id=",") with no SSRC added."];VX.raw=["Stream (id=",") with no SSRC added."];var WX=["Creating audio output for stream (id=","), ssrc (","),\n     and output device (id=",")"];WX.raw=["Creating audio output for stream (id=","), ssrc (","),\n     and output device (id=",")"];
var XX=function(a,b,c){Y.call(this);this.j=a;this.f=b;this.b=new Map;this.g=c||function(a){for(var b=[],c=0;c<arguments.length;++c)b[c-0]=arguments[c];return new (Function.prototype.bind.apply(KX,[null].concat(xa(b))))};this.l=new iT("realtime.media.capture.OutputManager")};l(XX,Y);
var YX=function(a,b,c){var d=b.id;a.l.info(WX,d,c,"");b=a.g(a.j,b,rh,"");a.b.set(d,{wn:b,ssrc:c});c?(a=a.f,Ik(a.b,c)||a.b.set(c,[]),a.b.get(c).push(new vC(b))):a.l.b(VX,d);return b},ZX=function(a,b){if(a.b.has(b)){var c=a.b.get(b),d=c.wn;c=c.ssrc;a.l.info(TX,b,c);c?yC(a.f,c,d):a.l.b(SX,b);a.b.delete(b);Js(d)}else a.l.b(UX,b)};var aY=function(a){if(!a.ab){var b;for(b=a.constructor;b&&!b.od;)b=b.ra&&b.ra.constructor;b.od.Jj||(b.od.Jj=eP(b));b=new b.od.Jj(a);a.ab=b;a.Bh||(a.Bh=$X)}},$X=function(a){return this.ab.Bh(a)};var bY=function(a){return Od?Id?2:3:Pd?4:Qd?5:(void 0===a?0:a)?cd("Linux")?17:18:1};var cY=function(){};t(cY,$O);cY.prototype.init=hP();cY.prototype.Lf=hP();cY.prototype.Mf=hP();var dY={Ol:["BC","AD"],Nl:["Before Christ","Anno Domini"],em:"JFMAMJJASOND".split(""),Em:"JFMAMJJASOND".split(""),Zl:"January February March April May June July August September October November December".split(" "),Dm:"January February March April May June July August September October November December".split(" "),Am:"Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec".split(" "),Gm:"Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec".split(" "),en:"Sunday Monday Tuesday Wednesday Thursday Friday Saturday".split(" "),
Im:"Sunday Monday Tuesday Wednesday Thursday Friday Saturday".split(" "),Cm:"Sun Mon Tue Wed Thu Fri Sat".split(" "),Hm:"Sun Mon Tue Wed Thu Fri Sat".split(" "),Tt:"SMTWTFS".split(""),Fm:"SMTWTFS".split(""),Bm:["Q1","Q2","Q3","Q4"],lm:["1st quarter","2nd quarter","3rd quarter","4th quarter"],Dl:["AM","PM"],Nr:["EEEE, MMMM d, y","MMMM d, y","MMM d, y","M/d/yy"],Tv:["h:mm:ss a zzzz","h:mm:ss a z","h:mm:ss a","h:mm a"],Or:["{1} 'at' {0}","{1} 'at' {0}","{1}, {0}","{1}, {0}"],Rl:6,sw:[5,6],Sl:5},eY=dY;
eY=dY;var fY=function(){},hY=function(a){if("number"==typeof a){var b=new fY;b.f=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(":",Sc(c,2));c=d.join("")}b.g=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=gY(a);b.j=[c,c];b.b={Lv:a,kj:a};b.h=[];return b}b=new fY;b.g=a.id;b.f=-a.std_offset;b.j=a.names;b.b=a.names_ext;b.h=a.transitions;return b},gY=
function(a){var b=["GMT"];b.push(0>=a?"+":"-");a=Math.abs(a);b.push(Sc(Math.floor(a/60)%100,2),":",Sc(a%60,2));return b.join("")},iY=function(a,b){b=Date.UTC(b.getUTCFullYear(),b.getUTCMonth(),b.getUTCDate(),b.getUTCHours(),b.getUTCMinutes())/36E5;for(var c=0;c<a.h.length&&b>=a.h[c];)c+=2;return 0==c?0:a.h[c-1]};var lY=function(){this.f=[];this.b=eY;var a="HH:mm:ss";for(jY&&(a=a.replace(/\u200f/g,""));a;){for(var b=a,c=0;c<kY.length;++c){var d=a.match(kY[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.f.push({text:e,type:c});break}}if(b===a)throw Error("Malformed pattern part: "+a);}},kY=[/^'(?:[^']|'')*('|$)/,/^(?:G+|y+|M+|k+|S+|E+|a+|h+|K+|H+|c+|L+|Q+|d+|m+|s+|v+|V+|w+|z+|Z+)/,/^[^'GyMkSEahKHcLQdmsvVwzZ]+/],
mY=function(a){return a.getHours?a.getHours():0};
lY.prototype.format=function(a,b){if(!a)throw Error("The date to format must be non-null.");var c=b?6E4*(a.getTimezoneOffset()-(b.f-iY(b,a))):0,d=c?new Date(a.getTime()+c):a,e=d;b&&d.getTimezoneOffset()!=a.getTimezoneOffset()&&(d=new Date(d.getTime()+6E4*(d.getTimezoneOffset()-a.getTimezoneOffset())),e=new Date(a.getTime()+(c+(0<c?-864E5:864E5))));c=[];for(var f=0;f<this.f.length;++f){var h=this.f[f].text;1==this.f[f].type?c.push(nY(this,h,a,d,e,b)):c.push(h)}return c.join("")};
var oY=function(a,b){b=String(b);a=a.b||eY;if(void 0!==a.hn){for(var c=[],d=0;d<b.length;d++){var e=b.charCodeAt(d);c.push(48<=e&&57>=e?String.fromCharCode(a.hn+e-48):b.charAt(d))}b=c.join("")}return b},jY=!1,pY=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.");},nY=function(a,b,c,d,e,f){var h=b.length;switch(b.charAt(0)){case "G":return c=0<d.getFullYear()?
1:0,4<=h?a.b.Nl[c]:a.b.Ol[c];case "y":return c=d.getFullYear(),0>c&&(c=-c),2==h&&(c%=100),oY(a,Sc(c,h));case "M":a:switch(c=d.getMonth(),h){case 5:h=a.b.em[c];break a;case 4:h=a.b.Zl[c];break a;case 3:h=a.b.Am[c];break a;default:h=oY(a,Sc(c+1,h))}return h;case "k":return pY(e),oY(a,Sc(mY(e)||24,h));case "S":return oY(a,(e.getTime()%1E3/1E3).toFixed(Math.min(3,h)).substr(2)+(3<h?Sc(0,h-3):""));case "E":return c=d.getDay(),4<=h?a.b.en[c]:a.b.Cm[c];case "a":return pY(e),h=mY(e),a.b.Dl[12<=h&&24>h?1:
0];case "h":return pY(e),oY(a,Sc(mY(e)%12||12,h));case "K":return pY(e),oY(a,Sc(mY(e)%12,h));case "H":return pY(e),oY(a,Sc(mY(e),h));case "c":a:switch(c=d.getDay(),h){case 5:h=a.b.Fm[c];break a;case 4:h=a.b.Im[c];break a;case 3:h=a.b.Hm[c];break a;default:h=oY(a,Sc(c,1))}return h;case "L":a:switch(c=d.getMonth(),h){case 5:h=a.b.Em[c];break a;case 4:h=a.b.Dm[c];break a;case 3:h=a.b.Gm[c];break a;default:h=oY(a,Sc(c+1,h))}return h;case "Q":return c=Math.floor(d.getMonth()/3),4>h?a.b.Bm[c]:a.b.lm[c];
case "d":return oY(a,Sc(d.getDate(),h));case "m":return pY(e),oY(a,Sc(e.getMinutes(),h));case "s":return pY(e),oY(a,Sc(e.getSeconds(),h));case "v":return h=f||hY(c.getTimezoneOffset()),h.g;case "V":return a=f||hY(c.getTimezoneOffset()),2>=h?a.g:0<iY(a,c)?Qa(a.b.Jl)?a.b.Jl:a.b.DST_GENERIC_LOCATION:Qa(a.b.kj)?a.b.kj:a.b.STD_GENERIC_LOCATION;case "w":return c=a.b.Sl,e=new Date(e.getFullYear(),e.getMonth(),e.getDate()),b=a.b.Rl||0,c=e.valueOf()+864E5*(((Qa(c)?c:3)-b+7)%7-((e.getDay()+6)%7-b+7)%7),oY(a,
Sc(Math.floor(Math.round((c-(new Date((new Date(c)).getFullYear(),0,1)).valueOf())/864E5)/7)+1,h));case "z":return a=f||hY(c.getTimezoneOffset()),4>h?a.j[0<iY(a,c)?2:0]:a.j[0<iY(a,c)?3:1];case "Z":return e=f||hY(c.getTimezoneOffset()),4>h?(h=-(e.f-iY(e,c)),a=[0>h?"-":"+"],h=Math.abs(h),a.push(Sc(Math.floor(h/60)%100,2),Sc(h%60,2)),h=a.join("")):h=oY(a,gY(e.f-iY(e,c))),h;default:return""}};var qY=function(a){var b=T(a,aO,1)||new aO;V(a,1,b);return b},rY=function(a){var b=T(a,vD,5)||new vD;V(a,5,b);return b},sY=function(a){a=qY(a);var b=T(a,ZM,1)||new ZM;V(a,1,b);return b},tY=function(a){var b=T(a,TN,3)||new TN;V(a,3,b);return b};var uY=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&&"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 vY=function(){function a(){e[0]=1732584193;e[1]=4023233417;e[2]=2562383102;e[3]=271733878;e[4]=3285377520;z=u=0}function b(a){for(var b=h,c=0;64>c;c+=4)b[c/4]=a[c]<<24|a[c+1]<<16|a[c+2]<<8|a[c+3];for(c=16;80>c;c++)a=b[c-3]^b[c-8]^b[c-14]^b[c-16],b[c]=(a<<1|a>>>31)&4294967295;a=e[0];var d=e[1],f=e[2],k=e[3],n=e[4];for(c=0;80>c;c++){if(40>c)if(20>c){var u=k^d&(f^k);var z=1518500249}else u=d^f^k,z=1859775393;else 60>c?(u=d&f|k&(d|f),z=2400959708):(u=d^f^k,z=3395469782);u=((a<<5|a>>>27)&4294967295)+
u+n+z+b[c]&4294967295;n=k;k=f;f=(d<<30|d>>>2)&4294967295;d=a;a=u}e[0]=e[0]+a&4294967295;e[1]=e[1]+d&4294967295;e[2]=e[2]+f&4294967295;e[3]=e[3]+k&4294967295;e[4]=e[4]+n&4294967295}function c(a,c){if("string"===typeof a){a=unescape(encodeURIComponent(a));for(var d=[],e=0,h=a.length;e<h;++e)d.push(a.charCodeAt(e));a=d}c||(c=a.length);d=0;if(0==u)for(;d+64<c;)b(a.slice(d,d+64)),d+=64,z+=64;for(;d<c;)if(f[u++]=a[d++],z++,64==u)for(u=0,b(f);d+64<c;)b(a.slice(d,d+64)),d+=64,z+=64}function d(){var a=[],
d=8*z;56>u?c(k,56-u):c(k,64-(u-56));for(var h=63;56<=h;h--)f[h]=d&255,d>>>=8;b(f);for(h=d=0;5>h;h++)for(var n=24;0<=n;n-=8)a[d++]=e[h]>>n&255;return a}for(var e=[],f=[],h=[],k=[128],n=1;64>n;++n)k[n]=0;var u,z;a();return{reset:a,update:c,digest:d,digestString:function(){for(var a=d(),b="",c=0;c<a.length;c++)b+="0123456789ABCDEF".charAt(Math.floor(a[c]/16))+"0123456789ABCDEF".charAt(a[c]%16);return b}}};var xY=function(a,b,c){var d=[],e=[];if(1==(fb(c)?2:1))return e=[b,a],w(d,function(a){e.push(a)}),wY(e.join(" "));var f=[],h=[];w(c,function(a){h.push(a.key);f.push(a.value)});c=Math.floor((new Date).getTime()/1E3);e=0==f.length?[c,b,a]:[f.join(":"),c,b,a];w(d,function(a){e.push(a)});a=wY(e.join(" "));a=[c,a];0==h.length||a.push(h.join(""));return a.join("_")},wY=function(a){var b=vY();b.update(a);return b.digestString().toLowerCase()};var yY=function(){this.b=document||{cookie:""}};g=yY.prototype;g.set=function(a,b,c,d,e,f){if(/[;=\s]/.test(a))throw Error('Invalid cookie name "'+a+'"');if(/[;\r\n]/.test(b))throw Error('Invalid cookie value "'+b+'"');Qa(c)||(c=-1);e=e?";domain="+e:"";d=d?";path="+d:"";f=f?";secure":"";c=0>c?"":0==c?";expires="+(new Date(1970,1,1)).toUTCString():";expires="+(new Date(q()+1E3*c)).toUTCString();this.b.cookie=a+"="+b+e+d+c+f};
g.get=function(a,b){for(var c=a+"=",d=(this.b.cookie||"").split(";"),e=0,f;e<d.length;e++){f=Jc(d[e]);if(0==f.lastIndexOf(c,0))return f.substr(c.length);if(f==a)return""}return b};g.remove=function(a,b,c){var d=Qa(this.get(a));this.set(a,"",0,b,c);return d};g.ub=function(){return zY(this).keys};g.ea=function(){return zY(this).values};g.cc=function(){return!this.b.cookie};g.pa=function(){return this.b.cookie?(this.b.cookie||"").split(";").length:0};
g.re=function(a){for(var b=zY(this).values,c=0;c<b.length;c++)if(b[c]==a)return!0;return!1};g.clear=function(){for(var a=zY(this).keys,b=a.length-1;0<=b;b--)this.remove(a[b])};var zY=function(a){a=(a.b.cookie||"").split(";");for(var b=[],c=[],d,e,f=0;f<a.length;f++)e=Jc(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 AY=function(a){var b=uY(String(Pa.location.href)),c=Pa.__OVERRIDE_SID;null==c&&(c=(new yY).get("SID"));if(c&&(b=(c=0==b.indexOf("https:")||0==b.indexOf("chrome-extension:"))?Pa.__SAPISID:Pa.__APISID,null==b&&(b=(new yY).get(c?"SAPISID":"APISID")),b)){c=c?"SAPISIDHASH":"APISIDHASH";var d=String(Pa.location.href);return d&&b&&c?[c,xY(uY(d),b,a||null)].join(" "):null}return null};var BY=function(a,b,c,d){this.g=a;this.j=b;this.h=this.b=a;this.s=c||0;this.m=d||2};BY.prototype.f=0;BY.prototype.reset=function(){this.h=this.b=this.g;this.f=0};var CY=function(a){a.h=Math.min(a.j,a.h*a.m);a.b=Math.min(a.j,a.h+(a.s?Math.round(a.s*(Math.random()-.5)*2*a.h):0));a.f++};var DY=function(a,b,c){Zv(a.url,function(a){a=a.target;iw(a)?b(jw(a)):c(a.Ia())},a.requestType,a.body,a.requestHeaders,0,a.withCredentials)};var EY=function(a){N(this,a,0,-1,null)};t(EY,M);EY.prototype.w=function(){var a=new y;FY(this,a);return A(a)};var FY=function(a,b){var c=O(a,1);null!=c&&G(b,1,c);c=O(a,2);null!=c&&G(b,2,c);c=O(a,3);null!=c&&G(b,3,c)},GY=function(a){N(this,a,0,-1,null)};t(GY,M);GY.prototype.w=function(){var a=new y;HY(this,a);return A(a)};
var HY=function(a,b){var c=O(a,1);null!=c&&G(b,1,c);c=O(a,2);null!=c&&G(b,2,c);c=O(a,3);null!=c&&G(b,3,c);c=O(a,4);null!=c&&G(b,4,c);c=O(a,5);null!=c&&G(b,5,c);c=O(a,6);null!=c&&G(b,6,c);c=O(a,7);null!=c&&G(b,7,c)},IY=function(a){N(this,a,0,-1,null)};t(IY,M);IY.prototype.w=function(){var a=new y;JY(this,a);return A(a)};var JY=function(a,b){var c=O(a,1);null!=c&&J(b,1,c);c=O(a,2);null!=c&&J(b,2,c)},LY=function(a){N(this,a,0,-1,KY)};t(LY,M);var KY=[1,2,3,4,5];
LY.prototype.w=function(){var a=new y;MY(this,a);return A(a)};var MY=function(a,b){var c=P(a,1);0<c.length&&si(b,1,c);c=P(a,2);0<c.length&&si(b,2,c);c=P(a,3);0<c.length&&ni(b,3,c);c=P(a,4);0<c.length&&oi(b,4,c);c=P(a,5);0<c.length&&oi(b,5,c)},OY=function(a){N(this,a,0,27,NY)};t(OY,M);var NY=[3,20];OY.prototype.w=function(){var a=new y;PY(this,a);return A(a)};
var PY=function(a,b){var c=O(a,1);null!=c&&gi(b,1,c);c=O(a,17);null!=c&&gi(b,17,c);c=O(a,21);null!=c&&E(b,21,c);c=O(a,2);null!=c&&J(b,2,c);c=O(a,11);null!=c&&C(b,11,c);c=O(a,26);null!=c&&J(b,26,c);c=O(a,12);null!=c&&C(b,12,c);c=O(a,10);null!=c&&F(b,10,c);c=U(a,IY,3);0<c.length&&K(b,3,c,JY);c=O(a,4);null!=c&&mi(b,4,c);c=T(a,QY,9);null!=c&&b.b(9,c,RY);c=O(a,6);null!=c&&mi(b,6,c);c=O(a,8);null!=c&&J(b,8,c);c=O(a,13);null!=c&&J(b,13,c);c=T(a,LY,7);null!=c&&b.b(7,c,MY);c=O(a,14);null!=c&&J(b,14,c);c=O(a,
15);if(null!=c&&null!=c){var d=c;if(null!=d){di(b,15,0);c=b.f;var e=d;d=0>e;e=2*Math.abs(e);var f=e>>>0;e=Math.floor((e-f)/4294967296)>>>0;Dh=f;Eh=e;f=Dh;e=Eh;d&&(0==f?0==e?e=f=4294967295:(e--,f=4294967295):f--);Dh=f;Eh=e;$h(c,Dh,Eh)}}c=T(a,SY,16);null!=c&&b.b(16,c,TY);c=O(a,18);null!=c&&mi(b,18,c);c=O(a,24);null!=c&&J(b,24,c);c=O(a,19);null!=c&&G(b,19,c);c=P(a,20);0<c.length&&ni(b,20,c);c=O(a,22);null!=c&&E(b,22,c);c=T(a,UY,23);null!=c&&b.b(23,c,VY);c=O(a,25);null!=c&&F(b,25,c);zi(a,b,WY,OY.prototype.m)};
OY.prototype.Ud=function(){return O(this,2)};var XY=function(a,b){S(a,11,b)},YY=function(a,b){S(a,8,b)},WY={},UY=function(a){N(this,a,0,-1,null)};t(UY,M);UY.prototype.w=function(){var a=new y;VY(this,a);return A(a)};var VY=function(a,b){var c=O(a,1);null!=c&&G(b,1,c);c=O(a,2);null!=c&&G(b,2,c)},SY=function(a){N(this,a,0,-1,ZY)};t(SY,M);var ZY=[2];SY.prototype.w=function(){var a=new y;TY(this,a);return A(a)};
var TY=function(a,b){var c=O(a,1);null!=c&&mi(b,1,c);c=O(a,4);null!=c&&J(b,4,c);c=Di(P(a,2));0<c.length&&ti(b,2,c);c=O(a,3);null!=c&&F(b,3,c)},$Y=function(a){N(this,a,0,-1,null)};t($Y,M);$Y.prototype.w=function(){var a=new y;aZ(this,a);return A(a)};var aZ=function(a,b){var c=O(a,1);null!=c&&F(b,1,c);c=O(a,2);null!=c&&F(b,2,c)},cZ=function(a){N(this,a,0,33,bZ)};t(cZ,M);var bZ=[31];cZ.prototype.w=function(){var a=new y;dZ(this,a);return A(a)};
var dZ=function(a,b){var c=O(a,1);null!=c&&E(b,1,c);c=O(a,2);null!=c&&J(b,2,c);c=O(a,18);null!=c&&E(b,18,c);c=O(a,3);null!=c&&C(b,3,c);c=O(a,4);null!=c&&J(b,4,c);c=O(a,5);null!=c&&J(b,5,c);c=O(a,8);null!=c&&J(b,8,c);c=O(a,9);null!=c&&J(b,9,c);c=O(a,6);null!=c&&J(b,6,c);c=O(a,7);null!=c&&J(b,7,c);c=O(a,10);null!=c&&J(b,10,c);c=O(a,11);null!=c&&J(b,11,c);c=O(a,12);null!=c&&J(b,12,c);c=O(a,13);null!=c&&J(b,13,c);c=O(a,14);null!=c&&J(b,14,c);c=O(a,15);null!=c&&J(b,15,c);c=O(a,16);null!=c&&J(b,16,c);c=
O(a,17);null!=c&&J(b,17,c);c=O(a,19);null!=c&&C(b,19,c);c=T(a,EY,32);null!=c&&b.b(32,c,FY);c=O(a,20);null!=c&&F(b,20,c);c=O(a,22);null!=c&&F(b,22,c);c=O(a,23);null!=c&&G(b,23,c);c=T(a,$Y,24);null!=c&&b.b(24,c,aZ);c=T(a,GY,25);null!=c&&b.b(25,c,HY);c=O(a,26);null!=c&&J(b,26,c);c=O(a,27);null!=c&&J(b,27,c);c=O(a,28);null!=c&&J(b,28,c);c=P(a,31);0<c.length&&si(b,31,c);zi(a,b,eZ,cZ.prototype.m)};cZ.prototype.getDeviceId=function(){return O(this,18)};cZ.prototype.getDevice=function(){return O(this,9)};
cZ.prototype.X=function(){return O(this,26)};var eZ={},fZ=function(a){N(this,a,0,-1,null)};t(fZ,M);fZ.prototype.w=function(){var a=new y;gZ(this,a);return A(a)};var gZ=function(a,b){var c=O(a,1);null!=c&&J(b,1,c);c=O(a,2);null!=c&&J(b,2,c);c=O(a,3);null!=c&&J(b,3,c);c=O(a,4);null!=c&&J(b,4,c)},hZ=function(a){N(this,a,0,-1,null)};t(hZ,M);hZ.prototype.w=function(){var a=new y;iZ(this,a);return A(a)};
var iZ=function(a,b){var c=O(a,1);null!=c&&J(b,1,c);c=O(a,2);null!=c&&J(b,2,c);c=O(a,3);null!=c&&J(b,3,c);c=O(a,4);null!=c&&J(b,4,c);c=O(a,5);null!=c&&J(b,5,c);c=O(a,6);null!=c&&J(b,6,c);c=O(a,7);null!=c&&J(b,7,c);c=O(a,8);null!=c&&C(b,8,c);c=O(a,9);null!=c&&C(b,9,c)},jZ=function(a){N(this,a,0,-1,null)};t(jZ,M);jZ.prototype.w=function(){var a=new y;kZ(this,a);return A(a)};
var kZ=function(a,b){var c=O(a,1);null!=c&&J(b,1,c);c=O(a,2);null!=c&&J(b,2,c);c=O(a,3);null!=c&&J(b,3,c);c=O(a,4);null!=c&&J(b,4,c);c=O(a,5);null!=c&&C(b,5,c);c=O(a,6);null!=c&&C(b,6,c);c=O(a,7);null!=c&&J(b,7,c)},lZ=function(a){N(this,a,0,-1,null)};t(lZ,M);lZ.prototype.w=function(){var a=new y;mZ(this,a);return A(a)};
var mZ=function(a,b){var c=O(a,1);null!=c&&J(b,1,c);c=O(a,2);null!=c&&J(b,2,c);c=O(a,3);null!=c&&J(b,3,c);c=O(a,4);null!=c&&J(b,4,c);c=O(a,5);null!=c&&J(b,5,c);c=O(a,12);null!=c&&J(b,12,c);c=O(a,6);null!=c&&J(b,6,c);c=O(a,7);null!=c&&J(b,7,c);c=O(a,8);null!=c&&J(b,8,c);c=O(a,9);null!=c&&C(b,9,c);c=O(a,10);null!=c&&C(b,10,c);c=O(a,11);null!=c&&J(b,11,c)},nZ=function(a){N(this,a,0,-1,null)};t(nZ,M);nZ.prototype.w=function(){var a=new y;oZ(this,a);return A(a)};
var oZ=function(a,b){var c=O(a,1);null!=c&&J(b,1,c);c=O(a,2);null!=c&&G(b,2,c);c=O(a,3);null!=c&&J(b,3,c);c=O(a,4);null!=c&&J(b,4,c);c=O(a,5);null!=c&&J(b,5,c)};nZ.prototype.getDeviceId=function(){return O(this,1)};var pZ=function(a){N(this,a,0,-1,null)};t(pZ,M);pZ.prototype.w=function(){var a=new y;qZ(this,a);return A(a)};
var qZ=function(a,b){var c=O(a,1);null!=c&&J(b,1,c);c=O(a,7);null!=c&&J(b,7,c);c=O(a,3);null!=c&&J(b,3,c);c=O(a,4);null!=c&&J(b,4,c);c=O(a,5);null!=c&&J(b,5,c);c=O(a,6);null!=c&&J(b,6,c);c=O(a,8);null!=c&&J(b,8,c)},rZ=function(a){N(this,a,0,-1,null)};t(rZ,M);rZ.prototype.w=function(){var a=new y;sZ(this,a);return A(a)};
var sZ=function(a,b){var c=O(a,1);null!=c&&G(b,1,c);c=O(a,2);null!=c&&J(b,2,c);c=O(a,3);null!=c&&J(b,3,c);c=O(a,4);null!=c&&J(b,4,c);c=O(a,5);null!=c&&J(b,5,c);c=O(a,6);null!=c&&J(b,6,c);c=O(a,7);null!=c&&J(b,7,c);c=O(a,8);null!=c&&J(b,8,c);c=O(a,9);null!=c&&J(b,9,c);c=O(a,10);null!=c&&J(b,10,c)},tZ=function(a){N(this,a,0,-1,null)};t(tZ,M);tZ.prototype.w=function(){var a=new y;uZ(this,a);return A(a)};
var uZ=function(a,b){var c=O(a,1);null!=c&&J(b,1,c);c=O(a,2);null!=c&&J(b,2,c);c=O(a,3);null!=c&&G(b,3,c);c=O(a,4);null!=c&&J(b,4,c);c=O(a,5);null!=c&&J(b,5,c);c=O(a,6);null!=c&&G(b,6,c);c=O(a,7);null!=c&&J(b,7,c)},vZ=function(a){N(this,a,0,-1,null)};t(vZ,M);vZ.prototype.w=function(){var a=new y;wZ(this,a);return A(a)};var wZ=function(a,b){var c=O(a,1);null!=c&&G(b,1,c);c=O(a,2);null!=c&&J(b,2,c);c=O(a,3);null!=c&&J(b,3,c)},xZ=function(a){N(this,a,0,-1,null)};t(xZ,M);
xZ.prototype.w=function(){var a=new y;yZ(this,a);return A(a)};var yZ=function(a,b){var c=O(a,1);null!=c&&J(b,1,c);c=O(a,2);null!=c&&J(b,2,c);c=O(a,3);null!=c&&J(b,3,c);c=O(a,4);null!=c&&J(b,4,c);c=O(a,5);null!=c&&J(b,5,c);c=O(a,6);null!=c&&J(b,6,c);c=O(a,7);null!=c&&J(b,7,c)},zZ=function(a){N(this,a,0,-1,null)};t(zZ,M);zZ.prototype.w=function(){var a=new y;AZ(this,a);return A(a)};var AZ=function(a,b){var c=O(a,1);null!=c&&J(b,1,c);c=O(a,2);null!=c&&J(b,2,c)},BZ=function(a){N(this,a,0,-1,null)};
t(BZ,M);BZ.prototype.w=function(){var a=new y;CZ(this,a);return A(a)};
var CZ=function(a,b){var c=O(a,1);null!=c&&G(b,1,c);c=O(a,6);null!=c&&J(b,6,c);c=O(a,7);null!=c&&J(b,7,c);c=T(a,cZ,2);null!=c&&b.b(2,c,dZ);c=T(a,hZ,3);null!=c&&b.b(3,c,iZ);c=T(a,lZ,4);null!=c&&b.b(4,c,mZ);c=T(a,pZ,5);null!=c&&b.b(5,c,qZ);c=T(a,rZ,8);null!=c&&b.b(8,c,sZ);c=T(a,nZ,10);null!=c&&b.b(10,c,oZ);c=T(a,jZ,13);null!=c&&b.b(13,c,kZ);c=T(a,xZ,15);null!=c&&b.b(15,c,yZ);c=T(a,zZ,16);null!=c&&b.b(16,c,AZ);c=T(a,fZ,9);null!=c&&b.b(9,c,gZ);c=T(a,tZ,11);null!=c&&b.b(11,c,uZ);c=T(a,vZ,14);null!=c&&
b.b(14,c,wZ);c=O(a,12);null!=c&&E(b,12,c)},EZ=function(a){N(this,a,0,-1,DZ)};t(EZ,M);var DZ=[1];EZ.prototype.w=function(){var a=new y;FZ(this,a);return A(a)};var FZ=function(a,b){a=P(a,1);0<a.length&&si(b,1,a)},QY=function(a){N(this,a,0,-1,null)};t(QY,M);QY.prototype.w=function(){var a=new y;RY(this,a);return A(a)};var RY=function(a,b){var c=O(a,1);null!=c&&C(b,1,c);c=O(a,2);null!=c&&J(b,2,c);c=O(a,3);null!=c&&J(b,3,c)};QY.prototype.mc=function(){return O(this,3)};
var HZ=function(a){N(this,a,0,15,GZ)};t(HZ,M);var GZ=[3,5];
HZ.prototype.w=function(){var a=new y;var b=O(this,4);null!=b&&gi(a,4,b);b=O(this,8);null!=b&&gi(a,8,b);b=T(this,BZ,1);null!=b&&a.b(1,b,CZ);b=O(this,2);null!=b&&G(a,2,b);b=O(this,6);null!=b&&J(a,6,b);b=O(this,7);null!=b&&J(a,7,b);b=U(this,OY,3);0<b.length&&K(a,3,b,PY);b=Di(P(this,5));0<b.length&&ti(a,5,b);b=O(this,14);null!=b&&E(a,14,b);b=O(this,9);null!=b&&G(a,9,b);b=O(this,10);null!=b&&G(a,10,b);b=T(this,IZ,11);null!=b&&a.b(11,b,JZ);b=T(this,KZ,12);null!=b&&a.b(12,b,LZ);b=T(this,MZ,13);null!=b&&
a.b(13,b,NZ);zi(this,a,OZ,HZ.prototype.m);return A(a)};var PZ=function(a){var b=q().toString();S(a,4,b)},OZ={},IZ=function(a){N(this,a,0,-1,null)};t(IZ,M);IZ.prototype.w=function(){var a=new y;JZ(this,a);return A(a)};var JZ=function(a,b){var c=O(a,1);null!=c&&F(b,1,c);c=O(a,2);null!=c&&F(b,2,c);c=O(a,3);null!=c&&G(b,3,c);c=O(a,4);null!=c&&F(b,4,c)},KZ=function(a){N(this,a,0,-1,null)};t(KZ,M);KZ.prototype.w=function(){var a=new y;LZ(this,a);return A(a)};
var LZ=function(a,b){var c=O(a,1);null!=c&&E(b,1,c);c=O(a,2);null!=c&&E(b,2,c);c=O(a,3);null!=c&&J(b,3,c)};KZ.prototype.fa=function(){return O(this,3)};var MZ=function(a){N(this,a,0,-1,null)};t(MZ,M);MZ.prototype.w=function(){var a=new y;NZ(this,a);return A(a)};var NZ=function(a,b){var c=O(a,3);null!=c&&E(b,3,c);c=O(a,1);null!=c&&gi(b,1,c);c=O(a,2);null!=c&&F(b,2,c)},QZ=function(a){N(this,a,0,-1,null)};t(QZ,M);QZ.prototype.w=function(){var a=new y;RZ(this,a);return A(a)};
var RZ=function(a,b){var c=O(a,1);null!=c&&J(b,1,c);c=O(a,2);null!=c&&G(b,2,c);c=O(a,3);null!=c&&G(b,3,c)},TZ=function(a){N(this,a,0,-1,SZ)};t(TZ,M);var SZ=[1];TZ.prototype.w=function(){var a=new y;UZ(this,a);return A(a)};var UZ=function(a,b){var c=U(a,QZ,1);0<c.length&&K(b,1,c,RZ);c=O(a,2);null!=c&&E(b,2,c)},WZ=function(a){N(this,a,0,-1,VZ)};t(WZ,M);var VZ=[1];WZ.prototype.w=function(){var a=new y;XZ(this,a);return A(a)};
var XZ=function(a,b){a=P(a,1);0<a.length&&si(b,1,a)},YZ=function(a){N(this,a,0,-1,null)};t(YZ,M);YZ.prototype.w=function(){var a=new y;ZZ(this,a);return A(a)};var ZZ=function(a,b){var c=O(a,1);null!=c&&C(b,1,c);c=O(a,2);null!=c&&G(b,2,c)},a_=function(a){N(this,a,0,6,$Z)};t(a_,M);var $Z=[5];
a_.prototype.w=function(){var a=new y;var b=O(this,1);null!=b&&gi(a,1,b);b=T(this,EZ,2);null!=b&&a.b(2,b,FZ);b=T(this,TZ,3);null!=b&&a.b(3,b,UZ);b=T(this,WZ,4);null!=b&&a.b(4,b,XZ);b=U(this,YZ,5);0<b.length&&K(a,5,b,ZZ);zi(this,a,b_,a_.prototype.m);return A(a)};var b_={},c_=function(a){N(this,a,0,-1,null)};t(c_,M);c_.prototype.w=function(){var a=new y;d_(this,a);return A(a)};var d_=function(a,b){a=O(a,1);null!=a&&C(b,1,a)},e_=new function(){this.Ah=175237375;this.rf=c_;this.b=0};
b_[175237375]=new function(a,b,c,d){this.Rn=a;this.th=c;this.Bj=d}(e_,Lh.prototype.h,y.prototype.b,d_,function(a,b){for(;Nh(b)&&!Mh(b);)switch(b.f){case 1:var c=b.b.m();S(a,1,c);break;default:Oh(b)}return a},!1);var f_=function(a,b,c,d,e,f,h,k,n){Y.call(this);this.va=a;this.ta=b||Ya;this.j=new HZ;this.wa=k||DY;this.f=[];this.la="";this.Ga=ob(ze,0,1);this.m=d||null;this.K=c||null;this.A=f||!1;this.D=n||null;this.ma=this.M=-1;this.P=!1;this.l=ls("playlog.clearcut.ClearcutBase");this.Ba=!h;this.B=null;this.C=0;this.Ca=1;this.Z=e||!1;a=new BZ;S(a,1,1);this.T=a;V(this.j,1,a);S(this.j,2,this.va);this.g=new BY(1E4,3E5,.1);this.b=new gu(this.g.b);this.h(this.b);ct(this.b,"tick",wk(this.flush),!1,this);this.u=new gu(6E5);
this.h(this.u);ct(this.u,"tick",wk(this.flush),!1,this);this.A||this.u.start();this.Z||(ct(Re(),"beforeunload",this.o,!1,this),ct(Re(),"unload",this.o,!1,this),ct(document,"pagehide",this.o,!1,this))};t(f_,Y);f_.prototype.ja=function(){this.o();f_.ra.ja.call(this)};var g_=function(a,b){a.g=new BY(1>b?1:b,3E5,.1);hu(a.b,a.g.b)};
f_.prototype.log=function(a){a=Ri(a);var b=this.Ca++;S(a,21,b);O(a,1)||(b=q().toString(),S(a,1,b));for(;1E3<=this.f.length;)this.f.shift(),++this.C;this.f.push(a);this.I(new h_(a));this.A||this.b.enabled||this.b.start()};
f_.prototype.flush=function(a,b){if(0==this.f.length)a&&a();else{var c=q();if(this.ma>c&&this.M<c)W(this.l,"Not flushing because server requested delay."),b&&b();else{var d=Ri(this.j);PZ(d);Ji(d,3,this.f);S(d,14,this.C);c={};var e=this.ta();e&&(c.Authorization=e);this.m||(this.m=.005>this.Ga()?"https://www.google.com/log?format=json":"https://play.google.com/log?format=json");var f=this.m;this.K&&(c["X-Goog-AuthUser"]=this.K,f=cq(f,"authuser",this.K));this.D&&(c["X-Goog-PageId"]=this.D,f=cq(f,"pageId",
this.D));if(e&&this.la==e)W(this.l,"XHR with unauthorized request not retried"),b&&b();else{W(this.l,"Flushing log to clearcut.");this.f=[];this.b.enabled&&this.b.stop();this.C=0;var h=d.ya(),k=1;this.B&&this.B.isSupported()&&(c["Content-Encoding"]="gzip",c["Content-Type"]="application/binary",h=i_.Kh(Uint8Array.from(ph(h))),k=2);c={url:f,body:h,b:k,requestHeaders:c,requestType:"POST",withCredentials:this.Ba};f=p(function(b){this.g.reset();hu(this.b,this.g.b);if(b){try{var c=JSON.parse(b.replace(")]}'\n",
""));var d=new a_(c)}catch(B){os(this.l,"Response parse failed: "+B)}d&&(b=Q(d,1,"-1"),b=Number(b),0<b&&(this.M=q(),this.ma=this.M+b),d=d.m(e_))&&(d=Q(d,1,-1),-1!=d&&(this.P||g_(this,d)))}a&&a()},this);h=p(function(a){var c=U(d,OY,3);CY(this.g);hu(this.b,this.g.b);401==a&&e&&(this.la=e);if(500<=a&&600>a||401==a||0==a)this.f=c.concat(this.f),this.A||this.b.enabled||this.b.start();os(this.l,"Flush failed. Status code: "+a);b&&b()},this);this.wa(c,f,h)}}}};f_.prototype.o=function(){this.flush()};
var h_=function(){this.type="event-logged"};t(h_,X);var j_=!1,k_="",l_=function(a){a=a.match(/[\d]+/g);if(!a)return"";a.length=3;return a.join(".")};
(function(){if(navigator.plugins&&navigator.plugins.length){var a=navigator.plugins["Shockwave Flash"];if(a&&(j_=!0,a.description)){k_=l_(a.description);return}if(navigator.plugins["Shockwave Flash 2.0"]){j_=!0;k_="2.0.0.11";return}}if(navigator.mimeTypes&&navigator.mimeTypes.length&&(a=navigator.mimeTypes["application/x-shockwave-flash"],j_=!(!a||!a.enabledPlugin))){k_=l_(a.enabledPlugin.description);return}try{var b=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7");j_=!0;k_=l_(b.GetVariable("$version"));
return}catch(c){}try{b=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6");j_=!0;k_="6.0.21";return}catch(c){}try{b=new ActiveXObject("ShockwaveFlash.ShockwaveFlash"),j_=!0,k_=l_(b.GetVariable("$version"))}catch(c){}})();var m_=j_,n_=k_;var o_=Dd?"opera":Fd?"edge":Ed?"ie":rh?"firefox":sh?"iphone":th?"ipad":uh?"android":vh?"chrome":wh?"safari":"unknown";var q_=function(){return!p_()&&(cd("iPod")||cd("iPhone")||cd("Android")||cd("IEMobile"))},p_=function(){return cd("iPad")||cd("Android")&&!cd("Mobile")||cd("Silk")};var r_=function(a,b,c,d,e,f){f_.call(this,a,AY,b,c,d,e,void 0,DY,f);a=this.T;d=this.Z;b=new tZ;c=new fZ;e=q_()||p_()?p_()?2:q_()?1:0:3;S(b,6,cd("Android")?3:cd("CrOS")?5:cd("CrKey")?9:cd("Windows")?2:cd("iPad")?6:xd()?7:cd("iPod")?8:cd("Linux")?4:cd("Macintosh")?1:0);f=Zc;var h="";cd("Windows")?(h=/Windows (?:NT|Phone) ([0-9.]+)/,h=(f=h.exec(f))?f[1]:"0.0"):yd()?(h=/(?:iPhone|iPod|iPad|CPU)\s+OS\s+(\S+)/,h=(f=h.exec(f))&&f[1].replace(/_/g,".")):cd("Macintosh")?(h=/Mac OS X ([0-9_.]+)/,h=(f=h.exec(f))?
f[1].replace(/_/g,"."):"10"):cd("Android")?(h=/Android\s+([^\);]+)(\)|;)/,h=(f=h.exec(f))&&f[1]):cd("CrOS")&&(h=/(?:CrOS\s+(?:i686|x86_64)\s+([0-9.]+))/,h=(f=h.exec(f))&&f[1]);S(b,2,h||"");S(b,3,e);d||(d=Re(),e=document.documentElement.getAttribute("lang"),S(b,5,e),S(c,1,d.navigator.language||d.navigator.browserLanguage));S(c,2,o_);S(c,3,$n);m_&&S(c,4,n_);V(a,11,b);V(a,9,c);V(this.j,1,this.T)};t(r_,f_);/*

 pako 1.0.6 nodeca/pako
 Copyright (C) 2014-2017 by Vitaly Puzrin and Andrei Tuputcyn

 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 1.2.8
 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
*/
var i_=function(){var a={},b={};(function(c){if("object"===typeof a&&"undefined"!==typeof b)b.Qb=c();else if("function"===typeof define&&define.Pw)define([],c);else{var d;"undefined"!==typeof window?d=window:"undefined"!==typeof global?d=global:"undefined"!==typeof self?d=self:d=this;d.px=c()}})(function(){return function h(a,b,f){function d(k,n){if(!b[k]){if(!a[k]){var u="function"==typeof require&&require;if(!n&&u)return u(k,!0);if(e)return e(k,!0);n=Error("Cannot find module '"+k+"'");throw n.code=
"MODULE_NOT_FOUND",n;}n=b[k]={Qb:{}};a[k][0].call(n.Qb,function(b){var e=a[k][1][b];return d(e?e:b)},n,n.Qb,h,a,b,f)}return b[k].Qb}for(var e="function"==typeof require&&require,u=0;u<f.length;u++)d(f[u]);return d}({1:[function(a,b,f){function d(a){if(!(this instanceof d))return new d(a);a=this.options=u.assign({level:-1,method:8,uh:16384,Za:15,so:8,Mc:0,Xf:""},a||{});a.raw&&0<a.Za?a.Za=-a.Za:a.Kh&&0<a.Za&&16>a.Za&&(a.Za+=16);this.jc=0;this.msg="";this.ended=!1;this.Tc=[];this.qa=new D;this.qa.ia=
0;var b=n.In(this.qa,a.level,a.method,a.Za,a.so,a.Mc);if(0!==b)throw Error(B[b]);a.Nh&&n.Kn(this.qa,a.Nh);if(a.te){var e;"string"===typeof a.te?e=z.Gi(a.te):"[object ArrayBuffer]"===R.call(a.te)?e=new Uint8Array(a.te):e=a.te;b=n.Jn(this.qa,e);if(0!==b)throw Error(B[b]);this.Ow=!0}}function e(a,b){b=new d(b);b.push(a,!0);if(b.jc)throw b.msg||B[b.jc];return b.result}var n=a("./zlib/deflate"),u=a("./utils/common"),z=a("./utils/strings"),B=a("./zlib/messages"),D=a("./zlib/zstream"),R=Object.prototype.toString;
d.prototype.push=function(a,b){var d=this.qa,e=this.options.uh;if(this.ended)return!1;var f=b===~~b?b:!0===b?4:0;"string"===typeof a?d.input=z.Gi(a):"[object ArrayBuffer]"===R.call(a)?d.input=new Uint8Array(a):d.input=a;d.Mb=0;d.Ma=d.input.length;do{0===d.ia&&(d.xb=new u.wc(e),d.jb=0,d.ia=e);a=n.Hj(d,f);if(1!==a&&0!==a)return this.ce(a),this.ended=!0,!1;if(0===d.ia||0===d.Ma&&(4===f||2===f))"string"===this.options.Xf?this.Jf(z.zn(u.fh(d.xb,d.jb))):this.Jf(u.fh(d.xb,d.jb))}while((0<d.Ma||0===d.ia)&&
1!==a);if(4===f)return a=n.Hn(this.qa),this.ce(a),this.ended=!0,0===a;2===f&&(this.ce(0),d.ia=0);return!0};d.prototype.Jf=function(a){this.Tc.push(a)};d.prototype.ce=function(a){0===a&&(this.result="string"===this.options.Xf?this.Tc.join(""):u.Ch(this.Tc));this.Tc=[];this.jc=a;this.msg=this.qa.msg};f.Zr=d;f.Hj=e;f.Vw=function(a,b){b=b||{};b.raw=!0;return e(a,b)};f.Kh=function(a,b){b=b||{};b.Kh=!0;return e(a,b)}},{"./utils/common":3,"./utils/strings":4,"./zlib/deflate":8,"./zlib/messages":13,"./zlib/zstream":15}],
2:[function(a,b,f){function d(a){if(!(this instanceof d))return new d(a);var b=this.options=u.assign({uh:16384,Za:0,Xf:""},a||{});b.raw&&0<=b.Za&&16>b.Za&&(b.Za=-b.Za,0===b.Za&&(b.Za=-15));!(0<=b.Za&&16>b.Za)||a&&a.Za||(b.Za+=32);15<b.Za&&48>b.Za&&0===(b.Za&15)&&(b.Za|=15);this.jc=0;this.msg="";this.ended=!1;this.Tc=[];this.qa=new R;this.qa.ia=0;a=n.io(this.qa,b.Za);if(a!==B.ne)throw Error(D[a]);this.Nh=new la;n.ho(this.qa,this.Nh)}function e(a,b){b=new d(b);b.push(a,!0);if(b.jc)throw b.msg||D[b.jc];
return b.result}var n=a("./zlib/inflate"),u=a("./utils/common"),z=a("./utils/strings"),B=a("./zlib/constants"),D=a("./zlib/messages"),R=a("./zlib/zstream"),la=a("./zlib/gzheader"),ra=Object.prototype.toString;d.prototype.push=function(a,b){var d=this.qa,e=this.options.uh,f=this.options.te,h,k=!1;if(this.ended)return!1;var D=b===~~b?b:!0===b?B.lg:B.sj;"string"===typeof a?d.input=z.yn(a):"[object ArrayBuffer]"===ra.call(a)?d.input=new Uint8Array(a):d.input=a;d.Mb=0;d.Ma=d.input.length;do{0===d.ia&&
(d.xb=new u.wc(e),d.jb=0,d.ia=e);a=n.jk(d,B.sj);a===B.kn&&f&&("string"===typeof f?h=z.Gi(f):"[object ArrayBuffer]"===ra.call(f)?h=new Uint8Array(f):h=f,a=n.jo(this.qa,h));a===B.jn&&!0===k&&(a=B.ne,k=!1);if(a!==B.mg&&a!==B.ne)return this.ce(a),this.ended=!0,!1;if(d.jb&&(0===d.ia||a===B.mg||0===d.Ma&&(D===B.lg||D===B.tj)))if("string"===this.options.Xf){b=z.iq(d.xb,d.jb);var R=d.jb-b;var la=z.An(d.xb,b);d.jb=R;d.ia=e-R;R&&u.hc(d.xb,d.xb,b,R,0);this.Jf(la)}else this.Jf(u.fh(d.xb,d.jb));0===d.Ma&&0===
d.ia&&(k=!0)}while((0<d.Ma||0===d.ia)&&a!==B.mg);a===B.mg&&(D=B.lg);if(D===B.lg)return a=n.fo(this.qa),this.ce(a),this.ended=!0,a===B.ne;D===B.tj&&(this.ce(B.ne),d.ia=0);return!0};d.prototype.Jf=function(a){this.Tc.push(a)};d.prototype.ce=function(a){a===B.ne&&(this.result="string"===this.options.Xf?this.Tc.join(""):u.Ch(this.Tc));this.Tc=[];this.jc=a;this.msg=this.qa.msg};f.at=d;f.jk=e;f.hx=function(a,b){b=b||{};b.raw=!0;return e(a,b)};f.ux=e},{"./utils/common":3,"./utils/strings":4,"./zlib/constants":6,
"./zlib/gzheader":9,"./zlib/inflate":11,"./zlib/messages":13,"./zlib/zstream":15}],3:[function(a,b,f){function d(a,b){return Object.prototype.hasOwnProperty.call(a,b)}a="undefined"!==typeof Uint8Array&&"undefined"!==typeof Uint16Array&&"undefined"!==typeof Int32Array;f.assign=function(a){for(var b=Array.prototype.slice.call(arguments,1);b.length;){var e=b.shift();if(e){if("object"!==typeof e)throw new TypeError(e+"must be non-object");for(var f in e)d(e,f)&&(a[f]=e[f])}}return a};f.fh=function(a,
b){if(a.length===b)return a;if(a.subarray)return a.subarray(0,b);a.length=b;return a};var e={hc:function(a,b,d,e,f){if(b.subarray&&a.subarray)a.set(b.subarray(d,d+e),f);else for(var h=0;h<e;h++)a[f+h]=b[d+h]},Ch:function(a){var b,d;var e=d=0;for(b=a.length;e<b;e++)d+=a[e].length;var f=new Uint8Array(d);e=d=0;for(b=a.length;e<b;e++){var h=a[e];f.set(h,d);d+=h.length}return f}},n={hc:function(a,b,d,e,f){for(var h=0;h<e;h++)a[f+h]=b[d+h]},Ch:function(a){return[].concat.apply([],a)}};f.Xp=function(a){a?
(f.wc=Uint8Array,f.Vb=Uint16Array,f.kf=Int32Array,f.assign(f,e)):(f.wc=Array,f.Vb=Array,f.kf=Array,f.assign(f,n))};f.Xp(a)},{}],4:[function(a,b,f){function d(a,b){if(65537>b&&(a.subarray||!a.subarray))return String.fromCharCode.apply(null,e.fh(a,b));for(var d="",f=0;f<b;f++)d+=String.fromCharCode(a[f]);return d}var e=a("./common"),n=new e.wc(256);for(a=0;256>a;a++)n[a]=252<=a?6:248<=a?5:240<=a?4:224<=a?3:192<=a?2:1;n[254]=n[254]=1;f.Gi=function(a){var b,d,f=a.length,h=0;for(b=0;b<f;b++){var k=a.charCodeAt(b);
if(55296===(k&64512)&&b+1<f){var n=a.charCodeAt(b+1);56320===(n&64512)&&(k=65536+(k-55296<<10)+(n-56320),b++)}h+=128>k?1:2048>k?2:65536>k?3:4}var u=new e.wc(h);for(b=d=0;d<h;b++)k=a.charCodeAt(b),55296===(k&64512)&&b+1<f&&(n=a.charCodeAt(b+1),56320===(n&64512)&&(k=65536+(k-55296<<10)+(n-56320),b++)),128>k?u[d++]=k:(2048>k?u[d++]=192|k>>>6:(65536>k?u[d++]=224|k>>>12:(u[d++]=240|k>>>18,u[d++]=128|k>>>12&63),u[d++]=128|k>>>6&63),u[d++]=128|k&63);return u};f.zn=function(a){return d(a,a.length)};f.yn=
function(a){for(var b=new e.wc(a.length),d=0,f=b.length;d<f;d++)b[d]=a.charCodeAt(d);return b};f.An=function(a,b){var e,f=b||a.length,h=Array(2*f);for(b=e=0;b<f;){var k=a[b++];if(128>k)h[e++]=k;else{var u=n[k];if(4<u)h[e++]=65533,b+=u-1;else{for(k&=2===u?31:3===u?15:7;1<u&&b<f;)k=k<<6|a[b++]&63,u--;1<u?h[e++]=65533:65536>k?h[e++]=k:(k-=65536,h[e++]=55296|k>>10&1023,h[e++]=56320|k&1023)}}}return d(h,e)};f.iq=function(a,b){var d;b=b||a.length;b>a.length&&(b=a.length);for(d=b-1;0<=d&&128===(a[d]&192);)d--;
return 0>d||0===d?b:d+n[a[d]]>b?d:b}},{"./common":3}],5:[function(a,b){b.Qb=function(a,b,d,e){var f=a&65535|0;a=a>>>16&65535|0;for(var h;0!==d;){h=2E3<d?2E3:d;d-=h;do f=f+b[e++]|0,a=a+f|0;while(--h);f%=65521;a%=65521}return f|a<<16|0}},{}],6:[function(a,b){b.Qb={sj:0,Iw:1,tj:2,Fw:3,lg:4,xw:5,Mw:6,ne:0,mg:1,kn:2,Cw:-1,Kw:-2,yw:-3,jn:-5,Hw:0,vw:1,uw:9,zw:-1,Dw:1,Gw:2,Jw:3,Ew:4,Aw:0,ww:0,Lw:1,Nw:2,Bw:8}},{}],7:[function(a,b){var d=function(){for(var a,b=[],d=0;256>d;d++){a=d;for(var e=0;8>e;e++)a=a&
1?3988292384^a>>>1:a>>>1;b[d]=a}return b}();b.Qb=function(a,b,e,f){e=f+e;for(a^=-1;f<e;f++)a=a>>>8^d[(a^b[f])&255];return a^-1}},{}],8:[function(a,b,f){function d(a,b){a.msg=Da[b];return b}function e(a){for(var b=a.length;0<=--b;)a[b]=0}function n(a){var b=a.state,d=b.pending;d>a.ia&&(d=a.ia);0!==d&&(Va.hc(a.xb,b.gb,b.Kf,d,a.jb),a.jb+=d,b.Kf+=d,a.Ed+=d,a.ia-=d,b.pending-=d,0===b.pending&&(b.Kf=0))}function u(a,b){Nb.mn(a,0<=a.Xb?a.Xb:-1,a.O-a.Xb,b);a.Xb=a.O;n(a.qa)}function z(a,b){a.gb[a.pending++]=
b}function B(a,b){a.gb[a.pending++]=b>>>8&255;a.gb[a.pending++]=b&255}function D(a,b){var d=a.rk,e=a.O,f=a.gc,h=a.yk,k=a.O>a.Ib-262?a.O-(a.Ib-262):0,n=a.window,Dc=a.Gd,u=a.Kc,da=a.O+258,z=n[e+f-1],B=n[e+f];a.gc>=a.gk&&(d>>=2);h>a.aa&&(h=a.aa);do{var oa=b;if(n[oa+f]===B&&n[oa+f-1]===z&&n[oa]===n[e]&&n[++oa]===n[e+1]){e+=2;for(oa++;n[++e]===n[++oa]&&n[++e]===n[++oa]&&n[++e]===n[++oa]&&n[++e]===n[++oa]&&n[++e]===n[++oa]&&n[++e]===n[++oa]&&n[++e]===n[++oa]&&n[++e]===n[++oa]&&e<da;);oa=258-(da-e);e=da-
258;if(oa>f){a.Ke=b;f=oa;if(oa>=h)break;z=n[e+f-1];B=n[e+f]}}}while((b=u[b&Dc])>k&&0!==--d);return f<=a.aa?f:a.aa}function R(a){var b=a.Ib,d;do{var e=a.zl-a.aa-a.O;if(a.O>=b+(b-262)){Va.hc(a.window,a.window,b,b,0);a.Ke-=b;a.O-=b;a.Xb-=b;var f=d=a.Gg;do{var h=a.head[--f];a.head[f]=h>=b?h-b:0}while(--d);f=d=b;do h=a.Kc[--f],a.Kc[f]=h>=b?h-b:0;while(--d);e+=b}if(0===a.qa.Ma)break;f=a.qa;d=a.window;h=a.O+a.aa;var k=f.Ma;k>e&&(k=e);0===k?d=0:(f.Ma-=k,Va.hc(d,f.input,f.Mb,k,h),1===f.state.wrap?f.na=db(f.na,
d,k,h):2===f.state.wrap&&(f.na=da(f.na,d,k,h)),f.Mb+=k,f.Nc+=k,d=k);a.aa+=d;if(3<=a.aa+a.insert)for(e=a.O-a.insert,a.Ea=a.window[e],a.Ea=(a.Ea<<a.Xc^a.window[e+1])&a.Wc;a.insert&&!(a.Ea=(a.Ea<<a.Xc^a.window[e+3-1])&a.Wc,a.Kc[e&a.Gd]=a.head[a.Ea],a.head[a.Ea]=e,e++,a.insert--,3>a.aa+a.insert););}while(262>a.aa&&0!==a.qa.Ma)}function la(a,b){for(var d;;){if(262>a.aa){R(a);if(262>a.aa&&0===b)return 1;if(0===a.aa)break}d=0;3<=a.aa&&(a.Ea=(a.Ea<<a.Xc^a.window[a.O+3-1])&a.Wc,d=a.Kc[a.O&a.Gd]=a.head[a.Ea],
a.head[a.Ea]=a.O);0!==d&&a.O-d<=a.Ib-262&&(a.La=D(a,d));if(3<=a.La)if(d=Nb.ld(a,a.O-a.Ke,a.La-3),a.aa-=a.La,a.La<=a.Th&&3<=a.aa){a.La--;do a.O++,a.Ea=(a.Ea<<a.Xc^a.window[a.O+3-1])&a.Wc,a.Kc[a.O&a.Gd]=a.head[a.Ea],a.head[a.Ea]=a.O;while(0!==--a.La);a.O++}else a.O+=a.La,a.La=0,a.Ea=a.window[a.O],a.Ea=(a.Ea<<a.Xc^a.window[a.O+1])&a.Wc;else d=Nb.ld(a,0,a.window[a.O]),a.aa--,a.O++;if(d&&(u(a,!1),0===a.qa.ia))return 1}a.insert=2>a.O?a.O:2;return 4===b?(u(a,!0),0===a.qa.ia?3:4):a.oc&&(u(a,!1),0===a.qa.ia)?
1:2}function ra(a,b){for(var d,e;;){if(262>a.aa){R(a);if(262>a.aa&&0===b)return 1;if(0===a.aa)break}d=0;3<=a.aa&&(a.Ea=(a.Ea<<a.Xc^a.window[a.O+3-1])&a.Wc,d=a.Kc[a.O&a.Gd]=a.head[a.Ea],a.head[a.Ea]=a.O);a.gc=a.La;a.Mk=a.Ke;a.La=2;0!==d&&a.gc<a.Th&&a.O-d<=a.Ib-262&&(a.La=D(a,d),5>=a.La&&(1===a.Mc||3===a.La&&4096<a.O-a.Ke)&&(a.La=2));if(3<=a.gc&&a.La<=a.gc){e=a.O+a.aa-3;d=Nb.ld(a,a.O-1-a.Mk,a.gc-3);a.aa-=a.gc-1;a.gc-=2;do++a.O<=e&&(a.Ea=(a.Ea<<a.Xc^a.window[a.O+3-1])&a.Wc,a.Kc[a.O&a.Gd]=a.head[a.Ea],
a.head[a.Ea]=a.O);while(0!==--a.gc);a.Zd=0;a.La=2;a.O++;if(d&&(u(a,!1),0===a.qa.ia))return 1}else if(a.Zd){if((d=Nb.ld(a,0,a.window[a.O-1]))&&u(a,!1),a.O++,a.aa--,0===a.qa.ia)return 1}else a.Zd=1,a.O++,a.aa--}a.Zd&&(Nb.ld(a,0,a.window[a.O-1]),a.Zd=0);a.insert=2>a.O?a.O:2;return 4===b?(u(a,!0),0===a.qa.ia?3:4):a.oc&&(u(a,!1),0===a.qa.ia)?1:2}function Db(a,b){for(var d,e,f,h=a.window;;){if(258>=a.aa){R(a);if(258>=a.aa&&0===b)return 1;if(0===a.aa)break}a.La=0;if(3<=a.aa&&0<a.O&&(e=a.O-1,d=h[e],d===h[++e]&&
d===h[++e]&&d===h[++e])){for(f=a.O+258;d===h[++e]&&d===h[++e]&&d===h[++e]&&d===h[++e]&&d===h[++e]&&d===h[++e]&&d===h[++e]&&d===h[++e]&&e<f;);a.La=258-(f-e);a.La>a.aa&&(a.La=a.aa)}3<=a.La?(d=Nb.ld(a,1,a.La-3),a.aa-=a.La,a.O+=a.La,a.La=0):(d=Nb.ld(a,0,a.window[a.O]),a.aa--,a.O++);if(d&&(u(a,!1),0===a.qa.ia))return 1}a.insert=0;return 4===b?(u(a,!0),0===a.qa.ia?3:4):a.oc&&(u(a,!1),0===a.qa.ia)?1:2}function pb(a,b){for(var d;;){if(0===a.aa&&(R(a),0===a.aa)){if(0===b)return 1;break}a.La=0;d=Nb.ld(a,0,
a.window[a.O]);a.aa--;a.O++;if(d&&(u(a,!1),0===a.qa.ia))return 1}a.insert=0;return 4===b?(u(a,!0),0===a.qa.ia?3:4):a.oc&&(u(a,!1),0===a.qa.ia)?1:2}function Mb(a,b,d,e,f){this.Un=a;this.qo=b;this.yo=d;this.po=e;this.Sn=f}function cb(){this.qa=null;this.status=0;this.gb=null;this.wrap=this.pending=this.Kf=this.rc=0;this.za=null;this.Ac=0;this.method=8;this.Je=-1;this.Gd=this.Ki=this.Ib=0;this.window=null;this.zl=0;this.head=this.Kc=null;this.yk=this.gk=this.Mc=this.level=this.Th=this.rk=this.gc=this.aa=
this.Ke=this.O=this.Zd=this.Mk=this.La=this.Xb=this.Xc=this.Wc=this.Lh=this.Gg=this.Ea=0;this.Pb=new Va.Vb(1146);this.Od=new Va.Vb(122);this.Fb=new Va.Vb(78);e(this.Pb);e(this.Od);e(this.Fb);this.Cj=this.ug=this.Jg=null;this.Sc=new Va.Vb(16);this.ib=new Va.Vb(573);e(this.ib);this.Ge=this.Yc=0;this.depth=new Va.Vb(573);e(this.depth);this.Db=this.Jb=this.insert=this.matches=this.Ye=this.dd=this.sf=this.oc=this.Df=this.Rh=0}function Ha(a){if(!a||!a.state)return d(a,-2);a.Nc=a.Ed=0;a.vg=2;var b=a.state;
b.pending=0;b.Kf=0;0>b.wrap&&(b.wrap=-b.wrap);b.status=b.wrap?42:113;a.na=2===b.wrap?0:1;b.Je=0;Nb.nn(b);return 0}function oa(a){var b=Ha(a);0===b&&(a=a.state,a.zl=2*a.Ib,e(a.head),a.Th=Ia[a.level].qo,a.gk=Ia[a.level].Un,a.yk=Ia[a.level].yo,a.rk=Ia[a.level].po,a.O=0,a.Xb=0,a.aa=0,a.insert=0,a.La=a.gc=2,a.Zd=0,a.Ea=0);return b}function Za(a,b,e,f,h,k){if(!a)return-2;var n=1;-1===b&&(b=6);0>f?(n=0,f=-f):15<f&&(n=2,f-=16);if(1>h||9<h||8!==e||8>f||15<f||0>b||9<b||0>k||4<k)return d(a,-2);8===f&&(f=9);
var u=new cb;a.state=u;u.qa=a;u.wrap=n;u.za=null;u.Ki=f;u.Ib=1<<u.Ki;u.Gd=u.Ib-1;u.Lh=h+7;u.Gg=1<<u.Lh;u.Wc=u.Gg-1;u.Xc=~~((u.Lh+3-1)/3);u.window=new Va.wc(2*u.Ib);u.head=new Va.Vb(u.Gg);u.Kc=new Va.Vb(u.Ib);u.Df=1<<h+6;u.rc=4*u.Df;u.gb=new Va.wc(u.rc);u.sf=1*u.Df;u.Rh=3*u.Df;u.level=b;u.Mc=k;u.method=e;return oa(a)}var Va=a("../utils/common"),Nb=a("./trees"),db=a("./adler32"),da=a("./crc32"),Da=a("./messages");var Ia=[new Mb(0,0,0,0,function(a,b){var d=65535;for(d>a.rc-5&&(d=a.rc-5);;){if(1>=a.aa){R(a);
if(0===a.aa&&0===b)return 1;if(0===a.aa)break}a.O+=a.aa;a.aa=0;var e=a.Xb+d;if(0===a.O||a.O>=e)if(a.aa=a.O-e,a.O=e,u(a,!1),0===a.qa.ia)return 1;if(a.O-a.Xb>=a.Ib-262&&(u(a,!1),0===a.qa.ia))return 1}a.insert=0;if(4===b)return u(a,!0),0===a.qa.ia?3:4;a.O>a.Xb&&u(a,!1);return 1}),new Mb(4,4,8,4,la),new Mb(4,5,16,8,la),new Mb(4,6,32,32,la),new Mb(4,4,16,16,ra),new Mb(8,16,32,32,ra),new Mb(8,16,128,128,ra),new Mb(8,32,128,256,ra),new Mb(32,128,258,1024,ra),new Mb(32,258,258,4096,ra)];f.Uw=function(a,b){return Za(a,
b,8,15,8,0)};f.In=Za;f.Ww=oa;f.Xw=Ha;f.Kn=function(a,b){a&&a.state&&2===a.state.wrap&&(a.state.za=b)};f.Hj=function(a,b){if(!a||!a.state||5<b||0>b)return a?d(a,-2):-2;var f=a.state;if(!a.xb||!a.input&&0!==a.Ma||666===f.status&&4!==b)return d(a,0===a.ia?-5:-2);f.qa=a;var h=f.Je;f.Je=b;if(42===f.status)if(2===f.wrap)a.na=0,z(f,31),z(f,139),z(f,8),f.za?(z(f,(f.za.text?1:0)+(f.za.Gc?2:0)+(f.za.Na?4:0)+(f.za.name?8:0)+(f.za.comment?16:0)),z(f,f.za.time&255),z(f,f.za.time>>8&255),z(f,f.za.time>>16&255),
z(f,f.za.time>>24&255),z(f,9===f.level?2:2<=f.Mc||2>f.level?4:0),z(f,f.za.Lk&255),f.za.Na&&f.za.Na.length&&(z(f,f.za.Na.length&255),z(f,f.za.Na.length>>8&255)),f.za.Gc&&(a.na=da(a.na,f.gb,f.pending,0)),f.Ac=0,f.status=69):(z(f,0),z(f,0),z(f,0),z(f,0),z(f,0),z(f,9===f.level?2:2<=f.Mc||2>f.level?4:0),z(f,3),f.status=113);else{var k=8+(f.Ki-8<<4)<<8;k|=(2<=f.Mc||2>f.level?0:6>f.level?1:6===f.level?2:3)<<6;0!==f.O&&(k|=32);f.status=113;B(f,k+(31-k%31));0!==f.O&&(B(f,a.na>>>16),B(f,a.na&65535));a.na=1}if(69===
f.status)if(f.za.Na){for(k=f.pending;f.Ac<(f.za.Na.length&65535)&&(f.pending!==f.rc||(f.za.Gc&&f.pending>k&&(a.na=da(a.na,f.gb,f.pending-k,k)),n(a),k=f.pending,f.pending!==f.rc));)z(f,f.za.Na[f.Ac]&255),f.Ac++;f.za.Gc&&f.pending>k&&(a.na=da(a.na,f.gb,f.pending-k,k));f.Ac===f.za.Na.length&&(f.Ac=0,f.status=73)}else f.status=73;if(73===f.status)if(f.za.name){k=f.pending;do{if(f.pending===f.rc&&(f.za.Gc&&f.pending>k&&(a.na=da(a.na,f.gb,f.pending-k,k)),n(a),k=f.pending,f.pending===f.rc)){var u=1;break}u=
f.Ac<f.za.name.length?f.za.name.charCodeAt(f.Ac++)&255:0;z(f,u)}while(0!==u);f.za.Gc&&f.pending>k&&(a.na=da(a.na,f.gb,f.pending-k,k));0===u&&(f.Ac=0,f.status=91)}else f.status=91;if(91===f.status)if(f.za.comment){k=f.pending;do{if(f.pending===f.rc&&(f.za.Gc&&f.pending>k&&(a.na=da(a.na,f.gb,f.pending-k,k)),n(a),k=f.pending,f.pending===f.rc)){u=1;break}u=f.Ac<f.za.comment.length?f.za.comment.charCodeAt(f.Ac++)&255:0;z(f,u)}while(0!==u);f.za.Gc&&f.pending>k&&(a.na=da(a.na,f.gb,f.pending-k,k));0===u&&
(f.status=103)}else f.status=103;103===f.status&&(f.za.Gc?(f.pending+2>f.rc&&n(a),f.pending+2<=f.rc&&(z(f,a.na&255),z(f,a.na>>8&255),a.na=0,f.status=113)):f.status=113);if(0!==f.pending){if(n(a),0===a.ia)return f.Je=-1,0}else if(0===a.Ma&&(b<<1)-(4<b?9:0)<=(h<<1)-(4<h?9:0)&&4!==b)return d(a,-5);if(666===f.status&&0!==a.Ma)return d(a,-5);if(0!==a.Ma||0!==f.aa||0!==b&&666!==f.status){h=2===f.Mc?pb(f,b):3===f.Mc?Db(f,b):Ia[f.level].Sn(f,b);if(3===h||4===h)f.status=666;if(1===h||3===h)return 0===a.ia&&
(f.Je=-1),0;if(2===h&&(1===b?Nb.ln(f):5!==b&&(Nb.pn(f,0,0,!1),3===b&&(e(f.head),0===f.aa&&(f.O=0,f.Xb=0,f.insert=0))),n(a),0===a.ia))return f.Je=-1,0}if(4!==b)return 0;if(0>=f.wrap)return 1;2===f.wrap?(z(f,a.na&255),z(f,a.na>>8&255),z(f,a.na>>16&255),z(f,a.na>>24&255),z(f,a.Nc&255),z(f,a.Nc>>8&255),z(f,a.Nc>>16&255),z(f,a.Nc>>24&255)):(B(f,a.na>>>16),B(f,a.na&65535));n(a);0<f.wrap&&(f.wrap=-f.wrap);return 0!==f.pending?0:1};f.Hn=function(a){if(!a||!a.state)return-2;var b=a.state.status;if(42!==b&&
69!==b&&73!==b&&91!==b&&103!==b&&113!==b&&666!==b)return d(a,-2);a.state=null;return 113===b?d(a,-3):0};f.Jn=function(a,b){var d=b.length;if(!a||!a.state)return-2;var f=a.state;var h=f.wrap;if(2===h||1===h&&42!==f.status||f.aa)return-2;1===h&&(a.na=db(a.na,b,d,0));f.wrap=0;if(d>=f.Ib){0===h&&(e(f.head),f.O=0,f.Xb=0,f.insert=0);var k=new Va.wc(f.Ib);Va.hc(k,b,d-f.Ib,f.Ib,0);b=k;d=f.Ib}k=a.Ma;var n=a.Mb;var u=a.input;a.Ma=d;a.Mb=0;a.input=b;for(R(f);3<=f.aa;){b=f.O;d=f.aa-2;do f.Ea=(f.Ea<<f.Xc^f.window[b+
3-1])&f.Wc,f.Kc[b&f.Gd]=f.head[f.Ea],f.head[f.Ea]=b,b++;while(--d);f.O=b;f.aa=2;R(f)}f.O+=f.aa;f.Xb=f.O;f.insert=f.aa;f.aa=0;f.La=f.gc=2;f.Zd=0;a.Mb=n;a.input=u;a.Ma=k;f.wrap=h;return 0};f.Tw="pako deflate (from Nodeca project)"},{"../utils/common":3,"./adler32":5,"./crc32":7,"./messages":13,"./trees":14}],9:[function(a,b){b.Qb=function(){this.Lk=this.mq=this.time=this.text=0;this.Na=null;this.zh=0;this.comment=this.name="";this.Gc=0;this.done=!1}},{}],10:[function(a,b){b.Qb=function(a,b){var d=a.state;
var e=a.Mb;var f=a.input;var h=e+(a.Ma-5);var B=a.jb;var D=a.xb;b=B-(b-a.ia);var R=B+(a.ia-257);var la=d.yg;var ra=d.Ub;var Db=d.hd;var pb=d.Tb;var Mb=d.window;var cb=d.td;var Ha=d.qb;var oa=d.Zc;var Za=d.Nd;var Va=(1<<d.Ic)-1;var Nb=(1<<d.ue)-1;a:do{15>Ha&&(cb+=f[e++]<<Ha,Ha+=8,cb+=f[e++]<<Ha,Ha+=8);var db=oa[cb&Va];b:for(;;){var da=db>>>24;cb>>>=da;Ha-=da;da=db>>>16&255;if(0===da)D[B++]=db&65535;else if(da&16){var Da=db&65535;if(da&=15)Ha<da&&(cb+=f[e++]<<Ha,Ha+=8),Da+=cb&(1<<da)-1,cb>>>=da,Ha-=
da;15>Ha&&(cb+=f[e++]<<Ha,Ha+=8,cb+=f[e++]<<Ha,Ha+=8);db=Za[cb&Nb];c:for(;;){da=db>>>24;cb>>>=da;Ha-=da;da=db>>>16&255;if(da&16){db&=65535;da&=15;Ha<da&&(cb+=f[e++]<<Ha,Ha+=8,Ha<da&&(cb+=f[e++]<<Ha,Ha+=8));db+=cb&(1<<da)-1;if(db>la){a.msg="invalid distance too far back";d.mode=30;break a}cb>>>=da;Ha-=da;da=B-b;if(db>da){da=db-da;if(da>Db&&d.Ai){a.msg="invalid distance too far back";d.mode=30;break a}var Ia=0;var Dc=Mb;if(0===pb){if(Ia+=ra-da,da<Da){Da-=da;do D[B++]=Mb[Ia++];while(--da);Ia=B-db;Dc=
D}}else if(pb<da){if(Ia+=ra+pb-da,da-=pb,da<Da){Da-=da;do D[B++]=Mb[Ia++];while(--da);Ia=0;if(pb<Da){da=pb;Da-=da;do D[B++]=Mb[Ia++];while(--da);Ia=B-db;Dc=D}}}else if(Ia+=pb-da,da<Da){Da-=da;do D[B++]=Mb[Ia++];while(--da);Ia=B-db;Dc=D}for(;2<Da;)D[B++]=Dc[Ia++],D[B++]=Dc[Ia++],D[B++]=Dc[Ia++],Da-=3;Da&&(D[B++]=Dc[Ia++],1<Da&&(D[B++]=Dc[Ia++]))}else{Ia=B-db;do D[B++]=D[Ia++],D[B++]=D[Ia++],D[B++]=D[Ia++],Da-=3;while(2<Da);Da&&(D[B++]=D[Ia++],1<Da&&(D[B++]=D[Ia++]))}}else if(0===(da&64)){db=Za[(db&
65535)+(cb&(1<<da)-1)];continue c}else{a.msg="invalid distance code";d.mode=30;break a}break}}else if(0===(da&64)){db=oa[(db&65535)+(cb&(1<<da)-1)];continue b}else{da&32?d.mode=12:(a.msg="invalid literal/length code",d.mode=30);break a}break}}while(e<h&&B<R);Da=Ha>>3;e-=Da;Ha-=Da<<3;a.Mb=e;a.jb=B;a.Ma=e<h?5+(h-e):5-(e-h);a.ia=B<R?257+(R-B):257-(B-R);d.td=cb&(1<<Ha)-1;d.qb=Ha}},{}],11:[function(a,b,f){function d(a){return(a>>>24&255)+(a>>>8&65280)+((a&65280)<<8)+((a&255)<<24)}function e(){this.mode=
0;this.Kg=!1;this.wrap=0;this.Mh=!1;this.total=this.check=this.yg=this.flags=0;this.head=null;this.Tb=this.hd=this.Ub=this.df=0;this.window=null;this.Na=this.offset=this.length=this.qb=this.td=0;this.Nd=this.Zc=null;this.nc=this.If=this.Oe=this.xk=this.ue=this.Ic=0;this.next=null;this.Gb=new R.Vb(320);this.bg=new R.Vb(288);this.Kj=this.qk=null;this.kq=this.back=this.Ai=0}function n(a){if(!a||!a.state)return-2;var b=a.state;a.Nc=a.Ed=b.total=0;a.msg="";b.wrap&&(a.na=b.wrap&1);b.mode=1;b.Kg=0;b.Mh=
0;b.yg=32768;b.head=null;b.td=0;b.qb=0;b.Zc=b.qk=new R.kf(852);b.Nd=b.Kj=new R.kf(592);b.Ai=1;b.back=-1;return 0}function u(a){if(!a||!a.state)return-2;var b=a.state;b.Ub=0;b.hd=0;b.Tb=0;return n(a)}function z(a,b){if(!a||!a.state)return-2;var d=a.state;if(0>b){var e=0;b=-b}else e=(b>>4)+1,48>b&&(b&=15);if(b&&(8>b||15<b))return-2;null!==d.window&&d.df!==b&&(d.window=null);d.wrap=e;d.df=b;return u(a)}function B(a,b){if(!a)return-2;var d=new e;a.state=d;d.window=null;b=z(a,b);0!==b&&(a.state=null);
return b}function D(a,b,d,e){var f=a.state;null===f.window&&(f.Ub=1<<f.df,f.Tb=0,f.hd=0,f.window=new R.wc(f.Ub));e>=f.Ub?(R.hc(f.window,b,d-f.Ub,f.Ub,0),f.Tb=0,f.hd=f.Ub):(a=f.Ub-f.Tb,a>e&&(a=e),R.hc(f.window,b,d-e,a,f.Tb),(e-=a)?(R.hc(f.window,b,d-e,e,0),f.Tb=e,f.hd=f.Ub):(f.Tb+=a,f.Tb===f.Ub&&(f.Tb=0),f.hd<f.Ub&&(f.hd+=a)));return 0}var R=a("../utils/common"),la=a("./adler32"),ra=a("./crc32"),Db=a("./inffast"),pb=a("./inftrees"),Mb=!0,cb,Ha;f.ix=u;f.jx=z;f.kx=n;f.gx=function(a){return B(a,15)};
f.io=B;f.jk=function(a,b){var e,f=new R.wc(4),h=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!a||!a.state||!a.xb||!a.input&&0!==a.Ma)return-2;var k=a.state;12===k.mode&&(k.mode=13);var n=a.jb;var u=a.xb;var z=a.ia;var B=a.Mb;var oa=a.input;var ca=a.Ma;var H=k.td;var I=k.qb;var Za=ca;var Sa=z;var Ec=0;a:for(;;)switch(k.mode){case 1:if(0===k.wrap){k.mode=13;break}for(;16>I;){if(0===ca)break a;ca--;H+=oa[B++]<<I;I+=8}if(k.wrap&2&&35615===H){k.check=0;f[0]=H&255;f[1]=H>>>8&255;k.check=ra(k.check,
f,2,0);I=H=0;k.mode=2;break}k.flags=0;k.head&&(k.head.done=!1);if(!(k.wrap&1)||(((H&255)<<8)+(H>>8))%31){a.msg="incorrect header check";k.mode=30;break}if(8!==(H&15)){a.msg="unknown compression method";k.mode=30;break}H>>>=4;I-=4;var ea=(H&15)+8;if(0===k.df)k.df=ea;else if(ea>k.df){a.msg="invalid window size";k.mode=30;break}k.yg=1<<ea;a.na=k.check=1;k.mode=H&512?10:12;I=H=0;break;case 2:for(;16>I;){if(0===ca)break a;ca--;H+=oa[B++]<<I;I+=8}k.flags=H;if(8!==(k.flags&255)){a.msg="unknown compression method";
k.mode=30;break}if(k.flags&57344){a.msg="unknown header flags set";k.mode=30;break}k.head&&(k.head.text=H>>8&1);k.flags&512&&(f[0]=H&255,f[1]=H>>>8&255,k.check=ra(k.check,f,2,0));I=H=0;k.mode=3;case 3:for(;32>I;){if(0===ca)break a;ca--;H+=oa[B++]<<I;I+=8}k.head&&(k.head.time=H);k.flags&512&&(f[0]=H&255,f[1]=H>>>8&255,f[2]=H>>>16&255,f[3]=H>>>24&255,k.check=ra(k.check,f,4,0));I=H=0;k.mode=4;case 4:for(;16>I;){if(0===ca)break a;ca--;H+=oa[B++]<<I;I+=8}k.head&&(k.head.mq=H&255,k.head.Lk=H>>8);k.flags&
512&&(f[0]=H&255,f[1]=H>>>8&255,k.check=ra(k.check,f,2,0));I=H=0;k.mode=5;case 5:if(k.flags&1024){for(;16>I;){if(0===ca)break a;ca--;H+=oa[B++]<<I;I+=8}k.length=H;k.head&&(k.head.zh=H);k.flags&512&&(f[0]=H&255,f[1]=H>>>8&255,k.check=ra(k.check,f,2,0));I=H=0}else k.head&&(k.head.Na=null);k.mode=6;case 6:if(k.flags&1024){var L=k.length;L>ca&&(L=ca);L&&(k.head&&(ea=k.head.zh-k.length,k.head.Na||(k.head.Na=Array(k.head.zh)),R.hc(k.head.Na,oa,B,L,ea)),k.flags&512&&(k.check=ra(k.check,oa,L,B)),ca-=L,B+=
L,k.length-=L);if(k.length)break a}k.length=0;k.mode=7;case 7:if(k.flags&2048){if(0===ca)break a;L=0;do ea=oa[B+L++],k.head&&ea&&65536>k.length&&(k.head.name+=String.fromCharCode(ea));while(ea&&L<ca);k.flags&512&&(k.check=ra(k.check,oa,L,B));ca-=L;B+=L;if(ea)break a}else k.head&&(k.head.name=null);k.length=0;k.mode=8;case 8:if(k.flags&4096){if(0===ca)break a;L=0;do ea=oa[B+L++],k.head&&ea&&65536>k.length&&(k.head.comment+=String.fromCharCode(ea));while(ea&&L<ca);k.flags&512&&(k.check=ra(k.check,oa,
L,B));ca-=L;B+=L;if(ea)break a}else k.head&&(k.head.comment=null);k.mode=9;case 9:if(k.flags&512){for(;16>I;){if(0===ca)break a;ca--;H+=oa[B++]<<I;I+=8}if(H!==(k.check&65535)){a.msg="header crc mismatch";k.mode=30;break}I=H=0}k.head&&(k.head.Gc=k.flags>>9&1,k.head.done=!0);a.na=k.check=0;k.mode=12;break;case 10:for(;32>I;){if(0===ca)break a;ca--;H+=oa[B++]<<I;I+=8}a.na=k.check=d(H);I=H=0;k.mode=11;case 11:if(0===k.Mh)return a.jb=n,a.ia=z,a.Mb=B,a.Ma=ca,k.td=H,k.qb=I,2;a.na=k.check=1;k.mode=12;case 12:if(5===
b||6===b)break a;case 13:if(k.Kg){H>>>=I&7;I-=I&7;k.mode=27;break}for(;3>I;){if(0===ca)break a;ca--;H+=oa[B++]<<I;I+=8}k.Kg=H&1;H>>>=1;--I;switch(H&3){case 0:k.mode=14;break;case 1:ea=k;if(Mb){cb=new R.kf(512);Ha=new R.kf(32);for(L=0;144>L;)ea.Gb[L++]=8;for(;256>L;)ea.Gb[L++]=9;for(;280>L;)ea.Gb[L++]=7;for(;288>L;)ea.Gb[L++]=8;pb(1,ea.Gb,0,288,cb,0,ea.bg,{qb:9});for(L=0;32>L;)ea.Gb[L++]=5;pb(2,ea.Gb,0,32,Ha,0,ea.bg,{qb:5});Mb=!1}ea.Zc=cb;ea.Ic=9;ea.Nd=Ha;ea.ue=5;k.mode=20;if(6===b){H>>>=2;I-=2;break a}break;
case 2:k.mode=17;break;case 3:a.msg="invalid block type",k.mode=30}H>>>=2;I-=2;break;case 14:H>>>=I&7;for(I-=I&7;32>I;){if(0===ca)break a;ca--;H+=oa[B++]<<I;I+=8}if((H&65535)!==(H>>>16^65535)){a.msg="invalid stored block lengths";k.mode=30;break}k.length=H&65535;I=H=0;k.mode=15;if(6===b)break a;case 15:k.mode=16;case 16:if(L=k.length){L>ca&&(L=ca);L>z&&(L=z);if(0===L)break a;R.hc(u,oa,B,L,n);ca-=L;B+=L;z-=L;n+=L;k.length-=L;break}k.mode=12;break;case 17:for(;14>I;){if(0===ca)break a;ca--;H+=oa[B++]<<
I;I+=8}k.Oe=(H&31)+257;H>>>=5;I-=5;k.If=(H&31)+1;H>>>=5;I-=5;k.xk=(H&15)+4;H>>>=4;I-=4;if(286<k.Oe||30<k.If){a.msg="too many length or distance symbols";k.mode=30;break}k.nc=0;k.mode=18;case 18:for(;k.nc<k.xk;){for(;3>I;){if(0===ca)break a;ca--;H+=oa[B++]<<I;I+=8}k.Gb[h[k.nc++]]=H&7;H>>>=3;I-=3}for(;19>k.nc;)k.Gb[h[k.nc++]]=0;k.Zc=k.qk;k.Ic=7;L={qb:k.Ic};Ec=pb(0,k.Gb,0,19,k.Zc,0,k.bg,L);k.Ic=L.qb;if(Ec){a.msg="invalid code lengths set";k.mode=30;break}k.nc=0;k.mode=19;case 19:for(;k.nc<k.Oe+k.If;){for(;;){var $a=
k.Zc[H&(1<<k.Ic)-1];L=$a>>>24;$a&=65535;if(L<=I)break;if(0===ca)break a;ca--;H+=oa[B++]<<I;I+=8}if(16>$a)H>>>=L,I-=L,k.Gb[k.nc++]=$a;else{if(16===$a){for(ea=L+2;I<ea;){if(0===ca)break a;ca--;H+=oa[B++]<<I;I+=8}H>>>=L;I-=L;if(0===k.nc){a.msg="invalid bit length repeat";k.mode=30;break}ea=k.Gb[k.nc-1];L=3+(H&3);H>>>=2;I-=2}else if(17===$a){for(ea=L+3;I<ea;){if(0===ca)break a;ca--;H+=oa[B++]<<I;I+=8}H>>>=L;I-=L;ea=0;L=3+(H&7);H>>>=3;I-=3}else{for(ea=L+7;I<ea;){if(0===ca)break a;ca--;H+=oa[B++]<<I;I+=
8}H>>>=L;I-=L;ea=0;L=11+(H&127);H>>>=7;I-=7}if(k.nc+L>k.Oe+k.If){a.msg="invalid bit length repeat";k.mode=30;break}for(;L--;)k.Gb[k.nc++]=ea}}if(30===k.mode)break;if(0===k.Gb[256]){a.msg="invalid code -- missing end-of-block";k.mode=30;break}k.Ic=9;L={qb:k.Ic};Ec=pb(1,k.Gb,0,k.Oe,k.Zc,0,k.bg,L);k.Ic=L.qb;if(Ec){a.msg="invalid literal/lengths set";k.mode=30;break}k.ue=6;k.Nd=k.Kj;L={qb:k.ue};Ec=pb(2,k.Gb,k.Oe,k.If,k.Nd,0,k.bg,L);k.ue=L.qb;if(Ec){a.msg="invalid distances set";k.mode=30;break}k.mode=
20;if(6===b)break a;case 20:k.mode=21;case 21:if(6<=ca&&258<=z){a.jb=n;a.ia=z;a.Mb=B;a.Ma=ca;k.td=H;k.qb=I;Db(a,Sa);n=a.jb;u=a.xb;z=a.ia;B=a.Mb;oa=a.input;ca=a.Ma;H=k.td;I=k.qb;12===k.mode&&(k.back=-1);break}for(k.back=0;;){$a=k.Zc[H&(1<<k.Ic)-1];L=$a>>>24;ea=$a>>>16&255;$a&=65535;if(L<=I)break;if(0===ca)break a;ca--;H+=oa[B++]<<I;I+=8}if(ea&&0===(ea&240)){var nc=L;var Ck=ea;for(e=$a;;){$a=k.Zc[e+((H&(1<<nc+Ck)-1)>>nc)];L=$a>>>24;ea=$a>>>16&255;$a&=65535;if(nc+L<=I)break;if(0===ca)break a;ca--;H+=
oa[B++]<<I;I+=8}H>>>=nc;I-=nc;k.back+=nc}H>>>=L;I-=L;k.back+=L;k.length=$a;if(0===ea){k.mode=26;break}if(ea&32){k.back=-1;k.mode=12;break}if(ea&64){a.msg="invalid literal/length code";k.mode=30;break}k.Na=ea&15;k.mode=22;case 22:if(k.Na){for(ea=k.Na;I<ea;){if(0===ca)break a;ca--;H+=oa[B++]<<I;I+=8}k.length+=H&(1<<k.Na)-1;H>>>=k.Na;I-=k.Na;k.back+=k.Na}k.kq=k.length;k.mode=23;case 23:for(;;){$a=k.Nd[H&(1<<k.ue)-1];L=$a>>>24;ea=$a>>>16&255;$a&=65535;if(L<=I)break;if(0===ca)break a;ca--;H+=oa[B++]<<
I;I+=8}if(0===(ea&240)){nc=L;Ck=ea;for(e=$a;;){$a=k.Nd[e+((H&(1<<nc+Ck)-1)>>nc)];L=$a>>>24;ea=$a>>>16&255;$a&=65535;if(nc+L<=I)break;if(0===ca)break a;ca--;H+=oa[B++]<<I;I+=8}H>>>=nc;I-=nc;k.back+=nc}H>>>=L;I-=L;k.back+=L;if(ea&64){a.msg="invalid distance code";k.mode=30;break}k.offset=$a;k.Na=ea&15;k.mode=24;case 24:if(k.Na){for(ea=k.Na;I<ea;){if(0===ca)break a;ca--;H+=oa[B++]<<I;I+=8}k.offset+=H&(1<<k.Na)-1;H>>>=k.Na;I-=k.Na;k.back+=k.Na}if(k.offset>k.yg){a.msg="invalid distance too far back";k.mode=
30;break}k.mode=25;case 25:if(0===z)break a;L=Sa-z;if(k.offset>L){L=k.offset-L;if(L>k.hd&&k.Ai){a.msg="invalid distance too far back";k.mode=30;break}L>k.Tb?(L-=k.Tb,ea=k.Ub-L):ea=k.Tb-L;L>k.length&&(L=k.length);nc=k.window}else nc=u,ea=n-k.offset,L=k.length;L>z&&(L=z);z-=L;k.length-=L;do u[n++]=nc[ea++];while(--L);0===k.length&&(k.mode=21);break;case 26:if(0===z)break a;u[n++]=k.length;z--;k.mode=21;break;case 27:if(k.wrap){for(;32>I;){if(0===ca)break a;ca--;H|=oa[B++]<<I;I+=8}Sa-=z;a.Ed+=Sa;k.total+=
Sa;Sa&&(a.na=k.check=k.flags?ra(k.check,u,Sa,n-Sa):la(k.check,u,Sa,n-Sa));Sa=z;if((k.flags?H:d(H))!==k.check){a.msg="incorrect data check";k.mode=30;break}I=H=0}k.mode=28;case 28:if(k.wrap&&k.flags){for(;32>I;){if(0===ca)break a;ca--;H+=oa[B++]<<I;I+=8}if(H!==(k.total&4294967295)){a.msg="incorrect length check";k.mode=30;break}I=H=0}k.mode=29;case 29:Ec=1;break a;case 30:Ec=-3;break a;case 31:return-4;default:return-2}a.jb=n;a.ia=z;a.Mb=B;a.Ma=ca;k.td=H;k.qb=I;if((k.Ub||Sa!==a.ia&&30>k.mode&&(27>
k.mode||4!==b))&&D(a,a.xb,a.jb,Sa-a.ia))return k.mode=31,-4;Za-=a.Ma;Sa-=a.ia;a.Nc+=Za;a.Ed+=Sa;k.total+=Sa;k.wrap&&Sa&&(a.na=k.check=k.flags?ra(k.check,u,Sa,a.jb-Sa):la(k.check,u,Sa,a.jb-Sa));a.vg=k.qb+(k.Kg?64:0)+(12===k.mode?128:0)+(20===k.mode||15===k.mode?256:0);(0===Za&&0===Sa||4===b)&&0===Ec&&(Ec=-5);return Ec};f.fo=function(a){if(!a||!a.state)return-2;var b=a.state;b.window&&(b.window=null);a.state=null;return 0};f.ho=function(a,b){a&&a.state&&(a=a.state,0!==(a.wrap&2)&&(a.head=b,b.done=!1))};
f.jo=function(a,b){var d=b.length;if(!a||!a.state)return-2;var e=a.state;if(0!==e.wrap&&11!==e.mode)return-2;if(11===e.mode){var f=la(1,b,d,0);if(f!==e.check)return-3}if(D(a,b,d,d))return e.mode=31,-4;e.Mh=1;return 0};f.fx="pako inflate (from Nodeca project)"},{"../utils/common":3,"./adler32":5,"./crc32":7,"./inffast":10,"./inftrees":12}],12:[function(a,b){var d=a("../utils/common"),e=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],k=[16,16,16,16,16,16,
16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],n=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],u=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64];b.Qb=function(a,b,f,h,la,ra,Db,pb){var z=pb.qb,B,D,R,Za,Va,Nb,db=0,da=new d.Vb(16);var Da=new d.Vb(16);var Ia,Dc=0;for(B=0;15>=B;B++)da[B]=0;for(D=0;D<h;D++)da[b[f+D]]++;var ad=z;for(R=15;1<=R&&0===da[R];R--);
ad>R&&(ad=R);if(0===R)return la[ra++]=20971520,la[ra++]=20971520,pb.qb=1,0;for(z=1;z<R&&0===da[z];z++);ad<z&&(ad=z);for(B=Za=1;15>=B;B++)if(Za<<=1,Za-=da[B],0>Za)return-1;if(0<Za&&(0===a||1!==R))return-1;Da[1]=0;for(B=1;15>B;B++)Da[B+1]=Da[B]+da[B];for(D=0;D<h;D++)0!==b[f+D]&&(Db[Da[b[f+D]]++]=D);if(0===a){var Hn=Ia=Db;var ca=19}else 1===a?(Hn=e,db-=257,Ia=k,Dc-=257,ca=256):(Hn=n,Ia=u,ca=-1);D=Va=0;B=z;var H=ra;h=ad;Da=0;var I=-1;var od=1<<ad;var Sa=od-1;if(1===a&&852<od||2===a&&592<od)return 1;for(;;){var Ec=
B-Da;if(Db[D]<ca){var ea=0;var L=Db[D]}else Db[D]>ca?(ea=Ia[Dc+Db[D]],L=Hn[db+Db[D]]):(ea=96,L=0);Za=1<<B-Da;z=Nb=1<<h;do Nb-=Za,la[H+(Va>>Da)+Nb]=Ec<<24|ea<<16|L|0;while(0!==Nb);for(Za=1<<B-1;Va&Za;)Za>>=1;0!==Za?(Va&=Za-1,Va+=Za):Va=0;D++;if(0===--da[B]){if(B===R)break;B=b[f+Db[D]]}if(B>ad&&(Va&Sa)!==I){0===Da&&(Da=ad);H+=z;h=B-Da;for(Za=1<<h;h+Da<R;){Za-=da[h+Da];if(0>=Za)break;h++;Za<<=1}od+=1<<h;if(1===a&&852<od||2===a&&592<od)return 1;I=Va&Sa;la[I]=ad<<24|h<<16|H-ra|0}}0!==Va&&(la[H+Va]=B-Da<<
24|4194304);pb.qb=ad;return 0}},{"../utils/common":3}],13:[function(a,b){b.Qb={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"}},{}],14:[function(a,b,f){function d(a){for(var b=a.length;0<=--b;)a[b]=0}function e(a,b,d,e,f){this.sl=a;this.Qn=b;this.Pn=d;this.Nn=e;this.ro=f;this.ik=a&&a.length}function n(a,b){this.Lj=a;this.Le=0;this.Dd=b}function u(a,b){a.gb[a.pending++]=b&255;
a.gb[a.pending++]=b>>>8&255}function z(a,b,d){a.Db>16-d?(a.Jb|=b<<a.Db&65535,u(a,a.Jb),a.Jb=b>>16-a.Db,a.Db+=d-16):(a.Jb|=b<<a.Db&65535,a.Db+=d)}function B(a,b,d){z(a,d[2*b],d[2*b+1])}function D(a,b){var d=0;do d|=a&1,a>>>=1,d<<=1;while(0<--b);return d>>>1}function R(a,b,d){var e=Array(16),f=0,h;for(h=1;15>=h;h++)e[h]=f=f+d[h-1]<<1;for(d=0;d<=b;d++)f=a[2*d+1],0!==f&&(a[2*d]=D(e[f]++,f))}function la(a){var b;for(b=0;286>b;b++)a.Pb[2*b]=0;for(b=0;30>b;b++)a.Od[2*b]=0;for(b=0;19>b;b++)a.Fb[2*b]=0;a.Pb[512]=
1;a.dd=a.Ye=0;a.oc=a.matches=0}function ra(a){8<a.Db?u(a,a.Jb):0<a.Db&&(a.gb[a.pending++]=a.Jb);a.Jb=0;a.Db=0}function Db(a,b,d,e){var f=2*b,h=2*d;return a[f]<a[h]||a[f]===a[h]&&e[b]<=e[d]}function pb(a,b,d){for(var e=a.ib[d],f=d<<1;f<=a.Yc;){f<a.Yc&&Db(b,a.ib[f+1],a.ib[f],a.depth)&&f++;if(Db(b,e,a.ib[f],a.depth))break;a.ib[d]=a.ib[f];d=f;f<<=1}a.ib[d]=e}function Mb(a,b,d){var e=0;if(0!==a.oc){do{var f=a.gb[a.sf+2*e]<<8|a.gb[a.sf+2*e+1];var h=a.gb[a.Rh+e];e++;if(0===f)B(a,h,b);else{var k=Sa[h];B(a,
k+256+1,b);var n=Dc[k];0!==n&&(h-=Ec[k],z(a,h,n));f--;k=256>f?od[f]:od[256+(f>>>7)];B(a,k,d);n=ad[k];0!==n&&(f-=ea[k],z(a,f,n))}}while(e<a.oc)}B(a,256,b)}function cb(a,b){var d=b.Lj,e=b.Dd.sl,f=b.Dd.ik,h=b.Dd.Nn,k,n=-1;a.Yc=0;a.Ge=573;for(k=0;k<h;k++)0!==d[2*k]?(a.ib[++a.Yc]=n=k,a.depth[k]=0):d[2*k+1]=0;for(;2>a.Yc;){var u=a.ib[++a.Yc]=2>n?++n:0;d[2*u]=1;a.depth[u]=0;a.dd--;f&&(a.Ye-=e[2*u+1])}b.Le=n;for(k=a.Yc>>1;1<=k;k--)pb(a,d,k);u=h;do k=a.ib[1],a.ib[1]=a.ib[a.Yc--],pb(a,d,1),e=a.ib[1],a.ib[--a.Ge]=
k,a.ib[--a.Ge]=e,d[2*u]=d[2*k]+d[2*e],a.depth[u]=(a.depth[k]>=a.depth[e]?a.depth[k]:a.depth[e])+1,d[2*k+1]=d[2*e+1]=u,a.ib[1]=u++,pb(a,d,1);while(2<=a.Yc);a.ib[--a.Ge]=a.ib[1];k=b.Lj;u=b.Le;e=b.Dd.sl;f=b.Dd.ik;h=b.Dd.Qn;var z=b.Dd.Pn,B=b.Dd.ro,D,H=0;for(D=0;15>=D;D++)a.Sc[D]=0;k[2*a.ib[a.Ge]+1]=0;for(b=a.Ge+1;573>b;b++){var We=a.ib[b];D=k[2*k[2*We+1]+1]+1;D>B&&(D=B,H++);k[2*We+1]=D;if(!(We>u)){a.Sc[D]++;var I=0;We>=z&&(I=h[We-z]);var L=k[2*We];a.dd+=L*(D+I);f&&(a.Ye+=L*(e[2*We+1]+I))}}if(0!==H){do{for(D=
B-1;0===a.Sc[D];)D--;a.Sc[D]--;a.Sc[D+1]+=2;a.Sc[B]--;H-=2}while(0<H);for(D=B;0!==D;D--)for(We=a.Sc[D];0!==We;)e=a.ib[--b],e>u||(k[2*e+1]!==D&&(a.dd+=(D-k[2*e+1])*k[2*e],k[2*e+1]=D),We--)}R(d,n,a.Sc)}function Ha(a,b,d){var e,f=-1,h=b[1],k=0,n=7,u=4;0===h&&(n=138,u=3);b[2*(d+1)+1]=65535;for(e=0;e<=d;e++){var z=h;h=b[2*(e+1)+1];++k<n&&z===h||(k<u?a.Fb[2*z]+=k:0!==z?(z!==f&&a.Fb[2*z]++,a.Fb[32]++):10>=k?a.Fb[34]++:a.Fb[36]++,k=0,f=z,0===h?(n=138,u=3):z===h?(n=6,u=3):(n=7,u=4))}}function oa(a,b,d){var e,
f=-1,h=b[1],k=0,n=7,u=4;0===h&&(n=138,u=3);for(e=0;e<=d;e++){var D=h;h=b[2*(e+1)+1];if(!(++k<n&&D===h)){if(k<u){do B(a,D,a.Fb);while(0!==--k)}else 0!==D?(D!==f&&(B(a,D,a.Fb),k--),B(a,16,a.Fb),z(a,k-3,2)):10>=k?(B(a,17,a.Fb),z(a,k-3,3)):(B(a,18,a.Fb),z(a,k-11,7));k=0;f=D;0===h?(n=138,u=3):D===h?(n=6,u=3):(n=7,u=4)}}}function Za(a){var b=4093624447,d;for(d=0;31>=d;d++,b>>>=1)if(b&1&&0!==a.Pb[2*d])return 0;if(0!==a.Pb[18]||0!==a.Pb[20]||0!==a.Pb[26])return 1;for(d=32;256>d;d++)if(0!==a.Pb[2*d])return 1;
return 0}function Va(a){if(!Ck){var b,d,f,h=Array(16);for(f=d=0;28>f;f++)for(Ec[f]=d,b=0;b<1<<Dc[f];b++)Sa[d++]=f;Sa[d-1]=f;for(f=d=0;16>f;f++)for(ea[f]=d,b=0;b<1<<ad[f];b++)od[d++]=f;for(d>>=7;30>f;f++)for(ea[f]=d<<7,b=0;b<1<<ad[f]-7;b++)od[256+d++]=f;for(b=0;15>=b;b++)h[b]=0;for(b=0;143>=b;)H[2*b+1]=8,b++,h[8]++;for(;255>=b;)H[2*b+1]=9,b++,h[9]++;for(;279>=b;)H[2*b+1]=7,b++,h[7]++;for(;287>=b;)H[2*b+1]=8,b++,h[8]++;R(H,287,h);for(b=0;30>b;b++)I[2*b+1]=5,I[2*b]=D(b,5);L=new e(H,Dc,257,286,15);$a=
new e(I,ad,0,30,15);nc=new e([],Hn,0,19,7);Ck=!0}a.Jg=new n(a.Pb,L);a.ug=new n(a.Od,$a);a.Cj=new n(a.Fb,nc);a.Jb=0;a.Db=0;la(a)}function Nb(a,b,d,e){z(a,e?1:0,3);ra(a);u(a,d);u(a,~d);Ia.hc(a.gb,a.window,b,d,a.pending);a.pending+=d}function db(a){z(a,2,3);B(a,256,H);16===a.Db?(u(a,a.Jb),a.Jb=0,a.Db=0):8<=a.Db&&(a.gb[a.pending++]=a.Jb&255,a.Jb>>=8,a.Db-=8)}function da(a,b,d,e){var f=0;if(0<a.level){2===a.qa.vg&&(a.qa.vg=Za(a));cb(a,a.Jg);cb(a,a.ug);Ha(a,a.Pb,a.Jg.Le);Ha(a,a.Od,a.ug.Le);cb(a,a.Cj);for(f=
18;3<=f&&0===a.Fb[2*ca[f]+1];f--);a.dd+=3*(f+1)+14;var h=a.dd+3+7>>>3;var k=a.Ye+3+7>>>3;k<=h&&(h=k)}else h=k=d+5;if(d+4<=h&&-1!==b)Nb(a,b,d,e);else if(4===a.Mc||k===h)z(a,2+(e?1:0),3),Mb(a,H,I);else{z(a,4+(e?1:0),3);b=a.Jg.Le+1;d=a.ug.Le+1;f+=1;z(a,b-257,5);z(a,d-1,5);z(a,f-4,4);for(h=0;h<f;h++)z(a,a.Fb[2*ca[h]+1],3);oa(a,a.Pb,b-1);oa(a,a.Od,d-1);Mb(a,a.Pb,a.Od)}la(a);e&&ra(a)}function Da(a,b,d){a.gb[a.sf+2*a.oc]=b>>>8&255;a.gb[a.sf+2*a.oc+1]=b&255;a.gb[a.Rh+a.oc]=d&255;a.oc++;0===b?a.Pb[2*d]++:
(a.matches++,b--,a.Pb[2*(Sa[d]+256+1)]++,a.Od[2*(256>b?od[b]:od[256+(b>>>7)])]++);return a.oc===a.Df-1}var Ia=a("../utils/common"),Dc=[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],ad=[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],Hn=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],ca=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],H=Array(576);d(H);var I=Array(60);d(I);var od=Array(512);d(od);var Sa=Array(256);d(Sa);var Ec=Array(29);d(Ec);var ea=Array(30);d(ea);var L,
$a,nc,Ck=!1;f.nn=Va;f.pn=Nb;f.mn=da;f.ld=Da;f.ln=db},{"../utils/common":3}],15:[function(a,b){b.Qb=function(){this.input=null;this.Nc=this.Ma=this.Mb=0;this.xb=null;this.Ed=this.ia=this.jb=0;this.msg="";this.state=null;this.vg=2;this.na=0}},{}],"/":[function(a,b){var d=a("./lib/utils/common").assign,e=a("./lib/deflate"),k=a("./lib/inflate");a=a("./lib/zlib/constants");var n={};d(n,e,k,a);b.Qb=n},{"./lib/deflate":1,"./lib/inflate":2,"./lib/utils/common":3,"./lib/zlib/constants":6}]},{},[])("/")});
return b.Qb}();var s_=function(){};s_.prototype.isSupported=function(){try{return!!Uint8Array.from}catch(a){return!1}};var u_=function(a,b,c){Y.call(this);this.j=new CA(300);this.g=new CA(300);this.m="";this.b=[];var d=WT.Ha();Is(this,XT(d,"recentImpressions",p(this.A,this)));Is(this,XT(d,"diagnosticImpressions",p(this.u,this)));this.o=new Set;var e=window.location.pathname;d=window.location.search;c||(c=(c=/\/u\/(\d+)\/?/.exec(e))&&c[1],c=(d=/[\?&]authuser=(\d+)/.exec(d))&&d[1]||c||"0");this.f=new r_(50,c);this.f.B=new s_;d=this.f;d.P=!0;g_(d,18E4);null!=b&&t_(this,b);aY(this);this.ab.init(a)};t(u_,Y);aP(cY,u_);
var v_=function(a){var b=function(a,b){var c=new u_(a);a.registerService(b,c);return c};JO(a,kP)||wC(a,kP,function(a){return b(a,lP)});JO(a,lP)||wC(a,lP,function(a){return b(a,kP)})},w_=function(a){var b=new vO;rY(b);xD(T(b,vD,5),bY());S(T(b,vD,5),3,1);a.ab.Lf(b);a.b.forEach(function(a){return a.Lf(b)});return b},t_=function(a,b){b.then(function(a){null!=a&&(this.f.m=a)},void 0,a)};u_.prototype.A=function(){return this.j.ea()};u_.prototype.u=function(){return this.g.ea()};
var MT=function(a,b,c,d,e,f,h,k,n){var u=w_(a),z=new RN;S(z,1,b);var B=qY(u);V(B,8,z);if(c){var D=sY(u);D.Aa(c)}d&&(D=sY(u),S(D,5,d));e&&(D=sY(u),D.Y(e));h&&(c=tY(z),S(c,2,h));k&&(c=tY(z),S(c,1,k));n&&V(B,16,n);h=wO[b];1!=h&&(k=q(),k=new Date(k),k=(new lY).format(k),k==a.m?b+="@":(b=b+"@"+k,a.m=k),a.j.add(b),4<=h&&a.g.add(b));x_(a,u,f);8<=h&&a.I("d")},nU=function(a,b,c,d,e,f,h,k){a.o.has(b)||(MT(a,b,c,d,e,f,h,k),a.o.add(b))},y_=function(a,b){var c=w_(a),d=qY(c);V(d,14,b);x_(a,c)},x_=function(a,b,
c){a.ab.Mf(b);a.b.forEach(function(a){return a.Mf(b)});var d=new OY;YY(d,b.ya());c&&S(d,1,c.toString());T(b,aO,1)&&T(T(b,aO,1),RN,8)&&T(T(b,aO,1),RN,8).X()&&XY(d,T(T(b,aO,1),RN,8).X());a.f.log(d)},z_=function(a,b){a.b.includes(b)||a.b.push(b)};var A_=function(a){this.f=null;this.h=a;this.h.then(function(a){this.f=a},null,this);this.b={}},B_=function(a,b,c){null==a.b[b]&&(null!=c?0<c&&(a.b[b]=c):(c=q(),0<c&&(a.b[b]=c)))},C_=function(a){var b=[];w(jd(a.b),function(a){a=Number(a);var c=new cN;S(c,1,a);S(c,2,this.b[a]);b.push(c)},a);var c=new fN;Ji(c,2,b);a.f?y_(a.f,c):a.h.then(function(a){y_(a,c)},void 0,a);return c.ya()};var D_=["",""];D_.raw=["",""];var E_=["Latency: "," Id: "," was marked at: ",""];E_.raw=["Latency: "," Id: "," was marked at: ",""];
var G_=function(a){Hs.call(this);var b=this;this.l=new iT("realtime.media.stats.BandwidthLatencyReporter");this.m=new A_(a);this.b=new Map;this.j=Ut();this.o=Ut();this.f=new Map([["call connect",25],["bandwidth 500",10],["bandwidth 1000",11],["bandwidth 1500",12],["bandwidth 2500",26],["bandwidth 3150",27],["bandwidth HD",28]]);this.g=new Map;this.f.forEach(function(a){b.g.set(a,Ut())});a=Array.from(this.g.values(),function(a){return a.U});a=St(a);Qt([a,this.j.U,this.o.U]).then(function(){F_(b)})};
l(G_,Hs);var H_=function(a,b){if(a.f.has(b)){var c=a.f.get(b);if(!a.b.has(c)&&(25===c||a.b.has(25))){var d=q();a.b.set(c,d);a.g.get(c).resolve();a.l.info(E_,b,c,d);25===c&&ku(3E5).then(function(){a.o.resolve()})}}},F_=function(a){if(0!==a.b.size){a.b.forEach(function(b,d){B_(a.m,d,b)});var b=C_(a.m);a.l.info(D_,b);a.f.clear();a.b.clear()}};var I_=function(a,b,c,d){Y.call(this);this.f=b;this.Va=c;d.b&&(d=yS(d,!1));rh&&(b=yS(d,!0),b=mS(b),b.A=!1,d=b);this.j=d;this.P=new sT("realtime.media.api.webrtc.PeerController");this.vc=new Zz;this.B=new rB(this);this.h(this.B);this.u=this.o=this.b=null;b=LO(a,wX,!0).then();this.K=new zX(a,c.f,b);this.bb=new Map;this.Qa=this.j.m||1E4;this.M=q();this.Ua=!1;this.Z=1;this.D=new Map;this.Ab=[];this.Bb=[];this.m=null;this.T=new Map;this.ma=new Map;this.ob=new Map;this.la=this.Ca=this.Ba=null;this.ta=new Set;
this.C=null;this.va=!1;this.wa=null;this.rb=!1;this.A=this.Ga=null;this.dc=LO(a,lP).then()};l(I_,Y);I_.prototype.toString=function(){return"PeerController(sessionId="+this.f+")"};
var J_=function(a,b){a.P.info("["+a+"] "+b)},K_=function(a,b){tT(a.P,"["+a+"] "+b)},L_=function(a,b){for(var c=[],d=0;d<b;d++)c.push($z(a.vc));return c},M_=function(a,b){var c=a.j.u?3:1;c=a.j.b?[8579374]:L_(a,c);var d=[];if(1<c.length&&a.j.u){var e=DP(CP("SIM"),c).V();d.push(e)}if(a.j.A){e=a.j.b?[8579375]:L_(a,c.length);for(var f=0;f<e.length;f++){var h=DP(CP("FID"),[c[f],e[f]]).V();c.push(e[f]);d.push(h)}}return VP(SP(NP(MP(KP(new JP,"v"),b),a.f+"/"+b),c),d).V()},O_=function(a,b){a.bb.has(b)||(a.bb.set(b,
!0),a.I(new N_(a.f,b)))};
I_.prototype.ec=function(a){a=a.stream;var b=a.getAudioTracks(),c=a.getVideoTracks(),d=a.id;J_(this,"Remote stream added with id="+a.id+" audioTracks="+(b.length+" videoTracks="+c.length));c=function(a){return a.yd==d};UQ(this.m.oa).some(c)||UQ(this.m.ga).some(c)||x(this.m.oa.j).some(function(a){return a.toString()==d})?0<b.length?this.j.j?(b=P_(this,this.m,d),c=YX(this.Va,a,b),this.D.set(a.id,c),this.B.listen(c,"playing",this.Cb),b||K_(this,"Participant left before their audio was added")):J_(this,
"Ignoring incoming audio track as audio output is disabled."):(this.T.has(d)||this.T.set(d,{kb:Ut(),Pj:!1}),b=this.T.get(d),b.kb.resolve(a),b.Pj=!0):J_(this,"Ignoring incoming tracks with no matching msid.")};
I_.prototype.sc=function(a){var b=a.stream,c=b.getAudioTracks(),d=b.getVideoTracks();a=b.id;J_(this,"Remote stream removed with id="+a+" audioTracks="+(c.length+" videoTracks="+d.length));0<c.length&&((c=this.D.get(b.id))&&wB(this.B,c,"playing",this.Cb),ZX(this.Va,b.id),this.D.delete(b.id));0<d.length&&(b=this.T.get(a),this.T.delete(a),null!=b?b.Pj&&K_(this,"Asked to remove stream that was never added."):K_(this,"Video stream was deleted before removal."))};
I_.prototype.Cb=function(a){Q_(this,4901,a.target.bc().id);O_(this,"play first audio")};I_.prototype.zb=function(a){a=a.target;var b=TS(a,this.f);b&&R_(this,b,a.fa())};
var S_=function(a,b){switch(b){case "a":var c=UQ(a.g.oa)[0];break;case "v":c=UQ(a.g.ga).find(function(a){return"2"==a.sa()});break;case "d":c=UQ(a.g.Ka)[0];break;default:Xb("Unknown media type: "+b)}return c},T_=function(a,b){if(!a.g)return null;if("v"!=b.X())return S_(a,b.X());var c=UQ(a.g.ga).find(function(a){return a.sa()==b.getId()});c||(c=M_(a,b.getId()));return PP(new JP(c),b.ye()).V()},V_=function(a,b,c){var d=c.X(),e="mu"==c.getState(),f=T_(a,c),h=null,k=null;if(b){h=b.id;b="a"==d?b.getAudioTracks():
b.getVideoTracks();if(0==b.length)return a.P.error("["+a+"] Got MediaStream without associated tracks."),null;k=b[0].id}f=OP(RP(QP(new JP(f),h),k),e).V();"a"==d?a.Ab=[f]:(d=UQ(a.g.ga).filter(function(a){return a.sa()!==c.getId()}),a.Bb=[].concat(xa(d),[f]));J_(a,"StreamInfo="+f+" updated.");VV(a.o,a.Ab,a.Bb).catch(function(b){K_(a,"Negotiating with updated local streams failed with error="+b);a.I(new U_(19,a.f,b.toString()))});return f},W_=function(a,b){b&&!a.Ua&&a.b&&(J_(a,"Adding stream with id="+
b.id+" to peer"),a=a.b,vh?a.b.addStream(b):(b=b.getTracks()[0],AV(a,b),b=BV(a,b)));return b},X_=function(a,b){b&&a.b&&(J_(a,"Removing stream with id="+b.id+" to peer"),a=a.b,vh?a.b.removeStream(b):(b="audio"==b.getTracks()[0].kind?a.j:a.m,AV(a,b),BV(a,b)))},R_=function(a,b,c){if(!a.g)return null;b=W_(a,b);return V_(a,b,c)};
I_.prototype.stopSession=function(a,b){this.o&&this.o.cancel();Js(this.b);this.b=null;this.u&&(this.u.close(),this.u=null);this.C&&(this.C.stop(),this.va=!1,this.M=0,this.I(new Y_(a,b)));this.K.stop();this.T.clear();Z_(this,0)};
I_.prototype.Xa=function(){var a=this;return pa(function c(){var d,e;return Na(c,function(c){switch(c.b){case 1:return a.b&&Xb("Attempted to recreate a peer connection."),O_(a,"send initiate"),J_(a,"Instantiating new peer"),$_(a,a.j.C),a.b=new yV(a.j),a.o=new fW(a.b,a.j),a.B.listen(a.b.b,"signalingstatechange",a.uc),a.Z=1,a.B.listen(a.b,"Da",a.fc),a.b.b.oniceconnectionstatechange=function(){return a0(a)},a.B.listen(a.b,"Ea",a.ec),a.B.listen(a.b,"Fa",a.sc),a.b.b.ondatachannel=function(c){return b0(a,
c.channel)},a.u=zV(a.b),a.u.onopen=function(){return J_(a,"send datachannel is open.")},a.u.onclose=function(){return J_(a,"send datachannel is closed.")},a.u.onerror=function(c){return K_(a,"send datachannel error: "+c)},a.K.start(),a.C||(a.C=new gu(a.j.j?c0:Math.min(1E3,a.Qa)),a.B.listen(a.C,"tick",a.tc),a.C.start()),d=function(c){var d=new JP;if(0==UQ(c.oa).length){var e=a.j.b?[8579373]:L_(a,1);d=SP(KP(d,"a"),e)}else d=new JP(UQ(c.oa)[0]);e=NP(MP(d,"1"),a.f+"/1").V();var f=0==UQ(c.ga).length?M_(a,
"2"):NP(MP(new JP(UQ(c.ga)[0]),"2"),a.f+"/2").V();d=new JP;d=0==UQ(c.Ka).length?SP(KP(d,"d"),L_(a,1)):new JP(UQ(c.Ka)[0]);d=NP(MP(d,"3"),a.f+"/3");a.j.b||QP(d,"dataSendChannel");c=d.V();return new sR($Q(new RQ("a",[],[]),[e]),$Q(new RQ("v",[],[]),[f]),$Q(new RQ("d",[],[]),[c]))},Ca(c,2),Ba(c,a.b.Xa(),4);case 4:return Ba(c,QV(a.o,d),5);case 5:Ea(c,3);break;case 2:return e=Fa(c),a.P.error("["+a+"] "+("Creating the initial local description failed: "+e)),c.return(null);case 3:return J_(a,"Creating the initial local description succeeded"),
c.return(a.g)}})}())};var d0=function(a){pa(function c(){var d;return Na(c,function(c){switch(c.b){case 1:return O_(a,"recv local description"),J_(a,"Calling initial setLocalDescription"),Ca(c,2),Ba(c,SV(a.o),4);case 4:Ea(c,3);break;case 2:throw d=Fa(c),J_(a,"Initial setLocalDescription offer failed with error="+d),a.I(new U_(19,a.f,d.toString())),d;case 3:J_(a,"Initial setLocalDescription offer succeeded"),c.b=0}})}())};
I_.prototype.tc=function(){var a=this;this.C.enabled&&(rh&&e0(this),this.va||(vh?0:1E3>q()-this.M)||(this.va=!0,this.b.getStats().then(function(b){return f0(a,b)})))};
var f0=function(a,b){a.va=!1;var c=null;if(vh)c=b.result();else if(rh)c=b;else return;b=g0(a);h0(a,c);i0(a,c);rh||j0(a,c,b);b&&CX(a.K,b);AX(a.K,c);b=q();if(b-a.M>=a.Qa){a.M=0==a.M?b:a.M+a.Qa;b=!1;for(var d=ma(a.ta),e=d.next();!e.done;e=d.next())if(e=e.value,"v"==e.fa().X()&&!e.Hc()){b=!0;break}HX(a.K,c,!b,function(b){return a.I(new k0(b))})}},j0=function(a,b,c){BX(b,c,function(b){a.A&&(b.has(a.A)?b.get(a.A).Yd=!0:b.set(a.A,{volume:0,Yd:!0}));a.I(new wU(a.f,b))})},g0=function(a){if(!a.m||!iR(a.m.oa))return null;
var b=CV(a.b);if(!b)return null;var c=new Map,d=new Map;b.forEach(function(b){if("audio"==b.track.kind&&hb(b.getContributingSources)){var e=b.getContributingSources(),h=0,k=null;w(e,function(b){b.timestamp>=h&&b.source!=a.m.oa.s&&(h=b.timestamp,k={Md:b.source,timestamp:h})});a.Ga||(a.Ga=q(),a.I(new l0(a.Ga)));if(null!=k){if(vh)b=parseInt(b.track.id,10);else if(hb(b.getSynchronizationSources)&&0<b.getSynchronizationSources().length&&b.getSynchronizationSources()[0].source)b=b.getSynchronizationSources()[0].source;
else return K_(a,"Could not find SSRC for RTCRtpReceiver."),null;c.set(b,k);a.m.oa.s&&d.set(b,e)}}});m0(a,d);return c},m0=function(a,b){a.A=null;var c=a.m.oa.s;if(c){var d=0,e=0;b.forEach(function(a,b){a=a.reduce(function(a,b){return Math.max(a,b.source===c?b.timestamp:0)},0);a>e&&(e=a,d=b)});0!==e&&0!==d&&(b=b.get(d).sort(function(a,b){return b.timestamp-a.timestamp}).reverse().find(function(a){return a.source!==c&&a.timestamp>=e}))&&(a.A=b.source)}},e0=function(a){for(var b=new Map,c=ma(a.D.keys()),
d=c.next();!d.done;d=c.next()){var e=d.value;d=a.D.get(e);if(e=P_(a,a.m,e))d=OX(d)||0,b.set(e,{volume:d,Yd:!1})}var f=new Map,h=g0(a);h?(b.forEach(function(a,b){(b=h.get(b))&&f.set(b.Md,{volume:a.volume,Yd:!1})}),a.A&&(f.has(a.A)?f.get(a.A).Yd=!0:f.set(a.A,{volume:0,Yd:!0}))):f=b;a.I(new wU(a.f,f))},h0=function(a,b){DX(a.K,b,function(b,d){b&&O_(a,"recv first audio packet");d&&O_(a,"recv first video packet");a.I(new n0(b,d))})},i0=function(a,b){a.wa&&!a.bb.has("bandwidth 3150")&&EX(a.K,b,function(b){o0.forEach(function(c,
e){b>=e&&O_(a,c)})})},P_=function(a,b,c){if(!b||!b.oa)return null;if(iR(a.m.oa)){if(b=x(a.m.oa.j).find(function(a){return a.toString()==c}))return b;K_(a,"Received audio from non-virtual ssrc "+c+"when only virtual ssrcs should be used");return null}if(a=UQ(b.oa).find(function(a){return a.yb()==c}))if(a=a.nb(),0!=a.length)return a[0];return null},p0=function(a,b){b.forEach(function(){O_(a,"recv candidate ")});WV(a.o,b)},r0=function(a){q0(a);null==a.la&&1==a.Z&&(Q_(a,2703),a.Ba=iu(function(){1==a.Z&&
(K_(a,"Transport writable 1st timer timed out."),Q_(a,2705))},2E4),a.Ca=iu(function(){1==a.Z&&(K_(a,"Transport writable 2nd timer timed out."),Q_(a,2706))},3E4),a.la=iu(function(){if(1==a.Z){K_(a,"Transport writable timeout failed, aborting.");var b=27;Q_(a,2707);a.rb||(Q_(a,3736),b=24);a.I(new U_(b,a.f))}},55E3))},Z_=function(a,b){null!=a.Ba&&(ju(a.Ba),a.Ba=null);null!=a.Ca&&(ju(a.Ca),a.Ca=null);null!=a.la&&(ju(a.la),a.la=null);a.Z=b},a0=function(a){return pa(function c(){var d,e;return Na(c,function(c){if(1==
c.b){d=a.b.b.iceConnectionState;J_(a,"ICE connection state changed to: "+d);if("disconnected"!=d){if("connected"==d||"completed"==d)Z_(a,2),O_(a,"transport writable"),Q_(a,2704),a.I(new s0(!0));return c.Wd(0)}O_(a,"transport not writable");a.I(new s0(!1));if(rh)return c.return();J_(a,"Initiating ICE restart");Ca(c,3);var f=a.o;f.C=!0;f=TV(f);return Ba(c,f,5)}if(3!=c.b)return Ea(c,0);e=Fa(c);K_(a,"ICE restart failed with error="+e);a.I(new U_(19,a.f,e.toString()));throw e;})}())};
I_.prototype.fc=function(a){a=a.candidate;J_(this,"Got local ICE candidate: "+JSON.stringify(a));this.I(new t0(this.f,[a]));a=a.X();O_(this,"send candidate "+a);"STUN"!=a&&(this.rb=!0)};
var q0=function(a){O_(a,"call connect");null==a.wa&&(a.wa=!0,ku(3E5).then(function(){a.wa=!1}))},u0=function(a,b){return pa(function d(){var e;return Na(d,function(d){if(1==d.b)return O_(a,"recv remote description"),a.m=b,a.ob=new Map(UQ(b.Ka).map(function(a){return[a.yd||a.sa(),a]})),Ca(d,2),Ba(d,UV(a.o,b),4);if(2!=d.b)return Ea(d,0);e=Fa(d);K_(a,"Negotiating with updated remote description failed with error="+e);a.I(new U_(19,a.f,e.toString()));throw e;})}())},v0=function(a){a.b.b.getLocalStreams().forEach(function(b){return X_(a,
b)});a.Ua=!0},w0=function(a){a.Ua=!1;a.ta.forEach(function(b){(b=TS(b,a.f))&&W_(a,b)})};I_.prototype.ja=function(){var a=this;Js(this.C);this.D.forEach(function(b,c){return ZX(a.Va,c)});this.D.clear();Js(this.b);this.b=null;this.u&&(this.u.close(),this.u=null);Y.prototype.ja.call(this)};I_.prototype.pe=function(){O_(this,"recv view request")};
var b0=function(a,b){J_(a,"receive datachannel "+b.label+" created.");a.ma.set(b.label,b);b.onopen=function(){J_(a,"receive datachannel "+b.label+" is open.")};b.onclose=function(){J_(a,"receive datachannel "+b.label+" is closed.");a.ma.delete(b.label)};b.onerror=function(c){K_(a,"receive datachannel "+b.label+" threw error: "+c);a.ma.delete(b.label)};b.onmessage=function(c){c=c.data;var d=a.ob.get(b.label);d=d?d.S():b.label;J_(a,"dataReceived: participantId="+d+(" label="+b.label+" data="+c));null!=
c&&a.I(new x0(a.f,d,b.label,c))}};I_.prototype.uc=function(a){a.target!=this.b.b||"closed"!=this.b.b.signalingState||this.s||(Q_(this,2055),this.I(new U_(4,this.f)))};var $_=function(a,b){0==b.length&&tT(a.P,"No ICE servers provided.");b.some(function(a){return!a.url&&!a.urls})&&(tT(a.P,"Malformed Ice servers: "+JSON.stringify(b)),Q_(a,4264))},Q_=function(a,b,c){c=void 0===c?"":c;a.dc.then(function(d){MT(d,b,a.f,void 0,void 0,void 0,void 0,c)})};
ba.Object.defineProperties(I_.prototype,{g:{configurable:!0,enumerable:!0,get:function(){return this.o?this.o.u:null}}});var c0=vh&&!ao(40)?200:100,o0=new Map([[5E5,"bandwidth 500"],[1E6,"bandwidth 1000"],[15E5,"bandwidth 1500"],[25E5,"bandwidth 2500"],[315E4,"bandwidth 3150"]]),n0=function(a,b){X.call(this,"Ma");this.b=a;this.h=b};l(n0,X);var k0=function(a){X.call(this,"Qa");this.b=a};l(k0,X);var Y_=function(a,b){X.call(this,"Ra");this.b=a;this.yc=b};l(Y_,X);
var t0=function(a,b){X.call(this,"Oa");this.sessionId=a;this.b=b};l(t0,X);var N_=function(a,b){X.call(this,"Na");this.sessionId=a;this.message=b};l(N_,X);var s0=function(a){X.call(this,"Ta");this.b=a};l(s0,X);var x0=function(a,b,c,d){X.call(this,"Ka");this.sessionId=a;this.Ja=b;this.label=c;this.payload=d};l(x0,X);var U_=function(a,b,c){X.call(this,"La");this.b=a;this.sessionId=b;this.yc=c};l(U_,X);var l0=function(){X.call(this,"Ja")};l(l0,X);var B0=function(a){var b={};y0(b,a);b.media=SB(a).map(function(a){var b={};b.directionStr=z0(hC(a));b.mediatypeStr=A0(O(a,1));b.direction=hC(a);b.mediatype=O(a,1);b.fractionlost=O(a,2);b.ssrc=O(a,25);0==hC(a)&&(b.bytessent=O(a,7),b.packetssent=O(a,8),b.transmissionbitrate=O(a,42));1==hC(a)&&(b.bytesreceived=O(a,9),b.packetsreceived=O(a,10),b.recvbitrate=O(a,96));2==O(a,1)&&(b.fps=O(a,29),b.fpsnetwork=O(a,30),b.width=O(a,57),b.height=O(a,58));2==O(a,1)&&0==hC(a)&&(b.encodeUsagePercent=O(a,76),b.avgEncodeMs=
O(a,75));2==O(a,1)&&1==hC(a)&&(b.fpsdecoded=O(a,31),b.frameSpacingMaxMs=O(a,138));1==O(a,1)&&(b.energy=O(a,26));1==O(a,1)&&1==hC(a)&&(b.speechExpandRate=Ai(a,103));2==hC(a)&&(b.availablesendbitrate=O(a,40),b.availablerecvbitrate=O(a,41),b.leakybucketdelay=O(a,80));return b});return b};function y0(a,b){a.browserProcessCpuUsage=O(b,92);a.gpuProcessCpuUsage=O(b,94);a.processcpuusage=O(b,34);a.systemcpuusage=O(b,35);a.processJsMemoryAllocated=O(b,150);a.processJsMemoryUsed=O(b,151)}
function z0(a){switch(a){case 0:return"SENDER";case 1:return"RECEIVER";case 2:return"BWE";default:return"UNKNOWN"}}function A0(a){switch(a){case 1:return"AUDIO";case 2:return"VIDEO";case 3:return"DATA";default:return"UNKNOWN"}};var C0=function(a,b,c,d){VR.call(this);this.g=new sT("realtime.media.api.webrtc.LocalSession");this.A=0;this.f=a;this.b=b;this.u=d;this.B=new rB(this);this.h(this.B);this.B.listen(this.b,"Ka",this.Oo).listen(this.b,"La",this.Po).listen(this.b,"Ma",this.Qo).listen(this.b,"Na",this.Ro).listen(this.b,"Oa",this.So).listen(this.b,"Qa",this.Uo).listen(this.b,"Ra",this.To).listen(this.b,"Ta",this.Vo);this.j="INITIAL";this.m=new Set;this.o=void 0};l(C0,VR);
var D0=function(a,b,c,d){a.j!=b&&(a.j=b,!m(a.o)&&m(c)&&(a.o=c),a.I(new iQ(a.j,a.o,d)))};g=C0.prototype;g.getState=function(){return this.j};g.Xa=function(){return"INITIAL"!=this.j?(tT(this.g,"Called initialize in a bad state."),Nt()):Mt(this.b.Xa())};
g.cd=function(){if("INITIAL"!=this.j)return tT(this.g,"Called prepare in a bad state."),!1;if(!this.b.g)return tT(this.g,"Prepare called before local offer has been generated."),!1;var a=this.u,b=this.f;a.b.info("Starting logging for sessionId="+b);a.h.add(b);qU(a,3220);var c=bB.Ha();c.f=b;c.b[b]=c.m;c.m=new GA;c.b[b].open(c.h,"hangouts-call-"+b+".log");var d=new Date;cB(c,b,"### Start ["+d.toString()+"] ### "+b);cB(c,b,"Current time is "+d.toUTCString());cB(c,b,"Google Talk Plugin Version: "+c.j);
cB(c,b,"User agent: "+Zc);vU(a,b);d0(this.b);D0(this,"STARTING");return!0};g.start=function(a){if("STARTING"!=this.j)return tT(this.g,"Called start in a bad state."),!1;this.g.info("sendLogComment: RemoteSessionId="+a.g);D0(this,"INPROGRESS");E0(this,a);return!0};g.connect=function(){r0(this.b)};
g.update=function(a){switch(this.j){case "INITIAL":return tT(this.g,"Update called before started."),Promise.reject(Error("Update called before started."));case "STOPPED":return tT(this.g,"Update called after stopped."),Promise.reject(Error("Update called after stopped."))}return E0(this,a)};g.stop=function(a,b){if("STOPPED"==this.j)return!1;D0(this,"STOPPED",a,b);this.b.stopSession(this.o,b);tU(this.u,this.f);return!0};
g.pause=function(){if("INPROGRESS"!=this.getState())return!1;v0(this.b);D0(this,"PAUSED");return!0};g.resume=function(){if("PAUSED"!=this.getState())return!1;w0(this.b);D0(this,"INPROGRESS");return!0};
var F0=function(a){var b=a.u;a=a.f;b.b.info("Log upload requested for sessionId="+a);b.u.add(a);b.s&&b.o.g.add(b.s,a);b.A?b.F():b.f&&b.f.then(b.F,void 0,b)},G0=function(a,b){var c=b.fa().X();switch(a.j){case "STOPPED":case "FINISHED":return tT(a.g,"Add local stream called after ended."),null}if(a.m.has(b))return a.g.error("Capture "+b+" has already been added."),null;b.Yk(a.f);var d=a.b;J_(d,"Adding capture="+b);d.ta.add(b);d.B.listen(b,"n",d.zb);var e=TS(b,d.f);d=e?R_(d,e,b.fa()):T_(d,b.fa());if(null==
d)return a.g.error("A stream for capture of type: "+c+", was not created."),null;a.m.add(b);return d},H0=function(a,b){if("INPROGRESS"==a.j&&0!=b.length){b=b[0];a=ma(a.m);for(var c=a.next();!c.done;c=a.next())c=c.value,b.da(),c.fa().X()}};g=C0.prototype;
g.vk=function(a,b){if(null!=S_(this.b,"d")){var c=this.b;J_(c,"sendData: label="+a+", data="+b);var d=c.ma.get(a)||c.u;if(d){var e=d.readyState;"open"==e?d.send(b):J_(c,"Message dropped: dataChannel "+a+" is in "+(e+" state"))}else K_(c,"Unknown dataChannel for label "+a+(", cannot send data: "+b))}else tT(this.g,"Sending data without data stream.")};g.Qo=function(a){this.I(new XR(a.b,a.h))};g.al=function(){return!0};g.So=function(a){a.sessionId==this.f&&this.I(new YR(a.b))};
g.Ro=function(a){a.sessionId==this.f&&this.I(new LS(a.message))};g.Uo=function(a){var b=O(a.b,1);null!=b&&(!this.A||10<=b-this.A)&&(this.A=b,b=B0(a.b),this.g.info(this.f+" webrtc_media_stats datapoint: "+Fu(b)));this.I(new ZR(a.b))};g.To=function(a){this.I(new $R(0,a.b,a.yc))};g.Po=function(a){a.sessionId==this.f&&this.stop(a.b,a.yc)};g.Vo=function(a){this.I(new bS(a.b))};g.Oo=function(a){this.f==a.sessionId&&this.I(new aS(a.Ja,a.label,a.payload))};g.vx=function(){return!0};
g.uj=function(a){var b=UQ(this.b.g.Ka);b.some(function(b){return b.yd==a.rd()})||(b.push(this.C(a)),this.g.error("Ignoring post-setup addDataChannel call!"))};var E0=function(a,b){if(null!=b.f.get("collections")&&null!=b.Ka){var c=b.f.ea().map(a.C,a);c=$Q(b.Ka,UQ(b.Ka).concat(c));b=yR(b,c)}a.g.info("Session "+a.f+" setting remote descriptions: "+Fu(vR(b)));return u0(a.b,b)};
C0.prototype.C=function(a){var b=a.b,c=a.rd()||"local_push_channel",d=a.getChannelId()||"";return QP(TP(NP(MP(LP(KP(new JP,"d"),d),c),b.toString()),b),a.rd()).V()};var I0=function(a){this.width=a.h;this.height=a.b;this.frameRate=a.f};I0.prototype.toString=function(){return"VideoShape(width="+this.width+", height="+this.height+", "+("frameRate="+this.frameRate+")")};I0.prototype.toJson=function(){return{width:this.width,height:this.height,frameRate:this.frameRate}};I0.prototype.equals=function(a){return!!a&&this.width==a.width&&this.height==a.height&&this.frameRate==a.frameRate};var J0=function(){this.f=this.b=this.h=null};J0.prototype.V=function(){return new I0(this)};
var K0=function(a){var b=new J0;b.f=30;b.h=a;return b};var L0=function(a){XS.call(this,a);this.f=a.f;this.b=a.b};l(L0,XS);L0.prototype.equals=function(a){return XS.prototype.equals.call(this,a)&&a instanceof L0?this.f.equals(a.f)&&this.b.equals(a.b):!1};L0.prototype.toString=function(){return"VideoSettings(base="+XS.prototype.toString.call(this)+", "+("minVideoShape="+this.f+", ")+("maxVideoShape="+this.b+")")};
L0.prototype.g=function(){var a=XS.prototype.g.call(this);vh?(a.optional.push({minFrameRate:this.f.frameRate}),a.optional.push({minHeight:this.f.height}),a.optional.push({minWidth:this.f.width}),a.optional.push({maxFrameRate:this.b.frameRate}),a.optional.push({maxWidth:this.b.width}),a.optional.push({maxHeight:this.b.height})):rh&&(a.aspectRatio=16/9,a.height=this.b.height,a.width=this.b.width);return a};var M0=function(a){YS.call(this,a);this.f=a?a.f:null;this.b=a?a.b:null};l(M0,YS);
M0.prototype.V=function(){return new L0(this)};var N0=function(a,b){b=void 0===b?!1:b;var c=new vD;S(c,2,a);xD(c,bY(b));S(c,3,1);return c};var O0=function(a,b,c){this.b=a;this.f=b;this.h=c};var P0=JSON.parse;var Q0=function(a,b,c,d){this.status=a;this.Mj=b;this.b=c;this.response=d};Q0.prototype.toString=function(){var a="["+this.status+"/"+this.Mj;null!=this.b&&(a+="/"+this.b);null!=this.response&&(a+=": ",a=gb(this.response)?a+Ll(this.response,this.f,this).join("; "):a+this.f(this.response));return a+"]"};
Q0.prototype.f=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=Ll(b,function(a){var b=a.domain+" - "+a.reason;null!=a.debugInfo&&(b+=" = "+Yc(a.debugInfo,"\n",4).slice(0,3).join(" - "));return b}),Jl(b)||(a+=": "+b.join(", ")));return a}return gb(a)&&0<a.length?a.toString():"Unknown"};var R0=function(){this.s={}},S0=function(a,b){a.s=b||{};return a};var U0=function(){this.s={};this.Zg=new T0;this.m=new BY(1E3,36E4);this.g=6E4;this.o=!1;this.F=[]};t(U0,R0);g=U0.prototype;g.toString=function(){return"<# "+this.b+" to "+(this.j||"")+" for "+this.u+">"};g.ol=function(a){this.j=a;return this};g.Vk=function(a){this.u=a;return this};g.jl=function(){return this};g.ll=function(a){this.ka=a;return this};g.pl=function(a){this.B=a;return this};g.Bi=function(a){this.C=a;return this};g.Di=function(a){this.f=a};g.ql=function(a){this.h=a;return this};
g.Vp=function(a){this.A=a};g.Mp=function(a){this.g=a};var V0=function(a){var b=a.m.b;b=Math.round(.5*b)+Math.floor(Math.random()*b);CY(a.m);return Math.min(b+0,36E4)};U0.prototype.cancel=function(){this.o=!0;this.Di("c")};var T0=function(){};T0.prototype.b=function(a){this.f=a;return this};T0.prototype.kl=function(a){this.h=a};T0.prototype.callback=function(a){this.f(a)};var W0=new rC("FwiOSb");var X0=function(a,b){Y.call(this);this.b=b;this.l=ls("realtime.network.ApiaryClient");a.load(p(this.Ao,this),p(this.Bo,this));this.j=0;this.g=new Fk;this.f=new Fk;W(this.l,"Created apiary client")};t(X0,Y);var Y0=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&&!Ra(b)?b.ya():b);w(c,function(a){f+=e+"Content-Type: "+a.type+"\r\nContent-transfer-encoding: "+a.b+"\r\n\r\n"+a.data+"\r\n\r\n"});return f+=d};g=X0.prototype;g.Pf=null;
g.Ao=function(a){this.Pf=a;this.I("Ua");W(this.l,"Apiary client loaded")};g.Bo=function(){this.s||(this.Pf=null,W(this.l,"Apiary client unloaded"))};g.ja=function(){var a=this.g.ub();w(a,ju);a=this.f.ub();w(a,ju)};
g.request=function(a){if(!this.s&&!a.o)if(null!=this.Pf){var b=this.j++;a.b=b;this.b&&this.b.onRequest(a);b=a.C;var c=null!=a.D?a.D:{},d=null!=a.B?a.B:{},e=null!=a.L?a.L:"application/json";if(null!=a.h?a.h:1)d.alt="protojson",e="application/json+protobuf",null!=b&&(b=JSON.parse(b.ya()));var f=a.F;if(0<f.length){c["MIME-Version"]="1.0";var h="END_OF_PART_"+Vc();c["Content-Type"]='multipart/related; boundary="'+h+'"';b=Y0(e,b,f,h)}else null!=b&&(c["Content-Type"]=e);c["Accept-Language"]=a.K||"en";b=
{method:a.ka,path:a.u,params:d,headers:c,body:b};Ic(Tc(a.j||""))||(b.root=a.j||"");W(this.l,"Sending request "+a);try{var k=this.Pf.client.request(b);a.Di("p");null!=a.g&&this.f.set(a.b,iu(p(this.Hp,this,a),a.g||void 0));k.execute(p(this.Bp,this,a))}catch(n){ns(this.l,"Failed to enqueue request "+Fu(b),n),Z0(this,a,new Q0("fatal","request_queuing",null,null),null,0)}}else os(this.l,"Request when client is not ready!")};
g.Hp=function(a){os(this.l,"Request timed out: "+a);Z0(this,a,new Q0("retry","deadline_exceeded",null,null),null,0)};
g.Bp=function(a,b,c){if(this.s||"p"!=a.f)$0(this,a);else{var d=null,e="ok";$0(this,a);var f=null,h=null;try{var k=JSON.parse(c),n=k.gapiRequest.data.body;f=k.gapiRequest.data.headers;d=P0(n)}catch(z){os(this.l,"Failed to parse the response for request "+a+": "+c,z);var u="response_decoding";e="retry"}null!=b&&null!=b.error&&(h=b.error.code,os(this.l,"Request failed: "+a+": "+b.error.code+" - "+b.error.message),u="network_or_frontend",e="retry",400==b.error.code?(u="bad_request",e="fatal"):401==b.error.code?
(u="unauthorized",e="fatal"):402==b.error.code?(u="payment_required",e="fatal"):403==b.error.code&&(u="forbidden",e="fatal"));"ok"==e&&null!=d.error&&(os(this.l,"Server returned an error for request "+a+": "+d.error.code+' "'+d.error.message+'": '+d.error.errors[0].yc),u="backend",e="retry");"ok"==e&&((b=null!=a.h?a.h:!0)&&!gb(d)||!b&&!ib(d))&&(os(this.l,"Apiary returned bad response type for request "+a+": expected "+(b?"Array":"Object")+", received "+bb(d)),u="response_format",e="retry");if("ok"==
e&&(a.Di("o"),a.Zg.callback(d),"o"!=a.f))switch(u="response_callback",a.f){case "r":os(this.l,"Error processing response for request "+a+": should retry.");e="retry";break;case "d":os(this.l,"Fatal error processing response for request "+a);e="fatal";break;default:ns(this.l,"Unexpected response state from processing the response for "+a+": "+a.f)}if("ok"==e)W(this.l,"Response processed successfully for request "+a),this.b&&this.b.f(a,d);else{b=0;if(null!=f&&null!=f["Retry-After"])try{b=1E3*parseInt(f["Retry-After"],
10),b=Math.min(Math.max(b,0),72E5)}catch(z){}Z0(this,a,new Q0(e,u,h,d),c,b)}}c=this.f.get(a.b);null!=c&&(this.f.remove(a.b),ju(c))};var $0=function(a,b){var c=a.g.get(b.b);null!=c&&(a.g.remove(b.b),ju(c))},Z0=function(a,b,c,d,e){a.s||"p"!=b.f&&"r"!=b.f||(a.b&&a.b.onError(b,c,d),d=null!=b.A?b.A:0,"retry"==c.status&&0<d?(W(a.l,"Scheduling retry for request "+b),a.g.set(b.b,iu(p(a.request,a,b),Math.max(V0(b),e)))):(b.cancel(),b.Zg.h(c)))};var a1=function(a,b,c,d,e){Y.call(this);this.j=b;this.m=c;this.o=e||"https://clients6.google.com";this.g=d;this.b=a;this.u=Ut();null!=this.b.Pf?this.u.resolve():jt(this.b,"Ua",function(){this.u.resolve()},!1,this)};t(a1,Y);a1.prototype.request=function(a,b,c,d,e,f,h){this.u.U.then(function(){var k=(new U0).ol(this.o).jl().Vk("/"+this.j+"/"+this.m+"/"+a).ll(b).pl(c).ql(!Qa(h)||h).Bi(d),n=Ut();n.U.then(e,f||Ya);k.Zg.b(p(n.resolve,n)).kl(p(n.reject,n));this.b.request(k)},null,this)};
a1.prototype.makeRequest=function(a,b,c,d,e,f){e=Ic(Tc(this.g))?{}:{key:this.g};a=S0((new U0).ol(this.o).jl().Vk("/"+this.j+"/"+this.m+"/"+a).ll("POST").pl(e).ql(!0).Bi(b),f);null!=c&&a.Mp(c);null!=d&&a.Vp(d);var h=Ut();a.Zg.b(p(function(a){var b=null;try{b=0<a.length?Oi(a):null}catch(B){a=new Q0("fatal","response_decoding",null,a);h.reject(a);return}var c=b,d=0;c&&hb(c.getResponseHeader)&&(c=c.getResponseHeader())&&hb(c.Ia)&&(d=c.Ia());1==d?h.resolve(b):(a=new Q0("fatal","backend",null,a),h.reject(a))},
this)).kl(p(h.reject,h));this.u.U.then(p(this.b.request,this.b,a));return h.U};var b1=function(a,b,c){a=cq(a,encodeURIComponent("$ct"),c);if(null==navigator.sendBeacon||!navigator.sendBeacon(a,b)){c=a;var d="POST",e=b;a=cq(a,encodeURIComponent("$httpMethod"),"POST");a=cq(a,encodeURIComponent("$req"),b);2048>a.length&&(c=a,d="GET",e=null);try{var f=Uv(Sv);f.open(d,c,!1);f.send(e)}catch(h){b=ls("realtime.network.Beacon"),ns(b,"Cannot fallback from sendBeacon",h)}}};var c1=function(a,b,c,d,e,f){a1.call(this,a,b,c,d,e);this.f=f||new fx};t(c1,a1);c1.prototype.makeRequest=function(a,b,c,d,e,f,h){h||d1(this,b);return c1.ra.makeRequest.call(this,a,b,c,d,e,f).then(this.A,null,this)};var d1=function(a,b){if(b&&a.f.b&&hb(b.G)&&hb(b.H)){var c=b.G()||new Ui;V(c,3,a.f.b);b.H(c)}};c1.prototype.A=function(a){hb(a.getResponseHeader)&&1==a.getResponseHeader().Ia()&&e1(this,a);return a};var e1=function(a,b){(b=(b=hb(b.G)&&b.G()||null)&&T(b,Wi,3))&&gx(a.f,b)};var f1=function(){Y.call(this);this.l=ls("realtime.pushnotifications.Dispatcher")};t(f1,Y);
var g1=[{Eb:vK.prototype.Xj,eventType:"cb"},{Eb:vK.prototype.Zj,eventType:"eb"},{Eb:vK.prototype.Vj,eventType:"$a"},{Eb:vK.prototype.Uj,eventType:"ab"},{Eb:vK.prototype.Yj,eventType:"db"},{Eb:vK.prototype.Qj,eventType:"Wa"},{Eb:vK.prototype.Tj,eventType:"Xa"},{Eb:vK.prototype.Rj,eventType:"Ya"},{Eb:vK.prototype.ck,eventType:"kb"},{Eb:vK.prototype.Sj,eventType:"Za"},{Eb:vK.prototype.ak,eventType:"fb"}],h1=[{Eb:tK.prototype.g,eventType:"gb"},{Eb:tK.prototype.o,eventType:"hb"},{Eb:tK.prototype.u,eventType:"ib"},
{Eb:tK.prototype.A,eventType:"jb"}];f1.prototype.b=function(a){var b=T(a,vK,2);if(null!=b)for(a=0;a<g1.length;a++){var c=g1[a].Eb.call(b);if(null!=c)if("fb"==g1[a].eventType)for(var d=c,e=h1,f=0;f<g1.length;f++){if(c=e[f].Eb.call(d),null!=c){var h=e[f].eventType;break}}else{h=g1[a].eventType;break}}else b=T(a,eI,3),null!=b&&(c=T(b,cI,1),null!=c&&(h="bb"));null!=c?(W(this.l,"Received notification of type "+h+"."),this.I(new i1(h,c))):os(this.l,"A batch notification is empty.")};
var i1=function(a,b){X.call(this,a);this.notification=b};t(i1,X);var k1=function(a,b){NR.call(this,b);a instanceof c1?(b=a,a=new a1(a.b,a.j,a.m,a.g,a.o)):a instanceof a1?b=new c1(a.b,a.j,a.m,a.g,a.o,new fx):a=b=a;this.g=b;this.B=a;this.u=new j1;this.A=new f1;null==O(this,1)&&S(this,1,32);a=O(this,2)||"rmjs";S(this,2,a);a=O(this,3)||"Unknown";S(this,3,a);QR(this,O(this,4)||"0.0");null==O(this,5)&&S(this,5,0);this.o(O(this,6)||O(this,2)+Vc().toUpperCase());a=O(this,7)||O(this,6)+"@fake.com";S(this,7,a);null==Ai(this,9)&&S(this,9,.01);a=O(this,10)||null;S(this,10,
a);a=O(this,11)||"https://clients2.google.com/cr/report";S(this,11,a);a=O(this,12)||null;S(this,12,a);a=T(this,FR,13)||new FR;V(this,13,a);null==O(this,8)&&S(this,8,!1);null==O(this,16)&&S(this,16,!1);a=P(this,14)||[];S(this,14,a||[]);a=T(this,IR,17)||new IR;V(this,17,a);a=O(this,18)||null;S(this,18,a)};t(k1,NR);var l1=new rC("CgjDUd");
k1.prototype.register=function(a){var b=this;a.registerService(l1,this);LO(a,kP).then(function(c){var d={Lf:function(a){var c=rY(a),d=O(b,5);S(c,2,d);d=1;m1(b)&&(d=cd("Linux")?17:18);xD(c,d);d=qY(a);c=T(d,VM,9)||new VM;V(d,9,c);d=O(b,2);S(c,4,d);c=qY(a);d=T(c,yL,7)||new yL;var e=O(b,4);S(d,22,e);V(c,7,d);a=sY(a);c=O(b,7);S(a,8,c);c=O(b,6);S(a,1,c)},Mf:function(){}};z_(c,d);Is(a,function(){pc(c.b,d)})});return this};k1.prototype.o=function(a,b){b=b?Vc().toUpperCase():"";k1.ra.o.call(this,a+b)};
var n1=function(a){var b=new sD;uD(b,O(a,1));var c=new oD,d=O(a,6);S(c,1,d);d=new yD;AD(d,b);V(d,2,c);S(d,4,"en");a=N0(O(a,5),m1(a));V(d,7,a);return d},m1=function(a){return O(a,7).endsWith("@hangouts-enterprise-devices.gserviceaccount.com")},j1=function(){};j1.prototype.b=Ya;var o1=function(a){SS.call(this,a);this.s=new Ue;this.h=!1;this.j=new pU(this.xa);this.m=new fU(this.xa)};l(o1,SS);g=o1.prototype;g.Xa=function(){var a=this;return this.f.g.then(function(b){return a.j.Xa(O(b,7))}).then(function(b){a.h=7==b;EA=O(a.xa.get(l1),11);return b})};g.Ng=function(){return this.h};
g.Xh=function(){if(this.Ng()){var a=new IL,b=new nL;S(b,1,"11.0.0.0");V(a,7,b);b=this.m;var c=new yL,d="other";Md?d="windows":Ld?d=-1!=Jd.indexOf("Intel")?"mac":"mac-ppc":0<=Zc.indexOf("CrOS")?d="cros":Nd&&(d="linux");S(c,1,d);S(c,14,ZT);d=hU();S(c,15,d);S(c,16,$n);gU()&&oU(b);kU(b)?S(c,5,"ARM"):(S(c,2,6),S(c,3,14),S(c,5,"GenuineIntel"),d=mU(b.b),S(c,18,d));S(c,25,b.b.modelName);c.g(b.b.numOfProcessors);V(a,8,c);return a}};g.Mg=function(a){return this.Ng()?new sT(a):null};
g.tk=function(a,b,c){if(this.Ng()){xC(a);var d=a.get(tC);d=new XX(this.s,d);a=new I_(a,b,d,c);b=new C0(b,a,c,this.j);b.h(a);return b}return null};bP(o1,SS,6);var q1=function(a,b,c){vT.call(this,a,b,p1);this.Z=c};l(q1,vT);q1.prototype.g=function(){FT(this,this.Z.clone());return Mt()};var r1=new M0,s1=K0(320);s1.b=180;var t1=s1.V();r1.f=t1;var u1=K0(640);u1.b=360;var v1=u1.V();r1.b=v1;var p1=r1.V();var w1=function(){};w1.prototype.load=function(a){Ab(this.l,"Loading gapi for realtime client");var b=window.gapi;b&&b.auth?a(b):(new Gu("notneeded",void 0,void 0,!0,!1,void 0)).init().then(function(b){a(b)})};w1.prototype.l=tb("mr.mirror.hangouts.ClientLoader");var x1=function(a,b){this.data=a;this.cf=b};x1.prototype.toString=function(){return"[op. result, version: "+this.cf+", resource count: "+this.data.length+"]"};var y1=function(){Y.call(this)};t(y1,Y);var z1=function(a){this.b=a};z1.prototype.Jh=tk;var A1=function(a,b){this.f=a;this.b=b};var B1=function(a,b,c,d,e,f,h,k,n,u,z){this.b=a;this.o=x(b);this.u=x(c);this.L=x(d);this.m=sc(b,d);this.D=sc(c,e);this.h=f;this.A=x(h);this.B=x(k);this.F=x(n);this.s=sc(h,n);this.C=sc(k,u);this.j=z||uk};B1.prototype.g=function(a){if(a instanceof this.b)var b=this.o;else if(a instanceof this.h)b=this.A;else return Xb("Passed in object did not match resource or identifier type"),[];return bc(b,function(b){return b.call(a)})};
var C1=function(a,b){if(b instanceof a.b)a=a.L;else if(b instanceof a.h)a=a.F;else return Xb("Passed in object did not match resource or identifier type"),[];return bc(a,function(a){return a.call(b)})};B1.prototype.f=function(a){if(a instanceof this.b)var b=this.m;else if(a instanceof this.h)b=this.s;else return Xb("Passed in object did not match resource or identifier type"),[];return bc(b,function(b){return b.call(a)})};
B1.prototype.Ob=function(a,b){var c=this.D;a.length!=c.length&&(b?a=sc(a,b):c=this.u);var d=new this.b;w(a,function(a,b){c[b].call(d,a)},this);return d};
var D1=function(a,b){var c=a.C;b.length!=c.length&&(c=a.B);var d=new a.h;w(b,function(a,b){c[b].call(d,a)},a);return d},E1=function(a,b){if(b instanceof a.b)a=a.m;else if(b instanceof a.h)a=a.s;else return Xb("Passed in object did not match resource or identifier type"),!1;return!dc(a,function(a){return null==a.call(b)})},G1=function(a,b,c){b=F1(a,b,a.f);a=F1(a,c,a.f);return Cc(b,a)},F1=function(a,b,c){return b instanceof Array?b:c.call(a,b)};var H1=function(){Y.call(this)};t(H1,Y);ab(H1);var J1=function(a,b,c,d,e,f,h){Y.call(this);this.f=d;this.K=e;this.j=D1(this.f,c);this.Oa=++I1;this.J=ls("realtime.collections.Collection."+this.Oa);this.D=e.b;this.Bb=h||null;this.va=f&&f.f||null;this.Va=e.Jh();this.Cb=f&&f.b||null;this.pb=new rB(this);this.h(this.pb);this.data={};this.rb=0;this.Ua=[];this.Qa={};this.b=-2;this.u=!0;this.A=Ut();this.state="ka";this.config=Ri(b);H1.Ha();this.M={};this.zb=tk};t(J1,Y);var K1=new Fk(10,67);J1.prototype.la=function(a){return new L1(a.cf,a.data,[],"ga")};
var M1=function(a,b){return new L1(b.cf,[],a,"ga")},I1=0,N1=0,O1=function(a){"ka"==a.state&&(a.state="ia",a.va&&a.pb.listen(a.va,a.Cb,a.Ik))};J1.prototype.start=function(a){a&&(this.j=Ri(a));"ka"==this.state&&O1(this);if("ia"!=this.state)return null;this.state="ja";P1(this);W(this.J,"Collection started: "+this.toString()+", "+this.Dc());return null};
J1.prototype.stop=function(){if("ja"==this.state||"ia"==this.state)this.flush(),this.Ba(),this.state="ka",W(this.J,"Collection stopped: "+this.toString()+": "+this.Dc())};var P1=function(a){a.u&&a.A&&(W(a.J,"Initial data available: "+a.toString()),a.A.resolve(a.Ua),a.A=null)};J1.prototype.Ba=function(){this.va&&wB(this.pb,this.va,this.Cb,this.Ik)};
J1.prototype.Ob=function(a){for(var b=[],c=0;c<arguments.length;++c)b[c-0]=arguments[c];if(0==b.length)return this.f.Ob(this.f.g(this.j));if(b[0]instanceof this.f.b)return this.f.Ob(this.f.f(b[0]));b=Array.prototype.concat.apply(Array.prototype,b);return this.f.Ob(this.f.g(this.j),b)};J1.prototype.o=function(a){for(var b=[],c=0;c<arguments.length;++c)b[c-0]=arguments[c];return this.Qa[Q1(this,Array.prototype.concat.apply(Array.prototype,b))]||null};var R1=function(a){return"ja"==a.state&&!0};
J1.prototype.ja=function(){this.flush();this.stop();null!=this.A&&(os(this.J,"Never any data: "+this.toString()),this.A.U.cancel(),this.A=null);J1.ra.ja.call(this)};J1.prototype.get=function(){return this.Ua};J1.prototype.flush=function(){do{S1(this);var a=this.B()}while(0<a)};var S1=function(a){dd(a.M,function(a){for(;a&&1<=a.length&&a[0].b;)a.shift()})},T1=function(a){return bc(id(a.data),function(a){return a.ya()})};
J1.prototype.add=function(a,b){Q1(this,a);if(U1(this,a)&&this.Va)return b=V1(this,"ma",a),Ct(this.B,this),b;a=this.K.ed([a]);return W1(this,a,p(this.la,this),b)};var X1=function(a,b,c){Q1(a,b);if(U1(a,b)&&a.Va)return c=V1(a,"na",b),Ct(a.B,a),c;b=a.K.fd([b]);return W1(a,b,p(a.la,a),c)};J1.prototype.remove=function(a,b,c){var d=this.Ga(a);return U1(this,a)&&null==c&&this.Va?(a=V1(this,"oa",d,b),Ct(this.B,this),a):W1(this,Y1(this,[d],b),ob(M1,[d]),c)};
var V1=function(a,b,c,d){var e=a.Ga(c).toString(),f=a.M[e]||[];a.M[e]=f;var h=null;e=f.length;if(1<=e&&!f[e-1].b)if(e=f[e-1],"ma"==b){if("ma"==e.type||"na"==e.type)h=e.kb,f.pop(),Z1(a,"j")}else if("na"==b&&("ma"==e.type||"na"==e.type)){f=e.resource;b=JSON.parse(f.ya());c=JSON.parse(c.ya());for(d=0;d<c.length;d++)null!=c[d]&&!Pi(b[d],c[d])&&(b[d]=c[d]);c=new f.constructor(b);e.resource=c;Z1(a,"i");return e.kb.U}a=new $1(b,c,h,d);f.push(a);return a.kb.U};
J1.prototype.B=function(){var a=0,b={};dd(this.M,function(c){if(c&&1<=c.length&&(c=c[0],!c.b)){c.b=!0;if("oa"==c.type&&c.f){var d=[c.resource];a2(this,Y1(this,d,c.f),ob(M1,d),[c.kb],d)}else d=b[c.type]||[],d.push(c),b[c.type]=d;a++}},this);dd(b,function(a,b){if(1<=a.length){var c=[],d=[];w(a,function(a){c.push(a.resource);d.push(a.kb)});switch(b){case "ma":a2(this,this.K.ed(c),p(this.la,this),d,c);break;case "na":a2(this,this.K.fd(c),p(this.la,this),d,c);break;case "oa":a2(this,Y1(this,c),ob(M1,c),
d,c);break;default:Xb("A request with type "+b+" was put in the queue.")}}},this);return a};var a2=function(a,b,c,d,e){null==b&&w(d,function(a){a.reject("Operation not available")});b.Vg(Q(a.config,7,0));b.Uf(Q(a.config,8,6E4),Q(a.config,13,6E4));e=bc(e,a.Ga,a);var f=b.Ug();f.then(p(a.Oj,a,e),p(a.Oj,a,e));Yt(f.then(p(a.Fk,a,b,c,d,e)),p(a.Gk,a,b,d));a.D.execute(b)};J1.prototype.Re=function(){return Nt("Resync not supported")};J1.prototype.Ie=function(){return!0};
var Y1=function(a,b,c){return a.K.zd(bc(b,a.T,a),c)},U1=function(a,b){return b instanceof b2?E1(a.f,a.T(b)):E1(a.f,b)},c2=function(a,b){b=D1(a.f,a.f.f(b));return new b2(a.f,b)},d2=function(a,b){var c=a.f;b=a.T(b);a=F1(c,a.j,c.g);c=F1(c,b,c.g);return Cc(a,c)},W1=function(a,b,c,d){if(null==b)return Nt("Operation not available");var e=Ut();d=null!=d?d:Q(a.config,7,0);b.Vg(d);d=b.Se()||Q(a.config,8,6E4);var f=b.Tg()||Math.max(d,Q(a.config,13,6E4)||0);b.Uf(d,f);null!=e&&Yt(b.Ug().then(p(a.Fk,a,b,c,[e],
null)),p(a.Gk,a,b,[e]));W(a.J,"Executing operation: "+b);a.D.execute(b);return e.U};g=J1.prototype;
g.Fk=function(a,b,c,d,e){W(this.J,"Operation executed: "+a+", result:"+e);Z1(this,"g",a.Eg());null!=b&&(this.Ie(e.cf)?(a=b(e))?this.ki(a):W(this.J,"Operation resulted in no update"):R1(this)&&Xb("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):w(c,function(a,b){var c=d[b];b=ac(e.data,function(a){return this.Ga(a).equals(c)},this);0==b.length&&ns(this.J,"Result data is empty after filtering for target resource id "+
c);a.resolve(b)},this)};g.Gk=function(a,b,c){var d="Operation failed: "+c;ns(this.J,d,c instanceof Error?c:Error(d));Z1(this,"f",new e2(a.Eg(),a.Fh(),c));w(b,function(a){a.reject(c)});c.response&&c.response.getResponseHeader&&(a=c.response.getResponseHeader().Ia(),(b=K1.get(a))&&f2(this,b,"Collection apiary operation failed with response code "+a+" triggering endcause "+b));return c};
g.Oj=function(a){var b=!1;w(a,function(a){var c=this.M[a.toString()];c&&1<=c.length?(c.shift(),b=b||1<=c.length):ns(this.J,"A writing request with resource id "+a+" completed but it is not in the request queue.")},this);b&&this.B()};g.Ik=function(a){"ja"!=this.state&&"ia"!=this.state||this.ji(a)};
g.ji=function(a){var b=this.dk(a);W(this.J,"Received push notification, version: "+b+", checking if any updates apply to this collection "+this.toString());var c=g2(this,a);a=h2(this,a);c.length||a.length?(W(this.J,"Notification applies to this collection: version: "+b+", add/modify: "+c.length+", remove:"+a.length),b=new L1(b,c,a,"fa"),ps(this.J,"Created partial update for notification: "+b),ms(this.J,es,"Add/modify: ["+b.f.join("|")+"], remove: ["+b.h.join("|")+"]"),Z1(this,"k"),this.ki(b)):W(this.J,
"Notification does not apply to this collection, ignoring.")};g.dk=function(){return-2};
var g2=function(a,b){var c=[];w(b.notification.Wa(),function(a){var b=this.f;a=a instanceof b.b?a:new b.b(JSON.parse(a.ya()));E1(this.f,a)?d2(this,c2(this,a))&&c.push(a):Z1(this,"E","Pushed modified: "+a.ya())},a);return c},h2=function(a,b){if(!b.notification.mb)return[];var c=[];w(b.notification.mb(),function(a){var b=this.f.j(a);E1(this.f,b)?(a=c2(this,b),d2(this,a)&&c.push(a)):Z1(this,"E","Pushed deleted: "+a.ya())},a);return c};
J1.prototype.ki=function(a){ps(this.J,"Begin processing update: "+a);a instanceof L1&&(ps(this.J,"Applying partial update: "+a),i2(this,a));ps(this.J,"Finish processing update: "+a+": "+this.Dc())};J1.prototype.Dc=function(){return"state: "+this.state+", local version: "+this.b+", snapshot size: "+this.rb};
var i2=function(a,b){ps(a.J,"Processing partial update: "+b);ms(a.J,es,"Add/modify: ["+b.f.join("|")+"], remove: ["+b.h.join("|")+"]");w(b.f,function(a){E1(this.f,a)?this.data[Q1(this,a)]=Ri(a):Z1(this,"E","Partial update: "+a.ya())},a);var c=[];w(b.h,function(a){var b=Q1(this,a);this.data[b]?delete this.data[b]:c.push(a)},a);0<c.length&&Z1(a,"F","Resources not found: "+Fu(c));j2(a)},j2=function(a){var b={},c={};dd(a.data,function(a,d){this.zb(a)&&(b[d]=a,c[d]=a)},a);var d=[],e=[];dd(a.Qa,function(a,
f){var h=b[f];h?(delete c[f],a==h||a&&h&&a instanceof h.constructor&&Pi(Ii(a),Ii(h))||e.push(h)):d.push(a)});var f=id(c);a.Qa=b;a.Ua=id(b);a.rb=gd(a.data);if(0<e.length||0<f.length||0<d.length)W(a.J,"Obtained update of the filtered view : modified: "+e.length+", added: "+f.length+", removed:"+d.length),ms(a.J,es,"Modified: ["+e.join("|")+"], added: ["+f.join("|")+"], removed: ["+d.join("|")+"]"),a.I(new k2(e,f,d))},l2=function(a,b){a.zb=b;j2(a)},Z1=function(a,b,c){null!=a.Bb&&a.Bb.b(b,c)};
J1.prototype.Ga=function(a){return null==a||a instanceof b2?a:c2(this,a)};var Q1=function(a,b){var c;fb(b)?c=b:c=b instanceof b2?C1(a.f,b.b):C1(a.f,b);return Fu(c)},m2=function(a){this.b=a;this.id=++N1},L1=function(a,b,c,d){m2.call(this,a);this.g=d;this.f=b;this.h=c};t(L1,m2);L1.prototype.toString=function(){return"[Partial update id: "+this.id+", version: "+this.b+", add/modify: "+this.f.length+", remove: "+this.h.length+", type: "+this.g+"]"};
var f2=function(a,b,c){"la"!=a.state&&(a.Ba(),a.state="la",ns(a.J,"Collection failed: "+a.toString()+": "+a.Dc(),Error(c)),a.I(new n2(b,c)))},$1=function(a,b,c,d){this.type=a;this.resource=b;this.kb=c||Ut();this.f=d||null;this.b=!1};J1.prototype.T=function(a){return a.b};var b2=function(a,b){this.f=a;this.b=b};b2.prototype.equals=function(a){return G1(this.f,this.b,a.b)};b2.prototype.toString=function(){return this.b.ya()};var k2=function(a,b,c){X.call(this,"pb");this.h=b;this.b=a;this.removed=c};
t(k2,X);var n2=function(a,b){X.call(this,"rb");this.b=a;this.reason=b};t(n2,X);var e2=function(a,b,c){Rr(c);this.request=b;this.jc=c};t(e2,Error);var o2=function(a){Y.call(this);var b=this;this.xa=a;this.b=null;this.g=LO(a,l1,!0).then(function(a){return b.b=a});this.j=0;this.m=Ut();Rt([this.g,this.m.U]);this.f=null;aY(this)};l(o2,wP);var p2=function(a){JO(a,nP)||wC(a,nP,function(a){return new o2(a)})};o2.prototype.Xa=function(a){var b=this;null==this.f&&(this.f=Rt([this.ab.Xa(a||{})||7,this.g]).then(function(a){return a[0]}),this.f.then(function(a){a!=b.j&&m(a)&&ld(tP,a)&&(b.j=a,b.I("tb"))},function(){return b.f=null}));return this.f};
aP(SS,o2);var q2=function(){this.b=0;this.f=Ut();this.h=null};q2.prototype.then=function(a,b,c){return this.f.U.then(a,b,c)};var r2=function(a,b){return Xt(a.f.U,b,void 0)};q2.prototype.get=function(){return this.h};Et(q2);var s2=function(){this.b=new q2};s2.prototype.resolve=function(a){var b=this;0==this.b.b&&(this.b.f.resolve(a),Ft(a)?(a.then(function(a){return t2(b,a)},function(){return t2(b,null)}),this.b.b=1):t2(this,a))};var t2=function(a,b){a.b.b=2;a.b.h=b};
s2.prototype.reject=function(a){0==this.b.b&&(this.b.b=2,this.b.f.reject(a))};var u2=function(){Y.call(this)};t(u2,PS);var v2=function(a){wP.apply(this,arguments)};l(v2,wP);var w2=function(a){X.call(this,"ub");this.b=a.slice()};l(w2,X);var z2=function(){var a=this;Hs.call(this);this.f=[];this.b=new x2(function(b){return y2(a,b)});this.h(this.b)};t(z2,Hs);var y2=function(a,b){w(a.f,function(a){b=a.filter(b)});return b},x2=function(a){v2.call(this);this.j=a;this.f=[];this.b=!1};l(x2,v2);var A2=function(a,b){a.f=x(b);a.b||(a.b=!0,Ct(a.g,a))};x2.prototype.g=function(){this.b=!1;this.I(new w2(this.j(this.f)))};var B2=function(a,b,c,d,e,f,h){Y.call(this);this.l=ls("realtime.media.apiary.Client");this.b=a;this.C=b;this.m=c;this.o=Qa(f)?f:8;this.A=e||Vc();this.B=N0(d,!!h);this.f=37;"hangout_lite"==c&&(this.f=55)};t(B2,wP);B2.prototype.g=function(a){return null!=a?T(a,xG,2):null};
var E2=function(a,b,c,d){d=void 0===d?!1:d;b=C2(a,b,c);return Yt(D2(a,d?"media_sessions/callperf":"media_sessions/log",b),function(a){os(this.l,"Failed to upload log data: "+a);throw a;},a)},C2=function(a,b,c){b=Ri(b);S(b,9,a.f);S(b,13,a.m);var d=new KL;d.setRequestHeader(F2(a));c&&d.Aa(c);V(d,3,b);return d},F2=function(a){var b=new yD;AD(b,new sD);uD(T(b,sD,1),a.o);var c=new oD;S(c,1,a.C);S(c,4,a.A);V(b,2,c);S(b,4,"en");V(b,7,a.B);return b};
B2.prototype.j=function(a){if(null==a)throw new G2("Got empty response.");if(Qa(a.getResponseHeader)){var b=a.getResponseHeader();if(null!=b){if(b=b.Ia(),1!=b)throw new G2("Got bad status in response header.",b);}else throw new G2("Missing response header.");}return a};
var D2=function(a,b,c){if(null==a.b){var d="Failed to "+b+" "+c+": no service";os(a.l,d);return Nt(d)}return a.b.makeRequest(b,c,a.D,a.u).then(a.j,function(a){os(this.l,"Failed to "+b+" "+c+": "+a);throw a;},a)},G2=function(a,b){Ub.call(this);this.desc=a;this.status=b||0};t(G2,Ub);var H2=function(){this.l=ls("realtime.media.apiary.Parser")};H2.prototype.j=function(a){var b=new RG;S(b,1,a.b);S(b,2,a.f);b.Cd(a.width);b.Bd(a.height);return b};H2.prototype.u=function(a){var b=+O(a,1),c=+O(a,2),d=+O(a,3);a=+O(a,4);return null!=b&&null!=c&&null!=d&&null!=a?new EP(b,c,d,a):null};
var K2=function(a,b,c,d,e,f){var h=new xG;null!=b.g&&h.Aa(b.g);S(h,7,e?2:1);e=[];null!=c&&(AG(h,[c]),null!=d&&(e=d));e=e.concat(x(b.oa.g));c=b.ga;null!=c&&(e=e.concat(x(c.g)));c=[];d=I2([b.oa,b.ga,b.Ka]);a=J2(a,d,e,b.b,x(b.h));a.sb(4);c.push(a);zG(h,c);b=bc(b.f.ea(),function(a){var b=new uG,c=a.getChannelId();S(b,1,c);S(b,2,a.g);c=a.rd();S(b,4,c);switch(c){case "collections":S(b,5,1);break;case "msodc":S(b,5,2)}a=a.b;null!=a&&S(b,3,a);return b});Ji(h,5,b);null!=f&&S(h,13,f);return h},P2=function(a,
b,c){var d=null,e=null,f=null,h=null,k=[],n=Qa(c)?c:!0;c=b.g();var u=U(b,pG,4);if(0<u.length){u=u[0];f=L2(a,u);d=hR(M2(f,"a"),P(b,10));O(b,12)&&0!==O(b,12)&&(d=jR(d,O(b,12)));e=M2(f,"v");f=M2(f,"d");var z=T(u,kG,2);z&&(h=N2(a,z,n));(n=U(u,XF,4))&&(k=O2(a,n,a.ep,a)||[])}a=bc(U(b,uG,5),function(a){return new wQ(a.getChannelId(),O(a,2),O(a,3),a.rd())},a);return new sR(d,e,f,null==c?void 0:c,a,h,k)},M2=function(a,b){var c=ac(TQ(a),function(a){return a.da()==b}),d="d"==b?a.b:null;if(0==c.length&&null==
d)return null;var e=ac(x(a.f),function(a){return a.da()==b});a=ac(x(a.g),function(a){return a.da()==b});return YQ(bR(new RQ(b,c,e),a),d)},J2=function(a,b,c,d,e){var f=new pG;f.sb(Q2(a,b.X())||void 0);var h=bc(TQ(b),a.Bn,a);Ji(f,3,h);e=bc(e,a.Dj,a);Ji(f,4,e);e=bc(x(b.f),a.Cn,a);Ji(f,5,e);if(null!=d){e=new kG;a:{h=d.mc();switch(h){case "GICE":h=1;break a;case "ICE":h=2;break a}os(a.l,"Unknown ICE version: "+h);h=void 0}S(e,1,h);S(e,4,d.h);S(e,5,d.f);h=bc(x(d.g),a.f,a);Ji(e,6,h);if(h=d.b)d=new mG,h=
h.split(" "),S(d,1,h[0]),S(d,2,h[1]),V(e,2,d);V(f,2,e)}b.b&&(d=b.b.getName(),S(f,8,d));if(b=b.h)d=new OF,-1!=b.f&&S(d,1,b.f),-1!=b.b&&S(d,2,b.b),-1!==b.h&&S(d,3,b.h),V(f,7,d);a=bc(c,a.h,a);Ji(f,6,a);return f};H2.prototype.h=function(a){var b=new bG;S(b,2,a.f);var c=new ZF;c.Bd(a.b&&a.b.height);c.Cd(a.b&&a.b.width);S(c,3,a.h);V(b,3,c);c=new dG;V(c,2,b);c.sb(Q2(this,a.da())||void 0);return c};
var I2=function(a){for(var b=[],c=[],d=[],e=null,f=null,h=0;h<a.length;h++)null!=a[h]&&(b=b.concat(TQ(a[h])),c=c.concat(x(a[h].f)),d=d.concat(x(a[h].g)),!e&&a[h].b&&(e=a[h].b),!f&&a[h].h&&(f=a[h].h));return YQ(eR(bR(ZQ(XQ(a[0],b),c),d),f),e)},L2=function(a,b){var c=R2(a,b.da());if(null==c)return null;var d=O2(a,U(b,RF,3),a.cp,a)||[],e=O2(a,U(b,fG,5),p(function(a){var b=c||void 0;var d=a.Fc()||"";var e=a.getId();b=R2(this,a.da(),b);null!=d&&null!=e?(a=new AQ,a.f=d,a.Oa=e,b&&(a.b=b),d=a.V()):(os(this.l,
"Missing RTP header extension id or uri: "+a),d=null);return d},a))||[],f=[];w(U(b,dG,6),function(a){var b=R2(this,a.da());null!=b&&(b=JQ(new IQ,b),a=S2(b,T(a,bG,2)),f.push(a))},a);a=null;(b=O(b,8))&&(a=FQ(DQ(EQ(new CQ,b),5E3),256).V());return YQ(bR(new RQ(c,d,e),f),a)},Q2=function(a,b){switch(b){case "a":return 1;case "v":return 2;case "d":return 3}os(a.l,"Unknown media type: "+b)},R2=function(a,b,c){switch(b){case 1:return"a";case 2:return"v";case 3:return"d";case 4:return"a"}if(Qa(c))return c;
os(a.l,"Unknown media type: "+b);return null};g=H2.prototype;g.Bn=function(a){var b=new RF;b.sb(Q2(this,a.da()));S(b,1,a.bd);VF(b,a.getName());WF(b,bc(Object.entries(a.ad),function(a){var b=ma(a);a=b.next().value;b=b.next().value;var c=new TF;S(c,1,a);S(c,2,b);return c},this));var c=a.h;S(b,5,null==c?0:c);S(b,6,a.f);S(b,7,a.b);return b};
g.cp=function(a){var b=R2(this,a.da()),c=O(a,1),d=a.getName();if(null==b||null==c||null==d)return os(this.l,"Bad codec: "+a),null;var e=qQ(pQ(oQ(new nQ,b),c),d);b=O(a,5);null!=b&&(e.f=b);b=O(a,6);null!=b&&rQ(e,b);b=O(a,7);null!=b&&sQ(e,b);w(U(a,TF,8),function(a){var b=O(a,1)||"";a=O(a,2)||"";tQ(e,b,a)},this);return e.V()};
g.Dj=function(a){a:{var b=a.sd();switch(b){case "AES_CM_128_HMAC_SHA1_32":var c=2;break a;case "AES_CM_128_HMAC_SHA1_80":c=1;break a}os(this.l,"Unknown crypto suite: "+b);c=null}if(null==c)return os(this.l,"Unknown crypto suite: "+a.sd()),null;b=new XF;S(b,1,c);c=a.Ce();S(b,2,c);c=a.Cf()||void 0;S(b,3,c);a=a.Ud();S(b,4,a);return b};
g.ep=function(a){a:{var b=a.sd();switch(b){case 2:b="AES_CM_128_HMAC_SHA1_32";break a;case 1:b="AES_CM_128_HMAC_SHA1_80";break a}os(this.l,"Unknown crypto suite: "+b);b=null}if(null==b)return os(this.l,"Unknown crypto suite: "+a.sd()),null;var c=a.Ce(),d=a.Cf(),e=a.Ud();if(null==c||null==e)return os(this.l,"Bad crypto: "+a),null;a=new vQ;a.h=b;a.b=c;a.g=e;d&&(a.f=d);return a.V()};g.Cn=function(a){var b=new fG,c=a.Fc();S(b,2,c);c=a.getId();S(b,1,c);a=a.da();b.sb(a?Q2(this,a):void 0);return b};
var N2=function(a,b,c){a:{var d=O(b,1);switch(d){case 1:d="GICE";break a;case 2:d="ICE";break a}os(a.l,"Unknown ICE version: "+d);d=null}if(null==d)return null;c=c&&"ICE"===d?"lite":"full";var e=O(b,4)||"",f=O(b,5)||"";a=T2(a,U(b,hG,6));b=T(b,mG,2);var h;b&&(h=O(b,1)+" "+O(b,2));return new qR(d,e,f,h,a,c)},T2=function(a,b){return O2(a,b,p(function(a){b:{var b=a.Qd();switch(b){case 1:b=1;break b;case 2:b=2;break b}os(this.l,"Unknown ICE component: "+b);b=null}var c=a.Td();null!=c||(c=0);var f=U2(this,
a.X()),h=V2(this,a.Uc()),k=a.Be(),n=a.Sa();if(b&&f&&h&&k&&n){var u=c.toString(),z=a.Af()||"";a=a.ze()||0;a=new jQ(b,c,f,h,k,n,u,a,z)}else os(this.l,"Missing or unknown candidate parmeters: "+a),a=null;return a},a))||[]};
H2.prototype.f=function(a){var b=new hG;a:{var c=a.Qd();switch(c){case 1:c=1;break a;case 2:c=2;break a}os(this.l,"Unknown ICE component: "+c);c=void 0}S(b,1,c);a:{c=a.Uc();switch(c){case "UDP":c=1;break a;case "TCP":c=2;break a;case "SSLTCP":c=3;break a}os(this.l,"Unknown candidate protocol: "+c);c=void 0}S(b,2,c);c=a.Be();S(b,3,c);c=a.Sa();S(b,4,c);c=W2(this,a.X());S(b,5,c);c=a.Td();S(b,6,c);c=a.Af();S(b,7,c);a=a.ze();S(b,8,a);return b};
var V2=function(a,b){switch(b){case 1:return"UDP";case 2:return"TCP";case 3:return"SSLTCP"}os(a.l,"Unknown candidate protocol: "+b);return null},W2=function(a,b){switch(b){case "LOCAL":return 1;case "PEER_REFLEX":return 2;case "STUN":return 3;case "RELAY":return 4}os(a.l,"Unknown candidate type: "+b)},U2=function(a,b){switch(b){case 1:return"LOCAL";case 2:return"PEER_REFLEX";case 3:return"STUN";case 4:return"RELAY"}os(a.l,"Unknown ICE type: "+b);return null},X2=function(a,b,c,d){var e=new YG;e.oi(2);
null!=b&&e.Aa(b);e.Y(c);e.Da(d.S());e.sb(Q2(a,d.da()));b=d.sa();S(e,7,b);e.pi(d.yb());"v"==d.da()&&S(e,11,d.ye());b=new bH;c=d.Ec();S(b,1,c);e.Tf(b);b=new $G;c=d.nb();S(b,1,c||[]);d.b&&(c=x(d.b.b),S(b,3,c||[]));a=bc(x(d.h),a.g,a);Ji(b,2,a);V(e,8,b);return e},Y2=function(a,b){return O2(a,b,a.m,a)||[]};
H2.prototype.m=function(a){var b=R2(this,a.da());if(null==b)return os(this.l,"Unknown stream media type: "+a),null;var c=a.S(),d=a.sa(),e=a.yb();if(null==c||null==d||null==e)return os(this.l,"Missing stream parmeters: "+a),null;var f=T(a,bH,10);f=!(!f||!f.Ec());var h=null!=O(a,11)?!!O(a,11):!0,k=[],n=[],u=[];a=T(a,$G,8);null!=a&&(k=O2(this,P(a,1),this.b,this)||[],n=O2(this,U(a,eH,2),this.s,this)||[],u=P(a,3));a=null;0<u.length&&(a=zP(new yP,u).V());return RP(QP(UP(VP(SP(PP(OP(NP(MP(LP(KP(new JP,b),
c),d),e),f),h),k),n),a),e),e).V()};H2.prototype.b=function(a){return a>>>0};H2.prototype.g=function(a){var b=new eH;S(b,1,a.b);a=a.nb();S(b,2,a||[]);return b};H2.prototype.s=function(a){var b=O2(this,P(a,2),this.b)||[],c=O(a,1);return null==c?(os(this.l,"Unknown ssrc group semantics: "+a),null):DP(CP(c),b).V()};var Z2=function(a,b){return O2(a,b,a.o,a)||[]};
H2.prototype.o=function(a){var b=R2(this,a.da());if(null==b)return os(this.l,"Unknown stream request media type: "+a),null;var c=a.S(),d=a.sa();if(null==c||null==d)return os(this.l,"Missing stream request parmeters: "+a),null;var e=new IQ;e.j=c;b=JQ(e,b);b.h=d;d=T(a,$G,8);null!=d&&KQ(b,O2(this,P(d,1),this.b,this)||[]);return S2(b,T(a,bG,9))};
var S2=function(a,b){if(b&&O(b,2)){if(MQ(a,!0),b=b.Lb()){var c=O(b,3);c&&OQ(a,c);c=O(b,2);b=O(b,1);c&&b&&NQ(a,new Oe(c,b))}}else MQ(a,!1);return a.V()},O2=function(a,b,c,d){null!=d&&(c=p(c,d));if(null==b||!fb(b))return null;d=[];for(var e=0;e<b.length;e++){var f=b[e];if(null==f)return os(a.l,"Failed to parse: "+b),null;var h=c(f);if(null==h)return os(a.l,"Failed to parse: "+f),null;d.push(h)}return d};var $2=function(a,b,c){X.call(this,"vb");this.state=b;this.sessionId=c};t($2,X);var a3=function(a,b,c,d){if(null==a)return d=ls("realtime.media.apiary.RpcEventDispatcher"),ns(d,"Failed to report impression on RPC request because thenable is null for rpc "+b+"with sessionId "+c),Nt();a=a.then();d.I(new $2(b,"ra",c));var e=iu(a.cancel,9E4,a),f=!1;Yt(a,function(a){f=!0;return a}).then(function(a){ju(e);var d="sa";a instanceof Ht?d="ua":f&&(d="ta");Ic(Tc(c))&&(1>a.length||!(a[0]instanceof xG)?c=null:(a=a[0],c=null!=a?a.g():null));this.I(new $2(b,d,c))},null,d);return a};var b3=function(){aY(this)};ab(b3);var c3=function(a,b,c,d,e){return a.ab.s(b,c,d,e)},d3=function(){};t(d3,$O);aP(d3,b3);d3.prototype.f=gP();d3.prototype.s=gP();d3.prototype.j=gP();d3.prototype.g=gP();var e3=function(a,b,c){Hs.call(this);this.A=null!=c?p(a,c):a;this.u=b;this.o=p(this.Wn,this);this.f=!1;this.g=0;this.j=this.b=null;this.m=[]};t(e3,Hs);g=e3.prototype;g.Vn=function(a){this.m=arguments;this.f=!1;this.b?this.j=q()+this.u:this.b=iu(this.o,this.u)};g.stop=function(){this.b&&(ju(this.b),this.b=null);this.j=null;this.f=!1;this.m=[]};g.pause=function(){++this.g};g.resume=function(){this.g&&(--this.g,!this.g&&this.f&&(this.f=!1,this.A.apply(null,this.m)))};g.ja=function(){this.stop();e3.ra.ja.call(this)};
g.Wn=function(){this.j?(this.b=iu(this.o,this.j-q()),this.j=null):(this.b=null,this.g?this.f=!0:(this.f=!1,this.A.apply(null,this.m)))};var f3=function(a,b,c,d,e,f,h){J1.call(this,a,b,c,d,e,f,h);this.bb=e;this.b=-1;this.u=!1;this.ma=-1;this.g=[];this.wa=this.Z=this.Ca=this.ta=null;this.C=!1;this.Ab=0;this.P=null;this.m=new BY(Q(this.config,2,1E3),Q(this.config,3,6E4));this.ob=new e3(this.yj,0,this)};t(f3,J1);f3.prototype.start=function(a){f3.ra.start.call(this,a);if("ja"!=this.state)return null;this.pb.listen(this.D,"lb",this.Dk);g3(this,!0);W(this.J,"Starting initial resync.");return h3(this,"Aa",!0)};
f3.prototype.Ba=function(){f3.ra.Ba.call(this);wB(this.pb,this.D,"lb",this.Dk);ju(this.wa);this.wa=null;this.m.reset();ju(this.Ca);this.Ca=null;ju(this.Z);this.P=this.Z=null;this.u=!1};f3.prototype.query=function(a,b){return W1(this,this.bb.gd(this.T(a)),null,b)};f3.prototype.search=function(a){return W1(this,this.bb.Ad(Ri(this.j)),null,a)};
var j3=function(a,b){"za"!=b&&0==a.m.f&&a.D.I("lb");ps(a.J,"Starting sync. Type: "+b);var c="Ba"==b||"Ca"==b,d=a.bb.Ad(Ri(a.j)),e=-2;Q(a.config,11,!1)&&(9E4>q()-a.Ab&&d.Ei(a.b)?e=a.b:a.Ab=q());d=W1(a,d,function(c){g3(a,!1);return e!=c.cf?new i3(c.cf,c.data,b):null});Yt(d.then(p(a.ap,a,c)),p(a.Zo,a,c));a.ta=d;Yt(a.ta,Ya);return d};g=f3.prototype;g.Ie=function(a){return 0<=a};g.Dk=function(){h3(this,"za",!0)};g.Re=function(){return null!=h3(this,"Da",!0)||this.ta?this.ta:Nt("Collection not yet started, so cannot resync.")};
g.ji=function(a){var b=!1,c=a.notification.hb();null!=c&&""!=c&&(b=this.f.j(c),b=c2(this,b),b=d2(this,b));b?this.Re():f3.ra.ji.call(this,a)};g.dk=function(a){var b;hb(a.notification.G)&&null!=a.notification.G()&&(b=a.notification.G().mc());return b};
g.ki=function(a){ps(this.J,"Begin processing update: "+a);var b=a.b==this.ma;this.ma=Math.max(this.ma,a.b);g3(this,!1);if(a instanceof i3)k3(this,a);else{l3(this,a.f,a.h);if(this.Ie(this.b)&&a.b<=this.b){"fa"==a.g&&Z1(this,"m");var c=!1;b&&(Z1(this,"n"),c=!0);100<this.b-a.b&&(Z1(this,"o"),c=!0);c&&h3(this,"Ea",!0);Z1(this,"l");ps(this.J,"Ignoring update "+a+" below or equal to local version ("+this.b+")");return}b=gc(this.g,function(b){return b.b<=a.b},this);if(null!=b&&a.b==b.b){Z1(this,"l");os(this.J,
"Duplicate update received, ignoring it.");return}ps(this.J,"Queuing partial update: "+a);mc(this.g,a,b)}a instanceof i3?this.yj():this.ob.Vn();ps(this.J,"Finish processing update: "+a+": "+this.Dc())};
var l3=function(a,b,c){a.Ie(a.b)||(ps(a.J,"Dispatch early notification: "),a.I(new m3(b,c)))},h3=function(a,b,c){if(!R1(a)||a.C)return null;a.m.reset();var d=null;a.C=!0;c?d=j3(a,b):n3(a);return d},o3=function(a){a.C&&(W(a.J,"Ending resync"),a.C=!1,a.I("sb"))},n3=function(a){var b=a.m.b;Z1(a,"r");W(a.J,"Scheduling resync timer, backoff count: "+a.m.f+", backoff: "+b);a.wa=iu(a.Yo,b,a)};g=f3.prototype;
g.Yo=function(){W(this.J,"Resync timer triggered, "+this.Dc());this.wa=null;R1(this)?(Z1(this,"s"),j3(this,"Ea")):o3(this)};
g.ap=function(a){W(this.J,(a?"Poll":"Resync")+" operation executed, "+this.Dc());p3(this,!1);if(this.u||!R1(this))o3(this);else{a=!1;var b=Q(this.config,5,4);this.m.f>=b?(Z1(this,"q"),W(this.J,"Hard sync threshold reached ("+b+"), doing a hard resync"),a=!0):this.g.length>Q(this.config,4,64)&&(Z1(this,"p"),ps(this.J,"Number of queued updates is larger than the max ("+Q(this.config,4,64)+"), clearing the queue"),a=!0);a?(jc(this.g),this.m.reset(),j3(this,"Fa")):(CY(this.m),n3(this))}};
g.Zo=function(a,b){var c=(a?"Poll":"Resync")+" error: "+b;ns(this.J,c,b instanceof Error?b:Error(c));Z1(this,a?"D":"t");p3(this,!0);R1(this)?(CY(this.m),n3(this)):o3(this)};g.Dc=function(){return f3.ra.Dc.call(this)+", is synced: "+this.u+", is resyncing: "+this.C+", queue size: "+this.g.length+", highest observed server version: "+this.ma+(0<this.g.length?", smallest queued version: "+Yb(this.g).b+", largest queued version: "+this.g[0].b:"")};
g.yj=function(){this.ob.stop();if(0!=this.g.length&&this.Ie(this.b)){ps(this.J,"Trying to apply any queued updates, "+this.Dc());for(var a=0;0<this.g.length&&Yb(this.g).b<=this.b;){var b=this.g.pop();ps(this.J,"Tossing queued update "+b+" below or equal to local version ("+this.b+")");a++}0<a&&ps(this.J,"Tossed "+a+" queued old updates below or equal to local version ("+this.b+")");for(a=0;0<this.g.length;)if(b=Yb(this.g),b.b==this.b)this.g.pop(),a++;else if(b.b==this.b+1)this.b=b.b,i2(this,b),this.g.pop(),
a++;else{ps(this.J,"Unable to incrementally apply next queued update,  lowest queue update version: "+b.b+", local version:"+this.b+", remaining queue length: "+this.g.length);break}ps(this.J,"Applied "+a+" queued updates")}(this.u=0==this.g.length&&this.Ie(this.b))?P1(this):h3(this,"Ea",!1)};g.Kk=function(a){R1(this)&&(Z1(this,"u"),W(this.J,"Executing poll sync operation"),h3(this,a,!0),g3(this,!0))};
var g3=function(a,b){if(R1(a)){W(a.J,"Scheduling next poll for "+Q(a.config,1,3E4)/1E3+" seconds from now");ju(a.Ca);a.Ca=iu(ob(a.Kk,"Ba"),Q(a.config,1,3E4),a);var c=Q(a.config,9,9E4);null!=c||(c=9E4);b&&0<c&&(ju(a.Z),a.Z=iu(ob(a.Kk,"Ca"),c,a))}},p3=function(a,b){if(b)if(null!=a.P){b=q()-a.P;var c="Sync operations failing for a period of "+b/1E3+" seconds (limit configured to: "+Q(a.config,6,3E5)/1E3+" seconds).";os(a.J,c);b>=Q(a.config,6,3E5)&&f2(a,22,c)}else a.P=q(),os(a.J,"Sync operation failed, we will continue retrying for up to "+
Q(a.config,6,3E5)/1E3+" seconds before shutting down...");else a.P=null},k3=function(a,b){ps(a.J,"Processing full update: "+b);ms(a.J,es,"Snapshot: ["+b.data.join("|")+"]");if(a.b>=b.b&&100>a.b-b.b){var c=[];if(a.b==b.b){var d={};w(b.data,function(a){var b=Q1(this,a);d[b]=!0;b=this.data[b]||null;b==a||b instanceof a.constructor&&q3(JSON.parse(b.ya()),JSON.parse(a.ya()))||c.push({local:b&&b.ya(),server:a.ya()})},a);dd(a.data,function(a,b){d[b]||c.push({local:a.ya(),server:null})},a)}if(0!=c.length)os(a.J,
"Reapplying update with version that's the same, update: "+b.b+", local: "+a.b+", type: "+b.f),Z1(a,"C",c);else{Z1(a,"z");switch(b.f){case "Ea":Z1(a,"A");break;case "Ba":Z1(a,"B")}ps(a.J,"Ignoring update with version not newer than local version, update: "+b.b+", local: "+a.b+", type: "+b.f);return}}a.b>b.b&&100<a.b-b.b&&Z1(a,"o",""+(a.b-b.b));Z1(a,"v");switch(b.f){case "Ba":Z1(a,"x");break;case "Ea":Z1(a,"w");break;case "Fa":Z1(a,"y")}var e=ac(b.data,function(a){if(E1(this.f,a))return!0;Z1(this,
"E","Full update: "+a.ya());return!1},a),f=[];d={};w(b.data,function(a){d[Q1(this,a)]=!0},a);dd(a.data,function(a,b){d[b]||f.push(c2(this,a))},a);ps(a.J,"Applying full update as partial and advancing version from "+a.b+" to "+b.b);a.b=b.b;i2(a,new L1(b.b,e,f,"ha"))},q3=function(a,b){var c=fb(a),d=fb(b);if(c&&d){c={};for(var e in a)a.hasOwnProperty(e)&&(c[e]=0);for(e in b)b.hasOwnProperty(e)&&(c[e]=0);for(e in c)if(!q3(a[e],b[e]))return!1;return!0}return a==b||null==a&&d&&0==b.length||null==b&&c&&
0==a.length},i3=function(a,b,c){m2.call(this,a);this.data=b;this.f=c};t(i3,m2);i3.prototype.toString=function(){return"[Full update id: "+this.id+", version: "+this.b+", resource count: "+this.data.length+", sync type: "+this.f+"]"};var m3=function(a,b){X.call(this,"qb");this.b=a;this.removed=b};t(m3,X);var s3=function(a,b,c,d,e){Hs.call(this);this.g=a;this.F=b;this.L=c||this.D;this.B=d||null;this.C=e||null;this.f=-1;this.A=Ut();this.b=null;this.j=!1;this.o=0;this.u=this.m=void 0;this.Oa=++r3};t(s3,Hs);var r3=0;s3.prototype.Ei=function(a){this.f=a;t3(this);return!0};s3.prototype.Ee=function(){return this.A};s3.prototype.Ug=function(){return this.A.U};s3.prototype.Fg=function(){return this.j};var u3=function(a){null==a.b&&(a.b=a.F(),t3(a));return a.b};g=s3.prototype;g.Vg=function(a){this.o=a};
g.Nf=function(){return this.o};g.Uf=function(a,b){Qa(b)&&(b=Math.max(a,b));this.m=a;this.u=b};g.Se=function(){return this.m};g.Tg=function(){return this.u};var t3=function(a){if(null!=a.b&&-1!=a.f){var b=a.b;if(hb(b.H)){var c=new Ui;S(c,1,a.f);b.H(c)}else hb(b.W)&&b.W()}};s3.prototype.Eg=function(){return this.g};s3.prototype.Fh=function(){return u3(this).toString()};s3.prototype.toString=function(){return"[Operation id: "+this.Oa+": "+this.g+", version: "+this.f+"]"};s3.prototype.D=function(){return[]};
var v3=function(){Ub.call(this)};t(v3,Ub);v3.prototype.message="Operation has already been executed.";v3.prototype.name="AlreadyExecutedError";var w3=function(a){this.b=a};t(w3,z1);var x3=function(a){this.b=a};t(x3,w3);g=x3.prototype;g.ed=function(a){return new s3("hangout_participants/add",function(){var b=new DF;Ji(b,6,a);return b},function(a){return U(a,wF,5)})};g.fd=function(a){return new s3("hangout_participants/modify",function(){var b=new GK;Ji(b,4,a);return b},function(a){return U(a,wF,4)})};g.zd=function(a,b){var c=b&&b.jYdIne||0;return new s3("hangout_participants/remove",function(){var b=new MK;NK(b,a);S(b,5,c);return b})};
g.gd=function(a){return new s3("hangout_participants/query",function(){var b=new JK;b.Y(a.ba());b.Da(a.S());return b},function(a){return[T(a,wF,2)]})};g.Ad=function(a){return new s3("hangout_participants/search",function(){var b=new FF;b.Y(a.ba());return b},function(a){return U(a,wF,2)},mH.prototype.g,YH.prototype.g)};var y3=function(a){this.b=a};t(y3,w3);g=y3.prototype;g.ed=function(a){return new s3("hangouts/add",function(){var b=new VE;Ji(b,4,a);return b},function(a){return U(a,SE,5)})};g.fd=function(a){return new s3("hangouts/modify",function(){var b=new CK;Ji(b,4,a);return b},function(a){return U(a,SE,4)})};g.zd=function(){return null};g.gd=function(a){return new s3("hangouts/query",function(){var b=new HF;b.Y(a.ba());return b},function(a){return[T(a,SE,2)]},mH.prototype.o,YH.prototype.o)};g.Ad=function(a){return this.gd(a)};var z3=function(a){this.b=a};t(z3,z1);z3.prototype.ed=function(a){return new s3("media_sessions/add",function(){var b=new CG;Ji(b,4,a);return b},function(a){return U(a,xG,4)})};z3.prototype.fd=function(a){return new s3("media_sessions/modify",function(){var b=new NL;Ji(b,4,a);return b},function(a){return U(a,xG,4)})};z3.prototype.zd=function(){return null};var A3=function(a){this.b=a};t(A3,w3);g=A3.prototype;g.ed=function(a){return new s3("media_sources/add",function(){var b=new UG;Ji(b,4,a);return b},function(a){return U(a,GG,4)})};g.fd=function(a){return new s3("media_sources/modify",function(){var b=new RL;Ji(b,4,a);return b},function(a){return U(a,GG,4)})};g.zd=function(){return null};g.gd=function(a){return new s3("media_sources/query",function(){var b=new UL;b.Y(a.ba());b.Da(a.S());var c=a.sa();S(b,4,c);return b},function(a){return[a.fa()]})};
g.Ad=function(a){return new s3("media_sources/search",p(function(){var b=new WG;b.Y(a.ba());return b},this),function(a){return U(a,GG,2)},mH.prototype.u,YH.prototype.u)};var B3=function(a){this.b=a};t(B3,w3);g=B3.prototype;g.ed=function(a){return new s3("media_streams/add",function(){var b=new iH;Ji(b,4,a);return b},function(a){return U(a,YG,4)})};g.fd=function(a){return new s3("media_streams/modify",function(){var b=new XL;Ji(b,4,a);return b},function(a){return U(a,YG,4)})};g.zd=function(){return null};g.gd=function(a){return new s3("media_streams/query",function(){var b=new $L;b.Y(a.ba());var c=a.mi();S(b,2,c);b.Aa(a.ni());c=a.yb();S(b,4,c);return b},function(a){return[a.bc()]})};
g.Ad=function(a){return new s3("media_streams/search",p(function(){var b=new kH;b.Y(a.ba());b.Aa(a.ni());var c=a.mi();S(b,2,c);return b},this),function(a){return U(a,YG,2)},mH.prototype.A,YH.prototype.A)};var C3=function(){return new B1(SE,[SE.prototype.ba],[SE.prototype.Y],[],[],vI,[vI.prototype.ba],[vI.prototype.Y],[],[])};var D3=function(){return new B1(YG,[YG.prototype.ba,YG.prototype.lp,YG.prototype.mp],[YG.prototype.Y,YG.prototype.oi,YG.prototype.Aa],[YG.prototype.yb],[YG.prototype.pi],KI,[KI.prototype.ba,KI.prototype.mi,KI.prototype.ni],[KI.prototype.Y,KI.prototype.jp,KI.prototype.Aa],[KI.prototype.yb],[KI.prototype.kp])};var F3=function(a,b,c){return E3(a,b,[c],new B1(GG,[GG.prototype.ba],[GG.prototype.Y],[GG.prototype.S,GG.prototype.sa],[GG.prototype.Da,GG.prototype.li],FI,[FI.prototype.ba],[FI.prototype.Y],[FI.prototype.S,FI.prototype.sa],[FI.prototype.Da,FI.prototype.hp]),A3,"db")},E3=function(a,b,c,d,e,f){var h=b3.Ha();e=new e(c3(h,a,b));f=new A1(h.ab.j(a,b),f);return new f3(a,h.ab.f(a,b),c,d,e,f,h.ab.g(a,b))};var G3=function(){aY(this)},H3=function(a){(a=a.ab.f())||(a=(new yQ).V());return a},I3=function(){};t(I3,$O);aP(I3,G3);I3.prototype.f=gP();var J3=function(a,b){X.call(this,"wb");this.Ja=a;this.data=b};t(J3,X);var K3=function(a){X.call(this,"xb");this.data=a};t(K3,X);var L3=function(){Hs.call(this);this.l=ls("realtime.media.stats.HighResVideoTracker");this.f={};this.b={}};l(L3,Hs);var M3=function(a,b){SB(b).forEach(function(b){if(2==O(b,1)&&1==hC(b)&&0<P(b,53).length){var c=P(b,53)[0];S(b,135,a.b[c]||[])}})};var N3=function(a){EB.apply(this,arguments)};l(N3,EB);var O3=function(a){return 0<a.pa()&&!a.f.some(function(a){return isNaN(a)})},P3=function(a){return null!=a?a:NaN};var Q3=function(){this.b=null;this.f=new Map};Q3.prototype.update=function(a){this.b=a;R3(this)};
var R3=function(a){w(SB(a.b),function(b){var c=P(b,53)[0];if(c)switch(O(b,1)){case 1:S3(a,c,"Ga",O(b,26));break;case 2:1==hC(b)&&(S3(a,c,"Ia",O(b,89)),0<O(b,138)&&(S3(a,c,"Ha",O(b,138)),b=b.o))&&(S3(a,c,"Ja",O(b,12)-O(b,11)),S3(a,c,"Ka",O(b,4)-O(b,3)),S3(a,c,"La",O(b,12)-O(b,9)),S3(a,c,"Ma",O(b,6)-O(b,2)))}})},S3=function(a,b,c,d){b=b+"-"+c;c=a.f.get(b);d=null!=d?d:NaN;c||(c=new N3);var e=P3(O(c,3));var f=P3(O(c,4));var h=P3(c.pa());if(isNaN(d))f={Uh:e,Fi:f,n:h};else if(isNaN(e)||isNaN(h)||1>h)f=
{Uh:d,Fi:NaN,n:1};else{h+=1;var k=d-e;e+=k/h;var n=NaN;1<h&&(n=Math.sqrt(((isNaN(f)?0:f*f)*(h-2)+k*(d-e))/(h-1)));f={Uh:e,Fi:n,n:h}}h=f.Uh;k=f.Fi;S(c,5,f.n);S(c,3,Math.round(h));S(c,4,Math.round(k));f=P3(O(c,1));h=P3(O(c,2));isNaN(d)?(S(c,1,f),S(c,2,h)):isNaN(f)?(S(c,1,d),S(c,2,d)):(S(c,1,Math.min(d,f)),S(c,2,Math.max(d,h)));a.f.set(b,c)},U3=function(a){if(!a.b)return null;w(SB(a.b),function(b){var c=P(b,53)[0];c&&(T3(a,c,"Ga",b,b.Pp),T3(a,c,"Ha",b,b.Qp),T3(a,c,"Ia",b,b.Rp),T3(a,c,"Ja",b,b.Np),T3(a,
c,"Ka",b,b.Op),T3(a,c,"La",b,b.Sp),T3(a,c,"Ma",b,b.Wp))});return a.b},T3=function(a,b,c,d,e){(a=a.f.get(b+"-"+c))&&O3(a)&&e.call(d,a)};Q3.prototype.reset=function(){this.b=null;this.f.clear()};var W3=function(){Hs.call(this);var a=this;this.l=ls("realtime.media.stats.SpeakerSwitchReportService");this.m=new Map;this.g=new Map;this.o=new Map;this.b=new rB;this.h(this.b);this.f=function(b){V3(a,null,b.target)};this.j=new Map};l(W3,Hs);
var X3=function(a){JO(a,pP)||wC(a,pP,function(){return new W3})},Y3=function(a,b){var c=b.S();b=b?b.getInfo().nb():[];c&&0<b.length&&a.o.set(c,b[0])},Z3=function(a,b){"a"==b.getInfo().da()&&(a.b.listen(b,"s",a.f),Y3(a,b))},V3=function(a,b,c){b&&(wB(a.b,b,"s",a.f),Z3(a,c));if("a"==c.getInfo().da()&&0<c.getInfo().nb().length){b=c.getInfo().nb()[0];var d=c.getInfo().Ec(),e="b"==c.getState();d||e?(a.g.set(b,q()),a.m.clear()):a.g.delete(b);Y3(a,c)}},$3=function(a,b){if("a"==b.getInfo().da()){wB(a.b,b,
"s",a.f);var c=b.getInfo().nb()[0]||null;c&&(a.g.delete(c),a.m.clear());a.o.delete(b.S())}},a4=function(a,b){SB(b).forEach(function(b){if(1==O(b,1)&&1==hC(b)&&0!=P(b,53).length){var c=P(b,53)[0],e=[];U(b,$B,136);a.j.has(c)&&a.j.get(c).forEach(function(a){return e.push(a.Pd-a.Xe)});S(b,142,e||[])}})};var b4=function(){Hs.call(this);this.l=ls("realtime.media.stats.VideoFeedTracker");this.f=new Map;this.b=new Map};l(b4,Hs);var c4=function(a,b){SB(b).forEach(function(b){if(2==O(b,1)&&0<P(b,53).length){var c=P(b,53)[0];c=a.b.get(c)||[];S(b,141,c||[])}})};var d4=["Setting audio options to\n     ","."];d4.raw=["Setting audio options to\n     ","."];var e4=["Received remote stream requests after end."];e4.raw=["Received remote stream requests after end."];var f4=["Received remote stream requests before starting."];f4.raw=["Received remote stream requests before starting."];var g4=["Tried to remove non-existent remote stream: ","."];g4.raw=["Tried to remove non-existent remote stream: ","."];var h4=["Tried to update non-existent remote stream: ","."];
h4.raw=["Tried to update non-existent remote stream: ","."];var i4=["Sending stream adds. addedStreams.length=",",\n         removedStreams.length=",""];i4.raw=["Sending stream adds. addedStreams.length=",",\n         removedStreams.length=",""];var j4=["Queuing stream changes. addedStreams.length=",",\n         removedStreams.length=",""];j4.raw=["Queuing stream changes. addedStreams.length=",",\n         removedStreams.length=",""];var k4=["Received remote streams after end."];k4.raw=["Received remote streams after end."];
var l4=["Received remote streams before starting."];l4.raw=["Received remote streams before starting."];var m4=["Logging finished before media stopped!"];m4.raw=["Logging finished before media stopped!"];var n4=["Session IDs are now set: LocalSession ID: ",",\n       RemoteSession ID: ",". Note: Session\n       is not yet active."];n4.raw=["Session IDs are now set: LocalSession ID: ",",\n       RemoteSession ID: ",". Note: Session\n       is not yet active."];
var o4=["Received modified remote description: ","."];o4.raw=["Received modified remote description: ","."];var p4=["Remote description changed after end."];p4.raw=["Remote description changed after end."];var q4=["Remote description changed before starting."];q4.raw=["Remote description changed before starting."];var r4=["Transport state event: transport IS ","\n     writable."];r4.raw=["Transport state event: transport IS ","\n     writable."];var s4=["Remote session stopped after already stopped."];
s4.raw=["Remote session stopped after already stopped."];var t4=["Remote session stopped before starting."];t4.raw=["Remote session stopped before starting."];var u4=["Local session stopped after already stopped."];u4.raw=["Local session stopped after already stopped."];var v4=["Local session stopped before starting."];v4.raw=["Local session stopped before starting."];var w4=["Stopping session because local session stopped with endCause:\n     ","."];
w4.raw=["Stopping session because local session stopped with endCause:\n     ","."];var x4=["Session has not received video for "," seconds."];x4.raw=["Session has not received video for "," seconds."];var y4=["Session has never received video."];y4.raw=["Session has never received video."];var z4=["Session has not received audio for "," seconds."];z4.raw=["Session has not received audio for "," seconds."];var A4=["Session has never received audio."];A4.raw=["Session has never received audio."];
var B4=["Session stopped receiving video!"];B4.raw=["Session stopped receiving video!"];var C4=["Session started receiving video."];C4.raw=["Session started receiving video."];var D4=["Session stopped receiving audio!"];D4.raw=["Session stopped receiving audio!"];var E4=["Session started receiving audio."];E4.raw=["Session started receiving audio."];var F4=["Received data on the broadcast data channel. Data: ",""];F4.raw=["Received data on the broadcast data channel. Data: ",""];
var G4=["Latency event: ","."];G4.raw=["Latency event: ","."];var H4=["Sending local ICE candidates over to the other side:\n     ","."];H4.raw=["Sending local ICE candidates over to the other side:\n     ","."];var I4=["Received local candidates after stopped."];I4.raw=["Received local candidates after stopped."];var J4=["Received local candidates before starting."];J4.raw=["Received local candidates before starting."];var K4=["Sending stream requests for UP streams to local session:\n     ","."];
K4.raw=["Sending stream requests for UP streams to local session:\n     ","."];var L4=["Muted unknown capture."];L4.raw=["Muted unknown capture."];var M4=["Audio Stream Requests for UP streams received unexpectedly from remote\n       side: ","."];M4.raw=["Audio Stream Requests for UP streams received unexpectedly from remote\n       side: ","."];var N4=["Stream Requests for UP streams received from remote\n     side: ","."];
N4.raw=["Stream Requests for UP streams received from remote\n     side: ","."];var O4=["Received stream request for DOWN stream from UI: ",""];O4.raw=["Received stream request for DOWN stream from UI: ",""];var P4=["Changing stream requests after end."];P4.raw=["Changing stream requests after end."];var Q4=["State change due to ",""];Q4.raw=["State change due to ",""];var R4=["Changed state from "," to ",""];R4.raw=["Changed state from "," to ",""];var S4=["Now has these participants: ",""];
S4.raw=["Now has these participants: ",""];var T4=["Removing stream after end."];T4.raw=["Removing stream after end."];var U4=["Successfully added capture: ",""];U4.raw=["Successfully added capture: ",""];var V4=["Adding stream after end."];V4.raw=["Adding stream after end."];var W4=["Stopping because stop called with endCause: "," and\n     debug information: ",""];W4.raw=["Stopping because stop called with endCause: "," and\n     debug information: ",""];
var X4=["Ignoring call to stop with endCause: "," and\n       debug information: ",", because it has already\n       stopped."];X4.raw=["Ignoring call to stop with endCause: "," and\n       debug information: ",", because it has already\n       stopped."];var Y4=["Failed to resume session."];Y4.raw=["Failed to resume session."];var Z4=["Attempting to resume session."];Z4.raw=["Attempting to resume session."];var $4=["Failed to pause session."];$4.raw=["Failed to pause session."];var a5=["Attempting to pause session."];
a5.raw=["Attempting to pause session."];var b5=["Connecting session to hangoutId=","."];b5.raw=["Connecting session to hangoutId=","."];var c5=["Received remote description without session id."];c5.raw=["Received remote description without session id."];var d5=["Starting with remote description: ",""];d5.raw=["Starting with remote description: ",""];var e5=["Failed to prepare session because remote session failed to prepare."];e5.raw=["Failed to prepare session because remote session failed to prepare."];
var f5=["Request early media for hangout\n       ",""];f5.raw=["Request early media for hangout\n       ",""];var g5=["Preparation failed because because local session failed to prepare."];g5.raw=["Preparation failed because because local session failed to prepare."];var h5=["Preparation failed because local session failed to create an offer."];h5.raw=["Preparation failed because local session failed to create an offer."];var i5=["Starting session after already started."];i5.raw=["Starting session after already started."];
var j5=["Creating a new session with\n     options=","."];j5.raw=["Creating a new session with\n     options=","."];var k5=["localSessionId=",""];k5.raw=["localSessionId=",""];
var l5=function(a,b,c,d,e){CS.call(this);var f=this;this.b=c;this.h(this.b);this.l=nT(kT(function(a){return a(k5,f.vb())}));this.l.info(j5,Fu(lS(e)));this.o=LO(a,lP).then();this.Qm=LO(a,kP).then();this.T=null;this.m=new rB(this);this.h(this.m);this.m.listen(this.b,"w",this.cn).listen(this.b,"y",this.bn).listen(this.b,"x",this.Jo).listen(this.b,"O",this.Fo).listen(this.b,"A",this.Ho).listen(this.b,"z",this.Go).listen(this.b,"D",this.Io).listen(this.b,"C",this.No).listen(this.b,"u",this.Ek).listen(this.b,
"E",this.bp);this.o.then(function(a){vB(f.m,a,"d",function(){f.f.h&&F0(f.b)})});this.g=d;this.h(this.g);this.m.listen(this.g,"u",this.Jk).listen(this.g,"M",this.to).listen(this.g,"R",this.Lo).listen(this.g,"I",this.Wo).listen(this.g,"J",this.Xo);this.m.listen(this.g,"H",this.uo,!0);this.ec=this.mf=!1;this.va=[];this.ef=Ut();this.jg=Ut();this.dc=Ut();this.f=e;this.hg="";this.A={};this.j=this.tc=this.Ba=this.wa=null;this.Oc=[];this.ob=[];this.u=[];this.Fd={};this.Va=new CA(20);this.C=this.Bb=null;this.uc=
this.sc=this.Ca=q();this.eg=this.dg=!1;this.Ga=!0;this.ta=this.ij=!1;this.fg=0;this.ig=b;this.K=!1;b=(b=b.b)&&T(b,OR,19)||new OR;this.vc=void 0;this.Wi=this.f.P;this.fc=new Q3;this.jf=new RR(b);this.m.listen(this.jf,"v",this.Do);this.Qa=Ut();this.Cb=this.ma=null;this.M=[];this.bb=null;(b=navigator.getBattery?navigator.getBattery():null)&&b.then&&b.then(function(a){return f.bb=a});this.Ua=new L3;this.ke=new b4;this.B=null;LO(a,pP,!0).then(function(a){return f.B=a});this.Ab=null;LO(a,PX,!0).then(function(a){f.Ab=
a});this.lf="";this.la=new Map;this.gg=new Map;this.hj=!1;this.P=this.Z=this.D=this.zb=this.rb=null};l(l5,CS);g=l5.prototype;g.Uk=function(a,b){this.b.vk(a,b)};g.Tk=function(){return this.Ca};g.pk=function(){return this.hj};g.Xa=function(){return this.b.Xa().then(this.Eo,null,this)};
g.Eo=function(a){var b=this;this.ec=!0;this.ob.forEach(function(a){return m5(b,a)});this.ob=[];if(!vh||!ao(59)){var c=a.ga;if(c){var d=ac(x(c.f),function(a){return"http://www.ietf.org/id/draft-holmer-rmcat-transport-wide-cc-extensions-01"!=a.Fc()});a=tR(a,ZQ(c,d))}}return a};
g.cd=function(a){if("INITIAL"!=this.getState())return this.l.b(i5),!1;n5(this,"STARTING");if(!this.b.b.g)return this.l.b(h5),!1;null!=a&&(a=a.f.get("msodc"),null!=a&&this.b.uj(a));if(!this.b.cd())return this.l.b(g5),!1;a=this.b;var b=this.f.K;a.g.info("enableRtpHeaderDump called with enable="+b+" for sessionId="+a.f);rU(a.u,a.f,b);this.f.f&&this.f.s.length&&this.l.info(f5,this.f.f);return this.g.cd(null!==this.f.f&&0<this.f.s.length?this.f.f:null)?!0:(this.l.b(e5),!1)};
g.start=function(a){this.mf=!0;if("INITIAL"==this.getState()&&!this.cd(a))return!1;this.tc=a;this.l.info(d5,Fu(a));var b=a.oa;null!=b&&(a=xR(a,oR(b,"opus")),this.va=TQ(b),this.I(new JS(this.va)));a=o5(a);this.j=a=p5(this,a);b=a.g;if(null==b)return this.l.b(c5),this.o.then(function(a){return MT(a,3948)}),this.stop(16,"Received remote description without session id."),!1;this.Oc.forEach(function(b){a=CR(a,b.vj,b.Zk)});jc(this.Oc);this.Aa(b);this.g.start(b);this.b.start(a);H0(this.b,this.M);n5(this,
"STARTED");b=q5(a);0<b.length&&p0(this.b.b,b);r5(this);s5(this);this.ef.resolve();this.f.g&&this.f.h&&F0(this.b);return!0};g.be=function(){this.g.be();this.b.be()};g.sg=function(a,b,c){var d=this,e=this.b.f;this.l.info(b5,a);this.hg=b;this.b.Y(a);this.b.connect();c||(c=new gS);c=iS(c,e);this.g.sg(a,b,c);this.ef.U.then(function(){t5(d.g,d.ig.ab.Xh()||null)})};
g.pause=function(){this.l.info(a5);if("INPROGRESS"!=this.getState())return!1;this.u.forEach(function(a){"d"!=a.getInfo().da()&&a.lb("b")});if(!this.b.pause())return this.l.f($4),!1;ju(this.C);this.C=null;n5(this,"PAUSED");return!0};
g.resume=function(){this.l.info(Z4);if("PAUSED"!=this.getState())return!1;if(!this.b.resume())return this.l.f(Y4),!1;this.g.resume();this.u.forEach(function(a){"d"!=a.getInfo().da()&&a.lb("a")});this.I("U");n5(this,"INPROGRESS");this.I(new IS([],[],this.vb()));r5(this);return!0};
g.stop=function(a,b){if("STOPPED"==this.getState()||"FINISHED"==this.getState())return this.l.info(X4,a,b),!0;this.l.info(W4,a,b);b&&(this.lf=b);wB(wB(wB(wB(this.m,this.b,"u",this.Ek),this.g,"u",this.Jk),this.wa,"ub",this.aj),this.Ba,"ub",this.gj);var c;if(c=this.f.h)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 28:case 29:case 32:case 33:case 34:case 109:case 108:case 110:c=!0;break a;default:c=
!1}c&&F0(this.b);ju(this.C);this.C=null;this.b.stop(a,b);this.g.stop(a,b);n5(this,"STOPPED",a,b);Xt(ku(2E3),this.Qa.resolve,this.Qa);return!0};g.ja=function(){this.stop(this.mf?6:72);u5(this,!1);Xt(this.Qa.U,wP.prototype.ja,this)};
var m5=function(a,b){switch(a.getState()){case "STOPPED":case "FINISHED":return a.l.b(V4),!1}if(!a.ec)return a.ob.push(b),!0;var c=b.fa(),d=a.A[v5(c)];if(d)return w5(d,"sc"!=c.Kb),!1;var e=G0(a.b,b);if(null==e)return!1;"v"==c.X()&&a.ef.U.then(function(){var b=[];if(a.f.b){var c=a.j.ga;null!==c&&(b=x(c.g))}else b.push(OQ(NQ(KQ(LQ(JQ(new IQ,"v"),DS(a)),e.nb()),x5),30).V());0<b.length&&y5(a,b)});z5(a.g,[e]);"v"==c.X()&&a.m.listen(c,"e",a.Zi);d=AT(b,a.vb(),e);a.A[v5(c)]=d;a.I(new IS([d.getInfo()],[]));
a.m.listen(b,"l",a.Yi);a.l.info(U4,Fu(YP(b)));return!0};l5.prototype.Zi=function(a){a=a.target;if("sc"==a.Kb)a=a.getId()+"ca",w5(this.A[a],!1),A5(this.g);else if("ca"==a.Kb){var b=this.A[v5(a)];w5(b,!0);B5(this.g);C5(this.g,this.A[v5(a)].getInfo())}};
var E5=function(a,b){a.l.info(S4,Fu(b));if(a.f.b){if(2<b.length){a.stop(51);return}if(2>b.length&&"INPROGRESS"==a.getState()){a.stop(52);return}}D5(a.g,b)},n5=function(a,b,c,d){a.l.info(R4,a.getState(),b);d&&a.l.info(Q4,d);a.Id!=b&&(a.Id=b,a.Hd=c,a.I(new iQ(b,c,d)))};
l5.prototype.pe=function(a){var b=this;switch(this.getState()){case "STOPPED":case "FINISHED":this.l.b(P4);return}a=a.filter(function(a){a=new HP(a.S(),a.sa(),a.da());return null===F5(b,a)});a.forEach(function(a){b.l.info(O4,a);var c=b.Ua,e=a.S(),f=a.sa();a=a.Lb();e+=f;a&&921600<=a.ng()?c.f[e]||(c.f[e]=q()):delete c.f[e]});null!=this.wa?A2(this.wa,a):G5(this,a)};l5.prototype.aj=function(a){H5(this,a.b);G5(this,a.b)};
var G5=function(a,b){a.g.pe(b);a.Fd={};b.forEach(function(b){if(b.f){var c=b.S();b=b.sa();a.Fd[c+b]=!0}});a.u.forEach(a.ff,a)};l5.prototype.ff=function(a){var b=a.S(),c=a.sa();b=this.Fd[b+c]||!1;b!=a.b&&(a.b=b,a.I("K"))};
var H5=function(a,b){b=ma(b);for(var c=b.next();!c.done;c=b.next()){c=c.value;var d=c.nb();if(null!=d){c=c.g;d=ma(d);for(var e=d.next();!e.done;e=d.next())a.la.set(e.value,c)}}},y5=function(a,b){a.l.info(N4,Fu(b));if(null!==a.Ba){if(b.filter(function(a){return"v"==a.da()}).length){A2(a.Ba,b);return}a.l.b(M4,Fu(b))}I5(a,b)};l5.prototype.Yi=function(a){var b=a.target;a=b.Hc();b=b.fa();(b=this.A[v5(b)])?(a=OP(new JP(b.getInfo()),a).V(),b.f=a,C5(this.g,a)):this.l.b(L4)};
var w5=function(a,b){a&&(b=PP(new JP(a.getInfo()),b).V(),a.f=b)};l5.prototype.gj=function(a){I5(this,a.b)};
var I5=function(a,b){var c=b.filter(function(b){b=b.u;return!(null!=b&&DS(a)!=b)});if(0!=c.length&&(H5(a,c),a.M=sc(a.M.filter(function(a){return!c.some(function(b){return HQ(a,b)})}),c.filter(function(a){return a.f})),a.l.info(K4,Fu(a.M)),H0(a.b,a.M),a.j&&a.j.ga)){var d=J5(a);b=d?15E3:0;a.zb&&ju(a.zb);a.zb=iu(function(){u5(a,d)},b)}},J5=function(a){if(!(vh&&ao(59)&&a.f.L))return!1;var b=null;a.M.forEach(function(a){!Ic(a.sa())&&a.Lb()&&(null==b||a.Lb().width>b.Lb().width)&&(b=a)});if(null==b)return!1;
a=b.Lb();var c=!1;57600>=a.height*a.width&&(c=!0);return c},u5=function(a,b){a.j&&a.K!=b&&(a.K=b,a.D&&(ju(a.D),a.D=null),a.rb&&(ju(a.rb),a.rb=null),a.j=K5(a,a.j),L5(a),b?(a.T=new A_(a.Qm),B_(a.T,834),a.Z=q(),a.P=null):(B_(a.T,835),C_(a.T),a.T=null,a.Z=null,a.P=q()))},K5=function(a,b){return vh&&ao(59)&&a.f.L?tR(b,cR(b.ga,a.K?150:3150)):b},L5=function(a){1==a.K?M5(a,[]):a.b.update(a.j,[]).then(function(){a.rb=iu(function(){3150===dR(a.j.ga)&&(a.j=tR(a.j,cR(a.j.ga,-1)),a.b.update(a.j,[]))},50)})},M5=
function(a,b){a.K&&(a.j=tR(a.j,cR(a.j.ga,-1)));a.b.update(a.j,b).then(function(){a.D&&ju(a.D);a.D=iu(function(){a.K&&(a.j=tR(a.j,cR(a.j.ga,150)),a.b.update(a.j,[]))},1E3)})};l5.prototype.bc=function(a){var b=F5(this,a);return null!=b?b:hc(this.u,function(b){b=b.getInfo();return b.S()==a.S()&&b.da()==a.X()&&b.sa()==a.getId()})};
l5.prototype.ti=function(){var a=CS.prototype.ti.call(this),b=this.ig.ab.Xh()||null;ud(a,{sessionOptions:lS(this.f),audioOptions:ER(),systemInfo:b?b.ya():"Unavailable",sessionEndDebugInfo:this.lf});return a};var F5=function(a,b){if(b.S()!=a.hg&&""!=b.S())return null;a=id(a.A).filter(function(a){a=a.b.fa();return b.getId()==a.getId()&&b.X()==a.X()});return 1<a.length?a.find(function(a){return"sc"==a.b.fa().Kb}):1==a.length?a[0]:null},v5=function(a){return a.getId()+a.Kb},DS=function(a){return a.g.f};
l5.prototype.vb=function(){return this.b.f};var q5=function(a){return(a=a.b)?x(a.g):[]};
l5.prototype.bn=function(a){var b=this;switch(this.getState()){case "INITIAL":this.l.b(J4);return;case "STOPPED":case "FINISHED":this.l.b(I4);return}a.b.forEach(function(a){2==a.Qd()||b.f.b&&"UDP"!=a.Uc()||(b.f.b&&("LOCAL"===a.X()?b.o.then(function(a){return nU(a,4902)}):"STUN"===a.X()?b.o.then(function(a){return nU(a,4903)}):"RELAY"===a.X()&&b.o.then(function(a){return nU(a,4904)})),0>fc(b.Va.ea(),function(b){return b==a?!0:b&&a?b.vh===a.vh&&b.ii===a.ii&&b.si===a.si&&b.ri===a.ri&&b.Ph===a.Ph&&b.Pa===
a.Pa&&b.vf===a.vf&&b.Dh===a.Dh&&b.ei===a.ei&&b.Rf===a.Rf&&b.Sf===a.Sf:!1})&&b.Va.add(a))});null==this.Bb&&(this.Bb=iu(function(){b.jg.U.then(b.gn,null,b);b.Bb=null},500))};l5.prototype.gn=function(a){this.l.info(H4,Fu(this.Va.ea()));this.I(new KS(this.Va.ea(),a))};
var N5=function(a,b){if(b=SB(b))for(var c=0;c<b.length;c++){var d=b[c];if(null!=d&&2==O(d,1)){var e=O(d,65)||0;0==hC(d)&&a.j&&a.j.ga&&150==dR(a.j.ga)&&(e|=4096);var f=O(d,25);if(null!=f&&a.la.has(f))e|=a.la.get(f);else{f=ma(P(d,53));for(var h=f.next();!h.done;h=f.next())if(h=h.value,a.la.has(h)){e|=a.la.get(h);break}}S(d,65,e)}}},O5=function(a,b){(b=SB(b))&&b.filter(function(a){return a&&O(a,1)==dC.Pm&&null==O(a,59)}).forEach(function(b){var c=!1,e=P(b,53)[0];if(hC(b)==eC.oj){var f=hc(a.u,function(a){return a.getInfo().yb()==
e});f&&(c=!f.getInfo().ye())}else hC(b)==eC.Om&&(f=ed(a.A,function(a){return a.getInfo().nb()[0]==e}),dd(f,function(a){c=c||"sc"==a.b.fa().Kb}));S(b,59,c)})},P5=function(a,b,c){var d=SB(b);d&&lC(b,d.filter(function(b){if(hC(b)==eC.oj){var d=O(b,25)||P(b,53)[0]||0,e=a.gg.get(d)||{},k=e.packets||0,n=e.ko||!1;b=O(b,10)||0;k=k==b;n=!n||!k;c&&(e.packets=b,e.ko=k,a.gg.set(d,e));return n}return!0}))},S5=function(a,b){var c=a.Z&&q()>a.Z+15E3,d=a.P&&q()>a.P+15E3;if(c||d){var e=SB(b).filter(function(a){return a&&
2==O(a,1)&&0==hC(a)});b=c&&e.some(function(a){return O(a,57)>=Q5.width});e=d&&e.every(function(a){return O(a,57)<=R5.width});b&&a.o.then(function(a){return MT(a,4627)});e&&a.o.then(function(a){return MT(a,4875)});c&&(a.Z=null);d&&(a.P=null)}};g=l5.prototype;g.Do=function(a){this.I(new GS(a.id))};
g.Ho=function(a){if(null!=a.b){N5(this,a.b);T5(this,a.b);M3(this.Ua,a.b);c4(this.ke,a.b);this.B&&a4(this.B,a.b);O5(this,a.b);S5(this,a.b);this.g.fc(a.b);this.vc=a.b;this.Wi&&this.fc.update(a.b);this.Ga||(this.Ga="PAUSED"!=this.getState());var b=this.Ga&&this.f.M<q()-this.fg;P5(this,a.b,b);b&&(this.Wi?U5(this.g,U3(this.fc)||a.b):U5(this.g,a.b),this.fg=q(),this.vc=void 0,this.fc.reset(),this.Ua.b={},this.ke.b.clear(),this.B&&this.B.j.clear(),this.Ab&&this.Ab.b.clear(),this.Ga="PAUSED"!=this.getState());
TR(this.jf,a.b);if(this.f.b){var c=null,d=10240;w(U(a.b,UB,13),function(a){0<O(a,5)&&0<O(a,7)&&O(a,5)+O(a,7)>d&&(c=O(T(a,CB,8,1),3),d=O(a,5)+O(a,7))});0===c&&this.o.then(function(a){return nU(a,4220)});1===c&&this.o.then(function(a){return nU(a,4221)});2===c&&this.o.then(function(a){return nU(a,4222)});3===c&&this.o.then(function(a){return nU(a,4134)})}var e=!1;U(a.b,UB,13).forEach(function(a){e=e||0<O(a,7)});this.hj=e;this.I(new ES(a.b))}};g.Go=function(a){V5(this.g,a.h,a.b,this.vc,a.yc)};
g.Io=function(a){var b=this.Ua,c=a.Ja,d=a.sourceId,e=a.ssrc,f=c+d;(a=a.Ve)&&921600<=a.ng()&&(a=b.f[f])&&(a=q()-a,0<=a&&(b.b[e]=b.b[e]||[],b.b[e].push(a),delete b.f[f],ps(b.l,"participantId: "+c+" sourceId: "+d+" "+("ssrc: "+e+" latency: "+a))))};
g.No=function(a){var b=a.source?this.bc(a.source):null,c=b?b.getInfo().nb():[];b=this.ke;a=a.id;c=0<c.length?c[0]:null;if(b.f.has(a)){var d=q()-b.f.get(a).Xe,e=b.f.get(a).ssrc;0<=d&&2147483647>=d?(b.b.has(e)||b.b.set(e,[]),b.b.get(e).push(d),ps(b.l,"Logged ssrc: "+e+" duration: "+d)):W(b.l,"Ignore invalid main feed ssrc: "+e+" duration: "+d)}else W(b.l,"Skip logging duration for id: "+a);c?b.f.set(a,{ssrc:c,Xe:q()}):b.f.delete(a)};
g.Fo=function(a){this.l.info(G4,a.message);"transport writable"==a.message?(this.ij=!0,this.ta||iu(this.eo,1E4,this),this.I(new IS([],[],this.vb())),s5(this)):"render first video frame"==a.message?(this.ta=!0,this.dc.resolve(q()),s5(this)):"transport not writable"==a.message&&(this.f.b?this.stop(10,"P2P session ending. Falling back to cloud."):this.be())};g.eo=function(){this.ta||(this.ta=!0,this.dc.reject("First video frame timed out"),s5(this))};
var s5=function(a){"STARTED"==a.getState()&&a.ij&&a.ta&&n5(a,"INPROGRESS")};l5.prototype.cn=function(a){switch(a.label){case "collections":this.I(new K3(a.payload));break;case "msodc":this.g.uc(a.label,a.payload);break;case "dataSendChannel":this.l.f(F4,a.payload);break;default:this.I(new J3(a.Ja,a.payload))}};var r5=function(a){a.C=iu(a.Zn,5E3,a)};g=l5.prototype;
g.Jo=function(a){if(null!=this.C){a.b!=this.dg&&(a.b?this.l.info(E4):this.l.b(D4),this.dg=a.b);a.h!=this.eg&&(a.h?this.l.info(C4):this.l.b(B4),this.eg=a.h);var b=q();a.b&&(this.sc=b);a.h&&(this.uc=b);if(a.b||a.h)ju(this.C),this.C=null,r5(this)}};g.Zn=function(){var a=q(),b=(a-this.sc)/1E3;a=(a-this.uc)/1E3;this.I(new FS(DS(this),b,a));this.sc==this.Ca?this.l.info(A4):5E3<b&&this.l.info(z4,b);this.uc==this.Ca?this.l.info(y4):5E3<a&&this.l.info(x4,a);r5(this)};
g.Ek=function(a){if("STOPPED"==this.b.getState()){this.l.info(w4,a.b);switch(this.getState()){case "INITIAL":this.l.b(v4);n5(this,"STOPPED",a.b,a.yc);return;case "STOPPED":this.l.b(u4);return}this.stop(a.b,a.yc)}};g.Jk=function(a){if("STOPPED"==this.g.getState()){switch(this.getState()){case "INITIAL":this.l.b(t4);return;case "STOPPED":this.l.b(s4);return}this.stop(a.b,a.yc)}};
g.bp=function(a){var b=this;this.l.info(r4,a.b?"":"NOT ");if(a.b){if(null!=this.ma){var c=Math.round((q()-this.Cb)/1E3);ju(this.ma);this.ma=null;this.o.then(function(a){MT(a,3062,DS(b)||void 0,void 0,void 0,void 0,c)});this.Cb=0}}else null==this.ma&&(this.Cb=q(),this.ma=iu(function(){return b.stop(10)},4E4),this.o.then(function(a){MT(a,3061)}))};g.to=function(a){this.I(a)};g.Aa=function(a){null!=a&&null==this.g.f&&(this.g.Aa(a),this.jg.resolve(a),this.l.info(n4,this.vb(),W5(this.g)))};
var Z5=function(a,b){return null===a||null===b?a!==b:X5(TQ(a),TQ(b))||Y5(x(a.f),x(b.f))},X5=function(a,b){return!Cc(a,b,function(a,b){return a.bd===b.bd&&a.getName()===b.getName()&&a.h===b.h&&a.f===b.f&&a.b===b.b})},$5=function(a,b){return!Cc(a,b,function(a,b){return a.sd()===b.sd()&&a.Ce()===b.Ce()&&a.Cf()===b.Cf()&&a.Ud()===b.Ud()})},Y5=function(a,b){return!Cc(a,b,function(a,b){return a.Fc()===b.Fc()&&a.getId()===b.getId()})},a6=function(a,b){return!Cc(a,b,function(a,b){return a.Qd()===b.Qd()&&
a.Td()===b.Td()&&a.X()===b.X()&&a.Uc()===b.Uc()&&a.Be()===b.Be()&&a.Sa()===b.Sa()&&a.vf===b.vf&&a.ze()===b.ze()&&a.Af()===b.Af()&&a.Rf===b.Rf&&a.Sf===b.Sf})};g=l5.prototype;g.Lo=function(){"STOPPED"!=this.getState()?this.l.b(m4):(n5(this,"FINISHED"),this.Qa.resolve())};
g.uo=function(a){var b=this;switch(this.getState()){case "INITIAL":this.l.b(l4);return;case "STOPPED":case "FINISHED":this.l.b(k4);return}var c=a.h.filter(function(a){return"a"!=a.da()?!0:b.f.j});if(0<c.length||0<a.removed.length)"STARTING"==this.getState()?(this.l.info(j4,c.length,a.removed.length),this.Oc.push({vj:c,Zk:a.removed})):(this.l.info(i4,c.length,a.removed.length),this.j=CR(this.j,c,a.removed),M5(this,a.removed));w(a.removed,this.Gp,this);w(a.b,this.gq,this);w(c,this.vn,this);(0<a.removed.length||
0<a.b.length||0<c.length)&&this.I(new IS(sc(c,a.b),a.removed))};g.vn=function(a){a=new BS(this.b.f,a);this.ff(a);this.u.push(a);this.B&&Z3(this.B,a)};g.gq=function(a){var b=this.u.findIndex(function(b){return b.getInfo().matches(a)});if(-1==b)this.l.b(h4,a);else{var c=new BS(this.b.f,a);this.ff(c);this.B&&V3(this.B,this.u[b],c);this.u[b]=c}};g.Gp=function(a){var b=fc(this.u,function(b){return b.getInfo().matches(a)});if(-1==b)this.l.b(g4,a);else{var c=this.u[b];oc(this.u,b);this.B&&$3(this.B,c);c.lb("b")}};
g.Wo=function(a){switch(this.getState()){case "INITIAL":this.l.b(f4);return;case "STOPPED":case "FINISHED":this.l.b(e4);return}y5(this,a.b)};g.Xo=function(a){this.Uk(a.label,a.payload)};
var c6=function(a,b){if(null!=b){a.l.info(d4,Fu(ER()));var c=mS(a.f);c.T=b;a.f=c;a.j=b6(a.j);b=a.j;null!=b.oa&&E0(a.b,b)}},b6=function(a){var b=a.oa,c=TQ(b),d=fc(c,function(a){return mQ(a,"OPUS")});if(-1!=d){var e=!(vh&&!ao(48));c[d]=tQ(tQ(tQ(new nQ(c[d]),"stereo","0"),"useinbandfec","1"),"usedtx",e?"1":"0").V();b=XQ(b,c)}return xR(a,b)},o5=function(a){if(!a.ga||0==TQ(a.ga).length)return a;a=uR(a,function(a){return!mQ(a,"h264")});a=uR(a,function(a){return!mQ(a,"vp9")});a=tR(a,oR(a.ga,"vp8"));a=tR(a,
oR(a.ga,"vp9"));fc(TQ(a.ga),function(a){return mQ(a,"h264")});return a},p5=function(a,b){if(b.oa&&SQ(b.oa)!=SQ(a.b.b.g.oa)){var c=SQ(a.b.b.g.oa);b=xR(b,aR(b.oa,c))}b.ga&&SQ(b.ga)!=SQ(a.b.b.g.ga)&&(c=SQ(a.b.b.g.ga),b=tR(b,aR(b.ga,c)));b.Ka&&SQ(b.Ka)!=SQ(a.b.b.g.Ka)&&(a=SQ(a.b.b.g.Ka),b=yR(b,aR(b.Ka,a)));return b};l5.prototype.toString=function(){return"Session(Id="+DS(this)+" p2p="+this.f.b+" useAudio="+this.f.j+" useVideo="+this.f.B+")"};
var T5=function(a,b){a.bb&&(S(b,75,a.bb.level),S(b,74,!a.bb.charging))},R5=new Oe(320,180),Q5=new Oe(640,360),x5=new Oe(1280,720);var d6=function(){Y.call(this);this.b=q();this.f=new gu(1E3);ct(this.f,"tick",p(this.g,this));this.f.start()};l(d6,wP);d6.prototype.g=function(){var a=q();6E4<a-this.b&&this.I("yb");this.b=a};ab(d6);var e6={SUCCESS:0,Hl:100,tu:101,ev:102,fv:103,nq:200,Dq:221,Fl:201,Tq:202,Zq:203,us:204,xs:205,Lt:206,Mt:207,Ot:208,eu:209,fm:210,pu:211,cu:222,fw:223,ru:212,Ou:213,Nu:214,Tu:215,iv:216,ov:217,cw:218,USER_CANCELED:219,mw:220,Vr:224,ou:225,mu:226,aw:227,Er:228,Es:229,Hu:230,nu:231,Ys:232,kt:233,mt:234,Ru:235,fu:236,Aq:237,zq:238,Ur:239,hu:240,lt:241,Ct:242,Dr:243,Ss:244,mv:245,Et:246,Hr:247,Mq:300,Wq:301,qr:302,tr:332,ur:333,vr:334,rr:335,wr:336,yr:337,xr:338,sr:350,ft:303,ht:304,Xt:305,jv:306,nt:339,
zv:307,Jr:308,Fv:309,bt:310,Xr:311,hv:312,gv:313,gt:314,Ts:315,Kr:316,As:317,er:318,Eq:319,lu:320,qu:321,bw:322,Ws:323,Gt:324,Bt:325,Fq:326,kv:327,nv:328,lv:329,Ft:330,Dt:331,br:340,cr:341,ar:342,Hs:343,Du:344,Cu:345,Hv:346,Yr:347,Gv:348,hw:349,xv:351};var h6=function(a,b,c,d,e){Y.call(this);this.l=ls("realtime.media.session.SessionManager");this.Z=b;this.P=this.Z.b;this.b=this.Z.ab.Mg("realtime.media.session.SessionManager");this.o=new rB(this);this.h(this.o);this.M=a;this.sc=e;this.Qa=this.Ga=this.u=null;this.K="INITIAL";this.C=null;this.j=new Fk;Kl(hQ,function(a){this.j.set(a,new Ol)},this);this.g=new Ol;this.la=new Fk;this.m=null;this.B=new kS;this.T=new H2;this.Oc=c;this.zb=d;this.A=[];this.Ca=[];this.ob=new G3(this.M);this.rb=this.D=null;
f6(this);this.wa=Ut();this.ta=Ut();this.Ba=Ut();this.fc=[];this.Ua=new Set;this.Va=this.ma=null;this.wa.U.then(function(){this.b.info("P2P enabled, but ICE with TURN disabled.");this.f.then(function(a){return MT(a,4483)});this.Ba.resolve(!1)},function(){this.Ba.reject()},this);Rt([this.wa.U,this.ta.U,this.Ba.U]).then(function(){g6(this,!0)},null,this);this.f=LO(a,lP).then();this.bb=new G_(LO(a,kP).then());this.va=new A_(LO(a,kP).then())};t(h6,wP);var rS=JQ(new IQ,"a").V();
OQ(NQ(JQ(new IQ,"v"),new Oe(320,180)),30).V();var sS=OQ(NQ(JQ(new IQ,"v"),x5),30).V(),f6=function(a){a.D=WT.Ha();a.rb=[YT(a.D,"sessionManagerState",p(a.getState,a)),YT(a.D,"p2pSessionActive",p(function(){return dc(i6(this),function(a){return a.f.b})},a)),YT(a.D,"sessions",p(function(){return bc(this.g.ea(),function(a){return a.ti()},this)},a))]};g=h6.prototype;g.ja=function(){w(this.g.ea(),Js);null!=this.D&&w(this.rb,this.D.h,this.D);h6.ra.ja.call(this)};g.getState=function(){return this.K};
g.lb=function(a,b,c){a!=this.K&&(this.b.info("SessionManager changed state from "+this.K+" to "+a),this.K=a,this.I(new iQ(a,b,c)))};
g.cd=function(a){if("INITIAL"!=this.getState())return!1;var b=this.M,c=this.P,d=new B1(xG,[],[],[xG.prototype.g],[xG.prototype.Aa],AI,[],[],[AI.prototype.g],[AI.prototype.Aa]),e=b3.Ha(),f=new z3(c3(e,b,c)),h=new A1(e.ab.j(b,c),"cb");this.C=new J1(b,e.ab.f(b,c),[],d,f,h,e.ab.g(b,c));this.h(this.C);O1(this.C);this.o.listen(this.C,"pb",this.Cb);this.o.listen(this.C,"rb",this.dc);this.b.info("Updating default options to: "+Fu(lS(a)));this.B=a;this.B.b&&this.wa.resolve(!0);if(null==this.u||Ic(this.u))this.u=
this.B.f;null==this.u||Ic(this.u)||this.ta.resolve(this.u);j6(this);this.m=g6(this,!1);if(null==this.m)return this.b.error("Failed to create the cloud session."),this.stop(16,"Failed to create cloud session."),!1;k6(this,4900);this.lb("STARTING");return!0};g.start=function(){};g.be=function(){this.C&&this.C.Re();w(this.g.ea(),function(a){a.be()})};
g.connect=function(a,b,c){if("STARTING"!=this.getState()&&"INPROGRESS"!=this.getState())return!1;this.u=a;this.Ga=b;this.Qa=c;this.b.info("Connecting to hangoutId: "+a+", with participantId: "+b+" and sessionLogData: "+c);this.ta.resolve(this.u);var d=sc(i6(this),l6(this),m6(this));w(d,function(d){d.sg(a,b,c)},this);return!0};
var n6=function(a,b,c){c.b||(c.F?(a=new wQ("call/"+c.F,1,null,"collections"),b=wR(b),b.f.set(a.rd(),a)):os(a.l,"Collections' push channel not added. ClientResource not available"));return b},p6=function(a){var b=i6(a);0==b.length&&(b=m6(a));0==b.length&&(b=o6(a));var c=[];w(b,function(a){uc(c,id(a.A))});return c},q6=function(a){var b=i6(a);0==b.length&&(b=m6(a));0==b.length&&(b=o6(a));var c=[];w(b,function(a){uc(c,a.u)});return c},r6=function(a,b){w(a.g.ea(),function(a){a.f.h||(a.f=oS(a.f,b),a.f.g&&
F0(a.b))});a.B=oS(a.B,b)},s6=function(a){a.B.g||(w(a.g.ea(),function(a){a.f.g||(a.f=pS(a.f),a.f.h&&F0(a.b))}),a.B=pS(a.B))},v6=function(a,b){a.b.info("Adding capture: "+Fu(YP(b)));var c=!0;w(t6(a),function(a){a=m5(a,b);c=c&&a});"sc"==b.fa().Kb&&(c=!0);c?a.A.push(b):u6(a,b);return c},u6=function(a,b){var c=!0;w(t6(a),function(a){var d;if(d=c)a:{switch(a.getState()){case "STOPPED":case "FINISHED":a.l.b(T4);d=!1;break a}if(a.ec){d=b.fa();"sc"==d.Kb?B5(a.g):"v"==d.X()&&wB(a.m,d,"e",a.Zi);wB(a.m,b,"l",
a.Yi);var f=a.b;switch(f.j){case "STOPPED":tT(f.g,"Remove local stream called after stopped.")}var h=f.b;J_(h,"Removing capture="+b);var k=TS(b,h.f);h.ta.delete(b);wB(h.B,b,"n",h.zb);"d"!=b.fa().X()&&(X_(h,k),V_(h,null,b.fa()));b.Ii(f.f);f.m.delete(b);if(f=a.A[v5(d)])delete a.A[v5(d)],a.I(new IS([],[f.getInfo()]));d=!0}else d=pc(a.ob,b)}c=d});c=c&&pc(a.A,b)},w6=function(a,b){a.ma=b;a.I("X")};
h6.prototype.bc=function(a){var b=this.ma&&this.ma(a);if(b)return b;var c=sc(i6(this),m6(this),o6(this));if(0==c.length)return this.b.info("No active session to get stream from to render source: "+a),null;for(var d=0;d<c.length;d++){var e=c[d];b=e.bc(a);if(null!=b)return a="Using stream: "+b.getInfo()+" from "+e.vb()+" to render source: "+a,this.b.b.m(oT,a),b}tT(this.b,"Unable to find stream to use to render source: "+a);return null};
h6.prototype.pe=function(a){var b=sc(o6(this),m6(this),i6(this));w(b,function(b){b.pe(a)})};var x6=function(a,b){w(a.g.ea(),function(a){E5(a,b)},a);a.Ca=b};h6.prototype.stop=function(a,b){this.b.info("Stopping video call because stop called with endCause: "+a);if("INITIAL"==this.getState()||"STOPPED"==this.getState()||"FINISHED"==this.getState())return!1;this.bb.j.resolve();this.lb("STOPPED",a,b);w(this.g.ea(),function(c){c.stop(a,b)});return!0};
var g6=function(a,b){var c=y6(a,a.B,b);if(!c)return null;var d=z6(a,c);if(null==d)return tT(a.b,"Failed to build session."),null;d.Xa().then(function(a){if(a){this.b.info("Local session initialize completed.");a=n6(this,a,c);var e=O(this.P,23)||"";(a=K2(this.T,a,c.f,c.s,b,e))?(a=Yt(this.C.add(a).then(function(a){A6(this,d,a,c);return a},null,this),function(a){var b="Failed to add session to collection. Error: "+a;tT(this.b,b);k6(this,3949,void 0,void 0,void 0,void 0,void 0,b);b.includes("Malformed RTCIceServer")&&
this.f.then(function(a){return MT(a,4264)});d.stop("transport_unavailable"==a.Mj?108:16,b);throw a;},this),a3(a,"wa",null,this)):(tT(this.b,"Failed to parse session info."),this.f.then(function(a){return MT(a,3944)}),d.stop(16,"Failed to parse session info."))}else this.b.error("Local session initialize failed to create local offer."),this.f.then(function(a){return MT(a,3942)}),d.stop(16,"Local session initialize failed to create local offer.")},function(a){var b="Failed to initialize session. Error: "+
Rr(a);tT(this.b,b);k6(this,3943,DS(d)||void 0,void 0,void 0,void 0,void 0,b);d.stop(109,"Failed to initialize session.");throw a;},a);d.b.al()&&(a.Ua.add(d),B6(a));return d},D6=function(a,b){b.o||(b=AS(b,H3(a.ob)));b=C6(a,b);var c=a.Z.ab.tk(a.M,"c"+Math.round(2147483648*Math.random())+Math.round(2147483648*Math.random())+(b.b?"_P2P":"_NMS"),b);if(b.b){if(!vh)return a.b.info("Not creating p2p session because local does not support p2p"),a.f.then(function(a){return MT(a,3939)}),null;if(2<a.Ca.length)return a.b.info("Not creating p2p session due to too many participants."),
a.f.then(function(a){return MT(a,3940)}),null}var d=a.Z.ab.g(a.M,b,a.sc);return new l5(a.M,a.Z,c,d,b)},C6=function(a,b){var c=O(a.P,20);c&&(b=mS(b),b.m=c);if(c=O(a.P,21)){var d=mS(b);b.m&&(c=Math.max(b.m,c));d.M=c;b=d}a=Q(a.P,22,!1);b=mS(b);b.P=a;return b},z6=function(a,b){b=D6(a,b);if(null==b)return null;a.g.add(b);a.j.get(b.getState()).add(b);a.la.set(b.vb(),b.getState());b.wa=a.zb;b.m.listen(b.wa,"ub",b.aj);b.Ba=a.Oc;b.m.listen(b.Ba,"ub",b.gj);E5(b,a.Ca);a.o.listen(b,["wb","xb","S","X","Q"],a.I);
a.o.listen(b.b,"O",a.I);a.o.listen(b.g,"H",a.I);a.o.listen(b,"u",a.vc);a.o.listen(b,"P",a.tc);a.o.listen(b,"M",a.uc);a.o.listen(b,"N",a.Ab);a.o.listen(b.b,"O",a.Bb);return b},E6=function(a,b,c){b.start(c);w(a.A,function(a){m5(b,a)})},t6=function(a){return sc(a.j.get("INITIAL").ea(),o6(a),m6(a),l6(a),i6(a))},l6=function(a){return a.j.get("PAUSED").ea()},i6=function(a){return a.j.get("INPROGRESS").ea()},m6=function(a){return a.j.get("STARTED").ea()},o6=function(a){return a.j.get("STARTING").ea()},A6=
function(a,b,c,d){W(a.l,"Session add response received.");1>c.length||!(c[0]instanceof xG)?(a.b.info("Stopping remote session due to receiving null session proto."),a.f.then(function(a){return MT(a,3945)}),b.stop(16,"Received null session proto.")):(c=c[0],null!=c?(d=P2(a.T,c,!d.b),null!=d?F6(a,b,d):(a.b.info("Stopping session due to inability to parse session proto."),a.f.then(function(a){return MT(a,3947)}),b.stop(16,"Error parsing session proto."))):(a.b.info("Stopping session due to type mismatch in session proto."),
a.f.then(function(a){return MT(a,3946)}),b.stop(16,"Type mismatch in session proto.")))},y6=function(a,b,c){var d=b.f||a.u;b=null!=d?qS(b,d):qS(b,null);b=vS(b,c);if(c){b=uS(b);if(null==a.m)return ns(a.l,"P2P session starting first! This is bad!"),a.f.then(function(a){return MT(a,3941)}),null;b=xS(b);b=tS(b);b=wS(b,tc(a.fc,b.C))}return b};h6.prototype.Cb=function(a){null!=a.b&&0<a.b.length&&G6(this,a.b);null!=a.removed&&0<a.removed.length&&H6(this,a.removed)};
h6.prototype.dc=function(a){this.b.error("Stopping video call because session collection failed, with reason: "+a.reason);this.stop(a.b)};
var G6=function(a,b){w(b,function(a){var b=gc(this.g.ea(),function(b){return a.g()==DS(b)});if(b){var c=P2(this.T,a,!b.f.b);null!=c&&F6(this,b,c)}else ns(this.l,"Received modification for a session that we don't have!")},a)},H6=function(a,b){w(b,function(a){var b=gc(this.g.ea(),function(b){return a.g()==DS(b)});b?b.stop(25):this.b.error("Received removal of a session that we don't have! Session id: "+a.g())},a)};h6.prototype.uc=function(a){F6(this,a.f,a.sessionDescription)};
var F6=function(a,b,c){var d=b.getState(),e="INITIAL"==d,f="INITIAL"==d||"STARTING"==d;d="INITIAL"!=d&&"STARTING"!=d;var h=0!=x(c.h).length,k=!1,n=c.b;n&&null!=n.b&&(k=2==n.b.split(" ").length);h==k&&(f=e=!1);h=c.b;null!=h&&null!=h.h&&null!=h.f&&0!=x(h.g).length||(f=!1);h=c.g;null!=h&&b.Aa(h);e&&(a.b.info("Received remote description for session "+W5(b.g)+" with sufficient data to allow session preparation."),b.cd(c));if(f)a.b.info("Received remote description for session "+W5(b.g)+" with sufficient data to allow starting the session."),
E6(a,b,c);else if(d)a:{a=c;switch(b.getState()){case "INITIAL":case "STARTING":b.l.b(q4);break a;case "STOPPED":case "FINISHED":b.l.b(p4);break a}c=b.tc;e=a;null===c?c=!0:((f=Z5(c.oa,e.oa)||Z5(c.ga,e.ga))||(f=c.b,d=e.b,f=null==f&&null==d?!1:null==f||null==d||f.mc()!=d.mc()||f.h!=d.h||f.f!=d.f||f.b!=d.b?!0:a6(x(f.g),x(d.g))),c=f||$5(x(c.h),x(e.h)));c&&(b.tc=yR(a,a.Ka),b.l.info(o4,Fu(a)),c=q5(a),0<c.length&&p0(b.b.b,c),a=b6(a),a=K5(b,a),a=o5(a),b.j=AR(zR(b.j,a.b),x(a.h)),c=b.j,e=c.oa,null!=e?e=pR(e,
a.oa):e=a.oa,f=c.ga,null!=f?f=pR(f,a.ga):f=a.ga,a=tR(xR(c,e),f),b.j=a,a=b.j.oa,null!=a&&(b.va=TQ(a),b.I(new JS(b.va))),null==a&&null==b.j.ga||M5(b,[]))}};h6.prototype.Ab=function(a){if("INPROGRESS"!=this.getState())os(this.l,"Ingress bandwidth updated before started.");else{var b=H3(this.ob),c=new OF;-1!=b.f&&S(c,1,b.f);-1!=b.b&&S(c,2,b.b);-1!==b.h&&S(c,3,b.h);b=new pG;V(b,7,c);c=new xG;c.Aa(a.sessionId);a=this.u||this.B.f;null===a||AG(c,[a]);zG(c,[b]);X1(this.C,c)}};
h6.prototype.Bb=function(a){H_(this.bb,a.message)};
h6.prototype.tc=function(a){switch(this.getState()){case "INITIAL":os(this.l,"Received local candidates before starting.");return;case "STOPPED":case "FINISHED":os(this.l,"Received local candiates after end.");return}var b=a.target,c=[];w(a.b,function(a){a=this.T.f(a);c.push(a);S(a,9,void 0)},this);if(!(1>c.length)){var d=new kG;Ji(d,6,c);var e=b.b.b.g.b;if(e&&(S(d,4,e.h),S(d,5,e.f),e.b)){var f=new mG;S(f,1,e.b.split(" ")[0]);S(f,2,e.b.split(" ")[1]);V(d,2,f)}var h=[];w(x(b.b.b.g.h),function(a){h.push(this.T.Dj(a))},
this);b=new pG;b.sb(4);V(b,2,d);Ji(b,4,h);d=new xG;d.Aa(a.sessionId);zG(d,[b]);X1(this.C,d)}};
h6.prototype.vc=function(a){var b=a.target,c=this.la.get(b.vb()),d=b.getState();if(c!=d){this.la.set(b.vb(),d);this.j.get(c).remove(b);this.j.get(d).add(b);switch(d){case "STARTED":null!=this.u&&null!=this.Ga&&null!=this.Qa&&b.sg(this.u,this.Ga,this.Qa);break;case "INPROGRESS":I6(this,b);break;case "STOPPED":J6(this,b,a.b,a.yc);break;case "FINISHED":this.j.get(b.getState()).remove(b),this.la.remove(b.vb()),this.g.remove(b),this.Ua.delete(b),Js(b),this.g.pa()==this.j.get("FINISHED").pa()&&("STOPPED"!=
this.K?os(this.l,"Session Manager finished before stopping."):this.lb("FINISHED"))}this.I(a)}};
var I6=function(a,b){if("INITIAL"==a.getState()||"STOPPED"==a.getState()||"FINISHED"==a.getState())ns(a.l,"Should not have new active sessions now.");else{"STARTING"==a.getState()&&a.lb("INPROGRESS");c6(b,a.B.T);var c=b.vb(),d=i6(a);w(d,function(a){c!=a.vb()&&(a.pause(),K6(this,a,b))},a)}},J6=function(a,b,c,d){w(a.A,function(a){a.Ii(b.vb())});if(26==c)c=a.m,a.m=g6(a,!1),c&&(a.m?K6(a,c,a.m):a.b.error("Cloud session"+DS(c)+" to cloud handoff failed"));else{55==c&&a.f.then(function(a){MT(a,3262,DS(b)||
void 0)},null,a);var e=a.j.get("STOPPED").pa()+a.j.get("FINISHED").pa();a.g.pa()==e?"STOPPED"!=a.K&&(a.b.info("All sessions now stopped."),a.stop(c,d)):0==i6(a).length&&w(l6(a),function(a){a.resume();K6(this,b,a)},a)}},K6=function(a,b,c){if(b.f.b)var d=5;else if(c.f.b)d=4;else{d=6;var e=q(),f=q();c.dc.U.then(function(){f=q();B_(this.va,29,e);B_(this.va,30,f);C_(this.va);this.b.info("Cloud to cloud handoff took: "+(f-e)+" ms");this.f.then(function(a){MT(a,4652,DS(c)||void 0)},null,this)},function(){f=
q();this.b.info("Cloud to cloud handoff timeout: "+(f-e)+" ms");this.f.then(function(a){MT(a,4653,DS(c)||void 0)},null,this)},a)}var h=new rL;S(h,1,d);S(h,2,0);S(h,3,DS(b));S(h,4,DS(c));S(h,5,f);var k=new IL;V(k,15,h);t5(b.g,k);4==d&&a.f.then(function(a){MT(a,3260,DS(c)||void 0)},null,a);a.b.info("Handing off from "+(b.f.b?"P2P":"RF")+" session to "+(c.f.b?"P2P":"RF")+" session")},B6=function(a){a.Va||(a.Va=d6.Ha(),a.o.listen(a.Va,"yb",a.ec))};
h6.prototype.ec=function(){var a=this,b=new Set(this.Ua);0===b.size?W(this.l,"SleepWatcher suspend ignored. No effected sessions."):(this.b.info("SleepWatcher fired. Waiting 3 seconds to determine if media is live."),ku(3E3).then(function(){a.m.pk()?(a.b.info("SleepWatcher fired but session is still live. Not suspending."),k6(a,4588),a.I("V")):(tT(a.b,"Suspend triggered by SleepWatcher, "+("effecting "+b.size+" session(s).")),k6(a,2056),L6(a,b),a.I("W"))}))};
var L6=function(a,b){var c=a.A.concat().filter(function(a){return"v"===a.fa().X()});W(a.l,"Muting "+c.length+" video capture(s).");c.forEach(function(a){return a.Hf()});ku(2E3).then(function(){b.forEach(function(b){switch(a.getState()){case "STOPPED":case "FINISHED":W(a.l,"Suspend ignored for finished/stopped session. "+b);return}W(a.l,"Ending session due to SleepWatcher trigger. "+b);a.stop(112,"JS was suspended for too long.")})})},j6=function(a){a.f.then(function(a){MT(a,4412)})},k6=function(a,
b,c,d,e,f,h,k){a.f.then(function(a){return MT(a,b,c,d,e,f,h,k)})};var M6=function(a,b,c){Y.call(this);this.g=b;this.b=c;this.f=new rB(this);this.h(this.f);this.f.removeAll();this.f.listen(a,"xb",this.m)};t(M6,Y);M6.prototype.m=function(a){this.b.b("H");var b=this.g,c=P0(a.data);c=new AK(c);c=U(c,xK,1);W(b.l,"handlePushNotification invoked, batch size: "+c.length);w(c,b.b,b);a=P0(a.data);a=U(new AK(a),xK,1);0==a.length?this.b.b("L"):1==a.length?w(a,this.j,this):this.b.b("M")};
M6.prototype.j=function(a){var b=T(a,yE,1);(b=b&&O(b,3))&&this.b.b("$",b);a=T(a,vK,2);if(null!=a){for(var c,d=0;d<g1.length;d++)if(b=g1[d].Eb.call(a),null!=b){c=g1[d].eventType;switch(c){case "cb":a="P";break;case "eb":a="Q";break;case "$a":a="R";break;case "ab":a="S";break;case "db":a="T";break;case "Wa":a="U";break;case "Xa":a="V";break;case "Ya":a="W";break;case "kb":a="X";break;case "Za":a="Z";break;case "fb":a="aa";break;case "gb":a="ba";break;case "hb":a="ca";break;case "ib":a="da";break;case "jb":a=
"ea";break;default:a="O"}this.b.b(a);break}c||this.b.b("Y")}else this.b.b("N")};var Q6=function(a,b,c){var d=this;Y.call(this);this.Bb=new s2;this.onConnect=this.Bb.b;this.vc=new s2;this.onDisconnect=this.vc.b;this.wa=new s2;this.Oc=this.wa.b;this.xa=a;this.ef=b;this.f=this.ef.b;this.J=ls("realtime.media.call.BaseCall");this.pb=new rB(this);this.h(this.pb);this.Ca=new s2;this.fb=this.Ca.b;this.Ga=new s2;this.Ja=this.Ga.b;this.zb=[];this.K=c||O(this.f,2)+"^"+Vc();LO(a,oP).then(function(a){var b=d.K;a.b?b!=a.b&&(a.g=Mt(b)):a.f.resolve(b);a.b=b;a.I(new N6(b))});LO(a,kP).then(function(a){var b=
{Lf:function(a){return d.hi(a)},Mf:function(){}};z_(a,b);Is(d,function(){return r2(d.onDisconnect,function(){pc(a.b,b)})})});this.M=new gS;hS(this.M,this.K).s="jid";this.Cb=new s2;this.jg=this.Cb.b;this.Fd=new s2;this.mf=new z2;this.h(this.mf);this.ec=new z2;this.h(this.ec);this.b=new h6(a,b,this.mf.b,this.ec.b,this.K);this.h(this.b);this.ig=[];this.hg=new rB(this.b);this.h(this.hg);w6(this.b,function(a){var b=a.S(),c=d.ig.find(function(a){return a.Ja.get()==b});return c&&(a=new HP("",a.getId(),a.X(),
a.Kb,a.getState(),a.Ue,a.Pc&&x(a.Pc)),c=c.b.bc(a))?c:null});(new s2).resolve(this.b);this.Qa=0;this.pb.listen(this.b,["H","O","Q","wb"],this.I);this.pb.listen(this.b,"Q",this.Ko);this.pb.listen(this.b,"u",this.Ap);this.ke=new s2;this.sessionId=this.ke.b;LO(a,jP).then(function(a){a.b=a.b||d.f;a.m=a.m||d.ef;a.s||O6(a);r6(d.b,P6(a));Math.random()<=Ai(a.b,9)&&s6(d.b);a.j.push(d);d.onConnect.then(p(a.B,a,d));d.onDisconnect.then(p(a.o,a,d),p(a.o,a,d))});this.Ba=WT.Ha();this.ff=[];dd(this.yf(),function(a,
b){this.ff.push(YT(this.Ba,b,a))},this)};t(Q6,wP);g=Q6.prototype;g.Of=function(a){var b=O(this.f,6);a=mS(a);a.F=b;b=O(this.f,18);null!=b&&(a=mS(a),a.K=b);ps(this.J,"Starting the media session.");this.b.cd(a)?this.wa.resolve(null):this.wa.reject("Failed to create session.")};g.yf=function(){return{callState:p(this.getState,this),hangoutId:p(this.fb.get,this.fb),pid:p(this.Ja.get,this.Ja),plid:rk(this.K),sessionId:p(this.Xg,this)}};
g.zf=function(){return{callState:rk(this.getState()),hangoutId:rk(this.fb.get()),pid:rk(this.Ja.get()),plid:rk(this.K),sessionId:rk(this.Xg())}};g.ja=function(){ps(this.J,"Disposing call.");this.disconnect(0);w(this.ff,this.Ba.h,this.Ba);dd(this.zf(),p(function(a,b){YT(this.Ba,b,a)},this));Q6.ra.ja.call(this)};g.lb=function(a){a!=this.Qa&&(W(this.J,"Call state changed from "+this.Qa+" to "+a),this.Qa=a,this.I("Ab"))};g.Xg=function(){return this.b.m&&this.b.m.vb()};g.getState=function(){return this.Qa};
var R6=function(a,b,c,d){W(a.J,"triggerConnected() called. HangoutId: "+c+" ParticipantId: "+d);2!=a.Ja.b&&(a.Ca.resolve(c),a.Ga.resolve(d));var e=a.Gj();a.h(e);a.Cb.resolve(e);e=new RS(e,a.b);a.Fd.resolve(e);a.h(e);b.resolve();a.Bb.resolve(null);a.lb(2);a.b.connect(c,d,a.M);a.h(new M6(a.b,a.f.A,a.f.u));W(a.J,"Call connected")};Q6.prototype.h=function(a){a=p(wP.prototype.h,this,a);2==this.onDisconnect.b?a():this.onDisconnect.then(a,a)};
var S6=function(a,b){a.zb=x(b);x6(a.b,a.zb);a.jg.then(function(a){a.B(this.zb)},void 0,a)};g=Q6.prototype;g.disconnect=function(a){if(3==this.getState()||4==this.getState())return W(this.J,"disconnect() skipped, already disconnecting."),this.onDisconnect;W(this.J,"disconnect() called. Endcause: "+a);var b=2==this.getState();this.lb(3);this.b.stop(a);this.Yf(b,a);return this.onDisconnect};
g.Yf=function(a,b){W(this.J,"triggerDisconnected(). Endcause: "+b);a=new T6(b);this.Ca.reject(a);this.Ga.reject(a);this.Cb.reject(a);this.Fd.reject(a);this.Bb.reject(a);this.wa.reject(a);this.vc.resolve(b);this.lb(4)};g.Wg=function(a){return 3==this.getState()||4==this.getState()?(W(this.J,"addCapture() failed, because we are disconnecting"),!1):v6(this.b,a)};g.Ko=function(){};
g.Ap=function(a){a.target==this.b?"STOPPED"==a.state?(W(this.J,"Disconnect received from session. Endcause: "+a.b),this.disconnect(a.b)):"INPROGRESS"==a.state&&this.I("zb"):"STARTING"==a.state&&(a=DS(a.target),2==this.sessionId.b?this.wl(a):this.ke.resolve(a))};g.hi=function(a){a=sY(a);var b=this.fb.get();null!=b&&a.Y(b);b=this.Ja.get();null!=b&&a.Da(b);b=this.Xg();null!=b&&S(a,10,b);b=this.b.m&&DS(this.b.m);null!=b&&a.Aa(b)};var U6=function(){},T6=function(a){this.b=a};var V6=function(a){rB.call(this);this.B=a;this.b=null;this.g=[];this.m=this.u=!1;this.C=new H2;this.A=null};t(V6,rB);V6.prototype.ja=function(){this.g=[];this.b=null;V6.ra.ja.call(this)};var X6=function(a){var b=a.b,c=a.g[a.g.length-1]||null;w(a.g,function(a){"sc"==a.fa().Kb&&(c=a)});b!=c&&(a.b=c,W6(a))};V6.prototype.F=function(a){var b=this.b;X6(this);b&&b==this.b&&a.target==b.fa()&&W6(this)};
var W6=function(a){a.s||(a.m?a.u=!0:(a.u=!1,a.m=!0,Rt([a.B.fb,a.B.Ja,a.B.m]).then(function(a){var b=a[0],d=a[1];a=a[2];if(null!=this.b){var e=this.C,f=this.b.fa();var h=new GG;h.Y(b);h.Da(f.S());h.li(f.getId());h.sb(Q2(e,f.X()));var k="mu"==f.getState();h.Tf(new IG);var n=T(h,IG,5);S(n,1,k);if("a"==f.X())null!=f.Ue&&(e=new OG,S(e,2,f.Ue),f=f.S(),S(e,1,f),V(h,8,e));else if("v"==f.X()){k=new MG;V(h,7,k);k=T(h,MG,7);a:{n=f.Kb;switch(n){case "ca":n=1;break a;case "sc":n=2;break a}os(e.l,"Unknown media content: "+
n);n=void 0}S(k,1,n);k=f.Pc&&x(f.Pc);null!=k&&(f=T(h,MG,7),e=bc(k,e.j,e),Ji(f,3,e))}h.Y(b);h.Da(d);h.li(this.b.fa().getId());this.A=h}else this.A&&(h=this.A,b=T(h,IG,5),S(b,1,!0));h?a.add(h).then(this.j,this.j,this):this.j()},a.j,a)))};V6.prototype.j=function(){this.m=!1;this.u&&W6(this)};var Y6=function(a,b,c,d,e){Y.call(this);this.D=new H2;this.f=a;this.A=b;this.u=e;this.b=new Fk;this.o=new MS;this.j=new rB(this);this.h(this.j);this.j.listen(this.A,"pb",this.m);this.j.listen(this.u,["X","u"],this.m);w(d,this.g,this)};t(Y6,u2);Y6.prototype.g=function(a){""==a.S()&&a.Da(this.f);this.o.add(a)};Y6.prototype.C=function(a){return a==this.f?this.o:this.b.get(a,null)};
Y6.prototype.B=function(a){var b=new Ol;w(a,function(a){if(a!=this.f&&(b.add(a),!Ik(this.b,a))){var c=new MS;this.b.set(a,c);this.I(new QS("$",a,c))}},this);w(this.b.ub(),function(a){if(!b.contains(a)){var c=this.b.get(a);this.b.remove(a)&&this.I(new QS("aa",a,c))}},this);this.m()};
Y6.prototype.m=function(){var a=new Ol;w(this.A.get(),function(b){var c=this.b.get(b.S());if(null!=c){var d=this.D,e=b.S();var f=b.sa();var h=R2(d,b.da()),k="un";if(null!=T(b,MG,7)){a:{k=O(T(b,MG,7),1);switch(k){case 1:k="ca";break a;case 2:k="sc";break a}os(d.l,"Unknown capture type: "+k);k="un"}var n=O2(d,U(T(b,MG,7),RG,3),d.u,d)||void 0}if(null!=T(b,OG,8)){var u=Ai(T(b,OG,8),2);u=m(u)?u:void 0}var z=T(b,IG,5)&&T(b,IG,5).Ec()?"mu":"li";d=null;null!=e&&null!=f&&null!=h&&(d=new HP(e,f,h,null!=k?k:
void 0,z,u,n));null!=T(b,IG,5)&&(e=T(b,IG,5),O(e,2));null!=T(b,KG,6)&&O(T(b,KG,6),1);f=d;null!=f&&(e=NS(c,f.X(),f.getId(),f.S()),null!=e?(e.setContent(f.Kb),c=f.Ue,e.Ue!=c&&(e.Ue=c,e.I("f")),e.lb(f.getState()),c=f.Pc&&x(f.Pc),GP(e,c)&&e.I("h")):c.add(f))}a.add(Z6(b.S(),b.sa()))},this);w(q6(this.u),function(b){var c=b.S(),d=b.sa();if(c!=this.f&&!a.contains(c+"/"+d)){b=b.getInfo().da();var e=this.b.get(c);null!=e&&!NS(e,b,d,c)&&e.add(new HP(c,d,b));a.add(c+"/"+d)}},this);w(this.b.ea(),function(b){w(x(b.b),
function(c){a.contains(Z6(c.S(),c.getId()))||b.remove(c)},this)},this)};var Z6=function(a,b){return a+"/"+b};var $6=function(a,b,c,d){Q6.call(this,a,b,d);this.A=!1;this.B=new s2;this.j=this.B.b;this.P=new s2;this.g=this.P.b;this.g.then(function(a){this.pb.listen(a,"pb",ob(this.ma,a));this.ma(a)},null,this);this.la=new s2;this.m=this.la.b;this.u={};this.Z=this.C=this.T=null;this.o={fb:"",Ja:"",cookie:null};this.D=null;LO(a,jP,!1).then(p(function(a){this.D=a},this));c&&this.Of(c)};t($6,Q6);
var a7={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},b7={1:0,2:307,3:303,4:217,5:305,6:307,7:307,8:306,11:217};$6.prototype.ma=function(a){S6(this,bc(a.get(),function(a){return a.S()}))};
$6.prototype.connect=function(a,b){return this.Oc.then(function(){W(this.J,"connect() was called");if(0!=this.getState())return os(this.J,"connect() failed. Not in INITIALIZED. State: "+this.getState()),Nt(new U6(this.getState()));var c=Ut();this.lb(1);if(Ra(a)){ps(this.J,"Skipping Hangout resolution");var d=E3(this.xa,this.f,[a],C3(),y3,"$a");c7(this,c,d,b||null)}else d7(this,c,a,b);return c.U},void 0,this)};
var d7=function(a,b,c,d){ps(a.J,"Resolving Hangout");c.then(function(a){c7(this,b,a,d||null)},function(a){os(this.J,"Hangout resolve failed, reverting to INITIALIZED state");this.lb(0);b.reject(new e7(306,a))},a)},c7=function(a,b,c,d){var e=Ri(c.j).ba();ps(a.J,"connectToHangout(). HangoutId: "+e);1!=a.getState()?(os(a.J,"connectToHangout() failed, not in CONNECTING state. State: "+a.getState()),b.reject(new e7(302,new U6(a.getState()))),Js(c)):(a.o.fb=e,a.o.Ja=d||"",a.C=bt(Re(),"beforeunload",a.Sk,
!1,a),a.Z=bt(Re(),"unload",a.Sk,!1,a),a.Aj(e,d,b,c,0))};g=$6.prototype;g.wl=function(a){Rt([this.g,this.Ja]).then(function(b){var c=b[0].Ob();c.Da(b[1]);c.he([a]);X1(this.g.get(),c)},void 0,this)};
g.Aj=function(a,b,c,d,e){this.sessionId.then(function(f){var h=E3(this.xa,this.f,[a],new B1(wF,[wF.prototype.ba],[wF.prototype.Y],[wF.prototype.S],[wF.prototype.Da],gI,[gI.prototype.ba],[gI.prototype.Y],[gI.prototype.S],[gI.prototype.Da]),x3,"ab");ps(this.J,"Adding participant");var k=h.Ob();k.he([f]);Ic(b||"")||k.Da(b);h.add(k).then(p(this.Mo,this,c,d,h,e),p(this.Hk,this,c,d,h))},void 0,this)};
g.Mo=function(a,b,c,d,e){var f=e[0].ba(),h=e[0].S();this.o.Ja=h;1!=this.getState()?(os(this.J,"add participant succeeded, but we are no longer CONNECTING. State: "+this.getState()),a.reject(new e7(302,new U6(this.getState()))),a=new wF,a.Y(f),a.Da(h),c.remove(a).then(this.Yg,null,this),Js(b),Js(c)):(W(this.J,"add participant succeeded"),10==Q(e[0],17,0)?(W(this.J,"participant in knocking state"),30>d?(W(this.J,"will attempt again after delay"),ku(1E3).then(p(this.Aj,this,f,h,a,b,d+1))):(W(this.J,
"max knock attempt, failing join"),this.Hk(a,b,c,234))):(W(this.J,"success adding and not a knock result"),f=Ri(b.j).ba(),this.B.resolve(b),this.P.resolve(c),this.h(b),this.h(c),R6(this,a,f,h),b.start(),c.start()))};g.Hk=function(a,b,c,d){this.Yg();os(this.J,"add participant failed, moving back to INITIALIZED state");this.lb(0);Js(b);Js(c);a.reject(new e7(f7(d),d))};
g.yf=function(){var a=$6.ra.yf.call(this);a.hangout=p(function(){return this.j.get()&&T1(this.j.get())},this);a.participants=p(function(){return this.g.get()&&T1(this.g.get())},this);a.mediaSources=p(function(){return this.m.get()&&T1(this.m.get())},this);return a};g.zf=function(){var a=$6.ra.zf.call(this);a.hangout=rk(this.j.get()&&T1(this.j.get()));a.participants=rk(this.g.get()&&T1(this.g.get()));a.mediaSources=rk(this.m.get()&&T1(this.m.get()));return a};
g.Gj=function(){var a=F3(this.xa,this.f,this.fb.get());this.h(a);this.la.resolve(a);a.start();return new Y6(this.Ja.get(),a,this.g.get(),this.b.A.concat().map(function(a){return a.fa()}),this.b)};
g.Yf=function(a,b){var c=this;this.T=b;this.o.cookie=this.f.g.f.b;var d=Mt();if(a&&!this.A){W(this.J,"Removing participant on disconnect");d=new wF;d.Y(this.fb.get());d.Da(this.Ja.get());var e={};e.jYdIne=b;d=this.g.get().remove(d,e,2).then(this.Yg,null,this)}Xt(d,function(){c.f.g.f.b=null;Q6.prototype.Yf.call(c,a,b)});dd(this.u,Js);pd(this.u);d=new T6(b);this.B.reject(d);this.P.reject(d);this.la.reject(d);null!=this.j.get()&&this.j.get().stop();null!=this.g.get()&&this.g.get().stop();null!=this.m.get()&&
this.m.get().stop()};g.Wg=function(a){if(3==this.getState()||4==this.getState())return W(this.J,"addCapture() failed, because we are disconnecting"),!1;var b=this.u[a.fa().getId()];if(b&&ic(b.g,a))return os(this.J,"HangoutCall.addCapture() failed because we already have this capture"),!1;b||(b=new V6(this),this.u[a.fa().getId()]=b);b.listen(a.fa(),["e","f","g","h"],b.F);b.g.push(a);X6(b);return $6.ra.Wg.call(this,a)};g.Yg=function(){null!=this.C&&lt(this.C);null!=this.Z&&lt(this.Z)};
g.Sk=function(){this.Yg();var a=O(this.f,12),b=null!=this.T?this.T:63;if(null!=a){var c=new MK;S(c,5,b);var d=new gI;d.Y(this.o.fb);Ic(this.o.Ja)||d.Da(this.o.Ja);NK(c,[d]);c.setRequestHeader(n1(this.f));d=new Ui;V(d,3,this.o.cookie||this.f.g.f.b);c.H(d);c=c.ya();d=this.D?g7(this.D,this):[];d=bc(d,function(a){return a.ya()},this);if(null!=navigator.sendBeacon){var e=new FormData;e.append("r",c);w(d,function(a){e.append("l",a)});this.A=navigator.sendBeacon(a,e)}this.A||(a=cq(a,"r",c),a=cq(a,"l",d),
c=Uv(Sv),c.open("GET",a,!1),c.send(null));this.A=!0}this.disconnect(b)};var f7=function(a){var b=null;try{b=Oi(a.response.Zw)}catch(d){}var c;b instanceof wH?(a=b.getResponseHeader())&&(c=10==a.Ia()?a7[O(b,4)]||209:b7[a.Ia()]):m(a)&&(c=a);return Qa(c)?c:302},e7=function(a,b){this.rl=a;this.jc=b};var h7=function(a,b,c,d,e,f){Y.call(this);this.l=ls("realtime.collections.apiary.OperationExecutor");this.b=[];this.g=b;this.m=b instanceof c1?b:null;this.j=a;this.D=c||function(){return Mt(null)};this.K=Qa(d)?d:8;this.M=N0(e||0,f)};t(h7,y1);var i7=function(a){var b=new yD;AD(b,new sD);uD(T(b,sD,1),a.K);var c=new oD;return a.D().then(function(d){d&&S(c,4,d);V(b,2,c);d=T(b,oD,2);S(d,1,a.j);S(b,4,"en");V(b,7,a.M);return b})};
h7.prototype.execute=function(a,b){if(a.Fg())throw new v3(a);this.m&&!Qa(b)&&a.B?(this.b.push(a),1==this.b.length&&Ct(this.C,this)):j7(this,a,b)};h7.prototype.C=function(){for(var a=0;a+5<this.b.length;)k7(this,vc(this.b,a,a+5)),a+=5;1==this.b.length-a?j7(this,this.b[a]):k7(this,vc(this.b,a));this.b.length=0};
var j7=function(a,b,c){var d=b.g,e=u3(b);i7(a).then(function(f){e.setRequestHeader(f);W(a.l,"Making request for operation: "+b+", jid: "+a.j);f=b.Nf();var h=Qa(c)?c:b.Se(),k=Math.max(h,b.Tg()||0);Yt(a.g.makeRequest(d,e,h,f,k,{isCollectionOperation:!0}).then(p(a.o,a,b)),p(a.f,a,b))})};
h7.prototype.o=function(a,b){var c=b.getResponseHeader();if(1==c.Ia())c=a.L(b),b=hb(b.G)&&null!=b.G()?b.G().mc():-1,b=new x1(c,b),W(this.l,"Apiary operation succeeded for "+a+", result: "+b),a.j=!0,a.Ee().resolve(b);else{var d=Error(O(c,8));d.stack=O(c,2);ns(this.l,"Apiary operation "+a+" failed with status "+c.Ia(),d);this.f(a,new Q0("fatal","backend",null,b))}};h7.prototype.f=function(a,b){a.j=!0;ns(this.l,"Apiary operation failed for "+a+": "+b.toString());a.Ee().reject(b)};
var k7=function(a,b){var c=new pH;i7(a).then(function(d){c.setRequestHeader(d);qH(c,bc(b,function(a){var b=u3(a),c=new mH;a.B.call(c,b);return c},a));W(a.l,"Making bulk request for "+b.length+"operations , jid: "+a.j);d=Math.max.apply(null,bc(b,function(a){return a.Nf()}));var e=bc(b,function(a){return a.Se()});e=ac(e,Qa);e=e.length?Math.min.apply(null,e):void 0;Yt(a.g.makeRequest("hangouts/bulk",c,e,d,void 0,{isCollectionOperation:!0}).then(p(a.B,a,b)),p(a.A,a,b))})};
h7.prototype.B=function(a,b){e1(this.m,b);var c=U(b,YH,2);w(a,function(a,e){(e=a.C.call(c[e]))?(e1(this.m,e),this.o(a,e)):this.f(a,new Q0("fatal","backend",null,b))},this)};h7.prototype.A=function(a,b){w(a,function(a){this.f(a,b)},this)};var m7=function(a,b,c){var d=0;Qa(void 0)&&(c=Ri(c),S(c,5,!0),d=q()+void 0);var e=Ut(),f=function(a){q()>=d?e.reject(a):iu(k,5E3)},h=function(c){1==c.getResponseHeader().Ia()?(c=c.ba(),e.resolve(E3(a,b,[c],C3(),y3,"$a"))):f(new Q0("fatal","backend",null,c))},k=function(){Yt(l7(a,b,c).then(h),f)};k();return e.U},l7=function(a,b,c){a=c3(b3.Ha(),a,b);var d=a.g;c=Ri(c);return i7(a).then(function(a){c.setRequestHeader(a);return d.makeRequest("hangouts/resolve",c)})};var n7=function(a,b,c){var d=this;this.b=a;this.g={};dd(b,function(a,b){return d.g[b.toLowerCase()]=a});this.ge=c};n7.prototype.xe=function(){return qd(this.g)};n7.prototype.Ae=function(a){return this.g[a.toLowerCase()]||null};var o7=function(a,b,c){n7.call(this,a,b,c)};l(o7,n7);var q7=function(a,b,c,d,e){Hs.call(this);this.A=a;this.b=b;this.C=e||{};this.o=c;this.F=d;this.B=-1;this.u=Ut();this.f=!1;this.j=0;this.m=this.g=void 0;this.Oa=++p7};t(q7,Hs);var p7=0;g=q7.prototype;g.Ei=function(a){this.B=a;return!1};g.Ee=function(){return this.u};g.Ug=function(){return this.u.U};g.Fg=function(){return this.f};g.Vg=function(a){this.j=a};g.Nf=function(){return this.j};g.Uf=function(a,b){Qa(b)&&(b=Math.max(a,b));this.g=a;this.m=b};g.Se=function(){return this.g};g.Tg=function(){return this.m};
g.Eg=function(){return this.b};g.Fh=function(){return this.o.ya()};g.toString=function(){return"[Operation id: "+this.Oa+": service: "+this.A+", call: "+this.b+", version: "+this.B+"]"};var r7=function(){Ub.call(this)};t(r7,Ub);r7.prototype.message="Operation has already been executed.";r7.prototype.name="AlreadyExecutedError";var s7=function(a){N(this,a,0,-1,null)};t(s7,M);var t7=function(a,b){for(;Nh(b)&&!Mh(b);)switch(b.f){case 1:var c=Qh(b);Fi(a,1,c);break;case 2:c=b;var d=c.b.f();c=c.b;if(0>d||c.b+d>c.h.length)c.s=!0,Xb("Invalid byte length!"),c=new Uint8Array(0);else{var e=c.h.subarray(c.b,c.b+d);c.b+=d;c=e}Ei(a,2,c,"");break;default:Oh(b)}return a};s7.prototype.w=function(){var a=new y;u7(this,a);return A(a)};var u7=function(a,b){var c=Q(a,1,"");0<c.length&&J(b,1,c);c=Bi(Q(a,2,""));0<c.length&&mi(b,2,c)};var w7=function(a){N(this,a,0,-1,v7)};t(w7,M);var v7=[3],x7=function(a){a=new Lh(a);for(var b=new w7;Nh(a)&&!Mh(a);)switch(a.f){case 1:var c=a.b.m();Ei(b,1,c,0);break;case 2:c=Qh(a);Fi(b,2,c);break;case 3:c=new s7;a.h(c,t7);Ki(b,3,c,s7);break;default:Oh(a)}return b};w7.prototype.w=function(){var a=new y;var b=Q(this,1,0);0!==b&&C(a,1,b);b=this.getMessage();0<b.length&&J(a,2,b);b=U(this,s7,3);0<b.length&&K(a,3,b,u7);return A(a)};w7.prototype.getMessage=function(){return Q(this,2,"")};var y7=function(a,b,c,d,e){d=void 0===d?null:d;e=void 0===e?null:e;var f=c instanceof w7;n7.call(this,a,b,f?null:c);this.h=f?c:null;this.j=e;this.f=d};l(y7,n7);y7.prototype.getMessage=function(){return this.j};var z7=function(a){return new y7(a.b,a.xe(),(a instanceof y7?a.h:null)||a.ge,null,"validation failed")};var B7=function(a,b,c,d,e,f){var h=this;f=void 0===f?{}:f;this.j=a;this.g=b;this.f=c;this.b={};dd(d,function(a,b){return A7(h,b,a)});this.s=rd(f);this.h=null;this.h=e?e.clone():null};B7.prototype.getContext=function(){return this.j};B7.prototype.xe=function(){return qd(this.b)};B7.prototype.Ae=function(a){return this.b[a.toLowerCase()]||null};var A7=function(a,b,c){b=b.toLowerCase();null==c?delete a.b[b]:a.b[b]=c};B7.prototype.clone=function(){return new B7(this.j,this.g,this.f,this.b,this.h,rd(this.s))};var C7=function(){},G7=function(a,b,c){var d=b.getContext();A7(b,"Content-Type","application/x-protobuf");A7(b,"X-Goog-Api-Key",D7(d)||null);A7(b,"X-Goog-Encode-Response-If-Executable","base64");var e=E7(d)+("/$rpc/"+b.g+"/"+b.f),f=null,h=b.h;h&&(f=h.w.call(h));h=Ut();var k=new Vv;k.listen("complete",a.b.bind(a,h,c));jt(k,"ready",k.Ra);F7(d)&&(k.m=Math.max(0,F7(d)));k.B=!0;k.u="arraybuffer";k.send(e,"POST",f,b.xe());Yt(h.U,function(a){a instanceof Ht&&k.abort()});return h.U};
C7.prototype.b=function(a,b,c){try{var d=c.target,e=d.Ia(),f=mw(d),h=lw(d),k=new Uint8Array(h&&h||null);k&&fd(f,function(a,b){return"BASE64"==a.toUpperCase()&&"X-GOOG-SAFETY-ENCODING"==b.toUpperCase()})&&(k=Ch(qh(k)));if(iw(d))try{a.resolve(new o7(e,f,b?b(k):null))}catch(u){a.resolve(new y7(10002,f,null,u,"Failed to decode response"))}else{var n=0==e?d.o+3E4:e;try{a.resolve(new y7(n,f,x7(k),Error(Ra(d.g)?d.g:String(d.g))))}catch(u){a.resolve(new y7(n,f,null,u,"Failed to decode status"))}}}catch(u){a.resolve(new y7(10005,
{},null,u,"Failure in XHR result processing"))}};var H7=new C7,I7=function(a){this.b=void 0===a?null:a;this.B=this.h=this.A=this.f=this.j=this.o=null;this.u=[];this.g=[];this.m=[]};I7.prototype.s=function(){var a=new I7;a.setApiKey(D7(this));a.j=E7(this);a.f=F7(this);a.A=J7(this);a.h=K7(this);a.B=L7(this);w(M7(this),function(b){return N7(a,b)});w(O7(this),function(b){a.g.push(b)});w(P7(this),function(b){return Q7(a,b)});return a};var E7=function(a){return null!=a.j?a.j:a.b?E7(a.b):""};I7.prototype.setApiKey=function(a){this.o=a};
var D7=function(a){return null!=a.o?a.o:a.b?D7(a.b):""},F7=function(a){return null!=a.f?a.f:a.b?F7(a.b):6E4},J7=function(a){return null!=a.A?a.A:a.b?J7(a.b):3E5},R7=function(a,b){a.h=b},K7=function(a){return null!=a.h?a.h:a.b?K7(a.b):0},L7=function(a){return a.B?a.B:a.b?L7(a.b):H7},N7=function(a,b){a.u.push(b)},M7=function(a){return a.b?a.u.concat(M7(a.b)):a.u.concat()},O7=function(a){return a.b?a.g.concat(O7(a.b)):a.g.concat()},Q7=function(a,b){a.m.push(b)},P7=function(a){return a.b?a.m.concat(P7(a.b)):
a.m.concat()};var V7=function(){var a=this;this.b=new CA(100);this.f={onRequest:function(b,c){for(var d=[],e=1;e<arguments.length;++e)d[e-1]=arguments[e];a.b.add({name:d[0].wg.f,initReq:S7(b),req:S7(d[0].wg),resp:T7(d[0].response),attemptsHistory:U7(d)})}}},W7=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.b.ea().filter(function(a){return-1!=a.name.toLowerCase().indexOf(b)&&(!d||400<=a.resp.code)});return a.slice(-Math.min(a.length,c))},Y7=function(a,b){var c=void 0===
c?!1:c;return W7(X7(),a,b,c)},Z7=function(a){var b=X7();Q7(a,b.f)},X7=function(){$7||($7=new V7);return $7},$7=null,a8=function(a){if(a){if(a.ya)return JSON.parse(a.ya());if(gb(a))return bc(a,function(a){return a8(a)})}return a},S7=function(a){return{name:a.g+"/"+a.f,body:Fu(a8(a.h)),head:a.xe()}},T7=function(a){var b={code:a.b,body:Fu(a8(a.ge)),head:a.xe()};a instanceof y7&&(b.status=Fu(a8(a.h)),b.ex=a.f,b.msg=a.getMessage());return b},U7=function(a){var b=[];w(a,function(a){var c=S7(a.wg),e=T7(a.response);
b.push({gl:(new Date(a.gl)).toString(),Wk:(new Date(a.Wk)).toString(),wg:c,response:e})});return b};r("grpc_lookup",function(a){return Y7(a,1)[0]});r("grpc_dump",function(a,b){return Y7(a,b)});var d8=function(a,b){var c=this;this.m=new BY(1E3,36E4);this.b=a.getContext();this.o=a;a=F7(this.b);var d=J7(this.b);this.h=0<a?new BY(a,Math.max(a,d)):null;this.A=b;this.f=Ut();this.u=0;this.g=this.s=!1;b8(this.f.U,function(){c.g=!0});this.j=[];c8(this)},c8=function(a){var b=q();e8(a).then(function(c){a.j.unshift({gl:b,Wk:q(),wg:c.request,response:c.response});2==c.bf&&a.u<K7(a.b)?f8(a):g8(a,c)})},f8=function(a){a.u++;a.h&&(CY(a.h),a.b.f=a.h.b);var b=ku(a.m.b).then(function(){return c8(a)});CY(a.m);
b8(a.f.U,function(){return b.cancel()})},g8=function(a,b){a.s||(0==b.bf?a.f.resolve(b.response):(b.response instanceof o7&&(b.response=z7(b.response)),a.f.reject(b.response)),a.s=!0,w(P7(a.b),function(b){return Ct(function(){return b.onRequest.apply(b,[a.o.clone()].concat(xa(a.j)))})}))},e8=function(a){var b=Ut().U;b8(a.f.U,function(){return b.cancel()});var c=a.o.clone(),d=!1,e=[],f=h8(a,b,c),h=f.then(function(c){return d?new y7(20002,{},null):i8(a,b,c)}),k=Rt([f,h]).then(function(c){return d?1:
j8(a,b,c[0],c[1])},function(){return 3});e.push(St([f,h,k]).then(function(a){return a[0].qd?a[1].qd?a[2].qd?{request:a[0].value,response:a[1].value,bf:a[2].value}:{request:a[0].value,response:new y7(10006,a[1].value.xe(),a[1].value.ge,a[2].reason),bf:3}:{request:a[0].value,response:new y7(10005,{},null,a[1].reason),bf:3}:{request:c.clone(),response:new y7(10004,{},null,a[0].reason),bf:3}}));if(a.h){var n=ku(a.h.b).then(function(){d=!0;return{request:c.clone(),response:new y7(10001,{},null,null,"Client timed out"),
bf:2}});b8(b,function(){return n.cancel()});e.push(n)}e=Qt(e);Xt(e,function(){return b.cancel()});return e},h8=function(a,b,c){if(a.g)return Nt(new Ht);var d=bc(M7(a.b),function(a){try{return a.b(c)||Mt()}catch(f){return Nt(f)}});b8(b,function(){return w(d,function(a){return a.cancel()})});return Rt(d).then(function(){return c.clone()})},i8=function(a,b,c){if(a.g)return Nt(new Ht);var d=G7(L7(a.b),c,a.A);b8(b,function(){return d.cancel()});return d},j8=function(a,b,c,d){if(a.g)return Nt(new Ht);var e=
bc(O7(a.b),function(a){return a.b(c,d)});b8(b,function(){return w(e,function(a){return a.cancel()})});return Rt(e).then(function(a){return cc(a,function(a,b){return Math.max(a,b)},d instanceof o7?0:1)})},b8=function(a,b){Yt(a,function(a){a instanceof Ht&&b()})};var k8=function(a,b){I7.call(this,void 0===b?null:b);this.F=a};l(k8,I7);var l8=function(a,b,c,d,e,f){d=void 0===d?null:d;e=void 0===e?{}:e;f=void 0===f?{}:f;a=new B7(a.s(),a.F,b,e,c,f);return(new d8(a,d)).f.U};k8.prototype.s=function(){return new k8(this.F,I7.prototype.s.call(this))};var m8=new Set([502,504,500,503]),n8=new Set([0,-1,30006]),o8={b:function(a,b){return Mt(m8.has(b.b)?2:0)}},p8={b:function(a,b){return Mt(n8.has(b.b)?2:0)}};var q8=["ResolveMeetingSpace","CreateMeetingSpace"],r8=function(a,b){a=new I7(a);N7(a,{b:function(a){null!=a.Ae("X-Goog-Meeting-Token")||ic(q8,a.f)||A7(a,"X-Goog-Meeting-Token",hx(b))}});Q7(a,{onRequest:function(a,d){for(var c=[],f=1;f<arguments.length;++f)c[f-1]=arguments[f];if((c=c[0].response.Ae("X-Goog-Meeting-Token"))&&c&&(c=c.split(";"),f=Number(c[0]),!isNaN(f))){var h=new Wi;S(h,2,f);S(h,1,c[1]);gx(b,h)}}});return a},t8=function(a){var b=jx();b=void 0===b?new fx:b;this.g=fq("https://meetings.clients6.google.com",
"/v1/${path}");this.b=b;this.f=s8(this,a);this.h=r8(this.f,this.b);this.uk=null},s8=function(a,b){var c=new I7;c.setApiKey("");c.j="https://meetings.clients6.google.com";c.h=2;c.f=2E4;c.g.push(o8);c.g.push(p8);N7(c,{b:function(a){a.Ae("X-Goog-Meeting-Debugid")||LO(b,oP).then(function(b){(b=b.b)&&A7(a,"X-Goog-Meeting-Debugid",b)})}});Q7(c,{onRequest:function(b,c){for(var d=[],e=1;e<arguments.length;++e)d[e-1]=arguments[e];if(d=d[0].response.Ae("X-Goog-Meeting-Debugid"))a.uk=d}});Z7(c);return c};var u8=function(a){Y.call(this);this.l=ls("realtime.collections.oneplatform.OperationExecutor");this.u=LO(a,W0)};l(u8,y1);u8.prototype.execute=function(a,b){if(a.Fg())throw new r7(a);aaa(this,a,b)};
var aaa=function(a,b,c){c=void 0===c?null:c;W(a.l,"Making request for operation: "+b);m(c)||(c=b.Se());a.u.then(function(d){d=new k8(b.A,d.h);m(c)&&(d.f=c);R7(d,b.Nf());Yt(l8(d,b.b,b.o,b.F,b.C,{lx:!0}).then(function(a){var c=parseInt(a.Ae("ETag"),10);a=new x1(a.ge,isNaN(c)?-1:c);b.f=!0;b.Ee().resolve(a)}),function(c){return v8(a,b,c)})},function(c){return v8(a,b,c)})},v8=function(a,b,c){b.f=!0;a=a.l;if(ib(c))if("undefined"==typeof c)var d="undefined";else if(null==c)d="NULL";else{var e=[];for(d in c)if(!hb(c[d])){var f=
d+" = ";try{f+=c[d]}catch(h){f+="*** "+h+" ***"}e.push(f)}d=e.join("\n")}else d=c;ns(a,"OnePlatform operation failed for "+(b+": "+d));b.Ee().reject(c)};var w8=function(){};l(w8,d3);w8.prototype.s=function(a,b,c,d){return d?new u8(a):null};bP(w8,d3,10);var x8=function(a,b,c){Y.call(this);this.f=a;this.j=c;this.b=new Map;this.o=new MS(!0);this.m=new rB(this);this.h(this.m);this.m.listen(this.j,["X","u"],this.u);b.forEach(this.g,this)};l(x8,u2);var baa=function(a,b,c){return new x8(a,b,c)};x8.prototype.g=function(a){""==a.S()&&a.Da(this.f);this.o.add(a)};x8.prototype.C=function(a){return""==a||a==this.f?this.o:this.b.get(a)||null};
x8.prototype.B=function(a){var b=this,c=new Set;a.forEach(function(a){if(a!=b.f&&(c.add(a),!b.b.has(a))){var d=new MS;b.b.set(a,d);b.I(new QS("$",a,d))}});this.b.forEach(function(a,e){c.has(e)||(b.b.delete(e),b.I(new QS("aa",e,a)))});this.u()};
x8.prototype.u=function(){var a=this,b=new Set;q6(this.j).concat(p6(this.j)).forEach(function(c){var d=c.S()||a.f,e=c.sa(),f=d+"/"+e;if(!b.has(f)){b.add(f);f=a.C(d);null==f&&(f=new MS,a.b.set(d,f),a.I(new QS("$",d,f)));c=c.getInfo();var h=c.da(),k=c.Ec()?"mu":"li",n=NS(f,h,e,d);null==n?(n=new HP(d,e,h,void 0,k),f.add(n)):""!=n.S()&&n.S()!=a.f&&n.lb(k);d=n;e=c.ye();d.f!=e&&(d.f=e,d.I("h"))}});this.b.forEach(function(a){x(a.b).forEach(function(c){b.has(caa(c.S(),c.getId()))||a.remove(c)})})};
var caa=function(a,b){return a+"/"+b};var y8=function(a){QI.call(this,a);this.o=this.u=null};t(y8,QI);var daa=/^(spaces\/[a-zA-Z0-9_-]+)\//,z8=function(a){return(a=daa.exec(a))?a[1]:null};y8.prototype.A=function(){return z8(this.ac())||this.u};y8.prototype.B=function(a){this.u=a};var A8=function(a){N(this,a,0,-1,null)};t(A8,M);A8.prototype.w=function(){var a=new y;var b=O(this,1);null!=b&&J(a,1,b);return A(a)};A8.prototype.g=function(){return O(this,1)};A8.prototype.o=function(a){S(this,1,a)};var B8=function(a){N(this,a,0,-1,null)};t(B8,M);g=B8.prototype;g.w=function(){var a=new y;var b=O(this,1);null!=b&&J(a,1,b);b=O(this,2);null!=b&&J(a,2,b);return A(a)};g.Nk=function(){return O(this,1)};g.Pk=function(a){S(this,1,a)};g.ac=function(){return O(this,2)};
g.Ok=function(a){S(this,2,a)};var eaa=function(a){if(Ra(a)){var b=z8(a),c=new B8;c.Pk(b);c.Ok(a);return c}return a};var faa=function(a){if(Ra(a)){var b=new A8;b.o(a);return b}return a};var C8=function(a){N(this,a,0,-1,null)};t(C8,M);C8.prototype.w=function(){var a=new y;var b=Q(this,1,"");0<b.length&&J(a,1,b);b=T(this,QI,2);null!=b&&a.b(2,b,dJ);(b=Q(this,3,!1))&&F(a,3,b);return A(a)};var gaa=function(a,b){Fi(a,1,b)};var D8=function(a){N(this,a,0,-1,null)};t(D8,M);D8.prototype.w=function(){var a=new y;var b=this.getDeviceId();0<b.length&&J(a,1,b);return A(a)};D8.prototype.getDeviceId=function(){return Q(this,1,"")};var E8=function(a){N(this,a,0,-1,null)};t(E8,M);E8.prototype.w=function(){var a=new y;var b=Q(this,1,"");0<b.length&&J(a,1,b);return A(a)};var haa=function(a,b){Fi(a,1,b)};var F8=function(a){N(this,a,0,-1,iaa)};t(F8,M);var iaa=[1];F8.prototype.w=function(){var a=new y;var b=U(this,QI,1);0<b.length&&K(a,1,b,dJ);return A(a)};var G8=function(a){N(this,a,0,-1,null)};t(G8,M);G8.prototype.w=function(){var a=new y;var b=T(this,QI,1);null!=b&&a.b(1,b,dJ);return A(a)};var H8=function(a){this.b=a};t(H8,w3);g=H8.prototype;g.Jh=sk;g.ed=function(a){a=a[0];var b=a.o,c={};b&&(c["X-Goog-Meeting-Botguardid"]=b);b=new C8;gaa(b,a.A());V(b,2,a);c=new q7("google.rtc.meetings.v1.MeetingDeviceService","CreateMeetingDevice",b,function(a){return I8([SI(a)])},c);4==Q(a,11,0)&&c.Uf(1E4);return c};
g.fd=function(a){var b=a[0].o,c={};b&&(c["X-Goog-Meeting-Botguardid"]=b);b=new G8;V(b,1,a[0]);return new q7("google.rtc.meetings.v1.MeetingDeviceService","UpdateMeetingDevice",b,function(a){return I8([SI(a)])},c)};g.zd=function(){throw Error("Invalid Operation: Meeting Device Remove");};g.gd=function(a){var b=new D8;a=a.ac();Fi(b,1,a);return new q7("google.rtc.meetings.v1.MeetingDeviceService","GetMeetingDevice",b,SI)};
g.Ad=function(a){var b=new E8;haa(b,a.Nk());return new q7("google.rtc.meetings.v1.MeetingDeviceService","ListMeetingDevices",b,function(a){var b=I8;a=new Lh(a);for(var c=new F8;Nh(a)&&!Mh(a);)switch(a.f){case 1:var f=new QI;a.h(f,RI);Ki(c,1,f,QI);break;default:Oh(a)}return b(U(c,QI,1))})};var I8=function(a){return bc(a,function(a){return new y8(JSON.parse(a.ya()))})};var J8=function(a){N(this,a,0,-1,null)};t(J8,M);J8.prototype.w=function(){var a=new y;K8(this,a);return A(a)};var K8=function(a,b){a=Q(a,1,"");0<a.length&&J(b,1,a)};var L8=function(a){N(this,a,0,-1,null)};t(L8,M);L8.prototype.w=function(){var a=new y;var b=T(this,MJ,1);null!=b&&a.b(1,b,WJ);b=T(this,J8,3);null!=b&&a.b(3,b,K8);b=Q(this,4,"");0<b.length&&J(a,4,b);return A(a)};var M8=function(a){N(this,a,0,-1,null)};t(M8,M);M8.prototype.w=function(){var a=new y;var b=Q(this,1,"");0<b.length&&J(a,1,b);return A(a)};var jaa=function(a,b){Fi(a,1,b)};var N8=function(a){N(this,a,0,-1,null)};t(N8,M);N8.prototype.w=function(){var a=new y;var b=T(this,MJ,1);null!=b&&a.b(1,b,WJ);return A(a)};var O8=function(a){this.b=a};t(O8,w3);g=O8.prototype;g.Jh=sk;g.ed=function(a){var b=new L8;V(b,1,a[0]);return new q7("google.rtc.meetings.v1.MeetingSpaceService","CreateMeetingSpace",b,function(a){return[VJ(a)]})};g.fd=function(a){var b=new N8;V(b,1,a[0]);return new q7("google.rtc.meetings.v1.MeetingSpaceService","UpdateMeetingSpace",b,function(a){return[VJ(a)]})};g.zd=function(){throw Error("Invalid Operation: Meeting Space Remove");};
g.gd=function(a){var b=new M8;jaa(b,a.g());return new q7("google.rtc.meetings.v1.MeetingSpaceService","GetMeetingSpace",b,function(a){return[VJ(a)]})};g.Ad=function(a){return this.gd(a)};var P8=function(a,b,c,d,e,f){var h=b3.Ha();e=new e(c3(h,a,b,void 0,!0));f=new A1(h.ab.j(a,b),f);return new f3(a,h.ab.f(a,b),c,d,e,f,h.ab.g(a,b))};var Q8=function(a){N(this,a,0,-1,null)};t(Q8,M);Q8.prototype.w=function(){var a=new y;var b=this.lc();0<b.length&&J(a,1,b);b=Q(this,2,"");0<b.length&&J(a,2,b);b=T(this,J8,3);null!=b&&a.b(3,b,K8);b=Q(this,4,"");0<b.length&&J(a,4,b);b=T(this,R8,5);null!=b&&a.b(5,b,S8);return A(a)};var R8=function(a){N(this,a,0,-1,null)};t(R8,M);R8.prototype.w=function(){var a=new y;S8(this,a);return A(a)};var S8=function(a,b){var c=Q(a,1,"");0<c.length&&J(b,1,c);c=a.getToken();0<c.length&&J(b,2,c)};
R8.prototype.getToken=function(){return Q(this,2,"")};R8.prototype.setToken=function(a){Fi(this,2,a)};Q8.prototype.lc=function(){return Q(this,1,"")};var kaa=function(a,b,c,d){return c3(b3.Ha(),a,b,void 0,!0).u.then(function(a){return T8(a,c,d)})},T8=function(a,b,c){b=laa(b);return maa(a,b,c).then(function(a){return a.ge})},maa=function(a,b,c){var d={};c&&(d["X-Goog-Meeting-Botguardid"]=c);return l8(a instanceof k8?a:new k8("google.rtc.meetings.v1.MeetingSpaceService",a.h),"ResolveMeetingSpace",b,VJ,d)},laa=function(a){var b=new Q8;Fi(b,1,a);return b};var U8=function(a,b,c,d){Q6.call(this,a,b,d);var e=this;this.D=b.ab.Mg("realtime.meetings.call.MeetingCall");this.Ab=new Set;this.o=c;this.lf=Mt(LO(a,W0));this.m=null;this.bb=new s2;this.C=this.bb.b;this.g=null;this.Va=new s2;this.u=this.Va.b;this.ta=null;this.B=new s2;this.tc=new s2;this.sc=this.tc.b;this.dg=new s2;this.Ua=Ut();this.fc=Ut();this.A=this.Hd=null;this.fg=new s2;this.va=this.ma=this.T=this.Z=null;this.uc=!1;this.ob=null;hA(LO(a,jP,!1),function(a){e.ob=a});this.rb=new CA(20);this.dc=
this.j=null;this.P=new gu(3E4);this.h(this.P);this.pb.listen(this.P,"tick",this.gg);this.Id=function(){return Nt("No prerequisite handler")};this.la=null;this.o&&this.Ua.resolve(!0);this.u.then(function(a){e.pb.listen(a,"pb",e.jf);e.jf()})};l(U8,Q6);
U8.prototype.yf=function(){var a=this,b=Q6.prototype.yf.call(this);b.meetingSpace=function(){return a.C.get()&&T1(a.C.get())};b.meetingDevices=function(){return a.u.get()&&T1(a.u.get())};b.recentMeetingOperations=function(){return a.rb.ea()};b.mediaBackendInfo=function(){var b=a.m&&a.m.o();return(b=b&&T(b,RJ,6))&&Q(b,8,"")};return b};
U8.prototype.zf=function(){var a=Q6.prototype.zf.call(this);a.meetingSpace=rk(this.C.get()&&T1(this.C.get()));a.meetingDevices=rk(this.u.get()&&T1(this.u.get()));a.recentMeetingOperations=rk(this.rb.ea());a.endCause=rk(this.T);a.mediaBackendInfo=rk(this.m&&this.m.o()&&T(this.m.o(),RJ,6)&&Q(T(this.m.o(),RJ,6),8,""));return a};
U8.prototype.Yf=function(a,b){var c=this,d=Mt(b);this.T=b;67==b&&this.j&&(d=this.g.search().then(function(a){return(a=a.find(function(a){return a.ac()==c.j}))&&7==eJ(a)?43:b},function(){return b}));d.then(function(b){var d=Mt();c.T=b;c.uc||!a&&!c.j||(W(c.J,"Removing meeting device on disconnect"),d=c.Ja.get()||c.j,d=c.g.Ob(d),Gi(d,4,6),d=X1(c.g,d,2).then(function(){V8(c);c.j=null}));c.la&&c.la.cancel();Xt(d,function(){c.lf.then(function(d){c.dc=hx(d.b);c.f.g.f.b=null;Q6.prototype.Yf.call(c,a,b)})});
d=new T6(b);c.bb.reject(d);c.Va.reject(d);c.fc.reject(d);c.C.get()&&c.C.get().stop();c.u.get()&&c.u.get().stop()})};var W8=function(a,b){a.Ab.add(b);Xt(b,function(){a.Ab.delete(b)});return b};
U8.prototype.resolve=function(a,b){var c=this;if(this.ta)return Nt(X8("Meeting already resolved"));if(this.o&&!b)return Nt(X8("Missing required botguard id"));if(!this.o&&b)return Nt(X8("Botguard id not allowed when logged in"));var d=Y8(this,0,"resolve");if(d)return Nt(d);this.ta=a;b=kaa(this.xa,this.f,a,b);return W8(this,b).then(function(b){var d=b.g();c.m=P8(c.xa,c.f,[d],new B1(MJ,[MJ.prototype.g],[MJ.prototype.o],[],[],A8,[A8.prototype.g],[A8.prototype.o],[],[],faa),O8,"jb");S(c.m.config,8,5E3);
c.h(c.m);c.g=P8(c.xa,c.f,[d],new B1(y8,[y8.prototype.A],[y8.prototype.B],[y8.prototype.ac],[y8.prototype.g],B8,[B8.prototype.Nk],[B8.prototype.Pk],[B8.prototype.ac],[B8.prototype.Ok],eaa),H8,"gb");S(c.g.config,8,5E3);c.h(c.g);c.o&&c.P.start();c.B.resolve(d);var e=c.M;e.h=a;e.g=d;return b},function(b){var d="Resolve code "+a;b instanceof y7&&(d+=", error message: "+b.getMessage());var e=306,k=Z8(b);null!=k&&(e=naa[k]||e,c.o&&(e=$8[k]||e),d=d+(", statusCode: "+k)+(", "+a9(b)));c.rb.add(d);c.D.error(d);
b=new b9(e,b);c.B.reject(b);c.B=new s2;throw b;})};U8.prototype.Of=function(a){var b=this;this.o?this.B.b.then(function(){Q6.prototype.Of.call(b,a)}):Q6.prototype.Of.call(this,a)};
var oaa=function(a){W(a.J,"prejoin() was called");var b=Y8(a,0,"preJoin");if(b)return Nt(b);if(a.o)return Nt(new b9(302,"Anonymous users cannot prejoin"));if(a.A)return a.A.then(function(b){return c9(a,b)});a.A=d9(a,2).then(function(b){if(a.s)return b;c9(a,b);a.Ua.resolve(5==eJ(b));a.fg.resolve(null);return b});return a.A},c9=function(a,b){if(2==eJ(b)){b=a.sc.get();var c=a.j;2!=a.Ja.b&&(a.Ca.resolve(b),a.Ga.resolve(c));e9(a)}else a.P.start()};
U8.prototype.view=function(){var a=this;return(this.A||oaa(this)).then(function(){return a.sessionId.then(function(b){var c=Y8(a,0,"view");if(c)throw c;a.Z||(W(a.J,"Modifying the meeting device as VIEWING"),c=new y8,c.g(a.j),c.he([b]),Gi(c,4,12),a.Z=Yt(X1(a.g,c).then(function(b){b=b[0];f9(a,b);var c=Y8(a,0,"view");if(c)throw c;b=eJ(b);if(12!=b)throw ns(a.J,"Unexpected view state: "+b),new Ub("Unexpected join state: "+b);return b}),function(b){a.Z=null;throw b;}));return a.Z.then(function(b){12==b&&
(a.g.stop(),a.P.start());return b})})})};U8.prototype.connect=function(a,b){var c=this;return this.o&&!a?Nt(new b9(302,"Missing name for anonymous user")):this.o&&!b?Nt(new b9(302,"Missing botguard id for anonymous user")):this.Oc.then(function(){W(c.J,"connect() was called");var d=Y8(c,0,"connect");if(d)return Nt(d);c.lb(1);c.P.stop();return c.A?Rt([c.A,c.Z]).then(function(){return g9(c)}):d9(c,1,a,b).then(function(a){c.Ua.resolve(3==eJ(a));return h9(c,a,q())})})};
U8.prototype.wl=function(a){var b=this;if(this.sessionId.get()==a){var c="Should not update the same session id.";ns(this.J,c);this.D.error(c)}else{c="Modifying the session id: "+a;ps(this.J,c);this.D.info(c);var d=new y8;d.g(this.j);d.he([a]);d=X1(this.g,d).then(function(a){return f9(b,a[0])},function(){c="Failed to update the session id: "+a;ns(b.J,c);b.D.error(c)});W8(this,d)}};
U8.prototype.jf=function(){var a=this.u.get(),b=a.get(),c=b.filter(function(a){return Q(a,5,!1)||10==eJ(a)}).map(function(a){return a.ac()});S6(this,c);if(2==this.getState()){var d=this.Ja.get();if(a=d&&a.o(d))switch(eJ(a)){case 7:i9(this,3952);this.disconnect(43);break;case 8:this.disconnect(paa());break;case 2:case 3:case 5:case 9:case 12:break;case 1:break;default:this.disconnect(34)}}W(this.J,b.length+" raw devices; "+c.length+" joined.")};
var d9=function(a,b,c,d){var e=new y8;return Yt(Rt([a.B.b,a.sessionId]).then(function(){var f=a.B.b.get(),h=a.sessionId.get();e.B(f);Gi(e,4,b);e.he([h]);a.o&&(Fi(e,2,c),e.o=d);return a.lf}).then(function(b){var c=a.B.b.get();qaa(a,b,c);c=W8(a,a.g.add(e));c.then(function(){a.tc.resolve(b.uk)});return c}).then(function(b){b=b[0];a.j=b.ac();var c=a.j.split("/")[3]||a.K;a.o&&(a.M.j=c,a.dg.resolve(c));f9(a,b);return b},a.eg,a),function(a){throw X8(a);})};
U8.prototype.eg=function(a){V8(this);os(this.J,"add device failed, moving back to INITIALIZED state");this.lb(0);this.A=null;var b=325,c=Z8(a);a instanceof Ht?(b=219,this.D.error("Device add operation has been cancelled.")):null!=c&&(b=j9[c]||b,this.o&&(b=$8[c]||b),c="Device add error: "+a9(a),this.D.error(c));throw new b9(b,a);};
var g9=function(a){return Yt(a.sessionId.then(function(b){ps(a.J,"Modifying the meeting device as JOINED");var c=new y8;c.g(a.j);c.he([b]);Gi(c,4,1);return X1(a.g,c)}).then(function(b){f9(a,b[0]);return h9(a,b[0],q())},function(b){var c=303,d=Z8(b);null!=d&&(c=j9[d]||c,d="Device modify error: "+a9(b),a.D.error(d));throw new b9(c,b);}),function(b){return k9(a,X8(b))})},h9=function(a,b,c){var d=Y8(a,1,"checkJoinState");if(d)return k9(a,d);W(a.J,"checking the join state.");switch(eJ(b)){case 1:return raa(a,
b),saa(a);case 3:if(6E5<=q()-c)return k9(a,new b9(234));a.la=ku(5E3).then(function(){return taa(a,c)},function(){k9(a,new b9(219))});return a.la;case 4:return k9(a,new b9(233));case 11:return k9(a,new b9(241));case 9:return a.Id(a.m,a.g,l9(a)).then(function(){return g9(a)},function(){return k9(a,new b9(325))});default:return b="Unexpected join state: "+eJ(b),ns(a.J,b),k9(a,b)}},raa=function(a,b){var c=T(b,TI,12);c&&Q(c,1,"")==b.ac()&&(a.I("Bb"),w(a.b.A.concat(),function(a){"a"==a.fa().X()&&a.Hf()}),
b=a.g.Ob(b),VI(b,new TI),Yt(X1(a.g,b),function(){ns(a.J,"Failed to clear AudioMuteRequest")}))},taa=function(a,b){return a.g.search().then(function(c){c=c.find(function(b){return b.ac()==a.j});f9(a,c);return h9(a,c,b)},function(b){var c=303,e=Z8(b);null!=e&&(c=j9[e]||c);return k9(a,new b9(c,b))})},saa=function(a){e9(a);var b=Ut();R6(a,b,a.sc.get(),a.j);return b.U},e9=function(a){a.bb.resolve(a.m);a.Va.resolve(a.g);a.m.start();a.g.start()};
U8.prototype.Gj=function(){return baa(this.Ja.get(),this.b.A.concat().map(function(a){return a.fa()}),this.b)};var k9=function(a,b){os(a.J,"connect failed, moving back to DISCONNECTED state");a.lb(4);if(a.j){var c=new y8;c.g(a.j);Gi(c,4,6);Xt(X1(a.g,c,2),function(){V8(a)});a.j=null;a.A=null}return Nt(X8(b))},qaa=function(a,b,c){var d=function(){return uaa(a,b,c)};a.ma=bt(Re(),"beforeunload",d);a.va=bt(Re(),"unload",d)},V8=function(a){null!=a.ma&&(lt(a.ma),a.ma=null);null!=a.va&&(lt(a.va),a.va=null)};
U8.prototype.hi=function(a){Q6.prototype.hi.call(this,a);a=sY(a);this.ta&&S(a,13,this.ta);var b=this.B.b.get();b&&S(a,14,b)};var uaa=function(a,b,c){V8(a);var d={meetingToken:hx(b.b)||a.dc};b1(b.g.replace("${path}",c+"/devices:close"),Fu(d),"application/json");a.uc=!0;b=function(){a.ob&&g7(a.ob,a).forEach(function(b){var c=a.f.g,d=fq(c.o,"/"+c.j+"/"+c.m+"/media_sessions/log");c.g&&(d=cq(d,"key",c.g));d1(c,b);b1(d,b.ya(),"application/json+protobuf")})};a.disconnect(null!=a.T?a.T:63).then(b,b)};
U8.prototype.gg=function(){this.o?this.m.search():this.g.search()};
var Y8=function(a,b,c){return a.getState()!=b?(os(a.J,"Unexpected state while in "+c+": "+a.getState()+" != "+b),new b9(302,new U6(a.getState()))):null},X8=function(a){return a instanceof b9||a instanceof Ht?a:new b9(302,a)},Z8=function(a){return a instanceof y7?a.b:null},vaa=function(a){var b="";a.f&&(b+=" exception name: "+a.f.name,b+=" exception message: "+a.f.message);a.h&&(b+=" status: "+a.h.ya());a.ge&&(a=a.ge,fb(a)?(a=a.map(function(a){return a instanceof M?a.ya():Rr(a)}),b+=" response: "+
Fu(a)):b=a instanceof M?b+(" response: "+a.ya()):b+(" response: "+Rr(a)));return b},a9=function(a){return a instanceof y7?vaa(a):Rr(a)},waa=function(a,b){a.Id=b},f9=function(a,b){b&&(a.Hd=b,a.fc.resolve(!0))},l9=function(a){return a.g&&a.j&&a.g.o(a.j)||a.Hd};U8.prototype.ja=function(){this.Ab.forEach(function(a){a.cancel()});Q6.prototype.ja.call(this)};
var paa=function(){var a=Y7("ListMeetingDevices",1)[0]||Y7("UpdateMeetingDevice",1)[0];switch(a&&a.resp.code){case 400:return 114;case 401:return 113;case 403:return 115;default:return 111}},i9=function(a,b){LO(a.xa,kP).then(function(a){return MT(a,b)})},b9=function(a,b){Ub.call(this,"startupCode: "+a+", error = "+Rr(b));this.rl=a;this.jc=b};l(b9,Ub);
var m9={},naa=(m9[404]=217,m9[401]=300,m9[400]=327,m9[10001]=328,m9[-1]=329,m9[0]=329,m9[30006]=329,m9),n9={},j9=(n9[400]=324,n9[429]=216,n9[10001]=330,n9[-1]=331,n9[0]=331,n9[30006]=331,n9),o9={},$8=(o9[403]=200,o9);var p9=ls("realtime.meetings.call.StreamingSessionUtil"),xaa=function(a,b){return 1==a?b:null},r9=function(a,b){var c=(b=b&&T(b,RJ,6))&&U(b,jK,9);return(c=c&&(c.filter(function(b){return Q(b,3,0)==a})[0]||null))?c:(b=xaa(a,b&&T(b,dK,2)))&&new q9(b)},s9=function(a,b){var c=l9(b);c=c&&U(c,YI,16)||[];if(c.some(function(a){return 1==Q(a,2,0)}))return!0;b=(b=b.m)&&b.o();b=(a=r9(a,b))&&a.Ia();var d=2==b||3==b?Q(a,2,""):null;return!!d&&!c.some(function(a){return a.zc()==d&&2==Q(a,2,0)})},t9=function(a,b){var c=
b.m;if(!c)return Nt(Error("No spaces collection"));var d=b.g;if(!d)return Nt(Error("No devices collection"));var e=l9(b);if(!e)return Nt(Error("No local device"));var f=function(a){var b=new YI;Fi(b,1,a);Gi(b,2,2);return b};c=c.o();c=(a=r9(a,c))&&a.Ia();var h=2==c||3==c?Q(a,2,""):null,k=!1,n=!1,u=[];(U(e,YI,16)||[]).forEach(function(a){n|=1==Q(a,2,0);k|=a.zc()==h;u.push(f(a.zc()))});h&&!k&&(n=!0,u.push(f(h)));return n?(e=d.Ob(e.ac()),Ji(e,16,u),i9(b,3852),X1(d,e).then(function(){b.u.then(function(a){return a.Re()});
W(p9,"ack: Modified device");i9(b,3831);return!0},function(a){W(p9,"ack: Failed to modify device: "+JSON.stringify(a));i9(b,3832);throw a;})):Mt(!1)},yaa=function(a,b,c){s9(a,b)&&c(b);var d=ct(b.m,"pb",function(){s9(a,b)&&c(b)});b.onDisconnect.then(function(){return lt(d)});return d},zaa=function(a){waa(a,function(){return Rt(u9.map(function(b){return t9(b,a).then(function(a){if(!a)throw Error("Prerequisite not handled");})}))});a.onConnect.then(function(){u9.forEach(function(b){return yaa(b,a,function(){return t9(b,
a)})})})},u9=[1,4],Aaa=new Map([[0,0],[2,2],[3,3],[1,1]]),q9=function(a){jK.call(this);var b=Aaa.get(a.Dg());Gi(this,1,b);this.Aa(a.zc());b=a.Cg();Gi(this,3,b);b=T(a,eK,4);V(this,4,b);a=a.Bg();Fi(this,5,a)};l(q9,jK);var v9=function(a,b,c,d,e){this.l=tb("mr.mirror.hangouts.HangoutCallService");this.f=a;this.h=d;this.C=e;this.s=new rB(this);this.b=null;this.o=!1;this.A=new Tb;this.j=new Tb;this.B=!1;this.u=new Tb;this.m=this.g=null;this.F=this.L=!1;Baa(this,b,c)},B9=function(a,b){a.l.info("Connecting to hangout");setTimeout(function(){a.j.reject(Error("Timed out before connecting"))},3E4);a.A.b.then(function(b){Ab(a.l,"Call ready.");a.o=b.Bc;if(a.o)b=Caa(a,b);else{var c=b.fb,e=b.ee;b=a.f.get(l1);if(e)Ab(a.l,"Already resolved id: "+
e),b=Mt(E3(a.f,b,[e],C3(),y3,"$a"));else{Ab(a.l,"resolving hangout id: "+c);e=a.f;c=c.split("@");var f=new MF;S(f,5,!0);if(-1!=c[1].indexOf(".")){var h=new JF;S(h,1,c[0]);S(h,2,c[1]);V(f,4,h)}else h=new NE,S(h,1,c[1]),S(h,2,c[0]),V(f,2,h);b=m7(e,b,f)}b=a.b.connect(b)}return b}).then(null,function(b){w9(a,"Connect error",b);if(b.jc){for(var c="",e=ma(Object.entries(e6)),f=e.next();!f.done;f=e.next()){var h=ma(f.value);f=h.next().value;h=h.next().value;if(h==b.rl){c=f+"("+h+")";break}}a.l.error("Call connect error startupCode: "+
c);b=b.jc}c="SESSION_FAILURE";b.response&&fb(b.response)&&0<b.response.length&&"chrrp"==Oi(b.response).F&&(c="HANGOUT_INVALID");a.h(new Zg(c));a.j.reject(b);x9(a,16)});return a.j.b.then(function(){return a.b.Ja}).then(function(c){y9(a,b,c);if(a.o)return z9(a,c);A9(a,c);Daa(a,a.b.j.get())})},Eaa=function(a,b){return new Promise(function(c,d){a.b.Ja.then(function(e){y9(a,b,e);if(!a.L){if(a.o){z9(a,e).then(c,d);return}A9(a,e)}c()},d)})},C9=function(a,b){a.b.b.A.concat().forEach(function(a){"a"==a.fa().X()&&
(b?a.Hf():"st"!=a.b&&BT(a,!1))})},Faa=function(a){return a.j.b.then(function(){s6(a.b.b)}).catch(function(){if(a.b)s6(a.b.b);else throw Error("call was never created");})};v9.prototype.stop=function(){x9(this,0);return this.u.b};v9.prototype.Ra=function(){var a=this;this.F=!0;this.s.Ra();this.g&&this.g.Ra();this.m&&this.m.Ra();this.A.reject(Error("Disposed"));this.j.reject(Error("Disposed"));setTimeout(function(){a.u.reject(Error("Timed out before stopping"))},1E4);this.b&&this.b.Ra()};
var Baa=function(a,b,c){a.h(new Zg("REFRESH_AUTH"));b.then(function(){return c}).then(function(b){if(!a.F){Ab(a.l,"Creating call for hangout id: "+b.fb+" resolvedId: "+b.ee+" conferenceMode: "+b.nd);var c=nS();void 0!=b.nd&&(c=zS(c,b.nd));a.b=Gaa(a,b,c);a.b.onConnect.then(a.D,null,a);a.b.onDisconnect.then(a.ka,function(b){v(a.l,"Error on disconnect: "+b)},a);a.A.resolve(b)}})},Gaa=function(a,b,c){b.Bc?(b=new U8(a.f,a.f.get(nP),!1),b.Of(c),b.u.then(a.M,null,a),zaa(b)):(b=new $6(a.f,a.f.get(nP),c),
b.g.then(a.P,null,a),b.m.then(a.T,null,a));return b},Caa=function(a,b){return a.b.resolve(b.fb).then(function(){return a.b.connect()})},y9=function(a,b,c){if(0<b.getAudioTracks().length)if(a.g){var d=a.g;d.Z=b;d.g()}else a.g=new q1(a.f,new HP(c,"1","a"),b),yT(a.g),a.b.Wg(a.g);a.m?(a=a.m,a.Z=b,a.g()):(c=new HP(c,"2","v","sc"),GP(c,[new EP(0,0,1,1)])&&c.I("h"),a.m=new q1(a.f,c,b),yT(a.m),a.b.Wg(a.m))},z9=function(a,b){var c=new aK;Fi(c,1,b);var d=a.b.C.get();a=new RJ;V(a,1,c);var e=d.Ob();V(e,6,a);
return new Promise(function(a,b){X1(d,e).then(a,b)})},A9=function(a,b){var c=new PE;S(c,1,b);b=new SE;V(b,17,c);b.Y(a.b.fb.get());X1(a.b.j.get(),b)},Daa=function(a,b){a.s.listen(b,"pb",function(b){a.b.Ja.then(function(c){a.L=Array.prototype.some.call(b.target.get(),function(a){return a.Bf()&&O(a.Bf(),1)==c})})})};v9.prototype.M=function(a){this.s.listen(a,"pb",this.K)};
v9.prototype.K=function(a){var b=this;a.b.forEach(function(a){a.ac()==b.b.Ja.get()&&(7==eJ(a)?x9(b,43):T(a,TI,12)&&Q(T(a,TI,12),1,"")&&b.b.b.A.concat().forEach(function(c){"a"==c.fa().X()&&(c.Hf(),b.h(new Zg("STATUS_RESPONSE",{mute:!0})),b.C(!0),c=b.b.u.get().Ob(a),VI(c,new TI),Yt(X1(b.b.u.get(),c),function(a){w9(b,"Failed to clear AudioMuteRequest",a)}))}))})};v9.prototype.P=function(a){var b=this;this.s.listen(a,"pb",function(a){Haa(b,a)});this.s.listen(a,"rb",function(a){D9(b,a)})};
var Haa=function(a,b){var c=b.target;Ab(a.l,function(){return"Participants updated: "+c.get().filter(function(a){return Q(a,18,!1)}).map(function(a){return O(a,4)}).join(", ")});!a.B&&2>c.get().length&&(a.h(new Zg("HANGOUT_INACTIVE")),x9(a,61))};v9.prototype.T=function(a){var b=this;this.s.listen(a,"pb",function(a){Iaa(b,b.b,a)});this.s.listen(a,"rb",function(a){D9(b,a)})};
var Iaa=function(a,b,c){for(var d={},e=0;e<c.b.length;d={source:d.source},e++)d.source=c.b[e],d.source.S()==b.Ja.get()&&T(d.source,KG,6)&&O(T(d.source,KG,6),1)&&b.b.A.concat().forEach(function(b){return function(c){c.fa().getId()==b.source.sa()&&(c.Hf(),a.h(new Zg("STATUS_RESPONSE",{mute:!0})),a.C(!0))}}(d))},D9=function(a,b){a.l.error("Failure in collection: "+b.reason);a.j.reject(b.reason);x9(a,3)};v9.prototype.D=function(){this.l.info("Call connected");this.h(new Zg("SESSION_START_SUCCESS"));this.j.resolve(void 0)};
v9.prototype.ka=function(a){this.h(new Zg("SESSION_END"));var b="",c;for(c in UR)if(UR[c]==a){b=c+"("+a+")";break}this.l.info("Call ended with endcause: "+b);0!=a&&61!=a&&16!=a&&this.h(new Zg("SESSION_FAILURE"))};
var x9=function(a,b){a.l.info("Stopping call with end Cause: "+b);a.B?a.l.info("Ignore stop, already stopping."):(a.B=!0,a.b?a.b.disconnect(b).then(function(b){Ab(a.l,"Call disconnected with endCause: "+b);a.u.resolve(void 0)}):a.u.resolve(void 0))},w9=function(a,b,c){c instanceof Error?a.l.error(b,c):gb(c)?a.l.error(function(){return b+": "+JSON.stringify(c)}):ib(c)?a.l.error(b+": "+JSON.stringify(c)):a.l.error(b+": "+c)};var E9=function(a){UT.call(this,a);VT(this,4865)};l(E9,UT);g=E9.prototype;g.Yh=function(){var a=Ut();chrome.system.cpu.getInfo(function(b){a.resolve(new hB(0,b))});return a.U};
g.Zh=function(){function a(a){Ag(10);if(void 0==c)rg("mr.mirror.hangouts.HangoutsService").then(function(a){if(a=a.b)a=a.h.mediaSource,-1!=a.indexOf(":tab:")&&(a=a.split(":"),chrome.processes.getProcessIdForTab(parseInt(a[a.length-1],10),function(a){chrome.runtime.lastError||(c=a)}))});else{var d=a[c];if(d){var f=0,h=0,k=0,n;for(n in a){var u=a[n];"browser"==u.type?h=u.cpu:"gpu"==u.type?k=u.cpu:"extension"==u.type&&u.title==chrome.runtime.getManifest().name&&(f=u.cpu)}b({tabCpuUsage:d.cpu,browserCpuUsage:h,
gpuCpuUsage:k,pluginCpuUsage:f})}}}if(!chrome.processes)return null;var b=Ya,c;return{onMessage:{addListener:function(c){b=c;chrome.processes.onUpdated.addListener(a)}},disconnect:function(){chrome.processes.onUpdated.removeListener(a);b=Ya}}};g.Og=function(){return F9()};g.ai=function(){return F9()};g.bi=function(){return F9()};g.ci=function(){return F9()};var F9=function(){return Nt(new hB(7,"This method is not intended to be implemented."))};var Jaa={TAB:0,Ri:1},G9=function(a){Rb("MediaRouter.Hangouts.Start.Success",a,Jaa)};var H9=function(a,b,c,d,e,f){Cm.call(this,"HangoutsRouteController",a,b);this.f=new mojo.Binding(mojo.HangoutsMediaRouteController,this);this.j=c;this.u=d;this.b.title=this.u.description;this.b.can_mute=!0;this.b.is_muted=e;this.b.hangouts_extra_data=new mojo.HangoutsMediaStatusExtraData({local_present:f});Dm(this)};l(H9,Cm);H9.prototype.s=function(){Cm.prototype.s.call(this);this.f.close()};H9.prototype.m=function(){this.j.g=null};H9.prototype.ie=function(a){this.j.ie(a)&&(this.b.is_muted=a,Dm(this))};
H9.prototype.setMute=H9.prototype.ie;H9.prototype.wh=function(a){this.f.bind(a);this.f.setConnectionErrorHandler(this.o.bind(this))};H9.prototype.connectHangoutsMediaRouteController=H9.prototype.wh;H9.prototype.Ci=function(a){this.j.Ci(a)&&(this.b.hangouts_extra_data.local_present=a);Dm(this)};H9.prototype.setLocalPresent=H9.prototype.Ci;var I9=function(a,b,c){Tg.call(this,a);this.P=b;this.M=c;this.l=tb("mr.mirror.hangouts.HangoutSession");this.D=rx(a.id);this.A=new Tb;this.f=!1;this.m=!0;this.j=this.B=null;this.o=new Tb;this.F=this.K=this.C=null;Kaa(this);this.g=this.b=null};l(I9,Tg);
I9.prototype.start=function(a){var b=this;Ab(this.l,"Starting new hangouts mirror session.");this.B=a;if(this.b)return Promise.reject(Error("Mirroring already started"));if(this.j)return Promise.reject(Error("Session permanently stopped"));this.K=new Fb("MediaRouter.Hangouts.Session.Launch");this.b=new v9(this.P,this.M,this.o.b,this.s.bind(this),this.T.bind(this));B9(this.b,this.B).then(function(){Ab(b.l,"Call connected");b.s(new Zg("SESSION_START_SUCCESS"));b.K.b();b.K=null;b.F=new Lb("MediaRouter.Hangouts.Session.Length");
b.A.resolve(b)},function(a){b.A.reject(a);b.stop()});return this.A.b};var Laa=function(a){if(!a.b||a.j)return Promise.resolve();Ab(a.l,"Resetting session call.");return a.b.stop().then(function(){if(a.j)return Promise.resolve();a.f=!1;a.o=new Tb;a.b.Ra();a.b=new v9(a.P,a.M,a.o.b,a.s.bind(a),a.T.bind(a));a.B.getTracks().forEach(function(a){a.enabled=!0});return B9(a.b,a.B).then(function(){Ab(a.l,"Reset call connected")},function(){a.stop()})})};g=I9.prototype;g.tl=function(){return!0};
g.xl=function(a){var b=this;return new Promise(function(c,d){b.b?Eaa(b.b,a).then(function(){b.B=a;c()},d):d(Error("Mirroring was never started"))})};
g.stop=function(){var a=this;Ab(this.l,"Stopping hangouts mirror session.");this.A.reject(Error("Session stop requested."));this.F&&(this.F.b(),this.F=null);if(!this.b)return Promise.resolve();if(this.j)return this.j;this.A.reject(Error("Stopped"));this.o.reject(Error("Stopped"));var b=function(){try{a.D.Ra()}catch(c){a.l.error("Error while disposing message port",c)}try{a.b.Ra()}catch(c){a.l.error("Error while disposing call service",c)}a.g&&(a.g.Ra(),a.g=null)};return this.j=new Promise(function(c,
d){setTimeout(function(){b();d(Error("Timed out before stopping"))},1E4);a.b.stop().then(function(){b();c()}).catch(function(a){b();d(a)})})};g.ie=function(a){if(!this.b)return!1;this.f=a;C9(this.b,a);return!0};g.Ci=function(a){if(!this.C)return this.l.error("Cannot set conference mode from controller: authReadyMessageData_ is null."),!1;if(!a==this.m)return!1;var b=Object.assign({},this.C);b.nd=!a;J9(this,b);return!0};
var J9=function(a,b){a.m=b.nd;a.l.info("Updating conference mode to "+a.m);var c=a.f;Laa(a).then(function(){a.f=c;a.b&&C9(a.b,c);a.o.resolve(b)})},Kaa=function(a){a.D.onMessage=function(b){if(Ra(b)){b=JSON.parse(b);var c=b.clientId;if(c){"client_connect"==b.type?a.s({message:{sessionId:"castouts"},clientId:c,type:"new_session"}):"v2_message"==b.type&&"STOP"==b.message.type&&a.s({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;a.C=b;void 0!=b.nd&&b.nd!=a.m?(Ab(a.l,"received auth ready message with new conference mode"),J9(a,b)):(Ab(a.l,"received auth ready message"),b.nd=a.m,a.o.resolve(b));break;case "LOCAL_PRESENT":Ab(a.l,"local present message");a.s(b);break;case "MUTE":b.data&&(a.f=!!b.data.mute,a.b&&C9(a.b,a.f));break;case "STATUS_RESPONSE":Ab(a.l,"route status response message");b.data&&(a.f=!!b.data.mute);break;case "STATUS_REQUEST":Ab(a.l,"route status request message");a.s(new Zg("STATUS_RESPONSE",{routeDescription:a.h.description,
mute:a.f,local:!a.m}));break;default:throw Error("Unknown message type: "+b.type);}}};I9.prototype.s=function(a){Ab(this.l,function(){return"sending message to mrp: "+JSON.stringify(a)});this.D.sendMessage(a,Maa)};I9.prototype.createMediaRouteController=function(a,b){var c=this;return this.A.b.then(function(){if(c.j)throw Error("Session already stopped");if(c.g)throw Error("Controller already exists");c.g=new H9(a,b,c,c.h,c.f,!c.m)})};
I9.prototype.T=function(a){this.f=a;if(this.g){var b=this.g;b.b.is_muted!=a&&(b.b.is_muted=a,Dm(b))}};var Maa={channelType:"mesi"};var K9=function(a){this.b=a};K9.prototype.onError=function(a,b){401==b.b&&this.b(new Zg("REFRESH_AUTH"))};K9.prototype.onRequest=Ya;K9.prototype.f=Ya;var L9=function(a){Y.call(this);this.b=a||window;this.f=ct(this.b,"resize",this.j,!1,this);this.g=Qe(this.b||window)};t(L9,Y);L9.prototype.ja=function(){L9.ra.ja.call(this);this.f&&(lt(this.f),this.f=null);this.g=this.b=null};L9.prototype.j=function(){var a=Qe(this.b||window),b=this.g;a==b||a&&b&&a.width==b.width&&a.height==b.height||(this.g=a,this.I("resize"))};var M9=function(a){Y.call(this);a?(a=a.b,a=a.parentWindow||a.defaultView):a=window;this.b=a;this.j=1.5<=this.b.devicePixelRatio?2:1;this.g=p(this.m,this);this.f=this.b.matchMedia?this.b.matchMedia("(min-resolution: 1.5dppx), (-webkit-min-device-pixel-ratio: 1.5)"):null};t(M9,Y);M9.prototype.start=function(){this.f&&this.f.addListener(this.g)};M9.prototype.m=function(){var a=1.5<=this.b.devicePixelRatio?2:1;this.j!=a&&(this.j=a,this.I("Cb"))};
M9.prototype.ja=function(){this.f&&this.f.removeListener(this.g);M9.ra.ja.call(this)};var N9=function(a,b){Hs.call(this);this.m=a;if(b){if(this.j)throw Error("[fava.component.DomServices] Owner document already initialized");this.g=(this.j=b)?new Ue(Se(b)):Vb||(Vb=new Ue);this.b=new L9(Re(b));this.b.L=this.m.o;this.f=new M9(this.g);this.f.start()}};t(N9,Hs);var Naa=function(a){var b=new N9(a,document);a.registerService(BO,b)};N9.prototype.ja=function(){this.g=this.j=null;this.b&&(this.b.Ra(),this.b=null);Js(this.f);this.f=null};var O9=function(a){Y.call(this);var b=this;this.b=null;this.f=Ut();this.g=this.f.U;LO(a,kP).then(function(a){return z_(a,{Lf:function(a){null!=b.b&&(a=sY(a),S(a,5,b.b))},Mf:function(){}})})};l(O9,wP);var Oaa=function(a){JO(a,oP)||wC(a,oP,function(a){return new O9(a)})},N6=function(a){X.call(this,"Db");this.K=a};l(N6,X);var P9=function(a){UT.call(this,a);this.b=new sT("realtime.media.api.webrtc.HangoutExtensionServiceImpl");VT(this,4864)};l(P9,UT);P9.prototype.Yh=function(){var a={method:"cpu.getInfo"};qB?a=nB(a,!1):(qB=!0,a=oB(a));return a.then()};P9.prototype.Zh=function(){return pB()};
var Q9=function(a,b,c){c=void 0===c?!0:c;var d=oB({method:"logging.setMetadata",metaData:[{key:"sessionId",value:b},{key:"url",value:window.location.href}]}).then(function(){a.b.b.m(oT,"Extension logging setMetadata succeeded for "+b)},function(c){a.b.b.m(oT,"Extension loggings setMetadata failed for session: "+b+(", error: "+c.value))});return c?Yt(d,function(){return Q9(a,b,!1)}):d};P9.prototype.ai=function(a){var b=this;return Q9(this,a).then(function(){return R9(b)})};
P9.prototype.bi=function(a,b){var c=this;if(b)return oB({method:"logging.stopAndUpload"}).then(function(a){c.b.info("logging.stopAndUpload succeeded with result="+JSON.stringify(a.value))},function(a){tT(c.b,"logging.stopAndUpload failed with error="+a.value);throw a;});this.Og(!1);b=oB({method:"logging.stop"}).then(function(){c.b.info("logging.stop succeeded");if(a)return ao(42)?oB({method:"logging.store",logId:a}):oB({method:"logging.stop"})});Yt(b,function(a){return tT(c.b,"logging.stop failed with error="+
a)});return b};P9.prototype.Og=function(a){var b=this;return a?oB({method:"logging.startRtpDump",incoming:!0,outgoing:!0}).then(function(a){b.b.info("logging.startRtpDump succeeded");return a},function(a){b.b.info("logging.startRtpDump failed with error="+a);throw a;}):oB({method:"logging.stopRtpDump",incoming:!0,outgoing:!0}).then(function(a){b.b.info("logging.stopRtpDump succeeded");return a},function(a){b.b.info("logging.stopRtpDump failed with error="+a);throw a;})};
var R9=function(a,b){b=void 0===b?!0:b;var c=Mt(oB({method:"logging.start"}));return b?Yt(c,function(){return R9(a,!1)}):c};P9.prototype.ci=function(){return Mt(oB({method:"logging.uploadOnRenderClose"}))};var S9=function(a){UT.call(this,a);VT(this,4866)};l(S9,UT);g=S9.prototype;g.Yh=function(){return T9(this,"cpu.getInfo")};g.Zh=function(){return null};g.Og=function(){return T9(this,"enableRtpHeaderDump")};g.ai=function(){return T9(this,"logging.start")};g.bi=function(){return T9(this,"logging.stop")};g.ci=function(){return T9(this,"logging.uploadOnRenderClose")};var T9=function(a,b){return Nt(new hB(6,a.constructor.name+":  Method: "+b+"; Type: expected failure; Explanation: Operation ignored, no Hangout Extension expected."))};function U9(a,b){b=void 0===b?Paa:b;JO(a,qP)||wC(a,qP,function(){return new PT(a,b(a))})}function Paa(a){return"Chrome"===hU()?new P9(a):new S9(a)};var V9=function(a){N(this,a,"hc:rc",-1,Qaa)};t(V9,M);var Qaa=[7];V9.prototype.w=function(){var a=new y;W9(this,a);return A(a)};
var W9=function(a,b){var c=O(a,1);null!=c&&E(b,1,c);c=O(a,2);null!=c&&J(b,2,c);c=O(a,3);null!=c&&J(b,3,c);c=O(a,4);null!=c&&J(b,4,c);c=O(a,5);null!=c&&G(b,5,c);c=O(a,6);null!=c&&J(b,6,c);c=U(a,X9,7);0<c.length&&K(b,7,c,Y9);c=O(a,8);null!=c&&C(b,8,c);c=O(a,9);null!=c&&G(b,9,c);c=O(a,10);null!=c&&J(b,10,c);c=O(a,11);null!=c&&J(b,11,c);c=O(a,12);null!=c&&J(b,12,c);c=O(a,13);null!=c&&J(b,13,c)},X9=function(a){N(this,a,0,-1,null)};t(X9,M);X9.prototype.w=function(){var a=new y;Y9(this,a);return A(a)};
var Y9=function(a,b){var c=O(a,1);null!=c&&J(b,1,c);c=O(a,2);null!=c&&J(b,2,c);c=O(a,3);null!=c&&C(b,3,c);c=O(a,4);null!=c&&E(b,4,c)};Ti("hc:rc",V9);V9.prototype.ba=function(){return O(this,3)};V9.prototype.Y=function(a){S(this,3,a)};V9.prototype.lc=function(){return O(this,12)};var Z9=function(a){N(this,a,"hc:rcs",-1,Raa)};t(Z9,M);var Raa=[2];Z9.prototype.w=function(){var a=new y;var b=T(this,V9,1);null!=b&&a.b(1,b,W9);b=P(this,2);0<b.length&&ri(a,2,b);return A(a)};Ti("hc:rcs",Z9);var $9=function(){this.f=64;this.b=Array(4);this.j=Array(this.f);this.g=this.h=0;this.reset()};t($9,$T);$9.prototype.reset=function(){this.b[0]=1732584193;this.b[1]=4023233417;this.b[2]=2562383102;this.b[3]=271733878;this.g=this.h=0};
var a$=function(a,b,c){c||(c=0);var d=Array(16);if(Ra(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.b[0];c=a.b[1];e=a.b[2];var f=a.b[3];var h=b+(f^c&(e^f))+d[0]+3614090360&4294967295;b=c+(h<<7&4294967295|h>>>25);h=f+(e^b&(c^e))+d[1]+3905402710&4294967295;f=b+(h<<12&4294967295|h>>>20);h=e+(c^f&(b^c))+d[2]+606105819&4294967295;e=f+(h<<17&4294967295|h>>>15);h=c+(b^e&
(f^b))+d[3]+3250441966&4294967295;c=e+(h<<22&4294967295|h>>>10);h=b+(f^c&(e^f))+d[4]+4118548399&4294967295;b=c+(h<<7&4294967295|h>>>25);h=f+(e^b&(c^e))+d[5]+1200080426&4294967295;f=b+(h<<12&4294967295|h>>>20);h=e+(c^f&(b^c))+d[6]+2821735955&4294967295;e=f+(h<<17&4294967295|h>>>15);h=c+(b^e&(f^b))+d[7]+4249261313&4294967295;c=e+(h<<22&4294967295|h>>>10);h=b+(f^c&(e^f))+d[8]+1770035416&4294967295;b=c+(h<<7&4294967295|h>>>25);h=f+(e^b&(c^e))+d[9]+2336552879&4294967295;f=b+(h<<12&4294967295|h>>>20);h=
e+(c^f&(b^c))+d[10]+4294925233&4294967295;e=f+(h<<17&4294967295|h>>>15);h=c+(b^e&(f^b))+d[11]+2304563134&4294967295;c=e+(h<<22&4294967295|h>>>10);h=b+(f^c&(e^f))+d[12]+1804603682&4294967295;b=c+(h<<7&4294967295|h>>>25);h=f+(e^b&(c^e))+d[13]+4254626195&4294967295;f=b+(h<<12&4294967295|h>>>20);h=e+(c^f&(b^c))+d[14]+2792965006&4294967295;e=f+(h<<17&4294967295|h>>>15);h=c+(b^e&(f^b))+d[15]+1236535329&4294967295;c=e+(h<<22&4294967295|h>>>10);h=b+(e^f&(c^e))+d[1]+4129170786&4294967295;b=c+(h<<5&4294967295|
h>>>27);h=f+(c^e&(b^c))+d[6]+3225465664&4294967295;f=b+(h<<9&4294967295|h>>>23);h=e+(b^c&(f^b))+d[11]+643717713&4294967295;e=f+(h<<14&4294967295|h>>>18);h=c+(f^b&(e^f))+d[0]+3921069994&4294967295;c=e+(h<<20&4294967295|h>>>12);h=b+(e^f&(c^e))+d[5]+3593408605&4294967295;b=c+(h<<5&4294967295|h>>>27);h=f+(c^e&(b^c))+d[10]+38016083&4294967295;f=b+(h<<9&4294967295|h>>>23);h=e+(b^c&(f^b))+d[15]+3634488961&4294967295;e=f+(h<<14&4294967295|h>>>18);h=c+(f^b&(e^f))+d[4]+3889429448&4294967295;c=e+(h<<20&4294967295|
h>>>12);h=b+(e^f&(c^e))+d[9]+568446438&4294967295;b=c+(h<<5&4294967295|h>>>27);h=f+(c^e&(b^c))+d[14]+3275163606&4294967295;f=b+(h<<9&4294967295|h>>>23);h=e+(b^c&(f^b))+d[3]+4107603335&4294967295;e=f+(h<<14&4294967295|h>>>18);h=c+(f^b&(e^f))+d[8]+1163531501&4294967295;c=e+(h<<20&4294967295|h>>>12);h=b+(e^f&(c^e))+d[13]+2850285829&4294967295;b=c+(h<<5&4294967295|h>>>27);h=f+(c^e&(b^c))+d[2]+4243563512&4294967295;f=b+(h<<9&4294967295|h>>>23);h=e+(b^c&(f^b))+d[7]+1735328473&4294967295;e=f+(h<<14&4294967295|
h>>>18);h=c+(f^b&(e^f))+d[12]+2368359562&4294967295;c=e+(h<<20&4294967295|h>>>12);h=b+(c^e^f)+d[5]+4294588738&4294967295;b=c+(h<<4&4294967295|h>>>28);h=f+(b^c^e)+d[8]+2272392833&4294967295;f=b+(h<<11&4294967295|h>>>21);h=e+(f^b^c)+d[11]+1839030562&4294967295;e=f+(h<<16&4294967295|h>>>16);h=c+(e^f^b)+d[14]+4259657740&4294967295;c=e+(h<<23&4294967295|h>>>9);h=b+(c^e^f)+d[1]+2763975236&4294967295;b=c+(h<<4&4294967295|h>>>28);h=f+(b^c^e)+d[4]+1272893353&4294967295;f=b+(h<<11&4294967295|h>>>21);h=e+(f^
b^c)+d[7]+4139469664&4294967295;e=f+(h<<16&4294967295|h>>>16);h=c+(e^f^b)+d[10]+3200236656&4294967295;c=e+(h<<23&4294967295|h>>>9);h=b+(c^e^f)+d[13]+681279174&4294967295;b=c+(h<<4&4294967295|h>>>28);h=f+(b^c^e)+d[0]+3936430074&4294967295;f=b+(h<<11&4294967295|h>>>21);h=e+(f^b^c)+d[3]+3572445317&4294967295;e=f+(h<<16&4294967295|h>>>16);h=c+(e^f^b)+d[6]+76029189&4294967295;c=e+(h<<23&4294967295|h>>>9);h=b+(c^e^f)+d[9]+3654602809&4294967295;b=c+(h<<4&4294967295|h>>>28);h=f+(b^c^e)+d[12]+3873151461&4294967295;
f=b+(h<<11&4294967295|h>>>21);h=e+(f^b^c)+d[15]+530742520&4294967295;e=f+(h<<16&4294967295|h>>>16);h=c+(e^f^b)+d[2]+3299628645&4294967295;c=e+(h<<23&4294967295|h>>>9);h=b+(e^(c|~f))+d[0]+4096336452&4294967295;b=c+(h<<6&4294967295|h>>>26);h=f+(c^(b|~e))+d[7]+1126891415&4294967295;f=b+(h<<10&4294967295|h>>>22);h=e+(b^(f|~c))+d[14]+2878612391&4294967295;e=f+(h<<15&4294967295|h>>>17);h=c+(f^(e|~b))+d[5]+4237533241&4294967295;c=e+(h<<21&4294967295|h>>>11);h=b+(e^(c|~f))+d[12]+1700485571&4294967295;b=c+
(h<<6&4294967295|h>>>26);h=f+(c^(b|~e))+d[3]+2399980690&4294967295;f=b+(h<<10&4294967295|h>>>22);h=e+(b^(f|~c))+d[10]+4293915773&4294967295;e=f+(h<<15&4294967295|h>>>17);h=c+(f^(e|~b))+d[1]+2240044497&4294967295;c=e+(h<<21&4294967295|h>>>11);h=b+(e^(c|~f))+d[8]+1873313359&4294967295;b=c+(h<<6&4294967295|h>>>26);h=f+(c^(b|~e))+d[15]+4264355552&4294967295;f=b+(h<<10&4294967295|h>>>22);h=e+(b^(f|~c))+d[6]+2734768916&4294967295;e=f+(h<<15&4294967295|h>>>17);h=c+(f^(e|~b))+d[13]+1309151649&4294967295;
c=e+(h<<21&4294967295|h>>>11);h=b+(e^(c|~f))+d[4]+4149444226&4294967295;b=c+(h<<6&4294967295|h>>>26);h=f+(c^(b|~e))+d[11]+3174756917&4294967295;f=b+(h<<10&4294967295|h>>>22);h=e+(b^(f|~c))+d[2]+718787259&4294967295;e=f+(h<<15&4294967295|h>>>17);h=c+(f^(e|~b))+d[9]+3951481745&4294967295;a.b[0]=a.b[0]+b&4294967295;a.b[1]=a.b[1]+(e+(h<<21&4294967295|h>>>11))&4294967295;a.b[2]=a.b[2]+e&4294967295;a.b[3]=a.b[3]+f&4294967295};
$9.prototype.update=function(a,b){Qa(b)||(b=a.length);for(var c=b-this.f,d=this.j,e=this.h,f=0;f<b;){if(0==e)for(;f<=c;)a$(this,a,f),f+=this.f;if(Ra(a))for(;f<b;){if(d[e++]=a.charCodeAt(f++),e==this.f){a$(this,d);e=0;break}}else for(;f<b;)if(d[e++]=a[f++],e==this.f){a$(this,d);e=0;break}}this.h=e;this.g+=b};
$9.prototype.digest=function(){var a=Array((56>this.h?this.f:2*this.f)-this.h);a[0]=128;for(var b=1;b<a.length-8;++b)a[b]=0;var c=8*this.g;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.b[b]>>>d&255;return a};var c$=function(a,b,c,d,e){var f=new V9;f.Y(b);b=q();S(f,1,b);b=b$(O(a,7),b);S(f,2,b);b=O(a,2);S(f,4,b);b=O(a,5);S(f,5,b);S(f,6,c.b);a=O(a,6);S(f,11,a);Ji(f,7,d);Qa(e)&&S(f,8,e);(d=c.j)&&S(f,10,d);(d=c.lc())&&S(f,12,d);(c=c.g)&&S(f,13,c);return f},d$=function(a,b,c){var d=new HB,e=(new Date(O(b,4))).toString();S(d,2,e);e=O(b,4);S(d,133,e);e=null!=O(b,3)?O(b,3):O(a,8);S(d,30,e);S(d,3,-2);(e=O(b,1))&&S(d,1,e);e=new IL;V(e,4,d);e.Y(a.ba());d=P(c,14);S(e,11,d||[]);b=O(b,2);S(e,21,b);c=O(c,8);S(e,12,c);
c=O(a,6);S(e,14,c);c=O(a,10);S(e,16,c);c=a.lc();S(e,22,c);a=O(a,13);S(e,23,a);return e},e$=function(a,b,c){var d=O(c,6),e=c.ba();a.then(function(a){MT(a,b,void 0,d,e)})},b$=function(a,b){a+=b;b=new $9;b.update(a,a.length);return String.fromCharCode.apply(String,b.digest())};var Saa=function(a,b){var c=this;this.b=a;this.f=!1;b.then(function(a){c.f=a})},Taa=function(a,b,c,d){d=void 0===d?!1:d;var e=Ut();f$(a,b,c,new BY(4E3,36E5,.25,4),e.resolve,a.f,d);return e.U},f$=function(a,b,c,d,e,f,h){h=void 0===h?!1:h;var k=g$(c,b,f),n=U(c,X9,7).map(function(a){return E2(k,d$(c,a,b),O(a,1),h)});n=St(n);e$(a.b,4159,c);n.then(function(k){k.every(function(a){return a.qd})?(e(),e$(a.b,4160,c)):(iu(function(){f$(a,b,c,d,e,f,h)},d.b),CY(d),e$(a.b,4161,c))})},g$=function(a,b,c){var d=
void 0===d?B2:d;return new d(b.B,O(a,11)||O(a,6),O(a,4),O(a,5)||0,O(a,6),O(a,9)||O(b,1),c)};var Uaa=function(a,b){var c=this;this.h=a;this.g=b;this.b=new VA;this.f=new AB("realtime.media.call.PersistentReportingService");a=window.requestIdleCallback;hb(a)?a(function(){h$(c)}):iu(function(){h$(c)})},Vaa=function(a){var b=LO(a,l1,!0).then(function(a){return m1(a)});JO(a,rP)||wC(a,rP,function(a){a=LO(a,lP).then();var c=new Saa(a,b);return new Uaa(c,a)})},j$=function(a,b,c,d,e,f){if(!i$(a,"Could not save RecentCallSummary because storage was unavailable")||0===e.length)return null;b=c$(b,c,
d,e,f);d=new Z9;V(d,1,b);c="rcsprs_"+O(b,6);d=d.ya();a.b.set(c,d);return b},Waa=function(a,b){if(!i$(a,"Could not get RecentCalls because storage was unavailable"))return[];for(var c=Qa(6E4)?q()-6E4:0,d=[],e=0;e<a.b.pa();){var f=a.b.key(e++);if(null!==f&&Gc(f,"rcsprs_")&&(f=k$(a,f),!(null===f||null==O(f,1)||O(T(f,V9,1),1)<c))){var h=b$(b,O(T(f,V9,1),1));O(T(f,V9,1),2)===h&&d.push(T(f,V9,1))}}return d},k$=function(a,b){if(i$(a,"Could not load RecentCallSummary because storage was unavailable")&&(b=
a.b.get(b),null!==b))try{var c=Eu(b);return new Z9(c)}catch(d){BB(a.f,String(d))}return null},Xaa=function(a,b,c){var d=!0;d=void 0===d?!1:d;var e=O(c,6);Taa(a.h,b,c,d).then(function(){var b="rcsprs_"+e,c=k$(a,b);if(null!==c&&-1===P(c,2).indexOf(1)){var d=P(c,2).concat([1]);S(c,2,d||[]);c=c.ya();a.b.set(b,c)}})},i$=function(a,b){if(a.b.isAvailable())return!0;BB(a.f,b);return!1},h$=function(a){if(i$(a,"Could not delete old RecentCallSummaries because storage was unavailable")){for(var b=q()-3456E5,
c=new Map,d="",e=0,f=0;f<a.b.pa();f++){var h=a.b.key(f);if(null!==h&&Gc(h,"rcsprs_")){var k=k$(a,h);if(null===k||null==O(k,1))c.set(h,k);else{var n=T(k,V9,1);O(n,1)>e&&(d=h,e=O(n,1));(O(n,1)<b||-1!==P(k,2).indexOf(1))&&c.set(h,k)}}}c.delete(d);c.forEach(function(b,c){a.b.remove(c);b&&null!=O(b,1)&&-1===P(b,2).indexOf(1)&&e$(a.g,4162,T(b,V9,1))})}};var Yaa=function(a){var b=this;this.b=this.h=this.g=null;this.f=!1;LO(a,l1,!0).then(function(a){b.g=O(a,24);b.h=O(a,25);b.b=O(a,26);b.f=!0})},Zaa=function(a){JO(a,sP)||wC(a,sP,function(a){return new Yaa(a)})};var l$=function(a){var b=this;(new VA).remove("report_luak");this.b=null;this.ka=LO(a,l1,!0).then(function(a){return b.b=a});this.f=null;this.D=LO(a,rP).then().then(function(a){return b.f=a});this.m=null;LO(a,nP).then(function(a){return b.m=a});this.A=Mt(LO(a,sP));this.u=Ut();this.F=this.u.U;this.g=null;this.h=!1;this.j=[];this.s=!1},$aa=function(a){JO(a,jP)||wC(a,jP,function(a){return new l$(a)})},m$=function(a){return x(a.b.g.ea()).map(function(a){var b=new X9;S(b,1,DS(a));var d=a.vb();S(b,2,d);
S(b,3,a.Hd);a=a.Tk();S(b,4,a);return b})},P6=function(a){a.s||O6(a);return a.g||!1},aba=function(a,b){a.b?b():a.ka.then(b)},n$=function(a,b){a.f?b():a.D.then(b)};l$.prototype.B=function(a){var b=this;n$(this,function(){bba(b,a);var c=a.fb.get()||"",d=a.M,e=m$(a);j$(b.f,a.f,c,d,e)})};
var bba=function(a,b){var c=void 0===c?!1:c;a.F.then(function(){if(P6(a)||c){var d=O(b.f,7);d=Waa(a.f,d);var e=b.fb.get()||"";d.filter(function(a){return a.ba()===e}).forEach(function(a){U(a,X9,7).forEach(function(b){O(b,2);a.ba()})})}})};l$.prototype.o=function(a){var b=this;pc(this.j,a);n$(this,function(){Rt([a.onConnect,a.onDisconnect]).then(function(c){c=ma(c);c.next();var d=c.next().value;c=a.f;var e=a.fb.get()||"",f=a.M,h=m$(a),k=b.f;(d=j$(k,c,e,f,h,d))&&Xaa(k,c,d)},Ya)})};
var O6=function(a,b){aba(a,p(function(){this.s=!0;this.h=null;var a=Ut();a.U.then(p(this.L,this),p(this.C,this,b));var d=O(this.b,10);if(null!=d){null!=b&&(d=cq(d,"set",String(b)));var e=Uv(Sv);e.open("GET",d,!0);e.onreadystatechange=function(){4==e.readyState&&(200==e.status?a.resolve(e.responseText):a.reject(null))};e.send(null)}else a.reject(null)},a))};l$.prototype.L=function(a){this.h="true"==a;o$(this)};l$.prototype.C=function(a){this.h=Qa(a)?a:P6(this);o$(this)};
var o$=function(a){a.u.resolve();null===a.g&&(a.g=a.h,a.A.then(function(){P6(a)}),w(a.j,function(a){r6(a.b,P6(this))},a));a.h!=a.g&&O6(a,P6(a))},g7=function(a,b){var c=cba(b);if(null==O(c,4)||null==O(c,5)||null==O(c,6)||0==(U(c,X9,7)||[]).length)return[];var d=a.b,e=g$(c,d,m1(d));return U(c,X9,7).map(function(a){var b=d$(c,a,d);return C2(e,b,O(a,1))})},cba=function(a){var b=a.f,c=a.fb.get(),d=a.M,e=m$(a);a=2==a.onDisconnect.b?a.onDisconnect.get():void 0;return c$(b,c,d,e,a)};var p$=function(a){Y.call(this);var b=this;this.b=null;this.j=LO(a,lP).then();this.f=!1;(a=navigator.getBattery?navigator.getBattery():null)&&a.then&&a.then(function(a){b.b=a;var c=new rB(b);b.h(c);c.listen(a,["chargingchange","levelchange"],b.g);b.g();a=WT.Ha();c=YT(a,"shouldConserveBattery",function(){return b.f});Is(b,a.h.bind(a,c))})};l(p$,Y);p$.prototype.g=function(){var a=!this.b.charging&&.1>this.b.level;this.f!=a&&(this.f=a,this.I("Eb"),this.j.then(function(b){MT(b,a?2805:2806)},void 0,this))};
var dba=function(a){JO(a,iP)||wC(a,iP,function(a){return new p$(a)})};var eba=function(a){p2(a);RX(a);dba(a);$aa(a);U9(a);v_(a);Oaa(a);Vaa(a);X3(a);Zaa(a)};var r$=function(){this.b=new q$;this.f=null;this.version=0};t(r$,w3);g=r$.prototype;g.ed=function(a){return new s$(this,0,a)};g.fd=function(a){return new s$(this,1,a)};g.zd=function(a){return new s$(this,2,a)};g.gd=function(a){return new s$(this,3,[a])};g.Ad=function(){return new s$(this,4,[])};var q$=function(){Y.call(this)};t(q$,y1);q$.prototype.execute=function(a){a.execute()};var s$=function(a,b,c){this.b=a;this.g=b;this.f=c;this.version=null;this.h=Ut();this.j=!1};
s$.prototype.execute=function(){this.j=!0;Ct(p(this.bq,this))};var fba=function(a){if(!a.b.f)return null;switch(a.g){case 0:return a.f;case 1:var b=[];w(bc(a.f,a.Nj,a),function(a,d){null===a||b.push(this.f[d])},a);return b;case 2:case 3:return a=bc(a.f,a.Nj,a),qc(a,eb),a;case 4:return a.b.f.get();default:return null}};g=s$.prototype;g.Nj=function(a){var b=this.b.f;if(!b)return null;var c=c2(b,a);return gc(b.get(),function(a){return c.equals(c2(b,a))})};
g.bq=function(a,b){if(a=a||fba(this)){if(Qa(b))b>this.b.version&&(this.b.version=b);else switch(this.g){case 0:case 1:case 2:this.b.version++}this.h.resolve(new x1(a,Qa(b)?b:this.b.version))}else this.h.reject("Could not perform operation")};g.Ei=function(a){this.version=a;return!0};g.Ee=function(){return this.h};g.Ug=function(){return this.h.U};g.Nf=rk(0);g.Vg=Ya;g.Se=rk(0);g.Tg=rk(void 0);g.Uf=Ya;g.Fg=function(){return this.j};g.Eg=function(){return this.g.toString()};g.Fh=function(){return this.f.toString()};var t$=function(a,b,c){var d=D3(),e=b3.Ha(),f=new r$;a=new f3(a,e.ab.f(a,b),c,d,f);return f.f=a};var u$=function(a,b,c,d,e,f){Y.call(this);var h=this;this.l=ls("realtime.media.api.apiary.RemoteSession");this.j=b.ab.Mg("realtime.media.api.apiary.RemoteSession");this.la=a;this.ma=b.b;this.ta=c;this.B=this.u=this.o=this.ob=this.f=null;this.P=d;this.P.u=8;this.P.D=3E3;this.K=e;this.D=f;this.j.info("Creating a new remote session with earlyMediaHangoutId="+f.f+" P2P="+f.b+" useAudio="+f.j+" useVideo="+f.B);this.g=this.b=null;this.Ga=[];this.ec=!1;this.C=new rB(this);this.h(this.C);this.A=new H2;this.m=
"INITIAL";this.Ua=new Set;this.wa=[];this.T=[];this.Z=new Map;this.M=new Map;this.va=new Map;this.Ca=new Map;this.Bb=new Map;this.Ba=Ut();this.Ab=Ut();this.zb=new Set;this.Va=LO(a,lP).then();this.Id=LO(a,kP).then();a=WT.Ha();Is(this,XT(a,"mediaSessionStartTime",function(){return(new Date(h.Qa)).toString()}));Is(this,XT(a,"mediaUpStreams",function(){return h.b&&T1(h.b)}));Is(this,XT(a,"mediaDownStreams",function(){return h.g&&T1(h.g)}));this.Cb=Ut();this.Cb.U.then(this.bb,null,this)};l(u$,cS);
var v$=function(a,b,c,d){a.m!=b&&(a.j.info("Session "+W5(a)+" state changed from "+a.m+" to "+b),a.m=b,a.I(new iQ(b,c,d)))};u$.prototype.getState=function(){return this.m};
var hba=function(a,b,c){var d=a.g,e=Ri(d.j);e.Aa(b);e.Y(c);c=d.start(e);gba(a);a.D.b||Yt(a3(c,"va",b,a),function(b){b="Stopping session "+W5(a)+" "+("because downstream search failed with error: "+b);a.j.error(b);a.Va.then(function(b){return MT(b,3950,a.f||void 0)});a.stop(16,b)})},gba=function(a){a.D.b||(null==a.Ua?os(a.l,"Attempting to install collection filters with null participants. setParticipants() must be called prior to this call!"):l2(a.g,function(b){return a.Ua.has(b.S()||"")}))};
u$.prototype.cd=function(a){if("INITIAL"!=this.m)return!1;this.ec=null!=a;a=a||"";null!=this.g?ns(this.l,"Remote streams collection already initiated"):(this.D.b?(W(this.l,"Preparing p2p remote streams collection."),this.g=t$(this.la,this.ma,[a,1,""])):(W(this.l,"Preparing normal remote streams collection."),this.g=E3(this.la,this.ma,[a,1,""],D3(),B3,"eb"),this.C.listen(this.g,"rb",this.dc),this.C.listen(this.g,"qb",this.vc)),this.h(this.g),O1(this.g),this.C.listen(this.g,"pb",this.tc));v$(this,"STARTING");
return!0};u$.prototype.start=function(a){this.Aa(a);v$(this,"STARTED");this.Ba.U.then(this.sc,null,this);return!0};
u$.prototype.sg=function(a,b,c){this.j.info("Attempting to connect session "+W5(this)+" to Hangout: "+a);switch(this.m){case "INITIAL":os(this.l,"Connect to hangout called before starting.");return;case "STOPPED":case "FINISHED":os(this.l,"Connect to hangout called after end.");return}null!=this.o?ns(this.l,"Multiple hangouts per RemoteSession not yet supported."):(this.o=a,this.u=b,this.B=c,this.Qa=q(),this.rb=window.performance&&window.performance.now?window.performance.now():q(),this.Ba.resolve())};
u$.prototype.sc=function(){var a=this.B&&this.B.b||"";this.j.info("Session "+W5(this)+" is started and connected to Hangout: "+this.o+" with participantId: "+this.u+" and participantLogId: "+a);a=this.f;var b=this.o;null!=this.b?ns(this.l,"Local streams collection already initiated"):(this.D.b?(W(this.l,"Preparing p2p local streams collection."),this.b=t$(this.la,this.ma,[b,2,a])):(W(this.l,"Starting normal local streams collection."),this.b=E3(this.la,this.ma,[b,2,a],D3(),B3,"eb"),this.C.listen(this.b,
"rb",this.dc),this.b.start()),this.C.listen(this.b,"pb",this.Oc),this.h(this.b));w$(this,this.f,this.o,this.wa);jc(this.wa);hba(this,this.f,this.o);0<this.T.length&&(x$(this,this.T),jc(this.T));v$(this,"INPROGRESS");this.Ab.resolve();y$(this)};
var D5=function(a,b){a.Ua=new Set(b);null!=a.g&&j2(a.g);a.D.b&&a.Ba.U.then(function(){var c=b.filter(function(b){return b!=a.u});if(1!=c.length)1<c.length&&a.stop(51);else{var d=new YG([1,1,a.f,"8579373",a.o,c[0],"1",[[8579373],[]]]);c=new YG([1,2,a.f,"8579374",a.o,c[0],"2",[[8579374,8579375],[["FID",[8579374,8579375]]]]]);a.g.add(d);a.g.add(c)}})};u$.prototype.be=function(){this.b&&this.b.Re();this.g&&this.g.Re()};u$.prototype.resume=function(){this.M=new Map};
u$.prototype.stop=function(a,b){this.j.info("Session "+W5(this)+" stopping because stop was called with endCause: "+a);if("STOPPED"==this.m)return!1;null==this.f||"STARTING"!=this.m&&"INPROGRESS"!=this.m||(Js(this.b),this.b=null,Js(this.g),this.g=null);v$(this,"STOPPED",a,b);return!0};
var t5=function(a,b){var c=a.f,d=a.o,e=a.u;null==c?os(a.l,"UploadLogData before we have a sessionId."):null==d?os(a.l,"UploadLogData before we have a hangoutId."):(b.Y(d),null!=a.ta&&S(b,1,a.ta),null!=e&&b.Da(e),S(b,11,a.K.b.slice()||[]),S(b,12,a.K.f),S(b,18,a.K.h),a.B&&jS(a.B,b),E2(a.P,b,c,!1))};u$.prototype.fc=function(a){iba(this,a)};
var U5=function(a,b){var c=a.f,d=a.o;null==c?os(a.l,"Upload log data before we have a sessionId."):null==d?os(a.l,"Upload log data before we have a hangoutId."):z$(a,c,d,b)},V5=function(a,b,c,d,e){var f=a.f,h=a.o;null==f?os(a.l,"Finalize log data uploads before we have a sessionId."):null==h?os(a.l,"Finalize log data uploads before we have a hangoutId."):z$(a,f,h,d,b,c,e).then(function(){return a.I("R")})};
u$.prototype.bb=function(){var a=this;this.s||"STOPPED"==this.m||"FINISHED"==this.m||iu(function(){var b=a.P,c=a.f,d=new EG;d.setRequestHeader(F2(b));d.Aa(c);D2(b,"media_sessions/query",d).then(b.g,null,b).then(a.Hd,a.Fd,a)},1E4)};u$.prototype.Hd=function(a){this.s||(null==a?os(this.l,"Received null session proto."):(a=P2(this.A,a,!this.D.b),null==a?this.j.info("Session "+W5(this)+" could not parse description from session query."):(this.I(new HS(a)),this.bb())))};
u$.prototype.Fd=function(a){if(!this.s)switch(a.status){case 4:case 5:case 7:this.stop(15,"ClientResponseStatus: "+a.status+" with desc: "+a.desc);break;case 11:this.stop(41,"ClientResponseStatus: "+a.status+" with desc: "+a.desc);break;default:this.bb()}};
var A$=function(a,b){var c;(c=a.f!=b.f||a.h!=b.h)||(a=a.Lb(),b=b.Lb(),c=null==a&&null==b?!1:null==a||null==b?!0:a.width!=b.width||a.height!=b.height);return c},iba=function(a,b){if(null!=SB(b)){var c=q();SB(b).forEach(function(b){if(1==hC(b)&&2==O(b,1)){var d=P(b,53)[0]>>>0,f=a.Bb.get(d)||0,h=O(b,10)||0;a.Bb.set(d,h);h=Math.max(h-f,0);f=a.Ca.get(d);if(null!=f){S(b,114,f.Ve.width);S(b,115,f.Ve.height);ps(a.l,"Set last request width/height "+f.Ve.width+"/"+f.Ve.height+" for ssrc "+d+" in jmidata");
h=!B$(a,d)||0<h;d=!!O(b,59);if(f.lk!=h||f.nk!=d)f.lk=h,f.nk=d,f.we&&(f.we=c);if(f.we&&b instanceof GW&&(f=b.o,d&&0<O(b,138)&&f&&O(f,14))){a.Va.then(function(a){MT(a,4577)});var k=FW(f);S(k,3,[25]);a.Id.then(function(a){y_(a,k)})}}}})}},z$=function(a,b,c,d,e,f,h){if(null==d&&null==e)return Nt("Nothing to upload");var k=new HB;S(k,2,(new Date(a.Qa)).toString());S(k,133,a.Qa);var n=-2;null!=a.rb&&(n=((window.performance&&window.performance.now?window.performance.now():q())-a.rb)/1E3,n=Math.round(n));
S(k,3,n);null!=b&&S(k,1,b);null!=e&&S(k,29,e);null!=f&&S(k,30,f);null==h||Ic(Tc(h))||S(k,100,h);null!=d&&Ji(k,5,[d]);d=new IL;V(d,4,k);d.Y(c);null!=a.u&&d.Da(a.u);null!=a.ta&&S(d,1,a.ta);S(d,11,a.K.b.slice()||[]);S(d,12,a.K.f);S(d,18,a.K.h);a.B&&(c=a.B,c.s&&(k=T(d,HB,4)||new HB,S(k,4,c.s),V(d,4,k)),jS(c,d));return E2(a.P,d,b,!1)},z5=function(a,b){switch(a.m){case "INITIAL":case "STARTING":case "STARTED":uc(a.wa,b);return;case "STOPPED":case "FINISHED":os(a.l,"Add local streams called after end.");
return}var c=a.f,d=a.o;null==c?a.j.error("Attempting to add local streams before we have a sessionId."):null==d?uc(a.wa,b):w$(a,c,d,b)},w$=function(a,b,c,d){d.forEach(function(d){d=LP(new JP(d),a.u).V();var e=X2(a.A,b,c,d),h=a.b.f,k=h.f(e);if(a.Ga.some(function(a){return Cc(k,a)}))tT(a.j,"Ignore addLocalStream because we have pending add for the same stream "+d);else{var n=a.b.get().some(function(a){return G1(h,e,a)});n||"d"==d.da()||a.Ga.push(k);n=a3(n?X1(a.b,e):a.b.add(e),"xa",b,a);"d"!=d.da()&&
Yt(n,function(b){b="Stopping session "+W5(a)+" because "+("addLocalStream failed with error: "+b);a.j.error(b);a.Va.then(function(b){return MT(b,3951,a.f||void 0)});a.stop(16,b)})}})},C5=function(a,b){a.Ab.U.then(function(){var c=b.yb();c=a.b.Ob(c);c.sb(Q2(a.A,b.da()));var d=new bH,e=b.Ec();S(d,1,e);c.Tf(d);X1(a.b,c)})};u$.prototype.Aa=function(a){this.f!=a&&(this.j.info("Session id changing from "+W5(this)+" to "+(a||"{unset}")),this.f=a,this.Cb.resolve())};
var W5=function(a){if(null==a.f)return"{unset}";null==a.ob&&(a.ob=a.f.substring(0,6)+"{#"+(a.f.length-7)+"}"+a.f.substring(a.f.length-1));return a.ob},A5=function(a){if(null!=a.b){var b=a.b.get().find(function(a){return 2==a.da()});if(null==b)tT(a.j,"Attempting to signal screencast started, but no video stream found!");else{b=a.b.Ob(b);b.sb(2);S(b,11,!1);var c=new bH;S(c,1,!1);b.Tf(c);X1(a.b,b)}}},B5=function(a){if(null!=a.b){var b=a.b.get().find(function(a){return 2==a.da()});null==b?tT(a.j,"Attempting to signal screencast ended, but no video stream found!"):
(b=a.b.Ob(b),b.sb(2),S(b,11,!0),X1(a.b,b))}};u$.prototype.pe=function(a){var b=this;this.Z=new Map;a.forEach(function(a){b.Z.set(C$(a),a)});y$(this)};
var y$=function(a){switch(a.m){case "INITIAL":case "STARTING":case "STOPPED":case "FINISHED":return}if(null==a.f)a.j.error("Ignoring changed stream requests because we don't have a sessionId.");else if(null==a.o)a.j.error("Ignoring changed stream requests because we don't have a hangoutId.");else{var b=new Map,c=Q2(a.A,"v");a.g.get().forEach(function(a){a.da()==c&&b.set(C$(a),a)});a.Z.forEach(function(c,e){if(b.has(e)){e=b.get(e);var d=e.yb(),h=a.M.get(d);if(!h||A$(h,c))a.M.set(d,c),D$(a,e,c)}else W(a.l,
"Skipping stream request for "+c.S()+" (no matching stream was found).")});b.forEach(function(b,c){var d=b.yb();if(!a.Z.has(c)&&(c=a.M.get(d))){var e=MQ(QQ(PQ(new IQ(c))),!1).V();A$(c,e)&&(a.M.set(d,e),D$(a,b,e))}})}},D$=function(a,b,c){if("STOPPED"!=a.m&&"FINISHED"!=a.m){if(a.zb.has(c.S())){var d=new IQ(c);d.h="";c=d.V()}var e=b.yb();d=c.Lb();var f=c.f;if(!d||0>=d.height||0>=d.width||0>=c.h)f=!1;var h=a.A,k=a.f,n=a.o,u=c,z=f;f=new YG;f.oi(1);f.Aa(k);f.Y(n);f.Da(u.S());f.sb(Q2(h,u.da()));h=u.sa();
S(f,7,h);h=new bG;S(h,1,!0);S(h,2,z);z=u.Lb();null!=z&&(k=new ZF,k.Bd(z.height),k.Cd(z.width),S(k,3,u.h),V(h,3,k));V(f,9,h);f.pi(e);a.j.info("Session "+W5(a)+" sending stream request: "+c.toString()+" with streamId: "+e);b=T(b,$G,8);V(f,8,b);X1(a.g,f);d&&b&&P(b,1)&&(b=P(b,1)[0]>>>0,null!=b&&((c=a.Ca.get(b))?c.Ve=d:(c={we:0,lk:!B$(a,b),nk:!1,Ve:d},a.Ca.set(b,c)),e=76800<d.ng(),!c.we&&e?c.we=q():e||(c.we=0),ps(a.l,"Building map: last request width/height "+d.width+"/"+d.height+" for ssrc "+b)))}},B$=
function(a,b){a=a.va.get(b);return Qa(a)?a:!0},C$=function(a){return(a.S()||"")+"/"+(a.sa()||"")};u$.prototype.tc=function(a){null!=a.h&&0<a.h.length&&x$(this,a.h);null!=a.b&&0<a.b.length&&jba(this,a.b);null!=a.removed&&0<a.removed.length&&kba(this,a.removed)};
u$.prototype.vc=function(a){var b=a.b?a.b.length:0;ps(this.l,"Received early streams push notification with "+b+" modified streams");if(this.ec&&0!=b)if("INPROGRESS"==this.m)x$(this,a.b);else if("STARTING"==this.m||"STARTED"==this.m)this.T=sc(this.T,a.b)};
var x$=function(a,b){E$(a,b,function(b){b=b.filter(function(b){return b.S()!=a.u});y$(a);b.forEach(function(b){a.j.info("Session "+W5(a)+" notified of new remote stream: "+b.toString());b.nb().forEach(function(c){a.va.set(c,b.Ec())})});a.I(new eS(b,[],[]))})},jba=function(a,b){E$(a,b,function(b){b.forEach(function(b){a.j.info("Session "+W5(a)+" received modified remote stream: "+b.toString());b.nb().forEach(function(c){a.va.set(c,b.Ec())})});a.I(new eS([],b,[]))})},kba=function(a,b){E$(a,b,function(b){b.forEach(function(b){a.j.info("Session "+
W5(a)+" removing remote stream: "+b.toString());b.nb().forEach(function(b){a.va.delete(b)})});a.I(new eS([],[],b))})},E$=function(a,b,c){var d=lba(a,b);null==d?os(a.l,"Failed to parse streamInfos: "+d):0==d.length?os(a.l,"Got empty streamInfos: "+b):c(d)},lba=function(a,b){return Y2(a.A,b).map(function(b){if(""==b.sa()){var c=mba[b.da()];b=MP(new JP(b),c).V();a.zb.add(b.S())}return b})};
u$.prototype.Oc=function(a){var b=this;if(fb(a.h)&&0<a.h.length){var c=this.b.f;a.h.map(function(a){return c.f(a)}).forEach(function(a){rc(b.Ga,function(b){return Cc(a,b)})})}if(fb(a.removed)&&0<a.removed.length)0==this.b.get().length&&(this.j.info("Session "+W5(this)+" terminating to handle Reflector failover."),v$(this,"STOPPED",26));else if(fb(a.b)&&0<a.b.length){var d=Z2(this.A,a.b);null==d?os(this.l,"Failed to parse stream requests: "+a):0==d.length?os(this.l,"Got empty stream requests: "+a):
this.I(new fS(d))}};u$.prototype.dc=function(a){this.j.error("Stopping session "+this.f+" because stream collection failed, with reason: "+a.reason);this.stop(a.b)};var F$={},mba=(F$.a="1",F$.v="2",F$.d="3",F$);var G$=function(a){SS.apply(this,arguments)};l(G$,SS);G$.prototype.g=function(a,b,c){var d=this.f.b;c=new B2(d.g,O(d,6),O(d,2),O(d,5),c,O(d,1),m1(d));a=new u$(a,this.f,O(d,6),c,new O0(P(d,14),O(d,8)||!1,!!O(d,16)),b);a.h(c);return a};bP(G$,SS,1);var H$=function(){this.h=new Map};l(H$,d3);H$.prototype.f=function(a,b){return T(b,FR,13)};H$.prototype.s=function(a,b,c){var d=this;if(!c&&this.h.has(a))return this.h.get(a);b=new h7(c||O(b,6),b.g,function(){return LO(a,oP).then(function(a){return a.g})},O(b,1),O(b,5),m1(b));c||a.s||(this.h.set(a,b),Is(a,function(){return d.h.delete(a)}));return b};H$.prototype.j=function(a,b){return b.A};H$.prototype.g=function(a,b){return b.u};bP(H$,d3);var I$=function(a,b){this.b=a;this.f=b};I$.prototype.execute=function(a){this.b&&(this.b.call(this.f||null,a),this.b=this.f=null)};I$.prototype.abort=function(){this.f=this.b=null};var J$=function(a,b){Hs.call(this);this.g=a;this.Oa=b;this.f=[];this.b=[];this.j=[]};t(J$,Hs);J$.prototype.getId=function(){return this.Oa};var nba=function(a,b){a.b.push(new I$(b,void 0))};J$.prototype.onError=function(a){for(var b=this.b,c=[],d=0;d<b.length;d++)try{b[d].execute(a)}catch(e){st(e),c.push(e)}b.length=0;(a=c.length?c:null)&&window.setTimeout(vk("Module errback failures: "+a),0);this.j.length=0;this.f.length=0};J$.prototype.ja=function(){J$.ra.ja.call(this);Js(null)};var K$=function(){Hs.call(this)};t(K$,Hs);K$.prototype.F=function(){return!1};K$.prototype.C=function(){return!1};var L$=null,oba=function(a){!L$&&a&&(L$=a());return L$};var M$=function(){Hs.call(this);this.j={};this.f=[];this.g=[];this.u=[];this.b=[];this.m=[];this.A={};this.K=new J$([],"");this.l=ls("goog.module.ModuleManager");this.o=0;this.D=this.L=!1};t(M$,K$);var YO=function(){return oba(function(){return new M$})};M$.prototype.F=function(){return 0<this.f.length};M$.prototype.C=function(){return 0<this.m.length};
var O$=function(a){var b=a.F();b!=a.L&&(N$(a,b?"active":"idle"),a.L=b);b=a.C();b!=a.D&&(N$(a,b?"userActive":"userIdle"),a.D=b)},PO=function(a,b,c){var d=[];wc(b,d);b=[];for(var e={},f=0;f<d.length;f++){var h=d[f],k=a.j[h];if(!k)throw Error("Unknown module: "+h);var n=new aA;e[h]=n;pba(a,h,k,!!c,n);P$(a,h)||b.push(h)}0<b.length&&(0==a.f.length?a.B(b):(a.b.push(b),O$(a)));return e},pba=function(a,b,c,d,e){c.f.push(new I$(e.callback,e));nba(c,function(a){e.b(Error(a))});P$(a,b)?d&&(W(a.l,"User initiated module already loading: "+
b),ic(a.m,b)||a.m.push(b),O$(a)):d?(W(a.l,"User initiated module load: "+b),ic(a.m,b)||a.m.push(b)):W(a.l,"Initiating module load: "+b)};M$.prototype.B=function(a,b,c){b||(this.o=0);a=qba(this,a);W(this.l,"Loading module(s): "+a);this.f=a;this.g=x(a);O$(this);0!=a.length&&(this.u.push.apply(this.u,a),c=p(null.mx,null,x(a),this.j,null,p(this.M,this,this.g,a),p(this.P,this),!!c),(a=5E3*Math.pow(this.o,2))?window.setTimeout(c,a):c())};
var qba=function(a,b){for(var c=0;c<b.length;c++);var d=[];for(c=0;c<b.length;c++)d=d.concat(Q$(a,b[c]));wc(d);return 1<d.length?(c=d.shift(),W(a.l,"Must load "+c+" module before "+b),a.b=bc(d,function(a){return[a]}).concat(a.b),[c]):d},Q$=function(a,b){var c=vd(a.u),d=[];c[b]||d.push(b);b=[b];for(var e=0;e<b.length;e++)for(var f=a.j[b[e]].g,h=f.length-1;0<=h;h--){var k=f[h];c[k]||(d.push(k),b.push(k))}d.reverse();wc(d);return d},P$=function(a,b){if(ic(a.f,b))return!0;for(var c=0;c<a.b.length;c++)if(ic(a.b[c],
b))return!0;return!1};M$.prototype.load=function(a,b){return PO(this,[a],b)[a]};M$.prototype.M=function(a,b,c){this.o++;this.g=a;w(b,ob(pc,this.u),this);401==c?(W(this.l,"Module loading unauthorized"),R$(this,0),this.b.length=0):410==c?(S$(this,3),T$(this)):3<=this.o?(W(this.l,"Aborting after failure to load: "+this.f),S$(this,1),T$(this)):(W(this.l,"Retrying after failure to load: "+this.f),this.B(this.g,!0,8001==c))};
M$.prototype.P=function(){W(this.l,"Aborting after timeout: "+this.f);S$(this,2);T$(this)};
var S$=function(a,b){1<a.g.length?a.b=bc(a.g,function(a){return[a]}).concat(a.b):R$(a,b)},R$=function(a,b){var c=a.g;a.f.length=0;for(var d=[],e=0;e<a.b.length;e++){var f=ac(a.b[e],function(a){var b=Q$(this,a);return dc(c,function(a){return ic(b,a)})},a);uc(d,f)}for(e=0;e<c.length;e++)kc(d,c[e]);for(e=0;e<d.length;e++){for(f=0;f<a.b.length;f++)pc(a.b[f],d[e]);pc(a.m,d[e])}var h=a.A.error;if(h)for(e=0;e<h.length;e++){var k=h[e];for(f=0;f<d.length;f++)k("error",d[f],b)}for(e=0;e<c.length;e++)if(a.j[c[e]])a.j[c[e]].onError(b);
a.g.length=0;O$(a)},T$=function(a){for(;a.b.length;){var b=ac(a.b.shift(),function(){return!0},a);if(0<b.length){a.B(b);return}}O$(a)},N$=function(a,b){a=a.A[b];for(var c=0;a&&c<a.length;c++)a[c](b)};M$.prototype.ja=function(){M$.ra.ja.call(this);Ks(id(this.j),this.K);this.j={};this.f=[];this.g=[];this.m=[];this.b=[];this.A={}};var U$=function(a){Hg.call(this,a);this.xa=new EO;ZO(this.xa);Naa(this.xa);U9(this.xa,function(a){return new E9(a)});eba(this.xa);this.h=this.B=this.o=this.u=null;this.C=jx()};l(U$,Hg);g=U$.prototype;g.zg=function(){rba(this);qj(this)};g.ua=function(){throw Error("not implemented");};g.Ta=function(){return[{lastSessionId:this.h}]};g.Ya=function(){var a=nj(this);a&&a.lastSessionId&&(this.h=a.lastSessionId)};
g.di=function(){var a=this;return this.h||this.b?new Promise(function(b,c){setTimeout(c,5E3);var d=function(){a.o.then(function(){a.h?(a.h=null,b()):c(Error("No session to upload"))})},e=a.b;e?(e.b?Faa(e.b):Promise.reject(Error("no call in the session"))).then(function(){b()},d):a.h?d():c(Error("No session to upload"))}):Promise.reject(Error("No session to upload"))};g.rh=function(a){a.b?(a=a.b,a=a.b?a.b.Xg():null):a=null;this.h=a;return Promise.resolve()};
g.tg=function(a,b){a=new I9(b,this.xa,this.o);this.u=a.s.bind(a);return a};g.eh=function(){G9(0)};g.ah=function(){G9(1)};g.bh=function(){Qb("MediaRouter.Hangouts.Session.End")};g.dh=function(a){Rb("MediaRouter.Hangouts.Start.Failure",a,Vf)};g.Qf=function(){Qb("MediaRouter.Hangouts.Stream.End")};g.createMediaRouteController=function(a,b,c){var d=this.b;return d?d.h.id!=a?Promise.reject(Error("Route ID mismatch")):d.createMediaRouteController(b,c):Promise.reject(Error("Mirror session does not exist"))};
g.xo=function(a){this.u&&this.u(a)};g.Wj=function(){var a="v1";.1>Math.random()&&(a+="_preprod");return a};
var rba=function(a){a.xa.registerService(wX,vX);var b=new X0(new w1,new K9(a.xo.bind(a)));b=new c1(b,"hangouts",a.Wj(),"","https://www.googleapis.com",a.C);b=new k1(b);S(b,1,39);S(b,5,158);S(b,2,"castouts");S(b,3,"castouts");QR(b,chrome.runtime.id+chrome.runtime.getManifest().version);b.o("castouts",!0);var c=.01;"google.com"==zs(kx(ix.Ha()))&&(c=1);S(b,9,c);S(b,10,"https://hangouts.google.com/hangouts/_/logpref");S(b,11,"https://clients2.google.com/cr/report");b.register(a.xa);a.o=new Promise(function(b,
c){a.B=a.xa.get(nP);a.B.Xa().then(b,c)})};var V$=function(){U$.call(this,"hangouts")};l(V$,U$);V$.prototype.ua=function(){return"HangoutsService"};var sba=new V$;xg("mr.mirror.hangouts.HangoutsService",sba);var tba=function(a){return{b:function(b){return a().then(function(a){return A7(b,"Authorization","Bearer "+a)})}}};var W$=function(){U$.call(this,"meetings");this.m=null};l(W$,U$);W$.prototype.ua=function(){return"MeetingsService"};W$.prototype.Wj=function(){return"v1_meetings"};var X$=function(a){null==a.m&&(a.m=new t8(a.xa),N7(a.m.f,tba(function(){return Mt(kx(ix.Ha()).getAuthToken())})));return a.m};W$.prototype.lc=function(a){return Promise.resolve(T8(X$(this),a.input).then(function(a){return a.lc()}))};W$.prototype.zg=function(){U$.prototype.zg.call(this);var a=X$(this);this.xa.registerService(W0,a)};
var uba=new W$;xg("mr.mirror.hangouts.MeetingsService",uba);
