YUI.add("yui-throttle",function(r,t){
/*! Based on work by Simon Willison: http://gist.github.com/292562 */
r.throttle=function(n,i){var o;return-1===(i=i||r.config.throttleTime||150)?function(){n.apply(this,arguments)}:(o=r.Lang.now(),function(){var t=r.Lang.now();i<t-o&&(o=t,n.apply(this,arguments))})}},"patched-v3.18.7",{requires:["yui-base"]});
YUI.add("event-resize",function(c,e){c.Event.define("windowresize",{on:c.UA.gecko&&c.UA.gecko<1.91?function(e,n,t){n._handle=c.Event.attach("resize",function(e){t.fire(e)})}:function(e,n,t){var i=c.config.windowResizeDelay||100;n._handle=c.Event.attach("resize",function(e){n._timer&&n._timer.cancel(),n._timer=c.later(i,c,function(){t.fire(e)})})},detach:function(e,n){n._timer&&n._timer.cancel(),n._handle.detach()}})},"patched-v3.18.7",{requires:["node-base","event-synthetic"]});
AUI.add("liferay-hudcrumbs",(e=>{const t=e.Lang,o="hudcrumbs",i=e.Component.create({ATTRS:{clone:{value:null},hostMidpoint:{validator:t.isNumber,value:0},scrollDelay:{validator:t.isNumber,value:50},width:{validtor:t.isNumber,value:0}},EXTENDS:e.Plugin.Base,NAME:o,NS:o,prototype:{_calculateDimensions(){const e=this,t=e.get("host").get("region");e.get("clone").setStyles({left:t.left+"px",width:t.width+"px"}),e.set("hostMidpoint",t.top+t.height/2)},_onScroll(e){const t=this,o=e.currentTarget.get("scrollTop"),i=t.get("clone");let s="hide";o>=t.get("hostMidpoint")&&(s="show"),t.lastAction!==s&&i[s](),t.lastAction=s},_onStartNavigate(){this.get("clone").hide()},destructor(){const e=this;Liferay.detach("startNavigate",e._onStartNavigate);const t=e._win;t.detach("scroll",e._onScrollTask),t.detach("windowresize",e._calculateDimensions)},initializer(){const t=this,o=t.get("host").clone();o.resetId();const i=e.getBody(),s=e.getWin();t._body=i,t._win=s,o.hide(),o.addClass("lfr-hudcrumbs"),t.set("clone",o),t._calculateDimensions(),t._onScrollTask=e.debounce(t._onScroll,t.get("scrollDelay"),t),s.on("scroll",t._onScrollTask),s.on("windowresize",t._calculateDimensions,t),i.append(o),Liferay.on("startNavigate",t._onStartNavigate,t)}}});e.Hudcrumbs=i}),"",{requires:["aui-base","aui-debounce","event-resize"]});

