YUI.add("aui-parse-content",function(e,t){var n=e.Lang,r=n.isString,i=e.config.doc,s="<div>_</div>",o={"":1,"text/javascript":1,"text/parsed":1},u=e.Component.create({NAME:"ParseContent",NS:"ParseContent",ATTRS:{queue:{value:null},preserveScriptNodes:{validator:n.isBoolean,value:!1}},EXTENDS:e.Plugin.Base,prototype:{initializer:function(){var t=this;u.superclass.initializer.apply(this,arguments),t.set("queue",new e.AsyncQueue),t._bindAOP()},globalEval:function(t){var r=e.getDoc(),s=r.one("head")||r.get("documentElement"),o=i.createElement("script");o.type="text/javascript",t&&(o.text=n.trim(t)),s.appendChild(o).remove()},parseContent:function(e){var t=this,n=t._extractScripts(e);return t._dispatch(n),n},_addInlineScript:function(e){var t=this;t.get("queue").add({args:e,context:t,fn:t.globalEval,timeout:0})},_bindAOP:function(){var t=this,n=function(n){var r=Array.prototype.slice.call(arguments),i=t.parseContent(n);return r.splice(0,1,i.fragment),new e.Do.AlterArgs(null,r)};this.doBefore("insert",n),this.doBefore("replaceChild",n);var r=function(n){var r=t.parseContent(n);return new e.Do.AlterArgs(null,[r.fragment])};this.doBefore("replace",r),this.doBefore("setContent",r)},_extractScripts:function(t){var n=this,i=e.Node.create("<div></div>"),u={},a=n.get("preserveScriptNodes");return r(t)?(t=s+t,e.DOM.addHTML(i,t,"append")):(i.append(s),i.append(t)),u.js=i.all("script").filter(function(e){var t=o[e.getAttribute("type").toLowerCase()];return a&&e.setAttribute("type","text/parsed"),t}),a||u.js.each(function(e){e.remove()}),i.get("firstChild").remove(),u.fragment=i.get("childNodes").toFrag(),u},_dispatch:function(t){var n=this,r=n.get("queue"),i=[];t.js.each(function(t){var s=t.get("src");if(s)i.length&&(n._addInlineScript(i.join(";")),i.length=0),r.add({autoContinue:!1,fn:function(){e.Get.script(s,{onEnd:function(e){e.purge(),r.run()}})},timeout:0});else{var o=t._node;i.push(o.text||o.textContent||o.innerHTML||"")}}),i.length&&n._addInlineScript(i.join(";")),r.run()}}});e.namespace("Plugin").ParseContent=u},"3.1.0-deprecated.78",{requires:["async-queue","plugin","io-base","aui-component","aui-node-base"]});

