1(function(){var t;t="ontouchstart"in window,function(e,o,n){var a;return a=function(){function a(t,a){this.options=e.extend(!1,{},this.Defaults,a),this.$element=e(t),this.$clone=null,this.$win=e(n),this.$doc=e(o),this.currentLayout=this.options.layout,this.loaded=!1,this.focusOnHover=this.options.focusOnHover,this.focusTimer=!1,this.cloneTimer=!1,this.isStuck=!1,this.initialize()}return a.prototype.Defaults={layout:"rd-navbar-static",deviceLayout:"rd-navbar-fixed",focusOnHover:!0,focusOnHoverTimeout:100,linkedElements:["html"],domAppend:!0,stickUp:!0,stickUpClone:!0,stickUpOffset:"100%",anchorNav:!0,anchorNavSpeed:200,anchorNavOffset:0,anchorNavEasing:"swing",autoHeight:!0,responsive:{0:{layout:"rd-navbar-fixed",deviceLayout:"rd-navbar-fixed",focusOnHover:!1,stickUp:!1},992:{layout:"rd-navbar-static",deviceLayout:"rd-navbar-static",focusOnHover:!0,stickUp:!0}},callbacks:{onToggleSwitch:!1,onToggleClose:!1,onDomAppend:!1,onDropdownOver:!1,onDropdownOut:!1,onDropdownToggle:!1,onDropdownClose:!1,onStuck:!1,onUnstuck:!1,onAnchorChange:!1}},a.prototype.initialize=function(){var e;return e=this,e.$element.addClass("rd-navbar").addClass(e.options.layout),t&&e.$element.addClass("rd-navbar--is-touch"),e.setDataAPI(e),e.options.domAppend&&e.createNav(e),e.options.stickUpClone&&e.createClone(e),e.$element.addClass("rd-navbar-original"),e.addAdditionalClassToToggles(".rd-navbar-original","toggle-original","toggle-original-elements"),e.applyHandlers(e),e.offset=e.$element.offset().top,e.height=e.$element.outerHeight(),e.loaded=!0,e},a.prototype.resize=function(o,n){var a,s;return s=t?o.getOption("deviceLayout"):o.getOption("layout"),a=o.$element.add(o.$clone),s===o.currentLayout&&o.loaded||(o.switchClass(a,o.currentLayout,s),null!=o.options.linkedElements&&e.grep(o.options.linkedElements,function(t,e){return o.switchClass(t,o.currentLayout+"-linked",s+"-linked")}),o.currentLayout=s),o.focusOnHover=o.getOption("focusOnHover"),o},a.prototype.stickUp=function(t,o){var n,a,s,r,i;return a=t.getOption("stickUp"),(e("html").hasClass("ios")||t.$element.hasClass("rd-navbar-fixed"))&&(a=!1),n=t.$doc.scrollTop(),r=null!=t.$clone?t.$clone:t.$element,s=t.getOption("stickUpOffset"),i="string"==typeof s?s.indexOf("%")>0?parseFloat(s)*t.height/100:parseFloat(s):s,a?(n>=i&&!t.isStuck||i>n&&t.isStuck)&&(t.$element.add(t.$clone).find("[data-rd-navbar-toggle]").each(function(){e.proxy(t.closeToggle,this)(t,!1)}).end().find(".rd-navbar-submenu").removeClass("opened").removeClass("focus"),n>=i&&!t.isStuck&&!t.$element.hasClass("rd-navbar-fixed")?(t.options.callbacks.onStuck&&t.options.callbacks.onStuck.call(t),setTimeout(function(){"resize"===o.type?t.switchClass(r,"","rd-navbar--is-stuck"):r.addClass("rd-navbar--is-stuck"),t.isStuck=!0},navigator.platform.match(/(Mac)/i)?10:0)):("resize"===o.type?t.switchClass(r,"rd-navbar--is-stuck",""):r.removeClass("rd-navbar--is-stuck").one("transitionend webkitTransitionEnd oTransitionEnd MSTransitionEnd",e.proxy(t.resizeWrap,t,o)),t.isStuck=!1,t.options.callbacks.onUnstuck&&t.options.callbacks.onUnstuck.call(t))):(t.$element.find(".rd-navbar-submenu").removeClass("opened").removeClass("focus"),t.isStuck&&(t.switchClass(r,"rd-navbar--is-stuck",""),t.isStuck=!1,t.resizeWrap(o))),t},a.prototype.resizeWrap=function(t){var e,o;return o=this,null!=o.$clone||o.isStuck?void 0:(e=o.$element.parent(),o.getOption("autoHeight")?(o.height=o.$element.outerHeight(),"resize"===t.type?(e.addClass("rd-navbar--no-transition").css("height",o.height),e[0].offsetHeight,e.removeClass("rd-navbar--no-transition")):e.css("height",o.height)):void e.css("height","auto"))},a.prototype.createNav=function(t){return t.$element.find(".rd-navbar-dropdown, .rd-navbar-megamenu").each(function(){var t,o;return t=e(this),o=this.getBoundingClientRect(),t.hasClass("rd-navbar-megamenu")?t.parent().addClass("rd-navbar--has-megamenu"):t.parent().addClass("rd-navbar--has-dropdown")}).parents("li").addClass("rd-navbar-submenu"),e(".rd-navbar-nav li.rd-navbar-submenu > a").addClass("rd-navbar-submenu-toggle"),t.options.callbacks.onDomAppend&&t.options.callbacks.onDomAppend.call(this),t},a.prototype.createClone=function(t){return t.$clone=t.$element.clone().insertAfter(t.$element).addClass("rd-navbar--is-clone"),t.addAdditionalClassToToggles(".rd-navbar--is-clone","toggle-cloned","toggle-cloned-elements"),t},a.prototype.closeToggle=function(t,o){var n,a,s,r,i,l,d;return a=e(o.target),i=!1,l=this.getAttribute("data-rd-navbar-toggle"),t.options.stickUpClone&&t.isStuck?(r=".toggle-cloned",s=".toggle-cloned-elements",d=!a.hasClass("toggle-cloned")):(r=".toggle-original",s=".toggle-original-elements",d=!a.hasClass("toggle-original")),o.target!==this&&!a.parents(r+"[data-rd-navbar-toggle]").length&&!a.parents(s).length&&l&&d&&(n=e(this).parents("body").find(l).add(e(this).parents(".rd-navbar")[0]),n.each(function(){return i?void 0:i=(o.target===this||e.contains(this,o.target))===!0}),i||(n.add(this).removeClass("active"),t.options.callbacks.onToggleClose&&t.options.callbacks.onToggleClose.call(this,t))),this},a.prototype.switchToggle=function(t,o){var n,a,s;return o.preventDefault(),e(this).hasClass("toggle-cloned")?(s=".rd-navbar--is-clone",n=".toggle-cloned-elements"):(s=".rd-navbar-original",n=".toggle-original-elements"),(a=this.getAttribute("data-rd-navbar-toggle"))&&(e(s+" [data-rd-navbar-toggle]").not(this).each(function(){var t;return(t=this.getAttribute("data-rd-navbar-toggle"))?e(this).parents("body").find(s+" "+t+n).add(this).add(e.inArray(".rd-navbar",t.split(/\s*,\s*/i))>-1?e(this).parents("body")[0]:!1).removeClass("active"):void 0}),e(this).parents("body").find(s+" "+a+n).add(this).add(e.inArray(".rd-navbar",a.split(/\s*,\s*/i))>-1?e(this).parents(".rd-navbar")[0]:!1).toggleClass("active")),t.options.callbacks.onToggleSwitch&&t.options.callbacks.onToggleSwitch.call(this,t),this},a.prototype.dropdownOver=function(t,o){var n;if(t.focusOnHover){if(n=e(this),clearTimeout(o),t.options.callbacks.onDropdownOver&&!t.options.callbacks.onDropdownOver.call(this,t))return this;n.addClass("focus").siblings().removeClass("opened").each(t.dropdownUnfocus)}return this},a.prototype.dropdownTouch=function(t,o){var n,a;if(n=e(this),clearTimeout(o),t.focusOnHover){if(a=!1,n.hasClass("focus")&&(a=!0),!a)return n.addClass("focus").siblings().removeClass("opened").each(t.dropdownUnfocus),!1;t.options.callbacks.onDropdownOver&&t.options.callbacks.onDropdownOver.call(this,t)}return this},a.prototype.dropdownOut=function(t,o){var n;return t.focusOnHover&&(n=e(this),n.one("mouseenter.navbar",function(){return clearTimeout(o)}),t.options.callbacks.onDropdownOut&&t.options.callbacks.onDropdownOut.call(this,t),clearTimeout(o),o=setTimeout(e.proxy(t.dropdownUnfocus,this,t),t.options.focusOnHoverTimeout)),this},a.prototype.dropdownUnfocus=function(t){var o;return o=e(this),o.find("li.focus").add(this).removeClass("focus"),this},a.prototype.dropdownClose=function(t,o){var n;return o.target===this||e(o.target).parents(".rd-navbar-submenu").length||(n=e(this),n.find("li.focus").add(this).removeClass("focus").removeClass("opened"),t.options.callbacks.onDropdownClose&&t.options.callbacks.onDropdownClose.call(this,t)),this},a.prototype.dropdownToggle=function(t){return e(this).toggleClass("opened").siblings().removeClass("opened"),t.options.callbacks.onDropdownToggle&&t.options.callbacks.onDropdownToggle.call(this,t),this},a.prototype.goToAnchor=function(t,o){var n,a;return a=this.hash,n=e(a),t.getOption("anchorNav")?(n.length&&(o.preventDefault(),e("html, body").stop().animate({scrollTop:n.offset().top+t.getOption("anchorNavOffset")+1},t.getOption("anchorNavSpeed"),t.getOption("anchorNavEasing"),function(){return t.changeAnchor(a)})),this):!1},a.prototype.activateAnchor=function(t){var o,n,a,s,r,i,l,d,c,p,h,u;if(s=this,h=s.$doc.scrollTop(),u=s.$win.height(),r=s.$doc.height(),p=s.getOption("anchorNavOffset"),
1!s.options.anchorNav)return!1;if(h+u>r-50)return o=e('[data-type="anchor"]').last(),o.length&&o.offset().top>=h&&(i="#"+o.attr("id"),n=e('.rd-navbar-nav a[href^="'+i+'"]').parent(),n.hasClass("active")||(n.addClass("active").siblings().removeClass("active"),s.options.callbacks.onAnchorChange&&s.options.callbacks.onAnchorChange.call(o[0],s))),o;c=e('.rd-navbar-nav a[href^="#"]').get();for(l in c)d=c[l],a=e(d),i=a.attr("href"),o=e(i),o.length&&o.offset().top+p<=h&&o.offset().top+o.outerHeight()>h&&(a.parent().addClass("active").siblings().removeClass("active"),s.options.callbacks.onAnchorChange&&s.options.callbacks.onAnchorChange.call(o[0],s));return null},a.prototype.getAnchor=function(){return history&&history.state?history.state.id:null},a.prototype.changeAnchor=function(t){return history&&(history.state&&history.state.id!==t?history.replaceState({anchorId:t},null,t):history.pushState({anchorId:t},null,t)),this},a.prototype.applyHandlers=function(t){return null!=t.options.responsive&&t.$win.on("resize.navbar",e.proxy(t.resize,t.$win[0],t)).on("resize.navbar",e.proxy(t.resizeWrap,t)).on("resize.navbar",e.proxy(t.stickUp,null!=t.$clone?t.$clone:t.$element,t)).on("orientationchange.navbar",e.proxy(t.resize,t.$win[0],t)).trigger("resize.navbar"),t.$doc.on("scroll.navbar",e.proxy(t.stickUp,null!=t.$clone?t.$clone:t.$element,t)).on("scroll.navbar",e.proxy(t.activateAnchor,t)),t.$element.add(t.$clone).find("[data-rd-navbar-toggle]").each(function(){var o;return o=e(this),o.on("click",e.proxy(t.switchToggle,this,t)),o.parents("body").on("click",e.proxy(t.closeToggle,this,t))}),t.$element.add(t.$clone).find(".rd-navbar-submenu").each(function(){var o,n;return o=e(this),n=o.parents(".rd-navbar--is-clone").length?t.cloneTimer:t.focusTimer,o.on("mouseleave.navbar",e.proxy(t.dropdownOut,this,t,n)),o.find("> a").on("mouseenter.navbar",e.proxy(t.dropdownOver,this,t,n)),o.find("> a").on("touchstart.navbar",e.proxy(t.dropdownTouch,this,t,n)),o.find("> .rd-navbar-submenu-toggle").on("click",e.proxy(t.dropdownToggle,this,t)),o.parents("body").on("click",e.proxy(t.dropdownClose,this,t))}),t.$element.add(t.$clone).find('.rd-navbar-nav a[href^="#"]').each(function(){return e(this).on("click",e.proxy(t.goToAnchor,this,t))}),t.$element.find(".rd-navbar-dropdown, .rd-navbar-megamenu").each(function(){var t,o;t=e(this),o=this.getBoundingClientRect(),o.left+t.outerWidth()>=n.innerWidth-10?this.className+=" rd-navbar-open-left":o.left-t.outerWidth()<=10&&(this.className+=" rd-navbar-open-right")}),t},a.prototype.switchClass=function(t,o,n){var a;return a=t instanceof jQuery?t:e(t),a.addClass("rd-navbar--no-transition").removeClass(o).addClass(n),a[0].offsetHeight,a.removeClass("rd-navbar--no-transition")},a.prototype.setDataAPI=function(t){var e,o,n,a,s,r;for(e=["-","-xs-","-sm-","-md-","-lg-","-xl-"],r=[0,480,768,992,1200,1800],o=n=0,a=r.length;a>n;o=++n)s=r[o],this.$element.attr("data"+e[o]+"layout")&&(this.options.responsive[r[o]]||(this.options.responsive[r[o]]={}),this.options.responsive[r[o]].layout=this.$element.attr("data"+e[o]+"layout")),this.$element.attr("data"+e[o]+"device-layout")&&(this.options.responsive[r[o]]||(this.options.responsive[r[o]]={}),this.options.responsive[r[o]].deviceLayout=this.$element.attr("data"+e[o]+"device-layout")),this.$element.attr("data"+e[o]+"hover-on")&&(this.options.responsive[r[o]]||(this.options.responsive[r[o]]={}),this.options.responsive[r[o]].focusOnHover="true"===this.$element.attr("data"+e[o]+"hover-on")),this.$element.attr("data"+e[o]+"auto-height")&&(this.options.responsive[r[o]]||(this.options.responsive[r[o]]={}),this.options.responsive[r[o]].autoHeight="true"===this.$element.attr("data"+e[o]+"auto-height")),this.$element.attr("data"+e[o]+"stick-up-offset")&&(this.options.responsive[r[o]]||(this.options.responsive[r[o]]={}),this.options.responsive[r[o]].stickUpOffset=this.$element.attr("data"+e[o]+"stick-up-offset"))},a.prototype.getOption=function(t){var e,o;for(e in this.options.responsive)e<=n.innerWidth&&(o=e);return null!=this.options.responsive&&null!=this.options.responsive[o][t]?this.options.responsive[o][t]:this.options[t]},a.prototype.addAdditionalClassToToggles=function(t,o,n){return e(t).find("[data-rd-navbar-toggle]").each(function(){var a;return e(this).addClass(o),a=this.getAttribute("data-rd-navbar-toggle"),e(this).parents("body").find(t).find(a).addClass(n)})},a}(),e.fn.extend({RDNavbar:function(t){var o;return o=e(this),o.data("RDNavbar")?void 0:o.data("RDNavbar",new a(this,t))}}),n.RDNavbar=a}(window.jQuery,document,window),"undefined"!=typeof module&&null!==module?module.exports=window.RDNavbar:"function"==typeof define&&define.amd&&define(["jquery"],function(){"use strict";return window.RDNavbar})}).call(this);
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.