YUI.add("button-group",function(o,t){var e="contentBox",n=o.ButtonCore.CLASS_NAMES;function s(){s.superclass.constructor.apply(this,arguments)}o.ButtonGroup=o.extend(s,o.Widget,{renderUI:function(){this.getButtons().plug(o.Plugin.Button)},bindUI:function(){var t=this;t.get(e).delegate("click",t._handleClick,o.ButtonGroup.BUTTON_SELECTOR,t),t.after("disabledChange",t._afterDisabledChange)},_afterDisabledChange:function(t){this.getButtons().each(t.newVal?o.ButtonCore.prototype.disable:o.ButtonCore.prototype.enable)},getButtons:function(){return this.get(e).all(o.ButtonGroup.BUTTON_SELECTOR)},getSelectedButtons:function(){var e=[],t=this.getButtons(),n=s.CLASS_NAMES.SELECTED;return t.each(function(t){t.hasClass(n)&&e.push(t)}),e},getSelectedValues:function(){var e,t=this.getSelectedButtons(),n=[];return o.Array.each(t,function(t){e=t.getContent(),n.push(e)}),n},_handleClick:function(t){var e=this,n=t.target.ancestor("."+s.CLASS_NAMES.BUTTON,!0),o=e.get("type"),u=s.CLASS_NAMES.SELECTED,i=n.hasClass(u);"checkbox"===o?(n.toggleClass(u,!i),e.fire("selectionChange",{originEvent:t})):"radio"!==o||i||(e.getButtons().removeClass(u),n.addClass(u),e.fire("selectionChange",{originEvent:t}))}},{NAME:"buttongroup",ATTRS:{type:{writeOnce:"initOnly",value:"radio"}},CLASS_NAMES:n,BUTTON_SELECTOR:"button, input[type=button], input[type=reset], input[type=submit], input[type=radio], input[type=checkbox]"})},"patched-v3.18.4",{requires:["button-plugin","cssbutton","widget"]});
YUI.add("aui-button-core",function(e,t){var n={BUTTON:e.getClassName("btn"),BUTTON_DEFAULT:e.getClassName("btn","default"),BUTTON_GROUP:e.getClassName("btn","group"),DISABLED:e.getClassName("disabled"),LABEL:e.getClassName("label"),PRIMARY:e.getClassName("btn","primary"),SELECTED:e.getClassName("active"),TOGGLE:e.getClassName("togglebtn")},r=function(e){e&&e.domType&&this._domTypeValidator(e.domType)&&this._setEarlyButtonDomType(e.domType)};r.ATTRS={cssClass:{validator:e.Lang.isString,value:""},discardDefaultButtonCssClasses:{validator:e.Lang.isBoolean,value:!1,writeOnce:!0},domType:{validator:"_domTypeValidator",writeOnce:!0},icon:{},iconElement:{valueFn:function(){return e.Node.create(this.ICON_TEMPLATE)}},iconAlign:{validator:e.Lang.isString,value:"left"}},r.HTML_PARSER={iconElement:"span"},r.getTypedButtonTemplate=function(t,n){return e.Lang.sub(t,{type:' type="'+n+'"'})},r.prototype={ICON_TEMPLATE:"<span></span>",TEMPLATE:"<button{type}></button>",initializer:function(){this.before(this.renderButtonExtUI,this,"renderUI"),this.after(this.syncButtonExtUI,this,"syncUI"),this.after({iconChange:this._afterIconChange,iconAlignChange:this._afterIconAlignChange})},renderButtonExtUI:function(){var e=this.get("cssClass");this.get("discardDefaultButtonCssClasses")||(e=[e,n.BUTTON_DEFAULT,n.BUTTON].join(" "),this.set("cssClass",e))},syncButtonExtUI:function(){this._uiSetIcon(this.get("icon")),this._setButtonRole()},_afterIconAlignChange:function(e){this._uiSetIconAlign(e.newVal)},_afterIconChange:function(e){this._uiSetIcon(e.newVal)},_domTypeValidator:function(e){return e.toLowerCase()==="button"||e.toLowerCase()==="submit"},_setButtonRole:function(){this.get("boundingBox").setAttribute("role","button")},_setEarlyButtonDomType:function(t){this.BOUNDING_TEMPLATE=e.ButtonExt.getTypedButtonTemplate(r.prototype.TEMPLATE,t)},_uiSetIcon:function(e){e&&(this.get("iconElement").set("className",e),this._uiSetIconAlign(this.get("iconAlign")))},_uiSetIconAlign:function(t){var n=this.getNode().one(e.ButtonExt.HTML_PARSER.iconElement);n||(n=this.get("iconElement")),e.Button.syncIconUI(this.get("boundingBox"),n,t)}},e.ButtonExt=r,e.ButtonCore.CLASS_NAMES=n;var i=e.Button;i.NAME="aui-button",i.CSS_PREFIX="aui-button",i.CLASS_NAMES=n,e.Button=e.Base.create(i.NAME,i,[r,e.WidgetCssClass,e.WidgetToggle],{},{getWidgetLazyConstructorFromNodeData:function(e){var t=e.getData("widgetConstructor")||{};return t.boundingBox=e,t.render=!0,t},hasWidgetLazyConstructorData:function(e){return e.getData("widgetConstructor")!==undefined},setWidgetLazyConstructorNodeData:function(e,t){e.setData("widgetConstructor",t)},syncIconUI:function(t,n,r){var i=0,s=e.config.doc.createTextNode(" ");r==="right"&&(i=null),t.insert(s,i),t.insert(n,i)}});var s=e.ToggleButton;s.NAME="togglebtn",s.CSS_PREFIX=n.TOGGLE,s.CLASS_NAMES=n,e.ToggleButton=e.Base.create(s.NAME,s,[r,e.WidgetCssClass],{},{});var o=e.ButtonGroup;o.NAME="btngroup",o.CSS_PREFIX=n.BUTTON_GROUP,o.CLASS_NAMES=n,e.mix(o.prototype,{CONTENT_TEMPLATE:null,initializer:function(){this.after("selectionChange",this._afterSelectionChange)},renderUI:function(){var t=this.get("boundingBox"),n=this.get("type");this.getButtons().each(function(t){!t.button&&!e.instanceOf(e.Widget.getByNode(t),e.Button)&&(t.addClass(e.ButtonCore.CLASS_NAMES.BUTTON_DEFAULT),t.setAttribute("role","option"),e.Button.hasWidgetLazyConstructorData(t)?(new e.Button(e.Button.getWidgetLazyConstructorFromNodeData(t)),e.Button.setWidgetLazyConstructorNodeData(t,null)):t.plug(e.Plugin.Button))}),t.setAttrs({"aria-multiselectable":n==="checkbox"?!0:!1,role:"listbox"}),this.syncAriaSelected(this.getButtons())},item:function(t){var n,r;return r=this.getButtons().item(t),n=e.Widget.getByNode(r),e.instanceOf(n,i)?n:r},select:function(e){return this.toggleSelect(e,!0)},syncAriaSelected:function(t){var n;t.each(function(t){n=t.hasClass(e.ButtonGroup.CLASS_NAMES.SELECTED),t.setAttribute("aria-selected",n)})},toggleSelect:function(t,n){var r=this.getButtons(),i=this,s=this.get("type");e.Lang.isUndefined(t)&&(t=r.getDOMNodes()),e.Lang.isArray(t)||(t=e.Array(t)),e.Array.each(t,function(t){e.Lang.isNumber(t)&&(t=r.item(t)),t=e.one(t);if(s==="checkbox")if(t.hasClass(e.ButtonGroup.CLASS_NAMES.SELECTED)){if(n===!0)return}else if(n===!1)return;i._handleClick({target:t})})},unselect:function(e){return this.toggleSelect(e,!1)},_afterSelectionChange:function(){this.syncAriaSelected(this.getButtons())}},!0)},"3.1.0-deprecated.101",{requires:["button","button-group","button-plugin","aui-component","aui-widget-cssclass","aui-widget-toggle"],skinnable:!0});