function ownKeys(object,enumerableOnly){var keys=Object.keys(object);if(Object.getOwnPropertySymbols){var symbols=Object.getOwnPropertySymbols(object);if(enumerableOnly)symbols=symbols.filter(function(sym){return Object.getOwnPropertyDescriptor(object,sym).enumerable});keys.push.apply(keys,symbols)}return keys}
function _objectSpread(target){for(var i=1;i<arguments.length;i++){var source=arguments[i]!=null?arguments[i]:{};if(i%2)ownKeys(Object(source),true).forEach(function(key){_defineProperty(target,key,source[key])});else if(Object.getOwnPropertyDescriptors)Object.defineProperties(target,Object.getOwnPropertyDescriptors(source));else ownKeys(Object(source)).forEach(function(key){Object.defineProperty(target,key,Object.getOwnPropertyDescriptor(source,key))})}return target}
function _defineProperty(obj,key,value){if(key in obj)Object.defineProperty(obj,key,{value:value,enumerable:true,configurable:true,writable:true});else obj[key]=value;return obj}function _slicedToArray(arr,i){return _arrayWithHoles(arr)||_iterableToArrayLimit(arr,i)||_nonIterableRest()}function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance");}
function _iterableToArrayLimit(arr,i){if(!(Symbol.iterator in Object(arr)||Object.prototype.toString.call(arr)==="[object Arguments]"))return;var _arr=[];var _n=true;var _d=false;var _e=undefined;try{for(var _i=arr[Symbol.iterator](),_s;!(_n=(_s=_i.next()).done);_n=true){_arr.push(_s.value);if(i&&_arr.length===i)break}}catch(err){_d=true;_e=err}finally{try{if(!_n&&_i["return"]!=null)_i["return"]()}finally{if(_d)throw _e;}}return _arr}
function _arrayWithHoles(arr){if(Array.isArray(arr))return arr}
AUI.add("liferay-portlet-url",function(A){var Lang=A.Lang;var PortletURL=function PortletURL(lifecycle,params,basePortletURL){var instance=this;instance.params={};instance.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};if(!basePortletURL)basePortletURL=themeDisplay.getPortalURL()+themeDisplay.getPathMain()+"/portal/layout?p_l_id\x3d"+themeDisplay.getPlid();instance.options={basePortletURL:basePortletURL,escapeXML:null,secure:null};A.each(params,function(item,index){if(Lang.isValue(item))if(instance._isReservedParam(index))instance.reservedParams[index]=item;else instance.params[index]=
item});if(lifecycle)instance.setLifecycle(lifecycle)};PortletURL.prototype={_isReservedParam:function _isReservedParam(paramName){var instance=this;var result=false;A.each(instance.reservedParams,function(item,index){if(index===paramName)result=true});return result},setCopyCurrentRenderParameters:function setCopyCurrentRenderParameters(){var instance=this;return instance},setDoAsGroupId:function setDoAsGroupId(doAsGroupId){var instance=this;instance.reservedParams.doAsGroupId=doAsGroupId;return instance},
setDoAsUserId:function setDoAsUserId(doAsUserId){var instance=this;instance.reservedParams.doAsUserId=doAsUserId;return instance},setEncrypt:function setEncrypt(){var instance=this;return instance},setEscapeXML:function setEscapeXML(escapeXML){var instance=this;instance.options.escapeXML=escapeXML;return instance},setLifecycle:function setLifecycle(lifecycle){var instance=this;var reservedParams=instance.reservedParams;if(lifecycle===PortletURL.ACTION_PHASE){reservedParams.p_auth=Liferay.authToken;
reservedParams.p_p_lifecycle=PortletURL.ACTION_PHASE}else if(lifecycle===PortletURL.RENDER_PHASE)reservedParams.p_p_lifecycle=PortletURL.RENDER_PHASE;else if(lifecycle===PortletURL.RESOURCE_PHASE){reservedParams.p_p_lifecycle=PortletURL.RESOURCE_PHASE;reservedParams.p_p_cacheability="cacheLevelPage"}return instance},setName:function setName(name){var instance=this;instance.setParameter("javax.portlet.action",name);return instance},setParameter:function setParameter(key,value){var instance=this;if(instance._isReservedParam(key))instance.reservedParams[key]=
value;else instance.params[key]=value;return instance},setParameters:function setParameters(parameters){var instance=this;A.each(parameters,function(item,index){instance.setParameter(index,item)});return instance},setPlid:function setPlid(plid){var instance=this;instance.reservedParams.p_l_id=plid;return instance},setPortletConfiguration:function setPortletConfiguration(){var instance=this;return instance},setPortletId:function setPortletId(portletId){var instance=this;instance.reservedParams.p_p_id=
portletId;return instance},setPortletMode:function setPortletMode(portletMode){var instance=this;instance.reservedParams.p_p_mode=portletMode;return instance},setResourceId:function setResourceId(resourceId){var instance=this;instance.reservedParams.p_p_resource_id=resourceId;return instance},setSecure:function setSecure(secure){var instance=this;instance.options.secure=secure;return instance},setWindowState:function setWindowState(windowState){var instance=this;instance.reservedParams.p_p_state=
windowState;return instance},toString:function toString(){var instance=this;var options=instance.options;var reservedParameters={};Object.entries(instance.reservedParams).forEach(function(_ref){var _ref2=_slicedToArray(_ref,2),key=_ref2[0],value=_ref2[1];if(value!=null)reservedParameters[key]=value});var parameters=_objectSpread({},instance.params,{},reservedParameters);var portletURL=Liferay.Util.PortletURL.createPortletURL(options.basePortletURL,parameters);if(options.secure)portletURL.protocol=
"https:";if(options.escapeXML)portletURL.href=Lang.String.escapeHTML(portletURL.href);return portletURL.toString()}};A.mix(PortletURL,{ACTION_PHASE:"1",RENDER_PHASE:"0",RESOURCE_PHASE:"2",createActionURL:function createActionURL(){return new PortletURL(PortletURL.ACTION_PHASE)},createRenderURL:function createRenderURL(){return new PortletURL(PortletURL.RENDER_PHASE)},createResourceURL:function createResourceURL(){return new PortletURL(PortletURL.RESOURCE_PHASE)},createURL:function createURL(basePortletURL,
params){return new PortletURL(null,params,basePortletURL)}});Liferay.PortletURL=PortletURL},"",{requires:["aui-base"]});
YUI.add("widget-position",function(e,t){function d(e){}var n=e.Lang,r=e.Widget,i="xy",s="position",o="positioned",u="boundingBox",a="relative",f="renderUI",l="bindUI",c="syncUI",h=r.UI_SRC,p="xyChange";d.ATTRS={x:{setter:function(e){this._setX(e)},getter:function(){return this._getX()},lazyAdd:!1},y:{setter:function(e){this._setY(e)},getter:function(){return this._getY()},lazyAdd:!1},xy:{value:[0,0],validator:function(e){return this._validateXY(e)}}},d.POSITIONED_CLASS_NAME=r.getClassName(o),d.prototype={initializer:function(){this._posNode=this.get(u),e.after(this._renderUIPosition,this,f),e.after(this._syncUIPosition,this,c),e.after(this._bindUIPosition,this,l)},_renderUIPosition:function(){this._posNode.addClass(d.POSITIONED_CLASS_NAME)},_syncUIPosition:function(){var e=this._posNode;e.getStyle(s)===a&&this.syncXY(),this._uiSetXY(this.get(i))},_bindUIPosition:function(){this.after(p,this._afterXYChange)},move:function(){var e=arguments,t=n.isArray(e[0])?e[0]:[e[0],e[1]];this.set(i,t)},syncXY:function(){this.set(i,this._posNode.getXY(),{src:h})},_validateXY:function(e){return n.isArray(e)&&n.isNumber(e[0])&&n.isNumber(e[1])},_setX:function(e){this.set(i,[e,this.get(i)[1]])},_setY:function(e){this.set(i,[this.get(i)[0],e])},_getX:function(){return this.get(i)[0]},_getY:function(){return this.get(i)[1]},_afterXYChange:function(e){e.src!=h&&this._uiSetXY(e.newVal)},_uiSetXY:function(e){this._posNode.setXY(e)}},e.WidgetPosition=d},"patched-v3.18.1",{requires:["base-build","node-screen","widget"]});

