YUI.add("base-core",function(n,t){var h=n.Object,e=n.Lang,y="initializer",a=Object.prototype.constructor,u="destructor",s=n.AttributeCore,_=function(t,s,i){for(var r in s)i[r]&&(t[r]=s[r]);return t};function i(t){this._BaseInvoked||(this._BaseInvoked=!0,this._initBase(t))}i._ATTR_CFG=s._ATTR_CFG.concat("cloneDefaultValue"),i._NON_ATTRS_CFG=["plugins"],i.NAME="baseCore",i.ATTRS={initialized:{readOnly:!0,value:!1},destroyed:{readOnly:!0,value:!1}},i.modifyAttrs=function(t,s){var i,r,e;if("function"!=typeof t&&(s=t,t=this),i=t.ATTRS||(t.ATTRS={}),s)for(e in t._CACHED_CLASS_DATA=null,s)s.hasOwnProperty(e)&&(r=i[e]||(i[e]={}),n.mix(r,s[e],!0))},i.prototype={_initBase:function(t){n.stamp(this),this._initAttribute(t);var s=n.Plugin&&n.Plugin.Host;this._initPlugins&&s&&s.call(this),!1!==this._lazyAddAttrs&&(this._lazyAddAttrs=!0),this.name=this.constructor.NAME,this.init.apply(this,arguments)},_initAttribute:function(){s.call(this)},init:function(t){return this._baseInit(t),this},_baseInit:function(t){this._initHierarchy(t),this._initPlugins&&this._initPlugins(t),this._set("initialized",!0)},destroy:function(){return this._baseDestroy(),this},_baseDestroy:function(){this._destroyPlugins&&this._destroyPlugins(),this._destroyHierarchy(),this._set("destroyed",!0)},_getClasses:function(){return this._classes||this._initHierarchyData(),this._classes},_getAttrCfgs:function(){return this._attrs||this._initHierarchyData(),this._attrs},_getInstanceAttrCfgs:function(t){var s,i,r,e,n,a,o={},l=t._subAttrs,u=this._attrCfgHash();for(n in t)if(t.hasOwnProperty(n)&&"_subAttrs"!==n&&(a=t[n],(a=(s=o[n]=_({},a,u)).value)&&"object"==typeof a&&this._cloneDefaultValue(n,s),l)&&l.hasOwnProperty(n))for(e in r=t._subAttrs[n])(i=r[e]).path&&h.setValue(s.value,i.path,i.value);return o},_filterAdHocAttrs:function(t,s){var i,r,e=this._nonAttrs;if(s)for(r in i={},s)t[r]||e[r]||!s.hasOwnProperty(r)||(i[r]={value:s[r]});return i},_initHierarchyData:function(){var t,s,i,r,e,n=this.constructor,a=n._CACHED_CLASS_DATA,o=!n._ATTR_CFG_HASH,l={},u=[],h=[],_=n;if(!a){for(;_;){if((u[u.length]=_).ATTRS&&(h[h.length]=_.ATTRS),o&&(r=r||{},i=_._ATTR_CFG))for(t=0,s=i.length;t<s;t+=1)r[i[t]]=!0;if(e=_._NON_ATTRS_CFG)for(t=0,s=e.length;t<s;t++)l[e[t]]=!0;_=_.superclass?_.superclass.constructor:null}o&&(n._ATTR_CFG_HASH=r),a=n._CACHED_CLASS_DATA={classes:u,nonAttrs:l,attrs:this._aggregateAttrs(h)}}this._classes=a.classes,this._attrs=a.attrs,this._nonAttrs=a.nonAttrs},_attrCfgHash:function(){return this.constructor._ATTR_CFG_HASH},_cloneDefaultValue:function(t,s){var i=s.value,r=s.cloneDefaultValue;"deep"===r||!0===r?s.value=n.clone(i):"shallow"===r?s.value=n.merge(i):r!==undefined||a!==i.constructor&&!e.isArray(i)||(s.value=n.clone(i))},_aggregateAttrs:function(t){var s,i,r,e,n,a,o,l=this._attrCfgHash(),u={};if(t)for(a=t.length-1;0<=a;--a)for(s in i=t[a])i.hasOwnProperty(s)&&(e=_({},i[s],l),n=null,o=u[s=-1!==s.indexOf(".")?(n=s.split(".")).shift():s],n&&o&&o.value?((r=(r=u._subAttrs)||(u._subAttrs={}))[s]||(r[s]={}),r[s][n.join(".")]={value:e.value,path:n}):n||(o?(o.valueFn&&"value"in e&&(o.valueFn=null),_(o,e,l)):u[s]=e));return u},_initHierarchy:function(t){for(var s,i,r,e,n,a,o,l,u,h=this._lazyAddAttrs,_=[],c=this._getClasses(),A=this._getAttrCfgs(),f=c.length-1;0<=f;f--)if(i=(s=c[f]).prototype,l=s._yuibuild&&s._yuibuild.exts,i.hasOwnProperty(y)&&(_[_.length]=i.initializer),l)for(n=0,a=l.length;n<a;n++)(o=l[n]).apply(this,arguments),(o=o.prototype).hasOwnProperty(y)&&(_[_.length]=o.initializer);for(u=this._getInstanceAttrCfgs(A),this._preAddAttrs&&this._preAddAttrs(u,t,h),this._allowAdHocAttrs&&this.addAttrs(this._filterAdHocAttrs(A,t),t,h),this.addAttrs(u,t,h),r=0,e=_.length;r<e;r++)_[r].apply(this,arguments)},_destroyHierarchy:function(){for(var t,s,i,r,e,n,a=this._getClasses(),o=0,l=a.length;o<l;o++){if(s=(t=a[o]).prototype,e=t._yuibuild&&t._yuibuild.exts)for(i=0,r=e.length;i<r;i++)(n=e[i].prototype).hasOwnProperty(u)&&n.destructor.apply(this,arguments);s.hasOwnProperty(u)&&s.destructor.apply(this,arguments)}},toString:function(){return this.name+"["+n.stamp(this,!0)+"]"}},n.mix(i,s,!1,null,1),n.BaseCore=i.prototype.constructor=i},"patched-v3.18.7",{requires:["attribute-core"]});
YUI.add("base-observable",function(t,e){var n=t.Lang,i="destroy",r=t.AttributeObservable,s=t.BaseCore;function a(){}a._ATTR_CFG=r._ATTR_CFG.concat(),a._NON_ATTRS_CFG=["on","after","bubbleTargets"],a.prototype={_initAttribute:function(){s.prototype._initAttribute.apply(this,arguments),r.call(this),this._eventPrefix=this.constructor.EVENT_PREFIX||this.constructor.NAME,this._yuievt.config.prefix=this._eventPrefix},init:function(t){var e=this._getFullType("init"),i=this._publish(e);return i.emitFacade=!0,i.fireOnce=!0,i.defaultTargetOnly=!0,i.defaultFn=this._defInitFn,this._preInitEventCfg(t),i._hasPotentialSubscribers()?this.fire(e,{cfg:t}):(this._baseInit(t),i.fired=!0,i.firedWith=[{cfg:t}]),this},_preInitEventCfg:function(t){t&&(t.on&&this.on(t.on),t.after)&&this.after(t.after);var e,i,r,s=t&&"bubbleTargets"in t;if(s||"_bubbleTargets"in this)if(r=s?t&&t.bubbleTargets:this._bubbleTargets,n.isArray(r))for(e=0,i=r.length;e<i;e++)this.addTarget(r[e]);else r&&this.addTarget(r)},destroy:function(){return this.publish(i,{fireOnce:!0,defaultTargetOnly:!0,defaultFn:this._defDestroyFn}),this.fire(i),this.detachAll(),this},_defInitFn:function(t){this._baseInit(t.cfg)},_defDestroyFn:function(t){this._baseDestroy(t.cfg)}},t.mix(a,r,!1,null,1),t.BaseObservable=a},"patched-v3.18.7",{requires:["attribute-observable","base-core"]});
YUI.add("base-base",function(t,e){var a=t.AttributeCore,s=t.AttributeExtras,r=t.BaseCore,T=t.BaseObservable;function o(){r.apply(this,arguments),T.apply(this,arguments),s.apply(this,arguments)}o._ATTR_CFG=r._ATTR_CFG.concat(T._ATTR_CFG),o._NON_ATTRS_CFG=r._NON_ATTRS_CFG.concat(T._NON_ATTRS_CFG),o.NAME="base",o.ATTRS=a.protectAttrs(r.ATTRS),o.modifyAttrs=r.modifyAttrs,t.mix(o,r,!1,null,1),t.mix(o,s,!1,null,1),t.mix(o,T,!0,null,1),t.Base=o.prototype.constructor=o},"patched-v3.18.7",{requires:["attribute-base","base-core","base-observable"]});
YUI.add("base-pluginhost",function(u,l){var n=u.Base,s=u.Plugin.Host;u.mix(n,s,!1,null,1),n.plug=s.plug,n.unplug=s.unplug},"patched-v3.18.7",{requires:["base-base","pluginhost"]});
YUI.add("event-focus",function(v,t){var e,n,s=v.Event,o=v.Lang.isString,y=v.Array.indexOf,u=(e=!1,(n=v.config.doc)&&((n=n.createElement("p")).setAttribute("onbeforeactivate",";"),e=n.onbeforeactivate!==undefined),e);function a(a,r,f){var b="_"+a+"Notifiers";v.Event.define(a,{_useActivate:u,_attach:function(t,e,n){return v.DOM.isWindow(t)?s._attach([a,function(t){e.fire(t)},t]):s._attach([r,this._proxy,t,this,e,n],{capture:!0})},_proxy:function(t,e,n){var a=t.target,r=t.currentTarget,o=a.getData(b),c=v.stamp(r._node),i=u||a!==r;e.currentTarget=n?a:r,e.container=n?r:null,o?i=!0:(a.setData(b,o={}),i&&(s._attach([f,this._notify,a._node]).sub.once=!0)),o[c]||(o[c]=[]),o[c].push(e),i||this._notify(t)},_notify:function(t,e){var n,a,r,o,c,i,f,s,u,d=t.currentTarget,h=d.getData(b),l=d.ancestors(),p=d.get("ownerDocument"),g=[],_=h?v.Object.keys(h).length:0;for(d.clearData(b),l.push(d),p&&l.unshift(p),l._nodes.reverse(),_&&(d=_,l.some(function(t){var e,n,t=v.stamp(t),a=h[t];if(a)for(_--,e=0,n=a.length;e<n;++e)a[e].handle.sub.filter&&g.push(a[e]);return!_}),_=d);_&&(n=l.shift());){if(o=v.stamp(n),a=h[o]){for(i=0,f=a.length;i<f&&(s=(r=a[i]).handle.sub,c=!0,t.currentTarget=n,s.filter&&(c=s.filter.apply(n,[n,t].concat(s.args||[])),g.splice(y(g,r),1)),c&&(t.container=r.container,u=r.fire(t)),!1!==u&&2!==t.stopped);++i);delete a[o],_--}if(2!==t.stopped)for(i=0,f=g.length;i<f&&((s=(r=g[i]).handle.sub).filter.apply(n,[n,t].concat(s.args||[]))&&(t.container=r.container,t.currentTarget=n,u=r.fire(t)),!(!1===u||2===t.stopped||t.stopped&&g[i+1]&&g[i+1].container!==r.container));++i);if(t.stopped)break}},on:function(t,e,n){e.handle=this._attach(t._node,n)},detach:function(t,e){e.handle.detach()},delegate:function(e,t,n,a){o(a)&&(t.filter=function(t){return v.Selector.test(t._node,a,e===t?null:e._node)}),t.handle=this._attach(e._node,n,!0)},detachDelegate:function(t,e){e.handle.detach()}},!0)}u?(a("focus","beforeactivate","focusin"),a("blur","beforedeactivate","focusout")):(a("focus","focus","focus"),a("blur","blur","blur"))},"patched-v3.18.7",{requires:["event-synthetic"]});
YUI.add("widget-base",function(r,t){var i,n,s=r.Lang,o=r.Node,e=r.ClassNameManager,u=e.getClassName,a=r.cached(function(t){return t.substring(0,1).toUpperCase()+t.substring(1)}),c="content",h="visible",l="disabled",d="focused",_="width",g="height",f="boundingBox",N="contentBox",m="ownerDocument",v="srcNode",C="tabIndex",b="id",I="render",T="rendered",p="strings",D="<div></div>",E="loading",S="_uiSet",U=function(){},B=!0,y=!1,A={},F=[h,l,g,_,d,C],O=r.UA.webkit,x={};function w(t){var e,s=this,n=s.constructor;s._strs={},s._cssPrefix=n.CSS_PREFIX||u(n.NAME.toLowerCase()),w.superclass.constructor.call(s,t=t||{}),(n=s.get(I))&&s.render(e=n!==B?n:e)}w.NAME="widget",n=w.UI_SRC="ui",(w.ATTRS=A).id={valueFn:"_guid",writeOnce:B},A[T]={value:y,readOnly:B},A[f]={valueFn:"_defaultBB",setter:"_setBB",writeOnce:B},A[N]={valueFn:"_defaultCB",setter:"_setCB",writeOnce:B},A[C]={value:null,validator:"_validTabIndex"},A[d]={value:y,readOnly:B},A[l]={value:y},A[h]={value:B},A[g]={value:""},A[_]={value:""},A[p]={value:{},setter:"_strSetter",getter:"_strGetter"},A[I]={value:y,writeOnce:B},w.CSS_PREFIX=u(w.NAME.toLowerCase()),i=w.getClassName=function(){return u.apply(e,[w.CSS_PREFIX].concat(r.Array(arguments),!0))},w.getByNode=function(t){var e,s=i();return(e=(t=(t=o.one(t))&&t.ancestor("."+s,!0))?x[r.stamp(t,!0)]:e)||null},r.extend(w,r.Base,{getClassName:function(){return u.apply(e,[this._cssPrefix].concat(r.Array(arguments),!0))},initializer:function(t){var e=this.get(f);e instanceof o&&this._mapInstance(r.stamp(e))},_mapInstance:function(t){x[t]=this},destructor:function(){var t=this.get(f);t instanceof o&&((t=r.stamp(t,!0))in x&&delete x[t],this._destroyBox())},destroy:function(t){return this._destroyAllNodes=t,w.superclass.destroy.apply(this)},_destroyBox:function(){var t=this.get(f),e=this.get(N),s=this._destroyAllNodes,n=t&&t.compareTo(e);this.UI_EVENTS&&this._destroyUIEvents(),this._unbindUI(t),e&&(s&&e.empty(),e.remove(B)),n||(s&&t.empty(),t.remove(B))},render:function(t){return this.get("destroyed")||this.get(T)||(this.publish(I,{queuable:y,fireOnce:B,defaultTargetOnly:B,defaultFn:this._defRenderFn}),this.fire(I,{parentNode:t?o.one(t):null})),this},_defRenderFn:function(t){this._parentNode=t.parentNode,this.renderer(),this._set(T,B),this._removeLoadingClassNames()},renderer:function(){var t=this;t._renderUI(),t.renderUI(),t._bindUI(),t.bindUI(),t._syncUI(),t.syncUI()},bindUI:U,renderUI:U,syncUI:U,hide:function(){return this.set(h,y)},show:function(){return this.set(h,B)},focus:function(){return this._set(d,B)},blur:function(){return this._set(d,y)},enable:function(){return this.set(l,y)},disable:function(){return this.set(l,B)},_uiSizeCB:function(t){this.get(N).toggleClass(i(c,"expanded"),t)},_renderBox:function(t){var e=this.get(N),s=this.get(f),n=this.get(v),i=this.DEF_PARENT_NODE,r=n&&n.get(m)||s.get(m)||e.get(m);!n||n.compareTo(e)||e.inDoc(r)||n.replace(e),s.compareTo(e.get("parentNode"))||s.compareTo(e)||(e.inDoc(r)&&e.replace(s),s.appendChild(e)),(t=t||i&&o.one(i))?t.appendChild(s):s.inDoc(r)||o.one("body").insert(s,0)},_setBB:function(t){return this._setBox(this.get(b),t,this.BOUNDING_TEMPLATE,!0)},_setCB:function(t){return null===this.CONTENT_TEMPLATE?this.get(f):this._setBox(null,t,this.CONTENT_TEMPLATE,!1)},_defaultBB:function(){var t=this.get(v),e=null===this.CONTENT_TEMPLATE;return t&&e?t:null},_defaultCB:function(t){return this.get(v)||null},_setBox:function(t,e,s,n){return(e=o.one(e))||(e=o.create(s),n?this._bbFromTemplate=!0:this._cbFromTemplate=!0),e.get(b)||e.set(b,t||r.guid()),e},_renderUI:function(){this._renderBoxClassNames(),this._renderBox(this._parentNode)},_renderBoxClassNames:function(){var t,e,s=this._getClasses(),n=this.get(f);for(n.addClass(i()),e=s.length-3;0<=e;e--)t=s[e],n.addClass(t.CSS_PREFIX||u(t.NAME.toLowerCase()));this.get(N).addClass(this.getClassName(c))},_removeLoadingClassNames:function(){var t=this.get(f),e=this.get(N),s=this.getClassName(E),n=i(E);t.removeClass(n).removeClass(s),e.removeClass(n).removeClass(s)},_bindUI:function(){this._bindAttrUI(this._UI_ATTRS.BIND),this._bindDOM()},_unbindUI:function(t){this._unbindDOM(t)},_bindDOM:function(){var t=this.get(f).get(m),e=w._hDocFocus;e||((e=w._hDocFocus=t.on("focus",this._onDocFocus,this)).listeners={count:0}),e.listeners[r.stamp(this,!0)]=!0,e.listeners.count++,O&&(this._hDocMouseDown=t.on("mousedown",this._onDocMouseDown,this))},_unbindDOM:function(t){var e,s=w._hDocFocus,n=r.stamp(this,!0),i=this._hDocMouseDown;s&&((e=s.listeners)[n]&&(delete e[n],e.count--),0===e.count)&&(s.detach(),w._hDocFocus=null),O&&i&&i.detach()},_syncUI:function(){this._syncAttrUI(this._UI_ATTRS.SYNC)},_uiSetHeight:function(t){this._uiSetDim(g,t),this._uiSizeCB(""!==t&&"auto"!==t)},_uiSetWidth:function(t){this._uiSetDim(_,t)},_uiSetDim:function(t,e){this.get(f).setStyle(t,s.isNumber(e)?e+this.DEF_UNIT:e)},_uiSetVisible:function(t){this.get(f).toggleClass(this.getClassName("hidden"),!t)},_uiSetDisabled:function(t){this.get(f).toggleClass(this.getClassName(l),t)},_uiSetFocused:function(t,e){var s=this.get(f);s.toggleClass(this.getClassName(d),t),e!==n&&(t?s.focus():s.blur())},_uiSetTabIndex:function(t){var e=this.get(f);s.isNumber(t)?e.set(C,t):e.removeAttribute(C)},_onDocMouseDown:function(t){this._domFocus&&this._onDocFocus(t)},_onDocFocus:function(t){var t=w.getByNode(t.target),e=w._active;e&&e!==t&&(e._domFocus=!1,e._set(d,!1,{src:n}),w._active=null),t&&(t._domFocus=!0,t._set(d,!0,{src:n}),w._active=t)},toString:function(){return this.name+"["+this.get(b)+"]"},DEF_UNIT:"px",DEF_PARENT_NODE:null,CONTENT_TEMPLATE:D,BOUNDING_TEMPLATE:D,_guid:function(){return r.guid()},_validTabIndex:function(t){return s.isNumber(t)||s.isNull(t)},_bindAttrUI:function(t){for(var e=t.length,s=0;s<e;s++)this.after(t[s]+"Change",this._setAttrUI)},_syncAttrUI:function(t){for(var e,s=t.length,n=0;n<s;n++)e=t[n],this[S+a(e)](this.get(e))},_setAttrUI:function(t){t.target===this&&this[S+a(t.attrName)](t.newVal,t.src)},_strSetter:function(t){return r.merge(
this.get(p),t)},getString:function(t){return this.get(p)[t]},getStrings:function(){return this.get(p)},_UI_ATTRS:{BIND:F,SYNC:F}}),r.Widget=w},"patched-v3.18.7",{requires:["attribute","base-base","base-pluginhost","classnamemanager","event-focus","node-base","node-style"],skinnable:!0});
YUI.add("aui-widget-cssclass",function(e,t){function n(){}n.ATTRS={cssClass:{}},n.CSS_CLASS_CONTENT_SUFFIX="-content",n.prototype={initializer:function(){var e=this;e._uiSetCssClass(e.get("cssClass")),e.after("cssClassChange",e._afterCssClassChange)},_afterCssClassChange:function(e){var t=this,r;r=e.prevVal,r&&(t.get("boundingBox").removeClass(r),t.get("contentBox").removeClass(r+n.CSS_CLASS_CONTENT_SUFFIX)),t._uiSetCssClass(e.newVal)},_uiSetCssClass:function(e){var t=this;e&&(t.get("boundingBox").addClass(e),t.get("contentBox").addClass(e+n.CSS_CLASS_CONTENT_SUFFIX))}},e.WidgetCssClass=n},"3.1.0-deprecated.112",{requires:["widget-base"]});

