"use strict";!function(d,u){d.Package.name="DashLite",d.Package.version="1.0.0";var h=u(window),g=u("body"),f=u(document),p="nk-sidebar",e="nk-sidebar-mobile",m=d.Break;d.ClassBody=function(){d.AddInBody(p)},d.ClassNavMenu=function(){d.BreakClass("."+p,m.lg,{timeOut:0,classAdd:e}),h.on("resize",function(){d.BreakClass("."+p,m.lg,{classAdd:e})})},d.Prettify=function(){window.prettyPrint&&prettyPrint()},d.Copied=function(){var e=".clipboard-init",l=".clipboard-text",c="clipboard-success",d="clipboard-error";function t(e,t){var n=u(e),a=n.parent(),o={text:"Copy",done:"Copied",fail:"Failed"},i={text:n.data("clip-text"),done:n.data("clip-success"),fail:n.data("clip-error")};o.text=i.text?i.text:o.text,o.done=i.done?i.done:o.done,o.fail=i.fail?i.fail:o.fail;var s="success"===t?o.done:o.fail,r="success"===t?c:d;a.addClass(r).find(l).html(s),setTimeout(function(){a.removeClass(c+" "+d).find(l).html(o.text).blur(),a.find("input").blur()},2e3)}ClipboardJS.isSupported()?new ClipboardJS(e).on("success",function(e){t(e.trigger,"success"),e.clearSelection()}).on("error",function(e){t(e.trigger,"error")}):u(e).css("display","none")},d.TGL.showmenu=function(e,t){var n,a,o=u(e||".nk-nav-toggle"),i=u("[data-content]"),s=g.hasClass("short-nav")||i.hasClass("nk-header-menu")?m.lg:m.xl,r=p+"-overlay",l={active:"toggle-active",content:p+"-active",body:"nav-shown",overlay:r,break:s,close:{profile:!0,menu:!1}},c=t?(n=l,a=t,Object.keys(a).forEach(function(e){n[e]=a[e]}),n):l;o.on("click",function(e){d.Toggle.trigger(u(this).data("target"),c),e.preventDefault()}),f.on("mouseup",function(e){!o.is(e.target)&&0===o.has(e.target).length&&!i.is(e.target)&&0===i.has(e.target).length&&d.Win.width<s&&(d.Toggle.removed(o.data("target"),c),d.Toggle.overlayRemove(r))}),h.on("resize",function(){(d.Win.width<m.xl||d.Win.width<s)&&(d.Toggle.removed(o.data("target"),c),d.Toggle.overlayRemove(r))})},d.OtherInit=function(){d.ClassBody(),d.ClassNavMenu()},d.TGL.init=function(){d.TGL.showmenu(".nk-nav-toggle")},d.OnePageScroll=function(){u('a.nk-menu-link[href*="#"]:not([href="#"])').on("click",function(){if(location.pathname.replace(/^\//,"")===this.pathname.replace(/^\//,"")&&location.hostname===this.hostname){var e=this.hash,t=!!this.hash.slice(1)&&u("[name="+this.hash.slice(1)+"]"),n=e.length?u(e):t;if(n.length)return u(".nk-nav-toggle").removeClass("toggle-active"),u(".nk-sidebar").removeClass("nk-sidebar-active"),u(".nk-sidebar-overlay").remove(),u("html, body").delay(150).animate({scrollTop:n.offset().top-80},1e3),!1}})},d.init=function(){d.coms.docReady.push(d.OtherInit),d.coms.docReady.push(d.Prettify),d.coms.docReady.push(d.Copied),d.coms.docReady.push(d.TGL.init),d.coms.docReady.push(d.OnePageScroll)},d.init()}(NioApp,jQuery);