YUI.add("widget-stack",function(e,t){function O(e){}var n=e.Lang,r=e.UA,i=e.Node,s=e.Widget,o="zIndex",u="shim",a="visible",f="boundingBox",l="renderUI",c="bindUI",h="syncUI",p="offsetWidth",d="offsetHeight",v="parentNode",m="firstChild",g="ownerDocument",y="width",b="height",w="px",E="shimdeferred",S="shimresize",x="visibleChange",T="widthChange",N="heightChange",C="shimChange",k="zIndexChange",L="contentUpdate",A="stacked";O.ATTRS={shim:{value:r.ie==6},zIndex:{value:0,setter:"_setZIndex"}},O.HTML_PARSER={zIndex:function(e){return this._parseZIndex(e)}},O.SHIM_CLASS_NAME=s.getClassName(u),O.STACKED_CLASS_NAME=s.getClassName(A),O.SHIM_TEMPLATE='<iframe class="'+O.SHIM_CLASS_NAME+'" frameborder="0" title="Widget Stacking Shim" src="javascript:false" tabindex="-1" role="presentation"></iframe>',O.prototype={initializer:function(){this._stackNode=this.get(f),this._stackHandles={},e.after(this._renderUIStack,this,l),e.after(this._syncUIStack,this,h),e.after(this._bindUIStack,this,c)},_syncUIStack:function(){this._uiSetShim(this.get(u)),this._uiSetZIndex(this.get(o))},_bindUIStack:function(){this.after(C,this._afterShimChange),this.after(k,this._afterZIndexChange)},_renderUIStack:function(){this._stackNode.addClass(O.STACKED_CLASS_NAME)},_parseZIndex:function(e){var t;return!e.inDoc()||e.getStyle("position")==="static"?t="auto":t=e.getComputedStyle("zIndex"),t==="auto"?null:t},_setZIndex:function(e){return n.isString(e)&&(e=parseInt(e,10)),n.isNumber(e)||(e=0),e},_afterShimChange:function(e){this._uiSetShim(e.newVal)},_afterZIndexChange:function(e){this._uiSetZIndex(e.newVal)},_uiSetZIndex:function(e){this._stackNode.setStyle(o,e)},_uiSetShim:function(e){e?(this.get(a)?this._renderShim():this._renderShimDeferred(),r.ie==6&&this._addShimResizeHandlers()):this._destroyShim()},_renderShimDeferred:function(){this._stackHandles[E]=this._stackHandles[E]||[];var e=this._stackHandles[E],t=function(e){e.newVal&&this._renderShim()};e.push(this.on(x,t))},_addShimResizeHandlers:function(){this._stackHandles[S]=this._stackHandles[S]||[];var e=this.sizeShim,t=this._stackHandles[S];t.push(this.after(x,e)),t.push(this.after(T,e)),t.push(this.after(N,e)),t.push(this.after(L,e))},_detachStackHandles:function(e){var t=this._stackHandles[e],n;if(t&&t.length>0)while(n=t.pop())n.detach()},_renderShim:function(){var e=this._shimNode,t=this._stackNode;e||(e=this._shimNode=this._getShimTemplate(),t.insertBefore(e,t.get(m)),this._detachStackHandles(E),this.sizeShim())},_destroyShim:function(){this._shimNode&&(this._shimNode.get(v).removeChild(this._shimNode),this._shimNode=null,this._detachStackHandles(E),this._detachStackHandles(S))},sizeShim:function(){var e=this._shimNode,t=this._stackNode;e&&r.ie===6&&this.get(a)&&(e.setStyle(y,t.get(p)+w),e.setStyle(b,t.get(d)+w))},_getShimTemplate:function(){return i.create(O.SHIM_TEMPLATE,this._stackNode.get(g))}},e.WidgetStack=O},"patched-v3.18.1",{requires:["base-build","widget"],skinnable:!0});

