var $jscomp=$jscomp||{};$jscomp.scope={};$jscomp.findInternal=function(d,g,h){d instanceof String&&(d=String(d));for(var m=d.length,l=0;l<m;l++){var n=d[l];if(g.call(h,n,l,d))return{i:l,v:n}}return{i:-1,v:void 0}};$jscomp.ASSUME_ES5=!1;$jscomp.ASSUME_NO_NATIVE_MAP=!1;$jscomp.ASSUME_NO_NATIVE_SET=!1;$jscomp.SIMPLE_FROUND_POLYFILL=!1;$jscomp.ISOLATE_POLYFILLS=!1;$jscomp.FORCE_POLYFILL_PROMISE=!1;$jscomp.FORCE_POLYFILL_PROMISE_WHEN_NO_UNHANDLED_REJECTION=!1;
$jscomp.defineProperty=$jscomp.ASSUME_ES5||"function"==typeof Object.defineProperties?Object.defineProperty:function(d,g,h){if(d==Array.prototype||d==Object.prototype)return d;d[g]=h.value;return d};$jscomp.getGlobal=function(d){d=["object"==typeof globalThis&&globalThis,d,"object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof global&&global];for(var g=0;g<d.length;++g){var h=d[g];if(h&&h.Math==Math)return h}throw Error("Cannot find global object");};$jscomp.global=$jscomp.getGlobal(this);
$jscomp.IS_SYMBOL_NATIVE="function"===typeof Symbol&&"symbol"===typeof Symbol("x");$jscomp.TRUST_ES6_POLYFILLS=!$jscomp.ISOLATE_POLYFILLS||$jscomp.IS_SYMBOL_NATIVE;$jscomp.polyfills={};$jscomp.propertyToPolyfillSymbol={};$jscomp.POLYFILL_PREFIX="$jscp$";var $jscomp$lookupPolyfilledValue=function(d,g){var h=$jscomp.propertyToPolyfillSymbol[g];if(null==h)return d[g];h=d[h];return void 0!==h?h:d[g]};
$jscomp.polyfill=function(d,g,h,m){g&&($jscomp.ISOLATE_POLYFILLS?$jscomp.polyfillIsolated(d,g,h,m):$jscomp.polyfillUnisolated(d,g,h,m))};$jscomp.polyfillUnisolated=function(d,g,h,m){h=$jscomp.global;d=d.split(".");for(m=0;m<d.length-1;m++){var l=d[m];if(!(l in h))return;h=h[l]}d=d[d.length-1];m=h[d];g=g(m);g!=m&&null!=g&&$jscomp.defineProperty(h,d,{configurable:!0,writable:!0,value:g})};
$jscomp.polyfillIsolated=function(d,g,h,m){var l=d.split(".");d=1===l.length;m=l[0];m=!d&&m in $jscomp.polyfills?$jscomp.polyfills:$jscomp.global;for(var n=0;n<l.length-1;n++){var p=l[n];if(!(p in m))return;m=m[p]}l=l[l.length-1];h=$jscomp.IS_SYMBOL_NATIVE&&"es6"===h?m[l]:null;g=g(h);null!=g&&(d?$jscomp.defineProperty($jscomp.polyfills,l,{configurable:!0,writable:!0,value:g}):g!==h&&(void 0===$jscomp.propertyToPolyfillSymbol[l]&&(h=1E9*Math.random()>>>0,$jscomp.propertyToPolyfillSymbol[l]=$jscomp.IS_SYMBOL_NATIVE?
$jscomp.global.Symbol(l):$jscomp.POLYFILL_PREFIX+h+"$"+l),$jscomp.defineProperty(m,$jscomp.propertyToPolyfillSymbol[l],{configurable:!0,writable:!0,value:g})))};$jscomp.polyfill("Array.prototype.find",function(d){return d?d:function(g,h){return $jscomp.findInternal(this,g,h).v}},"es6","es3");$jscomp.arrayIteratorImpl=function(d){var g=0;return function(){return g<d.length?{done:!1,value:d[g++]}:{done:!0}}};$jscomp.arrayIterator=function(d){return{next:$jscomp.arrayIteratorImpl(d)}};
$jscomp.initSymbol=function(){};$jscomp.polyfill("Symbol",function(d){if(d)return d;var g=function(n,p){this.$jscomp$symbol$id_=n;$jscomp.defineProperty(this,"description",{configurable:!0,writable:!0,value:p})};g.prototype.toString=function(){return this.$jscomp$symbol$id_};var h="jscomp_symbol_"+(1E9*Math.random()>>>0)+"_",m=0,l=function(n){if(this instanceof l)throw new TypeError("Symbol is not a constructor");return new g(h+(n||"")+"_"+m++,n)};return l},"es6","es3");
$jscomp.polyfill("Symbol.iterator",function(d){if(d)return d;d=Symbol("Symbol.iterator");for(var g="Array Int8Array Uint8Array Uint8ClampedArray Int16Array Uint16Array Int32Array Uint32Array Float32Array Float64Array".split(" "),h=0;h<g.length;h++){var m=$jscomp.global[g[h]];"function"===typeof m&&"function"!=typeof m.prototype[d]&&$jscomp.defineProperty(m.prototype,d,{configurable:!0,writable:!0,value:function(){return $jscomp.iteratorPrototype($jscomp.arrayIteratorImpl(this))}})}return d},"es6",
"es3");$jscomp.iteratorPrototype=function(d){d={next:d};d[Symbol.iterator]=function(){return this};return d};$jscomp.iteratorFromArray=function(d,g){d instanceof String&&(d+="");var h=0,m=!1,l={next:function(){if(!m&&h<d.length){var n=h++;return{value:g(n,d[n]),done:!1}}m=!0;return{done:!0,value:void 0}}};l[Symbol.iterator]=function(){return l};return l};$jscomp.polyfill("Array.prototype.keys",function(d){return d?d:function(){return $jscomp.iteratorFromArray(this,function(g){return g})}},"es6","es3");
(function(){function d(a){var b=a._position,c=a.$n(),e=zk(c);b||c.style.top&&c.style.left?"parent"==b&&l(a):(b=e.revisedOffset(),c.style.left||(c.style.left=jq.px(b[0])),c.style.top||(c.style.top=jq.px(b[1])));e.makeVParent();zWatch.fireDown("onVParent",a);a.zsync();p(a);a.setTopmost();B(a)}function g(a){var b=a._position,c=a.$n();c=zk(c);"parent"==b&&l(a);c.makeVParent();zWatch.fireDown("onVParent",a);a.zsync();p(a,!0,!1,!0);b=a.isRealVisible();a.setTopmost();a._mask||(c=a._shadowWgt?a._shadowWgt.getBottomElement():
null,a._mask=new zk.eff.FullMask({id:a.uuid+"-mask",anchor:c?c:a.$n(),zIndex:a._zIndex,visible:b}),c=11>zk.ie?"a":"button",jq("#"+a.uuid+"-mask").append("<"+c+' id="'+a.uuid+'-mask-a" style="top:0;left:0" onclick="return false;" href="javascript:;" class="z-focus-a" aria-hidden="true" tabindex="-1"></'+c+">"),a._anchor=jq("#"+a.uuid+"-mask-a")[0]);b&&h(a);B(a)}function h(a){zk.currentModal=a;var b=w[0],c=zk.currentFocus;b?b._lastfocus=c:y=c;w.unshift(a);setTimeout(function(){zk.afterAnimate(function(){zUtl.isAncestor(a,
zk.currentFocus)||(zk.ie9_?a.focus(100):a.focus())},-1)})}function m(a){w.$remove(a);if(zk.currentModal==a){var b=zk.currentModal=w[0],c=b?b._lastfocus:y;b||(y=null);c&&c.desktop||(c=b);c&&(!1===a._updDOFocus?a._updDOFocus=c:c.focus(0))}a._lastfocus=null}function l(a){var b=a.$n(),c=zk(zk(b).vparentNode(!0)).revisedOffset();a._offset=c;b.style.left=jq.px(c[0]+zk.parseInt(a._left));b.style.top=jq.px(c[1]+zk.parseInt(a._top))}function n(a,b){a._notSendMaximize=!b||!b.sendOnMaximize;a._updDOFocus=!1;
try{var c=a._lastSize;a.rerender(a._skipper);if(c){a._lastSize=c;var e=a.$n();if(e){var f=e.style;c.h&&(f.height=c.h);c.w&&(f.width=c.w);a._fixHgh()}}var k;(k=a._updDOFocus)&&k.focus(10)}finally{delete a._updDOFocus,delete a._notSendMaximize}}function p(a,b,c,e){if(a.desktop&&"embedded"!=a._mode){var f=a.$n(),k=a._position;if("parent"==k)c&&l(a);else if(k||b){b=f.style;b.position="absolute";c=b.left;var r=b.top;"nocenter"!=k&&zk(f).center(k);var q=a._shadowWgt;if(k&&q){q=q.opts;var u=f.offsetLeft,
v=f.offsetTop;0<=k.indexOf("left")&&0>q.left?b.left=jq.px(u-q.left):0<=k.indexOf("right")&&0<q.right&&(b.left=jq.px(u-q.right));0<=k.indexOf("top")&&0>q.top?b.top=jq.px(v-q.top):0<=k.indexOf("bottom")&&0<q.bottom&&(b.top=jq.px(v-q.bottom))}e&&!k&&(e=zk.parseInt(f.style.top),(k=jq.innerY())?(k=e-k,100<k&&(f.style.top=jq.px0(e-(k-100)))):100<e&&(f.style.top="100px"));a.zsync();c==b.left&&r==b.top||a._fireOnMove()}}}function t(a){(a=a._shadowWgt)&&a.hide()}function C(a){if(!a._sizer){a.domListen_(a.$n(),
"onMouseMove");a.domListen_(a.$n(),"onMouseOut");var b=a.$class;a._sizer=new zk.Draggable(a,null,{stackup:!0,overlay:!0,draw:b._drawsizing,snap:b._snapsizing,initSensitivity:0,starteffect:b._startsizing,ghosting:b._ghostsizing,endghosting:b._endghostsizing,ignoredrag:b._ignoresizing,endeffect:b._aftersizing})}}function B(a){var b=a.$n("cap");if(b&&!a._drag){jq(b).addClass(a.getZclass()+"-header-move");var c=a.$class;a._drag=new zk.Draggable(a,null,{handle:b,stackup:!0,fireOnMove:!1,starteffect:c._startmove,
ghosting:c._ghostmove,endghosting:c._endghostmove,ignoredrag:c._ignoremove,endeffect:c._aftermove,zIndex:99999})}}function x(a){return"modal"==a||"highlighted"==a}function z(a,b,c){var e=a._position;b=zk.parseInt(b);c=zk.parseInt(c);var f=0,k=0;"parent"==e&&(a=zk(a.$n()).vparentNode())&&(k=zk(a).revisedOffset(),f=k[0],k=k[1]);return[jq.px(b-f),jq.px(c-k)]}var w=[],y,A=zul.wnd.Window=zk.$extends(zul.ContainerWidget,{_mode:"embedded",_border:"none",_minheight:100,_minwidth:200,_shadow:!0,_tabindex:0,
$init:function(){this._fellows={};this._lastSize={};this.$supers("$init",arguments);this.listen({onMaximize:this,onClose:this,onMove:this,onSize:this.onSizeEvent,onZIndex:this},-1E3);this._skipper=new zul.wnd.Skipper(this)},$define:{mode:_zkf=function(){n(this)},title:function(){this.caption?this.caption.updateDomContent_():n(this)},border:_zkf,closable:_zkf,sizable:function(a){this.desktop&&(a?C(this):this._sizer&&(this._sizer.destroy(),this._sizer=null))},maximizable:_zkf,minimizable:_zkf,maximized:function(a,
b){var c=this.$n();if(c){var e=this.isRealVisible();if(e||!a){var f=c.style;var k=this.getMaximizableIconClass_();var r=this.getMaximizedIconClass_();if(a){jq(this.$n("max")).addClass(this.$s("maximized")).attr("title",msgzul.PANEL_RESTORE).children("."+k).removeClass(k).addClass(r);var q="embedded"!=this._mode,u=(q?jq(c).offsetParent():jq(c).parent()).zk;r=f.left;var v=f.top;c=f.width;k=f.height;f.top="-10000px";f.left="-10000px";f.width=jq.px0(u.clientWidthDoubleValue()-(q?0:u.paddingWidth()));
f.height=jq.px0(u.clientHeightDoubleValue()-(q?0:u.paddingHeight()));this._lastSize={l:r,t:v,w:c,h:k};f.top="0";f.left="0";c=f.width;k=f.height}else if(c=this.$n("max"),jq(c).removeClass(this.$s("maximized")).attr("title",msgzul.PANEL_MAXIMIZE).children("."+r).removeClass(r).addClass(k),this._lastSize&&(f.left=this._lastSize.l,f.top=this._lastSize.t,f.width=this._lastSize.w,f.height=this._lastSize.h,this._lastSize=null),r=f.left,v=f.top,c=f.width,k=f.height,f=this.$n("cave"))f.style.width=f.style.height=
"";if(!b||e)this._visible=!0,this._notSendMaximize||(f=z(this,r,v),this.fire("onMaximize",{left:f[0],top:f[1],width:c,height:k,maximized:a,fromServer:b}));e&&zUtl.fireSized(this)}}},minimized:function(a,b){this._maximized&&this.setMaximized(!1);var c=this.$n();if(c){var e=c.style;a?(zWatch.fireDown("onHide",this),jq(c).hide()):(jq(c).show(),zUtl.fireShown(this));b||(this._visible=!1,this.zsync(),b=z(this,e.left,e.top),this.fire("onMinimize",{left:b[0],top:b[1],width:e.width,height:e.height,minimized:a}))}},
contentStyle:_zkf,contentSclass:_zkf,position:function(){p(this,!1,this._visible)},minheight:null,minwidth:null,shadow:function(){this._shadow?this.zsync():this._shadowWgt&&(this._shadowWgt.destroy(),this._shadowWgt=null)}},repos:function(){p(this,!1,this._visible)},doOverlapped:function(){this.setMode("overlapped")},doPopup:function(){this.setMode("popup")},doHighlighted:function(){this.setMode("highlighted")},doModal:function(){this.setMode("modal")},doEmbedded:function(){this.setMode("embedded")},
afterAnima_:function(a){this.$supers("afterAnima_",arguments);this.zsync()},zsync:function(){this.$supers("zsync",arguments);if(this.desktop&&("embedded"==this._mode?this._shadowWgt&&(this._shadowWgt.destroy(),this._shadowWgt=null):this._shadow&&(this._shadowWgt||(this._shadowWgt=new zk.eff.Shadow(this.$n(),{left:-4,right:4,top:-2,bottom:3})),this._maximized||this._minimized||!this._visible?t(this):this._shadowWgt.sync()),this._mask)){var a=this._shadowWgt&&this._shadowWgt.getBottomElement()||this.$n();
a&&this._mask.sync(a)}},onClose:function(){this.inServer||this.parent.removeChild(this)},onMove:function(a){this._left=a.left;this._top=a.top;this._visible&&zWatch.fireDown("onMove",this)},onMaximize:function(a){a=a.data;this._top=a.top;this._left=a.left;this._height=a.height;this._width=a.width},onSizeEvent:function(a){var b=a.data,c=this.$n().style;t(this);b.width!=c.width&&(c.width=b.width,this._width=c.width);b.height!=c.height&&(c.height=b.height,this._fixHgh(),this._height=c.height);if(b.left!=
c.left||b.top!=c.top)c.left=b.left,c.top=b.top,this._fireOnMove(a.keys);this.zsync();var e=this;setTimeout(function(){zUtl.fireSized(e)})},onZIndex:_zkf=function(a){this.zsync()},onResponse:_zkf,onCommandReady:function(){if(this.desktop&&this._shallSize){this._shallSize=!1;for(var a=this.firstChild;a;a=a.nextSibling)if(a._nvflex||a._nhflex){zUtl.fireSized(this);break}}},onShow:function(a){a=a.origin;this!=a&&"embedded"!=this._mode&&this.isRealVisible({until:a,dom:!0})&&(zk(this.$n()).cleanVisibility(),
this.zsync())},onHide:function(a){a=a.origin;this!=a&&"embedded"!=this._mode&&this.isRealVisible({until:a,dom:!0})&&(this.$n().style.visibility="hidden",this.zsync())},onSize:function(){t(this);if(this._maximized&&this._lastSize){var a=this.$n(),b=("embedded"!=this._mode?jq(a).offsetParent():jq(a).parent()).zk;a=a.style;a.width=jq.px0(b.clientWidthDoubleValue()-b.paddingWidth());a.height=jq.px0(b.clientHeightDoubleValue()-b.paddingHeight())}this._fixHgh(!0);"modal"==this._mode?p(this,!0,!1,!0):p(this);
this.zsync()},onFloatUp:function(a){if(this._visible&&"embedded"!=this._mode&&!this._mask)if(a=a.origin,"popup"==this._mode){for(var b;a;a=a.parent){if(a==this){b||this.setTopmost();return}b=b||a.isFloating_()}this.setVisible(!1);this.fire("onOpen",{open:!1})}else for(;a;a=a.parent){if(a==this){this.setTopmost();break}if(a.isFloating_())break}},_fixHgh:function(a){if(a||this.isRealVisible()){a=this.$n();var b=a.style.height,c=this.$n("cave"),e=c.style.height;!b&&this._cssflex&&this._vflex&&(b=a.offsetHeight);
b&&"auto"!=b?c.style.height=jq.px0(this._offsetHeight(a)):e&&"auto"!=e&&(c.style.height="")}},_offsetHeight:function(a){return zk(a).offsetHeight()-this._titleHeight()-zk(a).padBorderHeight()},_titleHeight:function(){var a=this.getTitle()||this.caption?this.$n("cap"):null;return a?a.offsetHeight:0},_fireOnMove:function(a){var b=this.$n().style;b=z(this,b.left,b.top);this.fire("onMove",zk.copy({left:b[0],top:b[1]},a),{ignorable:!0})},setVisible:function(a){if(this._visible!=a){this._maximized?this.setMaximized(!1):
this._minimized&&this.setMinimized(!1);var b=x(this._mode),c=this.parent;a?(p(this,b,!0,b),!b||c&&!c.isRealVisible()||(this.setTopmost(),h(this))):b&&m(this);this.$supers("setVisible",arguments);a||this.zsync();b=this.$n();this.isFloating_()&&c&&!c.isRealVisible()&&(this._visible&&"none"==b.style.display?(this.setDomVisible_(b,!1,{visibility:1}),this.setDomVisible_(b,!0,{display:1})):this._visible||"none"==b.style.display||this.setDomVisible_(b,!1,{display:1}))}},setHeight:function(a){this.$supers("setHeight",
arguments);this.desktop&&zUtl.fireSized(this)},setWidth:function(a){this.$supers("setWidth",arguments);this.desktop&&zUtl.fireSized(this)},setTop:function(){t(this);this.$supers("setTop",arguments);this.zsync()},setLeft:function(){t(this);this.$supers("setLeft",arguments);this.zsync()},setZIndex:_zkf=function(a){var b=this._zIndex;this.$supers("setZIndex",arguments);b!=a&&this.zsync()},setZindex:_zkf,focus_:function(a){var b=this.caption;if(!zk.mobile)for(var c=this.firstChild;c;c=c.nextSibling)if(c.desktop&&
c!=b&&c.focus_(a))return!0;return b&&b.focus_(a)?!0:this._anchor?(this._anchor.focus(),!0):!1},domClass_:function(a){var b=this.$supers(zul.wnd.Window,"domClass_",arguments),c=this._border;(c="normal"==c?"":"none"==c?"noborder":c)&&(b+=" "+this.$s(c));this.getTitle()||this.caption||(b+=" "+this.$s("noheader"));return b+=" "+this.$s(this._mode)},onChildVisible_:function(a){this.$supers("onChildVisible_",arguments);this.desktop&&(this._shallSize=!0)},onChildAdded_:function(a){this.$supers("onChildAdded_",
arguments);a.$instanceof(zul.wgt.Caption)&&(this.caption=a,this.rerender(this._skipper))},onChildRemoved_:function(a){this.$supers("onChildRemoved_",arguments);a==this.caption&&(this.caption=null,this.rerender(this._skipper));this.desktop&&(this._shallSize=!0)},insertChildHTML_:function(a,b,c){a.$instanceof(zul.wgt.Caption)||this.$supers("insertChildHTML_",arguments)},domStyle_:function(a){var b=this.$supers("domStyle_",arguments);a&&a.visible||!this._minimized||(b="display:none;"+b);"embedded"!=
this._mode&&(b="position:absolute;"+b);return b},bind_:function(a,b,c){this.$supers(A,"bind_",arguments);var e=this._mode;zWatch.listen({onSize:this});"embedded"!=e&&(zWatch.listen({onFloatUp:this,onHide:this,onShow:this}),this.setFloating_(!0),x(e)?g(this):d(this));this._sizable&&C(this);if(this._maximizable&&this._maximized){var f=this;c.push(function(){f._maximized=!1;f.setMaximized(!0,!0)})}"embedded"==this._mode||zk.css3||(jq.onzsync(this),zWatch.listen({onResponse:this}));zWatch.listen({onCommandReady:this})},
detach:function(){this.unbindChildren_();if(8<zk.ie||zk.chrome){var a=jq(this.$n()).find("iframe");a.length&&a.hide().remove()}this.$supers(A,"detach",arguments)},unbind_:function(){var a=this.$n();zk(a).beforeHideOnUnbind();a.style.visibility="hidden";zk.css3||jq.unzsync(this);this._shadowWgt&&(this._shadowWgt.destroy(),this._shadowWgt=null);this._drag&&(this._drag.destroy(),this._drag=null);this._sizer&&(this._sizer.destroy(),this._sizer=null);this._mask&&(this._anchor&&(this._anchor=null),this._mask.destroy(),
this._mask=null);if(9<zk.ie){var b=jq(this.$n()).find("iframe");b.length&&b.hide().remove()}zk(a).undoVParent();zWatch.unlisten({onFloatUp:this,onSize:this,onShow:this,onHide:this,onResponse:this,onCommandReady:this});this.setFloating_(!1);m(this);this.domUnlisten_(this.$n(),"onMouseMove");this.domUnlisten_(this.$n(),"onMouseOut");this.$supers(A,"unbind_",arguments)},_doMouseMove:function(a){if(this._sizer&&a.target==this){var b=this.$n();a=this.$class._insizer(b,zk(b).revisedOffset(),a.pageX,a.pageY);
var c="embedded"==this._mode?!1:this.$n("cap");!this._maximized&&a?(void 0==this._backupCursor&&(this._backupCursor=b.style.cursor),b.style.cursor=1==a?"n-resize":2==a?"ne-resize":3==a?"e-resize":4==a?"se-resize":5==a?"s-resize":6==a?"sw-resize":7==a?"w-resize":"nw-resize",c&&jq(c).removeClass(this.$s("header-move"))):(b.style.cursor=this._backupCursor||"",c&&jq(c).addClass(this.$s("header-move")))}},_doMouseOut:function(a){this.$n().style.cursor=this._backupCursor||""},doClick_:function(a){var b=
a.domTarget;b.id||(b=b.parentNode);if(b){switch(b){case this.$n("close"):this.fire("onClose");break;case this.$n("max"):this.setMaximized(!this._maximized);break;case this.$n("min"):this.setMinimized(!this._minimized);break;default:this.$supers("doClick_",arguments);return}a.stop()}this.$supers("doClick_",arguments)},afterChildrenMinFlex_:function(a){this.$supers("afterChildrenMinFlex_",arguments);x(this._mode)&&p(this,!0,!1,!0)},afterChildrenFlex_:function(a){this.$supers("afterChildrenFlex_",arguments);
x(this._mode)&&p(this,!0,!1,!0)},getChildMinSize_:function(a,b){var c=!0;b==this.caption&&(c="w"==a?!!b.$n().style.width:!!b.$n().style.height);return c?this.$supers("getChildMinSize_",arguments):0},getContentEdgeWidth_:function(a){if(this.caption&&a==this.caption.$n().offsetWidth){var b=this.$n(),c=this.caption;c=c?c.$n():b.firstChild;var e=zk(b).padBorderWidth();if(c){for(c=c.parentNode;c&&1==c.nodeType&&b!=c;){var f=zk(c);e+=f.padBorderWidth()+f.sumStyles("lr",jq.margins);c=c.parentNode}return e}return 0}return this.$supers("getContentEdgeWidth_",
arguments)},setFlexSizeH_:function(a,b,c,e){e&&(c+=this._titleHeight(a));this.$supers("setFlexSizeH_",arguments)},ignoreFlexSize_:function(a){return"embedded"!=this._mode},getClosableIconClass_:function(){return"z-icon-times"},getMaximizableIconClass_:function(){return"z-icon-expand"},getMaximizedIconClass_:function(){return"z-icon-compress"},getMinimizableIconClass_:function(){return"z-icon-minus"}},{_startsizing:function(a){t(a.control);zWatch.fire("onFloatUp",a.control)},_snapsizing:function(a,
b){return[6<=a.z_dir&&8>=a.z_dir?Math.max(b[0],0):b[0],8==a.z_dir||2>=a.z_dir?Math.max(b[1],0):b[1]]},_ghostsizing:function(a,b,c){c=a.control;a=a.node;t(c);c.setTopmost();var e=jq(a);jq(document.body).append('<div id="zk_ddghost" class="'+c.getZclass()+'-resize-faker" style="position:absolute;top:'+b[1]+"px;left:"+b[0]+"px;width:"+e.zk.offsetWidth()+"px;height:"+e.zk.offsetHeight()+"px;z-index:"+a.style.zIndex+'"><dl></dl></div>');return jq("#zk_ddghost")[0]},_endghostsizing:function(a,b){var c=
a.node;if(b){var e=zk(b).cmOffset(),f=b.style;b=e[0]-parseInt(f.left);e=e[1]-parseInt(f.top);a.z_szofs={top:jq.px(c.offsetTop-e),left:jq.px(c.offsetLeft-b),height:jq.px0(zk(c).revisedHeight(c.offsetHeight)),width:jq.px0(zk(c).revisedWidth(c.offsetWidth))}}},_insizer:function(a,b,c,e){var f=b[1]+a.offsetHeight;if(5>=c-b[0])return 5>=e-b[1]?8:5>=f-e?6:7;if(5>=b[0]+a.offsetWidth-c)return 5>=e-b[1]?2:5>=f-e?4:3;if(5>=e-b[1])return 1;if(5>=f-e)return 5},_ignoresizing:function(a,b,c){var e=a.node,f=a.control;
if(f._maximized||c.target!=f)return!0;c=zk(e).revisedOffset();return(b=f.$class._insizer(e,c,b[0],b[1]))?(a.z_dir=b,a.z_box={top:c[1],left:c[0],height:e.offsetHeight,width:e.offsetWidth,minHeight:zk.parseInt(f.getMinheight()),minWidth:zk.parseInt(f.getMinwidth())},a.z_orgzi=e.style.zIndex,!1):!0},_aftersizing:function(a,b){var c=a.control,e=a.z_szofs;c._hflex&&c.setHflex_(null);c._vflex&&c.setVflex_(null);c.fire("onSize",zk.copy(e,b.keys),{ignorable:!0});a.z_szofs=null},_drawsizing:function(a,b,c){if(8==
a.z_dir||2>=a.z_dir)c=a.z_box.height+a.z_box.top-b[1],c<a.z_box.minHeight&&(b[1]=a.z_box.height+a.z_box.top-a.z_box.minHeight,c=a.z_box.minHeight),a.node.style.height=jq.px0(c),a.node.style.top=jq.px(b[1]);4<=a.z_dir&&6>=a.z_dir&&(c=a.z_box.height+b[1]-a.z_box.top,c<a.z_box.minHeight&&(c=a.z_box.minHeight),a.node.style.height=jq.px0(c));6<=a.z_dir&&8>=a.z_dir&&(c=a.z_box.width+a.z_box.left-b[0],c<a.z_box.minWidth&&(b[0]=a.z_box.width+a.z_box.left-a.z_box.minWidth,c=a.z_box.minWidth),a.node.style.width=
jq.px0(c),a.node.style.left=jq.px(b[0]));2<=a.z_dir&&4>=a.z_dir&&(c=a.z_box.width+b[0]-a.z_box.left,c<a.z_box.minWidth&&(c=a.z_box.minWidth),a.node.style.width=jq.px0(c))},_startmove:function(a){var b=a.node;b.style.top&&0<=b.style.top.indexOf("%")&&(b.style.top=b.offsetTop+"px");b.style.left&&0<=b.style.left.indexOf("%")&&(b.style.left=b.offsetLeft+"px");zWatch.fire("onFloatUp",a.control)},_ghostmove:function(a,b,c){var e=a.control;c=a.node;var f=jq(c),k=f.find(">div:first")[0];k=jq(k).clone()[0];
var r=e.getZclass();t(e);jq(document.body).prepend('<div id="zk_wndghost" class="'+r+'-move-ghost" style="position:absolute;top:'+b[1]+"px; left:"+b[0]+"px;width:"+(f.width()+zk(c).padBorderWidth())+"px;height:"+(f.height()+zk(c).padBorderHeight())+"px;z-index:"+c.style.zIndex+'"><dl></dl></div>');a._wndoffs=b;c.style.visibility="hidden";a=c.offsetHeight-e._titleHeight(c);c=jq("#zk_wndghost")[0];b=c.firstChild;b.style.height=jq.px0(zk(b).revisedHeight(a));c.insertBefore(k,c.lastChild);return c},_endghostmove:function(a,
b){var c=a.node;b.style.top=jq.px(b.offsetTop+c.offsetTop-a._wndoffs[1]);b.style.left=jq.px(b.offsetLeft+c.offsetLeft-a._wndoffs[0]);document.body.style.cursor="";zWatch.fire("onMove")},_ignoremove:function(a,b,c){var e=a.node;a=a.control;c=c.domTarget;var f;c.id||(c=c.parentNode);switch(c){case a.$n("close"):case a.$n("max"):case a.$n("min"):return!0}return a!=(f=zk.Widget.$(c))&&a.caption!=f?!0:!a.isSizable()||e.offsetTop+4<b[1]&&e.offsetLeft+4<b[0]&&e.offsetLeft+e.offsetWidth-4>b[0]?!1:!0},_aftermove:function(a,
b){a.node.style.visibility="";a=a.control;a._position&&"parent"!=a._position&&"nocenter"!=a._position&&(a._position=null);a.zsync();a._fireOnMove(b.data);zk(a).redoCSS(-1,{fixFontIcon:!0})}});zul.wnd.Skipper=zk.$extends(zk.Skipper,{$init:function(a){this._w=a},restore:function(){this.$supers("restore",arguments);var a=this._w;"embedded"!=a._mode&&(p(a),a.zsync())}});zul.wnd.WindowRenderer={shallCheckBorder:function(a){return"popup"!=a._mode&&("embedded"!=a._mode||"none"!=a.getBorder())}}})();
