1!function(r){"use strict";function s(t,e){this.$menu=this.activeRow=this.mouseLocs=this.lastDelayLoc=this.timeoutId=this.options=null,this.init(t,e)}s.DEFAULTS={rowSelector:"> li",submenuSelector:"*",submenuDivSelector:"> ul",enter:r.noop,exit:r.noop,activate:r.noop,deactivate:r.noop,exitMenu:r.noop,sharedParent:!1,submenuDirection:"bottom"},s.prototype.getDefaults=function(){return s.DEFAULTS},s.prototype.mousemoveDocument=function(t){this.mouseLocs.push({x:t.pageX,y:t.pageY}),this.mouseLocs.length>this.MOUSE_LOCS_TRACKED&&this.mouseLocs.shift()},s.prototype.mouseleaveMenu=function(){this.timeoutId&&clearTimeout(this.timeoutId),this.options.exitMenu(this)&&(this.activeRow&&this.options.deactivate(this.activeRow),this.activeRow=null)},s.prototype.mouseenterRow=function(t){this.timeoutId&&clearTimeout(this.timeoutId),this.options.enter(t.currentTarget),this.possiblyActivate(t.currentTarget)},s.prototype.mouseleaveRow=function(t){this.options.exit(t.currentTarget)},s.prototype.clickRow=function(t){this.activate(t.currentTarget)},s.prototype.activate=function(t){t!=this.activeRow&&(this.activeRow&&this.options.deactivate(this.activeRow),this.options.activate(t),this.activeRow=t)},s.prototype.possiblyActivate=function(t){var e=this.activationDelay(),i=this;e?this.timeoutId=setTimeout(function(){i.possiblyActivate(t)},e):this.activate(t)},s.prototype.activationDelay=function(){if(!this.activeRow||!r(this.activeRow).is(this.options.submenuSelector))return 0;var t,e,i=this.$menu.offset(),o=(this.options.sharedParent?r(this.activeRow).closest(this.options.sharedParent):r(this.activeRow)).find(this.options.submenuDivSelector),s=o.offset(),n=this.mouseLocs[this.mouseLocs.length-1],u=this.mouseLocs[0];if("right"==this.options.submenuDirection?(e={x:s.left,y:s.top},t={x:s.left,y:s.top+o.outerHeight()}):(t={x:s.left,y:s.top},e={x:s.left+o.outerWidth(),y:s.top}),!n)return 0;if((u=u||n).x<i.left||u.x>i.left+this.$menu.outerWidth()||u.y<i.top||u.y>i.top+this.$menu.outerHeight())return 0;if("right"==this.options.submenuDirection){if(n.y<e.y||n.y>t.y)return 0}else if(n.x<t.x||n.x>e.x)return 0;if(this.lastDelayLoc&&n.x==this.lastDelayLoc.x&&n.y==this.lastDelayLoc.y)return 0;function h(t,e){return(e.y-t.y)/(e.x-t.x)}var a=h(n,e),o=h(n,t),s=h(u,e),i=h(u,t),a=h(n,e),o=h(n,t),s=h(u,e),i=h(u,t);return a<s&&i<o?(this.lastDelayLoc=n,this.DELAY):(this.lastDelayLoc=null,0)},s.prototype.destroy=function(){this.$menu.removeData("jquery.menu-aim"),this.$menu.off(".menu-aim").find(this.options.rowSelector).off(".menu-aim"),r(document).off(".menu-aim")},s.prototype.reset=function(t){this.timeoutId&&clearTimeout(this.timeoutId),this.activeRow&&t&&this.options.deactivate(this.activeRow),this.activeRow=null},s.prototype.init=function(t,e){this.$menu=r(t),this.activeRow=null,this.mouseLocs=[],this.lastDelayLoc=null,this.timeoutId=null,this.options=r.extend({},this.getDefaults(),e),this.MOUSE_LOCS_TRACKED=3,this.DELAY=250,this.$menu.on("mouseleave.menu-aim",r.proxy(this.mouseleaveMenu,this)).find(this.options.rowSelector).on("mouseenter.menu-aim",r.proxy(this.mouseenterRow,this)).on("mouseleave.menu-aim",r.proxy(this.mouseleaveRow,this)).on("click.menu-aim",r.proxy(this.clickRow,this)),r(document).on("mousemove.menu-aim",r.proxy(this.mousemoveDocument,this))},r.fn.menuAim=function(o){return this.each(function(){var t=r(this),e=t.data("jquery.menu-aim"),i="object"==typeof o&&o;e||t.data("jquery.menu-aim",e=new s(this,i)),"string"==typeof o&&e[o]()})}}(jQuery);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.