!function(t,e){var s=function(t){var e={};function s(i){if(e[i])return e[i].exports;var n=e[i]={i:i,l:!1,exports:{}};return t[i].call(n.exports,n,n.exports,s),n.l=!0,n.exports}return s.m=t,s.c=e,s.d=function(t,e,i){s.o(t,e)||Object.defineProperty(t,e,{configurable:!1,enumerable:!0,get:i})},s.r=function(t){Object.defineProperty(t,"__esModule",{value:!0})},s.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return s.d(e,"a",e),e},s.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},s.p="",s(s.s=449)}({24:function(t,e){t.exports=function(t){var e="undefined"!=typeof window&&window.location;if(!e)throw new Error("fixUrls requires window.location");if(!t||"string"!=typeof t)return t;var s=e.protocol+"//"+e.host,i=s+e.pathname.replace(/\/[^\/]*$/,"/"),n=t.replace(/url\s*\(((?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)\)/gi,function(t,e){var n,a=e.trim().replace(/^"(.*)"$/,function(t,e){return e}).replace(/^'(.*)'$/,function(t,e){return e});return/^(#|data:|http:\/\/|https:\/\/|file:\/\/\/|\s*$)/i.test(a)?t:(n=0===a.indexOf("//")?a:0===a.indexOf("/")?s+a:i+a.replace(/^\.\//,""),"url("+JSON.stringify(n)+")")});return n}},25:function(t,e,s){var i,n,a={},r=(i=function(){return window&&document&&document.all&&!window.atob},function(){return void 0===n&&(n=i.apply(this,arguments)),n}),o=function(t){var e={};return function(t){if("function"==typeof t)return t();if(void 0===e[t]){var s=function(t){return document.querySelector(t)}.call(this,t);if(window.HTMLIFrameElement&&s instanceof window.HTMLIFrameElement)try{s=s.contentDocument.head}catch(t){s=null}e[t]=s}return e[t]}}(),l=null,d=0,h=[],c=s(24);function u(t,e){for(var s=0;s=0&&h.splice(e,1)}function m(t){var e=document.createElement("style");return t.attrs.type="text/css",p(e,t.attrs),v(t,e),e}function p(t,e){Object.keys(e).forEach(function(s){t.setAttribute(s,e[s])})}function b(t,e){var s,i,n,a;if(e.transform&&t.css){if(!(a=e.transform(t.css)))return function(){};t.css=a}if(e.singleton){var r=d++;s=l||(l=m(e)),i=k.bind(null,s,r,!1),n=k.bind(null,s,r,!0)}else t.sourceMap&&"function"==typeof URL&&"function"==typeof URL.createObjectURL&&"function"==typeof URL.revokeObjectURL&&"function"==typeof Blob&&"function"==typeof btoa?(s=function(t){var e=document.createElement("link");return t.attrs.type="text/css",t.attrs.rel="stylesheet",p(e,t.attrs),v(t,e),e}(e),i=function(t,e,s){var i=s.css,n=s.sourceMap,a=void 0===e.convertToAbsoluteUrls&&n;(e.convertToAbsoluteUrls||a)&&(i=c(i)),n&&(i+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(n))))+" */");var r=new Blob([i],{type:"text/css"}),o=t.href;t.href=URL.createObjectURL(r),o&&URL.revokeObjectURL(o)}.bind(null,s,e),n=function(){f(s),s.href&&URL.revokeObjectURL(s.href)}):(s=m(e),i=function(t,e){var s=e.css,i=e.media;if(i&&t.setAttribute("media",i),t.styleSheet)t.styleSheet.cssText=s;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(s))}}.bind(null,s),n=function(){f(s)});return i(t),function(e){if(e){if(e.css===t.css&&e.media===t.media&&e.sourceMap===t.sourceMap)return;i(t=e)}else n()}}t.exports=function(t,e){if("undefined"!=typeof DEBUG&&DEBUG&&"object"!=typeof document)throw new Error("The style-loader cannot be used in a non-browser environment");(e=e||{}).attrs="object"==typeof e.attrs?e.attrs:{},e.singleton||"boolean"==typeof e.singleton||(e.singleton=r()),e.insertInto||(e.insertInto="head"),e.insertAt||(e.insertAt="bottom");var s=g(t,e);return u(s,e),function(t){for(var i=[],n=0;n1&&void 0!==arguments[1])||arguments[1],a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;if(this._hasControls("themes")){for(var r=!1,o=0,l=this.settings.availableThemes.length;o1&&void 0!==arguments[1])||arguments[1];this._hasControls("layoutPosition")&&("static"!==t&&"static-offcanvas"!==t&&"fixed"!==t&&"fixed-offcanvas"!==t||(this.settings.layoutPosition=t,e&&this._setSetting("LayoutPosition",t),window.layoutHelpers.setPosition("fixed"===t||"fixed-offcanvas"===t,"static-offcanvas"===t||"fixed-offcanvas"===t),e&&this.settings.onSettingsChange(this.settings)))}},{key:"setLayoutNavbarFixed",value:function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];this._hasControls("layoutNavbarFixed")&&(this.settings.layoutNavbarFixed=t,e&&this._setSetting("FixedNavbar",t),window.layoutHelpers.setNavbarFixed(t),e&&this.settings.onSettingsChange(this.settings))}},{key:"setLayoutFooterFixed",value:function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];this._hasControls("layoutFooterFixed")&&(this.settings.layoutFooterFixed=t,e&&this._setSetting("FixedFooter",t),window.layoutHelpers.setFooterFixed(t),e&&this.settings.onSettingsChange(this.settings))}},{key:"setLayoutReversed",value:function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];this._hasControls("layoutReversed")&&(this.settings.layoutReversed=t,e&&this._setSetting("LayoutReversed",t),window.layoutHelpers.setReversed(t),e&&this.settings.onSettingsChange(this.settings))}},{key:"setNavbarBg",value:function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:document;if(this._hasControls("navbarBg")&&-1!==this.settings.navbarBgs.indexOf(t)){this.settings.navbarBg=t,e&&this._setSetting("NavbarBg",t);var i=s.querySelector(".layout-navbar.navbar, .layout-navbar .navbar");if(i){i.className=i.className.replace(/^bg\-[^ ]+| bg\-[^ ]+/gi,""),i.classList.remove("navbar-light"),i.classList.remove("navbar-dark");var n=t.split(" ");i.classList.add("bg-"+n[0]);for(var a=1,r=n.length;a1&&void 0!==arguments[1])||arguments[1],s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:document;if(this._hasControls("sidenavBg")&&-1!==this.settings.sidenavBgs.indexOf(t)){this.settings.sidenavBg=t,e&&this._setSetting("SidenavBg",t);var i=s.querySelector(".layout-sidenav.sidenav, .layout-sidenav .sidenav, .layout-sidenav-horizontal.sidenav, .layout-sidenav-horizontal .sidenav");if(i){i.className=i.className.replace(/^bg\-[^ ]+| bg\-[^ ]+/gi,""),i.classList.remove("sidenav-light"),i.classList.remove("sidenav-dark");var n=t.split(" ");i.classList.contains("sidenav-horizontal")&&((n=n.join(" ").replace(" sidenav-dark","").replace(" sidenav-light","").split(" "))[0]=n[0].replace(/-darke?r?$/,"")),i.classList.add("bg-"+n[0]);for(var a=1,r=n.length;a1&&void 0!==arguments[1])||arguments[1],s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:document;if(this._hasControls("footerBg")&&-1!==this.settings.footerBgs.indexOf(t)){this.settings.footerBg=t,e&&this._setSetting("FooterBg",t);var i=s.querySelector(".layout-footer.footer, .layout-footer .footer");if(i){i.className=i.className.replace(/^bg\-[^ ]+| bg\-[^ ]+/gi,""),i.classList.remove("footer-light"),i.classList.remove("footer-dark");var n=t.split(" ");i.classList.add("bg-"+n[0]);for(var a=1,r=n.length;a0&&void 0!==arguments[0]?arguments[0]:document;this.setNavbarBg(this.settings.navbarBg,!1,t)}},{key:"updateSidenavBg",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document;this.setSidenavBg(this.settings.sidenavBg,!1,t)}},{key:"updateFooterBg",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document;this.setFooterBg(this.settings.footerBg,!1,t)}},{key:"clearLocalStorage",value:function(){this._ssr||(this._setSetting("Theme",""),this._setSetting("Rtl",""),this._setSetting("Material",""),this._setSetting("LayoutReversed",""),this._setSetting("FixedNavbar",""),this._setSetting("FixedFooter",""),this._setSetting("LayoutPosition",""),this._setSetting("NavbarBg",""),this._setSetting("SidenavBg",""),this._setSetting("FooterBg",""))}},{key:"destroy",value:function(){this._ssr||(this._cleanup(),this.settings=null,this.container.parentNode.removeChild(this.container),this.container=null)}},{key:"_loadSettings",value:function(){var t=document.documentElement.classList,e=this._getSetting("Rtl"),s=this._getSetting("Material"),i=this._getSetting("LayoutReversed"),n=this._getSetting("FixedNavbar"),a=this._getSetting("FixedFooter"),r=this._getSetting("NavbarBg"),o=this._getSetting("SidenavBg"),l=this._getSetting("FooterBg"),d=this._getSetting("LayoutPosition"),h=void 0;h=""!==d&&-1!==["static","static-offcanvas","fixed","fixed-offcanvas"].indexOf(d)?d:t.contains("layout-offcanvas")?"static-offcanvas":t.contains("layout-fixed")?"fixed":t.contains("layout-fixed-offcanvas")?"fixed-offcanvas":"static",this.settings.rtl=""!==e?"true"===e:"rtl"===document.documentElement.getAttribute("dir"),this.settings.material=""!==s?"true"===s:t.contains("material-style"),this.settings.layoutPosition=h,this.settings.layoutReversed=""!==i?"true"===i:t.contains("layout-reversed"),this.settings.layoutNavbarFixed=""!==n?"true"===n:t.contains("layout-navbar-fixed"),this.settings.layoutFooterFixed=""!==a?"true"===a:t.contains("layout-footer-fixed"),this.settings.navbarBg=-1!==this.settings.navbarBgs.indexOf(r)?r:this.settings.defaultNavbarBg,this.settings.sidenavBg=-1!==this.settings.sidenavBgs.indexOf(o)?o:this.settings.defaultSidenavBg,this.settings.footerBg=-1!==this.settings.footerBgs.indexOf(l)?l:this.settings.defaultFooterBg,this.settings.theme=this._getThemeByFile(this._getSetting("Theme")),this._hasControls("rtl")||(this.settings.rtl="rtl"===document.documentElement.getAttribute("dir")),this._hasControls("material")||(this.settings.material=t.contains("material-style")),this._hasControls("layoutPosition")||(this.settings.layoutPosition=null),this._hasControls("layoutReversed")||(this.settings.layoutReversed=null),this._hasControls("layoutNavbarFixed")||(this.settings.layoutNavbarFixed=null),this._hasControls("layoutFooterFixed")||(this.settings.layoutFooterFixed=null),this._hasControls("navbarBg")||(this.settings.navbarBg=null),this._hasControls("sidenavBg")||(this.settings.sidenavBg=null),this._hasControls("footerBg")||(this.settings.footerBg=null),this._hasControls("themes")||(this.settings.theme=null)}},{key:"_setup",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document;this._cleanup(),this.container=this._getElementFromString(r.default);var s=this.container.querySelector(".theme-settings-open-btn"),i=function(){t.container.classList.add("theme-settings-open"),t.update(),t._updateInterval&&clearInterval(t._updateInterval),t._updateInterval=setInterval(function(){t.update()},1e3)};s.addEventListener("click",i),this._listeners.push([s,"click",i]);var n=this.container.querySelector(".theme-settings-close-btn"),a=function(){t.container.classList.remove("theme-settings-open"),t._updateInterval&&(clearInterval(t._updateInterval),t._updateInterval=null)};n.addEventListener("click",a),this._listeners.push([n,"click",a]);var o=this.container.querySelector(".theme-settings-rtl");if(this._hasControls("rtl")){var d=o.querySelector("input");this.settings.rtl&&d.setAttribute("checked","checked");var c=function(e){t._loadingState(!0),t.setRtl(e.target.checked)};d.addEventListener("change",c),this._listeners.push([d,"change",c])}else o.parentNode.removeChild(o);var u=this.container.querySelector(".theme-settings-material");if(this._hasControls("material")){var g=u.querySelector("input");this.settings.material&&g.setAttribute("checked","checked");var v=function(e){t._loadingState(!0),t.setMaterial(e.target.checked)};g.addEventListener("change",v),this._listeners.push([g,"change",v])}else u.parentNode.removeChild(u);var f=this.container.querySelector(".theme-settings-layout");if(this._hasControls("layoutPosition layoutNavbarFixed layoutFooterFixed layoutReversed",!0)){var m=this.container.querySelector(".theme-settings-layoutPosition");if(this._hasControls("layoutPosition")){this._controls.layoutPosition=m.querySelector("select"),this._controls.layoutPosition.value=this.settings.layoutPosition;var p=function(e){return t.setLayoutPosition(e.target.value)};this._controls.layoutPosition.addEventListener("change",p),this._listeners.push([this._controls.layoutPosition,"change",p])}else m.parentNode.removeChild(m);if(this._controls.layoutNavbarFixedW=this.container.querySelector(".theme-settings-layoutNavbarFixed"),this._hasControls("layoutNavbarFixed")){this._controls.layoutNavbarFixed=this._controls.layoutNavbarFixedW.querySelector("input"),this.settings.layoutNavbarFixed&&this._controls.layoutNavbarFixed.setAttribute("checked","checked");var b=function(e){return t.setLayoutNavbarFixed(e.target.checked)};this._controls.layoutNavbarFixed.addEventListener("change",b),this._listeners.push([this._controls.layoutNavbarFixed,"change",b])}else this._controls.layoutNavbarFixedW.parentNode.removeChild(this._controls.layoutNavbarFixedW);if(this._controls.layoutFooterFixedW=this.container.querySelector(".theme-settings-layoutFooterFixed"),this._hasControls("layoutFooterFixed")){this._controls.layoutFooterFixed=this._controls.layoutFooterFixedW.querySelector("input"),this.settings.layoutFooterFixed&&this._controls.layoutFooterFixed.setAttribute("checked","checked");var y=function(e){return t.setLayoutFooterFixed(e.target.checked)};this._controls.layoutFooterFixed.addEventListener("change",y),this._listeners.push([this._controls.layoutFooterFixed,"change",y])}else this._controls.layoutFooterFixedW.parentNode.removeChild(this._controls.layoutFooterFixedW);if(this._controls.layoutReversedW=this.container.querySelector(".theme-settings-layoutReversed"),this._hasControls("layoutReversed")){this._controls.layoutReversed=this._controls.layoutReversedW.querySelector("input"),this.settings.layoutReversed&&this._controls.layoutReversed.setAttribute("checked","checked");var x=function(e){return t.setLayoutReversed(e.target.checked)};this._controls.layoutReversed.addEventListener("change",x),this._listeners.push([this._controls.layoutReversed,"change",x])}else this._controls.layoutReversedW.parentNode.removeChild(this._controls.layoutReversedW)}else f.parentNode.removeChild(f);var k=this.container.querySelector(".theme-settings-navbarBg");this._hasControls("navbarBg")?(this._controls.navbarBgWInner=k.querySelector(".theme-settings-navbarBg-inner"),this.settings.navbarBgs.forEach(function(e){var s=t._getElementFromString(h.default),i=s.querySelector("input");s.classList.add("bg-"+e.split(" ")[0]),i.name="theme-settings-navbarBg-input",i.value=e,t.settings.navbarBg===e&&(i.setAttribute("checked","checked"),s.classList.add("active"));var n=function(e){for(var s=t._controls.navbarBgWInner.querySelectorAll(".theme-settings-bg-item"),i=0,n=s.length;i\n \n \n ';var n=function(e){t._loading||(t._loading=!0,t._loadingState(!0,!0),t.setTheme(e.target.value,!0,function(){t._loading=!1,t._loadingState(!1,!0)}))};i.addEventListener("change",n),t._listeners.push([i,"change",n]),B.appendChild(s)})}else S.parentNode.removeChild(S);e===document?e.body?e.body.appendChild(this.container):window.addEventListener("DOMContentLoaded",function(){return e.body.appendChild(t.container)}):e.appendChild(this.container)}},{key:"_initDirection",value:function(){this._hasControls("rtl")&&document.documentElement.setAttribute("dir",this.settings.rtl?"rtl":"ltr")}},{key:"_initStyle",value:function(){if(this._hasControls("material")){var t=this.settings.material;this._insertStylesheet("theme-settings-bootstrap-css",this.pathResolver(this.settings.cssPath+this.settings.cssFilenamePattern.replace("%name%","bootstrap"+(t?"-material":"")))),this._insertStylesheet("theme-settings-appwork-css",this.pathResolver(this.settings.cssPath+this.settings.cssFilenamePattern.replace("%name%","appwork"+(t?"-material":"")))),this._insertStylesheet("theme-settings-colors-css",this.pathResolver(this.settings.cssPath+this.settings.cssFilenamePattern.replace("%name%","colors"+(t?"-material":"")))),document.documentElement.classList.remove(t?"default-style":"material-style"),document.documentElement.classList.add(t?"material-style":"default-style"),t&&window.attachMaterialRipple&&(document.body?window.attachMaterialRipple():window.addEventListener("DOMContentLoaded",function(){return window.attachMaterialRipple()}))}}},{key:"_initTheme",value:function(){this._hasControls("themes")&&this._insertStylesheet("theme-settings-theme-css",this.pathResolver(this.settings.themesPath+this.settings.cssFilenamePattern.replace("%name%",this.settings.theme.name+(this.settings.material?"-material":""))))}},{key:"_insertStylesheet",value:function(t,e){var s=document.querySelector("."+t);if("number"==typeof document.documentMode&&document.documentMode<11){if(!s)return;if(e===s.getAttribute("href"))return;var i=document.createElement("link");i.setAttribute("rel","stylesheet"),i.setAttribute("type","text/css"),i.className=t,i.setAttribute("href",e),s.parentNode.insertBefore(i,s.nextSibling)}else document.write('');s.parentNode.removeChild(s)}},{key:"_loadStylesheets",value:function(t,e){var s=Object.keys(t),i=s.length,n=0;function a(t,e,s){var i=document.createElement("link");i.setAttribute("href",t),i.setAttribute("rel","stylesheet"),i.setAttribute("type","text/css"),i.className=e.className;var n="sheet"in i?"sheet":"styleSheet",a="sheet"in i?"cssRules":"rules",r=void 0,o=void 0;r=setTimeout(function(){clearInterval(o),clearTimeout(r),e.parentNode.removeChild(i),s(!1,t)},15e3),o=setInterval(function(){try{i[n]&&i[n][a].length&&(clearInterval(o),clearTimeout(r),e.parentNode.removeChild(e),s(!0))}catch(t){console.error(t)}},10),e.parentNode.insertBefore(i,e.nextSibling)}for(var r=0;r=i&&e()})}},{key:"_loadingState",value:function(t,e){this.container.classList[t?"add":"remove"]("theme-settings-loading"+(e?"-theme":""))}},{key:"_waitForNavs",value:function(){var t=this;this._addObserver(".layout-navbar.navbar, .layout-navbar .navbar",function(t){return t&&t.classList&&t.classList.contains("layout-navbar")&&(t.classList.contains("navbar")||t.querySelector(".navbar"))},function(){return t.setNavbarBg(t.settings.navbarBg,!1)}),this._addObserver(".layout-sidenav.sidenav, .layout-sidenav .sidenav, .layout-sidenav-horizontal.sidenav, .layout-sidenav-horizontal .sidenav",function(t){return t&&t.classList&&(t.classList.contains("layout-sidenav")||t.classList.contains("layout-sidenav-horizontal"))&&(t.classList.contains("sidenav")||t.querySelector(".sidenav"))},function(){return t.setSidenavBg(t.settings.sidenavBg,!1)}),this._addObserver(".layout-footer.footer, .layout-footer .footer",function(t){return t&&t.classList&&t.classList.contains("layout-footer")&&(t.classList.contains("footer")||t.querySelector(".footer"))},function(){return t.setFooterBg(t.settings.footerBg,!1)}),!document.body&&(this._observers&&this._observers.length||this._intervals&&this._intervals.length)&&window.addEventListener("load",function e(){t._clearObservers(),t.setNavbarBg(t.settings.navbarBg,!1),t.setSidenavBg(t.settings.sidenavBg,!1),t.setFooterBg(t.settings.footerBg,!1),window.removeEventListener("load",e)})}},{key:"_addObserver",value:function(t,e,s){var i=this;this._observers||(this._observers=[]),this._intervals||(this._intervals=[]);var n=void 0,a=void 0;document.querySelector(t)?s.call(this):document.body||("undefined"!=typeof MutationObserver?(n=new MutationObserver(function(t){t.forEach(function(t){if(t.addedNodes)for(var a=0;a1&&void 0!==arguments[1]&&arguments[1];return t.split(" ").reduce(function(t,i){return-1!==e.settings.controls.indexOf(i)?(s||!1!==t)&&(t=!0):s&&!0===t||(t=!1),t},null)}},{key:"_ssr",get:function(){return"undefined"==typeof window}}]),t}();e.ThemeSettings=_}});if("object"==typeof s){var i=["object"==typeof module&&"object"==typeof module.exports?module.exports:null,"undefined"!=typeof window?window:null,t&&t!==window?t:null];for(var n in s)i[0]&&(i[0][n]=s[n]),i[1]&&"__esModule"!==n&&(i[1][n]=s[n]),i[2]&&(i[2][n]=s[n])}}(this);