YUI.add("widget-position-align",function(t,e){var i=t.Lang,n="align",s="visible",a="offsetWidth",o="offsetHeight";function g(t){}g.ATTRS={align:{value:null},centered:{setter:"_setAlignCenter",lazyAdd:!1,value:!1},alignOn:{value:[],validator:t.Lang.isArray}},g.TL="tl",g.TR="tr",g.BL="bl",g.BR="br",g.TC="tc",g.RC="rc",g.BC="bc",g.LC="lc",g.CC="cc",g.prototype={initializer:function(){this._posNode||t.error("WidgetPosition needs to be added to the Widget, before WidgetPositionAlign is added"),t.after(this._bindUIPosAlign,this,"bindUI"),t.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(n);this._uiSetVisiblePosAlign(this.get(s)),t&&this._uiSetAlign(t.node,t.points)},align:function(t,e){return arguments.length?this.set(n,{node:t,points:e}):this._syncUIPosAlign(),this},centered:function(t){return this.align(t,[g.CC,g.CC])},_getAlignToXY:function(t,e,i,n){var s;switch(e){case g.TL:s=[i,n];break;case g.TR:s=[i-t.get(a),n];break;case g.BL:s=[i,n-t.get(o)];break;case g.BR:s=[i-t.get(a),n-t.get(o)];break;case g.TC:s=[i-t.get(a)/2,n];break;case g.BC:s=[i-t.get(a)/2,n-t.get(o)];break;case g.LC:s=[i,n-t.get(o)/2];break;case g.RC:s=[i-t.get(a),n-t.get(o)/2];break;case g.CC:s=[i-t.get(a)/2,n-t.get(o)/2]}return s},_getAlignedXY:function(e,n){if(i.isArray(n)&&2===n.length){var s,a=this._getRegion(e);if(a){switch(n[1]){case g.TL:s=[a.left,a.top];break;case g.TR:s=[a.right,a.top];break;case g.BL:s=[a.left,a.bottom];break;case g.BR:s=[a.right,a.bottom];break;case g.TC:s=[a.left+Math.floor(a.width/2),a.top];break;case g.BC:s=[a.left+Math.floor(a.width/2),a.bottom];break;case g.LC:s=[a.left,a.top+Math.floor(a.height/2)];break;case g.RC:s=[a.right,a.top+Math.floor(a.height/2)];break;case g.CC:s=[a.left+Math.floor(a.width/2),a.top+Math.floor(a.height/2)]}return this._getAlignToXY(this._posNode,n[0],s[0],s[1])}}else t.error("align: Invalid Points Arguments")},_setAlignCenter:function(t){return t&&this.set(n,{node:!0===t?null:t,points:[g.CC,g.CC]}),t},_uiSetAlign:function(t,e){var i=this._getAlignedXY(t,e);i&&this._doAlign(i)},_uiSetVisiblePosAlign:function(t){t?this._attachPosAlignUIHandles():this._detachPosAlignUIHandles()},_attachPosAlignUIHandles:function(){if(!this._posAlignUIHandles){var e=this.get("boundingBox"),i=t.bind(this._syncUIPosAlign,this),n=[];t.Array.each(this.get("alignOn"),function(s){var a=s.eventName,o=t.one(s.node)||e;a&&n.push(o.on(a,i))}),this._posAlignUIHandles=n}},_detachPosAlignUIHandles:function(){var e=this._posAlignUIHandles;e&&(new t.EventHandle(e).detach(),this._posAlignUIHandles=null)},_doAlign:function(t){t&&this.move(t)},_getRegion:function(e){var i;return e?(e=t.Node.one(e))&&(i=e.get("region")):i=this._posNode.get("viewportRegion"),i},_afterAlignChange:function(t){var e=t.newVal;e&&this._uiSetAlign(e.node,e.points)},_afterAlignOnChange:function(t){this._detachPosAlignUIHandles(),this.get(s)&&this._attachPosAlignUIHandles()}},t.WidgetPositionAlign=g},"patched-v3.18.1",{requires:["widget-position"]});
YUI.add("widget-position-constrain",function(e,t){function m(e){}var n="constrain",r="constrain|xyChange",i="constrainChange",s="preventOverlap",o="align",u="",a="bindUI",f="xy",l="x",c="y",h=e.Node,p="viewportRegion",d="region",v;m.ATTRS={constrain:{value:null,setter:"_setConstrain"},preventOverlap:{value:!1}},v=m._PREVENT_OVERLAP={x:{tltr:1,blbr:1,brbl:1,trtl:1},y:{trbr:1,tlbl:1,bltl:1,brtr:1}},m.prototype={initializer:function(){this._posNode||e.error("WidgetPosition needs to be added to the Widget, before WidgetPositionConstrain is added"),e.after(this._bindUIPosConstrained,this,a)},getConstrainedXY:function(e,t){t=t||this.get(n);var r=this._getRegion(t===!0?null:t),i=this._posNode.get(d);return[this._constrain(e[0],l,i,r),this._constrain(e[1],c,i,r)]},constrain:function(e,t){var r,i,s=t||this.get(n);s&&(r=e||this.get(f),i=this.getConstrainedXY(r,s),(i[0]!==r[0]||i[1]!==r[1])&&this.set(f,i,{constrained:!0}))},_setConstrain:function(e){return e===!0?e:h.one(e)},_constrain:function(e,t,n,r){if(r){this.get(s)&&(e=this._preventOverlap(e,t,n,r));var i=t==l,o=i?r.width:r.height,u=i?n.width:n.height,a=i?r.left:r.top,f=i?r.right-u:r.bottom-u;if(e<a||e>f)u<o?e<a?e=a:e>f&&(e=f):e=a}return e},_preventOverlap:function(e,t,n,r){var i=this.get(o),s=t===l,a,f,c,h,p,d;return i&&i.points&&v[t][i.points.join(u)]&&(f=this._getRegion(i.node),f&&(a=s?n.width:n.height,c=s?f.left:f.top,h=s?f.right:f.bottom,p=s?f.left-r.left:f.top-r.top,d=s?r.right-f.right:r.bottom-f.bottom),e>c?d<a&&p>a&&(e=c-a):p<a&&d>a&&(e=h)),e},_bindUIPosConstrained:function(){this.after(i,this._afterConstrainChange),this._enableConstraints(this.get(n))},_afterConstrainChange:function(e){this._enableConstraints(e.newVal)},_enableConstraints:function(e){e?(this.constrain(),this._cxyHandle=this._cxyHandle||this.on(r,this._constrainOnXYChange)):this._cxyHandle&&(this._cxyHandle.detach(),this._cxyHandle=null)},_constrainOnXYChange:function(e){e.constrained||(e.newVal=this.getConstrainedXY(e.newVal))},_getRegion:function(e){var t;return e?(e=h.one(e),e&&(t=e.get(d))):t=this._posNode.get(p),t}},e.WidgetPositionConstrain=m},"patched-v3.18.1",{requires:["widget-position"]});

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.78",{requires:["widget-position","widget-stack","widget-position-align","widget-position-constrain","widget-stdmod","aui-component"]});

