jQuery(function(t){var n=t(location).attr("pathname").split("/").pop(),i="edit-tags.php"===n?"slug":"post_name",e=t(".wrap").children().eq(0),a=0,o=[];function r(n){o.includes(n)||(o.push(n),t(n).insertAfter(e))}function u(){t.post(ajaxurl,{action:"yoast_get_notifications",version:2},function(t){""!==t&&(a=0,JSON.parse(t).map(r)),a<20&&""===t&&(a++,setTimeout(u,500))})}function p(){var n=t("tr.inline-editor"),e=function(t){return 0===t.length||""===t?"":t.attr("id").replace("edit-","")}(n),a=function(n){return t("#inline_"+n).find("."+i).html()}(e);return a!==n.find("input[name="+i+"]").val()}["edit.php","edit-tags.php"].includes(n)&&(t("#inline-edit input").on("keydown",function(t){13===t.which&&p()&&u()}),t(".button-primary").on("click",function(n){"save-order"!==t(n.target).attr("id")&&p()&&u()})),"edit-tags.php"===n&&t(document).on("ajaxComplete",function(t,n,i){i.data.indexOf("action=delete-tag")>-1&&u()})}(jQuery));