!function(e){"function"==typeof define&&define.amd?jQueryCookie.define(["jquery"],e):e(jQuery)}(function(p){var r=/\+/g;function h(e){return e}function x(e){return decodeURIComponent(e.replace(r," "))}function g(e){0===e.indexOf('"')&&(e=e.slice(1,-1).replace(/\\"/g,'"').replace(/\\\\/g,"\\"));try{return v.json?JSON.parse(e):e}catch(e){}}var v=p.cookie=function(e,r,t){if(void 0!==r){if("number"==typeof(t=p.extend({},v.defaults,t)).expires){var i=t.expires,a=t.expires=new Date;a.setDate(a.getDate()+i)}return r=v.json?JSON.stringify(r):String(r),document.cookie=[v.raw?e:encodeURIComponent(e),"=",v.raw?r:encodeURIComponent(r),t.expires?"; expires="+t.expires.toUTCString():"",t.path?"; path="+t.path:"",t.domain?"; domain="+t.domain:"",t.secure?"; secure":""].join("")}for(var n=v.raw?h:x,s=document.cookie.split("; "),d=e?void 0:{},o=0,u=s.length;o=n.captureLength&&t.toUpperCase()!=e.text||r&&t.length>=n.captureLength)&&(e.text=t.toUpperCase(),e.cb.call(e.el,t))},r)})}}return this.each(function(){r(this)})}}(jQuery),function(s){s.fn.serializeForm=function(){if(this.length<1)return!1;var a={},n=a,e=':input[type!="checkbox"][type!="radio"], input:checked',r=function(){if(!this.disabled){var e=this.name.replace(/\[([^\]]+)?\]/g,",$1").split(","),r=e.length-1,t=s(this);if(e[0]){for(var i=0;ir.max&&i.val("")}(this,e)}),this};var e,r,u={allow:"",disallow:"",allowSpace:!0,allowNumeric:!0,allowUpper:!0,allowLower:!0,allowCaseless:!0,allowLatin:!0,allowOtherCharSets:!0,maxLength:NaN},i={allowPlus:!1,allowMinus:!0,allowThouSep:!0,allowDecSep:!0,allowLeadingSpaces:!1,maxDigits:NaN,maxDecimalPlaces:NaN,maxPreDecimalPlaces:NaN,max:NaN,min:NaN},l={alpha:{allowNumeric:!1},upper:{allowNumeric:!1,allowUpper:!0,allowLower:!1,allowCaseless:!0},lower:{allowNumeric:!1,allowUpper:!1,allowLower:!0,allowCaseless:!0}},a={integer:{allowPlus:!1,allowMinus:!0,allowThouSep:!1,allowDecSep:!1},positiveInteger:{allowPlus:!1,allowMinus:!1,allowThouSep:!1,allowDecSep:!1}},c="!@#$%^&*()+=[]\\';,/{}|\":<>?~`.-_ ¬€£¦",d=",",f=".",v=function(){var e,r="0123456789".split(""),t={},i=0;for(i=0;is.max))&&(i=e+r,!(a=t).min||0=n.maxLength||!(0<=n.allow.indexOf(a)||n.allowSpace&&" "==a)&&(n.blacklistSet.contains(a)||!n.allowNumeric&&v[a]||!n.allowUpper&&(d=(s=a).toUpperCase(),o=s.toLowerCase(),s==d&&d!=o)||!n.allowLower&&(l=(u=a).toUpperCase(),c=u.toLowerCase(),u==c&&l!=c)||!n.allowCaseless&&(f=a).toUpperCase()==f.toLowerCase()||!n.allowLatin&&m.contains(a)||!(n.allowOtherCharSets||v[a]||m.contains(a)))||h.push(t)}return h.join("")}function _(e,r){if("string"!=typeof e)return e;var t,i=e.split(""),a=[],n=0;for(n=0;nt.right||r.bottomt.bottom)}},x.redux.hideFields(),x.redux.checkRequired(),x.redux.initEvents(),x.redux.initQtip(),x.redux.tabCheck(),x.redux.notices(),x.redux.tabControl()}),x.redux.ajax_save=function(e){var t=x(document.getElementById("redux_ajax_overlay"));t.fadeIn(),jQuery(".redux-action_bar .spinner").addClass("is-active"),jQuery(".redux-action_bar input").attr("disabled","disabled");var i=jQuery(document.getElementById("redux_notification_bar"));i.slideUp(),jQuery(".redux-save-warn").slideUp(),jQuery(".redux_ajax_save_error").slideUp("medium",function(){jQuery(this).remove()});var r=jQuery(document.getElementById("redux-form-wrapper"));redux.fields.hasOwnProperty("editor")&&x.each(redux.fields.editor,function(e,r){if("undefined"!=typeof tinyMCE){var t=tinyMCE.get(e);t&&t.save()}});var a=r.serialize();r.find("input[type=checkbox]").each(function(){if(void 0!==x(this).attr("name")){var e=x(this).is(":checked")?x(this).val():"0";a+="&"+x(this).attr("name")+"="+e}}),"redux_save"!=e.attr("name")&&(a+="&"+e.attr("name")+"="+e.val());var n=r.attr("data-nonce");return jQuery.ajax({type:"post",dataType:"json",url:ajaxurl,data:{action:redux.args.opt_name+"_ajax_save",nonce:n,opt_name:redux.args.opt_name,data:a},error:function(e){window.console||(console={}),console.log=console.log||function(e,r){},console.log(redux.ajax.console),console.log(e.responseText),jQuery(".redux-action_bar input").removeAttr("disabled"),t.fadeOut("fast"),jQuery(".redux-action_bar .spinner").removeClass("is-active"),alert(redux.ajax.alert)},success:function(e){if(e.action&&"reload"==e.action)location.reload(!0);else if("success"==e.status){jQuery(".redux-action_bar input").removeAttr("disabled"),t.fadeOut("fast"),jQuery(".redux-action_bar .spinner").removeClass("is-active"),redux.options=e.options,redux.errors=e.errors,redux.warnings=e.warnings,i.html(e.notification_bar).slideDown("fast"),null===e.errors&&null===e.warnings||x.redux.notices();var r=x(document.getElementById("redux_notification_bar")).find(".saved_notice");r.slideDown(),r.delay(4e3).slideUp()}else jQuery(".redux-action_bar input").removeAttr("disabled"),jQuery(".redux-action_bar .spinner").removeClass("is-active"),t.fadeOut("fast"),jQuery(".wrap h2:first").parent().append('"),jQuery(".redux_ajax_save_error").slideDown(),jQuery("html, body").animate({scrollTop:0},"slow")}}),!1},x.redux.initEvents=function(){x(".redux-presets-bar").on("click",function(){window.onbeforeunload=null}),x("#toplevel_page_"+redux.args.slug+" .wp-submenu a, #wp-admin-bar-"+redux.args.slug+" a.ab-item").click(function(e){if((x("#toplevel_page_"+redux.args.slug).hasClass("wp-menu-open")||x(this).hasClass("ab-item"))&&!x(this).parents("ul.ab-submenu:first").hasClass("ab-sub-secondary")&&0<=x(this).attr("href").toLowerCase().indexOf(redux.args.slug+"&tab=")){e.preventDefault();var r=x(this).attr("href").split("&tab=");return x("#"+r[1]+"_section_group_li_a").click(),x(this).parents("ul:first").find(".current").removeClass("current"),x(this).addClass("current"),x(this).parent().addClass("current"),!1}}),x(".redux-action_bar input, #redux-import-action input").on("click",function(e){if(x(this).attr("name")==redux.args.opt_name+"[defaults]"){if(!confirm(redux.args.reset_confirm))return!1}else if(x(this).attr("name")==redux.args.opt_name+"[defaults-section]"){if(!confirm(redux.args.reset_section_confirm))return!1}else if("import"==x(this).attr("name")&&!confirm(redux.args.import_section_confirm))return!1;!(window.onbeforeunload=null)===redux.args.ajax_save?(x.redux.ajax_save(x(this)),e.preventDefault()):location.reload(!0)}),x(".expand_options").click(function(e){e.preventDefault();var r=x(".redux-container");if(x(r).hasClass("fully-expanded")){x(r).removeClass("fully-expanded");var t=x.cookie("redux_current_tab");x(".redux-container:first").find("#"+t+"_section_group").fadeIn(200,function(){0!==x(".redux-container:first").find("#redux-footer").length&&x.redux.stickyInfo(),x.redux.initFields()})}return x.redux.expandOptions(x(this).parents(".redux-container:first")),!1}),x(".saved_notice").is(":visible")&&x(".saved_notice").slideDown(),x(document.body).on("change",".redux-field input, .redux-field textarea, .redux-field select",function(){x(this).hasClass("noUpdate")||redux_change(x(this))});var e=x("#redux-footer").height();x("#redux-sticky-padder").css({height:e}),x("#redux-footer-sticky").removeClass("hide"),0!==x("#redux-footer").length&&(x(window).scroll(function(){x.redux.stickyInfo()}),x(window).resize(function(){x.redux.stickyInfo()})),x(".saved_notice").delay(4e3).slideUp()},x.redux.hideFields=function(){x("label[for='redux_hide_field']").each(function(e,r){var t=x(this).parent().parent();x(t).addClass("hidden")})},x.redux.checkRequired=function(){x.redux.required(),x("body").on("change",".redux-main select, .redux-main radio, .redux-main input[type=checkbox], .redux-main input[type=hidden]",function(e){x.redux.check_dependencies(this)}),x("body").on("check_dependencies",function(e,r){x.redux.check_dependencies(r)}),x(".redux-container td > fieldset:empty,td > div:empty").parent().parent().hide()},x.redux.initQtip=function(){if(x().qtip){var e="";!0===redux.args.hints.tip_style.shadow&&(e="qtip-shadow");var r="",t=redux.args.hints.tip_style.color;""!==t&&(r="qtip-"+t);var i="";!0===redux.args.hints.tip_style.rounded&&(i="qtip-rounded");var a="",n=redux.args.hints.tip_style.style;""!==n&&(a="qtip-"+n);var s=e+","+r+","+i+","+a+",redux-qtip";s=s.replace(/,/g," ");var d=redux.args.hints.tip_position.my,o=redux.args.hints.tip_position.at;d=x.redux.verifyPos(d.toLowerCase(),!0),o=x.redux.verifyPos(o.toLowerCase(),!1);var u=redux.args.hints.tip_effect.show.event,l=redux.args.hints.tip_effect.hide.event,c=redux.args.hints.tip_effect.show.effect,f=redux.args.hints.tip_effect.show.duration,p=redux.args.hints.tip_effect.hide.effect,h=redux.args.hints.tip_effect.hide.duration;x("div.redux-dev-qtip").each(function(){x(this).qtip({content:{text:x(this).attr("qtip-content"),title:x(this).attr("qtip-title")},show:{effect:function(){x(this).slideDown(500)},event:"mouseover"},hide:{effect:function(){x(this).slideUp(500)},event:"mouseleave"},style:{classes:"qtip-shadow qtip-light"},position:{my:"top center",at:"bottom center"}})}),x("div.redux-hint-qtip").each(function(){x(this).qtip({content:{text:x(this).attr("qtip-content"),title:x(this).attr("qtip-title")},show:{effect:function(){switch(c){case"slide":x(this).slideDown(f);break;case"fade":x(this).fadeIn(f);break;default:x(this).show()}},event:u},hide:{effect:function(){switch(p){case"slide":x(this).slideUp(h);break;case"fade":x(this).fadeOut(h);break;default:x(this).hide(h)}},event:l},style:{classes:s},position:{my:d,at:o}})}),x("input[qtip-content]").each(function(){x(this).qtip({content:{text:x(this).attr("qtip-content"),title:x(this).attr("qtip-title")},show:"focus",hide:"blur",style:s,position:{my:d,at:o}})})}},x.redux.tabCheck=function(){if(x(".redux-group-tab-link-a").click(function(){var e=x(this);if(e.parent().hasClass("empty_section")&&e.parent().hasClass("hasSubSections")){var r=x(this).closest("ul").find(".redux-group-tab-link-a"),t=r.index(this);e=r.slice(t+1,t+2)}var i=e.parents(".redux-container:first"),a=e.data("rel"),n=i.find(".redux-group-tab-link-li.active:first .redux-group-tab-link-a").data("rel");if(n!==a){if(x("#currentSection").val(a),e.parents(".postbox-container:first").length||x.cookie("redux_current_tab",a,{expires:7,path:"/"}),i.find("#"+a+"_section_group_li").parents(".redux-group-tab-link-li").length){var s=i.find("#"+a+"_section_group_li").parents(".redux-group-tab-link-li").attr("id").split("_");s=s[0]}if(i.find("#toplevel_page_"+redux.args.slug+" .wp-submenu a.current").removeClass("current"),i.find("#toplevel_page_"+redux.args.slug+" .wp-submenu li.current").removeClass("current"),i.find("#toplevel_page_"+redux.args.slug+" .wp-submenu a").each(function(){var e=x(this).attr("href").split("&tab=");e[1]!=a&&e[1]!=s||(x(this).addClass("current"),x(this).parent().addClass("current"))}),i.find("#"+n+"_section_group_li").find("#"+n+"_section_group_li").length)i.find("#"+n+"_section_group_li").addClass("activeChild"),i.find("#"+a+"_section_group_li").addClass("active").removeClass("activeChild");else if(i.find("#"+a+"_section_group_li").parents("#"+n+"_section_group_li").length||i.find("#"+n+"_section_group_li").parents("ul.subsection").find("#"+a+"_section_group_li").length)i.find("#"+a+"_section_group_li").parents("#"+n+"_section_group_li").length?i.find("#"+n+"_section_group_li").addClass("activeChild").removeClass("active"):(i.find("#"+a+"_section_group_li").addClass("active"),i.find("#"+n+"_section_group_li").removeClass("active")),i.find("#"+a+"_section_group_li").removeClass("activeChild").addClass("active");else if(i.find("#"+a+"_section_group_li").addClass("active").removeClass("activeChild").find("ul.subsection").slideDown(),i.find("#"+n+"_section_group_li").find("ul.subsection").length){i.find("#"+n+"_section_group_li").find("ul.subsection").slideUp("fast",function(){i.find("#"+n+"_section_group_li").removeClass("active").removeClass("activeChild")});var d=i.find("#"+a+"_section_group_li").parents(".hasSubSections:first");0'+r.msg+""):x("#"+redux.args.opt_name+"-"+r.id).parent().find(".redux-th-error").html(r.msg).css("display","block")})}),x(".redux-container").each(function(){var i=x(this);i.find(".redux-menu-error").remove();var e=i.find(".redux-field-error").length;0'+e+""),i.find('.redux-group-tab-link-a[data-key="'+r+'"]').addClass("hasError");var t=i.find('.redux-group-tab-link-a[data-key="'+r+'"]').parents(".hasSubSections:first");t&&t.find(".redux-group-tab-link-a:first").addClass("hasError")}}))})),redux.warnings&&redux.warnings.warnings&&(x.each(redux.warnings.warnings,function(e,r){x.each(r.warnings,function(e,r){x("#"+redux.args.opt_name+"-"+r.id).addClass("redux-field-warning"),0===x("#"+redux.args.opt_name+"-"+r.id).parent().find(".redux-th-warning").length?x("#"+redux.args.opt_name+"-"+r.id).append('
'+r.msg+"
"):x("#"+redux.args.opt_name+"-"+r.id).parent().find(".redux-th-warning").html(r.msg).css("display","block")})}),x(".redux-container").each(function(){var i=x(this);i.find(".redux-menu-warning").remove();var e=i.find(".redux-field-warning").length;0'+e+""),i.find('.redux-group-tab-link-a[data-key="'+r+'"]').addClass("hasWarning");var t=i.find('.redux-group-tab-link-a[data-key="'+r+'"]').parents(".hasSubSections:first");t&&t.find(".redux-group-tab-link-a:first").addClass("hasWarning")}}))}))},x.redux.tabControl=function(){x(".redux-section-tabs div").hide(),x(".redux-section-tabs div:first").show(),x(".redux-section-tabs ul li:first").addClass("active"),x(".redux-section-tabs ul li a").click(function(){x(".redux-section-tabs ul li").removeClass("active"),x(this).parent().addClass("active");var e=x(this).attr("href");return x(".redux-section-tabs div").hide(),x(e).fadeIn("medium",function(){x.redux.initFields()}),!1})},x.redux.required=function(){x.each(redux.folds,function(e,r){var t=x("#"+redux.args.opt_name+"-"+e);if(t.parents("tr:first").addClass("fold"),"hide"==r){if(t.parents("tr:first").addClass("hide"),t.hasClass("redux-container-section")){var i=x("#section-"+e);i.hasClass("redux-section-indent-start")&&(x("#section-table-"+e).hide().addClass("hide"),i.hide().addClass("hide"))}if(t.hasClass("redux-container-info")&&x("#info-"+e).hide().addClass("hide"),t.hasClass("redux-container-divide")&&x("#divide-"+e).hide().addClass("hide"),t.hasClass("redux-container-raw"))t.parents().find("table#"+redux.args.opt_name+"-"+e).hide().addClass("hide")}})},x.redux.get_container_value=function(e){var r=x("#"+redux.args.opt_name+"-"+e).serializeForm();return null!==r&&"object"==typeof r&&r.hasOwnProperty(redux.args.opt_name)&&(r=r[redux.args.opt_name][e]),x("#"+redux.args.opt_name+"-"+e).hasClass("redux-container-media")&&(r=r.url),r},x.redux.check_dependencies=function(e){if(null!==redux.required){var r=x(e),t=r.parents(".redux-field:first").data("id");if(redux.required.hasOwnProperty(t)){var i=r.parents(".redux-field-container:first"),d=i.parents("tr:first").hasClass("hide");i.parents("tr:first").length||(d=i.parents(".customize-control:first").hasClass("hide")),x.each(redux.required[t],function(e,r){var t=x(this),i=!1,a=x("#"+redux.args.opt_name+"-"+e),n=a.parents("tr:first");if(d||(i=x.redux.check_parents_dependencies(e)),!0===i){if(a.hasClass("redux-container-section")){var s=x("#section-"+e);s.hasClass("redux-section-indent-start")&&s.hasClass("hide")&&(x("#section-table-"+e).fadeIn(300).removeClass("hide"),s.fadeIn(300).removeClass("hide"))}if(a.hasClass("redux-container-info")&&x("#info-"+e).fadeIn(300).removeClass("hide"),a.hasClass("redux-container-divide")&&x("#divide-"+e).fadeIn(300).removeClass("hide"),a.hasClass("redux-container-raw"))a.parents().find("table#"+redux.args.opt_name+"-"+e).fadeIn(300).removeClass("hide");n.fadeIn(300,function(){x(this).removeClass("hide"),redux.required.hasOwnProperty(e)&&x.redux.check_dependencies(x("#"+redux.args.opt_name+"-"+e).children().first()),x.redux.initFields()}),(a.hasClass("redux-container-section")||a.hasClass("redux-container-info"))&&n.css({display:"none"})}else!1===i&&n.fadeOut(100,function(){x(this).addClass("hide"),redux.required.hasOwnProperty(e)&&x.redux.required_recursive_hide(e)});t.find("select, radio, input[type=checkbox]").trigger("change")})}}},x.redux.required_recursive_hide=function(r){x("#"+redux.args.opt_name+"-"+r).parents("tr:first").fadeOut(50,function(){if(x(this).addClass("hide"),x("#"+redux.args.opt_name+"-"+r).hasClass("redux-container-section")){var e=x("#section-"+r);e.hasClass("redux-section-indent-start")&&(x("#section-table-"+r).fadeOut(50).addClass("hide"),e.fadeOut(50).addClass("hide"))}(x("#"+redux.args.opt_name+"-"+r).hasClass("redux-container-info")&&x("#info-"+r).fadeOut(50).addClass("hide"),x("#"+redux.args.opt_name+"-"+r).hasClass("redux-container-divide")&&x("#divide-"+r).fadeOut(50).addClass("hide"),x("#"+redux.args.opt_name+"-"+r).hasClass("redux-container-raw"))&&x("#"+redux.args.opt_name+"-"+r).parents().find("table#"+redux.args.opt_name+"-"+r).fadeOut(50).addClass("hide");redux.required.hasOwnProperty(r)&&x.each(redux.required[r],function(e){x.redux.required_recursive_hide(e)})})},x.redux.check_parents_dependencies=function(e){var i="";return redux.required_child.hasOwnProperty(e)?x.each(redux.required_child[e],function(e,r){if(x("#"+redux.args.opt_name+"-"+r.parent).parents("tr:first").hasClass("hide"))i=!1;else if(!1!==i){var t=x.redux.get_container_value(r.parent);i=x.redux.check_dependencies_visibility(t,r)}}):i=!0,i},x.redux.check_dependencies_visibility=function(t,e){var r,d=!1,i=e.checkValue,a=e.operation;switch(x.isPlainObject(t)&&(t=Object.keys(t).map(function(e){return[e,t[e]]})),a){case"=":case"equals":x.isArray(t)?x(t[0]).each(function(e,t){if(x.isArray(i))x(i).each(function(e,r){if(t==r)return d=!0});else if(t==i)return d=!0}):x.isArray(i)?x(i).each(function(e,r){t==r&&(d=!0)}):t==i&&(d=!0);break;case"!=":case"not":x.isArray(t)?x(t[0]).each(function(e,t){if(x.isArray(i))x(i).each(function(e,r){if(t!=r)return d=!0});else if(t!=i)return d=!0}):x.isArray(i)?x(i).each(function(e,r){t!=r&&(d=!0)}):t!=i&&(d=!0);break;case">":case"greater":case"is_larger":parseFloat(t)>parseFloat(i)&&(d=!0);break;case">=":case"greater_equal":case"is_larger_equal":parseFloat(t)>=parseFloat(i)&&(d=!0);break;case"<":case"less":case"is_smaller":parseFloat(t)'),x("#redux-header")):(x("#customize-theme-controls ul").first().prepend('
  • '),x("#redux_rAds"))).css("position","relative"),e.find(".rAds").attr("style","position:absolute; top: 6px; right: 9px; display:block !important;overflow:hidden;").css("left","-99999px"),e.find(".rAds").html(redux.rAds.replace(//,""));var r=e.find(".rAds");x(r).hide(),r.bind("DOMSubtreeModified",function(){0<=x(this).html().indexOf("