YUI.add("aui-overlay-mask-deprecated",function(e,t){var n=e.Lang,r=n.isArray,i=n.isString,s=n.isNumber,o=n.isValue,u=e.config,a=e.UA,f=a.ie<=6,l="absolute",c="alignPoints",h="background",p="boundingBox",d="contentBox",v="fixed",m="height",g="offsetHeight",y="offsetWidth",b="opacity",w="overlaymask",E="position",S="target",x="width",T=e.Component.create({NAME:w,ATTRS:{alignPoints:{value:["tl","tl"],validator:r},background:{lazyAdd:!1,value:null,validator:i,setter:function(e){return e&&this.get(d).setStyle(h,e),e}},target:{cloneDefaultValue:!1,lazyAdd:!1,value:u.doc,setter:function(t){var n=this,r=e.one(t),i=n._isDoc=r.compareTo(u.doc),s=n._isWin=r.compareTo(u.win);return n._fullPage=i||s,r}},opacity:{value:.5,validator:s,setter:function(e){return this._setOpacity(e)}},shim:{value:e.UA.ie},visible:{value:!1},zIndex:{value:1e3}},EXTENDS:e.OverlayBase,prototype:{bindUI:function(){var t=this;T.superclass.bindUI.apply(this,arguments),t._eventHandles=[t.after("targetChange",t._afterTargetChange),t.after("visibleChange",t._afterVisibleChange),e.on("windowresize",e.bind(t.refreshMask,t))]},syncUI:function(){var e=this;e.refreshMask()},destructor:function(){var t=this;(new e.EventHandle(t._eventHandles)).detach()},getTargetSize:function(){var t=this,n=t.get(S),r=t._isDoc,i=t._isWin,s=n.get(g),o=n.get(y);return f?i?(o=e.DOM.winWidth(),s=e.DOM.winHeight()):r&&(o=e.DOM.docWidth(),s=e.DOM.docHeight()):t._fullPage&&(s="100%",o="100%"),{height:s,width:o}},refreshMask:function(){var e=this,t=e.get(c),n=e.get(S),r=e.get(p),i=e.getTargetSize(),s=e._fullPage;r.setStyles({position:f||!s?l:v,left:0,top:0});var u=i.height,a=i.width;o(u)&&e.set(m,u),o(a)&&e.set(x,a),s||e.align(n,t)},_setOpacity:function(e){var t=this;return t.get(d).setStyle(b,e),e},_uiSetVisible:function(e){var t=this;T.superclass._uiSetVisible.apply(this,arguments),e&&t._setOpacity(t.get(b))},_afterTargetChange:function(e){var t=this;t.refreshMask()},_afterVisibleChange:function(e){var t=this;t._uiSetVisible(e.newVal)},_uiSetXY:function(){var e=this;(!e._fullPage||f)&&T.superclass._uiSetXY.apply(e,arguments)}}});e.OverlayMask=T},"3.1.0-deprecated.78",{requires:["event-resize","aui-base-deprecated","aui-overlay-base-deprecated"],skinnable:!0});

