YUI.add("timers",function(e,t){function i(e){return s}function s(e){this.capacity=this.snap(e),this.length=0,this.front=0,this.initialize()}function o(e,t,n,r,i){for(var s=0;s<i;++s)n[s+r]=e[s+t]}function u(e){return e>>>=0,e-=1,e|=e>>1,e|=e>>2,e|=e>>4,e|=e>>8,e|=e>>16,e+1}function v(){while(a.length>0){var e=a.shift();try{e.call()}catch(t){if(d)throw l(),t;setTimeout(function(){throw t},0)}}f=!1}function y(e){d&&p.domain&&(e=p.domain.bind(e)),a.push(e),f||(l(),f=!0)}function b(e){var t;return b._asynchronizer(function(){t||e()}),{cancel:function(){t=1}}}var n={},r=e.config.global;"use strict",n.exports=s,s.prototype.push=function(e){var t=this.length;this.capacity<=t&&this.grow(this.snap(this.capacity*this.growFactor));var n=this.front+t&this.capacity-1;this[n]=e,this.length=t+1},s.prototype.shift=function(){var e=this.front,t=this[e];return this[e]=void 0,this.front=e+1&this.capacity-1,this.length--,t},s.prototype.grow=function(e){var t=this.front,n=this.capacity,r=new Array(n),i=this.length;o(this,0,r,0,n),this.capacity=e,this.initialize(),this.front=0;if(t+i<=n)o(r,t,this,0,i);else{var s=i-(t+i&n-1);o(r,t,this,0,s),o(r,0,this,s,i-s)}},s.prototype.initialize=function(){var e=this.capacity;for(var t=0;t<e;++t)this[t]=void 0},s.prototype.snap=function(e){return typeof e!="number"?this.minCapacity:u(Math.min(this.maxCapacity,Math.max(this.minCapacity,e)))},s.prototype.maxCapacity=1<<30|0,s.prototype.minCapacity=16,s.prototype.growFactor=8,"use strict";var s=i("./queue"),a=new s(1024),f=!1,l=void 0,c=typeof setImmediate=="function",h,p=r.process,d=!!p&&{}.toString.call(p)==="[object process]";if(d)l=function(){var e=p.domain;e&&(h=h||(1,i)("domain"),h.active=p.domain=null),f&&c?setImmediate(v):p.nextTick(v),e&&(h.active=p.domain=e)};else if(c)l=function(){setImmediate(v)};else if(typeof MessageChannel!="undefined"){var m=new MessageChannel;m.port1.onmessage=function(){l=g,m.port1.onmessage=v,v()};var g=function(){m.port2.postMessage(0)};l=function(){setTimeout(v,0),g()}}else l=function(){setTimeout(v,0)};n.exports=y,b._asynchronizer=y,b._impl="asap",e.soon=b},"patched-v3.18.1",{requires:["yui-base"]});
YUI.add("cookie",function(e,t){function h(e){throw new TypeError(e)}function p(e){(!s(e)||e==="")&&h("Cookie name must be a non-empty string.")}function d(e){(!s(e)||e==="")&&h("Subcookie name must be a non-empty string.")}var n=e.Lang,r=e.Object,i=null,s=n.isString,o=n.isObject,u=n.isUndefined,a=n.isFunction,f=encodeURIComponent,l=decodeURIComponent,c=e.config.doc;e.Cookie={_createCookieString:function(e,t,n,r){r=r||{};var i=f(e)+"="+(n?f(t):t),u=r.expires,a=r.path,l=r.domain;return o(r)&&(u instanceof Date&&(i+="; expires="+u.toUTCString()),s(a)&&a!==""&&(i+="; path="+a),s(l)&&l!==""&&(i+="; domain="+l),r.secure===!0&&(i+="; secure")),i},_createCookieHashString:function(e){o(e)||h("Cookie._createCookieHashString(): Argument must be an object.");var t=[];return r.each(e,function(e,n){!a(e)&&!u(e)&&t.push(f(n)+"="+f(String(e)))}),t.join("&")},_parseCookieHash:function(e){var t=e.split("&"),n=i,r={};if(e.length)for(var s=0,o=t.length;s<o;s++)n=t[s].split("="),r[l(n[0])]=l(n[1]);return r},_parseCookieString:function(e,t,n){var r={};if(s(e)&&e.length>0){var o=t===!1?function(e){return e}:l,a=e.split(/;\s/g),f=i,c=i,h=i;for(var p=0,d=a.length;p<d;p++){h=a[p].match(/([^=]+)=/i);if(h instanceof Array)try{f=l(h[1]),c=o(a[p].substring(h[1].length+1))}catch(v){}else f=l(a[p]),c="";!u(n)&&n.reverseCookieLoading?u(r[f])&&(r[f]=c):r[f]=c}}return r},_setDoc:function(e){c=e},exists:function(e){p(e);var t=this._parseCookieString(c.cookie,!0);return t.hasOwnProperty(e)},get:function(e,t){p(e);var n,r,s;return a(t)?(s=t,t={}):o(t)?s=t.converter:t={},n=this._parseCookieString(c.cookie,!t.raw,t),r=n[e],u(r)?i:a(s)?s(r):r},getSub:function(e,t,n,r){var s=this.getSubs(e,r);return s!==i?(d(t),u(s[t])?i:a(n)?n(s[t]):s[t]):i},getSubs:function(e,t){p(e);var n=this._parseCookieString(c.cookie,!1,t);return s(n[e])?this._parseCookieHash(n[e]):i},remove:function(t,n){return p(t),n=e.merge(n||{},{expires:new Date(0)}),this.set(t,"",n)},removeSub:function(e,t,n){p(e),d(t),n=n||{};var r=this.getSubs(e);if(o(r)&&r.hasOwnProperty(t)){delete r[t];if(!n.removeIfEmpty)return this.setSubs(e,r,n);for(var i in r)if(r.hasOwnProperty(i)&&!a(r[i])&&!u(r[i]))return this.setSubs(e,r,n);return this.remove(e,n)}return""},set:function(e,t,n){p(e),u(t)&&h("Cookie.set(): Value cannot be undefined."),n=n||{};var r=this._createCookieString(e,t,!n.raw,n);return c.cookie=r,r},setSub:function(e,t,n,r){p(e),d(t),u(n)&&h("Cookie.setSub(): Subcookie value cannot be undefined.");var i=this.getSubs(e);return o(i)||(i={}),i[t]=n,this.setSubs(e,i,r)},setSubs:function(e,t,n){p(e),o(t)||h("Cookie.setSubs(): Cookie value must be an object.");var r=this._createCookieString(e,this._createCookieHashString(t),!1,n);return c.cookie=r,r}}},"patched-v3.18.1",{requires:["yui-base"]});
YUI.add("aui-alert",function(e,t){var n=e.getClassName,r=n("close"),i=n("alert","info"),s=n("alert","dismissable");e.Alert=e.Base.create("alert",e.Widget,[e.WidgetCssClass,e.WidgetStdMod,e.WidgetTransition],{CONTENT_TEMPLATE:null,_eventHandle:null,renderUI:function(){this._uiSetCloseable(this.get("closeable"))},bindUI:function(){this.on("closeableChange",this._onCloseableChange),this.after("visibleChange",this._afterVisibleChange)},_afterVisibleChange:function(t){!t.newVal&&this.get("destroyOnHide")&&e.soon(e.bind("destroy",this))},_onClickBoundingBox:function(e){e.target.test("."+r)&&this.hide()},_onCloseableChange:function(e){this._uiSetCloseable(e.newVal)},_uiSetCloseable:function(e){var t=this.get("boundingBox"),n=this.get("closeableNode");t.toggleClass(s,e),n.remove(),this._eventHandle&&this._eventHandle.detach(),e&&(t.insert(n,0),this._eventHandle=t.on("click",this._onClickBoundingBox,this))}},{ATTRS:{closeable:{validator:e.Lang.isBoolean,value:!0},closeableNode:{valueFn:function(){return e.Node.create('<button type="button" class="close">\u00d7</button>')}},cssClass:{value:i},destroyOnHide:{validator:e.Lang.isBoolean,value:!1}},CSS_PREFIX:"alert",HTML_PARSER:{closeableNode:"."+r}})},"3.0.3-deprecated.62",{requires:["timers","widget","widget-stdmod","aui-classnamemanager","aui-widget-cssclass","aui-widget-transition"],skinnable:!0});
AUI.add("liferay-node",function(a){var e=a.DOM._getRegExp,f=a.Lang.String.prefix,d=function(b,c){return c.replace(e("(#|\\[id\x3d(\\\"|\\'))(?!"+b+")","g"),"$1"+b)};a.mix(a.Node.prototype,{allNS:function(b,c){return this.all(d(b,c))},oneNS:function(b,c){return this.one(d(b,c))}});a.Node.formatSelectorNS=d;a.queryNS=function(b,c,g){return a[g||"one"](d(b,c))};a.oneNS=a.queryNS;a.allNS=function(b,c){return a.queryNS(b,c,"all")};a.byIdNS=function(b,c){return a.one("#"+f(b,c))}},"",{requires:["aui-node-base"]});
AUI.add("liferay-portlet-base",function(c){var d=function(a){var b;this.NS=b="namespace"in a?a.namespace:c.guid();this.ID=b.replace(/^_(.*)_$/,"$1");a.rootNode&&this._setRootNode(a.rootNode)};d.ATTRS={namespace:{getter:"_getNS",writeOnce:!0},rootNode:{getter:"_getRootNode",setter:"_setRootNode",valueFn:function(){return c.one("#p_p_id"+this.NS)}}};d.prototype={all:function(a,b){b=c.one(b)||this.rootNode||c;return b.allNS(this.NS,a)},byId:function(a){return c.byIdNS(this.NS,a)},ns:function(a){return Liferay.Util.ns(this.NS,
a)},one:function(a,b){b=c.one(b)||this.rootNode||c;return b.oneNS(this.NS,a)},_getNS:function(a){return this.NS},_getRootNode:function(a){return this.rootNode},_setRootNode:function(a){return this.rootNode=a=c.one(a)}};Liferay.PortletBase=d},"",{requires:["aui-base","liferay-node"]});
AUI.add("liferay-alert",function(c){var e=c.Lang,f=c.Component.create({ATTRS:{animated:{validator:e.isBoolean,value:!0},closeableNode:{valueFn:function(){return c.Node.create('\x3cbutton class\x3d"close" type\x3d"button"\x3e'+Liferay.Util.getLexiconIconTpl("times","icon-monospaced")+"\x3c/button\x3e")}},icon:{validator:e.isString,value:"info-circle"},message:{validator:e.isString,value:""},title:{validator:e.isString},type:{validator:e.isString,value:"info"}},AUGMENTS:[Liferay.PortletBase],EXTENDS:c.Alert,
NAME:"liferayalert",prototype:{TPL_ALERT_NODE:'\x3cdiv class\x3d"container-fluid-1280 lfr-alert-wrapper"\x3e\x3c/div\x3e',TPL_ALERTS_CONTAINER:'\x3cdiv class\x3d"lfr-alert-container"\x3e\x3c/div\x3e',TPL_CONTENT:'\x3cstrong class\x3d"lead"\x3e\x3csvg class\x3d"lexicon-icon" focusable\x3d"false"\x3e\x3cuse data-href\x3d"{pathThemeImages}/lexicon/icons.svg#{icon}" /\x3e\x3c/svg\x3e {title}\x3c/strong\x3e{message}',bindUI:function(){var a=this.get("boundingBox");this._eventHandles=[this.after(["iconChange",
"messageChange","titleChange"],this._updateBodyContent,this),this.after("typeChange",this._afterTypeChange,this),a.on("mouseenter",this._cancelHide,this),a.on("mouseleave",this._onMouseLeave,this)];f.superclass.bindUI.call(this)},render:function(a){this._updateBodyContent();this._updateCssClass();a=c.one(a);return f.superclass.render.call(this,this._getParentNode(a))},_afterTypeChange:function(a){this._updateCssClass()},_cancelHide:function(){this._clearHideTimer();this._set("visible",!0)},_getAlertsContainer:function(a){var b=
this._alertsContainer;if(!b){var d=a||this.get("rootNode")||c.getBody(),b=a&&a.one(".lfr-alert-container")||d.one(".lfr-alert-container");b||(b=c.Node.create(this.TPL_ALERTS_CONTAINER),a?a.prepend(b):(a=d.one(".portlet-body \x3e .navbar"))?a.placeAfter(b):(d.one(".portlet-body")||d).prepend(b));this._alertsContainer=b}return b},_getParentNode:function(a){var b=this._parentNode;b||(b=c.Node.create(this.TPL_ALERT_NODE),this._getAlertsContainer(a).prepend(b),this._parentNode=b);return b},_maybeHide:function(){this._ignoreHideDelay?
(this._prepareTransition(!1),this._transition(!1)):f.superclass._maybeHide.call(this)},_onClickBoundingBox:function(a){a.target.ancestor(".close",!0,".liferayalert")&&(this._ignoreHideDelay=!0,this.hide())},_onMouseLeave:function(a){0<this.get("delay").hide&&this.hide()},_prepareTransition:function(a){var b=this._getParentNode();this._clearHideTimer();a&&!b.test(".in")&&(this._uiSetVisibleHost(!0),b.setStyle("height",0))},_transition:function(a){var b=this,d=b._getParentNode();if(!a||!d.test(".in"))try{d.transition({duration:b.get("duration")/
1E3,easing:"ease-out",height:a?b.get("boundingBox").outerHeight()+"px":0},function(){d.toggleClass("in",a);b._uiSetVisibleHost(a);var g=b.get("delay");a&&g.hide?b.hide():b.get("destroyOnHide")&&c.soon(c.bind("destroy",b))})}catch(h){}},_updateBodyContent:function(){var a=e.sub(this.TPL_CONTENT,{icon:this.get("icon"),message:this.get("message"),pathThemeImages:themeDisplay.getPathThemeImages(),title:this.get("title")||""});this.set("bodyContent",a)},_updateCssClass:function(){this.set("cssClass","alert-"+
this.get("type"))}}});Liferay.Alert=f},"",{requires:["aui-alert","aui-component","event-mouseenter","liferay-portlet-base","timers"]});
AUI.add("liferay-notification",function(c){var d=c.Component.create({EXTENDS:Liferay.Alert,NAME:"liferaynotification",prototype:{TPL_ALERT_NODE:'\x3cdiv class\x3d"lfr-notification-wrapper"\x3e\x3c/div\x3e',TPL_ALERTS_CONTAINER:'\x3cdiv class\x3d"lfr-notification-container"\x3e\x3c/div\x3e',_getAlertsContainer:function(b){b=b||c.one("body");var a=this._alertsContainer;a||(a=b||this.get("rootNode")||c,a=b&&b.one(".lfr-notification-container")||a.one(".lfr-notification-container"),a||(a=c.Node.create(this.TPL_ALERTS_CONTAINER),
b.prepend(a)),this._alertsContainer=a);return a}}});Liferay.Notification=d},"",{requires:["liferay-alert"]});
AUI.add("liferay-session",function(d){var k=d.Lang,q=[],v=d.config,r=v.doc,y={active:"activated"},s={},t={src:s},w=themeDisplay.getPathMain()+"/portal/",x=d.Component.create({ATTRS:{autoExtend:{value:!1},redirectOnExpire:{value:!0},redirectUrl:{value:""},sessionLength:{getter:"_getLengthInMillis",value:0},sessionState:{value:"active"},timestamp:{getter:"_getTimestamp",setter:"_setTimestamp",value:0},warningLength:{getter:"_getLengthInMillis",setter:"_setWarningLength",value:0},warningTime:{getter:"_getWarningTime",
value:0}},EXTENDS:d.Base,NAME:"liferaysession",prototype:{initializer:function(a){this._cookieOptions={path:"/",secure:d.UA.secure};this._registered={};this.set("timestamp");this._initEvents();this._startTimer()},destructor:function(){(new d.EventHandle(this._eventHandlers)).detach();this._stopTimer()},expire:function(){this.set("sessionState","expired",t)},extend:function(){this.set("sessionState","active",t)},registerInterval:function(a){var b,c=this._registered;k.isFunction(a)&&(b=d.stamp(a),c[b]=
a);return b},resetInterval:function(){this._stopTimer();this._startTimer()},unregisterInterval:function(a){var b=this._registered;b.hasOwnProperty(a)&&delete b[a];return a},warn:function(){this.set("sessionState","warned",t)},_afterSessionStateChange:function(a){var b=a.details,c=a.newVal,e=null;"src"in a&&b.length&&(e=b[0]);this.fire(y[c]||c,e)},_defActivatedFn:function(a){this.set("timestamp");a.src==s&&this._getExtendIO().start()},_defExpiredFn:function(a){d.clearInterval(this._intervalId);this.set("timestamp",
"expired");a.src===s&&this._getExpireIO().start()},_getExpireIO:function(){var a=this,b=a._expireIO;b||(b=d.io.request(w+"expire_session",{autoLoad:!1,on:{success:function(c,e,g){Liferay.fire("sessionExpired");a.get("redirectOnExpire")&&(location.href=a.get("redirectUrl"))}}}),a._expireIO=b);return b},_getExtendIO:function(){var a=this._extendIO;a||(this._extendIO=a=d.io.request(w+"extend_session",{autoLoad:!1}));return a},_getLengthInMillis:function(a){return 1E3*a},_getTimestamp:function(a){return d.Cookie.get(this._cookieKey,
this._cookieOptions)||0},_getWarningTime:function(){return this.get("sessionLength")-this.get("warningLength")},_initEvents:function(){var a=this;a.publish("activated",{defaultFn:d.bind("_defActivatedFn",a)});a.publish("expired",{defaultFn:d.bind("_defExpiredFn",a)});a.publish("warned");a._eventHandlers=[a.on("sessionStateChange",a._onSessionStateChange),a.after("sessionStateChange",a._afterSessionStateChange),d.on("io:complete",function(b,c,e){(!e||e&&e.sessionExtend||!k.isBoolean(e.sessionExtend))&&
a.resetInterval()}),Liferay.once("screenLoad",function(){a.destroy()})]},_onSessionStateChange:function(a){var b=a.newVal,c=a.prevVal;"expired"==c&&c!=b?a.preventDefault():"active"==c&&c==b&&this._afterSessionStateChange(a)},_setTimestamp:function(a){a=String(a||Date.now());return d.Cookie.set(this._cookieKey,a,this._cookieOptions)},_setWarningLength:function(a){return Math.min(this.get("sessionLength"),a)},_startTimer:function(){var a=this,b=a.get("sessionLength"),c=a.get("warningTime"),e=a._registered;
a._intervalId=d.setInterval(function(){var g,h=a.get("timestamp");g=b;k.toInt(h)?g=1E3*Math.floor((Date.now()-h)/1E3):h="expired";var f=a.get("autoExtend"),l=!1,n=!1,m=g>=b,p=g>=c;p&&("expired"==h&&(l=!0,f=!1,m=!0),h=a.get("sessionState"),m&&"expired"!=h?f?(n=p=m=l=!1,a.extend()):(a.expire(),l=!0):!p||m||f||"warned"==h||(a.warn(),n=!0));for(var u in e)e[u](g,1E3,p,m,n,l)},1E3)},_stopTimer:function(){d.clearInterval(this._intervalId)},_cookieKey:"LFR_SESSION_STATE_"+themeDisplay.getUserId()}});x.SRC=
s;var B=d.Component.create({ATTRS:{pageTitle:{value:r.title}},EXTENDS:d.Plugin.Base,NAME:"liferaysessiondisplay",NS:"display",prototype:{initializer:function(a){a=this.get("host");Liferay.Util.getTop()==v.win?(this._host=a,this._toggleText={hide:'Skrýt',show:'Zobrazit'},this._expiredText='Kvůli\x20nečinnosti\x20vaše\x20relace\x20vypršela\x2e\x20Prosím\x20uložte\x20veškerá\x20data\x2c\x20které\x20jste\x20zadali\x20před\x20obnovením\x20stránky\x2e',this._warningText='Due\x20to\x20inactivity\x2c\x20your\x20session\x20will\x20expire\x20in\x20\x7b0\x7d\x2e\x20To\x20extend\x20your\x20session\x20another\x20\x7b1\x7d\x20minute\x28s\x29\x2c\x20please\x20press\x20the\x20\x3cem\x3eExtend\x3c\x2fem\x3e\x20button\x2e\x20\x7b2\x7d',this._warningText=k.sub(this._warningText,
['\x3cspan class\x3d"countdown-timer"\x3e{0}\x3c/span\x3e',a.get("sessionLength")/6E4,'\x3ca class\x3d"alert-link" href\x3d"#"\x3e'+'Prodloužit'+"\x3c/a\x3e"]),a.on("sessionStateChange",this._onHostSessionStateChange,this),this.afterHostMethod("_defActivatedFn",this._afterDefActivatedFn),this.afterHostMethod("_defExpiredFn",this._afterDefExpiredFn)):a.unplug(this)},destructor:function(){this._banner&&this._banner.destroy()},_afterDefActivatedFn:function(a){this._uiSetActivated()},
_afterDefExpiredFn:function(a){this._host.unregisterInterval(this._intervalId);this._uiSetExpired()},_beforeHostWarned:function(a){var b=this;a=b._host;var c=a.get("sessionLength"),e=a.get("timestamp"),g=a.get("warningLength"),h=c;k.toInt(e)&&(h=1E3*Math.floor((Date.now()-e)/1E3));var f=c-h;f>g&&(f=g);var l=b._getBanner(),n=l.one(".countdown-timer");b._uiSetRemainingTime(f,n);l.show();b._intervalId=a.registerInterval(function(m,p,u,z,A,C){u?z||(A&&(0>=f&&(f=g),l.show()),m=1E3*Math.floor((Date.now()-
e)/1E3),f=c-m,b._uiSetRemainingTime(f,n)):b._uiSetActivated();f-=p})},_formatNumber:function(a){return k.String.padNumber(Math.floor(a),2)},_formatTime:function(a){a=Number(a);k.isNumber(a)&&0<a?(a/=1E3,q[0]=this._formatNumber(a/3600),a%=3600,q[1]=this._formatNumber(a/60),q[2]=this._formatNumber(a%60),a=q.join(":")):a=0;return a},_getBanner:function(){var a=this,b=a._banner;b||(b=(new Liferay.Notification({closeable:!0,delay:{hide:0,show:0},duration:500,message:a._warningText,on:{click:function(c){c.domEvent.target.test(".alert-link")&&
(c.domEvent.preventDefault(),a._host.extend())}},title:'Varování',type:"warning"})).render("body"),a._banner=b);return b},_onHostSessionStateChange:function(a){"warned"==a.newVal&&this._beforeHostWarned(a)},_uiSetActivated:function(){r.title=this.reset("pageTitle").get("pageTitle");this._host.unregisterInterval(this._intervalId);var a=this._getBanner();a&&a.hide()},_uiSetExpired:function(){this._getBanner().setAttrs({message:this._expiredText,title:'Nebezpečí',
type:"danger"});r.title=this.get("pageTitle")},_uiSetRemainingTime:function(a,b){var c=this._getBanner();a=this._formatTime(a);c.set("message",k.sub(this._warningText,[a]));r.title=k.sub('Session\x20expires\x20in\x20\x7b0\x7d\x2e',[a])+" | "+this.get("pageTitle")}}});Liferay.SessionBase=x;Liferay.SessionDisplay=B},"",{requires:["aui-io-request","aui-timer","cookie","liferay-notification"]});
YUI.add("button-core",function(e,t){function i(e){this.initializer(e)}var n=e.ClassNameManager.getClassName,r=e.AttributeCore;i.prototype={TEMPLATE:"<button/>",constructor:i,initializer:function(e){this._initNode(e),this._initAttributes(e),this._renderUI(e)},_initNode:function(t){t.host?this._host=e.one(t.host):this._host=e.Node.create(this.TEMPLATE)},_initAttributes:function(e){r.call(this,i.ATTRS,e)},_renderUI:function(){var e=this.getNode(),t=e.get("nodeName").toLowerCase();e.addClass(i.CLASS_NAMES.BUTTON),t!=="button"&&t!=="input"&&e.set("role","button")},enable:function(){this.set("disabled",!1)},disable:function(){this.set("disabled",!0)},getNode:function(){return this._host||(this._host=this.get("boundingBox")),this._host},_getLabel:function(){var e=this.getNode(),t=i._getTextLabelFromNode(e);return t},_getLabelHTML:function(){var e=this.getNode(),t=i._getHTMLFromNode(e);return t},_setLabel:function(t,n,r){var i=e.Escape.html(t);return(!r||r.src!=="internal")&&this.set("labelHTML",i,{src:"internal"}),i},_setLabelHTML:function(e,t,n){var r=this.getNode(),s=i._getLabelNodeFromParent(r),o=r.get("nodeName").toLowerCase();return o==="input"?s.set("value",e):s.setHTML(e),(!n||n.src!=="internal")&&this.set("label",e,{src:"internal"}),e},_setDisabled:function(e){var t=this.getNode();return t.getDOMNode().disabled=e,t.toggleClass(i.CLASS_NAMES.DISABLED,e),e}},e.mix(i.prototype,r.prototype),i.ATTRS={label:{setter:"_setLabel",getter:"_getLabel",lazyAdd:!1},labelHTML:{setter:"_setLabelHTML",getter:"_getLabelHTML",lazyAdd:!1},disabled:{value:!1,setter:"_setDisabled",lazyAdd:!1}},i.NAME="button",i.CLASS_NAMES={BUTTON:n("button"),DISABLED:n("button","disabled"),SELECTED:n("button","selected"),LABEL:n("button","label")},i.ARIA_STATES={PRESSED:"aria-pressed",CHECKED:"aria-checked"},i.ARIA_ROLES={BUTTON:"button",CHECKBOX:"checkbox",TOGGLE:"toggle"},i._getLabelNodeFromParent=function(e){var t=e.one("."+i.CLASS_NAMES.LABEL)||e;return t},i._getTextLabelFromNode=function(e){var t=i._getLabelNodeFromParent(e),n=t.get("nodeName").toLowerCase(),r=t.get(n==="input"?"value":"text");return r},i._getHTMLFromNode=function(e){var t=i._getLabelNodeFromParent(e),n=t.getHTML();return n},i._getDisabledFromNode=function(e){return e.get("disabled")},e.ButtonCore=i},"patched-v3.18.1",{requires:["attribute-core","classnamemanager","node-base","escape"]});
YUI.add("button-plugin",function(e,t){function n(){n.superclass.constructor.apply(this,arguments)}e.extend(n,e.ButtonCore,{_afterNodeGet:function(t){var n=this.constructor.ATTRS,r=n[t]&&n[t].getter&&this[n[t].getter];if(r)return new e.Do.AlterReturn("get "+t,r.call(this))},_afterNodeSet:function(e,t){var n=this.constructor.ATTRS,r=n[e]&&n[e].setter&&this[n[e].setter];r&&r.call(this,t)},_initNode:function(t){var n=t.host;this._host=n,e.Do.after(this._afterNodeGet,n,"get",this),e.Do.after(this._afterNodeSet,n,"set",this)},destroy:function(){}},{ATTRS:e.merge(e.ButtonCore.ATTRS),NAME:"buttonPlugin",NS:"button"}),n.createNode=function(t,n){var r;return t&&!n&&!t.nodeType&&!t.getDOMNode&&typeof t!="string"&&(n=t,t=n.srcNode),n=n||{},r=n.template||e.Plugin.Button.prototype.TEMPLATE,t=t||n.srcNode||e.DOM.create(r),e.one(t).plug(e.Plugin.Button,n)},e.namespace("Plugin").Button=n},"patched-v3.18.1",{requires:["button-core","cssbutton","node-pluginhost"]});
YUI.add("widget-buttons",function(e,t){function p(e){return!!e.getDOMNode}function d(){this._buttonsHandles={}}var n=e.Array,r=e.Lang,i=e.Object,s=e.Plugin.Button,o=e.Widget,u=e.WidgetStdMod,a=e.ClassNameManager.getClassName,f=r.isArray,l=r.isNumber,c=r.isString,h=r.isValue;d.ATTRS={buttons:{getter:"_getButtons",setter:"_setButtons",value:{}},defaultButton:{readOnly:!0,value:null}},d.CLASS_NAMES={button:a("button"),buttons:o.getClassName("buttons"),primary:a("button","primary")},d.HTML_PARSER={buttons:function(e){return this._parseButtons(e)}},d.NON_BUTTON_NODE_CFG=["action","classNames","context","events","isDefault","section"],d.prototype={BUTTONS:{},BUTTONS_TEMPLATE:"<span />",DEFAULT_BUTTONS_SECTION:u.FOOTER,initializer:function(){this._stdModNode||e.error("WidgetStdMod must be added to a Widget before WidgetButtons."),this._mapButtons(this.get("buttons")),this._updateDefaultButton(),this.after({buttonsChange:e.bind("_afterButtonsChange",this),defaultButtonChange:e.bind("_afterDefaultButtonChange",this)}),e.after(this._bindUIButtons,this,"bindUI"),e.after(this._syncUIButtons,this,"syncUI")},destructor:function(){i.each(this._buttonsHandles,function(e){e.detach()}),delete this._buttonsHandles,delete this._buttonsMap,delete this._defaultButton},addButton:function(e,t,r){var i=this.get("buttons"),s,o;return p(e)||(e=this._mergeButtonConfig(e),t||(t=e.section)),t||(t=this.DEFAULT_BUTTONS_SECTION),s=i[t]||(i[t]=[]),l(r)||(r=s.length),s.splice(r,0,e),o=n.indexOf(s,e),this.set("buttons",i,{button:e,section:t,index:o,src:"add"}),this},getButton:function(e,t){if(!h(e))return;var n=this._buttonsMap,r;return t||(t=this.DEFAULT_BUTTONS_SECTION),l(e)?(r=this.get("buttons"),r[t]&&r[t][e]):arguments.length>1?n[t+":"+e]:n[e]},removeButton:function(e,t){if(!h(e))return this;var r=this.get("buttons"),s;return l(e)?(t||(t=this.DEFAULT_BUTTONS_SECTION),s=e,e=r[t][s]):(c(e)&&(e=this.getButton.apply(this,arguments)),i.some(r,function(r,i){s=n.indexOf(r,e);if(s>-1)return t=i,!0})),e&&s>-1&&(r[t].splice(s,1),this.set("buttons",r,{button:e,section:t,index:s,src:"remove"})),this},_bindUIButtons:function(){var t=e.bind("_afterContentChangeButtons",this);this.after({visibleChange:e.bind("_afterVisibleChangeButtons",this),headerContentChange:t,bodyContentChange:t,footerContentChange:t})},_createButton:function(t){var r,i,o,u,a,f,l,h;if(p(t))return e.one(t.getDOMNode()).plug(s);r=e.merge({context:this,events:"click",label:t.value},t),i=e.merge(r),o=d.NON_BUTTON_NODE_CFG;for(u=0,a=o.length;u<a;u+=1)delete i[o[u]];return t=s.createNode(i),l=r.context,f=r.action,c(f)&&(f=e.bind(f,l)),h=t.on(r.events,f,l),this._buttonsHandles[e.stamp(t,!0)]=h,t.setData("name",this._getButtonName(r)),t.setData("default",this._getButtonDefault(r)),n.each(n(r.classNames),t.addClass,t),t},_getButtonContainer:function(t,n){var r=u.SECTION_CLASS_NAMES[t],i=d.CLASS_NAMES.buttons,s=this.get("contentBox"),o,a;return o="."+r+" ."+i,a=s.one(o),!a&&n&&(a=e.Node.create(this.BUTTONS_TEMPLATE),a.addClass(i)),a},_getButtonDefault:function(e){var t=p(e)?e.getData("default"):e.isDefault;return c(t)?t.toLowerCase()==="true":!!t},_getButtonName:function(e){var t;return p(e)?t=e.getData("name")||e.get("name"):t=e&&(e.name||e.type),t},_getButtons:function(e){var t={};return i.each(e,function(e,n){t[n]=e.concat()}),t},_mapButton:function(e,t){var n=this._buttonsMap,r=this._getButtonName(e),i=this._getButtonDefault(e);r&&(n[r]=e,n[t+":"+r]=e),i&&(this._defaultButton=e)},_mapButtons:function(e){this._buttonsMap={},this._defaultButton=null,i.each(e,function(e,t){var n,r;for(n=0,r=e.length;n<r;n+=1)this._mapButton(e[n],t)},this)},_mergeButtonConfig:function(t){var n,r,i,s,o,u;return t=c(t)?{name:t}:e.merge(t),t.srcNode&&(s=t.srcNode,o=s.get("tagName").toLowerCase(),u=s.get(o==="input"?"value":"text"),n={disabled:!!s.get("disabled"),isDefault:this._getButtonDefault(s),name:this._getButtonName(s)},u&&(n.label=u),e.mix(t,n,!1,null,0,!0)),i=this._getButtonName(t),r=this.BUTTONS&&this.BUTTONS[i],r&&e.mix(t,r,!1,null,0,!0),t},_parseButtons:function(e){var t="."+d.CLASS_NAMES.button,r=["header","body","footer"],i=null;return n.each(r,function(e){var n=this._getButtonContainer(e),r=n&&n.all(t),s;if(!r||r.isEmpty())return;s=[],r.each(function(e){s.push({srcNode:e})}),i||(i={}),i[e]=s},this),i},_setButtons:function(e){function r(e,r){if(!f(e))return;var i,s,o,u;for(i=0,s=e.length;i<s;i+=1)o=e[i],u=r,p(o)||(o=this._mergeButtonConfig(o),u||(u=o.section)),o=this._createButton(o),u||(u=t),(n[u]||(n[u]=[])).push(o)}var t=this.DEFAULT_BUTTONS_SECTION,n={};return f(e)?r.call(this,e):i.each(e,r,this),n},_syncUIButtons:function(){this._uiSetButtons(this.get("buttons")),this._uiSetDefaultButton(this.get("defaultButton")),this._uiSetVisibleButtons(this.get("visible"))},_uiInsertButton:function(e,t,n){var r=d.CLASS_NAMES.button,i=this._getButtonContainer(t,!0),s=i.all("."+r);i.insertBefore(e,s.item(n)),this.setStdModContent(t,i,"after")},_uiRemoveButton:function(t,n,r){var i=e.stamp(t,this),s=this._buttonsHandles,o=s[i],u,a;o&&o.detach(),delete s[i],t.remove(),r||(r={}),r.preserveContent||(u=this._getButtonContainer(n),a=d.CLASS_NAMES.button,u&&u.all("."+a).isEmpty()&&(u.remove(),this._updateContentButtons(n)))},_uiSetButtons:function(e){var t=d.CLASS_NAMES.button,r=["header","body","footer"];n.each(r,function(n){var r=e[n]||[],i=r.length,s=this._getButtonContainer(n,i),o=!1,u,a,f,l;if(!s)return;u=s.all("."+t);for(a=0;a<i;a+=1)f=r[a],l=u.indexOf(f),l>-1?(u.splice(l,1),l!==a&&(s.insertBefore(f,a+1),o=!0)):(s.appendChild(f),o=!0);u.each(function(e){this._uiRemoveButton(e,n,{preserveContent:!0}),o=!0},this);if(i===0){s.remove(),this._updateContentButtons(n);return}o&&this.setStdModContent(n,s,"after")},this)},_uiSetDefaultButton:function(e,t){var n=d.CLASS_NAMES.primary;e&&e.addClass(n),t&&t.removeClass(n)},_uiSetVisibleButtons:function(e){if(!e)return;var t=this.get("defaultButton");t&&t.focus()},_unMapButton:function(e,t){var n=this._buttonsMap,r=this._getButtonName(e),i;r&&(n[r]===e&&delete 
n[r],i=t+":"+r,n[i]===e&&delete n[i]),this._defaultButton===e&&(this._defaultButton=null)},_updateDefaultButton:function(){var e=this._defaultButton;this.get("defaultButton")!==e&&this._set("defaultButton",e)},_updateContentButtons:function(e){var t=this.getStdModNode(e).get("childNodes");this.set(e+"Content",t.isEmpty()?null:t,{src:"buttons"})},_afterButtonsChange:function(e){var t=e.newVal,n=e.section,r=e.index,i=e.src,s;if(i==="add"){s=t[n][r],this._mapButton(s,n),this._updateDefaultButton(),this._uiInsertButton(s,n,r);return}if(i==="remove"){s=e.button,this._unMapButton(s,n),this._updateDefaultButton(),this._uiRemoveButton(s,n);return}this._mapButtons(t),this._updateDefaultButton(),this._uiSetButtons(t)},_afterContentChangeButtons:function(e){var t=e.src,n=e.stdModPosition,r=!n||n===u.REPLACE;r&&t!=="buttons"&&t!==o.UI_SRC&&this._uiSetButtons(this.get("buttons"))},_afterDefaultButtonChange:function(e){this._uiSetDefaultButton(e.newVal,e.prevVal)},_afterVisibleChangeButtons:function(e){this._uiSetVisibleButtons(e.newVal)}},e.WidgetButtons=d},"patched-v3.18.1",{requires:["button-plugin","cssbutton","widget-stdmod"]});
YUI.add("widget-modality",function(e,t){function g(e){}var n="widget",r="renderUI",i="bindUI",s="syncUI",o="boundingBox",u="visible",a="zIndex",f="Change",l=e.Lang.isBoolean,c=e.ClassNameManager.getClassName,h="maskShow",p="maskHide",d="clickoutside",v="focusoutside",m=function(){
/*! IS_POSITION_FIXED_SUPPORTED - Juriy Zaytsev (kangax) - http://yura.thinkweb2.com/cft/ */
;var t=e.config.doc,n=null,r,i;return t.createElement&&(r=t.createElement("div"),r&&r.style&&(r.style.position="fixed",r.style.top="10px",i=t.body,i&&i.appendChild&&i.removeChild&&(i.appendChild(r),n=r.offsetTop===10,i.removeChild(r)))),n}(),y="modal",b="mask",w={modal:c(n,y),mask:c(n,b)};g.ATTRS={maskNode:{getter:"_getMaskNode",readOnly:!0},modal:{value:!1,validator:l},focusOn:{valueFn:function(){return[{eventName:d},{eventName:v}]},validator:e.Lang.isArray}},g.CLASSES=w,g._MASK=null,g._GET_MASK=function(){var t=g._MASK,n=e.one("win");return t&&t.getDOMNode()!==null&&t.inDoc()?t:(t=e.Node.create("<div></div>").addClass(w.mask),g._MASK=t,m?t.setStyles({position:"fixed",width:"100%",height:"100%",top:"0",left:"0",display:"block"}):t.setStyles({position:"absolute",width:n.get("winWidth")+"px",height:n.get("winHeight")+"px",top:"0",left:"0",display:"block"}),t)},g.STACK=[],g.prototype={initializer:function(){e.after(this._renderUIModal,this,r),e.after(this._syncUIModal,this,s),e.after(this._bindUIModal,this,i)},destructor:function(){this._uiSetHostVisibleModal(!1)},_uiHandlesModal:null,_renderUIModal:function(){var e=this.get(o);this._repositionMask(this),e.addClass(w.modal)},_bindUIModal:function(){this.after(u+f,this._afterHostVisibleChangeModal),this.after(a+f,this._afterHostZIndexChangeModal),this.after("focusOnChange",this._afterFocusOnChange),(!m||e.UA.ios&&e.UA.ios<5||e.UA.android&&e.UA.android<3)&&e.one("win").on("scroll",this._resyncMask,this)},_syncUIModal:function(){this._uiSetHostVisibleModal(this.get(u))},_focus:function(){var e=this.get(o),t=e.get("tabIndex");e.set("tabIndex",t>=0?t:0),this.focus()},_blur:function(){this.blur()},_getMaskNode:function(){return g._GET_MASK()},_uiSetHostVisibleModal:function(t){var n=g.STACK,r=this.get("maskNode"),i=this.get("modal"),s,o;t?(e.Array.each(n,function(e){e._detachUIHandlesModal(),e._blur()}),n.unshift(this),this._repositionMask(this),this._uiSetHostZIndexModal(this.get(a)),i&&(r.show(),e.later(1,this,"_attachUIHandlesModal"),this._focus(),this._blockIFrameFocus())):(o=e.Array.indexOf(n,this),o>=0&&n.splice(o,1),this._detachUIHandlesModal(),this._blur(),n.length?(s=n[0],this._repositionMask(s),s._uiSetHostZIndexModal(s.get(a)),s.get("modal")&&(e.later(1,s,"_attachUIHandlesModal"),s._focus())):r.getStyle("display")==="block"&&r.hide(),this._unblockIFrameFocus())},_blockIFrameFocus:function(){var t=this.get(o);e.all("iframe").each(function(){t.contains(this)||(this.setAttribute("data-tabindex",this.get("tabIndex")),this.set("tabIndex",-1))})},_unblockIFrameFocus:function(){e.all("iframe").each(function(){this.hasAttribute("data-tabindex")&&(this.set("tabIndex",this.getAttribute("data-tabindex")),this.removeAttribute("data-tabindex"))})},_uiSetHostZIndexModal:function(e){this.get("modal")&&this.get("maskNode").setStyle(a,e||0)},_attachUIHandlesModal:function(){if(this._uiHandlesModal||g.STACK[0]!==this)return;var t=this.get(o),n=this.get("maskNode"),r=this.get("focusOn"),i=e.bind(this._focus,this),s=[],u,a,f;for(u=0,a=r.length;u<a;u++)f={},f.node=r[u].node,f.ev=r[u].eventName,f.keyCode=r[u].keyCode,!f.node&&!f.keyCode&&f.ev?s.push(t.on(f.ev,i)):f.node&&!f.keyCode&&f.ev?s.push(f.node.on(f.ev,i)):f.node&&f.keyCode&&f.ev&&s.push(f.node.on(f.ev,i,f.keyCode));m||s.push(e.one("win").on("scroll",e.bind(function(){n.setStyle("top",n.get("docScrollY"))},this))),this._uiHandlesModal=s},_detachUIHandlesModal:function(){e.each(this._uiHandlesModal,function(e){e.detach()}),this._uiHandlesModal=null},_afterHostVisibleChangeModal:function(e){this._uiSetHostVisibleModal(e.newVal)},_afterHostZIndexChangeModal:function(e){this._uiSetHostZIndexModal(e.newVal)},isNested:function(){var e=g.STACK.length,t=e>1?!0:!1;return t},_repositionMask:function(t){var n=this.get("modal"),r=t.get("modal"),i=this.get("maskNode"),s,u;if(n&&!r)i.remove(),this.fire(p);else if(!n&&r||n&&r)i.remove(),this.fire(p),s=t.get(o),u=s.get("parentNode")||e.one("body"),u.insert(i,u.get("firstChild")),this.fire(h)},_resyncMask:function(e){var t=e.currentTarget,n=t.get("docScrollX"),r=t.get("docScrollY"),i=t.get("innerWidth")||t.get("winWidth"),s=t.get("innerHeight")||t.get("winHeight"),o=this.get("maskNode");o.setStyles({top:r+"px",left:n+"px",width:i+"px",height:s+"px"})},_afterFocusOnChange:function(){this._detachUIHandlesModal(),this.get(u)&&this._attachUIHandlesModal()}},e.WidgetModality=g},"patched-v3.18.1",{requires:["base-build","event-outside","widget"],skinnable:!0});
YUI.add("button",function(e,t){function o(){o.superclass.constructor.apply(this,arguments)}function u(){o.superclass.constructor.apply(this,arguments)}var n=e.ButtonCore,r=n.CLASS_NAMES,i=n.ARIA_STATES,s=n.ARIA_ROLES;e.extend(o,e.Widget,{BOUNDING_TEMPLATE:n.prototype.TEMPLATE,CONTENT_TEMPLATE:null},{NAME:n.NAME,ATTRS:n.ATTRS,HTML_PARSER:{labelHTML:n._getHTMLFromNode,disabled:n._getDisabledFromNode},CLASS_NAMES:r}),e.mix(o.prototype,n.prototype),e.extend(u,o,{trigger:"click",selectedAttrName:"",initializer:function(e){var t=this,n=t.get("type"),r=n==="checkbox"?"checked":"pressed",i=e[r]||!1;t.addAttr(r,{value:i}),t.selectedAttrName=r},destructor:function(){delete this.selectedAttrName},bindUI:function(){var e=this,t=e.get("contentBox");u.superclass.bindUI.call(e),t.on(e.trigger,e.toggle,e),e.after(e.selectedAttrName+"Change",e._afterSelectedChange)},syncUI:function(){var e=this,t=e.get("contentBox"),n=e.get("type"),r=u.ARIA_ROLES,i=n==="checkbox"?r.CHECKBOX:r.TOGGLE,s=e.selectedAttrName;u.superclass.syncUI.call(e),t.set("role",i),e._uiSetSelected(e.get(s))},_afterSelectedChange:function(e){this._uiSetSelected(e.newVal)},_uiSetSelected:function(e){var t=this,n=t.get("contentBox"),r=u.ARIA_STATES,i=t.get("type"),s=i==="checkbox"?r.CHECKED:r.PRESSED;n.toggleClass(o.CLASS_NAMES.SELECTED,e),n.set(s,e)},toggle:function(){var e=this;e._set(e.selectedAttrName,!e.get(e.selectedAttrName))}},{NAME:"toggleButton",ATTRS:{type:{value:"toggle",writeOnce:"initOnly"}},HTML_PARSER:{checked:function(e){return e.hasClass(r.SELECTED)},pressed:function(e){return e.hasClass(r.SELECTED)}},ARIA_STATES:i,ARIA_ROLES:s,CLASS_NAMES:r}),e.Button=o,e.ToggleButton=u},"patched-v3.18.1",{requires:["button-core","cssbutton","widget"]});
YUI.add("button-group",function(e,t){function s(){s.superclass.constructor.apply(this,arguments)}var n="contentBox",r="click",i=e.ButtonCore.CLASS_NAMES;e.ButtonGroup=e.extend(s,e.Widget,{renderUI:function(){this.getButtons().plug(e.Plugin.Button)},bindUI:function(){var t=this,i=t.get(n);i.delegate(r,t._handleClick,e.ButtonGroup.BUTTON_SELECTOR,t),t.after("disabledChange",t._afterDisabledChange)},_afterDisabledChange:function(t){this.getButtons().each(t.newVal?e.ButtonCore.prototype.disable:e.ButtonCore.prototype.enable)},getButtons:function(){var t=this.get(n);return t.all(e.ButtonGroup.BUTTON_SELECTOR)},getSelectedButtons:function(){var e=this,t=[],n=e.getButtons(),r=s.CLASS_NAMES.SELECTED;return n.each(function(e){e.hasClass(r)&&t.push(e)}),t},getSelectedValues:function(){var t=this.getSelectedButtons(),n=[],r;return e.Array.each(t,function(e){r=e.getContent(),n.push(r)}),n},_handleClick:function(e){var t=this,n=e.target.ancestor("."+s.CLASS_NAMES.BUTTON,!0),r=t.get("type"),i=s.CLASS_NAMES.SELECTED,o=n.hasClass(i),u;r==="checkbox"?(n.toggleClass(i,!o),t.fire("selectionChange",{originEvent:e})):r==="radio"&&!o&&(u=t.getButtons(),u.removeClass(i),n.addClass(i),t.fire("selectionChange",{originEvent:e}))}},{NAME:"buttongroup",ATTRS:{type:{writeOnce:"initOnly",value:"radio"}},CLASS_NAMES:i,BUTTON_SELECTOR:"button, input[type=button], input[type=reset], input[type=submit], input[type=radio], input[type=checkbox]"})},"patched-v3.18.1",{requires:["button-plugin","cssbutton","widget"]});
YUI.add("aui-button-core",function(e,t){var n={BUTTON:e.getClassName("btn"),BUTTON_DEFAULT:e.getClassName("btn","default"),BUTTON_GROUP:e.getClassName("btn","group"),DISABLED:e.getClassName("disabled"),LABEL:e.getClassName("label"),PRIMARY:e.getClassName("btn","primary"),SELECTED:e.getClassName("active"),TOGGLE:e.getClassName("togglebtn")},r=function(e){e&&e.domType&&this._domTypeValidator(e.domType)&&this._setEarlyButtonDomType(e.domType)};r.ATTRS={cssClass:{validator:e.Lang.isString,value:""},discardDefaultButtonCssClasses:{validator:e.Lang.isBoolean,value:!1,writeOnce:!0},domType:{validator:"_domTypeValidator",writeOnce:!0},icon:{},iconElement:{valueFn:function(){return e.Node.create(this.ICON_TEMPLATE)}},iconAlign:{validator:e.Lang.isString,value:"left"}},r.HTML_PARSER={iconElement:"span"},r.getTypedButtonTemplate=function(t,n){return e.Lang.sub(t,{type:' type="'+n+'"'})},r.prototype={ICON_TEMPLATE:"<span></span>",TEMPLATE:"<button{type}></button>",initializer:function(){this.before(this.renderButtonExtUI,this,"renderUI"),this.after(this.syncButtonExtUI,this,"syncUI"),this.after({iconChange:this._afterIconChange,iconAlignChange:this._afterIconAlignChange})},renderButtonExtUI:function(){var e=this.get("cssClass");this.get("discardDefaultButtonCssClasses")||(e=[e,n.BUTTON_DEFAULT,n.BUTTON].join(" "),this.set("cssClass",e))},syncButtonExtUI:function(){this._uiSetIcon(this.get("icon")),this._setButtonRole()},_afterIconAlignChange:function(e){this._uiSetIconAlign(e.newVal)},_afterIconChange:function(e){this._uiSetIcon(e.newVal)},_domTypeValidator:function(e){return e.toLowerCase()==="button"||e.toLowerCase()==="submit"},_setButtonRole:function(){this.get("boundingBox").setAttribute("role","button")},_setEarlyButtonDomType:function(t){this.BOUNDING_TEMPLATE=e.ButtonExt.getTypedButtonTemplate(r.prototype.TEMPLATE,t)},_uiSetIcon:function(e){e&&(this.get("iconElement").set("className",e),this._uiSetIconAlign(this.get("iconAlign")))},_uiSetIconAlign:function(t){var n=this.getNode().one(e.ButtonExt.HTML_PARSER.iconElement);n||(n=this.get("iconElement")),e.Button.syncIconUI(this.get("boundingBox"),n,t)}},e.ButtonExt=r,e.ButtonCore.CLASS_NAMES=n;var i=e.Button;i.NAME="aui-button",i.CSS_PREFIX="aui-button",i.CLASS_NAMES=n,e.Button=e.Base.create(i.NAME,i,[r,e.WidgetCssClass,e.WidgetToggle],{},{getWidgetLazyConstructorFromNodeData:function(e){var t=e.getData("widgetConstructor")||{};return t.boundingBox=e,t.render=!0,t},hasWidgetLazyConstructorData:function(e){return e.getData("widgetConstructor")!==undefined},setWidgetLazyConstructorNodeData:function(e,t){e.setData("widgetConstructor",t)},syncIconUI:function(t,n,r){var i=0,s=e.config.doc.createTextNode(" ");r==="right"&&(i=null),t.insert(s,i),t.insert(n,i)}});var s=e.ToggleButton;s.NAME="togglebtn",s.CSS_PREFIX=n.TOGGLE,s.CLASS_NAMES=n,e.ToggleButton=e.Base.create(s.NAME,s,[r,e.WidgetCssClass],{},{});var o=e.ButtonGroup;o.NAME="btngroup",o.CSS_PREFIX=n.BUTTON_GROUP,o.CLASS_NAMES=n,e.mix(o.prototype,{CONTENT_TEMPLATE:null,initializer:function(){this.after("selectionChange",this._afterSelectionChange)},renderUI:function(){var t=this.get("boundingBox"),n=this.get("type");this.getButtons().each(function(t){!t.button&&!e.instanceOf(e.Widget.getByNode(t),e.Button)&&(t.addClass(e.ButtonCore.CLASS_NAMES.BUTTON_DEFAULT),t.setAttribute("role","option"),e.Button.hasWidgetLazyConstructorData(t)?(new e.Button(e.Button.getWidgetLazyConstructorFromNodeData(t)),e.Button.setWidgetLazyConstructorNodeData(t,null)):t.plug(e.Plugin.Button))}),t.setAttrs({"aria-multiselectable":n==="checkbox"?!0:!1,role:"listbox"}),this.syncAriaSelected(this.getButtons())},item:function(t){var n,r;return r=this.getButtons().item(t),n=e.Widget.getByNode(r),e.instanceOf(n,i)?n:r},select:function(e){return this.toggleSelect(e,!0)},syncAriaSelected:function(t){var n;t.each(function(t){n=t.hasClass(e.ButtonGroup.CLASS_NAMES.SELECTED),t.setAttribute("aria-selected",n)})},toggleSelect:function(t,n){var r=this.getButtons(),i=this,s=this.get("type");e.Lang.isUndefined(t)&&(t=r.getDOMNodes()),e.Lang.isArray(t)||(t=e.Array(t)),e.Array.each(t,function(t){e.Lang.isNumber(t)&&(t=r.item(t)),t=e.one(t);if(s==="checkbox")if(t.hasClass(e.ButtonGroup.CLASS_NAMES.SELECTED)){if(n===!0)return}else if(n===!1)return;i._handleClick({target:t})})},unselect:function(e){return this.toggleSelect(e,!1)},_afterSelectionChange:function(){this.syncAriaSelected(this.getButtons())}},!0)},"3.0.3-deprecated.62",{requires:["button","button-group","button-plugin","aui-component","aui-widget-cssclass","aui-widget-toggle"],skinnable:!0});
YUI.add("aui-toolbar",function(e,t){var n=e.Lang.isFunction,r=e.getClassName("btn"),i=e.getClassName("btn","default"),s=e.getClassName("btn","group"),o=e.getClassName("btn","group","checkbox"),u=e.getClassName("btn","group","radio"),a=e.getClassName("btn","group","vertical"),f=e.getClassName("btn","toolbar","button");e.Toolbar=e.Component.create({NAME:"btn-toolbar",ATTRS:{children:{validator:e.Lang.isArray},toolbarRenderer:{valueFn:function(){return new e.ToolbarRenderer}}},UI_ATTRS:["children"],isSupportedWidget:function(t){return e.instanceOf(t,e.Button)||e.instanceOf(t,e.ToggleButton)||e.instanceOf(t,e.ButtonGroup)},prototype:{CONTENT_TEMPLATE:null,TEMPLATES:{button:'<button class="aui-btn">{content}</button>',icon:'<span class="{cssClass}"></span>',group:'<div class="aui-btn-group {cssClass}"></div>'},bindUI:function(){var e=this.get("boundingBox");e.delegate(["click","mousemove","focus"],this._onUserInitInteraction,"."+f+", ."+r,this)},add:function(t,n){var r=this.get("boundingBox"),i=this.get("toolbarRenderer");r.insert(i.render(e.Array(t)),n)},clear:function(){var e=this.get("boundingBox");e.get("children").remove()},getEnclosingWidget:function(t){return e.instanceOf(t,e.EventFacade)&&(t=t.domEvent?t.domEvent.target:t.target),e.Widget.getByNode(t)},item:function(t){var n=this.get("boundingBox").get("children").item(t),r;return this._initEnclosingWidgetIfNeeded(n),r=this.getEnclosingWidget(n),e.Toolbar.isSupportedWidget(r)?r:n},remove:function(e){var t=this.get("boundingBox");return t.get("children").item(e).remove()},_initEnclosingWidgetIfNeeded:function(t,n){var i,l,c,h,p,d;if(!t||t.getData("enclosingWidgetInitialized"))return;t.setData("enclosingWidgetInitialized",!0),l=e.Widget.getByNode(t),c=e.instanceOf(l,e.Button),h=e.instanceOf(l,e.ButtonGroup);if(c||h)return;i=t.ancestor("."+f+", ."+r,!0),i&&(e.Button.hasWidgetLazyConstructorData(t)?(new e.Button(e.Button.getWidgetLazyConstructorFromNodeData(t)),e.Button.setWidgetLazyConstructorNodeData(t,null)):t.plug(e.Plugin.Button)),p=t.ancestor("."+s+", "+a,!0),p&&(p.hasClass(o)?d="checkbox":p.hasClass(u)&&(d="radio"),d&&new e.ButtonGroup({boundingBox:p,type:d,render:!0})),n&&n.type==="focus"&&t.focus()},_onUserInitInteraction:function(e){var t=e.currentTarget;this._initEnclosingWidgetIfNeeded(t,e)},_uiSetChildren:function(e){if(!e)return;this.clear(),this.add(e)}}});var l=function(){};l.prototype={TEMPLATES:{button:e.Button.prototype.TEMPLATE,group:'<div class="{cssClass}"></div>',icon:'<span class="{cssClass}"></span>'},RENDERER:{button:function(t){var n,s,o,u,a,l=t.value;a=l.domType||"button";if(e.instanceOf(l,e.Button)||e.instanceOf(l,e.ToggleButton))return l.get("boundingBox");if(e.UA.mobile&&e.UA.touchEnabled)return n=(new e.Button(l)).render(),l.title&&n.get("boundingBox").setAttribute("title",l.title),n.get("boundingBox");s=e.one(l.boundingBox||l.srcNode);if(s)try{s.setAttribute("type",a)}catch(c){}else s=e.Node.create(e.ButtonExt.getTypedButtonTemplate(this.TEMPLATES.button,a));return o=[f,l.cssClass],l.discardDefaultButtonCssClasses||o.push(r,i),s.addClass(o.join(" ")),l.id&&s.setAttribute("id",l.id),l.labelHTML&&s.append(l.labelHTML),l.label&&s.append(l.label),l.icon&&(u=e.Lang.sub(this.TEMPLATES.icon,{cssClass:l.icon}),e.Button.syncIconUI(s,u,l.iconAlign)),l.title&&s.setAttribute("title",l.title),e.Button.setWidgetLazyConstructorNodeData(s,l),s},group:function(t){var n,r=this,i=t.value,f,l=t.groupType,c=t.orientation,h=[];return e.instanceOf(i,e.ButtonGroup)?i.get("boundingBox"):(l==="checkbox"?h.push(o):l==="radio"&&h.push(u),c==="vertical"?h.push(a):h.push(s),f=e.Node.create(e.Lang.sub(r.TEMPLATES.group,{cssClass:h.join(" ")})),e.Array.each(i,function(t,s){n=r.renderNode(t),f.appendChild(n),e.Toolbar.isSupportedWidget(t)||e.Button.setWidgetLazyConstructorNodeData(n,i[s])}),f)}},render:function(t){var n,r=this;if(!t)return;return n=e.one(e.config.doc).invoke("createDocumentFragment"),e.Array.each(t,function(e){n.appendChild(r.renderNode(e))}),n},renderNode:function(t){var r,i;if(e.Toolbar.isSupportedWidget(t))return t.render().get("boundingBox");r=this._getChildRenderHints(t),i=this.RENDERER[r.renderer];if(n(i))return i.call(this,r)},_getChildRenderHints:function(t){var n=null,r="normal",i;return e.instanceOf(t,e.Button)?i="button":e.instanceOf(t,e.ButtonGroup)?i="group":e.Lang.isArray(t)?(i="group",n=e.Lang.isString(t[0])?t.shift():null,r=e.Lang.isString(t[0])?t.shift():"normal"):i="button",{groupType:n,orientation:r,renderer:i,value:t}}},e.ToolbarRenderer=l},"3.0.3-deprecated.62",{requires:["arraylist","arraylist-add","aui-component","aui-button-core"]});
YUI.add("aui-widget-toolbars",function(e,t){var n=e.WidgetStdMod,r=function(){};r.ATTRS={toolbars:{},toolbarPosition:{value:{body:n.AFTER,footer:n.AFTER,header:n.BEFORE}},toolbarCssClass:{value:{body:"",footer:"",header:""}}},r.prototype={toolbars:null,initializer:function(){var t=this;t.toolbars={},e.after(t._syncUIToolbars,t,"syncUI"),t.after("toolbarsChange",t._afterToolbarsChange)},addToolbar:function(t,n){var r=this;return n=r.getToolbarSection(n),r.removeToolbar(n),e.instanceOf(t,e.Toolbar)||(t=new e.Toolbar({cssClass:this.get("toolbarCssClass."+n)||"",children:t,render:r.getStdModNode(n,!0)})),t.addTarget(r),r.toolbars[n]=t,r.setStdModContent(n,t.get("boundingBox"),r.get("toolbarPosition."+n)),r._syncPrimaryButtonUI(),t},getToolbar:function(e){var t=this;return t.toolbars[t.getToolbarSection(e)]},getToolbarSection:function(e){return e||n.FOOTER},removeToolbar:function(e){var t=this,n=t.toolbars[t.getToolbarSection(e)];return n&&n.destroy(),n},_syncPrimaryButtonUI:function(){var t=this,n=t.get("boundingBox").one("."+e.ButtonCore.CLASS_NAMES.PRIMARY);n&&n.focus().focus()},_syncUIToolbars:function(){var e=this;e._uiSetToolbars(this.get("toolbars"))},_uiSetToolbars:function(t){var n=this;e.each(t,e.bind(n.addToolbar,n))}},e.WidgetToolbars=r},"3.0.3-deprecated.62",{requires:["widget-stdmod","aui-toolbar"]});
YUI.add("aui-popover",function(e,t){var n=e.WidgetStdMod,r=e.getClassName,i=r("arrow"),s=r("popover-content"),o=r("popover-footer"),u=r("popover-title");e.Popover=e.Base.create("popover",e.Widget,[e.WidgetCssClass,e.WidgetPosition,e.WidgetStdMod,e.WidgetToggle,e.WidgetAutohide,e.WidgetToolbars,e.WidgetModality,e.WidgetPositionAlign,e.WidgetPositionAlignSuggestion,e.WidgetPositionConstrain,e.WidgetStack,e.WidgetTransition,e.WidgetTrigger],{initializer:function(){var t=this;e.after(t._afterRenderBoxClassNames,t,"_renderBoxClassNames"),this._resizeHandle=e.on("windowresize",e.bind(this._onResize,this))},destructor:function(){this._resizeHandle.detach()},renderUI:function(){var t=this,n=t.get("boundingBox");n.append(e.Popover.TEMPLATES.arrow),t.suggestAlignment()},_afterRenderBoxClassNames:function(){var e=this,t=e.get("contentBox");t.removeClass(e.getClassName("content"))},_onResize:function(){this.suggestAlignment()},_uiSetVisible:function(e){var t=this,n=t.get("boundingBox");t._widgetUiSetVisible(e),n.setStyle("display",e?"block":"none"),e&&t.suggestAlignment()},_getStdModTemplate:function(t){return e.Node.create(e.Popover.TEMPLATES[t],this._stdModNode.get("ownerDocument"))},_widgetUiSetVisible:e.Widget.prototype._uiSetVisible},{CSS_PREFIX:r("popover"),ATTRS:{triggerToggleEvent:{value:"click"}},TEMPLATES:{header:'<div class="'+n.SECTION_CLASS_NAMES[n.HEADER]+" "+u+'"></div>',body:'<div class="'+n.SECTION_CLASS_NAMES[n.BODY]+" "+s+'"></div>',footer:'<div class="'+n.SECTION_CLASS_NAMES[n.FOOTER]+" "+o+'"></div>',arrow:'<div class="'+i+'"></div>'}})},"3.0.3-deprecated.62",{requires:["event-resize","widget","widget-autohide","widget-buttons","widget-modality","widget-position","widget-position-align","widget-position-constrain","widget-stack","widget-stdmod","aui-classnamemanager","aui-widget-cssclass","aui-widget-toggle","aui-widget-toolbars","aui-widget-transition","aui-widget-trigger","aui-widget-position-align-suggestion","aui-component","aui-node-base"],skinnable:!0});