YUI.add("aui-toolbar",function(e,t){var n=e.Lang.isFunction,r=e.getClassName("btn"),i=e.getClassName("btn","default"),s=e.getClassName("btn","group"),o=e.getClassName("btn","group","checkbox"),u=e.getClassName("btn","group","radio"),a=e.getClassName("btn","group","vertical"),f=e.getClassName("btn","toolbar","button");e.Toolbar=e.Component.create({NAME:"btn-toolbar",ATTRS:{children:{validator:e.Lang.isArray},toolbarRenderer:{valueFn:function(){return new e.ToolbarRenderer}}},UI_ATTRS:["children"],isSupportedWidget:function(t){return e.instanceOf(t,e.Button)||e.instanceOf(t,e.ToggleButton)||e.instanceOf(t,e.ButtonGroup)},prototype:{CONTENT_TEMPLATE:null,TEMPLATES:{button:'<button class="aui-btn">{content}</button>',icon:'<span class="{cssClass}"></span>',group:'<div class="aui-btn-group {cssClass}"></div>'},bindUI:function(){var e=this.get("boundingBox");e.delegate(["click","mousemove","focus"],this._onUserInitInteraction,"."+f+", ."+r,this)},add:function(t,n){var r=this.get("boundingBox"),i=this.get("toolbarRenderer");r.insert(i.render(e.Array(t)),n)},clear:function(){var e=this.get("boundingBox");e.get("children").remove()},getEnclosingWidget:function(t){return e.instanceOf(t,e.EventFacade)&&(t=t.domEvent?t.domEvent.target:t.target),e.Widget.getByNode(t)},item:function(t){var n=this.get("boundingBox").get("children").item(t),r;return this._initEnclosingWidgetIfNeeded(n),r=this.getEnclosingWidget(n),e.Toolbar.isSupportedWidget(r)?r:n},remove:function(e){var t=this.get("boundingBox");return t.get("children").item(e).remove()},_initEnclosingWidgetIfNeeded:function(t,n){var i,l,c,h,p,d;if(!t||t.getData("enclosingWidgetInitialized"))return;t.setData("enclosingWidgetInitialized",!0),l=e.Widget.getByNode(t),c=e.instanceOf(l,e.Button),h=e.instanceOf(l,e.ButtonGroup);if(c||h)return;i=t.ancestor("."+f+", ."+r,!0),i&&(e.Button.hasWidgetLazyConstructorData(t)?(new e.Button(e.Button.getWidgetLazyConstructorFromNodeData(t)),e.Button.setWidgetLazyConstructorNodeData(t,null)):t.plug(e.Plugin.Button)),p=t.ancestor("."+s+", "+a,!0),p&&(p.hasClass(o)?d="checkbox":p.hasClass(u)&&(d="radio"),d&&new e.ButtonGroup({boundingBox:p,type:d,render:!0})),n&&n.type==="focus"&&t.focus()},_onUserInitInteraction:function(e){var t=e.currentTarget;this._initEnclosingWidgetIfNeeded(t,e)},_uiSetChildren:function(e){if(!e)return;this.clear(),this.add(e)}}});var l=function(){};l.prototype={TEMPLATES:{button:e.Button.prototype.TEMPLATE,group:'<div class="{cssClass}"></div>',icon:'<span class="{cssClass}"></span>'},RENDERER:{button:function(t){var n,s,o,u,a,l=t.value;a=l.domType||"button";if(e.instanceOf(l,e.Button)||e.instanceOf(l,e.ToggleButton))return l.get("boundingBox");if(e.UA.mobile&&e.UA.touchEnabled)return n=(new e.Button(l)).render(),l.title&&n.get("boundingBox").setAttribute("title",l.title),n.get("boundingBox").setAttribute("type",a),n.get("boundingBox");s=e.one(l.boundingBox||l.srcNode);if(s)try{s.setAttribute("type",a)}catch(c){}else s=e.Node.create(e.ButtonExt.getTypedButtonTemplate(this.TEMPLATES.button,a));return o=[f,l.cssClass],l.discardDefaultButtonCssClasses||o.push(r,i),s.addClass(o.join(" ")),l.id&&s.setAttribute("id",l.id),l.labelHTML&&s.append(l.labelHTML),l.label&&s.append(l.label),l.icon&&(u=e.Lang.sub(this.TEMPLATES.icon,{cssClass:l.icon}),e.Button.syncIconUI(s,u,l.iconAlign)),l.title&&s.setAttribute("title",l.title),e.Button.setWidgetLazyConstructorNodeData(s,l),s},group:function(t){var n,r=this,i=t.value,f,l=t.groupType,c=t.orientation,h=[];return e.instanceOf(i,e.ButtonGroup)?i.get("boundingBox"):(l==="checkbox"?h.push(o):l==="radio"&&h.push(u),c==="vertical"?h.push(a):h.push(s),f=e.Node.create(e.Lang.sub(r.TEMPLATES.group,{cssClass:h.join(" ")})),e.Array.each(i,function(t,s){n=r.renderNode(t),f.appendChild(n),e.Toolbar.isSupportedWidget(t)||e.Button.setWidgetLazyConstructorNodeData(n,i[s])}),f)}},render:function(t){var n,r=this;if(!t)return;return n=e.one(e.config.doc).invoke("createDocumentFragment"),e.Array.each(t,function(e){n.appendChild(r.renderNode(e))}),n},renderNode:function(t){var r,i;if(e.Toolbar.isSupportedWidget(t))return t.render().get("boundingBox");r=this._getChildRenderHints(t),i=this.RENDERER[r.renderer];if(n(i))return i.call(this,r)},_getChildRenderHints:function(t){var n=null,r="normal",i;return e.instanceOf(t,e.Button)?i="button":e.instanceOf(t,e.ButtonGroup)?i="group":e.Lang.isArray(t)?(i="group",n=e.Lang.isString(t[0])?t.shift():null,r=e.Lang.isString(t[0])?t.shift():"normal"):i="button",{groupType:n,orientation:r,renderer:i,value:t}}},e.ToolbarRenderer=l},"3.1.0-deprecated.101",{requires:["arraylist","arraylist-add","aui-component","aui-button-core"]});

