D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
usr
/
local
/
lsws
/
add-ons
/
cpanel
/
lsws_whm_plugin
/
static
/
js
/
Filename :
litespeed.min.js
back
Copy
function actionset(t){var e="";switch(t){case"enable":e="Mass enable LiteSpeed Cache? If you have many installations this may take up to a few minutes. Continue?";break;case"disable":e="Mass disable LiteSpeed Cache? If you have many installations this may take up to a few minutes. Continue?"}document.lswsform.act.value=t,""!==e&&confirm(e)&&document.lswsform.submit()}function updateProgressBox(t){var e=document.getElementById("progress-box"),i=document.createTextNode(" "+t);e.appendChild(i)}function selectAll(t){checkboxes=document.getElementsByName("selectedVers[]");for(var e=0,i=checkboxes.length;e<i;e++)checkboxes[e].checked=t.checked}function vermgr(t,e){document.lswsform.act.value=t,document.lswsform.actId.value=e;var i="";switch(t){case"download":i="download and upgrade to the latest build of version "+e;break;case"switchTo":i="switch to version "+e;break;case"remove":i="remove version "+e}""!==i&&confirm("Are you sure you want to "+i+"?")&&(document.lswsform.step.value=2,document.lswsform.submit())}function lscwpVermgr(t){var e,i,n="",s="";switch(t){case"switchTo":if(""===(i=(e=document.getElementById("lscwpActiveSelector")).options[e.selectedIndex].value))return;n="Switch active version to "+i+"?";break;case"upgradeTo":if(""===(i=(e=document.getElementById("lscwpUpgradeSelector")).options[e.selectedIndex].value))return;for(var o=document.getElementsByName("selectedVers[]"),a=!1,r=0,l=o.length;r<l;r++)o[r].checked&&o[r].value!==i&&(a=!0,s=s+"&selectedVers[]="+o[r].value);a&&(n="Force upgrade to "+i+"? If you have many installations this may take up to a few minutes. Continue?")}if(""!==n&&confirm(n)){"switchTo"===t&&$("td#switchVerBtn").html('Switching Version... <img src="./static/icons/ajax-loader.gif" />');var c="./index.php?do=lscwpVersionManager&act="+t+"&version_num="+i+"&step=2"+s;$.get(c,function(t,e){$("div#lswsContent").html(t)})}}function lswsInitDropdownBoxes(){var t,e=document.getElementsByClassName("accordion");for(t=0;t<e.length;t++)e[t].addEventListener("click",function(){this.classList.toggle("active");var t=this.nextElementSibling;t.style.maxHeight?t.style.maxHeight=null:t.style.maxHeight=t.scrollHeight+"px"})}function lswsInitDataTable(){$(document).ready(function(){$("#lsws-data-table").DataTable({stateSave:!0,autoWidth:!1,lengthMenu:[[10,25,50,100,-1],[10,25,50,100,"All"]],stripeClasses:[],order:[[1,"asc"]],columnDefs:[{targets:2,width:"80px"},{targets:3,width:"130px"},{targets:4,width:"130px"},{targets:[0,2],orderable:!1},{targets:[0,2],searchable:!1}],initComplete:function(){var t=$("#lsws-data-table"),e=t.DataTable().column(3);$('<select id="lsc-status"><option value="">Any</option><option value="enabled">Enabled</option><option value="disabled">Disabled</option><option value="warning">Warning</option><option value="error">Error</option></select>').appendTo($(e.footer())).on("change",function(){var t=$.fn.dataTable.util.escapeRegex($(this).val());e.search(t||"",!0,!1).draw()});var i=t.DataTable().column(4);$('<select id="lsc-flag"><option value="">Any</option><option value="f">Flagged</option><option value="u">Unflagged</option></select>').appendTo($(i.footer())).on("change",function(){var t=$.fn.dataTable.util.escapeRegex($(this).val());i.search(t||"",!0,!1).draw()});var n=t.DataTable().state.loaded(),s=n.columns[3].search.search,o=n.columns[4].search.search;$('#lsc-status option[value="'+s+'"]').prop("selected",!0),$('#lsc-flag option[value="'+o+'"]').prop("selected",!0)}})})}function lswsWriteToMsgBox(t,e){if(void 0!==t&&0!==t.length){var i={succ:"div#succMsgs",err:"div#errMsgs"}[e];t.forEach(function(t){$(i+" ul").append("<li>"+t+"</li>")})}}function lscwpScanProgressUpdate(t){$.getJSON("./index.php?do=lscwp_manage&mgr_step="+t,function(e){var i=e.completed,n=e.errMsgs;if(-1!==i){var s=$("span#currIndex"),o=parseInt(s.text())+i;s.html(o)}if(void 0!==n&&0!==n.length){n.forEach(function(t){$("div#errMsgs ul").append("<li>"+t.toString()+"</li>")});var a=$("span#errMsgCnt"),r=parseInt(a.text()),l=n.length;a.html(r+l),a.closest("button").css("display","initial")}if(-1===i)return $("div#backNextBtns").css("visibility","unset"),void updateProgressBox("Stopped!");o!==parseInt($("span#totalCount").text())?lscwpScanProgressUpdate(t):($("div#backNextBtns").css("visibility","unset"),updateProgressBox("Scan Complete!"))})}function lscwpScanProgressStep1Update(t){$.getJSON("./index.php?do=lscwp_manage&mgr_step="+t,function(e){var i=e.scanStep,n=e.completed,s=e.errMsgs;if(-1!==n){var o=$("span#currIndex"),a=parseInt(o.text())+n;o.html(a)}if(void 0!==s&&0!==s.length){s.forEach(function(t){$("div#errMsgs ul").append("<li>"+t.toString()+"</li>")});var r=$("span#errMsgCnt"),l=parseInt(r.text()),c=s.length;r.html(l+c),r.closest("button").css("display","initial")}if(-1===n)return $("div#backNextBtns").css("visibility","unset"),void updateProgressBox("Stopped!");a!==parseInt($("span#totalCount").text())?lscwpScanProgressStep1Update(t):1===i?window.location.href="./lsws.cgi?do=lscwp_manage&mgr_step="+t+"&go_to_next=1":($("div#backNextBtns").css("visibility","unset"),updateProgressBox("Scan Complete!"))})}function lscwpRefreshStatusUpdate(){$.getJSON("./index.php?do=lscwp_manage&mgr_step=3",function(t){var e=t.completed,i=t.errMsgs;if(-1!==e){var n=parseInt($("span#currIndex").text())+e;$("span#currIndex").html(n)}if(void 0!==i&&0!==i.length){lswsWriteToMsgBox(i,"err");var s=$("span#errMsgCnt"),o=parseInt(s.text()),a=i.length;s.html(o+a),s.closest("button").css("display","initial")}if(-1===e)return $("div#backNextBtns").css("visibility","unset"),void updateProgressBox("Stopped!");n!==parseInt($("span#totalCount").text())?lscwpRefreshStatusUpdate():($("div#backNextBtns").css("visibility","unset"),updateProgressBox("Finished!"))})}function lscwpEnableDisableUpdate(t){$.getJSON("./index.php?do=lscwp_mass_enable_disable&act="+t+"&step=2",function(e){var i=e.completed,n=e.bypassedCount,s=e.failCount,o=e.succCount,a=e.errMsgs,r=e.succMsgs;if(-1!==i){var l=parseInt($("span#currIndex").text())+i;$("span#currIndex").html(l)}var c=$("span#bypassedCount"),d=$("span#succCount"),u=$("span#failCount"),p=parseInt(c.text())+n,h=parseInt(d.text())+o,f=parseInt(u.text())+s;if(c.html(p),d.html(h),u.html(f),void 0!==a&&0!==a.length){lswsWriteToMsgBox(a,"err");var g=$("span#errMsgCnt"),m=parseInt(g.text()),v=a.length;g.html(m+v),g.closest("button").css("display","initial")}if(void 0!==r&&0!==r.length){lswsWriteToMsgBox(r,"succ");var w=$("span#succMsgCnt");m=parseInt(w.text()),v=r.length;w.html(m+v),w.closest("button").css("display","initial")}if(-1===i)return $("div#backNextBtns").css("visibility","unset"),void updateProgressBox("Stopped!");l!==parseInt($("span#totalCount").text())?lscwpEnableDisableUpdate(t):($("div#backNextBtns").css("visibility","unset"),updateProgressBox("Finished!"))})}function lscwpVersionChangeUpdate(){$.getJSON("./index.php?do=lscwpVersionManager&act=upgradeTo&step=3",function(t){var e=t.completed,i=t.errMsgs,n=$("span#currIndex");if(-1!==e){var s=parseInt(n.text())+e;n.html(s)}if(void 0!==i&&0!==i.length){lswsWriteToMsgBox(i,"err");var o=$("span#errMsgCnt"),a=parseInt(o.text()),r=i.length;o.html(a+r),o.closest("button").css("display","initial")}if(-1===e)return $("div#backNextBtns").css("visibility","unset"),void updateProgressBox("Stopped!");s!==parseInt($("span#totalCount").text())?lscwpVersionChangeUpdate():($("div#backNextBtns").css("visibility","unset"),updateProgressBox("Upgrade Complete!"))})}function lscwpUnflagAllUpdate(){$.getJSON("./index.php?do=lscwp_manage&mgr_step=4",function(t){var e=t.completed,i=t.errMsgs,n=t.succMsgs,s=$("span#currIndex");if(-1!==e){var o=parseInt(s.text())+e;s.html(o)}if(void 0!==i&&0!==i.length){lswsWriteToMsgBox(i,"err");var a=$("span#errMsgCnt"),r=parseInt(a.text()),l=i.length;a.html(r+l),a.closest("button").css("display","initial")}if(void 0!==n&&0!==n.length){lswsWriteToMsgBox(n,"succ");var c=$("span#succMsgCnt");r=parseInt(c.text()),l=n.length;c.html(r+l),c.closest("button").css("display","initial")}if(-1===e)return $("div#backNextBtns").css("visibility","unset"),void updateProgressBox("Stopped!");o!==parseInt($("span#totalCount").text())?lscwpUnflagAllUpdate():($("div#backNextBtns").css("visibility","unset"),updateProgressBox("Finished!"))})}function lscwpValidateSelectFormSubmit(t,e){var i=!1;if($("#lsws-data-table input:checkbox").each(function(){if($(this).prop("checked"))return i=!0,!1}),i){if("disable_sel"!=t||confirm("LSCWP configuration may be lost when disabling. Disable anyway?")){var n=$('form[name="lswsform"]');$("<input>",{type:"hidden",name:t,value:e}).appendTo(n),n.submit()}}else alert("Please select at least one checkbox.")}function lscwpManageCheckboxSelect(t){var e=$(t.closest("tr"));t.checked?e.addClass("selected-row"):e.removeClass("selected-row")}function lscwpManageBadgesUpdate(t,e){var i={enabled:"span#enabled-badge",disabled:null,warning:"span#warning-badge",error:"span#error-badge",flag:"span#flagged-badge"};t.forEach(function(t){var n,s;if(null!==(n=i[t])){if(s=$(n),"up"==e)var o=parseInt(s.text())+1;else o=parseInt(s.text())-1;s.html(o)}})}function lscwpPerformSingleAction(t,e){var i=t.value,n=$(t).closest("tr");n.find("input,button,textarea,select").prop("disabled",!0);var s=n.height(),o=n.position(),a=$("div#hover-mask");a.css({height:s+"px","line-height":s+"px",top:o.top,visibility:"visible"}),$.getJSON(e+i,function(t){var e=t.displayData,i=t.badgesDown,s=t.badgesUp,o=t.removed,r=t.errMsgs,l=t.succMsgs;lscwpManageBadgesUpdate(i,"down"),lscwpManageBadgesUpdate(s,"up");var c=!1;if(void 0!==r&&0!==r.length){lswsWriteToMsgBox(r,"err"),c="errMsg-alert";var d=$("span#errMsgCnt"),u=parseInt(d.text()),p=r.length;d.html(u+p),d.closest("button").css("display","initial")}if(void 0!==l&&0!==l.length){lswsWriteToMsgBox(l,"succ"),c="succMsg-alert";var h=$("span#succMsgCnt");u=parseInt(h.text()),p=l.length;h.html(u+p),h.closest("button").css("display","initial")}if(""!=e.status_td&&""!=e.flag_td){var f=$("#lsws-data-table").DataTable(),g=f.row(n).data(),m=$(n.find("input:checkbox")),v=m.prop("checked");g[2]=e.actions_td,g[3]={"@data-search":e.status_search,"@data-sort":e.status_sort,display:e.status_td},g[4]={"@data-search":e.flag_search,"@data-sort":e.flag_sort,display:e.flag_td},f.row(n).data(g),n.find("td:eq(3)").attr("data-sort",e.status_sort),n.find("td:eq(4)").attr("data-sort",e.flag_sort),n.find("td:eq(3)").attr("data-search",e.status_search),n.find("td:eq(4)").attr("data-search",e.flag_search),f.row(n).invalidate(),o?(n.find("input,button,textarea,select").prop("disabled",!0),n.addClass("removed-row")):(m=$(n.find("input"))).prop("checked",v),a.css("visibility","hidden");var w=n.find("td a.msg-alert");c&&(w.addClass(c),w.css("visibility","visible"),setTimeout(function(){w.removeClass(c),w.css("visibility","hidden")},8e3))}else n.find("input,button,textarea,select").prop("disabled",!1)})}function lscwpRefreshSingle(t){lscwpPerformSingleAction(t,"./index.php?do=lscwp_manage&step=1&refresh_status_single=")}function lscwpEnableSingle(t){lscwpPerformSingleAction(t,"./index.php?do=lscwp_manage&step=1&enable_single=")}function lscwpDisableSingle(t){if(confirm("LSCWP configuration may be lost when disabling. Disable anyway?")){lscwpPerformSingleAction(t,"./index.php?do=lscwp_manage&step=1&disable_single=")}}function lscwpFlagSingle(t){lscwpPerformSingleAction(t,"./index.php?do=lscwp_manage&step=1&flag_single=")}function lscwpUnflagSingle(t){lscwpPerformSingleAction(t,"./index.php?do=lscwp_manage&step=1&unflag_single=")}function lswsCPanelCustTplState(){document.querySelector('input[name="useCustTpl"]').checked?document.getElementById("custTpl").removeAttribute("readonly"):document.getElementById("custTpl").setAttribute("readonly",!0)}function clearDashMsg(t){""!=document.getElementById(t+"-dashMsg").value.replace(/^\s+|\s+$/g,"")&&confirm("Clear current Dashboard Message input?")&&$("#"+t+"-dashMsg").val("")}function saveDashMsg(t,e){if(""!=t&&null!=t){var i=document.getElementById(e+"-dashMsg").value.replace(/^\s+|\s+$/g,"");if(""!=i){var n="./index.php?do=dash_notifier&step=1&add_msg=1&msg_type="+e+"&msg_id="+t+"¬ify_msg="+i;if("rap"==e){var s=document.getElementById("pluginSlug").value.replace(/^\s+|\s+$/g,"");if(""==s)return void alert("Plugin Slug cannot be empty.");n=n+"¬ify_slug="+s}if("default"!=t||"rap"!=e){var o=new RegExp("^[a-zA-Z0-9_-]+$");if(t.length>50)alert('Provided "Save As" ID is too long. ID must be 1-50 characters in length.');else if(o.test(t)){var a=!1,r=!1;$("#"+e+"-msgIds option").each(function(){this.value==t&&(a=!0,confirm('Provided "Save As" value already exists. Would you like to overwrite it?')||(r=!0))}),r||$.getJSON(n,function(i){if(1==i.ret){a||$("#"+e+"-msgIds").append('<option value="'+t+'">'+t+"</option>"),lswsWriteToMsgBox(["Saved dash message."],"succ");var n=$("span#succMsgCnt"),s=parseInt(n.text()),o=1;n.html(s+o),n.closest("button").css("display","initial")}else{lswsWriteToMsgBox(["Could not save dash message."],"err");var r=$("span#errMsgCnt");s=parseInt(r.text()),o=1;r.html(s+o),r.closest("button").css("display","initial")}})}else alert('Provided "Save As" ID contains invalid characters. ID can contain a-zA-Z0-9_- characters.')}else alert('Default "Recommend A Plugin" message cannot be overwritten. Please enter a different "Save As" value.')}else alert("WordPress Dashboard Message cannot be empty.")}}function loadSavedDashMsg(t){var e=$("#"+t+"-msgIds").children("option:selected").val();""!=e&&null!=e&&confirm("Load selected stored message? This will replace current message box content.")&&$.getJSON("./index.php?do=dash_notifier&step=1&get_msg=1&msg_type="+t+"&msg_id="+e,function(e){if(!e.msgInfo||!e.msgInfo.msg){lswsWriteToMsgBox(["Could not load dash message."],"err");var i=$("span#errMsgCnt"),n=parseInt(i.text()),s=1;return i.html(n+s),void i.closest("button").css("display","initial")}var o=e.msgInfo,a=o.msg;if($("#"+t+"-dashMsg").val(a),"rap"==t){var r=o.slug;$("#verify-output").html(""),$("#pluginSlug").val(r)}lswsWriteToMsgBox(["Dash message loaded."],"succ");var l=$("span#succMsgCnt");n=parseInt(l.text()),s=1;l.html(n+s),l.closest("button").css("display","initial")})}function deleteSavedDashMsg(t){var e=$("#"+t+"-msgIds").children("option:selected").val();""!=e&&null!=e&&("default"!=e||"rap"!=t?confirm("Delete selected stored message?")&&$.getJSON("./index.php?do=dash_notifier&step=1&delete_msg=1&msg_type="+t+"&msg_id="+e,function(i){if(1==i.ret){$("#"+t+"-msgIds option[value='"+e+"']").remove(),lswsWriteToMsgBox(["Deleted dash message."],"succ");var n=$("span#succMsgCnt"),s=parseInt(n.text()),o=1;n.html(s+o),n.closest("button").css("display","initial")}else{lswsWriteToMsgBox(["Could not delete dash message."],"err");var a=$("span#errMsgCnt");s=parseInt(a.text()),o=1;a.html(s+o),a.closest("button").css("display","initial")}}):alert('Default "Recommend A Plugin" message cannot be deleted.'))}function dashMassActionSubmit(t,e,i){var n=!1;if("mass-notify"==t){if(""==document.getElementById(i+"-dashMsg").value.replace(/^\s+|\s+$/g,""))return void alert("WordPress Dashboard Message cannot be empty.");if("rap"==i){var s=document.getElementById("pluginSlug").value.replace(/^\s+|\s+$/g,"");if(""==s)return void alert("Plugin Slug cannot be empty.");if(""==dashGetWpPluginName(s))return $("#verify-output").removeClass("uk-text-success"),$("#verify-output").html("Could not find a Wordpress plugin with the provided slug."),void $("#verify-output").addClass("uk-text-danger");$("#verify-output").html("")}confirm("Notify all discovered WordPress installations with the provided message?")&&(n=!0)}else"mass-disable-dash-notifier"==t&&confirm("Remove Dash notifier plugin for all discovered WordPress installations?")&&(n=!0);if(n){var o=$('form[name="'+i+'-form"]');$("<input>",{type:"hidden",name:t,value:e}).appendTo(o),o.submit()}}function dashGetWpPluginName(t){var e="";return $.ajax({url:"https://api.wordpress.org/plugins/info/1.0/"+t+".json",type:"GET",async:!1,success:function(t){t.name&&(e=t.name)}}),e}function dashVerifySlug(t){if(""==t)return $("#verify-output").html(""),!1;var e=dashGetWpPluginName(t);return""==e?($("#verify-output").removeClass("uk-text-success"),$("#verify-output").html("Could not find a Wordpress plugin with the provided slug."),$("#verify-output").addClass("uk-text-danger"),!1):($("#verify-output").removeClass("uk-text-danger"),$("#verify-output").html("Verified plugin: "+e),$("#verify-output").addClass("uk-text-success"),!0)}function dashNotifySingle(t,e,i){if(""!=e)if(""!=t){var n="span#"+i+"-notifySingleBtn",s=$(n).html(),o="./index.php?do=dash_notifier&step=1¬ify_single="+t+"¬ify_msg="+e;if("rap"==i){var a=document.getElementById("pluginSlug").value.replace(/^\s+|\s+$/g,"");if(""==a)return void alert("Plugin Slug cannot be empty.");if(""==dashGetWpPluginName(a))return $("#verify-output").removeClass("uk-text-success"),$("#verify-output").html("Could not find a Wordpress plugin with the provided slug."),void $("#verify-output").addClass("uk-text-danger");o=o+"¬ify_slug="+a,$("#verify-output").html("")}$(n).html('<img src="./static/icons/ajax-loader.gif" />'),$.getJSON(o,function(t){var e=t.errMsgs,i=t.succMsgs;if(void 0!==e&&0!==e.length){lswsWriteToMsgBox(e,"err");var n=$("span#errMsgCnt"),s=parseInt(n.text()),o=e.length;n.html(s+o),n.closest("button").css("display","initial")}if(void 0!==i&&0!==i.length){lswsWriteToMsgBox(i,"succ");var a=$("span#succMsgCnt");s=parseInt(a.text()),o=i.length;a.html(s+o),a.closest("button").css("display","initial")}}),$(n).html(s)}else alert("Single Action path cannot be empty.");else alert("WordPress Dashboard Message cannot be empty.")}function dashDisableSingle(t,e){if(""!=t){var i="span#"+e+"-disableSingleBtn",n=$(i).html();$(i).html('<img src="./static/icons/ajax-loader.gif" />'),$.getJSON("./index.php?do=dash_notifier&step=1&disable_single="+t,function(t){var e=t.errMsgs,i=t.succMsgs;if(void 0!==e&&0!==e.length){lswsWriteToMsgBox(e,"err");var n=$("span#errMsgCnt"),s=parseInt(n.text()),o=e.length;n.html(s+o),n.closest("button").css("display","initial")}if(void 0!==i&&0!==i.length){lswsWriteToMsgBox(i,"succ");var a=$("span#succMsgCnt");s=parseInt(a.text()),o=i.length;a.html(s+o),a.closest("button").css("display","initial")}}),$(i).html(n)}}function dashMassNotifyUpdate(){$.getJSON("./index.php?do=dash_notifier&dash_step=1",function(t){var e=t.completed,i=t.bypassedCount,n=t.failCount,s=t.succCount,o=t.errMsgs,a=t.succMsgs;if(-1!==e){var r=$("span#currIndex"),l=parseInt(r.text())+e;r.html(l)}var c=$("span#bypassedCount"),d=$("span#succCount"),u=$("span#failCount"),p=parseInt(c.text())+i,h=parseInt(d.text())+s,f=parseInt(u.text())+n;if(c.html(p),d.html(h),u.html(f),void 0!==o&&0!==o.length){lswsWriteToMsgBox(o,"err");var g=$("span#errMsgCnt"),m=parseInt(g.text()),v=o.length;g.html(m+v),g.closest("button").css("display","initial")}if(void 0!==a&&0!==a.length){lswsWriteToMsgBox(a,"succ");var w=$("span#succMsgCnt");m=parseInt(w.text()),v=a.length;w.html(m+v),w.closest("button").css("display","initial")}if(-1===e)return $("div#backNextBtns").css("visibility","unset"),void updateProgressBox("Stopped!");l!==parseInt($("span#totalCount").text())?dashMassNotifyUpdate():($("div#backNextBtns").css("visibility","unset"),updateProgressBox("Finished!"))})}function dashMassDisableUpdate(){$.getJSON("./index.php?do=dash_notifier&dash_step=2",function(t){var e=t.completed,i=t.bypassedCount,n=t.failCount,s=t.succCount,o=t.errMsgs,a=t.succMsgs;if(-1!==e){var r=$("span#currIndex"),l=parseInt(r.text())+e;r.html(l)}var c=$("span#bypassedCount"),d=$("span#succCount"),u=$("span#failCount"),p=parseInt(c.text())+i,h=parseInt(d.text())+s,f=parseInt(u.text())+n;if(c.html(p),d.html(h),u.html(f),void 0!==o&&0!==o.length){lswsWriteToMsgBox(o,"err");var g=$("span#errMsgCnt"),m=parseInt(g.text()),v=o.length;g.html(m+v),g.closest("button").css("display","initial")}if(void 0!==a&&0!==a.length){lswsWriteToMsgBox(a,"succ");var w=$("span#succMsgCnt");m=parseInt(w.text()),v=a.length;w.html(m+v),w.closest("button").css("display","initial")}if(-1===e)return $("div#backNextBtns").css("visibility","unset"),void updateProgressBox("Stopped!");l!==parseInt($("span#totalCount").text())?dashMassDisableUpdate():($("div#backNextBtns").css("visibility","unset"),updateProgressBox("Finished!"))})}$("#lswsContent").load("./index.php"+window.location.search),function(t){var e;if(!window.jQuery)throw new Error("UIkit 2.x requires jQuery");e=function(t){"use strict";if(window.UIkit2)return window.UIkit2;var e={},i=window.UIkit||void 0;e.version="2.27.5",e.noConflict=function(){return i&&(window.UIkit=i,t.UIkit=i,t.fn.uk=i.fn),e},window.UIkit2=e,i||(window.UIkit=e);if(e.$=t,e.$doc=e.$(document),e.$win=e.$(window),e.$html=e.$("html"),e.support={},e.support.transition=(l=function(){var t,e=document.body||document.documentElement,i={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"};for(t in i)if(void 0!==e.style[t])return i[t]}(),l&&{end:l}),e.support.animation=(r=function(){var t,e=document.body||document.documentElement,i={WebkitAnimation:"webkitAnimationEnd",MozAnimation:"animationend",OAnimation:"oAnimationEnd oanimationend",animation:"animationend"};for(t in i)if(void 0!==e.style[t])return i[t]}(),r&&{end:r}),function(){Date.now=Date.now||function(){return(new Date).getTime()};for(var t=["webkit","moz"],e=0;e<t.length&&!window.requestAnimationFrame;++e){var i=t[e];window.requestAnimationFrame=window[i+"RequestAnimationFrame"],window.cancelAnimationFrame=window[i+"CancelAnimationFrame"]||window[i+"CancelRequestAnimationFrame"]}if(/iP(ad|hone|od).*OS 6/.test(window.navigator.userAgent)||!window.requestAnimationFrame||!window.cancelAnimationFrame){var n=0;window.requestAnimationFrame=function(t){var e=Date.now(),i=Math.max(n+16,e);return setTimeout(function(){t(n=i)},i-e)},window.cancelAnimationFrame=clearTimeout}}(),e.support.touch="ontouchstart"in document||window.DocumentTouch&&document instanceof window.DocumentTouch||window.navigator.msPointerEnabled&&window.navigator.msMaxTouchPoints>0||window.navigator.pointerEnabled&&window.navigator.maxTouchPoints>0||!1,e.support.mutationobserver=window.MutationObserver||window.WebKitMutationObserver||null,e.Utils={},e.Utils.isFullscreen=function(){return document.webkitFullscreenElement||document.mozFullScreenElement||document.msFullscreenElement||document.fullscreenElement||!1},e.Utils.str2json=function(t,e){try{return e?JSON.parse(t.replace(/([\$\w]+)\s*:/g,function(t,e){return'"'+e+'":'}).replace(/'([^']+)'/g,function(t,e){return'"'+e+'"'})):new Function("","var json = "+t+"; return JSON.parse(JSON.stringify(json));")()}catch(t){return!1}},e.Utils.debounce=function(t,e,i){var n;return function(){var s=this,o=arguments,a=i&&!n;clearTimeout(n),n=setTimeout(function(){n=null,i||t.apply(s,o)},e),a&&t.apply(s,o)}},e.Utils.throttle=function(t,e){var i=!1;return function(){i||(t.call(),i=!0,setTimeout(function(){i=!1},e))}},e.Utils.removeCssRules=function(t){var e,i,n,s,o,a,r,l,c,d;t&&setTimeout(function(){try{for(d=document.styleSheets,s=0,r=d.length;s<r;s++){for(n=d[s],i=[],n.cssRules=n.cssRules,e=o=0,l=n.cssRules.length;o<l;e=++o)n.cssRules[e].type===CSSRule.STYLE_RULE&&t.test(n.cssRules[e].selectorText)&&i.unshift(e);for(a=0,c=i.length;a<c;a++)n.deleteRule(i[a])}}catch(t){}},0)},e.Utils.isInView=function(i,n){var s=t(i);if(!s.is(":visible"))return!1;var o=e.$win.scrollLeft(),a=e.$win.scrollTop(),r=s.offset(),l=r.left,c=r.top;return n=t.extend({topoffset:0,leftoffset:0},n),c+s.height()>=a&&c-n.topoffset<=a+e.$win.height()&&l+s.width()>=o&&l-n.leftoffset<=o+e.$win.width()},e.Utils.checkDisplay=function(i,n){var s=e.$("[data-uk-margin], [data-uk-grid-match], [data-uk-grid-margin], [data-uk-check-display]",i||document);return i&&!s.length&&(s=t(i)),s.trigger("display.uk.check"),n&&("string"!=typeof n&&(n='[class*="uk-animation-"]'),s.find(n).each(function(){var t=e.$(this),i=t.attr("class").match(/uk-animation-(.+)/);t.removeClass(i[0]).width(),t.addClass(i[0])})),s},e.Utils.options=function(i){if("string"!=t.type(i))return i;-1!=i.indexOf(":")&&"}"!=i.trim().substr(-1)&&(i="{"+i+"}");var n=i?i.indexOf("{"):-1,s={};if(-1!=n)try{s=e.Utils.str2json(i.substr(n))}catch(t){}return s},e.Utils.animate=function(i,n){var s=t.Deferred();return(i=e.$(i)).css("display","none").addClass(n).one(e.support.animation.end,function(){i.removeClass(n),s.resolve()}),i.css("display",""),s.promise()},e.Utils.uid=function(t){return(t||"id")+(new Date).getTime()+"RAND"+Math.ceil(1e5*Math.random())},e.Utils.template=function(t,e){for(var i,n,s,o,a=t.replace(/\n/g,"\\n").replace(/\{\{\{\s*(.+?)\s*\}\}\}/g,"{{!$1}}").split(/(\{\{\s*(.+?)\s*\}\})/g),r=0,l=[],c=0;r<a.length;){if((i=a[r]).match(/\{\{\s*(.+?)\s*\}\}/))switch(n=(i=a[r+=1])[0],s=i.substring(i.match(/^(\^|\#|\!|\~|\:)/)?1:0),n){case"~":l.push("for(var $i=0;$i<"+s+".length;$i++) { var $item = "+s+"[$i];"),c++;break;case":":l.push("for(var $key in "+s+") { var $val = "+s+"[$key];"),c++;break;case"#":l.push("if("+s+") {"),c++;break;case"^":l.push("if(!"+s+") {"),c++;break;case"/":l.push("}"),c--;break;case"!":l.push("__ret.push("+s+");");break;default:l.push("__ret.push(escape("+s+"));")}else l.push("__ret.push('"+i.replace(/\'/g,"\\'")+"');");r+=1}return o=new Function("$data",["var __ret = [];","try {","with($data){",c?'__ret = ["Not all blocks are closed correctly."]':l.join(""),"};","}catch(e){__ret = [e.message];}",'return __ret.join("").replace(/\\n\\n/g, "\\n");',"function escape(html) { return String(html).replace(/&/g, '&').replace(/\"/g, '"').replace(/</g, '<').replace(/>/g, '>');}"].join("\n")),e?o(e):o},e.Utils.focus=function(e,i){if(!(e=t(e)).length)return e;var n,s=e.find("[autofocus]:first");return s.length?s.focus():(s=e.find(":input"+(i&&","+i||"")).first()).length?s.focus():(e.attr("tabindex")||(n=1e3,e.attr("tabindex",n)),e[0].focus(),n&&e.attr("tabindex",""),e)},e.Utils.events={},e.Utils.events.click=e.support.touch?"tap":"click",e.fn=function(i,n){var s=arguments,o=i.match(/^([a-z\-]+)(?:\.([a-z]+))?/i),a=o[1],r=o[2];return e[a]?this.each(function(){var i=t(this),o=i.data(a);o||i.data(a,o=e[a](this,r?void 0:n)),r&&o[r].apply(o,Array.prototype.slice.call(s,1))}):(t.error("UIkit component ["+a+"] does not exist."),this)},t.UIkit=e,t.fn.uk=e.fn,e.langdirection="rtl"==e.$html.attr("dir")?"right":"left",e.components={},e.component=function(i,n,s){if(e.components[i]&&!s)return e.components[i];var o=function(n,s){var a=this;return this.UIkit=e,this.element=n?e.$(n):null,this.options=t.extend(!0,{},this.defaults,s),this.plugins={},this.element&&this.element.data(i,this),this.init(),(this.options.plugins.length?this.options.plugins:Object.keys(o.plugins)).forEach(function(t){o.plugins[t].init&&(o.plugins[t].init(a),a.plugins[t]=!0)}),this.trigger("init.uk.component",[i,this]),this};return o.plugins={},t.extend(!0,o.prototype,{defaults:{plugins:[]},boot:function(){},init:function(){},on:function(t,i,n){return e.$(this.element||this).on(t,i,n)},one:function(t,i,n){return e.$(this.element||this).one(t,i,n)},off:function(t){return e.$(this.element||this).off(t)},trigger:function(t,i){return e.$(this.element||this).trigger(t,i)},find:function(t){return e.$(this.element?this.element:[]).find(t)},proxy:function(t,e){var i=this;e.split(" ").forEach(function(e){i[e]||(i[e]=function(){return t[e].apply(t,arguments)})})},mixin:function(t,e){var i=this;e.split(" ").forEach(function(e){i[e]||(i[e]=t[e].bind(i))})},option:function(){if(1==arguments.length)return this.options[arguments[0]]||void 0;2==arguments.length&&(this.options[arguments[0]]=arguments[1])}},n),this.components[i]=o,this[i]=function(){var n,s;if(arguments.length)switch(arguments.length){case 1:"string"==typeof arguments[0]||arguments[0].nodeType||arguments[0]instanceof jQuery?n=t(arguments[0]):s=arguments[0];break;case 2:n=t(arguments[0]),s=arguments[1]}return n&&n.data(i)?n.data(i):new e.components[i](n,s)},e.domready&&e.component.boot(i),o},e.plugin=function(t,e,i){this.components[t].plugins[e]=i},e.component.boot=function(t){e.components[t].prototype&&e.components[t].prototype.boot&&!e.components[t].booted&&(e.components[t].prototype.boot.apply(e,[]),e.components[t].booted=!0)},e.component.bootComponents=function(){for(var t in e.components)e.component.boot(t)},e.domObservers=[],e.domready=!1,e.ready=function(t){e.domObservers.push(t),e.domready&&t(document)},e.on=function(t,i,n){return t&&t.indexOf("ready.uk.dom")>-1&&e.domready&&i.apply(e.$doc),e.$doc.on(t,i,n)},e.one=function(t,i,n){return t&&t.indexOf("ready.uk.dom")>-1&&e.domready?(i.apply(e.$doc),e.$doc):e.$doc.one(t,i,n)},e.trigger=function(t,i){return e.$doc.trigger(t,i)},e.domObserve=function(t,i){e.support.mutationobserver&&(i=i||function(){},e.$(t).each(function(){var t=this,n=e.$(t);if(!n.data("observer"))try{var s=new e.support.mutationobserver(e.Utils.debounce(function(e){i.apply(t,[n]),n.trigger("changed.uk.dom")},50),{childList:!0,subtree:!0});s.observe(t,{childList:!0,subtree:!0}),n.data("observer",s)}catch(t){}}))},e.init=function(t){t=t||document,e.domObservers.forEach(function(e){e(t)})},e.on("domready.uk.dom",function(){e.init(),e.domready&&e.Utils.checkDisplay()}),document.addEventListener("DOMContentLoaded",(a=function(){e.$body=e.$("body"),e.trigger("beforeready.uk.dom"),e.component.bootComponents();var i,n,s=requestAnimationFrame((i={dir:{x:0,y:0},x:window.pageXOffset,y:window.pageYOffset},n=function(){var t=window.pageXOffset,o=window.pageYOffset;i.x==t&&i.y==o||(t!=i.x?i.dir.x=t>i.x?1:-1:i.dir.x=0,o!=i.y?i.dir.y=o>i.y?1:-1:i.dir.y=0,i.x=t,i.y=o,e.$doc.trigger("scrolling.uk.document",[{dir:{x:i.dir.x,y:i.dir.y},x:t,y:o}])),cancelAnimationFrame(s),s=requestAnimationFrame(n)},e.support.touch&&e.$html.on("touchmove touchend MSPointerMove MSPointerUp pointermove pointerup",n),(i.x||i.y)&&n(),n));if(e.trigger("domready.uk.dom"),e.support.touch&&navigator.userAgent.match(/(iPad|iPhone|iPod)/g)&&e.$win.on("load orientationchange resize",e.Utils.debounce(function(){var e=function(){return t(".uk-height-viewport").css("height",window.innerHeight),e};return e()}(),100)),e.trigger("afterready.uk.dom"),e.domready=!0,e.support.mutationobserver){var o=e.Utils.debounce(function(){requestAnimationFrame(function(){e.init(document.body)})},10);new e.support.mutationobserver(function(t){var e=!1;t.every(function(t){if("childList"!=t.type)return!0;for(var i,n=0;n<t.addedNodes.length;++n)if((i=t.addedNodes[n]).outerHTML&&-1!==i.outerHTML.indexOf("data-uk-"))return(e=!0)&&!1;return!0}),e&&o()}).observe(document.body,{childList:!0,subtree:!0})}},"complete"!=document.readyState&&"interactive"!=document.readyState||setTimeout(a),a)),e.$html.addClass(e.support.touch?"uk-touch":"uk-notouch"),e.support.touch){var n,s=!1,o=".uk-overlay, .uk-overlay-hover, .uk-overlay-toggle, .uk-animation-hover, .uk-has-hover";e.$html.on("mouseenter touchstart MSPointerDown pointerdown",o,function(){s&&t(".uk-hover").removeClass("uk-hover"),s=t(this).addClass("uk-hover")}).on("mouseleave touchend MSPointerUp pointerup",function(e){n=t(e.target).parents(o),s&&s.not(n).removeClass("uk-hover")})}var a;var r;var l;return e}(window.jQuery),"function"==typeof define&&define.amd&&define("uikit",function(){return e.load=function(t,i,n,s){var o,a=t.split(","),r=[],l=(s.config&&s.config.uikit&&s.config.uikit.base?s.config.uikit.base:"").replace(/\/+$/g,"");if(!l)throw new Error("Please define base path to UIkit in the requirejs config.");for(o=0;o<a.length;o+=1){var c=a[o].replace(/\./g,"/");r.push(l+"/components/"+c)}i(r,function(){n(e)})},e})}(),function(t){"use strict";var e,i,n,s=[];t.component("stackMargin",{defaults:{cls:"uk-margin-small-top",rowfirst:!1,observe:!1},boot:function(){t.ready(function(e){t.$("[data-uk-margin]",e).each(function(){var e=t.$(this);e.data("stackMargin")||t.stackMargin(e,t.Utils.options(e.attr("data-uk-margin")))})})},init:function(){var e,i=this;t.$win.on("resize orientationchange",(e=function(){i.process()},t.$(function(){e(),t.$win.on("load",e)}),t.Utils.debounce(e,20))),this.on("display.uk.check",function(t){this.element.is(":visible")&&this.process()}.bind(this)),this.options.observe&&t.domObserve(this.element,function(t){i.element.is(":visible")&&i.process()}),s.push(this)},process:function(){var e=this.element.children();if(t.Utils.stackMargin(e,this.options),!this.options.rowfirst||!e.length)return this;var i={},n=!1;return e.removeClass(this.options.rowfirst).each(function(e,s){s=t.$(this),"none"!=this.style.display&&(e=s.offset().left,((i[e]=i[e]||[])&&i[e]).push(this),n=!1===n?e:Math.min(n,e))}),t.$(i[n]).addClass(this.options.rowfirst),this}}),e=[],i=function(t){if(t.is(":visible")){var e=t.parent().width(),i=t.data("width"),n=e/i,s=Math.floor(n*t.data("height"));t.css({height:e<i?s:t.data("height")})}},t.component("responsiveElement",{defaults:{},boot:function(){t.ready(function(e){t.$("iframe.uk-responsive-width, [data-uk-responsive]",e).each(function(){var e=t.$(this);e.data("responsiveElement")||t.responsiveElement(e,{})})})},init:function(){var t=this.element;t.attr("width")&&t.attr("height")&&(t.data({width:t.attr("width"),height:t.attr("height")}).on("display.uk.check",function(){i(t)}),i(t),e.push(t))}}),t.$win.on("resize load",t.Utils.debounce(function(){e.forEach(function(t){i(t)})},15)),t.Utils.stackMargin=function(e,i){i=t.$.extend({cls:"uk-margin-small-top"},i),e=t.$(e).removeClass(i.cls);var n=!1;e.each(function(e,i,s,o){"none"!=(o=t.$(this)).css("display")&&(e=o.offset(),i=o.outerHeight(),s=e.top+i,o.data({ukMarginPos:s,ukMarginTop:e.top}),(!1===n||e.top<n.top)&&(n={top:e.top,left:e.left,pos:s}))}).each(function(e){"none"!=(e=t.$(this)).css("display")&&e.data("ukMarginTop")>n.top&&e.data("ukMarginPos")>n.pos&&e.addClass(i.cls)})},t.Utils.matchHeights=function(e,i){e=t.$(e).css("min-height",""),i=t.$.extend({row:!0},i);var n=function(e){if(!(e.length<2)){var i=0;e.each(function(){i=Math.max(i,t.$(this).outerHeight())}).each(function(){var e=t.$(this),n=i-("border-box"==e.css("box-sizing")?0:e.outerHeight()-e.height());e.css("min-height",n+"px")})}};i.row?(e.first().width(),setTimeout(function(){var i=!1,s=[];e.each(function(){var e=t.$(this),o=e.offset().top;o!=i&&s.length&&(n(t.$(s)),s=[],o=e.offset().top),s.push(e),i=o}),s.length&&n(t.$(s))},0)):n(e)},n={},t.Utils.inlineSvg=function(e,i){t.$(e||'img[src$=".svg"]',i||document).each(function(){var e=t.$(this),i=e.attr("src");if(!n[i]){var s=t.$.Deferred();t.$.get(i,{nc:Math.random()},function(e){s.resolve(t.$(e).find("svg"))}),n[i]=s.promise()}n[i].then(function(i){var n=t.$(i).clone();e.attr("id")&&n.attr("id",e.attr("id")),e.attr("class")&&n.attr("class",e.attr("class")),e.attr("style")&&n.attr("style",e.attr("style")),e.attr("width")&&(n.attr("width",e.attr("width")),e.attr("height")||n.removeAttr("height")),e.attr("height")&&(n.attr("height",e.attr("height")),e.attr("width")||n.removeAttr("width")),e.replaceWith(n)})})},t.ready(function(e){t.Utils.inlineSvg("[data-uk-svg]",e)}),t.Utils.getCssVar=function(t){var e,i=document.documentElement,n=i.appendChild(document.createElement("div"));n.classList.add("var-"+t);try{e=JSON.parse(e=getComputedStyle(n,":before").content.replace(/^["'](.*)["']$/,"$1"))}catch(t){e=void 0}return i.removeChild(n),e}}(UIkit2),function(t){var e;window.UIkit2&&(e=t(UIkit2)),"function"==typeof define&&define.amd&&define("uikit-tooltip",["uikit"],function(){return e||t(UIkit2)})}(function(t){"use strict";var e,i,n;return t.component("tooltip",{defaults:{offset:5,pos:"top",animation:!1,delay:0,cls:"",activeClass:"uk-active",src:function(t){var e=t.attr("title");return void 0!==e&&t.data("cached-title",e).removeAttr("title"),t.data("cached-title")}},tip:"",boot:function(){t.$html.on("mouseenter.tooltip.uikit focus.tooltip.uikit","[data-uk-tooltip]",function(e){var i=t.$(this);i.data("tooltip")||(t.tooltip(i,t.Utils.options(i.attr("data-uk-tooltip"))),i.trigger("mouseenter"))})},init:function(){var i=this;e||(e=t.$('<div class="uk-tooltip"></div>').appendTo("body")),this.on({focus:function(t){i.show()},blur:function(t){i.hide()},mouseenter:function(t){i.show()},mouseleave:function(t){i.hide()}})},show:function(){if(this.tip="function"==typeof this.options.src?this.options.src(this.element):this.options.src,i&&clearTimeout(i),n&&clearInterval(n),"string"==typeof this.tip&&this.tip.length){e.stop().css({top:-2e3,visibility:"hidden"}).removeClass(this.options.activeClass).show(),e.html('<div class="uk-tooltip-inner">'+this.tip+"</div>");var s=this,o=t.$.extend({},this.element.offset(),{width:this.element[0].offsetWidth,height:this.element[0].offsetHeight}),a=e[0].offsetWidth,r=e[0].offsetHeight,l="function"==typeof this.options.offset?this.options.offset.call(this.element):this.options.offset,c="function"==typeof this.options.pos?this.options.pos.call(this.element):this.options.pos,d=c.split("-"),u={display:"none",visibility:"visible",top:o.top+o.height+r,left:o.left};if("fixed"==t.$html.css("position")||"fixed"==t.$body.css("position")){var p=t.$("body").offset(),h=t.$("html").offset(),f={top:h.top+p.top,left:h.left+p.left};o.left-=f.left,o.top-=f.top}"left"!=d[0]&&"right"!=d[0]||"right"!=t.langdirection||(d[0]="left"==d[0]?"right":"left");var g={bottom:{top:o.top+o.height+l,left:o.left+o.width/2-a/2},top:{top:o.top-r-l,left:o.left+o.width/2-a/2},left:{top:o.top+o.height/2-r/2,left:o.left-a-l},right:{top:o.top+o.height/2-r/2,left:o.left+o.width+l}};t.$.extend(u,g[d[0]]),2==d.length&&(u.left="left"==d[1]?o.left:o.left+o.width-a);var m=this.checkBoundary(u.left,u.top,a,r);if(m){switch(m){case"x":c=2==d.length?d[0]+"-"+(u.left<0?"left":"right"):u.left<0?"right":"left";break;case"y":c=2==d.length?(u.top<0?"bottom":"top")+"-"+d[1]:u.top<0?"bottom":"top";break;case"xy":c=2==d.length?(u.top<0?"bottom":"top")+"-"+(u.left<0?"left":"right"):u.left<0?"right":"left"}d=c.split("-"),t.$.extend(u,g[d[0]]),2==d.length&&(u.left="left"==d[1]?o.left:o.left+o.width-a)}u.left-=t.$body.position().left,i=setTimeout(function(){e.css(u).attr("class",["uk-tooltip","uk-tooltip-"+c,s.options.cls].join(" ")),s.options.animation?e.css({opacity:0,display:"block"}).addClass(s.options.activeClass).animate({opacity:1},parseInt(s.options.animation,10)||400):e.show().addClass(s.options.activeClass),i=!1,n=setInterval(function(){s.element.is(":visible")||s.hide()},150)},parseInt(this.options.delay,10)||0)}},hide:function(){if(!this.element.is("input")||this.element[0]!==document.activeElement)if(i&&clearTimeout(i),n&&clearInterval(n),e.stop(),this.options.animation){var t=this;e.fadeOut(parseInt(this.options.animation,10)||400,function(){e.removeClass(t.options.activeClass)})}else e.hide().removeClass(this.options.activeClass)},content:function(){return this.tip},checkBoundary:function(e,i,n,s){var o="";return(e<0||e-t.$win.scrollLeft()+n>window.innerWidth)&&(o+="x"),(i<0||i-t.$win.scrollTop()+s>window.innerHeight)&&(o+="y"),o}}),t.tooltip}),function(t){"use strict";var e;function i(e,i,n){var s,o=t.$.Deferred(),a=e,r=e;return n[0]===i[0]?(o.resolve(),o.promise()):("object"==typeof e&&(a=e[0],r=e[1]||e[0]),t.$body.css("overflow-x","hidden"),s=function(){i&&i.hide().removeClass("uk-active "+r+" uk-animation-reverse"),n.addClass(a).one(t.support.animation.end,function(){setTimeout(function(){n.removeClass(""+a).css({opacity:"",display:""})},0),o.resolve(),t.$body.css("overflow-x",""),i&&i.css({opacity:"",display:""})}.bind(this)).show()},n.css("animation-duration",this.options.duration+"ms"),i&&i.length?(i.css("animation-duration",this.options.duration+"ms"),i.css("display","none").addClass(r+" uk-animation-reverse").one(t.support.animation.end,function(){s()}.bind(this)).css("display","")):(n.addClass("uk-active"),s()),o.promise())}t.component("switcher",{defaults:{connect:!1,toggle:">*",active:0,animation:!1,duration:200,swiping:!0},animating:!1,boot:function(){t.ready(function(e){t.$("[data-uk-switcher]",e).each(function(){var e=t.$(this);if(!e.data("switcher"))t.switcher(e,t.Utils.options(e.attr("data-uk-switcher")))})})},init:function(){var e=this;this.on("click.uk.switcher",this.options.toggle,function(t){t.preventDefault(),e.show(this)}),this.options.connect&&(this.connect=t.$(this.options.connect),this.connect.length&&(this.connect.on("click.uk.switcher","[data-uk-switcher-item]",function(i){i.preventDefault();var n=t.$(this).attr("data-uk-switcher-item");if(e.index!=n)switch(n){case"next":case"previous":e.show(e.index+("next"==n?1:-1));break;default:e.show(parseInt(n,10))}}),this.options.swiping&&this.connect.on("swipeRight swipeLeft",function(t){t.preventDefault(),window.getSelection().toString()||e.show(e.index+("swipeLeft"==t.type?1:-1))}),this.update()))},update:function(){this.connect.children().removeClass("uk-active").attr("aria-hidden","true");var t=this.find(this.options.toggle),e=t.filter(".uk-active");if(e.length)this.show(e,!1);else{if(!1===this.options.active)return;e=t.eq(this.options.active),this.show(e.length?e:t.eq(0),!1)}t.not(e).attr("aria-expanded","false"),e.attr("aria-expanded","true")},show:function(n,s){if(!this.animating){var o=this.find(this.options.toggle);isNaN(n)?n=t.$(n):(n=n<0?o.length-1:n,n=o.eq(o[n]?n:0));var a=this,r=t.$(n),l=e[this.options.animation]||function(t,n){if(!a.options.animation)return e.none.apply(a);var s=a.options.animation.split(",");return 1==s.length&&(s[1]=s[0]),s[0]=s[0].trim(),s[1]=s[1].trim(),i.apply(a,[s,t,n])};!1!==s&&t.support.animation||(l=e.none),r.hasClass("uk-disabled")||(o.attr("aria-expanded","false"),r.attr("aria-expanded","true"),o.filter(".uk-active").removeClass("uk-active"),r.addClass("uk-active"),this.options.connect&&this.connect.length&&(this.index=this.find(this.options.toggle).index(r),-1==this.index&&(this.index=0),this.connect.each(function(){var e=t.$(this),i=t.$(e.children()),n=t.$(i.filter(".uk-active")),s=t.$(i.eq(a.index));a.animating=!0,l.apply(a,[n,s]).then(function(){n.removeClass("uk-active"),s.addClass("uk-active"),n.attr("aria-hidden","true"),s.attr("aria-hidden","false"),t.Utils.checkDisplay(s,!0),a.animating=!1})})),this.trigger("show.uk.switcher",[r]))}}}),e={none:function(){var e=t.$.Deferred();return e.resolve(),e.promise()},fade:function(t,e){return i.apply(this,["uk-animation-fade",t,e])},"slide-bottom":function(t,e){return i.apply(this,["uk-animation-slide-bottom",t,e])},"slide-top":function(t,e){return i.apply(this,["uk-animation-slide-top",t,e])},"slide-vertical":function(t,e,n){var s=["uk-animation-slide-top","uk-animation-slide-bottom"];return t&&t.index()>e.index()&&s.reverse(),i.apply(this,[s,t,e])},"slide-left":function(t,e){return i.apply(this,["uk-animation-slide-left",t,e])},"slide-right":function(t,e){return i.apply(this,["uk-animation-slide-right",t,e])},"slide-horizontal":function(t,e,n){var s=["uk-animation-slide-right","uk-animation-slide-left"];return t&&t.index()>e.index()&&s.reverse(),i.apply(this,[s,t,e])},scale:function(t,e){return i.apply(this,["uk-animation-scale-up",t,e])}},t.switcher.animations=e}(UIkit2),function(t){"use strict";var e=[];t.component("toggle",{defaults:{target:!1,cls:"uk-hidden",animation:!1,duration:200},boot:function(){t.ready(function(i){t.$("[data-uk-toggle]",i).each(function(){var e=t.$(this);if(!e.data("toggle"))t.toggle(e,t.Utils.options(e.attr("data-uk-toggle")))}),setTimeout(function(){e.forEach(function(t){t.getToggles()})},0)})},init:function(){var t=this;this.aria=-1!==this.options.cls.indexOf("uk-hidden"),this.on("click",function(e){t.element.is('a[href="#"]')&&e.preventDefault(),t.toggle()}),e.push(this)},toggle:function(){if(this.getToggles(),this.totoggle.length){if(this.options.animation&&t.support.animation){var e=this,i=this.options.animation.split(",");1==i.length&&(i[1]=i[0]),i[0]=i[0].trim(),i[1]=i[1].trim(),this.totoggle.css("animation-duration",this.options.duration+"ms"),this.totoggle.each(function(){var n=t.$(this);n.hasClass(e.options.cls)?(n.toggleClass(e.options.cls),t.Utils.animate(n,i[0]).then(function(){n.css("animation-duration",""),t.Utils.checkDisplay(n)})):t.Utils.animate(this,i[1]+" uk-animation-reverse").then(function(){n.toggleClass(e.options.cls).css("animation-duration",""),t.Utils.checkDisplay(n)})})}else this.totoggle.toggleClass(this.options.cls),t.Utils.checkDisplay(this.totoggle);this.updateAria()}},getToggles:function(){this.totoggle=this.options.target?t.$(this.options.target):[],this.updateAria()},updateAria:function(){this.aria&&this.totoggle.length&&this.totoggle.not("[aria-hidden]").each(function(){t.$(this).attr("aria-hidden",t.$(this).hasClass("uk-hidden"))})}})}(UIkit2),function(t){var e;window.UIkit2&&(e=t(UIkit2)),"function"==typeof define&&define.amd&&define("uikit-accordion",["uikit"],function(){return e||t(UIkit2)})}(function(t){"use strict";function e(e){var i=t.$(e),n="auto";if(i.is(":visible"))n=i.outerHeight();else{var s={position:i.css("position"),visibility:i.css("visibility"),display:i.css("display")};n=i.css({position:"absolute",visibility:"hidden",display:"block"}).outerHeight(),i.css(s)}return n}return t.component("accordion",{defaults:{showfirst:!0,collapse:!0,animate:!0,easing:"swing",duration:300,toggle:".uk-accordion-title",containers:".uk-accordion-content",clsactive:"uk-active"},boot:function(){t.ready(function(e){setTimeout(function(){t.$("[data-uk-accordion]",e).each(function(){var e=t.$(this);e.data("accordion")||t.accordion(e,t.Utils.options(e.attr("data-uk-accordion")))})},0)})},init:function(){var e=this;this.element.on("click.uk.accordion",this.options.toggle,function(i){i.preventDefault(),e.toggleItem(t.$(this).data("wrapper"),e.options.animate,e.options.collapse)}),this.update(!0),t.domObserve(this.element,function(t){e.element.children(e.options.containers).length&&e.update()})},toggleItem:function(i,n,s){var o=this;i.data("toggle").toggleClass(this.options.clsactive),i.data("content").toggleClass(this.options.clsactive);var a=i.data("toggle").hasClass(this.options.clsactive);s&&(this.toggle.not(i.data("toggle")).removeClass(this.options.clsactive),this.content.not(i.data("content")).removeClass(this.options.clsactive).parent().stop().css("overflow","hidden").animate({height:0},{easing:this.options.easing,duration:n?this.options.duration:0}).attr("aria-expanded","false")),i.stop().css("overflow","hidden"),n?i.animate({height:a?e(i.data("content")):0},{easing:this.options.easing,duration:this.options.duration,complete:function(){a&&(i.css({overflow:"",height:"auto"}),t.Utils.checkDisplay(i.data("content"))),o.trigger("display.uk.check")}}):(i.height(a?"auto":0),a&&(i.css({overflow:""}),t.Utils.checkDisplay(i.data("content"))),this.trigger("display.uk.check")),i.attr("aria-expanded",a),this.element.trigger("toggle.uk.accordion",[a,i.data("toggle"),i.data("content")])},update:function(e){var i,n,s,o=this;this.toggle=this.find(this.options.toggle),this.content=this.find(this.options.containers),this.content.each(function(e){(i=t.$(this)).parent().data("wrapper")?n=i.parent():(n=t.$(this).wrap('<div data-wrapper="true" style="overflow:hidden;height:0;position:relative;"></div>').parent()).attr("aria-expanded","false"),s=o.toggle.eq(e),n.data("toggle",s),n.data("content",i),s.data("wrapper",n),i.data("wrapper",n)}),this.element.trigger("update.uk.accordion",[this]),e&&this.options.showfirst&&this.toggleItem(this.toggle.eq(0).data("wrapper"),!1,!1)}}),t.accordion}),function(t){"use strict";t.component("tab",{defaults:{target:">li:not(.uk-tab-responsive, .uk-disabled)",connect:!1,active:0,animation:!1,duration:200,swiping:!0},boot:function(){t.ready(function(e){t.$("[data-uk-tab]",e).each(function(){var e=t.$(this);if(!e.data("tab"))t.tab(e,t.Utils.options(e.attr("data-uk-tab")))})})},init:function(){var e=this;this.current=!1,this.on("click.uk.tab",this.options.target,function(i){if(i.preventDefault(),!e.switcher||!e.switcher.animating){var n=e.find(e.options.target).not(this);n.removeClass("uk-active").blur(),e.trigger("change.uk.tab",[t.$(this).addClass("uk-active"),e.current]),e.current=t.$(this),e.options.connect||(n.attr("aria-expanded","false"),t.$(this).attr("aria-expanded","true"))}}),this.options.connect&&(this.connect=t.$(this.options.connect)),this.responsivetab=t.$('<li class="uk-tab-responsive uk-active"><a></a></li>').append('<div class="uk-dropdown uk-dropdown-small"><ul class="uk-nav uk-nav-dropdown"></ul><div>'),this.responsivetab.dropdown=this.responsivetab.find(".uk-dropdown"),this.responsivetab.lst=this.responsivetab.dropdown.find("ul"),this.responsivetab.caption=this.responsivetab.find("a:first"),this.element.hasClass("uk-tab-bottom")&&this.responsivetab.dropdown.addClass("uk-dropdown-up"),this.responsivetab.lst.on("click.uk.tab","a",function(i){i.preventDefault(),i.stopPropagation();var n=t.$(this);e.element.children("li:not(.uk-tab-responsive)").eq(n.data("index")).trigger("click")}),this.on("show.uk.switcher change.uk.tab",function(t,i){e.responsivetab.caption.html(i.text())}),this.element.append(this.responsivetab),this.options.connect&&(this.switcher=t.switcher(this.element,{toggle:">li:not(.uk-tab-responsive)",connect:this.options.connect,active:this.options.active,animation:this.options.animation,duration:this.options.duration,swiping:this.options.swiping})),t.dropdown(this.responsivetab,{mode:"click",preventflip:"y"}),e.trigger("change.uk.tab",[this.element.find(this.options.target).not(".uk-tab-responsive").filter(".uk-active")]),this.check(),t.$win.on("resize orientationchange",t.Utils.debounce(function(){e.element.is(":visible")&&e.check()},100)),this.on("display.uk.check",function(){e.element.is(":visible")&&e.check()})},check:function(){var e=this.element.children("li:not(.uk-tab-responsive)").removeClass("uk-hidden");if(e.length){var i,n,s=e.eq(0).offset().top+Math.ceil(e.eq(0).height()/2),o=!1;if(this.responsivetab.lst.empty(),e.each(function(){t.$(this).offset().top>s&&(o=!0)}),o)for(var a=0;a<e.length;a++)(i=t.$(e.eq(a))).find("a"),"none"==i.css("float")||i.attr("uk-dropdown")||(i.hasClass("uk-disabled")||((n=t.$(i[0].outerHTML)).find("a").data("index",a),this.responsivetab.lst.append(n)),i.addClass("uk-hidden"));this.responsivetab[this.responsivetab.lst.children("li").length?"removeClass":"addClass"]("uk-hidden")}else this.responsivetab.addClass("uk-hidden")}})}(UIkit2),function(t){"use strict";var e,i=!1,n={x:{"bottom-left":"bottom-right","bottom-right":"bottom-left","bottom-center":"bottom-center","top-left":"top-right","top-right":"top-left","top-center":"top-center","left-top":"right-top","left-bottom":"right-bottom","left-center":"right-center","right-top":"left-top","right-bottom":"left-bottom","right-center":"left-center"},y:{"bottom-left":"top-left","bottom-right":"top-right","bottom-center":"top-center","top-left":"bottom-left","top-right":"bottom-right","top-center":"bottom-center","left-top":"left-bottom","left-bottom":"left-top","left-center":"left-center","right-top":"right-bottom","right-bottom":"right-top","right-center":"right-center"},xy:{"bottom-left":"top-right","bottom-right":"top-left","bottom-center":"top-center","top-left":"bottom-right","top-right":"bottom-left","top-center":"bottom-center","left-top":"right-bottom","left-bottom":"right-top","left-center":"right-center","right-top":"left-bottom","right-bottom":"left-top","right-center":"left-center"}};function s(e,i,n,s){if(e=t.$(e),i=t.$(i),n=n||window.innerWidth,s=s||e.offset(),i.length){var o=i.outerWidth();if(e.css("min-width",o),"right"==t.langdirection){var a=n-(i.offset().left+o),r=n-(e.offset().left+e.outerWidth());e.css("margin-right",a-r)}else e.css("margin-left",i.offset().left-s.left)}}t.component("dropdown",{defaults:{mode:"hover",pos:"bottom-left",offset:0,remaintime:800,justify:!1,boundary:t.$win,delay:0,dropdownSelector:".uk-dropdown,.uk-dropdown-blank",hoverDelayIdle:250,preventflip:!1},remainIdle:!1,boot:function(){var e=t.support.touch?"click":"mouseenter";t.$html.on(e+".dropdown.uikit focus pointerdown","[data-uk-dropdown]",function(i){var n=t.$(this);if(!n.data("dropdown")){var s=t.dropdown(n,t.Utils.options(n.attr("data-uk-dropdown")));("click"==i.type||"mouseenter"==i.type&&"hover"==s.options.mode)&&s.element.trigger(e),s.dropdown.length&&i.preventDefault()}})},init:function(){var n=this;this.dropdown=this.find(this.options.dropdownSelector),this.offsetParent=this.dropdown.parents().filter(function(){return-1!==t.$.inArray(t.$(this).css("position"),["relative","fixed","absolute"])}).slice(0,1),this.offsetParent.length||(this.offsetParent=this.element),this.centered=this.dropdown.hasClass("uk-dropdown-center"),this.justified=!!this.options.justify&&t.$(this.options.justify),this.boundary=t.$(this.options.boundary),this.boundary.length||(this.boundary=t.$win),this.dropdown.hasClass("uk-dropdown-up")&&(this.options.pos="top-left"),this.dropdown.hasClass("uk-dropdown-flip")&&(this.options.pos=this.options.pos.replace("left","right")),this.dropdown.hasClass("uk-dropdown-center")&&(this.options.pos=this.options.pos.replace(/(left|right)/,"center")),this.element.attr("aria-haspopup","true"),this.element.attr("aria-expanded",this.element.hasClass("uk-open")),this.dropdown.attr("aria-hidden","true"),"click"==this.options.mode||t.support.touch?this.on("click.uk.dropdown",function(e){var i=t.$(e.target);i.parents(n.options.dropdownSelector).length||((i.is("a[href='#']")||i.parent().is("a[href='#']")||n.dropdown.length&&!n.dropdown.is(":visible"))&&e.preventDefault(),i.blur()),n.element.hasClass("uk-open")?(!n.dropdown.find(e.target).length||i.is(".uk-dropdown-close")||i.parents(".uk-dropdown-close").length)&&n.hide():n.show()}):this.on("mouseenter",function(t){n.trigger("pointerenter.uk.dropdown",[n]),n.remainIdle&&clearTimeout(n.remainIdle),e&&clearTimeout(e),i&&i==n||(e=i&&i!=n?setTimeout(function(){e=setTimeout(n.show.bind(n),n.options.delay)},n.options.hoverDelayIdle):setTimeout(n.show.bind(n),n.options.delay))}).on("mouseleave",function(){e&&clearTimeout(e),n.remainIdle=setTimeout(function(){i&&i==n&&n.hide()},n.options.remaintime),n.trigger("pointerleave.uk.dropdown",[n])}).on("click",function(e){var s=t.$(e.target);n.remainIdle&&clearTimeout(n.remainIdle),i&&i==n?(!n.dropdown.find(e.target).length||s.is(".uk-dropdown-close")||s.parents(".uk-dropdown-close").length)&&n.hide():((s.is("a[href='#']")||s.parent().is("a[href='#']"))&&e.preventDefault(),n.show())})},show:function(){t.$html.off("click.outer.dropdown"),i&&i!=this&&i.hide(!0),e&&clearTimeout(e),this.trigger("beforeshow.uk.dropdown",[this]),this.checkDimensions(),this.element.addClass("uk-open"),this.element.attr("aria-expanded","true"),this.dropdown.attr("aria-hidden","false"),this.trigger("show.uk.dropdown",[this]),t.Utils.checkDisplay(this.dropdown,!0),t.Utils.focus(this.dropdown),i=this,this.registerOuterClick()},hide:function(t){this.trigger("beforehide.uk.dropdown",[this,t]),this.element.removeClass("uk-open"),this.remainIdle&&clearTimeout(this.remainIdle),this.remainIdle=!1,this.element.attr("aria-expanded","false"),this.dropdown.attr("aria-hidden","true"),this.trigger("hide.uk.dropdown",[this,t]),i==this&&(i=!1)},registerOuterClick:function(){var n=this;t.$html.off("click.outer.dropdown"),setTimeout(function(){t.$html.on("click.outer.dropdown",function(s){e&&clearTimeout(e);t.$(s.target);i!=n||n.element.find(s.target).length||(n.hide(!0),t.$html.off("click.outer.dropdown"))})},10)},checkDimensions:function(){if(this.dropdown.length){this.dropdown.removeClass("uk-dropdown-top uk-dropdown-bottom uk-dropdown-left uk-dropdown-right uk-dropdown-stack uk-dropdown-autoflip").css({topLeft:"",left:"",marginLeft:"",marginRight:""}),this.justified&&this.justified.length&&this.dropdown.css("min-width","");var e,i=t.$.extend({},this.offsetParent.offset(),{width:this.offsetParent[0].offsetWidth,height:this.offsetParent[0].offsetHeight}),o=this.options.offset,a=this.dropdown,r=(a.show().offset(),a.outerWidth()),l=a.outerHeight(),c=this.boundary.width(),d=(this.boundary[0]!==window&&this.boundary.offset()&&this.boundary.offset(),this.options.pos),u={"bottom-left":{top:0+i.height+o,left:0},"bottom-right":{top:0+i.height+o,left:0+i.width-r},"bottom-center":{top:0+i.height+o,left:0+i.width/2-r/2},"top-left":{top:0-l-o,left:0},"top-right":{top:0-l-o,left:0+i.width-r},"top-center":{top:0-l-o,left:0+i.width/2-r/2},"left-top":{top:0,left:0-r-o},"left-bottom":{top:0+i.height-l,left:0-r-o},"left-center":{top:0+i.height/2-l/2,left:0-r-o},"right-top":{top:0,left:0+i.width+o},"right-bottom":{top:0+i.height-l,left:0+i.width+o},"right-center":{top:0+i.height/2-l/2,left:0+i.width+o}},p={};if(e=d.split("-"),p=u[d]?u[d]:u["bottom-left"],this.justified&&this.justified.length)s(a.css({left:0}),this.justified,c);else if(!0!==this.options.preventflip){var h;switch(this.checkBoundary(i.left+p.left,i.top+p.top,r,l,c)){case"x":"x"!==this.options.preventflip&&(h=n.x[d]||"right-top");break;case"y":"y"!==this.options.preventflip&&(h=n.y[d]||"top-left");break;case"xy":this.options.preventflip||(h=n.xy[d]||"right-bottom")}h&&(e=h.split("-"),p=u[h]?u[h]:u["bottom-left"],a.addClass("uk-dropdown-autoflip"),this.checkBoundary(i.left+p.left,i.top+p.top,r,l,c)&&(e=d.split("-"),p=u[d]?u[d]:u["bottom-left"]))}r>c&&(a.addClass("uk-dropdown-stack"),this.trigger("stack.uk.dropdown",[this])),a.css(p).css("display","").addClass("uk-dropdown-"+e[0])}},checkBoundary:function(e,i,n,s,o){var a="";return(e<0||e-t.$win.scrollLeft()+n>o)&&(a+="x"),(i-t.$win.scrollTop()<0||i-t.$win.scrollTop()+s>window.innerHeight)&&(a+="y"),a}}),t.component("dropdownOverlay",{defaults:{justify:!1,cls:"",duration:200},boot:function(){t.ready(function(e){t.$("[data-uk-dropdown-overlay]",e).each(function(){var e=t.$(this);e.data("dropdownOverlay")||t.dropdownOverlay(e,t.Utils.options(e.attr("data-uk-dropdown-overlay")))})})},init:function(){var e=this;this.justified=!!this.options.justify&&t.$(this.options.justify),this.overlay=this.element.find("uk-dropdown-overlay"),this.overlay.length||(this.overlay=t.$('<div class="uk-dropdown-overlay"></div>').appendTo(this.element)),this.overlay.addClass(this.options.cls),this.on({"beforeshow.uk.dropdown":function(t,i){e.dropdown=i,e.justified&&e.justified.length&&s(e.overlay.css({display:"block",marginLeft:"",marginRight:""}),e.justified,e.justified.outerWidth())},"show.uk.dropdown":function(i,n){var s=e.dropdown.dropdown.outerHeight(!0);e.dropdown.element.removeClass("uk-open"),e.overlay.stop().css("display","block").animate({height:s},e.options.duration,function(){e.dropdown.dropdown.css("visibility",""),e.dropdown.element.addClass("uk-open"),t.Utils.checkDisplay(e.dropdown.dropdown,!0)}),e.pointerleave=!1},"hide.uk.dropdown":function(){e.overlay.stop().animate({height:0},e.options.duration)},"pointerenter.uk.dropdown":function(t,i){clearTimeout(e.remainIdle)},"pointerleave.uk.dropdown":function(t,i){e.pointerleave=!0}}),this.overlay.on({mouseenter:function(){e.remainIdle&&(clearTimeout(e.dropdown.remainIdle),clearTimeout(e.remainIdle))},mouseleave:function(){e.pointerleave&&i&&(e.remainIdle=setTimeout(function(){i&&i.hide()},i.options.remaintime))}})}})}(UIkit2);