var showNotice,adminMenu,columns,validateForm,screenMeta;!function(F,R){var e,n,_=F(document),L=F(R),V=F(document.body);function t(){_.trigger("wp-window-resized")}adminMenu={init:function(){},fold:function(){},restoreMenuState:function(){},toggle:function(){},favorites:function(){}},columns={init:function(){var t=this;F(".hide-column-tog","#adv-settings").click(function(){var e=F(this),n=e.val();e.prop("checked")?t.checked(n):t.unchecked(n),columns.saveManageColumnsState()})},saveManageColumnsState:function(){var e=this.hidden();F.post(ajaxurl,{action:"hidden-columns",hidden:e,screenoptionnonce:F("#screenoptionnonce").val(),page:pagenow})},checked:function(e){F(".column-"+e).removeClass("hidden"),this.colSpanChange(1)},unchecked:function(e){F(".column-"+e).addClass("hidden"),this.colSpanChange(-1)},hidden:function(){return F(".manage-column[id]").filter(":hidden").map(function(){return this.id}).get().join(",")},useCheckboxesForHidden:function(){this.hidden=function(){return F(".hide-column-tog").not(":checked").map(function(){var e=this.id;return e.substring(e,e.length-5)}).get().join(",")}},colSpanChange:function(e){var n=F("table").find(".colspanchange");n.length&&(e=parseInt(n.attr("colspan"),10)+e,n.attr("colspan",e.toString()))}},_.ready(function(){columns.init()}),validateForm=function(e){return!F(e).find(".form-required").filter(function(){return""===F("input:visible",this).val()}).addClass("form-invalid").find("input:visible").change(function(){F(this).closest(".form-invalid").removeClass("form-invalid")}).length},showNotice={warn:function(){var e=commonL10n.warnDelete||"";return!!confirm(e)},note:function(e){alert(e)}},screenMeta={element:null,toggles:null,page:null,init:function(){this.element=F("#screen-meta"),this.toggles=F("#screen-meta-links").find(".show-settings"),this.page=F("#wpcontent"),this.toggles.click(this.toggleEvent)},toggleEvent:function(){var e=F("#"+F(this).attr("aria-controls"));e.length&&(e.is(":visible")?screenMeta.close(e,F(this)):screenMeta.open(e,F(this)))},open:function(e,n){F("#screen-meta-links").find(".screen-meta-toggle").not(n.parent()).css("visibility","hidden"),e.parent().show(),e.slideDown("fast",function(){e.focus(),n.addClass("screen-meta-active").attr("aria-expanded",!0)}),_.trigger("screen:options:open")},close:function(e,n){e.slideUp("fast",function(){n.removeClass("screen-meta-active").attr("aria-expanded",!1),F(".screen-meta-toggle").css("visibility",""),e.parent().hide()}),_.trigger("screen:options:close")}},F(".contextual-help-tabs").delegate("a","click",function(e){var n=F(this);if(e.preventDefault(),n.is(".active a"))return!1;F(".contextual-help-tabs .active").removeClass("active"),n.parent("li").addClass("active"),n=F(n.attr("href")),F(".help-tab-content").not(n).removeClass("active").hide(),n.addClass("active").show()}),_.ready(function(){var t,i,o,s,e,n,a,r,c,l=!1,d=F("input.current-page"),u=d.val(),p=/iPhone|iPad|iPod/.test(navigator.userAgent),f=-1!==navigator.userAgent.indexOf("Android"),h=F(document.documentElement).hasClass("ie8"),m=F("#adminmenuwrap"),v=F("#wpwrap"),w=F("#adminmenu"),g=F("#wp-responsive-overlay"),b=F("#wp-toolbar"),C=b.find('a[aria-haspopup="true"]'),k=F(".meta-box-sortables"),x=!1,y=F("#wpadminbar"),S=0,M=!1,E=!1,T=0,D=!1,W={window:L.height(),wpwrap:v.height(),adminbar:y.height(),menu:m.height()};function A(){var e=F("a.wp-has-current-submenu"),n=R.innerWidth?Math.max(R.innerWidth,document.documentElement.clientWidth):961;V.hasClass("folded")||V.hasClass("auto-fold")&&n&&n<=960&&782'),t=commonL10n.dismiss||"";e.find(".screen-reader-text").text(t),e.on("click.wp-dismiss-notice",function(e){e.preventDefault(),n.fadeTo(100,0,function(){n.slideUp(100,function(){n.remove()})})}),n.append(e)})}function j(){r.prop("disabled",""===c.map(function(){return F(this).val()}).get().join(""))}function K(e){var n=L.scrollTop(),e=!e||"scroll"!==e.type;if(!(p||h||w.data("wp-responsive")))if(W.menu+W.adminbarW.wpwrap)N();else{if(D=!0,W.menu+W.adminbar>W.window){if(n<0)return void(M||(E=!(M=!0),m.css({position:"fixed",top:"",bottom:""})));if(n+W.window>_.height()-1)return void(E||(M=!(E=!0),m.css({position:"fixed",top:"",bottom:0})));Sn+W.window&&(T=n),m.css({position:"absolute",top:T,bottom:""})):!M&&m.offset().top>=n+W.adminbar&&(M=!0,m.css({position:"fixed",top:"",bottom:""})):e&&(M=E=!1,0<(T=n+W.window-W.menu-W.adminbar-1)?m.css({position:"absolute",top:T,bottom:""}):N())}S=n}}function z(){W={window:L.height(),wpwrap:v.height(),adminbar:y.height(),menu:m.height()}}function N(){!p&&D&&(M=E=D=!1,m.css({position:"",top:"",bottom:""}))}function O(){z(),w.data("wp-responsive")?(V.removeClass("sticky-menu"),N()):W.menu+W.adminbar>W.window?(K(),V.removeClass("sticky-menu")):(V.addClass("sticky-menu"),N())}function P(){F(".aria-button-if-js").attr("role","button")}w.on("click.wp-submenu-head",".wp-submenu-head",function(e){F(e.target).parent().siblings("a").get(0).click()}),F("#collapse-menu").on("click.collapse-menu",function(){var e;F("#adminmenu div.wp-submenu").css("margin-top",""),e=(e=R.innerWidth?Math.max(R.innerWidth,document.documentElement.clientWidth):961)&&e<960?V.hasClass("auto-fold")?(V.removeClass("auto-fold").removeClass("folded"),setUserSetting("unfold",1),setUserSetting("mfold","o"),"open"):(V.addClass("auto-fold"),setUserSetting("unfold",0),"folded"):V.hasClass("folded")?(V.removeClass("folded"),setUserSetting("mfold","o"),"open"):(V.addClass("folded"),setUserSetting("mfold","f"),"folded"),A(),_.trigger("wp-collapse-menu",{state:e})}),_.on("wp-window-resized wp-responsive-activate wp-responsive-deactivate",A),("ontouchstart"in R||/IEMobile\/[1-9]/.test(navigator.userAgent))&&(e=p?"touchstart":"click",V.on(e+".wp-mobile-hover",function(e){w.data("wp-responsive")||F(e.target).closest("#adminmenu").length||w.find("li.opensub").removeClass("opensub")}),w.find("a.wp-has-submenu").on(e+".wp-mobile-hover",function(e){var n=F(this).parent();w.data("wp-responsive")||n.hasClass("opensub")||n.hasClass("wp-menu-open")&&!(n.width()<40)||(e.preventDefault(),I(n),w.find("li.opensub").removeClass("opensub"),n.addClass("opensub"))})),p||f||(w.find("li.wp-has-submenu").hoverIntent({over:function(){var e=F(this),n=e.find(".wp-submenu"),n=parseInt(n.css("top"),10);isNaN(n)||-5 a",function(e){w.data("wp-responsive")&&(F(this).parent("li").toggleClass("selected"),e.preventDefault())}),e.trigger(),_.on("wp-window-resized.wp-responsive",F.proxy(this.trigger,this)),L.on("load.wp-responsive",function(){(-1').insertAfter("#wpcontent").hide().on("click.wp-responsive",function(){b.find(".menupop.hover").removeClass("hover"),F(this).hide()})),C.on("click.wp-responsive",function(){g.show()})},disableOverlay:function(){C.off("click.wp-responsive"),g.hide()},disableSortables:function(){if(k.length)try{k.sortable("disable")}catch(e){}},enableSortables:function(){if(k.length)try{k.sortable("enable")}catch(e){}}},F(document).ajaxComplete(function(){P()}),R.wpResponsive.init(),O(),A(),U(),P(),_.on("wp-pin-menu wp-window-resized.pin-menu postboxes-columnchange.pin-menu postbox-toggled.pin-menu wp-collapse-menu.pin-menu wp-scroll-start.pin-menu",O),F(".wp-initial-focus").focus()}),L.on("resize.wp-fire-once",function(){R.clearTimeout(e),e=R.setTimeout(t,200)}),"-ms-user-select"in document.documentElement.style&&navigator.userAgent.match(/IEMobile\/10\.0/)&&((n=document.createElement("style")).appendChild(document.createTextNode("@-ms-viewport{width:auto!important}")),document.getElementsByTagName("head")[0].appendChild(n))}(jQuery,window);