YUI.add("aui-widget-toggle",function(e,t){function n(){}n.prototype={toggle:function(t){var n=this;return e.Lang.isBoolean(t)||(t=!n.get("visible")),n.set("visible",t)}},e.WidgetToggle=n},"3.1.0-deprecated.112");

YUI.add("base-build",function(p,t){var u,n=p.BaseCore,y=p.Base,o=p.Lang,A="initializer",C="destructor",e=["_PLUG","_UNPLUG"];function i(t,e,r){r[t]&&(e[t]=(e[t]||[]).concat(r[t]))}function r(t,e,r){r._ATTR_CFG&&(e._ATTR_CFG_HASH=null,i.apply(null,arguments))}function s(t,e,r){n.modifyAttrs(e,r.ATTRS)}y._build=function(t,e,r,n,i,u){for(var s,a,c,o,l=y._build,g=l._ctor(e,u),_=l._cfg(e,u,r),f=l._mixCust,u=g._yuibuild.dynamic,m=0,d=r.length;m<d;m++)c=(a=(s=r[m]).prototype)[A],o=a[C],delete a[A],delete a[C],p.mix(g,s,!0,null,1),f(g,s,_),c&&(a[A]=c),o&&(a[C]=o),g._yuibuild.exts.push(s);return n&&p.mix(g.prototype,n,!0),i&&(p.mix(g,l._clean(i,_),!0),f(g,i,_)),g.prototype.hasImpl=l._impl,u&&(g.NAME=t,(g.prototype.constructor=g).modifyAttrs=e.modifyAttrs),g},u=y._build,p.mix(u,{_mixCust:function(t,e,r){var n,i,u,s,a,c;if(r&&(n=r.aggregates,i=r.custom,u=r.statics),u&&p.mix(t,e,!0,u),n)for(c=0,a=n.length;c<a;c++)s=n[c],!t.hasOwnProperty(s)&&e.hasOwnProperty(s)&&(t[s]=o.isArray(e[s])?[]:{}),p.aggregate(t,e,!0,[s]);if(i)for(c in i)i.hasOwnProperty(c)&&i[c](c,t,e)},_tmpl:function(t){function e(){e.superclass.constructor.apply(this,arguments)}return p.extend(e,t),e},_impl:function(t){for(var e,r,n,i,u=this._getClasses(),s=0,a=u.length;s<a;s++)if((e=u[s])._yuibuild)for(n=(r=e._yuibuild.exts).length,i=0;i<n;i++)if(r[i]===t)return!0;return!1},_ctor:function(t,e){var e=!e||!1!==e.dynamic,t=e?u._tmpl(t):t,r=t._yuibuild;return(r=r||(t._yuibuild={})).id=r.id||null,r.exts=r.exts||[],r.dynamic=e,t},_cfg:function(t,e,r){for(var n,i,u,s=[],a={},c=[],o=e&&e.aggregates,l=e&&e.custom,g=e&&e.statics,_=t;_&&_.prototype;)(n=_._buildCfg)&&(n.aggregates&&(s=s.concat(n.aggregates)),n.custom&&p.mix(a,n.custom,!0),n.statics)&&(c=c.concat(n.statics)),_=_.superclass?_.superclass.constructor:null;if(r)for(i=0,u=r.length;i<u;i++)(n=(_=r[i])._buildCfg)&&(n.aggregates&&(s=s.concat(n.aggregates)),n.custom&&p.mix(a,n.custom,!0),n.statics)&&(c=c.concat(n.statics));return o&&(s=s.concat(o)),l&&p.mix(a,e.cfgBuild,!0),{aggregates:s,custom:a,statics:c=g?c.concat(g):c}},_clean:function(t,e){var r,n,i,u=p.merge(t),s=e.aggregates;for(r in e.custom)u.hasOwnProperty(r)&&delete u[r];for(n=0,i=s.length;n<i;n++)r=s[n],u.hasOwnProperty(r)&&delete u[r];return u}}),y.build=function(t,e,r,n){return u(t,e,r,null,null,n)},y.create=function(t,e,r,n,i){return u(t,e,r,n,i)},y.mix=function(t,e){return t._CACHED_CLASS_DATA&&(t._CACHED_CLASS_DATA=null),u(null,t,e,null,null,{dynamic:!1})},n._buildCfg={aggregates:e.concat(),custom:{ATTRS:s,_ATTR_CFG:r,_NON_ATTRS_CFG:i}},y._buildCfg={aggregates:e.concat(),custom:{ATTRS:s,_ATTR_CFG:r,_NON_ATTRS_CFG:i}}},"patched-v3.18.7",{requires:["base-base"]});
YUI.add("aui-component",function(e,t){var n=e.Lang,r=e.Array,i=function(e,t){return(e||[]).concat(t||[])},s={},o=e.config.win.Object.prototype.constructor,u=e.ClassNameManager,a=u.getClassName,f=e.Widget.getClassName,l=e.getClassName,c=l("hide"),h=e.Base.create("component",e.Widget,[e.WidgetCssClass,e.WidgetToggle],{initializer:function(e){var t=this;t._originalConfig=e,t._setRender(e),s[t.get("id")]=t},clone:function(t){var n=this;return t=t||{},t.id=t.id||e.guid(),e.mix(t,n._originalConfig),new n.constructor(t)},_uiSetVisible:function(e){var t=this,n=h.superclass._uiSetVisible;n&&n.apply(t,arguments);var r=t.get("hideClass");if(r!==!1){var i=t.get("boundingBox");i.toggleClass(r||c,!e)}},_renderBoxClassNames:function(){var e=this,t=e.get("boundingBox")._node,n=e.get("contentBox")._node,i=t.className,s=n.className,o=i?i.split(" "):[],u=s?s.split(" "):[],c=e._getClasses(),h=c.length,p=h-4,d,v;o.push(f());for(var m=h-3;m>=0;m--)d=c[m],v=String(d.NAME).toLowerCase(),o.push(d.CSS_PREFIX||a(v)),m<=p&&(v=v,u.push(l(v,"content")));u.push(e.getClassName("content")),t===n?s=r.dedupe(u.concat(o)).join(" "):(t.className=r.dedupe(o).join(" "),s=r.dedupe(u).join(" ")),n.className=s},_renderInteraction:function(e,t){var n=this;n.render(t);var r=n._renderHandles;for(var i=r.length-1;i>=0;i--){var s=r.pop();s.detach()}},_setRender:function(t){var r=this,i=t&&t.render;if(i&&i.constructor===o){var s=i.eventType||"mousemove",u=i.parentNode,a=i.selector||u;if(a){r._renderHandles=[];var f=r._renderHandles;n.isArray(s)||(s=[s]);var l=e.rbind(r._renderInteraction,r,u),c=e.one(a);for(var h=s.length-1;h>=0;h--)f[h]=c.once(s[h],l);delete t.render}}}},{ATTRS:{useARIA:{writeOnce:!0,value:!1,validator:n.isBoolean},hideClass:{value:c},render:{value:!1,writeOnce:!0}}});h._INSTANCES=s,h.getById=function(e){return s[e]};var p=e.Widget.prototype._UI_ATTRS;h._applyCssPrefix=function(t){return t&&t.NAME&&!("CSS_PREFIX"in t)&&(t.CSS_PREFIX=e.getClassName(String(t.NAME).toLowerCase())),t},h.create=function(t){t=t||{};var r=t.EXTENDS||e.Component,s=t.constructor;e.Object.owns(t,"constructor")||(s=function(){s.superclass.constructor.apply(this,arguments)});var o=t.prototype;if(o)if(t.UI_ATTRS||t.BIND_UI_ATTRS||t.SYNC_UI_ATTRS){var u=i(t.BIND_UI_ATTRS,t.UI_ATTRS),a=i(t.SYNC_UI_ATTRS,t.UI_ATTRS),f=r.prototype,l=f&&f._UI_ATTRS||p;u=i(l.BIND,u),a=i(l.SYNC,a);var c=o._UI_ATTRS;c||(c=o._UI_ATTRS={}),u.length&&(c.BIND=u),a.length&&(c.SYNC=a)}var d=t.AUGMENTS;return d&&!n.isArray(d)&&(d=[d]),e.mix(s,t),delete s.prototype,e.extend(s,r,o),d&&(s=e.Base.build(t.NAME,s,d,{dynamic:!1})),h._applyCssPrefix(s),s},h.CSS_PREFIX=l("component");var d=e.Base;h.build=function(){var e=d.build.apply(d,arguments);return h._applyCssPrefix(e),e},e.Component=h},"3.1.0-deprecated.112",{requires:["aui-classnamemanager","aui-widget-cssclass","aui-widget-toggle","base-build","widget-base"]});