YUI.add("aui-loading-mask-deprecated",function(e,t){var n=e.Lang,r="boundingBox",i="contentBox",s="hide",o="host",u="messageEl",t="loadingmask",a="position",f="show",l="static",c="strings",h="target",p="toggle",d=e.getClassName,v=d(t),m=d(t,"masked"),g=d(t,"masked","relative"),y=d(t,"message"),b=d(t,"message","content"),w='<div class="'+y+'"><div class="'+b+'">{0}</div></div>',E=e.Component.create({NAME:t,NS:t,ATTRS:{messageEl:{valueFn:function(t){var r=this,i=r.get(c);return e.Node.create(n.sub(w,[i.loading]))}},strings:{value:{loading:"Loading&hellip;"}},target:{setter:function(){var t=this,n=t.get(o);return n instanceof e.Widget&&(n=n.get(i)),n},value:null}},EXTENDS:e.Plugin.Base,prototype:{initializer:function(t){var n=this;n.IGNORED_ATTRS=e.merge({host:!0},E.ATTRS),n.renderUI(),n.bindUI(),n._createDynamicAttrs(t)},renderUI:function(){var e=this,t=e.get(c);e._renderOverlayMask(),e.overlayMask.get(r).append(e.get(u))},bindUI:function(){var e=this;e._bindOverlayMaskUI()},destructor:function(){var e=this;e.overlayMask.destroy(),e._visibleChangeHandle.detach()},_bindOverlayMaskUI:function(){var e=this;e._visibleChangeHandle=e.overlayMask.after("visibleChange",e._afterVisibleChange,e)},centerMessage:function(){var e=this;e.get(u).center(e.overlayMask.get(r))},refreshMask:function(){var e=this;e.overlayMask.refreshMask(),e.centerMessage()},_afterVisibleChange:function(e){var t=this,n=t.get(h),r=n.getStyle(a)==l;n.toggleClass(m,e.newVal),n.toggleClass(g,e.newVal&&r),e.newVal&&t.refreshMask()},_renderOverlayMask:function(){var t=this,n=t.get(h);t.overlayMask=(new e.OverlayMask({target:n,cssClass:v})).render(n)},_createDynamicAttrs:function(t){var n=this;e.each(t,function(e,t){var r=n.IGNORED_ATTRS[t];r||n.addAttr(t,{setter:function(e){return this.overlayMask.set(t,e),e},value:e})})}}});e.each([s,f,p],function(e){E.prototype[e]=function(){this.overlayMask[e]()}}),e.LoadingMask=E},"3.1.0-deprecated.78",{requires:["plugin","aui-overlay-mask-deprecated"],skinnable:!0});