YUI.add("aui-widget-toolbars",function(e,t){var n=e.WidgetStdMod,r=function(){};r.ATTRS={toolbars:{},toolbarPosition:{value:{body:n.AFTER,footer:n.AFTER,header:n.BEFORE}},toolbarCssClass:{value:{body:"",footer:"",header:""}}},r.prototype={toolbars:null,initializer:function(){var t=this;t.toolbars={},e.after(t._syncUIToolbars,t,"syncUI"),t.after("toolbarsChange",t._afterToolbarsChange)},addToolbar:function(t,n){var r=this;return n=r.getToolbarSection(n),r.removeToolbar(n),e.instanceOf(t,e.Toolbar)||(t=new e.Toolbar({cssClass:this.get("toolbarCssClass."+n)||"",children:t,render:r.getStdModNode(n,!0)})),t.addTarget(r),r.toolbars[n]=t,r.setStdModContent(n,t.get("boundingBox"),r.get("toolbarPosition."+n)),r._syncPrimaryButtonUI(),t},getToolbar:function(e){var t=this;return t.toolbars[t.getToolbarSection(e)]},getToolbarSection:function(e){return e||n.FOOTER},removeToolbar:function(e){var t=this,n=t.toolbars[t.getToolbarSection(e)];return n&&n.destroy(),n},_syncPrimaryButtonUI:function(){var t=this,n=t.get("boundingBox").one("."+e.ButtonCore.CLASS_NAMES.PRIMARY);n&&n.focus().focus()},_syncUIToolbars:function(){var e=this;e._uiSetToolbars(this.get("toolbars"))},_uiSetToolbars:function(t){var n=this;e.each(t,e.bind(n.addToolbar,n))}},e.WidgetToolbars=r},"3.1.0-deprecated.101",{requires:["widget-stdmod","aui-toolbar"]});

