text: function isHighDensity(){return window.matchMedia&&(window.matchMedia("only screen and (min-resolution: 124dpi), only screen and (min-resolution: 1.3dppx), only screen and (min-resolution: 48.8dpcm)").matches||window.matchMedia("only screen and (-webkit-min-device-pixel-ratio: 1.3), only screen and (-o-min-device-pixel-ratio: 2.6/2), only screen and (min--moz-device-pixel-ratio: 1.3), only screen and (min-device-pixel-ratio: 1.3)").matches)||window.devicePixelRatio&&window.devicePixelRatio>1.3}function scrollbarWidth(){var e=jQuery('<div style="width: 100%; height:200px;">test</div>'),i=jQuery('<div style="width:200px;height:150px; position: absolute; top: 0; left: 0; visibility: hidden; overflow:hidden;"></div>').append(e),a=e[0];e=i[0];return jQuery("body").append(e),a=a.offsetWidth,i.css("overflow","scroll"),e=e.clientWidth,i.remove(),a-e}function randID_generator(){return String.fromCharCode(65+Math.floor(26*Math.random()))+Date.now()}function detectIE(){var e=window.navigator.userAgent,i=e.indexOf("MSIE ");return 0<i?parseInt(e.substring(i+5,e.indexOf(".",i)),10):0<e.indexOf("Trident/")?(i=e.indexOf("rv:"),parseInt(e.substring(i+3,e.indexOf(".",i)),10)):0<(i=e.indexOf("Edge/"))&&parseInt(e.substring(i+5,e.indexOf(".",i)),10)}function hex2rgba(e,i){return e=e.replace("#",""),r=parseInt(e.substring(0,2),16),g=parseInt(e.substring(2,4),16),b=parseInt(e.substring(4,6),16),result="rgba("+r+","+g+","+b+","+i/100+")",result}function lsTest(){try{return localStorage.setItem("test","test"),localStorage.removeItem("test"),!0}catch(e){return!1}}$(function(){"use strict";altair_page_onload.init(),altair_main_header.init(),altair_main_sidebar.init(),altair_secondary_sidebar.init(),altair_top_bar.init(),altair_page._heading(),altair_page._aside(),altair_page._overflow(),altair_md.init(),altair_forms.init(),altair_helpers.truncate_text($(".truncate-text")),altair_helpers.full_screen(),altair_helpers.table_check(),altair_helpers.print_page(),altair_helpers.scroll_to_top(),altair_uikit.accordion_user_selected()}),jQuery.fn.reverse=[].reverse,$.fn.serializeObject=function(){var e={},i=this.serializeArray();return $.each(i,function(){void 0!==e[this.name]?(e[this.name].push||(e[this.name]=[e[this.name]]),e[this.name].push(this.value||"")):e[this.name]=this.value||""}),e},void 0!==$.fn.selectize&&(Selectize.define("dropdown_after",function(e){this.positionDropdown=function(){var e=this.$control,i=e.position(),a=i.left,t=i.top+e.outerHeight(!0)+32;this.$dropdown.css({width:e.outerWidth(),top:t,left:a})}}),Selectize.define("tooltip",function(e){var i,a=this;this.setup=(i=a.setup,function(){i.apply(this,arguments);var e=this.$wrapper,a=this.$input;a.attr("title")&&e.attr("title",a.attr("title")).attr("data-uk-tooltip",a.attr("data-uk-tooltip"))})}),Selectize.define("drag_drop",function(e){if(!$.fn.sortable)throw new Error('The "drag_drop" plugin requires jQuery UI "sortable".');if("multi"===this.settings.mode){var i,a,t,n=this;n.lock=(i=n.lock,function(){var e=n.$control.data("sortable");return e&&e.disable(),i.apply(n,arguments)}),n.unlock=(a=n.unlock,function(){var e=n.$control.data("sortable");return e&&e.enable(),a.apply(n,arguments)}),n.setup=(t=n.setup,function(){t.apply(this,arguments);var e=n.$control.sortable({items:"[data-value]",forcePlaceholderSize:!0,disabled:n.isLocked,start:function(i,a){a.placeholder.css("width",a.helper.css("width")),e.css({overflow:"visible"})},stop:function(){e.css({overflow:"hidden"});var i=n.$activeItems?n.$activeItems.slice():null,a=[];e.children("[data-value]").each(function(){a.push($(this).attr("data-value"))}),n.setValue(a),n.setActiveItem(i)},helper:function(e,i){var a=$(i).clone();return a.css("position","absolute"),a.get(0)}})})}})),easing_swiftOut=[.35,0,.25,1],bez_easing_swiftOut=$.bez(easing_swiftOut);var $body=$("body"),$html=$("html"),$document=$(document),$window=$(window),$page_content=$("#page_content"),$page_content_inner=$("#page_content_inner"),$sidebar_main=$("#sidebar_main"),$sidebar_main_toggle=$("#sidebar_main_toggle"),$sidebar_secondary=$("#sidebar_secondary"),$sidebar_secondary_toggle=$("#sidebar_secondary_toggle"),$topBar=$("#top_bar"),$pageHeading=$("#page_heading"),$pageAside=$("#page_aside"),$pageOverflow=$("#page_overflow"),$header_main=$("#header_main"),header__main_height=48;altair_page_onload={init:function(){$window.on("load",function(){altair_helpers.hierarchical_show(),altair_helpers.hierarchical_slide(),$body.removeClass("disable_transitions")})}},altair_page_content={hide_content_sidebar:function(){$body.hasClass("header_double_height")||$html.css({paddingRight:scrollbarWidth(),overflow:"hidden"})},show_content_sidebar:function(){$body.hasClass("header_double_height")||$html.css({paddingRight:"",overflow:""})}},altair_forms={init:function(){altair_forms.textarea_autosize(),altair_forms.select_elements(),altair_forms.select_elements_2(),altair_forms.switches(),altair_forms.dynamic_fields()},textarea_autosize:function(){$textarea=$("textarea.md-input").not(".no_autosize"),$textarea.hasClass("autosized")&&autosize.destroy($textarea),autosize($textarea),$textarea.addClass("autosized")},select_elements:function(e){(e?$(e).find("[data-md-selectize-delayed]"):$("[data-md-selectize],.data-md-selectize")).each(function(){var e=$(this);if(!e.hasClass("selectized")){var i=e.attr("data-md-selectize-bottom");e.after('<div class="selectize_fix"></div>').selectize({plugins:["tooltip"],hideSelected:!0,dropdownParent:"body",onDropdownOpen:function(e){e.hide().velocity("slideDown",{begin:function(){void 0!==i&&e.css({"margin-top":"0"})},duration:200,easing:easing_swiftOut})},onDropdownClose:function(e){e.show().velocity("slideUp",{complete:function(){void 0!==i&&e.css({"margin-top":""})},duration:200,easing:easing_swiftOut})},onChange:function(i){e.attr("data-parsley-id")&&e.parsley().validate()},onInitialize:function(){e[0].selectize.isRequired&&e.prop("required",!0)}})}}),(e?$(e).find("[data-md-selectize-inline-delayed]"):$("[data-md-selectize-inline]")).each(function(){var e=$(this);if(!e.hasClass("selectized")){var i=e.attr("data-md-selectize-bottom");e.after('<div class="selectize_fix"></div>').closest("div").addClass("uk-position-relative").end().selectize({plugins:["dropdown_after"],dropdownParent:e.closest("div"),hideSelected:!0,onDropdownOpen:function(e){e.hide().velocity("slideDown",{begin:function(){void 0!==i&&e.css({"margin-top":"0"})},duration:200,easing:easing_swiftOut})},onDropdownClose:function(e){e.show().velocity("slideUp",{complete:function(){void 0!==i&&e.css({"margin-top":""})},duration:200,easing:easing_swiftOut})},onChange:function(i){e.attr("data-parsley-id")&&e.parsley().validate()}})}})},select_elements_2:function(e){(e?$(e).find("[data-md-select2-delayed]"):$("[data-md-select2],.md-select2")).each(function(){var e=$(this);e.hasClass("select2-hidden-accessible")||e.select2({closeOnSelect:!1}),e.on("select2:open",function(e){var i=$(".select2-dropdown");i.hide(),setTimeout(function(){i.velocity("slideDown",{duration:150,easing:easing_swiftOut})},50)})})},switches:function(e){var i=e?$(e).find("[data-switchery]"):$("[data-switchery]");i.length&&i.each(function(){if(!$(this).siblings(".switchery").length){var e=$(this).attr("data-switchery-size"),i=$(this).attr("data-switchery-color"),a=$(this).attr("data-switchery-secondary-color"),t=new Switchery(this,{color:hex2rgba(void 0!==i?i:"#009688",50),jackColor:hex2rgba(void 0!==i?i:"#009688",100),secondaryColor:void 0!==a?hex2rgba(a,50):"rgba(0, 0, 0,0.26)",jackSecondaryColor:void 0!==a?hex2rgba(a,50):"#fafafa",className:"switchery"+(void 0!==e?" switchery-"+e:"")});$(this).data("ObjSwitchery",t)}})},parsley_validation_config:function(){window.ParsleyConfig={excluded:"input[type=button], input[type=submit], input[type=reset], input[type=hidden], input.exclude_validation",trigger:"change",errorsWrapper:'<div class="parsley-errors-list"></div>',errorTemplate:"<span></span>",errorClass:"md-input-danger",successClass:"md-input-success",errorsContainer:function(e){return e.$element.closest(".parsley-row")},classHandler:function(e){var i=e.$element;if(i.is(":checkbox")||i.is(":radio")||i.parent().is("label")||$(i).is("[data-md-selectize]"))return i.closest(".parsley-row")}}},parsley_extra_validators:function(){window.ParsleyConfig=window.ParsleyConfig||{},window.ParsleyConfig.validators=window.ParsleyConfig.validators||{},window.ParsleyConfig.validators.date={fn:function(e){if(null==/^(\d{2})[.\/](\d{2})[.\/](\d{4})$/.exec(e))return!1;var i=e.split(/[.\/-]+/),a=parseInt(i[1],10),t=parseInt(i[0],10),n=parseInt(i[2],10);if(0==n||0==t||t>12)return!1;var s=[31,28,31,30,31,30,31,31,30,31,30,31];return(n%400==0||n%100!=0&&n%4==0)&&(s[1]=29),a>0&&a<=s[t-1]},priority:256}},dynamic_fields:function(e,i,a){function t(e,i,a){var t=$("#"+i).html(),n=Handlebars.compile(t)({index:a||0,counter:a?"__"+a:"__0"});e.append(n),altair_md.inputs(e),altair_md.checkbox_radio(e.find("[data-md-icheck]")),altair_forms.switches(e),altair_forms.select_elements(e)}(e?$(e).find("[data-dynamic-fields]"):$("[data-dynamic-fields]")).each(function(){var e=$(this).attr("dynamic-fields-counter",0),n=e.data("dynamicFields");a||t(e,n),e.on("click",".btnSectionClone",function(a){a.preventDefault(),e.find(".btnSectionClone").replaceWith('<a href="#" class="btnSectionRemove"><i class="material-icons md-24">&#xE872;</i></a>');var s=parseInt(e.attr("dynamic-fields-counter"))+1;e.attr("dynamic-fields-counter",s),t(e,n,s),i&&$window.resize()}).on("click",".btnSectionRemove",function(e){e.preventDefault(),$(this).closest(".form_section").next(".form_hr").remove().end().remove(),i&&$window.resize()})})}},altair_main_sidebar={init:function(){$sidebar_main.length&&(lsTest()&&(null!==localStorage.getItem("altair_sidebar_mini")&&$body.addClass("sidebar_mini"),null!==localStorage.getItem("altair_sidebar_slim")&&$body.addClass("sidebar_slim")),$body.hasClass("sidebar_mini")?(altair_main_sidebar.mini_sidebar(),setTimeout(function(){$window.resize()},280)):$body.hasClass("sidebar_slim")?(altair_main_sidebar.slim_sidebar(),altair_helpers.custom_scrollbar($sidebar_main),altair_main_sidebar.sidebar_menu(),setTimeout(function(){$window.resize()},280)):($sidebar_main_toggle.on("click",function(e){e.preventDefault(),$body.hasClass("sidebar_main_active")||$body.hasClass("sidebar_main_open")&&$window.width()>=1220?altair_main_sidebar.hide_sidebar():altair_main_sidebar.show_sidebar()}),$document.on("click keyup",function(e){$body.hasClass("sidebar_main_active")&&$window.width()<1220&&(($(e.target).closest($sidebar_main).length||$(e.target).closest($sidebar_main_toggle).length)&&27!=e.keyCode||altair_main_sidebar.hide_sidebar())}),altair_helpers.custom_scrollbar($sidebar_main),$body.hasClass("sidebar_main_active")&&$window.width()<1220?altair_page_content.hide_content_sidebar():altair_page_content.show_content_sidebar(),$body.hasClass("sidebar_main_open")&&$window.width()<1220&&$body.removeClass("sidebar_main_open"),altair_main_sidebar.sidebar_menu(),altair_main_sidebar.swipe_open()),altair_main_sidebar.lang_switcher())},hide_sidebar:function(){$body.addClass("sidebar_main_hiding").removeClass("sidebar_main_active sidebar_main_open"),$window.width()<1220&&altair_page_content.show_content_sidebar(),setTimeout(function(){$body.removeClass("sidebar_main_hiding"),$window.resize()},290)},show_sidebar:function(){$body.addClass("sidebar_main_active"),$window.width()<1220&&!$body.find("#page_overflow").length&&altair_page_content.hide_content_sidebar(),setTimeout(function(){$window.resize()},290)},sidebar_menu:function(){$sidebar_main.find(".menu_section > ul").find("li").each(function(){$(this).children("ul").length&&$(this).addClass("submenu_trigger")}),$(".submenu_trigger > a").on("click",function(e){e.preventDefault();var i=$(this),a=i.next("ul").is(":visible")?"slideUp":"slideDown",t=$sidebar_main.hasClass("accordion_mode");i.next("ul").velocity(a,{duration:400,easing:easing_swiftOut,begin:function(){"slideUp"==a?$(this).closest(".submenu_trigger").removeClass("act_section"):(t&&i.closest("li").siblings(".submenu_trigger").each(function(){$(this).children("ul").velocity("slideUp",{duration:400,easing:easing_swiftOut,begin:function(){$(this).closest(".submenu_trigger").removeClass("act_section")}})}),$(this).closest(".submenu_trigger").addClass("act_section"))},complete:function(){if("slideUp"!==a){var e=$sidebar_main.find(".scroll-content").length?$sidebar_main.find(".scroll-content"):$sidebar_main.find(".scrollbar-inner");i.closest(".act_section").velocity("scroll",{duration:500,easing:easing_swiftOut,container:e})}}})}),$sidebar_main.find(".act_item").each(function(){var e=$(this);e.parents(".submenu_trigger").last().addClass("current_section"),e.parents(".submenu_trigger").addClass("act_section").children("ul").show(),e.children("ul").show()})},lang_switcher:function(){var e=$("#lang_switcher");e.length&&(e.selectize({options:[{id:1,title:"English",value:"gb"},{id:2,title:"French",value:"fr"},{id:3,title:"Chinese",value:"cn"},{id:4,title:"Dutch",value:"nl"},{id:5,title:"Italian",value:"it"},{id:6,title:"Spanish",value:"es"},{id:7,title:"German",value:"de"},{id:8,title:"Polish",value:"pl"}],render:{option:function(e,i){return'<div class="option"><i class="item-icon flag-'+i(e.value).toUpperCase()+'"></i><span>'+i(e.title)+"</span></div>"},item:function(e,i){return'<div class="item"><i class="item-icon flag-'+i(e.value).toUpperCase()+'"></i></div>'}},valueField:"value",labelField:"title",searchField:"title",create:!1,hideSelected:!0,onDropdownOpen:function(e){e.hide().velocity("slideDown",{begin:function(){e.css({"margin-top":"-33px"})},duration:200,easing:easing_swiftOut})},onDropdownClose:function(e){e.show().velocity("slideUp",{complete:function(){e.css({"margin-top":""})},duration:200,easing:easing_swiftOut})}}),e.next().children(".selectize-input").find("input").attr("readonly",!0))},swipe_open:function(){if($body.hasClass("sidebar_main_swipe")&&Modernizr.touch){$body.append('<div id="sidebar_swipe_area" style="position: fixed;left: 0;top:0;z-index:1000;width:16px;height:100%"></div>');var e=document.getElementById("sidebar_swipe_area");mc=new Hammer.Manager(e),mc.add(new Hammer.Swipe({threshold:0,pointers:2,velocity:0})),mc.on("swiperight",function(){$body.hasClass("sidebar_main_active")||altair_main_sidebar.show_sidebar()})}},mini_sidebar:function(){$sidebar_main_toggle.hide(),$sidebar_main.find(".menu_section > ul").children("li").each(function(){$(this).children("ul").length?($(this).addClass("sidebar_submenu"),$(this).find(".act_item").length&&$(this).addClass("current_section")):$(this).attr({"data-uk-tooltip":"{pos:'right'}"})}),$body.addClass("sidebar_mini").removeClass("sidebar_main_active sidebar_main_open sidebar_main_swipe")},slim_sidebar:function(){$sidebar_main_toggle.hide(),$body.addClass("sidebar_slim sidebar_slim_inactive").removeClass("sidebar_main_active sidebar_main_open sidebar_main_swipe"),$sidebar_main.mouseenter(function(){$body.removeClass("sidebar_slim_inactive"),$body.addClass("sidebar_slim_active")}).mouseleave(function(){$body.addClass("sidebar_slim_inactive"),$body.removeClass("sidebar_slim_active")})}},altair_secondary_sidebar={init:function(){$sidebar_secondary.length&&($sidebar_secondary_toggle.removeClass("sidebar_secondary_check"),$sidebar_secondary_toggle.on("click",function(e){e.preventDefault(),$body.hasClass("sidebar_secondary_active")?altair_secondary_sidebar.hide_sidebar():altair_secondary_sidebar.show_sidebar()}),$document.on("click keydown",function(e){$body.hasClass("sidebar_secondary_persisten")||!$body.hasClass("sidebar_secondary_active")||($(e.target).closest($sidebar_secondary).length||$(e.target).closest($sidebar_secondary_toggle).length)&&27!=e.which||altair_secondary_sidebar.hide_sidebar()}),$body.hasClass("sidebar_secondary_active")&&altair_secondary_sidebar.hide_sidebar(),altair_helpers.custom_scrollbar($sidebar_secondary),altair_secondary_sidebar.chat_sidebar())},hide_sidebar:function(){$body.removeClass("sidebar_secondary_active")},show_sidebar:function(){$body.addClass("sidebar_secondary_active")},chat_sidebar:function(){$sidebar_secondary.find(".md-list.chat_users").length&&($(".md-list.chat_users").children("li").on("click",function(){$(".md-list.chat_users").velocity("transition.slideRightBigOut",{duration:280,easing:easing_swiftOut,complete:function(){$sidebar_secondary.find(".chat_box_wrapper").addClass("chat_box_active").velocity("transition.slideRightBigIn",{duration:280,easing:easing_swiftOut,begin:function(){$sidebar_secondary.addClass("chat_sidebar")}})}})}),$sidebar_secondary.find(".chat_sidebar_close").on("click",function(){$sidebar_secondary.find(".chat_box_wrapper").removeClass("chat_box_active").velocity("transition.slideRightBigOut",{duration:280,easing:easing_swiftOut,complete:function(){$sidebar_secondary.removeClass("chat_sidebar"),$(".md-list.chat_users").velocity("transition.slideRightBigIn",{duration:280,easing:easing_swiftOut})}})}),$sidebar_secondary.find(".uk-tab").length&&$sidebar_secondary.find(".uk-tab").on("change.uk.tab",function(e,i,a){$(i).hasClass("chat_sidebar_tab")&&$sidebar_secondary.find(".chat_box_wrapper").hasClass("chat_box_active")?$sidebar_secondary.addClass("chat_sidebar"):$sidebar_secondary.removeClass("chat_sidebar")}))}},altair_top_bar={init:function(){$topBar.length&&$body.addClass("top_bar_active")}},altair_page={_heading:function(){$pageHeading.length&&$body.addClass("page_heading_active")},_aside:function(){if($pageAside.length){function e(){var e=$window.height(),i=$pageAside.offset().top;$pageAside.height(e-i)}e(),$window.on("debouncedresize",function(){e()}),$(".page_aside_toggle").on("click",function(e){e.preventDefault(),$body.toggleClass("page_aside_collapsed")})}},_overflow:function(){if($pageOverflow.length){function e(){var e=$window.height()-$pageOverflow.offset().top;$pageOverflow.children(".uk-overflow-container").length?$pageOverflow.children(".uk-overflow-container").height(e):$pageOverflow.height(e)}e(),$window.on("debouncedresize",function(){e()})}}},altair_main_header={init:function(){altair_main_header.search_activate(),altair_main_header.search_autocomplete()},search_activate:function(){$("#main_search_btn").on("click",function(e){e.preventDefault(),altair_main_header.search_show()}),$(document).on("click keydown",function(e){!$body.hasClass("main_search_persistent")&&$body.hasClass("main_search_active")&&(($(e.target).closest(".header_main_search_form").length||$(e.target).closest("#main_search_btn").length)&&27!=e.which||altair_main_header.search_hide())}),$(".header_main_search_close").on("click",function(){altair_main_header.search_hide()}),$body.hasClass("main_search_persistent")&&altair_main_header.search_show()},search_show:function(){$header_main.children(".header_main_content").velocity("transition.slideUpBigOut",{duration:280,easing:easing_swiftOut,begin:function(){$body.addClass("main_search_active")},complete:function(){$header_main.children(".header_main_search_form").velocity("transition.slideDownBigIn",{duration:280,easing:easing_swiftOut,complete:function(){$(".header_main_search_input").focus()}})}})},search_hide:function(){$header_main.children(".header_main_search_form").velocity("transition.slideUpBigOut",{duration:280,easing:easing_swiftOut,begin:function(){$header_main.velocity("reverse"),$body.removeClass("main_search_active")},complete:function(){$header_main.children(".header_main_content").velocity("transition.slideDownBigIn",{duration:280,easing:easing_swiftOut,complete:function(){$(".header_main_search_input").blur().val("")}})}})},search_autocomplete:function(){$(".header_main_search_form").children("[data-uk-autocomplete]").on("selectitem.uk.autocomplete",function(e,i,a){console.log(e),console.log(i),console.log(a)})}},altair_md={init:function(){altair_md.inputs(),altair_md.checkbox_radio(),altair_md.card_fullscreen(),altair_md.card_expand(),altair_md.card_overlay(),altair_md.card_single(),altair_md.card_panel(),altair_md.card_progress(),altair_md.list_outside(),altair_md.fab_speed_dial(),altair_md.fab_toolbar(),altair_md.fab_sheet(),altair_md.wave_effect()},card_fullscreen:function(){$(".md-card-fullscreen-activate").on("click",function(){var e=$(this).closest(".md-card");if(!e.hasClass("md-card-fullscreen")){var i=e.height(),a=$(this).hasClass("toolbar_fixed"),t=e.width(),n=$body.scrollTop(),s=e.offset();e.after('<div class="md-card-placeholder" style="width:'+t+"px;height:"+i+'px;"/>'),e.addClass("md-card-fullscreen").css({width:t,height:i,left:s.left,top:s.top-n}).velocity({left:0,top:0},{duration:400,easing:easing_swiftOut,begin:function(i){var a=e.find(".md-card-toolbar");a.length?a.prepend('<span class="md-icon md-card-fullscreen-deactivate material-icons uk-float-left">&#xE5C4;</span>'):e.append('<span class="md-icon md-card-fullscreen-deactivate material-icons uk-position-top-right" style="margin:10px 10px 0 0">&#xE5CD;</span>'),altair_page_content.hide_content_sidebar()}}).velocity({height:"100%",width:"100%"},{duration:400,easing:easing_swiftOut,complete:function(i){e.find(".md-card-fullscreen-content").velocity("transition.slideUpBigIn",{duration:400,easing:easing_swiftOut,complete:function(e){$(window).resize()}}),a&&e.addClass("mdToolbar_fixed")}})}}),$page_content.on("click",".md-card-fullscreen-deactivate",function(){var e=$(".md-card-placeholder"),i=e.height(),a=e.width(),t=$body.scrollTop(),n=e.offset().top-t,s=e.offset().left,r=$(".md-card-fullscreen"),o=r.hasClass("mdToolbar_fixed");r.velocity({height:i,width:a},{duration:400,easing:easing_swiftOut,begin:function(e){r.find(".md-card-fullscreen-content").velocity("transition.slideDownOut",{duration:275,easing:easing_swiftOut}),o&&r.removeClass("mdToolbar_fixed")},complete:function(e){$window.resize(),r.find(".md-card-fullscreen-deactivate").remove(),altair_page_content.show_content_sidebar()}}).velocity({left:s,top:n},{duration:400,easing:easing_swiftOut,complete:function(i){r.removeClass("md-card-fullscreen").css({width:"",height:"",left:"",top:""}),e.remove(),$body.removeClass("md-card-fullscreen-active")}})})},card_expand:function(){$(".md-expand").velocity("transition.expandIn",{stagger:175,drag:!0}),$(".md-expand-group").children().velocity("transition.expandIn",{stagger:175,drag:!0})},card_overlay:function(){var e=$(".md-card");e.each(function(){var e=$(this);e.hasClass("md-card-overlay-active")&&e.find(".md-card-overlay-toggler").html("&#xE5CD;")}),e.on("click",".md-card-overlay-toggler",function(e){e.preventDefault(),$(this).closest(".md-card").hasClass("md-card-overlay-active")?$(this).html("&#xE5D4;").closest(".md-card").removeClass("md-card-overlay-active"):$(this).html("&#xE5CD;").closest(".md-card").addClass("md-card-overlay-active")})},card_single:function(){var e=$(".md-card-single");if(e&&$body.hasClass("header_double_height")){function i(){var i=$window.height()-(2*header__main_height+12);e.find(".md-card-content:first").innerHeight(i)}i(),$window.on("debouncedresize",function(){i()})}},card_panel:function(){$(".md-card-close").on("click",function(e){e.preventDefault();var i=$(this).closest(".md-card");altair_md.card_show_hide(i,void 0,function(){$(i).remove()})}),$(".md-card-toggle").on("click",function(e){e.preventDefault();var i=$(this),a=i.closest(".md-card");$(a).toggleClass("md-card-collapsed").children(".md-card-content").slideToggle("280",bez_easing_swiftOut),i.velocity({scale:0,opacity:.2},{duration:280,easing:easing_swiftOut,complete:function(){$(a).hasClass("md-card-collapsed")?i.html("&#xE313;"):i.html("&#xE316;"),i.velocity("reverse"),$window.resize()}})}),$(".md-card-collapsed").each(function(){var e=$(this);e.find(".md-card-toggle").html("&#xE313;"),e.children(".md-card-content").hide()})},card_show_hide:function(e,i,a,t){$(e).velocity({scale:0,opacity:.2},{duration:400,easing:easing_swiftOut,begin:function(){void 0!==i&&i(t)},complete:function(){void 0!==a&&a(t)}}).velocity("reverse")},card_progress:function(e,i,a){(e?$(e).children(".md-card-toolbar"):$("[data-toolbar-progress]")).each(function(){var e=$(this),t=i?parseInt(i):parseInt(e.attr("data-toolbar-progress")),n=e.attr("data-toolbar-progress-steps");if(a||n)if(t>66)var s="#dcedc8";else if(t>33)s="#ffecb3";else s="#ffcdd2";else{var r=e.attr("data-toolbar-bg-default");if(r)s=r;else{var s=e.css("backgroundColor");e.attr("data-toolbar-bg-default",s)}}i&&e.attr("data-toolbar-progress",i);e.css({background:"-moz-linear-gradient(left, "+s+" "+t+"%, #fff "+t+"%)"}).css({background:"linear-gradient(to right,  "+s+" "+t+"%, #fff "+t+"%)"}).css({background:"-webkit-linear-gradient(left, "+s+" "+t+"%, #fff "+t+"%)"})})},list_outside:function(){var e=$(".md-list-outside-wrapper"),i=e.children(".md-list-outside-inner");if(e&&$body.hasClass("header_double_height")){function a(){var a=$window.height()-(2*header__main_height+10);e.height(a),i.length&&i.height(a)}a(),$window.on("debouncedresize",function(){a()}),i.length?altair_helpers.custom_scrollbar(i):altair_helpers.custom_scrollbar(e)}},inputs:function(e){(void 0===e?$(".md-input"):$(e).find(".md-input")).each(function(){if(!$(this).closest(".md-input-wrapper").length){var e=$(this),i="";if(e.is('[class*="uk-form-width-"]'))for(var a=e.attr("class").split(" "),t=0;t<a.length;t++){if("uk-form-width-"==a[t].substr(0,14))i=a[t]}e.prev("label").length?e.prev("label").andSelf().wrapAll('<div class="md-input-wrapper"/>'):e.siblings("[data-uk-form-password]").length?e.siblings("[data-uk-form-password]").andSelf().wrapAll('<div class="md-input-wrapper"/>'):e.wrap('<div class="md-input-wrapper"/>'),e.closest(".md-input-wrapper").append('<span class="md-input-bar '+i+'"/>'),altair_md.update_input(e)}$body.on("focus",".md-input",function(){$(this).closest(".md-input-wrapper").addClass("md-input-focus")}).on("blur",".md-input",function(){$(this).closest(".md-input-wrapper").removeClass("md-input-focus"),$(this).hasClass("label-fixed")||(""!=$(this).val()?$(this).closest(".md-input-wrapper").addClass("md-input-filled"):$(this).closest(".md-input-wrapper").removeClass("md-input-filled"))}).on("change",".md-input",function(){altair_md.update_input($(this))})})},checkbox_radio:function(e){(void 0===e?$("[data-md-icheck],.data-md-icheck"):$(e)).each(function(){$(this).next(".iCheck-helper").length||$(this).iCheck({checkboxClass:"icheckbox_md",radioClass:"iradio_md",increaseArea:"20%"}).on("ifChanged",function(e){$(this).data("parsley-multiple")&&$(this).parsley().validate()})})},update_input:function(e){$(e).each(function(){var e=$(this);e.closest(".uk-input-group").removeClass("uk-input-group-danger uk-input-group-success"),e.closest(".md-input-wrapper").removeClass("md-input-wrapper-danger md-input-wrapper-success md-input-wrapper-disabled"),e.hasClass("md-input-danger")&&(e.closest(".uk-input-group").length&&e.closest(".uk-input-group").addClass("uk-input-group-danger"),e.closest(".md-input-wrapper").addClass("md-input-wrapper-danger")),e.hasClass("md-input-success")&&(e.closest(".uk-input-group").length&&e.closest(".uk-input-group").addClass("uk-input-group-success"),e.closest(".md-input-wrapper").addClass("md-input-wrapper-success")),e.prop("disabled")&&e.closest(".md-input-wrapper").addClass("md-input-wrapper-disabled"),""!==e.val()?e.closest(".md-input-wrapper").addClass("md-input-filled"):e.closest(".md-input-wrapper").removeClass("md-input-filled"),e.hasClass("label-fixed")&&e.closest(".md-input-wrapper").addClass("md-input-filled")})},fab_speed_dial:function(){function e(e){e.closest(".md-fab-wrapper").addClass("md-fab-active"),e.velocity({scale:0},{duration:140,easing:easing_swiftOut,complete:function(){e.velocity({scale:1},{duration:140,easing:easing_swiftOut}).children().toggle()}})}function i(e){e.closest(".md-fab-wrapper").removeClass("md-fab-active"),e.velocity({scale:0},{duration:140,easing:easing_swiftOut,complete:function(){e.velocity({scale:1},{duration:140,easing:easing_swiftOut}).children().toggle()}})}$(".md-fab-speed-dial,.md-fab-speed-dial-horizontal").each(function(){var a,t=$(this),n=t.children(".md-fab").append('<i class="material-icons md-fab-action-close" style="display:none">&#xE5CD;</i>');t.is("[data-fab-hover]")?t.on("mouseenter",function(){t.addClass("md-fab-over"),clearTimeout(a),setTimeout(function(){e(n)},100)}).on("mouseleave",function(){i(n),a=setTimeout(function(){t.removeClass("md-fab-over")},500)}):n.on("click",function(){var a=$(this);a.closest(".md-fab-wrapper").hasClass("md-fab-active")?i(a):e(a)}).closest(".md-fab-wrapper").find(".md-fab-small").on("click",function(){i(n)})})},fab_toolbar:function(){var e=$(".md-fab-toolbar");e&&(e.children("i").on("click",function(i){i.preventDefault();var a=e.children(".md-fab-toolbar-actions").children().length;e.addClass("md-fab-animated");var t=e.hasClass("md-fab-small")?24:16,n=e.hasClass("md-fab-small")?44:64;setTimeout(function(){e.width(a*n+t)},140),setTimeout(function(){e.addClass("md-fab-active")},420)}),$document.on("click scroll",function(i){e.hasClass("md-fab-active")&&($(i.target).closest(e).length||(e.css("width","").removeClass("md-fab-active"),setTimeout(function(){e.removeClass("md-fab-animated")},140)))}))},fab_sheet:function(){var e=$(".md-fab-sheet");e&&(e.children("i").on("click",function(i){i.preventDefault();var a=e.children(".md-fab-sheet-actions").children("a").length;e.addClass("md-fab-animated"),setTimeout(function(){e.width("240px").height(40*a+8)},140),setTimeout(function(){e.addClass("md-fab-active")},280)}),$document.on("click scroll",function(i){e.hasClass("md-fab-active")&&($(i.target).closest(e).length||(e.css({height:"",width:""}).removeClass("md-fab-active"),setTimeout(function(){e.removeClass("md-fab-animated")},140)))}))},wave_effect:function(){$html.hasClass("lte-ie9")||(Waves.attach(".md-btn-wave,.md-fab-wave",["waves-button"]),Waves.attach(".md-btn-wave-light,.md-fab-wave-light",["waves-button","waves-light"]),Waves.attach(".wave-box",["waves-float"]),Waves.init({delay:300}))}},altair_helpers={truncate_text:function(e){e.length&&e.each(function(){$(this).dotdotdot({watch:"window"})})},custom_scrollbar:function(e){e.children(".scrollbar-inner").length||e.wrapInner("<div class='scrollbar-inner'></div>"),Modernizr.touch?e.children(".scrollbar-inner").addClass("touchscroll"):e.children(".scrollbar-inner").scrollbar({scrollx:!1,duration:100,ignoreMobile:!0,ignoreOverlay:!0})},hierarchical_show:function(e){var i=$(".hierarchical_show");if(i.length&&i.each(function(){var e=$(this),i=e.children().length;e.children().each(function(e){$(this).css({"-webkit-animation-delay":100*e+"ms","animation-delay":100*e+"ms"})}),e.waypoint({handler:function(){e.addClass("hierarchical_show_inView"),setTimeout(function(){e.removeClass("hierarchical_show hierarchical_show_inView fast_animation").children().css({"-webkit-animation-delay":"","animation-delay":""})},100*i+1200),this.destroy()},context:"window",offset:"90%"})}),e){var a=$(e).addClass("hierarchical_show hierarchical_show_inView"),t=a.children().length;a.children().each(function(e){$(this).css({"-webkit-animation-delay":100*e+"ms","animation-delay":100*e+"ms"})}),a.addClass(""),setTimeout(function(){a.removeClass("hierarchical_show hierarchical_show_inView fast_animation").children().css({"-webkit-animation-delay":"","animation-delay":""})},100*t+1200)}},hierarchical_slide:function(e){var i=$(".hierarchical_slide");if(i.length&&i.each(function(){var e=$(this),i=e.attr("data-slide-children")?e.children(e.attr("data-slide-children")):e.children(),a=i.length,t=e.attr("data-slide-context")?e.closest(e.attr("data-slide-context"))[0]:"window";a>=1&&(i.each(function(e){$(this).css({"-webkit-animation-delay":100*e+"ms","animation-delay":100*e+"ms"})}),e.waypoint({handler:function(){e.addClass("hierarchical_slide_inView"),setTimeout(function(){e.removeClass("hierarchical_slide hierarchical_slide_inView"),i.css({"-webkit-animation-delay":"","animation-delay":""})},100*a+1200),this.destroy()},context:t,offset:"90%"}))}),e){var a=$(e).addClass("hierarchical_slide hierarchical_slide_inView"),t=a.attr("data-slide-children")?a.children(a.attr("data-slide-children")):a.children(),n=t.length;a.attr("data-slide-context")&&a.closest(a.attr("data-slide-context"))[0];console.log(t),n>=1&&(t.each(function(e){$(this).css({"-webkit-animation-delay":100*e+"ms","animation-delay":100*e+"ms"})}),setTimeout(function(){a.removeClass("hierarchical_slide hierarchical_slide_inView"),t.css({"-webkit-animation-delay":"","animation-delay":""})},100*n+1200))}},content_preloader_show:function(e,i,a,t,n){if(!$body.find(".content-preloader").length){var s=isHighDensity()?"@2x":"",r=(t=t||48,n=n||48,"regular"==e?'<img src="assets/img/spinners/spinner'+s+'.gif" alt="" width="32" height="32">':'<div class="md-preloader"><svg xmlns="http://www.w3.org/2000/svg" version="1.1" height="'+n+'" width="'+t+'" viewbox="0 0 75 75"><circle cx="37.5" cy="37.5" r="33.5" stroke-width="8"/></svg></div>');(void 0!==a?$(a):$body).append('<div class="content-preloader content-preloader-'+i+'" style="height:'+n+"px;width:"+t+"px;margin-left:-"+t/2+'px">'+r+"</div>"),setTimeout(function(){$(".content-preloader").addClass("preloader-active")},0)}},content_preloader_hide:function(){$body.find(".content-preloader").length&&($(".content-preloader").removeClass("preloader-active"),preloader_timeout=window.setTimeout(function(){$(".content-preloader").remove()},500))},color_picker:function(e,i,a){if(e){for(var t=randID_generator(),n=i||["#e53935","#d81b60","#8e24aa","#5e35b1","#3949ab","#1e88e5","#039be5","#0097a7","#00897b","#43a047","#689f38","#ef6c00","#f4511e","#6d4c41","#757575","#546e7a"],s=n.length,r=$('<div class="cp_altair" id="'+t+'"/>'),o=0;o<s;o++){var d="md-bg-"==n[o].substring(0,6)?"<span data-color="+n[o]+' class="'+n[o]+'"></span>':"<span data-color="+n[o]+' style="background:'+n[o]+'"></span>';r.append(d)}return r.append('<input type="hidden">'),$body.on("click","#"+t+" span",function(){$(this).addClass("active_color").siblings().removeClass("active_color").end().closest(".cp_altair").find("input").val($(this).attr("data-color")),"function"==typeof a&&a.call(this)}),e.append(r)}},retina_images:function(){void 0!==$.fn.dense&&$("img").attr("data-dense-cap",2).dense({glue:"@",ping:!1})},full_screen:function(){$("#full_screen_toggle").on("click",function(e){e.preventDefault(),screenfull.toggle(),$window.resize()})},table_check:function(){$table_check=$(".table_check"),$table_check.each(function(){var e=$(this),i=e.find(".check_all"),a=e.find(".check_row");i.on("ifChecked",function(){a.iCheck("check")}).on("ifUnchecked",function(){a.iCheck("uncheck")}),a.on("ifChecked",function(e){$(e.currentTarget).closest("tr").addClass("row_checked")}).on("ifUnchecked",function(e){$(e.currentTarget).closest("tr").removeClass("row_checked")})})},ie_fix:function(){detectIE()&&($("svg,canvas,video").each(function(){$(this).css("height",0)}),setTimeout(function(){$("svg,canvas,video").each(function(){var e=$(this),i=$(this).attr("height"),a=$(this).attr("width");i&&e.css("height",i),a&&e.css("width",a);var t=e.prev(".peity_data");t.length&&t.peity().change()})},1e3))},print_page:function(){$body.on("click","#page_print",function(e){e.preventDefault(),UIkit.modal.confirm("Do you want to print this page?",function(){altair_main_sidebar.hide_sidebar(),setTimeout(function(){window.print()},300)},{labels:{Ok:"print"}})})},scroll_to_top:function(){var e=$("#scrollTop");e&&$(window).on("scroll",function(){$(window).scrollTop()>120?e.fadeIn():e.fadeOut()})}},altair_uikit={reinitialize_grid_margin:function(){$("[data-uk-grid-margin]").each(function(){var e=$(this);e.data("gridMargin")||$.UIkit.gridMargin(e,$.UIkit.Utils.options(e.attr("data-uk-grid-margin")))}),$window.resize()},accordion_user_selected:function(){$("[data-accordion-section-open]").each(function(){var e=$(this);setTimeout(function(){var i=e.data();if(sectOpen=i.accordionSectionOpen.toString().split(","),e.children(".uk-accordion-title.uk-active").each(function(){$(this).trigger("click")}),!i.accordion.options.collapse&&sectOpen.length>1)for(var a=0;a<=sectOpen.length;a++)e.children(".uk-accordion-title").eq(sectOpen[a]-1).trigger("click");else e.children(".uk-accordion-title").eq(sectOpen[0]-1).trigger("click")},220)})}};