YUI.add("aui-dialog-iframe-deprecated",function(e,t){var n=e.Lang,r=n.isFunction,i=e.getClassName,s="iframe",o="bindLoadHandler",u="bodyContent",a="closeOnEscape",f="contentWindow",l="detach",c="document",h="documentElement",p="gutter",d="host",v="iframeCssClass",m="iframeId",g="iframeTitle",y="key",b="load",w="offsetHeight",E="offsetWidth",S="paddingBottom",x="paddingLeft",T="paddingRight",N="paddingTop",C="renderUI",k="rendered",L="src",A="unload",O="uri",M="uriChange",_="visibleChange",D=i("dialog",s,"bd"),P=i("dialog",s,"node"),H=i("dialog",s,"root","node"),B=[P],j='<iframe class="{cssClass}" frameborder="0" id="{id}" name="{id}" src="{uri}" title="{title}"></iframe>',F=e.Widget.UI_SRC,I={src:F},q=e.Component.create({ATTRS:{bindLoadHandler:{validator:r,value:function(){var t=this;t.node.on("load",e.bind(t.fire,t,"load"))}},closeOnEscape:{validator:n.isBoolean,value:!0},gutter:{setter:"_setGutter",valueFn:"_gutterValueFn"},iframeCssClass:{value:"",setter:"_setIframeCssClass"},iframeId:{valueFn:function(){var t=this;return t.get("id")||e.guid()}},iframeTitle:{validator:n.isString,value:""},uri:{}},EXTENDS:e.Plugin.Base,NAME:s,NS:s,prototype:{initializer:function(){var t=this;t._host=t.get(d),t._eventHandles=[],t.publish(b,{defaultFn:t._defaultLoadIframeFn}),t._host.get(k)?t._initializeIframe():t.afterHostMethod(C,e.debounce(t._afterRenderUI,50,t),t),t.afterHostMethod("_uiSetVisible",e.bind(t._afterHostUISetVisible,t),t),t.afterHostMethod("_fillHeight",e.bind(t._setNodeDimensions,t),t),t.afterHostMethod("_uiSetWidth",e.bind(t._setNodeDimensions,t),t),t.after(a+"Change",t._uiSetCloseOnEscape,t)},destructor:function(){var e=this;e._bodyNode.loadingmask.destroy(),e._detachEventHandles(),e._host.set(u,e._previousBodyContent),e.node.remove(!0)},_afterHostUISetVisible:function(e){var t=this;e&&t._host._fillHeight()},_afterRenderUI:function(){var e=this;e._initializeIframe()},_afterUriChange:function(e){var t=this;e.src!==F&&t._uiSetUri(e.newVal,e.prevVal)},_bindEvents:function(){var t=this;t.afterHostEvent(_,t._afterDialogVisibleChange),t.after(M,t._afterUriChange),t.node.on(b,e.bind(t._onLoadIframe,t));var n=t.get(o);n.call(t)},_detachEventHandles:function(){var t=this,n=t._eventHandles;e.Array.invoke(n,l),t._eventCloseOnEscapeHandle&&t._eventCloseOnEscapeHandle.detach(),n.length=0},_defaultLoadIframeFn:function(){var e=this,t=e.node;try{var n=t.get(f);n.once(A,e._detachEventHandles,e);var r=n.get(c);r.get(h).addClass(H),e.set(O,r.get("location.href"),I),e._uiSetCloseOnEscape()}catch(i){}e._bodyNode.loadingmask.hide(),e._host._syncUIPosAlign()},_gutterValueFn:function(){return function(){var e=this,t=e._host.bodyNode;return{bottom:t.getStyle(S),left:t.getStyle(x),right:t.getStyle(T),top:t.getStyle(N)}}},_initializeIframe:function(){var t=this;t._plugIframe(),t._bindEvents();var n=t._bodyNode;n.plug(e.LoadingMask);var r=n.loadingmask;r.overlayMask.after(_,t._afterMaskVisibleChange,t),r.show()},_onLoadIframe:function(){var e=this;e._setIframeContentGutter(),e._setNodeDimensions()},_plugIframe:function(){var t=this,r=n.sub(j,{cssClass:t.get(v),title:t.get(g),id:t.get(m),uri:t.get(O)}),i=t._host.bodyNode,s=e.Node.create(r);t._host.set(u,s),i.addClass(D),t._bodyNode=i,t.node=s},_setGutter:function(e){var t=this;return r(e)&&(e=e.call(t)),e},_setIframeContentGutter:function(){var e=this,t=e._host.bodyNode,n=e.get(p),r=e.node.get(f),i=r.get(c);i.get(h).setStyles({paddingBottom:n.bottom,paddingLeft:n.left,paddingRight:n.right,paddingTop:n.top}),t.setStyles({height:t.get(w),padding:"0"})},_setIframeCssClass:function(e){return B[1]=e,B.join(" ")},_setNodeDimensions:function(){var e=this,t=e._host.bodyNode,n=e.node;t&&n&&n.setStyles({height:t.get(w),width:t.get(E)})},_uiSetCloseOnEscape:function(){var t=this;if(t.get(a))try{var n=t.node.get(f),r=n.get(c);t._eventCloseOnEscapeHandle=e.on(y,function(){t._host.hide()},[r],"down:27")}catch(i){}else t._eventCloseOnEscapeHandle&&(t._eventCloseOnEscapeHandle.detach(),t._eventCloseOnEscapeHandle=null)},_uiSetUri:function(e,t){var n=this,r=n._bodyNode.loadingmask,i=t.split("#"),s=e.split("#");s[0]!==i[0]&&r&&r.show(),n.node.attr(L,e)}}});e.Plugin.DialogIframe=q},"3.1.0-deprecated.78",{requires:["plugin","array-invoke","aui-base-deprecated","aui-loading-mask-deprecated"],skinnable:!0});

