var Sq=I.ea(Rq,"AdfDhtmlMaximizePeer",!0,{kUa:["maximized"],DRa:[Ub.ua,D.wb,D.Ad]});m("AdfDhtmlMaximizePeer",Sq);Sq.C=function(){Sq.Ega="_afrMax";Sq.d4a="_afrPlaceHolder";Rq.Us(this,{propertyName:"maximized",clientEventType:Ub,toggledTipResourceKey:"AFRestoreTip",untoggledTipResourceKey:"AFMaximizeTip"})};m("AdfDhtmlMaximizePeer.InitSubclass",Sq.C);Sq.prototype.Bz=Rq.rda;Sq.prototype.h0=Rq.oca;Sq.prototype.ww=function(a,b){var d=this.f();(new Ub(d,a,this.eh())).F(b)};
r.a("AdfDhtmlMaximizePeer.prototype.QueueClientEvent",{ww:Sq.prototype.ww});Sq.prototype.eh=function(){return!1};r.a("AdfDhtmlMaximizePeer.prototype.EventPropagatesToServer",{eh:Sq.prototype.eh});Sq.prototype.tk=function(){var a=this.f(),a=I.j(a.g(),Sq.Ega);return q.b.getElementById(a)};r.a("AdfDhtmlMaximizePeer.prototype.GetButtonElement",{tk:Sq.prototype.tk});
Sq.nNa=function(a,b){for(var d=q.b,e=q.ia==d.S()&&8<d.Ib(),f=a.parentNode;f;){if(f.style&&b!="_oldZindex"in f){var g=d.getOverrideStyle(f);b?(f.BNa=g.zIndex,g.zIndex="auto",e&&(f.zNa=g.overflow,g.overflow="visible")):(g.zIndex=f.BNa,delete f.BNa,e&&(g.overflow=f.zNa,delete f.zNa))}f=f.parentNode}};Sq.prototype.cw=function(a){return a.sta()};r.a("AdfDhtmlMaximizePeer.prototype.GetNewValueFromEvent",{cw:Sq.prototype.cw});
Sq.prototype.Rha=function(a,b,d){u.u(a);u.u(b);u.dc(d);if(d){var e=q.b,f=b.parentNode,g=e.getOverrideStyle(a),h=e.getOverrideStyle(b);d=e.getOverrideStyle(f);var l=e.rd(a),l={top:l.top+"px",left:l.left+"px",width:l.right-l.left+"px",height:l.bottom-l.top+"px"};a.dna={root:{position:g.position,top:g.top,left:g.left,width:g.width,height:g.height,zIndex:g.zIndex},content:{position:h.position,height:h.height},contentParent:{position:d.position,width:d.width,height:d.height,left:d.left,right:d.right,top:d.top,
bottom:d.bottom},initialSize:l,contentDomElement:b};g.position="fixed";g.zIndex=500;var n=A.c.R().createElement("div"),t=I.j(a.id,Sq.d4a);a.VNa=n.id=t;a.parentNode.appendChild(n);q.b.Ia(n);E.Rb(n.style,l);E.Rb(g,l);a="absolute"==e.getComputedStyle(b).position;h.position="relative";h.height="100%";d.position="absolute";d.width="auto";d.height="auto";a||(a=Math.max(0,e.Ld(f)-e.Ld(f.parentNode)-1),d.top=a+"px",d.left=0,d.right=0,d.bottom=0);d=Sq.Ogb}else d=Sq.zgb;window.setTimeout(this.D(d),0)};
r.a("AdfDhtmlMaximizePeer.prototype.__updateClientMaximize",{Rha:Sq.prototype.Rha});Sq.x3=function(a,b){for(var d=["","-webkit-","Moz","ms"],e=[!1,!1,!0,!0],f=d.length,g=0;g<f;g++){var h=d[g],l="transition";e[g]&&(l="Transition");a[h+l]=b}};Sq.zgb=function(){var a=this.Qi;a||(a=this);var b=a.i();if(a=b.dna)b=q.b.getOverrideStyle(b),A.c.Uc()?(Sq.x3(b,"all .2ss ease-in"),E.Rb(b,a.initialSize),window.setTimeout(this.D(Sq.PHa),200)):Sq.PHa.apply(this)};
Sq.PHa=function(){var a=this.Qi;a||(a=this);var a=a.i(),b=a.dna,d=a.VNa;delete a.VNa;d=q.b.getElementById(d);q.b.yc(d);a.parentNode.removeChild(d);if(b){var e=b.contentDomElement,f=q.b,d=f.getOverrideStyle(a),g=f.getOverrideStyle(e),e=f.getOverrideStyle(e.parentNode);Sq.x3(d,"");E.Rb(d,b.root);E.Rb(g,b.content);E.Rb(e,b.contentParent);delete a.dna;Sq.nNa(a,!1)}A.c.jo(a,!1)};
Sq.Ogb=function(){var a=this.Qi;a||(a=this);a=a.i();Sq.nNa(a,!0);var b=q.b,a=b.getOverrideStyle(a),d=b.getWindowWidth(),b=b.getWindowHeight(),e=A.c.Uc();e&&Sq.x3(a,"all 0.2s ease-out");a.top="0px";a.left="0px";a.width=d+"px";a.height=b+"px";e?window.setTimeout(this.D(Sq.QHa),200):Sq.QHa.apply(this)};Sq.QHa=function(){var a=this.Qi;null==a&&(a=this);var a=a.i(),b=q.b.getOverrideStyle(a);Sq.x3(b,"");b.width="100%";b.height="100%";A.c.jo(a,!1)};