YUI.add("event-mouseenter",function(h,e){var a=h.Env.evt.dom_wrappers,f=h.DOM.contains,p=h.Array,o=function(){},t={proxyType:"mouseover",relProperty:"fromElement",_notify:function(e,t,n){var r=this._node,t=e.relatedTarget||e[t];r===t||f(r,t)||n.fire(new h.DOMEventFacade(e,r,a["event:"+h.stamp(r)+e.type]))},on:function(e,t,n){e=h.Node.getDOMNode(e),e=[this.proxyType,this._notify,e,null,this.relProperty,n];t.handle=h.Event._attach(e,{facade:!1})},detach:function(e,t){t.handle.detach()},delegate:function(e,t,n,r){e=h.Node.getDOMNode(e),e=[this.proxyType,o,e,null,n];t.handle=h.Event._attach(e,{facade:!1}),t.handle.sub.filter=r,t.handle.sub.relProperty=this.relProperty,t.handle.sub._notify=this._filterNotify},_filterNotify:function(e,t,n){t=t.slice(),this.args&&t.push.apply(t,this.args);var r,a,o,i,l,d=h.delegate._applyFilter(this.filter,t,n),s=t[0].relatedTarget||t[0][this.relProperty];if(d)for(a=0,o=(d=p(d)).length&&(!r||!r.stopped);a<o&&(l=d[0],f(l,s)||(r||((r=new h.DOMEventFacade(t[0],l,n)).container=h.one(n.el)),r.currentTarget=h.one(l),!1!==(i=t[1].fire(r))));++a);return i},detachDelegate:function(e,t){t.handle.detach()}};h.Event.define("mouseenter",t,!0),h.Event.define("mouseleave",h.merge(t,{proxyType:"mouseout",relProperty:"toElement"}),!0)},"patched-v3.18.7",{requires:["event-synthetic"]});
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"]});
YUI.add("event-simulate",function(F,e){var t,n,q,R,V,H,J,Q,W,Z,$,_,ee,te;t=F.Lang,n=F.config.win,q=t.isFunction,R=t.isString,V=t.isBoolean,H=t.isObject,J=t.isNumber,Q={click:1,dblclick:1,mouseover:1,mouseout:1,mousedown:1,mouseup:1,mousemove:1,contextmenu:1},W=n&&n.PointerEvent?{pointerover:1,pointerout:1,pointerdown:1,pointerup:1,pointermove:1}:{MSPointerOver:1,MSPointerOut:1,MSPointerDown:1,MSPointerUp:1,MSPointerMove:1},Z={keydown:1,keyup:1,keypress:1},$={submit:1,blur:1,change:1,focus:1,resize:1,scroll:1,select:1},_={scroll:1,resize:1,reset:1,submit:1,change:1,select:1,error:1,abort:1},ee={touchstart:1,touchmove:1,touchend:1,touchcancel:1},te={gesturestart:1,gesturechange:1,gestureend:1},F.mix(_,Q),F.mix(_,Z),F.mix(_,ee),F.Event.simulate=function(S,e,t){if(t=t||{},Q[e]||W[e]){var n=S,o=e,r=t.bubbles,i=t.cancelable,a=t.view,s=t.detail,c=t.screenX,u=t.screenY,l=t.clientX,v=t.clientY,m=t.ctrlKey,g=t.altKey,E=t.shiftKey,b=t.metaKey,d=t.button,h=t.relatedTarget,y=(n||F.error("simulateMouseEvent(): Invalid target."),R(o)?Q[o.toLowerCase()]||W[o]||F.error("simulateMouseEvent(): Event type '"+o+"' not supported."):F.error("simulateMouseEvent(): Event type must be a string."),V(r)||(r=!0),V(i)||(i="mousemove"!==o),H(a)||(a=F.config.win),J(s)||(s=1),J(c)||(c=0),J(u)||(u=0),J(l)||(l=0),J(v)||(v=0),V(m)||(m=!1),V(g)||(g=!1),V(E)||(E=!1),V(b)||(b=!1),J(d)||(d=0),h=h||null,null);if(q(F.config.doc.createEvent))(y=F.config.doc.createEvent("MouseEvents")).initMouseEvent?y.initMouseEvent(o,r,i,a,s,c,u,l,v,m,g,E,b,d,h):((y=F.config.doc.createEvent("UIEvents")).initEvent(o,r,i),y.view=a,y.detail=s,y.screenX=c,y.screenY=u,y.clientX=l,y.clientY=v,y.ctrlKey=m,y.altKey=g,y.metaKey=b,y.shiftKey=E,y.button=d,y.relatedTarget=h),h&&!y.relatedTarget&&("mouseout"===o?y.toElement=h:"mouseover"===o&&(y.fromElement=h)),n.dispatchEvent(y);else if(H(F.config.doc.createEventObject)){switch((y=F.config.doc.createEventObject()).bubbles=r,y.cancelable=i,y.view=a,y.detail=s,y.screenX=c,y.screenY=u,y.clientX=l,y.clientY=v,y.ctrlKey=m,y.altKey=g,y.metaKey=b,y.shiftKey=E,d){case 0:y.button=1;break;case 1:y.button=4;break;case 2:break;default:y.button=0}y.relatedTarget=h,n.fireEvent("on"+o,y)}else F.error("simulateMouseEvent(): No event simulation framework present.")}else if(Z[e]){var r=S,f=e,i=t.bubbles,a=t.cancelable,s=t.view,c=t.ctrlKey,u=t.altKey,l=t.shiftKey,v=t.metaKey,m=t.keyCode,g=t.charCode;if(r||F.error("simulateKeyEvent(): Invalid target."),R(f))switch(f=f.toLowerCase()){case"textevent":f="keypress";break;case"keyup":case"keydown":case"keypress":break;default:F.error("simulateKeyEvent(): Event type '"+f+"' not supported.")}else F.error("simulateKeyEvent(): Event type must be a string.");V(i)||(i=!0),V(a)||(a=!0),H(s)||(s=F.config.win),V(c)||(c=!1),V(u)||(u=!1),V(l)||(l=!1),V(v)||(v=!1),J(m)||(m=0),J(g)||(g=0);b=null;if(q(F.config.doc.createEvent)){try{(b=F.config.doc.createEvent("KeyEvents")).initKeyEvent(f,i,a,s,c,u,l,v,m,g)}catch(z){try{b=F.config.doc.createEvent("Events")}catch(D){b=F.config.doc.createEvent("UIEvents")}finally{b.initEvent(f,i,a),b.view=s,b.altKey=u,b.ctrlKey=c,b.shiftKey=l,b.metaKey=v,b.keyCode=m,b.charCode=g}}r.dispatchEvent(b)}else H(F.config.doc.createEventObject)?((b=F.config.doc.createEventObject()).bubbles=i,b.cancelable=a,b.view=s,b.ctrlKey=c,b.altKey=u,b.shiftKey=l,b.metaKey=v,b.keyCode=0<g?g:m,r.fireEvent("on"+f,b)):F.error("simulateKeyEvent(): No event simulation framework present.")}else $[e]?(E=S,d=e,h=t.bubbles,o=t.cancelable,n=t.view,Y=t.detail,E||F.error("simulateUIEvent(): Invalid target."),R(d)?(d=d.toLowerCase(),$[d]||F.error("simulateUIEvent(): Event type '"+d+"' not supported.")):F.error("simulateUIEvent(): Event type must be a string."),C=null,V(h)||(h=d in _),V(o)||(o="submit"===d),H(n)||(n=F.config.win),J(Y)||(Y=1),q(F.config.doc.createEvent)?((C=F.config.doc.createEvent("UIEvents")).initUIEvent(d,h,o,n,Y),E.dispatchEvent(C)):H(F.config.doc.createEventObject)?((C=F.config.doc.createEventObject()).bubbles=h,C.cancelable=o,C.view=n,C.detail=Y,E.fireEvent("on"+d,C)):F.error("simulateUIEvent(): No event simulation framework present.")):ee[e]?!(F.config.win&&"ontouchstart"in F.config.win)||F.UA.phantomjs||F.UA.chrome&&F.UA.chrome<6?F.error("simulate(): Event '"+e+"' can't be simulated. Use gesture-simulate module instead."):(Y=S,C=e,p=t.bubbles,K=t.cancelable,L=t.view,w=t.detail,N=t.screenX,U=t.screenY,k=t.clientX,T=t.clientY,M=t.ctrlKey,I=t.altKey,A=t.shiftKey,O=t.metaKey,B=t.touches,X=t.targetTouches,j=t.changedTouches,P=t.scale,x=t.rotation,Y||F.error("simulateTouchEvent(): Invalid target."),F.Lang.isString(C)?(C=C.toLowerCase(),ee[C]||F.error("simulateTouchEvent(): Event type '"+C+"' not supported.")):F.error("simulateTouchEvent(): Event type must be a string."),"touchstart"===C||"touchmove"===C?0===B.length&&F.error("simulateTouchEvent(): No touch object in touches"):"touchend"===C&&0===j.length&&F.error("simulateTouchEvent(): No touch object in changedTouches"),F.Lang.isBoolean(p)||(p=!0),F.Lang.isBoolean(K)||(K="touchcancel"!==C),F.Lang.isObject(L)||(L=F.config.win),F.Lang.isNumber(w)||(w=1),F.Lang.isNumber(N)||(N=0),F.Lang.isNumber(U)||(U=0),F.Lang.isNumber(k)||(k=0),F.Lang.isNumber(T)||(T=0),F.Lang.isBoolean(M)||(M=!1),F.Lang.isBoolean(I)||(I=!1),F.Lang.isBoolean(A)||(A=!1),F.Lang.isBoolean(O)||(O=!1),F.Lang.isNumber(P)||(P=1),F.Lang.isNumber(x)||(x=0),F.Lang.isFunction(F.config.doc.createEvent)?(F.UA.android?F.UA.android<4?((G=F.config.doc.createEvent("MouseEvents")).initMouseEvent(C,p,K,L,w,N,U,k,T,M,I,A,O,0,Y),G.touches=B,G.targetTouches=X,G.changedTouches=j):(G=F.config.doc.createEvent("TouchEvent")).initTouchEvent(B,X,j,C,L,N,U,k,T,M,I,A,O):F.UA.ios?2<=F.UA.ios?(G=F.config.doc.createEvent("TouchEvent")).initTouchEvent(C,p,K,L,w,N,U,k,T,M,I,A,O,B,X,j,P,x):F.error("simulateTouchEvent(): No touch event simulation framework present for iOS, "+F.UA.ios+"."):F.error("simulateTouchEvent(): Not supported agent yet, "+F.UA.userAgent),Y.dispatchEvent(G)):F.error(
"simulateTouchEvent(): No event simulation framework present.")):F.UA.ios&&2<=F.UA.ios&&te[e]?(p=S,K=e,L=t.bubbles,w=t.cancelable,N=t.view,U=t.detail,k=t.screenX,T=t.screenY,M=t.clientX,I=t.clientY,A=t.ctrlKey,O=t.altKey,B=t.shiftKey,X=t.metaKey,j=t.scale,P=t.rotation,(!F.UA.ios||F.UA.ios<2)&&F.error("simulateGestureEvent(): Native gesture DOM eventframe is not available in this platform."),p||F.error("simulateGestureEvent(): Invalid target."),F.Lang.isString(K)?(K=K.toLowerCase(),te[K]||F.error("simulateTouchEvent(): Event type '"+K+"' not supported.")):F.error("simulateGestureEvent(): Event type must be a string."),F.Lang.isBoolean(L)||(L=!0),F.Lang.isBoolean(w)||(w=!0),F.Lang.isObject(N)||(N=F.config.win),F.Lang.isNumber(U)||(U=2),F.Lang.isNumber(k)||(k=0),F.Lang.isNumber(T)||(T=0),F.Lang.isNumber(M)||(M=0),F.Lang.isNumber(I)||(I=0),F.Lang.isBoolean(A)||(A=!1),F.Lang.isBoolean(O)||(O=!1),F.Lang.isBoolean(B)||(B=!1),F.Lang.isBoolean(X)||(X=!1),F.Lang.isNumber(j)||(j=1),F.Lang.isNumber(P)||(P=0),(x=F.config.doc.createEvent("GestureEvent")).initGestureEvent(K,L,w,N,U,k,T,M,I,A,O,B,X,p,j,P),p.dispatchEvent(x)):F.error("simulate(): Event '"+e+"' can't be simulated.");var p,K,L,w,N,U,k,T,M,I,A,O,B,X,j,P,x,G,Y,C}},"patched-v3.18.7",{requires:["event-base"]});
YUI.add("async-queue",function(e,t){e.AsyncQueue=function(){this._init(),this.add.apply(this,arguments)};var i=e.AsyncQueue,s="shift",u="promote",r="remove",h=e.Lang.isObject,a=e.Lang.isFunction;i.defaults=e.mix({autoContinue:!0,iterations:1,timeout:10,until:function(){return this.iterations|=0,this.iterations<=0}},e.config.queueDefaults||{}),e.extend(i,e.EventTarget,{_running:!1,_init:function(){e.EventTarget.call(this,{prefix:"queue",emitFacade:!0}),this._q=[],this.defaults={},this._initEvents()},_initEvents:function(){this.publish({execute:{defaultFn:this._defExecFn,emitFacade:!0},shift:{defaultFn:this._defShiftFn,emitFacade:!0},add:{defaultFn:this._defAddFn,emitFacade:!0},promote:{defaultFn:this._defPromoteFn,emitFacade:!0},remove:{defaultFn:this._defRemoveFn,emitFacade:!0}})},next:function(){for(var t;this._q.length&&(t=this._q[0]=this._prepare(this._q[0]))&&t.until();)this.fire(s,{callback:t}),t=null;return t||null},_defShiftFn:function(t){0===this.indexOf(t.callback)&&this._q.shift()},_prepare:function(t){var n;return a(t)&&t._prepared?t:(t=e.merge(i.defaults,{context:this,args:[],_prepared:!0},this.defaults,a(t)?{fn:t}:t),n=e.bind(function(){n._running||n.iterations--,a(n.fn)&&n.fn.apply(n.context||e,e.Array(n.args))},this),e.mix(n,t))},run:function(){var t;if(this._executing)this._running=!0;else{for(t=this.next();t&&!this.isRunning()&&(t.timeout<0?this._execute(t):this._schedule(t));t=this.next());t||this.fire("complete")}return this},_execute:function(t){this._running=t._running=!0,(this._executing=t).iterations--,this.fire("execute",{callback:t});var n=this._running&&t.autoContinue;return this._running=t._running=!1,this._executing=!1,n},_schedule:function(t){return this._running=e.later(t.timeout,this,function(){this._execute(t)&&this.run()}),!1},isRunning:function(){return!!this._running},_defExecFn:function(t){t.callback()},add:function(){return this.fire("add",{callbacks:e.Array(arguments,0,!0)}),this},_defAddFn:function(t){var n=this._q,i=[];e.Array.each(t.callbacks,function(t){h(t)&&(n.push(t),i.push(t))}),t.added=i},pause:function(){return this._running&&h(this._running)&&this._running.cancel(),this._running=!1,this},stop:function(){return this._q=[],this._running&&h(this._running)&&(this._running.cancel(),this._running=!1),this._executing||this.run(),this},indexOf:function(t){for(var n,i=0,e=this._q.length;i<e;++i)if((n=this._q[i])===t||n.id===t)return i;return-1},getCallback:function(t){t=this.indexOf(t);return-1<t?this._q[t]:null},promote:function(t){var n,i={callback:t};return this.isRunning()?n=this.after(s,function(){this.fire(u,i),n.detach()},this):this.fire(u,i),this},_defPromoteFn:function(t){var n=this.indexOf(t.callback),n=-1<n?this._q.splice(n,1)[0]:null;(t.promoted=n)&&this._q.unshift(n)},remove:function(t){var n,i={callback:t};return this.isRunning()?n=this.after(s,function(){this.fire(r,i),n.detach()},this):this.fire(r,i),this},_defRemoveFn:function(t){var n=this.indexOf(t.callback);t.removed=-1<n?this._q.splice(n,1)[0]:null},size:function(){return this.isRunning()||this.next(),this._q.length}})},"patched-v3.18.7",{requires:["event-custom"]});
YUI.add("gesture-simulate",function(N,M){var t,u,g,M="gesture-simulate",d=N.config.win&&"ontouchstart"in N.config.win&&!N.UA.phantomjs&&!(N.UA.chrome&&N.UA.chrome<6),s={tap:1,doubletap:1,press:1,move:1,flick:1,pinch:1,rotate:1},a={touchstart:1,touchmove:1,touchend:1,touchcancel:1},r=N.config.doc,I={HOLD_TAP:10,DELAY_TAP:10,HOLD_PRESS:3e3,MIN_HOLD_PRESS:1e3,MAX_HOLD_PRESS:6e4,DISTANCE_MOVE:200,DURATION_MOVE:1e3,MAX_DURATION_MOVE:5e3,MIN_VELOCITY_FLICK:1.3,DISTANCE_FLICK:200,DURATION_FLICK:1e3,MAX_DURATION_FLICK:5e3,DURATION_PINCH:1e3},O="touchstart",D="touchmove",R="touchend",o="mouseup";function e(t){t||N.error(M+": invalid target node"),this.node=t,this.target=N.Node.getDOMNode(t);var t=this.node.getXY(),e=this._getDims();u=t[0]+e[0]/2,g=t[1]+e[1]/2}e.prototype={_toRadian:function(t){return t*(Math.PI/180)},_getDims:function(){var t,e,i;return this.target.getBoundingClientRect?(i="height"in(t=this.target.getBoundingClientRect())?t.height:Math.abs(t.bottom-t.top),e="width"in t?t.width:Math.abs(t.right-t.left)):(e=(t=this.node.get("region")).width,i=t.height),[e,i]},_calculateDefaultPoint:function(t){var e;return N.Lang.isArray(t)&&0!==t.length?(1==t.length&&(e=this._getDims[1],t[1]=e/2),t[0]=this.node.getX()+t[0],t[1]=this.node.getY()+t[1]):t=[u,g],t},rotate:function(t,e,i,n,a,s,r){(!N.Lang.isNumber(i)||!N.Lang.isNumber(n)||i<0||n<0)&&(n=i=this.target.offsetWidth<this.target.offsetHeight?this.target.offsetWidth/4:this.target.offsetHeight/4),N.Lang.isNumber(r)||N.error(M+"Invalid rotation detected."),this.pinch(t,e,i,n,a,s,r)},pinch:function(t,e,i,n,a,s,r){var o,c,h,u,g,d,l,m,_,f,p,L,T,X=0,A=i,E=n,Y={start:[],end:[]},v={start:[],end:[]};if(e=this._calculateDefaultPoint(e),(!N.Lang.isNumber(A)||!N.Lang.isNumber(E)||A<0||E<0)&&N.error(M+"Invalid startRadius and endRadius detected."),(!N.Lang.isNumber(a)||a<=0)&&(a=I.DURATION_PINCH),N.Lang.isNumber(s))for(s%=360;s<0;)s+=360;else s=0;for(N.Lang.isNumber(r)||(r=0),N.AsyncQueue.defaults.timeout=20,o=new N.AsyncQueue,u=e[0],g=e[1],f=(_=s)+r,Y.start=[u+A*Math.sin(this._toRadian(_)),g-A*Math.cos(this._toRadian(_))],Y.end=[u+E*Math.sin(this._toRadian(f)),g-E*Math.cos(this._toRadian(f))],v.start=[u-A*Math.sin(this._toRadian(_)),g+A*Math.cos(this._toRadian(_))],v.end=[u-E*Math.sin(this._toRadian(f)),g+E*Math.cos(this._toRadian(f))],d=1,l=n/i,o.add({fn:function(){var t={pageX:Y.start[0],pageY:Y.start[1],clientX:Y.start[0],clientY:Y.start[1]},e={pageX:v.start[0],pageY:v.start[1],clientX:v.start[0],clientY:v.start[1]},t=this._createTouchList([N.merge({identifier:X++},t),N.merge({identifier:X++},e)]),e={pageX:(Y.start[0]+v.start[0])/2,pageY:(Y.start[0]+v.start[1])/2,clientX:(Y.start[0]+v.start[0])/2,clientY:(Y.start[0]+v.start[1])/2};this._simulateEvent(this.target,O,N.merge({touches:t,targetTouches:t,changedTouches:t,scale:d,rotation:_},e)),2<=N.UA.ios&&this._simulateEvent(this.target,"gesturestart",N.merge({scale:d,rotation:_},e))},timeout:0,context:this}),L=Math.floor(a/20),h=(E-A)/L,m=(l-d)/L,p=(f-_)/L,T=function(t){var e=A+h*t,i=u+e*Math.sin(this._toRadian(_+p*t)),n=g-e*Math.cos(this._toRadian(_+p*t)),a=u-e*Math.sin(this._toRadian(_+p*t)),e=g+e*Math.cos(this._toRadian(_+p*t)),s=(i+a)/2,r=(n+e)/2,a={pageX:a,pageY:e,clientX:a,clientY:e},e=this._createTouchList([N.merge({identifier:X++},{pageX:i,pageY:n,clientX:i,clientY:n}),N.merge({identifier:X++},a)]),i={pageX:s,pageY:r,clientX:s,clientY:r};this._simulateEvent(this.target,D,N.merge({touches:e,targetTouches:e,changedTouches:e,scale:d+m*t,rotation:_+p*t},i)),2<=N.UA.ios&&this._simulateEvent(this.target,"gesturechange",N.merge({scale:d+m*t,rotation:_+p*t},i))},c=0;c<L;c++)o.add({fn:T,args:[c],context:this});o.add({fn:function(){var t=this._getEmptyTouchList(),e={pageX:Y.end[0],pageY:Y.end[1],clientX:Y.end[0],clientY:Y.end[1]},i={pageX:v.end[0],pageY:v.end[1],clientX:v.end[0],clientY:v.end[1]},e=this._createTouchList([N.merge({identifier:X++},e),N.merge({identifier:X++},i)]),i={pageX:(Y.end[0]+v.end[0])/2,pageY:(Y.end[0]+v.end[1])/2,clientX:(Y.end[0]+v.end[0])/2,clientY:(Y.end[0]+v.end[1])/2};2<=N.UA.ios&&this._simulateEvent(this.target,"gestureend",N.merge({scale:l,rotation:f},i)),this._simulateEvent(this.target,R,N.merge({touches:t,targetTouches:t,changedTouches:e,scale:l,rotation:f},i))},context:this}),t&&N.Lang.isFunction(t)&&o.add({fn:t,context:this.node}),o.run()},tap:function(t,e,i,n,a){var s,r,o,c,h,u=new N.AsyncQueue,g=this._getEmptyTouchList();for(e=this._calculateDefaultPoint(e),(!N.Lang.isNumber(i)||i<1)&&(i=1),N.Lang.isNumber(n)||(n=I.HOLD_TAP),N.Lang.isNumber(a)||(a=I.DELAY_TAP),r={pageX:e[0],pageY:e[1],clientX:e[0],clientY:e[1]},s=this._createTouchList([N.merge({identifier:0},r)]),c=function(){this._simulateEvent(this.target,O,N.merge({touches:s,targetTouches:s,changedTouches:s},r))},h=function(){this._simulateEvent(this.target,R,N.merge({touches:g,targetTouches:g,changedTouches:s},r))},o=0;o<i;o++)u.add({fn:c,context:this,timeout:0===o?0:a}),u.add({fn:h,context:this,timeout:n});1<i&&!d&&u.add({fn:function(){this._simulateEvent(this.target,"dblclick",r)},context:this}),t&&N.Lang.isFunction(t)&&u.add({fn:t,context:this.node}),u.run()},flick:function(t,e,i,n,a){e=this._calculateDefaultPoint(e),N.Lang.isString(i)?"x"!==(i=i.toLowerCase())&&"y"!==i&&N.error(M+"(flick): Only x or y axis allowed"):i="x",N.Lang.isNumber(n)||(n=I.DISTANCE_FLICK),N.Lang.isNumber(a)?I.MAX_DURATION_FLICK<a&&(a=I.MAX_DURATION_FLICK):a=I.DURATION_FLICK,Math.abs(n)/a<I.MIN_VELOCITY_FLICK&&(a=Math.abs(n)/I.MIN_VELOCITY_FLICK),i={start:N.clone(e),end:["x"===i?e[0]+n:e[0],"y"===i?e[1]+n:e[1]]},this._move(t,i,a)},move:function(t,e,i){N.Lang.isObject(e)?(N.Lang.isArray(e.point)?e.point=this._calculateDefaultPoint(e.point):e.point=this._calculateDefaultPoint([]),N.Lang.isNumber(e.xdist)||(e.xdist=I.DISTANCE_MOVE),N.Lang.isNumber(e.ydist)||(e.ydist=0)):e={point:this._calculateDefaultPoint([]),xdist:I.DISTANCE_MOVE,ydist:0},N.Lang.isNumber(i)?I.MAX_DURATION_MOVE<i&&(i=I.MAX_DURATION_MOVE):i=I.DURATION_MOVE,e={start:N.clone(
e.point),end:[e.point[0]+e.xdist,e.point[1]+e.ydist]},this._move(t,e,i)},_move:function(t,n,e){var i,a,s,r,o,c,h=0;for(N.Lang.isNumber(e)?I.MAX_DURATION_MOVE<e&&(e=I.MAX_DURATION_MOVE):e=I.DURATION_MOVE,N.Lang.isObject(n)?(N.Lang.isArray(n.start)||(n.start=[u,g]),N.Lang.isArray(n.end)||(n.end=[u+I.DISTANCE_MOVE,g])):n={start:[u,g],end:[u+I.DISTANCE_MOVE,g]},N.AsyncQueue.defaults.timeout=20,(i=new N.AsyncQueue).add({fn:function(){var t={pageX:n.start[0],pageY:n.start[1],clientX:n.start[0],clientY:n.start[1]},e=this._createTouchList([N.merge({identifier:h++},t)]);this._simulateEvent(this.target,O,N.merge({touches:e,targetTouches:e,changedTouches:e},t))},timeout:0,context:this}),s=Math.floor(e/20),r=(n.end[0]-n.start[0])/s,o=(n.end[1]-n.start[1])/s,c=function(t){var e=n.start[0]+r*t,t=n.start[1]+o*t,e={pageX:e,pageY:t,clientX:e,clientY:t},t=this._createTouchList([N.merge({identifier:h++},e)]);this._simulateEvent(this.target,D,N.merge({touches:t,targetTouches:t,changedTouches:t},e))},a=0;a<s;a++)i.add({fn:c,args:[a],context:this});i.add({fn:function(){var t={pageX:n.end[0],pageY:n.end[1],clientX:n.end[0],clientY:n.end[1]},e=this._createTouchList([N.merge({identifier:h},t)]);this._simulateEvent(this.target,D,N.merge({touches:e,targetTouches:e,changedTouches:e},t))},timeout:0,context:this}),i.add({fn:function(){var t={pageX:n.end[0],pageY:n.end[1],clientX:n.end[0],clientY:n.end[1]},e=this._getEmptyTouchList(),i=this._createTouchList([N.merge({identifier:h},t)]);this._simulateEvent(this.target,R,N.merge({touches:e,targetTouches:e,changedTouches:i},t))},context:this}),t&&N.Lang.isFunction(t)&&i.add({fn:t,context:this.node}),i.run()},_getEmptyTouchList:function(){return t=t||this._createTouchList([])},_createTouchList:function(t){var e,i=[],n=this;return t&&N.Lang.isArray(t)?N.UA.android&&4<=N.UA.android||N.UA.ios&&2<=N.UA.ios?(N.each(t,function(t){t.identifier||(t.identifier=0),t.pageX||(t.pageX=0),t.pageY||(t.pageY=0),t.screenX||(t.screenX=0),t.screenY||(t.screenY=0),i.push(r.createTouch(N.config.win,n.target,t.identifier,t.pageX,t.pageY,t.screenX,t.screenY))}),e=r.createTouchList.apply(r,i)):N.UA.ios&&N.UA.ios<2?N.error(M+": No touch event simulation framework present."):(e=[],N.each(t,function(t){t.identifier||(t.identifier=0),t.clientX||(t.clientX=0),t.clientY||(t.clientY=0),t.pageX||(t.pageX=0),t.pageY||(t.pageY=0),t.screenX||(t.screenX=0),t.screenY||(t.screenY=0),e.push({target:n.target,identifier:t.identifier,clientX:t.clientX,clientY:t.clientY,pageX:t.pageX,pageY:t.pageY,screenX:t.screenX,screenY:t.screenY})}),e.item=function(t){return e[t]}):N.error(M+": Invalid touchPoints passed"),e},_simulateEvent:function(t,e,i){var n;!a[e]||d?N.Event.simulate(t,e,i):this._isSingleTouch(i.touches,i.targetTouches,i.changedTouches)?(e={touchstart:"mousedown",touchmove:"mousemove",touchend:o}[e],i.button=0,i.relatedTarget=null,n=e===o?i.changedTouches:i.touches,i=N.mix(i,{screenX:n.item(0).screenX,screenY:n.item(0).screenY,clientX:n.item(0).clientX,clientY:n.item(0).clientY},!0),N.Event.simulate(t,e,i),e==o&&N.Event.simulate(t,"click",i)):N.error("_simulateEvent(): Event '"+e+"' has multi touch objects that can't be simulated in your platform.")},_isSingleTouch:function(t,e,i){return t&&t.length<=1&&e&&e.length<=1&&i&&i.length<=1}},N.GestureSimulation=e,N.GestureSimulation.defaults=I,N.GestureSimulation.GESTURES=s,N.Event.simulateGesture=function(t,e,i,n){t=N.one(t);var a=new N.GestureSimulation(t);if(e=e.toLowerCase(),!n&&N.Lang.isFunction(i)&&(n=i,i={}),i=i||{},s[e])switch(e){case"tap":a.tap(n,i.point,i.times,i.hold,i.delay);break;case"doubletap":a.tap(n,i.point,2);break;case"press":N.Lang.isNumber(i.hold)?i.hold<I.MIN_HOLD_PRESS?i.hold=I.MIN_HOLD_PRESS:i.hold>I.MAX_HOLD_PRESS&&(i.hold=I.MAX_HOLD_PRESS):i.hold=I.HOLD_PRESS,a.tap(n,i.point,1,i.hold);break;case"move":a.move(n,i.path,i.duration);break;case"flick":a.flick(n,i.point,i.axis,i.distance,i.duration);break;case"pinch":a.pinch(n,i.center,i.r1,i.r2,i.duration,i.start,i.rotation);break;case"rotate":a.rotate(n,i.center,i.r1,i.r2,i.duration,i.start,i.rotation)}else N.error(M+": Not a supported gesture simulation: "+e)}},"patched-v3.18.7",{requires:["async-queue","event-simulate","node-screen"]});
YUI.add("node-event-simulate",function(u,e){u.Node.prototype.simulate=function(e,t){u.Event.simulate(u.Node.getDOMNode(this),e,t)},u.Node.prototype.simulateGesture=function(e,t,s){u.Event.simulateGesture(this,e,t,s)}},"patched-v3.18.7",{requires:["node-base","event-simulate","gesture-simulate"]});
YUI.add("event-key",function(h,e){var p="+alt",y="+ctrl",i="+meta",o="+shift",l=h.Lang.trim,t={KEY_MAP:{enter:13,space:32,esc:27,backspace:8,tab:9,pageup:33,pagedown:34},_typeRE:/^(up|down|press):/,_keysRE:/^(?:up|down|press):|\+(alt|ctrl|meta|shift)/g,processArgs:function(e){var t,s,a,e=e.splice(3,1)[0],r=h.Array.hash(e.match(/\+(?:alt|ctrl|meta|shift)\b/g)||[]),n={type:this._typeRE.test(e)?RegExp.$1:null,mods:r,keys:null},c=e.replace(this._keysRE,"");if(c)for(c=c.split(","),n.keys={},a=c.length-1;0<=a;--a)(t=l(c[a]))&&(+t==t?n.keys[t]=r:(s=t.toLowerCase(),this.KEY_MAP[s]?(n.keys[this.KEY_MAP[s]]=r,n.type||(n.type="down")):(s=(t=t.charAt(0)).toUpperCase(),r["+shift"]&&(t=s),n.keys[t.charCodeAt(0)]=t===s?h.merge(r,{"+shift":!0}):r)));return n.type||(n.type="press"),n},on:function(e,t,s,a){var r=t._extra,n="key"+r.type,c=r.keys;t._detach=e[a?"delegate":"on"](n,function(e){var t=c?c[e.which]:r.mods;t&&(!t[p]||t[p]&&e.altKey)&&(!t[y]||t[y]&&e.ctrlKey)&&(!t[i]||t[i]&&e.metaKey)&&(!t[o]||t[o]&&e.shiftKey)&&s.fire(e)},a)},detach:function(e,t,s){t._detach.detach()}};t.delegate=t.on,t.detachDelegate=t.detach,h.Event.define("key",t,!0)},"patched-v3.18.7",{requires:["event-synthetic"]});
YUI.add("node-focusmanager",function(h,e){var d="activeDescendant",r="id",u="disabled",l="tabIndex",c="focused",a="focusClass",n="circular",o="host",t={37:!0,38:!0,39:!0,40:!0},i={a:!0,button:!0,input:!0,object:!0},_=h.Lang,f=h.UA,s=function(){s.superclass.constructor.apply(this,arguments)};s.ATTRS={focused:{value:!1,readOnly:!0},descendants:{getter:function(e){return this.get(o).all(e)}},activeDescendant:{setter:function(e){var t,s=_.isNumber,n=h.Attribute.INVALID_VALUE,i=this._descendantsMap,a=this._descendants,e=s(e)?t=e:e instanceof h.Node&&i&&s(t=i[e.get(r)])?t:n;return e=a&&(i=a.item(t))&&i.get("disabled")?n:e}},keys:{value:{next:null,previous:null}},focusClass:{},circular:{value:!0}},h.extend(s,h.Plugin.Base,{_stopped:!0,_descendants:null,_descendantsMap:null,_focusedNode:null,_lastNodeIndex:0,_eventHandlers:null,_initDescendants:function(){var e,t,s,n=this.get("descendants"),i={},a=-1,c=this.get(d),o=0;if(_.isUndefined(c)&&(c=-1),n){for(e=n.size(),o=0;o<e;o++)t=n.item(o),-1!==a||t.get(u)||(a=o),c<0&&0===parseInt(t.getAttribute(l,2),10)&&(c=o),t&&t.set(l,-1),(s=t.get(r))||(s=h.guid(),t.set(r,s)),i[s]=o;(t=n.item(c=c<0?0:c))&&!t.get(u)||(t=n.item(a),c=a),this._lastNodeIndex=e-1,this._descendants=n,this._descendantsMap=i,this.set(d,c),t&&t.set(l,0)}},_isDescendant:function(e){return e.get(r)in this._descendantsMap},_removeFocusClass:function(){var e,t=this._focusedNode,s=this.get(a);s&&(e=_.isString(s)?s:s.className),t&&e&&t.removeClass(e)},_detachKeyHandler:function(){var e=this._prevKeyHandler,t=this._nextKeyHandler;e&&e.detach(),t&&t.detach()},_preventScroll:function(e){t[e.keyCode]&&this._isDescendant(e.target)&&e.preventDefault()},_fireClick:function(e){var t=e.target,s=t.get("nodeName").toLowerCase();13!==e.keyCode||i[s]&&("a"!==s||t.getAttribute("href"))||t.simulate("click")},_attachKeyHandler:function(){this._detachKeyHandler();var e=this.get("keys.next"),t=this.get("keys.previous"),s=this.get(o),n=this._eventHandlers;t&&(this._prevKeyHandler=h.on("key",h.bind(this._focusPrevious,this),s,t)),e&&(this._nextKeyHandler=h.on("key",h.bind(this._focusNext,this),s,e)),f.opera&&n.push(s.on("keypress",this._preventScroll,this)),f.opera||n.push(s.on("keypress",this._fireClick,this))},_detachEventHandlers:function(){this._detachKeyHandler();var e=this._eventHandlers;e&&(h.Array.each(e,function(e){e.detach()}),this._eventHandlers=null)},_attachEventHandlers:function(){var e,t,s=this._descendants;s&&s.size()&&(s=this._eventHandlers||[],e=this.get(o).get("ownerDocument"),0===s.length&&(s.push(e.on("focus",this._onDocFocus,this)),s.push(e.on("mousedown",this._onDocMouseDown,this)),s.push(this.after("keysChange",this._attachKeyHandler)),s.push(this.after("descendantsChange",this._initDescendants)),s.push(this.after("activeDescendantChange",this._afterActiveDescendantChange)),t=this.after("focusedChange",h.bind(function(e){e.newVal&&(this._attachKeyHandler(),t.detach())},this)),s.push(t)),this._eventHandlers=s)},_onDocMouseDown:function(e){var t,s=this.get(o),n=e.target,i=s.contains(n),a=function(e){var t=!1;return t=e.compareTo(s)?t:this._isDescendant(e)?e:a.call(this,e.get("parentNode"))};i&&((t=a.call(this,n))?n=t:!t&&this.get(c)&&(this._set(c,!1),this._onDocFocus(e))),i&&this._isDescendant(n)?this.focus(n):!f.webkit||!this.get(c)||i&&this._isDescendant(n)||(this._set(c,!1),this._onDocFocus(e))},_onDocFocus:function(e){var t,e=this._focusTarget||e.target,s=this.get(c),n=this.get(a),i=this._focusedNode;this._focusTarget&&(this._focusTarget=null),this.get(o).contains(e)?(t=this._isDescendant(e),!s&&t?s=!0:s&&!t&&(s=!1)):s=!1,n&&(!i||i.compareTo(e)&&s||this._removeFocusClass(),t)&&s&&(n.fn?(e=n.fn(e)).addClass(n.className):e.addClass(n),this._focusedNode=e),this._set(c,s)},_focusNext:function(e,t){var s,t=t||this.get(d);this._isDescendant(e.target)&&t<=this._lastNodeIndex&&((t+=1)===this._lastNodeIndex+1&&this.get(n)&&(t=0),s=this._descendants.item(t))&&(s.get("disabled")?this._focusNext(e,t):this.focus(t)),this._preventScroll(e)},_focusPrevious:function(e,t){var s,t=t||this.get(d);this._isDescendant(e.target)&&0<=t&&(-1===(t-=1)&&this.get(n)&&(t=this._lastNodeIndex),s=this._descendants.item(t))&&(s.get("disabled")?this._focusPrevious(e,t):this.focus(t)),this._preventScroll(e)},_afterActiveDescendantChange:function(e){var t=this._descendants.item(e.prevVal);t&&t.set(l,-1),(t=this._descendants.item(e.newVal))&&t.set(l,0)},initializer:function(e){this.start()},destructor:function(){this.stop(),this.get(o).focusManager=null},focus:function(e){_.isUndefined(e)&&(e=this.get(d)),this.set(d,e,{src:"UI"});e=this._descendants.item(this.get(d));e&&(e.focus(),f.opera)&&"button"===e.get("nodeName").toLowerCase()&&(this._focusTarget=e)},blur:function(){var e;this.get(c)&&((e=this._descendants.item(this.get(d)))&&(e.blur(),this._removeFocusClass()),this._set(c,!1,{src:"UI"}))},start:function(){this._stopped&&(this._initDescendants(),this._attachEventHandlers(),this._stopped=!1)},stop:function(){this._stopped||(this._detachEventHandlers(),this._descendants=null,this._focusedNode=null,this._lastNodeIndex=0,this._stopped=!0)},refresh:function(){this._initDescendants(),this._eventHandlers||this._attachEventHandlers()}}),s.NAME="nodeFocusManager",s.NS="focusManager",h.namespace("Plugin"),h.Plugin.NodeFocusManager=s},"patched-v3.18.7",{requires:["attribute","node","plugin","node-event-simulate","event-key","event-focus"]});
AUI.add("liferay-navigation-interaction",(e=>{const i="activeDescendant",n="left",t="liferaynavigationinteraction",a=e.Component.create({EXTENDS:e.Plugin.Base,NAME:t,NS:t,prototype:{_handleExit(){const e=this,n=e._focusManager;n.get(i)&&(n.set(i,0),n.blur()),e._hideMenu(),e._isTriggerVisible()&&Liferay.fire("exitNavigation",{navigation:e.get("host")})},_handleKey(e,i){const t=this;if(t._isTriggerVisible())Liferay.fire("exitNavigation",{direction:i,navigation:t.get("host")});else{let a;const o=e.target.ancestors(t._directChildLi).item(0);let s=!0;if(i===n?(a=o.previous(),s=!1):a=o.next(),!a){const e=o.siblings();a=s?e.first():e.last()}t._focusManager.focus(a.one("a"))}},_handleKeyDown(e){const i=this;let n;e.isKey("LEFT")?n="_handleLeft":e.isKey("RIGHT")?n="_handleRight":(e.isKey("TAB")||e.isKey("ESC"))&&(n="_handleExit"),n&&i[n](e)},_handleLeft(e){this._handleKey(e,n)},_handleRight(e){this._handleKey(e,"right")},_handleShowNavigationMenu(e,i,n){const t=this;if(!(t._lastShownMenu&&n.type.indexOf("focusedChange")>-1)){const n=t.MAP_HOVER,a=i&&i!==e;a&&Liferay.fire("hideNavigationMenu",n),i&&!a||(n.menu=e,Liferay.fire("showNavigationMenu",n))}if(t._isTriggerVisible()&&i){let n;const a=t._focusManager.get("descendants"),o=a.first(),s=a.last(),r=i.one("a"),g=e.one("a");r===s&&g===o?n="down":r===o&&g===s&&(n="up"),n&&Liferay.fire("exitNavigation",{direction:n,navigation:t.get("host")})}},_hideMenu(){const e=this,i=e.MAP_HOVER;i.menu&&(Liferay.fire("hideNavigationMenu",i),e.MAP_HOVER={})},_initChildMenuHandlers(e){const i=this;e&&(e.delegate(["mouseenter","mouseleave"],i._onMouseToggle,"> li",i),e.delegate("keydown",i._handleKeyDown,"a",i))},_initNodeFocusManager(){const i=this,n=i.get("host");n.plug(e.Plugin.NodeFocusManager,{descendants:"a",focusClass:"active",keys:{next:"down:40",previous:"down:38"}});const t=n.focusManager;t.after(["activeDescendantChange","focusedChange"],i._showMenu,i),Liferay.once("startNavigate",t.destroy,t),i._focusManager=t},_isTriggerVisible(){return!(!this._triggerNode||!this._triggerNode.test(":visible"))},_onMouseToggle(e){const i=this.MAP_HOVER;let n="hideNavigationMenu";"mouseenter"===e.type&&(n="showNavigationMenu"),i.menu=e.currentTarget,Liferay.fire(n,i)},_showMenu(e){const n=this;e.halt();const t=n.MAP_HOVER,a=t.menu,o=e.newVal;if(o||0===o){const t=n._focusManager,o=t.get(i),s=t.get("descendants").item(o).ancestor(n._directChildLi);n._handleShowNavigationMenu(s,a,e)}else a&&(Liferay.fire("hideNavigationMenu",t),n.MAP_HOVER={})},MAP_HOVER:{},initializer(){const i=this,n=i.get("host"),t=Liferay.Data.NAV_INTERACTION_LIST_SELECTOR||"ul",a=n.one(t),o="#"+a.guid();i._directChildLi=Liferay.Data.NAV_INTERACTION_ITEM_SELECTOR||o+"> li",i._hostULId=o,i._triggerNode=e.one(".nav-navigation-btn"),Liferay.on(["hideNavigationMenu","showNavigationMenu"],(e=>{const n=e.menu;if(n){i._lastShownMenu=null;const t="showNavigationMenu"===e.type&&n.hasClass("dropdown");t&&(i._lastShownMenu=n),n.toggleClass("hover",t),n.toggleClass("open",t)}})),i._initChildMenuHandlers(a),i._initNodeFocusManager()}}});Liferay.NavigationInteraction=a}),"",{requires:["aui-base","aui-component","event-mouseenter","node-focusmanager","plugin"]});

