0xV3NOMx
Linux ip-172-26-7-228 5.4.0-1103-aws #111~18.04.1-Ubuntu SMP Tue May 23 20:04:10 UTC 2023 x86_64



Your IP : 18.118.28.31


Current Path : /var/www/website/nublr/assets/css/images/wp-content/plugins/wordpress-seo/js/dist/
Upload File :
Current File : /var/www/website/nublr/assets/css/images/wp-content/plugins/wordpress-seo/js/dist/post-edit.js

!function(e){var t={};function n(s){if(t[s])return t[s].exports;var i=t[s]={i:s,l:!1,exports:{}};return e[s].call(i.exports,i,i.exports,n),i.l=!0,i.exports}n.m=e,n.c=t,n.d=function(e,t,s){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:s})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var s=Object.create(null);if(n.r(s),Object.defineProperty(s,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(s,i,function(t){return e[t]}.bind(null,i));return s},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=289)}([function(e,t){e.exports=window.wp.element},function(e,t){e.exports=window.wp.i18n},function(e,t){e.exports=window.yoast.propTypes},,function(e,t){e.exports=window.lodash},,function(e,t){e.exports=window.wp.data},,function(e,t){e.exports=window.yoast.styledComponents},,,function(e,t){function n(){return e.exports=n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(e[s]=n[s])}return e},e.exports.__esModule=!0,e.exports.default=e.exports,n.apply(this,arguments)}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t){e.exports=window.yoast.analysis},function(e,t){e.exports=window.wp.components},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var s=n(4);function i(){return Object(s.get)(window,"wpseoScriptData.metabox",{intl:{},isRtl:!1})}},function(e,t){e.exports=window.wp.compose},,function(e,t){e.exports=window.yoast.externals.redux},function(e,t){e.exports=window.jQuery},,,function(e,t){e.exports=window.wp.url},,,function(e,t,n){"use strict";var s=n(4),i={source:"wpseoScriptData.analysis.plugins.replaceVars",scope:[],aliases:[]},r=function(e,t,n){this.placeholder=e,this.replacement=t,this.options=Object(s.defaults)(n,i)};r.prototype.getPlaceholder=function(e){return(e=e||!1)&&this.hasAlias()?this.placeholder+"|"+this.getAliases().join("|"):this.placeholder},r.prototype.setSource=function(e){this.options.source=e},r.prototype.hasScope=function(){return!Object(s.isEmpty)(this.options.scope)},r.prototype.addScope=function(e){this.hasScope()||(this.options.scope=[]),this.options.scope.push(e)},r.prototype.inScope=function(e){return!this.hasScope()||Object(s.indexOf)(this.options.scope,e)>-1},r.prototype.hasAlias=function(){return!Object(s.isEmpty)(this.options.aliases)},r.prototype.addAlias=function(e){this.hasAlias()||(this.options.aliases=[]),this.options.aliases.push(e)},r.prototype.getAliases=function(){return this.options.aliases},t.a=r},,,function(e,t){e.exports=window.wp.apiFetch},,,,,,,,,,,,function(e,t,n){"use strict";n.r(t),n.d(t,"tmceId",(function(){return c})),n.d(t,"termsTmceId",(function(){return l})),n.d(t,"setStore",(function(){return p})),n.d(t,"isTinyMCELoaded",(function(){return d})),n.d(t,"isTinyMCEAvailable",(function(){return u})),n.d(t,"getContentTinyMce",(function(){return h})),n.d(t,"addEventHandler",(function(){return g})),n.d(t,"disableMarkerButtons",(function(){return f})),n.d(t,"enableMarkerButtons",(function(){return m})),n.d(t,"pauseMarkers",(function(){return b})),n.d(t,"resumeMarkers",(function(){return y})),n.d(t,"isTextViewActive",(function(){return w})),n.d(t,"wpTextViewOnInitCheck",(function(){return _})),n.d(t,"tinyMceEventBinder",(function(){return v}));var s=n(4),i=n(92),r=n(141),o=n(17);let a;var c="content",l="description";function p(e){a=e}function d(){return"undefined"!=typeof tinyMCE&&void 0!==tinyMCE.editors&&0!==tinyMCE.editors.length}function u(e){if(!d())return!1;var t=tinyMCE.get(e);return null!==t&&!t.isHidden()}function h(e){var t,n,s;return n=!1===u(e)||0==(t=e,null!==document.getElementById(t+"_ifr"))?function(e){return document.getElementById(e)&&document.getElementById(e).value||""}(e):tinyMCE.get(e).getContent(),s=new RegExp("&amp;","g"),n.replace(s,"&")}function g(e,t,n){"undefined"!=typeof tinyMCE&&"function"==typeof tinyMCE.on&&tinyMCE.on("addEditor",(function(i){var r=i.editor;r.id===e&&Object(s.forEach)(t,(function(e){r.on(e,n)}))}))}function f(){Object(s.isUndefined)(a)||a.dispatch(o.actions.setMarkerStatus("disabled"))}function m(){Object(s.isUndefined)(a)||a.dispatch(o.actions.setMarkerStatus("enabled"))}function b(){Object(s.isUndefined)(a)||a.dispatch(o.actions.setMarkerPauseStatus(!0))}function y(){Object(s.isUndefined)(a)||a.dispatch(o.actions.setMarkerPauseStatus(!1))}function w(){const e=document.getElementById("wp-content-wrap");return!!e&&e.classList.contains("html-active")}function _(){w()&&(f(),d()&&tinyMCE.on("AddEditor",(function(){m()})))}function v(e,t){g(t,["input","change","cut","paste"],e),g(t,["hide"],f);const n=["show"];(new r.a).isPageBuilderActive()||n.push("init"),g(t,n,m),g("content",["focus"],(function(e){const t=e.target;Object(i.a)(t)&&(Object(i.b)(t),YoastSEO.app.disableMarkers()),b()})),g("content",["blur"],(function(){y()}))}},,function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var s=n(1),i=n(12),r=n(4);function o(e){return Object(r.isNil)(e)||(e/=10),function(e){switch(e){case"feedback":return{className:"na",screenReaderText:Object(s.__)("Feedback","wordpress-seo"),screenReaderReadabilityText:"",screenReaderInclusiveLanguageText:""};case"bad":return{className:"bad",screenReaderText:Object(s.__)("Needs improvement","wordpress-seo"),screenReaderReadabilityText:Object(s.__)("Needs improvement","wordpress-seo"),screenReaderInclusiveLanguageText:Object(s.__)("Needs improvement","wordpress-seo")};case"ok":return{className:"ok",screenReaderText:Object(s.__)("OK SEO score","wordpress-seo"),screenReaderReadabilityText:Object(s.__)("OK","wordpress-seo"),screenReaderInclusiveLanguageText:Object(s.__)("Potentially non-inclusive","wordpress-seo")};case"good":return{className:"good",screenReaderText:Object(s.__)("Good SEO score","wordpress-seo"),screenReaderReadabilityText:Object(s.__)("Good","wordpress-seo"),screenReaderInclusiveLanguageText:Object(s.__)("Good","wordpress-seo")};default:return{className:"loading",screenReaderText:"",screenReaderReadabilityText:"",screenReaderInclusiveLanguageText:""}}}(i.interpreters.scoreToRating(e))}},,,,function(e,t){e.exports=window.wp.hooks},function(e,t){e.exports=window.yoast.components},,function(e,t,n){"use strict";n.d(t,"b",(function(){return a})),n.d(t,"c",(function(){return c})),n.d(t,"d",(function(){return l})),n.d(t,"e",(function(){return p})),n.d(t,"a",(function(){return d}));var s=n(6),i=n(118);let r=null;const o=()=>{if(null===r){const e=Object(s.dispatch)("yoast-seo/editor").runAnalysis;r=new i.a(e)}return r},a=e=>o()._ready(e),c=e=>o()._reloaded(e),l=(e,t,n,s)=>o()._registerModification(e,t,n,s),p=(e,t)=>o()._registerPlugin(e,t),d=(e,t,n)=>o().loaded?o()._applyModifications(e,t,n):t},,,,,function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var s=n(14),i=n(4);function r(){const e=Object(s.a)();return 1===Object(i.get)(e,"keywordAnalysisActive",0)}},,function(e,t,n){"use strict";function s(){}n.d(t,"a",(function(){return s}))},,,,,,,function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var s=n(4),i=n(14);function r(){const e=Object(i.a)();return Object(s.get)(e,"contentLocale","en_US")}},,,function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var s=n(14),i=n(4);function r(){const e=Object(s.a)();return 1===Object(i.get)(e,"contentAnalysisActive",0)}},function(e,t,n){"use strict";n.r(t),n.d(t,"sortResultsByIdentifier",(function(){return l})),n.d(t,"default",(function(){return p})),n.d(t,"initializationDone",(function(){return d}));var s=n(45),i=n(17),r=n(12),o=n(55),a=n(46);let c=!1;function l(e){return e.sort((e,t)=>e._identifier.localeCompare(t._identifier))}function p(e,t,n,p,d){if(!c)return;const u=r.Paper.parse(t());e.analyze(u).then(r=>{const{result:{seo:o,readability:c,inclusiveLanguage:h}}=r;if(o){const e=o[""];e.results.forEach(e=>{e.getMarker=()=>()=>n(u,e.marks)}),e.results=l(e.results),p.dispatch(i.actions.setSeoResultsForKeyword(u.getKeyword(),e.results)),p.dispatch(Object(a.setOverallSeoScore)(e.score,u.getKeyword())),p.dispatch(i.actions.refreshSnippetEditor()),d.saveScores(e.score,u.getKeyword())}c&&(c.results.forEach(e=>{e.getMarker=()=>()=>n(u,e.marks)}),c.results=l(c.results),p.dispatch(i.actions.setReadabilityResults(c.results)),p.dispatch(Object(a.setOverallReadabilityScore)(c.score)),p.dispatch(i.actions.refreshSnippetEditor()),d.saveContentScore(c.score)),h&&(h.results.forEach(e=>{e.getMarker=()=>()=>n(u,e.marks)}),h.results=l(h.results),p.dispatch(i.actions.setInclusiveLanguageResults(h.results)),p.dispatch(Object(a.setOverallInclusiveLanguageScore)(h.score)),p.dispatch(i.actions.refreshSnippetEditor()),d.saveInclusiveLanguageScore(h.score)),Object(s.doAction)("yoast.analysis.refresh",r,{paper:u,worker:e,collectData:t,applyMarks:n,store:p,dataCollector:d})}).catch(o.a)}function d(){c=!0}},function(e,t){e.exports=window.wp.richText},,function(e,t){e.exports=window.yoast.featureFlag},,function(e,t){e.exports=window.wp.domReady},,,,,,,,,,,,,,,function(e,t,n){"use strict";function s(e){jQuery("#wp-admin-bar-wpseo-menu .wpseo-score-icon").attr("title",e.screenReaderText).attr("class","wpseo-score-icon "+e.className).find(".wpseo-score-text").text(e.screenReaderText)}n.d(t,"a",(function(){return s}))},function(e,t,n){"use strict";function s(){return window.wpseoScriptData&&"1"===window.wpseoScriptData.isBlockEditor}n.d(t,"a",(function(){return s}))},,,function(e,t){var n,s,i="",r=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(){n=document.getElementById("a11y-speak-polite"),s=document.getElementById("a11y-speak-assertive"),null===n&&(n=r("polite")),null===s&&(s=r("assertive"))})),e.exports=function(e,t){!function(){for(var e=document.querySelectorAll(".a11y-speak-region"),t=0;t<e.length;t++)e[t].textContent=""}(),e=e.replace(/<[^<>]+>/g," "),i===e&&(e+=" "),i=e,s&&"assertive"===t?s.textContent=e:n&&(n.textContent=e)}},function(e,t,n){"use strict";n.r(t),n.d(t,"refreshDelay",(function(){return s}));const s=500},function(e,t,n){"use strict";n.d(t,"c",(function(){return o})),n.d(t,"a",(function(){return a})),n.d(t,"b",(function(){return c}));var s=n(12),i=n(4);function r(e,t,n){const r=e.dom;let o=e.getContent();o=s.markers.removeMarks(o);const{fieldsToMark:a,selectedHTML:c}=s.languageProcessing.getFieldsToMark(n,o);Object(i.forEach)(n,(function(t){"acf_content"!==e.id&&(t._properties.marked=s.languageProcessing.normalizeHTML(t._properties.marked),t._properties.original=s.languageProcessing.normalizeHTML(t._properties.original)),a.length>0?c.forEach(e=>{const n=t.applyWithReplace(e);o=o.replace(e,n)}):o=t.applyWithReplace(o)})),e.setContent(o),function(e){var t=e.getContent();t=t.replace(new RegExp("&lt;yoastmark.+?&gt;","g"),"").replace(new RegExp("&lt;/yoastmark&gt;","g"),""),e.setContent(t)}(e);const l=r.select("yoastmark");Object(i.forEach)(l,(function(e){e.setAttribute("data-mce-bogus","1")}))}function o(e){return window.test=e,r.bind(null,e)}function a(e){return-1!==e.getContent({format:"raw"}).indexOf("<yoastmark")}function c(e){o(e)(null,[])}},function(e,t,n){"use strict";function s(e){var t=jQuery(".yst-traffic-light"),n=t.closest(".wpseo-meta-section-link"),s=jQuery("#wpseo-traffic-light-desc"),i=e.className||"na";t.attr("class","yst-traffic-light "+i),n.attr("aria-describedby","wpseo-traffic-light-desc"),s.length>0?s.text(e.screenReaderText):n.closest("li").append("<span id='wpseo-traffic-light-desc' class='screen-reader-text'>"+e.screenReaderText+"</span>")}n.d(t,"a",(function(){return s}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return u})),n.d(t,"b",(function(){return h}));var s=n(4),i=n(12),r=n(62);function o(){return Object(s.get)(window,["wpseoAdminL10n","default_query_params"],{})}var a=n(119),c=n(65),l=n(53),p=n(113),d=n(69);function u(){const e=Object(s.get)(window,["wpseoScriptData","analysis","worker","url"],"analysis-worker.js"),t=Object(i.createWorker)(e),n=Object(s.get)(window,["wpseoScriptData","analysis","worker","dependencies"],[]),r=[];for(const e in n){if(!Object.prototype.hasOwnProperty.call(n,e))continue;const t=window.document.getElementById(e+"-js-translations");if(!t)continue;const s=t.innerHTML.slice(214),i=s.indexOf(","),o=s.slice(0,i-1);try{const e=JSON.parse(s.slice(i+1,-4));r.push([o,e])}catch(t){console.warn(`Failed to parse translation data for ${e} to send to the Yoast SEO worker`);continue}}return t.postMessage({dependencies:n,translations:r}),new i.AnalysisWorkerWrapper(t)}function h(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t={locale:Object(r.a)(),contentAnalysisActive:Object(c.a)(),keywordAnalysisActive:Object(l.a)(),inclusiveLanguageAnalysisActive:Object(p.a)(),defaultQueryParams:o(),logLevel:Object(s.get)(window,["wpseoScriptData","analysis","worker","log_level"],"ERROR"),enabledFeatures:Object(d.enabledFeatures)()};t=Object(s.merge)(t,e);const n=Object(a.a)();return Object(s.isUndefined)(n)||Object(s.isUndefined)(n.domain)||(t.translations=n),t}},,,,function(e,t,n){"use strict";function s(e){let t=document.getElementById("yoast-measurement-element");return t||(t=function(){const e=document.createElement("div");return e.id="yoast-measurement-element",e.style.position="absolute",e.style.left="-9999em",e.style.top=0,e.style.height=0,e.style.overflow="hidden",e.style.fontFamily="arial, sans-serif",e.style.fontSize="20px",e.style.fontWeight="400",document.body.appendChild(e),e}()),t.innerText=e,t.offsetWidth}n.d(t,"a",(function(){return s}))},,function(e,t){e.exports=window.wp.blocks},,function(e,t,n){"use strict";n.r(t),n.d(t,"updateScore",(function(){return o})),n.d(t,"createScoresInPublishBox",(function(){return a})),n.d(t,"scrollToCollapsible",(function(){return c})),n.d(t,"initialize",(function(){return l}));var s=n(4),i=jQuery;function r(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return null!==n?Object(s.get)(n,t,""):Object(s.get)(wpseoScriptData,`metabox.publish_box.labels.${e}.${t}`,"")}function o(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;var s=i("#"+e+"-score"),o="image yoast-logo svg "+t;s.children(".image").attr("class",o);var a=r(e,t,n);s.children(".score-text").html(a)}function a(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;const s=i("<div />",{class:"misc-pub-section yoast yoast-seo-score "+e+"-score",id:e+"-score"}),o=i("<span />",{class:"score-text",html:r(e,t,n)}),a=i("<span>").attr("class","image yoast-logo svg na");s.append(a).append(o),i("#yoast-seo-publishbox-section").append(s)}function c(e){const t=i("#wpadminbar"),n=i(e);if(!t||!n)return;const s="fixed"===t.css("position")?t.height():0;i([document.documentElement,document.body]).animate({scrollTop:n.offset().top-s},1e3),n.trigger("focus"),0===n.parent().siblings().length&&n.trigger("click")}function l(){wpseoScriptData.metabox.keywordAnalysisActive&&a("keyword","na"),wpseoScriptData.metabox.contentAnalysisActive&&a("content","na"),wpseoScriptData.metabox.inclusiveLanguageAnalysisActive&&a("inclusive-language","na"),i("#content-score").on("click","[href='#yoast-readability-analysis-collapsible-metabox']",(function(e){e.preventDefault(),document.querySelector("#wpseo-meta-tab-readability").click(),c("#wpseo-meta-section-readability")})),i("#keyword-score").on("click","[href='#yoast-seo-analysis-collapsible-metabox']",(function(e){e.preventDefault(),document.querySelector("#wpseo-meta-tab-content").click(),c("#yoast-seo-analysis-collapsible-metabox")})),i("#inclusive-language-score").on("click","[href='#yoast-inclusive-language-analysis-collapsible-metabox']",(function(e){e.preventDefault(),document.querySelector("#wpseo-meta-tab-inclusive-language").click(),c("#wpseo-meta-section-inclusive-language")}))}},,,,,,,,function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var s=n(4);const i=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return()=>t.map(e=>e())};t.b=(e,t)=>{let n=e();return()=>{const i=e();Object(s.isEqual)(i,n)||(n=i,t(Object(s.clone)(i)))}}},,,function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var s=n(14),i=n(4);function r(){const e=Object(s.a)();return 1===Object(i.get)(e,"inclusiveLanguageAnalysisActive",0)}},,,,function(e,t,n){"use strict";var s=n(4);t.a={getDataFromCollector:function(e){return{title:e.getSnippetTitle(),slug:e.getSnippetCite(),description:e.getSnippetMeta()}},getDataFromStore:function(e){const t=e.getState().snippetEditor.data;return{title:t.title,slug:t.slug,description:t.description}},getTemplatesFromL10n:function(e){const t={};if(Object(s.isUndefined)(e))return t;t.title=e.title_template;const n=e.metadesc_template;return Object(s.isEmpty)(n)||(t.description=n),t},getDataWithTemplates:function(e,t){const n={...e};return Object(s.forEach)(t,(t,i)=>{Object(s.has)(e,i)&&""===e[i]&&(n[i]=t)}),n},getDataWithoutTemplates:function(e,t){const n={...e};return Object(s.forEach)(t,(t,i)=>{Object(s.has)(e,i)&&e[i].trim()===t&&(n[i]="")}),n}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var s=n(4);class i{constructor(e){this.refresh=e,this.loaded=!1,this.preloadThreshold=3e3,this.plugins={},this.modifications={},this._registerPlugin=this._registerPlugin.bind(this),this._ready=this._ready.bind(this),this._reloaded=this._reloaded.bind(this),this._registerModification=this._registerModification.bind(this),this._registerAssessment=this._registerAssessment.bind(this),this._applyModifications=this._applyModifications.bind(this),setTimeout(this._pollLoadingPlugins.bind(this),1500)}_registerPlugin(e,t){return Object(s.isString)(e)?Object(s.isUndefined)(t)||Object(s.isObject)(t)?!1===this._validateUniqueness(e)?(console.error("Failed to register plugin. Plugin with name "+e+" already exists"),!1):(this.plugins[e]=t,!0):(console.error("Failed to register plugin "+e+". Expected parameters `options` to be a object."),!1):(console.error("Failed to register plugin. Expected parameter `pluginName` to be a string."),!1)}_ready(e){return Object(s.isString)(e)?Object(s.isUndefined)(this.plugins[e])?(console.error("Failed to modify status for plugin "+e+". The plugin was not properly registered."),!1):(this.plugins[e].status="ready",!0):(console.error("Failed to modify status for plugin "+e+". Expected parameter `pluginName` to be a string."),!1)}_reloaded(e){return Object(s.isString)(e)?Object(s.isUndefined)(this.plugins[e])?(console.error("Failed to reload Content Analysis for plugin "+e+". The plugin was not properly registered."),!1):(this.refresh(),!0):(console.error("Failed to reload Content Analysis for "+e+". Expected parameter `pluginName` to be a string."),!1)}_registerModification(e,t,n,i){if(!Object(s.isString)(e))return console.error("Failed to register modification for plugin "+n+". Expected parameter `modification` to be a string."),!1;if(!Object(s.isFunction)(t))return console.error("Failed to register modification for plugin "+n+". Expected parameter `callable` to be a function."),!1;if(!Object(s.isString)(n))return console.error("Failed to register modification for plugin "+n+". Expected parameter `pluginName` to be a string."),!1;if(!1===this._validateOrigin(n))return console.error("Failed to register modification for plugin "+n+". The integration has not finished loading yet."),!1;const r={callable:t,origin:n,priority:Object(s.isNumber)(i)?i:10};return Object(s.isUndefined)(this.modifications[e])&&(this.modifications[e]=[]),this.modifications[e].push(r),!0}_registerAssessment(e,t,n,i){return Object(s.isString)(t)?Object(s.isObject)(n)?Object(s.isString)(i)?(t=i+"-"+t,e.addAssessment(t,n),!0):(console.error("Failed to register assessment for plugin "+i+". Expected parameter `pluginName` to be a string."),!1):(console.error("Failed to register assessment for plugin "+i+". Expected parameter `assessment` to be a function."),!1):(console.error("Failed to register test for plugin "+i+". Expected parameter `name` to be a string."),!1)}_applyModifications(e,t,n){let i=this.modifications[e];return!Object(s.isArray)(i)||i.length<1||(i=this._stripIllegalModifications(i),i.sort((e,t)=>e.priority-t.priority),Object(s.forEach)(i,(function(s){const i=s.callable(t,n);typeof i==typeof t?t=i:console.error("Modification with name "+e+" performed by plugin with name "+s.origin+" was ignored because the data that was returned by it was of a different type than the data we had passed it.")}))),t}_pollLoadingPlugins(e){e=Object(s.isUndefined)(e)?0:e,!0===this._allReady()?(this.loaded=!0,this.refresh()):e>=this.preloadThreshold?(this._pollTimeExceeded(),this.loaded=!0,this.refresh()):(e+=50,setTimeout(this._pollLoadingPlugins.bind(this,e),50))}_allReady(){return Object(s.reduce)(this.plugins,(function(e,t){return e&&"ready"===t.status}),!0)}_pollTimeExceeded(){Object(s.forEach)(this.plugins,(function(e,t){Object(s.isUndefined)(e.options)||"ready"===e.options.status||(console.error("Error: Plugin "+t+". did not finish loading in time."),delete this.plugins[t])}))}_stripIllegalModifications(e){return Object(s.forEach)(e,(t,n)=>{!1===this._validateOrigin(t.origin)&&delete e[n]}),e}_validateOrigin(e){return"ready"===this.plugins[e].status}_validateUniqueness(e){return Object(s.isUndefined)(this.plugins[e])}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var s=n(4),i=n(14);function r(){const e=Object(i.a)();return Object(s.get)(e,"translations",{domain:"wordpress-seo",locale_data:{"wordpress-seo":{"":{}}}})}},,function(e,t,n){"use strict";n.d(t,"b",(function(){return u})),n.d(t,"a",(function(){return b})),n.d(t,"c",(function(){return y}));var s=n(4),i=(n(192),n(67)),r=n(6);const o="<yoastmark class='yoast-text-mark'>";let a=[];const c={"core/paragraph":[{key:"content"}],"core/list":[{key:"values",multilineTag:"li",multilineWrapperTag:["ul","ol"]}],"core/list-item":[{key:"content"}],"core/heading":[{key:"content"}],"core/audio":[{key:"caption"}],"core/embed":[{key:"caption"}],"core/gallery":[{key:"caption"}],"core/image":[{key:"caption"}],"core/table":[{key:"caption"}],"core/video":[{key:"caption"}],"yoast/faq-block":[{key:"questions"}],"yoast/how-to-block":[{key:"steps"}]},l={singleH1:{"core/heading":[{key:"content",filter:e=>1===e.level}]}};function p(){const e=a.shift();e&&(Object(r.dispatch)("core/annotations").__experimentalAddAnnotation(e),d())}function d(){Object(s.isFunction)(window.requestIdleCallback)?window.requestIdleCallback(p,{timeout:1e3}):setTimeout(p,150)}function u(){return Object(r.select)("core/block-editor")&&Object(s.isFunction)(Object(r.select)("core/block-editor").getBlocks)&&Object(r.select)("core/annotations")&&Object(s.isFunction)(Object(r.dispatch)("core/annotations").__experimentalAddAnnotation)}function h(e){const t=Object(r.select)("yoast-seo/editor").getActiveMarker(),n=l[t]||c;return n.hasOwnProperty(e)?n[e]:[]}function g(e,t,n,r,a){const c=Object(i.create)({html:e,multilineTag:n.multilineTag,multilineWrapperTag:n.multilineWrapperTag}).text;return Object(s.flatMap)(a,e=>{const n=function(e,t){const n=t.getOriginal().replace(/(<([^>]+)>)/gi,""),s=t.getMarked().replace(/(<(?!\/?yoastmark)[^>]+>)/gi,""),i=function(e,t){let n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];const s=[];if(0===e.length)return s;let i,r=0;for(n||(t=t.toLowerCase(),e=e.toLowerCase());(i=e.indexOf(t,r))>-1;)s.push(i),r=i+t.length;return s}(e,n);if(0===i.length)return[];const r=function(e){let t=e.indexOf(o);const n=t>=0;n||(t=e.indexOf('<yoastmark class="yoast-text-mark">'));let s=null;const i=[];for(;t>=0;){if(s=(e=n?e.replace(o,""):e.replace('<yoastmark class="yoast-text-mark">',"")).indexOf("</yoastmark>"),s<t)return[];e=e.replace("</yoastmark>",""),i.push({startOffset:t,endOffset:s}),t=n?e.indexOf(o):e.indexOf('<yoastmark class="yoast-text-mark">'),s=null}return i}(s),a=[];return r.forEach(e=>{i.forEach(s=>{const i=s+e.startOffset;let r=s+e.endOffset;0===e.startOffset&&e.endOffset===t.getOriginal().length&&(r=s+n.length),a.push({startOffset:i,endOffset:r})})}),a}(c,e);return n?n.map(e=>({...e,block:r.clientId,richTextIdentifier:t})):[]})}function f(e,t,n){const i=e.key,{attributes:r}=t;return e.filter&&!e.filter(r)?[]:"yoast/faq-block"===t.name||"yoast/how-to-block"===t.name?function(e,t,n){const i=t.attributes[e.key];if("yoast/faq-block"===t.name&&0!==i.length){const r=i.map(s=>{const i=s.id+"-question",r=s.id+"-answer",o=g(s.jsonQuestion,i,e,t,n),a=g(s.jsonAnswer,r,e,t,n);return o.concat(a)});return Object(s.flatMap)(r)}if("yoast/how-to-block"===t.name&&0!==i.length){const r=i.map(s=>{const i=s.id+"-name",r=s.id+"-text",o=g(s.jsonName,i,e,t,n),a=g(s.jsonText,r,e,t,n);return o.concat(a)}),o=g(t.attributes.jsonDescription,"description",e,t,n);return Object(s.flatMap)(r.concat(o))}}(e,t,n):g(r[i],i,e,t,n)}function m(e){a=e.map(e=>({blockClientId:e.block,source:"yoast",richTextIdentifier:e.richTextIdentifier,range:{start:e.startOffset,end:e.endOffset}}))}function b(e){a=[],Object(r.dispatch)("core/annotations").__experimentalRemoveAnnotationsBySource("yoast");const t=function(e){return Object(s.uniq)(Object(s.flatten)(e.map(e=>{if(!Object(s.isUndefined)(e.getFieldsToMark()))return e.getFieldsToMark()})))}(e);if(0===e.length)return;let n=Object(r.select)("core/block-editor").getBlocks();t.length>0&&(n=n.filter(e=>t.some(t=>"core/"+t===e.name))),m(function e(t,n){return Object(s.flatMap)(t,t=>{const i=function(e){return e.innerBlocks.length>0}(t)?e(t.innerBlocks,n):[];return function(e,t){return Object(s.flatMap)(h(e.name),n=>f(n,e,t))}(t,n).concat(i)})}(n,e)),d()}function y(){const e=Object(r.select)("core/editor").getSelectedBlock(),t=Object(r.select)("yoast-seo/editor").getActiveMarker();if(!e||!t)return;var n;n=e.clientId,Object(r.select)("core/annotations").__experimentalGetAnnotations().filter(e=>e.blockClientId===n&&"yoast"===e.source).forEach(e=>{Object(r.dispatch)("core/annotations").__experimentalRemoveAnnotation(e.id)});const i=Object(r.select)("yoast-seo/editor").getResultById(t);if(void 0===i)return;const o=i.marks;m(Object(s.flatMap)(h(e.name),t=>f(t,e,o))),d()}},,,,,,function(e,t,n){"use strict";function s(e){let{alertKey:t}=e;return new Promise(e=>wpseoApi.post("alerts/dismiss",{key:t},()=>e()))}n.r(t),n.d(t,"DISMISS_ALERT",(function(){return s}))},,,,,function(e,t,n){"use strict";n.d(t,"a",(function(){return h})),n.d(t,"b",(function(){return g}));var s=n(6),i=n(45),r=n(4),o=n(12),a=n(91),c=n(55),l=n(66),p=n(94),d=n(48);const u=Object(r.debounce)((async function(e,t){const{text:n,...r}=t,a=new o.Paper(n,r);try{const t=await e.analyze(a),{seo:n,readability:r,inclusiveLanguage:o}=t.result;if(n){const e=n[""];e.results=Object(l.sortResultsByIdentifier)(e.results),Object(s.dispatch)("yoast-seo/editor").setSeoResultsForKeyword(a.getKeyword(),e.results),Object(s.dispatch)("yoast-seo/editor").setOverallSeoScore(e.score,a.getKeyword())}r&&(r.results=Object(l.sortResultsByIdentifier)(r.results),Object(s.dispatch)("yoast-seo/editor").setReadabilityResults(r.results),Object(s.dispatch)("yoast-seo/editor").setOverallReadabilityScore(r.score)),o&&(o.results=Object(l.sortResultsByIdentifier)(o.results),Object(s.dispatch)("yoast-seo/editor").setInclusiveLanguageResults(o.results),Object(s.dispatch)("yoast-seo/editor").setOverallInclusiveLanguageScore(o.score)),Object(i.doAction)("yoast.analysis.run",t,{paper:a})}catch(e){Object(c.a)()}}),a.refreshDelay);function h(){const{getAnalysisData:e,getEditorDataTitle:t}=Object(s.select)("yoast-seo/editor");let n=e();n={...n,textTitle:t()};const r=function(e){return e.title=Object(d.a)("data_page_title",e.title),e.title=Object(d.a)("title",e.title),e.description=Object(d.a)("data_meta_desc",e.description),e.text=Object(d.a)("content",e.text),e}(n);return Object(i.applyFilters)("yoast.analysis.data",r)}function g(){const{getAnalysisTimestamp:e,isCornerstoneContent:t}=Object(s.select)("yoast-seo/editor"),n=Object(p.a)();n.initialize(Object(p.b)({useCornerstone:t()})).catch(c.a);let i=h(),o=t(),a=e();return Object(s.subscribe)(()=>{const s=t(),l=h(),p=e();if(s!==o)return o=s,i=l,void n.initialize({useCornerstone:s}).then(()=>u(n,l)).catch(c.a);p===a&&!1!==Object(r.isEqual)(l,i)||(i=l,a=p,u(n,l))}),n}},,,,,,,,function(e,t){e.exports=window.wp.isShallowEqual},function(e,t,n){"use strict";var s=n(4),i=class{static isActive(){return!!document.getElementById("et_pb_main_editor_wrap")}static isTinyMCEHidden(){const e=document.getElementById("et_pb_main_editor_wrap");return!!e&&e.classList.contains("et_pb_hidden")}listen(e){this.classicEditorContainer=document.getElementById("et_pb_main_editor_wrap"),this.classicEditorContainer&&new MutationObserver(t=>{Object(s.forEach)(t,t=>{"attributes"===t.type&&"class"===t.attributeName&&(t.target.classList.contains("et_pb_hidden")?e.classicEditorHidden():e.classicEditorShown())})}).observe(this.classicEditorContainer,{attributes:!0})}};const r={classicEditorHidden:s.noop,classicEditorShown:s.noop,pageBuilderLoaded:s.noop};t.a=class{constructor(){this.determineActivePageBuilders()}determineActivePageBuilders(){i.isActive()&&(this.diviActive=!0),class{static isActive(){return!!window.VCV_I18N}}.isActive()&&(this.vcActive=!0)}isPageBuilderActive(){return this.diviActive||this.vcActive}listen(e){this.callbacks=Object(s.defaults)(e,r),this.diviActive&&(new i).listen(e)}isClassicEditorHidden(){return!(!this.diviActive||!i.isTinyMCEHidden())}}},,,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var s=n(4),i=jQuery;function r(e,t,n,s,r){this._scriptUrl=s,this._options={usedKeywords:t.keyword_usage,usedKeywordsPostTypes:t.keyword_usage_post_types,searchUrl:t.search_url,postUrl:t.post_edit_url},this._keywordUsage=t.keyword_usage,this._usedKeywordsPostTypes=t.keyword_usage_post_types,this._postID=i("#post_ID, [name=tag_ID]").val(),this._taxonomy=i("[name=taxonomy]").val()||"",this._nonce=r,this._ajaxAction=e,this._refreshAnalysis=n,this._initialized=!1}r.prototype.init=function(){const{worker:e}=window.YoastSEO.analysis;this.requestKeywordUsage=Object(s.debounce)(this.requestKeywordUsage.bind(this),500),e.loadScript(this._scriptUrl).then(()=>{e.sendMessage("initialize",this._options,"used-keywords-assessment")}).then(()=>{this._initialized=!0,Object(s.isEqual)(this._options.usedKeywords,this._keywordUsage)?this._refreshAnalysis():e.sendMessage("updateKeywordUsage",this._keywordUsage,"used-keywords-assessment").then(()=>this._refreshAnalysis())}).catch(e=>console.error(e))},r.prototype.setKeyword=function(e){Object(s.has)(this._keywordUsage,e)||this.requestKeywordUsage(e)},r.prototype.requestKeywordUsage=function(e){i.post(ajaxurl,{action:this._ajaxAction,post_id:this._postID,keyword:e,taxonomy:this._taxonomy,nonce:this._nonce},this.updateKeywordUsage.bind(this,e),"json")},r.prototype.updateKeywordUsage=function(e,t){const{worker:n}=window.YoastSEO.analysis,i=t.keyword_usage,r=t.post_types;i&&Object(s.isArray)(i)&&(this._keywordUsage[e]=i,this._usedKeywordsPostTypes[e]=r,this._initialized&&n.sendMessage("updateKeywordUsage",{usedKeywords:this._keywordUsage,usedKeywordsPostTypes:this._usedKeywordsPostTypes},"used-keywords-assessment").then(()=>this._refreshAnalysis()))}},function(e,t,n){"use strict";var s=n(6),i=n(4),r=n(12),o=n(110),a=n(132);t.a=()=>{if(Object(s.select)("yoast-seo/editor").getPreference("isInsightsEnabled",!1))return Object(s.dispatch)("yoast-seo/editor").loadEstimatedReadingTime(),Object(s.subscribe)(Object(i.debounce)((()=>{const{getEditorDataContent:e,getContentLocale:t}=Object(s.select)("yoast-seo/editor"),n=Object(o.a)(e,t),c=(()=>{const{setEstimatedReadingTime:e,setFleschReadingEase:t,setTextLength:n}=Object(s.dispatch)("yoast-seo/editor"),o=Object(i.get)(window,"YoastSEO.analysis.worker.runResearch",i.noop);return()=>{const s=r.Paper.parse(Object(a.a)());o("readingTime",s).then(t=>e(t.result)),o("getFleschReadingScore",s).then(e=>{e.result&&t(e.result)}),o("wordCountInText",s).then(e=>n(e.result))}})();return setTimeout(c,1500),Object(o.b)(n,c)})(),1500,{maxWait:3e3}))}},,function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var s=n(1),i=n(90),r=n.n(i),o=n(4);function a(e){function t(t){var n=!1,s="",i=[],o=["userid","name","user_description"],a=["date"],c=["title","parent_title","excerpt","excerpt_only","caption","focuskw","pt_single","pt_plural","modified","id"],l=["term404","searchphrase"],p=["term_title","term_description"],d=["category","category_description","tag","tag_description"];t.hasClass("posttype-template")?i=i.concat(l,p):t.hasClass("homepage-template")?i=i.concat(o,a,c,l,p,d):t.hasClass("taxonomy-template")?i=i.concat(o,a,c,l):t.hasClass("author-template")?i=i.concat(c,a,l,p,d):t.hasClass("date-template")?i=i.concat(o,c,l,p,d):t.hasClass("search-template")?i=i.concat(o,a,c,p,d,["term404"]):t.hasClass("error404-template")&&(i=i.concat(o,a,c,p,d,["searchphrase"])),e.each(i,(function(i,o){if(s=t.attr("id")+"-"+o+"-warning",-1!==t.val().search("%%"+o+"%%")){t.addClass("wpseo-variable-warning-element");var a=wpseoAdminGlobalL10n.variable_warning.replace("%s","%%"+o+"%%");e("#"+s).length?e("#"+s).html(a):t.after(' <div id="'+s+'" class="wpseo-variable-warning">'+a+"</div>"),r()(wpseoAdminGlobalL10n.variable_warning.replace("%s",o),"assertive"),n=!0}else e("#"+s).length&&e("#"+s).remove()})),!1===n&&t.removeClass("wpseo-variable-warning-element")}function n(){e("#copy-home-meta-description").on("click",(function(){e("#open_graph_frontpage_desc").val(e("#meta_description").val())}))}function i(){var t=e("#wpseo-conf");if(t.length){var n=t.attr("action").split("#")[0];t.attr("action",n+window.location.hash)}}function a(){var t=window.location.hash.replace("#top#","");-1!==t.search("#top")&&(t=window.location.hash.replace("#top%23","")),""!==t&&"#"!==t.charAt(0)||(t=e(".wpseotab").attr("id")),e("#"+t).addClass("active"),e("#"+t+"-tab").addClass("nav-tab-active").trigger("click")}function c(t){const n=e("#noindex-author-noposts-wpseo-container");t?n.show():n.hide()}e.fn._wpseoIsInViewport=function(){const t=e(this).offset().top,n=t+e(this).outerHeight(),s=e(window).scrollTop(),i=s+e(window).height();return t>s&&n<i},e(window).on("hashchange",(function(){a(),i()})),window.wpseoDetectWrongVariables=t,window.setWPOption=function(t,n,s,i){e.post(ajaxurl,{action:"wpseo_set_option",option:t,newval:n,_wpnonce:i},(function(t){t&&e("#"+s).hide()}))},window.wpseoCopyHomeMeta=n,window.wpseoSetTabHash=i,e(document).ready((function(){i(),"function"==typeof window.wpseoRedirectOldFeaturesTabToNewSettings&&window.wpseoRedirectOldFeaturesTabToNewSettings(),e("#disable-author input[type='radio']").on("change",(function(){e(this).is(":checked")&&e("#author-archives-titles-metas-content").toggle("off"===e(this).val())})).trigger("change");const r=e("#noindex-author-wpseo-off"),l=e("#noindex-author-wpseo-on");r.is(":checked")||c(!1),l.on("change",()=>{e(this).is(":checked")||c(!1)}),r.on("change",()=>{e(this).is(":checked")||c(!0)}),e("#disable-date input[type='radio']").on("change",(function(){e(this).is(":checked")&&e("#date-archives-titles-metas-content").toggle("off"===e(this).val())})).trigger("change"),e("#disable-attachment input[type='radio']").on("change",(function(){e(this).is(":checked")&&e("#media_settings").toggle("off"===e(this).val())})).trigger("change"),e("#disable-post_format").on("change",(function(){e("#post_format-titles-metas").toggle(e(this).is(":not(:checked)"))})).trigger("change"),e("#zapier_integration_active input[type='radio']").on("change",(function(){e(this).is(":checked")&&e("#zapier-connection").toggle("on"===e(this).val())})).trigger("change"),e("#wincher_integration_active input[type='radio']").change((function(){e(this).is(":checked")&&e("#wincher-connection").toggle("on"===e(this).val())})).change(),e("#wpseo-tabs").find("a").on("click",(function(t){var n,i,r,o=!0;if(n=e(this),i=!!e("#first-time-configuration-tab").filter(".nav-tab-active").length,r=!!n.filter("#first-time-configuration-tab").length,i&&!r&&window.isStepBeingEdited&&(o=confirm(Object(s.__)("There are unsaved changes in one or more steps. Leaving means that those changes may not be saved. Are you sure you want to leave?","wordpress-seo"))),o){window.isStepBeingEdited=!1,e("#wpseo-tabs").find("a").removeClass("nav-tab-active"),e(".wpseotab").removeClass("active");var a=e(this).attr("id").replace("-tab",""),c=e("#"+a);c.addClass("active"),e(this).addClass("nav-tab-active"),c.hasClass("nosave")?e("#wpseo-submit-container").hide():e("#wpseo-submit-container").show(),e(window).trigger("yoast-seo-tab-change"),"first-time-configuration"===a?e("#yoast-first-time-configuration-notice").slideUp():e("#yoast-first-time-configuration-notice").slideDown()}else t.preventDefault(),e("#first-time-configuration-tab").trigger("focus")})),e("#yoast-first-time-configuration-notice a").on("click",(function(){e("#first-time-configuration-tab").click()})),e("#company_or_person").on("change",(function(){var t=e(this).val();"company"===t?(e("#knowledge-graph-company").show(),e("#knowledge-graph-person").hide()):"person"===t?(e("#knowledge-graph-company").hide(),e("#knowledge-graph-person").show()):(e("#knowledge-graph-company").hide(),e("#knowledge-graph-person").hide())})).trigger("change"),e(".template").on("input",(function(){t(e(this))})),e(".switch-yoast-seo input").on("keydown",(function(e){"keydown"===e.type&&13===e.which&&e.preventDefault()})),e("body").on("click","button.toggleable-container-trigger",t=>{const n=e(t.currentTarget),s=n.parent().siblings(".toggleable-container");s.toggleClass("toggleable-container-hidden"),n.attr("aria-expanded",!s.hasClass("toggleable-container-hidden")).find("span").toggleClass("dashicons-arrow-up-alt2 dashicons-arrow-down-alt2")});const p=e("#opengraph"),d=e("#wpseo-opengraph-settings");p.length&&d.length&&(d.toggle(p[0].checked),p.on("change",e=>{d.toggle(e.target.checked)})),n(),a(),function(){if(!e("#enable_xml_sitemap input[type=radio]").length)return;const t=e("#yoast-seo-sitemaps-disabled-warning");e("#enable_xml_sitemap input[type=radio]").on("change",(function(){"off"===this.value?t.show():t.hide()}))}(),function(){const t=e("#wpseo-submit-container-float"),n=e("#wpseo-submit-container-fixed");if(!t.length||!n.length)return;function s(){t._wpseoIsInViewport()?n.hide():n.show()}e(window).on("resize scroll",Object(o.debounce)(s,100)),e(window).on("yoast-seo-tab-change",s);const i=e(".wpseo-message");i.length&&window.setTimeout(()=>{i.fadeOut()},5e3),s()}(),"undefined"!=typeof ClipboardJS&&new ClipboardJS("#copy-zapier-api-key").on("success",(function(t){t.clearSelection(),e(t.trigger).trigger("focus")}))}))}},function(e,t,n){"use strict";function s(e){e(document).ready((function(e){void 0!==wp.media&&e(".wpseo_image_upload_button").each((function(t,n){const s=function(t){let n=(t=e(t)).data("target");return n&&""!==n||(n=e(t).attr("id").replace(/_button$/,"")),n}(n),i=e(n).data("target-id"),r=e("#"+s),o=e("#"+i);var a=wp.media.frames.file_frame=wp.media({title:wpseoScriptData.media.choose_image,button:{text:wpseoScriptData.media.choose_image},multiple:!1,library:{type:"image"}});a.on("select",(function(){var e=a.state().get("selection").first().toJSON();r.val(e.url),o.val(e.id)}));const c=e(n);c.click((function(e){e.preventDefault(),a.open()})),c.siblings(".wpseo_image_remove_button").on("click",e=>{e.preventDefault(),r.val(""),o.val("")})}))}))}n.d(t,"a",(function(){return s}))},,,,function(e,t,n){"use strict";n.r(t),n.d(t,"DISMISS_ALERT",(function(){return s.DISMISS_ALERT})),n.d(t,"SNIPPET_EDITOR_FIND_CUSTOM_FIELDS",(function(){return i}));var s=n(127);function i(e){let{query:t,postId:n}=e;return new Promise(e=>{wpseoApi.get("meta/search",{query:t,post_id:n},t=>{e(t.meta)})})}},,,function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(e){"object"==typeof window&&(n=window)}e.exports=n},,,,,,,,,,,,,function(e,t,n){"use strict";var s=n(185),i=n(17),r=n(4),o=n(87),a=n(24);const{removeReplacementVariable:c,updateReplacementVariable:l,refreshSnippetEditor:p}=i.actions;var d=["content","title","snippet_title","snippet_meta","primary_category","data_page_title","data_meta_desc","excerpt"],u={},h={},g=function(e,t){this._app=e,this._app.registerPlugin("replaceVariablePlugin",{status:"ready"}),this._store=t,this.replaceVariables=this.replaceVariables.bind(this),this.registerReplacements(),this.registerModifications(),this.registerEvents(),this.subscribeToGutenberg()};g.prototype.registerReplacements=function(){this.addReplacement(new a.a("%%author_first_name%%","author_first_name")),this.addReplacement(new a.a("%%author_last_name%%","author_last_name")),this.addReplacement(new a.a("%%category%%","category")),this.addReplacement(new a.a("%%category_title%%","category_title")),this.addReplacement(new a.a("%%currentdate%%","currentdate")),this.addReplacement(new a.a("%%currentday%%","currentday")),this.addReplacement(new a.a("%%currentmonth%%","currentmonth")),this.addReplacement(new a.a("%%currenttime%%","currenttime")),this.addReplacement(new a.a("%%currentyear%%","currentyear")),this.addReplacement(new a.a("%%date%%","date")),this.addReplacement(new a.a("%%id%%","id")),this.addReplacement(new a.a("%%page%%","page")),this.addReplacement(new a.a("%%permalink%%","permalink")),this.addReplacement(new a.a("%%post_content%%","post_content")),this.addReplacement(new a.a("%%post_month%%","post_month")),this.addReplacement(new a.a("%%post_year%%","post_year")),this.addReplacement(new a.a("%%searchphrase%%","searchphrase")),this.addReplacement(new a.a("%%sitedesc%%","sitedesc")),this.addReplacement(new a.a("%%sitename%%","sitename")),this.addReplacement(new a.a("%%userid%%","userid")),this.addReplacement(new a.a("%%focuskw%%","keyword",{source:"app",aliases:["%%keyword%%"]})),this.addReplacement(new a.a("%%term_description%%","text",{source:"app",scope:["term","category","tag"],aliases:["%%tag_description%%","%%category_description%%"]})),this.addReplacement(new a.a("%%term_title%%","term_title",{scope:["term"]})),this.addReplacement(new a.a("%%term_hierarchy%%","term_hierarchy",{scope:["term"]})),this.addReplacement(new a.a("%%title%%","title",{source:"app",scope:["post","term","page"]})),this.addReplacement(new a.a("%%parent_title%%","title",{source:"app",scope:["page","category"]})),this.addReplacement(new a.a("%%excerpt%%","excerpt",{source:"app",scope:["post"],aliases:["%%excerpt_only%%"]})),this.addReplacement(new a.a("%%primary_category%%","primaryCategory",{source:"app",scope:["post"]})),this.addReplacement(new a.a("%%sep%%(\\s*%%sep%%)*","sep"))},g.prototype.registerEvents=function(){const e=wpseoScriptData.analysis.plugins.replaceVars.scope;"post"===e&&jQuery(".categorydiv").each(this.bindTaxonomyEvents.bind(this)),"post"!==e&&"page"!==e||jQuery("#postcustomstuff > #list-table").each(this.bindFieldEvents.bind(this))},g.prototype.subscribeToGutenberg=function(){if(!Object(o.a)())return;const e={0:""};let t=null;const n=wp.data;n.subscribe(()=>{const i=n.select("core/editor").getEditedPostAttribute("parent");if(void 0!==i&&t!==i)return t=i,i<1?(this._currentParentPageTitle="",void this.declareReloaded()):Object(r.isUndefined)(e[i])?void s.loadPromise.done(()=>{new s.models.Page({id:i}).fetch().then(t=>{this._currentParentPageTitle=t.title.rendered,e[i]=this._currentParentPageTitle,this.declareReloaded()}).fail(()=>{this._currentParentPageTitle="",this.declareReloaded()})}):(this._currentParentPageTitle=e[i],void this.declareReloaded())})},g.prototype.addReplacement=function(e){u[e.placeholder]=e},g.prototype.removeReplacement=function(e){delete u[e.getPlaceholder()]},g.prototype.registerModifications=function(){var e=this.replaceVariables.bind(this);Object(r.forEach)(d,function(t){this._app.registerModification(t,e,"replaceVariablePlugin",10)}.bind(this))},g.prototype.replaceVariables=function(e){return Object(r.isUndefined)(e)||(e=this.parentReplace(e),e=this.replaceCustomTaxonomy(e),e=this.replaceByStore(e),e=this.replacePlaceholders(e)),e},g.prototype.replaceByStore=function(e){const t=this._store.getState().snippetEditor.replacementVariables;return Object(r.forEach)(t,t=>{""!==t.value&&(e=e.replace("%%"+t.name+"%%",t.value))}),e},g.prototype.getReplacementSource=function(e){return"app"===e.source?this._app.rawData:"direct"===e.source?"direct":wpseoScriptData.analysis.plugins.replaceVars.replace_vars},g.prototype.getReplacement=function(e){var t=this.getReplacementSource(e.options);return!1===e.inScope(wpseoScriptData.analysis.plugins.replaceVars.scope)?"":"direct"===t?e.replacement:t[e.replacement]||""},g.prototype.replacePlaceholders=function(e){return Object(r.forEach)(u,function(t){e=e.replace(new RegExp(t.getPlaceholder(!0),"g"),this.getReplacement(t))}.bind(this)),e},g.prototype.declareReloaded=function(){this._app.pluginReloaded("replaceVariablePlugin"),this._store.dispatch(p())},g.prototype.getCategoryName=function(e){var t=e.parent("label").clone();return t.children().remove(),t.text().trim()},g.prototype.parseTaxonomies=function(e,t){Object(r.isUndefined)(h[t])&&(h[t]={});const n=[];Object(r.forEach)(e,function(e){const s=(e=jQuery(e)).val(),i=this.getCategoryName(e),r=e.prop("checked");h[t][s]={label:i,checked:r},r&&-1===n.indexOf(i)&&n.push(i)}.bind(this)),"category"!==t&&(t="ct_"+t),this._store.dispatch(l(t,n.join(", ")))},g.prototype.getAvailableTaxonomies=function(e){var t=jQuery(e).find("input[type=checkbox]"),n=jQuery(e).attr("id").replace("taxonomy-","");t.length>0&&this.parseTaxonomies(t,n),this.declareReloaded()},g.prototype.bindTaxonomyEvents=function(e,t){(t=jQuery(t)).on("wpListAddEnd",".categorychecklist",this.getAvailableTaxonomies.bind(this,t)),t.on("change","input[type=checkbox]",this.getAvailableTaxonomies.bind(this,t)),this.getAvailableTaxonomies(t)},g.prototype.replaceCustomTaxonomy=function(e){return Object(r.forEach)(h,function(t,n){var s="%%ct_"+n+"%%";"category"===n&&(s="%%"+n+"%%"),e=e.replace(s,this.getTaxonomyReplaceVar(n))}.bind(this)),e},g.prototype.getTaxonomyReplaceVar=function(e){var t=[],n=h[e];return!0===Object(r.isUndefined)(n)?"":(Object(r.forEach)(n,(function(e){!1!==e.checked&&t.push(e.label)})),jQuery.uniqueSort(t).join(", "))},g.prototype.parseFields=function(e){jQuery(e).each(function(e,t){var n=jQuery("#"+t.id+"-key").val(),s=jQuery("#"+t.id+"-value").val();const i="cf_"+this.sanitizeCustomFieldNames(n),r=n+" (custom field)";this._store.dispatch(l(i,s,r)),this.addReplacement(new a.a(`%%${i}%%`,s,{source:"direct"}))}.bind(this))},g.prototype.removeFields=function(e){jQuery(e).each(function(e,t){var n=jQuery("#"+t.id+"-key").val();this.removeReplacement("%%cf_"+this.sanitizeCustomFieldNames(n)+"%%")}.bind(this))},g.prototype.sanitizeCustomFieldNames=function(e){return e.replace(/\s/g,"_")},g.prototype.getAvailableFields=function(e){this.removeCustomFields();var t=jQuery(e).find("#the-list > tr:visible[id]");t.length>0&&this.parseFields(t),this.declareReloaded()},g.prototype.bindFieldEvents=function(e,t){var n=(t=jQuery(t)).find("#the-list");n.on("wpListDelEnd.wpseoCustomFields",this.getAvailableFields.bind(this,t)),n.on("wpListAddEnd.wpseoCustomFields",this.getAvailableFields.bind(this,t)),n.on("input.wpseoCustomFields",".textarea",this.getAvailableFields.bind(this,t)),n.on("click.wpseoCustomFields",".button + .updatemeta",this.getAvailableFields.bind(this,t)),this.getAvailableFields(t)},g.prototype.removeCustomFields=function(){var e=Object(r.filter)(u,(function(e,t){return t.indexOf("%%cf_")>-1}));Object(r.forEach)(e,function(e){this._store.dispatch(c(Object(r.trim)(e.placeholder,"%%"))),this.removeReplacement(e)}.bind(this))},g.prototype.parentReplace=function(e){const t=jQuery("#parent_id, #parent").eq(0);return this.hasParentTitle(t)&&(e=e.replace(/%%parent_title%%/,this.getParentTitleReplacement(t))),Object(o.a)()&&!Object(r.isUndefined)(this._currentParentPageTitle)&&(e=e.replace(/%%parent_title%%/,this._currentParentPageTitle)),e},g.prototype.hasParentTitle=function(e){return!Object(r.isUndefined)(e)&&!Object(r.isUndefined)(e.prop("options"))},g.prototype.getParentTitleReplacement=function(e){var t=e.find("option:selected").text();return t===wpseoScriptData.analysis.plugins.replaceVars.no_parent_text?"":t},g.ReplaceVar=a.a,t.a=g},function(e,t){e.exports=window.wp.api},function(e,t,n){"use strict";var s=n(17),i=n(4),r=n(12);t.a=function(e,t,n){e("morphology",new r.Paper("",{keyword:n})).then(e=>{const n=e.result.keyphraseForms;t.dispatch(s.actions.updateWordsToHighlight(Object(i.uniq)(Object(i.flatten)(n))))}).catch(()=>{t.dispatch(s.actions.updateWordsToHighlight([]))})}},,,,function(e,t,n){"use strict";n.d(t,"a",(function(){return l}));var s=n(4),i=n(6),r=n(39),o=n(92),a=n(121);function c(e,t){let n;r.isTinyMCEAvailable(r.tmceId)&&(Object(s.isUndefined)(n)&&(n=Object(o.c)(tinyMCE.get(r.tmceId))),n(e,t)),Object(a.b)()&&(function(e,t){tinyMCE.editors.map(e=>Object(o.c)(e)).forEach(n=>n(e,t))}(e,t),Object(a.a)(t))}function l(){const e=Object(i.select)("yoast-seo/editor").isMarkingAvailable(),t=Object(i.select)("yoast-seo/editor").getMarkerPauseStatus();return!e||t?s.noop:c}},,function(e,t){e.exports=window.wp.annotations},,,,,,,function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var s=n(4),i=n(6),r=n(17),o=n(168);function a(){const e=Object(i.registerStore)("yoast-seo/editor",{reducer:Object(i.combineReducers)(r.reducers),selectors:r.selectors,actions:Object(s.pickBy)(r.actions,e=>"function"==typeof e),controls:o});return(e=>{e.dispatch(r.actions.setSettings({socialPreviews:{sitewideImage:window.wpseoScriptData.metabox.sitewide_social_image,siteName:window.wpseoScriptData.metabox.site_name,contentImage:window.wpseoScriptData.metabox.first_content_image,twitterCardType:window.wpseoScriptData.metabox.twitterCardType},snippetEditor:{baseUrl:window.wpseoScriptData.metabox.base_url,date:window.wpseoScriptData.metabox.metaDescriptionDate,recommendedReplacementVariables:window.wpseoScriptData.analysis.plugins.replaceVars.recommended_replace_vars,siteIconUrl:window.wpseoScriptData.metabox.siteIconUrl}})),e.dispatch(r.actions.setSEMrushChangeCountry(window.wpseoScriptData.metabox.countryCode)),e.dispatch(r.actions.setSEMrushLoginStatus(window.wpseoScriptData.metabox.SEMrushLoginStatus)),e.dispatch(r.actions.setWincherLoginStatus(window.wpseoScriptData.metabox.wincherLoginStatus,!1)),e.dispatch(r.actions.setWincherWebsiteId(window.wpseoScriptData.metabox.wincherWebsiteId)),e.dispatch(r.actions.setWincherAutomaticKeyphaseTracking(window.wpseoScriptData.metabox.wincherAutoAddKeyphrases)),e.dispatch(r.actions.setDismissedAlerts(Object(s.get)(window,"wpseoScriptData.dismissedAlerts",{}))),e.dispatch(r.actions.setIsPremium(Boolean(Object(s.get)(window,"wpseoScriptData.metabox.isPremium",!1)))),e.dispatch(r.actions.setPostId(Number(Object(s.get)(window,"wpseoScriptData.postId",null))))})(e),e}},function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var s=n(45),i=n(4),r=n(98),o=n(62),a=n(12);function c(e,t,n,c,l){const p=Object(i.cloneDeep)(t.getState());Object(i.merge)(p,n.getData());const d=e.getData();let u=null;l&&(u=l.getBlocks(),u=u.map(e=>function e(t){const n={attributes:{}};return["level","content","alt"].forEach(e=>{t.attributes[e]&&(n.attributes[e]=t.attributes[e])}),n.name=t.name,n.clientId=t.clientId,n.innerBlocks=t.innerBlocks.map(t=>e(t)),n}(e)));const h={text:d.content,textTitle:d.title,keyword:p.focusKeyword,synonyms:p.synonyms,description:p.analysisData.snippet.description||p.snippetEditor.data.description,title:p.analysisData.snippet.title||p.snippetEditor.data.title,slug:p.snippetEditor.data.slug,permalink:p.settings.snippetEditor.baseUrl+p.snippetEditor.data.slug,wpBlocks:u,date:p.settings.snippetEditor.date};return c.loaded&&(h.title=c._applyModifications("data_page_title",h.title),h.title=c._applyModifications("title",h.title),h.description=c._applyModifications("data_meta_desc",h.description),h.text=c._applyModifications("content",h.text),h.wpBlocks=c._applyModifications("wpBlocks",h.wpBlocks)),h.titleWidth=Object(r.a)(h.title),h.locale=Object(o.a)(),a.Paper.parse(Object(s.applyFilters)("yoast.analysis.data",h))}},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var s=n(4);class i{constructor(){this._callbacks=[],this.register=this.register.bind(this)}register(e){Object(s.isFunction)(e)&&this._callbacks.push(e)}getData(){let e={};return this._callbacks.forEach(t=>{e=Object(s.merge)(e,t())}),e}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var s=n(4),i=n(14),r=n(160);function o(e,t,n){const o=Object(i.a)();if(!o.previouslyUsedKeywordActive)return;const a=Object(s.get)(window,["wpseoScriptData","analysis","worker","keywords_assessment_url"],"used-keywords-assessment.js"),c=Object(s.get)(window,["wpseoScriptData","usedKeywordsNonce"],""),l=new r.a(t,o,e,a,c);l.init();let p={};n.subscribe(()=>{const e=n.getState()||{};e.focusKeyword!==p.focusKeyword&&(p=e,l.setKeyword(e.focusKeyword))})}},,,,function(e,t,n){"use strict";function s(e){function t(e){e&&(e.focus(),e.click())}function n(){var t=e("#wpseo-meta-section-addons .wpseo_tablink");if(1===t.length&&t.replaceWith("<span class='"+t[0].className+"'>"+t.text()+"</span>"),e(".wpseo-metabox-tabs-div").length>0&&e(".wpseo-metabox-tabs").on("click","a.wpseo_tablink",(function(t){t.preventDefault(),e(".wpseo-meta-section.active .wpseo-metabox-tabs li").removeClass("active"),e(".wpseo-meta-section.active .wpseotab").removeClass("active");var n=e(e(this).attr("href"));n.addClass("active"),e(this).parent("li").addClass("active"),e(this).hasClass("scroll")&&e("html, body").animate({scrollTop:e(n).offset().top},500)})),e(".wpseo-meta-section").length>0){const t=e(".wpseo-meta-section-link");e(".wpseo-metabox-menu li").filter((function(){return"#wpseo-meta-section-content"===e(this).find(".wpseo-meta-section-link").attr("href")})).addClass("active").find("[role='tab']").addClass("yoast-active-tab"),e("#wpseo-meta-section-content, .wpseo-meta-section-react").addClass("active"),t.on("click",(function(n){var s=e(this).attr("id"),i=e(this).attr("href"),r=e(i);n.preventDefault(),e(".wpseo-metabox-menu li").removeClass("active").find("[role='tab']").removeClass("yoast-active-tab"),e(".wpseo-meta-section").removeClass("active"),e(".wpseo-meta-section-react.active").removeClass("active"),"#wpseo-meta-section-content"===i&&e(".wpseo-meta-section-react").addClass("active"),r.addClass("active"),e(this).parent("li").addClass("active").find("[role='tab']").addClass("yoast-active-tab");const o=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return new CustomEvent(e,{detail:t})}("YoastSEO:metaTabChange",{metaTabId:s});window.dispatchEvent(o),this&&(function(e){e.attr({"aria-selected":"false",tabIndex:"-1"})}(t),this.removeAttribute("tabindex"),this.setAttribute("aria-selected","true"))}))}e(".wpseo-metabox-tabs").show()}window.wpseoInitTabs=n,window.wpseo_init_tabs=n,e(".wpseo-meta-section").each((function(t,n){e(n).find(".wpseo-metabox-tabs li:first").addClass("active"),e(n).find(".wpseotab:first").addClass("active")})),window.wpseo_init_tabs(),function(){const n=e(".yoast-aria-tabs"),s=n.find("[role='tab']"),i=n.attr("aria-orientation")||"horizontal";s.attr({"aria-selected":!1,tabIndex:"-1"}),s.filter(".yoast-active-tab").removeAttr("tabindex").attr("aria-selected","true"),s.on("keydown",(function(n){-1!==[32,35,36,37,38,39,40].indexOf(n.which)&&("horizontal"===i&&-1!==[38,40].indexOf(n.which)||"vertical"===i&&-1!==[37,39].indexOf(n.which)||function(n,s){const i=n.which,r=s.index(e(n.target));switch(i){case 32:n.preventDefault(),t(s[r]);break;case 35:n.preventDefault(),t(s[s.length-1]);break;case 36:n.preventDefault(),t(s[0]);break;case 37:case 38:n.preventDefault(),t(s[r-1<0?s.length-1:r-1]);break;case 39:case 40:n.preventDefault(),t(s[r+1===s.length?0:r+1])}}(n,s))}))}()}n.d(t,"a",(function(){return s}))},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){(function(t){!function(t){"use strict";var n={newline:/^\n+/,code:/^( {4}[^\n]+\n*)+/,fences:/^ {0,3}(`{3,}|~{3,})([^`~\n]*)\n(?:|([\s\S]*?)\n)(?: {0,3}\1[~`]* *(?:\n+|$)|$)/,hr:/^ {0,3}((?:- *){3,}|(?:_ *){3,}|(?:\* *){3,})(?:\n+|$)/,heading:/^ {0,3}(#{1,6}) +([^\n]*?)(?: +#+)? *(?:\n+|$)/,blockquote:/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/,list:/^( {0,3})(bull) [\s\S]+?(?:hr|def|\n{2,}(?! )(?!\1bull )\n*|\s*$)/,html:"^ {0,3}(?:<(script|pre|style)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?\\?>\\n*|<![A-Z][\\s\\S]*?>\\n*|<!\\[CDATA\\[[\\s\\S]*?\\]\\]>\\n*|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:\\n{2,}|$)|<(?!script|pre|style)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:\\n{2,}|$)|</(?!script|pre|style)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:\\n{2,}|$))",def:/^ {0,3}\[(label)\]: *\n? *<?([^\s>]+)>?(?:(?: +\n? *| *\n *)(title))? *(?:\n+|$)/,nptable:m,table:m,lheading:/^([^\n]+)\n {0,3}(=+|-+) *(?:\n+|$)/,_paragraph:/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html)[^\n]+)*)/,text:/^[^\n]+/};function s(e){this.tokens=[],this.tokens.links=Object.create(null),this.options=e||k.defaults,this.rules=n.normal,this.options.pedantic?this.rules=n.pedantic:this.options.gfm&&(this.rules=n.gfm)}n._label=/(?!\s*\])(?:\\[\[\]]|[^\[\]])+/,n._title=/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/,n.def=u(n.def).replace("label",n._label).replace("title",n._title).getRegex(),n.bullet=/(?:[*+-]|\d{1,9}\.)/,n.item=/^( *)(bull) ?[^\n]*(?:\n(?!\1bull ?)[^\n]*)*/,n.item=u(n.item,"gm").replace(/bull/g,n.bullet).getRegex(),n.list=u(n.list).replace(/bull/g,n.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+n.def.source+")").getRegex(),n._tag="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|section|source|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",n._comment=/<!--(?!-?>)[\s\S]*?-->/,n.html=u(n.html,"i").replace("comment",n._comment).replace("tag",n._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),n.paragraph=u(n._paragraph).replace("hr",n.hr).replace("heading"," {0,3}#{1,6} +").replace("|lheading","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}|~{3,})[^`\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|!--)").replace("tag",n._tag).getRegex(),n.blockquote=u(n.blockquote).replace("paragraph",n.paragraph).getRegex(),n.normal=b({},n),n.gfm=b({},n.normal,{nptable:/^ *([^|\n ].*\|.*)\n *([-:]+ *\|[-| :]*)(?:\n((?:.*[^>\n ].*(?:\n|$))*)\n*|$)/,table:/^ *\|(.+)\n *\|?( *[-:]+[-| :]*)(?:\n((?: *[^>\n ].*(?:\n|$))*)\n*|$)/}),n.pedantic=b({},n.normal,{html:u("^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:\"[^\"]*\"|'[^']*'|\\s[^'\"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))").replace("comment",n._comment).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^ *(#{1,6}) *([^\n]+?) *(?:#+ *)?(?:\n+|$)/,fences:m,paragraph:u(n.normal._paragraph).replace("hr",n.hr).replace("heading"," *#{1,6} *[^\n]").replace("lheading",n.lheading).replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").getRegex()}),s.rules=n,s.lex=function(e,t){return new s(t).lex(e)},s.prototype.lex=function(e){return e=e.replace(/\r\n|\r/g,"\n").replace(/\t/g,"    ").replace(/\u00a0/g," ").replace(/\u2424/g,"\n"),this.token(e,!0)},s.prototype.token=function(e,t){var s,i,r,o,a,c,l,d,u,h,g,f,m,b,_,v;for(e=e.replace(/^ +$/gm,"");e;)if((r=this.rules.newline.exec(e))&&(e=e.substring(r[0].length),r[0].length>1&&this.tokens.push({type:"space"})),r=this.rules.code.exec(e)){var k=this.tokens[this.tokens.length-1];e=e.substring(r[0].length),k&&"paragraph"===k.type?k.text+="\n"+r[0].trimRight():(r=r[0].replace(/^ {4}/gm,""),this.tokens.push({type:"code",codeBlockStyle:"indented",text:this.options.pedantic?r:w(r,"\n")}))}else if(r=this.rules.fences.exec(e))e=e.substring(r[0].length),this.tokens.push({type:"code",lang:r[2]?r[2].trim():r[2],text:r[3]||""});else if(r=this.rules.heading.exec(e))e=e.substring(r[0].length),this.tokens.push({type:"heading",depth:r[1].length,text:r[2]});else if((r=this.rules.nptable.exec(e))&&(c={type:"table",header:y(r[1].replace(/^ *| *\| *$/g,"")),align:r[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:r[3]?r[3].replace(/\n$/,"").split("\n"):[]}).header.length===c.align.length){for(e=e.substring(r[0].length),g=0;g<c.align.length;g++)/^ *-+: *$/.test(c.align[g])?c.align[g]="right":/^ *:-+: *$/.test(c.align[g])?c.align[g]="center":/^ *:-+ *$/.test(c.align[g])?c.align[g]="left":c.align[g]=null;for(g=0;g<c.cells.length;g++)c.cells[g]=y(c.cells[g],c.header.length);this.tokens.push(c)}else if(r=this.rules.hr.exec(e))e=e.substring(r[0].length),this.tokens.push({type:"hr"});else if(r=this.rules.blockquote.exec(e))e=e.substring(r[0].length),this.tokens.push({type:"blockquote_start"}),r=r[0].replace(/^ *> ?/gm,""),this.token(r,t),this.tokens.push({type:"blockquote_end"});else if(r=this.rules.list.exec(e)){for(e=e.substring(r[0].length),l={type:"list_start",ordered:b=(o=r[2]).length>1,start:b?+o:"",loose:!1},this.tokens.push(l),d=[],s=!1,m=(r=r[0].match(this.rules.item)).length,g=0;g<m;g++)h=(c=r[g]).length,~(c=c.replace(/^ *([*+-]|\d+\.) */,"")).indexOf("\n ")&&(h-=c.length,c=this.options.pedantic?c.replace(/^ {1,4}/gm,""):c.replace(new RegExp("^ {1,"+h+"}","gm"),"")),g!==m-1&&(a=n.bullet.exec(r[g+1])[0],(o.length>1?1===a.length:a.length>1||this.options.smartLists&&a!==o)&&(e=r.slice(g+1).join("\n")+e,g=m-1)),i=s||/\n\n(?!\s*$)/.test(c),g!==m-1&&(s="\n"===c.charAt(c.length-1),i||(i=s)),i&&(l.loose=!0),v=void 0,(_=/^\[[ xX]\] /.test(c))&&(v=" "!==c[1],c=c.replace(/^\[[ xX]\] +/,"")),u={type:"list_item_start",task:_,checked:v,loose:i},d.push(u),this.tokens.push(u),this.token(c,!1),this.tokens.push({type:"list_item_end"});if(l.loose)for(m=d.length,g=0;g<m;g++)d[g].loose=!0;this.tokens.push({type:"list_end"})}else if(r=this.rules.html.exec(e))e=e.substring(r[0].length),this.tokens.push({type:this.options.sanitize?"paragraph":"html",pre:!this.options.sanitizer&&("pre"===r[1]||"script"===r[1]||"style"===r[1]),text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(r[0]):p(r[0]):r[0]});else if(t&&(r=this.rules.def.exec(e)))e=e.substring(r[0].length),r[3]&&(r[3]=r[3].substring(1,r[3].length-1)),f=r[1].toLowerCase().replace(/\s+/g," "),this.tokens.links[f]||(this.tokens.links[f]={href:r[2],title:r[3]});else if((r=this.rules.table.exec(e))&&(c={type:"table",header:y(r[1].replace(/^ *| *\| *$/g,"")),align:r[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:r[3]?r[3].replace(/\n$/,"").split("\n"):[]}).header.length===c.align.length){for(e=e.substring(r[0].length),g=0;g<c.align.length;g++)/^ *-+: *$/.test(c.align[g])?c.align[g]="right":/^ *:-+: *$/.test(c.align[g])?c.align[g]="center":/^ *:-+ *$/.test(c.align[g])?c.align[g]="left":c.align[g]=null;for(g=0;g<c.cells.length;g++)c.cells[g]=y(c.cells[g].replace(/^ *\| *| *\| *$/g,""),c.header.length);this.tokens.push(c)}else if(r=this.rules.lheading.exec(e))e=e.substring(r[0].length),this.tokens.push({type:"heading",depth:"="===r[2].charAt(0)?1:2,text:r[1]});else if(t&&(r=this.rules.paragraph.exec(e)))e=e.substring(r[0].length),this.tokens.push({type:"paragraph",text:"\n"===r[1].charAt(r[1].length-1)?r[1].slice(0,-1):r[1]});else if(r=this.rules.text.exec(e))e=e.substring(r[0].length),this.tokens.push({type:"text",text:r[0]});else if(e)throw new Error("Infinite loop on byte: "+e.charCodeAt(0));return this.tokens};var i={escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:m,tag:"^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>",link:/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/,reflink:/^!?\[(label)\]\[(?!\s*\])((?:\\[\[\]]?|[^\[\]\\])+)\]/,nolink:/^!?\[(?!\s*\])((?:\[[^\[\]]*\]|\\[\[\]]|[^\[\]])*)\](?:\[\])?/,strong:/^__([^\s_])__(?!_)|^\*\*([^\s*])\*\*(?!\*)|^__([^\s][\s\S]*?[^\s])__(?!_)|^\*\*([^\s][\s\S]*?[^\s])\*\*(?!\*)/,em:/^_([^\s_])_(?!_)|^\*([^\s*<\[])\*(?!\*)|^_([^\s<][\s\S]*?[^\s_])_(?!_|[^\spunctuation])|^_([^\s_<][\s\S]*?[^\s])_(?!_|[^\spunctuation])|^\*([^\s<"][\s\S]*?[^\s\*])\*(?!\*|[^\spunctuation])|^\*([^\s*"<\[][\s\S]*?[^\s])\*(?!\*)/,code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,br:/^( {2,}|\\)\n(?!\s*$)/,del:m,text:/^(`+|[^`])(?:[\s\S]*?(?:(?=[\\<!\[`*]|\b_|$)|[^ ](?= {2,}\n))|(?= {2,}\n))/};function r(e,t){if(this.options=t||k.defaults,this.links=e,this.rules=i.normal,this.renderer=this.options.renderer||new o,this.renderer.options=this.options,!this.links)throw new Error("Tokens array requires a `links` property.");this.options.pedantic?this.rules=i.pedantic:this.options.gfm&&(this.options.breaks?this.rules=i.breaks:this.rules=i.gfm)}function o(e){this.options=e||k.defaults}function a(){}function c(e){this.tokens=[],this.token=null,this.options=e||k.defaults,this.options.renderer=this.options.renderer||new o,this.renderer=this.options.renderer,this.renderer.options=this.options,this.slugger=new l}function l(){this.seen={}}function p(e,t){if(t){if(p.escapeTest.test(e))return e.replace(p.escapeReplace,(function(e){return p.replacements[e]}))}else if(p.escapeTestNoEncode.test(e))return e.replace(p.escapeReplaceNoEncode,(function(e){return p.replacements[e]}));return e}function d(e){return e.replace(/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/gi,(function(e,t){return"colon"===(t=t.toLowerCase())?":":"#"===t.charAt(0)?"x"===t.charAt(1)?String.fromCharCode(parseInt(t.substring(2),16)):String.fromCharCode(+t.substring(1)):""}))}function u(e,t){return e=e.source||e,t=t||"",{replace:function(t,n){return n=(n=n.source||n).replace(/(^|[^\[])\^/g,"$1"),e=e.replace(t,n),this},getRegex:function(){return new RegExp(e,t)}}}function h(e,t,n){if(e){try{var s=decodeURIComponent(d(n)).replace(/[^\w:]/g,"").toLowerCase()}catch(e){return null}if(0===s.indexOf("javascript:")||0===s.indexOf("vbscript:")||0===s.indexOf("data:"))return null}t&&!f.test(n)&&(n=function(e,t){return g[" "+e]||(/^[^:]+:\/*[^/]*$/.test(e)?g[" "+e]=e+"/":g[" "+e]=w(e,"/",!0)),e=g[" "+e],"//"===t.slice(0,2)?e.replace(/:[\s\S]*/,":")+t:"/"===t.charAt(0)?e.replace(/(:\/*[^/]*)[\s\S]*/,"$1")+t:e+t}(t,n));try{n=encodeURI(n).replace(/%25/g,"%")}catch(e){return null}return n}i._punctuation="!\"#$%&'()*+,\\-./:;<=>?@\\[^_{|}~",i.em=u(i.em).replace(/punctuation/g,i._punctuation).getRegex(),i._escapes=/\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/g,i._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/,i._email=/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/,i.autolink=u(i.autolink).replace("scheme",i._scheme).replace("email",i._email).getRegex(),i._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/,i.tag=u(i.tag).replace("comment",n._comment).replace("attribute",i._attribute).getRegex(),i._label=/(?:\[[^\[\]]*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,i._href=/<(?:\\[<>]?|[^\s<>\\])*>|[^\s\x00-\x1f]*/,i._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/,i.link=u(i.link).replace("label",i._label).replace("href",i._href).replace("title",i._title).getRegex(),i.reflink=u(i.reflink).replace("label",i._label).getRegex(),i.normal=b({},i),i.pedantic=b({},i.normal,{strong:/^__(?=\S)([\s\S]*?\S)__(?!_)|^\*\*(?=\S)([\s\S]*?\S)\*\*(?!\*)/,em:/^_(?=\S)([\s\S]*?\S)_(?!_)|^\*(?=\S)([\s\S]*?\S)\*(?!\*)/,link:u(/^!?\[(label)\]\((.*?)\)/).replace("label",i._label).getRegex(),reflink:u(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",i._label).getRegex()}),i.gfm=b({},i.normal,{escape:u(i.escape).replace("])","~|])").getRegex(),_extended_email:/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/,url:/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,_backpedal:/(?:[^?!.,:;*_~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_~)]+(?!$))+/,del:/^~+(?=\S)([\s\S]*?\S)~+/,text:/^(`+|[^`])(?:[\s\S]*?(?:(?=[\\<!\[`*~]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@))|(?= {2,}\n|[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@))/}),i.gfm.url=u(i.gfm.url,"i").replace("email",i.gfm._extended_email).getRegex(),i.breaks=b({},i.gfm,{br:u(i.br).replace("{2,}","*").getRegex(),text:u(i.gfm.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()}),r.rules=i,r.output=function(e,t,n){return new r(t,n).output(e)},r.prototype.output=function(e){for(var t,n,s,i,o,a,c="";e;)if(o=this.rules.escape.exec(e))e=e.substring(o[0].length),c+=p(o[1]);else if(o=this.rules.tag.exec(e))!this.inLink&&/^<a /i.test(o[0])?this.inLink=!0:this.inLink&&/^<\/a>/i.test(o[0])&&(this.inLink=!1),!this.inRawBlock&&/^<(pre|code|kbd|script)(\s|>)/i.test(o[0])?this.inRawBlock=!0:this.inRawBlock&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(o[0])&&(this.inRawBlock=!1),e=e.substring(o[0].length),c+=this.options.sanitize?this.options.sanitizer?this.options.sanitizer(o[0]):p(o[0]):o[0];else if(o=this.rules.link.exec(e)){var l=_(o[2],"()");if(l>-1){var d=4+o[1].length+l;o[2]=o[2].substring(0,l),o[0]=o[0].substring(0,d).trim(),o[3]=""}e=e.substring(o[0].length),this.inLink=!0,s=o[2],this.options.pedantic?(t=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(s))?(s=t[1],i=t[3]):i="":i=o[3]?o[3].slice(1,-1):"",s=s.trim().replace(/^<([\s\S]*)>$/,"$1"),c+=this.outputLink(o,{href:r.escapes(s),title:r.escapes(i)}),this.inLink=!1}else if((o=this.rules.reflink.exec(e))||(o=this.rules.nolink.exec(e))){if(e=e.substring(o[0].length),t=(o[2]||o[1]).replace(/\s+/g," "),!(t=this.links[t.toLowerCase()])||!t.href){c+=o[0].charAt(0),e=o[0].substring(1)+e;continue}this.inLink=!0,c+=this.outputLink(o,t),this.inLink=!1}else if(o=this.rules.strong.exec(e))e=e.substring(o[0].length),c+=this.renderer.strong(this.output(o[4]||o[3]||o[2]||o[1]));else if(o=this.rules.em.exec(e))e=e.substring(o[0].length),c+=this.renderer.em(this.output(o[6]||o[5]||o[4]||o[3]||o[2]||o[1]));else if(o=this.rules.code.exec(e))e=e.substring(o[0].length),c+=this.renderer.codespan(p(o[2].trim(),!0));else if(o=this.rules.br.exec(e))e=e.substring(o[0].length),c+=this.renderer.br();else if(o=this.rules.del.exec(e))e=e.substring(o[0].length),c+=this.renderer.del(this.output(o[1]));else if(o=this.rules.autolink.exec(e))e=e.substring(o[0].length),s="@"===o[2]?"mailto:"+(n=p(this.mangle(o[1]))):n=p(o[1]),c+=this.renderer.link(s,null,n);else if(this.inLink||!(o=this.rules.url.exec(e))){if(o=this.rules.text.exec(e))e=e.substring(o[0].length),this.inRawBlock?c+=this.renderer.text(this.options.sanitize?this.options.sanitizer?this.options.sanitizer(o[0]):p(o[0]):o[0]):c+=this.renderer.text(p(this.smartypants(o[0])));else if(e)throw new Error("Infinite loop on byte: "+e.charCodeAt(0))}else{if("@"===o[2])s="mailto:"+(n=p(o[0]));else{do{a=o[0],o[0]=this.rules._backpedal.exec(o[0])[0]}while(a!==o[0]);n=p(o[0]),s="www."===o[1]?"http://"+n:n}e=e.substring(o[0].length),c+=this.renderer.link(s,null,n)}return c},r.escapes=function(e){return e?e.replace(r.rules._escapes,"$1"):e},r.prototype.outputLink=function(e,t){var n=t.href,s=t.title?p(t.title):null;return"!"!==e[0].charAt(0)?this.renderer.link(n,s,this.output(e[1])):this.renderer.image(n,s,p(e[1]))},r.prototype.smartypants=function(e){return this.options.smartypants?e.replace(/---/g,"—").replace(/--/g,"–").replace(/(^|[-\u2014/(\[{"\s])'/g,"$1‘").replace(/'/g,"’").replace(/(^|[-\u2014/(\[{\u2018\s])"/g,"$1“").replace(/"/g,"”").replace(/\.{3}/g,"…"):e},r.prototype.mangle=function(e){if(!this.options.mangle)return e;for(var t,n="",s=e.length,i=0;i<s;i++)t=e.charCodeAt(i),Math.random()>.5&&(t="x"+t.toString(16)),n+="&#"+t+";";return n},o.prototype.code=function(e,t,n){var s=(t||"").match(/\S*/)[0];if(this.options.highlight){var i=this.options.highlight(e,s);null!=i&&i!==e&&(n=!0,e=i)}return s?'<pre><code class="'+this.options.langPrefix+p(s,!0)+'">'+(n?e:p(e,!0))+"</code></pre>\n":"<pre><code>"+(n?e:p(e,!0))+"</code></pre>"},o.prototype.blockquote=function(e){return"<blockquote>\n"+e+"</blockquote>\n"},o.prototype.html=function(e){return e},o.prototype.heading=function(e,t,n,s){return this.options.headerIds?"<h"+t+' id="'+this.options.headerPrefix+s.slug(n)+'">'+e+"</h"+t+">\n":"<h"+t+">"+e+"</h"+t+">\n"},o.prototype.hr=function(){return this.options.xhtml?"<hr/>\n":"<hr>\n"},o.prototype.list=function(e,t,n){var s=t?"ol":"ul";return"<"+s+(t&&1!==n?' start="'+n+'"':"")+">\n"+e+"</"+s+">\n"},o.prototype.listitem=function(e){return"<li>"+e+"</li>\n"},o.prototype.checkbox=function(e){return"<input "+(e?'checked="" ':"")+'disabled="" type="checkbox"'+(this.options.xhtml?" /":"")+"> "},o.prototype.paragraph=function(e){return"<p>"+e+"</p>\n"},o.prototype.table=function(e,t){return t&&(t="<tbody>"+t+"</tbody>"),"<table>\n<thead>\n"+e+"</thead>\n"+t+"</table>\n"},o.prototype.tablerow=function(e){return"<tr>\n"+e+"</tr>\n"},o.prototype.tablecell=function(e,t){var n=t.header?"th":"td";return(t.align?"<"+n+' align="'+t.align+'">':"<"+n+">")+e+"</"+n+">\n"},o.prototype.strong=function(e){return"<strong>"+e+"</strong>"},o.prototype.em=function(e){return"<em>"+e+"</em>"},o.prototype.codespan=function(e){return"<code>"+e+"</code>"},o.prototype.br=function(){return this.options.xhtml?"<br/>":"<br>"},o.prototype.del=function(e){return"<del>"+e+"</del>"},o.prototype.link=function(e,t,n){if(null===(e=h(this.options.sanitize,this.options.baseUrl,e)))return n;var s='<a href="'+p(e)+'"';return t&&(s+=' title="'+t+'"'),s+">"+n+"</a>"},o.prototype.image=function(e,t,n){if(null===(e=h(this.options.sanitize,this.options.baseUrl,e)))return n;var s='<img src="'+e+'" alt="'+n+'"';return t&&(s+=' title="'+t+'"'),s+(this.options.xhtml?"/>":">")},o.prototype.text=function(e){return e},a.prototype.strong=a.prototype.em=a.prototype.codespan=a.prototype.del=a.prototype.text=function(e){return e},a.prototype.link=a.prototype.image=function(e,t,n){return""+n},a.prototype.br=function(){return""},c.parse=function(e,t){return new c(t).parse(e)},c.prototype.parse=function(e){this.inline=new r(e.links,this.options),this.inlineText=new r(e.links,b({},this.options,{renderer:new a})),this.tokens=e.reverse();for(var t="";this.next();)t+=this.tok();return t},c.prototype.next=function(){return this.token=this.tokens.pop(),this.token},c.prototype.peek=function(){return this.tokens[this.tokens.length-1]||0},c.prototype.parseText=function(){for(var e=this.token.text;"text"===this.peek().type;)e+="\n"+this.next().text;return this.inline.output(e)},c.prototype.tok=function(){switch(this.token.type){case"space":return"";case"hr":return this.renderer.hr();case"heading":return this.renderer.heading(this.inline.output(this.token.text),this.token.depth,d(this.inlineText.output(this.token.text)),this.slugger);case"code":return this.renderer.code(this.token.text,this.token.lang,this.token.escaped);case"table":var e,t,n,s,i="",r="";for(n="",e=0;e<this.token.header.length;e++)n+=this.renderer.tablecell(this.inline.output(this.token.header[e]),{header:!0,align:this.token.align[e]});for(i+=this.renderer.tablerow(n),e=0;e<this.token.cells.length;e++){for(t=this.token.cells[e],n="",s=0;s<t.length;s++)n+=this.renderer.tablecell(this.inline.output(t[s]),{header:!1,align:this.token.align[s]});r+=this.renderer.tablerow(n)}return this.renderer.table(i,r);case"blockquote_start":for(r="";"blockquote_end"!==this.next().type;)r+=this.tok();return this.renderer.blockquote(r);case"list_start":r="";for(var o=this.token.ordered,a=this.token.start;"list_end"!==this.next().type;)r+=this.tok();return this.renderer.list(r,o,a);case"list_item_start":r="";var c=this.token.loose,l=this.token.checked,p=this.token.task;for(this.token.task&&(r+=this.renderer.checkbox(l));"list_item_end"!==this.next().type;)r+=c||"text"!==this.token.type?this.tok():this.parseText();return this.renderer.listitem(r,p,l);case"html":return this.renderer.html(this.token.text);case"paragraph":return this.renderer.paragraph(this.inline.output(this.token.text));case"text":return this.renderer.paragraph(this.parseText());default:var u='Token with "'+this.token.type+'" type was not found.';if(!this.options.silent)throw new Error(u);console.log(u)}},l.prototype.slug=function(e){var t=e.toLowerCase().trim().replace(/[\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&()*+,./:;<=>?@[\]^`{|}~]/g,"").replace(/\s/g,"-");if(this.seen.hasOwnProperty(t)){var n=t;do{this.seen[n]++,t=n+"-"+this.seen[n]}while(this.seen.hasOwnProperty(t))}return this.seen[t]=0,t},p.escapeTest=/[&<>"']/,p.escapeReplace=/[&<>"']/g,p.replacements={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},p.escapeTestNoEncode=/[<>"']|&(?!#?\w+;)/,p.escapeReplaceNoEncode=/[<>"']|&(?!#?\w+;)/g;var g={},f=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function m(){}function b(e){for(var t,n,s=1;s<arguments.length;s++)for(n in t=arguments[s])Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e}function y(e,t){var n=e.replace(/\|/g,(function(e,t,n){for(var s=!1,i=t;--i>=0&&"\\"===n[i];)s=!s;return s?"|":" |"})).split(/ \|/),s=0;if(n.length>t)n.splice(t);else for(;n.length<t;)n.push("");for(;s<n.length;s++)n[s]=n[s].trim().replace(/\\\|/g,"|");return n}function w(e,t,n){if(0===e.length)return"";for(var s=0;s<e.length;){var i=e.charAt(e.length-s-1);if(i!==t||n){if(i===t||!n)break;s++}else s++}return e.substr(0,e.length-s)}function _(e,t){if(-1===e.indexOf(t[1]))return-1;for(var n=0,s=0;s<e.length;s++)if("\\"===e[s])s++;else if(e[s]===t[0])n++;else if(e[s]===t[1]&&--n<0)return s;return-1}function v(e){e&&e.sanitize&&!e.silent&&console.warn("marked(): sanitize and sanitizer parameters are deprecated since version 0.7.0, should not be used and will be removed in the future. Read more here: https://marked.js.org/#/USING_ADVANCED.md#options")}function k(e,t,n){if(null==e)throw new Error("marked(): input parameter is undefined or null");if("string"!=typeof e)throw new Error("marked(): input parameter is of type "+Object.prototype.toString.call(e)+", string expected");if(n||"function"==typeof t){n||(n=t,t=null),v(t=b({},k.defaults,t||{}));var i,r,o=t.highlight,a=0;try{i=s.lex(e,t)}catch(e){return n(e)}r=i.length;var l=function(e){if(e)return t.highlight=o,n(e);var s;try{s=c.parse(i,t)}catch(t){e=t}return t.highlight=o,e?n(e):n(null,s)};if(!o||o.length<3)return l();if(delete t.highlight,!r)return l();for(;a<i.length;a++)!function(e){"code"!==e.type?--r||l():o(e.text,e.lang,(function(t,n){return t?l(t):null==n||n===e.text?--r||l():(e.text=n,e.escaped=!0,void(--r||l()))}))}(i[a])}else try{return t&&(t=b({},k.defaults,t)),v(t),c.parse(s.lex(e,t),t)}catch(e){if(e.message+="\nPlease report this to https://github.com/markedjs/marked.",(t||k.defaults).silent)return"<p>An error occurred:</p><pre>"+p(e.message+"",!0)+"</pre>";throw e}}m.exec=m,k.options=k.setOptions=function(e){return b(k.defaults,e),k},k.getDefaults=function(){return{baseUrl:null,breaks:!1,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:new o,sanitize:!1,sanitizer:null,silent:!1,smartLists:!1,smartypants:!1,xhtml:!1}},k.defaults=k.getDefaults(),k.Parser=c,k.parser=c.parse,k.Renderer=o,k.TextRenderer=a,k.Lexer=s,k.lexer=s.lex,k.InlineLexer=r,k.inlineLexer=r.output,k.Slugger=l,k.parse=k,e.exports=k}(this||"undefined"!=typeof window&&window)}).call(this,n(171))},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";n.r(t);var s=n(71),i=n.n(s),r=n(18),o=n.n(r),a=n(4),c=n(163),l=n(164),p=n(199),d=n(6),u=n(90),h=n.n(u),g=n(87);var f=n(206),m=n(12),b=n(140),y=n(184),w=n(100);const v=new RegExp("\\[[^<>&/\\[\\]\0- =]+?( [^\\]]+?)?\\]","g"),k=new RegExp("\\[/[^<>&/\\[\\]\0- =]+?\\]","g");var O=function(e){let{registerPlugin:t,registerModification:n,pluginReady:s,pluginReloaded:i}=e;this._registerModification=n,this._pluginReady=s,this._pluginReloaded=i,t("YoastShortcodePlugin",{status:"loading"}),this.bindElementEvents();var r="("+wpseoScriptData.analysis.plugins.shortcodes.wpseo_shortcode_tags.join("|")+")";this.keywordRegex=new RegExp(r,"g"),this.closingTagRegex=new RegExp("\\[\\/"+r+"\\]","g"),this.nonCaptureRegex=new RegExp("\\["+r+"[^\\]]*?\\]","g"),this.parsedShortcodes=[],this.loadShortcodes(this.declareReady.bind(this))};O.prototype.declareReady=function(){this._pluginReady("YoastShortcodePlugin"),this.registerModifications()},O.prototype.declareReloaded=function(){this._pluginReloaded("YoastShortcodePlugin")},O.prototype.registerModifications=function(){this._registerModification("content",this.replaceShortcodes.bind(this),"YoastShortcodePlugin")},O.prototype.removeUnknownShortCodes=function(e){return(e=e.replace(v,"")).replace(k,"")},O.prototype.replaceShortcodes=function(e){var t=this.parsedShortcodes;if("string"==typeof e&&t.length>0)for(var n=0;n<t.length;n++)e=e.replace(t[n].shortcode,t[n].output);return this.removeUnknownShortCodes(e)},O.prototype.loadShortcodes=function(e){var t=this.getUnparsedShortcodes(this.getShortcodes(this.getContentTinyMCE()));if(!(t.length>0))return e();this.parseShortcodes(t,e)},O.prototype.bindElementEvents=function(){var e=document.getElementById("content")||!1,t=_.debounce(this.loadShortcodes.bind(this,this.declareReloaded.bind(this)),500);e&&(e.addEventListener("keyup",t),e.addEventListener("change",t)),"undefined"!=typeof tinyMCE&&"function"==typeof tinyMCE.on&&tinyMCE.on("addEditor",(function(e){e.editor.on("change",t),e.editor.on("keyup",t)}))},O.prototype.getContentTinyMCE=function(){var e=document.getElementById("content")&&document.getElementById("content").value||"";return"undefined"!=typeof tinyMCE&&void 0!==tinyMCE.editors&&0!==tinyMCE.editors.length&&(e=tinyMCE.get("content")&&tinyMCE.get("content").getContent()||""),e},O.prototype.getUnparsedShortcodes=function(e){if("object"!=typeof e)return console.error("Failed to get unparsed shortcodes. Expected parameter to be an array, instead received "+typeof e),!1;for(var t=[],n=0;n<e.length;n++){var s=e[n];-1===t.indexOf(s)&&this.isUnparsedShortcode(s)&&t.push(s)}return t},O.prototype.isUnparsedShortcode=function(e){for(var t=!1,n=0;n<this.parsedShortcodes.length;n++)this.parsedShortcodes[n].shortcode===e&&(t=!0);return!1===t},O.prototype.getShortcodes=function(e){if("string"!=typeof e)return console.error("Failed to get shortcodes. Expected parameter to be a string, instead received"+typeof e),!1;for(var t=this.matchCapturingShortcodes(e),n=0;n<t.length;n++)e=e.replace(t[n],"");var s=this.matchNonCapturingShortcodes(e);return t.concat(s)},O.prototype.matchCapturingShortcodes=function(e){for(var t=[],n=(e.match(this.closingTagRegex)||[]).join(" ").match(this.keywordRegex)||[],s=0;s<n.length;s++){var i=n[s],r="\\["+i+"[^\\]]*?\\].*?\\[\\/"+i+"\\]",o=e.match(new RegExp(r,"g"))||[];t=t.concat(o)}return t},O.prototype.matchNonCapturingShortcodes=function(e){return e.match(this.nonCaptureRegex)||[]},O.prototype.parseShortcodes=function(e,t){return"function"!=typeof t?(console.error("Failed to parse shortcodes. Expected parameter to be a function, instead received "+typeof t),!1):"object"==typeof e&&e.length>0?void jQuery.post(ajaxurl,{action:"wpseo_filter_shortcodes",_wpnonce:wpseoScriptData.analysis.plugins.shortcodes.wpseo_filter_shortcodes_nonce,data:e},function(e){this.saveParsedShortcodes(e,t)}.bind(this)):t()},O.prototype.saveParsedShortcodes=function(e,t){e=JSON.parse(e);for(var n=0;n<e.length;n++)this.parsedShortcodes.push(e[n]);t()};var x=O,j=n(237),S=n.n(j),E=n(39),C=n(141),R=n(118),T=n(186),A=n(102),I=n(93),P=n(86),D=n(94),M=n(66),B=n(200),F=n(1),L=n(98),U=n(41),z=n(53),$=n(65);const{tmceId:N}=E,Y=jQuery,q=function(e){"object"==typeof CKEDITOR&&console.warn("YoastSEO currently doesn't support ckEditor. The content analysis currently only works with the HTML editor or TinyMCE."),this._data=e.data,this._store=e.store};q.prototype.getData=function(){const e=this._data.getData(),t=this._store.getState();return{keyword:Object(z.a)()?this.getKeyword():"",meta:this.getMeta(),text:e.content,title:e.title,url:e.slug,excerpt:e.excerpt,snippetTitle:this.getSnippetTitle(),snippetMeta:this.getSnippetMeta(),snippetCite:this.getSnippetCite(),primaryCategory:this.getPrimaryCategory(),searchUrl:this.getSearchUrl(),postUrl:this.getPostUrl(),permalink:this.getPermalink(),titleWidth:Object(L.a)(this.getSnippetTitle()),metaTitle:Object(a.get)(t,["analysisData","snippet","title"],this.getSnippetTitle()),url:Object(a.get)(t,["snippetEditor","data","slug"],e.slug),meta:this.getMetaDescForAnalysis(t)}},q.prototype.getKeyword=function(){return document.getElementById("yoast_wpseo_focuskw")&&document.getElementById("yoast_wpseo_focuskw").value||""},q.prototype.getMetaDescForAnalysis=function(e){let t=Object(a.get)(e,["analysisData","snippet","description"],this.getSnippetMeta());return""!==wpseoScriptData.metabox.metaDescriptionDate&&(t=wpseoScriptData.metabox.metaDescriptionDate+" - "+t),t},q.prototype.getMeta=function(){return document.getElementById("yoast_wpseo_metadesc")&&document.getElementById("yoast_wpseo_metadesc").value||""},q.prototype.getText=function(){return m.markers.removeMarks(E.getContentTinyMce(N))},q.prototype.getTitle=function(){return document.getElementById("title")&&document.getElementById("title").value||""},q.prototype.getUrl=function(){const e=Object(d.select)("core/editor");if(e)return e.getCurrentPostAttribute("slug");var t="",n=Y("#new-post-slug");return 0<n.length?t=n.val():null!==document.getElementById("editable-post-name-full")&&(t=document.getElementById("editable-post-name-full").textContent),t},q.prototype.getExcerpt=function(){var e="";return null!==document.getElementById("excerpt")&&(e=document.getElementById("excerpt")&&document.getElementById("excerpt").value||""),e},q.prototype.getSnippetTitle=function(){return document.getElementById("yoast_wpseo_title")&&document.getElementById("yoast_wpseo_title").value||""},q.prototype.getSnippetMeta=function(){return document.getElementById("yoast_wpseo_metadesc")&&document.getElementById("yoast_wpseo_metadesc").value||""},q.prototype.getSnippetCite=function(){return this.getUrl()||""},q.prototype.getPrimaryCategory=function(){var e="",t=Y("#category-all").find("ul.categorychecklist"),n=t.find("li input:checked");if(1===n.length)return this.getCategoryName(n.parent());var s=t.find(".wpseo-primary-term > label");return s.length?e=this.getCategoryName(s):e},q.prototype.getSearchUrl=function(){return wpseoScriptData.metabox.search_url},q.prototype.getPostUrl=function(){return wpseoScriptData.metabox.post_edit_url},q.prototype.getPermalink=function(){var e=this.getUrl();return wpseoScriptData.metabox.base_url+e},q.prototype.getCategoryName=function(e){var t=e.clone();return t.children().remove(),t.text().trim()},q.prototype.setDataFromSnippet=function(e,t){switch(t){case"snippet_meta":document.getElementById("yoast_wpseo_metadesc").value=e;break;case"snippet_cite":if(this.leavePostNameUntouched)return void(this.leavePostNameUntouched=!1);null!==document.getElementById("post_name")&&(document.getElementById("post_name").value=e),null!==document.getElementById("editable-post-name")&&null!==document.getElementById("editable-post-name-full")&&(document.getElementById("editable-post-name").textContent=e,document.getElementById("editable-post-name-full").textContent=e);break;case"snippet_title":document.getElementById("yoast_wpseo_title").value=e}},q.prototype.saveSnippetData=function(e){this.setDataFromSnippet(e.title,"snippet_title"),this.setDataFromSnippet(e.urlPath,"snippet_cite"),this.setDataFromSnippet(e.metaDesc,"snippet_meta")},q.prototype.bindElementEvents=function(e){this.inputElementEventBinder(e),this.changeElementEventBinder(e)},q.prototype.changeElementEventBinder=function(e){for(var t=["#yoast-wpseo-primary-category",'.categorychecklist input[name="post_category[]"]'],n=0;n<t.length;n++)Y(t[n]).on("change",e)},q.prototype.inputElementEventBinder=function(e){for(var t=["excerpt","content","title"],n=0;n<t.length;n++)null!==document.getElementById(t[n])&&document.getElementById(t[n]).addEventListener("input",e);E.tinyMceEventBinder(e,N)},q.prototype.saveScores=function(e,t){var n=Object(U.a)(e);A.updateScore("content",n.className),document.getElementById("yoast_wpseo_linkdex").value=e,""===t&&(n.className="na",n.screenReaderText=Object(F.__)("Enter a focus keyphrase to calculate the SEO score","wordpress-seo")),Object(I.a)(n),Object(P.a)(n),A.updateScore("keyword",n.className),jQuery(window).trigger("YoastSEO:numericScore",e)},q.prototype.saveContentScore=function(e){var t=Object(U.a)(e);A.updateScore("content",t.className),Object(z.a)()||(Object(I.a)(t),Object(P.a)(t)),Y("#yoast_wpseo_content_score").val(e)},q.prototype.saveInclusiveLanguageScore=function(e){const t=Object(U.a)(e);A.updateScore("inclusive-language",t.className),Object(z.a)()||Object($.a)()||(Object(I.a)(t),Object(P.a)(t)),Y("#yoast_wpseo_inclusive_language_score").val(e)};var K=q,V=n(119),Q=n(113),W=n(117),Z=n(201),H=n(190),G=n(91),J=n(55),X=n(202),ee=n(17);const{setFocusKeyword:te,setMarkerStatus:ne,updateData:se,setCornerstoneContent:ie,refreshSnippetEditor:re,setReadabilityResults:oe,setSeoResultsForKeyword:ae}=ee.actions;function ce(e,t,n){if("undefined"==typeof wpseoScriptData)return;let s,i,r,o;const c=new Z.a;function l(e){return""===e.responseText?i.val():jQuery("<div>"+e.responseText+"</div>").find("#editable-post-name-full").text()}function p(){const e={};return Object(z.a)()&&(e.output="does-not-really-exist-but-it-needs-something"),Object($.a)()&&(e.contentOutput="also-does-not-really-exist-but-it-needs-something"),e}function u(e){Object(a.isUndefined)(e.seoAssessorPresenter)||(e.seoAssessorPresenter.render=function(){}),Object(a.isUndefined)(e.contentAssessorPresenter)||(e.contentAssessorPresenter.render=function(){},e.contentAssessorPresenter.renderIndividualRatings=function(){})}let h;function f(e,t){const n=h||"";h=e.getState().analysisData.snippet,!Object(b.isShallowEqualObjects)(n,h)&&t()}function _(e,t){"visual"!==e?t.dispatch(ne("disabled")):t.dispatch(ne("enabled"))}function v(){return Object(d.select)("core/edit-post").getEditorMode()}jQuery(document).on("ajaxComplete",(function(e,n,s){if("/admin-ajax.php"===s.url.substr(0-"/admin-ajax.php".length)&&"string"==typeof s.data&&-1!==s.data.indexOf("action=sample-permalink")){o.leavePostNameUntouched=!0;const e={slug:l(n)};t.dispatch(se(e))}})),function(){if(s=e("#wpseo_meta"),E.setStore(t),E.wpTextViewOnInitCheck(),function(){const e=new C.a;e.isClassicEditorHidden()&&E.disableMarkerButtons(),e.vcActive?E.disableMarkerButtons():e.listen({classicEditorHidden:()=>{E.disableMarkerButtons()},classicEditorShown:()=>{E.isTextViewActive()||E.enableMarkerButtons()}})}(),0===s.length)return;o=function(e){const n=new K({data:e,store:t});return n.leavePostNameUntouched=!1,n}(n),A.initialize();const l=function(t){!function(e){(void 0===window.tinyMCE||Object(g.a)()||"1"!==wpseoScriptData.metabox.show_markers)&&e.dispatch(ne("disabled"))}(t);const n={elementTarget:[E.tmceId,"yoast_wpseo_focuskw_text_input","yoast_wpseo_metadesc","excerpt","editable-post-name","editable-post-name-full"],targets:p(),callbacks:{getData:o.getData.bind(o)},locale:wpseoScriptData.metabox.contentLocale,marker:Object(H.a)(t),contentAnalysisActive:Object($.a)(),keywordAnalysisActive:Object(z.a)(),hasSnippetPreview:!1,debouncedRefresh:!1,researcher:new window.yoast.Researcher.default};Object(z.a)()&&(t.dispatch(te(e("#yoast_wpseo_focuskw").val())),n.callbacks.saveScores=o.saveScores.bind(o),n.callbacks.updatedKeywordsResults=function(e){const n=t.getState().focusKeyword;t.dispatch(ae(n,e)),t.dispatch(re())}),Object($.a)()&&(n.callbacks.saveContentScore=o.saveContentScore.bind(o),n.callbacks.updatedContentResults=function(e){t.dispatch(oe(e)),t.dispatch(re())}),i=e("#title");const s=Object(V.a)();return Object(a.isUndefined)(s)||Object(a.isUndefined)(s.domain)||(n.translations=s),n}(t);r=new m.App(l),window.YoastSEO=window.YoastSEO||{},window.YoastSEO.app=r,window.YoastSEO.store=t,window.YoastSEO.analysis={},window.YoastSEO.analysis.worker=Object(D.a)(),window.YoastSEO.analysis.collectData=()=>Object(B.a)(n,t,c,r.pluggable,Object(d.select)("core/block-editor")),window.YoastSEO.analysis.applyMarks=(e,t)=>Object(H.a)()(e,t),window.YoastSEO.app.refresh=Object(a.debounce)(()=>Object(M.default)(window.YoastSEO.analysis.worker,window.YoastSEO.analysis.collectData,window.YoastSEO.analysis.applyMarks,t,o),G.refreshDelay),window.YoastSEO.app.registerCustomDataCallback=c.register,window.YoastSEO.app.pluggable=new R.a(window.YoastSEO.app.refresh),window.YoastSEO.app.registerPlugin=window.YoastSEO.app.pluggable._registerPlugin,window.YoastSEO.app.pluginReady=window.YoastSEO.app.pluggable._ready,window.YoastSEO.app.pluginReloaded=window.YoastSEO.app.pluggable._reloaded,window.YoastSEO.app.registerModification=window.YoastSEO.app.pluggable._registerModification,window.YoastSEO.app.registerAssessment=(e,t,n)=>{if(!Object(a.isUndefined)(r.seoAssessor))return window.YoastSEO.app.pluggable._registerAssessment(r.defaultSeoAssessor,e,t,n)&&window.YoastSEO.app.pluggable._registerAssessment(r.cornerStoneSeoAssessor,e,t,n)},window.YoastSEO.app.changeAssessorOptions=function(e){window.YoastSEO.analysis.worker.initialize(e).catch(J.a),window.YoastSEO.app.refresh()},Object(X.a)(r.refresh,"get_focus_keyword_usage_and_post_types",t),t.subscribe(f.bind(null,t,r.refresh)),window.YoastSEO.analyzerArgs=l,window.YoastSEO.wp={},window.YoastSEO.wp.replaceVarsPlugin=new y.a(r,t),window.YoastSEO.wp.shortcodePlugin=new x({registerPlugin:r.registerPlugin,registerModification:r.registerModification,pluginReady:r.pluginReady,pluginReloaded:r.pluginReloaded}),Object(g.a)()&&new class{constructor(e,t,n){this._registerPlugin=e,this._registerModification=t,this._refreshAnalysis=n,this._reusableBlocks={},this._selectCore=Object(d.select)("core"),this._selectCoreEditor=Object(d.select)("core/editor"),this.reusableBlockChangeListener=this.reusableBlockChangeListener.bind(this),this.parseReusableBlocks=this.parseReusableBlocks.bind(this)}register(){this._registerPlugin("YoastReusableBlocksPlugin",{status:"ready"}),this._registerModification("content",this.parseReusableBlocks,"YoastReusableBlocksPlugin",1),Object(d.subscribe)(Object(a.debounce)(this.reusableBlockChangeListener,500))}reusableBlockChangeListener(){const{blocks:e}=this._selectCoreEditor.getPostEdits();if(!e)return;let t=!1;e.forEach(e=>{if(!Object(w.isReusableBlock)(e))return;const n=this.getBlockContent(e.attributes.ref);this._reusableBlocks[e.attributes.ref]?this._reusableBlocks[e.attributes.ref].content!==n&&(this._reusableBlocks[e.attributes.ref].content=n,t=!0):(this._reusableBlocks[e.attributes.ref]={id:e.attributes.ref,clientId:e.clientId,content:n},t=!0)}),t&&this._refreshAnalysis()}parseReusableBlocks(e){const t=/<!-- wp:block {"ref":(\d+)} \/-->/g;return e.match(t)?e.replace(t,(t,n)=>this._reusableBlocks[n]&&this._reusableBlocks[n].content?this._reusableBlocks[n].content:e):e}getBlockContent(e){const t=this._selectCore.getEditedEntityRecord("postType","wp_block",e);if(t){if(Object(a.isFunction)(t.content))return t.content(t);if(t.blocks)return Object(w.__unstableSerializeAndClean)(t.blocks);if(t.content)return t.content}return""}}(r.registerPlugin,r.registerModification,window.YoastSEO.app.refresh).register(),wpseoScriptData.metabox.markdownEnabled&&new class{constructor(e,t){this._registerPlugin=e,this._registerModification=t}register(){this._registerPlugin("YoastMarkdownPlugin",{status:"ready"}),this._registerModification("content",this.parseMarkdown.bind(this),"YoastMarkdownPlugin",1)}parseMarkdown(e){return S()(e)}}(r.registerPlugin,r.registerModification).register(),window.YoastSEO.wp._tinyMCEHelper=E,Object(z.a)()&&function(t){const n=e("#yoast_wpseo_linkdex").val(),s=Object(U.a)(n);Object(I.a)(s),Object(P.a)(s),t.updateScore("keyword",s.className)}(A),Object($.a)()&&function(t){const n=e("#yoast_wpseo_content_score").val(),s=Object(U.a)(n);Object(P.a)(s),t.updateScore("content",s.className)}(A),Object(Q.a)()&&function(t){const n=e("#yoast_wpseo_inclusive_language_score").val(),s=Object(U.a)(n);Object(P.a)(s),t.updateScore("inclusive-language",s.className)}(A),window.YoastSEO.analysis.worker.initialize(Object(D.b)()).then(()=>{jQuery(window).trigger("YoastSEO:ready")}).catch(J.a),o.bindElementEvents(Object(a.debounce)(()=>Object(M.default)(window.YoastSEO.analysis.worker,window.YoastSEO.analysis.collectData,window.YoastSEO.analysis.applyMarks,t,o),G.refreshDelay)),u(r);const h=r.initAssessorPresenters.bind(r);r.initAssessorPresenters=function(){h(),u(r)},n.setRefresh&&n.setRefresh(r.refresh);let b=W.a.getDataFromCollector(o);const k=W.a.getTemplatesFromL10n(wpseoScriptData.metabox);b=W.a.getDataWithTemplates(b,k),t.dispatch(se(b)),t.dispatch(ie("1"===document.getElementById("yoast_wpseo_is_cornerstone").value));let O=t.getState().focusKeyword;Object(T.a)(window.YoastSEO.analysis.worker.runResearch,t,O);const j=Object(a.debounce)(()=>{r.refresh()},50);let F=null;if(t.subscribe(()=>{const n=t.getState().focusKeyword;O!==n&&(O=n,Object(T.a)(window.YoastSEO.analysis.worker.runResearch,t,O),e("#yoast_wpseo_focuskw").val(O),j());const s=W.a.getDataFromStore(t),i=W.a.getDataWithoutTemplates(s,k);b.title!==s.title&&o.setDataFromSnippet(i.title,"snippet_title"),b.slug!==s.slug&&o.setDataFromSnippet(i.slug,"snippet_cite"),b.description!==s.description&&o.setDataFromSnippet(i.description,"snippet_meta");const a=t.getState();F!==a.isCornerstone&&(F=a.isCornerstone,document.getElementById("yoast_wpseo_is_cornerstone").value=a.isCornerstone,r.changeAssessorOptions({useCornerstone:a.isCornerstone})),b.title=s.title,b.slug=s.slug,b.description=s.description}),Object(g.a)()){let e=v();_(e,t),Object(d.subscribe)(()=>{const n=v();n!==e&&(e=n,_(e,t))})}Object(M.initializationDone)(),window.YoastSEO.app.refresh()}()}window.YoastReplaceVarPlugin=y.a,window.YoastShortcodePlugin=x;var le=n(11),pe=n.n(le),de=n(0),ue=n(2),he=n.n(ue),ge=n(13),fe=n(8),me=n.n(fe),be=n(15),ye=n(27),we=n.n(ye),_e=n(21);const ve=me.a.div`
	padding-top: 6px;
`,ke=e=>{const{value:t,id:n,terms:s,onChange:i}=e;return Object(de.createElement)(ve,null,Object(de.createElement)("select",{className:"components-select-control__input",id:n,value:t,onChange:e=>{i(parseInt(e.target.value,10))}},s.map(e=>Object(de.createElement)("option",{key:e.id,value:e.id},Object(a.unescape)(e.name)))))};ke.propTypes={terms:he.a.arrayOf(he.a.shape({id:he.a.string.isRequired,name:he.a.string.isRequired})),onChange:he.a.func.isRequired,id:he.a.string,value:he.a.string};var Oe=ke;const xe=me.a.div`
	padding-top: 16px;
`;class je extends de.Component{constructor(e){super(e),this.onChange=this.onChange.bind(this),this.updateReplacementVariable=this.updateReplacementVariable.bind(this);const{fieldId:t,name:n}=e.taxonomy;this.input=document.getElementById(t),e.setPrimaryTaxonomyId(n,parseInt(this.input.value,10)),this.state={selectedTerms:[],terms:[]}}componentDidMount(){this.fetchTerms()}componentDidUpdate(e,t){if(e.selectedTermIds.length<this.props.selectedTermIds.length){const t=Object(a.difference)(this.props.selectedTermIds,e.selectedTermIds)[0];if(!this.termIsAvailable(t))return void this.fetchTerms()}e.selectedTermIds!==this.props.selectedTermIds&&this.updateSelectedTerms(this.state.terms,this.props.selectedTermIds),t.selectedTerms!==this.state.selectedTerms&&this.handleSelectedTermsChange()}handleSelectedTermsChange(){const{selectedTerms:e}=this.state,{primaryTaxonomyId:t}=this.props;e.find(e=>e.id===t)||this.onChange(e.length?e[0].id:-1)}termIsAvailable(e){return!!this.state.terms.find(t=>t.id===e)}fetchTerms(){const{taxonomy:e}=this.props;e&&(this.fetchRequest=we()({path:Object(_e.addQueryArgs)("/wp/v2/"+e.restBase,{per_page:-1,orderby:"count",order:"desc",_fields:"id,name"})}),this.fetchRequest.then(e=>{const t=this.state;this.setState({terms:e,selectedTerms:this.getSelectedTerms(e,this.props.selectedTermIds)},()=>{0===t.terms.length&&this.state.terms.length>0&&this.updateReplacementVariable(this.props.primaryTaxonomyId)})}))}getSelectedTerms(e,t){return e.filter(e=>t.includes(e.id))}updateSelectedTerms(e,t){const n=this.getSelectedTerms(e,t);this.setState({selectedTerms:n})}onChange(e){const{name:t}=this.props.taxonomy;this.updateReplacementVariable(e),this.props.setPrimaryTaxonomyId(t,e),this.input.value=-1===e?"":e}updateReplacementVariable(e){if("category"!==this.props.taxonomy.name)return;const t=this.state.selectedTerms.find(t=>t.id===e);this.props.updateReplacementVariable("primary_"+this.props.taxonomy.name,t?t.name:"")}render(){const{primaryTaxonomyId:e,taxonomy:t}=this.props;if(this.state.selectedTerms.length<2)return null;const n=`yoast-primary-${t.name}-picker`;return Object(de.createElement)(xe,{className:"components-base-control__field"},Object(de.createElement)("label",{htmlFor:n,className:"components-base-control__label"},Object(F.sprintf)(
/* translators: %s expands to the taxonomy name. */
Object(F.__)("Select the primary %s","wordpress-seo"),t.singularLabel.toLowerCase())),Object(de.createElement)(Oe,{value:e,onChange:this.onChange,id:n,terms:this.state.selectedTerms}))}}je.propTypes={selectedTermIds:he.a.arrayOf(he.a.number),primaryTaxonomyId:he.a.number,setPrimaryTaxonomyId:he.a.func,updateReplacementVariable:he.a.func,receiveEntityRecords:he.a.func,taxonomy:he.a.shape({name:he.a.string,fieldId:he.a.string,restBase:he.a.string,singularLabel:he.a.string})};var Se=je,Ee=Object(be.compose)([Object(d.withSelect)((e,t)=>{const n=e("core/editor"),s=e("yoast-seo/editor"),{taxonomy:i}=t;return{selectedTermIds:n.getEditedPostAttribute(i.restBase)||[],primaryTaxonomyId:s.getPrimaryTaxonomyId(i.name)}}),Object(d.withDispatch)(e=>{const{setPrimaryTaxonomyId:t,updateReplacementVariable:n}=e("yoast-seo/editor");return{setPrimaryTaxonomyId:t,updateReplacementVariable:n}})])(Se);let Ce=null,Re=null;const Te=me.a.div`
	margin: 16px 0 8px;
`;class Ae extends de.Component{constructor(){super(),Ce&&Re||(Ce=Object(a.get)(window.wpseoPrimaryCategoryL10n,"taxonomies",{}),Re=Object(a.values)(Ce).map(e=>e.name)),this.state={exceptionCaught:!1,error:null}}componentDidCatch(e){this.setState({exceptionCaught:!0,error:e})}taxonomyHasPrimaryTermSupport(){return Re.includes(this.props.slug)}render(){const{slug:e,OriginalComponent:t}=this.props;if(this.state.exceptionCaught){const e=Object(a.get)(this.state,"error.stack");return Object(de.createElement)(de.Fragment,null,Object(de.createElement)(t,this.props),Object(de.createElement)(Te,null,Object(F.sprintf)(
/* translators: %s expands to Yoast SEO. */
Object(F.__)("An error occurred loading the %s primary taxonomy picker.","wordpress-seo"),"Yoast SEO")),e&&Object(de.createElement)(ge.ClipboardButton,{isLarge:!0,text:e},Object(F.__)("Copy error","wordpress-seo")))}return this.taxonomyHasPrimaryTermSupport()?Object(de.createElement)(de.Fragment,null,Object(de.createElement)(t,this.props),Object(de.createElement)(Ee,{taxonomy:Ce[e]})):Object(de.createElement)(t,this.props)}}Ae.propTypes={OriginalComponent:he.a.func.isRequired,slug:he.a.string.isRequired};var Ie=Ae;var Pe=n(161);window.wpseoPostScraperL10n=window.wpseoScriptData.metabox,window.wpseoShortcodePluginL10n=window.wpseoScriptData.analysis.plugins.shortcodes,window.YoastSEO=window.YoastSEO||{},i()(()=>{Object(f.a)(o.a),"undefined"!=typeof wpseoPrimaryCategoryL10n&&function(e){var t,n,s=wpseoPrimaryCategoryL10n.taxonomies;function i(t){return e("#yoast-wpseo-primary-"+t).val()}function r(t,n){e("#yoast-wpseo-primary-"+t).val(n).trigger("change");const s=Object(d.dispatch)("yoast-seo/editor");if(s){const i=parseInt(n,10);s.setPrimaryTaxonomyId(t,i),"category"===t&&s.updateReplacementVariable("primary_category",function(t){const n=e("#category-all").find(`#category-${t} > label`);if(0===n.length)return"";const s=n.clone();return s.children().remove(),s.text().trim()}(i))}}function o(r){var o,a,c;o=e("#"+r+'checklist input[type="checkbox"]:checked');var l=e("#"+r+"checklist li");l.removeClass("wpseo-term-unchecked wpseo-primary-term wpseo-non-primary-term"),e(".wpseo-primary-category-label").remove(),l.addClass("wpseo-term-unchecked"),o.length<=1||o.each((function(o,l){l=e(l),(a=l.closest("li")).removeClass("wpseo-term-unchecked"),1!==e(l).closest("li").children(".wpseo-make-primary-term").length&&function(n,i){var r,o;r=e(i).closest("label"),o=t({taxonomy:s[n],term:r.text()}),r.after(o)}(r,l),l.val()===i(r)?(a.addClass("wpseo-primary-term"),(c=l.closest("label")).find(".wpseo-primary-category-label").remove(),c.append(n({taxonomy:s[r]}))):a.addClass("wpseo-non-primary-term")}))}function c(t){r(t,e("#"+t+'checklist input[type="checkbox"]:checked:first').val()),o(t)}function l(e){""===i(e)&&c(e)}e.fn.initYstSEOPrimaryCategory=function(){return this.each((function(t,n){const s=e("#"+n.name+"div");var a;o(n.name),s.on("click",'input[type="checkbox"]',(a=n.name,function(){!1===e(this).prop("checked")&&e(this).val()===i(a)&&c(a),l(a),o(a)})),s.on("wpListAddEnd","#"+n.name+"checklist",function(e){return function(){l(e),o(e)}}(n.name)),s.on("click",".wpseo-make-primary-term",function(t){return function(n){var s;s=e(n.currentTarget).siblings("label").find("input"),r(t,s.val()),o(t),s.trigger("focus")}}(n.name))}))},t=wp.template("primary-term-ui"),n=wp.template("primary-term-screen-reader"),e(_.values(s)).initYstSEOPrimaryCategory(),Object(g.a)()&&Object(a.get)(window,"wp.hooks.addFilter",a.noop)("editor.PostTaxonomyType","yoast-seo",e=>class extends de.Component{render(){return Object(de.createElement)(Ie,pe()({OriginalComponent:e},this.props))}})}(o.a);const e=Object(p.a)();window.yoast.initEditorIntegration(e);const t=new window.yoast.EditorData(a.noop,e);t.initialize(window.wpseoScriptData.analysis.plugins.replaceVars.replace_vars,window.wpseoScriptData.analysis.plugins.replaceVars.hidden_replace_vars),ce(o.a,e,t),window.wpseoScriptData&&void 0!==window.wpseoScriptData.featuredImage&&function(e){var t,n,s,i=function(e){this._app=e,this.featuredImage=null,this.pluginName="addFeaturedImagePlugin",this.registerPlugin(),this.registerModifications()};function r(){e("#yst_opengraph_image_warning").remove(),n.removeClass("yoast-opengraph-image-notice")}i.prototype.setFeaturedImage=function(e){this.featuredImage=e,this._app.pluginReloaded(this.pluginName)},i.prototype.removeFeaturedImage=function(){this.setFeaturedImage(null)},i.prototype.registerPlugin=function(){this._app.registerPlugin(this.pluginName,{status:"ready"})},i.prototype.registerModifications=function(){this._app.registerModification("content",this.addImageToContent.bind(this),this.pluginName,10)},i.prototype.addImageToContent=function(e){return null!==this.featuredImage&&(e+=this.featuredImage),e};var o=wp.media.featuredImage.frame();if("undefined"==typeof YoastSEO)return;if(t=new i(YoastSEO.app),n=e("#postimagediv"),s=n.find(".hndle"),o.on("select",(function(){var i,a,c;!function(t){var i=t.state().get("selection").first().toJSON();i.width<200||i.height<200?0===e("#yst_opengraph_image_warning").length&&(e('<div id="yst_opengraph_image_warning" class="notice notice-error notice-alt"><p>'+wpseoScriptData.featuredImage.featured_image_notice+"</p></div>").insertAfter(s),n.addClass("yoast-opengraph-image-notice"),h()(wpseoScriptData.featuredImage.featured_image_notice,"assertive")):r()}(o),c=(a=o.state().get("selection").first()).get("alt"),i='<img src="'+a.get("url")+'" width="'+a.get("width")+'" height="'+a.get("height")+'" alt="'+c+'"/>',t.setFeaturedImage(i)})),n.on("click","#remove-post-thumbnail",(function(){t.removeFeaturedImage(),r()})),void 0!==e("#set-post-thumbnail > img").prop("src")&&t.setFeaturedImage(e("#set-post-thumbnail ").html()),!Object(g.a)())return;let a,c;Object(d.subscribe)(()=>{const e=Object(d.select)("core/editor").getEditedPostAttribute("featured_media");if(function(e){return"number"==typeof e&&e>0}(e)&&(a=Object(d.select)("core").getMedia(e),void 0!==a&&a!==c)){c=a;const e=`<img src="${a.source_url}" alt="${a.alt_text}" >`;t.setFeaturedImage(e)}})}(o.a),Object(l.a)(o.a),Object(c.a)(o.a),Object(Pe.a)()})}]);