(()=>{var e={5245(e){var t,n,r="",o=function(e){e=e||"polite";var t=document.createElement("div");return t.id="a11y-speak-"+e,t.className="a11y-speak-region",t.setAttribute("style","clip: rect(1px, 1px, 1px, 1px); position: absolute; height: 1px; width: 1px; overflow: hidden; word-wrap: normal;"),t.setAttribute("aria-live",e),t.setAttribute("aria-relevant","additions text"),t.setAttribute("aria-atomic","true"),document.querySelector("body").appendChild(t),t};!function(e){if("complete"===document.readyState||"loading"!==document.readyState&&!document.documentElement.doScroll)return e();document.addEventListener("DOMContentLoaded",e)}(function(){t=document.getElementById("a11y-speak-polite"),n=document.getElementById("a11y-speak-assertive"),null===t&&(t=o("polite")),null===n&&(n=o("assertive"))}),e.exports=function(e,o){!function(){for(var e=document.querySelectorAll(".a11y-speak-region"),t=0;t<e.length;t++)e[t].textContent=""}(),e=e.replace(/<[^<>]+>/g," "),r===e&&(e+=" "),r=e,n&&"assertive"===o?n.textContent=e:t&&(t.textContent=e)}}},t={};function n(r){var o=t[r];if(void 0!==o)return o.exports;var i=t[r]={exports:{}};return e[r](i,i.exports,n),i.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{"use strict";function e(t){return e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e(t)}function t(t){var n=function(t){if("object"!=e(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!=e(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==e(n)?n:n+""}function r(e,n){for(var r=0;r<n.length;r++){var o=n[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,t(o.key),o)}}const o=window.jQuery;var i=n.n(o),a=n(5245),s=n.n(a),l=yoastReindexLinksData.data,u=!1,c=function(){return e=function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.element=i()("#wpseo_count_index_links"),this.progressbarTarget=i()("#wpseo_index_links_progressbar").progressbar({value:0}),this.total=parseInt(t,10),this.totalProcessed=0},(t=[{key:"update",value:function(e){this.totalProcessed+=e;var t=this.totalProcessed*(100/this.total);this.progressbarTarget.progressbar("value",Math.round(t)),this.element.html(this.totalProcessed)}},{key:"complete",value:function(){this.progressbarTarget.progressbar("value",100)}}])&&r(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t}();function p(e,t){i().ajax({type:"GET",url:l.restApi.root+l.restApi.endpoint,beforeSend:function(e){e.setRequestHeader("X-WP-Nonce",l.restApi.nonce)},success:function(n){var r=parseInt(n,10);if(0!==r)return e.update(r),void p(e,t);e.complete(),t()}})}function d(){return new Promise(function(e){p(new c(l.amount),e)})}function f(){u=!0,s()(l.l10n.calculationCompleted),i()("#reindexLinks").html(l.message.indexingCompleted),tb_remove()}function m(){i()("#general-tab").trigger("click"),!1===u&&i()("#openLinkIndexing").trigger("click")}i()(function(){var e=!1;i()(".yoast-js-calculate-index-links--all ").on("click",function(){!1===e&&(function(){s()(l.l10n.calculationInProgress);var e=[];e.push(d()),Promise.all(e).then(f)}(),e=!0)}),i()("#noticeRunLinkIndex").on("click",m),-1!==window.location.href.indexOf("&reIndexLinks=1")&&i()(m)})})()})();