va),[DE(2,0)]))};X_i.prototype.eJ=function(a){RR(a,11,this.Be)};function Y_i(){}H(Y_i,K);Y_i.prototype.D=function(a,c){return c.getType()!=0?!1:!!a.MD(Pk,c).J};Y_i.prototype.F=B(11);function Z_i(a,c,e,f,g){this.V=this.wa=this.va=this.F=!1;this.Ca=0;$_i(this,a,c,e,f,g)}H(Z_i,tw);
function $_i(a,c,e,f,g,h){a.Ca=-1;a.R=e;a.D=c;a.ma=f;a.J=g;a.H=h;a.ea=new hx;a.xa(a.ea);(f=a0i(c.Aa()))&&e.Db(29804,f);a.ea.Pa(c.H,function(){a.O=null;a.W=null;a.wa=!1;a.V=!1;a.za=null});a.ea.Pa(c.Ph(),function(k){var l=k.ih,p=k.D,q=[],u=a.H.Ha("docs-slssa"),w=a.H.Ha("docs-sluts");if(Lo(l.getType(),wi)||Lo(l.getType(),l0a)||Lo(l.getType(),yi)){if(Lo(l.getType(),wi)){if(a.va=l.H===Pk,a.va){p=k.D;u=null;l.V.sc_ow!=null&&(k=fwh(a.D.Aa(),l.J))&&(l=b0i(a,a.D.Aa(),l.J,k),u=LSh(a.ma,21,k,xA(a.D.Aa().Xa()),
l));if(p){l=[];if(!p.D)throw vn("Rs").Ea;c0i(p.D,l);d0i(p.F,l);if(l.length>0){p=(p=u&&SC(u)&&Wp(SC(u),qKb,66)?R(SC(u),qKb,66):null)&&Wp(p,pKb,13)?g3g(R(p,pKb,13)):"";k=[];for(var y=0;y<l.length;y=y+1|0)Eo(g3g(l[y]),p)?u=null:k.push(l[y]);e0i(a,k)}}u&&a.R.Db(29741,u)}}else p instanceof tMd?(k=p.D.yn(Pk),f0i(a,p.F.spellcheck,l.F,k,u,l.O),c0i(k,q),d0i(p.F.spellcheck,q)):p instanceof xMd&&(p=p.D.spellcheck,f0i(a,p,l.O,null,u,l.O),l=a.D.hb().Jd(),l!=-1&&a.V&&(u=a.D.Aa().Xa(),(k=kth(l,a.D.Aa()))||(k=jZb(BA(u,
l))||AA(u,l)||nZb(u,l)||pZb(BA(u,l))||kZb(u,l)&&l>1),k&&(a.wa=!0)),d0i(p,q));e0i(a,q);w&&a.V&&g0i(a,!1);a.V&&a.wa&&g0i(a,!0)}});a.ea.Pa(c.Ji(),function(){if(a.va){a.R.Db(29624,null);a.Ca++;if(a.Ca%6==0){var k=a.ma;if(k.D)if(k=k.D.get(null)){var l=new by;k.F&&Rq(l,56,k.F);var p=new qKb;MSh(k,p,"n",null);kq(l,qKb,66,p);k=l}else k=null;else k=null;k&&(k=vD((new RC).Mb(19),k).oa(),a.R.Db(29643,k))}a.va=!1}})}
function g0i(a,c){if(a.W&&a.O)for(var e=a.W.yb(),f=a.D.hb().Jd(),g=a.D.Aa().Xa(),h=a.O.H,k=Math.min(3,bsh(a.O)?h.length:1),l=0;l<k;l=l+1|0){var p=a.W.yb()+h[l].length-1|0;if(c||e<=f&&f<=p)if(p=g.slice(e,p),L(p,h[l])){bsh(a.O)&&(e=R(SC(a.za),qKb,66),Mq(e,21,l+1|0));a.R.Db(41090,a.za);a.O=null;a.W=null;a.V=!1;c&&(a.wa=!1);break}}}function h0i(a,c,e){if(c=dwh(a.D.Aa(),c,e,!1))e=b0i(a,a.D.Aa(),e,c),e=LSh(a.ma,107,c,xA(a.D.Aa().Xa()),e),a.R.Db(30190,e)}
function f0i(a,c,e,f,g,h){var k=null,l=e;if(c)(f=c.D)?(l=ew(f.D),k=f.getStyle()):(f=c.H,k=f.getStyle(),l=fw(f.D)-k.J.length+1|0);else if(f){c=Lfc(f);f=f.D.Yc();for(var p=!1,q=0;q<c.length;q=q+1|0){var u=c[q];if(u.zd()instanceof kFd)if(k&&p){if(u.zd().J!=null)return}else k&&!p?(k=u.zd(),k.J!=null&&(p=!0,l=l+(+f[q]|0)|0)):(k=u.zd(),k.J!=null&&(p=!0))}}if(g){g=k;if(c=!!g&&xFd(g).length==1)c=!!xFd(g)[0];c&&(c=xFd(g)[0].O==28);if(c=c&&g.D.getValues().length==1)g=g.D.getValues()[0],c=Co(g);g=c}if(!g){g=
k;if(c=!!g&&xFd(g).length==1)c=!!xFd(g)[0];c&&(c=xFd(g)[0].O==18);c&&(c=xFd(g)[0].W==4);g=c}if(g)g=k.J,!g||(e==h&&l<e&&e<=(l+g.length-1|0)?h0i(a,k,l):e!=h&&(e<=(l+g.length-1|0)&&(l+g.length-1|0)<=h||e<=l&&l<=h||l<=e&&(l+g.length-1|0)>=h)&&h0i(a,k,l));else{if(e=k&&k.J!=null&&!Mt(k.D.getValues()))e=k.D.getValues()[0],e=!Co(e);if(e){if(k=dwh(a.D.Aa(),k,l,!1))e=b0i(a,a.D.Aa(),l,k),a.za=LSh(a.ma,99,k,xA(a.D.Aa().Xa()),e);a.V=!0;a.O=k.Fe;a.W=O(l)}}}
function e0i(a,c){if(c.length!=0){var e=new qKb;lq(e,pKb,15,c);c=new by;kq(c,qKb,66,e);e=vD((new RC).Mb(19),c).oa();a.R.Db(29643,e)}}function c0i(a,c){if(a){a=Lfc(a);for(var e=0;e<a.length;e++)i0i(a[e].zd(),c)}}function i0i(a,c){if(a){a=xFd(a);for(var e=0;e<a.length;e++){var f=a[e],g=new pKb;Itb(g,1,f.R);Itb(g,2,f.J);c.push(g)}}}function d0i(a,c){a&&(a.D&&i0i(a.D.getStyle(),c),a.H&&i0i(a.H.getStyle(),c))}
function b0i(a,c,e,f){var g=[];(US(f.Fe)&&!a.H.Ha(LP)||VS(f.Fe)&&!a.H.Ha(KBa)||$rh(f.Fe)&&!a.H.Ha(sBa)||Yrh(f.Fe)&&!a.H.Ha(CAa)||Wrh(f.Fe)&&!a.H.Ha(LBa)||Xrh(f.Fe)&&!a.H.Ha(SAa))&&g.push(6);var h=a.J.Ry();var k=a.J.SD(),l=a.J.QM(),p=a.J.Cpa(),q=a.J.dP(),u=a.J.jP();a=a.J.ppa();if(h||k||a){a=TS(f.Fe);var w=US(f.Fe),y=VS(f.Fe),z=Wrh(f.Fe),A=Xrh(f.Fe),C=Yrh(f.Fe),E=$rh(f.Fe);h=a&&!k||y&&!l||z&&!l||A&&!p||C&&!q||E&&!u||!w&&!a&&!h?!0:!1}else h=!0;h&&g.push(3);f=c.Lm(Xh)?(h=c.getStyle(Xh,e))?h.D!=null&&
Lo(h.D,awh(f.Fe.D))?!0:!1:!1:!1;f&&g.push(2);c=c.Lm(Mc)?(c=c.getStyle(Mc,e))&&c.va?!0:!1:!1;c&&g.push(4);return g.length>0?g:null};function a0i(a){var c=a.eg(Pk);if(!c)return null;for(var e=0,f=0;f<c.length;f=f+1|0){var g=a.getStyle(Pk,+c[f]|0);g&&g.J&&(e=e+1|0)}a=new qKb;Mq(a,9,e);e=new by;kq(e,qKb,66,a);return vD((new RC).Mb(19),e).oa()};function j0i(a,c){this.R=new e5e(a,c);this.F=new ZTh(new d5e(a))}H(j0i,K);j0i.prototype.O=function(a){a=XI(a);return!!a&&this.F.O(a.D)};j0i.prototype.D=function(a){return this.R.F(a)};j0i.prototype.J=function(a){return this.D(a)?Lo(a.getType(),P1a)?(a=a.F,a.D.contains((KI(),hbe))?a.D.get((KI(),hbe)):null):(a=XI(a))?this.F.J(a.D):null:null};j0i.prototype.H=function(a){for(var c=[],e=a.Wna().ad();e.Mc();){var f=e.Rc(),g=c;f=vde((HI(),II),this.F.H(a.HE(f)),f);Xt(g,f)}return c};function k0i(a){a='<b>"'+sT(a.au)+'"</b> added to your personal dictionary.';return U(GWf+a+Ga)}function l0i(a){a='<b>"'+sT(a.au)+'"</b> removed from your personal dictionary.';return U(GWf+a+Ga)};function m0i(a,c,e){this.D=a;this.F=c;this.J=e;this.H=0}m0i.prototype.Wta=function(a){this.D.Wta(a);a=CL(cK(k0i,{au:a}),this.J.qa(tg).ac(),Km(this.DTa,this,a),ci,!0,1E4);AL(this.F,this.H);this.H=this.F.postMessage(a)};m0i.prototype.DTa=function(a){this.D.DTa(a);a=CL(cK(l0i,{au:a}),this.J.qa(tg).ac(),Km(this.Wta,this,a),ci,!0,1E4);AL(this.F,this.H);this.H=this.F.postMessage(a)};m0i.prototype.YS=function(a){return this.D.YS(a)};function n0i(a,c){T.call(this);var e=this;this.F=new FSh(c);this.D=new hx;this.xa(this.D);this.D.Pa(a.Ji(),function(f){a:{if(f.D.Gq()==qf){f=f.D;var g=null;switch(f.Xc){case Xkg:case Zkg:f instanceof z4h&&(g=f.D);break;default:f=void 0;break a}if(g){f=e.F;var h=g.wna;if(h&&(h=gsh(h,g.D)))if(g=Qrh(h),g.length==0)f.D.Db(29649,null);else if(h=h.D,!L(h,0)){for(var k=!1,l=!1,p=0;p<g.length;p++){var q=g[p];q==1?k=!0:q!=0&&(l=!0)}h===18?(f.D.Db(29651,null),k&&f.D.Db(29655,null),l&&f.D.Db(29654,null)):(f.D.Db(29650,
null),k&&f.D.Db(29653,null),l&&f.D.Db(29652,null))}}}f=void 0}return f})}H(n0i,T);function o0i(a,c,e,f,g,h,k,l){this.H=a;this.J=c;this.D=e;this.V=f;this.R=g;this.W=h;this.F=k;this.O=l}o0i.prototype.update=function(a){var c=kD(this.R,2,0),e=this.J();e&&c&&(this.D.Ry()||this.D.SD())&&(c=this.F.qd())&&(this.O.YS(c.Fe.D)||hwh(c,e.Aa(),this.H,this.V)||KSh(this.W,a,fxa,0,c))};function p0i(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){X_i.call(this,a,c,g,C,p,l,w,u,k,qa);this.za=c;this.Za=e;this.ea=f;this.vd=h;this.J=k;this.Na=l;this.Sa=q;this.W=u;this.Ca=y;this.wa=z;this.ob=p;this.Ua=C;this.Bd=E;this.fc=F;this.Cc=I;this.yc=J;a=new n0i(this.za,w);this.xa(a);this.kd=N;this.Qb=W;this.xf=Y;this.Wc=aa;this.Lc=fa;this.kc=ka;this.ib=va;this.Da=new gx;this.xa(this.Da);this.Mf=va.D(e.Aa());this.nf=za;this.Fc=la}H(p0i,X_i);D=p0i.prototype;
D.Td=function(a){var c=this;X_i.prototype.Td.call(this,a);new B4h(this.za.Aa(),this.ob.D,this.Eb,this.Na);var e=new x_i(this.za,this.wb,this.vd);a.R.register(OZa,e);var f=new H_i(a.getContext(),a.H,this.ea,a.J,e,this.W,this.wa,this.lb(),this.Ua.Zc(),this.Lc,this.kc);this.xa(f);a.D.register(OZa,f);(f=kD(this.Sa,1,1))&&this.lb().Ha(LP)&&(this.Ja=new V_i(a.getContext(),a.H,this.ea,a.J,e,this.W,this.wa,this.lb(),!1,!1,!1,f),this.xa(this.Ja),a.D.register(SZa,this.Ja),this.Fa=new V_i(a.getContext(),a.H,
this.ea,a.J,e,this.W,this.wa,this.lb(),!0,!1,!1,f),this.xa(this.Fa),a.D.register(TZa,this.Fa));this.lb().Ha("docs-eoods")&&(this.Ub=new V_i(a.getContext(),a.H,this.ea,a.J,e,this.W,this.wa,this.lb(),!1,!0,!1,f),this.xa(this.Ub),a.D.register(QZa,this.Ub));this.Kb=new V_i(a.getContext(),a.H,this.ea,a.J,e,this.W,this.wa,this.lb(),!1,!1,!0,f);this.xa(this.Kb);a.D.register(PZa,this.Kb);if(this.lb().Ha("docs-eodsc")){var g=this.lb().Ha(Ai)?new j0i(this.nf,this.Za.Aa()):new ZTh(this.ib);this.Wc.addCallback(function(){var h=
VHh(c.yc,c.fc,c.Fc,c.Za,c.Bd,c.Cc,c.Qb,c.xf,g,c.kd,Lv(c.lb(),"docs-odstt"),new dD,c.Da,mD(c.Ua.H),c.ib,c.J);c.xa(h)})}(a=Mv(this.lb(),"docs-sagsti"))&&ZU(YU.Cb(),a,this.lb());(a=Mv(this.lb(),"docs-tassti"))&&ZU(YU.Cb(),a,this.lb());(a=Mv(this.lb(),"docs-phsti"))&&ZU(YU.Cb(),a,this.lb())};
D.ye=function(a,c,e){var f=this;X_i.prototype.ye.call(this,a,c,e);this.lb().Ha(lOa)&&EE(EE(a,LE(QE(e,r()).F(Mog),[DE(2,0),lQ])),LE(QE(e,function(){f.J.FDa(!1);var g=f.lb().Ha(vf)?"Want to turn blue underlines on again? Tools > Proofread > Show grammar suggestions":"Want to turn back on blue underlining? Tools > Spelling and grammar > Show grammar suggestions";g=WU(f.Ca,g);g.Tg(!0);g.render();g.Ka(!0);f.xa(g)}).F(Vog),[DE(2,0)]));EE(a,KE(LE(QE(e,this.mgd).F(k6a),[DE(2,0)])));EE(a,LE(QE(e,function(){f.J.Jra(!1);
var g=f.lb().Ha(vf)?"Want to turn red underlines on again? Tools > Proofread > Show spelling suggestions":"Want to turn red underlines on again? Tools > Spelling and grammar > Show spelling suggestions";g=WU(f.Ca,g);g.Tg(!0);g.render();g.Ka(!0);var h=g.Ba();h&&eK(h,rc);f.xa(g);XU(f.Ca,g)}).F(Wog),[DE(2,0)]));EE(a,KE(LE(QE(e,function(g){var h=f.lb().Ha(vf);g=g.Fe;var k="";Wrh(g)||VS(g)?(f.J.IUa(!1),k=h?"Wording suggestions are turned off. Turn them back on by going to 'Tools', then 'Proofread'.":"Word choice is turned off. Turn it back on by going to \u2018Tools\u2019, then \u2018Stylistic suggestions\u2019."):
$rh(g)?(f.J.zUa(!1),k=h?"Active voice suggestions are turned off. Turn them back on by going to 'Tools', then 'Proofread'.":"Voice suggestions are turned off. Turn it back on by going to \u2018Tools\u2019, then \u2018Stylistic suggestions\u2019."):Xrh(g)?(f.J.rUa(!1),k=h?"Inclusiveness suggestions are turned off. Turn it back on by going to 'Tools', then 'Proofread'.":"Inclusiveness suggestions are turned off. Turn it back on by going to \u2018Tools\u2019, then \u2018Stylistic suggestions\u2019."):
Yrh(g)?(f.J.lUa(!1),k=h?"Conciseness suggestions are turned off. Turn them back on by going to 'Tools', then 'Proofread'.":"Concise suggestions are turned off. Turn it back on by going to \u2018Tools\u2019, then \u2018Stylistic suggestions\u2019."):Zrh(g)&&(f.J.DUa(!1),k=h?"Sentence split suggestions are turned off. Turn them back on by going to 'Tools', then 'Proofread'.":"Sentence simplification suggestions are turned off. Turn it back on by going to 'Tools', then 'Stylistic suggestions'.");Vrh(g)?
f.Fa.Fd():f.Ja.Fd();k!=""&&(h=WU(f.Ca,k),h.Tg(!0),h.render(),h.Ka(!0),f.xa(h))}).D($Pa),[DE(2,0)])));this.D.qa(yMa).Ab(!0);ER(a,BMa,[CMa,tLa])};D.cic=function(a){a.F.push(new o0i(this.Eb,Kw(this.za),this.J,this.Na,this.Sa,this.W,this.wb,this.ob.D))};D.mgd=function(){REh("http://go/docs-cola-dogfood",this.lb())};D.Wq=function(a){if(this.lb().Ha("docs-eodsc")){var c=new DSh(this.Da,this.Mf in this.Qb);NE(a,c);this.xa(c)}};function q0i(){var a=U(Ha+V("cellValidationTooltipBubbleDetailsBody")+ia+V(Wag)+QN+V(Xag)+PN);return U(hV("cellValidationTooltipBubbleContainer","Cell validation tooltip",void 0,U(""+a)))};function r0i(a,c){jV.call(this,a,c)}H(r0i,jV);r0i.prototype.Oa=function(){jV.prototype.Oa.call(this);this.Zb(cK(q0i))};r0i.prototype.focus=function(){this.La().focus()};function s0i(a,c,e,f,g){this.F=!1;this.W=a;this.ma=c;this.ea=e;this.V=g;this.Xe=g.Aa();this.R=new kJ(this);this.xa(this.R);this.va=f;this.O=this.H=this.D=null;this.J=new zJ(this.Mjd,100,this);this.xa(this.J)}H(s0i,$2e);D=s0i.prototype;
D.UBa=function(a){if(fce(this.Xe.Xa(),a)&&oDh(this.Xe,a,!0)!==1){this.D||t0i(this);a!==this.H&&(this.H=a,this.D.Ka(!1),this.J.start());a=oDh(this.Xe,this.H,!0);if(a===1)this.Jm();else{a:switch(a){case 8:case 9:case 10:var c="This task cannot be synced";break a;default:c=""}var e=this.D,f=e.Xb(Wag);c==""?f.style.display=tj:(f.style.display=Rc,e.Ma().wg(f,c));a=hDh(a);ls(this.D.Xb(Xag),Wjh(a))}this.wd()}else this.Jm()};
function t0i(a){a.D=new r0i(a.ea,a.ma);a.xa(a.D);a.W.J.eb(a.D,!0);a.R.listen(a.va.D,qi,function(c){c.keyCode===37||c.keyCode===39||c.keyCode===38||c.keyCode===40||c.keyCode===9||a.Jm()})}D.Jm=function(){this.J.stop();this.Fd()};D.Mjd=function(){this.D.Ka(!0)};function u0i(a){var c;return!((c=a.D)==null||!FT(c))}D.Dj=function(){return this.Ch()?(this.D.focus(),!0):!1};D.Ch=function(){return u0i(this)};D.Ol=function(){return!!this.D&&this.D.Ah()};
D.Fd=function(){if(u0i(this)){var a;(a=this.D)==null||a.Ka(!1)}this.H=null};D.update=function(a){if(a){OI(this.V)&&a.D?(a=I_g(this.V),a=a.length===1?a[0]:null):a=null;var c=a&&a===this.O;a?c||(this.O=a,this.UBa(a)):(this.O=null,this.Jm())}else this.H&&this.UBa(this.H)};D.wd=function(){if(this.H){var a=this.Xe.ld().Kc(this.H);a=this.Xe.Eg(ll,a.D).H?nd:md;a=this.W.xs(new nG([new jG(this.H,a)]));a=new Kr(a.Rb()+a.Jb(),a.Vb())}else a=null;this.D&&a&&this.D.dj(a.x,a.y)};D.scroll=r();D.hm=r();
D.bm=function(a){a&&this.Fd()};D.Om=function(){this.Fd()};function v0i(a,c,e){T.call(this);this.H=a;this.D=c;this.F=e}H(v0i,MV);
v0i.prototype.qd=function(a){var c=this,e=this.D.qa(TMa);return[function(f){var g=c.H,h=SI(g);if(c.D.qa(WMa).isEnabled()){var k=bzh(g).length,l=F_g(g.Aa(),h);k<l&&(k=(new $R("{ROW_COUNT,plural, =1{Delete row}other{Delete {ROW_COUNT} rows}}")).format({ROW_COUNT:k}),Pmi(k,c.D.qa(WMa),a,f,void 0,ZTa))}c.D.qa(UMa).isEnabled()&&(k=mzh(g).length,g=G_g(g.Aa(),h,c.F.Ha(of)),k<g&&(g=(new $R("{COLUMN_COUNT,plural, =1{Delete column}other{Delete {COLUMN_COUNT} columns}}")).format({COLUMN_COUNT:k}),Pmi(g,c.D.qa(UMa),
a,f,void 0,ZTa)))},e.isEnabled()?e:[]]};function w0i(a,c,e){T.call(this);this.F=a;this.D=c;this.H=e}H(w0i,MV);
w0i.prototype.qd=function(a){var c=this,e=[];this.H.Ha(zi)&&(e.push(function(f){Pmi(Fga,c.D.qa(jNa),a,f,void 0,wUa)}),e.push(null));e.push(function(f){var g=bzh(c.F).length,h=(new $R("{ROW_COUNT,plural, =1{Insert row above}other{Insert {ROW_COUNT} rows above}}")).format({ROW_COUNT:g});Pmi(h,c.D.qa(dNa),a,f,void 0,wUa);h=(new $R("{ROW_COUNT,plural, =1{Insert row below}other{Insert {ROW_COUNT} rows below}}")).format({ROW_COUNT:g});Pmi(h,c.D.qa(eNa),a,f,void 0,wUa)},function(f){var g=mzh(c.F).length,
h=(new $R("{COLUMN_COUNT,plural, =1{Insert column to the left}other{Insert {COLUMN_COUNT} columns to the left}}")).format({COLUMN_COUNT:g});Pmi(h,c.D.qa(aNa),a,f,void 0,wUa);h=(new $R("{COLUMN_COUNT,plural, =1{Insert column to the right}other{Insert {COLUMN_COUNT} columns to the right}}")).format({COLUMN_COUNT:g});Pmi(h,c.D.qa(bNa),a,f,void 0,wUa)});return e};function x0i(a,c,e,f,g){T.call(this);this.F=a;this.D=c;this.J=e;this.O=f;this.H=g}H(x0i,MV);
x0i.prototype.qd=function(a){if(!cce(this.F))return[];var c=this.D.Lb(MJg),e=this.D.qa(XMa),f=this.D.qa(ZMa),g=this.D.qa(OJg),h=null;this.H.Ha(zi)&&(h=this.D.qa(qJg));var k=this.D.qa(XAa),l=this.O.H()&&k.isEnabled(),p=new w0i(this.F,this.D,this.H),q=new v0i(this.F,this.D,this.H);Eah(this.F.Aa(),this.F.hb().getSelection())?(a=this.D.qa(fNa),p=this.D.qa(VMa),a=[a.isEnabled()?a:[],p.isEnabled()?p:[]]):a=y0i(this,a,p,q);return[l?k:[],null,a,g.isEnabled()?g:[],h&&h.isEnabled()?h:[],f.isEnabled()?f:null,
e.isEnabled()?e:null,c&&c.isEnabled()?c:[]]};
function y0i(a,c,e,f){var g=a.D.qa(lNa),h=a.D.qa(tNa),k=a.D.qa(qNa);return[e,null,f,null,function(l){var p=a.F.Aa(),q=a.F.hb(),u=q.getSelection().D,w=u.length===0?q.Jd():u[u.length-1].end;u=SI(a.F);q=!sJ(p);var y=!1;if(q){y=a.J.ys(new sC(w)).D;var z=a.J.ys(new sC(u+2)).D;y=y===z}w=WI(p,w);u=Lce(p,u);p=Izh(p,0).oa();!y&&q||u!==0&&w==u-1||Pmi(w===0?"Pin header row":W2f,a.D.qa(XHg),c,l,void 0,Opg,p);u>0&&(q=(new $R("{NUM_ROWS,plural, =1{Unpin header row}other{Unpin header rows}}")).format({NUM_ROWS:u}),Pmi(q,
a.D.qa(pKg),c,l,void 0,Ppg,p))},g.isEnabled()?g:[],h.isEnabled()?h:[],k&&k.isEnabled()?k:[]]};function z0i(a,c){this.F=a;this.D=c}H(z0i,K);function A0i(a,c,e){var f=a.F.Aa();BA(f.Xa(),c);return e.Xf()&&!e.xg()?!0:e.Xf()?Kce(f,c,a.D):!1};function B0i(a,c,e){this.H=a;this.D=c;this.F=e}H(B0i,K);function C0i(a,c,e,f,g,h,k,l,p,q){T.call(this);this.Ja=a;this.Ra=c;this.Na=e;this.R=f;this.H=[];this.ea=[];this.za=new kJ(this);this.xa(this.za);this.F=g;this.Da=h;this.Ca=k;this.D=null;this.O=!0;this.V=!1;this.J=l;this.wa=g.Zo();this.ma=p;this.Ua=q;this.Fa=!1;this.va=this.W=null;this.Sa=mv().Ha(pf)}H(C0i,T);D=C0i.prototype;
D.lla=function(){var a=this.R.Aa(),c=this.R.Aa().Xa(),e=this.R.hb().Bh(),f=this.D?this.D.D:null,g=fce(c,e)?TI(c,e):null;c=g?this.Na.Eb.D(new sC(g)):null;if(!c&&!f)return!1;if(!c||!Nn(c,f)||this.V!=(this.J?!0:A0i(this.Da,g,this.Ca)))return!0;var h=f.Bta(e-g);if(h!=this.D.V||this.V&&this.wa!=this.F.Zo())return!0;var k=this.D.H;a=D0i(this,a,g,e);if(!N9b(a,k))return!0;a=this.D?this.D.R:null;if(this.ma.Jq()&&a&&(c=c.Qxa(h))&&a.x!=c.x)return!0;f=f.YA();return this.J?f.ma:f.ea};
D.mva=function(a){if(!a)throw Error("rS");var c=this.R.hb().Bh();if(this.D=E0i(this,a,c))c=this.D.D.YA(),this.J?c.ma=!1:c.ea=!1;return this.D?this.D.F:a};
function E0i(a,c,e){var f=a.R.Aa(),g=a.R.Aa().Xa();if(!fce(g,e))return a.O=!0,null;var h=TI(g,e);g=a.Na.Eb.D(new sC(h));if(g==null)return a.O=!0,null;var k=g.Bta(e-h);if(k<0)return a.O=!0,null;var l=a.ma.Cq()?g.Ffa(k):g.Qxa(k);if(!l)return a.O=!0,null;if(a.J)var p=l.y;else{p=g.YA();var q=l.x+p.H;p=p.D?q:q+rqe(p)}var u=p,w=g.Cta(k);p=g.YA();c=p.F;if(c==0||w==0)return a.O=!0,null;q=D0i(a,f,h,e);var y=f.ld().Kc(h);c=a.J?w:c;w=[];if(a.J){for(var z=[],A=-1,C=q.F,E=g.YA(),F=g.t7(k),I=0,J=0;I<c;){var N=
C9g(g.fM(I,k)),W=N!=null?$F(y,new EB(N,C)):null;if(!W){if(I+1<F.length){J+=F[I+1]-F[I];I++;continue}break}W=W.Zf()==1?W.Xp():W;var Y=WI(a.R.Aa(),W.ce);W=Math.min(Y-N+W.ve(),c-I);Y=F[I+W]-F[I];var aa=wdh(E,N,C),fa=aa.Vb();z.push({start:u+fa+J,size:Y-fa-aa.D});w.push(new EB(N,C));q.D>=I&&(A=w.length-1);I+=W;u+=Y}c=new QEi(z,A,!0)}else{z=[];A=-1;C=q.D;for(E=0;E<c;E++){F=$F(y,new EB(C,E));if(!F)break;F=F.Zf()==1?F.Xp():F;if(RG(y,F.ce).F==E){I=F.Ge();for(J=F=0;J<I;J++)F+=IJ(p,E+J);I=wdh(p,C,E);J=I.Rb();
z.push({start:p.D?u+J:u-F+J,size:F-J-I.F});w.push(new EB(C,E));q.F>=E&&(A=w.length-1);u+=p.D?F:-F}}c=new QEi(z,A,!0)}u=c.D.length;e=a.J?pce(f,e):WI(f,e);f=a.D?a.D.W:-1;z=a.D?a.D.D:null;A=a.D?a.D.R:null;A=a.ma.Jq()&&A&&l&&A.x!=l.x;h=a.J?!0:A0i(a.Da,h,a.Ca);a.O=!(g&&Nn(g,z))||A||f!=e||(a.J?p.ma:p.ea)||a.V!=h||h&&a.wa!=a.F.Zo()||k!=a.D.V;a.V=h;return new F0i(c,y,g,q,e,w,u,k,l)}
function D0i(a,c,e,f){return a.Fa?a.W?a.va!==e+","+f?(a.kla(),a.Ua.log(Error("sS")),uce(c,e,f)):a.W:(a.W=uce(c,e,f),a.va=e+","+f,a.W):uce(c,e,f)}
D.lva=function(){if(!this.D)return null;var a=this.D.D,c=this.D.J.D;this.wa=this.F.Zo();this.V=this.J?!0:A0i(this.Da,c,this.Ca);if(!this.V)return this.H=[],[];if(!this.O&&this.H.length>0)return this.H.slice();c=this.D.O;var e=this.D.F.D;a=a.YA();var f=e.length-1;this.H.length=f;this.ea.length=f;for(var g=[],h=0;h<f;h++){var k=this.H[h]&&!this.H[h].isDisposed()?this.H[h]:null,l=this.H,p=h;if(this.J){var q=a,u=e,w=c,y=h,z=w[y];w=w[y+1];z=wdh(q,z.D,z.F);w=wdh(q,w.D,w.F);q=z.D;z=w.Vb();k=k?gFi(k,this.F.ii(q),
this.F.ii(z),this.J,"Row"):eFi(this.F.ii(q),this.F.ii(z),this.J,this.Ra,"Row");WEi(k,this.F.ii(u[y].start+u[y].size+q))}else{z=a;u=e;var A=c;y=h;w=(q=z.D)?A[y]:A[y+1];A=q?A[y+1]:A[y];w=wdh(z,w.D,w.F);A=wdh(z,A.D,A.F);z=w.F;w=A.Rb();k=k?gFi(k,this.F.ii(z),this.F.ii(w),this.J,Dda):eFi(this.F.ii(z),this.F.ii(w),this.J,this.Ra,Dda);WEi(k,q?this.F.ii(u[y].start+u[y].size+z):this.F.ii(u[y].start-w))}l[p]=k;g.push(this.H[h])}this.O=!0;return g};
D.ova=function(){var a=this;if(this.H&&this.H.length&&this.D&&this.O&&this.V){var c=this.D.H,e=this.D.O,f=this.D.ea,g=this.D.F.D,h=this.D.D.YA(),k=h.D||this.J,l=this.F.LB(5),p=g[0];g=g[g.length-1];f=wdh(h,this.J?0:c.D,this.J?c.F:h.D?f-1:0);c=this.J?f.Vb():f.Rb();f=this.J?f.D:f.F;c=k?p.start-c:g.start-c;p=k?g.start+g.size+f:p.start+p.size+f;for(g={QD:0};g.QD<this.H.length;g={QD:g.QD,Isb:void 0},g.QD++)this.ea[g.QD]&&this.za.De(this.H[g.QD],sd,this.ea[g.QD]),g.Isb=(this.J?e[g.QD+1].D:e[g.QD+1].F)-1,
f=this.J?function(q){return function(u){var w=q.QD,y=q.Isb;if(a.D){var z=a.D.F,A=a.D.D,C={},E=wdh(A.YA(),y,a.D.H.F),F=z.D;z=a.D.J.D;var I=azh(a.R.Aa(),z,y);u=a.F.Yu(u.target.hf())-F[w].start-F[w].size-E.D;y=A.Z1(y);y=a.F.gt(a.F.ii(y+u));C[I]=Math.max(y,0);C=new B0i(z,null,new mBh(C));z=(new RC).Mb(11).oa();a.Ja.Lb(nIg).xb(C,z)}}}(g):function(q){return function(u){var w=q.QD,y=q.Isb;if(a.D){var z=a.D.F,A=a.D.H,C=a.D.D.YA(),E=C.D,F=wdh(C,A.D,E?y:y+1);A=wdh(C,A.D,E?y+1:y);z=z.D;F=E?a.F.Yu(u.target.hf())-
z[w].start-z[w].size-F.F:z[w].start-a.F.Yu(u.target.hf())-A.Rb();w=a.F.ii(F);u={};z=a.F.gt(a.F.ii(IJ(C,y)+F));u[y]=new kBh(z,w,0);a.ma.Cq()&&(F=a.F.gt(a.F.ii(IJ(C,y+1)-F)),u[y+1]=new kBh(F,-w,0));y=E?C.H:C.R;E=a.D.J.D;C=Mce(a.R.Aa(),E,rqe(C));C=new B0i(E,new lBh(y,C,u,!1,!1),null);y=(new RC).Mb(11).oa();a.Ja.Lb(nIg).xb(C,y)}}}(g),this.za.listen(this.H[g.QD],sd,f),this.ea[g.QD]=f,g.QD>0&&XEi(this.H[g.QD],new bFi(this.H[g.QD-1],k?1:0,l)),g.QD<this.H.length-1&&XEi(this.H[g.QD],new bFi(this.H[g.QD+1],
k?0:1,l)),g.QD!=0&&g.QD!=this.H.length-1||this.H[g.QD].iN(new Yv(this.F.ii(c)+l,this.F.ii(p)-l));this.O=!1}};D.mpa=function(){this.H=[];this.ea=[]};D.nva=function(){this.Fa=this.Sa;this.va=this.W=null};D.kla=function(){this.Fa=!1;this.va=this.W=null};function F0i(a,c,e,f,g,h,k,l,p){this.F=a;this.J=c;this.D=e;this.H=f;this.W=g;this.O=h;this.ea=k;this.V=l;this.R=p};function G0i(a,c){a=uO+V("LC1he")+zSf+V(d7f)+MVf+V("tableSplitCellDialogColumnContainer")+n+VT(hhg,"tableSplitCellDialogColumnIcon");a+=LV(c,"Columns",void 0,void 0,void 0,"nyE0bc","tableSplitCellDialogColumnInput",void 0,void 0,void 0,zj,void 0,"1");a+=iO+V("tableSplitCellDialogRowContainer")+n+VT(hhg,"tableSplitCellDialogRowIcon");a+=LV(c,"Rows",void 0,void 0,void 0,"YMi5E","tableSplitCellDialogRowInput",void 0,void 0,void 0,zj,void 0,"1");a+=Fa;c=""+RV(void 0,"Split",!0);c=""+KV(U(a),"Split cell",
void 0,U(c));return U(c)};function H0i(){}H(H0i,fH);H0i.prototype.D=function(a){return new I0i(a)};H0i.prototype.wp=function(){return xG(13)};function I0i(a){J0i();nF.call(this,yCg,a)}var K0i;H(I0i,gH);I0i.prototype.Vc=function(a){var c=this.getContext().ub(),e=PI(c);if(e){var f=a.D.D(tC(e.D));if(f){a=mzh(c);c=a.length<2?0:a[0].jh();a=a.length<2?e.ae()-1|0:a[a.length-1|0].jh();var g=a-c+1|0,h=vqe(f.YA(),c,a);f={col_wt:0};g=ZA(WA(),h/g);for(f.col_wv=g;c<=a;c=c+1|0)qF(this,new hR(this.getContext(),e.D,cR(c,f)))}}};function J0i(){J0i=r();K0i=new H0i};function L0i(a){this.D=a}H(L0i,K);function M0i(){}H(M0i,fH);M0i.prototype.D=function(a){return new N0i(a)};M0i.prototype.wp=function(){return xG(13)};function N0i(a){O0i();nF.call(this,zCg,a)}var P0i;H(N0i,gH);N0i.prototype.Vc=function(a){var c=this.getContext().ub(),e=PI(c);if(e&&(a=a.D.D(tC(e.D)))){var f=bzh(c),g=f.length<2?0:MG(e,+f[0]|0),h=f.length<2?e.Id()-1|0:MG(e,+f[f.length-1|0]|0);f=h-g+1|0;var k=0,l=0;for(e=[];g<=h;g=g+1|0){var p=c;var q=g;p=azh(p.Aa(),SI(p),q);e.push(p);k+=a.Z1(g);l=Math.max(l,a.wFa(g))}c={};a=ZA(WA(),Math.max(l,k/f));c.row_mh=a;qF(this,new d1g(this.getContext(),e,c))}};function O0i(){O0i=r();P0i=new M0i};function Q0i(a){this.D=a}H(Q0i,K);function R0i(){}H(R0i,fH);R0i.prototype.D=function(a){return new S0i(a)};function S0i(a){T0i();nF.call(this,WHg,a)}var U0i;H(S0i,gH);S0i.prototype.Vc=function(a){var c=this.getContext().ub().Aa(),e=a.F;c=c.ld().Kc(e).Id();a=a.D;a>c||(e=qF(this,new V0i(this.getContext(),e,a)).yb(),this.D=new W0i(e))};function T0i(){T0i=r();U0i=new R0i};function X0i(){this.D=this.F=this.H=0}H(X0i,K);function Y0i(a){var c=new X0i;c.H=a;c.D=Kn(c.D|1);return c}function Z0i(a,c){a.F=c;a.D=Kn(a.D|2);return a}X0i.prototype.oa=function(){if(this.D!=3)throw un().Ea;var a=new $0i,c=this.F;a.F=this.H;a.D=c;return a};function $0i(){this.D=this.F=0}H($0i,gw);function W0i(a){this.Xc=WHg;this.D=a}H(W0i,GD);function V0i(a,c,e){this.D=a;this.H=c;this.F=e}var a1i={row_th:!0},b1i={row_th:!1};H(V0i,AG);
V0i.prototype.El=function(){var a=this.getContext().ub().Aa(),c=a.ld().Kc(this.H).Id();if(this.F>c)return O(0);for(var e=a.ld().Kc(this.H),f=0;f<this.F;f=f+1|0)for(var g=0;g<e.ae();g=g+1|0){var h=e.Bc(f,g);h&&h.ve()>1&&(this.F=Math.max(f+h.ve()|0,this.F))}for(f=0;f<c;f=f+1|0)g=azh(a,this.H,f),h=a.getStyle(zk,g),f<this.F&&!h.D?DD(this,new EG(zk,g,g,a1i)):f>=this.F&&h.D&&DD(this,new EG(zk,g,g,b1i));this.F>0&&(a=hzh(a,e,new GB(0,0,this.F,e.ae())),ED(this,a,!1));return O(this.F)};function c1i(){}H(c1i,fH);c1i.prototype.D=function(a){return new d1i(a)};function d1i(a){e1i();nF.call(this,rIg,a)}var f1i;H(d1i,gH);
d1i.prototype.Vc=function(a){var c=a.D,e=a.F,f=a.O,g=this.getContext().ub().Aa(),h=g.ld().Kc(c);if(!(!h||f<0||f>=h.ae())){var k=Lce(g,c);if(g1i(k,h)){this.getContext();var l=yeh(a.J,{sensitivity:"accent"});h1i();for(var p=g.ld().Kc(c),q=[],u=new gC,w=0;w<F_g(g,c);w=w+1|0){var y=oce(g,NG(p,w),f),z=QG(p,RG(p,y)),A=g,C=w,E=NG(p,w),F=new i1i,I=F,J=u;I.D=O(C);I.J=A.SR(y+1|0,z);I.H=J.ig(A,eC(dC(fC(),y+1|0),z).oa());I.O=j1i(A,I.J,y);C=A.getStyle(zk,E);I.F=C.ea.D?0:C.wa?1:C.D?2:3;q.push(F)}p=du;u=new k1i;
u.O4a=g;u.xLa=e;u.Etb=l;l=Om(k1i.prototype.D,u,l1i);p(q,l);l={};p=h.Id();for(u=0;u<p;u=u+1|0)l[q[u].D.yb()]=u;a=a.H;for(q=0;q<p;q=q+1|0)for(;(l[q]|0)!=q;)u=l[q]|0,w=c,F=q,I=u,C=a,F!=I&&(A=this.getContext().ub().Aa(),z=m1i(A,w,F),E=m1i(A,w,I),n1i(this,A,w,I,z,C),n1i(this,A,w,F,E,C)),l[q]=l[u]|0,l[u]=u;if(k!=0&&(a=g.ld().Kc(c))){for(l=q=0;l<a.Id();){p=azh(g,c,l);p=g.getStyle(zk,p);if(p.D&&!p.ea.D)break;else p.D||(q=q+1|0);l=l+1|0}g=k+q|0;g>0&&(g=new V0i(this.getContext(),c,g),qF(this,g))}g=aG(h,0,f);
h=h.Bc(g.D,g.F);pF(this,BC(tC(h?h.ce+1|0:c+3|0)),!0);this.D=new o1i(f,k,e)}}};function n1i(a,c,e,f,g,h){var k=new Z0g(a.getContext(),e,[f],h);qF(a,k);c=azh(c,e,f);g=Dah(a.getContext(),g,tC(c),h,!1);qF(a,g)}function m1i(a,c,e){c=azh(a,c,e);e=mce(a.Xa(),c);return a.SR(c,e)}function e1i(){e1i=r();f1i=new c1i};function p1i(a,c){this.D=a;this.O=c}H(p1i,K);p1i.prototype.Xm=lm("J");function o1i(a,c,e){this.Xc=rIg;this.H=a;this.D=c;this.F=e}H(o1i,GD);o1i.prototype.jh=x("H");function i1i(){}H(i1i,K);function k1i(){this.xLa=!1}H(k1i,K);function q1i(a,c){c=c.J;var e=jnh(c);c=fnh(c,+e[0]|0);return hnh(a.O4a,c,Le)}function r1i(a,c){c=c.J;for(var e=0,f=jnh(c),g=0;g<f.length;g++){var h=fnh(c,f[g]);h=oC(a.O4a.ox((Lhc(),Mhc)),h);e=e+pC(h).length|0}return e}
k1i.prototype.D=function(a,c){if(L(a.F,c.F))if(a.F!==3)a=ao(a.D.D,c.D.D);else{var e=a.O,f=c.O;if(L(e,f)){f=0;switch(e){case 2:case 3:case 4:case 5:f=this.Etb.compare(a.H,c.H);break;case 1:e=q1i(this,a);f=q1i(this,c);f=kic(e,f);break;case 7:f=r1i(this,a)-r1i(this,c)|0;break;case 0:e=zn(a.H);f=zn(c.H);f=Dn(e,f);break;case 6:f=0}a=f==0?ao(a.D.D,c.D.D):this.xLa?f:-f|0}else e===6?a=1:f===6?a=-1:(a=ao(e,f),a=this.xLa?a:-a|0)}else a=a.F-c.F|0;return a};
function l1i(a,c){c.xLa=a.xLa;c.O4a=a.O4a;c.Etb=a.Etb;c.RPd=!0};var s1i,t1i;function g1i(a,c){for(h1i();a<c.Id();a=a+1|0)for(var e=0;e<c.ae();e=e+1|0){var f=aG(c,a,e);if((f=c.Bc(f.D,f.F))&&f.Zf()!=2&&f.ve()>1)return!1}return!0}
function j1i(a,c,e){h1i();if(c.jb())return 6;var f=c.Xa();if(Qo(f)==="\ue909"){var g=jnh(c);g=It(g)?null:Ct(fnh(c,+g[0]|0));g=a.Dd(g);if(Dhc(g))return 3;if(Ehc(g))return 2;if(Ghc(g))return 1;if(Khc(g))return 7}a:if(g=c.Xa(),t1i.exec(g)){g=jnh(c);for(var h=0;h<g.length;h++){var k=fnh(c,g[h]);if(!Eo(a.Dd(k).getType(),Ug)){c=!1;break a}}c=!0}else c=!1;f=c?7:fG(a,e+1|0)?4:(a=s1i.exec(f))&&L(a[0],Qo(f))?0:5;return f}
function h1i(){h1i=r();s1i=RegExp("-?[0-9]*\\.?[0-9]+");t1i=RegExp("(\\s*\ue909\\s*)+")};function u1i(a,c,e,f,g,h,k,l,p){this.F=a;this.H=c;this.R=e;this.V=f;this.J=g;this.W=h;this.O=k;this.ea=l;this.ma=p}H(u1i,fH);u1i.prototype.D=function(a){return new v1i(a,this.F,this.H,this.R,this.V,this.J,this.W,this.O,this.ea,this.ma)};function v1i(a,c,e,f,g,h,k,l,p,q){nF.call(this,CAg,a);this.ma=c;this.H=e;this.za=f;this.Ca=g;this.va=h;this.Da=k;this.wa=l;this.Fa=p;this.ea=q}H(v1i,gH);
v1i.prototype.Vc=function(a){var c=this.getContext().ub();OI(c)&&Gzh(c);var e=a.D,f=a.F;Jt(gpc,e);Jt(Epc,f);a=SI(c);var g=c.Aa().getStyle(ll,a),h=this.Da.D(tC(a)),k;if((k=h)&&!(k=g.O!=1)){k=g.D.D;var l=k.D,p=k.H;k=!(w1i(k)&&l.H==0&&l.Vk()==e&&p.H==0&&p.Vk()==f)}k&&(k=a,FH(c.Aa(),k).D?(x1i(this,a,h,!1),a=SI(c)):g.O==0&&x1i(this,a,h,!0),c=y1i(0,0,O(e),null),e=z1i(0,0,O(f),null),f=null,g.O==0&&(f=A1i(O(2),O(2))),qF(this,new B1i(this.getContext(),a,h,this.H,c,e,f)))};
function x1i(a,c,e,f){qF(a,new C1i(a.getContext(),c,D1i(c,e,a.za,a.Ca,a.ea),!0,f,a.wa,a.va,a.ma,a.H,a.Fa,a.ea))};function B1i(a,c,e,f,g,h,k){this.D=a;this.J=c;this.W=e;this.V=f;this.R=g;this.O=h;this.ea=k}H(B1i,BG);
B1i.prototype.H=function(){var a=new qpc(null);a.Oc(this.O);a.H!=0&&(a=ZA(WA(),this.V.wta(this.J,a.D,Dpc(a,!0))),this.O.vp_to=a);var c=this.getContext().ub().Aa().getStyle(ll,this.J);a={};if(c.O==0){var e=this.W.YA().za;c=c.Vh();for(var f=0;f<c.length;f=f+1|0)if(yoc(c[f])==1){var g={col_wt:0},h=g,k=ZA(WA(),e[f]);h.col_wv=k;jF(this,new hR(this.getContext(),this.J,cR(f,g)))}a.tbls_pt=1}e=this.R;e=wXa in e&&e.hp_t==0?Zu(e,"hp_a").yb():0;a.tbls_al=e;cv(a,Xbb,{ft_p:E1i(this.R,this.O,this.ea)});jF(this,
new RCh(this.getContext(),a,O(this.J)))};function F1i(a,c){for(var e=G1i,f=0;f<e.length;f++){var g=e[f];if(clc(a.Xa(),c.D,g.START_MARKER,g.END_MARKER))return(e=g.START_MARKER!=="\uec01")||(e=a,a=H1i(a,c,"\uec01","\uec00"),e=!I1i(a,e)||a!=c.D),e}return!1}function H1i(a,c,e,f){return Ukc(a.Xa(),c.D,e,f)}function I1i(a,c){a=c.getStyle(kh,a).D;return L(Tkc(a.getType()),Lkc)}function E1i(a,c,e){var f={};a&&cv(f,r6a,a);c&&cv(f,t6a,c);e&&cv(f,s6a,e);return f}
function y1i(a,c,e,f){var g={};g.hp_rt=a;g.hp_t=c;c==0?g.hp_a=e.yb():g.hp_lo=f;return g}function z1i(a,c,e,f){var g={};g.vp_rt=a;g.vp_t=c;c==0?g.vp_a=e.yb():g.vp_to=f;return g}function A1i(a,c){var e={};a&&(e.tw_t=a.yb());c&&(e.tw_wd=c.yb());return e}function w1i(a){return a.D.D==0&&a.H.D==0}function J1i(a){var c=a.Ffa(0);return new Kr(ZA(WA(),c.x+a.YA().H),ZA(WA(),c.y))}
function D1i(a,c,e,f,g){c=J1i(c);c=new Kr(VA(WA(),c.x),VA(WA(),c.y));a=f.jF(e.ys(tC(a+3|0)).D-1|0).D;return new Kr(c.x+g.Yu(a.Rb()),c.y+g.Yu(a.Vb()))}function K1i(a,c){c=yA(a.Xa(),c);return!!a.NF(Wl,c)}function L1i(a,c){return a.Aa().getStyle(ll,c)}function M1i(a,c){return new Kr(c.ii(a.x),c.ii(a.y))}function N1i(a,c){return new Kr(c.Yu(a.x),c.Yu(a.y))};function O1i(){this.H=this.D=!1;this.F=0}H(O1i,K);function C1i(a,c,e,f,g,h,k,l,p,q,u){this.D=a;this.W=this.O=!1;this.F=c;this.J=M1i(e,u);this.O=f;this.W=g;this.V=h;this.va=k;this.ma=l;this.R=p;this.ea=q;a=new O1i;a.D=!1;a.H=!0;a.F=c-1|0;this.H=a}var G1i=[{START_MARKER:"\u0010",END_MARKER:"\u0011"},{START_MARKER:"\uec03",END_MARKER:"\uec02"},{START_MARKER:"\uec01",END_MARKER:"\uec00"}];H(C1i,AG);
C1i.prototype.El=function(){var a=this.getContext(),c=a.ub(),e=c.Aa();AVg(e,this.F);Fzh(e.Xa(),this.F);var f=null,g=RI(e.Xa(),this.F);this.F!=g&&(f=e.SR(this.F-1|0,g));if(!f)return e=this.H,c=L1i(c,this.F).O==0,e.D=c,this.H;FD(this,HG(a,[new Yv(this.F-1|0,g)],!0,!1,!0));this.va.Taa();c=f;if(this.W)e=tC(this.F-1|0);else{a=this.V.pD(this.J.x,this.J.y-this.ea.QO(),aH(new $G,djc).oa()).ug();a.D>=xA(e.Xa())&&(a=tC(xA(e.Xa())-1|0));FH(e,a.D).D&&this.O&&(a=this.V.pD(this.J.x,this.J.y-this.ea.QO(),$rd(aH(new $G,
djc),!0).oa()).ug());f=rG(e,a.D);var h=a.D;g=this.R.jQ(tC(f));h=this.R.jQ(tC(h));g=(g&&h?!g.Va(h):!0)||bKd(FH(e,a.D));(this.H.H=g)||(a=tC(f));for((f=Hbe(e,a.D))&&(a=tC(oG(e.Xa(),f.yb())));K1i(e,a.D);)a=yA(e.Xa(),a.D),a=tC(a-1|0);for(f=a;F1i(e,f);){a=e;h=f;f=G1i;for(g=0;g<f.length;g++){var k=f[g];clc(a.Xa(),h.D,k.START_MARKER,k.END_MARKER)&&(k.START_MARKER==="\uec01"?(k=a,h=H1i(a,h,"\uec01","\uec00"),h=I1i(h,k)?tC(h):tC(h-1|0)):h=tC(H1i(a,h,k.START_MARKER,k.END_MARKER)-1|0))}f=h}e=f}this.H.F=e.D;FD(this,
pZg(this.getContext(),c,e,this.ma,!1));ED(this,BC(tC(e.D+4|0)),!0);return this.H};function P1i(){}H(P1i,fH);P1i.prototype.D=function(a){return new Q1i(a)};function Q1i(a){R1i();nF.call(this,LAg,a)}var S1i;H(Q1i,gH);Q1i.prototype.Vc=function(a){var c=this.getContext().ub();if(OI(c)){a=a.D;Olc();for(var e=0;e<XXg.length;e++)if(XXg[e]in a)throw Vm("tS`"+M(nhb(Rgb(this)))+"`"+M(nhb(Qm(T1i)))).Ea;e=I_g(c);Eu(e,zVg(c,e));qF(this,jR(this.getContext(),a,e));this.D=new U1i(a)}else this.D=new U1i({})};function R1i(){R1i=r();S1i=new P1i};function V1i(a){this.D=a}H(V1i,K);function U1i(a){this.Xc=LAg;this.D=a}H(U1i,GD);function W1i(a,c,e,f){var g=e.D;e=e.F;a=a.Eg(ll,c.D).H;switch(f){case od:return X1i(c,g,e,!1);case kd:return X1i(c,g,e,!0);case md:return Y1i(c,g,e,a,!1);case nd:return Y1i(c,g,e,a,!0);default:throw Vm("uS`"+M(f)).Ea;}}function X1i(a,c,e,f){c=f?c+1|0:c-1|0;if(!ZF(a,c,e))return null;a=a.Bc(c,e).ce;return new jG(a,f?od:kd)}function Y1i(a,c,e,f,g){e=f==g?e+1|0:e-1|0;if(!ZF(a,c,e))return null;a=a.Bc(c,e).ce;return new jG(a,g?md:nd)};function Z1i(a,c,e){this.D=a;this.H=c;this.F=e}H(Z1i,K);Z1i.prototype.yd=x("D");Z1i.prototype.Jb=x("H");function $1i(){}H($1i,fH);$1i.prototype.D=function(a){return new T1i(a)};function T1i(a){a2i();nF.call(this,yKg,a)}var b2i;H(T1i,gH);
T1i.prototype.Vc=function(a){this.D=(c2i(),d2i);var c=this.getContext().ub();if(OI(c)&&(a.D!=null||a.H!=null||a.F!=null)){var e=a.yd(),f=a.Jb();a=a.F;var g=c.Aa(),h=c.hb().getSelection().zc;if(h.getType()==4){h=h.F;for(var k=0;k<h.length;k++){var l=h[k];e2i(this,g,l,e,f,a);var p=l.D;c=g.ld().Kc(p);p=RG(c,p);l=W1i(g,c,p,l.F);e2i(this,g,l,e,f,a)}}else for(g={cell_bb_i:!1,cell_bl_i:!1,cell_br_i:!1,cell_bt_i:!1},h=I_g(c),k=c.Aa(),l=k.ld(),Eu(h,zVg(c,h)),c=0;c<h.length;c++){p=h[c];var q=l.Kc(p),u=k.Eg(id,
p);cv(g,kd,f2i(u.W,e,f,a));cv(g,md,f2i(u.ea,e,f,a));cv(g,nd,f2i(u.O,e,f,a));cv(g,od,f2i(u.ma,e,f,a));qF(this,jR(this.getContext(),g,[p]));u=RG(q,p);p=k;var w=u;u=[];var y=W1i(p,q,w,od);y&&u.push(y);(y=W1i(p,q,w,kd))&&u.push(y);(y=W1i(p,q,w,md))&&u.push(y);(p=W1i(p,q,w,nd))&&u.push(p);p=u;for(q=0;q<p.length;q++)e2i(this,k,p[q],e,f,a)}this.D=new g2i(e,f,a)}};function e2i(a,c,e,f,g,h){if(e){var k=e.D;c=c.Eg(id,k);e=e.F;c=dmc(c,e);f=f2i(c,f,g,h);f=Av(vv(),e,f).oa();qF(a,jR(a.getContext(),f,[k]))}}
function f2i(a,c,e,f){e=xv(xv(vv(),qpa,f!=null?f:a.D.H),spa,e!=null?e:a.D.D);a=c?c:a.yd().Jf();Av(e,bd,fA(a));return e.oa()}function a2i(){a2i=r();b2i=new $1i};function g2i(a,c,e){c2i();this.Xc=yKg;this.F=a;this.H=c;this.D=e}var d2i;H(g2i,GD);g2i.prototype.yd=x("F");g2i.prototype.Jb=x("H");function c2i(){c2i=r();d2i=new g2i(null,null,null)};function h2i(){}H(h2i,fH);h2i.prototype.D=function(a){return new i2i(a)};function i2i(a){j2i();nF.call(this,DAg,a)}var k2i;H(i2i,gH);i2i.prototype.Vc=function(a){var c=this.getContext().ub();if(OI(c)){a=a.D;var e=SI(c);c.Aa().getStyle(ll,e).O==1&&zra in a&&a.col_wt==1&&qF(this,new l2i(this.getContext(),e));c=mzh(c);for(e=0;e<c.length;e++){var f=c[e];qF(this,new hR(this.getContext(),f.D,cR(f.jh(),a)))}}};function j2i(){j2i=r();k2i=new h2i};function l2i(a,c){this.D=a;this.J=c}H(l2i,BG);l2i.prototype.H=function(){this.getContext().ub().Aa().getStyle(ll,this.J).O!=0&&jF(this,new RCh(this.getContext(),{tbls_pt:0,tbls_al:0,tbls_in:0},O(this.J)))};function m2i(){}H(m2i,fH);m2i.prototype.D=function(a){return new n2i(a)};function n2i(a){o2i();nF.call(this,WAg,a)}var p2i;H(n2i,gH);n2i.prototype.Vc=function(a){var c=this.getContext().ub(),e=a.F;if(OI(c)||e){var f=a.H;e=e?e:bzh(c);f&&e&&qF(this,new d1g(this.getContext(),e,f));(a=a.D)&&qF(this,new V0i(this.getContext(),SI(c),a.yb()))}};function o2i(){o2i=r();p2i=new m2i};function q2i(){this.D=this.F=0}H(q2i,K);function r2i(){}H(r2i,fH);r2i.prototype.D=function(a){return new s2i(a)};function s2i(a){t2i();nF.call(this,"kix-ats",a)}var u2i;H(s2i,gH);
s2i.prototype.Vc=function(a){var c=this.getContext().ub();if(OI(c)){var e=a.F,f=null;wbb in e&&(f=O(e.tbls_al));if(f&&f.yb()!=0&&(e.tbls_in=0,f.yb()!=0)){f=a.D;a=[];for(var g=D_g(c),h=0;h<g.length;h++){var k=g[h],l=tC(k);l=c.Aa().MD(ll,l);var p=l.W;if(p!=0){var q=l.Vh();l=[];for(var u=0;u<q.length;u=u+1|0)yoc(q[u])==1&&l.push(u);l.length!=0&&(q=f.D(tC(k-1|0)),q-=p,p=Hce(q,k,c.Aa()),u=ZA(WA(),p[+l[0]|0]),q=p=new q2i,q.F=k,q.H=l,q.D=u,a.push(p))}}for(f=0;f<a.length;f++)for(k=a[f],g=k.F,h={col_wt:0,
col_wv:k.D},k=k.H,l=0;l<k.length;l++)p=k[l],qF(this,new hR(this.getContext(),g,cR(p,h)))}qF(this,new RCh(this.getContext(),e,null));if(e&&ybb in e||zbb in e){f=ybb in e?e.tbls_bc2.hclr_color:null;g=$u(e,zbb);e=c.Aa().ld().Kc(c.hb().Jd());a={};h={};f!=null&&cv(h,bd,fA(f));g!=null&&(h.brdr_w=g);cv(a,kd,h);cv(a,md,h);cv(a,nd,h);cv(a,od,h);f=e.Id();g=e.ae();for(h=0;h<f;h=h+1|0)for(k=0;k<g;k=k+1|0)if(l=e.Bc(h,k))l=l.ce,qF(this,new CG(this.getContext(),id,a,l,l,!0));e=c.Aa().ld().Kc(c.hb().Jd());a={cfmt_cg:{cellgp_bl_i:!0,
cellgp_br_i:!0,cellgp_bt_i:!0,cellgp_bb_i:!0,cellgp_bih_i:!0,cellgp_biv_i:!0}};f=(Kpc(),Qpc);c={};for(g=0;g<f.length;g++)cv(c,f[g],a);e=e.D;qF(this,new CG(this.getContext(),ll,c,e,e,!0))}}};function t2i(){t2i=r();u2i=new r2i};function v2i(a,c){this.F=a;this.D=c}H(v2i,K);function w2i(a,c,e){Hx.call(this);x2i(this,a,c,e)}H(w2i,Hx);function x2i(a,c,e,f){a.H=c;a.R=e;a.O=f;a.D.Pa(a.H.gg(),function(){Jx(a,y2i(a))});a.D.Pa(a.O.Hf(),function(){Jx(a,y2i(a))});Ix(a,y2i(a))}function y2i(a){var c=new Kx,e=a.H.hb().Jd(),f=a.H.Aa().Xa(),g=!1;QI(f,e)&&(e=TI(f,e),g=A0i(a.R,e,a.O));c.put(xbg,g);return c};function z2i(a,c,e){this.D=a;this.F=c;this.H=e}H(z2i,K);function A2i(){this.D=0}H(A2i,K);function B2i(){}H(B2i,fH);B2i.prototype.D=function(a){return new C2i(a)};B2i.prototype.wp=function(){return xG(13)};function C2i(a){D2i();nF.call(this,mCg,a);E2i(this)}var F2i;H(C2i,gH);
C2i.prototype.Vc=function(a){var c=this.getContext().ub(),e=c.Aa(),f=e.Xa(),g=a.H,h=c.hb().getSelection();g&&(h=AC(h));g=h.D;g.length==0&&(h=c.Aa().og(h.zc),g.push(new Yv(h,h)));var k=c.Aa();if(OI(c)){var l=SI(c);h=Wyh(c);if(G_g(k,l,this.getContext().lb().Ha(of))==0)var p=[];else{k=l+2|0;l=h-1|0;h={};for(var q=c.Aa(),u=q.Xa(),w=0;w<g.length;w++){var y=g[w],z=ew(y);y=fw(y);var A=QI(u,z)?TI(u,z)+2|0:-1,C=QI(u,y)?TI(u,y)+2|0:-1;if(k==A||k==C){z<k&&(z=k);y>l&&(y=l);C=q;var E=new Yv(z,y);Yyh(C.Xa(),E)?
(A=Ht(Xyh(C,ew(E)),0),C=Ht(Xyh(C,fw(E)),0),A=A==C):A=!1;if(A)if(A=TI(u,z),C=E_g(q,z),z=ice(q,z),y=ice(q,y),E=h[A],E||(Su(h,A,[]),E=h[A]),y.D>(z.D+1|0))G2i(E,0,C-1|0);else if(y.D==z.D)G2i(E,z.F,y.F);else if(y.D==(z.D+1|0))G2i(E,z.F,C-1|0),G2i(E,0,y.F);else throw Lx("The start of the selection range can not be in a lower row than the end of the range.").Ea;}}g=I_g(c);k=[];for(p in h){l=so(p);q=h[l];u=c;w=g;z=l;y=q;for(A=0;A<w.length;A++)if(E=w[A],C=u.Aa().ld().Kc(z),E=RG(C,E))if(C=C.Bc(E.D,E.F),C.Zf()==
0){E=E.F;for(var F=1;F<C.Ge();F=F+1|0)fz(y,E+F|0)}w=u=new A2i;w.D=l;w.F=q;TTb(k,u,this.H)}p=k}}else p=[];c=0;h=a.D;for(g=p.length-1|0;g>=0;g=g-1|0)c=qF(this,new V0g(this.getContext(),p[g].D,p[g].F,h)).yb();a.F&&QI(f,c)?(a=e.ld().Kc(c),f=pce(e,c),pF(this,kzh(e,a,f),!0)):pF(this,BC(tC(c)),!0)};function G2i(a,c,e){for(;c<=e;c=c+1|0)fz(a,c)}function E2i(a){a.H=function(c,e){return c.D-e.D|0}}function D2i(){D2i=r();F2i=new B2i};function H2i(a){this.F=a}H(H2i,fH);H2i.prototype.D=function(a){return new I2i(a,this.F)};H2i.prototype.wp=function(){return xG(13)};function I2i(a,c){nF.call(this,oCg,a);this.H=c}H(I2i,gH);I2i.prototype.Vc=function(){var a=this.getContext().ub();if(OI(a)){var c=SI(a),e=Wyh(a);a=a.Aa();if(this.H)for(var f=a.ld().Kc(c),g=0;g<f.Id();g=g+1|0){var h=NG(f,g);if(h=Bod(h,a))oF(this,new xPc(h.D,h.Qo(),h.assignee())),W$g(this.H,h.Qo())}qF(this,HG(this.getContext(),[new Yv(c,e)],!1,!1,!0));pF(this,BC(tC(c)),!0)}};function J2i(a){this.F=a}H(J2i,fH);J2i.prototype.D=function(a){return new K2i(a,this.F)};J2i.prototype.wp=function(){return xG(13)};function K2i(a,c){nF.call(this,oCg,a);this.H=c}H(K2i,gH);
K2i.prototype.Vc=function(a){var c=a.D,e=this.getContext().ub();if(OI(e)){var f=e.Aa(),g=f.Xa(),h=e.hb();h=f.ld().Kc(h.Jd());var k=a.H;var l=e.hb();var p=l.getSelection();k&&(p=AC(p));k=p.D;p=e.Aa();var q=l.Jd();l=[];if(Mt(k))if(k=RG(h,q))for(p=h.Bc(k.D,k.F),fz(l,k.D),p=p.ve(),q=1;q<p;q=q+1|0)fz(l,k.D+q|0);else l=[];else{p=p.Xa();q=h.D;for(var u=h.F,w=0;w<k.length;w++){var y=k[w],z=ew(y);y=fw(y);if(!(z>u||y<q)){if(z<=q)z=0;else{var A=RG(h,z);if(A)z=A.D;else if(Lo(BA(p,z),"\u0012"))z=MG(h,z);else throw Lx("Spacer index "+
z+ORf).Ea;}if(y>=u)y=h.Id()-1|0;else if(A=RG(h,y))y=A.D,A=h.Bc(A.D,A.F),A.ve()>1&&(y=y+(A.ve()-1)|0);else if(Lo(BA(p,y),"\u0012"))y=MG(h,y);else throw Lx("Spacer index "+y+ORf).Ea;for(;z<=y;z=z+1|0)fz(l,z)}}}k=l;if(this.H)for(p=0;p<k.length;p++)if(q=NG(h,k[p]),q=Bod(q,f))oF(this,new xPc(q.D,q.Qo(),q.assignee())),W$g(this.H,q.Qo());c=+qF(this,new Z0g(this.getContext(),h.D,l,c))[0]|0;for(e=e.Aa().Xa();Lo(BA(e,c),"\u0012");)c=c+1|0;e=c;a.F&&QI(g,e)?(a=WI(f,e),pF(this,jzh(f,h,a),!0)):pF(this,BC(tC(e)),
!0)}};function L2i(a,c,e){this.D=a;this.F=c;this.H=e}H(L2i,K);function M2i(a){this.F=a}H(M2i,fH);M2i.prototype.D=function(a){return new N2i(a,this.F)};function O2i(a,c,e,f){this.D=a;this.J=c;this.R=e;this.O=f}H(O2i,BG);O2i.prototype.H=function(){for(var a=this.O,c=0,e=a.Id();c<e;c=c+1|0){var f=aG(a,c,this.J),g=a.Bc(f.D,f.F);f=a.Bc(c,this.R);g!=null&&f!=null&&g.Zf()==0&&f.Zf()==2&&(g={cell_rs:g.ve()},jF(this,jR(this.getContext(),g,[f.ce])))}};function N2i(a,c){nF.call(this,OEg,a);this.H=c}H(N2i,gH);N2i.prototype.Vc=function(a){var c=this.getContext().ub().Aa(),e=a.H,f=a.F,g=c.ld().Kc(e);c=c.getStyle(ll,e);f<0||f>=c.Vh().length||(c=f+1|0,qF(this,new P2i(this.getContext(),c,g)),a=a.D,qF(this,new h1g(this.getContext(),1,c,e,f,a,this.H)),qF(this,new O2i(this.getContext(),f,c,g)),f=aG(g,0,c),g=g.Bc(f.D,f.F),pF(this,BC(tC(g?g.ce+1|0:e+3|0)),!0),this.D=new Q2i(c,g?f.F:0,g?f.D:0))};function R2i(a,c){this.H=a;this.F=c}H(R2i,K);function Q2i(a,c,e){this.Xc=OEg;this.H=a;this.D=c;this.F=e}H(Q2i,GD);function P2i(a,c,e){this.D=a;this.J=c;this.O=e}H(P2i,BG);P2i.prototype.H=function(){if(this.J!=this.O.ae()&&this.J!=0){for(var a={},c=0;c<this.O.Id();c=c+1|0){var e=this.O.Bc(c,this.J);e&&e.Zf()==1&&(e=e.Xp(),RG(this.O,e.ce).F<this.J&&Ru(a,""+e.ce,e))}for(var f in a)e=a[f],c=e.ce,e={cell_cs:e.Ge()+1|0},jF(this,jR(this.getContext(),e,[c]))}};function S2i(a,c,e,f){this.D=a;this.J=c;this.R=e;this.O=f}H(S2i,BG);S2i.prototype.H=function(){for(var a=this.O,c=0,e=a.ae();c<e;c=c+1|0){var f=aG(a,this.J,c),g=a.Bc(f.D,f.F);f=a.Bc(this.R,c);g!=null&&f!=null&&g.Zf()==0&&f.Zf()==2&&(g={cell_cs:g.Ge()},jF(this,jR(this.getContext(),g,[f.ce])))}};function T2i(a,c,e,f){this.D=a;this.O=c;this.R=e;this.J=f}H(T2i,BG);T2i.prototype.H=function(){t3h(this.getContext().ub().Aa(),this.J);jF(this,gR(this.getContext(),"\ue909",tC(this.J)));this.F(auh(this.O,this.R,this.getContext().lb().Ha(mg)));jF(this,new JG(this.getContext(),this.O,this.J))};function U2i(a,c,e,f){this.D=a;this.O=c;this.V=e;this.R=f;this.J=[]}H(U2i,BG);
U2i.prototype.H=function(){for(var a=this.R,c=this.getContext().ub().Aa(),e=0;e<a.ae();e=e+1|0){var f=a.Bc(this.O,e);if(f!=null){var g=a.Bc(this.V,e).ce+1|0,h=knh(c,a,new EB(this.O,e));if((f=Kzh(c,f.ce))&&f.yb()!=0&&this.getContext().lb().Ha(zi)){var k=dDh(f.yb());k.D&&V2i(this,Z2g(k),g);f.yb()!=2&&f.yb()!=5||h==null||(h=c.Dd(h),Hhc(h)?W2i(this,h,g):Khc(h)&&X2i(this,h,g))}else h!=null&&(h=c.Dd(h),Dhc(h)?V2i(this,1,g):Ghc(h)?V2i(this,3,g):Ehc(h)?S7c(h.getUrl())&&this.getContext().lb().Ha(Hjg)?V2i(this,
5,g):Czd(h)?V2i(this,4,g):h.getMimeType()!=null&&V2i(this,2,g):h instanceof Nhc?V2i(this,h.By,g):Hhc(h)?W2i(this,h,g):Khc(h)&&X2i(this,h,g))}}};function X2i(a,c,e){c=oC(a.getContext().ub().Aa().ox((Lhc(),Mhc)),c.getId()).D;jF(a,new T2i(a.getContext(),kF(ui),new Yhc(c,[],!1,null),e))}function W2i(a,c,e){c=jF(a,new q3h(a.getContext(),e,c.D,0,!1));a.J.push(c)}function V2i(a,c,e){jF(a,new Q3h(a.getContext(),c,e,!1,!1))};function Y2i(){}H(Y2i,fH);Y2i.prototype.D=function(a){return new Z2i(a)};function Z2i(a){$2i();nF.call(this,PEg,a)}var a3i;H(Z2i,gH);
Z2i.prototype.Vc=function(a){var c=this.getContext().ub().Aa(),e=a.D;if(!(e<0)){var f=a.H,g=c.ld().Kc(f);if(!(e>=g.Id())){var h=OG(g,e)+1|0;qF(this,new j1g(this.getContext(),1,h,OG(g,e)));qF(this,new b3i(this.getContext(),h,g));c=WI(c,h);qF(this,new S2i(this.getContext(),e,c,g));e=new U2i(this.getContext(),e,c,g);qF(this,e);e=e.J;h=!1;var k=-1,l=-1;a.F&&(a=aG(g,c,0),g=g.Bc(a.D,a.F),pF(this,BC(tC(g?g.ce+1|0:f+3|0)),!0),h=!0,k=g?a.F:0,l=g?a.D:0);this.D=new mZi(c,h,k,l,e)}}};
function $2i(){$2i=r();a3i=new Y2i};function c3i(a,c,e){this.H=a;this.D=c;this.F=e}H(c3i,K);function b3i(a,c,e){this.D=a;this.J=c;this.O=e}H(b3i,BG);b3i.prototype.H=function(){var a=this.O,c=RG(a,this.J+1|0).D;c=YF(a,c);a={};for(var e=0;e<c.length;e++){var f=c[e];f!=null&&f.Zf()==1&&(f=f.Xp(),f.ce<this.J&&Ru(a,""+f.ce,f))}for(var g in a)c=a[g],e={cell_rs:c.ve()+1|0},jF(this,jR(this.getContext(),e,[c.ce]))};function d3i(){}H(d3i,fH);d3i.prototype.D=function(a){return new e3i(a)};d3i.prototype.wp=function(){return xG(13)};function e3i(a){f3i();nF.call(this,GEg,a)}var g3i;H(e3i,gH);
e3i.prototype.Vc=function(a){var c=this.getContext().ub(),e=c.Aa();if(OI(c)){var f=SI(c),g=e.getStyle(ll,f).H==a.J,h=c.hb().getSelection();a.R&&(h=AC(h));var k=GVg(e,h,[f]);h=e.ld().Kc(+k[0]|0);for(var l=null,p=null,q=0;q<k.length;q++){var u=RG(h,k[q]);if(!l||u.F<l.F)l=u;if(!p||u.F>p.F)p=u}l=g?p:l;k=l.F+(g?1:0)|0;g&&(p=h.Bc(l.D,l.F),p.Zf()==0&&(k=k+(p.Ge()-1)|0));c=a.F?1:mzh(c).length;qF(this,new P2i(this.getContext(),k,h));qF(this,new h1g(this.getContext(),c,k,f,l.F,a.H,a.D));qF(this,new g1g(this.getContext(),
f,a.D));qF(this,new O2i(this.getContext(),l.F+(g?0:1)|0,k,h));a.O?pF(this,kzh(e,h,k),!0):(a=aG(h,0,k),a=h.Bc(a.D,a.F),pF(this,BC(tC(a?a.ce+1|0:f+3|0)),!0));this.D=new h3i(k,k,0)}};function f3i(){f3i=r();g3i=new d3i};function i3i(a,c,e,f,g,h){this.J=a;this.O=c;this.F=e;this.R=f;this.H=g;this.D=h}H(i3i,K);function h3i(a,c,e){this.Xc=GEg;this.H=a;this.D=c;this.F=e}H(h3i,GD);function j3i(){this.F=k3i()}H(j3i,fH);j3i.prototype.D=function(a){return new l3i(a)};j3i.prototype.wp=function(){return this.F.F};j3i.prototype.vr=function(){return this.F.D};function k3i(){return WS([],[3,5,7,19,17,18],Eth(Cth(["\u001c","\u0011","\u0012","\u0010"]),[id,zk,ll]).oa())};function l3i(a){m3i();nF.call(this,FEg,a)}var n3i;H(l3i,gH);l3i.prototype.Vc=function(a){var c=a.D;a=a.F;var e=qF(this,new o3i(this.getContext(),a,c)).wN();this.D=new p3i(a,c,new smd(e,null))};function m3i(){m3i=r();n3i=new j3i};function q3i(a,c){this.F=a;this.D=c}H(q3i,K);function p3i(a,c,e){this.Xc=FEg;this.H=a;this.D=c;this.F=e}H(p3i,GD);p3i.prototype.Vh=x("D");function r3i(){this.F=!1}H(r3i,K);function s3i(a,c){var e=new r3i;e.D=a;e.F=c;return e}r3i.prototype.wN=x("F");function o3i(a,c,e){this.D=a;this.H=c;this.F=e}H(o3i,AG);
o3i.prototype.El=function(){var a=this.getContext(),c=a.ub(),e=c.Aa(),f=c.hb().getSelection(),g=f.zc,h=!1;switch(g.getType()){case 0:f.Qd?(h=Ht(FD(this,a.Mma()).D,0),f=tC(h),h=!0):f=g;break;case 1:f=tC(e.og(g));FD(this,new Rnd(a,g.getId()));h=!0;break;case 6:h=e.og(g);f=tC(h);h=GG(a,[new Yv(h,h)]);FD(this,h);h=!0;break;default:return s3i(null,h)}g=this.H;for(var k=this.F,l=Bo(Tmb("\n"),"\u0010"),p=0;p<g;p=p+1|0)Bo(l,"\u0012"),Bo(l,KKb("\u001c\n",k));Bo(l,"\u0011");g=l.toString();FD(this,gR(a,g,f));
a=f.D;p=e.getStyle(Jj,a);f=yB(p);switch(p.Vk()){case 1:k=1;break;case 2:k=2;break;default:k=0}var q=sJ(e);q&&(k=1);e=a+1|0;l=this.F;p=p.D.H;c=q&&!OI(c);c=psh(l,500,175,c);c={tbls_cols:pB(c),tbls_ltr:f,tbls_in:p,tbls_tblid:kF(jl)};p==0&&(c.tbls_al=k);DD(this,new EG(ll,e,e,c));k=0;for(c=[];(k=g.indexOf("\n",k+1|0))>0;)c.push(a+k|0);FD(this,new T0g(this.getContext(),c));g={ps_ltr:f};for(a=0;a<c.length;a++)f=c[a],FD(this,new CG(this.getContext(),Jj,g,f,f,!0));ED(this,BC(tC(e)),!0);return s3i(O(e),h)};function t3i(){}H(t3i,fH);t3i.prototype.D=function(a){return new u3i(a)};t3i.prototype.wp=function(){return xG(13)};function u3i(a){v3i();nF.call(this,JEg,a)}var w3i;H(u3i,gH);
u3i.prototype.Vc=function(a){var c=this.getContext().ub(),e=c.Aa();if(OI(c)){var f=a.F,g=c.hb().getSelection(),h=a.J;h&&(g=AC(g));var k=SI(c);g=GVg(e,g,[k]);k=f?+g[0]|0:+g[g.length-1|0]|0;g=e.ld().Kc(k);var l=RG(g,k),p=l.D;f||h||(h=g.Bc(l.D,l.F),p=l.D+h.ve()-1|0);h=f?NG(g,p):OG(g,p)+1|0;c=a.D?1:bzh(c).length;f=p+(f?c:0)|0;qF(this,new j1g(this.getContext(),c,h,k));qF(this,new b3i(this.getContext(),h,g));k=WI(e,h);qF(this,new S2i(this.getContext(),f,k,g));p=[];for(l=k;l<(k+c|0);l=l+1|0){var q=new U2i(this.getContext(),
f,l,g);qF(this,q);Xt(p,q.J)}a.H?pF(this,jzh(e,g,k),!0):pF(this,BC(tC(h+2|0)),!0);this.D=new nZi(k,k,0,p)}};function v3i(){v3i=r();w3i=new t3i};function x3i(a,c,e,f){this.F=a;this.H=c;this.D=e;this.J=f}H(x3i,K);function y3i(a){this.F=a}H(y3i,fH);y3i.prototype.D=function(a){return new z3i(a,this.F)};y3i.prototype.wp=function(){return xG(13)};function z3i(a,c){nF.call(this,KEg,a);this.H=c}H(z3i,gH);z3i.prototype.Vc=function(){var a=this.getContext().ub();OI(a)&&(a=SI(a),qF(this,new A3i(this.getContext(),a,this.H)))};function A3i(a,c,e){B3i();this.D=a;this.J=c;this.O=e}var C3i;H(A3i,BG);A3i.prototype.H=function(){var a=this.getContext(),c=a.ub().Aa(),e=c.Xa();if(!Lo(BA(e,this.J),"\u0010"))throw Vm("vS`"+this.J).Ea;e=this.J+1|0;jF(this,new j1g(a,1,e,e));c=c.ld().Kc(this.J);iF(this,BC(tC(c.Bc(0,0).ce+1|0)),!0);jF(this,new d1g(a,[e],C3i));e=M_g(c,0);var f=M_g(c,0);jF(this,jR(this.getContext(),(aDh(),SCh),f));jF(this,new Bah(a,2,!0,2));jF(this,czd(a,{ps_sb:6,ps_sa:6},!0));jF(this,new f1g(a,e,1,c.ae(),this.O))};
function D3i(){var a={};cv(a,A9a,{tr_itr:!0});a.row_th=!0;return a}function B3i(){B3i=r();C3i=D3i()};function E3i(a){this.D=a}H(E3i,K);function F3i(){}H(F3i,fH);F3i.prototype.D=function(a){return new G3i(a)};function G3i(a){H3i();nF.call(this,uHg,a)}var I3i;H(G3i,gH);
G3i.prototype.Vc=function(a){var c=this.getContext().ub();if(cce(c)){var e=I_g(c),f=c.Aa().ld().Kc(+e[0]|0);if(szh(c.Aa(),e,f)){e=rzh(e,f);c=[];for(var g=e.Vb();g<=e.bottom;g++)for(var h=e.Rb();h<=e.right;h++){var k=f.Bc(Ln(g),Ln(h));c.push(k.ce)}e=c;c=RG(f,+e[0]|0);h=RG(f,+e[e.length-1|0]|0);g=f.Bc(h.D,h.F);g.Zf()==0&&(h=new EB(h.D+g.ve()-1|0,h.F+g.Ge()-1|0));g=h.D-c.D+1|0;h=h.F-c.F+1|0;for(var l=k=0;l<g;l=l+1|0)for(var p=0;p<h;p=p+1|0){var q=f.Bc(c.D+l|0,c.F+p|0);if(q&&q.Zf()==0||q.Zf()==2)k=k+
1|0}this.D=new sTh(uHg,k,!0);qF(this,new f1g(this.getContext(),e,g,h,a.D));e=+e[0]|0;a=this.getContext().ub().Aa();(f=a.ld().Kc(e))?(e=Vyh([e],f),e=new GB(Ln(e.Vb()),Ln(e.Rb()),Ln(e.getHeight())+1|0,Ln(e.Jb())+1|0),e=f.Q4(e),c=O(3),a=gzh(a,f,e,c)):a=null;this.getContext().ub().Mh(a,!0,!0,null)}}};function H3i(){H3i=r();I3i=new F3i};function J3i(){}H(J3i,fH);J3i.prototype.D=function(a){return new K3i(a)};J3i.prototype.Ul=B(Mk);function K3i(a){L3i();nF.call(this,pGg,a)}var M3i;H(K3i,gH);
K3i.prototype.Vc=function(a){var c=this.getContext().ub().Aa(),e=a.D,f=a.J;if(f!=e&&(f-1|0)!=e){var g=a.O,h=c.ld().Kc(g);if(Azh(e,h,c)&&Bzh(f,h,c)){var k=N3i(c,g),l=a.H,p=a.F;qF(this,new h1g(this.getContext(),1,f,g,e,p,l));e=f>e?e:e+1|0;p=F_g(c,g);for(var q=0;q<p;q=q+1|0)if(!K_g(c,h,q)){var u=oce(c,NG(h,q),e),w=oce(c,NG(h,q),f);qF(this,new U0g(this.getContext(),[u],w,l,!0))}qF(this,new O2i(this.getContext(),e,f,h));qF(this,new V0g(this.getContext(),g,[e],l));a=a.D;f=f>a?f-1|0:f;c=G_g(c,g,this.getContext().lb().Ha(of));
c=f=cFb(f,0,c-1|0);e=k[a];k=iu(k);Bu(k,a);k.splice(c,0,e);for(c=0;c<k.length;c=c+1|0)qF(this,new hR(this.getContext(),g,cR(c,k[c])));k=aG(h,0,f);h=h.Bc(k.D,k.F);pF(this,BC(tC(h?h.Dk:g+3|0)),!0);this.D=new O3i(a,f,k.F,k.D)}}};function N3i(a,c){return a.getStyle(ll,c).Vh().map(function(e){return e.xd()})}function L3i(){L3i=r();M3i=new J3i};function P3i(a,c,e){this.O=a;this.D=c;this.J=e}H(P3i,K);function O3i(a,c,e,f){this.Xc=pGg;this.O=a;this.H=c;this.F=f;this.D=e}H(O3i,GD);function Q3i(a,c,e,f,g,h,k,l,p){this.F=a;this.H=c;this.J=e;this.R=f;this.V=g;this.W=h;this.O=k;this.ea=l;this.ma=p}H(Q3i,fH);Q3i.prototype.D=function(a){return new R3i(a,this.F,this.H,this.J,this.R,this.V,this.W,this.O,this.ea,this.ma)};function R3i(a,c,e,f,g,h,k,l,p,q){nF.call(this,"kix-mT",a);this.va=c;this.wa=e;this.za=f;this.H=g;this.ea=h;this.Da=k;this.Ca=l;this.Fa=p;this.ma=q}H(R3i,gH);
R3i.prototype.Vc=function(a){var c=this.getContext().ub();AVg(c.Aa(),a.D);Fzh(c.Aa().Xa(),a.D);var e=this.Da.D(tC(a.D)),f=D1i(a.D,e,this.H,this.ea,this.ma);f=new Kr(f.x+a.F,f.y+a.H);var g=this.getContext(),h=a.D;var k=L1i(c,a.D);k=k.O==1?k.D.D.D.D:4;a=L1i(c,a.D);qF(this,new S3i(g,h,e,f,k,a.O==1?a.D.D.H.D:4,this.Ca,this.za,this.va,this.wa,this.H,this.ea,this.Fa,this.ma))};function T3i(){this.H=this.F=this.D=0}H(T3i,gw);function S3i(a,c,e,f,g,h,k,l,p,q,u,w,y,z){this.D=a;this.va=this.ea=this.V=0;this.R=c;this.Ja=e;this.O=M1i(f,z);this.V=g;this.ea=h;this.Ca=k;this.za=l;this.wa=p;this.W=q;this.Da=u;this.Fa=w;this.Na=y;this.J=z}H(S3i,BG);
S3i.prototype.H=function(){var a=this.getContext().ub().Aa();AVg(a,this.R);Fzh(a.Xa(),this.R);a=RI(a.Xa(),this.R);if(this.R!=a){a=this.W.lx(tC(this.R-1|0));this.va=this.J.Yu(a.Sg().getHeight());a=this.Da.M_(this.O.y).D-1|0;var c=this.Fa.jF(a);a=jF(this,new C1i(this.getContext(),this.R,N1i(this.O,this.J),!1,!1,this.Ca,this.za,this.wa,this.W,this.Na,this.J));if(!a.D){var e=a.F,f=a.H,g=this.getContext().ub();a=SI(g);g=g.Aa();var h=this.V,k=this.ea;h!=1&&h!=0&&k!=1&&k!=0||!FH(g,a).D||(this.ea=this.V=
4);h=L1i(this.getContext().ub(),a);k=h.O==1;g=A1i(O(2),O(2));k&&(g=h.D.D,g=A1i(O(g.J.getType()),O(g.J.D)));a:switch(h=this.V,h){case 4:h=this.J;(e=(e=this.W.lx(tC(e)))?N1i(new Kr(e.Sg().Rb(),e.Sg().Vb()),h):null)?(e.y+=this.va,e=M1i(e,this.J),c=new Kr(this.O.x-e.x,Math.min(c.D.getHeight(),f?0:Math.max(0,this.O.y-e.y)))):c=new Kr(0,0);break a;case 1:c=U3i(this,c);break a;case 0:c=U3i(this,c);f=this.getContext().ub().Aa();c=new Kr(c.x-this.J.ii(I8b(f.Wf())),c.y);break a;default:throw Lzb("Invalid relative base: "+
h).Ea;}c=N1i(c,this.J);jF(this,new B1i(this.getContext(),a,this.Ja,this.W,y1i(this.V,1,null,ZA(WA(),c.x)),z1i(this.ea,1,null,ZA(WA(),c.y)),g))}}};function U3i(a,c){var e=new Kr(c.D.Rb(),c.D.Vb());a=new Kr(a.O.x-e.x,Math.max(0,a.O.y-e.y));a.y=Math.min(a.y,c.D.getHeight());return a};function V3i(){}H(V3i,fH);V3i.prototype.D=function(a){return new W3i(a)};function W3i(a){X3i();nF.call(this,qGg,a)}var Y3i;H(W3i,gH);
W3i.prototype.Vc=function(a){var c=this.getContext().ub().Aa(),e=a.D,f=a.H;if(f!=e&&(f-1|0)!=e){var g=a.J,h=c.ld().Kc(g);if(yzh(e,h)&&zzh(f,h)){var k=Lce(c,g),l=c.Pm(zk,NG(h,e)).O.xd(),p=NG(h,e)+1|0,q=F_g(c,g),u=f==q?OG(h,f-1|0)+1|0:NG(h,f);qF(this,new j1g(this.getContext(),1,u,p));p=a.F;e=f>e?e:e+1|0;for(var w=E_g(c,NG(h,e)+1|0),y=0;y<w;y=y+1|0){var z=oce(c,NG(h,e),y),A=oce(c,NG(h,f),y);qF(this,new U0g(this.getContext(),[z],A,p,!0))}qF(this,new S2i(this.getContext(),e,f,h));qF(this,new Z0g(this.getContext(),
g,[e],p));k>0&&(e=a.D,p=k-1|0,c=c.getStyle(zk,u),e<=p&&f>=p?qF(this,new V0i(this.getContext(),g,k-1|0)):e>p&&f<=p?qF(this,new V0i(this.getContext(),g,k+1|0)):f>p&&c.D&&qF(this,new V0i(this.getContext(),g,k)));f=f>a.D?f-1|0:f;f=cFb(f,0,q-1|0);l={row_trid:l};q=NG(h,f);qF(this,DG(this.getContext(),zk,l,q,q));l=aG(h,f,0);h=h.Bc(l.D,l.F);pF(this,BC(tC(h?h.Dk:g+3|0)),!0);this.D=new Z3i(a.D,f,l.F,l.D)}}};function X3i(){X3i=r();Y3i=new V3i};function $3i(a,c,e){this.J=a;this.D=c;this.H=e}H($3i,K);function Z3i(a,c,e,f){this.Xc=qGg;this.O=a;this.H=c;this.F=f;this.D=e}H(Z3i,GD);function a4i(){}H(a4i,fH);a4i.prototype.D=function(a){return new b4i(a)};a4i.prototype.Ul=B(Mk);function b4i(a){c4i();nF.call(this,ZHg,a);this.H=WA()}var d4i;H(b4i,gH);
b4i.prototype.Vc=function(a){var c=null,e=null,f=this.getContext().ub().Aa(),g=a.F;if(g){g=g.D;e={};for(var h in g){var k=Number(h),l=g[k],p=WI(f,k)+1|0;Ru(e,""+p,l);isNaN(l)||(l={row_mh:l},qF(this,new d1g(this.getContext(),[k],l)))}}h=a.D;a=a.H;if(h){c=this.getContext().ub().Aa().getStyle(ll,a);var q=c.Vh().length-1|0;l=g=!1;k=h.D;p=h.F;var u=h.J;for(y in k){var w=Number(y);if(k[w].D!=0)if(w!=0||l||p)if(w!=q||g){l=g=!1;break}else l=!0;else g=!0}var y=g||u&&!p;l=l||u&&p;p=0;if(g)p=k[0].D;else for(z in k)p+=
k[Number(z)].D;var z=p/YA(this.H);if(c.O==1)a:{g=h.H;c=c.D.D.D;if(c.getType()==0)if(c.Vk()==0&&y)z=-z;else if(c.Vk()==2&&l)z=I8b(this.getContext().ub().Aa().Wf()),z=(g-z)/YA(this.H);else{z=null;break a}else if(y)z=c.J-z;else{z=null;break a}z={tbls_ftp:{ft_p:E1i(y1i(c.D,1,null,z),null,null)}}}else a:{g=h.O;if(y&&c.Vk()==0)z=c.W-z;else if(l&&c.Vk()==2)z=g/YA(this.H);else{z=null;break a}z={tbls_in:z};c.Vk()!=0&&(z.tbls_al=0)}z&&qF(this,new RCh(this.getContext(),z,O(a)));h=h.D;c={};for(var A in h)z=Number(A),
y=h[z],g=y.H,k={col_wt:g},g!=1&&(k.col_wv=y.F),Ru(c,""+(z+1|0),y.F),qF(this,new hR(this.getContext(),a,cR(z,k)))}A=G_g(f,a,this.getContext().lb().Ha(of));f=F_g(f,a);this.D=new e4i(e,f,c,A)};function c4i(){c4i=r();d4i=new a4i};function e4i(a,c,e,f){this.Xc=ZHg;this.O=a;this.F=c;this.H=e;this.D=f}H(e4i,GD);function f4i(a,c,e,f,g,h){this.O=a;this.D=c;this.F=e;this.H=f;this.R=g;this.J=h}H(f4i,K);function g4i(){}H(g4i,fH);g4i.prototype.D=function(a){return new h4i(a)};function h4i(a){i4i();nF.call(this,jJg,a)}var j4i;H(h4i,gH);h4i.prototype.Vc=function(a){var c=this.getContext().ub(),e=+I_g(c)[0]|0;c=c.Aa().ld().Kc(e);var f=RG(c,e),g=f.D;f=f.F;var h=a.O,k=a.D;qF(this,new k4i(this.getContext(),a.F,a.H,a.R,a.J,e,h,k));pF(this,BC(tC(c.Bc(g,f).ce+1|0)),!0);this.D=new l4i(h,k)};function i4i(){i4i=r();j4i=new g4i};function l4i(a,c){this.Xc=jJg;this.F=a;this.D=c}H(l4i,GD);function m4i(){}H(m4i,K);function n4i(){this.D=this.F=0}H(n4i,K);function k4i(a,c,e,f,g,h,k,l){this.D=a;this.W=c;this.J=e;this.va=f;this.ea=g;this.V=h;this.R=k;this.O=l}H(k4i,BG);
k4i.prototype.H=function(){for(var a=this.getContext().ub().Aa().ld().Kc(this.V),c=a.D,e=this.va.D(tC(a.D)),f=Array(a.Id()),g=0;g<a.Id();g=g+1|0){var h=f,k=g,l=e.Z1(g);h[k]=l}g=new m4i;e=e.YA().za;g.F=f;g.D=e;f=Czh(iG(a,this.V));f=new tTh(RG(a,f.ce),new uTh(f.ve(),f.Ge()));e=this.O;h=dlh(this.R,f.ve());k=dlh(e,f.Ge());l=h/f.ve()|0;e=new n4i;var p=k/f.Ge()|0;e.H=new uTh(h,k);e.F=l;e.D=p;k=f.D.D;l=f.jh();p=f.ve();var q=f.Ge();h=[];for(var u=0;u<k;u=u+1|0)for(var w=l;w<(l+q|0);w=w+1|0){var y=a.Bc(u,
w);y&&h.push(y)}for(u=k+p|0;u<a.Id();u=u+1|0)for(w=l;w<(l+q|0);w=w+1|0)(y=a.Bc(u,w))&&h.push(y);for(u=k;u<(k+p|0);u=u+1|0)for(w=0;w<l;w=w+1|0)(y=a.Bc(u,w))&&h.push(y);for(u=k;u<(k+p|0);u=u+1|0)for(w=l+q|0;w<a.ae();w=w+1|0)(y=a.Bc(u,w))&&h.push(y);l={};k=[];for(p=0;p<h.length;p++)q=Czh(h[p]),u=RG(a,q.ce),u=u.D+","+u.F,u in l||(l[u]=!0,k.push(q));h=Array(k.length);for(l=0;l<k.length;l=l+1|0)u=k[l],w=RG(a,u.ce),p=h,q=l,u=new tTh(w,new uTh(u.ve(),u.Ge())),p[q]=u;l=a.Bc(f.D.D,f.jh());k.push(l);l=this.getContext();
p=[];for(q=0;q<k.length;q++)u=k[q],u.Zf()==0&&p.push(u.ce);jF(this,new o4i(l,p));if(f.ve()!=e.H.ve())for(k=0;k<f.ve();k=k+1|0)l=f.D.D+Math.imul(k,e.F)|0,jF(this,new d1g(this.getContext(),[NG(a,l)],{row_mh:ZA(WA(),g.F[f.D.D+k|0]/e.F)})),jF(this,new j1g(this.getContext(),e.F-1|0,OG(a,l)+1|0,NG(a,l)));if(f.Ge()!=e.H.Ge())for(k=0;k<f.Ge();k=k+1|0)l=f.jh()+Math.imul(k,e.D)|0,p=this.getContext(),q=l,u=WA(),w=g.D,y=f.jh()+k|0,jF(this,new hR(p,c,cR(q,{col_wt:0,col_wv:w[y]/e.D/YA(u)}))),jF(this,new h1g(this.getContext(),
e.D-1|0,l+1|0,c,l,this.W,this.J));iF(this,BC(tC(a.Bc(f.D.D,f.jh()).ce+1|0)),!1);this.ea.Taa();for(c=0;c<h.length;c++)if(g=h[c],u=g.D.D,p=g.jh(),l=g.ve(),q=g.Ge(),g=u<f.D.D?u:u+Math.imul(Math.min(u-f.D.D|0,f.ve()),e.F-1)|0,k=p<f.jh()?p:p+Math.imul(Math.min(p-f.jh()|0,f.Ge()),e.D-1)|0,u<=(f.D.D+f.ve()|0)&&(u+l|0)>=f.D.D&&(u=Math.max(0,f.D.D-u|0)+Math.max(0,u+l-(f.D.D+f.ve())|0)|0,l=Math.imul(l-u,e.F)+u|0),p<=(f.jh()+f.Ge()|0)&&(p+q|0)>=f.jh()?(p=Math.max(0,f.jh()-p|0)+Math.max(0,p+q-(f.jh()+f.Ge())|
0)|0,p=Math.imul(q-p,e.D)+p|0):p=q,l!=1||p!=1){q=[];for(u=g;u<(g+l|0);u=u+1|0)for(w=k;w<(k+p|0);w=w+1|0){y=q;var z=a.Bc(u,w).ce;y.push(z)}jF(this,new f1g(this.getContext(),q,l,p,this.J))}c=e.H.ve()/this.R|0;e=e.H.Ge()/this.O|0;if(c!=1||e!=1)for(g=0;g<this.R;g=g+1|0)for(h=0;h<this.O;h=h+1|0){k=[];for(l=0;l<c;l=l+1|0)for(p=0;p<e;p=p+1|0)q=k,u=a.Bc(f.D.D+Math.imul(g,c)+l|0,f.jh()+Math.imul(h,e)+p|0).ce,q.push(u);jF(this,new f1g(this.getContext(),k,c,e,this.J))}};function o4i(a,c){this.D=a;this.F=c}H(o4i,AG);
o4i.prototype.El=function(){if(this.F.length==0)return O(0);for(var a=this.getContext().ub(),c=a.Aa(),e=c.ld().Kc(+this.F[0]|0),f=0,g=this.F,h=0;h<g.length;h++){var k=g[h],l=RG(e,k),p=e.Bc(l.D,l.F),q=l.F+p.Ge()-1|0,u=l.D+p.ve()-1|0;l=yVg(e,l);l.push(k);f=f+Math.imul(p.ve(),p.Ge())|0;for(k=0;k<l.length;k=k+1|0){p=+l[k]|0;var w=e,y=q,z=u,A=this.getContext().ub().Aa(),C=RG(w,p),E={cell_rs:1,cell_cs:1};C.F<y&&(y=new EB(C.D,y),y=PG(w,y),y=A.getStyle(id,y),E.cell_br_i=!1,cv(E,nd,y.O.xd()));C.D<z&&(z=new EB(z,
C.F),w=PG(w,z),A=A.getStyle(id,w),E.cell_bb_i=!1,cv(E,kd,A.W.xd()));FD(this,jR(this.getContext(),E,[p]))}}a=a.hb();c=x0g(c,a.getSelection(),!0);this.getContext().ub().Mh(c,!0,!0,null);return O(f)};function p4i(){}H(p4i,K);p4i.prototype.getType=B(ll);p4i.prototype.D=function(a,c){a=yB(a.getStyle(Jj,c));c={};c.tbls_ltr=a;return new Jpc(c)};function q4i(a){this.D=a}H(q4i,K);q4i.prototype.iia=function(){var a=this.D.Aa(),c=this.D.hb().Jd(),e=a.Xa(),f=nce(e,c,null);c=VI(e,c);(a=sce(a,tC(f),tC(c),!0,!1,null))&&this.D.yv(a,!0,!0)};function r4i(a,c,e,f,g,h,k,l,p,q,u,w,y,z,A,C){fT.call(this,a);this.kd=k3i();this.J=c;this.Ib=e;this.Kb=f;this.wa=new s4i(this.J);this.xa(this.wa);this.ib=new q4i(this.J);this.Wc=new t4i;this.W=g;this.Na=h;this.Fa=p;this.Ua=k;this.Za=l;this.Da=q;this.Sa=u;this.Ca=w;this.ob=y;this.wb=z;this.yc=C}function u4i(a){if(a instanceof Array){var c=+a[0]|0;a=+a[1]|0}else c=Ln(a.width),a=Ln(a.height);return new q3i(a,c)}function v4i(a){return new Z1i(a,null,null)}function w4i(a){return new Z1i(null,a,null)}
function x4i(a){return new Z1i(null,null,a)}function y4i(a){var c={};cv(c,ld,fA(a));c.cell_bgc2_i=!1;return new V1i(c)}H(r4i,fT);D=r4i.prototype;
D.ye=function(a,c,e){var f=this;IE(IE(a,LE(ME(UE(e,(m3i(),n3i)),$Ma,u4i),[wj,AQ,jd,fQ])),UE(e,(c4i(),d4i)).D(nIg));var g=[DE(1,0),al];IE(IE(IE(IE(a,LE(ME(UE(e,(X3i(),Y3i)),nNa,function(q){q.F=f.W;return q}),g)),LE(ME(UE(e,(L3i(),M3i)),mNa,function(q){q.H=f.W;q.F=f.Na;return q}),g)),LE(ME(UE(e,new M2i(this.W)),gNa,function(q){q.D=f.Na;return q}),g)),LE(UE(e,($2i(),a3i)).D(hNa),g));g=new ORc(M5f);IE(IE(IE(IE(IE(a,GR(HR(UE(e,new H2i(this.yc)),TMa),g)),KE(GR(UE(e,(t2i(),u2i)).D(BHg),g))),KE(GR(UE(e,(o2i(),
p2i)).D(UAg),g))),KE(GR(UE(e,(R1i(),S1i)).D