https://t.me/RX1948
Server : Apache
System : Linux s1230 5.15.0-139-generic #149~20.04.1 SMP Tue Jul 14 11:21:49 UTC 2026 x86_64
User : p141464 ( 418825)
PHP Version : 7.4.33.12
Disable Function : NONE
Directory :  /html/KMU-CSR-PLANER/wp-content/themes/betheme/visual-builder/integrations/yoast/js/dist/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /html/KMU-CSR-PLANER/wp-content/themes/betheme/visual-builder/integrations/yoast/js/dist/betheme.js
(()=>{var e={6942(e,t){var n;!function(){"use strict";var r={}.hasOwnProperty;function o(){for(var e="",t=0;t<arguments.length;t++){var n=arguments[t];n&&(e=i(e,a(n)))}return e}function a(e){if("string"==typeof e||"number"==typeof e)return e;if("object"!=typeof e)return"";if(Array.isArray(e))return o.apply(null,e);if(e.toString!==Object.prototype.toString&&!e.toString.toString().includes("[native code]"))return e.toString();var t="";for(var n in e)r.call(e,n)&&e[n]&&(t=i(t,n));return t}function i(e,t){return t?e?e+" "+t:e+t:e}e.exports?(o.default=o,e.exports=o):void 0===(n=function(){return o}.apply(t,[]))||(e.exports=n)}()}},t={};function n(r){var o=t[r];if(void 0!==o)return o.exports;var a=t[r]={exports:{}};return e[r](a,a.exports,n),a.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{var e;globalThis.importScripts&&(e=globalThis.location+"");var t=globalThis.document;if(!e&&t&&(t.currentScript&&"SCRIPT"===t.currentScript.tagName.toUpperCase()&&(e=t.currentScript.src),!e)){var r=t.getElementsByTagName("script");if(r.length)for(var o=r.length-1;o>-1&&(!e||!/^http(s?):/.test(e));)e=r[o--].src}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/^blob:/,"").replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),n.p=e})(),(()=>{"use strict";var e={};n.r(e),n.d(e,{DISMISS_ALERT:()=>Rl,NEW_REQUEST:()=>Sl,SNIPPET_EDITOR_FIND_CUSTOM_FIELDS:()=>El,wistiaEmbedPermission:()=>xl});var t={};n.r(t),n.d(t,{loadSnippetEditorData:()=>Il,updateData:()=>Cl});var r={};n.r(r),n.d(r,{getSnippetEditorData:()=>Nl,getSnippetEditorSlug:()=>ql});var o={};n.r(o),n.d(o,{getAnalysisData:()=>Vl});var a={};n.r(a),n.d(a,{getWincherPermalink:()=>gu});var i={};n.r(i),n.d(i,{authorFirstName:()=>yu,authorLastName:()=>vu,category:()=>Eu,categoryTitle:()=>_u,currentDate:()=>wu,currentDay:()=>bu,currentMonth:()=>Ru,currentYear:()=>ku,date:()=>Su,excerpt:()=>xu,focusKeyphrase:()=>Tu,id:()=>Ou,modified:()=>Pu,name:()=>Cu,page:()=>Iu,pageNumber:()=>Lu,pageTotal:()=>ju,permalink:()=>Au,postContent:()=>Du,postDay:()=>Fu,postMonth:()=>Mu,postTypeNamePlural:()=>Nu,postTypeNameSingular:()=>Uu,postYear:()=>qu,primaryCategory:()=>Wu,searchPhrase:()=>Bu,separator:()=>Ku,siteDescription:()=>Hu,siteName:()=>Gu,tag:()=>Yu,term404:()=>Vu,termDescription:()=>zu,termHierarchy:()=>$u,termTitle:()=>Zu,title:()=>Qu,userDescription:()=>Xu});const s=window.wp.data,c=window.wp.hooks;function l(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.includes(n)||{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function u(e){return u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},u(e)}function p(e){var t=function(e){if("object"!=u(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=u(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==u(t)?t:t+""}function d(e,t,n){return(t=p(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function f(e,t,n,r,o,a,i){try{var s=e[a](i),c=s.value}catch(e){return void n(e)}s.done?t(c):Promise.resolve(c).then(r,o)}function m(e){return function(){var t=this,n=arguments;return new Promise(function(r,o){var a=e.apply(t,n);function i(e){f(a,r,o,i,s,"next",e)}function s(e){f(a,r,o,i,s,"throw",e)}i(void 0)})}}const h=window.lodash,g=window.yoast.analysis;function y(){}const v=window.yoast.externals.redux;function w(e){return e.sort(function(e,t){return e._identifier.localeCompare(t._identifier)})}function b(){return(0,h.get)(window,"wpseoScriptData.metabox",{intl:{},isRtl:!1})}function R(){var e=b();return(0,h.get)(e,"contentLocale","en_US")}function E(){var e=b();return!0===(0,h.get)(e,"keywordAnalysisActive",!1)}function _(){var e=b();return!0===(0,h.get)(e,"inclusiveLanguageAnalysisActive",!1)}const k=window.yoast.featureFlag;function S(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function x(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,p(r.key),r)}}function T(e,t,n){return t&&x(e.prototype,t),n&&x(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}var O=function(){return T(function e(t){S(this,e),this.refresh=t,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)},[{key:"_registerPlugin",value:function(e,t){return(0,h.isString)(e)?(0,h.isUndefined)(t)||(0,h.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)}},{key:"_ready",value:function(e){return(0,h.isString)(e)?(0,h.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)}},{key:"_reloaded",value:function(e){return(0,h.isString)(e)?(0,h.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)}},{key:"_registerModification",value:function(e,t,n,r){if(!(0,h.isString)(e))return console.error("Failed to register modification for plugin "+n+". Expected parameter `modification` to be a string."),!1;if(!(0,h.isFunction)(t))return console.error("Failed to register modification for plugin "+n+". Expected parameter `callable` to be a function."),!1;if(!(0,h.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;var o={callable:t,origin:n,priority:(0,h.isNumber)(r)?r:10};return(0,h.isUndefined)(this.modifications[e])&&(this.modifications[e]=[]),this.modifications[e].push(o),!0}},{key:"_registerAssessment",value:function(e,t,n,r){return(0,h.isString)(t)?(0,h.isObject)(n)?(0,h.isString)(r)?(t=r+"-"+t,e.addAssessment(t,n),!0):(console.error("Failed to register assessment for plugin "+r+". Expected parameter `pluginName` to be a string."),!1):(console.error("Failed to register assessment for plugin "+r+". Expected parameter `assessment` to be a function."),!1):(console.error("Failed to register test for plugin "+r+". Expected parameter `name` to be a string."),!1)}},{key:"_applyModifications",value:function(e,t,n){var r=this.modifications[e];return!(0,h.isArray)(r)||r.length<1||((r=this._stripIllegalModifications(r)).sort(function(e,t){return e.priority-t.priority}),(0,h.forEach)(r,function(r){var o=r.callable(t,n);u(o)===u(t)?t=o:console.error("Modification with name "+e+" performed by plugin with name "+r.origin+" was ignored because the data that was returned by it was of a different type than the data we had passed it.")})),t}},{key:"_pollLoadingPlugins",value:function(e){e=(0,h.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))}},{key:"_allReady",value:function(){return(0,h.reduce)(this.plugins,function(e,t){return e&&"ready"===t.status},!0)}},{key:"_pollTimeExceeded",value:function(){(0,h.forEach)(this.plugins,function(e,t){(0,h.isUndefined)(e.options)||"ready"===e.options.status||(console.error("Error: Plugin "+t+". did not finish loading in time."),delete this.plugins[t])})}},{key:"_stripIllegalModifications",value:function(e){var t=this;return(0,h.forEach)(e,function(n,r){!1===t._validateOrigin(n.origin)&&delete e[r]}),e}},{key:"_validateOrigin",value:function(e){return"ready"===this.plugins[e].status}},{key:"_validateUniqueness",value:function(e){return(0,h.isUndefined)(this.plugins[e])}}])}(),P=null,C=function(){if(null===P){var e=(0,s.dispatch)("yoast-seo/editor").runAnalysis;P=window.YoastSEO.app&&window.YoastSEO.app.pluggable?window.YoastSEO.app.pluggable:new O(e)}return P},I=function(e){return C()._ready(e)},L=function(e){return C()._reloaded(e)},j=function(e,t,n,r){return C()._registerModification(e,t,n,r)},A=function(e,t){return C()._registerPlugin(e,t)},D=function(e,t,n){return C().loaded?C()._applyModifications(e,t,n):t};function F(e,t){return e._properties.position.startOffset>t.length||e._properties.position.endOffset>t.length}function M(e,t,n){var r=e.dom,o=e.getContent();if(o=g.markers.removeMarks(o),(0,h.isEmpty)(n))e.setContent(o);else{o=n[0].hasPosition()?function(e,t){if(!t)return"";e=(0,h.orderBy)(e,function(e){return e._properties.position.startOffset},["asc"]);for(var n=e.length-1;n>=0;n--){var r=e[n];F(r,t)||(t=r.applyWithPosition(t))}return t}(n,o):function(e,t,n,r){var o=g.languageProcessing.getFieldsToMark(n,r),a=o.fieldsToMark,i=o.selectedHTML;return(0,h.forEach)(n,function(t){"acf_content"!==e.id&&(t._properties.marked=g.languageProcessing.normalizeHTML(t._properties.marked),t._properties.original=g.languageProcessing.normalizeHTML(t._properties.original)),a.length>0?i.forEach(function(e){var n=t.applyWithReplace(e);r=r.replace(e,n)}):r=t.applyWithReplace(r)}),r}(e,0,n,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);var a=r.select("yoastmark");(0,h.forEach)(a,function(e){e.setAttribute("data-mce-bogus","1")})}}function q(e){return window.test=e,M.bind(null,e)}h.noop,h.noop,h.noop;var N="content";function U(e){if("undefined"==typeof tinyMCE||void 0===tinyMCE.editors||0===tinyMCE.editors.length)return!1;var t=tinyMCE.get(e);return null!==t&&!t.isHidden()}window.wp.annotations;const W=window.wp.richText;function B(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function K(e,t){if(e){if("string"==typeof e)return B(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?B(e,t):void 0}}function H(e){return function(e){if(Array.isArray(e))return B(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||K(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function G(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,s=[],c=!0,l=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){l=!0,o=e}finally{try{if(!c&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(l)throw o}}return s}}(e,t)||K(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var Y=/(<([a-z]|\/)[^<>]+>)/gi,V=g.helpers.htmlEntities.htmlEntitiesRegex,z=function(e){var t=0;return(0,h.forEachRight)(e,function(e){var n=G(e,1)[0],r=n.length;/^<\/?br/.test(n)&&(r-=1),t+=r}),t},$="<yoastmark class='yoast-text-mark'>",Z="</yoastmark>",Q='<yoastmark class="yoast-text-mark">';function X(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function J(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?X(Object(n),!0).forEach(function(t){d(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):X(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function ee(e,t,n,r,o){var a=r.clientId,i=(0,W.create)({html:e,multilineTag:n.multilineTag,multilineWrapperTag:n.multilineWrapperTag}).text;return(0,h.flatMap)(o,function(n){var o;return o=n.hasBlockPosition&&n.hasBlockPosition()?function(e,t,n,r,o){if(t===e.getBlockClientId()){var a=e.getBlockPositionStart(),i=e.getBlockPositionEnd();if(e.isMarkForFirstBlockSection()){var s=function(e,t,n){var r="yoast/faq-block"===n?'<strong class="schema-faq-question">':'<strong class="schema-how-to-step-name">';return{blockStartOffset:e-=r.length,blockEndOffset:t-=r.length}}(a,i,n);a=s.blockStartOffset,i=s.blockEndOffset}if(r.slice(a,i)===o.slice(a,i))return[{startOffset:a,endOffset:i}];var c=function(e,t,n){var r=n.slice(0,e),o=n.slice(0,t),a=function(e,t,n,r){var o=H(e.matchAll(Y));n-=z(o);var a=H(t.matchAll(Y));return{blockStartOffset:n,blockEndOffset:r-=z(a)}}(r,o,e,t),i=function(e,t,n,r){var o=H(e.matchAll(V));return(0,h.forEachRight)(o,function(e){var t=G(e,2)[1];n-=t.length}),o=H(t.matchAll(V)),(0,h.forEachRight)(o,function(e){var t=G(e,2)[1];r-=t.length}),{blockStartOffset:n,blockEndOffset:r}}(r,o,e=a.blockStartOffset,t=a.blockEndOffset);return{blockStartOffset:e=i.blockStartOffset,blockEndOffset:t=i.blockEndOffset}}(a,i,r);return[{startOffset:c.blockStartOffset,endOffset:c.blockEndOffset}]}return[]}(n,a,r.name,e,i):function(e,t){var n=t.getOriginal().replace(/(<([^>]+)>)/gi,""),r=t.getMarked().replace(/(<(?!\/?yoastmark)[^>]+>)/gi,""),o=function(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],r=[];if(0===e.length)return r;var o,a=0;for(n||(t=t.toLowerCase(),e=e.toLowerCase());(o=e.indexOf(t,a))>-1;)r.push(o),a=o+t.length;return r}(e,n);if(0===o.length)return[];var a=function(e){var t=e.indexOf($),n=t>=0;n||(t=e.indexOf(Q));for(var r=null,o=[];t>=0;){if((r=(e=n?e.replace($,""):e.replace(Q,"")).indexOf(Z))<t)return[];e=e.replace(Z,""),o.push({startOffset:t,endOffset:r}),t=n?e.indexOf($):e.indexOf(Q),r=null}return o}(r),i=[];return a.forEach(function(e){o.forEach(function(r){var o=r+e.startOffset,a=r+e.endOffset;0===e.startOffset&&e.endOffset===t.getOriginal().length&&(a=r+n.length),i.push({startOffset:o,endOffset:a})})}),i}(i,n),o?o.map(function(e){return J(J({},e),{},{block:a,richTextIdentifier:t})}):[]})}var te=function(e){return e[0].toUpperCase()+e.slice(1)},ne=function(e,t,n,r,o){return e=e.map(function(e){var a="".concat(e.id,"-").concat(o[0]),i="".concat(e.id,"-").concat(o[1]),s=te(o[0]),c=te(o[1]),l=e["json".concat(s)],u=e["json".concat(c)],p=function(e,t){return{marksForFirstSection:e.filter(function(e){return e.hasBlockPosition&&e.hasBlockPosition()?e.getBlockAttributeId()===t.id&&e.isMarkForFirstBlockSection():e}),marksForSecondSection:e.filter(function(e){return e.hasBlockPosition&&e.hasBlockPosition()?e.getBlockAttributeId()===t.id&&!e.isMarkForFirstBlockSection():e})}}(t,e),d=p.marksForFirstSection,f=p.marksForSecondSection,m=ee(l,a,n,r,d),h=ee(u,i,n,r,f);return m.concat(h)}),(0,h.flattenDeep)(e)},re="yoast",oe=[],ae={"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"},{key:"jsonDescription"}]};function ie(){var e=oe.shift();e&&((0,s.dispatch)("core/annotations").__experimentalAddAnnotation(e),se())}function se(){(0,h.isFunction)(window.requestIdleCallback)?window.requestIdleCallback(ie,{timeout:1e3}):setTimeout(ie,150)}function ce(e,t){return(0,h.flatMap)(e,function(e){var n=function(e){return e.innerBlocks.length>0}(e)?ce(e.innerBlocks,t):[];return function(e,t){return(0,h.flatMap)((n=e.name,ae.hasOwnProperty(n)?ae[n]:[]),function(n){return"yoast/faq-block"===e.name?function(e,t,n){var r=t.attributes[e.key];return 0===r.length?[]:ne(r,n,e,t,["question","answer"])}(n,e,t):"yoast/how-to-block"===e.name?function(e,t,n){var r=t.attributes[e.key];if(r&&0===r.length)return[];var o=[];return"steps"===e.key&&o.push(ne(r,n,e,t,["name","text"])),"jsonDescription"===e.key&&(n=n.filter(function(e){return e.hasBlockPosition&&e.hasBlockPosition()?!e.getBlockAttributeId():e}),o.push(ee(r,"description",e,t,n))),(0,h.flattenDeep)(o)}(n,e,t):function(e,t,n){var r=e.key,o=function(e,t){var n=e.attributes[t];return"string"==typeof n?n:(n||"").toString()}(t,r);return ee(o,r,e,t,n)}(n,e,t)});var n}(e,t).concat(n)})}function le(e){oe=[],(0,s.dispatch)("core/annotations").__experimentalRemoveAnnotationsBySource(re);var t,n=function(e){return(0,h.uniq)((0,h.flatten)(e.map(function(e){if(!(0,h.isUndefined)(e.getFieldsToMark()))return e.getFieldsToMark()})))}(e);if(0!==e.length){var r=(0,s.select)("core/block-editor"),o="template-locked"===(0,s.select)("core/editor").getRenderingMode(),a=r.getBlocksByName("core/post-content"),i=o&&null!=a&&a.length?r.getBlocks(a[0]):r.getBlocks();n.length>0&&(i=i.filter(function(e){return n.some(function(t){return"core/"+t===e.name})})),t=ce(i,e),oe=t.map(function(e){return{blockClientId:e.block,source:re,richTextIdentifier:e.richTextIdentifier,range:{start:e.startOffset,end:e.endOffset}}}),se()}}function ue(e,t){var n;U(N)&&((0,h.isUndefined)(n)&&(n=q(tinyMCE.get(N))),n(e,t)),(0,s.select)("core/editor")&&(0,s.select)("core/block-editor")&&(0,h.isFunction)((0,s.select)("core/block-editor").getBlocks)&&(0,s.select)("core/annotations")&&(0,h.isFunction)((0,s.dispatch)("core/annotations").__experimentalAddAnnotation)&&(function(e,t){tinyMCE.editors.map(function(e){return q(e)}).forEach(function(n){return n(e,t)})}(e,t),le(t)),(0,c.doAction)("yoast.analysis.applyMarks",t)}function pe(){var e=(0,s.select)("yoast-seo/editor").isMarkingAvailable(),t=(0,s.select)("yoast-seo/editor").getMarkerPauseStatus();return!e||t?h.noop:ue}var de=["text"];function fe(){var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function a(n,r,o,a){var c=r&&r.prototype instanceof s?r:s,l=Object.create(c.prototype);return me(l,"_invoke",function(n,r,o){var a,s,c,l=0,u=o||[],p=!1,d={p:0,n:0,v:e,a:f,f:f.bind(e,4),d:function(t,n){return a=t,s=0,c=e,d.n=n,i}};function f(n,r){for(s=n,c=r,t=0;!p&&l&&!o&&t<u.length;t++){var o,a=u[t],f=d.p,m=a[2];n>3?(o=m===r)&&(c=a[(s=a[4])?5:(s=3,3)],a[4]=a[5]=e):a[0]<=f&&((o=n<2&&f<a[1])?(s=0,d.v=r,d.n=a[1]):f<m&&(o=n<3||a[0]>r||r>m)&&(a[4]=n,a[5]=r,d.n=m,s=0))}if(o||n>1)return i;throw p=!0,r}return function(o,u,m){if(l>1)throw TypeError("Generator is already running");for(p&&1===u&&f(u,m),s=u,c=m;(t=s<2?e:c)||!p;){a||(s?s<3?(s>1&&(d.n=-1),f(s,c)):d.n=c:d.v=c);try{if(l=2,a){if(s||(o="next"),t=a[o]){if(!(t=t.call(a,c)))throw TypeError("iterator result is not an object");if(!t.done)return t;c=t.value,s<2&&(s=0)}else 1===s&&(t=a.return)&&t.call(a),s<2&&(c=TypeError("The iterator does not provide a '"+o+"' method"),s=1);a=e}else if((t=(p=d.n<0)?c:n.call(r,d))!==i)break}catch(t){a=e,s=1,c=t}finally{l=1}}return{value:t,done:p}}}(n,o,a),!0),l}var i={};function s(){}function c(){}function l(){}t=Object.getPrototypeOf;var u=[][r]?t(t([][r]())):(me(t={},r,function(){return this}),t),p=l.prototype=s.prototype=Object.create(u);function d(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,l):(e.__proto__=l,me(e,o,"GeneratorFunction")),e.prototype=Object.create(p),e}return c.prototype=l,me(p,"constructor",l),me(l,"constructor",c),c.displayName="GeneratorFunction",me(l,o,"GeneratorFunction"),me(p),me(p,o,"Generator"),me(p,r,function(){return this}),me(p,"toString",function(){return"[object Generator]"}),(fe=function(){return{w:a,m:d}})()}function me(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}me=function(e,t,n,r){function a(t,n){me(e,t,function(e){return this._invoke(t,n,e)})}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(a("next",0),a("throw",1),a("return",2))},me(e,t,n,r)}function he(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function ge(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?he(Object(n),!0).forEach(function(t){d(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):he(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function ye(){return(ye=m(fe().m(function e(t,n){var r,o,a,i,u,p,d,f,m;return fe().w(function(e){for(;;)switch(e.p=e.n){case 0:return r=n.text,o=l(n,de),a=new g.Paper(r,o),e.p=1,e.n=2,t.analyze(a);case 2:i=e.v,u=i.result,p=u.seo,d=u.readability,f=u.inclusiveLanguage,p&&((m=p[""]).results.forEach(function(e){e.getMarker=function(){return function(){return window.YoastSEO.analysis.applyMarks(a,e.marks)}}}),m.results=w(m.results),(0,s.dispatch)("yoast-seo/editor").setSeoResultsForKeyword(a.getKeyword(),m.results),(0,s.dispatch)("yoast-seo/editor").setOverallSeoScore(m.score,a.getKeyword())),d&&(d.results.forEach(function(e){e.getMarker=function(){return function(){return window.YoastSEO.analysis.applyMarks(a,e.marks)}}}),d.results=w(d.results),(0,s.dispatch)("yoast-seo/editor").setReadabilityResults(d.results),(0,s.dispatch)("yoast-seo/editor").setOverallReadabilityScore(d.score)),f&&(f.results.forEach(function(e){e.getMarker=function(){return function(){return window.YoastSEO.analysis.applyMarks(a,e.marks)}}}),f.results=w(f.results),(0,s.dispatch)("yoast-seo/editor").setInclusiveLanguageResults(f.results),(0,s.dispatch)("yoast-seo/editor").setOverallInclusiveLanguageScore(f.score)),(0,c.doAction)("yoast.analysis.run",i,{paper:a}),e.n=4;break;case 3:e.p=3,e.v,y();case 4:return e.a(2)}},e,null,[[1,3]])}))).apply(this,arguments)}var ve=(0,h.debounce)(function(_x,e){return ye.apply(this,arguments)},500);function we(){var e=(0,s.select)("yoast-seo/editor"),t=e.getAnalysisData,n=e.getEditorDataTitle,r=e.getIsFrontPage,o=t(),a=function(e){return e.title=D("data_page_title",e.title),e.title=D("title",e.title),e.description=D("data_meta_desc",e.description),e.text=D("content",e.text),e}(o=ge(ge({},o),{},{textTitle:n(),isFrontPage:r()}));return(0,c.applyFilters)("yoast.analysis.data",a)}var be=function(){var e,t,n,r,o,a,i,c,l=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(){return t.map(function(e){return e()})}}((0,s.select)("yoast-seo/editor").getContentLocale,we),u=(e=(0,s.dispatch)("yoast-seo/editor"),t=e.setEstimatedReadingTime,n=e.setFleschReadingEase,r=e.setTextLength,o=(0,h.get)(window,"YoastSEO.analysis.worker.runResearch",h.noop),function(){var e=g.Paper.parse(we());o("readingTime",e).then(function(e){return t(e.result)}),o("getFleschReadingScore",e).then(function(e){e.result&&n(e.result)}),o("wordCountInText",e).then(function(e){return r(e.result)})});return setTimeout(u,1500),i=u,c=(a=l)(),function(){var e=a();(0,h.isEqual)(e,c)||(c=e,i((0,h.clone)(e)))}};function Re(e,t){if(t&&("object"==u(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function Ee(e){return Ee=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Ee(e)}function _e(e,t){return _e=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},_e(e,t)}function ke(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&_e(e,t)}const Se=window.wp.components,xe=window.wp.element,Te=window.yoast.externals.contexts,Oe=window.yoast.propTypes;var Pe=n.n(Oe);const Ce=window.yoast.styledComponents;var Ie=n.n(Ce),Le=function(e){var t=e.theme,n=e.location,r=e.children;return React.createElement(Te.LocationProvider,{value:n},React.createElement(Ce.ThemeProvider,{theme:t},r))};Le.propTypes={theme:Pe().object.isRequired,location:Pe().oneOf(["sidebar","metabox","modal"]).isRequired,children:Pe().node.isRequired};const je=Le;function Ae(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function De(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ae(Object(n),!0).forEach(function(t){d(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ae(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Fe(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(Fe=function(){return!!e})()}var Me=[],qe=null,Ne=function(e){function t(e){var n,r,o,a;return S(this,t),r=this,a=[e],o=Ee(o=t),(n=Re(r,Fe()?Reflect.construct(o,a||[],Ee(r).constructor):o.apply(r,a))).state={registeredComponents:[].concat(Me)},n}return ke(t,e),T(t,[{key:"registerComponent",value:function(e,t){this.setState(function(n){return De(De({},n),{},{registeredComponents:[].concat(H(n.registeredComponents),[{key:e,Component:t}])})})}},{key:"render",value:function(){return this.state.registeredComponents.map(function(e){var t=e.Component,n=e.key;return React.createElement(t,{key:n})})}}])}(xe.Component);function Ue(e,t){null===qe||null===qe.current?Me.push({key:e,Component:t}):qe.current.registerComponent(e,t)}var We=["yoast_wpseo_linkdex","yoast_wpseo_content_score","yoast_wpseo_inclusive_language_score","yoast_wpseo_words_for_linking","yoast_wpseo_estimated-reading-time-minutes"],Be=["yoast_wpseo_focuskeywords","hidden_wpseo_focuskeywords"];const Ke=window.wp.i18n;var He=function(e){var t="";e&&(t=(0,Ke.sprintf)(/* translators: %1$s translates to the Post Label in singular form */ /* translators: %1$s translates to the Post Label in singular form */
(0,Ke.__)("Unfortunately we cannot save changes to your SEO settings while you are working on a draft of an already-published %1$s. If you want to save your SEO changes, make sure to click 'Update', or wait to make your SEO changes until you are ready to update the %1$s.","wordpress-seo"),wpseoAdminL10n.postTypeNameSingular.toLowerCase())),(0,s.select)("yoast-seo/editor").getWarningMessage()!==t&&(0,s.dispatch)("yoast-seo/editor").setWarningMessage(t)};function Ge(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}const Ye=window.yoast.uiLibrary,Ve=window.React;var ze=n.n(Ve);Ve.forwardRef(function(e,t){return Ve.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),Ve.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M10 6H6a2 2 0 00-2 2v10a2 2 0 002 2h10a2 2 0 002-2v-4M14 4h6m0 0v6m0-6L10 14"}))});var $e=function(e,t){try{return(0,xe.createInterpolateElement)(e,t)}catch(t){return console.error("Error in translation for:",e,t),e}};Pe().string.isRequired;const Ze=Ve.forwardRef(function(e,t){return Ve.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),Ve.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M8 11V7a4 4 0 118 0m-4 8v2m-6 4h12a2 2 0 002-2v-6a2 2 0 00-2-2H6a2 2 0 00-2 2v6a2 2 0 002 2z"}))});Ve.forwardRef(function(e,t){return Ve.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),Ve.createElement("path",{fillRule:"evenodd",d:"M12.293 5.293a1 1 0 011.414 0l4 4a1 1 0 010 1.414l-4 4a1 1 0 01-1.414-1.414L14.586 11H3a1 1 0 110-2h11.586l-2.293-2.293a1 1 0 010-1.414z",clipRule:"evenodd"}))});Pe().string.isRequired,Pe().string.isRequired,Pe().shape({src:Pe().string.isRequired,width:Pe().string,height:Pe().string}).isRequired,Pe().shape({value:Pe().bool.isRequired,status:Pe().string.isRequired,set:Pe().func.isRequired}).isRequired,Pe().string,Pe().string,Pe().string;var Qe=function(e){var t=e.handleRefreshClick,n=e.supportLink;return React.createElement("div",{className:"yst-flex yst-gap-2"},React.createElement(Ye.Button,{onClick:t},(0,Ke.__)("Refresh this page","wordpress-seo")),React.createElement(Ye.Button,{variant:"secondary",as:"a",href:n,target:"_blank",rel:"noopener"},(0,Ke.__)("Contact support","wordpress-seo")))};Qe.propTypes={handleRefreshClick:Pe().func.isRequired,supportLink:Pe().string.isRequired};var Xe=function(e){var t=e.handleRefreshClick,n=e.supportLink;return React.createElement("div",{className:"yst-grid yst-grid-cols-1 yst-gap-y-2"},React.createElement(Ye.Button,{className:"yst-order-last",onClick:t},(0,Ke.__)("Refresh this page","wordpress-seo")),React.createElement(Ye.Button,{variant:"secondary",as:"a",href:n,target:"_blank",rel:"noopener"},(0,Ke.__)("Contact support","wordpress-seo")))};Xe.propTypes={handleRefreshClick:Pe().func.isRequired,supportLink:Pe().string.isRequired};var Je=function(e){var t=e.error,n=e.children,r=void 0===n?null:n;return React.createElement("div",{role:"alert",className:"yst-max-w-screen-sm yst-p-8 yst-space-y-4"},React.createElement(Ye.Title,null,(0,Ke.__)("Something went wrong. An unexpected error occurred.","wordpress-seo")),React.createElement("p",null,(0,Ke.__)("We're very sorry, but it seems like the following error has interrupted our application:","wordpress-seo")),React.createElement(Ye.Alert,{variant:"error"},(null==t?void 0:t.message)||(0,Ke.__)("Undefined error message.","wordpress-seo")),React.createElement("p",null,(0,Ke.__)("Unfortunately, this means that any unsaved changes in this section will be lost. You can try and refresh this page to resolve the problem. If this error still occurs, please get in touch with our support team, and we'll get you all the help you need!","wordpress-seo")),r)};Je.propTypes={error:Pe().object.isRequired,children:Pe().node},Je.VerticalButtons=Xe,Je.HorizontalButtons=Qe;function et(){return et=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},et.apply(null,arguments)}Pe().string,Pe().node.isRequired,Pe().node.isRequired,Pe().node,Pe().oneOf(Object.keys({lg:{grid:"yst-grid lg:yst-grid-cols-3 lg:yst-gap-12",col1:"yst-col-span-1",col2:"lg:yst-mt-0 lg:yst-col-span-2"},xl:{grid:"yst-grid xl:yst-grid-cols-3 xl:yst-gap-12",col1:"yst-col-span-1",col2:"xl:yst-mt-0 xl:yst-col-span-2"},"2xl":{grid:"yst-grid 2xl:yst-grid-cols-3 2xl:yst-gap-12",col1:"yst-col-span-1",col2:"2xl:yst-mt-0 2xl:yst-col-span-2"}}));const tt=window.ReactDOM;var nt,rt;!function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"}(nt||(nt={})),function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"}(rt||(rt={})),new Set(["lazy","caseSensitive","path","id","index","children"]),Error;const ot=["post","put","patch","delete"],at=(new Set(ot),["get",...ot]);new Set(at),new Set([301,302,303,307,308]),new Set([307,308]),Symbol("deferred"),Ve.Component,Ve.startTransition,new Promise(()=>{}),Ve.Component,new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);try{window.__reactRouterVersion="6"}catch(e){}var it,st,ct,lt;new Map,Ve.startTransition,tt.flushSync,Ve.useId,"undefined"!=typeof window&&void 0!==window.document&&window.document.createElement,(lt=it||(it={})).UseScrollRestoration="useScrollRestoration",lt.UseSubmit="useSubmit",lt.UseSubmitFetcher="useSubmitFetcher",lt.UseFetcher="useFetcher",lt.useViewTransitionState="useViewTransitionState",(ct=st||(st={})).UseFetcher="useFetcher",ct.UseFetchers="useFetchers",ct.UseScrollRestoration="useScrollRestoration",Pe().string.isRequired,Pe().string;Pe().string.isRequired,Pe().node;const ut=Ve.forwardRef(function(e,t){return Ve.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),Ve.createElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.707-9.293a1 1 0 00-1.414-1.414L9 10.586 7.707 9.293a1 1 0 00-1.414 1.414l2 2a1 1 0 001.414 0l4-4z",clipRule:"evenodd"}))});(0,Ke.__)("Create optimized SEO titles & meta descriptions in seconds","wordpress-seo"),(0,Ke.__)("Apply AI suggestions to improve content in 1 click","wordpress-seo"),(0,Ke.__)("Manage redirects with ease and without extra plugins","wordpress-seo"),(0,Ke.__)("Optimize pages for multiple keywords with guidance","wordpress-seo"),(0,Ke.__)("Add product details to help your listings stand out","wordpress-seo"),(0,Ke.__)("Make sure search engines show the right version of your product page","wordpress-seo"),(0,Ke.__)("Create optimized SEO titles & meta descriptions with AI","wordpress-seo"),(0,Ke.__)("Receive clear SEO and readability guidance to optimize your products","wordpress-seo"),(0,Ke.__)("Generate SEO optimized metadata in seconds with AI","wordpress-seo"),(0,Ke.__)("Make your articles visible, be seen in Google News","wordpress-seo"),(0,Ke.__)("Built to get found by search, AI, and real users","wordpress-seo"),(0,Ke.__)("Easy Local SEO. Show up in Google Maps results","wordpress-seo"),(0,Ke.__)("Internal links and redirect management, easy","wordpress-seo"),(0,Ke.__)("Access to friendly help when you need it, day or night","wordpress-seo");var pt=n(6942),dt=n.n(pt);Pe().string.isRequired,Pe().object.isRequired,Pe().func.isRequired,Ve.forwardRef(function(e,t){return Ve.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),Ve.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M17 8l4 4m0 0l-4 4m4-4H3"}))}),Pe().string.isRequired,Pe().object,Pe().func.isRequired,Pe().bool.isRequired,Pe().string.isRequired,Pe().object.isRequired,Pe().string.isRequired,Pe().func.isRequired,Pe().bool.isRequired,Ve.forwardRef(function(e,t){return Ve.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),Ve.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 9v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-3L13.732 4c-.77-1.333-2.694-1.333-3.464 0L3.34 16c-.77 1.333.192 3 1.732 3z"}))}),Pe().bool.isRequired,Pe().func,Pe().func,Pe().string.isRequired,Pe().string.isRequired,Pe().string.isRequired,Pe().string.isRequired;window.yoast.reactHelmet;var ft="request",mt="success",ht="error",gt="loading";Pe().string.isRequired,Pe().shape({src:Pe().string.isRequired,width:Pe().string,height:Pe().string}).isRequired,Pe().shape({value:Pe().bool.isRequired,status:Pe().string.isRequired,set:Pe().func.isRequired}).isRequired,Pe().bool,Ve.forwardRef(function(e,t){return Ve.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),Ve.createElement("path",{fillRule:"evenodd",d:"M10.293 5.293a1 1 0 011.414 0l4 4a1 1 0 010 1.414l-4 4a1 1 0 01-1.414-1.414L12.586 11H5a1 1 0 110-2h7.586l-2.293-2.293a1 1 0 010-1.414z",clipRule:"evenodd"}))}),n.p,Pe().bool.isRequired,Pe().func.isRequired,Pe().func,Pe().string,Pe().func.isRequired,Pe().string.isRequired,Pe().string.isRequired,Pe().string.isRequired,Pe().string.isRequired;var yt=function(e){var t=e.error,n=(0,xe.useCallback)(function(){var e;return null===(e=window)||void 0===e||null===(e=e.location)||void 0===e?void 0:e.reload()},[]),r=(0,s.useSelect)(function(e){return e("yoast-seo/editor").selectLink("https://yoast.com/help/support/")},[]),o=(0,s.useSelect)(function(e){return e("yoast-seo/editor").getPreference("isRtl",!1)},[]);return React.createElement(Ye.Root,{context:{isRtl:o}},React.createElement(Je,{error:t},React.createElement(Je.VerticalButtons,{supportLink:r,handleRefreshClick:n})))};function vt(){return React.createElement(Ye.ErrorBoundary,{FallbackComponent:yt},React.createElement(Se.Slot,{name:"YoastBetheme"},function(e){return void 0===(t=e).length?t:(0,h.flatten)(t).sort(function(e,t){return void 0===e.props.renderPriority?1:e.props.renderPriority-t.props.renderPriority});var t}))}yt.propTypes={error:Pe().object.isRequired};const wt=window.wp.compose,bt=Ve.forwardRef(function(e,t){return Ve.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),Ve.createElement("path",{fillRule:"evenodd",d:"M5 9V7a5 5 0 0110 0v2a2 2 0 012 2v5a2 2 0 01-2 2H5a2 2 0 01-2-2v-5a2 2 0 012-2zm8-2v2H7V7a3 3 0 016 0z",clipRule:"evenodd"}))}),Rt=window.wp.url;var Et=["className"],_t=["className"],kt=function(e){var t=e.className,n=void 0===t?"":t,r=l(e,Et);return React.createElement("span",et({className:dt()("yst-grow yst-overflow-hidden yst-overflow-ellipsis yst-whitespace-nowrap yst-font-wp","yst-text-[#555] yst-text-base yst-leading-[normal] yst-subpixel-antialiased yst-text-start",n)},r))};kt.displayName="MetaboxButton.Text",kt.propTypes={className:Pe().string};var St=function(e){var t=e.className,n=void 0===t?"":t,r=l(e,_t);return React.createElement("button",et({type:"button",className:dt()("yst-flex yst-items-center yst-w-full yst-pt-4 yst-pb-4 yst-pe-4 yst-ps-6 yst-space-x-2 rtl:yst-space-x-reverse","yst-border-t yst-border-t-[rgb(0,0,0,0.2)] yst-rounded-none yst-transition-all hover:yst-bg-[#f0f0f0]","focus:yst-outline focus:yst-outline-[1px] focus:yst-outline-[color:#0066cd] focus:-yst-outline-offset-1 focus:yst-shadow-[0_0_3px_rgba(8,74,103,0.8)]",n)},r))};St.propTypes={className:Pe().string},St.Text=kt;const xt=window.yoast.componentsNew;var Tt=function(e){var t=e.onClick,n=e.title,r=e.id,o=void 0===r?"":r,a=e.subTitle,i=void 0===a?"":a,s=e.suffixIcon,c=void 0===s?null:s,l=e.SuffixHeroIcon,u=void 0===l?null:l,p=e.prefixIcon,d=void 0===p?null:p,f=e.children,m=void 0===f?null:f;return React.createElement("div",{className:"yoast components-panel__body"},React.createElement("h2",{className:"components-panel__body-title"},React.createElement("button",{id:o,onClick:t,className:"components-button components-panel__body-toggle",type:"button"},d&&React.createElement("span",{className:"yoast-icon-span",style:{fill:"".concat(d&&d.color||"")}},React.createElement(xt.SvgIcon,{size:d.size,icon:d.icon})),React.createElement("span",{className:"yoast-title-container"},React.createElement("div",{className:"yoast-title"},n),React.createElement("div",{className:"yoast-subtitle"},i)),m,c&&React.createElement(xt.SvgIcon,{size:c.size,icon:c.icon}),u)))};const Ot=Tt;var Pt,Ct;function It(){return It=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},It.apply(null,arguments)}Tt.propTypes={onClick:Pe().func.isRequired,title:Pe().string.isRequired,id:Pe().string,subTitle:Pe().string,suffixIcon:Pe().object,SuffixHeroIcon:Pe().element,prefixIcon:Pe().object,children:Pe().node};var Lt=function(e){return Ve.createElement("svg",It({xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",viewBox:"0 0 425 456.27"},e),Pt||(Pt=Ve.createElement("path",{d:"M73 405.26a67 67 0 0 1-6.54-1.7 65 65 0 0 1-6.28-2.31c-1-.42-2-.89-3-1.37-1.49-.72-3-1.56-4.77-2.56-1.5-.88-2.71-1.64-3.83-2.39-.9-.61-1.8-1.26-2.68-1.92a70 70 0 0 1-5.08-4.19 69 69 0 0 1-8.4-9.17c-.92-1.2-1.68-2.25-2.35-3.24a71 71 0 0 1-3.44-5.64 68.3 68.3 0 0 1-8.29-32.55V142.13a68.26 68.26 0 0 1 8.29-32.55c1-1.92 2.21-3.82 3.44-5.64s2.55-3.58 4-5.27a69.3 69.3 0 0 1 14.49-13.25C50.37 84.19 52.27 83 54.2 82A67.6 67.6 0 0 1 73 75.09a68.8 68.8 0 0 1 13.75-1.39h169.66L263 55.39H86.75A86.84 86.84 0 0 0 0 142.13v196.09A86.84 86.84 0 0 0 86.75 425h11.32v-18.35H86.75A68.8 68.8 0 0 1 73 405.26M368.55 60.85l-1.41-.53-6.41 17.18 1.41.53a68 68 0 0 1 8.66 4c1.93 1 3.82 2.2 5.65 3.43A69.2 69.2 0 0 1 391 98.67c1.4 1.68 2.72 3.46 3.95 5.27s2.39 3.72 3.44 5.64a68.3 68.3 0 0 1 8.29 32.55v264.52H233.55l-.44.76c-3.07 5.37-6.26 10.48-9.49 15.19L222 425h203V142.13a87.2 87.2 0 0 0-56.45-81.28"})),Ct||(Ct=Ve.createElement("path",{stroke:"#000",strokeMiterlimit:10,strokeWidth:3.81,d:"M119.8 408.28v46c28.49-1.12 50.73-10.6 69.61-29.58 19.45-19.55 36.17-50 52.61-96L363.94 1.9H305l-98.25 272.89-48.86-153h-54l71.7 184.18a75.67 75.67 0 0 1 0 55.12c-7.3 18.68-20.25 40.66-55.79 47.19z"})))};const jt=Ve.forwardRef(function(e,t){return Ve.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),Ve.createElement("path",{d:"M3 1a1 1 0 000 2h1.22l.305 1.222a.997.997 0 00.01.042l1.358 5.43-.893.892C3.74 11.846 4.632 14 6.414 14H15a1 1 0 000-2H6.414l1-1H14a1 1 0 00.894-.553l3-6A1 1 0 0017 3H6.28l-.31-1.243A1 1 0 005 1H3zM16 16.5a1.5 1.5 0 11-3 0 1.5 1.5 0 013 0zM6.5 18a1.5 1.5 0 100-3 1.5 1.5 0 000 3z"}))});var At=function(e){var t=e.isOpen,n=e.onClose,r=e.id,o=e.upsellLink,a=e.title,i=void 0===a?"":a,c=e.description,l=void 0===c?"":c,u=e.benefits,p=void 0===u?[]:u,d=e.note,f=void 0===d?"":d,m=e.ctbId,h=void 0===m?"":m,g=e.modalTitle,y=(0,s.useSelect)(function(e){var t=e("yoast-seo/editor");return{isProductEntity:t.getIsProductEntity(),isWooCommerceActive:t.getIsWooCommerceActive(),isBlackFriday:t.isPromotionActive("black-friday-promotion"),isWooSEOActive:t.getIsWooSeoActive()}},[]),v=y.isBlackFriday,w=y.isWooCommerceActive,b=y.isProductEntity,R=y.isWooSEOActive,E=(0,xe.useMemo)(function(){return w&&b},[w,b]),_=(0,xe.useRef)(null);return React.createElement(Ye.Modal,{isOpen:t,onClose:n,id:r,initialFocus:_},React.createElement(Ye.Modal.Panel,{className:"yst-max-w-md yst-p-0",hasCloseButton:!1},React.createElement(Ye.Modal.Container,null,React.createElement(Ye.Modal.Container.Header,{className:"yst-p-6 yst-border-b-slate-200 yst-border-b yst-flex yst-justify-start yst-gap-3 yst-items-center"},E?React.createElement(jt,{className:"yst-text-woo-light yst-w-6 yst-h-6 yst-scale-x-[-1]"}):React.createElement(Lt,{className:"yst-fill-primary-500 yst-w-5 yst-h-5"}),React.createElement(Ye.Modal.Title,{as:"h3",className:dt()(E?"yst-text-woo-light":"yst-text-primary-500","yst-text-base yst-font-normal")},g),React.createElement(Ye.Modal.CloseButton,{className:"yst-top-2",onClick:n,screenReaderText:(0,Ke.__)("Close modal","wordpress-seo")})),React.createElement(Ye.Modal.Container.Content,{className:"yst-p-0"},v&&React.createElement("div",{className:"yst-flex yst-font-semibold yst-items-center yst-text-lg yst-content-between yst-bg-black yst-text-amber-300 yst-h-9 yst-border-amber-300 yst-border-y yst-border-x-0 yst-border-solid yst-px-6"},React.createElement("div",{className:"yst-mx-auto"},(0,Ke.__)("BLACK FRIDAY | 30% OFF","wordpress-seo"))),React.createElement("div",{className:"yst-py-6 yst-px-12"},React.createElement(Ye.Title,{as:"h3",className:"yst-mb-1 yst-leading-5 yst-text-sm yst-font-medium yst-text-slate-800"},i),React.createElement("p",{className:"yst-mb-2"},l),Array.isArray(p)&&p.length>0&&React.createElement("ul",{className:"yst-my-2"},p.map(function(e,t){return React.createElement("li",{key:"".concat(r,"-upsell-benefit-").concat(t),className:"yst-flex yst-gap-1 yst-mb-2"},React.createElement(ut,{className:"yst-mr-1 yst-text-green-500 yst-w-[19.5px] yst-h-[19.5px] yst-flex-shrink-0"}),React.createElement("p",{className:"yst-text-slate-600"},e))})),"function"==typeof p&&p(),React.createElement("div",{className:"yst-text-center"},React.createElement(Ye.Button,{as:"a",variant:"upsell",className:"yst-my-2 yst-gap-1.5 yst-w-full",href:o,target:"_blank","data-action":"load-nfd-ctb","data-ctb-id":h,ref:_},React.createElement(Ze,{className:"yst-w-4 yst-h-4 yst--ms-1 yst-shrink-0"}),(0,Ke.sprintf)(/* translators: %s expands to 'Yoast SEO Premium' or 'Yoast Woocommerce SEO'. */ /* translators: %s expands to 'Yoast SEO Premium' or 'Yoast Woocommerce SEO'. */
(0,Ke.__)("Explore %s","wordpress-seo"),E&&!R?"Yoast WooCommerce SEO":"Yoast SEO Premium"),React.createElement("span",{className:"yst-sr-only"},(0,Ke.__)("Opens in a new tab","wordpress-seo"))),React.createElement("div",{className:"yst-italic yst-text-slate-500 yst-mt-1"},f)))))))},Dt=function(){var e=G((0,Ye.useToggleState)(!1),5),t=e[0],n=e[3],r=e[4],o=(0,Te.useRootContext)().locationContext,a=(0,Ye.useSvgAria)(),i=o.includes("sidebar"),s=o.includes("metabox"),c=i?"sidebar":"metabox",l=wpseoAdminL10n[i?"shortlinks.upsell.sidebar.internal_linking_suggestions":"shortlinks.upsell.metabox.internal_linking_suggestions"];return React.createElement(React.Fragment,null,React.createElement(At,{isOpen:t,onClose:r,id:"yoast-internal-linking-suggestions-upsell-".concat(c),upsellLink:(0,Rt.addQueryArgs)(l,{context:o}),modalTitle:(0,Ke.__)("Add smarter internal links with Premium","wordpress-seo"),title:(0,Ke.__)("Connect related content without the guesswork","wordpress-seo"),description:$e((0,Ke.sprintf)(/* translators: %s expands to be tag. */ /* translators: %s expands to be tag. */
(0,Ke.__)("Optimize for up to 5 keyphrases to shape your content around different themes, audiences, and angles. %sScans your content to:","wordpress-seo"),"<br />"),{br:React.createElement("br",null)}),benefits:[(0,Ke.__)("Suggest internal links based on your content’s main topics","wordpress-seo"),(0,Ke.__)("Build relevant internal links faster","wordpress-seo"),(0,Ke.__)("Strengthen your site’s structure","wordpress-seo"),(0,Ke.__)("Keep visitors exploring longer","wordpress-seo")],note:(0,Ke.__)("Upgrade to link your content with ease","wordpress-seo"),ctbId:"f6a84663-465f-4cb5-8ba5-f7a6d72224b2"}),i&&React.createElement(Ot,{id:"yoast-internal-linking-suggestions-sidebar-modal-open-button",title:(0,Ke.__)("Internal linking suggestions","wordpress-seo"),onClick:n},React.createElement("div",{className:"yst-root"},React.createElement(Ye.Badge,{size:"small",variant:"upsell"},React.createElement(bt,et({className:"yst-w-2.5 yst-h-2.5 yst-shrink-0"},a))))),s&&React.createElement("div",{className:"yst-root"},React.createElement(St,{id:"yoast-internal-linking-suggestions-metabox-modal-open-button",onClick:n},React.createElement(St.Text,null,(0,Ke.__)("Internal linking suggestions","wordpress-seo")),React.createElement(Ye.Badge,{size:"small",variant:"upsell"},React.createElement(bt,et({className:"yst-w-2.5 yst-h-2.5 yst-me-1 yst-shrink-0"},a)),React.createElement("span",null,"Premium")))))};const Ft=window.yoast.externals.components;function Mt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function qt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Mt(Object(n),!0).forEach(function(t){d(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Mt(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Nt(){return(0,wt.createHigherOrderComponent)(function(e){return(0,wt.pure)(function(t){var n=(0,xe.useContext)(Te.LocationContext);return(0,xe.createElement)(e,qt(qt({},t),{},{location:n}))})},"withLocation")}const Ut=(0,wt.compose)([(0,s.withSelect)(function(e){return{isCornerstone:(0,e("yoast-seo/editor").isCornerstoneContent)(),learnMoreUrl:wpseoAdminL10n["shortlinks.cornerstone_content_info"]}}),(0,s.withDispatch)(function(e){return{onChange:e("yoast-seo/editor").toggleCornerstoneContent}}),Nt()])(Ft.CollapsibleCornerstone);function Wt(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}const Bt=Ve.forwardRef(function(e,t){return Ve.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),Ve.createElement("path",{d:"M11 3a1 1 0 10-2 0v1a1 1 0 102 0V3zM15.657 5.757a1 1 0 00-1.414-1.414l-.707.707a1 1 0 001.414 1.414l.707-.707zM18 10a1 1 0 01-1 1h-1a1 1 0 110-2h1a1 1 0 011 1zM5.05 6.464A1 1 0 106.464 5.05l-.707-.707a1 1 0 00-1.414 1.414l.707.707zM5 10a1 1 0 01-1 1H3a1 1 0 110-2h1a1 1 0 011 1zM8 16v-1h4v1a2 2 0 11-4 0zM12 14c.015-.34.208-.646.477-.859a4 4 0 10-4.954 0c.27.213.462.519.476.859h4.002z"}))}),Kt=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return(0,Ve.useMemo)(function(){var t={role:"img","aria-hidden":"true"};return null!==e&&(t.focusable=e?"true":"false"),t},[e])};var Ht=["title","className","showYoastIcon","children","additionalClassName"],Gt=function(e){var t=e.title,n=void 0===t?"Yoast SEO":t,r=e.className,o=void 0===r?"yoast yoast-gutenberg-modal":r,a=e.showYoastIcon,i=void 0===a||a,s=e.children,c=void 0===s?null:s,u=e.additionalClassName,p=void 0===u?"":u,d=l(e,Ht),f=i?React.createElement("span",{className:"yoast-icon"}):null;return React.createElement(Se.Modal,et({title:n,className:"".concat(o," ").concat(p),icon:f},d),c)};Gt.propTypes={title:Pe().string,className:Pe().string,showYoastIcon:Pe().bool,children:Pe().oneOfType([Pe().node,Pe().arrayOf(Pe().node)]),additionalClassName:Pe().string};const Yt=Gt;var Vt=function(e){var t=e.id,n=e.postTypeName,r=e.children,o=e.title,a=e.isOpen,i=e.open,s=e.close,c=e.shouldCloseOnClickOutside,l=void 0===c||c,u=e.showChangesWarning,p=void 0===u||u,d=e.SuffixHeroIcon,f=void 0===d?null:d;return React.createElement(xe.Fragment,null,a&&React.createElement(Te.LocationProvider,{value:"modal"},React.createElement(Yt,{title:o,onRequestClose:s,additionalClassName:"yoast-collapsible-modal yoast-post-settings-modal",id:"id",shouldCloseOnClickOutside:l},React.createElement("div",{className:"yoast-content-container"},React.createElement("div",{className:"yoast-modal-content"},r)),React.createElement("div",{className:"yoast-notice-container"},React.createElement("hr",null),React.createElement("div",{className:"yoast-button-container"},p&&React.createElement("p",null,/* Translators: %s translates to the Post Label in singular form */ /* Translators: %s translates to the Post Label in singular form */
(0,Ke.sprintf)((0,Ke.__)("Make sure to save your %s for changes to take effect","wordpress-seo"),n)),React.createElement("button",{className:"yoast-button yoast-button--primary yoast-button--post-settings-modal",type:"button",onClick:s},/* Translators: %s translates to the Post Label in singular form */ /* Translators: %s translates to the Post Label in singular form */
(0,Ke.sprintf)((0,Ke.__)("Return to your %s","wordpress-seo"),n)))))),React.createElement(Ot,{id:t+"-open-button",title:o,SuffixHeroIcon:f,suffixIcon:f?null:{size:"20px",icon:"pencil-square"},onClick:i}))};Vt.propTypes={id:Pe().string.isRequired,postTypeName:Pe().string.isRequired,children:Pe().oneOfType([Pe().node,Pe().arrayOf(Pe().node)]).isRequired,title:Pe().string.isRequired,isOpen:Pe().bool.isRequired,open:Pe().func.isRequired,close:Pe().func.isRequired,shouldCloseOnClickOutside:Pe().bool,showChangesWarning:Pe().bool,SuffixHeroIcon:Pe().element};const zt=Vt,$t=(0,wt.compose)([(0,s.withSelect)(function(e,t){var n=e("yoast-seo/editor"),r=n.getPostOrPageString,o=n.getIsModalOpen;return{postTypeName:r(),isOpen:o(t.id)}}),(0,s.withDispatch)(function(e,t){var n=e("yoast-seo/editor"),r=n.openEditorModal;return{open:function(){return r(t.id)},close:n.closeEditorModal}})])(zt),Zt=function(){var e=(0,s.useSelect)(function(e){return e("yoast-seo/editor").getEstimatedReadingTime()},[]),t=(0,xe.useMemo)(function(){return(0,h.get)(window,"wpseoAdminL10n.shortlinks-insights-estimated_reading_time","")},[]);return React.createElement(xt.InsightsCard,{amount:e,unit:(0,Ke._n)("minute","minutes",e,"wordpress-seo"),title:(0,Ke.__)("Reading time","wordpress-seo"),linkTo:t
/* translators: Hidden accessibility text. */,linkText:(0,Ke.__)("Learn more about reading time","wordpress-seo")})},Qt=window.yoast.helpers;var Xt=(0,Qt.makeOutboundLink)();function Jt(e,t,n){var r=function(e){switch(e){case g.DIFFICULTY.FAIRLY_DIFFICULT:case g.DIFFICULTY.DIFFICULT:case g.DIFFICULTY.VERY_DIFFICULT:return(0,Ke.__)("Try to make shorter sentences, using less difficult words to improve readability","wordpress-seo");case g.DIFFICULTY.NO_DATA:return(0,Ke.__)("Continue writing to get insight into the readability of your text!","wordpress-seo");default:return(0,Ke.__)("Good job!","wordpress-seo")}}(t);return React.createElement("span",null,function(e,t){return-1===e?(0,Ke.__)("Your text should be slightly longer to calculate your Flesch reading ease score.","wordpress-seo"):(0,Ke.sprintf)(
/* Translators: %1$s expands to the numeric Flesch reading ease score,
  %2$s expands to the easiness of reading (e.g. 'easy' or 'very difficult') */
/* Translators: %1$s expands to the numeric Flesch reading ease score,
  %2$s expands to the easiness of reading (e.g. 'easy' or 'very difficult') */
(0,Ke.__)("The copy scores %1$s in the test, which is considered %2$s to read.","wordpress-seo"),e,function(e){switch(e){case g.DIFFICULTY.NO_DATA:return(0,Ke.__)("no data","wordpress-seo");case g.DIFFICULTY.VERY_EASY:return(0,Ke.__)("very easy","wordpress-seo");case g.DIFFICULTY.EASY:return(0,Ke.__)("easy","wordpress-seo");case g.DIFFICULTY.FAIRLY_EASY:return(0,Ke.__)("fairly easy","wordpress-seo");case g.DIFFICULTY.OKAY:return(0,Ke.__)("okay","wordpress-seo");case g.DIFFICULTY.FAIRLY_DIFFICULT:return(0,Ke.__)("fairly difficult","wordpress-seo");case g.DIFFICULTY.DIFFICULT:return(0,Ke.__)("difficult","wordpress-seo");case g.DIFFICULTY.VERY_DIFFICULT:return(0,Ke.__)("very difficult","wordpress-seo")}}(t))}(e,t)," ",t>=g.DIFFICULTY.FAIRLY_DIFFICULT?React.createElement(Xt,{href:n},r+"."):r)}const en=function(){var e=(0,s.useSelect)(function(e){return e("yoast-seo/editor").getFleschReadingEaseScore()},[]),t=(0,xe.useMemo)(function(){return(0,h.get)(window,"wpseoAdminL10n.shortlinks-insights-flesch_reading_ease","")},[]),n=(0,s.useSelect)(function(e){return e("yoast-seo/editor").getFleschReadingEaseDifficulty()},[e]),r=(0,xe.useMemo)(function(){var t=(0,h.get)(window,"wpseoAdminL10n.shortlinks-insights-flesch_reading_ease_article","");return Jt(e,n,t)},[e,n]);return-1===e&&(e="?"),React.createElement(xt.InsightsCard,{amount:e,unit:(0,Ke.__)("out of 100","wordpress-seo"),title:(0,Ke.__)("Flesch reading ease","wordpress-seo"),linkTo:t
/* translators: Hidden accessibility text. */,linkText:(0,Ke.__)("Learn more about Flesch reading ease","wordpress-seo"),description:r})};var tn=["data","itemScreenReaderText","className"],nn=function(e){var t=e.data,n=void 0===t?[]:t,r=e.itemScreenReaderText,o=void 0===r?"":r,a=e.className,i=void 0===a?"":a,s=l(e,tn),c=(0,xe.useMemo)(function(){var e,t;return null!==(e=null===(t=(0,h.maxBy)(n,"number"))||void 0===t?void 0:t.number)&&void 0!==e?e:0},[n]);return React.createElement("ul",et({className:dt()("yoast-data-model",i)},s),n.map(function(e){var t=e.name,n=e.number;return React.createElement("li",{key:"".concat(t,"_dataItem"),style:{"--yoast-width":"".concat(n/c*100,"%")}},t,React.createElement("span",null,n),o&&React.createElement("span",{className:"screen-reader-text"},(0,Ke.sprintf)(o,n)))}))};nn.propTypes={data:Pe().arrayOf(Pe().shape({name:Pe().string.isRequired,number:Pe().number.isRequired})),itemScreenReaderText:Pe().string,className:Pe().string};const rn=nn;var on=(0,Qt.makeOutboundLink)(),an=function(e){var t=e.location,n=(0,s.useSelect)(function(e){var t,n;return null===(t=null===(n=e("yoast-seo-premium/editor"))||void 0===n?void 0:n.getPreference("isProminentWordsAvailable",!1))||void 0===t||t},[]),r=(0,s.useSelect)(function(e){return e("yoast-seo/editor").getPreference("shouldUpsell",!1)},[]),o=(0,xe.useMemo)(function(){return(0,h.get)(window,"wpseoAdminL10n.shortlinks-insights-upsell-".concat(t,"-prominent_words"),"")},[t]),a=(0,xe.useMemo)(function(){var e=(0,h.get)(window,"wpseoAdminL10n.shortlinks-insights-keyword_research_link","");return $e((0,Ke.sprintf)(
// translators: %1$s and %2$s are replaced by opening and closing <a> tags.
// translators: %1$s and %2$s are replaced by opening and closing <a> tags.
(0,Ke.__)("Read our %1$sultimate guide to keyword research%2$s to learn more about keyword research and keyword strategy.","wordpress-seo"),"<a>","</a>"),{a:React.createElement(on,{href:e})})},[]),i=(0,xe.useMemo)(function(){return $e((0,Ke.sprintf)(
// translators: %1$s expands to a starting `b` tag, %1$s expands to a closing `b` tag and %3$s expands to `Yoast SEO Premium`.
// translators: %1$s expands to a starting `b` tag, %1$s expands to a closing `b` tag and %3$s expands to `Yoast SEO Premium`.
(0,Ke.__)("With %1$s%3$s%2$s, this section will show you which words occur most often in your text. By checking these prominent words against your intended keyword(s), you'll know how to edit your text to be more focused.","wordpress-seo"),"<b>","</b>","Yoast SEO Premium"),{b:React.createElement("b",null)})},[]),c=(0,s.useSelect)(function(e){var t,n;return null!==(t=null===(n=e("yoast-seo-premium/editor"))||void 0===n?void 0:n.getProminentWords())&&void 0!==t?t:[]},[]),l=(0,xe.useMemo)(function(){var e=(0,Ke.sprintf)(
// translators: %1$s expands to Yoast SEO Premium.
// translators: %1$s expands to Yoast SEO Premium.
(0,Ke.__)("Get %s to enjoy the benefits of prominent words","wordpress-seo"),"Yoast SEO Premium").split(/\s+/);return e.map(function(t,n){return{name:t,number:e.length-n}})},[]),u=(0,xe.useMemo)(function(){return r?l:c.map(function(e){return{name:e.word,number:e.occurrence}})},[c,l]);if(!n)return null;var p=(0,Te.useRootContext)().locationContext;return React.createElement("div",{className:"yoast-prominent-words"},React.createElement("div",{className:"yoast-field-group__title"},React.createElement("b",null,(0,Ke.__)("Prominent words","wordpress-seo"))),!r&&React.createElement("p",null,0===u.length?(0,Ke.__)("Once you add a bit more copy, we'll give you a list of words that occur the most in the content. These give an indication of what your content focuses on.","wordpress-seo"):(0,Ke.__)("The following words occur the most in the content. These give an indication of what your content focuses on. If the words differ a lot from your topic, you might want to rewrite your content accordingly.","wordpress-seo")),r&&React.createElement("p",null,i),r&&React.createElement(on,{href:(0,Rt.addQueryArgs)(o,{context:p}),"data-action":"load-nfd-ctb","data-ctb-id":"f6a84663-465f-4cb5-8ba5-f7a6d72224b2",className:"yoast-button yoast-button-upsell"},(0,Ke.sprintf)(
// translators: %s expands to `Premium` (part of add-on name).
// translators: %s expands to `Premium` (part of add-on name).
(0,Ke.__)("Unlock with %s","wordpress-seo"),"Premium"),React.createElement("span",{"aria-hidden":"true",className:"yoast-button-upsell__caret"})),React.createElement("p",null,a),React.createElement(rn,{data:u,itemScreenReaderText:/* translators: Hidden accessibility text; %d expands to the number of occurrences. */ /* translators: Hidden accessibility text; %d expands to the number of occurrences. */
(0,Ke.__)("%d occurrences","wordpress-seo"),"aria-label":(0,Ke.__)("Prominent words","wordpress-seo"),className:r?"yoast-data-model--upsell":null}))};an.propTypes={location:Pe().string.isRequired};const sn=an;var cn=(0,Qt.makeOutboundLink)(),ln=function(e){var t=e.location,n=(0,xe.useMemo)(function(){return(0,h.get)(window,"wpseoAdminL10n.shortlinks-insights-upsell-".concat(t,"-text_formality"),"")},[t]),r=(0,xe.useMemo)(function(){return $e((0,Ke.sprintf)(
// Translators: %1$s expands to a starting `b` tag, %2$s expands to a closing `b` tag and %3$s expands to `Yoast SEO Premium`.
// Translators: %1$s expands to a starting `b` tag, %2$s expands to a closing `b` tag and %3$s expands to `Yoast SEO Premium`.
(0,Ke.__)("%1$s%3$s%2$s will help you assess the formality level of your text.","wordpress-seo"),"<b>","</b>","Yoast SEO Premium"),{b:React.createElement("b",null)})},[]);return React.createElement(xe.Fragment,null,React.createElement("div",null,React.createElement("p",null,r),React.createElement(cn,{href:n,className:"yoast-button yoast-button-upsell"},(0,Ke.sprintf)(
// Translators: %s expands to `Premium` (part of add-on name).
// Translators: %s expands to `Premium` (part of add-on name).
(0,Ke.__)("Unlock with %s","wordpress-seo"),"Premium"),React.createElement("span",{"aria-hidden":"true",className:"yoast-button-upsell__caret"}))))};ln.propTypes={location:Pe().string.isRequired};const un=ln;var pn=function(e){var t=e.location,n=e.name,r=(0,s.useSelect)(function(e){return e("yoast-seo/editor").isFormalitySupported()},[]),o=b().isPremium,a=o?(0,h.get)(window,"wpseoAdminL10n.shortlinks-insights-text_formality_info_premium",""):(0,h.get)(window,"wpseoAdminL10n.shortlinks-insights-text_formality_info_free",""),i=(0,Ke.__)("Read more about text formality.","wordpress-seo");return r?React.createElement("div",{className:"yoast-text-formality"},React.createElement("div",{className:"yoast-field-group__title"},React.createElement("b",null,(0,Ke.__)("Text formality","wordpress-seo")),React.createElement(xt.HelpIcon,{linkTo:a,linkText:i})),o?React.createElement(Se.Slot,{name:n}):React.createElement(un,{location:t})):null};pn.propTypes={location:Pe().string.isRequired,name:Pe().string.isRequired};const dn=pn,fn=function(){var e=(0,s.useSelect)(function(e){return e("yoast-seo/editor").getTextLength()},[]),t=(0,xe.useMemo)(function(){return(0,h.get)(window,"wpseoAdminL10n.shortlinks-insights-word_count","")},[]),n=(0,Ke._n)("word","words",e.count,"wordpress-seo"),r=(0,Ke.__)("Word count","wordpress-seo"),o=(0,Ke.__)("Learn more about word count","wordpress-seo");return"character"===e.unit&&(n=(0,Ke._n)("character","characters",e.count,"wordpress-seo"),r=(0,Ke.__)("Character count","wordpress-seo"),
/* translators: Hidden accessibility text. */
o=(0,Ke.__)("Learn more about character count","wordpress-seo")),React.createElement(xt.InsightsCard,{amount:e.count,unit:n,title:r,linkTo:t,linkText:o})};var mn,hn=Ie()(Bt)(mn||(mn=Wt(["\n\twidth: 18px;\n\theight: 18px;\n\tmargin: 3px;\n"]))),gn=function(e){var t=e.location,n=void 0===t?"sidebar":t,r=(0,s.useSelect)(function(e){return e("yoast-seo/editor").getIsElementorEditor()},[]),o=(0,s.useSelect)(function(e){return e("yoast-seo/editor").isFleschReadingEaseAvailable()},[]),a=Kt();return React.createElement($t,{title:(0,Ke.__)("Insights","wordpress-seo"),id:"yoast-insights-modal-".concat(n),shouldCloseOnClickOutside:!r,showChangesWarning:!1,SuffixHeroIcon:React.createElement(hn,et({className:"yst-text-slate-500"},a))},React.createElement("div",{className:"yoast-insights yoast-modal-content--columns"},React.createElement(sn,{location:n}),React.createElement("div",null,o&&React.createElement("div",{className:"yoast-insights-row"},React.createElement(en,null)),React.createElement("div",{className:"yoast-insights-row yoast-insights-row--columns"},React.createElement(Zt,null),React.createElement(fn,null)),(0,k.isFeatureEnabled)("TEXT_FORMALITY")&&React.createElement(dn,{location:n,name:"YoastTextFormalityMetabox"}))))};gn.propTypes={location:Pe().string};const yn=gn;function vn(e){return 0===e.message.length?null:React.createElement(xt.Alert,{type:e.type},e.message)}vn.propTypes={message:Pe().oneOfType([Pe().array,Pe().string]).isRequired,type:Pe().string.isRequired};const wn=(0,s.withSelect)(function(e){return{message:(0,e("yoast-seo/editor").getWarningMessage)(),type:"info"}})(vn);var bn=function(e){var t=e.children;return React.createElement("div",null,t)};bn.propTypes={renderPriority:Pe().number.isRequired,children:Pe().node.isRequired};const Rn=bn,En=Ve.forwardRef(function(e,t){return Ve.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),Ve.createElement("path",{fillRule:"evenodd",d:"M8 4a4 4 0 100 8 4 4 0 000-8zM2 8a6 6 0 1110.89 3.476l4.817 4.817a1 1 0 01-1.414 1.414l-4.816-4.816A6 6 0 012 8z",clipRule:"evenodd"}))}),kn=window.yoast.searchMetadataPreviews;var Sn,xn=Ie()(xt.StyledSection)(Sn||(Sn=Wt(["\n\t&"," {\n\t\tpadding: 0;\n\n\t\t& "," {\n\t\t\t",": 20px;\n\t\t\tmargin-left: ",";\n\t\t}\n\t}\n"])),xt.StyledSectionBase,xt.StyledHeading,(0,Qt.getDirectionalStyle)("padding-left","padding-right"),(0,Qt.getDirectionalStyle)("0","20px")),Tn=function(e){var t=e.children,n=void 0===t?null:t,r=e.title,o=void 0===r?"":r,a=e.icon,i=void 0===a?"":a,s=e.hasPaperStyle,c=void 0===s||s,l=e.shoppingData,u=void 0===l?null:l;return React.createElement(xn,{headingLevel:3,headingText:o,headingIcon:i,headingIconColor:"#555",hasPaperStyle:c,shoppingData:u},n)};Tn.propTypes={children:Pe().element,title:Pe().string,icon:Pe().string,hasPaperStyle:Pe().bool,shoppingData:Pe().object};const On=Tn,Pn=window.wp.sanitize;var Cn=Qt.strings.stripHTMLTags;function In(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:156;return(e=(e=(0,Pn.stripTags)(e)).trim()).length<=t||(e=e.substring(0,t),/\s/.test(e)&&(e=e.substring(0,e.lastIndexOf(" ")))),e}const Ln=(0,h.memoize)(function(e,t){return 0===e?h.noop:(0,h.debounce)(function(n){return t(n,e)},500)});var jn=function(e){var t=e.link,n=e.text;return React.createElement(Ye.Root,null,React.createElement("p",null,n),React.createElement(Ye.Button,{href:t,as:"a",className:"yst-gap-2 yst-mb-5 yst-mt-2",variant:"upsell",target:"_blank",rel:"noopener"},React.createElement(Ze,{className:"yst-w-4 yst-h-4 yst--ms-1 yst-shrink-0"}),(0,Ke.sprintf)(/* translators: %1$s expands to Yoast WooCommerce SEO. */ /* translators: %1$s expands to Yoast WooCommerce SEO. */
(0,Ke.__)("Unlock with %1$s","wordpress-seo"),"Yoast WooCommerce SEO")))};jn.propTypes={link:Pe().string.isRequired,text:Pe().string.isRequired};const An=jn;var Dn=function(e,t){var n=0;return t.shortenedBaseUrl&&"string"==typeof t.shortenedBaseUrl&&(n=t.shortenedBaseUrl.length),e.url=e.url.replace(/\s+/g,"-"),"-"===e.url[e.url.length-1]&&(e.url=e.url.slice(0,-1)),"-"===e.url[n]&&(e.url=e.url.slice(0,n)+e.url.slice(n+1)),function(e){var t=(0,h.get)(window,["YoastSEO","app","pluggable"],!1);if(!t||!(0,h.get)(window,["YoastSEO","app","pluggable","loaded"],!1))return function(e){var t=(0,h.get)(window,["YoastSEO","wp","replaceVarsPlugin","replaceVariables"],h.identity);return{url:e.url,title:Cn(t(e.title)),description:Cn(t(e.description)),filteredSEOTitle:e.filteredSEOTitle?Cn(t(e.filteredSEOTitle)):""}}(e);var n=t._applyModifications.bind(t);return{url:e.url,title:Cn(n("data_page_title",e.title)),description:Cn(n("data_meta_desc",e.description)),filteredSEOTitle:e.filteredSEOTitle?Cn(n("data_page_title",e.filteredSEOTitle)):""}}(e)};const Fn=(0,wt.compose)([(0,s.withSelect)(function(e){var t=e("yoast-seo/editor"),n=t.getBaseUrlFromSettings,r=t.getDateFromSettings,o=t.getFocusKeyphrase,a=t.getRecommendedReplaceVars,i=t.getReplaceVars,s=t.getShoppingData,c=t.getSiteIconUrlFromSettings,l=t.getSnippetEditorData,u=t.getSnippetEditorMode,p=t.getSnippetEditorPreviewImageUrl,d=t.getSnippetEditorWordsToHighlight,f=t.isCornerstoneContent,m=t.getIsTerm,h=t.getContentLocale,g=t.getSiteName,y=i();return y.forEach(function(e){""!==e.value||["title","excerpt","excerpt_only"].includes(e.name)||(e.value="%%"+e.name+"%%")}),{baseUrl:n(),data:l(),date:r(),faviconSrc:c(),keyword:o(),mobileImageSrc:p(),mode:u(),recommendedReplacementVariables:a(),replacementVariables:y,shoppingData:s(),wordsToHighlight:d(),isCornerstone:f(),isTaxonomy:m(),locale:h(),siteName:g()}}),(0,s.withDispatch)(function(e,t,n){var r=n.select,o=e("yoast-seo/editor"),a=o.updateData,i=o.switchMode,s=o.updateAnalysisData,c=o.findCustomFields,l=e("core/editor"),u=r("yoast-seo/editor").getPostId();return{onChange:function(e,t){switch(e){case"mode":i(t);break;case"slug":a({slug:t}),l&&l.editPost({slug:t});break;default:a(d({},e,t))}},onChangeAnalysisData:s,onReplacementVariableSearchChange:Ln(u,c)}})])(function(e){var t=(0,s.useSelect)(function(e){return e("yoast-seo/editor").selectLink("https://yoa.st/product-google-preview-metabox")},[]),n=(0,s.useSelect)(function(e){return e("yoast-seo/editor").getIsWooSeoUpsell()},[]),r=(0,Ke.__)("Want an enhanced Google preview of how your WooCommerce products look in the search results?","wordpress-seo");return React.createElement(Te.LocationConsumer,null,function(o){return React.createElement(On,{icon:"eye",hasPaperStyle:e.hasPaperStyle},React.createElement(React.Fragment,null,n&&React.createElement(An,{link:t,text:r}),React.createElement(kn.SnippetEditor,et({},e,{descriptionPlaceholder:(0,Ke.__)("Please provide a meta description by editing the snippet below.","wordpress-seo"),mapEditorDataToPreview:Dn,showCloseButton:!1,idSuffix:o}))))})});var Mn=["isLoading","onLoad","location"],qn=Qt.strings.stripHTMLTags,Nn=function(e,t){var n=(0,s.select)("yoast-seo/editor").getSnippetEditorTemplates();""===e.title&&(e.title=n.title),""===e.description&&(e.description=n.description);var r=0;return t.shortenedBaseUrl&&"string"==typeof t.shortenedBaseUrl&&(r=t.shortenedBaseUrl.length),e.url=e.url.replace(/\s+/g,"-"),"-"===e.url[e.url.length-1]&&(e.url=e.url.slice(0,-1)),"-"===e.url[r]&&(e.url=e.url.slice(0,r)+e.url.slice(r+1)),{url:e.url,title:qn(D("data_page_title",e.title)),description:qn(D("data_meta_desc",e.description)),filteredSEOTitle:qn(D("data_page_title",e.filteredSEOTitle))}},Un=function(e){var t=e.isLoading,n=e.onLoad,r=e.location,o=l(e,Mn);return(0,xe.useEffect)(function(){setTimeout(function(){t&&n()})}),t?null:React.createElement(On,{icon:"eye",hasPaperStyle:o.hasPaperStyle},React.createElement(kn.SnippetEditor,et({},o,{descriptionPlaceholder:(0,Ke.__)("Please provide a meta description by editing the snippet below.","wordpress-seo"),mapEditorDataToPreview:Nn,showCloseButton:!1,idSuffix:r})))};Un.propTypes={isLoading:Pe().bool.isRequired,onLoad:Pe().func.isRequired,hasPaperStyle:Pe().bool.isRequired,location:Pe().string.isRequired};const Wn=(0,wt.compose)([(0,s.withSelect)(function(e){var t=e("yoast-seo/editor"),n=t.getBaseUrlFromSettings,r=t.getDateFromSettings,o=t.getEditorDataImageUrl,a=t.getFocusKeyphrase,i=t.getRecommendedReplaceVars,s=t.getSiteIconUrlFromSettings,c=t.getSnippetEditorData,l=t.getSnippetEditorIsLoading,u=t.getSnippetEditorMode,p=t.getSnippetEditorWordsToHighlight,d=t.isCornerstoneContent,f=t.getContentLocale,m=t.getSiteName,h=t.getReplaceVars;return{baseUrl:n(),data:c(),date:r(),faviconSrc:s(),isLoading:l(),keyword:a(),mobileImageSrc:o(),mode:u(),recommendedReplacementVariables:i(),replacementVariables:h(),wordsToHighlight:p(),isCornerstone:d(),locale:f(),siteName:m()}}),(0,s.withDispatch)(function(e){var t=e("yoast-seo/editor"),n=t.updateData,r=t.switchMode;return{onChange:function(e,t){switch(e){case"mode":r(t);break;case"slug":n({slug:t});break;default:n(d({},e,t))}},onChangeAnalysisData:t.updateAnalysisData,onLoad:t.loadSnippetEditorData}}),Nt()])(Un);var Bn,Kn=Ie()(En)(Bn||(Bn=Wt(["\n\twidth: 18px;\n\theight: 18px;\n\tmargin: 3px;\n"])));const Hn=function(){var e=Kt(),t=(0,s.useSelect)(function(e){return e("yoast-seo/editor").getIsElementorEditor()},[]);return React.createElement($t,{title:(0,Ke.__)("Search appearance","wordpress-seo"),id:"yoast-search-appearance-modal",shouldCloseOnClickOutside:!1,SuffixHeroIcon:React.createElement(Kn,et({className:"yst-text-slate-500"},e))},!0===t&&React.createElement(Wn,{showCloseButton:!1,hasPaperStyle:!1}),!1===t&&React.createElement(Fn,{showCloseButton:!1,hasPaperStyle:!1}))},Gn=Ve.forwardRef(function(e,t){return Ve.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),Ve.createElement("path",{d:"M15 8a3 3 0 10-2.977-2.63l-4.94 2.47a3 3 0 100 4.319l4.94 2.47a3 3 0 10.895-1.789l-4.94-2.47a3.027 3.027 0 000-.74l4.94-2.47C13.456 7.68 14.19 8 15 8z"}))});function Yn(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Vn(e){return Vn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Vn(e)}function zn(e){var t=function(e){if("object"!=Vn(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Vn(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Vn(t)?t:t+""}function $n(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,zn(r.key),r)}}function Zn(e,t,n){return t&&$n(e.prototype,t),n&&$n(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Qn(e,t){if(t&&("object"==Vn(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function Xn(e){return Xn=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Xn(e)}function Jn(e,t){return Jn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Jn(e,t)}function er(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Jn(e,t)}function tr(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var nr,rr=Ie().p(nr||(nr=tr(["\n\tcolor: #606770;\n\tflex-shrink: 0;\n\tfont-size: 12px;\n\tline-height: 16px;\n\toverflow: hidden;\n\tpadding: 0;\n\ttext-overflow: ellipsis;\n\ttext-transform: uppercase;\n\twhite-space: nowrap;\n\tmargin: 0;\n\tposition: ",";\n"])),function(e){return"landscape"===e.mode?"relative":"static"}),or=function(e){var t=e.siteUrl;return ze().createElement(Ve.Fragment,null,ze().createElement("span",{className:"screen-reader-text"},t),ze().createElement(rr,{"aria-hidden":"true"},ze().createElement("span",null,t)))};or.propTypes={siteUrl:Pe().string.isRequired};const ar=or;function ir(e,t,n,r,o,a,i){try{var s=e[a](i),c=s.value}catch(e){return void n(e)}s.done?t(c):Promise.resolve(c).then(r,o)}function sr(e){return function(){var t=this,n=arguments;return new Promise(function(r,o){var a=e.apply(t,n);function i(e){ir(a,r,o,i,s,"next",e)}function s(e){ir(a,r,o,i,s,"throw",e)}i(void 0)})}}const cr=window.yoast.socialMetadataForms,lr=window.yoast.styleGuide;var ur,pr,dr,fr,mr,hr=Ie().img(ur||(ur=tr(["\n\t&& {\n\t\tmax-width: ","px;\n\t\theight: ","px;\n\t\tposition: absolute;\n\t\ttop: 50%;\n\t\tleft: 50%;\n\t\ttransform: translate(-50%, -50%);\n\t\tmax-width: none;\n\t}\n"])),function(e){return e.width},function(e){return e.height}),gr=Ie().img(pr||(pr=tr(["\n\t&& {\n\t\theight: 100%;\n\t\tposition: absolute;\n\t\twidth: 100%;\n\t\tobject-fit: cover;\n\t}\n"]))),yr=Ie().div(dr||(dr=tr(["\n\tpadding-bottom: ","%;\n"])),function(e){return e.aspectRatio}),vr=function(e){var t=e.imageProps,n=e.width,r=e.height,o=e.imageMode;return"landscape"===(void 0===o?"landscape":o)?ze().createElement(yr,{aspectRatio:t.aspectRatio},ze().createElement(gr,{src:t.src,alt:t.alt})):ze().createElement(hr,{src:t.src,alt:t.alt,width:n,height:r,imageProperties:t})};function wr(){var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function a(n,r,o,a){var c=r&&r.prototype instanceof s?r:s,l=Object.create(c.prototype);return br(l,"_invoke",function(n,r,o){var a,s,c,l=0,u=o||[],p=!1,d={p:0,n:0,v:e,a:f,f:f.bind(e,4),d:function(t,n){return a=t,s=0,c=e,d.n=n,i}};function f(n,r){for(s=n,c=r,t=0;!p&&l&&!o&&t<u.length;t++){var o,a=u[t],f=d.p,m=a[2];n>3?(o=m===r)&&(c=a[(s=a[4])?5:(s=3,3)],a[4]=a[5]=e):a[0]<=f&&((o=n<2&&f<a[1])?(s=0,d.v=r,d.n=a[1]):f<m&&(o=n<3||a[0]>r||r>m)&&(a[4]=n,a[5]=r,d.n=m,s=0))}if(o||n>1)return i;throw p=!0,r}return function(o,u,m){if(l>1)throw TypeError("Generator is already running");for(p&&1===u&&f(u,m),s=u,c=m;(t=s<2?e:c)||!p;){a||(s?s<3?(s>1&&(d.n=-1),f(s,c)):d.n=c:d.v=c);try{if(l=2,a){if(s||(o="next"),t=a[o]){if(!(t=t.call(a,c)))throw TypeError("iterator result is not an object");if(!t.done)return t;c=t.value,s<2&&(s=0)}else 1===s&&(t=a.return)&&t.call(a),s<2&&(c=TypeError("The iterator does not provide a '"+o+"' method"),s=1);a=e}else if((t=(p=d.n<0)?c:n.call(r,d))!==i)break}catch(t){a=e,s=1,c=t}finally{l=1}}return{value:t,done:p}}}(n,o,a),!0),l}var i={};function s(){}function c(){}function l(){}t=Object.getPrototypeOf;var u=[][r]?t(t([][r]())):(br(t={},r,function(){return this}),t),p=l.prototype=s.prototype=Object.create(u);function d(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,l):(e.__proto__=l,br(e,o,"GeneratorFunction")),e.prototype=Object.create(p),e}return c.prototype=l,br(p,"constructor",l),br(l,"constructor",c),c.displayName="GeneratorFunction",br(l,o,"GeneratorFunction"),br(p),br(p,o,"Generator"),br(p,r,function(){return this}),br(p,"toString",function(){return"[object Generator]"}),(wr=function(){return{w:a,m:d}})()}function br(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}br=function(e,t,n,r){function a(t,n){br(e,t,function(e){return this._invoke(t,n,e)})}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(a("next",0),a("throw",1),a("return",2))},br(e,t,n,r)}function Rr(e){return"Twitter"===e?cr.TWITTER_IMAGE_SIZES:cr.FACEBOOK_IMAGE_SIZES}function Er(e){return new Promise(function(t,n){var r=new Image;r.onload=function(){t({width:r.width,height:r.height})},r.onerror=n,r.src=e})}function _r(e,t,n){return"square"===n&&t.width===t.height?{width:e.squareWidth,height:e.squareHeight}:function(e,t){return t.widthRatio<=t.heightRatio?{width:Math.round(e.width/t.widthRatio),height:Math.round(e.height/t.widthRatio)}:{width:Math.round(e.width/t.heightRatio),height:Math.round(e.height/t.heightRatio)}}(t,function(e,t,n){return"landscape"===n?{widthRatio:t.width/e.landscapeWidth,heightRatio:t.height/e.landscapeHeight}:"portrait"===n?{widthRatio:t.width/e.portraitWidth,heightRatio:t.height/e.portraitHeight}:{widthRatio:t.width/e.squareWidth,heightRatio:t.height/e.squareHeight}}(e,t,n))}function kr(_x,e){return Sr.apply(this,arguments)}function Sr(){return Sr=sr(wr().m(function e(t,n){var r,o,a,i,s,c=arguments;return wr().w(function(e){for(;;)switch(e.n){case 0:return r=c.length>2&&void 0!==c[2]&&c[2],e.n=1,Er(t);case 1:return o=e.v,a=r?"landscape":"square","Facebook"===n&&(a=(0,cr.determineFacebookImageMode)(o)),i=Rr(n),s=_r(i,o,a),e.a(2,{mode:a,height:s.height,width:s.width})}},e)})),Sr.apply(this,arguments)}function xr(e,t){return Tr.apply(this,arguments)}function Tr(){return Tr=sr(wr().m(function e(t,n){var r,o,a=arguments;return wr().w(function(e){for(;;)switch(e.p=e.n){case 0:return r=a.length>2&&void 0!==a[2]&&a[2],e.p=1,e.n=2,kr(t,n,r);case 2:return o=e.v,e.a(2,{imageProperties:o,status:"loaded"});case 3:return e.p=3,e.v,e.a(2,{imageProperties:null,status:"errored"})}},e,null,[[1,3]])})),Tr.apply(this,arguments)}function Or(){var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function a(n,r,o,a){var c=r&&r.prototype instanceof s?r:s,l=Object.create(c.prototype);return Pr(l,"_invoke",function(n,r,o){var a,s,c,l=0,u=o||[],p=!1,d={p:0,n:0,v:e,a:f,f:f.bind(e,4),d:function(t,n){return a=t,s=0,c=e,d.n=n,i}};function f(n,r){for(s=n,c=r,t=0;!p&&l&&!o&&t<u.length;t++){var o,a=u[t],f=d.p,m=a[2];n>3?(o=m===r)&&(c=a[(s=a[4])?5:(s=3,3)],a[4]=a[5]=e):a[0]<=f&&((o=n<2&&f<a[1])?(s=0,d.v=r,d.n=a[1]):f<m&&(o=n<3||a[0]>r||r>m)&&(a[4]=n,a[5]=r,d.n=m,s=0))}if(o||n>1)return i;throw p=!0,r}return function(o,u,m){if(l>1)throw TypeError("Generator is already running");for(p&&1===u&&f(u,m),s=u,c=m;(t=s<2?e:c)||!p;){a||(s?s<3?(s>1&&(d.n=-1),f(s,c)):d.n=c:d.v=c);try{if(l=2,a){if(s||(o="next"),t=a[o]){if(!(t=t.call(a,c)))throw TypeError("iterator result is not an object");if(!t.done)return t;c=t.value,s<2&&(s=0)}else 1===s&&(t=a.return)&&t.call(a),s<2&&(c=TypeError("The iterator does not provide a '"+o+"' method"),s=1);a=e}else if((t=(p=d.n<0)?c:n.call(r,d))!==i)break}catch(t){a=e,s=1,c=t}finally{l=1}}return{value:t,done:p}}}(n,o,a),!0),l}var i={};function s(){}function c(){}function l(){}t=Object.getPrototypeOf;var u=[][r]?t(t([][r]())):(Pr(t={},r,function(){return this}),t),p=l.prototype=s.prototype=Object.create(u);function d(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,l):(e.__proto__=l,Pr(e,o,"GeneratorFunction")),e.prototype=Object.create(p),e}return c.prototype=l,Pr(p,"constructor",l),Pr(l,"constructor",c),c.displayName="GeneratorFunction",Pr(l,o,"GeneratorFunction"),Pr(p),Pr(p,o,"Generator"),Pr(p,r,function(){return this}),Pr(p,"toString",function(){return"[object Generator]"}),(Or=function(){return{w:a,m:d}})()}function Pr(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}Pr=function(e,t,n,r){function a(t,n){Pr(e,t,function(e){return this._invoke(t,n,e)})}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(a("next",0),a("throw",1),a("return",2))},Pr(e,t,n,r)}function Cr(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(Cr=function(){return!!e})()}vr.propTypes={imageProps:Pe().shape({src:Pe().string.isRequired,alt:Pe().string.isRequired,aspectRatio:Pe().number.isRequired}).isRequired,width:Pe().number.isRequired,height:Pe().number.isRequired,imageMode:Pe().string};var Ir=Ie().div(fr||(fr=tr(["\n\tposition: relative;\n\t",";\n\toverflow: hidden;\n\tbackground-color: ",";\n"])),function(e){return"landscape"===e.mode?"max-width: ".concat(e.dimensions.width):"min-width: ".concat(e.dimensions.width,"; height: ").concat(e.dimensions.height)},lr.colors.$color_white),Lr=Ie().div(mr||(mr=tr(["\n\tbox-sizing: border-box;\n\tmax-width: ","px;\n\theight: ","px;\n\tbackground-color: ",";\n\tborder-style: dashed;\n\tborder-width: 1px;\n\t// We're not using standard colors to increase contrast for accessibility.\n\tcolor: #006DAC;\n\t// We're not using standard colors to increase contrast for accessibility.\n\tbackground-color: #f1f1f1;\n\tdisplay: flex;\n\tjustify-content: center;\n\talign-items: center;\n\ttext-decoration: underline;\n\tfont-size: 14px;\n\tcursor: pointer;\n"])),cr.FACEBOOK_IMAGE_SIZES.landscapeWidth,cr.FACEBOOK_IMAGE_SIZES.landscapeHeight,lr.colors.$color_grey),jr=function(e){function t(e){var n,r,o,a;return Yn(this,t),r=this,a=[e],o=Xn(o=t),(n=Qn(r,Cr()?Reflect.construct(o,a||[],Xn(r).constructor):o.apply(r,a))).state={imageProperties:null,status:"loading"},n.socialMedium="Facebook",n.handleFacebookImage=n.handleFacebookImage.bind(n),n.setState=n.setState.bind(n),n}return er(t,e),Zn(t,[{key:"handleFacebookImage",value:(n=sr(Or().m(function e(){var t,n;return Or().w(function(e){for(;;)switch(e.p=e.n){case 0:return e.p=0,e.n=1,xr(this.props.src,this.socialMedium);case 1:t=e.v,this.setState(t),this.props.onImageLoaded(t.imageProperties.mode||"landscape"),e.n=3;break;case 2:e.p=2,n=e.v,this.setState(n),this.props.onImageLoaded("landscape");case 3:return e.a(2)}},e,this,[[0,2]])})),function(){return n.apply(this,arguments)})},{key:"componentDidUpdate",value:function(e){e.src!==this.props.src&&this.handleFacebookImage()}},{key:"componentDidMount",value:function(){this.handleFacebookImage()}},{key:"retrieveContainerDimensions",value:function(e){switch(e){case"square":return{height:cr.FACEBOOK_IMAGE_SIZES.squareHeight+"px",width:cr.FACEBOOK_IMAGE_SIZES.squareWidth+"px"};case"portrait":return{height:cr.FACEBOOK_IMAGE_SIZES.portraitHeight+"px",width:cr.FACEBOOK_IMAGE_SIZES.portraitWidth+"px"};case"landscape":return{height:cr.FACEBOOK_IMAGE_SIZES.landscapeHeight+"px",width:cr.FACEBOOK_IMAGE_SIZES.landscapeWidth+"px"}}}},{key:"render",value:function(){var e=this.state,t=e.imageProperties,n=e.status;if("loading"===n||""===this.props.src||"errored"===n)return ze().createElement(Lr,{onClick:this.props.onImageClick,onMouseEnter:this.props.onMouseEnter,onMouseLeave:this.props.onMouseLeave},(0,Ke.__)("Select image","wordpress-seo"));var r=this.retrieveContainerDimensions(t.mode);return ze().createElement(Ir,{mode:t.mode,dimensions:r,onMouseEnter:this.props.onMouseEnter,onMouseLeave:this.props.onMouseLeave,onClick:this.props.onImageClick},ze().createElement(vr,{imageProps:{src:this.props.src,alt:this.props.alt,aspectRatio:cr.FACEBOOK_IMAGE_SIZES.aspectRatio},width:t.width,height:t.height,imageMode:t.mode}))}}]);var n}(Ve.Component);jr.propTypes={src:Pe().string,alt:Pe().string,onImageLoaded:Pe().func,onImageClick:Pe().func,onMouseEnter:Pe().func,onMouseLeave:Pe().func},jr.defaultProps={src:"",alt:"",onImageLoaded:h.noop,onImageClick:h.noop,onMouseEnter:h.noop,onMouseLeave:h.noop};const Ar=jr;var Dr;const Fr=Ie().span(Dr||(Dr=tr(["\n\tline-height: ","px;\n\tmin-height : ","px;\n\tcolor: #1d2129;\n\tfont-weight: 600;\n\toverflow: hidden;\n\tfont-size: 16px;\n\tmargin: 3px 0 0;\n\tletter-spacing: normal;\n\twhite-space: normal;\n\tflex-shrink: 0;\n\tcursor: pointer;\n\tdisplay: -webkit-box;\n\t-webkit-line-clamp: ",";\n\t-webkit-box-orient: vertical;\n\toverflow: hidden;\n"])),20,20,function(e){return e.lineCount});var Mr;const qr=Ie().p(Mr||(Mr=tr(["\n\tline-height: ","px;\n\tmin-height : ","px;\n\tcolor: #606770;\n\tfont-size: 14px;\n\tpadding: 0;\n\ttext-overflow: ellipsis;\n\tmargin: 3px 0 0 0;\n\tdisplay: -webkit-box;\n\tcursor: pointer;\n\t-webkit-line-clamp: ",";\n\t-webkit-box-orient: vertical;\n\toverflow: hidden;\n\n\t@media all and ( max-width: "," ) {\n\t\tdisplay: none;\n\t}\n"])),16,16,function(e){return e.lineCount},function(e){return e.maxWidth});var Nr,Ur;function Wr(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(Wr=function(){return!!e})()}var Br=function(e){switch(e){case"landscape":return"527px";case"square":case"portrait":return"369px";default:return"476px"}},Kr=Ie().div(Nr||(Nr=tr(["\n\tbox-sizing: border-box;\n\tdisplay: flex;\n\tflex-direction: ",";\n\tbackground-color: #f2f3f5;\n\tmax-width: 527px;\n"])),function(e){return"landscape"===e.mode?"column":"row"}),Hr=Ie().div(Ur||(Ur=tr(["\n\tbox-sizing: border-box;\n\tbackground-color: #f2f3f5;\n\tmargin: 0;\n\tpadding: 10px 12px;\n\tposition: relative;\n\tborder-bottom: ",";\n\tborder-top: ",";\n\tborder-right: ",";\n\tborder: ",";\n\tdisplay: flex;\n\tflex-direction: column;\n\tflex-grow: 1;\n\tjustify-content: ",";\n\tfont-size: 12px;\n\toverflow: hidden;\n"])),function(e){return"landscape"===e.mode?"":"1px solid #dddfe2"},function(e){return"landscape"===e.mode?"":"1px solid #dddfe2"},function(e){return"landscape"===e.mode?"":"1px solid #dddfe2"},function(e){return"landscape"===e.mode?"1px solid #dddfe2":""},function(e){return"landscape"===e.mode?"flex-start":"center"}),Gr=function(e){function t(e){var n,r,o,a;return Yn(this,t),r=this,a=[e],o=Xn(o=t),(n=Qn(r,Wr()?Reflect.construct(o,a||[],Xn(r).constructor):o.apply(r,a))).state={imageMode:null,maxLineCount:0,descriptionLineCount:0},n.facebookTitleRef=ze().createRef(),n.onImageLoaded=n.onImageLoaded.bind(n),n.onImageEnter=n.props.onMouseHover.bind(n,"image"),n.onTitleEnter=n.props.onMouseHover.bind(n,"title"),n.onDescriptionEnter=n.props.onMouseHover.bind(n,"description"),n.onLeave=n.props.onMouseHover.bind(n,""),n.onSelectTitle=n.props.onSelect.bind(n,"title"),n.onSelectDescription=n.props.onSelect.bind(n,"description"),n}return er(t,e),Zn(t,[{key:"onImageLoaded",value:function(e){this.setState({imageMode:e})}},{key:"getTitleLineCount",value:function(){return this.facebookTitleRef.current.offsetHeight/20}},{key:"maybeSetMaxLineCount",value:function(){var e=this.state,t="landscape"===e.imageMode?2:5;t!==e.maxLineCount&&this.setState({maxLineCount:t})}},{key:"maybeSetDescriptionLineCount",value:function(){var e=this.state,t=e.descriptionLineCount,n=e.maxLineCount,r=e.imageMode,o=this.getTitleLineCount(),a=n-o;"portrait"===r&&(a=5===o?0:4),a!==t&&this.setState({descriptionLineCount:a})}},{key:"componentDidUpdate",value:function(){this.maybeSetMaxLineCount(),this.maybeSetDescriptionLineCount()}},{key:"render",value:function(){var e=this.state,t=e.imageMode,n=e.maxLineCount,r=e.descriptionLineCount;return ze().createElement(Kr,{id:"facebookPreview",mode:t},ze().createElement(Ar,{src:this.props.imageUrl||this.props.imageFallbackUrl,alt:this.props.alt,onImageLoaded:this.onImageLoaded,onImageClick:this.props.onImageClick,onMouseEnter:this.onImageEnter,onMouseLeave:this.onLeave}),ze().createElement(Hr,{mode:t},ze().createElement(ar,{siteUrl:this.props.siteUrl,mode:t}),ze().createElement(Fr,{ref:this.facebookTitleRef,onMouseEnter:this.onTitleEnter,onMouseLeave:this.onLeave,onClick:this.onSelectTitle,lineCount:n},this.props.title),r>0&&ze().createElement(qr,{maxWidth:Br(t),onMouseEnter:this.onDescriptionEnter,onMouseLeave:this.onLeave,onClick:this.onSelectDescription,lineCount:r},this.props.description)))}}])}(Ve.Component);Gr.propTypes={siteUrl:Pe().string.isRequired,title:Pe().string.isRequired,description:Pe().string,imageUrl:Pe().string,imageFallbackUrl:Pe().string,alt:Pe().string,onSelect:Pe().func,onImageClick:Pe().func,onMouseHover:Pe().func},Gr.defaultProps={description:"",alt:"",imageUrl:"",imageFallbackUrl:"",onSelect:function(){},onImageClick:function(){},onMouseHover:function(){}};const Yr=Gr;var Vr,zr=Ie().div(Vr||(Vr=tr(["\n\ttext-transform: lowercase;\n\tcolor: rgb(83, 100, 113);\n\twhite-space: nowrap;\n\toverflow: hidden;\n\ttext-overflow: ellipsis;\n\tmargin: 0;\n\tfill: currentcolor;\n\tdisplay: flex;\n\tflex-direction: row;\n\talign-items: flex-end;\n"]))),$r=function(e){return ze().createElement(zr,null,ze().createElement("span",null,e.siteUrl))};$r.propTypes={siteUrl:Pe().string.isRequired};const Zr=$r;var Qr,Xr,Jr;function eo(){var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function a(n,r,o,a){var c=r&&r.prototype instanceof s?r:s,l=Object.create(c.prototype);return to(l,"_invoke",function(n,r,o){var a,s,c,l=0,u=o||[],p=!1,d={p:0,n:0,v:e,a:f,f:f.bind(e,4),d:function(t,n){return a=t,s=0,c=e,d.n=n,i}};function f(n,r){for(s=n,c=r,t=0;!p&&l&&!o&&t<u.length;t++){var o,a=u[t],f=d.p,m=a[2];n>3?(o=m===r)&&(c=a[(s=a[4])?5:(s=3,3)],a[4]=a[5]=e):a[0]<=f&&((o=n<2&&f<a[1])?(s=0,d.v=r,d.n=a[1]):f<m&&(o=n<3||a[0]>r||r>m)&&(a[4]=n,a[5]=r,d.n=m,s=0))}if(o||n>1)return i;throw p=!0,r}return function(o,u,m){if(l>1)throw TypeError("Generator is already running");for(p&&1===u&&f(u,m),s=u,c=m;(t=s<2?e:c)||!p;){a||(s?s<3?(s>1&&(d.n=-1),f(s,c)):d.n=c:d.v=c);try{if(l=2,a){if(s||(o="next"),t=a[o]){if(!(t=t.call(a,c)))throw TypeError("iterator result is not an object");if(!t.done)return t;c=t.value,s<2&&(s=0)}else 1===s&&(t=a.return)&&t.call(a),s<2&&(c=TypeError("The iterator does not provide a '"+o+"' method"),s=1);a=e}else if((t=(p=d.n<0)?c:n.call(r,d))!==i)break}catch(t){a=e,s=1,c=t}finally{l=1}}return{value:t,done:p}}}(n,o,a),!0),l}var i={};function s(){}function c(){}function l(){}t=Object.getPrototypeOf;var u=[][r]?t(t([][r]())):(to(t={},r,function(){return this}),t),p=l.prototype=s.prototype=Object.create(u);function d(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,l):(e.__proto__=l,to(e,o,"GeneratorFunction")),e.prototype=Object.create(p),e}return c.prototype=l,to(p,"constructor",l),to(l,"constructor",c),c.displayName="GeneratorFunction",to(l,o,"GeneratorFunction"),to(p),to(p,o,"Generator"),to(p,r,function(){return this}),to(p,"toString",function(){return"[object Generator]"}),(eo=function(){return{w:a,m:d}})()}function to(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}to=function(e,t,n,r){function a(t,n){to(e,t,function(e){return this._invoke(t,n,e)})}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(a("next",0),a("throw",1),a("return",2))},to(e,t,n,r)}function no(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(no=function(){return!!e})()}var ro,oo=function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return e?"\n\t\t\tmax-width: ".concat(cr.TWITTER_IMAGE_SIZES.landscapeWidth,"px;\n\t\t\t").concat(t?"border-bottom: 1px solid #E1E8ED;":"","\n\t\t\tborder-radius: 14px 14px 0 0;\n\t\t\t"):"\n\t\twidth: ".concat(cr.TWITTER_IMAGE_SIZES.squareWidth,"px;\n\t\t").concat(t?"border-right: 1px solid #E1E8ED;":"","\n\t\tborder-radius: 14px 0 0 14px;\n\t\t")},ao=Ie().div(Qr||(Qr=tr(["\n\tposition: relative;\n\tbox-sizing: content-box;\n\toverflow: hidden;\n\tbackground-color: #e1e8ed;\n\tflex-shrink: 0;\n\t","\n"])),function(e){return oo(e.isLarge)}),io=Ie().div(Xr||(Xr=tr(["\n\tdisplay: flex;\n\tjustify-content: center;\n\talign-items: center;\n\tbox-sizing: border-box;\n\tmax-width: 100%;\n\tmargin: 0;\n\tpadding: 1em;\n\ttext-align: center;\n\tfont-size: 1rem;\n\t","\n"])),function(e){return oo(e.isLarge,!1)}),so=Ie()(io)(Jr||(Jr=tr(["\n\t","\n\tborder-top-left-radius: 14px;\n\t",": 14px;\n\tborder-style: dashed;\n\tborder-width: 1px;\n\t// We're not using standard colors to increase contrast for accessibility.\n\tcolor: #006DAC;\n\t// We're not using standard colors to increase contrast for accessibility.\n\tbackground-color: #f1f1f1;\n\ttext-decoration: underline;\n\tfont-size: 14px;\n\tcursor: pointer;\n"])),function(e){return e.isLarge&&"height: ".concat(cr.TWITTER_IMAGE_SIZES.landscapeHeight,"px;")},function(e){return e.isLarge?"border-top-right-radius":"border-bottom-left-radius"}),co=function(e){function t(e){var n,r,o,a;return Yn(this,t),r=this,a=[e],o=Xn(o=t),(n=Qn(r,no()?Reflect.construct(o,a||[],Xn(r).constructor):o.apply(r,a))).state={status:"loading"},n.socialMedium="Twitter",n.handleTwitterImage=n.handleTwitterImage.bind(n),n.setState=n.setState.bind(n),n}return er(t,e),Zn(t,[{key:"handleTwitterImage",value:(n=sr(eo().m(function e(){var t;return eo().w(function(e){for(;;)switch(e.n){case 0:if(null!==this.props.src){e.n=1;break}return e.a(2);case 1:return e.n=2,xr(this.props.src,this.socialMedium,this.props.isLarge);case 2:t=e.v,this.setState(t);case 3:return e.a(2)}},e,this)})),function(){return n.apply(this,arguments)})},{key:"componentDidUpdate",value:function(e){e.src!==this.props.src&&this.handleTwitterImage()}},{key:"componentDidMount",value:function(){this.handleTwitterImage()}},{key:"render",value:function(){var e=this.state,t=e.status,n=e.imageProperties;return"loading"===t||""===this.props.src||"errored"===t?ze().createElement(so,{isLarge:this.props.isLarge,onClick:this.props.onImageClick,onMouseEnter:this.props.onMouseEnter,onMouseLeave:this.props.onMouseLeave},(0,Ke.__)("Select image","wordpress-seo")):ze().createElement(ao,{isLarge:this.props.isLarge,onClick:this.props.onImageClick,onMouseEnter:this.props.onMouseEnter,onMouseLeave:this.props.onMouseLeave},ze().createElement(vr,{imageProps:{src:this.props.src,alt:this.props.alt,aspectRatio:cr.TWITTER_IMAGE_SIZES.aspectRatio},width:n.width,height:n.height,imageMode:n.mode}))}}]);var n}(ze().Component);co.propTypes={isLarge:Pe().bool.isRequired,src:Pe().string,alt:Pe().string,onImageClick:Pe().func,onMouseEnter:Pe().func,onMouseLeave:Pe().func},co.defaultProps={src:"",alt:"",onMouseEnter:h.noop,onImageClick:h.noop,onMouseLeave:h.noop};var lo=Ie().div(ro||(ro=tr(["\n\tdisplay: flex;\n\tflex-direction: column;\n\tpadding: 12px;\n\tjustify-content: center;\n\tmargin: 0;\n\tbox-sizing: border-box;\n\tflex: auto;\n\tmin-width: 0px;\n\tgap:2px;\n\t> * {\n\t\tline-height:20px;\n\t\tmin-height:20px;\n\t\tfont-size:15px;\n    }\n"]))),uo=function(e){return ze().createElement(lo,null,e.children)};uo.propTypes={children:Pe().array.isRequired};const po=uo;var fo;const mo=Ie().p(fo||(fo=tr(["\n\twhite-space: nowrap;\n\toverflow: hidden;\n\ttext-overflow: ellipsis;\n\tmargin: 0;\n\tcolor: rgb(15, 20, 25);\n\tcursor: pointer;\n"])));var ho;const go=Ie().p(ho||(ho=tr(["\n\tmax-height: 55px;\n\toverflow: hidden;\n\ttext-overflow: ellipsis;\n\tmargin: 0;\n\tcolor: rgb(83, 100, 113);\n\tdisplay: -webkit-box;\n\tcursor: pointer;\n\t-webkit-line-clamp: 2;\n\t-webkit-box-orient: vertical;\n\n\t@media all and ( max-width: ","px ) {\n\t\tdisplay: none;\n\t}\n"])),cr.TWITTER_IMAGE_SIZES.landscapeWidth);var yo,vo,wo;function bo(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(bo=function(){return!!e})()}var Ro=Ie().div(yo||(yo=tr(['\n\tfont-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Ubuntu, "Helvetica Neue", sans-serif;\n\tfont-size: 15px;\n\tfont-weight: 400;\n\tline-height: 20px;\n\tmax-width: 507px;\n\tborder: 1px solid #E1E8ED;\n\tbox-sizing: border-box;\n\tborder-radius: 14px;\n\tcolor: #292F33;\n\tbackground: #FFFFFF;\n\ttext-overflow: ellipsis;\n\tdisplay: flex;\n\n\t&:hover {\n\t\tbackground: #f5f8fa;\n\t\tborder: 1px solid rgba(136,153,166,.5);\n\t}\n']))),Eo=Ie()(Ro)(vo||(vo=tr(["\n\tflex-direction: column;\n\tmax-height: 370px;\n"]))),_o=Ie()(Ro)(wo||(wo=tr(["\n\tflex-direction: row;\n\theight: 125px;\n"]))),ko=function(e){function t(e){var n,r,o,a;return Yn(this,t),r=this,a=[e],o=Xn(o=t),(n=Qn(r,bo()?Reflect.construct(o,a||[],Xn(r).constructor):o.apply(r,a))).onImageEnter=n.props.onMouseHover.bind(n,"image"),n.onTitleEnter=n.props.onMouseHover.bind(n,"title"),n.onDescriptionEnter=n.props.onMouseHover.bind(n,"description"),n.onLeave=n.props.onMouseHover.bind(n,""),n.onSelectTitle=n.props.onSelect.bind(n,"title"),n.onSelectDescription=n.props.onSelect.bind(n,"description"),n}return er(t,e),Zn(t,[{key:"render",value:function(){var e=this.props,t=e.isLarge,n=e.imageUrl,r=e.imageFallbackUrl,o=e.alt,a=e.title,i=e.description,s=e.siteUrl,c=t?Eo:_o;return ze().createElement(c,{id:"twitterPreview"},ze().createElement(co,{src:n||r,alt:o,isLarge:t,onImageClick:this.props.onImageClick,onMouseEnter:this.onImageEnter,onMouseLeave:this.onLeave}),ze().createElement(po,null,ze().createElement(Zr,{siteUrl:s}),ze().createElement(mo,{onMouseEnter:this.onTitleEnter,onMouseLeave:this.onLeave,onClick:this.onSelectTitle},a),ze().createElement(go,{onMouseEnter:this.onDescriptionEnter,onMouseLeave:this.onLeave,onClick:this.onSelectDescription},i)))}}])}(Ve.Component);ko.propTypes={siteUrl:Pe().string.isRequired,title:Pe().string.isRequired,description:Pe().string,isLarge:Pe().bool,imageUrl:Pe().string,imageFallbackUrl:Pe().string,alt:Pe().string,onSelect:Pe().func,onImageClick:Pe().func,onMouseHover:Pe().func},ko.defaultProps={description:"",alt:"",imageUrl:"",imageFallbackUrl:"",onSelect:function(){},onImageClick:function(){},onMouseHover:function(){},isLarge:!0};const So=ko,xo=window.yoast.replacementVariableEditor;function To(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(To=function(){return!!e})()}var Oo=function(e){function t(e){var n,r,o,a;return Yn(this,t),r=this,a=[e],o=Xn(o=t),(n=Qn(r,To()?Reflect.construct(o,a||[],Xn(r).constructor):o.apply(r,a))).state={activeField:"",hoveredField:""},n.SocialPreview="Social"===e.socialMediumName?Yr:So,n.setHoveredField=n.setHoveredField.bind(n),n.setActiveField=n.setActiveField.bind(n),n.setEditorRef=n.setEditorRef.bind(n),n.setEditorFocus=n.setEditorFocus.bind(n),n}return er(t,e),Zn(t,[{key:"setHoveredField",value:function(e){e!==this.state.hoveredField&&this.setState({hoveredField:e})}},{key:"setActiveField",value:function(e){var t=this;e!==this.state.activeField&&this.setState({activeField:e},function(){return t.setEditorFocus(e)})}},{key:"setEditorFocus",value:function(e){switch(e){case"title":this.titleEditorRef.focus();break;case"description":this.descriptionEditorRef.focus()}}},{key:"setEditorRef",value:function(e,t){switch(e){case"title":this.titleEditorRef=t;break;case"description":this.descriptionEditorRef=t}}},{key:"render",value:function(){var e=this.props,t=e.onDescriptionChange,n=e.onTitleChange,r=e.onSelectImageClick,o=e.onRemoveImageClick,a=e.socialMediumName,i=e.imageWarnings,s=e.siteUrl,c=e.description,l=e.descriptionInputPlaceholder,u=e.descriptionPreviewFallback,p=e.imageUrl,d=e.imageFallbackUrl,f=e.alt,m=e.title,h=e.titleInputPlaceholder,g=e.titlePreviewFallback,y=e.replacementVariables,v=e.recommendedReplacementVariables,w=e.applyReplacementVariables,b=e.onReplacementVariableSearchChange,R=e.isPremium,E=e.isLarge,_=e.socialPreviewLabel,k=e.idSuffix,S=e.activeMetaTabId,x=w({title:m||g,description:c||u});return ze().createElement(ze().Fragment,null,_&&ze().createElement(xt.SimulatedLabel,null,_),ze().createElement(this.SocialPreview,{onMouseHover:this.setHoveredField,onSelect:this.setActiveField,onImageClick:r,siteUrl:s,title:x.title,description:x.description,imageUrl:p,imageFallbackUrl:d,alt:f,isLarge:E,activeMetaTabId:S}),ze().createElement(cr.SocialMetadataPreviewForm,{onDescriptionChange:t,socialMediumName:a,title:m,titleInputPlaceholder:h,onRemoveImageClick:o,imageSelected:!!p,imageUrl:p,imageFallbackUrl:d,onTitleChange:n,onSelectImageClick:r,description:c,descriptionInputPlaceholder:l,imageWarnings:i,replacementVariables:y,recommendedReplacementVariables:v,onReplacementVariableSearchChange:b,onMouseHover:this.setHoveredField,hoveredField:this.state.hoveredField,onSelect:this.setActiveField,activeField:this.state.activeField,isPremium:R,setEditorRef:this.setEditorRef,idSuffix:k}))}}])}(Ve.Component);Oo.propTypes={title:Pe().string.isRequired,onTitleChange:Pe().func.isRequired,description:Pe().string.isRequired,onDescriptionChange:Pe().func.isRequired,imageUrl:Pe().string.isRequired,imageFallbackUrl:Pe().string.isRequired,onSelectImageClick:Pe().func.isRequired,onRemoveImageClick:Pe().func.isRequired,socialMediumName:Pe().string.isRequired,alt:Pe().string,isPremium:Pe().bool,imageWarnings:Pe().array,isLarge:Pe().bool,siteUrl:Pe().string,descriptionInputPlaceholder:Pe().string,titleInputPlaceholder:Pe().string,descriptionPreviewFallback:Pe().string,titlePreviewFallback:Pe().string,replacementVariables:xo.replacementVariablesShape,recommendedReplacementVariables:xo.recommendedReplacementVariablesShape,applyReplacementVariables:Pe().func,onReplacementVariableSearchChange:Pe().func,socialPreviewLabel:Pe().string,idSuffix:Pe().string,activeMetaTabId:Pe().string},Oo.defaultProps={imageWarnings:[],recommendedReplacementVariables:[],replacementVariables:[],isPremium:!1,isLarge:!0,siteUrl:"",descriptionInputPlaceholder:"",titleInputPlaceholder:"",descriptionPreviewFallback:"",titlePreviewFallback:"",alt:"",applyReplacementVariables:function(e){return e},onReplacementVariableSearchChange:null,socialPreviewLabel:"",idSuffix:"",activeMetaTabId:""};var Po,Co={},Io=function(e,t){var n=(arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}).log,r=void 0===n?console.warn:n;Co[e]||(Co[e]=!0,r(t))},Lo=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:h.noop,n={},r=function(r){if(!Object.hasOwn(e,r))return 1;Object.defineProperty(n,r,{set:function(n){e[r]=n,t("set",r,n)},get:function(){return t("get",r),e[r]}})};for(var o in e)r(o);return n};Lo({squareWidth:125,squareHeight:125,landscapeWidth:506,landscapeHeight:265,aspectRatio:50.2},function(e,t){return Io("@yoast/social-metadata-previews/TWITTER_IMAGE_SIZES/".concat(e,"/").concat(t),'[@yoast/social-metadata-previews] "TWITTER_IMAGE_SIZES.'.concat(t,'" is deprecated and will be removed in the future, ')+"please use this from @yoast/social-metadata-forms instead.")}),Lo({squareWidth:158,squareHeight:158,landscapeWidth:527,landscapeHeight:273,portraitWidth:158,portraitHeight:237,aspectRatio:52.2,largeThreshold:{width:446,height:233}},function(e,t){return Io("@yoast/social-metadata-previews/FACEBOOK_IMAGE_SIZES/".concat(e,"/").concat(t),'[@yoast/social-metadata-previews] "FACEBOOK_IMAGE_SIZES.'.concat(t,'" is deprecated and will be removed in the future, ')+"please use this from @yoast/social-metadata-forms instead.")});var jo=Ie().div(Po||(Po=Wt(["\n\tmax-width: calc(527px + 1.5rem);\n"]))),Ao=function(e){var t="X"===e.socialMediumName?(0,Ke.__)("X share preview","wordpress-seo"):(0,Ke.__)("Social share preview","wordpress-seo"),n=(0,Ye.useRootContext)().locationContext;return React.createElement(Ye.Root,null,React.createElement(jo,null,React.createElement(Ye.FeatureUpsell,et({shouldUpsell:!0,variant:"card",cardLink:(0,Rt.addQueryArgs)(wpseoAdminL10n["shortlinks.upsell.social_preview."+e.socialMediumName.toLowerCase()],{context:n}),cardText:(0,Ke.sprintf)(/* translators: %1$s expands to Yoast SEO Premium. */ /* translators: %1$s expands to Yoast SEO Premium. */
(0,Ke.__)("Unlock with %1$s","wordpress-seo"),"Yoast SEO Premium")},{"data-action":"load-nfd-ctb","data-ctb-id":"f6a84663-465f-4cb5-8ba5-f7a6d72224b2"}),React.createElement("div",{className:"yst-grayscale yst-opacity-50"},React.createElement(Ye.Label,null,t),React.createElement(Yr,{title:"",description:"",siteUrl:"",imageUrl:"",imageFallbackUrl:"",alt:"",onSelect:h.noop,onImageClick:h.noop,onMouseHover:h.noop})))))};Ao.propTypes={socialMediumName:Pe().oneOf(["Social","Twitter","X"]).isRequired};const Do=Ao;function Fo(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(Fo=function(){return!!e})()}var Mo=function(e){function t(e){var n,r,o,a;return S(this,t),r=this,a=[e],o=Ee(o=t),(n=Re(r,Fo()?Reflect.construct(o,a||[],Ee(r).constructor):o.apply(r,a))).state={activeField:"",hoveredField:""},n.setHoveredField=n.setHoveredField.bind(n),n.setActiveField=n.setActiveField.bind(n),n.setEditorRef=n.setEditorRef.bind(n),n.setEditorFocus=n.setEditorFocus.bind(n),n}return ke(t,e),T(t,[{key:"setHoveredField",value:function(e){e!==this.state.hoveredField&&this.setState({hoveredField:e})}},{key:"setActiveField",value:function(e){var t=this;e!==this.state.activeField&&this.setState({activeField:e},function(){return t.setEditorFocus(e)})}},{key:"setEditorFocus",value:function(e){switch(e){case"title":this.titleEditorRef.focus();break;case"description":this.descriptionEditorRef.focus()}}},{key:"setEditorRef",value:function(e,t){switch(e){case"title":this.titleEditorRef=t;break;case"description":this.descriptionEditorRef=t}}},{key:"render",value:function(){var e=this.props,t=e.onDescriptionChange,n=e.onTitleChange,r=e.onSelectImageClick,o=e.onRemoveImageClick,a=e.socialMediumName,i=e.imageWarnings,s=e.description,c=e.descriptionInputPlaceholder,l=e.imageUrl,u=e.imageFallbackUrl,p=e.alt,d=e.title,f=e.titleInputPlaceholder,m=e.replacementVariables,h=e.recommendedReplacementVariables,g=e.onReplacementVariableSearchChange,y=e.isPremium,v=e.location;return React.createElement(xe.Fragment,null,React.createElement(Do,{socialMediumName:a}),React.createElement(cr.SocialMetadataPreviewForm,{onDescriptionChange:t,socialMediumName:a,title:d,titleInputPlaceholder:f,onRemoveImageClick:o,imageSelected:!!l,imageUrl:l,imageFallbackUrl:u,imageAltText:p,onTitleChange:n,onSelectImageClick:r,description:s,descriptionInputPlaceholder:c,imageWarnings:i,replacementVariables:m,recommendedReplacementVariables:h,onReplacementVariableSearchChange:g,onMouseHover:this.setHoveredField,hoveredField:this.state.hoveredField,onSelect:this.setActiveField,activeField:this.state.activeField,isPremium:y,setEditorRef:this.setEditorRef,idSuffix:v}))}}])}(xe.Component);Mo.propTypes={title:Pe().string.isRequired,onTitleChange:Pe().func.isRequired,description:Pe().string.isRequired,onDescriptionChange:Pe().func.isRequired,imageUrl:Pe().string.isRequired,imageFallbackUrl:Pe().string,onSelectImageClick:Pe().func.isRequired,onRemoveImageClick:Pe().func.isRequired,socialMediumName:Pe().string.isRequired,isPremium:Pe().bool,imageWarnings:Pe().array,descriptionInputPlaceholder:Pe().string,titleInputPlaceholder:Pe().string,replacementVariables:xo.replacementVariablesShape,recommendedReplacementVariables:xo.recommendedReplacementVariablesShape,onReplacementVariableSearchChange:Pe().func,location:Pe().string,alt:Pe().string},Mo.defaultProps={imageWarnings:[],imageFallbackUrl:"",recommendedReplacementVariables:[],replacementVariables:[],isPremium:!1,descriptionInputPlaceholder:"",titleInputPlaceholder:"",onReplacementVariableSearchChange:null,location:"",alt:""};const qo=Mo;var No=function(e,t,n){var r=G((0,xe.useState)(!1),2),o=r[0],a=r[1],i=(0,Ke.sprintf)(
/* Translators: %1$s expands to the jpg format, %2$s expands to the png format,
  %3$s expands to the webp format, %4$s expands to the gif format. */
/* Translators: %1$s expands to the jpg format, %2$s expands to the png format,
  %3$s expands to the webp format, %4$s expands to the gif format. */
(0,Ke.__)("No image was found that we can automatically set as your social image. Please use %1$s, %2$s, %3$s or %4$s formats to ensure it displays correctly on social media.","wordpress-seo"),"JPG","PNG","WEBP","GIF");return(0,xe.useEffect)(function(){a(""===t&&e.toLowerCase().endsWith(".avif"))},[e,t]),o?[i]:n},Uo=["isPremium","onLoad","location","imageFallbackUrl","imageUrl","imageWarnings"];function Wo(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}var Bo=function(e){var t=e.isPremium,n=e.onLoad,r=e.location,o=e.imageFallbackUrl,a=void 0===o?"":o,i=e.imageUrl,s=void 0===i?"":i,c=e.imageWarnings,u=void 0===c?[]:c,p=l(e,Uo),f=G((0,xe.useState)(""),2),m=f[0],h=f[1],g=No(a,s,u),y=(0,xe.useCallback)(function(e){h(e.detail.metaTabId)},[h]);(0,xe.useEffect)(function(){return setTimeout(n),window.addEventListener("YoastSEO:metaTabChange",y),function(){window.removeEventListener("YoastSEO:metaTabChange",y)}},[]);var v=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Wo(Object(n),!0).forEach(function(t){d(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Wo(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({isPremium:t,onLoad:n,location:r,imageFallbackUrl:a,imageUrl:s,imageWarnings:g,activeMetaTabId:m},p);return t?React.createElement(Se.Slot,{name:"YoastFacebookPremium".concat(r.charAt(0).toUpperCase()+r.slice(1)),fillProps:v}):React.createElement(qo,v)};Bo.propTypes={isPremium:Pe().bool.isRequired,onLoad:Pe().func.isRequired,location:Pe().string.isRequired,imageFallbackUrl:Pe().string,imageUrl:Pe().string,imageWarnings:Pe().array};const Ko=Bo;function Ho(e){(function(e){var t=window.wp.media();return t.on("select",function(){var n,r=t.state().get("selection").first();e({type:(n=r.attributes).subtype,width:n.width,height:n.height,url:n.url,id:n.id,sizes:n.sizes,alt:n.alt||n.title||n.name})}),t})(e).open()}var Go=function(){Ho(function(e){return(0,s.dispatch)("yoast-seo/editor").setFacebookPreviewImage(function(e){var t=e.width,n=e.height,r=(0,cr.determineFacebookImageMode)({width:t,height:n}),o=cr.FACEBOOK_IMAGE_SIZES[r+"Width"],a=cr.FACEBOOK_IMAGE_SIZES[r+"Height"],i=Object.values(e.sizes).find(function(e){return e.width>=o&&e.height>=a});return{url:i?i.url:e.url,id:e.id,warnings:(0,Qt.validateFacebookImage)(e),alt:e.alt||""}}(e))})};const Yo=(0,wt.compose)([(0,s.withSelect)(function(e){var t=e("yoast-seo/editor"),n=t.getFacebookDescription,r=t.getDescription,o=t.getFacebookTitle,a=t.getSeoTitle,i=t.getFacebookImageUrl,s=t.getImageFallback,c=t.getFacebookWarnings,l=t.getRecommendedReplaceVars,u=t.getReplaceVars,p=t.getSiteUrl,d=t.getSeoTitleTemplate,f=t.getSeoTitleTemplateNoFallback,m=t.getSocialTitleTemplate,h=t.getSeoDescriptionTemplate,g=t.getSocialDescriptionTemplate,y=t.getReplacedExcerpt,v=t.getFacebookAltText;return{imageUrl:i(),imageFallbackUrl:s(),recommendedReplacementVariables:l(),replacementVariables:u(),description:n(),descriptionPreviewFallback:g()||r()||h()||y()||"",title:o(),titlePreviewFallback:m()||a()||f()||d()||"",imageWarnings:c(),siteUrl:p(),isPremium:!!b().isPremium,titleInputPlaceholder:"",descriptionInputPlaceholder:"",socialMediumName:"Social",alt:v()}}),(0,s.withDispatch)(function(e,t,n){var r=n.select,o=e("yoast-seo/editor"),a=o.setFacebookPreviewTitle,i=o.setFacebookPreviewDescription,s=o.clearFacebookPreviewImage,c=o.loadFacebookPreviewData,l=o.findCustomFields,u=r("yoast-seo/editor").getPostId();return{onSelectImageClick:Go,onRemoveImageClick:s,onDescriptionChange:i,onTitleChange:a,onLoad:c,onReplacementVariableSearchChange:Ln(u,l)}}),Nt()])(Ko);var Vo=["isPremium","onLoad","location","imageFallbackUrl","imageUrl","imageWarnings"];function zo(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}var $o=function(e){var t=e.isPremium,n=e.onLoad,r=e.location,o=e.imageFallbackUrl,a=void 0===o?"":o,i=e.imageUrl,s=void 0===i?"":i,c=e.imageWarnings,u=void 0===c?[]:c,p=l(e,Vo),f=No(a,s,u);(0,xe.useEffect)(function(){setTimeout(n)},[]);var m=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?zo(Object(n),!0).forEach(function(t){d(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):zo(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({isPremium:t,onLoad:n,location:r,imageFallbackUrl:a,imageUrl:s,imageWarnings:f},p);return t?React.createElement(Se.Slot,{name:"YoastTwitterPremium".concat(r.charAt(0).toUpperCase()+r.slice(1)),fillProps:m}):React.createElement(qo,m)};$o.propTypes={isPremium:Pe().bool.isRequired,onLoad:Pe().func.isRequired,location:Pe().string.isRequired,imageFallbackUrl:Pe().string,imageUrl:Pe().string,imageWarnings:Pe().array};const Zo=$o;var Qo=function(){Ho(function(e){return(0,s.dispatch)("yoast-seo/editor").setTwitterPreviewImage(function(e){var t="summary"!==(0,h.get)(window,"wpseoScriptData.metabox.twitterCardType")?"landscape":"square",n=cr.TWITTER_IMAGE_SIZES[t+"Width"],r=cr.TWITTER_IMAGE_SIZES[t+"Height"],o=Object.values(e.sizes).find(function(e){return e.width>=n&&e.height>=r});return{url:o?o.url:e.url,id:e.id,warnings:(0,Qt.validateTwitterImage)(e),alt:e.alt||""}}(e))})};const Xo=(0,wt.compose)([(0,s.withSelect)(function(e){var t=e("yoast-seo/editor"),n=t.getTwitterDescription,r=t.getTwitterTitle,o=t.getTwitterImageUrl,a=t.getFacebookImageUrl,i=t.getFacebookTitle,s=t.getFacebookDescription,c=t.getDescription,l=t.getSeoTitle,u=t.getTwitterWarnings,p=t.getTwitterImageType,d=t.getImageFallback,f=t.getRecommendedReplaceVars,m=t.getReplaceVars,h=t.getSiteUrl,g=t.getSeoTitleTemplate,y=t.getSeoTitleTemplateNoFallback,v=t.getSocialTitleTemplate,w=t.getSeoDescriptionTemplate,R=t.getSocialDescriptionTemplate,E=t.getReplacedExcerpt,_=t.getTwitterAltText;return{imageUrl:o(),imageFallbackUrl:a()||d(),recommendedReplacementVariables:f(),replacementVariables:m(),description:n(),descriptionPreviewFallback:R()||s()||c()||w()||E()||"",title:r(),titlePreviewFallback:v()||i()||l()||y()||g()||"",imageWarnings:u(),siteUrl:h(),isPremium:!!b().isPremium,isLarge:"summary"!==p(),titleInputPlaceholder:"",descriptionInputPlaceholder:"",socialMediumName:"X",alt:_()}}),(0,s.withDispatch)(function(e,t,n){var r=n.select,o=e("yoast-seo/editor"),a=o.setTwitterPreviewTitle,i=o.setTwitterPreviewDescription,s=o.clearTwitterPreviewImage,c=o.loadTwitterPreviewData,l=o.findCustomFields,u=r("yoast-seo/editor").getPostId();return{onSelectImageClick:Qo,onRemoveImageClick:s,onDescriptionChange:i,onTitleChange:a,onLoad:c,onReplacementVariableSearchChange:Ln(u,l)}}),Nt()])(Zo);var Jo,ea=Ie()(xt.Collapsible)(Jo||(Jo=Wt(['\n\th2 > button {\n\t\tpadding-left: 0;\n\t\tpadding-top: 16px;\n\n\t\t&:hover {\n\t\t\tbackground-color: #f0f0f0;\n\t\t}\n\t}\n\n\tdiv[class^="collapsible_content"] {\n\t\tpadding: 24px 0;\n\t\tmargin: 0 24px;\n\t\tborder-top: 1px solid rgba(0,0,0,0.2);\n\t}\n\n'])));const ta=function(e){return React.createElement(ea,et({hasPadding:!1,hasSeparator:!0},e))};var na,ra,oa,aa=Ie().legend(na||(na=Wt(["\n\tmargin: 16px 0;\n\tpadding: 0;\n\tcolor: ",";\n\tfont-size: 12px;\n\tfont-weight: 300;\n"])),lr.colors.$color_headings),ia=Ie().legend(ra||(ra=Wt(["\n\tmargin: 0 0 16px;\n\tpadding: 0;\n\tcolor: ",";\n\tfont-size: 12px;\n\tfont-weight: 300;\n"])),lr.colors.$color_headings),sa=Ie()(Gn)(oa||(oa=Wt(["\n\twidth: 18px;\n\theight: 18px;\n\tmargin: 3px;\n"]))),ca=function(e){var t=e.useOpenGraphData,n=e.useTwitterData;if(t||n){var r=Kt();return React.createElement($t
/* translators: Social media appearance refers to a preview of how a page will be represented on social media. */,{title:(0,Ke.__)("Social media appearance","wordpress-seo"),id:"yoast-social-appearance-modal",shouldCloseOnClickOutside:!1,SuffixHeroIcon:React.createElement(sa,et({className:"yst-text-slate-500"},r))},t&&React.createElement(xe.Fragment,null,React.createElement(ia,null,(0,Ke.__)("Determine how your post should look on social media like Facebook, X, Instagram, WhatsApp, Threads, LinkedIn, Slack, and more.","wordpress-seo")),React.createElement(Yo,null),n&&React.createElement(aa,null,(0,Ke.__)("To customize the appearance of your post specifically for X, please fill out the 'X appearance' settings below. If you leave these settings untouched, the 'Social media appearance' settings mentioned above will also be applied for sharing on X.","wordpress-seo"))),t&&n&&React.createElement(ta,{title:(0,Ke.__)("X appearance","wordpress-seo"),hasSeparator:!0,initialIsOpen:!1},React.createElement(Xo,null)),!t&&n&&React.createElement(xe.Fragment,null,React.createElement(ia,null,(0,Ke.__)("To customize the appearance of your post specifically for X, please fill out the 'X appearance' settings below.","wordpress-seo")),React.createElement(Xo,null)))}};ca.propTypes={useOpenGraphData:Pe().bool.isRequired,useTwitterData:Pe().bool.isRequired};const la=ca;var ua=function(e){var t=e.title,n=e.children,r=e.prefixIcon,o=void 0===r?null:r,a=e.subTitle,i=void 0===a?"":a,s=e.hasBetaBadgeLabel,c=void 0!==s&&s,l=e.hasNewBadgeLabel,u=void 0!==l&&l,p=e.buttonId,d=void 0===p?null:p,f=e.renderNewBadgeLabel,m=void 0===f?function(){}:f,h=G((0,xe.useState)(!1),2),g=h[0],y=h[1],v=(0,xe.useCallback)(function(){y(function(e){return!e})},[y]);return React.createElement("div",{className:"yoast components-panel__body ".concat(g?"is-opened":"")},React.createElement("h2",{className:"components-panel__body-title"},React.createElement("button",{onClick:v,className:"components-button components-panel__body-toggle",type:"button",id:d},React.createElement("span",{className:"yoast-icon-span",style:{fill:"".concat(o&&o.color||"")}},o&&React.createElement(xt.SvgIcon,{icon:o.icon,color:o.color,size:o.size})),!u&&React.createElement(React.Fragment,null,React.createElement("span",{className:"yoast-title-container"},React.createElement("div",{className:"yoast-title"},t),i&&React.createElement("div",{className:"yoast-subtitle"},i)),c&&React.createElement(xt.BetaBadge,null)),u&&React.createElement("div",{className:"yst-flex-grow yst-flex yst-items-center yst-gap-2"},React.createElement("span",{className:"yst-overflow-x-hidden yst-leading-normal"},React.createElement("div",{className:"yoast-title"},t),i&&React.createElement("div",{className:"yoast-subtitle"},i)),m()),React.createElement("span",{className:"yoast-chevron","aria-hidden":"true"}))),g&&n)};const pa=ua;ua.propTypes={title:Pe().string.isRequired,children:Pe().oneOfType([Pe().node,Pe().arrayOf(Pe().node)]).isRequired,prefixIcon:Pe().object,subTitle:Pe().string,hasBetaBadgeLabel:Pe().bool,hasNewBadgeLabel:Pe().bool,buttonId:Pe().string,renderNewBadgeLabel:Pe().func};var da,fa=["isMetabox","showArticleTypeInput","articleTypeLabel","additionalHelpTextLink","pageTypeLabel","helpTextLink","helpTextTitle","helpTextDescription","postTypeName","displayFooter","loadSchemaArticleData","loadSchemaPageData","location"],ma=(0,Qt.makeOutboundLink)(),ha=Ie().div(da||(da=Wt(["\n\tpadding: 16px;\n"]))),ga="yoast-seo/editor";function ya(e){var t=e.location;return e.show?React.createElement(xt.Alert,{type:"info"},(0,Ke.sprintf)(/* translators: %s Expands to "Yoast News SEO" */ /* translators: %s Expands to "Yoast News SEO" */
(0,Ke.__)("Are you working on a news article? %s helps you optimize your site for Google News.","wordpress-seo"),"Yoast News SEO")+" ",React.createElement(ma,{href:window.wpseoAdminL10n["shortlinks.upsell.".concat(t,".news")]},(0,Ke.sprintf)(/* translators: %s: Expands to "Yoast News SEO". */ /* translators: %s: Expands to "Yoast News SEO". */
(0,Ke.__)("Buy %s now!","wordpress-seo"),"Yoast News SEO"))):null}ya.propTypes={show:Pe().bool.isRequired,location:Pe().string.isRequired};var va=function(e,t,n){var r=(0,s.useSelect)(function(e){return e(ga).getIsProduct()},[]),o=(0,s.useSelect)(function(e){return e(ga).getIsWooSeoActive()},[]),a=r&&o?{name:(0,Ke.__)("Item Page","wordpress-seo"),value:"ItemPage"}:e.find(function(e){return e.value===t});return[{name:(0,Ke.sprintf)(/* translators: %1$s expands to the plural name of the current post type, %2$s expands to the current site wide default. */ /* translators: %1$s expands to the plural name of the current post type, %2$s expands to the current site wide default. */
(0,Ke.__)("Default for %1$s (%2$s)","wordpress-seo"),n,a?a.name:""),value:""}].concat(H(e))},wa=function(e){var t=e.helpTextTitle,n=e.helpTextLink,r=e.helpTextDescription;return React.createElement(xt.FieldGroup,{label:t,linkTo:n
/* translators: Hidden accessibility text. */,linkText:(0,Ke.__)("Learn more about structured data with Schema.org","wordpress-seo"),description:r})};wa.propTypes={helpTextTitle:Pe().string.isRequired,helpTextLink:Pe().string.isRequired,helpTextDescription:Pe().string.isRequired};var ba=function(e){var t,n,r=e.schemaPageTypeChange,o=void 0===r?h.noop:r,a=e.schemaPageTypeSelected,i=void 0===a?null:a,c=e.pageTypeOptions,l=e.schemaArticleTypeChange,u=void 0===l?h.noop:l,p=e.schemaArticleTypeSelected,d=void 0===p?null:p,f=e.articleTypeOptions,m=e.showArticleTypeInput,g=e.additionalHelpTextLink,y=e.helpTextLink,v=e.helpTextTitle,w=e.helpTextDescription,b=e.postTypeName,R=e.displayFooter,E=void 0!==R&&R,_=e.defaultPageType,k=e.defaultArticleType,S=e.location,x=e.isNewsEnabled,T=void 0!==x&&x,O=va(c,_,b),P=va(f,k,b),C=(0,s.useSelect)(function(e){return e(ga).selectLink("https://yoa.st/product-schema-metabox")},[]),I=(0,s.useSelect)(function(e){return e(ga).getIsWooSeoUpsell()},[]),L=G((0,xe.useState)(d),2),j=L[0],A=L[1],D=(0,Ke.__)("Want your products stand out in search results with rich results like price, reviews and more?","wordpress-seo"),F=(0,s.useSelect)(function(e){return e(ga).getIsProduct()},[]),M=(0,s.useSelect)(function(e){return e(ga).getIsWooSeoActive()},[]),q=(0,s.useSelect)(function(e){return e(ga).selectAdminLink("?page=wpseo_page_settings")},[]),N=F&&M,U=(0,xe.useCallback)(function(e,t){A(t)},[]);return(0,xe.useEffect)(function(){U(null,d)},[d]),React.createElement(xe.Fragment,null,React.createElement(wa,{helpTextLink:y,helpTextTitle:v,helpTextDescription:w}),React.createElement(xt.FieldGroup,{label:(0,Ke.__)("What type of page or content is this?","wordpress-seo"),linkTo:g
/* translators: Hidden accessibility text. */,linkText:(0,Ke.__)("Learn more about page or content types","wordpress-seo")}),I&&React.createElement(An,{link:C,text:D}),React.createElement(xt.Select,{id:(0,Qt.join)(["yoast-schema-page-type",S]),options:O,label:(0,Ke.__)("Page type","wordpress-seo"),onChange:o,selected:N?"ItemPage":i,disabled:N}),m&&React.createElement(xt.Select,{id:(0,Qt.join)(["yoast-schema-article-type",S]),options:P,label:(0,Ke.__)("Article type","wordpress-seo"),onChange:u,selected:d,onOptionFocus:U}),React.createElement(ya,{location:S,show:!T&&(t=j,n=k,"NewsArticle"===t||""===t&&"NewsArticle"===n)}),E&&!N&&React.createElement("p",null,function(e,t){return $e(function(e){return(0,Ke.sprintf)(/* translators: %1$s expands to the plural name of the current post type, %2$s and %3$s expand to a link to the Settings page */ /* translators: %1$s expands to the plural name of the current post type, %2$s and %3$s expand to a link to the Settings page */
(0,Ke.__)("You can change the default type for %1$s under Content types in the %2$sSettings%3$s.","wordpress-seo"),e,"<link>","</link>")}(e),{link:React.createElement("a",{href:t,target:"_blank",rel:"noreferrer"})})}(b,q)),N&&React.createElement("p",null,(0,Ke.sprintf)(/* translators: %1$s expands to Yoast WooCommerce SEO. */ /* translators: %1$s expands to Yoast WooCommerce SEO. */
(0,Ke.__)("You have %1$s activated on your site, automatically setting the Page type for your products to 'Item Page'. As a result, the Page type selection is disabled.","wordpress-seo"),"Yoast WooCommerce SEO")))},Ra=Pe().arrayOf(Pe().shape({name:Pe().string,value:Pe().string}));ba.propTypes={schemaPageTypeChange:Pe().func,schemaPageTypeSelected:Pe().string,pageTypeOptions:Ra.isRequired,schemaArticleTypeChange:Pe().func,schemaArticleTypeSelected:Pe().string,articleTypeOptions:Ra.isRequired,showArticleTypeInput:Pe().bool.isRequired,additionalHelpTextLink:Pe().string.isRequired,helpTextLink:Pe().string.isRequired,helpTextTitle:Pe().string.isRequired,helpTextDescription:Pe().string.isRequired,postTypeName:Pe().string.isRequired,displayFooter:Pe().bool,defaultPageType:Pe().string.isRequired,defaultArticleType:Pe().string.isRequired,location:Pe().string.isRequired,isNewsEnabled:Pe().bool};var Ea=function(e){var t=e.isMetabox,n=e.showArticleTypeInput,r=void 0!==n&&n,o=e.articleTypeLabel,a=void 0===o?"":o,i=e.additionalHelpTextLink,s=void 0===i?"":i,c=e.pageTypeLabel,u=e.helpTextLink,p=e.helpTextTitle,d=e.helpTextDescription,f=e.postTypeName,m=e.displayFooter,h=void 0!==m&&m,g=e.loadSchemaArticleData,y=e.loadSchemaPageData,v=e.location,w=l(e,fa),b=React.createElement(ba,et({showArticleTypeInput:r,articleTypeLabel:a,additionalHelpTextLink:s,pageTypeLabel:c,helpTextLink:u,helpTextTitle:p,helpTextDescription:d,postTypeName:f,displayFooter:h,loadSchemaArticleData:g,loadSchemaPageData:y,location:v},w));return t?(0,xe.createPortal)(React.createElement(ha,null,b),document.getElementById("wpseo-meta-section-schema")):b};Ea.propTypes={isMetabox:Pe().bool.isRequired,showArticleTypeInput:Pe().bool,articleTypeLabel:Pe().string,additionalHelpTextLink:Pe().string,pageTypeLabel:Pe().string.isRequired,helpTextLink:Pe().string.isRequired,helpTextTitle:Pe().string.isRequired,helpTextDescription:Pe().string.isRequired,postTypeName:Pe().string.isRequired,displayFooter:Pe().bool,loadSchemaArticleData:Pe().func.isRequired,loadSchemaPageData:Pe().func.isRequired,location:Pe().string.isRequired};const _a=Ea;var ka=function(){function e(){S(this,e)}return T(e,null,[{key:"articleTypeInput",get:function(){return document.getElementById("yoast_wpseo_schema_article_type")}},{key:"defaultArticleType",get:function(){return e.articleTypeInput.getAttribute("data-default")}},{key:"articleType",get:function(){return e.articleTypeInput.value},set:function(t){e.articleTypeInput.value=t}},{key:"pageTypeInput",get:function(){return document.getElementById("yoast_wpseo_schema_page_type")}},{key:"defaultPageType",get:function(){return e.pageTypeInput.getAttribute("data-default")}},{key:"pageType",get:function(){return e.pageTypeInput.value},set:function(t){e.pageTypeInput.value=t}}])}();function Sa(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function xa(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Sa(Object(n),!0).forEach(function(t){d(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Sa(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var Ta=function(e){var t=null!==ka.articleTypeInput;(0,xe.useEffect)(function(){e.loadSchemaPageData(),t&&e.loadSchemaArticleData()},[]);var n=window.wpseoScriptData.metabox.schema,r=n.pageTypeOptions,o=n.articleTypeOptions,a={articleTypeLabel:(0,Ke.__)("Article type","wordpress-seo"),pageTypeLabel:(0,Ke.__)("Page type","wordpress-seo"),postTypeName:window.wpseoAdminL10n.postTypeNamePlural,helpTextTitle:(0,Ke.__)("Yoast SEO automatically describes your pages using schema.org","wordpress-seo"),helpTextDescription:(0,Ke.__)("This helps search engines understand your website and your content. You can change some of your settings for this page below.","wordpress-seo"),showArticleTypeInput:t,pageTypeOptions:r,articleTypeOptions:o},i=xa(xa(xa({},e),a),"metabox"===e.location?{helpTextLink:wpseoAdminL10n["shortlinks.metabox.schema.explanation"],additionalHelpTextLink:wpseoAdminL10n["shortlinks.metabox.schema.page_type"],isMetabox:!0}:{helpTextLink:wpseoAdminL10n["shortlinks.sidebar.schema.explanation"],additionalHelpTextLink:wpseoAdminL10n["shortlinks.sidebar.schema.page_type"],isMetabox:!1});return React.createElement(_a,i)};Ta.propTypes={displayFooter:Pe().bool.isRequired,schemaPageTypeSelected:Pe().string.isRequired,schemaArticleTypeSelected:Pe().string.isRequired,defaultArticleType:Pe().string.isRequired,defaultPageType:Pe().string.isRequired,loadSchemaPageData:Pe().func.isRequired,loadSchemaArticleData:Pe().func.isRequired,schemaPageTypeChange:Pe().func.isRequired,schemaArticleTypeChange:Pe().func.isRequired,location:Pe().string.isRequired};const Oa=(0,wt.compose)([(0,s.withSelect)(function(e){var t=e("yoast-seo/editor"),n=t.getPreferences,r=t.getPageType,o=t.getDefaultPageType,a=t.getArticleType,i=t.getDefaultArticleType,s=n();return{displayFooter:s.displaySchemaSettingsFooter,isNewsEnabled:s.isNewsEnabled,schemaPageTypeSelected:r(),schemaArticleTypeSelected:a(),defaultArticleType:i(),defaultPageType:o()}}),(0,s.withDispatch)(function(e){var t=e("yoast-seo/editor"),n=t.setPageType,r=t.setArticleType;return{loadSchemaPageData:t.getSchemaPageData,loadSchemaArticleData:t.getSchemaArticleData,schemaPageTypeChange:n,schemaArticleTypeChange:r}}),Nt()])(Ta);var Pa=function(e){var t=e.noIndex,n=e.onNoIndexChange,r=e.editorContext,o=e.isPrivateBlog,a=void 0!==o&&o,i=function(e){var t=(0,Ke.__)("No","wordpress-seo"),n=(0,Ke.__)("Yes","wordpress-seo"),r=e.noIndex?t:n;return window.wpseoScriptData.isPost?[{name:(0,Ke.sprintf)(/* translators: %1$s translates to "yes" or "no", %2$s translates to the content type label in plural form */ /* translators: %1$s translates to "yes" or "no", %2$s translates to the content type label in plural form */
(0,Ke.__)("%1$s (current default for %2$s)","wordpress-seo"),r,e.postTypeNamePlural),value:"0"},{name:t,value:"1"},{name:n,value:"2"}]:[{name:(0,Ke.sprintf)(/* translators: %1$s translates to "yes" or "no", %2$s translates to the content type label in plural form */ /* translators: %1$s translates to "yes" or "no", %2$s translates to the content type label in plural form */
(0,Ke.__)("%1$s (current default for %2$s)","wordpress-seo"),r,e.postTypeNamePlural),value:"default"},{name:n,value:"index"},{name:t,value:"noindex"}]}(r);return React.createElement(Te.LocationConsumer,null,function(e){return React.createElement(xe.Fragment,null,a&&React.createElement(xt.Alert,{type:"warning"},(0,Ke.__)("Even though you can set the meta robots setting here, the entire site is set to noindex in the sitewide privacy settings, so these settings won't have an effect.","wordpress-seo")),React.createElement(xt.Select,{label:(0,Ke.__)("Allow search engines to show this content in search results?","wordpress-seo"),onChange:n,id:(0,Qt.join)(["yoast-meta-robots-noindex",e]),options:i,selected:t,linkTo:wpseoAdminL10n["shortlinks.advanced.allow_search_engines"]
/* translators: Hidden accessibility text. */,linkText:(0,Ke.__)("Learn more about the no-index setting on our help page.","wordpress-seo")}))})};Pa.propTypes={noIndex:Pe().string.isRequired,onNoIndexChange:Pe().func.isRequired,editorContext:Pe().object.isRequired,isPrivateBlog:Pe().bool};var Ca=function(e){var t=e.noFollow,n=e.onNoFollowChange;return React.createElement(Te.LocationConsumer,null,function(e){var r=(0,Qt.join)(["yoast-meta-robots-nofollow",e]);return React.createElement(xt.RadioButtonGroup,{id:r,options:[{value:"0",label:"Yes"},{value:"1",label:"No"}],label:(0,Ke.__)("Should search engines follow links on this content?","wordpress-seo"),groupName:r,onChange:n,selected:t,linkTo:wpseoAdminL10n["shortlinks.advanced.follow_links"]
/* translators: Hidden accessibility text. */,linkText:(0,Ke.__)("Learn more about the no-follow setting on our help page.","wordpress-seo")})})};Ca.propTypes={noFollow:Pe().string.isRequired,onNoFollowChange:Pe().func.isRequired};var Ia=function(e){var t=e.advanced,n=e.onAdvancedChange;return React.createElement(Te.LocationConsumer,null,function(e){var r=(0,Qt.join)(["yoast-meta-robots-advanced",e]),o="".concat(r,"-input");return React.createElement(xt.MultiSelect,{label:(0,Ke.__)("Meta robots advanced","wordpress-seo"),onChange:n,id:r,inputId:o,options:[{name:(0,Ke.__)("No Image Index","wordpress-seo"),value:"noimageindex"},{name:(0,Ke.__)("No Archive","wordpress-seo"),value:"noarchive"},{name:(0,Ke.__)("No Snippet","wordpress-seo"),value:"nosnippet"}],selected:t,linkTo:wpseoAdminL10n["shortlinks.advanced.meta_robots"]
/* translators: Hidden accessibility text. */,linkText:(0,Ke.__)("Learn more about advanced meta robots settings on our help page.","wordpress-seo")})})};Ia.propTypes={advanced:Pe().array.isRequired,onAdvancedChange:Pe().func.isRequired};var La=function(e){var t=e.breadcrumbsTitle,n=e.onBreadcrumbsTitleChange;return React.createElement(Te.LocationConsumer,null,function(e){return React.createElement(xt.TextInput,{label:(0,Ke.__)("Breadcrumbs Title","wordpress-seo"),id:(0,Qt.join)(["yoast-breadcrumbs-title",e]),onChange:n,value:t,linkTo:wpseoAdminL10n["shortlinks.advanced.breadcrumbs_title"]
/* translators: Hidden accessibility text. */,linkText:(0,Ke.__)("Learn more about the breadcrumbs title setting on our help page.","wordpress-seo")})})};La.propTypes={breadcrumbsTitle:Pe().string.isRequired,onBreadcrumbsTitleChange:Pe().func.isRequired};var ja=function(e){var t=e.canonical,n=e.onCanonicalChange;return React.createElement(Te.LocationConsumer,null,function(e){return React.createElement(xt.TextInput,{label:(0,Ke.__)("Canonical URL","wordpress-seo"),id:(0,Qt.join)(["yoast-canonical",e]),onChange:n,value:t,linkTo:"https://yoa.st/canonical-url"
/* translators: Hidden accessibility text. */,linkText:(0,Ke.__)("Learn more about canonical URLs on our help page.","wordpress-seo")})})};ja.propTypes={canonical:Pe().string.isRequired,onCanonicalChange:Pe().func.isRequired};var Aa=function(e){var t=e.noIndex,n=e.canonical,r=e.onNoIndexChange,o=e.onCanonicalChange,a=e.onLoad,i=e.isLoading,s=e.editorContext,c=e.isBreadcrumbsDisabled,l=e.advanced,u=void 0===l?[]:l,p=e.onAdvancedChange,d=void 0===p?h.noop:p,f=e.noFollow,m=void 0===f?"":f,g=e.onNoFollowChange,y=void 0===g?h.noop:g,v=e.breadcrumbsTitle,w=void 0===v?"":v,b=e.onBreadcrumbsTitleChange,R=void 0===b?h.noop:b,E=e.isPrivateBlog,_=void 0!==E&&E;(0,xe.useEffect)(function(){setTimeout(function(){i&&a()})});var k={noIndex:t,onNoIndexChange:r,editorContext:s,isPrivateBlog:_},S={noFollow:m,onNoFollowChange:y},x={advanced:u,onAdvancedChange:d},T={breadcrumbsTitle:w,onBreadcrumbsTitleChange:R},O={canonical:n,onCanonicalChange:o};return i?null:React.createElement(xe.Fragment,null,React.createElement(Pa,k),s.isPost&&React.createElement(Ca,S),s.isPost&&React.createElement(Ia,x),!c&&React.createElement(La,T),React.createElement(ja,O))};Aa.propTypes={noIndex:Pe().string.isRequired,canonical:Pe().string.isRequired,onNoIndexChange:Pe().func.isRequired,onCanonicalChange:Pe().func.isRequired,onLoad:Pe().func.isRequired,isLoading:Pe().bool.isRequired,editorContext:Pe().object.isRequired,isBreadcrumbsDisabled:Pe().bool.isRequired,isPrivateBlog:Pe().bool,advanced:Pe().array,onAdvancedChange:Pe().func,noFollow:Pe().string,onNoFollowChange:Pe().func,breadcrumbsTitle:Pe().string,onBreadcrumbsTitleChange:Pe().func};const Da=Aa,Fa=(0,wt.compose)([(0,s.withSelect)(function(e){var t=e("yoast-seo/editor"),n=t.getNoIndex,r=t.getNoFollow,o=t.getAdvanced,a=t.getBreadcrumbsTitle,i=t.getCanonical,s=t.getIsLoading,c=t.getEditorContext,l=(0,t.getPreferences)(),u=l.isBreadcrumbsDisabled,p=l.isPrivateBlog;return{noIndex:n(),noFollow:r(),advanced:o(),breadcrumbsTitle:a(),canonical:i(),isLoading:s(),editorContext:c(),isBreadcrumbsDisabled:u,isPrivateBlog:p}}),(0,s.withDispatch)(function(e){var t=e("yoast-seo/editor");return{onNoIndexChange:t.setNoIndex,onNoFollowChange:t.setNoFollow,onAdvancedChange:t.setAdvanced,onBreadcrumbsTitleChange:t.setBreadcrumbsTitle,onCanonicalChange:t.setCanonical,onLoad:t.loadAdvancedSettingsData}})])(Da),Ma=window.yoast.relatedKeyphraseSuggestions;function qa(){var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function a(n,r,o,a){var c=r&&r.prototype instanceof s?r:s,l=Object.create(c.prototype);return Na(l,"_invoke",function(n,r,o){var a,s,c,l=0,u=o||[],p=!1,d={p:0,n:0,v:e,a:f,f:f.bind(e,4),d:function(t,n){return a=t,s=0,c=e,d.n=n,i}};function f(n,r){for(s=n,c=r,t=0;!p&&l&&!o&&t<u.length;t++){var o,a=u[t],f=d.p,m=a[2];n>3?(o=m===r)&&(c=a[(s=a[4])?5:(s=3,3)],a[4]=a[5]=e):a[0]<=f&&((o=n<2&&f<a[1])?(s=0,d.v=r,d.n=a[1]):f<m&&(o=n<3||a[0]>r||r>m)&&(a[4]=n,a[5]=r,d.n=m,s=0))}if(o||n>1)return i;throw p=!0,r}return function(o,u,m){if(l>1)throw TypeError("Generator is already running");for(p&&1===u&&f(u,m),s=u,c=m;(t=s<2?e:c)||!p;){a||(s?s<3?(s>1&&(d.n=-1),f(s,c)):d.n=c:d.v=c);try{if(l=2,a){if(s||(o="next"),t=a[o]){if(!(t=t.call(a,c)))throw TypeError("iterator result is not an object");if(!t.done)return t;c=t.value,s<2&&(s=0)}else 1===s&&(t=a.return)&&t.call(a),s<2&&(c=TypeError("The iterator does not provide a '"+o+"' method"),s=1);a=e}else if((t=(p=d.n<0)?c:n.call(r,d))!==i)break}catch(t){a=e,s=1,c=t}finally{l=1}}return{value:t,done:p}}}(n,o,a),!0),l}var i={};function s(){}function c(){}function l(){}t=Object.getPrototypeOf;var u=[][r]?t(t([][r]())):(Na(t={},r,function(){return this}),t),p=l.prototype=s.prototype=Object.create(u);function d(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,l):(e.__proto__=l,Na(e,o,"GeneratorFunction")),e.prototype=Object.create(p),e}return c.prototype=l,Na(p,"constructor",l),Na(l,"constructor",c),c.displayName="GeneratorFunction",Na(l,o,"GeneratorFunction"),Na(p),Na(p,o,"Generator"),Na(p,r,function(){return this}),Na(p,"toString",function(){return"[object Generator]"}),(qa=function(){return{w:a,m:d}})()}function Na(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}Na=function(e,t,n,r){function a(t,n){Na(e,t,function(e){return this._invoke(t,n,e)})}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(a("next",0),a("throw",1),a("return",2))},Na(e,t,n,r)}function Ua(e){var t=e.requestLimitReached,n=e.isSuccess,r=e.response,o=e.requestHasData,a=e.relatedKeyphrases;return t?"requestLimitReached":!n&&function(e){return"invalid_json"===(null==e?void 0:e.code)||"fetch_error"===(null==e?void 0:e.code)||!(0,h.isEmpty)(e)&&"error"in e}(r)?"requestFailed":o?function(e){return e&&e.length>=4}(a)?"maxRelatedKeyphrases":null:"requestEmpty"}function Wa(e){var t,n,r=e.keyphrase,o=void 0===r?"":r,a=e.relatedKeyphrases,i=void 0===a?[]:a,s=e.renderAction,c=void 0===s?null:s,l=e.requestLimitReached,u=void 0!==l&&l,p=e.countryCode,d=e.setCountry,f=e.newRequest,h=e.response,g=void 0===h?{}:h,y=e.isRtl,v=void 0!==y&&y,w=e.userLocale,b=void 0===w?"en_US":w,R=e.isPending,E=void 0!==R&&R,_=e.isSuccess,k=void 0!==_&&_,S=e.requestHasData,x=void 0===S||S,T=e.isPremium,O=void 0!==T&&T,P=e.semrushUpsellLink,C=void 0===P?"":P,I=e.premiumUpsellLink,L=void 0===I?"":I,j=G((0,xe.useState)(p),2),A=j[0],D=j[1],F=(0,xe.useCallback)(m(qa().m(function e(){return qa().w(function(e){for(;;)switch(e.n){case 0:f(p,o),D(p);case 1:return e.a(2)}},e)})),[p,o,f]);return React.createElement(Ye.Root,{context:{isRtl:v}},!u&&!O&&React.createElement(Ma.PremiumUpsell,{url:L,className:"yst-mb-4"}),!u&&React.createElement(Ma.CountrySelector,{countryCode:p,activeCountryCode:A,onChange:d,onClick:F,className:"yst-mb-4",userLocale:b.split("_")[0]}),!E&&React.createElement(Ma.UserMessage,{variant:Ua({requestLimitReached:u,isSuccess:k,response:g,requestHasData:x,relatedKeyphrases:i}),upsellLink:C}),React.createElement(Ma.KeyphrasesTable,{relatedKeyphrases:i,columnNames:null==g||null===(t=g.results)||void 0===t?void 0:t.columnNames,data:null==g||null===(n=g.results)||void 0===n?void 0:n.rows,isPending:E,renderButton:c,className:"yst-mt-4"}))}Wa.propTypes={keyphrase:Pe().string,relatedKeyphrases:Pe().array,renderAction:Pe().func,requestLimitReached:Pe().bool,countryCode:Pe().string.isRequired,setCountry:Pe().func.isRequired,newRequest:Pe().func.isRequired,response:Pe().object,isRtl:Pe().bool,userLocale:Pe().string,isPending:Pe().bool,isSuccess:Pe().bool,requestHasData:Pe().bool,isPremium:Pe().bool,semrushUpsellLink:Pe().string,premiumUpsellLink:Pe().string};const Ba=(0,wt.compose)([(0,s.withSelect)(function(e){var t=e("yoast-seo/editor"),n=t.getFocusKeyphrase,r=t.getSEMrushSelectedCountry,o=t.getSEMrushRequestLimitReached,a=t.getSEMrushRequestResponse,i=t.getSEMrushRequestIsSuccess,s=t.getSEMrushIsRequestPending,c=t.getSEMrushRequestHasData,l=t.getPreference,u=t.getIsPremium,p=t.selectLinkParams;return{keyphrase:n(),countryCode:r(),requestLimitReached:o(),response:a(),isSuccess:i(),isPending:s(),requestHasData:c(),isRtl:l("isRtl",!1),userLocale:l("userLocale","en_US"),isPremium:u(),semrushUpsellLink:(0,Rt.addQueryArgs)("https://yoa.st/semrush-prices",p()),premiumUpsellLink:(0,Rt.addQueryArgs)("https://yoa.st/413",p())}}),(0,s.withDispatch)(function(e){var t=e("yoast-seo/editor"),n=t.setSEMrushChangeCountry,r=t.setSEMrushNewRequest;return{setCountry:function(e){n(e)},newRequest:function(e,t){r(e,t)}}})])(Wa),Ka=Ve.forwardRef(function(e,t){return Ve.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),Ve.createElement("path",{d:"M2 11a1 1 0 011-1h2a1 1 0 011 1v5a1 1 0 01-1 1H3a1 1 0 01-1-1v-5zM8 7a1 1 0 011-1h2a1 1 0 011 1v9a1 1 0 01-1 1H9a1 1 0 01-1-1V7zM14 4a1 1 0 011-1h2a1 1 0 011 1v12a1 1 0 01-1 1h-2a1 1 0 01-1-1V4z"}))});var Ha,Ga,Ya,Va=Ie().div(Ha||(Ha=Wt(["\n\tmin-width: 600px;\n\n\t@media screen and ( max-width: 680px ) {\n\t\tmin-width: 0;\n\t\twidth: 86vw;\n\t}\n"])));Ie().div(Ga||(Ga=Wt(["\n\t@media screen and ( min-width: 600px ) {\n\t\tmax-width: 420px;\n\t}\n"]))),Ie()(xt.Icon)(Ya||(Ya=Wt(["\n\tfloat: ",";\n\tmargin: ",";\n\n\t&& {\n\t\twidth: 150px;\n\t\theight: 150px;\n\n\t\t@media screen and ( max-width: 680px ) {\n\t\t\twidth: 80px;\n\t\t\theight: 80px;\n\t\t}\n\t}\n"])),(0,Qt.getDirectionalStyle)("right","left"),(0,Qt.getDirectionalStyle)("0 0 16px 16px","0 16px 16px 0"));const za=window.moment;var $a=n.n(za);const Za=window.wp.apiFetch;var Qa=n.n(Za);function Xa(){var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function a(n,r,o,a){var c=r&&r.prototype instanceof s?r:s,l=Object.create(c.prototype);return Ja(l,"_invoke",function(n,r,o){var a,s,c,l=0,u=o||[],p=!1,d={p:0,n:0,v:e,a:f,f:f.bind(e,4),d:function(t,n){return a=t,s=0,c=e,d.n=n,i}};function f(n,r){for(s=n,c=r,t=0;!p&&l&&!o&&t<u.length;t++){var o,a=u[t],f=d.p,m=a[2];n>3?(o=m===r)&&(c=a[(s=a[4])?5:(s=3,3)],a[4]=a[5]=e):a[0]<=f&&((o=n<2&&f<a[1])?(s=0,d.v=r,d.n=a[1]):f<m&&(o=n<3||a[0]>r||r>m)&&(a[4]=n,a[5]=r,d.n=m,s=0))}if(o||n>1)return i;throw p=!0,r}return function(o,u,m){if(l>1)throw TypeError("Generator is already running");for(p&&1===u&&f(u,m),s=u,c=m;(t=s<2?e:c)||!p;){a||(s?s<3?(s>1&&(d.n=-1),f(s,c)):d.n=c:d.v=c);try{if(l=2,a){if(s||(o="next"),t=a[o]){if(!(t=t.call(a,c)))throw TypeError("iterator result is not an object");if(!t.done)return t;c=t.value,s<2&&(s=0)}else 1===s&&(t=a.return)&&t.call(a),s<2&&(c=TypeError("The iterator does not provide a '"+o+"' method"),s=1);a=e}else if((t=(p=d.n<0)?c:n.call(r,d))!==i)break}catch(t){a=e,s=1,c=t}finally{l=1}}return{value:t,done:p}}}(n,o,a),!0),l}var i={};function s(){}function c(){}function l(){}t=Object.getPrototypeOf;var u=[][r]?t(t([][r]())):(Ja(t={},r,function(){return this}),t),p=l.prototype=s.prototype=Object.create(u);function d(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,l):(e.__proto__=l,Ja(e,o,"GeneratorFunction")),e.prototype=Object.create(p),e}return c.prototype=l,Ja(p,"constructor",l),Ja(l,"constructor",c),c.displayName="GeneratorFunction",Ja(l,o,"GeneratorFunction"),Ja(p),Ja(p,o,"Generator"),Ja(p,r,function(){return this}),Ja(p,"toString",function(){return"[object Generator]"}),(Xa=function(){return{w:a,m:d}})()}function Ja(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}Ja=function(e,t,n,r){function a(t,n){Ja(e,t,function(e){return this._invoke(t,n,e)})}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(a("next",0),a("throw",1),a("return",2))},Ja(e,t,n,r)}function ei(_x,e,t){return ti.apply(this,arguments)}function ti(){return ti=m(Xa().m(function e(t,n,r){var o,a,i,s=arguments;return Xa().w(function(e){for(;;)switch(e.p=e.n){case 0:return o=s.length>3&&void 0!==s[3]?s[3]:200,e.p=1,e.n=2,t();case 2:if(!(a=e.v)){e.n=4;break}if(a.status!==o){e.n=3;break}return e.a(2,n(a));case 3:return e.a(2,r(a));case 4:return e.a(2,!1);case 5:e.p=5,i=e.v,console.error(i.message);case 6:return e.a(2)}},e,null,[[1,5]])})),ti.apply(this,arguments)}function ni(e){return ri.apply(this,arguments)}function ri(){return(ri=m(Xa().m(function e(t){var n;return Xa().w(function(e){for(;;)switch(e.p=e.n){case 0:return e.p=0,e.n=1,Qa()(t);case 1:case 4:return e.a(2,e.v);case 2:if(e.p=2,!(n=e.v).error||!n.status){e.n=3;break}return e.a(2,n);case 3:if(!(n instanceof Response)){e.n=5;break}return e.n=4,n.json();case 5:return e.a(2,!1)}},e,null,[[0,2]])}))).apply(this,arguments)}function oi(){var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function a(n,r,o,a){var c=r&&r.prototype instanceof s?r:s,l=Object.create(c.prototype);return ai(l,"_invoke",function(n,r,o){var a,s,c,l=0,u=o||[],p=!1,d={p:0,n:0,v:e,a:f,f:f.bind(e,4),d:function(t,n){return a=t,s=0,c=e,d.n=n,i}};function f(n,r){for(s=n,c=r,t=0;!p&&l&&!o&&t<u.length;t++){var o,a=u[t],f=d.p,m=a[2];n>3?(o=m===r)&&(c=a[(s=a[4])?5:(s=3,3)],a[4]=a[5]=e):a[0]<=f&&((o=n<2&&f<a[1])?(s=0,d.v=r,d.n=a[1]):f<m&&(o=n<3||a[0]>r||r>m)&&(a[4]=n,a[5]=r,d.n=m,s=0))}if(o||n>1)return i;throw p=!0,r}return function(o,u,m){if(l>1)throw TypeError("Generator is already running");for(p&&1===u&&f(u,m),s=u,c=m;(t=s<2?e:c)||!p;){a||(s?s<3?(s>1&&(d.n=-1),f(s,c)):d.n=c:d.v=c);try{if(l=2,a){if(s||(o="next"),t=a[o]){if(!(t=t.call(a,c)))throw TypeError("iterator result is not an object");if(!t.done)return t;c=t.value,s<2&&(s=0)}else 1===s&&(t=a.return)&&t.call(a),s<2&&(c=TypeError("The iterator does not provide a '"+o+"' method"),s=1);a=e}else if((t=(p=d.n<0)?c:n.call(r,d))!==i)break}catch(t){a=e,s=1,c=t}finally{l=1}}return{value:t,done:p}}}(n,o,a),!0),l}var i={};function s(){}function c(){}function l(){}t=Object.getPrototypeOf;var u=[][r]?t(t([][r]())):(ai(t={},r,function(){return this}),t),p=l.prototype=s.prototype=Object.create(u);function d(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,l):(e.__proto__=l,ai(e,o,"GeneratorFunction")),e.prototype=Object.create(p),e}return c.prototype=l,ai(p,"constructor",l),ai(l,"constructor",c),c.displayName="GeneratorFunction",ai(l,o,"GeneratorFunction"),ai(p),ai(p,o,"Generator"),ai(p,r,function(){return this}),ai(p,"toString",function(){return"[object Generator]"}),(oi=function(){return{w:a,m:d}})()}function ai(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}ai=function(e,t,n,r){function a(t,n){ai(e,t,function(e){return this._invoke(t,n,e)})}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(a("next",0),a("throw",1),a("return",2))},ai(e,t,n,r)}function ii(){return si.apply(this,arguments)}function si(){return(si=m(oi().m(function e(){return oi().w(function(e){for(;;)switch(e.n){case 0:return e.n=1,ni({path:"yoast/v1/wincher/authorization-url",method:"GET"});case 1:return e.a(2,e.v)}},e)}))).apply(this,arguments)}function ci(){return(ci=m(oi().m(function e(){return oi().w(function(e){for(;;)switch(e.n){case 0:return e.n=1,ni({path:"yoast/v1/wincher/account/limit",method:"GET"});case 1:return e.a(2,e.v)}},e)}))).apply(this,arguments)}function li(){return(li=m(oi().m(function e(){return oi().w(function(e){for(;;)switch(e.n){case 0:return e.n=1,ni({path:"yoast/v1/wincher/account/upgrade-campaign",method:"GET"});case 1:return e.a(2,e.v)}},e)}))).apply(this,arguments)}function ui(_x){return pi.apply(this,arguments)}function pi(){return(pi=m(oi().m(function e(t){var n,r;return oi().w(function(e){for(;;)switch(e.n){case 0:return n=t.code,r=t.websiteId,e.n=1,ni({path:"yoast/v1/wincher/authenticate",method:"POST",data:{code:n,websiteId:r}});case 1:return e.a(2,e.v)}},e)}))).apply(this,arguments)}function di(){return di=m(oi().m(function e(){var t,n,r,o,a=arguments;return oi().w(function(e){for(;;)switch(e.n){case 0:return t=a.length>0&&void 0!==a[0]?a[0]:null,n=a.length>1&&void 0!==a[1]?a[1]:null,r=a.length>2&&void 0!==a[2]?a[2]:null,o=a.length>3?a[3]:void 0,e.n=1,ni({path:"yoast/v1/wincher/keyphrases",method:"POST",data:{keyphrases:t,permalink:r,startAt:n},signal:o});case 1:return e.a(2,e.v)}},e)})),di.apply(this,arguments)}function fi(e){return mi.apply(this,arguments)}function mi(){return(mi=m(oi().m(function e(t){return oi().w(function(e){for(;;)switch(e.n){case 0:return(0,h.isArray)(t)||(t=[t]),e.n=1,ni({path:"yoast/v1/wincher/keyphrases/track",method:"POST",data:{keyphrases:t}});case 1:return e.a(2,e.v)}},e)}))).apply(this,arguments)}function hi(e){return gi.apply(this,arguments)}function gi(){return(gi=m(oi().m(function e(t){return oi().w(function(e){for(;;)switch(e.n){case 0:return e.n=1,ni({path:"yoast/v1/wincher/keyphrases/untrack",method:"DELETE",data:{keyphraseID:t}});case 1:return e.a(2,e.v)}},e)}))).apply(this,arguments)}var yi=function(e){var t=e.data,n=e.mapChartDataToTableData,r=void 0===n?null:n,o=e.dataTableCaption,a=e.dataTableHeaderLabels,i=e.isDataTableVisuallyHidden,s=void 0===i||i;return t.length!==a.length?React.createElement("p",null,(0,Ke.__)("The number of headers and header labels don't match.","wordpress-seo")):React.createElement("div",{className:s?"screen-reader-text":null},React.createElement("table",null,React.createElement("caption",null,o),React.createElement("thead",null,React.createElement("tr",null,a.map(function(e,t){return React.createElement("th",{key:t},e)}))),React.createElement("tbody",null,React.createElement("tr",null,t.map(function(e,t){return React.createElement("td",{key:t},r(e.y))})))))};yi.propTypes={data:Pe().arrayOf(Pe().shape({x:Pe().number,y:Pe().number})).isRequired,mapChartDataToTableData:Pe().func,dataTableCaption:Pe().string.isRequired,dataTableHeaderLabels:Pe().array.isRequired,isDataTableVisuallyHidden:Pe().bool};const vi=yi;var wi=function(e){var t=e.data,n=e.width,r=e.height,o=e.fillColor,a=void 0===o?null:o,i=e.strokeColor,s=void 0===i?"#000000":i,c=e.strokeWidth,l=void 0===c?1:c,u=e.className,p=void 0===u?"":u,d=e.mapChartDataToTableData,f=void 0===d?null:d,m=e.dataTableCaption,h=e.dataTableHeaderLabels,g=e.isDataTableVisuallyHidden,y=void 0===g||g,v=Math.max(1,Math.max.apply(Math,H(t.map(function(e){return e.x})))),w=Math.max(1,Math.max.apply(Math,H(t.map(function(e){return e.y})))),b=r-l,R=t.map(function(e){var t=e.x/v*n,r=b-e.y/w*b+l;return"".concat(t,",").concat(r)}).join(" "),E="0,".concat(b+l," ")+R+" ".concat(n,",").concat(b+l);return React.createElement(xe.Fragment,null,React.createElement("svg",{width:n,height:r,viewBox:"0 0 ".concat(n," ").concat(r),className:p,role:"img","aria-hidden":"true",focusable:"false"},React.createElement("polygon",{fill:a,points:E}),React.createElement("polyline",{fill:"none",stroke:s,strokeWidth:l,strokeLinejoin:"round",strokeLinecap:"round",points:R})),f&&React.createElement(vi,{data:t,mapChartDataToTableData:f,dataTableCaption:m,dataTableHeaderLabels:h,isDataTableVisuallyHidden:y}))};wi.propTypes={data:Pe().arrayOf(Pe().shape({x:Pe().number,y:Pe().number})).isRequired,width:Pe().number.isRequired,height:Pe().number.isRequired,fillColor:Pe().string,strokeColor:Pe().string,strokeWidth:Pe().number,className:Pe().string,mapChartDataToTableData:Pe().func,dataTableCaption:Pe().string.isRequired,dataTableHeaderLabels:Pe().array.isRequired,isDataTableVisuallyHidden:Pe().bool};const bi=wi,Ri=function(){return React.createElement("p",{className:"yoast-wincher-seo-performance-modal__loading-message"},(0,Ke.__)("Tracking the ranking position…","wordpress-seo")," ",React.createElement(xt.SvgIcon,{icon:"loading-spinner"}))};var Ei,_i,ki,Si,xi,Ti,Oi,Pi,Ci=Ie()(xt.SvgIcon)(Ei||(Ei=Wt(["\n\tmargin-left: 2px;\n\tflex-shrink: 0;\n\trotate: ",";\n"])),function(e){return e.isImproving?"-90deg":"90deg"}),Ii=Ie().span(_i||(_i=Wt(["\n\tcolor: ",";\n\tfont-size: 13px;\n\tfont-weight: 600;\n\tline-height: 20px;\n\tmargin-right: 2px;\n\tmargin-left: 12px;\n"])),function(e){return e.isImproving?"#69AB56":"#DC3332"}),Li=Ie().td(ki||(ki=Wt(["\n\tpadding-right: 0 !important;\n\n\t& > div {\n\t\tmargin: 0px;\n\t}\n"]))),ji=Ie().td(Si||(Si=Wt(["\n\tpadding-left: 2px !important;\n"]))),Ai=Ie().td.attrs({className:"yoast-table--nopadding"})(xi||(xi=Wt(["\n\t& > div {\n\t\tjustify-content: center;\n\t}\n"]))),Di=Ie().div(Ti||(Ti=Wt(["\n\tdisplay: flex;\n\talign-items: center;\n\t& > a {\n\t\tbox-sizing: border-box;\n\t}\n"]))),Fi=Ie().button(Oi||(Oi=Wt(["\n\tbackground: none;\n\tcolor: inherit;\n\tborder: none;\n\tpadding: 0;\n\tfont: inherit;\n\tcursor: pointer;\n\toutline: inherit;\n    display: flex;\n    align-items: center;\n"]))),Mi=Ie().tr(Pi||(Pi=Wt(["\n\tbackground-color: "," !important;\n"])),function(e){return e.isEnabled?"#FFFFFF":"#F9F9F9"});function qi(e){return Math.round(100*e)}function Ni(e){var t=e.chartData,n=void 0===t?{}:t;if((0,h.isEmpty)(n)||(0,h.isEmpty)(n.position))return"?";var r=function(e){return Array.from({length:e.position.history.length},function(e,t){return t+1}).map(function(e){
/* translators: %d expands to the amount of days */
return(0,Ke.sprintf)((0,Ke._n)("%d day","%d days",e,"wordpress-seo"),e)})}(n),o=n.position.history.map(function(e,t){return{x:t,y:31-e.value}});return React.createElement(bi,{width:66,height:24,data:o,strokeWidth:1.8,strokeColor:"#498afc",fillColor:"#ade3fc",mapChartDataToTableData:qi,dataTableCaption:(0,Ke.__)("Keyphrase position in the last 90 days on a scale from 0 to 30.","wordpress-seo"),dataTableHeaderLabels:r})}Ni.propTypes={chartData:Pe().object};var Ui,Wi,Bi,Ki,Hi=function(e){var t,n=e.rowData,r=void 0===n?{}:n;if(null==r||null===(t=r.position)||void 0===t||!t.change)return React.createElement(Ni,{chartData:r});var o=r.position.change<0;return React.createElement(xe.Fragment,null,React.createElement(Ni,{chartData:r}),React.createElement(Ii,{isImproving:o},Math.abs(r.position.change)),React.createElement(Ci,{icon:"caret-right",color:o?"#69AB56":"#DC3332",size:"14px",isImproving:o}))};function Gi(e){var t,n=e.keyphrase,r=e.rowData,o=void 0===r?{}:r,a=e.onTrackKeyphrase,i=void 0===a?h.noop:a,s=e.onUntrackKeyphrase,c=void 0===s?h.noop:s,l=e.isFocusKeyphrase,u=void 0!==l&&l,p=e.isDisabled,d=void 0!==p&&p,f=e.isLoading,m=void 0!==f&&f,g=e.websiteId,y=void 0===g?"":g,v=e.isSelected,w=e.onSelectKeyphrases,b=!(0,h.isEmpty)(o),R=!(0,h.isEmpty)(null==o||null===(t=o.position)||void 0===t?void 0:t.history),E=(0,xe.useCallback)(function(){d||(b?c(n,o.id):i(n))},[n,i,c,b,o,d]),_=(0,xe.useCallback)(function(){w(function(e){return v?e.filter(function(e){return e!==n}):e.concat(n)})},[w,v,n]);return React.createElement(Mi,{isEnabled:b},React.createElement(Li,null,R&&React.createElement(xt.Checkbox,{id:"select-"+n,onChange:_,checked:v,label:""})),React.createElement(ji,null,n,u&&React.createElement("span",null,"*")),function(e){var t,n=e.rowData,r=e.websiteId,o=e.keyphrase,a=e.onSelectKeyphrases,i=(0,xe.useCallback)(function(){a([o])},[a,o]),s=!(0,h.isEmpty)(n),c=n&&n.updated_at&&$a()(n.updated_at)>=$a()().subtract(7,"days"),l=n?"https://app.wincher.com/websites/".concat(r,"/keywords?serp=").concat(n.id,"&utm_medium=plugin&utm_source=yoast&referer=yoast&partner=yoast"):null;return s?c?React.createElement(xe.Fragment,null,React.createElement("td",null,React.createElement(Di,null,function(e){return!e||!e.position||e.position.value>30?"> 30":e.position.value}(n),React.createElement(xt.ButtonStyledLink,{variant:"secondary",href:l,style:{height:28,marginLeft:12},rel:"noopener",target:"_blank"},(0,Ke.__)("View","wordpress-seo")))),React.createElement("td",{className:"yoast-table--nopadding"},React.createElement(Fi,{type:"button",onClick:i},React.createElement(Hi,{rowData:n}))),React.createElement("td",null,(t=n.updated_at,$a()(t).fromNow()))):React.createElement("td",{className:"yoast-table--nopadding",colSpan:"3"},React.createElement(Ri,null)):React.createElement("td",{className:"yoast-table--nopadding",colSpan:"3"},React.createElement("i",null,(0,Ke.__)("Activate tracking to show the ranking position","wordpress-seo")))}({rowData:o,websiteId:y,keyphrase:n,onSelectKeyphrases:w}),React.createElement(Ai,null,function(e){var t=e.keyphrase,n=e.isEnabled,r=e.toggleAction;return e.isLoading?React.createElement(xt.SvgIcon,{icon:"loading-spinner"}):React.createElement(xt.Toggle,{id:"toggle-keyphrase-tracking-".concat(t),className:"wincher-toggle",isEnabled:n,onSetToggleState:r,showToggleStateLabel:!1})}({keyphrase:n,isEnabled:b,toggleAction:E,isLoading:m})))}function Yi(){var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function a(n,r,o,a){var c=r&&r.prototype instanceof s?r:s,l=Object.create(c.prototype);return Vi(l,"_invoke",function(n,r,o){var a,s,c,l=0,u=o||[],p=!1,d={p:0,n:0,v:e,a:f,f:f.bind(e,4),d:function(t,n){return a=t,s=0,c=e,d.n=n,i}};function f(n,r){for(s=n,c=r,t=0;!p&&l&&!o&&t<u.length;t++){var o,a=u[t],f=d.p,m=a[2];n>3?(o=m===r)&&(c=a[(s=a[4])?5:(s=3,3)],a[4]=a[5]=e):a[0]<=f&&((o=n<2&&f<a[1])?(s=0,d.v=r,d.n=a[1]):f<m&&(o=n<3||a[0]>r||r>m)&&(a[4]=n,a[5]=r,d.n=m,s=0))}if(o||n>1)return i;throw p=!0,r}return function(o,u,m){if(l>1)throw TypeError("Generator is already running");for(p&&1===u&&f(u,m),s=u,c=m;(t=s<2?e:c)||!p;){a||(s?s<3?(s>1&&(d.n=-1),f(s,c)):d.n=c:d.v=c);try{if(l=2,a){if(s||(o="next"),t=a[o]){if(!(t=t.call(a,c)))throw TypeError("iterator result is not an object");if(!t.done)return t;c=t.value,s<2&&(s=0)}else 1===s&&(t=a.return)&&t.call(a),s<2&&(c=TypeError("The iterator does not provide a '"+o+"' method"),s=1);a=e}else if((t=(p=d.n<0)?c:n.call(r,d))!==i)break}catch(t){a=e,s=1,c=t}finally{l=1}}return{value:t,done:p}}}(n,o,a),!0),l}var i={};function s(){}function c(){}function l(){}t=Object.getPrototypeOf;var u=[][r]?t(t([][r]())):(Vi(t={},r,function(){return this}),t),p=l.prototype=s.prototype=Object.create(u);function d(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,l):(e.__proto__=l,Vi(e,o,"GeneratorFunction")),e.prototype=Object.create(p),e}return c.prototype=l,Vi(p,"constructor",l),Vi(l,"constructor",c),c.displayName="GeneratorFunction",Vi(l,o,"GeneratorFunction"),Vi(p),Vi(p,o,"Generator"),Vi(p,r,function(){return this}),Vi(p,"toString",function(){return"[object Generator]"}),(Yi=function(){return{w:a,m:d}})()}function Vi(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}Vi=function(e,t,n,r){function a(t,n){Vi(e,t,function(e){return this._invoke(t,n,e)})}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(a("next",0),a("throw",1),a("return",2))},Vi(e,t,n,r)}Hi.propTypes={rowData:Pe().object},Gi.propTypes={rowData:Pe().object,keyphrase:Pe().string.isRequired,onTrackKeyphrase:Pe().func,onUntrackKeyphrase:Pe().func,isFocusKeyphrase:Pe().bool,isDisabled:Pe().bool,isLoading:Pe().bool,websiteId:Pe().string,isSelected:Pe().bool.isRequired,onSelectKeyphrases:Pe().func.isRequired};var zi=(0,Qt.makeOutboundLink)(),$i=Ie().span(Ui||(Ui=Wt(["\n\tdisplay: block;\n\tfont-style: italic;\n\n\t@media (min-width: 782px) {\n\t\tdisplay: inline;\n\t\tposition: absolute;\n\t\t",": 8px;\n\t}\n"])),(0,Qt.getDirectionalStyle)("right","left")),Zi=Ie().div(Wi||(Wi=Wt(["\n\twidth: 100%;\n\toverflow-y: auto;\n"]))),Qi=Ie().th(Bi||(Bi=Wt(["\n\tpointer-events: ",";\n\tpadding-right: 0 !important;\n\n\t& > div {\n\t\tmargin: 0px;\n\t}\n"])),function(e){return e.isDisabled?"none":"initial"}),Xi=Ie().th(Ki||(Ki=Wt(["\n\tpadding-left: 2px !important;\n"]))),Ji=function(e){var t=(0,xe.useRef)();return(0,xe.useEffect)(function(){t.current=e}),t.current},es=(0,h.debounce)(function(){return di.apply(this,arguments)},500,{leading:!0}),ts=function(e){var t=e.addTrackedKeyphrase,n=e.isLoggedIn,r=void 0!==n&&n,o=e.isNewlyAuthenticated,a=void 0!==o&&o,i=e.keyphrases,s=void 0===i?[]:i,c=e.newRequest,l=e.removeTrackedKeyphrase,u=e.setRequestFailed,p=e.setKeyphraseLimitReached,d=e.setRequestSucceeded,f=e.setTrackedKeyphrases,g=e.setHasTrackedAll,y=e.trackAll,v=void 0!==y&&y,w=e.trackedKeyphrases,b=void 0===w?null:w,R=e.websiteId,E=void 0===R?"":R,_=e.permalink,k=e.focusKeyphrase,S=void 0===k?"":k,x=e.startAt,T=void 0===x?null:x,O=e.selectedKeyphrases,P=e.onSelectKeyphrases,C=(0,xe.useRef)(),I=(0,xe.useRef)(),L=(0,xe.useRef)(!1),j=G((0,xe.useState)([]),2),A=j[0],D=j[1],F=(0,xe.useCallback)(function(e){var t=e.toLowerCase();return b&&!(0,h.isEmpty)(b)&&b.hasOwnProperty(t)?b[t]:null},[b]),M=(0,xe.useMemo)(function(){return m(Yi().m(function e(){return Yi().w(function(e){for(;;)switch(e.n){case 0:return e.n=1,ei(function(){return I.current&&I.current.abort(),I.current="undefined"==typeof AbortController?null:new AbortController,es(s,T,_,I.current.signal)},function(e){d(e),f(e.results)},function(e){u(e)});case 1:return e.a(2)}},e)}))},[d,u,f,s,_,T]),q=(0,xe.useCallback)(function(){var e=m(Yi().m(function e(n){var r;return Yi().w(function(e){for(;;)switch(e.n){case 0:return r=(Array.isArray(n)?n:[n]).map(function(e){return e.toLowerCase()}),D(function(e){return[].concat(H(e),H(r))}),e.n=1,ei(function(){return fi(r)},function(e){d(e),t(e.results),M()},function(e){400===e.status&&e.limit&&p(e.limit),u(e)},201);case 1:D(function(e){return h.without.apply(void 0,[e].concat(H(r)))});case 2:return e.a(2)}},e)}));return function(_x){return e.apply(this,arguments)}}(),[d,u,p,t,M]),N=(0,xe.useCallback)(function(){var e=m(Yi().m(function e(t,n){return Yi().w(function(e){for(;;)switch(e.n){case 0:return t=t.toLowerCase(),D(function(e){return[].concat(H(e),[t])}),e.n=1,ei(function(){return hi(n)},function(e){d(e),l(t)},function(e){u(e)});case 1:D(function(e){return(0,h.without)(e,t)});case 2:return e.a(2)}},e)}));return function(t,n){return e.apply(this,arguments)}}(),[d,l,u]),U=(0,xe.useCallback)(function(){var e=m(Yi().m(function e(t){return Yi().w(function(e){for(;;)switch(e.n){case 0:return c(),e.n=1,q(t);case 1:return e.a(2)}},e)}));return function(t){return e.apply(this,arguments)}}(),[c,q]),W=Ji(_),B=Ji(s),K=Ji(T),Y=_&&T;(0,xe.useEffect)(function(){r&&Y&&(_!==W||(0,h.difference)(s,B).length||T!==K)&&M()},[r,_,W,s,B,M,Y,T,K]),(0,xe.useEffect)(function(){if(r&&v&&null!==b){var e=s.filter(function(e){return!F(e)});e.length&&q(e),g()}},[r,v,b,q,g,F,s]),(0,xe.useEffect)(function(){a&&!L.current&&(M(),L.current=!0)},[a,M]),(0,xe.useEffect)(function(){if(r&&!(0,h.isEmpty)(b))return(0,h.filter)(b,function(e){return(0,h.isEmpty)(e.updated_at)}).length>0&&(C.current=setInterval(function(){M()},1e4)),function(){clearInterval(C.current)}},[r,b,M]);var V=r&&null===b,z=(0,xe.useMemo)(function(){return(0,h.isEmpty)(b)?[]:Object.values(b).filter(function(e){var t;return!(0,h.isEmpty)(null==e||null===(t=e.position)||void 0===t?void 0:t.history)}).map(function(e){return e.keyword})},[b]),$=(0,xe.useMemo)(function(){return O.length>0&&z.length>0&&z.every(function(e){return O.includes(e)})},[O,z]),Z=(0,xe.useCallback)(function(){P($?[]:z)},[P,$,z]),Q=(0,xe.useMemo)(function(){return(0,h.orderBy)(s,[function(e){return Object.values(b||{}).map(function(e){return e.keyword}).includes(e)}],["desc"])},[s,b]);return s&&!(0,h.isEmpty)(s)&&React.createElement(xe.Fragment,null,React.createElement(Zi,null,React.createElement("table",{className:"yoast yoast-table"},React.createElement("thead",null,React.createElement("tr",null,React.createElement(Qi,{isDisabled:0===z.length},React.createElement(xt.Checkbox,{id:"select-all",onChange:Z,checked:$,label:""})),React.createElement(Xi,{scope:"col",abbr:(0,Ke.__)("Keyphrase","wordpress-seo")},(0,Ke.__)("Keyphrase","wordpress-seo")),React.createElement("th",{scope:"col",abbr:(0,Ke.__)("Position","wordpress-seo")},(0,Ke.__)("Position","wordpress-seo")),React.createElement("th",{scope:"col",abbr:(0,Ke.__)("Position over time","wordpress-seo")},(0,Ke.__)("Position over time","wordpress-seo")),React.createElement("th",{scope:"col",abbr:(0,Ke.__)("Last updated","wordpress-seo")},(0,Ke.__)("Last updated","wordpress-seo")),React.createElement("th",{scope:"col",abbr:(0,Ke.__)("Tracking","wordpress-seo")},(0,Ke.__)("Tracking","wordpress-seo")))),React.createElement("tbody",null,Q.map(function(e,t){return React.createElement(Gi,{key:"trackable-keyphrase-".concat(t),keyphrase:e,onTrackKeyphrase:U,onUntrackKeyphrase:N,rowData:F(e),isFocusKeyphrase:e===S.trim().toLowerCase(),websiteId:E,isDisabled:!r,isLoading:V||A.indexOf(e.toLowerCase())>=0,isSelected:O.includes(e),onSelectKeyphrases:P})})))),React.createElement("p",{style:{marginBottom:0,position:"relative"}},React.createElement(zi,{href:wpseoAdminGlobalL10n["links.wincher.login"]},(0,Ke.sprintf)(/* translators: %s expands to Wincher */ /* translators: %s expands to Wincher */
(0,Ke.__)("Get more insights over at %s","wordpress-seo"),"Wincher")),React.createElement($i,null,(0,Ke.__)("* focus keyphrase","wordpress-seo"))))};ts.propTypes={addTrackedKeyphrase:Pe().func.isRequired,isLoggedIn:Pe().bool,isNewlyAuthenticated:Pe().bool,keyphrases:Pe().array,newRequest:Pe().func.isRequired,removeTrackedKeyphrase:Pe().func.isRequired,setRequestFailed:Pe().func.isRequired,setKeyphraseLimitReached:Pe().func.isRequired,setRequestSucceeded:Pe().func.isRequired,setTrackedKeyphrases:Pe().func.isRequired,setHasTrackedAll:Pe().func.isRequired,trackAll:Pe().bool,trackedKeyphrases:Pe().object,websiteId:Pe().string,permalink:Pe().string.isRequired,focusKeyphrase:Pe().string,startAt:Pe().string,selectedKeyphrases:Pe().arrayOf(Pe().string).isRequired,onSelectKeyphrases:Pe().func.isRequired};const ns=ts,rs=(0,wt.compose)([(0,s.withSelect)(function(e){var t=e("yoast-seo/editor"),n=t.getWincherWebsiteId,r=t.getWincherTrackableKeyphrases,o=t.getWincherLoginStatus,a=t.getWincherPermalink,i=t.getFocusKeyphrase,s=t.isWincherNewlyAuthenticated,c=t.shouldWincherTrackAll;return{focusKeyphrase:i(),keyphrases:r(),isLoggedIn:o(),trackAll:c(),websiteId:n(),isNewlyAuthenticated:s(),permalink:a()}}),(0,s.withDispatch)(function(e){var t=e("yoast-seo/editor"),n=t.setWincherNewRequest,r=t.setWincherRequestSucceeded,o=t.setWincherRequestFailed,a=t.setWincherSetKeyphraseLimitReached,i=t.setWincherTrackedKeyphrases,s=t.setWincherTrackingForKeyphrase,c=t.setWincherTrackAllKeyphrases,l=t.unsetWincherTrackingForKeyphrase;return{newRequest:function(){n()},setRequestSucceeded:function(e){r(e)},setRequestFailed:function(e){o(e)},setKeyphraseLimitReached:function(e){a(e)},addTrackedKeyphrase:function(e){s(e)},removeTrackedKeyphrase:function(e){l(e)},setTrackedKeyphrases:function(e){i(e)},setHasTrackedAll:function(){c(!1)}}})])(ns);function os(){var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function a(n,r,o,a){var c=r&&r.prototype instanceof s?r:s,l=Object.create(c.prototype);return as(l,"_invoke",function(n,r,o){var a,s,c,l=0,u=o||[],p=!1,d={p:0,n:0,v:e,a:f,f:f.bind(e,4),d:function(t,n){return a=t,s=0,c=e,d.n=n,i}};function f(n,r){for(s=n,c=r,t=0;!p&&l&&!o&&t<u.length;t++){var o,a=u[t],f=d.p,m=a[2];n>3?(o=m===r)&&(c=a[(s=a[4])?5:(s=3,3)],a[4]=a[5]=e):a[0]<=f&&((o=n<2&&f<a[1])?(s=0,d.v=r,d.n=a[1]):f<m&&(o=n<3||a[0]>r||r>m)&&(a[4]=n,a[5]=r,d.n=m,s=0))}if(o||n>1)return i;throw p=!0,r}return function(o,u,m){if(l>1)throw TypeError("Generator is already running");for(p&&1===u&&f(u,m),s=u,c=m;(t=s<2?e:c)||!p;){a||(s?s<3?(s>1&&(d.n=-1),f(s,c)):d.n=c:d.v=c);try{if(l=2,a){if(s||(o="next"),t=a[o]){if(!(t=t.call(a,c)))throw TypeError("iterator result is not an object");if(!t.done)return t;c=t.value,s<2&&(s=0)}else 1===s&&(t=a.return)&&t.call(a),s<2&&(c=TypeError("The iterator does not provide a '"+o+"' method"),s=1);a=e}else if((t=(p=d.n<0)?c:n.call(r,d))!==i)break}catch(t){a=e,s=1,c=t}finally{l=1}}return{value:t,done:p}}}(n,o,a),!0),l}var i={};function s(){}function c(){}function l(){}t=Object.getPrototypeOf;var u=[][r]?t(t([][r]())):(as(t={},r,function(){return this}),t),p=l.prototype=s.prototype=Object.create(u);function d(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,l):(e.__proto__=l,as(e,o,"GeneratorFunction")),e.prototype=Object.create(p),e}return c.prototype=l,as(p,"constructor",l),as(l,"constructor",c),c.displayName="GeneratorFunction",as(l,o,"GeneratorFunction"),as(p),as(p,o,"Generator"),as(p,r,function(){return this}),as(p,"toString",function(){return"[object Generator]"}),(os=function(){return{w:a,m:d}})()}function as(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}as=function(e,t,n,r){function a(t,n){as(e,t,function(e){return this._invoke(t,n,e)})}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(a("next",0),a("throw",1),a("return",2))},as(e,t,n,r)}var is=function(){return T(function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};S(this,e),this.url=t,this.origin=new URL(t).origin,this.eventHandlers=Object.assign({success:{type:"",callback:function(){}},error:{type:"",callback:function(){}}},n),this.options=Object.assign({height:570,width:340,title:""},r),this.popup=null,this.createPopup=this.createPopup.bind(this),this.messageHandler=this.messageHandler.bind(this),this.getPopup=this.getPopup.bind(this)},[{key:"createPopup",value:function(){var e=this.options,t=e.height,n=e.width,r=e.title,o=["top="+(window.top.outerHeight/2+window.top.screenY-t/2),"left="+(window.top.outerWidth/2+window.top.screenX-n/2),"width="+n,"height="+t,"resizable=1","scrollbars=1","status=0"];this.popup&&!this.popup.closed||(this.popup=window.open(this.url,r,o.join(","))),this.popup&&this.popup.focus(),window.addEventListener("message",this.messageHandler,!1)}},{key:"messageHandler",value:(e=m(os().m(function e(t){var n,r;return os().w(function(e){for(;;)switch(e.n){case 0:if(n=t.data,r=t.source,t.origin===this.origin&&this.popup===r){e.n=1;break}return e.a(2);case 1:if(n.type!==this.eventHandlers.success.type){e.n=2;break}return this.popup.close(),window.removeEventListener("message",this.messageHandler,!1),e.n=2,this.eventHandlers.success.callback(n);case 2:if(n.type!==this.eventHandlers.error.type){e.n=3;break}return this.popup.close(),window.removeEventListener("message",this.messageHandler,!1),e.n=3,this.eventHandlers.error.callback(n);case 3:return e.a(2)}},e,this)})),function(_x){return e.apply(this,arguments)})},{key:"getPopup",value:function(){return this.popup}},{key:"isClosed",value:function(){return!this.popup||this.popup.closed}},{key:"focus",value:function(){this.isClosed()||this.popup.focus()}}]);var e}();const ss=function(){return React.createElement(xt.Alert,{type:"info"},(0,Ke.sprintf)(/* translators: %s: Expands to "Wincher". */ /* translators: %s: Expands to "Wincher". */
(0,Ke.__)("Automatic tracking of keyphrases is enabled. Your keyphrase(s) will automatically be tracked by %s when you publish your post.","wordpress-seo"),"Wincher"))},cs=function(){return React.createElement(xt.Alert,{type:"success"},(0,Ke.sprintf)(/* translators: %s: Expands to "Wincher". */ /* translators: %s: Expands to "Wincher". */
(0,Ke.__)("You have successfully connected to %s! You can now track the SEO performance for the keyphrase(s) of this page.","wordpress-seo"),"Wincher"))},ls=function(){return React.createElement(xt.Alert,{type:"info"},(0,Ke.sprintf)(/* translators: %s: Expands to "Wincher". */ /* translators: %s: Expands to "Wincher". */
(0,Ke.__)("%s is currently tracking the ranking position(s) of your page. This may take a few minutes. Please wait or check back later.","wordpress-seo"),"Wincher"))};var us=(0,Qt.makeOutboundLink)(),ps=(0,Qt.makeOutboundLink)();const ds=function(){var e=(0,Ke.sprintf)(/* translators: %1$s expands to a link to Wincher, %2$s expands to a link to the keyphrase tracking article on Yoast.com */ /* translators: %1$s expands to a link to Wincher, %2$s expands to a link to the keyphrase tracking article on Yoast.com */
(0,Ke.__)("With %1$s you can track the ranking position of your page in the search results based on your keyphrase(s). %2$s","wordpress-seo"),"<wincherLink/>","<wincherReadMoreLink/>");return React.createElement("p",null,$e(e,{wincherLink:React.createElement(us,{href:wpseoAdminGlobalL10n["links.wincher.website"]},"Wincher"),wincherReadMoreLink:React.createElement(ps,{href:wpseoAdminL10n["shortlinks.wincher.seo_performance"]},(0,Ke.__)("Read more about keyphrase tracking with Wincher","wordpress-seo"))}))};var fs=(0,Qt.makeOutboundLink)(),ms=function(e){var t=e.limit,n=void 0===t?10:t,r=(0,Ke.sprintf)(/* translators: %1$d expands to the amount of allowed keyphrases on a free account, %2$s expands to a link to Wincher plans. */ /* translators: %1$d expands to the amount of allowed keyphrases on a free account, %2$s expands to a link to Wincher plans. */
(0,Ke.__)("You've reached the maximum amount of %1$d keyphrases you can add to your Wincher account. If you wish to add more keyphrases, please %2$s.","wordpress-seo"),n,"<UpdateWincherPlanLink/>");return React.createElement(xt.Alert,{type:"error"},$e(r,{UpdateWincherPlanLink:React.createElement(fs,{href:wpseoAdminGlobalL10n["links.wincher.pricing"]},(0,Ke.sprintf)(/* translators: %s : Expands to "Wincher". */ /* translators: %s : Expands to "Wincher". */
(0,Ke.__)("upgrade your %s plan","wordpress-seo"),"Wincher"))}))};ms.propTypes={limit:Pe().number};const hs=ms,gs=function(){return React.createElement(xt.Alert,{type:"error"},(0,Ke.__)("No keyphrase has been set. Please set a keyphrase first.","wordpress-seo"))},ys=function(){return React.createElement(xt.Alert,{type:"error"},(0,Ke.__)("Before you can track your SEO performance make sure to set either the post’s title and save it as a draft or manually set the post’s slug.","wordpress-seo"))};var vs=function(e){var t=e.onReconnect,n=e.className,r=void 0===n?"":n,o=(0,Ke.sprintf)(/* translators: %s expands to a link to open the Wincher login popup. */ /* translators: %s expands to a link to open the Wincher login popup. */
(0,Ke.__)("It seems like something went wrong when retrieving your website's data. Please %s and try again.","wordpress-seo"),"<reconnectToWincher/>","Wincher");return React.createElement(xt.Alert,{type:"error",className:r},$e(o,{reconnectToWincher:React.createElement("a",{href:"#",onClick:function(e){e.preventDefault(),t()}},(0,Ke.sprintf)(/* translators: %s : Expands to "Wincher". */ /* translators: %s : Expands to "Wincher". */
(0,Ke.__)("reconnect to %s","wordpress-seo"),"Wincher"))}))};vs.propTypes={onReconnect:Pe().func.isRequired,className:Pe().string};const ws=vs,bs=function(){return React.createElement(xt.Alert,{type:"error"},(0,Ke.__)("Something went wrong while tracking the ranking position(s) of your page. Please try again later.","wordpress-seo"))};var Rs,Es,_s,ks,Ss,xs=Ie().p(Rs||(Rs=Wt(["\n\tcolor: ",";\n\tfont-size: 14px;\n\tfont-weight: 700;\n\tmargin: 13px 0 10px;\n"])),lr.colors.$color_pink_dark),Ts=Ie()(xt.SvgIcon)(Es||(Es=Wt(["\n\tmargin-right: 5px;\n\tvertical-align: middle;\n"]))),Os=Ie().button(_s||(_s=Wt(["\n\tposition: absolute;\n\ttop: 9px;\n\tright: 9px;\n\tborder: none;\n\tbackground: none;\n\tcursor: pointer;\n"]))),Ps=Ie().p(ks||(ks=Wt(["\n\tfont-size: 13px;\n\tfont-weight: 500;\n\tmargin: 10px 0 13px;\n"]))),Cs=Ie().div(Ss||(Ss=Wt(["\n\tposition: relative;\n\tbackground: ",";\n\tborder: 1px solid #c7c7c7;\n\tborder-left: 4px solid",";\n\tpadding: 0 16px;\n\tmargin-bottom: 1.5em;\n"])),function(e){return e.isTitleShortened?"#f5f7f7":"transparent"},lr.colors.$color_pink_dark),Is=function(e){var t=e.limit,n=e.usage,r=e.isTitleShortened,o=void 0!==r&&r,a=e.isFreeAccount,i=void 0!==a&&a,s=(0,Ke.sprintf)(
/* Translators: %1$s expands to the number of used keywords.
   * %2$s expands to the account keywords limit.
   */
/* Translators: %1$s expands to the number of used keywords.
   * %2$s expands to the account keywords limit.
   */
(0,Ke.__)("Your are tracking %1$s out of %2$s keyphrases included in your free account.","wordpress-seo"),n,t),c=(0,Ke.sprintf)(
/* Translators: %1$s expands to the number of used keywords.
   * %2$s expands to the account keywords limit.
   */
/* Translators: %1$s expands to the number of used keywords.
   * %2$s expands to the account keywords limit.
   */
(0,Ke.__)("Your are tracking %1$s out of %2$s keyphrases included in your account.","wordpress-seo"),n,t),l=i?s:c,u=(0,Ke.sprintf)(
/* Translators: %1$s expands to the number of used keywords.
   * %2$s expands to the account keywords limit.
   */
/* Translators: %1$s expands to the number of used keywords.
   * %2$s expands to the account keywords limit.
   */
(0,Ke.__)("Keyphrases tracked: %1$s/%2$s","wordpress-seo"),n,t),p=o?u:l;return React.createElement(xs,null,o&&React.createElement(Ts,{icon:"exclamation-triangle",color:lr.colors.$color_pink_dark,size:"14px"}),p)};Is.propTypes={limit:Pe().number.isRequired,usage:Pe().number.isRequired,isTitleShortened:Pe().bool,isFreeAccount:Pe().bool};var Ls=(0,Qt.makeOutboundLink)(),js=function(e){var t=e.discount,n=void 0===t?void 0:t,r=e.months,o=void 0===r?void 0:r,a=React.createElement(Ls,{href:wpseoAdminGlobalL10n["links.wincher.upgrade"],style:{fontWeight:600}},(0,Ke.sprintf)(/* Translators: %s : Expands to "Wincher". */ /* Translators: %s : Expands to "Wincher". */
(0,Ke.__)("Click here to upgrade your %s plan","wordpress-seo"),"Wincher"));if(!n||!o)return React.createElement(Ps,null,a);var i=100*n,s=(0,Ke.sprintf)(
/* Translators: %1$s expands to upgrade account link.
   * %2$s expands to the upgrade discount value.
   * %3$s expands to the upgrade discount duration e.g. 2 months.
   */
/* Translators: %1$s expands to upgrade account link.
   * %2$s expands to the upgrade discount value.
   * %3$s expands to the upgrade discount duration e.g. 2 months.
   */
(0,Ke.__)("%1$s and get an exclusive %2$s discount for %3$s month(s).","wordpress-seo"),"<wincherAccountUpgradeLink/>",i+"%",o);return React.createElement(Ps,null,$e(s,{wincherAccountUpgradeLink:a}))};js.propTypes={discount:Pe().number,months:Pe().number};var As=function(e){var t=e.onClose,n=void 0===t?null:t,r=e.isTitleShortened,o=void 0!==r&&r,a=e.trackingInfo,i=void 0===a?null:a,s=function(){var e=G((0,xe.useState)(null),2),t=e[0],n=e[1];return(0,xe.useEffect)(function(){t||function(){return li.apply(this,arguments)}().then(function(e){return n(e)})},[t]),t}();if(null===i)return null;var c=i.limit,l=i.usage;if(!(c&&l/c>=.8))return null;var u=Boolean(null==s?void 0:s.discount);return React.createElement(Cs,{isTitleShortened:o},n&&React.createElement(Os,{type:"button","aria-label":(0,Ke.__)("Close the upgrade callout","wordpress-seo"),onClick:n},React.createElement(xt.SvgIcon,{icon:"times-circle",color:lr.colors.$color_pink_dark,size:"14px"})),React.createElement(Is,et({},i,{isTitleShortened:o,isFreeAccount:u})),React.createElement(js,{discount:null==s?void 0:s.discount,months:null==s?void 0:s.months}))};As.propTypes={onClose:Pe().func,isTitleShortened:Pe().bool,trackingInfo:Pe().object};const Ds=As,Fs=window.ReactJSXRuntime,Ms=window.yoast["chart.js"],qs="label";function Ns(e,t){"function"==typeof e?e(t):e&&(e.current=t)}function Us(e,t){e.labels=t}function Ws(e,t,n=qs){const r=[];e.datasets=t.map(t=>{const o=e.datasets.find(e=>e[n]===t[n]);return o&&t.data&&!r.includes(o)?(r.push(o),Object.assign(o,t),o):{...t}})}function Bs(e,t=qs){const n={labels:[],datasets:[]};return Us(n,e.labels),Ws(n,e.datasets,t),n}function Ks(e,t){const{height:n=150,width:r=300,redraw:o=!1,datasetIdKey:a,type:i,data:s,options:c,plugins:l=[],fallbackContent:u,updateMode:p,...d}=e,f=(0,Ve.useRef)(null),m=(0,Ve.useRef)(null),h=()=>{f.current&&(m.current=new Ms.Chart(f.current,{type:i,data:Bs(s,a),options:c&&{...c},plugins:l}),Ns(t,m.current))},g=()=>{Ns(t,null),m.current&&(m.current.destroy(),m.current=null)};return(0,Ve.useEffect)(()=>{!o&&m.current&&c&&function(e,t){const n=e.options;n&&t&&Object.assign(n,t)}(m.current,c)},[o,c]),(0,Ve.useEffect)(()=>{!o&&m.current&&Us(m.current.config.data,s.labels)},[o,s.labels]),(0,Ve.useEffect)(()=>{!o&&m.current&&s.datasets&&Ws(m.current.config.data,s.datasets,a)},[o,s.datasets]),(0,Ve.useEffect)(()=>{m.current&&(o?(g(),setTimeout(h)):m.current.update(p))},[o,c,s.labels,s.datasets,p]),(0,Ve.useEffect)(()=>{m.current&&(g(),setTimeout(h))},[i]),(0,Ve.useEffect)(()=>(h(),()=>g()),[]),(0,Fs.jsx)("canvas",{ref:f,role:"img",height:n,width:r,...d,children:u})}const Hs=(0,Ve.forwardRef)(Ks);function Gs(e,t){return Ms.Chart.register(t),(0,Ve.forwardRef)((t,n)=>(0,Fs.jsx)(Hs,{...t,ref:n,type:e}))}const Ys=Gs("line",Ms.LineController),Vs={datetime:"MMM D, YYYY, h:mm:ss a",millisecond:"h:mm:ss.SSS a",second:"h:mm:ss a",minute:"h:mm a",hour:"hA",day:"MMM D",week:"ll",month:"MMM YYYY",quarter:"[Q]Q - YYYY",year:"YYYY"};Ms._adapters._date.override("function"==typeof $a()?{_id:"moment",formats:function(){return Vs},parse:function(e,t){return"string"==typeof e&&"string"==typeof t?e=$a()(e,t):e instanceof $a()||(e=$a()(e)),e.isValid()?e.valueOf():null},format:function(e,t){return $a()(e).format(t)},add:function(e,t,n){return $a()(e).add(t,n).valueOf()},diff:function(e,t,n){return $a()(e).diff($a()(t),n)},startOf:function(e,t,n){return e=$a()(e),"isoWeek"===t?(n=Math.trunc(Math.min(Math.max(0,n),6)),e.isoWeekday(n).startOf("day").valueOf()):e.startOf(t).valueOf()},endOf:function(e,t){return $a()(e).endOf(t).valueOf()}}:{}),Math.PI,Number.POSITIVE_INFINITY,Math.log10,Math.sign,"undefined"==typeof window||window.requestAnimationFrame,new Map,Object.create(null),Object.create(null),Number.EPSILON;const zs=["top","right","bottom","left"];function $s(e,t,n){const r={};n=n?"-"+n:"";for(let o=0;o<4;o++){const a=zs[o];r[a]=parseFloat(e[t+"-"+a+n])||0}return r.width=r.left+r.right,r.height=r.top+r.bottom,r}function Zs(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Qs(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Zs(Object(n),!0).forEach(function(t){d(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Zs(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}!function(){let e=!1;try{const t={get passive(){return e=!0,!1}};"undefined"!=typeof window&&"undefined"!=typeof document&&(window.addEventListener("test",null,t),window.removeEventListener("test",null,t))}catch(e){}}(),Ms.Chart.register(Ms.CategoryScale,Ms.LineController,Ms.LineElement,Ms.PointElement,Ms.LinearScale,Ms.TimeScale,Ms.Legend,Ms.Tooltip);var Xs,Js,ec,tc,nc,rc=["#ff983b","#ffa3f7","#3798ff","#ff3b3b","#acce81","#b51751","#3949ab","#26c6da","#ccb800","#de66ff","#4db6ac","#ffab91","#45f5f1","#77f210","#90a4ae","#ffd54f","#006b5e","#8ec7d2","#b1887c","#cc9300"];function oc(e){var t=e.datasets,n=e.isChartShown,r=e.keyphrases;if(!n)return null;var o=(0,xe.useMemo)(function(){return Object.fromEntries(H(r).sort().map(function(e,t){return[e,rc[t%rc.length]]}))},[r]),a=t.map(function(e){var t=o[e.label];return Qs(Qs({},e),{},{data:e.data.map(function(e){return{x:e.datetime,y:e.value}}),lineTension:0,pointRadius:1,pointHoverRadius:4,borderWidth:2,pointHitRadius:6,backgroundColor:t,borderColor:t})}).filter(function(e){return!1!==e.selected});return React.createElement(Ys,{height:100,data:{datasets:a},options:{plugins:{legend:{display:!0,position:"bottom",labels:{color:"black",usePointStyle:!0,boxHeight:7,boxWidth:7},onClick:h.noop},tooltip:{enabled:!0,callbacks:{title:function(e){return $a()(e[0].raw.x).utc().format("YYYY-MM-DD")}},titleAlign:"center",mode:"xPoint",position:"nearest",usePointStyle:!0,boxHeight:7,boxWidth:7,boxPadding:2}},scales:{x:{bounds:"ticks",type:"time",time:{unit:"day",minUnit:"day"},grid:{display:!1},ticks:{autoSkipPadding:50,maxRotation:0,color:"black"}},y:{bounds:"ticks",offset:!0,reverse:!0,ticks:{precision:0,color:"black"},max:31}}}})}function ac(){var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function a(n,r,o,a){var c=r&&r.prototype instanceof s?r:s,l=Object.create(c.prototype);return ic(l,"_invoke",function(n,r,o){var a,s,c,l=0,u=o||[],p=!1,d={p:0,n:0,v:e,a:f,f:f.bind(e,4),d:function(t,n){return a=t,s=0,c=e,d.n=n,i}};function f(n,r){for(s=n,c=r,t=0;!p&&l&&!o&&t<u.length;t++){var o,a=u[t],f=d.p,m=a[2];n>3?(o=m===r)&&(c=a[(s=a[4])?5:(s=3,3)],a[4]=a[5]=e):a[0]<=f&&((o=n<2&&f<a[1])?(s=0,d.v=r,d.n=a[1]):f<m&&(o=n<3||a[0]>r||r>m)&&(a[4]=n,a[5]=r,d.n=m,s=0))}if(o||n>1)return i;throw p=!0,r}return function(o,u,m){if(l>1)throw TypeError("Generator is already running");for(p&&1===u&&f(u,m),s=u,c=m;(t=s<2?e:c)||!p;){a||(s?s<3?(s>1&&(d.n=-1),f(s,c)):d.n=c:d.v=c);try{if(l=2,a){if(s||(o="next"),t=a[o]){if(!(t=t.call(a,c)))throw TypeError("iterator result is not an object");if(!t.done)return t;c=t.value,s<2&&(s=0)}else 1===s&&(t=a.return)&&t.call(a),s<2&&(c=TypeError("The iterator does not provide a '"+o+"' method"),s=1);a=e}else if((t=(p=d.n<0)?c:n.call(r,d))!==i)break}catch(t){a=e,s=1,c=t}finally{l=1}}return{value:t,done:p}}}(n,o,a),!0),l}var i={};function s(){}function c(){}function l(){}t=Object.getPrototypeOf;var u=[][r]?t(t([][r]())):(ic(t={},r,function(){return this}),t),p=l.prototype=s.prototype=Object.create(u);function d(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,l):(e.__proto__=l,ic(e,o,"GeneratorFunction")),e.prototype=Object.create(p),e}return c.prototype=l,ic(p,"constructor",l),ic(l,"constructor",c),c.displayName="GeneratorFunction",ic(l,o,"GeneratorFunction"),ic(p),ic(p,o,"Generator"),ic(p,r,function(){return this}),ic(p,"toString",function(){return"[object Generator]"}),(ac=function(){return{w:a,m:d}})()}function ic(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}ic=function(e,t,n,r){function a(t,n){ic(e,t,function(e){return this._invoke(t,n,e)})}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(a("next",0),a("throw",1),a("return",2))},ic(e,t,n,r)}Ms.Interaction.modes.xPoint=function(e,t,n,r){var o=function(e,t){if("native"in e)return e;const{canvas:n,currentDevicePixelRatio:r}=t,o=(f=n).ownerDocument.defaultView.getComputedStyle(f,null),a="border-box"===o.boxSizing,i=$s(o,"padding"),s=$s(o,"border","width"),{x:c,y:l,box:u}=function(e,t){const n=e.touches,r=n&&n.length?n[0]:e,{offsetX:o,offsetY:a}=r;let i,s,c=!1;if(((e,t,n)=>(e>0||t>0)&&(!n||!n.shadowRoot))(o,a,e.target))i=o,s=a;else{const e=t.getBoundingClientRect();i=r.clientX-e.left,s=r.clientY-e.top,c=!0}return{x:i,y:s,box:c}}(e,n),p=i.left+(u&&s.left),d=i.top+(u&&s.top);var f;let{width:m,height:h}=t;return a&&(m-=i.width+s.width,h-=i.height+s.height),{x:Math.round((c-p)/m*n.width/r),y:Math.round((l-d)/h*n.height/r)}}(t,e),a=[];if(Ms.Interaction.evaluateInteractionItems(e,"x",o,function(e,t,n){e.inXRange(o.x,r)&&a.push({element:e,datasetIndex:t,index:n})}),0===a.length)return a;var i=a.reduce(function(e,t){return Math.abs(o.x-e.element.x)<Math.abs(o.x-t.element.x)?e:t}).element.x;return(a=a.filter(function(e){return e.element.x===i})).some(function(e){return Math.abs(e.element.y-o.y)<10})?a:[]},oc.propTypes={datasets:Pe().arrayOf(Pe().shape({label:Pe().string.isRequired,data:Pe().arrayOf(Pe().shape({datetime:Pe().string.isRequired,value:Pe().number.isRequired})).isRequired,selected:Pe().bool})).isRequired,isChartShown:Pe().bool.isRequired,keyphrases:Pe().array.isRequired};var sc=function(e){var t=e.response,n=e.onLogin;return[401,403,404].includes(t.status)?React.createElement(ws,{onReconnect:n}):React.createElement(bs,null)};sc.propTypes={response:Pe().object.isRequired,onLogin:Pe().func.isRequired};var cc=function(e){var t=e.isSuccess,n=e.response,r=void 0===n?{}:n,o=e.allKeyphrasesMissRanking,a=e.onLogin,i=e.keyphraseLimitReached,s=e.limit;return i?React.createElement(hs,{limit:s}):(0,h.isEmpty)(r)||t?o?React.createElement(ls,null):null:React.createElement(sc,{response:r,onLogin:a})};cc.propTypes={isSuccess:Pe().bool.isRequired,allKeyphrasesMissRanking:Pe().bool.isRequired,response:Pe().object,onLogin:Pe().func.isRequired,keyphraseLimitReached:Pe().bool.isRequired,limit:Pe().number.isRequired};var lc=null,uc=function(){var e=m(ac().m(function e(t,n){var r,o,a,i,s,c;return ac().w(function(e){for(;;)switch(e.n){case 0:return r=t.onAuthentication,o=t.setRequestSucceeded,a=t.setRequestFailed,i=t.keyphrases,s=t.addTrackedKeyphrase,c=t.setKeyphraseLimitReached,e.n=1,ei(function(){return ui(n)},function(){var e=m(ac().m(function e(t){var l,u;return ac().w(function(e){for(;;)switch(e.n){case 0:return r(!0,!0,n.websiteId.toString()),o(t),l=(Array.isArray(i)?i:[i]).map(function(e){return e.toLowerCase()}),e.n=1,ei(function(){return fi(l)},function(e){o(e),s(e.results)},function(e){400===e.status&&e.limit&&c(e.limit),a(e)},201);case 1:(u=lc.getPopup())&&u.close();case 2:return e.a(2)}},e)}));return function(t){return e.apply(this,arguments)}}(),function(){var e=m(ac().m(function e(t){return ac().w(function(e){for(;;)if(0===e.n)return e.a(2,a(t))},e)}));return function(t){return e.apply(this,arguments)}}());case 1:return e.a(2)}},e)}));return function(_x,t){return e.apply(this,arguments)}}(),pc=function(){var e=m(ac().m(function e(t){var n,r,o,a,i,s,c,l;return ac().w(function(e){for(;;)switch(e.n){case 0:if(n=t.onAuthentication,r=t.setRequestSucceeded,o=t.setRequestFailed,a=t.keyphrases,i=t.addTrackedKeyphrase,s=t.setKeyphraseLimitReached,!lc||lc.isClosed()){e.n=1;break}return lc.focus(),e.a(2);case 1:return e.n=2,ii();case 2:c=e.v,l=c.url,(lc=new is(l,{success:{type:"wincher:oauth:success",callback:function(e){return uc({onAuthentication:n,setRequestSucceeded:r,setRequestFailed:o,keyphrases:a,addTrackedKeyphrase:i,setKeyphraseLimitReached:s},e)}},error:{type:"wincher:oauth:error",callback:function(){return n(!1,!1)}}},{title:"Wincher_login",width:500,height:700})).createPopup();case 3:return e.a(2)}},e)}));return function(t){return e.apply(this,arguments)}}(),dc=function(e){return e.isLoggedIn?null:React.createElement("p",null,React.createElement(xt.NewButton,{onClick:e.onLogin,variant:"primary"},(0,Ke.sprintf)(/* translators: %s expands to Wincher */ /* translators: %s expands to Wincher */
(0,Ke.__)("Connect with %s","wordpress-seo"),"Wincher")))};dc.propTypes={isLoggedIn:Pe().bool.isRequired,onLogin:Pe().func.isRequired};var fc=Ie().div(Xs||(Xs=Wt(["\n\tp {\n\t\tmargin: 1em 0;\n\t}\n"]))),mc=Ie().div(Js||(Js=Wt(["\n\t",";\n"])),function(e){return e.isDisabled&&"\n\t\topacity: .5;\n\t\tpointer-events: none;\n\t"}),hc=Ie().div(ec||(ec=Wt(["\n\tfont-weight: var(--yoast-font-weight-bold);\n\tcolor: var(--yoast-color-label);\n\tfont-size: var(--yoast-font-size-default);\n"]))),gc=Ie().div.attrs({className:"yoast-field-group"})(tc||(tc=Wt(["\n\tdisplay: flex;\n\tjustify-content: space-between;\n\talign-items: center;\n\tmargin-bottom: 14px;\n"]))),yc=Ie().div(nc||(nc=Wt(["\n\tmargin: 8px 0;\n"]))),vc=$a().utc().startOf("day"),wc=[{name:(0,Ke.__)("Last day","wordpress-seo"),value:$a()(vc).subtract(1,"days").format(),defaultIndex:1},{name:(0,Ke.__)("Last week","wordpress-seo"),value:$a()(vc).subtract(1,"week").format(),defaultIndex:2},{name:(0,Ke.__)("Last month","wordpress-seo"),value:$a()(vc).subtract(1,"month").format(),defaultIndex:3},{name:(0,Ke.__)("Last year","wordpress-seo"),value:$a()(vc).subtract(1,"year").format(),defaultIndex:0}],bc=function(e){var t=e.onSelect,n=e.selected,r=void 0===n?null:n,o=e.options;return e.isLoggedIn?o.length<1?null:React.createElement("select",{className:"components-select-control__input",id:"wincher-period-picker",value:(null==r?void 0:r.value)||o[0].value,onChange:t},o.map(function(e){return React.createElement("option",{key:e.name,value:e.value},e.name)})):null};bc.propTypes={onSelect:Pe().func.isRequired,selected:Pe().object,options:Pe().array.isRequired,isLoggedIn:Pe().bool.isRequired};var Rc=function(e){var t=e.trackedKeyphrases,n=void 0===t?null:t,r=e.isLoggedIn,o=e.keyphrases,a=e.shouldTrackAll,i=e.permalink,s=e.historyDaysLimit,c=void 0===s?0:s;if(!i&&r)return React.createElement(ys,null);if(0===o.length)return React.createElement(gs,null);var l=$a()(vc).subtract(c,"days"),u=wc.filter(function(e){return $a()(e.value).isSameOrAfter(l)}),p=(0,h.orderBy)(u,function(e){return e.defaultIndex},"desc")[0],d=G((0,xe.useState)(p),2),f=d[0],m=d[1],g=G((0,xe.useState)([]),2),y=g[0],v=g[1],w=y.length>0,b=(0,wt.usePrevious)(n);(0,xe.useEffect)(function(){if(!(0,h.isEmpty)(n)&&(0,h.difference)(Object.keys(n),Object.keys(b||[])).length){var e=Object.values(n).map(function(e){return e.keyword});v(e)}},[n,b]),(0,xe.useEffect)(function(){m(p)},[null==p?void 0:p.name]);var R=(0,xe.useCallback)(function(e){var t=wc.find(function(t){return t.value===e.target.value});t&&m(t)},[m]),E=(0,xe.useMemo)(function(){return(0,h.isEmpty)(y)||(0,h.isEmpty)(n)?[]:Object.values(n).filter(function(e){var t;return!(null==e||null===(t=e.position)||void 0===t||!t.history)}).map(function(e){var t;return{label:e.keyword,data:e.position.history,selected:y.includes(e.keyword)&&!(0,h.isEmpty)(null===(t=e.position)||void 0===t?void 0:t.history)}})},[y,n]);return React.createElement(mc,{isDisabled:!r},React.createElement("p",null,(0,Ke.__)("You can enable / disable tracking the SEO performance for each keyphrase below.","wordpress-seo")),r&&a&&React.createElement(ss,null),React.createElement(gc,null,React.createElement(bc,{selected:f,onSelect:R,options:u,isLoggedIn:r})),React.createElement(yc,null,React.createElement(oc,{isChartShown:w,datasets:E,keyphrases:o})),React.createElement(rs,{startAt:null==f?void 0:f.value,selectedKeyphrases:y,onSelectKeyphrases:v,trackedKeyphrases:n}))};function Ec(e){var t=e.trackedKeyphrases,n=void 0===t?null:t,r=e.addTrackedKeyphrase,o=e.isLoggedIn,a=void 0!==o&&o,i=e.isNewlyAuthenticated,s=void 0!==i&&i,c=e.keyphrases,l=void 0===c?[]:c,u=e.response,p=void 0===u?{}:u,d=e.shouldTrackAll,f=void 0!==d&&d,m=e.permalink,h=void 0===m?"":m,g=e.allKeyphrasesMissRanking,y=e.isSuccess,v=e.keyphraseLimitReached,w=e.limit,b=e.setRequestSucceeded,R=e.setRequestFailed,E=e.setKeyphraseLimitReached,_=e.onAuthentication,k=(0,xe.useCallback)(function(){pc({onAuthentication:_,setRequestSucceeded:b,setRequestFailed:R,keyphrases:l,addTrackedKeyphrase:r,setKeyphraseLimitReached:E})},[pc,_,b,R,l,r,E]),S=function(e){var t=G((0,xe.useState)(null),2),n=t[0],r=t[1];return(0,xe.useEffect)(function(){e&&!n&&function(){return ci.apply(this,arguments)}().then(function(e){return r(e)})},[n]),n}(a);return React.createElement(fc,null,s&&React.createElement(cs,null),a&&React.createElement(Ds,{trackingInfo:S}),React.createElement(hc,null,(0,Ke.__)("SEO performance","wordpress-seo"),React.createElement(xt.HelpIcon,{linkTo:wpseoAdminL10n["shortlinks.wincher.seo_performance"]
/* translators: Hidden accessibility text. */,linkText:(0,Ke.__)("Learn more about the SEO performance feature.","wordpress-seo")})),React.createElement(ds,null),React.createElement(dc,{isLoggedIn:a,onLogin:k}),React.createElement(cc,{isSuccess:y,response:p,allKeyphrasesMissRanking:g,keyphraseLimitReached:v,limit:w,onLogin:k}),React.createElement(Rc,{trackedKeyphrases:n,isLoggedIn:a,keyphrases:l,shouldTrackAll:f,permalink:h,historyDaysLimit:(null==S?void 0:S.historyDays)||31}))}Rc.propTypes={trackedKeyphrases:Pe().object,keyphrases:Pe().array.isRequired,isLoggedIn:Pe().bool.isRequired,shouldTrackAll:Pe().bool.isRequired,permalink:Pe().string.isRequired,historyDaysLimit:Pe().number},Ec.propTypes={trackedKeyphrases:Pe().object,addTrackedKeyphrase:Pe().func.isRequired,isLoggedIn:Pe().bool,isNewlyAuthenticated:Pe().bool,keyphrases:Pe().array,response:Pe().object,shouldTrackAll:Pe().bool,permalink:Pe().string,allKeyphrasesMissRanking:Pe().bool.isRequired,isSuccess:Pe().bool.isRequired,keyphraseLimitReached:Pe().bool.isRequired,limit:Pe().number.isRequired,setRequestSucceeded:Pe().func.isRequired,setRequestFailed:Pe().func.isRequired,setKeyphraseLimitReached:Pe().func.isRequired,onAuthentication:Pe().func.isRequired};const _c=(0,wt.compose)([(0,s.withSelect)(function(e){var t=e("yoast-seo/editor"),n=t.isWincherNewlyAuthenticated,r=t.getWincherKeyphraseLimitReached,o=t.getWincherLimit,a=t.getWincherLoginStatus,i=t.getWincherRequestIsSuccess,s=t.getWincherRequestResponse,c=t.getWincherTrackableKeyphrases,l=t.getWincherTrackedKeyphrases,u=t.getWincherAllKeyphrasesMissRanking,p=t.getWincherPermalink,d=t.shouldWincherAutomaticallyTrackAll;return{keyphrases:c(),trackedKeyphrases:l(),allKeyphrasesMissRanking:u(),isLoggedIn:a(),isNewlyAuthenticated:n(),isSuccess:i(),keyphraseLimitReached:r(),limit:o(),response:s(),shouldTrackAll:d(),permalink:p()}}),(0,s.withDispatch)(function(e){var t=e("yoast-seo/editor"),n=t.setWincherWebsiteId,r=t.setWincherRequestSucceeded,o=t.setWincherRequestFailed,a=t.setWincherTrackingForKeyphrase,i=t.setWincherSetKeyphraseLimitReached,s=t.setWincherLoginStatus;return{setRequestSucceeded:function(e){r(e)},setRequestFailed:function(e){o(e)},addTrackedKeyphrase:function(e){a(e)},setKeyphraseLimitReached:function(e){i(e)},onAuthentication:function(e,t,r){n(r),s(e,t)}}})])(Ec);var kc,Sc=Ie()(Ka)(kc||(kc=Wt(["\n\twidth: 18px;\n\theight: 18px;\n\tmargin: 3px;\n"])));function xc(e){var t=e.keyphrases,n=e.onNoKeyphraseSet,r=e.onOpen,o=e.location;if(!t.length){var a=document.querySelector("#focus-keyword-input-metabox");return a||(a=document.querySelector("#focus-keyword-input-sidebar")),a.focus(),void n()}r(o)}function Tc(e){var t=e.location,n=void 0===t?"":t,r=e.whichModalOpen,o=void 0===r?"none":r,a=e.shouldCloseOnClickOutside,i=void 0===a||a,s=e.keyphrases,c=e.onNoKeyphraseSet,l=e.onOpen,u=e.onClose,p=(0,xe.useCallback)(function(){xc({keyphrases:s,onNoKeyphraseSet:c,onOpen:l,location:n})},[xc,s,c,l,n]),d=(0,Ke.__)("Track SEO performance","wordpress-seo"),f=Kt();return React.createElement(xe.Fragment,null,o===n&&React.createElement(Yt,{title:d,onRequestClose:u,icon:React.createElement(Lt,null),additionalClassName:"yoast-wincher-seo-performance-modal yoast-gutenberg-modal__no-padding",shouldCloseOnClickOutside:i},React.createElement(Va,{className:"yoast-gutenberg-modal__content yoast-wincher-seo-performance-modal__content"},React.createElement(_c,null))),"sidebar"===n&&React.createElement(Ot,{id:"wincher-open-button-".concat(n),title:d,SuffixHeroIcon:React.createElement(Sc,et({className:"yst-text-slate-500"},f)),onClick:p}),"metabox"===n&&React.createElement("div",{className:"yst-root"},React.createElement(St,{id:"wincher-open-button-".concat(n),onClick:p},React.createElement(St.Text,null,d),React.createElement(Ka,et({className:"yst-h-5 yst-w-5 yst-text-slate-500"},f)))))}Tc.propTypes={location:Pe().string,whichModalOpen:Pe().oneOf(["none","metabox","sidebar","postpublish"]),shouldCloseOnClickOutside:Pe().bool,keyphrases:Pe().array.isRequired,onNoKeyphraseSet:Pe().func.isRequired,onOpen:Pe().func.isRequired,onClose:Pe().func.isRequired};const Oc=(0,wt.compose)([(0,s.withSelect)(function(e){var t=e("yoast-seo/editor"),n=t.getWincherModalOpen;return{keyphrases:(0,t.getWincherTrackableKeyphrases)(),whichModalOpen:n()}}),(0,s.withDispatch)(function(e){var t=e("yoast-seo/editor"),n=t.setWincherOpenModal,r=t.setWincherDismissModal,o=t.setWincherNoKeyphrase;return{onOpen:function(e){n(e)},onClose:function(){r()},onNoKeyphraseSet:function(){o()}}})])(Tc);var Pc=function(e){var t=e.isOpen,n=e.closeModal,r=e.id,o=e.upsellLink;return React.createElement(At,{isOpen:t,onClose:n,id:r,upsellLink:o,title:(0,Ke.__)("Cover more search intent with related keyphrases","wordpress-seo"),description:(0,Ke.__)("Optimize for up to 5 keyphrases to shape your content around different themes, audiences, and angles - helping it get discovered by a wider audience.","wordpress-seo"),note:(0,Ke.__)("Fine-tune your content for every audience","wordpress-seo"),modalTitle:(0,Ke.__)("Add more keyphrases with Premium","wordpress-seo"),ctbId:"f6a84663-465f-4cb5-8ba5-f7a6d72224b2"})};const Cc=function(){var e=G((0,Ye.useToggleState)(!1),5),t=e[0],n=e[3],r=e[4],o=(0,xe.useContext)(Te.LocationContext),a=(0,Te.useRootContext)().locationContext,i=(0,Ye.useSvgAria)(),s=wpseoAdminL10n["sidebar"===o.toLowerCase()?"shortlinks.upsell.sidebar.additional_button":"shortlinks.upsell.metabox.additional_button"];return React.createElement(React.Fragment,null,React.createElement(Pc,{isOpen:t,closeModal:r,upsellLink:(0,Rt.addQueryArgs)(s,{context:a}),id:"yoast-additional-keyphrases-modal-".concat(o)}),"sidebar"===o&&React.createElement(Ot,{id:"yoast-additional-keyphrase-modal-open-button",title:(0,Ke.__)("Add related keyphrase","wordpress-seo"),prefixIcon:{icon:"plus",color:lr.colors.$color_grey_medium_dark},onClick:n},React.createElement("div",{className:"yst-root"},React.createElement(Ye.Badge,{size:"small",variant:"upsell"},React.createElement(bt,et({className:"yst-w-2.5 yst-h-2.5 yst-shrink-0"},i))))),"metabox"===o&&React.createElement("div",{className:"yst-root"},React.createElement(St,{id:"yoast-additional-keyphrase-metabox-modal-open-button",onClick:n},React.createElement(xt.SvgIcon,{icon:"plus",color:lr.colors.$color_grey_medium_dark}),React.createElement(St.Text,null,(0,Ke.__)("Add related keyphrase","wordpress-seo")),React.createElement(Ye.Badge,{size:"small",variant:"upsell"},React.createElement(bt,et({className:"yst-w-2.5 yst-h-2.5 yst-me-1 yst-shrink-0"},i)),React.createElement("span",null,"Premium")))))};function Ic(e){var t=e.isLoading,n=e.onLoad,r=e.settings;return(0,s.useSelect)(function(e){return e("yoast-seo/editor").selectLink("https://yoast.com/how-to-do-seo-webinar/")},[]),(0,xe.useEffect)(function(){setTimeout(function(){t&&n()})}),t?null:React.createElement(React.Fragment,null,React.createElement(Se.Fill,{name:"YoastBetheme"},React.createElement(Rn,{renderPriority:1},React.createElement(wn,null)),r.isKeywordAnalysisActive&&React.createElement(Rn,{renderPriority:8},React.createElement(Ft.KeywordInput,{isSEMrushIntegrationActive:r.isSEMrushIntegrationActive}),!window.wpseoScriptData.metabox.isPremium&&React.createElement(Se.Fill,{name:"YoastRelatedKeyphrases"},React.createElement(Ba,null))),r.isKeywordAnalysisActive&&React.createElement(Rn,{renderPriority:10},React.createElement(xe.Fragment,null,React.createElement(Ft.SeoAnalysis,{shouldUpsell:r.shouldUpsell,shouldUpsellHighlighting:r.shouldUpsell}))),r.isContentAnalysisActive&&React.createElement(Rn,{renderPriority:15},React.createElement(Ft.ReadabilityAnalysis,{shouldUpsell:r.shouldUpsell,shouldUpsellHighlighting:r.shouldUpsell})),r.isInclusiveLanguageAnalysisActive&&React.createElement(Rn,{renderPriority:19},React.createElement(Ft.InclusiveLanguageAnalysis,{shouldUpsellHighlighting:r.shouldUpsell})),r.isKeywordAnalysisActive&&React.createElement(Rn,{key:"additional-keywords-upsell",renderPriority:22},r.shouldUpsell&&React.createElement(Cc,null)),r.isKeywordAnalysisActive&&r.isWincherIntegrationActive&&React.createElement(Rn,{key:"wincher-seo-performance",renderPriority:23},React.createElement(Oc,{location:"sidebar",shouldCloseOnClickOutside:!1})),r.shouldUpsell&&React.createElement(Rn,{key:"internal-linking-suggestions-upsell",renderPriority:24},React.createElement(Dt,null)),React.createElement(Rn,{renderPriority:25},React.createElement(Hn,null)),(r.useOpenGraphData||r.useTwitterData)&&React.createElement(Rn,{key:"social-appearance",renderPriority:26},React.createElement(la,{useOpenGraphData:r.useOpenGraphData,useTwitterData:r.useTwitterData})),r.displaySchemaSettings&&React.createElement(Rn,{renderPriority:28},React.createElement(pa,{title:(0,Ke.__)("Schema","wordpress-seo")},React.createElement(Oa,null))),r.displayAdvancedTab&&React.createElement(Rn,{renderPriority:29},React.createElement(pa,{title:(0,Ke.__)("Advanced","wordpress-seo"),buttonId:"yoast-seo-elementor-advanced-button"},React.createElement(Fa,{location:"sidebar"}))),r.isCornerstoneActive&&React.createElement(Rn,{renderPriority:30},React.createElement(Ut,null)),r.isInsightsEnabled&&React.createElement(Rn,{renderPriority:32},React.createElement(yn,{location:"elementor"}))))}Ic.propTypes={isLoading:Pe().bool.isRequired,onLoad:Pe().func.isRequired,settings:Pe().object.isRequired};const Lc=(0,wt.compose)([(0,s.withSelect)(function(e){var t=e("yoast-seo/editor"),n=t.getPreferences,r=t.getSnippetEditorIsLoading;return{settings:n(),isLoading:r()}}),(0,s.withDispatch)(function(e){return{onLoad:e("yoast-seo/editor").loadSnippetEditorData}})])(Ic);window.jQuery;function jc(){var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function a(n,r,o,a){var c=r&&r.prototype instanceof s?r:s,l=Object.create(c.prototype);return Ac(l,"_invoke",function(n,r,o){var a,s,c,l=0,u=o||[],p=!1,d={p:0,n:0,v:e,a:f,f:f.bind(e,4),d:function(t,n){return a=t,s=0,c=e,d.n=n,i}};function f(n,r){for(s=n,c=r,t=0;!p&&l&&!o&&t<u.length;t++){var o,a=u[t],f=d.p,m=a[2];n>3?(o=m===r)&&(c=a[(s=a[4])?5:(s=3,3)],a[4]=a[5]=e):a[0]<=f&&((o=n<2&&f<a[1])?(s=0,d.v=r,d.n=a[1]):f<m&&(o=n<3||a[0]>r||r>m)&&(a[4]=n,a[5]=r,d.n=m,s=0))}if(o||n>1)return i;throw p=!0,r}return function(o,u,m){if(l>1)throw TypeError("Generator is already running");for(p&&1===u&&f(u,m),s=u,c=m;(t=s<2?e:c)||!p;){a||(s?s<3?(s>1&&(d.n=-1),f(s,c)):d.n=c:d.v=c);try{if(l=2,a){if(s||(o="next"),t=a[o]){if(!(t=t.call(a,c)))throw TypeError("iterator result is not an object");if(!t.done)return t;c=t.value,s<2&&(s=0)}else 1===s&&(t=a.return)&&t.call(a),s<2&&(c=TypeError("The iterator does not provide a '"+o+"' method"),s=1);a=e}else if((t=(p=d.n<0)?c:n.call(r,d))!==i)break}catch(t){a=e,s=1,c=t}finally{l=1}}return{value:t,done:p}}}(n,o,a),!0),l}var i={};function s(){}function c(){}function l(){}t=Object.getPrototypeOf;var u=[][r]?t(t([][r]())):(Ac(t={},r,function(){return this}),t),p=l.prototype=s.prototype=Object.create(u);function d(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,l):(e.__proto__=l,Ac(e,o,"GeneratorFunction")),e.prototype=Object.create(p),e}return c.prototype=l,Ac(p,"constructor",l),Ac(l,"constructor",c),c.displayName="GeneratorFunction",Ac(l,o,"GeneratorFunction"),Ac(p),Ac(p,o,"Generator"),Ac(p,r,function(){return this}),Ac(p,"toString",function(){return"[object Generator]"}),(jc=function(){return{w:a,m:d}})()}function Ac(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}Ac=function(e,t,n,r){function a(t,n){Ac(e,t,function(e){return this._invoke(t,n,e)})}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(a("next",0),a("throw",1),a("return",2))},Ac(e,t,n,r)}var Dc=!1,Fc=(0,h.debounce)(He,500,{trailing:!0}),Mc=function(e){return new Promise(function(t){var n=jQuery(e).serializeArray().reduce(function(e,t){var n=t.name,r=t.value;return e[n]=r,e},{});jQuery.post(e.getAttribute("action"),n).done(function(e,r,o){var a=e.success,i=e.data;return t({success:a,formData:n,data:i,xhr:o})}).fail(function(e){return t({success:!1,formData:n,xhr:e})})})},qc=function(){var e=document.getElementById("yoast-form");if(e){window.YoastSEO=window.YoastSEO||{},window.YoastSEO._registerReactComponent=Ue,jQuery(".mfn-yoast-tab").addClass("mfn-yoast-active"),function(e,t){var n=b();qe=(0,xe.createRef)();var r={isRtl:n.isRtl};(0,xe.createRoot)(document.getElementById("mfn-yoastseo-form")).render(React.createElement(je,{theme:r,location:"sidebar"},React.createElement(Se.SlotFillProvider,null,React.createElement(xe.Fragment,null,t,React.createElement(Ne,{ref:qe})))))}(0,React.createElement(Te.Root,{context:{locationContext:"panel-yoast-seo"}},React.createElement("div",{className:"yoast yoast-betheme-panel__fills"},React.createElement(vt,null),React.createElement(Lc,null)))),document.getElementById("yoast-seo-tab"),function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:500;(0,h.debounce)(e,t,{trailing:!0})}(function(){return Fc(Dc)});var t=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:500,n={},r=Array.from(e.querySelectorAll("input[name^='yoast']")),o=r.reduce(function(e,t){var n=t.name,r=t.value;return e[n]=r,e},{}),a=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ge(Object(n),!0).forEach(function(t){d(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ge(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({},o),i=new MutationObserver((0,h.debounce)(function(e){var t=[];e.forEach(function(e){"value"===e.attributeName&&e.target.name.startsWith("yoast")&&e.target.value!==o[e.target.name]&&(t.push({input:e.target,name:e.target.name,value:e.target.value,previousValue:o[e.target.name],snapshotValue:a[e.target.name]}),o[e.target.name]=e.target.value)}),t.length>0&&(0,h.forEach)(n,function(e){return e(t)})},t));return{start:function(){return i.observe(e,{attributes:!0,subtree:!0})},stop:function(){return i.disconnect()},subscribe:function(e){var t=(0,h.uniqueId)("yoast-form-listener");return n[t]=e,function(){return delete n[t]}},takeSnapshot:function(){r.forEach(function(e){var t=e.name,n=e.value;a[t]=n})},restoreSnapshot:function(){r.forEach(function(e){e.value=a[e.name],o[e.name]=a[e.name]})}}}(e);t.subscribe(function(e){e.some(function(e){return t=e.name,n=e.value,r=e.previousValue,!(We.includes(t)||Be.includes(t)&&function(e,t){if(t===e)return!0;if(""===t||""===e)return!1;var n,r;try{n=JSON.parse(t),r=JSON.parse(e)}catch(e){return!0}return n.length===r.length&&n.every(function(e,t){return e.keyword===r[t].keyword})}(r,n)||n===r);var t,n,r})&&Fc(Dc=!0)}),t.start(),jQuery(document).on("be:update",function(){n()});var n=function(){var n=m(jc().m(function n(){var r,o,a,i,l;return jc().w(function(n){for(;;)switch(n.n){case 0:return Dc=!1,n.n=1,Mc(e);case 1:if(r=n.v,o=r.success,a=r.formData,i=r.data,l=r.xhr,o){n.n=2;break}return Dc=!0,(0,c.doAction)("yoast.elementor.save.failure"),n.a(2);case 2:i.slug&&i.slug!==a.slug&&(0,s.dispatch)("yoast-seo/editor").updateData({slug:i.slug}),(0,s.dispatch)("yoast-seo/editor").setEditorDataSlug(i.slug),He(Dc),(0,c.doAction)("yoast.elementor.save.success",l),YoastSEO.store._takeSnapshot(),t.takeSnapshot();case 3:return n.a(2)}},n)}));return function(){return n.apply(this,arguments)}}();setTimeout(function(){YoastSEO.store._takeSnapshot(),t.takeSnapshot()},2e3)}else console.error("Yoast form not found!")};const Nc=window.yoast.reduxJsToolkit;var Uc="adminUrl",Wc=(0,Nc.createSlice)({name:Uc,initialState:"",reducers:{setAdminUrl:function(e,t){return t.payload}}}),Bc=(Wc.getInitialState,{selectAdminUrl:function(e){return(0,h.get)(e,Uc,"")}});function Kc(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Hc(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Kc(Object(n),!0).forEach(function(t){d(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Kc(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Gc(){var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function a(n,r,o,a){var c=r&&r.prototype instanceof s?r:s,l=Object.create(c.prototype);return Yc(l,"_invoke",function(n,r,o){var a,s,c,l=0,u=o||[],p=!1,d={p:0,n:0,v:e,a:f,f:f.bind(e,4),d:function(t,n){return a=t,s=0,c=e,d.n=n,i}};function f(n,r){for(s=n,c=r,t=0;!p&&l&&!o&&t<u.length;t++){var o,a=u[t],f=d.p,m=a[2];n>3?(o=m===r)&&(c=a[(s=a[4])?5:(s=3,3)],a[4]=a[5]=e):a[0]<=f&&((o=n<2&&f<a[1])?(s=0,d.v=r,d.n=a[1]):f<m&&(o=n<3||a[0]>r||r>m)&&(a[4]=n,a[5]=r,d.n=m,s=0))}if(o||n>1)return i;throw p=!0,r}return function(o,u,m){if(l>1)throw TypeError("Generator is already running");for(p&&1===u&&f(u,m),s=u,c=m;(t=s<2?e:c)||!p;){a||(s?s<3?(s>1&&(d.n=-1),f(s,c)):d.n=c:d.v=c);try{if(l=2,a){if(s||(o="next"),t=a[o]){if(!(t=t.call(a,c)))throw TypeError("iterator result is not an object");if(!t.done)return t;c=t.value,s<2&&(s=0)}else 1===s&&(t=a.return)&&t.call(a),s<2&&(c=TypeError("The iterator does not provide a '"+o+"' method"),s=1);a=e}else if((t=(p=d.n<0)?c:n.call(r,d))!==i)break}catch(t){a=e,s=1,c=t}finally{l=1}}return{value:t,done:p}}}(n,o,a),!0),l}var i={};function s(){}function c(){}function l(){}t=Object.getPrototypeOf;var u=[][r]?t(t([][r]())):(Yc(t={},r,function(){return this}),t),p=l.prototype=s.prototype=Object.create(u);function d(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,l):(e.__proto__=l,Yc(e,o,"GeneratorFunction")),e.prototype=Object.create(p),e}return c.prototype=l,Yc(p,"constructor",l),Yc(l,"constructor",c),c.displayName="GeneratorFunction",Yc(l,o,"GeneratorFunction"),Yc(p),Yc(p,o,"Generator"),Yc(p,r,function(){return this}),Yc(p,"toString",function(){return"[object Generator]"}),(Gc=function(){return{w:a,m:d}})()}function Yc(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}Yc=function(e,t,n,r){function a(t,n){Yc(e,t,function(e){return this._invoke(t,n,e)})}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(a("next",0),a("throw",1),a("return",2))},Yc(e,t,n,r)}Bc.selectAdminLink=(0,Nc.createSelector)([Bc.selectAdminUrl,function(e,t){return t}],function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";try{return new URL(t,e).href}catch(t){return e}}),Wc.actions,Wc.reducer;var Vc=Gc().m(Zc),zc="hasConsent",$c="".concat(zc,"/storeConsent");function Zc(e,t){return Gc().w(function(n){for(;;)switch(n.p=n.n){case 0:return n.p=0,n.n=1,{type:$c,payload:{consent:e,endpoint:t}};case 1:n.n=3;break;case 2:return n.p=2,n.v,n.a(2,!1);case 3:return n.n=4,{type:"".concat(zc,"/giveAiGeneratorConsent"),payload:e};case 4:return n.a(2,!0)}},Vc,null,[[0,2]])}var Qc,Xc=(0,Nc.createSlice)({name:zc,initialState:{hasConsent:!1,endpoint:"yoast/v1/ai_generator/consent"},reducers:{giveAiGeneratorConsent:function(e,t){var n=t.payload;e.hasConsent=n},setAiGeneratorConsentEndpoint:function(e,t){var n=t.payload;e.endpoint=n}}});function Jc(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function el(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Jc(Object(n),!0).forEach(function(t){d(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Jc(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}Xc.getInitialState,Hc(Hc({},Xc.actions),{},{storeAiGeneratorConsent:Zc}),d({},$c,(Qc=m(Gc().m(function e(t){var n;return Gc().w(function(e){for(;;)switch(e.n){case 0:return n=t.payload,e.n=1,Qa()({path:n.endpoint,method:"POST",data:{consent:n.consent},parse:!1});case 1:return e.a(2,e.v)}},e)})),function(_x){return Qc.apply(this,arguments)})),Xc.reducer;var tl="linkParams",nl=(0,Nc.createSlice)({name:tl,initialState:{},reducers:{setLinkParams:function(e,t){return t.payload}}}),rl=(nl.getInitialState,{selectLinkParam:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return(0,h.get)(e,"".concat(tl,".").concat(t),n)},selectLinkParams:function(e){return(0,h.get)(e,tl,{})}});rl.selectLink=(0,Nc.createSelector)([rl.selectLinkParams,function(e,t){return t},function(e,t){return arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}}],function(e,t,n){return(0,Rt.addQueryArgs)(t,el(el({},e),n))}),nl.actions,nl.reducer;var ol=(0,Nc.createSlice)({name:"notifications",initialState:{},reducers:{addNotification:{reducer:function(e,t){var n=t.payload;e[n.id]={id:n.id,variant:n.variant,size:n.size,title:n.title,description:n.description}},prepare:function(e){var t=e.id,n=e.variant,r=void 0===n?"info":n,o=e.size,a=void 0===o?"default":o,i=e.title,s=e.description;return{payload:{id:t||(0,Nc.nanoid)(),variant:r,size:a,title:i||"",description:s}}}},removeNotification:function(e,t){var n=t.payload;return(0,h.omit)(e,n)}}}),al=(ol.getInitialState,ol.actions,ol.reducer,"pluginUrl"),il=(0,Nc.createSlice)({name:al,initialState:"",reducers:{setPluginUrl:function(e,t){return t.payload}}}),sl=(il.getInitialState,{selectPluginUrl:function(e){return(0,h.get)(e,al,"")}});function cl(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function ll(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?cl(Object(n),!0).forEach(function(t){d(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):cl(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function ul(){var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function a(n,r,o,a){var c=r&&r.prototype instanceof s?r:s,l=Object.create(c.prototype);return pl(l,"_invoke",function(n,r,o){var a,s,c,l=0,u=o||[],p=!1,d={p:0,n:0,v:e,a:f,f:f.bind(e,4),d:function(t,n){return a=t,s=0,c=e,d.n=n,i}};function f(n,r){for(s=n,c=r,t=0;!p&&l&&!o&&t<u.length;t++){var o,a=u[t],f=d.p,m=a[2];n>3?(o=m===r)&&(c=a[(s=a[4])?5:(s=3,3)],a[4]=a[5]=e):a[0]<=f&&((o=n<2&&f<a[1])?(s=0,d.v=r,d.n=a[1]):f<m&&(o=n<3||a[0]>r||r>m)&&(a[4]=n,a[5]=r,d.n=m,s=0))}if(o||n>1)return i;throw p=!0,r}return function(o,u,m){if(l>1)throw TypeError("Generator is already running");for(p&&1===u&&f(u,m),s=u,c=m;(t=s<2?e:c)||!p;){a||(s?s<3?(s>1&&(d.n=-1),f(s,c)):d.n=c:d.v=c);try{if(l=2,a){if(s||(o="next"),t=a[o]){if(!(t=t.call(a,c)))throw TypeError("iterator result is not an object");if(!t.done)return t;c=t.value,s<2&&(s=0)}else 1===s&&(t=a.return)&&t.call(a),s<2&&(c=TypeError("The iterator does not provide a '"+o+"' method"),s=1);a=e}else if((t=(p=d.n<0)?c:n.call(r,d))!==i)break}catch(t){a=e,s=1,c=t}finally{l=1}}return{value:t,done:p}}}(n,o,a),!0),l}var i={};function s(){}function c(){}function l(){}t=Object.getPrototypeOf;var u=[][r]?t(t([][r]())):(pl(t={},r,function(){return this}),t),p=l.prototype=s.prototype=Object.create(u);function d(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,l):(e.__proto__=l,pl(e,o,"GeneratorFunction")),e.prototype=Object.create(p),e}return c.prototype=l,pl(p,"constructor",l),pl(l,"constructor",c),c.displayName="GeneratorFunction",pl(l,o,"GeneratorFunction"),pl(p),pl(p,o,"Generator"),pl(p,r,function(){return this}),pl(p,"toString",function(){return"[object Generator]"}),(ul=function(){return{w:a,m:d}})()}function pl(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}pl=function(e,t,n,r){function a(t,n){pl(e,t,function(e){return this._invoke(t,n,e)})}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(a("next",0),a("throw",1),a("return",2))},pl(e,t,n,r)}sl.selectImageLink=(0,Nc.createSelector)([sl.selectPluginUrl,function(e,t){return arguments.length>2&&void 0!==arguments[2]?arguments[2]:"images"},function(e,t){return t}],function(e,t,n){return[(0,h.trimEnd)(e,"/"),(0,h.trim)(t,"/"),(0,h.trimStart)(n,"/")].join("/")}),il.actions,il.reducer;var dl=ul().m(ml),fl="wistiaEmbedPermission";function ml(e){var t;return ul().w(function(n){for(;;)switch(n.p=n.n){case 0:return n.n=1,{type:"".concat(fl,"/").concat(ft)};case 1:return n.p=1,n.n=2,{type:fl,payload:e};case 2:return n.a(2,{type:"".concat(fl,"/").concat(mt),payload:{value:e}});case 3:return n.p=3,t=n.v,n.a(2,{type:"".concat(fl,"/").concat(ht),payload:{error:t,value:e}})}},dl,null,[[1,3]])}var hl,gl,yl=(0,Nc.createSlice)({name:fl,initialState:{value:!1,status:"idle",error:{}},reducers:{setWistiaEmbedPermissionValue:function(e,t){var n=t.payload;e.value=Boolean(n)}},extraReducers:function(e){e.addCase("".concat(fl,"/").concat(ft),function(e){e.status=gt}),e.addCase("".concat(fl,"/").concat(mt),function(e,t){var n=t.payload;e.status="success",e.value=Boolean(n&&n.value)}),e.addCase("".concat(fl,"/").concat(ht),function(e,t){var n=t.payload;e.status="error",e.value=Boolean(n&&n.value),e.error={code:(0,h.get)(n,"error.code",500),message:(0,h.get)(n,"error.message","Unknown")}})}}),vl=(yl.getInitialState,ll(ll({},yl.actions),{},{setWistiaEmbedPermission:ml}),d({},fl,(hl=m(ul().m(function e(t){var n;return ul().w(function(e){for(;;)if(0===e.n)return n=t.payload,e.a(2,Qa()({path:"/yoast/v1/wistia_embed_permission",method:"POST",data:{value:Boolean(n)}}))},e)})),function(_x){return hl.apply(this,arguments)}))),wl=(yl.reducer,"documentTitle"),bl=(0,Nc.createSlice)({name:wl,initialState:(0,h.defaultTo)(null===(gl=document)||void 0===gl?void 0:gl.title,""),reducers:{setDocumentTitle:function(e,t){return t.payload}}});function Rl(e){var t=e.alertKey;return new Promise(function(e){return wpseoApi.post("alerts/dismiss",{key:t},function(){return e()})})}function El(e){var t=e.query,n=e.postId;return new Promise(function(e){wpseoApi.get("meta/search",{query:t,post_id:n},function(t){e(t.meta)})})}function _l(){var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function a(n,r,o,a){var c=r&&r.prototype instanceof s?r:s,l=Object.create(c.prototype);return kl(l,"_invoke",function(n,r,o){var a,s,c,l=0,u=o||[],p=!1,d={p:0,n:0,v:e,a:f,f:f.bind(e,4),d:function(t,n){return a=t,s=0,c=e,d.n=n,i}};function f(n,r){for(s=n,c=r,t=0;!p&&l&&!o&&t<u.length;t++){var o,a=u[t],f=d.p,m=a[2];n>3?(o=m===r)&&(c=a[(s=a[4])?5:(s=3,3)],a[4]=a[5]=e):a[0]<=f&&((o=n<2&&f<a[1])?(s=0,d.v=r,d.n=a[1]):f<m&&(o=n<3||a[0]>r||r>m)&&(a[4]=n,a[5]=r,d.n=m,s=0))}if(o||n>1)return i;throw p=!0,r}return function(o,u,m){if(l>1)throw TypeError("Generator is already running");for(p&&1===u&&f(u,m),s=u,c=m;(t=s<2?e:c)||!p;){a||(s?s<3?(s>1&&(d.n=-1),f(s,c)):d.n=c:d.v=c);try{if(l=2,a){if(s||(o="next"),t=a[o]){if(!(t=t.call(a,c)))throw TypeError("iterator result is not an object");if(!t.done)return t;c=t.value,s<2&&(s=0)}else 1===s&&(t=a.return)&&t.call(a),s<2&&(c=TypeError("The iterator does not provide a '"+o+"' method"),s=1);a=e}else if((t=(p=d.n<0)?c:n.call(r,d))!==i)break}catch(t){a=e,s=1,c=t}finally{l=1}}return{value:t,done:p}}}(n,o,a),!0),l}var i={};function s(){}function c(){}function l(){}t=Object.getPrototypeOf;var u=[][r]?t(t([][r]())):(kl(t={},r,function(){return this}),t),p=l.prototype=s.prototype=Object.create(u);function d(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,l):(e.__proto__=l,kl(e,o,"GeneratorFunction")),e.prototype=Object.create(p),e}return c.prototype=l,kl(p,"constructor",l),kl(l,"constructor",c),c.displayName="GeneratorFunction",kl(l,o,"GeneratorFunction"),kl(p),kl(p,o,"Generator"),kl(p,r,function(){return this}),kl(p,"toString",function(){return"[object Generator]"}),(_l=function(){return{w:a,m:d}})()}function kl(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}kl=function(e,t,n,r){function a(t,n){kl(e,t,function(e){return this._invoke(t,n,e)})}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(a("next",0),a("throw",1),a("return",2))},kl(e,t,n,r)}bl.getInitialState,bl.actions,bl.reducer;var Sl=function(){var e=m(_l().m(function e(t){var n,r;return _l().w(function(e){for(;;)if(0===e.n)return n=t.countryCode,r=t.keyphrase,Qa()({path:"yoast/v1/semrush/country_code",method:"POST",data:{country_code:n}}),e.a(2,Qa()({path:(0,Rt.addQueryArgs)("/yoast/v1/semrush/related_keyphrases",{keyphrase:r,country_code:n})}))},e)}));return function(_x){return e.apply(this,arguments)}}(),xl=vl[fl],Tl=function(){function e(){S(this,e)}return T(e,null,[{key:"titleElement",get:function(){return document.getElementById(window.wpseoScriptData.isPost?"yoast_wpseo_title":"hidden_wpseo_title")}},{key:"descriptionElement",get:function(){return document.getElementById(window.wpseoScriptData.isPost?"yoast_wpseo_metadesc":"hidden_wpseo_desc")}},{key:"slugElement",get:function(){return document.getElementById("yoast_wpseo_slug")}},{key:"title",get:function(){return e.titleElement.value},set:function(t){e.titleElement.value=t}},{key:"description",get:function(){return e.descriptionElement.value},set:function(t){e.descriptionElement.value=t}},{key:"slug",get:function(){return e.slugElement.value},set:function(t){e.slugElement.value=t}}])}(),Ol=v.actions.UPDATE_DATA,Pl=v.actions.LOAD_SNIPPET_EDITOR_DATA;function Cl(e){if(e.hasOwnProperty("title")){var t=e.title;e.title===(0,h.get)(window,"wpseoScriptData.metabox.title_template","")&&(t=""),Tl.title=t}if(e.hasOwnProperty("description")){var n=e.description;e.description===(0,h.get)(window,"wpseoScriptData.metabox.metadesc_template","")&&(n=""),Tl.description=n}return e.hasOwnProperty("slug")&&(Tl.slug=e.slug),{type:Ol,data:e}}var Il=function(){var e=(0,h.get)(window,"wpseoScriptData.metabox.title_template",""),t=(0,h.get)(window,"wpseoScriptData.metabox.metadesc_template","");return{type:Pl,data:{title:Tl.title||e,description:Tl.description||t,slug:Tl.slug},templates:{title:e,description:t}}},Ll="yoast-measurement-element";var jl=v.selectors.getEditorDataSlug,Al=v.selectors.getEditorDataTitle,Dl=v.selectors.getSnippetEditorDescription,Fl=v.selectors.getSnippetEditorSlug,Ml=v.selectors.getSnippetEditorTitle,ql=(0,Nc.createSelector)([jl,Fl,Al,function(){return(0,h.get)(window,"elementor.documents.currentDocument.id",0)}],function(e,t,n,r){return t||e||(0,Rt.cleanForSlug)(n)||String(r)}),Nl=(0,Nc.createSelector)([Ml,Dl,ql],function(e,t,n){return{title:e,description:t,slug:n}}),Ul=v.selectors.getBaseUrlFromSettings,Wl=v.selectors.getContentLocale,Bl=v.selectors.getEditorDataContent,Kl=v.selectors.getFocusKeyphrase,Hl=v.selectors.getSnippetEditorDescriptionWithTemplate,Gl=v.selectors.getSnippetEditorTitleWithTemplate,Yl=v.selectors.getDateFromSettings,Vl=function(e){var t,n,r,o=Gl(e),a=Hl(e),i=ql(e),s=Ul(e);return o=Qt.strings.stripHTMLTags(D("data_page_title",o)),a=Qt.strings.stripHTMLTags(D("data_meta_desc",a)),i=i.trim().replace(/\s+/g,"-"),{text:Bl(e),title:o,keyword:Kl(e),description:a,locale:Wl(e),titleWidth:(t=o,r=document.getElementById(Ll),r||((n=document.createElement("div")).id=Ll,n.style.position="absolute",n.style.left="-9999em",n.style.top=0,n.style.height=0,n.style.overflow="hidden",n.style.fontFamily="arial, sans-serif",n.style.fontSize="20px",n.style.fontWeight="400",document.body.appendChild(n),r=n),r.innerText=t,r.offsetWidth),slug:i,permalink:s+i,date:Yl(e)}};function zl(e){return(0,h.get)(e,"editorContext.postType")}var $l=(0,Nc.createSelector)([zl],function(e){return"product"===e}),Zl=(0,Nc.createSelector)([zl],function(e){return["product_cat","product_tag"].includes(e)}),Ql=(0,Nc.createSelector)([$l,Zl],function(e,t){return e||t}),Xl=function(e){var t=(0,h.get)(e,"editorData.excerpt","");if(""===t){var n="ja"===R()?80:156;t=In((0,h.get)(e,"editorData.content",""),n)}return t},Jl=function(e){return(0,h.get)(e,"analysisData.snippet.title","")},eu=function(e){return(0,h.get)(e,"analysisData.snippet.description","")},tu=function(){return(0,h.get)(window,"wpseoScriptData.metabox.title_template","")},nu=function(){return(0,h.get)(window,"wpseoScriptData.metabox.title_template_no_fallback","")},ru=function(){return(0,h.get)(window,"wpseoScriptData.metabox.social_title_template","")},ou=function(){return(0,h.get)(window,"wpseoScriptData.metabox.metadesc_template","")},au=function(){return(0,h.get)(window,"wpseoScriptData.metabox.social_description_template","")},iu=function(e){var t="";return(0,h.get)(e,"snippetEditor.replacementVariables",[]).forEach(function(e){"excerpt"===e.name&&(t=e.value)}),t},su=function(e){return(0,h.get)(e,"facebookEditor.title","")},cu=function(e){return(0,h.get)(e,"facebookEditor.description","")},lu=(0,Nc.createSelector)([ru,Jl,nu,tu],function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.find(Boolean)||""}),uu=((0,Nc.createSelector)([su,lu],function(e,t){return e||t}),(0,Nc.createSelector)([au,eu,ou,iu,Xl],function(){for(var e,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return null!==(e=n.find(Boolean))&&void 0!==e?e:""})),pu=((0,Nc.createSelector)([cu,uu],function(e,t){return e||t}),function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return(0,h.get)(e,"preferences.".concat(t),n)}),du=function(e){return pu(e,"isWooCommerceActive",!1)},fu=function(e){return pu(e,"isWooCommerceSeoActive",!1)};(0,Nc.createSelector)([fu,du,Ql],function(e,t,n){return!e&&t&&n}),(0,Nc.createSelector)([fu,du,Zl],function(e,t,n){return!e&&t&&n}),(0,Nc.createSelector)([Ql,du],function(e,t){return t&&e});var mu=(0,Nc.createSelector)([ru,su,Jl,nu,tu],function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.find(Boolean)||""}),hu=((0,Nc.createSelector)([function(e){return(0,h.get)(e,"twitterEditor.title","")},mu],function(e,t){return e||t}),(0,Nc.createSelector)([au,cu,eu,ou,iu,Xl],function(){for(var e,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return null!==(e=n.find(Boolean))&&void 0!==e?e:""}));(0,Nc.createSelector)([function(e){return(0,h.get)(e,"twitterEditor.description","")},hu],function(e,t){return e||t}),Bc.selectAdminUrl,Bc.selectAdminLink,rl.selectLinkParams,rl.selectLinkParam,rl.selectLink,sl.selectPluginUrl,sl.selectImageLink;var gu=(0,Nc.createSelector)([function(e){return(0,h.get)(e,"settings.snippetEditor.baseUrl","")},ql],function(e,t){return e+t});const yu={name:"author_first_name",label:"Author first name",placeholder:"%%author_first_name%%",aliases:[],getReplacement:function(){return(0,h.get)(window,"wpseoScriptData.analysis.plugins.replaceVars.replace_vars.author_first_name","")},regexp:new RegExp("%%author_first_name%%","g")},vu={name:"author_last_name",label:"Author last name",placeholder:"%%author_last_name%%",aliases:[],getReplacement:function(){return(0,h.get)(window,"wpseoScriptData.analysis.plugins.replaceVars.replace_vars.author_last_name","")},regexp:new RegExp("%%author_last_name%%","g")},wu={name:"currentdate",label:"Current date",placeholder:"%%currentdate%%",aliases:[],getReplacement:function(){return(0,h.get)(window,"wpseoScriptData.analysis.plugins.replaceVars.replace_vars.currentdate","")},regexp:new RegExp("%%currentdate%%","g")},bu={name:"currentday",label:"Current day",placeholder:"%%currentday%%",aliases:[],getReplacement:function(){return(0,h.get)(window,"wpseoScriptData.analysis.plugins.replaceVars.replace_vars.currentday","")},regexp:new RegExp("%%currentday%%","g")},Ru={name:"currentmonth",label:"Current month",placeholder:"%%currentmonth%%",aliases:[],getReplacement:function(){return(0,h.get)(window,"wpseoScriptData.analysis.plugins.replaceVars.replace_vars.currentmonth","")},regexp:new RegExp("%%currentmonth%%","g")},Eu={name:"category",label:"Category",placeholder:"%%category%%",aliases:[],getReplacement:function(){return(0,h.get)(window,"wpseoScriptData.analysis.plugins.replaceVars.replace_vars.category","")},regexp:new RegExp("%%category%%","g")},_u={name:"category_title",label:"Category Title",placeholder:"%%category_title%%",aliases:[],getReplacement:function(){return(0,h.get)(window,"wpseoScriptData.analysis.plugins.replaceVars.replace_vars.category_title","")},regexp:new RegExp("%%category_title%%","g")},ku={name:"currentyear",label:"Current year",placeholder:"%%currentyear%%",aliases:[],getReplacement:function(){return(0,h.get)(window,"wpseoScriptData.analysis.plugins.replaceVars.replace_vars.currentyear","")},regexp:new RegExp("%%currentyear%%","g")},Su={name:"date",label:"Date",placeholder:"%%date%%",aliases:[],getReplacement:function(){return(0,h.get)(window,"wpseoScriptData.analysis.plugins.replaceVars.replace_vars.date","")},regexp:new RegExp("%%date%%","g")},xu={name:"excerpt",label:"Excerpt",placeholder:"%%excerpt%%",aliases:[{name:"excerpt_only",label:"Excerpt only",placeholder:"%%excerpt_only%%"}],getReplacement:function(){return(0,s.select)("yoast-seo/editor").getEditorDataExcerptWithFallback()},regexp:new RegExp("%%excerpt%%|%%excerpt_only%%","g")},Tu={name:"focuskw",label:"Focus keyphrase",placeholder:"%%focuskw%%",aliases:[],getReplacement:function(){return(0,s.select)("yoast-seo/editor").getFocusKeyphrase()},regexp:new RegExp("%%focuskw%%|%%keyword%%","g")},Ou={name:"id",label:"ID",placeholder:"%%id%%",aliases:[],getReplacement:function(){return(0,h.get)(window,"wpseoScriptData.analysis.plugins.replaceVars.replace_vars.id","")},regexp:new RegExp("%%id%%","g")},Pu={name:"modified",label:"Modified",placeholder:"%%modified%%",aliases:[],getReplacement:function(){return(0,h.get)(window,"wpseoScriptData.analysis.plugins.replaceVars.replace_vars.modified","")},regexp:new RegExp("%%modified%%","g")},Cu={name:"name",label:"Name",placeholder:"%%name%%",aliases:[],getReplacement:function(){return(0,h.get)(window,"wpseoScriptData.analysis.plugins.replaceVars.replace_vars.name","")},regexp:new RegExp("%%name%%","g")},Iu={name:"page",label:"Page",placeholder:"%%page%%",aliases:[],getReplacement:function(){return(0,h.get)(window,"wpseoScriptData.analysis.plugins.replaceVars.replace_vars.page","")},regexp:new RegExp("%%page%%","g")},Lu={name:"pagenumber",label:"Pagenumber",placeholder:"%%pagenumber%%",aliases:[],getReplacement:function(){return(0,h.get)(window,"wpseoScriptData.analysis.plugins.replaceVars.replace_vars.pagenumber","")},regexp:new RegExp("%%pagenumber%%","g")},ju={name:"pagetotal",label:"Pagetotal",placeholder:"%%pagetotal%%",aliases:[],getReplacement:function(){return(0,h.get)(window,"wpseoScriptData.analysis.plugins.replaceVars.replace_vars.pagetotal","")},regexp:new RegExp("%%pagetotal%%","g")},Au={name:"permalink",label:"Permalink",placeholder:"%%permalink%%",aliases:[],getReplacement:function(){return(0,h.get)(window,"wpseoScriptData.analysis.plugins.replaceVars.replace_vars.permalink","")},regexp:new RegExp("%%permalink%%","g")},Du={name:"post_content",label:"Post Content",placeholder:"%%post_content%%",aliases:[],getReplacement:function(){return(0,h.get)(window,"wpseoScriptData.analysis.plugins.replaceVars.replace_vars.post_content","")},regexp:new RegExp("%%post_content%%","g")},Fu={name:"post_day",label:"Post Day",placeholder:"%%post_day%%",aliases:[],getReplacement:function(){return(0,h.get)(window,"wpseoScriptData.analysis.plugins.replaceVars.replace_vars.post_day","")},regexp:new RegExp("%%post_day%%","g")},Mu={name:"post_month",label:"Post Month",placeholder:"%%post_month%%",aliases:[],getReplacement:function(){return(0,h.get)(window,"wpseoScriptData.analysis.plugins.replaceVars.replace_vars.post_month","")},regexp:new RegExp("%%post_month%%","g")},qu={name:"post_year",label:"Post Year",placeholder:"%%post_year%%",aliases:[],getReplacement:function(){return(0,h.get)(window,"wpseoScriptData.analysis.plugins.replaceVars.replace_vars.post_year","")},regexp:new RegExp("%%post_year%%","g")},Nu={name:"pt_plural",label:"Post type (plural)",placeholder:"%%pt_plural%%",aliases:[],getReplacement:function(){return(0,h.get)(window,"wpseoScriptData.analysis.plugins.replaceVars.replace_vars.pt_plural","")},regexp:new RegExp("%%pt_plural%%","g")},Uu={name:"pt_single",label:"Post type (singular)",placeholder:"%%pt_single%%",aliases:[],getReplacement:function(){return(0,h.get)(window,"wpseoScriptData.analysis.plugins.replaceVars.replace_vars.pt_single","")},regexp:new RegExp("%%pt_single%%","g")},Wu={name:"primary_category",label:"Primary category",placeholder:"%%primary_category%%",aliases:[],getReplacement:function(){return(0,h.get)(window,"wpseoScriptData.analysis.plugins.replaceVars.replace_vars.primary_category","")},regexp:new RegExp("%%primary_category%%","g")},Bu={name:"searchphrase",label:"Search phrase",placeholder:"%%searchphrase%%",aliases:[],getReplacement:function(){return(0,h.get)(window,"wpseoScriptData.analysis.plugins.replaceVars.replace_vars.searchphrase","")},regexp:new RegExp("%%searchphrase%%","g")},Ku={name:"sep",label:"Separator",placeholder:"%%sep%%",aliases:[],getReplacement:function(){return(0,h.get)(window,"wpseoScriptData.analysis.plugins.replaceVars.replace_vars.sep","")},regexp:new RegExp("%%sep%%(\\s*%%sep%%)*","g")},Hu={name:"sitedesc",label:"Tagline",placeholder:"%%sitedesc%%",aliases:[],getReplacement:function(){return(0,h.get)(window,"wpseoScriptData.analysis.plugins.replaceVars.replace_vars.sitedesc","")},regexp:new RegExp("%%sitedesc%%","g")},Gu={name:"sitename",label:"Site title",placeholder:"%%sitename%%",aliases:[],getReplacement:function(){return(0,h.get)(window,"wpseoScriptData.analysis.plugins.replaceVars.replace_vars.sitename","")},regexp:new RegExp("%%sitename%%","g")},Yu={name:"tag",label:"Tag",placeholder:"%%tag%%",aliases:[],getReplacement:function(){return(0,h.get)(window,"wpseoScriptData.analysis.plugins.replaceVars.replace_vars.tag","")},regexp:new RegExp("%%tag%%","g")},Vu={name:"term404",label:"Term404",placeholder:"%%term404%%",aliases:[],getReplacement:function(){return(0,h.get)(window,"wpseoScriptData.analysis.plugins.replaceVars.replace_vars.term404","")},regexp:new RegExp("%%term404%%","g")},zu={name:"term_description",label:"Term description",placeholder:"%%term_description%%",aliases:[{name:"tag_description",label:"Tag description",placeholder:"%%tag_description%%"},{name:"category_description",label:"Category description",placeholder:"%%category_description%%"}],getReplacement:function(){return(0,h.get)(window,"YoastSEO.app.rawData.text","")},regexp:new RegExp("%%term_description%%|%%tag_description%%|%%category_description%%","g")},$u={name:"term_hierarchy",label:"Term hierarchy",placeholder:"%%term_hierarchy%%",aliases:[],getReplacement:function(){return(0,h.get)(window,"wpseoScriptData.analysis.plugins.replaceVars.replace_vars.term_hierarchy","")},regexp:new RegExp("%%term_hierarchy%%","g")},Zu={name:"term_title",label:"Term title",placeholder:"%%term_title%%",aliases:[],getReplacement:function(){return(0,h.get)(window,"wpseoScriptData.analysis.plugins.replaceVars.replace_vars.term_title","")},regexp:new RegExp("%%term_title%%","g")},Qu={name:"title",label:"Title",placeholder:"%%title%%",aliases:[],getReplacement:function(){return(0,s.select)("yoast-seo/editor").getEditorDataTitle()},regexp:new RegExp("%%title%%","g")},Xu={name:"user_description",label:"User description",placeholder:"%%user_description%%",aliases:[],getReplacement:function(){return(0,h.get)(window,"wpseoScriptData.analysis.plugins.replaceVars.replace_vars.user_description","")},regexp:new RegExp("%%user_description%%","g")};var Ju={source:"wpseoScriptData.analysis.plugins.replaceVars",scope:[],aliases:[]},ep=function(e,t,n){this.placeholder=e,this.replacement=t,this.options=(0,h.defaults)(n,Ju)};ep.prototype.getPlaceholder=function(e){return(e=e||!1)&&this.hasAlias()?this.placeholder+"|"+this.getAliases().join("|"):this.placeholder},ep.prototype.setSource=function(e){this.options.source=e},ep.prototype.hasScope=function(){return!(0,h.isEmpty)(this.options.scope)},ep.prototype.addScope=function(e){this.hasScope()||(this.options.scope=[]),this.options.scope.push(e)},ep.prototype.inScope=function(e){return!this.hasScope()||(0,h.indexOf)(this.options.scope,e)>-1},ep.prototype.hasAlias=function(){return!(0,h.isEmpty)(this.options.aliases)},ep.prototype.addAlias=function(e){this.hasAlias()||(this.options.aliases=[]),this.options.aliases.push(e)},ep.prototype.getAliases=function(){return this.options.aliases};const tp=ep;var np="replaceVariablePlugin",rp=null,op=null,ap=function(e){["content","title","snippet_title","snippet_meta","primary_category","data_page_title","data_meta_desc","excerpt"].forEach(function(t){j(t,e,np,10)})},ip=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";switch(""===e&&(e=(0,h.get)(window,"wpseoScriptData.analysis.plugins.replaceVars.scope","")),e){case"post":case"page":return["authorFirstName","authorLastName","category","categoryTitle","currentDate","currentDay","currentMonth","currentYear","date","excerpt","id","focusKeyphrase","modified","name","page","primaryCategory","pageNumber","pageTotal","permalink","postContent","postDay","postMonth","postYear","postTypeNamePlural","postTypeNameSingular","searchPhrase","separator","siteDescription","siteName","tag","title","userDescription"]}return[]},sp=function(e){return ap(function(t){return t.replace(new RegExp(e.placeholder,"g"),e.replacement)})},cp=function(){if(null===op){op=[];var e=(0,h.get)(window,"wpseoScriptData.analysis.plugins.replaceVars.hidden_replace_vars",[]);(null===rp&&(rp=ip().map(function(e){return null==i?void 0:i[e]}).filter(Boolean)),rp).forEach(function(t){var n=e.includes(t.name);op.push({name:t.name,label:t.label,value:t.placeholder,hidden:n}),t.aliases.forEach(function(e){op.push({name:e.name,label:e.label,value:e.placeholder,hidden:n})})})}return op};function lp(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function up(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?lp(Object(n),!0).forEach(function(t){d(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):lp(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function pp(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function dp(e){var t=g.languageProcessing.imageInText(e);if(0===t.length)return"";var n,r=function(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return pp(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?pp(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var _n=0,r=function(){};return{s:r,n:function(){return _n>=e.length?{done:!0}:{done:!1,value:e[_n++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,i=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){i=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(i)throw o}}}}(jQuery.parseHTML(t.join("")));try{for(r.s();!(n=r.n()).done;){var o=n.value;if(o.src)return o.src}}catch(e){r.e(e)}finally{r.f()}return""}var fp={content:"",title:"",excerpt:"",slug:"",imageUrl:"",featuredImage:"",contentImage:"",excerptOnly:""};function mp(e){return mfn.featured_image||dp(e)}function hp(e){var t="";return arguments.length>1&&void 0!==arguments[1]&&arguments[1]?t||"":(t||(t=In(e,"ja"===R()?80:156)),t)}function gp(){if(mfn.content_html(),["standard","post","page","portfolio","product"].includes(mfn.builder_type)&&!(0,s.select)("yoast-seo/editor").getActiveMarker()){var e=(t=function(){var e=[];return mfn.content_html().find(".mfn-builder-active .mcb-column-inner").each(function(t,n){var r=n.innerHTML.replace(/[\n\t]/g,"").trim();e.push(r)}),e.join("")}(),n=mfn.featured_image||"",r=dp(t),{content:t,title:mfn.view_title,excerpt:"",excerptOnly:hp(t,!0),imageUrl:mp(t),featuredImage:n,contentImage:r,status:mfn.post_status});e.content!==fp.content&&(fp.content=e.content,(0,s.dispatch)("yoast-seo/editor").setEditorDataContent(fp.content)),e.title!==fp.title&&(fp.title=e.title,(0,s.dispatch)("yoast-seo/editor").setEditorDataTitle(fp.title),"draft"!==e.status&&"auto-draft"!==e.status||(0,s.dispatch)("yoast-seo/editor").updateData({slug:cleanForSlug(fp.title)})),e.excerpt!==fp.excerpt&&(fp.excerpt=e.excerpt,(0,s.dispatch)("yoast-seo/editor").setEditorDataExcerpt(fp.excerpt)),e.imageUrl!==fp.imageUrl&&(fp.imageUrl=e.imageUrl,(0,s.dispatch)("yoast-seo/editor").setEditorDataImageUrl(fp.imageUrl))}var t,n,r}function yp(e,t){var n=(0,s.dispatch)("yoast-seo/editor").updateWordsToHighlight;e("morphology",new g.Paper("",{keyword:t})).then(function(e){var t=e.result.keyphraseForms;n((0,h.uniq)((0,h.flatten)(t)))}).catch(function(){n([])})}var vp=(0,h.debounce)(yp,500),wp=jQuery;function bp(e,t,n,r,o){this._scriptUrl=r,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=wp("#post_ID, [name=tag_ID]").val(),this._taxonomy=wp("[name=taxonomy]").val()||"",this._nonce=o,this._ajaxAction=e,this._refreshAnalysis=n,this._initialized=!1}function Rp(){var n,l,u,p,d,f,m,w,S,x,T,O;"template"!=(null===(n=mfn)||void 0===n?void 0:n.post_type)&&(window.YoastSEO=window.YoastSEO||{},window.YoastSEO.store=(l=(0,s.combineReducers)(v.reducers),p=!1,d=!1,f={snapshotReducer:function(){return p?(p=!1,u):l(arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0,arguments.length>1?arguments[1]:void 0)},takeSnapshot:function(e,t){t({type:"CREATE_SNAPSHOT"}),u=(0,h.cloneDeep)(e()),d=!0},restoreSnapshot:function(e){d&&(p=!0,e({type:"RESTORE_SNAPSHOT"}))}},m=f.takeSnapshot,w=f.restoreSnapshot,S=function(e){var t=!1,n=null;return{freezeReducer:function(){return t?n:e(arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0,arguments.length>1?arguments[1]:void 0)},toggleFreeze:function(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:!t;n=r?(0,h.cloneDeep)(e()):null,t=Boolean(r)}}}(f.snapshotReducer),x=S.freezeReducer,T=S.toggleFreeze,function(e){e.dispatch(v.actions.loadCornerstoneContent()),e.dispatch(v.actions.loadFocusKeyword()),e.dispatch(v.actions.setMarkerStatus(window.wpseoScriptData.metabox.elementorMarkerStatus)),e.dispatch(v.actions.setSettings({socialPreviews:{sitewideImage:window.wpseoScriptData.sitewideSocialImage,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}}));var t=window.wpseoScriptData.metabox.showSocial,n=t.facebook,r=t.twitter;n&&e.dispatch(v.actions.loadFacebookPreviewData()),r&&e.dispatch(v.actions.loadTwitterPreviewData()),e.dispatch(v.actions.setSEMrushChangeCountry(window.wpseoScriptData.metabox.countryCode)),e.dispatch(v.actions.setSEMrushLoginStatus(window.wpseoScriptData.metabox.SEMrushLoginStatus)),e.dispatch(v.actions.setWincherLoginStatus(window.wpseoScriptData.metabox.wincherLoginStatus,!1)),e.dispatch(v.actions.setWincherWebsiteId(window.wpseoScriptData.metabox.wincherWebsiteId)),e.dispatch(v.actions.setWincherAutomaticKeyphaseTracking(window.wpseoScriptData.metabox.wincherAutoAddKeyphrases)),e.dispatch(v.actions.setDismissedAlerts((0,h.get)(window,"wpseoScriptData.dismissedAlerts",{}))),e.dispatch(v.actions.setCurrentPromotions((0,h.get)(window,"wpseoScriptData.currentPromotions",{}))),e.dispatch(v.actions.setIsPremium(Boolean((0,h.get)(window,"wpseoScriptData.metabox.isPremium",!1)))),e.dispatch(v.actions.setAdminUrl((0,h.get)(window,"wpseoScriptData.adminUrl",""))),e.dispatch(v.actions.setLinkParams((0,h.get)(window,"wpseoScriptData.linkParams",{}))),e.dispatch(v.actions.setPluginUrl((0,h.get)(window,"wpseoScriptData.pluginUrl",""))),e.dispatch(v.actions.setWistiaEmbedPermissionValue("1"===(0,h.get)(window,"wpseoScriptData.wistiaEmbedPermission",!1)));var o=document.getElementById("yoast_wpseo_slug");o&&e.dispatch(v.actions.setEditorDataSlug(o.value))}(O=(0,s.registerStore)("yoast-seo/editor",{reducer:x,selectors:up(up(up(up({},v.selectors),o),r),a),actions:(0,h.pickBy)(up(up({},v.actions),t),function(e){return"function"==typeof e}),controls:e,initialState:{snippetEditor:up(up({},{mode:"mobile",data:{title:"",description:"",slug:""},wordsToHighlight:[],replacementVariables:[{name:"date",label:(0,Ke.__)("Date","wordpress-seo"),value:""},{name:"id",label:(0,Ke.__)("ID","wordpress-seo"),value:""},{name:"page",label:(0,Ke.__)("Page","wordpress-seo"),value:""},{name:"searchphrase",label:(0,Ke.__)("Search phrase","wordpress-seo"),value:""},{name:"sitedesc",label:(0,Ke.__)("Tagline","wordpress-seo"),value:""},{name:"sitename",label:(0,Ke.__)("Site title","wordpress-seo"),value:""},{name:"category",label:(0,Ke.__)("Category","wordpress-seo"),value:""},{name:"focuskw",label:(0,Ke.__)("Focus keyphrase","wordpress-seo"),value:""},{name:"title",label:(0,Ke.__)("Title","wordpress-seo"),value:""},{name:"parent_title",label:(0,Ke.__)("Parent title","wordpress-seo"),value:""},{name:"excerpt",label:(0,Ke.__)("Excerpt","wordpress-seo"),value:""},{name:"primary_category",label:(0,Ke.__)("Primary category","wordpress-seo"),value:""},{name:"sep",label:(0,Ke.__)("Separator","wordpress-seo"),value:""},{name:"excerpt_only",label:(0,Ke.__)("Excerpt only","wordpress-seo"),value:""},{name:"category_description",label:(0,Ke.__)("Category description","wordpress-seo"),value:""},{name:"tag_description",label:(0,Ke.__)("Tag description","wordpress-seo"),value:""},{name:"term_description",label:(0,Ke.__)("Term description","wordpress-seo"),value:""},{name:"currentyear",label:(0,Ke.__)("Current year","wordpress-seo"),value:""}],uniqueRefreshValue:"",templates:{title:"",description:""},isLoading:!0}),{},{replacementVariables:cp()})}})),O._freeze=T.bind(null,O.getState),O._takeSnapshot=m.bind(null,O.getState,O.dispatch),O._restoreSnapshot=w.bind(null,O.dispatch),O),jQuery(document).on("click",".mfn-yoast-tab",gp),window.YoastSEO.pluginReady=I,window.YoastSEO.pluginReloaded=L,window.YoastSEO.registerModification=j,window.YoastSEO.registerPlugin=A,window.YoastSEO.applyModifications=D,window.YoastSEO.analysis=window.YoastSEO.analysis||{},window.YoastSEO.analysis.run=(0,s.dispatch)("yoast-seo/editor").runAnalysis,window.YoastSEO.analysis.worker=function(){var e=(0,s.select)("yoast-seo/editor"),t=e.getAnalysisTimestamp,n=e.isCornerstoneContent,r=function(){var e=(0,h.get)(window,["wpseoScriptData","analysis","worker","url"],"analysis-worker.js"),t=(0,g.createWorker)(e),n=(0,h.get)(window,["wpseoScriptData","analysis","worker","dependencies"],[]),r=[];for(var o in n)if(Object.prototype.hasOwnProperty.call(n,o)){var a=window.document.getElementById("".concat(o,"-js-translations"));if(a){var i=a.innerHTML.slice(214),s=i.indexOf(","),c=i.slice(0,s-1);try{var l=/}}\s*\);/.exec(i).index+2,u=JSON.parse(i.slice(s+1,l));r.push([c,u])}catch(e){console.warn("Failed to parse translation data for ".concat(o," to send to the Yoast SEO worker"));continue}}}return t.postMessage({dependencies:n,translations:r}),new g.AnalysisWorkerWrapper(t)}();r.initialize(function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n={locale:R(),contentAnalysisActive:(e=b(),!0===(0,h.get)(e,"contentAnalysisActive",!1)),keywordAnalysisActive:E(),inclusiveLanguageAnalysisActive:_(),defaultQueryParams:(0,h.get)(window,["wpseoAdminL10n","default_query_params"],{}),logLevel:(0,h.get)(window,["wpseoScriptData","analysis","worker","log_level"],"ERROR"),enabledFeatures:(0,k.enabledFeatures)()};return(0,h.merge)(n,t)}({useCornerstone:n(),marker:pe()})).catch(y),window.YoastSEO.analysis.applyMarks=function(e,t){return pe()(e,t)};var o=we(),a=n(),i=t();return(0,s.subscribe)(function(){var e=n(),s=we(),c=t();if(e!==a)return a=e,o=s,void r.initialize({useCornerstone:e}).then(function(){return ve(r,s)}).catch(y);c===i&&!1!==(0,h.isEqual)(s,o)||(o=s,i=c,ve(r,s))}),r}(),window.YoastSEO.analysis.collectData=we,A(np,{status:"ready"}),ip().forEach(function(e){var t,n,r,o=null==i?void 0:i[e];if(o){var a=(n=(t=o).getReplacement,r=t.regexp,function(e){return e.replace(r,n())});ap(a)}}),window.YoastSEO.wp=window.YoastSEO.wp||{},window.YoastSEO.wp.replaceVarsPlugin={addReplacement:sp,ReplaceVar:tp},function(){var e=b(),t=(0,h.get)(window,["wpseoScriptData","analysis","worker","keywords_assessment_url"],"used-keywords-assessment.js"),n=(0,h.get)(window,["wpseoScriptData","usedKeywordsNonce"],""),r=new bp("get_focus_keyword_usage_and_post_types",e,(0,s.dispatch)("yoast-seo/editor").runAnalysis,t,n);r.init();var o="";(0,s.subscribe)(function(){var e=(0,s.select)("yoast-seo/editor").getFocusKeyphrase();e!==o&&(o=e,r.setKeyword(e))})}(),function(){if((0,s.select)("yoast-seo/editor").getPreference("isInsightsEnabled",!1))(0,s.dispatch)("yoast-seo/editor").loadEstimatedReadingTime(),(0,s.subscribe)((0,h.debounce)(be(),1500,{maxWait:3e3}))}(),function(e){var t=(0,s.select)("yoast-seo/editor").getFocusKeyphrase,n=t();console.log({highlight:t}),yp(e,n),(0,s.subscribe)(function(){var r=t();n!==r&&(n=r,vp(e,r))})}(window.YoastSEO.analysis.worker.runResearch),qc(),(0,c.doAction)("yoast.elementor.loaded"),(0,c.doAction)("yoast.betheme.loaded"))}bp.prototype.init=function(){var e=this,t=window.YoastSEO.analysis.worker;this.requestKeywordUsage=(0,h.debounce)(this.requestKeywordUsage.bind(this),500),t.loadScript(this._scriptUrl).then(function(){t.sendMessage("initialize",e._options,"used-keywords-assessment")}).then(function(){e._initialized=!0,(0,h.isEqual)(e._options.usedKeywords,e._keywordUsage)?e._refreshAnalysis():t.sendMessage("updateKeywordUsage",e._keywordUsage,"used-keywords-assessment").then(function(){return e._refreshAnalysis()})}).catch(function(e){return console.error(e)})},bp.prototype.setKeyword=function(e){(0,h.has)(this._keywordUsage,e)||this.requestKeywordUsage(e)},bp.prototype.requestKeywordUsage=function(e){wp.post(ajaxurl,{action:this._ajaxAction,post_id:this._postID,keyword:e,taxonomy:this._taxonomy,nonce:this._nonce},this.updateKeywordUsage.bind(this,e),"json")},bp.prototype.updateKeywordUsage=function(e,t){var n=this,r=window.YoastSEO.analysis.worker,o=t.keyword_usage,a=t.post_types;o&&(0,h.isArray)(o)&&(this._keywordUsage[e]=o,this._usedKeywordsPostTypes[e]=a,this._initialized&&r.sendMessage("updateKeywordUsage",{usedKeywords:this._keywordUsage,usedKeywordsPostTypes:this._usedKeywordsPostTypes},"used-keywords-assessment").then(function(){return n._refreshAnalysis()}))},jQuery(window).on("be:init",function(){setTimeout(Rp,100)})})()})();

https://t.me/RX1948 - 2025