YUI.add("tree-openable",function(e,n){function t(){}function o(){}t.prototype={initializer:function(){this.nodeExtensions=this.nodeExtensions.concat(e.Tree.Node.Openable)},closeNode:function(e,n){return e.canHaveChildren&&e.isOpen()&&this._fireTreeEvent("close",{node:e,src:n&&n.src},{defaultFn:this._defCloseFn,silent:n&&n.silent}),this},openNode:function(e,n){return e.canHaveChildren&&!e.isOpen()&&this._fireTreeEvent("open",{node:e,src:n&&n.src},{defaultFn:this._defOpenFn,silent:n&&n.silent}),this},toggleOpenNode:function(e,n){return e.isOpen()?this.closeNode(e,n):this.openNode(e,n)},_defCloseFn:function(e){delete e.node.state.open},_defOpenFn:function(e){e.node.state.open=!0}},e.Tree.Openable=t,o.prototype={close:function(e){return this.tree.closeNode(this,e),this},isOpen:function(){return!!this.state.open||this.isRoot()},open:function(e){return this.tree.openNode(this,e),this},toggleOpen:function(e){return this.tree.toggleOpenNode(this,e),this}},e.Tree.Node.Openable=o},"patched-v3.18.7",{requires:["tree"]});