FOg;case 3:return Dag;case 4:case 5:case 6:case 7:case 8:return Qbg;case 10:return Mtg;default:return Rbg}}function wEj(a,c,e){a=a.D[c];c=new aOh(c,e.F,null,e.H,e.D,null);a.D.callback(c)}function xEj(a,c,e){a=a.D[c];e.D==Ibg?(a.active=!1,lEj(a.delay,!1,!0)):(c=XNh(c,e),a.D.Ad(new WNh(c)))} function vEj(a,c,e){var f=a.D[c];if(f.active)throw Error("fV`"+c);f.active=!0;if(e===void 0?0:e)return f;e=jEj(f.J);f.F=setInterval(function(){if(f.progress>=99||f.J.getStatus()!==Nj){var g=a.D[c];g.F!=0&&clearInterval(g.F)}else f.H(c,++f.progress)},e/100);return f}function rEj(a,c,e,f){this.J=a;this.D=c;this.delay=e;this.H=f;this.active=!1;this.F=this.progress=0};function AEj(a){var c={};a=a.replace(/\r/g,"").split("\n");for(var e=0;e=400&&c<500?cFj(this,FYf,kYf+dFj(c,a,e)):(eFj(this,this.Rjc),fFj(this))}; D.Sjc=function(a){var c=this.getItem(),e=c.getSize();c.R$()||a==e||(a=0);var f=a>=this.W,g=f?e:Math.min(this.W,this.wa+a);this.Sa=a;this.Ra=g;var h={"X-Goog-Upload-Command":xTg+(f?", finalize":""),"X-Goog-Upload-Offset":a};f&&(this.za?h["X-Goog-Upload-Entity-MD5"]=this.za:this.D&&(this.D.abort(),this.D=null));this.H=new WEj;this.H.Et=this.Et;lJ(this.F);this.F.listen(this.H,E7a,this.Zuc);this.F.listen(this.H,Kd,this.Xzd);a==e?this.H.send(this.va,Hb,"",h):(e=this.getItem().getBlob(),c.R$()?(a=SDh(e, a,g),this.H.send(this.va,Hb,a,h)):this.H.send(this.va,Hb,e,h))};D.Zuc=function(a){this.O=this.Sa+a.loaded;this.dispatchEvent(new JEj(KEj.anb));this.D&&ZEj(this.D,this.O+1048576)};D.Xzd=function(a){var c=a.target.getStatus();if(c===void 0||c==-1)eFj(this,this.Ojc),fFj(this);else{var e=AEj(a.target.getAllResponseHeaders());a=a.target.xp();this.O=this.Ra;gFj(this,c,e,a,!0)}};D.Ojc=function(){this.ea=new WEj;lJ(this.F);this.F.listen(this.ea,Kd,this.bzd);this.ea.send(this.Ja,Hb,"",{"X-Goog-Upload-Command":sPg})}; D.bzd=function(a){a=a.target;var c=a.getStatus(),e=AEj(a.getAllResponseHeaders());gFj(this,c,e,a.xp(),!1)};function gFj(a,c,e,f,g){var h=bFj(e,B7f);if(h==Eqg)a.xc=tYf,a.J=0,a.Ca=c,a.Da=e,a.Ua=f,a.dispatchEvent(new JEj(KEj.k1a));else{var k=parseInt(bFj(e,"X-Goog-Upload-Size-Received"),10);g&&isNaN(k)&&(k=a.Ra);c!=200||h!=nc||isNaN(k)?(c>=400&&c<500&&cFj(a,"Transfer failed",kYf+dFj(c,e,f)),eFj(a,a.Ojc),fFj(a)):(a.O=k,k>a.Sa&&(a.J=0),eFj(a,Km(a.Sjc,a,k)))}}function fFj(a){a.J==0&&Date.now();a.J++} function cFj(a,c){a.xc=Zea;a.O=0;a.dispatchEvent(new LEj(KEj.ERROR,c==q6f))}function eFj(a,c){var e=[0,5E3,1E4,15E3,3E4,6E4],f=0;f=a.Ja.Fa)cFj(a,q6f);else{a.Fa!==void 0&&(f=Hr(f,0,a.Fa));Date.now();var g=Km(c,a);f>0?a.ma=wI(function(){this.ma=null;g()},f,a):g()}}function dFj(a,c,e){return"Response code: "+a+"\nHeaders:\n"+BEj(c)+"\nBody:\n"+e}function bFj(a,c){return a[c]||a[c.toLowerCase()]};function hFj(a){this.D=a}H(hFj,VEj);function iFj(a,c){if(c.R$()&&c.aQa())return c.getSize()>2097152?new $Ej(c,a.D):new UEj(c);if(c.R$())return new $Ej(c,a.D);if(c.aQa())return new UEj(c);if(c.dQa())return new $Ej(c,a.D);throw Error("gV");};function jFj(){uI.call(this)}H(jFj,uI);function kFj(a){oI.call(this,"Qa");this.items=a}H(kFj,oI);function lFj(a){uI.call(this);this.D=a}H(lFj,jFj);function mFj(a,c,e){c=new QEj(c,e);c.D=!0;var f=iFj(a.D.D,c);e=new MEj(e,c.getSize(),f);a.dispatchEvent(new kFj([e],null));return e}function nFj(a){this.D=new hFj(a)};function oFj(a,c,e){a={protocolVersion:"0.8",createSessionRequest:{fields:[{external:{name:lh,filename:a}}]}};var f=a.createSessionRequest.fields,g=f[0].external;c!=null&&(g.size=c);Nr(e,function(k,l){f.push({inlined:{name:l,content:k,contentType:pl}})});a:{if(Am.JSON)try{var h=Am.JSON.stringify(a);break a}catch(k){}h=FCh(a)}return h} function pFj(a){var c=a;typeof a==Wk&&(c=d0g(a));try{return c.sessionStatus?c=c.sessionStatus:c.errorMessage&&(c=c.errorMessage),c.additionalInfo["uploader_service.GoogleRupioAdditionalInfo"].completionInfo}catch(e){}};function qFj(a,c,e,f,g,h){T.call(this);this.ea=a;this.ma=c;this.W=e;this.R=f;this.Sk=g;this.H=h;this.D={};this.F=[];this.O=null;this.J=new kJ(this);this.V=new lFj(new nFj(2E3))}H(qFj,T);D=qFj.prototype;D.upload=function(a,c,e,f,g){g=g===void 0?{}:g;var h=bx(),k=g;k.containingCosmoId=this.ea;this.Sk&&this.Sk.R?k.containingResourceKey=this.Sk.R:this.H&&ouc(this.H)&&(k.containingResourceKey=ouc(this.H));this.R&&(k.parentCosmoId=this.R);a=new rFj(a,c,e,f,g,h);this.O?this.F.push(a):sFj(this,a);return h}; function sFj(a,c){a.O=c;var e=mFj(a.V,c.blob,c.fileName);a.J.Se(e,Bb,a.iQb).Se(e,"Oa",a.Uld);a.J.listen(e,"Ma",a.Vld);var f=$I(ZI.Cb(),a.W),g=hqf(a.W),h={};Vr(h,g.D);Xo(ss(f))||Vr(h,{authuser:f});f=cGb(a.ma,h);e.R=f;e.O=Gb;f=oFj(c.fileName,c.blob.size,c.metadata);e.J=f;e.V=!0;a.D[e.H]=c;e.start()} D.iQb=function(a,c){var e=a.item,f=e.H,g=this.D[f];if(!g)throw Error("hV");var h=e.xp();var k=(k=pFj(h))?k.status:bc;h=(h=pFj(h))?h.customerSpecificInfo:void 0;if(a instanceof PEj&&a.GU)g.D.Ad(new fR(Ibg));else if(h)if(c||k!=$3f){switch(k){case WZf:var l="scottyError";break;case "REJECTED":l=h&&h.type=="unauthorized"?Mtg:h&&h.type=="invalid_mime_type"?BYa:"scottyReject";break;case bc:case "QUEUED":case UXf:case $3f:l=Ol}g.D.Ad(new fR(l))}else g.D.callback(h);else g.D.Ad(new fR(Rtg));Iw(e);delete this.D[f]; this.O=null;this.F&&this.F.length!=0&&sFj(this,this.F.shift())};D.Uld=function(a){this.iQb(a,!0)};D.Vld=function(a){var c=a.item;a=this.D[c.H];var e,f=(e=c.getSize())!=null?e:0,g;e=Math.min((g=c.D.vjb())!=null?g:0,f);f!=0&&a.H(a.F,Math.round(e/f*100))};D.fb=function(){T.prototype.fb.call(this);Jw(this.J,this.V)};function rFj(a,c,e,f,g,h){this.blob=a;this.fileName=c;this.F=e;this.H=f;this.metadata=g;this.D=h};function tFj(a,c,e,f,g,h,k,l){nEj.call(this,c,e,f,g,h,k);this.ea=a;this.ma=l;this.W=RNe()}H(tFj,nEj); function zEj(a,c,e){var f=c.getUrl()||c.zN(),g=c.HXa(),h=uFj(c);if(h===Ol){var k="Unexpected MediaType for the blob to be uploaded: "+c.uJ().D;a.gA.log(Error(k));return fx(new lw(k))}var l=bx();k=Math.max(vFj(a)-Lv(a.ke,Jjg),2E4);Yw(wFj(a,f,k),function(p){return xw(xFj(a,g,p,h,c.mG(),e),function(q){return l.callback(q)},function(q){q instanceof fR?l.Ad(q):l.Ad(new fR(Rtg))})},function(p){var q=l.Ad;var u=p?p.message:"";var w,y=(w=a.W.D[f])!=null?w:"No revoker";p=p?dqb(p):{};var z;w=(z=p.lastErrorCode)!= null?z:-1;var A,C,E;z={};a.gA.log(Error("qV"),(z.blob_url=f,z.blob_error_message=u,z.blob_url_revoker=y,z.blob_url_xhr_complete=(A=p.isComplete)!=null?A:"",z.blob_url_xhr_is_success=(C=p.isSuccess)!=null?C:"",z.blob_url_xhr_last_error_code=w,z.blob_url_xhr_last_error_message=(E=p.lastErrorMessage)!=null?E:"",z.blob_url_error_additional_context=JSON.stringify(p),z));u=w==2?new fR(Cqg):new fR(P$f);return q.call(l,u)});return l} function wFj(a,c,e){return a.ke.Ha("docs-erlbwfa")?yFj(c,e).tD():P8e(c,a.ma,!1,{},!1,e).tD()} function yFj(a,c){var e=new Ww;fetch(a,{signal:AbortSignal.timeout(c)}).then(function(f){if(!f.ok)throw Error("iV`"+f.status);return f.blob()}).then(function(f){if(f.size===0)throw Error("jV");e.callback(f)}).catch(function(f){f instanceof Error?f.name===dca?e.Ad(Error("kV")):f.name==="TypeError"?f.message.includes("Failed to fetch")?Am.navigator.onLine===!1?e.Ad(Error("lV")):e.Ad(Error("mV`"+f.message)):e.Ad(Error("nV`"+f.message)):e.Ad(Error("oV`"+f.message)):e.Ad(Error("pV"))});return e} function uFj(a){switch(a.uJ().D){case iga:case Dea:return W6a;case ila:return Zl;case bca:return Ic;default:return Ol}}function xFj(a,c,e,f,g,h){var k={};k.uploadMediaType=f;k.mimeType=e.type;return Aw(a.ea.upload(e,c,g,h,k),function(l){return zFj(l,f)})} function zFj(a,c){var e=c==Zl||c==Ic;if(mqg in a)switch(Number(a.errorType)){case 2:return fx(new fR(Gtg));case 3:return fx(new fR(Dtg));case 4:return fx(new fR(Ctg));case 5:return fx(new fR(Dag));case 6:return fx(new fR(Eag));default:throw Error("rV`"+a.errorType);}if(e&&!("sizeBytes"in a))throw Error("sV");c=a.id;if(e){e=Number(a.sizeBytes);if(!isFinite(e))throw Error("tV");a=Number(a.changelogCount);isFinite(a)||(a=null);return dx(tRh(c,e,a))}return dx(tRh(c,null,null))} function vFj(a){return Jv(a.ke,vGa)?Lv(a.ke,vGa):12E4};function AFj(a){this.D=a=a===void 0?new C8e:a}function VNh(a,c){if(!k6c(c))return dx(c);if(!MNh(c))throw Error("uV`"+c);return G8e(a.D,c).transform(function(e){return Yr($wb(e))})};function BFj(a){oI.call(this,Lb);this.reason=a}H(BFj,oI);function CFj(a,c,e,f,g,h,k){uI.call(this);var l=this;this.D=a;this.V=c;this.R=e;this.O=null;this.H=new vI(3E4);this.xa(this.H);this.Za=this.ob=null;this.F=[];this.J=f;this.Fa=new gx;this.xa(this.Fa);this.W=new gx;this.xa(this.W);this.ma=new gx;this.xa(this.ma);this.Da=new gx;this.xa(this.Da);this.va=new gx;this.xa(this.va);this.ea=new gx;this.xa(this.ea);this.Ja=new gx;this.xa(this.Ja);this.Ra=new gx;this.xa(this.Ra);this.Na=new gx;this.xa(this.Na);this.ib=new gx;this.xa(this.ib);this.Ua=new hx;this.xa(this.Ua); this.za=g;this.Ca=h;this.Sa=new kJ(this);this.xa(this.Sa);this.Sa.listen(this.H,rl,this.wb);this.Ua.Pa(this.J.H,function(){l.Da.dispatchEvent(new e7g(!l.J.isEnabled()))});this.wa=k||null;this.ag=null}H(CFj,uI);CFj.prototype.wb=function(){this.H.stop();this.Za=Date.now();this.dispatchEvent(new BFj("2"))}; function DFj(a,c){var e=c.Vf();if(e){var f=c.W,g=c.R==a.D,h=c.R||c.F,k=c.V;var l=a.R;var p=c.H,q=c.D,u=f?new Kuc(f):null;f=c.J;var w=tD(l.D),y=QDc(l.D);Xxc(l.D);p=aTh(l,p,q,f,null);p!=2&&p!=1?l=new XSh(p,null,null):!l.D.jb()&&bTh(e)?(S6g(l.D),l.ea.Db(29756,null),l=l.W,q=en("iP"),l.Ec(q,null,null),l=new XSh(5,null,null)):(w=f?w:q,y=f?y:u,u=null,l.D.jb()||e.length==0||(u=l.ma.fG("pqct")),e=VSh(l.V,l.D,e,w,y,f),!u||l.ma.eG(u),q>0&&p==2&&(l.H=q),l=new XSh(p,p==2?e.F:null,e.D));l.D==2&&(q=l.Vf())&&q.length> 0&&a.va.dispatchEvent(new d7g(q,g,h,k));g=l.D;if(g==5)return!1;if(g==3)return a.dispatchEvent(new BFj("3")),!1;(g=g==2)&&a.ma.dispatchEvent(new m7g(!1,c,l.F));a.W.dispatchEvent(null);g&&a.ea.dispatchEvent(new l7g(!1,c.J,c.hj(),c.V,c.ea))}k=c.getSelection();g=c.F;h=c.R;if(l=k&&(g||h))l=a.R,q=c.D,q=aTh(l,q,q,!0,!0),q!=2?k=new WSh(q,null):(k=l.V.J.D(k,l.D.Vf()),k=new WSh(q,k)),l=k,k=l.F,l=l.getSelection(),k==2&&l&&a.Ja.dispatchEvent(new coh(l,h||g,g==a.D||h==a.D,h==a.D)),l=k==3;if(l)return a.dispatchEvent(new BFj("4")), !1;(g=c.va)&&(g=g.D)&&a.Na.dispatchEvent(g);(c=c.va)&&(c=c.F)&&a.ib.dispatchEvent(c);return!0}function EFj(a,c){var e=c.Vf();return a.wa&&e&&!c.J?(e=V7g(a.wa,e))?k7g(e,c.getSelection(),c.V,c.hj(),c.H,c.D,c.F,c.R,c.ea,c.Jz(),c.ma,c.O,c.W,c.Rn(),GF(a.za),a.Ca):c:c};function FFj(a,c,e,f,g,h,k,l,p,q,u,w,y){uI.call(this);var z=this;this.D=a;this.Ca=new gx;this.xa(this.Ca);this.za=new gx;this.xa(this.za);this.wa=new gx;this.xa(this.wa);this.va=new gx;this.xa(this.va);this.V=new gx;this.xa(this.V);this.Fa=new gx;this.xa(this.Fa);this.Da=new gx;this.xa(this.Da);this.Za=new gx;this.xa(this.Za);this.Ua=new gx;this.xa(this.Ua);this.ib=new gx;this.xa(this.ib);this.ob=new gx;this.xa(this.ob);this.O=new hx;this.xa(this.O);this.F=c;this.F.Qj(this);this.F.Fa.TA(this.Ca); this.F.W.TA(this.za);this.F.Da.TA(this.wa);this.F.va.TA(this.va);this.F.ma.TA(this.V);this.F.ea.TA(this.Fa);this.F.Ja.TA(this.Da);this.W=q;this.qc=g;this.wb=e;this.Ja=f;this.J=h;this.J.O.TA(this.Za);this.J.J.TA(this.Ua);this.Sa=k;this.R=l;this.Na=u;this.Ib=w;this.Ub=y?y:(Joh(),Goh);this.fc=Date.now();this.Kb={};this.Eb=new kJ(this);this.O.Pa(e.svb(),function(A){if(A.D){var C=z.J;S6g(C.D);C.ea.Db(29756,null);sx(C.W,en("jP"))}A=A.F;z.R.log(A!=null?A.Ea:Error("BV"),z.Ra())});this.O.Pa(e.K5a(),function(A){if(A instanceof o7g){var C=A.D;if(C.length<=0)throw Error("Rj`"+C);A=C[C.length-1].end;var E=z.J,F=tD(E.D);if(E.D.V){C=z.F;E=z.H;C.O=Math.max(C.O||0,A);if(C.H.enabled)throw Error("vV");E||(C.ob=Date.now(),C.H.start())}else if(A>F)throw Error("CV`"+C+"`"+F);}GFj(z,"5")});this.O.Pa(f.F,function(A){var C=A.F;C.tL==412&&z.dispatchEvent("Ta");if(!z.isDisposed()){var E=z.Ra();E.commandReceiver_httpcode=C.tL;Vr(E,A.D);C.Il(z.R,"Catchup request failed",E)}});this.O.Pa(f.H,function(A){a:{if(!z.H)z.R.log(Error("EV"));else if(HFj(z, A.H,A.F,A.J)){var C=A.D,E=A.accessToken,F=A.H,I=A.F,J=A.J;A=[];for(var N=null,W=0;Wk&&a.za.info(Error("AV")),e){var l=!0;var p=f.F!=null&&!!g[f.F]||e.F!=null&&!!g[e.F];h&&e.D==k&&(l=!1);if(l){l=e;var q=f,u=a.wa||void 0;if((l.D+1|0)!=q.H||!L(l.F,q.F)||!L(l.R,q.R)||!Eo(l.hj(),q.hj())||p&&!go(l.Rn(),q.Rn())||l.J!=q.J||l.getSelection()&&!q.getSelection()&&!q.J)l=null;else{var w=null,y=l.Vf(),z=q.Vf();if(u&&z){if(y){var A= u;var C=y;var E=z;if(Mt(E))w=C;else if(Mt(C))w=V7g(A,E);else{w=0;for(var F=C[C.length-1|0],I=0;I0?(C=C.slice(0,C.length-1|0),C.push(F),E=E.slice(w,E.length)):C=iu(C);(A=V7g(A,E))||w!=0?(Xt(C,A?A:E),w=C):w=null}}w||(z=(u=V7g(u,z))?u:z)}w||(w=y&&z?y.concat(z):y?y:z);y=l.Jz();z=q.Jz();E=y||z?O(Math.max(y?y.yb():0,z?z.yb():0)):null;y=l.ma;z=q.ma;F=y||z?O(Math.max(y?y.yb():0,z?z.yb():0)):null;C=null;l.O&&q.O?(y=yrc(l.O),z=yrc(q.O),y= EIb(y,z),C=[CIb(y),DIb(y)]):l.O?C=l.O:q.O&&(C=q.O);y=q.getSelection()?q.getSelection():l.getSelection();z=q.V;u=l.hj();var N=l.H,W=q.D,Y=l.F,aa=l.R;A=q.ea;I=q.W;J=p?l.Rn():null;p=q=new g7g;var fa=l.za,ka=l.Ca;l=l.J;p.wa=w;p.Ja=y;p.V=z;p.Na=u;p.Da=E;p.ma=F;p.O=C;p.H=N;p.D=W;p.F=Y;p.R=aa;p.ea=A;p.va=null;p.J=l;p.W=I;p.Fa=J;p.za=fa;p.Ca=ka;l=q;j7g(l,!0)}}else l=null;l?e=l:(c.push(e),e=EFj(a,f))}else e=EFj(a,f);e&&c.push(e);a.F=c}c=Date.now();e=!1;for(f=Lv(a.Ca,"docs-mmpt");a.F.length&&a.J.isEnabled();){g= a;h=a.F[0];k=jxc(g.R.D)>0;l=g.V.fMa();l=h.F!=null&&!!l[h.F];aTh(g.R,h.H,h.D,h.J,null)==2&&g.Fa.dispatchEvent(new boh(l,h,k));if(g.J.isEnabled())if(l)if(h.Vf()){if(h.J)throw Error("xV");y=h.Rn();w=h.F;if(y===null)throw Error("yV");if(w===null)throw Error("zV");g.D==w&&g.Ra.dispatchEvent(new cSh(y,h.D));p=h.W;k=g.R;q=h.H;l=h.D;p=p?new Kuc(p):null;LDc(k.D);tD(k.D);Xxc(k.D);q=aTh(k,q,l,!1,null);q!=2&&q!=1?k=new XSh(q,null,null):(p=O6g(k.D,l,p,y,w),l>0&&q==2&&(k.H=l),k=p.F,k=new XSh(q,k,p.D?[]:k));q=k.D; q==3?(g.dispatchEvent(new BFj("1")),g=!1):(g.O!==null&&g.O<=h.D&&(g.O=null,g.H.stop()),l=k.Vf(),q=q==2,h=k7g(l,h.getSelection(),h.V,h.hj(),h.H,h.D,h.F,h.R,h.ea,h.Jz(),h.ma,h.O,h.W,h.Rn(),GF(g.za),g.Ca),q&&g.ma.dispatchEvent(new m7g(!0,h,k.F)),g.W.dispatchEvent(null),q&&g.ea.dispatchEvent(new l7g(!0,h.J,h.hj(),h.V,h.ea)),g=!0)}else g=!0;else g=DFj(g,h);else g=!1;if(!g)break;a.F.shift();!e&&a.F.length&&a.J.isEnabled()&&Date.now()-c>f&&(a.dispatchEvent(Sb),e=!0)}}}; FFj.prototype.kc=function(a){JFj(this,a.reason)};function JFj(a,c){if(a.H)throw Error("DV");a.H=!0;a.F.H.stop();GFj(a,c)}function GFj(a,c){if(a.H&&a.W.isEnabled()&&a.wb.Xda()&&!a.Ja.D){var e=tD(a.J.D)+1;a.ea=e;var f=QDc(a.J.D);KFj(a.Ja,e,f,a.Kb,c,c==Ba||c==UL?a.fc:void 0)}}function HFj(a,c,e,f){try{xrc(a.Ib,c,e,f,!1,a.Na.Cc)}finally{return a.Ib.F?(a.W.disable("unsupportedModelVersion"),!1):!0}} function IFj(a,c){c=c.Vf();return!a.Na.Fa&&c&&a.Ub.D(c)?(a.W.disable("staleNestedDrawingModel"),a=a.Na,a.Ce!=1&&(a.Ce=!0,a.Kk.dispatchEvent(new Gy(!0))),!0):!1}FFj.prototype.fb=function(){Iw(this.Eb);uI.prototype.fb.call(this)}; FFj.prototype.Ra=function(){if(this.isDisposed())return{commandReceiver_disposed:!0};var a=this.J;a={currentRevision:tD(a.D),transformmgr_hasSentChanges:a.D.oga(),transformmgr_hasUnsentChanges:PDc(a.D),transformmgr_queueLength:jxc(a.D),transformmgr_isAnachronistic:Xxc(a.D),transformmgr_isWaitingForAck:a.D.V};Vr(a,this.wb.Klb());var c={};c=(c.catchupTransporter_pendingCatchupRequest=this.Ja.D,c);Vr(a,c);c=this.F;var e={};e.commandProcessor_messages_length=c.F.length;e.commandProcessor_lastExpectedAckRevision= c.O;e.commandProcessor_waitForAckTimerEnabled=c.H.enabled;e.commandProcessor_lastAckTimeoutTimestamp=c.Za;e.commandProcessor_waitForAckTimerStartTimestamp=c.ob;Vr(e,bGc(c.J));Vr(a,e);Vr(a,bGc(this.W));a.commandReceiver_catchupMode=this.H;a.commandReceiver_lastChangeEventTimestamp=this.Qb;return a};function LFj(a,c,e,f,g,h,k){T.call(this);var l=this;this.W=c;this.V=e;this.ea=f;this.R=g;this.J=h;this.D=k;this.O=Date.now();this.F=!0;this.ag=null;this.H=new hx;this.xa(this.H);a.subscribe("5",function(p){return void MFj(l,p)})}H(LFj,T);function MFj(a,c){if(c.isMe){var e=a.F?a.V:a.ea;if(a.F&&(a.F=!1,Date.now()-a.O<1E4&&a.W==2))return;a.D&&a.D.p8a()?jx(a.H,a.D.O,function(){return void NFj(a,e)}):NFj(a,e)}} function NFj(a,c){if(a.J){var e=a.J;if(!e.H){var f=e.qc;!f.gF()&&!f.EIa()||JFj(e,c)}}OFj(a.R,c)};function PFj(){}PFj.prototype.H=function(){return dx(1)};function QFj(a,c,e,f,g,h,k,l,p){T.call(this);var q=this;this.va=a;this.W=c;this.V=e;this.H=f;this.O=g;this.za=h;this.D=p;this.F=new hx;this.xa(this.F);this.J=new kJ(this);this.J.listen(a,Sb,this.ea);this.J.listen(a,"Ta",this.ea);this.ma=function(){return RFj(q)};this.wa=k;this.R=l}H(QFj,T);QFj.prototype.ea=function(a){var c=this;SFj(this.D,a.type);this.za.disable(VQg);Iw(this.va);bxc(this.W.F,VQg);dx(null).transform(function(){return TFj(c)}).transform(function(){return RFj(c)})}; function TFj(a){return a.R?(Kxc(a.R,!0),a.R.flush(!0).Ml(function(c){a.wa.info(xFb(c))})):dx(null)}function RFj(a){a.V.Xda()?a.O.H()?(a.D.F++,a.F.Pa(a.O.R(),function(){return RFj(a)})):PDc(a.H)?(a.D.H++,UFj(a),a.F.Pa(a.H.za,a.ma)):(a.D.O=Date.now(),VFj(a.D),mfh(a.W)):(a.D.J++,a.F.Pa(a.H.za,a.ma))}function UFj(a){W7g(a.H,!0,2).addCallback(function(c){a.V.PHb(c.D,a.O.J(),null,c.Df())})}QFj.prototype.fb=function(){Iw(this.J);T.prototype.fb.call(this)};function WFj(a){this.V=a;this.O=this.R=-1;this.H=this.F=this.J=0;this.W=this.ea=!1;this.D=""}function SFj(a,c){a.R=Date.now();switch(c){case Sb:a.D="longMessageProcessing";break;case "Ta":a.D="staleRevisionData";break;default:a.D="unknowreason-"+c}} function VFj(a){var c={};c.startTime=a.R;c.endTime=a.O;c.aborted=a.W;c.startedOffline=a.ea;c.waitingForPendingCommandRequestCount=a.J;c.sendPendingBlobCount=a.F;c.sendPendingCommandsCount=a.H;c.reason=a.D;a.F+a.H+a.J>0&&(c.offlineIssueReason="Resolving stale client with pending commands",c.offlineIssueType=Aea);a.V.info(Error("JV"),c)};function XFj(a,c,e,f,g,h,k,l,p,q,u,w,y,z,A,C,E,F,I,J,N,W,Y,aa,fa,ka,qa,va,za,la,Ya,ra,Va,Ia,Oa,$a,eb,cb,sb,kb,Xb,Nb,Yb,ec,Zc){ec=ec===void 0?!1:ec;uI.call(this);var gd=this;this.Fa=a;this.Kb=c;this.Ib=e;this.Cc=kb||null;this.ib=f;this.H=g;this.Be=l;this.qc=p;this.Ne=q;this.Rd=u;this.Zd=w;this.O=y;this.Ua=z;this.J=A;this.Eb=C;this.Ja=Nb||null;this.Bd=Yb||null;this.Je=E;this.Ca=F;this.Za=J;this.xf=va;this.Na=null;this.Ub=fa;this.xa(this.Ub);this.R=ka;this.W=null;this.za=W;this.vd=Zc||null;this.Qb=h; this.kd=Oa||null;this.Fc=$a||null;this.yc=eb||null;this.qe=N;this.Wc=sb||0;this.wa=Xb||null;this.Ye=ec;this.F=new jFh(I,this.R,void 0,this.O,k,Ia,void 0,Emf(this.R),zbd(a,this.R,this.H),ra?this.J:void 0);this.F.WHa(e);Va&&lFh(this.F,Va,cb||this.R.Ha("docs-uootuns"));this.le=Y;this.nf=aa;this.Ra=null;Y&&(this.Ra=new RSh(Y,this.J.ib,this.J.ob,l),this.xa(this.Ra));this.Sa=new kJ(this);this.Sa.listen(this.F,"L",this.Qfd);this.Da=new hx;this.xa(this.Da);this.Da.Pa(this.J.va,function(){gd.pause()});this.R.Ha(wBa)&& YFj(this);ZFj(this);$Fj(this);wI(this.Mtd,0,this);this.va=this.ea=this.D=null;this.kc=!1;this.ob=null;this.Ce=Ya;this.Lc=la;this.V=this.wb=null;this.Vd=qa;this.ma=za;Ex(this.O,"comm_mgr_context",function(zc){return zc&&zc.message&&zc.message.includes("Saving is taking too long.")?JSON.stringify(aGj(gd)):""});this.fc=null}H(XFj,uI);D=XFj.prototype;D.pNa=function(){jD(this.Ca,yGa);return this.F};D.hZa=function(){jD(this.Ca,xGa);if(!this.D)throw Error("KV");return this.D}; function aGj(a){var c={};c.docInfo_Id=a.H.D;c.docInfo_LastModifiedTime=a.H.Fc;Vr(c,a.qc.B0a());return c}D.Qfd=function(a){a.Il(this.O,"handleNetServiceClientError_",aGj(this))}; D.Mtd=function(){var a=this;if(this.isDisposed()){var c=Error("MV");c.cause=this.fc;this.O.Ec(c,null,!0)}else xw(this.nf.H(this.F),function(e){if(a.Ye){var f=Error("NV");f.cause="!!FAKE ERROR in document creating to test crash reporting!!";a.O.Il(f)}e!==3&&e!==2&&(iD(a.Ca,yGa),a.kc=!0,bGj(a))},function(e){if(e){e=xFb(e);var f=dqb(e)}var g=Error("OV");g.cause=e;a.O.Il(g,f)})};D.initialize=function(a){this.ob=a;this.Ub.initialize();bGj(this)}; function bGj(a){if(a.ob!=null&&!a.J.gF()&&a.kc){a.ma.H&&(cGj(a),iD(a.Ca,xGa));a.ma.F&&dGj(a,eGj(a));if(a.ma.J){if(a.W)throw Error("QV");var c=a.Lc.W(a.F);a.xa(c);var e=GF(a.O);e=new URh(a.J,c,a.Eb,a.xf,new dD,e);a.Na=e;e=a.Vd;var f=a.Na;e.F=f;e.D&&(e.D=!1,f.H());a.xa(a.Na);a.ma.D&&(e=eGj(a),f=new YSh(a.J,a.ob,new USh(a.Rd,a.Zd,a.R),new Cx(a.O),a.Ua,a.Ce,null),a.xa(f),a.W=new CFj(a.Fa,a.J,f,a.za,a.O,a.R,a.kd||void 0,a.vd||void 0),a.V=new FFj(a.Fa,a.W,c,e,a.J,f,a.Ne,a.O,a.D,a.za,a.H,a.qe,a.Bd),a.xa(a.V), a.Ra&&(f=new zSh(a.le,a.Ra.J,a.W.Ra,a.V.ib,a.W.Na,a.Be),a.xa(f)),a.Fc&&(f=new QFj(a.V,a.Fc,c,a.J,a.Eb,a.za,a.O,a.Za,new WFj(a.O)),a.xa(f)),ffh(a.qc,c,a.Na,a.V,a.za),a.yc&&(a.R.Ha("docs-ehsr")||a.R.Ha("docs-ehbc"))&&(c=a.yc,f=!!a.Za&&!a.Za.ea,c=new fGj(c.R,a.D,a.J,e,a.W,c.F,new Sef(Lv(c.D,"docs-bhuitm")),c.H,c.J,f,Lv(c.D,"docs-bhbcitm"),Lv(c.D,"docs-hpm"),c.O),a.xa(c),a.R.Ha("docs-ehbc")&&a.Sa.listen(c,cc,a.Kcd).listen(c,"Va",a.Lcd)))}if(a.ma.F||a.ma.D)c=eGj(a),a.H.Zc()?(e=a.H.Za,c=new LFj(a.D,e?1: 2,e?"13":Da,"14",c,null,a.ea),a.wb=c):a.wb=a.Je?new LFj(a.D,1,"6","7",c,a.V,a.ea):new LFj(a.D,2,Ba,UL,c,a.V,a.ea),a.xa(a.wb)}}function cGj(a){if(a.D)throw Error("PV");var c=a.D=gGj(a.Qb);hGj(a,c);a.Ja&&a.R.Ha(afg)&&iGj(c,function(){if(c.F.BEa)a.Ua.Db(133236);else{hGj(a,a.Ja);var e=a.Ja,f=a.pNa().F.D.D;e.J=Ur(f);xFh(a.Ja,a.H.D,a.Fa,a.Ib,!1)}});YEh(a.F.O,c);a.ib&&a.resume()} function hGj(a,c){a.Kb&&(c.W=a.Kb);var e=a.H.J;c.qc=kD(e,1,1);c.Qb=kD(e,4,1);c.Kb=kD(e,3,1);c.Ub=a.H.W;e=Lv(a.R,pMa);c.Ua=e;c.ib=a.Wc}function eGj(a){if(a.va)return a.va;a.va=a.Lc.V(a.F);a.xa(a.va);return a.va}function dGj(a,c){if(a.ea)throw Error("RV");a.Cc&&(a.ea=a.Cc.create(a.F,a.D,a.Ua),a.Da.Pa(c.J,function(e){return void a.ea.aob(e.D)}))}function YFj(a){var c=a.H.R;c?a.F.Sja(sk,c):jx(a.Da,a.H.cg,function(){a.F.Sja(sk,a.H.R)})}function ZFj(a){if(a.wa){var c=dti(a.wa);c&&a.F.Sja($eb,c)}} function $Fj(a){if(a.wa){var c=a.wa.F;(c=Wp(c,Gsc,1)&&Wp(c.uh(),Fsc,1)&&Yq(R(c.uh(),Fsc,1),7)?vq(R(c.uh(),Fsc,1),7).toString():null)&&a.F.Sja(msa,c)}}D.pause=function(){this.D?aFh(this.D):this.ib=!1};D.resume=function(){this.J.gF()||(this.D?xFh(this.D,this.H.D,this.Fa,this.Ib):this.ib=!0)};D.fb=function(){this.fc=Error();Jw(this.ea,this.Sa,this.D,this.Qb,this.W);uI.prototype.fb.call(this)};D.Lcd=function(){this.pause()};D.Kcd=function(){this.resume()};function jGj(a,c,e,f,g,h){T.call(this);var k=this;this.F=new kEj(function(){!k.Qn||k.D&&!k.D.yq()||(k.Qn=!1,k.J())},f||5E3,g||45E3,h);this.H=new hx;this.xa(this.H);this.J=a;this.O=c;if(this.D=e||null)this.H.Pa(this.D.H,function(){k.Qn&&lEj(k.F,!0,!1)}),this.H.Pa(this.D.F,function(){k.F.stop()});this.xa(this.F);this.Qn=!1;this.ag=null}H(jGj,T);jGj.prototype.start=function(){this.Qn=!0;(!this.D||this.D.yq())&&(this.O?lEj(this.F,!1,!0):this.F.start())}; jGj.prototype.stop=function(){this.F.stop();this.Qn=!1};jGj.prototype.fb=function(){delete this.J;delete this.F;delete this.D;T.prototype.fb.call(this)};function kGj(){}kGj.prototype.stringify=function(a){return Am.JSON.stringify(a,void 0)};kGj.prototype.parse=function(a){return Am.JSON.parse(a,void 0)};function lGj(a,c){if(typeof a!==vh)throw Error("SV");return Am.setTimeout(function(){a()},c)};function pY(a){mGj.dispatchEvent(new nGj(mGj,a))}var mGj=new uI;function nGj(a,c){oI.call(this,"statevent",a);this.stat=c}H(nGj,oI);function oGj(a,c,e,f){this.F=a;this.D=c;this.R=e;this.O=f||1;this.Yt=45E3;this.H=new kJ(this);this.J=new vI;this.J.setInterval(250)}D=oGj.prototype;D.jka=null;D.lka=!1;D.fua=null;D.yjb=null;D.bGa=null;D.kZa=null;D.YFa=null;D.jZa=null;D.kka=null;D.JN=null;D.mZa=0;D.vnc=null;D.lZa=null;D.bC=null;D.aGa=-1;D.Ljc=!0;D.ZFa=!1;D.xjb=0;D.iZa=null;var pGj={},qGj={};D=oGj.prototype;D.setTimeout=lm("Yt");function rGj(a,c,e){a.kZa=1;a.YFa=F9g(c.clone());a.kka=e;a.za=!0;sGj(a,null)} function tGj(a,c,e,f,g){a.kZa=1;a.YFa=F9g(c.clone());a.kka=null;a.za=e;g&&(a.Ljc=!1);sGj(a,f)}function sGj(a,c){a.bGa=Date.now();uGj(a);a.jZa=a.YFa.clone();K8c(a.jZa,"t",a.O);a.mZa=0;a.JN=a.F.zjb(a.F.cGa()?c:null);a.xjb>0&&(a.iZa=new Ije(Km(a.jQb,a,a.JN),a.xjb));a.H.listen(a.JN,C8a,a.cvc);c=a.jka?Ur(a.jka):{};a.kka?(a.lZa=Gb,c[Hda]=Z8f,a.JN.send(a.jZa,a.lZa,a.kka,c)):(a.lZa=jb,a.Ljc&&!Bp&&(c.Connection=zd),a.JN.send(a.jZa,a.lZa,null,c));a.F.vaa(1)} D.cvc=function(a){a=a.target;var c=this.iZa;c&&a.oR()==3?c.Gn():this.jQb(a)}; D.jQb=function(a){try{if(a==this.JN)a:{var c=this.JN.oR(),e=this.JN.TG(),f=this.JN.getStatus();if(Bp&&!wpb("420+")){if(c<4)break a}else if(c<3||c==3&&!this.JN.xp())break a;this.ZFa||c!=4||e==7||(e==8||f<=0?this.F.vaa(3):this.F.vaa(2));vGj(this);var g=this.JN.getStatus();this.aGa=g;var h=this.JN.xp();if(this.lka=g==200){c==4&&wGj(this);if(this.za){for(a=!0;!this.ZFa&&this.mZa0?(this.bC=3,pY(13)):(this.bC=0,pY(14)),wGj(this),zGj(this)}}catch(l){}finally{}};function xGj(a,c){var e=a.mZa,f=c.indexOf("\n",e);if(f==-1)return qGj;e=Number(c.substring(e,f));if(isNaN(e))return pGj;f+=1;if(f+e>c.length)return qGj;c=c.slice(f,f+e);a.mZa=f+e;return c} D.cancel=function(){this.ZFa=!0;wGj(this)};function uGj(a){a.yjb=Date.now()+a.Yt;AGj(a,a.Yt)}function AGj(a,c){if(a.fua!=null)throw Error("TV");a.fua=lGj(Km(a.bvc,a),c)}function vGj(a){a.fua&&(Am.clearTimeout(a.fua),a.fua=null)}D.bvc=function(){this.fua=null;var a=Date.now();a-this.yjb>=0?(this.kZa!=2&&this.F.vaa(3),wGj(this),this.bC=2,pY(18),zGj(this)):AGj(this,this.yjb-a)};function zGj(a){a.F.Lr()||a.ZFa||a.F.Bjb(a)} function wGj(a){vGj(a);Iw(a.iZa);a.iZa=null;a.J.stop();lJ(a.H);if(a.JN){var c=a.JN;a.JN=null;c.abort();c.dispose()}a.vnc&&(a.vnc=null)}D.VB=x("lka");D.getLastError=x("bC");D.Rn=x("R");function yGj(a,c){try{a.F.kQb(a,c),a.F.vaa(4)}catch(e){}};function BGj(a,c,e,f,g){if(f==0)e(!1);else{var h=g||0;f--;CGj(a,c,function(k){k?e(!0):Am.setTimeout(function(){BGj(a,c,e,f,h)},h)})}}function CGj(a,c,e){var f=new Image;f.onload=function(){try{DGj(f),e(!0)}catch(g){}};f.onerror=function(){try{DGj(f),e(!1)}catch(g){}};f.onabort=function(){try{DGj(f),e(!1)}catch(g){}};f.ontimeout=function(){try{DGj(f),e(!1)}catch(g){}};Am.setTimeout(function(){if(f.ontimeout)f.ontimeout()},c);f.src=a} function DGj(a){a.onload=null;a.onerror=null;a.onabort=null;a.ontimeout=null};function EGj(a){this.D=a;this.F=new kGj}D=EGj.prototype;D.Ajb=null;D.bT=null;D.tcb=!1;D.Cjb=null;D.xc=null;D.mka=-1;D.nZa=null;D.fJa=null;D.connect=function(a){this.Cjb=a;a=FGj(this.D,null,this.Cjb);pY(3);Date.now();var c=this.D.va;c!=null?(this.nZa=GGj(this.D,c[0]),(this.fJa=c[1])?(this.xc=1,HGj(this)):(this.xc=2,IGj(this))):(K8c(a,"MODE",rtg),this.bT=new oGj(this),this.bT.jka=this.Ajb,tGj(this.bT,a,!1,null,!0),this.xc=0)}; function HGj(a){var c=FGj(a.D,a.fJa,"/mail/images/cleardot.gif");F9g(c);BGj(c.toString(),5E3,Km(a.eTc,a),3,2E3);a.vaa(1)}D.eTc=function(a){a?(this.xc=2,IGj(this)):(pY(4),this.D.Omc());a&&this.vaa(2)};function IGj(a){var c=a.D.J;c!=null?(pY(5),c?(pY(11),a.D.Oia(a,!1)):(pY(12),a.D.Oia(a,!0))):(a.bT=new oGj(a),a.bT.jka=a.Ajb,c=a.D,c=FGj(c,c.cGa()?a.nZa:null,a.Cjb),pY(5),K8c(c,gP,"xmlhttp"),tGj(a.bT,c,!1,a.nZa,!1))}D.zjb=function(a){return this.D.zjb(a)}; D.abort=function(){this.bT&&(this.bT.cancel(),this.bT=null);this.mka=-1};D.Lr=B(!1);D.kQb=function(a,c){this.mka=a.aGa;if(this.xc==0)if(c){try{var e=this.F.parse(c)}catch(f){this.D.pfb(this);return}this.nZa=GGj(this.D,e[0]);this.fJa=e[1]}else this.D.pfb(this);else this.xc==2&&(this.tcb?(pY(7),Date.now()):c=="11111"?(pY(6),this.tcb=!0,Date.now(),this.mka=200,this.bT.cancel(),pY(12),this.D.Oia(this,!0)):(pY(8),Date.now(),this.tcb=!1))}; D.Bjb=function(){this.mka=this.bT.aGa;this.bT.VB()?this.xc==0?this.fJa?(this.xc=1,HGj(this)):(this.xc=2,IGj(this)):this.xc==2&&(this.tcb?(pY(12),this.D.Oia(this,!0)):(pY(11),this.D.Oia(this,!1))):(this.xc==0?pY(9):this.xc==2&&pY(10),this.D.pfb(this,this.bT.getLastError()))};D.cGa=function(){return this.D.cGa()};D.isActive=function(){return this.D.isActive()};D.vaa=function(a){this.D.vaa(a)};function JGj(a,c,e,f){this.W=a||null;this.xc=1;this.F=[];this.H=[];this.O=new kGj;this.va=c||null;this.J=e!=null?e:null;this.ea=f||!1}D=JGj.prototype;D.dGa=null;D.eGa=null;D.bU=null;D.pG=null;D.Ejb=null;D.oZa=null;D.mQb=null;D.Djb=null;D.lQb=!0;D.fGa=0;D.nD=null;D.Oca=null;D.G7=null;D.oka=null;D.iea=null;D.BEa=null;D.pZa=-1;D.nQb=-1;D.Pca=-1;D.hua=0;D.gua=0;D.qQb=0;D.qZa=!1;D.nka=8;function KGj(a,c,e,f){oI.call(this,sSg,a);this.size=c;this.rtt=e;this.m6=f}Nm(KGj,oI); function LGj(a,c){oI.call(this,wQg,a);this.D=c}Nm(LGj,oI);D=JGj.prototype;D.connect=function(a,c,e,f,g){pY(0);this.Ejb=c;this.eGa=e||{};f&&g!==void 0&&(this.eGa.OSID=f,this.eGa.OAID=g);this.ea?(lGj(Km(this.Y_b,this,a),100),MGj(this)):this.Y_b(a)};D.disconnect=function(){NGj(this);if(this.xc==3){var a=this.fGa++,c=this.oZa.clone();QR(c,"SID",this.D);QR(c,v3f,a);QR(c,gP,"terminate");OGj(this,c);a=new oGj(this,this.D,a);a.kZa=2;a.YFa=F9g(c.clone());(new Image).src=a.YFa.toString();a.bGa=Date.now();uGj(a)}PGj(this)}; D.Y_b=function(a){QGj(this)&&(this.iea=new EGj(this),this.iea.Ajb=this.dGa,this.iea.F=this.O,this.iea.connect(a))};function MGj(a){a.dvc(1,0);a.oZa=FGj(a,null,a.Ejb);RGj(a)}function NGj(a){a.iea&&(a.iea.abort(),a.iea=null);a.pG&&(a.pG.cancel(),a.pG=null);a.G7&&(Am.clearTimeout(a.G7),a.G7=null);SGj(a);a.bU&&(a.bU.cancel(),a.bU=null);a.Oca&&(Am.clearTimeout(a.Oca),a.Oca=null)}D.bb=x("nD");D.Lr=function(){return this.xc==0};D.getState=x(im); function RGj(a){a.bU||a.Oca||(a.Oca=lGj(Km(a.pQb,a),0),a.hua=0)}D.pQb=function(a){this.Oca=null;if(QGj(this))if(this.xc==1){if(!a){this.fGa=Math.floor(Math.random()*1E5);a=this.fGa++;var c=new oGj(this,"",a);c.jka=this.dGa;var e=TGj(this),f=this.oZa.clone();QR(f,v3f,a);this.W&&QR(f,"CVER",this.W);OGj(this,f);rGj(c,f,e);this.bU=c;this.xc=2}}else this.xc==3&&(a?UGj(this,a):this.F.length==0||this.bU||UGj(this))}; function UGj(a,c){if(c)if(a.nka>6){a.F=a.H.concat(a.F);a.H.length=0;var e=a.fGa-1;c=TGj(a)}else e=c.Rn(),c=c.kka;else e=a.fGa++,c=TGj(a);var f=a.oZa.clone();QR(f,"SID",a.D);QR(f,v3f,e);QR(f,"AID",a.pZa);OGj(a,f);e=new oGj(a,a.D,e,a.hua+1);e.jka=a.dGa;e.setTimeout(1E4+Math.round(1E4*Math.random()));a.bU=e;rGj(e,f,c)}function OGj(a,c){a.nD&&(a=a.nD.wQb())&&Nr(a,function(e,f){QR(c,f,e)})} function TGj(a){var c=Math.min(a.F.length,1E3),e=["count="+c];if(a.nka>6&&c>0){var f=a.F[0].D;e.push("ofs="+f)}else f=0;for(var g={},h=0;h=3)return!1;a.V++;a.G7=lGj(Km(a.oQb,a),XGj(a,a.gua));a.gua++;return!0}D.oQb=function(){this.G7=null;if(QGj(this)){this.pG=new oGj(this,this.D,"rpc",this.V);this.pG.jka=this.dGa;this.pG.xjb=this.qQb;var a=this.mQb.clone();QR(a,v3f,"rpc");QR(a,"SID",this.D);QR(a,"CI",this.BEa?"0":"1");QR(a,"AID",this.pZa);OGj(this,a);QR(a,gP,"xmlhttp");tGj(this.pG,a,!0,this.Djb,!1)}}; function QGj(a){if(a.nD){var c=a.nD.xQb();if(c!=0)return YGj(a,c),!1}return!0}D.Oia=function(a,c){this.BEa=this.J==null?c:!this.J;this.Pca=a.mka;this.ea||MGj(this)};D.pfb=function(a){this.Pca=a.mka;YGj(this,2)};D.Omc=function(){this.Pca=this.iea.mka;YGj(this,9)}; D.kQb=function(a,c){if(this.xc!=0&&(this.pG==a||this.bU==a))if(this.Pca=a.aGa,this.bU==a&&this.xc==3)if(this.nka>7){try{var e=this.O.parse(c)}catch(f){e=null}if(Array.isArray(e)&&e.length==3)if(a=e,a[0]==0)a:{if(!this.G7){if(this.pG)if(this.pG.bGa+3E30)){if(f=c==1)this.bU||this.Oca||this.xc==1||this.hua>=2?f=!1:(this.Oca=lGj(Km(this.pQb,this,a),XGj(this,this.hua)),this.hua++,f=!0);f=!(f||c== 2&&WGj(this))}if(f)switch(e){case 1:YGj(this,5);break;case 4:YGj(this,10);break;case 3:YGj(this,6);break;case 7:YGj(this,12);break;default:YGj(this,2)}}};function XGj(a,c){var e=5E3+Math.floor(Math.random()*1E4);a.isActive()||(e*=2);return e*c}D.dvc=function(a){if(!jp(arguments,this.xc))throw Error("UV`"+this.xc);};function YGj(a,c){if(c==2||c==9){var e=null;a.nD&&(e=a.nD.F5b());var f=Km(a.tLd,a);e||(e=new IF(TUf),F9g(e));CGj(e.toString(),1E4,f)}else pY(2);ZGj(a,c)} D.tLd=function(a){a?pY(2):(pY(1),ZGj(this,8))};function ZGj(a,c){a.xc=0;a.nD&&a.nD.sQb(c);PGj(a);NGj(a)}function PGj(a){a.xc=0;a.Pca=-1;if(a.nD){if(a.H.length!=0||a.F.length!=0)qp(a.H),qp(a.F),a.H.length=0,a.F.length=0;a.nD.rQb()}}function FGj(a,c,e){var f=MF(e);if(f.ao()!="")c&&x8c(f,c+"."+f.ao()),y8c(f,f.H);else{var g=window.location;f=gqh(g.protocol,c?c+"."+g.hostname:g.hostname,+g.port,e)}a.eGa&&Nr(a.eGa,function(h,k){QR(f,k,h)});QR(f,"VER",a.nka);OGj(a,f);return f} D.zjb=function(a){if(a&&!this.qZa)throw Error("VV");a=new eL;a.Et=this.qZa;return a};D.isActive=function(){return!!this.nD&&this.nD.isActive(this)};D.vaa=function(a){var c=mGj;c.dispatchEvent(new LGj(c,a))};D.cGa=function(){return this.qZa||!1};function $Gj(){}D=$Gj.prototype;D.xQb=B(0);D.uQb=r();D.tQb=r();D.sQb=r();D.rQb=r();D.wQb=function(){return{}};D.F5b=B(null);D.isActive=B(!0);D.vQb=km();function aHj(){JGj.apply(this,arguments)}H(aHj,JGj);aHj.prototype.Oia=function(a){JGj.prototype.Oia.call(this,a,!0)};function bHj(a,c,e,f,g,h,k,l){var p=this;this.wb=a;this.Lc=f||null;this.Ib=this.za=Lw;this.ob=new kJ(this);this.V=this.D=this.ah=null;this.Fc=Date.now();this.vd=c||cHj;this.Ra=null;this.O=new hye;this.Eb=e;this.ma=!1;this.Ca=null;this.Za=-1;this.ea=this.Sa=this.Ja=!1;this.wa=new hx;if(this.H=g||null)this.wa.Pa(this.H.H,function(){return dHj(p)}),this.wa.Pa(this.H.F,function(){return dHj(p)});this.va=new jGj(Km(this.CDd,this),!0,this.H||void 0,7E3,45E3);this.Na=-1;this.R=null;this.J={};this.kc=!!h; this.yc=k;this.fc=!!k;c=a.Ha(afg);l&&c&&this.wa.Pa(l,function(){if(!p.F.BEa){var q=p.F;q.BEa=!0;q.J=!1}});this.Da=null;this.kd=a.Ha("docs-ar");this.Cc=a.Ha("docs-dbctc");this.Ua=null;this.ib=0;this.OQ=!1;this.subscribe("15",function(q){if(q=q.gaiaSessionIdentifier)ZI.Cb().D=q;else throw Error("WV`"+q);});this.W=this.F=null;this.qc=this.Qb=this.Kb=!1;this.Ub=0;this.ag=null}H(bHj,$Gj);D=bHj.prototype;D.subscribe=function(a,c,e){this.O.subscribe(a,c,e)};D.vQb=function(a){return this.Lc||a}; D.unsubscribe=function(a,c,e){return this.O.unsubscribe(a,c,e)};D.clear=function(a){return this.O.clear(a||void 0)};function cHj(a){return{type:a[0],sequence:a[1],data:a[2],Wmc:a[3]||null}}D.tQb=function(a){a=this.vd(a);if(a.sequence>this.Na){this.Na=a.sequence;if(this.Ra!=a.Wmc){var c=a.Wmc;this.Ra=c;eHj(this,mSg,c)}eHj(this,String(a.type),a.data)}};function eHj(a,c,e){a.Wc&&a.Wc(c,e);a.O.zq(c,e)} D.wQb=function(){var a=Ur(this.J);a.lsq=String(this.Na);this.W!=null&&(a.u=this.W);this.Kb&&(a.vc="1");this.Qb&&(a.c="1");this.qc&&(a.w="1");this.fc&&(a.xld="1");a.flr=this.Ub.toString();var c=$I(ZI.Cb(),this.wb);a.gsi=c;a.ssfi=Math.round((Date.now()-this.Fc)/1E3).toString();if(this.kd){var e=null;c=-1;var f=null;if(this.Da){var g;c=this.Da;f=-1;var h=e=null,k=Hn(c.W.D());c.V&&k-c.O>=(g=c.ea,g())&&(f=c.F,h=c.H,e=c.J);c.O=k;g=c.D.Zc()?c.D.za:null;c.H=g;c.F=c.R.AE();c.J=c.R.y4();g=new F$g(f,e,h);c= g.Df();f=g.F;e=g.D}e?a.acbri=e:c!=-1&&(a.ar=String(c),f&&(a.arat=f.D))}this.Ua!=null&&(a.smv=String(this.Ua));(g=Stc(this.wb))&&(a.smb=g);a.cimpl=String(this.ib);return a};D.xQb=function(){if(this.Fa)try{if(this.Fa.WZ())this.Fa.yga();else return 8}catch(a){throw ns(a,{"docs-origin-class":"docs.net.BrowserChannel"});}return 0};D.uQb=function(){this.ma=!0;this.ea=!1;dHj(this,0);this.Ib()};D.rQb=function(){this.ma=!1;this.ea||this.Za==421||this.va.start()}; function xFh(a,c,e,f,g){g=g===void 0?!0:g;a.ah=c||a.ah;a.D=e||a.D;a.V=f||a.V||"";Wo(a.V,"/");a.ma||a.ea||(a.Sa=!!g,fHj(a))}function fHj(a){a.F&&(a.F.nD=null,a.F.disconnect());var c;a.Eb?c=a.Eb():a.fc?c=a.yc():a.Cc?c=new aHj("1"):c=new JGj("1");c.dGa={"X-Same-Domain":"1"};c.lQb=!0;c.qZa=a.kc;c.qQb=200;c.nD=a;a.F=c;c={id:a.ah};a.D&&(c.sid=a.D);if(a.J)for(var e in a.J)c[e]=a.J[e];a.F.connect(a.V+"/test",a.V+"/bind",c)} function aFh(a){a.R=null;a.Ca=null;a.Za=-1;a.Sa=!1;a.ma&&(a.ea=!1,a.F.disconnect())}D.CDd=function(){this.Sa&&!this.ma&&(this.ea=!0,fHj(this),this.va.start())};D.sQb=function(a){dHj(this,a)};function dHj(a,c){if(c!=null)if(a.Ca=c,a.Za=$Eh(a),a.Ja||c!=6)a.Ja=!1,c==2&&$Eh(a)==409&&(a.Ra=null,eHj(a,mSg,null));else{a.Ja=!0;xFh(a);return}c=a.H&&!a.H.yq()?8:a.Ca!=null?a.Ca:0;c!=a.R&&(a.R=c,a.za.call(Am,c==0))}function vFh(a){return a.R==null||a.R==0}function $Eh(a){return a.F?a.F.Pca:-1} function ZEh(a,c){a.za=c;a.R!=null&&a.za(vFh(a))}function iGj(a,c){a.Ib=c}D.F5b=function(){return F9g(new IF(TUf))};D.VGd=lm(Xa);D.dispose=function(){this.OQ||(this.OQ=!0,this.F&&(this.F.nD=null,this.F.disconnect(),delete this.F),Iw(this.ob),Iw(this.wa),Iw(this.va),Iw(this.O),delete this.ob,delete this.va,delete this.H,delete this.O)};D.isDisposed=x("OQ");var gHj=null;function hHj(a){gHj||(!a.Ha("xdbcfAllowHostNamePrefix")||a.Ha("docs-spdy")||Reh()?gHj=null:(a=parseInt(Hbf.get("lbcs",ZN),10),isNaN(a)&&(a=-1),a=((a+1)%1E3).toString(),Hbf.set("lbcs",a,{xDb:-1,path:"/",domain:void 0,secure:!1}),gHj=a));return gHj};function iHj(a,c,e){JGj.call(this,a);this.R=c;this.ma=e}H(iHj,JGj);iHj.prototype.Oia=function(a,c){this.R.Db(c?133356:133237);c&&this.ma.dispatchEvent(null)};iHj.prototype.Omc=function(){this.R.Db(133238)};iHj.prototype.pfb=function(){this.R.Db(133239)};function jHj(a,c,e,f){T.call(this);this.H=c;if(a=c.Ha("xdbcfAllowXpc"))a=(new XMLHttpRequest).withCredentials!==void 0;this.F=a;if(this.D=f||null)f=new kJ(this),this.xa(f),f.listen(mGj,wQg,this.R);e&&(this.J=new obd(e.n,e.l,e.i,null),this.xa(this.J));this.J=null;this.O=new gx}H(jHj,T);function gGj(a){var c=a.F?hHj(a.H):null;c=new bHj(a.H,void 0,void 0,c,a.D||void 0,a.F,void 0,a.O);a.J&&(c.Fa=a.J);return c} function kHj(a,c){var e=a.F?hHj(a.H):null;return new bHj(a.H,void 0,void 0,e,a.D||void 0,a.F,function(){return new iHj("1",c,a.O)})}jHj.prototype.R=function(a){switch(a.D){case 1:uqf(this.D.D);break;case 2:case 4:yfh(this.D.D,!0);break;case 3:yfh(this.D.D,!1)}};function lHj(a,c,e,f,g,h,k){this.H=a;this.WC=c||ml;this.J=Xo(ss(e))?null:e;this.F=f!==void 0?f:200;this.R={};if(h)for(var l in h)this.R[l.toLowerCase()]=h[l];this.D=g!==void 0?g:0;this.V=k||{};this.O=void 0} function mHj(a,c){var e=a.response(),f=nHj(a.responseType()),g=a.contentType(),h=a.httpStatusCode(),k=a.errorCode(),l={};a=pm(a.O.split(ba));for(var p=a.next();!p.done;p=a.next())if(p=p.value,!Xo(ss(p))){var q=p.indexOf(Ea);q!=-1&&(l[p.substr(0,q)]=p.substr(q+2))}return new lHj(e,f,g,h,k,l,c)}function nHj(a){switch(a){case eoa:return eoa;case kpa:return kpa;case Dg:return Dg;case ml:return ml;case "":return ml;default:throw Error("XV`"+a);}}D=lHj.prototype;D.Sq=x("J");D.wM=x("WC"); D.Rt=function(){return this.D==0};D.Hr=function(a){return this.R[a.toLowerCase()]};function eFh(a){return a.H||""}D.Nd=function(){this.O===void 0&&(this.O=aSh(eFh(this)));return this.O};function nY(a,c){return a.Nd()[c]}function oHj(a,c){return nY(a,c)!==void 0?String(nY(a,c)):null}function oFh(a){var c={RespStatus:a.F,RespErr:a.D,RespType:a.WC,RespContentType:a.J,RespString:a.WC==ml?Sjh(eFh(a),50,!0)+" (truncated)":"responseObject"};Vr(c,a.V);return c} function pFh(a){if(a.Hr("X-Restart")=="NOW")return new xfh("M",a.D,a.F,function(){return a.Nd()});if(a.D==7)return null;var c=pHj(a)?"J":qHj(a)?"K":a.Rt()?"I":"H";return new xfh(c,a.D,a.F,function(){return a.Nd()},a.D==6&&a.F==500?dFh(a):null)}function pHj(a){var c=a.D,e=a.F;return a.Rt()?c!=0||e!=0||a.WC==ml&&a.H!=null?!1:!0:c==8||c==5||c==6&&(e<=0||e==503||e==405)?!0:!1} function qHj(a){var c=a.F;return a.D==6&&(c==202||c==401||c==403||c==409||c==429||c==433||c>=500&&c<=599&&c!=503&&c!=512&&c!=550)||c==400&&fFh(a)!=null?!0:c==200?a.J==null||dFh(a)?!0:nFh(a):!1}function nFh(a){if(a.F==200&&a.J!=null&&!dFh(a)&&a.WC==ml){if(Xo(ss(a.H)))return!0;if(Vo(eFh(a),dUf))try{return a.Nd()==null}catch(c){}}return!1};function rHj(a,c,e,f,g,h,k,l,p,q,u,w,y,z,A,C,E,F){if(u<=0)throw Error("YV`"+u);bqf.call(this,a,"",c,e,null,f,g,h,k,l,p,q,u,Gb,A,C,F);var I=this;this.Ra=w;this.ea=y;this.Ja=E;this.Na=z;this.D=null;this.H=new kJ(this);this.J=new zJ(function(){if(sHj(I)){var J=new lHj("",ml,null,0,8,{},vfh(I));I.jga(J)}},u);this.ag=null}H(rHj,bqf);D=rHj.prototype; D.Iib=function(a){this.J.isActive();var c=this.He();if(typeof c===Wk){var e=this.ea;var f=c.length;c=new TEj(c,"raw","",void 0);c.D=!0;c=iFj(e.D.D,c);f=new MEj("",f,c);e.dispatchEvent(new kFj([f],null));e=f}else e=mFj(this.ea,c,"docs_blob");this.D=e;e={};f=$I(ZI.Cb(),this.Ja);Xo(ss(f))||Vr(e,{authuser:f});Vr(e,a.D.D);f=this.D;e=cGb(this.Ra,e);f.R=e;this.D.O=this.W;e={};Vr(e,this.iR(),a.iR());this.D.W=Ur(e);e={};f=Dw(this.F);e.httpaction=f;if(f=Cw(6,this.F)){f=new C8c(f);c=f.Yc();for(var g=0;g0&&g.append(","),g.append(e.stringify(f[h])).append(":").append(e.stringify(f[h+1]));g.append("}");e=g.toString()}return new rHj(c,e,this.O,this.R,this.F,this.lsa(),this.H,this.J,this.wM(), this.V,a,this.Za,this.Ua,this.Fa,this.iR(),this.Et,this.lb())};tHj.prototype.BYa=function(a){if(!this.Sa)throw Error("aW`"+g7e(this));this.Sa.send(a)};function uHj(a,c,e,f,g,h,k,l,p,q,u,w,y,z,A,C,E,F,I){bqf.call(this,a,c,e,f,g,h,k,l,p,q,u,w,y,z,A,C,I);this.Ja=E;this.D=null;this.H=new kJ(this);this.ea=0;this.Ra=!!g;this.Na=F;this.J=new vHj}H(uHj,bqf); uHj.prototype.Iib=function(a){var c=this;this.D=this.Ja();this.H.Se(this.D,Kd,function(){var g=c.J;c.F.includes("/save")&&(g.D=Date.now());c.jga(mHj(Gmf(c.D),vfh(c)))});this.Ra&&this.H.listen(this.D,C8a,function(){if(c.D.oR()==3&&c.D.Rt()&&c.D.getStatus()==200){var g=c.D.xp();if(g.length>c.ea){var h=g.substring(c.ea);c.ea=g.length;c.V&&c.V(h)}}});BNe(this.D,this.Yt);if(this.wM()!=ml){var e=wHj(this.wM());this.D.GP(e)}this.D.Et=this.Et;e=cGb(this.Fa+this.F,a.D.D);var f={};Vr(f,this.iR(),a.iR());this.Na&& this.Yt>0&&(f["X-Client-Deadline-Ms"]=this.Yt);xHj(this.J,this.F);this.D.send(e,this.W,this.He(),f)};uHj.prototype.reset=function(){this.D&&(this.D.dispose(),this.D=null)};uHj.prototype.fb=function(){Iw(this.H);bqf.prototype.fb.call(this)};uHj.prototype.Hib=function(){var a=this.J;return{xhrrequest_saveRequestUri:a.F,xhrrequest_sendRequestTimestamp:a.H,xhrrequest_requestCompleteTimestamp:a.D}};function wHj(a){switch(a){case eoa:return eoa;case kpa:return kpa;case Dg:return Dg;default:return""}} function vHj(){this.F=null;this.D=this.H=-1}function xHj(a,c){c.includes("/save")&&(a.H=Date.now(),a.F=c)};function yHj(a,c,e,f,g,h){Upf.call(this,c,e,f,g);this.Fa=a;this.Ua=!!h;this.Sa=f.Ha("docs-ecdh")}H(yHj,Upf);yHj.prototype.kJa=function(){var a=this.Yt;a<0&&(a=this.Ua?4E4:2E4);return new uHj(Xpf(this),Wpf(this),this.He(),this.O,null,this.R,this.F,this.lsa(),this.H,this.J,this.wM(),this.V,a,this.W,this.iR(),this.Et,function(){return new eL},this.Sa,this.Ra)};yHj.prototype.BYa=function(a){if(!this.Fa)throw Error("aW`"+g7e(this));this.Fa.send(a)};function kFh(a,c,e,f,g,h){Upf.call(this,c,e,f,g);this.Fa=a;this.Za=f.Ha("docs-net-usud");this.Ua=Lv(f,"docs-net-udmi");this.Sa=h}H(kFh,Upf); kFh.prototype.kJa=function(){var a=null,c;if(c=this.Za&&this.wa){if(!tfh(this))throw Error("DJ");if(Array.isArray(this.Eq)){c=0;for(var e=this.Eq,f=0;fthis.Ua}c&&(a=new tHj(this.Fa,Xpf(this),this.Ja,this.lb(),this.Ca,this.Sa));a==null&&(a=new yHj(this.Fa,Xpf(this),this.Ja,this.lb(),this.Ca));this.AYa(a);return a.kJa()}; kFh.prototype.BYa=function(a){if(!this.Fa)throw Error("aW`"+g7e(this));this.Fa.send(a)};function zHj(a){this.D=a};function AHj(a,c,e,f){this.D=a;this.F=c;this.J=e;this.O=f}AHj.prototype.H=function(a){var c=this,e=Aw(BHj(this),function(){return CHj(c,a)});e.addCallback(function(f){f===1&&jHc(c.D.H)});return e};function BHj(a){if(a.F.Wb()||Avc(a.F)!==null||!a.J)return dx();var c=bx();a.J(a.D,function(){return c.callback(void 0)});return c} function CHj(a,c){if(!FNb(a.D.H.D)&&!Cvc(a.F))return dx(2);a.D.H.create();var e=bx();xw(DHj(a.F,c,a.O),function(){return e.callback(1)},function(f){f instanceof ZRh&&f.D==434?buc(a.D,3):e.Ad(f)});return e};function DHj(a,c,e){var f=bx();if(Cvc(a))f.callback(void 0);else if(a.Wb()===null)c={},c.docId=a.getId(),e.info(Error("bW"),c),a=new lw("Could not create document: document does not have a title"),f.Ad(a);else{e={newDocId:a.getId(),title:a.Wb()};var g=wuc(a,"ic");g&&(e.initialCommands=JSON.stringify(g));(g=cD(a,"fact"))&&(e.folder=g);(g=cD(a,U5a))&&(e.sourceDocId=g);(a=Gn(!0,cuc(a,gVa)))&&(e.nestedDrawings=a);wF(xF(XF(Z1c(zF(zF(zF(c.qh(Cba),"newDocId",e.newDocId),NOg,UTg),"offlinesource","fg")),e), function(){return f.callback(void 0)}),function(h){h=h.RB();h=new ZRh(h);f.Ad(h)}).Kh()}return f};function EHj(a,c,e,f,g,h,k,l,p,q,u,w,y,z,A,C,E,F,I,J,N,W,Y,aa,fa,ka,qa,va,za,la,Ya,ra,Va,Ia,Oa,$a,eb,cb,sb,kb,Xb,Nb){cb=cb===void 0?!0:cb;sb=sb===void 0?!0:sb;var Yb=new jHj(u,va,void 0,ra),ec=va.Ha(afg)?kHj(Yb,w):void 0;kb=new zHj(kb);var Zc=f.Zc(),gd=new dSh;sb&&(gd.H=!0,Zc||(gd.F=!0));cb&&(gd.J=!0);if(sb||cb)gd.D=!0;cb=sb;Y=f.Za?aa():F&&E&&cb?new AHj(f,E,Y,u):new PFj;E=la.N0b(h);gd=gd.oa();aa=new AFj(new C8e(!0,Ya,w,u));cb=new Qqf;sb=f.H;Zc=new bOh(f.Zc());a=new XFj(a,c,e,!0,f,Yb,g,h,k,l,p,q,u, w,y,A,F,I,kb,J,fa,ka,qa,Y,new eOh(z,C,aa,N,W,cb,sb,new Cx(u),w,Zc,va),va,za,E,gd,la.O0b(y),Ya,!0,ra,Va,Ia,Oa,$a,void 0,f.wj?1:0,eb,Xb,ec,Nb);a.xa(E);return a};function FHj(a,c,e){T.call(this);var f=this;this.D=a;this.H=c;this.F=e;a=new hx;this.xa(a);a.Pa(this.D.Ji(),function(){var g=f.H.getSize(f.D.Aa()).payload();g&&GHj(f.F,g.getType())})}H(FHj,T);function HHj(){var a=U('
'); return U('
'+a+'
')};function qY(a,c){var e=bji.Cb();QU.call(this,a,e,c)}H(qY,zii);function IHj(a){YV.call(this,a);this.D=new qY(void 0,a)}H(IHj,YV);IHj.prototype.Oa=function(){this.Zb(cK(HHj));eK(this.La(),D$f);Ss(this.Ya("docs-aclupgrade-banner-full-message"),"Your access to this file has been updated. Reload for changes to take effect.");this.D.re("docs-aclupgrade-banner-reload-button");this.D.bd(z3f);this.D.mC(dd);this.eb(this.D);this.D.render(this.Ya("docs-aclupgrade-banner-reload-button-wrapper"))}; IHj.prototype.Wa=function(){var a=this;YV.prototype.Wa.call(this);this.bb().listen(this.D,mc,function(){return void a.dispatchEvent("Wa")})};IHj.prototype.CB=B(14);IHj.prototype.C_=B(Rfg);function JHj(a,c,e){T.call(this);this.H=c;this.D=new IHj;ati(this.H,this.D);this.xa(this.D);this.J=e||null;this.F=new kJ(this);this.xa(this.F);this.O=new Spf(a);this.F.listen(this.D,"Wa",this.R)}H(JHj,T);JHj.prototype.R=function(){Odf(this.O,!0,"fws",!0)};function KHj(a,c){T.call(this);this.D=a;this.H=c||null;a=new l7c(this.D.J.D.clone());this.F=new nti(a,null,Bs());this.J=new JHj(this.D.O,this.F,this.H)}H(KHj,T);function LHj(a,c){T.call(this);var e=this;this.D=a;this.H=c||null;this.V=function(f){return void e.Yxb(f)};this.W=function(f){$tc(e.D,f.fileLockedReason)};this.H&&(this.H.subscribe("1",this.V),this.H.subscribe("25",this.W));this.Hk=new hx;this.xa(this.Hk);this.Hk.Pa(this.D.qc,function(){e.Byb()});this.Hk.Pa(q9g(this.D.J,12,1),function(){nuc(e.D,kD(e.D.J,12,1))});this.O=new gx;this.xa(this.O)}H(LHj,T);D=LHj.prototype; D.aob=function(a){if(!ww(this.D.va)){var c=this.D,e=CNb(BNb(a.NON_REGIONALIZED_FEATURES_DISABLED),a.MAESTRO_CONTAINER_TOKEN).oa();c.va.callback(e)}MHj(this,jJb(a.ACCESS_CAPABILITIES_JSPB_FORMAT));c=a.FIL