YUI.add("querystring-stringify-simple",function(o,r){var n=o.namespace("QueryString"),u=encodeURIComponent;n.stringify=function(r,n){var e,i,s,a=[],t=!(!n||!n.arrayKey);for(e in r)if(r.hasOwnProperty(e))if(o.Lang.isArray(r[e]))for(i=0,s=r[e].length;i<s;i++)a.push(u(t?e+"[]":e)+"="+u(r[e][i]));else a.push(u(e)+"="+u(r[e]));return a.join("&")}},"patched-v3.18.7",{requires:["yui-base"]});
YUI.add("io-base",function(l,t){var c,p,s,r,e,n,i,h;function o(t){var e=this;e._uid="io:"+r++,e._init(t),l.io._map[e._uid]=e}c=["start","complete","end","success","failure","progress"],p=["status","statusText","responseText","responseXML"],s=l.config.win,r=0,o.prototype={_id:0,_headers:{"X-Requested-With":"XMLHttpRequest"},_timeout:{},_init:function(t){var e,r,n=this;for(n.cfg=t||{},l.augment(n,l.EventTarget),e=0,r=c.length;e<r;++e)n.publish("io:"+c[e],l.merge({broadcast:1},t)),n.publish("io-trn:"+c[e],t)},_create:function(e,t){var n=this,r={id:l.Lang.isNumber(t)?t:n._id++,uid:n._uid},t=e.xdr?e.xdr.use:null,i=e.form&&e.form.upload?"iframe":null;return"native"===t&&(t=l.UA.ie&&!h?"xdr":null,n.setHeader("X-Requested-With")),(r=(t=t||i)?l.merge(l.IO.customTransport(t),r):l.merge(l.IO.defaultTransport(),r)).notify&&(e.notify=function(t,e,r){n.notify(t,e,r)}),t||s&&s.FormData&&e.data instanceof s.FormData&&(r.c.upload.onprogress=function(t){n.progress(r,t,e)},r.c.onload=function(t){n.load(r,t,e)},r.c.onerror=function(t){n.error(r,t,e)},r.upload=!0),r},_destroy:function(t){!s||t.notify||t.xdr||(e&&!t.upload?t.c.onreadystatechange=null:t.upload?(t.c.upload.onprogress=null,t.c.onload=null,t.c.onerror=null):l.UA.ie&&!t.e&&t.c.abort()),t.c=null},_evt:function(t,e,r){var n,i=this,s=r.arguments,o=i.cfg.emitFacade,a="io:"+t,u="io-trn:"+t;this.detach(u),e.e&&(e.c={status:0,statusText:e.e}),n=[o?{id:e.id,data:e.c,cfg:r,arguments:s}:e.id],o||(t!==c[0]&&t!==c[2]&&(e.evt?n.push(e.evt):n.push(e.c)),s&&n.push(s)),n.unshift(a),i.fire.apply(i,n),r.on&&(i.once(n[0]=u,r.on[t],r.context||l),i.fire.apply(i,n))},start:function(t,e){this._evt(c[0],t,e)},complete:function(t,e){this._evt(c[1],t,e)},end:function(t,e){this._evt(c[2],t,e),this._destroy(t)},success:function(t,e){this._evt(c[3],t,e),this.end(t,e)},failure:function(t,e){this._evt(c[4],t,e),this.end(t,e)},progress:function(t,e,r){t.evt=e,this._evt(c[5],t,r)},load:function(t,e,r){t.evt=e.target,this._evt(c[1],t,r)},error:function(t,e,r){t.evt=e,this._evt(c[4],t,r)},_retry:function(t,e,r){return this._destroy(t),r.xdr.use="flash",this.send(e,r,t.id)},_concat:function(t,e){return t+=(-1===t.indexOf("?")?"?":"&")+e},setHeader:function(t,e){e?this._headers[t]=e:delete this._headers[t]},_setHeaders:function(r,n){n=l.merge(this._headers,n),l.Object.each(n,function(t,e){"disable"!==t&&r.setRequestHeader(e,n[e])})},_startTimeout:function(t,e){var r=this;r._timeout[t.id]=setTimeout(function(){r._abort(t,"timeout")},e)},_clearTimeout:function(t){clearTimeout(this._timeout[t]),delete this._timeout[t]},_result:function(t,e){var r;try{r=t.c.status}catch(n){r=0}200<=r&&r<300||304===r||1223===r?this.success(t,e):this.failure(t,e)},_rS:function(t,e){var r=this;4===t.c.readyState&&(e.timeout&&r._clearTimeout(t.id),setTimeout(function(){r.complete(t,e),r._result(t,e)},0))},_abort:function(t,e){t&&t.c&&(t.e=e,t.c.abort())},send:function(t,e,r){var n,i,s,o,a,u=this,c=t,d={};if(e=e?l.Object(e):{},n=u._create(e,r),r=e.method?e.method.toUpperCase():"GET",o=e.sync,a=e.data,!l.Lang.isObject(a)||a.nodeType||n.upload||l.QueryString&&l.QueryString.stringify&&(e.data=a=l.QueryString.stringify(a)),e.form){if(e.form.upload)return u.upload(n,t,e);a=u._serialize(e.form,a)}if(a=a||"")switch(r){case"GET":case"HEAD":case"DELETE":c=u._concat(c,a),a="";break;case"POST":case"PUT":e.headers=l.merge({"Content-Type":"application/x-www-form-urlencoded; charset=UTF-8"},e.headers)}if(n.xdr)return u.xdr(c,n,e);if(n.notify)return n.c.send(n,t,e);o||n.upload||(n.c.onreadystatechange=function(){u._rS(n,e)});try{if(n.c.open(r,c,!o,e.username||null,e.password||null),u._setHeaders(n.c,e.headers||{}),u.start(n,e),e.xdr&&e.xdr.credentials&&h&&(n.c.withCredentials=!0),n.c.send(a),o){for(i=0,s=p.length;i<s;++i)d[p[i]]=n.c[p[i]];return d.getAllResponseHeaders=function(){return n.c.getAllResponseHeaders()},d.getResponseHeader=function(t){return n.c.getResponseHeader(t)},u.complete(n,e),u._result(n,e),d}}catch(f){if(n.xdr)return u._retry(n,t,e);u.complete(n,e),u._result(n,e)}return e.timeout&&u._startTimeout(n,e.timeout),{id:n.id,abort:function(){return!!n.c&&u._abort(n,"abort")},isInProgress:function(){return!!n.c&&n.c.readyState%4},io:u}}},l.io=function(t,e){var r=l.io._map["io:0"]||new o;return r.send.apply(r,[t,e])},l.io.header=function(t,e){(l.io._map["io:0"]||new o).setHeader(t,e)},l.IO=o,l.io._map={},e=s&&s.XMLHttpRequest,n=s&&s.XDomainRequest,i=s&&s.ActiveXObject,h=e&&"withCredentials"in new XMLHttpRequest,l.mix(l.IO,{_default:"xhr",defaultTransport:function(t){if(!t)return{c:l.IO.transports[l.IO._default](),notify:"xhr"!==l.IO._default};l.IO._default=t},transports:{xhr:function(){return e?new XMLHttpRequest:i?new ActiveXObject("Microsoft.XMLHTTP"):null},xdr:function(){return n?new XDomainRequest:null},iframe:function(){return{}},flash:null,nodejs:null},customTransport:function(t){var e={c:l.IO.transports[t]()};return e["xdr"===t||"flash"===t?"xdr":"notify"]=!0,e}}),l.mix(l.IO.prototype,{notify:function(t,e,r){switch(t){case"timeout":case"abort":case"transport error":e.c={status:0,statusText:t},t="failure";default:this[t].apply(this,[e,r])}}})},"patched-v3.18.7",{requires:["event-custom-base","querystring-stringify-simple"]});
YUI.add("aui-parse-content",function(e,t){var n=e.Lang,r=n.isString,i=e.config.doc,s="<div>_</div>",o={"":1,module:1,"module-shim":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){typeof t=="string"&&(t={text:t,type:"text/javascript"});var r=e.getDoc(),s=r.one("head")||r.get("documentElement"),o=i.createElement("script");o.type=t.type,t.text&&(o.text=n.trim(t.text)),s.appendChild(o).remove()},parseContent:function(e){var t=this,n=t._extractScripts(e);return t._dispatch(n),n},_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");t.js.each(function(t){var i=t.get("src");if(i)r.add({autoContinue:!1,fn:function(){e.Get.script(i,{onEnd:function(e){e.purge(),r.run()}})},timeout:0});else{var s=t._node;r.add({args:{type:s.type,text:s.text||s.textContent||s.innerHTML||""},context:n,fn:n.globalEval,timeout:0})}}),r.run()}}});e.namespace("Plugin").ParseContent=u},"3.1.0-deprecated.110",{requires:["async-queue","plugin","io-base","aui-component","aui-node-base"]});

