var $jscomp=$jscomp||{};$jscomp.scope={};$jscomp.checkStringArgs=function(f,k,g){if(null==f)throw new TypeError("The 'this' value for String.prototype."+g+" must not be null or undefined");if(k instanceof RegExp)throw new TypeError("First argument to String.prototype."+g+" must not be a regular expression");return f+""};$jscomp.ASSUME_ES5=!1;$jscomp.ASSUME_NO_NATIVE_MAP=!1;$jscomp.ASSUME_NO_NATIVE_SET=!1;
$jscomp.defineProperty=$jscomp.ASSUME_ES5||"function"==typeof Object.defineProperties?Object.defineProperty:function(f,k,g){f!=Array.prototype&&f!=Object.prototype&&(f[k]=g.value)};$jscomp.getGlobal=function(f){return"undefined"!=typeof window&&window===f?f:"undefined"!=typeof global&&null!=global?global:f};$jscomp.global=$jscomp.getGlobal(this);
$jscomp.polyfill=function(f,k,g,m){if(k){g=$jscomp.global;f=f.split(".");for(m=0;m<f.length-1;m++){var a=f[m];a in g||(g[a]={});g=g[a]}f=f[f.length-1];m=g[f];k=k(m);k!=m&&null!=k&&$jscomp.defineProperty(g,f,{configurable:!0,writable:!0,value:k})}};
$jscomp.polyfill("String.prototype.startsWith",function(f){return f?f:function(f,g){var k=$jscomp.checkStringArgs(this,f,"startsWith");f+="";var a=k.length,c=f.length;g=Math.max(0,Math.min(g|0,k.length));for(var b=0;b<c&&g<a;)if(k[g++]!=f[b++])return!1;return b>=c}},"es6","es3");
$jscomp.polyfill("String.prototype.endsWith",function(f){return f?f:function(f,g){var k=$jscomp.checkStringArgs(this,f,"endsWith");f+="";void 0===g&&(g=k.length);g=Math.max(0,Math.min(g|0,k.length));for(var a=f.length;0<a&&0<g;)if(k[--g]!=f[--a])return!1;return 0>=a}},"es6","es3");
(function(){function f(a){return a&&a.startsWith("0")&&!zk.parseInt(a)}function k(a,c){var b="",d=a._spacing,e=f(d),g=a.isVertical();d=d&&"auto"!=d?(g?"height:":"width:")+d:"";b+="<t"+(g?"r":"d")+' id="'+c.uuid+'-chdex2" class="'+a.$s("separator")+'"';a=d;if(e||!c.isVisible())a="display:none;"+a;a&&(b+=' style="'+a+'"');return b+=">"+(g?"<td>":"")+zUtl.img0+(g?"</td></tr>":"</td>")}function g(){var a=this.isVertical();if(this._isStretchAlign()||a&&this._nhflex||!a&&this._nvflex)for(var c=this.firstChild;c;c=
c.nextSibling)if(c.isVisible()){var b=c.$n();if(a){if(c._nhflex&&0<c._nhflex)c.setFlexSize_({width:"auto"});else if(b&&this._isStretchAlign()){var d=b.style.width;if(d){var e=b.offsetWidth;b.style.width="";b.offsetWidth>e&&(b.style.width=d)}}!c.$instanceof(zul.wgt.Cell)&&this._nhflex&&(b=c.$n("chdex"),b.style.width="")}else c._nvflex&&0<c._nvflex?c.setFlexSize_({height:"auto"}):b&&this._isStretchAlign()&&(d=b.style.height)&&(e=b.offsetHeight,b.style.height="",b.offsetHeight>e&&(b.style.height=d)),
!c.$instanceof(zul.wgt.Cell)&&this._nvflex&&(b=c.$n("chdex"),b.style.height="")}var f;zk.webkit&&!a&&(f=this.$n().style.height)&&(a=this.$n("frame"),a.style.height="",a.style.height=0<f.indexOf("%")?jq.px0(a.offsetHeight):f)}var m=zul.box.Box=zk.$extends(zul.Widget,{_mold:"vertical",_align:"start",_pack:"start",_sizedByContent:!0,$define:{align:_zkf=function(){this.rerender()},pack:_zkf,spacing:_zkf,sizedByContent:_zkf,widths:_zkf=function(a){this._sizes=a;this.rerender()}},setHeights:function(a){this.setWidths(a)},
getHeights:function(){return this.getWidths()},isVertical:function(){return"vertical"==this._mold},getOrient:function(){return this._mold},getZclass:function(){var a=this._zclass;return null!=a?a:this.isVertical()?"z-vbox":"z-hbox"},onChildVisible_:function(a){this.$supers("onChildVisible_",arguments);this.desktop&&this._fixChildDomVisible(a,a._visible)},replaceChildHTML_:function(a){this.$supers("replaceChildHTML_",arguments);this._fixChildDomVisible(a,a._visible);if(a.$instanceof(zul.box.Splitter)){var c=
this._chdextr(a);c&&(c.style.height="",c.style.width="");zUtl.fireSized(this,-1)}},_fixChildDomVisible:function(a,c){var b=this._chdextr(a);b&&(b.style.display=c?"":"none");if(b=a.$n("chdex2"))b.style.display=c&&!f(this._spacing)?"":"none";this.lastChild==a&&(b=a.previousSibling)&&(b=b.$n("chdex2"))&&(b.style.display=c?"":"none")},_chdextr:function(a){return a.$n("chdex")||a.$n()},insertChildHTML_:function(a,c,b){if(c)jq(this._chdextr(c)).before(this.encloseChildHTML_(a));else{c=this.$n("real");var d=
c.tBodies;d&&d.length||c.appendChild(document.createElement("tbody"));jq(this.isVertical()?d[0]:d[0].rows[0]).append(this.encloseChildHTML_(a,!0))}a.bind(b)},removeChildHTML_:function(a){this.$supers("removeChildHTML_",arguments);jq(a.uuid+"-chdex",zk).remove();jq(a.uuid+"-chdex2",zk).remove();var c;this.lastChild==a&&(c=a.previousSibling)&&jq(c.uuid+"-chdex2",zk).remove()},encloseChildHTML_:function(a,c,b){var d=[],e=a.$instanceof(zul.wgt.Cell);if(this.isVertical()){d.push('<tr id="',a.uuid,'-chdex"',
this._childOuterAttrs(a),">");if(!e){d.push("<td",this._childInnerAttrs(a));var f=this.getAlign();f&&"stretch"!=f&&d.push(' align="',zul.box.Box._toHalign(f),'"');d.push(">")}a.redraw(d);e||d.push("</td>");d.push("</tr>")}else e||d.push('<td id="',a.uuid,'-chdex"',this._childOuterAttrs(a),this._childInnerAttrs(a),">"),a.redraw(d),e||d.push("</td>");(e=a.nextSibling)&&!e.$instanceof(zul.wgt.Popup)?d.push(k(this,a)):c&&(a=a.previousSibling)&&d.unshift(k(this,a));if(!b)return d.join("");a=0;for(c=d.length;a<
c;++a)b.push(d[a])},_resetBoxSize:function(a){var c;a=this.isVertical();var b=-1,d=this._sizes;if(!zk.mounting)if(a)for(var e=this.firstChild;e;e=e.nextSibling)!d||e.$instanceof(zul.box.Splitter)||e.$instanceof(zul.wgt.Cell)||++b,e._nvflex&&"min"!=e.getVflex()&&(e.setFlexSize_({height:"",width:""}),!(a=e.$n("chdex"))||(c=e.$n())&&(c.scrollTop||c.scrollLeft)||(a.style.height=d&&b<d.length?d[b]:"",a.style.width=""));else for(e=this.firstChild;e;e=e.nextSibling)!d||e.$instanceof(zul.box.Splitter)||e.$instanceof(zul.wgt.Cell)||
++b,e._nhflex&&"min"!=e.getHflex()&&(e.setFlexSize_({height:"",width:""}),!(a=e.$n("chdex"))||(c=e.$n())&&(c.scrollTop||c.scrollLeft)||(a.style.width=d&&b<d.length?d[b]:"",a.style.height=""))},afterResetChildSize_:function(){for(var a=this.firstChild,c=this.isVertical();a;a=a.nextSibling)if(a.desktop){var b=c?a.$n("chdex").firstChild:a.$n("chdex");b&&(b.style.minWidth="1px")}},resetSize_:function(a){this.$supers(zul.Widget,"resetSize_",arguments);if(!zk.ie){var c=this.$n();c.scrollTop||c.scrollLeft||
(this.$n("frame").style["w"==a?"width":"height"]="")}var b=this.isVertical();c=-1;var d=this._sizes;if(b)for(var e=this.firstChild;e;e=e.nextSibling){if(!d||e.$instanceof(zul.box.Splitter)||e.$instanceof(zul.wgt.Cell)||++c,e._nvflex&&"min"!=e.getVflex()&&(b=e.$n("chdex")))"h"==a&&(b.style.height=d&&c<d.length?d[c]:""),"w"==a&&(b.style.width="")}else for(e=this.firstChild;e;e=e.nextSibling)if(!d||e.$instanceof(zul.box.Splitter)||e.$instanceof(zul.wgt.Cell)||++c,e._nhflex&&"min"!=e.getHflex()&&(b=e.$n("chdex")))"w"==
a&&(b.style.width=d&&c<d.length?d[c]:""),"h"==a&&(b.style.height="")},_getContentSize:function(){var a=this.$n();a=zk(a);var c=void 0!==this._vflexsz?this._vflexsz-a.padBorderHeight()-a.marginHeight():a.contentHeight(!0),b=void 0!==this._hflexsz?this._hflexsz-a.padBorderWidth()-a.marginWidth():a.contentWidth(!0);return a?{height:c,width:b}:{height:0,width:0}},beforeChildrenFlex_:function(a){var c,b;a._flexFixed=!0;var d=this.isVertical(),e=[],f=d?0:1,g=[],k=d?1:0;var h=(c=a.$n("chdex"))?c.parentNode:
a.$n().parentNode;c=this.$n();var q=zk(c);var m=this._getContentSize(),r=m.height;m=m.width;h=h.firstChild;var n=-1;var p=this._sizes;zk.mounting||this._resetBoxSize(d);q.hasVScroll()&&(m-=b=jq.scrollbarWidth());for(q.hasHScroll()&&(r-=b||jq.scrollbarWidth());h;h=h.nextSibling){for(var l=h.id&&h.id.endsWith("-chdex")?d?h.firstChild.id?h.firstChild:h.firstChild.firstChild:h.firstChild:h;l&&3==l.nodeType;l=l.nextSibling);zkc=zk(l);fixedSize=!1;if(zkc.isVisible()){q=l.id?l.id.indexOf("-"):1;b=0>q?zk.Widget.$(l.id):
null;q=this._hflexsz;var t=zk.chrome&&q;p&&b&&!b.$instanceof(zul.box.Splitter)&&!b.$instanceof(zul.wgt.Cell)&&(++n,n<p.length&&p[n]&&(d&&!b._nvflex||!d&&!b._nhflex)&&(l=h,zkc=zk(l),fixedSize=p[n].endsWith("px")));t&&(c.style.width="");var v=fixedSize&&d?zk.parseInt(p[n]):11>zk.ie&&h.id&&h.id.endsWith("-chdex2")&&h.style.height&&h.style.height.endsWith("px")?zk.parseInt(h.style.height):zkc.offsetHeight(),u=(fixedSize&&!d?zk.parseInt(p[n]):zkc.offsetWidth())+zkc.marginWidth();v+=zkc.marginHeight();
t&&(c.style.width=jq.px0(q));b&&b._nvflex?(b!==a&&(b._flexFixed=!0),"min"==b._vflex?(b.fixMinFlex_(l,"h"),d&&(r-=v)):(e.push(b),d&&(f+=b._nvflex))):d&&(r-=v);b&&b._nhflex?(b!==a&&(b._flexFixed=!0),"min"==b._hflex?(b.fixMinFlex_(l,"w"),d||(m-=u)):(g.push(b),d||(k+=b._nhflex))):d||(m-=u)}}l=0<r?r:0;for(q=e.length-1;0<q;--q)b=e.shift(),t=u=b._nvflex*r/f|0,c=b.$n("chdex"),p=zk(c),n=p.padBorderHeight(),h=!b.$n().style.height,b.setFlexSize_({height:t-n}),b._vflexsz=u-n,b.$instanceof(zul.wgt.Cell)||(c.style.height=
jq.px0(u-p.marginHeight())),d&&(l-=u),!h&&d&&b!==a&&zUtl.fireSized(b);e.length&&(b=e.shift(),t=l,c=b.$n("chdex"),p=zk(c),n=p.padBorderHeight(),h=!b.$n().style.height,b.setFlexSize_({height:t-n}),b._vflexsz=l-n,b.$instanceof(zul.wgt.Cell)||(c.style.height=jq.px0(l-p.marginHeight())),!h&&d&&b!==a&&zUtl.fireSized(b));l=0<m?m:0;for(q=g.length-1;0<q;--q)b=g.shift(),e=b._nhflex*m/k|0,c=b.$n("chdex"),p=zk(c),n=p.padBorderWidth(),h=!b.$n().style.width,b.setFlexSize_({width:e-n}),b._hflexsz=e-n,b.$instanceof(zul.wgt.Cell)||
(c.style.width=jq.px0(e-p.marginWidth())),d||(l-=e),h||d||b===a||zUtl.fireSized(b);g.length&&(b=g.shift(),c=b.$n("chdex"),p=zk(c),n=p.padBorderWidth(),h=!b.$n().style.width,b.setFlexSize_({width:l-n}),b._hflexsz=l-n,b.$instanceof(zul.wgt.Cell)||(c.style.width=jq.px0(l-p.marginWidth())),h||d||b===a||zUtl.fireSized(b));a.parent.afterChildrenFlex_(a);return a._flexFixed=!1},_childOuterAttrs:function(a){if(a.$instanceof(zul.box.Splitter))var c=' class="'+a.$s("outer")+'"';else if(this.isVertical())this._isStretchPack()?
(c=this._pack2,c=' valign="'+(c?zul.box.Box._toValign(c):"top")+'"'):c=' valign="top"';else return"";a.isVisible()||(c+=' style="display:none"');return c},_childInnerAttrs:function(a){var c="",b=this.isVertical(),d=zul.box.Splitter;if(a.$instanceof(d))return"";if(this._isStretchPack()){var e=b?this.getAlign():this._pack2;e&&(c+=' align="'+zul.box.Box._toHalign(e)+'"')}e="";var f=this._sizes;if(f)for(var g=0,k=f.length,h=this.firstChild;h&&g<k;h=h.nextSibling){if(a==h){e=(b?"height:":"width:")+f[g];
break}h.$instanceof(d)||++g}b||a.isVisible()||(e+=e?";display:none":"display:none");b||(e+=e?";height:100%":"height:100%");return e?c+' style="'+e+'"':c},_isStretchPack:function(){return this._splitterKid||this._stretchPack},_isStretchAlign:function(){return"stretch"==this._align},_bindWatch:function(){this._watchBound||(this._watchBound=!0,zWatch.listen({onSize:this,onHide:this}))},_unbindWatch:function(){this._watchBound&&(zWatch.unlisten({onSize:this,onHide:this}),delete this._watchBound)},bind_:function(){this.$supers(m,
"bind_",arguments);this._bindFixTd();this._isStretchAlign()&&this._bindAlign();this._splitterKid&&this._bindWatch()},unbind_:function(){this._unbindWatch();this._unbindAlign();this._unbindFixTd();this.$supers(m,"unbind_",arguments)},_bindAlign:function(){this._watchAlign||(this._watchAlign=!0,zWatch.listen({onSize:[this,this._fixAlign],onHide:[this,this._fixAlign]}))},_unbindAlign:function(){this._watchAlign&&(zWatch.unlisten({onSize:[this,this._fixAlign],onHide:[this,this._fixAlign]}),delete this._watchAlign)},
_fixAlign:function(){if(this._isStretchAlign()){var a=this.isVertical(),c=this.$n("frame"),b=zk(c);c=a?b.revisedWidth(c.offsetWidth):b.revisedHeight(c.offsetHeight);b=this.firstChild;for(var d;b;b=b.nextSibling)b.isVisible()&&(d=b.$n())&&(a?d.style.width=zk(d).revisedWidth(c,!zk.webkit)+"px":d.style.height=zk(d).revisedHeight(c-(11>zk.ie&&0<d.offsetTop?2*d.offsetTop:0),!zk.webkit)+"px")}},_bindFixTd:function(){this._watchTd||(this._watchTd=!0,zWatch.listen({onSize:[this,g],onHide:[this,g]}))},_unbindFixTd:function(){this._watchTd&&
(zWatch.unlisten({onSize:[this,g],onHide:[this,g]}),delete this._watchTd)},_configPack:function(){var a;(a=this._pack)?(a=a.split(","),"stretch"==a[0].trim()?(this._stretchPack=!0,this._pack2=1<a.length?a[1].trim():null):(this._stretchPack=1<a.length&&"stretch"==a[1].trim(),this._pack2=a[0].trim())):(delete this._pack2,delete this._stretchPack)},onSize:_zkf=function(){if(this._splitterKid){var a=this.isVertical();this.$n();var c=this.$n("real");c.style.height=c.style.width="100%";for(var b=a?c.rows:
c.rows[0].cells,d=a?zk(c).revisedHeight(c.offsetHeight):zk(c).revisedWidth(c.offsetWidth),e=this._sizes,f=b.length;f--;){var g=b[f];if(zk(g).isVisible()){if(a){if(c=g.offsetHeight,g.id&&!g.id.endsWith("-chdex2"))if(g.cells.length){var k=g.cells[0];k.style.height=zk(k).revisedHeight(f?c:d)+"px";g.style.height=""}else g.style.height=zk(g).revisedHeight(f?c:d)+"px"}else c=g.offsetWidth,e||!g.id||g.id.endsWith("-chdex2")||(g.style.width=zk(g).revisedWidth(f?c:d)+"px");d-=c}}}},onHide:_zkf},{_toValign:function(a){return a?
"start"==a?"top":"center"==a?"middle":"end"==a?"bottom":a:null},_toHalign:function(a){return a?"start"==a?"left":"end"==a?"right":a:null}})})();
