c);c=_.Ir(a,_.rJk);e=_.Ir(a,"paddingTop");this.D.style.marginLeft="-"+c;this.D.style.marginTop="-"+e;a.firstChild?this.HG(a.firstChild):this.render(a);_.Sr(this.Ca(),!0);_.Sr(this.V,!h);this.F.focus();f&&(this.oa=f.getId(),this.rb().listen(f,"rd",this.U0c))};_.D.Xf=function(){MY.prototype.Xf.call(this);this.H=this.R=this.Sk=null};
_.D.gYa=function(){_.sR(this.D,"","");this.D.style.marginLeft="";this.D.style.marginTop="";this.H&&this.H.focus();_.wr(this.Ca());this.Hc()&&this.Xf()};_.D.R0c=function(){this.Sk&&this.Sk();this.gYa()};_.D.S0c=function(a){a.keyCode==27&&(a.stopPropagation(),a.type==_.zh&&this.gYa())};_.D.Q0c=function(){this.gYa()};_.D.U0c=function(a){a.target&&a.target.getId()==this.oa&&this.R&&_.Sr(this.Ca(),!0)};_.D.T0c=function(a){a=a.target;_.zr(this.Ca(),a)||this.gYa()};
var MQl=null,N7l={},M7l=(N7l[VBk]="Delete this comment thread?",N7l["delete-reply"]="Delete this comment?",N7l[WBk]="Delete reply permanently?",N7l[rLk]="Delete reply?",N7l);_.J(_.$Y,_.EXj);_.J(_.aZ,_.VPl);_.D=_.aZ.prototype;_.D.i8=function(){if(!this.D){this.D=new vFl(this.getContext(),this.Va(),"dsr",this);this.wa(this.D);var a=this.D,c=WQl(this);a.Fa=c;this.D.yg(this.Fa&&this.oa?$xk:"Reply");this.p6b();this.Ca()&&SQl(this)}};
_.D.xCd=function(a){if(this.zb().Fa.kE())switch(a.preventDefault(),a.identifier){case _.Ijb:a=QQl(this);var c=RQl(this,a);c<=0?a[a.length-1].focus():a[c-1].focus();break;case _.gVa:a=QQl(this);c=RQl(this,a);c==a.length-1?a[0].focus():a[c+1].focus();break;case "ctrlUp":this.kx.Ca();this.kx.Ca().focus();break;case "ctrlDown":a=QQl(this),a[a.length-1].focus()}};
_.D.p6b=function(){this.D&&(this.rb().listen(this.D,"p",this.Z0c),NY(NY(NY(NY(NY(this,this.D,"c",this.X0c),this.D,"b",this.W0c),this.D,"e",this.Y0c),this.D,"s",this.AGa),this.D,"f",this.cZd))};_.D.Ya=function(){_.VPl.prototype.Ya.call(this);var a=this.Sa(),c=this.Va();this.D&&SQl(this);_.bI(a,_.JO);this.Yb=c.fc(kDk,a);this.Lc=c.fc(mDk,a);this.kx.render(this.Lc);TQl(this)};
_.D.tb=function(){_.VPl.prototype.tb.call(this);NY(this,this.Ca(),[_.vh,_.wh,_.zh],this.V0c);this.D&&CFl(this.D,this.Ca());_.Br(this.Ca(),!0)};_.D.yd=_.y("Yb");_.D.Ua=function(a){!this.isVisible()&&a&&_.JY(this.H).F&&this.AM();_.VPl.prototype.Ua.call(this,a)};_.D.Jc=function(a){_.VPl.prototype.Jc.call(this,a);if(this.kx){var c=this.kx;c.W=a;c.V&&zPl(c.V,a)}};
_.D.Cc=function(a){if(!_.CH(a.target,qEk)){if(!_.bw().Ja(_.mGk)||!this.yp()){var c=_.xY(this.getContext()),e=rol(mol(lol(this.getId()),this.La),this.Zp());c.Qb(IX).Cb(e.va());kOl(_.JY(this.H),this.getId());c.Qb(JX).Cb(qol(e).va())}this.ma=!0;this.HIc(a)}};_.D.HIc=_.u();_.D.V0c=function(a){this.dispatchEvent(a)&&!a.ctrlKey&&_.G6h(a)&&a.keyCode!=9&&a.keyCode!=13&&a.keyCode!=32&&a.keyCode!=69&&a.keyCode!=74&&a.keyCode!=75&&Zol(this.zb().J)&&this.ma&&(this.i8(),this.D.ready(),this.ma=!1)};
_.D.BPc=function(){var a=this;this.ma=!1;var c=this.Ca(),e=_.bw().Ja("docos-ehs");this.Ne().Zq()&&!e?this.mc(_.Jlh):c&&(e=function(){return a.mc(a.Ne().Zq()?_.Jlh:bCk)},this.zb().Gc?(0,this.zb().gg)(e,function(f){f||a.Ca()==null||a.Ca().focus()},!0):NQl(this.getContext(),this.Va()).prompt(c,e,VBk,this,this.Ca()))};
_.D.Z0c=function(a){if(this.D){var c=a.text,e,f=(e=Hrl(this.D.J))!=null?e:void 0;if(!_.Bl(c)){e=_.LY(KY(this.getContext()),this.getId());var g=this.dispatchEvent,h=this.getId(),k=this.Ne().vg(),l=this.Zp(),q=UQl(this);var r=this.D;r=r.R&&r.R.DP();g.call(this,new qQl(_.Ij,h,k,e,c,void 0,f,l,q,r));var w;(w=a.D)==null||w.complete()}}};_.D.X0c=function(){var a=aYk($Xk(cYk(),this.Ne().getId()),this.Ne().vg()).o1(1);a.Sb(PQl(this));a.yma(UQl(this));dGl(this.jc,43012,a.va())};
_.D.W0c=function(){this.yp()&&(this.ma=!0)};_.D.Y0c=function(){this.yp()&&(this.ma=!0)};_.D.ISc=function(){var a=Jpl(this.getContext()),c=this.Ne().getId();a=ZNl(a,c);WRl(this.kx,a.has(c));for(var e in this.xC)WRl(this.xC[e],a.has(e))};_.D.cZd=function(){if(YQl(this)==null){var a=aYk($Xk(cYk(),this.Ne().getId()),this.Ne().vg()).o1(1);a.Sb(PQl(this));dGl(this.jc,43095,a.va())}};
_.D.focus=function(){this.i8();var a=this.yp();a&&_.Tr(this.Ca())&&Zol(this.zb().J)&&(this.ma=!0);if(a){var c=this.Va();a=c.Kp();c.contains(this.Ca(),a)||_.SG(function(){this.Hc()&&!c.contains(this.Ca(),c.Kp())&&this.Ca().focus()},0,this)}};
_.D.update=function(){var a=this.Ne();this.kx.update();this.yg(a.Vi().Jk(),fZk(a)||void 0);TQl(this);for(var c in this.xC){var e=this.xC[c];a.pq(c)?e.update():(this.removeChild(e,!0),e.dispose(),EY(this.zb())&&this.dispatchEvent(new UPl(this.getId())),delete this.xC[c])}a.isResolved()!=this.oa&&(this.oa=a.isResolved(),!this.Fa||this.D)&&(this.i8(),!this.Fa&&this.oa?(this.D.Fa=ayk,this.D.yg($xk)):(c=this.D,e=WQl(this),c.Fa=e,this.D.yg(this.Fa&&this.oa?$xk:"Reply")),!a.isResolved()&&_.Oql(this.D)||
this.D.reset(!0));ZPl(this);!this.yp()&&this.D&&this.D.blur();VQl(this);a=this.Db;c=this.Ca();a.D&&c&&a.F&&(_.Rr(c).contains(new _.Nq(a.J,a.O))||SPl(a,!1));EY(this.zb())&&this.O&&(a=this.Ne())&&(c=Jpl(this.getContext()),c.F.qH()&&EY(c.F)&&(eOl(c,a),aOl(c,a.getId(),!0)),this.kx.update())};_.D.T5b=_.al(_.xia);_.D.gxc=_.y("kx");_.D.z5b=_.u();_.D.ob=function(){_.VPl.prototype.ob.call(this);this.F&&delete this.F;delete this.Yb;delete this.xC;delete this.D};_.J(OQl,MY);_.D=OQl.prototype;_.D.Ne=function(){return IY(this.D).Ne(this.W)};
_.D.pq=function(){return this.Ne().pq(this.getId())};
_.D.Ya=function(){var a=this.Va(),c=bZ(this),e=c.isDeleted()?null:c.Jk(),f;this.Ve=(f=e==null?void 0:e.getName())!=null?f:null;var g=pRl(this);f=ERl(this);if(cZ(this)&&this.Ne().rF()){var h=_.El(this.Ne().rF());h=h.replace(O7l,_.fca).replace(P7l," ");h=this.Bg.rk(h)}else h=null;this.Ib=h;var k=this.zb().W!=BIk,l,q,r;h=_.oI(fnl,{author:(l=e==null?void 0:e.getName())!=null?l:null,isAnonymous:(q=e==null?void 0:e.D)!=null?q:null,o4:this.zb().yoa()?(r=e==null?void 0:e.getId())!=null?r:null:null,RXa:f||
"",oq:this.Jp,Zp:this.R,canDelete:NRl(this),canEdit:ORl(this),LXb:g,isRoot:cZ(this),Zq:LRl(this),wQa:this.Ib||"",UYb:eRl(this,!0),uCa:URl(this),Afa:iRl(this),b4a:c.isDeleted()?!1:!!c.jZ(),yu:this.zb().yu(),LX:this.zb().qH(),timestamp:hRl(this),Pnd:_.uxk,ey:k,Gu:this.zb().Gu(),h_a:!0,csd:this.xa,kF:EY(this.zb()),ZS:this.zb().gN},void 0,a);this.Sc(h);e=a.fc(iCk,h);l=a.fc(wEk,h);this.jf=a.fc(GCk,h);this.Ff=a.fc(oCk,h);this.Nb=a.fc(zCk,h);e&&l&&(q=this.ma=new IPl(null,a),r=this.zb().yu(),q.xla=r,this.wa(this.ma),
this.ea=new IPl(null,a),this.wa(this.ea),this.ma.Dc(e),this.ea.Dc(l));if(q=a.fc(REk,h))r=this.O=new _.dW(null,a),g=this.zb().yu(),r.xla=g,this.wa(this.O),this.yb(this.O),this.O.Dc(q);(q||e&&l)&&rRl(this);bRl(this)&&(e=this.F.Ca(),_.FH(e,OKk),this.J=_.oI(inl,{wQa:this.Ib||"",UYb:eRl(this),o6d:fRl(this),V4d:GRl(this),kF:EY(this.zb())}),a.J4(this.J,a.fc(wFk,e)),this.wd=a.fc(PKk,this.J),this.Rg=a.fc(DKk,this.J),this.Bd=a.fc(JKk,this.J),this.Th=a.fc(HKk,this.J),this.Aa=a.fc(KKk,this.J),this.Ra.render(a.fc(NKk,
this.J)),this.Ra.Ca()&&this.D.zb().F.D(this.Ra.Ca(),_.dog),this.La.render(a.fc(LKk,this.J)),this.La.Ca()&&this.D.zb().F.D(this.La.Ca(),_.syk),EY(this.zb())&&!this.zb().aya()&&((e=this.Va().fc(IKk,this.J))&&_.Sr(e,!1),(e=this.Va().fc(FKk,this.J))&&_.Sr(e,!1)));this.Pe&&(e=this.Va(),this.Tb=e.fc(pCk,h))&&((new JQl(this.D,e)).Dc(this.Tb),DRl(this));if(!c.isDeleted()||this.D.zb().isClientSideEncrypted())if(e=a.fc(tEk,h))k=_.oI(Vml,{Wn:EY(this.zb())?MGk:KDk,H3a:LDk,oDc:k,oTc:EY(this.zb())}),a.appendChild(e,
k),_.Gr(e,_.Ok,""),k=[_.qHk,_.oe],cZ(this)&&(this.zb().Gu()&&!this.R&&(k=k.concat([_.kKk])),this.zb().Hj&&(k=k.concat([_.Kh])),k=k.concat([eKk])),this.gg&&(k=k.concat([SJk])),this.V=new APl(this.D,this.W,a,sEk,k,this.getId()),this.yb(this.V),this.V.Dc(e);this.Nw=a.fc(AEk,h);this.fl=a.fc(BEk,h)||this.Nw;this.oa=a.fc(YCk,h);this.le=a.fc(TEk,h);cZ(this)&&this.Ne().rF()&&(this.Fa=a.fc(KEk,h),this.zc=a.fc(OEk,h),this.jc=a.fc(MEk,h));this.zb().La!=_.ji&&!this.zb().Gu()&&cZ(this)&&(this.Lc=a.fc(LEk,h));
(this.bd=a.fc(dFk,h))&&MRl(this);this.Bk=a.fc(eFk,h);this.Hj=a.Wq(SEk,h);ORl(this)&&this.H&&mRl(this);(ORl(this)||NRl(this))&&(this.Gc=a.fc(CEk,h))&&_.Sr(this.Gc,!this.Ne().isResolved());this.Xa=_.OCb(a.rl,_.ub,DCk,h);!this.Xa&&cZ(this)&&this.getParent()&&!this.zb().Gu()&&(k=this.getParent().Ca(),this.Xa=_.OCb(a.rl,_.ub,DCk,k));this.Db=a.fc(JEk,h);VRl(this);this.Nl=a.fc(yEk,h);this.zb().qH()&&(this.bj=a.fc(oEk,h),EY(this.zb())&&(this.Ud=a.fc(pEk,this.R?this.F.Ca():this.Ca())),h=ZNl(Jpl(this.D),this.W),
(k=dRl(this))&&WRl(this,h.has(k.getId())));f&&(this.hb=f,XRl(this,_.yq(f).toString()),YRl(this),$Rl(this));jRl(this);CRl(this);this.xa&&(this.mc=new dQl(this.Ia,a,this.D,c,this.rb(),void 0,!1),this.xb=new kQl(this.Va(),this.D,this.mc),this.Ia.render(this.fc(GEk)),this.mc.D.clear(),hQl(this.mc),this.xb.xd(_.oI(KPl,{Wn:LGk})),this.kb=this.fc(FEk),this.xb.render(this.kb),_.YDb(this.kb,0),this.Do=this.fc(HEk));EY(this.zb())&&(this.Tc=a.fc(QEk,this.R?this.F.Ca():this.Ca()));sRl(this)};
_.D.AJc=function(a){a&&a.stopPropagation();lRl(this)};
_.D.tb=function(){var a=this;MY.prototype.tb.call(this);if(this.xa||this.gg)this.Kb=Hpl(this.D);this.xa&&!this.Kb.Hp()&&_.Kv(this.bb,this.Kb.F,function(){mQl(a.xb)});NY(this,this.Ca(),[_.kd,_.wh,_.zh],this.b1c);this.J&&this.Ib&&(NY(NY(this,this.Ra,_.mc,this.DRc),this.La,_.mc,this.DRc),SRl(this));this.Fa&&(NY(NY(this,this.jc,_.kd,this.FRc),this.zc,_.kd,this.FRc),TRl(this));this.Lc&&_.Gr(this.Lc,"textTransform",_.ji);this.O&&NY(this,this.O,_.mc,this.AJc);this.ma&&this.ea&&NY(NY(this,this.ma,_.mc,this.u0d),
this.ea,_.mc,this.f3d);(this.O||this.ma&&this.ea)&&NY(this,this.zb(),"r",this.c1c);this.V&&(NY(NY(NY(NY(this,this.V,"d",this.d1d),this.V,"e",this.x1d),this.V,_.$i,this.b3d),this.V,"r",this.AJc),this.gg&&NY(this,this.V,"prd",this.d1c));this.xa&&(NY(this,this.oa,[_.ci,_.bi,_.og,_.pg],this.BRc),NY(this,this.Do,[_.ci,_.bi],this.BRc),NY(this,this.xb,_.mc,this.e1c),this.Ia.setParent(this),this.rb().listen(this.Ia,_.yHk,this.sfc));wRl(this);aSl(this);this.H&&CFl(this.H,this.F.Ca());this.nh||this.collapse();
EY(this.zb())&&(this.R&&BRl(this),ARl(this),ZRl(this))};_.D.BRc=function(a){a=a.type===_.ci||a.type===_.og;this.Za.isVisible()&&!a||oRl(this,a)};_.D.d1c=function(){var a=bZ(this).getId();a=_.bw().Ja("docs-ededsi")?new IQl(this.W,a,this.D):new _.e5k(bol(bZ(this).TC(),this.D.zb().Xi().getId(),this.Kb,dol(this.D),this.W,a));_.xY(this.D).qa(_.EDa).Cb(a)};_.D.tUb=function(a){oRl(this,a);a||this.F.Ca().focus()};
_.D.e1c=function(){this.Za.isVisible()&&(this.Za.Vc(),this.tUb(!1));var a=this.Za,c=_.rR(_.Yzh(this.Sa())).y,e=_.rR(this.Sa()).y,f=_.Qr(this.Sa()).height;Lcl(a,c+e+f,this.sfc.bind(this),this.tUb.bind(this,!1),this.Ca())};
_.D.sfc=function(a){if(!this.zb().R_()){this.Za&&this.Za.isVisible()&&(this.Za.Vc(),this.tUb(!1));this.D.zb().Xi();this.D.zb().H.isAnonymous();(this.D.zb().Xi().D||this.D.zb().H.isAnonymous())&&_.sY(this.Eo,43194,_.rY(this.Ne()).va());var c=this.D.zb().Xi().getId();a=Xnl(a.emoji,this.Kb);var e,f,g=(f=(e=bZ(this))==null?void 0:e.TC())!=null?f:null;e=g?Onl(c,a,g):!0;if(c=Ynl(e,a,c,g,this.Kb))a=_.rY(this.Ne()),f=bZ(this).RUa(),a.V=f,a=a.va(),_.xY(this.D).Qb(zLk).Cb(new uol(this.W,cZ(this)?null:this.getId(),
c,e,a))}};_.D.c1c=function(){rRl(this)};_.D.x1d=function(){tRl(this);this.jF()};_.D.d1d=function(){this.zb().Gc||tRl(this);cZ(this)?this.F.BPc():IRl(this)};_.D.b3d=function(a){tRl(this);this.dispatchEvent(new TPl(_.$i,this.W));a.stopPropagation()};
_.D.update=function(){this.F.yp()&&this.Qd&&TRl(this);SRl(this);var a=this.H&&ORl(this)&&_.Oql(this.H),c=ERl(this),e=_.yq(c).toString(),f=!this.hb||_.yq(this.hb).toString()!=e;f&&(this.hb=c,_.br(this.Nw,c),$Rl(this));YRl(this);XRl(this,e);cZ(this)||this.dispatchEvent(new UPl(this.getId()));ORl(this)&&this.Gc&&!a&&_.Sr(this.Gc,!this.Ne().isResolved());wRl(this);aSl(this);VRl(this);DRl(this);if(PRl(this)&&!a){switch(this.Wa){case 1:this.expand();break;case 0:this.collapse();break;case 2:this.F.yp()?
this.expand():this.collapse()}MRl(this)}this.fHc();f&&(this.H&&this.H.Hc()&&this.H.reset(!0),this.MKb());rRl(this);this.V&&this.V.update();jRl(this);CRl(this);this.xa&&(hQl(this.mc),mQl(this.xb),cRl(this)||oRl(this,!1));sRl(this);ARl(this);ZRl(this)};
_.D.AM=function(){var a,c,e=(c=(a=bZ(this).Jk())==null?void 0:a.getName())!=null?c:null;e&&(a=vRl(this,_.Dq(e),"n"),this.Yb&&a.toString()==this.Yb.toString()||(this.Yb=a,_.br(this.Nb,this.Yb)));this.og&&(a=vRl(this,this.og,"b"),a.toString()!=this.hb.toString()&&(this.hb=a,_.br(this.Nw,this.hb),$Rl(this)))};_.D.fHc=function(a){if(this.le&&!bZ(this).isDeleted()){var c=hRl(this);c&&(a&&(this.le.textContent=c),a=dRl(this),cZ(this)||this.R||a.Bt().equals(a.CT())||(this.le.textContent=c))}};
_.D.Ua=function(a){_.Sr(this.Ca(),a)};_.D.isVisible=function(){return _.Tr(this.Ca())};_.D.N3=function(){return this.H!=null&&this.H.N3()};_.D.a1c=function(a){this.dispatchEvent(new UPl(this.W));a.stopPropagation()};
_.D.b1c=function(a){if(a.keyCode==13&&a.type==_.wh||a.keyCode==32&&a.type==_.zh||a.type==_.kd){var c=this.Ca(),e=a.target;!cZ(this)&&_.CH(e,DEk)&&c?(IRl(this),a.stopPropagation(),a.preventDefault()):_.CH(e,EEk)&&c?(this.jF(),a.stopPropagation(),a.preventDefault()):_.CH(e,eFk)&&c?(this.expand(),this.dispatchEvent(new UPl(this.W)),this.bd.focus()):_.CH(e,dFk)&&c?(this.collapse(),this.dispatchEvent(new UPl(this.W)),this.Bk.focus(),a.stopPropagation(),a.preventDefault()):c&&this.V&&_.zr(this.V.Ca(),e)?
(a.stopPropagation(),a.preventDefault()):this.xa&&_.zr(this.Ia.Ca(),e)&&this.Ia.Ca()!==e?(a.stopPropagation(),a.preventDefault()):this.xa&&_.zr(this.xb.Ca(),e)?(a.stopPropagation(),a.preventDefault()):EY(this.zb())&&(this.O&&_.zr(this.O.Ca(),e)&&(a.stopPropagation(),a.preventDefault()),this.ma&&this.ea&&(_.zr(this.ma.Ca(),e)||_.zr(this.ea.Ca(),e))&&(a.stopPropagation(),a.preventDefault()))}a.keyCode==32&&a.type==_.wh&&(a.stopPropagation(),a.preventDefault())};
_.D.acceptSuggestion=function(){var a=this.Ne();a&&a.Zq()&&JRl(this,cBk)};_.D.u0d=function(){var a=Date.now();this.acceptSuggestion();this.Xc&&yY(this.Xc,"dsabb",Date.now()-a)};_.D.f3d=function(){var a=Date.now();JRl(this,dBk);this.Xc&&yY(this.Xc,"dsrbb",Date.now()-a)};_.D.expand=function(){LRl(this)||(_.FH(this.oa,this.xa?XCk:WCk),this.Wa=this.oa.offsetHeight<=150?2:1,MRl(this))};
_.D.collapse=function(a){var c=this;a=a===void 0?!1:a;LRl(this)||!PRl(this)||a&&this.Wa===1||(_.FH(this.oa,this.xa?XCk:WCk),this.nh?_.eK(this,bSl).measure(function(e){e.height=c.isDisposed()||!c.oa?0:c.oa.offsetHeight}).ah(function(e){!c.isDisposed()&&c.oa&&(e.height<=150?c.Wa=2:(c.Wa=0,_.DH(c.oa,c.xa?XCk:WCk)),MRl(c))}).va()():(this.oa.offsetHeight<=150?this.Wa=2:(this.Wa=0,_.DH(this.oa,this.xa?XCk:WCk)),MRl(this)))};
_.D.jF=function(){ORl(this)&&(nRl(this),QRl(this,!1),this.oa&&this.expand(),this.H.Ua(!0),this.H.Ia=!0,this.H.ready(bZ(this).JI()),this.F.update())};_.D.MKb=function(){ORl(this)&&(QRl(this,!0),this.oa&&this.expand(),this.H&&(this.H.Ua(!1),this.H.Ia=!1,this.F.update()))};
_.D.lee=function(a){if(ORl(this)){nRl(this);var c=_.xY(this.D),e=a.text,f=aRl(this);if(!_.Bl(e))if(cZ(this))f=_.rY(this.Ne()).Sb(f).va(),e={id:this.W,text:e,iOb:this.H,Q6:f},c.Qb(oDk).Cb(e);else{var g=this.Ne(),h=bZ(this);g=_.rY(g);h=h.RUa();g.V=h;f=g.Sb(f);e={Xs:this.W,replyId:this.getId(),text:e,iOb:this.H,Q6:f.va()};c.Qb(sDk).Cb(e)}var k;(k=a.D)==null||k.complete()}};_.D.DRc=function(){if(this.J){var a=this.J,c=!_.CH(a,MKk);_.GH(a,MKk,c);this.F.yp()||tRl(this)}};
_.D.FRc=function(){var a=_.CH(this.Fa,NEk);_.Sr(this.zc,!a);_.Sr(this.jc,a);this.Qd=!a;a?_.IH(this.Fa,NEk,PEk):_.IH(this.Fa,PEk,NEk)};_.D.Xf=function(){MY.prototype.Xf.call(this);Orl(Dpl(this.D),this.Xa)};var P7l=RegExp("[\x00-\b\f-\u001f\ue000-\uf8ff]","g"),O7l=RegExp("[\n-\v]","g");_.J(cSl,MY);cSl.prototype.Ya=function(){var a=this.Va();this.Sc(_.oI(gnl,void 0,void 0,a));this.F=a.fc(fFk,this.Ca())};cSl.prototype.yh=_.y("H");cSl.prototype.Ua=function(a){a!=this.D&&this.Hc()&&(_.Sr(this.Ca(),a),this.D=a)};cSl.prototype.isVisible=_.y("D");_.J(eSl,_.aZ);_.D=eSl.prototype;_.D.Ya=function(){_.aZ.prototype.Ya.call(this);var a=this.Va(),c=this.Ca();this.xa=a.fc(xFk,c);this.Ra=a.fc(zFk,c);this.Xa=a.fc(AFk,c);this.J&&(this.J.Dc(a.fc(jCk,c)),_.eI(this.J.H.Sa(),_.LN));this.W&&fZk(this.Ne())&&this.W.render(a.fc(sFk,c));this.Aa=_.OCb(a.rl,_.ub,QFk,this.xa);a=this.Va();c=this.Ca();var e=a.fc(hDk,c);e&&(fSl(this,e,tzk),_.eI(e,tzk));if(e=a.fc(lDk,c))fSl(this,e,dzk),_.eI(e,dzk);if(a=a.fc(jDk,c))fSl(this,a,czk),_.eI(a,czk)};
_.D.tb=function(){_.aZ.prototype.tb.call(this);gSl(this);var a;(a=this.D)==null||CFl(a,this.Ca());this.J&&NY(NY(NY(NY(this,this.J,"d",this.BPc),this.J,"e",this.t1d),this.J,"r",this.k3d),this.J,_.$i,this.c3d);a=this.getContext().zb().Xi();uRl(Dpl(this.getContext()),this.Aa,a.Lk(),CYk(a));(!this.zb().yoa()||a.D)&&(a=a.getName())&&fSl(this,this.Aa,a);this.Za||this.collapse()};_.D.Jc=function(a){_.aZ.prototype.Jc.call(this,a);this.J&&zPl(this.J,a);this.W&&this.W.Jc(a)};_.D.Zp=_.C(!1);
_.D.update=function(){_.aZ.prototype.update.call(this);this.J&&this.J.update();this.W&&fZk(this.Ne())&&this.W&&this.W.update();gSl(this);this.Za&&this.zb().Gu()||hSl(this);this.O=this.yp();this.yp()?this.expand():this.collapse()};_.D.AM=function(){if(this.getContext().zb().ea.B2()){this.kx.AM();for(var a in this.xC)this.xC[a].AM()}};_.D.HIc=function(a){var c=this.Ca();a=a.target;_.CH(a,hDk)&&c?(this.i8(),this.D.ready()):_.CH(a,lDk)&&c?iSl(this):_.CH(a,jDk)&&c&&XQl(this)};_.D.t1d=function(){this.kx.jF()};
_.D.k3d=function(){this.Ne().isResolved()?XQl(this):iSl(this)};_.D.c3d=function(a){this.dispatchEvent(new TPl(_.$i,this.Ne().getId()));a.stopPropagation()};_.D.Xf=function(){_.aZ.prototype.Xf.call(this);Orl(Dpl(this.getContext()),this.Aa)};_.D.ob=function(){_.aZ.prototype.ob.call(this);delete this.J;delete this.Aa;delete this.xa;delete this.Ra;delete this.Xa};_.D.expand=function(){this.kb&&EY(this.zb())&&(this.kb=!1,this.R&&this.R.Ua(!1),jSl(this,!0))};
_.D.collapse=function(){EY(this.zb())&&(this.kb=!0,kSl(this),VQl(this))};_.D.T5b=function(a){_.aZ.prototype.T5b.call(this,a);kSl(this)};_.J(lSl,_.fNe);lSl.prototype.Aa=function(a){this.dispatchEvent(a.identifier)};_.J(rSl,_.RJ);rSl.prototype.Ya=function(){_.RJ.prototype.Ya.call(this);this.Sc(_.oI(qSl,{Crd:this.D}));this.D&&this.F.render(this.fc("docos-streampane-all-filtered-out-reset-filter"))};_.wl(_.sSl,_.iT);_.pl(_.sSl);_.D=_.sSl.prototype;_.D.Ae=_.C(_.OHk);_.D.QO=_.C(_.Wj);_.D.Ya=function(a){var c=_.sSl.Ad.Ya.call(this,a);(a=a.Jq())&&this.tj(c,a);return c};_.D.Dc=function(a,c){c=_.sSl.Ad.Dc.call(this,a,c);var e=this.Jq(c);e&&a.Zsa(e);a.Qc()&&(e=a.getParent())&&typeof e.EV===_.vg&&(a.Wd(8,!1),e.EV(a));return c};_.D.Jq=function(a){return a.title||""};_.D.tj=function(a,c){a&&(a.title=c||"")};_.wl(_.tSl,_.mT);_.tSl.prototype.Jq=_.y("F");_.tSl.prototype.tj=function(a){this.Df().tj(this.Ca(),a);this.Zsa(a)};_.tSl.prototype.Zsa=_.al("F");_.lT(_.OHk,function(){return new _.tSl(null)});_.wl(_.uSl,_.pT);_.pl(_.uSl);_.uSl.prototype.Ae=_.C(_.PHk);_.uSl.prototype.j6b=function(a,c,e){this.H||(this.F||vSl(this),this.H=_.QRh(this.F));var f=this.H[c];f?a.cI(f):_.uSl.Ad.j6b.call(this,a,c,e)};_.uSl.prototype.Tdb=function(a){var c=_.uSl.Ad.Tdb.call(this,a);this.F||vSl(this);c.push(this.F[a.gh()]);return c};_.wl(_.dZ,_.qT);_.D=_.dZ.prototype;_.D.IJb=!0;_.D.uQ=null;_.D.tb=function(){_.dZ.Ad.tb.call(this);wSl(this)};_.D.ob=function(){_.dZ.Ad.ob.call(this);this.uQ=null};_.D.removeChild=function(a,c){this.Okb(a);return _.dZ.Ad.removeChild.call(this,a,c)};_.D.gh=_.y(_.Qf);_.D.cI=function(a){_.POi(this,a==_.Lj||a==_.Yf?_.Mk:_.Jg);this.ea=a};_.D.F5b=function(a){_.dZ.Ad.F5b.call(this,a);this.IJb&&_.ySl(this,a)};_.D.EV=function(a){a?a.pe(!0):this.uQ&&this.uQ.pe(!1)};
_.D.Okb=function(a){if(a&&a==this.uQ){for(var c=_.yQ(this,a),e=c-1;a=this.ud(e);e--){var f=a;if(f.isVisible()&&f.isEnabled()){this.EV(a);return}}for(c+=1;a=this.ud(c);c++)if(e=a,e.isVisible()&&e.isEnabled()){this.EV(a);return}this.EV(null)}};_.D.TUb=function(a){this.uQ&&this.uQ!=a.target&&this.uQ.pe(!1);this.uQ=a.target};_.D.SOd=function(a){a.target==this.uQ&&(this.uQ=null)};_.D.NOd=function(a){this.Okb(a.target)};_.D.OOd=function(a){this.Okb(a.target)};
_.D.Dn=function(){_.rT(this)||this.Zm(this.uQ||this.ud(0))};_.lT(_.PHk,function(){return new _.dZ});_.J(_.zSl,_.dZ);_.zSl.prototype.qk=function(a){a=_.dZ.prototype.qk.call(this,a);_.DH(this.Ca(),this.D.Djc);return a};_.zSl.prototype.yq=function(a){var c=_.dZ.prototype.yq.call(this,a);(c||a.keyCode==9)&&_.FH(this.Ca(),this.D.Djc);return c};_.zSl.prototype.Dn=function(a){a=_.dZ.prototype.Dn.call(this,a);_.DH(this.Ca(),this.D.ybc);return a};_.zSl.prototype.Gp=function(a){a=_.dZ.prototype.Gp.call(this,a);_.FH(this.Ca(),this.D.ybc);return a};_.J(ASl,_.zSl);ASl.prototype.tb=function(){_.zSl.prototype.tb.call(this);this.F.D(this.ud(1).Sa(),"Comments that need your attention")};_.J(CSl,_.RJ);CSl.prototype.Ya=function(){_.RJ.prototype.Ya.call(this);this.Sc(_.oI(BSl,{GKa:this.F.OT,Zbe:!EY(this.F)}))};CSl.prototype.tb=function(){_.RJ.prototype.tb.call(this);this.D.Dc(this.Bb("docos-streampane-zero-state-add-comment-button"));this.H();this.rb().listen(this.F,"r",this.H)};CSl.prototype.H=function(){this.D.Rb(this.F.slb())};_.J(FSl,MY);FSl.prototype.Ya=function(){var a=this.Va();this.D=_.oI(ESl,{},void 0,a);this.Sc(this.D)};FSl.prototype.Vc=function(){this.D.parentElement.removeChild(this.D)};FSl.prototype.ob=function(){delete this.D};_.J(ISl,MY);_.D=ISl.prototype;_.D.tb=function(){var a=this;MY.prototype.tb.call(this);var c=this.Bb(UJk);_.sH(this.rb(),c,function(e){return a.tfc(e)});_.QS(c,"Hide summary");c=this.Bb(aKk);_.sH(this.rb(),c,function(){return a.ctc()});c=this.Bb($Jk);_.sH(this.rb(),c,function(){return a.opc()})};_.D.Xf=function(){_.KNk(this.rb(),this.Bb(UJk),this.tfc);_.KNk(this.rb(),this.Bb(aKk),this.ctc);_.KNk(this.rb(),this.Bb($Jk),this.opc);this.D&&this.D.disconnect();MY.prototype.Xf.call(this)};
_.D.Ya=function(){MY.prototype.Ya.call(this);this.Sc(_.oI(HSl,{Cfe:this.za().F}));_.Sr(this.Ca(),!1)};_.D.tfc=function(a){this.Ua(!1);a.stopPropagation()};_.D.Ua=function(a){if(this.Hc()){var c=_.Tr(this.Ca());_.Sr(this.Ca(),a);c!==a&&this.dispatchEvent("Tc")}};_.D.za=function(){return MY.prototype.za.call(this)};
_.D.qf=function(a){MY.prototype.qf.call(this,a);if(this.Hc())if(a=this.za().D===1?"Loading comment summary.":this.za().D===2?this.za().F:"",_.eI(this.Sa(),a),_.Br(this.Ca(),this.zb().Fa.kE()),a=this.za(),a.D===2&&a.F.length!==0||a.D===1){var c=this.Bb(ZJk);_.br(c,_.mR(a.F));this.Ua(!0);a.D===1?(LSl(this),this.Bb(YJk).style.display=_.Mc,_.JSl(this).style.display=_.ji):(this.Bb(YJk).style.display=_.ji,_.JSl(this).style.display=_.LX,MSl(this),c.offsetHeight>57?KSl(this,this.F):LSl(this),c.offsetHeight!==
57&&this.dispatchEvent("Tc"))}else this.Ua(!1)};_.D.opc=function(){KSl(this,!1);this.Bb(aKk).focus()};_.D.ctc=function(){KSl(this,!0);this.Bb($Jk).focus();this.dispatchEvent("Vc")};_.J(RSl,MY);_.D=RSl.prototype;_.D.Ya=function(){var a=this.Va(),c=a.Ya(_.Za,[nCk,_.tO]);this.Sc(c);if(this.H&&this.F)VSl(this),this.J!=FGk&&NY(this,this.D,[_.Yh,_.Zh,_.ai],this.f1c);else{var e=_.oI(_.qS,{icon:_.sO+this.J});a.appendChild(c,e);this.zb().F.D(c,SSl(this))}_.Sr(this.Sa(),!1)};_.D.BG=function(){return _.Tr(this.Sa())};
_.D.VE=function(a){if(this.Hc()&&this.BG()!==a&&(this.H&&this.zb().O!=1&&(a=!1),_.Sr(this.Sa(),a),_.Sr(this.V,!a),_.GH(this.D,gEk,a),this.H)){var c=!a;(WSl(this)&&this.BG()||c)&&YSl(this);this.ea.resize();a||this.Va().appendChild(this.D.parentNode,this.D)}};_.D.update=function(){!this.H||this.J!==DGk&&this.J!==FGk||VSl(this)};
_.D.f1c=function(a){if(a.type!==this.R)switch(a.type){case _.Yh:YSl(this);this.R=_.Yh;break;case _.Zh:ZSl(this);this.R=_.Zh;break;case _.ai:var c=this.D.offsetWidth-40;c=this.D.getBoundingClientRect().left+c;var e=this.D.getBoundingClientRect().top+36;a.clientX>c&&a.clientY>e&&(ZSl(this),this.R=_.Zh)}};_.J(aTl,MY);aTl.prototype.Ya=function(){this.qg(_.oI($Sl))};aTl.prototype.tb=function(){MY.prototype.tb.call(this);this.H.Dc(this.Bb(rEk));this.F.Dc(this.Bb(jEk));this.D.Dc(this.Bb(iEk));var a=this.F.Sa(),c=this.D.Sa(),e=_.ax(_.XBa).getLabel();this.J.F.D(a,e);_.eI(a,e);a=_.ax(_.WBa).getLabel();this.J.F.D(c,a);_.eI(c,a);NY(this,this.H,_.mc,this.R);this.F.Ua(_.ax(_.XBa).isEnabled());this.D.Ua(_.ax(_.WBa).isEnabled())};aTl.prototype.Ua=function(a){a!=this.O&&(this.O=a,_.Sr(this.Ca(),a))};
aTl.prototype.R=function(){var a=(new _.Dx).Sb(112).va();_.ax(_.vBa).Cb(new Jll,a)};_.J(_.bTl,_.aZ);_.D=_.bTl.prototype;_.D.AM=function(){this.kx.AM();for(var a in this.xC)this.xC[a].AM()};_.D.Jc=function(a){_.aZ.prototype.Jc.call(this,a);this.Aa&&this.Aa.Jc(a)};_.D.Zp=_.C(!0);_.D.vg=function(){return this.Ne()?this.Ne().vg():null};
_.D.Ya=function(){var a=this;_.aZ.prototype.Ya.call(this);var c=this.Ca();this.Za=this.fc(CEk);this.Ra=this.fc(mCk);var e=lCk;EY(this.zb())&&(e+=" docos-docoview-replycontainer");this.W=this.fc(e);this.F&&(this.F.render(c),this.F.Ua(!1));var f=this.Ne();e=!!f&&Xol(this.getContext().zb().J,f);_.GH(this.Ca(),"docos-docoview-resolve-button-visible",e);if(e=fZk(f))this.Aa.render(this.fc(kCk)),jTl(this,e);this.D&&CFl(this.D,this.Ca());this.R&&(this.R.render(this.fc(hEk)),this.R.Ua(!1));this.getContext().zb().O===
1&&this.VE(!0);rpl(this.zb())&&this.kb.render(c);(spl(this.zb())||rpl(this.zb()))&&this.Xc.addCallback(function(g){a.Kb=g;rpl(a.zb())&&(a.Ic=new g.H(g.D,a.kb,_.JY(a.H),_.xY(a.getContext()),f,a.zb().H,a.getContext()),a.wa(a.Ic));a.D&&spl(a.zb())&&BFl(a.D,g)})};
_.D.tb=function(){_.aZ.prototype.tb.call(this);var a=this.Ne();a&&fZk(a)&&this.ao(this.Aa,_.yQ(this,this.kx));ZPl(this);fTl(this);this.Ne().r8()>=2&&(a=gTl(this))&&hTl(this,a);this.AEa(!0);VQl(this);eTl(this);NY(NY(this,this,_.yj,this.RIc),this,_.Fg,this.QIc);EY(this.zb())&&this.rb().listen(this.Sa(),_.Akb,this.g1c);rpl(this.zb())&&this.ao(this.kb,0)};
_.D.Xf=function(){var a=this.Ne();if(a)if(this.D&&_.Oql(this.D)){var c=this.D.getValue();a.C_a=c}else a.C_a=null;this.rb().ef(this,_.yj,this.RIc);this.rb().ef(this,_.Fg,this.QIc);_.aZ.prototype.Xf.call(this)};_.D.K1d=function(){if(!_.bw().Ja(_.mGk)||!this.yp()){var a=new iol(this.getId(),this.La),c=_.xY(this.getContext());c.Qb(IX).Cb(a);kOl(_.JY(this.H),this.getId());c.Qb(JX).Cb(a)}};_.D.i1c=function(){this.V=null;$Pl(this)&&dTl(this,this.W.scrollHeight>this.W.offsetHeight)};
_.D.RIc=function(a){a.target instanceof _.xT&&(_.DH(this.Ca(),fDk),a.stopPropagation())};_.D.QIc=function(a){a.target instanceof _.xT&&(_.FH(this.Ca(),fDk),a.stopPropagation())};_.D.z5b=function(a){this.Za&&_.Sr(this.Za,a)};_.D.cjb=_.C(!0);
_.D.update=function(){_.aZ.prototype.update.call(this);var a=this.yp();this.yp()?this.Wh||this.zb().q_a()||(this.Wh=new _.FQ(this.Ca(),this.Va()),this.wa(this.Wh),_.GQ(this.Wh)):this.Wh&&(this.Wh.dispose(),this.Wh=null);a==this.O||this.BG()&&!EY(this.zb())||iTl(this);this.O=a;eTl(this);if(a=fZk(this.Ne()))this.Aa.update(),jTl(this,a);this.xa&&this.e3b();a=[this.kx].concat(Object.values(this.xC)).every(function(c){return!c.N3()});KRl(this.kx,a);EY(this.zb())&&(this.AEa(!1),this.D&&this.D.Ua(a));this.J&&
this.J.update()};_.D.expand=function(a){var c=!1;if(this.xa){this.kx.expand();for(var e in this.xC)c=this.xC[e],c.Ua(!0),c.expand();this.xa=!1;c=!0}else if(a){e=this.getId()==a?this.kx:this.xC[a];if(!e)return;e.expand()}else return;this.V=null;c&&this.F&&this.F.Ua(!1);this.AEa(!0);VQl(this)};
_.D.collapse=function(){if(!(this.xa||(fTl(this),this.xa=!0,this.V=null,this.zb(),_.bw().Ja("docs-edbsms")&&this.Ne().r8()<2))){var a=gTl(this);a&&(this.F&&this.F.Ua(!1),this.Ca().style.maxHeight="",this.yd().style.maxHeight="",hTl(this,a),this.AEa(!0),VQl(this))}};_.D.i8=function(){_.aZ.prototype.i8.call(this);spl(this.zb())&&this.Kb&&BFl(this.D,this.Kb)};
_.D.p6b=function(){_.aZ.prototype.p6b.call(this);this.D&&(this.rb().listen(this.D,["b","e","s"],(0,_.tl)(this.AEa,this,!0)),this.rb().listen(this.D,"e",this.Yyc),this.rb().listen(this.D,"f",this.K1d))};_.D.e3b=function(){var a=this,c=this.getSize();this.xa&&this.expand();this.collapse();if(this.Ib)_.eK(this).measure(function(){if(a&&!a.isDisposed()){var f=a.getSize();_.Pq(c,f)||a.dispatchEvent(new UPl(a.getId()))}}).mj().va()();else{var e=this.getSize();_.Pq(c,e)||this.dispatchEvent(new UPl(this.getId()))}};
_.D.AEa=function(a){var c=$Pl(this),e=EY(this.zb());if(c){this.i8();e&&this.W&&dTl(this,this.W.scrollHeight>this.W.offsetHeight);this.Ca().style.maxHeight=c+_.Zi;var f=this.R&&this.R.Ca()?this.R.Ca().offsetHeight:0,g=this.D.Ca().offsetHeight;if(e){var h=this.D.Ca().style.height;this.D.Ca().style.height=_.Ic;g=this.D.Ca().offsetHeight;this.D.Ca().style.height=h}c=c-g-f;f=this.fc(QEk);e&&f&&(f=getComputedStyle(this.fc(QEk)),c-=f.display!==_.ji?parseInt(f.height,10)+parseInt(f.marginTop,10)+parseInt(f.marginBottom,
10)+parseInt(f.paddingTop,10)+parseInt(f.paddingBottom,10):0);c>=200?this.yd().style.maxHeight=c+_.Zi:this.yd().style.maxHeight="";e&&(this.D.Ca().style.height=_.Ic);a&&(this.Ra.scrollTop=this.Ra.scrollHeight)}else e&&this.D&&(this.D.Ca().style.height=_.Ic)};
_.D.h1c=function(a){var c=_.xY(this.getContext());switch(a.identifier){case XAk:c.Qb(FCk).Cb({Xs:this.getId()});break;case _.kKk:$ol(this.getContext().zb().J)&&lRl(this.kx);break;case _.Nc:this.Yyc();break;case _.hi:this.dispatchEvent(_.reb);break;case _.tab:this.dispatchEvent("sp");break;case AKk:ZQl(this);break;case gKk:this.D.focus()}};_.D.Yyc=function(){var a=_.xY(this.getContext());a.Qb(IX).Cb(jol());kOl(_.JY(this.H),null);a.Qb(JX).Cb(jol())};_.D.g1c=function(a){a.stopPropagation()};
_.D.focus=function(){_.aZ.prototype.focus.call(this);this.O=this.yp();iTl(this)};_.D.LG=_.G(1832);_.D.VE=function(a){if(!this.J){var c=this.Ne().Zq(),e=EY(this.zb());c=c?e?"docs-icon-suggestion-24x24":CGk:DGk;this.J=new RSl(this.getContext(),this,this.Ra,this.Va(),c,this.Ne());this.wa(this.J);this.J.render(this.Sa())}c=this.J.BG();this.J.VE(a);this.Ib&&a==c||this.resize()};_.D.BG=function(){return!!this.J&&this.J.BG()};_.D.ob=function(){_.aZ.prototype.ob.call(this);delete this.Xa;delete this.Za};_.J(kTl,_.VPl);_.D=kTl.prototype;_.D.Ya=function(){var a=_.oI(QPl,{Zp:this.Zp(),INa:!0,jM:this.ZU(),uCa:2===this.Ne().Vi().getOrigin()?"Some reactions above were copied from original document":null},void 0,this.Va());this.Sc(a)};_.D.tb=function(){var a=this;_.VPl.prototype.tb.call(this);ZPl(this);NY(this,this.Ca(),[_.vh,_.wh,_.zh],function(c){return a.dispatchEvent(c)})};_.D.update=function(){lTl(this);ZPl(this);var a=eQl(this.ea,this.getId());this.Pw&&this.Pw.isVisible()&&!a&&this.Pw.Vc()};
_.D.Cc=function(a){if(!_.CH(a.target,qEk)){a=_.xY(this.getContext());var c=rol(mol(lol(this.getId()),this.La),this.Zp());a.Qb(IX).Cb(c.va());kOl(_.JY(this.H),this.getId());a.Qb(JX).Cb(qol(c).va())}};_.D.focus=function(){this.Ca().focus()};_.D.vg=_.y(_.Na);
_.D.j7a=function(){if(this.Ne().isResolved()){var a,c=(a=this.zb().V)==null?void 0:a.Bh("drocr"),e=this.Ne();a=_.xY(this.getContext());e=_.rY(e).Sb(krl(this.Zp(),this.zb().Zx())).va();a.Qb(VEk).Cb(new sol(this.getId(),!1,null,e,c))}else c=(e=this.zb().V)==null?void 0:e.Bh("drcr"),this.dispatchEvent(_.Sc),this.Pw&&this.Pw.Vc(),(e=this.Ne())&&!e.isResolved()&&(a=_.xY(this.getContext()),e=_.rY(e).va(),a.Qb(VEk).Cb(new sol(this.getId(),!0,null,e,c))),this.dispatchEvent(_.Xoa)};
_.D.j1c=function(a){var c=_.xY(this.getContext());switch(a.identifier){case XAk:c.Qb(FCk).Cb({Xs:this.getId()});break;case _.kKk:this.LUb();break;case _.Nc:this.GEb();break;case _.hi:this.dispatchEvent(_.reb);break;case _.tab:this.dispatchEvent("sp");break;case AKk:a=this.getContext(),(c=this.Ne())&&_.sY(Fpl(a),43045,_.rY(c).va()),c=this.getId(),_.xY(a).Qb(_.jFk).Cb(c)}};
_.D.GEb=function(){var a=this.getContext()==null;this.isDisposed()||a?this.gb&&this.gb.Zc(Error("p2"),{qOe:""+a,isDisposed:""+this.isDisposed()}):(a=_.xY(this.getContext()),a.Qb(IX).Cb(jol()),kOl(_.JY(this.H),null),a.Qb(JX).Cb(jol()))};_.D.ob=function(){_.VPl.prototype.ob.call(this);delete this.oa};_.J(mTl,kTl);_.D=mTl.prototype;_.D.Ya=function(){kTl.prototype.Ya.call(this);this.W.D.clear();hQl(this.W);this.J.render(this.fc(zDk));this.xa=this.fc(mCk);var a=this.fc(yDk);this.R.xd(_.oI(KPl,{Wn:_.vGk}));this.R.Bf(RHk);this.R.render(a);this.F.xd(_.oI(KPl,{Wn:LGk}));this.F.render(a);nTl(this);this.ma.n$(a);_.Sr(a,!1);_.J8h(this.ma,!1);this.ma.zQ(_.F8h(a,.3),_.G8h(a,.3));pTl(this);this.getContext().zb().O===1&&(this.VE(!0),WPl(this))};
_.D.tb=function(){var a=this;_.DH(this.Ca(),"docos-emoji-reaction-doco-view");kTl.prototype.tb.call(this);this.woa.Hp()||_.Kv(this.bb,this.woa.F,function(){nTl(a)});NY(this,this.F,_.mc,this.k1c);NY(this,this.R,_.mc,this.j7a);this.getContext().zb().F.D(this.R.Sa(),vzk);this.R.yg(vzk);this.J.setParent(this);this.rb().listen(this.J,_.yHk,this.cVa)};
_.D.update=function(){kTl.prototype.update.call(this);var a=!(!this.D||!this.D.BG()),c=EY(this.zb());if(c||!a)a=this.yp(),c&&a!=this.O&&qTl(this),this.O=a,a=eQl(this.ea,this.getId()),a!=this.ma.isVisible()&&this.ma.Ua(a),hQl(this.W),nTl(this),this.resize(),oTl(this),pTl(this),this.D&&c&&this.D.update()};
_.D.cVa=function(a){if(!this.getContext().zb().R_()){this.Pw&&this.Pw.Vc();var c=Xnl(a.emoji,this.woa);this.getContext().zb().Xi();this.getContext().zb().H.isAnonymous();a=_.rY(this.Ne()).va();(this.getContext().zb().Xi().D||this.getContext().zb().H.isAnonymous())&&_.sY(this.Fa,43194,a);var e=this.getContext().zb().Xi().getId(),f=this.Ne().Vi().TC(),g=Onl(e,c,f);(c=Ynl(g,c,e,f,this.woa))&&_.xY(this.getContext()).Qb(yLk).Cb(new tol(this.Ne().getId(),c,g,a))}};_.D.LUb=function(){this.j7a()};
_.D.focus=function(){EY(this.zb())&&(this.O=this.yp(),qTl(this));this.Pw&&this.Pw.isVisible()?this.Pw.focus():kTl.prototype.focus.call(this)};_.D.k1c=function(){this.Pw&&(this.Pw.isVisible()?this.Pw.Vc():Lcl(this.Pw,_.rR(this.Sa()).y+_.Qr(this.Sa()).height+4,this.cVa.bind(this),this.ySc.bind(this)),this.ySc())};_.D.ySc=function(){oTl(this);var a=this.Pw&&this.Pw.isVisible();_.cI(this.F.Sa(),_.bUg,!a)};_.D.ZU=_.C(!1);_.D.Zp=_.C(!0);_.D.BG=function(){return!!this.D&&this.D.BG()};
_.D.VE=function(a){this.D||(this.D=new RSl(this.getContext(),this,this.xa,this.Va(),FGk,this.Ne()),this.wa(this.D),this.D.render(this.Ca()));this.D.VE(a);this.resize()};_.D.getHeight=function(){return EY(this.zb())&&this.zb().O==1?Math.min(this.Ca().scrollHeight,64):kTl.prototype.getHeight.call(this)};_.J(rTl,_.rH);_.D=rTl.prototype;_.D.YIc=function(a){this.D.Va().contains(this.D.Ca(),a.target)||this.D.Ca().nextSibling==a.target||(this.J=this.H=!1,vTl(this,!0),this.ef(this.V,_.og,this.YIc).ef(this.ea,_.xj,this.Xyc),a=jol(),this.Ha.Qb(IX).Cb(a),this.Ha.Qb(JX).Cb(a))};_.D.Xyc=function(){vTl(this,!1)};
_.D.m1c=function(a){var c=a.data;if(a=c.Zo())if(a=this.D.ue(a)){if(this.F=_.LY(KY(this.O),c.Zo()),c.D==this.D.getId()){tTl(this);vTl(this,!1);a instanceof _.bTl&&(a.Va().Rs(a.Ca(),!0),cTl(a,!0));if(this.F!=0&&this.J&&!this.H&&a instanceof _.bTl)a:if(a.i8(),a.D)a.D.ready(void 0,void 0,!0),a.D.ea.focus();else{c=a.Ne().sF(!1);for(var e=c.length-1;e>=0;e--)if(yRl(a.xC[c[e].getId()]))break a;yRl(a.kx)||a.focus()}else a.focus();this.J=this.H=!1}}else this.J=this.H=!1;else this.J=this.H=!1,vTl(this,!0)};
_.D.n1c=function(a){a=a.data;var c=_.GY(_.JY(this.O),a.fF);if(c){for(var e=0;e<this.D.Jd();e++)if(c.getId()==this.D.ud(e).getId()){this.F=a.fF;break}this.H=!0;vTl(this,!1)}};_.D.l1c=function(){wTl(this)};_.D.o1c=function(){_.JY(this.O).H||wTl(this)};xTl.prototype.Zo=_.y("F");_.J(ATl,MY);_.D=ATl.prototype;
_.D.tb=function(){MY.prototype.tb.call(this);_.WI(this.Ca(),_.cwa);_.EH(this.Ca(),[_.cwa,qFk,mHk,_.ZCk]);this.Ca().id=qFk;this.zb().fl&&this.zb().Zx()&&_.DH(this.Ca(),"streamview-height-on-banner");_.bI(this.Sa(),_.Lh);_.DH(this.Ca(),"docos-stream-view-height");this.zb().W!=BIk&&(_.DH(this.Ca(),_.SJg),_.DH(this.Ca(),"docs-grille-gm3"));_.EH(this.yd(),this.D.Mya());this.rb().listen(this,"rd",this.p1c);var a=_.xY(this.context);this.xa.Dd(a.qa(JX),_.uK,this.f7a);this.context.zb().q_a()&&_.CH(this.Ca(),
dEk)&&(this.ma=new rTl(this.context,this),this.O=this.Ke.createElement(_.Za),_.DH(this.O,"docos-tab-sentinel"),this.rb().listen(this.Ca(),_.lg,this.q1c).listen(this.O,_.lg,this.w3d),this.SR().appendChild(this.O),this.oa=new _.UV);this.Rlc()};_.D.ufc=_.C(!0);_.D.FYa=function(){this.D.x$();DTl(this);this.D.xoa(!0);this.dispatchEvent("ail")};_.D.q1c=function(){uTl(this.ma)};_.D.w3d=function(){var a=this.ma;a.J=!0;uTl(a)};
_.D.Rlc=function(){var a=IY(this.context);if(a.Ima()){this.D.xoa(!1);a=a.s1();for(var c in a)CTl(this,c);this.D.Gna();this.FYa()}};_.D.AM=function(a,c){for(var e=this.Jd()-1;e>=0;--e){var f=this.ud(e);a&&!a[f.getId()]||!c&&!f.isVisible()||f.AM()}};
_.D.f7a=function(a){if(this.F&1)this.ea=a;else{var c=a.data;a=c.Zo();var e=c.D;c=c.O;if(!this.context.W&&this.D.e$a(a,e)){if(this.oa&&a&&this.D.nG()!=a){var f=this.Jd(),g=_.yQ(this,this.ue(a))+1;_.VV(this.oa,"Comment "+g+_.jM+f+" ")}this.dispatchEvent("us");this.D.Vua(a,e,c);DTl(this);this.dispatchEvent("ud")}}};
_.D.I0d=function(a){a=_.dl(a.Laa);for(var c=a.next();!c.done;c=a.next()){var e=c.value;c=e.Xs;e=e.clientId;c&&(IY(this.context).Ne(c),(e=this.ue(c)||e&&this.ue(e))?(e.getId()!=c&&e.Jc(c),this.H.push(c)):this.W[c]=!0)}};_.D.g1d=function(a){this.R.push(a.Zo())};_.D.H1d=function(a){zTl(this,a.O)};_.D.p1c=function(a){this.ue(a.Xs)&&(this.D.PSa(a.Xs),DTl(this))};_.D.t3d=function(a){a.Zo()&&this.ue(a.Zo())&&this.D.S9b(a.Zo())};
_.D.r1c=function(a){var c=IY(this.context).Ne(a.Xs);if(a=this.context.zb().ma.reanchor)c=c.vg(),c=GQk(new fY(eKk),c).va(),a(c),this.context.W=!0};
_.D.G3d=function(a){var c={text:a.D,anchorId:a.anchorId,fF:a.fF,HJa:a.anchorId,assignee:a.assignee};a.anchorId&&this.context.zb().Ib&&(c.quote=(0,this.context.zb().Ib)(a.anchorId));var e;if(a.Xs){var f=IY(this.context).Ne(a.Xs);f&&f.X7()&&(e=31)}e===void 0&&(e=krl(!!a.Zp,this.context.zb().Zx()));e=$Xk(cYk().Sb(e),a.Xs);c.assignee?e.o1(3):e.o1(1);c.anchorId&&aYk(e,c.anchorId);a.pCa!==void 0&&e.yma(a.pCa);c.IJa=e.va();_.xY(this.context).Qb(lEk).Cb(c)};
_.D.H3d=function(a){var c={uOb:a.D,fF:a.fF,HJa:a.anchorId,IJa:$Xk(aYk(cYk(),a.anchorId),a.Xs).o1(4).va()};a.anchorId&&this.context.zb().Ib&&(c.quote=(0,this.context.zb().Ib)(a.anchorId));_.xY(this.context).Qb(gJk).Cb(c)};
_.D.I3d=function(a){var c=IY(this.context).Ne(a.Xs);if(!c)throw Error("q2`"+a.Xs);var e=krl(!!a.Zp,this.zb().Zx());e=_.rY(c).Sb(e);a.pCa!==void 0&&e.yma(a.pCa);a.F&&(e.Aa=a.F);e=e.va();var f=_.xY(this.context);c.isResolved()?f.Qb(VEk).Cb(new sol(a.Xs,!1,a.D,e)):f.Qb(nEk).Cb(new xTl(a.Xs,a.D,e,a.assignee))};_.D.u3d=function(){this.D.dVa()};_.D.v3d=function(){this.D.eVa()};_.D.J0d=function(){this.D.fub()};_.D.y0d=function(){this.D.eub()};
_.D.j8d=function(a){for(var c=a.Grc.length,e=0;e<c;++e)ETl(this,a.Grc[e])};_.D.SR=function(){var a=this.Ca();return a?a.parentElement:null};_.D.ob=function(){MY.prototype.ob.call(this);delete this.xa};_.J(GTl,_.gv);GTl.prototype.start=function(){this.J=!0;HTl(this)};GTl.prototype.ob=function(){this.H.dispose();_.gv.prototype.ob.call(this)};_.J(JTl,ATl);JTl.prototype.ufc=_.y(_.Eb);JTl.prototype.FYa=function(){ATl.prototype.FYa.call(this);this.Aa.Hc()&&this.Aa.Vc();this.La=!0;this.Fa&&this.f7a(this.Fa)};JTl.prototype.Rlc=function(){var a=this,c=IY(this.context);if(c.Ima()){this.Aa.render(this.SR());this.D.xoa(!1);var e=c.s1(),f;for(f in e)this.V(e[f])&&this.J.push(f);this.Ra&&this.J.sort(function(g,h){return a.D.exa(e[h],e[g])});ITl(this.Xa,function(){return KTl(a)})}else this.FYa()};
JTl.prototype.f7a=function(a){this.La?ATl.prototype.f7a.call(this,a):this.Fa=a};_.J(eZ,_.VPl);_.D=eZ.prototype;_.D.Ya=function(){this.oa=new _.fNe(this.Ca());this.wa(this.oa);var a=this.oa;a.Yk(XAk,85);a.Yk(_.kKk,69);a.Yk(_.Nc,27);a.Yk(_.hi,74);a.Yk(_.hi,_.yw(["N","C"]));a.Yk(_.tab,75);a.Yk(_.tab,_.yw(["P","C"]));a.Yk(gKk,82)};
_.D.tb=function(){_.VPl.prototype.tb.call(this);this.rb().listen(this.F,"p",this.yJc).listen(this.F,"c",this.Q0b).listen(this.F,"s",this.AGa).listen(this.F,"b",this.s1c).listen(this.F,"e",this.HEb).listen(this.F,"f",this.T0b);this.rb().listen(this.oa,_.xj,this.IEb);CFl(this.F,this.Ca());this.Wh=new _.FQ(this.Ca(),this.Va());this.wa(this.Wh);_.GQ(this.Wh)};_.D.kud=function(a,c,e,f,g){_.xY(this.getContext()).Qb(aDk).Cb({Xs:a,anchorId:c,fF:e,G_d:f,Cub:g})};
_.D.yJc=function(a){var c=this.BGa()?this.BGa().getEmail():void 0,e=this.Ne().RR()?this.Ne().RR():void 0;a=new y$k(a.text,c,e);c=_.LY(KY(this.getContext()),this.getId());_.SG((0,_.tl)(this.kud,this,this.getId(),this.vg(),c,a,e))};_.D.jud=function(a,c,e,f){var g=_.xY(this.getContext()),h=_.rY(this.Ne()).va();g.Qb(_.nwa).Cb({Xs:a,anchorId:c,fF:e,Cub:f,Q6:h})};
_.D.Q0b=function(){var a=_.LY(KY(this.getContext()),this.getId()),c=this.Ne().RR()?this.Ne().RR():void 0;_.SG((0,_.tl)(this.jud,this,this.getId(),this.vg(),a,c))};_.D.vg=_.y(_.xia);_.D.ZU=_.C(!0);_.D.Cc=function(a){LTl(this);a.stopPropagation()};
_.D.IEb=function(a){var c=_.xY(this.getContext());switch(a.identifier){case XAk:c.Qb(FCk).Cb({Xs:this.getId()});break;case _.Nc:c.Qb(IX).Cb(jol());kOl(_.JY(this.H),null);c.Qb(JX).Cb(jol());break;case _.hi:this.dispatchEvent(_.reb);break;case _.tab:this.dispatchEvent("sp");break;case gKk:this.F.focus()}};_.D.update=function(){ZPl(this);XPl(this)};_.D.s1c=function(a){this.AGa(a)};_.D.HEb=function(){var a=_.xY(this.getContext());a.Qb(IX).Cb(jol());kOl(_.JY(this.H),null);a.Qb(JX).Cb(jol())};
_.D.T0b=function(){this.yp()||LTl(this)};_.D.focus=function(){this.yp()&&MTl(this)};_.D.AGa=function(a){var c=$Pl(this);if(c){var e=this.Ca();e.style.maxHeight=c+_.Zi;e.scrollTop=e.scrollHeight}_.VPl.prototype.AGa.call(this,a)};_.J(NTl,eZ);_.D=NTl.prototype;_.D.Ya=function(){var a=this.Va(),c=this.zb().Xi(),e=EY(this.zb());c=_.oI(QPl,{author:c.getName(),isAnonymous:c.D,o4:this.zb().yoa()?c.getId():null,jM:!0,Zp:!0,yu:this.zb().yu(),i9:this.zb().kb,kF:e},void 0,a);this.Sc(c);e&&_.DH(c,_.ZCk);this.F.Dc(a.fc(iDk,c));this.F.Hc()||this.F.tb();_.NC().Rm()&&_.bw().Ja(qGk)&&this.F.focus();this.R=a.fc(zCk,c);this.J=_.OCb(a.rl,_.ub,DCk,c);_.Sr(a.fc(JEk,c),!1);this.W=a.fc(mCk,c);eZ.prototype.Ya.call(this)};
_.D.tb=function(){eZ.prototype.tb.call(this);ZPl(this);var a=this.Ne().Vi().JI();_.Bl(a)||this.F.ready(a,!0,!0);a=this.zb().Xi();Prl(Dpl(this.getContext()),this.J,a.Lk(),CYk(a))};_.D.BGa=function(){return Hrl(this.F.J)};_.D.HEb=function(a){_.Oql(this.F)?this.AGa(a):eZ.prototype.HEb.call(this,a)};_.D.update=function(){eZ.prototype.update.call(this);var a=this.yp();a!=this.ma&&(this.yp()||_.Oql(this.F)?this.dispatchEvent(new UPl(this.getId())):this.Q0b());this.ma=a};_.D.Zp=_.C(!0);
_.D.BG=function(){return!!this.D&&this.D.BG()};_.D.VE=function(a){this.D||(this.D=new RSl(this.getContext(),this,this.W,this.Va(),DGk,this.Ne()),this.wa(this.D),this.D.render(this.Ca()));this.D.VE(a)};_.D.T0b=function(){eZ.prototype.T0b.call(this);if((this.F&&_.Oql(this.F)?this.F.getValue():null)==null){var a=aYk($Xk(cYk(),this.Ne().getId()),this.Ne().vg()).o1(1);dGl(this.xa,43094,a.va())}};
_.D.Xf=function(){eZ.prototype.Xf.call(this);_.xY(this.getContext()).Qb(pDk).Cb({Xs:this.getId(),text:this.F.getValue(),Ina:this.J})};_.D.ob=function(){eZ.prototype.ob.call(this);delete this.R;delete this.J};_.J(OTl,NTl);OTl.prototype.Aa=function(a,c,e,f,g,h,k){this.dispatchEvent(new qQl("sd",a,c,e,f,g,k,this.Zp(),PTl(this)));h==null||h.complete()};OTl.prototype.yJc=function(a){var c=_.LY(KY(this.getContext()),this.getId()),e=Hrl(this.F.J);e!=null&&epl(this.zb());_.SG((0,_.tl)(this.Aa,this,this.getId(),this.vg(),c,a.text,this.Ne().X7(),a.D,e))};OTl.prototype.Fa=function(a,c,e,f,g){_.xY(a).Qb(VCk).Cb({Xs:c,anchorId:e,fF:f,pCa:g})};
OTl.prototype.Q0b=function(){var a=_.LY(KY(this.getContext()),this.getId());_.SG((0,_.tl)(this.Fa,this,this.getContext(),this.getId(),this.vg(),a,PTl(this)))};_.J(RTl,_.mT);
RTl.prototype.Ya=function(){var a=this;_.mT.prototype.Ya.call(this);var c=this.F.Jk(),e=c.Lk(),f=this.F.Bt(),g=null;f&&(g=Snl(this.R,f));f=this.F.Xga;e=_.oI(QTl,{author:c.getName(),isAnonymous:c.D,o4:c.getId(),Qnd:e?e:_.uxk,timestamp:g,LH:f});this.xd(e);if(f){var h=this.Va();this.H.D(h.Bb("docos-emoji-view-avatar",e),_.uyk);this.H.D(h.Bb(oFk,e),_.uyk)}e=this.Bb(kFk);this.D=new _.$Y;this.wa(this.D);this.yb(this.D);this.D.render(e);e=_.xY(this.J).qa(_.FDa);_.NV((new _.AW).va(),this.D,e,{enabled:!0,
hint:!0,icon:!0,value:!0,visible:!0},function(){var k=new j2k;k.F=a.O;k=m2k(k,!1);var l=_.Yx(a.F.hKa.getId());k.ea=l;return{ae:_.LBa,Ilc:n2k(k,[a.F.iX()]).va()}});this.D.yg(Rcl(this.F.iX(),c.getName()||_.xyk));c=(new _.BQ(f?"Author {AUTHOR_NAME}. Created at {CREATION_TIME}. {EMOJI}. Invalid emoji reaction.":"Author {AUTHOR_NAME}. Created at {CREATION_TIME}. {EMOJI}.")).format({AUTHOR_NAME:c.getName(),CREATION_TIME:g,EMOJI:this.F.iX()});_.eI(this.Sa(),c)};
RTl.prototype.tb=function(){_.mT.prototype.tb.call(this);this.rb().listen(this.D.Sa(),[_.Xh,_.di],function(a){return a.stopPropagation()})};_.J(STl,kTl);_.D=STl.prototype;
_.D.Ya=function(){kTl.prototype.Ya.call(this);var a=this.Va(),c=_.oI(LPl,{wQa:this.Ne().rF(),kF:EY(this.zb())},void 0,a);a.J4(c,a.fc(wFk,this.Sa()));this.W=a.fc(mFk,this.Sa());UTl(this);c=this.Va().fc(tEk,this.Sa());var e=EY(this.zb());e=_.oI(Vml,{Wn:e?MGk:KDk,H3a:LDk,oDc:!0,oTc:e});this.Va().appendChild(c,e);_.Gr(c,_.Ok,"");this.yb(this.J);this.J.Dc(c);if(c=this.Va().fc("docos-stream-emoji-resolve-button",this.Sa())){e=this.D=new _.dW(null,this.Va());var f=this.zb().yu();e.xla=f;this.wa(this.D);
this.D.Dc(c);this.l$b()}this.ma=a.fc(nFk,this.Sa());this.F.render(this.ma);this.F.CA(!1);this.F.SJ=!0;TTl(this);lTl(this);VTl(this)};_.D.tb=function(){kTl.prototype.tb.call(this);this.F.setParent(this);NY(this,this.J,"r",this.j7a);this.D&&(NY(this,this.D,_.mc,this.j7a),NY(this,this.zb(),"r",this.l$b))};_.D.update=function(){kTl.prototype.update.call(this);this.J.update();UTl(this);TTl(this);this.l$b();VTl(this)};_.D.l$b=function(){if(this.D){var a=Xol(this.zb().J,this.Ne());this.D.Rb(a)}};
_.D.focus=_.u();_.D.Zp=_.C(!1);_.D.cVa=_.u();_.D.LUb=function(){this.j7a()};WTl.prototype.H=function(a){a=IY(this.D).Ne(a);var c=this.J.Gq().getId();switch(a.RR()){case _.pHk:return new OTl(this.D,a.getId(),c,a.vg(),this.Gb,this.F);case wHk:return new STl(this.D,a.getId(),c,this.Gb,this.F);default:return new eSl(this.D,a.getId(),c,this.Gb,this.F)}};XTl.prototype.Zo=_.y("F");XTl.prototype.clone=function(){return new XTl(this.F,this.D)};XTl.prototype.equals=function(a){return a!=null&&this.F==a.Zo()&&this.D==a.D};_.J(YTl,_.QG);_.D=YTl.prototype;_.D.u5b=_.al("O");_.D.Gq=function(){if(!this.O)throw Error("r2");return this.O};_.D.Mya=function(){return[]};_.D.nG=function(){return this.H?this.H.getId():null};_.D.PKa=function(){return this.H&&this.H instanceof Opl?Znl(this.H):null};_.D.k0a=function(){var a=this.nG();return a?this.O.ue(a):null};_.D.Va=_.y(_.ob);_.D.zb=function(){return this.V.zb()};_.D.getContext=_.y("V");_.D.E5=function(){return this.Gq().getId()};_.D.Imb=_.y("F");
_.D.e$a=function(a,c){var e=this.nG();return a||e?c==this.E5()||this.F&&this.F.Zo()==a?!0:!ZTl(this,a):!1};_.D.Vua=function(a,c,e){if(this.e$a(a,c)){var f=ZTl(this,a)?null:this.H;this.H=IY(this.V).Ne(a)||null;if(f){var g=this.O.ue(f.getId());f=!!IY(this.V).Ne(f.getId());g&&f&&g.update()}a&&(this.vMc(),c=c==this.E5()&&(e===void 0||e),(e=this.O.ue(a))?(this.F=null,e.update(),c&&e.focus()):this.F=new XTl(a,c),this.U0b(a))}};_.D.vMc=_.u();_.D.dVa=function(a,c,e){bUl(this,!0,void 0,a,c,e)};
_.D.eVa=function(a,c,e){bUl(this,!1,void 0,a,c,e)};_.D.fub=_.u();_.D.eub=_.u();_.D.U0b=function(a){if(a==this.zb().oa){var c=this.O.ue(a);c&&c.yp()&&!this.Aa&&(this.Aa=!0,c=this.zb().ma[CIk])&&(a=IY(this.V).Ne(a),a=gY(GQk(new fY(CIk),a.vg()),!0).va(),c(a))}};_.D.znb=function(a){for(var c=this.Gq(),e=c.Jd(),f=e,g=EY(this.zb()),h=0;h<e;++h){var k=c.ud(h);if(k)if(g&&k.getId()===a.getId())if(h<e-1){if((k=c.ud(h+1))&&this.dxa(a,k)<0){f=h;break}}else{f=h;break}else if(this.dxa(a,k)<=0){f=h;break}}return f};
_.D.rU=function(){wWl(Dpl(this.getContext()))};_.D.Reb=function(){var a=this.nG();this.x$();this.rU();if(a){var c=this.O.ue(a);c instanceof NTl&&!_.Oql(c.F)||this.Vua("",null);this.Vua(a,null)}};_.D.VE=_.u();_.D.Gna=_.u();_.D.S9b=function(a){(a=this.O.ue(a))&&a.ISc()};_.D.Peb=function(){for(var a=this.Gq().Jd(),c=[],e=0;e<a;e++){var f=this.Gq().ud(e);f!==null&&(f=f.Ne(),f!==null&&c.push(f))}return oGl(c)};_.D.xoa=_.u();_.D.Qeb=_.C(null);_.D.getBounds=_.C(null);_.D.lDc=_.C(!1);_.D.fVa=_.u();
_.D.ob=function(){_.QG.prototype.ob.call(this);this.H=null};_.D.JEb=function(a){a=a.DGa()||a;a instanceof YTl&&(a.F=this.F?this.F.clone():null,a.xa=this.xa,a.Aa=this.Aa)};_.D.DGa=_.C(null);_.D.s5b=_.al(_.Pga);_.D.equals=function(a){if(a===null)a=!1;else if(a===this)a=!0;else if(a instanceof YTl){var c=a.F;a=(this.F?this.F.equals(c):c==null)&&this.xa==a.xa&&this.Aa==a.Aa}else a=!1;return a};_.D.ACb=_.u();_.J(dUl,_.KG);_.J(eUl,YTl);_.D=eUl.prototype;_.D.k2a=function(){return this.getContext().zb().Ic!=_.ji};_.D.JMb=function(a){return(new WTl(this.getContext(),this,this.Va(),this)).H(a.getId())};_.D.dxa=function(a,c){a=a.Ne();c=c.Ne();if(!a||!c)throw Error("s2");return this.exa(a,c)};
_.D.exa=function(a,c){if(this.zb().qH()){var e=Jpl(this.getContext());e=Number($Nl(e,c.getId()))-Number($Nl(e,a.getId()))}else e=0;if(!e)a:switch(this.zb().Ic){case "creation":e=_.G3b(fUl(c),fUl(a));break a;case TJk:EY(this.zb())?(e=gUl(a,c))||(e=_.G3b(fUl(c),fUl(a))):(e=gUl(a,c))||(e=_.G3b(c.CT(),a.CT()));break a;default:e=_.G3b(c.CT(),a.CT())}e||(e=a.getId()<c.getId()?-1:c.getId()<a.getId()?1:0);return e};
_.D.zna=function(a){var c=this.Gq(),e=this.JMb(a),f=0;this.k2a()&&(f=this.znb(e));c.ao(e,f,!0);c=this.getContext().zb();if(c.Paa()||c.Zx())jUl(this,e),this.dispatchEvent(CKk);e.update();if(c=e=this.Imb())e.Zo()!=a.getId()?c=!1:(c=a.sK()?a.vg():void 0,f=this.getContext().zb().ld,f=c!=null&&f(c),c=c==null||a.Lu()||f);c&&(e=pol(mol(lol(a.getId()),this.E5()),e.D).va(),$Tl(this,e,a))};
_.D.UCa=function(a){this.Gq().ue(a)&&(a=this.Gq().removeChild(a),_.ev(a),(this.getContext().zb().Paa()||this.getContext().zb().Zx())&&this.dispatchEvent(CKk))};_.D.PSa=function(a){if(this.k2a()){var c=this.Gq();if(a=c.ue(a)){var e=_.yQ(c,a),f=this.znb(a);e!=f&&c.ao(a,f);c=this.getContext().zb();if(c.Paa()||c.Zx())jUl(this,a),this.dispatchEvent(CKk)}}};_.D.fub=function(){bUl(this,!0,!0)};
_.D.eub=function(){if(this.H&&this.nG()){var a=this.nG(),c=this.Gq().ue(a),e=_.xY(this.getContext());this.E5()?(c=rol(nol(mol(lol(a),this.E5())),c?c.Zp():!1).va(),e.Qb(IX).Cb(c),kOl(_.JY(this.getContext()),a),e.Qb(JX).Cb(c)):kOl(_.JY(this.getContext()),a);this.getContext().zb().Paa()&&this.x$()}else EY(this.getContext().zb())&&kUl(this)};_.D.x$=function(){cUl(this);EY(this.getContext().zb())&&kUl(this)};_.D.rU=function(){YTl.prototype.rU.call(this)};
_.D.ACb=function(){for(var a=this.Gq(),c=a.Jd(),e=0;e<c;++e){var f=a.ud(e);jUl(this,f)}this.dispatchEvent(CKk)};_.D.lDc=_.y("D");_.J(mUl,_.zH);mUl.prototype.Ya=function(){this.Sc(_.oI(lUl,{wjd:_.pn(this.D,4),buildLabel:_.pn(this.D,3),Lnd:_.pn(this.D,5),o9d:_.pn(this.D,1)},{n9d:_.pn(this.D,2)},this.Va()))};var oUl=new Map([[Qyk,1],[_.HX,2],[_.wzk,3],[_.Kb,4],[cyk,5],[zyk,6]]);qUl.prototype.getType=_.y(_.Xg);qUl.prototype.getLabel=function(a){return this.H.get(a)};qUl.prototype.Jq=function(a){return this.J.get(a)};
var DUl=new qUl(_.me,pyk,[_.HX,Qyk,_.Kb,_.wzk],new Map([[_.HX,_.HX],[Qyk,Qyk],[_.Kb,_.Kb],[_.wzk,_.wzk]]),new Map([[_.HX,Eyk],[Qyk,"Display comments for you."],[_.Kb,Fyk],[_.wzk,Gyk]]),new Map([[_.HX,Hyk],[Qyk,"Displaying comments for you."],[_.Kb,Iyk],[_.wzk,Jyk]])),CUl=new qUl(SBk,pyk,[_.HX,_.Kb,_.wzk],new Map([[_.HX,"All types"],[_.Kb,_.Kb],[_.wzk,_.wzk]]),new Map([[_.HX,Eyk],[_.Kb,Fyk],[_.wzk,Gyk]]),new Map([[_.HX,Hyk],[_.Kb,Iyk],[_.wzk,Jyk]])),JUl=new qUl("location-sheets",oyk,[cyk,zyk],new Map([[cyk,
"All sheets"],[zyk,"This sheet"]]),new Map([[cyk,"Display comments on all sheets."],[zyk,"Display comments on the current sheet."]]),new Map([[cyk,"Displaying comments on all sheets."],[zyk,"Displaying comments on the current sheet."]])),KUl=new qUl("location-slides",oyk,[cyk,zyk],new Map([[cyk,"All slides"],[zyk,"This slide"]]),new Map([[cyk,"Display comments on all slides."],[zyk,"Display comments on the current slide."]]),new Map([[cyk,"Displaying comments on all slides."],[zyk,"Displaying comments on the current slide."]])),
IUl=new qUl("location-docs",oyk,[cyk,zyk],new Map([[cyk,"All tabs"],[zyk,"This tab"]]),new Map([[cyk,"Display comments on all tabs."],[zyk,"Display comments on the current tab."]]),new Map([[cyk,"Displaying comments on all tabs."],[zyk,"Displaying comments on the current tab."]]));_.J(_.rUl,_.eW);_.rUl.prototype.Ae=_.C(PGk);_.rUl.prototype.sma=function(){return _.oI(gUk,{className:"docs-material-menu-button-flat-default-dropdown"})};_.rUl.Mb=function(){return _.kE(_.rUl)};_.J(_.sUl,_.zT);_.wl(_.tUl,_.sT);_.lT("goog-checkbox-menuitem",function(){return new _.tUl(null)});_.J(uUl,MY);_.D=uUl.prototype;
_.D.Ya=function(){MY.prototype.Ya.call(this);for(var a=this.D.F,c=0;c<a.length;c++){var e=a[c];if(!this.R||e!==_.HX&&e!==cyk){var f=this.D.getLabel(e);e=new _.tUl(f,e,this.Gb);this.J.yb(e,!0)}}this.yb(this.F);this.F.vM=!0;this.F.render(this.Ca());wUl(this,vUl(this));this.R&&(a=_.oI(_.qS,{icon:_.IGk}),this.H.xd(a),this.H.render(this.Ca()),this.O.zb().F.D(this.H.Ca(),"Clear filter"),this.H.Ua(!1),_.DH(this.H.Ca(),"docos-filter-reset-button"),_.DH(this.Ca(),"docos-filter-settings-container"));a=_.oI(_.qS,
{icon:_.HGk});this.Gb.Jqa(a,this.F.fc(QGk));a=this.O.zb().F;c=this.D.O;a.D(this.F.Ca(),c);for(c=0;c<this.J.Jd();c++)f=this.J.ud(c),e=f.Ca(),f=f.za(),f=this.D.Jq(f),a.D(e,f)};_.D.tb=function(){MY.prototype.tb.call(this);NY(this,this.Ca(),_.zh,this.eud);NY(this,this.F,_.mc,this.u1c);NY(this,this.J,_.yj,this.t1c);xUl(this);_.WI(this.F.Ca(),CDk)};_.D.eud=function(a){a.keyCode==27&&a.stopPropagation()};
_.D.t1c=function(){if(this.J.Jd()>0){var a=vUl(this),c=this.D.F.indexOf(a);this.J.iq(c);pUl(this.W,a,43145)}};_.D.u1c=function(a){a=a.target.za();yUl(this,a,!0)};_.J(_.AUl,_.sSl);_.AUl.prototype.Ae=_.y("J");_.AUl.prototype.yd=function(a){return _.pr(this.D,a)};_.AUl.prototype.Ya=function(a){var c=a.Va().Ya(_.Za,this.Ae());_.WI(c);var e=a.Va().Ya(_.Za,this.D,a.ze());a.Va().appendChild(c,e);(a=a.Jq())&&this.tj(c,a);return c};_.AUl.Mb=function(){return _.kE(_.AUl)};_.J(_.BUl,_.tSl);_.J(HUl,MY);_.D=HUl.prototype;
_.D.Ya=function(){var a=this,c=this.zb().W!=BIk,e=this.Va(),f=this.Bi.We(oSl,{user:this.zb().Xi().getName(),QZ:this.zb().QZ(),H_d:hpl(this.zb()),i9:this.zb().kb,wid:this.zb().fl,oid:this.zb().NT,ey:c,Paa:this.zb().Paa(),qH:this.zb().qH(),Zx:this.zb().Zx(),lsd:this.zb().La!=_.ji,B2:this.zb().ea.B2(),Gu:this.zb().Gu(),MNb:!this.zb().Zx(),kF:EY(this.zb())});hpl(this.zb())&&_.DH(f,"docos-enable-docs-header");c&&_.DH(f,_.SJg);this.zb().Gu()&&_.DH(f,"docos-xeditor");this.Sc(f);c=e.fc(EFk,f);this.D.render(c);
this.Aa!=null&&(this.Aa.render(c),this.Aa.Ua(!1),setTimeout(function(){a.cbb()},500));this.oa!=null&&(this.oa.render(c),this.lAb());this.O=hpl(this.zb())?this.D.yd():this.zb().xa;this.Ib.render(f);this.xb=e.fc(OFk,f);this.Xa=_.OCb(e.rl,_.ub,DFk,f);this.xa!=null&&this.xa.render(e.fc(cDk,f));this.R!=null&&this.R.render(e.fc(eEk,f));UUl(this);this.zb().qH()&&!this.zb().Zx()&&(c=e.Bb(QKk,f),_.bI(c,_.nlh),_.cI(c,_.nJk,_.Mk),this.zc=new _.pI(c),_.Br(c,!0),NY(this,c,_.vh,this.y1c),NY(this,c,_.lg,this.J1d),
_.DH(e.Bb(FFk,f),"docos-streampane-header-round-top-corners"));EY(this.zb())&&(e=[new _.BUl("All comments"),new _.BUl(Qyk)],this.Ia=new ASl(e,this.zb().F),this.Ia.render(this.Bb(NFk)),this.rb().listen(this.Ia,_.sj,this.v1c))};
_.D.tb=function(){var a=this;MY.prototype.tb.call(this);var c=this.Va(),e=this.Sa();this.V&&this.V.Dc(c.fc(GFk,e));var f=this.F.zb().F;if(this.Fa){var g=this.fc(VFk);!g&&this.zb().Zx()&&(g=this.F.zb().MT);this.Fa.render(g);f.D(g,this.Bi.Im(O0k));RUl(this);_.Jv(this.bb,Cpl(this.F).Dg(),function(){return RUl(a)});NY(this,this.Fa,_.mc,this.F4d)}this.Za&&(c=c.fc(kEk,e),!c&&this.zb().Zx()&&(c=this.F.zb().eP),c&&this.Za.Dc(c),g=this.zb().j_a()?Zxk:_.Yxk,f.D(c,g),NY(this,this.Za,_.mc,this.vfc),this.HSc(),
this.rb().listen(this.zb(),"r",this.HSc));NY(this,this.zb(),"r",function(){a.Ga.Ja(_.ye)&&(_.GH(e,"docos-revisionhistory",xpl(a.F.zb()).RH()),a.Fa&&RUl(a))});this.zb().ea.B2()&&(c=this.Bb(ZEk),this.W.render(c),f.D(c,this.Tb),this.ea.render(this.Bb(HFk)),c=this.ea.Sa(),_.DH(c,"docos-streampane-search-input"),_.DH(c,_.k5g),this.Kb=new _.fdj(c),this.wa(this.Kb),this.W&&NY(this,this.W,_.mc,this.onc),c=this.Bb(JFk),this.kb.render(c),f.D(c,ryk),NY(this,this.kb,_.mc,this.p3d),EY(this.zb())&&(c=this.Bb(IFk),
this.Ra.render(c),NY(this,this.Ra,_.mc,this.nLb),f.D(c,qyk)),NY(this,this.Kb,_.hh,this.q3d));this.Aa!=null&&NY(this,this.Aa.D,_.mc,this.vfc);this.V&&DFl(this.V,function(){return void OUl(a)});f=this.zb().cN||e;PUl(this,f);f=_.xY(this.F);c=this.zb().j_a()&&this.zb().Ra!=_.lc?this.S1d:this.x1c;this.La.Dd(f.qa(JX),_.uK,c);this.La.Dd(f.qa(ZFk),_.uK,this.CGa);this.La.Dd(f.qa(XFk),_.uK,this.W9b);this.La.Dd(f.qa(vEk),_.uK,this.P7d);this.V&&this.rb().listen(this.V,"p",this.v0d);NY(NY(NY(NY(NY(NY(NY(NY(this,
this.D,"f",this.I1d),this.D,"b",this.Q0d),this.D,"e",this.B1d),this.D,"us",this.F3d),this.D,"ud",this.E3d),this.D,"ail",this.D3d),this.D,_.Cj,this.C3d),this,[_.Tyg,_.Syg],this.w1c);f=this.zb().Xi();Prl(Dpl(this.F),this.Xa,f.Lk(),CYk(f));this.xb&&(c=f.getName())&&this.zb().F.D(this.xb,c);this.Xa&&(f=f.getName())&&this.zb().F.D(this.Xa,f);this.Tc||(this.Wh=new _.FQ(this.Ca(),this.Va()),this.wa(this.Wh),_.GQ(this.Wh));this.zb().qH()&&!this.zb().Zx()&&(NY(this,this.zc,_.Kf,this.tOd),NY(this,this.H,CKk,
this.HAb),this.rb().listen(window,_.hj,this.HAb));this.zb().Zx()&&(NY(this,this.H,CKk,this.lAb),EY(this.zb())&&NY(this,this.H,CKk,this.cbb));f=this.zb().ea;f.B2()&&_.Jv(this.bb,f.F,function(h){h?TUl(a):a.dispatchEvent("clear-find")});EY(this.zb())&&(this.xa&&NY(this,this.xa.H,_.mc,function(){return GUl(a,_.me)}),this.R&&NY(this,this.R.H,_.mc,function(){return GUl(a,"location")}),this.La.Dd(_.xY(this.F).qa(_.Ce),_.uK,function(){return GUl(a,_.qc)}),this.rb().listen(_.JY(this.F),"bu",this.Ryc),this.rb().listen(this.D,
"fwdu",this.Ryc),this.La.Dd(_.xY(this.F).qa(_.vCa),_.Yw,function(h){if(h.newValue)for(h=0;h<a.D.Jd();h++){var k=a.D.ud(h);k instanceof eSl&&(k.Ne().QH()||jSl(k))}}));QUl(this)};_.D.w1c=function(a){var c=a.type==_.Tyg?aCk:$Bk,e=this.zb().ma[c];if(e){a=a.target instanceof uPl;var f=JQk(IQk(new fY(c),!0),new hPl(a)).va();e(f);a&&c==$Bk&&OUl(this)}};
_.D.v0d=function(a){var c=a.text;_.Bl(c)||(a=_.xY(this.F),c={text:c,anchorId:null,fF:0,quote:null},c.IJa=cYk().o1(1).Sb(this.zb().Zx()?10:105).yma(!1).va(),a.Qb(lEk).Cb(c),this.J=null)};_.D.I1d=function(a){if(a=a.target)this.J=a.Ca()};_.D.Q0d=function(a){LUl(this,a)};_.D.B1d=function(a){LUl(this,a)};_.D.F3d=function(){this.J!=null&&(this.mc=this.J.offsetTop,EY(this.zb())&&this.O&&(this.jc=this.O.scrollTop))};
_.D.E3d=function(){this.cbb();var a=this.H.nG(),c=a?this.D.ue(a):null;a=(c=c?c.Ne():null)&&QSl(this.zb(),c,MUl(this),a);if(!this.Lc||this.J)a=this.O&&(!EY(this.zb())||this.jc==this.O.scrollTop&&a),this.J!=null&&a&&(this.O.scrollTop+=this.J.offsetTop-this.mc)};
_.D.D3d=function(){this.hb=!1;this.dispatchEvent(ZHk);this.lAb();this.cbb();EY(this.zb())&&(kUl(this.H),MUl(this)&&VUl(this));if(EY(this.zb())&&this.Nb){var a=this.D.ue(this.Nb);if(a){var c=_.xY(this.F);a=rol(nol(mol(lol(this.Nb),this.H.E5())),a.Zp());c.Qb(IX).Cb(a.va());c.Qb(JX).Cb(a.va())}}};_.D.C3d=function(){this.hb=!0;this.lAb();this.cbb()};
_.D.x1c=function(a){a=a.data;(a.D&&a.D!=this.D.getId()||a.V)&&NUl(this,a.Zo()||null);var c=a.Zo()?this.D.ue(a.Zo()):null;c&&(EY(this.zb())&&this.J!=c.Ca()&&NUl(this,a.Zo()),this.J=c.Ca());this.HAb()};_.D.S1d=function(a){a=a.data;var c=a.Zo()||null,e=this.zb().ma[qLk];e&&(c=c?IY(this.F).Ne(c):null)&&(c=JQk(gY(IQk(HQk(GQk(new fY(qLk),c.vg()),_.LY(KY(this.F),c.getId())),!(c.sK()&&!c.isResolved())),!0),new iPl(!0)).va(),e(c));NUl(this,a.Zo()||null)};
_.D.tOd=function(a){var c=this.Va().Bb(FFk);a=a.top-c.offsetHeight;this.Va().Bb(qFk).style.height=a+_.Zi;c=this.Va().Bb(QKk);_.cI(c,_.goh,a)};_.D.y1c=function(a){var c=this.Va().Bb(qFk),e=c.offsetHeight;if(a.keyCode==38)e-=100;else if(a.keyCode==40)e+=100;else return;e<0&&(e=0);var f=c.style.maxHeight.replace(_.Zi,"");e=Math.min(e,f);c.style.height=e+_.Zi;a=(a.keyCode==38?"Decreased":"Increased")+_.mwk+e+" pixels.";c=this.Va().Bb(QKk);_.cI(c,_.goh,a)};
_.D.J1d=function(){var a=this.Va().Bb(QKk),c=this.Va().Bb(qFk);_.cI(a,_.goh,c.offsetHeight)};_.D.D2d=function(){this.H.dVa()};_.D.X2d=function(){this.H.eVa()};_.D.eid=function(){var a=_.xY(this.F),c=this.H.nG();a.Qb(FCk).Cb({Xs:c})};_.D.Ade=function(){var a=this.H.k0a();a&&ZQl(a)};_.D.HSc=function(){this.Za.Rb(this.zb().slb())};_.D.CGa=function(){if(this.zb().Paa()||this.zb().Zx()||this.zb().ea.B2())this.H.ACb(),UUl(this)};_.D.aBa=function(){var a=this.fc(KFk);return a!=null&&_.CH(a,MFk)};
_.D.W9b=function(a){a=a.data;if(a.D){var c=this.xa,e=a.D;yUl(c,e,!1);_.VV(c.V,c.D.D.get(e))}this.R&&a.F&&(c=this.R,a=a.F,yUl(c,a,!1),_.VV(c.V,c.D.D.get(a)))};_.D.Ryc=function(){kUl(this.H);VUl(this)};
_.D.P7d=function(){if(this.zb().La!=_.ji)for(var a=this.H.Gq(),c=a.Jd(),e=0;e<c;++e){var f=a.ud(e);if(f instanceof _.aZ&&(f=f.kx))a:if(!f.zb().Gu()||f.zb().aya()){cZ(f);if(f.zb().Gu()){var g=eRl(f),h=fRl(f),k=HRl(f.Ol,g),l=HRl(f.In,h);if(k&&l)break a;f.Th&&!k&&_.br(f.Th,g?g:_.IJ);f.Bd&&!l&&(_.br(f.Bd,h?h:_.IJ),h&&(_.Sr(f.Bd,!0),_.Sr(f.Rg,!0),_.Sr(f.wd,!1)));g||h?(_.FH(f.J,EKk),_.Sr(f.J,!0)):(k=f.Ne())&&k.Zq()&&k.Lu()?(_.DH(f.J,EKk),_.Sr(f.J,!1)):(_.Sr(f.Rg,!1),_.Sr(f.wd,!0),f.Ib&&_.DH(f.J,GKk));f.Ol=
g;f.In=h}!f.zb().Gu()&&f.Lc&&(g=eRl(f,!0),_.br(f.Lc,g));gRl(f)}}};_.D.F4d=function(){this.dispatchEvent(mJk);if(!EY(this.zb())){var a=this.zb().ma[qLk];if(a){var c=JQk(new fY(qLk),new iPl(!1)).va();a(c)}}};_.D.vfc=function(){var a={type:EBk,dg:this.zb().Zx()?10:105};this.dispatchEvent(a)};_.D.AM=function(a){this.D.AM(a)};_.D.onc=function(){SUl(this)||YUl(this);_.pdj(this.ea)};
_.D.p3d=function(){var a=this.Bb(KFk);EY(this.zb())?WUl(this,!1):(_.MR(a,[MFk,LFk]),this.W.Ua(!0),this.W.Sa().focus());this.dispatchEvent(sKk);FUl(this,43173);this.nLb();XUl(this,!1)};_.D.nLb=function(){if(this.ea.getValue().length>0){EY(this.zb())&&(this.Ra.Ua(!1),_.GH(this.Ca(),YEk,!1));this.ea.setValue("");this.dispatchEvent(tKk);var a;if(this.aBa()&&((a=this.zb().ea)==null?0:a.B2())){var c;(c=this.ea.Sa())==null||c.focus()}else OUl(this)}};
_.D.q3d=function(){this.dispatchEvent(tKk);this.Gc.Wm();var a=this.ea.getValue().length>0;EY(this.zb())&&(this.Ra.Ua(a),_.GH(this.Ca(),YEk,!!a));if(a&&(a=this.zb().Za,a!=null)){var c=hUl(this.H);a.speak((new _.BQ("{NUM_COMMENTS, plural, =1 {{NUM_COMMENTS} comment that matches your search query is shown. Navigate by pressing the tab key.} other {{NUM_COMMENTS} comments that match your search query are shown. Navigate by pressing the tab key.}}")).format({NUM_COMMENTS:c}),0)}};
_.D.Xf=function(){MY.prototype.Xf.call(this);Orl(Dpl(this.F),this.Xa)};_.D.ob=function(){MY.prototype.ob.call(this);delete this.xb;delete this.Xa;delete this.J;delete this.O;delete this.Ib;delete this.V;delete this.H;delete this.D;delete this.La;this.ma&&(delete this.ma,this.ma=null)};
_.D.HAb=function(){var a=this.Ca();if(a!=null&&this.zb().qH()&&!this.zb().Zx()&&_.Tr(a)){a=this.Va().Bb(qFk);for(var c=0,e=0;e<a.childElementCount;e++){var f=a.children[e];_.Tr(f)&&(c+=f.off