YUI.add("event-flick",function(o,e){var t=o.Event._GESTURE_MAP,h={start:t.start,end:t.end,move:t.move},u="minVelocity",f="minDistance",r="preventDefault",d="_fs",c="_fsh",l="_feh",_="_fmh";o.Event.define("flick",{on:function(e,t,n){n=e.on(h.start,this._onStart,this,e,t,n);t[c]=n},detach:function(e,t,n){var i=t[c],a=t[l];i&&(i.detach(),t[c]=null),a&&(a.detach(),t[l]=null)},processArgs:function(e){e=3<e.length?o.merge(e.splice(3,1)[0]):{};return u in e||(e[u]=this.MIN_VELOCITY),f in e||(e[f]=this.MIN_DISTANCE),r in e||(e[r]=this.PREVENT_DEFAULT),e},_onStart:function(e,t,n,i){var a=!0,c=n._extra.preventDefault,s=e;e.touches&&(a=1===e.touches.length,e=e.touches[0]),a&&(!c||c.call&&!c(e)||s.preventDefault(),e.flick={time:(new Date).getTime()},n[d]=e,a=n[l],c=9===t.get("nodeType")?t:t.get("ownerDocument"),a||(a=c.on(h.end,o.bind(this._onEnd,this),null,t,n,i),n[l]=a),n[_]=c.once(h.move,o.bind(this._onMove,this),null,t,n,i))},_onMove:function(e,t,n,i){n=n[d];n&&n.flick&&(n.flick.time=(new Date).getTime())},_onEnd:function(e,t,n,i){(new Date).getTime();var a,c,s=n[d],o=!!s,h=e,l=n[_];l&&(l.detach(),delete n[_]),o&&(e.changedTouches&&(1===e.changedTouches.length&&0===e.touches.length?h=e.changedTouches[0]:o=!1),o&&(!(o=(l=n._extra)[r])||o.call&&!o(e)||e.preventDefault(),o=s.flick.time,o=(new Date).getTime()-o,a=(h=[h.pageX-s.pageX,h.pageY-s.pageY])["x"===(h=l.axis||(Math.abs(h[0])>=Math.abs(h[1])?"x":"y"))?0:1],c=0!=o?a/o:0,isFinite(c)&&Math.abs(a)>=l[f]&&Math.abs(c)>=l[u]&&(e.type="flick",e.flick={time:o,distance:a,velocity:c,axis:h,start:s},i.fire(e)),n[d]=null))},MIN_VELOCITY:0,MIN_DISTANCE:0,PREVENT_DEFAULT:!1})},"patched-v3.18.4",{requires:["node-base","event-touch","event-synthetic"]});
YUI.add("event-valuechange",function(c,e){var d="_valuechange",u="value",_="nodeName",g={POLL_INTERVAL:50,TIMEOUT:1e4,_poll:function(e,t){var n,a,o,i,r,l=e._node,t=t.e,s=e._data&&e._data[d],u=0;l&&s?(a=s.prevVal,i=s.nodeName,s.isEditable?o=l.innerHTML:"input"===i||"textarea"===i?o=l.value:"select"===i&&(o=(i=l.options[l.selectedIndex]).value||i.text),o!==a&&(s.prevVal=o,n={_event:t,currentTarget:t&&t.currentTarget||e,newVal:o,prevVal:a,target:t&&t.target||e},c.Object.some(s.notifiers,function(e){var t=e.handle.evt;if((1!==u||t.el===r)&&e.fire(n),e=t&&t._facade?t._facade.stopped:0,u<e&&1===(u=e)&&(r=t.el),2===u)return!0}),g._refreshTimeout(e))):g._stopPolling(e)},_refreshTimeout:function(e,t){var n;e._node&&(n=e.getData(d),g._stopTimeout(e),n.timeout=setTimeout(function(){g._stopPolling(e,t)},g.TIMEOUT))},_startPolling:function(e,t,n){var a,o;if(e.test("input,textarea,select")||(o=g._isEditable(e))){if((a=e.getData(d))||(a={nodeName:e.get(_).toLowerCase(),isEditable:o,prevVal:o?e.getDOMNode().innerHTML:e.get(u)},e.setData(d,a)),a.notifiers||(a.notifiers={}),a.interval){if(!n.force)return void(a.notifiers[c.stamp(t)]=t);g._stopPolling(e,t)}a.notifiers[c.stamp(t)]=t,a.interval=setInterval(function(){g._poll(e,n)},g.POLL_INTERVAL),g._refreshTimeout(e,t)}},_stopPolling:function(e,t){var n;e._node&&(n=e.getData(d)||{},clearInterval(n.interval),delete n.interval,g._stopTimeout(e),t?n.notifiers&&delete n.notifiers[c.stamp(t)]:n.notifiers={})},_stopTimeout:function(e){e=e.getData(d)||{};clearTimeout(e.timeout),delete e.timeout},_isEditable:function(e){e=e._node;return"true"===e.contentEditable||""===e.contentEditable},_onBlur:function(e,t){g._stopPolling(e.currentTarget,t)},_onFocus:function(e,t){var n=e.currentTarget,a=n.getData(d);a||(a={isEditable:g._isEditable(n),nodeName:n.get(_).toLowerCase()},n.setData(d,a)),a.prevVal=a.isEditable?n.getDOMNode().innerHTML:n.get(u),g._startPolling(n,t,{e:e})},_onKeyDown:function(e,t){g._startPolling(e.currentTarget,t,{e:e})},_onKeyUp:function(e,t){229!==e.charCode&&197!==e.charCode||g._startPolling(e.currentTarget,t,{e:e,force:!0})},_onMouseDown:function(e,t){g._startPolling(e.currentTarget,t,{e:e})},_onSubscribe:function(e,t,n,a){var o,i,r,l={blur:g._onBlur,focus:g._onFocus,keydown:g._onKeyDown,keyup:g._onKeyUp,mousedown:g._onMouseDown},s=n._valuechange={};a?(s.delegated=!0,s.getNodes=function(){return i=e.all("input,textarea,select").filter(a),r=e.all('[contenteditable="true"],[contenteditable=""]').filter(a),i.concat(r)},s.getNodes().each(function(e){e.getData(d)||e.setData(d,{nodeName:e.get(_).toLowerCase(),isEditable:g._isEditable(e),prevVal:o?e.getDOMNode().innerHTML:e.get(u)})}),n._handles=c.delegate(l,e,a,null,n)):(o=g._isEditable(e),(e.test("input,textarea,select")||o)&&(e.getData(d)||e.setData(d,{nodeName:e.get(_).toLowerCase(),isEditable:o,prevVal:o?e.getDOMNode().innerHTML:e.get(u)}),n._handles=e.on(l,null,null,n)))},_onUnsubscribe:function(e,t,n){var a=n._valuechange;n._handles&&n._handles.detach(),a.delegated?a.getNodes().each(function(e){g._stopPolling(e,n)}):g._stopPolling(e,n)}},t={detach:g._onUnsubscribe,on:g._onSubscribe,delegate:g._onSubscribe,detachDelegate:g._onUnsubscribe,publishConfig:{emitFacade:!0}};c.Event.define("valuechange",t),c.Event.define("valueChange",t),c.ValueChange=g},"patched-v3.18.4",{requires:["event-focus","event-synthetic"]});
YUI.add("event-tap",function(a,e){a.config.doc;var o=a.Event._GESTURE_MAP,s=o.start,h=/pointer/i,r={START:"Y_TAP_ON_START_HANDLE",END:"Y_TAP_ON_END_HANDLE",CANCEL:"Y_TAP_ON_CANCEL_HANDLE"};function d(n,e){e=e||a.Object.values(r),a.Array.each(e,function(e){var t=n[e];t&&(t.detach(),n[e]=null)})}a.Event.define("tap",{publishConfig:{preventedFn:function(e){var t=e.target.once("click",function(e){e.preventDefault()});setTimeout(function(){t.detach()},100)}},processArgs:function(e,t){if(!t)return t=e[3],e.splice(3,1),t},on:function(e,t,n){t[r.START]=e.on(s,this._start,this,e,t,n)},detach:function(e,t,n){d(t)},delegate:function(t,n,c,e){n[r.START]=a.delegate(s,function(e){this._start(e,t,n,c,!0)},t,e,this)},detachDelegate:function(e,t,n){d(t)},_start:function(e,t,n,c,a){var s={canceled:!1,eventType:e.type},i=n.preventMouse||!1;e.button&&3===e.button||e.touches&&1!==e.touches.length||(s.node=a?e.currentTarget:t,e.touches?s.startXY=[e.touches[0].pageX,e.touches[0].pageY]:s.startXY=[e.pageX,e.pageY],e.touches?(n[r.END]=t.once("touchend",this._end,this,t,n,c,a,s),n[r.CANCEL]=t.once("touchcancel",this.detach,this,t,n,c,a,s),n.preventMouse=!0):-1===s.eventType.indexOf("mouse")||i?-1!==s.eventType.indexOf("mouse")&&i?n.preventMouse=!1:h.test(s.eventType)&&(n[r.END]=t.once(o.end,this._end,this,t,n,c,a,s),n[r.CANCEL]=t.once(o.cancel,this.detach,this,t,n,c,a,s)):(n[r.END]=t.once("mouseup",this._end,this,t,n,c,a,s),n[r.CANCEL]=t.once("mousecancel",this.detach,this,t,n,c,a,s)))},_end:function(e,t,n,c,a,s){var i,o,h=s.startXY,u=15;n._extra&&0<=n._extra.sensitivity&&(u=n._extra.sensitivity),o=e.changedTouches?(i=[e.changedTouches[0].pageX,e.changedTouches[0].pageY],[e.changedTouches[0].clientX,e.changedTouches[0].clientY]):(i=[e.pageX,e.pageY],[e.clientX,e.clientY]),Math.abs(i[0]-h[0])<=u&&Math.abs(i[1]-h[1])<=u&&(e.type="tap",e.pageX=i[0],e.pageY=i[1],e.clientX=o[0],e.clientY=o[1],e.currentTarget=s.node,c.fire(e)),d(n,[r.END,r.CANCEL])}})},"patched-v3.18.4",{requires:["node-base","event-base","event-touch","event-synthetic"]});
YUI.add("dd-ddm",function(i,t){i.mix(i.DD.DDM,{_pg:null,_debugShim:!1,_activateTargets:function(){},_deactivateTargets:function(){},_startDrag:function(){this.activeDrag&&this.activeDrag.get("useShim")&&(this._shimming=!0,this._pg_activate(),this._activateTargets())},_endDrag:function(){i.later(0,this,this._pg_deactivate),this._deactivateTargets()},_pg_deactivate:function(){this._pg.setStyle("display","none")},_pg_activate:function(){this._pg||this._createPG();var t=this.activeDrag.get("activeHandle"),e="auto";"auto"===(e=t?t.getStyle("cursor"):e)&&(e=this.get("dragCursor")),this._pg_size(),this._pg.setStyles({top:0,left:0,display:"block",opacity:this._debugShim?".5":"0",cursor:e})},_pg_size:function(){var t,e;this.activeDrag&&(t=(e=i.one("body")).get("docHeight"),e=e.get("docWidth"),this._pg.setStyles({height:t+"px",width:e+"px"}))},_createPG:function(){var t=i.Node.create("<div></div>"),e=i.one("body");t.setStyles({top:"0",left:"0",position:"absolute",zIndex:"99999",overflow:"hidden",backgroundColor:"red",display:"none",height:"5px",width:"5px"}),t.set("id",i.stamp(t)),t.addClass(i.DD.DDM.CSS_PREFIX+"-shim"),e.prepend(t),this._pg=t,this._pg.on("mousemove",i.throttle(i.bind(this._move,this),this.get("throttleTime"))),this._pg.on("mouseup",i.bind(this._end,this)),e=i.one("win"),i.on("window:resize",i.bind(this._pg_size,this)),e.on("scroll",i.bind(this._pg_size,this))}},!0)},"patched-v3.18.4",{requires:["dd-ddm-base","event-resize"]});
YUI.add("dd-ddm-drop",function(h,t){h.mix(h.DD.DDM,{_noShim:!1,_activeShims:[],_hasActiveShim:function(){return!!this._noShim||this._activeShims.length},_addActiveShim:function(t){this._activeShims.push(t)},_removeActiveShim:function(i){var e=[];h.Array.each(this._activeShims,function(t){t._yuid!==i._yuid&&e.push(t)}),this._activeShims=e},syncActiveShims:function(t){h.later(0,this,function(t){t=t?this.targets:this._lookup();h.Array.each(t,function(t){t.sizeShim.call(t)},this)},t)},mode:0,POINT:0,INTERSECT:1,STRICT:2,useHash:!0,activeDrop:null,validDrops:[],otherDrops:{},targets:[],_addValid:function(t){return this.validDrops.push(t),this},_removeValid:function(i){var e=[];return h.Array.each(this.validDrops,function(t){t!==i&&e.push(t)}),this.validDrops=e,this},isOverTarget:function(t){if(this.activeDrag&&t){var i,e=this.activeDrag.mouseXY,r=this.activeDrag.get("dragMode"),a=t.shim;if(e&&this.activeDrag){if(i=this.activeDrag.region,r===this.STRICT)return this.activeDrag.get("dragNode").inRegion(t.region,!0,i);if(t&&t.shim)return r===this.INTERSECT&&this._noShim?(r=i||this.activeDrag.get("node"),t.get("node").intersect(r,t.region).inRegion):(a=this._noShim?t.get("node"):a).intersect({top:e[1],bottom:e[1],left:e[0],right:e[0]},t.region).inRegion}}return!1},clearCache:function(){this.validDrops=[],this.otherDrops={},this._activeShims=[]},_activateTargets:function(){this._noShim=!0,this.clearCache(),h.Array.each(this.targets,function(t){t._activateShim([]),!0===t.get("noShim")&&(this._noShim=!1)},this),this._handleTargetOver()},getBestMatch:function(t,i){var e,r=null,a=0;return h.Object.each(t,function(t){var i=this.activeDrag.get("dragNode").intersect(t.get("node"));t.region.area=i.area,i.inRegion&&i.area>a&&(a=i.area,r=t)},this),i?(e=[],h.Object.each(t,function(t){t!==r&&e.push(t)},this),[r,e]):r},_deactivateTargets:function(){var t,i=[],e=this.activeDrag,r=this.activeDrop;e&&r&&this.otherDrops[r]?(e.get("dragMode")?(r=(t=this.getBestMatch(this.otherDrops,!0))[0],i=t[1]):delete(i=this.otherDrops)[r],e.get("node").removeClass(this.CSS_PREFIX+"-drag-over"),r&&(r.fire("drop:hit",{drag:e,drop:r,others:i}),e.fire("drag:drophit",{drag:e,drop:r,others:i}))):e&&e.get("dragging")&&(e.get("node").removeClass(this.CSS_PREFIX+"-drag-over"),e.fire("drag:dropmiss",{pageX:e.lastXY[0],pageY:e.lastXY[1]})),this.activeDrop=null,h.Array.each(this.targets,function(t){t._deactivateShim([])},this)},_dropMove:function(){this._hasActiveShim()?this._handleTargetOver():h.Object.each(this.otherDrops,function(t){t._handleOut.apply(t,[])})},_lookup:function(){if(!this.useHash||this._noShim)return this.validDrops;var i=[];return h.Array.each(this.validDrops,function(t){t.shim&&t.shim.inViewportRegion(!1,t.region)&&i.push(t)}),i},_handleTargetOver:function(){var t=this._lookup();h.Array.each(t,function(t){t._handleTargetOver.call(t)},this)},_regTarget:function(t){this.targets.push(t)},_unregTarget:function(i){var e,r=[];h.Array.each(this.targets,function(t){t!==i&&r.push(t)},this),this.targets=r,e=[],h.Array.each(this.validDrops,function(t){t!==i&&e.push(t)}),this.validDrops=e},getDrop:function(t){var i=!1,e=h.one(t);return e instanceof h.Node&&h.Array.each(this.targets,function(t){e.compareTo(t.get("node"))&&(i=t)}),i}},!0)},"patched-v3.18.4",{requires:["dd-ddm"]});
YUI.add("dd-drop",function(h,t){var o="node",d=h.DD.DDM,n="offsetHeight",g="offsetWidth",e="drop:over",i="drop:enter",r="drop:exit",s=function(){this._lazyAddAttrs=!1,s.superclass.constructor.apply(this,arguments),h.on("domready",h.bind(function(){h.later(100,this,this._createShim)},this)),d._regTarget(this)};s.NAME="drop",s.ATTRS={node:{setter:function(t){var e=h.one(t);return e||h.error("DD.Drop: Invalid Node Given: "+t),e}},groups:{value:["default"],getter:function(){return this._groups?h.Object.keys(this._groups):(this._groups={},[])},setter:function(t){return this._groups=h.Array.hash(t),t}},padding:{value:"0",setter:function(t){return d.cssSizestoObject(t)}},lock:{value:!1,setter:function(t){return t?this.get(o).addClass(d.CSS_PREFIX+"-drop-locked"):this.get(o).removeClass(d.CSS_PREFIX+"-drop-locked"),t}},bubbles:{setter:function(t){return this.addTarget(t),t}},useShim:{value:!0,setter:function(t){return h.DD.DDM._noShim=!t,t}}},h.extend(s,h.Base,{_bubbleTargets:h.DD.DDM,addToGroup:function(t){return this._groups[t]=!0,this},removeFromGroup:function(t){return delete this._groups[t],this},_createEvents:function(){h.Array.each([e,i,r,"drop:hit"],function(t){this.publish(t,{type:t,emitFacade:!0,preventable:!1,bubbles:!0,queuable:!1,prefix:"drop"})},this)},_valid:null,_groups:null,shim:null,region:null,overTarget:null,inGroup:function(t){var e=this._valid=!1;return h.Array.each(t,function(t){this._groups[t]&&(e=!0,this._valid=!0)},this),e},initializer:function(){h.later(100,this,this._createEvents);var t,e=this.get(o);e.get("id")||(t=h.stamp(e),e.set("id",t)),e.addClass(d.CSS_PREFIX+"-drop"),this.set("groups",this.get("groups"))},destructor:function(){d._unregTarget(this),this.shim&&this.shim!==this.get(o)&&(this.shim.detachAll(),this.shim.remove(),this.shim=null),this.get(o).removeClass(d.CSS_PREFIX+"-drop"),this.detachAll()},_deactivateShim:function(){if(!this.shim)return!1;this.get(o).removeClass(d.CSS_PREFIX+"-drop-active-valid"),this.get(o).removeClass(d.CSS_PREFIX+"-drop-active-invalid"),this.get(o).removeClass(d.CSS_PREFIX+"-drop-over"),this.get("useShim")&&this.shim.setStyles({top:"-999px",left:"-999px",zIndex:"1"}),this.overTarget=!1},_activateShim:function(){if(!d.activeDrag)return!1;if(this.get(o)===d.activeDrag.get(o))return!1;if(this.get("lock"))return!1;var t=this.get(o);this.inGroup(d.activeDrag.get("groups"))?(t.removeClass(d.CSS_PREFIX+"-drop-active-invalid"),t.addClass(d.CSS_PREFIX+"-drop-active-valid"),d._addValid(this),this.overTarget=!1,this.get("useShim")||(this.shim=this.get(o)),this.sizeShim()):(d._removeValid(this),t.removeClass(d.CSS_PREFIX+"-drop-active-valid"),t.addClass(d.CSS_PREFIX+"-drop-active-invalid"))},sizeShim:function(){if(!d.activeDrag)return!1;if(this.get(o)===d.activeDrag.get(o))return!1;if(this.get("lock"))return!1;if(!this.shim)return h.later(100,this,this.sizeShim),!1;var t,e,i=this.get(o),r=i.get(n),s=i.get(g),i=i.getXY(),a=this.get("padding"),s=s+a.left+a.right,r=r+a.top+a.bottom;i[0]=i[0]-a.left,i[1]=i[1]-a.top,d.activeDrag.get("dragMode")===d.INTERSECT&&(r+=t=(a=d.activeDrag).get(o).get(n),s+=e=a.get(o).get(g),i[0]=i[0]-(e-a.deltaXY[0]),i[1]=i[1]-(t-a.deltaXY[1])),this.get("useShim")&&this.shim.setStyles({height:r+"px",width:s+"px",top:i[1]+"px",left:i[0]+"px"}),this.region={0:i[0],1:i[1],area:0,top:i[1],right:i[0]+s,bottom:i[1]+r,left:i[0]}},_createShim:function(){var t;d._pg?this.shim||(t=this.get("node"),this.get("useShim")&&((t=h.Node.create('<div id="'+this.get(o).get("id")+'_shim"></div>')).setStyles({height:this.get(o).get(n)+"px",width:this.get(o).get(g)+"px",backgroundColor:"yellow",opacity:".5",zIndex:"1",overflow:"hidden",top:"-900px",left:"-900px",position:"absolute"}),d._pg.appendChild(t),t.on("mouseover",h.bind(this._handleOverEvent,this)),t.on("mouseout",h.bind(this._handleOutEvent,this))),this.shim=t):h.later(10,this,this._createShim)},_handleTargetOver:function(){d.isOverTarget(this)?(this.get(o).addClass(d.CSS_PREFIX+"-drop-over"),d.activeDrop=this,(d.otherDrops[this]=this).overTarget?(d.activeDrag.fire("drag:over",{drop:this,drag:d.activeDrag}),this.fire(e,{drop:this,drag:d.activeDrag})):d.activeDrag.get("dragging")&&(this.overTarget=!0,this.fire(i,{drop:this,drag:d.activeDrag}),d.activeDrag.fire("drag:enter",{drop:this,drag:d.activeDrag}),d.activeDrag.get(o).addClass(d.CSS_PREFIX+"-drag-over"))):this._handleOut()},_handleOverEvent:function(){this.shim.setStyle("zIndex","999"),d._addActiveShim(this)},_handleOutEvent:function(){this.shim.setStyle("zIndex","1"),d._removeActiveShim(this)},_handleOut:function(t){d.isOverTarget(this)&&!t||this.overTarget&&(this.overTarget=!1,t||d._removeActiveShim(this),d.activeDrag&&(this.get(o).removeClass(d.CSS_PREFIX+"-drop-over"),d.activeDrag.get(o).removeClass(d.CSS_PREFIX+"-drag-over"),this.fire(r,{drop:this,drag:d.activeDrag}),d.activeDrag.fire("drag:exit",{drop:this,drag:d.activeDrag}),delete d.otherDrops[this]))}}),h.DD.Drop=s},"patched-v3.18.4",{requires:["dd-drag","dd-ddm-drop"]});
YUI.add("dd-drop-plugin",function(d,n){var o=function(d){d.node=d.host,o.superclass.constructor.apply(this,arguments)};o.NAME="dd-drop-plugin",o.NS="drop",d.extend(o,d.DD.Drop),d.namespace("Plugin"),d.Plugin.Drop=o},"patched-v3.18.4",{requires:["dd-drop"]});
YUI.add("dd-delegate",function(a,e){var t=function(){t.superclass.constructor.apply(this,arguments)},n="container",o="nodes",s=a.Node.create("<div>Temp Node</div>");a.extend(t,a.Base,{_bubbleTargets:a.DD.DDM,dd:null,_shimState:null,_handles:null,_onNodeChange:function(e){this.set("dragNode",e.newVal)},_afterDragEnd:function(){a.DD.DDM._noShim=this._shimState,this.set("lastNode",this.dd.get("node")),this.get("lastNode").removeClass(a.DD.DDM.CSS_PREFIX+"-dragging"),this.dd._unprep(),this.dd.set("node",s)},_delMouseDown:function(e){var t=e.currentTarget,s=this.dd,n=t,i=this.get("dragConfig"),d=s.get("node");t.test(this.get(o))&&!t.test(this.get("invalid"))&&(this._shimState=a.DD.DDM._noShim,a.DD.DDM._noShim=!0,this.set("currentNode",t),d.inDoc()&&s._unprep(),s.set("node",t),i&&i.dragNode?n=i.dragNode:s.proxy&&(n=a.DD.DDM._proxy),s.set("dragNode",n),s._prep(),s.fire("drag:mouseDown",{ev:e}))},_onMouseEnter:function(){this._shimState=a.DD.DDM._noShim,a.DD.DDM._noShim=!0},_onMouseLeave:function(){a.DD.DDM._noShim=this._shimState},initializer:function(){this._handles=[];var e=this.get("dragConfig")||{},t=this.get(n);e.node=s.cloneNode(!0),(e.bubbleTargets=this).get("handles")&&(e.handles=this.get("handles")),this.dd=new a.DD.Drag(e),this.dd.after("drag:end",a.bind(this._afterDragEnd,this)),this.dd.on("dragNodeChange",a.bind(this._onNodeChange,this)),this.dd.after("drag:mouseup",function(){this._unprep()}),this._handles.push(a.delegate(a.DD.Drag.START_EVENT,a.bind(this._delMouseDown,this),t,this.get(o))),this._handles.push(a.on("mouseenter",a.bind(this._onMouseEnter,this),t)),this._handles.push(a.on("mouseleave",a.bind(this._onMouseLeave,this),t)),a.later(50,this,this.syncTargets),a.DD.DDM.regDelegate(this)},syncTargets:function(){var e,t,s;if(a.Plugin.Drop&&!this.get("destroyed"))return this.get("target")&&(e=a.one(this.get(n)).all(this.get(o)),t=this.dd.get("groups"),(s=this.get("dragConfig"))&&s.groups&&(t=s.groups),e.each(function(e){this.createDrop(e,t)},this)),this},createDrop:function(e,t){return e.drop||e.plug(a.Plugin.Drop,{useShim:!1,bubbleTargets:this}),e.drop.set("groups",t),e},destructor:function(){this.dd&&this.dd.destroy(),a.Plugin.Drop&&a.one(this.get(n)).all(this.get(o)).unplug(a.Plugin.Drop),a.Array.each(this._handles,function(e){e.detach()})}},{NAME:"delegate",ATTRS:{container:{value:"body"},nodes:{value:".dd-draggable"},invalid:{value:"input, select, button, a, textarea"},lastNode:{value:s},currentNode:{value:s},dragNode:{value:s},over:{value:!1},target:{value:!1},dragConfig:{value:null},handles:{value:null}}}),a.mix(a.DD.DDM,{_delegates:[],regDelegate:function(e){this._delegates.push(e)},getDelegate:function(t){var s=null;return t=a.one(t),a.Array.each(this._delegates,function(e){t.test(e.get(n))&&(s=e)},this),s}}),a.namespace("DD"),a.DD.Delegate=t},"patched-v3.18.4",{requires:["dd-drag","dd-drop-plugin","event-mouseenter"]});
YUI.add("resize-base",function(o,w){var e=o.Lang,X=e.isArray,t=e.isBoolean,n=e.isNumber,B=e.isString,i=o.Array,G=e.trim,D=i.indexOf,e="{handle}",a="activeHandle",r="activeHandleNode",s="autoHide",d="border",l="handle",u="handles",h="handlesWrapper",f="inner",g="left",c="node",p="offsetHeight",_="offsetWidth",v="parentNode",H="resize",E="resizing",b="static",S="top",z="wrap",A="wrapper",I="resize:mouseUp",m="resize:resize",R="resize:align",L="resize:end",P="resize:start",x=function(){return Array.prototype.slice.call(arguments).join(" ")},T=function(e){return Math.round(parseFloat(e))||0},y=function(e,t){return e.getComputedStyle(t)},Y=function(e){return l+e.toUpperCase()},V=function(e){return e instanceof o.Node},O=o.cached(function(e){return e.substring(0,1).toUpperCase()+e.substring(1)}),N=o.cached(function(){var n=[],e=i(arguments,0,!0);return i.each(e,function(e,t){0<t&&(e=O(e)),n.push(e)}),n.join("")}),W=o.ClassNameManager.getClassName,k=W(H),U=W(H,l),C=W(H,l,"active"),$=W(H,l,f),f=W(H,l,f,e),e=W(H,l,e),M=W(H,"hidden",u),j=W(H,u,A),q=W(H,A);function F(){F.superclass.constructor.apply(this,arguments)}o.mix(F,{NAME:H,ATTRS:{activeHandle:{value:null,validator:function(e){return o.Lang.isString(e)||o.Lang.isNull(e)}},activeHandleNode:{value:null,validator:V},autoHide:{value:!1,validator:t},defMinHeight:{value:15,validator:n},defMinWidth:{value:15,validator:n},handles:{setter:"_setHandles",value:"all"},handlesWrapper:{readOnly:!0,setter:o.one,valueFn:"_valueHandlesWrapper"},node:{setter:o.one},resizing:{value:!1,validator:t},wrap:{setter:"_setWrap",value:!1,validator:t},wrapTypes:{readOnly:!0,value:/^canvas|textarea|input|select|button|img|iframe|table|embed$/i},wrapper:{readOnly:!0,valueFn:"_valueWrapper",writeOnce:!0}},RULES:{b:function(e,t,n){var i=e.info,e=e.originalInfo;i.offsetHeight=e.offsetHeight+n},l:function(e,t){var n=e.info,e=e.originalInfo;n.left=e.left+t,n.offsetWidth=e.offsetWidth-t},r:function(e,t){var n=e.info,e=e.originalInfo;n.offsetWidth=e.offsetWidth+t},t:function(e,t,n){var i=e.info,e=e.originalInfo;i.top=e.top+n,i.offsetHeight=e.offsetHeight-n},tr:function(){this.t.apply(this,arguments),this.r.apply(this,arguments)},bl:function(){this.b.apply(this,arguments),this.l.apply(this,arguments)},br:function(){this.b.apply(this,arguments),this.r.apply(this,arguments)},tl:function(){this.t.apply(this,arguments),this.l.apply(this,arguments)}},capitalize:N}),o.Resize=o.extend(F,o.Base,{ALL_HANDLES:["t","tr","r","br","b","bl","l","tl"],REGEX_CHANGE_HEIGHT:/^(t|tr|b|bl|br|tl)$/i,REGEX_CHANGE_LEFT:/^(tl|l|bl)$/i,REGEX_CHANGE_TOP:/^(tl|t|tr)$/i,REGEX_CHANGE_WIDTH:/^(bl|br|l|r|tl|tr)$/i,HANDLES_WRAP_TEMPLATE:'<div class="'+j+'"></div>',WRAP_TEMPLATE:'<div class="'+q+'"></div>',HANDLE_TEMPLATE:'<div class="'+x(U,e)+'"><div class="'+x($,f)+'">&nbsp;</div></div>',totalHSurrounding:0,totalVSurrounding:0,nodeSurrounding:null,wrapperSurrounding:null,changeHeightHandles:!1,changeLeftHandles:!1,changeTopHandles:!1,changeWidthHandles:!1,delegate:null,info:null,lastInfo:null,originalInfo:null,initializer:function(){this._eventHandles=[],this.renderer()},renderUI:function(){this._renderHandles()},bindUI:function(){this._createEvents(),this._bindDD(),this._bindHandle()},syncUI:function(){this.get(c).addClass(k),this._setHideHandlesUI(this.get(s))},destructor:function(){var t=this,e=t.get(c),n=t.get(A),i=n.get(v);o.each(t._eventHandles,function(e){e.detach()}),t._eventHandles.length=0,t.eachHandle(function(e){t.delegate.dd.destroy(),e.remove(!0)}),t.delegate.destroy(),t.get(z)&&(t._copyStyles(n,e),i&&i.insertBefore(e,n),n.remove(!0)),e.removeClass(k),e.removeClass(M)},renderer:function(){this.renderUI(),this.bindUI(),this.syncUI()},eachHandle:function(i){var a=this;o.each(a.get(u),function(e,t){var n=a.get(Y(e));i.apply(a,[n,e,t])})},_bindDD:function(){var e=this;e.delegate=new o.DD.Delegate({bubbleTargets:e,container:e.get(h),dragConfig:{clickPixelThresh:0,clickTimeThresh:0,useShim:!0,move:!1},nodes:"."+U,target:!1}),e._eventHandles.push(e.on("drag:drag",e._handleResizeEvent),e.on("drag:dropmiss",e._handleMouseUpEvent),e.on("drag:end",e._handleResizeEndEvent),e.on("drag:start",e._handleResizeStartEvent))},_bindHandle:function(){var e=this,t=e.get(A);e._eventHandles.push(t.on("mouseenter",o.bind(e._onWrapperMouseEnter,e)),t.on("mouseleave",o.bind(e._onWrapperMouseLeave,e)),t.delegate("mouseenter",o.bind(e._onHandleMouseEnter,e),"."+U),t.delegate("mouseleave",o.bind(e._onHandleMouseLeave,e),"."+U))},_createEvents:function(){var n=this,e=function(e,t){n.publish(e,{defaultFn:t,queuable:!1,emitFacade:!0,bubbles:!0,prefix:H})};e(P,this._defResizeStartFn),e(m,this._defResizeFn),e(R,this._defResizeAlignFn),e(L,this._defResizeEndFn),e(I,this._defMouseUpFn)},_renderHandles:function(){var e=this.get(A),t=this.get(h);this.eachHandle(function(e){t.append(e)}),e.append(t)},_buildHandle:function(e){return o.Node.create(o.Lang.sub(this.HANDLE_TEMPLATE,{handle:e}))},_calcResize:function(){var e=this.handle,t=this.info,n=this.originalInfo,i=t.actXY[0]-n.actXY[0],t=t.actXY[1]-n.actXY[1];e&&o.Resize.RULES[e]&&o.Resize.RULES[e](this,i,t)},_checkSize:function(e,t){var n=this.info,i=this.originalInfo,a=e===p?S:g;n[e]=t,(a==g&&this.changeLeftHandles||a==S&&this.changeTopHandles)&&(n[a]=i[a]+i[e]-t)},_copyStyles:function(e,t){var n=e.getStyle("position").toLowerCase(),i=this._getBoxSurroundingInfo(e),n={position:n=n===b?"relative":n,left:y(e,g),top:y(e,S)};o.mix(n,i.margin),o.mix(n,i.border),t.setStyles(n),e.setStyles({border:0,margin:0}),t.sizeTo(e.get(_)+i.totalHBorder,e.get(p)+i.totalVBorder)},_extractHandleName:o.cached(function(e){e=e.get("className").match(new RegExp(W(H,l,"(\\w{1,2})\\b")));return e?e[1]:null}),_getInfo:function(e,t){var n=[0,0],i=t.dragEvent.target,a=e.getXY(),r=a[0],a=a[1],s=e.get(p),e=e.get(_);return{actXY:n=t?i.actXY.length?i.actXY:i.lastXY:n,bottom:a+s,left:r,offsetHeight:s,offsetWidth:e,right:r+e,top:a}},_getBoxSurroundingInfo:function(r){var s={padding:{},margin:{},border:{}};return V(r
)&&o.each([S,"right","bottom",g],function(e){var t=N("padding",e),n=N("margin",e),i=N(d,e,"width"),a=N(d,e,"color"),e=N(d,e,"style");s.border[a]=y(r,a),s.border[e]=y(r,e),s.border[i]=y(r,i),s.margin[n]=y(r,n),s.padding[t]=y(r,t)}),s.totalHBorder=T(s.border.borderLeftWidth)+T(s.border.borderRightWidth),s.totalHPadding=T(s.padding.paddingLeft)+T(s.padding.paddingRight),s.totalVBorder=T(s.border.borderBottomWidth)+T(s.border.borderTopWidth),s.totalVPadding=T(s.padding.paddingBottom)+T(s.padding.paddingTop),s},_syncUI:function(){var e=this,t=e.info,n=e.wrapperSurrounding,i=e.get(A),a=e.get(c);i.sizeTo(t.offsetWidth,t.offsetHeight),(e.changeLeftHandles||e.changeTopHandles)&&i.setXY([t.left,t.top]),i.compareTo(a)||a.sizeTo(t.offsetWidth-n.totalHBorder,t.offsetHeight-n.totalVBorder),o.UA.webkit&&a.setStyle(H,"none")},_updateChangeHandleInfo:function(e){var t=this;t.changeHeightHandles=t.REGEX_CHANGE_HEIGHT.test(e),t.changeLeftHandles=t.REGEX_CHANGE_LEFT.test(e),t.changeTopHandles=t.REGEX_CHANGE_TOP.test(e),t.changeWidthHandles=t.REGEX_CHANGE_WIDTH.test(e)},_updateInfo:function(e){this.info=this._getInfo(this.get(A),e)},_updateSurroundingInfo:function(){var e=this,t=e.get(c),n=e.get(A),t=e._getBoxSurroundingInfo(t),n=e._getBoxSurroundingInfo(n);e.nodeSurrounding=t,e.wrapperSurrounding=n,e.totalVSurrounding=t.totalVPadding+n.totalVBorder,e.totalHSurrounding=t.totalHPadding+n.totalHBorder},_setActiveHandlesUI:function(e){var t=this.get(r);t&&(e?(this.eachHandle(function(e){e.removeClass(C)}),t.addClass(C)):t.removeClass(C))},_setHandles:function(e){var t=this,n=[];return X(e)?n=e:B(e)&&("all"===e.toLowerCase()?n=t.ALL_HANDLES:o.each(e.split(","),function(e){e=G(e);-1<D(t.ALL_HANDLES,e)&&n.push(e)})),n},_setHideHandlesUI:function(e){var t=this.get(A);this.get(E)||(e?t.addClass(M):t.removeClass(M))},_setWrap:function(e){var t=this.get(c).get("nodeName");return e=this.get("wrapTypes").test(t)?!0:e},_defMouseUpFn:function(){this.set(E,!1)},_defResizeFn:function(e){this._resize(e)},_resize:function(e){this._handleResizeAlignEvent(e.dragEvent),this._syncUI()},_defResizeAlignFn:function(e){this._resizeAlign(e)},_resizeAlign:function(e){var t,n,i=this;i.lastInfo=i.info,i._updateInfo(e),e=i.info,i._calcResize(),i.con||(t=i.get("defMinHeight")+i.totalVSurrounding,n=i.get("defMinWidth")+i.totalHSurrounding,e.offsetHeight<=t&&i._checkSize(p,t),e.offsetWidth<=n&&i._checkSize(_,n))},_defResizeEndFn:function(e){this._resizeEnd(e)},_resizeEnd:function(e){var t=this;e.dragEvent.target.actXY=[],t._syncUI(),t._setActiveHandlesUI(!1),t.set(a,null),t.set(r,null),t.handle=null},_defResizeStartFn:function(e){this._resizeStart(e)},_resizeStart:function(e){var t=this,n=t.get(A);t.handle=t.get(a),t.set(E,!0),t._updateSurroundingInfo(),t.originalInfo=t._getInfo(n,e),t._updateInfo(e)},_handleMouseUpEvent:function(e){this.fire(I,{dragEvent:e,info:this.info})},_handleResizeEvent:function(e){this.fire(m,{dragEvent:e,info:this.info})},_handleResizeAlignEvent:function(e){this.fire(R,{dragEvent:e,info:this.info})},_handleResizeEndEvent:function(e){this.fire(L,{dragEvent:e,info:this.info})},_handleResizeStartEvent:function(e){this.get(a)||this._setHandleFromNode(e.target.get("node")),this.fire(P,{dragEvent:e,info:this.info})},_onWrapperMouseEnter:function(){this.get(s)&&this._setHideHandlesUI(!1)},_onWrapperMouseLeave:function(){this.get(s)&&this._setHideHandlesUI(!0)},_setHandleFromNode:function(e){var t=this,n=t._extractHandleName(e);t.get(E)||(t.set(a,n),t.set(r,e),t._setActiveHandlesUI(!0),t._updateChangeHandleInfo(n))},_onHandleMouseEnter:function(e){this._setHandleFromNode(e.currentTarget)},_onHandleMouseLeave:function(){this.get(E)||this._setActiveHandlesUI(!1)},_valueHandlesWrapper:function(){return o.Node.create(this.HANDLES_WRAP_TEMPLATE)},_valueWrapper:function(){var e=this.get(c),t=e.get(v),n=e;return this.get(z)&&(n=o.Node.create(this.WRAP_TEMPLATE),t&&t.insertBefore(n,e),n.append(e),this._copyStyles(e,n),e.setStyles({position:b,left:0,top:0})),n}}),o.each(o.Resize.prototype.ALL_HANDLES,function(e){o.Resize.ATTRS[Y(e)]={setter:function(){return this._buildHandle(e)},value:null,writeOnce:!0}})},"patched-v3.18.4",{requires:["base","widget","event","oop","dd-drag","dd-delegate","dd-drop"],skinnable:!0});
YUI.add("resize-plugin",function(u,e){var t=function(e){e.node=u.Widget&&e.host instanceof u.Widget?e.host.get("boundingBox"):e.host,e.host instanceof u.Widget?e.widget=e.host:e.widget=!1,t.superclass.constructor.call(this,e)};t.NAME="resize-plugin",t.NS="resize",t.ATTRS={node:{value:undefined},widget:{value:undefined}},u.extend(t,u.Resize,{initializer:function(e){this.set("node",e.node),this.set("widget",e.widget),this.on("resize:resize",function(e){this._correctDimensions(e)})},_correctDimensions:function(e){var t=this.get("node"),i={old:t.getX(),cur:e.currentTarget.info.left},n={old:t.getY(),cur:e.currentTarget.info.top};this.get("widget")&&this._setWidgetProperties(e,i,n),this._isDifferent(i.old,i.cur)&&t.set("x",i.cur),this._isDifferent(n.old,n.cur)&&t.set("y",n.cur)},_setWidgetProperties:function(e,t,i){var n=this.get("widget"),s=n.get("height"),r=n.get("width"),o=e.currentTarget.info.offsetWidth-e.currentTarget.totalHSurrounding,e=e.currentTarget.info.offsetHeight-e.currentTarget.totalVSurrounding;this._isDifferent(s,e)&&n.set("height",e),this._isDifferent(r,o)&&n.set("width",o),n.hasImpl&&n.hasImpl(u.WidgetPosition)&&(this._isDifferent(n.get("x"),t.cur)&&n.set("x",t.cur),this._isDifferent(n.get("y"),i.cur)&&n.set("y",i.cur))},_isDifferent:function(e,t){return e!==t?t:!1}}),u.namespace("Plugin"),u.Plugin.Resize=t},"patched-v3.18.4",{requires:["resize-base","plugin"],optional:["resize-constrain"]});
