AUI.add("liferay-form",(e=>{const t=e.Array,a=e.Lang,i=e.config.FormValidator,r=i.RULES.acceptFiles,l=/^[a-z]([a-z]|[0-9]|-|\.|_)*-([a-z]|[0-9]|-|\.|_)*/,n=/^[\w!#$%&'*+/=?^_`{|}~-]+(?:\.[\w!#$%&'*+/=?^_`{|}~-]+)*@(?:\w(?:[\w-]*\w)?\.)+(\w(?:[\w-]*\w))$/,o=/[A-Za-z0-9-_]*/,s=/^[+-]?(\d+)([.|,]\d+)*([eE][+-]?\d+)?$/,d=/((([A-Za-z]{3,9}:(?:\/\/)?)(?:[-;:&=+$,\w]+@)?[A-Za-z0-9.-]+|(https?:\/\/|www.|[-;:&=+$,\w]+@)[A-Za-z0-9.-]+)((?:\/[+~%/.\w-_]*)?\??(?:[-+=&;%@.\w_]*)#?(?:[\w]*))((.*):(\d*)\/?(.*))?)/,u=/((([A-Za-z]{3,9}:(?:\/\/)?)|\/(?:[-;:&=+$,\w]+@)?[A-Za-z0-9.-]+|(https?:\/\/|www.|[-;:&=+$,\w]+@)[A-Za-z0-9.-]+)((?:\/[+~%/.\w-_]*)?\??(?:[-+=&;%@.\w_]*)#?(?:[\w]*))((.*):(\d*)\/?(.*))?)/,f=new Set(["annotation-xml","color-profile","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","missing-glyph"]);e.mix(i.RULES,{acceptFiles:function acceptFiles(e,t,a){return!(!a||!a.split(",").includes("*"))||r(e,t,a)},customElementName:function customElementName(e,t,a){return l.test(e)&&!f.has(e)},email:function email(e){return n.test(e)},friendlyURLMapping:function friendlyURLMapping(e,t,a){return o.test(e)},maxFileSize:function maxFileSize(e,t,a){return"file"!==t.get("type").toLowerCase()||(0===a||t._node.files[0].size<=a)},number:function number(e,t,a){return s&&s.test(e)},url:function url(e,t,a){return d&&d.test(e)},urlAllowRelative:function urlAllowRelative(e){return u&&u.test(e)}},!0),e.mix(i.STRINGS,{DEFAULT:'Please\x20fix\x20this\x20field\x2e',acceptFiles:'Please\x20enter\x20a\x20file\x20with\x20a\x20valid\x20extension\x20\x28\x7b0\x7d\x29\x2e',alpha:'Please\x20enter\x20only\x20alpha\x20characters\x2e',alphanum:'Please\x20enter\x20only\x20alphanumeric\x20characters\x2e',customElementName:'Please\x20enter\x20a\x20valid\x20HTML\x20element\x20name\x2e',date:'Please\x20enter\x20a\x20valid\x20date\x2e',digits:'Please\x20enter\x20only\x20digits\x2e',email:'Please\x20enter\x20a\x20valid\x20email\x20address\x2e',equalTo:'Please\x20enter\x20the\x20same\x20value\x20again\x2e',friendlyURLMapping:'Please\x20enter\x20a\x20valid\x20friendly\x20URL\x20mapping\x2e',max:'Please\x20enter\x20a\x20value\x20less\x20than\x20or\x20equal\x20to\x20\x7b0\x7d\x2e',maxFileSize:'Please\x20enter\x20a\x20file\x20with\x20a\x20valid\x20file\x20size\x20no\x20larger\x20than\x20\x7b0\x7d\x2e',maxLength:'Please\x20enter\x20no\x20more\x20than\x20\x7b0\x7d\x20characters\x2e',min:'Please\x20enter\x20a\x20value\x20greater\x20than\x20or\x20equal\x20to\x20\x7b0\x7d\x2e',minLength:'Please\x20enter\x20at\x20least\x20\x7b0\x7d\x20characters\x2e',number:'Please\x20enter\x20a\x20valid\x20number\x2e',range:'Please\x20enter\x20a\x20value\x20between\x20\x7b0\x7d\x20and\x20\x7b1\x7d\x2e',rangeLength:'Please\x20enter\x20a\x20value\x20between\x20\x7b0\x7d\x20and\x20\x7b1\x7d\x20characters\x20long\x2e',required:'This\x20field\x20is\x20required\x2e',url:'Please\x20enter\x20a\x20valid\x20URL\x2e',urlAllowRelative:'Please\x20enter\x20a\x20valid\x20URL\x2e'},!0);const g=e.Component.create({_INSTANCES:{},ATTRS:{fieldRules:{setter(e){return this._processFieldRules(e),e}},id:{},namespace:{},onSubmit:{valueFn(){return this._onSubmit}},validateOnBlur:{validator:a.isBoolean,value:!0}},EXTENDS:e.Base,get(e){return this._INSTANCES[e]},prototype:{_afterGetFieldsByName(t){const a=this,i="Editor";if(t.lastIndexOf(i)===t.length-i.length){const i=a.formNode;return new e.Do.AlterReturn("Return editor dom element",i.one("#"+t))}},_bindForm(){const t=this,a=t.formNode,i=t.formValidator;i.on("submit",e.bind("_onValidatorSubmit",t)),i.on("submitError",e.bind("_onSubmitError",t)),a.delegate(["blur","focus"],e.bind("_onFieldFocusChange",t),"button,input,select,textarea"),a.delegate(["blur","input"],e.bind("_onEditorBlur",t),'div[contenteditable="true"]'),e.Do.after("_afterGetFieldsByName",i,"getFieldsByName",t)},_defaultSubmitFn(e){const t=this;e.stopped||submitForm(t.form)},_findRuleIndex(e,a,i){let r=-1;return t.some(e,((e,t)=>{if(e.fieldName===a&&e.validatorName===i)return r=t,!0})),r},_focusInvalidFieldTab(){const e=this.formNode,a=e.one("."+this.formValidator.get("errorClass"));if(a){const i=a.ancestor("form > fieldset > div, form > div"),r=e.one(".lfr-nav");if(i&&r){const e=r.all(".nav-item"),a=r.getAttribute("data-tabs-namespace"),l=t.map(e._nodes,(e=>e.getAttribute("data-tab-name"))),n=i.getAttribute("id").slice(0,-"TabsSection".length),o=t.find(e._nodes,(e=>-1!==e.getAttribute("id").indexOf(n)));a&&Liferay.Portal.Tabs.show(a,l,o.getAttribute("data-tab-name"))}}},_onEditorBlur(e){this.formValidator.validateField(e.target)},_onFieldFocusChange(e){const t=e.currentTarget.ancestor(".field");t&&t.toggleClass("field-focused","focus"===e.type)},_onSubmit(e){const t=this;e.preventDefault(),setTimeout((()=>{t._defaultSubmitFn(e)}),0)},_onSubmitError(){this.formNode.all(".panel-collapse").each((e=>{if(e.get("children").all(".has-error").size()>0&&!e.hasClass("show")){const t=e.getDOM();Liferay.CollapseProvider.show({panel:t})}}))},_onValidatorSubmit(e){this.get("onSubmit").call(this,e.validator.formEvent)},_processFieldRule(t,a,r){const l=this;let n=!0;const o=r.fieldName,s=r.validatorName,d=this.formValidator.getField(o);if(d){const t=d.getDOMNode();e.Do.after("_setFieldAttribute",t,"setAttribute",l,o),e.Do.after("_removeFieldAttribute",t,"removeAttribute",l,o)}!r.body&&0!==r.body||r.custom||(n=r.body);let u=t[o];u||(u={},t[o]=u),u[s]=n,r.custom&&(i.RULES[s]=r.body);const f=r.errorMessage;if(f){let e=a[o];e||(e={},a[o]=e),e[s]=f}},_processFieldRules(e){const t=this;e||(e=t.get("fieldRules"));const a={},i={};for(const r in e)t._processFieldRule(i,a,e[r]);const r=t.formValidator;r&&(r.set("fieldStrings",a),r.set("rules",i))},_removeFieldAttribute(e,t){"disabled"===e&&this.formValidator.validateField(t)},_setFieldAttribute(e,t,a){"disabled"===e&&this.formValidator.resetField(a)},_validatable(t){let a;return t.test(":disabled")&&(a=new e.Do.Halt),a},addRule(e,t,a,i,r){const l=this,n=l.get("fieldRules");-1===l._findRuleIndex(n,e,t)&&(n.push({body:i||"",custom:r||!1,errorMessage:a||"",fieldName:e,validatorName:t}),l._processFieldRules(n))},initializer(){const t=this,a=t.get("id"),i=document[a],r=e.one(i);if(t.form=i,t.formNode=r,r){const a=new e.FormValidator({boundingBox:r,stackErrorContainer:'<div class="form-feedback-item form-validator-stack help-block"></div>',validateOnBlur:t.get("validateOnBlur")});e.Do.before("_focusInvalidFieldTab",a,"focusInvalidField",t),e.Do.before("_validatable",a,"validatable",t),t.formValidator=a,t._processFieldRules(),t._bindForm()}},removeRule(e,t){const a=this,i=a.get("fieldRules"),r=a._findRuleIndex(i,e,t);if(-1!==r){const e=i[r];a.formValidator.resetField(e.fieldName),i.splice(r,1),a._processFieldRules(i)}}},register(e){const t=new Liferay.Form(e),a=e.id||e.namespace;return this._INSTANCES[a]=t,Liferay.fire("form:registered",{form:t,formName:a}),t}});Liferay.Form=g}),"",{requires:["aui-base","aui-form-validator"]});

function ownKeys(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);r&&(s=s.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,s)}return t}function _objectSpread(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?ownKeys(Object(t),!0).forEach((function(r){_defineProperty(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):ownKeys(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}function _defineProperty(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}AUI.add("liferay-portlet-url",(e=>{const r=e.Lang,t=function PortletURL(t,s,n){const a=this;a.params={},a.reservedParams={doAsGroupId:null,doAsUserId:null,doAsUserLanguageId:null,p_auth:null,p_auth_secret:null,p_f_id:null,p_j_a_id:null,p_l_id:null,p_l_reset:null,p_p_auth:null,p_p_cacheability:null,p_p_i_id:null,p_p_id:null,p_p_isolated:null,p_p_lifecycle:null,p_p_mode:null,p_p_resource_id:null,p_p_state:null,p_p_state_rcv:null,p_p_static:null,p_p_url_type:null,p_p_width:null,p_t_lifecycle:null,p_v_l_s_g_id:null,refererGroupId:null,refererPlid:null,saveLastPath:null,scroll:null},n||(n=themeDisplay.getPortalURL()+themeDisplay.getPathMain()+"/portal/layout?p_l_id="+themeDisplay.getPlid()),a.options={basePortletURL:n,escapeXML:null,secure:null},e.each(s,((e,t)=>{r.isValue(e)&&(a._isReservedParam(t)?a.reservedParams[t]=e:a.params[t]=e)})),t&&a.setLifecycle(t)};t.prototype={_isReservedParam(r){let t=!1;return e.each(this.reservedParams,((e,s)=>{s===r&&(t=!0)})),t},setCopyCurrentRenderParameters(){return this},setDoAsGroupId(e){return this.reservedParams.doAsGroupId=e,this},setDoAsUserId(e){return this.reservedParams.doAsUserId=e,this},setEncrypt(){return this},setEscapeXML(e){return this.options.escapeXML=e,this},setLifecycle(e){const r=this.reservedParams;return e===t.ACTION_PHASE?(r.p_auth=Liferay.authToken,r.p_p_lifecycle=t.ACTION_PHASE):e===t.RENDER_PHASE?r.p_p_lifecycle=t.RENDER_PHASE:e===t.RESOURCE_PHASE&&(r.p_p_lifecycle=t.RESOURCE_PHASE,r.p_p_cacheability="cacheLevelPage"),this},setName(e){return this.setParameter("javax.portlet.action",e),this},setParameter(e,r){const t=this;return t._isReservedParam(e)?t.reservedParams[e]=r:t.params[e]=r,t},setParameters(r){const t=this;return e.each(r,((e,r)=>{t.setParameter(r,e)})),t},setPlid(e){return this.reservedParams.p_l_id=e,this},setPortletConfiguration(){return this},setPortletId(e){return this.reservedParams.p_p_id=e,this},setPortletMode(e){return this.reservedParams.p_p_mode=e,this},setResourceId(e){return this.reservedParams.p_p_resource_id=e,this},setSecure(e){return this.options.secure=e,this},setWindowState(e){return this.reservedParams.p_p_state=e,this},toString(){const e=this,t=e.options,s={};Object.entries(e.reservedParams).forEach((([e,r])=>{null!=r&&(s[e]=r)}));const n=_objectSpread(_objectSpread({},e.params),s),a=Liferay.Util.PortletURL.createPortletURL(t.basePortletURL,n);return t.secure&&(a.protocol="https:"),t.escapeXML&&(a.href=r.String.escapeHTML(a.href)),a.toString()}},e.mix(t,{ACTION_PHASE:"1",RENDER_PHASE:"0",RESOURCE_PHASE:"2",createActionURL:function createActionURL(){return new t(t.ACTION_PHASE)},createRenderURL:function createRenderURL(){return new t(t.RENDER_PHASE)},createResourceURL:function createResourceURL(){return new t(t.RESOURCE_PHASE)},createURL:function createURL(e,r){return new t(null,r,e)}}),Liferay.PortletURL=t}),"",{requires:["aui-base"]});

YUI.add("array-invoke",function(a,r){a.Array.invoke=function(r,n){var i=a.Array(arguments,2,!0),e=a.Lang.isFunction,u=[];return a.Array.each(a.Array(r),function(r,a){r&&e(r[n])&&(u[a]=r[n].apply(r,i))}),u}},"patched-v3.18.7",{requires:["yui-base"]});
YUI.add("aui-delayed-task-deprecated",function(e,t){var n=function(e,t,n){var r=this;r._args=n,r._delay=0,r._fn=e,r._id=null,r._scope=t||r,r._time=0,r._base=function(){var e=r._getTime();e-r._time>=r._delay&&(clearInterval(r._id),r._id=null,r._fn.apply(r._scope,r._args||[]))}};n.prototype={delay:function(t,n,r,i){var s=this;s._id&&s._delay!=t&&s.cancel(),s._delay=t||s._delay,s._time=s._getTime(),s._fn=n||s._fn,s._scope=r||s._scope,s._args=i||s._args,e.Lang.isArray(s._args)||(s._args=[s._args]),s._id||(s._delay>0?s._id=setInterval(s._base,s._delay):s._base())},cancel:function(){var e=this;e._id&&(clearInterval(e._id),e._id=null)},_getTime:function(){var e=this;return+(new Date)}},e.DelayedTask=n},"3.1.0-deprecated.110",{requires:["yui-base"]});

YUI.add("aui-selector",function(e,t){var n=e.Selector,r=e.getClassName("sr-only"),i=e.getClassName("hide"),s=new RegExp(/rect\((0(px)?(,)?(\s)?){4}\)/i),o=new RegExp(i),u=new RegExp(r);n._isNodeHidden=function(e){var t=e.offsetWidth,n=e.offsetHeight,r=e.nodeName.toLowerCase()==="tr",i=e.className,a=e.style,f=!1;return r||(t===0&&n===0?f=!0:t>0&&n>0&&(f=!1)),f=f||a.display==="none"||a.visibility==="hidden"||a.position==="absolute"&&s.test(a.clip)||o.test(i)||u.test(i),f};var a=function(e){return function(t){return t.type===e}};e.mix(n.pseudos,{button:function(e){return e.type==="button"||e.nodeName.toLowerCase()==="button"},checkbox:a("checkbox"),checked:function(e){return e.checked===!0},disabled:function(e){return e.disabled===!0},empty:function(e){return!e.firstChild},enabled:function(e){return e.disabled===!1&&e.type!=="hidden"},file:a("file"),header:function(e){return/h\d/i.test(e.nodeName)},hidden:function(e){return n._isNodeHidden(e)},image:a("image"),input:function(e){return/input|select|textarea|button/i.test(e.nodeName)},parent:function(e){return!!e.firstChild},password:a("password"),radio:a("radio"),reset:a("reset"),selected:function(e){return e.parentNode.selectedIndex,e.selected===!0},submit:a("submit"),text:a("text"),visible:function(e){return!n._isNodeHidden(e)}})},"3.1.0-deprecated.110",{requires:["selector-css3","aui-classnamemanager"]});

YUI.add("widget-htmlparser",function(d,e){var o=d.Widget,t=d.Node,a=d.Lang,i="srcNode";o.HTML_PARSER={},o._buildCfg={aggregates:["HTML_PARSER"]},o.ATTRS[i]={value:null,setter:t.one,getter:"_getSrcNode",writeOnce:!0},d.mix(o.prototype,{_getSrcNode:function(e){return e||this.get("contentBox")},_preAddAttrs:function(e,t,n){var r={id:e.id,boundingBox:e.boundingBox,contentBox:e.contentBox,srcNode:e.srcNode||d.Object(o.ATTRS[i])};this.addAttrs(r,t,n),delete e.boundingBox,delete e.contentBox,delete e.srcNode,delete e.id,this._applyParser&&this._applyParser(t)},_applyParsedConfig:function(e,t,n){return n?d.mix(t,n,!1):t},_applyParser:function(e){var r,o,i=this,s=this._getNodeToParse(),t=i._getHtmlParser();t&&s&&d.Object.each(t,function(e,t,n){o=null,a.isFunction(e)?o=e.call(i,s):a.isArray(e)?(o=s.all(e[0])).isEmpty()&&(o=null):o=s.one(e),null!==o&&o!==undefined&&((r=r||{})[t]=o)}),i._applyParsedConfig(s,e,r)},_getNodeToParse:function(){var e=this.get("srcNode");return this._cbFromTemplate?null:e},_getHtmlParser:function(){for(var e,t=this._getClasses(),n={},r=t.length-1;0<=r;r--)(e=t[r].HTML_PARSER)&&d.mix(n,e,!0);return n}})},"patched-v3.18.7",{requires:["widget-base"]});
YUI.add("widget-skin",function(e,t){var i=e.ClassNameManager.getClassName;e.Widget.prototype.getSkinName=function(e){var t,n,a=this.get("contentBox")||this.get("boundingBox");return e=e||i("skin",""),n=new RegExp("\\b"+e+"(\\S+)"),a&&a.ancestor(function(e){return t=e.get("className").match(n)}),t?t[1]:null}},"patched-v3.18.7",{requires:["widget-base"]});
YUI.add("widget-uievents",function(s,t){var r=s.Widget,i=s.Lang,a=s.Widget._uievts=s.Widget._uievts||{};s.mix(r.prototype,{_destroyUIEvents:function(){var n=s.stamp(this,!0);s.each(a,function(t,e){t.instances[n]&&(delete t.instances[n],s.Object.isEmpty(t.instances))&&(t.handle.detach(),a[e])&&delete a[e]})},UI_EVENTS:s.Node.DOM_EVENTS,_getUIEventNode:function(){return this.get("boundingBox")},_createUIEvent:function(t){var e=this._getUIEventNode(),n=s.stamp(e)+t,i=a[n];i||(t=e.delegate(t,function(t){var e=r.getByNode(this);e&&e._filterUIEvent(t)&&e.fire(t.type,{domEvent:t})},"."+s.Widget.getClassName()),a[n]=i={instances:{},handle:t}),i.instances[s.stamp(this)]=1},_filterUIEvent:function(t){return t.currentTarget.compareTo(t.container)||t.container.compareTo(this._getUIEventNode())},_getUIEvent:function(t){var e,n;if(i.isString(t))return(t=this.parseType(t)[1])&&(-1<(e=t.indexOf(":"))&&(t=t.substring(e+":".length)),this.UI_EVENTS[t])?t:n},_initUIEvent:function(t){var e=this._getUIEvent(t),t=this._uiEvtsInitQueue||{};e&&!t[e]&&(this._uiEvtsInitQueue=t[e]=1,this.after("render",function(){this._createUIEvent(e),delete this._uiEvtsInitQueue[e]}))},on:function(t){return this._initUIEvent(t),r.superclass.on.apply(this,arguments)},publish:function(t,e){var n=this._getUIEvent(t);return n&&e&&e.defaultFn&&this._initUIEvent(n),r.superclass.publish.apply(this,arguments)}},!0)},"patched-v3.18.7",{requires:["node-event-delegate","widget-base"]});
YUI.add("widget-position",function(t,i){var e=t.Lang,n=t.Widget,s="xy",o=n.UI_SRC;function r(t){}r.ATTRS={x:{setter:function(t){this._setX(t)},getter:function(){return this._getX()},lazyAdd:!1},y:{setter:function(t){this._setY(t)},getter:function(){return this._getY()},lazyAdd:!1},xy:{value:[0,0],validator:function(t){return this._validateXY(t)}}},r.POSITIONED_CLASS_NAME=n.getClassName("positioned"),r.prototype={initializer:function(){this._posNode=this.get("boundingBox"),t.after(this._renderUIPosition,this,"renderUI"),t.after(this._syncUIPosition,this,"syncUI"),t.after(this._bindUIPosition,this,"bindUI")},_renderUIPosition:function(){this._posNode.addClass(r.POSITIONED_CLASS_NAME)},_syncUIPosition:function(){"relative"===this._posNode.getStyle("position")&&this.syncXY(),this._uiSetXY(this.get(s))},_bindUIPosition:function(){this.after("xyChange",this._afterXYChange)},move:function(){var t=arguments,t=e.isArray(t[0])?t[0]:[t[0],t[1]];this.set(s,t)},syncXY:function(){this.set(s,this._posNode.getXY(),{src:o})},_validateXY:function(t){return e.isArray(t)&&e.isNumber(t[0])&&e.isNumber(t[1])},_setX:function(t){this.set(s,[t,this.get(s)[1]])},_setY:function(t){this.set(s,[this.get(s)[0],t])},_getX:function(){return this.get(s)[0]},_getY:function(){return this.get(s)[1]},_afterXYChange:function(t){t.src!=o&&this._uiSetXY(t.newVal)},_uiSetXY:function(t){this._posNode.setXY(t)}},t.WidgetPosition=r},"patched-v3.18.7",{requires:["base-build","node-screen","widget"]});
YUI.add("widget-stack",function(e,t){var i=e.Lang,s=e.UA,n=e.Node,h=e.Widget,a="zIndex",d="shim",r="visible",_="shimdeferred",c="shimresize",o="visibleChange";function S(e){}S.ATTRS={shim:{value:6==s.ie},zIndex:{value:0,setter:"_setZIndex"}},S.HTML_PARSER={zIndex:function(e){return this._parseZIndex(e)}},S.SHIM_CLASS_NAME=h.getClassName(d),S.STACKED_CLASS_NAME=h.getClassName("stacked"),S.SHIM_TEMPLATE='<iframe class="'+S.SHIM_CLASS_NAME+'" frameborder="0" title="Widget Stacking Shim" src="javascript:false" tabindex="-1" role="presentation"></iframe>',S.prototype={initializer:function(){this._stackNode=this.get("boundingBox"),this._stackHandles={},e.after(this._renderUIStack,this,"renderUI"),e.after(this._syncUIStack,this,"syncUI"),e.after(this._bindUIStack,this,"bindUI")},_syncUIStack:function(){this._uiSetShim(this.get(d)),this._uiSetZIndex(this.get(a))},_bindUIStack:function(){this.after("shimChange",this._afterShimChange),this.after("zIndexChange",this._afterZIndexChange)},_renderUIStack:function(){this._stackNode.addClass(S.STACKED_CLASS_NAME)},_parseZIndex:function(e){e=e.inDoc()&&"static"!==e.getStyle("position")?e.getComputedStyle("zIndex"):"auto";return"auto"===e?null:e},_setZIndex:function(e){return i.isString(e)&&(e=parseInt(e,10)),e=i.isNumber(e)?e:0},_afterShimChange:function(e){this._uiSetShim(e.newVal)},_afterZIndexChange:function(e){this._uiSetZIndex(e.newVal)},_uiSetZIndex:function(e){this._stackNode.setStyle(a,e)},_uiSetShim:function(e){e?(this.get(r)?this._renderShim():this._renderShimDeferred(),6==s.ie&&this._addShimResizeHandlers()):this._destroyShim()},_renderShimDeferred:function(){this._stackHandles[_]=this._stackHandles[_]||[];this._stackHandles[_].push(this.on(o,function(e){e.newVal&&this._renderShim()}))},_addShimResizeHandlers:function(){this._stackHandles[c]=this._stackHandles[c]||[];var e=this.sizeShim,t=this._stackHandles[c];t.push(this.after(o,e)),t.push(this.after("widthChange",e)),t.push(this.after("heightChange",e)),t.push(this.after("contentUpdate",e))},_detachStackHandles:function(e){var t,i=this._stackHandles[e];if(i&&0<i.length)for(;t=i.pop();)t.detach()},_renderShim:function(){var e=this._shimNode,t=this._stackNode;e||(e=this._shimNode=this._getShimTemplate(),t.insertBefore(e,t.get("firstChild")),this._detachStackHandles(_),this.sizeShim())},_destroyShim:function(){this._shimNode&&(this._shimNode.get("parentNode").removeChild(this._shimNode),this._shimNode=null,this._detachStackHandles(_),this._detachStackHandles(c))},sizeShim:function(){var e=this._shimNode,t=this._stackNode;e&&6===s.ie&&this.get(r)&&(e.setStyle("width",t.get("offsetWidth")+"px"),e.setStyle("height",t.get("offsetHeight")+"px"))},_getShimTemplate:function(){return n.create(S.SHIM_TEMPLATE,this._stackNode.get("ownerDocument"))}},e.WidgetStack=S},"patched-v3.18.7",{requires:["base-build","widget"],skinnable:!0});
YUI.add("widget-position-align",function(o,t){var s=o.Lang,i="align",e="visible",a="offsetWidth",g="offsetHeight";function l(t){}l.ATTRS={align:{value:null},centered:{setter:"_setAlignCenter",lazyAdd:!1,value:!1},alignOn:{value:[],validator:o.Lang.isArray}},l.TL="tl",l.TR="tr",l.BL="bl",l.BR="br",l.TC="tc",l.RC="rc",l.BC="bc",l.LC="lc",l.CC="cc",l.prototype={initializer:function(){this._posNode||o.error("WidgetPosition needs to be added to the Widget, before WidgetPositionAlign is added"),o.after(this._bindUIPosAlign,this,"bindUI"),o.after(this._syncUIPosAlign,this,"syncUI")},_posAlignUIHandles:null,destructor:function(){this._detachPosAlignUIHandles()},_bindUIPosAlign:function(){this.after("alignChange",this._afterAlignChange),this.after("alignOnChange",this._afterAlignOnChange),this.after("visibleChange",this._syncUIPosAlign)},_syncUIPosAlign:function(){var t=this.get(i);this._uiSetVisiblePosAlign(this.get(e)),t&&this._uiSetAlign(t.node,t.points)},align:function(t,e){return arguments.length?this.set(i,{node:t,points:e}):this._syncUIPosAlign(),this},centered:function(t){return this.align(t,[l.CC,l.CC])},_getAlignToXY:function(t,e,i,n){var s;switch(e){case l.TL:s=[i,n];break;case l.TR:s=[i-t.get(a),n];break;case l.BL:s=[i,n-t.get(g)];break;case l.BR:s=[i-t.get(a),n-t.get(g)];break;case l.TC:s=[i-t.get(a)/2,n];break;case l.BC:s=[i-t.get(a)/2,n-t.get(g)];break;case l.LC:s=[i,n-t.get(g)/2];break;case l.RC:s=[i-t.get(a),n-t.get(g)/2];break;case l.CC:s=[i-t.get(a)/2,n-t.get(g)/2]}return s},_getAlignedXY:function(t,e){if(s.isArray(e)&&2===e.length){var i,n=this._getRegion(t);if(n){switch(e[1]){case l.TL:i=[n.left,n.top];break;case l.TR:i=[n.right,n.top];break;case l.BL:i=[n.left,n.bottom];break;case l.BR:i=[n.right,n.bottom];break;case l.TC:i=[n.left+Math.floor(n.width/2),n.top];break;case l.BC:i=[n.left+Math.floor(n.width/2),n.bottom];break;case l.LC:i=[n.left,n.top+Math.floor(n.height/2)];break;case l.RC:i=[n.right,n.top+Math.floor(n.height/2)];break;case l.CC:i=[n.left+Math.floor(n.width/2),n.top+Math.floor(n.height/2)]}return this._getAlignToXY(this._posNode,e[0],i[0],i[1])}}else o.error("align: Invalid Points Arguments")},_setAlignCenter:function(t){return t&&this.set(i,{node:!0===t?null:t,points:[l.CC,l.CC]}),t},_uiSetAlign:function(t,e){t=this._getAlignedXY(t,e);t&&this._doAlign(t)},_uiSetVisiblePosAlign:function(t){t?this._attachPosAlignUIHandles():this._detachPosAlignUIHandles()},_attachPosAlignUIHandles:function(){var i,n,s;this._posAlignUIHandles||(i=this.get("boundingBox"),n=o.bind(this._syncUIPosAlign,this),s=[],o.Array.each(this.get("alignOn"),function(t){var e=t.eventName,t=o.one(t.node)||i;e&&s.push(t.on(e,n))}),this._posAlignUIHandles=s)},_detachPosAlignUIHandles:function(){var t=this._posAlignUIHandles;t&&(new o.EventHandle(t).detach(),this._posAlignUIHandles=null)},_doAlign:function(t){t&&this.move(t)},_getRegion:function(t){var e;return t?(t=o.Node.one(t))&&(e=t.get("region")):e=this._posNode.get("viewportRegion"),e},_afterAlignChange:function(t){t=t.newVal;t&&this._uiSetAlign(t.node,t.points)},_afterAlignOnChange:function(t){this._detachPosAlignUIHandles(),this.get(e)&&this._attachPosAlignUIHandles()}},o.WidgetPositionAlign=l},"patched-v3.18.7",{requires:["widget-position"]});
YUI.add("widget-position-constrain",function(t,n){var l,e="constrain",i=t.Node,o="region";function s(t){}s.ATTRS={constrain:{value:null,setter:"_setConstrain"},preventOverlap:{value:!1}},l=s._PREVENT_OVERLAP={x:{tltr:1,blbr:1,brbl:1,trtl:1},y:{trbr:1,tlbl:1,bltl:1,brtr:1}},s.prototype={initializer:function(){this._posNode||t.error("WidgetPosition needs to be added to the Widget, before WidgetPositionConstrain is added"),t.after(this._bindUIPosConstrained,this,"bindUI")},getConstrainedXY:function(t,n){n=n||this.get(e);var n=this._getRegion(!0===n?null:n),i=this._posNode.get(o);return[this._constrain(t[0],"x",i,n),this._constrain(t[1],"y",i,n)]},constrain:function(t,n){var n=n||this.get(e);n&&(t=t||this.get("xy"),(n=this.getConstrainedXY(t,n))[0]===t[0]&&n[1]===t[1]||this.set("xy",n,{constrained:!0}))},_setConstrain:function(t){return!0===t?t:i.one(t)},_constrain:function(t,n,i,e){var o,s;return e&&(this.get("preventOverlap")&&(t=this._preventOverlap(t,n,i,e)),o=(n="x"==n)?e.width:e.height,i=n?i.width:i.height,s=n?e.left:e.top,n=n?e.right-i:e.bottom-i,t<s||n<t)&&(!(i<o)||t<s?t=s:n<t&&(t=n)),t},_preventOverlap:function(t,n,i,e){var o,s,r,a,h,g=this.get("align"),d="x"===n;return g&&g.points&&l[n][g.points.join("")]&&((n=this._getRegion(g.node))&&(o=d?i.width:i.height,s=d?n.left:n.top,r=d?n.right:n.bottom,a=d?n.left-e.left:n.top-e.top,h=d?e.right-n.right:e.bottom-n.bottom),s<t?h<o&&o<a&&(t=s-o):a<o&&o<h&&(t=r)),t},_bindUIPosConstrained:function(){this.after("constrainChange",this._afterConstrainChange),this._enableConstraints(this.get(e))},_afterConstrainChange:function(t){this._enableConstraints(t.newVal)},_enableConstraints:function(t){t?(this.constrain(),this._cxyHandle=this._cxyHandle||this.on("constrain|xyChange",this._constrainOnXYChange)):this._cxyHandle&&(this._cxyHandle.detach(),this._cxyHandle=null)},_constrainOnXYChange:function(t){t.constrained||(t.newVal=this.getConstrainedXY(t.newVal))},_getRegion:function(t){var n;return t?(t=i.one(t))&&(n=t.get(o)):n=this._posNode.get("viewportRegion"),n}},t.WidgetPositionConstrain=s},"patched-v3.18.7",{requires:["widget-position"]});
YUI.add("widget-stdmod",function(i,t){var h,e,a,d,o,n,s,S,r,l,g,f,u,_,M,c,C,E;function p(t){}h=i.Lang,e=i.Node,a=i.UA,d=i.Widget,o="fillHeight",n="Node",s="Content",S="contentBox",r="height",l="offsetHeight",g="contentUpdate",f=i.Widget.UI_SRC,p.HEADER="header",p.BODY="body",p.FOOTER="footer",p.AFTER="after",p.BEFORE="before",p.REPLACE="replace",c=(u=p.HEADER)+s,C=(M=p.FOOTER)+s,E=(_=p.BODY)+s,p.ATTRS={headerContent:{value:null},footerContent:{value:null},bodyContent:{value:null},fillHeight:{value:p.BODY,validator:function(t){return this._validateFillHeight(t)}}},p.HTML_PARSER={headerContent:function(t){return this._parseStdModHTML(u)},bodyContent:function(t){return this._parseStdModHTML(_)},footerContent:function(t){return this._parseStdModHTML(M)}},p.SECTION_CLASS_NAMES={header:d.getClassName("hd"),body:d.getClassName("bd"),footer:d.getClassName("ft")},p.TEMPLATES={header:'<div class="'+p.SECTION_CLASS_NAMES[u]+'"></div>',body:'<div class="'+p.SECTION_CLASS_NAMES[_]+'"></div>',footer:'<div class="'+p.SECTION_CLASS_NAMES[M]+'"></div>'},p.prototype={initializer:function(){this._stdModNode=this.get(S),i.before(this._renderUIStdMod,this,"renderUI"),i.before(this._bindUIStdMod,this,"bindUI"),i.before(this._syncUIStdMod,this,"syncUI")},_syncUIStdMod:function(){var t=this._stdModParsed;t&&t[c]||this._uiSetStdMod(u,this.get(c)),t&&t[E]||this._uiSetStdMod(_,this.get(E)),t&&t[C]||this._uiSetStdMod(M,this.get(C)),this._uiSetFillHeight(this.get(o))},_renderUIStdMod:function(){this._stdModNode.addClass(d.getClassName("stdmod")),this._renderStdModSections(),this.after("headerContentChange",this._afterHeaderChange),this.after("bodyContentChange",this._afterBodyChange),this.after("footerContentChange",this._afterFooterChange)},_renderStdModSections:function(){h.isValue(this.get(c))&&this._renderStdMod(u),h.isValue(this.get(E))&&this._renderStdMod(_),h.isValue(this.get(C))&&this._renderStdMod(M)},_bindUIStdMod:function(){this.after("fillHeightChange",this._afterFillHeightChange),this.after("heightChange",this._fillHeight),this.after(g,this._fillHeight)},_afterHeaderChange:function(t){t.src!==f&&this._uiSetStdMod(u,t.newVal,t.stdModPosition)},_afterBodyChange:function(t){t.src!==f&&this._uiSetStdMod(_,t.newVal,t.stdModPosition)},_afterFooterChange:function(t){t.src!==f&&this._uiSetStdMod(M,t.newVal,t.stdModPosition)},_afterFillHeightChange:function(t){this._uiSetFillHeight(t.newVal)},_validateFillHeight:function(t){return!t||t==p.BODY||t==p.HEADER||t==p.FOOTER},_uiSetFillHeight:function(t){var t=this.getStdModNode(t),e=this._currFillNode;e&&t!==e&&e.setStyle(r,""),t&&(this._currFillNode=t),this._fillHeight()},_fillHeight:function(){var t;this.get(o)&&""!=(t=this.get(r))&&"auto"!=t&&this.fillHeight(this.getStdModNode(this.get(o)))},_uiSetStdMod:function(t,e,i){var d;h.isValue(e)?(d=this.getStdModNode(t,!0),this._addStdModContent(d,e,i),this.set(t+s,this._getStdModContent(t),{src:f})):this._eraseStdMod(t),this.fire(g)},_renderStdMod:function(t){var e=this.get(S),i=(i=this._findStdModSection(t))||this._getStdModTemplate(t);return this._insertStdModSection(e,t,i),this[t+n]=i,this[t+n]},_eraseStdMod:function(t){var e=this.getStdModNode(t);e&&(e.remove(!0),delete this[t+n])},_insertStdModSection:function(t,e,i){var d=t.get("firstChild");e!==M&&d?e===u?t.insertBefore(i,d):(e=this[M+n])?t.insertBefore(i,e):t.appendChild(i):t.appendChild(i)},_getStdModTemplate:function(t){return e.create(p.TEMPLATES[t],this._stdModNode.get("ownerDocument"))},_addStdModContent:function(t,e,i){switch(i){case p.BEFORE:i=0;break;case p.AFTER:i=undefined;break;default:i=p.REPLACE}t.insert(e,i)},_getPreciseHeight:function(t){var e=t?t.get(l):0,i="getBoundingClientRect";return e=t&&t.hasMethod(i)&&(i=t.invoke(i))?i.bottom-i.top:e},_findStdModSection:function(t){return this.get(S).one("> ."+p.SECTION_CLASS_NAMES[t])},_parseStdModHTML:function(t){var e=this._findStdModSection(t);return e?(this._stdModParsed||(this._stdModParsed={},i.before(this._applyStdModParsedConfig,this,"_applyParsedConfig")),this._stdModParsed[t+s]=1,e.get("innerHTML")):null},_applyStdModParsedConfig:function(t,e,i){var d=this._stdModParsed;d&&(d[c]=!(c in e)&&c in d,d[E]=!(E in e)&&E in d,d[C]=!(C in e)&&C in d)},_getStdModContent:function(t){return this[t+n]?this[t+n].get("childNodes"):null},setStdModContent:function(t,e,i){this.set(t+s,e,{stdModPosition:i})},getStdModNode:function(t,e){var i=this[t+n]||null;return i=!i&&e?this._renderStdMod(t):i},fillHeight:function(t){var e,i,d,o,n,s,r;if(t){for(o=this.get(S),n=!(e=[this.headerNode,this.bodyNode,this.footerNode]),s=d=0,r=e.length;s<r;s++)(i=e[s])&&(i!==t?d+=this._getPreciseHeight(i):n=!0);n&&((a.ie||a.opera)&&t.set(l,0),o=o.get(l)-parseInt(o.getComputedStyle("paddingTop"),10)-parseInt(o.getComputedStyle("paddingBottom"),10)-parseInt(o.getComputedStyle("borderBottomWidth"),10)-parseInt(o.getComputedStyle("borderTopWidth"),10),h.isNumber(o))&&0<=(o=o-d)&&t.set(l,o)}}},i.WidgetStdMod=p},"patched-v3.18.7",{requires:["base-build","widget"]});
YUI.add("aui-overlay-base-deprecated",function(e,t){e.OverlayBase=e.Component.create({NAME:"overlay",ATTRS:{hideClass:{value:!1}},AUGMENTS:[e.WidgetPosition,e.WidgetStack,e.WidgetPositionAlign,e.WidgetPositionConstrain,e.WidgetStdMod]})},"3.1.0-deprecated.110",{requires:["widget-position","widget-stack","widget-position-align","widget-position-constrain","widget-stdmod","aui-component"]});