YUI.add("widget-autohide",function(e,t){function m(t){e.after(this._bindUIAutohide,this,f),e.after(this._syncUIAutohide,this,l),this.get(c)&&(this._bindUIAutohide(),this._syncUIAutohide())}var n="widgetAutohide",r="autohide",i="clickoutside",s="focusoutside",o="document",u="key",a="esc",f="bindUI",l="syncUI",c="rendered",h="boundingBox",p="visible",d="Change",v=e.ClassNameManager.getClassName;m.ATTRS={hideOn:{validator:e.Lang.isArray,valueFn:function(){return[{node:e.one(o),eventName:u,keyCode:a}]}}},m.prototype={_uiHandlesAutohide:null,destructor:function(){this._detachUIHandlesAutohide()},_bindUIAutohide:function(){this.after(p+d,this._afterHostVisibleChangeAutohide),this.after("hideOnChange",this._afterHideOnChange)},_syncUIAutohide:function(){this._uiSetHostVisibleAutohide(this.get(p))},_uiSetHostVisibleAutohide:function(t){t?e.later(1,this,"_attachUIHandlesAutohide"):this._detachUIHandlesAutohide()},_attachUIHandlesAutohide:function(){if(this._uiHandlesAutohide)return;var t=this.get(h),n=e.bind(this.hide,this),r=[],i=this,s=this.get("hideOn"),o=0,u={node:undefined,ev:undefined,keyCode:undefined};for(;o<s.length;o++)u.node=s[o].node,u.ev=s[o].eventName,u.keyCode=s[o].keyCode,!u.node&&!u.keyCode&&u.ev?r.push(t.on(u.ev,n)):u.node&&!u.keyCode&&u.ev?r.push(u.node.on(u.ev,n)):u.node&&u.keyCode&&u.ev&&r.push(u.node.on(u.ev,n,u.keyCode));this._uiHandlesAutohide=r},_detachUIHandlesAutohide:function(){e.each(this._uiHandlesAutohide,function(e){e.detach()}),this._uiHandlesAutohide=null},_afterHostVisibleChangeAutohide:function(e){this._uiSetHostVisibleAutohide(e.newVal)},_afterHideOnChange:function(e){this._detachUIHandlesAutohide(),this.get(p)&&this._attachUIHandlesAutohide()}},e.WidgetAutohide=m},"patched-v3.18.1",{requires:["base-build","event-key","event-outside","widget"]});

