//>>built
define("dijit/Menu","require,dojo/_base/array,dojo/_base/declare,dojo/_base/event,dojo/dom,dojo/dom-attr,dojo/dom-geometry,dojo/dom-style,dojo/keys,dojo/_base/lang,dojo/on,dojo/sniff,dojo/_base/window,dojo/window,./popup,./DropDownMenu,dojo/ready".split(","),function(s,k,t,o,l,i,m,p,q,r,j,h,g,u,n,v,w){h("dijit-legacy-requires")&&w(0,function(){s(["dijit/MenuItem","dijit/PopupMenuItem","dijit/CheckedMenuItem","dijit/MenuSeparator"])});return t("dijit.Menu",v,{constructor:function(){this._bindings=
[]},targetNodeIds:[],selector:"",contextMenuForWindow:!1,leftClickToOpen:!1,refocus:!0,postCreate:function(){this.contextMenuForWindow?this.bindDomNode(this.ownerDocumentBody):k.forEach(this.targetNodeIds,this.bindDomNode,this);this.inherited(arguments)},_iframeContentWindow:function(a){return u.get(this._iframeContentDocument(a))||this._iframeContentDocument(a).__parent__||a.name&&g.doc.frames[a.name]||null},_iframeContentDocument:function(a){return a.contentDocument||a.contentWindow&&a.contentWindow.document||
a.name&&g.doc.frames[a.name]&&g.doc.frames[a.name].document||null},bindDomNode:function(a){var a=l.byId(a,this.ownerDocument),d;if("iframe"==a.tagName.toLowerCase()){var e=a,c=this._iframeContentWindow(e);d=g.body(c.document)}else d=a==g.body(this.ownerDocument)?this.ownerDocument.documentElement:a;var b={node:a,iframe:e};i.set(a,"_dijitMenu"+this.id,this._bindings.push(b));var f=r.hitch(this,function(a){var b=this.selector,c=b?function(a){return j.selector(b,a)}:function(a){return a},d=this;return[j(a,
c(this.leftClickToOpen?"click":"contextmenu"),function(a){o.stop(a);(new Date).getTime()<this._lastKeyDown+500||d._scheduleOpen(this,e,{x:a.pageX,y:a.pageY},a.target)}),j(a,c("keydown"),function(a){if(93==a.keyCode||a.shiftKey&&a.keyCode==q.F10||this.leftClickToOpen&&a.keyCode==q.SPACE)o.stop(a),d._scheduleOpen(this,e,null,a.target),this._lastKeyDown=(new Date).getTime()})]});b.connects=d?f(d):[];if(e)b.onloadHandler=r.hitch(this,function(){var a=this._iframeContentWindow(e);d=g.body(a.document);
b.connects=f(d)}),e.addEventListener?e.addEventListener("load",b.onloadHandler,!1):e.attachEvent("onload",b.onloadHandler)},unBindDomNode:function(a){var d;try{d=l.byId(a,this.ownerDocument)}catch(e){return}a="_dijitMenu"+this.id;if(d&&i.has(d,a)){for(var c=i.get(d,a)-1,b=this._bindings[c],f;f=b.connects.pop();)f.remove();(f=b.iframe)&&(f.removeEventListener?f.removeEventListener("load",b.onloadHandler,!1):f.detachEvent("onload",b.onloadHandler));i.remove(d,a);delete this._bindings[c]}},_scheduleOpen:function(a,
d,e,c){if(!this._openTimer)this._openTimer=this.defer(function(){delete this._openTimer;this._openMyself({target:c,delegatedTarget:a,iframe:d,coords:e})},1)},_openMyself:function(a){function d(){j.refocus&&k&&k.focus();n.close(j)}var e=a.target,c=a.iframe,b=a.coords;this.currentTarget=a.delegatedTarget;if(b){if(c){var a=m.position(c,!0),e=this._iframeContentWindow(c),e=m.docScroll(e.document),f=p.getComputedStyle(c),g=p.toPixelValue,i=(h("ie")&&h("quirks")?0:g(c,f.paddingLeft))+(h("ie")&&h("quirks")?
g(c,f.borderLeftWidth):0),c=(h("ie")&&h("quirks")?0:g(c,f.paddingTop))+(h("ie")&&h("quirks")?g(c,f.borderTopWidth):0);b.x+=a.x+i-e.x;b.y+=a.y+c-e.y}}else b=m.position(e,!0),b.x+=10,b.y+=10;var j=this,c=this._focusManager.get("prevNode"),a=this._focusManager.get("curNode"),k=!a||l.isDescendant(a,this.domNode)?c:a;n.open({popup:this,x:b.x,y:b.y,onExecute:d,onCancel:d,orient:this.isLeftToRight()?"L":"R"});this.focus();this._onBlur=function(){this.inherited("_onBlur",arguments);n.close(this)}},destroy:function(){k.forEach(this._bindings,
function(a){a&&this.unBindDomNode(a.node)},this);this.inherited(arguments)}})});