Commit c5dd4cbd authored by Simon's avatar Simon

release 1.19.0

parent 93fd2639
......@@ -20,9 +20,9 @@
## Production
- build CSS & JS assets - `C:\web\dev.biuro\ npm run build`
- build new image `docker build -t biuro/web:1.18.0 .` (update version number)
- build new image `docker build -t biuro/web:1.19.0 .` (update version number)
- login to biuro docker account `docker login --username=biuro --password=9Ndtjd2vKsLvGuFOeFq1KdJs`
- push image to docker repository - `docker push biuro/web:1.18.0`
- push image to docker repository - `docker push biuro/web:1.19.0`
## Production
- update biuro/web image version in .env file (staging or www)
......
......@@ -15,14 +15,14 @@ class WPSEO_Gutenberg_Compatibility {
*
* @var string
*/
const CURRENT_RELEASE = '8.3.0';
const CURRENT_RELEASE = '8.4.0';
/**
* The minimally supported version of Gutenberg by the plugin.
*
* @var string
*/
const MINIMUM_SUPPORTED = '8.3.0';
const MINIMUM_SUPPORTED = '8.4.0';
/**
* Holds the current version.
......
......@@ -6,8 +6,6 @@
*/
use Yoast\WP\SEO\Context\Meta_Tags_Context;
use Yoast\WP\SEO\Memoizers\Meta_Tags_Context_Memoizer;
use Yoast\WP\SEO\Repositories\Indexable_Repository;
/**
* Class WPSEO_Meta_Columns.
......@@ -91,8 +89,6 @@ class WPSEO_Meta_Columns {
// Page list returns an array of post IDs.
$post_ids = array_keys( $posts );
}
$this->set_context_for_post_ids( $post_ids );
}
/**
......@@ -150,15 +146,11 @@ class WPSEO_Meta_Columns {
return;
case 'wpseo-title':
$context = $this->get_context_for_post_id( $post_id );
$title = apply_filters( 'wpseo_title', $context->title, $context->presentation );
echo esc_html( $title );
echo esc_html( YoastSEO()->meta->for_post( $post_id )->title );
return;
case 'wpseo-metadesc':
$context = $this->get_context_for_post_id( $post_id );
$metadesc_val = apply_filters( 'wpseo_metadesc', $context->description, $context->presentation );
$metadesc_val = YoastSEO()->meta->for_post( $post_id )->meta_description;
if ( $metadesc_val === '' ) {
echo '<span aria-hidden="true">&#8212;</span><span class="screen-reader-text">',
......@@ -774,56 +766,4 @@ class WPSEO_Meta_Columns {
return WPSEO_Post_Type::is_post_type_accessible( $screen->post_type );
}
/**
* Sets the meta tags context for each post id.
*
* @param array $post_ids The post ids to get the context for.
*/
protected function set_context_for_post_ids( $post_ids ) {
if ( empty( $post_ids ) ) {
return;
}
/**
* Makes sure autocompletion works.
*
* @var Meta_Tags_Context_Memoizer $context_memoizer The context memoizer.
* @var Indexable_Repository $indexable_repository The indexable_repository.
*/
$context_memoizer = YoastSEO()->classes->get( Meta_Tags_Context_Memoizer::class );
$indexable_repository = YoastSEO()->classes->get( Indexable_Repository::class );
$indexables = $indexable_repository
->query()
->where_in( 'object_id', $post_ids )
->find_many();
foreach ( $indexables as $indexable ) {
$this->context[ $indexable->object_id ] = $context_memoizer->get( $indexable, 'Post_Type' );
}
}
/**
* Retrieves the indexable for the given post id.
*
* @param int $post_id The post_id.
*
* @return Meta_Tags_Context
*/
protected function get_context_for_post_id( $post_id ) {
if ( ! isset( $this->context[ $post_id ] ) ) {
$context_memoizer = YoastSEO()->classes->get( Meta_Tags_Context_Memoizer::class );
$indexable_repository = YoastSEO()->classes->get( Indexable_Repository::class );
$indexable = $indexable_repository->find_by_id_and_type( $post_id, 'post' );
if ( ! $indexable ) {
return null;
}
$this->context[ $post_id ] = $context_memoizer->get( $indexable, 'Post_Type' );
}
return $this->context[ $post_id ];
}
}
......@@ -29,8 +29,6 @@ class WPSEO_Configuration_Storage {
*/
public function add_default_fields() {
$fields = [
new WPSEO_Config_Field_Upsell_Configuration_Service(),
new WPSEO_Config_Field_Upsell_Site_Review(),
new WPSEO_Config_Field_Success_Message(),
new WPSEO_Config_Field_Mailchimp_Signup(),
new WPSEO_Config_Field_Environment(),
......
<?php
/**
* WPSEO plugin file.
*
* @package WPSEO\Admin\ConfigurationUI
*/
/**
* Class WPSEO_Config_Field_Upsell_Configuration_Service.
*/
class WPSEO_Config_Field_Upsell_Configuration_Service extends WPSEO_Config_Field {
/**
* HTML tags allowed in the upsell text.
*
* @var array
*/
private $allowed_html = [
'a' => [
'href' => [],
'target' => [ '_blank' ],
],
];
/**
* WPSEO_Config_Field_Upsell_Configuration_Service constructor.
*/
public function __construct() {
parent::__construct( 'upsellConfigurationService', 'HTML' );
$intro_text = sprintf(
/* translators: %1$s expands to Yoast SEO. */
__( 'Welcome to the %1$s configuration wizard. In a few simple steps we\'ll help you configure your SEO settings to match your website\'s needs!', 'wordpress-seo' ),
'Yoast SEO'
);
$upsell_text = sprintf(
/* Translators: %1$s expands to Yoast SEO, %2$s expands to Yoast SEO Premium, %3$s opens the link, %4$s closes the link. */
__( 'While we strive to make setting up %1$s as easy as possible, we understand it can be daunting. If you’d rather have us set up %1$s for you (and get a copy of %2$s in the process), order our %3$s%1$s configuration service%4$s here!', 'wordpress-seo' ),
'Yoast SEO',
'Yoast SEO Premium',
'<a target="_blank" href="' . WPSEO_Shortlinker::get( 'https://yoa.st/configuration-package' ) . '">',
'</a>'
);
$html = '<p>' . esc_html( $intro_text ) . '</p>';
$html .= '<p><em>' . wp_kses( $upsell_text, $this->allowed_html ) . '</em></p>';
$this->set_property( 'html', $html );
}
}
<?php
/**
* WPSEO plugin file.
*
* @package WPSEO\Admin\ConfigurationUI
*/
/**
* Class WPSEO_Config_Field_Upsell_Site_Review.
*/
class WPSEO_Config_Field_Upsell_Site_Review extends WPSEO_Config_Field {
/**
* HTML tags allowed in the upsell site review text.
*
* @var array
*/
private $allowed_html = [
'a' => [
'href' => [],
'target' => [ '_blank' ],
],
];
/**
* WPSEO_Config_Field_Upsell_Site_Review constructor.
*/
public function __construct() {
parent::__construct( 'upsellSiteReview', 'HTML' );
$upsell_text = sprintf(
/* translators: %1$s will be a link to a review explanation page. Text between %2$s and %3$s will be a link to an SEO copywriting course page. */
__( 'If you want more help creating awesome content, check out our %2$sSEO copywriting course%3$s. Do you want to know all about the features of the plugin, consider doing our %1$s!', 'wordpress-seo' ),
'<a href="' . WPSEO_Shortlinker::get( 'https://yoa.st/yoastseotraining' ) . '" target="_blank">Yoast SEO for WordPress training</a>',
'<a href="' . WPSEO_Shortlinker::get( 'https://yoa.st/configuration-wizard-copywrite-course-link' ) . '" target="_blank">',
'</a>'
);
$html = '<p>' . wp_kses( $upsell_text, $this->allowed_html ) . '</p>';
$this->set_property( 'html', $html );
}
}
......@@ -158,6 +158,7 @@ class WPSEO_Tracking_Settings_Data implements WPSEO_Collection {
'youtube_url',
'wikipedia_url',
'fbadminapp',
'indexables_indexation_completed',
];
/**
......@@ -186,6 +187,7 @@ class WPSEO_Tracking_Settings_Data implements WPSEO_Collection {
* Anonimizes the WPSEO_Options array by replacing all $anonymous_settings values to 'used'.
*
* @param array $settings The settings.
*
* @return array The anonymized settings.
*/
private function anonymize_settings( $settings ) {
......@@ -194,6 +196,7 @@ class WPSEO_Tracking_Settings_Data implements WPSEO_Collection {
$settings[ $setting ] = 'used';
}
}
return $settings;
}
}
......@@ -6,6 +6,7 @@
*/
use Yoast\WP\Lib\Model;
use Yoast\WP\SEO\Integrations\Admin\Indexation_Integration;
/**
* This code handles the option upgrades.
......@@ -58,6 +59,7 @@ class WPSEO_Upgrade {
'14.0.3-RC0' => 'upgrade_1403',
'14.1-RC0' => 'upgrade_141',
'14.2-RC0' => 'upgrade_142',
'14.5-RC0' => 'upgrade_145',
];
array_walk( $routines, [ $this, 'run_upgrade_routine' ], $version );
......@@ -770,6 +772,27 @@ class WPSEO_Upgrade {
add_action( 'init', [ $this, 'remove_acf_notification_for_142' ] );
}
/**
* Performs the 14.5 upgrade.
*/
private function upgrade_145() {
add_action( 'init', [ $this, 'set_indexation_completed_option_for_145' ] );
}
/**
* Checks if the indexable indexation is completed.
* If so, sets the `indexables_indexation_completed` option to `true`,
* else to `false`.
*/
public function set_indexation_completed_option_for_145() {
/**
* @var Indexation_Integration
*/
$indexation_integration = YoastSEO()->classes->get( Indexation_Integration::class );
WPSEO_Options::set( 'indexables_indexation_completed', $indexation_integration->get_total_unindexed() === 0 );
}
/**
* Cleans up the private taxonomies from the indexables table for the upgrade routine to 14.1.
*/
......
......@@ -31,6 +31,7 @@ class WPSEO_Option_Wpseo extends WPSEO_Option {
'ignore_indexation_warning' => false,
'indexation_warning_hide_until' => false,
'indexation_started' => false,
'indexables_indexation_completed' => false,
// Non-form field, should only be set via validation routine.
'version' => '', // Leave default as empty to ensure activation/upgrade works.
'previous_version' => '',
......@@ -133,6 +134,13 @@ class WPSEO_Option_Wpseo extends WPSEO_Option {
protected function __construct() {
parent::__construct();
/**
* Filter: 'wpseo_enable_tracking' - Enables the data tracking of Yoast SEO Premium.
*
* @api string $is_enabled The enabled state. Default is false.
*/
$this->defaults['tracking'] = apply_filters( 'wpseo_enable_tracking', false );
/* Clear the cache on update/add. */
add_action( 'add_option_' . $this->option_name, [ 'WPSEO_Utils', 'clear_cache' ] );
add_action( 'update_option_' . $this->option_name, [ 'WPSEO_Utils', 'clear_cache' ] );
......@@ -321,6 +329,7 @@ class WPSEO_Option_Wpseo extends WPSEO_Option {
* 'enable_headless_rest_endpoints'
* 'yoast_tracking'
*/
case 'tracking':
default:
$clean[ $key ] = ( isset( $dirty[ $key ] ) ? WPSEO_Utils::validate_bool( $dirty[ $key ] ) : false );
break;
......
(window.yoastWebpackJsonp=window.yoastWebpackJsonp||[]).push([[11],{455:function(o,t,a){"use strict";!function(o){function t(o,t,a){jQuery.post(ajaxurl,{action:"wpseo_set_ignore",option:o,_wpnonce:a},function(a){a&&(jQuery("#"+t).hide(),jQuery("#hidden_ignore_"+o).val("ignore"))})}function a(){o("#wp-admin-bar-root-default > li").off("mouseenter.yoastalertpopup mouseleave.yoastalertpopup"),o(".yoast-issue-added").fadeOut(200)}function n(t,a){if(o(".yoast-notification-holder").off("click",".restore").off("click",".dismiss"),void 0!==a.html){a.html&&(t.closest(".yoast-container").html(a.html),s());var n=o("#wp-admin-bar-wpseo-menu"),e=n.find(".yoast-issue-counter");e.length||(n.find("> a:first-child").append('<div class="yoast-issue-counter"/>'),e=n.find(".yoast-issue-counter")),e.html(a.total),0===a.total?e.hide():e.show(),o("#toplevel_page_wpseo_dashboard .update-plugins").removeClass().addClass("update-plugins count-"+a.total),o("#toplevel_page_wpseo_dashboard .plugin-count").html(a.total)}}function s(){var t=o(".yoast-notification-holder");t.on("click",".dismiss",function(){var t=o(this),a=t.closest(".yoast-notification-holder");t.closest(".yoast-container").append('<div class="yoast-container-disabled"/>'),o.post(ajaxurl,{action:"yoast_dismiss_notification",notification:a.attr("id"),nonce:a.data("nonce"),data:a.data("json")},n.bind(this,a),"json")}),t.on("click",".restore",function(){var t=o(this),a=t.closest(".yoast-notification-holder");t.closest(".yoast-container").append('<div class="yoast-container-disabled"/>'),o.post(ajaxurl,{action:"yoast_restore_notification",notification:a.attr("id"),nonce:a.data("nonce"),data:a.data("json")},n.bind(this,a),"json")})}function e(o){o.is(":hidden")||(o.outerWidth()>o.parent().outerWidth()?(o.data("scrollHint").addClass("yoast-has-scroll"),o.data("scrollContainer").addClass("yoast-has-scroll")):(o.data("scrollHint").removeClass("yoast-has-scroll"),o.data("scrollContainer").removeClass("yoast-has-scroll")))}function i(){window.wpseoScrollableTables=o(".yoast-table-scrollable"),window.wpseoScrollableTables.length&&window.wpseoScrollableTables.each(function(){var t=o(this);if(!t.data("scrollContainer")){var a=o("<div />",{class:"yoast-table-scrollable__hintwrapper",html:"<span class='yoast-table-scrollable__hint' aria-hidden='true' />"}).insertBefore(t),n=o("<div />",{class:"yoast-table-scrollable__container",html:"<div class='yoast-table-scrollable__inner' />"}).insertBefore(t);a.find(".yoast-table-scrollable__hint").text(wpseoAdminGlobalL10n.scrollable_table_hint),t.data("scrollContainer",n),t.data("scrollHint",a),t.appendTo(n.find(".yoast-table-scrollable__inner")),e(t)}})}jQuery(document).ready(function(){if(void 0!==window.wpseoConsoleNotifications&&"undefined"!=typeof console)for(var o=0;o<wpseoConsoleNotifications.length;o++)console.warn(wpseoConsoleNotifications[o])}),jQuery(document).ready(function(){jQuery(".yoast-dismissible").on("click",".yoast-notice-dismiss",function(){var o=jQuery(this).parent();return jQuery.post(ajaxurl,{action:o.attr("id").replace(/-/g,"_"),_wpnonce:o.data("nonce"),data:o.data("json")}),jQuery.post(ajaxurl,{action:"yoast_dismiss_notification",notification:o.attr("id"),nonce:o.data("nonce"),data:o.data("json")}),o.fadeTo(100,0,function(){o.slideUp(100,function(){o.remove()})}),!1}),jQuery(".yoast-help-button").on("click",function(){var o=jQuery(this),t=jQuery("#"+o.attr("aria-controls")),a=t.is(":visible");jQuery(t).slideToggle(200,function(){o.attr("aria-expanded",!a)})}),jQuery("#robotsmessage button").on("click",function(){t("search_engines_discouraged_notice","robotsmessage",jQuery(this).data("nonce"))})}),window.wpseoSetIgnore=t,window.wpseoDismissLink=function(o){return jQuery('<a href="'+o+'" type="button" class="notice-dismiss"><span class="screen-reader-text">Dismiss this notice.</span></a>')},o(window).on("wp-window-resized orientationchange",function(){window.wpseoScrollableTables&&window.wpseoScrollableTables.length&&function(t){t.each(function(){e(o(this))})}(window.wpseoScrollableTables)}),o(window).on({"Yoast:YoastTabsMounted":function(){setTimeout(function(){i()},100)},"Yoast:YoastTabsSelected":function(){setTimeout(function(){i()},100)}}),o(document).ready(function(){o(".yoast-issue-added").on("mouseenter mouseleave",function(o){o.stopPropagation(),a()}).fadeIn(),o("#wp-admin-bar-root-default > li").on("mouseenter.yoastalertpopup mouseleave.yoastalertpopup",a),setTimeout(a,3e3),s(),function(){var o=jQuery(".wpseo-js-premium-indicator"),t=o.find("svg");if(o.hasClass("wpseo-premium-indicator--no")){var a=t.find("path"),n=o.css("backgroundColor");a.css("fill",n)}t.css("display","block"),o.css({backgroundColor:"transparent",width:"20px",height:"20px"})}(),i()})}(jQuery)}},[[455,0]]]);
\ No newline at end of file
(window.yoastWebpackJsonp=window.yoastWebpackJsonp||[]).push([[11],{456:function(o,t,a){"use strict";!function(o){function t(o,t,a){jQuery.post(ajaxurl,{action:"wpseo_set_ignore",option:o,_wpnonce:a},function(a){a&&(jQuery("#"+t).hide(),jQuery("#hidden_ignore_"+o).val("ignore"))})}function a(){o("#wp-admin-bar-root-default > li").off("mouseenter.yoastalertpopup mouseleave.yoastalertpopup"),o(".yoast-issue-added").fadeOut(200)}function n(t,a){if(o(".yoast-notification-holder").off("click",".restore").off("click",".dismiss"),void 0!==a.html){a.html&&(t.closest(".yoast-container").html(a.html),s());var n=o("#wp-admin-bar-wpseo-menu"),e=n.find(".yoast-issue-counter");e.length||(n.find("> a:first-child").append('<div class="yoast-issue-counter"/>'),e=n.find(".yoast-issue-counter")),e.html(a.total),0===a.total?e.hide():e.show(),o("#toplevel_page_wpseo_dashboard .update-plugins").removeClass().addClass("update-plugins count-"+a.total),o("#toplevel_page_wpseo_dashboard .plugin-count").html(a.total)}}function s(){var t=o(".yoast-notification-holder");t.on("click",".dismiss",function(){var t=o(this),a=t.closest(".yoast-notification-holder");t.closest(".yoast-container").append('<div class="yoast-container-disabled"/>'),o.post(ajaxurl,{action:"yoast_dismiss_notification",notification:a.attr("id"),nonce:a.data("nonce"),data:a.data("json")},n.bind(this,a),"json")}),t.on("click",".restore",function(){var t=o(this),a=t.closest(".yoast-notification-holder");t.closest(".yoast-container").append('<div class="yoast-container-disabled"/>'),o.post(ajaxurl,{action:"yoast_restore_notification",notification:a.attr("id"),nonce:a.data("nonce"),data:a.data("json")},n.bind(this,a),"json")})}function e(o){o.is(":hidden")||(o.outerWidth()>o.parent().outerWidth()?(o.data("scrollHint").addClass("yoast-has-scroll"),o.data("scrollContainer").addClass("yoast-has-scroll")):(o.data("scrollHint").removeClass("yoast-has-scroll"),o.data("scrollContainer").removeClass("yoast-has-scroll")))}function i(){window.wpseoScrollableTables=o(".yoast-table-scrollable"),window.wpseoScrollableTables.length&&window.wpseoScrollableTables.each(function(){var t=o(this);if(!t.data("scrollContainer")){var a=o("<div />",{class:"yoast-table-scrollable__hintwrapper",html:"<span class='yoast-table-scrollable__hint' aria-hidden='true' />"}).insertBefore(t),n=o("<div />",{class:"yoast-table-scrollable__container",html:"<div class='yoast-table-scrollable__inner' />"}).insertBefore(t);a.find(".yoast-table-scrollable__hint").text(wpseoAdminGlobalL10n.scrollable_table_hint),t.data("scrollContainer",n),t.data("scrollHint",a),t.appendTo(n.find(".yoast-table-scrollable__inner")),e(t)}})}jQuery(document).ready(function(){if(void 0!==window.wpseoConsoleNotifications&&"undefined"!=typeof console)for(var o=0;o<wpseoConsoleNotifications.length;o++)console.warn(wpseoConsoleNotifications[o])}),jQuery(document).ready(function(){jQuery(".yoast-dismissible").on("click",".yoast-notice-dismiss",function(){var o=jQuery(this).parent();return jQuery.post(ajaxurl,{action:o.attr("id").replace(/-/g,"_"),_wpnonce:o.data("nonce"),data:o.data("json")}),jQuery.post(ajaxurl,{action:"yoast_dismiss_notification",notification:o.attr("id"),nonce:o.data("nonce"),data:o.data("json")}),o.fadeTo(100,0,function(){o.slideUp(100,function(){o.remove()})}),!1}),jQuery(".yoast-help-button").on("click",function(){var o=jQuery(this),t=jQuery("#"+o.attr("aria-controls")),a=t.is(":visible");jQuery(t).slideToggle(200,function(){o.attr("aria-expanded",!a)})}),jQuery("#robotsmessage button").on("click",function(){t("search_engines_discouraged_notice","robotsmessage",jQuery(this).data("nonce"))})}),window.wpseoSetIgnore=t,window.wpseoDismissLink=function(o){return jQuery('<a href="'+o+'" type="button" class="notice-dismiss"><span class="screen-reader-text">Dismiss this notice.</span></a>')},o(window).on("wp-window-resized orientationchange",function(){window.wpseoScrollableTables&&window.wpseoScrollableTables.length&&function(t){t.each(function(){e(o(this))})}(window.wpseoScrollableTables)}),o(window).on({"Yoast:YoastTabsMounted":function(){setTimeout(function(){i()},100)},"Yoast:YoastTabsSelected":function(){setTimeout(function(){i()},100)}}),o(document).ready(function(){o(".yoast-issue-added").on("mouseenter mouseleave",function(o){o.stopPropagation(),a()}).fadeIn(),o("#wp-admin-bar-root-default > li").on("mouseenter.yoastalertpopup mouseleave.yoastalertpopup",a),setTimeout(a,3e3),s(),function(){var o=jQuery(".wpseo-js-premium-indicator"),t=o.find("svg");if(o.hasClass("wpseo-premium-indicator--no")){var a=t.find("path"),n=o.css("backgroundColor");a.css("fill",n)}t.css("display","block"),o.css({backgroundColor:"transparent",width:"20px",height:"20px"})}(),i()})}(jQuery)}},[[456,0]]]);
\ No newline at end of file
(window.yoastWebpackJsonp=window.yoastWebpackJsonp||[]).push([[12],{456:function(o,e,n){"use strict";function s(){console.error("This function is deprecated since WPSEO 12.5")}function i(){console.error("This function is deprecated since WPSEO 12.5")}function d(){console.error("This function is deprecated since WPSEO 12.5")}window.wpseoUpdateCategoryCount=s,window.wpseoMarkAsFixed=d,window.wpseoSendMarkAsFixed=i,window.wpseo_update_category_count=s,window.wpseo_mark_as_fixed=d,window.wpseo_send_mark_as_fixed=i}},[[456,0]]]);
\ No newline at end of file
(window.yoastWebpackJsonp=window.yoastWebpackJsonp||[]).push([[12],{457:function(o,e,n){"use strict";function s(){console.error("This function is deprecated since WPSEO 12.5")}function i(){console.error("This function is deprecated since WPSEO 12.5")}function d(){console.error("This function is deprecated since WPSEO 12.5")}window.wpseoUpdateCategoryCount=s,window.wpseoMarkAsFixed=d,window.wpseoSendMarkAsFixed=i,window.wpseo_update_category_count=s,window.wpseo_mark_as_fixed=d,window.wpseo_send_mark_as_fixed=i}},[[457,0]]]);
\ No newline at end of file
(window.yoastWebpackJsonp=window.yoastWebpackJsonp||[]).push([[13],{457:function(e,t,a){"use strict";jQuery(document).ready(function(e){void 0!==wp.media&&e(".wpseo_image_upload_button").each(function(t,a){var n=function(t){var a=(t=e(t)).data("target");return a&&""!==a||(a=e(t).attr("id").replace(/_button$/,"")),a}(a),i=function(t){return(t=e(t)).data("target-id")}(a),o=e("#"+n),r=e("#"+i),u=wp.media.frames.file_frame=wp.media({title:wpseoMediaL10n.choose_image,button:{text:wpseoMediaL10n.choose_image},multiple:!1,library:{type:"image"}});u.on("select",function(){var e=u.state().get("selection").first().toJSON();o.val(e.url),r.val(e.id)});var c=e(a);c.click(function(e){e.preventDefault(),u.open()}),c.siblings(".wpseo_image_remove_button").on("click",function(e){e.preventDefault(),o.val(""),r.val("")})})})}},[[457,0]]]);
\ No newline at end of file
(window.yoastWebpackJsonp=window.yoastWebpackJsonp||[]).push([[13],{458:function(e,t,a){"use strict";jQuery(document).ready(function(e){void 0!==wp.media&&e(".wpseo_image_upload_button").each(function(t,a){var n=function(t){var a=(t=e(t)).data("target");return a&&""!==a||(a=e(t).attr("id").replace(/_button$/,"")),a}(a),i=function(t){return(t=e(t)).data("target-id")}(a),o=e("#"+n),r=e("#"+i),u=wp.media.frames.file_frame=wp.media({title:wpseoMediaL10n.choose_image,button:{text:wpseoMediaL10n.choose_image},multiple:!1,library:{type:"image"}});u.on("select",function(){var e=u.state().get("selection").first().toJSON();o.val(e.url),r.val(e.id)});var c=e(a);c.click(function(e){e.preventDefault(),u.open()}),c.siblings(".wpseo_image_remove_button").on("click",function(e){e.preventDefault(),o.val(""),r.val("")})})})}},[[458,0]]]);
\ No newline at end of file
(window.yoastWebpackJsonp=window.yoastWebpackJsonp||[]).push([[22],{470:function(t,e,n){"use strict";!function(t,e){window.wpseoApi={get:function(t,e,n,o){this.request("GET",t,e,n,o)},post:function(t,e,n,o){this.request("POST",t,e,n,o)},put:function(t,e,n,o){this.request("PUT",t,e,n,o)},patch:function(t,e,n,o){this.request("PATCH",t,e,n,o)},delete:function(t,e,n,o){this.request("DELETE",t,e,n,o)},request:function(n,o,i,s,u){t.isFunction(i)&&void 0===u&&(u=s,s=i,i={}),"POST"!==n&&"GET"!==n&&(i._method=n,n="POST"),t.ajax({url:e.root+"yoast/v1/"+o,method:n,beforeSend:function(t){t.setRequestHeader("X-WP-Nonce",e.nonce)},data:i}).done(s).fail(u)}}}(jQuery,wpApiSettings)}},[[470,0]]]);
\ No newline at end of file
(window.yoastWebpackJsonp=window.yoastWebpackJsonp||[]).push([[22],{471:function(t,e,n){"use strict";!function(t,e){window.wpseoApi={get:function(t,e,n,o){this.request("GET",t,e,n,o)},post:function(t,e,n,o){this.request("POST",t,e,n,o)},put:function(t,e,n,o){this.request("PUT",t,e,n,o)},patch:function(t,e,n,o){this.request("PATCH",t,e,n,o)},delete:function(t,e,n,o){this.request("DELETE",t,e,n,o)},request:function(n,o,i,s,u){t.isFunction(i)&&void 0===u&&(u=s,s=i,i={}),"POST"!==n&&"GET"!==n&&(i._method=n,n="POST"),t.ajax({url:e.root+"yoast/v1/"+o,method:n,beforeSend:function(t){t.setRequestHeader("X-WP-Nonce",e.nonce)},data:i}).done(s).fail(u)}}}(jQuery,wpApiSettings)}},[[471,0]]]);
\ No newline at end of file
(window.yoastWebpackJsonp=window.yoastWebpackJsonp||[]).push([[15],{459:function(e,s,n){"use strict";!function(){var e=function(e){var s=e.find("[class^=wpseo-new]").first().attr("class"),n="#"+s+"-",t=n.replace("new","existing"),i=e.find("th[id^=col_existing_yoast]").first().text().replace("Existing ",""),a=s.replace("-new-","_save_"),o="wpseo_save_all_"+e.attr("class").split("wpseo_bulk_")[1],u=a.replace("wpseo_save_",""),r={newClass:"."+s,newId:n,existingId:t},l={submit_new:function(e){l.submitNew(e)},submitNew:function(e){var s,n=r.newId+e,t=r.existingId+e;s="select-one"===jQuery(r.newId+e).prop("type")?jQuery(n).find(":selected").text():jQuery(n).val();var o=jQuery(t).html();if(s===o)jQuery(n).val("");else{if(""===s&&!window.confirm("Are you sure you want to remove the existing "+i+"?"))return void jQuery(n).val("");var u={action:a,_ajax_nonce:wpseoBulkEditorNonce,wpseo_post_id:e,new_value:s,existing_value:o};jQuery.post(ajaxurl,u,l.handleResponse)}},submit_all:function(e){l.submitAll(e)},submitAll:function(e){e.preventDefault();var s={action:o,_ajax_nonce:wpseoBulkEditorNonce,send:!1,items:{},existingItems:{}};jQuery(r.newClass).each(function(){var e=jQuery(this).data("id"),n=jQuery(this).val(),t=jQuery(r.existingId+e).html();""!==n&&(n===t?jQuery(r.newId+e).val(""):(s.send=!0,s.items[e]=n,s.existingItems[e]=t))}),s.send&&jQuery.post(ajaxurl,s,l.handleResponses)},handle_response:function(e,s){l.handleResponse(e,s)},handleResponse:function(e,s){if("success"===s){var n=e;if("string"==typeof n&&(n=JSON.parse(n)),n instanceof Array)jQuery.each(n,function(){l.handleResponse(this,s)});else if("success"===n.status){var t=n["new_"+u];jQuery(r.existingId+n.post_id).html(t.replace(/\\(?!\\)/g,"")),jQuery(r.newId+n.post_id).val("")}}},handle_responses:function(e,s){l.handleResponses(e,s)},handleResponses:function(e,s){var n=jQuery.parseJSON(e);jQuery.each(n,function(){l.handleResponse(this,s)})},set_events:function(){l.setEvents()},setEvents:function(){e.find(".wpseo-save").click(function(e){var s=jQuery(this).data("id");e.preventDefault(),l.submitNew(s,this)}),e.find(".wpseo-save-all").click(l.submitAll),e.find(r.newClass).keydown(function(e){if(13===e.which){e.preventDefault();var s=jQuery(this).data("id");l.submitNew(s,this)}})}};return l};window.bulk_editor=e,window.bulkEditor=e,jQuery(document).ready(function(){jQuery('table[class*="wpseo_bulk"]').each(function(s,n){var t=jQuery(n);e(t).setEvents()})})}()}},[[459,0]]]);
\ No newline at end of file
(window.yoastWebpackJsonp=window.yoastWebpackJsonp||[]).push([[15],{460:function(e,s,n){"use strict";!function(){var e=function(e){var s=e.find("[class^=wpseo-new]").first().attr("class"),n="#"+s+"-",t=n.replace("new","existing"),i=e.find("th[id^=col_existing_yoast]").first().text().replace("Existing ",""),a=s.replace("-new-","_save_"),o="wpseo_save_all_"+e.attr("class").split("wpseo_bulk_")[1],u=a.replace("wpseo_save_",""),r={newClass:"."+s,newId:n,existingId:t},l={submit_new:function(e){l.submitNew(e)},submitNew:function(e){var s,n=r.newId+e,t=r.existingId+e;s="select-one"===jQuery(r.newId+e).prop("type")?jQuery(n).find(":selected").text():jQuery(n).val();var o=jQuery(t).html();if(s===o)jQuery(n).val("");else{if(""===s&&!window.confirm("Are you sure you want to remove the existing "+i+"?"))return void jQuery(n).val("");var u={action:a,_ajax_nonce:wpseoBulkEditorNonce,wpseo_post_id:e,new_value:s,existing_value:o};jQuery.post(ajaxurl,u,l.handleResponse)}},submit_all:function(e){l.submitAll(e)},submitAll:function(e){e.preventDefault();var s={action:o,_ajax_nonce:wpseoBulkEditorNonce,send:!1,items:{},existingItems:{}};jQuery(r.newClass).each(function(){var e=jQuery(this).data("id"),n=jQuery(this).val(),t=jQuery(r.existingId+e).html();""!==n&&(n===t?jQuery(r.newId+e).val(""):(s.send=!0,s.items[e]=n,s.existingItems[e]=t))}),s.send&&jQuery.post(ajaxurl,s,l.handleResponses)},handle_response:function(e,s){l.handleResponse(e,s)},handleResponse:function(e,s){if("success"===s){var n=e;if("string"==typeof n&&(n=JSON.parse(n)),n instanceof Array)jQuery.each(n,function(){l.handleResponse(this,s)});else if("success"===n.status){var t=n["new_"+u];jQuery(r.existingId+n.post_id).html(t.replace(/\\(?!\\)/g,"")),jQuery(r.newId+n.post_id).val("")}}},handle_responses:function(e,s){l.handleResponses(e,s)},handleResponses:function(e,s){var n=jQuery.parseJSON(e);jQuery.each(n,function(){l.handleResponse(this,s)})},set_events:function(){l.setEvents()},setEvents:function(){e.find(".wpseo-save").click(function(e){var s=jQuery(this).data("id");e.preventDefault(),l.submitNew(s,this)}),e.find(".wpseo-save-all").click(l.submitAll),e.find(r.newClass).keydown(function(e){if(13===e.which){e.preventDefault();var s=jQuery(this).data("id");l.submitNew(s,this)}})}};return l};window.bulk_editor=e,window.bulkEditor=e,jQuery(document).ready(function(){jQuery('table[class*="wpseo_bulk"]').each(function(s,n){var t=jQuery(n);e(t).setEvents()})})}()}},[[460,0]]]);
\ No newline at end of file
(window.yoastWebpackJsonp=window.yoastWebpackJsonp||[]).push([[4],{0:function(e,t){e.exports=React},1:function(e,t){e.exports=window.lodash},15:function(e,t){e.exports=ReactDOM},22:function(e,t){e.exports=window.yoast.styleGuide},3:function(e,t){e.exports=window.wp.i18n},38:function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.setTextdomainL10n=r,t.setYoastComponentsL10n=function(){r("yoast-components")},t.setWordPressSeoL10n=function(){r("wordpress-seo")};var n=o(3),s=o(1);function r(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"wpseoYoastJSL10n",o=(0,s.get)(window,[t,e,"locale_data",e],!1);!1===o?(0,n.setLocaleData)({"":{}},e):(0,n.setLocaleData)(o,e)}},393:function(e,t,o){"use strict";var n=function(){function e(e,t){for(var o=0;o<t.length;o++){var n=t[o];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,o,n){return o&&e(t.prototype,o),n&&e(t,n),t}}(),s=p(o(0)),r=p(o(15)),i=o(6),a=o(22),c=o(98),u=o(7),l=o(38);function p(e){return e&&e.__esModule?e:{default:e}}var f=function(e){function t(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var e=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return e.state={statistics:null,feed:null},e.getStatistics(),e.getFeed(),e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,s.default.Component),n(t,[{key:"getStatistics",value:function(){var e=this;wpseoApi.get("statistics",function(o){var n={};n.seoScores=o.seo_scores.map(function(e){return{value:parseInt(e.count,10),color:t.getColorFromScore(e.seo_rank),html:'<a href="'+e.link+'">'+e.label+"</a>"}}),n.header=jQuery("<div>"+o.header+"</div>").text(),e.setState({statistics:n})})}},{key:"getFeed",value:function(){var e=this;(0,u.getPostFeed)("https://yoast.com/feed/widget/?wp_version="+wpseoDashboardWidgetL10n.wp_version+"&php_version="+wpseoDashboardWidgetL10n.php_version,2).then(function(t){t.items=t.items.map(function(e){return e.description=jQuery("<div>"+e.description+"</div>").text(),e.description=e.description.replace("The post "+e.title+" appeared first on Yoast.","").trim(),e}),e.setState({feed:t})}).catch(function(e){return console.log(e)})}},{key:"getSeoAssessment",value:function(){return null===this.state.statistics?null:wp.element.createElement(c.SiteSEOReport,{key:"yoast-seo-posts-assessment",seoAssessmentText:this.state.statistics.header,seoAssessmentItems:this.state.statistics.seoScores})}},{key:"getYoastFeed",value:function(){return null===this.state.feed?null:wp.element.createElement(i.ArticleList,{className:"wordpress-feed",key:"yoast-seo-blog-feed",title:wpseoDashboardWidgetL10n.feed_header,feed:this.state.feed,footerLinkText:wpseoDashboardWidgetL10n.feed_footer})}},{key:"render",value:function(){var e=[this.getSeoAssessment(),this.getYoastFeed()].filter(function(e){return null!==e});return 0===e.length?null:wp.element.createElement("div",null,e)}}],[{key:"getColorFromScore",value:function(e){return a.colors["$color_"+e]||a.colors.$color_grey}}]),t}(),d=document.getElementById("yoast-seo-dashboard-widget");d&&((0,l.setYoastComponentsL10n)(),r.default.render(wp.element.createElement(f,null),d))},6:function(e,t){e.exports=window.yoast.componentsNew},7:function(e,t){e.exports=window.yoast.helpers},98:function(e,t){e.exports=window.yoast.analysisReport}},[[393,0]]]);
\ No newline at end of file
(window.yoastWebpackJsonp=window.yoastWebpackJsonp||[]).push([[4],{0:function(e,t){e.exports=React},1:function(e,t){e.exports=window.lodash},15:function(e,t){e.exports=ReactDOM},22:function(e,t){e.exports=window.yoast.styleGuide},3:function(e,t){e.exports=window.wp.i18n},38:function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.setTextdomainL10n=r,t.setYoastComponentsL10n=function(){r("yoast-components")},t.setWordPressSeoL10n=function(){r("wordpress-seo")};var n=o(3),s=o(1);function r(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"wpseoYoastJSL10n",o=(0,s.get)(window,[t,e,"locale_data",e],!1);!1===o?(0,n.setLocaleData)({"":{}},e):(0,n.setLocaleData)(o,e)}},394:function(e,t,o){"use strict";var n=function(){function e(e,t){for(var o=0;o<t.length;o++){var n=t[o];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,o,n){return o&&e(t.prototype,o),n&&e(t,n),t}}(),s=p(o(0)),r=p(o(15)),i=o(6),a=o(22),c=o(98),u=o(7),l=o(38);function p(e){return e&&e.__esModule?e:{default:e}}var f=function(e){function t(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var e=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return e.state={statistics:null,feed:null},e.getStatistics(),e.getFeed(),e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,s.default.Component),n(t,[{key:"getStatistics",value:function(){var e=this;wpseoApi.get("statistics",function(o){var n={};n.seoScores=o.seo_scores.map(function(e){return{value:parseInt(e.count,10),color:t.getColorFromScore(e.seo_rank),html:'<a href="'+e.link+'">'+e.label+"</a>"}}),n.header=jQuery("<div>"+o.header+"</div>").text(),e.setState({statistics:n})})}},{key:"getFeed",value:function(){var e=this;(0,u.getPostFeed)("https://yoast.com/feed/widget/?wp_version="+wpseoDashboardWidgetL10n.wp_version+"&php_version="+wpseoDashboardWidgetL10n.php_version,2).then(function(t){t.items=t.items.map(function(e){return e.description=jQuery("<div>"+e.description+"</div>").text(),e.description=e.description.replace("The post "+e.title+" appeared first on Yoast.","").trim(),e}),e.setState({feed:t})}).catch(function(e){return console.log(e)})}},{key:"getSeoAssessment",value:function(){return null===this.state.statistics?null:wp.element.createElement(c.SiteSEOReport,{key:"yoast-seo-posts-assessment",seoAssessmentText:this.state.statistics.header,seoAssessmentItems:this.state.statistics.seoScores})}},{key:"getYoastFeed",value:function(){return null===this.state.feed?null:wp.element.createElement(i.ArticleList,{className:"wordpress-feed",key:"yoast-seo-blog-feed",title:wpseoDashboardWidgetL10n.feed_header,feed:this.state.feed,footerLinkText:wpseoDashboardWidgetL10n.feed_footer})}},{key:"render",value:function(){var e=[this.getSeoAssessment(),this.getYoastFeed()].filter(function(e){return null!==e});return 0===e.length?null:wp.element.createElement("div",null,e)}}],[{key:"getColorFromScore",value:function(e){return a.colors["$color_"+e]||a.colors.$color_grey}}]),t}(),d=document.getElementById("yoast-seo-dashboard-widget");d&&((0,l.setYoastComponentsL10n)(),r.default.render(wp.element.createElement(f,null),d))},6:function(e,t){e.exports=window.yoast.componentsNew},7:function(e,t){e.exports=window.yoast.helpers},98:function(e,t){e.exports=window.yoast.analysisReport}},[[394,0]]]);
\ No newline at end of file
(window.yoastWebpackJsonp=window.yoastWebpackJsonp||[]).push([[16],{460:function(t,o,a){"use strict";!function(t){t(".yoast-column-header-has-tooltip").each(function(){t(this).closest("th").find("a").addClass("yoast-tooltip yoast-tooltip-alt yoast-tooltip-n yoast-tooltip-multiline").attr("data-label",t(this).data("tooltip-text")).attr("aria-label",t(this).text())})}(jQuery)}},[[460,0]]]);
\ No newline at end of file
(window.yoastWebpackJsonp=window.yoastWebpackJsonp||[]).push([[16],{461:function(t,o,a){"use strict";!function(t){t(".yoast-column-header-has-tooltip").each(function(){t(this).closest("th").find("a").addClass("yoast-tooltip yoast-tooltip-alt yoast-tooltip-n yoast-tooltip-multiline").attr("data-label",t(this).data("tooltip-text")).attr("aria-label",t(this).text())})}(jQuery)}},[[461,0]]]);
\ No newline at end of file
(window.yoastWebpackJsonp=window.yoastWebpackJsonp||[]).push([[17],{1:function(e,t){e.exports=window.lodash},251:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isGutenbergDataAvailable=void 0;var a=i(1);t.isGutenbergDataAvailable=function(){return!(0,a.isNil)(window.wp)&&!(0,a.isNil)(wp.data)&&!(0,a.isNil)(wp.data.select("core/editor"))&&(0,a.isFunction)(wp.data.select("core/editor").getEditedPostAttribute)}},46:function(e,t){var i,a,n="",o=function(e){e=e||"polite";var t=document.createElement("div");t.id="a11y-speak-"+e,t.className="a11y-speak-region";return t.setAttribute("style","clip: rect(1px, 1px, 1px, 1px); position: absolute; height: 1px; width: 1px; overflow: hidden; word-wrap: normal;"),t.setAttribute("aria-live",e),t.setAttribute("aria-relevant","additions text"),t.setAttribute("aria-atomic","true"),document.querySelector("body").appendChild(t),t};!function(e){if("complete"===document.readyState||"loading"!==document.readyState&&!document.documentElement.doScroll)return e();document.addEventListener("DOMContentLoaded",e)}(function(){i=document.getElementById("a11y-speak-polite"),a=document.getElementById("a11y-speak-assertive"),null===i&&(i=o("polite")),null===a&&(a=o("assertive"))});e.exports=function(e,t){!function(){for(var e=document.querySelectorAll(".a11y-speak-region"),t=0;t<e.length;t++)e[t].textContent=""}(),e=e.replace(/<[^<>]+>/g," "),n===e&&(e+=" "),n=e,a&&"assertive"===t?a.textContent=e:i&&(i.textContent=e)}},461:function(e,t,i){"use strict";var a=function(e){return e&&e.__esModule?e:{default:e}}(i(46)),n=i(251);!function(e){var t,i,o,r=function(e){this._app=e,this.featuredImage=null,this.pluginName="addFeaturedImagePlugin",this.registerPlugin(),this.registerModifications()};function s(){e("#yst_opengraph_image_warning").remove(),i.removeClass("yoast-opengraph-image-notice")}r.prototype.setFeaturedImage=function(e){this.featuredImage=e,this._app.pluginReloaded(this.pluginName)},r.prototype.removeFeaturedImage=function(){this.setFeaturedImage(null)},r.prototype.registerPlugin=function(){this._app.registerPlugin(this.pluginName,{status:"ready"})},r.prototype.registerModifications=function(){this._app.registerModification("content",this.addImageToContent.bind(this),this.pluginName,10)},r.prototype.addImageToContent=function(e){return null!==this.featuredImage&&(e+=this.featuredImage),e},e(document).ready(function(){var d=wp.media.featuredImage.frame();if("undefined"!=typeof YoastSEO&&(t=new r(YoastSEO.app),i=e("#postimagediv"),o=i.find(".hndle"),d.on("select",function(){var n,r,u;!function(t){var n=t.state().get("selection").first().toJSON();n.width<200||n.height<200?0===e("#yst_opengraph_image_warning").length&&(e('<div id="yst_opengraph_image_warning" class="notice notice-error notice-alt"><p>'+wpseoFeaturedImageL10n.featured_image_notice+"</p></div>").insertAfter(o),i.addClass("yoast-opengraph-image-notice"),(0,a.default)(wpseoFeaturedImageL10n.featured_image_notice,"assertive")):s()}(d),u=(r=d.state().get("selection").first()).get("alt"),n='<img src="'+r.get("url")+'" width="'+r.get("width")+'" height="'+r.get("height")+'" alt="'+u+'"/>',t.setFeaturedImage(n)}),i.on("click","#remove-post-thumbnail",function(){t.removeFeaturedImage(),s()}),void 0!==e("#set-post-thumbnail > img").prop("src")&&t.setFeaturedImage(e("#set-post-thumbnail ").html()),(0,n.isGutenbergDataAvailable)())){var u=void 0,p=void 0;wp.data.subscribe(function(){var e=wp.data.select("core/editor").getEditedPostAttribute("featured_media");if(function(e){return"number"==typeof e&&e>0}(e)&&void 0!==(u=wp.data.select("core").getMedia(e))&&u!==p){p=u;var i='<img src="'+u.source_url+'" alt="'+u.alt_text+'" >';t.setFeaturedImage(i)}})}})}(jQuery),window.yst_removeOpengraphWarning=function(){console.error("yst_removeOpengraphWarning is deprecated since Yoast SEO 10.1.")}}},[[461,0]]]);
\ No newline at end of file
(window.yoastWebpackJsonp=window.yoastWebpackJsonp||[]).push([[17],{1:function(e,t){e.exports=window.lodash},251:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isGutenbergDataAvailable=void 0;var a=i(1);t.isGutenbergDataAvailable=function(){return!(0,a.isNil)(window.wp)&&!(0,a.isNil)(wp.data)&&!(0,a.isNil)(wp.data.select("core/editor"))&&(0,a.isFunction)(wp.data.select("core/editor").getEditedPostAttribute)}},46:function(e,t){var i,a,n="",o=function(e){e=e||"polite";var t=document.createElement("div");t.id="a11y-speak-"+e,t.className="a11y-speak-region";return t.setAttribute("style","clip: rect(1px, 1px, 1px, 1px); position: absolute; height: 1px; width: 1px; overflow: hidden; word-wrap: normal;"),t.setAttribute("aria-live",e),t.setAttribute("aria-relevant","additions text"),t.setAttribute("aria-atomic","true"),document.querySelector("body").appendChild(t),t};!function(e){if("complete"===document.readyState||"loading"!==document.readyState&&!document.documentElement.doScroll)return e();document.addEventListener("DOMContentLoaded",e)}(function(){i=document.getElementById("a11y-speak-polite"),a=document.getElementById("a11y-speak-assertive"),null===i&&(i=o("polite")),null===a&&(a=o("assertive"))});e.exports=function(e,t){!function(){for(var e=document.querySelectorAll(".a11y-speak-region"),t=0;t<e.length;t++)e[t].textContent=""}(),e=e.replace(/<[^<>]+>/g," "),n===e&&(e+=" "),n=e,a&&"assertive"===t?a.textContent=e:i&&(i.textContent=e)}},462:function(e,t,i){"use strict";var a=function(e){return e&&e.__esModule?e:{default:e}}(i(46)),n=i(251);!function(e){var t,i,o,r=function(e){this._app=e,this.featuredImage=null,this.pluginName="addFeaturedImagePlugin",this.registerPlugin(),this.registerModifications()};function s(){e("#yst_opengraph_image_warning").remove(),i.removeClass("yoast-opengraph-image-notice")}r.prototype.setFeaturedImage=function(e){this.featuredImage=e,this._app.pluginReloaded(this.pluginName)},r.prototype.removeFeaturedImage=function(){this.setFeaturedImage(null)},r.prototype.registerPlugin=function(){this._app.registerPlugin(this.pluginName,{status:"ready"})},r.prototype.registerModifications=function(){this._app.registerModification("content",this.addImageToContent.bind(this),this.pluginName,10)},r.prototype.addImageToContent=function(e){return null!==this.featuredImage&&(e+=this.featuredImage),e},e(document).ready(function(){var d=wp.media.featuredImage.frame();if("undefined"!=typeof YoastSEO&&(t=new r(YoastSEO.app),i=e("#postimagediv"),o=i.find(".hndle"),d.on("select",function(){var n,r,u;!function(t){var n=t.state().get("selection").first().toJSON();n.width<200||n.height<200?0===e("#yst_opengraph_image_warning").length&&(e('<div id="yst_opengraph_image_warning" class="notice notice-error notice-alt"><p>'+wpseoFeaturedImageL10n.featured_image_notice+"</p></div>").insertAfter(o),i.addClass("yoast-opengraph-image-notice"),(0,a.default)(wpseoFeaturedImageL10n.featured_image_notice,"assertive")):s()}(d),u=(r=d.state().get("selection").first()).get("alt"),n='<img src="'+r.get("url")+'" width="'+r.get("width")+'" height="'+r.get("height")+'" alt="'+u+'"/>',t.setFeaturedImage(n)}),i.on("click","#remove-post-thumbnail",function(){t.removeFeaturedImage(),s()}),void 0!==e("#set-post-thumbnail > img").prop("src")&&t.setFeaturedImage(e("#set-post-thumbnail ").html()),(0,n.isGutenbergDataAvailable)())){var u=void 0,p=void 0;wp.data.subscribe(function(){var e=wp.data.select("core/editor").getEditedPostAttribute("featured_media");if(function(e){return"number"==typeof e&&e>0}(e)&&void 0!==(u=wp.data.select("core").getMedia(e))&&u!==p){p=u;var i='<img src="'+u.source_url+'" alt="'+u.alt_text+'" >';t.setFeaturedImage(i)}})}})}(jQuery),window.yst_removeOpengraphWarning=function(){console.error("yst_removeOpengraphWarning is deprecated since Yoast SEO 10.1.")}}},[[462,0]]]);
\ No newline at end of file
(window.yoastWebpackJsonp=window.yoastWebpackJsonp||[]).push([[23],{471:function(t,i,o){"use strict";jQuery("#posts-filter .tablenav.top").after('<div class="notice notice-info inline wpseo-filter-explanation"><p class="dashicons-before dashicons-lightbulb">'+yoastFilterExplanation.text+"</p></div>")}},[[471,0]]]);
\ No newline at end of file
(window.yoastWebpackJsonp=window.yoastWebpackJsonp||[]).push([[23],{472:function(t,i,o){"use strict";jQuery("#posts-filter .tablenav.top").after('<div class="notice notice-info inline wpseo-filter-explanation"><p class="dashicons-before dashicons-lightbulb">'+yoastFilterExplanation.text+"</p></div>")}},[[472,0]]]);
\ No newline at end of file
(window.yoastWebpackJsonp=window.yoastWebpackJsonp||[]).push([[5],{394:function(e,t,a){"use strict";!function(){function e(e){e&&(e.focus(),e.click())}function t(){var t=jQuery(".yoast-aria-tabs"),a=t.find("[role='tab']"),s=t.attr("aria-orientation")||"horizontal";a.attr({"aria-selected":!1,tabIndex:"-1"}),a.filter(".yoast-active-tab").removeAttr("tabindex").attr("aria-selected","true"),a.on("keydown",function(t){-1!==[32,35,36,37,38,39,40].indexOf(t.which)&&("horizontal"===s&&-1!==[38,40].indexOf(t.which)||"vertical"===s&&-1!==[37,39].indexOf(t.which)||function(t,a){var s=t.which,i=a.index(jQuery(t.target));switch(s){case 32:t.preventDefault(),e(a[i]);break;case 35:t.preventDefault(),e(a[a.length-1]);break;case 36:t.preventDefault(),e(a[0]);break;case 37:case 38:t.preventDefault(),e(a[i-1<0?a.length-1:i-1]);break;case 39:case 40:t.preventDefault(),e(a[i+1===a.length?0:i+1])}}(t,a))})}function a(){var e=jQuery("#wpseo-meta-section-addons .wpseo_tablink");if(1===e.length&&e.replaceWith("<span class='"+e[0].className+"'>"+e.text()+"</span>"),jQuery(".wpseo-metabox-tabs-div").length>0&&jQuery(".wpseo-metabox-tabs").on("click","a.wpseo_tablink",function(e){e.preventDefault(),jQuery(".wpseo-meta-section.active .wpseo-metabox-tabs li").removeClass("active"),jQuery(".wpseo-meta-section.active .wpseotab").removeClass("active");var t=jQuery(jQuery(this).attr("href"));t.addClass("active"),jQuery(this).parent("li").addClass("active"),jQuery(this).hasClass("scroll")&&jQuery("html, body").animate({scrollTop:jQuery(t).offset().top},500)}),jQuery(".wpseo-meta-section").length>0){var t=jQuery(".wpseo-meta-section-link");jQuery(".wpseo-metabox-menu li").filter(function(){return"#wpseo-meta-section-content"===jQuery(this).find(".wpseo-meta-section-link").attr("href")}).addClass("active").find("[role='tab']").addClass("yoast-active-tab"),jQuery("#wpseo-meta-section-content, .wpseo-meta-section-react").addClass("active"),t.on("click",function(e){var a=jQuery(this).attr("href"),s=jQuery(a);e.preventDefault(),jQuery(".wpseo-metabox-menu li").removeClass("active").find("[role='tab']").removeClass("yoast-active-tab"),jQuery(".wpseo-meta-section").removeClass("active"),jQuery(".wpseo-meta-section-react.active").removeClass("active"),"#wpseo-meta-section-content"===a&&jQuery(".wpseo-meta-section-react").addClass("active"),s.addClass("active"),jQuery(this).parent("li").addClass("active").find("[role='tab']").addClass("yoast-active-tab"),function(e,t){e&&(function(e){e.attr({"aria-selected":"false",tabIndex:"-1"})}(t),e.removeAttribute("tabindex"),e.setAttribute("aria-selected","true"))}(this,t)})}jQuery(".wpseo-metabox-tabs").show()}window.wpseoInitTabs=a,window.wpseo_init_tabs=a,jQuery(document).ready(function(){jQuery(".wpseo-meta-section").each(function(e,t){jQuery(t).find(".wpseo-metabox-tabs li:first").addClass("active"),jQuery(t).find(".wpseotab:first").addClass("active")}),window.wpseo_init_tabs(),t()})}(jQuery)}},[[394,0]]]);
\ No newline at end of file
(window.yoastWebpackJsonp=window.yoastWebpackJsonp||[]).push([[5],{395:function(e,t,a){"use strict";!function(){function e(e){e&&(e.focus(),e.click())}function t(){var t=jQuery(".yoast-aria-tabs"),a=t.find("[role='tab']"),s=t.attr("aria-orientation")||"horizontal";a.attr({"aria-selected":!1,tabIndex:"-1"}),a.filter(".yoast-active-tab").removeAttr("tabindex").attr("aria-selected","true"),a.on("keydown",function(t){-1!==[32,35,36,37,38,39,40].indexOf(t.which)&&("horizontal"===s&&-1!==[38,40].indexOf(t.which)||"vertical"===s&&-1!==[37,39].indexOf(t.which)||function(t,a){var s=t.which,i=a.index(jQuery(t.target));switch(s){case 32:t.preventDefault(),e(a[i]);break;case 35:t.preventDefault(),e(a[a.length-1]);break;case 36:t.preventDefault(),e(a[0]);break;case 37:case 38:t.preventDefault(),e(a[i-1<0?a.length-1:i-1]);break;case 39:case 40:t.preventDefault(),e(a[i+1===a.length?0:i+1])}}(t,a))})}function a(){var e=jQuery("#wpseo-meta-section-addons .wpseo_tablink");if(1===e.length&&e.replaceWith("<span class='"+e[0].className+"'>"+e.text()+"</span>"),jQuery(".wpseo-metabox-tabs-div").length>0&&jQuery(".wpseo-metabox-tabs").on("click","a.wpseo_tablink",function(e){e.preventDefault(),jQuery(".wpseo-meta-section.active .wpseo-metabox-tabs li").removeClass("active"),jQuery(".wpseo-meta-section.active .wpseotab").removeClass("active");var t=jQuery(jQuery(this).attr("href"));t.addClass("active"),jQuery(this).parent("li").addClass("active"),jQuery(this).hasClass("scroll")&&jQuery("html, body").animate({scrollTop:jQuery(t).offset().top},500)}),jQuery(".wpseo-meta-section").length>0){var t=jQuery(".wpseo-meta-section-link");jQuery(".wpseo-metabox-menu li").filter(function(){return"#wpseo-meta-section-content"===jQuery(this).find(".wpseo-meta-section-link").attr("href")}).addClass("active").find("[role='tab']").addClass("yoast-active-tab"),jQuery("#wpseo-meta-section-content, .wpseo-meta-section-react").addClass("active"),t.on("click",function(e){var a=jQuery(this).attr("href"),s=jQuery(a);e.preventDefault(),jQuery(".wpseo-metabox-menu li").removeClass("active").find("[role='tab']").removeClass("yoast-active-tab"),jQuery(".wpseo-meta-section").removeClass("active"),jQuery(".wpseo-meta-section-react.active").removeClass("active"),"#wpseo-meta-section-content"===a&&jQuery(".wpseo-meta-section-react").addClass("active"),s.addClass("active"),jQuery(this).parent("li").addClass("active").find("[role='tab']").addClass("yoast-active-tab"),function(e,t){e&&(function(e){e.attr({"aria-selected":"false",tabIndex:"-1"})}(t),e.removeAttribute("tabindex"),e.setAttribute("aria-selected","true"))}(this,t)})}jQuery(".wpseo-metabox-tabs").show()}window.wpseoInitTabs=a,window.wpseo_init_tabs=a,jQuery(document).ready(function(){jQuery(".wpseo-meta-section").each(function(e,t){jQuery(t).find(".wpseo-metabox-tabs li:first").addClass("active"),jQuery(t).find(".wpseotab:first").addClass("active")}),window.wpseo_init_tabs(),t()})}(jQuery)}},[[395,0]]]);
\ No newline at end of file
(window.yoastWebpackJsonp=window.yoastWebpackJsonp||[]).push([[25],{46:function(e,t){var n,a,o="",r=function(e){e=e||"polite";var t=document.createElement("div");t.id="a11y-speak-"+e,t.className="a11y-speak-region";return t.setAttribute("style","clip: rect(1px, 1px, 1px, 1px); position: absolute; height: 1px; width: 1px; overflow: hidden; word-wrap: normal;"),t.setAttribute("aria-live",e),t.setAttribute("aria-relevant","additions text"),t.setAttribute("aria-atomic","true"),document.querySelector("body").appendChild(t),t};!function(e){if("complete"===document.readyState||"loading"!==document.readyState&&!document.documentElement.doScroll)return e();document.addEventListener("DOMContentLoaded",e)}(function(){n=document.getElementById("a11y-speak-polite"),a=document.getElementById("a11y-speak-assertive"),null===n&&(n=r("polite")),null===a&&(a=r("assertive"))});e.exports=function(e,t){!function(){for(var e=document.querySelectorAll(".a11y-speak-region"),t=0;t<e.length;t++)e[t].textContent=""}(),e=e.replace(/<[^<>]+>/g," "),o===e&&(e+=" "),o=e,a&&"assertive"===t?a.textContent=e:n&&(n.textContent=e)}},473:function(e,t,n){"use strict";var a=function(e){return e&&e.__esModule?e:{default:e}}(n(46));!function(e){function t(t){var n,o,r=e(".wrap > h1");t.length&&(n=t.map(function(e){return"<div class='"+e.type+" notice'><p>"+e.message+"</p></div>"}),r.after(n.join("")),o=wpseoNetworkAdminGlobalL10n.error_prefix,"updated"===t[0].type&&(o=wpseoNetworkAdminGlobalL10n.success_prefix),(0,a.default)(o.replace("%s",t[0].message),"assertive"))}function n(n){var a=e(this),o=a.find("[type='submit']:focus"),r=a.serialize();return n.preventDefault(),e(".wrap > .notice").remove(),o.length||(o=e(".wpseotab.active [type='submit']")),"action"===o.attr("name")&&(r=r.replace(/action=([a-zA-Z0-9_]+)/,"action="+o.val())),e.ajax({type:"POST",url:ajaxurl,data:r}).done(function(e){e.data&&t(e.data)}).fail(function(e){var n=e.responseJSON;n&&n.data&&t(n.data)}),!1}e(document).ready(function(){var t=e("#wpseo-conf");t.length&&t.on("submit",n)})}(jQuery)}},[[473,0]]]);
\ No newline at end of file
(window.yoastWebpackJsonp=window.yoastWebpackJsonp||[]).push([[25],{46:function(e,t){var n,a,o="",r=function(e){e=e||"polite";var t=document.createElement("div");t.id="a11y-speak-"+e,t.className="a11y-speak-region";return t.setAttribute("style","clip: rect(1px, 1px, 1px, 1px); position: absolute; height: 1px; width: 1px; overflow: hidden; word-wrap: normal;"),t.setAttribute("aria-live",e),t.setAttribute("aria-relevant","additions text"),t.setAttribute("aria-atomic","true"),document.querySelector("body").appendChild(t),t};!function(e){if("complete"===document.readyState||"loading"!==document.readyState&&!document.documentElement.doScroll)return e();document.addEventListener("DOMContentLoaded",e)}(function(){n=document.getElementById("a11y-speak-polite"),a=document.getElementById("a11y-speak-assertive"),null===n&&(n=r("polite")),null===a&&(a=r("assertive"))});e.exports=function(e,t){!function(){for(var e=document.querySelectorAll(".a11y-speak-region"),t=0;t<e.length;t++)e[t].textContent=""}(),e=e.replace(/<[^<>]+>/g," "),o===e&&(e+=" "),o=e,a&&"assertive"===t?a.textContent=e:n&&(n.textContent=e)}},474:function(e,t,n){"use strict";var a=function(e){return e&&e.__esModule?e:{default:e}}(n(46));!function(e){function t(t){var n,o,r=e(".wrap > h1");t.length&&(n=t.map(function(e){return"<div class='"+e.type+" notice'><p>"+e.message+"</p></div>"}),r.after(n.join("")),o=wpseoNetworkAdminGlobalL10n.error_prefix,"updated"===t[0].type&&(o=wpseoNetworkAdminGlobalL10n.success_prefix),(0,a.default)(o.replace("%s",t[0].message),"assertive"))}function n(n){var a=e(this),o=a.find("[type='submit']:focus"),r=a.serialize();return n.preventDefault(),e(".wrap > .notice").remove(),o.length||(o=e(".wpseotab.active [type='submit']")),"action"===o.attr("name")&&(r=r.replace(/action=([a-zA-Z0-9_]+)/,"action="+o.val())),e.ajax({type:"POST",url:ajaxurl,data:r}).done(function(e){e.data&&t(e.data)}).fail(function(e){var n=e.responseJSON;n&&n.data&&t(n.data)}),!1}e(document).ready(function(){var t=e("#wpseo-conf");t.length&&t.on("submit",n)})}(jQuery)}},[[474,0]]]);
\ No newline at end of file
(window.yoastWebpackJsonp=window.yoastWebpackJsonp||[]).push([[24],{472:function(t,n,i){"use strict";jQuery(function(t){var n=t(location).attr("pathname").split("/").pop(),i="edit-tags.php"===n?"slug":"post_name",e=t(".wrap").children().eq(0),o=0,a=[];function r(n){a.includes(n)||(a.push(n),t(n).insertAfter(e))}function p(){t.post(ajaxurl,{action:"yoast_get_notifications",version:2},function(t){""!==t&&(o=0,JSON.parse(t).map(r));o<20&&""===t&&(o++,setTimeout(p,500))})}function u(){var n=t("tr.inline-editor");return function(n){return t("#inline_"+n).find("."+i).html()}(function(t){return 0===t.length||""===t?"":t.attr("id").replace("edit-","")}(n))!==n.find("input[name="+i+"]").val()}["edit.php","edit-tags.php"].includes(n)&&(t("#inline-edit input").on("keydown",function(t){13===t.which&&u()&&p()}),t(".button-primary").click(function(n){"save-order"!==t(n.target).attr("id")&&u()&&p()})),"edit-tags.php"===n&&t(document).on("ajaxComplete",function(t,n,i){i.data.indexOf("action=delete-tag")>-1&&p()})}(jQuery))}},[[472,0]]]);
\ No newline at end of file
(window.yoastWebpackJsonp=window.yoastWebpackJsonp||[]).push([[24],{473:function(t,n,i){"use strict";jQuery(function(t){var n=t(location).attr("pathname").split("/").pop(),i="edit-tags.php"===n?"slug":"post_name",e=t(".wrap").children().eq(0),o=0,a=[];function r(n){a.includes(n)||(a.push(n),t(n).insertAfter(e))}function p(){t.post(ajaxurl,{action:"yoast_get_notifications",version:2},function(t){""!==t&&(o=0,JSON.parse(t).map(r));o<20&&""===t&&(o++,setTimeout(p,500))})}function u(){var n=t("tr.inline-editor");return function(n){return t("#inline_"+n).find("."+i).html()}(function(t){return 0===t.length||""===t?"":t.attr("id").replace("edit-","")}(n))!==n.find("input[name="+i+"]").val()}["edit.php","edit-tags.php"].includes(n)&&(t("#inline-edit input").on("keydown",function(t){13===t.which&&u()&&p()}),t(".button-primary").click(function(n){"save-order"!==t(n.target).attr("id")&&u()&&p()})),"edit-tags.php"===n&&t(document).on("ajaxComplete",function(t,n,i){i.data.indexOf("action=delete-tag")>-1&&p()})}(jQuery))}},[[473,0]]]);
\ No newline at end of file
(window.yoastWebpackJsonp=window.yoastWebpackJsonp||[]).push([[19],{1:function(e,t){e.exports=window.lodash},10:function(e,t){e.exports=window.yoast.analysis},245:function(e,t){e.exports=window.yoast.jed},467:function(e,t,o){"use strict";var s=function(e){return e&&e.__esModule?e:{default:e}}(o(245)),n=o(10),r=o(1);!function(e){var t=new s.default({domain:"js-text-analysis",locale_data:{"js-text-analysis":{"":{}}}}),o=function(t){this.totalCount=t,this.oncomplete=!1,this.setupAssessors(),e("#wpseo_count_total").html(t),jQuery("#wpseo_progressbar").progressbar({value:0})};function a(e){var t=parseInt(e.posts,10),s=parseInt(e.terms,10),n=new o(t+s);n.start(t,"post","post_id",function(){n.start(s,"term","term_id",!1)})}o.prototype.setupAssessors=function(){var e=new n.ContentAssessor(t),o=new n.TaxonomyAssessor(t);this.validAssessors={post:e,term:o}},o.prototype.start=function(e,t,o,s){if(!this.validAssessors.hasOwnProperty(t))throw new Error("Unknown fetch type of "+t+" given.");this.fetchType=t,this.itemsToFetch=e,this.idField=o,this.oncomplete=s,this.assessor=this.validAssessors[t],this.getItemsToRecalculate(1)},o.prototype.updateProgressBar=function(e){var t=jQuery("#wpseo_count").text(),o=parseInt(t,10)+e,s=o*(100/this.totalCount);jQuery("#wpseo_progressbar").progressbar("value",s),this.updateCountElement(o)},o.prototype.updateCountElement=function(e){jQuery("#wpseo_count").html(e)},o.prototype.calculateScores=function(e,t){for(var o=[],s=0;s<e;s++)o.push(this.getScore(t[s]));return o},o.prototype.getScore=function(e){return{item_id:this.getItemID(e),taxonomy:e.taxonomy?e.taxonomy:"",score:this.calculateItemScore(e)}},o.prototype.getItemID=function(e){return this.itemsToFetch--,e[this.idField]},o.prototype.calculateItemScore=function(e){var t=new n.Paper(e.text,{keyword:e.keyword,url:e.url,locale:wpseoAdminL10n.contentLocale,description:e.meta,title:e.pageTitle}),o=this.assessor;return o.assess(t),o.calculateOverallScore()},o.prototype.parseResponse=function(e){if(""!==e&&null!==e){if(!(0,r.isUndefined)(e.total_items)){var t=this.calculateScores(e.total_items,e.items);this.sendScores(t),this.updateProgressBar(e.total_items)}return(0,r.isUndefined)(e.next_page)?this.onCompleteRequest():this.getItemsToRecalculate(e.next_page),!0}this.onCompleteRequest()},o.prototype.onCompleteRequest=function(){!1!==this.oncomplete&&(this.oncomplete(),this.oncomplete=!1)},o.prototype.sendScores=function(e){jQuery.post(ajaxurl,{action:"wpseo_update_score",nonce:jQuery("#wpseo_recalculate_nonce").val(),scores:e,type:this.fetchType})},o.prototype.getItemsToRecalculate=function(e){jQuery.post(ajaxurl,{action:"wpseo_recalculate_scores",nonce:jQuery("#wpseo_recalculate_nonce").val(),paged:e,type:this.fetchType},this.parseResponse.bind(this),"json")},e(function(){var t=jQuery("#wpseo_recalculate_link");(0,r.isUndefined)(t)||(t.click(function(){jQuery("#wpseo_count").text(0),e.post(ajaxurl,{action:"wpseo_recalculate_total",nonce:jQuery("#wpseo_recalculate_nonce").val()},a,"json")}),t.data("open")&&t.trigger("click"))})}(jQuery)}},[[467,0]]]);
\ No newline at end of file
(window.yoastWebpackJsonp=window.yoastWebpackJsonp||[]).push([[19],{1:function(e,t){e.exports=window.lodash},10:function(e,t){e.exports=window.yoast.analysis},245:function(e,t){e.exports=window.yoast.jed},468:function(e,t,o){"use strict";var s=function(e){return e&&e.__esModule?e:{default:e}}(o(245)),n=o(10),r=o(1);!function(e){var t=new s.default({domain:"js-text-analysis",locale_data:{"js-text-analysis":{"":{}}}}),o=function(t){this.totalCount=t,this.oncomplete=!1,this.setupAssessors(),e("#wpseo_count_total").html(t),jQuery("#wpseo_progressbar").progressbar({value:0})};function a(e){var t=parseInt(e.posts,10),s=parseInt(e.terms,10),n=new o(t+s);n.start(t,"post","post_id",function(){n.start(s,"term","term_id",!1)})}o.prototype.setupAssessors=function(){var e=new n.ContentAssessor(t),o=new n.TaxonomyAssessor(t);this.validAssessors={post:e,term:o}},o.prototype.start=function(e,t,o,s){if(!this.validAssessors.hasOwnProperty(t))throw new Error("Unknown fetch type of "+t+" given.");this.fetchType=t,this.itemsToFetch=e,this.idField=o,this.oncomplete=s,this.assessor=this.validAssessors[t],this.getItemsToRecalculate(1)},o.prototype.updateProgressBar=function(e){var t=jQuery("#wpseo_count").text(),o=parseInt(t,10)+e,s=o*(100/this.totalCount);jQuery("#wpseo_progressbar").progressbar("value",s),this.updateCountElement(o)},o.prototype.updateCountElement=function(e){jQuery("#wpseo_count").html(e)},o.prototype.calculateScores=function(e,t){for(var o=[],s=0;s<e;s++)o.push(this.getScore(t[s]));return o},o.prototype.getScore=function(e){return{item_id:this.getItemID(e),taxonomy:e.taxonomy?e.taxonomy:"",score:this.calculateItemScore(e)}},o.prototype.getItemID=function(e){return this.itemsToFetch--,e[this.idField]},o.prototype.calculateItemScore=function(e){var t=new n.Paper(e.text,{keyword:e.keyword,url:e.url,locale:wpseoAdminL10n.contentLocale,description:e.meta,title:e.pageTitle}),o=this.assessor;return o.assess(t),o.calculateOverallScore()},o.prototype.parseResponse=function(e){if(""!==e&&null!==e){if(!(0,r.isUndefined)(e.total_items)){var t=this.calculateScores(e.total_items,e.items);this.sendScores(t),this.updateProgressBar(e.total_items)}return(0,r.isUndefined)(e.next_page)?this.onCompleteRequest():this.getItemsToRecalculate(e.next_page),!0}this.onCompleteRequest()},o.prototype.onCompleteRequest=function(){!1!==this.oncomplete&&(this.oncomplete(),this.oncomplete=!1)},o.prototype.sendScores=function(e){jQuery.post(ajaxurl,{action:"wpseo_update_score",nonce:jQuery("#wpseo_recalculate_nonce").val(),scores:e,type:this.fetchType})},o.prototype.getItemsToRecalculate=function(e){jQuery.post(ajaxurl,{action:"wpseo_recalculate_scores",nonce:jQuery("#wpseo_recalculate_nonce").val(),paged:e,type:this.fetchType},this.parseResponse.bind(this),"json")},e(function(){var t=jQuery("#wpseo_recalculate_link");(0,r.isUndefined)(t)||(t.click(function(){jQuery("#wpseo_count").text(0),e.post(ajaxurl,{action:"wpseo_recalculate_total",nonce:jQuery("#wpseo_recalculate_nonce").val()},a,"json")}),t.data("open")&&t.trigger("click"))})}(jQuery)}},[[468,0]]]);
\ No newline at end of file
(window.yoastWebpackJsonp=window.yoastWebpackJsonp||[]).push([[20],{46:function(e,t){var n,o,r="",a=function(e){e=e||"polite";var t=document.createElement("div");t.id="a11y-speak-"+e,t.className="a11y-speak-region";return t.setAttribute("style","clip: rect(1px, 1px, 1px, 1px); position: absolute; height: 1px; width: 1px; overflow: hidden; word-wrap: normal;"),t.setAttribute("aria-live",e),t.setAttribute("aria-relevant","additions text"),t.setAttribute("aria-atomic","true"),document.querySelector("body").appendChild(t),t};!function(e){if("complete"===document.readyState||"loading"!==document.readyState&&!document.documentElement.doScroll)return e();document.addEventListener("DOMContentLoaded",e)}(function(){n=document.getElementById("a11y-speak-polite"),o=document.getElementById("a11y-speak-assertive"),null===n&&(n=a("polite")),null===o&&(o=a("assertive"))});e.exports=function(e,t){!function(){for(var e=document.querySelectorAll(".a11y-speak-region"),t=0;t<e.length;t++)e[t].textContent=""}(),e=e.replace(/<[^<>]+>/g," "),r===e&&(e+=" "),r=e,o&&"assertive"===t?o.textContent=e:n&&(n.textContent=e)}},468:function(e,t,n){"use strict";var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),r=function(e){return e&&e.__esModule?e:{default:e}}(n(46));var a=yoastReindexLinksData.data,i=!1,s=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.element=jQuery("#wpseo_count_index_links"),this.progressbarTarget=jQuery("#wpseo_index_links_progressbar").progressbar({value:0}),this.total=parseInt(t,10),this.totalProcessed=0}return o(e,[{key:"update",value:function(e){this.totalProcessed+=e;var t=this.totalProcessed*(100/this.total);this.progressbarTarget.progressbar("value",Math.round(t)),this.element.html(this.totalProcessed)}},{key:"complete",value:function(){this.progressbarTarget.progressbar("value",100)}}]),e}();function u(){return new Promise(function(e){!function e(t,n){jQuery.ajax({type:"GET",url:a.restApi.root+a.restApi.endpoint,beforeSend:function(e){e.setRequestHeader("X-WP-Nonce",a.restApi.nonce)},success:function(o){var r=parseInt(o,10);if(0!==r)return t.update(r),void e(t,n);t.complete(),n()}})}(new s(a.amount),e)})}function l(){i=!0,(0,r.default)(a.l10n.calculationCompleted),jQuery("#reindexLinks").html(a.message.indexingCompleted),tb_remove()}function c(){jQuery("#general-tab").click(),!1===i&&jQuery("#openLinkIndexing").click()}jQuery(function(){var e=!1;jQuery(".yoast-js-calculate-index-links--all ").on("click",function(){!1===e&&(function(){(0,r.default)(a.l10n.calculationInProgress);var e=[];e.push(u()),Promise.all(e).then(l)}(),e=!0)}),jQuery("#noticeRunLinkIndex").click(c),-1!==window.location.href.indexOf("&reIndexLinks=1")&&jQuery(c)})}},[[468,0]]]);
\ No newline at end of file
(window.yoastWebpackJsonp=window.yoastWebpackJsonp||[]).push([[20],{46:function(e,t){var n,o,r="",a=function(e){e=e||"polite";var t=document.createElement("div");t.id="a11y-speak-"+e,t.className="a11y-speak-region";return t.setAttribute("style","clip: rect(1px, 1px, 1px, 1px); position: absolute; height: 1px; width: 1px; overflow: hidden; word-wrap: normal;"),t.setAttribute("aria-live",e),t.setAttribute("aria-relevant","additions text"),t.setAttribute("aria-atomic","true"),document.querySelector("body").appendChild(t),t};!function(e){if("complete"===document.readyState||"loading"!==document.readyState&&!document.documentElement.doScroll)return e();document.addEventListener("DOMContentLoaded",e)}(function(){n=document.getElementById("a11y-speak-polite"),o=document.getElementById("a11y-speak-assertive"),null===n&&(n=a("polite")),null===o&&(o=a("assertive"))});e.exports=function(e,t){!function(){for(var e=document.querySelectorAll(".a11y-speak-region"),t=0;t<e.length;t++)e[t].textContent=""}(),e=e.replace(/<[^<>]+>/g," "),r===e&&(e+=" "),r=e,o&&"assertive"===t?o.textContent=e:n&&(n.textContent=e)}},469:function(e,t,n){"use strict";var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),r=function(e){return e&&e.__esModule?e:{default:e}}(n(46));var a=yoastReindexLinksData.data,i=!1,s=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.element=jQuery("#wpseo_count_index_links"),this.progressbarTarget=jQuery("#wpseo_index_links_progressbar").progressbar({value:0}),this.total=parseInt(t,10),this.totalProcessed=0}return o(e,[{key:"update",value:function(e){this.totalProcessed+=e;var t=this.totalProcessed*(100/this.total);this.progressbarTarget.progressbar("value",Math.round(t)),this.element.html(this.totalProcessed)}},{key:"complete",value:function(){this.progressbarTarget.progressbar("value",100)}}]),e}();function u(){return new Promise(function(e){!function e(t,n){jQuery.ajax({type:"GET",url:a.restApi.root+a.restApi.endpoint,beforeSend:function(e){e.setRequestHeader("X-WP-Nonce",a.restApi.nonce)},success:function(o){var r=parseInt(o,10);if(0!==r)return t.update(r),void e(t,n);t.complete(),n()}})}(new s(a.amount),e)})}function l(){i=!0,(0,r.default)(a.l10n.calculationCompleted),jQuery("#reindexLinks").html(a.message.indexingCompleted),tb_remove()}function c(){jQuery("#general-tab").click(),!1===i&&jQuery("#openLinkIndexing").click()}jQuery(function(){var e=!1;jQuery(".yoast-js-calculate-index-links--all ").on("click",function(){!1===e&&(function(){(0,r.default)(a.l10n.calculationInProgress);var e=[];e.push(u()),Promise.all(e).then(l)}(),e=!0)}),jQuery("#noticeRunLinkIndex").click(c),-1!==window.location.href.indexOf("&reIndexLinks=1")&&jQuery(c)})}},[[469,0]]]);
\ No newline at end of file
(window.yoastWebpackJsonp=window.yoastWebpackJsonp||[]).push([[21],{469:function(e,t,o){"use strict";var n="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},r=new RegExp("\\[[^<>&/\\[\\]\0- =]+?( [^\\]]+?)?\\]","g"),i=new RegExp("\\[/[^<>&/\\[\\]\0- =]+?\\]","g");!function(){var e=function(e){var t=e.registerPlugin,o=e.registerModification,n=e.pluginReady,r=e.pluginReloaded;this._registerModification=o,this._pluginReady=n,this._pluginReloaded=r,t("YoastShortcodePlugin",{status:"loading"}),this.bindElementEvents();var i="("+wpseoShortcodePluginL10n.wpseo_shortcode_tags.join("|")+")";this.keywordRegex=new RegExp(i,"g"),this.closingTagRegex=new RegExp("\\[\\/"+i+"\\]","g"),this.nonCaptureRegex=new RegExp("\\["+i+"[^\\]]*?\\]","g"),this.parsedShortcodes=[],this.loadShortcodes(this.declareReady.bind(this))};e.prototype.declareReady=function(){this._pluginReady("YoastShortcodePlugin"),this.registerModifications()},e.prototype.declareReloaded=function(){this._pluginReloaded("YoastShortcodePlugin")},e.prototype.registerModifications=function(){this._registerModification("content",this.replaceShortcodes.bind(this),"YoastShortcodePlugin")},e.prototype.removeUnknownShortCodes=function(e){return e=(e=e.replace(r,"")).replace(i,"")},e.prototype.replaceShortcodes=function(e){var t=this.parsedShortcodes;if("string"==typeof e&&t.length>0)for(var o=0;o<t.length;o++)e=e.replace(t[o].shortcode,t[o].output);return e=this.removeUnknownShortCodes(e)},e.prototype.loadShortcodes=function(e){var t=this.getUnparsedShortcodes(this.getShortcodes(this.getContentTinyMCE()));if(!(t.length>0))return e();this.parseShortcodes(t,e)},e.prototype.bindElementEvents=function(){var e=document.getElementById("content")||!1,t=_.debounce(this.loadShortcodes.bind(this,this.declareReloaded.bind(this)),500);e&&(e.addEventListener("keyup",t),e.addEventListener("change",t)),"undefined"!=typeof tinyMCE&&"function"==typeof tinyMCE.on&&tinyMCE.on("addEditor",function(e){e.editor.on("change",t),e.editor.on("keyup",t)})},e.prototype.getContentTinyMCE=function(){var e=document.getElementById("content")&&document.getElementById("content").value||"";return"undefined"!=typeof tinyMCE&&void 0!==tinyMCE.editors&&0!==tinyMCE.editors.length&&(e=tinyMCE.get("content")&&tinyMCE.get("content").getContent()||""),e},e.prototype.getUnparsedShortcodes=function(e){if("object"!==(void 0===e?"undefined":n(e)))return console.error("Failed to get unparsed shortcodes. Expected parameter to be an array, instead received "+(void 0===e?"undefined":n(e))),!1;for(var t=[],o=0;o<e.length;o++){var r=e[o];-1===t.indexOf(r)&&this.isUnparsedShortcode(r)&&t.push(r)}return t},e.prototype.isUnparsedShortcode=function(e){for(var t=!1,o=0;o<this.parsedShortcodes.length;o++)this.parsedShortcodes[o].shortcode===e&&(t=!0);return!1===t},e.prototype.getShortcodes=function(e){if("string"!=typeof e)return console.error("Failed to get shortcodes. Expected parameter to be a string, instead received"+(void 0===e?"undefined":n(e))),!1;for(var t=this.matchCapturingShortcodes(e),o=0;o<t.length;o++)e=e.replace(t[o],"");var r=this.matchNonCapturingShortcodes(e);return t.concat(r)},e.prototype.matchCapturingShortcodes=function(e){for(var t=[],o=(e.match(this.closingTagRegex)||[]).join(" ").match(this.keywordRegex)||[],n=0;n<o.length;n++){var r=o[n],i="\\["+r+"[^\\]]*?\\].*?\\[\\/"+r+"\\]",d=e.match(new RegExp(i,"g"))||[];t=t.concat(d)}return t},e.prototype.matchNonCapturingShortcodes=function(e){return e.match(this.nonCaptureRegex)||[]},e.prototype.parseShortcodes=function(e,t){return"function"!=typeof t?(console.error("Failed to parse shortcodes. Expected parameter to be a function, instead received "+(void 0===t?"undefined":n(t))),!1):"object"===(void 0===e?"undefined":n(e))&&e.length>0?void jQuery.post(ajaxurl,{action:"wpseo_filter_shortcodes",_wpnonce:wpseoShortcodePluginL10n.wpseo_filter_shortcodes_nonce,data:e},function(e){this.saveParsedShortcodes(e,t)}.bind(this)):t()},e.prototype.saveParsedShortcodes=function(e,t){e=JSON.parse(e);for(var o=0;o<e.length;o++)this.parsedShortcodes.push(e[o]);t()},window.YoastShortcodePlugin=e}()}},[[469,0]]]);
\ No newline at end of file
(window.yoastWebpackJsonp=window.yoastWebpackJsonp||[]).push([[21],{470:function(e,t,o){"use strict";var n="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},r=new RegExp("\\[[^<>&/\\[\\]\0- =]+?( [^\\]]+?)?\\]","g"),i=new RegExp("\\[/[^<>&/\\[\\]\0- =]+?\\]","g");!function(){var e=function(e){var t=e.registerPlugin,o=e.registerModification,n=e.pluginReady,r=e.pluginReloaded;this._registerModification=o,this._pluginReady=n,this._pluginReloaded=r,t("YoastShortcodePlugin",{status:"loading"}),this.bindElementEvents();var i="("+wpseoShortcodePluginL10n.wpseo_shortcode_tags.join("|")+")";this.keywordRegex=new RegExp(i,"g"),this.closingTagRegex=new RegExp("\\[\\/"+i+"\\]","g"),this.nonCaptureRegex=new RegExp("\\["+i+"[^\\]]*?\\]","g"),this.parsedShortcodes=[],this.loadShortcodes(this.declareReady.bind(this))};e.prototype.declareReady=function(){this._pluginReady("YoastShortcodePlugin"),this.registerModifications()},e.prototype.declareReloaded=function(){this._pluginReloaded("YoastShortcodePlugin")},e.prototype.registerModifications=function(){this._registerModification("content",this.replaceShortcodes.bind(this),"YoastShortcodePlugin")},e.prototype.removeUnknownShortCodes=function(e){return e=(e=e.replace(r,"")).replace(i,"")},e.prototype.replaceShortcodes=function(e){var t=this.parsedShortcodes;if("string"==typeof e&&t.length>0)for(var o=0;o<t.length;o++)e=e.replace(t[o].shortcode,t[o].output);return e=this.removeUnknownShortCodes(e)},e.prototype.loadShortcodes=function(e){var t=this.getUnparsedShortcodes(this.getShortcodes(this.getContentTinyMCE()));if(!(t.length>0))return e();this.parseShortcodes(t,e)},e.prototype.bindElementEvents=function(){var e=document.getElementById("content")||!1,t=_.debounce(this.loadShortcodes.bind(this,this.declareReloaded.bind(this)),500);e&&(e.addEventListener("keyup",t),e.addEventListener("change",t)),"undefined"!=typeof tinyMCE&&"function"==typeof tinyMCE.on&&tinyMCE.on("addEditor",function(e){e.editor.on("change",t),e.editor.on("keyup",t)})},e.prototype.getContentTinyMCE=function(){var e=document.getElementById("content")&&document.getElementById("content").value||"";return"undefined"!=typeof tinyMCE&&void 0!==tinyMCE.editors&&0!==tinyMCE.editors.length&&(e=tinyMCE.get("content")&&tinyMCE.get("content").getContent()||""),e},e.prototype.getUnparsedShortcodes=function(e){if("object"!==(void 0===e?"undefined":n(e)))return console.error("Failed to get unparsed shortcodes. Expected parameter to be an array, instead received "+(void 0===e?"undefined":n(e))),!1;for(var t=[],o=0;o<e.length;o++){var r=e[o];-1===t.indexOf(r)&&this.isUnparsedShortcode(r)&&t.push(r)}return t},e.prototype.isUnparsedShortcode=function(e){for(var t=!1,o=0;o<this.parsedShortcodes.length;o++)this.parsedShortcodes[o].shortcode===e&&(t=!0);return!1===t},e.prototype.getShortcodes=function(e){if("string"!=typeof e)return console.error("Failed to get shortcodes. Expected parameter to be a string, instead received"+(void 0===e?"undefined":n(e))),!1;for(var t=this.matchCapturingShortcodes(e),o=0;o<t.length;o++)e=e.replace(t[o],"");var r=this.matchNonCapturingShortcodes(e);return t.concat(r)},e.prototype.matchCapturingShortcodes=function(e){for(var t=[],o=(e.match(this.closingTagRegex)||[]).join(" ").match(this.keywordRegex)||[],n=0;n<o.length;n++){var r=o[n],i="\\["+r+"[^\\]]*?\\].*?\\[\\/"+r+"\\]",d=e.match(new RegExp(i,"g"))||[];t=t.concat(d)}return t},e.prototype.matchNonCapturingShortcodes=function(e){return e.match(this.nonCaptureRegex)||[]},e.prototype.parseShortcodes=function(e,t){return"function"!=typeof t?(console.error("Failed to parse shortcodes. Expected parameter to be a function, instead received "+(void 0===t?"undefined":n(t))),!1):"object"===(void 0===e?"undefined":n(e))&&e.length>0?void jQuery.post(ajaxurl,{action:"wpseo_filter_shortcodes",_wpnonce:wpseoShortcodePluginL10n.wpseo_filter_shortcodes_nonce,data:e},function(e){this.saveParsedShortcodes(e,t)}.bind(this)):t()},e.prototype.saveParsedShortcodes=function(e,t){e=JSON.parse(e);for(var o=0;o<e.length;o++)this.parsedShortcodes.push(e[o]);t()},window.YoastShortcodePlugin=e}()}},[[470,0]]]);
\ No newline at end of file
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment