text: /*!
    * CoreUI v2.0.3 (https://coreui.io)
    * Copyright 2018 Łukasz Holeczek
    * Licensed under MIT (https://coreui.io)
    */
  !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("jquery"),require("perfect-scrollbar")):"function"==typeof define&&define.amd?define(["exports","jquery","perfect-scrollbar"],t):t(e.coreui={},e.jQuery,e.PerfectScrollbar)}(this,function(e,t,r){"use strict";function o(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function i(e,t,n){return t&&o(e.prototype,t),n&&o(e,n),e}t=t&&t.hasOwnProperty("default")?t.default:t,r=r&&r.hasOwnProperty("default")?r.default:r;var a,n,s,u,c,l,d,f,p,h,g,m,b,v,w,y,I,_,C,j,T,E,L,S,O,x,P,A,k,D,Q,q,H,U,G,N,R,K,z,M,V,X,B=(n="ajaxLoad",s="coreui.ajaxLoad",u=(a=t).fn[n],c="active",l="open",d="click",f=".sidebar-nav .nav-dropdown",p=".sidebar-nav .nav-link",h=".sidebar-nav .nav-item",g={defaultPage:"views/main.html",errorPage:"views/404.html",subpagesDirectory:""},m=function(){function n(e,t){this._config=this._getConfig(t),this._element=e;var n=location.hash.replace(/^#/,"");""!==n?this.setUpUrl(n):""===a("#ui-view").html()&&this.setUpUrl(this._config.defaultPage),this._addEventListeners()}var e=n.prototype;return e.loadPage=function(e){var t=this._config;"function"==typeof window.beforeHook&&window.beforeHook(),window.location.hash=e.replace("/#/","/"),a.ajax({type:"GET",url:t.subpagesDirectory+e.replace("/#/","/"),dataType:"html",success:function(e){a("#ui-view").html(e),"function"==typeof window.afterHook&&window.afterHook()},error:function(){a.ajax({type:"GET",url:t.errorPage,dataType:"html",success:function(e){a("#ui-view").html(e),"function"==typeof window.afterHook&&window.afterHook()},error:function(){window.location.href=t.errorPage}})}})},e.setUpUrl=function(e){a(p).removeClass(c),a(f).removeClass(l),a(f+':has(a[href="'+e.split("?")[0]+'"])').addClass(l),a(h+' a[href="'+e.split("?")[0]+'"]').addClass(c);var t='<li class="breadcrumb-item"><a href="/">Home</a></li>';a.menuElement=a('nav .nav li:has(a[href="'+e.split("?")[0]+'"])'),a.menuElement.parent().parent().hasClass("nav-dropdown open")&&(a.menuElementParentName=a.menuElement.parent().parent().find("span:first").text(),t+='<li class="breadcrumb-item">'+a.menuElementParentName+"</li>"),t+='<li class="breadcrumb-item active">'+a('nav .nav li:has(a[href="'+e.split("?")[0]+'"])').find(".active").find("span").first().text()+"</li>",a("#breadcrumb").html(t),this.loadPage(e)},e.loadBlank=function(e){window.open(e)},e.loadTop=function(e){window.location=e},e._getConfig=function(e){return e=Object.assign({},g,e)},e._addEventListeners=function(){var t=this;a(document).on(d,"[href]",function(e){e.currentTarget.getAttribute("href").startsWith("/#/")&&(e.preventDefault(),e.stopPropagation(),"_top"===e.currentTarget.target?t.loadTop(e.currentTarget.href):"_blank"===e.currentTarget.target?t.loadBlank(e.currentTarget.href):t.setUpUrl(e.currentTarget.getAttribute("href")))})},n._jQueryInterface=function(t){return this.each(function(){var e=a(this).data(s);e||(e=new n(this,"object"==typeof t&&t),a(this).data(s,e))})},i(n,null,[{key:"VERSION",get:function(){return"2.0.3"}},{key:"Default",get:function(){return g}}]),n}(),a.fn[n]=m._jQueryInterface,a.fn[n].Constructor=m,a.fn[n].noConflict=function(){return a.fn[n]=u,m._jQueryInterface},m),J=function(e,t){var n=t.indexOf(e),r=t.slice(0,n+1);-1!==r.map(function(e){return document.body.classList.contains(e)}).indexOf(!0)?r.map(function(e){return document.body.classList.remove(e)}):document.body.classList.add(e)},Y=(v="aside-menu",w="coreui.aside-menu",y=(b=t).fn[v],I={CLICK:"click",LOAD_DATA_API:"load.coreui.aside-menu.data-api",TOGGLE:"toggle"},_=".aside-menu",C=".aside-menu-toggler",j=["aside-menu-show","aside-menu-sm-show","aside-menu-md-show","aside-menu-lg-show","aside-menu-xl-show"],T=function(){function n(e){this._element=e,this._addEventListeners()}return n.prototype._addEventListeners=function(){b(C).on(I.CLICK,function(e){e.preventDefault(),e.stopPropagation();var t=e.currentTarget.dataset.toggle;J(t,j)})},n._jQueryInterface=function(){return this.each(function(){var e=b(this),t=e.data(w);t||(t=new n(this),e.data(w,t))})},i(n,null,[{key:"VERSION",get:function(){return"2.0.1"}}]),n}(),b(window).on(I.LOAD_DATA_API,function(){var e=b(_);T._jQueryInterface.call(e)}),b.fn[v]=T._jQueryInterface,b.fn[v].Constructor=T,b.fn[v].noConflict=function(){return b.fn[v]=y,T._jQueryInterface},T),$=(L="sidebar",S="coreui.sidebar",O=(E=t).fn[L],x="active",P="brand-minimized",A="open",k="sidebar-minimized",D={CLICK:"click",DESTROY:"destroy",INIT:"init",LOAD_DATA_API:"load.coreui.sidebar.data-api",TOGGLE:"toggle"},Q="body",q=".brand-minimizer",H=".nav-dropdown-toggle",U=".nav-dropdown-items",G=".nav-link",N=".sidebar-nav",R=".sidebar-nav > .nav",K=".sidebar",z=".sidebar-minimizer",M=".sidebar-toggler",V=["sidebar-show","sidebar-sm-show","sidebar-md-show","sidebar-lg-show","sidebar-xl-show"],X=function(){function n(e){this._element=e,this.perfectScrollbar(D.INIT),this.setActiveLink(),this._addEventListeners()}var e=n.prototype;return e.perfectScrollbar=function(e){"undefined"!=typeof r&&(e!==D.INIT||document.body.classList.contains(k)||new r(document.querySelector(N),{suppressScrollX:!0}),e===D.DESTROY&&new r(document.querySelector(N),{suppressScrollX:!0}).destroy(),e===D.TOGGLE&&(document.body.classList.contains(k)?new r(document.querySelector(N),{suppressScrollX:!0}).destroy():new r(document.querySelector(N),{suppressScrollX:!0})))},e.setActiveLink=function(){E(R).find(G).each(function(e,t){var n=t,r=String(window.location).split("?")[0];"#"===r.substr(r.length-1)&&(r=r.slice(0,-1)),E(E(n))[0].href===r&&E(n).addClass(x).parents(U).add(n).each(function(e,t){E(n=t).parent().addClass(A)})})},e._addEventListeners=function(){var t=this;E(q).on(D.CLICK,function(e){e.preventDefault(),e.stopPropagation(),E(Q).toggleClass(P)}),E(H).on(D.CLICK,function(e){e.preventDefault(),e.stopPropagation();var t=e.target;E(t).parent().toggleClass(A)}),E(z).on(D.CLICK,function(e){e.preventDefault(),e.stopPropagation(),E(Q).toggleClass(k),t.perfectScrollbar(D.TOGGLE)}),E(M).on(D.CLICK,function(e){e.preventDefault(),e.stopPropagation();var t=e.currentTarget.dataset.toggle;J(t,V)})},n._jQueryInterface=function(){return this.each(function(){var e=E(this),t=e.data(S);t||(t=new n(this),e.data(S,t))})},i(n,null,[{key:"VERSION",get:function(){return"2.0.1"}}]),n}(),E(window).on(D.LOAD_DATA_API,function(){var e=E(K);X._jQueryInterface.call(e)}),E.fn[L]=X._jQueryInterface,E.fn[L].Constructor=X,E.fn[L].noConflict=function(){return E.fn[L]=O,X._jQueryInterface},X);Object.entries||(Object.entries=function(e){for(var t=Object.keys(e),n=t.length,r=new Array(n);n--;)r[n]=[t[n],e[t[n]]];return r});!function(e){if("undefined"==typeof e)throw new TypeError("CoreUI's JavaScript requires jQuery. jQuery must be included before CoreUI's JavaScript.");var t=e.fn.jquery.split(" ")[0].split(".");if(t[0]<2&&t[1]<9||1===t[0]&&9===t[1]&&t[2]<1||4<=t[0])throw new Error("CoreUI's JavaScript requires at least jQuery v1.9.1 but less than v4.0.0")}(t),window.getStyle=function(e,t){var n,r,o;void 0===t&&(t=document.body),n=e.match(/^--.*/i)&&Boolean(document.documentMode)&&10<=document.documentMode?(r={},0===(o=Object.entries(document.styleSheets).filter(function(e){return":root"===e[1].cssText.substring(0,":root".length)})).length&&(o=Object.entries(document.styleSheets)),Object.entries(o[0][1].cssRules).filter(function(e){return".ie-custom-properties"===e[1].selectorText})[0][1].style.cssText.split(";").forEach(function(e){if(e){var t=e.split(": ")[0],n=e.split(": ")[1];r["--"+t.trim()]=n.trim()}}),r)[e]:window.getComputedStyle(t,null).getPropertyValue(e).replace(/^\s/,"");return n},window.hexToRgb=function(e){if("undefined"==typeof e)throw new Error("Hex color is not defined");var t,n,r;if(!e.match(/^#(?:[0-9a-f]{3}){1,2}$/i))throw new Error(e+" is not a valid hex color");return 7===e.length?(t=parseInt(e.substring(1,3),16),n=parseInt(e.substring(3,5),16),r=parseInt(e.substring(5,7),16)):(t=parseInt(e.substring(1,2),16),n=parseInt(e.substring(2,3),16),r=parseInt(e.substring(3,5),16)),"rgba("+t+", "+n+", "+r+")"},window.hexToRgba=function(e,t){if(void 0===t&&(t=100),"undefined"==typeof e)throw new Error("Hex color is not defined");var n,r,o;if(!e.match(/^#(?:[0-9a-f]{3}){1,2}$/i))throw new Error(e+" is not a valid hex color");return 7===e.length?(n=parseInt(e.substring(1,3),16),r=parseInt(e.substring(3,5),16),o=parseInt(e.substring(5,7),16)):(n=parseInt(e.substring(1,2),16),r=parseInt(e.substring(2,3),16),o=parseInt(e.substring(3,5),16)),"rgba("+n+", "+r+", "+o+", "+t/100+")"},window.rgbToHex=function(e){if("undefined"==typeof e)throw new Error("Hex color is not defined");var t=e.match(/^rgba?[\s+]?\([\s+]?(\d+)[\s+]?,[\s+]?(\d+)[\s+]?,[\s+]?(\d+)[\s+]?/i);if(!t)throw new Error(e+" is not a valid rgb color");var n="0"+parseInt(t[1],10).toString(16),r="0"+parseInt(t[2],10).toString(16),o="0"+parseInt(t[3],10).toString(16);return"#"+n.slice(-2)+r.slice(-2)+o.slice(-2)},e.AjaxLoad=B,e.AsideMenu=Y,e.Sidebar=$,Object.defineProperty(e,"__esModule",{value:!0})});
  //# sourceMappingURL=coreui.min.js.map