YUI.add("cookie",function(n,e){var t=n.Lang,o=n.Object,g=null,S=t.isString,r=t.isObject,k=t.isUndefined,s=t.isFunction,u=encodeURIComponent,b=decodeURIComponent,i=n.config.doc;function a(e){throw new TypeError(e)}function c(e){S(e)&&""!==e||a("Cookie name must be a non-empty string.")}function f(e){S(e)&&""!==e||a("Subcookie name must be a non-empty string.")}n.Cookie={_createCookieString:function(e,t,n,o){o=o||{};var e=u(e)+"="+(n?u(t):t),n=o.expires,t=o.path,i=o.domain;return r(o)&&(n instanceof Date&&(e+="; expires="+n.toUTCString()),S(t)&&""!==t&&(e+="; path="+t),S(i)&&""!==i&&(e+="; domain="+i),!0===o.secure)&&(e+="; secure"),e},_createCookieHashString:function(e){r(e)||a("Cookie._createCookieHashString(): Argument must be an object.");var n=[];return o.each(e,function(e,t){s(e)||k(e)||n.push(u(t)+"="+u(String(e)))}),n.join("&")},_parseCookieHash:function(e){var t,n,o,i=e.split("&"),r={};if(e.length)for(t=0,n=i.length;t<n;t++)o=i[t].split("="),r[b(o[0])]=b(o[1]);return r},_parseCookieString:function(e,t,n){var o,i,r,s,u,a,c,f={};if(S(e)&&0<e.length)for(o=!1===t?function(e){return e}:b,i=e.split(/;\s/g),s=r=g,a=0,c=i.length;a<c;a++){if((u=i[a].match(/([^=]+)=/i))instanceof Array)try{r=b(u[1]),s=o(i[a].substring(u[1].length+1))}catch(h){}else r=b(i[a]),s="";(k(n)||!n.reverseCookieLoading||k(f[r]))&&(f[r]=s)}return f},_setDoc:function(e){i=e},exists:function(e){return c(e),this._parseCookieString(i.cookie,!0).hasOwnProperty(e)},get:function(e,t){var n;return c(e),s(t)?(n=t,t={}):r(t)?n=t.converter:t={},t=this._parseCookieString(i.cookie,!t.raw,t)[e],k(t)?g:s(n)?n(t):t},getSub:function(e,t,n,o){e=this.getSubs(e,o);return e===g||(f(t),k(e[t]))?g:s(n)?n(e[t]):e[t]},getSubs:function(e,t){c(e);t=this._parseCookieString(i.cookie,!1,t);return S(t[e])?this._parseCookieHash(t[e]):g},remove:function(e,t){return c(e),t=n.merge(t||{},{expires:new Date(0)}),this.set(e,"",t)},removeSub:function(e,t,n){var o,i;if(c(e),f(t),n=n||{},o=this.getSubs(e),r(o)&&o.hasOwnProperty(t)){if(delete o[t],n.removeIfEmpty){for(i in o)if(o.hasOwnProperty(i)&&!s(o[i])&&!k(o[i]))return this.setSubs(e,o,n);return this.remove(e,n)}return this.setSubs(e,o,n)}return""},set:function(e,t,n){c(e),k(t)&&a("Cookie.set(): Value cannot be undefined.");e=this._createCookieString(e,t,!(n=n||{}).raw,n);return i.cookie=e},setSub:function(e,t,n,o){c(e),f(t),k(n)&&a("Cookie.setSub(): Subcookie value cannot be undefined.");var i=this.getSubs(e);return(i=r(i)?i:{})[t]=n,this.setSubs(e,i,o)},setSubs:function(e,t,n){c(e),r(t)||a("Cookie.setSubs(): Cookie value must be an object.");e=this._createCookieString(e,this._createCookieHashString(t),!1,n);return i.cookie=e}}},"patched-v3.18.7",{requires:["yui-base"]});
YUI.add("plugin",function(n,t){function s(t){(this.hasImpl&&this.hasImpl(n.Plugin.Base)?s.prototype.initializer:s.superclass.constructor).apply(this,arguments)}s.ATTRS={host:{writeOnce:!0}},s.NAME="plugin",s.NS="plugin",n.extend(s,n.Base,{_handles:null,initializer:function(t){this._handles=[]},destructor:function(){if(this._handles)for(var t=0,s=this._handles.length;t<s;t++)this._handles[t].detach()},doBefore:function(t,s,e){var n,h=this.get("host");return t in h?n=this.beforeHostMethod(t,s,e):h.on&&(n=this.onHostEvent(t,s,e)),n},doAfter:function(t,s,e){var n,h=this.get("host");return t in h?n=this.afterHostMethod(t,s,e):h.after&&(n=this.afterHostEvent(t,s,e)),n},onHostEvent:function(t,s,e){t=this.get("host").on(t,s,e||this);return this._handles.push(t),t},onceHostEvent:function(t,s,e){t=this.get("host").once(t,s,e||this);return this._handles.push(t),t},afterHostEvent:function(t,s,e){t=this.get("host").after(t,s,e||this);return this._handles.push(t),t},onceAfterHostEvent:function(t,s,e){t=this.get("host").onceAfter(t,s,e||this);return this._handles.push(t),t},beforeHostMethod:function(t,s,e){s=n.Do.before(s,this.get("host"),t,e||this);return this._handles.push(s),s},afterHostMethod:function(t,s,e){s=n.Do.after(s,this.get("host"),t,e||this);return this._handles.push(s),s},toString:function(){return this.constructor.NAME+"["+this.constructor.NS+"]"}}),n.namespace("Plugin").Base=s},"patched-v3.18.7",{requires:["base-base"]});
function ownKeys(c,e){var f=Object.keys(c);if(Object.getOwnPropertySymbols){var k=Object.getOwnPropertySymbols(c);e&&(k=k.filter(function(p){return Object.getOwnPropertyDescriptor(c,p).enumerable}));f.push.apply(f,k)}return f}
function _objectSpread(c){for(var e=1;e<arguments.length;e++){var f=null!=arguments[e]?arguments[e]:{};e%2?ownKeys(Object(f),!0).forEach(function(k){_defineProperty(c,k,f[k])}):Object.getOwnPropertyDescriptors?Object.defineProperties(c,Object.getOwnPropertyDescriptors(f)):ownKeys(Object(f)).forEach(function(k){Object.defineProperty(c,k,Object.getOwnPropertyDescriptor(f,k))})}return c}
function _defineProperty(c,e,f){e in c?Object.defineProperty(c,e,{value:f,enumerable:!0,configurable:!0,writable:!0}):c[e]=f;return c}
AUI.add("liferay-session",function(c){var e=c.Lang,f=[],k=c.config,p=k.doc,B={active:"activated"},w={},x={src:w},z=themeDisplay.getPathMain()+"/portal/",A=c.Component.create({ATTRS:{autoExtend:{value:!1},redirectOnExpire:{value:!0},redirectUrl:{value:""},sessionLength:{getter:"_getLengthInMillis",value:0},sessionState:{value:"active"},sessionTimeoutOffset:{getter:"_getLengthInMillis",value:0},timestamp:{getter:"_getTimestamp",setter:"_setTimestamp",value:0},warningLength:{getter:"_getLengthInMillis",
setter:"_setWarningLength",value:0},warningTime:{getter:"_getWarningTime",value:0}},EXTENDS:c.Base,NAME:"liferaysession",prototype:{_afterSessionStateChange:function(a){var b=a.details,d=a.newVal,g=null;"src"in a&&b.length&&(g=b[0]);this.fire(B[d]||d,g)},_defActivatedFn:function(a){var b=this;b.set("timestamp");a.src==w&&Liferay.Util.fetch(z+"extend_session").then(function(d){500===d.status&&b.expire()})},_defExpiredFn:function(a){c.clearInterval(this._intervalId);this.set("timestamp","expired");
a.src===w&&this._expireSession()},_expireSession:function(){var a=this;Liferay.Util.fetch(z+"expire_session").then(function(b){b.ok?(Liferay.fire("sessionExpired"),a.get("redirectOnExpire")&&(location.href=a.get("redirectUrl"))):c.setTimeout(function(){a._expireSession()},1E3)})},_getLengthInMillis:function(a){return 1E3*a},_getTimestamp:function(){return c.Cookie.get(this._cookieKey,this._cookieOptions)||this._initTimestamp},_getWarningTime:function(){return this.get("sessionLength")-this.get("warningLength")},
_initEvents:function(){var a=this;a.publish("activated",{defaultFn:c.bind("_defActivatedFn",a)});a.publish("expired",{defaultFn:c.bind("_defExpiredFn",a)});a.publish("warned");a._eventHandlers=[a.on("sessionStateChange",a._onSessionStateChange),a.after("sessionStateChange",a._afterSessionStateChange),c.on("io:complete",function(b,d,g){(!g||g&&g.sessionExtend||!e.isBoolean(g.sessionExtend))&&a.resetInterval()}),Liferay.once("screenLoad",function(){a.destroy()})]},_onSessionStateChange:function(a){var b=
a.newVal,d=a.prevVal;"expired"==d&&d!=b?a.preventDefault():"active"==d&&d==b&&this._afterSessionStateChange(a)},_setTimestamp:function(a){this._initTimestamp=a=String(a||Date.now());navigator.cookieEnabled&&c.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"),d=a.get("sessionTimeoutOffset"),g=a.get("warningTime"),l=a._registered;a._intervalId=c.setInterval(function(){var q=
a.get("sessionState"),h=a.get("timestamp");var m=b;e.toInt(h)?(m=1E3*Math.floor((Date.now()-h)/1E3),a._initTimestamp!==h&&(a.set("timestamp",h),"active"!=q&&a.set("sessionState","active",x))):h="expired";var r=a.get("autoExtend"),t=!1,v=!1,u=m>=b,n=m>=b-d,y=m>=g;if(n||y)"expired"==h&&(t=!0,r=!1,n=u=!0),n&&"expired"!=q?r&&!u?(v=y=n=u=t=!1,a.extend()):(a.expire(),t=!0):!y||n||r||"warned"==q||(a.warn(),v=!0);for(var C in l)l[C](m,1E3,y,u,n,v,t)},1E3)},_stopTimer:function(){c.clearInterval(this._intervalId)},
destructor:function(){(new c.EventHandle(this._eventHandlers)).detach();this._stopTimer()},expire:function(){this.set("sessionState","expired",x)},extend:function(){this.set("sessionState","active",x)},initializer:function(){this._cookieKey="LFR_SESSION_STATE_"+themeDisplay.getRealUserId();this._cookieOptions={path:"/",secure:c.UA.secure};this._registered={};this.set("timestamp");this._initEvents();this._startTimer()},registerInterval:function(a){var b=this._registered;if(e.isFunction(a)){var d=c.stamp(a);
b[d]=a}return d},resetInterval:function(){this._stopTimer();this._startTimer()},unregisterInterval:function(a){var b=this._registered;Object.prototype.hasOwnProperty.call(b,a)&&delete b[a];return a},warn:function(){this.set("sessionState","warned",x)}}});A.SRC=w;var D=c.Component.create({ATTRS:{openToast:{validator:e.isFunction},pageTitle:{value:p.title}},EXTENDS:c.Plugin.Base,NAME:"liferaysessiondisplay",NS:"display",prototype:{_afterDefActivatedFn:function(){this._uiSetActivated()},_afterDefExpiredFn:function(){this._host.unregisterInterval(this._intervalId);
this._uiSetExpired()},_beforeHostWarned:function(){var a=this,b=a._host,d=b.get("sessionLength"),g=b.get("timestamp"),l=b.get("warningLength"),q=d;e.toInt(g)&&(q=1E3*Math.floor((Date.now()-g)/1E3));var h=d-q;h>l&&(h=l);a._getBanner();var m=document.querySelector("#".concat("sessionToast"," .countdown-timer"));a._uiSetRemainingTime(h,m);a._intervalId=b.registerInterval(function(r,t,v,u,n){v?u||(n&&0>=h&&(h=l),r=1E3*Math.floor((Date.now()-g)/1E3),h=d-r,a._uiSetRemainingTime(h,m)):a._uiSetActivated();
h-=t})},_destroyBanner:function(){var a=document.getElementById("sessionToast");a=null===a||void 0===a?void 0:a.parentElement;Liferay.destroyComponent("sessionToast");a&&a.remove();this._banner=!1},_formatNumber:function(a){return e.String.padNumber(Math.floor(a),2)},_formatTime:function(a){a=Number(a);e.isNumber(a)&&0<a?(a/=1E3,f[0]=this._formatNumber(a/3600),a%=3600,f[1]=this._formatNumber(a/60),f[2]=this._formatNumber(a%60),a=f.join(":")):a=0;return a},_getBanner:function(){var a=this,b=a._banner;
if(!b){var d=a.get("openToast"),g={onClick:function(l){l.event.target.classList.contains("alert-link")&&a._host.extend()},renderData:{componentId:"sessionToast"},toastProps:{autoClose:!1,id:"sessionToast",role:"alert"}};d(_objectSpread({message:a._warningText,type:"warning"},g));b=Liferay.component("sessionToast");b=_objectSpread({open:function(l){a._destroyBanner();d(_objectSpread(_objectSpread({},l),g))}},b);a._banner=b}return b},_onHostSessionStateChange:function(a){"warned"==a.newVal&&this._beforeHostWarned(a)},
_uiSetActivated:function(){p.title=this.reset("pageTitle").get("pageTitle");this._host.unregisterInterval(this._intervalId);this._banner&&this._destroyBanner()},_uiSetExpired:function(){this._getBanner().open({message:this._expiredText,title:"Danger",type:"danger"});p.title=this.get("pageTitle")},_uiSetRemainingTime:function(a,b){a=this._formatTime(a);if(!this._alertClosed){var d=b.closest('div[role\x3d"alert"]');d&&(d.removeAttribute("role"),this._alert=d);b.innerHTML=a}p.title=e.sub("Session expires in {0}.",
[a])+" | "+this.get("pageTitle")},destructor:function(){this._banner&&this._destroyBanner()},initializer:function(){var a=this.get("host");Liferay.Util.getTop()==k.win?(this._host=a,this._toggleText={hide:"Hide",show:"Show"},this._expiredText="Due to inactivity, your session has expired. Please save any data you may have entered before refreshing the page.",this._warningText="Due to inactivity, your session will expire in {0}. To extend your session another {1} minute(s), please press the \x3cem\x3eExtend\x3c/em\x3e button. {2}",
this._warningText=e.sub(this._warningText,['\x3cspan class\x3d"countdown-timer"\x3e{0}\x3c/span\x3e',a.get("sessionLength")/6E4,'\x3ca class\x3d"alert-link" href\x3d"javascript:;"\x3eExtend\x3c/a\x3e']),a.on("sessionStateChange",this._onHostSessionStateChange,this),this.afterHostMethod("_defActivatedFn",this._afterDefActivatedFn),this.afterHostMethod("_defExpiredFn",this._afterDefExpiredFn)):a.unplug(this)}}});Liferay.SessionBase=A;Liferay.SessionDisplay=D},"",{requires:["aui-base","aui-component",
"aui-timer","cookie","plugin"]});
