function Ki(){this.Init()}m("AdfDhtmlShadowDecorator",Ki);r.v(Ki);Ki.prototype.Init=function(){Ki.h.Init.call(this)};r.a("AdfDhtmlShadowDecorator.prototype.Init",{Init:Ki.prototype.Init});Ki.so=function(){var a=Ki.B5a;null==a&&(a=A.c.H(),a=parseInt(a.qa("af|popup-tr-shadow-pixel-size")),a=isNaN(a)?0:a,Ki.B5a=a);return a};m("AdfDhtmlShadowDecorator.getShadowSize",Ki.so);
Ki.prototype.GW=function(a){var b=q.b,d=A.c,e=this.XM;e&&d.x$(a,e);if(this.VG){var f=this.dHa,e=a.offsetWidth,d=a.offsetHeight,g=this.kMa?{x:0,y:0}:b.jc(a);if(f.x!=g.x||f.y!=g.y||f.offsetWidth!=e||f.offsetHeight!=d){this.dHa={x:g.x,y:g.y,offsetWidth:e,offsetHeight:d};var b=b.getComputedStyle(a).zIndex-1,f=this.Imb,h=this.Hmb,l=A.c.Ka().La();a=this.IX.style;a.zIndex=b;var n=Ki.so(),b=2*n;a.left=(l?g.x-(h+n):g.x+h)+"px";a.top=g.y+f+"px";a.width=e+n+"px";a.height=d+n+"px";u.assert(0<e-h,"Computed shadow width is less than one");
u.assert(0<d-f,"Computed shadow height is less than one");e=e-h+"px";d=d-f+"px";for(g=0;g<b;g++)a=this.VG[g].style,a.width=e,a.height=d}}};Ki.prototype.O6=function(){var a=this.XM;a&&(A.c.UC(a),delete this.XM);this.VG&&(this.IX.parentNode.removeChild(this.IX),delete this.VG,delete this.IX)};
Ki.vY=function(a,b,d){var e=Ki.mM(a);if(!e){var e=new Ki,f=Ki.efb(),g=Ki.ffb(),h=e,l=f,n=f;null==l&&(l=3);h.Imb=l;null==n&&(n=3);h.Hmb=n;null==g&&(g=100);h.kMa=d;var t=Ki.so(),f=2*t,y=A.c,z=q.b;h.XM||(h.XM=y.vH(a));if(!Ki.uob(a)&&!h.VG){var B=z.getComputedStyle(a);h.VG=Array(f);if(void 0==B.zIndex||2>=q.Ma(B.zIndex))a.style.zIndex=3;var F=a.ownerDocument,y=y.Ka().La(),K=d?{x:0,y:0}:z.jc(a);d=K.y+l;var P;P=y?K.x-(n+t):K.x+n;var Q=a.offsetWidth,da=a.offsetHeight;b=b?b:F.body;h.dHa={x:K.x,y:K.y,offsetWidth:Q,
offsetHeight:da};K=F.createElement("div");C.w(K,Ki.vtb);var ba=K.style;ba.zIndex=q.Ma(B.zIndex)-1;ba.position="absolute";ba.left=P+"px";ba.top=d+"px";ba.width=Q+t+"px";ba.height=da+t+"px";d=0;P=y?t+n:0;n=Q-n+"px";l=da-l+"px";for(t=0;t<f;t++)B=F.createElement("div"),ba=B.style,ba.position="absolute",ba.left=P+"px",ba.top=d+"px",0==t%2?y?P--:P++:d++,ba.width=n,ba.height=l,ba.backgroundColor="#000000",z.fe(B,Math.floor(g/(2*t+4))),K.appendChild(B),h.VG[t]=B;b.appendChild(K);h.IX=K}Ki.wQa||(Ki.wQa=0);
h="sd$"+ ++Ki.wQa;g=Ki.Loa;g||(g=Ki.Loa={});g[h]=e;a.setAttribute(Ki.r2,h)}return e};m("AdfDhtmlShadowDecorator.createShadowDecorator",Ki.vY);Ki.uob=function(a){var b=q.b,d=b.S()==q.Sc||b.aC(q.ia,9)||b.aC(q.ed,"1.9.1");if(!d)return d;for(d=!1;a&&!d;){if(1==a.nodeType){if(C.sa(a,bj.sca))break;for(var e=b.getComputedStyle(a),f=0;f<Ki.EAa.length;f++){var g=e[Ki.EAa[f]];if(g&&0<g.length&&"none"!=g){d=!0;break}}}a=a.parentNode}return d};Ki.ev=function(a){var b=Ki.mM(a);b&&b.GW(a)};
m("AdfDhtmlShadowDecorator.moveShadowDecorator",Ki.ev);Ki.QZ=function(a){var b=Ki.mM(a);b&&(b.O6(a),b=a.getAttribute(Ki.r2))&&(a.removeAttribute(Ki.r2),(a=Ki.Loa)&&delete a[b])};m("AdfDhtmlShadowDecorator.removeShadowDecorator",Ki.QZ);Ki.iz=function(a,b){var d=Ki.mM(a);d&&(d.XM&&(d.XM.style.visibility=b?"visible":"hidden"),d.VG&&(d.IX.style.display=b?"block":"none"))};m("AdfDhtmlShadowDecorator.showShadowDecorator",Ki.iz);Ki.uj=function(a){return void 0!=Ki.mM(a)};
m("AdfDhtmlShadowDecorator.hasShadowDecorator",Ki.uj);Ki.mM=function(a){a=a.getAttribute(Ki.r2);var b,d=Ki.Loa;d&&a&&(b=d[a]);return b};Ki.efb=function(){var a=Ki.A5a;null==a&&(a=A.c.H(),a=parseInt(a.qa("af|popup-tr-shadow-offset")),a=isNaN(a)?3:a,Ki.A5a=a);return a};Ki.ffb=function(){var a=Ki.C5a;null==a&&(a=A.c.H(),a=parseInt(a.qa("af|popup-tr-shadow-starting-black-percent")),a=isNaN(a)?3:a,Ki.C5a=a);return a};Ki.Yrb=function(a,b){var d=Ki.mM(a);d&&b&&(d.kMa=!0)};
m("AdfDhtmlShadowDecorator.setRelative",Ki.Yrb);Ki.r2="data-afr-shaddec";Ki.EAa=["box-shadow","-webkit-box-shadow","-moz-box-shadow"];