var $jscomp=$jscomp||{};$jscomp.scope={};$jscomp.checkStringArgs=function(b,a,c){if(null==b)throw new TypeError("The 'this' value for String.prototype."+c+" must not be null or undefined");if(a instanceof RegExp)throw new TypeError("First argument to String.prototype."+c+" must not be a regular expression");return b+""};$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(b,a,c){if(b==Array.prototype||b==Object.prototype)return b;b[a]=c.value;return b};
$jscomp.getGlobal=function(b){b=["object"==typeof globalThis&&globalThis,b,"object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof global&&global];for(var a=0;a<b.length;++a){var c=b[a];if(c&&c.Math==Math)return c}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(b,a){var c=$jscomp.propertyToPolyfillSymbol[a];if(null==c)return b[a];c=b[c];return void 0!==c?c:b[a]};$jscomp.polyfill=function(b,a,c,d){a&&($jscomp.ISOLATE_POLYFILLS?$jscomp.polyfillIsolated(b,a,c,d):$jscomp.polyfillUnisolated(b,a,c,d))};
$jscomp.polyfillUnisolated=function(b,a,c,d){c=$jscomp.global;b=b.split(".");for(d=0;d<b.length-1;d++){var e=b[d];if(!(e in c))return;c=c[e]}b=b[b.length-1];d=c[b];a=a(d);a!=d&&null!=a&&$jscomp.defineProperty(c,b,{configurable:!0,writable:!0,value:a})};
$jscomp.polyfillIsolated=function(b,a,c,d){var e=b.split(".");b=1===e.length;d=e[0];d=!b&&d in $jscomp.polyfills?$jscomp.polyfills:$jscomp.global;for(var f=0;f<e.length-1;f++){var h=e[f];if(!(h in d))return;d=d[h]}e=e[e.length-1];c=$jscomp.IS_SYMBOL_NATIVE&&"es6"===c?d[e]:null;a=a(c);null!=a&&(b?$jscomp.defineProperty($jscomp.polyfills,e,{configurable:!0,writable:!0,value:a}):a!==c&&(void 0===$jscomp.propertyToPolyfillSymbol[e]&&(c=1E9*Math.random()>>>0,$jscomp.propertyToPolyfillSymbol[e]=$jscomp.IS_SYMBOL_NATIVE?
$jscomp.global.Symbol(e):$jscomp.POLYFILL_PREFIX+c+"$"+e),$jscomp.defineProperty(d,$jscomp.propertyToPolyfillSymbol[e],{configurable:!0,writable:!0,value:a})))};$jscomp.polyfill("String.prototype.endsWith",function(b){return b?b:function(a,c){var d=$jscomp.checkStringArgs(this,a,"endsWith");a+="";void 0===c&&(c=d.length);c=Math.max(0,Math.min(c|0,d.length));for(var e=a.length;0<e&&0<c;)if(d[--c]!=a[--e])return!1;return 0>=e}},"es6","es3");
zul.tab.Tabs=zk.$extends(zul.Widget,{_tabsScrollLeft:0,_tabsScrollTop:0,getTabbox:function(){return this.parent},getWidth:function(){var b=this._width;if(!b){var a=this.getTabbox();if(a&&a.isVertical())return"50px"}return b},onSize:function(){this._fixWidth(!0);this._scrollcheck("init")},beforeSize:function(){var b=this.getTabbox(),a=b.getWidth(),c=this.$n().style;a&&!a.endsWith("%")&&"auto"!=a||b.inAccordionMold()||b.isVertical()||(this.$n("cave").style.width="",c.width&&(c.width="",b.isTabscroll()||
(b.$n().style.width="")))},insertChildHTML_:function(b,a,c){var d=b.previousSibling;a?jq(a).before(b.redrawHTML_()):d?jq(d).after(b.redrawHTML_()):(a=this.$n("edge"))?jq(a).before(b.redrawHTML_()):jq(this.getCaveNode()).append(b.redrawHTML_());b.bind(c)},setVflex:function(b){"min"!=b&&(b=!1);this.$super(zul.tab.Tabs,"setVflex",b)},setHflex:function(b){"min"!=b&&(b=!1);this.$super(zul.tab.Tabs,"setHflex",b)},bind_:function(b,a,c){this.$supers(zul.tab.Tabs,"bind_",arguments);zWatch.listen({onSize:this,
onResponse:this,beforeSize:this})},unbind_:function(){zWatch.unlisten({onSize:this,onResponse:this,beforeSize:this});this.$supers(zul.tab.Tabs,"unbind_",arguments)},_scrollcheck:function(b,a){this._shallCheck=!1;var c=this.getTabbox();if(this.desktop&&(!c||c.isRealVisible()&&c.isTabscroll())){var d=this.$n(),e=c.$n();if(d&&e)if(c.isVertical()){var f=d.offsetHeight,h=d.scrollTop,l=0;jq(this.$n("cave")).children().each(function(){l+=this.offsetHeight});if(c._scrolling){var k=this._getArrowSize();if(!(d.offsetHeight<=
k)){var g=c.getSelectedTab();g=(a=a?a.$n():g?g.$n():null)?a.offsetTop:0;a=a?a.offsetHeight:0;l<=f+k&&(c._scrolling=!1,this._showbutton(!1),d.style.height=jq.px0(e.offsetHeight-2),d.scrollTop=0);switch(b){case "end":b=l-f-h;this._doScroll(0<=b?"down":"up",0<=b?b:Math.abs(b));break;case "init":case "vsel":g<h?this._doScroll("up",h-g):g+a>h+f&&this._doScroll("down",g+a-h-f)}}}else 0<l-f?(c._scrolling=!0,this._showbutton(!0),k=this._getArrowSize(),e=e.offsetHeight-k,d.style.height=0<e?e+"px":"","end"==
b&&(b=l-f-h+2,0<=b&&this._doScroll(this.uuid,"down",b))):this._showbutton(!1)}else if(!c.inAccordionMold()){k=this.$n("cave");g=c.getSelectedTab();f=(a=a?a.$n():g?g.$n():null)?a.offsetLeft:0;h=a?a.offsetWidth:0;a=d.offsetWidth;g=this._tabsScrollLeft;var n=0,p=c.toolbar,m=0;jq(k).children().each(function(){n+=this.offsetWidth});p&&p.desktop&&(m=p.$n().offsetWidth);if(c._scrolling)switch(k=this._getArrowSize(),c.$n("right").style.right=m+"px",n<=a+k&&(c._scrolling=!1,this._showbutton(!1),d.style.width=
jq.px0(e.offsetWidth-m),this._fixTabsScrollLeft(0)),b){case "end":b=n-a-g;this._doScroll(0<=b?"right":"left",0<=b?b:Math.abs(b));break;case "init":case "sel":f!=g&&(f<g?this._doScroll("left",g-f):f+h>g+a&&this._doScroll("right",f+h-g-a))}else 0<n-a?(c._scrolling=!0,this._showbutton(!0),k=this._getArrowSize(),e=e.offsetWidth-m-k,d.style.width=0<e?e+"px":"",c.$n("right").style.right=m+"px","sel"==b&&(f<g?this._doScroll("left",g-f):f+h>g+a&&this._doScroll("right",f+h-g-a))):this._showbutton(!1)}}},_doScroll:function(b,
a){this._doingScroll||(this._doingScroll={});if(!(0>=a||this._doingScroll[b])){var c=this,d=this.$n();this._doingScroll[b]=a;var e=60>=a?5:5*(zk.parseInt(a/60)+1);var f=function(l,k,g){switch(k){case "right":c._fixTabsScrollLeft(c._tabsScrollLeft+g);break;case "left":c._fixTabsScrollLeft(c._tabsScrollLeft-g);break;case "up":c._fixTabsScrollTop(c._tabsScrollTop-g);break;default:c._fixTabsScrollTop(c._tabsScrollTop+g)}l=c._tabsScrollLeft;k=c._tabsScrollTop;c._fixTabsScrollLeft(0>=l?0:l);c._fixTabsScrollTop(0>=
k?0:k)},h=setInterval(function(){a&&c.desktop?(a<e?f(d,b,a):f(d,b,e),a-=e,a=0>a?0:a):(delete c._doingScroll[b],clearInterval(h))},10)}},_getArrowSize:function(){var b=this.getTabbox(),a=b.isVertical(),c=a?b.$n("up"):b.$n("left");b=a?b.$n("down"):b.$n("right");var d=0;c&&b&&(d=a?c.offsetHeight+b.offsetHeight:c.offsetWidth+b.offsetWidth);return d},_showbutton:function(b){var a=this.getTabbox();if(a.isTabscroll()){var c=a.$s("scroll");jq(a).removeClass(c);b&&(a.isVertical()||a.inAccordionMold()||(b=
a.toolbar,a.$n("left").style.height=a.$n("right").style.height="",b&&(b.$n().style.height="")),jq(a).addClass(c))}},_fixWidth:function(b){var a=this.$n(),c=this.getTabbox(),d=c.$n(),e=c._scrolling?this._getArrowSize():0;this._fixHgh(b);c.isVertical()?a.style.width?a._width=a.style.width:a.style.width=a._width?a._width:"50px":c.inAccordionMold()||d.offsetWidth<e||(c.isTabscroll()?((b=c.toolbar)&&(b=b.$n()),d.style.width||(d.style.width="100%"),a.style.width=c._scrolling?jq.px0(zk(d).contentWidth()-
(b?b.offsetWidth:0)-e):jq.px0(zk(d).contentWidth()-(b?b.offsetWidth:0)),b&&c._scrolling&&(c.$n("right").style.right=b.offsetWidth+"px")):d.style.width?a.style.width=jq.px0(zk(d).contentWidth()-zk(a).marginWidth()):d.offsetWidth&&(d.style.width=jq.px0(d.offsetWidth),a.style.width=jq.px0(zk(d).contentWidth()-zk(a).marginWidth())))},_fixHgh:function(b){if(!this.getTabbox()._scrolling){var a=this.getTabbox();if(a.isVertical()){var c=this.$n(),d=a.$n(),e=a.$n("up"),f=a.$n("down"),h=this.$n("cave");h=jq(h).children();
a.getHeight()||a._vflex&&"min"!=a._vflex||(b?(b=h.length*h[0].offsetHeight,a=(a=a.getSelectedPanel())&&a.getPanelContentHeight_()||0,d.style.height=jq.px0(Math.max(b,a)+zk(d).padBorderHeight())):jq(d).css("height",""));c.style.height=jq.px0(zk(d).contentHeight()-zk(c).marginHeight());e&&f&&(e.style.width=f.style.width=c.style.width)}else d=a.$n("right"),e=a.$n("left"),a=a.toolbar,c=this.$n(),f=jq.px0(c?c.offsetHeight:0),d&&e&&(d.style.height=e.style.height=f),a&&(a=a.$n())&&(a.style.height=f),c&&
(c.style.height="")}},onResponse:function(){this._shallCheck&&this._scrollcheck("init")},onChildRemoved_:function(b){var a=this.parent;a&&b==a._selTab&&(a._selTab=null);this.desktop&&(this._shallCheck=!0);this.$supers("onChildRemoved_",arguments)},onChildAdded_:function(){this.desktop&&(this._shallCheck=!0);this.$supers("onChildAdded_",arguments)},onChildVisible_:function(){if(this.desktop){var b=this.getTabbox();b.inAccordionMold()&&b.getHeight()&&b.syncSize()}this.$supers("onChildVisible_",arguments)},
ignoreFlexSize_:function(b){var a=this.getTabbox();return a.isVertical()&&"h"==b||a.isHorizontal()&&"w"==b},_fixTabsScrollLeft:function(b){this.$n().scrollLeft=this._tabsScrollLeft=b},_fixTabsScrollTop:function(b){this.$n().scrollTop=this._tabsScrollTop=b}});
