Version Description
Download this release
Release Info
Developer | thingalon |
Plugin | Jetpack Boost – Website Speed, Performance and Critical CSS |
Version | 1.5.0 |
Comparing to | |
See all releases |
Code changes from version 1.4.2 to 1.5.0
- .eslintrc.cjs +8 -38
- CHANGELOG.md +20 -3
- app/admin/class-admin.php +35 -119
- app/admin/class-config.php +171 -0
- app/assets/dist/jetpack-boost.css +1 -1039
- app/assets/dist/jetpack-boost.js +9 -1
- app/assets/static/images/boost.png +0 -0
- app/assets/static/images/check.svg +8 -0
- app/assets/static/images/color-shift.svg +41 -0
- app/assets/static/images/forward.svg +3 -0
- app/class-jetpack-boost.php +11 -4
- app/contracts/Boost_API_Client.php +8 -0
- app/features/optimizations/Optimizations.php +8 -2
- app/features/optimizations/cloud-css/Cloud_CSS.php +70 -5
- app/features/optimizations/cloud-css/Cloud_CSS_Cron.php +57 -0
- app/features/optimizations/cloud-css/Cloud_CSS_Request.php +4 -17
- app/features/optimizations/critical-css/CSS_Proxy.php +1 -1
- app/features/optimizations/critical-css/Generator.php +14 -11
- app/features/optimizations/render-blocking-js/class-render-blocking-js.php +19 -9
- app/features/speed-score/Speed_Score.php +9 -14
- app/features/speed-score/Speed_Score_History.php +41 -2
- app/features/speed-score/Speed_Score_Request.php +1 -1
- app/lib/Boost_API.php +9 -0
- app/lib/Premium_Features.php +36 -0
- app/lib/Premium_Pricing.php +31 -0
- app/lib/WPCOM_Boost_API_Client.php +7 -0
- app/lib/class-connection.php +2 -23
- app/lib/class-environment-change-detector.php +3 -3
- app/lib/class-url.php +7 -5
- app/lib/critical-css/Critical_CSS_Invalidator.php +4 -1
- app/lib/critical-css/Critical_CSS_State.php +39 -30
- app/rest-api/endpoints/Cloud_CSS_Status.php +3 -3
- app/rest-api/endpoints/Config_State.php +30 -0
- app/rest-api/endpoints/Optimization_Status.php +1 -1
- app/rest-api/endpoints/Optimizations_Status.php +30 -0
- app/rest-api/endpoints/Update_Cloud_CSS.php +3 -23
- composer.json +7 -8
- jetpack-boost.php +5 -5
- jetpack_vendor/automattic/jetpack-a8c-mc-stats/CHANGELOG.md +10 -0
- jetpack_vendor/automattic/jetpack-a8c-mc-stats/composer.json +2 -3
- jetpack_vendor/automattic/jetpack-admin-ui/CHANGELOG.md +15 -0
- jetpack_vendor/automattic/jetpack-admin-ui/composer.json +2 -2
- jetpack_vendor/automattic/jetpack-admin-ui/src/class-admin-menu.php +1 -1
- jetpack_vendor/automattic/jetpack-assets/CHANGELOG.md +38 -0
- jetpack_vendor/automattic/jetpack-assets/build/i18n-loader.asset.php +1 -1
- jetpack_vendor/automattic/jetpack-assets/build/i18n-loader.js +1 -1
- jetpack_vendor/automattic/jetpack-assets/composer.json +2 -2
- jetpack_vendor/automattic/jetpack-assets/package.json +5 -3
- jetpack_vendor/automattic/jetpack-assets/src/class-assets.php +2 -1
- jetpack_vendor/automattic/jetpack-assets/src/js/i18n-loader.js +1 -1
- jetpack_vendor/automattic/jetpack-config/CHANGELOG.md +23 -0
- jetpack_vendor/automattic/jetpack-config/composer.json +2 -2
- jetpack_vendor/automattic/jetpack-config/src/class-config.php +46 -1
- jetpack_vendor/automattic/jetpack-connection/CHANGELOG.md +93 -0
- jetpack_vendor/automattic/jetpack-connection/README.md +3 -3
- jetpack_vendor/automattic/jetpack-connection/composer.json +9 -5
- jetpack_vendor/automattic/jetpack-connection/dist/tracks-ajax.asset.php +1 -0
- jetpack_vendor/automattic/jetpack-connection/dist/tracks-ajax.js +1 -0
- jetpack_vendor/automattic/jetpack-connection/dist/tracks-callables.asset.php +1 -0
- jetpack_vendor/automattic/jetpack-connection/dist/tracks-callables.js +1 -0
- jetpack_vendor/automattic/{jetpack-options → jetpack-connection}/legacy/class-jetpack-options.php +3 -1
- jetpack_vendor/automattic/jetpack-connection/legacy/class-jetpack-signature.php +8 -7
- jetpack_vendor/automattic/jetpack-connection/legacy/class-jetpack-tracks-client.php +3 -3
- jetpack_vendor/automattic/{jetpack-heartbeat → jetpack-connection}/src/class-heartbeat.php +3 -3
- jetpack_vendor/automattic/jetpack-connection/src/class-initial-state.php +7 -0
- jetpack_vendor/automattic/jetpack-connection/src/class-manager.php +26 -52
- jetpack_vendor/automattic/jetpack-connection/src/class-package-version.php +1 -1
- jetpack_vendor/automattic/jetpack-connection/src/class-plugin-storage.php +22 -22
- jetpack_vendor/automattic/jetpack-connection/src/class-plugin.php +8 -4
- jetpack_vendor/automattic/jetpack-connection/src/class-rest-connector.php +17 -34
- jetpack_vendor/automattic/jetpack-connection/src/class-tokens.php +96 -0
- jetpack_vendor/automattic/jetpack-connection/src/class-tracking.php +29 -33
- jetpack_vendor/automattic/jetpack-connection/src/class-webhooks.php +51 -0
- jetpack_vendor/automattic/jetpack-connection/src/js/tracks-ajax.js +10 -9
- jetpack_vendor/automattic/jetpack-connection/src/js/tracks-callables.js +20 -9
- jetpack_vendor/automattic/jetpack-connection/src/webhooks/class-authorize-redirect.php +1 -1
- jetpack_vendor/automattic/jetpack-constants/CHANGELOG.md +10 -0
- jetpack_vendor/automattic/jetpack-constants/composer.json +2 -3
- jetpack_vendor/automattic/jetpack-device-detection/CHANGELOG.md +15 -0
- jetpack_vendor/automattic/jetpack-device-detection/composer.json +2 -2
- jetpack_vendor/automattic/jetpack-device-detection/src/class-device-detection.php +11 -4
- jetpack_vendor/automattic/jetpack-device-detection/src/class-user-agent-info.php +46 -44
- jetpack_vendor/automattic/jetpack-device-detection/src/functions.php +27 -0
- jetpack_vendor/automattic/jetpack-heartbeat/CHANGELOG.md +0 -123
- jetpack_vendor/automattic/jetpack-heartbeat/README.md +0 -38
- jetpack_vendor/automattic/jetpack-heartbeat/composer.json +0 -32
- jetpack_vendor/automattic/jetpack-lazy-images/CHANGELOG.md +45 -0
- jetpack_vendor/automattic/jetpack-lazy-images/composer.json +2 -2
- jetpack_vendor/automattic/jetpack-lazy-images/dist/intersection-observer.asset.php +1 -1
- jetpack_vendor/automattic/jetpack-lazy-images/dist/lazy-images.asset.php +1 -1
- jetpack_vendor/automattic/jetpack-lazy-images/dist/lazy-images.js +1 -1
- jetpack_vendor/automattic/jetpack-lazy-images/src/js/lazy-images.js +14 -15
- jetpack_vendor/automattic/jetpack-lazy-images/src/lazy-images.php +39 -9
- jetpack_vendor/automattic/jetpack-lazy-images/webpack.config.js +1 -1
- jetpack_vendor/automattic/jetpack-licensing/CHANGELOG.md +232 -0
- jetpack_vendor/automattic/{jetpack-heartbeat → jetpack-licensing}/LICENSE.txt +0 -0
- jetpack_vendor/automattic/jetpack-licensing/README.md +25 -0
- jetpack_vendor/automattic/{jetpack-heartbeat → jetpack-licensing}/SECURITY.md +0 -0
- jetpack_vendor/automattic/jetpack-licensing/composer.json +49 -0
- jetpack_vendor/automattic/jetpack-licensing/src/class-endpoints.php +448 -0
- jetpack_vendor/automattic/jetpack-licensing/src/class-licensing.php +286 -0
- jetpack_vendor/automattic/jetpack-my-jetpack/CHANGELOG.md +110 -3
- jetpack_vendor/automattic/jetpack-my-jetpack/README.md +4 -0
- jetpack_vendor/automattic/jetpack-my-jetpack/build/images/jetpack-license-activation-with-lock-7b01c1a4cf56de799cd7.png +0 -0
- jetpack_vendor/automattic/jetpack-my-jetpack/build/images/jetpack-license-activation-with-success-cad524ede4e793cc0ece.png +0 -0
- jetpack_vendor/automattic/jetpack-my-jetpack/build/index.asset.php +1 -1
- jetpack_vendor/automattic/jetpack-my-jetpack/build/index.css +1 -1
- jetpack_vendor/automattic/jetpack-my-jetpack/build/index.js +6 -6
- jetpack_vendor/automattic/jetpack-my-jetpack/build/index.js.LICENSE.txt +0 -15
- jetpack_vendor/automattic/jetpack-my-jetpack/build/index.rtl.css +1 -1
.eslintrc.cjs
CHANGED
@@ -1,46 +1,31 @@
|
|
1 |
-
|
|
|
2 |
|
3 |
module.exports = {
|
4 |
root: true,
|
5 |
-
parser: '@typescript-eslint/parser',
|
6 |
extends: [
|
7 |
-
'
|
8 |
-
'
|
9 |
-
'
|
10 |
-
'plugin:@wordpress/eslint-plugin/recommended',
|
11 |
],
|
12 |
ignorePatterns: loadIgnorePatterns( __dirname ),
|
13 |
parserOptions: {
|
14 |
babelOptions: {
|
15 |
configFile: require.resolve( './babel.config.js' ),
|
16 |
},
|
17 |
-
ecmaVersion: 2020,
|
18 |
sourceType: 'module',
|
19 |
tsconfigRootDir: __dirname,
|
20 |
project: [ './tsconfig.json' ],
|
21 |
-
extraFileExtensions: [ '.svelte' ],
|
22 |
},
|
23 |
overrides: [
|
|
|
24 |
{
|
25 |
files: [ '*.js', '*.cjs' ],
|
26 |
-
|
27 |
-
|
28 |
-
},
|
29 |
-
{
|
30 |
-
files: [ '*.cjs' ],
|
31 |
-
rules: {
|
32 |
-
'@typescript-eslint/no-var-requires': 0,
|
33 |
},
|
34 |
},
|
35 |
-
{
|
36 |
-
files: [ '*.svelte' ],
|
37 |
-
processor: 'svelte3/svelte3',
|
38 |
-
},
|
39 |
],
|
40 |
-
settings: {
|
41 |
-
'svelte3/typescript': true,
|
42 |
-
},
|
43 |
-
plugins: [ 'svelte3', '@typescript-eslint' ],
|
44 |
rules: {
|
45 |
// Enforce the use of the jetpack-boost textdomain.
|
46 |
'@wordpress/i18n-text-domain': [
|
@@ -53,21 +38,6 @@ module.exports = {
|
|
53 |
// Apparently, we like dangling commas
|
54 |
'comma-dangle': 0,
|
55 |
|
56 |
-
// This produces false positives with TypeScript types
|
57 |
-
'no-duplicate-imports': 0,
|
58 |
-
|
59 |
-
// This rule is not recommended for TypeScript projects. According to
|
60 |
-
// the Typescript-eslint FAQ, TypeScript handles this rule itself at
|
61 |
-
// compile-time and does a better job than eslint can.
|
62 |
-
// Ref: https://github.com/typescript-eslint/typescript-eslint/blob/master/docs/getting-started/linting/FAQ.md#i-get-errors-from-the-no-undef-rule-about-global-variables-not-being-defined-even-though-there-are-no-typescript-errors
|
63 |
-
'no-undef': 0,
|
64 |
-
|
65 |
-
// This rule is for React projects; it prevents components which are not
|
66 |
-
// yet mounted in the DOM from attaching to the window directly. Not
|
67 |
-
// relevant in a svelte project.
|
68 |
-
// Ref: https://github.com/WordPress/gutenberg/pull/26810
|
69 |
-
'@wordpress/no-global-event-listener': 0,
|
70 |
-
|
71 |
'jsdoc/no-undefined-types': [
|
72 |
1,
|
73 |
{
|
1 |
+
// eslint-disable-next-line import/no-extraneous-dependencies
|
2 |
+
const loadIgnorePatterns = require( 'jetpack-js-tools/load-eslint-ignore.js' );
|
3 |
|
4 |
module.exports = {
|
5 |
root: true,
|
|
|
6 |
extends: [
|
7 |
+
require.resolve( 'jetpack-js-tools/eslintrc/base' ),
|
8 |
+
require.resolve( 'jetpack-js-tools/eslintrc/wp-eslint-plugin/recommended' ),
|
9 |
+
require.resolve( 'jetpack-js-tools/eslintrc/svelte' ),
|
|
|
10 |
],
|
11 |
ignorePatterns: loadIgnorePatterns( __dirname ),
|
12 |
parserOptions: {
|
13 |
babelOptions: {
|
14 |
configFile: require.resolve( './babel.config.js' ),
|
15 |
},
|
|
|
16 |
sourceType: 'module',
|
17 |
tsconfigRootDir: __dirname,
|
18 |
project: [ './tsconfig.json' ],
|
|
|
19 |
},
|
20 |
overrides: [
|
21 |
+
// .js and .cjs files in the root are not part of the TypeScript project.
|
22 |
{
|
23 |
files: [ '*.js', '*.cjs' ],
|
24 |
+
parserOptions: {
|
25 |
+
project: null,
|
|
|
|
|
|
|
|
|
|
|
26 |
},
|
27 |
},
|
|
|
|
|
|
|
|
|
28 |
],
|
|
|
|
|
|
|
|
|
29 |
rules: {
|
30 |
// Enforce the use of the jetpack-boost textdomain.
|
31 |
'@wordpress/i18n-text-domain': [
|
38 |
// Apparently, we like dangling commas
|
39 |
'comma-dangle': 0,
|
40 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
41 |
'jsdoc/no-undefined-types': [
|
42 |
1,
|
43 |
{
|
CHANGELOG.md
CHANGED
@@ -5,6 +5,24 @@ All notable changes to this project will be documented in this file.
|
|
5 |
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
|
6 |
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
7 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
8 |
## [1.4.2] - 2022-04-11
|
9 |
### Fixed
|
10 |
- Fixed critical CSS generation failure while using a CDN to serve CSS
|
@@ -18,9 +36,6 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
18 |
- General: Updated Boost Dashboard heading logo.
|
19 |
- Lazy Loading: Updated Image Lazy Loading to reflect Jetpack's Lazy Loading setting.
|
20 |
|
21 |
-
### Fixed
|
22 |
-
- General: Clean up use of FILTER_SANITIZE_STRING as it is deprecated in PHP 8.1
|
23 |
-
|
24 |
## 1.4.0 - 2022-02-28
|
25 |
### Added
|
26 |
- UI: Adds My Jetpack functionality for consistent UI across all Jetpack plugins.
|
@@ -141,5 +156,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
141 |
[1.3.1-beta]: https://github.com/Automattic/jetpack-boost-production/compare/v1.3.0-beta...v1.3.1-beta
|
142 |
[1.3.0-beta]: https://github.com/Automattic/jetpack-boost-production/compare/v1.2.0...v1.3.0-beta
|
143 |
[1.2.0]: https://github.com/Automattic/jetpack-boost-production/compare/v1.1.0...v1.2.0-beta
|
|
|
|
|
144 |
[1.4.2]: https://github.com/Automattic/jetpack-boost-production/compare/v1.4.1...v1.4.2
|
145 |
[1.4.1]: https://github.com/Automattic/jetpack-boost-production/compare/v1.4.0...v1.4.1
|
5 |
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
|
6 |
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
7 |
|
8 |
+
## [1.5.0] - 2022-06-27
|
9 |
+
### Added
|
10 |
+
- Cloud CSS: Added support for generating Critical CSS in the cloud.
|
11 |
+
- Critical CSS: Added an explanation for Console output during Critical CSS Generation.
|
12 |
+
- General: Added an option to purchase a premium Jetpack Boost plan.
|
13 |
+
- General: Added option to contact premium support for paid users.
|
14 |
+
- Speed Scores: Added prompt for reaching out to support when the speed score decreases.
|
15 |
+
|
16 |
+
### Changed
|
17 |
+
- General: Remove soft disconnect.
|
18 |
+
- General: Remove use of `pnpx` in preparation for pnpm 7.0.
|
19 |
+
- General: Renamed hook `handle_theme_change` to `handle_environment_change`
|
20 |
+
- General: Updated external links to use Jetpack Redirects.
|
21 |
+
|
22 |
+
### Fixed
|
23 |
+
- General: Clean up use of FILTER_SANITIZE_STRING as it is deprecated in PHP 8.1
|
24 |
+
- Stability: Fix broken SQL query on uninstall.
|
25 |
+
|
26 |
## [1.4.2] - 2022-04-11
|
27 |
### Fixed
|
28 |
- Fixed critical CSS generation failure while using a CDN to serve CSS
|
36 |
- General: Updated Boost Dashboard heading logo.
|
37 |
- Lazy Loading: Updated Image Lazy Loading to reflect Jetpack's Lazy Loading setting.
|
38 |
|
|
|
|
|
|
|
39 |
## 1.4.0 - 2022-02-28
|
40 |
### Added
|
41 |
- UI: Adds My Jetpack functionality for consistent UI across all Jetpack plugins.
|
156 |
[1.3.1-beta]: https://github.com/Automattic/jetpack-boost-production/compare/v1.3.0-beta...v1.3.1-beta
|
157 |
[1.3.0-beta]: https://github.com/Automattic/jetpack-boost-production/compare/v1.2.0...v1.3.0-beta
|
158 |
[1.2.0]: https://github.com/Automattic/jetpack-boost-production/compare/v1.1.0...v1.2.0-beta
|
159 |
+
[1.4.3-beta]: https://github.com/Automattic/jetpack-boost-production/compare/v1.4.2...v1.4.3-beta
|
160 |
+
[1.5.0]: https://github.com/Automattic/jetpack-boost-production/compare/v1.4.1...v1.5.0
|
161 |
[1.4.2]: https://github.com/Automattic/jetpack-boost-production/compare/v1.4.1...v1.4.2
|
162 |
[1.4.1]: https://github.com/Automattic/jetpack-boost-production/compare/v1.4.0...v1.4.1
|
app/admin/class-admin.php
CHANGED
@@ -9,13 +9,13 @@
|
|
9 |
namespace Automattic\Jetpack_Boost\Admin;
|
10 |
|
11 |
use Automattic\Jetpack\Admin_UI\Admin_Menu;
|
12 |
-
use Automattic\Jetpack\Status;
|
13 |
use Automattic\Jetpack_Boost\Features\Optimizations\Optimizations;
|
14 |
use Automattic\Jetpack_Boost\Features\Speed_Score\Speed_Score;
|
15 |
use Automattic\Jetpack_Boost\Jetpack_Boost;
|
16 |
use Automattic\Jetpack_Boost\Lib\Analytics;
|
17 |
use Automattic\Jetpack_Boost\Lib\Environment_Change_Detector;
|
18 |
-
use Automattic\Jetpack_Boost\
|
|
|
19 |
|
20 |
class Admin {
|
21 |
|
@@ -24,21 +24,11 @@ class Admin {
|
|
24 |
*/
|
25 |
const MENU_SLUG = 'jetpack-boost';
|
26 |
|
27 |
-
/**
|
28 |
-
* Nonce action for setting the status of show_rating_prompt.
|
29 |
-
*/
|
30 |
-
const SET_SHOW_RATING_PROMPT_NONCE = 'set_show_rating_prompt';
|
31 |
-
|
32 |
/**
|
33 |
* Option to store options that have been dismissed.
|
34 |
*/
|
35 |
const DISMISSED_NOTICE_OPTION = 'jb-dismissed-notices';
|
36 |
|
37 |
-
/**
|
38 |
-
* Name of option to store status of show/hide rating prompts
|
39 |
-
*/
|
40 |
-
const SHOW_RATING_PROMPT_OPTION = 'jb_show_rating_prompt';
|
41 |
-
|
42 |
/**
|
43 |
* Main plugin instance.
|
44 |
*
|
@@ -53,15 +43,25 @@ class Admin {
|
|
53 |
*/
|
54 |
private $speed_score;
|
55 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
56 |
public function __construct( Optimizations $modules ) {
|
57 |
$this->modules = $modules;
|
58 |
$this->speed_score = new Speed_Score( $modules );
|
59 |
Environment_Change_Detector::init();
|
|
|
|
|
|
|
|
|
60 |
|
61 |
add_action( 'init', array( new Analytics(), 'init' ) );
|
62 |
add_filter( 'plugin_action_links_' . JETPACK_BOOST_PLUGIN_BASE, array( $this, 'plugin_page_settings_link' ) );
|
63 |
add_action( 'admin_notices', array( $this, 'show_notices' ) );
|
64 |
-
add_action( 'wp_ajax_set_show_rating_prompt', array( $this, 'handle_set_show_rating_prompt' ) );
|
65 |
add_filter( 'jetpack_boost_js_constants', array( $this, 'add_js_constants' ) );
|
66 |
|
67 |
$this->handle_get_parameters();
|
@@ -80,6 +80,9 @@ class Admin {
|
|
80 |
* Enqueue scripts and styles for the admin page.
|
81 |
*/
|
82 |
public function admin_init() {
|
|
|
|
|
|
|
83 |
add_action( 'admin_enqueue_scripts', array( $this, 'enqueue_styles' ) );
|
84 |
add_action( 'admin_enqueue_scripts', array( $this, 'enqueue_scripts' ) );
|
85 |
}
|
@@ -113,47 +116,15 @@ class Admin {
|
|
113 |
wp_register_script(
|
114 |
$admin_js_handle,
|
115 |
plugins_url( $internal_path . 'jetpack-boost.js', JETPACK_BOOST_PATH ),
|
116 |
-
array(),
|
117 |
JETPACK_BOOST_VERSION,
|
118 |
true
|
119 |
);
|
120 |
|
121 |
-
$optimizations = ( new Optimizations() )->get_status();
|
122 |
-
// Prepare configuration constants for JavaScript.
|
123 |
-
$constants = array(
|
124 |
-
'version' => JETPACK_BOOST_VERSION,
|
125 |
-
'api' => array(
|
126 |
-
'namespace' => JETPACK_BOOST_REST_NAMESPACE,
|
127 |
-
'prefix' => JETPACK_BOOST_REST_PREFIX,
|
128 |
-
),
|
129 |
-
'optimizations' => $optimizations,
|
130 |
-
'locale' => get_locale(),
|
131 |
-
'site' => array(
|
132 |
-
'url' => get_home_url(),
|
133 |
-
'online' => ! ( new Status() )->is_offline_mode(),
|
134 |
-
'assetPath' => plugins_url( $internal_path, JETPACK_BOOST_PATH ),
|
135 |
-
),
|
136 |
-
'shownAdminNoticeIds' => $this->get_shown_admin_notice_ids(),
|
137 |
-
'preferences' => array(
|
138 |
-
'showRatingPrompt' => $this->get_show_rating_prompt(),
|
139 |
-
),
|
140 |
-
|
141 |
-
/**
|
142 |
-
* A bit of necessary magic,
|
143 |
-
* Explained more in the Nonce class.
|
144 |
-
*
|
145 |
-
* Nonces are automatically generated when registering routes.
|
146 |
-
*/
|
147 |
-
'nonces' => Nonce::get_generated_nonces(),
|
148 |
-
);
|
149 |
-
|
150 |
-
// Give each module an opportunity to define extra constants.
|
151 |
-
$constants = apply_filters( 'jetpack_boost_js_constants', $constants );
|
152 |
-
|
153 |
wp_localize_script(
|
154 |
$admin_js_handle,
|
155 |
'Jetpack_Boost',
|
156 |
-
$constants
|
157 |
);
|
158 |
|
159 |
wp_set_script_translations( $admin_js_handle, 'jetpack-boost' );
|
@@ -191,12 +162,17 @@ class Admin {
|
|
191 |
}
|
192 |
|
193 |
/**
|
194 |
-
*
|
195 |
-
*
|
196 |
-
* @return bool
|
197 |
*/
|
198 |
-
public function
|
199 |
-
return
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
200 |
}
|
201 |
|
202 |
/**
|
@@ -209,7 +185,7 @@ class Admin {
|
|
209 |
$notices = $this->get_admin_notices();
|
210 |
|
211 |
// Filter out any that have been dismissed, unless newer than the dismissal.
|
212 |
-
$dismissed_notices =
|
213 |
$notices = array_filter(
|
214 |
$notices,
|
215 |
function ( $notice ) use ( $dismissed_notices ) {
|
@@ -230,28 +206,12 @@ class Admin {
|
|
230 |
}
|
231 |
}
|
232 |
|
233 |
-
/**
|
234 |
-
* Returns an array of notice ids (i.e.: jetpack-boost-notice-[slug]) for all
|
235 |
-
* visible admin notices.
|
236 |
-
*
|
237 |
-
* @return array List of notice ids.
|
238 |
-
*/
|
239 |
-
private function get_shown_admin_notice_ids() {
|
240 |
-
$notices = $this->get_admin_notices();
|
241 |
-
$ids = array();
|
242 |
-
foreach ( $notices as $notice ) {
|
243 |
-
$ids[] = $notice->get_id();
|
244 |
-
}
|
245 |
-
|
246 |
-
return $ids;
|
247 |
-
}
|
248 |
-
|
249 |
/**
|
250 |
* Returns a list of admin notices to show. Asks each module to provide admin notices the user needs to see.
|
251 |
*
|
252 |
* @return \Automattic\Jetpack_Boost\Admin\Admin_Notice[]
|
253 |
*/
|
254 |
-
public function get_admin_notices() {
|
255 |
return apply_filters( 'jetpack_boost_admin_notices', array() );
|
256 |
}
|
257 |
|
@@ -265,9 +225,9 @@ class Admin {
|
|
265 |
*/
|
266 |
public function handle_get_parameters() {
|
267 |
if ( is_admin() && ! empty( $_GET['jb-dismiss-notice'] ) ) {
|
268 |
-
$slug = sanitize_title( $_GET['jb-dismiss-notice'] );
|
269 |
|
270 |
-
$dismissed_notices =
|
271 |
|
272 |
if ( ! in_array( $slug, $dismissed_notices, true ) ) {
|
273 |
$dismissed_notices[] = $slug;
|
@@ -278,58 +238,13 @@ class Admin {
|
|
278 |
}
|
279 |
// phpcs:enable WordPress.Security.NonceVerification.Recommended
|
280 |
|
281 |
-
/**
|
282 |
-
* Handle the ajax request to set show-rating-prompt status.
|
283 |
-
*/
|
284 |
-
public function handle_set_show_rating_prompt() {
|
285 |
-
if ( check_ajax_referer( self::SET_SHOW_RATING_PROMPT_NONCE, 'nonce' ) && $this->check_for_permissions() ) {
|
286 |
-
$response = array(
|
287 |
-
'status' => 'ok',
|
288 |
-
);
|
289 |
-
|
290 |
-
$is_enabled = 'true' === $_POST['value'] ? '1' : '0';
|
291 |
-
\update_option( self::SHOW_RATING_PROMPT_OPTION, $is_enabled );
|
292 |
-
|
293 |
-
wp_send_json( $response );
|
294 |
-
} else {
|
295 |
-
$error = new \WP_Error( 'authorization', __( 'You do not have permission to take this action.', 'jetpack-boost' ) );
|
296 |
-
wp_send_json_error( $error, 403 );
|
297 |
-
}
|
298 |
-
}
|
299 |
-
|
300 |
-
/**
|
301 |
-
* Get the value of show_rating_prompt.
|
302 |
-
*
|
303 |
-
* This determines if there should be a prompt after speed score improvements. Initially the value is set to true by
|
304 |
-
* default. Once the user clicks on the rating button, it is switched to false.
|
305 |
-
*
|
306 |
-
* @return bool
|
307 |
-
*/
|
308 |
-
public function get_show_rating_prompt() {
|
309 |
-
return \get_option( self::SHOW_RATING_PROMPT_OPTION, '1' ) === '1';
|
310 |
-
}
|
311 |
-
|
312 |
-
/**
|
313 |
-
* Delete the option tracking which admin notices have been dismissed during deactivation.
|
314 |
-
*/
|
315 |
-
public static function clear_dismissed_notices() {
|
316 |
-
\delete_option( self::DISMISSED_NOTICE_OPTION );
|
317 |
-
}
|
318 |
-
|
319 |
-
/**
|
320 |
-
* Clear the status of show_rating_prompt
|
321 |
-
*/
|
322 |
-
public static function clear_show_rating_prompt() {
|
323 |
-
\delete_option( self::SHOW_RATING_PROMPT_OPTION );
|
324 |
-
}
|
325 |
-
|
326 |
/**
|
327 |
* Clear a specific admin notice.
|
328 |
*
|
329 |
* @param string $notice_slug The notice slug.
|
330 |
*/
|
331 |
public static function clear_dismissed_notice( $notice_slug ) {
|
332 |
-
$dismissed_notices =
|
333 |
|
334 |
if ( in_array( $notice_slug, $dismissed_notices, true ) ) {
|
335 |
array_splice( $dismissed_notices, array_search( $notice_slug, $dismissed_notices, true ), 1 );
|
@@ -347,7 +262,8 @@ class Admin {
|
|
347 |
*/
|
348 |
public function add_js_constants( $constants ) {
|
349 |
// Information about the current status of Critical CSS / generation.
|
350 |
-
$constants['showRatingPromptNonce'] = wp_create_nonce(
|
|
|
351 |
|
352 |
return $constants;
|
353 |
}
|
9 |
namespace Automattic\Jetpack_Boost\Admin;
|
10 |
|
11 |
use Automattic\Jetpack\Admin_UI\Admin_Menu;
|
|
|
12 |
use Automattic\Jetpack_Boost\Features\Optimizations\Optimizations;
|
13 |
use Automattic\Jetpack_Boost\Features\Speed_Score\Speed_Score;
|
14 |
use Automattic\Jetpack_Boost\Jetpack_Boost;
|
15 |
use Automattic\Jetpack_Boost\Lib\Analytics;
|
16 |
use Automattic\Jetpack_Boost\Lib\Environment_Change_Detector;
|
17 |
+
use Automattic\Jetpack_Boost\Lib\Premium_Features;
|
18 |
+
use Automattic\Jetpack_Boost\Lib\Premium_Pricing;
|
19 |
|
20 |
class Admin {
|
21 |
|
24 |
*/
|
25 |
const MENU_SLUG = 'jetpack-boost';
|
26 |
|
|
|
|
|
|
|
|
|
|
|
27 |
/**
|
28 |
* Option to store options that have been dismissed.
|
29 |
*/
|
30 |
const DISMISSED_NOTICE_OPTION = 'jb-dismissed-notices';
|
31 |
|
|
|
|
|
|
|
|
|
|
|
32 |
/**
|
33 |
* Main plugin instance.
|
34 |
*
|
43 |
*/
|
44 |
private $speed_score;
|
45 |
|
46 |
+
/**
|
47 |
+
* Configuration constants.
|
48 |
+
*
|
49 |
+
* @param Config $config
|
50 |
+
*/
|
51 |
+
private $config;
|
52 |
+
|
53 |
public function __construct( Optimizations $modules ) {
|
54 |
$this->modules = $modules;
|
55 |
$this->speed_score = new Speed_Score( $modules );
|
56 |
Environment_Change_Detector::init();
|
57 |
+
Premium_Pricing::init();
|
58 |
+
|
59 |
+
$this->config = new Config();
|
60 |
+
$this->config->init();
|
61 |
|
62 |
add_action( 'init', array( new Analytics(), 'init' ) );
|
63 |
add_filter( 'plugin_action_links_' . JETPACK_BOOST_PLUGIN_BASE, array( $this, 'plugin_page_settings_link' ) );
|
64 |
add_action( 'admin_notices', array( $this, 'show_notices' ) );
|
|
|
65 |
add_filter( 'jetpack_boost_js_constants', array( $this, 'add_js_constants' ) );
|
66 |
|
67 |
$this->handle_get_parameters();
|
80 |
* Enqueue scripts and styles for the admin page.
|
81 |
*/
|
82 |
public function admin_init() {
|
83 |
+
// Clear premium features cache when the plugin settings page is loaded.
|
84 |
+
Premium_Features::clear_cache();
|
85 |
+
|
86 |
add_action( 'admin_enqueue_scripts', array( $this, 'enqueue_styles' ) );
|
87 |
add_action( 'admin_enqueue_scripts', array( $this, 'enqueue_scripts' ) );
|
88 |
}
|
116 |
wp_register_script(
|
117 |
$admin_js_handle,
|
118 |
plugins_url( $internal_path . 'jetpack-boost.js', JETPACK_BOOST_PATH ),
|
119 |
+
array( 'wp-i18n', 'wp-components' ),
|
120 |
JETPACK_BOOST_VERSION,
|
121 |
true
|
122 |
);
|
123 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
124 |
wp_localize_script(
|
125 |
$admin_js_handle,
|
126 |
'Jetpack_Boost',
|
127 |
+
$this->config->constants()
|
128 |
);
|
129 |
|
130 |
wp_set_script_translations( $admin_js_handle, 'jetpack-boost' );
|
162 |
}
|
163 |
|
164 |
/**
|
165 |
+
* Get the list of dismissed notices.
|
|
|
|
|
166 |
*/
|
167 |
+
public static function get_dismissed_notices() {
|
168 |
+
return \get_option( self::DISMISSED_NOTICE_OPTION, array() );
|
169 |
+
}
|
170 |
+
|
171 |
+
/**
|
172 |
+
* Delete the option tracking which admin notices have been dismissed during deactivation.
|
173 |
+
*/
|
174 |
+
public static function clear_dismissed_notices() {
|
175 |
+
\delete_option( self::DISMISSED_NOTICE_OPTION );
|
176 |
}
|
177 |
|
178 |
/**
|
185 |
$notices = $this->get_admin_notices();
|
186 |
|
187 |
// Filter out any that have been dismissed, unless newer than the dismissal.
|
188 |
+
$dismissed_notices = self::get_dismissed_notices();
|
189 |
$notices = array_filter(
|
190 |
$notices,
|
191 |
function ( $notice ) use ( $dismissed_notices ) {
|
206 |
}
|
207 |
}
|
208 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
209 |
/**
|
210 |
* Returns a list of admin notices to show. Asks each module to provide admin notices the user needs to see.
|
211 |
*
|
212 |
* @return \Automattic\Jetpack_Boost\Admin\Admin_Notice[]
|
213 |
*/
|
214 |
+
public static function get_admin_notices() {
|
215 |
return apply_filters( 'jetpack_boost_admin_notices', array() );
|
216 |
}
|
217 |
|
225 |
*/
|
226 |
public function handle_get_parameters() {
|
227 |
if ( is_admin() && ! empty( $_GET['jb-dismiss-notice'] ) ) {
|
228 |
+
$slug = sanitize_title( wp_unslash( $_GET['jb-dismiss-notice'] ) );
|
229 |
|
230 |
+
$dismissed_notices = self::get_dismissed_notices();
|
231 |
|
232 |
if ( ! in_array( $slug, $dismissed_notices, true ) ) {
|
233 |
$dismissed_notices[] = $slug;
|
238 |
}
|
239 |
// phpcs:enable WordPress.Security.NonceVerification.Recommended
|
240 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
241 |
/**
|
242 |
* Clear a specific admin notice.
|
243 |
*
|
244 |
* @param string $notice_slug The notice slug.
|
245 |
*/
|
246 |
public static function clear_dismissed_notice( $notice_slug ) {
|
247 |
+
$dismissed_notices = self::get_dismissed_notices();
|
248 |
|
249 |
if ( in_array( $notice_slug, $dismissed_notices, true ) ) {
|
250 |
array_splice( $dismissed_notices, array_search( $notice_slug, $dismissed_notices, true ), 1 );
|
262 |
*/
|
263 |
public function add_js_constants( $constants ) {
|
264 |
// Information about the current status of Critical CSS / generation.
|
265 |
+
$constants['showRatingPromptNonce'] = wp_create_nonce( Config::SET_SHOW_RATING_PROMPT_NONCE );
|
266 |
+
$constants['showScorePromptNonce'] = wp_create_nonce( Config::SET_SHOW_SCORE_PROMPT_NONCE );
|
267 |
|
268 |
return $constants;
|
269 |
}
|
app/admin/class-config.php
ADDED
@@ -0,0 +1,171 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
namespace Automattic\Jetpack_Boost\Admin;
|
4 |
+
|
5 |
+
use Automattic\Jetpack\Status;
|
6 |
+
use Automattic\Jetpack_Boost\Features\Optimizations\Optimizations;
|
7 |
+
use Automattic\Jetpack_Boost\Lib\Premium_Features;
|
8 |
+
use Automattic\Jetpack_Boost\REST_API\Permissions\Nonce;
|
9 |
+
|
10 |
+
/**
|
11 |
+
* Handle the configuration constants.
|
12 |
+
*
|
13 |
+
* This is a global state of Jetpack Boost and passed on to the front-end.
|
14 |
+
*/
|
15 |
+
class Config {
|
16 |
+
/**
|
17 |
+
* Nonce action for setting the statuses of rating and score prompts.
|
18 |
+
*/
|
19 |
+
const SET_SHOW_RATING_PROMPT_NONCE = 'set_show_rating_prompt';
|
20 |
+
const SET_SHOW_SCORE_PROMPT_NONCE = 'set_show_score_prompt';
|
21 |
+
|
22 |
+
/**
|
23 |
+
* Name of option to store status of show/hide rating and score prompts
|
24 |
+
*/
|
25 |
+
const SHOW_RATING_PROMPT_OPTION = 'jb_show_rating_prompt';
|
26 |
+
const SHOW_SCORE_PROMPT_OPTION = 'jb_show_score_prompt';
|
27 |
+
|
28 |
+
public function init() {
|
29 |
+
add_action( 'wp_ajax_set_show_rating_prompt', array( $this, 'handle_set_show_rating_prompt' ) );
|
30 |
+
add_action( 'wp_ajax_set_show_score_prompt', array( $this, 'handle_set_show_score_prompt' ) );
|
31 |
+
}
|
32 |
+
|
33 |
+
public function constants() {
|
34 |
+
$optimizations = ( new Optimizations() )->get_status();
|
35 |
+
$internal_path = apply_filters( 'jetpack_boost_asset_internal_path', 'app/assets/dist/' );
|
36 |
+
|
37 |
+
$constants = array(
|
38 |
+
'version' => JETPACK_BOOST_VERSION,
|
39 |
+
'api' => array(
|
40 |
+
'namespace' => JETPACK_BOOST_REST_NAMESPACE,
|
41 |
+
'prefix' => JETPACK_BOOST_REST_PREFIX,
|
42 |
+
),
|
43 |
+
'optimizations' => $optimizations,
|
44 |
+
'locale' => get_locale(),
|
45 |
+
'site' => array(
|
46 |
+
'domain' => ( new Status() )->get_site_suffix(),
|
47 |
+
'url' => get_home_url(),
|
48 |
+
'online' => ! ( new Status() )->is_offline_mode(),
|
49 |
+
'assetPath' => plugins_url( $internal_path, JETPACK_BOOST_PATH ),
|
50 |
+
),
|
51 |
+
'shownAdminNoticeIds' => $this->get_shown_admin_notice_ids(),
|
52 |
+
'preferences' => array(
|
53 |
+
'showRatingPrompt' => $this->get_show_rating_prompt(),
|
54 |
+
'showScorePrompt' => $this->get_show_score_prompt(),
|
55 |
+
'prioritySupport' => Premium_Features::has_feature( Premium_Features::PRIORITY_SUPPORT ),
|
56 |
+
),
|
57 |
+
|
58 |
+
/**
|
59 |
+
* A bit of necessary magic,
|
60 |
+
* Explained more in the Nonce class.
|
61 |
+
*
|
62 |
+
* Nonces are automatically generated when registering routes.
|
63 |
+
*/
|
64 |
+
'nonces' => Nonce::get_generated_nonces(),
|
65 |
+
);
|
66 |
+
|
67 |
+
// Give each module an opportunity to define extra constants.
|
68 |
+
return apply_filters( 'jetpack_boost_js_constants', $constants );
|
69 |
+
}
|
70 |
+
|
71 |
+
/**
|
72 |
+
* Returns an array of notice ids (i.e.: jetpack-boost-notice-[slug]) for all
|
73 |
+
* visible admin notices.
|
74 |
+
*
|
75 |
+
* @return array List of notice ids.
|
76 |
+
*/
|
77 |
+
private function get_shown_admin_notice_ids() {
|
78 |
+
$notices = Admin::get_admin_notices();
|
79 |
+
$ids = array();
|
80 |
+
foreach ( $notices as $notice ) {
|
81 |
+
$ids[] = $notice->get_id();
|
82 |
+
}
|
83 |
+
|
84 |
+
return $ids;
|
85 |
+
}
|
86 |
+
|
87 |
+
/**
|
88 |
+
* Get the value of show_rating_prompt.
|
89 |
+
*
|
90 |
+
* This determines if there should be a prompt after speed score improvements. Initially the value is set to true by
|
91 |
+
* default. Once the user clicks on the rating button, it is switched to false.
|
92 |
+
*
|
93 |
+
* @return bool
|
94 |
+
*/
|
95 |
+
public function get_show_rating_prompt() {
|
96 |
+
return \get_option( self::SHOW_RATING_PROMPT_OPTION, '1' ) === '1';
|
97 |
+
}
|
98 |
+
|
99 |
+
/**
|
100 |
+
* Handle the ajax request to set show-rating-prompt status.
|
101 |
+
*/
|
102 |
+
public function handle_set_show_rating_prompt() {
|
103 |
+
if ( check_ajax_referer( self::SET_SHOW_RATING_PROMPT_NONCE, 'nonce' ) && $this->check_for_permissions() ) {
|
104 |
+
$response = array(
|
105 |
+
'status' => 'ok',
|
106 |
+
);
|
107 |
+
|
108 |
+
$is_enabled = isset( $_POST['value'] ) && 'true' === $_POST['value'] ? '1' : '0';
|
109 |
+
\update_option( self::SHOW_RATING_PROMPT_OPTION, $is_enabled );
|
110 |
+
|
111 |
+
wp_send_json( $response );
|
112 |
+
} else {
|
113 |
+
$error = new \WP_Error( 'authorization', __( 'You do not have permission to take this action.', 'jetpack-boost' ) );
|
114 |
+
wp_send_json_error( $error, 403 );
|
115 |
+
}
|
116 |
+
}
|
117 |
+
|
118 |
+
/**
|
119 |
+
* Handle the ajax request to set show-rating-prompt status.
|
120 |
+
*/
|
121 |
+
public function handle_set_show_score_prompt() {
|
122 |
+
if ( check_ajax_referer( self::SET_SHOW_SCORE_PROMPT_NONCE, 'nonce' ) && $this->check_for_permissions() ) {
|
123 |
+
$response = array(
|
124 |
+
'status' => 'ok',
|
125 |
+
);
|
126 |
+
|
127 |
+
$is_enabled = isset( $_POST['value'] ) && 'true' === $_POST['value'] ? '1' : '0';
|
128 |
+
\update_option( self::SHOW_SCORE_PROMPT_OPTION, $is_enabled );
|
129 |
+
|
130 |
+
wp_send_json( $response );
|
131 |
+
} else {
|
132 |
+
$error = new \WP_Error( 'authorization', __( 'You do not have permission to take this action.', 'jetpack-boost' ) );
|
133 |
+
wp_send_json_error( $error, 403 );
|
134 |
+
}
|
135 |
+
}
|
136 |
+
|
137 |
+
/**
|
138 |
+
* Check for permissions.
|
139 |
+
*
|
140 |
+
* @return bool
|
141 |
+
*/
|
142 |
+
public function check_for_permissions() {
|
143 |
+
return current_user_can( 'manage_options' );
|
144 |
+
}
|
145 |
+
|
146 |
+
/**
|
147 |
+
* Get the value of show_score_prompt.
|
148 |
+
*
|
149 |
+
* This determines if there should be a prompt after speed score worsens. Initially the value is set to true by
|
150 |
+
* default. Once the user clicks on the support button, it is switched to false.
|
151 |
+
*
|
152 |
+
* @return bool
|
153 |
+
*/
|
154 |
+
public function get_show_score_prompt() {
|
155 |
+
return \get_option( self::SHOW_SCORE_PROMPT_OPTION, '1' ) === '1';
|
156 |
+
}
|
157 |
+
|
158 |
+
/**
|
159 |
+
* Clear the status of show_rating_prompt
|
160 |
+
*/
|
161 |
+
public static function clear_show_rating_prompt() {
|
162 |
+
\delete_option( self::SHOW_RATING_PROMPT_OPTION );
|
163 |
+
}
|
164 |
+
|
165 |
+
/**
|
166 |
+
* Clear the status of show_score_prompt
|
167 |
+
*/
|
168 |
+
public static function clear_show_score_prompt() {
|
169 |
+
\delete_option( self::SHOW_SCORE_PROMPT_OPTION );
|
170 |
+
}
|
171 |
+
}
|
app/assets/dist/jetpack-boost.css
CHANGED
@@ -1,1039 +1 @@
|
|
1 |
-
#jb-settings * {
|
2 |
-
box-sizing: border-box;
|
3 |
-
}
|
4 |
-
|
5 |
-
.jb-settings {
|
6 |
-
--wp-admin-theme-color: #008710;
|
7 |
-
--wp-admin-theme-link-color: #1d2327;
|
8 |
-
--wp-admin-theme-color-darker-10: #007117;
|
9 |
-
--wp-admin-theme-color-darker-20: #005b18;
|
10 |
-
}
|
11 |
-
.jb-settings a {
|
12 |
-
color: var(--wp-admin-theme-link-color);
|
13 |
-
}
|
14 |
-
.jb-settings .components-button.is-primary {
|
15 |
-
background-color: #008710;
|
16 |
-
border-radius: 4px;
|
17 |
-
font-weight: 600;
|
18 |
-
margin-bottom: 1.5rem;
|
19 |
-
}
|
20 |
-
.jb-settings .components-button.is-link {
|
21 |
-
color: var(--wp-admin-theme-link-color);
|
22 |
-
}
|
23 |
-
.jb-settings h1, .jb-settings h2, .jb-settings h3, .jb-settings h4, .jb-settings h5, .jb-settings h6 {
|
24 |
-
margin: 0;
|
25 |
-
color: #23282D;
|
26 |
-
line-height: 1.3;
|
27 |
-
font-weight: 500;
|
28 |
-
}
|
29 |
-
.jb-settings h2 {
|
30 |
-
font-size: 36px;
|
31 |
-
line-height: 1.1;
|
32 |
-
}
|
33 |
-
.jb-settings h3 {
|
34 |
-
font-size: 24px;
|
35 |
-
}
|
36 |
-
.jb-settings p {
|
37 |
-
color: #2c3338;
|
38 |
-
}
|
39 |
-
.jb-settings button.secondary, .jb-settings a.button-secondary {
|
40 |
-
color: #23282D;
|
41 |
-
background: none;
|
42 |
-
border: 1px solid #23282D;
|
43 |
-
padding: 8px 24px;
|
44 |
-
border-radius: 3px;
|
45 |
-
font-weight: 600;
|
46 |
-
cursor: pointer;
|
47 |
-
font-size: 16px;
|
48 |
-
line-height: 24px;
|
49 |
-
}
|
50 |
-
.jb-settings button.secondary:hover, .jb-settings a.button-secondary:hover {
|
51 |
-
background: #f6f7f7;
|
52 |
-
border-color: #23282D;
|
53 |
-
color: #23282D;
|
54 |
-
}
|
55 |
-
|
56 |
-
.jetpack_page_jetpack-boost #wpcontent {
|
57 |
-
padding-left: 0;
|
58 |
-
background: #FFFFFF;
|
59 |
-
min-height: 100vh;
|
60 |
-
}
|
61 |
-
|
62 |
-
.jb-settings {
|
63 |
-
min-height: calc(100vh - 60px);
|
64 |
-
display: flex;
|
65 |
-
flex-direction: column;
|
66 |
-
position: relative;
|
67 |
-
overflow-x: hidden;
|
68 |
-
}
|
69 |
-
.jb-settings, .jb-settings p {
|
70 |
-
font-size: 16px;
|
71 |
-
}
|
72 |
-
|
73 |
-
.jb-section, .jb-section--alt {
|
74 |
-
margin-bottom: 48px;
|
75 |
-
}
|
76 |
-
|
77 |
-
.jb-section--alt {
|
78 |
-
padding-top: 48px;
|
79 |
-
padding-bottom: 48px;
|
80 |
-
background-color: #F9F9F6;
|
81 |
-
}
|
82 |
-
|
83 |
-
.jb-section--scores {
|
84 |
-
margin-bottom: 24px;
|
85 |
-
position: relative;
|
86 |
-
}
|
87 |
-
|
88 |
-
.jb-section--main {
|
89 |
-
margin-top: 24px;
|
90 |
-
}
|
91 |
-
|
92 |
-
.jb-section--subpage {
|
93 |
-
/* Shrink margin-top on sub-pages to bring <- go back button up */
|
94 |
-
margin-top: 8px;
|
95 |
-
}
|
96 |
-
|
97 |
-
.jb-container, .jb-settings-footer, .jb-container--narrow {
|
98 |
-
width: 80%;
|
99 |
-
margin-left: auto;
|
100 |
-
margin-right: auto;
|
101 |
-
}
|
102 |
-
.jb-container--narrow {
|
103 |
-
max-width: 744px;
|
104 |
-
}
|
105 |
-
|
106 |
-
.jb-settings-header {
|
107 |
-
display: flex;
|
108 |
-
justify-content: space-between;
|
109 |
-
height: 120px;
|
110 |
-
align-items: center;
|
111 |
-
position: relative;
|
112 |
-
}
|
113 |
-
.jb-settings-header__logo {
|
114 |
-
display: flex;
|
115 |
-
height: 27px;
|
116 |
-
}
|
117 |
-
.jb-settings-header__logo svg {
|
118 |
-
width: 100%;
|
119 |
-
height: auto;
|
120 |
-
}
|
121 |
-
@media (min-width: 992px) {
|
122 |
-
.jb-settings-header__logo {
|
123 |
-
height: 32px;
|
124 |
-
}
|
125 |
-
}
|
126 |
-
|
127 |
-
.jb-settings-footer {
|
128 |
-
display: flex;
|
129 |
-
justify-content: space-between;
|
130 |
-
align-items: center;
|
131 |
-
margin-top: auto;
|
132 |
-
}
|
133 |
-
@media (max-width: 767px) {
|
134 |
-
.jb-settings-footer {
|
135 |
-
flex-direction: column;
|
136 |
-
justify-content: flex-start;
|
137 |
-
}
|
138 |
-
}
|
139 |
-
|
140 |
-
.jb-signature--jetpack {
|
141 |
-
margin-left: 7px;
|
142 |
-
font-weight: 600;
|
143 |
-
font-size: 12px;
|
144 |
-
color: #23282D;
|
145 |
-
display: flex;
|
146 |
-
align-items: center;
|
147 |
-
}
|
148 |
-
.jb-signature--jetpack svg {
|
149 |
-
margin-right: 0.5em;
|
150 |
-
}
|
151 |
-
|
152 |
-
.jb-signature--automattic {
|
153 |
-
transform: translateY(-2px);
|
154 |
-
}
|
155 |
-
|
156 |
-
.jb-warning-modal__actions {
|
157 |
-
display: flex;
|
158 |
-
justify-content: flex-end;
|
159 |
-
}
|
160 |
-
.jb-warning-modal__actions > div {
|
161 |
-
display: flex;
|
162 |
-
flex-direction: column;
|
163 |
-
}
|
164 |
-
.jb-warning-modal__actions > div > div {
|
165 |
-
display: flex;
|
166 |
-
}
|
167 |
-
.jb-warning-modal__actions button {
|
168 |
-
margin-left: auto;
|
169 |
-
}
|
170 |
-
.jb-warning-modal__actions button.confirm {
|
171 |
-
margin-left: 10px;
|
172 |
-
}
|
173 |
-
.jb-warning-modal__actions .checkbox {
|
174 |
-
font-size: 12px;
|
175 |
-
margin-top: 10px;
|
176 |
-
}
|
177 |
-
|
178 |
-
.jb-connection {
|
179 |
-
display: flex;
|
180 |
-
flex-direction: column;
|
181 |
-
justify-content: flex-start;
|
182 |
-
align-items: flex-start;
|
183 |
-
padding: 0 20px;
|
184 |
-
}
|
185 |
-
@media (min-width: 992px) {
|
186 |
-
.jb-connection {
|
187 |
-
justify-content: center;
|
188 |
-
align-items: center;
|
189 |
-
text-align: center;
|
190 |
-
margin-top: 50px;
|
191 |
-
padding: 0;
|
192 |
-
}
|
193 |
-
}
|
194 |
-
@media (min-width: 992px) {
|
195 |
-
.jb-connection__header {
|
196 |
-
width: 552px;
|
197 |
-
}
|
198 |
-
}
|
199 |
-
.jb-connection__active {
|
200 |
-
display: flex;
|
201 |
-
flex-direction: column;
|
202 |
-
margin-bottom: 35px;
|
203 |
-
}
|
204 |
-
@media (min-width: 992px) {
|
205 |
-
.jb-connection__active {
|
206 |
-
flex-direction: row;
|
207 |
-
}
|
208 |
-
}
|
209 |
-
.jb-connection__active__left-side {
|
210 |
-
flex-basis: 100%;
|
211 |
-
}
|
212 |
-
@media (min-width: 992px) {
|
213 |
-
.jb-connection__active__left-side {
|
214 |
-
flex-basis: 66%;
|
215 |
-
padding-right: 30px;
|
216 |
-
}
|
217 |
-
}
|
218 |
-
.jb-connection__active__right-side {
|
219 |
-
flex-basis: 100%;
|
220 |
-
margin-top: 35px;
|
221 |
-
}
|
222 |
-
@media (min-width: 992px) {
|
223 |
-
.jb-connection__active__right-side {
|
224 |
-
flex-basis: 34%;
|
225 |
-
margin-top: 0;
|
226 |
-
padding-top: 12px;
|
227 |
-
}
|
228 |
-
}
|
229 |
-
|
230 |
-
.jb-connection .checklist {
|
231 |
-
border: 1px solid #DCDCDE;
|
232 |
-
display: grid;
|
233 |
-
grid-template-columns: 1fr 1fr;
|
234 |
-
grid-gap: 24px;
|
235 |
-
padding: 40px;
|
236 |
-
border-radius: 4px;
|
237 |
-
margin-bottom: 2rem;
|
238 |
-
}
|
239 |
-
.jb-connection .checklist__item {
|
240 |
-
display: flex;
|
241 |
-
justify-content: flex-start;
|
242 |
-
}
|
243 |
-
.jb-connection .checklist svg {
|
244 |
-
fill: #008710;
|
245 |
-
}
|
246 |
-
.jb-connection .checklist span {
|
247 |
-
margin-left: 12px;
|
248 |
-
line-height: 24px;
|
249 |
-
color: #444444;
|
250 |
-
}
|
251 |
-
|
252 |
-
.jb-connection__iframe {
|
253 |
-
width: 100%;
|
254 |
-
height: 342px;
|
255 |
-
padding-top: 0;
|
256 |
-
box-sizing: border-box;
|
257 |
-
border-radius: 4px;
|
258 |
-
}
|
259 |
-
.jb-connection__iframe__spinner {
|
260 |
-
display: flex;
|
261 |
-
justify-content: center;
|
262 |
-
align-items: center;
|
263 |
-
padding: 0;
|
264 |
-
}
|
265 |
-
.jb-connection__iframe__spinner span {
|
266 |
-
display: flex;
|
267 |
-
min-width: 300px;
|
268 |
-
flex-direction: column;
|
269 |
-
justify-content: center;
|
270 |
-
align-items: center;
|
271 |
-
}
|
272 |
-
|
273 |
-
.jb-connection__description {
|
274 |
-
margin-bottom: 36px;
|
275 |
-
font-weight: 400;
|
276 |
-
line-height: 24px;
|
277 |
-
color: #444444;
|
278 |
-
}
|
279 |
-
|
280 |
-
.jb-connection__title {
|
281 |
-
margin: 0 0 24px 0;
|
282 |
-
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
|
283 |
-
font-style: normal;
|
284 |
-
font-weight: 700;
|
285 |
-
}
|
286 |
-
@media (min-width: 992px) {
|
287 |
-
.jb-connection__title {
|
288 |
-
padding: 0 70px;
|
289 |
-
}
|
290 |
-
}
|
291 |
-
|
292 |
-
.jb-connection-overlay {
|
293 |
-
line-height: 20px;
|
294 |
-
text-align: center;
|
295 |
-
margin-left: auto;
|
296 |
-
margin-right: auto;
|
297 |
-
}
|
298 |
-
@media (min-width: 992px) {
|
299 |
-
.jb-connection-overlay {
|
300 |
-
width: 445px;
|
301 |
-
}
|
302 |
-
}
|
303 |
-
|
304 |
-
.jb-feature-toggle {
|
305 |
-
margin-bottom: 2em;
|
306 |
-
display: flex;
|
307 |
-
margin-left: auto;
|
308 |
-
margin-right: auto;
|
309 |
-
}
|
310 |
-
.jb-feature-toggle a {
|
311 |
-
text-decoration: underline;
|
312 |
-
}
|
313 |
-
.jb-feature-toggle h2 {
|
314 |
-
font-size: 22px;
|
315 |
-
margin-top: 0;
|
316 |
-
}
|
317 |
-
.jb-feature-toggle__toggle {
|
318 |
-
transform: translateY(8px);
|
319 |
-
margin-right: 2em;
|
320 |
-
}
|
321 |
-
|
322 |
-
.jb-settings .jb-tips {
|
323 |
-
margin: 0 auto;
|
324 |
-
}
|
325 |
-
.jb-settings .jb-tips__title {
|
326 |
-
margin-bottom: 48px;
|
327 |
-
}
|
328 |
-
@media (min-width: 992px) {
|
329 |
-
.jb-settings .jb-tips__items {
|
330 |
-
display: grid;
|
331 |
-
grid-template-columns: 1fr 1fr;
|
332 |
-
grid-gap: 2em;
|
333 |
-
}
|
334 |
-
}
|
335 |
-
.jb-settings .jb-tips .item {
|
336 |
-
margin-bottom: 2em;
|
337 |
-
}
|
338 |
-
@media (min-width: 768px) {
|
339 |
-
.jb-settings .jb-tips .item {
|
340 |
-
display: grid;
|
341 |
-
grid-template-columns: 80px 1fr;
|
342 |
-
grid-gap: 1em;
|
343 |
-
}
|
344 |
-
}
|
345 |
-
.jb-settings .jb-tips .item__rate {
|
346 |
-
font-size: 24px;
|
347 |
-
font-weight: 400;
|
348 |
-
line-height: 30px;
|
349 |
-
color: #23282D;
|
350 |
-
}
|
351 |
-
@media (min-width: 992px) {
|
352 |
-
.jb-settings .jb-tips .item__rate {
|
353 |
-
flex-basis: 20%;
|
354 |
-
font-size: 36px;
|
355 |
-
line-height: 43px;
|
356 |
-
}
|
357 |
-
}
|
358 |
-
.jb-settings .jb-tips .item__description {
|
359 |
-
flex-basis: 70%;
|
360 |
-
font-weight: 400;
|
361 |
-
line-height: 24px;
|
362 |
-
color: #444444;
|
363 |
-
}
|
364 |
-
@media (min-width: 992px) {
|
365 |
-
.jb-settings .jb-tips .item__description {
|
366 |
-
flex-basis: 80%;
|
367 |
-
}
|
368 |
-
}
|
369 |
-
.jb-settings .jb-tips .item__description a {
|
370 |
-
color: #1d2327;
|
371 |
-
text-decoration: underline;
|
372 |
-
}
|
373 |
-
|
374 |
-
.jb-site-score h2 {
|
375 |
-
font-weight: 700;
|
376 |
-
}
|
377 |
-
@media (max-width: 767px) {
|
378 |
-
.jb-site-score h2 {
|
379 |
-
font-size: 27px;
|
380 |
-
}
|
381 |
-
}
|
382 |
-
.jb-site-score__offline, .jb-site-score__top {
|
383 |
-
margin-bottom: 2rem;
|
384 |
-
}
|
385 |
-
.jb-site-score__offline p {
|
386 |
-
font-weight: 400;
|
387 |
-
max-width: 560px;
|
388 |
-
line-height: 1.5;
|
389 |
-
color: #3c434a;
|
390 |
-
}
|
391 |
-
.jb-site-score__top {
|
392 |
-
display: flex;
|
393 |
-
align-items: center;
|
394 |
-
color: #000;
|
395 |
-
}
|
396 |
-
.jb-site-score__top button {
|
397 |
-
margin-left: auto;
|
398 |
-
}
|
399 |
-
.jb-site-score button {
|
400 |
-
color: #1d2327;
|
401 |
-
}
|
402 |
-
.jb-site-score button.components-button.is-link {
|
403 |
-
margin-left: auto;
|
404 |
-
}
|
405 |
-
.jb-site-score button.components-button.is-link:hover {
|
406 |
-
color: #1d2327;
|
407 |
-
}
|
408 |
-
.jb-site-score button svg {
|
409 |
-
margin: 4px 4px 2px 0;
|
410 |
-
fill: #008710;
|
411 |
-
}
|
412 |
-
|
413 |
-
.jb-site-score--error {
|
414 |
-
margin-top: 1em;
|
415 |
-
}
|
416 |
-
@media (max-width: 767px) {
|
417 |
-
.jb-site-score--error .jb-site-score {
|
418 |
-
display: none;
|
419 |
-
}
|
420 |
-
}
|
421 |
-
.jb-site-score--error .jb-score-bar__loading, .jb-site-score--error .jb-score-bar__filler {
|
422 |
-
display: none;
|
423 |
-
}
|
424 |
-
.jb-site-score--error .jb-score-bar__label {
|
425 |
-
opacity: 0.8;
|
426 |
-
color: #646970;
|
427 |
-
}
|
428 |
-
.jb-site-score--error svg {
|
429 |
-
fill: #646970;
|
430 |
-
}
|
431 |
-
|
432 |
-
.jb-score-bar__score, .jb-score-bar__label, .jb-score-bar__loading {
|
433 |
-
background-color: #fff;
|
434 |
-
border-radius: 42px;
|
435 |
-
height: 42px;
|
436 |
-
display: flex;
|
437 |
-
align-items: center;
|
438 |
-
border: 2px solid transparent;
|
439 |
-
}
|
440 |
-
|
441 |
-
.jb-score-bar {
|
442 |
-
width: 100%;
|
443 |
-
display: flex;
|
444 |
-
}
|
445 |
-
.jb-score-bar--mobile {
|
446 |
-
margin-bottom: 24px;
|
447 |
-
}
|
448 |
-
@media (max-width: 767px) {
|
449 |
-
.jb-score-bar {
|
450 |
-
flex-direction: column;
|
451 |
-
}
|
452 |
-
.jb-score-bar__label {
|
453 |
-
background-color: transparent;
|
454 |
-
}
|
455 |
-
}
|
456 |
-
.jb-score-bar__loading {
|
457 |
-
width: 42px;
|
458 |
-
display: flex;
|
459 |
-
align-items: center;
|
460 |
-
justify-content: center;
|
461 |
-
}
|
462 |
-
.jb-score-bar__label {
|
463 |
-
display: grid;
|
464 |
-
grid-template-columns: 24px 1fr;
|
465 |
-
grid-column-gap: 10px;
|
466 |
-
justify-content: center;
|
467 |
-
position: relative;
|
468 |
-
font-size: 14px;
|
469 |
-
position: relative;
|
470 |
-
}
|
471 |
-
@media (min-width: 768px) {
|
472 |
-
.jb-score-bar__label {
|
473 |
-
padding-left: 15px;
|
474 |
-
padding-right: 15px;
|
475 |
-
width: 200px;
|
476 |
-
z-index: 50;
|
477 |
-
}
|
478 |
-
}
|
479 |
-
.jb-score-bar__score {
|
480 |
-
border-radius: 100%;
|
481 |
-
font-weight: 700;
|
482 |
-
width: 42px;
|
483 |
-
justify-content: center;
|
484 |
-
position: absolute;
|
485 |
-
right: -1px;
|
486 |
-
height: 42px;
|
487 |
-
}
|
488 |
-
.jb-score-bar__bounds {
|
489 |
-
background-color: #f1f1f1;
|
490 |
-
border-radius: 21px;
|
491 |
-
display: flex;
|
492 |
-
height: 42px;
|
493 |
-
width: 100%;
|
494 |
-
max-width: 100%;
|
495 |
-
position: relative;
|
496 |
-
z-index: 40;
|
497 |
-
}
|
498 |
-
@media (min-width: 768px) {
|
499 |
-
.jb-score-bar__bounds {
|
500 |
-
width: calc(100% + 21px);
|
501 |
-
margin-left: -21px;
|
502 |
-
}
|
503 |
-
}
|
504 |
-
.jb-score-bar__filler {
|
505 |
-
display: flex;
|
506 |
-
min-width: 85px;
|
507 |
-
justify-content: flex-end;
|
508 |
-
border-radius: 0 42px 42px 0;
|
509 |
-
transition: width 300ms ease-in-out;
|
510 |
-
will-change: width;
|
511 |
-
width: 0;
|
512 |
-
position: relative;
|
513 |
-
}
|
514 |
-
@media (max-width: 767px) {
|
515 |
-
.jb-score-bar__filler {
|
516 |
-
min-width: 43px;
|
517 |
-
border-radius: inherit;
|
518 |
-
}
|
519 |
-
}
|
520 |
-
.jb-score-bar__no_boost_score {
|
521 |
-
--clearance-space: 74px;
|
522 |
-
position: absolute;
|
523 |
-
background: #fff;
|
524 |
-
border-radius: 50%;
|
525 |
-
padding: 3px;
|
526 |
-
top: 6px;
|
527 |
-
width: 28px;
|
528 |
-
height: 28px;
|
529 |
-
font-size: 0.7em;
|
530 |
-
text-align: center;
|
531 |
-
cursor: pointer;
|
532 |
-
z-index: 2;
|
533 |
-
border: 2px solid transparent;
|
534 |
-
background-clip: padding-box;
|
535 |
-
}
|
536 |
-
.jb-score-bar__no_boost_score:hover {
|
537 |
-
border: 2px solid rgba(255, 255, 255, 0.5);
|
538 |
-
}
|
539 |
-
.jb-score-bar__no_boost_score::after {
|
540 |
-
content: " ";
|
541 |
-
width: 0;
|
542 |
-
height: 0;
|
543 |
-
border-left: 6px solid transparent;
|
544 |
-
border-right: 6px solid transparent;
|
545 |
-
border-bottom: 6px solid #fff;
|
546 |
-
position: absolute;
|
547 |
-
top: 28px;
|
548 |
-
left: 6px;
|
549 |
-
}
|
550 |
-
.jb-score-bar__no_boost_score_tooltip {
|
551 |
-
box-shadow: 0 0 20px 0 rgba(170, 170, 170, 0.28);
|
552 |
-
position: absolute;
|
553 |
-
top: -62px;
|
554 |
-
left: -10em;
|
555 |
-
width: 20em;
|
556 |
-
background: #FFF;
|
557 |
-
padding: 16px;
|
558 |
-
border-radius: 4px;
|
559 |
-
margin: 0 16px;
|
560 |
-
display: none;
|
561 |
-
}
|
562 |
-
.jb-score-bar__no_boost_score_tooltip::after {
|
563 |
-
content: " ";
|
564 |
-
width: 0;
|
565 |
-
height: 0;
|
566 |
-
border-left: 6px solid transparent;
|
567 |
-
border-right: 6px solid transparent;
|
568 |
-
border-top: 6px solid #fff;
|
569 |
-
position: absolute;
|
570 |
-
bottom: -6px;
|
571 |
-
left: 10em;
|
572 |
-
margin: 0 -10px;
|
573 |
-
}
|
574 |
-
.jb-score-bar__no_boost_score:hover .jb-score-bar__no_boost_score_tooltip {
|
575 |
-
display: block;
|
576 |
-
}
|
577 |
-
.jb-score-bar .fill-loading {
|
578 |
-
background-color: white;
|
579 |
-
}
|
580 |
-
.jb-score-bar .fill-good {
|
581 |
-
background-color: #069e08;
|
582 |
-
}
|
583 |
-
.jb-score-bar .fill-mediocre {
|
584 |
-
background-color: #FAA754;
|
585 |
-
}
|
586 |
-
.jb-score-bar .fill-bad {
|
587 |
-
background-color: #D63638;
|
588 |
-
}
|
589 |
-
|
590 |
-
.jb-score-context {
|
591 |
-
display: inline-block;
|
592 |
-
position: relative;
|
593 |
-
color: #444444;
|
594 |
-
font-size: 16px;
|
595 |
-
line-height: 24px;
|
596 |
-
}
|
597 |
-
.jb-score-context__info-icon {
|
598 |
-
display: block;
|
599 |
-
width: 18px;
|
600 |
-
height: 18px;
|
601 |
-
font-size: 13px;
|
602 |
-
text-align: center;
|
603 |
-
border-radius: 50%;
|
604 |
-
vertical-align: middle;
|
605 |
-
border: 2px solid #8c8f94;
|
606 |
-
cursor: pointer;
|
607 |
-
line-height: 1.1em;
|
608 |
-
font-weight: 700;
|
609 |
-
color: #8c8f94;
|
610 |
-
margin-left: 8px;
|
611 |
-
}
|
612 |
-
.jb-score-context__info-container {
|
613 |
-
display: none;
|
614 |
-
min-width: 300px;
|
615 |
-
top: 30px;
|
616 |
-
left: -47px;
|
617 |
-
transform: translate(-50%, 0);
|
618 |
-
padding: 16px 16px;
|
619 |
-
background-color: #FFFFFF;
|
620 |
-
font-weight: normal;
|
621 |
-
border-radius: 4px;
|
622 |
-
position: absolute;
|
623 |
-
z-index: 1000;
|
624 |
-
text-align: left;
|
625 |
-
box-shadow: 0 0 20px 0 rgba(170, 170, 170, 0.28);
|
626 |
-
}
|
627 |
-
@media (min-width: 768px) {
|
628 |
-
.jb-score-context__info-container {
|
629 |
-
left: -110px;
|
630 |
-
}
|
631 |
-
}
|
632 |
-
.jb-score-context__info-container p {
|
633 |
-
margin: 0 0 20px 0;
|
634 |
-
}
|
635 |
-
.jb-score-context__info-container i {
|
636 |
-
position: absolute;
|
637 |
-
bottom: 100%;
|
638 |
-
left: 202px;
|
639 |
-
width: 24px;
|
640 |
-
height: 12px;
|
641 |
-
overflow: hidden;
|
642 |
-
text-align: center;
|
643 |
-
}
|
644 |
-
@media (min-width: 768px) {
|
645 |
-
.jb-score-context__info-container i {
|
646 |
-
left: 265px;
|
647 |
-
}
|
648 |
-
}
|
649 |
-
.jb-score-context__info-container i::after {
|
650 |
-
content: "";
|
651 |
-
position: absolute;
|
652 |
-
width: 12px;
|
653 |
-
height: 12px;
|
654 |
-
transform: translate(-50%, 50%) rotate(45deg);
|
655 |
-
background-color: #FFFFFF;
|
656 |
-
box-shadow: 0 0 20px 0 rgba(170, 170, 170, 0.28);
|
657 |
-
}
|
658 |
-
.jb-score-context:hover .jb-score-context__info-container {
|
659 |
-
display: block;
|
660 |
-
}
|
661 |
-
.jb-score-context table {
|
662 |
-
width: 49%;
|
663 |
-
margin: 0;
|
664 |
-
display: inline-block;
|
665 |
-
}
|
666 |
-
.jb-score-context table td {
|
667 |
-
padding-left: 10px;
|
668 |
-
}
|
669 |
-
|
670 |
-
.jb-critical-css-progress__label {
|
671 |
-
color: #787c82;
|
672 |
-
margin-bottom: 1em;
|
673 |
-
display: block;
|
674 |
-
font-size: 14px;
|
675 |
-
line-height: 20px;
|
676 |
-
}
|
677 |
-
|
678 |
-
.jb-progress-bar {
|
679 |
-
height: 20px;
|
680 |
-
border-radius: 50px;
|
681 |
-
background-color: #f1f1f1;
|
682 |
-
}
|
683 |
-
.jb-progress-bar__filler {
|
684 |
-
height: 100%;
|
685 |
-
width: 0%;
|
686 |
-
will-change: width;
|
687 |
-
transition: width 700ms ease-in-out;
|
688 |
-
border-radius: 50px;
|
689 |
-
background-color: #069E08;
|
690 |
-
}
|
691 |
-
|
692 |
-
.jb-error {
|
693 |
-
position: relative;
|
694 |
-
color: #d63638;
|
695 |
-
display: block;
|
696 |
-
margin: 0;
|
697 |
-
padding: 0;
|
698 |
-
}
|
699 |
-
@media (min-width: 768px) {
|
700 |
-
.jb-error {
|
701 |
-
display: flex;
|
702 |
-
align-items: flex-start;
|
703 |
-
justify-content: left;
|
704 |
-
}
|
705 |
-
}
|
706 |
-
.jb-error p {
|
707 |
-
margin: 0.25em 0;
|
708 |
-
color: #D63638;
|
709 |
-
}
|
710 |
-
.jb-error .jb-error__main-action:not(:empty) {
|
711 |
-
margin-left: auto;
|
712 |
-
}
|
713 |
-
.jb-error .jb-error__main-action:not(:empty) button {
|
714 |
-
margin-left: 0;
|
715 |
-
}
|
716 |
-
@media (min-width: 768px) {
|
717 |
-
.jb-error .jb-error__main-action:not(:empty) button {
|
718 |
-
margin-left: 20px;
|
719 |
-
}
|
720 |
-
}
|
721 |
-
.jb-error svg.icon {
|
722 |
-
color: inherit;
|
723 |
-
height: 20px;
|
724 |
-
width: 20px;
|
725 |
-
position: absolute;
|
726 |
-
left: -65px;
|
727 |
-
top: 0;
|
728 |
-
line-height: 0;
|
729 |
-
}
|
730 |
-
.jb-error .jb-error__description {
|
731 |
-
color: #D63638;
|
732 |
-
font-weight: bold;
|
733 |
-
margin-bottom: 0.5em;
|
734 |
-
}
|
735 |
-
.jb-error .jb-error__message {
|
736 |
-
list-style-type: disc;
|
737 |
-
color: #D63638;
|
738 |
-
}
|
739 |
-
.jb-error .jb-error__message .status-error {
|
740 |
-
color: #23282D;
|
741 |
-
}
|
742 |
-
.jb-error .jb-error__message button {
|
743 |
-
color: #23282D;
|
744 |
-
font-size: 16px;
|
745 |
-
margin: 16px auto;
|
746 |
-
}
|
747 |
-
.jb-error .jb-error__message li {
|
748 |
-
overflow-wrap: break-word;
|
749 |
-
word-wrap: break-word;
|
750 |
-
-ms-word-break: break-all;
|
751 |
-
word-break: break-all;
|
752 |
-
word-break: break-word;
|
753 |
-
}
|
754 |
-
.jb-error .raw-error {
|
755 |
-
color: #23282D;
|
756 |
-
}
|
757 |
-
.jb-error .action {
|
758 |
-
color: #1d2327;
|
759 |
-
font-weight: bold;
|
760 |
-
}
|
761 |
-
.jb-error pre {
|
762 |
-
background-color: #f1f1f1;
|
763 |
-
padding: 25px;
|
764 |
-
margin: 20px 0;
|
765 |
-
text-align: left;
|
766 |
-
white-space: pre-wrap;
|
767 |
-
color: #0f0f0f;
|
768 |
-
border-radius: 6px;
|
769 |
-
}
|
770 |
-
|
771 |
-
.jb-error--offset {
|
772 |
-
padding-left: 2em;
|
773 |
-
}
|
774 |
-
.jb-error--offset:before {
|
775 |
-
left: 0;
|
776 |
-
}
|
777 |
-
|
778 |
-
.jb-critical-css__error-description {
|
779 |
-
line-height: 1.5rem;
|
780 |
-
color: #23282D;
|
781 |
-
}
|
782 |
-
.jb-critical-css__error-description a, .jb-critical-css__error-description h5, .jb-critical-css__error-description a.action {
|
783 |
-
color: inherit;
|
784 |
-
}
|
785 |
-
.jb-critical-css__error-description button.foldable-element-control {
|
786 |
-
color: #23282D;
|
787 |
-
font-size: 16px;
|
788 |
-
margin-bottom: 24px;
|
789 |
-
}
|
790 |
-
.jb-critical-css__error-description button.foldable-element-control.visible {
|
791 |
-
margin-bottom: 0;
|
792 |
-
}
|
793 |
-
.jb-critical-css__error-description ul {
|
794 |
-
margin-top: 4px;
|
795 |
-
}
|
796 |
-
.jb-critical-css__error-description h5 {
|
797 |
-
font-size: 16px;
|
798 |
-
margin-top: 24px;
|
799 |
-
margin-bottom: 8px;
|
800 |
-
font-weight: bold;
|
801 |
-
}
|
802 |
-
.jb-critical-css__error-description .problem img {
|
803 |
-
margin-top: 20px;
|
804 |
-
display: block;
|
805 |
-
}
|
806 |
-
.jb-critical-css__error-description p.suggestion, .jb-critical-css__error-description p.suggestion-closing, .jb-critical-css__error-description p.raw-error {
|
807 |
-
color: #23282D;
|
808 |
-
margin-top: 8px;
|
809 |
-
margin-bottom: 24px;
|
810 |
-
}
|
811 |
-
.jb-critical-css__error-description pre {
|
812 |
-
background-color: #f1f1f1;
|
813 |
-
padding: 25px;
|
814 |
-
margin: 20px 0;
|
815 |
-
text-align: left;
|
816 |
-
white-space: pre-wrap;
|
817 |
-
color: #0f0f0f;
|
818 |
-
border-radius: 6px;
|
819 |
-
}
|
820 |
-
|
821 |
-
.jb-critical-css__advanced .panel {
|
822 |
-
margin-top: 24px;
|
823 |
-
position: relative;
|
824 |
-
border: 1px solid #dcdcde;
|
825 |
-
border-radius: 4px;
|
826 |
-
padding: 24px 69px 0 27px;
|
827 |
-
}
|
828 |
-
.jb-critical-css__advanced .panel li {
|
829 |
-
overflow-wrap: break-word;
|
830 |
-
word-wrap: break-word;
|
831 |
-
-ms-word-break: break-all;
|
832 |
-
word-break: break-all;
|
833 |
-
word-break: break-word;
|
834 |
-
}
|
835 |
-
.jb-critical-css__advanced .panel h4 {
|
836 |
-
font-size: 20px;
|
837 |
-
margin-bottom: 1rem;
|
838 |
-
font-weight: bold;
|
839 |
-
}
|
840 |
-
.jb-critical-css__advanced .panel h4 svg {
|
841 |
-
vertical-align: sub;
|
842 |
-
margin: 4px 4px 2px 0;
|
843 |
-
height: 20px;
|
844 |
-
fill: #CC1818;
|
845 |
-
}
|
846 |
-
.jb-critical-css__advanced button {
|
847 |
-
color: #1d2327;
|
848 |
-
}
|
849 |
-
.jb-critical-css__advanced button.components-button.is-link {
|
850 |
-
margin-left: auto;
|
851 |
-
}
|
852 |
-
.jb-critical-css__advanced button.components-button.is-link:hover {
|
853 |
-
color: #1d2327;
|
854 |
-
}
|
855 |
-
.jb-critical-css__advanced button svg {
|
856 |
-
margin: 4px 4px 2px 0;
|
857 |
-
height: 1.5rem;
|
858 |
-
}
|
859 |
-
.jb-critical-css__advanced button.close {
|
860 |
-
font-size: 14pt;
|
861 |
-
text-decoration: none;
|
862 |
-
margin-bottom: 20px;
|
863 |
-
}
|
864 |
-
.jb-critical-css__advanced button.close svg {
|
865 |
-
margin-right: 20px;
|
866 |
-
}
|
867 |
-
|
868 |
-
.jb-critical-css__meta {
|
869 |
-
font-size: 14px;
|
870 |
-
line-height: 22px;
|
871 |
-
display: flex;
|
872 |
-
flex-direction: row;
|
873 |
-
align-items: flex-start;
|
874 |
-
}
|
875 |
-
@media (max-width: 767px) {
|
876 |
-
.jb-critical-css__meta {
|
877 |
-
display: block;
|
878 |
-
}
|
879 |
-
}
|
880 |
-
.jb-critical-css__meta .summary {
|
881 |
-
margin-right: 5px;
|
882 |
-
flex-grow: 1;
|
883 |
-
position: relative;
|
884 |
-
}
|
885 |
-
.jb-critical-css__meta .summary .successes {
|
886 |
-
color: #787c82;
|
887 |
-
}
|
888 |
-
.jb-critical-css__meta .summary .failures {
|
889 |
-
color: #101517;
|
890 |
-
max-width: 25em;
|
891 |
-
}
|
892 |
-
.jb-critical-css__meta .summary .failures svg {
|
893 |
-
position: absolute;
|
894 |
-
width: 1.4rem;
|
895 |
-
height: 1.4rem;
|
896 |
-
left: -60px;
|
897 |
-
}
|
898 |
-
.jb-critical-css__meta button {
|
899 |
-
font-size: 14px;
|
900 |
-
color: #1d2327;
|
901 |
-
}
|
902 |
-
.jb-critical-css__meta button.components-button.is-link {
|
903 |
-
margin-left: 8px;
|
904 |
-
}
|
905 |
-
.jb-critical-css__meta button.components-button.is-link:hover {
|
906 |
-
color: #1d2327;
|
907 |
-
}
|
908 |
-
@media (max-width: 767px) {
|
909 |
-
.jb-critical-css__meta button.components-button.is-link {
|
910 |
-
margin-left: 0;
|
911 |
-
}
|
912 |
-
}
|
913 |
-
.jb-critical-css__meta button svg {
|
914 |
-
margin: 4px 4px 2px 0;
|
915 |
-
fill: #008710;
|
916 |
-
}
|
917 |
-
|
918 |
-
.url-container {
|
919 |
-
margin-top: 20px;
|
920 |
-
display: flex;
|
921 |
-
margin-bottom: 24px;
|
922 |
-
}
|
923 |
-
.url-container .segment {
|
924 |
-
font-size: 24px;
|
925 |
-
line-height: 28px;
|
926 |
-
font-weight: bold;
|
927 |
-
align-self: flex-end;
|
928 |
-
}
|
929 |
-
.url-container .label {
|
930 |
-
font-size: 10px;
|
931 |
-
color: gray;
|
932 |
-
position: relative;
|
933 |
-
left: 8px;
|
934 |
-
line-height: 12px;
|
935 |
-
margin-bottom: 4px;
|
936 |
-
font-weight: normal;
|
937 |
-
}
|
938 |
-
.url-container .arrows {
|
939 |
-
border-image: url("../static/images/arrows.png");
|
940 |
-
border-image-slice: 22;
|
941 |
-
border-bottom: solid 16px transparent;
|
942 |
-
border-left: solid 16px transparent;
|
943 |
-
border-right: solid 16px transparent;
|
944 |
-
margin-bottom: 2px;
|
945 |
-
min-width: 48px;
|
946 |
-
}
|
947 |
-
|
948 |
-
.jb-cloud-css-meta {
|
949 |
-
display: flex;
|
950 |
-
justify-content: space-between;
|
951 |
-
}
|
952 |
-
.jb-cloud-css-meta .meta-description {
|
953 |
-
font-size: 14px;
|
954 |
-
color: #888888;
|
955 |
-
}
|
956 |
-
|
957 |
-
.cross-close {
|
958 |
-
position: absolute;
|
959 |
-
right: 21px;
|
960 |
-
top: 21px;
|
961 |
-
width: 20px;
|
962 |
-
height: 20px;
|
963 |
-
opacity: 0.7;
|
964 |
-
}
|
965 |
-
.cross-close:hover {
|
966 |
-
opacity: 1;
|
967 |
-
}
|
968 |
-
.cross-close:before, .cross-close:after {
|
969 |
-
position: absolute;
|
970 |
-
left: 9px;
|
971 |
-
content: " ";
|
972 |
-
height: 19px;
|
973 |
-
width: 2px;
|
974 |
-
background-color: #333;
|
975 |
-
}
|
976 |
-
.cross-close:before {
|
977 |
-
transform: rotate(45deg);
|
978 |
-
}
|
979 |
-
.cross-close:after {
|
980 |
-
transform: rotate(-45deg);
|
981 |
-
}
|
982 |
-
.cross-close span {
|
983 |
-
border: 0;
|
984 |
-
clip: rect(1px, 1px, 1px, 1px);
|
985 |
-
clip-path: inset(50%);
|
986 |
-
height: 1px;
|
987 |
-
margin: -1px;
|
988 |
-
overflow: hidden;
|
989 |
-
padding: 0;
|
990 |
-
position: absolute;
|
991 |
-
width: 1px;
|
992 |
-
word-wrap: normal !important;
|
993 |
-
}
|
994 |
-
|
995 |
-
.numbered-list {
|
996 |
-
list-style-type: none;
|
997 |
-
margin-left: 0;
|
998 |
-
}
|
999 |
-
.numbered-list li {
|
1000 |
-
margin-bottom: 0.5em;
|
1001 |
-
display: flex;
|
1002 |
-
}
|
1003 |
-
.numbered-list .text {
|
1004 |
-
flex: 1;
|
1005 |
-
}
|
1006 |
-
.numbered-list .index {
|
1007 |
-
border: 1px solid #ccc;
|
1008 |
-
border-radius: 50%;
|
1009 |
-
display: block;
|
1010 |
-
width: 1.5em;
|
1011 |
-
height: 1.5em;
|
1012 |
-
text-align: center;
|
1013 |
-
line-height: 1.4em;
|
1014 |
-
margin-right: 5px;
|
1015 |
-
}
|
1016 |
-
|
1017 |
-
.jb-rating-card {
|
1018 |
-
box-shadow: 0 0 20px 0 rgba(170, 170, 170, 0.28);
|
1019 |
-
width: 300px;
|
1020 |
-
position: absolute;
|
1021 |
-
top: 40px;
|
1022 |
-
right: 0;
|
1023 |
-
background-color: #ffffff;
|
1024 |
-
z-index: 60;
|
1025 |
-
padding: 24px;
|
1026 |
-
}
|
1027 |
-
.jb-rating-card .jb-rating-card__headline {
|
1028 |
-
margin-right: 21px;
|
1029 |
-
}
|
1030 |
-
|
1031 |
-
.jb-settings .jb-button--primary {
|
1032 |
-
color: #ffffff;
|
1033 |
-
background-color: #000000;
|
1034 |
-
border-radius: 4px;
|
1035 |
-
border: none;
|
1036 |
-
padding: 10px 24px;
|
1037 |
-
text-decoration: none;
|
1038 |
-
display: inline-block;
|
1039 |
-
}
|
1 |
+
@charset "UTF-8";.jp-dashboard-footer{align-items:center;color:#000;display:flex;flex-flow:row wrap;justify-content:space-between;max-width:1128px;width:100%}.jp-dashboard-footer a,.jp-dashboard-footer a:hover,.jp-dashboard-footer a:visited{color:#000;text-decoration:none}.jp-dashboard-footer__jetpack-symbol,.jp-dashboard-footer__module-name{display:inline-block;vertical-align:middle}.jp-dashboard-footer__module-name{font-size:12px;font-weight:600;margin-left:5px}@keyframes rotate-spinner{to{transform:rotate(1turn)}}.jp-components-spinner{align-items:center;display:flex}.jp-components-spinner__inner,.jp-components-spinner__outer{animation:3s linear infinite;animation-name:rotate-spinner;border:.1em solid transparent;border-radius:50%;box-sizing:border-box;margin:auto}.jp-components-spinner__outer{border-top-color:#fff}.jp-components-spinner__inner{border-right-color:#fff;border-top-color:#fff;height:100%;opacity:.4;width:100%}.gridicon{fill:currentColor;display:inline-block}.gridicon.needs-offset g{transform:translate(1px,1px)}.gridicon.needs-offset-x g{transform:translate(1px)}.gridicon.needs-offset-y g{transform:translateY(1px)}.jp-action-button--button{background:#000}.jp-action-button--button,.jp-action-button--button.components-button{border-radius:4px;display:block;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:14px;font-style:normal;font-weight:600;height:40px;line-height:18px;min-width:264px;text-align:center}.jp-action-button__error{background:url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTEyIDIwYTggOCAwIDEgMCAwLTE2IDggOCAwIDAgMCAwIDE2WiIgc3Ryb2tlPSIjRDYzNjM5IiBzdHJva2Utd2lkdGg9IjEuNSIvPjxwYXRoIGQ9Ik0xMyA3aC0ydjZoMlY3Wk0xMyAxNWgtMnYyaDJ2LTJaIiBmaWxsPSIjRDYzNjM5Ii8+PC9zdmc+") no-repeat 0 0;color:var(--jp-red)!important;line-height:25px!important;padding-left:25px}.jp-components__pricing-card{background:var(--jp-white);border-radius:var(--jp-border-radius);box-shadow:0 10px 40px rgba(0,0,0,.08);max-width:384px;padding:24px 24px 32px;width:-moz-fit-content;width:fit-content}@media screen and (min-width:600px){.jp-components__pricing-card{padding:32px 32px 44px}}.jp-components__pricing-card__icon img{height:32px;width:32px}.jp-components__pricing-card__title{color:#101517;font-size:32px;line-height:38px;margin:16px 0 24px}.jp-components__pricing-card__pricing{display:flex;flex-wrap:wrap}.jp-components__pricing-card__price-after,.jp-components__pricing-card__price-before{display:inline-block;font-size:54px;font-weight:700;line-height:40px;margin-bottom:8px;padding:0 2px}.jp-components__pricing-card__price-before{color:var(--jp-gray-20);margin-right:16px;position:relative}.jp-components__pricing-card__price-strikethrough{background:var(--jp-pink);border-radius:1.5px;height:3px;left:0;position:absolute;top:20px;width:100%}.jp-components__pricing-card__price-after{color:var(--jp-black)}.jp-components__pricing-card__currency{font-size:var(--font-title-small);font-weight:400;line-height:20px;vertical-align:super}.jp-components__pricing-card__price-details{align-self:flex-end;color:var(--jp-gray-50);font-size:14px;font-weight:400;letter-spacing:-.02em;line-height:17px;margin-bottom:8px}.jp-components__pricing-card__price-decimal{font-size:var(--font-label);line-height:14px;vertical-align:top}.jp-components__pricing-card__button{align-items:center;background:var(--jp-black);border-radius:var(--jp-border-radius);color:var(--jp-white)!important;font-size:18px;height:auto;justify-content:center;margin:24px 0 32px;padding:14px 24px;width:100%}.jp-components__pricing-card__info{color:var(--jp-gray-60);font-size:var(--font-label);letter-spacing:-.02em;line-height:20px}.style-module_section__M6gPL{background-color:var(--jp-white)}.style-module_section-hero__WQb-l{background:var(--jp-white-off)}@media (max-width:599px){.style-module_col-sm-1__YvYpc{grid-column-end:span 1}.style-module_col-sm-1-start__4BDoj{grid-column-start:1}.style-module_col-sm-1-end__Enqm-{grid-column-end:2}.style-module_col-sm-2__rKExx{grid-column-end:span 2}.style-module_col-sm-2-start__Re5er{grid-column-start:2}.style-module_col-sm-2-end__icYHE{grid-column-end:3}.style-module_col-sm-3__V2xo5{grid-column-end:span 3}.style-module_col-sm-3-start__rduoX{grid-column-start:3}.style-module_col-sm-3-end__ku-L9{grid-column-end:4}.style-module_col-sm-4__oOplX{grid-column-end:span 4}.style-module_col-sm-4-start__9p5NT{grid-column-start:4}.style-module_col-sm-4-end__98QQ0{grid-column-end:5}}@media (min-width:600px) and (max-width:959px){.style-module_col-md-1__Jhx3p{grid-column-end:span 1}.style-module_col-md-1-start__jGVOD{grid-column-start:1}.style-module_col-md-1-end__J-0gY{grid-column-end:2}.style-module_col-md-2__UQexx{grid-column-end:span 2}.style-module_col-md-2-start__bPzvE{grid-column-start:2}.style-module_col-md-2-end__9WEpU{grid-column-end:3}.style-module_col-md-3__cTHg1{grid-column-end:span 3}.style-module_col-md-3-start__EJ-2-{grid-column-start:3}.style-module_col-md-3-end__Y-l7k{grid-column-end:4}.style-module_col-md-4__epmXZ{grid-column-end:span 4}.style-module_col-md-4-start__7lf-0{grid-column-start:4}.style-module_col-md-4-end__hNJw-{grid-column-end:5}.style-module_col-md-5__3lJHI{grid-column-end:span 5}.style-module_col-md-5-start__pDjRp{grid-column-start:5}.style-module_col-md-5-end__P7n-1{grid-column-end:6}.style-module_col-md-6__TseHN{grid-column-end:span 6}.style-module_col-md-6-start__I0gyB{grid-column-start:6}.style-module_col-md-6-end__VPbFs{grid-column-end:7}.style-module_col-md-7__TOAcb{grid-column-end:span 7}.style-module_col-md-7-start__9-RxA{grid-column-start:7}.style-module_col-md-7-end__CbzV-{grid-column-end:8}.style-module_col-md-8__pITsz{grid-column-end:span 8}.style-module_col-md-8-start__tpLMu{grid-column-start:8}.style-module_col-md-8-end__GNbWt{grid-column-end:9}}@media (min-width:960px){.style-module_col-lg-1__SnAKg{grid-column-end:span 1}.style-module_col-lg-1-start__tOUb-{grid-column-start:1}.style-module_col-lg-1-end__pPvPu{grid-column-end:2}.style-module_col-lg-2__A-cZb{grid-column-end:span 2}.style-module_col-lg-2-start__obB4X{grid-column-start:2}.style-module_col-lg-2-end__JzaoC{grid-column-end:3}.style-module_col-lg-3__z0isu{grid-column-end:span 3}.style-module_col-lg-3-start__olS7x{grid-column-start:3}.style-module_col-lg-3-end__8xnNp{grid-column-end:4}.style-module_col-lg-4__-wCLV{grid-column-end:span 4}.style-module_col-lg-4-start__9SWfC{grid-column-start:4}.style-module_col-lg-4-end__2GfeF{grid-column-end:5}.style-module_col-lg-5__UuzUz{grid-column-end:span 5}.style-module_col-lg-5-start__SWqQu{grid-column-start:5}.style-module_col-lg-5-end__iELZ5{grid-column-end:6}.style-module_col-lg-6__sYjcr{grid-column-end:span 6}.style-module_col-lg-6-start__SB6xA{grid-column-start:6}.style-module_col-lg-6-end__ame8N{grid-column-end:7}.style-module_col-lg-7__0sAWu{grid-column-end:span 7}.style-module_col-lg-7-start__8zhFX{grid-column-start:7}.style-module_col-lg-7-end__ytys8{grid-column-end:8}.style-module_col-lg-8__oSy6D{grid-column-end:span 8}.style-module_col-lg-8-start__4O-8T{grid-column-start:8}.style-module_col-lg-8-end__6lIOs{grid-column-end:9}.style-module_col-lg-9__6NGiv{grid-column-end:span 9}.style-module_col-lg-9-start__6-7aF{grid-column-start:9}.style-module_col-lg-9-end__DpPP6{grid-column-end:10}.style-module_col-lg-10__qCMtr{grid-column-end:span 10}.style-module_col-lg-10-start__VNYBV{grid-column-start:10}.style-module_col-lg-10-end__SJ2Vw{grid-column-end:11}.style-module_col-lg-11__KBvMu{grid-column-end:span 11}.style-module_col-lg-11-start__cPry8{grid-column-start:11}.style-module_col-lg-11-end__uKx2j{grid-column-end:12}.style-module_col-lg-12__46dP3{grid-column-end:span 12}.style-module_col-lg-12-start__lKgOq{grid-column-start:12}.style-module_col-lg-12-end__yAC61{grid-column-end:13}}.style-module_container__5Rcgn{--max-container-width:1128px;--vertical-gutter:24px;--horizontal-spacing:8px;column-gap:var(--vertical-gutter);display:grid;margin:0 auto;max-width:var(--max-container-width);width:100%}@media (max-width:599px){.style-module_container__5Rcgn{grid-template-columns:repeat(4,minmax(0,1fr));padding:0 16px}}@media (min-width:600px) and (max-width:959px){.style-module_container__5Rcgn{grid-template-columns:repeat(8,minmax(0,1fr));padding:0 18px}}@media (min-width:960px){.style-module_container__5Rcgn{grid-template-columns:repeat(12,minmax(0,1fr));padding:0 24px}}.style-module_container__5Rcgn.style-module_fluid__3zVZD{max-width:none;padding:unset}.style-module_admin-page__3o3pO{margin-left:-20px}@media (max-width:782px){.style-module_admin-page__3o3pO{margin-left:-10px}}.style-module_admin-page__3o3pO.style-module_background__ykC-q{background-color:var(--jp-white)}:root{--font-title-large:36px;--font-title-small:24px;--font-body:16px;--font-label:12px;--jp-black:#000;--jp-black-80:#2c3338;--jp-white:#fff;--jp-white-off:#f9f9f6;--jp-gray:#dcdcde;--jp-gray-0:#f6f7f7;--jp-gray-5:#dcdcde;--jp-gray-10:#c3c4c7;--jp-gray-20:#a7aaad;--jp-gray-30:#8c8f94;--jp-gray-40:#787c82;--jp-gray-50:#646970;--jp-gray-60:#50575e;--jp-gray-70:#3c434a;--jp-gray-80:#2c3338;--jp-gray-90:#1d2327;--jp-gray-100:#101517;--jp-gray-off:#e2e2df;--jp-yellow-10:#f2cf75;--jp-red-0:#f7ebec;--jp-red-50:#d63638;--jp-red-60:#b32d2e;--jp-red-80:#8a2424;--jp-red:#d63639;--jp-pink:#c9356e;--jp-green-0:#f0f2eb;--jp-green-5:#d0e6b8;--jp-green-10:#9dd977;--jp-green-20:#64ca43;--jp-green-30:#2fb41f;--jp-green-40:#069e08;--jp-green-50:#008710;--jp-green-60:#007117;--jp-green-70:#005b18;--jp-green-80:#004515;--jp-green-90:#003010;--jp-green-100:#001c09;--jp-green:#069e08;--jp-green-primary:var( --jp-green-40 );--jp-green-secondary:var( --jp-green-30 );--jp-border-radius:4px;--jp-menu-border-height:1px;--jp-underline-thickness:2px}*{box-sizing:border-box}body{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;margin:0;min-height:100%;padding:0}.jp-wrap{align-items:center;display:flex;flex-wrap:wrap;margin:0 auto;max-width:1128px}.jp-row{grid-gap:24px;display:grid;grid-template-columns:repeat(4,1fr);margin:0 16px;width:100%}@media (min-width:600px){.jp-row{grid-template-columns:repeat(8,1fr);margin:0 18px}}@media (min-width:960px){.jp-row{grid-template-columns:repeat(12,1fr);margin:0 24px;max-width:1128px}}.sm-col-span-1{grid-column-end:span 1}.sm-col-span-2{grid-column-end:span 2}.sm-col-span-3{grid-column-end:span 3}.sm-col-span-4{grid-column-end:span 4}@media (min-width:600px){.md-col-span-1{grid-column-end:span 1}.md-col-span-2{grid-column-end:span 2}.md-col-span-3{grid-column-end:span 3}.md-col-span-4{grid-column-end:span 4}.md-col-span-5{grid-column-end:span 5}.md-col-span-6{grid-column-end:span 6}.md-col-span-7{grid-column-end:span 7}.md-col-span-8{grid-column-end:span 8}}@media (min-width:960px){.lg-col-span-1{grid-column-end:span 1}.lg-col-span-2{grid-column-end:span 2}.lg-col-span-3{grid-column-end:span 3}.lg-col-span-4{grid-column-end:span 4}.lg-col-span-5{grid-column-end:span 5}.lg-col-span-6{grid-column-end:span 6}.lg-col-span-7{grid-column-end:span 7}.lg-col-span-8{grid-column-end:span 8}.lg-col-span-9{grid-column-end:span 9}.lg-col-span-10{grid-column-end:span 10}.lg-col-span-11{grid-column-end:span 11}.lg-col-span-12{grid-column-end:span 12}}@media (max-width:960px){.md-col-span-0{display:none}}@media (max-width:600px){.sm-col-span-0{display:none}}.jp-cut{border:2px solid var(--jp-green-primary);border-radius:var(--jp-border-radius);margin:32px 0;padding:16px 64px 16px 24px;position:relative;text-decoration:none}.jp-cut,.jp-cut span{display:block}.jp-cut span:last-of-type{font-weight:600}.jp-cut:focus span:last-of-type,.jp-cut:hover span:last-of-type{text-decoration:underline;text-decoration-thickness:var(--jp-underline-thickness)}.jp-cut:focus:after,.jp-cut:hover:after{transform:translateY(-50%) translateX(8px)}.jp-cut:after{color:var(--jp-green-primary);content:"→";font-size:24px;font-weight:600;position:absolute;right:24px;top:50%;transform:translateY(-50%);transition:transform .15s ease-out}.jp-components__decorative-card{border-radius:8px;box-shadow:0 0 15px var(--jp-gray);display:flex;height:280px;margin:0 auto 3rem;max-width:100%;overflow:hidden;position:relative;width:360px}.jp-components__decorative-card__content,.jp-components__decorative-card__image{width:50%}.jp-components__decorative-card__image{background:var(--jp-gray);background-size:cover;position:relative}.jp-components__decorative-card__image:before{background-image:url('data:image/svg+xml;uf8,<svg width="38" height="8" viewBox="0 0 38 8" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M1 7C1 7 2.37087 1 6.89831 1C11.4257 1 14.3709 7 18.8983 7C23.4257 7 26.7777 1 31.3051 1C35.912 1 37 7 37 7" stroke="white" stroke-width="1.5" stroke-linejoin="round"/></svg>');content:"";display:block;height:8px;left:24px;position:absolute;top:24px;width:38px}.jp-components__decorative-card__content{background:#fff;padding:2rem}.jp-components__decorative-card__icon-container{background:var(--jp-red);border-radius:50px;height:80px;left:50%;position:absolute;top:50%;transform:translate(-50%,-50%);width:80px}.jp-components__decorative-card__icon{background-position:50%,50%;background-repeat:no-repeat;height:40px;left:50%;position:absolute;top:50%;transform:translate(-50%,-50%);width:40px}.jp-components__decorative-card__icon--unlink{background-image:url('data:image/svg+xml;uf8,<svg width="34" height="37" viewBox="0 0 34 37" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M22.3335 10.001H25.0002C29.4184 10.001 33.0002 13.5827 33.0002 18.001V19.7788C33.0002 24.197 29.4184 27.7788 25.0002 27.7788H22.3335" stroke="white" stroke-width="1.5" stroke-linecap="square"/> <path d="M11.6675 27.7783L9.00082 27.7783C4.58254 27.7783 1.00081 24.1966 1.00081 19.7783L1.00081 18.0005C1.00081 13.5823 4.58253 10.0005 9.00081 10.0005L11.6675 10.0005" stroke="white" stroke-width="1.5" stroke-linecap="square"/> <path d="M10.9998 19.167L16.9998 19.167" stroke="white" stroke-width="1.5"/> <path d="M8.99951 35.998L24.9995 0.998048" stroke="white"/> </svg>')}.jp-components__decorative-card__lines,.jp-components__decorative-card__lines:after,.jp-components__decorative-card__lines:before{background:#e9eff5;border-radius:6px;display:block;height:12px;position:relative;width:100%}.jp-components__decorative-card__lines:after,.jp-components__decorative-card__lines:before{content:"";top:calc(100% + 16px)}.jp-components__decorative-card__lines:after{top:calc(100% + 32px);width:75%}.jp-components__decorative-card--vertical{flex-direction:column}.jp-components__decorative-card--vertical .jp-components__decorative-card__content,.jp-components__decorative-card--vertical .jp-components__decorative-card__image{height:50%;width:100%}.jp-components__decorative-card--vertical .jp-components__decorative-card__lines{margin-left:auto;margin-right:auto;max-width:135px}.jp-components__decorative-card--vertical .jp-components__decorative-card__lines:after,.jp-components__decorative-card--vertical .jp-components__decorative-card__lines:before{margin-left:auto;margin-right:auto}.style-module_iconWrapper__ZdbQ9{fill:#2c3338}.style-module_star-icon__42uUB{fill:#000}.style-module_checkmark-icon__BIwoz,.style-module_jetpack__jGroS{fill:var(--jp-green-primary)}.style-module_socialIcon__053QE{fill:#757575}.style-module_socialIcon__053QE.style-module_facebook__eHP85{fill:var(--color-facebook);border-radius:50%!important}.style-module_socialIcon__053QE.style-module_twitter__dKQGg{fill:var(--color-twitter)}.style-module_socialIcon__053QE.style-module_linkedin__gPx63{fill:var(--color-linkedin)}.style-module_socialIcon__053QE.style-module_tumblr__es-rX{fill:var(--color-tumblr)}.style-module_socialIcon__053QE.style-module_google__jCsDv{fill:var(--color-gplus)}.style-module_split-button__sPY6y{--actions-size:28px;border-radius:var(--jp-border-radius);display:flex;height:var(--actions-size)}.style-module_split-button__sPY6y>.style-module_button__RqLV0:first-child{border-radius:var(--jp-border-radius) 0 0 var(--jp-border-radius)}.style-module_split-button__sPY6y>.components-dropdown>.style-module_button__RqLV0{border-radius:0 var(--jp-border-radius) var(--jp-border-radius) 0}.style-module_button__RqLV0{border-radius:var(--jp-border-radius);font-size:var(--font-body-extra-small);height:var(--actions-size);line-height:var(--actions-size)}.style-module_reset__JQIl5{margin:0;padding:0}.style-module_headline-medium__y8X4t{font-size:var(--font-headline-medium);font-weight:700;line-height:52px}.style-module_headline-small__GcbDS{font-size:var(--font-headline-small);font-weight:700;line-height:40px}.style-module_headline-small-regular__InOiB{font-size:var(--font-headline-small);font-weight:400;line-height:40px}.style-module_title-medium__oltWr{font-size:var(--font-title-medium);font-weight:500;line-height:32px}.style-module_title-small__CmEYM{font-size:var(--font-title-small);font-weight:500;line-height:30px}.style-module_body__JShE-{font-size:var(--font-body);font-weight:400;line-height:24px}.style-module_body-small__yz3P5{font-size:var(--font-body-small);font-weight:400;line-height:24px}.style-module_body-extra-small__GWJz7{font-size:var(--font-body-extra-small);font-weight:400;line-height:20px}.style-module_label__sX6aq{font-size:var(--font-body-extra-small);font-weight:600;line-height:16px}.style-module_m-0__p8HXB{margin:calc(var( --spacing-base )*0)}.style-module_mx-0__mQqs8{margin-left:calc(var( --spacing-base )*0);margin-right:calc(var( --spacing-base )*0)}.style-module_my-0__rREwD{margin-bottom:calc(var( --spacing-base )*0)}.style-module_mt-0__JCDg8,.style-module_my-0__rREwD{margin-top:calc(var( --spacing-base )*0)}.style-module_mr-0__jvdEc{margin-right:calc(var( --spacing-base )*0)}.style-module_mb-0__oCU0U{margin-bottom:calc(var( --spacing-base )*0)}.style-module_ml-0__ZOeKB{margin-left:calc(var( --spacing-base )*0)}.style-module_m-1__4eRn2{margin:calc(var( --spacing-base )*1)}.style-module_mx-1__ZI-Gx{margin-left:calc(var( --spacing-base )*1);margin-right:calc(var( --spacing-base )*1)}.style-module_my-1__0ocjM{margin-bottom:calc(var( --spacing-base )*1)}.style-module_mt-1__cfSJ2,.style-module_my-1__0ocjM{margin-top:calc(var( --spacing-base )*1)}.style-module_mr-1__-I5M9{margin-right:calc(var( --spacing-base )*1)}.style-module_mb-1__7h8Zk{margin-bottom:calc(var( --spacing-base )*1)}.style-module_ml-1__HMEIC{margin-left:calc(var( --spacing-base )*1)}.style-module_m-2__0k3GP{margin:calc(var( --spacing-base )*2)}.style-module_mx-2__kjUes{margin-left:calc(var( --spacing-base )*2);margin-right:calc(var( --spacing-base )*2)}.style-module_my-2__tgIE9{margin-bottom:calc(var( --spacing-base )*2)}.style-module_mt-2__9VmIV,.style-module_my-2__tgIE9{margin-top:calc(var( --spacing-base )*2)}.style-module_mr-2__ir4Xm{margin-right:calc(var( --spacing-base )*2)}.style-module_mb-2__97Wbq{margin-bottom:calc(var( --spacing-base )*2)}.style-module_ml-2__1I9Ji{margin-left:calc(var( --spacing-base )*2)}.style-module_m-3__mqRjK{margin:calc(var( --spacing-base )*3)}.style-module_mx-3__Z55Jr{margin-left:calc(var( --spacing-base )*3);margin-right:calc(var( --spacing-base )*3)}.style-module_my-3__-PEMP{margin-bottom:calc(var( --spacing-base )*3)}.style-module_mt-3__M8cWp,.style-module_my-3__-PEMP{margin-top:calc(var( --spacing-base )*3)}.style-module_mr-3__gANcC{margin-right:calc(var( --spacing-base )*3)}.style-module_mb-3__Ohnln{margin-bottom:calc(var( --spacing-base )*3)}.style-module_ml-3__29xh1{margin-left:calc(var( --spacing-base )*3)}.style-module_m-4__Nkax1{margin:calc(var( --spacing-base )*4)}.style-module_mx-4__6y-RS{margin-left:calc(var( --spacing-base )*4);margin-right:calc(var( --spacing-base )*4)}.style-module_my-4__MVPE5{margin-bottom:calc(var( --spacing-base )*4)}.style-module_mt-4__Z4ouN,.style-module_my-4__MVPE5{margin-top:calc(var( --spacing-base )*4)}.style-module_mr-4__sN8QA{margin-right:calc(var( --spacing-base )*4)}.style-module_mb-4__0NCvC{margin-bottom:calc(var( --spacing-base )*4)}.style-module_ml-4__0m2f9{margin-left:calc(var( --spacing-base )*4)}.style-module_m-5__VITl8{margin:calc(var( --spacing-base )*5)}.style-module_mx-5__Mt1vK{margin-left:calc(var( --spacing-base )*5);margin-right:calc(var( --spacing-base )*5)}.style-module_my-5__NkXY8{margin-bottom:calc(var( --spacing-base )*5)}.style-module_mt-5__XMIcG,.style-module_my-5__NkXY8{margin-top:calc(var( --spacing-base )*5)}.style-module_mr-5__4gm9K{margin-right:calc(var( --spacing-base )*5)}.style-module_mb-5__uHQI6{margin-bottom:calc(var( --spacing-base )*5)}.style-module_ml-5__2aYFV{margin-left:calc(var( --spacing-base )*5)}.style-module_m-6__Vs-qv{margin:calc(var( --spacing-base )*6)}.style-module_mx-6__4WjQw{margin-left:calc(var( --spacing-base )*6);margin-right:calc(var( --spacing-base )*6)}.style-module_my-6__j3fa6{margin-bottom:calc(var( --spacing-base )*6)}.style-module_mt-6__SjA23,.style-module_my-6__j3fa6{margin-top:calc(var( --spacing-base )*6)}.style-module_mr-6__LatEO{margin-right:calc(var( --spacing-base )*6)}.style-module_mb-6__x3cLw{margin-bottom:calc(var( --spacing-base )*6)}.style-module_ml-6__cpcEv{margin-left:calc(var( --spacing-base )*6)}.style-module_m-7__Effhv{margin:calc(var( --spacing-base )*7)}.style-module_mx-7__q-Sm4{margin-left:calc(var( --spacing-base )*7);margin-right:calc(var( --spacing-base )*7)}.style-module_my-7__CNXQY{margin-bottom:calc(var( --spacing-base )*7)}.style-module_mt-7__52N7n,.style-module_my-7__CNXQY{margin-top:calc(var( --spacing-base )*7)}.style-module_mr-7__olIOD{margin-right:calc(var( --spacing-base )*7)}.style-module_mb-7__Byz-y{margin-bottom:calc(var( --spacing-base )*7)}.style-module_ml-7__9aLfR{margin-left:calc(var( --spacing-base )*7)}.style-module_m-8__0GQyc{margin:calc(var( --spacing-base )*8)}.style-module_mx-8__dPru6{margin-left:calc(var( --spacing-base )*8);margin-right:calc(var( --spacing-base )*8)}.style-module_my-8__V0nij{margin-bottom:calc(var( --spacing-base )*8)}.style-module_mt-8__1KgQ9,.style-module_my-8__V0nij{margin-top:calc(var( --spacing-base )*8)}.style-module_mr-8__6iuRy{margin-right:calc(var( --spacing-base )*8)}.style-module_mb-8__2RUTX{margin-bottom:calc(var( --spacing-base )*8)}.style-module_ml-8__mJcqN{margin-left:calc(var( --spacing-base )*8)}.style-module_p-0__AArLS{padding:calc(var( --spacing-base )*0)}.style-module_px-0__s-9QU{padding-left:calc(var( --spacing-base )*0);padding-right:calc(var( --spacing-base )*0)}.style-module_py-0__Hc-BN{padding-bottom:calc(var( --spacing-base )*0)}.style-module_pt-0__n5vG6,.style-module_py-0__Hc-BN{padding-top:calc(var( --spacing-base )*0)}.style-module_pr-0__WvzOI{padding-right:calc(var( --spacing-base )*0)}.style-module_pb-0__gDmxZ{padding-bottom:calc(var( --spacing-base )*0)}.style-module_pl-0__aKJzm{padding-left:calc(var( --spacing-base )*0)}.style-module_p-1__WJ0OK{padding:calc(var( --spacing-base )*1)}.style-module_px-1__l58C8{padding-left:calc(var( --spacing-base )*1);padding-right:calc(var( --spacing-base )*1)}.style-module_py-1__ae17q{padding-bottom:calc(var( --spacing-base )*1)}.style-module_pt-1__1BMtM,.style-module_py-1__ae17q{padding-top:calc(var( --spacing-base )*1)}.style-module_pr-1__DNoug{padding-right:calc(var( --spacing-base )*1)}.style-module_pb-1__fOqHk{padding-bottom:calc(var( --spacing-base )*1)}.style-module_pl-1__LO2-p{padding-left:calc(var( --spacing-base )*1)}.style-module_p-2__1uV6E{padding:calc(var( --spacing-base )*2)}.style-module_px-2__KLPjd{padding-left:calc(var( --spacing-base )*2);padding-right:calc(var( --spacing-base )*2)}.style-module_py-2__zFyGu{padding-bottom:calc(var( --spacing-base )*2)}.style-module_pt-2__b6TjW,.style-module_py-2__zFyGu{padding-top:calc(var( --spacing-base )*2)}.style-module_pr-2__VA7WW{padding-right:calc(var( --spacing-base )*2)}.style-module_pb-2__u9VXk{padding-bottom:calc(var( --spacing-base )*2)}.style-module_pl-2__ocYty{padding-left:calc(var( --spacing-base )*2)}.style-module_p-3__cre8w{padding:calc(var( --spacing-base )*3)}.style-module_px-3__WSJPU{padding-left:calc(var( --spacing-base )*3);padding-right:calc(var( --spacing-base )*3)}.style-module_py-3__UM-VV{padding-bottom:calc(var( --spacing-base )*3)}.style-module_pt-3__1RVKP,.style-module_py-3__UM-VV{padding-top:calc(var( --spacing-base )*3)}.style-module_pr-3__luBW8{padding-right:calc(var( --spacing-base )*3)}.style-module_pb-3__uvSvA{padding-bottom:calc(var( --spacing-base )*3)}.style-module_pl-3__d42JN{padding-left:calc(var( --spacing-base )*3)}.style-module_p-4__KTDcd{padding:calc(var( --spacing-base )*4)}.style-module_px-4__9c7R-{padding-left:calc(var( --spacing-base )*4);padding-right:calc(var( --spacing-base )*4)}.style-module_py-4__pbZr-{padding-bottom:calc(var( --spacing-base )*4)}.style-module_pt-4__b0f1N,.style-module_py-4__pbZr-{padding-top:calc(var( --spacing-base )*4)}.style-module_pr-4__G-3Se{padding-right:calc(var( --spacing-base )*4)}.style-module_pb-4__7LnzY{padding-bottom:calc(var( --spacing-base )*4)}.style-module_pl-4__x2xmM{padding-left:calc(var( --spacing-base )*4)}.style-module_p-5__KJndw{padding:calc(var( --spacing-base )*5)}.style-module_px-5__4ZmcI{padding-left:calc(var( --spacing-base )*5);padding-right:calc(var( --spacing-base )*5)}.style-module_py-5__44c5m{padding-bottom:calc(var( --spacing-base )*5)}.style-module_pt-5__jH61v,.style-module_py-5__44c5m{padding-top:calc(var( --spacing-base )*5)}.style-module_pr-5__uYue9{padding-right:calc(var( --spacing-base )*5)}.style-module_pb-5__VyPwm{padding-bottom:calc(var( --spacing-base )*5)}.style-module_pl-5__-7QwG{padding-left:calc(var( --spacing-base )*5)}.style-module_p-6__Rklbn{padding:calc(var( --spacing-base )*6)}.style-module_px-6__ndixN{padding-left:calc(var( --spacing-base )*6);padding-right:calc(var( --spacing-base )*6)}.style-module_py-6__gKcyB{padding-bottom:calc(var( --spacing-base )*6)}.style-module_pt-6__crzwb,.style-module_py-6__gKcyB{padding-top:calc(var( --spacing-base )*6)}.style-module_pr-6__blwZZ{padding-right:calc(var( --spacing-base )*6)}.style-module_pb-6__q6Pch{padding-bottom:calc(var( --spacing-base )*6)}.style-module_pl-6__mbz87{padding-left:calc(var( --spacing-base )*6)}.style-module_p-7__n5M2X{padding:calc(var( --spacing-base )*7)}.style-module_px-7__SVLNi{padding-left:calc(var( --spacing-base )*7);padding-right:calc(var( --spacing-base )*7)}.style-module_py-7__ieHG-{padding-bottom:calc(var( --spacing-base )*7)}.style-module_pt-7__-St7I,.style-module_py-7__ieHG-{padding-top:calc(var( --spacing-base )*7)}.style-module_pr-7__Pn42n{padding-right:calc(var( --spacing-base )*7)}.style-module_pb-7__Ao0G4{padding-bottom:calc(var( --spacing-base )*7)}.style-module_pl-7__PX3LH{padding-left:calc(var( --spacing-base )*7)}.style-module_p-8__0tnzb{padding:calc(var( --spacing-base )*8)}.style-module_px-8__B2wuB{padding-left:calc(var( --spacing-base )*8);padding-right:calc(var( --spacing-base )*8)}.style-module_py-8__XxBBJ{padding-bottom:calc(var( --spacing-base )*8)}.style-module_pt-8__HsDAh,.style-module_py-8__XxBBJ{padding-top:calc(var( --spacing-base )*8)}.style-module_pr-8__DsIhB{padding-right:calc(var( --spacing-base )*8)}.style-module_pb-8__w5brd{padding-bottom:calc(var( --spacing-base )*8)}.style-module_pl-8__1sQf7{padding-left:calc(var( --spacing-base )*8)}.style-module_button__nOA01{--wp-admin-theme-color:var(--jp-black);--wp-admin-theme-color-darker-10:var(--jp-black-80);--wp-admin-theme-color-darker-20:var(--jp-black-80);--wp-admin-border-width-focus:1.5px;border-radius:var(--jp-border-radius);font-weight:600;justify-content:center}.style-module_button__nOA01.style-module_normal__9YxyG{font-size:var(--font-body);height:auto;line-height:24px;padding:var(--spacing-base) calc(var(--spacing-base)*3)}.style-module_button__nOA01.style-module_normal__9YxyG.style-module_icon__o--e-{padding:var(--spacing-base) calc(var(--spacing-base)*2)}.style-module_button__nOA01.style-module_small__oVaX2{font-size:var(--font-body-extra-small);height:auto;line-height:20px;padding:calc(var(--spacing-base)/2) var(--spacing-base)}.style-module_button__nOA01.style-module_small__oVaX2.style-module_icon__o--e->svg:first-child{margin-right:calc(var(--spacing-base)/2)}.style-module_button__nOA01.style-module_small__oVaX2>.components-spinner{height:20px}.style-module_button__nOA01.style-module_regular__9WhCI{font-weight:400}.style-module_button__nOA01.is-primary:disabled,.style-module_button__nOA01.is-secondary:disabled{background:var(--jp-gray);color:var(--jp-gray-20)}.style-module_button__nOA01.is-secondary:active:not(:disabled),.style-module_button__nOA01.is-secondary:hover:not(:disabled){background:var(--jp-gray-0)}.style-module_button__nOA01.is-link.style-module_normal__9YxyG,.style-module_button__nOA01.is-link.style-module_small__oVaX2{padding:0}.style-module_button__nOA01.is-link:hover:not(:disabled){text-decoration-thickness:3px}.style-module_button__nOA01.is-link:focus:not(:disabled){text-decoration-line:none}.style-module_button__nOA01.is-destructive.is-primary{box-shadow:none}.style-module_button__nOA01.is-destructive.is-primary:not(:disabled){background:var(--jp-red-50);box-shadow:inset 0 0 0 1px var(--jp-red-50);color:var(--jp-white)}.style-module_button__nOA01.is-destructive.is-primary:hover:not(:disabled){background:var(--jp-red-60);box-shadow:inset 0 0 0 1px var(--jp-red-60)}.style-module_button__nOA01.is-destructive.is-primary:focus:not(:disabled){background:var(--jp-red-70);box-shadow:inset 0 0 0 1px var(--jp-white),0 0 0 var(--wp-admin-border-width-focus) var(--jp-red-70);color:var(--jp-white)}.style-module_button__nOA01.is-destructive.is-primary:active:not(:disabled){background:var(--jp-red-50)}.style-module_button__nOA01.is-destructive.is-secondary{box-shadow:none}.style-module_button__nOA01.is-destructive.is-secondary:not(:disabled){background:var(--jp-white);box-shadow:inset 0 0 0 1px var(--jp-red-50);color:var(--jp-red-50)}.style-module_button__nOA01.is-destructive.is-secondary:hover:not(:disabled){background:var(--jp-red-0);box-shadow:inset 0 0 0 1px var(--jp-red-60);color:var(--jp-red-60)}.style-module_button__nOA01.is-destructive.is-secondary:focus:not(:disabled){box-shadow:inset 0 0 0 1px var(--jp-white),0 0 0 var(--wp-admin-border-width-focus) var(--jp-red-70);color:var(--jp-red-70)}.style-module_button__nOA01.is-destructive.is-secondary:active:not(:disabled){background:var(--jp-gray-0)}.style-module_button__nOA01.is-destructive.is-link:not(:disabled){color:var(--jp-red-50)}.style-module_button__nOA01.is-destructive.is-link:hover:not(:disabled){box-shadow:none;color:var(--jp-red-60)}.style-module_button__nOA01.is-destructive.is-link:focus:not(:disabled){box-shadow:inset 0 0 0 1px var(--jp-white),0 0 0 var(--wp-admin-border-width-focus) var(--jp-red-70);color:var(--jp-red-70)}.style-module_button__nOA01.style-module_loading__NSb5j{position:relative}.style-module_button__nOA01.style-module_loading__NSb5j.has-icon{justify-content:center}.style-module_button__nOA01.style-module_loading__NSb5j>:not(.components-spinner){visibility:hidden}.style-module_button__nOA01.style-module_loading__NSb5j>.components-spinner{margin:0;position:absolute}.style-module_external-icon__9iRaF{margin-left:calc(var(--spacing-base)/2)}.style-module_container__jrXbh{align-items:flex-end;display:flex;flex-wrap:wrap}.style-module_price__qrEDy{display:inline-flex;position:relative}.style-module_price__qrEDy:first-child{margin-right:calc(var(--spacing-base)*2)}.style-module_price__qrEDy.style-module_is-not-off-price__DHfVe{color:var(--jp-gray-20)}.style-module_price__qrEDy.style-module_is-not-off-price__DHfVe:after{background:var(--jp-red);border-radius:var(--jp-border-radius);content:" ";display:block;height:3px;margin-top:-2px;pointer-events:none;position:absolute;top:50%;width:100%}.style-module_leyend__nd1Kx{color:var(--jp-gray-40);margin-bottom:calc(var(--spacing-base)*3)}.style-module_container__r6EPo{align-items:center;display:flex;font-size:var(--font-body);line-height:calc(var(--spacing-base)*3);margin:calc(var(--spacing-base)*2) 0;min-height:calc(var(--spacing-base)*3)}.style-module_container__r6EPo .style-module_icon__86sF4{margin-right:calc(var(--spacing-base)/2)}.style-module_is-error__J-40d{color:var(--jp-red)}.style-module_is-error__J-40d .style-module_icon__86sF4{fill:var(--jp-red)}.style-module_is-warning__fS7xv{color:var(--jp-yellow-40)}.style-module_is-warning__fS7xv .style-module_icon__86sF4{fill:var(--jp-yellow-40)}.style-module_is-info__grZ59{color:var(--jp-blue-40)}.style-module_is-info__grZ59 .style-module_icon__86sF4{fill:var(--jp-blue-40)}.style-module_is-success__gdVkO{color:var(--jp-green)}.style-module_is-success__gdVkO .style-module_icon__86sF4{fill:var(--jp-green)}.style-module_wrapper__5xtqD{padding:calc(var(--spacing-base)*8);position:relative}.style-module_is-card__IolKQ{background-color:var(--jp-white);border:1px solid var(--jp-gray);border-radius:var(--jp-border-radius);box-shadow:0 2px 6px var(--product-card-shadow),0 1px 2px var(--product-card-shadow)}.style-module_is-card__IolKQ .style-module_card-header__r-xAq{border-radius:var(--jp-border-radius) var(--jp-border-radius) 0 0}.style-module_card-header__r-xAq{align-items:center;background:var(--jp-black);box-sizing:border-box;color:var(--jp-white);display:flex;left:0;line-height:calc(var(--spacing-base)*3);padding:calc(var(--spacing-base)/2) var(--spacing-base);position:absolute;top:0;width:100%}.style-module_card-container__ouKCT{display:flex;flex-direction:column;height:100%}.style-module_product-bundle-icon__e5LUr{fill:var(--jp-white);margin-right:var(--spacing-base)}.style-module_product-bundle-icons__ilhI6,.style-module_product-icon__RhjPd{align-items:center;display:flex;margin-bottom:calc(var(--spacing-base)*4)}.style-module_plus-icon__dUieo{fill:#8c8f94;height:24px;line-height:24px}.style-module_features__MQIIQ{flex-grow:1;margin:0;margin-bottom:calc(var(--spacing-base)*2);padding:0}.style-module_features__MQIIQ li{align-items:start;display:flex;list-style:none;margin-bottom:var(--spacing-base)}.style-module_features__MQIIQ .style-module_check__PbN-Z{fill:var(--jp-green-primary);flex-shrink:0;margin-right:var(--spacing-base)}.style-module_product-has-required-plan__CLOhW{align-items:center;display:flex;justify-content:center}.style-module_product-has-required-plan__CLOhW svg{margin-right:var(--spacing-base)}.style-module_add-button__ZunJC{justify-content:center;width:100%}.style-module_add-button__ZunJC.is-primary:disabled{background-color:var(--jp-black);opacity:1}.style-module_one-section-style__qcuUh{--product-card-shadow:rgb(0 0 0/3%);background-color:var(--jp-white);border:1px solid var(--jp-gray);border-radius:var(--jp-border-radius);box-shadow:0 2px 6px var(--product-card-shadow),0 1px 2px var(--product-card-shadow)}.style-module_primary__enOM0,.style-module_secondary__qCDtu{display:flex}.style-module_secondary__qCDtu{align-items:center}.style-module_secondary__qCDtu img{object-fit:cover;width:100%}.style-module_is-viewport-small__4hIY1 .style-module_primary__enOM0{margin-bottom:calc(var(--spacing-base)*3)}.record-meter-bar{padding-block:1em}.record-meter-bar__items{background-color:var(--jp-gray-off);border-radius:1rem;display:flex;height:2rem;margin-bottom:2em;overflow:hidden}.record-meter-bar__legend--items{display:flex;margin:0}.record-meter-bar__legend--item{align-items:center;display:flex;margin:0;margin-inline-end:1em}.record-meter-bar__legend--item-circle{border-radius:100%;display:inline-block;height:1rem;margin-inline-end:.4em;width:1rem}.record-meter-bar__legend--item-count,.record-meter-bar__legend--item-label-first{margin-inline-end:.4em}#jb-settings *{box-sizing:border-box}.jb-settings{--wp-admin-theme-color:#008710;--wp-admin-theme-link-color:#1d2327;--wp-admin-theme-color-darker-10:#007117;--wp-admin-theme-color-darker-20:#005b18}.jb-settings a{color:var(--wp-admin-theme-link-color)}.jb-settings .components-button.is-primary{background-color:#008710;border-radius:4px;font-weight:600;margin-bottom:1.5rem}.jb-settings .components-button.is-link{color:var(--wp-admin-theme-link-color)}.jb-settings h1,.jb-settings h2,.jb-settings h3,.jb-settings h4,.jb-settings h5,.jb-settings h6{color:#23282d;font-weight:500;line-height:1.3;margin:0}.jb-settings h2{font-size:36px;line-height:1.1}.jb-settings h3{font-size:24px}.jb-settings p{color:#2c3338}.jb-settings a.button-secondary,.jb-settings button.secondary{background:none;border:1px solid #23282d;border-radius:3px;color:#23282d;cursor:pointer;font-size:16px;font-weight:600;line-height:24px;padding:8px 24px}.jb-settings a.button-secondary:hover,.jb-settings button.secondary:hover{background:#f6f7f7;border-color:#23282d;color:#23282d}.jetpack_page_jetpack-boost #wpcontent{min-height:100vh;padding-left:0}.jb-settings{display:flex;flex-direction:column;min-height:calc(100vh - 60px);overflow-x:hidden;position:relative}.jb-settings,.jb-settings p{font-size:16px}.jb-settings p{margin:1em 0}.jb-settings--main{background-color:#fff}.jb-connection__title:focus-visible,.jb-feature-toggle__content .title:focus-visible{outline:none}.jb-section{padding-bottom:48px;padding-top:48px}.jb-section--alt{background-color:#f9f9f6}.jb-section--scores{position:relative}.jb-container,.jb-container--narrow,.jb-settings-footer{margin-left:auto;margin-right:auto;width:80%}.jb-container--narrow{max-width:744px}.jb-container--fixed{max-width:1080px;padding-left:16px;padding-right:16px;width:auto}.jb-settings-header{align-items:center;display:flex;height:120px;justify-content:space-between;position:relative}.jb-settings-header__logo{display:flex;height:27px}.jb-settings-header__logo svg{height:auto;width:100%}@media (min-width:992px){.jb-settings-header__logo{height:32px}}.jb-settings-footer{align-items:center;display:flex;justify-content:space-between;margin-bottom:48px;margin-top:48px}@media (max-width:767px){.jb-settings-footer{flex-direction:column;justify-content:flex-start}}.jb-footer-note{color:#3c434a;margin-top:24px;text-align:center}.jb-signature--jetpack{align-items:center;color:#23282d;display:flex;font-size:12px;font-weight:600;margin-left:7px}.jb-signature--jetpack svg{margin-right:.5em}.jb-signature--automattic{transform:translateY(-2px)}.jb-warning-modal__actions{display:flex;justify-content:flex-end}.jb-warning-modal__actions>div{display:flex;flex-direction:column}.jb-warning-modal__actions>div>div{display:flex}.jb-warning-modal__actions button{margin-left:auto}.jb-warning-modal__actions button.confirm{margin-left:10px}.jb-warning-modal__actions .checkbox{font-size:12px;margin-top:10px}.m-1{margin:8px!important}.m-2{margin:16px!important}.m-3{margin:32px!important}.m-4{margin:64px!important}.mx-1{margin-left:8px!important;margin-right:8px!important}.mx-2{margin-left:16px!important;margin-right:16px!important}.mx-3{margin-left:32px!important;margin-right:32px!important}.mx-4{margin-left:64px!important;margin-right:64px!important}.my-1{margin-bottom:8px!important;margin-top:8px!important}.jb-card .jp-components__pricing-card .jp-components__pricing-card__title,.my-2{margin-bottom:16px!important;margin-top:16px!important}.my-3{margin-bottom:32px!important;margin-top:32px!important}.my-4{margin-bottom:64px!important;margin-top:64px!important}.mt-1{margin-top:8px!important}.mt-2{margin-top:16px!important}.jb-card .jp-components__pricing-card .jp-components__pricing-card__pricing,.mt-3{margin-top:32px!important}.mt-4{margin-top:64px!important}.mr-1{margin-right:8px!important}.mr-2{margin-right:16px!important}.mr-3{margin-right:32px!important}.mr-4{margin-right:64px!important}.mb-1{margin-bottom:8px!important}.mb-2{margin-bottom:16px!important}.mb-3{margin-bottom:32px!important}.mb-4{margin-bottom:64px!important}.ml-1{margin-left:8px!important}.ml-2{margin-left:16px!important}.ml-3{margin-left:32px!important}.ml-4{margin-left:64px!important}.p-1{padding:8px!important}.p-2{padding:16px!important}.p-3{padding:32px!important}.jb-card .jb-card__content,.p-4{padding:64px!important}.px-1{padding-left:8px!important;padding-right:8px!important}.px-2{padding-left:16px!important;padding-right:16px!important}.px-3{padding-left:32px!important;padding-right:32px!important}.px-4{padding-left:64px!important;padding-right:64px!important}.py-1{padding-bottom:8px!important;padding-top:8px!important}.py-2{padding-bottom:16px!important;padding-top:16px!important}.py-3{padding-bottom:32px!important;padding-top:32px!important}.py-4{padding-bottom:64px!important;padding-top:64px!important}.pt-1{padding-top:8px!important}.pt-2{padding-top:16px!important}.pt-3{padding-top:32px!important}.pt-4{padding-top:64px!important}.pr-1{padding-right:8px!important}.pr-2{padding-right:16px!important}.pr-3{padding-right:32px!important}.pr-4{padding-right:64px!important}.pb-1{padding-bottom:8px!important}.pb-2{padding-bottom:16px!important}.pb-3{padding-bottom:32px!important}.pb-4{padding-bottom:64px!important}.pl-1{padding-left:8px!important}.pl-2{padding-left:16px!important}.pl-3{padding-left:32px!important}.pl-4{padding-left:64px!important}.jb-connection{align-items:flex-start;display:flex;flex-direction:column;justify-content:flex-start;padding:0 20px}@media (min-width:992px){.jb-connection{align-items:center;justify-content:center;margin-top:50px;padding:0;text-align:center}.jb-connection__header{width:552px}}.jb-connection__active{display:flex;flex-direction:column;margin-bottom:35px}@media (min-width:992px){.jb-connection__active{flex-direction:row}}.jb-connection__active__left-side{flex-basis:100%}@media (min-width:992px){.jb-connection__active__left-side{flex-basis:66%;padding-right:30px}}.jb-connection__active__right-side{flex-basis:100%;margin-top:35px}@media (min-width:992px){.jb-connection__active__right-side{flex-basis:34%;margin-top:0;padding-top:12px}}.jb-connection .checklist{grid-gap:24px;border:1px solid #dcdcde;border-radius:4px;display:grid;grid-template-columns:1fr 1fr;margin-bottom:2rem;padding:40px}.jb-connection .checklist__item{display:flex;justify-content:flex-start}.jb-connection .checklist svg{fill:#008710}.jb-connection .checklist span{color:#444;line-height:24px;margin-left:12px}.jb-connection__iframe{border-radius:4px;box-sizing:border-box;height:342px;padding-top:0;width:100%}.jb-connection__iframe__spinner{align-items:center;display:flex;justify-content:center;padding:0}.jb-connection__iframe__spinner span{align-items:center;display:flex;flex-direction:column;justify-content:center;min-width:300px}.jb-connection__description{color:#444;font-weight:400;line-height:24px;margin-bottom:36px}.jb-connection__title{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica,Arial,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol;font-style:normal;font-weight:700;margin:0 0 24px}@media (min-width:992px){.jb-connection__title{padding:0 70px}}.jb-connection-overlay{line-height:20px;margin-left:auto;margin-right:auto;text-align:center}@media (min-width:992px){.jb-connection-overlay{width:445px}}.jb-feature-toggle{display:flex;margin-bottom:2em;margin-left:auto;margin-right:auto}.jb-feature-toggle a{text-decoration:underline}.jb-feature-toggle h2{font-size:22px;margin-top:0}.jb-feature-toggle__toggle{margin-right:2em;transform:translateY(8px)}.jb-settings .jb-tips{margin:0 auto}.jb-settings .jb-tips__title{margin-bottom:48px}@media (min-width:992px){.jb-settings .jb-tips__items{grid-gap:2em;display:grid;grid-template-columns:1fr 1fr}}.jb-settings .jb-tips .item{margin-bottom:2em}@media (min-width:768px){.jb-settings .jb-tips .item{grid-gap:1em;display:grid;grid-template-columns:80px 1fr}}.jb-settings .jb-tips .item__rate{color:#23282d;font-size:24px;font-weight:400;line-height:30px}@media (min-width:992px){.jb-settings .jb-tips .item__rate{flex-basis:20%;font-size:36px;line-height:43px}}.jb-settings .jb-tips .item__description{color:#444;flex-basis:70%;font-weight:400;line-height:24px}@media (min-width:992px){.jb-settings .jb-tips .item__description{flex-basis:80%}}.jb-settings .jb-tips .item__description a{color:#1d2327;text-decoration:underline}.jb-site-score h2{font-weight:700}@media (max-width:767px){.jb-site-score h2{font-size:27px}}.jb-site-score__offline,.jb-site-score__top{margin-bottom:2rem}.jb-site-score__offline p{color:#3c434a;font-weight:400;line-height:1.5;max-width:560px}.jb-site-score__top{align-items:center;color:#000;display:flex}.jb-site-score__top button{margin-left:auto}.jb-site-score button{color:#1d2327}.jb-site-score button.components-button.is-link{margin-left:auto}.jb-site-score button.components-button.is-link:hover{color:#1d2327}.jb-site-score button svg{fill:#008710;margin:4px 4px 2px 0}.jb-site-score--error{margin-top:1em}@media (max-width:767px){.jb-site-score--error .jb-site-score{display:none}}.jb-site-score--error .jb-score-bar__filler,.jb-site-score--error .jb-score-bar__loading{display:none}.jb-site-score--error .jb-score-bar__label{color:#646970;opacity:.8}.jb-site-score--error svg{fill:#646970}.jb-score-bar__label,.jb-score-bar__loading,.jb-score-bar__score{align-items:center;background-color:#fff;border:2px solid transparent;border-radius:42px;display:flex;height:42px}.jb-score-bar{display:flex;width:100%}.jb-score-bar--mobile{margin-bottom:24px}@media (max-width:767px){.jb-score-bar{flex-direction:column}.jb-score-bar__label{background-color:transparent}}.jb-score-bar__loading{align-items:center;display:flex;justify-content:center;width:42px}.jb-score-bar__label{grid-column-gap:10px;display:grid;font-size:14px;grid-template-columns:24px 1fr;justify-content:center;position:relative}@media (min-width:768px){.jb-score-bar__label{padding-left:15px;padding-right:15px;width:200px;z-index:50}}.jb-score-bar__score{border-radius:100%;font-weight:700;height:42px;justify-content:center;position:absolute;right:-1px;width:42px}.jb-score-bar__bounds{background-color:#f1f1f1;border-radius:21px;display:flex;height:42px;max-width:100%;position:relative;width:100%;z-index:40}@media (min-width:768px){.jb-score-bar__bounds{margin-left:-21px;width:calc(100% + 21px)}}.jb-score-bar__filler{border-radius:0 42px 42px 0;display:flex;justify-content:flex-end;min-width:85px;position:relative;transition:width .3s ease-in-out;width:0;will-change:width}@media (max-width:767px){.jb-score-bar__filler{border-radius:inherit;min-width:43px}}.jb-score-bar__no_boost_score{--clearance-space:74px;background:#fff;background-clip:padding-box;border:2px solid transparent;border-radius:50%;cursor:pointer;font-size:.7em;height:28px;padding:3px;position:absolute;text-align:center;top:6px;width:28px;z-index:2}.jb-score-bar__no_boost_score:hover{border:2px solid hsla(0,0%,100%,.5)}.jb-score-bar__no_boost_score:after{border-bottom:6px solid #fff;border-left:6px solid transparent;border-right:6px solid transparent;content:" ";height:0;left:6px;position:absolute;top:28px;width:0}.jb-score-bar__no_boost_score_tooltip{background:#fff;border-radius:4px;box-shadow:0 0 20px 0 hsla(0,0%,67%,.28);display:none;left:-10em;margin:0 16px;padding:16px;position:absolute;top:-62px;width:20em}.jb-score-bar__no_boost_score_tooltip:after{border-left:6px solid transparent;border-right:6px solid transparent;border-top:6px solid #fff;bottom:-6px;content:" ";height:0;left:10em;margin:0 -10px;position:absolute;width:0}.jb-score-bar__no_boost_score:hover .jb-score-bar__no_boost_score_tooltip{display:block}.jb-score-bar .fill-loading{background-color:#fff}.jb-score-bar .fill-good{background-color:#069e08}.jb-score-bar .fill-mediocre{background-color:#faa754}.jb-score-bar .fill-bad{background-color:#d63638}.jb-score-context{color:#444;display:inline-block;font-size:16px;line-height:24px;position:relative}.jb-score-context__info-icon{border:2px solid #8c8f94;border-radius:50%;color:#8c8f94;cursor:pointer;display:block;font-size:13px;font-weight:700;height:18px;line-height:1.1em;margin-left:8px;text-align:center;vertical-align:middle;width:18px}.jb-score-context__info-container{background-color:#fff;border-radius:4px;box-shadow:0 0 20px 0 hsla(0,0%,67%,.28);display:none;font-weight:400;left:-47px;min-width:300px;padding:16px;position:absolute;text-align:left;top:30px;transform:translate(-50%);z-index:1000}@media (min-width:768px){.jb-score-context__info-container{left:-110px}}.jb-score-context__info-container p{margin:0 0 20px}.jb-score-context__info-container i{bottom:100%;height:12px;left:202px;overflow:hidden;position:absolute;text-align:center;width:24px}@media (min-width:768px){.jb-score-context__info-container i{left:265px}}.jb-score-context__info-container i:after{background-color:#fff;box-shadow:0 0 20px 0 hsla(0,0%,67%,.28);content:"";height:12px;position:absolute;transform:translate(-50%,50%) rotate(45deg);width:12px}.jb-score-context:hover .jb-score-context__info-container{display:block}.jb-score-context table{display:inline-block;margin:0;width:49%}.jb-score-context table td{padding-left:10px}.jb-critical-css-progress__label{color:#787c82;display:block;font-size:14px;line-height:20px;margin-bottom:1em}.jb-progress-bar{background-color:#f1f1f1;border-radius:50px;height:20px}.jb-progress-bar__filler{background-color:#069e08;border-radius:50px;height:100%;transition:width .7s ease-in-out;width:0;will-change:width}.jb-error{color:#d63638;display:block;margin:0;padding:0;position:relative}@media (min-width:768px){.jb-error{align-items:flex-start;display:flex;justify-content:left}}.jb-error p{color:#d63638;margin:.25em 0}.jb-error .jb-error__main-action:not(:empty){margin-left:auto}.jb-error .jb-error__main-action:not(:empty) button{margin-left:0}@media (min-width:768px){.jb-error .jb-error__main-action:not(:empty) button{margin-left:20px}}.jb-error svg.icon{color:inherit;height:20px;left:-65px;line-height:0;position:absolute;top:0;width:20px}.jb-error .jb-error__description{color:#d63638;font-weight:700;margin-bottom:.5em}.jb-error .jb-error__message{color:#d63638;list-style-type:disc}.jb-error .jb-error__message .status-error{color:#23282d}.jb-error .jb-error__message button{color:#23282d;font-size:16px;margin:16px auto}.jb-error .jb-error__message li{word-wrap:break-word;overflow-wrap:break-word;-ms-word-break:break-all;word-break:break-all;word-break:break-word}.jb-error .raw-error{color:#23282d}.jb-error .action{color:#1d2327;font-weight:700}.jb-error pre{background-color:#f1f1f1;border-radius:6px;color:#0f0f0f;margin:20px 0;padding:25px;text-align:left;white-space:pre-wrap}.jb-error--offset{padding-left:2em}.jb-error--offset:before{left:0}.jb-critical-css__error-description{color:#23282d;line-height:1.5rem}.jb-critical-css__error-description a,.jb-critical-css__error-description a.action,.jb-critical-css__error-description h5{color:inherit}.jb-critical-css__error-description button.foldable-element-control{color:#23282d;font-size:16px;margin-bottom:24px}.jb-critical-css__error-description button.foldable-element-control.visible{margin-bottom:0}.jb-critical-css__error-description ul{margin-top:4px}.jb-critical-css__error-description h5{font-size:16px;font-weight:700;margin-bottom:8px;margin-top:24px}.jb-critical-css__error-description .problem img{display:block;margin-top:20px}.jb-critical-css__error-description p.raw-error,.jb-critical-css__error-description p.suggestion,.jb-critical-css__error-description p.suggestion-closing{color:#23282d;margin-bottom:24px;margin-top:8px}.jb-critical-css__error-description pre{background-color:#f1f1f1;border-radius:6px;color:#0f0f0f;margin:20px 0;padding:25px;text-align:left;white-space:pre-wrap}.jb-critical-css__advanced .panel{border:1px solid #dcdcde;border-radius:4px;margin-top:24px;padding:24px 69px 0 27px;position:relative}.jb-critical-css__advanced .panel li{word-wrap:break-word;overflow-wrap:break-word;-ms-word-break:break-all;word-break:break-all;word-break:break-word}.jb-critical-css__advanced .panel h4{font-size:20px;font-weight:700;margin-bottom:1rem}.jb-critical-css__advanced .panel h4 svg{fill:#cc1818;height:20px;margin:4px 4px 2px 0;vertical-align:sub}.jb-critical-css__meta{align-items:flex-start;display:flex;flex-direction:row;font-size:14px;line-height:22px}@media (max-width:767px){.jb-critical-css__meta{display:block}}.jb-critical-css__meta .summary{flex-grow:1;margin-right:5px;position:relative}.jb-critical-css__meta .summary .generating,.jb-critical-css__meta .summary .successes{color:#787c82}.jb-critical-css__meta .summary .failures{color:#101517;max-width:25em}.jb-critical-css__meta .summary .failures svg{height:1.4rem;left:-60px;position:absolute;width:1.4rem}.jb-critical-css__meta button{color:#1d2327;font-size:14px}.jb-critical-css__meta button.components-button.is-link{margin-left:8px}.jb-critical-css__meta button.components-button.is-link:hover{color:#1d2327}@media (max-width:767px){.jb-critical-css__meta button.components-button.is-link{margin-left:0}}.jb-critical-css__meta button svg{fill:#008710;margin:4px 4px 2px 0}.url-container{display:flex;margin-bottom:24px;margin-top:20px}.url-container .segment{align-self:flex-end;font-size:24px;font-weight:700;line-height:28px}.url-container .label{color:gray;font-size:10px;font-weight:400;left:8px;line-height:12px;margin-bottom:4px;position:relative}.url-container .arrows{border-bottom:16px solid transparent;border-image:url(../static/images/arrows.png);border-image-slice:22;border-left:16px solid transparent;border-right:16px solid transparent;margin-bottom:2px;min-width:48px}.jb-premium-cta{align-items:center;border:2px solid #008710;border-radius:4px;cursor:pointer;display:flex;justify-content:space-between;margin:32px 0;padding:16px 24px}.jb-premium-cta p{margin:0}.jb-premium-cta__action-line{font-weight:700}.jb-premium-cta__icon svg{fill:#008710}.cross-close{height:20px;opacity:.7;position:absolute;right:21px;top:21px;width:20px}.cross-close:hover{opacity:1}.cross-close:after,.cross-close:before{background-color:#333;content:" ";height:19px;left:9px;position:absolute;width:2px}.cross-close:before{transform:rotate(45deg)}.cross-close:after{transform:rotate(-45deg)}.cross-close span{clip:rect(1px,1px,1px,1px);word-wrap:normal!important;border:0;clip-path:inset(50%);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px}.numbered-list{list-style-type:none;margin-left:0}.numbered-list li{display:flex;margin-bottom:.5em}.numbered-list .text{flex:1}.numbered-list .index{border:1px solid #ccc;border-radius:50%;display:block;height:1.5em;line-height:1.4em;margin-right:5px;text-align:center;width:1.5em}.jb-rating-card{background-color:#fff;box-shadow:0 0 20px 0 hsla(0,0%,67%,.28);padding:24px;position:absolute;right:0;top:40px;width:300px;z-index:60}.jb-rating-card .jb-rating-card__headline{margin-right:21px}.jb-settings .jb-button--primary{background-color:#000;border:none;border-radius:4px;color:#fff;display:inline-block;padding:10px 24px;text-decoration:none}.components-button.components-button--back{color:#1d2327;font-size:14pt;margin-bottom:20px;text-decoration:none}.components-button.components-button--back.is-link{margin-left:auto}.components-button.components-button--back.is-link:hover{color:#1d2327}.components-button.components-button--back svg{height:1.5rem;margin:4px 20px 2px 0}.jb-button{border-radius:4px;display:inline-block;font-weight:500;min-width:135px!important;padding:10px 24px;text-align:center}.jb-button--primary{color:var(--jp-white)!important}.jb-button--outline{border:1px solid!important;color:var(--jp-black)!important}.jb-card{background:#fff url(../static/images/color-shift.svg) no-repeat 100% 0;border:1px solid #dcdcde;border-radius:4px}.jb-card .jb-card__content{color:#23282d}.jb-card .jb-card__summary{font-size:1.2rem;font-weight:500}.jb-card .jb-card__cta img,.jb-card .jb-card__cta svg{max-width:100%}.jb-card .jp-components__pricing-card .jp-components__pricing-card__icon img{height:16px;width:16px}.jb-card .jp-components__pricing-card .jp-components__pricing-card__title{font-weight:600}@media (max-width:767px){.jb-card .jb-card__content{padding:24px}}@media (min-width:1200px){.jb-card{display:grid;grid-template-columns:auto 400px}}.jb-checklist li{background:url(../static/images/check.svg) no-repeat;background-position:0 8px;background-size:1.5em;line-height:1.5em;list-style-type:none;padding-bottom:8px;padding-left:2em;padding-top:8px;vertical-align:middle}.jb-badge{border:1px solid;border-radius:.4em;color:#787c82;font-size:.5em;margin-left:1em;padding:.2em;text-transform:uppercase;vertical-align:middle}.jb-support{align-items:center;display:grid;grid-template-columns:auto auto}.jb-support .jb-support__title{margin-bottom:24px}.jb-support__cta{text-align:right}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
app/assets/dist/jetpack-boost.js
CHANGED
@@ -1 +1,9 @@
|
|
1 |
-
var app=function(t){"use strict";function e(){}const n=t=>t;function o(t,e){for(const n in e)t[n]=e[n];return t}function r(t){return t()}function s(){return Object.create(null)}function i(t){t.forEach(r)}function a(t){return"function"==typeof t}function c(t,e){return t!=t?e==e:t!==e||t&&"object"==typeof t||"function"==typeof t}function l(t,...n){if(null==t)return e;const o=t.subscribe(...n);return o.unsubscribe?()=>o.unsubscribe():o}function u(t,e,n){t.$$.on_destroy.push(l(e,n))}function d(t,e,n,o){if(t){const r=p(t,e,n,o);return t[0](r)}}function p(t,e,n,r){return t[1]&&r?o(n.ctx.slice(),t[1](r(e))):n.ctx}function h(t,e,n,o){if(t[2]&&o){const r=t[2](o(n));if(void 0===e.dirty)return r;if("object"==typeof r){const t=[],n=Math.max(e.dirty.length,r.length);for(let o=0;o<n;o+=1)t[o]=e.dirty[o]|r[o];return t}return e.dirty|r}return e.dirty}function f(t,e,n,o,r,s){if(r){const i=p(e,n,o,s);t.p(i,r)}}function g(t){if(t.ctx.length>32){const e=[],n=t.ctx.length/32;for(let t=0;t<n;t++)e[t]=-1;return e}return-1}function m(t){const e={};for(const n in t)"$"!==n[0]&&(e[n]=t[n]);return e}const $="undefined"!=typeof window;let b=$?()=>window.performance.now():()=>Date.now(),_=$?t=>requestAnimationFrame(t):e;const w=new Set;function v(t){w.forEach((e=>{e.c(t)||(w.delete(e),e.f())})),0!==w.size&&_(v)}let y=!1;function k(t,e,n,o){for(;t<e;){const r=t+(e-t>>1);n(r)<=o?t=r+1:e=r}return t}function j(t,e){t.appendChild(e)}function x(t){if(!t)return document;const e=t.getRootNode?t.getRootNode():t.ownerDocument;return e&&e.host?e:t.ownerDocument}function S(t){const e=L("style");return function(t,e){j(t.head||t,e)}(x(t),e),e}function E(t,e){if(y){for(!function(t){if(t.hydrate_init)return;t.hydrate_init=!0;let e=t.childNodes;if("HEAD"===t.nodeName){const t=[];for(let n=0;n<e.length;n++){const o=e[n];void 0!==o.claim_order&&t.push(o)}e=t}const n=new Int32Array(e.length+1),o=new Int32Array(e.length);n[0]=-1;let r=0;for(let t=0;t<e.length;t++){const s=e[t].claim_order,i=(r>0&&e[n[r]].claim_order<=s?r+1:k(1,r,(t=>e[n[t]].claim_order),s))-1;o[t]=n[i]+1;const a=i+1;n[a]=t,r=Math.max(a,r)}const s=[],i=[];let a=e.length-1;for(let t=n[r]+1;0!=t;t=o[t-1]){for(s.push(e[t-1]);a>=t;a--)i.push(e[a]);a--}for(;a>=0;a--)i.push(e[a]);s.reverse(),i.sort(((t,e)=>t.claim_order-e.claim_order));for(let e=0,n=0;e<i.length;e++){for(;n<s.length&&i[e].claim_order>=s[n].claim_order;)n++;const o=n<s.length?s[n]:null;t.insertBefore(i[e],o)}}(t),(void 0===t.actual_end_child||null!==t.actual_end_child&&t.actual_end_child.parentElement!==t)&&(t.actual_end_child=t.firstChild);null!==t.actual_end_child&&void 0===t.actual_end_child.claim_order;)t.actual_end_child=t.actual_end_child.nextSibling;e!==t.actual_end_child?void 0===e.claim_order&&e.parentNode===t||t.insertBefore(e,t.actual_end_child):t.actual_end_child=e.nextSibling}else e.parentNode===t&&null===e.nextSibling||t.appendChild(e)}function C(t,e,n){t.insertBefore(e,n||null)}function B(t,e,n){y&&!n?E(t,e):e.parentNode===t&&e.nextSibling==n||t.insertBefore(e,n||null)}function P(t){t.parentNode.removeChild(t)}function z(t,e){for(let n=0;n<t.length;n+=1)t[n]&&t[n].d(e)}function L(t){return document.createElement(t)}function T(t){return document.createElementNS("http://www.w3.org/2000/svg",t)}function O(t){return document.createTextNode(t)}function M(){return O(" ")}function V(){return O("")}function I(t,e,n,o){return t.addEventListener(e,n,o),()=>t.removeEventListener(e,n,o)}function J(t){return function(e){return e.preventDefault(),t.call(this,e)}}function A(t,e,n){null==n?t.removeAttribute(e):t.getAttribute(e)!==n&&t.setAttribute(e,n)}function N(t,e){for(const n in e)A(t,n,e[n])}function R(t){return Array.from(t.childNodes)}function W(t,e,n){return function(t,e,n,o){return function(t,e,n,o,r=!1){!function(t){void 0===t.claim_info&&(t.claim_info={last_index:0,total_claimed:0})}(t);const s=(()=>{for(let o=t.claim_info.last_index;o<t.length;o++){const s=t[o];if(e(s)){const e=n(s);return void 0===e?t.splice(o,1):t[o]=e,r||(t.claim_info.last_index=o),s}}for(let o=t.claim_info.last_index-1;o>=0;o--){const s=t[o];if(e(s)){const e=n(s);return void 0===e?t.splice(o,1):t[o]=e,r?void 0===e&&t.claim_info.last_index--:t.claim_info.last_index=o,s}}return o()})();return s.claim_order=t.claim_info.total_claimed,t.claim_info.total_claimed+=1,s}(t,(t=>t.nodeName===e),(t=>{const e=[];for(let o=0;o<t.attributes.length;o++){const r=t.attributes[o];n[r.name]||e.push(r.name)}e.forEach((e=>t.removeAttribute(e)))}),(()=>o(e)))}(t,e,n,T)}function H(t,e){e=""+e,t.wholeText!==e&&(t.data=e)}function F(t,e,n,o){t.style.setProperty(e,n,o?"important":"")}function D(t,e,n){t.classList[n?"add":"remove"](e)}function U(t,e,n=!1){const o=document.createEvent("CustomEvent");return o.initCustomEvent(t,n,!1,e),o}const q=new Set;let Y,X=0;function G(t,e,n,o,r,s,i,a=0){const c=16.666/o;let l="{\n";for(let t=0;t<=1;t+=c){const o=e+(n-e)*s(t);l+=100*t+`%{${i(o,1-o)}}\n`}const u=l+`100% {${i(n,1-n)}}\n}`,d=`__svelte_${function(t){let e=5381,n=t.length;for(;n--;)e=(e<<5)-e^t.charCodeAt(n);return e>>>0}(u)}_${a}`,p=x(t);q.add(p);const h=p.__svelte_stylesheet||(p.__svelte_stylesheet=S(t).sheet),f=p.__svelte_rules||(p.__svelte_rules={});f[d]||(f[d]=!0,h.insertRule(`@keyframes ${d} ${u}`,h.cssRules.length));const g=t.style.animation||"";return t.style.animation=`${g?`${g}, `:""}${d} ${o}ms linear ${r}ms 1 both`,X+=1,d}function K(t,e){const n=(t.style.animation||"").split(", "),o=n.filter(e?t=>t.indexOf(e)<0:t=>-1===t.indexOf("__svelte")),r=n.length-o.length;r&&(t.style.animation=o.join(", "),X-=r,X||_((()=>{X||(q.forEach((t=>{const e=t.__svelte_stylesheet;let n=e.cssRules.length;for(;n--;)e.deleteRule(n);t.__svelte_rules={}})),q.clear())})))}function Q(t){Y=t}function Z(){if(!Y)throw new Error("Function called outside component initialization");return Y}function tt(t){Z().$$.on_mount.push(t)}function et(){const t=Z();return(e,n)=>{const o=t.$$.callbacks[e];if(o){const r=U(e,n);o.slice().forEach((e=>{e.call(t,r)}))}}}function nt(t,e){const n=t.$$.callbacks[e.type];n&&n.slice().forEach((t=>t.call(this,e)))}const ot=[],rt=[],st=[],it=[],at=Promise.resolve();let ct=!1;function lt(t){st.push(t)}let ut=!1;const dt=new Set;function pt(){if(!ut){ut=!0;do{for(let t=0;t<ot.length;t+=1){const e=ot[t];Q(e),ht(e.$$)}for(Q(null),ot.length=0;rt.length;)rt.pop()();for(let t=0;t<st.length;t+=1){const e=st[t];dt.has(e)||(dt.add(e),e())}st.length=0}while(ot.length);for(;it.length;)it.pop()();ct=!1,ut=!1,dt.clear()}}function ht(t){if(null!==t.fragment){t.update(),i(t.before_update);const e=t.dirty;t.dirty=[-1],t.fragment&&t.fragment.p(t.ctx,e),t.after_update.forEach(lt)}}let ft;function gt(t,e,n){t.dispatchEvent(U(`${e?"intro":"outro"}${n}`))}const mt=new Set;let $t;function bt(){$t={r:0,c:[],p:$t}}function _t(){$t.r||i($t.c),$t=$t.p}function wt(t,e){t&&t.i&&(mt.delete(t),t.i(e))}function vt(t,e,n,o){if(t&&t.o){if(mt.has(t))return;mt.add(t),$t.c.push((()=>{mt.delete(t),o&&(n&&t.d(1),o())})),t.o(e)}}const yt={duration:0};function kt(t,o,r,s){let c=o(t,r),l=s?0:1,u=null,d=null,p=null;function h(){p&&K(t,p)}function f(t,e){const n=t.b-l;return e*=Math.abs(n),{a:l,b:t.b,d:n,duration:e,start:t.start,end:t.start+e,group:t.group}}function g(o){const{delay:r=0,duration:s=300,easing:a=n,tick:g=e,css:m}=c||yt,$={start:b()+r,b:o};o||($.group=$t,$t.r+=1),u||d?d=$:(m&&(h(),p=G(t,l,o,s,r,a,m)),o&&g(0,1),u=f($,s),lt((()=>gt(t,o,"start"))),function(t){let e;0===w.size&&_(v),new Promise((n=>{w.add(e={c:t,f:n})}))}((e=>{if(d&&e>d.start&&(u=f(d,s),d=null,gt(t,u.b,"start"),m&&(h(),p=G(t,l,u.b,u.duration,0,a,c.css))),u)if(e>=u.end)g(l=u.b,1-l),gt(t,u.b,"end"),d||(u.b?h():--u.group.r||i(u.group.c)),u=null;else if(e>=u.start){const t=e-u.start;l=u.a+u.d*a(t/u.duration),g(l,1-l)}return!(!u&&!d)})))}return{run(t){a(c)?(ft||(ft=Promise.resolve(),ft.then((()=>{ft=null}))),ft).then((()=>{c=c(),g(t)})):g(t)},end(){h(),u=d=null}}}function jt(t,e){vt(t,1,1,(()=>{e.delete(t.key)}))}function xt(t,e){const n={},o={},r={$$scope:1};let s=t.length;for(;s--;){const i=t[s],a=e[s];if(a){for(const t in i)t in a||(o[t]=1);for(const t in a)r[t]||(n[t]=a[t],r[t]=1);t[s]=a}else for(const t in i)r[t]=1}for(const t in o)t in n||(n[t]=void 0);return n}function St(t){t&&t.c()}function Et(t,e,n,o){const{fragment:s,on_mount:c,on_destroy:l,after_update:u}=t.$$;s&&s.m(e,n),o||lt((()=>{const e=c.map(r).filter(a);l?l.push(...e):i(e),t.$$.on_mount=[]})),u.forEach(lt)}function Ct(t,e){const n=t.$$;null!==n.fragment&&(i(n.on_destroy),n.fragment&&n.fragment.d(e),n.on_destroy=n.fragment=null,n.ctx=[])}function Bt(t,e){-1===t.$$.dirty[0]&&(ot.push(t),ct||(ct=!0,at.then(pt)),t.$$.dirty.fill(0)),t.$$.dirty[e/31|0]|=1<<e%31}function Pt(t,n,o,r,a,c,l,u=[-1]){const d=Y;Q(t);const p=t.$$={fragment:null,ctx:null,props:c,update:e,not_equal:a,bound:s(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(d?d.$$.context:n.context||[]),callbacks:s(),dirty:u,skip_bound:!1,root:n.target||d.$$.root};l&&l(p.root);let h=!1;if(p.ctx=o?o(t,n.props||{},((e,n,...o)=>{const r=o.length?o[0]:n;return p.ctx&&a(p.ctx[e],p.ctx[e]=r)&&(!p.skip_bound&&p.bound[e]&&p.bound[e](r),h&&Bt(t,e)),n})):[],p.update(),h=!0,i(p.before_update),p.fragment=!!r&&r(p.ctx),n.target){if(n.hydrate){y=!0;const t=R(n.target);p.fragment&&p.fragment.l(t),t.forEach(P)}else p.fragment&&p.fragment.c();n.intro&&wt(t.$$.fragment),Et(t,n.target,n.anchor,n.customElement),y=!1,pt()}Q(d)}class zt{$destroy(){Ct(this,1),this.$destroy=e}$on(t,e){const n=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return n.push(e),()=>{const t=n.indexOf(e);-1!==t&&n.splice(t,1)}}$set(t){var e;this.$$set&&(e=t,0!==Object.keys(e).length)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}}function Lt(t){let n,r,s,i=[{class:"gridicon gridicons-checkmark-circle"},{height:"24"},{width:"24"},{xmlns:"http://www.w3.org/2000/svg"},{viewBox:"0 0 24 24"},t[0]],a={};for(let t=0;t<i.length;t+=1)a=o(a,i[t]);return{c(){n=T("svg"),r=T("g"),s=T("path"),this.h()},l(t){n=W(t,"svg",{class:!0,height:!0,width:!0,xmlns:!0,viewBox:!0});var e=R(n);r=W(e,"g",{});var o=R(r);s=W(o,"path",{d:!0}),R(s).forEach(P),o.forEach(P),e.forEach(P),this.h()},h(){A(s,"d","M11 17.768l-4.884-4.884 1.768-1.768L11 14.232l8.658-8.658C17.823 3.39 15.075 2 12 2 6.477 2 2 6.477 2 12s4.477 10 10 10 10-4.477 10-10c0-1.528-.353-2.97-.966-4.266L11 17.768z"),N(n,a)},m(t,e){B(t,n,e),E(n,r),E(r,s)},p(t,[e]){N(n,a=xt(i,[{class:"gridicon gridicons-checkmark-circle"},{height:"24"},{width:"24"},{xmlns:"http://www.w3.org/2000/svg"},{viewBox:"0 0 24 24"},1&e&&t[0]]))},i:e,o:e,d(t){t&&P(n)}}}function Tt(t,e,n){return t.$$set=t=>{n(0,e=o(o({},e),m(t)))},[e=m(e)]}class Ot extends zt{constructor(t){super(),Pt(this,t,Tt,Lt,c,{})}}function Mt(t,e,n){for(const o of Array.from(t.childNodes)){let t;if(n[o.nodeName]){const[e,r,s]=n[o.nodeName];t=It(e,r,s),Vt(o,t)}else o.tagName?(t=document.createElement(o.tagName),Vt(o,t)):t=o.cloneNode();e.appendChild(t),Mt(o,t,n)}}function Vt(t,e){for(let n=0;n<t.attributes.length;n++){const o=t.attributes.item(n);e.setAttribute(o.name,o.value)}}function It(t,e,n){const o=document.createElement(t);for(const[t,n]of Object.entries(e))t.startsWith("on")&&n instanceof Function?o.addEventListener(t.substring(2),n):o.setAttribute(t,n.toString());return n&&o.append(n),o}function Jt(t){let n;return{c(){n=L("span")},m(e,o){C(e,n,o),t[3](n)},p:e,i:e,o:e,d(e){e&&P(n),t[3](null)}}}function At(t,e,n){let o,{template:r}=e,{vars:s}=e;return tt((()=>{Mt(function(t){const e="<PseudoHTML>"+t+"</PseudoHTML>";return(new DOMParser).parseFromString(e,"application/xml").childNodes[0]}(r),o,s)})),t.$$set=t=>{"template"in t&&n(1,r=t.template),"vars"in t&&n(2,s=t.vars)},[o,r,s,function(t){rt[t?"unshift":"push"]((()=>{o=t,n(0,o)}))}]}class Nt extends zt{constructor(t){super(),Pt(this,t,At,Jt,c,{template:1,vars:2})}}function Rt(t,e="link"){return{[e]:["a",{href:t,target:"_blank",rel:"noopener noreferrer"}]}}const Wt=[];function Ht(t,e){return{subscribe:Ft(t,e).subscribe}}function Ft(t,n=e){let o;const r=new Set;function s(e){if(c(t,e)&&(t=e,o)){const e=!Wt.length;for(const e of r)e[1](),Wt.push(e,t);if(e){for(let t=0;t<Wt.length;t+=2)Wt[t][0](Wt[t+1]);Wt.length=0}}}return{set:s,update:function(e){s(e(t))},subscribe:function(i,a=e){const c=[i,a];return r.add(c),1===r.size&&(o=n(s)||e),i(t),()=>{r.delete(c),0===r.size&&(o(),o=null)}}}}function Dt(t,n,o){const r=!Array.isArray(t),s=r?[t]:t,c=n.length<2;return Ht(o,(t=>{let o=!1;const u=[];let d=0,p=e;const h=()=>{if(d)return;p();const o=n(r?u[0]:u,t);c?t(o):p=a(o)?o:e},f=s.map(((t,e)=>l(t,(t=>{u[e]=t,d&=~(1<<e),o&&h()}),(()=>{d|=1<<e}))));return o=!0,h(),function(){i(f),p()}}))}function Ut(t,e){return"string"==typeof t?t:t&&t.toString instanceof Function?t.toString():e}function qt(t){return!!t&&t instanceof Object&&!(t instanceof Array)}class Yt extends Error{constructor(t,e,n){super(),this.httpCode=t,this.body=e,this.parseError=n}get message(){switch(this.httpCode){case 403:return this.getRestApiErrorMessage();case 200:if(this.parseError)return t.sprintf(t.__("Received invalid response while communicating with your WordPress site: %s","jetpack-boost"),this.parseError.message)}return t.sprintf(t.__("HTTP %d error received while communicating with the server.","jetpack-boost"),this.httpCode)}getDisplayBody(){return qt(this.body)?JSON.stringify(this.body,null," "):Ut(this.body,"").substring(0,1e3)}getRestApiErrorMessage(){return t.__("Your site's REST API does not seem to be accessible. Jetpack Boost requires access to your REST API in order to receive site performance scores. Please make sure that your site's REST API is active and accessible, and try again.","jetpack-boost")}}async function Xt(e,n,o=null){const r={method:e,mode:"cors",headers:{"X-WP-Nonce":wpApiSettings.nonce}};"post"!==e&&"delete"!==e||!o||(r.body=JSON.stringify(o),r.headers["Content-Type"]="application/json");const s=function(t){return wpApiSettings.root+Jetpack_Boost.api.namespace+Jetpack_Boost.api.prefix+t}(n);let i;try{i=await fetch(s,r)}catch(e){const n=r;delete n.body,delete n.headers["X-WP-Nonce"];const o={requestInitiator:window.location.href,requestUrl:s,requestArgs:n,originalErrorMessage:e.toString()};throw new Error(t.sprintf(t.__("An error occurred while trying to communicate with the site REST API. Extra debug info: %s","jetpack-boost"),JSON.stringify(o)))}return i}async function Gt(t,e,n=null){const o=await Xt(t,e,n);let r,s;try{r=await o.text()}catch(t){throw new Yt(o.status,null,t)}try{s=JSON.parse(r)}catch(t){throw new Yt(o.status,r,t)}if(!o.ok)throw new Yt(o.status,s,null);return s}var Kt={get:function(t){return Gt("get",t)},post:function(t,e=null){return Gt("post",t,e)},delete:function(t,e=null){return Gt("delete",t,e)}};const Qt=Jetpack_Boost.connection,{subscribe:Zt,update:te}=Ft(Qt);function ee(t){te((e=>Object.assign(Object.assign({},e),t)))}const ne={subscribe:Zt,initialize:async function(){ee({isConnecting:!0});try{ee(await Kt.post("/connection"))}catch(t){ee({isConnecting:!1,error:t})}},refresh:async function(){ee(await Kt.get("/connection"))}};function oe(t,e="action"){return{[e]:["a",{class:"action",onclick:e=>{e.preventDefault(),t(e.target.getAttribute("name"))},href:"#"}]}}function re(t,e){return t instanceof Error?t:"string"==typeof t||t instanceof String?new Error(t.toString()):t.message?new Error(t.message):e?new Error(e):new Error(JSON.stringify(t))}function se(t="support"){return Rt("https://wordpress.org/support/plugin/jetpack-boost/",t)}function ie(t){let n,r,s,i=[{version:"1.1"},{xmlns:"http://www.w3.org/2000/svg"},{"xmlns:xlink":"http://www.w3.org/1999/xlink"},{x:"0px"},{y:"0px"},{viewBox:"0 0 24 24"},{style:"enable-background:new 0 0 24 24;"},{"xml:space":"preserve"},t[0]],a={};for(let t=0;t<i.length;t+=1)a=o(a,i[t]);return{c(){n=T("svg"),r=T("g"),s=T("path"),this.h()},l(t){n=W(t,"svg",{version:!0,xmlns:!0,"xmlns:xlink":!0,x:!0,y:!0,viewBox:!0,style:!0,"xml:space":!0});var e=R(n);r=W(e,"g",{id:!0});var o=R(r);s=W(o,"path",{style:!0,d:!0}),R(s).forEach(P),o.forEach(P),e.forEach(P),this.h()},h(){F(s,"fill","#d63638"),A(s,"d","M12,4c4.411,0,8,3.589,8,8s-3.589,8-8,8s-8-3.589-8-8S7.589,4,12,4 M12,2C6.477,2,2,6.477,2,12s4.477,10,10,10 s10-4.477,10-10S17.523,2,12,2L12,2z M13,15h-2v2h2V15z M11,13h2l0.5-6h-3L11,13z"),A(r,"id","notice-outline"),N(n,a)},m(t,e){B(t,n,e),E(n,r),E(r,s)},p(t,[e]){N(n,a=xt(i,[{version:"1.1"},{xmlns:"http://www.w3.org/2000/svg"},{"xmlns:xlink":"http://www.w3.org/1999/xlink"},{x:"0px"},{y:"0px"},{viewBox:"0 0 24 24"},{style:"enable-background:new 0 0 24 24;"},{"xml:space":"preserve"},1&e&&t[0]]))},i:e,o:e,d(t){t&&P(n)}}}function ae(t,e,n){return t.$$set=t=>{n(0,e=o(o({},e),m(t)))},[e=m(e)]}class ce extends zt{constructor(t){super(),Pt(this,t,ae,ie,c,{})}}const le=t=>({}),ue=t=>({});function de(t){let e,n;return{c(){e=L("pre"),n=O(t[0]),A(e,"class","data")},m(t,o){C(t,e,o),j(e,n)},p(t,e){1&e&&H(n,t[0])},d(t){t&&P(e)}}}function pe(t){let e,n,o;return n=new Nt({props:{template:t[2],vars:t[4]}}),{c(){e=L("p"),St(n.$$.fragment),A(e,"class","suggestion")},m(t,r){C(t,e,r),Et(n,e,null),o=!0},p(t,e){const o={};4&e&&(o.template=t[2]),n.$set(o)},i(t){o||(wt(n.$$.fragment,t),o=!0)},o(t){vt(n.$$.fragment,t),o=!1},d(t){t&&P(e),Ct(n)}}}function he(t){let n,o,r,s,i,a,c,l,u,p,m,$,b;o=new ce({props:{class:"icon"}});const _=t[8].default,w=d(_,t,t[7],null),v=w||function(t){let n;return{c(){n=L("p"),n.textContent=`${t[3]}`},m(t,e){C(t,n,e)},p:e,d(t){t&&P(n)}}}(t);let y=t[0]&&de(t),k=t[2]&&pe(t);const x=t[8].actionButton,S=d(x,t,t[7],ue);return{c(){n=L("div"),St(o.$$.fragment),r=M(),s=L("div"),i=L("div"),a=O(t[1]),c=M(),l=L("div"),v&&v.c(),u=M(),y&&y.c(),p=M(),k&&k.c(),m=M(),$=L("div"),S&&S.c(),A(i,"class","jb-error__description"),A(l,"class","jb-error__message"),A(s,"class","jb-error__main-content"),A($,"class","jb-error__main-action"),A(n,"class","jb-error")},m(t,e){C(t,n,e),Et(o,n,null),j(n,r),j(n,s),j(s,i),j(i,a),j(s,c),j(s,l),v&&v.m(l,null),j(l,u),y&&y.m(l,null),j(l,p),k&&k.m(l,null),j(n,m),j(n,$),S&&S.m($,null),b=!0},p(t,[e]){(!b||2&e)&&H(a,t[1]),w&&w.p&&(!b||128&e)&&f(w,_,t,t[7],b?h(_,t[7],e,null):g(t[7]),null),t[0]?y?y.p(t,e):(y=de(t),y.c(),y.m(l,p)):y&&(y.d(1),y=null),t[2]?k?(k.p(t,e),4&e&&wt(k,1)):(k=pe(t),k.c(),wt(k,1),k.m(l,null)):k&&(bt(),vt(k,1,1,(()=>{k=null})),_t()),S&&S.p&&(!b||128&e)&&f(S,x,t,t[7],b?h(x,t[7],e,le):g(t[7]),ue)},i(t){b||(wt(o.$$.fragment,t),wt(v,t),wt(k),wt(S,t),b=!0)},o(t){vt(o.$$.fragment,t),vt(v,t),vt(k),vt(S,t),b=!1},d(t){t&&P(n),Ct(o),v&&v.d(t),y&&y.d(),k&&k.d(),S&&S.d(t)}}}function fe(t,e,n){let{$$slots:o={},$$scope:r}=e,{title:s}=e,{error:i=new Error(s)}=e,{data:a}=e,{suggestion:c}=e,{vars:l={}}=e;const u=re(i).message;!a&&i instanceof Yt&&(a=i.getDisplayBody());const d=et();const p={...se(),...oe((function(t){d(t),d("action",t)}),"action"),...l};return t.$$set=t=>{"title"in t&&n(1,s=t.title),"error"in t&&n(5,i=t.error),"data"in t&&n(0,a=t.data),"suggestion"in t&&n(2,c=t.suggestion),"vars"in t&&n(6,l=t.vars),"$$scope"in t&&n(7,r=t.$$scope)},[a,s,c,u,p,i,l,r,o]}class ge extends zt{constructor(t){super(),Pt(this,t,fe,he,c,{title:1,error:5,data:0,suggestion:2,vars:6})}}const me=Jetpack_Boost;function $e(t,e,n){const o=t.slice();return o[3]=e[n],o}function be(t){let n,o,r,s,i,a,c,l=t[3]+"";return o=new Ot({}),{c(){n=L("div"),St(o.$$.fragment),r=M(),s=L("span"),i=O(l),a=M(),A(n,"class","checklist__item")},m(t,e){C(t,n,e),Et(o,n,null),j(n,r),j(n,s),j(s,i),j(n,a),c=!0},p:e,i(t){c||(wt(o.$$.fragment,t),c=!0)},o(t){vt(o.$$.fragment,t),c=!1},d(t){t&&P(n),Ct(o)}}}function _e(e){let n,o;return n=new ge({props:{title:t.__("Failed to connect to WordPress.com","jetpack-boost"),suggestion:t.__("If you need further assistance, contact <support>Jetpack Boost Support</support>.","jetpack-boost"),error:e[0].error}}),{c(){St(n.$$.fragment)},m(t,e){Et(n,t,e),o=!0},p(t,e){const o={};1&e&&(o.error=t[0].error),n.$set(o)},i(t){o||(wt(n.$$.fragment,t),o=!0)},o(t){vt(n.$$.fragment,t),o=!1},d(t){Ct(n,t)}}}function we(n){let o,r=t.__("Get Started","jetpack-boost")+"";return{c(){o=O(r)},m(t,e){C(t,o,e)},p:e,d(t){t&&P(o)}}}function ve(n){let o,r=t.__("Connecting to WordPress.com","jetpack-boost")+"";return{c(){o=O(r)},m(t,e){C(t,o,e)},p:e,d(t){t&&P(o)}}}function ye(e){let n,o,r,s,i,a,c,l,u,d,p,h,f,g,m,$,b,_,w,v=e[2],y=[];for(let t=0;t<v.length;t+=1)y[t]=be($e(e,v,t));const k=t=>vt(y[t],1,1,(()=>{y[t]=null}));let x=e[0].error&&_e(e);function S(t,e){return t[0].isConnecting?ve:we}let E=S(e),B=E(e);return $=new Nt({props:{template:t.__("By clicking the button above, you agree to our <tosLink>Terms of Service</tosLink> and to <shareLink>share details</shareLink> with WordPress.com.","jetpack-boost"),vars:{...Rt(e[1]("https://jetpack.com/redirect/?source=wpcom-tos"),"tosLink"),...Rt(e[1]("https://jetpack.com/redirect/?source=jetpack-support-what-data-does-jetpack-sync"),"shareLink")}}}),{c(){n=L("div"),o=L("div"),r=L("div"),s=L("h1"),s.textContent=`${t.__("Get faster loading times with Jetpack Boost","jetpack-boost")}`,i=M(),a=L("p"),a.textContent=`${t.__("Connect Jetpack Boost and we will make your site faster in no time.","jetpack-boost")}`,c=M(),l=L("div");for(let t=0;t<y.length;t+=1)y[t].c();u=M(),x&&x.c(),d=M(),p=L("button"),B.c(),f=M(),g=L("div"),m=L("p"),St($.$$.fragment),A(s,"class","jb-connection__title"),A(a,"class","jb-connection__description"),A(r,"class","jb-connection__header"),A(l,"class","checklist"),A(p,"type","button"),A(p,"class","components-button is-primary"),p.disabled=h=e[0].isConnecting,A(g,"class","jb-connection-overlay"),A(o,"class","jb-connection"),A(n,"class","jb-section__inner connection")},m(t,e){C(t,n,e),j(n,o),j(o,r),j(r,s),j(r,i),j(r,a),j(o,c),j(o,l);for(let t=0;t<y.length;t+=1)y[t].m(l,null);j(o,u),x&&x.m(o,null),j(o,d),j(o,p),B.m(p,null),j(o,f),j(o,g),j(g,m),Et($,m,null),b=!0,_||(w=I(p,"click",ne.initialize),_=!0)},p(t,[e]){if(4&e){let n;for(v=t[2],n=0;n<v.length;n+=1){const o=$e(t,v,n);y[n]?(y[n].p(o,e),wt(y[n],1)):(y[n]=be(o),y[n].c(),wt(y[n],1),y[n].m(l,null))}for(bt(),n=v.length;n<y.length;n+=1)k(n);_t()}t[0].error?x?(x.p(t,e),1&e&&wt(x,1)):(x=_e(t),x.c(),wt(x,1),x.m(o,d)):x&&(bt(),vt(x,1,1,(()=>{x=null})),_t()),E===(E=S(t))&&B?B.p(t,e):(B.d(1),B=E(t),B&&(B.c(),B.m(p,null))),(!b||1&e&&h!==(h=t[0].isConnecting))&&(p.disabled=h)},i(t){if(!b){for(let t=0;t<v.length;t+=1)wt(y[t]);wt(x),wt($.$$.fragment,t),b=!0}},o(t){y=y.filter(Boolean);for(let t=0;t<y.length;t+=1)vt(y[t]);vt(x),vt($.$$.fragment,t),b=!1},d(t){t&&P(n),z(y,t),x&&x.d(),B.d(),Ct($),_=!1,w()}}}function ke(e,n,o){let r;u(e,ne,(t=>o(0,r=t)));const s=[t.__("Speed up your site load time","jetpack-boost"),t.__("Decrease bounce rate of your visitors","jetpack-boost"),t.__("Improve your SEO ranking","jetpack-boost"),t.__("Sell more stuff","jetpack-boost")];return[r,function(t){return me.site.url&&(t=t+"&site="+encodeURIComponent(me.site.url)),t},s]}class je extends zt{constructor(t){super(),Pt(this,t,ke,ye,c,{})}}function xe(n){let o,r,s,i,a,c,l,u,d,p,h,f,g,m,$,b,_;return p=new Nt({props:{template:t.__("Pages that take over 3 seconds to load have 4x the bounce rate of pages that load in 2 seconds or less. (source: <link>Pingdom</link>).","jetpack-boost"),vars:Rt("https://royal.pingdom.com/page-load-time-really-affect-bounce-rate/")}}),b=new Nt({props:{template:t.__("A one-second delay in loading times can reduce conversion rates by 20%. (source: <link>Google</link>).","jetpack-boost"),vars:Rt("https://web.dev/why-speed-matters/")}}),{c(){o=L("div"),r=L("div"),s=L("h3"),s.textContent=`${t.__("Did you know?","jetpack-boost")}`,i=M(),a=L("div"),c=L("div"),l=L("div"),l.textContent="4x",u=M(),d=L("div"),St(p.$$.fragment),h=M(),f=L("div"),g=L("div"),g.textContent="20%",m=M(),$=L("div"),St(b.$$.fragment),A(s,"class","jb-tips__title"),A(l,"class","item__rate"),A(d,"class","item__description"),A(c,"class","item"),A(g,"class","item__rate"),A($,"class","item__description"),A(f,"class","item"),A(a,"class","jb-tips__items"),A(r,"class","jb-tips"),A(o,"class","jb-container--narrow")},m(t,e){C(t,o,e),j(o,r),j(r,s),j(r,i),j(r,a),j(a,c),j(c,l),j(c,u),j(c,d),Et(p,d,null),j(a,h),j(a,f),j(f,g),j(f,m),j(f,$),Et(b,$,null),_=!0},p:e,i(t){_||(wt(p.$$.fragment,t),wt(b.$$.fragment,t),_=!0)},o(t){vt(p.$$.fragment,t),vt(b.$$.fragment,t),_=!1},d(t){t&&P(o),Ct(p),Ct(b)}}}class Se extends zt{constructor(t){super(),Pt(this,t,null,xe,c,{})}}function Ee(t){let n,r,s,i=[{class:"gridicon gridicons-computer"},{height:"24"},{width:"24"},{xmlns:"http://www.w3.org/2000/svg"},{viewBox:"0 0 24 24"},t[0]],a={};for(let t=0;t<i.length;t+=1)a=o(a,i[t]);return{c(){n=T("svg"),r=T("g"),s=T("path"),this.h()},l(t){n=W(t,"svg",{class:!0,height:!0,width:!0,xmlns:!0,viewBox:!0});var e=R(n);r=W(e,"g",{});var o=R(r);s=W(o,"path",{d:!0}),R(s).forEach(P),o.forEach(P),e.forEach(P),this.h()},h(){A(s,"d","M20 2H4c-1.104 0-2 .896-2 2v12c0 1.104.896 2 2 2h6v2H7v2h10v-2h-3v-2h6c1.104 0 2-.896 2-2V4c0-1.104-.896-2-2-2zm0 14H4V4h16v12z"),N(n,a)},m(t,e){B(t,n,e),E(n,r),E(r,s)},p(t,[e]){N(n,a=xt(i,[{class:"gridicon gridicons-computer"},{height:"24"},{width:"24"},{xmlns:"http://www.w3.org/2000/svg"},{viewBox:"0 0 24 24"},1&e&&t[0]]))},i:e,o:e,d(t){t&&P(n)}}}function Ce(t,e,n){return t.$$set=t=>{n(0,e=o(o({},e),m(t)))},[e=m(e)]}class Be extends zt{constructor(t){super(),Pt(this,t,Ce,Ee,c,{})}}function Pe(t){let n,r,s,i=[{class:"gridicon gridicons-phone"},{height:"24"},{width:"24"},{xmlns:"http://www.w3.org/2000/svg"},{viewBox:"0 0 24 24"},t[0]],a={};for(let t=0;t<i.length;t+=1)a=o(a,i[t]);return{c(){n=T("svg"),r=T("g"),s=T("path"),this.h()},l(t){n=W(t,"svg",{class:!0,height:!0,width:!0,xmlns:!0,viewBox:!0});var e=R(n);r=W(e,"g",{});var o=R(r);s=W(o,"path",{d:!0}),R(s).forEach(P),o.forEach(P),e.forEach(P),this.h()},h(){A(s,"d","M16 2H8c-1.104 0-2 .896-2 2v16c0 1.104.896 2 2 2h8c1.104 0 2-.896 2-2V4c0-1.104-.896-2-2-2zm-3 19h-2v-1h2v1zm3-2H8V5h8v14z"),N(n,a)},m(t,e){B(t,n,e),E(n,r),E(r,s)},p(t,[e]){N(n,a=xt(i,[{class:"gridicon gridicons-phone"},{height:"24"},{width:"24"},{xmlns:"http://www.w3.org/2000/svg"},{viewBox:"0 0 24 24"},1&e&&t[0]]))},i:e,o:e,d(t){t&&P(n)}}}function ze(t,e,n){return t.$$set=t=>{n(0,e=o(o({},e),m(t)))},[e=m(e)]}class Le extends zt{constructor(t){super(),Pt(this,t,ze,Pe,c,{})}}function Te(t){let n,r,s,i=[{class:"gridicon gridicons-refresh"},{height:"15"},{width:"15"},{xmlns:"http://www.w3.org/2000/svg"},{viewBox:"0 0 24 24"},t[0]],a={};for(let t=0;t<i.length;t+=1)a=o(a,i[t]);return{c(){n=T("svg"),r=T("g"),s=T("path"),this.h()},l(t){n=W(t,"svg",{class:!0,height:!0,width:!0,xmlns:!0,viewBox:!0});var e=R(n);r=W(e,"g",{});var o=R(r);s=W(o,"path",{d:!0}),R(s).forEach(P),o.forEach(P),e.forEach(P),this.h()},h(){A(s,"d","M17.91 14c-.478 2.833-2.943 5-5.91 5-3.308 0-6-2.692-6-6s2.692-6 6-6h2.172l-2.086 2.086L13.5 10.5 18 6l-4.5-4.5-1.414 1.414L14.172 5H12c-4.418 0-8 3.582-8 8s3.582 8 8 8c4.08 0 7.438-3.055 7.93-7h-2.02z"),N(n,a)},m(t,e){B(t,n,e),E(n,r),E(r,s)},p(t,[e]){N(n,a=xt(i,[{class:"gridicon gridicons-refresh"},{height:"15"},{width:"15"},{xmlns:"http://www.w3.org/2000/svg"},{viewBox:"0 0 24 24"},1&e&&t[0]]))},i:e,o:e,d(t){t&&P(n)}}}function Oe(t,e,n){return t.$$set=t=>{n(0,e=o(o({},e),m(t)))},[e=m(e)]}class Me extends zt{constructor(t){super(),Pt(this,t,Oe,Te,c,{})}}function Ve(t){let n,r,s,i,a=[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{viewBox:"0 0 128 128"},t[0]],c={};for(let t=0;t<a.length;t+=1)c=o(c,a[t]);return{c(){n=T("svg"),r=T("g"),s=T("path"),i=T("animateTransform"),this.h()},l(t){n=W(t,"svg",{xmlns:!0,width:!0,height:!0,viewBox:!0});var e=R(n);r=W(e,"g",{});var o=R(r);s=W(o,"path",{d:!0}),R(s).forEach(P),i=W(o,"animateTransform",{attributeName:!0,type:!0,values:!0,calcMode:!0,dur:!0,repeatCount:!0}),R(i).forEach(P),o.forEach(P),e.forEach(P),this.h()},h(){A(s,"d","M64 0a7 7 0 11-7 7 7 7 0 017-7zm29.86 12.2a2.8 2.8 0 11-3.83 1.02 2.8 2.8 0 013.83-1.02zm22.16 21.68a3.15 3.15 0 11-4.3-1.15 3.15 3.15 0 014.3 1.15zm.87 60.53a4.2 4.2 0 11-1.57-5.7 4.2 4.2 0 011.54 5.73zm7.8-30.5a3.85 3.85 0 11-3.85-3.85 3.85 3.85 0 013.85 3.84zm-30 53.2a4.55 4.55 0 111.66-6.23 4.55 4.55 0 01-1.67 6.22zM64 125.9a4.9 4.9 0 114.9-4.9 4.9 4.9 0 01-4.9 4.9zm-31.06-8.22a5.25 5.25 0 117.17-1.93 5.25 5.25 0 01-7.14 1.93zM9.9 95.1a5.6 5.6 0 117.65 2.06A5.6 5.6 0 019.9 95.1zM1.18 63.9a5.95 5.95 0 115.95 5.94 5.95 5.95 0 01-5.96-5.94zm8.1-31.6a6.3 6.3 0 112.32 8.6 6.3 6.3 0 01-2.3-8.6zM32.25 8.87a6.65 6.65 0 11-2.44 9.1 6.65 6.65 0 012.46-9.1z"),A(i,"attributeName","transform"),A(i,"type","rotate"),A(i,"values","0 64 64;30 64 64;60 64 64;90 64 64;120 64 64;150 64 64;180 64 64;210 64 64;240 64 64;270 64 64;300 64 64;330 64 64"),A(i,"calcMode","discrete"),A(i,"dur","1080ms"),A(i,"repeatCount","indefinite"),N(n,c)},m(t,e){B(t,n,e),E(n,r),E(r,s),E(r,i)},p(t,[e]){N(n,c=xt(a,[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{viewBox:"0 0 128 128"},1&e&&t[0]]))},i:e,o:e,d(t){t&&P(n)}}}function Ie(t,e,n){return t.$$set=t=>{n(0,e=o(o({},e),m(t)))},[e=m(e)]}class Je extends zt{constructor(t){super(),Pt(this,t,Ie,Ve,c,{})}}function Ae(t){let e,n,o,r,s,i;const a=[Re,Ne],c=[];function l(t,e){return t[1]?0:1}n=l(t),o=c[n]=a[n](t);let u=t[2]&&t[4]&&t[4]<t[0]&&We(t);return{c(){e=L("div"),o.c(),r=M(),u&&u.c(),A(e,"class",s="jb-score-bar__filler "+t[6]),F(e,"width",t[0]+"%")},m(t,o){C(t,e,o),c[n].m(e,null),j(e,r),u&&u.m(e,null),i=!0},p(t,d){let p=n;n=l(t),n===p?c[n].p(t,d):(bt(),vt(c[p],1,1,(()=>{c[p]=null})),_t(),o=c[n],o?o.p(t,d):(o=c[n]=a[n](t),o.c()),wt(o,1),o.m(e,r)),t[2]&&t[4]&&t[4]<t[0]?u?u.p(t,d):(u=We(t),u.c(),u.m(e,null)):u&&(u.d(1),u=null),(!i||64&d&&s!==(s="jb-score-bar__filler "+t[6]))&&A(e,"class",s),(!i||1&d)&&F(e,"width",t[0]+"%")},i(t){i||(wt(o),i=!0)},o(t){vt(o),i=!1},d(t){t&&P(e),c[n].d(),u&&u.d()}}}function Ne(t){let n,o;return{c(){n=L("div"),o=O(t[0]),A(n,"class","jb-score-bar__score")},m(t,e){C(t,n,e),j(n,o)},p(t,e){1&e&&H(o,t[0])},i:e,o:e,d(t){t&&P(n)}}}function Re(t){let n,o,r;return o=new Je({}),{c(){n=L("div"),St(o.$$.fragment),A(n,"class","jb-score-bar__loading")},m(t,e){C(t,n,e),Et(o,n,null),r=!0},p:e,i(t){r||(wt(o.$$.fragment,t),r=!0)},o(t){vt(o.$$.fragment,t),r=!1},d(t){t&&P(n),Ct(o)}}}function We(t){let e,n,o,r=t[5]&&He(t);return{c(){e=L("div"),n=O(t[4]),o=M(),r&&r.c(),A(e,"class","jb-score-bar__no_boost_score"),F(e,"left","min("+t[7]+"%, calc(100% - var(--clearance-space))")},m(t,s){C(t,e,s),j(e,n),j(e,o),r&&r.m(e,null)},p(t,o){16&o&&H(n,t[4]),t[5]?r?r.p(t,o):(r=He(t),r.c(),r.m(e,null)):r&&(r.d(1),r=null),128&o&&F(e,"left","min("+t[7]+"%, calc(100% - var(--clearance-space))")},d(t){t&&P(e),r&&r.d()}}}function He(t){let e,n;return{c(){e=L("div"),n=O(t[5]),A(e,"class","jb-score-bar__no_boost_score_tooltip")},m(t,o){C(t,e,o),j(e,n)},p(t,e){32&e&&H(n,t[5])},d(t){t&&P(e)}}}function Fe(t){let e,n,o=t[3]&&Ae(t);return{c(){e=L("div"),o&&o.c(),A(e,"class","jb-score-bar__bounds")},m(t,r){C(t,e,r),o&&o.m(e,null),n=!0},p(t,[n]){t[3]?o?(o.p(t,n),8&n&&wt(o,1)):(o=Ae(t),o.c(),wt(o,1),o.m(e,null)):o&&(bt(),vt(o,1,1,(()=>{o=null})),_t())},i(t){n||(wt(o),n=!0)},o(t){vt(o),n=!1},d(t){t&&P(e),o&&o.d()}}}function De(t,e,n){let o,r,{score:s=0}=e,{isLoading:i=!0}=e,{showPrevScores:a=!1}=e,{active:c=!0}=e,{prevScore:l=0}=e,{noBoostScoreTooltip:u=null}=e;return t.$$set=t=>{"score"in t&&n(0,s=t.score),"isLoading"in t&&n(1,i=t.isLoading),"showPrevScores"in t&&n(2,a=t.showPrevScores),"active"in t&&n(3,c=t.active),"prevScore"in t&&n(4,l=t.prevScore),"noBoostScoreTooltip"in t&&n(5,u=t.noBoostScoreTooltip)},t.$$.update=()=>{var e;17&t.$$.dirty&&(n(6,(e=s,o=i?"fill-loading":e>70?"fill-good":e>50?"fill-mediocre":e?"fill-bad":void 0)),n(7,r=l/s*100))},[s,i,a,c,l,u,o,r]}class Ue extends zt{constructor(t){super(),Pt(this,t,De,Fe,c,{score:0,isLoading:1,showPrevScores:2,active:3,prevScore:4,noBoostScoreTooltip:5})}}function qe(n){let o,r,s,i,a,c,l,u,d,p,h;return{c(){o=L("div"),r=L("span"),r.textContent="i",s=M(),i=L("div"),a=L("p"),a.textContent=`${t.__("Your Overall Score is a summary of your website performance across both mobile and desktop devices. It gives a general idea of your sites' overall performance.","jetpack-boost")}`,c=M(),l=L("table"),l.innerHTML="<tr><th>A</th> \n\t\t\t\t<td>90+</td></tr> \n\t\t\t<tr><th>B</th> \n\t\t\t\t<td>75 - 90</td></tr> \n\t\t\t<tr><th>C</th> \n\t\t\t\t<td>50 - 75</td></tr>",u=M(),d=L("table"),d.innerHTML="<tr><th>D</th> \n\t\t\t\t<td>35 - 50</td></tr> \n\t\t\t<tr><th>E</th> \n\t\t\t\t<td>25 - 35</td></tr> \n\t\t\t<tr><th>F</th> \n\t\t\t\t<td>0 - 25</td></tr>",p=M(),h=L("i"),A(r,"class","jb-score-context__info-icon"),A(i,"class","jb-score-context__info-container"),A(o,"class","jb-score-context")},m(t,e){C(t,o,e),j(o,r),j(o,s),j(o,i),j(i,a),j(i,c),j(i,l),j(i,u),j(i,d),j(i,p),j(i,h)},p:e,i:e,o:e,d(t){t&&P(o)}}}class Ye extends zt{constructor(t){super(),Pt(this,t,null,qe,c,{})}}function Xe(t,e){if("number"==typeof t)return t;if("string"==typeof t){const e=parseFloat(t);if(!isNaN(e))return e}return e}const Ge=12e4;async function Ke(e=!1){const n=Qe(await Kt.post(e?"/speed-scores/refresh":"/speed-scores",{url:Jetpack_Boost.site.url}));return n.scores?n.scores:await async function(){return async function({interval:e,callback:n,timeout:o,timeoutError:r}){let s,i;return new Promise(((a,c)=>{s=setTimeout((()=>{c(new Error(r||t.__("Timed out","jetpack-boost")))}),o||12e4),i=setInterval((async()=>{try{await Promise.resolve(n(a))}catch(t){c(t)}}),e)})).finally((()=>{clearTimeout(s),clearInterval(i)}))}({timeout:Ge,interval:5e3,timeoutError:t.__("Timed out while waiting for speed-score.","jetpack-boost"),callback:async t=>{const e=Qe(await Kt.post("/speed-scores",{url:Jetpack_Boost.site.url}));e.scores&&t(e.scores)}})}()}function Qe(e){if(e.error){const n=t.__("An unknown error occurred while requesting metrics","jetpack-boost");throw re(e.error,n)}if(qt(e.scores))return{status:"success",scores:{current:qt(e.scores.current)?{mobile:Xe(e.scores.current.mobile,0),desktop:Xe(e.scores.current.desktop,0)}:{mobile:0,desktop:0},noBoost:qt(e.scores.noBoost)?{mobile:Xe(e.scores.noBoost.mobile,0),desktop:Xe(e.scores.noBoost.desktop,0)}:null,isStale:!!e.scores.isStale}};const n=Ut(e.status);if(!n)throw new Error(t.__("Invalid response while requesting metrics","jetpack-boost"));return{status:n}}function Ze(t){const e=t.current,n=t.noBoost;return null!==e&&null!==n&&e.mobile>=n.mobile&&e.desktop>=n.desktop&&e.mobile+e.desktop>n.mobile+n.desktop&&(tn(t)>=5||e.desktop+e.mobile>180)}function tn(t){const e=(t.current.mobile+t.current.desktop)/(t.noBoost.mobile+t.noBoost.desktop)-1;return Math.round(100*e)}const en="success",nn="fail",on=Jetpack_Boost.criticalCssStatus||{generating:!1,progress:0,status:"not_generated",retried_show_stopper:!1},{subscribe:rn,update:sn}=Ft(on),an=Dt({subscribe:rn},(t=>t.providers_errors?Object.keys(t.providers_errors).length:0)),cn=Dt({subscribe:rn},(t=>[en,nn].includes(t.status)));async function ln(t,e,n){const o=await Kt[t](e,n);if("module-unavailable"===o.status)return!1;if(o.status!==en)throw new Error(o.code||o.message||o.error||JSON.stringify(o));return sn((t=>Object.assign(Object.assign({},t),o.status_update))),o.status_update}function un(t,e){return sn((n=>Object.assign(Object.assign({},n),{generating:t,progress:e,status:t?"requesting":n.status})))}async function dn(t,e,n){return ln("post",`/critical-css/${t}/${e}`,n)}const pn={subscribe:rn};const hn={};for(const[t,e]of Object.entries(me.optimizations))hn[t]={enabled:e};const{subscribe:fn,update:gn}=Ft(hn);let mn;function $n(t){return mn[t]&&mn[t].enabled}async function bn(e,n){const o=$n(e);let r=n;_n(e,n);try{r=await async function(e,n){const o=await Kt.post(`/module/${e}/status`,{status:n});if(!0!==o&&!1!==o){const e=JSON.stringify(o);throw new Error(t.sprintf(t.__("Unexpected data received from WordPress: %s","jetpack-boost"),e))}return o!==n?!n:o}(e,n),_n(e,r,!0)}catch(t){throw _n(e,o,!0),t}return r}function _n(t,e,n=!1){gn((o=>Object.assign(Object.assign({},o),{[t]:Object.assign(Object.assign({},o[t]),{enabled:e,synced:n})})))}fn((t=>mn=t));const wn={subscribe:fn,updateModuleState:bn};function vn(n){let o,r,s,i;return{c(){o=L("a"),r=L("span"),r.textContent=`${t.__("Dismiss","jetpack-boost")}`,A(r,"class","screen-reader-text"),A(o,"href","#"),A(o,"class","cross-close")},m(t,e){C(t,o,e),j(o,r),s||(i=I(o,"click",J(n[0])),s=!0)},p:e,i:e,o:e,d(t){t&&P(o),s=!1,i()}}}function yn(t){return[function(e){nt.call(this,t,e)}]}class kn extends zt{constructor(t){super(),Pt(this,t,yn,vn,c,{})}}function jn(t){return t<.5?4*t*t*t:.5*Math.pow(2*t-2,3)+1}function xn(t){const e=t-1;return e*e*e+1}function Sn(t,e){const n=getComputedStyle(t).transform.replace("none","");return{delay:e.delay||0,duration:e.duration||2e3,easing:e.easing||jn,css:(t,e)=>`transform: ${n} translateX(${100*e}%)`}}class En extends Error{constructor(t){super(t),this.name="AdminAjaxError"}}async function Cn(e){const n={method:"post",body:new URLSearchParams(e),headers:{"Content-Type":"application/x-www-form-urlencoded"}},o=await fetch(ajaxurl,n);if(!o.ok)throw new En(t.sprintf(t.__("Received HTTP %d while communicating with your WordPress site","jetpack-boost"),o.status));return o}function Bn(e){let n,o=t.sprintf(t.__("You achieved a score of %d!","jetpack-boost"),e[1])+"";return{c(){n=O(o)},m(t,e){C(t,n,e)},p(e,r){2&r&&o!==(o=t.sprintf(t.__("You achieved a score of %d!","jetpack-boost"),e[1])+"")&&H(n,o)},d(t){t&&P(n)}}}function Pn(e){let n,o=t.sprintf(t.__("Faster by %1$d%%","jetpack-boost"),e[0])+"";return{c(){n=O(o)},m(t,e){C(t,n,e)},p(e,r){1&r&&o!==(o=t.sprintf(t.__("Faster by %1$d%%","jetpack-boost"),e[0])+"")&&H(n,o)},d(t){t&&P(n)}}}function zn(e){let n,o,r,s,i,a,c,l,u,d,p,h;function f(t,e){return t[0]>5?Pn:Bn}o=new kn({}),o.$on("click",e[4]);let g=f(e),m=g(e);return{c(){n=L("div"),St(o.$$.fragment),r=M(),s=L("h3"),m.c(),i=M(),a=L("p"),a.textContent=`${t.__("That’s a great result! If you’re happy with your result, why not rate Boost?","jetpack-boost")}`,c=M(),l=L("a"),l.textContent=`${t.__("Rate the plugin","jetpack-boost")}`,A(s,"class","jb-rating-card__headline"),A(a,"class","jb-rating-card__paragraph"),A(l,"class","jb-button--primary"),A(l,"href","https://wordpress.org/support/plugin/jetpack-boost/reviews/#new-post"),A(l,"target","_blank"),A(n,"class","jb-rating-card")},m(t,u){C(t,n,u),Et(o,n,null),j(n,r),j(n,s),m.m(s,null),j(n,i),j(n,a),j(n,c),j(n,l),d=!0,p||(h=I(l,"click",e[5]),p=!0)},p(t,[e]){g===(g=f(t))&&m?m.p(t,e):(m.d(1),m=g(t),m&&(m.c(),m.m(s,null)))},i(t){d||(wt(o.$$.fragment,t),lt((()=>{u||(u=kt(n,Sn,{},!0)),u.run(1)})),d=!0)},o(t){vt(o.$$.fragment,t),u||(u=kt(n,Sn,{},!1)),u.run(0),d=!1},d(t){t&&P(n),Ct(o),m.d(),t&&u&&u.end(),p=!1,h()}}}function Ln(e,n,o){let{improvement:r}=n,{currentPercentage:s}=n;const i=et();async function a(){await async function(e){const n=await Cn(e);let o;try{o=await n.json()}catch(e){throw new En(t.sprintf(t.__("Received invalid response while communicating with your WordPress site: %s","jetpack-boost"),e.message))}if(!n.ok)throw new En(t.sprintf(t.__("HTTP %d error received while communicating with the server.","jetpack-boost"),n.status));return o}({action:"set_show_rating_prompt",value:!1,nonce:Jetpack_Boost.showRatingPromptNonce}),i("dismiss")}return e.$$set=t=>{"improvement"in t&&o(0,r=t.improvement),"currentPercentage"in t&&o(1,s=t.currentPercentage)},[r,s,i,a,()=>i("dismiss"),()=>{a()}]}class Tn extends zt{constructor(t){super(),Pt(this,t,Ln,zn,c,{improvement:0,currentPercentage:1})}}function On(n){let o,r,s,i;return{c(){o=L("div"),r=L("h2"),r.textContent=`${t.__("Website Offline","jetpack-boost")}`,s=M(),i=L("p"),i.textContent=`${t.__("All Jetpack Boost features are still available, but to get a performance score you would first have to make your website available online.","jetpack-boost")}`,A(o,"class","jb-site-score__offline")},m(t,e){C(t,o,e),j(o,r),j(o,s),j(o,i)},p:e,i:e,o:e,d(t){t&&P(o)}}}function Mn(e){let n,o,r,s,i,a,c,l,u,d,p,h=t.__("Refresh","jetpack-boost")+"";function f(t,e){return t[7]?Jn:t[2]?In:Vn}let g=f(e),m=g(e),$=!e[7]&&!e[2]&&An();return a=new Me({}),{c(){n=L("div"),o=L("h2"),m.c(),r=M(),$&&$.c(),s=M(),i=L("button"),St(a.$$.fragment),c=M(),l=O(h),A(i,"type","button"),A(i,"class","components-button is-link"),i.disabled=e[7],A(n,"class","jb-site-score__top")},m(t,h){C(t,n,h),j(n,o),m.m(o,null),j(n,r),$&&$.m(n,null),j(n,s),j(n,i),Et(a,i,null),j(i,c),j(i,l),u=!0,d||(p=I(i,"click",e[17]),d=!0)},p(t,e){g===(g=f(t))&&m?m.p(t,e):(m.d(1),m=g(t),m&&(m.c(),m.m(o,null))),t[7]||t[2]?$&&(bt(),vt($,1,1,(()=>{$=null})),_t()):$?132&e&&wt($,1):($=An(),$.c(),wt($,1),$.m(n,s)),(!u||128&e)&&(i.disabled=t[7])},i(t){u||(wt($),wt(a.$$.fragment,t),u=!0)},o(t){vt($),vt(a.$$.fragment,t),u=!1},d(t){t&&P(n),m.d(),$&&$.d(),Ct(a),d=!1,p()}}}function Vn(e){let n,o,r,s=t.__("Overall score","jetpack-boost")+"";return{c(){n=O(s),o=O(": "),r=O(e[4])},m(t,e){C(t,n,e),C(t,o,e),C(t,r,e)},p(t,e){16&e&&H(r,t[4])},d(t){t&&P(n),t&&P(o),t&&P(r)}}}function In(n){let o,r=t.__("Whoops, something went wrong","jetpack-boost")+"";return{c(){o=O(r)},m(t,e){C(t,o,e)},p:e,d(t){t&&P(o)}}}function Jn(n){let o,r=t.__("Loading…","jetpack-boost")+"";return{c(){o=O(r)},m(t,e){C(t,o,e)},p:e,d(t){t&&P(o)}}}function An(t){let e,n;return e=new Ye({}),{c(){St(e.$$.fragment)},m(t,o){Et(e,t,o),n=!0},i(t){n||(wt(e.$$.fragment,t),n=!0)},o(t){vt(e.$$.fragment,t),n=!1},d(t){Ct(e,t)}}}function Nn(e){let n,o;return n=new ge({props:{title:t.__("Failed to load Speed Scores","jetpack-boost"),error:e[2],suggestion:t.__('<action name="retry">Try again</action>',"jetpack-boost")}}),n.$on("retry",e[18]),{c(){St(n.$$.fragment)},m(t,e){Et(n,t,e),o=!0},p(t,e){const o={};4&e&&(o.error=t[2]),n.$set(o)},i(t){o||(wt(n.$$.fragment,t),o=!0)},o(t){vt(n.$$.fragment,t),o=!1},d(t){Ct(n,t)}}}function Rn(t){let e,n;return e=new Tn({props:{improvement:t[5],currentPercentage:t[6]}}),e.$on("dismiss",t[19]),{c(){St(e.$$.fragment)},m(t,o){Et(e,t,o),n=!0},p(t,n){const o={};32&n&&(o.improvement=t[5]),64&n&&(o.currentPercentage=t[6]),e.$set(o)},i(t){n||(wt(e.$$.fragment,t),n=!0)},o(t){vt(e.$$.fragment,t),n=!1},d(t){Ct(e,t)}}}function Wn(e){let n,o,r,s,i,a,c,l,u,d,p,h,f,g,m,$,b,_,w,v,y,k,x,S;const E=[Mn,On],B=[];r=function(t,e){return t[8]?0:1}(e),s=B[r]=E[r](e);let z=e[2]&&Nn(e);u=new Le({}),f=new Ue({props:{prevScore:e[0].noBoost?.mobile,score:e[0].current.mobile,active:e[8],isLoading:e[7],showPrevScores:e[3],noBoostScoreTooltip:t.__("Your mobile score without Boost","jetpack-boost")}}),b=new Be({}),y=new Ue({props:{prevScore:e[0].noBoost?.desktop,score:e[0].current.desktop,active:e[8],isLoading:e[7],showPrevScores:e[3],noBoostScoreTooltip:t.__("Your desktop score without Boost","jetpack-boost")}});let T=e[1]&&Rn(e);return{c(){n=L("div"),o=L("div"),s.c(),i=M(),z&&z.c(),a=M(),c=L("div"),l=L("div"),St(u.$$.fragment),d=M(),p=L("div"),p.textContent=`${t.__("Mobile score","jetpack-boost")}`,h=M(),St(f.$$.fragment),g=M(),m=L("div"),$=L("div"),St(b.$$.fragment),_=M(),w=L("div"),w.textContent=`${t.__("Desktop score","jetpack-boost")}`,v=M(),St(y.$$.fragment),k=M(),T&&T.c(),x=V(),A(l,"class","jb-score-bar__label"),A(c,"class","jb-score-bar jb-score-bar--mobile"),A($,"class","jb-score-bar__label"),A(m,"class","jb-score-bar jb-score-bar--desktop"),A(o,"class","jb-site-score"),D(o,"loading",e[7]),A(n,"class","jb-container")},m(t,e){C(t,n,e),j(n,o),B[r].m(o,null),j(o,i),z&&z.m(o,null),j(o,a),j(o,c),j(c,l),Et(u,l,null),j(l,d),j(l,p),j(c,h),Et(f,c,null),j(o,g),j(o,m),j(m,$),Et(b,$,null),j($,_),j($,w),j(m,v),Et(y,m,null),C(t,k,e),T&&T.m(t,e),C(t,x,e),S=!0},p(t,[e]){s.p(t,e),t[2]?z?(z.p(t,e),4&e&&wt(z,1)):(z=Nn(t),z.c(),wt(z,1),z.m(o,a)):z&&(bt(),vt(z,1,1,(()=>{z=null})),_t());const n={};1&e&&(n.prevScore=t[0].noBoost?.mobile),1&e&&(n.score=t[0].current.mobile),128&e&&(n.isLoading=t[7]),8&e&&(n.showPrevScores=t[3]),f.$set(n);const r={};1&e&&(r.prevScore=t[0].noBoost?.desktop),1&e&&(r.score=t[0].current.desktop),128&e&&(r.isLoading=t[7]),8&e&&(r.showPrevScores=t[3]),y.$set(r),128&e&&D(o,"loading",t[7]),t[1]?T?(T.p(t,e),2&e&&wt(T,1)):(T=Rn(t),T.c(),wt(T,1),T.m(x.parentNode,x)):T&&(bt(),vt(T,1,1,(()=>{T=null})),_t())},i(t){S||(wt(s),wt(z),wt(u.$$.fragment,t),wt(f.$$.fragment,t),wt(b.$$.fragment,t),wt(y.$$.fragment,t),wt(T),S=!0)},o(t){vt(s),vt(z),vt(u.$$.fragment,t),vt(f.$$.fragment,t),vt(b.$$.fragment,t),vt(y.$$.fragment,t),vt(T),S=!1},d(t){t&&P(n),B[r].d(),z&&z.d(),Ct(u),Ct(f),Ct(b),Ct(y),t&&P(k),T&&T.d(t),t&&P(x)}}}function Hn(t,e,n){let o,r,s,i,a;const c=Jetpack_Boost.site.online;let l,d,p="",h=0,f=0;const g=Ft(c);u(t,g,(t=>n(7,a=t)));const m=Ft({current:{mobile:0,desktop:0},noBoost:null,isStale:!1});u(t,m,(t=>n(0,o=t))),w(!1);const $=Dt(wn,(t=>!Object.values(t).some((t=>!1===t.synced)))),b=Dt([wn,pn],(([t,e])=>JSON.stringify({modules:t,criticalCss:{created:e.created}})));u(t,b,(t=>n(21,i=t)));let _=i;async function w(t=!1){if(c){g.set(!0),n(2,l=void 0);try{m.set(await Ke(t)),n(4,p=function(t,e){const n=(t+e)/2;return n>90?"A":n>75?"B":n>50?"C":n>35?"D":n>25?"E":"F"}(o.current.mobile,o.current.desktop)),n(3,d=Ze(o)&&!o.isStale),_=i}catch(t){console.log(t),n(2,l=t)}finally{g.set(!1)}}}const v=Dt([pn,$,b,m],(([t,e,n,o])=>!t.generating&&e&&(n!==_||o.isStale)));u(t,v,(t=>n(16,s=t)));const y=function(t,e){let n;return function(...o){clearTimeout(n),n=setTimeout((()=>t.apply(this,o)),e)}}((t=>{s&&w(t)}),2e3),k=Ft(Jetpack_Boost.preferences.showRatingPrompt),j=Dt([m,k,g],(([t,e,n])=>Ze(t)&&e&&!n&&!t.isStale));u(t,j,(t=>n(1,r=t)));return t.$$.update=()=>{65536&t.$$.dirty&&s&&y(!0),3&t.$$.dirty&&r&&(n(5,h=tn(o)),n(6,f=(o.current.mobile+o.current.desktop)/2))},[o,r,l,d,p,h,f,a,c,g,m,b,w,v,k,j,s,()=>w(!0),()=>w(!0),()=>k.set(!1)]}class Fn extends zt{constructor(t){super(),Pt(this,t,Hn,Wn,c,{})}}const{subscribe:Dn,set:Un}=Ft(window.location.hash);function qn(t=""){window.location.hash=t}window.addEventListener("hashchange",(()=>{Un(window.location.hash)}));var Yn={subscribe:Dn};function Xn(t,{delay:e=0,duration:n=400,easing:o=xn}={}){const r=getComputedStyle(t),s=+r.opacity,i=parseFloat(r.height),a=parseFloat(r.paddingTop),c=parseFloat(r.paddingBottom),l=parseFloat(r.marginTop),u=parseFloat(r.marginBottom),d=parseFloat(r.borderTopWidth),p=parseFloat(r.borderBottomWidth);return{delay:e,duration:n,easing:o,css:t=>`overflow: hidden;opacity: ${Math.min(20*t,1)*s};height: ${t*i}px;padding-top: ${t*a}px;padding-bottom: ${t*c}px;margin-top: ${t*l}px;margin-bottom: ${t*u}px;border-top-width: ${t*d}px;border-bottom-width: ${t*p}px;`}}function Gn(t){let n,r,s,i,a=[{xmlns:"http://www.w3.org/2000/svg"},{viewBox:"0 0 24 24"},t[0]],c={};for(let t=0;t<a.length;t+=1)c=o(c,a[t]);return{c(){n=T("svg"),r=T("rect"),s=T("g"),i=T("path"),this.h()},l(t){n=W(t,"svg",{xmlns:!0,viewBox:!0});var e=R(n);r=W(e,"rect",{x:!0,fill:!0,width:!0,height:!0}),R(r).forEach(P),s=W(e,"g",{});var o=R(s);i=W(o,"path",{d:!0}),R(i).forEach(P),o.forEach(P),e.forEach(P),this.h()},h(){A(r,"x","0"),A(r,"fill","none"),A(r,"width","24"),A(r,"height","24"),A(i,"d","M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20v-2z"),N(n,c)},m(t,e){B(t,n,e),E(n,r),E(n,s),E(s,i)},p(t,[e]){N(n,c=xt(a,[{xmlns:"http://www.w3.org/2000/svg"},{viewBox:"0 0 24 24"},1&e&&t[0]]))},i:e,o:e,d(t){t&&P(n)}}}function Kn(t,e,n){return t.$$set=t=>{n(0,e=o(o({},e),m(t)))},[e=m(e)]}class Qn extends zt{constructor(t){super(),Pt(this,t,Kn,Gn,c,{})}}const Zn=["core_front_page","core_posts_page","singular_page","singular_post"],to=Ft(Jetpack_Boost.criticalCssDismissedRecommendations||[]),eo=Dt(pn,(t=>t.providers_errors?Object.entries(t.providers_errors).map((([e,n])=>({key:e,label:t.provider_key_labels[e]||e,errors:co(n)}))):[])),no={subscribe:to.subscribe},oo=Dt([eo,no],(([t,e])=>t.filter((t=>!e.includes(t.key))))),ro=Dt(eo,(t=>{for(const e of Zn){const n=t.find((t=>t.key===e));if(n)return n.errors[0]}})),so=Ft(null);function io(t,e){so.set({title:t,error:e})}async function ao(){await Kt.post("/recommendations/reset",{nonce:Jetpack_Boost.nonces["recommendations/reset"]}),to.set([])}function co(t){return function(t){const e=t.reduce(((t,e)=>(t[e]=(t[e]||0)+1,t)),{});return Object.keys(e).sort(((t,n)=>e[t]>e[n]?1:-1))}(Object.values(t).map(lo)).map((e=>{const n=(o=t,r=t=>lo(t)===e,Object.entries(o).reduce(((t,[e,n])=>(r(n,e)&&(t[e]=n),t)),{}));var o,r;const s=n[Object.keys(n)[0]];return{type:s.type,firstMeta:s.meta,byUrl:n}}))}function lo(t){return"HttpError"===t.type?t.type+"-"+Ut(t.meta.code,""):"UnknownError"===t.type?t.type+"-"+t.message:t.type}function uo(t){let n,r,s,i,a=[{xmlns:"http://www.w3.org/2000/svg"},{viewBox:"0 0 24 24"},t[0]],c={};for(let t=0;t<a.length;t+=1)c=o(c,a[t]);return{c(){n=T("svg"),r=T("rect"),s=T("g"),i=T("path"),this.h()},l(t){n=W(t,"svg",{xmlns:!0,viewBox:!0});var e=R(n);r=W(e,"rect",{x:!0,fill:!0,width:!0,height:!0}),R(r).forEach(P),s=W(e,"g",{});var o=R(s);i=W(o,"path",{d:!0}),R(i).forEach(P),o.forEach(P),e.forEach(P),this.h()},h(){A(r,"x","0"),A(r,"fill","none"),A(r,"width","24"),A(r,"height","24"),A(i,"d","M13 9h-2V7h2v2zm0 2h-2v6h2v-6zm-1-7c-4.41 0-8 3.59-8 8s3.59 8 8 8 8-3.59 8-8-3.59-8-8-8m0-2c5.523 0 10 4.477 10 10s-4.477 10-10 10S2 17.523 2 12 6.477 2 12 2z"),N(n,c)},m(t,e){B(t,n,e),E(n,r),E(n,s),E(s,i)},p(t,[e]){N(n,c=xt(a,[{xmlns:"http://www.w3.org/2000/svg"},{viewBox:"0 0 24 24"},1&e&&t[0]]))},i:e,o:e,d(t){t&&P(n)}}}function po(t,e,n){return t.$$set=t=>{n(0,e=o(o({},e),m(t)))},[e=m(e)]}class ho extends zt{constructor(t){super(),Pt(this,t,po,uo,c,{})}}let fo;function go(t,e,n){!("boost_version"in n)&&"version"in Jetpack_Boost&&(n.boost_version=Jetpack_Boost.version),"undefined"!=typeof jpTracksAJAX&&"function"==typeof jpTracksAJAX.record_ajax_event&&jpTracksAJAX.record_ajax_event(`boost_${t}`,"click",n)}let mo=!1;async function $o(){if(!mo)return bo(!1)}async function bo(e=!0,n=!1){mo=!0;let o=!1;try{e&&(await ao(),un(!0,0));const r=await async function(t,e){return sn((t=>Object.assign(Object.assign({},t),{retried_show_stopper:e}))),ln("post","/critical-css/request-generate",{reset:t})}(e,n);if(!r||"requesting"!==r.status)return;!function(t){for(const e of Jetpack_Boost.shownAdminNoticeIds)if(e.includes(t)){const t=document.getElementById(e);t&&t.remove()}}("critical-css"),un(!0,0),await async function(){return fo||(fo=new Promise(((e,n)=>{const o=Jetpack_Boost.site.assetPath+"/critical-css-gen.js?ver="+Jetpack_Boost.version,r=document.createElement("script");r.src=o,r.addEventListener("error",(()=>n(new Error(t.sprintf(t.__("Failed to load Critical CSS library at %s","jetpack-boost"),o)))));const s=setTimeout((()=>{n(new Error(t.sprintf(t.__("Timeout while loading Critical CSS library at %s","jetpack-boost"),o)))}),6e4);r.addEventListener("load",(()=>{clearTimeout(s),e()})),document.body.appendChild(r)})),fo)}();const s=function(t,e){return(n,o,r,s)=>{const i=100/Math.max(1,o+t),a=r/Math.max(1,s);e((n+t+a)*i)}}(r.success_count||0,(e=>{if(!$n("critical-css"))throw o=!0,new Error(t.__("Operation cancelled","jetpack-boost"));un(!0,e)})),i={"jb-generate-critical-css":r.generation_nonce};un(!0,0),await async function(t,e,n,o,r,s,i){const a=Object.keys(t).length+1;let c=0;const l=Date.now();let u=0,d=0,p=0,h=0;for(const[f,g]of Object.entries(t)){r(++c,a,0,0);try{const[t,l]=await CriticalCSSGenerator.generateCriticalCSS({browserInterface:_o(e,i),urls:g,viewports:n,progressCallback:(t,e)=>{r(c,a,t,e)},filters:{atRules:wo,properties:vo},successRatio:s[f]});if(!1===await dn(f,"success",{data:t,warnings:l.map((t=>t.toString())),passthrough:o}))return;d++,u+=t.length,h=t.length>h?t.length:h}catch(t){if(!t.isSuccessTargetError){await dn(f,"error",{data:{show_stopper:!0,error:t.message},passthrough:o});return void go("critical_css_failure",0,{time:Date.now()-l,provider_key:f,error_message:t.message,error_type:t.type||t.constructor&&t.constructor.name||"unknown"})}{await dn(f,"error",{data:{show_stopper:!1,provider_key:f,urls:t.urlErrors},passthrough:o}),p++;const e=t.urlErrors;for(const[t,n]of Object.entries(e)){const e={url:t,provider_key:f,error_message:n.message,error_type:n.type};"HttpError"===n.type&&(e.error_meta=Xe(n.meta.code)),go("critical_css_url_error",0,e)}}}}if(0===d){go("critical_css_failure",0,{time:Date.now()-l,error_message:"Critical CSS Generation failed for all the provider keys.",error_type:"allProvidersError"})}else{go("critical_css_success",0,{time:Date.now()-l,block_count:d,error_count:p,average_size:u/Math.max(1,d),max_size:h,provider_keys:Object.keys(t).join(",")})}un(!1,0)}(r.pending_provider_keys,i,r.viewports,r.callback_passthrough,s,r.provider_success_ratio,r.proxy_nonce)}catch(t){o||(r=t,sn((t=>Object.assign(Object.assign({},t),{status:"error",status_error:r}))))}finally{un(!1,0)}var r}function _o(t,e){return new class extends CriticalCSSGenerator.BrowserInterfaceIframe{constructor(){super({requestGetParameters:t,verifyPage:yo,allowScripts:!1})}fetch(t,n,o){return"css"!==o||function(t){return new URL(t).origin===window.location.origin}(t)?fetch(t,n):Cn({action:"boost_proxy_css",proxy_url:t,nonce:e})}}}function wo(t){return!t.endsWith("keyframes")}function vo(t,e){const n=function(t){for(const e of["-webkit-","-moz-","-ms-","-o-"])if(t.startsWith(e))return t.substring(e.length);return t}(t);return!n.startsWith("animation")}function yo(t,e,n){return!!n.querySelector('meta[name="jb-generate-critical-css"]')}function ko(t){let e;const n=t[4].default,o=d(n,t,t[3],null);return{c(){o&&o.c()},m(t,n){o&&o.m(t,n),e=!0},p(t,r){o&&o.p&&(!e||8&r)&&f(o,n,t,t[3],e?h(n,t[3],r,null):g(t[3]),null)},i(t){e||(wt(o,t),e=!0)},o(t){vt(o,t),e=!1},d(t){o&&o.d(t)}}}function jo(t){let e,n,o,r,s,i,a,c=(t[0]?t[2]:t[1])+"",l=t[0]&&ko(t);return{c(){e=L("button"),n=O(c),o=M(),l&&l.c(),r=V(),A(e,"class","components-button is-link foldable-element-control"),D(e,"visible",t[0])},m(c,u){C(c,e,u),j(e,n),C(c,o,u),l&&l.m(c,u),C(c,r,u),s=!0,i||(a=I(e,"click",t[5]),i=!0)},p(t,[o]){(!s||7&o)&&c!==(c=(t[0]?t[2]:t[1])+"")&&H(n,c),1&o&&D(e,"visible",t[0]),t[0]?l?(l.p(t,o),1&o&&wt(l,1)):(l=ko(t),l.c(),wt(l,1),l.m(r.parentNode,r)):l&&(bt(),vt(l,1,1,(()=>{l=null})),_t())},i(t){s||(wt(l),s=!0)},o(t){vt(l),s=!1},d(t){t&&P(e),t&&P(o),l&&l.d(t),t&&P(r),i=!1,a()}}}function xo(t,e,n){let{$$slots:o={},$$scope:r}=e,{showLabel:s}=e,{hideLabel:i}=e,{visible:a=!1}=e;return t.$$set=t=>{"showLabel"in t&&n(1,s=t.showLabel),"hideLabel"in t&&n(2,i=t.hideLabel),"visible"in t&&n(0,a=t.visible),"$$scope"in t&&n(3,r=t.$$scope)},[a,s,i,r,o,()=>n(0,a=!a)]}wn.subscribe((t=>{t["critical-css"]&&t["critical-css"].enabled||(mo=!1)}));class So extends zt{constructor(t){super(),Pt(this,t,xo,jo,c,{showLabel:1,hideLabel:2,visible:0})}}function Eo(t,e,n){const o=t.slice();return o[6]=e[n],o}const Co=t=>({entry:7&t}),Bo=t=>({entry:t[6]});function Po(t){let e,n,o;const r=t[5].default,s=d(r,t,t[4],Bo);return{c(){e=L("li"),s&&s.c()},m(t,n){C(t,e,n),s&&s.m(e,null),o=!0},p(t,e){s&&s.p&&(!o||23&e)&&f(s,r,t,t[4],o?h(r,t[4],e,Co):g(t[4]),Bo)},i(t){o||(wt(s,t),t&<((()=>{n||(n=kt(e,Xn,{},!0)),n.run(1)})),o=!0)},o(t){vt(s,t),t&&(n||(n=kt(e,Xn,{},!1)),n.run(0)),o=!1},d(t){t&&P(e),s&&s.d(t),t&&n&&n.end()}}}function zo(e){let n,o,r,s,i,a,c,l=t.sprintf(t.__("…and %d more","jetpack-boost"),e[0].length-e[1])+"";return{c(){n=L("a"),o=O(l),A(n,"href",r="#")},m(t,r){C(t,n,r),j(n,o),i=!0,a||(c=I(n,"click",J(e[3])),a=!0)},p(e,n){(!i||3&n)&&l!==(l=t.sprintf(t.__("…and %d more","jetpack-boost"),e[0].length-e[1])+"")&&H(o,l)},i(t){i||(t&<((()=>{s||(s=kt(n,Xn,{},!0)),s.run(1)})),i=!0)},o(t){t&&(s||(s=kt(n,Xn,{},!1)),s.run(0)),i=!1},d(t){t&&P(n),t&&s&&s.end(),a=!1,c()}}}function Lo(t){let e,n,o,r=t[2]?t[0]:t[0].slice(0,t[1]),s=[];for(let e=0;e<r.length;e+=1)s[e]=Po(Eo(t,r,e));const i=t=>vt(s[t],1,1,(()=>{s[t]=null}));let a=!t[2]&&t[0].length>t[1]&&zo(t);return{c(){e=L("ul");for(let t=0;t<s.length;t+=1)s[t].c();n=M(),a&&a.c()},m(t,r){C(t,e,r);for(let t=0;t<s.length;t+=1)s[t].m(e,null);j(e,n),a&&a.m(e,null),o=!0},p(t,[o]){if(23&o){let a;for(r=t[2]?t[0]:t[0].slice(0,t[1]),a=0;a<r.length;a+=1){const i=Eo(t,r,a);s[a]?(s[a].p(i,o),wt(s[a],1)):(s[a]=Po(i),s[a].c(),wt(s[a],1),s[a].m(e,n))}for(bt(),a=r.length;a<s.length;a+=1)i(a);_t()}!t[2]&&t[0].length>t[1]?a?(a.p(t,o),7&o&&wt(a,1)):(a=zo(t),a.c(),wt(a,1),a.m(e,null)):a&&(bt(),vt(a,1,1,(()=>{a=null})),_t())},i(t){if(!o){for(let t=0;t<r.length;t+=1)wt(s[t]);wt(a),o=!0}},o(t){s=s.filter(Boolean);for(let t=0;t<s.length;t+=1)vt(s[t]);vt(a),o=!1},d(t){t&&P(e),z(s,t),a&&a.d()}}}function To(t,e,n){let{$$slots:o={},$$scope:r}=e,{entries:s=[]}=e,{showLimit:i=2}=e,a=!1;return t.$$set=t=>{"entries"in t&&n(0,s=t.entries),"showLimit"in t&&n(1,i=t.showLimit),"$$scope"in t&&n(4,r=t.$$scope)},[s,i,a,function(){n(2,a=!a)},r,o]}class Oo extends zt{constructor(t){super(),Pt(this,t,To,Lo,c,{entries:0,showLimit:1})}}function Mo(n){let o,r,s,i,a,c,l,u,d,p,h,f,g,m,$,b;return{c(){o=L("div"),r=L("div"),s=L("div"),s.textContent=`${t.__("Protocol","jetpack-boost")}`,i=M(),a=L("div"),c=M(),l=O(n[0]),u=M(),d=L("div"),d.textContent="://",p=M(),h=L("div"),f=L("div"),f.textContent=`${t.__("Host name","jetpack-boost")}`,g=M(),m=L("div"),$=M(),b=O(n[1]),A(s,"class","label"),A(a,"class","arrows"),A(r,"class","segment"),A(d,"class","segment"),A(f,"class","label"),A(m,"class","arrows"),A(h,"class","segment"),A(o,"class","url-container")},m(t,e){C(t,o,e),j(o,r),j(r,s),j(r,i),j(r,a),j(r,c),j(r,l),j(o,u),j(o,d),j(o,p),j(o,h),j(h,f),j(h,g),j(h,m),j(h,$),j(h,b)},p:e,i:e,o:e,d(t){t&&P(o)}}}function Vo(t){return[window.location.protocol.split(":")[0],window.location.hostname]}class Io extends zt{constructor(t){super(),Pt(this,t,Vo,Mo,c,{})}}function Jo(t){return Fo(t.type).describeSet(t)}function Ao(t){const e=Fo(t.type);return e.suggestion?e.suggestion(t):{paragraph:""}}function No(t){const e=Fo(t.type);return e.footerComponent?e.footerComponent():null}function Ro(t){const e=Fo(t.type);return e.rawError?e.rawError(t):""}function Wo(t){return Object.keys(t.byUrl).length}const Ho={HttpError:{describeSet:e=>t.sprintf(t._n("Boost received HTTP error <b>%d</b> on the following page:","Boost received HTTP error <b>%d</b> on the following pages:",Wo(e),"jetpack-boost"),e.firstMeta.code),suggestion:e=>function(e,n){switch(e){case 401:case 403:return{paragraph:t.sprintf(t._n("%d means there is a permission issue in your WordPress site. Please follow these troubleshooting steps for the page:","%d means there is a permission issue in your WordPress site. Please follow these troubleshooting steps for each of the pages:",n,"jetpack-boost"),e),list:[t.__("Check your WordPress settings, or contact your hosting provider to ask why the above URL is unavailable.","jetpack-boost"),t.__("<retry>Try again</retry> to generate the Critical CSS.","jetpack-boost")],closingParagraph:t.__("If this is a private page and not supposed to be viewed publicly, you can safely ignore this message.","jetpack-boost")};case 404:return{paragraph:t._n("Your WordPress site has reported that the above page does not exist. Please ensure that the URL is correct, and <retry>try again</retry>.","Your WordPress site has reported that the above pages do not exist. Please ensure that the URLs are correct, and <retry>try again</retry>.",n,"jetpack-boost"),list:[t.__("Visit the link, and confirm that the page you landed on loads successfully.","jetpack-boost"),t.__("If the page shows an error, please verify that the page should be a part of your WordPress site.","jetpack-boost"),t.__('Try visiting the link using "Incognito Mode" or "Private Browsing" in your browser to check if the error occurs when you are not logged in.',"jetpack-boost"),t.__('If you see an error only when not logged into your WordPress site (i.e.: in "Incognito Mode"), then check for plugins which might be enforcing access permissions on your pages. For example, a plugin which only allows authenticated users to view specific areas of your site.',"jetpack-boost")],closingParagraph:t.__("If the page is only accessible to users who are logged in to your WordPress site, or should not be a part of your site then it is safe to ignore this error.","jetpack-boost")};case 418:return{paragraph:t.__("Your WordPress site returned a 418 error which many web hosts use to indicate they rejected your request due to security rules. Please contact your hosting provider for more information.","jetpack-boost"),list:[t.__('Contact your hosting provider, with details of this issue. Please let them know it is an "HTTP 418" error, which URL(s) are affected, and the time it occurred.',"jetpack-boost"),t.__("Your hosting provider should be able to advise you on next steps.","jetpack-boost"),t.__("If you manage to sort the issue out with your hosting provider, please <retry>try again</retry> to regenerate your Critical CSS.","jetpack-boost")]};case 500:return{paragraph:t._n("Your WordPress site encountered an error while trying to load the above page.","Your WordPress site encountered errors while trying to load the above pages.",n,"jetpack-boost"),list:[t.__('Learn about the error and common solutions by <a target="_blank" href="https://wordpress.org/support/article/common-wordpress-errors/#internal-server-error">clicking here</a>.',"jetpack-boost"),t.__("If the issue is still not resolved, check your server logs or contact your hosting provider for help to investigate the issue.","jetpack-boost"),t.__("Once you have resolved the issue which caused the 500 error, you can <retry>try again</retry>.","jetpack-boost")]};default:return{paragraph:t._n("Please verify the link is valid and <retry>try again</retry>. We recommend the following:","Please verify each link is valid and <retry>try again</retry>. For each link, we recommend the following:",n,"jetpack-boost"),list:[t.__("Visit the link and check for an error.","jetpack-boost"),t.__("<retry>Try to generate Critical CSS again<retry>, in case the error was intermittent.","jetpack-boost"),t.sprintf(t.__("Check your server logs for information about the HTTP %d error, or contact your hosting provider for help with investigating the problem.","jetpack-boost"),e),t.__("Once you have resolved the error, please <retry>try again</retry>.","jetpack-boost"),t.__("If you need help understanding the error, or investigating what went wrong please contact <support>Jetpack Boost Support</support>.","jetpack-boost")]}}}(Xe(e.firstMeta.code),Wo(e))},RedirectError:{describeSet:e=>t._n("This URL is redirecting to a different page:","These URLs are redirecting to different pages:",Wo(e),"jetpack-boost"),suggestion:e=>({paragraph:t.__("This may indicate that a WordPress plugin is redirecting users who are not logged in to a different location, or it may indicate that your hosting provider is redirecting your WordPress site to a different URL.","jetpack-boost"),list:[t.__('Try visiting the link using "Incognito Mode" or "Private Browsing" in your browser and note if the page is being redirected.',"jetpack-boost"),t.__("If it is redirecting, check if a plugin could potentially create the redirection and fix it if appropriate. Otherwise, contact your hosting provider for assistance to fix the URL redirection.","jetpack-boost"),t.__("If you believe the issue is resolved, please <retry>try again</retry>.","jetpack-boost")],closingParagraph:t.__("If you think that the redirection is valid, then it is safe to ignore this issue.","jetpack-boost")})},CrossDomainError:{describeSet:e=>t._n("It looks like this URL doesn't match:","It looks like these URLs don't match:",Wo(e),"jetpack-boost"),suggestion:e=>({paragraph:t._n("Visit the page and complete the following troubleshooting steps.","Visit each page and complete the following troubleshooting steps.",Wo(e),"jetpack-boost"),list:[t.__('Visit the page and look at the protocol and host name to ensure it matches the one in your <a target="_blank" href="https://wordpress.org/support/article/administration-screens/">WordPress Administration Screen</a>.',"jetpack-boost"),t.__("If not, then please reach out to your hosting provider and ask why.","jetpack-boost"),t.__("If you believe the issue is resolved, please <retry>try again</retry>.","jetpack-boost")]}),footerComponent:()=>Io},LoadTimeoutError:{describeSet:e=>t._n("This page timed out:","These pages timed out:",Wo(e),"jetpack-boost"),suggestion:e=>({paragraph:t._n("The page timed out during load. There could be various reasons but most likely a plugin is causing this issue. Please complete the following steps.","The pages timed out during load. There could be various reasons but most likely a plugin is causing this issue. Please complete the following steps for each of the pages.",Wo(e),"jetpack-boost"),list:[t.__("Clear the cache in your browser.","jetpack-boost"),t.__("Visit the page while not logged into WordPress.","jetpack-boost"),t.__("See how long it takes to load compared to other pages on your site.","jetpack-boost"),t.__("If this page is slower than the others, check what plugins are working on that page.","jetpack-boost"),t.__("Deactivate any plugin that you believe are making the page slow.","jetpack-boost"),t.__("<retry>Try again</retry> to generate the Critical CSS.","jetpack-boost")]})},UrlVerifyError:{describeSet:e=>t._n("Jetpack Boost couldn't verify this page:","Jetpack Boost couldn't verify these pages:",Wo(e),"jetpack-boost"),suggestion:e=>({paragraph:t._n("Please follow the troubleshooting steps below for the page.","Please follow the troubleshooting steps below for each of the pages.",Wo(e),"jetpack-boost"),list:[t.__("Visit the page.","jetpack-boost"),t.__("Verify that the content displayed is a part of your WordPress site, and not an external page managed by a different system.","jetpack-boost"),t.__("<retry>Try again</retry> to generate the Critical CSS.","jetpack-boost")]})},EmptyCSSError:{describeSet:e=>t._n("It looks like this page does not contain any relevant CSS in its external style sheet(s):","It looks like these pages do not contain any relevant CSS in their external style sheet(s):",Wo(e),"jetpack-boost"),suggestion:e=>({paragraph:t._n("Please follow the troubleshooting steps below for the page.","Please follow the troubleshooting steps below for each of the pages.",Wo(e),"jetpack-boost"),list:[t.__("Visit the page.","jetpack-boost"),t.__("Verify its styles load correctly, and <retry>try again</retry>.","jetpack-boost")],closingParagraph:t.__("If you are using a plugin which embeds your CSS styles directly into your pages, or your site does not use external CSS style sheets, then it is safe to ignore this issue as Critical CSS can only speed up pages which use external styles.","jetpack-boost")})},UnknownError:{describeSet:e=>t._n("Something went wrong, which Jetpack Boost did not anticipate. An unexpected error occurred while trying to generate Critical CSS for the following page:","Something went wrong, which Jetpack Boost did not anticipate. An unexpected error occurred while trying to generate Critical CSS for the following pages:",Wo(e),"jetpack-boost"),rawError:t=>Object.values(t.byUrl)[0].message,suggestion:e=>({paragraph:t._n("Please follow the troubleshooting steps below for the page.","Please follow the troubleshooting steps below for each of the pages.",Wo(e),"jetpack-boost"),list:[t.__("Visit the page.","jetpack-boost"),t.__("Verify that the page loads correctly.","jetpack-boost"),t.__("If it does, <retry>try again</retry> to generate the Critical CSS.","jetpack-boost"),t.__("If the error still persist please contact <support>Jetpack Boost Support</support> with a copy of your error message.","jetpack-boost")]})},XFrameDenyError:{describeSet:e=>t._n("Jetpack Boost couldn't load the following page due to its X-Frame-Options configuration:","Jetpack Boost couldn't load the following page due to their X-Frame-Options configuration:",Wo(e),"jetpack-boost"),rawError:t=>Object.values(t.byUrl)[0].message,suggestion:e=>({paragraph:t.__('Jetpack Boost uses iframes while generating your Critical CSS. Unfortunately, your site has a special configuration header which prevents it from loading inside an iframe. The header is called "X-Frame-Options: DENY". This can be added to a WordPress site either by using a plugin, or by server configuration.',"jetpack-boost"),list:[t.__("Check that you are not using any plugins which add extra HTTP headers to your WordPress site, and deactivate them if you are.","jetpack-boost"),t.__('If you are unsure of what these headers are, or where they come from please contact your hosting provider and ask them to remove the "X-Frame-Options" header from your site',"jetpack-boost"),t.__("<retry>Try again</retry> to generate the Critical CSS.","jetpack-boost")]})}};function Fo(t){return Ho[t]||Ho.UnknownError}function Do(t,e,n){const o=t.slice();return o[2]=e[n],o[4]=n,o}function Uo(t){let e,n,o,r,s,i,a,c,l=t[4]+1+"";return i=new Nt({props:{template:t[2],vars:t[1]}}),{c(){e=L("li"),n=L("span"),o=O(l),r=M(),s=L("span"),St(i.$$.fragment),a=M(),A(n,"class","index"),A(s,"class","text")},m(t,l){C(t,e,l),j(e,n),j(n,o),j(e,r),j(e,s),Et(i,s,null),j(e,a),c=!0},p(t,e){const n={};1&e&&(n.template=t[2]),2&e&&(n.vars=t[1]),i.$set(n)},i(t){c||(wt(i.$$.fragment,t),c=!0)},o(t){vt(i.$$.fragment,t),c=!1},d(t){t&&P(e),Ct(i)}}}function qo(t){let e,n,o=t[0],r=[];for(let e=0;e<o.length;e+=1)r[e]=Uo(Do(t,o,e));const s=t=>vt(r[t],1,1,(()=>{r[t]=null}));return{c(){e=L("ol");for(let t=0;t<r.length;t+=1)r[t].c();A(e,"class","numbered-list")},m(t,o){C(t,e,o);for(let t=0;t<r.length;t+=1)r[t].m(e,null);n=!0},p(t,[n]){if(3&n){let i;for(o=t[0],i=0;i<o.length;i+=1){const s=Do(t,o,i);r[i]?(r[i].p(s,n),wt(r[i],1)):(r[i]=Uo(s),r[i].c(),wt(r[i],1),r[i].m(e,null))}for(bt(),i=o.length;i<r.length;i+=1)s(i);_t()}},i(t){if(!n){for(let t=0;t<o.length;t+=1)wt(r[t]);n=!0}},o(t){r=r.filter(Boolean);for(let t=0;t<r.length;t+=1)vt(r[t]);n=!1},d(t){t&&P(e),z(r,t)}}}function Yo(t,e,n){let{items:o}=e,{vars:r}=e;return t.$$set=t=>{"items"in t&&n(0,o=t.items),"vars"in t&&n(1,r=t.vars)},[o,r]}class Xo extends zt{constructor(t){super(),Pt(this,t,Yo,qo,c,{items:0,vars:1})}}function Go(t){let e,n,o,r=t[7].label+"";return{c(){e=L("a"),n=O(r),A(e,"href",o=t[7].href),A(e,"target","_blank")},m(t,o){C(t,e,o),j(e,n)},p(t,s){128&s&&r!==(r=t[7].label+"")&&H(n,r),128&s&&o!==(o=t[7].href)&&A(e,"href",o)},d(t){t&&P(e)}}}function Ko(e){let n,o,r,s,i,a,c,l,u,d,p=Ao(e[3]).list,h=e[2]&&Ao(e[3]).closingParagraph;s=new Nt({props:{template:Ao(e[3]).paragraph,vars:e[5]}});let f=p&&Qo(e),g=h&&Zo(e);var m=No(e[3]);return m&&(l=new m({})),{c(){n=L("h5"),n.textContent=`${t.__("What to do","jetpack-boost")}`,o=M(),r=L("p"),St(s.$$.fragment),i=M(),f&&f.c(),a=M(),g&&g.c(),c=M(),l&&St(l.$$.fragment),u=V(),A(r,"class","suggestion")},m(t,e){C(t,n,e),C(t,o,e),C(t,r,e),Et(s,r,null),j(r,i),f&&f.m(r,null),C(t,a,e),g&&g.m(t,e),C(t,c,e),l&&Et(l,t,e),C(t,u,e),d=!0},p(t,e){const n={};if(8&e&&(n.template=Ao(t[3]).paragraph),s.$set(n),8&e&&(p=Ao(t[3]).list),p?f?(f.p(t,e),8&e&&wt(f,1)):(f=Qo(t),f.c(),wt(f,1),f.m(r,null)):f&&(bt(),vt(f,1,1,(()=>{f=null})),_t()),12&e&&(h=t[2]&&Ao(t[3]).closingParagraph),h?g?(g.p(t,e),12&e&&wt(g,1)):(g=Zo(t),g.c(),wt(g,1),g.m(c.parentNode,c)):g&&(bt(),vt(g,1,1,(()=>{g=null})),_t()),m!==(m=No(t[3]))){if(l){bt();const t=l;vt(t.$$.fragment,1,0,(()=>{Ct(t,1)})),_t()}m?(l=new m({}),St(l.$$.fragment),wt(l.$$.fragment,1),Et(l,u.parentNode,u)):l=null}},i(t){d||(wt(s.$$.fragment,t),wt(f),wt(g),l&&wt(l.$$.fragment,t),d=!0)},o(t){vt(s.$$.fragment,t),vt(f),vt(g),l&&vt(l.$$.fragment,t),d=!1},d(t){t&&P(n),t&&P(o),t&&P(r),Ct(s),f&&f.d(),t&&P(a),g&&g.d(t),t&&P(c),t&&P(u),l&&Ct(l,t)}}}function Qo(t){let e,n;return e=new Xo({props:{items:Ao(t[3]).list,vars:t[5]}}),{c(){St(e.$$.fragment)},m(t,o){Et(e,t,o),n=!0},p(t,n){const o={};8&n&&(o.items=Ao(t[3]).list),e.$set(o)},i(t){n||(wt(e.$$.fragment,t),n=!0)},o(t){vt(e.$$.fragment,t),n=!1},d(t){Ct(e,t)}}}function Zo(t){let e,n,o;return n=new Nt({props:{template:Ao(t[3]).closingParagraph,vars:t[5]}}),{c(){e=L("p"),St(n.$$.fragment),A(e,"class","suggestion-closing")},m(t,r){C(t,e,r),Et(n,e,null),o=!0},p(t,e){const o={};8&e&&(o.template=Ao(t[3]).closingParagraph),n.$set(o)},i(t){o||(wt(n.$$.fragment,t),o=!0)},o(t){vt(n.$$.fragment,t),o=!1},d(t){t&&P(e),Ct(n)}}}function tr(t){let e,n,o,r;const s=[nr,er],i=[];function a(t,e){return t[1]?0:1}return e=a(t),n=i[e]=s[e](t),{c(){n.c(),o=V()},m(t,n){i[e].m(t,n),C(t,o,n),r=!0},p(t,r){let c=e;e=a(t),e===c?i[e].p(t,r):(bt(),vt(i[c],1,1,(()=>{i[c]=null})),_t(),n=i[e],n?n.p(t,r):(n=i[e]=s[e](t),n.c()),wt(n,1),n.m(o.parentNode,o))},i(t){r||(wt(n),r=!0)},o(t){vt(n),r=!1},d(t){i[e].d(t),t&&P(o)}}}function er(t){let e,n,o,r,s=Ro(t[3])+"";return{c(){e=L("p"),n=O(s),A(e,"class","raw-error")},m(t,o){C(t,e,o),j(e,n),r=!0},p(t,e){(!r||8&e)&&s!==(s=Ro(t[3])+"")&&H(n,s)},i(t){r||(t&<((()=>{o||(o=kt(e,Xn,{},!0)),o.run(1)})),r=!0)},o(t){t&&(o||(o=kt(e,Xn,{},!1)),o.run(0)),r=!1},d(t){t&&P(e),t&&o&&o.end()}}}function nr(e){let n,o;return n=new So({props:{showLabel:t.__("See error message","jetpack-boost"),hideLabel:t.__("Hide error message","jetpack-boost"),$$slots:{default:[or]},$$scope:{ctx:e}}}),{c(){St(n.$$.fragment)},m(t,e){Et(n,t,e),o=!0},p(t,e){const o={};264&e&&(o.$$scope={dirty:e,ctx:t}),n.$set(o)},i(t){o||(wt(n.$$.fragment,t),o=!0)},o(t){vt(n.$$.fragment,t),o=!1},d(t){Ct(n,t)}}}function or(t){let e,n,o,r,s=Ro(t[3])+"";return{c(){e=L("p"),n=O(s),A(e,"class","raw-error")},m(t,o){C(t,e,o),j(e,n),r=!0},p(t,e){(!r||8&e)&&s!==(s=Ro(t[3])+"")&&H(n,s)},i(t){r||(t&<((()=>{o||(o=kt(e,Xn,{},!0)),o.run(1)})),r=!0)},o(t){t&&(o||(o=kt(e,Xn,{},!1)),o.run(0)),r=!1},d(t){t&&P(e),t&&o&&o.end()}}}function rr(t){let e,n,o,r,s,i,a,c,l=Ro(t[3]);o=new Nt({props:{template:Jo(t[3]),vars:{templateVars:t[5]}}}),s=new Oo({props:{entries:t[4],$$slots:{default:[Go,({entry:t})=>({7:t}),({entry:t})=>t?128:0]},$$scope:{ctx:t}}});let u=t[0]&&Ko(t),d=l&&tr(t);return{c(){e=L("div"),n=L("span"),St(o.$$.fragment),r=M(),St(s.$$.fragment),i=M(),u&&u.c(),a=M(),d&&d.c(),A(n,"class","error-description"),A(e,"class","jb-critical-css__error-description")},m(t,l){C(t,e,l),j(e,n),Et(o,n,null),j(e,r),Et(s,e,null),j(e,i),u&&u.m(e,null),j(e,a),d&&d.m(e,null),c=!0},p(t,[n]){const r={};8&n&&(r.template=Jo(t[3])),o.$set(r);const i={};16&n&&(i.entries=t[4]),384&n&&(i.$$scope={dirty:n,ctx:t}),s.$set(i),t[0]?u?(u.p(t,n),1&n&&wt(u,1)):(u=Ko(t),u.c(),wt(u,1),u.m(e,a)):u&&(bt(),vt(u,1,1,(()=>{u=null})),_t()),8&n&&(l=Ro(t[3])),l?d?(d.p(t,n),8&n&&wt(d,1)):(d=tr(t),d.c(),wt(d,1),d.m(e,null)):d&&(bt(),vt(d,1,1,(()=>{d=null})),_t())},i(t){c||(wt(o.$$.fragment,t),wt(s.$$.fragment,t),wt(u),wt(d),c=!0)},o(t){vt(o.$$.fragment,t),vt(s.$$.fragment,t),vt(u),vt(d),c=!1},d(t){t&&P(e),Ct(o),Ct(s),u&&u.d(),d&&d.d()}}}function sr(t,e,n){const o=et();let{showSuggestion:r=!0}=e,{foldRawErrors:s=!0}=e,{showClosingParagraph:i=!0}=e,{errorSet:a}=e,c=[];const l={...oe((()=>o("retry")),"retry"),...se()};return t.$$set=t=>{"showSuggestion"in t&&n(0,r=t.showSuggestion),"foldRawErrors"in t&&n(1,s=t.foldRawErrors),"showClosingParagraph"in t&&n(2,i=t.showClosingParagraph),"errorSet"in t&&n(3,a=t.errorSet)},t.$$.update=()=>{8&t.$$.dirty&&n(4,c=Object.entries(a.byUrl).map((([t,e])=>({href:e.meta.url?e.meta.url:t,label:t}))))},[r,s,i,a,c,l]}class ir extends zt{constructor(t){super(),Pt(this,t,sr,rr,c,{showSuggestion:0,foldRawErrors:1,showClosingParagraph:2,errorSet:3})}}function ar(t,e,n){const o=t.slice();return o[10]=e[n],o}function cr(t,e,n){const o=t.slice();return o[13]=e[n],o}function lr(e){let n,o,r,s,i,a=t.sprintf(t._n("Show %d hidden recommendation.","Show %d hidden recommendations.",e[2].length,"jetpack-boost"),e[2].length)+"";return{c(){n=L("p"),o=L("button"),r=O(a),A(o,"class","components-button is-link")},m(t,a){C(t,n,a),j(n,o),j(o,r),s||(i=I(o,"click",e[6]),s=!0)},p(e,n){4&n&&a!==(a=t.sprintf(t._n("Show %d hidden recommendation.","Show %d hidden recommendations.",e[2].length,"jetpack-boost"),e[2].length)+"")&&H(r,a)},d(t){t&&P(n),s=!1,i()}}}function ur(t){let e,n,o,r,s,i,a=t[2].length>0&&lr(t);return{c(){e=L("section"),n=L("p"),o=O(t[1]),r=M(),a&&a.c()},m(t,s){C(t,e,s),j(e,n),j(n,o),j(e,r),a&&a.m(e,null),i=!0},p(t,n){(!i||2&n)&&H(o,t[1]),t[2].length>0?a?a.p(t,n):(a=lr(t),a.c(),a.m(e,null)):a&&(a.d(1),a=null)},i(t){i||(t&<((()=>{s||(s=kt(e,Xn,{},!0)),s.run(1)})),i=!0)},o(t){t&&(s||(s=kt(e,Xn,{},!1)),s.run(0)),i=!1},d(t){t&&P(e),a&&a.d(),t&&s&&s.end()}}}function dr(t){let e,n;return e=new ge({props:{title:t[3].title,error:t[3].error}}),{c(){St(e.$$.fragment)},m(t,o){Et(e,t,o),n=!0},p(t,n){const o={};8&n&&(o.title=t[3].title),8&n&&(o.error=t[3].error),e.$set(o)},i(t){n||(wt(e.$$.fragment,t),n=!0)},o(t){vt(e.$$.fragment,t),n=!1},d(t){Ct(e,t)}}}function pr(t){let e,n,o;return n=new ir({props:{errorSet:t[13]}}),n.$on("retry",t[4]),{c(){e=L("div"),St(n.$$.fragment),A(e,"class","problem")},m(t,r){C(t,e,r),Et(n,e,null),o=!0},p(t,e){const o={};1&e&&(o.errorSet=t[13]),n.$set(o)},i(t){o||(wt(n.$$.fragment,t),o=!0)},o(t){vt(n.$$.fragment,t),o=!1},d(t){t&&P(e),Ct(n)}}}function hr(t,e){let n,o,r,s,i,a,c,l,u,d,p,h=e[10].label+"";o=new kn({}),o.$on("click",(function(){return e[9](e[10])})),i=new ho({});let f=[e[10].errors[0]],g=[];for(let t=0;t<1;t+=1)g[t]=pr(cr(e,f,t));const m=t=>vt(g[t],1,1,(()=>{g[t]=null}));return{key:t,first:null,c(){n=L("div"),St(o.$$.fragment),r=M(),s=L("h4"),St(i.$$.fragment),a=M(),c=O(h),l=M();for(let t=0;t<1;t+=1)g[t].c();u=M(),A(n,"class","panel"),this.first=n},m(t,e){C(t,n,e),Et(o,n,null),j(n,r),j(n,s),Et(i,s,null),j(s,a),j(s,c),j(n,l);for(let t=0;t<1;t+=1)g[t].m(n,null);j(n,u),p=!0},p(t,o){if(e=t,(!p||1&o)&&h!==(h=e[10].label+"")&&H(c,h),17&o){let t;for(f=[e[10].errors[0]],t=0;t<1;t+=1){const r=cr(e,f,t);g[t]?(g[t].p(r,o),wt(g[t],1)):(g[t]=pr(r),g[t].c(),wt(g[t],1),g[t].m(n,u))}for(bt(),t=1;t<1;t+=1)m(t);_t()}},i(t){if(!p){wt(o.$$.fragment,t),wt(i.$$.fragment,t);for(let t=0;t<1;t+=1)wt(g[t]);t&<((()=>{d||(d=kt(n,Xn,{},!0)),d.run(1)})),p=!0}},o(t){vt(o.$$.fragment,t),vt(i.$$.fragment,t),g=g.filter(Boolean);for(let t=0;t<1;t+=1)vt(g[t]);t&&(d||(d=kt(n,Xn,{},!1)),d.run(0)),p=!1},d(t){t&&P(n),Ct(o),Ct(i),z(g,t),t&&d&&d.end()}}}function fr(n){let o,r,s,i,a,l,u,d,p,h,f,g,m,$=t.__("Go back","jetpack-boost")+"",b=n[1],_=[],w=new Map;s=new Qn({});let v=ur(n),y=n[3]&&dr(n),k=n[0];const x=t=>t[10].key;for(let t=0;t<k.length;t+=1){let e=ar(n,k,t),o=x(e);w.set(o,_[t]=hr(o,e))}return{c(){o=L("div"),r=L("button"),St(s.$$.fragment),i=M(),a=O($),l=M(),u=L("h3"),u.textContent=`${t.__("Critical CSS advanced recommendations","jetpack-boost")}`,d=M(),v.c(),p=M(),y&&y.c(),h=M();for(let t=0;t<_.length;t+=1)_[t].c();A(r,"class","components-button is-link close"),A(o,"class","jb-container--narrow jb-critical-css__advanced")},m(t,e){C(t,o,e),j(o,r),Et(s,r,null),j(r,i),j(r,a),j(o,l),j(o,u),j(o,d),v.m(o,null),j(o,p),y&&y.m(o,null),j(o,h);for(let t=0;t<_.length;t+=1)_[t].m(o,null);f=!0,g||(m=I(r,"click",n[8]),g=!0)},p(t,[n]){2&n&&c(b,b=t[1])?(bt(),vt(v,1,1,e),_t(),v=ur(t),v.c(),wt(v),v.m(o,p)):v.p(t,n),t[3]?y?(y.p(t,n),8&n&&wt(y,1)):(y=dr(t),y.c(),wt(y,1),y.m(o,h)):y&&(bt(),vt(y,1,1,(()=>{y=null})),_t()),49&n&&(k=t[0],bt(),_=function(t,e,n,o,r,s,i,a,c,l,u,d){let p=t.length,h=s.length,f=p;const g={};for(;f--;)g[t[f].key]=f;const m=[],$=new Map,b=new Map;for(f=h;f--;){const t=d(r,s,f),a=n(t);let c=i.get(a);c?o&&c.p(t,e):(c=l(a,t),c.c()),$.set(a,m[f]=c),a in g&&b.set(a,Math.abs(f-g[a]))}const _=new Set,w=new Set;function v(t){wt(t,1),t.m(a,u),i.set(t.key,t),u=t.first,h--}for(;p&&h;){const e=m[h-1],n=t[p-1],o=e.key,r=n.key;e===n?(u=e.first,p--,h--):$.has(r)?!i.has(o)||_.has(o)?v(e):w.has(r)?p--:b.get(o)>b.get(r)?(w.add(o),v(e)):(_.add(r),p--):(c(n,i),p--)}for(;p--;){const e=t[p];$.has(e.key)||c(e,i)}for(;h;)v(m[h-1]);return m}(_,n,x,1,t,k,w,o,jt,hr,null,ar),_t())},i(t){if(!f){wt(s.$$.fragment,t),wt(v),wt(y);for(let t=0;t<k.length;t+=1)wt(_[t]);f=!0}},o(t){vt(s.$$.fragment,t),vt(v),vt(y);for(let t=0;t<_.length;t+=1)vt(_[t]);f=!1},d(t){t&&P(o),Ct(s),v.d(t),y&&y.d();for(let t=0;t<_.length;t+=1)_[t].d();g=!1,m()}}}function gr(e,n,o){let r,s,i,a,c;async function l(e){try{await async function(t){await Kt.post("/recommendations/dismiss",{providerKey:t,nonce:Jetpack_Boost.nonces["recommendations/dismiss"]}),to.update((e=>[...e,t]))}(e)}catch(e){io(t.__("Failed to dismiss recommendation","jetpack-boost"),e)}}u(e,cn,(t=>o(7,r=t))),u(e,oo,(t=>o(0,s=t))),u(e,no,(t=>o(2,i=t))),u(e,so,(t=>o(3,a=t)));return e.$$.update=()=>{1&e.$$.dirty&&o(1,c=0===s.length?t.__("Congratulations, you have dealt with all the recommendations.","jetpack-boost"):t.__("While Jetpack Boost has been able to automatically generate optimized CSS for most of your important files & sections, we have identified a few more that require your attention.","jetpack-boost")),128&e.$$.dirty&&(r||qn())},[s,c,i,a,function(){bo(),qn()},l,async function(){try{await ao()}catch(e){io(t.__("Failed to show the dismissed recommendations","jetpack-boost"),e)}},r,()=>qn(),t=>l(t.key)]}class mr extends zt{constructor(t){super(),Pt(this,t,gr,fr,c,{})}}const $r={created:0,updated:0,total:0,completed:0,pending:!0},br=Jetpack_Boost.cloudCssStatus||$r,{subscribe:_r,update:wr}=Ft(br);let vr;function yr(){return vr}_r((t=>vr=t));const kr={subscribe:_r};async function jr(){wr((()=>$r)),await Kt.post("/cloud-css/request-generate"),Er()}let xr=null;function Sr(t){return t.pending?5e3:12e4}function Er(){let t=yr();const e=Sr(yr());Cr(),xr=setInterval((async()=>{t=await Kt.get("/cloud-css/status"),function(t){const{completed:e,updated:n,pending:o}=t;wr((t=>Object.assign(Object.assign({},t),{completed:e,updated:n,pending:o})))}(t),e!==Sr(t)&&Er()}),e)}function Cr(){null!==xr&&(clearInterval(xr),xr=null)}function Br(e){let n,o;return n=new So({props:{showLabel:t.__("See error message","jetpack-boost"),hideLabel:t.__("Hide error message","jetpack-boost"),$$slots:{default:[Lr]},$$scope:{ctx:e}}}),{c(){St(n.$$.fragment)},m(t,e){Et(n,t,e),o=!0},p(t,e){const o={};39&e&&(o.$$scope={dirty:e,ctx:t}),n.$set(o)},i(t){o||(wt(n.$$.fragment,t),o=!0)},o(t){vt(n.$$.fragment,t),o=!1},d(t){Ct(n,t)}}}function Pr(t){let n,o=t[0].status_error+"";return{c(){n=O(o)},m(t,e){C(t,n,e)},p(t,e){1&e&&o!==(o=t[0].status_error+"")&&H(n,o)},i:e,o:e,d(t){t&&P(n)}}}function zr(t){let e,n;return e=new ir({props:{errorSet:t[1],showSuggestion:!0,showClosingParagraph:!1,foldRawErrors:!1}}),e.$on("retry",bo),{c(){St(e.$$.fragment)},m(t,o){Et(e,t,o),n=!0},p(t,n){const o={};2&n&&(o.errorSet=t[1]),e.$set(o)},i(t){n||(wt(e.$$.fragment,t),n=!0)},o(t){vt(e.$$.fragment,t),n=!1},d(t){Ct(e,t)}}}function Lr(t){let e,n,o,r,s;const i=[zr,Pr],a=[];function c(t,e){return t[2]?0:1}return n=c(t),o=a[n]=i[n](t),{c(){e=L("div"),o.c(),A(e,"class","raw-error")},m(t,o){C(t,e,o),a[n].m(e,null),s=!0},p(t,r){let s=n;n=c(t),n===s?a[n].p(t,r):(bt(),vt(a[s],1,1,(()=>{a[s]=null})),_t(),o=a[n],o?o.p(t,r):(o=a[n]=i[n](t),o.c()),wt(o,1),o.m(e,null))},i(t){s||(wt(o),t&<((()=>{r||(r=kt(e,Xn,{},!0)),r.run(1)})),s=!0)},o(t){vt(o),t&&(r||(r=kt(e,Xn,{},!1)),r.run(0)),s=!1},d(t){t&&P(e),a[n].d(),t&&r&&r.end()}}}function Tr(e){let n,o,r,s,i,a=(e[0].retried_show_stopper?t.__("Hmm, looks like something went wrong. We're still seeing an unexpected error. Please reach out to our support to get help.","jetpack-boost"):t.__("An unexpected error has occurred. As this error may be temporary, please try and refresh the Critical CSS.","jetpack-boost"))+"",c=(e[2]||e[0].status_error)&&Br(e);return{c(){n=L("p"),o=O(a),r=M(),c&&c.c(),s=V()},m(t,e){C(t,n,e),j(n,o),C(t,r,e),c&&c.m(t,e),C(t,s,e),i=!0},p(e,n){(!i||1&n)&&a!==(a=(e[0].retried_show_stopper?t.__("Hmm, looks like something went wrong. We're still seeing an unexpected error. Please reach out to our support to get help.","jetpack-boost"):t.__("An unexpected error has occurred. As this error may be temporary, please try and refresh the Critical CSS.","jetpack-boost"))+"")&&H(o,a),e[2]||e[0].status_error?c?(c.p(e,n),5&n&&wt(c,1)):(c=Br(e),c.c(),wt(c,1),c.m(s.parentNode,s)):c&&(bt(),vt(c,1,1,(()=>{c=null})),_t())},i(t){i||(wt(c),i=!0)},o(t){vt(c),i=!1},d(t){t&&P(n),t&&P(r),c&&c.d(t),t&&P(s)}}}function Or(n){let o,r,s;return{c(){o=L("button"),o.textContent=`${t.__("Refresh","jetpack-boost")}`,A(o,"class","secondary")},m(t,e){C(t,o,e),r||(s=I(o,"click",n[4]),r=!0)},p:e,d(t){t&&P(o),r=!1,s()}}}function Mr(n){let o;return{c(){o=L("a"),o.textContent=`${t.__("Contact Support","jetpack-boost")}`,A(o,"class","button button-secondary"),A(o,"href","https://wordpress.org/support/plugin/jetpack-boost/"),A(o,"target","_blank")},m(t,e){C(t,o,e)},p:e,d(t){t&&P(o)}}}function Vr(t){let e;function n(t,e){return t[0].retried_show_stopper?Mr:Or}let o=n(t),r=o(t);return{c(){e=L("div"),r.c(),A(e,"slot","actionButton")},m(t,n){C(t,e,n),r.m(e,null)},p(t,s){o===(o=n(t))&&r?r.p(t,s):(r.d(1),r=o(t),r&&(r.c(),r.m(e,null)))},d(t){t&&P(e),r.d()}}}function Ir(t){let e,n;return e=new ge({props:{title:t[3],$$slots:{actionButton:[Vr],default:[Tr]},$$scope:{ctx:t}}}),{c(){St(e.$$.fragment)},m(t,o){Et(e,t,o),n=!0},p(t,[n]){const o={};39&n&&(o.$$scope={dirty:n,ctx:t}),e.$set(o)},i(t){n||(wt(e.$$.fragment,t),n=!0)},o(t){vt(e.$$.fragment,t),n=!1},d(t){Ct(e,t)}}}function Jr(e,n,o){let r,s;u(e,pn,(t=>o(0,r=t))),u(e,ro,(t=>o(1,s=t)));let i=!1;const a=t.__("Failed to generate Critical CSS","jetpack-boost");return e.$$.update=()=>{3&e.$$.dirty&&o(2,i=s&&"success"===r.status)},[r,s,i,a,function(){bo(!0,!0)}]}class Ar extends zt{constructor(t){super(),Pt(this,t,Jr,Ir,c,{})}}const Nr=6e4,Rr=36e5,Wr=24*Rr;function Hr(e){const n=Date.now()-e.getTime();if(n<Nr)return t.__("a few moments ago","jetpack-boost");if(n<Rr){const e=Math.floor(n/Nr);return t.sprintf(t._n("%d minute ago","%d minutes ago",e,"jetpack-boost"),e)}if(n<Wr){const e=Math.floor(n/Rr);return t.sprintf(t._n("%d hour ago","%d hours ago",e,"jetpack-boost"),e)}if(n<12096e5){const e=Math.floor(n/Wr);return t.sprintf(t._n("%d day ago","%d days ago",e,"jetpack-boost"),e)}const o={month:"short",day:"numeric",year:(new Date).getFullYear()===e.getFullYear()?void 0:"numeric"};return t.sprintf(t.__("on %s","jetpack-boost"),e.toLocaleDateString(navigator.language,o))}function Fr(t){let n,o,r;return{c(){n=L("span"),o=O(t[1]),A(n,"title",r=t[0].toLocaleString()),A(n,"class","time-ago")},m(t,e){C(t,n,e),j(n,o)},p(t,[e]){2&e&&H(o,t[1]),1&e&&r!==(r=t[0].toLocaleString())&&A(n,"title",r)},i:e,o:e,d(t){t&&P(n)}}}function Dr(t,e,n){let o,{time:r}=e;const s=Ht(Hr(r),(t=>{const e=setInterval((()=>{t(Hr(r))}),1e4);return()=>clearInterval(e)}));return u(t,s,(t=>n(1,o=t))),t.$$set=t=>{"time"in t&&n(0,r=t.time)},[r,o,s]}class Ur extends zt{constructor(t){super(),Pt(this,t,Dr,Fr,c,{time:0})}}function qr(e){let n,o,r,s,i,a,c,l,u,d,p,h,f,g,m,$,b=t.sprintf(t._n("%d file generated","%d files generated",e[0].success_count,"jetpack-boost"),e[0].success_count)+"",_=t.__("Regenerate","jetpack-boost")+"";a=new Ur({props:{time:new Date(1e3*e[0].created)}});let w=e[2]>0&&Gr(e);return p=new Me({}),{c(){n=L("div"),o=L("div"),r=L("div"),s=O(b),i=M(),St(a.$$.fragment),c=O("."),l=M(),w&&w.c(),u=M(),d=L("button"),St(p.$$.fragment),h=M(),f=O(_),A(r,"class","successes"),A(o,"class","summary"),A(d,"type","button"),A(d,"class","components-button is-link"),A(n,"class","jb-critical-css__meta")},m(t,e){C(t,n,e),j(n,o),j(o,r),j(r,s),j(r,i),Et(a,r,null),j(r,c),j(o,l),w&&w.m(o,null),j(n,u),j(n,d),Et(p,d,null),j(d,h),j(d,f),g=!0,m||($=I(d,"click",bo),m=!0)},p(e,n){(!g||1&n)&&b!==(b=t.sprintf(t._n("%d file generated","%d files generated",e[0].success_count,"jetpack-boost"),e[0].success_count)+"")&&H(s,b);const r={};1&n&&(r.time=new Date(1e3*e[0].created)),a.$set(r),e[2]>0?w?(w.p(e,n),4&n&&wt(w,1)):(w=Gr(e),w.c(),wt(w,1),w.m(o,null)):w&&(bt(),vt(w,1,1,(()=>{w=null})),_t())},i(t){g||(wt(a.$$.fragment,t),wt(w),wt(p.$$.fragment,t),g=!0)},o(t){vt(a.$$.fragment,t),vt(w),vt(p.$$.fragment,t),g=!1},d(t){t&&P(n),Ct(a),w&&w.d(),Ct(p),m=!1,$()}}}function Yr(t){let n,o;return n=new Ar({}),{c(){St(n.$$.fragment)},m(t,e){Et(n,t,e),o=!0},p:e,i(t){o||(wt(n.$$.fragment,t),o=!0)},o(t){vt(n.$$.fragment,t),o=!1},d(t){Ct(n,t)}}}function Xr(n){let o,r,s,i,a,c,l;return{c(){o=L("div"),r=L("span"),r.textContent=`${t.__("Generating Critical CSS…","jetpack-boost")}`,s=M(),i=L("div"),a=L("div"),A(r,"class","jb-critical-css-progress__label"),A(a,"class","jb-progress-bar__filler"),A(a,"aria-hidden","true"),A(a,"style",c=`width: ${n[0].progress}%;`),A(i,"role","progressbar"),A(i,"aria-valuemax","100"),A(i,"aria-valuemin","0"),A(i,"aria-valuenow",l=n[0].progress),A(i,"class","jb-progress-bar"),A(o,"class","jb-critical-css-progress")},m(t,e){C(t,o,e),j(o,r),j(o,s),j(o,i),j(i,a)},p(t,e){1&e&&c!==(c=`width: ${t[0].progress}%;`)&&A(a,"style",c),1&e&&l!==(l=t[0].progress)&&A(i,"aria-valuenow",l)},i:e,o:e,d(t){t&&P(o)}}}function Gr(e){let n,o,r,s,i;return o=new ho({}),s=new Nt({props:{template:t.sprintf(t._n("%d file could not be automatically generated. Visit the <advanced>advanced recommendations page</advanced> to optimize this file.","%d files could not be automatically generated. Visit the <advanced>advanced recommendations page</advanced> to optimize these files.",e[2],"jetpack-boost"),e[2]),vars:{...oe(e[3],"advanced")}}}),{c(){n=L("div"),St(o.$$.fragment),r=M(),St(s.$$.fragment),A(n,"class","failures")},m(t,e){C(t,n,e),Et(o,n,null),j(n,r),Et(s,n,null),i=!0},p(e,n){const o={};4&n&&(o.template=t.sprintf(t._n("%d file could not be automatically generated. Visit the <advanced>advanced recommendations page</advanced> to optimize this file.","%d files could not be automatically generated. Visit the <advanced>advanced recommendations page</advanced> to optimize these files.",e[2],"jetpack-boost"),e[2])),s.$set(o)},i(t){i||(wt(o.$$.fragment,t),wt(s.$$.fragment,t),i=!0)},o(t){vt(o.$$.fragment,t),vt(s.$$.fragment,t),i=!1},d(t){t&&P(n),Ct(o),Ct(s)}}}function Kr(t){let e,n,o,r;const s=[Xr,Yr,qr],i=[];function a(t,e){return t[0].generating?0:t[1]?1:"success"===t[0].status?2:-1}return~(e=a(t))&&(n=i[e]=s[e](t)),{c(){n&&n.c(),o=V()},m(t,n){~e&&i[e].m(t,n),C(t,o,n),r=!0},p(t,[r]){let c=e;e=a(t),e===c?~e&&i[e].p(t,r):(n&&(bt(),vt(i[c],1,1,(()=>{i[c]=null})),_t()),~e?(n=i[e],n?n.p(t,r):(n=i[e]=s[e](t),n.c()),wt(n,1),n.m(o.parentNode,o)):n=null)},i(t){r||(wt(n),r=!0)},o(t){vt(n),r=!1},d(t){~e&&i[e].d(t),t&&P(o)}}}function Qr(t,e,n){let o,r;u(t,pn,(t=>n(0,o=t))),u(t,an,(t=>n(2,r=t)));let s=!1;return t.$$.update=()=>{1&t.$$.dirty&&n(1,s="error"===o.status||"success"===o.status&&0===o.success_count)},[o,s,r,()=>qn("critical-css-advanced")]}class Zr extends zt{constructor(t){super(),Pt(this,t,Qr,Kr,c,{})}}function ts(e){let n,o,r,s,i,a,c=t.sprintf(t._n("%d file generated","%d files generated",e[0].completed,"jetpack-boost"),e[0].completed)+"";r=new Ur({props:{time:new Date(1e3*e[0].updated)}});let l=e[0].pending&&ns();return{c(){n=O(c),o=M(),St(r.$$.fragment),s=O(".\n\t\t\t"),l&&l.c(),i=V()},m(t,e){C(t,n,e),C(t,o,e),Et(r,t,e),C(t,s,e),l&&l.m(t,e),C(t,i,e),a=!0},p(e,o){(!a||1&o)&&c!==(c=t.sprintf(t._n("%d file generated","%d files generated",e[0].completed,"jetpack-boost"),e[0].completed)+"")&&H(n,c);const s={};1&o&&(s.time=new Date(1e3*e[0].updated)),r.$set(s),e[0].pending?l?l.p(e,o):(l=ns(),l.c(),l.m(i.parentNode,i)):l&&(l.d(1),l=null)},i(t){a||(wt(r.$$.fragment,t),a=!0)},o(t){vt(r.$$.fragment,t),a=!1},d(t){t&&P(n),t&&P(o),Ct(r,t),t&&P(s),l&&l.d(t),t&&P(i)}}}function es(n){let o,r=t.__("Jetpack Boost will generate Critical CSS for you automatically.","jetpack-boost")+"";return{c(){o=O(r)},m(t,e){C(t,o,e)},p:e,i:e,o:e,d(t){t&&P(o)}}}function ns(n){let o,r=t.__("Jetpack Boost is generating more Critical CSS.","jetpack-boost")+"";return{c(){o=O(r)},m(t,e){C(t,o,e)},p:e,d(t){t&&P(o)}}}function os(e){let n,o,r,s,i,a,c,l,u,d,p,h,f=t.__("Regenerate","jetpack-boost")+"";const g=[es,ts],m=[];function $(t,e){return 0===t[0].completed?0:1}return r=$(e),s=m[r]=g[r](e),c=new Me({}),{c(){n=L("div"),o=L("div"),s.c(),i=M(),a=L("button"),St(c.$$.fragment),l=M(),u=O(f),A(o,"class","meta-description"),A(a,"type","button"),A(a,"class","components-button is-link"),A(n,"class","jb-cloud-css-meta")},m(t,e){C(t,n,e),j(n,o),m[r].m(o,null),j(n,i),j(n,a),Et(c,a,null),j(a,l),j(a,u),d=!0,p||(h=I(a,"click",jr),p=!0)},p(t,[e]){let n=r;r=$(t),r===n?m[r].p(t,e):(bt(),vt(m[n],1,1,(()=>{m[n]=null})),_t(),s=m[r],s?s.p(t,e):(s=m[r]=g[r](t),s.c()),wt(s,1),s.m(o,null))},i(t){d||(wt(s),wt(c.$$.fragment,t),d=!0)},o(t){vt(s),vt(c.$$.fragment,t),d=!1},d(t){t&&P(n),m[r].d(),Ct(c),p=!1,h()}}}function rs(t,e,n){let o;return u(t,kr,(t=>n(0,o=t))),[o]}class ss extends zt{constructor(t){super(),Pt(this,t,rs,os,c,{})}}function is(t){let n,o,r,s,a,c,l,u,d,p,h;return{c(){n=L("div"),o=L("div"),r=L("span"),s=L("input"),a=M(),c=L("span"),l=M(),u=L("span"),d=L("label"),A(s,"id",t[1]),A(s,"class","components-form-toggle__input"),A(s,"type","checkbox"),s.disabled=t[2],A(c,"class","components-form-toggle__track"),A(u,"class","components-form-toggle__thumb"),A(r,"class","components-form-toggle"),D(r,"is-checked",t[0]),A(d,"for",t[1]),A(d,"class","components-toggle-control__label"),A(o,"class","components-base-control__field"),A(n,"class","components-base-control components-toggle-control")},m(e,i){C(e,n,i),j(n,o),j(o,r),j(r,s),s.checked=t[0],j(r,a),j(r,c),j(r,l),j(r,u),j(o,d),p||(h=[I(s,"click",t[3]),I(s,"change",t[4])],p=!0)},p(t,[e]){2&e&&A(s,"id",t[1]),4&e&&(s.disabled=t[2]),1&e&&(s.checked=t[0]),1&e&&D(r,"is-checked",t[0]),2&e&&A(d,"for",t[1])},i:e,o:e,d(t){t&&P(n),p=!1,i(h)}}}function as(t,e,n){let{id:o}=e,{checked:r=!1}=e,{disabled:s=!1}=e;return t.$$set=t=>{"id"in t&&n(1,o=t.id),"checked"in t&&n(0,r=t.checked),"disabled"in t&&n(2,s=t.disabled)},[r,o,s,function(e){nt.call(this,t,e)},function(){r=this.checked,n(0,r)}]}class cs extends zt{constructor(t){super(),Pt(this,t,as,is,c,{id:1,checked:0,disabled:2})}}const ls=t=>({}),us=t=>({}),ds=t=>({}),ps=t=>({}),hs=t=>({}),fs=t=>({});function gs(t){let e,n,o,r,s,i,a,c,l,u,p,m,$;function b(e){t[10](e)}let _={id:`jb-feature-toggle-${t[0]}`,checked:t[3]};void 0!==t[2]&&(_.disabled=t[2]),o=new cs({props:_}),rt.push((()=>function(t,e,n){const o=t.$$.props[e];void 0!==o&&(t.$$.bound[o]=n,n(t.$$.ctx[o]))}(o,"disabled",b))),o.$on("click",t[7]);const w=t[9].title,v=d(w,t,t[8],fs),y=t[9].description,k=d(y,t,t[8],ps),x=t[9].default,S=d(x,t,t[8],null);let E=t[1]&&ms(t),B=t[3]&&$s(t);return{c(){e=L("div"),n=L("div"),St(o.$$.fragment),s=M(),i=L("div"),v&&v.c(),a=M(),c=L("div"),k&&k.c(),l=M(),u=L("div"),S&&S.c(),p=M(),E&&E.c(),m=M(),B&&B.c(),A(n,"class","jb-feature-toggle__toggle"),A(c,"class","jb-feature-toggle__text"),A(u,"class","jb-feature-toggle__content"),A(i,"class","jb-feature-toggle__content"),A(e,"class","jb-feature-toggle")},m(t,r){C(t,e,r),j(e,n),Et(o,n,null),j(e,s),j(e,i),v&&v.m(i,null),j(i,a),j(i,c),k&&k.m(c,null),j(i,l),j(i,u),S&&S.m(u,null),j(u,p),E&&E.m(u,null),j(u,m),B&&B.m(u,null),$=!0},p(t,e){const n={};var s;1&e&&(n.id=`jb-feature-toggle-${t[0]}`),8&e&&(n.checked=t[3]),!r&&4&e&&(r=!0,n.disabled=t[2],s=()=>r=!1,it.push(s)),o.$set(n),v&&v.p&&(!$||256&e)&&f(v,w,t,t[8],$?h(w,t[8],e,hs):g(t[8]),fs),k&&k.p&&(!$||256&e)&&f(k,y,t,t[8],$?h(y,t[8],e,ds):g(t[8]),ps),S&&S.p&&(!$||256&e)&&f(S,x,t,t[8],$?h(x,t[8],e,null):g(t[8]),null),t[1]?E?(E.p(t,e),2&e&&wt(E,1)):(E=ms(t),E.c(),wt(E,1),E.m(u,m)):E&&(bt(),vt(E,1,1,(()=>{E=null})),_t()),t[3]?B?(B.p(t,e),8&e&&wt(B,1)):(B=$s(t),B.c(),wt(B,1),B.m(u,null)):B&&(bt(),vt(B,1,1,(()=>{B=null})),_t())},i(t){$||(wt(o.$$.fragment,t),wt(v,t),wt(k,t),wt(S,t),wt(E),wt(B),$=!0)},o(t){vt(o.$$.fragment,t),vt(v,t),vt(k,t),vt(S,t),vt(E),vt(B),$=!1},d(t){t&&P(e),Ct(o),v&&v.d(t),k&&k.d(t),S&&S.d(t),E&&E.d(),B&&B.d()}}}function ms(e){let n,o;return n=new ge({props:{title:t.__("Failed to toggle feature","jetpack-boost"),error:e[1]}}),{c(){St(n.$$.fragment)},m(t,e){Et(n,t,e),o=!0},p(t,e){const o={};2&e&&(o.error=t[1]),n.$set(o)},i(t){o||(wt(n.$$.fragment,t),o=!0)},o(t){vt(n.$$.fragment,t),o=!1},d(t){Ct(n,t)}}}function $s(t){let e;const n=t[9].meta,o=d(n,t,t[8],us);return{c(){o&&o.c()},m(t,n){o&&o.m(t,n),e=!0},p(t,r){o&&o.p&&(!e||256&r)&&f(o,n,t,t[8],e?h(n,t[8],r,ls):g(t[8]),us)},i(t){e||(wt(o,t),e=!0)},o(t){vt(o,t),e=!1},d(t){o&&o.d(t)}}}function bs(t){let e,n,o=t[4]&&gs(t);return{c(){o&&o.c(),e=V()},m(t,r){o&&o.m(t,r),C(t,e,r),n=!0},p(t,[n]){t[4]?o?(o.p(t,n),16&n&&wt(o,1)):(o=gs(t),o.c(),wt(o,1),o.m(e.parentNode,e)):o&&(bt(),vt(o,1,1,(()=>{o=null})),_t())},i(t){n||(wt(o),n=!0)},o(t){vt(o),n=!1},d(t){o&&o.d(t),t&&P(e)}}}function _s(t,e,n){let o,r,{$$slots:s={},$$scope:i}=e,{slug:a}=e;const c=et(),l=Dt(wn,(t=>t[a]&&t[a].enabled));u(t,l,(t=>n(3,o=t)));const d=Dt(wn,(t=>void 0!==t[a]));u(t,d,(t=>n(4,r=t)));let p=null,h=!1;return tt((async()=>{o&&c("mountEnabled")})),t.$$set=t=>{"slug"in t&&n(0,a=t.slug),"$$scope"in t&&n(8,i=t.$$scope)},[a,p,h,o,r,l,d,async function(){if(!h){n(1,p=null),n(2,h=!0);try{await bn(a,!o)?c("enabled"):c("disabled")}catch(t){n(1,p=t)}n(2,h=!1)}},i,s,function(t){h=t,n(2,h)}]}class ws extends zt{constructor(t){super(),Pt(this,t,_s,bs,c,{slug:0})}}function vs(n){let o;return{c(){o=L("h3"),o.textContent=`${t.__("Optimize CSS Loading","jetpack-boost")}`,A(o,"slot","title")},m(t,e){C(t,o,e)},p:e,d(t){t&&P(o)}}}function ys(n){let o,r,s;return r=new Nt({props:{template:t.__("Move important styling information to the start of the page, which helps pages display your content sooner, so your users don’t have to wait for the entire page to load. Commonly referred to as <link>Critical CSS</link>.","jetpack-boost"),vars:Rt("https://web.dev/extract-critical-css/")}}),{c(){o=L("p"),St(r.$$.fragment),A(o,"slot","description")},m(t,e){C(t,o,e),Et(r,o,null),s=!0},p:e,i(t){s||(wt(r.$$.fragment,t),s=!0)},o(t){vt(r.$$.fragment,t),s=!1},d(t){t&&P(o),Ct(r)}}}function ks(t){let e,n,o;return n=new Zr({}),{c(){e=L("div"),St(n.$$.fragment),A(e,"slot","meta")},m(t,r){C(t,e,r),Et(n,e,null),o=!0},i(t){o||(wt(n.$$.fragment,t),o=!0)},o(t){vt(n.$$.fragment,t),o=!1},d(t){t&&P(e),Ct(n)}}}function js(n){let o;return{c(){o=L("h3"),o.textContent=`${t.__("Optimize CSS Loading from Cloud","jetpack-boost")}`,A(o,"slot","title")},m(t,e){C(t,o,e)},p:e,d(t){t&&P(o)}}}function xs(n){let o,r,s;return r=new Nt({props:{template:t.__("Move important styling information to the start of the page, which helps pages display your content sooner, so your users don’t have to wait for the entire page to load. Commonly referred to as <link>Critical CSS</link>.","jetpack-boost"),vars:Rt("https://web.dev/extract-critical-css/")}}),{c(){o=L("p"),St(r.$$.fragment),A(o,"slot","description")},m(t,e){C(t,o,e),Et(r,o,null),s=!0},p:e,i(t){s||(wt(r.$$.fragment,t),s=!0)},o(t){vt(r.$$.fragment,t),s=!1},d(t){t&&P(o),Ct(r)}}}function Ss(t){let e,n,o;return n=new ss({}),{c(){e=L("div"),St(n.$$.fragment),A(e,"slot","meta"),A(e,"class","jb-feature-toggle__meta")},m(t,r){C(t,e,r),Et(n,e,null),o=!0},i(t){o||(wt(n.$$.fragment,t),o=!0)},o(t){vt(n.$$.fragment,t),o=!1},d(t){t&&P(e),Ct(n)}}}function Es(n){let o;return{c(){o=L("h3"),o.textContent=`${t.__("Defer Non-Essential JavaScript","jetpack-boost")}`,A(o,"slot","title")},m(t,e){C(t,o,e)},p:e,d(t){t&&P(o)}}}function Cs(n){let o,r,s;return r=new Nt({props:{template:t.__("Run non-essential JavaScript after the page has loaded so that styles and images can load more quickly. Read more on <link>web.dev</link>.","jetpack-boost"),vars:Rt("https://web.dev/efficiently-load-third-party-javascript/")}}),{c(){o=L("p"),St(r.$$.fragment),A(o,"slot","description")},m(t,e){C(t,o,e),Et(r,o,null),s=!0},p:e,i(t){s||(wt(r.$$.fragment,t),s=!0)},o(t){vt(r.$$.fragment,t),s=!1},d(t){t&&P(o),Ct(r)}}}function Bs(n){let o;return{c(){o=L("h3"),o.textContent=`${t.__("Lazy Image Loading","jetpack-boost")}`,A(o,"slot","title")},m(t,e){C(t,o,e)},p:e,d(t){t&&P(o)}}}function Ps(n){let o,r,s;return r=new Nt({props:{template:t.__("Improve page loading speed by only loading images when they are required. Read more on <link>web.dev</link>.","jetpack-boost"),vars:Rt("https://web.dev/browser-level-image-lazy-loading/")}}),{c(){o=L("p"),St(r.$$.fragment),A(o,"slot","description")},m(t,e){C(t,o,e),Et(r,o,null),s=!0},p:e,i(t){s||(wt(r.$$.fragment,t),s=!0)},o(t){vt(r.$$.fragment,t),s=!1},d(t){t&&P(o),Ct(r)}}}function zs(t){let e,n,o,r,s,i,a,c,l;return n=new ws({props:{slug:"critical-css",$$slots:{meta:[ks],description:[ys],title:[vs]},$$scope:{ctx:t}}}),n.$on("enabled",$o),n.$on("mountEnabled",$o),r=new ws({props:{slug:"cloud-css",$$slots:{meta:[Ss],description:[xs],title:[js]},$$scope:{ctx:t}}}),r.$on("enabled",jr),r.$on("disabled",Cr),r.$on("mountEnabled",Er),i=new ws({props:{slug:"render-blocking-js",$$slots:{description:[Cs],title:[Es]},$$scope:{ctx:t}}}),c=new ws({props:{slug:"lazy-images",$$slots:{description:[Ps],title:[Bs]},$$scope:{ctx:t}}}),{c(){e=L("div"),St(n.$$.fragment),o=M(),St(r.$$.fragment),s=M(),St(i.$$.fragment),a=M(),St(c.$$.fragment),A(e,"class","jb-container--narrow")},m(t,u){C(t,e,u),Et(n,e,null),j(e,o),Et(r,e,null),j(e,s),Et(i,e,null),j(e,a),Et(c,e,null),l=!0},p(t,[e]){const o={};1&e&&(o.$$scope={dirty:e,ctx:t}),n.$set(o);const s={};1&e&&(s.$$scope={dirty:e,ctx:t}),r.$set(s);const a={};1&e&&(a.$$scope={dirty:e,ctx:t}),i.$set(a);const l={};1&e&&(l.$$scope={dirty:e,ctx:t}),c.$set(l)},i(t){l||(wt(n.$$.fragment,t),wt(r.$$.fragment,t),wt(i.$$.fragment,t),wt(c.$$.fragment,t),l=!0)},o(t){vt(n.$$.fragment,t),vt(r.$$.fragment,t),vt(i.$$.fragment,t),vt(c.$$.fragment,t),l=!1},d(t){t&&P(e),Ct(n),Ct(r),Ct(i),Ct(c)}}}class Ls extends zt{constructor(t){super(),Pt(this,t,null,zs,c,{})}}function Ts(t){let n,o,r;return o=new Ls({}),{c(){n=L("div"),St(o.$$.fragment),A(n,"class","jb-section jb-section--main")},m(t,e){C(t,n,e),Et(o,n,null),r=!0},p:e,i(t){r||(wt(o.$$.fragment,t),r=!0)},o(t){vt(o.$$.fragment,t),r=!1},d(t){t&&P(n),Ct(o)}}}function Os(t){let e,n,o;var r=t[0];return r&&(n=new r({})),{c(){e=L("div"),n&&St(n.$$.fragment),A(e,"class","jb-section jb-section--subpage")},m(t,r){C(t,e,r),n&&Et(n,e,null),o=!0},p(t,o){if(r!==(r=t[0])){if(n){bt();const t=n;vt(t.$$.fragment,1,0,(()=>{Ct(t,1)})),_t()}r?(n=new r({}),St(n.$$.fragment),wt(n.$$.fragment,1),Et(n,e,null)):n=null}},i(t){o||(n&&wt(n.$$.fragment,t),o=!0)},o(t){n&&vt(n.$$.fragment,t),o=!1},d(t){t&&P(e),n&&Ct(n)}}}function Ms(t){let e,n,o,r,s,i,a,c,l;n=new Fn({});const u=[Os,Ts],d=[];function p(t,e){return t[0]?0:1}return r=p(t),s=d[r]=u[r](t),c=new Se({}),{c(){e=L("div"),St(n.$$.fragment),o=M(),s.c(),i=M(),a=L("div"),St(c.$$.fragment),A(e,"class","jb-section--alt jb-section--scores"),A(a,"class","jb-section--alt")},m(t,s){C(t,e,s),Et(n,e,null),C(t,o,s),d[r].m(t,s),C(t,i,s),C(t,a,s),Et(c,a,null),l=!0},p(t,[e]){let n=r;r=p(t),r===n?d[r].p(t,e):(bt(),vt(d[n],1,1,(()=>{d[n]=null})),_t(),s=d[r],s?s.p(t,e):(s=d[r]=u[r](t),s.c()),wt(s,1),s.m(i.parentNode,i))},i(t){l||(wt(n.$$.fragment,t),wt(s),wt(c.$$.fragment,t),l=!0)},o(t){vt(n.$$.fragment,t),vt(s),vt(c.$$.fragment,t),l=!1},d(t){t&&P(e),Ct(n),t&&P(o),d[r].d(t),t&&P(i),t&&P(a),Ct(c)}}}function Vs(t,e,n){let o;const r={"#critical-css-advanced":mr},s=Dt(Yn,(t=>r[t]));return u(t,s,(t=>n(0,o=t))),[o,s]}class Is extends zt{constructor(t){super(),Pt(this,t,Vs,Ms,c,{})}}function Js(t){let n,r,s,i,a,c,l=[{width:"177"},{height:"7"},{fill:"none"},{xmlns:"http://www.w3.org/2000/svg"},t[0]],u={};for(let t=0;t<l.length;t+=1)u=o(u,l[t]);return{c(){n=T("svg"),r=T("g"),s=T("path"),i=T("defs"),a=T("clipPath"),c=T("path"),this.h()},l(t){n=W(t,"svg",{width:!0,height:!0,fill:!0,xmlns:!0});var e=R(n);r=W(e,"g",{"clip-path":!0,fill:!0,"fill-opacity":!0});var o=R(r);s=W(o,"path",{d:!0}),R(s).forEach(P),o.forEach(P),i=W(e,"defs",{});var l=R(i);a=W(l,"clipPath",{id:!0});var u=R(a);c=W(u,"path",{fill:!0,d:!0}),R(c).forEach(P),u.forEach(P),l.forEach(P),e.forEach(P),this.h()},h(){A(s,"d","M59.878 7c-2.38 0-3.909-1.668-3.909-3.39v-.22c0-1.76 1.548-3.39 3.909-3.39 2.379 0 3.927 1.63 3.927 3.39v.22c0 1.722-1.548 3.39-3.927 3.39zm2.662-3.592c0-1.264-.944-2.382-2.662-2.382-1.719 0-2.644 1.118-2.644 2.382v.165c0 1.265.944 2.4 2.644 2.4 1.7 0 2.662-1.135 2.662-2.4v-.165zM33.045 6.743l-.887-1.612H28.21l-.85 1.612H26.04L29.646.238h1.039l3.682 6.505h-1.322zm-2.889-5.24l-1.454 2.73h2.965l-1.511-2.73zM40.107 7c-2.398 0-3.53-1.264-3.53-2.969V.238h1.245v3.83c0 1.21.813 1.924 2.36 1.924 1.587 0 2.248-.715 2.248-1.924V.238h1.265v3.793C43.695 5.644 42.638 7 40.107 7zM50.72 1.246v5.497h-1.266V1.246h-2.926V.238h7.118v1.008H50.72zm24.302 5.497V1.594l-.34.568-2.814 4.581h-.623l-2.776-4.58-.34-.569v5.15h-1.227V.237h1.737l2.644 4.471.321.55.321-.55L74.55.24h1.718v6.504h-1.246zm10.782 0l-.887-1.612H80.97l-.85 1.612h-1.322L82.425.238h1.039l3.682 6.505h-1.34zm-2.889-5.24l-1.454 2.73h2.965l-1.511-2.73zm9.31-.257v5.497h-1.266V1.246h-2.927V.238h7.12v1.008h-2.928zm9.233 0v5.497h-1.265V1.246h-2.927V.238h7.119v1.008h-2.927zm6.043 5.497v-5.9c.509 0 .698-.257.698-.623h.529v6.505l-1.227.018zm11.084-4.672c-.604-.532-1.492-1.045-2.682-1.045-1.793 0-2.794 1.191-2.794 2.437v.129c0 1.227 1.019 2.382 2.889 2.382 1.114 0 2.039-.513 2.625-1.045l.755.77c-.737.696-1.983 1.301-3.456 1.301-2.53 0-4.078-1.594-4.078-3.353v-.22c0-1.76 1.68-3.427 4.135-3.427 1.416 0 2.7.568 3.399 1.301l-.793.77zm-57.876.201c.226.147.283.44.15.66l-1.151 1.722a.501.501 0 01-.68.147.486.486 0 01-.151-.66l1.152-1.722a.485.485 0 01.68-.147zM7.081 6.725l-.887-1.63H2.209l-.868 1.63H0L3.663.147h1.058l3.72 6.578H7.08zM4.154 1.43L2.681 4.196h3.003L4.154 1.43zm11.481 5.296l-4.4-4.398-.434-.458v4.875H9.536V.147h1.227l4.268 4.398.434.476V.147h1.265v6.578h-1.095zM135.938 6.78l-.907-1.63h-3.984l-.868 1.63h-1.341L132.52.183h1.058l3.738 6.597h-1.378zm-2.927-5.314l-1.473 2.767h3.003l-1.53-2.767zm5.401 5.314V.183h1.284V6.78h-1.284zm9.063 0c-.34 0-.491-.458-.547-1.063l-.038-.678c-.038-.66-.321-.934-1.586-.934h-2.417V6.78h-1.265V.183h3.701c2.039 0 2.964.788 2.964 1.814 0 .715-.377 1.411-1.699 1.65 1.322.091 1.605.678 1.624 1.447l.019.55c.019.458.094.788.415 1.118v.018h-1.171zm-.472-4.618c0-.476-.396-.934-1.491-.934h-2.606v1.979h2.719c.944 0 1.378-.44 1.378-.953v-.092zm3.078 4.618V.183h1.284v5.57h5.325V6.78h-6.609zm7.912 0V.183h1.284V6.78h-1.284zm9.347 0l-4.418-4.416-.435-.458V6.78h-1.284V.183h1.228l4.286 4.416.434.477V.183h1.284V6.78h-1.095zm3.04 0V.183h6.175V1.21h-4.91v1.686h3.777v1.008h-3.777v1.85h4.91V6.78h-6.175z"),A(r,"clip-path","url(#footer-automattic_svg__clip0)"),A(r,"fill","#000"),A(r,"fill-opacity","0.8"),A(c,"fill","#fff"),A(c,"d","M0 0h176.556v7H0z"),A(a,"id","footer-automattic_svg__clip0"),N(n,u)},m(t,e){B(t,n,e),E(n,r),E(r,s),E(n,i),E(i,a),E(a,c)},p(t,[e]){N(n,u=xt(l,[{width:"177"},{height:"7"},{fill:"none"},{xmlns:"http://www.w3.org/2000/svg"},1&e&&t[0]]))},i:e,o:e,d(t){t&&P(n)}}}function As(t,e,n){return t.$$set=t=>{n(0,e=o(o({},e),m(t)))},[e=m(e)]}class Ns extends zt{constructor(t){super(),Pt(this,t,As,Js,c,{})}}function Rs(t){let n,r,s=[{xmlns:"http://www.w3.org/2000/svg"},{width:"16"},{height:"16"},{fill:"none"},t[0]],i={};for(let t=0;t<s.length;t+=1)i=o(i,s[t]);return{c(){n=T("svg"),r=T("path"),this.h()},l(t){n=W(t,"svg",{xmlns:!0,width:!0,height:!0,fill:!0});var e=R(n);r=W(e,"path",{d:!0,fill:!0,"fill-opacity":!0}),R(r).forEach(P),e.forEach(P),this.h()},h(){A(r,"d","M8 0C3.588 0 0 3.588 0 8s3.588 8 8 8 8-3.588 8-8-3.588-8-8-8zm-.412 9.328H3.603l3.985-7.755v7.755zm.809 5.084V6.656h3.985l-3.985 7.756z"),A(r,"fill","#000"),A(r,"fill-opacity","0.7"),N(n,i)},m(t,e){B(t,n,e),E(n,r)},p(t,[e]){N(n,i=xt(s,[{xmlns:"http://www.w3.org/2000/svg"},{width:"16"},{height:"16"},{fill:"none"},1&e&&t[0]]))},i:e,o:e,d(t){t&&P(n)}}}function Ws(t,e,n){return t.$$set=t=>{n(0,e=o(o({},e),m(t)))},[e=m(e)]}class Hs extends zt{constructor(t){super(),Pt(this,t,Ws,Rs,c,{})}}function Fs(n){let o,r,s,i,a,c,l,u,d,p=t.__("Jetpack Boost","jetpack-boost")+"";return s=new Hs({}),u=new Ns({}),{c(){o=L("footer"),r=L("div"),St(s.$$.fragment),i=M(),a=O(p),c=M(),l=L("div"),St(u.$$.fragment),A(r,"class","jb-signature--jetpack"),A(l,"class","jb-signature--automattic"),A(o,"class","jb-settings-footer")},m(t,e){C(t,o,e),j(o,r),Et(s,r,null),j(r,i),j(r,a),j(o,c),j(o,l),Et(u,l,null),d=!0},p:e,i(t){d||(wt(s.$$.fragment,t),wt(u.$$.fragment,t),d=!0)},o(t){vt(s.$$.fragment,t),vt(u.$$.fragment,t),d=!1},d(t){t&&P(o),Ct(s),Ct(u)}}}class Ds extends zt{constructor(t){super(),Pt(this,t,null,Fs,c,{})}}function Us(t){let n,r,s,i,a,c,l,u,d,p,h,f,g,m,$,b,_,w=[{fill:"none"},{height:"50"},{viewBox:"0 0 280 50"},{width:"280"},{xmlns:"http://www.w3.org/2000/svg"},t[0]],v={};for(let t=0;t<w.length;t+=1)v=o(v,w[t]);return{c(){n=T("svg"),r=T("path"),s=T("path"),i=T("path"),a=T("path"),c=T("path"),l=T("path"),u=T("path"),d=T("path"),p=T("g"),h=T("path"),f=T("path"),g=T("path"),m=T("path"),$=T("path"),b=T("path"),_=T("path"),this.h()},l(t){n=W(t,"svg",{fill:!0,height:!0,viewBox:!0,width:!0,xmlns:!0});var e=R(n);r=W(e,"path",{d:!0,fill:!0}),R(r).forEach(P),s=W(e,"path",{d:!0,fill:!0}),R(s).forEach(P),i=W(e,"path",{d:!0,fill:!0}),R(i).forEach(P),a=W(e,"path",{d:!0,fill:!0}),R(a).forEach(P),c=W(e,"path",{d:!0,fill:!0}),R(c).forEach(P),l=W(e,"path",{d:!0,fill:!0}),R(l).forEach(P),u=W(e,"path",{d:!0,fill:!0}),R(u).forEach(P),d=W(e,"path",{d:!0,fill:!0}),R(d).forEach(P),p=W(e,"g",{fill:!0});var o=R(p);h=W(o,"path",{d:!0}),R(h).forEach(P),f=W(o,"path",{d:!0}),R(f).forEach(P),g=W(o,"path",{d:!0}),R(g).forEach(P),m=W(o,"path",{d:!0}),R(m).forEach(P),$=W(o,"path",{d:!0}),R($).forEach(P),b=W(o,"path",{d:!0}),R(b).forEach(P),_=W(o,"path",{d:!0}),R(_).forEach(P),o.forEach(P),e.forEach(P),this.h()},h(){A(r,"d","m207.34 21.2106c.764.1108 1.447.3141 2.051.6099.616.2957 1.14.6776 1.571 1.1458.444.4559.782 1.0042 1.017 1.6449.234.6284.351 1.3492.351 2.1624 0 .5791-.087 1.189-.259 1.8297-.173.6284-.462 1.2444-.869 1.8482-.394.5914-.918 1.1397-1.571 1.6449-.64.5051-1.441.9179-2.402 1.2383-.74.2464-1.559.4189-2.458.5174-.9.0986-1.978.1479-3.235.1479h-6.394v-24.72872h6.173c.566 0 1.078.01232 1.534.03696.468.01232.893.03697 1.275.07393.394.03696.758.08625 1.09.14785.333.04929.647.1109.943.18482.776.20946 1.478.49906 2.107.86866.64.3573 1.183.7885 1.626 1.2937.444.5052.783 1.0781 1.017 1.7188.246.6407.369 1.3369.369 2.0885 0 .6037-.074 1.1828-.222 1.7373-.135.5544-.363 1.0658-.683 1.534-.308.4682-.715.8871-1.22 1.2567-.493.3697-1.097.6777-1.811.9241zm-4.602-1.2383c.591 0 1.102-.0247 1.534-.074.431-.0616.819-.1478 1.164-.2587.924-.308 1.596-.7886 2.015-1.4416.431-.653.646-1.4231.646-2.3102 0-.9118-.221-1.6572-.665-2.2363s-1.14-1.0104-2.088-1.2938c-.469-.1355-1.011-.2279-1.627-.2772-.616-.0616-1.343-.0924-2.181-.0924h-3.382v7.9842zm-4.584 2.7168v8.5941h3.641c.863 0 1.663-.037 2.403-.1109.739-.0863 1.367-.2156 1.885-.3881.567-.1849 1.047-.419 1.441-.7024.395-.2957.709-.616.943-.961.246-.3573.419-.7331.518-1.1274.11-.3943.166-.7947.166-1.2013 0-.4682-.056-.9056-.166-1.3122-.111-.419-.296-.7886-.555-1.1089-.246-.3327-.579-.6223-.998-.8687-.407-.2464-.918-.4374-1.534-.5729-.37-.0863-.795-.1479-1.275-.1849-.468-.0369-1.054-.0554-1.756-.0554z"),A(r,"fill","#000"),A(s,"d","m229.338 25.2396c0-1.0843-.135-2.0453-.406-2.8832-.259-.8501-.629-1.5648-1.109-2.1439-.469-.5914-1.029-1.0349-1.682-1.3307-.653-.308-1.368-.462-2.144-.462s-1.491.154-2.144.462c-.653.2958-1.22.7393-1.7 1.3307-.468.5791-.838 1.2938-1.109 2.1439-.259.8379-.388 1.7989-.388 2.8832 0 1.0719.129 2.033.388 2.8832.271.8378.647 1.5463 1.127 2.1254.481.5791 1.048 1.0226 1.701 1.3307.653.2957 1.367.4435 2.143.4435.777 0 1.485-.1478 2.126-.4435.653-.3081 1.213-.7516 1.682-1.3307.48-.5791.85-1.2876 1.109-2.1254.271-.8502.406-1.8113.406-2.8832zm2.994 0c0 1.38-.197 2.6367-.591 3.7703-.394 1.1335-.955 2.1069-1.682 2.9201-.715.8009-1.583 1.4231-2.606 1.8667s-2.168.6653-3.438.6653c-1.306 0-2.476-.2217-3.511-.6653-1.023-.4436-1.898-1.0658-2.625-1.8667-.714-.8132-1.262-1.7866-1.644-2.9201-.382-1.1336-.573-2.3903-.573-3.7703 0-1.3923.197-2.6552.591-3.7888.394-1.1335.949-2.1069 1.663-2.9201.727-.8132 1.602-1.4416 2.625-1.8852 1.035-.4435 2.187-.6653 3.456-.6653 1.294 0 2.458.2218 3.493.6653 1.035.4436 1.91 1.072 2.624 1.8852.715.8132 1.263 1.7866 1.645 2.9201.382 1.1336.573 2.3965.573 3.7888z"),A(s,"fill","#000"),A(i,"d","m248.953 25.2396c0-1.0843-.136-2.0453-.407-2.8832-.259-.8501-.628-1.5648-1.109-2.1439-.468-.5914-1.029-1.0349-1.682-1.3307-.653-.308-1.367-.462-2.144-.462-.776 0-1.491.154-2.144.462-.653.2958-1.219.7393-1.7 1.3307-.468.5791-.838 1.2938-1.109 2.1439-.259.8379-.388 1.7989-.388 2.8832 0 1.0719.129 2.033.388 2.8832.271.8378.647 1.5463 1.128 2.1254.48.5791 1.047 1.0226 1.7 1.3307.653.2957 1.368.4435 2.144.4435s1.485-.1478 2.125-.4435c.653-.3081 1.214-.7516 1.682-1.3307.481-.5791.85-1.2876 1.109-2.1254.271-.8502.407-1.8113.407-2.8832zm2.994 0c0 1.38-.197 2.6367-.592 3.7703-.394 1.1335-.955 2.1069-1.682 2.9201-.714.8009-1.583 1.4231-2.606 1.8667-1.022.4436-2.168.6653-3.437.6653-1.306 0-2.477-.2217-3.512-.6653-1.022-.4436-1.897-1.0658-2.624-1.8667-.715-.8132-1.263-1.7866-1.645-2.9201-.382-1.1336-.573-2.3903-.573-3.7703 0-1.3923.197-2.6552.591-3.7888.395-1.1335.949-2.1069 1.664-2.9201.727-.8132 1.602-1.4416 2.624-1.8852 1.035-.4435 2.187-.6653 3.456-.6653 1.294 0 2.458.2218 3.493.6653 1.035.4436 1.91 1.072 2.625 1.8852.714.8132 1.263 1.7866 1.645 2.9201.382 1.1336.573 2.3965.573 3.7888z"),A(i,"fill","#000"),A(a,"d","m257.755 21.1181c0 .4806.105.8749.314 1.1829.21.308.487.5606.832.7577.357.1849.764.3389 1.22.4621.468.1232.949.2341 1.441.3327.678.1478 1.319.3142 1.923.499.603.1725 1.158.4374 1.663.7947.517.3573.93.844 1.238 1.4601.321.6037.481 1.3923.481 2.3656 0 .8872-.173 1.6757-.518 2.3657-.345.6777-.831 1.2506-1.46 1.7188-.628.4559-1.38.8009-2.255 1.035-.874.2464-1.835.3696-2.883.3696-.641 0-1.226-.0369-1.756-.1108-.517-.0617-.979-.1479-1.386-.2588-.394-.0986-.733-.2033-1.016-.3142-.284-.1109-.518-.2156-.703-.3142v-2.4026c.74.2957 1.473.5298 2.2.7023s1.528.2587 2.402.2587c.69 0 1.313-.0616 1.867-.1848.555-.1232 1.029-.3018 1.423-.536.407-.2464.715-.5482.924-.9056.222-.3696.333-.7947.333-1.2752 0-.4929-.099-.8995-.296-1.2198-.197-.3204-.462-.5853-.794-.7947-.333-.2095-.721-.382-1.165-.5175-.431-.1356-.887-.2588-1.367-.3697-.629-.1355-1.27-.2957-1.923-.4805-.64-.1848-1.226-.4436-1.755-.7762-.53-.3327-.961-.7824-1.294-1.3492-.32-.5791-.481-1.3184-.481-2.2178 0-.9241.167-1.725.499-2.4027.333-.6776.783-1.2383 1.35-1.6818.566-.4436 1.226-.7763 1.977-.998.752-.2218 1.546-.3327 2.384-.3327.974 0 1.873.0924 2.699.2772.837.1848 1.595.4189 2.273.7023v2.4396c-.739-.2834-1.491-.5113-2.255-.6838-.751-.1848-1.528-.2834-2.329-.2957-.677 0-1.256.0678-1.737.2033-.48.1355-.875.3265-1.183.5729-.308.2341-.536.5175-.684.8502-.135.3204-.203.6777-.203 1.0719z"),A(a,"fill","#000"),A(c,"d","m279.902 34.037c-.247.0985-.623.1909-1.128.2772-.505.0862-1.109.1355-1.811.1478-.924 0-1.725-.117-2.403-.3511-.677-.2218-1.244-.5421-1.7-.9611-.444-.4312-.776-.9487-.998-1.5524-.222-.6038-.333-1.2753-.333-2.0146v-10.6825h-3.382v-2.4581h3.382v-4.8052h2.865v4.8052h5.249v2.4581h-5.249v10.239c0 .4066.055.7824.166 1.1274.124.345.308.6468.555.9056.259.2464.585.4435.979.5914.395.1355.869.2033 1.423.2033.382 0 .783-.0308 1.202-.0924.431-.0616.825-.1417 1.183-.2403z"),A(c,"fill","#000"),A(l,"d","m24.9855 49.9692c13.799 0 24.9855-11.1865 24.9855-24.9855 0-13.7991-11.1865-24.9837-24.9855-24.9837s-24.9855 11.1865-24.9855 24.9855 11.1865 24.9837 24.9855 24.9837z"),A(l,"fill","#069e08"),A(u,"d","m26.2256 20.7892v24.2213l12.4927-24.2213z"),A(u,"fill","#fff"),A(d,"d","m23.6976 29.1337v-24.17511l-12.4447 24.17511z"),A(d,"fill","#fff"),A(h,"d","m64.512 41.4821c-.7161-1.0972-1.3822-2.1925-2.0501-3.2416 3.5284-2.1462 4.72-3.8614 4.72-7.1048v-18.7392h-4.1483v-3.57462h8.8219v21.36092c0 5.436-1.5727 8.487-7.3435 11.2993z"),A(f,"d","m101.467 28.7045c0 1.8113 1.287 2.0019 2.146 2.0019.858 0 2.098-.2868 3.051-.5717v3.3378c-1.336.4293-2.718.7623-4.626.7623-2.2885 0-4.9584-.8585-4.9584-4.8643v-9.8228h-2.4312v-3.386h2.4312v-5.0048h4.3874v5.0067h5.53v3.3859h-5.53z"),A(g,"d","m110.621 43.151v-27.0355h4.196v1.6208c1.669-1.2878 3.529-2.0982 5.818-2.0982 3.957 0 7.104 2.7661 7.104 8.7257 0 5.9133-3.432 9.8229-9.106 9.8229-1.383 0-2.48-.1906-3.625-.4293v9.3455h-4.387zm8.868-23.8883c-1.288 0-2.908.6198-4.435 1.9557v9.2031c.953.1905 1.956.333 3.29.333 3.099 0 4.864-1.9557 4.864-6.0558 0-3.7671-1.288-5.436-3.719-5.436z"),A(m,"d","m144.998 33.8055h-4.1v-1.9557h-.096c-1.43 1.0972-3.195 2.2888-5.817 2.2888-2.289 0-4.768-1.6689-4.768-5.0549 0-4.5293 3.861-5.3878 6.579-5.769l3.862-.5236v-.5236c0-2.385-.953-3.1472-3.196-3.1472-1.097 0-3.671.333-5.769 1.1915l-.381-3.5284c1.908-.6679 4.529-1.1434 6.724-1.1434 4.291 0 7.057 1.717 7.057 6.8181v11.3474zm-4.387-8.2483-3.624.5717c-1.097.1425-2.241.8104-2.241 2.4312 0 1.4303.811 2.2407 2.002 2.2407 1.288 0 2.67-.7623 3.862-1.6208v-3.6228z"),A($,"d","m163.118 33.2338c-1.812.6198-3.432 1.001-5.484 1.001-6.58 0-9.203-3.7671-9.203-9.2493 0-5.769 3.624-9.3455 9.488-9.3455 2.192 0 3.528.3811 5.006.8585v3.7189c-1.287-.4773-3.147-1.0009-4.958-1.0009-2.67 0-4.959 1.4302-4.959 5.5303 0 4.5294 2.289 5.9133 5.197 5.9133 1.383 0 2.909-.2867 4.959-1.0971v3.6708z"),A(b,"d","m171.415 23.7458c.381-.4292.668-.8585 6.198-7.5822h5.721l-7.153 8.3926 7.819 9.2974h-5.721l-6.818-8.3926v8.3926h-4.385v-25.03173h4.387v14.92393z"),A(_,"d","m91.3568 33.2338c-2.2887.716-4.2444 1.001-6.5332 1.001-5.6265 0-9.1068-2.8124-9.1068-9.3936 0-4.8162 2.9567-9.2031 8.6295-9.2031 5.6265 0 7.5822 3.9096 7.5822 7.6285 0 1.2397-.0962 1.9076-.1425 2.6218h-11.3474c.0962 3.8614 2.2887 4.768 5.5784 4.768 1.8114 0 3.4322-.4292 5.2935-1.0972v3.6709h.0463zm-4.0039-10.2521c0-2.1463-.716-4.0058-3.051-4.0058-2.1926 0-3.5284 1.5727-3.8152 4.0058z"),A(p,"fill","#000"),N(n,v)},m(t,e){B(t,n,e),E(n,r),E(n,s),E(n,i),E(n,a),E(n,c),E(n,l),E(n,u),E(n,d),E(n,p),E(p,h),E(p,f),E(p,g),E(p,m),E(p,$),E(p,b),E(p,_)},p(t,[e]){N(n,v=xt(w,[{fill:"none"},{height:"50"},{viewBox:"0 0 280 50"},{width:"280"},{xmlns:"http://www.w3.org/2000/svg"},1&e&&t[0]]))},i:e,o:e,d(t){t&&P(n)}}}function qs(t,e,n){return t.$$set=t=>{n(0,e=o(o({},e),m(t)))},[e=m(e)]}class Ys extends zt{constructor(t){super(),Pt(this,t,qs,Us,c,{})}}function Xs(t){let n,o,r,s;return r=new Ys({}),{c(){n=L("div"),o=L("div"),St(r.$$.fragment),A(o,"class","jb-settings-header__logo"),A(n,"class","jb-settings-header")},m(t,e){C(t,n,e),j(n,o),Et(r,o,null),s=!0},p:e,i(t){s||(wt(r.$$.fragment,t),s=!0)},o(t){vt(r.$$.fragment,t),s=!1},d(t){t&&P(n),Ct(r)}}}class Gs extends zt{constructor(t){super(),Pt(this,t,null,Xs,c,{})}}function Ks(t){let e,n;return e=new je({}),{c(){St(e.$$.fragment)},m(t,o){Et(e,t,o),n=!0},i(t){n||(wt(e.$$.fragment,t),n=!0)},o(t){vt(e.$$.fragment,t),n=!1},d(t){Ct(e,t)}}}function Qs(t){let e,n;return e=new Is({}),{c(){St(e.$$.fragment)},m(t,o){Et(e,t,o),n=!0},i(t){n||(wt(e.$$.fragment,t),n=!0)},o(t){vt(e.$$.fragment,t),n=!1},d(t){Ct(e,t)}}}function Zs(t){let e,n,o,r,s,i,a,c,l,u;r=new Gs({});const d=[Qs,Ks],p=[];function h(t,e){return t[0].connected||!me.site.online?0:1}return i=h(t),a=p[i]=d[i](t),l=new Ds({}),{c(){e=L("div"),n=L("div"),o=L("div"),St(r.$$.fragment),s=M(),a.c(),c=M(),St(l.$$.fragment),A(o,"class","jb-container"),A(n,"id","jb-settings"),A(n,"class","jb-settings"),A(e,"id","jb-admin-settings")},m(t,a){C(t,e,a),j(e,n),j(n,o),Et(r,o,null),j(n,s),p[i].m(n,null),j(n,c),Et(l,n,null),u=!0},p(t,[e]){let o=i;i=h(t),i!==o&&(bt(),vt(p[o],1,1,(()=>{p[o]=null})),_t(),a=p[i],a||(a=p[i]=d[i](t),a.c()),wt(a,1),a.m(n,c))},i(t){u||(wt(r.$$.fragment,t),wt(a),wt(l.$$.fragment,t),u=!0)},o(t){vt(r.$$.fragment,t),vt(a),vt(l.$$.fragment,t),u=!1},d(t){t&&P(e),Ct(r),p[i].d(),Ct(l)}}}function ti(t,e,n){let o;return u(t,ne,(t=>n(0,o=t))),[o]}const ei=document.getElementById("jb-admin-settings");return new class extends zt{constructor(t){super(),Pt(this,t,ti,Zs,c,{})}}({target:ei})}(wp.i18n);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
var app=function(t,e,n,o){"use strict";function r(t){return t&&"object"==typeof t&&"default"in t?t:{default:t}}var s=r(t),i=r(n);function c(){}const a=t=>t;function l(t,e){for(const n in e)t[n]=e[n];return t}function u(t){return t()}function p(){return Object.create(null)}function d(t){t.forEach(u)}function m(t){return"function"==typeof t}function g(t,e){return t!=t?e==e:t!==e||t&&"object"==typeof t||"function"==typeof t}let f;function h(t,...e){if(null==t)return c;const n=t.subscribe(...e);return n.unsubscribe?()=>n.unsubscribe():n}function b(t){let e;return h(t,(t=>e=t))(),e}function $(t,e,n){t.$$.on_destroy.push(h(e,n))}function y(t,e,n,o){if(t){const r=_(t,e,n,o);return t[0](r)}}function _(t,e,n,o){return t[1]&&o?l(n.ctx.slice(),t[1](o(e))):n.ctx}function v(t,e,n,o){if(t[2]&&o){const r=t[2](o(n));if(void 0===e.dirty)return r;if("object"==typeof r){const t=[],n=Math.max(e.dirty.length,r.length);for(let o=0;o<n;o+=1)t[o]=e.dirty[o]|r[o];return t}return e.dirty|r}return e.dirty}function w(t,e,n,o,r,s){if(r){const i=_(e,n,o,s);t.p(i,r)}}function k(t){if(t.ctx.length>32){const e=[],n=t.ctx.length/32;for(let t=0;t<n;t++)e[t]=-1;return e}return-1}function j(t){const e={};for(const n in t)"$"!==n[0]&&(e[n]=t[n]);return e}function x(t,e){const n={};e=new Set(e);for(const o in t)e.has(o)||"$"===o[0]||(n[o]=t[o]);return n}const S="undefined"!=typeof window;let C=S?()=>window.performance.now():()=>Date.now(),E=S?t=>requestAnimationFrame(t):c;const P=new Set;function B(t){P.forEach((e=>{e.c(t)||(P.delete(e),e.f())})),0!==P.size&&E(B)}let T=!1;function L(t,e,n,o){for(;t<e;){const r=t+(e-t>>1);n(r)<=o?t=r+1:e=r}return t}function R(t,e){t.appendChild(e)}function O(t){if(!t)return document;const e=t.getRootNode?t.getRootNode():t.ownerDocument;return e&&e.host?e:t.ownerDocument}function N(t){const e=F("style");return function(t,e){R(t.head||t,e)}(O(t),e),e}function M(t,e){if(T){for(!function(t){if(t.hydrate_init)return;t.hydrate_init=!0;let e=t.childNodes;if("HEAD"===t.nodeName){const t=[];for(let n=0;n<e.length;n++){const o=e[n];void 0!==o.claim_order&&t.push(o)}e=t}const n=new Int32Array(e.length+1),o=new Int32Array(e.length);n[0]=-1;let r=0;for(let t=0;t<e.length;t++){const s=e[t].claim_order,i=(r>0&&e[n[r]].claim_order<=s?r+1:L(1,r,(t=>e[n[t]].claim_order),s))-1;o[t]=n[i]+1;const c=i+1;n[c]=t,r=Math.max(c,r)}const s=[],i=[];let c=e.length-1;for(let t=n[r]+1;0!=t;t=o[t-1]){for(s.push(e[t-1]);c>=t;c--)i.push(e[c]);c--}for(;c>=0;c--)i.push(e[c]);s.reverse(),i.sort(((t,e)=>t.claim_order-e.claim_order));for(let e=0,n=0;e<i.length;e++){for(;n<s.length&&i[e].claim_order>=s[n].claim_order;)n++;const o=n<s.length?s[n]:null;t.insertBefore(i[e],o)}}(t),(void 0===t.actual_end_child||null!==t.actual_end_child&&t.actual_end_child.parentElement!==t)&&(t.actual_end_child=t.firstChild);null!==t.actual_end_child&&void 0===t.actual_end_child.claim_order;)t.actual_end_child=t.actual_end_child.nextSibling;e!==t.actual_end_child?void 0===e.claim_order&&e.parentNode===t||t.insertBefore(e,t.actual_end_child):t.actual_end_child=e.nextSibling}else e.parentNode===t&&null===e.nextSibling||t.appendChild(e)}function z(t,e,n){t.insertBefore(e,n||null)}function A(t,e,n){T&&!n?M(t,e):e.parentNode===t&&e.nextSibling==n||t.insertBefore(e,n||null)}function D(t){t.parentNode.removeChild(t)}function I(t,e){for(let n=0;n<t.length;n+=1)t[n]&&t[n].d(e)}function F(t){return document.createElement(t)}function U(t){return document.createElementNS("http://www.w3.org/2000/svg",t)}function J(t){return document.createTextNode(t)}function V(){return J(" ")}function H(){return J("")}function W(t,e,n,o){return t.addEventListener(e,n,o),()=>t.removeEventListener(e,n,o)}function q(t){return function(e){return e.preventDefault(),t.call(this,e)}}function Y(t,e,n){null==n?t.removeAttribute(e):t.getAttribute(e)!==n&&t.setAttribute(e,n)}function G(t,e){for(const n in e)Y(t,n,e[n])}function K(t){return Array.from(t.childNodes)}function X(t,e,n){return function(t,e,n,o){return function(t,e,n,o,r=!1){!function(t){void 0===t.claim_info&&(t.claim_info={last_index:0,total_claimed:0})}(t);const s=(()=>{for(let o=t.claim_info.last_index;o<t.length;o++){const s=t[o];if(e(s)){const e=n(s);return void 0===e?t.splice(o,1):t[o]=e,r||(t.claim_info.last_index=o),s}}for(let o=t.claim_info.last_index-1;o>=0;o--){const s=t[o];if(e(s)){const e=n(s);return void 0===e?t.splice(o,1):t[o]=e,r?void 0===e&&t.claim_info.last_index--:t.claim_info.last_index=o,s}}return o()})();return s.claim_order=t.claim_info.total_claimed,t.claim_info.total_claimed+=1,s}(t,(t=>t.nodeName===e),(t=>{const e=[];for(let o=0;o<t.attributes.length;o++){const r=t.attributes[o];n[r.name]||e.push(r.name)}e.forEach((e=>t.removeAttribute(e)))}),(()=>o(e)))}(t,e,n,U)}function Z(t,e){e=""+e,t.wholeText!==e&&(t.data=e)}function Q(t,e,n,o){t.style.setProperty(e,n,o?"important":"")}function tt(t,e,n){t.classList[n?"add":"remove"](e)}function et(t,e,n=!1){const o=document.createEvent("CustomEvent");return o.initCustomEvent(t,n,!1,e),o}const nt=new Set;let ot,rt=0;function st(t,e,n,o,r,s,i,c=0){const a=16.666/o;let l="{\n";for(let t=0;t<=1;t+=a){const o=e+(n-e)*s(t);l+=100*t+`%{${i(o,1-o)}}\n`}const u=l+`100% {${i(n,1-n)}}\n}`,p=`__svelte_${function(t){let e=5381,n=t.length;for(;n--;)e=(e<<5)-e^t.charCodeAt(n);return e>>>0}(u)}_${c}`,d=O(t);nt.add(d);const m=d.__svelte_stylesheet||(d.__svelte_stylesheet=N(t).sheet),g=d.__svelte_rules||(d.__svelte_rules={});g[p]||(g[p]=!0,m.insertRule(`@keyframes ${p} ${u}`,m.cssRules.length));const f=t.style.animation||"";return t.style.animation=`${f?`${f}, `:""}${p} ${o}ms linear ${r}ms 1 both`,rt+=1,p}function it(t,e){const n=(t.style.animation||"").split(", "),o=n.filter(e?t=>t.indexOf(e)<0:t=>-1===t.indexOf("__svelte")),r=n.length-o.length;r&&(t.style.animation=o.join(", "),rt-=r,rt||E((()=>{rt||(nt.forEach((t=>{const e=t.__svelte_stylesheet;let n=e.cssRules.length;for(;n--;)e.deleteRule(n);t.__svelte_rules={}})),nt.clear())})))}function ct(t){ot=t}function at(){if(!ot)throw new Error("Function called outside component initialization");return ot}function lt(t){at().$$.on_mount.push(t)}function ut(t){at().$$.on_destroy.push(t)}function pt(){const t=at();return(e,n)=>{const o=t.$$.callbacks[e];if(o){const r=et(e,n);o.slice().forEach((e=>{e.call(t,r)}))}}}function dt(t,e){at().$$.context.set(t,e)}function mt(t){return at().$$.context.get(t)}function gt(t,e){const n=t.$$.callbacks[e.type];n&&n.slice().forEach((t=>t.call(this,e)))}const ft=[],ht=[],bt=[],$t=[],yt=Promise.resolve();let _t=!1;function vt(){_t||(_t=!0,yt.then(xt))}function wt(t){bt.push(t)}let kt=!1;const jt=new Set;function xt(){if(!kt){kt=!0;do{for(let t=0;t<ft.length;t+=1){const e=ft[t];ct(e),St(e.$$)}for(ct(null),ft.length=0;ht.length;)ht.pop()();for(let t=0;t<bt.length;t+=1){const e=bt[t];jt.has(e)||(jt.add(e),e())}bt.length=0}while(ft.length);for(;$t.length;)$t.pop()();_t=!1,kt=!1,jt.clear()}}function St(t){if(null!==t.fragment){t.update(),d(t.before_update);const e=t.dirty;t.dirty=[-1],t.fragment&&t.fragment.p(t.ctx,e),t.after_update.forEach(wt)}}let Ct;function Et(t,e,n){t.dispatchEvent(et(`${e?"intro":"outro"}${n}`))}const Pt=new Set;let Bt;function Tt(){Bt={r:0,c:[],p:Bt}}function Lt(){Bt.r||d(Bt.c),Bt=Bt.p}function Rt(t,e){t&&t.i&&(Pt.delete(t),t.i(e))}function Ot(t,e,n,o){if(t&&t.o){if(Pt.has(t))return;Pt.add(t),Bt.c.push((()=>{Pt.delete(t),o&&(n&&t.d(1),o())})),t.o(e)}}const Nt={duration:0};function Mt(t,e,n,o){let r=e(t,n),s=o?0:1,i=null,l=null,u=null;function p(){u&&it(t,u)}function g(t,e){const n=t.b-s;return e*=Math.abs(n),{a:s,b:t.b,d:n,duration:e,start:t.start,end:t.start+e,group:t.group}}function f(e){const{delay:n=0,duration:o=300,easing:m=a,tick:f=c,css:h}=r||Nt,b={start:C()+n,b:e};e||(b.group=Bt,Bt.r+=1),i||l?l=b:(h&&(p(),u=st(t,s,e,o,n,m,h)),e&&f(0,1),i=g(b,o),wt((()=>Et(t,e,"start"))),function(t){let e;0===P.size&&E(B),new Promise((n=>{P.add(e={c:t,f:n})}))}((e=>{if(l&&e>l.start&&(i=g(l,o),l=null,Et(t,i.b,"start"),h&&(p(),u=st(t,s,i.b,i.duration,0,m,r.css))),i)if(e>=i.end)f(s=i.b,1-s),Et(t,i.b,"end"),l||(i.b?p():--i.group.r||d(i.group.c)),i=null;else if(e>=i.start){const t=e-i.start;s=i.a+i.d*m(t/i.duration),f(s,1-s)}return!(!i&&!l)})))}return{run(t){m(r)?(Ct||(Ct=Promise.resolve(),Ct.then((()=>{Ct=null}))),Ct).then((()=>{r=r(),f(t)})):f(t)},end(){p(),i=l=null}}}function zt(t,e){Ot(t,1,1,(()=>{e.delete(t.key)}))}function At(t,e){const n={},o={},r={$$scope:1};let s=t.length;for(;s--;){const i=t[s],c=e[s];if(c){for(const t in i)t in c||(o[t]=1);for(const t in c)r[t]||(n[t]=c[t],r[t]=1);t[s]=c}else for(const t in i)r[t]=1}for(const t in o)t in n||(n[t]=void 0);return n}function Dt(t){return"object"==typeof t&&null!==t?t:{}}function It(t){t&&t.c()}function Ft(t,e,n,o){const{fragment:r,on_mount:s,on_destroy:i,after_update:c}=t.$$;r&&r.m(e,n),o||wt((()=>{const e=s.map(u).filter(m);i?i.push(...e):d(e),t.$$.on_mount=[]})),c.forEach(wt)}function Ut(t,e){const n=t.$$;null!==n.fragment&&(d(n.on_destroy),n.fragment&&n.fragment.d(e),n.on_destroy=n.fragment=null,n.ctx=[])}function Jt(t,e,n,o,r,s,i,a=[-1]){const l=ot;ct(t);const u=t.$$={fragment:null,ctx:null,props:s,update:c,not_equal:r,bound:p(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(l?l.$$.context:e.context||[]),callbacks:p(),dirty:a,skip_bound:!1,root:e.target||l.$$.root};i&&i(u.root);let m=!1;if(u.ctx=n?n(t,e.props||{},((e,n,...o)=>{const s=o.length?o[0]:n;return u.ctx&&r(u.ctx[e],u.ctx[e]=s)&&(!u.skip_bound&&u.bound[e]&&u.bound[e](s),m&&function(t,e){-1===t.$$.dirty[0]&&(ft.push(t),vt(),t.$$.dirty.fill(0)),t.$$.dirty[e/31|0]|=1<<e%31}(t,e)),n})):[],u.update(),m=!0,d(u.before_update),u.fragment=!!o&&o(u.ctx),e.target){if(e.hydrate){T=!0;const t=K(e.target);u.fragment&&u.fragment.l(t),t.forEach(D)}else u.fragment&&u.fragment.c();e.intro&&Rt(t.$$.fragment),Ft(t,e.target,e.anchor,e.customElement),T=!1,xt()}ct(l)}class Vt{$destroy(){Ut(this,1),this.$destroy=c}$on(t,e){const n=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return n.push(e),()=>{const t=n.indexOf(e);-1!==t&&n.splice(t,1)}}$set(t){var e;this.$$set&&(e=t,0!==Object.keys(e).length)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}}var Ht={exports:{}},Wt={};Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;!function(){try{if(!Object.assign)return!1;var t=new String("abc");if(t[5]="de","5"===Object.getOwnPropertyNames(t)[0])return!1;for(var e={},n=0;n<10;n++)e["_"+String.fromCharCode(n)]=n;var o=Object.getOwnPropertyNames(e).map((function(t){return e[t]}));if("0123456789"!==o.join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(t){r[t]=t})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(t){return!1}}()||Object.assign;var qt=s.default,Yt=60103;if(Wt.Fragment=60107,"function"==typeof Symbol&&Symbol.for){var Gt=Symbol.for;Yt=Gt("react.element"),Wt.Fragment=Gt("react.fragment")}var Kt=qt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,Xt=Object.prototype.hasOwnProperty,Zt={key:!0,ref:!0,__self:!0,__source:!0};function Qt(t,e,n){var o,r={},s=null,i=null;for(o in void 0!==n&&(s=""+n),void 0!==e.key&&(s=""+e.key),void 0!==e.ref&&(i=e.ref),e)Xt.call(e,o)&&!Zt.hasOwnProperty(o)&&(r[o]=e[o]);if(t&&t.defaultProps)for(o in e=t.defaultProps)void 0===r[o]&&(r[o]=e[o]);return{$$typeof:Yt,type:t,key:s,ref:i,props:r,_owner:Kt.current}}function te(t,e={}){const n={};let o;if("undefined"!=typeof window&&(o=window.Initial_State?.calypsoEnv),0===t.search("https://")){const e=new URL(t);t=`https://${e.host}${e.pathname}`,n.url=encodeURIComponent(t)}else n.source=encodeURIComponent(t);Object.keys(e).map((t=>{n[t]=encodeURIComponent(e[t])})),!Object.keys(n).includes("site")&&"undefined"!=typeof jetpack_redirects&&jetpack_redirects.hasOwnProperty("currentSiteRawUrl")&&(n.site=jetpack_redirects.currentSiteRawUrl),o&&(n.calypso_env=o);return"https://jetpack.com/redirect/?"+Object.keys(n).map((t=>t+"="+n[t])).join("&")}Wt.jsx=Qt,Wt.jsxs=Qt,Ht.exports=Wt;var ee={exports:{}};function ne(){}function oe(){}oe.resetWarningCache=ne;ee.exports=function(){function t(t,e,n,o,r,s){if("SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"!==s){var i=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw i.name="Invariant Violation",i}}function e(){return t}t.isRequired=t;var n={array:t,bigint:t,bool:t,func:t,number:t,object:t,string:t,symbol:t,any:t,arrayOf:e,element:t,elementType:t,instanceOf:e,node:t,objectOf:e,oneOf:e,oneOfType:e,shape:e,exact:e,checkPropTypes:oe,resetWarningCache:ne};return n.PropTypes=n,n}();var re=ee.exports;const se={AED:{symbol:"د.إ.",grouping:",",decimal:".",precision:2},AFN:{symbol:"؋",grouping:",",decimal:".",precision:2},ALL:{symbol:"Lek",grouping:".",decimal:",",precision:2},AMD:{symbol:"֏",grouping:",",decimal:".",precision:2},ANG:{symbol:"ƒ",grouping:",",decimal:".",precision:2},AOA:{symbol:"Kz",grouping:",",decimal:".",precision:2},ARS:{symbol:"$",grouping:".",decimal:",",precision:2},AUD:{symbol:"A$",grouping:",",decimal:".",precision:2},AWG:{symbol:"ƒ",grouping:",",decimal:".",precision:2},AZN:{symbol:"₼",grouping:" ",decimal:",",precision:2},BAM:{symbol:"КМ",grouping:".",decimal:",",precision:2},BBD:{symbol:"Bds$",grouping:",",decimal:".",precision:2},BDT:{symbol:"৳",grouping:",",decimal:".",precision:0},BGN:{symbol:"лв.",grouping:" ",decimal:",",precision:2},BHD:{symbol:"د.ب.",grouping:",",decimal:".",precision:3},BIF:{symbol:"FBu",grouping:",",decimal:".",precision:0},BMD:{symbol:"$",grouping:",",decimal:".",precision:2},BND:{symbol:"$",grouping:".",decimal:",",precision:0},BOB:{symbol:"Bs",grouping:".",decimal:",",precision:2},BRL:{symbol:"R$",grouping:".",decimal:",",precision:2},BSD:{symbol:"$",grouping:",",decimal:".",precision:2},BTC:{symbol:"Ƀ",grouping:",",decimal:".",precision:2},BTN:{symbol:"Nu.",grouping:",",decimal:".",precision:1},BWP:{symbol:"P",grouping:",",decimal:".",precision:2},BYR:{symbol:"р.",grouping:" ",decimal:",",precision:2},BZD:{symbol:"BZ$",grouping:",",decimal:".",precision:2},CAD:{symbol:"C$",grouping:",",decimal:".",precision:2},CDF:{symbol:"FC",grouping:",",decimal:".",precision:2},CHF:{symbol:"CHF",grouping:"'",decimal:".",precision:2},CLP:{symbol:"$",grouping:".",decimal:",",precision:2},CNY:{symbol:"¥",grouping:",",decimal:".",precision:2},COP:{symbol:"$",grouping:".",decimal:",",precision:2},CRC:{symbol:"₡",grouping:".",decimal:",",precision:2},CUC:{symbol:"CUC",grouping:",",decimal:".",precision:2},CUP:{symbol:"$MN",grouping:",",decimal:".",precision:2},CVE:{symbol:"$",grouping:",",decimal:".",precision:2},CZK:{symbol:"Kč",grouping:" ",decimal:",",precision:2},DJF:{symbol:"Fdj",grouping:",",decimal:".",precision:0},DKK:{symbol:"kr.",grouping:"",decimal:",",precision:2},DOP:{symbol:"RD$",grouping:",",decimal:".",precision:2},DZD:{symbol:"د.ج.",grouping:",",decimal:".",precision:2},EGP:{symbol:"ج.م.",grouping:",",decimal:".",precision:2},ERN:{symbol:"Nfk",grouping:",",decimal:".",precision:2},ETB:{symbol:"ETB",grouping:",",decimal:".",precision:2},EUR:{symbol:"€",grouping:".",decimal:",",precision:2},FJD:{symbol:"FJ$",grouping:",",decimal:".",precision:2},FKP:{symbol:"£",grouping:",",decimal:".",precision:2},GBP:{symbol:"£",grouping:",",decimal:".",precision:2},GEL:{symbol:"Lari",grouping:" ",decimal:",",precision:2},GHS:{symbol:"₵",grouping:",",decimal:".",precision:2},GIP:{symbol:"£",grouping:",",decimal:".",precision:2},GMD:{symbol:"D",grouping:",",decimal:".",precision:2},GNF:{symbol:"FG",grouping:",",decimal:".",precision:0},GTQ:{symbol:"Q",grouping:",",decimal:".",precision:2},GYD:{symbol:"G$",grouping:",",decimal:".",precision:2},HKD:{symbol:"HK$",grouping:",",decimal:".",precision:2},HNL:{symbol:"L.",grouping:",",decimal:".",precision:2},HRK:{symbol:"kn",grouping:".",decimal:",",precision:2},HTG:{symbol:"G",grouping:",",decimal:".",precision:2},HUF:{symbol:"Ft",grouping:".",decimal:",",precision:0},IDR:{symbol:"Rp",grouping:".",decimal:",",precision:0},ILS:{symbol:"₪",grouping:",",decimal:".",precision:2},INR:{symbol:"₹",grouping:",",decimal:".",precision:2},IQD:{symbol:"د.ع.",grouping:",",decimal:".",precision:2},IRR:{symbol:"﷼",grouping:",",decimal:"/",precision:2},ISK:{symbol:"kr.",grouping:".",decimal:",",precision:0},JMD:{symbol:"J$",grouping:",",decimal:".",precision:2},JOD:{symbol:"د.ا.",grouping:",",decimal:".",precision:3},JPY:{symbol:"¥",grouping:",",decimal:".",precision:0},KES:{symbol:"S",grouping:",",decimal:".",precision:2},KGS:{symbol:"сом",grouping:" ",decimal:"-",precision:2},KHR:{symbol:"៛",grouping:",",decimal:".",precision:0},KMF:{symbol:"CF",grouping:",",decimal:".",precision:2},KPW:{symbol:"₩",grouping:",",decimal:".",precision:0},KRW:{symbol:"₩",grouping:",",decimal:".",precision:0},KWD:{symbol:"د.ك.",grouping:",",decimal:".",precision:3},KYD:{symbol:"$",grouping:",",decimal:".",precision:2},KZT:{symbol:"₸",grouping:" ",decimal:"-",precision:2},LAK:{symbol:"₭",grouping:",",decimal:".",precision:0},LBP:{symbol:"ل.ل.",grouping:",",decimal:".",precision:2},LKR:{symbol:"₨",grouping:",",decimal:".",precision:0},LRD:{symbol:"L$",grouping:",",decimal:".",precision:2},LSL:{symbol:"M",grouping:",",decimal:".",precision:2},LYD:{symbol:"د.ل.",grouping:",",decimal:".",precision:3},MAD:{symbol:"د.م.",grouping:",",decimal:".",precision:2},MDL:{symbol:"lei",grouping:",",decimal:".",precision:2},MGA:{symbol:"Ar",grouping:",",decimal:".",precision:0},MKD:{symbol:"ден.",grouping:".",decimal:",",precision:2},MMK:{symbol:"K",grouping:",",decimal:".",precision:2},MNT:{symbol:"₮",grouping:" ",decimal:",",precision:2},MOP:{symbol:"MOP$",grouping:",",decimal:".",precision:2},MRO:{symbol:"UM",grouping:",",decimal:".",precision:2},MTL:{symbol:"₤",grouping:",",decimal:".",precision:2},MUR:{symbol:"₨",grouping:",",decimal:".",precision:2},MVR:{symbol:"MVR",grouping:",",decimal:".",precision:1},MWK:{symbol:"MK",grouping:",",decimal:".",precision:2},MXN:{symbol:"MX$",grouping:",",decimal:".",precision:2},MYR:{symbol:"RM",grouping:",",decimal:".",precision:2},MZN:{symbol:"MT",grouping:",",decimal:".",precision:0},NAD:{symbol:"N$",grouping:",",decimal:".",precision:2},NGN:{symbol:"₦",grouping:",",decimal:".",precision:2},NIO:{symbol:"C$",grouping:",",decimal:".",precision:2},NOK:{symbol:"kr",grouping:" ",decimal:",",precision:2},NPR:{symbol:"₨",grouping:",",decimal:".",precision:2},NZD:{symbol:"NZ$",grouping:",",decimal:".",precision:2},OMR:{symbol:"﷼",grouping:",",decimal:".",precision:3},PAB:{symbol:"B/.",grouping:",",decimal:".",precision:2},PEN:{symbol:"S/.",grouping:",",decimal:".",precision:2},PGK:{symbol:"K",grouping:",",decimal:".",precision:2},PHP:{symbol:"₱",grouping:",",decimal:".",precision:2},PKR:{symbol:"₨",grouping:",",decimal:".",precision:2},PLN:{symbol:"zł",grouping:" ",decimal:",",precision:2},PYG:{symbol:"₲",grouping:".",decimal:",",precision:2},QAR:{symbol:"﷼",grouping:",",decimal:".",precision:2},RON:{symbol:"lei",grouping:".",decimal:",",precision:2},RSD:{symbol:"Дин.",grouping:".",decimal:",",precision:2},RUB:{symbol:"₽",grouping:" ",decimal:",",precision:2},RWF:{symbol:"RWF",grouping:" ",decimal:",",precision:2},SAR:{symbol:"﷼",grouping:",",decimal:".",precision:2},SBD:{symbol:"S$",grouping:",",decimal:".",precision:2},SCR:{symbol:"₨",grouping:",",decimal:".",precision:2},SDD:{symbol:"LSd",grouping:",",decimal:".",precision:2},SDG:{symbol:"£",grouping:",",decimal:".",precision:2},SEK:{symbol:"kr",grouping:",",decimal:".",precision:2},SGD:{symbol:"S$",grouping:",",decimal:".",precision:2},SHP:{symbol:"£",grouping:",",decimal:".",precision:2},SLL:{symbol:"Le",grouping:",",decimal:".",precision:2},SOS:{symbol:"S",grouping:",",decimal:".",precision:2},SRD:{symbol:"$",grouping:",",decimal:".",precision:2},STD:{symbol:"Db",grouping:",",decimal:".",precision:2},SVC:{symbol:"₡",grouping:",",decimal:".",precision:2},SYP:{symbol:"£",grouping:",",decimal:".",precision:2},SZL:{symbol:"E",grouping:",",decimal:".",precision:2},THB:{symbol:"฿",grouping:",",decimal:".",precision:2},TJS:{symbol:"TJS",grouping:" ",decimal:";",precision:2},TMT:{symbol:"m",grouping:" ",decimal:",",precision:0},TND:{symbol:"د.ت.",grouping:",",decimal:".",precision:3},TOP:{symbol:"T$",grouping:",",decimal:".",precision:2},TRY:{symbol:"TL",grouping:".",decimal:",",precision:2},TTD:{symbol:"TT$",grouping:",",decimal:".",precision:2},TVD:{symbol:"$T",grouping:",",decimal:".",precision:2},TWD:{symbol:"NT$",grouping:",",decimal:".",precision:2},TZS:{symbol:"TSh",grouping:",",decimal:".",precision:2},UAH:{symbol:"₴",grouping:" ",decimal:",",precision:2},UGX:{symbol:"USh",grouping:",",decimal:".",precision:2},USD:{symbol:"$",grouping:",",decimal:".",precision:2},UYU:{symbol:"$U",grouping:".",decimal:",",precision:2},UZS:{symbol:"сўм",grouping:" ",decimal:",",precision:2},VEB:{symbol:"Bs.",grouping:",",decimal:".",precision:2},VEF:{symbol:"Bs. F.",grouping:".",decimal:",",precision:2},VND:{symbol:"₫",grouping:".",decimal:",",precision:1},VUV:{symbol:"VT",grouping:",",decimal:".",precision:0},WST:{symbol:"WS$",grouping:",",decimal:".",precision:2},XAF:{symbol:"F",grouping:",",decimal:".",precision:2},XCD:{symbol:"$",grouping:",",decimal:".",precision:2},XOF:{symbol:"F",grouping:" ",decimal:",",precision:2},XPF:{symbol:"F",grouping:",",decimal:".",precision:2},YER:{symbol:"﷼",grouping:",",decimal:".",precision:2},ZAR:{symbol:"R",grouping:" ",decimal:",",precision:2},ZMW:{symbol:"ZK",grouping:",",decimal:".",precision:2},WON:{symbol:"₩",grouping:",",decimal:".",precision:2}};function ie(t,e=0,n=".",o=","){const r=(t+"").replace(/[^0-9+\-Ee.]/g,""),s=isFinite(+r)?+r:0,i=isFinite(+e)?Math.abs(e):0,c=(i?
|
2 |
+
/*
|
3 |
+
* Exposes number format capability
|
4 |
+
*
|
5 |
+
* @copyright Copyright (c) 2013 Kevin van Zonneveld (http://kvz.io) and Contributors (http://phpjs.org/authors).
|
6 |
+
* @license See CREDITS.md
|
7 |
+
* @see https://github.com/kvz/phpjs/blob/ffe1356af23a6f2512c84c954dd4e828e92579fa/functions/strings/number_format.js
|
8 |
+
*/
|
9 |
+
function(t,e){const n=Math.pow(10,e);return""+(Math.round(t*n)/n).toFixed(e)}(s,i):""+Math.round(s)).split(".");return c[0].length>3&&(c[0]=c[0].replace(/\B(?=(?:\d{3})+(?!\d))/g,o)),(c[1]||"").length<i&&(c[1]=c[1]||"",c[1]+=new Array(i-c[1].length+1).join("0")),c.join(n)}function ce(t,e,n={}){const o=function(t){return se[t]||{symbol:"$",grouping:",",decimal:".",precision:2}}(e);if(!o||isNaN(t))return null;const{decimal:r,grouping:s,precision:i,symbol:c}={...o,...n},a=t<0?"-":"",l=Math.abs(t),u=Math.floor(l);return{sign:a,symbol:c,integer:ie(l,i,r,s).split(r)[0],fraction:i>0?ie(l-u,i,r,s).slice(1):""}}const ae=t=>-1===t.fraction.indexOf("00"),le=t=>{const n=ce(t.priceBefore,t.currencyCode),r=ce(t.priceAfter,t.currencyCode);return Ht.exports.jsxs("div",{className:"jp-components__pricing-card",children:[t.icon&&Ht.exports.jsx("div",{className:"jp-components__pricing-card__icon",children:Ht.exports.jsx("img",{src:t.icon,alt:e.sprintf(e.__("Icon for the product %s","jetpack"),t.title)})}),Ht.exports.jsx("h1",{className:"jp-components__pricing-card__title",children:t.title}),Ht.exports.jsxs("div",{className:"jp-components__pricing-card__pricing",children:[t.priceBefore!==t.priceAfter&&Ht.exports.jsxs("div",{className:"jp-components__pricing-card__price-before",children:[Ht.exports.jsx("span",{className:"jp-components__pricing-card__currency",children:n.symbol}),Ht.exports.jsx("span",{className:"jp-components__pricing-card__price",children:n.integer}),ae(n)&&Ht.exports.jsxs("span",{className:"jp-components__pricing-card__price-decimal",children:[" ",n.fraction]}),Ht.exports.jsx("div",{className:"jp-components__pricing-card__price-strikethrough"})]}),Ht.exports.jsxs("div",{className:"jp-components__pricing-card__price-after",children:[Ht.exports.jsx("span",{className:"jp-components__pricing-card__currency",children:r.symbol}),Ht.exports.jsx("span",{className:"jp-components__pricing-card__price",children:r.integer}),ae(r)&&Ht.exports.jsx("span",{className:"jp-components__pricing-card__price-decimal",children:r.fraction})]}),Ht.exports.jsx("span",{className:"jp-components__pricing-card__price-details",children:t.priceDetails})]}),t.children&&Ht.exports.jsx("div",{className:"jp-components__pricing-card__extra-content-wrapper",children:t.children}),t.ctaText&&Ht.exports.jsx("div",{className:"jp-components__pricing-card__cta",children:Ht.exports.jsx(o.Button,{className:"jp-components__pricing-card__button",label:t.ctaText,onClick:t.onCtaClick,children:t.ctaText})}),t.infoText&&Ht.exports.jsx("div",{className:"jp-components__pricing-card__info",children:t.infoText})]})};le.propTypes={title:re.string.isRequired,icon:re.string,priceBefore:re.number.isRequired,priceAfter:re.number.isRequired,priceDetails:re.string,currencyCode:re.string,ctaText:re.string,onCtaClick:re.func,infoText:re.oneOfType([re.string,re.object])},le.defaultProps={currencyCode:"USD",priceDetails:e.__("/month, paid yearly","jetpack")};var ue=le;let pe,de,me,ge;const fe=/<(\/)?(\w+)\s*(\/)?>/g;function he(t,e,n,o,r){return{element:t,tokenStart:e,tokenLength:n,prevOffset:o,leadingTextStart:r,children:[]}}const be=e=>{const n="object"==typeof e,o=n&&Object.values(e);return n&&o.length&&o.every((e=>t.isValidElement(e)))};function $e(e){const n=function(){const t=fe.exec(pe);if(null===t)return["no-more-tokens"];const e=t.index,[n,o,r,s]=t,i=n.length;if(s)return["self-closed",r,e,i];if(o)return["closer",r,e,i];return["opener",r,e,i]}(),[o,r,s,i]=n,c=ge.length,a=s>de?de:null;if(!e[r])return ye(),!1;switch(o){case"no-more-tokens":if(0!==c){const{leadingTextStart:t,tokenStart:e}=ge.pop();me.push(pe.substr(t,e))}return ye(),!1;case"self-closed":return 0===c?(null!==a&&me.push(pe.substr(a,s-a)),me.push(e[r]),de=s+i,!0):(_e(he(e[r],s,i)),de=s+i,!0);case"opener":return ge.push(he(e[r],s,i,s+i,a)),de=s+i,!0;case"closer":if(1===c)return function(e){const{element:n,leadingTextStart:o,prevOffset:r,tokenStart:s,children:i}=ge.pop(),c=e?pe.substr(r,e-r):pe.substr(r);c&&i.push(c);null!==o&&me.push(pe.substr(o,s-o));me.push(t.cloneElement(n,null,...i))}(s),de=s+i,!0;const n=ge.pop(),o=pe.substr(n.prevOffset,s-n.prevOffset);n.children.push(o),n.prevOffset=s+i;const l=he(n.element,n.tokenStart,n.tokenLength,s+i);return l.children=n.children,_e(l),de=s+i,!0;default:return ye(),!1}}function ye(){const t=pe.length-de;0!==t&&me.push(pe.substr(de,t))}function _e(e){const{element:n,tokenStart:o,tokenLength:r,prevOffset:s,children:i}=e,c=ge[ge.length-1],a=pe.substr(c.prevOffset,o-c.prevOffset);a&&c.children.push(a),c.children.push(t.cloneElement(n,null,...i)),c.prevOffset=s||o+r}var ve=(e,n)=>{if(pe=e,de=0,me=[],ge=[],fe.lastIndex=0,!be(n))throw new TypeError("The conversionMap provided is not valid. It must be an object with values that are WPElements");do{}while($e(n));return t.createElement(t.Fragment,null,...me)};function we(){return we=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t},we.apply(this,arguments)}const ke=[];function je(t,e){return{subscribe:xe(t,e).subscribe}}function xe(t,e=c){let n;const o=new Set;function r(e){if(g(t,e)&&(t=e,n)){const e=!ke.length;for(const e of o)e[1](),ke.push(e,t);if(e){for(let t=0;t<ke.length;t+=2)ke[t][0](ke[t+1]);ke.length=0}}}return{set:r,update:function(e){r(e(t))},subscribe:function(s,i=c){const a=[s,i];return o.add(a),1===o.size&&(n=e(r)||c),s(t),()=>{o.delete(a),0===o.size&&(n(),n=null)}}}}function Se(t,e,n){const o=!Array.isArray(t),r=o?[t]:t,s=e.length<2;return je(n,(t=>{let n=!1;const i=[];let a=0,l=c;const u=()=>{if(a)return;l();const n=e(o?i[0]:i,t);s?t(n):l=m(n)?n:c},p=r.map(((t,e)=>h(t,(t=>{i[e]=t,a&=~(1<<e),n&&u()}),(()=>{a|=1<<e}))));return n=!0,u(),function(){d(p),l()}}))}function Ce(t){let e,n,o,r,s=[{xmlns:"http://www.w3.org/2000/svg"},{viewBox:"0 0 24 24"},t[0]],i={};for(let t=0;t<s.length;t+=1)i=l(i,s[t]);return{c(){e=U("svg"),n=U("rect"),o=U("g"),r=U("path"),this.h()},l(t){e=X(t,"svg",{xmlns:!0,viewBox:!0});var s=K(e);n=X(s,"rect",{x:!0,fill:!0,width:!0,height:!0}),K(n).forEach(D),o=X(s,"g",{});var i=K(o);r=X(i,"path",{d:!0}),K(r).forEach(D),i.forEach(D),s.forEach(D),this.h()},h(){Y(n,"x","0"),Y(n,"fill","none"),Y(n,"width","24"),Y(n,"height","24"),Y(r,"d","M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20v-2z"),G(e,i)},m(t,s){A(t,e,s),M(e,n),M(e,o),M(o,r)},p(t,[n]){G(e,i=At(s,[{xmlns:"http://www.w3.org/2000/svg"},{viewBox:"0 0 24 24"},1&n&&t[0]]))},i:c,o:c,d(t){t&&D(e)}}}function Ee(t,e,n){return t.$$set=t=>{n(0,e=l(l({},e),j(t)))},[e=j(e)]}class Pe extends Vt{constructor(t){super(),Jt(this,t,Ee,Ce,g,{})}}const Be="undefined"==typeof window;const Te={1:"Link",2:"Route",3:"Router",4:"useFocus",5:"useLocation",6:"useMatch",7:"useNavigate",8:"useParams",9:"useResolvable",10:"useResolve",11:"navigate"},Le=t=>Te[t];function Re(t,e,n,o){const r=n&&function(t,e){let n;return 2===t?n=e.path?`path="${e.path}"`:"default":1===t?n=`to="${e.to}"`:3===t&&(n=`basepath="${e.basepath||""}"`),`<${Le(t)} ${n||""} />`}(o||t,n),s=r?`\n\nOccurred in: ${r}`:"",i=Le(t);return`<${i}> ${"function"==typeof e?e(i):e}${s}`}const Oe=(Ne=console.warn,(...t)=>Ne(Re(...t)));var Ne;const Me=t=>1===t.length?"":t;function ze(t){const e=t.indexOf("?"),n=t.indexOf("#"),o=-1!==e,r=-1!==n,s=r?Me(t.substr(n)):"",i=r?t.substr(0,n):t,c=o?Me(i.substr(e)):"";return{pathname:o?i.substr(0,e):i,search:c,hash:s}}const Ae="POP";function De(t){return{...t.location,pathname:encodeURI(decodeURI(t.location.pathname)),state:t.history.state,_key:t.history.state&&t.history.state._key||"initial"}}function Ie(t){let e=[],n=De(t),o=Ae;const r=(t=e)=>t.forEach((t=>t({location:n,action:o})));return{get location(){return n},listen(s){e.push(s);r([s]);const i=function(t,e,n){return t.addEventListener(e,n),()=>t.removeEventListener(e,n)}(t,"popstate",(()=>{n=De(t),o=Ae,r([s])}));return()=>{i(),e=e.filter((t=>t!==s))}},navigate(e,s){const{state:i={},replace:c=!1}=s||{};if(o=c?"REPLACE":"PUSH","number"==typeof e)s&&Oe(11,"Navigation options (state or replace) are not supported, when passing a number as the first argument to navigate. They are ignored."),o=Ae,t.history.go(e);else{const n={...i,_key:Math.random().toString(36).substring(2)};try{t.history[c?"replaceState":"pushState"](n,"",e)}catch(n){t.location[c?"replace":"assign"](e)}}n=De(t),r()}}}function Fe(t,e){return{...ze(e),state:t}}const Ue=!(Be||!window.document||!window.document.createElement),Je=!Be&&"null"===window.location.origin;var Ve;Ie(Ue&&!Je?window:function(t="/"){let e=0,n=[Fe(null,t)];return{get entries(){return n},get location(){return n[e]},addEventListener(){},removeEventListener(){},history:{get state(){return n[e].state},pushState(t,o,r){e++,n=n.slice(0,e),n.push(Fe(t,r))},replaceState(t,o,r){n[e]=Fe(t,r)},go(t){const o=e+t;o<0||o>n.length-1||(e=o)}}}}()),function(t){t.Pop="POP",t.Push="PUSH",t.Replace="REPLACE"}(Ve||(Ve={}));var He="beforeunload";function We(t){void 0===t&&(t={});var e=t.window,n=void 0===e?document.defaultView:e,o=n.history;function r(){var t=Ke(n.location.hash.substr(1)),e=t.pathname,r=void 0===e?"/":e,s=t.search,i=void 0===s?"":s,c=t.hash,a=void 0===c?"":c,l=o.state||{};return[l.idx,{pathname:r,search:i,hash:a,state:l.usr||null,key:l.key||"default"}]}var s=null;function i(){if(s)d.call(s),s=null;else{var t=Ve.Pop,e=r(),n=e[0],o=e[1];if(d.length){if(null!=n){var i=l-n;i&&(s={action:t,location:o,retry:function(){$(-1*i)}},$(i))}}else b(t)}}n.addEventListener("popstate",i),n.addEventListener("hashchange",(function(){Ge(r()[1])!==Ge(u)&&i()}));var c=Ve.Pop,a=r(),l=a[0],u=a[1],p=Ye(),d=Ye();function m(t){return function(){var t=document.querySelector("base"),e="";if(t&&t.getAttribute("href")){var o=n.location.href,r=o.indexOf("#");e=-1===r?o:o.slice(0,r)}return e}()+"#"+("string"==typeof t?t:Ge(t))}function g(t,e){return void 0===e&&(e=null),we({pathname:u.pathname,hash:"",search:""},"string"==typeof t?Ke(t):t,{state:e,key:Math.random().toString(36).substr(2,8)})}function f(t,e){return[{usr:t.state,key:t.key,idx:e},m(t)]}function h(t,e,n){return!d.length||(d.call({action:t,location:e,retry:n}),!1)}function b(t){c=t;var e=r();l=e[0],u=e[1],p.call({action:c,location:u})}function $(t){o.go(t)}null==l&&(l=0,o.replaceState(we({},o.state,{idx:l}),""));var y={get action(){return c},get location(){return u},createHref:m,push:function t(e,r){var s=Ve.Push,i=g(e,r);if(h(s,i,(function(){t(e,r)}))){var c=f(i,l+1),a=c[0],u=c[1];try{o.pushState(a,"",u)}catch(t){n.location.assign(u)}b(s)}},replace:function t(e,n){var r=Ve.Replace,s=g(e,n);if(h(r,s,(function(){t(e,n)}))){var i=f(s,l),c=i[0],a=i[1];o.replaceState(c,"",a),b(r)}},go:$,back:function(){$(-1)},forward:function(){$(1)},listen:function(t){return p.push(t)},block:function(t){var e=d.push(t);return 1===d.length&&n.addEventListener(He,qe),function(){e(),d.length||n.removeEventListener(He,qe)}}};return y}function qe(t){t.preventDefault(),t.returnValue=""}function Ye(){var t=[];return{get length(){return t.length},push:function(e){return t.push(e),function(){t=t.filter((function(t){return t!==e}))}},call:function(e){t.forEach((function(t){return t&&t(e)}))}}}function Ge(t){var e=t.pathname,n=void 0===e?"/":e,o=t.search,r=void 0===o?"":o,s=t.hash,i=void 0===s?"":s;return r&&"?"!==r&&(n+="?"===r.charAt(0)?r:"?"+r),i&&"#"!==i&&(n+="#"===i.charAt(0)?i:"#"+i),n}function Ke(t){var e={};if(t){var n=t.indexOf("#");n>=0&&(e.hash=t.substr(n),t=t.substr(0,n));var o=t.indexOf("?");o>=0&&(e.search=t.substr(o),t=t.substr(0,o)),t&&(e.pathname=t)}return e}var Xe=Ie(function(){const t=We();let e=[];return t.listen((n=>{"POP"===t.action&&e.forEach((t=>t(n)))})),{get location(){return t.location},addEventListener(t,n){"popstate"===t&&e.push(n)},removeEventListener(t,n){"popstate"===t&&(e=e.filter((t=>t!==n)))},history:{get state(){return t.location.state},pushState(e,n,o){t.push(o,e)},replaceState(e,n,o){t.replace(o,e)},go(e){t.go(e)}}}}());function Ze(t){let n,o,r,s,i,a,l,u=e.__("Go back","jetpack-boost")+"";return o=new Pe({}),{c(){n=F("button"),It(o.$$.fragment),r=V(),s=J(u),Y(n,"class","components-button components-button--back is-link close")},m(e,c){z(e,n,c),Ft(o,n,null),R(n,r),R(n,s),i=!0,a||(l=W(n,"click",t[2]),a=!0)},p:c,i(t){i||(Rt(o.$$.fragment,t),i=!0)},o(t){Ot(o.$$.fragment,t),i=!1},d(t){t&&D(n),Ut(o),a=!1,l()}}}function Qe(t,e,n){const{navigate:o}=Xe;let{route:r=-1}=e;return t.$$set=t=>{"route"in t&&n(0,r=t.route)},[r,o,()=>o(r)]}class tn extends Vt{constructor(t){super(),Jt(this,t,Qe,Ze,g,{route:0})}}function en(t){let e;return{c(){e=F("div")},m(n,o){z(n,e,o),t[1](e)},p:c,i:c,o:c,d(n){n&&D(e),t[1](null)}}}function nn(t,e,n){var o=this&&this.__rest||function(t,e){var n={};for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&e.indexOf(o)<0&&(n[o]=t[o]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(t);r<o.length;r++)e.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(t,o[r])&&(n[o[r]]=t[o[r]])}return n};let r;var c;return c=()=>{const{this:t,children:n}=e,c=o(e,["this","children"]);i.default.render(s.default.createElement(t,c,n),r)},at().$$.after_update.push(c),ut((()=>{i.default.unmountComponentAtNode(r)})),t.$$set=t=>{n(3,e=l(l({},e),j(t)))},e=j(e),[r,function(t){ht[t?"unshift":"push"]((()=>{r=t,n(0,r)}))}]}class on extends Vt{constructor(t){super(),Jt(this,t,nn,en,g,{})}}function rn(t,e){return"string"==typeof t?t:t&&t.toString instanceof Function?t.toString():e}function sn(t){return!!t&&t instanceof Object&&!(t instanceof Array)}class cn extends Error{httpCode;body;parseError;constructor(t,e,n){super(),this.httpCode=t,this.body=e,this.parseError=n}get message(){switch(this.httpCode){case 403:return this.getRestApiErrorMessage();case 200:if(this.parseError)return e.sprintf(e.__("Received invalid response while communicating with your WordPress site: %s","jetpack-boost"),this.parseError.message)}return e.sprintf(e.__("HTTP %d error received while communicating with the server.","jetpack-boost"),this.httpCode)}getDisplayBody(){return sn(this.body)?JSON.stringify(this.body,null," "):rn(this.body,"").substring(0,1e3)}getRestApiErrorMessage(){return e.__("Your site's REST API does not seem to be accessible. Jetpack Boost requires access to your REST API in order to receive site performance scores. Please make sure that your site's REST API is active and accessible, and try again.","jetpack-boost")}}async function an(t,n,o=null){const r={method:t,mode:"cors",headers:{"X-WP-Nonce":wpApiSettings.nonce}};"post"!==t&&"delete"!==t||!o||(r.body=JSON.stringify(o),r.headers["Content-Type"]="application/json");const s=function(t){return wpApiSettings.root+Jetpack_Boost.api.namespace+Jetpack_Boost.api.prefix+t}(n);let i;try{i=await fetch(s,r)}catch(t){const n=r;delete n.body,delete n.headers["X-WP-Nonce"];const o={requestInitiator:window.location.href,requestUrl:s,requestArgs:n,originalErrorMessage:t.toString()};throw new Error(e.sprintf(e.__("An error occurred while trying to communicate with the site REST API. Extra debug info: %s","jetpack-boost"),JSON.stringify(o)))}return i}async function ln(t,e,n=null){const o=await an(t,e,n);let r,s;try{r=await o.text()}catch(t){throw new cn(o.status,null,t)}try{s=JSON.parse(r)}catch(t){throw new cn(o.status,r,t)}if(!o.ok)throw new cn(o.status,s,null);return s}var un={get:function(t){return ln("get",t)},post:function(t,e=null){return ln("post",t,e)},delete:function(t,e=null){return ln("delete",t,e)}};const{subscribe:pn,update:dn}=xe(Jetpack_Boost);var mn={subscribe:pn,refresh:async function(){const t=await un.get("/configuration");dn((e=>({...e,...t})))}};function gn(t){let e,n,o=[{width:"32"},{height:"32"},{viewBox:"0 0 32 32"},{fill:"none"},{xmlns:"http://www.w3.org/2000/svg"},t[0]],r={};for(let t=0;t<o.length;t+=1)r=l(r,o[t]);return{c(){e=U("svg"),n=U("path"),this.h()},l(t){e=X(t,"svg",{width:!0,height:!0,viewBox:!0,fill:!0,xmlns:!0});var o=K(e);n=X(o,"path",{"fill-rule":!0,"clip-rule":!0,d:!0,fill:!0}),K(n).forEach(D),o.forEach(D),this.h()},h(){Y(n,"fill-rule","evenodd"),Y(n,"clip-rule","evenodd"),Y(n,"d","M32 16C32 24.8366 24.8366 32 16 32C7.16344 32 0 24.8366 0 16C0 7.16345 7.16344 0 16 0C24.8366 0 32 7.16345 32 16ZM15.1756 18.6566V3.17569L7.20612 18.6566H15.1756ZM16.794 13.3134V28.8248L24.794 13.3134H16.794Z"),Y(n,"fill","#069E08"),G(e,r)},m(t,o){A(t,e,o),M(e,n)},p(t,[n]){G(e,r=At(o,[{width:"32"},{height:"32"},{viewBox:"0 0 32 32"},{fill:"none"},{xmlns:"http://www.w3.org/2000/svg"},1&n&&t[0]]))},i:c,o:c,d(t){t&&D(e)}}}function fn(t,e,n){return t.$$set=t=>{n(0,e=l(l({},e),j(t)))},[e=j(e)]}class hn extends Vt{constructor(t){super(),Jt(this,t,fn,gn,g,{})}}function bn(t){const e=b(mn).site.url;return e&&(t=t+"&site="+encodeURIComponent(e)),t}function $n(t){let n,o;return n=new on({props:{this:ue,title:"Jetpack Boost",icon:`${window.Jetpack_Boost.site.assetPath}../static/images/forward.svg`,priceBefore:t[0].yearly.priceBefore/12,priceAfter:t[0].yearly.priceAfter/12,priceDetails:e.__("/month, paid yearly","jetpack-boost"),currencyCode:t[0].yearly.currencyCode,ctaText:e.__("Upgrade Jetpack Boost","jetpack-boost"),onCtaClick:t[1],infoText:t[2]}}),{c(){It(n.$$.fragment)},m(t,e){Ft(n,t,e),o=!0},p(t,e){const o={};1&e&&(o.priceBefore=t[0].yearly.priceBefore/12),1&e&&(o.priceAfter=t[0].yearly.priceAfter/12),1&e&&(o.currencyCode=t[0].yearly.currencyCode),n.$set(o)},i(t){o||(Rt(n.$$.fragment,t),o=!0)},o(t){Ot(n.$$.fragment,t),o=!1},d(t){Ut(n,t)}}}function yn(t){let n,o,r,s,i,c,a,l,u,p,d,m,g,f,h,b,$,y,_,v,w,k,j;r=new tn({}),a=new hn({props:{class:"my-2"}});let x="yearly"in t[0]&&$n(t);return{c(){n=F("div"),o=F("div"),It(r.$$.fragment),s=V(),i=F("div"),c=F("div"),It(a.$$.fragment),l=V(),u=F("h1"),u.textContent=`${e.__("Optimize your website's performance","jetpack-boost")}`,p=V(),d=F("p"),d.textContent=`${e.__("Remove the need to manually regenerate critical CSS after site changes with automated critical CSS.","jetpack-boost")}`,m=V(),g=F("ul"),f=F("li"),f.textContent=`${e.__("Automatic critical CSS regeneration","jetpack-boost")}`,h=V(),b=F("li"),b.textContent=`${e.__("Performance scores are recalculated after each change","jetpack-boost")}`,$=V(),y=F("li"),y.textContent=`${e.__("Dedicated email support","jetpack-boost")}`,_=V(),v=F("div"),x&&x.c(),w=V(),k=F("footer"),k.textContent=`${e.__("Special introductory pricing, all renewals are at full price. 14 day money back guarantee.","jetpack-boost")}`,Y(u,"class","my-2"),Y(d,"class","jb-card__summary my-2"),Y(g,"class","jb-checklist my-2"),Y(c,"class","jb-card__content"),Y(v,"class","jb-card__cta px-2 my-4"),Y(i,"class","jb-card"),Y(k,"class","jb-footer-note"),Y(o,"class","jb-container jb-container--fixed mt-2"),Y(n,"id","jb-settings"),Y(n,"class","jb-settings")},m(t,e){z(t,n,e),R(n,o),Ft(r,o,null),R(o,s),R(o,i),R(i,c),Ft(a,c,null),R(c,l),R(c,u),R(c,p),R(c,d),R(c,m),R(c,g),R(g,f),R(g,h),R(g,b),R(g,$),R(g,y),R(i,_),R(i,v),x&&x.m(v,null),R(o,w),R(o,k),j=!0},p(t,[e]){"yearly"in t[0]?x?(x.p(t,e),1&e&&Rt(x,1)):(x=$n(t),x.c(),Rt(x,1),x.m(v,null)):x&&(Tt(),Ot(x,1,1,(()=>{x=null})),Lt())},i(t){j||(Rt(r.$$.fragment,t),Rt(a.$$.fragment,t),Rt(x),j=!0)},o(t){Ot(r.$$.fragment,t),Ot(a.$$.fragment,t),Ot(x),j=!1},d(t){t&&D(n),Ut(r),Ut(a),x&&x.d()}}}function _n(t,n,o){let r;function i(){window.location.href=function(){const t=b(mn).site.domain,e=new URL(window.location.href);e.hash="#/purchase-successful";const n=new URL(`https://wordpress.com/checkout/${t}/jetpack_boost_yearly`);return n.searchParams.set("redirect_to",e.toString()),n.searchParams.set("site",t),n.searchParams.set("unlinked","1"),n.toString()}()}let{location:c,navigate:a}=n;const l=ve(e.__("By clicking the button above, you agree to our <tosLink>Terms of Service</tosLink> and to <shareLink>share details</shareLink> with WordPress.com.","jetpack-boost"),{tosLink:s.default.createElement("a",{href:bn("https://jetpack.com/redirect/?source=wpcom-tos"),target:"_blank"}),shareLink:s.default.createElement("a",{href:bn("https://jetpack.com/redirect/?source=jetpack-support-what-data-does-jetpack-sync"),target:"_blank"})}),u=Se(mn,(t=>t.pricing));return $(t,u,(t=>o(0,r=t))),"yearly"in r||i(),t.$$set=t=>{"location"in t&&o(4,c=t.location),"navigate"in t&&o(5,a=t.navigate)},[r,i,l,u,c,a]}class vn extends Vt{constructor(t){super(),Jt(this,t,_n,yn,g,{location:4,navigate:5})}}function wn(t){let e,n,o,r=[{version:"1.1"},{xmlns:"http://www.w3.org/2000/svg"},{"xmlns:xlink":"http://www.w3.org/1999/xlink"},{x:"0px"},{y:"0px"},{viewBox:"0 0 24 24"},{style:"enable-background:new 0 0 24 24;"},{"xml:space":"preserve"},t[0]],s={};for(let t=0;t<r.length;t+=1)s=l(s,r[t]);return{c(){e=U("svg"),n=U("g"),o=U("path"),this.h()},l(t){e=X(t,"svg",{version:!0,xmlns:!0,"xmlns:xlink":!0,x:!0,y:!0,viewBox:!0,style:!0,"xml:space":!0});var r=K(e);n=X(r,"g",{id:!0});var s=K(n);o=X(s,"path",{style:!0,d:!0}),K(o).forEach(D),s.forEach(D),r.forEach(D),this.h()},h(){Q(o,"fill","#d63638"),Y(o,"d","M12,4c4.411,0,8,3.589,8,8s-3.589,8-8,8s-8-3.589-8-8S7.589,4,12,4 M12,2C6.477,2,2,6.477,2,12s4.477,10,10,10 s10-4.477,10-10S17.523,2,12,2L12,2z M13,15h-2v2h2V15z M11,13h2l0.5-6h-3L11,13z"),Y(n,"id","notice-outline"),G(e,s)},m(t,r){A(t,e,r),M(e,n),M(n,o)},p(t,[n]){G(e,s=At(r,[{version:"1.1"},{xmlns:"http://www.w3.org/2000/svg"},{"xmlns:xlink":"http://www.w3.org/1999/xlink"},{x:"0px"},{y:"0px"},{viewBox:"0 0 24 24"},{style:"enable-background:new 0 0 24 24;"},{"xml:space":"preserve"},1&n&&t[0]]))},i:c,o:c,d(t){t&&D(e)}}}function kn(t,e,n){return t.$$set=t=>{n(0,e=l(l({},e),j(t)))},[e=j(e)]}class jn extends Vt{constructor(t){super(),Jt(this,t,kn,wn,g,{})}}function xn(t,e="action"){return{[e]:["a",{class:"action",onclick:e=>{e.preventDefault(),t(e.target.getAttribute("name"))},href:"#"}]}}function Sn(t,e){return t instanceof Error?t:"string"==typeof t||t instanceof String?new Error(t.toString()):t.message?new Error(t.message):e?new Error(e):new Error(JSON.stringify(t))}function Cn(t,e="link"){return{[e]:["a",{href:t,target:"_blank",rel:"noopener noreferrer"}]}}function En(t="support"){return Cn("https://wordpress.org/support/plugin/jetpack-boost/",t)}function Pn(t,e,n){for(const o of Array.from(t.childNodes)){let t;if(n[o.nodeName]){const[e,r,s]=n[o.nodeName];t=Tn(e,r,s),Bn(o,t)}else o.tagName?(t=document.createElement(o.tagName),Bn(o,t)):t=o.cloneNode();e.appendChild(t),Pn(o,t,n)}}function Bn(t,e){for(let n=0;n<t.attributes.length;n++){const o=t.attributes.item(n);e.setAttribute(o.name,o.value)}}function Tn(t,e,n){const o=document.createElement(t);for(const[t,n]of Object.entries(e))t.startsWith("on")&&n instanceof Function?o.addEventListener(t.substring(2),n):o.setAttribute(t,n.toString());return n&&o.append(n),o}function Ln(t){let e;return{c(){e=F("span")},m(n,o){z(n,e,o),t[3](e)},p:c,i:c,o:c,d(n){n&&D(e),t[3](null)}}}function Rn(t,e,n){let o,{template:r}=e,{vars:s}=e;return lt((()=>{Pn(function(t){const e="<PseudoHTML>"+t+"</PseudoHTML>";return(new DOMParser).parseFromString(e,"application/xml").childNodes[0]}(r),o,s)})),t.$$set=t=>{"template"in t&&n(1,r=t.template),"vars"in t&&n(2,s=t.vars)},[o,r,s,function(t){ht[t?"unshift":"push"]((()=>{o=t,n(0,o)}))}]}class On extends Vt{constructor(t){super(),Jt(this,t,Rn,Ln,g,{template:1,vars:2})}}const Nn=t=>({}),Mn=t=>({});function zn(t){let e,n;return{c(){e=F("pre"),n=J(t[0]),Y(e,"class","data")},m(t,o){z(t,e,o),R(e,n)},p(t,e){1&e&&Z(n,t[0])},d(t){t&&D(e)}}}function An(t){let e,n,o;return n=new On({props:{template:t[2],vars:t[4]}}),{c(){e=F("p"),It(n.$$.fragment),Y(e,"class","suggestion")},m(t,r){z(t,e,r),Ft(n,e,null),o=!0},p(t,e){const o={};4&e&&(o.template=t[2]),n.$set(o)},i(t){o||(Rt(n.$$.fragment,t),o=!0)},o(t){Ot(n.$$.fragment,t),o=!1},d(t){t&&D(e),Ut(n)}}}function Dn(t){let e,n,o,r,s,i,a,l,u,p,d,m,g;n=new jn({props:{class:"icon"}});const f=t[8].default,h=y(f,t,t[7],null),b=h||function(t){let e;return{c(){e=F("p"),e.textContent=`${t[3]}`},m(t,n){z(t,e,n)},p:c,d(t){t&&D(e)}}}(t);let $=t[0]&&zn(t),_=t[2]&&An(t);const j=t[8].actionButton,x=y(j,t,t[7],Mn);return{c(){e=F("div"),It(n.$$.fragment),o=V(),r=F("div"),s=F("div"),i=J(t[1]),a=V(),l=F("div"),b&&b.c(),u=V(),$&&$.c(),p=V(),_&&_.c(),d=V(),m=F("div"),x&&x.c(),Y(s,"class","jb-error__description"),Y(l,"class","jb-error__message"),Y(r,"class","jb-error__main-content"),Y(m,"class","jb-error__main-action"),Y(e,"class","jb-error")},m(t,c){z(t,e,c),Ft(n,e,null),R(e,o),R(e,r),R(r,s),R(s,i),R(r,a),R(r,l),b&&b.m(l,null),R(l,u),$&&$.m(l,null),R(l,p),_&&_.m(l,null),R(e,d),R(e,m),x&&x.m(m,null),g=!0},p(t,[e]){(!g||2&e)&&Z(i,t[1]),h&&h.p&&(!g||128&e)&&w(h,f,t,t[7],g?v(f,t[7],e,null):k(t[7]),null),t[0]?$?$.p(t,e):($=zn(t),$.c(),$.m(l,p)):$&&($.d(1),$=null),t[2]?_?(_.p(t,e),4&e&&Rt(_,1)):(_=An(t),_.c(),Rt(_,1),_.m(l,null)):_&&(Tt(),Ot(_,1,1,(()=>{_=null})),Lt()),x&&x.p&&(!g||128&e)&&w(x,j,t,t[7],g?v(j,t[7],e,Nn):k(t[7]),Mn)},i(t){g||(Rt(n.$$.fragment,t),Rt(b,t),Rt(_),Rt(x,t),g=!0)},o(t){Ot(n.$$.fragment,t),Ot(b,t),Ot(_),Ot(x,t),g=!1},d(t){t&&D(e),Ut(n),b&&b.d(t),$&&$.d(),_&&_.d(),x&&x.d(t)}}}function In(t,e,n){let{$$slots:o={},$$scope:r}=e,{title:s}=e,{error:i=new Error(s)}=e,{data:c}=e,{suggestion:a}=e,{vars:l={}}=e;const u=Sn(i).message;!c&&i instanceof cn&&(c=i.getDisplayBody());const p=pt();const d={...En(),...xn((function(t){p(t),p("action",t)}),"action"),...l};return t.$$set=t=>{"title"in t&&n(1,s=t.title),"error"in t&&n(5,i=t.error),"data"in t&&n(0,c=t.data),"suggestion"in t&&n(2,a=t.suggestion),"vars"in t&&n(6,l=t.vars),"$$scope"in t&&n(7,r=t.$$scope)},[c,s,a,u,d,i,l,r,o]}class Fn extends Vt{constructor(t){super(),Jt(this,t,In,Dn,g,{title:1,error:5,data:0,suggestion:2,vars:6})}}const{subscribe:Un,update:Jn,set:Vn}=xe(Wn(b(mn).optimizations));let Hn;function Wn(t){const e={};for(const[n,o]of Object.entries(t))e[n]={enabled:o};return e}function qn(t){return Hn[t]&&Hn[t].enabled}async function Yn(t,n){const o=qn(t);let r=n;Gn(t,n);try{r=await async function(t,n){const o=await un.post(`/module/${t}/status`,{status:n});if(!0!==o&&!1!==o){const t=JSON.stringify(o);throw new Error(e.sprintf(e.__("Unexpected data received from WordPress: %s","jetpack-boost"),t))}return o!==n?!n:o}(t,n),Gn(t,r,!0)}catch(e){throw Gn(t,o,!0),e}return r}function Gn(t,e,n=!1){Jn((o=>({...o,[t]:{...o[t],enabled:e,synced:n}})))}Un((t=>Hn=t));const Kn={subscribe:Un,updateModuleState:Yn},Xn=Jetpack_Boost.connection,{subscribe:Zn,update:Qn}=xe(Xn);function to(t){Qn((e=>({...e,...t})))}const eo={subscribe:Zn,initialize:async function(){to({isConnecting:!0});try{const t=await un.post("/connection");t.connected&&await async function(){Vn(Wn(await un.get("/optimizations/status")))}(),to(t)}catch(t){to({isConnecting:!1,error:t})}},refresh:async function(){to(await un.get("/connection"))}};function no(t){let e,n,o,r=[{class:"gridicon gridicons-checkmark-circle"},{height:"24"},{width:"24"},{xmlns:"http://www.w3.org/2000/svg"},{viewBox:"0 0 24 24"},t[0]],s={};for(let t=0;t<r.length;t+=1)s=l(s,r[t]);return{c(){e=U("svg"),n=U("g"),o=U("path"),this.h()},l(t){e=X(t,"svg",{class:!0,height:!0,width:!0,xmlns:!0,viewBox:!0});var r=K(e);n=X(r,"g",{});var s=K(n);o=X(s,"path",{d:!0}),K(o).forEach(D),s.forEach(D),r.forEach(D),this.h()},h(){Y(o,"d","M11 17.768l-4.884-4.884 1.768-1.768L11 14.232l8.658-8.658C17.823 3.39 15.075 2 12 2 6.477 2 2 6.477 2 12s4.477 10 10 10 10-4.477 10-10c0-1.528-.353-2.97-.966-4.266L11 17.768z"),G(e,s)},m(t,r){A(t,e,r),M(e,n),M(n,o)},p(t,[n]){G(e,s=At(r,[{class:"gridicon gridicons-checkmark-circle"},{height:"24"},{width:"24"},{xmlns:"http://www.w3.org/2000/svg"},{viewBox:"0 0 24 24"},1&n&&t[0]]))},i:c,o:c,d(t){t&&D(e)}}}function oo(t,e,n){return t.$$set=t=>{n(0,e=l(l({},e),j(t)))},[e=j(e)]}class ro extends Vt{constructor(t){super(),Jt(this,t,oo,no,g,{})}}const so="success",io="fail",co="requesting",ao={progress:0,success_count:0,retried_show_stopper:!1,status:"not_generated"},lo=xe(Jetpack_Boost.criticalCssStatus||ao),{subscribe:uo,update:po}=lo;let mo;function go(){return mo}uo((t=>mo=t));const fo=Se({subscribe:uo},(t=>t.providers_errors?Object.keys(t.providers_errors).length:0)),ho=Se({subscribe:uo},(t=>[so,io].includes(t.status))),bo=Se({subscribe:uo},(t=>"error"===t.status||"success"===t.status&&0===t.success_count)),$o=Se([lo,Kn],(([t,e])=>{const n=co===t.status,o=e["critical-css"]&&e["critical-css"].enabled,r=e["cloud-css"]&&e["cloud-css"].enabled;return n&&(o||r)}));async function yo(t,e,n){const o=await un[t](e,n);if("module-unavailable"===o.status)return!1;if(o.status!==so)throw new Error(o.code||o.message||o.error||JSON.stringify(o));return po((t=>({...t,...o.status_update}))),o.status_update}function _o(t){return po((e=>({...e,...t})))}async function vo(t,e,n){return yo("post",`/critical-css/${t}/${e}`,n)}const wo={subscribe:uo};async function ko(){po((t=>({...t,...ao,status:co}))),await xo()}async function jo(){po((t=>({...t,...ao,status:co,retried_show_stopper:!0}))),await xo()}async function xo(){try{await un.post("/cloud-css/request-generate")}catch(t){if(200!==t.httpCode)return po((t=>({...t,status:"error"}))),void Po()}Eo()}let So=null;function Co(t){return t.progress<100?5e3:12e4}function Eo(){let t=go();const e=Co(go());Po(),So=setInterval((async()=>{t=await un.get("/cloud-css/status"),_o(t),e!==Co(t)&&Eo()}),e)}function Po(){null!==So&&(clearInterval(So),So=null)}function Bo(t,e,n){const o=t.slice();return o[2]=e[n],o}function To(t){let e,n,o,r,s,i,a,l=t[2]+"";return n=new ro({}),{c(){e=F("div"),It(n.$$.fragment),o=V(),r=F("span"),s=J(l),i=V(),Y(e,"class","checklist__item")},m(t,c){z(t,e,c),Ft(n,e,null),R(e,o),R(e,r),R(r,s),R(e,i),a=!0},p:c,i(t){a||(Rt(n.$$.fragment,t),a=!0)},o(t){Ot(n.$$.fragment,t),a=!1},d(t){t&&D(e),Ut(n)}}}function Lo(t){let n,o;return n=new Fn({props:{title:e.__("Failed to connect to WordPress.com","jetpack-boost"),suggestion:e.__("If you need further assistance, contact <support>Jetpack Boost Support</support>.","jetpack-boost"),error:t[0].error}}),{c(){It(n.$$.fragment)},m(t,e){Ft(n,t,e),o=!0},p(t,e){const o={};1&e&&(o.error=t[0].error),n.$set(o)},i(t){o||(Rt(n.$$.fragment,t),o=!0)},o(t){Ot(n.$$.fragment,t),o=!1},d(t){Ut(n,t)}}}function Ro(t){let n,o=e.__("Get Started","jetpack-boost")+"";return{c(){n=J(o)},m(t,e){z(t,n,e)},p:c,d(t){t&&D(n)}}}function Oo(t){let n,o=e.__("Connecting to WordPress.com","jetpack-boost")+"";return{c(){n=J(o)},m(t,e){z(t,n,e)},p:c,d(t){t&&D(n)}}}function No(t){let n,o,r,s,i,c,a,l,u,p,d,m,g,f,h,b,$,y,_,v=t[1],w=[];for(let e=0;e<v.length;e+=1)w[e]=To(Bo(t,v,e));const k=t=>Ot(w[t],1,1,(()=>{w[t]=null}));let j=t[0].error&&Lo(t);function x(t,e){return t[0].isConnecting?Oo:Ro}let S=x(t),C=S(t);return b=new On({props:{template:e.__("By clicking the button above, you agree to our <tosLink>Terms of Service</tosLink> and to <shareLink>share details</shareLink> with WordPress.com.","jetpack-boost"),vars:{...Cn(bn("https://jetpack.com/redirect/?source=wpcom-tos"),"tosLink"),...Cn(bn("https://jetpack.com/redirect/?source=jetpack-support-what-data-does-jetpack-sync"),"shareLink")}}}),{c(){n=F("div"),o=F("div"),r=F("div"),s=F("h1"),s.textContent=`${e.__("Get faster loading times with Jetpack Boost","jetpack-boost")}`,i=V(),c=F("p"),c.textContent=`${e.__("Connect Jetpack Boost and we will make your site faster in no time.","jetpack-boost")}`,a=V(),l=F("div");for(let t=0;t<w.length;t+=1)w[t].c();u=V(),j&&j.c(),p=V(),d=F("button"),C.c(),g=V(),f=F("div"),h=F("p"),It(b.$$.fragment),Y(s,"class","jb-connection__title"),Y(c,"class","jb-connection__description"),Y(r,"class","jb-connection__header"),Y(l,"class","checklist"),Y(d,"type","button"),Y(d,"class","components-button is-primary"),d.disabled=m=t[0].isConnecting,Y(f,"class","jb-connection-overlay"),Y(o,"class","jb-connection"),Y(n,"class","jb-section__inner connection")},m(t,e){z(t,n,e),R(n,o),R(o,r),R(r,s),R(r,i),R(r,c),R(o,a),R(o,l);for(let t=0;t<w.length;t+=1)w[t].m(l,null);R(o,u),j&&j.m(o,null),R(o,p),R(o,d),C.m(d,null),R(o,g),R(o,f),R(f,h),Ft(b,h,null),$=!0,y||(_=W(d,"click",eo.initialize),y=!0)},p(t,[e]){if(2&e){let n;for(v=t[1],n=0;n<v.length;n+=1){const o=Bo(t,v,n);w[n]?(w[n].p(o,e),Rt(w[n],1)):(w[n]=To(o),w[n].c(),Rt(w[n],1),w[n].m(l,null))}for(Tt(),n=v.length;n<w.length;n+=1)k(n);Lt()}t[0].error?j?(j.p(t,e),1&e&&Rt(j,1)):(j=Lo(t),j.c(),Rt(j,1),j.m(o,p)):j&&(Tt(),Ot(j,1,1,(()=>{j=null})),Lt()),S===(S=x(t))&&C?C.p(t,e):(C.d(1),C=S(t),C&&(C.c(),C.m(d,null))),(!$||1&e&&m!==(m=t[0].isConnecting))&&(d.disabled=m)},i(t){if(!$){for(let t=0;t<v.length;t+=1)Rt(w[t]);Rt(j),Rt(b.$$.fragment,t),$=!0}},o(t){w=w.filter(Boolean);for(let t=0;t<w.length;t+=1)Ot(w[t]);Ot(j),Ot(b.$$.fragment,t),$=!1},d(t){t&&D(n),I(w,t),j&&j.d(),C.d(),Ut(b),y=!1,_()}}}function Mo(t,n,o){let r;$(t,eo,(t=>o(0,r=t)));const s=[e.__("Speed up your site load time","jetpack-boost"),e.__("Decrease bounce rate of your visitors","jetpack-boost"),e.__("Improve your SEO ranking","jetpack-boost"),e.__("Sell more stuff","jetpack-boost")];return t.$$.update=()=>{1&t.$$.dirty&&r.connected&&async function(){qn("cloud-css")&&await ko(),await mn.refresh()}()},[r,s]}class zo extends Vt{constructor(t){super(),Jt(this,t,Mo,No,g,{})}}function Ao(t){let n,r,s,i,c,a,l,u,p,d,m,g,h,b,$,y,_,v,w,k,j,x,S,C,E;return s=new tn({}),l=new hn({props:{class:"my-2"}}),k=new on({props:{this:o.Button,label:e.__("Continue","jetpack-boost"),onClick:t[2],className:"jp-action-button--button jb-button jb-button--primary mt-3",children:e.__("Continue","jetpack-boost")}}),{c(){var t,o;n=F("div"),r=F("div"),It(s.$$.fragment),i=V(),c=F("div"),a=F("div"),It(l.$$.fragment),u=V(),p=F("h1"),p.textContent=`${e.__("Your Jetpack Boost has been upgraded!","jetpack-boost")}`,d=V(),m=F("p"),m.textContent=`${e.__("When you update your site, it will now be optimized automatically with automated critical CSS","jetpack-boost")}`,g=V(),h=F("ul"),b=F("li"),b.textContent=`${e.__("Automatic critical CSS regeneration","jetpack-boost")}`,$=V(),y=F("li"),y.textContent=`${e.__("Performance scores are recalculated after each change","jetpack-boost")}`,_=V(),v=F("li"),v.textContent=`${e.__("Dedicated email support","jetpack-boost")}`,w=V(),It(k.$$.fragment),j=V(),x=F("div"),S=F("img"),Y(p,"class","my-2"),Y(m,"class","jb-card__summary my-2"),Y(h,"class","jb-checklist my-2"),Y(a,"class","jb-card__content"),t=S.src,o=C=`${window.Jetpack_Boost.site.assetPath}../static/images/boost.png`,f||(f=document.createElement("a")),f.href=o,t!==f.href&&Y(S,"src",C),Y(S,"alt",e.__("Optimize with Jetpack Boost","jetpack-boost")),Y(x,"class","jb-card__cta px-1 py-4"),Y(c,"class","jb-card"),Y(r,"class","jb-container jb-container--fixed mt-2"),Y(n,"id","jb-settings"),Y(n,"class","jb-settings")},m(t,e){z(t,n,e),R(n,r),Ft(s,r,null),R(r,i),R(r,c),R(c,a),Ft(l,a,null),R(a,u),R(a,p),R(a,d),R(a,m),R(a,g),R(a,h),R(h,b),R(h,$),R(h,y),R(h,_),R(h,v),R(a,w),Ft(k,a,null),R(c,j),R(c,x),R(x,S),E=!0},p(t,[e]){const n={};1&e&&(n.onClick=t[2]),k.$set(n)},i(t){E||(Rt(s.$$.fragment,t),Rt(l.$$.fragment,t),Rt(k.$$.fragment,t),E=!0)},o(t){Ot(s.$$.fragment,t),Ot(l.$$.fragment,t),Ot(k.$$.fragment,t),E=!1},d(t){t&&D(n),Ut(s),Ut(l),Ut(k)}}}function Do(t,e,n){let{location:o,navigate:r}=e;lt((async()=>{await Yn("cloud-css",!0),await ko()}));return t.$$set=t=>{"location"in t&&n(1,o=t.location),"navigate"in t&&n(0,r=t.navigate)},[r,o,()=>r("/")]}class Io extends Vt{constructor(t){super(),Jt(this,t,Do,Ao,g,{location:1,navigate:0})}}const Fo=t=>`@@svnav-ctx__${t}`,Uo=Fo("LOCATION"),Jo=Fo("ROUTER"),Vo=Fo("ROUTE"),Ho=Fo("ROUTE_PARAMS"),Wo=Fo("FOCUS_ELEM"),qo=/^:(.+)/,Yo=(t,e)=>t.substr(0,e.length)===e,Go=t=>"*"===t[0],Ko=t=>t.replace(/(^\/+|\/+$)/g,"");function Xo(t,e=!1){const n=Ko(t).split("/");return e?n.filter(Boolean):n}const Zo=(t,e)=>t+(e?`?${e}`:""),Qo=t=>`/${Ko(t)}`;function tr(...t){const e=t.map((t=>Xo(t,!0).join("/"))).join("/");return Qo(e)}const er=t=>void 0===t,nr=t=>"number"==typeof t;function or(){let t=0;return()=>t++}const rr="undefined"==typeof window;function sr(t,e,n){return t.addEventListener(e,n),()=>t.removeEventListener(e,n)}const ir={1:"Link",2:"Route",3:"Router",4:"useFocus",5:"useLocation",6:"useMatch",7:"useNavigate",8:"useParams",9:"useResolvable",10:"useResolve",11:"navigate"},cr=t=>ir[t];function ar(t,e,n,o){const r=n&&function(t,e){let n;return 2===t?n=e.path?`path="${e.path}"`:"default":1===t?n=`to="${e.to}"`:3===t&&(n=`basepath="${e.basepath||""}"`),`<${cr(t)} ${n||""} />`}(o||t,n),s=r?`\n\nOccurred in: ${r}`:"",i=cr(t);return`<${i}> ${"function"==typeof e?e(i):e}${s}`}const lr=t=>(...e)=>t(ar(...e)),ur=lr((t=>{throw new Error(t)})),pr=lr(console.warn);function dr(t,e){return{route:t,score:t.default?0:Xo(t.fullPath).reduce(((t,e)=>{let n=t;return n+=4,(t=>""===t)(e)?n+=1:(t=>qo.test(t))(e)?n+=2:Go(e)?n-=5:n+=3,n}),0),index:e}}function mr(t,e){let n,o;const[r]=e.split("?"),s=Xo(r),i=""===s[0],c=function(t){return t.map(dr).sort(((t,e)=>t.score<e.score?1:t.score>e.score?-1:t.index-e.index))}(t);for(let t=0,r=c.length;t<r;t++){const{route:r}=c[t];let a=!1;const l={},u=t=>({...r,params:l,uri:t});if(r.default){o=u(e);continue}const p=Xo(r.fullPath),d=Math.max(s.length,p.length);let m=0;for(;m<d;m++){const t=p[m],e=s[m];if(!er(t)&&Go(t)){const e="*"===t?"*":t.slice(1);l[e]=s.slice(m).map(decodeURIComponent).join("/");break}if(er(e)){a=!0;break}const n=qo.exec(t);if(n&&!i){const t=decodeURIComponent(e);l[n[1]]=t}else if(t!==e){a=!0;break}}if(!a){n=u(tr(...s.slice(0,m)));break}}return n||o||null}function gr(t,e){return mr([t],e)}function fr(t,e){const{pathname:n,hash:o="",search:r="",state:s}=t,i=Xo(e,!0),c=Xo(n,!0);for(;i.length;)i[0]!==c[0]&&ur(3,`Invalid state: All locations must begin with the basepath "${e}", found "${n}"`),i.shift(),c.shift();return{pathname:tr(...c),hash:o,search:r,state:s}}const hr=t=>1===t.length?"":t;function br(t){const e=t.indexOf("?"),n=t.indexOf("#"),o=-1!==e,r=-1!==n,s=r?hr(t.substr(n)):"",i=r?t.substr(0,n):t,c=o?hr(i.substr(e)):"";return{pathname:o?i.substr(0,e):i,search:c,hash:s}}function $r(t,e,n){return tr(n,function(t,e){if(Yo(t,"/"))return t;const[n,o]=t.split("?"),[r]=e.split("?"),s=Xo(n),i=Xo(r);if(""===s[0])return Zo(r,o);if(!Yo(s[0],".")){const t=i.concat(s).join("/");return Zo(("/"===r?"":"/")+t,o)}const c=i.concat(s),a=[];return c.forEach((t=>{".."===t?a.pop():"."!==t&&a.push(t)})),Zo(`/${a.join("/")}`,o)}(t,e))}function yr(t,e){const n=Qo(t.replace(/\*.*$/,""));const o=Xo(n,!0),r=gr({fullPath:n},tr(...Xo(e,!0).slice(0,o.length)));return r&&r.uri}function _r(t,e,n=Jo,o=3){mt(n)||ur(t,(t=>`You cannot use ${t} outside of a ${cr(o)}.`),e)}function vr(){return _r(5),(t=>{const{subscribe:e}=mt(t);return{subscribe:e}})(Uo)}function wr(){const t=mt(Vo);return t?Se(t,(t=>t.base)):xe("/")}function kr(){_r(7);const t=function(){_r(10);const t=wr(),{basepath:e}=mt(Jo);return n=>$r(n,b(t),e)}(),{navigate:e}=function(){const{history:t}=mt(Jo);return t}();return(n,o)=>{const r=nr(n)?n:t(n);return e(r,o)}}const jr="POP";function xr(t){return{...t.location,pathname:encodeURI(decodeURI(t.location.pathname)),state:t.history.state,_key:t.history.state&&t.history.state._key||"initial"}}function Sr(t,e){return{...br(e),state:t}}const Cr=!(rr||!window.document||!window.document.createElement),Er=!rr&&"null"===window.location.origin,Pr=function(t){let e=[],n=xr(t),o=jr;const r=(t=e)=>t.forEach((t=>t({location:n,action:o})));return{get location(){return n},listen(s){e.push(s);r([s]);const i=sr(t,"popstate",(()=>{n=xr(t),o=jr,r([s])}));return()=>{i(),e=e.filter((t=>t!==s))}},navigate(e,s){const{state:i={},replace:c=!1}=s||{};if(o=c?"REPLACE":"PUSH",nr(e))s&&pr(11,"Navigation options (state or replace) are not supported, when passing a number as the first argument to navigate. They are ignored."),o=jr,t.history.go(e);else{const n={...i,_key:Math.random().toString(36).substring(2)};try{t.history[c?"replaceState":"pushState"](n,"",e)}catch(n){t.location[c?"replace":"assign"](e)}}n=xr(t),r()}}}(Cr&&!Er?window:function(t="/"){let e=0,n=[Sr(null,t)];return{get entries(){return n},get location(){return n[e]},addEventListener(){},removeEventListener(){},history:{get state(){return n[e].state},pushState(t,o,r){e++,n=n.slice(0,e),n.push(Sr(t,r))},replaceState(t,o,r){n[e]=Sr(t,r)},go(t){const o=e+t;o<0||o>n.length-1||(e=o)}}}}());let Br=null,Tr=!0;function Lr(t){(!Br||t.level>Br.level||t.level===Br.level&&function(t,e){const n=document.querySelectorAll("[data-svnav-router]");for(let o=0;o<n.length;o++){const r=n[o],s=Number(r.dataset.svnavRouter);if(s===t)return!0;if(s===e)return!1}return!1}(t.routerId,Br.routerId))&&(Br=t)}function Rr(t){if(!t)return!1;const e="tabindex";try{if(!t.hasAttribute(e)){let n;t.setAttribute(e,"-1");const o=()=>{t.removeAttribute(e),n()};n=sr(t,"blur",o)}return t.focus(),document.activeElement===t}catch(t){return!1}}function Or(t,e){return Number(t.dataset.svnavRouteEnd)===e}function Nr(t,e=document){return e.querySelector(t)}function Mr(t){Promise.resolve(b(t.focusElement)).then((e=>{const n=e||function(t){let e=Nr(`[data-svnav-route-start="${t}"]`).nextElementSibling;for(;!Or(e,t);){if(/^H[1-6]$/i.test(e.tagName))return e;const t=Nr("h1,h2,h3,h4,h5,h6",e);if(t)return t;e=e.nextElementSibling}return null}(t.id);n||pr(3,'Could not find an element to focus. You should always render a header for accessibility reasons, or set a custom focus element via the "useFocus" hook. If you don\'t want this Route or Router to manage focus, pass "primary={false}" to it.',t,2);Rr(n)||Rr(document.documentElement)}))}const zr=(t,e,n)=>(o,r)=>(vt(),yt).then((()=>{if(Br&&!Tr){if(o&&Mr(Br.route),t.announcements&&r){const{path:o,fullPath:r,meta:s,params:i,uri:c}=Br.route,a=t.createAnnouncement({path:o,fullPath:r,meta:s,params:i,uri:c},b(n));Promise.resolve(a).then((t=>{e.set(t)}))}Br=null}else Tr=!1}));function Ar(t){let e,n,o,r,s;const i=t[20].default,c=y(i,t,t[19],null);let a=t[2]&&t[4]&&t[1].announcements&&function(t){let e,n;return{c(){e=F("div"),n=J(t[0]),Y(e,"role","status"),Y(e,"aria-atomic","true"),Y(e,"aria-live","polite"),Y(e,"style","position:fixed;top:-1px;left:0;width:1px;height:1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0;")},m(t,o){z(t,e,o),R(e,n)},p(t,e){1&e[0]&&Z(n,t[0])},d(t){t&&D(e)}}}(t);return{c(){e=F("div"),n=V(),c&&c.c(),o=V(),a&&a.c(),r=H(),Q(e,"display","none"),Y(e,"aria-hidden","true"),Y(e,"data-svnav-router",t[3])},m(t,i){z(t,e,i),z(t,n,i),c&&c.m(t,i),z(t,o,i),a&&a.m(t,i),z(t,r,i),s=!0},p(t,e){c&&c.p&&(!s||524288&e[0])&&w(c,i,t,t[19],s?v(i,t[19],e,null):k(t[19]),null),t[2]&&t[4]&&t[1].announcements&&a.p(t,e)},i(t){s||(Rt(c,t),s=!0)},o(t){Ot(c,t),s=!1},d(t){t&&D(e),t&&D(n),c&&c.d(t),t&&D(o),a&&a.d(t),t&&D(r)}}}const Dr=or(),Ir="/";function Fr(t,e,n){let o,r,s,i,c,{$$slots:a={},$$scope:l}=e,{basepath:u=Ir}=e,{url:p=null}=e,{history:d=Pr}=e,{primary:m=!0}=e,{a11y:g={}}=e;const f={createAnnouncement:t=>`Navigated to ${t.uri}`,announcements:!0,...g},h=u,b=Qo(u),y=mt(Uo),_=mt(Jo),v=!y,w=Dr(),k=m&&!(_&&!_.manageFocus),j=xe("");$(t,j,(t=>n(0,c=t)));const x=xe([]);$(t,x,(t=>n(18,i=t)));const S=xe(null);$(t,S,(t=>n(16,r=t)));let C=!1;const E=v?0:_.level+1,P=v?xe(fr(rr?br(p):d.location,b)):y;$(t,P,(t=>n(15,o=t)));const B=xe(o);$(t,B,(t=>n(17,s=t)));const T=zr(f,j,P),L=t=>e=>e.filter((e=>e.id!==t));return v||u===Ir||pr(3,'Only top-level Routers can have a "basepath" prop. It is ignored.',{basepath:u}),v&&(lt((()=>d.listen((t=>{const e=fr(t.location,b);B.set(o),P.set(e)})))),dt(Uo,P)),dt(Jo,{activeRoute:S,registerRoute:function(t){if(rr){if(C)return;const e=gr(t,o.pathname);if(e)return C=!0,e}else x.update((e=>{const n=L(t.id)(e);return n.push(t),n}))},unregisterRoute:function(t){x.update(L(t))},manageFocus:k,level:E,id:w,history:v?d:_.history,basepath:v?b:_.basepath}),t.$$set=t=>{"basepath"in t&&n(10,u=t.basepath),"url"in t&&n(11,p=t.url),"history"in t&&n(12,d=t.history),"primary"in t&&n(13,m=t.primary),"a11y"in t&&n(14,g=t.a11y),"$$scope"in t&&n(19,l=t.$$scope)},t.$$.update=()=>{if(1024&t.$$.dirty[0]&&u!==h&&pr(3,'You cannot change the "basepath" prop. It is ignored.'),294912&t.$$.dirty[0]){const t=mr(i,o.pathname);S.set(t)}if(163840&t.$$.dirty[0]&&v){const t=!!o.hash,e=!t&&k,n=!t||o.pathname!==s.pathname;T(e,n)}65536&t.$$.dirty[0]&&k&&r&&r.primary&&Lr({level:E,routerId:w,route:r})},[c,f,v,w,k,j,x,S,P,B,u,p,d,m,g,o,r,s,i,l,a]}var Ur=class extends Vt{constructor(t){super(),Jt(this,t,Fr,Ar,g,{basepath:10,url:11,history:12,primary:13,a11y:14},null,[-1,-1])}};const Jr=t=>({params:16&t,location:8&t}),Vr=t=>({params:rr?b(t[9]):t[4],location:t[3],navigate:t[10]});function Hr(t){let e,n;return e=new Ur({props:{primary:t[1],$$slots:{default:[Yr]},$$scope:{ctx:t}}}),{c(){It(e.$$.fragment)},m(t,o){Ft(e,t,o),n=!0},p(t,n){const o={};2&n&&(o.primary=t[1]),264217&n&&(o.$$scope={dirty:n,ctx:t}),e.$set(o)},i(t){n||(Rt(e.$$.fragment,t),n=!0)},o(t){Ot(e.$$.fragment,t),n=!1},d(t){Ut(e,t)}}}function Wr(t){let e;const n=t[17].default,o=y(n,t,t[18],Vr);return{c(){o&&o.c()},m(t,n){o&&o.m(t,n),e=!0},p(t,r){o&&o.p&&(!e||262168&r)&&w(o,n,t,t[18],e?v(n,t[18],r,Jr):k(t[18]),Vr)},i(t){e||(Rt(o,t),e=!0)},o(t){Ot(o,t),e=!1},d(t){o&&o.d(t)}}}function qr(t){let e,n,o;const r=[{location:t[3]},{navigate:t[10]},rr?b(t[9]):t[4],t[11]];var s=t[0];function i(t){let e={};for(let t=0;t<r.length;t+=1)e=l(e,r[t]);return{props:e}}return s&&(e=new s(i())),{c(){e&&It(e.$$.fragment),n=H()},m(t,r){e&&Ft(e,t,r),z(t,n,r),o=!0},p(t,o){const c=3608&o?At(r,[8&o&&{location:t[3]},1024&o&&{navigate:t[10]},528&o&&Dt(rr?b(t[9]):t[4]),2048&o&&Dt(t[11])]):{};if(s!==(s=t[0])){if(e){Tt();const t=e;Ot(t.$$.fragment,1,0,(()=>{Ut(t,1)})),Lt()}s?(e=new s(i()),It(e.$$.fragment),Rt(e.$$.fragment,1),Ft(e,n.parentNode,n)):e=null}else s&&e.$set(c)},i(t){o||(e&&Rt(e.$$.fragment,t),o=!0)},o(t){e&&Ot(e.$$.fragment,t),o=!1},d(t){t&&D(n),e&&Ut(e,t)}}}function Yr(t){let e,n,o,r;const s=[qr,Wr],i=[];function c(t,e){return null!==t[0]?0:1}return e=c(t),n=i[e]=s[e](t),{c(){n.c(),o=H()},m(t,n){i[e].m(t,n),z(t,o,n),r=!0},p(t,r){let a=e;e=c(t),e===a?i[e].p(t,r):(Tt(),Ot(i[a],1,1,(()=>{i[a]=null})),Lt(),n=i[e],n?n.p(t,r):(n=i[e]=s[e](t),n.c()),Rt(n,1),n.m(o.parentNode,o))},i(t){r||(Rt(n),r=!0)},o(t){Ot(n),r=!1},d(t){i[e].d(t),t&&D(o)}}}function Gr(t){let e,n,o,r,s,i=t[2]&&Hr(t);return{c(){e=F("div"),n=V(),i&&i.c(),o=V(),r=F("div"),Q(e,"display","none"),Y(e,"aria-hidden","true"),Y(e,"data-svnav-route-start",t[5]),Q(r,"display","none"),Y(r,"aria-hidden","true"),Y(r,"data-svnav-route-end",t[5])},m(t,c){z(t,e,c),z(t,n,c),i&&i.m(t,c),z(t,o,c),z(t,r,c),s=!0},p(t,[e]){t[2]?i?(i.p(t,e),4&e&&Rt(i,1)):(i=Hr(t),i.c(),Rt(i,1),i.m(o.parentNode,o)):i&&(Tt(),Ot(i,1,1,(()=>{i=null})),Lt())},i(t){s||(Rt(i),s=!0)},o(t){Ot(i),s=!1},d(t){t&&D(e),t&&D(n),i&&i.d(t),t&&D(o),t&&D(r)}}}const Kr=or();function Xr(t,e,n){let o;const r=["path","component","meta","primary"];let s,i,c,a,u=x(e,r),{$$slots:p={},$$scope:d}=e,{path:m=""}=e,{component:g=null}=e,{meta:f={}}=e,{primary:h=!0}=e;_r(2,e);const b=Kr(),{registerRoute:y,unregisterRoute:_,activeRoute:v}=mt(Jo);$(t,v,(t=>n(15,s=t)));const w=wr();$(t,w,(t=>n(16,c=t)));const k=vr();$(t,k,(t=>n(3,i=t)));const S=xe(null);let C;const E=xe(),P=xe({});$(t,P,(t=>n(4,a=t))),dt(Vo,E),dt(Ho,P),dt(Wo,S);const B=kr();return rr||ut((()=>_(b))),t.$$set=t=>{n(23,e=l(l({},e),j(t))),n(11,u=x(e,r)),"path"in t&&n(12,m=t.path),"component"in t&&n(0,g=t.component),"meta"in t&&n(13,f=t.meta),"primary"in t&&n(1,h=t.primary),"$$scope"in t&&n(18,d=t.$$scope)},t.$$.update=()=>{if(77834&t.$$.dirty){const t=""===m,e=tr(c,m),o={id:b,path:m,meta:f,default:t,fullPath:t?"":e,base:t?c:yr(e,i.pathname),primary:h,focusElement:S};E.set(o),n(14,C=y(o))}if(49152&t.$$.dirty&&n(2,o=!!(C||s&&s.id===b)),49156&t.$$.dirty&&o){const{params:t}=C||s;P.set(t)}},e=j(e),[g,h,o,i,a,b,v,w,k,P,B,u,m,f,C,s,c,p,d]}var Zr=class extends Vt{constructor(t){super(),Jt(this,t,Xr,Gr,g,{path:12,component:0,meta:13,primary:1})}};function Qr(t){return t<.5?4*t*t*t:.5*Math.pow(2*t-2,3)+1}function ts(t){const e=t-1;return e*e*e+1}function es(t,{delay:e=0,duration:n=400,easing:o=ts}={}){const r=getComputedStyle(t),s=+r.opacity,i=parseFloat(r.height),c=parseFloat(r.paddingTop),a=parseFloat(r.paddingBottom),l=parseFloat(r.marginTop),u=parseFloat(r.marginBottom),p=parseFloat(r.borderTopWidth),d=parseFloat(r.borderBottomWidth);return{delay:e,duration:n,easing:o,css:t=>`overflow: hidden;opacity: ${Math.min(20*t,1)*s};height: ${t*i}px;padding-top: ${t*c}px;padding-bottom: ${t*a}px;margin-top: ${t*l}px;margin-bottom: ${t*u}px;border-top-width: ${t*p}px;border-bottom-width: ${t*d}px;`}}function ns(t){let n,o,r,s;return{c(){n=F("a"),o=F("span"),o.textContent=`${e.__("Dismiss","jetpack-boost")}`,Y(o,"class","screen-reader-text"),Y(n,"href","#"),Y(n,"class","cross-close")},m(e,i){z(e,n,i),R(n,o),r||(s=W(n,"click",q(t[0])),r=!0)},p:c,i:c,o:c,d(t){t&&D(n),r=!1,s()}}}function os(t){return[function(e){gt.call(this,t,e)}]}class rs extends Vt{constructor(t){super(),Jt(this,t,os,ns,g,{})}}const ss=["core_front_page","core_posts_page","singular_page","singular_post"],is=xe(Jetpack_Boost.criticalCssDismissedRecommendations||[]),cs=Se(wo,(t=>t.providers_errors?Object.entries(t.providers_errors).map((([e,n])=>({key:e,label:t.provider_key_labels[e]||e,errors:gs(n)}))):[])),as={subscribe:is.subscribe},ls=Se([cs,as],(([t,e])=>t.filter((t=>!e.includes(t.key))))),us=Se(cs,(t=>{for(const e of ss){const n=t.find((t=>t.key===e));if(n)return n.errors[0]}})),ps=xe(null);function ds(t,e){ps.set({title:t,error:e})}async function ms(){await un.post("/recommendations/reset",{nonce:Jetpack_Boost.nonces["recommendations/reset"]}),is.set([])}function gs(t){return function(t){const e=t.reduce(((t,e)=>(t[e]=(t[e]||0)+1,t)),{});return Object.keys(e).sort(((t,n)=>e[t]>e[n]?1:-1))}(Object.values(t).map(fs)).map((e=>{const n=(o=t,r=t=>fs(t)===e,Object.entries(o).reduce(((t,[e,n])=>(r(n,e)&&(t[e]=n),t)),{}));var o,r;const s=n[Object.keys(n)[0]];return{type:s.type,firstMeta:s.meta,byUrl:n}}))}function fs(t){return"HttpError"===t.type?t.type+"-"+rn(t.meta.code,""):"UnknownError"===t.type?t.type+"-"+t.message:t.type}function hs(t){let e,n,o,r,s=[{xmlns:"http://www.w3.org/2000/svg"},{viewBox:"0 0 24 24"},t[0]],i={};for(let t=0;t<s.length;t+=1)i=l(i,s[t]);return{c(){e=U("svg"),n=U("rect"),o=U("g"),r=U("path"),this.h()},l(t){e=X(t,"svg",{xmlns:!0,viewBox:!0});var s=K(e);n=X(s,"rect",{x:!0,fill:!0,width:!0,height:!0}),K(n).forEach(D),o=X(s,"g",{});var i=K(o);r=X(i,"path",{d:!0}),K(r).forEach(D),i.forEach(D),s.forEach(D),this.h()},h(){Y(n,"x","0"),Y(n,"fill","none"),Y(n,"width","24"),Y(n,"height","24"),Y(r,"d","M13 9h-2V7h2v2zm0 2h-2v6h2v-6zm-1-7c-4.41 0-8 3.59-8 8s3.59 8 8 8 8-3.59 8-8-3.59-8-8-8m0-2c5.523 0 10 4.477 10 10s-4.477 10-10 10S2 17.523 2 12 6.477 2 12 2z"),G(e,i)},m(t,s){A(t,e,s),M(e,n),M(e,o),M(o,r)},p(t,[n]){G(e,i=At(s,[{xmlns:"http://www.w3.org/2000/svg"},{viewBox:"0 0 24 24"},1&n&&t[0]]))},i:c,o:c,d(t){t&&D(e)}}}function bs(t,e,n){return t.$$set=t=>{n(0,e=l(l({},e),j(t)))},[e=j(e)]}class $s extends Vt{constructor(t){super(),Jt(this,t,bs,hs,g,{})}}async function ys(t,e){return!("boost_version"in e)&&"version"in Jetpack_Boost&&(e.boost_version=Jetpack_Boost.version),new Promise(((n,o)=>{"undefined"!=typeof jpTracksAJAX&&"function"==typeof jpTracksAJAX.record_ajax_event?jpTracksAJAX.record_ajax_event(`boost_${t}`,"click",e).done((t=>{const e={success:"success"in t&&!0===t.success};n(e)})).fail((e=>{console.log(`Recording event 'boost_${t}' failed with error: ${e.responseText}`),o(e.responseText)})):o("Invalid jpTracksAJAX object.")}))}function _s(t,e){if("number"==typeof t)return t;if("string"==typeof t){const e=parseFloat(t);if(!isNaN(e))return e}return e}let vs;class ws extends Error{constructor(t){super(t),this.name="AdminAjaxError"}}async function ks(t){const n={method:"post",body:new URLSearchParams(t),headers:{"Content-Type":"application/x-www-form-urlencoded"}},o=await fetch(ajaxurl,n);if(!o.ok)throw new ws(e.sprintf(e.__("Received HTTP %d while communicating with your WordPress site","jetpack-boost"),o.status));return o}async function js(t){const n=await ks(t);let o;try{o=await n.json()}catch(t){throw new ws(e.sprintf(e.__("Received invalid response while communicating with your WordPress site: %s","jetpack-boost"),t.message))}if(!n.ok)throw new ws(e.sprintf(e.__("HTTP %d error received while communicating with the server.","jetpack-boost"),n.status));return o}let xs=!1;async function Ss(){if(!xs)return Cs(!1)}async function Cs(t=!0,n=!1){xs=!0;let o=!1;try{t&&(await ms(),_o({status:"requesting",progress:0}));const r=await async function(t,e){return po((t=>({...t,retried_show_stopper:e}))),yo("post","/critical-css/request-generate",{reset:t})}(t,n);if(!r||"requesting"!==r.status)return;!function(t){for(const e of Jetpack_Boost.shownAdminNoticeIds)if(e.includes(t)){const t=document.getElementById(e);t&&t.remove()}}("critical-css"),_o({status:"requesting",progress:0}),await async function(){return vs||(vs=new Promise(((t,n)=>{const o=Jetpack_Boost.site.assetPath+"/critical-css-gen.js?ver="+Jetpack_Boost.version,r=document.createElement("script");r.src=o,r.addEventListener("error",(()=>n(new Error(e.sprintf(e.__("Failed to load Critical CSS library at %s","jetpack-boost"),o)))));const s=setTimeout((()=>{n(new Error(e.sprintf(e.__("Timeout while loading Critical CSS library at %s","jetpack-boost"),o)))}),6e4);r.addEventListener("load",(()=>{clearTimeout(s),t()})),document.body.appendChild(r)})),vs)}();const s=function(t,e){return(n,o,r,s)=>{const i=100/Math.max(1,o+t),c=r/Math.max(1,s);e((n+t+c)*i)}}(r.success_count||0,(t=>{if(!qn("critical-css"))throw o=!0,new Error(e.__("Operation cancelled","jetpack-boost"));_o({status:"requesting",progress:t})})),i={"jb-generate-critical-css":r.generation_nonce};_o({status:"requesting",progress:0}),console.log("%cGenerating Critical CSS will often leave errors in your console. Most of them are nothing to worry about - just the sounds of your browser complaining about our strict security settings. Check out the following page for more information: https://jetpack.com/support/performance/jetpack-boost/jetpack-boost-console-error/","font-size: 1rem;line-height:1.6;"),await async function(t,e,n,o,r,s,i){const c=Object.keys(t).length+1;let a=0;const l=Date.now();let u=0,p=0,d=0,m=0;for(const[g,f]of Object.entries(t)){r(++a,c,0,0);try{const[t,l]=await CriticalCSSGenerator.generateCriticalCSS({browserInterface:Es(e,i),urls:f,viewports:n,progressCallback:(t,e)=>{r(a,c,t,e)},filters:{atRules:Ps,properties:Bs},successRatio:s[g]});if(!1===await vo(g,"success",{data:t,warnings:l.map((t=>t.toString())),passthrough:o}))return;p++,u+=t.length,m=t.length>m?t.length:m}catch(t){if(!t.isSuccessTargetError){await vo(g,"error",{data:{show_stopper:!0,error:t.message},passthrough:o});return void ys("critical_css_failure",{time:Date.now()-l,provider_key:g,error_message:t.message,error_type:t.type||t.constructor&&t.constructor.name||"unknown"})}{await vo(g,"error",{data:{show_stopper:!1,provider_key:g,urls:t.urlErrors},passthrough:o}),d++;const e=t.urlErrors;for(const[t,n]of Object.entries(e)){const e={url:t,provider_key:g,error_message:n.message,error_type:n.type};"HttpError"===n.type&&(e.error_meta=_s(n.meta.code)),ys("critical_css_url_error",e)}}}}if(0===p){ys("critical_css_failure",{time:Date.now()-l,error_message:"Critical CSS Generation failed for all the provider keys.",error_type:"allProvidersError"})}else{ys("critical_css_success",{time:Date.now()-l,block_count:p,error_count:d,average_size:u/Math.max(1,p),max_size:m,provider_keys:Object.keys(t).join(",")})}_o({status:"success",progress:0})}(r.pending_provider_keys,i,r.viewports,r.callback_passthrough,s,r.provider_success_ratio,r.proxy_nonce)}catch(t){o||(r=t,po((t=>({...t,status:"error",status_error:r}))))}finally{_o({status:"success",progress:0})}var r}function Es(t,e){return new class extends CriticalCSSGenerator.BrowserInterfaceIframe{constructor(){super({requestGetParameters:t,verifyPage:Ts,allowScripts:!1})}fetch(t,n,o){return"css"!==o||function(t){return new URL(t).origin===window.location.origin}(t)?fetch(t,n):ks({action:"boost_proxy_css",proxy_url:t,nonce:e})}}}function Ps(t){return!t.endsWith("keyframes")}function Bs(t,e){const n=function(t){for(const e of["-webkit-","-moz-","-ms-","-o-"])if(t.startsWith(e))return t.substring(e.length);return t}(t);return!n.startsWith("animation")}function Ts(t,e,n){return!!n.querySelector('meta[name="jb-generate-critical-css"]')}function Ls(t){let e;const n=t[4].default,o=y(n,t,t[3],null);return{c(){o&&o.c()},m(t,n){o&&o.m(t,n),e=!0},p(t,r){o&&o.p&&(!e||8&r)&&w(o,n,t,t[3],e?v(n,t[3],r,null):k(t[3]),null)},i(t){e||(Rt(o,t),e=!0)},o(t){Ot(o,t),e=!1},d(t){o&&o.d(t)}}}function Rs(t){let e,n,o,r,s,i,c,a=(t[0]?t[2]:t[1])+"",l=t[0]&&Ls(t);return{c(){e=F("button"),n=J(a),o=V(),l&&l.c(),r=H(),Y(e,"class","components-button is-link foldable-element-control"),tt(e,"visible",t[0])},m(a,u){z(a,e,u),R(e,n),z(a,o,u),l&&l.m(a,u),z(a,r,u),s=!0,i||(c=W(e,"click",t[5]),i=!0)},p(t,[o]){(!s||7&o)&&a!==(a=(t[0]?t[2]:t[1])+"")&&Z(n,a),1&o&&tt(e,"visible",t[0]),t[0]?l?(l.p(t,o),1&o&&Rt(l,1)):(l=Ls(t),l.c(),Rt(l,1),l.m(r.parentNode,r)):l&&(Tt(),Ot(l,1,1,(()=>{l=null})),Lt())},i(t){s||(Rt(l),s=!0)},o(t){Ot(l),s=!1},d(t){t&&D(e),t&&D(o),l&&l.d(t),t&&D(r),i=!1,c()}}}function Os(t,e,n){let{$$slots:o={},$$scope:r}=e,{showLabel:s}=e,{hideLabel:i}=e,{visible:c=!1}=e;return t.$$set=t=>{"showLabel"in t&&n(1,s=t.showLabel),"hideLabel"in t&&n(2,i=t.hideLabel),"visible"in t&&n(0,c=t.visible),"$$scope"in t&&n(3,r=t.$$scope)},[c,s,i,r,o,()=>n(0,c=!c)]}Kn.subscribe((t=>{t["critical-css"]&&t["critical-css"].enabled||(xs=!1)}));class Ns extends Vt{constructor(t){super(),Jt(this,t,Os,Rs,g,{showLabel:1,hideLabel:2,visible:0})}}function Ms(t,e,n){const o=t.slice();return o[6]=e[n],o}const zs=t=>({entry:7&t}),As=t=>({entry:t[6]});function Ds(t){let e,n,o;const r=t[5].default,s=y(r,t,t[4],As);return{c(){e=F("li"),s&&s.c()},m(t,n){z(t,e,n),s&&s.m(e,null),o=!0},p(t,e){s&&s.p&&(!o||23&e)&&w(s,r,t,t[4],o?v(r,t[4],e,zs):k(t[4]),As)},i(t){o||(Rt(s,t),t&&wt((()=>{n||(n=Mt(e,es,{},!0)),n.run(1)})),o=!0)},o(t){Ot(s,t),t&&(n||(n=Mt(e,es,{},!1)),n.run(0)),o=!1},d(t){t&&D(e),s&&s.d(t),t&&n&&n.end()}}}function Is(t){let n,o,r,s,i,c,a,l=e.sprintf(e.__("…and %d more","jetpack-boost"),t[0].length-t[1])+"";return{c(){n=F("a"),o=J(l),Y(n,"href",r="#")},m(e,r){z(e,n,r),R(n,o),i=!0,c||(a=W(n,"click",q(t[3])),c=!0)},p(t,n){(!i||3&n)&&l!==(l=e.sprintf(e.__("…and %d more","jetpack-boost"),t[0].length-t[1])+"")&&Z(o,l)},i(t){i||(t&&wt((()=>{s||(s=Mt(n,es,{},!0)),s.run(1)})),i=!0)},o(t){t&&(s||(s=Mt(n,es,{},!1)),s.run(0)),i=!1},d(t){t&&D(n),t&&s&&s.end(),c=!1,a()}}}function Fs(t){let e,n,o,r=t[2]?t[0]:t[0].slice(0,t[1]),s=[];for(let e=0;e<r.length;e+=1)s[e]=Ds(Ms(t,r,e));const i=t=>Ot(s[t],1,1,(()=>{s[t]=null}));let c=!t[2]&&t[0].length>t[1]&&Is(t);return{c(){e=F("ul");for(let t=0;t<s.length;t+=1)s[t].c();n=V(),c&&c.c()},m(t,r){z(t,e,r);for(let t=0;t<s.length;t+=1)s[t].m(e,null);R(e,n),c&&c.m(e,null),o=!0},p(t,[o]){if(23&o){let c;for(r=t[2]?t[0]:t[0].slice(0,t[1]),c=0;c<r.length;c+=1){const i=Ms(t,r,c);s[c]?(s[c].p(i,o),Rt(s[c],1)):(s[c]=Ds(i),s[c].c(),Rt(s[c],1),s[c].m(e,n))}for(Tt(),c=r.length;c<s.length;c+=1)i(c);Lt()}!t[2]&&t[0].length>t[1]?c?(c.p(t,o),7&o&&Rt(c,1)):(c=Is(t),c.c(),Rt(c,1),c.m(e,null)):c&&(Tt(),Ot(c,1,1,(()=>{c=null})),Lt())},i(t){if(!o){for(let t=0;t<r.length;t+=1)Rt(s[t]);Rt(c),o=!0}},o(t){s=s.filter(Boolean);for(let t=0;t<s.length;t+=1)Ot(s[t]);Ot(c),o=!1},d(t){t&&D(e),I(s,t),c&&c.d()}}}function Us(t,e,n){let{$$slots:o={},$$scope:r}=e,{entries:s=[]}=e,{showLimit:i=2}=e,c=!1;return t.$$set=t=>{"entries"in t&&n(0,s=t.entries),"showLimit"in t&&n(1,i=t.showLimit),"$$scope"in t&&n(4,r=t.$$scope)},[s,i,c,function(){n(2,c=!c)},r,o]}class Js extends Vt{constructor(t){super(),Jt(this,t,Us,Fs,g,{entries:0,showLimit:1})}}function Vs(t,e,n){const o=t.slice();return o[2]=e[n],o[4]=n,o}function Hs(t){let e,n,o,r,s,i,c,a,l=t[4]+1+"";return i=new On({props:{template:t[2],vars:t[1]}}),{c(){e=F("li"),n=F("span"),o=J(l),r=V(),s=F("span"),It(i.$$.fragment),c=V(),Y(n,"class","index"),Y(s,"class","text")},m(t,l){z(t,e,l),R(e,n),R(n,o),R(e,r),R(e,s),Ft(i,s,null),R(e,c),a=!0},p(t,e){const n={};1&e&&(n.template=t[2]),2&e&&(n.vars=t[1]),i.$set(n)},i(t){a||(Rt(i.$$.fragment,t),a=!0)},o(t){Ot(i.$$.fragment,t),a=!1},d(t){t&&D(e),Ut(i)}}}function Ws(t){let e,n,o=t[0],r=[];for(let e=0;e<o.length;e+=1)r[e]=Hs(Vs(t,o,e));const s=t=>Ot(r[t],1,1,(()=>{r[t]=null}));return{c(){e=F("ol");for(let t=0;t<r.length;t+=1)r[t].c();Y(e,"class","numbered-list")},m(t,o){z(t,e,o);for(let t=0;t<r.length;t+=1)r[t].m(e,null);n=!0},p(t,[n]){if(3&n){let i;for(o=t[0],i=0;i<o.length;i+=1){const s=Vs(t,o,i);r[i]?(r[i].p(s,n),Rt(r[i],1)):(r[i]=Hs(s),r[i].c(),Rt(r[i],1),r[i].m(e,null))}for(Tt(),i=o.length;i<r.length;i+=1)s(i);Lt()}},i(t){if(!n){for(let t=0;t<o.length;t+=1)Rt(r[t]);n=!0}},o(t){r=r.filter(Boolean);for(let t=0;t<r.length;t+=1)Ot(r[t]);n=!1},d(t){t&&D(e),I(r,t)}}}function qs(t,e,n){let{items:o}=e,{vars:r}=e;return t.$$set=t=>{"items"in t&&n(0,o=t.items),"vars"in t&&n(1,r=t.vars)},[o,r]}class Ys extends Vt{constructor(t){super(),Jt(this,t,qs,Ws,g,{items:0,vars:1})}}function Gs(t){let n,o,r,s,i,a,l,u,p,d,m,g,f,h,b,$;return{c(){n=F("div"),o=F("div"),r=F("div"),r.textContent=`${e.__("Protocol","jetpack-boost")}`,s=V(),i=F("div"),a=V(),l=J(t[0]),u=V(),p=F("div"),p.textContent="://",d=V(),m=F("div"),g=F("div"),g.textContent=`${e.__("Host name","jetpack-boost")}`,f=V(),h=F("div"),b=V(),$=J(t[1]),Y(r,"class","label"),Y(i,"class","arrows"),Y(o,"class","segment"),Y(p,"class","segment"),Y(g,"class","label"),Y(h,"class","arrows"),Y(m,"class","segment"),Y(n,"class","url-container")},m(t,e){z(t,n,e),R(n,o),R(o,r),R(o,s),R(o,i),R(o,a),R(o,l),R(n,u),R(n,p),R(n,d),R(n,m),R(m,g),R(m,f),R(m,h),R(m,b),R(m,$)},p:c,i:c,o:c,d(t){t&&D(n)}}}function Ks(t){return[window.location.protocol.split(":")[0],window.location.hostname]}class Xs extends Vt{constructor(t){super(),Jt(this,t,Ks,Gs,g,{})}}function Zs(t){return ri(t.type).describeSet(t)}function Qs(t){const e=ri(t.type);return e.suggestion?e.suggestion(t):{paragraph:""}}function ti(t){const e=ri(t.type);return e.footerComponent?e.footerComponent():null}function ei(t){const e=ri(t.type);return e.rawError?e.rawError(t):""}function ni(t){return Object.keys(t.byUrl).length}const oi={HttpError:{describeSet:t=>e.sprintf(e._n("Boost received HTTP error <b>%d</b> on the following page:","Boost received HTTP error <b>%d</b> on the following pages:",ni(t),"jetpack-boost"),t.firstMeta.code),suggestion:t=>function(t,n){switch(t){case 401:case 403:return{paragraph:e.sprintf(e._n("%d means there is a permission issue in your WordPress site. Please follow these troubleshooting steps for the page:","%d means there is a permission issue in your WordPress site. Please follow these troubleshooting steps for each of the pages:",n,"jetpack-boost"),t),list:[e.__("Check your WordPress settings, or contact your hosting provider to ask why the above URL is unavailable.","jetpack-boost"),e.__("<retry>Try again</retry> to generate the Critical CSS.","jetpack-boost")],closingParagraph:e.__("If this is a private page and not supposed to be viewed publicly, you can safely ignore this message.","jetpack-boost")};case 404:return{paragraph:e._n("Your WordPress site has reported that the above page does not exist. Please ensure that the URL is correct, and <retry>try again</retry>.","Your WordPress site has reported that the above pages do not exist. Please ensure that the URLs are correct, and <retry>try again</retry>.",n,"jetpack-boost"),list:[e.__("Visit the link, and confirm that the page you landed on loads successfully.","jetpack-boost"),e.__("If the page shows an error, please verify that the page should be a part of your WordPress site.","jetpack-boost"),e.__('Try visiting the link using "Incognito Mode" or "Private Browsing" in your browser to check if the error occurs when you are not logged in.',"jetpack-boost"),e.__('If you see an error only when not logged into your WordPress site (i.e.: in "Incognito Mode"), then check for plugins which might be enforcing access permissions on your pages. For example, a plugin which only allows authenticated users to view specific areas of your site.',"jetpack-boost")],closingParagraph:e.__("If the page is only accessible to users who are logged in to your WordPress site, or should not be a part of your site then it is safe to ignore this error.","jetpack-boost")};case 418:return{paragraph:e.__("Your WordPress site returned a 418 error which many web hosts use to indicate they rejected your request due to security rules. Please contact your hosting provider for more information.","jetpack-boost"),list:[e.__('Contact your hosting provider, with details of this issue. Please let them know it is an "HTTP 418" error, which URL(s) are affected, and the time it occurred.',"jetpack-boost"),e.__("Your hosting provider should be able to advise you on next steps.","jetpack-boost"),e.__("If you manage to sort the issue out with your hosting provider, please <retry>try again</retry> to regenerate your Critical CSS.","jetpack-boost")]};case 500:return{paragraph:e._n("Your WordPress site encountered an error while trying to load the above page.","Your WordPress site encountered errors while trying to load the above pages.",n,"jetpack-boost"),list:[e.__('Learn about the error and common solutions by <a target="_blank" href="https://wordpress.org/support/article/common-wordpress-errors/#internal-server-error">clicking here</a>.',"jetpack-boost"),e.__("If the issue is still not resolved, check your server logs or contact your hosting provider for help to investigate the issue.","jetpack-boost"),e.__("Once you have resolved the issue which caused the 500 error, you can <retry>try again</retry>.","jetpack-boost")]};default:return{paragraph:e._n("Please verify the link is valid and <retry>try again</retry>. We recommend the following:","Please verify each link is valid and <retry>try again</retry>. For each link, we recommend the following:",n,"jetpack-boost"),list:[e.__("Visit the link and check for an error.","jetpack-boost"),e.__("<retry>Try to generate Critical CSS again<retry>, in case the error was intermittent.","jetpack-boost"),e.sprintf(e.__("Check your server logs for information about the HTTP %d error, or contact your hosting provider for help with investigating the problem.","jetpack-boost"),t),e.__("Once you have resolved the error, please <retry>try again</retry>.","jetpack-boost"),e.__("If you need help understanding the error, or investigating what went wrong please contact <support>Jetpack Boost Support</support>.","jetpack-boost")]}}}(_s(t.firstMeta.code),ni(t))},RedirectError:{describeSet:t=>e._n("This URL is redirecting to a different page:","These URLs are redirecting to different pages:",ni(t),"jetpack-boost"),suggestion:t=>({paragraph:e.__("This may indicate that a WordPress plugin is redirecting users who are not logged in to a different location, or it may indicate that your hosting provider is redirecting your WordPress site to a different URL.","jetpack-boost"),list:[e.__('Try visiting the link using "Incognito Mode" or "Private Browsing" in your browser and note if the page is being redirected.',"jetpack-boost"),e.__("If it is redirecting, check if a plugin could potentially create the redirection and fix it if appropriate. Otherwise, contact your hosting provider for assistance to fix the URL redirection.","jetpack-boost"),e.__("If you believe the issue is resolved, please <retry>try again</retry>.","jetpack-boost")],closingParagraph:e.__("If you think that the redirection is valid, then it is safe to ignore this issue.","jetpack-boost")})},CrossDomainError:{describeSet:t=>e._n("It looks like this URL doesn't match:","It looks like these URLs don't match:",ni(t),"jetpack-boost"),suggestion:t=>({paragraph:e._n("Visit the page and complete the following troubleshooting steps.","Visit each page and complete the following troubleshooting steps.",ni(t),"jetpack-boost"),list:[e.__('Visit the page and look at the protocol and host name to ensure it matches the one in your <a target="_blank" href="https://wordpress.org/support/article/administration-screens/">WordPress Administration Screen</a>.',"jetpack-boost"),e.__("If not, then please reach out to your hosting provider and ask why.","jetpack-boost"),e.__("If you believe the issue is resolved, please <retry>try again</retry>.","jetpack-boost")]}),footerComponent:()=>Xs},LoadTimeoutError:{describeSet:t=>e._n("This page timed out:","These pages timed out:",ni(t),"jetpack-boost"),suggestion:t=>({paragraph:e._n("The page timed out during load. There could be various reasons but most likely a plugin is causing this issue. Please complete the following steps.","The pages timed out during load. There could be various reasons but most likely a plugin is causing this issue. Please complete the following steps for each of the pages.",ni(t),"jetpack-boost"),list:[e.__("Clear the cache in your browser.","jetpack-boost"),e.__("Visit the page while not logged into WordPress.","jetpack-boost"),e.__("See how long it takes to load compared to other pages on your site.","jetpack-boost"),e.__("If this page is slower than the others, check what plugins are working on that page.","jetpack-boost"),e.__("Deactivate any plugin that you believe are making the page slow.","jetpack-boost"),e.__("<retry>Try again</retry> to generate the Critical CSS.","jetpack-boost")]})},UrlVerifyError:{describeSet:t=>e._n("Jetpack Boost couldn't verify this page:","Jetpack Boost couldn't verify these pages:",ni(t),"jetpack-boost"),suggestion:t=>({paragraph:e._n("Please follow the troubleshooting steps below for the page.","Please follow the troubleshooting steps below for each of the pages.",ni(t),"jetpack-boost"),list:[e.__("Visit the page.","jetpack-boost"),e.__("Verify that the content displayed is a part of your WordPress site, and not an external page managed by a different system.","jetpack-boost"),e.__("<retry>Try again</retry> to generate the Critical CSS.","jetpack-boost")]})},EmptyCSSError:{describeSet:t=>e._n("It looks like this page does not contain any relevant CSS in its external style sheet(s):","It looks like these pages do not contain any relevant CSS in their external style sheet(s):",ni(t),"jetpack-boost"),suggestion:t=>({paragraph:e._n("Please follow the troubleshooting steps below for the page.","Please follow the troubleshooting steps below for each of the pages.",ni(t),"jetpack-boost"),list:[e.__("Visit the page.","jetpack-boost"),e.__("Verify its styles load correctly, and <retry>try again</retry>.","jetpack-boost")],closingParagraph:e.__("If you are using a plugin which embeds your CSS styles directly into your pages, or your site does not use external CSS style sheets, then it is safe to ignore this issue as Critical CSS can only speed up pages which use external styles.","jetpack-boost")})},UnknownError:{describeSet:t=>e._n("Something went wrong, which Jetpack Boost did not anticipate. An unexpected error occurred while trying to generate Critical CSS for the following page:","Something went wrong, which Jetpack Boost did not anticipate. An unexpected error occurred while trying to generate Critical CSS for the following pages:",ni(t),"jetpack-boost"),rawError:t=>Object.values(t.byUrl)[0].message,suggestion:t=>({paragraph:e._n("Please follow the troubleshooting steps below for the page.","Please follow the troubleshooting steps below for each of the pages.",ni(t),"jetpack-boost"),list:[e.__("Visit the page.","jetpack-boost"),e.__("Verify that the page loads correctly.","jetpack-boost"),e.__("If it does, <retry>try again</retry> to generate the Critical CSS.","jetpack-boost"),e.__("If the error still persist please contact <support>Jetpack Boost Support</support> with a copy of your error message.","jetpack-boost")]})},XFrameDenyError:{describeSet:t=>e._n("Jetpack Boost couldn't load the following page due to its X-Frame-Options configuration:","Jetpack Boost couldn't load the following page due to their X-Frame-Options configuration:",ni(t),"jetpack-boost"),rawError:t=>Object.values(t.byUrl)[0].message,suggestion:t=>({paragraph:e.__('Jetpack Boost uses iframes while generating your Critical CSS. Unfortunately, your site has a special configuration header which prevents it from loading inside an iframe. The header is called "X-Frame-Options: DENY". This can be added to a WordPress site either by using a plugin, or by server configuration.',"jetpack-boost"),list:[e.__("Check that you are not using any plugins which add extra HTTP headers to your WordPress site, and deactivate them if you are.","jetpack-boost"),e.__('If you are unsure of what these headers are, or where they come from please contact your hosting provider and ask them to remove the "X-Frame-Options" header from your site',"jetpack-boost"),e.__("<retry>Try again</retry> to generate the Critical CSS.","jetpack-boost")]})}};function ri(t){return oi[t]||oi.UnknownError}function si(t){let e,n,o,r=t[7].label+"";return{c(){e=F("a"),n=J(r),Y(e,"href",o=t[7].href),Y(e,"target","_blank")},m(t,o){z(t,e,o),R(e,n)},p(t,s){128&s&&r!==(r=t[7].label+"")&&Z(n,r),128&s&&o!==(o=t[7].href)&&Y(e,"href",o)},d(t){t&&D(e)}}}function ii(t){let n,o,r,s,i,c,a,l,u,p,d=Qs(t[3]).list,m=t[2]&&Qs(t[3]).closingParagraph;s=new On({props:{template:Qs(t[3]).paragraph,vars:t[5]}});let g=d&&ci(t),f=m&&ai(t);var h=ti(t[3]);return h&&(l=new h({})),{c(){n=F("h5"),n.textContent=`${e.__("What to do","jetpack-boost")}`,o=V(),r=F("p"),It(s.$$.fragment),i=V(),g&&g.c(),c=V(),f&&f.c(),a=V(),l&&It(l.$$.fragment),u=H(),Y(r,"class","suggestion")},m(t,e){z(t,n,e),z(t,o,e),z(t,r,e),Ft(s,r,null),R(r,i),g&&g.m(r,null),z(t,c,e),f&&f.m(t,e),z(t,a,e),l&&Ft(l,t,e),z(t,u,e),p=!0},p(t,e){const n={};if(8&e&&(n.template=Qs(t[3]).paragraph),s.$set(n),8&e&&(d=Qs(t[3]).list),d?g?(g.p(t,e),8&e&&Rt(g,1)):(g=ci(t),g.c(),Rt(g,1),g.m(r,null)):g&&(Tt(),Ot(g,1,1,(()=>{g=null})),Lt()),12&e&&(m=t[2]&&Qs(t[3]).closingParagraph),m?f?(f.p(t,e),12&e&&Rt(f,1)):(f=ai(t),f.c(),Rt(f,1),f.m(a.parentNode,a)):f&&(Tt(),Ot(f,1,1,(()=>{f=null})),Lt()),h!==(h=ti(t[3]))){if(l){Tt();const t=l;Ot(t.$$.fragment,1,0,(()=>{Ut(t,1)})),Lt()}h?(l=new h({}),It(l.$$.fragment),Rt(l.$$.fragment,1),Ft(l,u.parentNode,u)):l=null}},i(t){p||(Rt(s.$$.fragment,t),Rt(g),Rt(f),l&&Rt(l.$$.fragment,t),p=!0)},o(t){Ot(s.$$.fragment,t),Ot(g),Ot(f),l&&Ot(l.$$.fragment,t),p=!1},d(t){t&&D(n),t&&D(o),t&&D(r),Ut(s),g&&g.d(),t&&D(c),f&&f.d(t),t&&D(a),t&&D(u),l&&Ut(l,t)}}}function ci(t){let e,n;return e=new Ys({props:{items:Qs(t[3]).list,vars:t[5]}}),{c(){It(e.$$.fragment)},m(t,o){Ft(e,t,o),n=!0},p(t,n){const o={};8&n&&(o.items=Qs(t[3]).list),e.$set(o)},i(t){n||(Rt(e.$$.fragment,t),n=!0)},o(t){Ot(e.$$.fragment,t),n=!1},d(t){Ut(e,t)}}}function ai(t){let e,n,o;return n=new On({props:{template:Qs(t[3]).closingParagraph,vars:t[5]}}),{c(){e=F("p"),It(n.$$.fragment),Y(e,"class","suggestion-closing")},m(t,r){z(t,e,r),Ft(n,e,null),o=!0},p(t,e){const o={};8&e&&(o.template=Qs(t[3]).closingParagraph),n.$set(o)},i(t){o||(Rt(n.$$.fragment,t),o=!0)},o(t){Ot(n.$$.fragment,t),o=!1},d(t){t&&D(e),Ut(n)}}}function li(t){let e,n,o,r;const s=[pi,ui],i=[];function c(t,e){return t[1]?0:1}return e=c(t),n=i[e]=s[e](t),{c(){n.c(),o=H()},m(t,n){i[e].m(t,n),z(t,o,n),r=!0},p(t,r){let a=e;e=c(t),e===a?i[e].p(t,r):(Tt(),Ot(i[a],1,1,(()=>{i[a]=null})),Lt(),n=i[e],n?n.p(t,r):(n=i[e]=s[e](t),n.c()),Rt(n,1),n.m(o.parentNode,o))},i(t){r||(Rt(n),r=!0)},o(t){Ot(n),r=!1},d(t){i[e].d(t),t&&D(o)}}}function ui(t){let e,n,o,r,s=ei(t[3])+"";return{c(){e=F("p"),n=J(s),Y(e,"class","raw-error")},m(t,o){z(t,e,o),R(e,n),r=!0},p(t,e){(!r||8&e)&&s!==(s=ei(t[3])+"")&&Z(n,s)},i(t){r||(t&&wt((()=>{o||(o=Mt(e,es,{},!0)),o.run(1)})),r=!0)},o(t){t&&(o||(o=Mt(e,es,{},!1)),o.run(0)),r=!1},d(t){t&&D(e),t&&o&&o.end()}}}function pi(t){let n,o;return n=new Ns({props:{showLabel:e.__("See error message","jetpack-boost"),hideLabel:e.__("Hide error message","jetpack-boost"),$$slots:{default:[di]},$$scope:{ctx:t}}}),{c(){It(n.$$.fragment)},m(t,e){Ft(n,t,e),o=!0},p(t,e){const o={};264&e&&(o.$$scope={dirty:e,ctx:t}),n.$set(o)},i(t){o||(Rt(n.$$.fragment,t),o=!0)},o(t){Ot(n.$$.fragment,t),o=!1},d(t){Ut(n,t)}}}function di(t){let e,n,o,r,s=ei(t[3])+"";return{c(){e=F("p"),n=J(s),Y(e,"class","raw-error")},m(t,o){z(t,e,o),R(e,n),r=!0},p(t,e){(!r||8&e)&&s!==(s=ei(t[3])+"")&&Z(n,s)},i(t){r||(t&&wt((()=>{o||(o=Mt(e,es,{},!0)),o.run(1)})),r=!0)},o(t){t&&(o||(o=Mt(e,es,{},!1)),o.run(0)),r=!1},d(t){t&&D(e),t&&o&&o.end()}}}function mi(t){let e,n,o,r,s,i,c,a,l=ei(t[3]);o=new On({props:{template:Zs(t[3]),vars:{templateVars:t[5]}}}),s=new Js({props:{entries:t[4],$$slots:{default:[si,({entry:t})=>({7:t}),({entry:t})=>t?128:0]},$$scope:{ctx:t}}});let u=t[0]&&ii(t),p=l&&li(t);return{c(){e=F("div"),n=F("span"),It(o.$$.fragment),r=V(),It(s.$$.fragment),i=V(),u&&u.c(),c=V(),p&&p.c(),Y(n,"class","error-description"),Y(e,"class","jb-critical-css__error-description")},m(t,l){z(t,e,l),R(e,n),Ft(o,n,null),R(e,r),Ft(s,e,null),R(e,i),u&&u.m(e,null),R(e,c),p&&p.m(e,null),a=!0},p(t,[n]){const r={};8&n&&(r.template=Zs(t[3])),o.$set(r);const i={};16&n&&(i.entries=t[4]),384&n&&(i.$$scope={dirty:n,ctx:t}),s.$set(i),t[0]?u?(u.p(t,n),1&n&&Rt(u,1)):(u=ii(t),u.c(),Rt(u,1),u.m(e,c)):u&&(Tt(),Ot(u,1,1,(()=>{u=null})),Lt()),8&n&&(l=ei(t[3])),l?p?(p.p(t,n),8&n&&Rt(p,1)):(p=li(t),p.c(),Rt(p,1),p.m(e,null)):p&&(Tt(),Ot(p,1,1,(()=>{p=null})),Lt())},i(t){a||(Rt(o.$$.fragment,t),Rt(s.$$.fragment,t),Rt(u),Rt(p),a=!0)},o(t){Ot(o.$$.fragment,t),Ot(s.$$.fragment,t),Ot(u),Ot(p),a=!1},d(t){t&&D(e),Ut(o),Ut(s),u&&u.d(),p&&p.d()}}}function gi(t,e,n){const o=pt();let{showSuggestion:r=!0}=e,{foldRawErrors:s=!0}=e,{showClosingParagraph:i=!0}=e,{errorSet:c}=e,a=[];const l={...xn((()=>o("retry")),"retry"),...En()};return t.$$set=t=>{"showSuggestion"in t&&n(0,r=t.showSuggestion),"foldRawErrors"in t&&n(1,s=t.foldRawErrors),"showClosingParagraph"in t&&n(2,i=t.showClosingParagraph),"errorSet"in t&&n(3,c=t.errorSet)},t.$$.update=()=>{8&t.$$.dirty&&n(4,a=Object.entries(c.byUrl).map((([t,e])=>({href:e.meta.url?e.meta.url:t,label:t}))))},[r,s,i,c,a,l]}class fi extends Vt{constructor(t){super(),Jt(this,t,gi,mi,g,{showSuggestion:0,foldRawErrors:1,showClosingParagraph:2,errorSet:3})}}function hi(t,e,n){const o=t.slice();return o[10]=e[n],o}function bi(t,e,n){const o=t.slice();return o[13]=e[n],o}function $i(t){let n,o,r,s,i,c=e.sprintf(e._n("Show %d hidden recommendation.","Show %d hidden recommendations.",t[2].length,"jetpack-boost"),t[2].length)+"";return{c(){n=F("p"),o=F("button"),r=J(c),Y(o,"class","components-button is-link")},m(e,c){z(e,n,c),R(n,o),R(o,r),s||(i=W(o,"click",t[6]),s=!0)},p(t,n){4&n&&c!==(c=e.sprintf(e._n("Show %d hidden recommendation.","Show %d hidden recommendations.",t[2].length,"jetpack-boost"),t[2].length)+"")&&Z(r,c)},d(t){t&&D(n),s=!1,i()}}}function yi(t){let e,n,o,r,s,i,c=t[2].length>0&&$i(t);return{c(){e=F("section"),n=F("p"),o=J(t[1]),r=V(),c&&c.c()},m(t,s){z(t,e,s),R(e,n),R(n,o),R(e,r),c&&c.m(e,null),i=!0},p(t,n){(!i||2&n)&&Z(o,t[1]),t[2].length>0?c?c.p(t,n):(c=$i(t),c.c(),c.m(e,null)):c&&(c.d(1),c=null)},i(t){i||(t&&wt((()=>{s||(s=Mt(e,es,{},!0)),s.run(1)})),i=!0)},o(t){t&&(s||(s=Mt(e,es,{},!1)),s.run(0)),i=!1},d(t){t&&D(e),c&&c.d(),t&&s&&s.end()}}}function _i(t){let e,n;return e=new Fn({props:{title:t[3].title,error:t[3].error}}),{c(){It(e.$$.fragment)},m(t,o){Ft(e,t,o),n=!0},p(t,n){const o={};8&n&&(o.title=t[3].title),8&n&&(o.error=t[3].error),e.$set(o)},i(t){n||(Rt(e.$$.fragment,t),n=!0)},o(t){Ot(e.$$.fragment,t),n=!1},d(t){Ut(e,t)}}}function vi(t){let e,n,o;return n=new fi({props:{errorSet:t[13]}}),n.$on("retry",t[4]),{c(){e=F("div"),It(n.$$.fragment),Y(e,"class","problem")},m(t,r){z(t,e,r),Ft(n,e,null),o=!0},p(t,e){const o={};1&e&&(o.errorSet=t[13]),n.$set(o)},i(t){o||(Rt(n.$$.fragment,t),o=!0)},o(t){Ot(n.$$.fragment,t),o=!1},d(t){t&&D(e),Ut(n)}}}function wi(t,e){let n,o,r,s,i,c,a,l,u,p,d,m=e[10].label+"";o=new rs({}),o.$on("click",(function(){return e[8](e[10])})),i=new $s({});let g=[e[10].errors[0]],f=[];for(let t=0;t<1;t+=1)f[t]=vi(bi(e,g,t));const h=t=>Ot(f[t],1,1,(()=>{f[t]=null}));return{key:t,first:null,c(){n=F("div"),It(o.$$.fragment),r=V(),s=F("h4"),It(i.$$.fragment),c=V(),a=J(m),l=V();for(let t=0;t<1;t+=1)f[t].c();u=V(),Y(n,"class","panel"),this.first=n},m(t,e){z(t,n,e),Ft(o,n,null),R(n,r),R(n,s),Ft(i,s,null),R(s,c),R(s,a),R(n,l);for(let t=0;t<1;t+=1)f[t].m(n,null);R(n,u),d=!0},p(t,o){if(e=t,(!d||1&o)&&m!==(m=e[10].label+"")&&Z(a,m),17&o){let t;for(g=[e[10].errors[0]],t=0;t<1;t+=1){const r=bi(e,g,t);f[t]?(f[t].p(r,o),Rt(f[t],1)):(f[t]=vi(r),f[t].c(),Rt(f[t],1),f[t].m(n,u))}for(Tt(),t=1;t<1;t+=1)h(t);Lt()}},i(t){if(!d){Rt(o.$$.fragment,t),Rt(i.$$.fragment,t);for(let t=0;t<1;t+=1)Rt(f[t]);t&&wt((()=>{p||(p=Mt(n,es,{},!0)),p.run(1)})),d=!0}},o(t){Ot(o.$$.fragment,t),Ot(i.$$.fragment,t),f=f.filter(Boolean);for(let t=0;t<1;t+=1)Ot(f[t]);t&&(p||(p=Mt(n,es,{},!1)),p.run(0)),d=!1},d(t){t&&D(n),Ut(o),Ut(i),I(f,t),t&&p&&p.end()}}}function ki(t){let n,o,r,s,i,a,l,u,p=t[1],d=[],m=new Map;o=new tn({});let f=yi(t),h=t[3]&&_i(t),b=t[0];const $=t=>t[10].key;for(let e=0;e<b.length;e+=1){let n=hi(t,b,e),o=$(n);m.set(o,d[e]=wi(o,n))}return{c(){n=F("div"),It(o.$$.fragment),r=V(),s=F("h3"),s.textContent=`${e.__("Critical CSS advanced recommendations","jetpack-boost")}`,i=V(),f.c(),a=V(),h&&h.c(),l=V();for(let t=0;t<d.length;t+=1)d[t].c();Y(n,"class","jb-container--narrow jb-critical-css__advanced")},m(t,e){z(t,n,e),Ft(o,n,null),R(n,r),R(n,s),R(n,i),f.m(n,null),R(n,a),h&&h.m(n,null),R(n,l);for(let t=0;t<d.length;t+=1)d[t].m(n,null);u=!0},p(t,[e]){2&e&&g(p,p=t[1])?(Tt(),Ot(f,1,1,c),Lt(),f=yi(t),f.c(),Rt(f),f.m(n,a)):f.p(t,e),t[3]?h?(h.p(t,e),8&e&&Rt(h,1)):(h=_i(t),h.c(),Rt(h,1),h.m(n,l)):h&&(Tt(),Ot(h,1,1,(()=>{h=null})),Lt()),49&e&&(b=t[0],Tt(),d=function(t,e,n,o,r,s,i,c,a,l,u,p){let d=t.length,m=s.length,g=d;const f={};for(;g--;)f[t[g].key]=g;const h=[],b=new Map,$=new Map;for(g=m;g--;){const t=p(r,s,g),c=n(t);let a=i.get(c);a?o&&a.p(t,e):(a=l(c,t),a.c()),b.set(c,h[g]=a),c in f&&$.set(c,Math.abs(g-f[c]))}const y=new Set,_=new Set;function v(t){Rt(t,1),t.m(c,u),i.set(t.key,t),u=t.first,m--}for(;d&&m;){const e=h[m-1],n=t[d-1],o=e.key,r=n.key;e===n?(u=e.first,d--,m--):b.has(r)?!i.has(o)||y.has(o)?v(e):_.has(r)?d--:$.get(o)>$.get(r)?(_.add(o),v(e)):(y.add(r),d--):(a(n,i),d--)}for(;d--;){const e=t[d];b.has(e.key)||a(e,i)}for(;m;)v(h[m-1]);return h}(d,e,$,1,t,b,m,n,zt,wi,null,hi),Lt())},i(t){if(!u){Rt(o.$$.fragment,t),Rt(f),Rt(h);for(let t=0;t<b.length;t+=1)Rt(d[t]);u=!0}},o(t){Ot(o.$$.fragment,t),Ot(f),Ot(h);for(let t=0;t<d.length;t+=1)Ot(d[t]);u=!1},d(t){t&&D(n),Ut(o),f.d(t),h&&h.d();for(let t=0;t<d.length;t+=1)d[t].d()}}}function ji(t,n,o){let r,s,i,c;$(t,ho,(t=>o(7,r=t))),$(t,ls,(t=>o(0,s=t))),$(t,as,(t=>o(2,i=t))),$(t,ps,(t=>o(3,c=t)));const{navigate:a}=Xe;async function l(t){try{await async function(t){await un.post("/recommendations/dismiss",{providerKey:t,nonce:Jetpack_Boost.nonces["recommendations/dismiss"]}),is.update((e=>[...e,t]))}(t)}catch(t){ds(e.__("Failed to dismiss recommendation","jetpack-boost"),t)}}let u;return t.$$.update=()=>{1&t.$$.dirty&&o(1,u=0===s.length?e.__("Congratulations, you have dealt with all the recommendations.","jetpack-boost"):e.__("While Jetpack Boost has been able to automatically generate optimized CSS for most of your important files & sections, we have identified a few more that require your attention.","jetpack-boost")),128&t.$$.dirty&&(r||a(-1))},[s,u,i,c,function(){Cs(),a(-1)},l,async function(){try{await ms()}catch(t){ds(e.__("Failed to show the dismissed recommendations","jetpack-boost"),t)}},r,t=>l(t.key)]}class xi extends Vt{constructor(t){super(),Jt(this,t,ji,ki,g,{})}}function Si(t){let n,o;return n=new Ns({props:{showLabel:e.__("See error message","jetpack-boost"),hideLabel:e.__("Hide error message","jetpack-boost"),$$slots:{default:[Pi]},$$scope:{ctx:t}}}),{c(){It(n.$$.fragment)},m(t,e){Ft(n,t,e),o=!0},p(t,e){const o={};142&e&&(o.$$scope={dirty:e,ctx:t}),n.$set(o)},i(t){o||(Rt(n.$$.fragment,t),o=!0)},o(t){Ot(n.$$.fragment,t),o=!1},d(t){Ut(n,t)}}}function Ci(t){let e,n=t[1].status_error+"";return{c(){e=J(n)},m(t,n){z(t,e,n)},p(t,o){2&o&&n!==(n=t[1].status_error+"")&&Z(e,n)},i:c,o:c,d(t){t&&D(e)}}}function Ei(t){let e,n;return e=new fi({props:{errorSet:t[2],showSuggestion:!0,showClosingParagraph:!1,foldRawErrors:!1}}),e.$on("retry",t[5]),{c(){It(e.$$.fragment)},m(t,o){Ft(e,t,o),n=!0},p(t,n){const o={};4&n&&(o.errorSet=t[2]),e.$set(o)},i(t){n||(Rt(e.$$.fragment,t),n=!0)},o(t){Ot(e.$$.fragment,t),n=!1},d(t){Ut(e,t)}}}function Pi(t){let e,n,o,r,s;const i=[Ei,Ci],c=[];function a(t,e){return t[3]?0:1}return n=a(t),o=c[n]=i[n](t),{c(){e=F("div"),o.c(),Y(e,"class","raw-error")},m(t,o){z(t,e,o),c[n].m(e,null),s=!0},p(t,r){let s=n;n=a(t),n===s?c[n].p(t,r):(Tt(),Ot(c[s],1,1,(()=>{c[s]=null})),Lt(),o=c[n],o?o.p(t,r):(o=c[n]=i[n](t),o.c()),Rt(o,1),o.m(e,null))},i(t){s||(Rt(o),t&&wt((()=>{r||(r=Mt(e,es,{},!0)),r.run(1)})),s=!0)},o(t){Ot(o),t&&(r||(r=Mt(e,es,{},!1)),r.run(0)),s=!1},d(t){t&&D(e),c[n].d(),t&&r&&r.end()}}}function Bi(t){let n,o,r,s,i,c=(t[1].retried_show_stopper?e.__("Hmm, looks like something went wrong. We're still seeing an unexpected error. Please reach out to our support to get help.","jetpack-boost"):e.__("An unexpected error has occurred. As this error may be temporary, please try and refresh the Critical CSS.","jetpack-boost"))+"",a=(t[3]||t[1].status_error)&&Si(t);return{c(){n=F("p"),o=J(c),r=V(),a&&a.c(),s=H()},m(t,e){z(t,n,e),R(n,o),z(t,r,e),a&&a.m(t,e),z(t,s,e),i=!0},p(t,n){(!i||2&n)&&c!==(c=(t[1].retried_show_stopper?e.__("Hmm, looks like something went wrong. We're still seeing an unexpected error. Please reach out to our support to get help.","jetpack-boost"):e.__("An unexpected error has occurred. As this error may be temporary, please try and refresh the Critical CSS.","jetpack-boost"))+"")&&Z(o,c),t[3]||t[1].status_error?a?(a.p(t,n),10&n&&Rt(a,1)):(a=Si(t),a.c(),Rt(a,1),a.m(s.parentNode,s)):a&&(Tt(),Ot(a,1,1,(()=>{a=null})),Lt())},i(t){i||(Rt(a),i=!0)},o(t){Ot(a),i=!1},d(t){t&&D(n),t&&D(r),a&&a.d(t),t&&D(s)}}}function Ti(t){let n,o,r;return{c(){n=F("button"),n.textContent=`${e.__("Refresh","jetpack-boost")}`,Y(n,"class","secondary")},m(e,s){z(e,n,s),o||(r=W(n,"click",t[5]),o=!0)},p:c,d(t){t&&D(n),o=!1,r()}}}function Li(t){let n,o,r=e.__("Contact Support","jetpack-boost")+"";return{c(){n=F("a"),o=J(r),Y(n,"class","button button-secondary"),Y(n,"href",t[0]),Y(n,"target","_blank")},m(t,e){z(t,n,e),R(n,o)},p(t,e){1&e&&Y(n,"href",t[0])},d(t){t&&D(n)}}}function Ri(t){let e;function n(t,e){return t[1].retried_show_stopper?Li:Ti}let o=n(t),r=o(t);return{c(){e=F("div"),r.c(),Y(e,"slot","actionButton")},m(t,n){z(t,e,n),r.m(e,null)},p(t,s){o===(o=n(t))&&r?r.p(t,s):(r.d(1),r=o(t),r&&(r.c(),r.m(e,null)))},d(t){t&&D(e),r.d()}}}function Oi(t){let e,n;return e=new Fn({props:{title:t[4],$$slots:{actionButton:[Ri],default:[Bi]},$$scope:{ctx:t}}}),{c(){It(e.$$.fragment)},m(t,o){Ft(e,t,o),n=!0},p(t,[n]){const o={};143&n&&(o.$$scope={dirty:n,ctx:t}),e.$set(o)},i(t){n||(Rt(e.$$.fragment,t),n=!0)},o(t){Ot(e.$$.fragment,t),n=!1},d(t){Ut(e,t)}}}function Ni(t,n,o){let r,s;$(t,wo,(t=>o(1,r=t))),$(t,us,(t=>o(2,s=t)));let{supportLink:i="https://wordpress.org/support/plugin/jetpack-boost/"}=n,c=!1;const a=e.__("Failed to generate Critical CSS","jetpack-boost"),l=pt();return t.$$set=t=>{"supportLink"in t&&o(0,i=t.supportLink)},t.$$.update=()=>{6&t.$$.dirty&&o(3,c=s&&"success"===r.status)},[i,r,s,c,a,function(){l("retry")}]}class Mi extends Vt{constructor(t){super(),Jt(this,t,Ni,Oi,g,{supportLink:0})}}const zi=6e4,Ai=36e5,Di=24*Ai;function Ii(t){const n=Date.now()-t.getTime();if(n<zi)return e.__("a few moments ago","jetpack-boost");if(n<Ai){const t=Math.floor(n/zi);return e.sprintf(e._n("%d minute ago","%d minutes ago",t,"jetpack-boost"),t)}if(n<Di){const t=Math.floor(n/Ai);return e.sprintf(e._n("%d hour ago","%d hours ago",t,"jetpack-boost"),t)}if(n<12096e5){const t=Math.floor(n/Di);return e.sprintf(e._n("%d day ago","%d days ago",t,"jetpack-boost"),t)}const o={month:"short",day:"numeric",year:(new Date).getFullYear()===t.getFullYear()?void 0:"numeric"};return e.sprintf(e.__("on %s","jetpack-boost"),t.toLocaleDateString(navigator.language,o))}function Fi(t){let e,n,o;return{c(){e=F("span"),n=J(t[1]),Y(e,"title",o=t[0].toLocaleString()),Y(e,"class","time-ago")},m(t,o){z(t,e,o),R(e,n)},p(t,[r]){2&r&&Z(n,t[1]),1&r&&o!==(o=t[0].toLocaleString())&&Y(e,"title",o)},i:c,o:c,d(t){t&&D(e)}}}function Ui(t,e,n){let o,{time:r}=e;const s=je(Ii(r),(t=>{const e=setInterval((()=>{t(Ii(r))}),1e4);return()=>clearInterval(e)}));return $(t,s,(t=>n(1,o=t))),t.$$set=t=>{"time"in t&&n(0,r=t.time)},[r,o,s]}class Ji extends Vt{constructor(t){super(),Jt(this,t,Ui,Fi,g,{time:0})}}function Vi(t){let e,n,o,r=[{class:"gridicon gridicons-refresh"},{height:"15"},{width:"15"},{xmlns:"http://www.w3.org/2000/svg"},{viewBox:"0 0 24 24"},t[0]],s={};for(let t=0;t<r.length;t+=1)s=l(s,r[t]);return{c(){e=U("svg"),n=U("g"),o=U("path"),this.h()},l(t){e=X(t,"svg",{class:!0,height:!0,width:!0,xmlns:!0,viewBox:!0});var r=K(e);n=X(r,"g",{});var s=K(n);o=X(s,"path",{d:!0}),K(o).forEach(D),s.forEach(D),r.forEach(D),this.h()},h(){Y(o,"d","M17.91 14c-.478 2.833-2.943 5-5.91 5-3.308 0-6-2.692-6-6s2.692-6 6-6h2.172l-2.086 2.086L13.5 10.5 18 6l-4.5-4.5-1.414 1.414L14.172 5H12c-4.418 0-8 3.582-8 8s3.582 8 8 8c4.08 0 7.438-3.055 7.93-7h-2.02z"),G(e,s)},m(t,r){A(t,e,r),M(e,n),M(n,o)},p(t,[n]){G(e,s=At(r,[{class:"gridicon gridicons-refresh"},{height:"15"},{width:"15"},{xmlns:"http://www.w3.org/2000/svg"},{viewBox:"0 0 24 24"},1&n&&t[0]]))},i:c,o:c,d(t){t&&D(e)}}}function Hi(t,e,n){return t.$$set=t=>{n(0,e=l(l({},e),j(t)))},[e=j(e)]}class Wi extends Vt{constructor(t){super(),Jt(this,t,Hi,Vi,g,{})}}function qi(t){let n,o,r,s,i,c,a,l,u=e.sprintf(e._n("%d file generated","%d files generated",t[2].success_count,"jetpack-boost"),t[2].success_count)+"";s=new Ji({props:{time:new Date(1e3*t[2].updated)}});let p=t[2].progress<100&&Gi(t),d="requesting"!==t[2].status&&t[3]>0&&Ki(t);return{c(){n=F("div"),o=J(u),r=V(),It(s.$$.fragment),i=J(".\n\t\t\t\t"),p&&p.c(),c=V(),d&&d.c(),a=H(),Y(n,"class","successes")},m(t,e){z(t,n,e),R(n,o),R(n,r),Ft(s,n,null),R(n,i),p&&p.m(n,null),z(t,c,e),d&&d.m(t,e),z(t,a,e),l=!0},p(t,r){(!l||4&r)&&u!==(u=e.sprintf(e._n("%d file generated","%d files generated",t[2].success_count,"jetpack-boost"),t[2].success_count)+"")&&Z(o,u);const i={};4&r&&(i.time=new Date(1e3*t[2].updated)),s.$set(i),t[2].progress<100?p?p.p(t,r):(p=Gi(t),p.c(),p.m(n,null)):p&&(p.d(1),p=null),"requesting"!==t[2].status&&t[3]>0?d?(d.p(t,r),12&r&&Rt(d,1)):(d=Ki(t),d.c(),Rt(d,1),d.m(a.parentNode,a)):d&&(Tt(),Ot(d,1,1,(()=>{d=null})),Lt())},i(t){l||(Rt(s.$$.fragment,t),Rt(d),l=!0)},o(t){Ot(s.$$.fragment,t),Ot(d),l=!1},d(t){t&&D(n),Ut(s),p&&p.d(),t&&D(c),d&&d.d(t),t&&D(a)}}}function Yi(t){let e,n;return{c(){e=F("div"),n=J(t[0]),Y(e,"class","generating")},m(t,o){z(t,e,o),R(e,n)},p(t,e){1&e&&Z(n,t[0])},i:c,o:c,d(t){t&&D(e)}}}function Gi(t){let e,n;return{c(){e=F("span"),n=J(t[1])},m(t,o){z(t,e,o),R(e,n)},p(t,e){2&e&&Z(n,t[1])},d(t){t&&D(e)}}}function Ki(t){let n,o,r,s,i;return o=new $s({}),s=new On({props:{template:e.sprintf(e._n("%d file could not be automatically generated. Visit the <advanced>advanced recommendations page</advanced> to optimize this file.","%d files could not be automatically generated. Visit the <advanced>advanced recommendations page</advanced> to optimize these files.",t[3],"jetpack-boost"),t[3]),vars:{...xn(t[6],"advanced")}}}),{c(){n=F("div"),It(o.$$.fragment),r=V(),It(s.$$.fragment),Y(n,"class","failures")},m(t,e){z(t,n,e),Ft(o,n,null),R(n,r),Ft(s,n,null),i=!0},p(t,n){const o={};8&n&&(o.template=e.sprintf(e._n("%d file could not be automatically generated. Visit the <advanced>advanced recommendations page</advanced> to optimize this file.","%d files could not be automatically generated. Visit the <advanced>advanced recommendations page</advanced> to optimize these files.",t[3],"jetpack-boost"),t[3])),s.$set(o)},i(t){i||(Rt(o.$$.fragment,t),Rt(s.$$.fragment,t),i=!0)},o(t){Ot(o.$$.fragment,t),Ot(s.$$.fragment,t),i=!1},d(t){t&&D(n),Ut(o),Ut(s)}}}function Xi(t){let n,o,r,s,i,a,l,u=e.__("Regenerate","jetpack-boost")+"";return o=new Wi({}),{c(){n=F("button"),It(o.$$.fragment),r=V(),s=J(u),Y(n,"type","button"),Y(n,"class","components-button is-link")},m(e,c){z(e,n,c),Ft(o,n,null),R(n,r),R(n,s),i=!0,a||(l=W(n,"click",t[7]),a=!0)},p:c,i(t){i||(Rt(o.$$.fragment,t),i=!0)},o(t){Ot(o.$$.fragment,t),i=!1},d(t){t&&D(n),Ut(o),a=!1,l()}}}function Zi(t){let e,n,o,r,s,i;const c=[Yi,qi],a=[];function l(t,e){return 0===t[2].success_count?0:1}o=l(t),r=a[o]=c[o](t);let u="requesting"!==t[2].status&&Xi(t);return{c(){e=F("div"),n=F("div"),r.c(),s=V(),u&&u.c(),Y(n,"class","summary"),Y(e,"class","jb-critical-css__meta")},m(t,r){z(t,e,r),R(e,n),a[o].m(n,null),R(e,s),u&&u.m(e,null),i=!0},p(t,[s]){let i=o;o=l(t),o===i?a[o].p(t,s):(Tt(),Ot(a[i],1,1,(()=>{a[i]=null})),Lt(),r=a[o],r?r.p(t,s):(r=a[o]=c[o](t),r.c()),Rt(r,1),r.m(n,null)),"requesting"!==t[2].status?u?(u.p(t,s),4&s&&Rt(u,1)):(u=Xi(t),u.c(),Rt(u,1),u.m(e,null)):u&&(Tt(),Ot(u,1,1,(()=>{u=null})),Lt())},i(t){i||(Rt(r),Rt(u),i=!0)},o(t){Ot(r),Ot(u),i=!1},d(t){t&&D(e),a[o].d(),u&&u.d()}}}function Qi(t,e,n){let o,r;$(t,wo,(t=>n(2,o=t))),$(t,fo,(t=>n(3,r=t)));let{generateText:s=""}=e,{generateMoreText:i=""}=e;const c=pt(),{navigate:a}=Xe;return t.$$set=t=>{"generateText"in t&&n(0,s=t.generateText),"generateMoreText"in t&&n(1,i=t.generateMoreText)},[s,i,o,r,c,a,()=>a("critical-css-advanced"),()=>c("retry")]}class tc extends Vt{constructor(t){super(),Jt(this,t,Qi,Zi,g,{generateText:0,generateMoreText:1})}}function ec(t){let n,o;return n=new tc({props:{generateText:e.__("Jetpack Boost will generate Critical CSS for you automatically.","jetpack-boost"),generateMoreText:e.__("Jetpack Boost is generating more Critical CSS.","jetpack-boost")}}),n.$on("retry",ko),{c(){It(n.$$.fragment)},m(t,e){Ft(n,t,e),o=!0},p:c,i(t){o||(Rt(n.$$.fragment,t),o=!0)},o(t){Ot(n.$$.fragment,t),o=!1},d(t){Ut(n,t)}}}function nc(t){let e,n;return e=new Mi({props:{supportLink:"https://jetpackme.wordpress.com/contact-support/"}}),e.$on("retry",jo),{c(){It(e.$$.fragment)},m(t,o){Ft(e,t,o),n=!0},p:c,i(t){n||(Rt(e.$$.fragment,t),n=!0)},o(t){Ot(e.$$.fragment,t),n=!1},d(t){Ut(e,t)}}}function oc(t){let e,n,o,r;const s=[nc,ec],i=[];function c(t,e){return t[0]?0:1}return e=c(t),n=i[e]=s[e](t),{c(){n.c(),o=H()},m(t,n){i[e].m(t,n),z(t,o,n),r=!0},p(t,[r]){let a=e;e=c(t),e===a?i[e].p(t,r):(Tt(),Ot(i[a],1,1,(()=>{i[a]=null})),Lt(),n=i[e],n?n.p(t,r):(n=i[e]=s[e](t),n.c()),Rt(n,1),n.m(o.parentNode,o))},i(t){r||(Rt(n),r=!0)},o(t){Ot(n),r=!1},d(t){i[e].d(t),t&&D(o)}}}function rc(t,e,n){let o;return $(t,bo,(t=>n(0,o=t))),[o]}class sc extends Vt{constructor(t){super(),Jt(this,t,rc,oc,g,{})}}function ic(t){let e,n;return e=new tc({}),e.$on("retry",Cs),{c(){It(e.$$.fragment)},m(t,o){Ft(e,t,o),n=!0},p:c,i(t){n||(Rt(e.$$.fragment,t),n=!0)},o(t){Ot(e.$$.fragment,t),n=!1},d(t){Ut(e,t)}}}function cc(t){let e,n;return e=new Mi({}),e.$on("retry",t[2]),{c(){It(e.$$.fragment)},m(t,o){Ft(e,t,o),n=!0},p:c,i(t){n||(Rt(e.$$.fragment,t),n=!0)},o(t){Ot(e.$$.fragment,t),n=!1},d(t){Ut(e,t)}}}function ac(t){let n,o,r,s,i,a,l;return{c(){n=F("div"),o=F("span"),o.textContent=`${e.__("Generating Critical CSS…","jetpack-boost")}`,r=V(),s=F("div"),i=F("div"),Y(o,"class","jb-critical-css-progress__label"),Y(i,"class","jb-progress-bar__filler"),Y(i,"aria-hidden","true"),Y(i,"style",a=`width: ${t[0].progress}%;`),Y(s,"role","progressbar"),Y(s,"aria-valuemax","100"),Y(s,"aria-valuemin","0"),Y(s,"aria-valuenow",l=t[0].progress),Y(s,"class","jb-progress-bar"),Y(n,"class","jb-critical-css-progress")},m(t,e){z(t,n,e),R(n,o),R(n,r),R(n,s),R(s,i)},p(t,e){1&e&&a!==(a=`width: ${t[0].progress}%;`)&&Y(i,"style",a),1&e&&l!==(l=t[0].progress)&&Y(s,"aria-valuenow",l)},i:c,o:c,d(t){t&&D(n)}}}function lc(t){let e,n,o,r;const s=[ac,cc,ic],i=[];function c(t,e){return"requesting"===t[0].status?0:t[1]?1:2}return e=c(t),n=i[e]=s[e](t),{c(){n.c(),o=H()},m(t,n){i[e].m(t,n),z(t,o,n),r=!0},p(t,[r]){let a=e;e=c(t),e===a?i[e].p(t,r):(Tt(),Ot(i[a],1,1,(()=>{i[a]=null})),Lt(),n=i[e],n?n.p(t,r):(n=i[e]=s[e](t),n.c()),Rt(n,1),n.m(o.parentNode,o))},i(t){r||(Rt(n),r=!0)},o(t){Ot(n),r=!1},d(t){i[e].d(t),t&&D(o)}}}function uc(t,e,n){let o,r;$(t,wo,(t=>n(0,o=t))),$(t,bo,(t=>n(1,r=t)));return[o,r,()=>Cs(!0,!0)]}class pc extends Vt{constructor(t){super(),Jt(this,t,uc,lc,g,{})}}function dc(t){let e,n,o,r,s,i,a,l,u,p,m;return{c(){e=F("div"),n=F("div"),o=F("span"),r=F("input"),s=V(),i=F("span"),a=V(),l=F("span"),u=F("label"),Y(r,"id",t[1]),Y(r,"class","components-form-toggle__input"),Y(r,"type","checkbox"),r.disabled=t[2],Y(i,"class","components-form-toggle__track"),Y(l,"class","components-form-toggle__thumb"),Y(o,"class","components-form-toggle"),tt(o,"is-checked",t[0]),Y(u,"for",t[1]),Y(u,"class","components-toggle-control__label"),Y(n,"class","components-base-control__field"),Y(e,"class","components-base-control components-toggle-control")},m(c,d){z(c,e,d),R(e,n),R(n,o),R(o,r),r.checked=t[0],R(o,s),R(o,i),R(o,a),R(o,l),R(n,u),p||(m=[W(r,"click",t[3]),W(r,"change",t[4])],p=!0)},p(t,[e]){2&e&&Y(r,"id",t[1]),4&e&&(r.disabled=t[2]),1&e&&(r.checked=t[0]),1&e&&tt(o,"is-checked",t[0]),2&e&&Y(u,"for",t[1])},i:c,o:c,d(t){t&&D(e),p=!1,d(m)}}}function mc(t,e,n){let{id:o}=e,{checked:r=!1}=e,{disabled:s=!1}=e;return t.$$set=t=>{"id"in t&&n(1,o=t.id),"checked"in t&&n(0,r=t.checked),"disabled"in t&&n(2,s=t.disabled)},[r,o,s,function(e){gt.call(this,t,e)},function(){r=this.checked,n(0,r)}]}class gc extends Vt{constructor(t){super(),Jt(this,t,mc,dc,g,{id:1,checked:0,disabled:2})}}const fc=t=>({}),hc=t=>({}),bc=t=>({}),$c=t=>({}),yc=t=>({}),_c=t=>({});function vc(t){let e,n,o,r,s,i,c,a,l,u,p,d,m;function g(e){t[10](e)}let f={id:`jb-feature-toggle-${t[0]}`,checked:t[3]};void 0!==t[2]&&(f.disabled=t[2]),o=new gc({props:f}),ht.push((()=>function(t,e,n){const o=t.$$.props[e];void 0!==o&&(t.$$.bound[o]=n,n(t.$$.ctx[o]))}(o,"disabled",g))),o.$on("click",t[7]);const h=t[9].title,b=y(h,t,t[8],_c),$=t[9].description,_=y($,t,t[8],$c),j=t[9].default,x=y(j,t,t[8],null);let S=t[1]&&wc(t),C=t[3]&&kc(t);return{c(){e=F("div"),n=F("div"),It(o.$$.fragment),s=V(),i=F("div"),b&&b.c(),c=V(),a=F("div"),_&&_.c(),l=V(),u=F("div"),x&&x.c(),p=V(),S&&S.c(),d=V(),C&&C.c(),Y(n,"class","jb-feature-toggle__toggle"),Y(a,"class","jb-feature-toggle__text"),Y(u,"class","jb-feature-toggle__content"),Y(i,"class","jb-feature-toggle__content"),Y(e,"class","jb-feature-toggle")},m(t,r){z(t,e,r),R(e,n),Ft(o,n,null),R(e,s),R(e,i),b&&b.m(i,null),R(i,c),R(i,a),_&&_.m(a,null),R(i,l),R(i,u),x&&x.m(u,null),R(u,p),S&&S.m(u,null),R(u,d),C&&C.m(u,null),m=!0},p(t,e){const n={};var s;1&e&&(n.id=`jb-feature-toggle-${t[0]}`),8&e&&(n.checked=t[3]),!r&&4&e&&(r=!0,n.disabled=t[2],s=()=>r=!1,$t.push(s)),o.$set(n),b&&b.p&&(!m||256&e)&&w(b,h,t,t[8],m?v(h,t[8],e,yc):k(t[8]),_c),_&&_.p&&(!m||256&e)&&w(_,$,t,t[8],m?v($,t[8],e,bc):k(t[8]),$c),x&&x.p&&(!m||256&e)&&w(x,j,t,t[8],m?v(j,t[8],e,null):k(t[8]),null),t[1]?S?(S.p(t,e),2&e&&Rt(S,1)):(S=wc(t),S.c(),Rt(S,1),S.m(u,d)):S&&(Tt(),Ot(S,1,1,(()=>{S=null})),Lt()),t[3]?C?(C.p(t,e),8&e&&Rt(C,1)):(C=kc(t),C.c(),Rt(C,1),C.m(u,null)):C&&(Tt(),Ot(C,1,1,(()=>{C=null})),Lt())},i(t){m||(Rt(o.$$.fragment,t),Rt(b,t),Rt(_,t),Rt(x,t),Rt(S),Rt(C),m=!0)},o(t){Ot(o.$$.fragment,t),Ot(b,t),Ot(_,t),Ot(x,t),Ot(S),Ot(C),m=!1},d(t){t&&D(e),Ut(o),b&&b.d(t),_&&_.d(t),x&&x.d(t),S&&S.d(),C&&C.d()}}}function wc(t){let n,o;return n=new Fn({props:{title:e.__("Failed to toggle feature","jetpack-boost"),error:t[1]}}),{c(){It(n.$$.fragment)},m(t,e){Ft(n,t,e),o=!0},p(t,e){const o={};2&e&&(o.error=t[1]),n.$set(o)},i(t){o||(Rt(n.$$.fragment,t),o=!0)},o(t){Ot(n.$$.fragment,t),o=!1},d(t){Ut(n,t)}}}function kc(t){let e;const n=t[9].meta,o=y(n,t,t[8],hc);return{c(){o&&o.c()},m(t,n){o&&o.m(t,n),e=!0},p(t,r){o&&o.p&&(!e||256&r)&&w(o,n,t,t[8],e?v(n,t[8],r,fc):k(t[8]),hc)},i(t){e||(Rt(o,t),e=!0)},o(t){Ot(o,t),e=!1},d(t){o&&o.d(t)}}}function jc(t){let e,n,o=t[4]&&vc(t);return{c(){o&&o.c(),e=H()},m(t,r){o&&o.m(t,r),z(t,e,r),n=!0},p(t,[n]){t[4]?o?(o.p(t,n),16&n&&Rt(o,1)):(o=vc(t),o.c(),Rt(o,1),o.m(e.parentNode,e)):o&&(Tt(),Ot(o,1,1,(()=>{o=null})),Lt())},i(t){n||(Rt(o),n=!0)},o(t){Ot(o),n=!1},d(t){o&&o.d(t),t&&D(e)}}}function xc(t,e,n){let o,r,{$$slots:s={},$$scope:i}=e,{slug:c}=e;const a=pt(),l=Se(Kn,(t=>t[c]&&t[c].enabled));$(t,l,(t=>n(3,o=t)));const u=Se(Kn,(t=>void 0!==t[c]));$(t,u,(t=>n(4,r=t)));let p=null,d=!1;return lt((async()=>{o&&a("mountEnabled")})),t.$$set=t=>{"slug"in t&&n(0,c=t.slug),"$$scope"in t&&n(8,i=t.$$scope)},[c,p,d,o,r,l,u,async function(){if(!d){n(1,p=null),n(2,d=!0);try{await Yn(c,!o)?a("enabled"):a("disabled")}catch(t){n(1,p=t)}n(2,d=!1)}},i,s,function(t){d=t,n(2,d)}]}class Sc extends Vt{constructor(t){super(),Jt(this,t,xc,jc,g,{slug:0})}}function Cc(t){let e,n,o=[{width:"19"},{height:"17"},{viewBox:"0 0 19 17"},{fill:"none"},{xmlns:"http://www.w3.org/2000/svg"},t[0]],r={};for(let t=0;t<o.length;t+=1)r=l(r,o[t]);return{c(){e=U("svg"),n=U("path"),this.h()},l(t){e=X(t,"svg",{width:!0,height:!0,viewBox:!0,fill:!0,xmlns:!0});var o=K(e);n=X(o,"path",{d:!0}),K(n).forEach(D),o.forEach(D),this.h()},h(){Y(n,"d","M10.6953 16.3906L18.4062 8.60938L10.6953 0.828125L8.63281 2.98438L12.8516 7.10938H0.699219V10.1094H12.8516L8.63281 14.2344L10.6953 16.3906Z"),G(e,r)},m(t,o){A(t,e,o),M(e,n)},p(t,[n]){G(e,r=At(o,[{width:"19"},{height:"17"},{viewBox:"0 0 19 17"},{fill:"none"},{xmlns:"http://www.w3.org/2000/svg"},1&n&&t[0]]))},i:c,o:c,d(t){t&&D(e)}}}function Ec(t,e,n){return t.$$set=t=>{n(0,e=l(l({},e),j(t)))},[e=j(e)]}class Pc extends Vt{constructor(t){super(),Jt(this,t,Ec,Cc,g,{})}}function Bc(t){let n,o,r,s,i,a,l,u,p,d,m;return u=new Pc({}),{c(){n=F("div"),o=F("div"),r=F("p"),r.textContent=`${e.__("Save time by automatically regenerating critical CSS","jetpack-boost")}`,s=V(),i=F("p"),i.textContent=`${e.__("Upgrade Jetpack Boost","jetpack-boost")}`,a=V(),l=F("div"),It(u.$$.fragment),Y(i,"class","jb-premium-cta__action-line"),Y(o,"class","jb-premium-cta__content"),Y(l,"class","jb-premium-cta__icon"),Y(n,"class","jb-premium-cta")},m(e,c){z(e,n,c),R(n,o),R(o,r),R(o,s),R(o,i),R(n,a),R(n,l),Ft(u,l,null),p=!0,d||(m=W(n,"click",t[0]),d=!0)},p:c,i(t){p||(Rt(u.$$.fragment,t),p=!0)},o(t){Ot(u.$$.fragment,t),p=!1},d(t){t&&D(n),Ut(u),d=!1,m()}}}function Tc(t){const{navigate:e}=Xe;return[function(){e("/upgrade")}]}class Lc extends Vt{constructor(t){super(),Jt(this,t,Tc,Bc,g,{})}}function Rc(t){let n;return{c(){n=F("h3"),n.textContent=`${e.__("Optimize CSS Loading","jetpack-boost")}`,Y(n,"slot","title")},m(t,e){z(t,n,e)},p:c,d(t){t&&D(n)}}}function Oc(t){let n,o,r;return o=new On({props:{template:e.__("Move important styling information to the start of the page, which helps pages display your content sooner, so your users don’t have to wait for the entire page to load. Commonly referred to as <link>Critical CSS</link>.","jetpack-boost"),vars:Cn(t[0])}}),{c(){n=F("p"),It(o.$$.fragment),Y(n,"slot","description")},m(t,e){z(t,n,e),Ft(o,n,null),r=!0},p:c,i(t){r||(Rt(o.$$.fragment,t),r=!0)},o(t){Ot(o.$$.fragment,t),r=!1},d(t){t&&D(n),Ut(o)}}}function Nc(t){let e,n,o,r,s;return n=new pc({}),r=new Lc({}),{c(){e=F("div"),It(n.$$.fragment),o=V(),It(r.$$.fragment),Y(e,"slot","meta")},m(t,i){z(t,e,i),Ft(n,e,null),R(e,o),Ft(r,e,null),s=!0},i(t){s||(Rt(n.$$.fragment,t),Rt(r.$$.fragment,t),s=!0)},o(t){Ot(n.$$.fragment,t),Ot(r.$$.fragment,t),s=!1},d(t){t&&D(e),Ut(n),Ut(r)}}}function Mc(t){let n,o,r,s,i=e.__("Automatically Optimize CSS Loading","jetpack-boost")+"";return{c(){n=F("h3"),o=J(i),r=V(),s=F("span"),s.textContent="Upgraded",Y(s,"class","jb-badge"),Y(n,"slot","title")},m(t,e){z(t,n,e),R(n,o),R(n,r),R(n,s)},p:c,d(t){t&&D(n)}}}function zc(t){let n,o,r;return o=new On({props:{template:e.__("Move important styling information to the start of the page, which helps pages display your content sooner, so your users don’t have to wait for the entire page to load. Commonly referred to as <link>critical CSS</link> which now generates automatically.","jetpack-boost"),vars:Cn(t[0])}}),{c(){n=F("p"),It(o.$$.fragment),Y(n,"slot","description")},m(t,e){z(t,n,e),Ft(o,n,null),r=!0},p:c,i(t){r||(Rt(o.$$.fragment,t),r=!0)},o(t){Ot(o.$$.fragment,t),r=!1},d(t){t&&D(n),Ut(o)}}}function Ac(t){let e,n,o;return n=new sc({}),{c(){e=F("div"),It(n.$$.fragment),Y(e,"slot","meta"),Y(e,"class","jb-feature-toggle__meta")},m(t,r){z(t,e,r),Ft(n,e,null),o=!0},i(t){o||(Rt(n.$$.fragment,t),o=!0)},o(t){Ot(n.$$.fragment,t),o=!1},d(t){t&&D(e),Ut(n)}}}function Dc(t){let n;return{c(){n=F("h3"),n.textContent=`${e.__("Defer Non-Essential JavaScript","jetpack-boost")}`,Y(n,"slot","title")},m(t,e){z(t,n,e)},p:c,d(t){t&&D(n)}}}function Ic(t){let n,o,r;return o=new On({props:{template:e.__("Run non-essential JavaScript after the page has loaded so that styles and images can load more quickly. Read more on <link>web.dev</link>.","jetpack-boost"),vars:Cn(t[1])}}),{c(){n=F("p"),It(o.$$.fragment),Y(n,"slot","description")},m(t,e){z(t,n,e),Ft(o,n,null),r=!0},p:c,i(t){r||(Rt(o.$$.fragment,t),r=!0)},o(t){Ot(o.$$.fragment,t),r=!1},d(t){t&&D(n),Ut(o)}}}function Fc(t){let n;return{c(){n=F("h3"),n.textContent=`${e.__("Lazy Image Loading","jetpack-boost")}`,Y(n,"slot","title")},m(t,e){z(t,n,e)},p:c,d(t){t&&D(n)}}}function Uc(t){let n,o,r;return o=new On({props:{template:e.__("Improve page loading speed by only loading images when they are required. Read more on <link>web.dev</link>.","jetpack-boost"),vars:Cn(t[2])}}),{c(){n=F("p"),It(o.$$.fragment),Y(n,"slot","description")},m(t,e){z(t,n,e),Ft(o,n,null),r=!0},p:c,i(t){r||(Rt(o.$$.fragment,t),r=!0)},o(t){Ot(o.$$.fragment,t),r=!1},d(t){t&&D(n),Ut(o)}}}function Jc(t){let e,n,o,r,s,i,c,a,l;return n=new Sc({props:{slug:"critical-css",$$slots:{meta:[Nc],description:[Oc],title:[Rc]},$$scope:{ctx:t}}}),n.$on("enabled",Ss),n.$on("mountEnabled",Ss),r=new Sc({props:{slug:"cloud-css",$$slots:{meta:[Ac],description:[zc],title:[Mc]},$$scope:{ctx:t}}}),r.$on("enabled",ko),r.$on("disabled",Po),r.$on("mountEnabled",Eo),i=new Sc({props:{slug:"render-blocking-js",$$slots:{description:[Ic],title:[Dc]},$$scope:{ctx:t}}}),a=new Sc({props:{slug:"lazy-images",$$slots:{description:[Uc],title:[Fc]},$$scope:{ctx:t}}}),{c(){e=F("div"),It(n.$$.fragment),o=V(),It(r.$$.fragment),s=V(),It(i.$$.fragment),c=V(),It(a.$$.fragment),Y(e,"class","jb-container--narrow")},m(t,u){z(t,e,u),Ft(n,e,null),R(e,o),Ft(r,e,null),R(e,s),Ft(i,e,null),R(e,c),Ft(a,e,null),l=!0},p(t,[e]){const o={};32&e&&(o.$$scope={dirty:e,ctx:t}),n.$set(o);const s={};32&e&&(s.$$scope={dirty:e,ctx:t}),r.$set(s);const c={};32&e&&(c.$$scope={dirty:e,ctx:t}),i.$set(c);const l={};32&e&&(l.$$scope={dirty:e,ctx:t}),a.$set(l)},i(t){l||(Rt(n.$$.fragment,t),Rt(r.$$.fragment,t),Rt(i.$$.fragment,t),Rt(a.$$.fragment,t),l=!0)},o(t){Ot(n.$$.fragment,t),Ot(r.$$.fragment,t),Ot(i.$$.fragment,t),Ot(a.$$.fragment,t),l=!1},d(t){t&&D(e),Ut(n),Ut(r),Ut(i),Ut(a)}}}function Vc(t,e,n){const o=te("jetpack-boost-critical-css"),r=te("jetpack-boost-defer-js"),s=te("jetpack-boost-lazy-load");let{location:i,navigate:c}=e;return t.$$set=t=>{"location"in t&&n(3,i=t.location),"navigate"in t&&n(4,c=t.navigate)},[o,r,s,i,c]}class Hc extends Vt{constructor(t){super(),Jt(this,t,Vc,Jc,g,{location:3,navigate:4})}}const Wc=12e4;async function qc(t=!1){const n=Yc(await un.post(t?"/speed-scores/refresh":"/speed-scores",{url:Jetpack_Boost.site.url}));return n.scores?n.scores:await async function(){return async function({interval:t,callback:n,timeout:o,timeoutError:r}){let s,i;return new Promise(((c,a)=>{s=setTimeout((()=>{a(new Error(r||e.__("Timed out","jetpack-boost")))}),o||12e4),i=setInterval((async()=>{try{await Promise.resolve(n(c))}catch(t){a(t)}}),t)})).finally((()=>{clearTimeout(s),clearInterval(i)}))}({timeout:Wc,interval:5e3,timeoutError:e.__("Timed out while waiting for speed-score.","jetpack-boost"),callback:async t=>{const e=Yc(await un.post("/speed-scores",{url:Jetpack_Boost.site.url}));e.scores&&t(e.scores)}})}()}function Yc(t){if(t.error){const n=e.__("An unknown error occurred while requesting metrics","jetpack-boost");throw Sn(t.error,n)}if(sn(t.scores))return{status:"success",scores:{current:sn(t.scores.current)?{mobile:_s(t.scores.current.mobile,0),desktop:_s(t.scores.current.desktop,0)}:{mobile:0,desktop:0},noBoost:sn(t.scores.noBoost)?{mobile:_s(t.scores.noBoost.mobile,0),desktop:_s(t.scores.noBoost.desktop,0)}:null,isStale:!!t.scores.isStale}};const n=rn(t.status);if(!n)throw new Error(e.__("Invalid response while requesting metrics","jetpack-boost"));return{status:n}}function Gc(t){const e=t.current,n=t.noBoost;return null!==e&&null!==n&&e.mobile>=n.mobile&&e.desktop>=n.desktop&&e.mobile+e.desktop>n.mobile+n.desktop&&(Kc(t)>=5||e.desktop+e.mobile>180)}function Kc(t){const e=(t.current.mobile+t.current.desktop)/(t.noBoost.mobile+t.noBoost.desktop)-1;return Math.round(100*e)}function Xc(t){let e,n,o,r=[{class:"gridicon gridicons-computer"},{height:"24"},{width:"24"},{xmlns:"http://www.w3.org/2000/svg"},{viewBox:"0 0 24 24"},t[0]],s={};for(let t=0;t<r.length;t+=1)s=l(s,r[t]);return{c(){e=U("svg"),n=U("g"),o=U("path"),this.h()},l(t){e=X(t,"svg",{class:!0,height:!0,width:!0,xmlns:!0,viewBox:!0});var r=K(e);n=X(r,"g",{});var s=K(n);o=X(s,"path",{d:!0}),K(o).forEach(D),s.forEach(D),r.forEach(D),this.h()},h(){Y(o,"d","M20 2H4c-1.104 0-2 .896-2 2v12c0 1.104.896 2 2 2h6v2H7v2h10v-2h-3v-2h6c1.104 0 2-.896 2-2V4c0-1.104-.896-2-2-2zm0 14H4V4h16v12z"),G(e,s)},m(t,r){A(t,e,r),M(e,n),M(n,o)},p(t,[n]){G(e,s=At(r,[{class:"gridicon gridicons-computer"},{height:"24"},{width:"24"},{xmlns:"http://www.w3.org/2000/svg"},{viewBox:"0 0 24 24"},1&n&&t[0]]))},i:c,o:c,d(t){t&&D(e)}}}function Zc(t,e,n){return t.$$set=t=>{n(0,e=l(l({},e),j(t)))},[e=j(e)]}class Qc extends Vt{constructor(t){super(),Jt(this,t,Zc,Xc,g,{})}}function ta(t){let e,n,o,r=[{class:"gridicon gridicons-phone"},{height:"24"},{width:"24"},{xmlns:"http://www.w3.org/2000/svg"},{viewBox:"0 0 24 24"},t[0]],s={};for(let t=0;t<r.length;t+=1)s=l(s,r[t]);return{c(){e=U("svg"),n=U("g"),o=U("path"),this.h()},l(t){e=X(t,"svg",{class:!0,height:!0,width:!0,xmlns:!0,viewBox:!0});var r=K(e);n=X(r,"g",{});var s=K(n);o=X(s,"path",{d:!0}),K(o).forEach(D),s.forEach(D),r.forEach(D),this.h()},h(){Y(o,"d","M16 2H8c-1.104 0-2 .896-2 2v16c0 1.104.896 2 2 2h8c1.104 0 2-.896 2-2V4c0-1.104-.896-2-2-2zm-3 19h-2v-1h2v1zm3-2H8V5h8v14z"),G(e,s)},m(t,r){A(t,e,r),M(e,n),M(n,o)},p(t,[n]){G(e,s=At(r,[{class:"gridicon gridicons-phone"},{height:"24"},{width:"24"},{xmlns:"http://www.w3.org/2000/svg"},{viewBox:"0 0 24 24"},1&n&&t[0]]))},i:c,o:c,d(t){t&&D(e)}}}function ea(t,e,n){return t.$$set=t=>{n(0,e=l(l({},e),j(t)))},[e=j(e)]}class na extends Vt{constructor(t){super(),Jt(this,t,ea,ta,g,{})}}function oa(t,e){const n=getComputedStyle(t).transform.replace("none","");return{delay:e.delay||0,duration:e.duration||2e3,easing:e.easing||Qr,css:(t,e)=>`transform: ${n} translateX(${100*e}%)`}}function ra(t){let n,o=e.sprintf(e.__("You achieved a score of %d!","jetpack-boost"),t[1])+"";return{c(){n=J(o)},m(t,e){z(t,n,e)},p(t,r){2&r&&o!==(o=e.sprintf(e.__("You achieved a score of %d!","jetpack-boost"),t[1])+"")&&Z(n,o)},d(t){t&&D(n)}}}function sa(t){let n,o=e.sprintf(e.__("Faster by %1$d%%","jetpack-boost"),t[0])+"";return{c(){n=J(o)},m(t,e){z(t,n,e)},p(t,r){1&r&&o!==(o=e.sprintf(e.__("Faster by %1$d%%","jetpack-boost"),t[0])+"")&&Z(n,o)},d(t){t&&D(n)}}}function ia(t){let n,o,r,s,i,c,a,l,u,p,d,m;function g(t,e){return t[0]>5?sa:ra}o=new rs({}),o.$on("click",t[4]);let f=g(t),h=f(t);return{c(){n=F("div"),It(o.$$.fragment),r=V(),s=F("h3"),h.c(),i=V(),c=F("p"),c.textContent=`${e.__("That’s a great result! If you’re happy with your result, why not rate Boost?","jetpack-boost")}`,a=V(),l=F("a"),l.textContent=`${e.__("Rate the plugin","jetpack-boost")}`,Y(s,"class","jb-rating-card__headline"),Y(c,"class","jb-rating-card__paragraph"),Y(l,"class","jb-button--primary"),Y(l,"href","https://wordpress.org/support/plugin/jetpack-boost/reviews/#new-post"),Y(l,"target","_blank"),Y(n,"class","jb-rating-card")},m(e,u){z(e,n,u),Ft(o,n,null),R(n,r),R(n,s),h.m(s,null),R(n,i),R(n,c),R(n,a),R(n,l),p=!0,d||(m=W(l,"click",t[5]),d=!0)},p(t,[e]){f===(f=g(t))&&h?h.p(t,e):(h.d(1),h=f(t),h&&(h.c(),h.m(s,null)))},i(t){p||(Rt(o.$$.fragment,t),wt((()=>{u||(u=Mt(n,oa,{},!0)),u.run(1)})),p=!0)},o(t){Ot(o.$$.fragment,t),u||(u=Mt(n,oa,{},!1)),u.run(0),p=!1},d(t){t&&D(n),Ut(o),h.d(),t&&u&&u.end(),d=!1,m()}}}function ca(t,e,n){let{improvement:o}=e,{currentPercentage:r}=e;const s=pt();async function i(){await js({action:"set_show_rating_prompt",value:!1,nonce:Jetpack_Boost.showRatingPromptNonce}),s("dismiss")}return t.$$set=t=>{"improvement"in t&&n(0,o=t.improvement),"currentPercentage"in t&&n(1,r=t.currentPercentage)},[o,r,s,i,()=>s("dismiss"),()=>{i()}]}class aa extends Vt{constructor(t){super(),Jt(this,t,ca,ia,g,{improvement:0,currentPercentage:1})}}function la(t){let e,n,o,r,s=[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{viewBox:"0 0 128 128"},t[0]],i={};for(let t=0;t<s.length;t+=1)i=l(i,s[t]);return{c(){e=U("svg"),n=U("g"),o=U("path"),r=U("animateTransform"),this.h()},l(t){e=X(t,"svg",{xmlns:!0,width:!0,height:!0,viewBox:!0});var s=K(e);n=X(s,"g",{});var i=K(n);o=X(i,"path",{d:!0}),K(o).forEach(D),r=X(i,"animateTransform",{attributeName:!0,type:!0,values:!0,calcMode:!0,dur:!0,repeatCount:!0}),K(r).forEach(D),i.forEach(D),s.forEach(D),this.h()},h(){Y(o,"d","M64 0a7 7 0 11-7 7 7 7 0 017-7zm29.86 12.2a2.8 2.8 0 11-3.83 1.02 2.8 2.8 0 013.83-1.02zm22.16 21.68a3.15 3.15 0 11-4.3-1.15 3.15 3.15 0 014.3 1.15zm.87 60.53a4.2 4.2 0 11-1.57-5.7 4.2 4.2 0 011.54 5.73zm7.8-30.5a3.85 3.85 0 11-3.85-3.85 3.85 3.85 0 013.85 3.84zm-30 53.2a4.55 4.55 0 111.66-6.23 4.55 4.55 0 01-1.67 6.22zM64 125.9a4.9 4.9 0 114.9-4.9 4.9 4.9 0 01-4.9 4.9zm-31.06-8.22a5.25 5.25 0 117.17-1.93 5.25 5.25 0 01-7.14 1.93zM9.9 95.1a5.6 5.6 0 117.65 2.06A5.6 5.6 0 019.9 95.1zM1.18 63.9a5.95 5.95 0 115.95 5.94 5.95 5.95 0 01-5.96-5.94zm8.1-31.6a6.3 6.3 0 112.32 8.6 6.3 6.3 0 01-2.3-8.6zM32.25 8.87a6.65 6.65 0 11-2.44 9.1 6.65 6.65 0 012.46-9.1z"),Y(r,"attributeName","transform"),Y(r,"type","rotate"),Y(r,"values","0 64 64;30 64 64;60 64 64;90 64 64;120 64 64;150 64 64;180 64 64;210 64 64;240 64 64;270 64 64;300 64 64;330 64 64"),Y(r,"calcMode","discrete"),Y(r,"dur","1080ms"),Y(r,"repeatCount","indefinite"),G(e,i)},m(t,s){A(t,e,s),M(e,n),M(n,o),M(n,r)},p(t,[n]){G(e,i=At(s,[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{viewBox:"0 0 128 128"},1&n&&t[0]]))},i:c,o:c,d(t){t&&D(e)}}}function ua(t,e,n){return t.$$set=t=>{n(0,e=l(l({},e),j(t)))},[e=j(e)]}class pa extends Vt{constructor(t){super(),Jt(this,t,ua,la,g,{})}}function da(t){let e,n,o,r,s,i;const c=[ga,ma],a=[];function l(t,e){return t[1]?0:1}n=l(t),o=a[n]=c[n](t);let u=t[2]&&t[4]&&t[4]<t[0]&&fa(t);return{c(){e=F("div"),o.c(),r=V(),u&&u.c(),Y(e,"class",s="jb-score-bar__filler "+t[6]),Q(e,"width",t[0]+"%")},m(t,o){z(t,e,o),a[n].m(e,null),R(e,r),u&&u.m(e,null),i=!0},p(t,p){let d=n;n=l(t),n===d?a[n].p(t,p):(Tt(),Ot(a[d],1,1,(()=>{a[d]=null})),Lt(),o=a[n],o?o.p(t,p):(o=a[n]=c[n](t),o.c()),Rt(o,1),o.m(e,r)),t[2]&&t[4]&&t[4]<t[0]?u?u.p(t,p):(u=fa(t),u.c(),u.m(e,null)):u&&(u.d(1),u=null),(!i||64&p&&s!==(s="jb-score-bar__filler "+t[6]))&&Y(e,"class",s),(!i||1&p)&&Q(e,"width",t[0]+"%")},i(t){i||(Rt(o),i=!0)},o(t){Ot(o),i=!1},d(t){t&&D(e),a[n].d(),u&&u.d()}}}function ma(t){let e,n;return{c(){e=F("div"),n=J(t[0]),Y(e,"class","jb-score-bar__score")},m(t,o){z(t,e,o),R(e,n)},p(t,e){1&e&&Z(n,t[0])},i:c,o:c,d(t){t&&D(e)}}}function ga(t){let e,n,o;return n=new pa({}),{c(){e=F("div"),It(n.$$.fragment),Y(e,"class","jb-score-bar__loading")},m(t,r){z(t,e,r),Ft(n,e,null),o=!0},p:c,i(t){o||(Rt(n.$$.fragment,t),o=!0)},o(t){Ot(n.$$.fragment,t),o=!1},d(t){t&&D(e),Ut(n)}}}function fa(t){let e,n,o,r=t[5]&&ha(t);return{c(){e=F("div"),n=J(t[4]),o=V(),r&&r.c(),Y(e,"class","jb-score-bar__no_boost_score"),Q(e,"left","min("+t[7]+"%, calc(100% - var(--clearance-space))")},m(t,s){z(t,e,s),R(e,n),R(e,o),r&&r.m(e,null)},p(t,o){16&o&&Z(n,t[4]),t[5]?r?r.p(t,o):(r=ha(t),r.c(),r.m(e,null)):r&&(r.d(1),r=null),128&o&&Q(e,"left","min("+t[7]+"%, calc(100% - var(--clearance-space))")},d(t){t&&D(e),r&&r.d()}}}function ha(t){let e,n;return{c(){e=F("div"),n=J(t[5]),Y(e,"class","jb-score-bar__no_boost_score_tooltip")},m(t,o){z(t,e,o),R(e,n)},p(t,e){32&e&&Z(n,t[5])},d(t){t&&D(e)}}}function ba(t){let e,n,o=t[3]&&da(t);return{c(){e=F("div"),o&&o.c(),Y(e,"class","jb-score-bar__bounds")},m(t,r){z(t,e,r),o&&o.m(e,null),n=!0},p(t,[n]){t[3]?o?(o.p(t,n),8&n&&Rt(o,1)):(o=da(t),o.c(),Rt(o,1),o.m(e,null)):o&&(Tt(),Ot(o,1,1,(()=>{o=null})),Lt())},i(t){n||(Rt(o),n=!0)},o(t){Ot(o),n=!1},d(t){t&&D(e),o&&o.d()}}}function $a(t,e,n){let o,r,{score:s=0}=e,{isLoading:i=!0}=e,{showPrevScores:c=!1}=e,{active:a=!0}=e,{prevScore:l=0}=e,{noBoostScoreTooltip:u=null}=e;return t.$$set=t=>{"score"in t&&n(0,s=t.score),"isLoading"in t&&n(1,i=t.isLoading),"showPrevScores"in t&&n(2,c=t.showPrevScores),"active"in t&&n(3,a=t.active),"prevScore"in t&&n(4,l=t.prevScore),"noBoostScoreTooltip"in t&&n(5,u=t.noBoostScoreTooltip)},t.$$.update=()=>{var e;17&t.$$.dirty&&(n(6,(e=s,o=i?"fill-loading":e>70?"fill-good":e>50?"fill-mediocre":e?"fill-bad":void 0)),n(7,r=l/s*100))},[s,i,c,a,l,u,o,r]}class ya extends Vt{constructor(t){super(),Jt(this,t,$a,ba,g,{score:0,isLoading:1,showPrevScores:2,active:3,prevScore:4,noBoostScoreTooltip:5})}}function _a(t){let n,o,r,s,i,a,l,u,p,d,m;return{c(){n=F("div"),o=F("span"),o.textContent="i",r=V(),s=F("div"),i=F("p"),i.textContent=`${e.__("Your Overall Score is a summary of your website performance across both mobile and desktop devices. It gives a general idea of your sites' overall performance.","jetpack-boost")}`,a=V(),l=F("table"),l.innerHTML="<tr><th>A</th> \n\t\t\t\t<td>90+</td></tr> \n\t\t\t<tr><th>B</th> \n\t\t\t\t<td>75 - 90</td></tr> \n\t\t\t<tr><th>C</th> \n\t\t\t\t<td>50 - 75</td></tr>",u=V(),p=F("table"),p.innerHTML="<tr><th>D</th> \n\t\t\t\t<td>35 - 50</td></tr> \n\t\t\t<tr><th>E</th> \n\t\t\t\t<td>25 - 35</td></tr> \n\t\t\t<tr><th>F</th> \n\t\t\t\t<td>0 - 25</td></tr>",d=V(),m=F("i"),Y(o,"class","jb-score-context__info-icon"),Y(s,"class","jb-score-context__info-container"),Y(n,"class","jb-score-context")},m(t,e){z(t,n,e),R(n,o),R(n,r),R(n,s),R(s,i),R(s,a),R(s,l),R(s,u),R(s,p),R(s,d),R(s,m)},p:c,i:c,o:c,d(t){t&&D(n)}}}class va extends Vt{constructor(t){super(),Jt(this,t,null,_a,g,{})}}function wa(t){let n,o,r,s,i,a,l,u,p,d,m,g;return o=new rs({}),o.$on("click",t[2]),{c(){n=F("div"),It(o.$$.fragment),r=V(),s=F("h3"),s.textContent=`${e.__("Your site score dropped","jetpack-boost")}`,i=V(),a=F("p"),a.textContent=`${e.__("Jetpack Boost should not slow your site down. Try refreshing your score. If the problem persists please contact support","jetpack-boost")}`,l=V(),u=F("a"),u.textContent=`${e.__("Contact Support","jetpack-boost")}`,Y(s,"class","jb-rating-card__headline"),Y(a,"class","jb-rating-card__paragraph"),Y(u,"class","jb-button--primary"),Y(u,"href","https://wordpress.org/support/plugin/jetpack-boost/#new-topic-0"),Y(u,"target","_blank"),Y(n,"class","jb-rating-card")},m(e,c){z(e,n,c),Ft(o,n,null),R(n,r),R(n,s),R(n,i),R(n,a),R(n,l),R(n,u),d=!0,m||(g=W(u,"click",t[3]),m=!0)},p:c,i(t){d||(Rt(o.$$.fragment,t),wt((()=>{p||(p=Mt(n,oa,{},!0)),p.run(1)})),d=!0)},o(t){Ot(o.$$.fragment,t),p||(p=Mt(n,oa,{},!1)),p.run(0),d=!1},d(t){t&&D(n),Ut(o),t&&p&&p.end(),m=!1,g()}}}function ka(t){const e=pt();async function n(){await js({action:"set_show_score_prompt",value:!1,nonce:Jetpack_Boost.showScorePromptNonce}),e("dismiss")}return[e,n,()=>e("dismiss"),()=>{n()}]}class ja extends Vt{constructor(t){super(),Jt(this,t,ka,wa,g,{})}}function xa(t){let n,o,r,s;return{c(){n=F("div"),o=F("h2"),o.textContent=`${e.__("Website Offline","jetpack-boost")}`,r=V(),s=F("p"),s.textContent=`${e.__("All Jetpack Boost features are still available, but to get a performance score you would first have to make your website available online.","jetpack-boost")}`,Y(n,"class","jb-site-score__offline")},m(t,e){z(t,n,e),R(n,o),R(n,r),R(n,s)},p:c,i:c,o:c,d(t){t&&D(n)}}}function Sa(t){let n,o,r,s,i,c,a,l,u,p,d,m=e.__("Refresh","jetpack-boost")+"";function g(t,e){return t[2]?Pa:t[3]?Ea:Ca}let f=g(t),h=f(t),b=!t[2]&&!t[3]&&Ba();return c=new Wi({}),{c(){n=F("div"),o=F("h2"),h.c(),r=V(),b&&b.c(),s=V(),i=F("button"),It(c.$$.fragment),a=V(),l=J(m),Y(i,"type","button"),Y(i,"class","components-button is-link"),i.disabled=t[2],Y(n,"class","jb-site-score__top")},m(e,m){z(e,n,m),R(n,o),h.m(o,null),R(n,r),b&&b.m(n,null),R(n,s),R(n,i),Ft(c,i,null),R(i,a),R(i,l),u=!0,p||(d=W(i,"click",t[20]),p=!0)},p(t,e){f===(f=g(t))&&h?h.p(t,e):(h.d(1),h=f(t),h&&(h.c(),h.m(o,null))),t[2]||t[3]?b&&(Tt(),Ot(b,1,1,(()=>{b=null})),Lt()):b?12&e&&Rt(b,1):(b=Ba(),b.c(),Rt(b,1),b.m(n,s)),(!u||4&e)&&(i.disabled=t[2])},i(t){u||(Rt(b),Rt(c.$$.fragment,t),u=!0)},o(t){Ot(b),Ot(c.$$.fragment,t),u=!1},d(t){t&&D(n),h.d(),b&&b.d(),Ut(c),p=!1,d()}}}function Ca(t){let n,o,r,s=e.__("Overall score","jetpack-boost")+"";return{c(){n=J(s),o=J(": "),r=J(t[5])},m(t,e){z(t,n,e),z(t,o,e),z(t,r,e)},p(t,e){32&e&&Z(r,t[5])},d(t){t&&D(n),t&&D(o),t&&D(r)}}}function Ea(t){let n,o=e.__("Whoops, something went wrong","jetpack-boost")+"";return{c(){n=J(o)},m(t,e){z(t,n,e)},p:c,d(t){t&&D(n)}}}function Pa(t){let n,o=e.__("Loading…","jetpack-boost")+"";return{c(){n=J(o)},m(t,e){z(t,n,e)},p:c,d(t){t&&D(n)}}}function Ba(t){let e,n;return e=new va({}),{c(){It(e.$$.fragment)},m(t,o){Ft(e,t,o),n=!0},i(t){n||(Rt(e.$$.fragment,t),n=!0)},o(t){Ot(e.$$.fragment,t),n=!1},d(t){Ut(e,t)}}}function Ta(t){let n,o;return n=new Fn({props:{title:e.__("Failed to load Speed Scores","jetpack-boost"),error:t[3],suggestion:e.__('<action name="retry">Try again</action>',"jetpack-boost")}}),n.$on("retry",t[21]),{c(){It(n.$$.fragment)},m(t,e){Ft(n,t,e),o=!0},p(t,e){const o={};8&e&&(o.error=t[3]),n.$set(o)},i(t){o||(Rt(n.$$.fragment,t),o=!0)},o(t){Ot(n.$$.fragment,t),o=!1},d(t){Ut(n,t)}}}function La(t){let e,n;return e=new aa({props:{improvement:t[6],currentPercentage:t[7]}}),e.$on("dismiss",t[22]),{c(){It(e.$$.fragment)},m(t,o){Ft(e,t,o),n=!0},p(t,n){const o={};64&n&&(o.improvement=t[6]),128&n&&(o.currentPercentage=t[7]),e.$set(o)},i(t){n||(Rt(e.$$.fragment,t),n=!0)},o(t){Ot(e.$$.fragment,t),n=!1},d(t){Ut(e,t)}}}function Ra(t){let e,n;return e=new ja({}),e.$on("dismiss",t[23]),{c(){It(e.$$.fragment)},m(t,o){Ft(e,t,o),n=!0},p:c,i(t){n||(Rt(e.$$.fragment,t),n=!0)},o(t){Ot(e.$$.fragment,t),n=!1},d(t){Ut(e,t)}}}function Oa(t){let n,o,r,s,i,c,a,l,u,p,d,m,g,f,h,b,$,y,_,v,w,k,j,x,S;const C=[Sa,xa],E=[];r=function(t,e){return t[9]?0:1}(t),s=E[r]=C[r](t);let P=t[3]&&Ta(t);u=new na({}),g=new ya({props:{prevScore:t[0].noBoost?.mobile,score:t[0].current.mobile,active:t[9],isLoading:t[2],showPrevScores:t[4],noBoostScoreTooltip:e.__("Your mobile score without Boost","jetpack-boost")}}),$=new Qc({}),w=new ya({props:{prevScore:t[0].noBoost?.desktop,score:t[0].current.desktop,active:t[9],isLoading:t[2],showPrevScores:t[4],noBoostScoreTooltip:e.__("Your desktop score without Boost","jetpack-boost")}});let B=t[1]&&La(t),T=t[8]&&Ra(t);return{c(){n=F("div"),o=F("div"),s.c(),i=V(),P&&P.c(),c=V(),a=F("div"),l=F("div"),It(u.$$.fragment),p=V(),d=F("div"),d.textContent=`${e.__("Mobile score","jetpack-boost")}`,m=V(),It(g.$$.fragment),f=V(),h=F("div"),b=F("div"),It($.$$.fragment),y=V(),_=F("div"),_.textContent=`${e.__("Desktop score","jetpack-boost")}`,v=V(),It(w.$$.fragment),k=V(),B&&B.c(),j=V(),T&&T.c(),x=H(),Y(l,"class","jb-score-bar__label"),Y(a,"class","jb-score-bar jb-score-bar--mobile"),Y(b,"class","jb-score-bar__label"),Y(h,"class","jb-score-bar jb-score-bar--desktop"),Y(o,"class","jb-site-score"),tt(o,"loading",t[2]),Y(n,"class","jb-container")},m(t,e){z(t,n,e),R(n,o),E[r].m(o,null),R(o,i),P&&P.m(o,null),R(o,c),R(o,a),R(a,l),Ft(u,l,null),R(l,p),R(l,d),R(a,m),Ft(g,a,null),R(o,f),R(o,h),R(h,b),Ft($,b,null),R(b,y),R(b,_),R(h,v),Ft(w,h,null),z(t,k,e),B&&B.m(t,e),z(t,j,e),T&&T.m(t,e),z(t,x,e),S=!0},p(t,[e]){s.p(t,e),t[3]?P?(P.p(t,e),8&e&&Rt(P,1)):(P=Ta(t),P.c(),Rt(P,1),P.m(o,c)):P&&(Tt(),Ot(P,1,1,(()=>{P=null})),Lt());const n={};1&e&&(n.prevScore=t[0].noBoost?.mobile),1&e&&(n.score=t[0].current.mobile),4&e&&(n.isLoading=t[2]),16&e&&(n.showPrevScores=t[4]),g.$set(n);const r={};1&e&&(r.prevScore=t[0].noBoost?.desktop),1&e&&(r.score=t[0].current.desktop),4&e&&(r.isLoading=t[2]),16&e&&(r.showPrevScores=t[4]),w.$set(r),4&e&&tt(o,"loading",t[2]),t[1]?B?(B.p(t,e),2&e&&Rt(B,1)):(B=La(t),B.c(),Rt(B,1),B.m(j.parentNode,j)):B&&(Tt(),Ot(B,1,1,(()=>{B=null})),Lt()),t[8]?T?(T.p(t,e),256&e&&Rt(T,1)):(T=Ra(t),T.c(),Rt(T,1),T.m(x.parentNode,x)):T&&(Tt(),Ot(T,1,1,(()=>{T=null})),Lt())},i(t){S||(Rt(s),Rt(P),Rt(u.$$.fragment,t),Rt(g.$$.fragment,t),Rt($.$$.fragment,t),Rt(w.$$.fragment,t),Rt(B),Rt(T),S=!0)},o(t){Ot(s),Ot(P),Ot(u.$$.fragment,t),Ot(g.$$.fragment,t),Ot($.$$.fragment,t),Ot(w.$$.fragment,t),Ot(B),Ot(T),S=!1},d(t){t&&D(n),E[r].d(),P&&P.d(),Ut(u),Ut(g),Ut($),Ut(w),t&&D(k),B&&B.d(t),t&&D(j),T&&T.d(t),t&&D(x)}}}function Na(t,e,n){let o,r,s,i,c,a,l;const u=Jetpack_Boost.site.online;let p,d,m="",g=0,f=0;const h=xe(u);$(t,h,(t=>n(2,c=t)));const b=xe({current:{mobile:0,desktop:0},noBoost:null,isStale:!1});$(t,b,(t=>n(0,r=t))),w(!1);const y=Se(Kn,(t=>!Object.values(t).some((t=>!1===t.synced)))),_=Se([Kn,wo],(([t,e])=>JSON.stringify({modules:t,criticalCss:{created:e.created}})));$(t,_,(t=>n(25,l=t)));let v=l;async function w(t=!1){if(u){h.set(!0),n(3,p=void 0);try{b.set(await qc(t)),n(5,m=function(t,e){const n=(t+e)/2;return n>90?"A":n>75?"B":n>50?"C":n>35?"D":n>25?"E":"F"}(r.current.mobile,r.current.desktop)),n(4,d=Gc(r)&&!r.isStale),v=l}catch(t){console.log(t),n(3,p=t)}finally{h.set(!1)}}}const k=Se([$o,y,_,b],(([t,e,n,o])=>!t&&e&&(n!==v||o.isStale)));$(t,k,(t=>n(18,i=t)));const j=function(t,e){let n;return function(...o){clearTimeout(n),n=setTimeout((()=>t.apply(this,o)),e)}}((t=>{i&&w(t)}),2e3),x=xe(Jetpack_Boost.preferences.showRatingPrompt),S=xe(Jetpack_Boost.preferences.showScorePrompt);$(t,S,(t=>n(19,a=t)));const C=Se([b,x,h],(([t,e,n])=>Gc(t)&&e&&!n&&!t.isStale));$(t,C,(t=>n(1,s=t)));return t.$$.update=()=>{524293&t.$$.dirty&&n(8,o=function(t){const e=t.current,n=t.noBoost;return null!==e&&null!==n&&Kc(t)<-5}(r)&&a&&!c&&!r.isStale),262144&t.$$.dirty&&i&&j(!0),3&t.$$.dirty&&s&&(n(6,g=Kc(r)),n(7,f=(r.current.mobile+r.current.desktop)/2))},[r,s,c,p,d,m,g,f,o,u,h,b,_,w,k,x,S,C,i,a,()=>w(!0),()=>w(!0),()=>x.set(!1),()=>S.set(!1)]}class Ma extends Vt{constructor(t){super(),Jt(this,t,Na,Oa,g,{})}}const za=Se(mn,(t=>t.preferences.prioritySupport)),Aa=()=>{window.open("https://jetpackme.wordpress.com/contact-support/","_blank")};function Da(t){let n,o,r,s,i,a,l,u,p,d,m,g;return{c(){n=F("div"),o=F("div"),r=F("div"),s=F("div"),i=F("h3"),i.textContent=`${e.__("We're here to help","jetpack-boost")}`,a=V(),l=F("p"),l.textContent=`${e.__("Your paid plan gives you access to prioritized Jetpack Boost support","jetpack-boost")}`,u=V(),p=F("div"),d=F("button"),d.textContent=`${e.__("Contact Us","jetpack-boost")}`,Y(i,"class","jb-support__title"),Y(l,"class","jb-support__description"),Y(s,"class","jb-support__content"),Y(d,"class","components-button jb-button jb-button--outline"),Y(d,"type","button"),Y(p,"class","jb-support__cta"),Y(r,"class","jb-support"),Y(o,"class","jb-container--narrow"),Y(n,"class","jb-section")},m(t,e){z(t,n,e),R(n,o),R(o,r),R(r,s),R(s,i),R(s,a),R(s,l),R(r,u),R(r,p),R(p,d),m||(g=W(d,"click",Aa),m=!0)},p:c,d(t){t&&D(n),m=!1,g()}}}function Ia(t){let e,n=t[0]&&Da();return{c(){n&&n.c(),e=H()},m(t,o){n&&n.m(t,o),z(t,e,o)},p(t,[o]){t[0]?n?n.p(t,o):(n=Da(),n.c(),n.m(e.parentNode,e)):n&&(n.d(1),n=null)},i:c,o:c,d(t){n&&n.d(t),t&&D(e)}}}function Fa(t,e,n){let o;return $(t,za,(t=>n(0,o=t))),[o]}class Ua extends Vt{constructor(t){super(),Jt(this,t,Fa,Ia,g,{})}}function Ja(t){let n,o,r,s,i,a,l,u,p,d,m,g,f,h,b,$,y,_;return m=new On({props:{template:e.__("Pages that take over 3 seconds to load have 4x the bounce rate of pages that load in 2 seconds or less. (source: <link>Pingdom</link>).","jetpack-boost"),vars:Cn(t[0])}}),y=new On({props:{template:e.__("A one-second delay in loading times can reduce conversion rates by 20%. (source: <link>Google</link>).","jetpack-boost"),vars:Cn(t[1])}}),{c(){n=F("div"),o=F("div"),r=F("div"),s=F("h3"),s.textContent=`${e.__("Did you know?","jetpack-boost")}`,i=V(),a=F("div"),l=F("div"),u=F("div"),u.textContent="4x",p=V(),d=F("div"),It(m.$$.fragment),g=V(),f=F("div"),h=F("div"),h.textContent="20%",b=V(),$=F("div"),It(y.$$.fragment),Y(s,"class","jb-tips__title"),Y(u,"class","item__rate"),Y(d,"class","item__description"),Y(l,"class","item"),Y(h,"class","item__rate"),Y($,"class","item__description"),Y(f,"class","item"),Y(a,"class","jb-tips__items"),Y(r,"class","jb-tips"),Y(o,"class","jb-container--narrow"),Y(n,"class","jb-section jb-section--alt")},m(t,e){z(t,n,e),R(n,o),R(o,r),R(r,s),R(r,i),R(r,a),R(a,l),R(l,u),R(l,p),R(l,d),Ft(m,d,null),R(a,g),R(a,f),R(f,h),R(f,b),R(f,$),Ft(y,$,null),_=!0},p:c,i(t){_||(Rt(m.$$.fragment,t),Rt(y.$$.fragment,t),_=!0)},o(t){Ot(m.$$.fragment,t),Ot(y.$$.fragment,t),_=!1},d(t){t&&D(n),Ut(m),Ut(y)}}}function Va(t){return[te("jetpack-boost-pingdom"),te("jetpack-boost-why-speed")]}class Ha extends Vt{constructor(t){super(),Jt(this,t,Va,Ja,g,{})}}function Wa(t){let e,n,o,r,s;return n=new Zr({props:{path:"critical-css-advanced",component:xi}}),r=new Zr({props:{path:"/",component:Hc}}),{c(){e=F("div"),It(n.$$.fragment),o=V(),It(r.$$.fragment),Y(e,"class","jb-section jb-section--main")},m(t,i){z(t,e,i),Ft(n,e,null),R(e,o),Ft(r,e,null),s=!0},p:c,i(t){s||(Rt(n.$$.fragment,t),Rt(r.$$.fragment,t),s=!0)},o(t){Ot(n.$$.fragment,t),Ot(r.$$.fragment,t),s=!1},d(t){t&&D(e),Ut(n),Ut(r)}}}function qa(t){let e,n,o,r,s,i,c,a,l;return n=new Ma({}),r=new Ur({props:{$$slots:{default:[Wa]},$$scope:{ctx:t}}}),i=new Ha({}),a=new Ua({}),{c(){e=F("div"),It(n.$$.fragment),o=V(),It(r.$$.fragment),s=V(),It(i.$$.fragment),c=V(),It(a.$$.fragment),Y(e,"class","jb-section jb-section--alt jb-section--scores")},m(t,u){z(t,e,u),Ft(n,e,null),z(t,o,u),Ft(r,t,u),z(t,s,u),Ft(i,t,u),z(t,c,u),Ft(a,t,u),l=!0},p(t,[e]){const n={};1&e&&(n.$$scope={dirty:e,ctx:t}),r.$set(n)},i(t){l||(Rt(n.$$.fragment,t),Rt(r.$$.fragment,t),Rt(i.$$.fragment,t),Rt(a.$$.fragment,t),l=!0)},o(t){Ot(n.$$.fragment,t),Ot(r.$$.fragment,t),Ot(i.$$.fragment,t),Ot(a.$$.fragment,t),l=!1},d(t){t&&D(e),Ut(n),t&&D(o),Ut(r,t),t&&D(s),Ut(i,t),t&&D(c),Ut(a,t)}}}class Ya extends Vt{constructor(t){super(),Jt(this,t,null,qa,g,{})}}function Ga(t){let e,n,o,r,s,i,a=[{width:"177"},{height:"7"},{fill:"none"},{xmlns:"http://www.w3.org/2000/svg"},t[0]],u={};for(let t=0;t<a.length;t+=1)u=l(u,a[t]);return{c(){e=U("svg"),n=U("g"),o=U("path"),r=U("defs"),s=U("clipPath"),i=U("path"),this.h()},l(t){e=X(t,"svg",{width:!0,height:!0,fill:!0,xmlns:!0});var c=K(e);n=X(c,"g",{"clip-path":!0,fill:!0,"fill-opacity":!0});var a=K(n);o=X(a,"path",{d:!0}),K(o).forEach(D),a.forEach(D),r=X(c,"defs",{});var l=K(r);s=X(l,"clipPath",{id:!0});var u=K(s);i=X(u,"path",{fill:!0,d:!0}),K(i).forEach(D),u.forEach(D),l.forEach(D),c.forEach(D),this.h()},h(){Y(o,"d","M59.878 7c-2.38 0-3.909-1.668-3.909-3.39v-.22c0-1.76 1.548-3.39 3.909-3.39 2.379 0 3.927 1.63 3.927 3.39v.22c0 1.722-1.548 3.39-3.927 3.39zm2.662-3.592c0-1.264-.944-2.382-2.662-2.382-1.719 0-2.644 1.118-2.644 2.382v.165c0 1.265.944 2.4 2.644 2.4 1.7 0 2.662-1.135 2.662-2.4v-.165zM33.045 6.743l-.887-1.612H28.21l-.85 1.612H26.04L29.646.238h1.039l3.682 6.505h-1.322zm-2.889-5.24l-1.454 2.73h2.965l-1.511-2.73zM40.107 7c-2.398 0-3.53-1.264-3.53-2.969V.238h1.245v3.83c0 1.21.813 1.924 2.36 1.924 1.587 0 2.248-.715 2.248-1.924V.238h1.265v3.793C43.695 5.644 42.638 7 40.107 7zM50.72 1.246v5.497h-1.266V1.246h-2.926V.238h7.118v1.008H50.72zm24.302 5.497V1.594l-.34.568-2.814 4.581h-.623l-2.776-4.58-.34-.569v5.15h-1.227V.237h1.737l2.644 4.471.321.55.321-.55L74.55.24h1.718v6.504h-1.246zm10.782 0l-.887-1.612H80.97l-.85 1.612h-1.322L82.425.238h1.039l3.682 6.505h-1.34zm-2.889-5.24l-1.454 2.73h2.965l-1.511-2.73zm9.31-.257v5.497h-1.266V1.246h-2.927V.238h7.12v1.008h-2.928zm9.233 0v5.497h-1.265V1.246h-2.927V.238h7.119v1.008h-2.927zm6.043 5.497v-5.9c.509 0 .698-.257.698-.623h.529v6.505l-1.227.018zm11.084-4.672c-.604-.532-1.492-1.045-2.682-1.045-1.793 0-2.794 1.191-2.794 2.437v.129c0 1.227 1.019 2.382 2.889 2.382 1.114 0 2.039-.513 2.625-1.045l.755.77c-.737.696-1.983 1.301-3.456 1.301-2.53 0-4.078-1.594-4.078-3.353v-.22c0-1.76 1.68-3.427 4.135-3.427 1.416 0 2.7.568 3.399 1.301l-.793.77zm-57.876.201c.226.147.283.44.15.66l-1.151 1.722a.501.501 0 01-.68.147.486.486 0 01-.151-.66l1.152-1.722a.485.485 0 01.68-.147zM7.081 6.725l-.887-1.63H2.209l-.868 1.63H0L3.663.147h1.058l3.72 6.578H7.08zM4.154 1.43L2.681 4.196h3.003L4.154 1.43zm11.481 5.296l-4.4-4.398-.434-.458v4.875H9.536V.147h1.227l4.268 4.398.434.476V.147h1.265v6.578h-1.095zM135.938 6.78l-.907-1.63h-3.984l-.868 1.63h-1.341L132.52.183h1.058l3.738 6.597h-1.378zm-2.927-5.314l-1.473 2.767h3.003l-1.53-2.767zm5.401 5.314V.183h1.284V6.78h-1.284zm9.063 0c-.34 0-.491-.458-.547-1.063l-.038-.678c-.038-.66-.321-.934-1.586-.934h-2.417V6.78h-1.265V.183h3.701c2.039 0 2.964.788 2.964 1.814 0 .715-.377 1.411-1.699 1.65 1.322.091 1.605.678 1.624 1.447l.019.55c.019.458.094.788.415 1.118v.018h-1.171zm-.472-4.618c0-.476-.396-.934-1.491-.934h-2.606v1.979h2.719c.944 0 1.378-.44 1.378-.953v-.092zm3.078 4.618V.183h1.284v5.57h5.325V6.78h-6.609zm7.912 0V.183h1.284V6.78h-1.284zm9.347 0l-4.418-4.416-.435-.458V6.78h-1.284V.183h1.228l4.286 4.416.434.477V.183h1.284V6.78h-1.095zm3.04 0V.183h6.175V1.21h-4.91v1.686h3.777v1.008h-3.777v1.85h4.91V6.78h-6.175z"),Y(n,"clip-path","url(#footer-automattic_svg__clip0)"),Y(n,"fill","#000"),Y(n,"fill-opacity","0.8"),Y(i,"fill","#fff"),Y(i,"d","M0 0h176.556v7H0z"),Y(s,"id","footer-automattic_svg__clip0"),G(e,u)},m(t,c){A(t,e,c),M(e,n),M(n,o),M(e,r),M(r,s),M(s,i)},p(t,[n]){G(e,u=At(a,[{width:"177"},{height:"7"},{fill:"none"},{xmlns:"http://www.w3.org/2000/svg"},1&n&&t[0]]))},i:c,o:c,d(t){t&&D(e)}}}function Ka(t,e,n){return t.$$set=t=>{n(0,e=l(l({},e),j(t)))},[e=j(e)]}class Xa extends Vt{constructor(t){super(),Jt(this,t,Ka,Ga,g,{})}}function Za(t){let e,n,o=[{xmlns:"http://www.w3.org/2000/svg"},{width:"16"},{height:"16"},{fill:"none"},t[0]],r={};for(let t=0;t<o.length;t+=1)r=l(r,o[t]);return{c(){e=U("svg"),n=U("path"),this.h()},l(t){e=X(t,"svg",{xmlns:!0,width:!0,height:!0,fill:!0});var o=K(e);n=X(o,"path",{d:!0,fill:!0,"fill-opacity":!0}),K(n).forEach(D),o.forEach(D),this.h()},h(){Y(n,"d","M8 0C3.588 0 0 3.588 0 8s3.588 8 8 8 8-3.588 8-8-3.588-8-8-8zm-.412 9.328H3.603l3.985-7.755v7.755zm.809 5.084V6.656h3.985l-3.985 7.756z"),Y(n,"fill","#000"),Y(n,"fill-opacity","0.7"),G(e,r)},m(t,o){A(t,e,o),M(e,n)},p(t,[n]){G(e,r=At(o,[{xmlns:"http://www.w3.org/2000/svg"},{width:"16"},{height:"16"},{fill:"none"},1&n&&t[0]]))},i:c,o:c,d(t){t&&D(e)}}}function Qa(t,e,n){return t.$$set=t=>{n(0,e=l(l({},e),j(t)))},[e=j(e)]}class tl extends Vt{constructor(t){super(),Jt(this,t,Qa,Za,g,{})}}function el(t){let n,o,r,s,i,a,l,u,p,d=e.__("Jetpack Boost","jetpack-boost")+"";return r=new tl({}),u=new Xa({}),{c(){n=F("footer"),o=F("div"),It(r.$$.fragment),s=V(),i=J(d),a=V(),l=F("div"),It(u.$$.fragment),Y(o,"class","jb-signature--jetpack"),Y(l,"class","jb-signature--automattic"),Y(n,"class","jb-settings-footer")},m(t,e){z(t,n,e),R(n,o),Ft(r,o,null),R(o,s),R(o,i),R(n,a),R(n,l),Ft(u,l,null),p=!0},p:c,i(t){p||(Rt(r.$$.fragment,t),Rt(u.$$.fragment,t),p=!0)},o(t){Ot(r.$$.fragment,t),Ot(u.$$.fragment,t),p=!1},d(t){t&&D(n),Ut(r),Ut(u)}}}class nl extends Vt{constructor(t){super(),Jt(this,t,null,el,g,{})}}function ol(t){let e,n,o,r,s,i,a,u,p,d,m,g,f,h,b,$,y,_=[{fill:"none"},{height:"50"},{viewBox:"0 0 280 50"},{width:"280"},{xmlns:"http://www.w3.org/2000/svg"},t[0]],v={};for(let t=0;t<_.length;t+=1)v=l(v,_[t]);return{c(){e=U("svg"),n=U("path"),o=U("path"),r=U("path"),s=U("path"),i=U("path"),a=U("path"),u=U("path"),p=U("path"),d=U("g"),m=U("path"),g=U("path"),f=U("path"),h=U("path"),b=U("path"),$=U("path"),y=U("path"),this.h()},l(t){e=X(t,"svg",{fill:!0,height:!0,viewBox:!0,width:!0,xmlns:!0});var c=K(e);n=X(c,"path",{d:!0,fill:!0}),K(n).forEach(D),o=X(c,"path",{d:!0,fill:!0}),K(o).forEach(D),r=X(c,"path",{d:!0,fill:!0}),K(r).forEach(D),s=X(c,"path",{d:!0,fill:!0}),K(s).forEach(D),i=X(c,"path",{d:!0,fill:!0}),K(i).forEach(D),a=X(c,"path",{d:!0,fill:!0}),K(a).forEach(D),u=X(c,"path",{d:!0,fill:!0}),K(u).forEach(D),p=X(c,"path",{d:!0,fill:!0}),K(p).forEach(D),d=X(c,"g",{fill:!0});var l=K(d);m=X(l,"path",{d:!0}),K(m).forEach(D),g=X(l,"path",{d:!0}),K(g).forEach(D),f=X(l,"path",{d:!0}),K(f).forEach(D),h=X(l,"path",{d:!0}),K(h).forEach(D),b=X(l,"path",{d:!0}),K(b).forEach(D),$=X(l,"path",{d:!0}),K($).forEach(D),y=X(l,"path",{d:!0}),K(y).forEach(D),l.forEach(D),c.forEach(D),this.h()},h(){Y(n,"d","m207.34 21.2106c.764.1108 1.447.3141 2.051.6099.616.2957 1.14.6776 1.571 1.1458.444.4559.782 1.0042 1.017 1.6449.234.6284.351 1.3492.351 2.1624 0 .5791-.087 1.189-.259 1.8297-.173.6284-.462 1.2444-.869 1.8482-.394.5914-.918 1.1397-1.571 1.6449-.64.5051-1.441.9179-2.402 1.2383-.74.2464-1.559.4189-2.458.5174-.9.0986-1.978.1479-3.235.1479h-6.394v-24.72872h6.173c.566 0 1.078.01232 1.534.03696.468.01232.893.03697 1.275.07393.394.03696.758.08625 1.09.14785.333.04929.647.1109.943.18482.776.20946 1.478.49906 2.107.86866.64.3573 1.183.7885 1.626 1.2937.444.5052.783 1.0781 1.017 1.7188.246.6407.369 1.3369.369 2.0885 0 .6037-.074 1.1828-.222 1.7373-.135.5544-.363 1.0658-.683 1.534-.308.4682-.715.8871-1.22 1.2567-.493.3697-1.097.6777-1.811.9241zm-4.602-1.2383c.591 0 1.102-.0247 1.534-.074.431-.0616.819-.1478 1.164-.2587.924-.308 1.596-.7886 2.015-1.4416.431-.653.646-1.4231.646-2.3102 0-.9118-.221-1.6572-.665-2.2363s-1.14-1.0104-2.088-1.2938c-.469-.1355-1.011-.2279-1.627-.2772-.616-.0616-1.343-.0924-2.181-.0924h-3.382v7.9842zm-4.584 2.7168v8.5941h3.641c.863 0 1.663-.037 2.403-.1109.739-.0863 1.367-.2156 1.885-.3881.567-.1849 1.047-.419 1.441-.7024.395-.2957.709-.616.943-.961.246-.3573.419-.7331.518-1.1274.11-.3943.166-.7947.166-1.2013 0-.4682-.056-.9056-.166-1.3122-.111-.419-.296-.7886-.555-1.1089-.246-.3327-.579-.6223-.998-.8687-.407-.2464-.918-.4374-1.534-.5729-.37-.0863-.795-.1479-1.275-.1849-.468-.0369-1.054-.0554-1.756-.0554z"),Y(n,"fill","#000"),Y(o,"d","m229.338 25.2396c0-1.0843-.135-2.0453-.406-2.8832-.259-.8501-.629-1.5648-1.109-2.1439-.469-.5914-1.029-1.0349-1.682-1.3307-.653-.308-1.368-.462-2.144-.462s-1.491.154-2.144.462c-.653.2958-1.22.7393-1.7 1.3307-.468.5791-.838 1.2938-1.109 2.1439-.259.8379-.388 1.7989-.388 2.8832 0 1.0719.129 2.033.388 2.8832.271.8378.647 1.5463 1.127 2.1254.481.5791 1.048 1.0226 1.701 1.3307.653.2957 1.367.4435 2.143.4435.777 0 1.485-.1478 2.126-.4435.653-.3081 1.213-.7516 1.682-1.3307.48-.5791.85-1.2876 1.109-2.1254.271-.8502.406-1.8113.406-2.8832zm2.994 0c0 1.38-.197 2.6367-.591 3.7703-.394 1.1335-.955 2.1069-1.682 2.9201-.715.8009-1.583 1.4231-2.606 1.8667s-2.168.6653-3.438.6653c-1.306 0-2.476-.2217-3.511-.6653-1.023-.4436-1.898-1.0658-2.625-1.8667-.714-.8132-1.262-1.7866-1.644-2.9201-.382-1.1336-.573-2.3903-.573-3.7703 0-1.3923.197-2.6552.591-3.7888.394-1.1335.949-2.1069 1.663-2.9201.727-.8132 1.602-1.4416 2.625-1.8852 1.035-.4435 2.187-.6653 3.456-.6653 1.294 0 2.458.2218 3.493.6653 1.035.4436 1.91 1.072 2.624 1.8852.715.8132 1.263 1.7866 1.645 2.9201.382 1.1336.573 2.3965.573 3.7888z"),Y(o,"fill","#000"),Y(r,"d","m248.953 25.2396c0-1.0843-.136-2.0453-.407-2.8832-.259-.8501-.628-1.5648-1.109-2.1439-.468-.5914-1.029-1.0349-1.682-1.3307-.653-.308-1.367-.462-2.144-.462-.776 0-1.491.154-2.144.462-.653.2958-1.219.7393-1.7 1.3307-.468.5791-.838 1.2938-1.109 2.1439-.259.8379-.388 1.7989-.388 2.8832 0 1.0719.129 2.033.388 2.8832.271.8378.647 1.5463 1.128 2.1254.48.5791 1.047 1.0226 1.7 1.3307.653.2957 1.368.4435 2.144.4435s1.485-.1478 2.125-.4435c.653-.3081 1.214-.7516 1.682-1.3307.481-.5791.85-1.2876 1.109-2.1254.271-.8502.407-1.8113.407-2.8832zm2.994 0c0 1.38-.197 2.6367-.592 3.7703-.394 1.1335-.955 2.1069-1.682 2.9201-.714.8009-1.583 1.4231-2.606 1.8667-1.022.4436-2.168.6653-3.437.6653-1.306 0-2.477-.2217-3.512-.6653-1.022-.4436-1.897-1.0658-2.624-1.8667-.715-.8132-1.263-1.7866-1.645-2.9201-.382-1.1336-.573-2.3903-.573-3.7703 0-1.3923.197-2.6552.591-3.7888.395-1.1335.949-2.1069 1.664-2.9201.727-.8132 1.602-1.4416 2.624-1.8852 1.035-.4435 2.187-.6653 3.456-.6653 1.294 0 2.458.2218 3.493.6653 1.035.4436 1.91 1.072 2.625 1.8852.714.8132 1.263 1.7866 1.645 2.9201.382 1.1336.573 2.3965.573 3.7888z"),Y(r,"fill","#000"),Y(s,"d","m257.755 21.1181c0 .4806.105.8749.314 1.1829.21.308.487.5606.832.7577.357.1849.764.3389 1.22.4621.468.1232.949.2341 1.441.3327.678.1478 1.319.3142 1.923.499.603.1725 1.158.4374 1.663.7947.517.3573.93.844 1.238 1.4601.321.6037.481 1.3923.481 2.3656 0 .8872-.173 1.6757-.518 2.3657-.345.6777-.831 1.2506-1.46 1.7188-.628.4559-1.38.8009-2.255 1.035-.874.2464-1.835.3696-2.883.3696-.641 0-1.226-.0369-1.756-.1108-.517-.0617-.979-.1479-1.386-.2588-.394-.0986-.733-.2033-1.016-.3142-.284-.1109-.518-.2156-.703-.3142v-2.4026c.74.2957 1.473.5298 2.2.7023s1.528.2587 2.402.2587c.69 0 1.313-.0616 1.867-.1848.555-.1232 1.029-.3018 1.423-.536.407-.2464.715-.5482.924-.9056.222-.3696.333-.7947.333-1.2752 0-.4929-.099-.8995-.296-1.2198-.197-.3204-.462-.5853-.794-.7947-.333-.2095-.721-.382-1.165-.5175-.431-.1356-.887-.2588-1.367-.3697-.629-.1355-1.27-.2957-1.923-.4805-.64-.1848-1.226-.4436-1.755-.7762-.53-.3327-.961-.7824-1.294-1.3492-.32-.5791-.481-1.3184-.481-2.2178 0-.9241.167-1.725.499-2.4027.333-.6776.783-1.2383 1.35-1.6818.566-.4436 1.226-.7763 1.977-.998.752-.2218 1.546-.3327 2.384-.3327.974 0 1.873.0924 2.699.2772.837.1848 1.595.4189 2.273.7023v2.4396c-.739-.2834-1.491-.5113-2.255-.6838-.751-.1848-1.528-.2834-2.329-.2957-.677 0-1.256.0678-1.737.2033-.48.1355-.875.3265-1.183.5729-.308.2341-.536.5175-.684.8502-.135.3204-.203.6777-.203 1.0719z"),Y(s,"fill","#000"),Y(i,"d","m279.902 34.037c-.247.0985-.623.1909-1.128.2772-.505.0862-1.109.1355-1.811.1478-.924 0-1.725-.117-2.403-.3511-.677-.2218-1.244-.5421-1.7-.9611-.444-.4312-.776-.9487-.998-1.5524-.222-.6038-.333-1.2753-.333-2.0146v-10.6825h-3.382v-2.4581h3.382v-4.8052h2.865v4.8052h5.249v2.4581h-5.249v10.239c0 .4066.055.7824.166 1.1274.124.345.308.6468.555.9056.259.2464.585.4435.979.5914.395.1355.869.2033 1.423.2033.382 0 .783-.0308 1.202-.0924.431-.0616.825-.1417 1.183-.2403z"),Y(i,"fill","#000"),Y(a,"d","m24.9855 49.9692c13.799 0 24.9855-11.1865 24.9855-24.9855 0-13.7991-11.1865-24.9837-24.9855-24.9837s-24.9855 11.1865-24.9855 24.9855 11.1865 24.9837 24.9855 24.9837z"),Y(a,"fill","#069e08"),Y(u,"d","m26.2256 20.7892v24.2213l12.4927-24.2213z"),Y(u,"fill","#fff"),Y(p,"d","m23.6976 29.1337v-24.17511l-12.4447 24.17511z"),Y(p,"fill","#fff"),Y(m,"d","m64.512 41.4821c-.7161-1.0972-1.3822-2.1925-2.0501-3.2416 3.5284-2.1462 4.72-3.8614 4.72-7.1048v-18.7392h-4.1483v-3.57462h8.8219v21.36092c0 5.436-1.5727 8.487-7.3435 11.2993z"),Y(g,"d","m101.467 28.7045c0 1.8113 1.287 2.0019 2.146 2.0019.858 0 2.098-.2868 3.051-.5717v3.3378c-1.336.4293-2.718.7623-4.626.7623-2.2885 0-4.9584-.8585-4.9584-4.8643v-9.8228h-2.4312v-3.386h2.4312v-5.0048h4.3874v5.0067h5.53v3.3859h-5.53z"),Y(f,"d","m110.621 43.151v-27.0355h4.196v1.6208c1.669-1.2878 3.529-2.0982 5.818-2.0982 3.957 0 7.104 2.7661 7.104 8.7257 0 5.9133-3.432 9.8229-9.106 9.8229-1.383 0-2.48-.1906-3.625-.4293v9.3455h-4.387zm8.868-23.8883c-1.288 0-2.908.6198-4.435 1.9557v9.2031c.953.1905 1.956.333 3.29.333 3.099 0 4.864-1.9557 4.864-6.0558 0-3.7671-1.288-5.436-3.719-5.436z"),Y(h,"d","m144.998 33.8055h-4.1v-1.9557h-.096c-1.43 1.0972-3.195 2.2888-5.817 2.2888-2.289 0-4.768-1.6689-4.768-5.0549 0-4.5293 3.861-5.3878 6.579-5.769l3.862-.5236v-.5236c0-2.385-.953-3.1472-3.196-3.1472-1.097 0-3.671.333-5.769 1.1915l-.381-3.5284c1.908-.6679 4.529-1.1434 6.724-1.1434 4.291 0 7.057 1.717 7.057 6.8181v11.3474zm-4.387-8.2483-3.624.5717c-1.097.1425-2.241.8104-2.241 2.4312 0 1.4303.811 2.2407 2.002 2.2407 1.288 0 2.67-.7623 3.862-1.6208v-3.6228z"),Y(b,"d","m163.118 33.2338c-1.812.6198-3.432 1.001-5.484 1.001-6.58 0-9.203-3.7671-9.203-9.2493 0-5.769 3.624-9.3455 9.488-9.3455 2.192 0 3.528.3811 5.006.8585v3.7189c-1.287-.4773-3.147-1.0009-4.958-1.0009-2.67 0-4.959 1.4302-4.959 5.5303 0 4.5294 2.289 5.9133 5.197 5.9133 1.383 0 2.909-.2867 4.959-1.0971v3.6708z"),Y($,"d","m171.415 23.7458c.381-.4292.668-.8585 6.198-7.5822h5.721l-7.153 8.3926 7.819 9.2974h-5.721l-6.818-8.3926v8.3926h-4.385v-25.03173h4.387v14.92393z"),Y(y,"d","m91.3568 33.2338c-2.2887.716-4.2444 1.001-6.5332 1.001-5.6265 0-9.1068-2.8124-9.1068-9.3936 0-4.8162 2.9567-9.2031 8.6295-9.2031 5.6265 0 7.5822 3.9096 7.5822 7.6285 0 1.2397-.0962 1.9076-.1425 2.6218h-11.3474c.0962 3.8614 2.2887 4.768 5.5784 4.768 1.8114 0 3.4322-.4292 5.2935-1.0972v3.6709h.0463zm-4.0039-10.2521c0-2.1463-.716-4.0058-3.051-4.0058-2.1926 0-3.5284 1.5727-3.8152 4.0058z"),Y(d,"fill","#000"),G(e,v)},m(t,c){A(t,e,c),M(e,n),M(e,o),M(e,r),M(e,s),M(e,i),M(e,a),M(e,u),M(e,p),M(e,d),M(d,m),M(d,g),M(d,f),M(d,h),M(d,b),M(d,$),M(d,y)},p(t,[n]){G(e,v=At(_,[{fill:"none"},{height:"50"},{viewBox:"0 0 280 50"},{width:"280"},{xmlns:"http://www.w3.org/2000/svg"},1&n&&t[0]]))},i:c,o:c,d(t){t&&D(e)}}}function rl(t,e,n){return t.$$set=t=>{n(0,e=l(l({},e),j(t)))},[e=j(e)]}class sl extends Vt{constructor(t){super(),Jt(this,t,rl,ol,g,{})}}function il(t){let e,n,o,r;return o=new sl({}),{c(){e=F("div"),n=F("div"),It(o.$$.fragment),Y(n,"class","jb-settings-header__logo"),Y(e,"class","jb-settings-header")},m(t,s){z(t,e,s),R(e,n),Ft(o,n,null),r=!0},p:c,i(t){r||(Rt(o.$$.fragment,t),r=!0)},o(t){Ot(o.$$.fragment,t),r=!1},d(t){t&&D(e),Ut(o)}}}class cl extends Vt{constructor(t){super(),Jt(this,t,null,il,g,{})}}function al(t){let e,n;return e=new zo({}),{c(){It(e.$$.fragment)},m(t,o){Ft(e,t,o),n=!0},i(t){n||(Rt(e.$$.fragment,t),n=!0)},o(t){Ot(e.$$.fragment,t),n=!1},d(t){Ut(e,t)}}}function ll(t){let e,n;return e=new Ya({}),{c(){It(e.$$.fragment)},m(t,o){Ft(e,t,o),n=!0},i(t){n||(Rt(e.$$.fragment,t),n=!0)},o(t){Ot(e.$$.fragment,t),n=!1},d(t){Ut(e,t)}}}function ul(t){let e,n,o,r,s,i,c,a,l;o=new cl({});const u=[ll,al],p=[];function d(t,e){return t[0].connected||!t[1].site.online?0:1}return s=d(t),i=p[s]=u[s](t),a=new nl({}),{c(){e=F("div"),n=F("div"),It(o.$$.fragment),r=V(),i.c(),c=V(),It(a.$$.fragment),Y(n,"class","jb-container"),Y(e,"id","jb-settings"),Y(e,"class","jb-settings jb-settings--main")},m(t,i){z(t,e,i),R(e,n),Ft(o,n,null),R(e,r),p[s].m(e,null),R(e,c),Ft(a,e,null),l=!0},p(t,n){let o=s;s=d(t),s!==o&&(Tt(),Ot(p[o],1,1,(()=>{p[o]=null})),Lt(),i=p[s],i||(i=p[s]=u[s](t),i.c()),Rt(i,1),i.m(e,c))},i(t){l||(Rt(o.$$.fragment,t),Rt(i),Rt(a.$$.fragment,t),l=!0)},o(t){Ot(o.$$.fragment,t),Ot(i),Ot(a.$$.fragment,t),l=!1},d(t){t&&D(e),Ut(o),p[s].d(),Ut(a)}}}function pl(t){let e,n,o,r,s,i;return e=new Zr({props:{path:"upgrade",component:vn}}),o=new Zr({props:{path:"purchase-successful",component:Io}}),s=new Zr({props:{$$slots:{default:[ul]},$$scope:{ctx:t}}}),{c(){It(e.$$.fragment),n=V(),It(o.$$.fragment),r=V(),It(s.$$.fragment)},m(t,c){Ft(e,t,c),z(t,n,c),Ft(o,t,c),z(t,r,c),Ft(s,t,c),i=!0},p(t,e){const n={};7&e&&(n.$$scope={dirty:e,ctx:t}),s.$set(n)},i(t){i||(Rt(e.$$.fragment,t),Rt(o.$$.fragment,t),Rt(s.$$.fragment,t),i=!0)},o(t){Ot(e.$$.fragment,t),Ot(o.$$.fragment,t),Ot(s.$$.fragment,t),i=!1},d(t){Ut(e,t),t&&D(n),Ut(o,t),t&&D(r),Ut(s,t)}}}function dl(t){let e,n;return e=new Ur({props:{history:Xe,$$slots:{default:[pl]},$$scope:{ctx:t}}}),{c(){It(e.$$.fragment)},m(t,o){Ft(e,t,o),n=!0},p(t,[n]){const o={};7&n&&(o.$$scope={dirty:n,ctx:t}),e.$set(o)},i(t){n||(Rt(e.$$.fragment,t),n=!0)},o(t){Ot(e.$$.fragment,t),n=!1},d(t){Ut(e,t)}}}function ml(t,e,n){let o,r;return $(t,eo,(t=>n(0,o=t))),$(t,mn,(t=>n(1,r=t))),[o,r]}const gl=document.getElementById("jb-admin-settings");return new class extends Vt{constructor(t){super(),Jt(this,t,ml,dl,g,{})}}({target:gl})}(window.React,wp.i18n,window.ReactDOM,wp.components);
|
app/assets/static/images/boost.png
ADDED
Binary file
|
app/assets/static/images/check.svg
ADDED
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
2 |
+
<mask id="mask0_2115_8307" style="mask-type:alpha" maskUnits="userSpaceOnUse" x="3" y="5" width="18" height="14">
|
3 |
+
<path d="M8.75686 15.9001L4.57746 11.7L3.18433 13.1L8.75686 18.7001L20.698 6.70005L19.3049 5.30005L8.75686 15.9001Z" fill="white"/>
|
4 |
+
</mask>
|
5 |
+
<g mask="url(#mask0_2115_8307)">
|
6 |
+
<rect width="23.8823" height="24" fill="#069E08"/>
|
7 |
+
</g>
|
8 |
+
</svg>
|
app/assets/static/images/color-shift.svg
ADDED
@@ -0,0 +1,41 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<svg width="363" height="600" viewBox="0 0 363 600" fill="none" xmlns="http://www.w3.org/2000/svg">
|
2 |
+
<mask id="mask0_2115_8320" style="mask-type:alpha" maskUnits="userSpaceOnUse" x="0" y="0" width="363" height="666">
|
3 |
+
<path d="M0 0H359C361.209 0 363 1.79086 363 4V661.075C363 665.235 357.44 666.631 355.475 662.965L0 0Z" fill="#F9F9F6"/>
|
4 |
+
</mask>
|
5 |
+
<g mask="url(#mask0_2115_8320)">
|
6 |
+
<g filter="url(#filter0_f_2115_8320)">
|
7 |
+
<ellipse cx="290.5" cy="288.048" rx="151.5" ry="143.048" fill="#069E08" fill-opacity="0.15"/>
|
8 |
+
</g>
|
9 |
+
<g filter="url(#filter1_f_2115_8320)">
|
10 |
+
<ellipse cx="256.5" cy="132.5" rx="131.5" ry="124.5" fill="#F5E6B3"/>
|
11 |
+
</g>
|
12 |
+
<g opacity="0.7" filter="url(#filter2_f_2115_8320)">
|
13 |
+
<ellipse cx="173" cy="-64" rx="213" ry="201" fill="#CED9F2"/>
|
14 |
+
</g>
|
15 |
+
<g opacity="0.9" filter="url(#filter3_f_2115_8320)">
|
16 |
+
<ellipse cx="4.5" cy="67" rx="100.5" ry="95" fill="white"/>
|
17 |
+
</g>
|
18 |
+
</g>
|
19 |
+
<defs>
|
20 |
+
<filter id="filter0_f_2115_8320" x="55" y="61" width="471" height="454.096" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB">
|
21 |
+
<feFlood flood-opacity="0" result="BackgroundImageFix"/>
|
22 |
+
<feBlend mode="normal" in="SourceGraphic" in2="BackgroundImageFix" result="shape"/>
|
23 |
+
<feGaussianBlur stdDeviation="42" result="effect1_foregroundBlur_2115_8320"/>
|
24 |
+
</filter>
|
25 |
+
<filter id="filter1_f_2115_8320" x="-29" y="-146" width="571" height="557" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB">
|
26 |
+
<feFlood flood-opacity="0" result="BackgroundImageFix"/>
|
27 |
+
<feBlend mode="normal" in="SourceGraphic" in2="BackgroundImageFix" result="shape"/>
|
28 |
+
<feGaussianBlur stdDeviation="77" result="effect1_foregroundBlur_2115_8320"/>
|
29 |
+
</filter>
|
30 |
+
<filter id="filter2_f_2115_8320" x="-134" y="-359" width="614" height="590" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB">
|
31 |
+
<feFlood flood-opacity="0" result="BackgroundImageFix"/>
|
32 |
+
<feBlend mode="normal" in="SourceGraphic" in2="BackgroundImageFix" result="shape"/>
|
33 |
+
<feGaussianBlur stdDeviation="47" result="effect1_foregroundBlur_2115_8320"/>
|
34 |
+
</filter>
|
35 |
+
<filter id="filter3_f_2115_8320" x="-190" y="-122" width="389" height="378" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB">
|
36 |
+
<feFlood flood-opacity="0" result="BackgroundImageFix"/>
|
37 |
+
<feBlend mode="normal" in="SourceGraphic" in2="BackgroundImageFix" result="shape"/>
|
38 |
+
<feGaussianBlur stdDeviation="47" result="effect1_foregroundBlur_2115_8320"/>
|
39 |
+
</filter>
|
40 |
+
</defs>
|
41 |
+
</svg>
|
app/assets/static/images/forward.svg
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
1 |
+
<svg width="17" height="16" viewBox="0 0 17 16" fill="none" xmlns="http://www.w3.org/2000/svg">
|
2 |
+
<path d="M8.99996 0.666748L15.6666 8.00008L8.99996 15.3334M0.99996 0.666748L7.66663 8.00008L0.999961 15.3334" stroke="#1E1E1E" stroke-width="1.5"/>
|
3 |
+
</svg>
|
app/class-jetpack-boost.php
CHANGED
@@ -22,7 +22,10 @@ use Automattic\Jetpack_Boost\Lib\CLI;
|
|
22 |
use Automattic\Jetpack_Boost\Lib\Connection;
|
23 |
use Automattic\Jetpack_Boost\Lib\Critical_CSS\Critical_CSS_Storage;
|
24 |
use Automattic\Jetpack_Boost\Lib\Setup;
|
|
|
|
|
25 |
use Automattic\Jetpack_Boost\REST_API\Endpoints\Optimization_Status;
|
|
|
26 |
use Automattic\Jetpack_Boost\REST_API\REST_API;
|
27 |
|
28 |
/**
|
@@ -96,7 +99,7 @@ class Jetpack_Boost {
|
|
96 |
$this->init_admin( $optimizations );
|
97 |
add_action( 'init', array( $this, 'init_textdomain' ) );
|
98 |
|
99 |
-
add_action( '
|
100 |
|
101 |
// Fired when plugin ready.
|
102 |
do_action( 'jetpack_boost_loaded', $this );
|
@@ -117,7 +120,7 @@ class Jetpack_Boost {
|
|
117 |
*/
|
118 |
public function deactivate() {
|
119 |
do_action( 'jetpack_boost_deactivate' );
|
120 |
-
Analytics::record_user_event( '
|
121 |
Admin::clear_dismissed_notices();
|
122 |
}
|
123 |
|
@@ -126,6 +129,8 @@ class Jetpack_Boost {
|
|
126 |
*/
|
127 |
public function init_admin( $modules ) {
|
128 |
REST_API::register( Optimization_Status::class );
|
|
|
|
|
129 |
$this->connection->ensure_connection();
|
130 |
new Admin( $modules );
|
131 |
}
|
@@ -167,7 +172,7 @@ class Jetpack_Boost {
|
|
167 |
* This is done here so even if the Critical CSS module is switched off we can
|
168 |
* still capture the change of environment event and flag Critical CSS for a rebuild.
|
169 |
*/
|
170 |
-
public function
|
171 |
Admin::clear_dismissed_notice( Regenerate_Admin_Notice::SLUG );
|
172 |
\update_option( Critical_CSS::RESET_REASON_STORAGE_KEY, Regenerate_Admin_Notice::REASON_THEME_CHANGE, false );
|
173 |
}
|
@@ -186,11 +191,13 @@ class Jetpack_Boost {
|
|
186 |
"
|
187 |
DELETE
|
188 |
FROM `$wpdb->options`
|
189 |
-
WHERE `option_name` LIKE jetpack_boost_%
|
190 |
"
|
191 |
);
|
192 |
|
193 |
// Delete stored Critical CSS.
|
194 |
( new Critical_CSS_Storage() )->clear();
|
|
|
|
|
195 |
}
|
196 |
}
|
22 |
use Automattic\Jetpack_Boost\Lib\Connection;
|
23 |
use Automattic\Jetpack_Boost\Lib\Critical_CSS\Critical_CSS_Storage;
|
24 |
use Automattic\Jetpack_Boost\Lib\Setup;
|
25 |
+
use Automattic\Jetpack_Boost\Lib\Transient;
|
26 |
+
use Automattic\Jetpack_Boost\REST_API\Endpoints\Config_State;
|
27 |
use Automattic\Jetpack_Boost\REST_API\Endpoints\Optimization_Status;
|
28 |
+
use Automattic\Jetpack_Boost\REST_API\Endpoints\Optimizations_Status;
|
29 |
use Automattic\Jetpack_Boost\REST_API\REST_API;
|
30 |
|
31 |
/**
|
99 |
$this->init_admin( $optimizations );
|
100 |
add_action( 'init', array( $this, 'init_textdomain' ) );
|
101 |
|
102 |
+
add_action( 'handle_environment_change', array( $this, 'handle_environment_change' ) );
|
103 |
|
104 |
// Fired when plugin ready.
|
105 |
do_action( 'jetpack_boost_loaded', $this );
|
120 |
*/
|
121 |
public function deactivate() {
|
122 |
do_action( 'jetpack_boost_deactivate' );
|
123 |
+
Analytics::record_user_event( 'deactivate_plugin' );
|
124 |
Admin::clear_dismissed_notices();
|
125 |
}
|
126 |
|
129 |
*/
|
130 |
public function init_admin( $modules ) {
|
131 |
REST_API::register( Optimization_Status::class );
|
132 |
+
REST_API::register( Optimizations_Status::class );
|
133 |
+
REST_API::register( Config_State::class );
|
134 |
$this->connection->ensure_connection();
|
135 |
new Admin( $modules );
|
136 |
}
|
172 |
* This is done here so even if the Critical CSS module is switched off we can
|
173 |
* still capture the change of environment event and flag Critical CSS for a rebuild.
|
174 |
*/
|
175 |
+
public function handle_environment_change() {
|
176 |
Admin::clear_dismissed_notice( Regenerate_Admin_Notice::SLUG );
|
177 |
\update_option( Critical_CSS::RESET_REASON_STORAGE_KEY, Regenerate_Admin_Notice::REASON_THEME_CHANGE, false );
|
178 |
}
|
191 |
"
|
192 |
DELETE
|
193 |
FROM `$wpdb->options`
|
194 |
+
WHERE `option_name` LIKE 'jetpack_boost_%'
|
195 |
"
|
196 |
);
|
197 |
|
198 |
// Delete stored Critical CSS.
|
199 |
( new Critical_CSS_Storage() )->clear();
|
200 |
+
// Delete all transients created by boost.
|
201 |
+
Transient::delete_by_prefix( '' );
|
202 |
}
|
203 |
}
|
app/contracts/Boost_API_Client.php
CHANGED
@@ -18,4 +18,12 @@ interface Boost_API_Client {
|
|
18 |
* @return mixed
|
19 |
*/
|
20 |
public function post( $path, $payload = array() );
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
21 |
}
|
18 |
* @return mixed
|
19 |
*/
|
20 |
public function post( $path, $payload = array() );
|
21 |
+
|
22 |
+
/**
|
23 |
+
* Make a get request to boost API and return response.
|
24 |
+
*
|
25 |
+
* @param $path string Request path
|
26 |
+
* @param $query mixed[] Query parameters
|
27 |
+
*/
|
28 |
+
public function get( $path, $query = array() );
|
29 |
}
|
app/features/optimizations/Optimizations.php
CHANGED
@@ -7,6 +7,7 @@ use Automattic\Jetpack_Boost\Features\Optimizations\Cloud_CSS\Cloud_CSS;
|
|
7 |
use Automattic\Jetpack_Boost\Features\Optimizations\Critical_CSS\Critical_CSS;
|
8 |
use Automattic\Jetpack_Boost\Features\Optimizations\Lazy_Images\Lazy_Images;
|
9 |
use Automattic\Jetpack_Boost\Features\Optimizations\Render_Blocking_JS\Render_Blocking_JS;
|
|
|
10 |
use Automattic\Jetpack_Boost\REST_API\Contracts\Has_Endpoints;
|
11 |
|
12 |
class Optimizations implements Has_Setup {
|
@@ -25,7 +26,7 @@ class Optimizations implements Has_Setup {
|
|
25 |
public function __construct() {
|
26 |
|
27 |
$critical_css_class = Critical_CSS::class;
|
28 |
-
if (
|
29 |
$critical_css_class = Cloud_CSS::class;
|
30 |
}
|
31 |
|
@@ -63,7 +64,12 @@ class Optimizations implements Has_Setup {
|
|
63 |
}
|
64 |
|
65 |
public function have_enabled_modules() {
|
66 |
-
|
|
|
|
|
|
|
|
|
|
|
67 |
}
|
68 |
|
69 |
public function get_status() {
|
7 |
use Automattic\Jetpack_Boost\Features\Optimizations\Critical_CSS\Critical_CSS;
|
8 |
use Automattic\Jetpack_Boost\Features\Optimizations\Lazy_Images\Lazy_Images;
|
9 |
use Automattic\Jetpack_Boost\Features\Optimizations\Render_Blocking_JS\Render_Blocking_JS;
|
10 |
+
use Automattic\Jetpack_Boost\Lib\Premium_Features;
|
11 |
use Automattic\Jetpack_Boost\REST_API\Contracts\Has_Endpoints;
|
12 |
|
13 |
class Optimizations implements Has_Setup {
|
26 |
public function __construct() {
|
27 |
|
28 |
$critical_css_class = Critical_CSS::class;
|
29 |
+
if ( Premium_Features::has_feature( Premium_Features::CLOUD_CSS ) ) {
|
30 |
$critical_css_class = Cloud_CSS::class;
|
31 |
}
|
32 |
|
64 |
}
|
65 |
|
66 |
public function have_enabled_modules() {
|
67 |
+
foreach ( $this->features as $optimization ) {
|
68 |
+
if ( $optimization->status->is_enabled() ) {
|
69 |
+
return true;
|
70 |
+
}
|
71 |
+
}
|
72 |
+
return false;
|
73 |
}
|
74 |
|
75 |
public function get_status() {
|
app/features/optimizations/cloud-css/Cloud_CSS.php
CHANGED
@@ -2,6 +2,7 @@
|
|
2 |
namespace Automattic\Jetpack_Boost\Features\Optimizations\Cloud_CSS;
|
3 |
|
4 |
use Automattic\Jetpack_Boost\Contracts\Feature;
|
|
|
5 |
use Automattic\Jetpack_Boost\Lib\Critical_CSS\Admin_Bar_Compatibility;
|
6 |
use Automattic\Jetpack_Boost\Lib\Critical_CSS\Critical_CSS_Invalidator;
|
7 |
use Automattic\Jetpack_Boost\Lib\Critical_CSS\Critical_CSS_State;
|
@@ -43,6 +44,7 @@ class Cloud_CSS implements Feature, Has_Endpoints {
|
|
43 |
|
44 |
REST_API::register( $this->get_endpoints() );
|
45 |
Critical_CSS_Invalidator::init();
|
|
|
46 |
|
47 |
return true;
|
48 |
}
|
@@ -119,8 +121,71 @@ class Cloud_CSS implements Feature, Has_Endpoints {
|
|
119 |
}
|
120 |
$state->create_request( $source_providers->get_providers() );
|
121 |
|
122 |
-
$client
|
123 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
124 |
}
|
125 |
|
126 |
/**
|
@@ -131,7 +196,7 @@ class Cloud_CSS implements Feature, Has_Endpoints {
|
|
131 |
return;
|
132 |
}
|
133 |
|
134 |
-
$this->generate_cloud_css(
|
135 |
}
|
136 |
|
137 |
/**
|
@@ -143,8 +208,8 @@ class Cloud_CSS implements Feature, Has_Endpoints {
|
|
143 |
*/
|
144 |
public function add_critical_css_constants( $constants ) {
|
145 |
// Information about the current status of Cloud CSS / generation.
|
146 |
-
$
|
147 |
-
$constants['
|
148 |
|
149 |
return $constants;
|
150 |
}
|
2 |
namespace Automattic\Jetpack_Boost\Features\Optimizations\Cloud_CSS;
|
3 |
|
4 |
use Automattic\Jetpack_Boost\Contracts\Feature;
|
5 |
+
use Automattic\Jetpack_Boost\Features\Optimizations\Critical_CSS\Generator;
|
6 |
use Automattic\Jetpack_Boost\Lib\Critical_CSS\Admin_Bar_Compatibility;
|
7 |
use Automattic\Jetpack_Boost\Lib\Critical_CSS\Critical_CSS_Invalidator;
|
8 |
use Automattic\Jetpack_Boost\Lib\Critical_CSS\Critical_CSS_State;
|
44 |
|
45 |
REST_API::register( $this->get_endpoints() );
|
46 |
Critical_CSS_Invalidator::init();
|
47 |
+
Cloud_CSS_Cron::init();
|
48 |
|
49 |
return true;
|
50 |
}
|
121 |
}
|
122 |
$state->create_request( $source_providers->get_providers() );
|
123 |
|
124 |
+
$client = new Cloud_CSS_Request();
|
125 |
+
$providers = $state->get_provider_urls();
|
126 |
+
$response = $client->request_generate( $providers );
|
127 |
+
|
128 |
+
// Set a one off cron job one hour from now. This will resend the request in case it failed.
|
129 |
+
Cloud_CSS_Cron::install( time() + HOUR_IN_SECONDS );
|
130 |
+
|
131 |
+
if ( is_wp_error( $response ) ) {
|
132 |
+
$state->set_as_failed( $response->get_error_message() );
|
133 |
+
}
|
134 |
+
return $response;
|
135 |
+
}
|
136 |
+
|
137 |
+
/**
|
138 |
+
* Store the Cloud Critical CSS or the error response.
|
139 |
+
*
|
140 |
+
* @param array $params Request parameters with the Cloud CSS status.
|
141 |
+
* @return bool[]|\WP_Error Update status response.
|
142 |
+
*/
|
143 |
+
public function update_cloud_css( $params ) {
|
144 |
+
try {
|
145 |
+
$providers = $this->remove_generation_args( $params['providers'] );
|
146 |
+
$state = new Critical_CSS_State( 'cloud' );
|
147 |
+
$storage = new Critical_CSS_Storage();
|
148 |
+
|
149 |
+
foreach ( $providers as $provider => $result ) {
|
150 |
+
if ( ! isset( $result['data'] ) ) {
|
151 |
+
$state->set_as_failed( __( 'An unknown error occurred', 'jetpack-boost' ) );
|
152 |
+
continue;
|
153 |
+
}
|
154 |
+
$data = $result['data'];
|
155 |
+
if ( isset( $result['success'] ) && $result['success'] ) {
|
156 |
+
$state->set_source_success( $provider );
|
157 |
+
$storage->store_css( $provider, $data['css'] );
|
158 |
+
} elseif ( isset( $data['show_stopper'] ) && $data['show_stopper'] ) {
|
159 |
+
$state->set_as_failed( $data['error'] );
|
160 |
+
} else {
|
161 |
+
$state->set_source_error( $provider, $data['urls'] );
|
162 |
+
}
|
163 |
+
}
|
164 |
+
$state->maybe_set_status();
|
165 |
+
|
166 |
+
return array( 'success' => true );
|
167 |
+
} catch ( \Exception $e ) {
|
168 |
+
return new \WP_Error( 'invalid_request', $e->getMessage(), array( 'status' => 400 ) );
|
169 |
+
}
|
170 |
+
}
|
171 |
+
|
172 |
+
/**
|
173 |
+
* Remove jb-generate-critical-css arg from each URL in the provider set.
|
174 |
+
*/
|
175 |
+
private function remove_generation_args( $providers ) {
|
176 |
+
foreach ( $providers as &$provider ) {
|
177 |
+
if ( ! isset( $provider['data'] ) || ! isset( $provider['data']['urls'] ) ) {
|
178 |
+
continue;
|
179 |
+
}
|
180 |
+
$formatted = array();
|
181 |
+
foreach ( $provider['data']['urls'] as $url => $error ) {
|
182 |
+
$url = remove_query_arg( 'jb-generate-critical-css', $url );
|
183 |
+
$error['meta']['url'] = $url;
|
184 |
+
$formatted[ $url ] = $error;
|
185 |
+
}
|
186 |
+
$provider['data']['urls'] = $formatted;
|
187 |
+
}
|
188 |
+
return $providers;
|
189 |
}
|
190 |
|
191 |
/**
|
196 |
return;
|
197 |
}
|
198 |
|
199 |
+
$this->generate_cloud_css();
|
200 |
}
|
201 |
|
202 |
/**
|
208 |
*/
|
209 |
public function add_critical_css_constants( $constants ) {
|
210 |
// Information about the current status of Cloud CSS / generation.
|
211 |
+
$generator = new Generator( 'cloud' );
|
212 |
+
$constants['criticalCssStatus'] = $generator->get_critical_css_status();
|
213 |
|
214 |
return $constants;
|
215 |
}
|
app/features/optimizations/cloud-css/Cloud_CSS_Cron.php
ADDED
@@ -0,0 +1,57 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
namespace Automattic\Jetpack_Boost\Features\Optimizations\Cloud_CSS;
|
4 |
+
|
5 |
+
use Automattic\Jetpack_Boost\Lib\Critical_CSS\Critical_CSS_State;
|
6 |
+
|
7 |
+
class Cloud_CSS_Cron {
|
8 |
+
|
9 |
+
const SCHEDULER_HOOK = 'jetpack_boost_check_cloud_css';
|
10 |
+
|
11 |
+
/**
|
12 |
+
* Initiate the scheduler
|
13 |
+
*
|
14 |
+
* Whenever Cloud CSS module is setup, it will call this method.
|
15 |
+
*
|
16 |
+
* @return void
|
17 |
+
*/
|
18 |
+
public static function init() {
|
19 |
+
/*
|
20 |
+
* Run the scheduled job
|
21 |
+
*/
|
22 |
+
add_action( self::SCHEDULER_HOOK, array( self::class, 'run' ) );
|
23 |
+
}
|
24 |
+
|
25 |
+
/**
|
26 |
+
* Run the cron job.
|
27 |
+
*/
|
28 |
+
public static function run() {
|
29 |
+
$state = new Critical_CSS_State( 'cloud' );
|
30 |
+
|
31 |
+
if ( $state->is_fatal_error() ) {
|
32 |
+
$client = new Cloud_CSS_Request();
|
33 |
+
$providers = $state->get_provider_urls();
|
34 |
+
$client->request_generate( $providers );
|
35 |
+
}
|
36 |
+
}
|
37 |
+
|
38 |
+
/**
|
39 |
+
* Add a cron-job to maintain cloud CSS
|
40 |
+
*
|
41 |
+
* @param int $when Timestamp of when to schedule the event.
|
42 |
+
* @return void
|
43 |
+
*/
|
44 |
+
public static function install( $when ) {
|
45 |
+
// Remove any existing schedule
|
46 |
+
self::uninstall();
|
47 |
+
|
48 |
+
wp_schedule_single_event( $when, self::SCHEDULER_HOOK );
|
49 |
+
}
|
50 |
+
|
51 |
+
/**
|
52 |
+
* Remove the cron-job
|
53 |
+
*/
|
54 |
+
public static function uninstall() {
|
55 |
+
wp_clear_scheduled_hook( self::SCHEDULER_HOOK );
|
56 |
+
}
|
57 |
+
}
|
app/features/optimizations/cloud-css/Cloud_CSS_Request.php
CHANGED
@@ -10,29 +10,16 @@
|
|
10 |
namespace Automattic\Jetpack_Boost\Features\Optimizations\Cloud_CSS;
|
11 |
|
12 |
use Automattic\Jetpack_Boost\Lib\Boost_API;
|
13 |
-
use Automattic\Jetpack_Boost\Lib\Critical_CSS\Critical_CSS_State;
|
14 |
use Automattic\Jetpack_Boost\Lib\Critical_CSS\Critical_CSS_Storage;
|
15 |
|
16 |
/**
|
17 |
-
* Cloud CSS
|
18 |
*/
|
19 |
class Cloud_CSS_Request {
|
20 |
-
|
21 |
-
/**
|
22 |
-
* @var Critical_CSS_State
|
23 |
-
*/
|
24 |
-
private $state;
|
25 |
-
|
26 |
-
public function __construct( $state ) {
|
27 |
-
$this->state = $state;
|
28 |
-
}
|
29 |
-
|
30 |
-
public function request_generate() {
|
31 |
-
$sources = $this->state->get_provider_urls();
|
32 |
-
|
33 |
$client = Boost_API::get_client();
|
34 |
-
$payload = array( 'providers' => $
|
35 |
-
$payload['requestId'] = md5( wp_json_encode( $payload ) );
|
36 |
|
37 |
$this->reset_existing_css();
|
38 |
return $client->post( 'cloud-css', $payload );
|
10 |
namespace Automattic\Jetpack_Boost\Features\Optimizations\Cloud_CSS;
|
11 |
|
12 |
use Automattic\Jetpack_Boost\Lib\Boost_API;
|
|
|
13 |
use Automattic\Jetpack_Boost\Lib\Critical_CSS\Critical_CSS_Storage;
|
14 |
|
15 |
/**
|
16 |
+
* Cloud CSS Request
|
17 |
*/
|
18 |
class Cloud_CSS_Request {
|
19 |
+
public function request_generate( $providers ) {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
20 |
$client = Boost_API::get_client();
|
21 |
+
$payload = array( 'providers' => $providers );
|
22 |
+
$payload['requestId'] = md5( wp_json_encode( $payload ) . time() );
|
23 |
|
24 |
$this->reset_existing_css();
|
25 |
return $client->post( 'cloud-css', $payload );
|
app/features/optimizations/critical-css/CSS_Proxy.php
CHANGED
@@ -40,7 +40,7 @@ class CSS_Proxy {
|
|
40 |
}
|
41 |
|
42 |
// Validate URL and fetch.
|
43 |
-
$proxy_url = filter_var( wp_unslash( $_POST['proxy_url'] ), FILTER_VALIDATE_URL );
|
44 |
if ( ! wp_http_validate_url( $proxy_url ) ) {
|
45 |
die( 'Invalid URL' );
|
46 |
}
|
40 |
}
|
41 |
|
42 |
// Validate URL and fetch.
|
43 |
+
$proxy_url = filter_var( wp_unslash( isset( $_POST['proxy_url'] ) ? $_POST['proxy_url'] : null ), FILTER_VALIDATE_URL );
|
44 |
if ( ! wp_http_validate_url( $proxy_url ) ) {
|
45 |
die( 'Invalid URL' );
|
46 |
}
|
app/features/optimizations/critical-css/Generator.php
CHANGED
@@ -26,13 +26,12 @@ class Generator {
|
|
26 |
|
27 |
public $state;
|
28 |
|
29 |
-
public function __construct() {
|
30 |
-
$this->state = new Critical_CSS_State();
|
31 |
$this->paths = new Source_Providers();
|
32 |
if ( $this->state->is_empty() && ! wp_doing_ajax() && ! wp_doing_cron() ) {
|
33 |
$this->state->create_request( $this->paths->get_providers() );
|
34 |
}
|
35 |
-
|
36 |
}
|
37 |
|
38 |
/**
|
@@ -43,20 +42,22 @@ class Generator {
|
|
43 |
return array( 'status' => Critical_CSS_State::NOT_GENERATED );
|
44 |
}
|
45 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
46 |
if ( $this->state->is_pending() ) {
|
47 |
return array(
|
48 |
'status' => Critical_CSS_State::REQUESTING,
|
49 |
-
'
|
50 |
'success_count' => $this->state->get_providers_success_count(),
|
51 |
'pending_provider_keys' => $this->state->get_provider_urls(),
|
52 |
'provider_success_ratio' => $this->state->get_provider_success_ratios(),
|
53 |
-
|
54 |
-
|
55 |
-
|
56 |
-
if ( $this->state->is_fatal_error() ) {
|
57 |
-
return array(
|
58 |
-
'status' => Critical_CSS_State::FAIL,
|
59 |
-
'status_error' => $this->state->get_state_error(),
|
60 |
);
|
61 |
}
|
62 |
|
@@ -68,12 +69,14 @@ class Generator {
|
|
68 |
|
69 |
return array(
|
70 |
'status' => Critical_CSS_State::SUCCESS,
|
|
|
71 |
'success_count' => $this->state->get_providers_success_count(),
|
72 |
'core_providers' => self::CORE_PROVIDER_KEYS,
|
73 |
'core_providers_status' => $this->state->get_core_providers_status( self::CORE_PROVIDER_KEYS ),
|
74 |
'providers_errors' => $providers_errors,
|
75 |
'provider_key_labels' => $provider_key_labels,
|
76 |
'created' => $this->state->get_created_time(),
|
|
|
77 |
);
|
78 |
}
|
79 |
|
26 |
|
27 |
public $state;
|
28 |
|
29 |
+
public function __construct( $state = 'local' ) {
|
30 |
+
$this->state = new Critical_CSS_State( $state );
|
31 |
$this->paths = new Source_Providers();
|
32 |
if ( $this->state->is_empty() && ! wp_doing_ajax() && ! wp_doing_cron() ) {
|
33 |
$this->state->create_request( $this->paths->get_providers() );
|
34 |
}
|
|
|
35 |
}
|
36 |
|
37 |
/**
|
42 |
return array( 'status' => Critical_CSS_State::NOT_GENERATED );
|
43 |
}
|
44 |
|
45 |
+
if ( $this->state->is_fatal_error() ) {
|
46 |
+
return array(
|
47 |
+
'status' => Critical_CSS_State::FAIL,
|
48 |
+
'status_error' => $this->state->get_state_error(),
|
49 |
+
);
|
50 |
+
}
|
51 |
+
|
52 |
if ( $this->state->is_pending() ) {
|
53 |
return array(
|
54 |
'status' => Critical_CSS_State::REQUESTING,
|
55 |
+
'progress' => $this->state->get_percent_complete(),
|
56 |
'success_count' => $this->state->get_providers_success_count(),
|
57 |
'pending_provider_keys' => $this->state->get_provider_urls(),
|
58 |
'provider_success_ratio' => $this->state->get_provider_success_ratios(),
|
59 |
+
'created' => $this->state->get_created_time(),
|
60 |
+
'updated' => $this->state->get_updated_time(),
|
|
|
|
|
|
|
|
|
|
|
61 |
);
|
62 |
}
|
63 |
|
69 |
|
70 |
return array(
|
71 |
'status' => Critical_CSS_State::SUCCESS,
|
72 |
+
'progress' => $this->state->get_percent_complete(),
|
73 |
'success_count' => $this->state->get_providers_success_count(),
|
74 |
'core_providers' => self::CORE_PROVIDER_KEYS,
|
75 |
'core_providers_status' => $this->state->get_core_providers_status( self::CORE_PROVIDER_KEYS ),
|
76 |
'providers_errors' => $providers_errors,
|
77 |
'provider_key_labels' => $provider_key_labels,
|
78 |
'created' => $this->state->get_created_time(),
|
79 |
+
'updated' => $this->state->get_updated_time(),
|
80 |
);
|
81 |
}
|
82 |
|
app/features/optimizations/render-blocking-js/class-render-blocking-js.php
CHANGED
@@ -81,17 +81,17 @@ class Render_Blocking_JS implements Feature {
|
|
81 |
}
|
82 |
|
83 |
// Disable in robots.txt.
|
84 |
-
if ( strpos( home_url( $_SERVER['REQUEST_URI'] ), 'robots.txt' ) !== false ) {
|
85 |
return;
|
86 |
}
|
87 |
|
88 |
// Disable in other possible AJAX requests setting cors related header.
|
89 |
-
if ( isset( $_SERVER['HTTP_SEC_FETCH_MODE'] ) && 'cors' === strtolower( $_SERVER['HTTP_SEC_FETCH_MODE'] ) ) {
|
90 |
return;
|
91 |
}
|
92 |
|
93 |
// Disable in other possible AJAX requests setting XHR related header.
|
94 |
-
if ( isset( $_SERVER['HTTP_X_REQUESTED_WITH'] ) && 'xmlhttprequest' === strtolower( $_SERVER['HTTP_X_REQUESTED_WITH'] ) ) {
|
95 |
return;
|
96 |
}
|
97 |
|
@@ -99,9 +99,11 @@ class Render_Blocking_JS implements Feature {
|
|
99 |
// in accordance with sitemap protocol).
|
100 |
if ( isset( $_SERVER['REQUEST_URI'] ) &&
|
101 |
(
|
|
|
102 |
false !== strpos( $_SERVER['REQUEST_URI'], '.xsl' ) ||
|
103 |
false !== strpos( $_SERVER['REQUEST_URI'], 'sitemap-stylesheet=index' ) ||
|
104 |
false !== strpos( $_SERVER['REQUEST_URI'], 'sitemap-stylesheet=sitemap' )
|
|
|
105 |
) ) {
|
106 |
return;
|
107 |
}
|
@@ -148,7 +150,7 @@ class Render_Blocking_JS implements Feature {
|
|
148 |
* @return array Parts of the buffer.
|
149 |
*/
|
150 |
public function handle_output_stream( $buffer_start, $buffer_end ) {
|
151 |
-
$joint_buffer = $this->
|
152 |
$script_tags = $this->get_script_tags( $joint_buffer );
|
153 |
|
154 |
if ( ! $script_tags ) {
|
@@ -196,17 +198,25 @@ class Render_Blocking_JS implements Feature {
|
|
196 |
}
|
197 |
|
198 |
/**
|
199 |
-
* Adds the ignore attribute to scripts
|
200 |
*
|
201 |
* @param string $buffer Captured piece of output buffer.
|
202 |
*
|
203 |
* @return string
|
204 |
*/
|
205 |
-
protected function
|
206 |
-
|
|
|
207 |
'~<!--.*?-->~si',
|
208 |
-
|
209 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
210 |
},
|
211 |
$buffer
|
212 |
);
|
81 |
}
|
82 |
|
83 |
// Disable in robots.txt.
|
84 |
+
if ( isset( $_SERVER['REQUEST_URI'] ) && strpos( home_url( wp_unslash( $_SERVER['REQUEST_URI'] ) ), 'robots.txt' ) !== false ) { // phpcs:ignore WordPress.Security.ValidatedSanitizedInput.InputNotSanitized -- This is validating.
|
85 |
return;
|
86 |
}
|
87 |
|
88 |
// Disable in other possible AJAX requests setting cors related header.
|
89 |
+
if ( isset( $_SERVER['HTTP_SEC_FETCH_MODE'] ) && 'cors' === strtolower( $_SERVER['HTTP_SEC_FETCH_MODE'] ) ) { // phpcs:ignore WordPress.Security.ValidatedSanitizedInput -- This is validating.
|
90 |
return;
|
91 |
}
|
92 |
|
93 |
// Disable in other possible AJAX requests setting XHR related header.
|
94 |
+
if ( isset( $_SERVER['HTTP_X_REQUESTED_WITH'] ) && 'xmlhttprequest' === strtolower( $_SERVER['HTTP_X_REQUESTED_WITH'] ) ) { // phpcs:ignore WordPress.Security.ValidatedSanitizedInput -- This is validating.
|
95 |
return;
|
96 |
}
|
97 |
|
99 |
// in accordance with sitemap protocol).
|
100 |
if ( isset( $_SERVER['REQUEST_URI'] ) &&
|
101 |
(
|
102 |
+
// phpcs:disable WordPress.Security.ValidatedSanitizedInput -- This is validating.
|
103 |
false !== strpos( $_SERVER['REQUEST_URI'], '.xsl' ) ||
|
104 |
false !== strpos( $_SERVER['REQUEST_URI'], 'sitemap-stylesheet=index' ) ||
|
105 |
false !== strpos( $_SERVER['REQUEST_URI'], 'sitemap-stylesheet=sitemap' )
|
106 |
+
// phpcs:enable WordPress.Security.ValidatedSanitizedInput
|
107 |
) ) {
|
108 |
return;
|
109 |
}
|
150 |
* @return array Parts of the buffer.
|
151 |
*/
|
152 |
public function handle_output_stream( $buffer_start, $buffer_end ) {
|
153 |
+
$joint_buffer = $this->ignore_exclusion_scripts( $buffer_start . $buffer_end );
|
154 |
$script_tags = $this->get_script_tags( $joint_buffer );
|
155 |
|
156 |
if ( ! $script_tags ) {
|
198 |
}
|
199 |
|
200 |
/**
|
201 |
+
* Adds the ignore attribute to scripts in the exclusion list.
|
202 |
*
|
203 |
* @param string $buffer Captured piece of output buffer.
|
204 |
*
|
205 |
* @return string
|
206 |
*/
|
207 |
+
protected function ignore_exclusion_scripts( $buffer ) {
|
208 |
+
$exclusions = array(
|
209 |
+
// Scripts inside HTML comments.
|
210 |
'~<!--.*?-->~si',
|
211 |
+
|
212 |
+
// Scripts with application/json type
|
213 |
+
'~<script.*type=(?<q>["\']*)application/json\k<q>.*>.*</script>~si',
|
214 |
+
);
|
215 |
+
|
216 |
+
return preg_replace_callback(
|
217 |
+
$exclusions,
|
218 |
+
function ( $script_match ) {
|
219 |
+
return str_replace( '<script', sprintf( '<script %s="%s"', esc_html( $this->ignore_attribute ), esc_attr( $this->ignore_value ) ), $script_match[0] );
|
220 |
},
|
221 |
$buffer
|
222 |
);
|
app/features/speed-score/Speed_Score.php
CHANGED
@@ -16,12 +16,14 @@ use Automattic\Jetpack_Boost\Lib\Utils;
|
|
16 |
* Class Speed_Score
|
17 |
*/
|
18 |
class Speed_Score {
|
19 |
-
|
20 |
public function __construct( Optimizations $modules ) {
|
21 |
$this->modules = $modules;
|
22 |
|
23 |
add_action( 'rest_api_init', array( $this, 'register_rest_routes' ) );
|
24 |
add_action( 'jetpack_boost_deactivate', array( $this, 'clear_speed_score_request_cache' ) );
|
|
|
|
|
|
|
25 |
}
|
26 |
|
27 |
/**
|
@@ -174,19 +176,13 @@ class Speed_Score {
|
|
174 |
|
175 |
$url_no_boost = $this->get_boost_modules_disabled_url( $url );
|
176 |
|
177 |
-
$history
|
178 |
-
$
|
179 |
-
$score_request = $this->get_score_request_by_url( $url_no_boost );
|
180 |
-
|
181 |
if (
|
182 |
// If there isn't already a pending request.
|
183 |
( empty( $score_request ) || ! $score_request->is_pending() )
|
184 |
&& $this->modules->have_enabled_modules()
|
185 |
-
&& (
|
186 |
-
null === $latest_history
|
187 |
-
|| $latest_history['timestamp'] < strtotime( '- 24 hours' ) // Refetch if it is older than a day.
|
188 |
-
|| wp_get_theme()->get( 'Name' ) !== $latest_history['theme'] // Refetch if then theme was changed.
|
189 |
-
)
|
190 |
) {
|
191 |
$score_request = new Speed_Score_Request( $url_no_boost ); // Dispatch a new speed score request to measure score without boost.
|
192 |
$score_request->store( 3600 ); // Keep the request for 1 hour even if no one access the results. The value is persisted for 1 hour in wp.com from initial request.
|
@@ -263,13 +259,12 @@ class Speed_Score {
|
|
263 |
'noBoost' => null,
|
264 |
);
|
265 |
|
266 |
-
// Only include noBoost scores if at least one
|
267 |
-
|
268 |
-
if ( ! empty( $this->modules->available_modules() ) ) {
|
269 |
$response['scores']['noBoost'] = $history_no_boost->latest_scores();
|
270 |
}
|
271 |
|
272 |
-
$response['scores']['isStale'] =
|
273 |
|
274 |
} else {
|
275 |
// If either request ended up in error, we can just return the one with error so front-end can take action. The relevent url is available on the serialized object.
|
16 |
* Class Speed_Score
|
17 |
*/
|
18 |
class Speed_Score {
|
|
|
19 |
public function __construct( Optimizations $modules ) {
|
20 |
$this->modules = $modules;
|
21 |
|
22 |
add_action( 'rest_api_init', array( $this, 'register_rest_routes' ) );
|
23 |
add_action( 'jetpack_boost_deactivate', array( $this, 'clear_speed_score_request_cache' ) );
|
24 |
+
|
25 |
+
add_action( 'handle_environment_change', array( Speed_Score_History::class, 'mark_stale' ) );
|
26 |
+
add_action( 'jetpack_boost_deactivate', array( Speed_Score_History::class, 'mark_stale' ) );
|
27 |
}
|
28 |
|
29 |
/**
|
176 |
|
177 |
$url_no_boost = $this->get_boost_modules_disabled_url( $url );
|
178 |
|
179 |
+
$history = new Speed_Score_History( $url_no_boost );
|
180 |
+
$score_request = $this->get_score_request_by_url( $url_no_boost );
|
|
|
|
|
181 |
if (
|
182 |
// If there isn't already a pending request.
|
183 |
( empty( $score_request ) || ! $score_request->is_pending() )
|
184 |
&& $this->modules->have_enabled_modules()
|
185 |
+
&& $history->is_stale()
|
|
|
|
|
|
|
|
|
186 |
) {
|
187 |
$score_request = new Speed_Score_Request( $url_no_boost ); // Dispatch a new speed score request to measure score without boost.
|
188 |
$score_request->store( 3600 ); // Keep the request for 1 hour even if no one access the results. The value is persisted for 1 hour in wp.com from initial request.
|
259 |
'noBoost' => null,
|
260 |
);
|
261 |
|
262 |
+
// Only include noBoost scores if at least one module is enabled.
|
263 |
+
if ( $this->modules->have_enabled_modules() ) {
|
|
|
264 |
$response['scores']['noBoost'] = $history_no_boost->latest_scores();
|
265 |
}
|
266 |
|
267 |
+
$response['scores']['isStale'] = $history->is_stale();
|
268 |
|
269 |
} else {
|
270 |
// If either request ended up in error, we can just return the one with error so front-end can take action. The relevent url is available on the serialized object.
|
app/features/speed-score/Speed_Score_History.php
CHANGED
@@ -8,13 +8,16 @@
|
|
8 |
|
9 |
namespace Automattic\Jetpack_Boost\Features\Speed_Score;
|
10 |
|
|
|
|
|
11 |
/**
|
12 |
* Class Speed_Score_History
|
13 |
*
|
14 |
* @package Automattic\Jetpack_Boost\Lib
|
15 |
*/
|
16 |
class Speed_Score_History {
|
17 |
-
const OPTION_PREFIX
|
|
|
18 |
|
19 |
/**
|
20 |
* Limit the number of recent records to keep.
|
@@ -97,6 +100,42 @@ class Speed_Score_History {
|
|
97 |
return null;
|
98 |
}
|
99 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
100 |
/**
|
101 |
* Record a new history entry for speed scores.
|
102 |
*
|
@@ -105,6 +144,6 @@ class Speed_Score_History {
|
|
105 |
public function push( $entry ) {
|
106 |
$this->entries[] = $entry;
|
107 |
$this->entries = array_slice( $this->entries, - static::LIMIT );
|
108 |
-
update_option( $this->get_option_name(), $this->entries );
|
109 |
}
|
110 |
}
|
8 |
|
9 |
namespace Automattic\Jetpack_Boost\Features\Speed_Score;
|
10 |
|
11 |
+
use Automattic\Jetpack_Boost\Lib\Transient;
|
12 |
+
|
13 |
/**
|
14 |
* Class Speed_Score_History
|
15 |
*
|
16 |
* @package Automattic\Jetpack_Boost\Lib
|
17 |
*/
|
18 |
class Speed_Score_History {
|
19 |
+
const OPTION_PREFIX = 'jetpack_boost_speed_score_history_';
|
20 |
+
const STALE_TRANSIENT_KEY = 'speed_score_stale_marker';
|
21 |
|
22 |
/**
|
23 |
* Limit the number of recent records to keep.
|
100 |
return null;
|
101 |
}
|
102 |
|
103 |
+
/**
|
104 |
+
* Get a timestamp that marks previous history stale.
|
105 |
+
*
|
106 |
+
* All speed score before this timestamp are considered stale.
|
107 |
+
*
|
108 |
+
* @return array
|
109 |
+
*/
|
110 |
+
public static function get_stale_timestamp() {
|
111 |
+
$last_stale_marker = Transient::get( static::STALE_TRANSIENT_KEY, 0 );
|
112 |
+
|
113 |
+
// Any score that is older than 24 hours or before the last stale marker is considered stale.
|
114 |
+
return max( $last_stale_marker, time() - DAY_IN_SECONDS );
|
115 |
+
}
|
116 |
+
|
117 |
+
/**
|
118 |
+
* Mark previous speed score as stale.
|
119 |
+
*
|
120 |
+
* If a there were significant changes to the site, we want to mark prior speed scores as stale.
|
121 |
+
*/
|
122 |
+
public static function mark_stale() {
|
123 |
+
Transient::set( static::STALE_TRANSIENT_KEY, time() );
|
124 |
+
}
|
125 |
+
|
126 |
+
/**
|
127 |
+
* Check if the last item in history is stale.
|
128 |
+
*/
|
129 |
+
public function is_stale() {
|
130 |
+
$last_entry = $this->latest();
|
131 |
+
|
132 |
+
if ( ! $last_entry ) {
|
133 |
+
return true;
|
134 |
+
}
|
135 |
+
|
136 |
+
return $last_entry['timestamp'] < self::get_stale_timestamp();
|
137 |
+
}
|
138 |
+
|
139 |
/**
|
140 |
* Record a new history entry for speed scores.
|
141 |
*
|
144 |
public function push( $entry ) {
|
145 |
$this->entries[] = $entry;
|
146 |
$this->entries = array_slice( $this->entries, - static::LIMIT );
|
147 |
+
update_option( $this->get_option_name(), $this->entries, false );
|
148 |
}
|
149 |
}
|
app/features/speed-score/Speed_Score_Request.php
CHANGED
@@ -78,7 +78,7 @@ class Speed_Score_Request extends Cacheable {
|
|
78 |
|
79 |
$this->url = $url;
|
80 |
$this->active_modules = $active_modules;
|
81 |
-
$this->created =
|
82 |
$this->status = $status;
|
83 |
$this->error = $error;
|
84 |
$this->retry_count = 0;
|
78 |
|
79 |
$this->url = $url;
|
80 |
$this->active_modules = $active_modules;
|
81 |
+
$this->created = $created === null ? microtime( true ) : $created;
|
82 |
$this->status = $status;
|
83 |
$this->error = $error;
|
84 |
$this->retry_count = 0;
|
app/lib/Boost_API.php
CHANGED
@@ -24,4 +24,13 @@ class Boost_API {
|
|
24 |
}
|
25 |
return self::$api_client;
|
26 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
27 |
}
|
24 |
}
|
25 |
return self::$api_client;
|
26 |
}
|
27 |
+
|
28 |
+
public static function get( $path, $args = array() ) {
|
29 |
+
return self::get_client()->get( $path, $args );
|
30 |
+
}
|
31 |
+
|
32 |
+
public static function post( $path, $payload = array() ) {
|
33 |
+
return self::get_client()->post( $path, $payload );
|
34 |
+
}
|
35 |
+
|
36 |
}
|
app/lib/Premium_Features.php
ADDED
@@ -0,0 +1,36 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
namespace Automattic\Jetpack_Boost\Lib;
|
4 |
+
|
5 |
+
class Premium_Features {
|
6 |
+
|
7 |
+
const CLOUD_CSS = 'cloud-critical-css';
|
8 |
+
const PRIORITY_SUPPORT = 'support';
|
9 |
+
|
10 |
+
const TRANSIENT_KEY = 'premium_features';
|
11 |
+
|
12 |
+
public static function has_feature( $feature ) {
|
13 |
+
$features = self::get_features();
|
14 |
+
$result = in_array( $feature, $features, true );
|
15 |
+
|
16 |
+
return apply_filters( "jetpack_boost_has_feature_$feature", $result );
|
17 |
+
}
|
18 |
+
|
19 |
+
public static function get_features() {
|
20 |
+
$features = Transient::get( self::TRANSIENT_KEY, array() );
|
21 |
+
|
22 |
+
if ( empty( $features ) ) {
|
23 |
+
$features = Boost_API::get( 'features' );
|
24 |
+
if ( ! is_array( $features ) ) {
|
25 |
+
$features = array();
|
26 |
+
}
|
27 |
+
Transient::set( self::TRANSIENT_KEY, $features, 3 * DAY_IN_SECONDS );
|
28 |
+
}
|
29 |
+
|
30 |
+
return $features;
|
31 |
+
}
|
32 |
+
|
33 |
+
public static function clear_cache() {
|
34 |
+
Transient::delete( self::TRANSIENT_KEY );
|
35 |
+
}
|
36 |
+
}
|
app/lib/Premium_Pricing.php
ADDED
@@ -0,0 +1,31 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
namespace Automattic\Jetpack_Boost\Lib;
|
4 |
+
|
5 |
+
use Automattic\Jetpack\My_Jetpack\Wpcom_Products;
|
6 |
+
|
7 |
+
class Premium_Pricing {
|
8 |
+
const PRODUCT_SLUG_BASE = 'jetpack_boost';
|
9 |
+
|
10 |
+
public static function init() {
|
11 |
+
add_filter( 'jetpack_boost_js_constants', array( static::class, 'add_js_constants' ) );
|
12 |
+
}
|
13 |
+
|
14 |
+
public static function add_js_constants( $constants ) {
|
15 |
+
$constants['pricing'] = array();
|
16 |
+
$yearly_pricing_slug = self::PRODUCT_SLUG_BASE . '_yearly';
|
17 |
+
$yearly_pricing = Wpcom_Products::get_product_pricing( $yearly_pricing_slug );
|
18 |
+
|
19 |
+
if ( empty( $yearly_pricing ) ) {
|
20 |
+
Analytics::record_user_event( 'upgrade_price_missing', array( 'error_message' => 'Missing pricing information on benefits interstitial page.' ) );
|
21 |
+
return $constants;
|
22 |
+
}
|
23 |
+
|
24 |
+
$constants['pricing']['yearly'] = array(
|
25 |
+
'priceBefore' => $yearly_pricing['full_price'],
|
26 |
+
'priceAfter' => $yearly_pricing['discount_price'],
|
27 |
+
'currencyCode' => $yearly_pricing['currency_code'],
|
28 |
+
);
|
29 |
+
return $constants;
|
30 |
+
}
|
31 |
+
}
|
app/lib/WPCOM_Boost_API_Client.php
CHANGED
@@ -17,6 +17,13 @@ class WPCOM_Boost_API_Client implements Boost_API_Client {
|
|
17 |
);
|
18 |
}
|
19 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
20 |
private function get_api_path( $path ) {
|
21 |
$blog_id = (int) \Jetpack_Options::get_option( 'id' );
|
22 |
|
17 |
);
|
18 |
}
|
19 |
|
20 |
+
public function get( $path, $query = array() ) {
|
21 |
+
return Utils::send_wpcom_request(
|
22 |
+
'GET',
|
23 |
+
add_query_arg( $query, $this->get_api_path( $path ) )
|
24 |
+
);
|
25 |
+
}
|
26 |
+
|
27 |
private function get_api_path( $path ) {
|
28 |
$blog_id = (int) \Jetpack_Options::get_option( 'id' );
|
29 |
|
app/lib/class-connection.php
CHANGED
@@ -68,8 +68,7 @@ class Connection {
|
|
68 |
* Deactivate the connection on plugin disconnect.
|
69 |
*/
|
70 |
public function deactivate_disconnect() {
|
71 |
-
$this->manager->
|
72 |
-
$this->manager->delete_all_connection_tokens();
|
73 |
}
|
74 |
|
75 |
/**
|
@@ -127,7 +126,7 @@ class Connection {
|
|
127 |
$is_connected = $this->manager->is_registered();
|
128 |
}
|
129 |
|
130 |
-
return $is_connected
|
131 |
}
|
132 |
|
133 |
/**
|
@@ -136,8 +135,6 @@ class Connection {
|
|
136 |
* @return true|\WP_Error The error object.
|
137 |
*/
|
138 |
public function register() {
|
139 |
-
$this->manager->enable_plugin();
|
140 |
-
|
141 |
if ( $this->is_connected() ) {
|
142 |
Analytics::record_user_event( 'connect_site' );
|
143 |
|
@@ -164,24 +161,6 @@ class Connection {
|
|
164 |
|
165 |
$this->manager->remove_connection();
|
166 |
|
167 |
-
// @todo: implement clearing of IDC options
|
168 |
-
// Jetpack_IDC::clear_all_idc_options();
|
169 |
-
|
170 |
-
// @todo: implement check of updating activated state?
|
171 |
-
// if ( $update_activated_state ) {
|
172 |
-
// Jetpack_Options::update_option( 'activated', 4 );
|
173 |
-
// }
|
174 |
-
|
175 |
-
// @todo: implement check of unique connection increment/decrement
|
176 |
-
// if ( $jetpack_unique_connection = Jetpack_Options::get_option( 'unique_connection' ) ) {
|
177 |
-
// ...
|
178 |
-
// }
|
179 |
-
|
180 |
-
// @todo: Delete all the sync related data. Since it could be taking up space.
|
181 |
-
// Sender::get_instance()->uninstall();
|
182 |
-
|
183 |
-
// @todo: Disable the Heartbeat cron
|
184 |
-
// Jetpack_Heartbeat::init()->deactivate();
|
185 |
return true;
|
186 |
}
|
187 |
|
68 |
* Deactivate the connection on plugin disconnect.
|
69 |
*/
|
70 |
public function deactivate_disconnect() {
|
71 |
+
$this->manager->remove_connection();
|
|
|
72 |
}
|
73 |
|
74 |
/**
|
126 |
$is_connected = $this->manager->is_registered();
|
127 |
}
|
128 |
|
129 |
+
return $is_connected;
|
130 |
}
|
131 |
|
132 |
/**
|
135 |
* @return true|\WP_Error The error object.
|
136 |
*/
|
137 |
public function register() {
|
|
|
|
|
138 |
if ( $this->is_connected() ) {
|
139 |
Analytics::record_user_event( 'connect_site' );
|
140 |
|
161 |
|
162 |
$this->manager->remove_connection();
|
163 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
164 |
return true;
|
165 |
}
|
166 |
|
app/lib/class-environment-change-detector.php
CHANGED
@@ -21,7 +21,7 @@ class Environment_Change_Detector {
|
|
21 |
add_action(
|
22 |
'after_switch_theme',
|
23 |
function () {
|
24 |
-
self::
|
25 |
}
|
26 |
);
|
27 |
// Add more action here handle changes that will require action by the plugin.
|
@@ -32,7 +32,7 @@ class Environment_Change_Detector {
|
|
32 |
*
|
33 |
* @param string $change_type The change type.
|
34 |
*/
|
35 |
-
public static function
|
36 |
-
do_action( '
|
37 |
}
|
38 |
}
|
21 |
add_action(
|
22 |
'after_switch_theme',
|
23 |
function () {
|
24 |
+
self::handle_environment_change( 'switched_theme' );
|
25 |
}
|
26 |
);
|
27 |
// Add more action here handle changes that will require action by the plugin.
|
32 |
*
|
33 |
* @param string $change_type The change type.
|
34 |
*/
|
35 |
+
public static function handle_environment_change( $change_type ) {
|
36 |
+
do_action( 'handle_environment_change', $change_type );
|
37 |
}
|
38 |
}
|
app/lib/class-url.php
CHANGED
@@ -43,17 +43,19 @@ class Url {
|
|
43 |
$current_url = site_url();
|
44 |
|
45 |
if ( isset( $_SERVER ) && is_array( $_SERVER ) ) {
|
|
|
46 |
$scheme = isset( $_SERVER['HTTPS'] ) && 'on' === $_SERVER['HTTPS'] ? 'https' : 'http';
|
47 |
-
$host = ! empty( $_SERVER['HTTP_HOST'] ) ? $_SERVER['HTTP_HOST'] : null;
|
48 |
-
$path = ! empty( $_SERVER['REQUEST_URI'] ) ? $_SERVER['REQUEST_URI'] : '';
|
49 |
|
50 |
// Support for local plugin development and testing using ngrok.
|
51 |
-
if ( ! empty( $_SERVER['HTTP_X_ORIGINAL_HOST'] ) && false !== strpos( $_SERVER['HTTP_X_ORIGINAL_HOST'], 'ngrok.io' ) ) {
|
52 |
-
$host = $_SERVER['HTTP_X_ORIGINAL_HOST'];
|
53 |
}
|
|
|
54 |
|
55 |
if ( $host ) {
|
56 |
-
$current_url = sprintf( '%s://%s%s', $scheme, $host, $path );
|
57 |
}
|
58 |
}
|
59 |
|
43 |
$current_url = site_url();
|
44 |
|
45 |
if ( isset( $_SERVER ) && is_array( $_SERVER ) ) {
|
46 |
+
// phpcs:disable WordPress.Security.ValidatedSanitizedInput.InputNotSanitized -- Sanitization happens at the end
|
47 |
$scheme = isset( $_SERVER['HTTPS'] ) && 'on' === $_SERVER['HTTPS'] ? 'https' : 'http';
|
48 |
+
$host = ! empty( $_SERVER['HTTP_HOST'] ) ? wp_unslash( $_SERVER['HTTP_HOST'] ) : null;
|
49 |
+
$path = ! empty( $_SERVER['REQUEST_URI'] ) ? wp_unslash( $_SERVER['REQUEST_URI'] ) : '';
|
50 |
|
51 |
// Support for local plugin development and testing using ngrok.
|
52 |
+
if ( ! empty( $_SERVER['HTTP_X_ORIGINAL_HOST'] ) && false !== strpos( $_SERVER['HTTP_X_ORIGINAL_HOST'], 'ngrok.io' ) ) { // phpcs:ignore WordPress.Security.ValidatedSanitizedInput -- This is validating.
|
53 |
+
$host = wp_unslash( $_SERVER['HTTP_X_ORIGINAL_HOST'] );
|
54 |
}
|
55 |
+
// phpcs:enable WordPress.Security.ValidatedSanitizedInput.InputNotSanitized
|
56 |
|
57 |
if ( $host ) {
|
58 |
+
$current_url = esc_url_raw( sprintf( '%s://%s%s', $scheme, $host, $path ) );
|
59 |
}
|
60 |
}
|
61 |
|
app/lib/critical-css/Critical_CSS_Invalidator.php
CHANGED
@@ -6,13 +6,15 @@
|
|
6 |
*/
|
7 |
namespace Automattic\Jetpack_Boost\Lib\Critical_CSS;
|
8 |
|
|
|
|
|
9 |
class Critical_CSS_Invalidator {
|
10 |
/**
|
11 |
* Register hooks.
|
12 |
*/
|
13 |
public static function init() {
|
14 |
add_action( 'jetpack_boost_deactivate', array( __CLASS__, 'clear_data' ) );
|
15 |
-
add_action( '
|
16 |
}
|
17 |
|
18 |
/**
|
@@ -24,6 +26,7 @@ class Critical_CSS_Invalidator {
|
|
24 |
$storage = new Critical_CSS_Storage();
|
25 |
$storage->clear();
|
26 |
Critical_CSS_State::reset();
|
|
|
27 |
}
|
28 |
|
29 |
/**
|
6 |
*/
|
7 |
namespace Automattic\Jetpack_Boost\Lib\Critical_CSS;
|
8 |
|
9 |
+
use Automattic\Jetpack_Boost\Features\Optimizations\Cloud_CSS\Cloud_CSS_Cron;
|
10 |
+
|
11 |
class Critical_CSS_Invalidator {
|
12 |
/**
|
13 |
* Register hooks.
|
14 |
*/
|
15 |
public static function init() {
|
16 |
add_action( 'jetpack_boost_deactivate', array( __CLASS__, 'clear_data' ) );
|
17 |
+
add_action( 'handle_environment_change', array( __CLASS__, 'handle_clear_cache' ) );
|
18 |
}
|
19 |
|
20 |
/**
|
26 |
$storage = new Critical_CSS_Storage();
|
27 |
$storage->clear();
|
28 |
Critical_CSS_State::reset();
|
29 |
+
Cloud_CSS_Cron::uninstall();
|
30 |
}
|
31 |
|
32 |
/**
|
app/lib/critical-css/Critical_CSS_State.php
CHANGED
@@ -80,6 +80,18 @@ class Critical_CSS_State {
|
|
80 |
$this->state = $state['state'];
|
81 |
$this->state_error = empty( $state['state_error'] ) ? null : $state['state_error'];
|
82 |
$this->sources = $this->verify_sources( $state['sources'] );
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
83 |
}
|
84 |
|
85 |
private function get_state_transient() {
|
@@ -95,37 +107,17 @@ class Critical_CSS_State {
|
|
95 |
);
|
96 |
}
|
97 |
|
98 |
-
public function
|
99 |
-
|
100 |
-
|
101 |
-
|
102 |
-
|
103 |
-
|
104 |
-
|
105 |
-
'updated' => $state['updated'],
|
106 |
-
'completed' => $status['completed'],
|
107 |
-
'total' => $status['total'],
|
108 |
-
'pending' => $status['pending'],
|
109 |
-
);
|
110 |
-
}
|
111 |
-
|
112 |
-
private function get_providers_status( $providers ) {
|
113 |
-
$completed = 0;
|
114 |
-
$pending = false;
|
115 |
-
|
116 |
-
foreach ( $providers as $provider ) {
|
117 |
-
if ( self::SUCCESS === $provider['status'] ) {
|
118 |
-
$completed++;
|
119 |
-
} elseif ( self::REQUESTING === $provider['status'] ) {
|
120 |
-
$pending = true;
|
121 |
}
|
122 |
-
}
|
123 |
|
124 |
-
|
125 |
-
|
126 |
-
'completed' => $completed,
|
127 |
-
'pending' => $pending,
|
128 |
-
);
|
129 |
}
|
130 |
|
131 |
/**
|
@@ -185,6 +177,10 @@ class Critical_CSS_State {
|
|
185 |
* @param string $key Provider key.
|
186 |
*/
|
187 |
public function set_source_success( $key ) {
|
|
|
|
|
|
|
|
|
188 |
$this->set_source_status( $key, self::SUCCESS );
|
189 |
}
|
190 |
|
@@ -297,7 +293,11 @@ class Critical_CSS_State {
|
|
297 |
return $sources;
|
298 |
}
|
299 |
|
300 |
-
public function has_pending_provider( $providers ) {
|
|
|
|
|
|
|
|
|
301 |
$state = $this->get_state_transient();
|
302 |
$pending = false;
|
303 |
foreach ( $state['sources'] as $name => $source_state ) {
|
@@ -329,6 +329,11 @@ class Critical_CSS_State {
|
|
329 |
return $this->created;
|
330 |
}
|
331 |
|
|
|
|
|
|
|
|
|
|
|
332 |
/**
|
333 |
* Returns true if all provider keys have finished processing (whether successful or not).
|
334 |
*
|
@@ -403,6 +408,10 @@ class Critical_CSS_State {
|
|
403 |
return $this->collate_column( 'success_ratio' );
|
404 |
}
|
405 |
|
|
|
|
|
|
|
|
|
406 |
/**
|
407 |
* Returns the number of requests that were processed whether there was an error.
|
408 |
*
|
80 |
$this->state = $state['state'];
|
81 |
$this->state_error = empty( $state['state_error'] ) ? null : $state['state_error'];
|
82 |
$this->sources = $this->verify_sources( $state['sources'] );
|
83 |
+
|
84 |
+
$this->check_for_timeout();
|
85 |
+
}
|
86 |
+
|
87 |
+
/**
|
88 |
+
* Check to see if the request is stuck at an unfinished state and mark it as failed if so.
|
89 |
+
* @return void
|
90 |
+
*/
|
91 |
+
private function check_for_timeout() {
|
92 |
+
if ( self::REQUESTING === $this->state && ( microtime( true ) - $this->created ) > HOUR_IN_SECONDS ) {
|
93 |
+
$this->set_as_failed( __( 'Timeout while waiting for Critical CSS from the Boost Service.', 'jetpack-boost' ) );
|
94 |
+
}
|
95 |
}
|
96 |
|
97 |
private function get_state_transient() {
|
107 |
);
|
108 |
}
|
109 |
|
110 |
+
public function maybe_set_status() {
|
111 |
+
if ( $this->get_total_providers_count() === $this->get_processed_providers_count() ) {
|
112 |
+
// Only consider the generation a success if at least one provider was successful
|
113 |
+
if ( $this->get_providers_success_count() > 0 ) {
|
114 |
+
$this->state = self::SUCCESS;
|
115 |
+
} else {
|
116 |
+
$this->state = self::FAIL;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
117 |
}
|
|
|
118 |
|
119 |
+
$this->save();
|
120 |
+
}
|
|
|
|
|
|
|
121 |
}
|
122 |
|
123 |
/**
|
177 |
* @param string $key Provider key.
|
178 |
*/
|
179 |
public function set_source_success( $key ) {
|
180 |
+
// If this success was result of a retry by Cloud_CSS_Cron. This provider may contain error data from the
|
181 |
+
// original attempt. We have to remove that first.
|
182 |
+
$this->sources[ $key ]['error'] = null;
|
183 |
+
|
184 |
$this->set_source_status( $key, self::SUCCESS );
|
185 |
}
|
186 |
|
293 |
return $sources;
|
294 |
}
|
295 |
|
296 |
+
public function has_pending_provider( $providers = array() ) {
|
297 |
+
if ( empty( $providers ) ) {
|
298 |
+
$providers = array_keys( $this->sources );
|
299 |
+
}
|
300 |
+
|
301 |
$state = $this->get_state_transient();
|
302 |
$pending = false;
|
303 |
foreach ( $state['sources'] as $name => $source_state ) {
|
329 |
return $this->created;
|
330 |
}
|
331 |
|
332 |
+
public function get_updated_time() {
|
333 |
+
$state = $this->get_state_transient();
|
334 |
+
return $state['updated'];
|
335 |
+
}
|
336 |
+
|
337 |
/**
|
338 |
* Returns true if all provider keys have finished processing (whether successful or not).
|
339 |
*
|
408 |
return $this->collate_column( 'success_ratio' );
|
409 |
}
|
410 |
|
411 |
+
public function get_total_providers_count() {
|
412 |
+
return count( $this->sources );
|
413 |
+
}
|
414 |
+
|
415 |
/**
|
416 |
* Returns the number of requests that were processed whether there was an error.
|
417 |
*
|
app/rest-api/endpoints/Cloud_CSS_Status.php
CHANGED
@@ -6,7 +6,7 @@
|
|
6 |
*/
|
7 |
namespace Automattic\Jetpack_Boost\REST_API\Endpoints;
|
8 |
|
9 |
-
use Automattic\Jetpack_Boost\
|
10 |
use Automattic\Jetpack_Boost\REST_API\Contracts;
|
11 |
use Automattic\Jetpack_Boost\REST_API\Permissions\Current_User_Admin;
|
12 |
use WP_REST_Server;
|
@@ -23,8 +23,8 @@ class Cloud_CSS_Status implements Contracts\Endpoint {
|
|
23 |
|
24 |
//phpcs:disable VariableAnalysis.CodeAnalysis.VariableAnalysis.UnusedVariable
|
25 |
public function response( $request ) {
|
26 |
-
$
|
27 |
-
return $
|
28 |
}
|
29 |
|
30 |
public function permissions() {
|
6 |
*/
|
7 |
namespace Automattic\Jetpack_Boost\REST_API\Endpoints;
|
8 |
|
9 |
+
use Automattic\Jetpack_Boost\Features\Optimizations\Critical_CSS\Generator;
|
10 |
use Automattic\Jetpack_Boost\REST_API\Contracts;
|
11 |
use Automattic\Jetpack_Boost\REST_API\Permissions\Current_User_Admin;
|
12 |
use WP_REST_Server;
|
23 |
|
24 |
//phpcs:disable VariableAnalysis.CodeAnalysis.VariableAnalysis.UnusedVariable
|
25 |
public function response( $request ) {
|
26 |
+
$generator = new Generator( 'cloud' );
|
27 |
+
return $generator->get_critical_css_status();
|
28 |
}
|
29 |
|
30 |
public function permissions() {
|
app/rest-api/endpoints/Config_State.php
ADDED
@@ -0,0 +1,30 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
namespace Automattic\Jetpack_Boost\REST_API\Endpoints;
|
4 |
+
|
5 |
+
use Automattic\Jetpack_Boost\Admin\Config;
|
6 |
+
use Automattic\Jetpack_Boost\REST_API\Contracts\Endpoint;
|
7 |
+
use Automattic\Jetpack_Boost\REST_API\Permissions\Current_User_Admin;
|
8 |
+
|
9 |
+
class Config_State implements Endpoint {
|
10 |
+
|
11 |
+
public function request_methods() {
|
12 |
+
return \WP_REST_Server::READABLE;
|
13 |
+
}
|
14 |
+
|
15 |
+
// phpcs:disable VariableAnalysis.CodeAnalysis.VariableAnalysis.UnusedVariable
|
16 |
+
public function response( $request ) {
|
17 |
+
$config = new Config();
|
18 |
+
return rest_ensure_response( $config->constants() );
|
19 |
+
}
|
20 |
+
|
21 |
+
public function permissions() {
|
22 |
+
return array(
|
23 |
+
new Current_User_Admin(),
|
24 |
+
);
|
25 |
+
}
|
26 |
+
|
27 |
+
public function name() {
|
28 |
+
return '/configuration';
|
29 |
+
}
|
30 |
+
}
|
app/rest-api/endpoints/Optimization_Status.php
CHANGED
@@ -30,7 +30,7 @@ class Optimization_Status implements Endpoint {
|
|
30 |
$success = $state->update( (bool) $params['status'] );
|
31 |
|
32 |
return rest_ensure_response(
|
33 |
-
$success ? $new_status :
|
34 |
);
|
35 |
}
|
36 |
|
30 |
$success = $state->update( (bool) $params['status'] );
|
31 |
|
32 |
return rest_ensure_response(
|
33 |
+
$success ? $new_status : $state->is_enabled()
|
34 |
);
|
35 |
}
|
36 |
|
app/rest-api/endpoints/Optimizations_Status.php
ADDED
@@ -0,0 +1,30 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
namespace Automattic\Jetpack_Boost\REST_API\Endpoints;
|
4 |
+
|
5 |
+
use Automattic\Jetpack_Boost\Features\Optimizations\Optimizations;
|
6 |
+
use Automattic\Jetpack_Boost\REST_API\Contracts\Endpoint;
|
7 |
+
use Automattic\Jetpack_Boost\REST_API\Permissions\Current_User_Admin;
|
8 |
+
|
9 |
+
class Optimizations_Status implements Endpoint {
|
10 |
+
|
11 |
+
public function request_methods() {
|
12 |
+
return \WP_REST_Server::READABLE;
|
13 |
+
}
|
14 |
+
|
15 |
+
// phpcs:disable VariableAnalysis.CodeAnalysis.VariableAnalysis.UnusedVariable
|
16 |
+
public function response( $request ) {
|
17 |
+
$optimizations = ( new Optimizations() )->get_status();
|
18 |
+
return rest_ensure_response( $optimizations );
|
19 |
+
}
|
20 |
+
|
21 |
+
public function permissions() {
|
22 |
+
return array(
|
23 |
+
new Current_User_Admin(),
|
24 |
+
);
|
25 |
+
}
|
26 |
+
|
27 |
+
public function name() {
|
28 |
+
return '/optimizations/status';
|
29 |
+
}
|
30 |
+
}
|
app/rest-api/endpoints/Update_Cloud_CSS.php
CHANGED
@@ -6,8 +6,7 @@
|
|
6 |
*/
|
7 |
namespace Automattic\Jetpack_Boost\REST_API\Endpoints;
|
8 |
|
9 |
-
use Automattic\Jetpack_Boost\
|
10 |
-
use Automattic\Jetpack_Boost\Lib\Critical_CSS\Critical_CSS_Storage;
|
11 |
use Automattic\Jetpack_Boost\REST_API\Contracts;
|
12 |
use Automattic\Jetpack_Boost\REST_API\Permissions\Signed_With_Blog_Token;
|
13 |
use WP_REST_Server;
|
@@ -23,27 +22,8 @@ class Update_Cloud_CSS implements Contracts\Endpoint {
|
|
23 |
}
|
24 |
|
25 |
public function response( $request ) {
|
26 |
-
$
|
27 |
-
|
28 |
-
try {
|
29 |
-
$request_body = json_decode( $request_body );
|
30 |
-
$providers = $request_body->providers;
|
31 |
-
$state = new Critical_CSS_State( 'cloud' );
|
32 |
-
$storage = new Critical_CSS_Storage();
|
33 |
-
|
34 |
-
foreach ( $providers as $provider => $data ) {
|
35 |
-
if ( $data->success ) {
|
36 |
-
$state->set_source_success( $provider );
|
37 |
-
$storage->store_css( $provider, $data->css );
|
38 |
-
} else {
|
39 |
-
$state->set_source_error( $provider, $data->error );
|
40 |
-
}
|
41 |
-
}
|
42 |
-
|
43 |
-
wp_send_json_success();
|
44 |
-
} catch ( \Exception $e ) {
|
45 |
-
return new \WP_Error( 'invalid_request', $e->getMessage(), array( 'status' => 400 ) );
|
46 |
-
}
|
47 |
}
|
48 |
|
49 |
public function permissions() {
|
6 |
*/
|
7 |
namespace Automattic\Jetpack_Boost\REST_API\Endpoints;
|
8 |
|
9 |
+
use Automattic\Jetpack_Boost\Features\Optimizations\Cloud_CSS\Cloud_CSS;
|
|
|
10 |
use Automattic\Jetpack_Boost\REST_API\Contracts;
|
11 |
use Automattic\Jetpack_Boost\REST_API\Permissions\Signed_With_Blog_Token;
|
12 |
use WP_REST_Server;
|
22 |
}
|
23 |
|
24 |
public function response( $request ) {
|
25 |
+
$feature = new Cloud_CSS();
|
26 |
+
return $feature->update_cloud_css( $request->get_params() );
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
27 |
}
|
28 |
|
29 |
public function permissions() {
|
composer.json
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
"description": "Boost your WordPress site's performance, from the creators of Jetpack",
|
4 |
"type": "library",
|
5 |
"license": "GPL-2.0-or-later",
|
6 |
-
"version": "1.
|
7 |
"authors": [
|
8 |
{
|
9 |
"name": "Automattic, Inc.",
|
@@ -14,20 +14,19 @@
|
|
14 |
"prefer-stable": true,
|
15 |
"require": {
|
16 |
"ext-json": "*",
|
17 |
-
"automattic/jetpack-admin-ui": "^0.2",
|
18 |
"automattic/jetpack-assets": "^1.17",
|
19 |
"automattic/jetpack-autoloader": "^2.11",
|
20 |
"automattic/jetpack-composer-plugin": "^1.1",
|
21 |
-
"automattic/jetpack-config": "^1.
|
22 |
-
"automattic/jetpack-connection": "^1.
|
23 |
"automattic/jetpack-device-detection": "^1.4",
|
24 |
"automattic/jetpack-lazy-images": "^2.1",
|
25 |
-
"automattic/jetpack-my-jetpack": "^
|
26 |
-
"automattic/jetpack-tracking": "^1.14",
|
27 |
"tedivm/jshrink": "1.4.0"
|
28 |
},
|
29 |
"require-dev": {
|
30 |
-
"automattic/jetpack-changelogger": "^3.
|
31 |
"automattic/wordbless": "0.3.1",
|
32 |
"brain/monkey": "2.6.1",
|
33 |
"yoast/phpunit-polyfills": "1.0.3"
|
@@ -69,7 +68,7 @@
|
|
69 |
"platform": {
|
70 |
"ext-intl": "0.0.0"
|
71 |
},
|
72 |
-
"autoloader-suffix": "b1e77e6231d50e7663f84529b6a3dfda_jetpack_boostⓥ
|
73 |
"allow-plugins": {
|
74 |
"roots/wordpress-core-installer": true,
|
75 |
"automattic/jetpack-autoloader": true,
|
3 |
"description": "Boost your WordPress site's performance, from the creators of Jetpack",
|
4 |
"type": "library",
|
5 |
"license": "GPL-2.0-or-later",
|
6 |
+
"version": "1.5.0",
|
7 |
"authors": [
|
8 |
{
|
9 |
"name": "Automattic, Inc.",
|
14 |
"prefer-stable": true,
|
15 |
"require": {
|
16 |
"ext-json": "*",
|
17 |
+
"automattic/jetpack-admin-ui": "^0.2.9",
|
18 |
"automattic/jetpack-assets": "^1.17",
|
19 |
"automattic/jetpack-autoloader": "^2.11",
|
20 |
"automattic/jetpack-composer-plugin": "^1.1",
|
21 |
+
"automattic/jetpack-config": "^1.9",
|
22 |
+
"automattic/jetpack-connection": "^1.41",
|
23 |
"automattic/jetpack-device-detection": "^1.4",
|
24 |
"automattic/jetpack-lazy-images": "^2.1",
|
25 |
+
"automattic/jetpack-my-jetpack": "^1.7",
|
|
|
26 |
"tedivm/jshrink": "1.4.0"
|
27 |
},
|
28 |
"require-dev": {
|
29 |
+
"automattic/jetpack-changelogger": "^3.1",
|
30 |
"automattic/wordbless": "0.3.1",
|
31 |
"brain/monkey": "2.6.1",
|
32 |
"yoast/phpunit-polyfills": "1.0.3"
|
68 |
"platform": {
|
69 |
"ext-intl": "0.0.0"
|
70 |
},
|
71 |
+
"autoloader-suffix": "b1e77e6231d50e7663f84529b6a3dfda_jetpack_boostⓥ1_5_0",
|
72 |
"allow-plugins": {
|
73 |
"roots/wordpress-core-installer": true,
|
74 |
"automattic/jetpack-autoloader": true,
|
jetpack-boost.php
CHANGED
@@ -9,8 +9,8 @@
|
|
9 |
* Plugin Name: Jetpack Boost
|
10 |
* Plugin URI: https://jetpack.com/boost
|
11 |
* Description: Boost your WordPress site's performance, from the creators of Jetpack
|
12 |
-
* Version: 1.
|
13 |
-
* Author: Automattic
|
14 |
* Author URI: https://automattic.com
|
15 |
* License: GPL-2.0+
|
16 |
* License URI: http://www.gnu.org/licenses/gpl-2.0.txt
|
@@ -29,7 +29,7 @@ if ( ! defined( 'WPINC' ) ) {
|
|
29 |
die;
|
30 |
}
|
31 |
|
32 |
-
define( 'JETPACK_BOOST_VERSION', '1.
|
33 |
define( 'JETPACK_BOOST_SLUG', 'jetpack-boost' );
|
34 |
|
35 |
if ( ! defined( 'JETPACK_BOOST_CLIENT_NAME' ) ) {
|
@@ -71,7 +71,7 @@ if ( is_readable( $boost_packages_path ) ) {
|
|
71 |
sprintf(
|
72 |
/* translators: Placeholder is a link to a support document. */
|
73 |
__( 'Your installation of Jetpack Boost is incomplete. If you installed Jetpack Boost from GitHub, please refer to this document to set up your development environment: %1$s', 'jetpack-boost' ),
|
74 |
-
'https://github.com/Automattic/jetpack/blob/
|
75 |
)
|
76 |
);
|
77 |
}
|
@@ -98,7 +98,7 @@ if ( is_readable( $boost_packages_path ) ) {
|
|
98 |
),
|
99 |
)
|
100 |
),
|
101 |
-
'https://github.com/Automattic/jetpack/blob/
|
102 |
);
|
103 |
?>
|
104 |
</p>
|
9 |
* Plugin Name: Jetpack Boost
|
10 |
* Plugin URI: https://jetpack.com/boost
|
11 |
* Description: Boost your WordPress site's performance, from the creators of Jetpack
|
12 |
+
* Version: 1.5.0
|
13 |
+
* Author: Automattic - Website Speed and Performance team
|
14 |
* Author URI: https://automattic.com
|
15 |
* License: GPL-2.0+
|
16 |
* License URI: http://www.gnu.org/licenses/gpl-2.0.txt
|
29 |
die;
|
30 |
}
|
31 |
|
32 |
+
define( 'JETPACK_BOOST_VERSION', '1.5.0' );
|
33 |
define( 'JETPACK_BOOST_SLUG', 'jetpack-boost' );
|
34 |
|
35 |
if ( ! defined( 'JETPACK_BOOST_CLIENT_NAME' ) ) {
|
71 |
sprintf(
|
72 |
/* translators: Placeholder is a link to a support document. */
|
73 |
__( 'Your installation of Jetpack Boost is incomplete. If you installed Jetpack Boost from GitHub, please refer to this document to set up your development environment: %1$s', 'jetpack-boost' ),
|
74 |
+
'https://github.com/Automattic/jetpack/blob/trunk/docs/development-environment.md'
|
75 |
)
|
76 |
);
|
77 |
}
|
98 |
),
|
99 |
)
|
100 |
),
|
101 |
+
'https://github.com/Automattic/jetpack/blob/trunk/docs/development-environment.md#building-your-project'
|
102 |
);
|
103 |
?>
|
104 |
</p>
|
jetpack_vendor/automattic/jetpack-a8c-mc-stats/CHANGELOG.md
CHANGED
@@ -5,6 +5,14 @@ All notable changes to this project will be documented in this file.
|
|
5 |
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
|
6 |
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
7 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
8 |
## [1.4.12] - 2022-01-25
|
9 |
### Changed
|
10 |
- Updated package dependencies.
|
@@ -87,6 +95,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
87 |
|
88 |
- Creates the MC Stats package
|
89 |
|
|
|
|
|
90 |
[1.4.12]: https://github.com/Automattic/jetpack-a8c-mc-stats/compare/v1.4.11...v1.4.12
|
91 |
[1.4.11]: https://github.com/Automattic/jetpack-a8c-mc-stats/compare/v1.4.10...v1.4.11
|
92 |
[1.4.10]: https://github.com/Automattic/jetpack-a8c-mc-stats/compare/v1.4.9...v1.4.10
|
5 |
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
|
6 |
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
7 |
|
8 |
+
## [1.4.14] - 2022-06-21
|
9 |
+
### Changed
|
10 |
+
- Renaming master to trunk.
|
11 |
+
|
12 |
+
## [1.4.13] - 2022-04-26
|
13 |
+
### Changed
|
14 |
+
- Updated package dependencies.
|
15 |
+
|
16 |
## [1.4.12] - 2022-01-25
|
17 |
### Changed
|
18 |
- Updated package dependencies.
|
95 |
|
96 |
- Creates the MC Stats package
|
97 |
|
98 |
+
[1.4.14]: https://github.com/Automattic/jetpack-a8c-mc-stats/compare/v1.4.13...v1.4.14
|
99 |
+
[1.4.13]: https://github.com/Automattic/jetpack-a8c-mc-stats/compare/v1.4.12...v1.4.13
|
100 |
[1.4.12]: https://github.com/Automattic/jetpack-a8c-mc-stats/compare/v1.4.11...v1.4.12
|
101 |
[1.4.11]: https://github.com/Automattic/jetpack-a8c-mc-stats/compare/v1.4.10...v1.4.11
|
102 |
[1.4.10]: https://github.com/Automattic/jetpack-a8c-mc-stats/compare/v1.4.9...v1.4.10
|
jetpack_vendor/automattic/jetpack-a8c-mc-stats/composer.json
CHANGED
@@ -6,7 +6,7 @@
|
|
6 |
"require": {},
|
7 |
"require-dev": {
|
8 |
"yoast/phpunit-polyfills": "1.0.3",
|
9 |
-
"automattic/jetpack-changelogger": "^3.
|
10 |
},
|
11 |
"autoload": {
|
12 |
"classmap": [
|
@@ -24,7 +24,6 @@
|
|
24 |
"@composer phpunit"
|
25 |
]
|
26 |
},
|
27 |
-
"repositories": [],
|
28 |
"minimum-stability": "dev",
|
29 |
"prefer-stable": true,
|
30 |
"extra": {
|
@@ -34,7 +33,7 @@
|
|
34 |
"link-template": "https://github.com/Automattic/jetpack-a8c-mc-stats/compare/v${old}...v${new}"
|
35 |
},
|
36 |
"branch-alias": {
|
37 |
-
"dev-
|
38 |
}
|
39 |
}
|
40 |
}
|
6 |
"require": {},
|
7 |
"require-dev": {
|
8 |
"yoast/phpunit-polyfills": "1.0.3",
|
9 |
+
"automattic/jetpack-changelogger": "^3.1"
|
10 |
},
|
11 |
"autoload": {
|
12 |
"classmap": [
|
24 |
"@composer phpunit"
|
25 |
]
|
26 |
},
|
|
|
27 |
"minimum-stability": "dev",
|
28 |
"prefer-stable": true,
|
29 |
"extra": {
|
33 |
"link-template": "https://github.com/Automattic/jetpack-a8c-mc-stats/compare/v${old}...v${new}"
|
34 |
},
|
35 |
"branch-alias": {
|
36 |
+
"dev-trunk": "1.4.x-dev"
|
37 |
}
|
38 |
}
|
39 |
}
|
jetpack_vendor/automattic/jetpack-admin-ui/CHANGELOG.md
CHANGED
@@ -5,6 +5,18 @@ All notable changes to this project will be documented in this file.
|
|
5 |
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
|
6 |
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
7 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
8 |
## [0.2.6] - 2022-04-05
|
9 |
### Changed
|
10 |
- Updated package dependencies.
|
@@ -52,6 +64,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
52 |
### Fixed
|
53 |
- Fixing menu visibility issues.
|
54 |
|
|
|
|
|
|
|
55 |
[0.2.6]: https://github.com/Automattic/jetpack-admin-ui/compare/0.2.5...0.2.6
|
56 |
[0.2.5]: https://github.com/Automattic/jetpack-admin-ui/compare/0.2.4...0.2.5
|
57 |
[0.2.4]: https://github.com/Automattic/jetpack-admin-ui/compare/0.2.3...0.2.4
|
5 |
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
|
6 |
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
7 |
|
8 |
+
## [0.2.9] - 2022-06-21
|
9 |
+
### Changed
|
10 |
+
- Renaming master to trunk.
|
11 |
+
|
12 |
+
## [0.2.8] - 2022-06-14
|
13 |
+
### Changed
|
14 |
+
- Updated package dependencies.
|
15 |
+
|
16 |
+
## [0.2.7] - 2022-04-26
|
17 |
+
### Changed
|
18 |
+
- Update package.json metadata.
|
19 |
+
|
20 |
## [0.2.6] - 2022-04-05
|
21 |
### Changed
|
22 |
- Updated package dependencies.
|
64 |
### Fixed
|
65 |
- Fixing menu visibility issues.
|
66 |
|
67 |
+
[0.2.9]: https://github.com/Automattic/jetpack-admin-ui/compare/0.2.8...0.2.9
|
68 |
+
[0.2.8]: https://github.com/Automattic/jetpack-admin-ui/compare/0.2.7...0.2.8
|
69 |
+
[0.2.7]: https://github.com/Automattic/jetpack-admin-ui/compare/0.2.6...0.2.7
|
70 |
[0.2.6]: https://github.com/Automattic/jetpack-admin-ui/compare/0.2.5...0.2.6
|
71 |
[0.2.5]: https://github.com/Automattic/jetpack-admin-ui/compare/0.2.4...0.2.5
|
72 |
[0.2.4]: https://github.com/Automattic/jetpack-admin-ui/compare/0.2.3...0.2.4
|
jetpack_vendor/automattic/jetpack-admin-ui/composer.json
CHANGED
@@ -6,7 +6,7 @@
|
|
6 |
"require": {},
|
7 |
"require-dev": {
|
8 |
"yoast/phpunit-polyfills": "1.0.3",
|
9 |
-
"automattic/jetpack-changelogger": "^3.
|
10 |
"automattic/wordbless": "dev-master"
|
11 |
},
|
12 |
"autoload": {
|
@@ -36,7 +36,7 @@
|
|
36 |
"link-template": "https://github.com/Automattic/jetpack-admin-ui/compare/${old}...${new}"
|
37 |
},
|
38 |
"branch-alias": {
|
39 |
-
"dev-
|
40 |
},
|
41 |
"version-constants": {
|
42 |
"::PACKAGE_VERSION": "src/class-admin-menu.php"
|
6 |
"require": {},
|
7 |
"require-dev": {
|
8 |
"yoast/phpunit-polyfills": "1.0.3",
|
9 |
+
"automattic/jetpack-changelogger": "^3.1",
|
10 |
"automattic/wordbless": "dev-master"
|
11 |
},
|
12 |
"autoload": {
|
36 |
"link-template": "https://github.com/Automattic/jetpack-admin-ui/compare/${old}...${new}"
|
37 |
},
|
38 |
"branch-alias": {
|
39 |
+
"dev-trunk": "0.2.x-dev"
|
40 |
},
|
41 |
"version-constants": {
|
42 |
"::PACKAGE_VERSION": "src/class-admin-menu.php"
|
jetpack_vendor/automattic/jetpack-admin-ui/src/class-admin-menu.php
CHANGED
@@ -13,7 +13,7 @@ namespace Automattic\Jetpack\Admin_UI;
|
|
13 |
*/
|
14 |
class Admin_Menu {
|
15 |
|
16 |
-
const PACKAGE_VERSION = '0.2.
|
17 |
|
18 |
/**
|
19 |
* Whether this class has been initialized
|
13 |
*/
|
14 |
class Admin_Menu {
|
15 |
|
16 |
+
const PACKAGE_VERSION = '0.2.9';
|
17 |
|
18 |
/**
|
19 |
* Whether this class has been initialized
|
jetpack_vendor/automattic/jetpack-assets/CHANGELOG.md
CHANGED
@@ -5,6 +5,36 @@ All notable changes to this project will be documented in this file.
|
|
5 |
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
|
6 |
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
7 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
8 |
## [1.17.9] - 2022-04-05
|
9 |
### Changed
|
10 |
- Updated package dependencies.
|
@@ -214,6 +244,14 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
214 |
|
215 |
- Statically access asset tools
|
216 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
217 |
[1.17.9]: https://github.com/Automattic/jetpack-assets/compare/v1.17.8...v1.17.9
|
218 |
[1.17.8]: https://github.com/Automattic/jetpack-assets/compare/v1.17.7...v1.17.8
|
219 |
[1.17.7]: https://github.com/Automattic/jetpack-assets/compare/v1.17.6...v1.17.7
|
5 |
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
|
6 |
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
7 |
|
8 |
+
## [1.17.17] - 2022-06-21
|
9 |
+
### Changed
|
10 |
+
- Renaming master to trunk.
|
11 |
+
|
12 |
+
## [1.17.16] - 2022-06-14
|
13 |
+
|
14 |
+
## [1.17.15] - 2022-06-08
|
15 |
+
### Changed
|
16 |
+
- Reorder JS imports for `import/order` eslint rule. [#24601]
|
17 |
+
|
18 |
+
## [1.17.14] - 2022-05-18
|
19 |
+
### Changed
|
20 |
+
- Updated package dependencies [#24372]
|
21 |
+
|
22 |
+
## [1.17.13] - 2022-05-10
|
23 |
+
### Changed
|
24 |
+
- Updated package dependencies. [#24302]
|
25 |
+
|
26 |
+
## [1.17.12] - 2022-05-04
|
27 |
+
### Added
|
28 |
+
- Add missing JavaScript dependencies, and fix a test. [#24096]
|
29 |
+
|
30 |
+
## [1.17.11] - 2022-04-26
|
31 |
+
### Changed
|
32 |
+
- Updated package dependencies.
|
33 |
+
|
34 |
+
## [1.17.10] - 2022-04-19
|
35 |
+
### Fixed
|
36 |
+
- Assets: Defer the enqueued script instead of its translations
|
37 |
+
|
38 |
## [1.17.9] - 2022-04-05
|
39 |
### Changed
|
40 |
- Updated package dependencies.
|
244 |
|
245 |
- Statically access asset tools
|
246 |
|
247 |
+
[1.17.17]: https://github.com/Automattic/jetpack-assets/compare/v1.17.16...v1.17.17
|
248 |
+
[1.17.16]: https://github.com/Automattic/jetpack-assets/compare/v1.17.15...v1.17.16
|
249 |
+
[1.17.15]: https://github.com/Automattic/jetpack-assets/compare/v1.17.14...v1.17.15
|
250 |
+
[1.17.14]: https://github.com/Automattic/jetpack-assets/compare/v1.17.13...v1.17.14
|
251 |
+
[1.17.13]: https://github.com/Automattic/jetpack-assets/compare/v1.17.12...v1.17.13
|
252 |
+
[1.17.12]: https://github.com/Automattic/jetpack-assets/compare/v1.17.11...v1.17.12
|
253 |
+
[1.17.11]: https://github.com/Automattic/jetpack-assets/compare/v1.17.10...v1.17.11
|
254 |
+
[1.17.10]: https://github.com/Automattic/jetpack-assets/compare/v1.17.9...v1.17.10
|
255 |
[1.17.9]: https://github.com/Automattic/jetpack-assets/compare/v1.17.8...v1.17.9
|
256 |
[1.17.8]: https://github.com/Automattic/jetpack-assets/compare/v1.17.7...v1.17.8
|
257 |
[1.17.7]: https://github.com/Automattic/jetpack-assets/compare/v1.17.6...v1.17.7
|
jetpack_vendor/automattic/jetpack-assets/build/i18n-loader.asset.php
CHANGED
@@ -1 +1 @@
|
|
1 |
-
<?php return array('dependencies' => array('wp-i18n'), 'version' => '
|
1 |
+
<?php return array('dependencies' => array('wp-i18n'), 'version' => 'ee939953aa2115e2ca59');
|
jetpack_vendor/automattic/jetpack-assets/build/i18n-loader.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
|
1 |
+
(()=>{var e={356:function(e){e.exports=function(e){function r(t){if(n[t])return n[t].exports;var o=n[t]={i:t,l:!1,exports:{}};return e[t].call(o.exports,o,o.exports,r),o.l=!0,o.exports}var n={};return r.m=e,r.c=n,r.i=function(e){return e},r.d=function(e,n,t){r.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:t})},r.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(n,"a",n),n},r.o=function(e,r){return Object.prototype.hasOwnProperty.call(e,r)},r.p="",r(r.s=1)}([function(e,r,n){"use strict";function t(e,r){if(!(e instanceof r))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(r,"__esModule",{value:!0});var o=function(){function e(e,r){for(var n=0;n<r.length;n++){var t=r[n];t.enumerable=t.enumerable||!1,t.configurable=!0,"value"in t&&(t.writable=!0),Object.defineProperty(e,t.key,t)}}return function(r,n,t){return n&&e(r.prototype,n),t&&e(r,t),r}}(),a=function(){function e(){t(this,e)}return o(e,null,[{key:"hash",value:function(r){return e.hex(e.md51(r))}},{key:"md5cycle",value:function(r,n){var t=r[0],o=r[1],a=r[2],i=r[3];t=e.ff(t,o,a,i,n[0],7,-680876936),i=e.ff(i,t,o,a,n[1],12,-389564586),a=e.ff(a,i,t,o,n[2],17,606105819),o=e.ff(o,a,i,t,n[3],22,-1044525330),t=e.ff(t,o,a,i,n[4],7,-176418897),i=e.ff(i,t,o,a,n[5],12,1200080426),a=e.ff(a,i,t,o,n[6],17,-1473231341),o=e.ff(o,a,i,t,n[7],22,-45705983),t=e.ff(t,o,a,i,n[8],7,1770035416),i=e.ff(i,t,o,a,n[9],12,-1958414417),a=e.ff(a,i,t,o,n[10],17,-42063),o=e.ff(o,a,i,t,n[11],22,-1990404162),t=e.ff(t,o,a,i,n[12],7,1804603682),i=e.ff(i,t,o,a,n[13],12,-40341101),a=e.ff(a,i,t,o,n[14],17,-1502002290),o=e.ff(o,a,i,t,n[15],22,1236535329),t=e.gg(t,o,a,i,n[1],5,-165796510),i=e.gg(i,t,o,a,n[6],9,-1069501632),a=e.gg(a,i,t,o,n[11],14,643717713),o=e.gg(o,a,i,t,n[0],20,-373897302),t=e.gg(t,o,a,i,n[5],5,-701558691),i=e.gg(i,t,o,a,n[10],9,38016083),a=e.gg(a,i,t,o,n[15],14,-660478335),o=e.gg(o,a,i,t,n[4],20,-405537848),t=e.gg(t,o,a,i,n[9],5,568446438),i=e.gg(i,t,o,a,n[14],9,-1019803690),a=e.gg(a,i,t,o,n[3],14,-187363961),o=e.gg(o,a,i,t,n[8],20,1163531501),t=e.gg(t,o,a,i,n[13],5,-1444681467),i=e.gg(i,t,o,a,n[2],9,-51403784),a=e.gg(a,i,t,o,n[7],14,1735328473),o=e.gg(o,a,i,t,n[12],20,-1926607734),t=e.hh(t,o,a,i,n[5],4,-378558),i=e.hh(i,t,o,a,n[8],11,-2022574463),a=e.hh(a,i,t,o,n[11],16,1839030562),o=e.hh(o,a,i,t,n[14],23,-35309556),t=e.hh(t,o,a,i,n[1],4,-1530992060),i=e.hh(i,t,o,a,n[4],11,1272893353),a=e.hh(a,i,t,o,n[7],16,-155497632),o=e.hh(o,a,i,t,n[10],23,-1094730640),t=e.hh(t,o,a,i,n[13],4,681279174),i=e.hh(i,t,o,a,n[0],11,-358537222),a=e.hh(a,i,t,o,n[3],16,-722521979),o=e.hh(o,a,i,t,n[6],23,76029189),t=e.hh(t,o,a,i,n[9],4,-640364487),i=e.hh(i,t,o,a,n[12],11,-421815835),a=e.hh(a,i,t,o,n[15],16,530742520),o=e.hh(o,a,i,t,n[2],23,-995338651),t=e.ii(t,o,a,i,n[0],6,-198630844),i=e.ii(i,t,o,a,n[7],10,1126891415),a=e.ii(a,i,t,o,n[14],15,-1416354905),o=e.ii(o,a,i,t,n[5],21,-57434055),t=e.ii(t,o,a,i,n[12],6,1700485571),i=e.ii(i,t,o,a,n[3],10,-1894986606),a=e.ii(a,i,t,o,n[10],15,-1051523),o=e.ii(o,a,i,t,n[1],21,-2054922799),t=e.ii(t,o,a,i,n[8],6,1873313359),i=e.ii(i,t,o,a,n[15],10,-30611744),a=e.ii(a,i,t,o,n[6],15,-1560198380),o=e.ii(o,a,i,t,n[13],21,1309151649),t=e.ii(t,o,a,i,n[4],6,-145523070),i=e.ii(i,t,o,a,n[11],10,-1120210379),a=e.ii(a,i,t,o,n[2],15,718787259),o=e.ii(o,a,i,t,n[9],21,-343485551),r[0]=t+r[0]&4294967295,r[1]=o+r[1]&4294967295,r[2]=a+r[2]&4294967295,r[3]=i+r[3]&4294967295}},{key:"cmn",value:function(e,r,n,t,o,a){return((r=(r+e&4294967295)+(t+a&4294967295)&4294967295)<<o|r>>>32-o)+n&4294967295}},{key:"ff",value:function(r,n,t,o,a,i,f){return e.cmn(n&t|~n&o,r,n,a,i,f)}},{key:"gg",value:function(r,n,t,o,a,i,f){return e.cmn(n&o|t&~o,r,n,a,i,f)}},{key:"hh",value:function(r,n,t,o,a,i,f){return e.cmn(n^t^o,r,n,a,i,f)}},{key:"ii",value:function(r,n,t,o,a,i,f){return e.cmn(t^(n|~o),r,n,a,i,f)}},{key:"md51",value:function(r){for(var n=r.length,t=[1732584193,-271733879,-1732584194,271733878],o=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],a=0,i=64;i<=n;i+=64)e.md5cycle(t,e.md5blk(r.substring(i-64,i)));for(r=r.substring(i-64),i=0,a=r.length;i<a;i++)o[i>>2]|=r.charCodeAt(i)<<(i%4<<3);if(o[i>>2]|=128<<(i%4<<3),i>55)for(e.md5cycle(t,o),i=0;i<16;i++)o[i]=0;return o[14]=8*n,e.md5cycle(t,o),t}},{key:"md5blk",value:function(e){for(var r=[],n=0;n<64;n+=4)r[n>>2]=e.charCodeAt(n)+(e.charCodeAt(n+1)<<8)+(e.charCodeAt(n+2)<<16)+(e.charCodeAt(n+3)<<24);return r}},{key:"rhex",value:function(r){var n="";return n+=e.hexArray[r>>4&15]+e.hexArray[r>>0&15],n+=e.hexArray[r>>12&15]+e.hexArray[r>>8&15],(n+=e.hexArray[r>>20&15]+e.hexArray[r>>16&15])+(e.hexArray[r>>28&15]+e.hexArray[r>>24&15])}},{key:"hex",value:function(r){for(var n=r.length,t=0;t<n;t++)r[t]=e.rhex(r[t]);return r.join("")}}]),e}();a.hexArray=["0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f"],r.default=a},function(e,r,n){e.exports=n(0)}])},618:(e,r,n)=>{const t=n(736),{default:o}=n(356),a={plugin:"plugins/",theme:"themes/",core:""},i=(e,r)=>Object.prototype.hasOwnProperty.call(e,r);e.exports={state:{baseUrl:null,locale:null,domainMap:{},domainPaths:{}},async downloadI18n(e,r,n){const f=this.state;if(!f||"string"!=typeof f.baseUrl)throw new Error("wp.jpI18nLoader.state is not set");if("en_US"===f.locale)return;if("undefined"==typeof fetch)throw new Error("Fetch API is not available.");const u=i(f.domainPaths,r)?f.domainPaths[r]:"";let c,h;const l=e.indexOf("?");l>=0?(c=o.hash(u+e.substring(0,l)),h=e.substring(l)):(c=o.hash(u+e),h="");const s=i(f.domainMap,r)?f.domainMap[r]:a[n]+r,g=await fetch(`${f.baseUrl}${s}-${f.locale}-${c}.json${h}`);if(!g.ok)throw new Error(`HTTP request failed: ${g.status} ${g.statusText}`);const d=await g.json(),p=i(d.locale_data,r)?d.locale_data[r]:d.locale_data.messages;p[""].domain=r,t.setLocaleData(p,r)}}},736:e=>{"use strict";e.exports=window.wp.i18n}},r={};var n=function n(t){var o=r[t];if(void 0!==o)return o.exports;var a=r[t]={exports:{}};return e[t].call(a.exports,a,a.exports,n),a.exports}(618);(window.wp=window.wp||{}).jpI18nLoader=n})();
|
jetpack_vendor/automattic/jetpack-assets/composer.json
CHANGED
@@ -9,7 +9,7 @@
|
|
9 |
"require-dev": {
|
10 |
"brain/monkey": "2.6.1",
|
11 |
"yoast/phpunit-polyfills": "1.0.3",
|
12 |
-
"automattic/jetpack-changelogger": "^3.
|
13 |
"wikimedia/testing-access-wrapper": "^1.0 || ^2.0"
|
14 |
},
|
15 |
"autoload": {
|
@@ -51,7 +51,7 @@
|
|
51 |
"link-template": "https://github.com/Automattic/jetpack-assets/compare/v${old}...v${new}"
|
52 |
},
|
53 |
"branch-alias": {
|
54 |
-
"dev-
|
55 |
}
|
56 |
}
|
57 |
}
|
9 |
"require-dev": {
|
10 |
"brain/monkey": "2.6.1",
|
11 |
"yoast/phpunit-polyfills": "1.0.3",
|
12 |
+
"automattic/jetpack-changelogger": "^3.1",
|
13 |
"wikimedia/testing-access-wrapper": "^1.0 || ^2.0"
|
14 |
},
|
15 |
"autoload": {
|
51 |
"link-template": "https://github.com/Automattic/jetpack-assets/compare/v${old}...v${new}"
|
52 |
},
|
53 |
"branch-alias": {
|
54 |
+
"dev-trunk": "1.17.x-dev"
|
55 |
}
|
56 |
}
|
57 |
}
|
jetpack_vendor/automattic/jetpack-assets/package.json
CHANGED
@@ -12,9 +12,11 @@
|
|
12 |
"validate": "pnpm exec validate-es build/"
|
13 |
},
|
14 |
"devDependencies": {
|
15 |
-
"@automattic/jetpack-webpack-config": "^1.
|
|
|
16 |
"md5-es": "1.8.2",
|
17 |
-
"jest": "
|
18 |
-
"webpack": "5.
|
|
|
19 |
}
|
20 |
}
|
12 |
"validate": "pnpm exec validate-es build/"
|
13 |
},
|
14 |
"devDependencies": {
|
15 |
+
"@automattic/jetpack-webpack-config": "^1.3",
|
16 |
+
"@wordpress/browserslist-config": "4.1.2",
|
17 |
"md5-es": "1.8.2",
|
18 |
+
"jest": "28.1.0",
|
19 |
+
"webpack": "5.72.1",
|
20 |
+
"webpack-cli": "4.9.1"
|
21 |
}
|
22 |
}
|
jetpack_vendor/automattic/jetpack-assets/src/class-assets.php
CHANGED
@@ -92,7 +92,8 @@ class Assets {
|
|
92 |
}
|
93 |
|
94 |
if ( in_array( $handle, $this->defer_script_handles, true ) ) {
|
95 |
-
|
|
|
96 |
}
|
97 |
|
98 |
return $tag;
|
92 |
}
|
93 |
|
94 |
if ( in_array( $handle, $this->defer_script_handles, true ) ) {
|
95 |
+
// phpcs:ignore WordPress.WP.EnqueuedResources.NonEnqueuedScript
|
96 |
+
return preg_replace( '/<script( [^>]*)? src=/i', '<script defer$1 src=', $tag );
|
97 |
}
|
98 |
|
99 |
return $tag;
|
jetpack_vendor/automattic/jetpack-assets/src/js/i18n-loader.js
CHANGED
@@ -1,5 +1,5 @@
|
|
1 |
-
const { default: md5 } = require( 'md5-es' );
|
2 |
const i18n = require( '@wordpress/i18n' );
|
|
|
3 |
|
4 |
const locationMap = {
|
5 |
plugin: 'plugins/',
|
|
|
1 |
const i18n = require( '@wordpress/i18n' );
|
2 |
+
const { default: md5 } = require( 'md5-es' );
|
3 |
|
4 |
const locationMap = {
|
5 |
plugin: 'plugins/',
|
jetpack_vendor/automattic/jetpack-config/CHANGELOG.md
CHANGED
@@ -5,6 +5,25 @@ All notable changes to this project will be documented in this file.
|
|
5 |
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
|
6 |
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
7 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
8 |
## [1.7.1] - 2022-04-06
|
9 |
### Removed
|
10 |
- Removed tracking dependency.
|
@@ -105,6 +124,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
105 |
|
106 |
- Trying to add deterministic initialization.
|
107 |
|
|
|
|
|
|
|
|
|
108 |
[1.7.1]: https://github.com/Automattic/jetpack-config/compare/v1.7.0...v1.7.1
|
109 |
[1.7.0]: https://github.com/Automattic/jetpack-config/compare/v1.6.1...v1.7.0
|
110 |
[1.6.1]: https://github.com/Automattic/jetpack-config/compare/v1.6.0...v1.6.1
|
5 |
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
|
6 |
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
7 |
|
8 |
+
## [1.9.1] - 2022-06-21
|
9 |
+
### Changed
|
10 |
+
- Renaming master to trunk.
|
11 |
+
|
12 |
+
## [1.9.0] - 2022-05-18
|
13 |
+
### Added
|
14 |
+
- Configuration for waf package [#24153]
|
15 |
+
|
16 |
+
## [1.8.0] - 2022-04-26
|
17 |
+
### Added
|
18 |
+
- Added the publicize package to be configured via the config package.
|
19 |
+
|
20 |
+
### Changed
|
21 |
+
- Updated package dependencies.
|
22 |
+
|
23 |
+
## [1.7.2] - 2022-04-19
|
24 |
+
### Added
|
25 |
+
- Enable WordAds from Config class
|
26 |
+
|
27 |
## [1.7.1] - 2022-04-06
|
28 |
### Removed
|
29 |
- Removed tracking dependency.
|
124 |
|
125 |
- Trying to add deterministic initialization.
|
126 |
|
127 |
+
[1.9.1]: https://github.com/Automattic/jetpack-config/compare/v1.9.0...v1.9.1
|
128 |
+
[1.9.0]: https://github.com/Automattic/jetpack-config/compare/v1.8.0...v1.9.0
|
129 |
+
[1.8.0]: https://github.com/Automattic/jetpack-config/compare/v1.7.2...v1.8.0
|
130 |
+
[1.7.2]: https://github.com/Automattic/jetpack-config/compare/v1.7.1...v1.7.2
|
131 |
[1.7.1]: https://github.com/Automattic/jetpack-config/compare/v1.7.0...v1.7.1
|
132 |
[1.7.0]: https://github.com/Automattic/jetpack-config/compare/v1.6.1...v1.7.0
|
133 |
[1.6.1]: https://github.com/Automattic/jetpack-config/compare/v1.6.0...v1.6.1
|
jetpack_vendor/automattic/jetpack-config/composer.json
CHANGED
@@ -5,7 +5,7 @@
|
|
5 |
"license": "GPL-2.0-or-later",
|
6 |
"require": {},
|
7 |
"require-dev": {
|
8 |
-
"automattic/jetpack-changelogger": "^3.
|
9 |
},
|
10 |
"autoload": {
|
11 |
"classmap": [
|
@@ -21,7 +21,7 @@
|
|
21 |
"link-template": "https://github.com/Automattic/jetpack-config/compare/v${old}...v${new}"
|
22 |
},
|
23 |
"branch-alias": {
|
24 |
-
"dev-
|
25 |
}
|
26 |
}
|
27 |
}
|
5 |
"license": "GPL-2.0-or-later",
|
6 |
"require": {},
|
7 |
"require-dev": {
|
8 |
+
"automattic/jetpack-changelogger": "^3.1"
|
9 |
},
|
10 |
"autoload": {
|
11 |
"classmap": [
|
21 |
"link-template": "https://github.com/Automattic/jetpack-config/compare/v${old}...v${new}"
|
22 |
},
|
23 |
"branch-alias": {
|
24 |
+
"dev-trunk": "1.9.x-dev"
|
25 |
}
|
26 |
}
|
27 |
}
|
jetpack_vendor/automattic/jetpack-config/src/class-config.php
CHANGED
@@ -17,8 +17,11 @@ use Automattic\Jetpack\Connection\Plugin;
|
|
17 |
use Automattic\Jetpack\JITM as JITM;
|
18 |
use Automattic\Jetpack\JITMS\JITM as JITMS_JITM;
|
19 |
use Automattic\Jetpack\Post_List\Post_List as Post_List;
|
|
|
20 |
use Automattic\Jetpack\Search\Initializer as Jetpack_Search_Main;
|
21 |
use Automattic\Jetpack\Sync\Main as Sync_Main;
|
|
|
|
|
22 |
|
23 |
/**
|
24 |
* The configuration class.
|
@@ -41,6 +44,9 @@ class Config {
|
|
41 |
'post_list' => false,
|
42 |
'identity_crisis' => false,
|
43 |
'search' => false,
|
|
|
|
|
|
|
44 |
);
|
45 |
|
46 |
/**
|
@@ -59,7 +65,6 @@ class Config {
|
|
59 |
* being constructed on priority 1.
|
60 |
*/
|
61 |
add_action( 'plugins_loaded', array( $this, 'on_plugins_loaded' ), 2 );
|
62 |
-
|
63 |
}
|
64 |
|
65 |
/**
|
@@ -113,6 +118,21 @@ class Config {
|
|
113 |
$this->ensure_class( 'Automattic\Jetpack\Search\Initializer' )
|
114 |
&& $this->ensure_feature( 'search' );
|
115 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
116 |
}
|
117 |
|
118 |
/**
|
@@ -233,6 +253,31 @@ class Config {
|
|
233 |
Jetpack_Search_Main::init();
|
234 |
}
|
235 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
236 |
/**
|
237 |
* Setup the Connection options.
|
238 |
*/
|
17 |
use Automattic\Jetpack\JITM as JITM;
|
18 |
use Automattic\Jetpack\JITMS\JITM as JITMS_JITM;
|
19 |
use Automattic\Jetpack\Post_List\Post_List as Post_List;
|
20 |
+
use Automattic\Jetpack\Publicize\Publicize_Setup as Publicize_Setup;
|
21 |
use Automattic\Jetpack\Search\Initializer as Jetpack_Search_Main;
|
22 |
use Automattic\Jetpack\Sync\Main as Sync_Main;
|
23 |
+
use Automattic\Jetpack\Waf\Waf_Initializer as Jetpack_Waf_Main;
|
24 |
+
use Automattic\Jetpack\WordAds\Initializer as Jetpack_WordAds_Main;
|
25 |
|
26 |
/**
|
27 |
* The configuration class.
|
44 |
'post_list' => false,
|
45 |
'identity_crisis' => false,
|
46 |
'search' => false,
|
47 |
+
'publicize' => false,
|
48 |
+
'wordads' => false,
|
49 |
+
'waf' => false,
|
50 |
);
|
51 |
|
52 |
/**
|
65 |
* being constructed on priority 1.
|
66 |
*/
|
67 |
add_action( 'plugins_loaded', array( $this, 'on_plugins_loaded' ), 2 );
|
|
|
68 |
}
|
69 |
|
70 |
/**
|
118 |
$this->ensure_class( 'Automattic\Jetpack\Search\Initializer' )
|
119 |
&& $this->ensure_feature( 'search' );
|
120 |
}
|
121 |
+
|
122 |
+
if ( $this->config['publicize'] ) {
|
123 |
+
$this->ensure_class( 'Automattic\Jetpack\Publicize\Publicize_UI' ) && $this->ensure_class( 'Automattic\Jetpack\Publicize\Publicize' )
|
124 |
+
&& $this->ensure_feature( 'publicize' );
|
125 |
+
}
|
126 |
+
|
127 |
+
if ( $this->config['wordads'] ) {
|
128 |
+
$this->ensure_class( 'Automattic\Jetpack\WordAds\Initializer' )
|
129 |
+
&& $this->ensure_feature( 'wordads' );
|
130 |
+
}
|
131 |
+
|
132 |
+
if ( $this->config['waf'] ) {
|
133 |
+
$this->ensure_class( 'Automattic\Jetpack\Waf\Waf_Initializer' )
|
134 |
+
&& $this->ensure_feature( 'waf' );
|
135 |
+
}
|
136 |
}
|
137 |
|
138 |
/**
|
253 |
Jetpack_Search_Main::init();
|
254 |
}
|
255 |
|
256 |
+
/**
|
257 |
+
* Enables the Publicize feature.
|
258 |
+
*/
|
259 |
+
protected function enable_publicize() {
|
260 |
+
Publicize_Setup::configure();
|
261 |
+
|
262 |
+
return true;
|
263 |
+
}
|
264 |
+
|
265 |
+
/**
|
266 |
+
* Enables WordAds.
|
267 |
+
*/
|
268 |
+
protected function enable_wordads() {
|
269 |
+
Jetpack_WordAds_Main::init();
|
270 |
+
}
|
271 |
+
|
272 |
+
/**
|
273 |
+
* Enables Waf.
|
274 |
+
*/
|
275 |
+
protected function enable_waf() {
|
276 |
+
Jetpack_Waf_Main::init();
|
277 |
+
|
278 |
+
return true;
|
279 |
+
}
|
280 |
+
|
281 |
/**
|
282 |
* Setup the Connection options.
|
283 |
*/
|
jetpack_vendor/automattic/jetpack-connection/CHANGELOG.md
CHANGED
@@ -5,6 +5,86 @@ All notable changes to this project will be documented in this file.
|
|
5 |
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
|
6 |
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
7 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
8 |
## [1.37.5] - 2022-04-06
|
9 |
### Removed
|
10 |
- Removed tracking dependency.
|
@@ -545,6 +625,19 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
545 |
|
546 |
- Separate the connection library into its own package.
|
547 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
548 |
[1.37.5]: https://github.com/Automattic/jetpack-connection/compare/v1.37.4...v1.37.5
|
549 |
[1.37.4]: https://github.com/Automattic/jetpack-connection/compare/v1.37.3...v1.37.4
|
550 |
[1.37.3]: https://github.com/Automattic/jetpack-connection/compare/v1.37.2...v1.37.3
|
5 |
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
|
6 |
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
7 |
|
8 |
+
## [1.41.1] - 2022-06-21
|
9 |
+
### Changed
|
10 |
+
- Renaming master to trunk.
|
11 |
+
- Renaming `master` references to `trunk`
|
12 |
+
|
13 |
+
## [1.41.0] - 2022-06-14
|
14 |
+
### Changed
|
15 |
+
- Updated package dependencies. [#24529]
|
16 |
+
|
17 |
+
### Fixed
|
18 |
+
- Fixed old tk_ai regex to accurately match tk_ai ids. [#24697]
|
19 |
+
- Moved the connection_url_redirect action handling to the connection package. [#24529]
|
20 |
+
|
21 |
+
## [1.40.5] - 2022-06-08
|
22 |
+
### Changed
|
23 |
+
- Reorder JS imports for `import/order` eslint rule. [#24601]
|
24 |
+
|
25 |
+
## [1.40.4] - 2022-05-24
|
26 |
+
### Added
|
27 |
+
- Allow plugins to filter the list of available modules. Only activate and consider active modules that are available [#24454]
|
28 |
+
|
29 |
+
## [1.40.3] - 2022-05-19
|
30 |
+
### Added
|
31 |
+
- PHPCS updates. [#24418]
|
32 |
+
|
33 |
+
## [1.40.2] - 2022-05-18
|
34 |
+
### Changed
|
35 |
+
- Updated package dependencies [#24372]
|
36 |
+
|
37 |
+
### Fixed
|
38 |
+
- Fix new PHPCS sniffs. [#24366]
|
39 |
+
|
40 |
+
## [1.40.1] - 2022-05-10
|
41 |
+
### Added
|
42 |
+
- Bundle and transpile JavaScript with Webpack. [#24216]
|
43 |
+
|
44 |
+
### Changed
|
45 |
+
- Deprecate soft disconnect [#24105]
|
46 |
+
|
47 |
+
## [1.40.0] - 2022-05-04
|
48 |
+
### Added
|
49 |
+
- Connection: Expose wpVersion and siteSuffix in the global initial state var [#24137]
|
50 |
+
|
51 |
+
### Deprecated
|
52 |
+
- Moved the options class into Connection. [#24095]
|
53 |
+
|
54 |
+
## [1.39.2] - 2022-05-19
|
55 |
+
### Added
|
56 |
+
- PHPCS updates.
|
57 |
+
|
58 |
+
## [1.39.1] - 2022-04-27
|
59 |
+
### Fixed
|
60 |
+
- Reverts soft disconnect deprecation
|
61 |
+
|
62 |
+
## [1.39.0] - 2022-04-26
|
63 |
+
### Changed
|
64 |
+
- Make remove_connection a proxy method to ensure all trackings are triggered
|
65 |
+
- Updated package dependencies.
|
66 |
+
|
67 |
+
### Deprecated
|
68 |
+
- Removed Heartbeat by hoisting it into Connection.
|
69 |
+
|
70 |
+
### Removed
|
71 |
+
- Deprecated Soft disconnect
|
72 |
+
|
73 |
+
## [1.38.0] - 2022-04-19
|
74 |
+
### Added
|
75 |
+
- Added list of connected list to the connection initial state
|
76 |
+
- Add token lock functionality.
|
77 |
+
|
78 |
+
### Changed
|
79 |
+
- PHPCS: Fix `WordPress.Security.ValidatedSanitizedInput`
|
80 |
+
|
81 |
+
### Deprecated
|
82 |
+
- Deprecated in-place connection.
|
83 |
+
|
84 |
+
## [1.37.6] - 2022-04-12
|
85 |
+
### Changed
|
86 |
+
- Updated package dependencies.
|
87 |
+
|
88 |
## [1.37.5] - 2022-04-06
|
89 |
### Removed
|
90 |
- Removed tracking dependency.
|
625 |
|
626 |
- Separate the connection library into its own package.
|
627 |
|
628 |
+
[1.41.1]: https://github.com/Automattic/jetpack-connection/compare/v1.41.0...v1.41.1
|
629 |
+
[1.41.0]: https://github.com/Automattic/jetpack-connection/compare/v1.40.5...v1.41.0
|
630 |
+
[1.40.5]: https://github.com/Automattic/jetpack-connection/compare/v1.40.4...v1.40.5
|
631 |
+
[1.40.4]: https://github.com/Automattic/jetpack-connection/compare/v1.40.3...v1.40.4
|
632 |
+
[1.40.3]: https://github.com/Automattic/jetpack-connection/compare/v1.40.2...v1.40.3
|
633 |
+
[1.40.2]: https://github.com/Automattic/jetpack-connection/compare/v1.40.1...v1.40.2
|
634 |
+
[1.40.1]: https://github.com/Automattic/jetpack-connection/compare/v1.40.0...v1.40.1
|
635 |
+
[1.40.0]: https://github.com/Automattic/jetpack-connection/compare/v1.39.1...v1.40.0
|
636 |
+
[1.39.2]: https://github.com/Automattic/jetpack-connection/compare/v1.39.1...v1.39.2
|
637 |
+
[1.39.1]: https://github.com/Automattic/jetpack-connection/compare/v1.39.0...v1.39.1
|
638 |
+
[1.39.0]: https://github.com/Automattic/jetpack-connection/compare/v1.38.0...v1.39.0
|
639 |
+
[1.38.0]: https://github.com/Automattic/jetpack-connection/compare/v1.37.6...v1.38.0
|
640 |
+
[1.37.6]: https://github.com/Automattic/jetpack-connection/compare/v1.37.5...v1.37.6
|
641 |
[1.37.5]: https://github.com/Automattic/jetpack-connection/compare/v1.37.4...v1.37.5
|
642 |
[1.37.4]: https://github.com/Automattic/jetpack-connection/compare/v1.37.3...v1.37.4
|
643 |
[1.37.3]: https://github.com/Automattic/jetpack-connection/compare/v1.37.2...v1.37.3
|
jetpack_vendor/automattic/jetpack-connection/README.md
CHANGED
@@ -8,9 +8,9 @@ Package is published in [Packagist](https://packagist.org/packages/automattic/je
|
|
8 |
|
9 |
```
|
10 |
"require": {
|
11 |
-
"automattic/jetpack-autoloader": "dev-
|
12 |
-
"automattic/jetpack-config": "dev-
|
13 |
-
"automattic/jetpack-connection": "dev-
|
14 |
}
|
15 |
```
|
16 |
|
8 |
|
9 |
```
|
10 |
"require": {
|
11 |
+
"automattic/jetpack-autoloader": "dev-trunk",
|
12 |
+
"automattic/jetpack-config": "dev-trunk",
|
13 |
+
"automattic/jetpack-connection": "dev-trunk"
|
14 |
}
|
15 |
```
|
16 |
|
jetpack_vendor/automattic/jetpack-connection/composer.json
CHANGED
@@ -7,17 +7,15 @@
|
|
7 |
"automattic/jetpack-a8c-mc-stats": "^1.4",
|
8 |
"automattic/jetpack-admin-ui": "^0.2",
|
9 |
"automattic/jetpack-constants": "^1.6",
|
10 |
-
"automattic/jetpack-heartbeat": "^1.4",
|
11 |
-
"automattic/jetpack-options": "^1.14",
|
12 |
"automattic/jetpack-roles": "^1.4",
|
13 |
-
"automattic/jetpack-status": "^1.
|
14 |
"automattic/jetpack-redirect": "^1.7"
|
15 |
},
|
16 |
"require-dev": {
|
17 |
"automattic/wordbless": "@dev",
|
18 |
"yoast/phpunit-polyfills": "1.0.3",
|
19 |
"brain/monkey": "2.6.1",
|
20 |
-
"automattic/jetpack-changelogger": "^3.
|
21 |
},
|
22 |
"autoload": {
|
23 |
"classmap": [
|
@@ -27,6 +25,12 @@
|
|
27 |
]
|
28 |
},
|
29 |
"scripts": {
|
|
|
|
|
|
|
|
|
|
|
|
|
30 |
"phpunit": [
|
31 |
"./vendor/phpunit/phpunit/phpunit --colors=always"
|
32 |
],
|
@@ -51,7 +55,7 @@
|
|
51 |
"link-template": "https://github.com/Automattic/jetpack-connection/compare/v${old}...v${new}"
|
52 |
},
|
53 |
"branch-alias": {
|
54 |
-
"dev-
|
55 |
}
|
56 |
},
|
57 |
"config": {
|
7 |
"automattic/jetpack-a8c-mc-stats": "^1.4",
|
8 |
"automattic/jetpack-admin-ui": "^0.2",
|
9 |
"automattic/jetpack-constants": "^1.6",
|
|
|
|
|
10 |
"automattic/jetpack-roles": "^1.4",
|
11 |
+
"automattic/jetpack-status": "^1.14",
|
12 |
"automattic/jetpack-redirect": "^1.7"
|
13 |
},
|
14 |
"require-dev": {
|
15 |
"automattic/wordbless": "@dev",
|
16 |
"yoast/phpunit-polyfills": "1.0.3",
|
17 |
"brain/monkey": "2.6.1",
|
18 |
+
"automattic/jetpack-changelogger": "^3.1"
|
19 |
},
|
20 |
"autoload": {
|
21 |
"classmap": [
|
25 |
]
|
26 |
},
|
27 |
"scripts": {
|
28 |
+
"build-production": [
|
29 |
+
"pnpm run build-production"
|
30 |
+
],
|
31 |
+
"build-development": [
|
32 |
+
"pnpm run build"
|
33 |
+
],
|
34 |
"phpunit": [
|
35 |
"./vendor/phpunit/phpunit/phpunit --colors=always"
|
36 |
],
|
55 |
"link-template": "https://github.com/Automattic/jetpack-connection/compare/v${old}...v${new}"
|
56 |
},
|
57 |
"branch-alias": {
|
58 |
+
"dev-trunk": "1.41.x-dev"
|
59 |
}
|
60 |
},
|
61 |
"config": {
|
jetpack_vendor/automattic/jetpack-connection/dist/tracks-ajax.asset.php
ADDED
@@ -0,0 +1 @@
|
|
|
1 |
+
<?php return array('dependencies' => array(), 'version' => '2c644cc46566ed615c42');
|
jetpack_vendor/automattic/jetpack-connection/dist/tracks-ajax.js
ADDED
@@ -0,0 +1 @@
|
|
|
1 |
+
!function(t,a){window.jpTracksAJAX=window.jpTracksAJAX||{};const c="dops:analytics"===localStorage.getItem("debug");window.jpTracksAJAX.record_ajax_event=function(n,e,r){const o={tracksNonce:a.jpTracksAJAX_nonce,action:"jetpack_tracks",tracksEventType:e,tracksEventName:n,tracksEventProp:r||!1};return t.ajax({type:"POST",url:a.ajaxurl,data:o,success:function(t){c&&console.log("AJAX tracks event recorded: ",o,t)}})},t(document).ready((function(){t("body").on("click",".jptracks a, a.jptracks",(function(a){const c=t(a.target),n=c.closest(".jptracks"),e=n.attr("data-jptracks-name");if(void 0===e)return;const r=n.attr("data-jptracks-prop")||!1,o=c.attr("href"),s=c.get(0).target;let i=null;o&&s&&"_self"!==s&&(i=window.open("",s),i.opener=null),a.preventDefault(),window.jpTracksAJAX.record_ajax_event(e,"click",r).always((function(){if(o&&!c.hasClass("thickbox")){if(i)return void(i.location=o);window.location=o}}))}))}))}(jQuery,jpTracksAJAX);
|
jetpack_vendor/automattic/jetpack-connection/dist/tracks-callables.asset.php
ADDED
@@ -0,0 +1 @@
|
|
|
1 |
+
<?php return array('dependencies' => array(), 'version' => 'd9dbf909a3d10fb26f39');
|
jetpack_vendor/automattic/jetpack-connection/dist/tracks-callables.js
ADDED
@@ -0,0 +1 @@
|
|
|
1 |
+
(()=>{var e={775:e=>{let n;window._tkq=window._tkq||[];const t=console.error;const o={initialize:function(e,n){o.setUser(e,n),o.identifyUser()},mc:{bumpStat:function(e,n){const t=function(e,n){let t="";if("object"==typeof e)for(const n in e)t+="&x_"+encodeURIComponent(n)+"="+encodeURIComponent(e[n]);else t="&x_"+encodeURIComponent(e)+"="+encodeURIComponent(n);return t}(e,n);(new Image).src=document.location.protocol+"//pixel.wp.com/g.gif?v=wpcom-no-pv"+t+"&t="+Math.random()}},tracks:{recordEvent:function(e,n){n=n||{},0===e.indexOf("jetpack_")?window._tkq.push(["recordEvent",e,n]):t('- Event name must be prefixed by "jetpack_"')},recordPageView:function(e){o.tracks.recordEvent("jetpack_page_view",{path:e})}},setUser:function(e,t){n={ID:e,username:t}},identifyUser:function(){n&&window._tkq.push(["identifyUser",n.ID,n.username])},clearedIdentity:function(){window._tkq.push(["clearIdentity"])}};e.exports=o}},n={};var t=function t(o){var r=n[o];if(void 0!==r)return r.exports;var i=n[o]={exports:{}};return e[o](i,i.exports,t),i.exports}(775);window.analytics=t})();
|
jetpack_vendor/automattic/{jetpack-options → jetpack-connection}/legacy/class-jetpack-options.php
RENAMED
@@ -2,7 +2,7 @@
|
|
2 |
/**
|
3 |
* Legacy Jetpack_Options class.
|
4 |
*
|
5 |
-
* @package automattic/jetpack-
|
6 |
*/
|
7 |
|
8 |
use Automattic\Jetpack\Constants;
|
@@ -82,6 +82,7 @@ class Jetpack_Options {
|
|
82 |
'user_token', // (string) The User Token of this site. (deprecated)
|
83 |
'user_tokens', // (array) User Tokens for each user of this site who has connected to jetpack.wordpress.com.
|
84 |
'purchase_token', // (string) Token for logged out user purchases.
|
|
|
85 |
);
|
86 |
|
87 |
case 'network':
|
@@ -120,6 +121,7 @@ class Jetpack_Options {
|
|
120 |
'recommendations_banner_enabled', // (bool) Whether the recommendations are enabled or not.
|
121 |
'recommendations_data', // (array) The user choice and other data for the recommendations.
|
122 |
'recommendations_step', // (string) The current step of the recommendations.
|
|
|
123 |
'licensing_activation_notice_dismiss', // (array) The `last_detached_count` and the `last_dismissed_time` for the user-license activation notice.
|
124 |
'has_seen_wc_connection_modal', // (bool) Whether the site has displayed the WooCommerce Connection modal
|
125 |
'partner_coupon', // (string) A Jetpack partner issued coupon to promote a sale together with Jetpack.
|
2 |
/**
|
3 |
* Legacy Jetpack_Options class.
|
4 |
*
|
5 |
+
* @package automattic/jetpack-connection
|
6 |
*/
|
7 |
|
8 |
use Automattic\Jetpack\Constants;
|
82 |
'user_token', // (string) The User Token of this site. (deprecated)
|
83 |
'user_tokens', // (array) User Tokens for each user of this site who has connected to jetpack.wordpress.com.
|
84 |
'purchase_token', // (string) Token for logged out user purchases.
|
85 |
+
'token_lock', // (string) Token lock in format `expiration_date|||site_url`.
|
86 |
);
|
87 |
|
88 |
case 'network':
|
121 |
'recommendations_banner_enabled', // (bool) Whether the recommendations are enabled or not.
|
122 |
'recommendations_data', // (array) The user choice and other data for the recommendations.
|
123 |
'recommendations_step', // (string) The current step of the recommendations.
|
124 |
+
'recommendations_conditional', // (array) An array of action-based recommendations.
|
125 |
'licensing_activation_notice_dismiss', // (array) The `last_detached_count` and the `last_dismissed_time` for the user-license activation notice.
|
126 |
'has_seen_wc_connection_modal', // (bool) Whether the site has displayed the WooCommerce Connection modal
|
127 |
'partner_coupon', // (string) A Jetpack partner issued coupon to promote a sale together with Jetpack.
|
jetpack_vendor/automattic/jetpack-connection/legacy/class-jetpack-signature.php
CHANGED
@@ -76,11 +76,12 @@ class Jetpack_Signature {
|
|
76 |
|
77 |
$port = $this->get_current_request_port();
|
78 |
|
79 |
-
|
|
|
80 |
|
81 |
if ( array_key_exists( 'body', $override ) && ! empty( $override['body'] ) ) {
|
82 |
$body = $override['body'];
|
83 |
-
} elseif ( 'POST' === strtoupper( $_SERVER['REQUEST_METHOD'] ) ) {
|
84 |
$body = isset( $GLOBALS['HTTP_RAW_POST_DATA'] ) ? $GLOBALS['HTTP_RAW_POST_DATA'] : null;
|
85 |
|
86 |
// Convert the $_POST to the body, if the body was empty. This is how arrays are hashed
|
@@ -91,7 +92,7 @@ class Jetpack_Signature {
|
|
91 |
$body = $_POST; // phpcs:ignore WordPress.Security.NonceVerification.Missing
|
92 |
}
|
93 |
}
|
94 |
-
} elseif ( 'PUT' === strtoupper( $_SERVER['REQUEST_METHOD'] ) ) {
|
95 |
// This is a little strange-looking, but there doesn't seem to be another way to get the PUT body.
|
96 |
$raw_put_data = file_get_contents( 'php://input' );
|
97 |
parse_str( $raw_put_data, $body );
|
@@ -116,11 +117,11 @@ class Jetpack_Signature {
|
|
116 |
$a[ $parameter ] = $override[ $parameter ];
|
117 |
} else {
|
118 |
// phpcs:ignore WordPress.Security.NonceVerification.Recommended
|
119 |
-
$a[ $parameter ] = isset( $_GET[ $parameter ] ) ?
|
120 |
}
|
121 |
}
|
122 |
|
123 |
-
$method = isset( $override['method'] ) ? $override['method'] : $_SERVER['REQUEST_METHOD'];
|
124 |
return $this->sign_request( $a['token'], $a['timestamp'], $a['nonce'], $a['body-hash'], $method, $this->current_request_url, $body, true );
|
125 |
}
|
126 |
|
@@ -346,9 +347,9 @@ class Jetpack_Signature {
|
|
346 |
* @return string The port to be used in the signature
|
347 |
*/
|
348 |
public function get_current_request_port() {
|
349 |
-
$host_port = isset( $_SERVER['HTTP_X_FORWARDED_PORT'] ) ? $this->sanitize_host_post( $_SERVER['HTTP_X_FORWARDED_PORT'] ) : '';
|
350 |
if ( '' === $host_port && isset( $_SERVER['SERVER_PORT'] ) ) {
|
351 |
-
$host_port = $this->sanitize_host_post( $_SERVER['SERVER_PORT'] );
|
352 |
}
|
353 |
|
354 |
/**
|
76 |
|
77 |
$port = $this->get_current_request_port();
|
78 |
|
79 |
+
// phpcs:ignore WordPress.Security.ValidatedSanitizedInput.InputNotValidatedNotSanitized -- Sniff misses the esc_url_raw wrapper.
|
80 |
+
$this->current_request_url = esc_url_raw( wp_unslash( "{$scheme}://{$_SERVER['HTTP_HOST']}:{$port}" . ( isset( $_SERVER['REQUEST_URI'] ) ? $_SERVER['REQUEST_URI'] : '' ) ) );
|
81 |
|
82 |
if ( array_key_exists( 'body', $override ) && ! empty( $override['body'] ) ) {
|
83 |
$body = $override['body'];
|
84 |
+
} elseif ( isset( $_SERVER['REQUEST_METHOD'] ) && 'POST' === strtoupper( $_SERVER['REQUEST_METHOD'] ) ) { // phpcs:ignore WordPress.Security.ValidatedSanitizedInput -- This is validating.
|
85 |
$body = isset( $GLOBALS['HTTP_RAW_POST_DATA'] ) ? $GLOBALS['HTTP_RAW_POST_DATA'] : null;
|
86 |
|
87 |
// Convert the $_POST to the body, if the body was empty. This is how arrays are hashed
|
92 |
$body = $_POST; // phpcs:ignore WordPress.Security.NonceVerification.Missing
|
93 |
}
|
94 |
}
|
95 |
+
} elseif ( isset( $_SERVER['REQUEST_METHOD'] ) && 'PUT' === strtoupper( $_SERVER['REQUEST_METHOD'] ) ) { // phpcs:ignore WordPress.Security.ValidatedSanitizedInput -- This is validating.
|
96 |
// This is a little strange-looking, but there doesn't seem to be another way to get the PUT body.
|
97 |
$raw_put_data = file_get_contents( 'php://input' );
|
98 |
parse_str( $raw_put_data, $body );
|
117 |
$a[ $parameter ] = $override[ $parameter ];
|
118 |
} else {
|
119 |
// phpcs:ignore WordPress.Security.NonceVerification.Recommended
|
120 |
+
$a[ $parameter ] = isset( $_GET[ $parameter ] ) ? filter_var( wp_unslash( $_GET[ $parameter ] ) ) : '';
|
121 |
}
|
122 |
}
|
123 |
|
124 |
+
$method = isset( $override['method'] ) ? $override['method'] : ( isset( $_SERVER['REQUEST_METHOD'] ) ? filter_var( wp_unslash( $_SERVER['REQUEST_METHOD'] ) ) : null );
|
125 |
return $this->sign_request( $a['token'], $a['timestamp'], $a['nonce'], $a['body-hash'], $method, $this->current_request_url, $body, true );
|
126 |
}
|
127 |
|
347 |
* @return string The port to be used in the signature
|
348 |
*/
|
349 |
public function get_current_request_port() {
|
350 |
+
$host_port = isset( $_SERVER['HTTP_X_FORWARDED_PORT'] ) ? $this->sanitize_host_post( $_SERVER['HTTP_X_FORWARDED_PORT'] ) : ''; // phpcs:ignore WordPress.Security.ValidatedSanitizedInput -- This is validating.
|
351 |
if ( '' === $host_port && isset( $_SERVER['SERVER_PORT'] ) ) {
|
352 |
+
$host_port = $this->sanitize_host_post( $_SERVER['SERVER_PORT'] ); // phpcs:ignore WordPress.Security.ValidatedSanitizedInput -- This is validating.
|
353 |
}
|
354 |
|
355 |
/**
|
jetpack_vendor/automattic/jetpack-connection/legacy/class-jetpack-tracks-client.php
CHANGED
@@ -184,8 +184,8 @@ class Jetpack_Tracks_Client {
|
|
184 |
if ( ! isset( $anon_id ) ) {
|
185 |
|
186 |
// Did the browser send us a cookie?
|
187 |
-
if ( isset( $_COOKIE['tk_ai'] ) && preg_match( '#^[A-Za-z0-9+/=]{24}$#', $_COOKIE['tk_ai'] ) ) {
|
188 |
-
$anon_id = $_COOKIE['tk_ai'];
|
189 |
} else {
|
190 |
|
191 |
$binary = '';
|
@@ -202,7 +202,7 @@ class Jetpack_Tracks_Client {
|
|
202 |
&& ! ( defined( 'REST_REQUEST' ) && REST_REQUEST )
|
203 |
&& ! ( defined( 'XMLRPC_REQUEST' ) && XMLRPC_REQUEST )
|
204 |
) {
|
205 |
-
setcookie( 'tk_ai', $anon_id );
|
206 |
}
|
207 |
}
|
208 |
}
|
184 |
if ( ! isset( $anon_id ) ) {
|
185 |
|
186 |
// Did the browser send us a cookie?
|
187 |
+
if ( isset( $_COOKIE['tk_ai'] ) && preg_match( '#^[a-z]+:[A-Za-z0-9+/=]{24}$#', $_COOKIE['tk_ai'] ) ) { // phpcs:ignore WordPress.Security.ValidatedSanitizedInput -- This is validating.
|
188 |
+
$anon_id = $_COOKIE['tk_ai']; // phpcs:ignore WordPress.Security.ValidatedSanitizedInput -- This is validating.
|
189 |
} else {
|
190 |
|
191 |
$binary = '';
|
202 |
&& ! ( defined( 'REST_REQUEST' ) && REST_REQUEST )
|
203 |
&& ! ( defined( 'XMLRPC_REQUEST' ) && XMLRPC_REQUEST )
|
204 |
) {
|
205 |
+
setcookie( 'tk_ai', $anon_id, 0, COOKIEPATH, COOKIE_DOMAIN, is_ssl(), false ); // phpcs:ignore Jetpack.Functions.SetCookie -- This is a random value and should be fine.
|
206 |
}
|
207 |
}
|
208 |
}
|
jetpack_vendor/automattic/{jetpack-heartbeat → jetpack-connection}/src/class-heartbeat.php
RENAMED
@@ -2,7 +2,7 @@
|
|
2 |
/**
|
3 |
* Jetpack Heartbeat package.
|
4 |
*
|
5 |
-
* @package automattic/jetpack-
|
6 |
*/
|
7 |
|
8 |
namespace Automattic\Jetpack;
|
@@ -227,7 +227,7 @@ class Heartbeat {
|
|
227 |
|
228 |
if ( isset( $args[0] ) && ! in_array( $args[0], $allowed_args, true ) ) {
|
229 |
/* translators: %s is a command like "prompt" */
|
230 |
-
WP_CLI::error( sprintf( __( '%s is not a valid command.', 'jetpack-
|
231 |
}
|
232 |
|
233 |
$stats = self::generate_stats_array();
|
@@ -247,7 +247,7 @@ class Heartbeat {
|
|
247 |
if ( $last_heartbeat ) {
|
248 |
$last_date = gmdate( 'Y-m-d H:i:s', $last_heartbeat );
|
249 |
/* translators: %s is the full datetime of the last heart beat e.g. 2020-01-01 12:21:23 */
|
250 |
-
WP_CLI::line( sprintf( __( 'Last heartbeat sent at: %s', 'jetpack-
|
251 |
}
|
252 |
}
|
253 |
|
2 |
/**
|
3 |
* Jetpack Heartbeat package.
|
4 |
*
|
5 |
+
* @package automattic/jetpack-connection
|
6 |
*/
|
7 |
|
8 |
namespace Automattic\Jetpack;
|
227 |
|
228 |
if ( isset( $args[0] ) && ! in_array( $args[0], $allowed_args, true ) ) {
|
229 |
/* translators: %s is a command like "prompt" */
|
230 |
+
WP_CLI::error( sprintf( __( '%s is not a valid command.', 'jetpack-connection' ), $args[0] ) );
|
231 |
}
|
232 |
|
233 |
$stats = self::generate_stats_array();
|
247 |
if ( $last_heartbeat ) {
|
248 |
$last_date = gmdate( 'Y-m-d H:i:s', $last_heartbeat );
|
249 |
/* translators: %s is the full datetime of the last heart beat e.g. 2020-01-01 12:21:23 */
|
250 |
+
WP_CLI::line( sprintf( __( 'Last heartbeat sent at: %s', 'jetpack-connection' ), $last_date ) );
|
251 |
}
|
252 |
}
|
253 |
|
jetpack_vendor/automattic/jetpack-connection/src/class-initial-state.php
CHANGED
@@ -7,6 +7,8 @@
|
|
7 |
|
8 |
namespace Automattic\Jetpack\Connection;
|
9 |
|
|
|
|
|
10 |
/**
|
11 |
* The React initial state.
|
12 |
*/
|
@@ -25,12 +27,17 @@ class Initial_State {
|
|
25 |
* @return array
|
26 |
*/
|
27 |
private static function get_data() {
|
|
|
|
|
28 |
return array(
|
29 |
'apiRoot' => esc_url_raw( rest_url() ),
|
30 |
'apiNonce' => wp_create_nonce( 'wp_rest' ),
|
31 |
'registrationNonce' => wp_create_nonce( 'jetpack-registration-nonce' ),
|
32 |
'connectionStatus' => REST_Connector::connection_status( false ),
|
33 |
'userConnectionData' => REST_Connector::get_user_connection_data( false ),
|
|
|
|
|
|
|
34 |
);
|
35 |
}
|
36 |
|
7 |
|
8 |
namespace Automattic\Jetpack\Connection;
|
9 |
|
10 |
+
use Automattic\Jetpack\Status;
|
11 |
+
|
12 |
/**
|
13 |
* The React initial state.
|
14 |
*/
|
27 |
* @return array
|
28 |
*/
|
29 |
private static function get_data() {
|
30 |
+
global $wp_version;
|
31 |
+
|
32 |
return array(
|
33 |
'apiRoot' => esc_url_raw( rest_url() ),
|
34 |
'apiNonce' => wp_create_nonce( 'wp_rest' ),
|
35 |
'registrationNonce' => wp_create_nonce( 'jetpack-registration-nonce' ),
|
36 |
'connectionStatus' => REST_Connector::connection_status( false ),
|
37 |
'userConnectionData' => REST_Connector::get_user_connection_data( false ),
|
38 |
+
'connectedPlugins' => REST_Connector::get_connection_plugins( false ),
|
39 |
+
'wpVersion' => $wp_version,
|
40 |
+
'siteSuffix' => ( new Status() )->get_site_suffix(),
|
41 |
);
|
42 |
}
|
43 |
|
jetpack_vendor/automattic/jetpack-connection/src/class-manager.php
CHANGED
@@ -116,7 +116,6 @@ class Manager {
|
|
116 |
if ( defined( 'JETPACK__SANDBOX_DOMAIN' ) && JETPACK__SANDBOX_DOMAIN ) {
|
117 |
( new Server_Sandbox() )->init();
|
118 |
}
|
119 |
-
|
120 |
}
|
121 |
|
122 |
/**
|
@@ -348,7 +347,7 @@ class Manager {
|
|
348 |
* @todo Refactor to use proper nonce verification.
|
349 |
*/
|
350 |
private function internal_verify_xml_rpc_signature() {
|
351 |
-
// phpcs:disable WordPress.Security.NonceVerification.Recommended
|
352 |
// It's not for us.
|
353 |
if ( ! isset( $_GET['token'] ) || empty( $_GET['signature'] ) ) {
|
354 |
return false;
|
@@ -359,14 +358,14 @@ class Manager {
|
|
359 |
'timestamp' => isset( $_GET['timestamp'] ) ? wp_unslash( $_GET['timestamp'] ) : '',
|
360 |
'nonce' => isset( $_GET['nonce'] ) ? wp_unslash( $_GET['nonce'] ) : '',
|
361 |
'body_hash' => isset( $_GET['body-hash'] ) ? wp_unslash( $_GET['body-hash'] ) : '',
|
362 |
-
'method' => wp_unslash( $_SERVER['REQUEST_METHOD'] ),
|
363 |
-
'url' => wp_unslash( $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'] ), // Temp - will get real signature URL later.
|
364 |
'signature' => isset( $_GET['signature'] ) ? wp_unslash( $_GET['signature'] ) : '',
|
365 |
);
|
366 |
|
367 |
// phpcs:ignore WordPress.PHP.NoSilencedErrors.Discouraged
|
368 |
@list( $token_key, $version, $user_id ) = explode( ':', wp_unslash( $_GET['token'] ) );
|
369 |
-
// phpcs:enable WordPress.Security.NonceVerification.Recommended
|
370 |
|
371 |
$jetpack_api_version = Constants::get_constant( 'JETPACK__API_VERSION' );
|
372 |
|
@@ -459,7 +458,7 @@ class Manager {
|
|
459 |
|
460 |
// phpcs:disable WordPress.Security.NonceVerification.Recommended
|
461 |
$timestamp = (int) $_GET['timestamp'];
|
462 |
-
$nonce =
|
463 |
// phpcs:enable WordPress.Security.NonceVerification.Recommended
|
464 |
|
465 |
// Use up the nonce regardless of whether the signature matches.
|
@@ -477,7 +476,7 @@ class Manager {
|
|
477 |
$signature_details['expected'] = $signature;
|
478 |
|
479 |
// phpcs:ignore WordPress.Security.NonceVerification.Recommended
|
480 |
-
if ( ! hash_equals( $signature, $_GET['signature'] ) ) {
|
481 |
return new \WP_Error(
|
482 |
'signature_mismatch',
|
483 |
'Signature mismatch',
|
@@ -976,21 +975,6 @@ class Manager {
|
|
976 |
$api_base = Constants::get_constant( 'JETPACK__API_BASE' );
|
977 |
$api_version = '/' . Constants::get_constant( 'JETPACK__API_VERSION' ) . '/';
|
978 |
|
979 |
-
/**
|
980 |
-
* Filters whether the connection manager should use the iframe authorization
|
981 |
-
* flow instead of the regular redirect-based flow.
|
982 |
-
*
|
983 |
-
* @since 1.9.0
|
984 |
-
*
|
985 |
-
* @param Boolean $is_iframe_flow_used should the iframe flow be used, defaults to false.
|
986 |
-
*/
|
987 |
-
$iframe_flow = apply_filters( 'jetpack_use_iframe_authorization_flow', false );
|
988 |
-
|
989 |
-
// Do not modify anything that is not related to authorize requests.
|
990 |
-
if ( 'authorize' === $relative_url && $iframe_flow ) {
|
991 |
-
$relative_url = 'authorize_iframe';
|
992 |
-
}
|
993 |
-
|
994 |
/**
|
995 |
* Filters the API URL that Jetpack uses for server communication.
|
996 |
*
|
@@ -1160,19 +1144,12 @@ class Manager {
|
|
1160 |
|
1161 |
$this->get_tokens()->update_blog_token( (string) $registration_details->jetpack_secret );
|
1162 |
|
1163 |
-
$allow_inplace_authorization = isset( $registration_details->allow_inplace_authorization ) ? $registration_details->allow_inplace_authorization : false;
|
1164 |
$alternate_authorization_url = isset( $registration_details->alternate_authorization_url ) ? $registration_details->alternate_authorization_url : '';
|
1165 |
|
1166 |
-
if ( ! $allow_inplace_authorization ) {
|
1167 |
-
// Forces register_site REST endpoint to return the Calypso authorization URL.
|
1168 |
-
add_filter( 'jetpack_use_iframe_authorization_flow', '__return_false', 20 );
|
1169 |
-
}
|
1170 |
-
|
1171 |
add_filter(
|
1172 |
'jetpack_register_site_rest_response',
|
1173 |
-
function ( $response ) use ( $
|
1174 |
-
$response['
|
1175 |
-
$response['alternateAuthorizeUrl'] = $alternate_authorization_url;
|
1176 |
return $response;
|
1177 |
}
|
1178 |
);
|
@@ -1659,16 +1636,15 @@ class Manager {
|
|
1659 |
* This function will automatically perform "soft" or "hard" disconnect depending on whether other plugins are using the connection.
|
1660 |
* This is a proxy method to simplify the Connection package API.
|
1661 |
*
|
1662 |
-
* @see Manager::
|
1663 |
-
* @see Manager::disconnect_site_wpcom()
|
1664 |
-
* @see Manager::delete_all_connection_tokens()
|
1665 |
*
|
|
|
|
|
1666 |
* @return bool
|
1667 |
*/
|
1668 |
-
public function remove_connection() {
|
1669 |
-
|
1670 |
-
$this->
|
1671 |
-
$this->delete_all_connection_tokens();
|
1672 |
|
1673 |
return true;
|
1674 |
}
|
@@ -1999,8 +1975,13 @@ class Manager {
|
|
1999 |
* Forgets all connection details and tells the Jetpack servers to do the same.
|
2000 |
*
|
2001 |
* @param boolean $disconnect_wpcom Should disconnect_site_wpcom be called.
|
|
|
2002 |
*/
|
2003 |
-
public function disconnect_site( $disconnect_wpcom = true ) {
|
|
|
|
|
|
|
|
|
2004 |
wp_clear_scheduled_hook( 'jetpack_clean_nonces' );
|
2005 |
|
2006 |
( new Nonce_Handler() )->clean_all();
|
@@ -2018,10 +1999,10 @@ class Manager {
|
|
2018 |
$tracking = new Tracking();
|
2019 |
$tracking->record_user_event( 'disconnect_site', array() );
|
2020 |
|
2021 |
-
$this->disconnect_site_wpcom(
|
2022 |
}
|
2023 |
|
2024 |
-
$this->delete_all_connection_tokens(
|
2025 |
|
2026 |
// Remove tracked package versions, since they depend on the Jetpack Connection.
|
2027 |
delete_option( Package_Version_Tracker::PACKAGE_VERSION_OPTION );
|
@@ -2347,14 +2328,11 @@ class Manager {
|
|
2347 |
* Force plugin disconnect. After its called, the plugin will not be allowed to use the connection.
|
2348 |
* Note: this method does not remove any access tokens.
|
2349 |
*
|
|
|
2350 |
* @return bool
|
2351 |
*/
|
2352 |
public function disable_plugin() {
|
2353 |
-
|
2354 |
-
return false;
|
2355 |
-
}
|
2356 |
-
|
2357 |
-
return $this->plugin->disable();
|
2358 |
}
|
2359 |
|
2360 |
/**
|
@@ -2362,14 +2340,11 @@ class Manager {
|
|
2362 |
* After its called, the plugin will be allowed to use the connection again.
|
2363 |
* Note: this method does not initialize access tokens.
|
2364 |
*
|
|
|
2365 |
* @return bool
|
2366 |
*/
|
2367 |
public function enable_plugin() {
|
2368 |
-
|
2369 |
-
return false;
|
2370 |
-
}
|
2371 |
-
|
2372 |
-
return $this->plugin->enable();
|
2373 |
}
|
2374 |
|
2375 |
/**
|
@@ -2489,5 +2464,4 @@ class Manager {
|
|
2489 |
}
|
2490 |
return $stats;
|
2491 |
}
|
2492 |
-
|
2493 |
}
|
116 |
if ( defined( 'JETPACK__SANDBOX_DOMAIN' ) && JETPACK__SANDBOX_DOMAIN ) {
|
117 |
( new Server_Sandbox() )->init();
|
118 |
}
|
|
|
119 |
}
|
120 |
|
121 |
/**
|
347 |
* @todo Refactor to use proper nonce verification.
|
348 |
*/
|
349 |
private function internal_verify_xml_rpc_signature() {
|
350 |
+
// phpcs:disable WordPress.Security.NonceVerification.Recommended, WordPress.Security.ValidatedSanitizedInput.InputNotSanitized
|
351 |
// It's not for us.
|
352 |
if ( ! isset( $_GET['token'] ) || empty( $_GET['signature'] ) ) {
|
353 |
return false;
|
358 |
'timestamp' => isset( $_GET['timestamp'] ) ? wp_unslash( $_GET['timestamp'] ) : '',
|
359 |
'nonce' => isset( $_GET['nonce'] ) ? wp_unslash( $_GET['nonce'] ) : '',
|
360 |
'body_hash' => isset( $_GET['body-hash'] ) ? wp_unslash( $_GET['body-hash'] ) : '',
|
361 |
+
'method' => isset( $_SERVER['REQUEST_METHOD'] ) ? wp_unslash( $_SERVER['REQUEST_METHOD'] ) : null,
|
362 |
+
'url' => wp_unslash( ( isset( $_SERVER['HTTP_HOST'] ) ? $_SERVER['HTTP_HOST'] : null ) . ( isset( $_SERVER['REQUEST_URI'] ) ? $_SERVER['REQUEST_URI'] : null ) ), // Temp - will get real signature URL later.
|
363 |
'signature' => isset( $_GET['signature'] ) ? wp_unslash( $_GET['signature'] ) : '',
|
364 |
);
|
365 |
|
366 |
// phpcs:ignore WordPress.PHP.NoSilencedErrors.Discouraged
|
367 |
@list( $token_key, $version, $user_id ) = explode( ':', wp_unslash( $_GET['token'] ) );
|
368 |
+
// phpcs:enable WordPress.Security.NonceVerification.Recommended, WordPress.Security.ValidatedSanitizedInput.InputNotSanitized
|
369 |
|
370 |
$jetpack_api_version = Constants::get_constant( 'JETPACK__API_VERSION' );
|
371 |
|
458 |
|
459 |
// phpcs:disable WordPress.Security.NonceVerification.Recommended
|
460 |
$timestamp = (int) $_GET['timestamp'];
|
461 |
+
$nonce = wp_unslash( (string) $_GET['nonce'] ); // phpcs:ignore WordPress.Security.ValidatedSanitizedInput.InputNotSanitized -- WP Core doesn't sanitize nonces either.
|
462 |
// phpcs:enable WordPress.Security.NonceVerification.Recommended
|
463 |
|
464 |
// Use up the nonce regardless of whether the signature matches.
|
476 |
$signature_details['expected'] = $signature;
|
477 |
|
478 |
// phpcs:ignore WordPress.Security.NonceVerification.Recommended
|
479 |
+
if ( ! hash_equals( $signature, wp_unslash( $_GET['signature'] ) ) ) {
|
480 |
return new \WP_Error(
|
481 |
'signature_mismatch',
|
482 |
'Signature mismatch',
|
975 |
$api_base = Constants::get_constant( 'JETPACK__API_BASE' );
|
976 |
$api_version = '/' . Constants::get_constant( 'JETPACK__API_VERSION' ) . '/';
|
977 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
978 |
/**
|
979 |
* Filters the API URL that Jetpack uses for server communication.
|
980 |
*
|
1144 |
|
1145 |
$this->get_tokens()->update_blog_token( (string) $registration_details->jetpack_secret );
|
1146 |
|
|
|
1147 |
$alternate_authorization_url = isset( $registration_details->alternate_authorization_url ) ? $registration_details->alternate_authorization_url : '';
|
1148 |
|
|
|
|
|
|
|
|
|
|
|
1149 |
add_filter(
|
1150 |
'jetpack_register_site_rest_response',
|
1151 |
+
function ( $response ) use ( $alternate_authorization_url ) {
|
1152 |
+
$response['alternateAuthorizeUrl'] = $alternate_authorization_url;
|
|
|
1153 |
return $response;
|
1154 |
}
|
1155 |
);
|
1636 |
* This function will automatically perform "soft" or "hard" disconnect depending on whether other plugins are using the connection.
|
1637 |
* This is a proxy method to simplify the Connection package API.
|
1638 |
*
|
1639 |
+
* @see Manager::disconnect_site()
|
|
|
|
|
1640 |
*
|
1641 |
+
* @param boolean $disconnect_wpcom Should disconnect_site_wpcom be called.
|
1642 |
+
* @param bool $ignore_connected_plugins Delete the tokens even if there are other connected plugins.
|
1643 |
* @return bool
|
1644 |
*/
|
1645 |
+
public function remove_connection( $disconnect_wpcom = true, $ignore_connected_plugins = false ) {
|
1646 |
+
|
1647 |
+
$this->disconnect_site( $disconnect_wpcom, $ignore_connected_plugins );
|
|
|
1648 |
|
1649 |
return true;
|
1650 |
}
|
1975 |
* Forgets all connection details and tells the Jetpack servers to do the same.
|
1976 |
*
|
1977 |
* @param boolean $disconnect_wpcom Should disconnect_site_wpcom be called.
|
1978 |
+
* @param bool $ignore_connected_plugins Delete the tokens even if there are other connected plugins.
|
1979 |
*/
|
1980 |
+
public function disconnect_site( $disconnect_wpcom = true, $ignore_connected_plugins = true ) {
|
1981 |
+
if ( ! $ignore_connected_plugins && null !== $this->plugin && ! $this->plugin->is_only() ) {
|
1982 |
+
return false;
|
1983 |
+
}
|
1984 |
+
|
1985 |
wp_clear_scheduled_hook( 'jetpack_clean_nonces' );
|
1986 |
|
1987 |
( new Nonce_Handler() )->clean_all();
|
1999 |
$tracking = new Tracking();
|
2000 |
$tracking->record_user_event( 'disconnect_site', array() );
|
2001 |
|
2002 |
+
$this->disconnect_site_wpcom( $ignore_connected_plugins );
|
2003 |
}
|
2004 |
|
2005 |
+
$this->delete_all_connection_tokens( $ignore_connected_plugins );
|
2006 |
|
2007 |
// Remove tracked package versions, since they depend on the Jetpack Connection.
|
2008 |
delete_option( Package_Version_Tracker::PACKAGE_VERSION_OPTION );
|
2328 |
* Force plugin disconnect. After its called, the plugin will not be allowed to use the connection.
|
2329 |
* Note: this method does not remove any access tokens.
|
2330 |
*
|
2331 |
+
* @deprecated since 1.39.0
|
2332 |
* @return bool
|
2333 |
*/
|
2334 |
public function disable_plugin() {
|
2335 |
+
return null;
|
|
|
|
|
|
|
|
|
2336 |
}
|
2337 |
|
2338 |
/**
|
2340 |
* After its called, the plugin will be allowed to use the connection again.
|
2341 |
* Note: this method does not initialize access tokens.
|
2342 |
*
|
2343 |
+
* @deprecated since 1.39.0.
|
2344 |
* @return bool
|
2345 |
*/
|
2346 |
public function enable_plugin() {
|
2347 |
+
return null;
|
|
|
|
|
|
|
|
|
2348 |
}
|
2349 |
|
2350 |
/**
|
2464 |
}
|
2465 |
return $stats;
|
2466 |
}
|
|
|
2467 |
}
|
jetpack_vendor/automattic/jetpack-connection/src/class-package-version.php
CHANGED
@@ -12,7 +12,7 @@ namespace Automattic\Jetpack\Connection;
|
|
12 |
*/
|
13 |
class Package_Version {
|
14 |
|
15 |
-
const PACKAGE_VERSION = '1.
|
16 |
|
17 |
const PACKAGE_SLUG = 'connection';
|
18 |
|
12 |
*/
|
13 |
class Package_Version {
|
14 |
|
15 |
+
const PACKAGE_VERSION = '1.41.1';
|
16 |
|
17 |
const PACKAGE_SLUG = 'connection';
|
18 |
|
jetpack_vendor/automattic/jetpack-connection/src/class-plugin-storage.php
CHANGED
@@ -16,6 +16,12 @@ class Plugin_Storage {
|
|
16 |
|
17 |
const ACTIVE_PLUGINS_OPTION_NAME = 'jetpack_connection_active_plugins';
|
18 |
|
|
|
|
|
|
|
|
|
|
|
|
|
19 |
const PLUGINS_DISABLED_OPTION_NAME = 'jetpack_connection_disabled_plugins';
|
20 |
|
21 |
/**
|
@@ -93,18 +99,20 @@ class Plugin_Storage {
|
|
93 |
* Even if you don't use Jetpack Config, it may be introduced later by other plugins,
|
94 |
* so please make sure not to run the method too early in the code.
|
95 |
*
|
96 |
-
* @
|
|
|
|
|
97 |
*
|
98 |
* @return array|WP_Error
|
99 |
*/
|
100 |
-
public static function get_all( $
|
101 |
$maybe_error = self::ensure_configured();
|
102 |
|
103 |
if ( $maybe_error instanceof WP_Error ) {
|
104 |
return $maybe_error;
|
105 |
}
|
106 |
|
107 |
-
return
|
108 |
}
|
109 |
|
110 |
/**
|
@@ -164,6 +172,7 @@ class Plugin_Storage {
|
|
164 |
}
|
165 |
|
166 |
// If a plugin was activated or deactivated.
|
|
|
167 |
$number_of_plugins_differ = count( self::$plugins ) !== count( (array) get_option( self::ACTIVE_PLUGINS_OPTION_NAME, array() ) );
|
168 |
|
169 |
if ( $number_of_plugins_differ || true === self::$refresh_connected_plugins ) {
|
@@ -191,47 +200,38 @@ class Plugin_Storage {
|
|
191 |
/**
|
192 |
* Add the plugin to the set of disconnected ones.
|
193 |
*
|
|
|
|
|
194 |
* @param string $slug Plugin slug.
|
195 |
*
|
196 |
* @return bool
|
197 |
*/
|
198 |
-
public static function disable_plugin( $slug ) {
|
199 |
-
$disconnects = self::get_all_disabled_plugins();
|
200 |
-
|
201 |
-
if ( ! in_array( $slug, $disconnects, true ) ) {
|
202 |
-
$disconnects[] = $slug;
|
203 |
-
update_option( self::PLUGINS_DISABLED_OPTION_NAME, $disconnects );
|
204 |
-
}
|
205 |
-
|
206 |
return true;
|
207 |
}
|
208 |
|
209 |
/**
|
210 |
* Remove the plugin from the set of disconnected ones.
|
211 |
*
|
|
|
|
|
212 |
* @param string $slug Plugin slug.
|
213 |
*
|
214 |
* @return bool
|
215 |
*/
|
216 |
-
public static function enable_plugin( $slug ) {
|
217 |
-
$disconnects = self::get_all_disabled_plugins();
|
218 |
-
|
219 |
-
$slug_index = array_search( $slug, $disconnects, true );
|
220 |
-
if ( false !== $slug_index ) {
|
221 |
-
unset( $disconnects[ $slug_index ] );
|
222 |
-
update_option( self::PLUGINS_DISABLED_OPTION_NAME, $disconnects );
|
223 |
-
}
|
224 |
-
|
225 |
return true;
|
226 |
}
|
227 |
|
228 |
/**
|
229 |
* Get all plugins that were disconnected by user.
|
230 |
*
|
|
|
|
|
231 |
* @return array
|
232 |
*/
|
233 |
-
public static function get_all_disabled_plugins() {
|
234 |
-
return
|
235 |
}
|
236 |
|
237 |
/**
|
16 |
|
17 |
const ACTIVE_PLUGINS_OPTION_NAME = 'jetpack_connection_active_plugins';
|
18 |
|
19 |
+
/**
|
20 |
+
* Options where disabled plugins were stored
|
21 |
+
*
|
22 |
+
* @deprecated since 1.39.0.
|
23 |
+
* @var string
|
24 |
+
*/
|
25 |
const PLUGINS_DISABLED_OPTION_NAME = 'jetpack_connection_disabled_plugins';
|
26 |
|
27 |
/**
|
99 |
* Even if you don't use Jetpack Config, it may be introduced later by other plugins,
|
100 |
* so please make sure not to run the method too early in the code.
|
101 |
*
|
102 |
+
* @since 1.39.0 deprecated the $connected_only argument.
|
103 |
+
*
|
104 |
+
* @param null $deprecated null plugins that were explicitly disconnected. Deprecated, there's no such a thing as disconnecting only specific plugins anymore.
|
105 |
*
|
106 |
* @return array|WP_Error
|
107 |
*/
|
108 |
+
public static function get_all( $deprecated = null ) { // phpcs:ignore VariableAnalysis.CodeAnalysis.VariableAnalysis.UnusedVariable
|
109 |
$maybe_error = self::ensure_configured();
|
110 |
|
111 |
if ( $maybe_error instanceof WP_Error ) {
|
112 |
return $maybe_error;
|
113 |
}
|
114 |
|
115 |
+
return self::$plugins;
|
116 |
}
|
117 |
|
118 |
/**
|
172 |
}
|
173 |
|
174 |
// If a plugin was activated or deactivated.
|
175 |
+
// self::$plugins is populated in Config::ensure_options_connection().
|
176 |
$number_of_plugins_differ = count( self::$plugins ) !== count( (array) get_option( self::ACTIVE_PLUGINS_OPTION_NAME, array() ) );
|
177 |
|
178 |
if ( $number_of_plugins_differ || true === self::$refresh_connected_plugins ) {
|
200 |
/**
|
201 |
* Add the plugin to the set of disconnected ones.
|
202 |
*
|
203 |
+
* @deprecated since 1.39.0.
|
204 |
+
*
|
205 |
* @param string $slug Plugin slug.
|
206 |
*
|
207 |
* @return bool
|
208 |
*/
|
209 |
+
public static function disable_plugin( $slug ) { // phpcs:ignore VariableAnalysis.CodeAnalysis.VariableAnalysis.UnusedVariable
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
210 |
return true;
|
211 |
}
|
212 |
|
213 |
/**
|
214 |
* Remove the plugin from the set of disconnected ones.
|
215 |
*
|
216 |
+
* @deprecated since 1.39.0.
|
217 |
+
*
|
218 |
* @param string $slug Plugin slug.
|
219 |
*
|
220 |
* @return bool
|
221 |
*/
|
222 |
+
public static function enable_plugin( $slug ) { // phpcs:ignore VariableAnalysis.CodeAnalysis.VariableAnalysis.UnusedVariable
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
223 |
return true;
|
224 |
}
|
225 |
|
226 |
/**
|
227 |
* Get all plugins that were disconnected by user.
|
228 |
*
|
229 |
+
* @deprecated since 1.39.0.
|
230 |
+
*
|
231 |
* @return array
|
232 |
*/
|
233 |
+
public static function get_all_disabled_plugins() { // phpcs:ignore VariableAnalysis.CodeAnalysis.VariableAnalysis.UnusedVariable
|
234 |
+
return array();
|
235 |
}
|
236 |
|
237 |
/**
|
jetpack_vendor/automattic/jetpack-connection/src/class-plugin.php
CHANGED
@@ -91,28 +91,32 @@ class Plugin {
|
|
91 |
/**
|
92 |
* Add the plugin to the set of disconnected ones.
|
93 |
*
|
|
|
|
|
94 |
* @return bool
|
95 |
*/
|
96 |
public function disable() {
|
97 |
-
return
|
98 |
}
|
99 |
|
100 |
/**
|
101 |
* Remove the plugin from the set of disconnected ones.
|
102 |
*
|
|
|
|
|
103 |
* @return bool
|
104 |
*/
|
105 |
public function enable() {
|
106 |
-
return
|
107 |
}
|
108 |
|
109 |
/**
|
110 |
* Whether this plugin is allowed to use the connection.
|
111 |
*
|
|
|
112 |
* @return bool
|
113 |
*/
|
114 |
public function is_enabled() {
|
115 |
-
return
|
116 |
}
|
117 |
-
|
118 |
}
|
91 |
/**
|
92 |
* Add the plugin to the set of disconnected ones.
|
93 |
*
|
94 |
+
* @deprecated since 1.39.0.
|
95 |
+
*
|
96 |
* @return bool
|
97 |
*/
|
98 |
public function disable() {
|
99 |
+
return true;
|
100 |
}
|
101 |
|
102 |
/**
|
103 |
* Remove the plugin from the set of disconnected ones.
|
104 |
*
|
105 |
+
* @deprecated since 1.39.0.
|
106 |
+
*
|
107 |
* @return bool
|
108 |
*/
|
109 |
public function enable() {
|
110 |
+
return true;
|
111 |
}
|
112 |
|
113 |
/**
|
114 |
* Whether this plugin is allowed to use the connection.
|
115 |
*
|
116 |
+
* @deprecated since $next-version$$
|
117 |
* @return bool
|
118 |
*/
|
119 |
public function is_enabled() {
|
120 |
+
return true;
|
121 |
}
|
|
|
122 |
}
|
jetpack_vendor/automattic/jetpack-connection/src/class-rest-connector.php
CHANGED
@@ -145,7 +145,7 @@ class REST_Connector {
|
|
145 |
'/connection/plugins',
|
146 |
array(
|
147 |
'methods' => WP_REST_Server::READABLE,
|
148 |
-
'callback' => array(
|
149 |
'permission_callback' => __CLASS__ . '::connection_plugins_permission_check',
|
150 |
)
|
151 |
);
|
@@ -179,10 +179,6 @@ class REST_Connector {
|
|
179 |
'type' => 'string',
|
180 |
'required' => true,
|
181 |
),
|
182 |
-
'no_iframe' => array(
|
183 |
-
'description' => __( 'Disable In-Place connection flow and go straight to Calypso', 'jetpack-connection' ),
|
184 |
-
'type' => 'boolean',
|
185 |
-
),
|
186 |
'redirect_uri' => array(
|
187 |
'description' => __( 'URI of the admin page where the user should be redirected after connection flow', 'jetpack-connection' ),
|
188 |
'type' => 'string',
|
@@ -204,10 +200,6 @@ class REST_Connector {
|
|
204 |
'callback' => array( $this, 'connection_authorize_url' ),
|
205 |
'permission_callback' => __CLASS__ . '::user_connection_data_permission_check',
|
206 |
'args' => array(
|
207 |
-
'no_iframe' => array(
|
208 |
-
'description' => __( 'Disable In-Place connection flow and go straight to Calypso', 'jetpack-connection' ),
|
209 |
-
'type' => 'boolean',
|
210 |
-
),
|
211 |
'redirect_uri' => array(
|
212 |
'description' => __( 'URI of the admin page where the user should be redirected after connection flow', 'jetpack-connection' ),
|
213 |
'type' => 'string',
|
@@ -347,12 +339,15 @@ class REST_Connector {
|
|
347 |
/**
|
348 |
* Get plugins connected to the Jetpack.
|
349 |
*
|
|
|
|
|
350 |
* @since 1.13.1
|
|
|
351 |
*
|
352 |
* @return WP_REST_Response|WP_Error Response or error object, depending on the request result.
|
353 |
*/
|
354 |
-
public function get_connection_plugins() {
|
355 |
-
$plugins =
|
356 |
|
357 |
if ( is_wp_error( $plugins ) ) {
|
358 |
return $plugins;
|
@@ -365,7 +360,12 @@ class REST_Connector {
|
|
365 |
}
|
366 |
);
|
367 |
|
368 |
-
|
|
|
|
|
|
|
|
|
|
|
369 |
}
|
370 |
|
371 |
/**
|
@@ -531,13 +531,13 @@ class REST_Connector {
|
|
531 |
return false;
|
532 |
}
|
533 |
|
534 |
-
$signature = base64_decode( $_GET['signature'] ); // phpcs:ignore WordPress.PHP.DiscouragedPHPFunctions.obfuscation_base64_decode
|
535 |
|
536 |
$signature_data = wp_json_encode(
|
537 |
array(
|
538 |
-
'rest_route' => $_GET['rest_route'],
|
539 |
'timestamp' => (int) $_GET['timestamp'],
|
540 |
-
'url' => wp_unslash( $_GET['url'] ),
|
541 |
)
|
542 |
);
|
543 |
|
@@ -676,17 +676,9 @@ class REST_Connector {
|
|
676 |
$redirect_uri = $request->get_param( 'redirect_uri' ) ? admin_url( $request->get_param( 'redirect_uri' ) ) : null;
|
677 |
|
678 |
if ( class_exists( 'Jetpack' ) ) {
|
679 |
-
$authorize_url = \Jetpack::build_authorize_url( $redirect_uri
|
680 |
} else {
|
681 |
-
if ( ! $request->get_param( 'no_iframe' ) ) {
|
682 |
-
add_filter( 'jetpack_use_iframe_authorization_flow', '__return_true' );
|
683 |
-
}
|
684 |
-
|
685 |
$authorize_url = $this->connection->get_authorization_url( null, $redirect_uri );
|
686 |
-
|
687 |
-
if ( ! $request->get_param( 'no_iframe' ) ) {
|
688 |
-
remove_filter( 'jetpack_use_iframe_authorization_flow', '__return_true' );
|
689 |
-
}
|
690 |
}
|
691 |
|
692 |
/**
|
@@ -719,18 +711,9 @@ class REST_Connector {
|
|
719 |
* @return \WP_REST_Response|WP_Error
|
720 |
*/
|
721 |
public function connection_authorize_url( $request ) {
|
722 |
-
$redirect_uri
|
723 |
-
|
724 |
-
if ( ! $request->get_param( 'no_iframe' ) ) {
|
725 |
-
add_filter( 'jetpack_use_iframe_authorization_flow', '__return_true' );
|
726 |
-
}
|
727 |
-
|
728 |
$authorize_url = $this->connection->get_authorization_url( null, $redirect_uri );
|
729 |
|
730 |
-
if ( ! $request->get_param( 'no_iframe' ) ) {
|
731 |
-
remove_filter( 'jetpack_use_iframe_authorization_flow', '__return_true' );
|
732 |
-
}
|
733 |
-
|
734 |
return rest_ensure_response(
|
735 |
array(
|
736 |
'authorizeUrl' => $authorize_url,
|
145 |
'/connection/plugins',
|
146 |
array(
|
147 |
'methods' => WP_REST_Server::READABLE,
|
148 |
+
'callback' => array( __CLASS__, 'get_connection_plugins' ),
|
149 |
'permission_callback' => __CLASS__ . '::connection_plugins_permission_check',
|
150 |
)
|
151 |
);
|
179 |
'type' => 'string',
|
180 |
'required' => true,
|
181 |
),
|
|
|
|
|
|
|
|
|
182 |
'redirect_uri' => array(
|
183 |
'description' => __( 'URI of the admin page where the user should be redirected after connection flow', 'jetpack-connection' ),
|
184 |
'type' => 'string',
|
200 |
'callback' => array( $this, 'connection_authorize_url' ),
|
201 |
'permission_callback' => __CLASS__ . '::user_connection_data_permission_check',
|
202 |
'args' => array(
|
|
|
|
|
|
|
|
|
203 |
'redirect_uri' => array(
|
204 |
'description' => __( 'URI of the admin page where the user should be redirected after connection flow', 'jetpack-connection' ),
|
205 |
'type' => 'string',
|
339 |
/**
|
340 |
* Get plugins connected to the Jetpack.
|
341 |
*
|
342 |
+
* @param bool $rest_response Should we return a rest response or a simple array. Default to rest response.
|
343 |
+
*
|
344 |
* @since 1.13.1
|
345 |
+
* @since 1.38.0 Added $rest_response param.
|
346 |
*
|
347 |
* @return WP_REST_Response|WP_Error Response or error object, depending on the request result.
|
348 |
*/
|
349 |
+
public static function get_connection_plugins( $rest_response = true ) {
|
350 |
+
$plugins = ( new Manager() )->get_connected_plugins();
|
351 |
|
352 |
if ( is_wp_error( $plugins ) ) {
|
353 |
return $plugins;
|
360 |
}
|
361 |
);
|
362 |
|
363 |
+
if ( $rest_response ) {
|
364 |
+
return rest_ensure_response( array_values( $plugins ) );
|
365 |
+
}
|
366 |
+
|
367 |
+
return array_values( $plugins );
|
368 |
+
|
369 |
}
|
370 |
|
371 |
/**
|
531 |
return false;
|
532 |
}
|
533 |
|
534 |
+
$signature = base64_decode( filter_var( wp_unslash( $_GET['signature'] ) ) ); // phpcs:ignore WordPress.PHP.DiscouragedPHPFunctions.obfuscation_base64_decode
|
535 |
|
536 |
$signature_data = wp_json_encode(
|
537 |
array(
|
538 |
+
'rest_route' => filter_var( wp_unslash( $_GET['rest_route'] ) ),
|
539 |
'timestamp' => (int) $_GET['timestamp'],
|
540 |
+
'url' => filter_var( wp_unslash( $_GET['url'] ) ),
|
541 |
)
|
542 |
);
|
543 |
|
676 |
$redirect_uri = $request->get_param( 'redirect_uri' ) ? admin_url( $request->get_param( 'redirect_uri' ) ) : null;
|
677 |
|
678 |
if ( class_exists( 'Jetpack' ) ) {
|
679 |
+
$authorize_url = \Jetpack::build_authorize_url( $redirect_uri );
|
680 |
} else {
|
|
|
|
|
|
|
|
|
681 |
$authorize_url = $this->connection->get_authorization_url( null, $redirect_uri );
|
|
|
|
|
|
|
|
|
682 |
}
|
683 |
|
684 |
/**
|
711 |
* @return \WP_REST_Response|WP_Error
|
712 |
*/
|
713 |
public function connection_authorize_url( $request ) {
|
714 |
+
$redirect_uri = $request->get_param( 'redirect_uri' ) ? admin_url( $request->get_param( 'redirect_uri' ) ) : null;
|
|
|
|
|
|
|
|
|
|
|
715 |
$authorize_url = $this->connection->get_authorization_url( null, $redirect_uri );
|
716 |
|
|
|
|
|
|
|
|
|
717 |
return rest_ensure_response(
|
718 |
array(
|
719 |
'authorizeUrl' => $authorize_url,
|
jetpack_vendor/automattic/jetpack-connection/src/class-tokens.php
CHANGED
@@ -9,6 +9,9 @@ namespace Automattic\Jetpack\Connection;
|
|
9 |
|
10 |
use Automattic\Jetpack\Constants;
|
11 |
use Automattic\Jetpack\Roles;
|
|
|
|
|
|
|
12 |
use Jetpack_Options;
|
13 |
use WP_Error;
|
14 |
|
@@ -19,6 +22,11 @@ class Tokens {
|
|
19 |
|
20 |
const MAGIC_NORMAL_TOKEN_KEY = ';normal;';
|
21 |
|
|
|
|
|
|
|
|
|
|
|
22 |
/**
|
23 |
* Deletes all connection tokens and transients from the local Jetpack site.
|
24 |
*/
|
@@ -30,6 +38,8 @@ class Tokens {
|
|
30 |
'user_tokens',
|
31 |
)
|
32 |
);
|
|
|
|
|
33 |
}
|
34 |
|
35 |
/**
|
@@ -357,6 +367,11 @@ class Tokens {
|
|
357 |
* @return object|false
|
358 |
*/
|
359 |
public function get_access_token( $user_id = false, $token_key = false, $suppress_errors = true ) {
|
|
|
|
|
|
|
|
|
|
|
360 |
$possible_special_tokens = array();
|
361 |
$possible_normal_tokens = array();
|
362 |
$user_tokens = $this->get_user_tokens();
|
@@ -592,4 +607,85 @@ class Tokens {
|
|
592 |
public function update_user_tokens( $tokens ) {
|
593 |
return Jetpack_Options::update_option( 'user_tokens', $tokens );
|
594 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
595 |
}
|
9 |
|
10 |
use Automattic\Jetpack\Constants;
|
11 |
use Automattic\Jetpack\Roles;
|
12 |
+
use DateInterval;
|
13 |
+
use DateTime;
|
14 |
+
use Exception;
|
15 |
use Jetpack_Options;
|
16 |
use WP_Error;
|
17 |
|
22 |
|
23 |
const MAGIC_NORMAL_TOKEN_KEY = ';normal;';
|
24 |
|
25 |
+
/**
|
26 |
+
* Datetime format.
|
27 |
+
*/
|
28 |
+
const DATE_FORMAT_ATOM = 'Y-m-d\TH:i:sP';
|
29 |
+
|
30 |
/**
|
31 |
* Deletes all connection tokens and transients from the local Jetpack site.
|
32 |
*/
|
38 |
'user_tokens',
|
39 |
)
|
40 |
);
|
41 |
+
|
42 |
+
$this->remove_lock();
|
43 |
}
|
44 |
|
45 |
/**
|
367 |
* @return object|false
|
368 |
*/
|
369 |
public function get_access_token( $user_id = false, $token_key = false, $suppress_errors = true ) {
|
370 |
+
if ( $this->is_locked() ) {
|
371 |
+
$this->delete_all();
|
372 |
+
return false;
|
373 |
+
}
|
374 |
+
|
375 |
$possible_special_tokens = array();
|
376 |
$possible_normal_tokens = array();
|
377 |
$user_tokens = $this->get_user_tokens();
|
607 |
public function update_user_tokens( $tokens ) {
|
608 |
return Jetpack_Options::update_option( 'user_tokens', $tokens );
|
609 |
}
|
610 |
+
|
611 |
+
/**
|
612 |
+
* Lock the tokens to the current site URL.
|
613 |
+
*
|
614 |
+
* @param int $timespan How long the tokens should be locked, in seconds.
|
615 |
+
*
|
616 |
+
* @return bool
|
617 |
+
*/
|
618 |
+
public function set_lock( $timespan = HOUR_IN_SECONDS ) {
|
619 |
+
try {
|
620 |
+
$expires = ( new DateTime() )->add( DateInterval::createFromDateString( (int) $timespan . ' seconds' ) );
|
621 |
+
} catch ( Exception $e ) {
|
622 |
+
return false;
|
623 |
+
}
|
624 |
+
|
625 |
+
if ( false === $expires ) {
|
626 |
+
return false;
|
627 |
+
}
|
628 |
+
|
629 |
+
// phpcs:ignore WordPress.PHP.DiscouragedPHPFunctions.obfuscation_base64_encode
|
630 |
+
return Jetpack_Options::update_option( 'token_lock', $expires->format( static::DATE_FORMAT_ATOM ) . '|||' . base64_encode( Urls::site_url() ) );
|
631 |
+
}
|
632 |
+
|
633 |
+
/**
|
634 |
+
* Remove the site lock from tokens.
|
635 |
+
*
|
636 |
+
* @return bool
|
637 |
+
*/
|
638 |
+
public function remove_lock() {
|
639 |
+
Jetpack_Options::delete_option( 'token_lock' );
|
640 |
+
|
641 |
+
return true;
|
642 |
+
}
|
643 |
+
|
644 |
+
/**
|
645 |
+
* Check if the domain is locked, remove the lock if needed.
|
646 |
+
* Possible scenarios:
|
647 |
+
* - lock expired, site URL matches the lock URL: remove the lock, return false.
|
648 |
+
* - lock not expired, site URL matches the lock URL: return false.
|
649 |
+
* - site URL does not match the lock URL (expiration date is ignored): return true, do not remove the lock.
|
650 |
+
*
|
651 |
+
* @return bool
|
652 |
+
*/
|
653 |
+
public function is_locked() {
|
654 |
+
$the_lock = Jetpack_Options::get_option( 'token_lock' );
|
655 |
+
if ( ! $the_lock ) {
|
656 |
+
// Not locked.
|
657 |
+
return false;
|
658 |
+
}
|
659 |
+
|
660 |
+
$the_lock = explode( '|||', $the_lock, 2 );
|
661 |
+
if ( count( $the_lock ) !== 2 ) {
|
662 |
+
// Something's wrong with the lock.
|
663 |
+
$this->remove_lock();
|
664 |
+
return false;
|
665 |
+
}
|
666 |
+
|
667 |
+
// phpcs:ignore WordPress.PHP.DiscouragedPHPFunctions.obfuscation_base64_decode
|
668 |
+
$locked_site_url = base64_decode( $the_lock[1] );
|
669 |
+
$expires = $the_lock[0];
|
670 |
+
|
671 |
+
$expiration_date = DateTime::createFromFormat( static::DATE_FORMAT_ATOM, $expires );
|
672 |
+
if ( false === $expiration_date || ! $locked_site_url ) {
|
673 |
+
// Something's wrong with the lock.
|
674 |
+
$this->remove_lock();
|
675 |
+
return false;
|
676 |
+
}
|
677 |
+
|
678 |
+
if ( Urls::site_url() === $locked_site_url ) {
|
679 |
+
if ( new DateTime() > $expiration_date ) {
|
680 |
+
// Site lock expired.
|
681 |
+
// Site URL matches, removing the lock.
|
682 |
+
$this->remove_lock();
|
683 |
+
}
|
684 |
+
|
685 |
+
return false;
|
686 |
+
}
|
687 |
+
|
688 |
+
// Site URL doesn't match.
|
689 |
+
return true;
|
690 |
+
}
|
691 |
}
|
jetpack_vendor/automattic/jetpack-connection/src/class-tracking.php
CHANGED
@@ -15,6 +15,7 @@ class Tracking {
|
|
15 |
* The assets version.
|
16 |
*
|
17 |
* @since 1.13.1
|
|
|
18 |
*
|
19 |
* @var string Assets version.
|
20 |
*/
|
@@ -71,7 +72,7 @@ class Tracking {
|
|
71 |
// Check for nonce.
|
72 |
if (
|
73 |
empty( $_REQUEST['tracksNonce'] )
|
74 |
-
|| ! wp_verify_nonce( $_REQUEST['tracksNonce'], 'jp-tracks-ajax-nonce' )
|
75 |
) {
|
76 |
wp_send_json_error(
|
77 |
__( 'You aren’t authorized to do that.', 'jetpack-connection' ),
|
@@ -89,13 +90,13 @@ class Tracking {
|
|
89 |
$tracks_data = array();
|
90 |
if ( 'click' === $_REQUEST['tracksEventType'] && isset( $_REQUEST['tracksEventProp'] ) ) {
|
91 |
if ( is_array( $_REQUEST['tracksEventProp'] ) ) {
|
92 |
-
$tracks_data = $_REQUEST['tracksEventProp'];
|
93 |
} else {
|
94 |
-
$tracks_data = array( 'clicked' => $_REQUEST['tracksEventProp'] );
|
95 |
}
|
96 |
}
|
97 |
|
98 |
-
$this->record_user_event( $_REQUEST['tracksEventName'], $tracks_data, null, false );
|
99 |
|
100 |
wp_send_json_success();
|
101 |
}
|
@@ -116,38 +117,33 @@ class Tracking {
|
|
116 |
true
|
117 |
);
|
118 |
|
119 |
-
|
120 |
-
|
121 |
-
|
122 |
-
|
123 |
-
|
124 |
-
array( 'jp-tracks' ),
|
125 |
-
|
126 |
-
true
|
127 |
-
|
128 |
-
|
129 |
-
|
130 |
-
wp_register_script(
|
131 |
-
'jp-tracks-functions',
|
132 |
-
Assets::get_file_url_for_environment( 'js/tracks-callables.js', 'js/tracks-callables.js', __FILE__ ),
|
133 |
-
array( 'jp-tracks' ),
|
134 |
-
self::ASSETS_VERSION,
|
135 |
-
true
|
136 |
-
);
|
137 |
-
}
|
138 |
-
|
139 |
}
|
140 |
|
141 |
/**
|
142 |
* Enqueue script necessary for tracking.
|
143 |
*/
|
144 |
public function enqueue_tracks_scripts() {
|
145 |
-
|
146 |
'jptracks',
|
147 |
-
|
148 |
-
|
149 |
-
|
150 |
-
|
|
|
|
|
|
|
|
|
151 |
);
|
152 |
|
153 |
wp_localize_script(
|
@@ -175,9 +171,9 @@ class Tracking {
|
|
175 |
}
|
176 |
$site_url = get_option( 'siteurl' );
|
177 |
|
178 |
-
$data['_via_ua'] = isset( $_SERVER['HTTP_USER_AGENT'] ) ? $_SERVER['HTTP_USER_AGENT'] : '';
|
179 |
-
$data['_via_ip'] = isset( $_SERVER['REMOTE_ADDR'] ) ? $_SERVER['REMOTE_ADDR'] : '';
|
180 |
-
$data['_lg'] = isset( $_SERVER['HTTP_ACCEPT_LANGUAGE'] ) ? $_SERVER['HTTP_ACCEPT_LANGUAGE'] : '';
|
181 |
$data['blog_url'] = $site_url;
|
182 |
$data['blog_id'] = \Jetpack_Options::get_option( 'id' );
|
183 |
|
@@ -313,7 +309,7 @@ class Tracking {
|
|
313 |
}
|
314 |
|
315 |
if ( ! isset( $_COOKIE['tk_ai'] ) && ! headers_sent() ) {
|
316 |
-
setcookie( 'tk_ai', $anon_id );
|
317 |
}
|
318 |
|
319 |
return array(
|
15 |
* The assets version.
|
16 |
*
|
17 |
* @since 1.13.1
|
18 |
+
* @deprecated since 1.40.1
|
19 |
*
|
20 |
* @var string Assets version.
|
21 |
*/
|
72 |
// Check for nonce.
|
73 |
if (
|
74 |
empty( $_REQUEST['tracksNonce'] )
|
75 |
+
|| ! wp_verify_nonce( $_REQUEST['tracksNonce'], 'jp-tracks-ajax-nonce' ) // phpcs:ignore WordPress.Security.ValidatedSanitizedInput -- WP core doesn't pre-sanitize nonces either.
|
76 |
) {
|
77 |
wp_send_json_error(
|
78 |
__( 'You aren’t authorized to do that.', 'jetpack-connection' ),
|
90 |
$tracks_data = array();
|
91 |
if ( 'click' === $_REQUEST['tracksEventType'] && isset( $_REQUEST['tracksEventProp'] ) ) {
|
92 |
if ( is_array( $_REQUEST['tracksEventProp'] ) ) {
|
93 |
+
$tracks_data = array_map( 'filter_var', wp_unslash( $_REQUEST['tracksEventProp'] ) );
|
94 |
} else {
|
95 |
+
$tracks_data = array( 'clicked' => filter_var( wp_unslash( $_REQUEST['tracksEventProp'] ) ) );
|
96 |
}
|
97 |
}
|
98 |
|
99 |
+
$this->record_user_event( filter_var( wp_unslash( $_REQUEST['tracksEventName'] ) ), $tracks_data, null, false );
|
100 |
|
101 |
wp_send_json_success();
|
102 |
}
|
117 |
true
|
118 |
);
|
119 |
|
120 |
+
Assets::register_script(
|
121 |
+
'jp-tracks-functions',
|
122 |
+
'../dist/tracks-callables.js',
|
123 |
+
__FILE__,
|
124 |
+
array(
|
125 |
+
'dependencies' => array( 'jp-tracks' ),
|
126 |
+
'enqueue' => $enqueue,
|
127 |
+
'in_footer' => true,
|
128 |
+
'nonmin_path' => 'js/tracks-callables.js',
|
129 |
+
)
|
130 |
+
);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
131 |
}
|
132 |
|
133 |
/**
|
134 |
* Enqueue script necessary for tracking.
|
135 |
*/
|
136 |
public function enqueue_tracks_scripts() {
|
137 |
+
Assets::register_script(
|
138 |
'jptracks',
|
139 |
+
'../dist/tracks-ajax.js',
|
140 |
+
__FILE__,
|
141 |
+
array(
|
142 |
+
'dependencies' => array( 'jquery' ),
|
143 |
+
'enqueue' => true,
|
144 |
+
'in_footer' => true,
|
145 |
+
'nonmin_path' => 'js/tracks-ajax.js',
|
146 |
+
)
|
147 |
);
|
148 |
|
149 |
wp_localize_script(
|
171 |
}
|
172 |
$site_url = get_option( 'siteurl' );
|
173 |
|
174 |
+
$data['_via_ua'] = isset( $_SERVER['HTTP_USER_AGENT'] ) ? filter_var( wp_unslash( $_SERVER['HTTP_USER_AGENT'] ) ) : '';
|
175 |
+
$data['_via_ip'] = isset( $_SERVER['REMOTE_ADDR'] ) ? filter_var( wp_unslash( $_SERVER['REMOTE_ADDR'] ) ) : '';
|
176 |
+
$data['_lg'] = isset( $_SERVER['HTTP_ACCEPT_LANGUAGE'] ) ? filter_var( wp_unslash( $_SERVER['HTTP_ACCEPT_LANGUAGE'] ) ) : '';
|
177 |
$data['blog_url'] = $site_url;
|
178 |
$data['blog_id'] = \Jetpack_Options::get_option( 'id' );
|
179 |
|
309 |
}
|
310 |
|
311 |
if ( ! isset( $_COOKIE['tk_ai'] ) && ! headers_sent() ) {
|
312 |
+
setcookie( 'tk_ai', $anon_id, 0, COOKIEPATH, COOKIE_DOMAIN, is_ssl(), false ); // phpcs:ignore Jetpack.Functions.SetCookie -- This is a random string and should be fine.
|
313 |
}
|
314 |
|
315 |
return array(
|
jetpack_vendor/automattic/jetpack-connection/src/class-webhooks.php
CHANGED
@@ -7,7 +7,9 @@
|
|
7 |
|
8 |
namespace Automattic\Jetpack\Connection;
|
9 |
|
|
|
10 |
use Automattic\Jetpack\Roles;
|
|
|
11 |
use Automattic\Jetpack\Tracking;
|
12 |
use Jetpack_Options;
|
13 |
|
@@ -68,6 +70,11 @@ class Webhooks {
|
|
68 |
}
|
69 |
}
|
70 |
|
|
|
|
|
|
|
|
|
|
|
71 |
// phpcs:ignore WordPress.Security.NonceVerification.Recommended
|
72 |
if ( empty( $_GET['action'] ) ) {
|
73 |
return;
|
@@ -157,4 +164,48 @@ class Webhooks {
|
|
157 |
protected function do_exit() {
|
158 |
exit;
|
159 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
160 |
}
|
7 |
|
8 |
namespace Automattic\Jetpack\Connection;
|
9 |
|
10 |
+
use Automattic\Jetpack\CookieState;
|
11 |
use Automattic\Jetpack\Roles;
|
12 |
+
use Automattic\Jetpack\Status\Host;
|
13 |
use Automattic\Jetpack\Tracking;
|
14 |
use Jetpack_Options;
|
15 |
|
70 |
}
|
71 |
}
|
72 |
|
73 |
+
// phpcs:ignore WordPress.Security.NonceVerification.Recommended
|
74 |
+
if ( isset( $_GET['connect_url_redirect'] ) ) {
|
75 |
+
$this->handle_connect_url_redirect();
|
76 |
+
}
|
77 |
+
|
78 |
// phpcs:ignore WordPress.Security.NonceVerification.Recommended
|
79 |
if ( empty( $_GET['action'] ) ) {
|
80 |
return;
|
164 |
protected function do_exit() {
|
165 |
exit;
|
166 |
}
|
167 |
+
|
168 |
+
/**
|
169 |
+
* Handle the `connect_url_redirect` action,
|
170 |
+
* which is usually called to repeat an attempt for user to authorize the connection.
|
171 |
+
*
|
172 |
+
* @return void
|
173 |
+
*/
|
174 |
+
public function handle_connect_url_redirect() {
|
175 |
+
// phpcs:ignore WordPress.Security.NonceVerification.Recommended -- no site changes.
|
176 |
+
$from = ! empty( $_GET['from'] ) ? sanitize_text_field( wp_unslash( $_GET['from'] ) ) : 'iframe';
|
177 |
+
|
178 |
+
// phpcs:ignore WordPress.Security.NonceVerification.Recommended, WordPress.Security.ValidatedSanitizedInput.InputNotSanitized -- no site changes, sanitization happens in get_authorization_url()
|
179 |
+
$redirect = ! empty( $_GET['redirect_after_auth'] ) ? wp_unslash( $_GET['redirect_after_auth'] ) : false;
|
180 |
+
|
181 |
+
add_filter( 'allowed_redirect_hosts', array( Host::class, 'allow_wpcom_environments' ) );
|
182 |
+
|
183 |
+
if ( ! $this->connection->is_user_connected() ) {
|
184 |
+
$connect_url = add_query_arg( 'from', $from, $this->connection->get_authorization_url( null, $redirect ) );
|
185 |
+
|
186 |
+
// phpcs:ignore WordPress.Security.NonceVerification.Recommended -- no site changes.
|
187 |
+
if ( isset( $_GET['notes_iframe'] ) ) {
|
188 |
+
$connect_url .= '¬es_iframe';
|
189 |
+
}
|
190 |
+
wp_safe_redirect( $connect_url );
|
191 |
+
$this->do_exit();
|
192 |
+
} else {
|
193 |
+
// phpcs:ignore WordPress.Security.NonceVerification.Recommended -- no site changes.
|
194 |
+
if ( ! isset( $_GET['calypso_env'] ) ) {
|
195 |
+
( new CookieState() )->state( 'message', 'already_authorized' );
|
196 |
+
wp_safe_redirect( $redirect );
|
197 |
+
$this->do_exit();
|
198 |
+
} else {
|
199 |
+
$connect_url = add_query_arg(
|
200 |
+
array(
|
201 |
+
'from' => $from,
|
202 |
+
'already_authorized' => true,
|
203 |
+
),
|
204 |
+
$this->connection->get_authorization_url()
|
205 |
+
);
|
206 |
+
wp_safe_redirect( $connect_url );
|
207 |
+
$this->do_exit();
|
208 |
+
}
|
209 |
+
}
|
210 |
+
}
|
211 |
}
|
jetpack_vendor/automattic/jetpack-connection/src/js/tracks-ajax.js
CHANGED
@@ -1,10 +1,10 @@
|
|
1 |
/* global jpTracksAJAX */
|
2 |
( function ( $, jpTracksAJAX ) {
|
3 |
window.jpTracksAJAX = window.jpTracksAJAX || {};
|
4 |
-
|
5 |
|
6 |
window.jpTracksAJAX.record_ajax_event = function ( eventName, eventType, eventProp ) {
|
7 |
-
|
8 |
tracksNonce: jpTracksAJAX.jpTracksAJAX_nonce,
|
9 |
action: 'jetpack_tracks',
|
10 |
tracksEventType: eventType,
|
@@ -27,21 +27,22 @@
|
|
27 |
|
28 |
$( document ).ready( function () {
|
29 |
$( 'body' ).on( 'click', '.jptracks a, a.jptracks', function ( event ) {
|
30 |
-
|
31 |
// We know that the jptracks element is either this, or its ancestor
|
32 |
-
|
33 |
// We need an event name at least
|
34 |
-
|
35 |
if ( undefined === eventName ) {
|
36 |
return;
|
37 |
}
|
38 |
|
39 |
-
|
40 |
|
41 |
-
|
42 |
-
|
|
|
43 |
if ( url && target && '_self' !== target ) {
|
44 |
-
|
45 |
newTabWindow.opener = null;
|
46 |
}
|
47 |
|
1 |
/* global jpTracksAJAX */
|
2 |
( function ( $, jpTracksAJAX ) {
|
3 |
window.jpTracksAJAX = window.jpTracksAJAX || {};
|
4 |
+
const debugSet = localStorage.getItem( 'debug' ) === 'dops:analytics';
|
5 |
|
6 |
window.jpTracksAJAX.record_ajax_event = function ( eventName, eventType, eventProp ) {
|
7 |
+
const data = {
|
8 |
tracksNonce: jpTracksAJAX.jpTracksAJAX_nonce,
|
9 |
action: 'jetpack_tracks',
|
10 |
tracksEventType: eventType,
|
27 |
|
28 |
$( document ).ready( function () {
|
29 |
$( 'body' ).on( 'click', '.jptracks a, a.jptracks', function ( event ) {
|
30 |
+
const $this = $( event.target );
|
31 |
// We know that the jptracks element is either this, or its ancestor
|
32 |
+
const $jptracks = $this.closest( '.jptracks' );
|
33 |
// We need an event name at least
|
34 |
+
const eventName = $jptracks.attr( 'data-jptracks-name' );
|
35 |
if ( undefined === eventName ) {
|
36 |
return;
|
37 |
}
|
38 |
|
39 |
+
const eventProp = $jptracks.attr( 'data-jptracks-prop' ) || false;
|
40 |
|
41 |
+
const url = $this.attr( 'href' );
|
42 |
+
const target = $this.get( 0 ).target;
|
43 |
+
let newTabWindow = null;
|
44 |
if ( url && target && '_self' !== target ) {
|
45 |
+
newTabWindow = window.open( '', target );
|
46 |
newTabWindow.opener = null;
|
47 |
}
|
48 |
|
jetpack_vendor/automattic/jetpack-connection/src/js/tracks-callables.js
CHANGED
@@ -1,5 +1,5 @@
|
|
1 |
/**
|
2 |
-
* This was abstracted from wp-calypso's analytics lib: https://github.com/Automattic/wp-calypso/blob/
|
3 |
* Some stuff was removed like GA tracking and other things not necessary for Jetpack tracking.
|
4 |
*
|
5 |
* This library should only be used and loaded if the Jetpack site is connected.
|
@@ -8,18 +8,21 @@
|
|
8 |
// Load tracking scripts
|
9 |
window._tkq = window._tkq || [];
|
10 |
|
11 |
-
|
12 |
-
|
13 |
|
14 |
/**
|
15 |
-
*
|
16 |
-
*
|
|
|
|
|
|
|
17 |
*/
|
18 |
function buildQuerystring( group, name ) {
|
19 |
-
|
20 |
|
21 |
if ( 'object' === typeof group ) {
|
22 |
-
for (
|
23 |
uriComponent += '&x_' + encodeURIComponent( key ) + '=' + encodeURIComponent( group[ key ] );
|
24 |
}
|
25 |
} else {
|
@@ -29,7 +32,7 @@ function buildQuerystring( group, name ) {
|
|
29 |
return uriComponent;
|
30 |
}
|
31 |
|
32 |
-
|
33 |
initialize: function ( userId, username ) {
|
34 |
analytics.setUser( userId, username );
|
35 |
analytics.identifyUser();
|
@@ -37,7 +40,7 @@ var analytics = {
|
|
37 |
|
38 |
mc: {
|
39 |
bumpStat: function ( group, name ) {
|
40 |
-
|
41 |
new Image().src =
|
42 |
document.location.protocol +
|
43 |
'//pixel.wp.com/g.gif?v=wpcom-no-pv' +
|
@@ -81,3 +84,11 @@ var analytics = {
|
|
81 |
window._tkq.push( [ 'clearIdentity' ] );
|
82 |
},
|
83 |
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
/**
|
2 |
+
* This was abstracted from wp-calypso's analytics lib: https://github.com/Automattic/wp-calypso/blob/trunk/client/lib/analytics/README.md
|
3 |
* Some stuff was removed like GA tracking and other things not necessary for Jetpack tracking.
|
4 |
*
|
5 |
* This library should only be used and loaded if the Jetpack site is connected.
|
8 |
// Load tracking scripts
|
9 |
window._tkq = window._tkq || [];
|
10 |
|
11 |
+
let _user;
|
12 |
+
const debug = console.error; // eslint-disable-line no-console
|
13 |
|
14 |
/**
|
15 |
+
* Build a query string.
|
16 |
+
*
|
17 |
+
* @param {string|object} group - Stat group, or object mapping groups to names.
|
18 |
+
* @param {string} [name] - Stat name, when `group` is a string.
|
19 |
+
* @returns {string} Query string fragment.
|
20 |
*/
|
21 |
function buildQuerystring( group, name ) {
|
22 |
+
let uriComponent = '';
|
23 |
|
24 |
if ( 'object' === typeof group ) {
|
25 |
+
for ( const key in group ) {
|
26 |
uriComponent += '&x_' + encodeURIComponent( key ) + '=' + encodeURIComponent( group[ key ] );
|
27 |
}
|
28 |
} else {
|
32 |
return uriComponent;
|
33 |
}
|
34 |
|
35 |
+
const analytics = {
|
36 |
initialize: function ( userId, username ) {
|
37 |
analytics.setUser( userId, username );
|
38 |
analytics.identifyUser();
|
40 |
|
41 |
mc: {
|
42 |
bumpStat: function ( group, name ) {
|
43 |
+
const uriComponent = buildQuerystring( group, name ); // prints debug info
|
44 |
new Image().src =
|
45 |
document.location.protocol +
|
46 |
'//pixel.wp.com/g.gif?v=wpcom-no-pv' +
|
84 |
window._tkq.push( [ 'clearIdentity' ] );
|
85 |
},
|
86 |
};
|
87 |
+
|
88 |
+
if ( typeof module !== 'undefined' ) {
|
89 |
+
// Bundled by Webpack.
|
90 |
+
module.exports = analytics;
|
91 |
+
} else {
|
92 |
+
// Direct load.
|
93 |
+
window.analytics = analytics;
|
94 |
+
}
|
jetpack_vendor/automattic/jetpack-connection/src/webhooks/class-authorize-redirect.php
CHANGED
@@ -49,7 +49,7 @@ class Authorize_Redirect {
|
|
49 |
);
|
50 |
|
51 |
// phpcs:ignore WordPress.Security.NonceVerification.Recommended
|
52 |
-
$dest_url = empty( $_GET['dest_url'] ) ? null : $_GET['dest_url'];
|
53 |
|
54 |
if ( ! $dest_url || ( 0 === stripos( $dest_url, 'https://jetpack.com/' ) && 0 === stripos( $dest_url, 'https://wordpress.com/' ) ) ) {
|
55 |
// The destination URL is missing or invalid, nothing to do here.
|
49 |
);
|
50 |
|
51 |
// phpcs:ignore WordPress.Security.NonceVerification.Recommended
|
52 |
+
$dest_url = empty( $_GET['dest_url'] ) ? null : esc_url_raw( wp_unslash( $_GET['dest_url'] ) );
|
53 |
|
54 |
if ( ! $dest_url || ( 0 === stripos( $dest_url, 'https://jetpack.com/' ) && 0 === stripos( $dest_url, 'https://wordpress.com/' ) ) ) {
|
55 |
// The destination URL is missing or invalid, nothing to do here.
|
jetpack_vendor/automattic/jetpack-constants/CHANGELOG.md
CHANGED
@@ -5,6 +5,14 @@ All notable changes to this project will be documented in this file.
|
|
5 |
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
|
6 |
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
7 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
8 |
## [1.6.15] - 2022-01-25
|
9 |
### Changed
|
10 |
- Updated package dependencies.
|
@@ -122,6 +130,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
122 |
|
123 |
- Packages: Finish the constants package
|
124 |
|
|
|
|
|
125 |
[1.6.15]: https://github.com/Automattic/jetpack-constants/compare/v1.6.14...v1.6.15
|
126 |
[1.6.14]: https://github.com/Automattic/jetpack-constants/compare/v1.6.13...v1.6.14
|
127 |
[1.6.13]: https://github.com/Automattic/jetpack-constants/compare/v1.6.12...v1.6.13
|
5 |
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
|
6 |
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
7 |
|
8 |
+
## [1.6.17] - 2022-06-21
|
9 |
+
### Changed
|
10 |
+
- Renaming master to trunk.
|
11 |
+
|
12 |
+
## [1.6.16] - 2022-04-26
|
13 |
+
### Changed
|
14 |
+
- Updated package dependencies.
|
15 |
+
|
16 |
## [1.6.15] - 2022-01-25
|
17 |
### Changed
|
18 |
- Updated package dependencies.
|
130 |
|
131 |
- Packages: Finish the constants package
|
132 |
|
133 |
+
[1.6.17]: https://github.com/Automattic/jetpack-constants/compare/v1.6.16...v1.6.17
|
134 |
+
[1.6.16]: https://github.com/Automattic/jetpack-constants/compare/v1.6.15...v1.6.16
|
135 |
[1.6.15]: https://github.com/Automattic/jetpack-constants/compare/v1.6.14...v1.6.15
|
136 |
[1.6.14]: https://github.com/Automattic/jetpack-constants/compare/v1.6.13...v1.6.14
|
137 |
[1.6.13]: https://github.com/Automattic/jetpack-constants/compare/v1.6.12...v1.6.13
|
jetpack_vendor/automattic/jetpack-constants/composer.json
CHANGED
@@ -7,7 +7,7 @@
|
|
7 |
"require-dev": {
|
8 |
"brain/monkey": "2.6.1",
|
9 |
"yoast/phpunit-polyfills": "1.0.3",
|
10 |
-
"automattic/jetpack-changelogger": "^3.
|
11 |
},
|
12 |
"autoload": {
|
13 |
"classmap": [
|
@@ -25,7 +25,6 @@
|
|
25 |
"@composer phpunit"
|
26 |
]
|
27 |
},
|
28 |
-
"repositories": [],
|
29 |
"minimum-stability": "dev",
|
30 |
"prefer-stable": true,
|
31 |
"extra": {
|
@@ -35,7 +34,7 @@
|
|
35 |
"link-template": "https://github.com/Automattic/jetpack-constants/compare/v${old}...v${new}"
|
36 |
},
|
37 |
"branch-alias": {
|
38 |
-
"dev-
|
39 |
}
|
40 |
}
|
41 |
}
|
7 |
"require-dev": {
|
8 |
"brain/monkey": "2.6.1",
|
9 |
"yoast/phpunit-polyfills": "1.0.3",
|
10 |
+
"automattic/jetpack-changelogger": "^3.1"
|
11 |
},
|
12 |
"autoload": {
|
13 |
"classmap": [
|
25 |
"@composer phpunit"
|
26 |
]
|
27 |
},
|
|
|
28 |
"minimum-stability": "dev",
|
29 |
"prefer-stable": true,
|
30 |
"extra": {
|
34 |
"link-template": "https://github.com/Automattic/jetpack-constants/compare/v${old}...v${new}"
|
35 |
},
|
36 |
"branch-alias": {
|
37 |
+
"dev-trunk": "1.6.x-dev"
|
38 |
}
|
39 |
}
|
40 |
}
|
jetpack_vendor/automattic/jetpack-device-detection/CHANGELOG.md
CHANGED
@@ -5,6 +5,18 @@ All notable changes to this project will be documented in this file.
|
|
5 |
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
|
6 |
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
7 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
8 |
## [1.4.14] - 2022-03-29
|
9 |
### Changed
|
10 |
- Microperformance: Use === null instead of is_null
|
@@ -108,6 +120,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
108 |
|
109 |
- Moving jetpack_is_mobile into a package
|
110 |
|
|
|
|
|
|
|
111 |
[1.4.14]: https://github.com/Automattic/jetpack-device-detection/compare/v1.4.13...v1.4.14
|
112 |
[1.4.13]: https://github.com/Automattic/jetpack-device-detection/compare/v1.4.12...v1.4.13
|
113 |
[1.4.12]: https://github.com/Automattic/jetpack-device-detection/compare/v1.4.11...v1.4.12
|
5 |
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
|
6 |
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
7 |
|
8 |
+
## [1.4.17] - 2022-06-21
|
9 |
+
### Changed
|
10 |
+
- Renaming master to trunk.
|
11 |
+
|
12 |
+
## [1.4.16] - 2022-04-26
|
13 |
+
### Changed
|
14 |
+
- Updated package dependencies.
|
15 |
+
|
16 |
+
## [1.4.15] - 2022-04-19
|
17 |
+
### Changed
|
18 |
+
- PHPCS: Fix `WordPress.Security.ValidatedSanitizedInput`
|
19 |
+
|
20 |
## [1.4.14] - 2022-03-29
|
21 |
### Changed
|
22 |
- Microperformance: Use === null instead of is_null
|
120 |
|
121 |
- Moving jetpack_is_mobile into a package
|
122 |
|
123 |
+
[1.4.17]: https://github.com/Automattic/jetpack-device-detection/compare/v1.4.16...v1.4.17
|
124 |
+
[1.4.16]: https://github.com/Automattic/jetpack-device-detection/compare/v1.4.15...v1.4.16
|
125 |
+
[1.4.15]: https://github.com/Automattic/jetpack-device-detection/compare/v1.4.14...v1.4.15
|
126 |
[1.4.14]: https://github.com/Automattic/jetpack-device-detection/compare/v1.4.13...v1.4.14
|
127 |
[1.4.13]: https://github.com/Automattic/jetpack-device-detection/compare/v1.4.12...v1.4.13
|
128 |
[1.4.12]: https://github.com/Automattic/jetpack-device-detection/compare/v1.4.11...v1.4.12
|
jetpack_vendor/automattic/jetpack-device-detection/composer.json
CHANGED
@@ -6,7 +6,7 @@
|
|
6 |
"require": {},
|
7 |
"require-dev": {
|
8 |
"yoast/phpunit-polyfills": "1.0.3",
|
9 |
-
"automattic/jetpack-changelogger": "^3.
|
10 |
},
|
11 |
"autoload": {
|
12 |
"classmap": [
|
@@ -33,7 +33,7 @@
|
|
33 |
"link-template": "https://github.com/Automattic/jetpack-device-detection/compare/v${old}...v${new}"
|
34 |
},
|
35 |
"branch-alias": {
|
36 |
-
"dev-
|
37 |
}
|
38 |
}
|
39 |
}
|
6 |
"require": {},
|
7 |
"require-dev": {
|
8 |
"yoast/phpunit-polyfills": "1.0.3",
|
9 |
+
"automattic/jetpack-changelogger": "^3.1"
|
10 |
},
|
11 |
"autoload": {
|
12 |
"classmap": [
|
33 |
"link-template": "https://github.com/Automattic/jetpack-device-detection/compare/v${old}...v${new}"
|
34 |
},
|
35 |
"branch-alias": {
|
36 |
+
"dev-trunk": "1.4.x-dev"
|
37 |
}
|
38 |
}
|
39 |
}
|
jetpack_vendor/automattic/jetpack-device-detection/src/class-device-detection.php
CHANGED
@@ -7,7 +7,10 @@
|
|
7 |
|
8 |
namespace Automattic\Jetpack;
|
9 |
|
|
|
|
|
10 |
use Automattic\Jetpack\Device_Detection\User_Agent_Info;
|
|
|
11 |
|
12 |
/**
|
13 |
* Class Device_Detection
|
@@ -145,12 +148,17 @@ class Device_Detection {
|
|
145 |
$kind = 'any';
|
146 |
}
|
147 |
|
148 |
-
if ( empty( $_SERVER['HTTP_USER_AGENT'] )
|
|
|
|
|
|
|
|
|
|
|
149 |
return false;
|
150 |
}
|
151 |
|
152 |
// Remove Samsung Galaxy tablets (SCH-I800) from being mobile devices.
|
153 |
-
if ( strpos(
|
154 |
return false;
|
155 |
}
|
156 |
|
@@ -174,7 +182,6 @@ class Device_Detection {
|
|
174 |
if ( ! $kinds['smart'] ) {
|
175 |
// if smart, we are not dumb so no need to check.
|
176 |
$dumb_agents = $ua_info->dumb_agents;
|
177 |
-
$agent = strtolower( $_SERVER['HTTP_USER_AGENT'] );
|
178 |
|
179 |
foreach ( $dumb_agents as $dumb_agent ) {
|
180 |
if ( false !== strpos( $agent, $dumb_agent ) ) {
|
@@ -189,7 +196,7 @@ class Device_Detection {
|
|
189 |
if ( isset( $_SERVER['HTTP_X_WAP_PROFILE'] ) ) {
|
190 |
$kinds['dumb'] = true;
|
191 |
$matched_agent = 'http_x_wap_profile';
|
192 |
-
} elseif ( isset( $_SERVER['HTTP_ACCEPT'] ) && ( preg_match( '/wap\.|\.wap/i', $_SERVER['HTTP_ACCEPT'] ) || false !== strpos( strtolower( $_SERVER['HTTP_ACCEPT'] ), 'application/vnd.wap.xhtml+xml' ) ) ) {
|
193 |
$kinds['dumb'] = true;
|
194 |
$matched_agent = 'vnd.wap.xhtml+xml';
|
195 |
}
|
7 |
|
8 |
namespace Automattic\Jetpack;
|
9 |
|
10 |
+
require_once __DIR__ . '/functions.php';
|
11 |
+
|
12 |
use Automattic\Jetpack\Device_Detection\User_Agent_Info;
|
13 |
+
use function Automattic\Jetpack\Device_Detection\wp_unslash;
|
14 |
|
15 |
/**
|
16 |
* Class Device_Detection
|
148 |
$kind = 'any';
|
149 |
}
|
150 |
|
151 |
+
if ( empty( $_SERVER['HTTP_USER_AGENT'] ) ) {
|
152 |
+
return false;
|
153 |
+
}
|
154 |
+
|
155 |
+
$agent = strtolower( filter_var( wp_unslash( $_SERVER['HTTP_USER_AGENT'] ) ) );
|
156 |
+
if ( strpos( $agent, 'ipad' ) ) {
|
157 |
return false;
|
158 |
}
|
159 |
|
160 |
// Remove Samsung Galaxy tablets (SCH-I800) from being mobile devices.
|
161 |
+
if ( strpos( $agent, 'sch-i800' ) ) {
|
162 |
return false;
|
163 |
}
|
164 |
|
182 |
if ( ! $kinds['smart'] ) {
|
183 |
// if smart, we are not dumb so no need to check.
|
184 |
$dumb_agents = $ua_info->dumb_agents;
|
|
|
185 |
|
186 |
foreach ( $dumb_agents as $dumb_agent ) {
|
187 |
if ( false !== strpos( $agent, $dumb_agent ) ) {
|
196 |
if ( isset( $_SERVER['HTTP_X_WAP_PROFILE'] ) ) {
|
197 |
$kinds['dumb'] = true;
|
198 |
$matched_agent = 'http_x_wap_profile';
|
199 |
+
} elseif ( isset( $_SERVER['HTTP_ACCEPT'] ) && ( preg_match( '/wap\.|\.wap/i', $_SERVER['HTTP_ACCEPT'] ) || false !== strpos( strtolower( $_SERVER['HTTP_ACCEPT'] ), 'application/vnd.wap.xhtml+xml' ) ) ) { // phpcs:ignore WordPress.Security.ValidatedSanitizedInput -- This is doing the validating.
|
200 |
$kinds['dumb'] = true;
|
201 |
$matched_agent = 'vnd.wap.xhtml+xml';
|
202 |
}
|
jetpack_vendor/automattic/jetpack-device-detection/src/class-user-agent-info.php
CHANGED
@@ -13,6 +13,8 @@
|
|
13 |
|
14 |
namespace Automattic\Jetpack\Device_Detection;
|
15 |
|
|
|
|
|
16 |
/**
|
17 |
* A class providing device properties detection.
|
18 |
*/
|
@@ -136,7 +138,7 @@ class User_Agent_Info {
|
|
136 |
$this->useragent = $ua;
|
137 |
} else {
|
138 |
if ( ! empty( $_SERVER['HTTP_USER_AGENT'] ) ) {
|
139 |
-
$this->useragent = strtolower( $_SERVER['HTTP_USER_AGENT'] );
|
140 |
}
|
141 |
}
|
142 |
}
|
@@ -433,7 +435,7 @@ class User_Agent_Info {
|
|
433 |
return false;
|
434 |
}
|
435 |
|
436 |
-
$ua = strtolower( $_SERVER['HTTP_USER_AGENT'] );
|
437 |
if ( ( strpos( $ua, 'iphone' ) !== false ) || ( strpos( $ua, 'ipod' ) !== false ) ) {
|
438 |
if ( self::is_opera_mini() || self::is_opera_mobile() || self::is_firefox_mobile() ) {
|
439 |
return false;
|
@@ -461,7 +463,7 @@ class User_Agent_Info {
|
|
461 |
return false;
|
462 |
}
|
463 |
|
464 |
-
$ua = strtolower( $_SERVER['HTTP_USER_AGENT'] );
|
465 |
$is_iphone = ( strpos( $ua, 'iphone' ) !== false ) || ( strpos( $ua, 'ipod' ) !== false );
|
466 |
$is_safari = ( false !== strpos( $ua, 'safari' ) );
|
467 |
|
@@ -489,7 +491,7 @@ class User_Agent_Info {
|
|
489 |
return false;
|
490 |
}
|
491 |
|
492 |
-
$ua = strtolower( $_SERVER['HTTP_USER_AGENT'] );
|
493 |
|
494 |
if ( strpos( $ua, 'crios/' ) !== false ) {
|
495 |
return true;
|
@@ -509,7 +511,7 @@ class User_Agent_Info {
|
|
509 |
return false;
|
510 |
}
|
511 |
|
512 |
-
$ua = strtolower( $_SERVER['HTTP_USER_AGENT'] );
|
513 |
|
514 |
if ( strpos( $ua, 'ipad' ) !== false ) {
|
515 |
return false;
|
@@ -533,7 +535,7 @@ class User_Agent_Info {
|
|
533 |
return false;
|
534 |
}
|
535 |
|
536 |
-
$ua = strtolower( $_SERVER['HTTP_USER_AGENT'] );
|
537 |
|
538 |
if ( strpos( $ua, 'twitter for ipad' ) !== false ) {
|
539 |
return true;
|
@@ -555,7 +557,7 @@ class User_Agent_Info {
|
|
555 |
return false;
|
556 |
}
|
557 |
|
558 |
-
$ua = strtolower( $_SERVER['HTTP_USER_AGENT'] );
|
559 |
|
560 |
if ( false === strpos( $ua, 'iphone' ) ) {
|
561 |
return false;
|
@@ -583,7 +585,7 @@ class User_Agent_Info {
|
|
583 |
return false;
|
584 |
}
|
585 |
|
586 |
-
$ua = strtolower( $_SERVER['HTTP_USER_AGENT'] );
|
587 |
|
588 |
if ( false === strpos( $ua, 'ipad' ) ) {
|
589 |
return false;
|
@@ -604,7 +606,7 @@ class User_Agent_Info {
|
|
604 |
return false;
|
605 |
}
|
606 |
|
607 |
-
$ua = strtolower( $_SERVER['HTTP_USER_AGENT'] );
|
608 |
if ( false !== strpos( $ua, 'wp-iphone' ) ) {
|
609 |
return true;
|
610 |
} else {
|
@@ -628,7 +630,7 @@ class User_Agent_Info {
|
|
628 |
return false;
|
629 |
}
|
630 |
|
631 |
-
$ua = strtolower( $_SERVER['HTTP_USER_AGENT'] );
|
632 |
|
633 |
$is_ipad = ( false !== strpos( $ua, 'ipad' ) );
|
634 |
$is_safari = ( false !== strpos( $ua, 'safari' ) );
|
@@ -655,7 +657,7 @@ class User_Agent_Info {
|
|
655 |
return false;
|
656 |
}
|
657 |
|
658 |
-
$ua = strtolower( $_SERVER['HTTP_USER_AGENT'] );
|
659 |
|
660 |
if ( strpos( $ua, 'fennec' ) !== false ) {
|
661 |
return true;
|
@@ -677,7 +679,7 @@ class User_Agent_Info {
|
|
677 |
return false;
|
678 |
}
|
679 |
|
680 |
-
$ua = strtolower( $_SERVER['HTTP_USER_AGENT'] );
|
681 |
|
682 |
if ( false !== strpos( $ua, 'firefox' ) && false === strpos( $ua, 'mobile' ) && false === strpos( $ua, 'tablet' ) ) {
|
683 |
return true;
|
@@ -697,7 +699,7 @@ class User_Agent_Info {
|
|
697 |
return false;
|
698 |
}
|
699 |
|
700 |
-
$ua = strtolower( $_SERVER['HTTP_USER_AGENT'] );
|
701 |
|
702 |
if ( strpos( $ua, 'mozilla' ) !== false && strpos( $ua, 'mobile' ) !== false && strpos( $ua, 'gecko' ) !== false && strpos( $ua, 'firefox' ) !== false ) {
|
703 |
return true;
|
@@ -718,7 +720,7 @@ class User_Agent_Info {
|
|
718 |
return false;
|
719 |
}
|
720 |
|
721 |
-
if ( false === strpos( $_SERVER['HTTP_USER_AGENT'], 'OPR/' ) ) {
|
722 |
return false;
|
723 |
}
|
724 |
|
@@ -742,7 +744,7 @@ class User_Agent_Info {
|
|
742 |
return false;
|
743 |
}
|
744 |
|
745 |
-
$ua = strtolower( $_SERVER['HTTP_USER_AGENT'] );
|
746 |
|
747 |
if ( strpos( $ua, 'opera' ) !== false && strpos( $ua, 'mobi' ) !== false ) {
|
748 |
return true;
|
@@ -769,7 +771,7 @@ class User_Agent_Info {
|
|
769 |
return false;
|
770 |
}
|
771 |
|
772 |
-
$ua = strtolower( $_SERVER['HTTP_USER_AGENT'] );
|
773 |
|
774 |
if ( strpos( $ua, 'opera' ) !== false && strpos( $ua, 'mini' ) !== false ) {
|
775 |
return true;
|
@@ -786,7 +788,7 @@ class User_Agent_Info {
|
|
786 |
if ( empty( $_SERVER['HTTP_USER_AGENT'] ) ) {
|
787 |
return false;
|
788 |
}
|
789 |
-
$ua = strtolower( $_SERVER['HTTP_USER_AGENT'] );
|
790 |
|
791 |
if ( self::is_opera_mini() ) {
|
792 |
if ( strpos( $ua, 'android' ) !== false || strpos( $ua, 'iphone' ) !== false || strpos( $ua, 'ipod' ) !== false
|
@@ -809,7 +811,7 @@ class User_Agent_Info {
|
|
809 |
return false;
|
810 |
}
|
811 |
|
812 |
-
$ua = strtolower( $_SERVER['HTTP_USER_AGENT'] );
|
813 |
|
814 |
if ( false === strpos( $ua, 'windows phone os 7' ) ) {
|
815 |
return false;
|
@@ -831,7 +833,7 @@ class User_Agent_Info {
|
|
831 |
return false;
|
832 |
}
|
833 |
|
834 |
-
$ua = strtolower( $_SERVER['HTTP_USER_AGENT'] );
|
835 |
if ( strpos( $ua, 'windows phone 8' ) === false ) {
|
836 |
return false;
|
837 |
} else {
|
@@ -850,7 +852,7 @@ class User_Agent_Info {
|
|
850 |
return false;
|
851 |
}
|
852 |
|
853 |
-
$ua = strtolower( $_SERVER['HTTP_USER_AGENT'] );
|
854 |
|
855 |
if ( false === strpos( $ua, 'webos' ) ) {
|
856 |
return false;
|
@@ -874,7 +876,7 @@ class User_Agent_Info {
|
|
874 |
return false;
|
875 |
}
|
876 |
|
877 |
-
$http_user_agent = strtolower( $_SERVER['HTTP_USER_AGENT'] );
|
878 |
if ( false !== strpos( $http_user_agent, 'hp-tablet' ) || false !== strpos( $http_user_agent, 'hpwos' ) || false !== strpos( $http_user_agent, 'touchpad' ) ) {
|
879 |
if ( self::is_opera_mini() || self::is_opera_mobile() || self::is_firefox_mobile() ) {
|
880 |
return false;
|
@@ -901,7 +903,7 @@ class User_Agent_Info {
|
|
901 |
return false;
|
902 |
}
|
903 |
|
904 |
-
$agent = strtolower( $_SERVER['HTTP_USER_AGENT'] );
|
905 |
if ( self::is_opera_mini() || self::is_opera_mobile() || self::is_firefox_mobile() ) {
|
906 |
return false;
|
907 |
}
|
@@ -932,7 +934,7 @@ class User_Agent_Info {
|
|
932 |
return false;
|
933 |
}
|
934 |
|
935 |
-
$agent = strtolower( $_SERVER['HTTP_USER_AGENT'] );
|
936 |
|
937 |
$pos_webkit = strpos( $agent, 'webkit' );
|
938 |
if ( false !== $pos_webkit ) {
|
@@ -966,7 +968,7 @@ class User_Agent_Info {
|
|
966 |
return false;
|
967 |
}
|
968 |
|
969 |
-
$agent = strtolower( $_SERVER['HTTP_USER_AGENT'] );
|
970 |
|
971 |
if ( strpos( $agent, 'series40' ) !== false ) {
|
972 |
if ( strpos( $agent, 'nokia' ) !== false || strpos( $agent, 'ovibrowser' ) !== false || strpos( $agent, 'nokiabrowser' ) !== false ) {
|
@@ -988,7 +990,7 @@ class User_Agent_Info {
|
|
988 |
return false;
|
989 |
}
|
990 |
|
991 |
-
$agent = strtolower( $_SERVER['HTTP_USER_AGENT'] );
|
992 |
|
993 |
if ( strpos( $agent, 'j2me/midp' ) !== false ) {
|
994 |
return true;
|
@@ -1007,7 +1009,7 @@ class User_Agent_Info {
|
|
1007 |
return false;
|
1008 |
}
|
1009 |
|
1010 |
-
$agent = strtolower( $_SERVER['HTTP_USER_AGENT'] );
|
1011 |
|
1012 |
$pos_maemo = strpos( $agent, 'maemo' );
|
1013 |
if ( false === $pos_maemo ) {
|
@@ -1035,7 +1037,7 @@ class User_Agent_Info {
|
|
1035 |
return false;
|
1036 |
}
|
1037 |
|
1038 |
-
$ua = strtolower( $_SERVER['HTTP_USER_AGENT'] );
|
1039 |
|
1040 |
if ( false === strpos( $ua, 'meego' ) ) {
|
1041 |
return false;
|
@@ -1057,7 +1059,7 @@ class User_Agent_Info {
|
|
1057 |
return false;
|
1058 |
}
|
1059 |
|
1060 |
-
$agent = strtolower( $_SERVER['HTTP_USER_AGENT'] );
|
1061 |
|
1062 |
$pos_webkit = strpos( $agent, 'webkit' );
|
1063 |
|
@@ -1078,7 +1080,7 @@ class User_Agent_Info {
|
|
1078 |
return false;
|
1079 |
}
|
1080 |
|
1081 |
-
$agent = strtolower( $_SERVER['HTTP_USER_AGENT'] );
|
1082 |
$pos_android = strpos( $agent, 'android' );
|
1083 |
if ( false !== $pos_android ) {
|
1084 |
if ( self::is_opera_mini() || self::is_opera_mobile() || self::is_firefox_mobile() ) {
|
@@ -1102,7 +1104,7 @@ class User_Agent_Info {
|
|
1102 |
return false;
|
1103 |
}
|
1104 |
|
1105 |
-
$agent = strtolower( $_SERVER['HTTP_USER_AGENT'] );
|
1106 |
|
1107 |
$pos_android = strpos( $agent, 'android' );
|
1108 |
$pos_mobile = strpos( $agent, 'mobile' );
|
@@ -1132,7 +1134,7 @@ class User_Agent_Info {
|
|
1132 |
return false;
|
1133 |
}
|
1134 |
|
1135 |
-
$agent = strtolower( $_SERVER['HTTP_USER_AGENT'] );
|
1136 |
$pos_silk = strpos( $agent, 'silk/' );
|
1137 |
$pos_silk_acc = strpos( $agent, 'silk-accelerated=' );
|
1138 |
if ( false !== $pos_silk && false !== $pos_silk_acc ) {
|
@@ -1153,7 +1155,7 @@ class User_Agent_Info {
|
|
1153 |
if ( empty( $_SERVER['HTTP_USER_AGENT'] ) ) {
|
1154 |
return false;
|
1155 |
}
|
1156 |
-
$agent = strtolower( $_SERVER['HTTP_USER_AGENT'] );
|
1157 |
$pos_kindle_touch = strpos( $agent, 'kindle/3.0+' );
|
1158 |
if ( false !== $pos_kindle_touch && false === self::is_kindle_fire() ) {
|
1159 |
return true;
|
@@ -1170,7 +1172,7 @@ class User_Agent_Info {
|
|
1170 |
return false;
|
1171 |
}
|
1172 |
|
1173 |
-
$agent = strtolower( $_SERVER['HTTP_USER_AGENT'] );
|
1174 |
$pos = strpos( $agent, 'msauthhost' );
|
1175 |
if ( false !== $pos ) {
|
1176 |
return true;
|
@@ -1187,7 +1189,7 @@ class User_Agent_Info {
|
|
1187 |
return false;
|
1188 |
}
|
1189 |
|
1190 |
-
$agent = strtolower( $_SERVER['HTTP_USER_AGENT'] );
|
1191 |
$pos = strpos( $agent, 'wp-windows8' );
|
1192 |
if ( false !== $pos ) {
|
1193 |
return true;
|
@@ -1204,7 +1206,7 @@ class User_Agent_Info {
|
|
1204 |
return false;
|
1205 |
}
|
1206 |
|
1207 |
-
$agent = strtolower( $_SERVER['HTTP_USER_AGENT'] );
|
1208 |
$pos = strpos( $agent, 'WordPressDesktop' );
|
1209 |
if ( false !== $pos ) {
|
1210 |
return true;
|
@@ -1224,7 +1226,7 @@ class User_Agent_Info {
|
|
1224 |
return false;
|
1225 |
}
|
1226 |
|
1227 |
-
$agent = strtolower( $_SERVER['HTTP_USER_AGENT'] );
|
1228 |
$pos_playbook = stripos( $agent, 'PlayBook' );
|
1229 |
$pos_rim_tablet = stripos( $agent, 'RIM Tablet' );
|
1230 |
|
@@ -1244,7 +1246,7 @@ class User_Agent_Info {
|
|
1244 |
return false;
|
1245 |
}
|
1246 |
|
1247 |
-
$agent = strtolower( $_SERVER['HTTP_USER_AGENT'] );
|
1248 |
|
1249 |
$pos_blackberry = strpos( $agent, 'blackberry' );
|
1250 |
if ( false !== $pos_blackberry ) {
|
@@ -1265,7 +1267,7 @@ class User_Agent_Info {
|
|
1265 |
if ( empty( $_SERVER['HTTP_USER_AGENT'] ) ) {
|
1266 |
return false;
|
1267 |
}
|
1268 |
-
$agent = strtolower( $_SERVER['HTTP_USER_AGENT'] );
|
1269 |
return ( strpos( $agent, 'bb10' ) !== false ) && ( strpos( $agent, 'mobile' ) !== false );
|
1270 |
}
|
1271 |
|
@@ -1295,7 +1297,7 @@ class User_Agent_Info {
|
|
1295 |
return 'blackberry-10';
|
1296 |
}
|
1297 |
|
1298 |
-
$agent = strtolower( $_SERVER['HTTP_USER_AGENT'] );
|
1299 |
|
1300 |
$pos_blackberry = stripos( $agent, 'blackberry' );
|
1301 |
if ( false === $pos_blackberry ) {
|
@@ -1380,7 +1382,7 @@ class User_Agent_Info {
|
|
1380 |
return false;
|
1381 |
}
|
1382 |
|
1383 |
-
$agent = strtolower( $_SERVER['HTTP_USER_AGENT'] );
|
1384 |
|
1385 |
if ( self::is_blackberry_10() ) {
|
1386 |
return 'blackberry-10';
|
@@ -1435,9 +1437,9 @@ class User_Agent_Info {
|
|
1435 |
return false;
|
1436 |
}
|
1437 |
|
1438 |
-
$agent = strtolower( $_SERVER['HTTP_USER_AGENT'] );
|
1439 |
|
1440 |
-
if ( isset( $_SERVER['X_USER_AGENT'] ) && preg_match( '|wp-webos|', $_SERVER['X_USER_AGENT'] ) ) {
|
1441 |
return true; // Wp4webos 1.1 or higher.
|
1442 |
}
|
1443 |
|
@@ -1467,7 +1469,7 @@ class User_Agent_Info {
|
|
1467 |
return false;
|
1468 |
}
|
1469 |
|
1470 |
-
$ua = strtolower( $_SERVER['HTTP_USER_AGENT'] );
|
1471 |
if ( strpos( $ua, 'nintendo 3ds' ) !== false ) {
|
1472 |
return true;
|
1473 |
}
|
@@ -1487,7 +1489,7 @@ class User_Agent_Info {
|
|
1487 |
}
|
1488 |
|
1489 |
if ( $is_bot === null ) {
|
1490 |
-
$is_bot = self::is_bot_user_agent( $_SERVER['HTTP_USER_AGENT'] );
|
1491 |
}
|
1492 |
|
1493 |
return $is_bot;
|
13 |
|
14 |
namespace Automattic\Jetpack\Device_Detection;
|
15 |
|
16 |
+
require_once __DIR__ . '/functions.php';
|
17 |
+
|
18 |
/**
|
19 |
* A class providing device properties detection.
|
20 |
*/
|
138 |
$this->useragent = $ua;
|
139 |
} else {
|
140 |
if ( ! empty( $_SERVER['HTTP_USER_AGENT'] ) ) {
|
141 |
+
$this->useragent = strtolower( wp_unslash( $_SERVER['HTTP_USER_AGENT'] ) ); // phpcs:ignore WordPress.Security.ValidatedSanitizedInput.InputNotSanitized -- This class is all about validating.
|
142 |
}
|
143 |
}
|
144 |
}
|
435 |
return false;
|
436 |
}
|
437 |
|
438 |
+
$ua = strtolower( wp_unslash( $_SERVER['HTTP_USER_AGENT'] ) ); // phpcs:ignore WordPress.Security.ValidatedSanitizedInput.InputNotSanitized -- This is validating.
|
439 |
if ( ( strpos( $ua, 'iphone' ) !== false ) || ( strpos( $ua, 'ipod' ) !== false ) ) {
|
440 |
if ( self::is_opera_mini() || self::is_opera_mobile() || self::is_firefox_mobile() ) {
|
441 |
return false;
|
463 |
return false;
|
464 |
}
|
465 |
|
466 |
+
$ua = strtolower( wp_unslash( $_SERVER['HTTP_USER_AGENT'] ) ); // phpcs:ignore WordPress.Security.ValidatedSanitizedInput.InputNotSanitized -- This is validating.
|
467 |
$is_iphone = ( strpos( $ua, 'iphone' ) !== false ) || ( strpos( $ua, 'ipod' ) !== false );
|
468 |
$is_safari = ( false !== strpos( $ua, 'safari' ) );
|
469 |
|
491 |
return false;
|
492 |
}
|
493 |
|
494 |
+
$ua = strtolower( wp_unslash( $_SERVER['HTTP_USER_AGENT'] ) ); // phpcs:ignore WordPress.Security.ValidatedSanitizedInput.InputNotSanitized -- This is validating.
|
495 |
|
496 |
if ( strpos( $ua, 'crios/' ) !== false ) {
|
497 |
return true;
|
511 |
return false;
|
512 |
}
|
513 |
|
514 |
+
$ua = strtolower( wp_unslash( $_SERVER['HTTP_USER_AGENT'] ) ); // phpcs:ignore WordPress.Security.ValidatedSanitizedInput.InputNotSanitized -- This is validating.
|
515 |
|
516 |
if ( strpos( $ua, 'ipad' ) !== false ) {
|
517 |
return false;
|
535 |
return false;
|
536 |
}
|
537 |
|
538 |
+
$ua = strtolower( wp_unslash( $_SERVER['HTTP_USER_AGENT'] ) ); // phpcs:ignore WordPress.Security.ValidatedSanitizedInput.InputNotSanitized -- This is validating.
|
539 |
|
540 |
if ( strpos( $ua, 'twitter for ipad' ) !== false ) {
|
541 |
return true;
|
557 |
return false;
|
558 |
}
|
559 |
|
560 |
+
$ua = strtolower( wp_unslash( $_SERVER['HTTP_USER_AGENT'] ) ); // phpcs:ignore WordPress.Security.ValidatedSanitizedInput.InputNotSanitized -- This is validating.
|
561 |
|
562 |
if ( false === strpos( $ua, 'iphone' ) ) {
|
563 |
return false;
|
585 |
return false;
|
586 |
}
|
587 |
|
588 |
+
$ua = strtolower( wp_unslash( $_SERVER['HTTP_USER_AGENT'] ) ); // phpcs:ignore WordPress.Security.ValidatedSanitizedInput.InputNotSanitized -- This is validating.
|
589 |
|
590 |
if ( false === strpos( $ua, 'ipad' ) ) {
|
591 |
return false;
|
606 |
return false;
|
607 |
}
|
608 |
|
609 |
+
$ua = strtolower( wp_unslash( $_SERVER['HTTP_USER_AGENT'] ) ); // phpcs:ignore WordPress.Security.ValidatedSanitizedInput.InputNotSanitized -- This is validating.
|
610 |
if ( false !== strpos( $ua, 'wp-iphone' ) ) {
|
611 |
return true;
|
612 |
} else {
|
630 |
return false;
|
631 |
}
|
632 |
|
633 |
+
$ua = strtolower( wp_unslash( $_SERVER['HTTP_USER_AGENT'] ) ); // phpcs:ignore WordPress.Security.ValidatedSanitizedInput.InputNotSanitized -- This is validating.
|
634 |
|
635 |
$is_ipad = ( false !== strpos( $ua, 'ipad' ) );
|
636 |
$is_safari = ( false !== strpos( $ua, 'safari' ) );
|
657 |
return false;
|
658 |
}
|
659 |
|
660 |
+
$ua = strtolower( wp_unslash( $_SERVER['HTTP_USER_AGENT'] ) ); // phpcs:ignore WordPress.Security.ValidatedSanitizedInput.InputNotSanitized -- This is validating.
|
661 |
|
662 |
if ( strpos( $ua, 'fennec' ) !== false ) {
|
663 |
return true;
|
679 |
return false;
|
680 |
}
|
681 |
|
682 |
+
$ua = strtolower( wp_unslash( $_SERVER['HTTP_USER_AGENT'] ) ); // phpcs:ignore WordPress.Security.ValidatedSanitizedInput.InputNotSanitized -- This is validating.
|
683 |
|
684 |
if ( false !== strpos( $ua, 'firefox' ) && false === strpos( $ua, 'mobile' ) && false === strpos( $ua, 'tablet' ) ) {
|
685 |
return true;
|
699 |
return false;
|
700 |
}
|
701 |
|
702 |
+
$ua = strtolower( wp_unslash( $_SERVER['HTTP_USER_AGENT'] ) ); // phpcs:ignore WordPress.Security.ValidatedSanitizedInput.InputNotSanitized -- This is validating.
|
703 |
|
704 |
if ( strpos( $ua, 'mozilla' ) !== false && strpos( $ua, 'mobile' ) !== false && strpos( $ua, 'gecko' ) !== false && strpos( $ua, 'firefox' ) !== false ) {
|
705 |
return true;
|
720 |
return false;
|
721 |
}
|
722 |
|
723 |
+
if ( false === strpos( wp_unslash( $_SERVER['HTTP_USER_AGENT'] ), 'OPR/' ) ) { // phpcs:ignore WordPress.Security.ValidatedSanitizedInput.InputNotSanitized -- This is validating.
|
724 |
return false;
|
725 |
}
|
726 |
|
744 |
return false;
|
745 |
}
|
746 |
|
747 |
+
$ua = strtolower( wp_unslash( $_SERVER['HTTP_USER_AGENT'] ) ); // phpcs:ignore WordPress.Security.ValidatedSanitizedInput.InputNotSanitized -- This is validating.
|
748 |
|
749 |
if ( strpos( $ua, 'opera' ) !== false && strpos( $ua, 'mobi' ) !== false ) {
|
750 |
return true;
|
771 |
return false;
|
772 |
}
|
773 |
|
774 |
+
$ua = strtolower( wp_unslash( $_SERVER['HTTP_USER_AGENT'] ) ); // phpcs:ignore WordPress.Security.ValidatedSanitizedInput.InputNotSanitized -- This is validating.
|
775 |
|
776 |
if ( strpos( $ua, 'opera' ) !== false && strpos( $ua, 'mini' ) !== false ) {
|
777 |
return true;
|
788 |
if ( empty( $_SERVER['HTTP_USER_AGENT'] ) ) {
|
789 |
return false;
|
790 |
}
|
791 |
+
$ua = strtolower( wp_unslash( $_SERVER['HTTP_USER_AGENT'] ) ); // phpcs:ignore WordPress.Security.ValidatedSanitizedInput.InputNotSanitized -- This is validating.
|
792 |
|
793 |
if ( self::is_opera_mini() ) {
|
794 |
if ( strpos( $ua, 'android' ) !== false || strpos( $ua, 'iphone' ) !== false || strpos( $ua, 'ipod' ) !== false
|
811 |
return false;
|
812 |
}
|
813 |
|
814 |
+
$ua = strtolower( wp_unslash( $_SERVER['HTTP_USER_AGENT'] ) ); // phpcs:ignore WordPress.Security.ValidatedSanitizedInput.InputNotSanitized -- This is validating.
|
815 |
|
816 |
if ( false === strpos( $ua, 'windows phone os 7' ) ) {
|
817 |
return false;
|
833 |
return false;
|
834 |
}
|
835 |
|
836 |
+
$ua = strtolower( wp_unslash( $_SERVER['HTTP_USER_AGENT'] ) ); // phpcs:ignore WordPress.Security.ValidatedSanitizedInput.InputNotSanitized -- This is validating.
|
837 |
if ( strpos( $ua, 'windows phone 8' ) === false ) {
|
838 |
return false;
|
839 |
} else {
|
852 |
return false;
|
853 |
}
|
854 |
|
855 |
+
$ua = strtolower( wp_unslash( $_SERVER['HTTP_USER_AGENT'] ) ); // phpcs:ignore WordPress.Security.ValidatedSanitizedInput.InputNotSanitized -- This is validating.
|
856 |
|
857 |
if ( false === strpos( $ua, 'webos' ) ) {
|
858 |
return false;
|
876 |
return false;
|
877 |
}
|
878 |
|
879 |
+
$http_user_agent = strtolower( wp_unslash( $_SERVER['HTTP_USER_AGENT'] ) ); // phpcs:ignore WordPress.Security.ValidatedSanitizedInput.InputNotSanitized -- This is validating.
|
880 |
if ( false !== strpos( $http_user_agent, 'hp-tablet' ) || false !== strpos( $http_user_agent, 'hpwos' ) || false !== strpos( $http_user_agent, 'touchpad' ) ) {
|
881 |
if ( self::is_opera_mini() || self::is_opera_mobile() || self::is_firefox_mobile() ) {
|
882 |
return false;
|
903 |
return false;
|
904 |
}
|
905 |
|
906 |
+
$agent = strtolower( wp_unslash( $_SERVER['HTTP_USER_AGENT'] ) ); // phpcs:ignore WordPress.Security.ValidatedSanitizedInput.InputNotSanitized -- This is validating.
|
907 |
if ( self::is_opera_mini() || self::is_opera_mobile() || self::is_firefox_mobile() ) {
|
908 |
return false;
|
909 |
}
|
934 |
return false;
|
935 |
}
|
936 |
|
937 |
+
$agent = strtolower( wp_unslash( $_SERVER['HTTP_USER_AGENT'] ) ); // phpcs:ignore WordPress.Security.ValidatedSanitizedInput.InputNotSanitized -- This is validating.
|
938 |
|
939 |
$pos_webkit = strpos( $agent, 'webkit' );
|
940 |
if ( false !== $pos_webkit ) {
|
968 |
return false;
|
969 |
}
|
970 |
|
971 |
+
$agent = strtolower( wp_unslash( $_SERVER['HTTP_USER_AGENT'] ) ); // phpcs:ignore WordPress.Security.ValidatedSanitizedInput.InputNotSanitized -- This is validating.
|
972 |
|
973 |
if ( strpos( $agent, 'series40' ) !== false ) {
|
974 |
if ( strpos( $agent, 'nokia' ) !== false || strpos( $agent, 'ovibrowser' ) !== false || strpos( $agent, 'nokiabrowser' ) !== false ) {
|
990 |
return false;
|
991 |
}
|
992 |
|
993 |
+
$agent = strtolower( wp_unslash( $_SERVER['HTTP_USER_AGENT'] ) ); // phpcs:ignore WordPress.Security.ValidatedSanitizedInput.InputNotSanitized -- This is validating.
|
994 |
|
995 |
if ( strpos( $agent, 'j2me/midp' ) !== false ) {
|
996 |
return true;
|
1009 |
return false;
|
1010 |
}
|
1011 |
|
1012 |
+
$agent = strtolower( wp_unslash( $_SERVER['HTTP_USER_AGENT'] ) ); // phpcs:ignore WordPress.Security.ValidatedSanitizedInput.InputNotSanitized -- This is validating.
|
1013 |
|
1014 |
$pos_maemo = strpos( $agent, 'maemo' );
|
1015 |
if ( false === $pos_maemo ) {
|
1037 |
return false;
|
1038 |
}
|
1039 |
|
1040 |
+
$ua = strtolower( wp_unslash( $_SERVER['HTTP_USER_AGENT'] ) ); // phpcs:ignore WordPress.Security.ValidatedSanitizedInput.InputNotSanitized -- This is validating.
|
1041 |
|
1042 |
if ( false === strpos( $ua, 'meego' ) ) {
|
1043 |
return false;
|
1059 |
return false;
|
1060 |
}
|
1061 |
|
1062 |
+
$agent = strtolower( wp_unslash( $_SERVER['HTTP_USER_AGENT'] ) ); // phpcs:ignore WordPress.Security.ValidatedSanitizedInput.InputNotSanitized -- This is validating.
|
1063 |
|
1064 |
$pos_webkit = strpos( $agent, 'webkit' );
|
1065 |
|
1080 |
return false;
|
1081 |
}
|
1082 |
|
1083 |
+
$agent = strtolower( wp_unslash( $_SERVER['HTTP_USER_AGENT'] ) ); // phpcs:ignore WordPress.Security.ValidatedSanitizedInput.InputNotSanitized -- This is validating.
|
1084 |
$pos_android = strpos( $agent, 'android' );
|
1085 |
if ( false !== $pos_android ) {
|
1086 |
if ( self::is_opera_mini() || self::is_opera_mobile() || self::is_firefox_mobile() ) {
|
1104 |
return false;
|
1105 |
}
|
1106 |
|
1107 |
+
$agent = strtolower( wp_unslash( $_SERVER['HTTP_USER_AGENT'] ) ); // phpcs:ignore WordPress.Security.ValidatedSanitizedInput.InputNotSanitized -- This is validating.
|
1108 |
|
1109 |
$pos_android = strpos( $agent, 'android' );
|
1110 |
$pos_mobile = strpos( $agent, 'mobile' );
|
1134 |
return false;
|
1135 |
}
|
1136 |
|
1137 |
+
$agent = strtolower( wp_unslash( $_SERVER['HTTP_USER_AGENT'] ) ); // phpcs:ignore WordPress.Security.ValidatedSanitizedInput.InputNotSanitized -- This is validating.
|
1138 |
$pos_silk = strpos( $agent, 'silk/' );
|
1139 |
$pos_silk_acc = strpos( $agent, 'silk-accelerated=' );
|
1140 |
if ( false !== $pos_silk && false !== $pos_silk_acc ) {
|
1155 |
if ( empty( $_SERVER['HTTP_USER_AGENT'] ) ) {
|
1156 |
return false;
|
1157 |
}
|
1158 |
+
$agent = strtolower( wp_unslash( $_SERVER['HTTP_USER_AGENT'] ) ); // phpcs:ignore WordPress.Security.ValidatedSanitizedInput.InputNotSanitized -- This is validating.
|
1159 |
$pos_kindle_touch = strpos( $agent, 'kindle/3.0+' );
|
1160 |
if ( false !== $pos_kindle_touch && false === self::is_kindle_fire() ) {
|
1161 |
return true;
|
1172 |
return false;
|
1173 |
}
|
1174 |
|
1175 |
+
$agent = strtolower( wp_unslash( $_SERVER['HTTP_USER_AGENT'] ) ); // phpcs:ignore WordPress.Security.ValidatedSanitizedInput.InputNotSanitized -- This is validating.
|
1176 |
$pos = strpos( $agent, 'msauthhost' );
|
1177 |
if ( false !== $pos ) {
|
1178 |
return true;
|
1189 |
return false;
|
1190 |
}
|
1191 |
|
1192 |
+
$agent = strtolower( wp_unslash( $_SERVER['HTTP_USER_AGENT'] ) ); // phpcs:ignore WordPress.Security.ValidatedSanitizedInput.InputNotSanitized -- This is validating.
|
1193 |
$pos = strpos( $agent, 'wp-windows8' );
|
1194 |
if ( false !== $pos ) {
|
1195 |
return true;
|
1206 |
return false;
|
1207 |
}
|
1208 |
|
1209 |
+
$agent = strtolower( wp_unslash( $_SERVER['HTTP_USER_AGENT'] ) ); // phpcs:ignore WordPress.Security.ValidatedSanitizedInput.InputNotSanitized -- This is validating.
|
1210 |
$pos = strpos( $agent, 'WordPressDesktop' );
|
1211 |
if ( false !== $pos ) {
|
1212 |
return true;
|
1226 |
return false;
|
1227 |
}
|
1228 |
|
1229 |
+
$agent = strtolower( wp_unslash( $_SERVER['HTTP_USER_AGENT'] ) ); // phpcs:ignore WordPress.Security.ValidatedSanitizedInput.InputNotSanitized -- This is validating.
|
1230 |
$pos_playbook = stripos( $agent, 'PlayBook' );
|
1231 |
$pos_rim_tablet = stripos( $agent, 'RIM Tablet' );
|
1232 |
|
1246 |
return false;
|
1247 |
}
|
1248 |
|
1249 |
+
$agent = strtolower( wp_unslash( $_SERVER['HTTP_USER_AGENT'] ) ); // phpcs:ignore WordPress.Security.ValidatedSanitizedInput.InputNotSanitized -- This is validating.
|
1250 |
|
1251 |
$pos_blackberry = strpos( $agent, 'blackberry' );
|
1252 |
if ( false !== $pos_blackberry ) {
|
1267 |
if ( empty( $_SERVER['HTTP_USER_AGENT'] ) ) {
|
1268 |
return false;
|
1269 |
}
|
1270 |
+
$agent = strtolower( wp_unslash( $_SERVER['HTTP_USER_AGENT'] ) ); // phpcs:ignore WordPress.Security.ValidatedSanitizedInput.InputNotSanitized -- This is validating.
|
1271 |
return ( strpos( $agent, 'bb10' ) !== false ) && ( strpos( $agent, 'mobile' ) !== false );
|
1272 |
}
|
1273 |
|
1297 |
return 'blackberry-10';
|
1298 |
}
|
1299 |
|
1300 |
+
$agent = strtolower( wp_unslash( $_SERVER['HTTP_USER_AGENT'] ) ); // phpcs:ignore WordPress.Security.ValidatedSanitizedInput.InputNotSanitized -- This is validating.
|
1301 |
|
1302 |
$pos_blackberry = stripos( $agent, 'blackberry' );
|
1303 |
if ( false === $pos_blackberry ) {
|
1382 |
return false;
|
1383 |
}
|
1384 |
|
1385 |
+
$agent = strtolower( wp_unslash( $_SERVER['HTTP_USER_AGENT'] ) ); // phpcs:ignore WordPress.Security.ValidatedSanitizedInput.InputNotSanitized -- This is validating.
|
1386 |
|
1387 |
if ( self::is_blackberry_10() ) {
|
1388 |
return 'blackberry-10';
|
1437 |
return false;
|
1438 |
}
|
1439 |
|
1440 |
+
$agent = strtolower( wp_unslash( $_SERVER['HTTP_USER_AGENT'] ) ); // phpcs:ignore WordPress.Security.ValidatedSanitizedInput.InputNotSanitized -- This is validating.
|
1441 |
|
1442 |
+
if ( isset( $_SERVER['X_USER_AGENT'] ) && preg_match( '|wp-webos|', $_SERVER['X_USER_AGENT'] ) ) { // phpcs:ignore WordPress.Security.ValidatedSanitizedInput -- This is validating.
|
1443 |
return true; // Wp4webos 1.1 or higher.
|
1444 |
}
|
1445 |
|
1469 |
return false;
|
1470 |
}
|
1471 |
|
1472 |
+
$ua = strtolower( wp_unslash( $_SERVER['HTTP_USER_AGENT'] ) ); // phpcs:ignore WordPress.Security.ValidatedSanitizedInput.InputNotSanitized -- This is validating.
|
1473 |
if ( strpos( $ua, 'nintendo 3ds' ) !== false ) {
|
1474 |
return true;
|
1475 |
}
|
1489 |
}
|
1490 |
|
1491 |
if ( $is_bot === null ) {
|
1492 |
+
$is_bot = self::is_bot_user_agent( wp_unslash( $_SERVER['HTTP_USER_AGENT'] ) ); // phpcs:ignore WordPress.Security.ValidatedSanitizedInput.InputNotSanitized -- This is validating.
|
1493 |
}
|
1494 |
|
1495 |
return $is_bot;
|
jetpack_vendor/automattic/jetpack-device-detection/src/functions.php
ADDED
@@ -0,0 +1,27 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Utility functions for device detection.
|
4 |
+
*
|
5 |
+
* @package automattic/jetpack-device-detection
|
6 |
+
*/
|
7 |
+
|
8 |
+
namespace Automattic\Jetpack\Device_Detection;
|
9 |
+
|
10 |
+
/**
|
11 |
+
* A wrapper for WordPress's `wp_unslash()`.
|
12 |
+
*
|
13 |
+
* Even though PHP itself dropped the option to add slashes to superglobals a decade ago,
|
14 |
+
* WordPress still does it through some misguided extreme backwards compatibility. 🙄
|
15 |
+
*
|
16 |
+
* If WordPress's function exists, assume it needs to be called. If not, assume it doesn't.
|
17 |
+
*
|
18 |
+
* @param string|array $value String or array of data to unslash.
|
19 |
+
* @return string|array Possibly unslashed $value.
|
20 |
+
*/
|
21 |
+
function wp_unslash( $value ) {
|
22 |
+
if ( function_exists( '\\wp_unslash' ) ) {
|
23 |
+
return \wp_unslash( $value );
|
24 |
+
} else {
|
25 |
+
return $value;
|
26 |
+
}
|
27 |
+
}
|
jetpack_vendor/automattic/jetpack-heartbeat/CHANGELOG.md
DELETED
@@ -1,123 +0,0 @@
|
|
1 |
-
# Changelog
|
2 |
-
|
3 |
-
All notable changes to this project will be documented in this file.
|
4 |
-
|
5 |
-
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
|
6 |
-
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
7 |
-
|
8 |
-
## [1.4.0] - 2022-01-04
|
9 |
-
### Changed
|
10 |
-
- Updated package textdomain from `jetpack` to `jetpack-heartbeat`.
|
11 |
-
|
12 |
-
## [1.3.15] - 2021-12-14
|
13 |
-
### Changed
|
14 |
-
- Updated package dependencies.
|
15 |
-
|
16 |
-
## [1.3.14] - 2021-11-30
|
17 |
-
### Changed
|
18 |
-
- Updated package dependencies.
|
19 |
-
|
20 |
-
## [1.3.13] - 2021-10-19
|
21 |
-
### Changed
|
22 |
-
- Updated package dependencies.
|
23 |
-
|
24 |
-
## [1.3.12] - 2021-10-13
|
25 |
-
### Changed
|
26 |
-
- Updated package dependencies.
|
27 |
-
|
28 |
-
## [1.3.11] - 2021-09-28
|
29 |
-
### Changed
|
30 |
-
- Updated package dependencies.
|
31 |
-
|
32 |
-
## [1.3.10] - 2021-09-03
|
33 |
-
|
34 |
-
- Clean up doc blocks.
|
35 |
-
|
36 |
-
## [1.3.9] - 2021-08-30
|
37 |
-
### Changed
|
38 |
-
- Updated versions in annotations
|
39 |
-
|
40 |
-
## [1.3.8] - 2021-06-15
|
41 |
-
### Changed
|
42 |
-
- Updated package dependencies.
|
43 |
-
|
44 |
-
## [1.3.7] - 2021-05-25
|
45 |
-
### Fixed
|
46 |
-
- Fixed new PHPCS errors.
|
47 |
-
|
48 |
-
## [1.3.6] - 2021-04-27
|
49 |
-
### Changed
|
50 |
-
- Updated package dependencies.
|
51 |
-
|
52 |
-
## [1.3.5] - 2021-04-08
|
53 |
-
### Changed
|
54 |
-
- Packaging and build changes, no change to the package itself.
|
55 |
-
|
56 |
-
## [1.3.4] - 2021-03-30
|
57 |
-
### Added
|
58 |
-
- Composer alias for dev-master, to improve dependencies
|
59 |
-
|
60 |
-
### Changed
|
61 |
-
- Update package dependencies.
|
62 |
-
|
63 |
-
## [1.3.3] - 2021-02-23
|
64 |
-
|
65 |
-
- CI: Make tests more generic
|
66 |
-
|
67 |
-
## [1.3.2] - 2021-01-28
|
68 |
-
|
69 |
-
- Update dependencies to latest stable
|
70 |
-
|
71 |
-
## [1.3.1] - 2021-01-26
|
72 |
-
|
73 |
-
- Add mirror-repo information to all current composer packages
|
74 |
-
- Monorepo: Reorganize all projects
|
75 |
-
|
76 |
-
## [1.3.0] - 2021-01-05
|
77 |
-
|
78 |
-
- Pin dependencies
|
79 |
-
- Packages: Update for PHP 8 testing
|
80 |
-
|
81 |
-
## [1.2.2] - 2020-11-24
|
82 |
-
|
83 |
-
- Version packages for release
|
84 |
-
|
85 |
-
## [1.2.1] - 2020-11-24
|
86 |
-
|
87 |
-
- Updated PHPCS: Packages and Debugger
|
88 |
-
|
89 |
-
## [1.2.0] - 2020-10-27
|
90 |
-
|
91 |
-
- Make XMLRPC methods available for blog token
|
92 |
-
|
93 |
-
## [1.1.0] - 2020-09-29
|
94 |
-
|
95 |
-
- Update dependencies to latest stable
|
96 |
-
|
97 |
-
## 1.0.0 - 2020-08-26
|
98 |
-
|
99 |
-
- Connection: use heartbeat to send connected plugins info
|
100 |
-
- Use new heartbeat package
|
101 |
-
- Creates the Jetpack Heartbeat package
|
102 |
-
|
103 |
-
[1.4.0]: https://github.com/Automattic/jetpack-heartbeat/compare/v1.3.15...v1.4.0
|
104 |
-
[1.3.15]: https://github.com/Automattic/jetpack-heartbeat/compare/v1.3.14...v1.3.15
|
105 |
-
[1.3.14]: https://github.com/Automattic/jetpack-heartbeat/compare/v1.3.13...v1.3.14
|
106 |
-
[1.3.13]: https://github.com/Automattic/jetpack-heartbeat/compare/v1.3.12...v1.3.13
|
107 |
-
[1.3.12]: https://github.com/Automattic/jetpack-heartbeat/compare/v1.3.11...v1.3.12
|
108 |
-
[1.3.11]: https://github.com/Automattic/jetpack-heartbeat/compare/v1.3.10...v1.3.11
|
109 |
-
[1.3.10]: https://github.com/Automattic/jetpack-heartbeat/compare/v1.3.9...v1.3.10
|
110 |
-
[1.3.9]: https://github.com/Automattic/jetpack-heartbeat/compare/v1.3.8...v1.3.9
|
111 |
-
[1.3.8]: https://github.com/Automattic/jetpack-heartbeat/compare/v1.3.7...v1.3.8
|
112 |
-
[1.3.7]: https://github.com/Automattic/jetpack-heartbeat/compare/v1.3.6...v1.3.7
|
113 |
-
[1.3.6]: https://github.com/Automattic/jetpack-heartbeat/compare/v1.3.5...v1.3.6
|
114 |
-
[1.3.5]: https://github.com/Automattic/jetpack-heartbeat/compare/v1.3.4...v1.3.5
|
115 |
-
[1.3.4]: https://github.com/Automattic/jetpack-heartbeat/compare/v1.3.3...v1.3.4
|
116 |
-
[1.3.3]: https://github.com/Automattic/jetpack-heartbeat/compare/v1.3.2...v1.3.3
|
117 |
-
[1.3.2]: https://github.com/Automattic/jetpack-heartbeat/compare/v1.3.1...v1.3.2
|
118 |
-
[1.3.1]: https://github.com/Automattic/jetpack-heartbeat/compare/v1.3.0...v1.3.1
|
119 |
-
[1.3.0]: https://github.com/Automattic/jetpack-heartbeat/compare/v1.2.2...v1.3.0
|
120 |
-
[1.2.2]: https://github.com/Automattic/jetpack-heartbeat/compare/v1.2.1...v1.2.2
|
121 |
-
[1.2.1]: https://github.com/Automattic/jetpack-heartbeat/compare/v1.2.0...v1.2.1
|
122 |
-
[1.2.0]: https://github.com/Automattic/jetpack-heartbeat/compare/v1.1.0...v1.2.0
|
123 |
-
[1.1.0]: https://github.com/Automattic/jetpack-heartbeat/compare/v1.0.0...v1.1.0
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
jetpack_vendor/automattic/jetpack-heartbeat/README.md
DELETED
@@ -1,38 +0,0 @@
|
|
1 |
-
# Jetpack Heartbeat Package
|
2 |
-
|
3 |
-
Sends a daily batch of stats to WP.com using the A8C MC Stats package.
|
4 |
-
|
5 |
-
These are internal usage stats for Automattic, not visible to site owners.
|
6 |
-
|
7 |
-
## Usage
|
8 |
-
|
9 |
-
### 1. Make sure Heartbeat is initialized:
|
10 |
-
|
11 |
-
```php
|
12 |
-
Automattic\Jetpack\Heartbeat::init();
|
13 |
-
```
|
14 |
-
|
15 |
-
### 2. Add your stats to the heartbeat
|
16 |
-
|
17 |
-
Add a filter callback:
|
18 |
-
|
19 |
-
```php
|
20 |
-
add_filter( 'jetpack_heartbeat_stats_array', 'my_callback' );
|
21 |
-
```
|
22 |
-
|
23 |
-
In your callback, add the stats you want to the array with new key => value pairs where:
|
24 |
-
* key is the stat group name
|
25 |
-
* value is the stat name.
|
26 |
-
|
27 |
-
```php
|
28 |
-
function my_callback( $stats ) {
|
29 |
-
$stats['my-plugin'] = 'active';
|
30 |
-
return $stats;
|
31 |
-
}
|
32 |
-
```
|
33 |
-
|
34 |
-
This will bump the stats for the 'my-plugin/active' stat.
|
35 |
-
|
36 |
-
And that's all!
|
37 |
-
|
38 |
-
Now your stats will be added to the batch of stats that are bumped once a day.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
jetpack_vendor/automattic/jetpack-heartbeat/composer.json
DELETED
@@ -1,32 +0,0 @@
|
|
1 |
-
{
|
2 |
-
"name": "automattic/jetpack-heartbeat",
|
3 |
-
"description": "This adds a cronjob that sends a batch of internal automattic stats to wp.com once a day",
|
4 |
-
"type": "jetpack-library",
|
5 |
-
"license": "GPL-2.0-or-later",
|
6 |
-
"require": {
|
7 |
-
"automattic/jetpack-a8c-mc-stats": "^1.4",
|
8 |
-
"automattic/jetpack-options": "^1.14"
|
9 |
-
},
|
10 |
-
"require-dev": {
|
11 |
-
"automattic/jetpack-changelogger": "^3.0"
|
12 |
-
},
|
13 |
-
"autoload": {
|
14 |
-
"classmap": [
|
15 |
-
"src/"
|
16 |
-
]
|
17 |
-
},
|
18 |
-
"repositories": [],
|
19 |
-
"minimum-stability": "dev",
|
20 |
-
"prefer-stable": true,
|
21 |
-
"extra": {
|
22 |
-
"autotagger": true,
|
23 |
-
"mirror-repo": "Automattic/jetpack-heartbeat",
|
24 |
-
"textdomain": "jetpack-heartbeat",
|
25 |
-
"changelogger": {
|
26 |
-
"link-template": "https://github.com/Automattic/jetpack-heartbeat/compare/v${old}...v${new}"
|
27 |
-
},
|
28 |
-
"branch-alias": {
|
29 |
-
"dev-master": "1.4.x-dev"
|
30 |
-
}
|
31 |
-
}
|
32 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
jetpack_vendor/automattic/jetpack-lazy-images/CHANGELOG.md
CHANGED
@@ -5,6 +5,43 @@ All notable changes to this project will be documented in this file.
|
|
5 |
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
|
6 |
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
7 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
8 |
## [2.1.10] - 2022-04-06
|
9 |
### Changed
|
10 |
- Microperformance: Use === null instead of is_null
|
@@ -200,6 +237,14 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
200 |
|
201 |
- Lazy Images: Move into a package
|
202 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
203 |
[2.1.10]: https://github.com/Automattic/jetpack-lazy-images/compare/v2.1.9...v2.1.10
|
204 |
[2.1.9]: https://github.com/Automattic/jetpack-lazy-images/compare/v2.1.8...v2.1.9
|
205 |
[2.1.8]: https://github.com/Automattic/jetpack-lazy-images/compare/v2.1.7...v2.1.8
|
5 |
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
|
6 |
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
7 |
|
8 |
+
## [2.1.18] - 2022-06-21
|
9 |
+
### Changed
|
10 |
+
- Disable core lazy loading implementation for images that get lazy loaded by Jetpack
|
11 |
+
- Renaming master to trunk.
|
12 |
+
- Updated package dependencies.
|
13 |
+
|
14 |
+
## [2.1.17] - 2022-06-14
|
15 |
+
|
16 |
+
## [2.1.16] - 2022-06-08
|
17 |
+
### Changed
|
18 |
+
- Reorder JS imports for `import/order` eslint rule. [#24601]
|
19 |
+
|
20 |
+
## [2.1.15] - 2022-05-24
|
21 |
+
### Fixed
|
22 |
+
- Do not lazy-load images when in RSS feeds. [#24471]
|
23 |
+
|
24 |
+
## [2.1.14] - 2022-05-18
|
25 |
+
### Changed
|
26 |
+
- Setup lazy-images filters to run on 'the_post' hook not 'wp_head' to fix a variety of issues. [#24277]
|
27 |
+
- Updated package dependencies [#24372]
|
28 |
+
|
29 |
+
## [2.1.13] - 2022-05-10
|
30 |
+
### Changed
|
31 |
+
- Updated package dependencies. [#24302]
|
32 |
+
|
33 |
+
## [2.1.12] - 2022-05-04
|
34 |
+
### Added
|
35 |
+
- Add missing JavaScript dependencies. [#24096]
|
36 |
+
|
37 |
+
### Changed
|
38 |
+
- Update JS sources to modern syntax. [#24213]
|
39 |
+
|
40 |
+
## [2.1.11] - 2022-04-26
|
41 |
+
### Changed
|
42 |
+
- Updated package dependencies.
|
43 |
+
- Update package.json metadata.
|
44 |
+
|
45 |
## [2.1.10] - 2022-04-06
|
46 |
### Changed
|
47 |
- Microperformance: Use === null instead of is_null
|
237 |
|
238 |
- Lazy Images: Move into a package
|
239 |
|
240 |
+
[2.1.18]: https://github.com/Automattic/jetpack-lazy-images/compare/v2.1.17...v2.1.18
|
241 |
+
[2.1.17]: https://github.com/Automattic/jetpack-lazy-images/compare/v2.1.16...v2.1.17
|
242 |
+
[2.1.16]: https://github.com/Automattic/jetpack-lazy-images/compare/v2.1.15...v2.1.16
|
243 |
+
[2.1.15]: https://github.com/Automattic/jetpack-lazy-images/compare/v2.1.14...v2.1.15
|
244 |
+
[2.1.14]: https://github.com/Automattic/jetpack-lazy-images/compare/v2.1.13...v2.1.14
|
245 |
+
[2.1.13]: https://github.com/Automattic/jetpack-lazy-images/compare/v2.1.12...v2.1.13
|
246 |
+
[2.1.12]: https://github.com/Automattic/jetpack-lazy-images/compare/v2.1.11...v2.1.12
|
247 |
+
[2.1.11]: https://github.com/Automattic/jetpack-lazy-images/compare/v2.1.10...v2.1.11
|
248 |
[2.1.10]: https://github.com/Automattic/jetpack-lazy-images/compare/v2.1.9...v2.1.10
|
249 |
[2.1.9]: https://github.com/Automattic/jetpack-lazy-images/compare/v2.1.8...v2.1.9
|
250 |
[2.1.8]: https://github.com/Automattic/jetpack-lazy-images/compare/v2.1.7...v2.1.8
|
jetpack_vendor/automattic/jetpack-lazy-images/composer.json
CHANGED
@@ -10,7 +10,7 @@
|
|
10 |
"require-dev": {
|
11 |
"automattic/wordbless": "dev-master",
|
12 |
"yoast/phpunit-polyfills": "1.0.3",
|
13 |
-
"automattic/jetpack-changelogger": "^3.
|
14 |
},
|
15 |
"autoload": {
|
16 |
"classmap": [
|
@@ -45,7 +45,7 @@
|
|
45 |
"link-template": "https://github.com/Automattic/jetpack-lazy-images/compare/v${old}...v${new}"
|
46 |
},
|
47 |
"branch-alias": {
|
48 |
-
"dev-
|
49 |
}
|
50 |
},
|
51 |
"config": {
|
10 |
"require-dev": {
|
11 |
"automattic/wordbless": "dev-master",
|
12 |
"yoast/phpunit-polyfills": "1.0.3",
|
13 |
+
"automattic/jetpack-changelogger": "^3.1"
|
14 |
},
|
15 |
"autoload": {
|
16 |
"classmap": [
|
45 |
"link-template": "https://github.com/Automattic/jetpack-lazy-images/compare/v${old}...v${new}"
|
46 |
},
|
47 |
"branch-alias": {
|
48 |
+
"dev-trunk": "2.1.x-dev"
|
49 |
}
|
50 |
},
|
51 |
"config": {
|
jetpack_vendor/automattic/jetpack-lazy-images/dist/intersection-observer.asset.php
CHANGED
@@ -1 +1 @@
|
|
1 |
-
<?php return array('dependencies' => array(), 'version' => '
|
1 |
+
<?php return array('dependencies' => array(), 'version' => '83ec8aa758f883d6da14');
|
jetpack_vendor/automattic/jetpack-lazy-images/dist/lazy-images.asset.php
CHANGED
@@ -1 +1 @@
|
|
1 |
-
<?php return array('dependencies' => array(), 'version' => '
|
1 |
+
<?php return array('dependencies' => array(), 'version' => '54eb31dc971b63b49278');
|
jetpack_vendor/automattic/jetpack-lazy-images/dist/lazy-images.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
|
1 |
+
(()=>{const e=function(){const e={rootMargin:"200px 0px",threshold:.01},t=[];let n,a,i;d();const o=document.querySelector("body");function d(){n=Array.from(document.querySelectorAll("img.jetpack-lazy-image:not(.jetpack-lazy-image--handled)")),i&&i.disconnect(),"IntersectionObserver"in window?(i=new IntersectionObserver(l,e),n.forEach((function(e){e.getAttribute("data-lazy-loaded")||i.observe(e)})),window.addEventListener("beforeprint",c),window.matchMedia&&window.matchMedia("print").addListener((function(e){e.matches&&c()}))):r()}function r(){for(i&&i.disconnect();n.length>0;)s(n[0])}function l(e){for(let t=0;t<e.length;t++){const n=e[t];n.intersectionRatio>0&&(i.unobserve(n.target),s(n.target))}0===n.length&&i.disconnect()}function c(){if(!a&&(n.length>0||t.length>0)){a=document.createElement("div"),a.id="loadingWarning",a.style.fontWeight="bold",a.innerText=jetpackLazyImagesL10n.loading_warning;const e=document.createElement("style");e.innerHTML="#loadingWarning { display: none; }\n@media print {\n#loadingWarning { display: block; }\nbody > #loadingWarning ~ * { display: none !important; }\n}",a.appendChild(e),o.insertBefore(a,o.firstChild)}n.length>0&&r(),a&&alert(jetpackLazyImagesL10n.loading_warning)}function s(e){let a;if(!(e instanceof HTMLImageElement))return;const i=e.getAttribute("data-lazy-srcset"),o=e.getAttribute("data-lazy-sizes");e.removeAttribute("data-lazy-srcset"),e.removeAttribute("data-lazy-sizes"),e.removeAttribute("data-lazy-src"),e.classList.add("jetpack-lazy-image--handled"),e.setAttribute("data-lazy-loaded",1),o&&e.setAttribute("sizes",o),i?e.setAttribute("srcset",i):e.removeAttribute("srcset"),e.setAttribute("loading","eager"),t.push(e);const d=n.indexOf(e);d>=0&&n.splice(d,1),e.complete?g.call(e,null):(e.addEventListener("load",g,{once:!0}),e.addEventListener("error",g,{once:!0}));try{a=new Event("jetpack-lazy-loaded-image",{bubbles:!0,cancelable:!0})}catch(e){a=document.createEvent("Event"),a.initEvent("jetpack-lazy-loaded-image",!0,!0)}e.dispatchEvent(a)}function g(){const e=t.indexOf(this);e>=0&&t.splice(e,1),a&&0===n.length&&0===t.length&&(a.parentNode.removeChild(a),a=null)}o&&(o.addEventListener("is.post-load",d),o.addEventListener("jetpack-lazy-images-load",d))};"interactive"===document.readyState||"complete"===document.readyState?e():document.addEventListener("DOMContentLoaded",e)})();
|
jetpack_vendor/automattic/jetpack-lazy-images/src/js/lazy-images.js
CHANGED
@@ -1,17 +1,17 @@
|
|
1 |
/* global jetpackLazyImagesL10n */
|
2 |
|
3 |
-
|
4 |
-
|
5 |
// If the image gets within 200px in the Y axis, start the download.
|
6 |
rootMargin: '200px 0px',
|
7 |
threshold: 0.01,
|
8 |
};
|
9 |
-
|
10 |
-
|
11 |
|
12 |
lazy_load_init();
|
13 |
|
14 |
-
|
15 |
if ( bodyEl ) {
|
16 |
// Lazy load images that are brought in from Infinite Scroll
|
17 |
bodyEl.addEventListener( 'is.post-load', lazy_load_init );
|
@@ -24,8 +24,7 @@ var jetpackLazyImagesModule = function () {
|
|
24 |
* Initialize the module.
|
25 |
*/
|
26 |
function lazy_load_init() {
|
27 |
-
|
28 |
-
lazyImages = [].slice.call(
|
29 |
document.querySelectorAll( 'img.jetpack-lazy-image:not(.jetpack-lazy-image--handled)' )
|
30 |
);
|
31 |
|
@@ -81,8 +80,8 @@ var jetpackLazyImagesModule = function () {
|
|
81 |
*/
|
82 |
function onIntersection( entries ) {
|
83 |
// Loop through the entries
|
84 |
-
for (
|
85 |
-
|
86 |
|
87 |
// Are we in viewport?
|
88 |
if ( entry.intersectionRatio > 0 ) {
|
@@ -111,7 +110,7 @@ var jetpackLazyImagesModule = function () {
|
|
111 |
loadingWarning.style.fontWeight = 'bold';
|
112 |
loadingWarning.innerText = jetpackLazyImagesL10n.loading_warning;
|
113 |
|
114 |
-
|
115 |
s.innerHTML =
|
116 |
'#loadingWarning { display: none; }\n@media print {\n#loadingWarning { display: block; }\nbody > #loadingWarning ~ * { display: none !important; }\n}';
|
117 |
loadingWarning.appendChild( s );
|
@@ -136,14 +135,14 @@ var jetpackLazyImagesModule = function () {
|
|
136 |
* @param {Element} image - The image object.
|
137 |
*/
|
138 |
function applyImage( image ) {
|
139 |
-
|
140 |
|
141 |
if ( ! ( image instanceof HTMLImageElement ) ) {
|
142 |
return;
|
143 |
}
|
144 |
|
145 |
-
|
146 |
-
|
147 |
|
148 |
// Remove lazy attributes.
|
149 |
image.removeAttribute( 'data-lazy-srcset' );
|
@@ -169,7 +168,7 @@ var jetpackLazyImagesModule = function () {
|
|
169 |
image.setAttribute( 'loading', 'eager' );
|
170 |
|
171 |
loadingImages.push( image );
|
172 |
-
|
173 |
if ( idx >= 0 ) {
|
174 |
lazyImages.splice( idx, 1 );
|
175 |
}
|
@@ -199,7 +198,7 @@ var jetpackLazyImagesModule = function () {
|
|
199 |
* An image from applyImage() finished loading.
|
200 |
*/
|
201 |
function loadedImage() {
|
202 |
-
|
203 |
if ( idx >= 0 ) {
|
204 |
loadingImages.splice( idx, 1 );
|
205 |
}
|
1 |
/* global jetpackLazyImagesL10n */
|
2 |
|
3 |
+
const jetpackLazyImagesModule = function () {
|
4 |
+
const config = {
|
5 |
// If the image gets within 200px in the Y axis, start the download.
|
6 |
rootMargin: '200px 0px',
|
7 |
threshold: 0.01,
|
8 |
};
|
9 |
+
const loadingImages = [];
|
10 |
+
let lazyImages, loadingWarning, observer;
|
11 |
|
12 |
lazy_load_init();
|
13 |
|
14 |
+
const bodyEl = document.querySelector( 'body' );
|
15 |
if ( bodyEl ) {
|
16 |
// Lazy load images that are brought in from Infinite Scroll
|
17 |
bodyEl.addEventListener( 'is.post-load', lazy_load_init );
|
24 |
* Initialize the module.
|
25 |
*/
|
26 |
function lazy_load_init() {
|
27 |
+
lazyImages = Array.from(
|
|
|
28 |
document.querySelectorAll( 'img.jetpack-lazy-image:not(.jetpack-lazy-image--handled)' )
|
29 |
);
|
30 |
|
80 |
*/
|
81 |
function onIntersection( entries ) {
|
82 |
// Loop through the entries
|
83 |
+
for ( let i = 0; i < entries.length; i++ ) {
|
84 |
+
const entry = entries[ i ];
|
85 |
|
86 |
// Are we in viewport?
|
87 |
if ( entry.intersectionRatio > 0 ) {
|
110 |
loadingWarning.style.fontWeight = 'bold';
|
111 |
loadingWarning.innerText = jetpackLazyImagesL10n.loading_warning;
|
112 |
|
113 |
+
const s = document.createElement( 'style' );
|
114 |
s.innerHTML =
|
115 |
'#loadingWarning { display: none; }\n@media print {\n#loadingWarning { display: block; }\nbody > #loadingWarning ~ * { display: none !important; }\n}';
|
116 |
loadingWarning.appendChild( s );
|
135 |
* @param {Element} image - The image object.
|
136 |
*/
|
137 |
function applyImage( image ) {
|
138 |
+
let lazyLoadedImageEvent;
|
139 |
|
140 |
if ( ! ( image instanceof HTMLImageElement ) ) {
|
141 |
return;
|
142 |
}
|
143 |
|
144 |
+
const srcset = image.getAttribute( 'data-lazy-srcset' );
|
145 |
+
const sizes = image.getAttribute( 'data-lazy-sizes' );
|
146 |
|
147 |
// Remove lazy attributes.
|
148 |
image.removeAttribute( 'data-lazy-srcset' );
|
168 |
image.setAttribute( 'loading', 'eager' );
|
169 |
|
170 |
loadingImages.push( image );
|
171 |
+
const idx = lazyImages.indexOf( image );
|
172 |
if ( idx >= 0 ) {
|
173 |
lazyImages.splice( idx, 1 );
|
174 |
}
|
198 |
* An image from applyImage() finished loading.
|
199 |
*/
|
200 |
function loadedImage() {
|
201 |
+
const idx = loadingImages.indexOf( this );
|
202 |
if ( idx >= 0 ) {
|
203 |
loadingImages.splice( idx, 1 );
|
204 |
}
|
jetpack_vendor/automattic/jetpack-lazy-images/src/lazy-images.php
CHANGED
@@ -114,7 +114,7 @@ class Jetpack_Lazy_Images {
|
|
114 |
return;
|
115 |
}
|
116 |
|
117 |
-
add_action( '
|
118 |
add_action( 'wp_enqueue_scripts', array( $this, 'enqueue_assets' ) );
|
119 |
|
120 |
// Do not lazy load avatar in admin bar.
|
@@ -122,6 +122,8 @@ class Jetpack_Lazy_Images {
|
|
122 |
|
123 |
add_filter( 'wp_kses_allowed_html', array( $this, 'allow_lazy_attributes' ) );
|
124 |
add_action( 'wp_head', array( $this, 'add_nojs_fallback' ) );
|
|
|
|
|
125 |
}
|
126 |
|
127 |
/**
|
@@ -133,6 +135,11 @@ class Jetpack_Lazy_Images {
|
|
133 |
* @return void
|
134 |
*/
|
135 |
public function setup_filters() {
|
|
|
|
|
|
|
|
|
|
|
136 |
add_filter( 'the_content', array( $this, 'add_image_placeholders' ), PHP_INT_MAX ); // Run this later, so other content filters have run, including image_add_wh on WP.com.
|
137 |
add_filter( 'post_thumbnail_html', array( $this, 'add_image_placeholders' ), PHP_INT_MAX );
|
138 |
add_filter( 'get_avatar', array( $this, 'add_image_placeholders' ), PHP_INT_MAX );
|
@@ -202,11 +209,6 @@ class Jetpack_Lazy_Images {
|
|
202 |
return $content;
|
203 |
}
|
204 |
|
205 |
-
// Don't lazy-load if the content has already been run through previously.
|
206 |
-
if ( false !== strpos( $content, 'data-lazy-src' ) ) {
|
207 |
-
return $content;
|
208 |
-
}
|
209 |
-
|
210 |
// This is a pretty simple regex, but it works.
|
211 |
$content = preg_replace_callback( '#<(img)([^>]+?)(>(.*?)</\\1>|[\/]?>)#si', array( __CLASS__, 'process_image' ), $content );
|
212 |
|
@@ -274,15 +276,23 @@ class Jetpack_Lazy_Images {
|
|
274 |
|
275 |
$old_attributes = self::flatten_kses_hair_data( $old_attributes_kses_hair );
|
276 |
|
277 |
-
// If we
|
278 |
-
if (
|
279 |
return $matches[0];
|
280 |
}
|
281 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
282 |
$new_attributes = self::process_image_attributes( $old_attributes );
|
283 |
$new_attributes_str = self::build_attributes_string( $new_attributes );
|
284 |
|
285 |
-
return sprintf( '<img %1$s><noscript
|
286 |
}
|
287 |
|
288 |
/**
|
@@ -513,4 +523,24 @@ class Jetpack_Lazy_Images {
|
|
513 |
)
|
514 |
);
|
515 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
516 |
}
|
114 |
return;
|
115 |
}
|
116 |
|
117 |
+
add_action( 'the_post', array( $this, 'setup_filters' ), 9999 );
|
118 |
add_action( 'wp_enqueue_scripts', array( $this, 'enqueue_assets' ) );
|
119 |
|
120 |
// Do not lazy load avatar in admin bar.
|
122 |
|
123 |
add_filter( 'wp_kses_allowed_html', array( $this, 'allow_lazy_attributes' ) );
|
124 |
add_action( 'wp_head', array( $this, 'add_nojs_fallback' ) );
|
125 |
+
|
126 |
+
add_filter( 'wp_img_tag_add_loading_attr', array( $this, 'maybe_skip_core_loading_attribute' ), 10, 2 );
|
127 |
}
|
128 |
|
129 |
/**
|
135 |
* @return void
|
136 |
*/
|
137 |
public function setup_filters() {
|
138 |
+
// Do not lazy-load images in RSS feeds.
|
139 |
+
if ( is_feed() ) {
|
140 |
+
return;
|
141 |
+
}
|
142 |
+
|
143 |
add_filter( 'the_content', array( $this, 'add_image_placeholders' ), PHP_INT_MAX ); // Run this later, so other content filters have run, including image_add_wh on WP.com.
|
144 |
add_filter( 'post_thumbnail_html', array( $this, 'add_image_placeholders' ), PHP_INT_MAX );
|
145 |
add_filter( 'get_avatar', array( $this, 'add_image_placeholders' ), PHP_INT_MAX );
|
209 |
return $content;
|
210 |
}
|
211 |
|
|
|
|
|
|
|
|
|
|
|
212 |
// This is a pretty simple regex, but it works.
|
213 |
$content = preg_replace_callback( '#<(img)([^>]+?)(>(.*?)</\\1>|[\/]?>)#si', array( __CLASS__, 'process_image' ), $content );
|
214 |
|
276 |
|
277 |
$old_attributes = self::flatten_kses_hair_data( $old_attributes_kses_hair );
|
278 |
|
279 |
+
// If we're processing again and this image is the fallback, just return it.
|
280 |
+
if ( isset( $old_attributes['data-lazy-fallback'] ) ) {
|
281 |
return $matches[0];
|
282 |
}
|
283 |
|
284 |
+
// If the loading attribute is already set. Let's remove it.
|
285 |
+
unset( $old_attributes['loading'] );
|
286 |
+
|
287 |
+
// If we've already processed the image don't process it again.
|
288 |
+
if ( isset( $old_attributes['data-lazy-src'] ) ) {
|
289 |
+
return sprintf( '<img %1$s>', self::build_attributes_string( $old_attributes ) );
|
290 |
+
}
|
291 |
+
|
292 |
$new_attributes = self::process_image_attributes( $old_attributes );
|
293 |
$new_attributes_str = self::build_attributes_string( $new_attributes );
|
294 |
|
295 |
+
return sprintf( '<img %1$s><noscript><img data-lazy-fallback="1"%2$s /></noscript>', $new_attributes_str, $old_attributes_str );
|
296 |
}
|
297 |
|
298 |
/**
|
523 |
)
|
524 |
);
|
525 |
}
|
526 |
+
|
527 |
+
/**
|
528 |
+
* If we have already initialized an image to be lazy loaded by Jetpack, then bypass core's lazy loading to minimize conflicts.
|
529 |
+
*
|
530 |
+
* See: https://github.com/Automattic/jetpack/issues/23553
|
531 |
+
*
|
532 |
+
* @since 2.1.18
|
533 |
+
*
|
534 |
+
* @param string|bool $value The value to use for the loading attribute.
|
535 |
+
* @param string $image The markup for the image.
|
536 |
+
*
|
537 |
+
* @return bool If core's lazy loading should be bypassed, `false`. Otherwise, the original `$value`.
|
538 |
+
*/
|
539 |
+
public function maybe_skip_core_loading_attribute( $value, $image ) {
|
540 |
+
if ( false !== strpos( $image, 'jetpack-lazy-image' ) ) {
|
541 |
+
return false;
|
542 |
+
}
|
543 |
+
|
544 |
+
return $value;
|
545 |
+
}
|
546 |
}
|
jetpack_vendor/automattic/jetpack-lazy-images/webpack.config.js
CHANGED
@@ -1,5 +1,5 @@
|
|
1 |
-
const jetpackWebpackConfig = require( '@automattic/jetpack-webpack-config/webpack' );
|
2 |
const path = require( 'path' );
|
|
|
3 |
const CopyWebpackPlugin = require( 'copy-webpack-plugin' );
|
4 |
|
5 |
module.exports = [
|
|
|
1 |
const path = require( 'path' );
|
2 |
+
const jetpackWebpackConfig = require( '@automattic/jetpack-webpack-config/webpack' );
|
3 |
const CopyWebpackPlugin = require( 'copy-webpack-plugin' );
|
4 |
|
5 |
module.exports = [
|
jetpack_vendor/automattic/jetpack-licensing/CHANGELOG.md
ADDED
@@ -0,0 +1,232 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# Changelog
|
2 |
+
|
3 |
+
All notable changes to this project will be documented in this file.
|
4 |
+
|
5 |
+
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
|
6 |
+
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
7 |
+
|
8 |
+
## [1.7.4] - 2022-06-21
|
9 |
+
### Changed
|
10 |
+
- Renaming master to trunk.
|
11 |
+
|
12 |
+
## [1.7.3] - 2022-06-14
|
13 |
+
### Changed
|
14 |
+
- Updated package dependencies. [#24529]
|
15 |
+
|
16 |
+
## [1.7.2] - 2022-05-04
|
17 |
+
### Changed
|
18 |
+
- Updated package dependencies. [#24095]
|
19 |
+
|
20 |
+
### Deprecated
|
21 |
+
- Moved the options class into Connection. [#24095]
|
22 |
+
|
23 |
+
## [1.7.1] - 2022-04-26
|
24 |
+
### Changed
|
25 |
+
- Updated package dependencies.
|
26 |
+
|
27 |
+
## [1.7.0] - 2022-04-19
|
28 |
+
### Changed
|
29 |
+
- Moved licensing endpoints from the Jetpack plugin to the Licensing package
|
30 |
+
|
31 |
+
## [1.6.4] - 2022-04-12
|
32 |
+
### Changed
|
33 |
+
- Updated package dependencies.
|
34 |
+
|
35 |
+
## [1.6.3] - 2022-03-02
|
36 |
+
### Changed
|
37 |
+
- Updated package dependencies.
|
38 |
+
|
39 |
+
## [1.6.2] - 2022-01-25
|
40 |
+
### Changed
|
41 |
+
- Updated package dependencies.
|
42 |
+
|
43 |
+
## [1.6.1] - 2022-01-18
|
44 |
+
### Changed
|
45 |
+
- Updated package dependencies.
|
46 |
+
|
47 |
+
## [1.6.0] - 2022-01-04
|
48 |
+
### Changed
|
49 |
+
- Switch to pcov for code coverage.
|
50 |
+
- Updated package dependencies
|
51 |
+
- Updated package textdomain from `jetpack` to `jetpack-licensing`.
|
52 |
+
|
53 |
+
## [1.5.4] - 2021-12-14
|
54 |
+
### Changed
|
55 |
+
- Updated package dependencies.
|
56 |
+
|
57 |
+
## [1.5.3] - 2021-12-03
|
58 |
+
### Changed
|
59 |
+
- Increases the timeout of the license activation request from 10 to 30 seconds.
|
60 |
+
|
61 |
+
## [1.5.2] - 2021-11-30
|
62 |
+
### Changed
|
63 |
+
- Updated package dependencies.
|
64 |
+
|
65 |
+
## [1.5.1] - 2021-11-23
|
66 |
+
### Changed
|
67 |
+
- Updated package dependencies.
|
68 |
+
|
69 |
+
## [1.5.0] - 2021-11-16
|
70 |
+
### Added
|
71 |
+
- Add a test for update to WPCOM return change.
|
72 |
+
- Added get_license_activation_notice_dismiss() function.
|
73 |
+
|
74 |
+
## [1.4.9] - 2021-11-02
|
75 |
+
### Changed
|
76 |
+
- Set `convertDeprecationsToExceptions` true in PHPUnit config.
|
77 |
+
- Update PHPUnit configs to include just what needs coverage rather than include everything then try to exclude stuff that doesn't.
|
78 |
+
|
79 |
+
## [1.4.8] - 2021-10-19
|
80 |
+
### Changed
|
81 |
+
- Updated package dependencies.
|
82 |
+
|
83 |
+
## [1.4.7] - 2021-10-12
|
84 |
+
### Changed
|
85 |
+
- Updated package dependencies
|
86 |
+
|
87 |
+
## [1.4.6] - 2021-09-28
|
88 |
+
### Changed
|
89 |
+
- Updated package dependencies.
|
90 |
+
|
91 |
+
## [1.4.5] - 2021-08-31
|
92 |
+
### Changed
|
93 |
+
- Run composer update on test-php command instead of phpunit.
|
94 |
+
- Tests: update PHPUnit polyfills dependency (yoast/phpunit-polyfills).
|
95 |
+
- Updated versions in annotations.
|
96 |
+
|
97 |
+
## [1.4.4] - 2021-07-27
|
98 |
+
### Changed
|
99 |
+
- Updated package dependencies.
|
100 |
+
|
101 |
+
## [1.4.3] - 2021-06-29
|
102 |
+
### Changed
|
103 |
+
- Updated package dependencies.
|
104 |
+
|
105 |
+
## [1.4.2] - 2021-05-25
|
106 |
+
### Changed
|
107 |
+
- Updated package dependencies.
|
108 |
+
|
109 |
+
## [1.4.1] - 2021-04-27
|
110 |
+
### Changed
|
111 |
+
- Updated package dependencies.
|
112 |
+
|
113 |
+
## [1.4.0] - 2021-03-30
|
114 |
+
### Added
|
115 |
+
- Composer alias for dev-master, to improve dependencies
|
116 |
+
- Dashboard: add new option to input license key.
|
117 |
+
|
118 |
+
### Changed
|
119 |
+
- Replace usage of deprecated is_active method
|
120 |
+
- Update package dependencies.
|
121 |
+
|
122 |
+
### Fixed
|
123 |
+
- Fix stored licenses not being attached on option creation
|
124 |
+
- Use `composer update` rather than `install` in scripts, as composer.lock isn't checked in.
|
125 |
+
|
126 |
+
## [1.3.4] - 2021-02-23
|
127 |
+
|
128 |
+
- CI: Make tests more generic
|
129 |
+
- codesniffer: Hack around mediawiki-codesniffer bug
|
130 |
+
|
131 |
+
## [1.3.3] - 2021-02-08
|
132 |
+
|
133 |
+
- Update dependencies to latest stable
|
134 |
+
|
135 |
+
## [1.3.2] - 2021-01-28
|
136 |
+
|
137 |
+
- Update dependencies to latest stable
|
138 |
+
|
139 |
+
## [1.3.1] - 2021-01-26
|
140 |
+
|
141 |
+
- Add mirror-repo information to all current composer packages
|
142 |
+
- Monorepo: Reorganize all projects
|
143 |
+
|
144 |
+
## [1.3.0] - 2021-01-05
|
145 |
+
|
146 |
+
- Pin dependencies
|
147 |
+
- Packages: Update for PHP 8 testing
|
148 |
+
|
149 |
+
## [1.2.4] - 2020-11-24
|
150 |
+
|
151 |
+
- Version packages for release
|
152 |
+
|
153 |
+
## [1.2.3] - 2020-11-24
|
154 |
+
|
155 |
+
- Updated PHPCS: Packages and Debugger
|
156 |
+
|
157 |
+
## [1.2.2] - 2020-11-05
|
158 |
+
|
159 |
+
- Update dependencies to latest stable
|
160 |
+
|
161 |
+
## [1.2.1] - 2020-10-29
|
162 |
+
|
163 |
+
- Update dependencies to latest stable
|
164 |
+
|
165 |
+
## [1.2.0] - 2020-10-27
|
166 |
+
|
167 |
+
- Licensing: use Oxford comma in error message
|
168 |
+
|
169 |
+
## [1.1.4] - 2020-10-14
|
170 |
+
|
171 |
+
- Update dependencies to latest stable
|
172 |
+
|
173 |
+
## [1.1.3] - 2020-10-09
|
174 |
+
|
175 |
+
- Update dependencies to latest stable
|
176 |
+
|
177 |
+
## [1.1.2] - 2020-10-06
|
178 |
+
|
179 |
+
- Update dependencies to latest stable
|
180 |
+
|
181 |
+
## [1.1.1] - 2020-10-01
|
182 |
+
|
183 |
+
- Update dependencies to latest stable
|
184 |
+
|
185 |
+
## [1.1.0] - 2020-09-29
|
186 |
+
|
187 |
+
- Update dependencies to latest stable
|
188 |
+
|
189 |
+
## 1.0.0 - 2020-09-24
|
190 |
+
|
191 |
+
- Licensing: Add support for Jetpack licenses
|
192 |
+
|
193 |
+
[1.7.4]: https://github.com/Automattic/jetpack-licensing/compare/v1.7.3...v1.7.4
|
194 |
+
[1.7.3]: https://github.com/Automattic/jetpack-licensing/compare/v1.7.2...v1.7.3
|
195 |
+
[1.7.2]: https://github.com/Automattic/jetpack-licensing/compare/v1.7.1...v1.7.2
|
196 |
+
[1.7.1]: https://github.com/Automattic/jetpack-licensing/compare/v1.7.0...v1.7.1
|
197 |
+
[1.7.0]: https://github.com/Automattic/jetpack-licensing/compare/v1.6.4...v1.7.0
|
198 |
+
[1.6.4]: https://github.com/Automattic/jetpack-licensing/compare/v1.6.3...v1.6.4
|
199 |
+
[1.6.3]: https://github.com/Automattic/jetpack-licensing/compare/v1.6.2...v1.6.3
|
200 |
+
[1.6.2]: https://github.com/Automattic/jetpack-licensing/compare/v1.6.1...v1.6.2
|
201 |
+
[1.6.1]: https://github.com/Automattic/jetpack-licensing/compare/v1.6.0...v1.6.1
|
202 |
+
[1.6.0]: https://github.com/Automattic/jetpack-licensing/compare/v1.5.4...v1.6.0
|
203 |
+
[1.5.4]: https://github.com/Automattic/jetpack-licensing/compare/v1.5.3...v1.5.4
|
204 |
+
[1.5.3]: https://github.com/Automattic/jetpack-licensing/compare/v1.5.2...v1.5.3
|
205 |
+
[1.5.2]: https://github.com/Automattic/jetpack-licensing/compare/v1.5.1...v1.5.2
|
206 |
+
[1.5.1]: https://github.com/Automattic/jetpack-licensing/compare/v1.5.0...v1.5.1
|
207 |
+
[1.5.0]: https://github.com/Automattic/jetpack-licensing/compare/v1.4.9...v1.5.0
|
208 |
+
[1.4.9]: https://github.com/Automattic/jetpack-licensing/compare/v1.4.8...v1.4.9
|
209 |
+
[1.4.8]: https://github.com/Automattic/jetpack-licensing/compare/v1.4.7...v1.4.8
|
210 |
+
[1.4.7]: https://github.com/Automattic/jetpack-licensing/compare/v1.4.6...v1.4.7
|
211 |
+
[1.4.6]: https://github.com/Automattic/jetpack-licensing/compare/v1.4.5...v1.4.6
|
212 |
+
[1.4.5]: https://github.com/Automattic/jetpack-licensing/compare/v1.4.4...v1.4.5
|
213 |
+
[1.4.4]: https://github.com/Automattic/jetpack-licensing/compare/v1.4.3...v1.4.4
|
214 |
+
[1.4.3]: https://github.com/Automattic/jetpack-licensing/compare/v1.4.2...v1.4.3
|
215 |
+
[1.4.2]: https://github.com/Automattic/jetpack-licensing/compare/v1.4.1...v1.4.2
|
216 |
+
[1.4.1]: https://github.com/Automattic/jetpack-licensing/compare/v1.4.0...v1.4.1
|
217 |
+
[1.4.0]: https://github.com/Automattic/jetpack-licensing/compare/v1.3.4...v1.4.0
|
218 |
+
[1.3.4]: https://github.com/Automattic/jetpack-licensing/compare/v1.3.3...v1.3.4
|
219 |
+
[1.3.3]: https://github.com/Automattic/jetpack-licensing/compare/v1.3.2...v1.3.3
|
220 |
+
[1.3.2]: https://github.com/Automattic/jetpack-licensing/compare/v1.3.1...v1.3.2
|
221 |
+
[1.3.1]: https://github.com/Automattic/jetpack-licensing/compare/v1.3.0...v1.3.1
|
222 |
+
[1.3.0]: https://github.com/Automattic/jetpack-licensing/compare/v1.2.4...v1.3.0
|
223 |
+
[1.2.4]: https://github.com/Automattic/jetpack-licensing/compare/v1.2.3...v1.2.4
|
224 |
+
[1.2.3]: https://github.com/Automattic/jetpack-licensing/compare/v1.2.2...v1.2.3
|
225 |
+
[1.2.2]: https://github.com/Automattic/jetpack-licensing/compare/v1.2.1...v1.2.2
|
226 |
+
[1.2.1]: https://github.com/Automattic/jetpack-licensing/compare/v1.2.0...v1.2.1
|
227 |
+
[1.2.0]: https://github.com/Automattic/jetpack-licensing/compare/v1.1.4...v1.2.0
|
228 |
+
[1.1.4]: https://github.com/Automattic/jetpack-licensing/compare/v1.1.3...v1.1.4
|
229 |
+
[1.1.3]: https://github.com/Automattic/jetpack-licensing/compare/v1.1.2...v1.1.3
|
230 |
+
[1.1.2]: https://github.com/Automattic/jetpack-licensing/compare/v1.1.1...v1.1.2
|
231 |
+
[1.1.1]: https://github.com/Automattic/jetpack-licensing/compare/v1.1.0...v1.1.1
|
232 |
+
[1.1.0]: https://github.com/Automattic/jetpack-licensing/compare/v1.0.0...v1.1.0
|
jetpack_vendor/automattic/{jetpack-heartbeat → jetpack-licensing}/LICENSE.txt
RENAMED
File without changes
|
jetpack_vendor/automattic/jetpack-licensing/README.md
ADDED
@@ -0,0 +1,25 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# Jetpack Licensing
|
2 |
+
|
3 |
+
A Licensing Package that attaches Jetpack licenses.
|
4 |
+
|
5 |
+
## Usage
|
6 |
+
|
7 |
+
### Initialize to automatically attach licenses when:
|
8 |
+
|
9 |
+
- The `jetpack_licenses` option is updated.
|
10 |
+
- Jetpack is connected.
|
11 |
+
|
12 |
+
```php
|
13 |
+
use Automattic\Jetpack\Licensing;
|
14 |
+
|
15 |
+
Licensing::instance()->initialize();
|
16 |
+
```
|
17 |
+
|
18 |
+
### Attach an array of license keys.
|
19 |
+
|
20 |
+
```php
|
21 |
+
use Automattic\Jetpack\Licensing;
|
22 |
+
|
23 |
+
$licenses = array( 'license_key_1', 'license_key_2' );
|
24 |
+
$results = Licensing::instance()->attach_licenses( $licenses );
|
25 |
+
```
|
jetpack_vendor/automattic/{jetpack-heartbeat → jetpack-licensing}/SECURITY.md
RENAMED
File without changes
|
jetpack_vendor/automattic/jetpack-licensing/composer.json
ADDED
@@ -0,0 +1,49 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "automattic/jetpack-licensing",
|
3 |
+
"description": "Everything needed to manage Jetpack licenses client-side.",
|
4 |
+
"type": "jetpack-library",
|
5 |
+
"license": "GPL-2.0-or-later",
|
6 |
+
"require": {
|
7 |
+
"automattic/jetpack-connection": "^1.41"
|
8 |
+
},
|
9 |
+
"require-dev": {
|
10 |
+
"automattic/wordbless": "@dev",
|
11 |
+
"yoast/phpunit-polyfills": "1.0.3",
|
12 |
+
"automattic/jetpack-changelogger": "^3.1"
|
13 |
+
},
|
14 |
+
"autoload": {
|
15 |
+
"classmap": [
|
16 |
+
"src/"
|
17 |
+
]
|
18 |
+
},
|
19 |
+
"scripts": {
|
20 |
+
"phpunit": [
|
21 |
+
"./vendor/phpunit/phpunit/phpunit --colors=always"
|
22 |
+
],
|
23 |
+
"post-update-cmd": "php -r \"copy('vendor/automattic/wordbless/src/dbless-wpdb.php', 'wordpress/wp-content/db.php');\"",
|
24 |
+
"test-coverage": [
|
25 |
+
"php -dpcov.directory=. ./vendor/bin/phpunit --coverage-clover \"$COVERAGE_DIR/clover.xml\""
|
26 |
+
],
|
27 |
+
"test-php": [
|
28 |
+
"@composer phpunit"
|
29 |
+
]
|
30 |
+
},
|
31 |
+
"minimum-stability": "dev",
|
32 |
+
"prefer-stable": true,
|
33 |
+
"extra": {
|
34 |
+
"autotagger": true,
|
35 |
+
"mirror-repo": "Automattic/jetpack-licensing",
|
36 |
+
"textdomain": "jetpack-licensing",
|
37 |
+
"changelogger": {
|
38 |
+
"link-template": "https://github.com/Automattic/jetpack-licensing/compare/v${old}...v${new}"
|
39 |
+
},
|
40 |
+
"branch-alias": {
|
41 |
+
"dev-trunk": "1.7.x-dev"
|
42 |
+
}
|
43 |
+
},
|
44 |
+
"config": {
|
45 |
+
"allow-plugins": {
|
46 |
+
"roots/wordpress-core-installer": true
|
47 |
+
}
|
48 |
+
}
|
49 |
+
}
|
jetpack_vendor/automattic/jetpack-licensing/src/class-endpoints.php
ADDED
@@ -0,0 +1,448 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* A Licensing Endpoints class for Jetpack.
|
4 |
+
*
|
5 |
+
* @package automattic/jetpack-licensing
|
6 |
+
*/
|
7 |
+
|
8 |
+
namespace Automattic\Jetpack\Licensing;
|
9 |
+
|
10 |
+
use Automattic\Jetpack\Connection\Client;
|
11 |
+
use Automattic\Jetpack\Connection\Manager as Connection_Manager;
|
12 |
+
use Automattic\Jetpack\Licensing;
|
13 |
+
use Automattic\Jetpack\Status\Visitor;
|
14 |
+
use Jetpack_Options;
|
15 |
+
use WP_Error;
|
16 |
+
|
17 |
+
/**
|
18 |
+
* Class Endpoints.
|
19 |
+
* Helper class that is responsible for registering and responding to licensing endpoint requests.
|
20 |
+
*
|
21 |
+
* @since 1.7.0
|
22 |
+
*/
|
23 |
+
class Endpoints {
|
24 |
+
/**
|
25 |
+
* This property stores the localized "Insufficient Permissions" error message.
|
26 |
+
*
|
27 |
+
* @var string Generic error message when user is not allowed to perform an action.
|
28 |
+
*/
|
29 |
+
private static $user_permissions_error_msg;
|
30 |
+
|
31 |
+
/**
|
32 |
+
* Constructor.
|
33 |
+
*/
|
34 |
+
public function __construct() {
|
35 |
+
self::$user_permissions_error_msg = esc_html__(
|
36 |
+
'You do not have the correct user permissions to perform this action.
|
37 |
+
Please contact your site admin if you think this is a mistake.',
|
38 |
+
'jetpack-licensing'
|
39 |
+
);
|
40 |
+
}
|
41 |
+
|
42 |
+
/**
|
43 |
+
* Declare the endpoints for the licensing package.
|
44 |
+
*
|
45 |
+
* @since 1.7.0
|
46 |
+
*
|
47 |
+
* @since-jetpack 10.9.0
|
48 |
+
*/
|
49 |
+
public function register_endpoints() {
|
50 |
+
/*
|
51 |
+
* Get and update the last licensing error message.
|
52 |
+
*/
|
53 |
+
register_rest_route(
|
54 |
+
'jetpack/v4',
|
55 |
+
'/licensing/error',
|
56 |
+
array(
|
57 |
+
array(
|
58 |
+
'methods' => \WP_REST_Server::READABLE,
|
59 |
+
'callback' => __CLASS__ . '::get_licensing_error',
|
60 |
+
'permission_callback' => __CLASS__ . '::can_manage_options_check',
|
61 |
+
),
|
62 |
+
array(
|
63 |
+
'methods' => \WP_REST_Server::EDITABLE,
|
64 |
+
'callback' => __CLASS__ . '::update_licensing_error',
|
65 |
+
'permission_callback' => __CLASS__ . '::can_manage_options_check',
|
66 |
+
'args' => array(
|
67 |
+
'error' => array(
|
68 |
+
'required' => true,
|
69 |
+
'type' => 'string',
|
70 |
+
'validate_callback' => __CLASS__ . '::validate_string',
|
71 |
+
'sanitize_callback' => 'sanitize_text_field',
|
72 |
+
),
|
73 |
+
),
|
74 |
+
),
|
75 |
+
)
|
76 |
+
);
|
77 |
+
|
78 |
+
/**
|
79 |
+
* Sets a license. This is still used as part of the first pass at licensing done for partners.
|
80 |
+
*
|
81 |
+
* See https://github.com/Automattic/jetpack/pull/23687 for more details.
|
82 |
+
*/
|
83 |
+
register_rest_route(
|
84 |
+
'jetpack/v4',
|
85 |
+
'/licensing/set-license',
|
86 |
+
array(
|
87 |
+
'methods' => \WP_REST_Server::EDITABLE,
|
88 |
+
'callback' => __CLASS__ . '::set_jetpack_license',
|
89 |
+
'permission_callback' => __CLASS__ . '::set_jetpack_license_key_permission_check',
|
90 |
+
'args' => array(
|
91 |
+
'license' => array(
|
92 |
+
'required' => true,
|
93 |
+
'type' => 'string',
|
94 |
+
'validate_callback' => __CLASS__ . '::validate_string',
|
95 |
+
'sanitize_callback' => 'sanitize_text_field',
|
96 |
+
),
|
97 |
+
),
|
98 |
+
)
|
99 |
+
);
|
100 |
+
|
101 |
+
/**
|
102 |
+
* Get Jetpack user licenses.
|
103 |
+
*/
|
104 |
+
register_rest_route(
|
105 |
+
'jetpack/v4',
|
106 |
+
'licensing/user/licenses',
|
107 |
+
array(
|
108 |
+
'methods' => \WP_REST_Server::READABLE,
|
109 |
+
'callback' => __CLASS__ . '::get_user_licenses',
|
110 |
+
'permission_callback' => __CLASS__ . '::user_licensing_permission_check',
|
111 |
+
)
|
112 |
+
);
|
113 |
+
|
114 |
+
/**
|
115 |
+
* Get Jetpack user license counts.
|
116 |
+
*/
|
117 |
+
register_rest_route(
|
118 |
+
'jetpack/v4',
|
119 |
+
'licensing/user/counts',
|
120 |
+
array(
|
121 |
+
'methods' => \WP_REST_Server::READABLE,
|
122 |
+
'callback' => __CLASS__ . '::get_user_license_counts',
|
123 |
+
'permission_callback' => __CLASS__ . '::user_licensing_permission_check',
|
124 |
+
)
|
125 |
+
);
|
126 |
+
|
127 |
+
/**
|
128 |
+
* Update user-licensing activation notice dismiss info.
|
129 |
+
*/
|
130 |
+
register_rest_route(
|
131 |
+
'jetpack/v4',
|
132 |
+
'licensing/user/activation-notice-dismiss',
|
133 |
+
array(
|
134 |
+
'methods' => \WP_REST_Server::EDITABLE,
|
135 |
+
'callback' => __CLASS__ . '::update_licensing_activation_notice_dismiss',
|
136 |
+
'permission_callback' => __CLASS__ . '::user_licensing_permission_check',
|
137 |
+
'args' => array(
|
138 |
+
'last_detached_count' => array(
|
139 |
+
'required' => true,
|
140 |
+
'type' => 'integer',
|
141 |
+
'validate_callback' => __CLASS__ . '::validate_non_neg_int',
|
142 |
+
),
|
143 |
+
),
|
144 |
+
)
|
145 |
+
);
|
146 |
+
|
147 |
+
/**
|
148 |
+
* Attach licenses to user account
|
149 |
+
*/
|
150 |
+
register_rest_route(
|
151 |
+
'jetpack/v4',
|
152 |
+
'/licensing/attach-licenses',
|
153 |
+
array(
|
154 |
+
'methods' => \WP_REST_Server::EDITABLE,
|
155 |
+
'callback' => __CLASS__ . '::attach_jetpack_licenses',
|
156 |
+
'permission_callback' => __CLASS__ . '::user_licensing_permission_check',
|
157 |
+
'args' => array(
|
158 |
+
'licenses' => array(
|
159 |
+
'required' => true,
|
160 |
+
'type' => 'array',
|
161 |
+
'items' => array(
|
162 |
+
'type' => 'string',
|
163 |
+
),
|
164 |
+
),
|
165 |
+
),
|
166 |
+
)
|
167 |
+
);
|
168 |
+
}
|
169 |
+
|
170 |
+
/**
|
171 |
+
* Verify that the user can set a Jetpack license key
|
172 |
+
*
|
173 |
+
* @since 1.7.0
|
174 |
+
*
|
175 |
+
* @since-jetpack 9.5.0
|
176 |
+
*
|
177 |
+
* @return bool|WP_Error True if user is able to set a Jetpack license key
|
178 |
+
*/
|
179 |
+
public static function set_jetpack_license_key_permission_check() {
|
180 |
+
if ( Licensing::instance()->is_licensing_input_enabled() ) {
|
181 |
+
return true;
|
182 |
+
}
|
183 |
+
|
184 |
+
return new WP_Error( 'invalid_user_permission_set_jetpack_license_key', self::$user_permissions_error_msg, array( 'status' => rest_authorization_required_code() ) );
|
185 |
+
|
186 |
+
}
|
187 |
+
|
188 |
+
/**
|
189 |
+
* Verify that user can view and update user-licensing data.
|
190 |
+
*
|
191 |
+
* @since 1.7.0
|
192 |
+
*
|
193 |
+
* @return bool Whether the user is currently connected and they are the connection owner.
|
194 |
+
*/
|
195 |
+
public static function user_licensing_permission_check() {
|
196 |
+
$connection_manager = new Connection_Manager( 'jetpack' );
|
197 |
+
|
198 |
+
if ( $connection_manager->is_user_connected() && $connection_manager->is_connection_owner() ) {
|
199 |
+
return true;
|
200 |
+
}
|
201 |
+
|
202 |
+
return new WP_Error( 'invalid_permission_manage_user_licenses', self::$user_permissions_error_msg, array( 'status' => rest_authorization_required_code() ) );
|
203 |
+
}
|
204 |
+
|
205 |
+
/**
|
206 |
+
* Verify that user can manage_options
|
207 |
+
*
|
208 |
+
* @since 1.7.0
|
209 |
+
*
|
210 |
+
* @return bool Whether user has the capability 'manage_options'.
|
211 |
+
*/
|
212 |
+
public static function can_manage_options_check() {
|
213 |
+
if ( current_user_can( 'manage_options' ) ) {
|
214 |
+
return true;
|
215 |
+
}
|
216 |
+
|
217 |
+
return new WP_Error( 'invalid_user_permission_view_admin', self::$user_permissions_error_msg, array( 'status' => rest_authorization_required_code() ) );
|
218 |
+
}
|
219 |
+
|
220 |
+
/**
|
221 |
+
* Validates that the parameter is a string.
|
222 |
+
*
|
223 |
+
* @since 1.7.0
|
224 |
+
*
|
225 |
+
* @since-jetpack 4.3.0
|
226 |
+
*
|
227 |
+
* @param string $value Value to check.
|
228 |
+
* @param WP_REST_Request $request The request sent to the WP REST API.
|
229 |
+
* @param string $param Name of the parameter passed to endpoint holding $value.
|
230 |
+
*
|
231 |
+
* @return bool|WP_Error
|
232 |
+
*/
|
233 |
+
public static function validate_string( $value, $request, $param ) {
|
234 |
+
if ( ! is_string( $value ) ) {
|
235 |
+
/* translators: %s: The literal parameter name. Should not be translated. */
|
236 |
+
return new WP_Error( 'invalid_param', sprintf( esc_html__( '%s must be a string.', 'jetpack-licensing' ), $param ) );
|
237 |
+
}
|
238 |
+
return true;
|
239 |
+
}
|
240 |
+
|
241 |
+
/**
|
242 |
+
* Validates that the parameter is a non-negative integer (includes 0).
|
243 |
+
*
|
244 |
+
* @since 1.7.0
|
245 |
+
*
|
246 |
+
* @since-jetpack 10.4.0
|
247 |
+
*
|
248 |
+
* @param int $value Value to check.
|
249 |
+
* @param WP_REST_Request $request The request sent to the WP REST API.
|
250 |
+
* @param string $param Name of the parameter passed to endpoint holding $value.
|
251 |
+
*
|
252 |
+
* @return bool|WP_Error
|
253 |
+
*/
|
254 |
+
public static function validate_non_neg_int( $value, $request, $param ) {
|
255 |
+
if ( ! is_numeric( $value ) || $value < 0 ) {
|
256 |
+
return new WP_Error(
|
257 |
+
'invalid_param',
|
258 |
+
/* translators: %s: The literal parameter name. Should not be translated. */
|
259 |
+
sprintf( esc_html__( '%s must be a non-negative integer.', 'jetpack-licensing' ), $param )
|
260 |
+
);
|
261 |
+
}
|
262 |
+
return true;
|
263 |
+
}
|
264 |
+
|
265 |
+
/**
|
266 |
+
* Update the last licensing error message.
|
267 |
+
*
|
268 |
+
* @since 1.7.0
|
269 |
+
*
|
270 |
+
* @since-jetpack 9.0.0
|
271 |
+
*
|
272 |
+
* @param WP_REST_Request $request The request.
|
273 |
+
*
|
274 |
+
* @return bool true.
|
275 |
+
*/
|
276 |
+
public static function update_licensing_error( $request ) {
|
277 |
+
Licensing::instance()->log_error( $request['error'] );
|
278 |
+
|
279 |
+
return true;
|
280 |
+
}
|
281 |
+
|
282 |
+
/**
|
283 |
+
* Get the last licensing error message, if any.
|
284 |
+
*
|
285 |
+
* @since 1.7.0
|
286 |
+
*
|
287 |
+
* @since-jetpack 9.0.0
|
288 |
+
*
|
289 |
+
* @return string Licensing error message or empty string.
|
290 |
+
*/
|
291 |
+
public static function get_licensing_error() {
|
292 |
+
return Licensing::instance()->last_error();
|
293 |
+
}
|
294 |
+
|
295 |
+
/**
|
296 |
+
* Set a Jetpack license
|
297 |
+
*
|
298 |
+
* @since 1.7.0
|
299 |
+
*
|
300 |
+
* @since-jetpack 9.6.0
|
301 |
+
*
|
302 |
+
* @param WP_REST_Request $request The request.
|
303 |
+
*
|
304 |
+
* @return WP_REST_Response|WP_Error A response object if the option was successfully updated, or a WP_Error if it failed.
|
305 |
+
*/
|
306 |
+
public static function set_jetpack_license( $request ) {
|
307 |
+
$license = trim( sanitize_text_field( $request['license'] ) );
|
308 |
+
|
309 |
+
if ( Licensing::instance()->append_license( $license ) ) {
|
310 |
+
return rest_ensure_response( array( 'code' => 'success' ) );
|
311 |
+
}
|
312 |
+
|
313 |
+
return new WP_Error(
|
314 |
+
'setting_license_key_failed',
|
315 |
+
esc_html__( 'Could not set this license key. Please try again.', 'jetpack-licensing' ),
|
316 |
+
array( 'status' => 500 )
|
317 |
+
);
|
318 |
+
}
|
319 |
+
|
320 |
+
/**
|
321 |
+
* Gets the users licenses.
|
322 |
+
*
|
323 |
+
* @since 1.7.0
|
324 |
+
*
|
325 |
+
* @since-jetpack 10.4.0
|
326 |
+
*
|
327 |
+
* @return string|WP_Error A JSON object of user licenses if the request was successful, or a WP_Error otherwise.
|
328 |
+
*/
|
329 |
+
public static function get_user_licenses() {
|
330 |
+
$wpcom_request = Client::wpcom_json_api_request_as_user(
|
331 |
+
'/jetpack-licensing/user/licenses',
|
332 |
+
'2',
|
333 |
+
array(
|
334 |
+
'method' => 'GET',
|
335 |
+
'headers' => array(
|
336 |
+
'Content-Type' => 'application/json',
|
337 |
+
'X-Forwarded-For' => ( new Visitor() )->get_ip( true ),
|
338 |
+
),
|
339 |
+
)
|
340 |
+
);
|
341 |
+
|
342 |
+
$response_code = wp_remote_retrieve_response_code( $wpcom_request );
|
343 |
+
if ( 200 === $response_code ) {
|
344 |
+
$licenses = json_decode( wp_remote_retrieve_body( $wpcom_request ) );
|
345 |
+
return $licenses;
|
346 |
+
} else {
|
347 |
+
return new WP_Error(
|
348 |
+
'failed_to_fetch_data',
|
349 |
+
esc_html__( 'Unable to fetch the requested data.', 'jetpack-licensing' ),
|
350 |
+
array( 'status' => $response_code )
|
351 |
+
);
|
352 |
+
}
|
353 |
+
}
|
354 |
+
|
355 |
+
/**
|
356 |
+
* Gets the users licenses counts.
|
357 |
+
*
|
358 |
+
* @since 1.7.0
|
359 |
+
*
|
360 |
+
* @since-jetpack 10.4.0
|
361 |
+
*
|
362 |
+
* @return string|WP_Error A JSON object of user license counts if the request was successful, or a WP_Error otherwise.
|
363 |
+
*/
|
364 |
+
public static function get_user_license_counts() {
|
365 |
+
$wpcom_request = Client::wpcom_json_api_request_as_user(
|
366 |
+
'/jetpack-licensing/user/licenses/counts',
|
367 |
+
'2',
|
368 |
+
array(
|
369 |
+
'method' => 'GET',
|
370 |
+
'headers' => array(
|
371 |
+
'Content-Type' => 'application/json',
|
372 |
+
'X-Forwarded-For' => ( new Visitor() )->get_ip( true ),
|
373 |
+
),
|
374 |
+
)
|
375 |
+
);
|
376 |
+
|
377 |
+
$response_code = wp_remote_retrieve_response_code( $wpcom_request );
|
378 |
+
if ( 200 === $response_code ) {
|
379 |
+
$license_counts = json_decode( wp_remote_retrieve_body( $wpcom_request ) );
|
380 |
+
return $license_counts;
|
381 |
+
} else {
|
382 |
+
return new WP_Error(
|
383 |
+
'failed_to_fetch_data',
|
384 |
+
esc_html__( 'Unable to fetch the requested data.', 'jetpack-licensing' ),
|
385 |
+
array( 'status' => $response_code )
|
386 |
+
);
|
387 |
+
}
|
388 |
+
}
|
389 |
+
|
390 |
+
/**
|
391 |
+
* Update the user-licenses activation notice dismissal data.
|
392 |
+
*
|
393 |
+
* @since 1.7.0
|
394 |
+
*
|
395 |
+
* @since-jetpack 10.4.0
|
396 |
+
*
|
397 |
+
* @param WP_REST_Request $request The request sent to the WP REST API.
|
398 |
+
*
|
399 |
+
* @return array|WP_Error
|
400 |
+
*/
|
401 |
+
public static function update_licensing_activation_notice_dismiss( $request ) {
|
402 |
+
|
403 |
+
if ( ! isset( $request['last_detached_count'] ) ) {
|
404 |
+
return new WP_Error( 'invalid_param', esc_html__( 'Missing parameter "last_detached_count".', 'jetpack-licensing' ), array( 'status' => 404 ) );
|
405 |
+
}
|
406 |
+
|
407 |
+
$default = array(
|
408 |
+
'last_detached_count' => null,
|
409 |
+
'last_dismissed_time' => null,
|
410 |
+
);
|
411 |
+
$last_detached_count = ( '' === $request['last_detached_count'] )
|
412 |
+
? $default['last_detached_count']
|
413 |
+
: $request['last_detached_count'];
|
414 |
+
$last_dismissed_time = ( '' === $request['last_detached_count'] )
|
415 |
+
? $default['last_dismissed_time']
|
416 |
+
// Use UTC timezone and convert to ISO8601 format(DateTime::W3C) for best compatibility with JavaScript Date in all browsers.
|
417 |
+
: ( new \DateTime( 'NOW', new \DateTimeZone( 'UTC' ) ) )->format( \DateTime::W3C );
|
418 |
+
|
419 |
+
$notice_data = array(
|
420 |
+
'last_detached_count' => $last_detached_count,
|
421 |
+
'last_dismissed_time' => $last_dismissed_time,
|
422 |
+
);
|
423 |
+
|
424 |
+
Jetpack_Options::update_option( 'licensing_activation_notice_dismiss', $notice_data, true );
|
425 |
+
return rest_ensure_response( $notice_data );
|
426 |
+
}
|
427 |
+
|
428 |
+
/**
|
429 |
+
* Attach Jetpack licenses
|
430 |
+
*
|
431 |
+
* @since 1.7.0
|
432 |
+
*
|
433 |
+
* @since-jetpack 10.4.0
|
434 |
+
*
|
435 |
+
* @param WP_REST_Request $request The request.
|
436 |
+
*
|
437 |
+
* @return WP_REST_Response|WP_Error A response object
|
438 |
+
*/
|
439 |
+
public static function attach_jetpack_licenses( $request ) {
|
440 |
+
$licenses = array_map(
|
441 |
+
function ( $license ) {
|
442 |
+
return trim( sanitize_text_field( $license ) );
|
443 |
+
},
|
444 |
+
$request['licenses']
|
445 |
+
);
|
446 |
+
return rest_ensure_response( Licensing::instance()->attach_licenses( $licenses ) );
|
447 |
+
}
|
448 |
+
}
|
jetpack_vendor/automattic/jetpack-licensing/src/class-licensing.php
ADDED
@@ -0,0 +1,286 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* A Terms of Service class for Jetpack.
|
4 |
+
*
|
5 |
+
* @package automattic/jetpack-licensing
|
6 |
+
*/
|
7 |
+
|
8 |
+
namespace Automattic\Jetpack;
|
9 |
+
|
10 |
+
use Automattic\Jetpack\Connection\Manager as Connection_Manager;
|
11 |
+
use Automattic\Jetpack\Licensing\Endpoints;
|
12 |
+
use Jetpack_IXR_ClientMulticall;
|
13 |
+
use Jetpack_Options;
|
14 |
+
use WP_Error;
|
15 |
+
|
16 |
+
/**
|
17 |
+
* Class Licensing.
|
18 |
+
* Helper class that is responsible for attaching licenses to the current site.
|
19 |
+
*
|
20 |
+
* @since 1.1.1
|
21 |
+
*/
|
22 |
+
class Licensing {
|
23 |
+
/**
|
24 |
+
* Name of the WordPress option that holds all known Jetpack licenses.
|
25 |
+
*
|
26 |
+
* @const string
|
27 |
+
*/
|
28 |
+
const LICENSES_OPTION_NAME = 'jetpack_licenses';
|
29 |
+
|
30 |
+
/**
|
31 |
+
* Name of the WordPress transient that holds the last license attaching error, if any.
|
32 |
+
*
|
33 |
+
* @const string
|
34 |
+
*/
|
35 |
+
const ERROR_TRANSIENT_NAME = 'jetpack_licenses_error';
|
36 |
+
|
37 |
+
/**
|
38 |
+
* Holds the singleton instance of this class.
|
39 |
+
*
|
40 |
+
* @var self
|
41 |
+
*/
|
42 |
+
protected static $instance = false;
|
43 |
+
|
44 |
+
/**
|
45 |
+
* Singleton.
|
46 |
+
*
|
47 |
+
* @static
|
48 |
+
*/
|
49 |
+
public static function instance() {
|
50 |
+
if ( ! self::$instance ) {
|
51 |
+
self::$instance = new self();
|
52 |
+
}
|
53 |
+
|
54 |
+
return self::$instance;
|
55 |
+
}
|
56 |
+
|
57 |
+
/**
|
58 |
+
* Initialize.
|
59 |
+
*
|
60 |
+
* @return void
|
61 |
+
*/
|
62 |
+
public function initialize() {
|
63 |
+
add_action( 'add_option_' . self::LICENSES_OPTION_NAME, array( $this, 'attach_stored_licenses' ) );
|
64 |
+
add_action( 'update_option_' . self::LICENSES_OPTION_NAME, array( $this, 'attach_stored_licenses' ) );
|
65 |
+
add_action( 'jetpack_authorize_ending_authorized', array( $this, 'attach_stored_licenses_on_connection' ) );
|
66 |
+
add_action( 'rest_api_init', array( $this, 'initialize_endpoints' ) );
|
67 |
+
}
|
68 |
+
|
69 |
+
/**
|
70 |
+
* Initialize endpoints required for Licensing package.
|
71 |
+
*
|
72 |
+
* @since 1.7.0
|
73 |
+
*
|
74 |
+
* @return void
|
75 |
+
*/
|
76 |
+
public function initialize_endpoints() {
|
77 |
+
$endpoints = new Endpoints();
|
78 |
+
$endpoints->register_endpoints();
|
79 |
+
}
|
80 |
+
|
81 |
+
/**
|
82 |
+
* Get Jetpack connection manager instance.
|
83 |
+
*
|
84 |
+
* @return Connection_Manager
|
85 |
+
*/
|
86 |
+
protected function connection() {
|
87 |
+
static $connection;
|
88 |
+
|
89 |
+
if ( null === $connection ) {
|
90 |
+
$connection = new Connection_Manager();
|
91 |
+
}
|
92 |
+
|
93 |
+
return $connection;
|
94 |
+
}
|
95 |
+
|
96 |
+
/**
|
97 |
+
* Get the last license attach request error that has occurred, if any.
|
98 |
+
*
|
99 |
+
* @return string Human-readable error message or an empty string.
|
100 |
+
*/
|
101 |
+
public function last_error() {
|
102 |
+
return Jetpack_Options::get_option( 'licensing_error', '' );
|
103 |
+
}
|
104 |
+
|
105 |
+
/**
|
106 |
+
* Log an error to be surfaced to the user at a later time.
|
107 |
+
*
|
108 |
+
* @param string $error Human-readable error message.
|
109 |
+
* @return void
|
110 |
+
*/
|
111 |
+
public function log_error( $error ) {
|
112 |
+
$substr = function_exists( 'mb_substr' ) ? 'mb_substr' : 'substr';
|
113 |
+
Jetpack_Options::update_option( 'licensing_error', $substr( $error, 0, 1024 ) );
|
114 |
+
}
|
115 |
+
|
116 |
+
/**
|
117 |
+
* Get all stored licenses.
|
118 |
+
*
|
119 |
+
* @return string[] License keys.
|
120 |
+
*/
|
121 |
+
public function stored_licenses() {
|
122 |
+
$licenses = (array) get_option( self::LICENSES_OPTION_NAME, array() );
|
123 |
+
$licenses = array_filter( $licenses, 'is_scalar' );
|
124 |
+
$licenses = array_map( 'strval', $licenses );
|
125 |
+
$licenses = array_filter( $licenses );
|
126 |
+
|
127 |
+
return $licenses;
|
128 |
+
}
|
129 |
+
|
130 |
+
/**
|
131 |
+
* Append a license
|
132 |
+
*
|
133 |
+
* @param string $license A jetpack license key.
|
134 |
+
* @return bool True if the option was updated with the new license, false otherwise.
|
135 |
+
*/
|
136 |
+
public function append_license( $license ) {
|
137 |
+
$licenses = $this->stored_licenses();
|
138 |
+
|
139 |
+
array_push( $licenses, $license );
|
140 |
+
|
141 |
+
return update_option( self::LICENSES_OPTION_NAME, $licenses );
|
142 |
+
}
|
143 |
+
|
144 |
+
/**
|
145 |
+
* Make an authenticated WP.com XMLRPC multicall request to attach the provided license keys.
|
146 |
+
*
|
147 |
+
* @param string[] $licenses License keys to attach.
|
148 |
+
* @return Jetpack_IXR_ClientMulticall
|
149 |
+
*/
|
150 |
+
protected function attach_licenses_request( array $licenses ) {
|
151 |
+
$xml = new Jetpack_IXR_ClientMulticall( array( 'timeout' => 30 ) );
|
152 |
+
|
153 |
+
foreach ( $licenses as $license ) {
|
154 |
+
$xml->addCall( 'jetpack.attachLicense', $license );
|
155 |
+
}
|
156 |
+
|
157 |
+
$xml->query();
|
158 |
+
|
159 |
+
return $xml;
|
160 |
+
}
|
161 |
+
|
162 |
+
/**
|
163 |
+
* Attach the given licenses.
|
164 |
+
*
|
165 |
+
* @param string[] $licenses Licenses to attach.
|
166 |
+
* @return array|WP_Error Results for each license (which may include WP_Error instances) or a WP_Error instance.
|
167 |
+
*/
|
168 |
+
public function attach_licenses( array $licenses ) {
|
169 |
+
if ( ! $this->connection()->has_connected_owner() ) {
|
170 |
+
return new WP_Error( 'not_connected', __( 'Jetpack doesn\'t have a connected owner.', 'jetpack-licensing' ) );
|
171 |
+
}
|
172 |
+
|
173 |
+
if ( empty( $licenses ) ) {
|
174 |
+
return array();
|
175 |
+
}
|
176 |
+
|
177 |
+
$xml = $this->attach_licenses_request( $licenses );
|
178 |
+
|
179 |
+
if ( $xml->isError() ) {
|
180 |
+
$error = new WP_Error( 'request_failed', __( 'License attach request failed.', 'jetpack-licensing' ) );
|
181 |
+
$error->add( $xml->getErrorCode(), $xml->getErrorMessage() );
|
182 |
+
return $error;
|
183 |
+
}
|
184 |
+
|
185 |
+
$results = array_map(
|
186 |
+
function ( $response ) {
|
187 |
+
if ( isset( $response['faultCode'] ) || isset( $response['faultString'] ) ) {
|
188 |
+
return new WP_Error( $response['faultCode'], $response['faultString'] );
|
189 |
+
}
|
190 |
+
|
191 |
+
return $response;
|
192 |
+
},
|
193 |
+
(array) $xml->getResponse()
|
194 |
+
);
|
195 |
+
|
196 |
+
return $results;
|
197 |
+
}
|
198 |
+
|
199 |
+
/**
|
200 |
+
* Attach all stored licenses.
|
201 |
+
*
|
202 |
+
* @return array|WP_Error Results for each license (which may include WP_Error instances) or a WP_Error instance.
|
203 |
+
*/
|
204 |
+
public function attach_stored_licenses() {
|
205 |
+
$licenses = $this->stored_licenses();
|
206 |
+
$results = $this->attach_licenses( $licenses );
|
207 |
+
|
208 |
+
if ( is_wp_error( $results ) ) {
|
209 |
+
if ( 'request_failed' === $results->get_error_code() ) {
|
210 |
+
$this->log_error(
|
211 |
+
__( 'Failed to attach your Jetpack license(s). Please try reconnecting Jetpack.', 'jetpack-licensing' )
|
212 |
+
);
|
213 |
+
}
|
214 |
+
|
215 |
+
return $results;
|
216 |
+
}
|
217 |
+
|
218 |
+
$failed = array();
|
219 |
+
|
220 |
+
foreach ( $results as $index => $result ) {
|
221 |
+
if ( isset( $licenses[ $index ] ) && is_wp_error( $result ) ) {
|
222 |
+
$failed[] = $licenses[ $index ];
|
223 |
+
}
|
224 |
+
}
|
225 |
+
|
226 |
+
if ( ! empty( $failed ) ) {
|
227 |
+
$this->log_error(
|
228 |
+
sprintf(
|
229 |
+
/* translators: %s is a comma-separated list of license keys. */
|
230 |
+
__( 'The following Jetpack licenses are invalid, already in use, or revoked: %s', 'jetpack-licensing' ),
|
231 |
+
implode( ', ', $failed )
|
232 |
+
)
|
233 |
+
);
|
234 |
+
}
|
235 |
+
|
236 |
+
return $results;
|
237 |
+
}
|
238 |
+
|
239 |
+
/**
|
240 |
+
* Attach all stored licenses during connection flow for the connection owner.
|
241 |
+
*
|
242 |
+
* @return void
|
243 |
+
*/
|
244 |
+
public function attach_stored_licenses_on_connection() {
|
245 |
+
if ( $this->connection()->is_connection_owner() ) {
|
246 |
+
$this->attach_stored_licenses();
|
247 |
+
}
|
248 |
+
}
|
249 |
+
|
250 |
+
/**
|
251 |
+
* Is the current user allowed to use the Licensing Input UI?
|
252 |
+
*
|
253 |
+
* @since 1.4.0
|
254 |
+
* @return bool
|
255 |
+
*/
|
256 |
+
public static function is_licensing_input_enabled() {
|
257 |
+
/**
|
258 |
+
* Filter that checks if the user is allowed to see the Licensing UI. `true` enables it.
|
259 |
+
*
|
260 |
+
* @since 1.4.0
|
261 |
+
*
|
262 |
+
* @param bool False by default.
|
263 |
+
*/
|
264 |
+
return apply_filters( 'jetpack_licensing_ui_enabled', false ) && current_user_can( 'jetpack_connect_user' );
|
265 |
+
}
|
266 |
+
|
267 |
+
/**
|
268 |
+
* Gets the user-licensing activation notice dismissal info.
|
269 |
+
*
|
270 |
+
* @since 10.4.0
|
271 |
+
* @return array
|
272 |
+
*/
|
273 |
+
public function get_license_activation_notice_dismiss() {
|
274 |
+
|
275 |
+
$default = array(
|
276 |
+
'last_detached_count' => null,
|
277 |
+
'last_dismissed_time' => null,
|
278 |
+
);
|
279 |
+
|
280 |
+
if ( $this->connection()->is_user_connected() && $this->connection()->is_connection_owner() ) {
|
281 |
+
return Jetpack_Options::get_option( 'licensing_activation_notice_dismiss', $default );
|
282 |
+
}
|
283 |
+
|
284 |
+
return $default;
|
285 |
+
}
|
286 |
+
}
|
jetpack_vendor/automattic/jetpack-my-jetpack/CHANGELOG.md
CHANGED
@@ -5,11 +5,105 @@ All notable changes to this project will be documented in this file.
|
|
5 |
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
|
6 |
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
7 |
|
8 |
-
## [
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
9 |
|
10 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
11 |
|
12 |
### Changed
|
|
|
|
|
13 |
- Updated package dependencies.
|
14 |
|
15 |
## [0.6.13] - 2022-03-31
|
@@ -414,7 +508,20 @@ This is an alpha version! The changes listed here are not final.
|
|
414 |
### Added
|
415 |
- Created package
|
416 |
|
417 |
-
[
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
418 |
[0.6.13]: https://github.com/Automattic/jetpack-my-jetpack/compare/0.6.12...0.6.13
|
419 |
[0.6.12]: https://github.com/Automattic/jetpack-my-jetpack/compare/0.6.11...0.6.12
|
420 |
[0.6.11]: https://github.com/Automattic/jetpack-my-jetpack/compare/0.6.10...0.6.11
|
5 |
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
|
6 |
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
7 |
|
8 |
+
## [1.7.0] - 2022-06-21
|
9 |
+
### Changed
|
10 |
+
- My Jetpack: set products grid to 3x3 for large viewport size
|
11 |
+
- Renaming master to trunk.
|
12 |
+
- Renaming `master` references to `trunk`
|
13 |
+
|
14 |
+
## [1.6.2] - 2022-06-14
|
15 |
+
### Changed
|
16 |
+
- Updated package dependencies. [#24529]
|
17 |
+
|
18 |
+
## [1.6.1] - 2022-06-08
|
19 |
+
### Changed
|
20 |
+
- Reorder JS imports for `import/order` eslint rule. [#24601]
|
21 |
+
- Updated package dependencies. [#24510]
|
22 |
+
|
23 |
+
## [1.6.0] - 2022-05-30
|
24 |
+
### Added
|
25 |
+
- Added Social to My Jetpack.
|
26 |
+
|
27 |
+
### Changed
|
28 |
+
- Make My Jetpack use the new Modules class
|
29 |
+
- Replace deprecated external-link variation by using isExternalLink prop
|
30 |
+
- Updated package dependencies
|
31 |
+
|
32 |
+
## [1.5.0] - 2022-05-24
|
33 |
+
### Changed
|
34 |
+
- Default licensing UI in My Jetpack to be enabled [#24396]
|
35 |
+
- Updated package dependencies. [#24449]
|
36 |
+
|
37 |
+
## [1.4.1] - 2022-05-19
|
38 |
+
### Changed
|
39 |
+
- Updated package dependencies. [#24395]
|
40 |
+
|
41 |
+
## [1.4.0] - 2022-05-18
|
42 |
+
### Added
|
43 |
+
- Added a filter to allow stand-alone plugins to add product specific activation routines [#24334]
|
44 |
+
- My Jetpack: Add Protect class [#24347]
|
45 |
+
- My Jetpack: compute Search plugin price based on price tier [#24337]
|
46 |
+
|
47 |
+
### Changed
|
48 |
+
- Add tiered pricing copy and update titles for Jetpack Search [#24357]
|
49 |
+
- Hide Activate a license link if there is no user connection since user connection is required [#24251]
|
50 |
+
- My Jetpack Hybrid products: Install Jetpack if stand-alone plugin installation fails [#24335]
|
51 |
+
- Updated Jetpack Scan feature list. [#23863] [#23795] [#24361] [#24372]
|
52 |
+
|
53 |
+
## [1.3.0] - 2022-05-10
|
54 |
+
### Changed
|
55 |
+
- Adds from arg to connection screen in My Jetpack so that we can begin tracking connections originating from My Jetpack [#24283]
|
56 |
+
- Updated package dependencies. [#24189]
|
57 |
+
- Updated references to old licensing activation UI to licensing activation UI in My Jetpack [#24189]
|
58 |
+
|
59 |
+
## [1.2.1] - 2022-05-04
|
60 |
+
### Added
|
61 |
+
- Add missing JavaScript dependencies. [#24096]
|
62 |
|
63 |
+
### Changed
|
64 |
+
- My Jetpack: remove duplicated site suffix stored on rawUrl. Use siteSuffix instead. [#24094]
|
65 |
+
- Updated package dependencies. [#24095] [#24198]
|
66 |
+
|
67 |
+
### Deprecated
|
68 |
+
- Moved the options class into Connection. [#24095]
|
69 |
+
|
70 |
+
## [1.2.0] - 2022-04-26
|
71 |
+
### Added
|
72 |
+
- Added activation screen component to My Jetpack licensing page
|
73 |
+
|
74 |
+
### Changed
|
75 |
+
- Updated package dependencies.
|
76 |
+
- Update package.json metadata.
|
77 |
+
|
78 |
+
## [1.1.0] - 2022-04-19
|
79 |
+
### Added
|
80 |
+
- Adds a skeleton for the licensing UI along with a feature flag
|
81 |
+
- Better error handling for when the WPCOM server is unreachable
|
82 |
+
- Introduced ConnectedProductOffer component
|
83 |
+
|
84 |
+
### Changed
|
85 |
+
- Turn Search into a Hybrid Product
|
86 |
+
- Updated package dependencies
|
87 |
+
- use connected plugin list from the connection store and ask for an update after activating a product
|
88 |
+
|
89 |
+
## [1.0.2] - 2022-04-12
|
90 |
+
### Changed
|
91 |
+
- Updated package dependencies.
|
92 |
+
|
93 |
+
### Fixed
|
94 |
+
- Fixed bug in checkout URLs for sites installed in subdirs.
|
95 |
+
|
96 |
+
## [1.0.1] - 2022-04-06
|
97 |
+
### Removed
|
98 |
+
- Removed tracking dependency.
|
99 |
+
|
100 |
+
## [1.0.0] - 2022-04-05
|
101 |
+
### Added
|
102 |
+
- My Jetpack: improve Product and Interstitial components.
|
103 |
|
104 |
### Changed
|
105 |
+
- Bump My Jetpack package to major version 1.0.0.
|
106 |
+
- My Jetpack: align price boxes in the interstitial product page.
|
107 |
- Updated package dependencies.
|
108 |
|
109 |
## [0.6.13] - 2022-03-31
|
508 |
### Added
|
509 |
- Created package
|
510 |
|
511 |
+
[1.7.0]: https://github.com/Automattic/jetpack-my-jetpack/compare/1.6.2...1.7.0
|
512 |
+
[1.6.2]: https://github.com/Automattic/jetpack-my-jetpack/compare/1.6.1...1.6.2
|
513 |
+
[1.6.1]: https://github.com/Automattic/jetpack-my-jetpack/compare/1.6.0...1.6.1
|
514 |
+
[1.6.0]: https://github.com/Automattic/jetpack-my-jetpack/compare/1.5.0...1.6.0
|
515 |
+
[1.5.0]: https://github.com/Automattic/jetpack-my-jetpack/compare/1.4.1...1.5.0
|
516 |
+
[1.4.1]: https://github.com/Automattic/jetpack-my-jetpack/compare/1.4.0...1.4.1
|
517 |
+
[1.4.0]: https://github.com/Automattic/jetpack-my-jetpack/compare/1.3.0...1.4.0
|
518 |
+
[1.3.0]: https://github.com/Automattic/jetpack-my-jetpack/compare/1.2.1...1.3.0
|
519 |
+
[1.2.1]: https://github.com/Automattic/jetpack-my-jetpack/compare/1.2.0...1.2.1
|
520 |
+
[1.2.0]: https://github.com/Automattic/jetpack-my-jetpack/compare/1.1.0...1.2.0
|
521 |
+
[1.1.0]: https://github.com/Automattic/jetpack-my-jetpack/compare/1.0.2...1.1.0
|
522 |
+
[1.0.2]: https://github.com/Automattic/jetpack-my-jetpack/compare/1.0.1...1.0.2
|
523 |
+
[1.0.1]: https://github.com/Automattic/jetpack-my-jetpack/compare/1.0.0...1.0.1
|
524 |
+
[1.0.0]: https://github.com/Automattic/jetpack-my-jetpack/compare/0.6.13...1.0.0
|
525 |
[0.6.13]: https://github.com/Automattic/jetpack-my-jetpack/compare/0.6.12...0.6.13
|
526 |
[0.6.12]: https://github.com/Automattic/jetpack-my-jetpack/compare/0.6.11...0.6.12
|
527 |
[0.6.11]: https://github.com/Automattic/jetpack-my-jetpack/compare/0.6.10...0.6.11
|
jetpack_vendor/automattic/jetpack-my-jetpack/README.md
CHANGED
@@ -14,6 +14,10 @@ add_action( 'init', function() {
|
|
14 |
} );
|
15 |
```
|
16 |
|
|
|
|
|
|
|
|
|
17 |
That's all!
|
18 |
|
19 |
## Security
|
14 |
} );
|
15 |
```
|
16 |
|
17 |
+
### Conditionally loading licensing UI behind a feature flag
|
18 |
+
|
19 |
+
To disable the licensing UI at `/wp-admin/admin.php?page=my-jetpack#/add-license`, add a filter on `jetpack_my_jetpack_should_enable_add_license_screen` and return false: `add_filter( 'jetpack_my_jetpack_should_enable_add_license_screen', '__return_false' );`
|
20 |
+
|
21 |
That's all!
|
22 |
|
23 |
## Security
|
jetpack_vendor/automattic/jetpack-my-jetpack/build/images/jetpack-license-activation-with-lock-7b01c1a4cf56de799cd7.png
ADDED
Binary file
|
jetpack_vendor/automattic/jetpack-my-jetpack/build/images/jetpack-license-activation-with-success-cad524ede4e793cc0ece.png
ADDED
Binary file
|
jetpack_vendor/automattic/jetpack-my-jetpack/build/index.asset.php
CHANGED
@@ -1 +1 @@
|
|
1 |
-
<?php return array('dependencies' => array('
|
1 |
+
<?php return array('dependencies' => array('react', 'react-dom', 'wp-api-fetch', 'wp-components', 'wp-data', 'wp-element', 'wp-i18n', 'wp-polyfill', 'wp-primitives', 'wp-url'), 'version' => '98ec46a66ae455a9852f');
|
jetpack_vendor/automattic/jetpack-my-jetpack/build/index.css
CHANGED
@@ -1 +1 @@
|
|
1 |
-
#my-jetpack-container{--wp-admin-theme-color:var(--jp-black);--wp-admin-theme-color-darker-10:var(--jp-black-80);--wp-admin-theme-color-darker-20:var(--jp-black-80);height:100%}#my-jetpack-container .jetpack-logo{height:40px}#my-jetpack-container .jp-dashboard-footer__jetpack-symbol{height:16px}#wpbody-content>.notice{display:none}.pIsYsXFAJ9KX2VrS5rmY{--actions-size:28px;--status-size:8px;background:var(--jp-white);border-radius:var(--jp-border-radius);box-shadow:0 0 40px rgba(0,0,0,.08);box-shadow:0 0 0 1px var(--jp-gray-10) inset;display:flex;flex-direction:column;height:100%;padding:calc(var(--spacing-base)*3)}.pIsYsXFAJ9KX2VrS5rmY.YXHdD0VsFjiTsVRLrrx9{background:none;background-color:var(--jp-white-off);color:var(--jp-black-80);text-decoration:none}.pIsYsXFAJ9KX2VrS5rmY.YXHdD0VsFjiTsVRLrrx9:hover{background-color:var(--jp-white)}.pIsYsXFAJ9KX2VrS5rmY.YXHdD0VsFjiTsVRLrrx9:hover .ehgY0qp6bl53RaxP5rFF{text-decoration-thickness:var(--jp-underline-thickness)}.pIsYsXFAJ9KX2VrS5rmY.YXHdD0VsFjiTsVRLrrx9:focus{background-color:var(--jp-white);box-shadow:0 0 0 1.5px var(--jp-black);outline:3px solid transparent}.pIsYsXFAJ9KX2VrS5rmY.Pp9cMIaESLYelLOX3tkI{box-shadow:0 0 0 1.5px var(--jp-red-60)}.w56ueQLYexqzTybA7015{align-items:center;display:flex;justify-content:space-between;margin-bottom:var(--spacing-base);width:100%}.gmPKCDKZcfQt9WieTyKS{flex-grow:1}.ZKHHfl5DhA9kUnaL0qQZ{border-radius:var(--jp-border-radius);font-size:var(--font-body-extra-small);height:var(--actions-size);line-height:var(--actions-size)}.fDBaV7I4yUO6w5AWVEtr{align-items:center;display:flex;flex-wrap:wrap;justify-content:space-between;margin-top:calc(var(--spacing-base)*2);min-height:var(--actions-size);width:100%}.ehgY0qp6bl53RaxP5rFF{text-decoration:underline}.f5VJYwuJmjxH8PVxEbbv{align-items:center;display:flex;height:var(--actions-size);margin-left:var(--spacing-base);white-space:nowrap}.f5VJYwuJmjxH8PVxEbbv:before{border-radius:50%;content:"";display:inline-block;height:var(--status-size);margin-right:var(--spacing-base);width:var(--status-size)}.f5VJYwuJmjxH8PVxEbbv.ry3pxoGtmQ0ZeSwp7F_3{color:var(--jp-green-50)}.f5VJYwuJmjxH8PVxEbbv.ry3pxoGtmQ0ZeSwp7F_3:before{background:var(--jp-green-50)}.f5VJYwuJmjxH8PVxEbbv.LZzE3EG7m3CDR46wwwEr{color:var(--jp-gray-50)}.f5VJYwuJmjxH8PVxEbbv.LZzE3EG7m3CDR46wwwEr:before{background:var(--jp-gray-50)}.f5VJYwuJmjxH8PVxEbbv.Vx_jpT02r8W6NfsRSB02{color:var(--jp-red-60)}.f5VJYwuJmjxH8PVxEbbv.Vx_jpT02r8W6NfsRSB02:before{background:var(--jp-red-60)}.f5VJYwuJmjxH8PVxEbbv.PdsJCfyyjSgrNDheF2qi:before{animation:dWP7ypkVXudMbAa38W5Z .5s linear infinite}@keyframes dWP7ypkVXudMbAa38W5Z{0%{opacity:0}50%{opacity:.5}to{opacity:0}}h1,h2,h3,h4,h5,h6,p{margin:0;padding:0}.UujoBFTnQNY2cWU2SIsH{font-size:var(--font-headline-medium);font-weight:700;line-height:52px}.TeGO5V_thHw5lDAm1_2M{font-weight:700}.TeGO5V_thHw5lDAm1_2M,.WolQzb2MsSgiNmLtc7_j{font-size:var(--font-headline-small);line-height:40px}.WolQzb2MsSgiNmLtc7_j{font-weight:400}.hUB0JT8p1T2Hw28N6qC8{font-size:var(--font-title-medium);font-weight:500;line-height:32px}.zY2No8Ga4b8shbOQGhnv{font-size:var(--font-title-small);font-weight:500;line-height:30px}.tIj0D1t8Cc892ikmgFPZ{font-size:var(--font-body);font-weight:400;line-height:24px}.KdcN0BnOaVeVhyLRKqhS{font-size:var(--font-body-small);font-weight:400;line-height:24px}.dso3Rh3tl3Xv1GumBktz{font-size:var(--font-body-extra-small);font-weight:400;line-height:20px}.PItlW5vRExLnTj4a8eLE{font-size:var(--font-body-extra-small);font-weight:600;line-height:16px}.TwRpPlktzxhmFVeua7P5{margin:calc(var( --spacing-base )*0)}.zVfqx7gyb3o9mxfGynn1{margin-left:calc(var( --spacing-base )*0);margin-right:calc(var( --spacing-base )*0)}.iSHVzNiB9iVleGljaQxy{margin-bottom:calc(var( --spacing-base )*0)}.iSHVzNiB9iVleGljaQxy,.xqDIp6cNVr_E6RXaiPyD{margin-top:calc(var( --spacing-base )*0)}.S8EwaXk1kyPizt6x4WH2{margin-right:calc(var( --spacing-base )*0)}.ODX5Vr1TARoLFkDDFooD{margin-bottom:calc(var( --spacing-base )*0)}.cphJ8dCpfimnky7P2FHg{margin-left:calc(var( --spacing-base )*0)}.PFgIhNxIyiSuNvQjAIYj{margin:calc(var( --spacing-base )*1)}.M2jKmUzDxvJjjVEPU3zn{margin-left:calc(var( --spacing-base )*1);margin-right:calc(var( --spacing-base )*1)}.io15gAh8tMTNbSEfwJKk{margin-bottom:calc(var( --spacing-base )*1)}.io15gAh8tMTNbSEfwJKk,.rcTN5uw9xIEeMEGL3Xi_{margin-top:calc(var( --spacing-base )*1)}.CQSkybjq2TcRM1Xo9COV{margin-right:calc(var( --spacing-base )*1)}.hfqOWgq6_MEGdFE82eOY{margin-bottom:calc(var( --spacing-base )*1)}.I8MxZQYTbuu595yfesWA{margin-left:calc(var( --spacing-base )*1)}.kQkc6rmdpvLKPkyoJtVQ{margin:calc(var( --spacing-base )*2)}.j6vFPxWuu4Jan2ldoxpp{margin-left:calc(var( --spacing-base )*2);margin-right:calc(var( --spacing-base )*2)}.hqr39dC4H_AbactPAkCG{margin-bottom:calc(var( --spacing-base )*2)}.c3dQnMi16C6J6Ecy4283,.hqr39dC4H_AbactPAkCG{margin-top:calc(var( --spacing-base )*2)}.YNZmHOuRo6hU7zzKfPdP{margin-right:calc(var( --spacing-base )*2)}.Db8lbak1_wunpPk8NwKU{margin-bottom:calc(var( --spacing-base )*2)}.ftsYE5J9hLzquQ0tA5dY{margin-left:calc(var( --spacing-base )*2)}.Det4MHzLUW7EeDnafPzq{margin:calc(var( --spacing-base )*3)}.h_8EEAztC29Vve1datb5{margin-left:calc(var( --spacing-base )*3);margin-right:calc(var( --spacing-base )*3)}.YXIXJ0h1k47u6hzK8KcM{margin-bottom:calc(var( --spacing-base )*3)}.YXIXJ0h1k47u6hzK8KcM,.soADBBkcIKCBXzCTuV9_{margin-top:calc(var( --spacing-base )*3)}.zSX59ziEaEWGjnpZa4uV{margin-right:calc(var( --spacing-base )*3)}.yrVTnq_WBMbejg89c2ZQ{margin-bottom:calc(var( --spacing-base )*3)}.UKtHPJnI2cXBWtPDm5hM{margin-left:calc(var( --spacing-base )*3)}.guexok_Tqd5Tf52hRlbT{margin:calc(var( --spacing-base )*4)}.oS1E2KfTBZkJ3F0tN7T6{margin-left:calc(var( --spacing-base )*4);margin-right:calc(var( --spacing-base )*4)}.DN1OhhXi6AoBgEdDSbGd{margin-bottom:calc(var( --spacing-base )*4)}.DN1OhhXi6AoBgEdDSbGd,.ot2kkMcYHv53hLZ4LSn0{margin-top:calc(var( --spacing-base )*4)}.A1krOZZhlQ6Sp8Cy4bly{margin-right:calc(var( --spacing-base )*4)}.pkDbXXXL32237M0hokEh{margin-bottom:calc(var( --spacing-base )*4)}.XXv4kDTGvEnQeuGKOPU3{margin-left:calc(var( --spacing-base )*4)}.yGqHk1a57gaISwkXwXe6{margin:calc(var( --spacing-base )*5)}.X8cghM358X3DkXLc9aNK{margin-left:calc(var( --spacing-base )*5);margin-right:calc(var( --spacing-base )*5)}.GdfSmGwHlFnN2S6xBn1f{margin-bottom:calc(var( --spacing-base )*5)}.GdfSmGwHlFnN2S6xBn1f,.yqeuzwyGQ7zG0avrGqi_{margin-top:calc(var( --spacing-base )*5)}.g9emeCkuHvYhveiJbfXO{margin-right:calc(var( --spacing-base )*5)}.Lvk3dqcyHbZ07QCRlrUQ{margin-bottom:calc(var( --spacing-base )*5)}.r3yQECDQ9qX0XZzXlVAg{margin-left:calc(var( --spacing-base )*5)}.aQhlPwht2Cz1X_63Miw0{margin:calc(var( --spacing-base )*6)}.JyHb0vK3wJgpblL9s5j8{margin-left:calc(var( --spacing-base )*6);margin-right:calc(var( --spacing-base )*6)}.cY2gULL1lAv6WPNIRuf3{margin-bottom:calc(var( --spacing-base )*6)}.NBWQ9Lwhh_fnry3lg_p7,.cY2gULL1lAv6WPNIRuf3{margin-top:calc(var( --spacing-base )*6)}.yIOniNe5E40C8fWvBm5V{margin-right:calc(var( --spacing-base )*6)}.t30usboNSyqfQWIwHvT3{margin-bottom:calc(var( --spacing-base )*6)}.Nm_TyFkYCMhOoghoToKJ{margin-left:calc(var( --spacing-base )*6)}.C4qJKoBXpgKtpmrqtEKB{margin:calc(var( --spacing-base )*7)}.S93Srbu6NQ_PBr7DmTiD{margin-left:calc(var( --spacing-base )*7);margin-right:calc(var( --spacing-base )*7)}.fJj8k6gGJDks3crUZxOS{margin-bottom:calc(var( --spacing-base )*7)}.cW6D6djs7Ppm7fD7TeoV,.fJj8k6gGJDks3crUZxOS{margin-top:calc(var( --spacing-base )*7)}.DuCnqNfcxcP3Z__Yo5Ro{margin-right:calc(var( --spacing-base )*7)}.im8407m2fw5vOg7O2zsw{margin-bottom:calc(var( --spacing-base )*7)}.G0fbeBgvz2sh3uTP9gNl{margin-left:calc(var( --spacing-base )*7)}.kvW3sBCxRxUqz1jrVMJl{margin:calc(var( --spacing-base )*8)}.tOjEqjLONQdkiYx_XRnw{margin-left:calc(var( --spacing-base )*8);margin-right:calc(var( --spacing-base )*8)}.op5hFSx318zgxsoZZNLN{margin-bottom:calc(var( --spacing-base )*8)}.c9WfNHP6TFKWIfLxv52J,.op5hFSx318zgxsoZZNLN{margin-top:calc(var( --spacing-base )*8)}.sBA75QqcqRwwYSHJh2wc{margin-right:calc(var( --spacing-base )*8)}.GpL6idrXmSOM6jB8Ohsf{margin-bottom:calc(var( --spacing-base )*8)}.HbtWJoQwpgGycz8dGzeT{margin-left:calc(var( --spacing-base )*8)}.uxX3khU88VQ_Ah49Ejsa{padding:calc(var( --spacing-base )*0)}.KX0FhpBKwKzs9fOUdbNz{padding-left:calc(var( --spacing-base )*0);padding-right:calc(var( --spacing-base )*0)}.PfK8vKDyN32dnimlzYjz{padding-bottom:calc(var( --spacing-base )*0)}.PfK8vKDyN32dnimlzYjz,.emxLHRjQuJsImnPbQIzE{padding-top:calc(var( --spacing-base )*0)}.kJ8WzlpTVgdViXt8ukP9{padding-right:calc(var( --spacing-base )*0)}.tg_UIUI11VBzrTAn2AzJ{padding-bottom:calc(var( --spacing-base )*0)}.uczvl8kaz84oPQJ2DB2R{padding-left:calc(var( --spacing-base )*0)}.o7UHPcdVK3lt7q3lqV4o{padding:calc(var( --spacing-base )*1)}.IDqEOxvDoYrFYxELPmtX{padding-left:calc(var( --spacing-base )*1);padding-right:calc(var( --spacing-base )*1)}.DdywPW2qSYlu2pt8tpO2{padding-bottom:calc(var( --spacing-base )*1)}.DdywPW2qSYlu2pt8tpO2,.npy3hw4A5QSkDicb2CJJ{padding-top:calc(var( --spacing-base )*1)}.LgbptTApNY5NwLQvEFAt{padding-right:calc(var( --spacing-base )*1)}.WZQy2SZuZso59bUsXXyl{padding-bottom:calc(var( --spacing-base )*1)}.o331apInxNunbYB3SfPE{padding-left:calc(var( --spacing-base )*1)}.fMPIyD9Vqki1Lrc_yJnG{padding:calc(var( --spacing-base )*2)}.i2pMcTcdrr10IQoiSm_L{padding-left:calc(var( --spacing-base )*2);padding-right:calc(var( --spacing-base )*2)}.eA702gn32kwptiI1obXH{padding-bottom:calc(var( --spacing-base )*2)}.eA702gn32kwptiI1obXH,.o9bGieUKcYc8o0Ij9oZX{padding-top:calc(var( --spacing-base )*2)}.SwZcFez1RDqWsOFjB5iG{padding-right:calc(var( --spacing-base )*2)}.eHpLc_idmuEqeqCTvqkN{padding-bottom:calc(var( --spacing-base )*2)}.vU39i2B4P1fUTMB2l6Vo{padding-left:calc(var( --spacing-base )*2)}.JHWNzBnE29awhdu5BEh1{padding:calc(var( --spacing-base )*3)}.X72lGbb56L3KFzC2xQ9N{padding-left:calc(var( --spacing-base )*3);padding-right:calc(var( --spacing-base )*3)}.BzfNhRG8wXdCEB5ocQ6e{padding-bottom:calc(var( --spacing-base )*3)}.BzfNhRG8wXdCEB5ocQ6e,.srV0KSDC83a2fiimSMMQ{padding-top:calc(var( --spacing-base )*3)}.lUWfkmbQjCskhcNwkyCm{padding-right:calc(var( --spacing-base )*3)}.Ts0dIlc3aTSL7V4cIHis{padding-bottom:calc(var( --spacing-base )*3)}.CzlqQXXhX6MvorArFZ8B{padding-left:calc(var( --spacing-base )*3)}.TqMPkQtR_DdZuKb5vBoV{padding:calc(var( --spacing-base )*4)}.a7UrjhI69Vetlcj9ZVzz{padding-left:calc(var( --spacing-base )*4);padding-right:calc(var( --spacing-base )*4)}.StEhBzGs2Gi5dDEkjhAv{padding-bottom:calc(var( --spacing-base )*4)}.FGneZfZyvYrt1dG0zcnm,.StEhBzGs2Gi5dDEkjhAv{padding-top:calc(var( --spacing-base )*4)}.APEH216rpdlJWgD2fHc8{padding-right:calc(var( --spacing-base )*4)}.oGwXC3ohCic9XnAj6x69{padding-bottom:calc(var( --spacing-base )*4)}.U6gnT9y42ViPNOcNzBwb{padding-left:calc(var( --spacing-base )*4)}.IpdRLBwnHqbqFrixgbYC{padding:calc(var( --spacing-base )*5)}.HgNeXvkBa9o3bQ5fvFZm{padding-left:calc(var( --spacing-base )*5);padding-right:calc(var( --spacing-base )*5)}.tJtFZM3XfPG9v9TSDfN1{padding-bottom:calc(var( --spacing-base )*5)}.PdifHW45QeXYfK568uD8,.tJtFZM3XfPG9v9TSDfN1{padding-top:calc(var( --spacing-base )*5)}.mbLkWTTZ0Za_BBbFZ5b2{padding-right:calc(var( --spacing-base )*5)}.vVWpZpLlWrkTt0hMk8XU{padding-bottom:calc(var( --spacing-base )*5)}.RxfaJj5a1Nt6IavEo5Zl{padding-left:calc(var( --spacing-base )*5)}.SppJULDGdnOGcjZNCYBy{padding:calc(var( --spacing-base )*6)}.palY2nLwdoyooPUm9Hhk{padding-left:calc(var( --spacing-base )*6);padding-right:calc(var( --spacing-base )*6)}.WYw1JvZC0ppLdvSAPhr_{padding-bottom:calc(var( --spacing-base )*6)}.WYw1JvZC0ppLdvSAPhr_,.YEEJ9b90ueQaPfiU8aeN{padding-top:calc(var( --spacing-base )*6)}.QE0ssnsKvWJMqlhPbY5u{padding-right:calc(var( --spacing-base )*6)}.n8yA3jHlMRyLd5UIfoND{padding-bottom:calc(var( --spacing-base )*6)}.tXHmxYnHzbwtfxEaG51n{padding-left:calc(var( --spacing-base )*6)}.kBTsPKkO_3g_tLkj77Um{padding:calc(var( --spacing-base )*7)}.RyhrFx6Y1FGDrGAAyaxm{padding-left:calc(var( --spacing-base )*7);padding-right:calc(var( --spacing-base )*7)}.CBwRpB0bDN3iEdQPPMJO{padding-bottom:calc(var( --spacing-base )*7)}.CBwRpB0bDN3iEdQPPMJO,.vQVSq6SvWKbOMu6r4H6b{padding-top:calc(var( --spacing-base )*7)}.oBy5__aEADMsH46mrgFX{padding-right:calc(var( --spacing-base )*7)}.KVEXoJqf1s92j0JMdNmN{padding-bottom:calc(var( --spacing-base )*7)}.ZMXGNrNaKW3k_3TLz0Fq{padding-left:calc(var( --spacing-base )*7)}.tuiR9PhkHXhGyEgzRZRI{padding:calc(var( --spacing-base )*8)}.U7454qyWkQNa2iaSJziu{padding-left:calc(var( --spacing-base )*8);padding-right:calc(var( --spacing-base )*8)}.VLYIv2GVocjuN93e8HC8{padding-bottom:calc(var( --spacing-base )*8)}.VLYIv2GVocjuN93e8HC8,.X1rm9DQ1zLGLfogja5Gn{padding-top:calc(var( --spacing-base )*8)}.JS7G6kAuqJo5GIuF8S5t{padding-right:calc(var( --spacing-base )*8)}.Y8F9ga1TDCMbM1lj4gUz{padding-bottom:calc(var( --spacing-base )*8)}.AJuyNGrI63BOWql719H8{padding-left:calc(var( --spacing-base )*8)}.jErCC9oKHSM15BxzFyQK{margin-bottom:0}.oVoYbwbFB6U2o90Njusk{font-size:16px;margin:0}.oVoYbwbFB6U2o90Njusk.is-error{background-color:var(--jp-red-0)}.oVoYbwbFB6U2o90Njusk .components-notice__content{align-items:center;display:flex;margin:0;padding:12px 4px}.oVoYbwbFB6U2o90Njusk .components-notice__content>svg{fill:var(--jp-red-60)}.oVoYbwbFB6U2o90Njusk .is-link{color:var(--jp-black);font-size:16px;font-weight:600}.oVoYbwbFB6U2o90Njusk .components-notice__dismiss{align-self:center}.wBVXH4OTNwLHPRpN4nsq{margin-left:8px}.sexr0jUxC1jVixdKiDnC{margin-left:-20px}@media(max-width:782px){.sexr0jUxC1jVixdKiDnC{margin-left:-10px}}.sexr0jUxC1jVixdKiDnC.vKQ11sLeAM45M04P1ccj{background-color:var(--jp-white)}.SqdhUZkXCRuIpErj1B3z{--max-container-width:1128px;--vertical-gutter:24px;--vertical-spacing-sm:16px;--vertical-spacing-md:18px;--vertical-spacing-lg:24px;--horizontal-spacing:8px;column-gap:var(--vertical-gutter);display:grid;margin:0 auto;max-width:var(--max-container-width);width:100%}@media(min-width:0px){.SqdhUZkXCRuIpErj1B3z{grid-template-columns:repeat(4,minmax(0,1fr));padding:0 var(--vertical-spacing-sm)}}@media(min-width:600px){.SqdhUZkXCRuIpErj1B3z{grid-template-columns:repeat(8,minmax(0,1fr));padding:0 var(--vertical-spacing-md)}}@media(min-width:960px){.SqdhUZkXCRuIpErj1B3z{grid-template-columns:repeat(12,minmax(0,1fr));padding:0 var(--vertical-spacing-lg)}}.SqdhUZkXCRuIpErj1B3z.OZC_9a1LhpWF9dv15Gdh{max-width:none;padding:unset}@media(min-width:0px){.RuVLl3q4lxTQa3wbhBJB{grid-column-end:span 1}.QZbNrOqE2aNSn50xVhpU{grid-column-end:span 2}.Xc6nt1Qc1DI0Z2A3gt1r{grid-column-end:span 3}.i_qTq8gqhhC3vIUepVRB{grid-column-end:span 4}}@media(min-width:600px){.tRm008K_WJL79WoNZTNL{grid-column-end:span 1}.F80DdgVn0m5OpvtSQWka{grid-column-end:span 2}.VenqMpdgyKQVUNNQcfqd{grid-column-end:span 3}.yAi0Cv1xDWkoqsaUhvhR{grid-column-end:span 4}.Sz1E2aWbX483ijdi6yge{grid-column-end:span 5}.FboSx5MoKTAWbxXyYlCw{grid-column-end:span 6}.mhCPwfAZ4Kmm_empzJAq{grid-column-end:span 7}.S6pIrEy9AMLKx9bgh_Ae{grid-column-end:span 8}}@media(min-width:960px){.X_pdcLJikd8LS_YAdJlB{grid-column-end:span 1}.fj0NUMuyZQcPNgKcjp5Z{grid-column-end:span 2}.wsDuEN2GqHx6qzo8dUdk{grid-column-end:span 3}.YR0c7fQTgMkDdWzwSyLp{grid-column-end:span 4}.Z54F1hAErckAIrKlxnXW{grid-column-end:span 5}.qtMoMPF6yHvGJnWHSsde{grid-column-end:span 6}.egIPDFJsOpownTClq9XP{grid-column-end:span 7}.cTuyHfMwSUJxN_HdIEgd{grid-column-end:span 8}.pMvxM3RJGjqyNdf9qg1Y{grid-column-end:span 9}.gKb5wuIDAlKGbrjK2vxy{grid-column-end:span 10}.NnQTlbfnxPDR6cQ7rygg{grid-column-end:span 11}.U3H6UHW6HqRt9hdzVg3O{grid-column-end:span 12}}.jp-dashboard-footer{align-items:center;color:#000;display:flex;flex-flow:row wrap;justify-content:space-between;max-width:1128px;width:100%}.jp-dashboard-footer a,.jp-dashboard-footer a:hover,.jp-dashboard-footer a:visited{color:#000;text-decoration:none}.jp-dashboard-footer__jetpack-symbol,.jp-dashboard-footer__module-name{display:inline-block;vertical-align:middle}.jp-dashboard-footer__module-name{font-size:12px;font-weight:600;margin-left:5px}.vMa4i_Dza2t5Zi_Bw9Nf{background:var(--jp-white-off)}.hDuMEuW1xluozLFj95Fi{fill:#000}.nHW00YCzH8n2HdsH3ps8{---jp-green-primary:#069e08;fill:var(---jp-green-primary)}.cAbGtJDGgLubucBnz7vM{background-color:var(--jp-white)}.wiobThfXJCuhGNrbFIT6 a,.wiobThfXJCuhGNrbFIT6 a:active,.wiobThfXJCuhGNrbFIT6 a:hover{color:var(--jp-black)}.VgAxgahF9bC2M__FiIgV{margin-bottom:calc(var(--spacing-base)*3)}.uwMCvCNzQUKtyBmXFTve{font-size:var(--font-body)}.uwMCvCNzQUKtyBmXFTve:hover{color:var(--jp-black);text-decoration-thickness:var(--jp-underline-thickness)}.jp-connection-status-card h3{color:var(--jp-black);font-size:var(--font-title-large);font-weight:700;line-height:1.1;margin:0}.jp-connection-status-card a,.jp-connection-status-card a:active,.jp-connection-status-card a:hover{color:var(--jp-black)}.jp-connection-status-card p{color:var(--jp-black);margin:16px 0}.jp-connection-status-card a,.jp-connection-status-card li,.jp-connection-status-card p{font-size:var(--font-body);line-height:24px}.jp-connection-status-card--status{align-items:center;display:flex;margin:24px 0 24px -6px}.jp-connection-status-card--cloud{background-image:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNDIiIGhlaWdodD0iNDIiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PG1hc2sgaWQ9ImEiIG1hc2stdHlwZT0iYWxwaGEiIG1hc2tVbml0cz0idXNlclNwYWNlT25Vc2UiIHg9IjciIHk9IjkiIHdpZHRoPSIyOCIgaGVpZ2h0PSIyMSI+PHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik0zMC4zMzMgMTcuNjk3di0uMDhjMC00LjI1My0zLjc2LTcuNy04LjQtNy43LTMuOTE2IDAtNy4yMDYgMi40NTctOC4xMzYgNS43OGE2LjM4NiA2LjM4NiAwIDAgMC0uMjY0LS4wMDVDOS45MjUgMTUuNjkyIDcgMTguNzA4IDcgMjIuNDI5czIuOTI1IDYuNzM4IDYuNTMzIDYuNzM4SDI5LjRjMy4wOTMgMCA1LjYtMi41ODYgNS42LTUuNzc1IDAtMi44NjEtMi4wMTgtNS4yMzctNC42NjYtNS42OTVaIiBmaWxsPSIjZmZmIi8+PC9tYXNrPjxnIG1hc2s9InVybCgjYSkiPjxwYXRoIGQ9Im0zMC4zMzMgMTcuNjk3LTIuNjI1LS4wMy0uMDI1IDIuMjM1IDIuMjAyLjM4MS40NDgtMi41ODZabS0xNi41MzctMi0uMTA3IDIuNjIzIDIuMDc1LjA4NS41Ni0yLTIuNTI4LS43MDhabS0uMjYzIDEzLjQ3djIuNjI1aC4wMDhsLS4wMDgtMi42MjVabS4wNCAwdi0yLjYyNWgtLjAwOWwuMDA4IDIuNjI1Wm0xNS43OTUgMCAuMDE1LTIuNjI1aC0uMDE1djIuNjI1Wm0zLjU5LTExLjQ0MXYtLjExaC01LjI1di4wNTJsNS4yNS4wNThabTAtLjExYzAtNS45MTItNS4xNTUtMTAuMzI0LTExLjAyNS0xMC4zMjR2NS4yNWMzLjQxIDAgNS43NzUgMi40ODIgNS43NzUgNS4wNzVoNS4yNVpNMjEuOTMzIDcuMjkzYy00Ljk4NCAwLTkuMzg4IDMuMTM5LTEwLjY2NCA3LjY5OGw1LjA1NSAxLjQxNWMuNTg1LTIuMDg5IDIuNzYyLTMuODYzIDUuNjEtMy44NjN2LTUuMjVabS04LjAzIDUuNzgyYTkuMTExIDkuMTExIDAgMCAwLS4zNy0uMDA3djUuMjVjLjA1MyAwIC4xMDUuMDAxLjE1Ni4wMDNsLjIxNS01LjI0NlptLS4zNy0uMDA3Yy01LjEzMyAwLTkuMTU4IDQuMjY4LTkuMTU4IDkuMzYyaDUuMjVjMC0yLjM0OCAxLjgyNS00LjExMiAzLjkwOC00LjExMnYtNS4yNVptLTkuMTU4IDkuMzYyYzAgNS4wOTUgNC4wMjUgOS4zNjMgOS4xNTggOS4zNjN2LTUuMjVjLTIuMDgzIDAtMy45MDgtMS43NjUtMy45MDgtNC4xMTNoLTUuMjVabTkuMTY2IDkuMzYzaC4wNGwtLjAxNy01LjI1aC0uMDM5bC4wMTYgNS4yNVptLjAzMSAwaDE1Ljc5NnYtNS4yNUgxMy41NzJ2NS4yNVptMTUuODI3LTUuMjVoLS4wMTZsLS4wMyA1LjI1aC4wNDZ2LTUuMjVabTIuOTc1LTMuMTVjMCAxLjgxNi0xLjQwNyAzLjE1LTIuOTc1IDMuMTV2NS4yNWM0LjYxOCAwIDguMjI1LTMuODM4IDguMjI1LTguNGgtNS4yNVptLTIuNDg5LTMuMTA5YzEuMzU1LjIzNSAyLjQ5IDEuNDg4IDIuNDkgMy4xMDloNS4yNWMwLTQuMTAyLTIuOTAyLTcuNi02Ljg0NC04LjI4MmwtLjg5NiA1LjE3M1oiIGZpbGw9IiMxRTFFMUUiLz48L2c+PC9zdmc+);height:42px;margin-right:4px;width:42px}.jp-connection-status-card--jetpack-logo{background-image:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzIiIGhlaWdodD0iMzIiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTE2IDMyYzguODM3IDAgMTYtNy4xNjMgMTYtMTZTMjQuODM3IDAgMTYgMCAwIDcuMTYzIDAgMTZzNy4xNjMgMTYgMTYgMTZaIiBmaWxsPSIjMDAwIi8+PHBhdGggZD0iTTE2Ljc5NCAxMy4zMTN2MTUuNTExbDgtMTUuNTEyaC04Wk0xNS4xNzUgMTguNjU3VjMuMTc2bC03Ljk2OSAxNS40OGg3Ljk3WiIgZmlsbD0iI2ZmZiIvPjwvc3ZnPg==);height:32px;margin-left:11px;width:32px}.jp-connection-status-card--btn-connect-user{font-size:var(--font-body);font-weight:400;line-height:24px}.jp-connection-status-card--avatar{background-color:var(--jp-white);background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width='32' height='32' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='16' cy='16' r='16' fill='%23fff'/%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M4.498 27.123C6.038 24.165 10.916 21.5 16 21.5c5.084 0 9.963 2.665 11.502 5.623a15.952 15.952 0 0 1-11.257 4.875L16 32l-.245-.002a15.952 15.952 0 0 1-11.257-4.875zM16 8a6 6 0 1 1 0 12 6 6 0 0 1 0-12z' fill='%23A2AAB2'/%3E%3C/svg%3E");background-repeat:no-repeat;background-size:contain;border:0;border-radius:20px;height:32px;margin-left:-10px;width:32px}.jp-connection-status-card--line{border-top:2px solid var(--jp-black);height:0;width:67px}.jp-connection-status-card--line.jp-connection-status-card--site-only{border-top-style:dashed}.jp-connection-status-card--list{list-style-type:none;margin:16px 0}.jp-connection-status-card--list li{color:var(--jp-black);margin:0 0 8px -3px;padding-left:25px}.jp-connection-status-card--list-item-success{background:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0ibTE4LjkzNSA2LTguOSAxMS45Ny01LjE2Mi0zLjgzNyIgc3Ryb2tlPSIjMUUxRTFFIiBzdHJva2Utd2lkdGg9IjEuNSIvPjwvc3ZnPg==) no-repeat 0 0}.jp-connection-status-card--list-item-error{background:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTEyIDIwYTggOCAwIDEgMCAwLTE2IDggOCAwIDAgMCAwIDE2WiIgc3Ryb2tlPSIjRDYzNjM5IiBzdHJva2Utd2lkdGg9IjEuNSIvPjxwYXRoIGQ9Ik0xMyA3aC0ydjZoMlY3Wk0xMyAxNWgtMnYyaDJ2LTJaIiBmaWxsPSIjRDYzNjM5Ii8+PC9zdmc+) no-repeat 0 0;color:var(--jp-red-60)!important}.jp-connection-status-card--list-item-info{background:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTEyIDIwYTggOCAwIDEgMCAwLTE2IDggOCAwIDAgMCAwIDE2WiIgc3Ryb2tlPSIjMDAwIiBzdHJva2Utd2lkdGg9IjEuNSIvPjxwYXRoIGQ9Ik0xMyA3aC0ydjZoMlY3Wk0xMyAxNWgtMnYyaDJ2LTJaIiBmaWxsPSIjMDAwIi8+PC9zdmc+) no-repeat 0 0}.jp-connection__disconnect-dialog h1{font-size:var(--font-title-small);font-weight:600;line-height:1.2;margin-top:0}.jp-connection__disconnect-dialog h2{font-size:var(--font-title-small);font-weight:400;line-height:1.2;margin:0}.jp-connection__disconnect-dialog p{font-size:var(--font-body);margin-top:0}.jp-connection__disconnect-dialog p.jp-connection__disconnect-dialog__large-text,.jp-connection__disconnect-dialog__large-text{font-size:1.25rem}.jp-connection__disconnect-dialog .jp-connection__disconnect-dialog__link,.jp-connection__disconnect-dialog__link{color:var(--jp-black);font-size:var(--font-body);font:inherit;height:auto;padding:0;text-decoration:underline}.jp-connection__disconnect-dialog .jp-connection__disconnect-dialog__link:hover,.jp-connection__disconnect-dialog__link:hover{color:var(--jp-black);text-decoration-thickness:var(--jp-underline-thickness)}.jp-connection__disconnect-dialog .jp-connection__disconnect-dialog__link:focus,.jp-connection__disconnect-dialog__link:focus{box-shadow:none!important;color:var(--jp-black)}.jp-connection__disconnect-dialog .jp-connection__disconnect-dialog__link--bold,.jp-connection__disconnect-dialog__link--bold{font-weight:700}.jp-connection__disconnect-dialog .components-button{border-radius:4px;font-size:var(--font-body-small);height:40px}.jp-connection__disconnect-dialog .components-modal__content{display:flex;flex-direction:column;flex-grow:1;margin:0;padding:0}.jp-connection__disconnect-dialog .components-modal__content:before,.jp-connection__disconnect-dialog .components-modal__header{display:none}.jp-connection__disconnect-dialog .jp-row{align-items:center;width:calc(100% - 48px)}.jp-connection__disconnect-dialog__content{align-items:center;background:var(--jp-white-off);border-radius:4px;display:flex;flex-direction:column;flex-grow:1;justify-content:center;margin:0;padding:2rem 1rem;text-align:center}.jp-connection__disconnect-dialog__actions{background:var(--jp-white);border-top:1px solid var(--jp-gray);bottom:0;padding:2rem 0;position:sticky}.jp-connection__disconnect-dialog__actions p{margin-bottom:0}.jp-connection__disconnect-dialog__actions:before{background:linear-gradient(to bottom,transparent,var(--jp-white-off));bottom:calc(100% + 1px);content:"";display:block;height:80px;left:0;position:absolute;width:100%}.jp-connection__disconnect-dialog__btn-dismiss,.jp-connection__disconnect-dialog__btn-dismiss.components-button{background:var(--jp-black)!important;margin-right:10px}.jp-connection__disconnect-dialog__btn-disconnect{background:var(--jp-red)!important}.jp-connection__disconnect-dialog__btn-back-to-wp{background:var(--jp-black)!important}.jp-connection__disconnect-dialog__button-wrap{text-align:left}@media(min-width:960px){.jp-connection__disconnect-dialog__button-wrap{text-align:center}}.jp-connection__disconnect-dialog__error{color:var(--jp-red)}.jp-connection__disconnect-dialog__survey{margin-bottom:1.5rem;max-width:100%}.jp-connection__disconnect-dialog__step-copy{margin:0 auto;max-width:800px}.jp-connection__disconnect-dialog__step-copy--narrow{max-width:600px}@media(max-height:900px){.jp-connection__disconnect-dialog__content .jp-components__decorative-card{display:none}}@media(min-width:600px){.jp-connection__disconnect-dialog,.jp-connection__disconnect-dialog.components-modal__frame{max-width:calc(100% - 32px);width:100%}.jp-connection__disconnect-dialog__actions,.jp-connection__disconnect-dialog__content{padding:2rem}}@media(min-width:960px){.jp-connection__disconnect-dialog,.jp-connection__disconnect-dialog.components-modal__frame{display:flex;flex-direction:column;height:900px;width:1200px}.jp-connection__disconnect-dialog h1{font-size:var(--font-title-large)}.jp-connection__disconnect-dialog p.jp-connection__disconnect-dialog__large-text,.jp-connection__disconnect-dialog__large-text{font-size:1.5rem}.jp-connection__disconnect-dialog__content{padding:80px}.jp-connection__disconnect-dialog__actions{padding:2rem 3rem}.jp-row{margin-left:0}}.jp-connection__disconnect-card{background-color:var(--jp-white);border:none;border-radius:3px;box-shadow:0 0 15px var(--jp-gray-off);margin:0 auto 1rem;max-width:100%;padding:1rem 2rem;text-align:left;width:800px}.jp-connection__disconnect-card__group{margin-bottom:1rem;max-width:100%}.jp-connection__disconnect-card__card-content{display:block;font-size:.875rem}@media only screen and (min-width:782px){.jp-connection__disconnect-card__card-content{align-items:center;display:flex;justify-content:space-between}}.jp-connection__disconnect-card .jp-connection__disconnect-card__card-headline,.jp-connection__disconnect-card__card-headline{flex-shrink:0;font-size:1.25rem;font-weight:600;margin-bottom:0;margin-top:0}@media only screen and (min-width:782px){.jp-connection__disconnect-card .jp-connection__disconnect-card__card-headline,.jp-connection__disconnect-card__card-headline{font-size:1.5rem;margin-right:1.5rem}}@media only screen and (max-width:782px){.jp-connection__disconnect-card .jp-connection__disconnect-card__card-headline+.jp-disconnect-card__card-stat-block,.jp-connection__disconnect-card__card-headline+.jp-disconnect-card__card-stat-block{margin-top:.5rem}}.jp-connection__disconnect-card__card-stat-block{align-items:baseline;display:flex;flex-grow:1}@media only screen and (min-width:782px){.jp-connection__disconnect-card__card-stat-block{flex-direction:row-reverse}}.jp-connection__disconnect-card__card-description{flex-grow:1}@media only screen and (min-width:782px){.jp-connection__disconnect-card__card-description{text-align:right}}.jp-connection__disconnect-card__card-stat{font-size:1rem;font-weight:600;margin-right:.5rem}@media only screen and (min-width:782px){.jp-connection__disconnect-card__card-stat{font-size:1.5rem;margin-left:1rem;margin-right:0}}.jp-components__decorative-card{border-radius:8px;box-shadow:0 0 15px var(--jp-gray);display:flex;height:280px;margin:0 auto 3rem;max-width:100%;overflow:hidden;position:relative;width:360px}.jp-components__decorative-card__content,.jp-components__decorative-card__image{width:50%}.jp-components__decorative-card__image{background:var(--jp-gray);background-size:cover;position:relative}.jp-components__decorative-card__image:before{background-image:url('data:image/svg+xml;uf8,<svg width="38" height="8" viewBox="0 0 38 8" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M1 7C1 7 2.37087 1 6.89831 1C11.4257 1 14.3709 7 18.8983 7C23.4257 7 26.7777 1 31.3051 1C35.912 1 37 7 37 7" stroke="white" stroke-width="1.5" stroke-linejoin="round"/></svg>');content:"";display:block;height:8px;left:24px;position:absolute;top:24px;width:38px}.jp-components__decorative-card__content{background:#fff;padding:2rem}.jp-components__decorative-card__icon-container{background:var(--jp-red);border-radius:50px;height:80px;left:50%;position:absolute;top:50%;transform:translate(-50%,-50%);width:80px}.jp-components__decorative-card__icon{background-position:50%,50%;background-repeat:no-repeat;height:40px;left:50%;position:absolute;top:50%;transform:translate(-50%,-50%);width:40px}.jp-components__decorative-card__icon--unlink{background-image:url('data:image/svg+xml;uf8,<svg width="34" height="37" viewBox="0 0 34 37" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M22.3335 10.001H25.0002C29.4184 10.001 33.0002 13.5827 33.0002 18.001V19.7788C33.0002 24.197 29.4184 27.7788 25.0002 27.7788H22.3335" stroke="white" stroke-width="1.5" stroke-linecap="square"/> <path d="M11.6675 27.7783L9.00082 27.7783C4.58254 27.7783 1.00081 24.1966 1.00081 19.7783L1.00081 18.0005C1.00081 13.5823 4.58253 10.0005 9.00081 10.0005L11.6675 10.0005" stroke="white" stroke-width="1.5" stroke-linecap="square"/> <path d="M10.9998 19.167L16.9998 19.167" stroke="white" stroke-width="1.5"/> <path d="M8.99951 35.998L24.9995 0.998048" stroke="white"/> </svg>')}.jp-components__decorative-card__lines,.jp-components__decorative-card__lines:after,.jp-components__decorative-card__lines:before{background:#e9eff5;border-radius:6px;display:block;height:12px;position:relative;width:100%}.jp-components__decorative-card__lines:after,.jp-components__decorative-card__lines:before{content:"";top:calc(100% + 16px)}.jp-components__decorative-card__lines:after{top:calc(100% + 32px);width:75%}.jp-components__decorative-card--vertical{flex-direction:column}.jp-components__decorative-card--vertical .jp-components__decorative-card__content,.jp-components__decorative-card--vertical .jp-components__decorative-card__image{height:50%;width:100%}.jp-components__decorative-card--vertical .jp-components__decorative-card__lines{margin-left:auto;margin-right:auto;max-width:135px}.jp-components__decorative-card--vertical .jp-components__decorative-card__lines:after,.jp-components__decorative-card--vertical .jp-components__decorative-card__lines:before{margin-left:auto;margin-right:auto}.jp-connect__disconnect-survey-card{border:2px solid transparent;border-radius:4px;box-shadow:0 0 15px var(--jp-gray-off);margin-left:auto;margin-right:auto;max-width:100%;padding:1rem;position:relative;text-align:left;width:800px}.jp-connect__disconnect-survey-card--selected{background:var(--jp-gray-off);border-color:var(--jp-black)}.jp-connect__disconnect-survey-card:after{border-right:2px solid var(--jp-black);border-top:2px solid var(--jp-black);content:"";display:block;height:5px;position:absolute;right:1.5rem;top:50%;transform:translateY(-50%) rotate(45deg);width:5px}.jp-connect__disconnect-survey-card:hover{cursor:pointer}.jp-connect__disconnect-survey-card:focus:not(.jp-disconnect-survey-card--selected),.jp-connect__disconnect-survey-card:hover:not(.jp-disconnect-survey-card--selected){border-color:var(--jp-black-80)}.jp-connect__disconnect-survey-card__answer{align-items:center;display:flex;font-weight:700;margin:0}input.jp-connect__disconnect-survey-card__input{-webkit-appearance:none;background-color:transparent;border:none;color:var(--jp-black-80);flex-grow:1;max-width:calc(100% - 40px);padding-right:40px}.zvd4dCB_bBDiXJKKDqXm{position:relative}.ly4o9lSswAGHFXqGUEIO{position:absolute;right:32px;top:32px;z-index:1}.u64Go3kwEZ7MD9eji0H1{color:var(--jp-gray-50);font-size:13px;margin-bottom:16px;width:60%}._RT41NE3LU4R0ubcij2y{align-items:center;display:flex}.cFGWJeRiGHjAr8D7CWJW{margin-right:8px;width:100px}.Iz3l7a05TP6HK9S92TIL{width:16px}.lmQ0wFmnk4kKkGVjokPA{height:18px;margin-left:8px}.AoIs8wD92wKR8RpQj6Uc{align-items:center;display:inline-flex}.rV_5QyvhDnsVjCX4pb0h{--gray-90:#1e1e1e;fill:var(--gray-90);width:24px}.MO1jDNY8VPqeNS9xL8jE{align-items:center;display:flex;text-decoration:none}.jp-connection__connect-screen__loading{display:none}.jp-connection__connect-screen__tos{margin-top:28px;max-width:360px}.jp-connection__connect-screen .jp-action-button{margin-top:40px}.jp-connection__connect-screen .jp-action-button button{max-width:100%}.jp-connection__connect-screen .jp-action-button button:disabled{color:hsla(0,0%,100%,.4)}@media(max-width:782px){.jp-connection__connect-screen .jp-action-button button{max-width:none;width:100%}}.jp-connection__connect-screen__footer{margin-top:32px}:root{--font-title-large:36px;--font-title-small:24px;--font-body:16px;--font-label:12px;--jp-black:#000;--jp-black-80:#2c3338;--jp-white:#fff;--jp-white-off:#f9f9f6;--jp-gray:#dcdcde;--jp-gray-0:#f6f7f7;--jp-gray-5:#dcdcde;--jp-gray-10:#c3c4c7;--jp-gray-20:#a7aaad;--jp-gray-30:#8c8f94;--jp-gray-40:#787c82;--jp-gray-50:#646970;--jp-gray-60:#50575e;--jp-gray-70:#3c434a;--jp-gray-80:#2c3338;--jp-gray-90:#1d2327;--jp-gray-100:#101517;--jp-gray-off:#e2e2df;--jp-red-0:#f7ebec;--jp-red-50:#d63638;--jp-red-60:#b32d2e;--jp-red-80:#8a2424;--jp-red:#d63639;--jp-pink:#c9356e;--jp-green-0:#f0f2eb;--jp-green-5:#d0e6b8;--jp-green-10:#9dd977;--jp-green-20:#64ca43;--jp-green-30:#2fb41f;--jp-green-40:#069e08;--jp-green-50:#008710;--jp-green-60:#007117;--jp-green-70:#005b18;--jp-green-80:#004515;--jp-green-90:#003010;--jp-green-100:#001c09;--jp-green:#069e08;--jp-green-primary:var( --jp-green-40 );--jp-green-secondary:var( --jp-green-30 );--jp-border-radius:4px;--jp-menu-border-height:1px;--jp-underline-thickness:2px}*{box-sizing:border-box}body{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;margin:0;min-height:100%;padding:0}.jp-wrap{align-items:center;display:flex;flex-wrap:wrap;margin:0 auto;max-width:1128px}.jp-row{grid-gap:24px;display:grid;grid-template-columns:repeat(4,1fr);margin:0 16px;width:100%}@media(min-width:600px){.jp-row{grid-template-columns:repeat(8,1fr);margin:0 18px}}@media(min-width:960px){.jp-row{grid-template-columns:repeat(12,1fr);margin:0 24px;max-width:1128px}}.sm-col-span-1{grid-column-end:span 1}.sm-col-span-2{grid-column-end:span 2}.sm-col-span-3{grid-column-end:span 3}.sm-col-span-4{grid-column-end:span 4}@media(min-width:600px){.md-col-span-1{grid-column-end:span 1}.md-col-span-2{grid-column-end:span 2}.md-col-span-3{grid-column-end:span 3}.md-col-span-4{grid-column-end:span 4}.md-col-span-5{grid-column-end:span 5}.md-col-span-6{grid-column-end:span 6}.md-col-span-7{grid-column-end:span 7}.md-col-span-8{grid-column-end:span 8}}@media(min-width:960px){.lg-col-span-1{grid-column-end:span 1}.lg-col-span-2{grid-column-end:span 2}.lg-col-span-3{grid-column-end:span 3}.lg-col-span-4{grid-column-end:span 4}.lg-col-span-5{grid-column-end:span 5}.lg-col-span-6{grid-column-end:span 6}.lg-col-span-7{grid-column-end:span 7}.lg-col-span-8{grid-column-end:span 8}.lg-col-span-9{grid-column-end:span 9}.lg-col-span-10{grid-column-end:span 10}.lg-col-span-11{grid-column-end:span 11}.lg-col-span-12{grid-column-end:span 12}}@media(max-width:960px){.md-col-span-0{display:none}}@media(max-width:600px){.sm-col-span-0{display:none}}.jp-cut{border:2px solid var(--jp-green-primary);border-radius:var(--jp-border-radius);margin:32px 0;padding:16px 64px 16px 24px;position:relative;text-decoration:none}.jp-cut,.jp-cut span{display:block}.jp-cut span:last-of-type{font-weight:600}.jp-cut:focus span:last-of-type,.jp-cut:hover span:last-of-type{text-decoration:underline;text-decoration-thickness:var(--jp-underline-thickness)}.jp-cut:focus:after,.jp-cut:hover:after{transform:translateY(-50%) translateX(8px)}.jp-cut:after{color:var(--jp-green-primary);content:"→";font-size:24px;font-weight:600;position:absolute;right:24px;top:50%;transform:translateY(-50%);transition:transform .15s ease-out}.jp-connection__connect-screen-layout{background:var(--jp-white);border-radius:4px;box-shadow:0 0 40px rgba(0,0,0,.08)}.jp-connection__connect-screen-layout__loading{display:none}.jp-connection__connect-screen-layout__left,.jp-connection__connect-screen-layout__right{box-sizing:border-box}.jp-connection__connect-screen-layout__left{padding:25px}@media(min-width:600px){.jp-connection__connect-screen-layout__left{padding:64px 96px}}.jp-connection__connect-screen-layout__left .jetpack-logo{margin-bottom:24px}.jp-connection__connect-screen-layout__left h2{color:var(--jp-black);font-size:36px;font-style:normal;font-weight:700;line-height:40px;margin-bottom:0;margin-top:32px}.jp-connection__connect-screen-layout__left h3{color:var(--jp-black);font-size:24px;font-style:normal;font-weight:500;line-height:32px;margin-bottom:0;margin-top:32px}.jp-connection__connect-screen-layout__left li,.jp-connection__connect-screen-layout__left p{font-size:16px;font-style:normal;font-weight:400;line-height:24px}.jp-connection__connect-screen-layout__left p{color:#101517;margin:16px 0}.jp-connection__connect-screen-layout__left a{color:var(--jp-black);font-size:var(--font-body);font:inherit;height:auto;padding:0;text-decoration:underline}.jp-connection__connect-screen-layout__left a:hover{color:var(--jp-black);text-decoration-thickness:var(--jp-underline-thickness)}.jp-connection__connect-screen-layout__left a:focus{box-shadow:none!important;color:var(--jp-black)}.jp-connection__connect-screen-layout__left ul{list-style-type:none;padding:0}.jp-connection__connect-screen-layout__left ul li{background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAMAAABg3Am1AAAANlBMVEVHcEwFnwUInggGnggGnggHnAcAnwUFnQcAnwcGnwkFnQgGnQgFnwcGnQYFnQcFnAcGnQkDnwdhiL0pAAAAEnRSTlMAMF//f2Aw7yBQ3+9gcIBgcED+HDbkAAAAZklEQVR4Ae3LNwICARDDQC0+cv7/Y8mwV9odSfWIcf/+VegnGkIvDaGXKvTTn/Gz+Uf5xTL0K1XotS7fs5H6GHvvaO8d7c3j7rdgHne/A/PYt/cO+R42oYdN6OEQetiFHo4A//6dAXqtBEkmtWutAAAAAElFTkSuQmCC) no-repeat;background-size:24px;color:var(--jp-black);margin-bottom:9px;padding-left:30px}.jp-connection__connect-screen-layout__right{padding:64px 0}.jp-connection__connect-screen-layout__right img{max-width:100%}.jp-connection__connect-screen-layout__two-columns{display:flex;flex-wrap:wrap}.jp-connection__connect-screen-layout__two-columns .jp-connection__connect-screen-layout__left{flex-basis:100%;flex-grow:1}@media(min-width:1080px){.jp-connection__connect-screen-layout__two-columns .jp-connection__connect-screen-layout__left{flex-basis:52%}}.jp-connection__connect-screen-layout__two-columns .jp-connection__connect-screen-layout__right{background:#f9f9f6;display:none;flex-basis:47%;flex-grow:1}@media(min-width:1080px){.jp-connection__connect-screen-layout__two-columns .jp-connection__connect-screen-layout__right{display:block}}.jp-action-button--button{background:#000}.jp-action-button--button,.jp-action-button--button.components-button{border-radius:4px;display:block;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:14px;font-style:normal;font-weight:600;height:40px;line-height:18px;min-width:264px;text-align:center}.jp-action-button__error{background:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTEyIDIwYTggOCAwIDEgMCAwLTE2IDggOCAwIDAgMCAwIDE2WiIgc3Ryb2tlPSIjRDYzNjM5IiBzdHJva2Utd2lkdGg9IjEuNSIvPjxwYXRoIGQ9Ik0xMyA3aC0ydjZoMlY3Wk0xMyAxNWgtMnYyaDJ2LTJaIiBmaWxsPSIjRDYzNjM5Ii8+PC9zdmc+) no-repeat 0 0;color:var(--jp-red)!important;line-height:25px!important;padding-left:25px}.SWwV4Pw6OZ5vU3PqPXmr{--product-card-shadow:rgb(0 0 0/3%);background-color:var(--jp-white);border:1px solid var(--jp-gray);border-radius:var(--jp-border-radius);box-shadow:0 2px 6px var(--product-card-shadow),0 1px 2px var(--product-card-shadow)}.r7tUofa9Z3A5ziKVR1H7{align-items:center;display:flex}.r7tUofa9Z3A5ziKVR1H7 img{object-fit:cover;width:100%}.hdasSNj9k3Sc5PwXK4uE{margin-right:4px;width:16px}.eWN8Hj0SBRDq1F48n_Fg{--gray-70:#3c434a;align-items:center;color:var(--gray-70);display:flex;font-size:14px;text-decoration:none}.q0T8YyQxRawhpDtvJjxI{background-color:var(--jp-white);height:100%}.zj7xadmhIWeuf7ZwvVTS{align-items:center;background:var(--jp-black);border-radius:var(--jp-border-radius) var(--jp-border-radius) 0 0;color:var(--jp-white);display:flex;height:32px;padding:0 var(--spacing-base)}.GsioW6IsC8EMYE3U6788{fill:var(--jp-white);margin-right:var(--spacing-base)}.B7JDqI_vtKxSy5GjvqA1{height:100%;padding:0 calc(var(--spacing-base)*5)}.zlh3zbjUe4Z8cBs7uVVe{fill:#8c8f94;height:24px;line-height:24px}.qoZuzG5EcDa231hC6t0P{align-items:center;display:flex;justify-content:center}.qoZuzG5EcDa231hC6t0P svg{margin-right:var(--spacing-base)}.Q6uUUQCPWS6_6nLxIn68{display:inline-block;min-height:42px;padding:8px 60px;text-align:center;width:100%}.Q6uUUQCPWS6_6nLxIn68 .YU4iBCRze09ZP3iCsdcb{margin:0}.Q6uUUQCPWS6_6nLxIn68.is-secondary:hover:not(:disabled){background:var(--jp-black);color:var(--jp-white)}.Q1jaYDpa2AVfJpA29wT0{margin:0}.Q1jaYDpa2AVfJpA29wT0 li{align-items:center;display:flex;list-style:none;margin-bottom:var(--spacing-base)}.Q1jaYDpa2AVfJpA29wT0 svg{fill:var(--jp-green-primary)}.xgv3jRkeF39aEQELCwru{align-items:flex-end;color:var(--jp-text-color);display:flex;flex-wrap:wrap}.twlleZ5Ehq4bB7CvKVSW{position:relative}.twlleZ5Ehq4bB7CvKVSW:first-child{margin-right:var(--spacing-base)}.twlleZ5Ehq4bB7CvKVSW.Qg4rPEvXsqmod1s_31d8{color:var(--jp-gray-20)}.twlleZ5Ehq4bB7CvKVSW.Qg4rPEvXsqmod1s_31d8:after{background:var(--jp-red);border-radius:var(--jp-border-radius);content:" ";display:block;height:3px;margin-top:-2px;pointer-events:none;position:absolute;top:50%;width:100%}.ApsgxIornVy_3KnciVeJ{color:var(--jp-gray-40);flex-grow:2}
|
1 |
+
#my-jetpack-container{--wp-admin-theme-color:var(--jp-black);--wp-admin-theme-color-darker-10:var(--jp-black-80);--wp-admin-theme-color-darker-20:var(--jp-black-80);height:100%}#my-jetpack-container .jetpack-logo{height:40px}#my-jetpack-container .jp-dashboard-footer__jetpack-symbol{height:16px}#wpbody-content>.notice{display:none}.pIsYsXFAJ9KX2VrS5rmY{--actions-size:28px;--status-size:8px;background:var(--jp-white);border-radius:var(--jp-border-radius);box-shadow:0 0 40px rgba(0,0,0,.08);box-shadow:0 0 0 1px var(--jp-gray-10) inset;display:flex;flex-direction:column;height:100%;padding:calc(var(--spacing-base)*3)}.pIsYsXFAJ9KX2VrS5rmY.YXHdD0VsFjiTsVRLrrx9{background:none;background-color:var(--jp-white-off);color:var(--jp-black-80);text-decoration:none}.pIsYsXFAJ9KX2VrS5rmY.YXHdD0VsFjiTsVRLrrx9:hover{background-color:var(--jp-white)}.pIsYsXFAJ9KX2VrS5rmY.YXHdD0VsFjiTsVRLrrx9:hover .ehgY0qp6bl53RaxP5rFF{text-decoration-thickness:var(--jp-underline-thickness)}.pIsYsXFAJ9KX2VrS5rmY.YXHdD0VsFjiTsVRLrrx9:focus{background-color:var(--jp-white);box-shadow:0 0 0 1.5px var(--jp-black);outline:3px solid transparent}.pIsYsXFAJ9KX2VrS5rmY.Pp9cMIaESLYelLOX3tkI{box-shadow:0 0 0 1.5px var(--jp-red-60)}.w56ueQLYexqzTybA7015{align-items:center;display:flex;justify-content:space-between;margin-bottom:var(--spacing-base);width:100%}.gmPKCDKZcfQt9WieTyKS{flex-grow:1}.ZKHHfl5DhA9kUnaL0qQZ{border-radius:var(--jp-border-radius);font-size:var(--font-body-extra-small);height:var(--actions-size);line-height:var(--actions-size)}.fDBaV7I4yUO6w5AWVEtr{align-items:center;display:flex;flex-wrap:wrap;justify-content:space-between;margin-top:calc(var(--spacing-base)*2);min-height:var(--actions-size);width:100%}.ehgY0qp6bl53RaxP5rFF{text-decoration:underline}.f5VJYwuJmjxH8PVxEbbv{align-items:center;display:flex;height:var(--actions-size);margin-left:var(--spacing-base);white-space:nowrap}.f5VJYwuJmjxH8PVxEbbv:before{border-radius:50%;content:"";display:inline-block;height:var(--status-size);margin-right:var(--spacing-base);width:var(--status-size)}.f5VJYwuJmjxH8PVxEbbv.ry3pxoGtmQ0ZeSwp7F_3{color:var(--jp-green-50)}.f5VJYwuJmjxH8PVxEbbv.ry3pxoGtmQ0ZeSwp7F_3:before{background:var(--jp-green-50)}.f5VJYwuJmjxH8PVxEbbv.LZzE3EG7m3CDR46wwwEr{color:var(--jp-gray-50)}.f5VJYwuJmjxH8PVxEbbv.LZzE3EG7m3CDR46wwwEr:before{background:var(--jp-gray-50)}.f5VJYwuJmjxH8PVxEbbv.Vx_jpT02r8W6NfsRSB02{color:var(--jp-red-60)}.f5VJYwuJmjxH8PVxEbbv.Vx_jpT02r8W6NfsRSB02:before{background:var(--jp-red-60)}.f5VJYwuJmjxH8PVxEbbv.PdsJCfyyjSgrNDheF2qi:before{animation:dWP7ypkVXudMbAa38W5Z .5s linear infinite}@keyframes dWP7ypkVXudMbAa38W5Z{0%{opacity:0}50%{opacity:.5}to{opacity:0}}.WQVtrU6q0L1Igcj7wCrQ{margin:0;padding:0}.UujoBFTnQNY2cWU2SIsH{font-size:var(--font-headline-medium);font-weight:700;line-height:52px}.TeGO5V_thHw5lDAm1_2M{font-weight:700}.TeGO5V_thHw5lDAm1_2M,.WolQzb2MsSgiNmLtc7_j{font-size:var(--font-headline-small);line-height:40px}.WolQzb2MsSgiNmLtc7_j{font-weight:400}.hUB0JT8p1T2Hw28N6qC8{font-size:var(--font-title-medium);font-weight:500;line-height:32px}.zY2No8Ga4b8shbOQGhnv{font-size:var(--font-title-small);font-weight:500;line-height:30px}.tIj0D1t8Cc892ikmgFPZ{font-size:var(--font-body);font-weight:400;line-height:24px}.KdcN0BnOaVeVhyLRKqhS{font-size:var(--font-body-small);font-weight:400;line-height:24px}.dso3Rh3tl3Xv1GumBktz{font-size:var(--font-body-extra-small);font-weight:400;line-height:20px}.PItlW5vRExLnTj4a8eLE{font-size:var(--font-body-extra-small);font-weight:600;line-height:16px}.TwRpPlktzxhmFVeua7P5{margin:calc(var( --spacing-base )*0)}.zVfqx7gyb3o9mxfGynn1{margin-left:calc(var( --spacing-base )*0);margin-right:calc(var( --spacing-base )*0)}.iSHVzNiB9iVleGljaQxy{margin-bottom:calc(var( --spacing-base )*0)}.iSHVzNiB9iVleGljaQxy,.xqDIp6cNVr_E6RXaiPyD{margin-top:calc(var( --spacing-base )*0)}.S8EwaXk1kyPizt6x4WH2{margin-right:calc(var( --spacing-base )*0)}.ODX5Vr1TARoLFkDDFooD{margin-bottom:calc(var( --spacing-base )*0)}.cphJ8dCpfimnky7P2FHg{margin-left:calc(var( --spacing-base )*0)}.PFgIhNxIyiSuNvQjAIYj{margin:calc(var( --spacing-base )*1)}.M2jKmUzDxvJjjVEPU3zn{margin-left:calc(var( --spacing-base )*1);margin-right:calc(var( --spacing-base )*1)}.io15gAh8tMTNbSEfwJKk{margin-bottom:calc(var( --spacing-base )*1)}.io15gAh8tMTNbSEfwJKk,.rcTN5uw9xIEeMEGL3Xi_{margin-top:calc(var( --spacing-base )*1)}.CQSkybjq2TcRM1Xo9COV{margin-right:calc(var( --spacing-base )*1)}.hfqOWgq6_MEGdFE82eOY{margin-bottom:calc(var( --spacing-base )*1)}.I8MxZQYTbuu595yfesWA{margin-left:calc(var( --spacing-base )*1)}.kQkc6rmdpvLKPkyoJtVQ{margin:calc(var( --spacing-base )*2)}.j6vFPxWuu4Jan2ldoxpp{margin-left:calc(var( --spacing-base )*2);margin-right:calc(var( --spacing-base )*2)}.hqr39dC4H_AbactPAkCG{margin-bottom:calc(var( --spacing-base )*2)}.c3dQnMi16C6J6Ecy4283,.hqr39dC4H_AbactPAkCG{margin-top:calc(var( --spacing-base )*2)}.YNZmHOuRo6hU7zzKfPdP{margin-right:calc(var( --spacing-base )*2)}.Db8lbak1_wunpPk8NwKU{margin-bottom:calc(var( --spacing-base )*2)}.ftsYE5J9hLzquQ0tA5dY{margin-left:calc(var( --spacing-base )*2)}.Det4MHzLUW7EeDnafPzq{margin:calc(var( --spacing-base )*3)}.h_8EEAztC29Vve1datb5{margin-left:calc(var( --spacing-base )*3);margin-right:calc(var( --spacing-base )*3)}.YXIXJ0h1k47u6hzK8KcM{margin-bottom:calc(var( --spacing-base )*3)}.YXIXJ0h1k47u6hzK8KcM,.soADBBkcIKCBXzCTuV9_{margin-top:calc(var( --spacing-base )*3)}.zSX59ziEaEWGjnpZa4uV{margin-right:calc(var( --spacing-base )*3)}.yrVTnq_WBMbejg89c2ZQ{margin-bottom:calc(var( --spacing-base )*3)}.UKtHPJnI2cXBWtPDm5hM{margin-left:calc(var( --spacing-base )*3)}.guexok_Tqd5Tf52hRlbT{margin:calc(var( --spacing-base )*4)}.oS1E2KfTBZkJ3F0tN7T6{margin-left:calc(var( --spacing-base )*4);margin-right:calc(var( --spacing-base )*4)}.DN1OhhXi6AoBgEdDSbGd{margin-bottom:calc(var( --spacing-base )*4)}.DN1OhhXi6AoBgEdDSbGd,.ot2kkMcYHv53hLZ4LSn0{margin-top:calc(var( --spacing-base )*4)}.A1krOZZhlQ6Sp8Cy4bly{margin-right:calc(var( --spacing-base )*4)}.pkDbXXXL32237M0hokEh{margin-bottom:calc(var( --spacing-base )*4)}.XXv4kDTGvEnQeuGKOPU3{margin-left:calc(var( --spacing-base )*4)}.yGqHk1a57gaISwkXwXe6{margin:calc(var( --spacing-base )*5)}.X8cghM358X3DkXLc9aNK{margin-left:calc(var( --spacing-base )*5);margin-right:calc(var( --spacing-base )*5)}.GdfSmGwHlFnN2S6xBn1f{margin-bottom:calc(var( --spacing-base )*5)}.GdfSmGwHlFnN2S6xBn1f,.yqeuzwyGQ7zG0avrGqi_{margin-top:calc(var( --spacing-base )*5)}.g9emeCkuHvYhveiJbfXO{margin-right:calc(var( --spacing-base )*5)}.Lvk3dqcyHbZ07QCRlrUQ{margin-bottom:calc(var( --spacing-base )*5)}.r3yQECDQ9qX0XZzXlVAg{margin-left:calc(var( --spacing-base )*5)}.aQhlPwht2Cz1X_63Miw0{margin:calc(var( --spacing-base )*6)}.JyHb0vK3wJgpblL9s5j8{margin-left:calc(var( --spacing-base )*6);margin-right:calc(var( --spacing-base )*6)}.cY2gULL1lAv6WPNIRuf3{margin-bottom:calc(var( --spacing-base )*6)}.NBWQ9Lwhh_fnry3lg_p7,.cY2gULL1lAv6WPNIRuf3{margin-top:calc(var( --spacing-base )*6)}.yIOniNe5E40C8fWvBm5V{margin-right:calc(var( --spacing-base )*6)}.t30usboNSyqfQWIwHvT3{margin-bottom:calc(var( --spacing-base )*6)}.Nm_TyFkYCMhOoghoToKJ{margin-left:calc(var( --spacing-base )*6)}.C4qJKoBXpgKtpmrqtEKB{margin:calc(var( --spacing-base )*7)}.S93Srbu6NQ_PBr7DmTiD{margin-left:calc(var( --spacing-base )*7);margin-right:calc(var( --spacing-base )*7)}.fJj8k6gGJDks3crUZxOS{margin-bottom:calc(var( --spacing-base )*7)}.cW6D6djs7Ppm7fD7TeoV,.fJj8k6gGJDks3crUZxOS{margin-top:calc(var( --spacing-base )*7)}.DuCnqNfcxcP3Z__Yo5Ro{margin-right:calc(var( --spacing-base )*7)}.im8407m2fw5vOg7O2zsw{margin-bottom:calc(var( --spacing-base )*7)}.G0fbeBgvz2sh3uTP9gNl{margin-left:calc(var( --spacing-base )*7)}.kvW3sBCxRxUqz1jrVMJl{margin:calc(var( --spacing-base )*8)}.tOjEqjLONQdkiYx_XRnw{margin-left:calc(var( --spacing-base )*8);margin-right:calc(var( --spacing-base )*8)}.op5hFSx318zgxsoZZNLN{margin-bottom:calc(var( --spacing-base )*8)}.c9WfNHP6TFKWIfLxv52J,.op5hFSx318zgxsoZZNLN{margin-top:calc(var( --spacing-base )*8)}.sBA75QqcqRwwYSHJh2wc{margin-right:calc(var( --spacing-base )*8)}.GpL6idrXmSOM6jB8Ohsf{margin-bottom:calc(var( --spacing-base )*8)}.HbtWJoQwpgGycz8dGzeT{margin-left:calc(var( --spacing-base )*8)}.uxX3khU88VQ_Ah49Ejsa{padding:calc(var( --spacing-base )*0)}.KX0FhpBKwKzs9fOUdbNz{padding-left:calc(var( --spacing-base )*0);padding-right:calc(var( --spacing-base )*0)}.PfK8vKDyN32dnimlzYjz{padding-bottom:calc(var( --spacing-base )*0)}.PfK8vKDyN32dnimlzYjz,.emxLHRjQuJsImnPbQIzE{padding-top:calc(var( --spacing-base )*0)}.kJ8WzlpTVgdViXt8ukP9{padding-right:calc(var( --spacing-base )*0)}.tg_UIUI11VBzrTAn2AzJ{padding-bottom:calc(var( --spacing-base )*0)}.uczvl8kaz84oPQJ2DB2R{padding-left:calc(var( --spacing-base )*0)}.o7UHPcdVK3lt7q3lqV4o{padding:calc(var( --spacing-base )*1)}.IDqEOxvDoYrFYxELPmtX{padding-left:calc(var( --spacing-base )*1);padding-right:calc(var( --spacing-base )*1)}.DdywPW2qSYlu2pt8tpO2{padding-bottom:calc(var( --spacing-base )*1)}.DdywPW2qSYlu2pt8tpO2,.npy3hw4A5QSkDicb2CJJ{padding-top:calc(var( --spacing-base )*1)}.LgbptTApNY5NwLQvEFAt{padding-right:calc(var( --spacing-base )*1)}.WZQy2SZuZso59bUsXXyl{padding-bottom:calc(var( --spacing-base )*1)}.o331apInxNunbYB3SfPE{padding-left:calc(var( --spacing-base )*1)}.fMPIyD9Vqki1Lrc_yJnG{padding:calc(var( --spacing-base )*2)}.i2pMcTcdrr10IQoiSm_L{padding-left:calc(var( --spacing-base )*2);padding-right:calc(var( --spacing-base )*2)}.eA702gn32kwptiI1obXH{padding-bottom:calc(var( --spacing-base )*2)}.eA702gn32kwptiI1obXH,.o9bGieUKcYc8o0Ij9oZX{padding-top:calc(var( --spacing-base )*2)}.SwZcFez1RDqWsOFjB5iG{padding-right:calc(var( --spacing-base )*2)}.eHpLc_idmuEqeqCTvqkN{padding-bottom:calc(var( --spacing-base )*2)}.vU39i2B4P1fUTMB2l6Vo{padding-left:calc(var( --spacing-base )*2)}.JHWNzBnE29awhdu5BEh1{padding:calc(var( --spacing-base )*3)}.X72lGbb56L3KFzC2xQ9N{padding-left:calc(var( --spacing-base )*3);padding-right:calc(var( --spacing-base )*3)}.BzfNhRG8wXdCEB5ocQ6e{padding-bottom:calc(var( --spacing-base )*3)}.BzfNhRG8wXdCEB5ocQ6e,.srV0KSDC83a2fiimSMMQ{padding-top:calc(var( --spacing-base )*3)}.lUWfkmbQjCskhcNwkyCm{padding-right:calc(var( --spacing-base )*3)}.Ts0dIlc3aTSL7V4cIHis{padding-bottom:calc(var( --spacing-base )*3)}.CzlqQXXhX6MvorArFZ8B{padding-left:calc(var( --spacing-base )*3)}.TqMPkQtR_DdZuKb5vBoV{padding:calc(var( --spacing-base )*4)}.a7UrjhI69Vetlcj9ZVzz{padding-left:calc(var( --spacing-base )*4);padding-right:calc(var( --spacing-base )*4)}.StEhBzGs2Gi5dDEkjhAv{padding-bottom:calc(var( --spacing-base )*4)}.FGneZfZyvYrt1dG0zcnm,.StEhBzGs2Gi5dDEkjhAv{padding-top:calc(var( --spacing-base )*4)}.APEH216rpdlJWgD2fHc8{padding-right:calc(var( --spacing-base )*4)}.oGwXC3ohCic9XnAj6x69{padding-bottom:calc(var( --spacing-base )*4)}.U6gnT9y42ViPNOcNzBwb{padding-left:calc(var( --spacing-base )*4)}.IpdRLBwnHqbqFrixgbYC{padding:calc(var( --spacing-base )*5)}.HgNeXvkBa9o3bQ5fvFZm{padding-left:calc(var( --spacing-base )*5);padding-right:calc(var( --spacing-base )*5)}.tJtFZM3XfPG9v9TSDfN1{padding-bottom:calc(var( --spacing-base )*5)}.PdifHW45QeXYfK568uD8,.tJtFZM3XfPG9v9TSDfN1{padding-top:calc(var( --spacing-base )*5)}.mbLkWTTZ0Za_BBbFZ5b2{padding-right:calc(var( --spacing-base )*5)}.vVWpZpLlWrkTt0hMk8XU{padding-bottom:calc(var( --spacing-base )*5)}.RxfaJj5a1Nt6IavEo5Zl{padding-left:calc(var( --spacing-base )*5)}.SppJULDGdnOGcjZNCYBy{padding:calc(var( --spacing-base )*6)}.palY2nLwdoyooPUm9Hhk{padding-left:calc(var( --spacing-base )*6);padding-right:calc(var( --spacing-base )*6)}.WYw1JvZC0ppLdvSAPhr_{padding-bottom:calc(var( --spacing-base )*6)}.WYw1JvZC0ppLdvSAPhr_,.YEEJ9b90ueQaPfiU8aeN{padding-top:calc(var( --spacing-base )*6)}.QE0ssnsKvWJMqlhPbY5u{padding-right:calc(var( --spacing-base )*6)}.n8yA3jHlMRyLd5UIfoND{padding-bottom:calc(var( --spacing-base )*6)}.tXHmxYnHzbwtfxEaG51n{padding-left:calc(var( --spacing-base )*6)}.kBTsPKkO_3g_tLkj77Um{padding:calc(var( --spacing-base )*7)}.RyhrFx6Y1FGDrGAAyaxm{padding-left:calc(var( --spacing-base )*7);padding-right:calc(var( --spacing-base )*7)}.CBwRpB0bDN3iEdQPPMJO{padding-bottom:calc(var( --spacing-base )*7)}.CBwRpB0bDN3iEdQPPMJO,.vQVSq6SvWKbOMu6r4H6b{padding-top:calc(var( --spacing-base )*7)}.oBy5__aEADMsH46mrgFX{padding-right:calc(var( --spacing-base )*7)}.KVEXoJqf1s92j0JMdNmN{padding-bottom:calc(var( --spacing-base )*7)}.ZMXGNrNaKW3k_3TLz0Fq{padding-left:calc(var( --spacing-base )*7)}.tuiR9PhkHXhGyEgzRZRI{padding:calc(var( --spacing-base )*8)}.U7454qyWkQNa2iaSJziu{padding-left:calc(var( --spacing-base )*8);padding-right:calc(var( --spacing-base )*8)}.VLYIv2GVocjuN93e8HC8{padding-bottom:calc(var( --spacing-base )*8)}.VLYIv2GVocjuN93e8HC8,.X1rm9DQ1zLGLfogja5Gn{padding-top:calc(var( --spacing-base )*8)}.JS7G6kAuqJo5GIuF8S5t{padding-right:calc(var( --spacing-base )*8)}.Y8F9ga1TDCMbM1lj4gUz{padding-bottom:calc(var( --spacing-base )*8)}.AJuyNGrI63BOWql719H8{padding-left:calc(var( --spacing-base )*8)}.jErCC9oKHSM15BxzFyQK{margin-bottom:0}.oVoYbwbFB6U2o90Njusk{font-size:16px;margin:0}.oVoYbwbFB6U2o90Njusk.is-error{background-color:var(--jp-red-0)}.oVoYbwbFB6U2o90Njusk .components-notice__content{align-items:center;display:flex;margin:0;padding:12px 4px}.oVoYbwbFB6U2o90Njusk .components-notice__content>svg{fill:var(--jp-red-60)}.oVoYbwbFB6U2o90Njusk .is-link{color:var(--jp-black);font-size:16px;font-weight:600}.oVoYbwbFB6U2o90Njusk .components-notice__dismiss{align-self:center}.wBVXH4OTNwLHPRpN4nsq{margin-left:8px}.sexr0jUxC1jVixdKiDnC{margin-left:-20px}@media(max-width:782px){.sexr0jUxC1jVixdKiDnC{margin-left:-10px}}.sexr0jUxC1jVixdKiDnC.vKQ11sLeAM45M04P1ccj{background-color:var(--jp-white)}.SqdhUZkXCRuIpErj1B3z{--max-container-width:1128px;--vertical-gutter:24px;--horizontal-spacing:8px;column-gap:var(--vertical-gutter);display:grid;margin:0 auto;max-width:var(--max-container-width);width:100%}@media(max-width:599px){.SqdhUZkXCRuIpErj1B3z{grid-template-columns:repeat(4,minmax(0,1fr));padding:0 16px}}@media(min-width:600px)and (max-width:959px){.SqdhUZkXCRuIpErj1B3z{grid-template-columns:repeat(8,minmax(0,1fr));padding:0 18px}}@media(min-width:960px){.SqdhUZkXCRuIpErj1B3z{grid-template-columns:repeat(12,minmax(0,1fr));padding:0 24px}}.SqdhUZkXCRuIpErj1B3z.OZC_9a1LhpWF9dv15Gdh{max-width:none;padding:unset}@media(max-width:599px){.RuVLl3q4lxTQa3wbhBJB{grid-column-end:span 1}.f9LZTRG4MMK42rS89afW{grid-column-start:1}.bHe_zKxjjpUwHw_MdYE1{grid-column-end:2}.QZbNrOqE2aNSn50xVhpU{grid-column-end:span 2}.ev7W3z7zVYPeHAlYqZjf{grid-column-start:2}.NJWd1m_e7lOiPYru2ZMP{grid-column-end:3}.Xc6nt1Qc1DI0Z2A3gt1r{grid-column-end:span 3}.UIcN_GXiPRoIsin8Kohg{grid-column-start:3}.GRKCyqb5LufCSCgykKFc{grid-column-end:4}.i_qTq8gqhhC3vIUepVRB{grid-column-end:span 4}.G3qaZ3Jpbvam_1XvGxgc{grid-column-start:4}.VRCNYKZtO9zukEwmgP1y{grid-column-end:5}}@media(min-width:600px)and (max-width:959px){.tRm008K_WJL79WoNZTNL{grid-column-end:span 1}.l5T2P_bgKts4tdaRkS1d{grid-column-start:1}.zOCxfLZpF6BlgC7a_Yq1{grid-column-end:2}.F80DdgVn0m5OpvtSQWka{grid-column-end:span 2}.oI1c7JYfiJtMQHbhngtU{grid-column-start:2}.pMQtA_4jh1_1lVknqEP5{grid-column-end:3}.VenqMpdgyKQVUNNQcfqd{grid-column-end:span 3}.seNYL99uoczf9V4MxBxT{grid-column-start:3}.YKfF1HFhI9KygA5l3b2J{grid-column-end:4}.yAi0Cv1xDWkoqsaUhvhR{grid-column-end:span 4}.ubhnyZOnkgxNhh6XtVWv{grid-column-start:4}.RGOPGQbWMJ9Ei5oFxS7X{grid-column-end:5}.Sz1E2aWbX483ijdi6yge{grid-column-end:span 5}.tku6_bRYrX9tMbgYGmIl{grid-column-start:5}.b5JHttOhSEcI1WBlqAjk{grid-column-end:6}.FboSx5MoKTAWbxXyYlCw{grid-column-end:span 6}.Jhs8yEEmodG30edbJvag{grid-column-start:6}.IpzbbKVqEqPcfIGkXkwt{grid-column-end:7}.mhCPwfAZ4Kmm_empzJAq{grid-column-end:span 7}.x034ilrJF7rO9UJB2rI1{grid-column-start:7}.Wt8t2e16viRrOJ1lLA5v{grid-column-end:8}.S6pIrEy9AMLKx9bgh_Ae{grid-column-end:span 8}.kEfI4tGyuWfHTlRnvIab{grid-column-start:8}.PUzX4RRsKq1dnsz3gebS{grid-column-end:9}}@media(min-width:960px){.X_pdcLJikd8LS_YAdJlB{grid-column-end:span 1}.tl936d14Huby4khYp05X{grid-column-start:1}.hnge0LnR69d3NXEtEE1t{grid-column-end:2}.fj0NUMuyZQcPNgKcjp5Z{grid-column-end:span 2}.R2ncBX7a2NigdYCcV1OX{grid-column-start:2}.t8vMSDVYno9k9itRwnXb{grid-column-end:3}.wsDuEN2GqHx6qzo8dUdk{grid-column-end:span 3}.cIEVPUweWtLBy3xaXnMx{grid-column-start:3}.fajUWBwu1m2B479j3jmz{grid-column-end:4}.YR0c7fQTgMkDdWzwSyLp{grid-column-end:span 4}.xlwp8BmplxkKNMI7gamo{grid-column-start:4}._C4O1w9DUqx1m3gPf8aA{grid-column-end:5}.Z54F1hAErckAIrKlxnXW{grid-column-end:span 5}.ezSDWkRHmKSxDJXxuiOH{grid-column-start:5}.T0ChoeAjGJjkkNrYhD4g{grid-column-end:6}.qtMoMPF6yHvGJnWHSsde{grid-column-end:span 6}.gdoywN5VPiWERfIBqkph{grid-column-start:6}.wUev_VH5uf_pwFFlbnAU{grid-column-end:7}.egIPDFJsOpownTClq9XP{grid-column-end:span 7}.yGhp9yoAW7k0kQik9AB7{grid-column-start:7}.SJ43U9mR5wUg5V2qBeQA{grid-column-end:8}.cTuyHfMwSUJxN_HdIEgd{grid-column-end:span 8}.smCr8DaIagcumdvdldiK{grid-column-start:8}.T03NHzQJvzwL6wAfIiTL{grid-column-end:9}.pMvxM3RJGjqyNdf9qg1Y{grid-column-end:span 9}.iIVpNRwEnQ_JI5gpp9EN{grid-column-start:9}.ZbQ4u4vGSX5rJOje4uGL{grid-column-end:10}.gKb5wuIDAlKGbrjK2vxy{grid-column-end:span 10}.Z7pINdImE2WJiYnZBTqm{grid-column-start:10}.ZTxp6qpvwurMdOnLLSz1{grid-column-end:11}.NnQTlbfnxPDR6cQ7rygg{grid-column-end:span 11}.O137wZd6Yl0olSA9PsXR{grid-column-start:11}.zf2OJtQ2MPz6SDoh6CB0{grid-column-end:12}.U3H6UHW6HqRt9hdzVg3O{grid-column-end:span 12}.zynnNeS_ZBTxABcVpUQH{grid-column-start:12}.vI8tltFZtFUNAy9Iag9s{grid-column-end:13}}.jp-dashboard-footer{align-items:center;color:#000;display:flex;flex-flow:row wrap;justify-content:space-between;max-width:1128px;width:100%}.jp-dashboard-footer a,.jp-dashboard-footer a:hover,.jp-dashboard-footer a:visited{color:#000;text-decoration:none}.jp-dashboard-footer__jetpack-symbol,.jp-dashboard-footer__module-name{display:inline-block;vertical-align:middle}.jp-dashboard-footer__module-name{font-size:12px;font-weight:600;margin-left:5px}.vMa4i_Dza2t5Zi_Bw9Nf{background:var(--jp-white-off)}.sDAzdUdcbaYmUMZBe2XW{fill:#2c3338}.cuoSlhSNrqf1dozY22Xb{fill:#000}.JLquNpQVlysAamuh5lJO,.lAIiifeLMmZAPlQ9n9ZR{fill:var(--jp-green-primary)}.cbOwD8Y4tFjwimmtchQI{fill:#757575}.cbOwD8Y4tFjwimmtchQI.aHOlEBGD5EA8NKRw3xTw{fill:var(--color-facebook);border-radius:50%!important}.cbOwD8Y4tFjwimmtchQI.af4Y_zItXvLAOEoSDPSv{fill:var(--color-twitter)}.cbOwD8Y4tFjwimmtchQI.f68aqF3XSD1OBvXR1get{fill:var(--color-linkedin)}.cbOwD8Y4tFjwimmtchQI.xFI0dt3UiXRlRQdqPWkx{fill:var(--color-tumblr)}.cbOwD8Y4tFjwimmtchQI.q7JEoyymveP6kF747M43{fill:var(--color-gplus)}.cAbGtJDGgLubucBnz7vM{background-color:var(--jp-white)}.wiobThfXJCuhGNrbFIT6 a,.wiobThfXJCuhGNrbFIT6 a:active,.wiobThfXJCuhGNrbFIT6 a:hover{color:var(--jp-black)}.VgAxgahF9bC2M__FiIgV{margin-bottom:calc(var(--spacing-base)*3)}.Doju0RxvvN9JS12mf489{line-height:calc(var(--spacing-base)*3);margin:0 0 var(--spacing-base) 0}.zI5tJ_qhWE6Oe6Lk75GY{--wp-admin-theme-color:var(--jp-black);--wp-admin-theme-color-darker-10:var(--jp-black-80);--wp-admin-theme-color-darker-20:var(--jp-black-80);--wp-admin-border-width-focus:1.5px;border-radius:var(--jp-border-radius);font-weight:600;justify-content:center}.zI5tJ_qhWE6Oe6Lk75GY.ipS7tKy9GntCS4R3vekF{font-size:var(--font-body);height:auto;line-height:24px;padding:var(--spacing-base) calc(var(--spacing-base)*3)}.zI5tJ_qhWE6Oe6Lk75GY.ipS7tKy9GntCS4R3vekF.paGLQwtPEaJmtArCcmyK{padding:var(--spacing-base) calc(var(--spacing-base)*2)}.zI5tJ_qhWE6Oe6Lk75GY.Na39I683LAaSA99REg14{font-size:var(--font-body-extra-small);height:auto;line-height:20px;padding:calc(var(--spacing-base)/2) var(--spacing-base)}.zI5tJ_qhWE6Oe6Lk75GY.Na39I683LAaSA99REg14.paGLQwtPEaJmtArCcmyK>svg:first-child{margin-right:calc(var(--spacing-base)/2)}.zI5tJ_qhWE6Oe6Lk75GY.Na39I683LAaSA99REg14>.components-spinner{height:20px}.zI5tJ_qhWE6Oe6Lk75GY.lZAo6_oGfclXOO9CC6Rd{font-weight:400}.zI5tJ_qhWE6Oe6Lk75GY.is-primary:disabled,.zI5tJ_qhWE6Oe6Lk75GY.is-secondary:disabled{background:var(--jp-gray);color:var(--jp-gray-20)}.zI5tJ_qhWE6Oe6Lk75GY.is-secondary:active:not(:disabled),.zI5tJ_qhWE6Oe6Lk75GY.is-secondary:hover:not(:disabled){background:var(--jp-gray-0)}.zI5tJ_qhWE6Oe6Lk75GY.is-link.Na39I683LAaSA99REg14,.zI5tJ_qhWE6Oe6Lk75GY.is-link.ipS7tKy9GntCS4R3vekF{padding:0}.zI5tJ_qhWE6Oe6Lk75GY.is-link:hover:not(:disabled){text-decoration-thickness:3px}.zI5tJ_qhWE6Oe6Lk75GY.is-link:focus:not(:disabled){text-decoration-line:none}.zI5tJ_qhWE6Oe6Lk75GY.is-destructive.is-primary{box-shadow:none}.zI5tJ_qhWE6Oe6Lk75GY.is-destructive.is-primary:not(:disabled){background:var(--jp-red-50);box-shadow:inset 0 0 0 1px var(--jp-red-50);color:var(--jp-white)}.zI5tJ_qhWE6Oe6Lk75GY.is-destructive.is-primary:hover:not(:disabled){background:var(--jp-red-60);box-shadow:inset 0 0 0 1px var(--jp-red-60)}.zI5tJ_qhWE6Oe6Lk75GY.is-destructive.is-primary:focus:not(:disabled){background:var(--jp-red-70);box-shadow:inset 0 0 0 1px var(--jp-white),0 0 0 var(--wp-admin-border-width-focus) var(--jp-red-70);color:var(--jp-white)}.zI5tJ_qhWE6Oe6Lk75GY.is-destructive.is-primary:active:not(:disabled){background:var(--jp-red-50)}.zI5tJ_qhWE6Oe6Lk75GY.is-destructive.is-secondary{box-shadow:none}.zI5tJ_qhWE6Oe6Lk75GY.is-destructive.is-secondary:not(:disabled){background:var(--jp-white);box-shadow:inset 0 0 0 1px var(--jp-red-50);color:var(--jp-red-50)}.zI5tJ_qhWE6Oe6Lk75GY.is-destructive.is-secondary:hover:not(:disabled){background:var(--jp-red-0);box-shadow:inset 0 0 0 1px var(--jp-red-60);color:var(--jp-red-60)}.zI5tJ_qhWE6Oe6Lk75GY.is-destructive.is-secondary:focus:not(:disabled){box-shadow:inset 0 0 0 1px var(--jp-white),0 0 0 var(--wp-admin-border-width-focus) var(--jp-red-70);color:var(--jp-red-70)}.zI5tJ_qhWE6Oe6Lk75GY.is-destructive.is-secondary:active:not(:disabled){background:var(--jp-gray-0)}.zI5tJ_qhWE6Oe6Lk75GY.is-destructive.is-link:not(:disabled){color:var(--jp-red-50)}.zI5tJ_qhWE6Oe6Lk75GY.is-destructive.is-link:hover:not(:disabled){box-shadow:none;color:var(--jp-red-60)}.zI5tJ_qhWE6Oe6Lk75GY.is-destructive.is-link:focus:not(:disabled){box-shadow:inset 0 0 0 1px var(--jp-white),0 0 0 var(--wp-admin-border-width-focus) var(--jp-red-70);color:var(--jp-red-70)}.zI5tJ_qhWE6Oe6Lk75GY.q_tVWqMjl39RcY6WtQA6{position:relative}.zI5tJ_qhWE6Oe6Lk75GY.q_tVWqMjl39RcY6WtQA6.has-icon{justify-content:center}.zI5tJ_qhWE6Oe6Lk75GY.q_tVWqMjl39RcY6WtQA6>:not(.components-spinner){visibility:hidden}.zI5tJ_qhWE6Oe6Lk75GY.q_tVWqMjl39RcY6WtQA6>.components-spinner{margin:0;position:absolute}.CDuBjJp_8jxzx5j6Nept{margin-left:calc(var(--spacing-base)/2)}.jp-connection-status-card h3{color:var(--jp-black);font-size:var(--font-title-large);font-weight:700;line-height:1.1;margin:0}.jp-connection-status-card a,.jp-connection-status-card a:active,.jp-connection-status-card a:hover{color:var(--jp-black)}.jp-connection-status-card p{color:var(--jp-black);margin:16px 0}.jp-connection-status-card a,.jp-connection-status-card li,.jp-connection-status-card p{font-size:var(--font-body);line-height:24px}.jp-connection-status-card--status{align-items:center;display:flex;margin:24px 0 24px -6px}.jp-connection-status-card--cloud{background-image:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNDIiIGhlaWdodD0iNDIiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PG1hc2sgaWQ9ImEiIG1hc2stdHlwZT0iYWxwaGEiIG1hc2tVbml0cz0idXNlclNwYWNlT25Vc2UiIHg9IjciIHk9IjkiIHdpZHRoPSIyOCIgaGVpZ2h0PSIyMSI+PHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik0zMC4zMzMgMTcuNjk3di0uMDhjMC00LjI1My0zLjc2LTcuNy04LjQtNy43LTMuOTE2IDAtNy4yMDYgMi40NTctOC4xMzYgNS43OGE2LjM4NiA2LjM4NiAwIDAgMC0uMjY0LS4wMDVDOS45MjUgMTUuNjkyIDcgMTguNzA4IDcgMjIuNDI5czIuOTI1IDYuNzM4IDYuNTMzIDYuNzM4SDI5LjRjMy4wOTMgMCA1LjYtMi41ODYgNS42LTUuNzc1IDAtMi44NjEtMi4wMTgtNS4yMzctNC42NjYtNS42OTVaIiBmaWxsPSIjZmZmIi8+PC9tYXNrPjxnIG1hc2s9InVybCgjYSkiPjxwYXRoIGQ9Im0zMC4zMzMgMTcuNjk3LTIuNjI1LS4wMy0uMDI1IDIuMjM1IDIuMjAyLjM4MS40NDgtMi41ODZabS0xNi41MzctMi0uMTA3IDIuNjIzIDIuMDc1LjA4NS41Ni0yLTIuNTI4LS43MDhabS0uMjYzIDEzLjQ3djIuNjI1aC4wMDhsLS4wMDgtMi42MjVabS4wNCAwdi0yLjYyNWgtLjAwOWwuMDA4IDIuNjI1Wm0xNS43OTUgMCAuMDE1LTIuNjI1aC0uMDE1djIuNjI1Wm0zLjU5LTExLjQ0MXYtLjExaC01LjI1di4wNTJsNS4yNS4wNThabTAtLjExYzAtNS45MTItNS4xNTUtMTAuMzI0LTExLjAyNS0xMC4zMjR2NS4yNWMzLjQxIDAgNS43NzUgMi40ODIgNS43NzUgNS4wNzVoNS4yNVpNMjEuOTMzIDcuMjkzYy00Ljk4NCAwLTkuMzg4IDMuMTM5LTEwLjY2NCA3LjY5OGw1LjA1NSAxLjQxNWMuNTg1LTIuMDg5IDIuNzYyLTMuODYzIDUuNjEtMy44NjN2LTUuMjVabS04LjAzIDUuNzgyYTkuMTExIDkuMTExIDAgMCAwLS4zNy0uMDA3djUuMjVjLjA1MyAwIC4xMDUuMDAxLjE1Ni4wMDNsLjIxNS01LjI0NlptLS4zNy0uMDA3Yy01LjEzMyAwLTkuMTU4IDQuMjY4LTkuMTU4IDkuMzYyaDUuMjVjMC0yLjM0OCAxLjgyNS00LjExMiAzLjkwOC00LjExMnYtNS4yNVptLTkuMTU4IDkuMzYyYzAgNS4wOTUgNC4wMjUgOS4zNjMgOS4xNTggOS4zNjN2LTUuMjVjLTIuMDgzIDAtMy45MDgtMS43NjUtMy45MDgtNC4xMTNoLTUuMjVabTkuMTY2IDkuMzYzaC4wNGwtLjAxNy01LjI1aC0uMDM5bC4wMTYgNS4yNVptLjAzMSAwaDE1Ljc5NnYtNS4yNUgxMy41NzJ2NS4yNVptMTUuODI3LTUuMjVoLS4wMTZsLS4wMyA1LjI1aC4wNDZ2LTUuMjVabTIuOTc1LTMuMTVjMCAxLjgxNi0xLjQwNyAzLjE1LTIuOTc1IDMuMTV2NS4yNWM0LjYxOCAwIDguMjI1LTMuODM4IDguMjI1LTguNGgtNS4yNVptLTIuNDg5LTMuMTA5YzEuMzU1LjIzNSAyLjQ5IDEuNDg4IDIuNDkgMy4xMDloNS4yNWMwLTQuMTAyLTIuOTAyLTcuNi02Ljg0NC04LjI4MmwtLjg5NiA1LjE3M1oiIGZpbGw9IiMxRTFFMUUiLz48L2c+PC9zdmc+);height:42px;margin-right:4px;width:42px}.jp-connection-status-card--jetpack-logo{background-image:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzIiIGhlaWdodD0iMzIiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTE2IDMyYzguODM3IDAgMTYtNy4xNjMgMTYtMTZTMjQuODM3IDAgMTYgMCAwIDcuMTYzIDAgMTZzNy4xNjMgMTYgMTYgMTZaIiBmaWxsPSIjMDAwIi8+PHBhdGggZD0iTTE2Ljc5NCAxMy4zMTN2MTUuNTExbDgtMTUuNTEyaC04Wk0xNS4xNzUgMTguNjU3VjMuMTc2bC03Ljk2OSAxNS40OGg3Ljk3WiIgZmlsbD0iI2ZmZiIvPjwvc3ZnPg==);height:32px;margin-left:11px;width:32px}.jp-connection-status-card--btn-connect-user{font-size:var(--font-body);font-weight:400;line-height:24px}.jp-connection-status-card--avatar{background-color:var(--jp-white);background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width='32' height='32' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='16' cy='16' r='16' fill='%23fff'/%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M4.498 27.123C6.038 24.165 10.916 21.5 16 21.5c5.084 0 9.963 2.665 11.502 5.623a15.952 15.952 0 0 1-11.257 4.875L16 32l-.245-.002a15.952 15.952 0 0 1-11.257-4.875zM16 8a6 6 0 1 1 0 12 6 6 0 0 1 0-12z' fill='%23A2AAB2'/%3E%3C/svg%3E");background-repeat:no-repeat;background-size:contain;border:0;border-radius:20px;height:32px;margin-left:-10px;width:32px}.jp-connection-status-card--line{border-top:2px solid var(--jp-black);height:0;width:67px}.jp-connection-status-card--line.jp-connection-status-card--site-only{border-top-style:dashed}.jp-connection-status-card--list{list-style-type:none;margin:16px 0}.jp-connection-status-card--list li{color:var(--jp-black);margin:0 0 8px -3px;padding-left:25px}.jp-connection-status-card--list-item-success{background:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0ibTE4LjkzNSA2LTguOSAxMS45Ny01LjE2Mi0zLjgzNyIgc3Ryb2tlPSIjMUUxRTFFIiBzdHJva2Utd2lkdGg9IjEuNSIvPjwvc3ZnPg==) no-repeat 0 0}.jp-connection-status-card--list-item-error{background:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTEyIDIwYTggOCAwIDEgMCAwLTE2IDggOCAwIDAgMCAwIDE2WiIgc3Ryb2tlPSIjRDYzNjM5IiBzdHJva2Utd2lkdGg9IjEuNSIvPjxwYXRoIGQ9Ik0xMyA3aC0ydjZoMlY3Wk0xMyAxNWgtMnYyaDJ2LTJaIiBmaWxsPSIjRDYzNjM5Ii8+PC9zdmc+) no-repeat 0 0;color:var(--jp-red-60)!important}.jp-connection-status-card--list-item-info{background:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTEyIDIwYTggOCAwIDEgMCAwLTE2IDggOCAwIDAgMCAwIDE2WiIgc3Ryb2tlPSIjMDAwIiBzdHJva2Utd2lkdGg9IjEuNSIvPjxwYXRoIGQ9Ik0xMyA3aC0ydjZoMlY3Wk0xMyAxNWgtMnYyaDJ2LTJaIiBmaWxsPSIjMDAwIi8+PC9zdmc+) no-repeat 0 0}.jp-connection__disconnect-dialog h1{font-size:var(--font-title-small);font-weight:600;line-height:1.2;margin-top:0}.jp-connection__disconnect-dialog h2{font-size:var(--font-title-small);font-weight:400;line-height:1.2;margin:0}.jp-connection__disconnect-dialog p{font-size:var(--font-body);margin-top:0}.jp-connection__disconnect-dialog p.jp-connection__disconnect-dialog__large-text,.jp-connection__disconnect-dialog__large-text{font-size:1.25rem}.jp-connection__disconnect-dialog .jp-connection__disconnect-dialog__link,.jp-connection__disconnect-dialog__link{color:var(--jp-black);font-size:var(--font-body);font:inherit;height:auto;padding:0;text-decoration:underline}.jp-connection__disconnect-dialog .jp-connection__disconnect-dialog__link:hover,.jp-connection__disconnect-dialog__link:hover{color:var(--jp-black);text-decoration-thickness:var(--jp-underline-thickness)}.jp-connection__disconnect-dialog .jp-connection__disconnect-dialog__link:focus,.jp-connection__disconnect-dialog__link:focus{box-shadow:none!important;color:var(--jp-black)}.jp-connection__disconnect-dialog .jp-connection__disconnect-dialog__link--bold,.jp-connection__disconnect-dialog__link--bold{font-weight:700}.jp-connection__disconnect-dialog .components-button{border-radius:4px;font-size:var(--font-body-small);height:40px}.jp-connection__disconnect-dialog .components-modal__content{display:flex;flex-direction:column;flex-grow:1;margin:0;padding:0}.jp-connection__disconnect-dialog .components-modal__content:before,.jp-connection__disconnect-dialog .components-modal__header{display:none}.jp-connection__disconnect-dialog .jp-row{align-items:center;width:calc(100% - 48px)}.jp-connection__disconnect-dialog__content{align-items:center;background:var(--jp-white-off);border-radius:4px;display:flex;flex-direction:column;flex-grow:1;justify-content:center;margin:0;padding:2rem 1rem;text-align:center}.jp-connection__disconnect-dialog__actions{background:var(--jp-white);border-top:1px solid var(--jp-gray);bottom:0;padding:2rem 0;position:sticky}.jp-connection__disconnect-dialog__actions p{margin-bottom:0}.jp-connection__disconnect-dialog__actions:before{background:linear-gradient(to bottom,transparent,var(--jp-white-off));bottom:calc(100% + 1px);content:"";display:block;height:80px;left:0;position:absolute;width:100%}.jp-connection__disconnect-dialog__btn-dismiss,.jp-connection__disconnect-dialog__btn-dismiss.components-button{background:var(--jp-black)!important;margin-right:10px}.jp-connection__disconnect-dialog__btn-disconnect{background:var(--jp-red)!important}.jp-connection__disconnect-dialog__btn-back-to-wp{background:var(--jp-black)!important}.jp-connection__disconnect-dialog__button-wrap{text-align:left}@media(min-width:960px){.jp-connection__disconnect-dialog__button-wrap{text-align:center}}.jp-connection__disconnect-dialog__error{color:var(--jp-red)}.jp-connection__disconnect-dialog__survey{margin-bottom:1.5rem;max-width:100%}.jp-connection__disconnect-dialog__step-copy{margin:0 auto;max-width:800px}.jp-connection__disconnect-dialog__step-copy--narrow{max-width:600px}@media(max-height:900px){.jp-connection__disconnect-dialog__content .jp-components__decorative-card{display:none}}@media(min-width:600px){.jp-connection__disconnect-dialog,.jp-connection__disconnect-dialog.components-modal__frame{max-width:calc(100% - 32px);width:100%}.jp-connection__disconnect-dialog__actions,.jp-connection__disconnect-dialog__content{padding:2rem}}@media(min-width:960px){.jp-connection__disconnect-dialog,.jp-connection__disconnect-dialog.components-modal__frame{display:flex;flex-direction:column;height:900px;width:1200px}.jp-connection__disconnect-dialog h1{font-size:var(--font-title-large)}.jp-connection__disconnect-dialog p.jp-connection__disconnect-dialog__large-text,.jp-connection__disconnect-dialog__large-text{font-size:1.5rem}.jp-connection__disconnect-dialog__content{padding:80px}.jp-connection__disconnect-dialog__actions{padding:2rem 3rem}.jp-row{margin-left:0}}.jp-connection__disconnect-card{background-color:var(--jp-white);border:none;border-radius:3px;box-shadow:0 0 15px var(--jp-gray-off);margin:0 auto 1rem;max-width:100%;padding:1rem 2rem;text-align:left;width:800px}.jp-connection__disconnect-card__group{margin-bottom:1rem;max-width:100%}.jp-connection__disconnect-card__card-content{display:block;font-size:.875rem}@media only screen and (min-width:782px){.jp-connection__disconnect-card__card-content{align-items:center;display:flex;justify-content:space-between}}.jp-connection__disconnect-card .jp-connection__disconnect-card__card-headline,.jp-connection__disconnect-card__card-headline{flex-shrink:0;font-size:1.25rem;font-weight:600;margin-bottom:0;margin-top:0}@media only screen and (min-width:782px){.jp-connection__disconnect-card .jp-connection__disconnect-card__card-headline,.jp-connection__disconnect-card__card-headline{font-size:1.5rem;margin-right:1.5rem}}@media only screen and (max-width:782px){.jp-connection__disconnect-card .jp-connection__disconnect-card__card-headline+.jp-disconnect-card__card-stat-block,.jp-connection__disconnect-card__card-headline+.jp-disconnect-card__card-stat-block{margin-top:.5rem}}.jp-connection__disconnect-card__card-stat-block{align-items:baseline;display:flex;flex-grow:1}@media only screen and (min-width:782px){.jp-connection__disconnect-card__card-stat-block{flex-direction:row-reverse}}.jp-connection__disconnect-card__card-description{flex-grow:1}@media only screen and (min-width:782px){.jp-connection__disconnect-card__card-description{text-align:right}}.jp-connection__disconnect-card__card-stat{font-size:1rem;font-weight:600;margin-right:.5rem}@media only screen and (min-width:782px){.jp-connection__disconnect-card__card-stat{font-size:1.5rem;margin-left:1rem;margin-right:0}}.jp-components__decorative-card{border-radius:8px;box-shadow:0 0 15px var(--jp-gray);display:flex;height:280px;margin:0 auto 3rem;max-width:100%;overflow:hidden;position:relative;width:360px}.jp-components__decorative-card__content,.jp-components__decorative-card__image{width:50%}.jp-components__decorative-card__image{background:var(--jp-gray);background-size:cover;position:relative}.jp-components__decorative-card__image:before{background-image:url('data:image/svg+xml;uf8,<svg width="38" height="8" viewBox="0 0 38 8" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M1 7C1 7 2.37087 1 6.89831 1C11.4257 1 14.3709 7 18.8983 7C23.4257 7 26.7777 1 31.3051 1C35.912 1 37 7 37 7" stroke="white" stroke-width="1.5" stroke-linejoin="round"/></svg>');content:"";display:block;height:8px;left:24px;position:absolute;top:24px;width:38px}.jp-components__decorative-card__content{background:#fff;padding:2rem}.jp-components__decorative-card__icon-container{background:var(--jp-red);border-radius:50px;height:80px;left:50%;position:absolute;top:50%;transform:translate(-50%,-50%);width:80px}.jp-components__decorative-card__icon{background-position:50%,50%;background-repeat:no-repeat;height:40px;left:50%;position:absolute;top:50%;transform:translate(-50%,-50%);width:40px}.jp-components__decorative-card__icon--unlink{background-image:url('data:image/svg+xml;uf8,<svg width="34" height="37" viewBox="0 0 34 37" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M22.3335 10.001H25.0002C29.4184 10.001 33.0002 13.5827 33.0002 18.001V19.7788C33.0002 24.197 29.4184 27.7788 25.0002 27.7788H22.3335" stroke="white" stroke-width="1.5" stroke-linecap="square"/> <path d="M11.6675 27.7783L9.00082 27.7783C4.58254 27.7783 1.00081 24.1966 1.00081 19.7783L1.00081 18.0005C1.00081 13.5823 4.58253 10.0005 9.00081 10.0005L11.6675 10.0005" stroke="white" stroke-width="1.5" stroke-linecap="square"/> <path d="M10.9998 19.167L16.9998 19.167" stroke="white" stroke-width="1.5"/> <path d="M8.99951 35.998L24.9995 0.998048" stroke="white"/> </svg>')}.jp-components__decorative-card__lines,.jp-components__decorative-card__lines:after,.jp-components__decorative-card__lines:before{background:#e9eff5;border-radius:6px;display:block;height:12px;position:relative;width:100%}.jp-components__decorative-card__lines:after,.jp-components__decorative-card__lines:before{content:"";top:calc(100% + 16px)}.jp-components__decorative-card__lines:after{top:calc(100% + 32px);width:75%}.jp-components__decorative-card--vertical{flex-direction:column}.jp-components__decorative-card--vertical .jp-components__decorative-card__content,.jp-components__decorative-card--vertical .jp-components__decorative-card__image{height:50%;width:100%}.jp-components__decorative-card--vertical .jp-components__decorative-card__lines{margin-left:auto;margin-right:auto;max-width:135px}.jp-components__decorative-card--vertical .jp-components__decorative-card__lines:after,.jp-components__decorative-card--vertical .jp-components__decorative-card__lines:before{margin-left:auto;margin-right:auto}.jp-connect__disconnect-survey-card{border:2px solid transparent;border-radius:4px;box-shadow:0 0 15px var(--jp-gray-off);margin-left:auto;margin-right:auto;max-width:100%;padding:1rem;position:relative;text-align:left;width:800px}.jp-connect__disconnect-survey-card--selected{background:var(--jp-gray-off);border-color:var(--jp-black)}.jp-connect__disconnect-survey-card:after{border-right:2px solid var(--jp-black);border-top:2px solid var(--jp-black);content:"";display:block;height:5px;position:absolute;right:1.5rem;top:50%;transform:translateY(-50%) rotate(45deg);width:5px}.jp-connect__disconnect-survey-card:hover{cursor:pointer}.jp-connect__disconnect-survey-card:focus:not(.jp-disconnect-survey-card--selected),.jp-connect__disconnect-survey-card:hover:not(.jp-disconnect-survey-card--selected){border-color:var(--jp-black-80)}.jp-connect__disconnect-survey-card__answer{align-items:center;display:flex;font-weight:700;margin:0}input.jp-connect__disconnect-survey-card__input{-webkit-appearance:none;background-color:transparent;border:none;color:var(--jp-black-80);flex-grow:1;max-width:calc(100% - 40px);padding-right:40px}.zvd4dCB_bBDiXJKKDqXm{position:relative}.ly4o9lSswAGHFXqGUEIO{position:absolute;right:32px;top:32px;z-index:1}.u64Go3kwEZ7MD9eji0H1{color:var(--jp-gray-50);font-size:13px;margin-bottom:16px;width:60%}._RT41NE3LU4R0ubcij2y{align-items:center;display:flex}.cFGWJeRiGHjAr8D7CWJW{margin-right:8px;width:100px}.Iz3l7a05TP6HK9S92TIL{width:16px}.lmQ0wFmnk4kKkGVjokPA{height:18px;margin-left:8px}.AoIs8wD92wKR8RpQj6Uc{align-items:center;display:inline-flex}.rV_5QyvhDnsVjCX4pb0h{--gray-90:#1e1e1e;fill:var(--gray-90);width:24px}.MO1jDNY8VPqeNS9xL8jE{align-items:center;display:flex;text-decoration:none}.jp-connection__connect-screen__loading{display:none}.jp-connection__connect-screen__tos{margin-top:28px;max-width:360px}.jp-connection__connect-screen .jp-action-button{margin-top:40px}.jp-connection__connect-screen .jp-action-button button{max-width:100%}.jp-connection__connect-screen .jp-action-button button:disabled{color:hsla(0,0%,100%,.4)}@media(max-width:782px){.jp-connection__connect-screen .jp-action-button button{max-width:none;width:100%}}.jp-connection__connect-screen__footer{margin-top:32px}.jp-connection__connect-screen-layout{background:var(--jp-white);border-radius:4px;box-shadow:0 0 40px rgba(0,0,0,.08)}.jp-connection__connect-screen-layout__loading{display:none}.jp-connection__connect-screen-layout__left,.jp-connection__connect-screen-layout__right{box-sizing:border-box}.jp-connection__connect-screen-layout__left{padding:25px}@media(min-width:600px){.jp-connection__connect-screen-layout__left{padding:64px 96px}}.jp-connection__connect-screen-layout__left .jetpack-logo{margin-bottom:24px}.jp-connection__connect-screen-layout__left h2{color:var(--jp-black);font-size:36px;font-style:normal;font-weight:700;line-height:40px;margin-bottom:0;margin-top:32px}.jp-connection__connect-screen-layout__left h3{color:var(--jp-black);font-size:24px;font-style:normal;font-weight:500;line-height:32px;margin-bottom:0;margin-top:32px}.jp-connection__connect-screen-layout__left li,.jp-connection__connect-screen-layout__left p{font-size:16px;font-style:normal;font-weight:400;line-height:24px}.jp-connection__connect-screen-layout__left p{color:#101517;margin:16px 0}.jp-connection__connect-screen-layout__left a{color:var(--jp-black);font-size:var(--font-body);font:inherit;height:auto;padding:0;text-decoration:underline}.jp-connection__connect-screen-layout__left a:hover{color:var(--jp-black);text-decoration-thickness:var(--jp-underline-thickness)}.jp-connection__connect-screen-layout__left a:focus{box-shadow:none!important;color:var(--jp-black)}.jp-connection__connect-screen-layout__left ul{list-style-type:none;padding:0}.jp-connection__connect-screen-layout__left ul li{background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAMAAABg3Am1AAAANlBMVEVHcEwFnwUInggGnggGnggHnAcAnwUFnQcAnwcGnwkFnQgGnQgFnwcGnQYFnQcFnAcGnQkDnwdhiL0pAAAAEnRSTlMAMF//f2Aw7yBQ3+9gcIBgcED+HDbkAAAAZklEQVR4Ae3LNwICARDDQC0+cv7/Y8mwV9odSfWIcf/+VegnGkIvDaGXKvTTn/Gz+Uf5xTL0K1XotS7fs5H6GHvvaO8d7c3j7rdgHne/A/PYt/cO+R42oYdN6OEQetiFHo4A//6dAXqtBEkmtWutAAAAAElFTkSuQmCC) no-repeat;background-size:24px;color:var(--jp-black);margin-bottom:9px;padding-left:30px}.jp-connection__connect-screen-layout__right{padding:64px 0}.jp-connection__connect-screen-layout__right img{max-width:100%}.jp-connection__connect-screen-layout__two-columns{display:flex;flex-wrap:wrap}.jp-connection__connect-screen-layout__two-columns .jp-connection__connect-screen-layout__left{flex-basis:100%;flex-grow:1}@media(min-width:1080px){.jp-connection__connect-screen-layout__two-columns .jp-connection__connect-screen-layout__left{flex-basis:52%}}.jp-connection__connect-screen-layout__two-columns .jp-connection__connect-screen-layout__right{background:#f9f9f6;display:none;flex-basis:47%;flex-grow:1}@media(min-width:1080px){.jp-connection__connect-screen-layout__two-columns .jp-connection__connect-screen-layout__right{display:block}}.jp-action-button--button{background:#000}.jp-action-button--button,.jp-action-button--button.components-button{border-radius:4px;display:block;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:14px;font-style:normal;font-weight:600;height:40px;line-height:18px;min-width:264px;text-align:center}.jp-action-button__error{background:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTEyIDIwYTggOCAwIDEgMCAwLTE2IDggOCAwIDAgMCAwIDE2WiIgc3Ryb2tlPSIjRDYzNjM5IiBzdHJva2Utd2lkdGg9IjEuNSIvPjxwYXRoIGQ9Ik0xMyA3aC0ydjZoMlY3Wk0xMyAxNWgtMnYyaDJ2LTJaIiBmaWxsPSIjRDYzNjM5Ii8+PC9zdmc+) no-repeat 0 0;color:var(--jp-red)!important;line-height:25px!important;padding-left:25px}.SWwV4Pw6OZ5vU3PqPXmr{--product-card-shadow:rgb(0 0 0/3%);background-color:var(--jp-white);border:1px solid var(--jp-gray);border-radius:var(--jp-border-radius);box-shadow:0 2px 6px var(--product-card-shadow),0 1px 2px var(--product-card-shadow)}.r7tUofa9Z3A5ziKVR1H7{align-items:center;display:flex}.r7tUofa9Z3A5ziKVR1H7 img{object-fit:cover;width:100%}.hdasSNj9k3Sc5PwXK4uE{margin-right:4px;width:16px}.eWN8Hj0SBRDq1F48n_Fg{--gray-70:#3c434a;align-items:center;color:var(--gray-70);display:flex;font-size:14px;text-decoration:none}.q0T8YyQxRawhpDtvJjxI{background-color:var(--jp-white);height:100%;padding:calc(var(--spacing-base)*8);position:relative}.B7JDqI_vtKxSy5GjvqA1{display:flex;flex-direction:column;height:100%}.zj7xadmhIWeuf7ZwvVTS{align-items:center;background:var(--jp-black);border-radius:var(--jp-border-radius) var(--jp-border-radius) 0 0;color:var(--jp-white);display:flex;height:calc(var(--spacing-base)*4);left:0;padding:0 var(--spacing-base);position:absolute;top:0;width:100%}.GsioW6IsC8EMYE3U6788{fill:var(--jp-white);margin-right:var(--spacing-base)}.cfEO8udWbRGPFJzW8Jg5,.dbz07JqxOlivjKO4vBEF{align-items:center;display:flex;height:calc(var(--spacing-base)*4);margin-bottom:calc(var(--spacing-base)*4)}.zlh3zbjUe4Z8cBs7uVVe{fill:#8c8f94;height:24px;line-height:24px}.qoZuzG5EcDa231hC6t0P{align-items:center;display:flex;justify-content:center}.qoZuzG5EcDa231hC6t0P svg{margin-right:var(--spacing-base)}.Q6uUUQCPWS6_6nLxIn68{display:inline-block;min-height:42px;padding:8px 60px;text-align:center;width:100%}.Q6uUUQCPWS6_6nLxIn68 .YU4iBCRze09ZP3iCsdcb{margin:0}.Q6uUUQCPWS6_6nLxIn68.is-secondary:hover:not(:disabled){background-color:var(--jp-black);color:var(--jp-white)}.Q1jaYDpa2AVfJpA29wT0{flex-grow:1;margin:0;margin-bottom:calc(var(--spacing-base)*2);padding:0}.Q1jaYDpa2AVfJpA29wT0 li{align-items:start;display:flex;list-style:none;margin-bottom:var(--spacing-base)}.Q1jaYDpa2AVfJpA29wT0 svg{fill:var(--jp-green-primary);flex-shrink:0;margin-right:var(--spacing-base)}.xgv3jRkeF39aEQELCwru{align-items:flex-end;color:var(--jp-text-color);display:flex;flex-wrap:wrap}.twlleZ5Ehq4bB7CvKVSW{position:relative}.twlleZ5Ehq4bB7CvKVSW:first-child{margin-right:calc(var(--spacing-base)*2)}.twlleZ5Ehq4bB7CvKVSW.Qg4rPEvXsqmod1s_31d8{color:var(--jp-gray-20)}.twlleZ5Ehq4bB7CvKVSW.Qg4rPEvXsqmod1s_31d8:after{background:var(--jp-red);border-radius:var(--jp-border-radius);content:" ";display:block;height:3px;margin-top:-2px;pointer-events:none;position:absolute;top:50%;width:100%}.ApsgxIornVy_3KnciVeJ{color:var(--jp-gray-40);margin-bottom:calc(var(--spacing-base)*3)}.NMxcZL17aEP7v81uG3zD{margin-top:calc(var(--spacing-base)*5)}.jp-license-activation-screen-controls{background:var(--jp-white);display:flex;flex-direction:column;justify-content:space-between;padding:32px}.jp-license-activation-screen-controls h1{font-size:44px;font-weight:700;line-height:1.4;margin:.67em 0}.jp-license-activation-screen-controls p{font-size:var(--font-body);margin:1em 0}.jp-license-activation-screen-controls label{font-size:var(--font-body);font-weight:600}@media screen and (min-width:780px){.jp-license-activation-screen-controls{padding:64px}}.jp-license-activation-screen-controls .jp-license-activation-screen-controls--license-field label,.jp-license-activation-screen-controls .jp-license-activation-screen-controls--license-field-with-error label{font-size:var(--font-body);font-weight:600}.jp-license-activation-screen-controls .jp-license-activation-screen-controls--license-field input.components-text-control__input,.jp-license-activation-screen-controls .jp-license-activation-screen-controls--license-field-with-error input.components-text-control__input{border-radius:var(--jp-border-radius);font-size:18px;line-height:24px;margin:0;min-height:48px}.jp-license-activation-screen-controls .jp-license-activation-screen-controls--license-field input.components-text-control__input{border:1px solid var(--jp-gray-40)}.jp-license-activation-screen-controls .jp-license-activation-screen-controls--license-field-with-error input.components-text-control__input{border:1px solid var(--jp-red)}.jp-license-activation-screen-controls .jp-license-activation-screen-controls--license-field-error{align-items:start;color:var(--jp-red);display:flex;flex-direction:row}.jp-license-activation-screen-controls .jp-license-activation-screen-controls--license-field-error svg{fill:var(--jp-red);margin-right:4px;min-width:24px}.jp-license-activation-screen-controls .jp-license-activation-screen-controls--license-field-error span{font-size:var(--font-body)}.jp-license-activation-screen-controls .jp-license-activation-screen-controls--button,.jp-license-activation-screen-controls .jp-license-activation-screen-controls--button:active{background-color:var(--jp-black);border-radius:4px;color:var(--jp-white);display:flex;font-size:16px;font-size:var(--font-body);font-style:normal;font-weight:600;justify-content:center;line-height:24px;margin-top:24px;min-height:48px;min-width:158px;padding:13.5px 45px;width:100%}@media screen and (min-width:480px){.jp-license-activation-screen-controls .jp-license-activation-screen-controls--button,.jp-license-activation-screen-controls .jp-license-activation-screen-controls--button:active{width:auto}}.jp-license-activation-screen-controls .jp-license-activation-screen-controls--button:active:hover,.jp-license-activation-screen-controls .jp-license-activation-screen-controls--button:hover{background-color:var(--jp-black-80);color:var(--jp-white)}.jp-license-activation-screen-controls .jp-license-activation-screen-controls--button:active:focus,.jp-license-activation-screen-controls .jp-license-activation-screen-controls--button:focus{background-color:var(--jp-black-80);border:1px solid var(--jp-white);color:var(--jp-white)}.jp-license-activation-screen-controls .jp-license-activation-screen-controls--button:active:disabled,.jp-license-activation-screen-controls .jp-license-activation-screen-controls--button:active[disabled],.jp-license-activation-screen-controls .jp-license-activation-screen-controls--button:disabled,.jp-license-activation-screen-controls .jp-license-activation-screen-controls--button[disabled]{background-color:var(--jp-gray);color:var(--jp-gray-20)}.jp-license-activation-screen-controls .jp-license-activation-screen-controls--button .jp-components-spinner,.jp-license-activation-screen-controls .jp-license-activation-screen-controls--button:active .jp-components-spinner{width:100%}@keyframes rotate-spinner{to{transform:rotate(1turn)}}.jp-components-spinner{align-items:center;display:flex}.jp-components-spinner__inner,.jp-components-spinner__outer{animation:3s linear infinite;animation-name:rotate-spinner;border:.1em solid transparent;border-radius:50%;box-sizing:border-box;margin:auto}.jp-components-spinner__outer{border-top-color:#fff}.jp-components-spinner__inner{border-right-color:#fff;border-top-color:#fff;height:100%;opacity:.4;width:100%}.jp-license-activation-screen-illustration{align-items:center;background:var(--jp-white-off);display:flex;flex-direction:column;justify-content:space-between;padding:32px}.jp-license-activation-screen-illustration--wrapper{display:flex;flex:1}.jp-license-activation-screen-illustration--wrapper img{align-self:center;height:auto;max-width:100%}.jp-license-activation-screen-illustration--support-link{flex:0}.components-button.jp-license-activation-screen-success-info--button,.components-button.jp-license-activation-screen-success-info--button:active,.components-button.jp-license-activation-screen-success-info--button:visited{background-color:var(--jp-black);border-radius:4px;color:var(--jp-white);font-size:16px;font-size:var(--font-body);font-style:normal;font-weight:600;justify-content:center;line-height:24px;margin:0 40px 20px 0;min-height:48px;min-width:158px;padding:13.5px 45px;width:100%}@media screen and (min-width:480px){.components-button.jp-license-activation-screen-success-info--button,.components-button.jp-license-activation-screen-success-info--button:active,.components-button.jp-license-activation-screen-success-info--button:visited{width:auto}}.components-button.jp-license-activation-screen-success-info--button:active:hover,.components-button.jp-license-activation-screen-success-info--button:hover,.components-button.jp-license-activation-screen-success-info--button:visited:hover{background-color:var(--jp-black-80);color:var(--jp-white)}.components-button.jp-license-activation-screen-success-info--button:active:focus,.components-button.jp-license-activation-screen-success-info--button:focus,.components-button.jp-license-activation-screen-success-info--button:visited:focus{background-color:var(--jp-black-80);border:1px solid var(--jp-white);color:var(--jp-white)}.components-button.jp-license-activation-screen-success-info--button:active:disabled,.components-button.jp-license-activation-screen-success-info--button:active[disabled],.components-button.jp-license-activation-screen-success-info--button:disabled,.components-button.jp-license-activation-screen-success-info--button:visited:disabled,.components-button.jp-license-activation-screen-success-info--button:visited[disabled],.components-button.jp-license-activation-screen-success-info--button[disabled]{background-color:var(--jp-gray);color:var(--jp-gray-20)}.components-button.jp-license-activation-screen-success-info--button .jp-components-spinner,.components-button.jp-license-activation-screen-success-info--button:active .jp-components-spinner,.components-button.jp-license-activation-screen-success-info--button:visited .jp-components-spinner{width:100%}.jp-license-activation-screen-success-info--product-details h1{line-height:52px}.jp-license-activation-screen-success-info--product-details a{color:var(--jp-black);text-decoration:underline!important}.jp-license-activation-screen-success-info--external-link{color:var(--jp-black);font-size:16px;font-style:normal;font-weight:600;text-decoration:underline!important;white-space:nowrap}:root{--font-title-large:36px;--font-title-small:24px;--font-body:16px;--font-label:12px;--jp-black:#000;--jp-black-80:#2c3338;--jp-white:#fff;--jp-white-off:#f9f9f6;--jp-gray:#dcdcde;--jp-gray-0:#f6f7f7;--jp-gray-5:#dcdcde;--jp-gray-10:#c3c4c7;--jp-gray-20:#a7aaad;--jp-gray-30:#8c8f94;--jp-gray-40:#787c82;--jp-gray-50:#646970;--jp-gray-60:#50575e;--jp-gray-70:#3c434a;--jp-gray-80:#2c3338;--jp-gray-90:#1d2327;--jp-gray-100:#101517;--jp-gray-off:#e2e2df;--jp-yellow-10:#f2cf75;--jp-red-0:#f7ebec;--jp-red-50:#d63638;--jp-red-60:#b32d2e;--jp-red-80:#8a2424;--jp-red:#d63639;--jp-pink:#c9356e;--jp-green-0:#f0f2eb;--jp-green-5:#d0e6b8;--jp-green-10:#9dd977;--jp-green-20:#64ca43;--jp-green-30:#2fb41f;--jp-green-40:#069e08;--jp-green-50:#008710;--jp-green-60:#007117;--jp-green-70:#005b18;--jp-green-80:#004515;--jp-green-90:#003010;--jp-green-100:#001c09;--jp-green:#069e08;--jp-green-primary:var( --jp-green-40 );--jp-green-secondary:var( --jp-green-30 );--jp-border-radius:4px;--jp-menu-border-height:1px;--jp-underline-thickness:2px}*{box-sizing:border-box}body{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;margin:0;min-height:100%;padding:0}.jp-wrap{align-items:center;display:flex;flex-wrap:wrap;margin:0 auto;max-width:1128px}.jp-row{grid-gap:24px;display:grid;grid-template-columns:repeat(4,1fr);margin:0 16px;width:100%}@media(min-width:600px){.jp-row{grid-template-columns:repeat(8,1fr);margin:0 18px}}@media(min-width:960px){.jp-row{grid-template-columns:repeat(12,1fr);margin:0 24px;max-width:1128px}}.sm-col-span-1{grid-column-end:span 1}.sm-col-span-2{grid-column-end:span 2}.sm-col-span-3{grid-column-end:span 3}.sm-col-span-4{grid-column-end:span 4}@media(min-width:600px){.md-col-span-1{grid-column-end:span 1}.md-col-span-2{grid-column-end:span 2}.md-col-span-3{grid-column-end:span 3}.md-col-span-4{grid-column-end:span 4}.md-col-span-5{grid-column-end:span 5}.md-col-span-6{grid-column-end:span 6}.md-col-span-7{grid-column-end:span 7}.md-col-span-8{grid-column-end:span 8}}@media(min-width:960px){.lg-col-span-1{grid-column-end:span 1}.lg-col-span-2{grid-column-end:span 2}.lg-col-span-3{grid-column-end:span 3}.lg-col-span-4{grid-column-end:span 4}.lg-col-span-5{grid-column-end:span 5}.lg-col-span-6{grid-column-end:span 6}.lg-col-span-7{grid-column-end:span 7}.lg-col-span-8{grid-column-end:span 8}.lg-col-span-9{grid-column-end:span 9}.lg-col-span-10{grid-column-end:span 10}.lg-col-span-11{grid-column-end:span 11}.lg-col-span-12{grid-column-end:span 12}}@media(max-width:960px){.md-col-span-0{display:none}}@media(max-width:600px){.sm-col-span-0{display:none}}.jp-cut{border:2px solid var(--jp-green-primary);border-radius:var(--jp-border-radius);margin:32px 0;padding:16px 64px 16px 24px;position:relative;text-decoration:none}.jp-cut,.jp-cut span{display:block}.jp-cut span:last-of-type{font-weight:600}.jp-cut:focus span:last-of-type,.jp-cut:hover span:last-of-type{text-decoration:underline;text-decoration-thickness:var(--jp-underline-thickness)}.jp-cut:focus:after,.jp-cut:hover:after{transform:translateY(-50%) translateX(8px)}.jp-cut:after{color:var(--jp-green-primary);content:"→";font-size:24px;font-weight:600;position:absolute;right:24px;top:50%;transform:translateY(-50%);transition:transform .15s ease-out}.jp-license-activation-screen-success-info{background:var(--jp-white);display:flex;flex-direction:column;justify-content:space-between;padding:32px}.jp-license-activation-screen-success-info h1{font-size:44px;font-weight:700;line-height:1.4;margin:.67em 0}.jp-license-activation-screen-success-info p{font-size:var(--font-body);margin:1em 0}.jp-license-activation-screen-success-info label{font-size:var(--font-body);font-weight:600}@media screen and (min-width:780px){.jp-license-activation-screen-success-info{padding:64px}}@media screen and (max-width:480px){.jp-license-activation-screen-success-info .jp-license-activation-screen-success-info--buttons{text-align:center}}.jp-license-activation-screen{border-radius:4px;box-shadow:0 4px 24px 0 #00000026;display:flex;flex-direction:column;min-height:540px;overflow:hidden}@media screen and (min-width:780px){.jp-license-activation-screen{flex-direction:row}}
|
jetpack_vendor/automattic/jetpack-my-jetpack/build/index.js
CHANGED
@@ -1,11 +1,11 @@
|
|
1 |
/*! For license information please see index.js.LICENSE.txt */
|
2 |
-
(()=>{var e={4728:(e,t,n)=>{"use strict";n.d(t,{X:()=>i});var r={AED:{symbol:"د.إ.",grouping:",",decimal:".",precision:2},AFN:{symbol:"؋",grouping:",",decimal:".",precision:2},ALL:{symbol:"Lek",grouping:".",decimal:",",precision:2},AMD:{symbol:"֏",grouping:",",decimal:".",precision:2},ANG:{symbol:"ƒ",grouping:",",decimal:".",precision:2},AOA:{symbol:"Kz",grouping:",",decimal:".",precision:2},ARS:{symbol:"$",grouping:".",decimal:",",precision:2},AUD:{symbol:"A$",grouping:",",decimal:".",precision:2},AWG:{symbol:"ƒ",grouping:",",decimal:".",precision:2},AZN:{symbol:"₼",grouping:" ",decimal:",",precision:2},BAM:{symbol:"КМ",grouping:".",decimal:",",precision:2},BBD:{symbol:"Bds$",grouping:",",decimal:".",precision:2},BDT:{symbol:"৳",grouping:",",decimal:".",precision:0},BGN:{symbol:"лв.",grouping:" ",decimal:",",precision:2},BHD:{symbol:"د.ب.",grouping:",",decimal:".",precision:3},BIF:{symbol:"FBu",grouping:",",decimal:".",precision:0},BMD:{symbol:"$",grouping:",",decimal:".",precision:2},BND:{symbol:"$",grouping:".",decimal:",",precision:0},BOB:{symbol:"Bs",grouping:".",decimal:",",precision:2},BRL:{symbol:"R$",grouping:".",decimal:",",precision:2},BSD:{symbol:"$",grouping:",",decimal:".",precision:2},BTC:{symbol:"Ƀ",grouping:",",decimal:".",precision:2},BTN:{symbol:"Nu.",grouping:",",decimal:".",precision:1},BWP:{symbol:"P",grouping:",",decimal:".",precision:2},BYR:{symbol:"р.",grouping:" ",decimal:",",precision:2},BZD:{symbol:"BZ$",grouping:",",decimal:".",precision:2},CAD:{symbol:"C$",grouping:",",decimal:".",precision:2},CDF:{symbol:"FC",grouping:",",decimal:".",precision:2},CHF:{symbol:"CHF",grouping:"'",decimal:".",precision:2},CLP:{symbol:"$",grouping:".",decimal:",",precision:2},CNY:{symbol:"¥",grouping:",",decimal:".",precision:2},COP:{symbol:"$",grouping:".",decimal:",",precision:2},CRC:{symbol:"₡",grouping:".",decimal:",",precision:2},CUC:{symbol:"CUC",grouping:",",decimal:".",precision:2},CUP:{symbol:"$MN",grouping:",",decimal:".",precision:2},CVE:{symbol:"$",grouping:",",decimal:".",precision:2},CZK:{symbol:"Kč",grouping:" ",decimal:",",precision:2},DJF:{symbol:"Fdj",grouping:",",decimal:".",precision:0},DKK:{symbol:"kr.",grouping:"",decimal:",",precision:2},DOP:{symbol:"RD$",grouping:",",decimal:".",precision:2},DZD:{symbol:"د.ج.",grouping:",",decimal:".",precision:2},EGP:{symbol:"ج.م.",grouping:",",decimal:".",precision:2},ERN:{symbol:"Nfk",grouping:",",decimal:".",precision:2},ETB:{symbol:"ETB",grouping:",",decimal:".",precision:2},EUR:{symbol:"€",grouping:".",decimal:",",precision:2},FJD:{symbol:"FJ$",grouping:",",decimal:".",precision:2},FKP:{symbol:"£",grouping:",",decimal:".",precision:2},GBP:{symbol:"£",grouping:",",decimal:".",precision:2},GEL:{symbol:"Lari",grouping:" ",decimal:",",precision:2},GHS:{symbol:"₵",grouping:",",decimal:".",precision:2},GIP:{symbol:"£",grouping:",",decimal:".",precision:2},GMD:{symbol:"D",grouping:",",decimal:".",precision:2},GNF:{symbol:"FG",grouping:",",decimal:".",precision:0},GTQ:{symbol:"Q",grouping:",",decimal:".",precision:2},GYD:{symbol:"G$",grouping:",",decimal:".",precision:2},HKD:{symbol:"HK$",grouping:",",decimal:".",precision:2},HNL:{symbol:"L.",grouping:",",decimal:".",precision:2},HRK:{symbol:"kn",grouping:".",decimal:",",precision:2},HTG:{symbol:"G",grouping:",",decimal:".",precision:2},HUF:{symbol:"Ft",grouping:".",decimal:",",precision:0},IDR:{symbol:"Rp",grouping:".",decimal:",",precision:0},ILS:{symbol:"₪",grouping:",",decimal:".",precision:2},INR:{symbol:"₹",grouping:",",decimal:".",precision:2},IQD:{symbol:"د.ع.",grouping:",",decimal:".",precision:2},IRR:{symbol:"﷼",grouping:",",decimal:"/",precision:2},ISK:{symbol:"kr.",grouping:".",decimal:",",precision:0},JMD:{symbol:"J$",grouping:",",decimal:".",precision:2},JOD:{symbol:"د.ا.",grouping:",",decimal:".",precision:3},JPY:{symbol:"¥",grouping:",",decimal:".",precision:0},KES:{symbol:"S",grouping:",",decimal:".",precision:2},KGS:{symbol:"сом",grouping:" ",decimal:"-",precision:2},KHR:{symbol:"៛",grouping:",",decimal:".",precision:0},KMF:{symbol:"CF",grouping:",",decimal:".",precision:2},KPW:{symbol:"₩",grouping:",",decimal:".",precision:0},KRW:{symbol:"₩",grouping:",",decimal:".",precision:0},KWD:{symbol:"د.ك.",grouping:",",decimal:".",precision:3},KYD:{symbol:"$",grouping:",",decimal:".",precision:2},KZT:{symbol:"₸",grouping:" ",decimal:"-",precision:2},LAK:{symbol:"₭",grouping:",",decimal:".",precision:0},LBP:{symbol:"ل.ل.",grouping:",",decimal:".",precision:2},LKR:{symbol:"₨",grouping:",",decimal:".",precision:0},LRD:{symbol:"L$",grouping:",",decimal:".",precision:2},LSL:{symbol:"M",grouping:",",decimal:".",precision:2},LYD:{symbol:"د.ل.",grouping:",",decimal:".",precision:3},MAD:{symbol:"د.م.",grouping:",",decimal:".",precision:2},MDL:{symbol:"lei",grouping:",",decimal:".",precision:2},MGA:{symbol:"Ar",grouping:",",decimal:".",precision:0},MKD:{symbol:"ден.",grouping:".",decimal:",",precision:2},MMK:{symbol:"K",grouping:",",decimal:".",precision:2},MNT:{symbol:"₮",grouping:" ",decimal:",",precision:2},MOP:{symbol:"MOP$",grouping:",",decimal:".",precision:2},MRO:{symbol:"UM",grouping:",",decimal:".",precision:2},MTL:{symbol:"₤",grouping:",",decimal:".",precision:2},MUR:{symbol:"₨",grouping:",",decimal:".",precision:2},MVR:{symbol:"MVR",grouping:",",decimal:".",precision:1},MWK:{symbol:"MK",grouping:",",decimal:".",precision:2},MXN:{symbol:"MX$",grouping:",",decimal:".",precision:2},MYR:{symbol:"RM",grouping:",",decimal:".",precision:2},MZN:{symbol:"MT",grouping:",",decimal:".",precision:0},NAD:{symbol:"N$",grouping:",",decimal:".",precision:2},NGN:{symbol:"₦",grouping:",",decimal:".",precision:2},NIO:{symbol:"C$",grouping:",",decimal:".",precision:2},NOK:{symbol:"kr",grouping:" ",decimal:",",precision:2},NPR:{symbol:"₨",grouping:",",decimal:".",precision:2},NZD:{symbol:"NZ$",grouping:",",decimal:".",precision:2},OMR:{symbol:"﷼",grouping:",",decimal:".",precision:3},PAB:{symbol:"B/.",grouping:",",decimal:".",precision:2},PEN:{symbol:"S/.",grouping:",",decimal:".",precision:2},PGK:{symbol:"K",grouping:",",decimal:".",precision:2},PHP:{symbol:"₱",grouping:",",decimal:".",precision:2},PKR:{symbol:"₨",grouping:",",decimal:".",precision:2},PLN:{symbol:"zł",grouping:" ",decimal:",",precision:2},PYG:{symbol:"₲",grouping:".",decimal:",",precision:2},QAR:{symbol:"﷼",grouping:",",decimal:".",precision:2},RON:{symbol:"lei",grouping:".",decimal:",",precision:2},RSD:{symbol:"Дин.",grouping:".",decimal:",",precision:2},RUB:{symbol:"₽",grouping:" ",decimal:",",precision:2},RWF:{symbol:"RWF",grouping:" ",decimal:",",precision:2},SAR:{symbol:"﷼",grouping:",",decimal:".",precision:2},SBD:{symbol:"S$",grouping:",",decimal:".",precision:2},SCR:{symbol:"₨",grouping:",",decimal:".",precision:2},SDD:{symbol:"LSd",grouping:",",decimal:".",precision:2},SDG:{symbol:"£",grouping:",",decimal:".",precision:2},SEK:{symbol:"kr",grouping:",",decimal:".",precision:2},SGD:{symbol:"S$",grouping:",",decimal:".",precision:2},SHP:{symbol:"£",grouping:",",decimal:".",precision:2},SLL:{symbol:"Le",grouping:",",decimal:".",precision:2},SOS:{symbol:"S",grouping:",",decimal:".",precision:2},SRD:{symbol:"$",grouping:",",decimal:".",precision:2},STD:{symbol:"Db",grouping:",",decimal:".",precision:2},SVC:{symbol:"₡",grouping:",",decimal:".",precision:2},SYP:{symbol:"£",grouping:",",decimal:".",precision:2},SZL:{symbol:"E",grouping:",",decimal:".",precision:2},THB:{symbol:"฿",grouping:",",decimal:".",precision:2},TJS:{symbol:"TJS",grouping:" ",decimal:";",precision:2},TMT:{symbol:"m",grouping:" ",decimal:",",precision:0},TND:{symbol:"د.ت.",grouping:",",decimal:".",precision:3},TOP:{symbol:"T$",grouping:",",decimal:".",precision:2},TRY:{symbol:"TL",grouping:".",decimal:",",precision:2},TTD:{symbol:"TT$",grouping:",",decimal:".",precision:2},TVD:{symbol:"$T",grouping:",",decimal:".",precision:2},TWD:{symbol:"NT$",grouping:",",decimal:".",precision:2},TZS:{symbol:"TSh",grouping:",",decimal:".",precision:2},UAH:{symbol:"₴",grouping:" ",decimal:",",precision:2},UGX:{symbol:"USh",grouping:",",decimal:".",precision:2},USD:{symbol:"$",grouping:",",decimal:".",precision:2},UYU:{symbol:"$U",grouping:".",decimal:",",precision:2},UZS:{symbol:"сўм",grouping:" ",decimal:",",precision:2},VEB:{symbol:"Bs.",grouping:",",decimal:".",precision:2},VEF:{symbol:"Bs. F.",grouping:".",decimal:",",precision:2},VND:{symbol:"₫",grouping:".",decimal:",",precision:1},VUV:{symbol:"VT",grouping:",",decimal:".",precision:0},WST:{symbol:"WS$",grouping:",",decimal:".",precision:2},XAF:{symbol:"F",grouping:",",decimal:".",precision:2},XCD:{symbol:"$",grouping:",",decimal:".",precision:2},XOF:{symbol:"F",grouping:" ",decimal:",",precision:2},XPF:{symbol:"F",grouping:",",decimal:".",precision:2},YER:{symbol:"﷼",grouping:",",decimal:".",precision:2},ZAR:{symbol:"R",grouping:" ",decimal:",",precision:2},ZMW:{symbol:"ZK",grouping:",",decimal:".",precision:2},WON:{symbol:"₩",grouping:",",decimal:".",precision:2}};function i(e){return r[e]||{symbol:"$",grouping:",",decimal:".",precision:2}}},6078:(e,t,n)=>{"use strict";n.d(t,{LR:()=>c});var r=n(2086),i=n(3807),o=n(4728);function c(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},c=(0,o.X)(t);if(!c||isNaN(e))return null;var s=(0,r.Z)({},c,n),a=s.decimal,l=s.grouping,u=s.precision,p=s.symbol,d=e<0?"-":"",m=Math.abs(e),g=Math.floor(m),h=(0,i.Y4)(g,{decimals:0,thousandsSep:l,decPoint:a}),f=u>0?(0,i.Y4)(m-g,{decimals:u,thousandsSep:l,decPoint:a}).slice(1):"";return{sign:d,symbol:p,integer:h,fraction:f}}},8772:(e,t,n)=>{"use strict";n.d(t,{Z:()=>c});var r=n(9196),i=n(5592);function o(e,t){let n,i,c=[];for(let r=0;r<e.length;r++){const o=e[r];if("string"!==o.type){if(void 0===t[o.value])throw new Error(`Invalid interpolation, missing component node: \`${o.value}\``);if("object"!=typeof t[o.value])throw new Error(`Invalid interpolation, component node must be a ReactElement or null: \`${o.value}\``);if("componentClose"===o.type)throw new Error(`Missing opening component token: \`${o.value}\``);if("componentOpen"===o.type){n=t[o.value],i=r;break}c.push(t[o.value])}else c.push(o.value)}if(n){const s=function(e,t){const n=t[e];let r=0;for(let i=e+1;i<t.length;i++){const e=t[i];if(e.value===n.value){if("componentOpen"===e.type){r++;continue}if("componentClose"===e.type){if(0===r)return i;r--}}}throw new Error("Missing closing component token `"+n.value+"`")}(i,e),a=o(e.slice(i+1,s),t),l=(0,r.cloneElement)(n,{},a);if(c.push(l),s<e.length-1){const n=o(e.slice(s+1),t);c=c.concat(n)}}return c=c.filter(Boolean),0===c.length?null:1===c.length?c[0]:(0,r.createElement)(r.Fragment,null,...c)}function c(e){const{mixedString:t,components:n,throwErrors:r}=e;if(!n)return t;if("object"!=typeof n){if(r)throw new Error(`Interpolation Error: unable to process \`${t}\` because components is not an object`);return t}const c=(0,i.Z)(t);try{return o(c,n)}catch(e){if(r)throw new Error(`Interpolation Error: unable to process \`${t}\` because of error \`${e.message}\``);return t}}},5592:(e,t,n)=>{"use strict";function r(e){return e.startsWith("{{/")?{type:"componentClose",value:e.replace(/\W/g,"")}:e.endsWith("/}}")?{type:"componentSelfClosing",value:e.replace(/\W/g,"")}:e.startsWith("{{")?{type:"componentOpen",value:e.replace(/\W/g,"")}:{type:"string",value:e}}function i(e){return e.split(/(\{\{\/?\s*\w+\s*\/?\}\})/g).map(r)}n.d(t,{Z:()=>i})},4502:e=>{e.exports=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},e.exports.__esModule=!0,e.exports.default=e.exports},236:e=>{function t(){return e.exports=t=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},e.exports.__esModule=!0,e.exports.default=e.exports,t.apply(this,arguments)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},8172:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(1354),i=n(4803);function o(e){var t=(0,r.Z)(e);return function(e){return(0,i.Z)(t,e)}}},4803:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r={"!":function(e){return!e},"*":function(e,t){return e*t},"/":function(e,t){return e/t},"%":function(e,t){return e%t},"+":function(e,t){return e+t},"-":function(e,t){return e-t},"<":function(e,t){return e<t},"<=":function(e,t){return e<=t},">":function(e,t){return e>t},">=":function(e,t){return e>=t},"==":function(e,t){return e===t},"!=":function(e,t){return e!==t},"&&":function(e,t){return e&&t},"||":function(e,t){return e||t},"?:":function(e,t,n){if(e)throw t;return n}};function i(e,t){var n,i,o,c,s,a,l=[];for(n=0;n<e.length;n++){if(s=e[n],c=r[s]){for(i=c.length,o=Array(i);i--;)o[i]=l.pop();try{a=c.apply(null,o)}catch(e){return e}}else a=t.hasOwnProperty(s)?t[s]:+s;l.push(a)}return l[0]}},7478:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(8172);function i(e){var t=(0,r.Z)(e);return function(e){return+t({n:e})}}},1354:(e,t,n)=>{"use strict";var r,i,o,c;function s(e){for(var t,n,s,a,l=[],u=[];t=e.match(c);){for(n=t[0],(s=e.substr(0,t.index).trim())&&l.push(s);a=u.pop();){if(o[n]){if(o[n][0]===a){n=o[n][1]||n;break}}else if(i.indexOf(a)>=0||r[a]<r[n]){u.push(a);break}l.push(a)}o[n]||u.push(n),e=e.substr(t.index+n.length)}return(e=e.trim())&&l.push(e),l.concat(u.reverse())}n.d(t,{Z:()=>s}),r={"(":9,"!":8,"*":7,"/":7,"%":7,"+":6,"-":6,"<":5,"<=":5,">":5,">=":5,"==":4,"!=":4,"&&":3,"||":2,"?":1,"?:":1},i=["(","?"],o={")":["("],":":["?","?:"]},c=/<=|>=|==|!=|&&|\|\||\?:|\(|!|\*|\/|%|\+|-|<|>|\?|\)|:/},702:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=/%(((\d+)\$)|(\(([$_a-zA-Z][$_a-zA-Z0-9]*)\)))?[ +0#-]*\d*(\.(\d+|\*))?(ll|[lhqL])?([cduxXefgsp%])/g;function i(e,t){var n;if(!Array.isArray(t))for(t=new Array(arguments.length-1),n=1;n<arguments.length;n++)t[n-1]=arguments[n];return n=1,e.replace(r,(function(){var e,r,i,o,c;return e=arguments[3],r=arguments[5],"%"===(o=arguments[9])?"%":("*"===(i=arguments[7])&&(i=t[n-1],n++),void 0!==r?t[0]&&"object"==typeof t[0]&&t[0].hasOwnProperty(r)&&(c=t[0][r]):(void 0===e&&(e=n),n++,c=t[e-1]),"f"===o?c=parseFloat(c)||0:"d"===o&&(c=parseInt(c)||0),void 0!==i&&("f"===o?c=c.toFixed(i):"s"===o&&(c=c.substr(0,i))),null!=c?c:"")}))}},6502:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(9307);const i=function(e){let{icon:t,size:n=24,...i}=e;return(0,r.cloneElement)(t,{width:n,height:n,...i})}},2972:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(9307),i=n(444);const o=(0,r.createElement)(i.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,r.createElement)(i.Path,{d:"M20 10.8H6.7l4.1-4.5-1.1-1.1-5.8 6.3 5.8 5.8 1.1-1.1-4-3.9H20z"}))},7104:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(9307),i=n(444);const o=(0,r.createElement)(i.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,r.createElement)(i.Path,{d:"M16.7 7.1l-6.3 8.5-3.3-2.5-.9 1.2 4.5 3.4L17.9 8z"}))},9417:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(9307),i=n(444);const o=(0,r.createElement)(i.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,r.createElement)(i.Path,{d:"M13 11.8l6.1-6.3-1-1-6.1 6.2-6.1-6.2-1 1 6.1 6.3-6.5 6.7 1 1 6.5-6.6 6.5 6.6 1-1z"}))},1455:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(9307),i=n(444);const o=(0,r.createElement)(i.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,r.createElement)(i.Path,{d:"M18.2 17c0 .7-.6 1.2-1.2 1.2H7c-.7 0-1.2-.6-1.2-1.2V7c0-.7.6-1.2 1.2-1.2h3.2V4.2H7C5.5 4.2 4.2 5.5 4.2 7v10c0 1.5 1.2 2.8 2.8 2.8h10c1.5 0 2.8-1.2 2.8-2.8v-3.6h-1.5V17zM14.9 3v1.5h3.7l-6.4 6.4 1.1 1.1 6.4-6.4v3.7h1.5V3h-6.3z"}))},6338:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(9307),i=n(444);const o=(0,r.createElement)(i.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,r.createElement)(i.Path,{d:"M12 3.2c-4.8 0-8.8 3.9-8.8 8.8 0 4.8 3.9 8.8 8.8 8.8 4.8 0 8.8-3.9 8.8-8.8 0-4.8-4-8.8-8.8-8.8zm0 16c-4 0-7.2-3.3-7.2-7.2C4.8 8 8 4.8 12 4.8s7.2 3.3 7.2 7.2c0 4-3.2 7.2-7.2 7.2zM11 17h2v-6h-2v6zm0-8h2V7h-2v2z"}))},6184:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(9307),i=n(444);const o=(0,r.createElement)(i.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,r.createElement)(i.Path,{d:"M18 11.2h-5.2V6h-1.6v5.2H6v1.6h5.2V18h1.6v-5.2H18z"}))},483:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(9307),i=n(444);const o=(0,r.createElement)(i.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},(0,r.createElement)(i.Path,{d:"M10 2c4.42 0 8 3.58 8 8s-3.58 8-8 8-8-3.58-8-8 3.58-8 8-8zm1.13 9.38l.35-6.46H8.52l.35 6.46h2.26zm-.09 3.36c.24-.23.37-.55.37-.96 0-.42-.12-.74-.36-.97s-.59-.35-1.06-.35-.82.12-1.07.35-.37.55-.37.97c0 .41.13.73.38.96.26.23.61.34 1.06.34s.8-.11 1.05-.34z"}))},9105:(e,t)=>{var n;!function(){"use strict";var r={}.hasOwnProperty;function i(){for(var e=[],t=0;t<arguments.length;t++){var n=arguments[t];if(n){var o=typeof n;if("string"===o||"number"===o)e.push(n);else if(Array.isArray(n)){if(n.length){var c=i.apply(null,n);c&&e.push(c)}}else if("object"===o)if(n.toString===Object.prototype.toString)for(var s in n)r.call(n,s)&&n[s]&&e.push(s);else e.push(n.toString())}}return e.join(" ")}e.exports?(i.default=i,e.exports=i):void 0===(n=function(){return i}.apply(t,[]))||(e.exports=n)}()},9667:(e,t,n)=>{t.formatArgs=function(t){if(t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),!this.useColors)return;const n="color: "+this.color;t.splice(1,0,n,"color: inherit");let r=0,i=0;t[0].replace(/%[a-zA-Z%]/g,(e=>{"%%"!==e&&(r++,"%c"===e&&(i=r))})),t.splice(i,0,n)},t.save=function(e){try{e?t.storage.setItem("debug",e):t.storage.removeItem("debug")}catch(e){}},t.load=function(){let e;try{e=t.storage.getItem("debug")}catch(e){}!e&&"undefined"!=typeof process&&"env"in process&&(e=process.env.DEBUG);return e},t.useColors=function(){if("undefined"!=typeof window&&window.process&&("renderer"===window.process.type||window.process.__nwjs))return!0;if("undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;return"undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)},t.storage=function(){try{return localStorage}catch(e){}}(),t.destroy=(()=>{let e=!1;return()=>{e||(e=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})(),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],t.log=console.debug||console.log||(()=>{}),e.exports=n(342)(t);const{formatters:r}=e.exports;r.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}},342:(e,t,n)=>{e.exports=function(e){function t(e){let n,i,o,c=null;function s(...e){if(!s.enabled)return;const r=s,i=Number(new Date),o=i-(n||i);r.diff=o,r.prev=n,r.curr=i,n=i,e[0]=t.coerce(e[0]),"string"!=typeof e[0]&&e.unshift("%O");let c=0;e[0]=e[0].replace(/%([a-zA-Z%])/g,((n,i)=>{if("%%"===n)return"%";c++;const o=t.formatters[i];if("function"==typeof o){const t=e[c];n=o.call(r,t),e.splice(c,1),c--}return n})),t.formatArgs.call(r,e);(r.log||t.log).apply(r,e)}return s.namespace=e,s.useColors=t.useColors(),s.color=t.selectColor(e),s.extend=r,s.destroy=t.destroy,Object.defineProperty(s,"enabled",{enumerable:!0,configurable:!1,get:()=>null!==c?c:(i!==t.namespaces&&(i=t.namespaces,o=t.enabled(e)),o),set:e=>{c=e}}),"function"==typeof t.init&&t.init(s),s}function r(e,n){const r=t(this.namespace+(void 0===n?":":n)+e);return r.log=this.log,r}function i(e){return e.toString().substring(2,e.toString().length-2).replace(/\.\*\?$/,"*")}return t.debug=t,t.default=t,t.coerce=function(e){if(e instanceof Error)return e.stack||e.message;return e},t.disable=function(){const e=[...t.names.map(i),...t.skips.map(i).map((e=>"-"+e))].join(",");return t.enable(""),e},t.enable=function(e){let n;t.save(e),t.namespaces=e,t.names=[],t.skips=[];const r=("string"==typeof e?e:"").split(/[\s,]+/),i=r.length;for(n=0;n<i;n++)r[n]&&("-"===(e=r[n].replace(/\*/g,".*?"))[0]?t.skips.push(new RegExp("^"+e.substr(1)+"$")):t.names.push(new RegExp("^"+e+"$")))},t.enabled=function(e){if("*"===e[e.length-1])return!0;let n,r;for(n=0,r=t.skips.length;n<r;n++)if(t.skips[n].test(e))return!1;for(n=0,r=t.names.length;n<r;n++)if(t.names[n].test(e))return!0;return!1},t.humanize=n(2002),t.destroy=function(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")},Object.keys(e).forEach((n=>{t[n]=e[n]})),t.names=[],t.skips=[],t.formatters={},t.selectColor=function(e){let n=0;for(let t=0;t<e.length;t++)n=(n<<5)-n+e.charCodeAt(t),n|=0;return t.colors[Math.abs(n)%t.colors.length]},t.enable(t.load()),t}},2571:e=>{"use strict";var t,n="object"==typeof Reflect?Reflect:null,r=n&&"function"==typeof n.apply?n.apply:function(e,t,n){return Function.prototype.apply.call(e,t,n)};t=n&&"function"==typeof n.ownKeys?n.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var i=Number.isNaN||function(e){return e!=e};function o(){o.init.call(this)}e.exports=o,e.exports.once=function(e,t){return new Promise((function(n,r){function i(n){e.removeListener(t,o),r(n)}function o(){"function"==typeof e.removeListener&&e.removeListener("error",i),n([].slice.call(arguments))}h(e,t,o,{once:!0}),"error"!==t&&function(e,t,n){"function"==typeof e.on&&h(e,"error",t,n)}(e,i,{once:!0})}))},o.EventEmitter=o,o.prototype._events=void 0,o.prototype._eventsCount=0,o.prototype._maxListeners=void 0;var c=10;function s(e){if("function"!=typeof e)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function a(e){return void 0===e._maxListeners?o.defaultMaxListeners:e._maxListeners}function l(e,t,n,r){var i,o,c,l;if(s(n),void 0===(o=e._events)?(o=e._events=Object.create(null),e._eventsCount=0):(void 0!==o.newListener&&(e.emit("newListener",t,n.listener?n.listener:n),o=e._events),c=o[t]),void 0===c)c=o[t]=n,++e._eventsCount;else if("function"==typeof c?c=o[t]=r?[n,c]:[c,n]:r?c.unshift(n):c.push(n),(i=a(e))>0&&c.length>i&&!c.warned){c.warned=!0;var u=new Error("Possible EventEmitter memory leak detected. "+c.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");u.name="MaxListenersExceededWarning",u.emitter=e,u.type=t,u.count=c.length,l=u,console&&console.warn&&console.warn(l)}return e}function u(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function p(e,t,n){var r={fired:!1,wrapFn:void 0,target:e,type:t,listener:n},i=u.bind(r);return i.listener=n,r.wrapFn=i,i}function d(e,t,n){var r=e._events;if(void 0===r)return[];var i=r[t];return void 0===i?[]:"function"==typeof i?n?[i.listener||i]:[i]:n?function(e){for(var t=new Array(e.length),n=0;n<t.length;++n)t[n]=e[n].listener||e[n];return t}(i):g(i,i.length)}function m(e){var t=this._events;if(void 0!==t){var n=t[e];if("function"==typeof n)return 1;if(void 0!==n)return n.length}return 0}function g(e,t){for(var n=new Array(t),r=0;r<t;++r)n[r]=e[r];return n}function h(e,t,n,r){if("function"==typeof e.on)r.once?e.once(t,n):e.on(t,n);else{if("function"!=typeof e.addEventListener)throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof e);e.addEventListener(t,(function i(o){r.once&&e.removeEventListener(t,i),n(o)}))}}Object.defineProperty(o,"defaultMaxListeners",{enumerable:!0,get:function(){return c},set:function(e){if("number"!=typeof e||e<0||i(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");c=e}}),o.init=function(){void 0!==this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},o.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||i(e))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+e+".");return this._maxListeners=e,this},o.prototype.getMaxListeners=function(){return a(this)},o.prototype.emit=function(e){for(var t=[],n=1;n<arguments.length;n++)t.push(arguments[n]);var i="error"===e,o=this._events;if(void 0!==o)i=i&&void 0===o.error;else if(!i)return!1;if(i){var c;if(t.length>0&&(c=t[0]),c instanceof Error)throw c;var s=new Error("Unhandled error."+(c?" ("+c.message+")":""));throw s.context=c,s}var a=o[e];if(void 0===a)return!1;if("function"==typeof a)r(a,this,t);else{var l=a.length,u=g(a,l);for(n=0;n<l;++n)r(u[n],this,t)}return!0},o.prototype.addListener=function(e,t){return l(this,e,t,!1)},o.prototype.on=o.prototype.addListener,o.prototype.prependListener=function(e,t){return l(this,e,t,!0)},o.prototype.once=function(e,t){return s(t),this.on(e,p(this,e,t)),this},o.prototype.prependOnceListener=function(e,t){return s(t),this.prependListener(e,p(this,e,t)),this},o.prototype.removeListener=function(e,t){var n,r,i,o,c;if(s(t),void 0===(r=this._events))return this;if(void 0===(n=r[e]))return this;if(n===t||n.listener===t)0==--this._eventsCount?this._events=Object.create(null):(delete r[e],r.removeListener&&this.emit("removeListener",e,n.listener||t));else if("function"!=typeof n){for(i=-1,o=n.length-1;o>=0;o--)if(n[o]===t||n[o].listener===t){c=n[o].listener,i=o;break}if(i<0)return this;0===i?n.shift():function(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}(n,i),1===n.length&&(r[e]=n[0]),void 0!==r.removeListener&&this.emit("removeListener",e,c||t)}return this},o.prototype.off=o.prototype.removeListener,o.prototype.removeAllListeners=function(e){var t,n,r;if(void 0===(n=this._events))return this;if(void 0===n.removeListener)return 0===arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==n[e]&&(0==--this._eventsCount?this._events=Object.create(null):delete n[e]),this;if(0===arguments.length){var i,o=Object.keys(n);for(r=0;r<o.length;++r)"removeListener"!==(i=o[r])&&this.removeAllListeners(i);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if("function"==typeof(t=n[e]))this.removeListener(e,t);else if(void 0!==t)for(r=t.length-1;r>=0;r--)this.removeListener(e,t[r]);return this},o.prototype.listeners=function(e){return d(this,e,!0)},o.prototype.rawListeners=function(e){return d(this,e,!1)},o.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):m.call(e,t)},o.prototype.listenerCount=m,o.prototype.eventNames=function(){return this._eventsCount>0?t(this._events):[]}},5949:(e,t,n)=>{"use strict";var r=n(3566),i=n(8282);function o(){this.pending=null,this.pendingTotal=0,this.blockSize=this.constructor.blockSize,this.outSize=this.constructor.outSize,this.hmacStrength=this.constructor.hmacStrength,this.padLength=this.constructor.padLength/8,this.endian="big",this._delta8=this.blockSize/8,this._delta32=this.blockSize/32}t.BlockHash=o,o.prototype.update=function(e,t){if(e=r.toArray(e,t),this.pending?this.pending=this.pending.concat(e):this.pending=e,this.pendingTotal+=e.length,this.pending.length>=this._delta8){var n=(e=this.pending).length%this._delta8;this.pending=e.slice(e.length-n,e.length),0===this.pending.length&&(this.pending=null),e=r.join32(e,0,e.length-n,this.endian);for(var i=0;i<e.length;i+=this._delta32)this._update(e,i,i+this._delta32)}return this},o.prototype.digest=function(e){return this.update(this._pad()),i(null===this.pending),this._digest(e)},o.prototype._pad=function(){var e=this.pendingTotal,t=this._delta8,n=t-(e+this.padLength)%t,r=new Array(n+this.padLength);r[0]=128;for(var i=1;i<n;i++)r[i]=0;if(e<<=3,"big"===this.endian){for(var o=8;o<this.padLength;o++)r[i++]=0;r[i++]=0,r[i++]=0,r[i++]=0,r[i++]=0,r[i++]=e>>>24&255,r[i++]=e>>>16&255,r[i++]=e>>>8&255,r[i++]=255&e}else for(r[i++]=255&e,r[i++]=e>>>8&255,r[i++]=e>>>16&255,r[i++]=e>>>24&255,r[i++]=0,r[i++]=0,r[i++]=0,r[i++]=0,o=8;o<this.padLength;o++)r[i++]=0;return r}},9016:(e,t,n)=>{"use strict";var r=n(3566),i=n(5949),o=n(7574),c=r.rotl32,s=r.sum32,a=r.sum32_5,l=o.ft_1,u=i.BlockHash,p=[1518500249,1859775393,2400959708,3395469782];function d(){if(!(this instanceof d))return new d;u.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.W=new Array(80)}r.inherits(d,u),e.exports=d,d.blockSize=512,d.outSize=160,d.hmacStrength=80,d.padLength=64,d.prototype._update=function(e,t){for(var n=this.W,r=0;r<16;r++)n[r]=e[t+r];for(;r<n.length;r++)n[r]=c(n[r-3]^n[r-8]^n[r-14]^n[r-16],1);var i=this.h[0],o=this.h[1],u=this.h[2],d=this.h[3],m=this.h[4];for(r=0;r<n.length;r++){var g=~~(r/20),h=a(c(i,5),l(g,o,u,d),m,n[r],p[g]);m=d,d=u,u=c(o,30),o=i,i=h}this.h[0]=s(this.h[0],i),this.h[1]=s(this.h[1],o),this.h[2]=s(this.h[2],u),this.h[3]=s(this.h[3],d),this.h[4]=s(this.h[4],m)},d.prototype._digest=function(e){return"hex"===e?r.toHex32(this.h,"big"):r.split32(this.h,"big")}},7574:(e,t,n)=>{"use strict";var r=n(3566).rotr32;function i(e,t,n){return e&t^~e&n}function o(e,t,n){return e&t^e&n^t&n}function c(e,t,n){return e^t^n}t.ft_1=function(e,t,n,r){return 0===e?i(t,n,r):1===e||3===e?c(t,n,r):2===e?o(t,n,r):void 0},t.ch32=i,t.maj32=o,t.p32=c,t.s0_256=function(e){return r(e,2)^r(e,13)^r(e,22)},t.s1_256=function(e){return r(e,6)^r(e,11)^r(e,25)},t.g0_256=function(e){return r(e,7)^r(e,18)^e>>>3},t.g1_256=function(e){return r(e,17)^r(e,19)^e>>>10}},3566:(e,t,n)=>{"use strict";var r=n(8282),i=n(9503);function o(e,t){return 55296==(64512&e.charCodeAt(t))&&(!(t<0||t+1>=e.length)&&56320==(64512&e.charCodeAt(t+1)))}function c(e){return(e>>>24|e>>>8&65280|e<<8&16711680|(255&e)<<24)>>>0}function s(e){return 1===e.length?"0"+e:e}function a(e){return 7===e.length?"0"+e:6===e.length?"00"+e:5===e.length?"000"+e:4===e.length?"0000"+e:3===e.length?"00000"+e:2===e.length?"000000"+e:1===e.length?"0000000"+e:e}t.inherits=i,t.toArray=function(e,t){if(Array.isArray(e))return e.slice();if(!e)return[];var n=[];if("string"==typeof e)if(t){if("hex"===t)for((e=e.replace(/[^a-z0-9]+/gi,"")).length%2!=0&&(e="0"+e),i=0;i<e.length;i+=2)n.push(parseInt(e[i]+e[i+1],16))}else for(var r=0,i=0;i<e.length;i++){var c=e.charCodeAt(i);c<128?n[r++]=c:c<2048?(n[r++]=c>>6|192,n[r++]=63&c|128):o(e,i)?(c=65536+((1023&c)<<10)+(1023&e.charCodeAt(++i)),n[r++]=c>>18|240,n[r++]=c>>12&63|128,n[r++]=c>>6&63|128,n[r++]=63&c|128):(n[r++]=c>>12|224,n[r++]=c>>6&63|128,n[r++]=63&c|128)}else for(i=0;i<e.length;i++)n[i]=0|e[i];return n},t.toHex=function(e){for(var t="",n=0;n<e.length;n++)t+=s(e[n].toString(16));return t},t.htonl=c,t.toHex32=function(e,t){for(var n="",r=0;r<e.length;r++){var i=e[r];"little"===t&&(i=c(i)),n+=a(i.toString(16))}return n},t.zero2=s,t.zero8=a,t.join32=function(e,t,n,i){var o=n-t;r(o%4==0);for(var c=new Array(o/4),s=0,a=t;s<c.length;s++,a+=4){var l;l="big"===i?e[a]<<24|e[a+1]<<16|e[a+2]<<8|e[a+3]:e[a+3]<<24|e[a+2]<<16|e[a+1]<<8|e[a],c[s]=l>>>0}return c},t.split32=function(e,t){for(var n=new Array(4*e.length),r=0,i=0;r<e.length;r++,i+=4){var o=e[r];"big"===t?(n[i]=o>>>24,n[i+1]=o>>>16&255,n[i+2]=o>>>8&255,n[i+3]=255&o):(n[i+3]=o>>>24,n[i+2]=o>>>16&255,n[i+1]=o>>>8&255,n[i]=255&o)}return n},t.rotr32=function(e,t){return e>>>t|e<<32-t},t.rotl32=function(e,t){return e<<t|e>>>32-t},t.sum32=function(e,t){return e+t>>>0},t.sum32_3=function(e,t,n){return e+t+n>>>0},t.sum32_4=function(e,t,n,r){return e+t+n+r>>>0},t.sum32_5=function(e,t,n,r,i){return e+t+n+r+i>>>0},t.sum64=function(e,t,n,r){var i=e[t],o=r+e[t+1]>>>0,c=(o<r?1:0)+n+i;e[t]=c>>>0,e[t+1]=o},t.sum64_hi=function(e,t,n,r){return(t+r>>>0<t?1:0)+e+n>>>0},t.sum64_lo=function(e,t,n,r){return t+r>>>0},t.sum64_4_hi=function(e,t,n,r,i,o,c,s){var a=0,l=t;return a+=(l=l+r>>>0)<t?1:0,a+=(l=l+o>>>0)<o?1:0,e+n+i+c+(a+=(l=l+s>>>0)<s?1:0)>>>0},t.sum64_4_lo=function(e,t,n,r,i,o,c,s){return t+r+o+s>>>0},t.sum64_5_hi=function(e,t,n,r,i,o,c,s,a,l){var u=0,p=t;return u+=(p=p+r>>>0)<t?1:0,u+=(p=p+o>>>0)<o?1:0,u+=(p=p+s>>>0)<s?1:0,e+n+i+c+a+(u+=(p=p+l>>>0)<l?1:0)>>>0},t.sum64_5_lo=function(e,t,n,r,i,o,c,s,a,l){return t+r+o+s+l>>>0},t.rotr64_hi=function(e,t,n){return(t<<32-n|e>>>n)>>>0},t.rotr64_lo=function(e,t,n){return(e<<32-n|t>>>n)>>>0},t.shr64_hi=function(e,t,n){return e>>>n},t.shr64_lo=function(e,t,n){return(e<<32-n|t>>>n)>>>0}},5993:(e,t,n)=>{"use strict";n.d(t,{aU:()=>r,q_:()=>a,Ep:()=>d,cP:()=>m});var r,i=n(5332);!function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"}(r||(r={}));var o=function(e){return e};var c="beforeunload",s="popstate";function a(e){void 0===e&&(e={});var t=e.window,n=void 0===t?document.defaultView:t,a=n.history;function g(){var e=m(n.location.hash.substr(1)),t=e.pathname,r=void 0===t?"/":t,i=e.search,c=void 0===i?"":i,s=e.hash,l=void 0===s?"":s,u=a.state||{};return[u.idx,o({pathname:r,search:c,hash:l,state:u.usr||null,key:u.key||"default"})]}var h=null;function f(){if(h)_.call(h),h=null;else{var e=r.Pop,t=g(),n=t[0],i=t[1];if(_.length){if(null!=n){var o=b-n;o&&(h={action:e,location:i,retry:function(){P(-1*o)}},P(o))}}else S(e)}}n.addEventListener(s,f),n.addEventListener("hashchange",(function(){d(g()[1])!==d(k)&&f()}));var y=r.Pop,v=g(),b=v[0],k=v[1],E=u(),_=u();function j(e){return function(){var e=document.querySelector("base"),t="";if(e&&e.getAttribute("href")){var r=n.location.href,i=r.indexOf("#");t=-1===i?r:r.slice(0,i)}return t}()+"#"+("string"==typeof e?e:d(e))}function w(e,t){return void 0===t&&(t=null),o((0,i.Z)({pathname:k.pathname,hash:"",search:""},"string"==typeof e?m(e):e,{state:t,key:p()}))}function C(e,t){return[{usr:e.state,key:e.key,idx:t},j(e)]}function Z(e,t,n){return!_.length||(_.call({action:e,location:t,retry:n}),!1)}function S(e){y=e;var t=g();b=t[0],k=t[1],E.call({action:y,location:k})}function P(e){a.go(e)}null==b&&(b=0,a.replaceState((0,i.Z)({},a.state,{idx:b}),""));var N={get action(){return y},get location(){return k},createHref:j,push:function e(t,i){var o=r.Push,c=w(t,i);if(Z(o,c,(function(){e(t,i)}))){var s=C(c,b+1),l=s[0],u=s[1];try{a.pushState(l,"",u)}catch(e){n.location.assign(u)}S(o)}},replace:function e(t,n){var i=r.Replace,o=w(t,n);if(Z(i,o,(function(){e(t,n)}))){var c=C(o,b),s=c[0],l=c[1];a.replaceState(s,"",l),S(i)}},go:P,back:function(){P(-1)},forward:function(){P(1)},listen:function(e){return E.push(e)},block:function(e){var t=_.push(e);return 1===_.length&&n.addEventListener(c,l),function(){t(),_.length||n.removeEventListener(c,l)}}};return N}function l(e){e.preventDefault(),e.returnValue=""}function u(){var e=[];return{get length(){return e.length},push:function(t){return e.push(t),function(){e=e.filter((function(e){return e!==t}))}},call:function(t){e.forEach((function(e){return e&&e(t)}))}}}function p(){return Math.random().toString(36).substr(2,8)}function d(e){var t=e.pathname,n=void 0===t?"/":t,r=e.search,i=void 0===r?"":r,o=e.hash,c=void 0===o?"":o;return i&&"?"!==i&&(n+="?"===i.charAt(0)?i:"?"+i),c&&"#"!==c&&(n+="#"===c.charAt(0)?c:"#"+c),n}function m(e){var t={};if(e){var n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));var r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}},8617:(e,t,n)=>{"use strict";n.d(t,{Z:()=>P});var r=n(7810),i=n(1285),o=n(9667),c=n.n(o),s=n(8772),a=n(8090),l=n(5565),u=n.n(l),p=n(9016),d=n.n(p),m=n(2571),g=n(702),h=n(2846),f=c()("i18n-calypso"),y="number_format_decimals",v="number_format_thousands_sep",b="messages",k=[function(e){return e}],E={};function _(){S.throwErrors&&"undefined"!=typeof window&&window.console&&window.console.warn&&window.console.warn.apply(window.console,arguments)}function j(e){return Array.prototype.slice.call(e)}function w(e){var t=e[0];("string"!=typeof t||e.length>3||e.length>2&&"object"==typeof e[1]&&"object"==typeof e[2])&&_("Deprecated Invocation: `translate()` accepts ( string, [string], [object] ). These arguments passed:",j(e),". See https://github.com/Automattic/i18n-calypso#translate-method"),2===e.length&&"string"==typeof t&&"string"==typeof e[1]&&_("Invalid Invocation: `translate()` requires an options object for plural translations, but passed:",j(e));for(var n={},r=0;r<e.length;r++)"object"==typeof e[r]&&(n=e[r]);if("string"==typeof t?n.original=t:"object"==typeof n.original&&(n.plural=n.original.plural,n.count=n.original.count,n.original=n.original.single),"string"==typeof e[1]&&(n.plural=e[1]),void 0===n.original)throw new Error("Translate called without a `string` value as first argument.");return n}function C(e,t){return e.dcnpgettext(b,t.context,t.original,t.plural,t.count)}function Z(e,t){for(var n=k.length-1;n>=0;n--){var r=k[n](Object.assign({},t)),i=r.context?r.context+""+r.original:r.original;if(e.state.locale[i])return C(e.state.tannin,r)}return null}function S(){if(!(this instanceof S))return new S;this.defaultLocaleSlug="en",this.defaultPluralForms=function(e){return 1===e?0:1},this.state={numberFormatSettings:{},tannin:void 0,locale:void 0,localeSlug:void 0,textDirection:void 0,translations:u()({max:100})},this.componentUpdateHooks=[],this.translateHooks=[],this.stateObserver=new m.EventEmitter,this.stateObserver.setMaxListeners(0),this.configure()}S.throwErrors=!1,S.prototype.on=function(){var e;(e=this.stateObserver).on.apply(e,arguments)},S.prototype.off=function(){var e;(e=this.stateObserver).off.apply(e,arguments)},S.prototype.emit=function(){var e;(e=this.stateObserver).emit.apply(e,arguments)},S.prototype.numberFormat=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n="number"==typeof t?t:t.decimals||0,r=t.decPoint||this.state.numberFormatSettings.decimal_point||".",i=t.thousandsSep||this.state.numberFormatSettings.thousands_sep||",";return(0,h.Z)(e,n,r,i)},S.prototype.configure=function(e){Object.assign(this,e||{}),this.setLocale()},S.prototype.setLocale=function(e){var t,n,r;if(e&&e[""]&&e[""]["key-hash"]){var o=e[""]["key-hash"],c=function(e,t){var n=!1===t?"":String(t);if(void 0!==E[n+e])return E[n+e];var r=d()().update(e).digest("hex");return E[n+e]=t?r.substr(0,t):r},s=function(e){return function(t){return t.context?(t.original=c(t.context+String.fromCharCode(4)+t.original,e),delete t.context):t.original=c(t.original,e),t}};if("sha1"===o.substr(0,4))if(4===o.length)k.push(s(!1));else{var l=o.substr(5).indexOf("-");if(l<0){var u=Number(o.substr(5));k.push(s(u))}else for(var p=Number(o.substr(5,l)),m=Number(o.substr(6+l)),g=p;g<=m;g++)k.push(s(g))}}if(e&&e[""].localeSlug)if(e[""].localeSlug===this.state.localeSlug){if(e===this.state.locale)return;Object.assign(this.state.locale,e)}else this.state.locale=Object.assign({},e);else this.state.locale={"":{localeSlug:this.defaultLocaleSlug,plural_forms:this.defaultPluralForms}};this.state.localeSlug=this.state.locale[""].localeSlug,this.state.textDirection=(null===(t=this.state.locale["text directionltr"])||void 0===t?void 0:t[0])||(null===(n=this.state.locale[""])||void 0===n||null===(r=n.momentjs_locale)||void 0===r?void 0:r.textDirection),this.state.tannin=new a.Z((0,i.Z)({},b,this.state.locale)),this.state.numberFormatSettings.decimal_point=C(this.state.tannin,w([y])),this.state.numberFormatSettings.thousands_sep=C(this.state.tannin,w([v])),this.state.numberFormatSettings.decimal_point===y&&(this.state.numberFormatSettings.decimal_point="."),this.state.numberFormatSettings.thousands_sep===v&&(this.state.numberFormatSettings.thousands_sep=","),this.stateObserver.emit("change")},S.prototype.getLocale=function(){return this.state.locale},S.prototype.getLocaleSlug=function(){return this.state.localeSlug},S.prototype.isRtl=function(){return"rtl"===this.state.textDirection},S.prototype.addTranslations=function(e){for(var t in e)""!==t&&(this.state.tannin.data.messages[t]=e[t]);this.stateObserver.emit("change")},S.prototype.hasTranslation=function(){return!!Z(this,w(arguments))},S.prototype.translate=function(){var e=w(arguments),t=Z(this,e);if(t||(t=C(this.state.tannin,e)),e.args){var n=Array.isArray(e.args)?e.args.slice(0):[e.args];n.unshift(t);try{t=g.Z.apply(void 0,(0,r.Z)(n))}catch(e){if(!window||!window.console)return;var i=this.throwErrors?"error":"warn";"string"!=typeof e?window.console[i](e):window.console[i]("i18n sprintf error:",n)}}return e.components&&(t=(0,s.Z)({mixedString:t,components:e.components,throwErrors:this.throwErrors})),this.translateHooks.forEach((function(n){t=n(t,e)})),t},S.prototype.reRenderTranslations=function(){f("Re-rendering all translations due to external request"),this.stateObserver.emit("change")},S.prototype.registerComponentUpdateHook=function(e){this.componentUpdateHooks.push(e)},S.prototype.registerTranslateHook=function(e){this.translateHooks.push(e)};const P=S},3807:(e,t,n)=>{"use strict";n.d(t,{Y4:()=>a});var r=n(8617),i=n(2928),o=n(975),c=n(4531),s=new r.Z,a=s.numberFormat.bind(s),l=(s.translate.bind(s),s.configure.bind(s),s.setLocale.bind(s),s.getLocale.bind(s),s.getLocaleSlug.bind(s),s.addTranslations.bind(s),s.reRenderTranslations.bind(s),s.registerComponentUpdateHook.bind(s),s.registerTranslateHook.bind(s),s.state,s.stateObserver,s.on.bind(s),s.off.bind(s),s.emit.bind(s),(0,i.Z)(s),(0,o.Z)(s),(0,c.Z)(s));l.useRtl,l.withRtl},2928:(e,t,n)=>{"use strict";n.d(t,{Z:()=>d});var r=n(623),i=n(6438),o=n(8384),c=n(5808),s=n(601),a=n(1615),l=n(1285),u=n(9196),p=n.n(u);function d(e){var t={numberFormat:e.numberFormat.bind(e),translate:e.translate.bind(e)};return function(n){var u,d,m=n.displayName||n.name||"";return d=u=function(u){(0,s.Z)(m,u);var d=(0,a.Z)(m);function m(){var e;(0,i.Z)(this,m);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return e=d.call.apply(d,[this].concat(n)),(0,l.Z)((0,c.Z)(e),"boundForceUpdate",e.forceUpdate.bind((0,c.Z)(e))),e}return(0,o.Z)(m,[{key:"componentDidMount",value:function(){e.on("change",this.boundForceUpdate)}},{key:"componentWillUnmount",value:function(){e.off("change",this.boundForceUpdate)}},{key:"render",value:function(){var i=(0,r.Z)({locale:e.getLocaleSlug()},this.props,{},t);return p().createElement(n,i)}}]),m}(p().Component),(0,l.Z)(u,"displayName","Localized("+m+")"),d}}},2846:(e,t,n)=>{"use strict";function r(e,t,n,r){e=(e+"").replace(/[^0-9+\-Ee.]/g,"");var i=isFinite(+e)?+e:0,o=isFinite(+t)?Math.abs(t):0,c=void 0===r?",":r,s=void 0===n?".":n,a="";return a=(o?function(e,t){var n=Math.pow(10,t);return""+(Math.round(e*n)/n).toFixed(t)}(i,o):""+Math.round(i)).split("."),a[0].length>3&&(a[0]=a[0].replace(/\B(?=(?:\d{3})+(?!\d))/g,c)),(a[1]||"").length<o&&(a[1]=a[1]||"",a[1]+=new Array(o-a[1].length+1).join("0")),a.join(s)}n.d(t,{Z:()=>r})},4531:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var r=n(4291),i=n(9196),o=n.n(i),c=n(36),s=n(4333);function a(e){var t={getCurrentValue:function(){return e.isRtl()},subscribe:function(t){return e.on("change",t),function(){return e.off("change",t)}}};function n(){return(0,c.useSubscription)(t)}var a=(0,s.createHigherOrderComponent)((function(e){return(0,i.forwardRef)((function(t,i){var c=n();return o().createElement(e,(0,r.Z)({},t,{isRtl:c,ref:i}))}))}),"WithRTL");return{useRtl:n,withRtl:a}}},975:(e,t,n)=>{"use strict";n.d(t,{Z:()=>c});var r=n(2037),i=n(9196),o=n.n(i);function c(e){function t(){var t=e.translate.bind(e);return Object.defineProperty(t,"localeSlug",{get:e.getLocaleSlug.bind(e)}),t}return function(){var n=o().useState(t),i=(0,r.Z)(n,2),c=i[0],s=i[1];return o().useEffect((function(){var n=function(){return s(t)};return e.on("change",n),function(){return e.off("change",n)}}),[]),c}}},9503:e=>{"function"==typeof Object.create?e.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:e.exports=function(e,t){if(t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}}},5565:(e,t,n)=>{var r=n(2571),i=n(9503);function o(e){if(!(this instanceof o))return new o(e);"number"==typeof e&&(e={max:e}),e||(e={}),r.EventEmitter.call(this),this.cache={},this.head=this.tail=null,this.length=0,this.max=e.max||1e3,this.maxAge=e.maxAge||0}e.exports=o,i(o,r.EventEmitter),Object.defineProperty(o.prototype,"keys",{get:function(){return Object.keys(this.cache)}}),o.prototype.clear=function(){this.cache={},this.head=this.tail=null,this.length=0},o.prototype.remove=function(e){if("string"!=typeof e&&(e=""+e),this.cache.hasOwnProperty(e)){var t=this.cache[e];return delete this.cache[e],this._unlink(e,t.prev,t.next),t.value}},o.prototype._unlink=function(e,t,n){this.length--,0===this.length?this.head=this.tail=null:this.head===e?(this.head=t,this.cache[this.head].next=null):this.tail===e?(this.tail=n,this.cache[this.tail].prev=null):(this.cache[t].next=n,this.cache[n].prev=t)},o.prototype.peek=function(e){if(this.cache.hasOwnProperty(e)){var t=this.cache[e];if(this._checkAge(e,t))return t.value}},o.prototype.set=function(e,t){var n;if("string"!=typeof e&&(e=""+e),this.cache.hasOwnProperty(e)){if((n=this.cache[e]).value=t,this.maxAge&&(n.modified=Date.now()),e===this.head)return t;this._unlink(e,n.prev,n.next)}else n={value:t,modified:0,next:null,prev:null},this.maxAge&&(n.modified=Date.now()),this.cache[e]=n,this.length===this.max&&this.evict();return this.length++,n.next=null,n.prev=this.head,this.head&&(this.cache[this.head].next=e),this.head=e,this.tail||(this.tail=e),t},o.prototype._checkAge=function(e,t){return!(this.maxAge&&Date.now()-t.modified>this.maxAge)||(this.remove(e),this.emit("evict",{key:e,value:t.value}),!1)},o.prototype.get=function(e){if("string"!=typeof e&&(e=""+e),this.cache.hasOwnProperty(e)){var t=this.cache[e];if(this._checkAge(e,t))return this.head!==e&&(e===this.tail?(this.tail=t.next,this.cache[this.tail].prev=null):this.cache[t.prev].next=t.next,this.cache[t.next].prev=t.prev,this.cache[this.head].next=e,t.prev=this.head,t.next=null,this.head=e),t.value}},o.prototype.evict=function(){if(this.tail){var e=this.tail,t=this.remove(this.tail);this.emit("evict",{key:e,value:t})}}},8882:()=>{},197:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});const r={"admin-page":"sexr0jUxC1jVixdKiDnC",background:"vKQ11sLeAM45M04P1ccj"}},4566:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});const r={section:"cAbGtJDGgLubucBnz7vM"}},3519:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});const r={"section-hero":"vMa4i_Dza2t5Zi_Bw9Nf"}},4492:()=>{},9905:()=>{},8346:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});const r={"col-sm-1":"RuVLl3q4lxTQa3wbhBJB","col-sm-2":"QZbNrOqE2aNSn50xVhpU","col-sm-3":"Xc6nt1Qc1DI0Z2A3gt1r","col-sm-4":"i_qTq8gqhhC3vIUepVRB","col-md-1":"tRm008K_WJL79WoNZTNL","col-md-2":"F80DdgVn0m5OpvtSQWka","col-md-3":"VenqMpdgyKQVUNNQcfqd","col-md-4":"yAi0Cv1xDWkoqsaUhvhR","col-md-5":"Sz1E2aWbX483ijdi6yge","col-md-6":"FboSx5MoKTAWbxXyYlCw","col-md-7":"mhCPwfAZ4Kmm_empzJAq","col-md-8":"S6pIrEy9AMLKx9bgh_Ae","col-lg-1":"X_pdcLJikd8LS_YAdJlB","col-lg-2":"fj0NUMuyZQcPNgKcjp5Z","col-lg-3":"wsDuEN2GqHx6qzo8dUdk","col-lg-4":"YR0c7fQTgMkDdWzwSyLp","col-lg-5":"Z54F1hAErckAIrKlxnXW","col-lg-6":"qtMoMPF6yHvGJnWHSsde","col-lg-7":"egIPDFJsOpownTClq9XP","col-lg-8":"cTuyHfMwSUJxN_HdIEgd","col-lg-9":"pMvxM3RJGjqyNdf9qg1Y","col-lg-10":"gKb5wuIDAlKGbrjK2vxy","col-lg-11":"NnQTlbfnxPDR6cQ7rygg","col-lg-12":"U3H6UHW6HqRt9hdzVg3O"}},6222:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});const r={container:"SqdhUZkXCRuIpErj1B3z",fluid:"OZC_9a1LhpWF9dv15Gdh"}},6686:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});const r={"star-icon":"hDuMEuW1xluozLFj95Fi","checkmark-icon":"nHW00YCzH8n2HdsH3ps8"}},5384:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});const r={"headline-medium":"UujoBFTnQNY2cWU2SIsH","headline-small":"TeGO5V_thHw5lDAm1_2M","headline-small-regular":"WolQzb2MsSgiNmLtc7_j","title-medium":"hUB0JT8p1T2Hw28N6qC8","title-small":"zY2No8Ga4b8shbOQGhnv",body:"tIj0D1t8Cc892ikmgFPZ","body-small":"KdcN0BnOaVeVhyLRKqhS","body-extra-small":"dso3Rh3tl3Xv1GumBktz",label:"PItlW5vRExLnTj4a8eLE","m-0":"TwRpPlktzxhmFVeua7P5","mx-0":"zVfqx7gyb3o9mxfGynn1","my-0":"iSHVzNiB9iVleGljaQxy","mt-0":"xqDIp6cNVr_E6RXaiPyD","mr-0":"S8EwaXk1kyPizt6x4WH2","mb-0":"ODX5Vr1TARoLFkDDFooD","ml-0":"cphJ8dCpfimnky7P2FHg","m-1":"PFgIhNxIyiSuNvQjAIYj","mx-1":"M2jKmUzDxvJjjVEPU3zn","my-1":"io15gAh8tMTNbSEfwJKk","mt-1":"rcTN5uw9xIEeMEGL3Xi_","mr-1":"CQSkybjq2TcRM1Xo9COV","mb-1":"hfqOWgq6_MEGdFE82eOY","ml-1":"I8MxZQYTbuu595yfesWA","m-2":"kQkc6rmdpvLKPkyoJtVQ","mx-2":"j6vFPxWuu4Jan2ldoxpp","my-2":"hqr39dC4H_AbactPAkCG","mt-2":"c3dQnMi16C6J6Ecy4283","mr-2":"YNZmHOuRo6hU7zzKfPdP","mb-2":"Db8lbak1_wunpPk8NwKU","ml-2":"ftsYE5J9hLzquQ0tA5dY","m-3":"Det4MHzLUW7EeDnafPzq","mx-3":"h_8EEAztC29Vve1datb5","my-3":"YXIXJ0h1k47u6hzK8KcM","mt-3":"soADBBkcIKCBXzCTuV9_","mr-3":"zSX59ziEaEWGjnpZa4uV","mb-3":"yrVTnq_WBMbejg89c2ZQ","ml-3":"UKtHPJnI2cXBWtPDm5hM","m-4":"guexok_Tqd5Tf52hRlbT","mx-4":"oS1E2KfTBZkJ3F0tN7T6","my-4":"DN1OhhXi6AoBgEdDSbGd","mt-4":"ot2kkMcYHv53hLZ4LSn0","mr-4":"A1krOZZhlQ6Sp8Cy4bly","mb-4":"pkDbXXXL32237M0hokEh","ml-4":"XXv4kDTGvEnQeuGKOPU3","m-5":"yGqHk1a57gaISwkXwXe6","mx-5":"X8cghM358X3DkXLc9aNK","my-5":"GdfSmGwHlFnN2S6xBn1f","mt-5":"yqeuzwyGQ7zG0avrGqi_","mr-5":"g9emeCkuHvYhveiJbfXO","mb-5":"Lvk3dqcyHbZ07QCRlrUQ","ml-5":"r3yQECDQ9qX0XZzXlVAg","m-6":"aQhlPwht2Cz1X_63Miw0","mx-6":"JyHb0vK3wJgpblL9s5j8","my-6":"cY2gULL1lAv6WPNIRuf3","mt-6":"NBWQ9Lwhh_fnry3lg_p7","mr-6":"yIOniNe5E40C8fWvBm5V","mb-6":"t30usboNSyqfQWIwHvT3","ml-6":"Nm_TyFkYCMhOoghoToKJ","m-7":"C4qJKoBXpgKtpmrqtEKB","mx-7":"S93Srbu6NQ_PBr7DmTiD","my-7":"fJj8k6gGJDks3crUZxOS","mt-7":"cW6D6djs7Ppm7fD7TeoV","mr-7":"DuCnqNfcxcP3Z__Yo5Ro","mb-7":"im8407m2fw5vOg7O2zsw","ml-7":"G0fbeBgvz2sh3uTP9gNl","m-8":"kvW3sBCxRxUqz1jrVMJl","mx-8":"tOjEqjLONQdkiYx_XRnw","my-8":"op5hFSx318zgxsoZZNLN","mt-8":"c9WfNHP6TFKWIfLxv52J","mr-8":"sBA75QqcqRwwYSHJh2wc","mb-8":"GpL6idrXmSOM6jB8Ohsf","ml-8":"HbtWJoQwpgGycz8dGzeT","p-0":"uxX3khU88VQ_Ah49Ejsa","px-0":"KX0FhpBKwKzs9fOUdbNz","py-0":"PfK8vKDyN32dnimlzYjz","pt-0":"emxLHRjQuJsImnPbQIzE","pr-0":"kJ8WzlpTVgdViXt8ukP9","pb-0":"tg_UIUI11VBzrTAn2AzJ","pl-0":"uczvl8kaz84oPQJ2DB2R","p-1":"o7UHPcdVK3lt7q3lqV4o","px-1":"IDqEOxvDoYrFYxELPmtX","py-1":"DdywPW2qSYlu2pt8tpO2","pt-1":"npy3hw4A5QSkDicb2CJJ","pr-1":"LgbptTApNY5NwLQvEFAt","pb-1":"WZQy2SZuZso59bUsXXyl","pl-1":"o331apInxNunbYB3SfPE","p-2":"fMPIyD9Vqki1Lrc_yJnG","px-2":"i2pMcTcdrr10IQoiSm_L","py-2":"eA702gn32kwptiI1obXH","pt-2":"o9bGieUKcYc8o0Ij9oZX","pr-2":"SwZcFez1RDqWsOFjB5iG","pb-2":"eHpLc_idmuEqeqCTvqkN","pl-2":"vU39i2B4P1fUTMB2l6Vo","p-3":"JHWNzBnE29awhdu5BEh1","px-3":"X72lGbb56L3KFzC2xQ9N","py-3":"BzfNhRG8wXdCEB5ocQ6e","pt-3":"srV0KSDC83a2fiimSMMQ","pr-3":"lUWfkmbQjCskhcNwkyCm","pb-3":"Ts0dIlc3aTSL7V4cIHis","pl-3":"CzlqQXXhX6MvorArFZ8B","p-4":"TqMPkQtR_DdZuKb5vBoV","px-4":"a7UrjhI69Vetlcj9ZVzz","py-4":"StEhBzGs2Gi5dDEkjhAv","pt-4":"FGneZfZyvYrt1dG0zcnm","pr-4":"APEH216rpdlJWgD2fHc8","pb-4":"oGwXC3ohCic9XnAj6x69","pl-4":"U6gnT9y42ViPNOcNzBwb","p-5":"IpdRLBwnHqbqFrixgbYC","px-5":"HgNeXvkBa9o3bQ5fvFZm","py-5":"tJtFZM3XfPG9v9TSDfN1","pt-5":"PdifHW45QeXYfK568uD8","pr-5":"mbLkWTTZ0Za_BBbFZ5b2","pb-5":"vVWpZpLlWrkTt0hMk8XU","pl-5":"RxfaJj5a1Nt6IavEo5Zl","p-6":"SppJULDGdnOGcjZNCYBy","px-6":"palY2nLwdoyooPUm9Hhk","py-6":"WYw1JvZC0ppLdvSAPhr_","pt-6":"YEEJ9b90ueQaPfiU8aeN","pr-6":"QE0ssnsKvWJMqlhPbY5u","pb-6":"n8yA3jHlMRyLd5UIfoND","pl-6":"tXHmxYnHzbwtfxEaG51n","p-7":"kBTsPKkO_3g_tLkj77Um","px-7":"RyhrFx6Y1FGDrGAAyaxm","py-7":"CBwRpB0bDN3iEdQPPMJO","pt-7":"vQVSq6SvWKbOMu6r4H6b","pr-7":"oBy5__aEADMsH46mrgFX","pb-7":"KVEXoJqf1s92j0JMdNmN","pl-7":"ZMXGNrNaKW3k_3TLz0Fq","p-8":"tuiR9PhkHXhGyEgzRZRI","px-8":"U7454qyWkQNa2iaSJziu","py-8":"VLYIv2GVocjuN93e8HC8","pt-8":"X1rm9DQ1zLGLfogja5Gn","pr-8":"JS7G6kAuqJo5GIuF8S5t","pb-8":"Y8F9ga1TDCMbM1lj4gUz","pl-8":"AJuyNGrI63BOWql719H8"}},5797:()=>{},4091:()=>{},4765:()=>{},7906:()=>{},5755:()=>{},5934:()=>{},5117:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});const r={icon:"rV_5QyvhDnsVjCX4pb0h",link:"MO1jDNY8VPqeNS9xL8jE"}},8893:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});const r={"relative-col":"zvd4dCB_bBDiXJKKDqXm","close-link":"ly4o9lSswAGHFXqGUEIO","account-description":"u64Go3kwEZ7MD9eji0H1","account-images":"_RT41NE3LU4R0ubcij2y",wordpress:"cFGWJeRiGHjAr8D7CWJW",google:"Iz3l7a05TP6HK9S92TIL",apple:"lmQ0wFmnk4kKkGVjokPA","all-features":"AoIs8wD92wKR8RpQj6Uc"}},7844:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});const r={icon:"hdasSNj9k3Sc5PwXK4uE",link:"eWN8Hj0SBRDq1F48n_Fg"}},4053:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});const r={heading:"jErCC9oKHSM15BxzFyQK",notice:"oVoYbwbFB6U2o90Njusk",message:"wBVXH4OTNwLHPRpN4nsq"}},7192:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});const r={container:"wiobThfXJCuhGNrbFIT6","expire-date":"VgAxgahF9bC2M__FiIgV","external-link":"uwMCvCNzQUKtyBmXFTve"}},9177:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});const r={container:"pIsYsXFAJ9KX2VrS5rmY","is-link":"YXHdD0VsFjiTsVRLrrx9","action-link-button":"ehgY0qp6bl53RaxP5rFF","has-error":"Pp9cMIaESLYelLOX3tkI",name:"w56ueQLYexqzTybA7015",description:"gmPKCDKZcfQt9WieTyKS",button:"ZKHHfl5DhA9kUnaL0qQZ",actions:"fDBaV7I4yUO6w5AWVEtr",status:"f5VJYwuJmjxH8PVxEbbv",active:"ry3pxoGtmQ0ZeSwp7F_3",inactive:"LZzE3EG7m3CDR46wwwEr",error:"Vx_jpT02r8W6NfsRSB02","is-fetching":"PdsJCfyyjSgrNDheF2qi","blink-animation":"dWP7ypkVXudMbAa38W5Z"}},3589:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});const r={card:"q0T8YyQxRawhpDtvJjxI","card-header":"zj7xadmhIWeuf7ZwvVTS","product-bundle-icon":"GsioW6IsC8EMYE3U6788",container:"B7JDqI_vtKxSy5GjvqA1","plus-icon":"zlh3zbjUe4Z8cBs7uVVe","product-has-required-plan":"qoZuzG5EcDa231hC6t0P","checkout-button":"Q6uUUQCPWS6_6nLxIn68","components-spinner":"YU4iBCRze09ZP3iCsdcb",features:"Q1jaYDpa2AVfJpA29wT0","price-container":"xgv3jRkeF39aEQELCwru",price:"twlleZ5Ehq4bB7CvKVSW","is-old":"Qg4rPEvXsqmod1s_31d8","price-description":"ApsgxIornVy_3KnciVeJ"}},835:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});const r={container:"SWwV4Pw6OZ5vU3PqPXmr",imageContainer:"r7tUofa9Z3A5ziKVR1H7"}},4976:()=>{},8282:e=>{function t(e,t){if(!e)throw new Error(t||"Assertion failed")}e.exports=t,t.equal=function(e,t,n){if(e!=t)throw new Error(n||"Assertion failed: "+e+" != "+t)}},2002:e=>{var t=1e3,n=60*t,r=60*n,i=24*r,o=7*i,c=365.25*i;function s(e,t,n,r){var i=t>=1.5*n;return Math.round(e/n)+" "+r+(i?"s":"")}e.exports=function(e,a){a=a||{};var l=typeof e;if("string"===l&&e.length>0)return function(e){if((e=String(e)).length>100)return;var s=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(!s)return;var a=parseFloat(s[1]);switch((s[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return a*c;case"weeks":case"week":case"w":return a*o;case"days":case"day":case"d":return a*i;case"hours":case"hour":case"hrs":case"hr":case"h":return a*r;case"minutes":case"minute":case"mins":case"min":case"m":return a*n;case"seconds":case"second":case"secs":case"sec":case"s":return a*t;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return a;default:return}}(e);if("number"===l&&isFinite(e))return a.long?function(e){var o=Math.abs(e);if(o>=i)return s(e,o,i,"day");if(o>=r)return s(e,o,r,"hour");if(o>=n)return s(e,o,n,"minute");if(o>=t)return s(e,o,t,"second");return e+" ms"}(e):function(e){var o=Math.abs(e);if(o>=i)return Math.round(e/i)+"d";if(o>=r)return Math.round(e/r)+"h";if(o>=n)return Math.round(e/n)+"m";if(o>=t)return Math.round(e/t)+"s";return e+"ms"}(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))}},1625:e=>{"use strict";var t=Object.getOwnPropertySymbols,n=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;function i(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(e){r[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(e){return!1}}()?Object.assign:function(e,o){for(var c,s,a=i(e),l=1;l<arguments.length;l++){for(var u in c=Object(arguments[l]))n.call(c,u)&&(a[u]=c[u]);if(t){s=t(c);for(var p=0;p<s.length;p++)r.call(c,s[p])&&(a[s[p]]=c[s[p]])}}return a}},2504:(e,t,n)=>{"use strict";var r=n(2265);function i(){}function o(){}o.resetWarningCache=i,e.exports=function(){function e(e,t,n,i,o,c){if(c!==r){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:o,resetWarningCache:i};return n.PropTypes=n,n}},3698:(e,t,n)=>{e.exports=n(2504)()},2265:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},7026:(e,t,n)=>{"use strict";n.d(t,{UT:()=>l,rU:()=>u});var r=n(9196),i=n(5993),o=n(9842);function c(){return c=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},c.apply(this,arguments)}function s(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}const a=["onClick","reloadDocument","replace","state","target","to"];function l(e){let{basename:t,children:n,window:c}=e,s=(0,r.useRef)();null==s.current&&(s.current=(0,i.q_)({window:c}));let a=s.current,[l,u]=(0,r.useState)({action:a.action,location:a.location});return(0,r.useLayoutEffect)((()=>a.listen(u)),[a]),(0,r.createElement)(o.F0,{basename:t,children:n,location:l.location,navigationType:l.action,navigator:a})}const u=(0,r.forwardRef)((function(e,t){let{onClick:n,reloadDocument:l,replace:u=!1,state:p,target:d,to:m}=e,g=s(e,a),h=(0,o.oQ)(m),f=function(e,t){let{target:n,replace:c,state:s}=void 0===t?{}:t,a=(0,o.s0)(),l=(0,o.TH)(),u=(0,o.WU)(e);return(0,r.useCallback)((t=>{if(!(0!==t.button||n&&"_self"!==n||function(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}(t))){t.preventDefault();let n=!!c||(0,i.Ep)(l)===(0,i.Ep)(u);a(e,{replace:n,state:s})}}),[l,a,u,c,s,n,e])}(m,{replace:u,state:p,target:d});return(0,r.createElement)("a",c({},g,{href:h,onClick:function(e){n&&n(e),e.defaultPrevented||l||f(e)},ref:t,target:d}))}))},9842:(e,t,n)=>{"use strict";n.d(t,{AW:()=>l,F0:()=>u,Z5:()=>p,oQ:()=>d,TH:()=>g,s0:()=>h,WU:()=>f});var r=n(9196),i=n(5993);function o(e,t){if(!e)throw new Error(t)}const c=(0,r.createContext)(null);const s=(0,r.createContext)(null);const a=(0,r.createContext)({outlet:null,matches:[]});function l(e){o(!1)}function u(e){let{basename:t="/",children:n=null,location:a,navigationType:l=i.aU.Pop,navigator:u,static:p=!1}=e;m()&&o(!1);let d=P(t),g=(0,r.useMemo)((()=>({basename:d,navigator:u,static:p})),[d,u,p]);"string"==typeof a&&(a=(0,i.cP)(a));let{pathname:h="/",search:f="",hash:y="",state:v=null,key:b="default"}=a,k=(0,r.useMemo)((()=>{let e=Z(h,d);return null==e?null:{pathname:e,search:f,hash:y,state:v,key:b}}),[d,h,f,y,v,b]);return null==k?null:(0,r.createElement)(c.Provider,{value:g},(0,r.createElement)(s.Provider,{children:n,value:{location:k,navigationType:l}}))}function p(e){let{children:t,location:n}=e;return function(e,t){m()||o(!1);let{matches:n}=(0,r.useContext)(a),c=n[n.length-1],s=c?c.params:{},l=(c&&c.pathname,c?c.pathnameBase:"/");c&&c.route;0;let u,p=g();if(t){var d;let e="string"==typeof t?(0,i.cP)(t):t;"/"===l||(null==(d=e.pathname)?void 0:d.startsWith(l))||o(!1),u=e}else u=p;let h=u.pathname||"/",f="/"===l?h:h.slice(l.length)||"/",y=function(e,t,n){void 0===n&&(n="/");let r=Z(("string"==typeof t?(0,i.cP)(t):t).pathname||"/",n);if(null==r)return null;let o=v(e);!function(e){e.sort(((e,t)=>e.score!==t.score?t.score-e.score:function(e,t){return e.length===t.length&&e.slice(0,-1).every(((e,n)=>e===t[n]))?e[e.length-1]-t[t.length-1]:0}(e.routesMeta.map((e=>e.childrenIndex)),t.routesMeta.map((e=>e.childrenIndex)))))}(o);let c=null;for(let e=0;null==c&&e<o.length;++e)c=_(o[e],r);return c}(e,{pathname:f});0;return j(y&&y.map((e=>Object.assign({},e,{params:Object.assign({},s,e.params),pathname:S([l,e.pathname]),pathnameBase:"/"===e.pathnameBase?l:S([l,e.pathnameBase])}))),n)}(y(t),n)}function d(e){m()||o(!1);let{basename:t,navigator:n}=(0,r.useContext)(c),{hash:s,pathname:a,search:l}=f(e),u=a;if("/"!==t){let n=function(e){return""===e||""===e.pathname?"/":"string"==typeof e?(0,i.cP)(e).pathname:e.pathname}(e),r=null!=n&&n.endsWith("/");u="/"===a?t+(r?"/":""):S([t,a])}return n.createHref({pathname:u,search:l,hash:s})}function m(){return null!=(0,r.useContext)(s)}function g(){return m()||o(!1),(0,r.useContext)(s).location}function h(){m()||o(!1);let{basename:e,navigator:t}=(0,r.useContext)(c),{matches:n}=(0,r.useContext)(a),{pathname:i}=g(),s=JSON.stringify(n.map((e=>e.pathnameBase))),l=(0,r.useRef)(!1);return(0,r.useEffect)((()=>{l.current=!0})),(0,r.useCallback)((function(n,r){if(void 0===r&&(r={}),!l.current)return;if("number"==typeof n)return void t.go(n);let o=C(n,JSON.parse(s),i);"/"!==e&&(o.pathname=S([e,o.pathname])),(r.replace?t.replace:t.push)(o,r.state)}),[e,t,s,i])}function f(e){let{matches:t}=(0,r.useContext)(a),{pathname:n}=g(),i=JSON.stringify(t.map((e=>e.pathnameBase)));return(0,r.useMemo)((()=>C(e,JSON.parse(i),n)),[e,i,n])}function y(e){let t=[];return r.Children.forEach(e,(e=>{if(!(0,r.isValidElement)(e))return;if(e.type===r.Fragment)return void t.push.apply(t,y(e.props.children));e.type!==l&&o(!1);let n={caseSensitive:e.props.caseSensitive,element:e.props.element,index:e.props.index,path:e.props.path};e.props.children&&(n.children=y(e.props.children)),t.push(n)})),t}function v(e,t,n,r){return void 0===t&&(t=[]),void 0===n&&(n=[]),void 0===r&&(r=""),e.forEach(((e,i)=>{let c={relativePath:e.path||"",caseSensitive:!0===e.caseSensitive,childrenIndex:i,route:e};c.relativePath.startsWith("/")&&(c.relativePath.startsWith(r)||o(!1),c.relativePath=c.relativePath.slice(r.length));let s=S([r,c.relativePath]),a=n.concat(c);e.children&&e.children.length>0&&(!0===e.index&&o(!1),v(e.children,t,a,s)),(null!=e.path||e.index)&&t.push({path:s,score:E(s,e.index),routesMeta:a})})),t}const b=/^:\w+$/,k=e=>"*"===e;function E(e,t){let n=e.split("/"),r=n.length;return n.some(k)&&(r+=-2),t&&(r+=2),n.filter((e=>!k(e))).reduce(((e,t)=>e+(b.test(t)?3:""===t?1:10)),r)}function _(e,t){let{routesMeta:n}=e,r={},i="/",o=[];for(let e=0;e<n.length;++e){let c=n[e],s=e===n.length-1,a="/"===i?t:t.slice(i.length)||"/",l=w({path:c.relativePath,caseSensitive:c.caseSensitive,end:s},a);if(!l)return null;Object.assign(r,l.params);let u=c.route;o.push({params:r,pathname:S([i,l.pathname]),pathnameBase:P(S([i,l.pathnameBase])),route:u}),"/"!==l.pathnameBase&&(i=S([i,l.pathnameBase]))}return o}function j(e,t){return void 0===t&&(t=[]),null==e?null:e.reduceRight(((n,i,o)=>(0,r.createElement)(a.Provider,{children:void 0!==i.route.element?i.route.element:n,value:{outlet:n,matches:t.concat(e.slice(0,o+1))}})),null)}function w(e,t){"string"==typeof e&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=function(e,t,n){void 0===t&&(t=!1);void 0===n&&(n=!0);let r=[],i="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^$?{}|()[\]]/g,"\\$&").replace(/:(\w+)/g,((e,t)=>(r.push(t),"([^\\/]+)")));e.endsWith("*")?(r.push("*"),i+="*"===e||"/*"===e?"(.*)$":"(?:\\/(.+)|\\/*)$"):i+=n?"\\/*$":"(?:(?=[.~-]|%[0-9A-F]{2})|\\b|\\/|$)";return[new RegExp(i,t?void 0:"i"),r]}(e.path,e.caseSensitive,e.end),i=t.match(n);if(!i)return null;let o=i[0],c=o.replace(/(.)\/+$/,"$1"),s=i.slice(1);return{params:r.reduce(((e,t,n)=>{if("*"===t){let e=s[n]||"";c=o.slice(0,o.length-e.length).replace(/(.)\/+$/,"$1")}return e[t]=function(e,t){try{return decodeURIComponent(e)}catch(t){return e}}(s[n]||""),e}),{}),pathname:o,pathnameBase:c,pattern:e}}function C(e,t,n){let r,o="string"==typeof e?(0,i.cP)(e):e,c=""===e||""===o.pathname?"/":o.pathname;if(null==c)r=n;else{let e=t.length-1;if(c.startsWith("..")){let t=c.split("/");for(;".."===t[0];)t.shift(),e-=1;o.pathname=t.join("/")}r=e>=0?t[e]:"/"}let s=function(e,t){void 0===t&&(t="/");let{pathname:n,search:r="",hash:o=""}="string"==typeof e?(0,i.cP)(e):e,c=n?n.startsWith("/")?n:function(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach((e=>{".."===e?n.length>1&&n.pop():"."!==e&&n.push(e)})),n.length>1?n.join("/"):"/"}(n,t):t;return{pathname:c,search:N(r),hash:x(o)}}(o,r);return c&&"/"!==c&&c.endsWith("/")&&!s.pathname.endsWith("/")&&(s.pathname+="/"),s}function Z(e,t){if("/"===t)return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=e.charAt(t.length);return n&&"/"!==n?null:e.slice(t.length)||"/"}const S=e=>e.join("/").replace(/\/\/+/g,"/"),P=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),N=e=>e&&"?"!==e?e.startsWith("?")?e:"?"+e:"",x=e=>e&&"#"!==e?e.startsWith("#")?e:"#"+e:""},8090:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(7478),i={contextDelimiter:"",onMissingKey:null};function o(e,t){var n;for(n in this.data=e,this.pluralForms={},this.options={},i)this.options[n]=void 0!==t&&n in t?t[n]:i[n]}o.prototype.getPluralForm=function(e,t){var n,i,o,c=this.pluralForms[e];return c||("function"!=typeof(o=(n=this.data[e][""])["Plural-Forms"]||n["plural-forms"]||n.plural_forms)&&(i=function(e){var t,n,r;for(t=e.split(";"),n=0;n<t.length;n++)if(0===(r=t[n].trim()).indexOf("plural="))return r.substr(7)}(n["Plural-Forms"]||n["plural-forms"]||n.plural_forms),o=(0,r.Z)(i)),c=this.pluralForms[e]=o),c(t)},o.prototype.dcnpgettext=function(e,t,n,r,i){var o,c,s;return o=void 0===i?0:this.getPluralForm(e,i),c=n,t&&(c=t+this.options.contextDelimiter+n),(s=this.data[e][c])&&s[o]?s[o]:(this.options.onMissingKey&&this.options.onMissingKey(n,e),0===o?n:r)}},5325:(e,t,n)=>{"use strict";n.d(t,{Z:()=>u});var r=n(9667),i=n.n(r),o=n(2819);const c=i()("dops:analytics");let s,a;window._tkq=window._tkq||[],window.ga=window.ga||function(){(window.ga.q=window.ga.q||[]).push(arguments)},window.ga.l=+new Date;const l={initialize:function(e,t,n){l.setUser(e,t),l.setSuperProps(n),l.identifyUser()},setGoogleAnalyticsEnabled:function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;this.googleAnalyticsEnabled=e,this.googleAnalyticsKey=t},setMcAnalyticsEnabled:function(e){this.mcAnalyticsEnabled=e},setUser:function(e,t){a={ID:e,username:t}},setSuperProps:function(e){s=e},assignSuperProps:function(e){s=(0,o.assign)(s,e)},mc:{bumpStat:function(e,t){const n=function(e,t){let n="";if("object"==typeof e){for(const t in e)n+="&x_"+encodeURIComponent(t)+"="+encodeURIComponent(e[t]);c("Bumping stats %o",e)}else n="&x_"+encodeURIComponent(e)+"="+encodeURIComponent(t),c('Bumping stat "%s" in group "%s"',t,e);return n}(e,t);l.mcAnalyticsEnabled&&((new Image).src=document.location.protocol+"//pixel.wp.com/g.gif?v=wpcom-no-pv"+n+"&t="+Math.random())},bumpStatWithPageView:function(e,t){const n=function(e,t){let n="";if("object"==typeof e){for(const t in e)n+="&"+encodeURIComponent(t)+"="+encodeURIComponent(e[t]);c("Built stats %o",e)}else n="&"+encodeURIComponent(e)+"="+encodeURIComponent(t),c('Built stat "%s" in group "%s"',t,e);return n}(e,t);l.mcAnalyticsEnabled&&((new Image).src=document.location.protocol+"//pixel.wp.com/g.gif?v=wpcom"+n+"&t="+Math.random())}},pageView:{record:function(e,t){l.tracks.recordPageView(e),l.ga.recordPageView(e,t)}},purchase:{record:function(e,t,n,r,i,o,c){l.ga.recordPurchase(e,t,n,r,i,o,c)}},tracks:{recordEvent:function(e,t){t=t||{},0===e.indexOf("akismet_")||0===e.indexOf("jetpack_")?(s&&(c("- Super Props: %o",s),t=(0,o.assign)(t,s)),c('Record event "%s" called with props %s',e,JSON.stringify(t)),window._tkq.push(["recordEvent",e,t])):c('- Event name must be prefixed by "akismet_" or "jetpack_"')},recordJetpackClick:function(e){const t="object"==typeof e?e:{target:e};l.tracks.recordEvent("jetpack_wpa_click",t)},recordPageView:function(e){l.tracks.recordEvent("akismet_page_view",{path:e})},setOptOut:function(e){c("Pushing setOptOut: %o",e),window._tkq.push(["setOptOut",e])}},ga:{initialized:!1,initialize:function(){let e={};l.ga.initialized||(a&&(e={userId:"u-"+a.ID}),window.ga("create",this.googleAnalyticsKey,"auto",e),l.ga.initialized=!0)},recordPageView:function(e,t){l.ga.initialize(),c("Recording Page View ~ [URL: "+e+"] [Title: "+t+"]"),this.googleAnalyticsEnabled&&(window.ga("set","page",e),window.ga("send",{hitType:"pageview",page:e,title:t}))},recordEvent:function(e,t,n,r){l.ga.initialize();let i="Recording Event ~ [Category: "+e+"] [Action: "+t+"]";void 0!==n&&(i+=" [Option Label: "+n+"]"),void 0!==r&&(i+=" [Option Value: "+r+"]"),c(i),this.googleAnalyticsEnabled&&window.ga("send","event",e,t,n,r)},recordPurchase:function(e,t,n,r,i,o,c){window.ga("require","ecommerce"),window.ga("ecommerce:addTransaction",{id:e,revenue:r,currency:c}),window.ga("ecommerce:addItem",{id:e,name:t,sku:n,price:i,quantity:o}),window.ga("ecommerce:send")}},identifyUser:function(){a&&window._tkq.push(["identifyUser",a.ID,a.username])},setProperties:function(e){window._tkq.push(["setProperties",e])},clearedIdentity:function(){window._tkq.push(["clearIdentity"])}},u=l},488:(e,t,n)=>{"use strict";n.d(t,{ZP:()=>d});var r=n(2819),i=n(6483),o=n(4680);function c(e){class t extends Error{constructor(){super(...arguments),this.name=e}}return t}const s=c("JsonParseError"),a=c("JsonParseAfterRedirectError"),l=c("Api404Error"),u=c("Api404AfterRedirectError"),p=c("FetchNetworkError");const d=new function(e,t){let n=e,c={"X-WP-Nonce":t},s={credentials:"same-origin",headers:c},a={method:"post",credentials:"same-origin",headers:(0,r.assign)({},c,{"Content-type":"application/json"})},l=function(e){const t=e.split("?"),n=t.length>1?t[1]:"",r=n.length?n.split("&"):[];return r.push("_cacheBuster="+(new Date).getTime()),t[0]+"?"+r.join("&")};const u={setApiRoot(e){n=e},setApiNonce(e){c={"X-WP-Nonce":e},s={credentials:"same-origin",headers:c},a={method:"post",credentials:"same-origin",headers:(0,r.assign)({},c,{"Content-type":"application/json"})}},setCacheBusterCallback:e=>{l=e},registerSite:(e,t)=>{const r={registration_nonce:e,no_iframe:!0};return(0,o.jetpackConfigHas)("consumer_slug")&&(r.plugin_slug=(0,o.jetpackConfigGet)("consumer_slug")),null!==t&&(r.redirect_uri=t),d(`${n}jetpack/v4/connection/register`,a,{body:JSON.stringify(r)}).then(m).then(g)},fetchAuthorizationUrl:e=>p((0,i.addQueryArgs)(`${n}jetpack/v4/connection/authorize_url`,{no_iframe:"1",redirect_uri:e}),s).then(m).then(g),fetchSiteConnectionData:()=>p(`${n}jetpack/v4/connection/data`,s).then(g),fetchSiteConnectionStatus:()=>p(`${n}jetpack/v4/connection`,s).then(g),fetchSiteConnectionTest:()=>p(`${n}jetpack/v4/connection/test`,s).then(m).then(g),fetchUserConnectionData:()=>p(`${n}jetpack/v4/connection/data`,s).then(g),fetchUserTrackingSettings:()=>p(`${n}jetpack/v4/tracking/settings`,s).then(m).then(g),updateUserTrackingSettings:e=>d(`${n}jetpack/v4/tracking/settings`,a,{body:JSON.stringify(e)}).then(m).then(g),disconnectSite:()=>d(`${n}jetpack/v4/connection`,a,{body:JSON.stringify({isActive:!1})}).then(m).then(g),fetchConnectUrl:()=>p(`${n}jetpack/v4/connection/url`,s).then(m).then(g),unlinkUser:()=>d(`${n}jetpack/v4/connection/user`,a,{body:JSON.stringify({linked:!1})}).then(m).then(g),reconnect:()=>d(`${n}jetpack/v4/connection/reconnect`,a).then(m).then(g),fetchConnectedPlugins:()=>p(`${n}jetpack/v4/connection/plugins`,s).then(m).then(g),setHasSeenWCConnectionModal:()=>d(`${n}jetpack/v4/seen-wc-connection-modal`,a).then(m).then(g),fetchModules:()=>p(`${n}jetpack/v4/module/all`,s).then(m).then(g),fetchModule:e=>p(`${n}jetpack/v4/module/${e}`,s).then(m).then(g),activateModule:e=>d(`${n}jetpack/v4/module/${e}/active`,a,{body:JSON.stringify({active:!0})}).then(m).then(g),deactivateModule:e=>d(`${n}jetpack/v4/module/${e}/active`,a,{body:JSON.stringify({active:!1})}),updateModuleOptions:(e,t)=>d(`${n}jetpack/v4/module/${e}`,a,{body:JSON.stringify(t)}).then(m).then(g),updateSettings:e=>d(`${n}jetpack/v4/settings`,a,{body:JSON.stringify(e)}).then(m).then(g),getProtectCount:()=>p(`${n}jetpack/v4/module/protect/data`,s).then(m).then(g),resetOptions:e=>d(`${n}jetpack/v4/options/${e}`,a,{body:JSON.stringify({reset:!0})}).then(m).then(g),activateVaultPress:()=>d(`${n}jetpack/v4/plugins`,a,{body:JSON.stringify({slug:"vaultpress",status:"active"})}).then(m).then(g),getVaultPressData:()=>p(`${n}jetpack/v4/module/vaultpress/data`,s).then(m).then(g),installPlugin:(e,t)=>{const r={slug:e,status:"active"};return t&&(r.source=t),d(`${n}jetpack/v4/plugins`,a,{body:JSON.stringify(r)}).then(m).then(g)},activateAkismet:()=>d(`${n}jetpack/v4/plugins`,a,{body:JSON.stringify({slug:"akismet",status:"active"})}).then(m).then(g),getAkismetData:()=>p(`${n}jetpack/v4/module/akismet/data`,s).then(m).then(g),checkAkismetKey:()=>p(`${n}jetpack/v4/module/akismet/key/check`,s).then(m).then(g),checkAkismetKeyTyped:e=>d(`${n}jetpack/v4/module/akismet/key/check`,a,{body:JSON.stringify({api_key:e})}).then(m).then(g),fetchStatsData:e=>p(function(e){let t=`${n}jetpack/v4/module/stats/data`;-1!==t.indexOf("?")?t+=`&range=${encodeURIComponent(e)}`:t+=`?range=${encodeURIComponent(e)}`;return t}(e),s).then(m).then(g).then(h),getPluginUpdates:()=>p(`${n}jetpack/v4/updates/plugins`,s).then(m).then(g),getPlans:()=>p(`${n}jetpack/v4/plans`,s).then(m).then(g),fetchSettings:()=>p(`${n}jetpack/v4/settings`,s).then(m).then(g),updateSetting:e=>d(`${n}jetpack/v4/settings`,a,{body:JSON.stringify(e)}).then(m).then(g),fetchSiteData:()=>p(`${n}jetpack/v4/site`,s).then(m).then(g).then((e=>JSON.parse(e.data))),fetchSiteFeatures:()=>p(`${n}jetpack/v4/site/features`,s).then(m).then(g).then((e=>JSON.parse(e.data))),fetchSiteProducts:()=>p(`${n}jetpack/v4/site/products`,s).then(m).then(g),fetchSitePurchases:()=>p(`${n}jetpack/v4/site/purchases`,s).then(m).then(g).then((e=>JSON.parse(e.data))),fetchSiteBenefits:()=>p(`${n}jetpack/v4/site/benefits`,s).then(m).then(g).then((e=>JSON.parse(e.data))),fetchSetupQuestionnaire:()=>p(`${n}jetpack/v4/setup/questionnaire`,s).then(m).then(g),fetchRecommendationsData:()=>p(`${n}jetpack/v4/recommendations/data`,s).then(m).then(g),fetchRecommendationsProductSuggestions:()=>p(`${n}jetpack/v4/recommendations/product-suggestions`,s).then(m).then(g),fetchRecommendationsUpsell:()=>p(`${n}jetpack/v4/recommendations/upsell`,s).then(m).then(g),saveRecommendationsData:e=>d(`${n}jetpack/v4/recommendations/data`,a,{body:JSON.stringify({data:e})}).then(m),fetchProducts:()=>p(`${n}jetpack/v4/products`,s).then(m).then(g),fetchRewindStatus:()=>p(`${n}jetpack/v4/rewind`,s).then(m).then(g).then((e=>JSON.parse(e.data))),fetchScanStatus:()=>p(`${n}jetpack/v4/scan`,s).then(m).then(g).then((e=>JSON.parse(e.data))),dismissJetpackNotice:e=>d(`${n}jetpack/v4/notice/${e}`,a,{body:JSON.stringify({dismissed:!0})}).then(m).then(g),fetchPluginsData:()=>p(`${n}jetpack/v4/plugins`,s).then(m).then(g),fetchVerifySiteGoogleStatus:e=>p(null!==e?`${n}jetpack/v4/verify-site/google/${e}`:`${n}jetpack/v4/verify-site/google`,s).then(m).then(g),verifySiteGoogle:e=>d(`${n}jetpack/v4/verify-site/google`,a,{body:JSON.stringify({keyring_id:e})}).then(m).then(g),sendMobileLoginEmail:()=>d(`${n}jetpack/v4/mobile/send-login-email`,a).then(m).then(g),submitSurvey:e=>d(`${n}jetpack/v4/marketing/survey`,a,{body:JSON.stringify(e)}).then(m).then(g),saveSetupQuestionnaire:e=>d(`${n}jetpack/v4/setup/questionnaire`,a,{body:JSON.stringify(e)}).then(m).then(g),updateLicensingError:e=>d(`${n}jetpack/v4/licensing/error`,a,{body:JSON.stringify(e)}).then(m).then(g),updateLicenseKey:e=>d(`${n}jetpack/v4/licensing/set-license`,a,{body:JSON.stringify({license:e})}).then(m).then(g),getUserLicensesCounts:()=>p(`${n}jetpack/v4/licensing/user/counts`,s).then(m).then(g),getUserLicenses:()=>p(`${n}jetpack/v4/licensing/user/licenses`,s).then(m).then(g),updateLicensingActivationNoticeDismiss:e=>d(`${n}jetpack/v4/licensing/user/activation-notice-dismiss`,a,{body:JSON.stringify({last_detached_count:e})}).then(m).then(g),updateRecommendationsStep:e=>d(`${n}jetpack/v4/recommendations/step`,a,{body:JSON.stringify({step:e})}).then(m),confirmIDCSafeMode:()=>d(`${n}jetpack/v4/identity-crisis/confirm-safe-mode`,a).then(m),startIDCFresh:e=>d(`${n}jetpack/v4/identity-crisis/start-fresh`,a,{body:JSON.stringify({redirect_uri:e})}).then(m).then(g),migrateIDC:()=>d(`${n}jetpack/v4/identity-crisis/migrate`,a).then(m),attachLicenses:e=>d(`${n}jetpack/v4/licensing/attach-licenses`,a,{body:JSON.stringify({licenses:e})}).then(m).then(g),fetchSearchPlanInfo:()=>p(`${n}jetpack/v4/search/plan`,s).then(m).then(g),fetchSearchSettings:()=>p(`${n}jetpack/v4/search/settings`,s).then(m).then(g),updateSearchSettings:e=>d(`${n}jetpack/v4/search/settings`,a,{body:JSON.stringify(e)}).then(m).then(g),fetchSearchStats:()=>p(`${n}jetpack/v4/search/stats`,s).then(m).then(g)};function p(e,t){return fetch(l(e),t)}function d(e,t,n){return fetch(e,(0,r.assign)({},t,n)).catch(f)}function h(e){return e.general&&void 0===e.general.response||e.week&&void 0===e.week.response||e.month&&void 0===e.month.response?e:{}}(0,r.assign)(this,u)};function m(e){return e.status>=200&&e.status<300?e:404===e.status?new Promise((()=>{throw e.redirected?new u(e.redirected):new l})):e.json().catch((e=>h(e))).then((t=>{const n=new Error(`${t.message} (Status ${e.status})`);throw n.response=t,n.name="ApiError",n}))}function g(e){return e.json().catch((t=>h(t,e.redirected,e.url)))}function h(e,t,n){throw t?new a(n):new s}function f(){throw new p}},4696:(e,t,n)=>{"use strict";n.d(t,{Z:()=>u});var r=n(9196),i=n.n(r),o=n(5736),c=n(5609),s=n(3698),a=n.n(s);n(8882);const __=o.__,l=e=>{const{label:t,onClick:n,isLoading:r,displayError:o,errorMessage:s}=e;return i().createElement("div",{className:"jp-action-button"},i().createElement(c.Button,{className:"jp-action-button--button",label:t,onClick:n,variant:"primary",disabled:r},r?i().createElement(c.Spinner,null):t),o&&i().createElement("p",{className:"jp-action-button__error"},s))};l.propTypes={label:a().string.isRequired,onClick:a().func,isLoading:a().bool,displayError:a().bool,errorMessage:a().string},l.defaultProps={isLoading:!1,displayError:!1,errorMessage:__("An error occurred. Please try again.","jetpack-my-jetpack")};const u=l},9107:(e,t,n)=>{"use strict";n.d(t,{Z:()=>f});var r=n(9196),i=n.n(r),o=n(5736),c=n(3698),s=n.n(c),a=n(9105),l=n.n(a),u=n(197),p=n(4328),d=n(5482),m=n(2081),g=n(1129);const __=o.__,h=e=>{const{children:t,moduleName:n,moduleNameHref:r,a8cLogoHref:o,showHeader:c,showFooter:s,showBackground:a}=e,h=l()(u.Z["admin-page"],{[u.Z.background]:a});return i().createElement("div",{className:h},c&&i().createElement(m.Z,{horizontalSpacing:5},i().createElement(g.Z,null,i().createElement(d.Z,null))),i().createElement(m.Z,{fluid:!0,horizontalSpacing:0},i().createElement(g.Z,null,t)),s&&i().createElement(m.Z,{horizontalSpacing:5},i().createElement(g.Z,null,i().createElement(p.Z,{moduleName:n,a8cLogoHref:o,moduleNameHref:r}))))};h.defaultProps={moduleName:__("Jetpack","jetpack-my-jetpack"),showHeader:!0,showFooter:!0,showBackground:!0},h.propTypes={a8cLogoHref:s().string,moduleName:s().string,showHeader:s().bool,showFooter:s().bool,moduleNameHref:s().string,showBackground:s().bool};const f=h},1837:(e,t,n)=>{"use strict";n.d(t,{Z:()=>c});var r=n(9196),i=n.n(r),o=n(4566);const c=e=>{const{children:t}=e;return i().createElement("div",{className:o.Z.section},t)}},3558:(e,t,n)=>{"use strict";n.d(t,{Z:()=>c});var r=n(9196),i=n.n(r),o=n(3519);const c=e=>{const{children:t}=e;return i().createElement("div",{className:o.Z["section-hero"]},t)}},8968:(e,t,n)=>{"use strict";n.d(t,{Z:()=>m});var r=n(236),i=n.n(r),o=n(9196),c=n.n(o),s=n(9105),a=n.n(s),l=n(5736),u=n(3698),p=n.n(u);const __=l.__,d=e=>{const{title:t,height:n,className:r,...o}=e;return c().createElement("svg",i()({role:"img",x:"0",y:"0",viewBox:"0 0 935 38.2",enableBackground:"new 0 0 935 38.2","aria-labelledby":"jp-automattic-byline-logo-title",height:n,className:a()("jp-automattic-byline-logo",r)},o),c().createElement("title",{id:"jp-automattic-byline-logo-title"},t),c().createElement("path",{d:"M317.1 38.2c-12.6 0-20.7-9.1-20.7-18.5v-1.2c0-9.6 8.2-18.5 20.7-18.5 12.6 0 20.8 8.9 20.8 18.5v1.2C337.9 29.1 329.7 38.2 317.1 38.2zM331.2 18.6c0-6.9-5-13-14.1-13s-14 6.1-14 13v0.9c0 6.9 5 13.1 14 13.1s14.1-6.2 14.1-13.1V18.6zM175 36.8l-4.7-8.8h-20.9l-4.5 8.8h-7L157 1.3h5.5L182 36.8H175zM159.7 8.2L152 23.1h15.7L159.7 8.2zM212.4 38.2c-12.7 0-18.7-6.9-18.7-16.2V1.3h6.6v20.9c0 6.6 4.3 10.5 12.5 10.5 8.4 0 11.9-3.9 11.9-10.5V1.3h6.7V22C231.4 30.8 225.8 38.2 212.4 38.2zM268.6 6.8v30h-6.7v-30h-15.5V1.3h37.7v5.5H268.6zM397.3 36.8V8.7l-1.8 3.1 -14.9 25h-3.3l-14.7-25 -1.8-3.1v28.1h-6.5V1.3h9.2l14 24.4 1.7 3 1.7-3 13.9-24.4h9.1v35.5H397.3zM454.4 36.8l-4.7-8.8h-20.9l-4.5 8.8h-7l19.2-35.5h5.5l19.5 35.5H454.4zM439.1 8.2l-7.7 14.9h15.7L439.1 8.2zM488.4 6.8v30h-6.7v-30h-15.5V1.3h37.7v5.5H488.4zM537.3 6.8v30h-6.7v-30h-15.5V1.3h37.7v5.5H537.3zM569.3 36.8V4.6c2.7 0 3.7-1.4 3.7-3.4h2.8v35.5L569.3 36.8 569.3 36.8zM628 11.3c-3.2-2.9-7.9-5.7-14.2-5.7 -9.5 0-14.8 6.5-14.8 13.3v0.7c0 6.7 5.4 13 15.3 13 5.9 0 10.8-2.8 13.9-5.7l4 4.2c-3.9 3.8-10.5 7.1-18.3 7.1 -13.4 0-21.6-8.7-21.6-18.3v-1.2c0-9.6 8.9-18.7 21.9-18.7 7.5 0 14.3 3.1 18 7.1L628 11.3zM321.5 12.4c1.2 0.8 1.5 2.4 0.8 3.6l-6.1 9.4c-0.8 1.2-2.4 1.6-3.6 0.8l0 0c-1.2-0.8-1.5-2.4-0.8-3.6l6.1-9.4C318.7 11.9 320.3 11.6 321.5 12.4L321.5 12.4z"}),c().createElement("path",{d:"M37.5 36.7l-4.7-8.9H11.7l-4.6 8.9H0L19.4 0.8H25l19.7 35.9H37.5zM22 7.8l-7.8 15.1h15.9L22 7.8zM82.8 36.7l-23.3-24 -2.3-2.5v26.6h-6.7v-36H57l22.6 24 2.3 2.6V0.8h6.7v35.9H82.8z"}),c().createElement("path",{d:"M719.9 37l-4.8-8.9H694l-4.6 8.9h-7.1l19.5-36h5.6l19.8 36H719.9zM704.4 8l-7.8 15.1h15.9L704.4 8zM733 37V1h6.8v36H733zM781 37c-1.8 0-2.6-2.5-2.9-5.8l-0.2-3.7c-0.2-3.6-1.7-5.1-8.4-5.1h-12.8V37H750V1h19.6c10.8 0 15.7 4.3 15.7 9.9 0 3.9-2 7.7-9 9 7 0.5 8.5 3.7 8.6 7.9l0.1 3c0.1 2.5 0.5 4.3 2.2 6.1V37H781zM778.5 11.8c0-2.6-2.1-5.1-7.9-5.1h-13.8v10.8h14.4c5 0 7.3-2.4 7.3-5.2V11.8zM794.8 37V1h6.8v30.4h28.2V37H794.8zM836.7 37V1h6.8v36H836.7zM886.2 37l-23.4-24.1 -2.3-2.5V37h-6.8V1h6.5l22.7 24.1 2.3 2.6V1h6.8v36H886.2zM902.3 37V1H935v5.6h-26v9.2h20v5.5h-20v10.1h26V37H902.3z"}))};d.defaultProps={title:__("An Automattic Airline","jetpack-my-jetpack"),height:7,className:""},d.propTypes={title:p().string,height:p().number,className:p().string};const m=d},8640:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var r=n(9196),i=n.n(r),o=n(3698),c=n.n(o);n(4492);const s=e=>{const{format:t,icon:n,imageUrl:r}=e;return i().createElement("div",{className:"jp-components__decorative-card "+(t?"jp-components__decorative-card--"+t:"")},i().createElement("div",{className:"jp-components__decorative-card__image",style:{backgroundImage:r?`url( ${r} )`:""}}),i().createElement("div",{className:"jp-components__decorative-card__content"},i().createElement("div",{className:"jp-components__decorative-card__lines"})),(()=>{if(n)return i().createElement("div",{className:"jp-components__decorative-card__icon-container"},i().createElement("span",{className:"jp-components__decorative-card__icon jp-components__decorative-card__icon--"+n}))})())};s.propTypes={format:c().oneOf(["horizontal","vertical"]),icon:c().oneOf(["unlink"]),imageUrl:c().string},s.defaultProps={format:"horizontal"};const a=s},4328:(e,t,n)=>{"use strict";n.d(t,{Z:()=>h});var r=n(236),i=n.n(r),o=n(9196),c=n.n(o),s=n(5736),a=n(9105),l=n.n(a),u=n(3698),p=n.n(u),d=n(8968),m=(n(9905),n(5482));const __=s.__,g=e=>{const{a8cLogoHref:t,moduleName:n,className:r,moduleNameHref:o,...s}=e;return c().createElement("div",i()({className:l()("jp-dashboard-footer",r)},s),c().createElement("div",{className:"jp-dashboard-footer__footer-left"},c().createElement(m.Z,{logoColor:"#000",showText:!1,height:16,className:"jp-dashboard-footer__jetpack-symbol","aria-label":__("Jetpack logo","jetpack-my-jetpack")}),c().createElement("span",{className:"jp-dashboard-footer__module-name"},o?c().createElement("a",{href:o,"aria-label":n},n):n)),c().createElement("div",{className:"jp-dashboard-footer__footer-right"},c().createElement("a",{href:t,"aria-label":__("An Automattic Airline","jetpack-my-jetpack")},c().createElement(d.Z,null))))};g.defaultProps={a8cLogoHref:"https://automattic.com",moduleName:__("Jetpack","jetpack-my-jetpack"),className:"",moduleNameHref:"https://jetpack.com"},g.propTypes={a8cLogoHref:p().string,moduleName:p().string,className:p().string,moduleNameHref:p().string};const h=g},5482:(e,t,n)=>{"use strict";n.d(t,{Z:()=>h});var r=n(236),i=n.n(r),o=n(4502),c=n.n(o),s=n(3698),a=n.n(s),l=n(9196),u=n.n(l),p=n(9105),d=n.n(p),m=n(5736);const __=m.__;class g extends u().Component{render(){const{logoColor:e,showText:t,className:n,...r}=this.props,o=t?"0 0 118 32":"0 0 32 32";return u().createElement("svg",i()({xmlns:"http://www.w3.org/2000/svg",x:"0px",y:"0px",viewBox:o,className:d()("jetpack-logo",n),"aria-labelledby":"jetpack-logo-title"},r),u().createElement("title",{id:"jetpack-logo-title"},__("Jetpack Logo","jetpack-my-jetpack")),u().createElement("path",{fill:e,d:"M16,0C7.2,0,0,7.2,0,16s7.2,16,16,16s16-7.2,16-16S24.8,0,16,0z M15,19H7l8-16V19z M17,29V13h8L17,29z"}),t&&u().createElement(l.Fragment,null,u().createElement("path",{d:"M41.3,26.6c-0.5-0.7-0.9-1.4-1.3-2.1c2.3-1.4,3-2.5,3-4.6V8h-3V6h6v13.4C46,22.8,45,24.8,41.3,26.6z"}),u().createElement("path",{d:"M65,18.4c0,1.1,0.8,1.3,1.4,1.3c0.5,0,2-0.2,2.6-0.4v2.1c-0.9,0.3-2.5,0.5-3.7,0.5c-1.5,0-3.2-0.5-3.2-3.1V12H60v-2h2.1V7.1 H65V10h4v2h-4V18.4z"}),u().createElement("path",{d:"M71,10h3v1.3c1.1-0.8,1.9-1.3,3.3-1.3c2.5,0,4.5,1.8,4.5,5.6s-2.2,6.3-5.8,6.3c-0.9,0-1.3-0.1-2-0.3V28h-3V10z M76.5,12.3 c-0.8,0-1.6,0.4-2.5,1.2v5.9c0.6,0.1,0.9,0.2,1.8,0.2c2,0,3.2-1.3,3.2-3.9C79,13.4,78.1,12.3,76.5,12.3z"}),u().createElement("path",{d:"M93,22h-3v-1.5c-0.9,0.7-1.9,1.5-3.5,1.5c-1.5,0-3.1-1.1-3.1-3.2c0-2.9,2.5-3.4,4.2-3.7l2.4-0.3v-0.3c0-1.5-0.5-2.3-2-2.3 c-0.7,0-2.3,0.5-3.7,1.1L84,11c1.2-0.4,3-1,4.4-1c2.7,0,4.6,1.4,4.6,4.7L93,22z M90,16.4l-2.2,0.4c-0.7,0.1-1.4,0.5-1.4,1.6 c0,0.9,0.5,1.4,1.3,1.4s1.5-0.5,2.3-1V16.4z"}),u().createElement("path",{d:"M104.5,21.3c-1.1,0.4-2.2,0.6-3.5,0.6c-4.2,0-5.9-2.4-5.9-5.9c0-3.7,2.3-6,6.1-6c1.4,0,2.3,0.2,3.2,0.5V13 c-0.8-0.3-2-0.6-3.2-0.6c-1.7,0-3.2,0.9-3.2,3.6c0,2.9,1.5,3.8,3.3,3.8c0.9,0,1.9-0.2,3.2-0.7V21.3z"}),u().createElement("path",{d:"M110,15.2c0.2-0.3,0.2-0.8,3.8-5.2h3.7l-4.6,5.7l5,6.3h-3.7l-4.2-5.8V22h-3V6h3V15.2z"}),u().createElement("path",{d:"M58.5,21.3c-1.5,0.5-2.7,0.6-4.2,0.6c-3.6,0-5.8-1.8-5.8-6c0-3.1,1.9-5.9,5.5-5.9s4.9,2.5,4.9,4.9c0,0.8,0,1.5-0.1,2h-7.3 c0.1,2.5,1.5,2.8,3.6,2.8c1.1,0,2.2-0.3,3.4-0.7C58.5,19,58.5,21.3,58.5,21.3z M56,15c0-1.4-0.5-2.9-2-2.9c-1.4,0-2.3,1.3-2.4,2.9 C51.6,15,56,15,56,15z"})))}}c()(g,"propTypes",{className:a().string,width:a().number,height:a().number,showText:a().bool,logoColor:a().string}),c()(g,"defaultProps",{className:"",height:32,showText:!0,logoColor:"#069e08"});const h=g},1129:(e,t,n)=>{"use strict";n.d(t,{Z:()=>p});var r=n(9196),i=n.n(r),o=n(9105),c=n.n(o),s=n(3698),a=n.n(s),l=n(8346);const u=e=>{const{children:t,className:n}=e,r=Math.min(4,e.sm??4),o=Math.min(8,e.md??8),s=Math.min(12,e.lg??12),a=c()(n,{[l.Z[`col-sm-${r}`]]:Number.isInteger(r),[l.Z[`col-md-${o}`]]:Number.isInteger(o),[l.Z[`col-lg-${s}`]]:Number.isInteger(s)});return i().createElement("div",{className:a},t)};u.proptypes={className:a().string,sm:a().number.isRequired,md:a().number,lg:a().number};const p=u},2081:(e,t,n)=>{"use strict";n.d(t,{Z:()=>p});var r=n(9196),i=n.n(r),o=n(9105),c=n.n(o),s=n(3698),a=n.n(s),l=n(6222);const u=e=>{const{children:t,fluid:n,className:r}=e,o=`calc( var(--horizontal-spacing) * ${e.horizontalSpacing} )`,s={paddingTop:o,paddingBottom:o,rowGap:`calc( var(--horizontal-spacing) * ${e.horizontalGap} )`},a=c()(r,l.Z.container,{[l.Z.fluid]:n});return i().createElement("div",{className:a,style:s},t)};u.propTypes={fluid:a().bool,className:a().string,horizontalSpacing:a().number,horizontalGap:a().number},u.defaultProps={fluid:!1,horizontalGap:1,horizontalSpacing:1};const p=u},648:(e,t,n)=>{"use strict";n.d(t,{oQ:()=>a,pu:()=>l,dN:()=>u,r7:()=>p,KM:()=>d,VS:()=>g});var r=n(9196),i=n.n(r),o=n(5609),c=n(6686);function s(e){let{className:t,size:n=24,viewBox:r="0 0 24 24",opacity:c=1,color:s="#2C3338",children:a}=e;return i().createElement(o.SVG,{className:t,width:n,height:n,viewBox:r,fill:s,fillRule:"evenodd",clipRule:"evenodd",xmlns:"http://www.w3.org/2000/svg"},i().createElement(o.G,{opacity:c},a))}const a=e=>{let{opacity:t=1,size:n}=e;return i().createElement(s,{size:n,opacity:t},i().createElement(o.Path,{d:"m8.455 21.207 8-17.5-.91-.416-1.261 2.76A4.979 4.979 0 0 0 12 5.5c-1.062 0-2.046.33-2.855.895L7.19 4.44 6.13 5.5l1.926 1.927A4.975 4.975 0 0 0 7.025 10H5v1.5h2V13H5v1.5h2.1a5.001 5.001 0 0 0 1.937 3.028L7.545 20.79l.91.416ZM9.68 16.12A3.492 3.492 0 0 1 8.5 13.5v-3a3.5 3.5 0 0 1 5.159-3.083L9.68 16.121Zm5.675-6.62.81-1.77c.44.663.728 1.436.81 2.269H19v1.5h-2V13h2v1.5h-2.1a5.002 5.002 0 0 1-5.634 3.947l.662-1.448L12 17a3.5 3.5 0 0 0 3.5-3.5v-3a3.5 3.5 0 0 0-.145-.998Z"}))},l=e=>{let{opacity:t=1,size:n}=e;return i().createElement(s,{size:n,opacity:t},i().createElement(o.Path,{d:"m15.82 11.373.013-1.277v-.03c0-1.48-1.352-2.9-3.3-2.9-1.627 0-2.87 1.015-3.205 2.208l-.32 1.143-1.186-.048a2.192 2.192 0 0 0-.089-.002c-1.19 0-2.233 1.008-2.233 2.35 0 1.34 1.04 2.348 2.23 2.35H16.8c.895 0 1.7-.762 1.7-1.8 0-.927-.649-1.643-1.423-1.777l-1.258-.217ZM7.883 8.97l-.15-.003C5.67 8.967 4 10.69 4 12.817c0 2.126 1.671 3.85 3.733 3.85H16.8c1.767 0 3.2-1.478 3.2-3.3 0-1.635-1.154-2.993-2.667-3.255v-.045c0-2.43-2.149-4.4-4.8-4.4-2.237 0-4.118 1.403-4.65 3.303Z",fill:"#000"}))},u=e=>{let{opacity:t=1,size:n}=e;return i().createElement(s,{size:n,opacity:t},i().createElement(o.Path,{d:"m12 3.176 6.75 3.068v4.574c0 3.9-2.504 7.59-6.035 8.755a2.283 2.283 0 0 1-1.43 0c-3.53-1.164-6.035-4.856-6.035-8.755V6.244L12 3.176ZM6.75 7.21v3.608c0 3.313 2.145 6.388 5.005 7.33.159.053.331.053.49 0 2.86-.942 5.005-4.017 5.005-7.33V7.21L12 4.824 6.75 7.21Z"}))},p=e=>{let{size:t,className:n=c.Z["star-icon"]}=e;return i().createElement(s,{className:n,size:t},i().createElement(o.Path,{d:"M12 2l2.582 6.953L22 9.257l-5.822 4.602L18.18 21 12 16.89 5.82 21l2.002-7.14L2 9.256l7.418-.304"}))},d=e=>{let{size:t,className:n=c.Z["checkmark-icon"]}=e;return i().createElement(s,{className:n,size:t},i().createElement(o.Path,{d:"M11 17.768l-4.884-4.884 1.768-1.768L11 14.232l8.658-8.658C17.823 3.39 15.075 2 12 2 6.477 2 2 6.477 2 12s4.477 10 10 10 10-4.477 10-10c0-1.528-.353-2.97-.966-4.266L11 17.768z"}))},m={"anti-spam":a,backup:l,boost:e=>{let{opacity:t=1,size:n}=e;return i().createElement(s,{size:n,opacity:t},i().createElement(o.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M4.19505 16.2545C4.47368 16.561 4.94802 16.5836 5.25451 16.3049L10.2595 11.7549L14.2842 15.2765L19 10.5607V13.75H20.5V9.5V8.75239V8.7476V8H19.7529H19.7471H19H14.75V9.5H17.9393L14.2158 13.2235L10.2405 9.74507L4.2455 15.195C3.93901 15.4737 3.91642 15.948 4.19505 16.2545Z"}))},crm:e=>{let{opacity:t=1,size:n}=e;return i().createElement(s,{size:n,opacity:t},i().createElement(o.Path,{d:"M15.5 9.5a1 1 0 1 0 0-2 1 1 0 0 0 0 2Zm0 1.5a2.5 2.5 0 1 0 0-5 2.5 2.5 0 0 0 0 5Zm-2.25 6v-2a2.75 2.75 0 0 0-2.75-2.75h-4A2.75 2.75 0 0 0 3.75 15v2h1.5v-2c0-.69.56-1.25 1.25-1.25h4c.69 0 1.25.56 1.25 1.25v2h1.5Zm7-2v2h-1.5v-2c0-.69-.56-1.25-1.25-1.25H15v-1.5h2.5A2.75 2.75 0 0 1 20.25 15ZM9.5 8.5a1 1 0 1 1-2 0 1 1 0 0 1 2 0Zm1.5 0a2.5 2.5 0 1 1-5 0 2.5 2.5 0 0 1 5 0Z"}))},extras:e=>{let{opacity:t=1,size:n}=e;return i().createElement(s,{size:n,opacity:t},i().createElement(o.Path,{d:"M18.5 5.5V8H20V5.5h2.5V4H20V1.5h-1.5V4H16v1.5h2.5ZM12 4H6a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-6h-1.5v6a.5.5 0 0 1-.5.5H6a.5.5 0 0 1-.5-.5V6a.5.5 0 0 1 .5-.5h6V4Z"}))},scan:u,search:e=>{let{opacity:t=1,size:n}=e;return i().createElement(s,{size:n,opacity:t},i().createElement(o.Path,{d:"M17.5 11.5a4 4 0 1 1-8 0 4 4 0 0 1 8 0Zm1.5 0a5.5 5.5 0 0 1-9.142 4.121l-3.364 2.943-.988-1.128 3.373-2.952A5.5 5.5 0 1 1 19 11.5Z"}))},star:p,videopress:e=>{let{opacity:t=1,size:n}=e;return i().createElement(s,{size:n,opacity:t},i().createElement(o.Path,{d:"M5.286 4.5h13.428c.434 0 .786.352.786.786v13.428a.786.786 0 0 1-.786.786H5.286a.786.786 0 0 1-.786-.786V5.286c0-.434.352-.786.786-.786ZM3 5.286A2.286 2.286 0 0 1 5.286 3h13.428A2.286 2.286 0 0 1 21 5.286v13.428A2.286 2.286 0 0 1 18.714 21H5.286A2.286 2.286 0 0 1 3 18.714V5.286ZM15 12l-5-3v6l5-3Z"}))}};function g(e){return m[e]?m[e]:null}},92:(e,t,n)=>{"use strict";n.d(t,{ZP:()=>v,H3:()=>k,Dx:()=>E});var r=n(236),i=n.n(r),o=n(9196),c=n.n(o),s=n(3698),a=n.n(s),l=n(9105),u=n.n(l),p=n(5384);const d={"headline-medium":"h1","headline-small":"h2","headline-small-regular":"h2","title-medium":"h3","title-small":"h4",body:"p","body-small":"p","body-extra-small":"p",label:"p"},m={regular:"regular",bold:"bold"},g={medium:"medium",small:"small"},h=["mt","mr","mb","ml","mx","my","m","pt","pr","pb","pl","px","py","p"],f=[0,1,2,3,4,5,6,7,8],y=e=>{let{variant:t,children:n,component:r,className:o,...s}=e;const a=r||d[t]||"span",l=h.reduce(((e,t)=>(void 0!==s[t]&&(e+=p.Z[`${t}-${s[t]}`]+" ",delete s[t]),e)),"");return c().createElement(a,i()({className:u()(p.Z[t],o,l)},s),n)};y.propTypes={variant:a().oneOf(Object.keys(d)),m:a().oneOf(f),mt:a().oneOf(f),mr:a().oneOf(f),mb:a().oneOf(f),ml:a().oneOf(f),mx:a().oneOf(f),my:a().oneOf(f),p:a().oneOf(f),pt:a().oneOf(f),pr:a().oneOf(f),pb:a().oneOf(f),pl:a().oneOf(f),px:a().oneOf(f),py:a().oneOf(f),children:a().node,component:a().oneOfType([a().elementType,a().string])},y.defaultProps={variant:"body",children:null,component:null};const v=y,b=e=>{let{children:t}=e;return c().createElement(y,{variant:"headline-medium",mb:3},t)};b.propTypes={children:a().node},b.defaultProps={children:null};const k=e=>{var t;let{children:n,weight:r="bold"}=e;return r="bold"===r?"":r,c().createElement(y,{variant:"headline-small"+(null!==(t=r)&&void 0!==t&&t.length?`-${r}`:""),mb:3},n)};k.propTypes={weight:a().oneOf(Object.values(m)),children:a().node},k.defaultProps={weight:m.bold,children:null};const E=e=>{let{children:t,size:n="medium"}=e;return c().createElement(y,{variant:`title-${n}`,mb:1},t)};E.propTypes={size:a().oneOf(Object.values(g)),children:a().node},E.defaultProps={size:g.medium}},8337:(e,t,n)=>{"use strict";n.d(t,{ZP:()=>l});var r=n(9196),i=n.n(r);const o={"--font-headline-medium":"48px","--font-headline-small":"36px","--font-title-medium":"24px","--font-title-small":"20px","--font-body":"16px","--font-body-small":"14px","--font-body-extra-small":"12px","--font-title-large":"var(--font-headline-small)","--font-label":"var(--font-body-extra-small)"},c={"--jp-black":"#000000","--jp-black-80":"#2c3338","--jp-white":"#ffffff","--jp-white-off":"#f9f9f6","--jp-gray":"#dcdcde","--jp-gray-0":"#F6F7F7","--jp-gray-10":"#C3C4C7","--jp-gray-20":"#A7AAAD","--jp-gray-40":"#787C82","--jp-gray-50":"#646970","--jp-gray-60":"#50575E","--jp-gray-80":"#2C3338","--jp-gray-off":"#e2e2df","--jp-red-0":"#F7EBEC","--jp-red-50":"#D63638","--jp-red-60":"#B32D2E","--jp-red-80":"#8A2424","--jp-red":"#d63639","--jp-pink":"#C9356E","--jp-green-0":"#f0f2eb","--jp-green-5":"#d0e6b8","--jp-green-10":"#9dd977","--jp-green-20":"#64ca43","--jp-green-30":"#2fb41f","--jp-green-40":"#069e08","--jp-green-50":"#008710","--jp-green-60":"#007117","--jp-green-70":"#005b18","--jp-green-80":"#004515","--jp-green-90":"#003010","--jp-green-100":"#001c09","--jp-green":"#069e08","--jp-green-primary":"var( --jp-green-40 )","--jp-green-secondary":"var( --jp-green-30 )"},s={"--jp-border-radius":"4px","--jp-menu-border-height":"1px","--jp-underline-thickness":"2px"},a={"--spacing-base":"8px"},l=e=>{let{children:t=null}=e;return(0,r.useLayoutEffect)((()=>{(()=>{const e=document.getElementById("jetpack-theme-provider"),t={...o,...c,...s,...a};for(const n in t)e.style.setProperty(n,t[n])})()}),[]),i().createElement("div",{id:"jetpack-theme-provider"},t)}},4481:(e,t,n)=>{"use strict";function r(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n={};let r;var i;"undefined"!=typeof window&&(r=null===(i=window.Initial_State)||void 0===i?void 0:i.calypsoEnv);if(0===e.search("https://")){const t=new URL(e);e=`https://${t.host}${t.pathname}`,n.url=encodeURIComponent(e)}else n.source=encodeURIComponent(e);Object.keys(t).map((e=>{n[e]=encodeURIComponent(t[e])})),!Object.keys(n).includes("site")&&"undefined"!=typeof jetpack_redirects&&jetpack_redirects.hasOwnProperty("currentSiteRawUrl")&&(n.site=jetpack_redirects.currentSiteRawUrl),r&&(n.calypso_env=r);const o=Object.keys(n).map((e=>e+"="+n[e])).join("&");return"https://jetpack.com/redirect/?"+o}n.d(t,{Z:()=>r})},4680:(e,t,n)=>{let r={};try{r=n(4462)}catch{console.error("jetpackConfig is missing in your webpack config file. See @automattic/jetpack-config"),r={missingConfig:!0}}const i=e=>r.hasOwnProperty(e);e.exports={jetpackConfigHas:i,jetpackConfigGet:e=>{if(!i(e))throw'This app requires the "'+e+'" Jetpack Config to be defined in your webpack configuration file. See details in @automattic/jetpack-config package docs.';return r[e]}}},5713:(e,t,n)=>{"use strict";n.d(t,{Z:()=>p});var r=n(9196),i=n.n(r),o=n(3698),c=n.n(o),s=n(5736),a=n(8985),l=n(6509);const __=s.__,u=e=>{const{title:t,buttonLabel:n,apiRoot:r,apiNonce:o,registrationNonce:c,from:s,redirectUri:u,images:p,children:d,assetBaseUrl:m,autoTrigger:g,footer:h}=e,{handleRegisterSite:f,isRegistered:y,isUserConnected:v,siteIsRegistering:b,userIsConnecting:k,registrationError:E}=(0,l.Z)({registrationNonce:c,redirectUri:u,apiRoot:r,apiNonce:o,autoTrigger:g,from:s}),_=!y||!v,j=Boolean(E),w=b||k;return i().createElement(a.Z,{title:t,images:p,assetBaseUrl:m,showConnectButton:_,buttonLabel:n,handleButtonClick:f,displayButtonError:j,buttonIsLoading:w,footer:h},d)};u.propTypes={title:c().string,buttonLabel:c().string,apiRoot:c().string.isRequired,apiNonce:c().string.isRequired,registrationNonce:c().string.isRequired,from:c().string,redirectUri:c().string.isRequired,autoTrigger:c().bool,images:c().arrayOf(c().string),assetBaseUrl:c().string},u.defaultProps={title:__("Over 5 million WordPress sites are faster and more secure","jetpack-my-jetpack"),buttonLabel:__("Set up Jetpack","jetpack-my-jetpack"),images:[],redirectUri:null,autoTrigger:!1};const p=u},8985:(e,t,n)=>{"use strict";n.d(t,{Z:()=>g});var r=n(9196),i=n.n(r),o=n(3698),c=n.n(o),s=n(5736),a=n(4481),l=n(4696),u=n(9307),p=n(3509);n(5797);const __=s.__,d=(0,u.createInterpolateElement)(__("By clicking the button above, you agree to our <tosLink>Terms of Service</tosLink> and to <shareDetailsLink>share details</shareDetailsLink> with WordPress.com.","jetpack-my-jetpack"),{tosLink:i().createElement("a",{href:(0,a.Z)("wpcom-tos"),rel:"noopener noreferrer",target:"_blank"}),shareDetailsLink:i().createElement("a",{href:(0,a.Z)("jetpack-support-what-data-does-jetpack-sync"),rel:"noopener noreferrer",target:"_blank"})}),m=e=>{const{title:t,images:n,children:r,assetBaseUrl:o,isLoading:c,showConnectButton:s,buttonLabel:a,handleButtonClick:u,displayButtonError:m,buttonIsLoading:g,footer:h}=e;return i().createElement(p.Z,{title:t,assetBaseUrl:o,images:n,className:"jp-connection__connect-screen"+(c?" jp-connection__connect-screen__loading":"")},i().createElement("div",{className:"jp-connection__connect-screen__content"},r,s&&i().createElement(i().Fragment,null,i().createElement(l.Z,{label:a,onClick:u,displayError:m,isLoading:g}),i().createElement("div",{className:"jp-connection__connect-screen__tos"},d)),h&&i().createElement("div",{className:"jp-connection__connect-screen__footer"},h)))};m.propTypes={title:c().string,images:c().arrayOf(c().string),assetBaseUrl:c().string,isLoading:c().bool,showConnectButton:c().bool,buttonLabel:c().string.isRequired,handleButtonClick:c().func,displayButtonError:c().bool,buttonIsLoading:c().bool,footer:c().node},m.defaultProps={showConnectButton:!0,isLoading:!1,buttonIsLoading:!1,displayButtonError:!1,handleButtonClick:()=>{},footer:null};const g=m},9562:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var r=n(9196),i=n.n(r),o=n(3698),c=n.n(o);const s=e=>{const{images:t,assetBaseUrl:n}=e;if(!t.length)return null;const r=t.map(((e,t)=>i().createElement(i().Fragment,{key:t},i().createElement("img",{src:n+e,alt:""}))));return i().createElement("div",{className:"jp-connection__connect-screen__image-slider"},r)};s.propTypes={images:c().arrayOf(c().string).isRequired,assetBaseUrl:c().string},s.defaultProps={assetBaseUrl:""};const a=s},3509:(e,t,n)=>{"use strict";n.d(t,{Z:()=>u});var r=n(9196),i=n.n(r),o=n(3698),c=n.n(o),s=n(5482),a=n(9562);n(4091);const l=e=>{const{title:t,children:n,className:r,assetBaseUrl:o,images:c}=e,l=null==c?void 0:c.length;return i().createElement("div",{className:"jp-connection__connect-screen-layout"+(l?" jp-connection__connect-screen-layout__two-columns":"")+(r?" "+r:"")},i().createElement("div",{className:"jp-connection__connect-screen-layout__left"},i().createElement(s.Z,null),i().createElement("h2",null,t),n),l?i().createElement("div",{className:"jp-connection__connect-screen-layout__right"},i().createElement(a.Z,{images:c,assetBaseUrl:o})):null)};l.propTypes={title:c().string,className:c().string,images:c().arrayOf(c().string),assetBaseUrl:c().string};const u=l},7143:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var r=n(9196),i=n(3698),o=n.n(i),c=n(488);const s=e=>{const{redirectFunc:t,connectUrl:n,redirectUri:i,from:o}=e,[s,a]=(0,r.useState)(null);return n&&n!==s&&a(n),(0,r.useEffect)((()=>{s||c.ZP.fetchAuthorizationUrl(i).then((e=>a(e.authorizeUrl))).catch((e=>{throw e}))}),[]),s?(t(s+(o?(s.includes("?")?"&":"?")+"from="+encodeURIComponent(o):"")),null):null};s.propTypes={connectUrl:o().string,redirectUri:o().string.isRequired,from:o().string,redirectFunc:o().func},s.defaultProps={redirectFunc:e=>window.location.assign(e),redirectUri:null};const a=s},5096:(e,t,n)=>{"use strict";n.d(t,{Z:()=>u});var r=n(9196),i=n.n(r),o=n(3698),c=n.n(o),s=n(5736),a=n(7095);const __=s.__,l=e=>{const{connectedPlugins:t,disconnectingPlugin:n}=e,o=(0,r.useMemo)((()=>{if(t){return Object.keys(t).map((e=>Object.assign({slug:e},t[e]))).filter((e=>n!==e.slug))}return[]}),[t,n]);return t&&o.length>0?i().createElement(i().Fragment,null,i().createElement("div",{className:"jp-connection__disconnect-dialog__step-copy"},i().createElement("p",{className:"jp-connection__disconnect-dialog__large-text"},__("Jetpack is powering other plugins on your site. If you disconnect, these plugins will no longer work.","jetpack-my-jetpack"))),i().createElement("div",{className:"jp-connection__disconnect-card__group"},o.map((e=>i().createElement(a.Z,{title:e.name,key:e.slug}))))):null};l.propTypes={connectedPlugins:c().object,disconnectingPlugin:c().string};const u=l},3607:(e,t,n)=>{"use strict";n.d(t,{Z:()=>y});var r=n(9196),i=n.n(r),o=n(5736),c=n(5609),s=n(3698),a=n.n(s),l=n(488),u=n(92),p=n(9818),d=n(7143),m=n(8875),g=n(8310),h=n(6509);n(4765);const __=o.__,f=e=>{var t,n,o,s;const{apiRoot:a,apiNonce:f,redirectUri:y,title:v,connectionInfoText:b,onDisconnected:k,connectedPlugins:E,connectedSiteId:_,context:j,onConnectUser:w,requiresUserConnection:C}=e,{isRegistered:Z,isUserConnected:S,userConnectionData:P,hasConnectedOwner:N}=(0,h.Z)({apiRoot:a,apiNonce:f}),x=(0,r.useRef)(),O=null===(t=P.currentUser)||void 0===t||null===(n=t.wpcomUser)||void 0===n?void 0:n.avatar;(0,r.useEffect)((()=>{O&&(x.current.style.backgroundImage=`url('${O}')`)}),[O]);const[R,T]=(0,r.useState)(!1),A=(0,p.useSelect)((e=>e(g.t).getUserIsConnecting()),[]),{setConnectionStatus:F,setUserIsConnecting:L}=(0,p.useDispatch)(g.t),U=w||L;(0,r.useEffect)((()=>{l.ZP.setApiRoot(a),l.ZP.setApiNonce(f)}),[a,f]);const I=(0,r.useCallback)((e=>{e&&e.preventDefault(),T(!0)}),[T]),D=(0,r.useCallback)((e=>{e&&e.preventDefault(),T(!1)}),[T]),M=(0,r.useCallback)((e=>{e&&e.preventDefault(),F({isActive:!1,isRegistered:!1,isUserConnected:!1}),k&&"[object Function]"==={}.toString.call(k)&&k()}),[k,F]);return Z?i().createElement("div",{className:"jp-connection-status-card"},i().createElement(u.H3,null,v),i().createElement(u.ZP,{variant:"body"},b),i().createElement("div",{className:"jp-connection-status-card--status"},i().createElement("div",{className:"jp-connection-status-card--cloud"}),i().createElement("div",{className:"jp-connection-status-card--line"+(S?"":" jp-connection-status-card--site-only")}),i().createElement("div",{className:"jp-connection-status-card--jetpack-logo"}),i().createElement("div",{className:"jp-connection-status-card--avatar",ref:x})),i().createElement("ul",{className:"jp-connection-status-card--list"},i().createElement("li",{className:"jp-connection-status-card--list-item-success"},__("Site connected.","jetpack-my-jetpack")," ",i().createElement(c.Button,{variant:"link",onClick:I,className:"jp-connection__disconnect-dialog__link"},__("Disconnect","jetpack-my-jetpack")),i().createElement(m.Z,{apiRoot:a,apiNonce:f,onDisconnected:M,connectedPlugins:E,connectedSiteId:_,connectedUser:P,isOpen:R,onClose:D,context:j})),S&&i().createElement("li",{className:"jp-connection-status-card--list-item-success"},__("Logged in as","jetpack-my-jetpack")," ",null===(o=P.currentUser)||void 0===o||null===(s=o.wpcomUser)||void 0===s?void 0:s.display_name),!N&&i().createElement("li",{className:"jp-connection-status-card--list-item-"+(C?"error":"info")},C&&__("Requires user connection.","jetpack-my-jetpack")," ",i().createElement(c.Button,{variant:"link",disabled:A,onClick:U,className:"jp-connection-status-card--btn-connect-user"},__("Connect your user account","jetpack-my-jetpack")))),A&&i().createElement(d.Z,{redirectUri:y})):null};f.propTypes={apiRoot:a().string.isRequired,apiNonce:a().string.isRequired,redirectUri:a().string,connectedPlugins:a().object,connectedSiteId:a().number,title:a().string,connectionInfoText:a().string,onDisconnected:a().func,context:a().string,onConnectUser:a().func,requiresUserConnection:a().bool},f.defaultProps={title:__("Connection","jetpack-my-jetpack"),connectionInfoText:__("Leverages the cloud for more powerful Jetpack features.","jetpack-my-jetpack"),redirectUri:null,onConnectUser:null,requiresUserConnection:!0};const y=f},7095:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var r=n(9196),i=n.n(r),o=n(3698),c=n.n(o);n(7906);const s=e=>{const{title:t,value:n,description:r}=e;return i().createElement("div",{className:"jp-connection__disconnect-card card"},i().createElement("div",{className:"jp-connection__disconnect-card__card-content"},i().createElement("p",{className:"jp-connection__disconnect-card__card-headline"},t),(n||r)&&i().createElement("div",{className:"jp-connection__disconnect-card__card-stat-block"},i().createElement("span",{className:"jp-connection__disconnect-card__card-stat"},n),i().createElement("div",{className:"jp-connection__disconnect-card__card-description"},r))))};s.propTypes={title:c().string,value:c().oneOfType([c().string,c().number]),description:c().number};const a=s},8875:(e,t,n)=>{"use strict";n.d(t,{Z:()=>y});var r=n(9196),i=n.n(r),o=n(3698),c=n.n(o),s=n(5736),a=n(5609),l=n(488),u=n(5325),p=n(4680),d=(n(5755),n(1945)),m=n(2365),g=n(5125),h=n(7343);const __=s.__,f=e=>{const[t,n]=(0,r.useState)(!1),[o,c]=(0,r.useState)(!1),[s,f]=(0,r.useState)(!1),[y,v]=(0,r.useState)(!1),[b,k]=(0,r.useState)(!1),[E,_]=(0,r.useState)(!1),{apiRoot:j,apiNonce:w,connectedPlugins:C,title:Z,pluginScreenDisconnectCallback:S,onDisconnected:P,onError:N,disconnectStepComponent:x,context:O,connectedUser:R,connectedSiteId:T,isOpen:A,onClose:F}=e;let L="";(0,p.jetpackConfigHas)("consumer_slug")&&(L=(0,p.jetpackConfigGet)("consumer_slug"));const U=(0,r.useMemo)((()=>({context:O,plugin:L})),[O,L]);(0,r.useEffect)((()=>{l.ZP.setApiRoot(j),l.ZP.setApiNonce(w)}),[j,w]),(0,r.useEffect)((()=>{R&&R.ID&&R.login&&u.Z.initialize(R.ID,R.login)}),[R,R.ID,R.login]),(0,r.useEffect)((()=>{A&&u.Z.tracks.recordEvent("jetpack_disconnect_dialog_open",U)}),[A,U]),(0,r.useEffect)((()=>{A&&(o?!o||y||b?y&&!b?u.Z.tracks.recordEvent("jetpack_disconnect_dialog_step",Object.assign({},{step:"survey"},U)):b&&u.Z.tracks.recordEvent("jetpack_disconnect_dialog_step",Object.assign({},{step:"thank_you"},U)):u.Z.tracks.recordEvent("jetpack_disconnect_dialog_step",Object.assign({},{step:"disconnect_confirm"},U)):u.Z.tracks.recordEvent("jetpack_disconnect_dialog_step",Object.assign({},{step:"disconnect"},U)))}),[A,o,y,b,U]);const I=(0,r.useCallback)((()=>{l.ZP.disconnectSite().then((()=>{n(!1),c(!0)})).catch((e=>{n(!1),f(e),N&&N(e)}))}),[n,c,f,N]),D=(0,r.useCallback)(((e,t)=>{_(!0),fetch("https://public-api.wordpress.com/wpcom/v2/marketing/feedback-survey",{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify(e)}).then((e=>e.json())).then((e=>{if(!0!==e.success)throw new Error("Survey endpoint returned error code "+e.code);u.Z.tracks.recordEvent("jetpack_disconnect_survey_submit",t),k(!0),_(!1)})).catch((e=>{u.Z.tracks.recordEvent("jetpack_disconnect_survey_error",Object.assign({},{error:e.message},t)),k(!0),_(!1)}))}),[_,k]),M=(0,r.useCallback)((e=>{e&&e.preventDefault(),f(!1),n(!0),"plugins"!==O?I():S&&S(e)}),[f,n,S,O,I]),z=(0,r.useCallback)((e=>u.Z.tracks.recordEvent(e,U)),[U]),B=(0,r.useCallback)((()=>R.ID&&T),[R,T]),V=(0,r.useCallback)(((e,t,n)=>{if(n&&n.preventDefault(),!B())return void k(!0);const r={site_id:T,user_id:R.ID,survey_id:"jetpack-plugin-disconnect",survey_responses:{"why-cancel":{response:e,text:t||null}}},i=Object.assign({},U,{disconnect_reason:e});D(r,i)}),[D,k,B,T,R,U]),H=(0,r.useCallback)((e=>{e&&e.preventDefault(),P&&P(),F()}),[P,F]),$=(0,r.useCallback)((e=>{e&&e.preventDefault(),v(!0)}),[v]);return i().createElement(i().Fragment,null,A&&i().createElement(a.Modal,{title:"",contentLabel:Z,aria:{labelledby:"jp-connection__disconnect-dialog__heading"},onRequestClose:F,shouldCloseOnClickOutside:!1,shouldCloseOnEsc:!1,isDismissible:!1,className:"jp-connection__disconnect-dialog"+(o?" jp-connection__disconnect-dialog__success":"")},o?!o||y||b?y&&!b?i().createElement(g.Z,{isSubmittingFeedback:E,onFeedBackProvided:V,onExit:H}):b?i().createElement(h.Z,{onExit:H}):void 0:i().createElement(m.Z,{canProvideFeedback:B(),onProvideFeedback:$,onExit:H}):i().createElement(d.Z,{title:Z,connectedPlugins:C,disconnectStepComponent:x,isDisconnecting:t,closeModal:F,onDisconnect:M,disconnectError:s,context:O,disconnectingPlugin:L,trackModalClick:z})))};f.propTypes={apiRoot:c().string.isRequired,apiNonce:c().string.isRequired,title:c().string,onDisconnected:c().func,onError:c().func,context:c().string,connectedPlugins:c().object,pluginScreenDisconnectCallback:c().func,disconnectStepComponent:c().element,connectedUser:c().object,connectedSiteId:c().number,isOpen:c().bool,onClose:c().func},f.defaultProps={title:__("Are you sure you want to disconnect?","jetpack-my-jetpack"),context:"jetpack-dashboard",connectedUser:{}};const y=f},2365:(e,t,n)=>{"use strict";n.d(t,{Z:()=>m});var r=n(9196),i=n.n(r),o=n(3698),c=n.n(o),s=n(9307),a=n(5736),l=n(5609),u=n(8640),p=n(2042);const __=a.__,d=e=>{const{onExit:t,canProvideFeedback:n,onProvideFeedback:r}=e;return i().createElement("div",{className:"jp-connection__disconnect-dialog__content"},i().createElement(u.Z,{icon:"unlink",imageUrl:p}),i().createElement("div",{className:"jp-connection__disconnect-dialog__step-copy jp-connection__disconnect-dialog__step-copy--narrow"},i().createElement("h1",null,(0,s.createInterpolateElement)(__("Jetpack has been <br/>successfully disconnected.","jetpack-my-jetpack"),{br:i().createElement("br",null)})),n&&i().createElement(i().Fragment,null,i().createElement("p",null,__("We’re sorry to see you go. Here at Jetpack, we’re always striving to provide the best experience for our customers. Please take our short survey (2 minutes, promise).","jetpack-my-jetpack")),i().createElement("p",null,i().createElement(l.Button,{variant:"primary",onClick:r,className:"jp-connection__disconnect-dialog__btn-back-to-wp"},__("Help us improve","jetpack-my-jetpack"))),i().createElement("a",{className:"jp-connection__disconnect-dialog__link jp-connection__disconnect-dialog__link--bold",href:"#",onClick:t},__("No thank you","jetpack-my-jetpack"))),!n&&i().createElement(i().Fragment,null,i().createElement("p",null,i().createElement(l.Button,{variant:"primary",onClick:t,className:"jp-connection__disconnect-dialog__btn-back-to-wp"},__("Back to my website","jetpack-my-jetpack"))))))};d.PropTypes={onExit:c().func,onProvideFeedback:c().func,canProvideFeedback:c().bool};const m=d},1945:(e,t,n)=>{"use strict";n.d(t,{Z:()=>m});var r=n(9196),i=n.n(r),o=n(9307),c=n(5736),s=n(4481),a=n(5609),l=n(3698),u=n.n(l),p=n(5096);const __=c.__,d=e=>{const{title:t,isDisconnecting:n,onDisconnect:c,disconnectError:l,disconnectStepComponent:u,connectedPlugins:d,disconnectingPlugin:m,closeModal:g,context:h,trackModalClick:f}=e,y=(0,r.useCallback)((()=>f("jetpack_disconnect_dialog_click_learn_about")),[f]),v=(0,r.useCallback)((()=>f("jetpack_disconnect_dialog_click_support")),[f]),b=(0,r.useCallback)((()=>{f("jetpack_disconnect_dialog_click_stay_connected"),g()}),[f,g]),k=(0,r.useCallback)((e=>{f("jetpack_disconnect_dialog_click_disconnect"),c(e)}),[f,c]);return i().createElement(i().Fragment,null,i().createElement("div",{className:"jp-connection__disconnect-dialog__content"},i().createElement("h1",{id:"jp-connection__disconnect-dialog__heading"},t),i().createElement(p.Z,{connectedPlugins:d,disconnectingPlugin:m}),u,(()=>{if(!(d&&Object.keys(d).filter((e=>e!==m)).length)&&!u)return i().createElement("div",{className:"jp-connection__disconnect-dialog__step-copy"},i().createElement("p",{className:"jp-connection__disconnect-dialog__large-text"},__("Jetpack is currently powering multiple products on your site.","jetpack-my-jetpack"),i().createElement("br",null),__("Once you disconnect Jetpack, these will no longer work.","jetpack-my-jetpack")))})()),i().createElement("div",{className:"jp-connection__disconnect-dialog__actions"},i().createElement("div",{className:"jp-row"},i().createElement("div",{className:"lg-col-span-7 md-col-span-8 sm-col-span-4"},i().createElement("p",null,(0,o.createInterpolateElement)(__("<strong>Need help?</strong> Learn more about the <jpConnectionInfoLink>Jetpack connection</jpConnectionInfoLink> or <jpSupportLink>contact Jetpack support</jpSupportLink>.","jetpack-my-jetpack"),{strong:i().createElement("strong",null),jpConnectionInfoLink:i().createElement("a",{href:(0,s.Z)("why-the-wordpress-com-connection-is-important-for-jetpack"),rel:"noopener noreferrer",target:"_blank",className:"jp-connection__disconnect-dialog__link",onClick:y}),jpSupportLink:i().createElement("a",{href:(0,s.Z)("jetpack-support"),rel:"noopener noreferrer",target:"_blank",className:"jp-connection__disconnect-dialog__link",onClick:v})}))),i().createElement("div",{className:"jp-connection__disconnect-dialog__button-wrap lg-col-span-5 md-col-span-8 sm-col-span-4"},i().createElement(a.Button,{variant:"primary",disabled:n,onClick:b,className:"jp-connection__disconnect-dialog__btn-dismiss"},__("Stay connected","jetpack-my-jetpack")),(()=>{let e=__("Disconnect","jetpack-my-jetpack");return n?e=__("Disconnecting…","jetpack-my-jetpack"):"plugins"===h&&(e=__("Disconnect and Deactivate","jetpack-my-jetpack")),i().createElement(a.Button,{variant:"primary",disabled:n,onClick:k,className:"jp-connection__disconnect-dialog__btn-disconnect"},e)})())),l&&i().createElement("p",{className:"jp-connection__disconnect-dialog__error"},l)))};d.propTypes={title:u().string,isDisconnecting:u().bool,onDisconnect:u().func,disconnectError:u().bool,disconnectStepComponent:u().elementType,connectedPlugins:u().object,disconnectingPlugin:u().string,closeModal:u().func,context:u().string,trackModalClick:u().func};const m=d},5125:(e,t,n)=>{"use strict";n.d(t,{Z:()=>u});var r=n(9196),i=n.n(r),o=n(3698),c=n.n(o),s=n(5736),a=(n(5934),n(6543));const __=s.__,l=e=>{const{onExit:t,onFeedBackProvided:n,isSubmittingFeedback:r}=e;return i().createElement("div",{className:"jp-connection__disconnect-dialog__content"},i().createElement("h1",null,__("Before you go, help us improve Jetpack","jetpack-my-jetpack")),i().createElement("p",{className:"jp-connection__disconnect-dialog__large-text"},__("Let us know what didn‘t work for you","jetpack-my-jetpack")),i().createElement(a.Z,{onSubmit:n,isSubmittingFeedback:r}),i().createElement("a",{className:"jp-connection__disconnect-dialog__link jp-connection__disconnect-dialog__link--bold",href:"#",onClick:t},__("Skip for now","jetpack-my-jetpack")))};l.PropTypes={onExit:c().func,onFeedBackProvided:c().func,isSubmittingFeedback:c().bool};const u=l},7343:(e,t,n)=>{"use strict";n.d(t,{Z:()=>m});var r=n(9196),i=n.n(r),o=n(3698),c=n.n(o),s=n(8640),a=n(5736),l=n(5609),u=n(9307),p=n(724);const __=a.__,d=e=>{const{onExit:t}=e;return i().createElement("div",{className:"jp-connection__disconnect-dialog__content"},i().createElement(s.Z,{format:"vertical",imageUrl:p}),i().createElement("div",{className:"jp-connection__disconnect-dialog__copy"},i().createElement("h1",null,__("Thank you!","jetpack-my-jetpack")),i().createElement("p",{className:"jp-connection__disconnect-dialog__large-text"},(0,u.createInterpolateElement)(__("Your answer has been submitted. <br/>Thanks for your input on how we can improve Jetpack.","jetpack-my-jetpack"),{br:i().createElement("br",null)})),i().createElement(l.Button,{variant:"primary",onClick:t,className:"jp-connection__disconnect-dialog__btn-back-to-wp"},__("Back to my website","jetpack-my-jetpack"))))};d.PropTypes={onExit:c().func,assetBaseUrl:c().string};const m=d},6543:(e,t,n)=>{"use strict";n.d(t,{Z:()=>p});var r=n(9196),i=n.n(r),o=n(3698),c=n.n(o),s=n(5609),a=n(5736),l=n(8986);const __=a.__,u=e=>{const{onSubmit:t,isSubmittingFeedback:n}=e,[o,c]=(0,r.useState)(),[a,u]=(0,r.useState)(),p=[{id:"troubleshooting",answerText:__("Troubleshooting - I'll be reconnecting afterwards.","jetpack-my-jetpack")},{id:"not-working",answerText:__("I can't get it to work.","jetpack-my-jetpack")},{id:"slowed-down-site",answerText:__("It slowed down my site.","jetpack-my-jetpack")},{id:"buggy",answerText:__("It's buggy.","jetpack-my-jetpack")},{id:"what-does-it-do",answerText:__("I don't know what it does.","jetpack-my-jetpack")}],d="another-reason",m=(0,r.useCallback)((()=>{t(o,o===d?a:"")}),[t,d,a,o]),g=(0,r.useCallback)((e=>{const t=e.target.value;e.stopPropagation(),u(t)}),[u]),h=e=>e===o?"jp-connect__disconnect-survey-card--selected":"",f=(0,r.useCallback)(((e,t)=>{switch(t.key){case"Enter":case"Space":case"Spacebar":case" ":c(e)}}),[c]);return i().createElement(i().Fragment,null,i().createElement("div",{className:"jp-connection__disconnect-dialog__survey"},p.map((e=>i().createElement(l.Z,{id:e.id,onClick:c,onKeyDown:f,className:"card jp-connect__disconnect-survey-card "+h(e.id)},i().createElement("p",{className:"jp-connect__disconnect-survey-card__answer"},e.answerText)))),i().createElement(l.Z,{id:d,onClick:c,onKeyDown:f,className:"card jp-connect__disconnect-survey-card "+h(d)},i().createElement("p",{className:"jp-connect__disconnect-survey-card__answer"},__("Other:","jetpack-my-jetpack")," ",i().createElement("input",{placeholder:__("share your experience","jetpack-my-jetpack"),className:"jp-connect__disconnect-survey-card__input",type:"text",value:a,onChange:g,maxLength:1e3})))),i().createElement("p",null,i().createElement(s.Button,{disabled:!o||n,variant:"primary",onClick:m,className:"jp-connection__disconnect-dialog__btn-back-to-wp"},n?__("Submitting…","jetpack-my-jetpack"):__("Submit Feedback","jetpack-my-jetpack",0))))};u.PropTypes={onSubmit:c().func,isSubmittingFeedback:c().bool};const p=u},8986:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(9196),i=n.n(r);n(5934);const o=e=>{const{id:t,onClick:n,onKeyDown:o,children:c,className:s}=e,a=(0,r.useCallback)((()=>{n(t)}),[t,n]),l=(0,r.useCallback)((e=>{o(t,e)}),[t,o]);return i().createElement("div",{tabIndex:"0",role:"button",onClick:a,onKeyDown:l,className:"card jp-connect__disconnect-survey-card "+s},c)}},6509:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(9196),i=n(9818),o=n(488),c=n(8310);const s=e=>{let{registrationNonce:t,redirectUri:n,apiRoot:s,apiNonce:a,autoTrigger:l,from:u}=e;const{registerSite:p,connectUser:d}=(0,i.useDispatch)(c.t),m=(0,i.useSelect)((e=>e(c.t).getRegistrationError())),{siteIsRegistering:g,userIsConnecting:h,userConnectionData:f,isRegistered:y,isUserConnected:v,hasConnectedOwner:b}=(0,i.useSelect)((e=>({siteIsRegistering:e(c.t).getSiteIsRegistering(),userIsConnecting:e(c.t).getUserIsConnecting(),userConnectionData:e(c.t).getUserConnectionData(),...e(c.t).getConnectionStatus()}))),k=()=>d({from:u,redirectUri:n}),E=e=>{e&&e.preventDefault(),y?k():p({registrationNonce:t,redirectUri:n}).then((()=>{k()}))};return(0,r.useEffect)((()=>{o.ZP.setApiRoot(s),o.ZP.setApiNonce(a)}),[s,a]),(0,r.useEffect)((()=>{!l||g||h||E()}),[]),{handleRegisterSite:E,handleConnectUser:k,isRegistered:y,isUserConnected:v,siteIsRegistering:g,userIsConnecting:h,registrationError:m,userConnectionData:f,hasConnectedOwner:b}}},3757:(e,t,n)=>{"use strict";n.d(t,{i6:()=>r,LI:()=>i,r7:()=>o,N4:()=>c,qV:()=>s,T1:()=>a,TS:()=>l,ZP:()=>y});const r="SET_CONNECTION_STATUS",i="SET_CONNECTION_STATUS_IS_FETCHING",o="SET_SITE_IS_REGISTERING",c="SET_USER_IS_CONNECTING",s="SET_REGISTRATION_ERROR",a="CLEAR_REGISTRATION_ERROR",l="SET_AUTHORIZATION_URL",u="CONNECT_USER",p=e=>({type:r,connectionStatus:e}),d=e=>({type:o,isRegistering:e}),m=e=>({type:c,isConnecting:e}),g=e=>({type:s,registrationError:e}),h=()=>({type:a}),f=e=>({type:l,authorizationUrl:e});const y={setConnectionStatus:p,setConnectionStatusIsFetching:e=>({type:i,isFetching:e}),fetchConnectionStatus:()=>({type:"FETCH_CONNECTION_STATUS"}),fetchAuthorizationUrl:e=>({type:"FETCH_AUTHORIZATION_URL",redirectUri:e}),setSiteIsRegistering:d,setUserIsConnecting:m,setRegistrationError:g,clearRegistrationError:h,setAuthorizationUrl:f,registerSite:function*(e){let{registrationNonce:t,redirectUri:n}=e;yield h(),yield d(!0);try{const e=yield{type:"REGISTER_SITE",registrationNonce:t,redirectUri:n};return yield p({isRegistered:!0}),yield f(e.authorizeUrl),yield d(!1),Promise.resolve(e)}catch(e){return yield g(e),yield d(!1),Promise.reject(e)}},connectUser:function*(){let{from:e,redirectFunc:t,redirectUri:n}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};yield m(!0),yield{type:u,from:e,redirectFunc:t,redirectUri:n}}}},1376:(e,t,n)=>{"use strict";n.d(t,{Z:()=>c});var r=n(488),i=n(9818),o=n(8310);const c={FETCH_AUTHORIZATION_URL:e=>{let{redirectUri:t}=e;return r.ZP.fetchAuthorizationUrl(t)},REGISTER_SITE:e=>{let{registrationNonce:t,redirectUri:n}=e;return r.ZP.registerSite(t,n)},CONNECT_USER:(0,i.createRegistryControl)((e=>{let{resolveSelect:t}=e;return function(){let{from:e,redirectFunc:n,redirectUri:r}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new Promise(((i,c)=>{t(o.t).getAuthorizationUrl(r).then((t=>{const r=n||(e=>window.location.assign(e)),o=new URL(t);e&&o.searchParams.set("from",encodeURIComponent(e));const c=o.toString();r(c),i(c)})).catch((e=>{c(e)}))}))}}))}},6550:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(9818),i=n(3757);const o=(0,r.combineReducers)({connectionStatus:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;return t.type===i.i6?{...e,...t.connectionStatus}:e},connectionStatusIsFetching:function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1?arguments[1]:void 0;return t.type===i.LI?t.isFetching:e},siteIsRegistering:function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1?arguments[1]:void 0;return t.type===i.r7?t.isRegistering:e},userIsConnecting:function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1?arguments[1]:void 0;return t.type===i.N4?t.isConnecting:e},registrationError:(e,t)=>{switch(t.type){case i.T1:return!1;case i.qV:return t.registrationError;default:return e}},authorizationUrl:(e,t)=>t.type===i.TS?t.authorizationUrl:e,userConnectionData:(e,t)=>(t.type,e)})},5075:(e,t,n)=>{"use strict";n.d(t,{Z:()=>c});var r=n(9818),i=n(3757),o=n(8310);const c={...{getAuthorizationUrl:{isFulfilled:function(e){const t=Boolean(e.authorizationUrl);for(var n=arguments.length,i=new Array(n>1?n-1:0),c=1;c<n;c++)i[c-1]=arguments[c];const s=(0,r.select)(o.t).hasFinishedResolution("getAuthorizationUrl",i);return t&&!s&&(0,r.dispatch)(o.t).finishResolution("getAuthorizationUrl",i),t},*fulfill(e){const t=yield i.ZP.fetchAuthorizationUrl(e);yield i.ZP.setAuthorizationUrl(t.authorizeUrl)}}}}},52:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});const r={getConnectionStatus:e=>e.connectionStatus||{},getConnectionStatusIsFetching:()=>!1,getSiteIsRegistering:e=>e.siteIsRegistering||!1,getUserIsConnecting:e=>e.userIsConnecting||!1,getRegistrationError:e=>e.registrationError||!1,getAuthorizationUrl:e=>e.authorizationUrl||!1,getUserConnectionData:e=>e.userConnectionData||!1}},2966:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(4502),i=n.n(r),o=n(9818);class c{static mayBeInit(e,t){null===c.store&&(c.store=(0,o.createReduxStore)(e,t),(0,o.register)(c.store))}}i()(c,"store",null);const s=c},8310:(e,t,n)=>{"use strict";n.d(t,{t:()=>l});var r=n(6550),i=n(3757),o=n(52),c=n(5075),s=n(1376),a=n(2966);const l="jetpack-connection",u=window.JP_CONNECTION_INITIAL_STATE;u||console.error("Jetpack Connection package: Initial state is missing. Check documentation to see how to use the Connection composer package to set up the initial state."),a.Z.mayBeInit(l,{reducer:r.Z,actions:i.ZP,selectors:o.Z,resolvers:c.Z,controls:s.Z,initialState:u||{}})},2756:(e,t,n)=>{"use strict";n.d(t,{Z:()=>p});var r=n(9196),i=n.n(r),o=n(7026),c=n(6502),s=n(9417),a=n(9105),l=n.n(a),u=n(5117);const p=e=>{let{className:t}=e;return i().createElement(o.rU,{to:"/",className:l()(u.Z.link,t)},i().createElement(c.Z,{icon:s.Z,className:u.Z.icon}))}},719:(e,t,n)=>{"use strict";n.d(t,{Z:()=>d});var r=n(9196),i=n.n(r),o=n(3698),c=n.n(o),s=n(648),a=n(9210),l=n(4408),u=n(334);const p=e=>{let{admin:t,slug:n}=e;const{detail:o,status:c,activate:p,deactivate:d,isFetching:m}=(0,l.i)(n),{name:g,description:h,manageUrl:f}=o,y=(0,u.Z)("/connection"),v=(0,u.Z)(`add-${n}`),b=(0,r.useCallback)((()=>{window.location=f}),[f]),k=(0,s.VS)(n);return i().createElement(a.Z,{name:g,description:h,status:c,icon:i().createElement(k,{opacity:.4}),admin:t,isFetching:m,onDeactivate:d,slug:n,onActivate:p,onAdd:v,onFixConnection:y,onManage:b})};p.propTypes={admin:c().bool.isRequired,slug:c().string.isRequired};const d=p},5757:(e,t,n)=>{"use strict";n.d(t,{Z:()=>E});var r=n(9196),i=n.n(r),o=n(5736),c=n(5713),s=n(9107),a=n(2081),l=n(1129),u=n(4481),p=n(6502),d=n(1455),m=n(2756),g=n(4235),h=n(4997),f=n(184),y=n(5242),v=n(6790),b=n(8893);const __=o.__,k=()=>i().createElement(i().Fragment,null,i().createElement("div",{className:b.Z["account-description"]},__("You can use your existing account on any of these services:","jetpack-my-jetpack")),i().createElement("span",{className:b.Z["account-images"]},i().createElement("img",{src:h,className:b.Z.wordpress,alt:__("Wordpress Logo","jetpack-my-jetpack")}),i().createElement("img",{src:f,className:b.Z.google,alt:__("Google Logo","jetpack-my-jetpack")}),i().createElement("img",{src:y,className:b.Z.apple,alt:__("Apple Logo","jetpack-my-jetpack")}))),E=()=>{const{apiRoot:e,apiNonce:t}=(0,g.Z)();return i().createElement(s.Z,{showHeader:!1,showBackground:!1},i().createElement(a.Z,{horizontalSpacing:8,horizontalGap:0},i().createElement(l.Z,{className:b.Z["relative-col"]},i().createElement(m.Z,{className:b.Z["close-link"]})),i().createElement(l.Z,null,i().createElement(c.Z,{title:__("Unlock all the amazing features of Jetpack by connecting now","jetpack-my-jetpack"),buttonLabel:__("Connect your user account","jetpack-my-jetpack"),apiRoot:e,apiNonce:t,images:[v],footer:i().createElement(k,null)},i().createElement("ul",null,i().createElement("li",null,__("Receive instant downtime alerts","jetpack-my-jetpack")),i().createElement("li",null,__("Automatically share your content on social media","jetpack-my-jetpack")),i().createElement("li",null,__("Let your subscribers know when you post","jetpack-my-jetpack")),i().createElement("li",null,__("Receive notifications about new likes and comments","jetpack-my-jetpack")),i().createElement("li",null,__("Let visitors share your content on social media","jetpack-my-jetpack")),i().createElement("li",null,__("And more!","jetpack-my-jetpack")," ",i().createElement("a",{href:(0,u.Z)("jetpack-features"),target:"_blank",className:b.Z["all-features"],rel:"noreferrer"},__("See all Jetpack features","jetpack-my-jetpack"),i().createElement(p.Z,{icon:d.Z}))))))))}},376:(e,t,n)=>{"use strict";n.d(t,{Z:()=>u});var r=n(9196),i=n.n(r),o=n(3607),c=n(9818),s=n(4235),a=n(334),l=n(2355);function u(){const{apiRoot:e,apiNonce:t,redirectUrl:n}=(0,s.Z)(),r=(0,a.Z)("/connection"),{connectedPlugins:u}=myJetpackInitialState,p=(0,c.useSelect)((e=>e(l.t).getProductsThatRequiresUserConnection()));return i().createElement(o.Z,{apiRoot:e,apiNonce:t,redirectUri:n,onConnectUser:r,connectedPlugins:u,requiresUserConnection:p.length>0})}},8295:(e,t,n)=>{"use strict";n.d(t,{Z:()=>p});var r=n(9196),i=n.n(r),o=n(7026),c=n(6502),s=n(2972),a=n(5736),l=n(7844);const __=a.__;function u(e){let{onClick:t}=e;return i().createElement(o.rU,{to:"/",className:l.Z.link,onClick:t},i().createElement(c.Z,{icon:s.Z,className:l.Z.icon}),__("Go back","jetpack-my-jetpack"))}u.defaultProps={onClick:()=>{}};const p=u},4593:(e,t,n)=>{"use strict";n.d(t,{Z:()=>S});var r=n(236),i=n.n(r),o=n(9196),c=n.n(o),s=n(5736),a=n(5609),l=n(483),u=n(6338),p=n(6502),d=n(9107),m=n(3558),g=n(2081),h=n(1129),f=n(92),y=n(1837),v=n(376),b=n(1753),k=n(7551),E=n(9845),_=n(1034),j=n(4235),w=n(617),C=n(4053);const __=s.__,Z=e=>{let{message:t,options:n,clean:r}=e;const o={error:l.Z,info:u.Z};return c().createElement(a.Notice,i()({isDismissible:!1},n,{onRemove:r,className:C.Z.notice}),(null==o?void 0:o[n.status])&&c().createElement(p.Z,{icon:o[n.status]}),c().createElement("div",{className:C.Z.message},t))};function S(){(0,w.Z)();const{message:e,options:t,clean:n}=(0,_.Z)(),{recordEvent:r}=(0,E.Z)();(0,o.useEffect)((()=>{r("jetpack_myjetpack_page_view")}),[r]);const{isSiteConnected:i}=(0,j.Z)();return i?c().createElement(d.Z,null,c().createElement(m.Z,null,c().createElement(g.Z,{horizontalSpacing:5,horizontalGap:e?3:6},c().createElement(h.Z,{sm:4,md:7,lg:6},c().createElement(f.ZP,{variant:"headline-small"},__("Manage your Jetpack products","jetpack-my-jetpack"))),e&&c().createElement(h.Z,null,c().createElement(Z,{message:e,options:t,clean:n})),c().createElement(h.Z,null,c().createElement(k.Z,null)))),c().createElement(y.Z,null,c().createElement(g.Z,{horizontalSpacing:8},c().createElement(h.Z,{sm:2,md:4,lg:6},c().createElement(b.Z,null)),c().createElement(h.Z,{sm:2,md:4,lg:6},c().createElement(v.Z,null))))):null}},1753:(e,t,n)=>{"use strict";n.d(t,{Z:()=>f});var r=n(9196),i=n.n(r),o=n(5736),c=n(5609),s=n(92),a=n(9845),l=n(96),u=n(6524),p=n(5651),d=n(7192);const __=o.__,_n=o._n;function m(e){let{purchase:t={}}=e;const{product_name:n,expiry_message:r}=t;return i().createElement(i().Fragment,null,i().createElement(s.Dx,null,n),i().createElement(s.ZP,{variant:"body",className:d.Z["expire-date"]},r))}function g(e){let{purchases:t}=e;return i().createElement(i().Fragment,null,i().createElement(s.H3,null,t.length<=1?__("Your plan","jetpack-my-jetpack"):__("Your plans","jetpack-my-jetpack")),0===t.length&&i().createElement(s.ZP,{variant:"body"},__("Want to power up your Jetpack?","jetpack-my-jetpack")))}function h(e){let{purchases:t}=e,n=__("Purchase a plan","jetpack-my-jetpack");t.length>=1&&(n=_n("Manage your plan","Manage your plans",t.length,"jetpack-my-jetpack"));const{recordEvent:o}=(0,a.Z)(),l=(0,r.useCallback)((()=>{const e=t.length?"jetpack_myjetpack_plans_manage_click":"jetpack_myjetpack_plans_purchase_click";o(e)}),[t,o]);return i().createElement(s.ZP,{component:c.ExternalLink,className:d.Z["external-link"],onClick:l,href:t.length?(0,u.Z)():(0,p.Z)(),variant:"body"},n)}function f(){const e=(0,l.Z)();return i().createElement("div",{className:d.Z.container},i().createElement(g,{purchases:e}),i().createElement("div",{className:d.Z.purchasesSection},e.map((e=>i().createElement(m,{key:`purchase-${e.product_name}`,purchase:e})))),i().createElement(h,{purchases:e}))}},9210:(e,t,n)=>{"use strict";n.d(t,{N:()=>f,Z:()=>k});var r=n(236),i=n.n(r),o=n(9196),c=n.n(o),s=n(3698),a=n.n(s),l=n(9105),u=n.n(l),p=n(5736),d=n(5609),m=n(92),g=n(9177),h=n(9845);const __=p.__,f={ACTIVE:"active",INACTIVE:"inactive",ERROR:"error",ABSENT:"plugin_absent",NEEDS_PURCHASE:"needs_purchase"},y={[f.ACTIVE]:__("Active","jetpack-my-jetpack"),[f.INACTIVE]:__("Inactive","jetpack-my-jetpack"),[f.NEEDS_PURCHASE]:__("Inactive","jetpack-my-jetpack"),[f.ERROR]:__("Error","jetpack-my-jetpack")},v=e=>{let{status:t,admin:n,name:r,onActivate:o,onManage:s,onFixConnection:a,isFetching:l,className:u,onAdd:m}=e;if(!n)return c().createElement("span",{className:g.Z["action-link-button"]},
|
3 |
/* translators: placeholder is product name. */
|
4 |
-
(0,
|
5 |
/* translators: placeholder is product name. */
|
6 |
-
(0,
|
7 |
/* translators: placeholder is product name. */
|
8 |
-
(0,
|
9 |
/* translators: placeholder is product name. */
|
10 |
-
__("Jetpack %s needs a user connection to WordPress.com to be able to work.","jetpack-my-jetpack"),n[0]),g=n.length>1?__("Some products need a user connection to WordPress.com to be able to work.","jetpack-my-jetpack"):
|
11 |
-
__("Failed to activate %1$s. Please try again","jetpack-my-jetpack"),n);s(b(e,!1)),s(y(e,t)),s(v(i,{status:"error",isDismissible:!0})),a(t)}))}))}(e,{activate:!0},t),setIsFetchingProduct:b,setRequestProductError:y,setProductStatus:(e,t)=>({type:m,productId:e,status:t})},E={setPurchasesIsFetching:e=>({type:s,isFetching:e}),fetchPurchases:()=>({type:a}),setPurchases:e=>({type:l,purchases:e}),...{setGlobalNotice:v,cleanGlobalNotice:()=>({type:"CLEAN_GLOBAL_NOTICE"})},...k}},9638:(e,t,n)=>{"use strict";n.d(t,{LQ:()=>r,Jk:()=>i,iB:()=>o});const r="my-jetpack/v1/site/purchases",i="my-jetpack/v1/site/products",o=["scan"]},6640:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(6989),i=n.n(r),o=n(9765),c=n(9638);const s={[o.ny]:function(){return new Promise(((e,t)=>{i()({path:c.LQ}).then(e).catch(t)}))}}},8049:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(9818),i=n(9765);const o=(0,r.combineReducers)({products:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case i.vv:{const{productId:n,isFetching:r}=t;return{...e,isFetching:{...e.isFetching,[n]:r},errors:{...e.errors,[n]:r?void 0:e.errors[n]}}}case i.dq:{const{productId:n,status:r}=t;return{...e,items:{...e.items,[n]:{...e.items[n],status:r}}}}case i.dI:{const{product:n}=t,{slug:r}=n;return{...e,items:{...e.items,[r]:n}}}case i.dE:{const{productId:n,error:r}=t;return{...e,errors:{...e.errors,[n]:r}}}default:return e}},purchases:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case i.RT:return{...e,isFetching:t.isFetching};case i.z8:return{...e,items:(null==t?void 0:t.purchases)||[]};default:return e}},notices:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{global:{}},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case i.d1:{const{message:n,options:r}=t;return{...e,global:{message:n,options:r}}}case i.fE:return{...e,global:{}};default:return e}}})},3309:(e,t,n)=>{"use strict";n.d(t,{Z:()=>c});var r=n(6989),i=n.n(r),o=n(9638);const c={...{getProduct:{isFulfilled:(e,t)=>{var n;return((null==e||null===(n=e.products)||void 0===n?void 0:n.items)||{}).hasOwnProperty(t)&&!o.iB.includes(t)},fulfill:e=>async t=>{let{dispatch:n}=t;try{n.setIsFetchingProduct(e,!0);const t=await i()({path:`${o.Jk}/${e}`});return n.setProduct(t),n.setIsFetchingProduct(e,!1),Promise.resolve()}catch(t){if(n.setIsFetchingProduct(e,!1),null!=t&&t.code&&null!=t&&t.message)return n.setRequestProductError(e,t),Promise.reject(t);throw new Error(t)}}},getPurchases:()=>async e=>{let{dispatch:t}=e;t.setPurchasesIsFetching(!0);try{t.setPurchases(await i()({path:o.LQ})),t.setPurchasesIsFetching(!1)}catch(e){throw t.setPurchasesIsFetching(!1),e}}}}},3483:(e,t,n)=>{"use strict";n.d(t,{ZP:()=>s});var r=n(2236),i=n(9210);const o=e=>{var t;return(null===(t=e.products)||void 0===t?void 0:t.items)||{}},c=e=>Object.keys(o(e)),s={...{getProducts:o,getProductNames:c,getProduct:(e,t)=>{var n;const i=(null===(n=o(e))||void 0===n?void 0:n[t])||{},c=(0,r.N)(i,!0);return c.pricingForUi=(0,r.N)(c.pricingForUi||{},!0),c.features=c.features||[],c.supportedProducts=c.supportedProducts||[],c.pricingForUi.fullPricePerMonth=Math.ceil(c.pricingForUi.fullPrice/12*100)/100,c.pricingForUi.discountPricePerMonth=Math.ceil(c.pricingForUi.discountPrice/12*100)/100,c},isValidProduct:(e,t)=>c(e).includes(t),isFetching:(e,t)=>{var n,r;return(null===(n=e.products)||void 0===n||null===(r=n.isFetching)||void 0===r?void 0:r[t])||!1},getProductsThatRequiresUserConnection:e=>{const t=o(e);return Object.keys(t).reduce(((e,n)=>{const r=t[n];return(null==r?void 0:r.requires_user_connection)&&((null==r?void 0:r.status)===i.N.ACTIVE||(null==r?void 0:r.status)===i.N.ERROR)&&e.push(null==r?void 0:r.name),e}),[])}},getPurchases:e=>{var t;return(null===(t=e.purchases)||void 0===t?void 0:t.items)||[]},isRequestingPurchases:e=>e.isRequestingPurchases||!1,getGlobalNotice:e=>{var t;return null===(t=e.notices)||void 0===t?void 0:t.global}}},892:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(4502),i=n.n(r),o=n(9818);class c{static mayBeInit(e,t){null===c.store&&(c.store=(0,o.createReduxStore)(e,t),(0,o.register)(c.store))}}i()(c,"store",null);const s=c},2355:(e,t,n)=>{"use strict";n.d(t,{t:()=>l,N:()=>u});var r=n(9765),i=n(8049),o=n(3483),c=n(892),s=n(3309),a=n(6640);const l="my-jetpack";function u(){c.Z.mayBeInit(l,{__experimentalUseThunks:!0,reducer:i.Z,actions:r.ZP,selectors:o.ZP,resolvers:s.Z,controls:a.Z,initialState:window.myJetpackInitialState||{}})}},6524:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(4481),i=n(9972);function o(){var e,t;const n=null===(e=window)||void 0===e||null===(t=e.myJetpackInitialState)||void 0===t?void 0:t.siteSuffix;return(0,r.Z)(i.w6,{site:n})}},8371:(e,t,n)=>{"use strict";function r(e,t){var n;const{siteSuffix:r,redirectUrl:i}=(null===(n=window)||void 0===n?void 0:n.myJetpackInitialState)||{},o=new URL("https://wordpress.com/checkout/"),c=new URL(`${r}/${e}`,o);return c.searchParams.set("redirect_to",i),t||c.searchParams.set("unlinked",1),c.searchParams.set("site",r),c.toString()}n.d(t,{Z:()=>r})},5651:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(4481),i=n(9972);function o(){var e,t;const n=null===(e=window)||void 0===e||null===(t=e.myJetpackInitialState)||void 0===t?void 0:t.siteSuffix;return(0,r.Z)(i.f6,{site:n})}},2236:(e,t,n)=>{"use strict";function r(e){return e.replace(/([-_][a-z])/gi,(e=>e.toUpperCase().replace("_","")))}function i(e){return-1!==e.indexOf("_")}function o(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const n=Object.assign({},e);for(const e in n)n.hasOwnProperty(e)&&i(e)&&(n[r(e)]=n[e],t&&delete n[e]);return n}n.d(t,{N:()=>o})},1043:(e,t,n)=>{"use strict";var r=n(1625),i=n(9196);t.useSubscription=function(e){var t=e.getCurrentValue,n=e.subscribe,o=i.useState((function(){return{getCurrentValue:t,subscribe:n,value:t()}}));e=o[0];var c=o[1];return o=e.value,e.getCurrentValue===t&&e.subscribe===n||(o=t(),c({getCurrentValue:t,subscribe:n,value:o})),i.useDebugValue(o),i.useEffect((function(){function e(){if(!i){var e=t();c((function(i){return i.getCurrentValue!==t||i.subscribe!==n||i.value===e?i:r({},i,{value:e})}))}}var i=!1,o=n(e);return e(),function(){i=!0,o()}}),[t,n]),o}},36:(e,t,n)=>{"use strict";e.exports=n(1043)},2042:(e,t,n)=>{"use strict";e.exports=n.p+"images/disconnect-confirm-dc9fe8f5c68cfd1320e0.jpg"},724:(e,t,n)=>{"use strict";e.exports=n.p+"images/disconnect-thanks-5873bfac56a9bd7322cd.jpg"},5242:(e,t,n)=>{"use strict";e.exports=n.p+"images/apple-92dacafad84e79708a74.svg"},6790:(e,t,n)=>{"use strict";e.exports=n.p+"images/connect-f27775ac15cf885713c2.png"},184:(e,t,n)=>{"use strict";e.exports=n.p+"images/google-dec2a429bf1d8e83f9ad.svg"},4997:(e,t,n)=>{"use strict";e.exports=n.p+"images/wordpress-e099b30cc40508916516.png"},5610:(e,t,n)=>{"use strict";e.exports=n.p+"images/boost-a54137485af36fdffe9c.png"},4763:(e,t,n)=>{"use strict";e.exports=n.p+"images/crm-7e7684ae2c40327d8fed.png"},2605:(e,t,n)=>{"use strict";e.exports=n.p+"images/extras-26daf36507504c96d066.png"},720:(e,t,n)=>{"use strict";e.exports=n.p+"images/search-f9756bd9c926d905fe70.png"},1439:(e,t,n)=>{"use strict";e.exports=n.p+"images/videopress-9591093a9a238cc48a35.png"},4462:e=>{"use strict";if(void 0==={consumer_slug:"my_jetpack"}){var t=new Error('Cannot find module \'{"consumer_slug":"my_jetpack"}\'');throw t.code="MODULE_NOT_FOUND",t}e.exports={consumer_slug:"my_jetpack"}},9196:e=>{"use strict";e.exports=window.React},1850:e=>{"use strict";e.exports=window.ReactDOM},2819:e=>{"use strict";e.exports=window.lodash},6989:e=>{"use strict";e.exports=window.wp.apiFetch},5609:e=>{"use strict";e.exports=window.wp.components},4333:e=>{"use strict";e.exports=window.wp.compose},9818:e=>{"use strict";e.exports=window.wp.data},9307:e=>{"use strict";e.exports=window.wp.element},5736:e=>{"use strict";e.exports=window.wp.i18n},444:e=>{"use strict";e.exports=window.wp.primitives},6483:e=>{"use strict";e.exports=window.wp.url},4234:(e,t,n)=>{"use strict";function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}n.d(t,{Z:()=>r})},1873:(e,t,n)=>{"use strict";function r(e){if(Array.isArray(e))return e}n.d(t,{Z:()=>r})},6339:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(4234);function i(e){if(Array.isArray(e))return(0,r.Z)(e)}},5808:(e,t,n)=>{"use strict";function r(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}n.d(t,{Z:()=>r})},6438:(e,t,n)=>{"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}n.d(t,{Z:()=>r})},8384:(e,t,n)=>{"use strict";function r(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,r.key,r)}}function i(e,t,n){return t&&r(e.prototype,t),n&&r(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}n.d(t,{Z:()=>i})},1615:(e,t,n)=>{"use strict";n.d(t,{Z:()=>c});var r=n(7557),i=n(840),o=n(6168);function c(e){var t=(0,i.Z)();return function(){var n,i=(0,r.Z)(e);if(t){var c=(0,r.Z)(this).constructor;n=Reflect.construct(i,arguments,c)}else n=i.apply(this,arguments);return(0,o.Z)(this,n)}}},1285:(e,t,n)=>{"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}n.d(t,{Z:()=>r})},4291:(e,t,n)=>{"use strict";function r(){return r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},r.apply(this,arguments)}n.d(t,{Z:()=>r})},7557:(e,t,n)=>{"use strict";function r(e){return r=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},r(e)}n.d(t,{Z:()=>r})},601:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(4239);function i(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&&(0,r.Z)(e,t)}},840:(e,t,n)=>{"use strict";function r(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}n.d(t,{Z:()=>r})},2329:(e,t,n)=>{"use strict";function r(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}n.d(t,{Z:()=>r})},5180:(e,t,n)=>{"use strict";function r(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o=[],_n=!0,c=!1;try{for(n=n.call(e);!(_n=(r=n.next()).done)&&(o.push(r.value),!t||o.length!==t);_n=!0);}catch(e){c=!0,i=e}finally{try{_n||null==n.return||n.return()}finally{if(c)throw i}}return o}}n.d(t,{Z:()=>r})},3125:(e,t,n)=>{"use strict";function r(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}n.d(t,{Z:()=>r})},9423:(e,t,n)=>{"use strict";function r(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}n.d(t,{Z:()=>r})},623:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(1285);function i(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 o(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?i(Object(n),!0).forEach((function(t){(0,r.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}},6168:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(9377),i=n(5808);function o(e,t){if(t&&("object"===(0,r.Z)(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return(0,i.Z)(e)}},4239:(e,t,n)=>{"use strict";function r(e,t){return r=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},r(e,t)}n.d(t,{Z:()=>r})},2037:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(1873),i=n(5180),o=n(1081),c=n(3125);function s(e,t){return(0,r.Z)(e)||(0,i.Z)(e,t)||(0,o.Z)(e,t)||(0,c.Z)()}},7810:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(6339),i=n(2329),o=n(1081),c=n(9423);function s(e){return(0,r.Z)(e)||(0,i.Z)(e)||(0,o.Z)(e)||(0,c.Z)()}},9377:(e,t,n)=>{"use strict";function r(e){return r="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(e)}n.d(t,{Z:()=>r})},1081:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(4234);function i(e,t){if(e){if("string"==typeof e)return(0,r.Z)(e,t);var n=Object.prototype.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)?(0,r.Z)(e,t):void 0}}},9788:(e,t,n)=>{"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}n.d(t,{Z:()=>r})},5332:(e,t,n)=>{"use strict";function r(){return r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},r.apply(this,arguments)}n.d(t,{Z:()=>r})},2086:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(9788);function i(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},i=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&i.push.apply(i,Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),i.forEach((function(t){(0,r.Z)(e,t,n[t])}))}return e}}},t={};function n(r){var i=t[r];if(void 0!==i)return i.exports;var o=t[r]={exports:{}};return e[r](o,o.exports,n),o.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.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{var e;n.g.importScripts&&(e=n.g.location+"");var t=n.g.document;if(!e&&t&&(t.currentScript&&(e=t.currentScript.src),!e)){var r=t.getElementsByTagName("script");r.length&&(e=r[r.length-1].src)}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),n.p=e})(),(()=>{"use strict";var e=n(1850),t=n.n(e),r=n(9196),i=n.n(r),o=n(7026),c=n(9842),s=n(8337),a=n(4593),l=n(5757),u=n(2355),p=n(8753);n(4976);(0,u.N)();const d=()=>i().createElement(s.ZP,null,i().createElement(o.UT,null,i().createElement(c.Z5,null,i().createElement(c.AW,{path:"/",element:i().createElement(a.Z,null)}),i().createElement(c.AW,{path:"/connection",element:i().createElement(l.Z,null)}),i().createElement(c.AW,{path:"/add-anti-spam",element:i().createElement(p.q,null)}),i().createElement(c.AW,{path:"/add-backup",element:i().createElement(p.qA,null)}),i().createElement(c.AW,{path:"/add-boost",element:i().createElement(p.WJ,null)}),i().createElement(c.AW,{path:"/add-crm",element:i().createElement(p.B$,null)}),i().createElement(c.AW,{path:"/add-extras",element:i().createElement(p.Yi,null)}),i().createElement(c.AW,{path:"/add-scan",element:i().createElement(p.Q5,null)}),i().createElement(c.AW,{path:"/add-search",element:i().createElement(p.uw,null)}),i().createElement(c.AW,{path:"/add-videopress",element:i().createElement(p.Jw,null)}))));!function(){const e=document.getElementById("my-jetpack-container");null!==e&&t().render(i().createElement(d,null),e)}()})()})();
|
1 |
/*! For license information please see index.js.LICENSE.txt */
|
2 |
+
(()=>{var e={9487:(e,t,n)=>{"use strict";n.d(t,{X:()=>r});const c={AED:{symbol:"د.إ.",grouping:",",decimal:".",precision:2},AFN:{symbol:"؋",grouping:",",decimal:".",precision:2},ALL:{symbol:"Lek",grouping:".",decimal:",",precision:2},AMD:{symbol:"֏",grouping:",",decimal:".",precision:2},ANG:{symbol:"ƒ",grouping:",",decimal:".",precision:2},AOA:{symbol:"Kz",grouping:",",decimal:".",precision:2},ARS:{symbol:"$",grouping:".",decimal:",",precision:2},AUD:{symbol:"A$",grouping:",",decimal:".",precision:2},AWG:{symbol:"ƒ",grouping:",",decimal:".",precision:2},AZN:{symbol:"₼",grouping:" ",decimal:",",precision:2},BAM:{symbol:"КМ",grouping:".",decimal:",",precision:2},BBD:{symbol:"Bds$",grouping:",",decimal:".",precision:2},BDT:{symbol:"৳",grouping:",",decimal:".",precision:0},BGN:{symbol:"лв.",grouping:" ",decimal:",",precision:2},BHD:{symbol:"د.ب.",grouping:",",decimal:".",precision:3},BIF:{symbol:"FBu",grouping:",",decimal:".",precision:0},BMD:{symbol:"$",grouping:",",decimal:".",precision:2},BND:{symbol:"$",grouping:".",decimal:",",precision:0},BOB:{symbol:"Bs",grouping:".",decimal:",",precision:2},BRL:{symbol:"R$",grouping:".",decimal:",",precision:2},BSD:{symbol:"$",grouping:",",decimal:".",precision:2},BTC:{symbol:"Ƀ",grouping:",",decimal:".",precision:2},BTN:{symbol:"Nu.",grouping:",",decimal:".",precision:1},BWP:{symbol:"P",grouping:",",decimal:".",precision:2},BYR:{symbol:"р.",grouping:" ",decimal:",",precision:2},BZD:{symbol:"BZ$",grouping:",",decimal:".",precision:2},CAD:{symbol:"C$",grouping:",",decimal:".",precision:2},CDF:{symbol:"FC",grouping:",",decimal:".",precision:2},CHF:{symbol:"CHF",grouping:"'",decimal:".",precision:2},CLP:{symbol:"$",grouping:".",decimal:",",precision:2},CNY:{symbol:"¥",grouping:",",decimal:".",precision:2},COP:{symbol:"$",grouping:".",decimal:",",precision:2},CRC:{symbol:"₡",grouping:".",decimal:",",precision:2},CUC:{symbol:"CUC",grouping:",",decimal:".",precision:2},CUP:{symbol:"$MN",grouping:",",decimal:".",precision:2},CVE:{symbol:"$",grouping:",",decimal:".",precision:2},CZK:{symbol:"Kč",grouping:" ",decimal:",",precision:2},DJF:{symbol:"Fdj",grouping:",",decimal:".",precision:0},DKK:{symbol:"kr.",grouping:"",decimal:",",precision:2},DOP:{symbol:"RD$",grouping:",",decimal:".",precision:2},DZD:{symbol:"د.ج.",grouping:",",decimal:".",precision:2},EGP:{symbol:"ج.م.",grouping:",",decimal:".",precision:2},ERN:{symbol:"Nfk",grouping:",",decimal:".",precision:2},ETB:{symbol:"ETB",grouping:",",decimal:".",precision:2},EUR:{symbol:"€",grouping:".",decimal:",",precision:2},FJD:{symbol:"FJ$",grouping:",",decimal:".",precision:2},FKP:{symbol:"£",grouping:",",decimal:".",precision:2},GBP:{symbol:"£",grouping:",",decimal:".",precision:2},GEL:{symbol:"Lari",grouping:" ",decimal:",",precision:2},GHS:{symbol:"₵",grouping:",",decimal:".",precision:2},GIP:{symbol:"£",grouping:",",decimal:".",precision:2},GMD:{symbol:"D",grouping:",",decimal:".",precision:2},GNF:{symbol:"FG",grouping:",",decimal:".",precision:0},GTQ:{symbol:"Q",grouping:",",decimal:".",precision:2},GYD:{symbol:"G$",grouping:",",decimal:".",precision:2},HKD:{symbol:"HK$",grouping:",",decimal:".",precision:2},HNL:{symbol:"L.",grouping:",",decimal:".",precision:2},HRK:{symbol:"kn",grouping:".",decimal:",",precision:2},HTG:{symbol:"G",grouping:",",decimal:".",precision:2},HUF:{symbol:"Ft",grouping:".",decimal:",",precision:0},IDR:{symbol:"Rp",grouping:".",decimal:",",precision:0},ILS:{symbol:"₪",grouping:",",decimal:".",precision:2},INR:{symbol:"₹",grouping:",",decimal:".",precision:2},IQD:{symbol:"د.ع.",grouping:",",decimal:".",precision:2},IRR:{symbol:"﷼",grouping:",",decimal:"/",precision:2},ISK:{symbol:"kr.",grouping:".",decimal:",",precision:0},JMD:{symbol:"J$",grouping:",",decimal:".",precision:2},JOD:{symbol:"د.ا.",grouping:",",decimal:".",precision:3},JPY:{symbol:"¥",grouping:",",decimal:".",precision:0},KES:{symbol:"S",grouping:",",decimal:".",precision:2},KGS:{symbol:"сом",grouping:" ",decimal:"-",precision:2},KHR:{symbol:"៛",grouping:",",decimal:".",precision:0},KMF:{symbol:"CF",grouping:",",decimal:".",precision:2},KPW:{symbol:"₩",grouping:",",decimal:".",precision:0},KRW:{symbol:"₩",grouping:",",decimal:".",precision:0},KWD:{symbol:"د.ك.",grouping:",",decimal:".",precision:3},KYD:{symbol:"$",grouping:",",decimal:".",precision:2},KZT:{symbol:"₸",grouping:" ",decimal:"-",precision:2},LAK:{symbol:"₭",grouping:",",decimal:".",precision:0},LBP:{symbol:"ل.ل.",grouping:",",decimal:".",precision:2},LKR:{symbol:"₨",grouping:",",decimal:".",precision:0},LRD:{symbol:"L$",grouping:",",decimal:".",precision:2},LSL:{symbol:"M",grouping:",",decimal:".",precision:2},LYD:{symbol:"د.ل.",grouping:",",decimal:".",precision:3},MAD:{symbol:"د.م.",grouping:",",decimal:".",precision:2},MDL:{symbol:"lei",grouping:",",decimal:".",precision:2},MGA:{symbol:"Ar",grouping:",",decimal:".",precision:0},MKD:{symbol:"ден.",grouping:".",decimal:",",precision:2},MMK:{symbol:"K",grouping:",",decimal:".",precision:2},MNT:{symbol:"₮",grouping:" ",decimal:",",precision:2},MOP:{symbol:"MOP$",grouping:",",decimal:".",precision:2},MRO:{symbol:"UM",grouping:",",decimal:".",precision:2},MTL:{symbol:"₤",grouping:",",decimal:".",precision:2},MUR:{symbol:"₨",grouping:",",decimal:".",precision:2},MVR:{symbol:"MVR",grouping:",",decimal:".",precision:1},MWK:{symbol:"MK",grouping:",",decimal:".",precision:2},MXN:{symbol:"MX$",grouping:",",decimal:".",precision:2},MYR:{symbol:"RM",grouping:",",decimal:".",precision:2},MZN:{symbol:"MT",grouping:",",decimal:".",precision:0},NAD:{symbol:"N$",grouping:",",decimal:".",precision:2},NGN:{symbol:"₦",grouping:",",decimal:".",precision:2},NIO:{symbol:"C$",grouping:",",decimal:".",precision:2},NOK:{symbol:"kr",grouping:" ",decimal:",",precision:2},NPR:{symbol:"₨",grouping:",",decimal:".",precision:2},NZD:{symbol:"NZ$",grouping:",",decimal:".",precision:2},OMR:{symbol:"﷼",grouping:",",decimal:".",precision:3},PAB:{symbol:"B/.",grouping:",",decimal:".",precision:2},PEN:{symbol:"S/.",grouping:",",decimal:".",precision:2},PGK:{symbol:"K",grouping:",",decimal:".",precision:2},PHP:{symbol:"₱",grouping:",",decimal:".",precision:2},PKR:{symbol:"₨",grouping:",",decimal:".",precision:2},PLN:{symbol:"zł",grouping:" ",decimal:",",precision:2},PYG:{symbol:"₲",grouping:".",decimal:",",precision:2},QAR:{symbol:"﷼",grouping:",",decimal:".",precision:2},RON:{symbol:"lei",grouping:".",decimal:",",precision:2},RSD:{symbol:"Дин.",grouping:".",decimal:",",precision:2},RUB:{symbol:"₽",grouping:" ",decimal:",",precision:2},RWF:{symbol:"RWF",grouping:" ",decimal:",",precision:2},SAR:{symbol:"﷼",grouping:",",decimal:".",precision:2},SBD:{symbol:"S$",grouping:",",decimal:".",precision:2},SCR:{symbol:"₨",grouping:",",decimal:".",precision:2},SDD:{symbol:"LSd",grouping:",",decimal:".",precision:2},SDG:{symbol:"£",grouping:",",decimal:".",precision:2},SEK:{symbol:"kr",grouping:",",decimal:".",precision:2},SGD:{symbol:"S$",grouping:",",decimal:".",precision:2},SHP:{symbol:"£",grouping:",",decimal:".",precision:2},SLL:{symbol:"Le",grouping:",",decimal:".",precision:2},SOS:{symbol:"S",grouping:",",decimal:".",precision:2},SRD:{symbol:"$",grouping:",",decimal:".",precision:2},STD:{symbol:"Db",grouping:",",decimal:".",precision:2},SVC:{symbol:"₡",grouping:",",decimal:".",precision:2},SYP:{symbol:"£",grouping:",",decimal:".",precision:2},SZL:{symbol:"E",grouping:",",decimal:".",precision:2},THB:{symbol:"฿",grouping:",",decimal:".",precision:2},TJS:{symbol:"TJS",grouping:" ",decimal:";",precision:2},TMT:{symbol:"m",grouping:" ",decimal:",",precision:0},TND:{symbol:"د.ت.",grouping:",",decimal:".",precision:3},TOP:{symbol:"T$",grouping:",",decimal:".",precision:2},TRY:{symbol:"TL",grouping:".",decimal:",",precision:2},TTD:{symbol:"TT$",grouping:",",decimal:".",precision:2},TVD:{symbol:"$T",grouping:",",decimal:".",precision:2},TWD:{symbol:"NT$",grouping:",",decimal:".",precision:2},TZS:{symbol:"TSh",grouping:",",decimal:".",precision:2},UAH:{symbol:"₴",grouping:" ",decimal:",",precision:2},UGX:{symbol:"USh",grouping:",",decimal:".",precision:2},USD:{symbol:"$",grouping:",",decimal:".",precision:2},UYU:{symbol:"$U",grouping:".",decimal:",",precision:2},UZS:{symbol:"сўм",grouping:" ",decimal:",",precision:2},VEB:{symbol:"Bs.",grouping:",",decimal:".",precision:2},VEF:{symbol:"Bs. F.",grouping:".",decimal:",",precision:2},VND:{symbol:"₫",grouping:".",decimal:",",precision:1},VUV:{symbol:"VT",grouping:",",decimal:".",precision:0},WST:{symbol:"WS$",grouping:",",decimal:".",precision:2},XAF:{symbol:"F",grouping:",",decimal:".",precision:2},XCD:{symbol:"$",grouping:",",decimal:".",precision:2},XOF:{symbol:"F",grouping:" ",decimal:",",precision:2},XPF:{symbol:"F",grouping:",",decimal:".",precision:2},YER:{symbol:"﷼",grouping:",",decimal:".",precision:2},ZAR:{symbol:"R",grouping:" ",decimal:",",precision:2},ZMW:{symbol:"ZK",grouping:",",decimal:".",precision:2},WON:{symbol:"₩",grouping:",",decimal:".",precision:2}};function r(e){return c[e]||{symbol:"$",grouping:",",decimal:".",precision:2}}},8899:(e,t,n)=>{"use strict";n.d(t,{LR:()=>a});var c=n(9487),r=n(2003);function a(e,t,n={}){const a=(0,c.X)(t);if(!a||isNaN(e))return null;const{decimal:i,grouping:s,precision:o,symbol:l}={...a,...n},p=e<0?"-":"",u=Math.abs(e),m=Math.floor(u);return{sign:p,symbol:l,integer:(0,r.Z)(u,o,i,s).split(i)[0],fraction:o>0?(0,r.Z)(u-m,o,i,s).slice(1):""}}},2003:(e,t,n)=>{"use strict";function c(e,t=0,n=".",c=","){const r=(e+"").replace(/[^0-9+\-Ee.]/g,""),a=isFinite(+r)?+r:0,i=isFinite(+t)?Math.abs(t):0,s=(i?function(e,t){const n=Math.pow(10,t);return""+(Math.round(e*n)/n).toFixed(t)}(a,i):""+Math.round(a)).split(".");return s[0].length>3&&(s[0]=s[0].replace(/\B(?=(?:\d{3})+(?!\d))/g,c)),(s[1]||"").length<i&&(s[1]=s[1]||"",s[1]+=new Array(i-s[1].length+1).join("0")),s.join(n)}n.d(t,{Z:()=>c})},8294:e=>{e.exports=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},e.exports.__esModule=!0,e.exports.default=e.exports},2402:e=>{function t(){return e.exports=t=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var c in n)Object.prototype.hasOwnProperty.call(n,c)&&(e[c]=n[c])}return e},e.exports.__esModule=!0,e.exports.default=e.exports,t.apply(this,arguments)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},1074:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});var c=n(9307);const r=function(e){let{icon:t,size:n=24,...r}=e;return(0,c.cloneElement)(t,{width:n,height:n,...r})}},3259:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var c=n(9307),r=n(444);const a=(0,c.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,c.createElement)(r.Path,{d:"M20 10.8H6.7l4.1-4.5-1.1-1.1-5.8 6.3 5.8 5.8 1.1-1.1-4-3.9H20z"}))},9201:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var c=n(9307),r=n(444);const a=(0,c.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,c.createElement)(r.Path,{d:"M16.7 7.1l-6.3 8.5-3.3-2.5-.9 1.2 4.5 3.4L17.9 8z"}))},9517:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var c=n(9307),r=n(444);const a=(0,c.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,c.createElement)(r.Path,{d:"M13 11.8l6.1-6.3-1-1-6.1 6.2-6.1-6.2-1 1 6.1 6.3-6.5 6.7 1 1 6.5-6.6 6.5 6.6 1-1z"}))},5381:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var c=n(9307),r=n(444);const a=(0,c.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,c.createElement)(r.Path,{d:"M18.2 17c0 .7-.6 1.2-1.2 1.2H7c-.7 0-1.2-.6-1.2-1.2V7c0-.7.6-1.2 1.2-1.2h3.2V4.2H7C5.5 4.2 4.2 5.5 4.2 7v10c0 1.5 1.2 2.8 2.8 2.8h10c1.5 0 2.8-1.2 2.8-2.8v-3.6h-1.5V17zM14.9 3v1.5h3.7l-6.4 6.4 1.1 1.1 6.4-6.4v3.7h1.5V3h-6.3z"}))},496:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var c=n(9307),r=n(444);const a=(0,c.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,c.createElement)(r.Path,{d:"M12 3.2c-4.8 0-8.8 3.9-8.8 8.8 0 4.8 3.9 8.8 8.8 8.8 4.8 0 8.8-3.9 8.8-8.8 0-4.8-4-8.8-8.8-8.8zm0 16c-4 0-7.2-3.3-7.2-7.2C4.8 8 8 4.8 12 4.8s7.2 3.3 7.2 7.2c0 4-3.2 7.2-7.2 7.2zM11 17h2v-6h-2v6zm0-8h2V7h-2v2z"}))},1908:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var c=n(9307),r=n(444);const a=(0,c.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,c.createElement)(r.Path,{d:"M18 11.2h-5.2V6h-1.6v5.2H6v1.6h5.2V18h1.6v-5.2H18z"}))},797:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var c=n(9307),r=n(444);const a=(0,c.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},(0,c.createElement)(r.Path,{d:"M10 2c4.42 0 8 3.58 8 8s-3.58 8-8 8-8-3.58-8-8 3.58-8 8-8zm1.13 9.38l.35-6.46H8.52l.35 6.46h2.26zm-.09 3.36c.24-.23.37-.55.37-.96 0-.42-.12-.74-.36-.97s-.59-.35-1.06-.35-.82.12-1.07.35-.37.55-.37.97c0 .41.13.73.38.96.26.23.61.34 1.06.34s.8-.11 1.05-.34z"}))},5235:(e,t)=>{var n;!function(){"use strict";var c={}.hasOwnProperty;function r(){for(var e=[],t=0;t<arguments.length;t++){var n=arguments[t];if(n){var a=typeof n;if("string"===a||"number"===a)e.push(n);else if(Array.isArray(n)){if(n.length){var i=r.apply(null,n);i&&e.push(i)}}else if("object"===a)if(n.toString===Object.prototype.toString)for(var s in n)c.call(n,s)&&n[s]&&e.push(s);else e.push(n.toString())}}return e.join(" ")}e.exports?(r.default=r,e.exports=r):void 0===(n=function(){return r}.apply(t,[]))||(e.exports=n)}()},951:(e,t,n)=>{t.formatArgs=function(t){if(t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),!this.useColors)return;const n="color: "+this.color;t.splice(1,0,n,"color: inherit");let c=0,r=0;t[0].replace(/%[a-zA-Z%]/g,(e=>{"%%"!==e&&(c++,"%c"===e&&(r=c))})),t.splice(r,0,n)},t.save=function(e){try{e?t.storage.setItem("debug",e):t.storage.removeItem("debug")}catch(e){}},t.load=function(){let e;try{e=t.storage.getItem("debug")}catch(e){}!e&&"undefined"!=typeof process&&"env"in process&&(e=process.env.DEBUG);return e},t.useColors=function(){if("undefined"!=typeof window&&window.process&&("renderer"===window.process.type||window.process.__nwjs))return!0;if("undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;return"undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)},t.storage=function(){try{return localStorage}catch(e){}}(),t.destroy=(()=>{let e=!1;return()=>{e||(e=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})(),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],t.log=console.debug||console.log||(()=>{}),e.exports=n(1741)(t);const{formatters:c}=e.exports;c.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}},1741:(e,t,n)=>{e.exports=function(e){function t(e){let n,r,a,i=null;function s(...e){if(!s.enabled)return;const c=s,r=Number(new Date),a=r-(n||r);c.diff=a,c.prev=n,c.curr=r,n=r,e[0]=t.coerce(e[0]),"string"!=typeof e[0]&&e.unshift("%O");let i=0;e[0]=e[0].replace(/%([a-zA-Z%])/g,((n,r)=>{if("%%"===n)return"%";i++;const a=t.formatters[r];if("function"==typeof a){const t=e[i];n=a.call(c,t),e.splice(i,1),i--}return n})),t.formatArgs.call(c,e);(c.log||t.log).apply(c,e)}return s.namespace=e,s.useColors=t.useColors(),s.color=t.selectColor(e),s.extend=c,s.destroy=t.destroy,Object.defineProperty(s,"enabled",{enumerable:!0,configurable:!1,get:()=>null!==i?i:(r!==t.namespaces&&(r=t.namespaces,a=t.enabled(e)),a),set:e=>{i=e}}),"function"==typeof t.init&&t.init(s),s}function c(e,n){const c=t(this.namespace+(void 0===n?":":n)+e);return c.log=this.log,c}function r(e){return e.toString().substring(2,e.toString().length-2).replace(/\.\*\?$/,"*")}return t.debug=t,t.default=t,t.coerce=function(e){if(e instanceof Error)return e.stack||e.message;return e},t.disable=function(){const e=[...t.names.map(r),...t.skips.map(r).map((e=>"-"+e))].join(",");return t.enable(""),e},t.enable=function(e){let n;t.save(e),t.namespaces=e,t.names=[],t.skips=[];const c=("string"==typeof e?e:"").split(/[\s,]+/),r=c.length;for(n=0;n<r;n++)c[n]&&("-"===(e=c[n].replace(/\*/g,".*?"))[0]?t.skips.push(new RegExp("^"+e.substr(1)+"$")):t.names.push(new RegExp("^"+e+"$")))},t.enabled=function(e){if("*"===e[e.length-1])return!0;let n,c;for(n=0,c=t.skips.length;n<c;n++)if(t.skips[n].test(e))return!1;for(n=0,c=t.names.length;n<c;n++)if(t.names[n].test(e))return!0;return!1},t.humanize=n(3171),t.destroy=function(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")},Object.keys(e).forEach((n=>{t[n]=e[n]})),t.names=[],t.skips=[],t.formatters={},t.selectColor=function(e){let n=0;for(let t=0;t<e.length;t++)n=(n<<5)-n+e.charCodeAt(t),n|=0;return t.colors[Math.abs(n)%t.colors.length]},t.enable(t.load()),t}},5250:(e,t,n)=>{"use strict";n.d(t,{Ep:()=>m,aU:()=>c,cP:()=>d,q_:()=>o});var c,r=n(255);!function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"}(c||(c={}));var a=function(e){return e};var i="beforeunload",s="popstate";function o(e){void 0===e&&(e={});var t=e.window,n=void 0===t?document.defaultView:t,o=n.history;function g(){var e=d(n.location.hash.substr(1)),t=e.pathname,c=void 0===t?"/":t,r=e.search,i=void 0===r?"":r,s=e.hash,l=void 0===s?"":s,p=o.state||{};return[p.idx,a({pathname:c,search:i,hash:l,state:p.usr||null,key:p.key||"default"})]}var h=null;function y(){if(h)j.call(h),h=null;else{var e=c.Pop,t=g(),n=t[0],r=t[1];if(j.length){if(null!=n){var a=v-n;a&&(h={action:e,location:r,retry:function(){S(-1*a)}},S(a))}}else N(e)}}n.addEventListener(s,y),n.addEventListener("hashchange",(function(){m(g()[1])!==m(E)&&y()}));var f=c.Pop,k=g(),v=k[0],E=k[1],b=p(),j=p();function _(e){return function(){var e=document.querySelector("base"),t="";if(e&&e.getAttribute("href")){var c=n.location.href,r=c.indexOf("#");t=-1===r?c:c.slice(0,r)}return t}()+"#"+("string"==typeof e?e:m(e))}function C(e,t){return void 0===t&&(t=null),a((0,r.Z)({pathname:E.pathname,hash:"",search:""},"string"==typeof e?d(e):e,{state:t,key:u()}))}function w(e,t){return[{usr:e.state,key:e.key,idx:t},_(e)]}function Z(e,t,n){return!j.length||(j.call({action:e,location:t,retry:n}),!1)}function N(e){f=e;var t=g();v=t[0],E=t[1],b.call({action:f,location:E})}function S(e){o.go(e)}null==v&&(v=0,o.replaceState((0,r.Z)({},o.state,{idx:v}),""));var P={get action(){return f},get location(){return E},createHref:_,push:function e(t,r){var a=c.Push,i=C(t,r);if(Z(a,i,(function(){e(t,r)}))){var s=w(i,v+1),l=s[0],p=s[1];try{o.pushState(l,"",p)}catch(e){n.location.assign(p)}N(a)}},replace:function e(t,n){var r=c.Replace,a=C(t,n);if(Z(r,a,(function(){e(t,n)}))){var i=w(a,v),s=i[0],l=i[1];o.replaceState(s,"",l),N(r)}},go:S,back:function(){S(-1)},forward:function(){S(1)},listen:function(e){return b.push(e)},block:function(e){var t=j.push(e);return 1===j.length&&n.addEventListener(i,l),function(){t(),j.length||n.removeEventListener(i,l)}}};return P}function l(e){e.preventDefault(),e.returnValue=""}function p(){var e=[];return{get length(){return e.length},push:function(t){return e.push(t),function(){e=e.filter((function(e){return e!==t}))}},call:function(t){e.forEach((function(e){return e&&e(t)}))}}}function u(){return Math.random().toString(36).substr(2,8)}function m(e){var t=e.pathname,n=void 0===t?"/":t,c=e.search,r=void 0===c?"":c,a=e.hash,i=void 0===a?"":a;return r&&"?"!==r&&(n+="?"===r.charAt(0)?r:"?"+r),i&&"#"!==i&&(n+="#"===i.charAt(0)?i:"#"+i),n}function d(e){var t={};if(e){var n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));var c=e.indexOf("?");c>=0&&(t.search=e.substr(c),e=e.substr(0,c)),e&&(t.pathname=e)}return t}},9710:()=>{},1494:(e,t,n)=>{"use strict";n.d(t,{Z:()=>c});const c={"admin-page":"sexr0jUxC1jVixdKiDnC",background:"vKQ11sLeAM45M04P1ccj"}},511:(e,t,n)=>{"use strict";n.d(t,{Z:()=>c});const c={section:"cAbGtJDGgLubucBnz7vM"}},281:(e,t,n)=>{"use strict";n.d(t,{Z:()=>c});const c={"section-hero":"vMa4i_Dza2t5Zi_Bw9Nf"}},3466:(e,t,n)=>{"use strict";n.d(t,{Z:()=>c});const c={button:"zI5tJ_qhWE6Oe6Lk75GY",normal:"ipS7tKy9GntCS4R3vekF",icon:"paGLQwtPEaJmtArCcmyK",small:"Na39I683LAaSA99REg14",regular:"lZAo6_oGfclXOO9CC6Rd",loading:"q_tVWqMjl39RcY6WtQA6","external-icon":"CDuBjJp_8jxzx5j6Nept"}},2404:()=>{},5612:(e,t,n)=>{"use strict";n.d(t,{Z:()=>c});const c={iconWrapper:"sDAzdUdcbaYmUMZBe2XW","star-icon":"cuoSlhSNrqf1dozY22Xb",jetpack:"lAIiifeLMmZAPlQ9n9ZR","checkmark-icon":"JLquNpQVlysAamuh5lJO",socialIcon:"cbOwD8Y4tFjwimmtchQI",facebook:"aHOlEBGD5EA8NKRw3xTw",twitter:"af4Y_zItXvLAOEoSDPSv",linkedin:"f68aqF3XSD1OBvXR1get",tumblr:"xFI0dt3UiXRlRQdqPWkx",google:"q7JEoyymveP6kF747M43"}},9054:()=>{},3080:(e,t,n)=>{"use strict";n.d(t,{Z:()=>c});const c={sm:"(max-width: 599px)",md:"(min-width: 600px) and (max-width: 959px)",lg:"(min-width: 960px)",smCols:"4",mdCols:"8",lgCols:"12","col-sm-1":"RuVLl3q4lxTQa3wbhBJB","col-sm-1-start":"f9LZTRG4MMK42rS89afW","col-sm-1-end":"bHe_zKxjjpUwHw_MdYE1","col-sm-2":"QZbNrOqE2aNSn50xVhpU","col-sm-2-start":"ev7W3z7zVYPeHAlYqZjf","col-sm-2-end":"NJWd1m_e7lOiPYru2ZMP","col-sm-3":"Xc6nt1Qc1DI0Z2A3gt1r","col-sm-3-start":"UIcN_GXiPRoIsin8Kohg","col-sm-3-end":"GRKCyqb5LufCSCgykKFc","col-sm-4":"i_qTq8gqhhC3vIUepVRB","col-sm-4-start":"G3qaZ3Jpbvam_1XvGxgc","col-sm-4-end":"VRCNYKZtO9zukEwmgP1y","col-md-1":"tRm008K_WJL79WoNZTNL","col-md-1-start":"l5T2P_bgKts4tdaRkS1d","col-md-1-end":"zOCxfLZpF6BlgC7a_Yq1","col-md-2":"F80DdgVn0m5OpvtSQWka","col-md-2-start":"oI1c7JYfiJtMQHbhngtU","col-md-2-end":"pMQtA_4jh1_1lVknqEP5","col-md-3":"VenqMpdgyKQVUNNQcfqd","col-md-3-start":"seNYL99uoczf9V4MxBxT","col-md-3-end":"YKfF1HFhI9KygA5l3b2J","col-md-4":"yAi0Cv1xDWkoqsaUhvhR","col-md-4-start":"ubhnyZOnkgxNhh6XtVWv","col-md-4-end":"RGOPGQbWMJ9Ei5oFxS7X","col-md-5":"Sz1E2aWbX483ijdi6yge","col-md-5-start":"tku6_bRYrX9tMbgYGmIl","col-md-5-end":"b5JHttOhSEcI1WBlqAjk","col-md-6":"FboSx5MoKTAWbxXyYlCw","col-md-6-start":"Jhs8yEEmodG30edbJvag","col-md-6-end":"IpzbbKVqEqPcfIGkXkwt","col-md-7":"mhCPwfAZ4Kmm_empzJAq","col-md-7-start":"x034ilrJF7rO9UJB2rI1","col-md-7-end":"Wt8t2e16viRrOJ1lLA5v","col-md-8":"S6pIrEy9AMLKx9bgh_Ae","col-md-8-start":"kEfI4tGyuWfHTlRnvIab","col-md-8-end":"PUzX4RRsKq1dnsz3gebS","col-lg-1":"X_pdcLJikd8LS_YAdJlB","col-lg-1-start":"tl936d14Huby4khYp05X","col-lg-1-end":"hnge0LnR69d3NXEtEE1t","col-lg-2":"fj0NUMuyZQcPNgKcjp5Z","col-lg-2-start":"R2ncBX7a2NigdYCcV1OX","col-lg-2-end":"t8vMSDVYno9k9itRwnXb","col-lg-3":"wsDuEN2GqHx6qzo8dUdk","col-lg-3-start":"cIEVPUweWtLBy3xaXnMx","col-lg-3-end":"fajUWBwu1m2B479j3jmz","col-lg-4":"YR0c7fQTgMkDdWzwSyLp","col-lg-4-start":"xlwp8BmplxkKNMI7gamo","col-lg-4-end":"_C4O1w9DUqx1m3gPf8aA","col-lg-5":"Z54F1hAErckAIrKlxnXW","col-lg-5-start":"ezSDWkRHmKSxDJXxuiOH","col-lg-5-end":"T0ChoeAjGJjkkNrYhD4g","col-lg-6":"qtMoMPF6yHvGJnWHSsde","col-lg-6-start":"gdoywN5VPiWERfIBqkph","col-lg-6-end":"wUev_VH5uf_pwFFlbnAU","col-lg-7":"egIPDFJsOpownTClq9XP","col-lg-7-start":"yGhp9yoAW7k0kQik9AB7","col-lg-7-end":"SJ43U9mR5wUg5V2qBeQA","col-lg-8":"cTuyHfMwSUJxN_HdIEgd","col-lg-8-start":"smCr8DaIagcumdvdldiK","col-lg-8-end":"T03NHzQJvzwL6wAfIiTL","col-lg-9":"pMvxM3RJGjqyNdf9qg1Y","col-lg-9-start":"iIVpNRwEnQ_JI5gpp9EN","col-lg-9-end":"ZbQ4u4vGSX5rJOje4uGL","col-lg-10":"gKb5wuIDAlKGbrjK2vxy","col-lg-10-start":"Z7pINdImE2WJiYnZBTqm","col-lg-10-end":"ZTxp6qpvwurMdOnLLSz1","col-lg-11":"NnQTlbfnxPDR6cQ7rygg","col-lg-11-start":"O137wZd6Yl0olSA9PsXR","col-lg-11-end":"zf2OJtQ2MPz6SDoh6CB0","col-lg-12":"U3H6UHW6HqRt9hdzVg3O","col-lg-12-start":"zynnNeS_ZBTxABcVpUQH","col-lg-12-end":"vI8tltFZtFUNAy9Iag9s"}},8730:(e,t,n)=>{"use strict";n.d(t,{Z:()=>c});const c={sm:"(max-width: 599px)",md:"(min-width: 600px) and (max-width: 959px)",lg:"(min-width: 960px)",container:"SqdhUZkXCRuIpErj1B3z",fluid:"OZC_9a1LhpWF9dv15Gdh"}},1683:()=>{},3280:(e,t,n)=>{"use strict";n.d(t,{Z:()=>c});const c={reset:"WQVtrU6q0L1Igcj7wCrQ","headline-medium":"UujoBFTnQNY2cWU2SIsH","headline-small":"TeGO5V_thHw5lDAm1_2M","headline-small-regular":"WolQzb2MsSgiNmLtc7_j","title-medium":"hUB0JT8p1T2Hw28N6qC8","title-small":"zY2No8Ga4b8shbOQGhnv",body:"tIj0D1t8Cc892ikmgFPZ","body-small":"KdcN0BnOaVeVhyLRKqhS","body-extra-small":"dso3Rh3tl3Xv1GumBktz",label:"PItlW5vRExLnTj4a8eLE","m-0":"TwRpPlktzxhmFVeua7P5","mx-0":"zVfqx7gyb3o9mxfGynn1","my-0":"iSHVzNiB9iVleGljaQxy","mt-0":"xqDIp6cNVr_E6RXaiPyD","mr-0":"S8EwaXk1kyPizt6x4WH2","mb-0":"ODX5Vr1TARoLFkDDFooD","ml-0":"cphJ8dCpfimnky7P2FHg","m-1":"PFgIhNxIyiSuNvQjAIYj","mx-1":"M2jKmUzDxvJjjVEPU3zn","my-1":"io15gAh8tMTNbSEfwJKk","mt-1":"rcTN5uw9xIEeMEGL3Xi_","mr-1":"CQSkybjq2TcRM1Xo9COV","mb-1":"hfqOWgq6_MEGdFE82eOY","ml-1":"I8MxZQYTbuu595yfesWA","m-2":"kQkc6rmdpvLKPkyoJtVQ","mx-2":"j6vFPxWuu4Jan2ldoxpp","my-2":"hqr39dC4H_AbactPAkCG","mt-2":"c3dQnMi16C6J6Ecy4283","mr-2":"YNZmHOuRo6hU7zzKfPdP","mb-2":"Db8lbak1_wunpPk8NwKU","ml-2":"ftsYE5J9hLzquQ0tA5dY","m-3":"Det4MHzLUW7EeDnafPzq","mx-3":"h_8EEAztC29Vve1datb5","my-3":"YXIXJ0h1k47u6hzK8KcM","mt-3":"soADBBkcIKCBXzCTuV9_","mr-3":"zSX59ziEaEWGjnpZa4uV","mb-3":"yrVTnq_WBMbejg89c2ZQ","ml-3":"UKtHPJnI2cXBWtPDm5hM","m-4":"guexok_Tqd5Tf52hRlbT","mx-4":"oS1E2KfTBZkJ3F0tN7T6","my-4":"DN1OhhXi6AoBgEdDSbGd","mt-4":"ot2kkMcYHv53hLZ4LSn0","mr-4":"A1krOZZhlQ6Sp8Cy4bly","mb-4":"pkDbXXXL32237M0hokEh","ml-4":"XXv4kDTGvEnQeuGKOPU3","m-5":"yGqHk1a57gaISwkXwXe6","mx-5":"X8cghM358X3DkXLc9aNK","my-5":"GdfSmGwHlFnN2S6xBn1f","mt-5":"yqeuzwyGQ7zG0avrGqi_","mr-5":"g9emeCkuHvYhveiJbfXO","mb-5":"Lvk3dqcyHbZ07QCRlrUQ","ml-5":"r3yQECDQ9qX0XZzXlVAg","m-6":"aQhlPwht2Cz1X_63Miw0","mx-6":"JyHb0vK3wJgpblL9s5j8","my-6":"cY2gULL1lAv6WPNIRuf3","mt-6":"NBWQ9Lwhh_fnry3lg_p7","mr-6":"yIOniNe5E40C8fWvBm5V","mb-6":"t30usboNSyqfQWIwHvT3","ml-6":"Nm_TyFkYCMhOoghoToKJ","m-7":"C4qJKoBXpgKtpmrqtEKB","mx-7":"S93Srbu6NQ_PBr7DmTiD","my-7":"fJj8k6gGJDks3crUZxOS","mt-7":"cW6D6djs7Ppm7fD7TeoV","mr-7":"DuCnqNfcxcP3Z__Yo5Ro","mb-7":"im8407m2fw5vOg7O2zsw","ml-7":"G0fbeBgvz2sh3uTP9gNl","m-8":"kvW3sBCxRxUqz1jrVMJl","mx-8":"tOjEqjLONQdkiYx_XRnw","my-8":"op5hFSx318zgxsoZZNLN","mt-8":"c9WfNHP6TFKWIfLxv52J","mr-8":"sBA75QqcqRwwYSHJh2wc","mb-8":"GpL6idrXmSOM6jB8Ohsf","ml-8":"HbtWJoQwpgGycz8dGzeT","p-0":"uxX3khU88VQ_Ah49Ejsa","px-0":"KX0FhpBKwKzs9fOUdbNz","py-0":"PfK8vKDyN32dnimlzYjz","pt-0":"emxLHRjQuJsImnPbQIzE","pr-0":"kJ8WzlpTVgdViXt8ukP9","pb-0":"tg_UIUI11VBzrTAn2AzJ","pl-0":"uczvl8kaz84oPQJ2DB2R","p-1":"o7UHPcdVK3lt7q3lqV4o","px-1":"IDqEOxvDoYrFYxELPmtX","py-1":"DdywPW2qSYlu2pt8tpO2","pt-1":"npy3hw4A5QSkDicb2CJJ","pr-1":"LgbptTApNY5NwLQvEFAt","pb-1":"WZQy2SZuZso59bUsXXyl","pl-1":"o331apInxNunbYB3SfPE","p-2":"fMPIyD9Vqki1Lrc_yJnG","px-2":"i2pMcTcdrr10IQoiSm_L","py-2":"eA702gn32kwptiI1obXH","pt-2":"o9bGieUKcYc8o0Ij9oZX","pr-2":"SwZcFez1RDqWsOFjB5iG","pb-2":"eHpLc_idmuEqeqCTvqkN","pl-2":"vU39i2B4P1fUTMB2l6Vo","p-3":"JHWNzBnE29awhdu5BEh1","px-3":"X72lGbb56L3KFzC2xQ9N","py-3":"BzfNhRG8wXdCEB5ocQ6e","pt-3":"srV0KSDC83a2fiimSMMQ","pr-3":"lUWfkmbQjCskhcNwkyCm","pb-3":"Ts0dIlc3aTSL7V4cIHis","pl-3":"CzlqQXXhX6MvorArFZ8B","p-4":"TqMPkQtR_DdZuKb5vBoV","px-4":"a7UrjhI69Vetlcj9ZVzz","py-4":"StEhBzGs2Gi5dDEkjhAv","pt-4":"FGneZfZyvYrt1dG0zcnm","pr-4":"APEH216rpdlJWgD2fHc8","pb-4":"oGwXC3ohCic9XnAj6x69","pl-4":"U6gnT9y42ViPNOcNzBwb","p-5":"IpdRLBwnHqbqFrixgbYC","px-5":"HgNeXvkBa9o3bQ5fvFZm","py-5":"tJtFZM3XfPG9v9TSDfN1","pt-5":"PdifHW45QeXYfK568uD8","pr-5":"mbLkWTTZ0Za_BBbFZ5b2","pb-5":"vVWpZpLlWrkTt0hMk8XU","pl-5":"RxfaJj5a1Nt6IavEo5Zl","p-6":"SppJULDGdnOGcjZNCYBy","px-6":"palY2nLwdoyooPUm9Hhk","py-6":"WYw1JvZC0ppLdvSAPhr_","pt-6":"YEEJ9b90ueQaPfiU8aeN","pr-6":"QE0ssnsKvWJMqlhPbY5u","pb-6":"n8yA3jHlMRyLd5UIfoND","pl-6":"tXHmxYnHzbwtfxEaG51n","p-7":"kBTsPKkO_3g_tLkj77Um","px-7":"RyhrFx6Y1FGDrGAAyaxm","py-7":"CBwRpB0bDN3iEdQPPMJO","pt-7":"vQVSq6SvWKbOMu6r4H6b","pr-7":"oBy5__aEADMsH46mrgFX","pb-7":"KVEXoJqf1s92j0JMdNmN","pl-7":"ZMXGNrNaKW3k_3TLz0Fq","p-8":"tuiR9PhkHXhGyEgzRZRI","px-8":"U7454qyWkQNa2iaSJziu","py-8":"VLYIv2GVocjuN93e8HC8","pt-8":"X1rm9DQ1zLGLfogja5Gn","pr-8":"JS7G6kAuqJo5GIuF8S5t","pb-8":"Y8F9ga1TDCMbM1lj4gUz","pl-8":"AJuyNGrI63BOWql719H8"}},1510:()=>{},9610:()=>{},2427:()=>{},4220:()=>{},287:()=>{},9823:()=>{},6234:(e,t,n)=>{"use strict";n.d(t,{Z:()=>c});const c={icon:"rV_5QyvhDnsVjCX4pb0h",link:"MO1jDNY8VPqeNS9xL8jE"}},8578:(e,t,n)=>{"use strict";n.d(t,{Z:()=>c});const c={"relative-col":"zvd4dCB_bBDiXJKKDqXm","close-link":"ly4o9lSswAGHFXqGUEIO","account-description":"u64Go3kwEZ7MD9eji0H1","account-images":"_RT41NE3LU4R0ubcij2y",wordpress:"cFGWJeRiGHjAr8D7CWJW",google:"Iz3l7a05TP6HK9S92TIL",apple:"lmQ0wFmnk4kKkGVjokPA","all-features":"AoIs8wD92wKR8RpQj6Uc"}},197:(e,t,n)=>{"use strict";n.d(t,{Z:()=>c});const c={icon:"hdasSNj9k3Sc5PwXK4uE",link:"eWN8Hj0SBRDq1F48n_Fg"}},1017:(e,t,n)=>{"use strict";n.d(t,{Z:()=>c});const c={heading:"jErCC9oKHSM15BxzFyQK",notice:"oVoYbwbFB6U2o90Njusk",message:"wBVXH4OTNwLHPRpN4nsq"}},6891:(e,t,n)=>{"use strict";n.d(t,{Z:()=>c});const c={container:"wiobThfXJCuhGNrbFIT6","expire-date":"VgAxgahF9bC2M__FiIgV","actions-list-item":"Doju0RxvvN9JS12mf489"}},9720:(e,t,n)=>{"use strict";n.d(t,{Z:()=>c});const c={container:"pIsYsXFAJ9KX2VrS5rmY","is-link":"YXHdD0VsFjiTsVRLrrx9","action-link-button":"ehgY0qp6bl53RaxP5rFF","has-error":"Pp9cMIaESLYelLOX3tkI",name:"w56ueQLYexqzTybA7015",description:"gmPKCDKZcfQt9WieTyKS",button:"ZKHHfl5DhA9kUnaL0qQZ",actions:"fDBaV7I4yUO6w5AWVEtr",status:"f5VJYwuJmjxH8PVxEbbv",active:"ry3pxoGtmQ0ZeSwp7F_3",inactive:"LZzE3EG7m3CDR46wwwEr",error:"Vx_jpT02r8W6NfsRSB02","is-fetching":"PdsJCfyyjSgrNDheF2qi","blink-animation":"dWP7ypkVXudMbAa38W5Z"}},8429:(e,t,n)=>{"use strict";n.d(t,{Z:()=>c});const c={card:"q0T8YyQxRawhpDtvJjxI",container:"B7JDqI_vtKxSy5GjvqA1","card-header":"zj7xadmhIWeuf7ZwvVTS","product-bundle-icon":"GsioW6IsC8EMYE3U6788","product-bundle-icons":"dbz07JqxOlivjKO4vBEF","product-icon":"cfEO8udWbRGPFJzW8Jg5","plus-icon":"zlh3zbjUe4Z8cBs7uVVe","product-has-required-plan":"qoZuzG5EcDa231hC6t0P","checkout-button":"Q6uUUQCPWS6_6nLxIn68","components-spinner":"YU4iBCRze09ZP3iCsdcb",features:"Q1jaYDpa2AVfJpA29wT0","price-container":"xgv3jRkeF39aEQELCwru",price:"twlleZ5Ehq4bB7CvKVSW","is-old":"Qg4rPEvXsqmod1s_31d8","price-description":"ApsgxIornVy_3KnciVeJ","supporting-info":"NMxcZL17aEP7v81uG3zD"}},1287:(e,t,n)=>{"use strict";n.d(t,{Z:()=>c});const c={container:"SWwV4Pw6OZ5vU3PqPXmr",imageContainer:"r7tUofa9Z3A5ziKVR1H7"}},5878:()=>{},3171:e=>{var t=1e3,n=60*t,c=60*n,r=24*c,a=7*r,i=365.25*r;function s(e,t,n,c){var r=t>=1.5*n;return Math.round(e/n)+" "+c+(r?"s":"")}e.exports=function(e,o){o=o||{};var l=typeof e;if("string"===l&&e.length>0)return function(e){if((e=String(e)).length>100)return;var s=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(!s)return;var o=parseFloat(s[1]);switch((s[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return o*i;case"weeks":case"week":case"w":return o*a;case"days":case"day":case"d":return o*r;case"hours":case"hour":case"hrs":case"hr":case"h":return o*c;case"minutes":case"minute":case"mins":case"min":case"m":return o*n;case"seconds":case"second":case"secs":case"sec":case"s":return o*t;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return o;default:return}}(e);if("number"===l&&isFinite(e))return o.long?function(e){var a=Math.abs(e);if(a>=r)return s(e,a,r,"day");if(a>=c)return s(e,a,c,"hour");if(a>=n)return s(e,a,n,"minute");if(a>=t)return s(e,a,t,"second");return e+" ms"}(e):function(e){var a=Math.abs(e);if(a>=r)return Math.round(e/r)+"d";if(a>=c)return Math.round(e/c)+"h";if(a>=n)return Math.round(e/n)+"m";if(a>=t)return Math.round(e/t)+"s";return e+"ms"}(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))}},7556:(e,t,n)=>{"use strict";var c=n(3713);function r(){}function a(){}a.resetWarningCache=r,e.exports=function(){function e(e,t,n,r,a,i){if(i!==c){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:a,resetWarningCache:r};return n.PropTypes=n,n}},5844:(e,t,n)=>{e.exports=n(7556)()},3713:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},469:(e,t,n)=>{"use strict";var c=n(758);function r(){}function a(){}a.resetWarningCache=r,e.exports=function(){function e(e,t,n,r,a,i){if(i!==c){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:a,resetWarningCache:r};return n.PropTypes=n,n}},5162:(e,t,n)=>{e.exports=n(469)()},758:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},554:(e,t,n)=>{"use strict";n.d(t,{UT:()=>l,rU:()=>p});var c=n(9196),r=n(5250),a=n(5439);function i(){return i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var c in n)Object.prototype.hasOwnProperty.call(n,c)&&(e[c]=n[c])}return e},i.apply(this,arguments)}function s(e,t){if(null==e)return{};var n,c,r={},a=Object.keys(e);for(c=0;c<a.length;c++)n=a[c],t.indexOf(n)>=0||(r[n]=e[n]);return r}const o=["onClick","reloadDocument","replace","state","target","to"];function l(e){let{basename:t,children:n,window:i}=e,s=(0,c.useRef)();null==s.current&&(s.current=(0,r.q_)({window:i}));let o=s.current,[l,p]=(0,c.useState)({action:o.action,location:o.location});return(0,c.useLayoutEffect)((()=>o.listen(p)),[o]),(0,c.createElement)(a.F0,{basename:t,children:n,location:l.location,navigationType:l.action,navigator:o})}const p=(0,c.forwardRef)((function(e,t){let{onClick:n,reloadDocument:l,replace:p=!1,state:u,target:m,to:d}=e,g=s(e,o),h=(0,a.oQ)(d),y=function(e,t){let{target:n,replace:i,state:s}=void 0===t?{}:t,o=(0,a.s0)(),l=(0,a.TH)(),p=(0,a.WU)(e);return(0,c.useCallback)((t=>{if(!(0!==t.button||n&&"_self"!==n||function(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}(t))){t.preventDefault();let n=!!i||(0,r.Ep)(l)===(0,r.Ep)(p);o(e,{replace:n,state:s})}}),[l,o,p,i,s,n,e])}(d,{replace:p,state:u,target:m});return(0,c.createElement)("a",i({},g,{href:h,onClick:function(e){n&&n(e),e.defaultPrevented||l||y(e)},ref:t,target:m}))}))},5439:(e,t,n)=>{"use strict";n.d(t,{AW:()=>l,F0:()=>p,TH:()=>g,WU:()=>y,Z5:()=>u,oQ:()=>m,s0:()=>h});var c=n(9196),r=n(5250);function a(e,t){if(!e)throw new Error(t)}const i=(0,c.createContext)(null);const s=(0,c.createContext)(null);const o=(0,c.createContext)({outlet:null,matches:[]});function l(e){a(!1)}function p(e){let{basename:t="/",children:n=null,location:o,navigationType:l=r.aU.Pop,navigator:p,static:u=!1}=e;d()&&a(!1);let m=S(t),g=(0,c.useMemo)((()=>({basename:m,navigator:p,static:u})),[m,p,u]);"string"==typeof o&&(o=(0,r.cP)(o));let{pathname:h="/",search:y="",hash:f="",state:k=null,key:v="default"}=o,E=(0,c.useMemo)((()=>{let e=Z(h,m);return null==e?null:{pathname:e,search:y,hash:f,state:k,key:v}}),[m,h,y,f,k,v]);return null==E?null:(0,c.createElement)(i.Provider,{value:g},(0,c.createElement)(s.Provider,{children:n,value:{location:E,navigationType:l}}))}function u(e){let{children:t,location:n}=e;return function(e,t){d()||a(!1);let{matches:n}=(0,c.useContext)(o),i=n[n.length-1],s=i?i.params:{},l=(i&&i.pathname,i?i.pathnameBase:"/");i&&i.route;0;let p,u=g();if(t){var m;let e="string"==typeof t?(0,r.cP)(t):t;"/"===l||(null==(m=e.pathname)?void 0:m.startsWith(l))||a(!1),p=e}else p=u;let h=p.pathname||"/",y="/"===l?h:h.slice(l.length)||"/",f=function(e,t,n){void 0===n&&(n="/");let c=Z(("string"==typeof t?(0,r.cP)(t):t).pathname||"/",n);if(null==c)return null;let a=k(e);!function(e){e.sort(((e,t)=>e.score!==t.score?t.score-e.score:function(e,t){return e.length===t.length&&e.slice(0,-1).every(((e,n)=>e===t[n]))?e[e.length-1]-t[t.length-1]:0}(e.routesMeta.map((e=>e.childrenIndex)),t.routesMeta.map((e=>e.childrenIndex)))))}(a);let i=null;for(let e=0;null==i&&e<a.length;++e)i=j(a[e],c);return i}(e,{pathname:y});0;return _(f&&f.map((e=>Object.assign({},e,{params:Object.assign({},s,e.params),pathname:N([l,e.pathname]),pathnameBase:"/"===e.pathnameBase?l:N([l,e.pathnameBase])}))),n)}(f(t),n)}function m(e){d()||a(!1);let{basename:t,navigator:n}=(0,c.useContext)(i),{hash:s,pathname:o,search:l}=y(e),p=o;if("/"!==t){let n=function(e){return""===e||""===e.pathname?"/":"string"==typeof e?(0,r.cP)(e).pathname:e.pathname}(e),c=null!=n&&n.endsWith("/");p="/"===o?t+(c?"/":""):N([t,o])}return n.createHref({pathname:p,search:l,hash:s})}function d(){return null!=(0,c.useContext)(s)}function g(){return d()||a(!1),(0,c.useContext)(s).location}function h(){d()||a(!1);let{basename:e,navigator:t}=(0,c.useContext)(i),{matches:n}=(0,c.useContext)(o),{pathname:r}=g(),s=JSON.stringify(n.map((e=>e.pathnameBase))),l=(0,c.useRef)(!1);return(0,c.useEffect)((()=>{l.current=!0})),(0,c.useCallback)((function(n,c){if(void 0===c&&(c={}),!l.current)return;if("number"==typeof n)return void t.go(n);let a=w(n,JSON.parse(s),r);"/"!==e&&(a.pathname=N([e,a.pathname])),(c.replace?t.replace:t.push)(a,c.state)}),[e,t,s,r])}function y(e){let{matches:t}=(0,c.useContext)(o),{pathname:n}=g(),r=JSON.stringify(t.map((e=>e.pathnameBase)));return(0,c.useMemo)((()=>w(e,JSON.parse(r),n)),[e,r,n])}function f(e){let t=[];return c.Children.forEach(e,(e=>{if(!(0,c.isValidElement)(e))return;if(e.type===c.Fragment)return void t.push.apply(t,f(e.props.children));e.type!==l&&a(!1);let n={caseSensitive:e.props.caseSensitive,element:e.props.element,index:e.props.index,path:e.props.path};e.props.children&&(n.children=f(e.props.children)),t.push(n)})),t}function k(e,t,n,c){return void 0===t&&(t=[]),void 0===n&&(n=[]),void 0===c&&(c=""),e.forEach(((e,r)=>{let i={relativePath:e.path||"",caseSensitive:!0===e.caseSensitive,childrenIndex:r,route:e};i.relativePath.startsWith("/")&&(i.relativePath.startsWith(c)||a(!1),i.relativePath=i.relativePath.slice(c.length));let s=N([c,i.relativePath]),o=n.concat(i);e.children&&e.children.length>0&&(!0===e.index&&a(!1),k(e.children,t,o,s)),(null!=e.path||e.index)&&t.push({path:s,score:b(s,e.index),routesMeta:o})})),t}const v=/^:\w+$/,E=e=>"*"===e;function b(e,t){let n=e.split("/"),c=n.length;return n.some(E)&&(c+=-2),t&&(c+=2),n.filter((e=>!E(e))).reduce(((e,t)=>e+(v.test(t)?3:""===t?1:10)),c)}function j(e,t){let{routesMeta:n}=e,c={},r="/",a=[];for(let e=0;e<n.length;++e){let i=n[e],s=e===n.length-1,o="/"===r?t:t.slice(r.length)||"/",l=C({path:i.relativePath,caseSensitive:i.caseSensitive,end:s},o);if(!l)return null;Object.assign(c,l.params);let p=i.route;a.push({params:c,pathname:N([r,l.pathname]),pathnameBase:S(N([r,l.pathnameBase])),route:p}),"/"!==l.pathnameBase&&(r=N([r,l.pathnameBase]))}return a}function _(e,t){return void 0===t&&(t=[]),null==e?null:e.reduceRight(((n,r,a)=>(0,c.createElement)(o.Provider,{children:void 0!==r.route.element?r.route.element:n,value:{outlet:n,matches:t.concat(e.slice(0,a+1))}})),null)}function C(e,t){"string"==typeof e&&(e={path:e,caseSensitive:!1,end:!0});let[n,c]=function(e,t,n){void 0===t&&(t=!1);void 0===n&&(n=!0);let c=[],r="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^$?{}|()[\]]/g,"\\$&").replace(/:(\w+)/g,((e,t)=>(c.push(t),"([^\\/]+)")));e.endsWith("*")?(c.push("*"),r+="*"===e||"/*"===e?"(.*)$":"(?:\\/(.+)|\\/*)$"):r+=n?"\\/*$":"(?:(?=[.~-]|%[0-9A-F]{2})|\\b|\\/|$)";return[new RegExp(r,t?void 0:"i"),c]}(e.path,e.caseSensitive,e.end),r=t.match(n);if(!r)return null;let a=r[0],i=a.replace(/(.)\/+$/,"$1"),s=r.slice(1);return{params:c.reduce(((e,t,n)=>{if("*"===t){let e=s[n]||"";i=a.slice(0,a.length-e.length).replace(/(.)\/+$/,"$1")}return e[t]=function(e,t){try{return decodeURIComponent(e)}catch(t){return e}}(s[n]||""),e}),{}),pathname:a,pathnameBase:i,pattern:e}}function w(e,t,n){let c,a="string"==typeof e?(0,r.cP)(e):e,i=""===e||""===a.pathname?"/":a.pathname;if(null==i)c=n;else{let e=t.length-1;if(i.startsWith("..")){let t=i.split("/");for(;".."===t[0];)t.shift(),e-=1;a.pathname=t.join("/")}c=e>=0?t[e]:"/"}let s=function(e,t){void 0===t&&(t="/");let{pathname:n,search:c="",hash:a=""}="string"==typeof e?(0,r.cP)(e):e,i=n?n.startsWith("/")?n:function(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach((e=>{".."===e?n.length>1&&n.pop():"."!==e&&n.push(e)})),n.length>1?n.join("/"):"/"}(n,t):t;return{pathname:i,search:P(c),hash:R(a)}}(a,c);return i&&"/"!==i&&i.endsWith("/")&&!s.pathname.endsWith("/")&&(s.pathname+="/"),s}function Z(e,t){if("/"===t)return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=e.charAt(t.length);return n&&"/"!==n?null:e.slice(t.length)||"/"}const N=e=>e.join("/").replace(/\/\/+/g,"/"),S=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),P=e=>e&&"?"!==e?e.startsWith("?")?e:"?"+e:"",R=e=>e&&"#"!==e?e.startsWith("#")?e:"#"+e:""},6975:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var c=n(951);const r=n.n(c)()("dops:analytics");let a,i;window._tkq=window._tkq||[],window.ga=window.ga||function(){(window.ga.q=window.ga.q||[]).push(arguments)},window.ga.l=+new Date;const s={initialize:function(e,t,n){s.setUser(e,t),s.setSuperProps(n),s.identifyUser()},setGoogleAnalyticsEnabled:function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;this.googleAnalyticsEnabled=e,this.googleAnalyticsKey=t},setMcAnalyticsEnabled:function(e){this.mcAnalyticsEnabled=e},setUser:function(e,t){i={ID:e,username:t}},setSuperProps:function(e){a=e},assignSuperProps:function(e){a=Object.assign(a,e)},mc:{bumpStat:function(e,t){const n=function(e,t){let n="";if("object"==typeof e){for(const t in e)n+="&x_"+encodeURIComponent(t)+"="+encodeURIComponent(e[t]);r("Bumping stats %o",e)}else n="&x_"+encodeURIComponent(e)+"="+encodeURIComponent(t),r('Bumping stat "%s" in group "%s"',t,e);return n}(e,t);s.mcAnalyticsEnabled&&((new Image).src=document.location.protocol+"//pixel.wp.com/g.gif?v=wpcom-no-pv"+n+"&t="+Math.random())},bumpStatWithPageView:function(e,t){const n=function(e,t){let n="";if("object"==typeof e){for(const t in e)n+="&"+encodeURIComponent(t)+"="+encodeURIComponent(e[t]);r("Built stats %o",e)}else n="&"+encodeURIComponent(e)+"="+encodeURIComponent(t),r('Built stat "%s" in group "%s"',t,e);return n}(e,t);s.mcAnalyticsEnabled&&((new Image).src=document.location.protocol+"//pixel.wp.com/g.gif?v=wpcom"+n+"&t="+Math.random())}},pageView:{record:function(e,t){s.tracks.recordPageView(e),s.ga.recordPageView(e,t)}},purchase:{record:function(e,t,n,c,r,a,i){s.ga.recordPurchase(e,t,n,c,r,a,i)}},tracks:{recordEvent:function(e,t){t=t||{},0===e.indexOf("akismet_")||0===e.indexOf("jetpack_")?(a&&(r("- Super Props: %o",a),t=Object.assign(t,a)),r('Record event "%s" called with props %s',e,JSON.stringify(t)),window._tkq.push(["recordEvent",e,t])):r('- Event name must be prefixed by "akismet_" or "jetpack_"')},recordJetpackClick:function(e){const t="object"==typeof e?e:{target:e};s.tracks.recordEvent("jetpack_wpa_click",t)},recordPageView:function(e){s.tracks.recordEvent("akismet_page_view",{path:e})},setOptOut:function(e){r("Pushing setOptOut: %o",e),window._tkq.push(["setOptOut",e])}},ga:{initialized:!1,initialize:function(){let e={};s.ga.initialized||(i&&(e={userId:"u-"+i.ID}),window.ga("create",this.googleAnalyticsKey,"auto",e),s.ga.initialized=!0)},recordPageView:function(e,t){s.ga.initialize(),r("Recording Page View ~ [URL: "+e+"] [Title: "+t+"]"),this.googleAnalyticsEnabled&&(window.ga("set","page",e),window.ga("send",{hitType:"pageview",page:e,title:t}))},recordEvent:function(e,t,n,c){s.ga.initialize();let a="Recording Event ~ [Category: "+e+"] [Action: "+t+"]";void 0!==n&&(a+=" [Option Label: "+n+"]"),void 0!==c&&(a+=" [Option Value: "+c+"]"),r(a),this.googleAnalyticsEnabled&&window.ga("send","event",e,t,n,c)},recordPurchase:function(e,t,n,c,r,a,i){window.ga("require","ecommerce"),window.ga("ecommerce:addTransaction",{id:e,revenue:c,currency:i}),window.ga("ecommerce:addItem",{id:e,name:t,sku:n,price:r,quantity:a}),window.ga("ecommerce:send")}},identifyUser:function(){i&&window._tkq.push(["identifyUser",i.ID,i.username])},setProperties:function(e){window._tkq.push(["setProperties",e])},clearedIdentity:function(){window._tkq.push(["clearIdentity"])}},o=s},4743:(e,t,n)=>{"use strict";n.d(t,{ZP:()=>u});var c=n(1132),r=n(6483);function a(e){class t extends Error{constructor(){super(...arguments),this.name=e}}return t}const i=a("JsonParseError"),s=a("JsonParseAfterRedirectError"),o=a("Api404Error"),l=a("Api404AfterRedirectError"),p=a("FetchNetworkError");const u=new function(e,t){let n=e,a={"X-WP-Nonce":t},i={credentials:"same-origin",headers:a},s={method:"post",credentials:"same-origin",headers:Object.assign({},a,{"Content-type":"application/json"})},o=function(e){const t=e.split("?"),n=t.length>1?t[1]:"",c=n.length?n.split("&"):[];return c.push("_cacheBuster="+(new Date).getTime()),t[0]+"?"+c.join("&")};const l={setApiRoot(e){n=e},setApiNonce(e){a={"X-WP-Nonce":e},i={credentials:"same-origin",headers:a},s={method:"post",credentials:"same-origin",headers:Object.assign({},a,{"Content-type":"application/json"})}},setCacheBusterCallback:e=>{o=e},registerSite:(e,t)=>{const r={registration_nonce:e,no_iframe:!0};return(0,c.jetpackConfigHas)("consumer_slug")&&(r.plugin_slug=(0,c.jetpackConfigGet)("consumer_slug")),null!==t&&(r.redirect_uri=t),u(`${n}jetpack/v4/connection/register`,s,{body:JSON.stringify(r)}).then(m).then(d)},fetchAuthorizationUrl:e=>p((0,r.addQueryArgs)(`${n}jetpack/v4/connection/authorize_url`,{no_iframe:"1",redirect_uri:e}),i).then(m).then(d),fetchSiteConnectionData:()=>p(`${n}jetpack/v4/connection/data`,i).then(d),fetchSiteConnectionStatus:()=>p(`${n}jetpack/v4/connection`,i).then(d),fetchSiteConnectionTest:()=>p(`${n}jetpack/v4/connection/test`,i).then(m).then(d),fetchUserConnectionData:()=>p(`${n}jetpack/v4/connection/data`,i).then(d),fetchUserTrackingSettings:()=>p(`${n}jetpack/v4/tracking/settings`,i).then(m).then(d),updateUserTrackingSettings:e=>u(`${n}jetpack/v4/tracking/settings`,s,{body:JSON.stringify(e)}).then(m).then(d),disconnectSite:()=>u(`${n}jetpack/v4/connection`,s,{body:JSON.stringify({isActive:!1})}).then(m).then(d),fetchConnectUrl:()=>p(`${n}jetpack/v4/connection/url`,i).then(m).then(d),unlinkUser:()=>u(`${n}jetpack/v4/connection/user`,s,{body:JSON.stringify({linked:!1})}).then(m).then(d),reconnect:()=>u(`${n}jetpack/v4/connection/reconnect`,s).then(m).then(d),fetchConnectedPlugins:()=>p(`${n}jetpack/v4/connection/plugins`,i).then(m).then(d),setHasSeenWCConnectionModal:()=>u(`${n}jetpack/v4/seen-wc-connection-modal`,s).then(m).then(d),fetchModules:()=>p(`${n}jetpack/v4/module/all`,i).then(m).then(d),fetchModule:e=>p(`${n}jetpack/v4/module/${e}`,i).then(m).then(d),activateModule:e=>u(`${n}jetpack/v4/module/${e}/active`,s,{body:JSON.stringify({active:!0})}).then(m).then(d),deactivateModule:e=>u(`${n}jetpack/v4/module/${e}/active`,s,{body:JSON.stringify({active:!1})}),updateModuleOptions:(e,t)=>u(`${n}jetpack/v4/module/${e}`,s,{body:JSON.stringify(t)}).then(m).then(d),updateSettings:e=>u(`${n}jetpack/v4/settings`,s,{body:JSON.stringify(e)}).then(m).then(d),getProtectCount:()=>p(`${n}jetpack/v4/module/protect/data`,i).then(m).then(d),resetOptions:e=>u(`${n}jetpack/v4/options/${e}`,s,{body:JSON.stringify({reset:!0})}).then(m).then(d),activateVaultPress:()=>u(`${n}jetpack/v4/plugins`,s,{body:JSON.stringify({slug:"vaultpress",status:"active"})}).then(m).then(d),getVaultPressData:()=>p(`${n}jetpack/v4/module/vaultpress/data`,i).then(m).then(d),installPlugin:(e,t)=>{const c={slug:e,status:"active"};return t&&(c.source=t),u(`${n}jetpack/v4/plugins`,s,{body:JSON.stringify(c)}).then(m).then(d)},activateAkismet:()=>u(`${n}jetpack/v4/plugins`,s,{body:JSON.stringify({slug:"akismet",status:"active"})}).then(m).then(d),getAkismetData:()=>p(`${n}jetpack/v4/module/akismet/data`,i).then(m).then(d),checkAkismetKey:()=>p(`${n}jetpack/v4/module/akismet/key/check`,i).then(m).then(d),checkAkismetKeyTyped:e=>u(`${n}jetpack/v4/module/akismet/key/check`,s,{body:JSON.stringify({api_key:e})}).then(m).then(d),fetchStatsData:e=>p(function(e){let t=`${n}jetpack/v4/module/stats/data`;-1!==t.indexOf("?")?t+=`&range=${encodeURIComponent(e)}`:t+=`?range=${encodeURIComponent(e)}`;return t}(e),i).then(m).then(d).then(g),getPluginUpdates:()=>p(`${n}jetpack/v4/updates/plugins`,i).then(m).then(d),getPlans:()=>p(`${n}jetpack/v4/plans`,i).then(m).then(d),fetchSettings:()=>p(`${n}jetpack/v4/settings`,i).then(m).then(d),updateSetting:e=>u(`${n}jetpack/v4/settings`,s,{body:JSON.stringify(e)}).then(m).then(d),fetchSiteData:()=>p(`${n}jetpack/v4/site`,i).then(m).then(d).then((e=>JSON.parse(e.data))),fetchSiteFeatures:()=>p(`${n}jetpack/v4/site/features`,i).then(m).then(d).then((e=>JSON.parse(e.data))),fetchSiteProducts:()=>p(`${n}jetpack/v4/site/products`,i).then(m).then(d),fetchSitePurchases:()=>p(`${n}jetpack/v4/site/purchases`,i).then(m).then(d).then((e=>JSON.parse(e.data))),fetchSiteBenefits:()=>p(`${n}jetpack/v4/site/benefits`,i).then(m).then(d).then((e=>JSON.parse(e.data))),fetchSiteDiscount:()=>p(`${n}jetpack/v4/site/discount`,i).then(m).then(d).then((e=>e.data)),fetchSetupQuestionnaire:()=>p(`${n}jetpack/v4/setup/questionnaire`,i).then(m).then(d),fetchRecommendationsData:()=>p(`${n}jetpack/v4/recommendations/data`,i).then(m).then(d),fetchRecommendationsProductSuggestions:()=>p(`${n}jetpack/v4/recommendations/product-suggestions`,i).then(m).then(d),fetchRecommendationsUpsell:()=>p(`${n}jetpack/v4/recommendations/upsell`,i).then(m).then(d),fetchRecommendationsConditional:()=>p(`${n}jetpack/v4/recommendations/conditional`,i).then(m).then(d),saveRecommendationsData:e=>u(`${n}jetpack/v4/recommendations/data`,s,{body:JSON.stringify({data:e})}).then(m),fetchProducts:()=>p(`${n}jetpack/v4/products`,i).then(m).then(d),fetchRewindStatus:()=>p(`${n}jetpack/v4/rewind`,i).then(m).then(d).then((e=>JSON.parse(e.data))),fetchScanStatus:()=>p(`${n}jetpack/v4/scan`,i).then(m).then(d).then((e=>JSON.parse(e.data))),dismissJetpackNotice:e=>u(`${n}jetpack/v4/notice/${e}`,s,{body:JSON.stringify({dismissed:!0})}).then(m).then(d),fetchPluginsData:()=>p(`${n}jetpack/v4/plugins`,i).then(m).then(d),fetchIntroOffers:()=>p(`${n}jetpack/v4/intro-offers`,i).then(m).then(d),fetchVerifySiteGoogleStatus:e=>p(null!==e?`${n}jetpack/v4/verify-site/google/${e}`:`${n}jetpack/v4/verify-site/google`,i).then(m).then(d),verifySiteGoogle:e=>u(`${n}jetpack/v4/verify-site/google`,s,{body:JSON.stringify({keyring_id:e})}).then(m).then(d),sendMobileLoginEmail:()=>u(`${n}jetpack/v4/mobile/send-login-email`,s).then(m).then(d),submitSurvey:e=>u(`${n}jetpack/v4/marketing/survey`,s,{body:JSON.stringify(e)}).then(m).then(d),saveSetupQuestionnaire:e=>u(`${n}jetpack/v4/setup/questionnaire`,s,{body:JSON.stringify(e)}).then(m).then(d),updateLicensingError:e=>u(`${n}jetpack/v4/licensing/error`,s,{body:JSON.stringify(e)}).then(m).then(d),updateLicenseKey:e=>u(`${n}jetpack/v4/licensing/set-license`,s,{body:JSON.stringify({license:e})}).then(m).then(d),getUserLicensesCounts:()=>p(`${n}jetpack/v4/licensing/user/counts`,i).then(m).then(d),getUserLicenses:()=>p(`${n}jetpack/v4/licensing/user/licenses`,i).then(m).then(d),updateLicensingActivationNoticeDismiss:e=>u(`${n}jetpack/v4/licensing/user/activation-notice-dismiss`,s,{body:JSON.stringify({last_detached_count:e})}).then(m).then(d),updateRecommendationsStep:e=>u(`${n}jetpack/v4/recommendations/step`,s,{body:JSON.stringify({step:e})}).then(m),confirmIDCSafeMode:()=>u(`${n}jetpack/v4/identity-crisis/confirm-safe-mode`,s).then(m),startIDCFresh:e=>u(`${n}jetpack/v4/identity-crisis/start-fresh`,s,{body:JSON.stringify({redirect_uri:e})}).then(m).then(d),migrateIDC:()=>u(`${n}jetpack/v4/identity-crisis/migrate`,s).then(m),attachLicenses:e=>u(`${n}jetpack/v4/licensing/attach-licenses`,s,{body:JSON.stringify({licenses:e})}).then(m).then(d),fetchSearchPlanInfo:()=>p(`${n}jetpack/v4/search/plan`,i).then(m).then(d),fetchSearchSettings:()=>p(`${n}jetpack/v4/search/settings`,i).then(m).then(d),updateSearchSettings:e=>u(`${n}jetpack/v4/search/settings`,s,{body:JSON.stringify(e)}).then(m).then(d),fetchSearchStats:()=>p(`${n}jetpack/v4/search/stats`,i).then(m).then(d),fetchWafSettings:()=>p(`${n}jetpack/v4/waf`,i).then(m).then(d),fetchWordAdsSettings:()=>p(`${n}jetpack/v4/wordads/settings`,i).then(m).then(d),updateWordAdsSettings:e=>u(`${n}jetpack/v4/wordads/settings`,s,{body:JSON.stringify(e)}),fetchSearchPricing:()=>p(`${n}jetpack/v4/search/pricing`,i).then(m).then(d)};function p(e,t){return fetch(o(e),t)}function u(e,t,n){return fetch(e,Object.assign({},t,n)).catch(h)}function g(e){return e.general&&void 0===e.general.response||e.week&&void 0===e.week.response||e.month&&void 0===e.month.response?e:{}}Object.assign(this,l)};function m(e){return e.status>=200&&e.status<300?e:404===e.status?new Promise((()=>{throw e.redirected?new l(e.redirected):new o})):e.json().catch((e=>g(e))).then((t=>{const n=new Error(`${t.message} (Status ${e.status})`);throw n.response=t,n.name="ApiError",n}))}function d(e){return e.json().catch((t=>g(t,e.redirected,e.url)))}function g(e,t,n){throw t?new s(n):new i}function h(){throw new p}},7121:(e,t,n)=>{"use strict";n.d(t,{Z:()=>p});var c=n(5609),r=n(5736),a=n(5162),i=n.n(a),s=n(9196),o=n.n(s);n(9710);const __=r.__,l=e=>{const{label:t,onClick:n,isLoading:r,displayError:a,errorMessage:i}=e;return o().createElement("div",{className:"jp-action-button"},o().createElement(c.Button,{className:"jp-action-button--button",label:t,onClick:n,variant:"primary",disabled:r},r?o().createElement(c.Spinner,null):t),a&&o().createElement("p",{className:"jp-action-button__error"},i))};l.propTypes={label:i().string.isRequired,onClick:i().func,isLoading:i().bool,displayError:i().bool,errorMessage:i().string},l.defaultProps={isLoading:!1,displayError:!1,errorMessage:__("An error occurred. Please try again.","jetpack-my-jetpack")};const p=l},1163:(e,t,n)=>{"use strict";n.d(t,{Z:()=>y});var c=n(5736),r=n(5235),a=n.n(r),i=n(5162),s=n.n(i),o=n(9196),l=n.n(o),p=n(2392),u=n(8868),m=n(2939),d=n(8218),g=n(1494);const __=c.__,h=e=>{const{children:t,moduleName:n,moduleNameHref:c,a8cLogoHref:r,showHeader:i,showFooter:s,showBackground:o,header:h}=e,y=a()(g.Z["admin-page"],{[g.Z.background]:o});return l().createElement("div",{className:y},i&&l().createElement(d.Z,{horizontalSpacing:5},l().createElement(m.Z,null,h||l().createElement(u.Z,null))),l().createElement(d.Z,{fluid:!0,horizontalSpacing:0},l().createElement(m.Z,null,t)),s&&l().createElement(d.Z,{horizontalSpacing:5},l().createElement(m.Z,null,l().createElement(p.Z,{moduleName:n,a8cLogoHref:r,moduleNameHref:c}))))};h.defaultProps={moduleName:__("Jetpack","jetpack-my-jetpack"),showHeader:!0,header:null,showFooter:!0,showBackground:!0},h.propTypes={a8cLogoHref:s().string,moduleName:s().string,showHeader:s().bool,header:s().node,showFooter:s().bool,moduleNameHref:s().string,showBackground:s().bool};const y=h},8038:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var c=n(9196),r=n.n(c),a=n(511);const i=e=>{const{children:t}=e;return r().createElement("div",{className:a.Z.section},t)}},3244:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var c=n(9196),r=n.n(c),a=n(281);const i=e=>{const{children:t}=e;return r().createElement("div",{className:a.Z["section-hero"]},t)}},207:(e,t,n)=>{"use strict";n.d(t,{Z:()=>d});var c=n(2402),r=n.n(c),a=n(5736),i=n(5235),s=n.n(i),o=n(5162),l=n.n(o),p=n(9196),u=n.n(p);const __=a.__,m=e=>{const{title:t,height:n,className:c,...a}=e;return u().createElement("svg",r()({role:"img",x:"0",y:"0",viewBox:"0 0 935 38.2",enableBackground:"new 0 0 935 38.2","aria-labelledby":"jp-automattic-byline-logo-title",height:n,className:s()("jp-automattic-byline-logo",c)},a),u().createElement("title",{id:"jp-automattic-byline-logo-title"},t),u().createElement("path",{d:"M317.1 38.2c-12.6 0-20.7-9.1-20.7-18.5v-1.2c0-9.6 8.2-18.5 20.7-18.5 12.6 0 20.8 8.9 20.8 18.5v1.2C337.9 29.1 329.7 38.2 317.1 38.2zM331.2 18.6c0-6.9-5-13-14.1-13s-14 6.1-14 13v0.9c0 6.9 5 13.1 14 13.1s14.1-6.2 14.1-13.1V18.6zM175 36.8l-4.7-8.8h-20.9l-4.5 8.8h-7L157 1.3h5.5L182 36.8H175zM159.7 8.2L152 23.1h15.7L159.7 8.2zM212.4 38.2c-12.7 0-18.7-6.9-18.7-16.2V1.3h6.6v20.9c0 6.6 4.3 10.5 12.5 10.5 8.4 0 11.9-3.9 11.9-10.5V1.3h6.7V22C231.4 30.8 225.8 38.2 212.4 38.2zM268.6 6.8v30h-6.7v-30h-15.5V1.3h37.7v5.5H268.6zM397.3 36.8V8.7l-1.8 3.1 -14.9 25h-3.3l-14.7-25 -1.8-3.1v28.1h-6.5V1.3h9.2l14 24.4 1.7 3 1.7-3 13.9-24.4h9.1v35.5H397.3zM454.4 36.8l-4.7-8.8h-20.9l-4.5 8.8h-7l19.2-35.5h5.5l19.5 35.5H454.4zM439.1 8.2l-7.7 14.9h15.7L439.1 8.2zM488.4 6.8v30h-6.7v-30h-15.5V1.3h37.7v5.5H488.4zM537.3 6.8v30h-6.7v-30h-15.5V1.3h37.7v5.5H537.3zM569.3 36.8V4.6c2.7 0 3.7-1.4 3.7-3.4h2.8v35.5L569.3 36.8 569.3 36.8zM628 11.3c-3.2-2.9-7.9-5.7-14.2-5.7 -9.5 0-14.8 6.5-14.8 13.3v0.7c0 6.7 5.4 13 15.3 13 5.9 0 10.8-2.8 13.9-5.7l4 4.2c-3.9 3.8-10.5 7.1-18.3 7.1 -13.4 0-21.6-8.7-21.6-18.3v-1.2c0-9.6 8.9-18.7 21.9-18.7 7.5 0 14.3 3.1 18 7.1L628 11.3zM321.5 12.4c1.2 0.8 1.5 2.4 0.8 3.6l-6.1 9.4c-0.8 1.2-2.4 1.6-3.6 0.8l0 0c-1.2-0.8-1.5-2.4-0.8-3.6l6.1-9.4C318.7 11.9 320.3 11.6 321.5 12.4L321.5 12.4z"}),u().createElement("path",{d:"M37.5 36.7l-4.7-8.9H11.7l-4.6 8.9H0L19.4 0.8H25l19.7 35.9H37.5zM22 7.8l-7.8 15.1h15.9L22 7.8zM82.8 36.7l-23.3-24 -2.3-2.5v26.6h-6.7v-36H57l22.6 24 2.3 2.6V0.8h6.7v35.9H82.8z"}),u().createElement("path",{d:"M719.9 37l-4.8-8.9H694l-4.6 8.9h-7.1l19.5-36h5.6l19.8 36H719.9zM704.4 8l-7.8 15.1h15.9L704.4 8zM733 37V1h6.8v36H733zM781 37c-1.8 0-2.6-2.5-2.9-5.8l-0.2-3.7c-0.2-3.6-1.7-5.1-8.4-5.1h-12.8V37H750V1h19.6c10.8 0 15.7 4.3 15.7 9.9 0 3.9-2 7.7-9 9 7 0.5 8.5 3.7 8.6 7.9l0.1 3c0.1 2.5 0.5 4.3 2.2 6.1V37H781zM778.5 11.8c0-2.6-2.1-5.1-7.9-5.1h-13.8v10.8h14.4c5 0 7.3-2.4 7.3-5.2V11.8zM794.8 37V1h6.8v30.4h28.2V37H794.8zM836.7 37V1h6.8v36H836.7zM886.2 37l-23.4-24.1 -2.3-2.5V37h-6.8V1h6.5l22.7 24.1 2.3 2.6V1h6.8v36H886.2zM902.3 37V1H935v5.6h-26v9.2h20v5.5h-20v10.1h26V37H902.3z"}))};m.defaultProps={title:__("An Automattic Airline","jetpack-my-jetpack"),height:7,className:""},m.propTypes={title:l().string,height:l().number,className:l().string};const d=m},526:(e,t,n)=>{"use strict";n.d(t,{Z:()=>u});var c=n(2402),r=n.n(c),a=n(5609),i=n(1074),s=n(5381),o=n(5235),l=n.n(o),p=n(3466);const u=e=>{let{children:t,variant:n="primary",size:c="normal",weight:o="bold",icon:u,iconSize:m,disabled:d,isDestructive:g,isLoading:h,isExternalLink:y,className:f,text:k,...v}=e;const E=l()(p.Z.button,f,{[p.Z.normal]:"normal"===c,[p.Z.small]:"small"===c,[p.Z.icon]:Boolean(u),[p.Z.loading]:h,[p.Z.regular]:"regular"===o}),b="normal"===c?20:16,j=y&&React.createElement(i.Z,{size:b,icon:s.Z,className:p.Z["external-icon"]}),_=y?"_blank":void 0;return React.createElement(a.Button,r()({target:_,variant:n,className:E,icon:y?void 0:u,iconSize:m,disabled:d,isDestructive:g,text:k},v),h&&React.createElement(a.Spinner,null),React.createElement("span",null,t),j)}},1133:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var c=n(5162),r=n.n(c),a=n(9196),i=n.n(a);n(2404);const s=e=>{const{format:t,icon:n,imageUrl:c}=e;return i().createElement("div",{className:"jp-components__decorative-card "+(t?"jp-components__decorative-card--"+t:"")},i().createElement("div",{className:"jp-components__decorative-card__image",style:{backgroundImage:c?`url( ${c} )`:""}}),i().createElement("div",{className:"jp-components__decorative-card__content"},i().createElement("div",{className:"jp-components__decorative-card__lines"})),(()=>{if(n)return i().createElement("div",{className:"jp-components__decorative-card__icon-container"},i().createElement("span",{className:"jp-components__decorative-card__icon jp-components__decorative-card__icon--"+n}))})())};s.propTypes={format:r().oneOf(["horizontal","vertical"]),icon:r().oneOf(["unlink"]),imageUrl:r().string},s.defaultProps={format:"horizontal"};const o=s},1020:(e,t,n)=>{"use strict";n.d(t,{KM:()=>d,VS:()=>y,r7:()=>m});var c=n(2402),r=n.n(c),a=n(5609),i=n(5235),s=n.n(i),o=n(9196),l=n.n(o),p=n(5612);function u(e){let{className:t,size:n=24,viewBox:c="0 0 24 24",opacity:i=1,color:o,children:u}=e;const m={className:s()(p.Z.iconWrapper,t),width:n,height:n,viewBox:c,opacity:i};return o&&(m.fill=o),l().createElement(a.SVG,r()({},m,{fillRule:"evenodd",clipRule:"evenodd",xmlns:"http://www.w3.org/2000/svg"}),l().createElement(a.G,{opacity:i},u))}const m=e=>{let{size:t,className:n=p.Z["star-icon"]}=e;return l().createElement(u,{className:n,size:t},l().createElement(a.Path,{d:"M12 2l2.582 6.953L22 9.257l-5.822 4.602L18.18 21 12 16.89 5.82 21l2.002-7.14L2 9.256l7.418-.304"}))},d=e=>{let{size:t,className:n=p.Z["checkmark-icon"]}=e;return l().createElement(u,{className:n,size:t},l().createElement(a.Path,{d:"M11 17.768l-4.884-4.884 1.768-1.768L11 14.232l8.658-8.658C17.823 3.39 15.075 2 12 2 6.477 2 2 6.477 2 12s4.477 10 10 10 10-4.477 10-10c0-1.528-.353-2.97-.966-4.266L11 17.768z"}))};function g(e){let{className:t,fill:n="none",size:c,children:r}=e;return l().createElement(u,{className:s()(p.Z.socialIcon,t),size:c,fill:n},r)}const h={"anti-spam":e=>{let{opacity:t=1,size:n}=e;return l().createElement(u,{size:n,opacity:t},l().createElement(a.Path,{d:"m8.455 21.207 8-17.5-.91-.416-1.261 2.76A4.979 4.979 0 0 0 12 5.5c-1.062 0-2.046.33-2.855.895L7.19 4.44 6.13 5.5l1.926 1.927A4.975 4.975 0 0 0 7.025 10H5v1.5h2V13H5v1.5h2.1a5.001 5.001 0 0 0 1.937 3.028L7.545 20.79l.91.416ZM9.68 16.12A3.492 3.492 0 0 1 8.5 13.5v-3a3.5 3.5 0 0 1 5.159-3.083L9.68 16.121Zm5.675-6.62.81-1.77c.44.663.728 1.436.81 2.269H19v1.5h-2V13h2v1.5h-2.1a5.002 5.002 0 0 1-5.634 3.947l.662-1.448L12 17a3.5 3.5 0 0 0 3.5-3.5v-3a3.5 3.5 0 0 0-.145-.998Z"}))},backup:e=>{let{opacity:t=1,size:n}=e;return l().createElement(u,{size:n,opacity:t},l().createElement(a.Path,{d:"m15.82 11.373.013-1.277v-.03c0-1.48-1.352-2.9-3.3-2.9-1.627 0-2.87 1.015-3.205 2.208l-.32 1.143-1.186-.048a2.192 2.192 0 0 0-.089-.002c-1.19 0-2.233 1.008-2.233 2.35 0 1.34 1.04 2.348 2.23 2.35H16.8c.895 0 1.7-.762 1.7-1.8 0-.927-.649-1.643-1.423-1.777l-1.258-.217ZM7.883 8.97l-.15-.003C5.67 8.967 4 10.69 4 12.817c0 2.126 1.671 3.85 3.733 3.85H16.8c1.767 0 3.2-1.478 3.2-3.3 0-1.635-1.154-2.993-2.667-3.255v-.045c0-2.43-2.149-4.4-4.8-4.4-2.237 0-4.118 1.403-4.65 3.303Z",fill:"#000"}))},boost:e=>{let{opacity:t=1,size:n}=e;return l().createElement(u,{size:n,opacity:t},l().createElement(a.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M4.19505 16.2545C4.47368 16.561 4.94802 16.5836 5.25451 16.3049L10.2595 11.7549L14.2842 15.2765L19 10.5607V13.75H20.5V9.5V8.75239V8.7476V8H19.7529H19.7471H19H14.75V9.5H17.9393L14.2158 13.2235L10.2405 9.74507L4.2455 15.195C3.93901 15.4737 3.91642 15.948 4.19505 16.2545Z"}))},crm:e=>{let{opacity:t=1,size:n}=e;return l().createElement(u,{size:n,opacity:t},l().createElement(a.Path,{d:"M15.5 9.5a1 1 0 1 0 0-2 1 1 0 0 0 0 2Zm0 1.5a2.5 2.5 0 1 0 0-5 2.5 2.5 0 0 0 0 5Zm-2.25 6v-2a2.75 2.75 0 0 0-2.75-2.75h-4A2.75 2.75 0 0 0 3.75 15v2h1.5v-2c0-.69.56-1.25 1.25-1.25h4c.69 0 1.25.56 1.25 1.25v2h1.5Zm7-2v2h-1.5v-2c0-.69-.56-1.25-1.25-1.25H15v-1.5h2.5A2.75 2.75 0 0 1 20.25 15ZM9.5 8.5a1 1 0 1 1-2 0 1 1 0 0 1 2 0Zm1.5 0a2.5 2.5 0 1 1-5 0 2.5 2.5 0 0 1 5 0Z"}))},extras:e=>{let{opacity:t=1,size:n}=e;return l().createElement(u,{size:n,opacity:t},l().createElement(a.Path,{d:"M18.5 5.5V8H20V5.5h2.5V4H20V1.5h-1.5V4H16v1.5h2.5ZM12 4H6a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-6h-1.5v6a.5.5 0 0 1-.5.5H6a.5.5 0 0 1-.5-.5V6a.5.5 0 0 1 .5-.5h6V4Z"}))},protect:e=>{let{opacity:t=1,size:n,className:c}=e;return l().createElement(u,{className:c,size:n,opacity:t},l().createElement(a.Path,{d:"M12 3.17627L18.75 6.24445V10.8183C18.75 14.7173 16.2458 18.4089 12.7147 19.5735C12.2507 19.7265 11.7493 19.7265 11.2853 19.5735C7.75416 18.4089 5.25 14.7173 5.25 10.8183V6.24445L12 3.17627ZM6.75 7.21032V10.8183C6.75 14.1312 8.89514 17.2057 11.7551 18.149C11.914 18.2014 12.086 18.2014 12.2449 18.149C15.1049 17.2057 17.25 14.1312 17.25 10.8183V7.21032L12 4.82396L6.75 7.21032Z"}),l().createElement(a.Path,{d:"M15.5291 10.0315L11.1818 14.358L8.47095 11.66L9.52907 10.5968L11.1818 12.2417L14.4709 8.96826L15.5291 10.0315Z"}))},scan:e=>{let{opacity:t=1,size:n}=e;return l().createElement(u,{size:n,opacity:t},l().createElement(a.Path,{d:"m12 3.176 6.75 3.068v4.574c0 3.9-2.504 7.59-6.035 8.755a2.283 2.283 0 0 1-1.43 0c-3.53-1.164-6.035-4.856-6.035-8.755V6.244L12 3.176ZM6.75 7.21v3.608c0 3.313 2.145 6.388 5.005 7.33.159.053.331.053.49 0 2.86-.942 5.005-4.017 5.005-7.33V7.21L12 4.824 6.75 7.21Z"}))},search:e=>{let{opacity:t=1,size:n}=e;return l().createElement(u,{size:n,opacity:t},l().createElement(a.Path,{d:"M17.5 11.5a4 4 0 1 1-8 0 4 4 0 0 1 8 0Zm1.5 0a5.5 5.5 0 0 1-9.142 4.121l-3.364 2.943-.988-1.128 3.373-2.952A5.5 5.5 0 1 1 19 11.5Z"}))},social:e=>{let{opacity:t=1,size:n}=e;return l().createElement(u,{size:n,opacity:t},l().createElement(a.Path,{d:"M15.5 3.97809V18.0219L7.5 15.5977V20H6V15.1431L3.27498 14.3173C2.22086 13.9979 1.5 13.0262 1.5 11.9248V10.0752C1.5 8.97375 2.22087 8.00207 3.27498 7.68264L15.5 3.97809ZM14 16L7.5 14.0303L7.5 7.96969L14 5.99999V16ZM6 8.42423L6 13.5757L3.70999 12.8818C3.28835 12.754 3 12.3654 3 11.9248V10.0752C3 9.63462 3.28835 9.24595 3.70999 9.11818L6 8.42423ZM17.5 11.75H21.5V10.25H17.5V11.75ZM21.5 16L17.5 15V13.5L21.5 14.5V16ZM17.5 8.5L21.5 7.5V6L17.5 7V8.5Z"}))},star:m,videopress:e=>{let{opacity:t=1,size:n}=e;return l().createElement(u,{size:n,opacity:t},l().createElement(a.Path,{d:"M5.286 4.5h13.428c.434 0 .786.352.786.786v13.428a.786.786 0 0 1-.786.786H5.286a.786.786 0 0 1-.786-.786V5.286c0-.434.352-.786.786-.786ZM3 5.286A2.286 2.286 0 0 1 5.286 3h13.428A2.286 2.286 0 0 1 21 5.286v13.428A2.286 2.286 0 0 1 18.714 21H5.286A2.286 2.286 0 0 1 3 18.714V5.286ZM15 12l-5-3v6l5-3Z"}))},jetpack:e=>{let{size:t,className:n=p.Z.jetpack}=e;return l().createElement(u,{className:n,size:t,viewBox:"0 0 32 32"},l().createElement(a.Path,{className:"jetpack-logo__icon-circle",d:"M16,0C7.2,0,0,7.2,0,16s7.2,16,16,16s16-7.2,16-16S24.8,0,16,0z"}),l().createElement(a.Polygon,{fill:"#fff",points:"15,19 7,19 15,3"}),l().createElement(a.Polygon,{fill:"#fff",points:"17,29 17,13 25,13"}))},facebook:e=>{let{fill:t,size:n,className:c}=e;return l().createElement(g,{fill:t,size:n,className:s()(p.Z.facebook,c)},l().createElement(a.Path,{d:"M12,2C6.5,2,2,6.5,2,12c0,5,3.7,9.1,8.4,9.9v-7H7.9V12h2.5V9.8c0-2.5,1.5-3.9,3.8-3.9c1.1,0,2.2,0.2,2.2,0.2v2.5h-1.3 c-1.2,0-1.6,0.8-1.6,1.6V12h2.8l-0.4,2.9h-2.3v7C18.3,21.1,22,17,22,12C22,6.5,17.5,2,12,2z"}))},twitter:e=>{let{fill:t,size:n,className:c}=e;return l().createElement(g,{fill:t,size:n,className:s()(p.Z.twitter,c)},l().createElement(a.Path,{d:"M19,3H5C3.895,3,3,3.895,3,5v14c0,1.105,0.895,2,2,2h14c1.105,0,2-0.895,2-2V5C21,3.895,20.105,3,19,3z M16.466,9.71 c0.004,0.099,0.007,0.198,0.007,0.298c0,3.045-2.318,6.556-6.556,6.556c-1.301,0-2.512-0.381-3.532-1.035 c0.18,0.021,0.364,0.032,0.55,0.032c1.079,0,2.073-0.368,2.862-0.986c-1.008-0.019-1.859-0.685-2.152-1.6 c0.141,0.027,0.285,0.041,0.433,0.041c0.21,0,0.414-0.028,0.607-0.081c-1.054-0.212-1.848-1.143-1.848-2.259 c0-0.01,0-0.019,0-0.029c0.311,0.173,0.666,0.276,1.044,0.288c-0.618-0.413-1.025-1.118-1.025-1.918 c0-0.422,0.114-0.818,0.312-1.158c1.136,1.394,2.834,2.311,4.749,2.407c-0.039-0.169-0.06-0.344-0.06-0.525 c0-1.272,1.032-2.304,2.304-2.304c0.663,0,1.261,0.28,1.682,0.728c0.525-0.103,1.018-0.295,1.463-0.559 c-0.172,0.538-0.537,0.99-1.013,1.275c0.466-0.056,0.91-0.18,1.323-0.363C17.306,8.979,16.916,9.385,16.466,9.71z"}))},linkedin:e=>{let{fill:t,size:n,className:c}=e;return l().createElement(g,{fill:t,size:n,className:s()(p.Z.linkedin,c)},l().createElement(a.Path,{d:"M19.7 3H4.3C3.582 3 3 3.582 3 4.3v15.4c0 .718.582 1.3 1.3 1.3h15.4c.718 0 1.3-.582 1.3-1.3V4.3c0-.718-.582-1.3-1.3-1.3zM8.34 18.338H5.666v-8.59H8.34v8.59zM7.003 8.574c-.857 0-1.55-.694-1.55-1.548 0-.855.692-1.548 1.55-1.548.854 0 1.547.694 1.547 1.548 0 .855-.692 1.548-1.546 1.548zm11.335 9.764h-2.67V14.16c0-.995-.017-2.277-1.387-2.277-1.39 0-1.6 1.086-1.6 2.206v4.248h-2.668v-8.59h2.56v1.174h.036c.357-.675 1.228-1.387 2.527-1.387 2.703 0 3.203 1.78 3.203 4.092v4.71z"}))},tumblr:e=>{let{fill:t,size:n,className:c}=e;return l().createElement(g,{fill:t,size:n,className:s()(p.Z.tumblr,c)},l().createElement(a.Path,{d:"M19 3H5c-1.105 0-2 .895-2 2v14c0 1.105.895 2 2 2h14c1.105 0 2-.895 2-2V5c0-1.105-.895-2-2-2zm-5.57 14.265c-2.445.042-3.37-1.742-3.37-2.998V10.6H8.922V9.15c1.703-.615 2.113-2.15 2.21-3.026.006-.06.053-.084.08-.084h1.645V8.9h2.246v1.7H12.85v3.495c.008.476.182 1.13 1.08 1.107.3-.008.698-.094.907-.194l.54 1.6c-.205.297-1.12.642-1.946.657z"}))},google:e=>{let{fill:t,size:n,className:c}=e;return l().createElement(g,{fill:t,size:n,className:s()(p.Z.google,c)},l().createElement(a.Path,{d:"M12.02 10.18v3.73h5.51c-.26 1.57-1.67 4.22-5.5 4.22-3.31 0-6.01-2.75-6.01-6.12s2.7-6.12 6.01-6.12c1.87 0 3.13.8 3.85 1.48l2.84-2.76C16.99 2.99 14.73 2 12.03 2c-5.52 0-10 4.48-10 10s4.48 10 10 10c5.77 0 9.6-4.06 9.6-9.77 0-.83-.11-1.42-.25-2.05h-9.36z"}))}};function y(e){return h[e]?h[e]:null}},2392:(e,t,n)=>{"use strict";n.d(t,{Z:()=>h});var c=n(2402),r=n.n(c),a=n(5736),i=n(5235),s=n.n(i),o=n(5162),l=n.n(o),p=n(9196),u=n.n(p),m=n(207),d=(n(9054),n(8868));const __=a.__,g=e=>{const{a8cLogoHref:t,moduleName:n,className:c,moduleNameHref:a,...i}=e;return u().createElement("div",r()({className:s()("jp-dashboard-footer",c)},i),u().createElement("div",{className:"jp-dashboard-footer__footer-left"},u().createElement(d.Z,{logoColor:"#000",showText:!1,height:16,className:"jp-dashboard-footer__jetpack-symbol","aria-label":__("Jetpack logo","jetpack-my-jetpack")}),u().createElement("span",{className:"jp-dashboard-footer__module-name"},a?u().createElement("a",{href:a,"aria-label":n},n):n)),u().createElement("div",{className:"jp-dashboard-footer__footer-right"},u().createElement("a",{href:t,"aria-label":__("An Automattic Airline","jetpack-my-jetpack")},u().createElement(m.Z,null))))};g.defaultProps={a8cLogoHref:"https://automattic.com",moduleName:__("Jetpack","jetpack-my-jetpack"),className:"",moduleNameHref:"https://jetpack.com"},g.propTypes={a8cLogoHref:l().string,moduleName:l().string,className:l().string,moduleNameHref:l().string};const h=g},8868:(e,t,n)=>{"use strict";n.d(t,{Z:()=>p});var c=n(2402),r=n.n(c),a=n(5736),i=n(5235),s=n.n(i),o=n(9196),l=n.n(o);const __=a.__,p=e=>{let{logoColor:t="#069e08",showText:n=!0,className:c,height:a=32,...i}=e;const o=n?"0 0 118 32":"0 0 32 32";return l().createElement("svg",r()({xmlns:"http://www.w3.org/2000/svg",x:"0px",y:"0px",viewBox:o,className:s()("jetpack-logo",c),"aria-labelledby":"jetpack-logo-title",height:a},i),l().createElement("title",{id:"jetpack-logo-title"},__("Jetpack Logo","jetpack-my-jetpack")),l().createElement("path",{fill:t,d:"M16,0C7.2,0,0,7.2,0,16s7.2,16,16,16s16-7.2,16-16S24.8,0,16,0z M15,19H7l8-16V19z M17,29V13h8L17,29z"}),n&&l().createElement(l().Fragment,null,l().createElement("path",{d:"M41.3,26.6c-0.5-0.7-0.9-1.4-1.3-2.1c2.3-1.4,3-2.5,3-4.6V8h-3V6h6v13.4C46,22.8,45,24.8,41.3,26.6z"}),l().createElement("path",{d:"M65,18.4c0,1.1,0.8,1.3,1.4,1.3c0.5,0,2-0.2,2.6-0.4v2.1c-0.9,0.3-2.5,0.5-3.7,0.5c-1.5,0-3.2-0.5-3.2-3.1V12H60v-2h2.1V7.1 H65V10h4v2h-4V18.4z"}),l().createElement("path",{d:"M71,10h3v1.3c1.1-0.8,1.9-1.3,3.3-1.3c2.5,0,4.5,1.8,4.5,5.6s-2.2,6.3-5.8,6.3c-0.9,0-1.3-0.1-2-0.3V28h-3V10z M76.5,12.3 c-0.8,0-1.6,0.4-2.5,1.2v5.9c0.6,0.1,0.9,0.2,1.8,0.2c2,0,3.2-1.3,3.2-3.9C79,13.4,78.1,12.3,76.5,12.3z"}),l().createElement("path",{d:"M93,22h-3v-1.5c-0.9,0.7-1.9,1.5-3.5,1.5c-1.5,0-3.1-1.1-3.1-3.2c0-2.9,2.5-3.4,4.2-3.7l2.4-0.3v-0.3c0-1.5-0.5-2.3-2-2.3 c-0.7,0-2.3,0.5-3.7,1.1L84,11c1.2-0.4,3-1,4.4-1c2.7,0,4.6,1.4,4.6,4.7L93,22z M90,16.4l-2.2,0.4c-0.7,0.1-1.4,0.5-1.4,1.6 c0,0.9,0.5,1.4,1.3,1.4s1.5-0.5,2.3-1V16.4z"}),l().createElement("path",{d:"M104.5,21.3c-1.1,0.4-2.2,0.6-3.5,0.6c-4.2,0-5.9-2.4-5.9-5.9c0-3.7,2.3-6,6.1-6c1.4,0,2.3,0.2,3.2,0.5V13 c-0.8-0.3-2-0.6-3.2-0.6c-1.7,0-3.2,0.9-3.2,3.6c0,2.9,1.5,3.8,3.3,3.8c0.9,0,1.9-0.2,3.2-0.7V21.3z"}),l().createElement("path",{d:"M110,15.2c0.2-0.3,0.2-0.8,3.8-5.2h3.7l-4.6,5.7l5,6.3h-3.7l-4.2-5.8V22h-3V6h3V15.2z"}),l().createElement("path",{d:"M58.5,21.3c-1.5,0.5-2.7,0.6-4.2,0.6c-3.6,0-5.8-1.8-5.8-6c0-3.1,1.9-5.9,5.5-5.9s4.9,2.5,4.9,4.9c0,0.8,0,1.5-0.1,2h-7.3 c0.1,2.5,1.5,2.8,3.6,2.8c1.1,0,2.2-0.3,3.4-0.7C58.5,19,58.5,21.3,58.5,21.3z M56,15c0-1.4-0.5-2.9-2-2.9c-1.4,0-2.3,1.3-2.4,2.9 C51.6,15,56,15,56,15z"})))}},2939:(e,t,n)=>{"use strict";n.d(t,{Z:()=>g});var c=n(5235),r=n.n(c),a=n(5162),i=n.n(a),s=n(9196),o=n.n(s),l=n(3080);const p=Number(l.Z.smCols),u=Number(l.Z.mdCols),m=Number(l.Z.lgCols),d=e=>{const{children:t,className:n}=e,c=Math.min(p,e?.sm??p),a=Math.min(p,e?.sm?.start??0),i=Math.min(p,e?.sm?.end??0),s=Math.min(u,e?.md??u),d=Math.min(u,e?.md?.start??0),g=Math.min(u,e?.md?.end??0),h=Math.min(m,e?.lg??m),y=Math.min(m,e?.lg?.start??0),f=Math.min(m,e?.lg?.end??0),k=r()(n,{[l.Z[`col-sm-${c}`]]:!(a&&i),[l.Z[`col-sm-${a}-start`]]:a>0,[l.Z[`col-sm-${i}-end`]]:i>0,[l.Z[`col-md-${s}`]]:!(d&&g),[l.Z[`col-md-${d}-start`]]:d>0,[l.Z[`col-md-${g}-end`]]:g>0,[l.Z[`col-lg-${h}`]]:!(y&&f),[l.Z[`col-lg-${y}-start`]]:y>0,[l.Z[`col-lg-${f}-end`]]:f>0});return o().createElement("div",{className:k},t)};d.proptypes={className:i().string,sm:i().oneOfType([i().number,i().shape({start:i().number,end:i().number})]),md:i().oneOfType([i().number,i().shape({start:i().number,end:i().number})]),lg:i().oneOfType([i().number,i().shape({start:i().number,end:i().number})]),children:i().node};const g=d},8218:(e,t,n)=>{"use strict";n.d(t,{Z:()=>u});var c=n(5235),r=n.n(c),a=n(5162),i=n.n(a),s=n(9196),o=n.n(s),l=n(8730);const p=e=>{const{children:t,fluid:n,className:c}=e,a=`calc( var(--horizontal-spacing) * ${e.horizontalSpacing} )`,i={paddingTop:a,paddingBottom:a,rowGap:`calc( var(--horizontal-spacing) * ${e.horizontalGap} )`},s=r()(c,l.Z.container,{[l.Z.fluid]:n});return o().createElement("div",{className:s,style:i},t)};p.propTypes={fluid:i().bool,className:i().string,horizontalSpacing:i().number,horizontalGap:i().number,children:i().node},p.defaultProps={fluid:!1,horizontalGap:1,horizontalSpacing:1};const u=p},5033:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var c=n(5162),r=n.n(c),a=n(9196),i=n.n(a);n(1683);const s=e=>{const t=e.className+" jp-components-spinner",n={width:e.size,height:e.size,fontSize:e.size,borderTopColor:e.color},c={borderTopColor:e.color,borderRightColor:e.color};return i().createElement("div",{className:t},i().createElement("div",{className:"jp-components-spinner__outer",style:n},i().createElement("div",{className:"jp-components-spinner__inner",style:c})))};s.propTypes={color:r().string,className:r().string,size:r().number},s.defaultProps={color:"#FFFFFF",className:"",size:20};const o=s},6017:(e,t,n)=>{"use strict";n.d(t,{h:()=>c,s:()=>r});const c={"headline-medium":"h1","headline-small":"h2","headline-small-regular":"h2","title-medium":"h3","title-small":"h4",body:"p","body-small":"p","body-extra-small":"p",label:"p"},r=["mt","mr","mb","ml","mx","my","m","pt","pr","pb","pl","px","py","p"]},5106:(e,t,n)=>{"use strict";n.d(t,{Dx:()=>g,H3:()=>d,ZP:()=>m});var c=n(2402),r=n.n(c),a=n(5235),i=n.n(a),s=n(9196),o=n.n(s),l=n(6017),p=n(3280);const u=e=>{let{variant:t="body",children:n,component:c,className:a,...u}=e;const m=c||l.h[t]||"span",d=(0,s.useMemo)((()=>l.s.reduce(((e,t)=>(void 0!==u[t]&&(e+=p.Z[`${t}-${u[t]}`]+" ",delete u[t]),e)),"")),[u]);return o().createElement(m,r()({className:i()(p.Z.reset,p.Z[t],a,d)},u),n)},m=u,d=e=>{let{children:t,weight:n="bold",...c}=e;const a="headline-small"+("bold"===n?"":`-${n}`);return o().createElement(u,r()({variant:a,mb:3},c),t)},g=e=>{let{children:t,size:n="medium",...c}=e;return o().createElement(u,r()({variant:`title-${n}`,mb:1},c),t)}},6016:(e,t,n)=>{"use strict";n.d(t,{ZP:()=>u});var c=n(9196),r=n.n(c);const a={"--font-headline-medium":"48px","--font-headline-small":"36px","--font-title-medium":"24px","--font-title-small":"20px","--font-body":"16px","--font-body-small":"14px","--font-body-extra-small":"12px","--font-title-large":"var(--font-headline-small)","--font-label":"var(--font-body-extra-small)"},i={"--jp-black":"#000000","--jp-black-80":"#2c3338","--jp-white":"#ffffff","--jp-white-off":"#f9f9f6","--jp-gray":"#dcdcde","--jp-gray-0":"#F6F7F7","--jp-gray-10":"#C3C4C7","--jp-gray-20":"#A7AAAD","--jp-gray-40":"#787C82","--jp-gray-50":"#646970","--jp-gray-60":"#50575E","--jp-gray-80":"#2C3338","--jp-gray-off":"#e2e2df","--jp-red-0":"#F7EBEC","--jp-red-50":"#D63638","--jp-red-60":"#B32D2E","--jp-red-70":"#8A2424","--jp-red-80":"#691C1C","--jp-red":"#d63639","--jp-yellow-20":"#F0C930","--jp-yellow-40":"#C08C00","--jp-blue-20":"#68B3E8","--jp-blue-40":"#1689DB","--jp-pink":"#C9356E","--jp-green-0":"#f0f2eb","--jp-green-5":"#d0e6b8","--jp-green-10":"#9dd977","--jp-green-20":"#64ca43","--jp-green-30":"#2fb41f","--jp-green-40":"#069e08","--jp-green-50":"#008710","--jp-green-60":"#007117","--jp-green-70":"#005b18","--jp-green-80":"#004515","--jp-green-90":"#003010","--jp-green-100":"#001c09","--jp-green":"#069e08","--jp-green-primary":"var( --jp-green-40 )","--jp-green-secondary":"var( --jp-green-30 )"},s={"--jp-border-radius":"4px","--jp-menu-border-height":"1px","--jp-underline-thickness":"2px"},o={"--spacing-base":"8px"},l={},p=(e,t)=>{const n={...a,...i,...s,...o};for(const t in n)e.style.setProperty(t,n[t]);t&&(l[t]={provided:!0,root:e})},u=e=>{let{children:t=null,targetDom:n,id:a}=e;const i=(0,c.useRef)(),s=l?.[a]?.provided;return(0,c.useLayoutEffect)((()=>{if(!s)return n?p(n,a):void(i?.current&&p(i.current,a))}),[n,i,s,a]),n?t:r().createElement("div",{ref:i},t)}},6324:(e,t,n)=>{"use strict";function c(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n={};let c;if("undefined"!=typeof window&&(c=window.Initial_State?.calypsoEnv),0===e.search("https://")){const t=new URL(e);e=`https://${t.host}${t.pathname}`,n.url=encodeURIComponent(e)}else n.source=encodeURIComponent(e);Object.keys(t).map((e=>{n[e]=encodeURIComponent(t[e])})),!Object.keys(n).includes("site")&&"undefined"!=typeof jetpack_redirects&&jetpack_redirects.hasOwnProperty("currentSiteRawUrl")&&(n.site=jetpack_redirects.currentSiteRawUrl),c&&(n.calypso_env=c);const r=Object.keys(n).map((e=>e+"="+n[e])).join("&");return"https://jetpack.com/redirect/?"+r}n.d(t,{Z:()=>c})},1132:(e,t,n)=>{let c={};try{c=n(4462)}catch{console.error("jetpackConfig is missing in your webpack config file. See @automattic/jetpack-config"),c={missingConfig:!0}}const r=e=>c.hasOwnProperty(e);e.exports={jetpackConfigHas:r,jetpackConfigGet:e=>{if(!r(e))throw'This app requires the "'+e+'" Jetpack Config to be defined in your webpack configuration file. See details in @automattic/jetpack-config package docs.';return c[e]}}},9312:(e,t,n)=>{"use strict";n.d(t,{Z:()=>u});var c=n(5736),r=n(5162),a=n.n(r),i=n(9196),s=n.n(i),o=n(1294),l=n(1624);const __=c.__,p=e=>{const{title:t,buttonLabel:n,apiRoot:c,apiNonce:r,registrationNonce:a,from:i,redirectUri:p,images:u,children:m,assetBaseUrl:d,autoTrigger:g,footer:h,skipUserConnection:y}=e,{handleRegisterSite:f,isRegistered:k,isUserConnected:v,siteIsRegistering:E,userIsConnecting:b,registrationError:j}=(0,o.Z)({registrationNonce:a,redirectUri:p,apiRoot:c,apiNonce:r,autoTrigger:g,from:i,skipUserConnection:y}),_=!k||!v,C=Boolean(j),w=E||b;return s().createElement(l.Z,{title:t,images:u,assetBaseUrl:d,showConnectButton:_,buttonLabel:n,handleButtonClick:f,displayButtonError:C,buttonIsLoading:w,footer:h},m)};p.propTypes={title:a().string,buttonLabel:a().string,apiRoot:a().string.isRequired,apiNonce:a().string.isRequired,registrationNonce:a().string.isRequired,from:a().string,redirectUri:a().string.isRequired,autoTrigger:a().bool,images:a().arrayOf(a().string),assetBaseUrl:a().string,skipUserConnection:a().bool},p.defaultProps={title:__("Over 5 million WordPress sites are faster and more secure","jetpack-my-jetpack"),buttonLabel:__("Set up Jetpack","jetpack-my-jetpack"),images:[],redirectUri:null,autoTrigger:!1,skipUserConnection:!1};const u=p},1624:(e,t,n)=>{"use strict";n.d(t,{Z:()=>g});var c=n(6324),r=n(7121),a=n(9307),i=n(5736),s=n(5162),o=n.n(s),l=n(9196),p=n.n(l),u=n(8524);n(1510);const __=i.__,m=(0,a.createInterpolateElement)(__("By clicking the button above, you agree to our <tosLink>Terms of Service</tosLink> and to <shareDetailsLink>share details</shareDetailsLink> with WordPress.com.","jetpack-my-jetpack"),{tosLink:p().createElement("a",{href:(0,c.Z)("wpcom-tos"),rel:"noopener noreferrer",target:"_blank"}),shareDetailsLink:p().createElement("a",{href:(0,c.Z)("jetpack-support-what-data-does-jetpack-sync"),rel:"noopener noreferrer",target:"_blank"})}),d=e=>{const{title:t,images:n,children:c,assetBaseUrl:a,isLoading:i,showConnectButton:s,buttonLabel:o,handleButtonClick:l,displayButtonError:d,buttonIsLoading:g,footer:h}=e;return p().createElement(u.Z,{title:t,assetBaseUrl:a,images:n,className:"jp-connection__connect-screen"+(i?" jp-connection__connect-screen__loading":"")},p().createElement("div",{className:"jp-connection__connect-screen__content"},c,s&&p().createElement(p().Fragment,null,p().createElement(r.Z,{label:o,onClick:l,displayError:d,isLoading:g}),p().createElement("div",{className:"jp-connection__connect-screen__tos"},m)),h&&p().createElement("div",{className:"jp-connection__connect-screen__footer"},h)))};d.propTypes={title:o().string,images:o().arrayOf(o().string),assetBaseUrl:o().string,isLoading:o().bool,showConnectButton:o().bool,buttonLabel:o().string.isRequired,handleButtonClick:o().func,displayButtonError:o().bool,buttonIsLoading:o().bool,footer:o().node},d.defaultProps={showConnectButton:!0,isLoading:!1,buttonIsLoading:!1,displayButtonError:!1,handleButtonClick:()=>{},footer:null};const g=d},2458:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var c=n(5162),r=n.n(c),a=n(9196),i=n.n(a);const s=e=>{const{images:t,assetBaseUrl:n}=e;if(!t.length)return null;const c=t.map(((e,t)=>i().createElement(i().Fragment,{key:t},i().createElement("img",{src:n+e,alt:""}))));return i().createElement("div",{className:"jp-connection__connect-screen__image-slider"},c)};s.propTypes={images:r().arrayOf(r().string).isRequired,assetBaseUrl:r().string},s.defaultProps={assetBaseUrl:""};const o=s},8524:(e,t,n)=>{"use strict";n.d(t,{Z:()=>p});var c=n(8868),r=n(5162),a=n.n(r),i=n(9196),s=n.n(i),o=n(2458);n(9610);const l=e=>{const{title:t,children:n,className:r,assetBaseUrl:a,images:i}=e,l=i?.length;return s().createElement("div",{className:"jp-connection__connect-screen-layout"+(l?" jp-connection__connect-screen-layout__two-columns":"")+(r?" "+r:"")},s().createElement("div",{className:"jp-connection__connect-screen-layout__left"},s().createElement(c.Z,null),s().createElement("h2",null,t),n),l?s().createElement("div",{className:"jp-connection__connect-screen-layout__right"},s().createElement(o.Z,{images:i,assetBaseUrl:a})):null)};l.propTypes={title:a().string,className:a().string,images:a().arrayOf(a().string),assetBaseUrl:a().string};const p=l},9625:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var c=n(4743),r=n(5162),a=n.n(r),i=n(9196);const s=e=>{const{redirectFunc:t,connectUrl:n,redirectUri:r,from:a}=e,[s,o]=(0,i.useState)(null);return n&&n!==s&&o(n),(0,i.useEffect)((()=>{s||c.ZP.fetchAuthorizationUrl(r).then((e=>o(e.authorizeUrl))).catch((e=>{throw e}))}),[]),s?(t(s+(a?(s.includes("?")?"&":"?")+"from="+encodeURIComponent(a):"")),null):null};s.propTypes={connectUrl:a().string,redirectUri:a().string.isRequired,from:a().string,redirectFunc:a().func},s.defaultProps={redirectFunc:e=>window.location.assign(e),redirectUri:null};const o=s},7879:(e,t,n)=>{"use strict";n.d(t,{Z:()=>p});var c=n(5736),r=n(5162),a=n.n(r),i=n(9196),s=n.n(i),o=n(4322);const __=c.__,l=e=>{const{connectedPlugins:t,disconnectingPlugin:n}=e,c=(0,i.useMemo)((()=>{if(t){return Object.keys(t).map((e=>Object.assign({slug:e},t[e]))).filter((e=>n!==e.slug))}return[]}),[t,n]);return t&&c.length>0?s().createElement(s().Fragment,null,s().createElement("div",{className:"jp-connection__disconnect-dialog__step-copy"},s().createElement("p",{className:"jp-connection__disconnect-dialog__large-text"},__("Jetpack is powering other plugins on your site. If you disconnect, these plugins will no longer work.","jetpack-my-jetpack"))),s().createElement("div",{className:"jp-connection__disconnect-card__group"},c.map((e=>s().createElement(o.Z,{title:e.name,key:e.slug}))))):null};l.propTypes={connectedPlugins:a().array,disconnectingPlugin:a().string};const p=l},9159:(e,t,n)=>{"use strict";n.d(t,{Z:()=>f});var c=n(4743),r=n(5106),a=n(526),i=n(9818),s=n(5736),o=n(5162),l=n.n(o),p=n(9196),u=n.n(p),m=n(428),d=n(9625),g=n(6168),h=n(1294);n(2427);const __=s.__,y=e=>{const{apiRoot:t,apiNonce:n,redirectUri:s,title:o,connectionInfoText:l,onDisconnected:y,connectedPlugins:f,connectedSiteId:k,context:v,onConnectUser:E,requiresUserConnection:b}=e,{isRegistered:j,isUserConnected:_,userConnectionData:C,hasConnectedOwner:w}=(0,h.Z)({apiRoot:t,apiNonce:n}),Z=b&&!w,N=(0,p.useRef)(),S=C.currentUser?.wpcomUser?.avatar;(0,p.useEffect)((()=>{S&&(N.current.style.backgroundImage=`url('${S}')`)}),[S]);const[P,R]=(0,p.useState)(!1),x=(0,i.useSelect)((e=>e(m.t).getUserIsConnecting()),[]),{setConnectionStatus:I,setUserIsConnecting:U}=(0,i.useDispatch)(m.t),T=E||U;(0,p.useEffect)((()=>{c.ZP.setApiRoot(t),c.ZP.setApiNonce(n)}),[t,n]);const A=(0,p.useCallback)((e=>{e&&e.preventDefault(),R(!0)}),[R]),F=(0,p.useCallback)((e=>{e&&e.preventDefault(),R(!1)}),[R]),L=(0,p.useCallback)((e=>{e&&e.preventDefault(),I({isActive:!1,isRegistered:!1,isUserConnected:!1}),y&&"[object Function]"==={}.toString.call(y)&&y()}),[y,I]);return j?u().createElement("div",{className:"jp-connection-status-card"},u().createElement(r.H3,null,o),u().createElement(r.ZP,{variant:"body"},l),u().createElement("div",{className:"jp-connection-status-card--status"},u().createElement("div",{className:"jp-connection-status-card--cloud"}),u().createElement("div",{className:"jp-connection-status-card--line"+(_?"":" jp-connection-status-card--site-only")}),u().createElement("div",{className:"jp-connection-status-card--jetpack-logo"}),u().createElement("div",{className:"jp-connection-status-card--avatar",ref:N})),u().createElement("ul",{className:"jp-connection-status-card--list"},u().createElement("li",{className:"jp-connection-status-card--list-item-success"},__("Site connected.","jetpack-my-jetpack")," ",u().createElement(a.Z,{variant:"link",weight:"regular",onClick:A,className:"jp-connection__disconnect-dialog__link"},__("Disconnect","jetpack-my-jetpack")),u().createElement(g.Z,{apiRoot:t,apiNonce:n,onDisconnected:L,connectedPlugins:f,connectedSiteId:k,connectedUser:C,isOpen:P,onClose:F,context:v})),_&&u().createElement("li",{className:"jp-connection-status-card--list-item-success"},__("Logged in as","jetpack-my-jetpack")," ",C.currentUser?.wpcomUser?.display_name),(!_||!w)&&u().createElement("li",{className:"jp-connection-status-card--list-item-"+(Z?"error":"info")},Z&&__("Requires user connection.","jetpack-my-jetpack")," ",u().createElement(a.Z,{variant:"link",disabled:x,onClick:T,className:"jp-connection-status-card--btn-connect-user"},__("Connect your user account","jetpack-my-jetpack")))),x&&u().createElement(d.Z,{redirectUri:s})):null};y.propTypes={apiRoot:l().string.isRequired,apiNonce:l().string.isRequired,redirectUri:l().string,connectedPlugins:l().array,connectedSiteId:l().number,title:l().string,connectionInfoText:l().string,onDisconnected:l().func,context:l().string,onConnectUser:l().func,requiresUserConnection:l().bool},y.defaultProps={title:__("Connection","jetpack-my-jetpack"),connectionInfoText:__("Leverages the cloud for more powerful Jetpack features.","jetpack-my-jetpack"),redirectUri:null,onConnectUser:null,requiresUserConnection:!0};const f=y},4322:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var c=n(5162),r=n.n(c),a=n(9196),i=n.n(a);n(4220);const s=e=>{const{title:t,value:n,description:c}=e;return i().createElement("div",{className:"jp-connection__disconnect-card card"},i().createElement("div",{className:"jp-connection__disconnect-card__card-content"},i().createElement("p",{className:"jp-connection__disconnect-card__card-headline"},t),(n||c)&&i().createElement("div",{className:"jp-connection__disconnect-card__card-stat-block"},i().createElement("span",{className:"jp-connection__disconnect-card__card-stat"},n),i().createElement("div",{className:"jp-connection__disconnect-card__card-description"},c))))};s.propTypes={title:r().string,value:r().oneOfType([r().string,r().number]),description:r().number};const o=s},6168:(e,t,n)=>{"use strict";n.d(t,{Z:()=>f});var c=n(6975),r=n(4743),a=n(1132),i=n(5609),s=n(5736),o=n(5162),l=n.n(o),p=n(9196),u=n.n(p),m=(n(287),n(9015)),d=n(5995),g=n(1702),h=n(1166);const __=s.__,y=e=>{const[t,n]=(0,p.useState)(!1),[s,o]=(0,p.useState)(!1),[l,y]=(0,p.useState)(!1),[f,k]=(0,p.useState)(!1),[v,E]=(0,p.useState)(!1),[b,j]=(0,p.useState)(!1),{apiRoot:_,apiNonce:C,connectedPlugins:w,title:Z,pluginScreenDisconnectCallback:N,onDisconnected:S,onError:P,disconnectStepComponent:R,context:x,connectedUser:I,connectedSiteId:U,isOpen:T,onClose:A}=e;let F="";(0,a.jetpackConfigHas)("consumer_slug")&&(F=(0,a.jetpackConfigGet)("consumer_slug"));const L=(0,p.useMemo)((()=>({context:x,plugin:F})),[x,F]);(0,p.useEffect)((()=>{r.ZP.setApiRoot(_),r.ZP.setApiNonce(C)}),[_,C]),(0,p.useEffect)((()=>{I&&I.ID&&I.login&&c.Z.initialize(I.ID,I.login)}),[I,I.ID,I.login]),(0,p.useEffect)((()=>{T&&c.Z.tracks.recordEvent("jetpack_disconnect_dialog_open",L)}),[T,L]),(0,p.useEffect)((()=>{T&&(s?!s||f||v?f&&!v?c.Z.tracks.recordEvent("jetpack_disconnect_dialog_step",Object.assign({},{step:"survey"},L)):v&&c.Z.tracks.recordEvent("jetpack_disconnect_dialog_step",Object.assign({},{step:"thank_you"},L)):c.Z.tracks.recordEvent("jetpack_disconnect_dialog_step",Object.assign({},{step:"disconnect_confirm"},L)):c.Z.tracks.recordEvent("jetpack_disconnect_dialog_step",Object.assign({},{step:"disconnect"},L)))}),[T,s,f,v,L]);const O=(0,p.useCallback)((()=>{r.ZP.disconnectSite().then((()=>{n(!1),o(!0)})).catch((e=>{n(!1),y(e),P&&P(e)}))}),[n,o,y,P]),z=(0,p.useCallback)(((e,t)=>{j(!0),fetch("https://public-api.wordpress.com/wpcom/v2/marketing/feedback-survey",{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify(e)}).then((e=>e.json())).then((e=>{if(!0!==e.success)throw new Error("Survey endpoint returned error code "+e.code);c.Z.tracks.recordEvent("jetpack_disconnect_survey_submit",t),E(!0),j(!1)})).catch((e=>{c.Z.tracks.recordEvent("jetpack_disconnect_survey_error",Object.assign({},{error:e.message},t)),E(!0),j(!1)}))}),[j,E]),M=(0,p.useCallback)((e=>{e&&e.preventDefault(),y(!1),n(!0),"plugins"!==x?O():N&&N(e)}),[y,n,N,x,O]),D=(0,p.useCallback)((e=>c.Z.tracks.recordEvent(e,L)),[L]),V=(0,p.useCallback)((()=>I.ID&&U),[I,U]),B=(0,p.useCallback)(((e,t,n)=>{if(n&&n.preventDefault(),!V())return void E(!0);const c={site_id:U,user_id:I.ID,survey_id:"jetpack-plugin-disconnect",survey_responses:{"why-cancel":{response:e,text:t||null}}},r=Object.assign({},L,{disconnect_reason:e});z(c,r)}),[z,E,V,U,I,L]),H=(0,p.useCallback)((e=>{e&&e.preventDefault(),S&&S(),A()}),[S,A]),J=(0,p.useCallback)((e=>{e&&e.preventDefault(),k(!0)}),[k]);return u().createElement(u().Fragment,null,T&&u().createElement(i.Modal,{title:"",contentLabel:Z,aria:{labelledby:"jp-connection__disconnect-dialog__heading"},onRequestClose:A,shouldCloseOnClickOutside:!1,shouldCloseOnEsc:!1,isDismissible:!1,className:"jp-connection__disconnect-dialog"+(s?" jp-connection__disconnect-dialog__success":"")},s?!s||f||v?f&&!v?u().createElement(g.Z,{isSubmittingFeedback:b,onFeedBackProvided:B,onExit:H}):v?u().createElement(h.Z,{onExit:H}):void 0:u().createElement(d.Z,{canProvideFeedback:V(),onProvideFeedback:J,onExit:H}):u().createElement(m.Z,{title:Z,connectedPlugins:w,disconnectStepComponent:R,isDisconnecting:t,closeModal:A,onDisconnect:M,disconnectError:l,context:x,disconnectingPlugin:F,trackModalClick:D})))};y.propTypes={apiRoot:l().string.isRequired,apiNonce:l().string.isRequired,title:l().string,onDisconnected:l().func,onError:l().func,context:l().string,connectedPlugins:l().oneOfType([l().array,l().object]),pluginScreenDisconnectCallback:l().func,disconnectStepComponent:l().element,connectedUser:l().object,connectedSiteId:l().number,isOpen:l().bool,onClose:l().func},y.defaultProps={title:__("Are you sure you want to disconnect?","jetpack-my-jetpack"),context:"jetpack-dashboard",connectedUser:{}};const f=y},5995:(e,t,n)=>{"use strict";n.d(t,{Z:()=>d});var c=n(1133),r=n(5609),a=n(9307),i=n(5736),s=n(5162),o=n.n(s),l=n(9196),p=n.n(l),u=n(2042);const __=i.__,m=e=>{const{onExit:t,canProvideFeedback:n,onProvideFeedback:i}=e;return p().createElement("div",{className:"jp-connection__disconnect-dialog__content"},p().createElement(c.Z,{icon:"unlink",imageUrl:u}),p().createElement("div",{className:"jp-connection__disconnect-dialog__step-copy jp-connection__disconnect-dialog__step-copy--narrow"},p().createElement("h1",null,(0,a.createInterpolateElement)(__("Jetpack has been <br/>successfully disconnected.","jetpack-my-jetpack"),{br:p().createElement("br",null)})),n&&p().createElement(p().Fragment,null,p().createElement("p",null,__("We’re sorry to see you go. Here at Jetpack, we’re always striving to provide the best experience for our customers. Please take our short survey (2 minutes, promise).","jetpack-my-jetpack")),p().createElement("p",null,p().createElement(r.Button,{variant:"primary",onClick:i,className:"jp-connection__disconnect-dialog__btn-back-to-wp"},__("Help us improve","jetpack-my-jetpack"))),p().createElement("a",{className:"jp-connection__disconnect-dialog__link jp-connection__disconnect-dialog__link--bold",href:"#",onClick:t},__("No thank you","jetpack-my-jetpack"))),!n&&p().createElement(p().Fragment,null,p().createElement("p",null,p().createElement(r.Button,{variant:"primary",onClick:t,className:"jp-connection__disconnect-dialog__btn-back-to-wp"},__("Back to my website","jetpack-my-jetpack"))))))};m.propTypes={onExit:o().func,onProvideFeedback:o().func,canProvideFeedback:o().bool};const d=m},9015:(e,t,n)=>{"use strict";n.d(t,{Z:()=>d});var c=n(6324),r=n(5609),a=n(9307),i=n(5736),s=n(5162),o=n.n(s),l=n(9196),p=n.n(l),u=n(7879);const __=i.__,m=e=>{const{title:t,isDisconnecting:n,onDisconnect:i,disconnectError:s,disconnectStepComponent:o,connectedPlugins:m,disconnectingPlugin:d,closeModal:g,context:h,trackModalClick:y}=e,f=(0,l.useCallback)((()=>y("jetpack_disconnect_dialog_click_learn_about")),[y]),k=(0,l.useCallback)((()=>y("jetpack_disconnect_dialog_click_support")),[y]),v=(0,l.useCallback)((()=>{y("jetpack_disconnect_dialog_click_stay_connected"),g()}),[y,g]),E=(0,l.useCallback)((e=>{y("jetpack_disconnect_dialog_click_disconnect"),i(e)}),[y,i]);return p().createElement(p().Fragment,null,p().createElement("div",{className:"jp-connection__disconnect-dialog__content"},p().createElement("h1",{id:"jp-connection__disconnect-dialog__heading"},t),p().createElement(u.Z,{connectedPlugins:m,disconnectingPlugin:d}),o,(()=>{if(!(m&&Object.keys(m).filter((e=>e!==d)).length)&&!o)return p().createElement("div",{className:"jp-connection__disconnect-dialog__step-copy"},p().createElement("p",{className:"jp-connection__disconnect-dialog__large-text"},__("Jetpack is currently powering multiple products on your site.","jetpack-my-jetpack"),p().createElement("br",null),__("Once you disconnect Jetpack, these will no longer work.","jetpack-my-jetpack")))})()),p().createElement("div",{className:"jp-connection__disconnect-dialog__actions"},p().createElement("div",{className:"jp-row"},p().createElement("div",{className:"lg-col-span-7 md-col-span-8 sm-col-span-4"},p().createElement("p",null,(0,a.createInterpolateElement)(__("<strong>Need help?</strong> Learn more about the <jpConnectionInfoLink>Jetpack connection</jpConnectionInfoLink> or <jpSupportLink>contact Jetpack support</jpSupportLink>.","jetpack-my-jetpack"),{strong:p().createElement("strong",null),jpConnectionInfoLink:p().createElement("a",{href:(0,c.Z)("why-the-wordpress-com-connection-is-important-for-jetpack"),rel:"noopener noreferrer",target:"_blank",className:"jp-connection__disconnect-dialog__link",onClick:f}),jpSupportLink:p().createElement("a",{href:(0,c.Z)("jetpack-support"),rel:"noopener noreferrer",target:"_blank",className:"jp-connection__disconnect-dialog__link",onClick:k})}))),p().createElement("div",{className:"jp-connection__disconnect-dialog__button-wrap lg-col-span-5 md-col-span-8 sm-col-span-4"},p().createElement(r.Button,{variant:"primary",disabled:n,onClick:v,className:"jp-connection__disconnect-dialog__btn-dismiss"},"plugins"===h?__("Cancel","jetpack-my-jetpack"):__("Stay connected","jetpack-my-jetpack",0)),(()=>{let e=__("Disconnect","jetpack-my-jetpack");return n?e=__("Disconnecting…","jetpack-my-jetpack"):"plugins"===h&&(e=__("Deactivate","jetpack-my-jetpack")),p().createElement(r.Button,{variant:"primary",disabled:n,onClick:E,className:"jp-connection__disconnect-dialog__btn-disconnect"},e)})())),s&&p().createElement("p",{className:"jp-connection__disconnect-dialog__error"},s)))};m.propTypes={title:o().string,isDisconnecting:o().bool,onDisconnect:o().func,disconnectError:o().bool,disconnectStepComponent:o().elementType,connectedPlugins:o().array,disconnectingPlugin:o().string,closeModal:o().func,context:o().string,trackModalClick:o().func};const d=m},1702:(e,t,n)=>{"use strict";n.d(t,{Z:()=>p});var c=n(5736),r=n(5162),a=n.n(r),i=n(9196),s=n.n(i),o=(n(9823),n(6336));const __=c.__,l=e=>{const{onExit:t,onFeedBackProvided:n,isSubmittingFeedback:c}=e;return s().createElement("div",{className:"jp-connection__disconnect-dialog__content"},s().createElement("h1",null,__("Before you go, help us improve Jetpack","jetpack-my-jetpack")),s().createElement("p",{className:"jp-connection__disconnect-dialog__large-text"},__("Let us know what didn‘t work for you","jetpack-my-jetpack")),s().createElement(o.Z,{onSubmit:n,isSubmittingFeedback:c}),s().createElement("a",{className:"jp-connection__disconnect-dialog__link jp-connection__disconnect-dialog__link--bold",href:"#",onClick:t},__("Skip for now","jetpack-my-jetpack")))};l.PropTypes={onExit:a().func,onFeedBackProvided:a().func,isSubmittingFeedback:a().bool};const p=l},1166:(e,t,n)=>{"use strict";n.d(t,{Z:()=>d});var c=n(1133),r=n(5609),a=n(9307),i=n(5736),s=n(5162),o=n.n(s),l=n(9196),p=n.n(l),u=n(724);const __=i.__,m=e=>{const{onExit:t}=e;return p().createElement("div",{className:"jp-connection__disconnect-dialog__content"},p().createElement(c.Z,{format:"vertical",imageUrl:u}),p().createElement("div",{className:"jp-connection__disconnect-dialog__copy"},p().createElement("h1",null,__("Thank you!","jetpack-my-jetpack")),p().createElement("p",{className:"jp-connection__disconnect-dialog__large-text"},(0,a.createInterpolateElement)(__("Your answer has been submitted. <br/>Thanks for your input on how we can improve Jetpack.","jetpack-my-jetpack"),{br:p().createElement("br",null)})),p().createElement(r.Button,{variant:"primary",onClick:t,className:"jp-connection__disconnect-dialog__btn-back-to-wp"},__("Back to my website","jetpack-my-jetpack"))))};m.PropTypes={onExit:o().func,assetBaseUrl:o().string};const d=m},6336:(e,t,n)=>{"use strict";n.d(t,{Z:()=>u});var c=n(5609),r=n(5736),a=n(5162),i=n.n(a),s=n(9196),o=n.n(s),l=n(4372);const __=r.__,p=e=>{const{onSubmit:t,isSubmittingFeedback:n}=e,[r,a]=(0,s.useState)(),[i,p]=(0,s.useState)(),u=[{id:"troubleshooting",answerText:__("Troubleshooting - I'll be reconnecting afterwards.","jetpack-my-jetpack")},{id:"not-working",answerText:__("I can't get it to work.","jetpack-my-jetpack")},{id:"slowed-down-site",answerText:__("It slowed down my site.","jetpack-my-jetpack")},{id:"buggy",answerText:__("It's buggy.","jetpack-my-jetpack")},{id:"what-does-it-do",answerText:__("I don't know what it does.","jetpack-my-jetpack")}],m="another-reason",d=(0,s.useCallback)((()=>{t(r,r===m?i:"")}),[t,m,i,r]),g=(0,s.useCallback)((e=>{const t=e.target.value;e.stopPropagation(),p(t)}),[p]),h=e=>e===r?"jp-connect__disconnect-survey-card--selected":"",y=(0,s.useCallback)(((e,t)=>{switch(t.key){case"Enter":case"Space":case"Spacebar":case" ":a(e)}}),[a]);return o().createElement(o().Fragment,null,o().createElement("div",{className:"jp-connection__disconnect-dialog__survey"},u.map((e=>o().createElement(l.Z,{id:e.id,onClick:a,onKeyDown:y,className:"card jp-connect__disconnect-survey-card "+h(e.id)},o().createElement("p",{className:"jp-connect__disconnect-survey-card__answer"},e.answerText)))),o().createElement(l.Z,{id:m,onClick:a,onKeyDown:y,className:"card jp-connect__disconnect-survey-card "+h(m)},o().createElement("p",{className:"jp-connect__disconnect-survey-card__answer"},__("Other:","jetpack-my-jetpack")," ",o().createElement("input",{placeholder:__("share your experience","jetpack-my-jetpack"),className:"jp-connect__disconnect-survey-card__input",type:"text",value:i,onChange:g,maxLength:1e3})))),o().createElement("p",null,o().createElement(c.Button,{disabled:!r||n,variant:"primary",onClick:d,className:"jp-connection__disconnect-dialog__btn-back-to-wp"},n?__("Submitting…","jetpack-my-jetpack"):__("Submit Feedback","jetpack-my-jetpack",0))))};p.PropTypes={onSubmit:i().func,isSubmittingFeedback:i().bool};const u=p},4372:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var c=n(9196),r=n.n(c);n(9823);const a=e=>{const{id:t,onClick:n,onKeyDown:a,children:i,className:s}=e,o=(0,c.useCallback)((()=>{n(t)}),[t,n]),l=(0,c.useCallback)((e=>{a(t,e)}),[t,a]);return r().createElement("div",{tabIndex:"0",role:"button",onClick:o,onKeyDown:l,className:"card jp-connect__disconnect-survey-card "+s},i)}},1294:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var c=n(4743),r=n(9818),a=n(9196),i=n(428);const s=window?.JP_CONNECTION_INITIAL_STATE?window.JP_CONNECTION_INITIAL_STATE:{},o=function(){let{registrationNonce:e=s.registrationNonce,apiRoot:t=s.apiRoot,apiNonce:n=s.apiNonce,redirectUri:o,autoTrigger:l,from:p,skipUserConnection:u}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{registerSite:m,connectUser:d,refreshConnectedPlugins:g}=(0,r.useDispatch)(i.t),h=(0,r.useSelect)((e=>e(i.t).getRegistrationError())),{siteIsRegistering:y,userIsConnecting:f,userConnectionData:k,connectedPlugins:v,isRegistered:E,isUserConnected:b,hasConnectedOwner:j}=(0,r.useSelect)((e=>({siteIsRegistering:e(i.t).getSiteIsRegistering(),userIsConnecting:e(i.t).getUserIsConnecting(),userConnectionData:e(i.t).getUserConnectionData(),connectedPlugins:e(i.t).getConnectedPlugins(),...e(i.t).getConnectionStatus()}))),_=()=>{u?o&&(window.location=o):d({from:p,redirectUri:o})},C=t=>{t&&t.preventDefault(),E?_():m({registrationNonce:e,redirectUri:o}).then((()=>{_()}))};return(0,a.useEffect)((()=>{c.ZP.setApiRoot(t),c.ZP.setApiNonce(n)}),[t,n]),(0,a.useEffect)((()=>{!l||y||f||C()}),[]),{handleRegisterSite:C,handleConnectUser:_,refreshConnectedPlugins:g,isRegistered:E,isUserConnected:b,siteIsRegistering:y,userIsConnecting:f,registrationError:h,userConnectionData:k,hasConnectedOwner:j,connectedPlugins:v}}},7523:(e,t,n)=>{"use strict";n.d(t,{LI:()=>a,N4:()=>s,T1:()=>l,TS:()=>p,ZP:()=>E,i6:()=>r,qV:()=>o,r7:()=>i,wQ:()=>m});var c=n(4743);const r="SET_CONNECTION_STATUS",a="SET_CONNECTION_STATUS_IS_FETCHING",i="SET_SITE_IS_REGISTERING",s="SET_USER_IS_CONNECTING",o="SET_REGISTRATION_ERROR",l="CLEAR_REGISTRATION_ERROR",p="SET_AUTHORIZATION_URL",u="CONNECT_USER",m="SET_CONNECTED_PLUGINS",d=e=>({type:r,connectionStatus:e}),g=e=>({type:i,isRegistering:e}),h=e=>({type:s,isConnecting:e}),y=e=>({type:o,registrationError:e}),f=()=>({type:l}),k=e=>({type:p,authorizationUrl:e}),v=e=>({type:m,connectedPlugins:e});const E={setConnectionStatus:d,setConnectionStatusIsFetching:e=>({type:a,isFetching:e}),fetchConnectionStatus:()=>({type:"FETCH_CONNECTION_STATUS"}),fetchAuthorizationUrl:e=>({type:"FETCH_AUTHORIZATION_URL",redirectUri:e}),setSiteIsRegistering:g,setUserIsConnecting:h,setRegistrationError:y,clearRegistrationError:f,setAuthorizationUrl:k,registerSite:function*(e){let{registrationNonce:t,redirectUri:n}=e;yield f(),yield g(!0);try{const e=yield{type:"REGISTER_SITE",registrationNonce:t,redirectUri:n};return yield d({isRegistered:!0}),yield k(e.authorizeUrl),yield g(!1),Promise.resolve(e)}catch(e){return yield y(e),yield g(!1),Promise.reject(e)}},connectUser:function*(){let{from:e,redirectFunc:t,redirectUri:n}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};yield h(!0),yield{type:u,from:e,redirectFunc:t,redirectUri:n}},setConnectedPlugins:v,refreshConnectedPlugins:()=>async e=>{let{dispatch:t}=e;return await new Promise((e=>c.ZP.fetchConnectedPlugins().then((n=>{t(v(n)),e(n)}))))}}},1432:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var c=n(4743),r=n(9818),a=n(428);const i={FETCH_AUTHORIZATION_URL:e=>{let{redirectUri:t}=e;return c.ZP.fetchAuthorizationUrl(t)},REGISTER_SITE:e=>{let{registrationNonce:t,redirectUri:n}=e;return c.ZP.registerSite(t,n)},CONNECT_USER:(0,r.createRegistryControl)((e=>{let{resolveSelect:t}=e;return function(){let{from:e,redirectFunc:n,redirectUri:c}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new Promise(((r,i)=>{t(a.t).getAuthorizationUrl(c).then((t=>{const c=n||(e=>window.location.assign(e)),a=new URL(t);e&&a.searchParams.set("from",encodeURIComponent(e));const i=a.toString();c(i),r(i)})).catch((e=>{i(e)}))}))}}))}},1479:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var c=n(9818),r=n(7523);const a=(0,c.combineReducers)({connectionStatus:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;return t.type===r.i6?{...e,...t.connectionStatus}:e},connectionStatusIsFetching:function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1?arguments[1]:void 0;return t.type===r.LI?t.isFetching:e},siteIsRegistering:function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1?arguments[1]:void 0;return t.type===r.r7?t.isRegistering:e},userIsConnecting:function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1?arguments[1]:void 0;return t.type===r.N4?t.isConnecting:e},registrationError:(e,t)=>{switch(t.type){case r.T1:return!1;case r.qV:return t.registrationError;default:return e}},authorizationUrl:(e,t)=>t.type===r.TS?t.authorizationUrl:e,userConnectionData:(e,t)=>(t.type,e),connectedPlugins:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;return t.type===r.wQ?t.connectedPlugins:e}})},7728:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var c=n(9818),r=n(7523),a=n(428);const i={...{getAuthorizationUrl:{isFulfilled:function(e){const t=Boolean(e.authorizationUrl);for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];const s=(0,c.select)(a.t).hasFinishedResolution("getAuthorizationUrl",r);return t&&!s&&(0,c.dispatch)(a.t).finishResolution("getAuthorizationUrl",r),t},*fulfill(e){const t=yield r.ZP.fetchAuthorizationUrl(e);yield r.ZP.setAuthorizationUrl(t.authorizeUrl)}}}}},2725:(e,t,n)=>{"use strict";n.d(t,{Z:()=>c});const c={getConnectionStatus:e=>e.connectionStatus||{},getConnectionStatusIsFetching:()=>!1,getSiteIsRegistering:e=>e.siteIsRegistering||!1,getUserIsConnecting:e=>e.userIsConnecting||!1,getRegistrationError:e=>e.registrationError||!1,getAuthorizationUrl:e=>e.authorizationUrl||!1,getUserConnectionData:e=>e.userConnectionData||!1,getConnectedPlugins:e=>e.connectedPlugins||[]}},3535:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var c=n(8294),r=n.n(c),a=n(9818);class i{static mayBeInit(e,t){null===i.store&&(i.store=(0,a.createReduxStore)(e,t),(0,a.register)(i.store))}}r()(i,"store",null);const s=i},428:(e,t,n)=>{"use strict";n.d(t,{t:()=>l});var c=n(7523),r=n(1432),a=n(1479),i=n(7728),s=n(2725),o=n(3535);const l="jetpack-connection",p=window.JP_CONNECTION_INITIAL_STATE;p||console.error("Jetpack Connection package: Initial state is missing. Check documentation to see how to use the Connection composer package to set up the initial state."),o.Z.mayBeInit(l,{__experimentalUseThunks:!0,reducer:a.Z,actions:c.ZP,selectors:s.Z,resolvers:i.Z,controls:r.Z,initialState:p||{}})},8728:(e,t,n)=>{"use strict";n.d(t,{Z:()=>h});var c=n(8868),r=n(5033),a=n(5609),i=n(9307),s=n(5736),o=n(1074),l=n(797),p=n(5844),u=n.n(p),m=n(9196),d=n.n(m);const __=s.__,g=e=>{const{activateLicense:t,isActivating:n,license:s,licenseError:p,onLicenseChange:u}=e,m=null!=p;return d().createElement("div",{className:"jp-license-activation-screen-controls"},d().createElement("div",{className:"jp-license-activation-screen-controls--content"},d().createElement(c.Z,{showText:!1,height:48}),d().createElement("h1",null,__("Add a license key","jetpack-my-jetpack")),d().createElement("p",null,(0,i.createInterpolateElement)(__("<strong>Check your email</strong> for your license key. You should have received it after making your purchase.","jetpack-my-jetpack"),{strong:d().createElement("strong",null)})),d().createElement(a.TextControl,{className:m?"jp-license-activation-screen-controls--license-field-with-error":"jp-license-activation-screen-controls--license-field",label:__("License key","jetpack-my-jetpack"),value:s,onChange:u,disabled:n}),m&&d().createElement("div",{className:"jp-license-activation-screen-controls--license-field-error"},d().createElement(o.Z,{icon:l.Z}),d().createElement("span",null,p))),d().createElement("div",null,d().createElement(a.Button,{className:"jp-license-activation-screen-controls--button",onClick:t},n?d().createElement(r.Z,null):__("Activate","jetpack-my-jetpack"))))};g.propTypes={activateLicense:u().func.isRequired,isActivating:u().bool.isRequired,license:u().string.isRequired,licenseError:u().string,onLicenseChange:u().func.isRequired,siteUrl:u().string.isRequired};const h=g},8781:(e,t,n)=>{"use strict";n.d(t,{Z:()=>u});var c=n(6324),r=n(9307),a=n(5736),i=n(5844),s=n.n(i),o=n(9196),l=n.n(o);const __=a.__,p=e=>{const{imageUrl:t,showSupportLink:n=!1}=e;return l().createElement("div",{className:"jp-license-activation-screen-illustration"},l().createElement("div",{className:"jp-license-activation-screen-illustration--wrapper"},l().createElement("img",{className:"jp-license-activation-screen-illustration--img",src:t,alt:""})),n&&l().createElement("p",{className:"jp-license-activation-screen-illustration--support-link"},(0,r.createInterpolateElement)(__("Do you need help? <a>Contact us.</a>","jetpack-my-jetpack"),{a:l().createElement("a",{href:(0,c.Z)("jetpack-support-license-activation")})})))};p.propTypes={imageUrl:s().string.isRequired,showSupportLink:s().bool};const u=p},7554:(e,t,n)=>{"use strict";n.d(t,{Z:()=>m});var c=n(8868),r=n(5844),a=n.n(r),i=n(9196),s=n.n(i),o=n(3157),l=n(1775),p=n(4172);const u=e=>{const{productId:t,siteRawUrl:n,siteAdminUrl:r,currentRecommendationsStep:a}=e;return s().createElement("div",{className:"jp-license-activation-screen-success-info"},s().createElement("div",{className:"jp-license-activation-screen-success-info--content"},s().createElement(c.Z,{showText:!1,height:48})),s().createElement(l.Z,{siteRawUrl:n,productId:t}),s().createElement("div",{className:"jp-license-activation-screen-success-info--buttons"},s().createElement(o.c,{currentRecommendationsStep:a,siteAdminUrl:r,siteRawUrl:n}),s().createElement(p.o,{siteRawUrl:n,productId:t})))};u.propTypes={siteRawUrl:a().string,productId:a().number,siteAdminUrl:a().string,currentRecommendationsStep:a().string};const m=u},3157:(e,t,n)=>{"use strict";n.d(t,{c:()=>p});var c=n(6324),r=n(5609),a=n(5736),i=n(5844),s=n.n(i),o=n(9196),l=n.n(o);const __=a.__,p=e=>{const{currentRecommendationsStep:t,siteAdminUrl:n,siteRawUrl:a}=e;return"not-started"===t?l().createElement(r.Button,{className:"jp-license-activation-screen-success-info--button",href:n+"admin.php?page=jetpack#/recommendations"},__("Configure my site","jetpack-my-jetpack")):l().createElement(r.Button,{className:"jp-license-activation-screen-success-info--button",href:(0,c.Z)("license-activation-view-my-plans",{site:a})},__("View my plans","jetpack-my-jetpack"))};p.propTypes={siteAdminUrl:s().string.isRequired,currentRecommendationsStep:s().string,siteRawUrl:s().string.isRequired}},1775:(e,t,n)=>{"use strict";n.d(t,{Z:()=>u});var c=n(9307),r=n(5736),a=n(5844),i=n.n(a),s=n(9196),o=n.n(s),l=n(8275);const __=r.__,p=e=>{const{productId:t,siteRawUrl:n}=e,r=`https://cloud.jetpack.com/landing/${n}`,a=(0,l.F)(t),i={jetpack_anti_spam:{title:__("Jetpack Anti-spam is active!","jetpack-my-jetpack"),text:__("We'll take care of everything from here. Now you can enjoy a spam-free site!","jetpack-my-jetpack")},jetpack_backup:{title:__("Jetpack Backup is active!","jetpack-my-jetpack"),text:(0,c.createInterpolateElement)(__("You can see your backups and restore your site on <a>cloud.jetpack.com</a>. If you ever lose access to your site, you can restore it there.","jetpack-my-jetpack"),{a:o().createElement("a",{href:r})})},jetpack_complete:{title:__("Jetpack Complete is active!","jetpack-my-jetpack"),text:(0,c.createInterpolateElement)(__("You can see your backups, security scans, and restore your site on <a>cloud.jetpack.com</a>. If you ever lose access to your site, you can restore it there.","jetpack-my-jetpack"),{a:o().createElement("a",{href:r})})},jetpack_scan:{title:__("Jetpack Scan is active!","jetpack-my-jetpack"),text:(0,c.createInterpolateElement)(__("You can see your security scans on <a>cloud.jetpack.com</a>.","jetpack-my-jetpack"),{a:o().createElement("a",{href:r})})},jetpack_search:{title:__("Jetpack Search is active!","jetpack-my-jetpack"),text:__("Next, we'll help you customize the Search experience for your visitors.","jetpack-my-jetpack")},jetpack_security:{title:__("Jetpack Security is active!","jetpack-my-jetpack"),text:(0,c.createInterpolateElement)(__("You can see your backups, security scans, and restore your site on <a>cloud.jetpack.com</a>. If you ever lose access to your site, you can restore it there.","jetpack-my-jetpack"),{a:o().createElement("a",{href:r})})},jetpack_videopress:{title:__("Jetpack VideoPress is active!","jetpack-my-jetpack"),text:__("Experience high-quality, ad-free video built specifically for WordPress.","jetpack-my-jetpack")},default:{title:__("Your product is active!","jetpack-my-jetpack"),text:__("You're all set!","jetpack-my-jetpack")}};return o().createElement("div",{className:"jp-license-activation-screen-success-info--product-details"},o().createElement("h1",null,i[a].title," ",String.fromCodePoint(127881)),o().createElement("p",null,i[a].text))};p.propTypes={dashboardUrl:i().string,productId:i().number};const u=p},4172:(e,t,n)=>{"use strict";n.d(t,{o:()=>u});var c=n(6324),r=n(5609),a=n(5736),i=n(5844),s=n.n(i),o=n(9196),l=n.n(o),p=n(8275);const __=a.__,u=e=>{const{productId:t,siteRawUrl:n}=e,a={jetpack_backup:{text:__("View latest backup","jetpack-my-jetpack"),redirectSource:"jetpack-license-activation-success-backup"},jetpack_complete:{text:__("View latest backup","jetpack-my-jetpack"),redirectSource:"jetpack-license-activation-success-backup"},jetpack_scan:{text:__("View scan results","jetpack-my-jetpack"),redirectSource:"jetpack-license-activation-success-scan"},jetpack_search:{text:__("Configure search","jetpack-my-jetpack"),redirectSource:"jetpack-license-activation-success-search"},jetpack_security:{text:__("View latest backup","jetpack-my-jetpack"),redirectSource:"jetpack-license-activation-success-backup"},default:null}[(0,p.F)(t)];return l().createElement(l().Fragment,null,a&&l().createElement(r.ExternalLink,{className:"jp-license-activation-screen-success-info--external-link",href:(0,c.Z)(a.redirectSource,{site:n})},a.text))};u.propTypes={siteRawUrl:s().string,productId:s().number}},468:(e,t,n)=>{"use strict";n.d(t,{Z:()=>h});var c=n(4743),r=n(5736),a=n(5844),i=n.n(a),s=n(9196),o=n.n(s),l=n(8728),p=n(8781),u=n(7554),m=n(8702),d=n(1160);const __=r.__,g=e=>{const{onActivationSuccess:t=(()=>null),siteRawUrl:n,startingLicense:r,siteAdminUrl:a,currentRecommendationsStep:i}=e,[g,h]=(0,s.useState)(r??""),[y,f]=(0,s.useState)(null),[k,v]=(0,s.useState)(!1),[E,b]=(0,s.useState)(null),j=(0,s.useCallback)((()=>k?Promise.resolve():g.length<1?(f(__("This is not a valid license key. Please try again.","jetpack-my-jetpack")),Promise.resolve()):(f(null),v(!0),c.ZP.attachLicenses([g]).then((e=>{const n=(e=>{let t=e;for(;Array.isArray(t)&&t.length>0;)t=t[0];if(t?.activatedProductId)return t.activatedProductId;if(t?.errors)for(const e in t.errors)if(t.errors[e].length>0)throw new Error(t.errors[e][0]);throw new Error(__("An unknown error occurred during license activation. Please try again.","jetpack-my-jetpack"))})(e);b(n),t(n)})).catch((e=>{f(e.message)})).finally((()=>{v(!1)})))),[k,g,t]);return null!==E?o().createElement("div",{className:"jp-license-activation-screen"},o().createElement(u.Z,{siteRawUrl:n,productId:E,siteAdminUrl:a,currentRecommendationsStep:i}),o().createElement(p.Z,{imageUrl:d,showSupportLink:!1})):o().createElement("div",{className:"jp-license-activation-screen"},o().createElement(l.Z,{license:g,onLicenseChange:h,activateLicense:j,siteUrl:n,licenseError:y,isActivating:k}),o().createElement(p.Z,{imageUrl:m,showSupportLink:!0}))};g.propTypes={onActivationSuccess:i().func,siteRawUrl:i().string.isRequired,startingLicense:i().string,siteAdminUrl:i().string.isRequired,currentRecommendationsStep:i().string};const h=g},8275:(e,t,n)=>{"use strict";n.d(t,{F:()=>r});const c={jetpack_anti_spam:[2110,2111],jetpack_backup:[2100,2101,2102,2103,2112,2113,2114,2115],jetpack_complete:[2014,2015],jetpack_scan:[2106,2107,2108,2109],jetpack_search:[2104,2105],jetpack_security:[2010,2011,2012,2013,2016,2017,2019,2020],jetpack_videopress:[2116,2117]};function r(e){return Object.keys(c).find((t=>c[t].includes(e)))||"default"}},3281:(e,t,n)=>{"use strict";n.d(t,{I:()=>c.Z});var c=n(468)},1899:(e,t,n)=>{"use strict";n.d(t,{Z:()=>m});var c=n(4743),r=n(1163),a=n(8218),i=n(2939),s=n(3281),o=n(9196),l=n.n(o),p=n(2199),u=n(5626);function m(){(0,o.useEffect)((()=>{const{apiRoot:e,apiNonce:t}=window?.myJetpackRest||{};c.ZP.setApiRoot(e),c.ZP.setApiNonce(t)}),[]);const{recordEvent:e}=(0,p.Z)(),t=(0,o.useCallback)((t=>{e("jetpack_myjetpack_license_activation_back_link_click"),document.referrer.includes(window.location.host)&&(t.preventDefault(),history.back())}),[e]);return l().createElement(r.Z,{showHeader:!1,showBackground:!1},l().createElement(a.Z,{horizontalSpacing:3,horizontalGap:3},l().createElement(i.Z,null,l().createElement(u.Z,{onClick:t})),l().createElement(i.Z,null,l().createElement(s.I,{siteRawUrl:window?.myJetpackInitialState?.siteSuffix,onActivationSuccess:void 0,siteAdminUrl:window?.myJetpackInitialState?.adminUrl,currentRecommendationsStep:null}))))}},3890:(e,t,n)=>{"use strict";n.d(t,{Z:()=>u});var c=n(1074),r=n(9517),a=n(5235),i=n.n(a),s=n(9196),o=n.n(s),l=n(554),p=n(6234);const u=e=>{let{className:t}=e;return o().createElement(l.rU,{to:"/",className:i()(p.Z.link,t)},o().createElement(c.Z,{icon:r.Z,className:p.Z.icon}))}},5745:(e,t,n)=>{"use strict";n.d(t,{Z:()=>m});var c=n(1020),r=n(5162),a=n.n(r),i=n(9196),s=n.n(i),o=n(3345),l=n(3703),p=n(2728);const u=e=>{let{admin:t,slug:n}=e;const{detail:r,status:a,activate:u,deactivate:m,isFetching:d}=(0,l.i)(n),{name:g,description:h,manageUrl:y}=r,f=(0,o.Z)("/connection"),k=(0,o.Z)(`add-${n}`),v=(0,i.useCallback)((()=>{window.location=y}),[y]),E=(0,c.VS)(n);return s().createElement(p.Z,{name:g,description:h,status:a,icon:s().createElement(E,{opacity:.4}),admin:t,isFetching:d,onDeactivate:m,slug:n,onActivate:u,onAdd:k,onFixConnection:f,onManage:v})};u.propTypes={admin:a().bool.isRequired,slug:a().string.isRequired};const m=u},17:(e,t,n)=>{"use strict";n.d(t,{Z:()=>b});var c=n(1163),r=n(8218),a=n(2939),i=n(6324),s=n(9312),o=n(5736),l=n(1074),p=n(5381),u=n(9196),m=n.n(u),d=n(1689),g=n(3890),h=n(5242),y=n(6790),f=n(184),k=n(8578),v=n(4997);const __=o.__,E=()=>m().createElement(m().Fragment,null,m().createElement("div",{className:k.Z["account-description"]},__("You can use your existing account on any of these services:","jetpack-my-jetpack")),m().createElement("span",{className:k.Z["account-images"]},m().createElement("img",{src:v,className:k.Z.wordpress,alt:__("Wordpress Logo","jetpack-my-jetpack")}),m().createElement("img",{src:f,className:k.Z.google,alt:__("Google Logo","jetpack-my-jetpack")}),m().createElement("img",{src:h,className:k.Z.apple,alt:__("Apple Logo","jetpack-my-jetpack")}))),b=()=>{const{apiRoot:e,apiNonce:t}=(0,d.Z)();return m().createElement(c.Z,{showHeader:!1,showBackground:!1},m().createElement(r.Z,{horizontalSpacing:8,horizontalGap:0},m().createElement(a.Z,{className:k.Z["relative-col"]},m().createElement(g.Z,{className:k.Z["close-link"]})),m().createElement(a.Z,null,m().createElement(s.Z,{title:__("Unlock all the amazing features of Jetpack by connecting now","jetpack-my-jetpack"),buttonLabel:__("Connect your user account","jetpack-my-jetpack"),apiRoot:e,apiNonce:t,images:[y],footer:m().createElement(E,null),from:"my-jetpack",redirectUri:"admin.php?page=my-jetpack"},m().createElement("ul",null,m().createElement("li",null,__("Receive instant downtime alerts","jetpack-my-jetpack")),m().createElement("li",null,__("Automatically share your content on social media","jetpack-my-jetpack")),m().createElement("li",null,__("Let your subscribers know when you post","jetpack-my-jetpack")),m().createElement("li",null,__("Receive notifications about new likes and comments","jetpack-my-jetpack")),m().createElement("li",null,__("Let visitors share your content on social media","jetpack-my-jetpack")),m().createElement("li",null,__("And more!","jetpack-my-jetpack")," ",m().createElement("a",{href:(0,i.Z)("jetpack-features"),target:"_blank",className:k.Z["all-features"],rel:"noreferrer"},__("See all Jetpack features","jetpack-my-jetpack"),m().createElement(l.Z,{icon:p.Z}))))))))}},5784:(e,t,n)=>{"use strict";n.d(t,{Z:()=>p});var c=n(9159),r=n(9818),a=n(9196),i=n.n(a),s=n(1689),o=n(3345),l=n(7493);function p(){const{apiRoot:e,apiNonce:t,redirectUrl:n,connectedPlugins:a}=(0,s.Z)(),p=(0,o.Z)("/connection"),u=(0,r.useSelect)((e=>e(l.t).getProductsThatRequiresUserConnection()));return i().createElement(c.Z,{apiRoot:e,apiNonce:t,redirectUri:n,onConnectUser:p,connectedPlugins:a,requiresUserConnection:u.length>0})}},5626:(e,t,n)=>{"use strict";n.d(t,{Z:()=>u});var c=n(5736),r=n(1074),a=n(3259),i=n(9196),s=n.n(i),o=n(554),l=n(197);const __=c.__;function p(e){let{onClick:t}=e;return s().createElement(o.rU,{to:"/",className:l.Z.link,onClick:t},s().createElement(r.Z,{icon:a.Z,className:l.Z.icon}),__("Go back","jetpack-my-jetpack"))}p.defaultProps={onClick:()=>{}};const u=p},8966:(e,t,n)=>{"use strict";n.d(t,{Z:()=>N});var c=n(2402),r=n.n(c),a=n(1163),i=n(3244),s=n(8218),o=n(2939),l=n(5106),p=n(8038),u=n(5609),m=n(5736),d=n(797),g=n(496),h=n(1074),y=n(9196),f=n.n(y),k=n(2199),v=n(5371),E=n(1689),b=n(5031),j=n(5784),_=n(6800),C=n(5943),w=n(1017);const __=m.__,Z=e=>{let{message:t,options:n,clean:c}=e;const a={error:d.Z,info:g.Z};return f().createElement(u.Notice,r()({isDismissible:!1},n,{onRemove:c,className:w.Z.notice}),a?.[n.status]&&f().createElement(h.Z,{icon:a[n.status]}),f().createElement("div",{className:w.Z.message},t))};function N(){(0,v.Z)();const{message:e,options:t,clean:n}=(0,b.Z)(),{recordEvent:c}=(0,k.Z)();(0,y.useEffect)((()=>{c("jetpack_myjetpack_page_view")}),[c]);const{isSiteConnected:r}=(0,E.Z)();return r?f().createElement(a.Z,null,f().createElement(i.Z,null,f().createElement(s.Z,{horizontalSpacing:5,horizontalGap:e?3:6},f().createElement(o.Z,{sm:4,md:7,lg:6},f().createElement(l.ZP,{variant:"headline-small"},__("Manage your Jetpack products","jetpack-my-jetpack"))),e&&f().createElement(o.Z,null,f().createElement(Z,{message:e,options:t,clean:n})),f().createElement(o.Z,null,f().createElement(C.Z,null)))),f().createElement(p.Z,null,f().createElement(s.Z,{horizontalSpacing:8},f().createElement(o.Z,{sm:2,md:4,lg:6},f().createElement(_.Z,null)),f().createElement(o.Z,{sm:2,md:4,lg:6},f().createElement(j.Z,null))))):null}},6800:(e,t,n)=>{"use strict";n.d(t,{Z:()=>k});var c=n(5106),r=n(526),a=n(5736),i=n(9196),s=n.n(i),o=n(2199),l=n(1689),p=n(3345),u=n(1750),m=n(8295),d=n(7258),g=n(6891);const __=a.__,_n=a._n;function h(e){let{purchase:t={}}=e;const{product_name:n,expiry_message:r}=t;return s().createElement(s().Fragment,null,s().createElement(c.Dx,null,n),s().createElement(c.ZP,{variant:"body",className:g.Z["expire-date"]},r))}function y(e){let{purchases:t}=e;return s().createElement(s().Fragment,null,s().createElement(c.H3,null,t.length<=1?__("Your plan","jetpack-my-jetpack"):__("Your plans","jetpack-my-jetpack")),0===t.length&&s().createElement(c.ZP,{variant:"body"},__("Want to power up your Jetpack?","jetpack-my-jetpack")))}function f(e){let{purchases:t}=e;const{recordEvent:n}=(0,o.Z)(),{isUserConnected:c}=(0,l.Z)();let a=__("Purchase a plan","jetpack-my-jetpack");t.length>=1&&(a=_n("Manage your plan","Manage your plans",t.length,"jetpack-my-jetpack"));const u=(0,i.useCallback)((()=>{const e=t.length?"jetpack_myjetpack_plans_manage_click":"jetpack_myjetpack_plans_purchase_click";n(e)}),[t,n]),h=(0,p.Z)("/connection"),y=(0,i.useCallback)((()=>{n("jetpack_myjetpack_activate_license_click"),c||h()}),[h,c,n]);let f=__("Activate a license","jetpack-my-jetpack");return c||(f=__("Activate a license (requires a user connection)","jetpack-my-jetpack")),s().createElement("ul",null,s().createElement("li",{className:g.Z["actions-list-item"]},s().createElement(r.Z,{onClick:u,href:t.length?(0,m.Z)():(0,d.Z)(),weight:"regular",variant:"link",isExternalLink:!0},a)),window?.myJetpackInitialState?.loadAddLicenseScreen&&s().createElement("li",{className:g.Z["actions-list-item"]},s().createElement(r.Z,{onClick:y,href:c?`${window?.myJetpackInitialState?.adminUrl}admin.php?page=my-jetpack#/add-license`:void 0,variant:"link",weight:"regular"},f)))}function k(){const e=(0,u.Z)();return s().createElement("div",{className:g.Z.container},s().createElement(y,{purchases:e}),s().createElement("div",{className:g.Z.purchasesSection},e.map((e=>s().createElement(h,{key:`purchase-${e.product_name}`,purchase:e})))),s().createElement(f,{purchases:e}))}},2728:(e,t,n)=>{"use strict";n.d(t,{N:()=>y,Z:()=>E});var c=n(2402),r=n.n(c),a=n(5106),i=n(5609),s=n(5736),o=n(5235),l=n.n(o),p=n(5162),u=n.n(p),m=n(9196),d=n.n(m),g=n(2199),h=n(9720);const __=s.__,y={ACTIVE:"active",INACTIVE:"inactive",ERROR:"error",ABSENT:"plugin_absent",NEEDS_PURCHASE:"needs_purchase"},f={[y.ACTIVE]:__("Active","jetpack-my-jetpack"),[y.INACTIVE]:__("Inactive","jetpack-my-jetpack"),[y.NEEDS_PURCHASE]:__("Inactive","jetpack-my-jetpack"),[y.ERROR]:__("Error","jetpack-my-jetpack")},k=e=>{let{status:t,admin:n,name:c,onActivate:a,onManage:o,onFixConnection:l,isFetching:p,className:u,onAdd:m}=e;if(!n)return d().createElement("span",{className:h.Z["action-link-button"]},
|
3 |
/* translators: placeholder is product name. */
|
4 |
+
(0,s.sprintf)(__("Learn about %s","jetpack-my-jetpack"),c));const g={variant:p?void 0:"primary",disabled:p,className:u};switch(t){case y.ABSENT:return d().createElement("span",{className:h.Z["action-link-button"]},
|
5 |
/* translators: placeholder is product name. */
|
6 |
+
(0,s.sprintf)(__("Add %s","jetpack-my-jetpack"),c));case y.NEEDS_PURCHASE:return d().createElement(i.Button,r()({},g,{onClick:m}),__("Purchase","jetpack-my-jetpack"));case y.ACTIVE:return d().createElement(i.Button,r()({},g,{variant:"secondary",onClick:o}),__("Manage","jetpack-my-jetpack"));case y.ERROR:return d().createElement(i.Button,r()({},g,{onClick:l}),__("Fix connection","jetpack-my-jetpack"));case y.INACTIVE:return d().createElement(i.Button,r()({},g,{variant:"secondary",onClick:a}),__("Activate","jetpack-my-jetpack"));default:return null}},v=e=>{const{name:t,description:n,icon:c,status:i,onActivate:s,onAdd:o,onFixConnection:p,onManage:u,isFetching:v,slug:E}=e,b=i===y.ACTIVE,j=i===y.ERROR,_=i===y.INACTIVE,C=i===y.ABSENT,w=i===y.NEEDS_PURCHASE,Z=f[i],N=l()(h.Z.container,{[h.Z.plugin_absent]:C,[h.Z["is-purchase-required"]]:w,[h.Z["is-link"]]:C,[h.Z["has-error"]]:j}),S=l()(h.Z.status,{[h.Z.active]:b,[h.Z.inactive]:_||w,[h.Z.error]:j,[h.Z["is-fetching"]]:v}),{recordEvent:P}=(0,g.Z)(),R=(0,m.useCallback)((()=>{P("jetpack_myjetpack_product_card_activate_click",{product:E}),s()}),[E,s,P]),x=(0,m.useCallback)((e=>{e?.preventDefault&&e.preventDefault(),P("jetpack_myjetpack_product_card_add_click",{product:E}),o()}),[E,o,P]),I=(0,m.useCallback)((()=>{P("jetpack_myjetpack_product_card_manage_click",{product:E}),u()}),[E,u,P]),U=(0,m.useCallback)((()=>{P("jetpack_myjetpack_product_card_fixconnection_click",{product:E}),p()}),[E,p,P]),T=C?e=>{let{children:t,...n}=e;return d().createElement("a",r()({},n,{href:"#",onClick:x}),t)}:e=>{let{children:t,...n}=e;return d().createElement("div",n,t)};return d().createElement(T,{className:N},d().createElement("div",{className:h.Z.name},d().createElement(a.ZP,{variant:"title-medium"},t),c),d().createElement(a.ZP,{variant:"body-small",className:h.Z.description},n),d().createElement("div",{className:h.Z.actions},d().createElement(k,r()({},e,{onActivate:R,onFixConnection:U,onManage:I,className:h.Z.button})),!C&&d().createElement(a.ZP,{variant:"label",className:S},Z)))};v.propTypes={name:u().string.isRequired,description:u().string.isRequired,icon:u().element,admin:u().bool.isRequired,isFetching:u().bool,onManage:u().func,onFixConnection:u().func,onActivate:u().func,onAdd:u().func,slug:u().string.isRequired,status:u().oneOf([y.ACTIVE,y.INACTIVE,y.ERROR,y.ABSENT,y.NEEDS_PURCHASE]).isRequired},v.defaultProps={icon:null,isFetching:!1,onManage:()=>{},onFixConnection:()=>{},onActivate:()=>{},onAdd:()=>{}};const E=v},1640:(e,t,n)=>{"use strict";n.d(t,{Z:()=>p});var c=n(5162),r=n.n(c),a=n(9196),i=n.n(a),s=n(3345),o=n(5745);const l=e=>{let{admin:t}=e;return i().createElement(o.Z,{admin:t,slug:"anti-spam",onAdd:(0,s.Z)("/add-anti-spam")})};l.propTypes={admin:r().bool.isRequired};const p=l},401:(e,t,n)=>{"use strict";n.d(t,{Z:()=>l});var c=n(5162),r=n.n(c),a=n(9196),i=n.n(a),s=n(5745);const o=e=>{let{admin:t}=e;return i().createElement(s.Z,{admin:t,slug:"backup"})};o.propTypes={admin:r().bool.isRequired};const l=o},4074:(e,t,n)=>{"use strict";n.d(t,{Z:()=>l});var c=n(5162),r=n.n(c),a=n(9196),i=n.n(a),s=n(5745);const o=e=>{let{admin:t}=e;return i().createElement(s.Z,{admin:t,slug:"boost"})};o.propTypes={admin:r().bool.isRequired};const l=o},5996:(e,t,n)=>{"use strict";n.d(t,{Z:()=>l});var c=n(5162),r=n.n(c),a=n(9196),i=n.n(a),s=n(5745);const o=e=>{let{admin:t}=e;return i().createElement(s.Z,{admin:t,slug:"crm"})};o.propTypes={admin:r().bool.isRequired};const l=o},717:(e,t,n)=>{"use strict";n.d(t,{Z:()=>l});var c=n(5162),r=n.n(c),a=n(9196),i=n.n(a),s=n(5745);const o=e=>{let{admin:t}=e;return i().createElement(s.Z,{admin:t,slug:"extras"})};o.propTypes={admin:r().bool.isRequired};const l=o},5943:(e,t,n)=>{"use strict";n.d(t,{Z:()=>y});var c=n(8218),r=n(2939),a=n(9196),i=n.n(a),s=n(1640),o=n(401),l=n(4074),p=n(5996),u=n(717),m=n(6407),d=n(687),g=n(419),h=n(9894);const y=()=>i().createElement(c.Z,{fluid:!0,horizontalSpacing:0,horizontalGap:3},i().createElement(r.Z,{sm:4,md:4,lg:4},i().createElement(o.Z,{admin:!0})),i().createElement(r.Z,{sm:4,md:4,lg:4},i().createElement(m.Z,{admin:!0})),i().createElement(r.Z,{sm:4,md:4,lg:4},i().createElement(s.Z,{admin:!0})),i().createElement(r.Z,{sm:4,md:4,lg:4},i().createElement(l.Z,{admin:!0})),i().createElement(r.Z,{sm:4,md:4,lg:4},i().createElement(d.Z,{admin:!0})),i().createElement(r.Z,{sm:4,md:4,lg:4},i().createElement(h.Z,{admin:!0})),i().createElement(r.Z,{sm:4,md:4,lg:4},i().createElement(p.Z,{admin:!0})),i().createElement(r.Z,{sm:4,md:4,lg:4},i().createElement(g.Z,{admin:!0})),i().createElement(r.Z,{sm:4,md:4,lg:4},i().createElement(u.Z,{admin:!0})))},6407:(e,t,n)=>{"use strict";n.d(t,{Z:()=>l});var c=n(5162),r=n.n(c),a=n(9196),i=n.n(a),s=n(5745);const o=e=>{let{admin:t}=e;return i().createElement(s.Z,{admin:t,slug:"scan"})};o.propTypes={admin:r().bool.isRequired};const l=o},687:(e,t,n)=>{"use strict";n.d(t,{Z:()=>l});var c=n(5162),r=n.n(c),a=n(9196),i=n.n(a),s=n(5745);const o=e=>{let{admin:t}=e;return i().createElement(s.Z,{admin:t,slug:"search"})};o.propTypes={admin:r().bool.isRequired};const l=o},419:(e,t,n)=>{"use strict";n.d(t,{Z:()=>l});var c=n(5162),r=n.n(c),a=n(9196),i=n.n(a),s=n(5745);const o=e=>{let{admin:t}=e;return i().createElement(s.Z,{admin:t,slug:"social"})};o.propTypes={admin:r().bool.isRequired};const l=o},9894:(e,t,n)=>{"use strict";n.d(t,{Z:()=>l});var c=n(5162),r=n.n(c),a=n(9196),i=n.n(a),s=n(5745);const o=e=>{let{admin:t}=e;return i().createElement(s.Z,{admin:t,slug:"videopress"})};o.propTypes={admin:r().bool.isRequired};const l=o},2667:(e,t,n)=>{"use strict";n.d(t,{Z:()=>l});var c=n(5609),r=n(5162),a=n.n(r),i=n(9196),s=n.n(i);const o=e=>{let{children:t,className:n,href:r,isLoading:a,onClick:i,isPrimary:o}=e;return s().createElement(c.Button,{onClick:i,className:n,href:r,variant:o?"primary":"secondary",disabled:a},a?s().createElement(c.Spinner,null):t)};o.propTypes={className:a().string,isLoading:a().bool,isPrimary:a().bool},o.defaultProps={isLoading:!1,isPrimary:!0};const l=o},968:(e,t,n)=>{"use strict";n.d(t,{Z:()=>b});var c=n(8899),r=n(5106),a=n(1020),i=n(5736),s=n(1074),o=n(1908),l=n(9201),p=n(5235),u=n.n(p),m=n(9196),d=n.n(m),g=n(1689),h=n(3703),y=n(8278),f=n(2667),k=n(8429);const __=i.__;function v(e){let{value:t,currency:n,isOld:a}=e;if(!t||!n)return null;const i=(0,c.LR)(t,n),s=u()(k.Z.price,{[k.Z["is-old"]]:a});return d().createElement(r.ZP,{className:s,variant:"headline-medium",component:"p"},d().createElement(r.ZP,{component:"sup",variant:"title-medium"},i.symbol),i.integer,d().createElement(r.ZP,{component:"sup",variant:"title-medium"},i.fraction))}const E=e=>{let{slug:t,onClick:n,trackButtonClick:c,className:p,supportingInfo:E}=e;const{detail:b,isFetching:j}=(0,h.i)(t),{title:_,longDescription:C,features:w,pricingForUi:Z,isBundle:N,supportedProducts:S,hasRequiredPlan:P}=b,{isFree:R,fullPricePerMonth:x,currencyCode:I,discountPricePerMonth:U,wpcomProductSlug:T}=Z,{isUserConnected:A}=(0,g.Z)(),F=!R&&!P,L=F&&T?(0,y.Z)(T,A):null,O=N?S.join("_plus_").split("_").map(((e,t)=>{if("plus"===e)return d().createElement(s.Z,{className:k.Z["plus-icon"],key:`icon-plugs${t}`,icon:o.Z,size:14});const n=(0,a.VS)(e);return d().createElement(n,{key:e,size:24})})):null,z=(0,m.useCallback)((()=>{c(),n&&n()}),[n,c]);function M(e){let{slug:t}=e;const n=(0,a.VS)(t);return n?d().createElement("div",{className:k.Z["product-icon"]},d().createElement(n,null)):()=>null}return d().createElement("div",{className:u()(k.Z.card,p,{[k.Z["is-bundle-card"]]:N})},N&&d().createElement("div",{className:k.Z["card-header"]},d().createElement(a.r7,{className:k.Z["product-bundle-icon"],size:16}),d().createElement(r.ZP,{variant:"label"},__("Popular upgrade","jetpack-my-jetpack"))),d().createElement("div",{className:k.Z.container},N&&d().createElement("div",{className:k.Z["product-bundle-icons"]},O),d().createElement(M,{slug:t}),d().createElement(r.H3,null,_),d().createElement(r.ZP,{mb:3},C),d().createElement("ul",{className:k.Z.features},w.map(((e,t)=>d().createElement(r.ZP,{component:"li",key:`feature-${t}`,variant:"body"},d().createElement(s.Z,{icon:l.Z,size:24}),e)))),F&&d().createElement(d().Fragment,null,d().createElement("div",{className:k.Z["price-container"]},d().createElement(v,{value:x,currency:I,isOld:!0}),d().createElement(v,{value:U,currency:I,isOld:!1})),d().createElement(r.ZP,{className:k.Z["price-description"]},__("/month, paid yearly","jetpack-my-jetpack"))),R&&d().createElement(r.H3,null,__("Free","jetpack-my-jetpack")),(!N||N&&!P)&&d().createElement(r.ZP,{component:f.Z,onClick:z,isLoading:j,isPrimary:!N,href:n?void 0:L,className:k.Z["checkout-button"],variant:"body"},
|
7 |
/* translators: placeholder is product name. */
|
8 |
+
(0,i.sprintf)(__("Add %s","jetpack-my-jetpack"),_)),N&&P&&d().createElement("div",{className:k.Z["product-has-required-plan"]},d().createElement(a.KM,{size:36}),d().createElement(r.ZP,null,__("Active on your site","jetpack-my-jetpack"))),E&&d().createElement(r.ZP,{className:k.Z["supporting-info"],variant:"body-extra-small"},E)))};E.defaultProps={trackButtonClick:()=>{}};const b=E},8093:(e,t,n)=>{"use strict";n.d(t,{B$:()=>S,Jw:()=>U,Q5:()=>R,WJ:()=>N,Yi:()=>P,q:()=>w,qA:()=>Z,uw:()=>I,y$:()=>x});var c=n(1163),r=n(8218),a=n(2939),i=n(9818),s=n(5736),o=n(9196),l=n.n(o),p=n(2199),u=n(1689),m=n(3345),d=n(3703),g=n(7493),h=n(8278),y=n(5626),f=n(968),k=n(5610),v=n(4763),E=n(2605),b=n(720),j=n(1287),_=n(1439);const __=s.__;function C(e){let{bundle:t,installsPlugin:n=!1,slug:s,supportingInfo:k,children:v=null}=e;const{activate:E,detail:b}=(0,d.i)(s),{isUpgradableByBundle:_}=b,{recordEvent:C}=(0,p.Z)();(0,o.useEffect)((()=>{C("jetpack_myjetpack_product_interstitial_view",{product:s})}),[C,s]);const w=(0,o.useCallback)((()=>{C("jetpack_myjetpack_product_interstitial_add_link_click",{product:s})}),[C,s]),Z=(0,o.useCallback)((()=>{C("jetpack_myjetpack_product_interstitial_add_link_click",{product:t})}),[C,t]),{isUserConnected:N}=(0,u.Z)(),S=(0,m.Z)("/"),P=(0,o.useCallback)((()=>{E().finally((()=>{const e=(0,i.select)(g.t).getProduct(s),t=e?.postActivationUrl,n=e?.hasRequiredPlan,c=e?.pricingForUi?.isFree,r=e?.pricingForUi?.wpcomProductSlug;if(!t)return!c&&!n&&r?void(window.location.href=(0,h.Z)(r,N)):S();window.location.href=t}))}),[S,E,N,s]),R=(0,o.useCallback)((()=>{s&&C("jetpack_myjetpack_product_interstitial_back_link_click",{product:s})}),[C,s]);return l().createElement(c.Z,{showHeader:!1,showBackground:!1},l().createElement(r.Z,{horizontalSpacing:3,horizontalGap:3},l().createElement(a.Z,null,l().createElement(y.Z,{onClick:R})),l().createElement(a.Z,null,l().createElement(r.Z,{className:_?null:j.Z.container,horizontalSpacing:0,horizontalGap:0,fluid:!0},l().createElement(a.Z,{sm:4,md:4,lg:7},l().createElement(f.Z,{slug:s,trackButtonClick:w,onClick:n?P:void 0,className:_?j.Z.container:null,supportingInfo:k})),l().createElement(a.Z,{sm:4,md:4,lg:5,className:j.Z.imageContainer},t?l().createElement(f.Z,{slug:"security",trackButtonClick:Z,className:_?j.Z.container:null}):v)))))}function w(){return l().createElement(C,{slug:"anti-spam",installsPlugin:!0,bundle:"security"})}function Z(){return l().createElement(C,{slug:"backup",installsPlugin:!0,bundle:"security"})}function N(){return l().createElement(C,{slug:"boost",installsPlugin:!0},l().createElement("img",{src:k,alt:"Boost"}))}function S(){return l().createElement(C,{slug:"crm",installsPlugin:!0},l().createElement("img",{src:v,alt:"CRM"}))}function P(){return l().createElement(C,{slug:"extras",installsPlugin:!0},l().createElement("img",{src:E,alt:"Extras"}))}function R(){return l().createElement(C,{slug:"scan",installsPlugin:!0,bundle:"security"})}function x(){return l().createElement(C,{slug:"social",installsPlugin:!0})}function I(){return l().createElement(C,{slug:"search",installsPlugin:!0,supportingInfo:__("Pricing will automatically adjust based on the number of records in your search index. If you grow into a new pricing tier, we'll let you know before your next billing cycle.","jetpack-my-jetpack")},l().createElement("img",{src:b,alt:"Search"}))}function U(){return l().createElement(C,{slug:"videopress",installsPlugin:!0},l().createElement("img",{src:_,alt:"VideoPress"}))}},8565:(e,t,n)=>{"use strict";n.d(t,{f6:()=>r,w6:()=>c});const c="my-jetpack-my-plans-manage",r="my-jetpack-my-plans-purchase"},2199:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var c=n(6975),r=n(9196),a=n(1689);const i=()=>{const{isUserConnected:e,connectedPlugins:t,userConnectionData:n={}}=(0,a.Z)(),{login:i,ID:s}=n.currentUser?.wpcomUser||{};(0,r.useEffect)((()=>{e&&s&&i&&c.Z.initialize(s,i)}),[s,e,i]);const o=Object.keys(t||{}).sort().join(",").replaceAll("jetpack-",""),{clearedIdentity:l,ga:p,mc:u,pageView:m,purchase:d,setGoogleAnalyticsEnabled:g,setMcAnalyticsEnabled:h,setProperties:y,tracks:f}=c.Z;return{clearedIdentity:l,ga:p,mc:u,pageView:m,purchase:d,recordEvent:(0,r.useCallback)(((e,t)=>{f.recordEvent(e,{...t,version:window?.myJetpackInitialState?.myJetpackVersion,referring_plugins:o})}),[]),setGoogleAnalyticsEnabled:g,setMcAnalyticsEnabled:h,setProperties:y,tracks:f}}},5371:(e,t,n)=>{"use strict";n.d(t,{Z:()=>l});var c=n(9818),r=n(5736),a=n(9196),i=n(7493),s=n(1689),o=n(3345);const __=r.__;function l(){const e=(0,o.Z)("/connection"),{setGlobalNotice:t}=(0,c.useDispatch)(i.t),n=(0,c.useSelect)((e=>e(i.t).getProductsThatRequiresUserConnection())),{isSiteConnected:l,redirectUrl:p,hasConnectedOwner:u}=(0,s.Z)(),m=!u&&n.length>0,d=(0,r.sprintf)(
|
9 |
/* translators: placeholder is product name. */
|
10 |
+
__("Jetpack %s needs a user connection to WordPress.com to be able to work.","jetpack-my-jetpack"),n[0]),g=n.length>1?__("Some products need a user connection to WordPress.com to be able to work.","jetpack-my-jetpack"):d;(0,a.useEffect)((()=>{!l&&p&&(window.location=p)}),[l,p]),(0,a.useEffect)((()=>{m&&t(g,{status:"error",actions:[{label:__("Connect your user account to fix this","jetpack-my-jetpack"),onClick:e,variant:"link",noDefaultClasses:!0}]})}),[g,m,e,t])}},1689:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});var c=n(1294);function r(){const{apiRoot:e,apiNonce:t}=myJetpackRest,{topJetpackMenuItemUrl:n}=myJetpackInitialState,r=(0,c.Z)({apiRoot:e,apiNonce:t}),a=r.isRegistered;return{apiNonce:t,apiRoot:e,...r,isSiteConnected:a,redirectUrl:n}}},3345:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var c=n(9196),r=n(5439);function a(e){const t=(0,r.s0)();return(0,c.useCallback)((()=>t(e)),[t,e])}},5031:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var c=n(9818),r=n(7493);function a(){const e=(0,c.useDispatch)(),{message:t,options:n}=(0,c.useSelect)((e=>e(r.t).getGlobalNotice()));return{message:t,options:n||{},clean:()=>e(r.t).cleanGlobalNotice()}}},3703:(e,t,n)=>{"use strict";n.d(t,{i:()=>a});var c=n(9818),r=n(7493);function a(e){const{activateProduct:t,deactivateProduct:n}=(0,c.useDispatch)(r.t),a=(0,c.useSelect)((t=>t(r.t).getProduct(e)));return{activate:()=>t(e),deactivate:()=>n(e),productsList:(0,c.useSelect)((e=>e(r.t).getProducts())),detail:a,isActive:"active"===a.status,isFetching:(0,c.useSelect)((t=>t(r.t).isFetching(e))),status:a.status}}},1750:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var c=n(9818),r=n(7493);function a(){return(0,c.useSelect)((e=>e(r.t).getPurchases()))}},9274:(e,t,n)=>{"use strict";n.d(t,{RT:()=>o,ZP:()=>j,d1:()=>h,dE:()=>d,dI:()=>m,dq:()=>g,fE:()=>y,ny:()=>l,vv:()=>u,z8:()=>p});var c=n(428),r=n(6989),a=n.n(r),i=n(5736),s=n(2086);const __=i.__,o="SET_PURCHASES_IS_FETCHING",l="FETCH_PURCHASES",p="SET_PURCHASES",u="SET_IS_FETCHING_PRODUCT",m="SET_PRODUCT",d="SET_PRODUCT_REQUEST_ERROR",g="SET_PRODUCT_STATUS",h="SET_GLOBAL_NOTICE",y="CLEAN_GLOBAL_NOTICE",f=e=>({type:m,product:e}),k=(e,t)=>({type:d,productId:e,error:t}),v=(e,t)=>({type:"SET_GLOBAL_NOTICE",message:e,options:t});function E(e,t){return{type:u,productId:e,isFetching:t}}const b={setProduct:f,activateProduct:e=>async t=>await function(e,t,n){let{select:r,dispatch:o,registry:l}=n;return new Promise(((n,p)=>{if(!r.isValidProduct(e)){const t=__("Invalid product name","jetpack-my-jetpack"),n=new Error(t);return o(k(e,n)),o(v(t,{status:"error",isDismissible:!0})),void p(n)}const u=t.activate?"POST":"DELETE";return o(E(e,!0)),a()({path:`${s.Jk}/${e}`,method:u}).then((t=>{o(E(e,!1)),o(f(t)),l.dispatch(c.t).refreshConnectedPlugins(),n(t?.status)})).catch((t=>{const{name:n}=r.getProduct(e),c=(0,i.sprintf)(// translators: %$1s: Jetpack Product name
|
11 |
+
__("Failed to activate %1$s. Please try again","jetpack-my-jetpack"),n);o(E(e,!1)),o(k(e,t)),o(v(c,{status:"error",isDismissible:!0})),p(t)}))}))}(e,{activate:!0},t),setIsFetchingProduct:E,setRequestProductError:k,setProductStatus:(e,t)=>({type:g,productId:e,status:t})},j={setPurchasesIsFetching:e=>({type:o,isFetching:e}),fetchPurchases:()=>({type:l}),setPurchases:e=>({type:p,purchases:e}),...{setGlobalNotice:v,cleanGlobalNotice:()=>({type:"CLEAN_GLOBAL_NOTICE"})},...b}},2086:(e,t,n)=>{"use strict";n.d(t,{Jk:()=>r,LQ:()=>c,iB:()=>a});const c="my-jetpack/v1/site/purchases",r="my-jetpack/v1/site/products",a=["scan"]},9462:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var c=n(6989),r=n.n(c),a=n(9274),i=n(2086);const s={[a.ny]:function(){return new Promise(((e,t)=>{r()({path:i.LQ}).then(e).catch(t)}))}}},925:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var c=n(9818),r=n(9274);const a=(0,c.combineReducers)({products:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case r.vv:{const{productId:n,isFetching:c}=t;return{...e,isFetching:{...e.isFetching,[n]:c},errors:{...e.errors,[n]:c?void 0:e.errors[n]}}}case r.dq:{const{productId:n,status:c}=t;return{...e,items:{...e.items,[n]:{...e.items[n],status:c}}}}case r.dI:{const{product:n}=t,{slug:c}=n;return{...e,items:{...e.items,[c]:n}}}case r.dE:{const{productId:n,error:c}=t;return{...e,errors:{...e.errors,[n]:c}}}default:return e}},purchases:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case r.RT:return{...e,isFetching:t.isFetching};case r.z8:return{...e,items:t?.purchases||[]};default:return e}},notices:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{global:{}},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case r.d1:{const{message:n,options:c}=t;return{...e,global:{message:n,options:c}}}case r.fE:return{...e,global:{}};default:return e}}})},9844:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var c=n(6989),r=n.n(c),a=n(5736),i=n(2086);const __=a.__,s={...{getProduct:{isFulfilled:(e,t)=>(e?.products?.items||{}).hasOwnProperty(t)&&!i.iB.includes(t),fulfill:e=>async t=>{let{dispatch:n}=t;try{n.setIsFetchingProduct(e,!0);const t=await r()({path:`${i.Jk}/${e}`});return n.setProduct(t),n.setIsFetchingProduct(e,!1),Promise.resolve()}catch(t){if(n.setIsFetchingProduct(e,!1),t?.code&&t?.message)return n.setRequestProductError(e,t),Promise.reject(t);throw new Error(t)}}},getPurchases:()=>async e=>{let{dispatch:t}=e;t.setPurchasesIsFetching(!0);try{t.setPurchases(await r()({path:i.LQ})),t.setPurchasesIsFetching(!1)}catch(e){t.setPurchasesIsFetching(!1),t.setGlobalNotice(__("There was an error fetching your purchases information. Check your site connectivity and try again.","jetpack-my-jetpack"),{status:"error"})}}}}},6896:(e,t,n)=>{"use strict";n.d(t,{ZP:()=>s});var c=n(2728),r=n(6782);const a=e=>e.products?.items||{},i=e=>Object.keys(a(e)),s={...{getProducts:a,getProductNames:i,getProduct:(e,t)=>{const n=a(e)?.[t]||{},c=(0,r.N)(n,!0);return c.pricingForUi=(0,r.N)(c.pricingForUi||{},!0),c.features=c.features||[],c.supportedProducts=c.supportedProducts||[],c.pricingForUi.fullPricePerMonth=Math.ceil(c.pricingForUi.fullPrice/12*100)/100,c.pricingForUi.discountPricePerMonth=Math.ceil(c.pricingForUi.discountPrice/12*100)/100,c},isValidProduct:(e,t)=>i(e).includes(t),isFetching:(e,t)=>e.products?.isFetching?.[t]||!1,getProductsThatRequiresUserConnection:e=>{const t=a(e);return Object.keys(t).reduce(((e,n)=>{const r=t[n];return r?.requires_user_connection&&(r?.status===c.N.ACTIVE||r?.status===c.N.ERROR)&&e.push(r?.name),e}),[])}},getPurchases:e=>e.purchases?.items||[],isRequestingPurchases:e=>e.isRequestingPurchases||!1,getGlobalNotice:e=>e.notices?.global}},1214:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var c=n(8294),r=n.n(c),a=n(9818);class i{static mayBeInit(e,t){null===i.store&&(i.store=(0,a.createReduxStore)(e,t),(0,a.register)(i.store))}}r()(i,"store",null);const s=i},7493:(e,t,n)=>{"use strict";n.d(t,{N:()=>p,t:()=>l});var c=n(9274),r=n(9462),a=n(925),i=n(9844),s=n(6896),o=n(1214);const l="my-jetpack";function p(){o.Z.mayBeInit(l,{__experimentalUseThunks:!0,reducer:a.Z,actions:c.ZP,selectors:s.ZP,resolvers:i.Z,controls:r.Z,initialState:window.myJetpackInitialState||{}})}},8295:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var c=n(6324),r=n(8565);function a(){const e=window?.myJetpackInitialState?.siteSuffix;return(0,c.Z)(r.w6,{site:e})}},8278:(e,t,n)=>{"use strict";function c(e,t){const{siteSuffix:n,redirectUrl:c}=window?.myJetpackInitialState||{},r=new URL("https://wordpress.com/checkout/"),a=new URL(`${r}${n}/${e}`);return a.searchParams.set("redirect_to",c),t||a.searchParams.set("unlinked",1),a.searchParams.set("site",n),a.toString()}n.d(t,{Z:()=>c})},7258:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var c=n(6324),r=n(8565);function a(){const e=window?.myJetpackInitialState?.siteSuffix;return(0,c.Z)(r.f6,{site:e})}},6782:(e,t,n)=>{"use strict";function c(e){return e.replace(/([-_][a-z])/gi,(e=>e.toUpperCase().replace("_","")))}function r(e){return-1!==e.indexOf("_")}function a(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const n=Object.assign({},e);for(const e in n)n.hasOwnProperty(e)&&r(e)&&(n[c(e)]=n[e],t&&delete n[e]);return n}n.d(t,{N:()=>a})},2042:(e,t,n)=>{"use strict";e.exports=n.p+"images/disconnect-confirm-dc9fe8f5c68cfd1320e0.jpg"},724:(e,t,n)=>{"use strict";e.exports=n.p+"images/disconnect-thanks-5873bfac56a9bd7322cd.jpg"},8702:(e,t,n)=>{"use strict";e.exports=n.p+"images/jetpack-license-activation-with-lock-7b01c1a4cf56de799cd7.png"},1160:(e,t,n)=>{"use strict";e.exports=n.p+"images/jetpack-license-activation-with-success-cad524ede4e793cc0ece.png"},5242:(e,t,n)=>{"use strict";e.exports=n.p+"images/apple-92dacafad84e79708a74.svg"},6790:(e,t,n)=>{"use strict";e.exports=n.p+"images/connect-f27775ac15cf885713c2.png"},184:(e,t,n)=>{"use strict";e.exports=n.p+"images/google-dec2a429bf1d8e83f9ad.svg"},4997:(e,t,n)=>{"use strict";e.exports=n.p+"images/wordpress-e099b30cc40508916516.png"},5610:(e,t,n)=>{"use strict";e.exports=n.p+"images/boost-a54137485af36fdffe9c.png"},4763:(e,t,n)=>{"use strict";e.exports=n.p+"images/crm-7e7684ae2c40327d8fed.png"},2605:(e,t,n)=>{"use strict";e.exports=n.p+"images/extras-26daf36507504c96d066.png"},720:(e,t,n)=>{"use strict";e.exports=n.p+"images/search-f9756bd9c926d905fe70.png"},1439:(e,t,n)=>{"use strict";e.exports=n.p+"images/videopress-9591093a9a238cc48a35.png"},4462:e=>{"use strict";if(void 0==={consumer_slug:"my_jetpack"}){var t=new Error('Cannot find module \'{"consumer_slug":"my_jetpack"}\'');throw t.code="MODULE_NOT_FOUND",t}e.exports={consumer_slug:"my_jetpack"}},9196:e=>{"use strict";e.exports=window.React},1850:e=>{"use strict";e.exports=window.ReactDOM},6989:e=>{"use strict";e.exports=window.wp.apiFetch},5609:e=>{"use strict";e.exports=window.wp.components},9818:e=>{"use strict";e.exports=window.wp.data},9307:e=>{"use strict";e.exports=window.wp.element},5736:e=>{"use strict";e.exports=window.wp.i18n},444:e=>{"use strict";e.exports=window.wp.primitives},6483:e=>{"use strict";e.exports=window.wp.url},255:(e,t,n)=>{"use strict";function c(){return c=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var c in n)Object.prototype.hasOwnProperty.call(n,c)&&(e[c]=n[c])}return e},c.apply(this,arguments)}n.d(t,{Z:()=>c})}},t={};function n(c){var r=t[c];if(void 0!==r)return r.exports;var a=t[c]={exports:{}};return e[c](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 c in t)n.o(t,c)&&!n.o(e,c)&&Object.defineProperty(e,c,{enumerable:!0,get:t[c]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{var e;n.g.importScripts&&(e=n.g.location+"");var t=n.g.document;if(!e&&t&&(t.currentScript&&(e=t.currentScript.src),!e)){var c=t.getElementsByTagName("script");c.length&&(e=c[c.length-1].src)}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),n.p=e})(),(()=>{"use strict";var e=n(6016),t=n(9196),c=n.n(t),r=n(1850),a=n.n(r),i=n(554),s=n(5439),o=n(1899),l=n(17),p=n(8966),u=n(8093),m=n(7493);n(5878);(0,m.N)();const d=()=>c().createElement(e.ZP,null,c().createElement(i.UT,null,c().createElement(s.Z5,null,c().createElement(s.AW,{path:"/",element:c().createElement(p.Z,null)}),c().createElement(s.AW,{path:"/connection",element:c().createElement(l.Z,null)}),c().createElement(s.AW,{path:"/add-anti-spam",element:c().createElement(u.q,null)}),c().createElement(s.AW,{path:"/add-backup",element:c().createElement(u.qA,null)}),c().createElement(s.AW,{path:"/add-boost",element:c().createElement(u.WJ,null)}),c().createElement(s.AW,{path:"/add-crm",element:c().createElement(u.B$,null)}),c().createElement(s.AW,{path:"/add-extras",element:c().createElement(u.Yi,null)}),c().createElement(s.AW,{path:"/add-scan",element:c().createElement(u.Q5,null)}),c().createElement(s.AW,{path:"/add-social",element:c().createElement(u.y$,null)}),c().createElement(s.AW,{path:"/add-search",element:c().createElement(u.uw,null)}),c().createElement(s.AW,{path:"/add-videopress",element:c().createElement(u.Jw,null)}),window?.myJetpackInitialState?.loadAddLicenseScreen&&c().createElement(s.AW,{path:"/add-license",element:c().createElement(o.Z,null)}))));!function(){const e=document.getElementById("my-jetpack-container");null!==e&&a().render(c().createElement(d,null),e)}()})()})();
|
jetpack_vendor/automattic/jetpack-my-jetpack/build/index.js.LICENSE.txt
CHANGED
@@ -6,12 +6,6 @@
|
|
6 |
* @see https://github.com/kvz/phpjs/blob/ffe1356af23a6f2512c84c954dd4e828e92579fa/functions/strings/number_format.js
|
7 |
*/
|
8 |
|
9 |
-
/*
|
10 |
-
object-assign
|
11 |
-
(c) Sindre Sorhus
|
12 |
-
@license MIT
|
13 |
-
*/
|
14 |
-
|
15 |
/*!
|
16 |
Copyright (c) 2018 Jed Watson.
|
17 |
Licensed under the MIT License (MIT), see
|
@@ -39,12 +33,3 @@ object-assign
|
|
39 |
*
|
40 |
* @license MIT
|
41 |
*/
|
42 |
-
|
43 |
-
/** @license React vundefined
|
44 |
-
* use-subscription.production.min.js
|
45 |
-
*
|
46 |
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
47 |
-
*
|
48 |
-
* This source code is licensed under the MIT license found in the
|
49 |
-
* LICENSE file in the root directory of this source tree.
|
50 |
-
*/
|
6 |
* @see https://github.com/kvz/phpjs/blob/ffe1356af23a6f2512c84c954dd4e828e92579fa/functions/strings/number_format.js
|
7 |
*/
|
8 |
|
|
|
|
|
|
|
|
|
|
|
|
|
9 |
/*!
|
10 |
Copyright (c) 2018 Jed Watson.
|
11 |
Licensed under the MIT License (MIT), see
|
33 |
*
|
34 |
* @license MIT
|
35 |
*/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
jetpack_vendor/automattic/jetpack-my-jetpack/build/index.rtl.css
CHANGED
@@ -1 +1 @@
|
|
1 |
-
#my-jetpack-container{--wp-admin-theme-color:var(--jp-black);--wp-admin-theme-color-darker-10:var(--jp-black-80);--wp-admin-theme-color-darker-20:var(--jp-black-80);height:100%}#my-jetpack-container .jetpack-logo{height:40px}#my-jetpack-container .jp-dashboard-footer__jetpack-symbol{height:16px}#wpbody-content>.notice{display:none}.pIsYsXFAJ9KX2VrS5rmY{--actions-size:28px;--status-size:8px;background:var(--jp-white);border-radius:var(--jp-border-radius);box-shadow:0 0 40px rgba(0,0,0,.08);box-shadow:0 0 0 1px var(--jp-gray-10) inset;display:flex;flex-direction:column;height:100%;padding:calc(var(--spacing-base)*3)}.pIsYsXFAJ9KX2VrS5rmY.YXHdD0VsFjiTsVRLrrx9{background:none;background-color:var(--jp-white-off);color:var(--jp-black-80);text-decoration:none}.pIsYsXFAJ9KX2VrS5rmY.YXHdD0VsFjiTsVRLrrx9:hover{background-color:var(--jp-white)}.pIsYsXFAJ9KX2VrS5rmY.YXHdD0VsFjiTsVRLrrx9:hover .ehgY0qp6bl53RaxP5rFF{text-decoration-thickness:var(--jp-underline-thickness)}.pIsYsXFAJ9KX2VrS5rmY.YXHdD0VsFjiTsVRLrrx9:focus{background-color:var(--jp-white);box-shadow:0 0 0 1.5px var(--jp-black);outline:3px solid transparent}.pIsYsXFAJ9KX2VrS5rmY.Pp9cMIaESLYelLOX3tkI{box-shadow:0 0 0 1.5px var(--jp-red-60)}.w56ueQLYexqzTybA7015{align-items:center;display:flex;justify-content:space-between;margin-bottom:var(--spacing-base);width:100%}.gmPKCDKZcfQt9WieTyKS{flex-grow:1}.ZKHHfl5DhA9kUnaL0qQZ{border-radius:var(--jp-border-radius);font-size:var(--font-body-extra-small);height:var(--actions-size);line-height:var(--actions-size)}.fDBaV7I4yUO6w5AWVEtr{align-items:center;display:flex;flex-wrap:wrap;justify-content:space-between;margin-top:calc(var(--spacing-base)*2);min-height:var(--actions-size);width:100%}.ehgY0qp6bl53RaxP5rFF{text-decoration:underline}.f5VJYwuJmjxH8PVxEbbv{align-items:center;display:flex;height:var(--actions-size);margin-right:var(--spacing-base);white-space:nowrap}.f5VJYwuJmjxH8PVxEbbv:before{border-radius:50%;content:"";display:inline-block;height:var(--status-size);margin-left:var(--spacing-base);width:var(--status-size)}.f5VJYwuJmjxH8PVxEbbv.ry3pxoGtmQ0ZeSwp7F_3{color:var(--jp-green-50)}.f5VJYwuJmjxH8PVxEbbv.ry3pxoGtmQ0ZeSwp7F_3:before{background:var(--jp-green-50)}.f5VJYwuJmjxH8PVxEbbv.LZzE3EG7m3CDR46wwwEr{color:var(--jp-gray-50)}.f5VJYwuJmjxH8PVxEbbv.LZzE3EG7m3CDR46wwwEr:before{background:var(--jp-gray-50)}.f5VJYwuJmjxH8PVxEbbv.Vx_jpT02r8W6NfsRSB02{color:var(--jp-red-60)}.f5VJYwuJmjxH8PVxEbbv.Vx_jpT02r8W6NfsRSB02:before{background:var(--jp-red-60)}.f5VJYwuJmjxH8PVxEbbv.PdsJCfyyjSgrNDheF2qi:before{animation:dWP7ypkVXudMbAa38W5Z .5s linear infinite}@keyframes dWP7ypkVXudMbAa38W5Z{0%{opacity:0}50%{opacity:.5}to{opacity:0}}h1,h2,h3,h4,h5,h6,p{margin:0;padding:0}.UujoBFTnQNY2cWU2SIsH{font-size:var(--font-headline-medium);font-weight:700;line-height:52px}.TeGO5V_thHw5lDAm1_2M{font-weight:700}.TeGO5V_thHw5lDAm1_2M,.WolQzb2MsSgiNmLtc7_j{font-size:var(--font-headline-small);line-height:40px}.WolQzb2MsSgiNmLtc7_j{font-weight:400}.hUB0JT8p1T2Hw28N6qC8{font-size:var(--font-title-medium);font-weight:500;line-height:32px}.zY2No8Ga4b8shbOQGhnv{font-size:var(--font-title-small);font-weight:500;line-height:30px}.tIj0D1t8Cc892ikmgFPZ{font-size:var(--font-body);font-weight:400;line-height:24px}.KdcN0BnOaVeVhyLRKqhS{font-size:var(--font-body-small);font-weight:400;line-height:24px}.dso3Rh3tl3Xv1GumBktz{font-size:var(--font-body-extra-small);font-weight:400;line-height:20px}.PItlW5vRExLnTj4a8eLE{font-size:var(--font-body-extra-small);font-weight:600;line-height:16px}.TwRpPlktzxhmFVeua7P5{margin:calc(var( --spacing-base )*0)}.zVfqx7gyb3o9mxfGynn1{margin-left:calc(var( --spacing-base )*0);margin-right:calc(var( --spacing-base )*0)}.iSHVzNiB9iVleGljaQxy{margin-bottom:calc(var( --spacing-base )*0)}.iSHVzNiB9iVleGljaQxy,.xqDIp6cNVr_E6RXaiPyD{margin-top:calc(var( --spacing-base )*0)}.S8EwaXk1kyPizt6x4WH2{margin-left:calc(var( --spacing-base )*0)}.ODX5Vr1TARoLFkDDFooD{margin-bottom:calc(var( --spacing-base )*0)}.cphJ8dCpfimnky7P2FHg{margin-right:calc(var( --spacing-base )*0)}.PFgIhNxIyiSuNvQjAIYj{margin:calc(var( --spacing-base )*1)}.M2jKmUzDxvJjjVEPU3zn{margin-left:calc(var( --spacing-base )*1);margin-right:calc(var( --spacing-base )*1)}.io15gAh8tMTNbSEfwJKk{margin-bottom:calc(var( --spacing-base )*1)}.io15gAh8tMTNbSEfwJKk,.rcTN5uw9xIEeMEGL3Xi_{margin-top:calc(var( --spacing-base )*1)}.CQSkybjq2TcRM1Xo9COV{margin-left:calc(var( --spacing-base )*1)}.hfqOWgq6_MEGdFE82eOY{margin-bottom:calc(var( --spacing-base )*1)}.I8MxZQYTbuu595yfesWA{margin-right:calc(var( --spacing-base )*1)}.kQkc6rmdpvLKPkyoJtVQ{margin:calc(var( --spacing-base )*2)}.j6vFPxWuu4Jan2ldoxpp{margin-left:calc(var( --spacing-base )*2);margin-right:calc(var( --spacing-base )*2)}.hqr39dC4H_AbactPAkCG{margin-bottom:calc(var( --spacing-base )*2)}.c3dQnMi16C6J6Ecy4283,.hqr39dC4H_AbactPAkCG{margin-top:calc(var( --spacing-base )*2)}.YNZmHOuRo6hU7zzKfPdP{margin-left:calc(var( --spacing-base )*2)}.Db8lbak1_wunpPk8NwKU{margin-bottom:calc(var( --spacing-base )*2)}.ftsYE5J9hLzquQ0tA5dY{margin-right:calc(var( --spacing-base )*2)}.Det4MHzLUW7EeDnafPzq{margin:calc(var( --spacing-base )*3)}.h_8EEAztC29Vve1datb5{margin-left:calc(var( --spacing-base )*3);margin-right:calc(var( --spacing-base )*3)}.YXIXJ0h1k47u6hzK8KcM{margin-bottom:calc(var( --spacing-base )*3)}.YXIXJ0h1k47u6hzK8KcM,.soADBBkcIKCBXzCTuV9_{margin-top:calc(var( --spacing-base )*3)}.zSX59ziEaEWGjnpZa4uV{margin-left:calc(var( --spacing-base )*3)}.yrVTnq_WBMbejg89c2ZQ{margin-bottom:calc(var( --spacing-base )*3)}.UKtHPJnI2cXBWtPDm5hM{margin-right:calc(var( --spacing-base )*3)}.guexok_Tqd5Tf52hRlbT{margin:calc(var( --spacing-base )*4)}.oS1E2KfTBZkJ3F0tN7T6{margin-left:calc(var( --spacing-base )*4);margin-right:calc(var( --spacing-base )*4)}.DN1OhhXi6AoBgEdDSbGd{margin-bottom:calc(var( --spacing-base )*4)}.DN1OhhXi6AoBgEdDSbGd,.ot2kkMcYHv53hLZ4LSn0{margin-top:calc(var( --spacing-base )*4)}.A1krOZZhlQ6Sp8Cy4bly{margin-left:calc(var( --spacing-base )*4)}.pkDbXXXL32237M0hokEh{margin-bottom:calc(var( --spacing-base )*4)}.XXv4kDTGvEnQeuGKOPU3{margin-right:calc(var( --spacing-base )*4)}.yGqHk1a57gaISwkXwXe6{margin:calc(var( --spacing-base )*5)}.X8cghM358X3DkXLc9aNK{margin-left:calc(var( --spacing-base )*5);margin-right:calc(var( --spacing-base )*5)}.GdfSmGwHlFnN2S6xBn1f{margin-bottom:calc(var( --spacing-base )*5)}.GdfSmGwHlFnN2S6xBn1f,.yqeuzwyGQ7zG0avrGqi_{margin-top:calc(var( --spacing-base )*5)}.g9emeCkuHvYhveiJbfXO{margin-left:calc(var( --spacing-base )*5)}.Lvk3dqcyHbZ07QCRlrUQ{margin-bottom:calc(var( --spacing-base )*5)}.r3yQECDQ9qX0XZzXlVAg{margin-right:calc(var( --spacing-base )*5)}.aQhlPwht2Cz1X_63Miw0{margin:calc(var( --spacing-base )*6)}.JyHb0vK3wJgpblL9s5j8{margin-left:calc(var( --spacing-base )*6);margin-right:calc(var( --spacing-base )*6)}.cY2gULL1lAv6WPNIRuf3{margin-bottom:calc(var( --spacing-base )*6)}.NBWQ9Lwhh_fnry3lg_p7,.cY2gULL1lAv6WPNIRuf3{margin-top:calc(var( --spacing-base )*6)}.yIOniNe5E40C8fWvBm5V{margin-left:calc(var( --spacing-base )*6)}.t30usboNSyqfQWIwHvT3{margin-bottom:calc(var( --spacing-base )*6)}.Nm_TyFkYCMhOoghoToKJ{margin-right:calc(var( --spacing-base )*6)}.C4qJKoBXpgKtpmrqtEKB{margin:calc(var( --spacing-base )*7)}.S93Srbu6NQ_PBr7DmTiD{margin-left:calc(var( --spacing-base )*7);margin-right:calc(var( --spacing-base )*7)}.fJj8k6gGJDks3crUZxOS{margin-bottom:calc(var( --spacing-base )*7)}.cW6D6djs7Ppm7fD7TeoV,.fJj8k6gGJDks3crUZxOS{margin-top:calc(var( --spacing-base )*7)}.DuCnqNfcxcP3Z__Yo5Ro{margin-left:calc(var( --spacing-base )*7)}.im8407m2fw5vOg7O2zsw{margin-bottom:calc(var( --spacing-base )*7)}.G0fbeBgvz2sh3uTP9gNl{margin-right:calc(var( --spacing-base )*7)}.kvW3sBCxRxUqz1jrVMJl{margin:calc(var( --spacing-base )*8)}.tOjEqjLONQdkiYx_XRnw{margin-left:calc(var( --spacing-base )*8);margin-right:calc(var( --spacing-base )*8)}.op5hFSx318zgxsoZZNLN{margin-bottom:calc(var( --spacing-base )*8)}.c9WfNHP6TFKWIfLxv52J,.op5hFSx318zgxsoZZNLN{margin-top:calc(var( --spacing-base )*8)}.sBA75QqcqRwwYSHJh2wc{margin-left:calc(var( --spacing-base )*8)}.GpL6idrXmSOM6jB8Ohsf{margin-bottom:calc(var( --spacing-base )*8)}.HbtWJoQwpgGycz8dGzeT{margin-right:calc(var( --spacing-base )*8)}.uxX3khU88VQ_Ah49Ejsa{padding:calc(var( --spacing-base )*0)}.KX0FhpBKwKzs9fOUdbNz{padding-left:calc(var( --spacing-base )*0);padding-right:calc(var( --spacing-base )*0)}.PfK8vKDyN32dnimlzYjz{padding-bottom:calc(var( --spacing-base )*0)}.PfK8vKDyN32dnimlzYjz,.emxLHRjQuJsImnPbQIzE{padding-top:calc(var( --spacing-base )*0)}.kJ8WzlpTVgdViXt8ukP9{padding-left:calc(var( --spacing-base )*0)}.tg_UIUI11VBzrTAn2AzJ{padding-bottom:calc(var( --spacing-base )*0)}.uczvl8kaz84oPQJ2DB2R{padding-right:calc(var( --spacing-base )*0)}.o7UHPcdVK3lt7q3lqV4o{padding:calc(var( --spacing-base )*1)}.IDqEOxvDoYrFYxELPmtX{padding-left:calc(var( --spacing-base )*1);padding-right:calc(var( --spacing-base )*1)}.DdywPW2qSYlu2pt8tpO2{padding-bottom:calc(var( --spacing-base )*1)}.DdywPW2qSYlu2pt8tpO2,.npy3hw4A5QSkDicb2CJJ{padding-top:calc(var( --spacing-base )*1)}.LgbptTApNY5NwLQvEFAt{padding-left:calc(var( --spacing-base )*1)}.WZQy2SZuZso59bUsXXyl{padding-bottom:calc(var( --spacing-base )*1)}.o331apInxNunbYB3SfPE{padding-right:calc(var( --spacing-base )*1)}.fMPIyD9Vqki1Lrc_yJnG{padding:calc(var( --spacing-base )*2)}.i2pMcTcdrr10IQoiSm_L{padding-left:calc(var( --spacing-base )*2);padding-right:calc(var( --spacing-base )*2)}.eA702gn32kwptiI1obXH{padding-bottom:calc(var( --spacing-base )*2)}.eA702gn32kwptiI1obXH,.o9bGieUKcYc8o0Ij9oZX{padding-top:calc(var( --spacing-base )*2)}.SwZcFez1RDqWsOFjB5iG{padding-left:calc(var( --spacing-base )*2)}.eHpLc_idmuEqeqCTvqkN{padding-bottom:calc(var( --spacing-base )*2)}.vU39i2B4P1fUTMB2l6Vo{padding-right:calc(var( --spacing-base )*2)}.JHWNzBnE29awhdu5BEh1{padding:calc(var( --spacing-base )*3)}.X72lGbb56L3KFzC2xQ9N{padding-left:calc(var( --spacing-base )*3);padding-right:calc(var( --spacing-base )*3)}.BzfNhRG8wXdCEB5ocQ6e{padding-bottom:calc(var( --spacing-base )*3)}.BzfNhRG8wXdCEB5ocQ6e,.srV0KSDC83a2fiimSMMQ{padding-top:calc(var( --spacing-base )*3)}.lUWfkmbQjCskhcNwkyCm{padding-left:calc(var( --spacing-base )*3)}.Ts0dIlc3aTSL7V4cIHis{padding-bottom:calc(var( --spacing-base )*3)}.CzlqQXXhX6MvorArFZ8B{padding-right:calc(var( --spacing-base )*3)}.TqMPkQtR_DdZuKb5vBoV{padding:calc(var( --spacing-base )*4)}.a7UrjhI69Vetlcj9ZVzz{padding-left:calc(var( --spacing-base )*4);padding-right:calc(var( --spacing-base )*4)}.StEhBzGs2Gi5dDEkjhAv{padding-bottom:calc(var( --spacing-base )*4)}.FGneZfZyvYrt1dG0zcnm,.StEhBzGs2Gi5dDEkjhAv{padding-top:calc(var( --spacing-base )*4)}.APEH216rpdlJWgD2fHc8{padding-left:calc(var( --spacing-base )*4)}.oGwXC3ohCic9XnAj6x69{padding-bottom:calc(var( --spacing-base )*4)}.U6gnT9y42ViPNOcNzBwb{padding-right:calc(var( --spacing-base )*4)}.IpdRLBwnHqbqFrixgbYC{padding:calc(var( --spacing-base )*5)}.HgNeXvkBa9o3bQ5fvFZm{padding-left:calc(var( --spacing-base )*5);padding-right:calc(var( --spacing-base )*5)}.tJtFZM3XfPG9v9TSDfN1{padding-bottom:calc(var( --spacing-base )*5)}.PdifHW45QeXYfK568uD8,.tJtFZM3XfPG9v9TSDfN1{padding-top:calc(var( --spacing-base )*5)}.mbLkWTTZ0Za_BBbFZ5b2{padding-left:calc(var( --spacing-base )*5)}.vVWpZpLlWrkTt0hMk8XU{padding-bottom:calc(var( --spacing-base )*5)}.RxfaJj5a1Nt6IavEo5Zl{padding-right:calc(var( --spacing-base )*5)}.SppJULDGdnOGcjZNCYBy{padding:calc(var( --spacing-base )*6)}.palY2nLwdoyooPUm9Hhk{padding-left:calc(var( --spacing-base )*6);padding-right:calc(var( --spacing-base )*6)}.WYw1JvZC0ppLdvSAPhr_{padding-bottom:calc(var( --spacing-base )*6)}.WYw1JvZC0ppLdvSAPhr_,.YEEJ9b90ueQaPfiU8aeN{padding-top:calc(var( --spacing-base )*6)}.QE0ssnsKvWJMqlhPbY5u{padding-left:calc(var( --spacing-base )*6)}.n8yA3jHlMRyLd5UIfoND{padding-bottom:calc(var( --spacing-base )*6)}.tXHmxYnHzbwtfxEaG51n{padding-right:calc(var( --spacing-base )*6)}.kBTsPKkO_3g_tLkj77Um{padding:calc(var( --spacing-base )*7)}.RyhrFx6Y1FGDrGAAyaxm{padding-left:calc(var( --spacing-base )*7);padding-right:calc(var( --spacing-base )*7)}.CBwRpB0bDN3iEdQPPMJO{padding-bottom:calc(var( --spacing-base )*7)}.CBwRpB0bDN3iEdQPPMJO,.vQVSq6SvWKbOMu6r4H6b{padding-top:calc(var( --spacing-base )*7)}.oBy5__aEADMsH46mrgFX{padding-left:calc(var( --spacing-base )*7)}.KVEXoJqf1s92j0JMdNmN{padding-bottom:calc(var( --spacing-base )*7)}.ZMXGNrNaKW3k_3TLz0Fq{padding-right:calc(var( --spacing-base )*7)}.tuiR9PhkHXhGyEgzRZRI{padding:calc(var( --spacing-base )*8)}.U7454qyWkQNa2iaSJziu{padding-left:calc(var( --spacing-base )*8);padding-right:calc(var( --spacing-base )*8)}.VLYIv2GVocjuN93e8HC8{padding-bottom:calc(var( --spacing-base )*8)}.VLYIv2GVocjuN93e8HC8,.X1rm9DQ1zLGLfogja5Gn{padding-top:calc(var( --spacing-base )*8)}.JS7G6kAuqJo5GIuF8S5t{padding-left:calc(var( --spacing-base )*8)}.Y8F9ga1TDCMbM1lj4gUz{padding-bottom:calc(var( --spacing-base )*8)}.AJuyNGrI63BOWql719H8{padding-right:calc(var( --spacing-base )*8)}.jErCC9oKHSM15BxzFyQK{margin-bottom:0}.oVoYbwbFB6U2o90Njusk{font-size:16px;margin:0}.oVoYbwbFB6U2o90Njusk.is-error{background-color:var(--jp-red-0)}.oVoYbwbFB6U2o90Njusk .components-notice__content{align-items:center;display:flex;margin:0;padding:12px 4px}.oVoYbwbFB6U2o90Njusk .components-notice__content>svg{fill:var(--jp-red-60)}.oVoYbwbFB6U2o90Njusk .is-link{color:var(--jp-black);font-size:16px;font-weight:600}.oVoYbwbFB6U2o90Njusk .components-notice__dismiss{align-self:center}.wBVXH4OTNwLHPRpN4nsq{margin-right:8px}.sexr0jUxC1jVixdKiDnC{margin-right:-20px}@media(max-width:782px){.sexr0jUxC1jVixdKiDnC{margin-right:-10px}}.sexr0jUxC1jVixdKiDnC.vKQ11sLeAM45M04P1ccj{background-color:var(--jp-white)}.SqdhUZkXCRuIpErj1B3z{--max-container-width:1128px;--vertical-gutter:24px;--vertical-spacing-sm:16px;--vertical-spacing-md:18px;--vertical-spacing-lg:24px;--horizontal-spacing:8px;column-gap:var(--vertical-gutter);display:grid;margin:0 auto;max-width:var(--max-container-width);width:100%}@media(min-width:0px){.SqdhUZkXCRuIpErj1B3z{grid-template-columns:repeat(4,minmax(0,1fr));padding:0 var(--vertical-spacing-sm)}}@media(min-width:600px){.SqdhUZkXCRuIpErj1B3z{grid-template-columns:repeat(8,minmax(0,1fr));padding:0 var(--vertical-spacing-md)}}@media(min-width:960px){.SqdhUZkXCRuIpErj1B3z{grid-template-columns:repeat(12,minmax(0,1fr));padding:0 var(--vertical-spacing-lg)}}.SqdhUZkXCRuIpErj1B3z.OZC_9a1LhpWF9dv15Gdh{max-width:none;padding:unset}@media(min-width:0px){.RuVLl3q4lxTQa3wbhBJB{grid-column-end:span 1}.QZbNrOqE2aNSn50xVhpU{grid-column-end:span 2}.Xc6nt1Qc1DI0Z2A3gt1r{grid-column-end:span 3}.i_qTq8gqhhC3vIUepVRB{grid-column-end:span 4}}@media(min-width:600px){.tRm008K_WJL79WoNZTNL{grid-column-end:span 1}.F80DdgVn0m5OpvtSQWka{grid-column-end:span 2}.VenqMpdgyKQVUNNQcfqd{grid-column-end:span 3}.yAi0Cv1xDWkoqsaUhvhR{grid-column-end:span 4}.Sz1E2aWbX483ijdi6yge{grid-column-end:span 5}.FboSx5MoKTAWbxXyYlCw{grid-column-end:span 6}.mhCPwfAZ4Kmm_empzJAq{grid-column-end:span 7}.S6pIrEy9AMLKx9bgh_Ae{grid-column-end:span 8}}@media(min-width:960px){.X_pdcLJikd8LS_YAdJlB{grid-column-end:span 1}.fj0NUMuyZQcPNgKcjp5Z{grid-column-end:span 2}.wsDuEN2GqHx6qzo8dUdk{grid-column-end:span 3}.YR0c7fQTgMkDdWzwSyLp{grid-column-end:span 4}.Z54F1hAErckAIrKlxnXW{grid-column-end:span 5}.qtMoMPF6yHvGJnWHSsde{grid-column-end:span 6}.egIPDFJsOpownTClq9XP{grid-column-end:span 7}.cTuyHfMwSUJxN_HdIEgd{grid-column-end:span 8}.pMvxM3RJGjqyNdf9qg1Y{grid-column-end:span 9}.gKb5wuIDAlKGbrjK2vxy{grid-column-end:span 10}.NnQTlbfnxPDR6cQ7rygg{grid-column-end:span 11}.U3H6UHW6HqRt9hdzVg3O{grid-column-end:span 12}}.jp-dashboard-footer{align-items:center;color:#000;display:flex;flex-flow:row wrap;justify-content:space-between;max-width:1128px;width:100%}.jp-dashboard-footer a,.jp-dashboard-footer a:hover,.jp-dashboard-footer a:visited{color:#000;text-decoration:none}.jp-dashboard-footer__jetpack-symbol,.jp-dashboard-footer__module-name{display:inline-block;vertical-align:middle}.jp-dashboard-footer__module-name{font-size:12px;font-weight:600;margin-right:5px}.vMa4i_Dza2t5Zi_Bw9Nf{background:var(--jp-white-off)}.hDuMEuW1xluozLFj95Fi{fill:#000}.nHW00YCzH8n2HdsH3ps8{---jp-green-primary:#069e08;fill:var(---jp-green-primary)}.cAbGtJDGgLubucBnz7vM{background-color:var(--jp-white)}.wiobThfXJCuhGNrbFIT6 a,.wiobThfXJCuhGNrbFIT6 a:active,.wiobThfXJCuhGNrbFIT6 a:hover{color:var(--jp-black)}.VgAxgahF9bC2M__FiIgV{margin-bottom:calc(var(--spacing-base)*3)}.uwMCvCNzQUKtyBmXFTve{font-size:var(--font-body)}.uwMCvCNzQUKtyBmXFTve:hover{color:var(--jp-black);text-decoration-thickness:var(--jp-underline-thickness)}.jp-connection-status-card h3{color:var(--jp-black);font-size:var(--font-title-large);font-weight:700;line-height:1.1;margin:0}.jp-connection-status-card a,.jp-connection-status-card a:active,.jp-connection-status-card a:hover{color:var(--jp-black)}.jp-connection-status-card p{color:var(--jp-black);margin:16px 0}.jp-connection-status-card a,.jp-connection-status-card li,.jp-connection-status-card p{font-size:var(--font-body);line-height:24px}.jp-connection-status-card--status{align-items:center;display:flex;margin:24px -6px 24px 0}.jp-connection-status-card--cloud{background-image:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNDIiIGhlaWdodD0iNDIiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PG1hc2sgaWQ9ImEiIG1hc2stdHlwZT0iYWxwaGEiIG1hc2tVbml0cz0idXNlclNwYWNlT25Vc2UiIHg9IjciIHk9IjkiIHdpZHRoPSIyOCIgaGVpZ2h0PSIyMSI+PHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik0zMC4zMzMgMTcuNjk3di0uMDhjMC00LjI1My0zLjc2LTcuNy04LjQtNy43LTMuOTE2IDAtNy4yMDYgMi40NTctOC4xMzYgNS43OGE2LjM4NiA2LjM4NiAwIDAgMC0uMjY0LS4wMDVDOS45MjUgMTUuNjkyIDcgMTguNzA4IDcgMjIuNDI5czIuOTI1IDYuNzM4IDYuNTMzIDYuNzM4SDI5LjRjMy4wOTMgMCA1LjYtMi41ODYgNS42LTUuNzc1IDAtMi44NjEtMi4wMTgtNS4yMzctNC42NjYtNS42OTVaIiBmaWxsPSIjZmZmIi8+PC9tYXNrPjxnIG1hc2s9InVybCgjYSkiPjxwYXRoIGQ9Im0zMC4zMzMgMTcuNjk3LTIuNjI1LS4wMy0uMDI1IDIuMjM1IDIuMjAyLjM4MS40NDgtMi41ODZabS0xNi41MzctMi0uMTA3IDIuNjIzIDIuMDc1LjA4NS41Ni0yLTIuNTI4LS43MDhabS0uMjYzIDEzLjQ3djIuNjI1aC4wMDhsLS4wMDgtMi42MjVabS4wNCAwdi0yLjYyNWgtLjAwOWwuMDA4IDIuNjI1Wm0xNS43OTUgMCAuMDE1LTIuNjI1aC0uMDE1djIuNjI1Wm0zLjU5LTExLjQ0MXYtLjExaC01LjI1di4wNTJsNS4yNS4wNThabTAtLjExYzAtNS45MTItNS4xNTUtMTAuMzI0LTExLjAyNS0xMC4zMjR2NS4yNWMzLjQxIDAgNS43NzUgMi40ODIgNS43NzUgNS4wNzVoNS4yNVpNMjEuOTMzIDcuMjkzYy00Ljk4NCAwLTkuMzg4IDMuMTM5LTEwLjY2NCA3LjY5OGw1LjA1NSAxLjQxNWMuNTg1LTIuMDg5IDIuNzYyLTMuODYzIDUuNjEtMy44NjN2LTUuMjVabS04LjAzIDUuNzgyYTkuMTExIDkuMTExIDAgMCAwLS4zNy0uMDA3djUuMjVjLjA1MyAwIC4xMDUuMDAxLjE1Ni4wMDNsLjIxNS01LjI0NlptLS4zNy0uMDA3Yy01LjEzMyAwLTkuMTU4IDQuMjY4LTkuMTU4IDkuMzYyaDUuMjVjMC0yLjM0OCAxLjgyNS00LjExMiAzLjkwOC00LjExMnYtNS4yNVptLTkuMTU4IDkuMzYyYzAgNS4wOTUgNC4wMjUgOS4zNjMgOS4xNTggOS4zNjN2LTUuMjVjLTIuMDgzIDAtMy45MDgtMS43NjUtMy45MDgtNC4xMTNoLTUuMjVabTkuMTY2IDkuMzYzaC4wNGwtLjAxNy01LjI1aC0uMDM5bC4wMTYgNS4yNVptLjAzMSAwaDE1Ljc5NnYtNS4yNUgxMy41NzJ2NS4yNVptMTUuODI3LTUuMjVoLS4wMTZsLS4wMyA1LjI1aC4wNDZ2LTUuMjVabTIuOTc1LTMuMTVjMCAxLjgxNi0xLjQwNyAzLjE1LTIuOTc1IDMuMTV2NS4yNWM0LjYxOCAwIDguMjI1LTMuODM4IDguMjI1LTguNGgtNS4yNVptLTIuNDg5LTMuMTA5YzEuMzU1LjIzNSAyLjQ5IDEuNDg4IDIuNDkgMy4xMDloNS4yNWMwLTQuMTAyLTIuOTAyLTcuNi02Ljg0NC04LjI4MmwtLjg5NiA1LjE3M1oiIGZpbGw9IiMxRTFFMUUiLz48L2c+PC9zdmc+);height:42px;margin-left:4px;width:42px}.jp-connection-status-card--jetpack-logo{background-image:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzIiIGhlaWdodD0iMzIiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTE2IDMyYzguODM3IDAgMTYtNy4xNjMgMTYtMTZTMjQuODM3IDAgMTYgMCAwIDcuMTYzIDAgMTZzNy4xNjMgMTYgMTYgMTZaIiBmaWxsPSIjMDAwIi8+PHBhdGggZD0iTTE2Ljc5NCAxMy4zMTN2MTUuNTExbDgtMTUuNTEyaC04Wk0xNS4xNzUgMTguNjU3VjMuMTc2bC03Ljk2OSAxNS40OGg3Ljk3WiIgZmlsbD0iI2ZmZiIvPjwvc3ZnPg==);height:32px;margin-right:11px;width:32px}.jp-connection-status-card--btn-connect-user{font-size:var(--font-body);font-weight:400;line-height:24px}.jp-connection-status-card--avatar{background-color:var(--jp-white);background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width='32' height='32' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='16' cy='16' r='16' fill='%23fff'/%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M4.498 27.123C6.038 24.165 10.916 21.5 16 21.5c5.084 0 9.963 2.665 11.502 5.623a15.952 15.952 0 0 1-11.257 4.875L16 32l-.245-.002a15.952 15.952 0 0 1-11.257-4.875zM16 8a6 6 0 1 1 0 12 6 6 0 0 1 0-12z' fill='%23A2AAB2'/%3E%3C/svg%3E");background-repeat:no-repeat;background-size:contain;border:0;border-radius:20px;height:32px;margin-right:-10px;width:32px}.jp-connection-status-card--line{border-top:2px solid var(--jp-black);height:0;width:67px}.jp-connection-status-card--line.jp-connection-status-card--site-only{border-top-style:dashed}.jp-connection-status-card--list{list-style-type:none;margin:16px 0}.jp-connection-status-card--list li{color:var(--jp-black);margin:0 -3px 8px 0;padding-right:25px}.jp-connection-status-card--list-item-success{background:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0ibTE4LjkzNSA2LTguOSAxMS45Ny01LjE2Mi0zLjgzNyIgc3Ryb2tlPSIjMUUxRTFFIiBzdHJva2Utd2lkdGg9IjEuNSIvPjwvc3ZnPg==) no-repeat 100% 0}.jp-connection-status-card--list-item-error{background:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTEyIDIwYTggOCAwIDEgMCAwLTE2IDggOCAwIDAgMCAwIDE2WiIgc3Ryb2tlPSIjRDYzNjM5IiBzdHJva2Utd2lkdGg9IjEuNSIvPjxwYXRoIGQ9Ik0xMyA3aC0ydjZoMlY3Wk0xMyAxNWgtMnYyaDJ2LTJaIiBmaWxsPSIjRDYzNjM5Ii8+PC9zdmc+) no-repeat 100% 0;color:var(--jp-red-60)!important}.jp-connection-status-card--list-item-info{background:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTEyIDIwYTggOCAwIDEgMCAwLTE2IDggOCAwIDAgMCAwIDE2WiIgc3Ryb2tlPSIjMDAwIiBzdHJva2Utd2lkdGg9IjEuNSIvPjxwYXRoIGQ9Ik0xMyA3aC0ydjZoMlY3Wk0xMyAxNWgtMnYyaDJ2LTJaIiBmaWxsPSIjMDAwIi8+PC9zdmc+) no-repeat 100% 0}.jp-connection__disconnect-dialog h1{font-size:var(--font-title-small);font-weight:600;line-height:1.2;margin-top:0}.jp-connection__disconnect-dialog h2{font-size:var(--font-title-small);font-weight:400;line-height:1.2;margin:0}.jp-connection__disconnect-dialog p{font-size:var(--font-body);margin-top:0}.jp-connection__disconnect-dialog p.jp-connection__disconnect-dialog__large-text,.jp-connection__disconnect-dialog__large-text{font-size:1.25rem}.jp-connection__disconnect-dialog .jp-connection__disconnect-dialog__link,.jp-connection__disconnect-dialog__link{color:var(--jp-black);font-size:var(--font-body);font:inherit;height:auto;padding:0;text-decoration:underline}.jp-connection__disconnect-dialog .jp-connection__disconnect-dialog__link:hover,.jp-connection__disconnect-dialog__link:hover{color:var(--jp-black);text-decoration-thickness:var(--jp-underline-thickness)}.jp-connection__disconnect-dialog .jp-connection__disconnect-dialog__link:focus,.jp-connection__disconnect-dialog__link:focus{box-shadow:none!important;color:var(--jp-black)}.jp-connection__disconnect-dialog .jp-connection__disconnect-dialog__link--bold,.jp-connection__disconnect-dialog__link--bold{font-weight:700}.jp-connection__disconnect-dialog .components-button{border-radius:4px;font-size:var(--font-body-small);height:40px}.jp-connection__disconnect-dialog .components-modal__content{display:flex;flex-direction:column;flex-grow:1;margin:0;padding:0}.jp-connection__disconnect-dialog .components-modal__content:before,.jp-connection__disconnect-dialog .components-modal__header{display:none}.jp-connection__disconnect-dialog .jp-row{align-items:center;width:calc(100% - 48px)}.jp-connection__disconnect-dialog__content{align-items:center;background:var(--jp-white-off);border-radius:4px;display:flex;flex-direction:column;flex-grow:1;justify-content:center;margin:0;padding:2rem 1rem;text-align:center}.jp-connection__disconnect-dialog__actions{background:var(--jp-white);border-top:1px solid var(--jp-gray);bottom:0;padding:2rem 0;position:sticky}.jp-connection__disconnect-dialog__actions p{margin-bottom:0}.jp-connection__disconnect-dialog__actions:before{background:linear-gradient(to bottom,transparent,var(--jp-white-off));bottom:calc(100% + 1px);content:"";display:block;height:80px;position:absolute;right:0;width:100%}.jp-connection__disconnect-dialog__btn-dismiss,.jp-connection__disconnect-dialog__btn-dismiss.components-button{background:var(--jp-black)!important;margin-left:10px}.jp-connection__disconnect-dialog__btn-disconnect{background:var(--jp-red)!important}.jp-connection__disconnect-dialog__btn-back-to-wp{background:var(--jp-black)!important}.jp-connection__disconnect-dialog__button-wrap{text-align:right}@media(min-width:960px){.jp-connection__disconnect-dialog__button-wrap{text-align:center}}.jp-connection__disconnect-dialog__error{color:var(--jp-red)}.jp-connection__disconnect-dialog__survey{margin-bottom:1.5rem;max-width:100%}.jp-connection__disconnect-dialog__step-copy{margin:0 auto;max-width:800px}.jp-connection__disconnect-dialog__step-copy--narrow{max-width:600px}@media(max-height:900px){.jp-connection__disconnect-dialog__content .jp-components__decorative-card{display:none}}@media(min-width:600px){.jp-connection__disconnect-dialog,.jp-connection__disconnect-dialog.components-modal__frame{max-width:calc(100% - 32px);width:100%}.jp-connection__disconnect-dialog__actions,.jp-connection__disconnect-dialog__content{padding:2rem}}@media(min-width:960px){.jp-connection__disconnect-dialog,.jp-connection__disconnect-dialog.components-modal__frame{display:flex;flex-direction:column;height:900px;width:1200px}.jp-connection__disconnect-dialog h1{font-size:var(--font-title-large)}.jp-connection__disconnect-dialog p.jp-connection__disconnect-dialog__large-text,.jp-connection__disconnect-dialog__large-text{font-size:1.5rem}.jp-connection__disconnect-dialog__content{padding:80px}.jp-connection__disconnect-dialog__actions{padding:2rem 3rem}.jp-row{margin-right:0}}.jp-connection__disconnect-card{background-color:var(--jp-white);border:none;border-radius:3px;box-shadow:0 0 15px var(--jp-gray-off);margin:0 auto 1rem;max-width:100%;padding:1rem 2rem;text-align:right;width:800px}.jp-connection__disconnect-card__group{margin-bottom:1rem;max-width:100%}.jp-connection__disconnect-card__card-content{display:block;font-size:.875rem}@media only screen and (min-width:782px){.jp-connection__disconnect-card__card-content{align-items:center;display:flex;justify-content:space-between}}.jp-connection__disconnect-card .jp-connection__disconnect-card__card-headline,.jp-connection__disconnect-card__card-headline{flex-shrink:0;font-size:1.25rem;font-weight:600;margin-bottom:0;margin-top:0}@media only screen and (min-width:782px){.jp-connection__disconnect-card .jp-connection__disconnect-card__card-headline,.jp-connection__disconnect-card__card-headline{font-size:1.5rem;margin-left:1.5rem}}@media only screen and (max-width:782px){.jp-connection__disconnect-card .jp-connection__disconnect-card__card-headline+.jp-disconnect-card__card-stat-block,.jp-connection__disconnect-card__card-headline+.jp-disconnect-card__card-stat-block{margin-top:.5rem}}.jp-connection__disconnect-card__card-stat-block{align-items:baseline;display:flex;flex-grow:1}@media only screen and (min-width:782px){.jp-connection__disconnect-card__card-stat-block{flex-direction:row-reverse}}.jp-connection__disconnect-card__card-description{flex-grow:1}@media only screen and (min-width:782px){.jp-connection__disconnect-card__card-description{text-align:left}}.jp-connection__disconnect-card__card-stat{font-size:1rem;font-weight:600;margin-left:.5rem}@media only screen and (min-width:782px){.jp-connection__disconnect-card__card-stat{font-size:1.5rem;margin-left:0;margin-right:1rem}}.jp-components__decorative-card{border-radius:8px;box-shadow:0 0 15px var(--jp-gray);display:flex;height:280px;margin:0 auto 3rem;max-width:100%;overflow:hidden;position:relative;width:360px}.jp-components__decorative-card__content,.jp-components__decorative-card__image{width:50%}.jp-components__decorative-card__image{background:var(--jp-gray);background-size:cover;position:relative}.jp-components__decorative-card__image:before{background-image:url('data:image/svg+xml;uf8,<svg width="38" height="8" viewBox="0 0 38 8" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M1 7C1 7 2.37087 1 6.89831 1C11.4257 1 14.3709 7 18.8983 7C23.4257 7 26.7777 1 31.3051 1C35.912 1 37 7 37 7" stroke="white" stroke-width="1.5" stroke-linejoin="round"/></svg>');content:"";display:block;height:8px;position:absolute;right:24px;top:24px;width:38px}.jp-components__decorative-card__content{background:#fff;padding:2rem}.jp-components__decorative-card__icon-container{background:var(--jp-red);border-radius:50px;height:80px;position:absolute;right:50%;top:50%;transform:translate(50%,-50%);width:80px}.jp-components__decorative-card__icon{background-position:50%,50%;background-repeat:no-repeat;height:40px;position:absolute;right:50%;top:50%;transform:translate(50%,-50%);width:40px}.jp-components__decorative-card__icon--unlink{background-image:url('data:image/svg+xml;uf8,<svg width="34" height="37" viewBox="0 0 34 37" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M22.3335 10.001H25.0002C29.4184 10.001 33.0002 13.5827 33.0002 18.001V19.7788C33.0002 24.197 29.4184 27.7788 25.0002 27.7788H22.3335" stroke="white" stroke-width="1.5" stroke-linecap="square"/> <path d="M11.6675 27.7783L9.00082 27.7783C4.58254 27.7783 1.00081 24.1966 1.00081 19.7783L1.00081 18.0005C1.00081 13.5823 4.58253 10.0005 9.00081 10.0005L11.6675 10.0005" stroke="white" stroke-width="1.5" stroke-linecap="square"/> <path d="M10.9998 19.167L16.9998 19.167" stroke="white" stroke-width="1.5"/> <path d="M8.99951 35.998L24.9995 0.998048" stroke="white"/> </svg>')}.jp-components__decorative-card__lines,.jp-components__decorative-card__lines:after,.jp-components__decorative-card__lines:before{background:#e9eff5;border-radius:6px;display:block;height:12px;position:relative;width:100%}.jp-components__decorative-card__lines:after,.jp-components__decorative-card__lines:before{content:"";top:calc(100% + 16px)}.jp-components__decorative-card__lines:after{top:calc(100% + 32px);width:75%}.jp-components__decorative-card--vertical{flex-direction:column}.jp-components__decorative-card--vertical .jp-components__decorative-card__content,.jp-components__decorative-card--vertical .jp-components__decorative-card__image{height:50%;width:100%}.jp-components__decorative-card--vertical .jp-components__decorative-card__lines{margin-left:auto;margin-right:auto;max-width:135px}.jp-components__decorative-card--vertical .jp-components__decorative-card__lines:after,.jp-components__decorative-card--vertical .jp-components__decorative-card__lines:before{margin-left:auto;margin-right:auto}.jp-connect__disconnect-survey-card{border:2px solid transparent;border-radius:4px;box-shadow:0 0 15px var(--jp-gray-off);margin-left:auto;margin-right:auto;max-width:100%;padding:1rem;position:relative;text-align:right;width:800px}.jp-connect__disconnect-survey-card--selected{background:var(--jp-gray-off);border-color:var(--jp-black)}.jp-connect__disconnect-survey-card:after{border-left:2px solid var(--jp-black);border-top:2px solid var(--jp-black);content:"";display:block;height:5px;left:1.5rem;position:absolute;top:50%;transform:translateY(-50%) rotate(-45deg);width:5px}.jp-connect__disconnect-survey-card:hover{cursor:pointer}.jp-connect__disconnect-survey-card:focus:not(.jp-disconnect-survey-card--selected),.jp-connect__disconnect-survey-card:hover:not(.jp-disconnect-survey-card--selected){border-color:var(--jp-black-80)}.jp-connect__disconnect-survey-card__answer{align-items:center;display:flex;font-weight:700;margin:0}input.jp-connect__disconnect-survey-card__input{-webkit-appearance:none;background-color:transparent;border:none;color:var(--jp-black-80);flex-grow:1;max-width:calc(100% - 40px);padding-left:40px}.zvd4dCB_bBDiXJKKDqXm{position:relative}.ly4o9lSswAGHFXqGUEIO{left:32px;position:absolute;top:32px;z-index:1}.u64Go3kwEZ7MD9eji0H1{color:var(--jp-gray-50);font-size:13px;margin-bottom:16px;width:60%}._RT41NE3LU4R0ubcij2y{align-items:center;display:flex}.cFGWJeRiGHjAr8D7CWJW{margin-left:8px;width:100px}.Iz3l7a05TP6HK9S92TIL{width:16px}.lmQ0wFmnk4kKkGVjokPA{height:18px;margin-right:8px}.AoIs8wD92wKR8RpQj6Uc{align-items:center;display:inline-flex}.rV_5QyvhDnsVjCX4pb0h{--gray-90:#1e1e1e;fill:var(--gray-90);width:24px}.MO1jDNY8VPqeNS9xL8jE{align-items:center;display:flex;text-decoration:none}.jp-connection__connect-screen__loading{display:none}.jp-connection__connect-screen__tos{margin-top:28px;max-width:360px}.jp-connection__connect-screen .jp-action-button{margin-top:40px}.jp-connection__connect-screen .jp-action-button button{max-width:100%}.jp-connection__connect-screen .jp-action-button button:disabled{color:hsla(0,0%,100%,.4)}@media(max-width:782px){.jp-connection__connect-screen .jp-action-button button{max-width:none;width:100%}}.jp-connection__connect-screen__footer{margin-top:32px}:root{--font-title-large:36px;--font-title-small:24px;--font-body:16px;--font-label:12px;--jp-black:#000;--jp-black-80:#2c3338;--jp-white:#fff;--jp-white-off:#f9f9f6;--jp-gray:#dcdcde;--jp-gray-0:#f6f7f7;--jp-gray-5:#dcdcde;--jp-gray-10:#c3c4c7;--jp-gray-20:#a7aaad;--jp-gray-30:#8c8f94;--jp-gray-40:#787c82;--jp-gray-50:#646970;--jp-gray-60:#50575e;--jp-gray-70:#3c434a;--jp-gray-80:#2c3338;--jp-gray-90:#1d2327;--jp-gray-100:#101517;--jp-gray-off:#e2e2df;--jp-red-0:#f7ebec;--jp-red-50:#d63638;--jp-red-60:#b32d2e;--jp-red-80:#8a2424;--jp-red:#d63639;--jp-pink:#c9356e;--jp-green-0:#f0f2eb;--jp-green-5:#d0e6b8;--jp-green-10:#9dd977;--jp-green-20:#64ca43;--jp-green-30:#2fb41f;--jp-green-40:#069e08;--jp-green-50:#008710;--jp-green-60:#007117;--jp-green-70:#005b18;--jp-green-80:#004515;--jp-green-90:#003010;--jp-green-100:#001c09;--jp-green:#069e08;--jp-green-primary:var( --jp-green-40 );--jp-green-secondary:var( --jp-green-30 );--jp-border-radius:4px;--jp-menu-border-height:1px;--jp-underline-thickness:2px}*{box-sizing:border-box}body{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;margin:0;min-height:100%;padding:0}.jp-wrap{align-items:center;display:flex;flex-wrap:wrap;margin:0 auto;max-width:1128px}.jp-row{grid-gap:24px;display:grid;grid-template-columns:repeat(4,1fr);margin:0 16px;width:100%}@media(min-width:600px){.jp-row{grid-template-columns:repeat(8,1fr);margin:0 18px}}@media(min-width:960px){.jp-row{grid-template-columns:repeat(12,1fr);margin:0 24px;max-width:1128px}}.sm-col-span-1{grid-column-end:span 1}.sm-col-span-2{grid-column-end:span 2}.sm-col-span-3{grid-column-end:span 3}.sm-col-span-4{grid-column-end:span 4}@media(min-width:600px){.md-col-span-1{grid-column-end:span 1}.md-col-span-2{grid-column-end:span 2}.md-col-span-3{grid-column-end:span 3}.md-col-span-4{grid-column-end:span 4}.md-col-span-5{grid-column-end:span 5}.md-col-span-6{grid-column-end:span 6}.md-col-span-7{grid-column-end:span 7}.md-col-span-8{grid-column-end:span 8}}@media(min-width:960px){.lg-col-span-1{grid-column-end:span 1}.lg-col-span-2{grid-column-end:span 2}.lg-col-span-3{grid-column-end:span 3}.lg-col-span-4{grid-column-end:span 4}.lg-col-span-5{grid-column-end:span 5}.lg-col-span-6{grid-column-end:span 6}.lg-col-span-7{grid-column-end:span 7}.lg-col-span-8{grid-column-end:span 8}.lg-col-span-9{grid-column-end:span 9}.lg-col-span-10{grid-column-end:span 10}.lg-col-span-11{grid-column-end:span 11}.lg-col-span-12{grid-column-end:span 12}}@media(max-width:960px){.md-col-span-0{display:none}}@media(max-width:600px){.sm-col-span-0{display:none}}.jp-cut{border:2px solid var(--jp-green-primary);border-radius:var(--jp-border-radius);margin:32px 0;padding:16px 24px 16px 64px;position:relative;text-decoration:none}.jp-cut,.jp-cut span{display:block}.jp-cut span:last-of-type{font-weight:600}.jp-cut:focus span:last-of-type,.jp-cut:hover span:last-of-type{text-decoration:underline;text-decoration-thickness:var(--jp-underline-thickness)}.jp-cut:focus:after,.jp-cut:hover:after{transform:translateY(-50%) translateX(-8px)}.jp-cut:after{color:var(--jp-green-primary);content:"→";font-size:24px;font-weight:600;left:24px;position:absolute;top:50%;transform:translateY(-50%);transition:transform .15s ease-out}.jp-connection__connect-screen-layout{background:var(--jp-white);border-radius:4px;box-shadow:0 0 40px rgba(0,0,0,.08)}.jp-connection__connect-screen-layout__loading{display:none}.jp-connection__connect-screen-layout__left,.jp-connection__connect-screen-layout__right{box-sizing:border-box}.jp-connection__connect-screen-layout__left{padding:25px}@media(min-width:600px){.jp-connection__connect-screen-layout__left{padding:64px 96px}}.jp-connection__connect-screen-layout__left .jetpack-logo{margin-bottom:24px}.jp-connection__connect-screen-layout__left h2{color:var(--jp-black);font-size:36px;font-style:normal;font-weight:700;line-height:40px;margin-bottom:0;margin-top:32px}.jp-connection__connect-screen-layout__left h3{color:var(--jp-black);font-size:24px;font-style:normal;font-weight:500;line-height:32px;margin-bottom:0;margin-top:32px}.jp-connection__connect-screen-layout__left li,.jp-connection__connect-screen-layout__left p{font-size:16px;font-style:normal;font-weight:400;line-height:24px}.jp-connection__connect-screen-layout__left p{color:#101517;margin:16px 0}.jp-connection__connect-screen-layout__left a{color:var(--jp-black);font-size:var(--font-body);font:inherit;height:auto;padding:0;text-decoration:underline}.jp-connection__connect-screen-layout__left a:hover{color:var(--jp-black);text-decoration-thickness:var(--jp-underline-thickness)}.jp-connection__connect-screen-layout__left a:focus{box-shadow:none!important;color:var(--jp-black)}.jp-connection__connect-screen-layout__left ul{list-style-type:none;padding:0}.jp-connection__connect-screen-layout__left ul li{background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAMAAABg3Am1AAAANlBMVEVHcEwFnwUInggGnggGnggHnAcAnwUFnQcAnwcGnwkFnQgGnQgFnwcGnQYFnQcFnAcGnQkDnwdhiL0pAAAAEnRSTlMAMF//f2Aw7yBQ3+9gcIBgcED+HDbkAAAAZklEQVR4Ae3LNwICARDDQC0+cv7/Y8mwV9odSfWIcf/+VegnGkIvDaGXKvTTn/Gz+Uf5xTL0K1XotS7fs5H6GHvvaO8d7c3j7rdgHne/A/PYt/cO+R42oYdN6OEQetiFHo4A//6dAXqtBEkmtWutAAAAAElFTkSuQmCC) no-repeat;background-size:24px;color:var(--jp-black);margin-bottom:9px;padding-right:30px}.jp-connection__connect-screen-layout__right{padding:64px 0}.jp-connection__connect-screen-layout__right img{max-width:100%}.jp-connection__connect-screen-layout__two-columns{display:flex;flex-wrap:wrap}.jp-connection__connect-screen-layout__two-columns .jp-connection__connect-screen-layout__left{flex-basis:100%;flex-grow:1}@media(min-width:1080px){.jp-connection__connect-screen-layout__two-columns .jp-connection__connect-screen-layout__left{flex-basis:52%}}.jp-connection__connect-screen-layout__two-columns .jp-connection__connect-screen-layout__right{background:#f9f9f6;display:none;flex-basis:47%;flex-grow:1}@media(min-width:1080px){.jp-connection__connect-screen-layout__two-columns .jp-connection__connect-screen-layout__right{display:block}}.jp-action-button--button{background:#000}.jp-action-button--button,.jp-action-button--button.components-button{border-radius:4px;display:block;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:14px;font-style:normal;font-weight:600;height:40px;line-height:18px;min-width:264px;text-align:center}.jp-action-button__error{background:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTEyIDIwYTggOCAwIDEgMCAwLTE2IDggOCAwIDAgMCAwIDE2WiIgc3Ryb2tlPSIjRDYzNjM5IiBzdHJva2Utd2lkdGg9IjEuNSIvPjxwYXRoIGQ9Ik0xMyA3aC0ydjZoMlY3Wk0xMyAxNWgtMnYyaDJ2LTJaIiBmaWxsPSIjRDYzNjM5Ii8+PC9zdmc+) no-repeat 100% 0;color:var(--jp-red)!important;line-height:25px!important;padding-right:25px}.SWwV4Pw6OZ5vU3PqPXmr{--product-card-shadow:rgb(0 0 0/3%);background-color:var(--jp-white);border:1px solid var(--jp-gray);border-radius:var(--jp-border-radius);box-shadow:0 2px 6px var(--product-card-shadow),0 1px 2px var(--product-card-shadow)}.r7tUofa9Z3A5ziKVR1H7{align-items:center;display:flex}.r7tUofa9Z3A5ziKVR1H7 img{object-fit:cover;width:100%}.hdasSNj9k3Sc5PwXK4uE{margin-left:4px;width:16px}.eWN8Hj0SBRDq1F48n_Fg{--gray-70:#3c434a;align-items:center;color:var(--gray-70);display:flex;font-size:14px;text-decoration:none}.q0T8YyQxRawhpDtvJjxI{background-color:var(--jp-white);height:100%}.zj7xadmhIWeuf7ZwvVTS{align-items:center;background:var(--jp-black);border-radius:var(--jp-border-radius) var(--jp-border-radius) 0 0;color:var(--jp-white);display:flex;height:32px;padding:0 var(--spacing-base)}.GsioW6IsC8EMYE3U6788{fill:var(--jp-white);margin-left:var(--spacing-base)}.B7JDqI_vtKxSy5GjvqA1{height:100%;padding:0 calc(var(--spacing-base)*5)}.zlh3zbjUe4Z8cBs7uVVe{fill:#8c8f94;height:24px;line-height:24px}.qoZuzG5EcDa231hC6t0P{align-items:center;display:flex;justify-content:center}.qoZuzG5EcDa231hC6t0P svg{margin-left:var(--spacing-base)}.Q6uUUQCPWS6_6nLxIn68{display:inline-block;min-height:42px;padding:8px 60px;text-align:center;width:100%}.Q6uUUQCPWS6_6nLxIn68 .YU4iBCRze09ZP3iCsdcb{margin:0}.Q6uUUQCPWS6_6nLxIn68.is-secondary:hover:not(:disabled){background:var(--jp-black);color:var(--jp-white)}.Q1jaYDpa2AVfJpA29wT0{margin:0}.Q1jaYDpa2AVfJpA29wT0 li{align-items:center;display:flex;list-style:none;margin-bottom:var(--spacing-base)}.Q1jaYDpa2AVfJpA29wT0 svg{fill:var(--jp-green-primary)}.xgv3jRkeF39aEQELCwru{align-items:flex-end;color:var(--jp-text-color);display:flex;flex-wrap:wrap}.twlleZ5Ehq4bB7CvKVSW{position:relative}.twlleZ5Ehq4bB7CvKVSW:first-child{margin-left:var(--spacing-base)}.twlleZ5Ehq4bB7CvKVSW.Qg4rPEvXsqmod1s_31d8{color:var(--jp-gray-20)}.twlleZ5Ehq4bB7CvKVSW.Qg4rPEvXsqmod1s_31d8:after{background:var(--jp-red);border-radius:var(--jp-border-radius);content:" ";display:block;height:3px;margin-top:-2px;pointer-events:none;position:absolute;top:50%;width:100%}.ApsgxIornVy_3KnciVeJ{color:var(--jp-gray-40);flex-grow:2}
|
1 |
+
#my-jetpack-container{--wp-admin-theme-color:var(--jp-black);--wp-admin-theme-color-darker-10:var(--jp-black-80);--wp-admin-theme-color-darker-20:var(--jp-black-80);height:100%}#my-jetpack-container .jetpack-logo{height:40px}#my-jetpack-container .jp-dashboard-footer__jetpack-symbol{height:16px}#wpbody-content>.notice{display:none}.pIsYsXFAJ9KX2VrS5rmY{--actions-size:28px;--status-size:8px;background:var(--jp-white);border-radius:var(--jp-border-radius);box-shadow:0 0 40px rgba(0,0,0,.08);box-shadow:0 0 0 1px var(--jp-gray-10) inset;display:flex;flex-direction:column;height:100%;padding:calc(var(--spacing-base)*3)}.pIsYsXFAJ9KX2VrS5rmY.YXHdD0VsFjiTsVRLrrx9{background:none;background-color:var(--jp-white-off);color:var(--jp-black-80);text-decoration:none}.pIsYsXFAJ9KX2VrS5rmY.YXHdD0VsFjiTsVRLrrx9:hover{background-color:var(--jp-white)}.pIsYsXFAJ9KX2VrS5rmY.YXHdD0VsFjiTsVRLrrx9:hover .ehgY0qp6bl53RaxP5rFF{text-decoration-thickness:var(--jp-underline-thickness)}.pIsYsXFAJ9KX2VrS5rmY.YXHdD0VsFjiTsVRLrrx9:focus{background-color:var(--jp-white);box-shadow:0 0 0 1.5px var(--jp-black);outline:3px solid transparent}.pIsYsXFAJ9KX2VrS5rmY.Pp9cMIaESLYelLOX3tkI{box-shadow:0 0 0 1.5px var(--jp-red-60)}.w56ueQLYexqzTybA7015{align-items:center;display:flex;justify-content:space-between;margin-bottom:var(--spacing-base);width:100%}.gmPKCDKZcfQt9WieTyKS{flex-grow:1}.ZKHHfl5DhA9kUnaL0qQZ{border-radius:var(--jp-border-radius);font-size:var(--font-body-extra-small);height:var(--actions-size);line-height:var(--actions-size)}.fDBaV7I4yUO6w5AWVEtr{align-items:center;display:flex;flex-wrap:wrap;justify-content:space-between;margin-top:calc(var(--spacing-base)*2);min-height:var(--actions-size);width:100%}.ehgY0qp6bl53RaxP5rFF{text-decoration:underline}.f5VJYwuJmjxH8PVxEbbv{align-items:center;display:flex;height:var(--actions-size);margin-right:var(--spacing-base);white-space:nowrap}.f5VJYwuJmjxH8PVxEbbv:before{border-radius:50%;content:"";display:inline-block;height:var(--status-size);margin-left:var(--spacing-base);width:var(--status-size)}.f5VJYwuJmjxH8PVxEbbv.ry3pxoGtmQ0ZeSwp7F_3{color:var(--jp-green-50)}.f5VJYwuJmjxH8PVxEbbv.ry3pxoGtmQ0ZeSwp7F_3:before{background:var(--jp-green-50)}.f5VJYwuJmjxH8PVxEbbv.LZzE3EG7m3CDR46wwwEr{color:var(--jp-gray-50)}.f5VJYwuJmjxH8PVxEbbv.LZzE3EG7m3CDR46wwwEr:before{background:var(--jp-gray-50)}.f5VJYwuJmjxH8PVxEbbv.Vx_jpT02r8W6NfsRSB02{color:var(--jp-red-60)}.f5VJYwuJmjxH8PVxEbbv.Vx_jpT02r8W6NfsRSB02:before{background:var(--jp-red-60)}.f5VJYwuJmjxH8PVxEbbv.PdsJCfyyjSgrNDheF2qi:before{animation:dWP7ypkVXudMbAa38W5Z .5s linear infinite}@keyframes dWP7ypkVXudMbAa38W5Z{0%{opacity:0}50%{opacity:.5}to{opacity:0}}.WQVtrU6q0L1Igcj7wCrQ{margin:0;padding:0}.UujoBFTnQNY2cWU2SIsH{font-size:var(--font-headline-medium);font-weight:700;line-height:52px}.TeGO5V_thHw5lDAm1_2M{font-weight:700}.TeGO5V_thHw5lDAm1_2M,.WolQzb2MsSgiNmLtc7_j{font-size:var(--font-headline-small);line-height:40px}.WolQzb2MsSgiNmLtc7_j{font-weight:400}.hUB0JT8p1T2Hw28N6qC8{font-size:var(--font-title-medium);font-weight:500;line-height:32px}.zY2No8Ga4b8shbOQGhnv{font-size:var(--font-title-small);font-weight:500;line-height:30px}.tIj0D1t8Cc892ikmgFPZ{font-size:var(--font-body);font-weight:400;line-height:24px}.KdcN0BnOaVeVhyLRKqhS{font-size:var(--font-body-small);font-weight:400;line-height:24px}.dso3Rh3tl3Xv1GumBktz{font-size:var(--font-body-extra-small);font-weight:400;line-height:20px}.PItlW5vRExLnTj4a8eLE{font-size:var(--font-body-extra-small);font-weight:600;line-height:16px}.TwRpPlktzxhmFVeua7P5{margin:calc(var( --spacing-base )*0)}.zVfqx7gyb3o9mxfGynn1{margin-left:calc(var( --spacing-base )*0);margin-right:calc(var( --spacing-base )*0)}.iSHVzNiB9iVleGljaQxy{margin-bottom:calc(var( --spacing-base )*0)}.iSHVzNiB9iVleGljaQxy,.xqDIp6cNVr_E6RXaiPyD{margin-top:calc(var( --spacing-base )*0)}.S8EwaXk1kyPizt6x4WH2{margin-left:calc(var( --spacing-base )*0)}.ODX5Vr1TARoLFkDDFooD{margin-bottom:calc(var( --spacing-base )*0)}.cphJ8dCpfimnky7P2FHg{margin-right:calc(var( --spacing-base )*0)}.PFgIhNxIyiSuNvQjAIYj{margin:calc(var( --spacing-base )*1)}.M2jKmUzDxvJjjVEPU3zn{margin-left:calc(var( --spacing-base )*1);margin-right:calc(var( --spacing-base )*1)}.io15gAh8tMTNbSEfwJKk{margin-bottom:calc(var( --spacing-base )*1)}.io15gAh8tMTNbSEfwJKk,.rcTN5uw9xIEeMEGL3Xi_{margin-top:calc(var( --spacing-base )*1)}.CQSkybjq2TcRM1Xo9COV{margin-left:calc(var( --spacing-base )*1)}.hfqOWgq6_MEGdFE82eOY{margin-bottom:calc(var( --spacing-base )*1)}.I8MxZQYTbuu595yfesWA{margin-right:calc(var( --spacing-base )*1)}.kQkc6rmdpvLKPkyoJtVQ{margin:calc(var( --spacing-base )*2)}.j6vFPxWuu4Jan2ldoxpp{margin-left:calc(var( --spacing-base )*2);margin-right:calc(var( --spacing-base )*2)}.hqr39dC4H_AbactPAkCG{margin-bottom:calc(var( --spacing-base )*2)}.c3dQnMi16C6J6Ecy4283,.hqr39dC4H_AbactPAkCG{margin-top:calc(var( --spacing-base )*2)}.YNZmHOuRo6hU7zzKfPdP{margin-left:calc(var( --spacing-base )*2)}.Db8lbak1_wunpPk8NwKU{margin-bottom:calc(var( --spacing-base )*2)}.ftsYE5J9hLzquQ0tA5dY{margin-right:calc(var( --spacing-base )*2)}.Det4MHzLUW7EeDnafPzq{margin:calc(var( --spacing-base )*3)}.h_8EEAztC29Vve1datb5{margin-left:calc(var( --spacing-base )*3);margin-right:calc(var( --spacing-base )*3)}.YXIXJ0h1k47u6hzK8KcM{margin-bottom:calc(var( --spacing-base )*3)}.YXIXJ0h1k47u6hzK8KcM,.soADBBkcIKCBXzCTuV9_{margin-top:calc(var( --spacing-base )*3)}.zSX59ziEaEWGjnpZa4uV{margin-left:calc(var( --spacing-base )*3)}.yrVTnq_WBMbejg89c2ZQ{margin-bottom:calc(var( --spacing-base )*3)}.UKtHPJnI2cXBWtPDm5hM{margin-right:calc(var( --spacing-base )*3)}.guexok_Tqd5Tf52hRlbT{margin:calc(var( --spacing-base )*4)}.oS1E2KfTBZkJ3F0tN7T6{margin-left:calc(var( --spacing-base )*4);margin-right:calc(var( --spacing-base )*4)}.DN1OhhXi6AoBgEdDSbGd{margin-bottom:calc(var( --spacing-base )*4)}.DN1OhhXi6AoBgEdDSbGd,.ot2kkMcYHv53hLZ4LSn0{margin-top:calc(var( --spacing-base )*4)}.A1krOZZhlQ6Sp8Cy4bly{margin-left:calc(var( --spacing-base )*4)}.pkDbXXXL32237M0hokEh{margin-bottom:calc(var( --spacing-base )*4)}.XXv4kDTGvEnQeuGKOPU3{margin-right:calc(var( --spacing-base )*4)}.yGqHk1a57gaISwkXwXe6{margin:calc(var( --spacing-base )*5)}.X8cghM358X3DkXLc9aNK{margin-left:calc(var( --spacing-base )*5);margin-right:calc(var( --spacing-base )*5)}.GdfSmGwHlFnN2S6xBn1f{margin-bottom:calc(var( --spacing-base )*5)}.GdfSmGwHlFnN2S6xBn1f,.yqeuzwyGQ7zG0avrGqi_{margin-top:calc(var( --spacing-base )*5)}.g9emeCkuHvYhveiJbfXO{margin-left:calc(var( --spacing-base )*5)}.Lvk3dqcyHbZ07QCRlrUQ{margin-bottom:calc(var( --spacing-base )*5)}.r3yQECDQ9qX0XZzXlVAg{margin-right:calc(var( --spacing-base )*5)}.aQhlPwht2Cz1X_63Miw0{margin:calc(var( --spacing-base )*6)}.JyHb0vK3wJgpblL9s5j8{margin-left:calc(var( --spacing-base )*6);margin-right:calc(var( --spacing-base )*6)}.cY2gULL1lAv6WPNIRuf3{margin-bottom:calc(var( --spacing-base )*6)}.NBWQ9Lwhh_fnry3lg_p7,.cY2gULL1lAv6WPNIRuf3{margin-top:calc(var( --spacing-base )*6)}.yIOniNe5E40C8fWvBm5V{margin-left:calc(var( --spacing-base )*6)}.t30usboNSyqfQWIwHvT3{margin-bottom:calc(var( --spacing-base )*6)}.Nm_TyFkYCMhOoghoToKJ{margin-right:calc(var( --spacing-base )*6)}.C4qJKoBXpgKtpmrqtEKB{margin:calc(var( --spacing-base )*7)}.S93Srbu6NQ_PBr7DmTiD{margin-left:calc(var( --spacing-base )*7);margin-right:calc(var( --spacing-base )*7)}.fJj8k6gGJDks3crUZxOS{margin-bottom:calc(var( --spacing-base )*7)}.cW6D6djs7Ppm7fD7TeoV,.fJj8k6gGJDks3crUZxOS{margin-top:calc(var( --spacing-base )*7)}.DuCnqNfcxcP3Z__Yo5Ro{margin-left:calc(var( --spacing-base )*7)}.im8407m2fw5vOg7O2zsw{margin-bottom:calc(var( --spacing-base )*7)}.G0fbeBgvz2sh3uTP9gNl{margin-right:calc(var( --spacing-base )*7)}.kvW3sBCxRxUqz1jrVMJl{margin:calc(var( --spacing-base )*8)}.tOjEqjLONQdkiYx_XRnw{margin-left:calc(var( --spacing-base )*8);margin-right:calc(var( --spacing-base )*8)}.op5hFSx318zgxsoZZNLN{margin-bottom:calc(var( --spacing-base )*8)}.c9WfNHP6TFKWIfLxv52J,.op5hFSx318zgxsoZZNLN{margin-top:calc(var( --spacing-base )*8)}.sBA75QqcqRwwYSHJh2wc{margin-left:calc(var( --spacing-base )*8)}.GpL6idrXmSOM6jB8Ohsf{margin-bottom:calc(var( --spacing-base )*8)}.HbtWJoQwpgGycz8dGzeT{margin-right:calc(var( --spacing-base )*8)}.uxX3khU88VQ_Ah49Ejsa{padding:calc(var( --spacing-base )*0)}.KX0FhpBKwKzs9fOUdbNz{padding-left:calc(var( --spacing-base )*0);padding-right:calc(var( --spacing-base )*0)}.PfK8vKDyN32dnimlzYjz{padding-bottom:calc(var( --spacing-base )*0)}.PfK8vKDyN32dnimlzYjz,.emxLHRjQuJsImnPbQIzE{padding-top:calc(var( --spacing-base )*0)}.kJ8WzlpTVgdViXt8ukP9{padding-left:calc(var( --spacing-base )*0)}.tg_UIUI11VBzrTAn2AzJ{padding-bottom:calc(var( --spacing-base )*0)}.uczvl8kaz84oPQJ2DB2R{padding-right:calc(var( --spacing-base )*0)}.o7UHPcdVK3lt7q3lqV4o{padding:calc(var( --spacing-base )*1)}.IDqEOxvDoYrFYxELPmtX{padding-left:calc(var( --spacing-base )*1);padding-right:calc(var( --spacing-base )*1)}.DdywPW2qSYlu2pt8tpO2{padding-bottom:calc(var( --spacing-base )*1)}.DdywPW2qSYlu2pt8tpO2,.npy3hw4A5QSkDicb2CJJ{padding-top:calc(var( --spacing-base )*1)}.LgbptTApNY5NwLQvEFAt{padding-left:calc(var( --spacing-base )*1)}.WZQy2SZuZso59bUsXXyl{padding-bottom:calc(var( --spacing-base )*1)}.o331apInxNunbYB3SfPE{padding-right:calc(var( --spacing-base )*1)}.fMPIyD9Vqki1Lrc_yJnG{padding:calc(var( --spacing-base )*2)}.i2pMcTcdrr10IQoiSm_L{padding-left:calc(var( --spacing-base )*2);padding-right:calc(var( --spacing-base )*2)}.eA702gn32kwptiI1obXH{padding-bottom:calc(var( --spacing-base )*2)}.eA702gn32kwptiI1obXH,.o9bGieUKcYc8o0Ij9oZX{padding-top:calc(var( --spacing-base )*2)}.SwZcFez1RDqWsOFjB5iG{padding-left:calc(var( --spacing-base )*2)}.eHpLc_idmuEqeqCTvqkN{padding-bottom:calc(var( --spacing-base )*2)}.vU39i2B4P1fUTMB2l6Vo{padding-right:calc(var( --spacing-base )*2)}.JHWNzBnE29awhdu5BEh1{padding:calc(var( --spacing-base )*3)}.X72lGbb56L3KFzC2xQ9N{padding-left:calc(var( --spacing-base )*3);padding-right:calc(var( --spacing-base )*3)}.BzfNhRG8wXdCEB5ocQ6e{padding-bottom:calc(var( --spacing-base )*3)}.BzfNhRG8wXdCEB5ocQ6e,.srV0KSDC83a2fiimSMMQ{padding-top:calc(var( --spacing-base )*3)}.lUWfkmbQjCskhcNwkyCm{padding-left:calc(var( --spacing-base )*3)}.Ts0dIlc3aTSL7V4cIHis{padding-bottom:calc(var( --spacing-base )*3)}.CzlqQXXhX6MvorArFZ8B{padding-right:calc(var( --spacing-base )*3)}.TqMPkQtR_DdZuKb5vBoV{padding:calc(var( --spacing-base )*4)}.a7UrjhI69Vetlcj9ZVzz{padding-left:calc(var( --spacing-base )*4);padding-right:calc(var( --spacing-base )*4)}.StEhBzGs2Gi5dDEkjhAv{padding-bottom:calc(var( --spacing-base )*4)}.FGneZfZyvYrt1dG0zcnm,.StEhBzGs2Gi5dDEkjhAv{padding-top:calc(var( --spacing-base )*4)}.APEH216rpdlJWgD2fHc8{padding-left:calc(var( --spacing-base )*4)}.oGwXC3ohCic9XnAj6x69{padding-bottom:calc(var( --spacing-base )*4)}.U6gnT9y42ViPNOcNzBwb{padding-right:calc(var( --spacing-base )*4)}.IpdRLBwnHqbqFrixgbYC{padding:calc(var( --spacing-base )*5)}.HgNeXvkBa9o3bQ5fvFZm{padding-left:calc(var( --spacing-base )*5);padding-right:calc(var( --spacing-base )*5)}.tJtFZM3XfPG9v9TSDfN1{padding-bottom:calc(var( --spacing-base )*5)}.PdifHW45QeXYfK568uD8,.tJtFZM3XfPG9v9TSDfN1{padding-top:calc(var( --spacing-base )*5)}.mbLkWTTZ0Za_BBbFZ5b2{padding-left:calc(var( --spacing-base )*5)}.vVWpZpLlWrkTt0hMk8XU{padding-bottom:calc(var( --spacing-base )*5)}.RxfaJj5a1Nt6IavEo5Zl{padding-right:calc(var( --spacing-base )*5)}.SppJULDGdnOGcjZNCYBy{padding:calc(var( --spacing-base )*6)}.palY2nLwdoyooPUm9Hhk{padding-left:calc(var( --spacing-base )*6);padding-right:calc(var( --spacing-base )*6)}.WYw1JvZC0ppLdvSAPhr_{padding-bottom:calc(var( --spacing-base )*6)}.WYw1JvZC0ppLdvSAPhr_,.YEEJ9b90ueQaPfiU8aeN{padding-top:calc(var( --spacing-base )*6)}.QE0ssnsKvWJMqlhPbY5u{padding-left:calc(var( --spacing-base )*6)}.n8yA3jHlMRyLd5UIfoND{padding-bottom:calc(var( --spacing-base )*6)}.tXHmxYnHzbwtfxEaG51n{padding-right:calc(var( --spacing-base )*6)}.kBTsPKkO_3g_tLkj77Um{padding:calc(var( --spacing-base )*7)}.RyhrFx6Y1FGDrGAAyaxm{padding-left:calc(var( --spacing-base )*7);padding-right:calc(var( --spacing-base )*7)}.CBwRpB0bDN3iEdQPPMJO{padding-bottom:calc(var( --spacing-base )*7)}.CBwRpB0bDN3iEdQPPMJO,.vQVSq6SvWKbOMu6r4H6b{padding-top:calc(var( --spacing-base )*7)}.oBy5__aEADMsH46mrgFX{padding-left:calc(var( --spacing-base )*7)}.KVEXoJqf1s92j0JMdNmN{padding-bottom:calc(var( --spacing-base )*7)}.ZMXGNrNaKW3k_3TLz0Fq{padding-right:calc(var( --spacing-base )*7)}.tuiR9PhkHXhGyEgzRZRI{padding:calc(var( --spacing-base )*8)}.U7454qyWkQNa2iaSJziu{padding-left:calc(var( --spacing-base )*8);padding-right:calc(var( --spacing-base )*8)}.VLYIv2GVocjuN93e8HC8{padding-bottom:calc(var( --spacing-base )*8)}.VLYIv2GVocjuN93e8HC8,.X1rm9DQ1zLGLfogja5Gn{padding-top:calc(var( --spacing-base )*8)}.JS7G6kAuqJo5GIuF8S5t{padding-left:calc(var( --spacing-base )*8)}.Y8F9ga1TDCMbM1lj4gUz{padding-bottom:calc(var( --spacing-base )*8)}.AJuyNGrI63BOWql719H8{padding-right:calc(var( --spacing-base )*8)}.jErCC9oKHSM15BxzFyQK{margin-bottom:0}.oVoYbwbFB6U2o90Njusk{font-size:16px;margin:0}.oVoYbwbFB6U2o90Njusk.is-error{background-color:var(--jp-red-0)}.oVoYbwbFB6U2o90Njusk .components-notice__content{align-items:center;display:flex;margin:0;padding:12px 4px}.oVoYbwbFB6U2o90Njusk .components-notice__content>svg{fill:var(--jp-red-60)}.oVoYbwbFB6U2o90Njusk .is-link{color:var(--jp-black);font-size:16px;font-weight:600}.oVoYbwbFB6U2o90Njusk .components-notice__dismiss{align-self:center}.wBVXH4OTNwLHPRpN4nsq{margin-right:8px}.sexr0jUxC1jVixdKiDnC{margin-right:-20px}@media(max-width:782px){.sexr0jUxC1jVixdKiDnC{margin-right:-10px}}.sexr0jUxC1jVixdKiDnC.vKQ11sLeAM45M04P1ccj{background-color:var(--jp-white)}.SqdhUZkXCRuIpErj1B3z{--max-container-width:1128px;--vertical-gutter:24px;--horizontal-spacing:8px;column-gap:var(--vertical-gutter);display:grid;margin:0 auto;max-width:var(--max-container-width);width:100%}@media(max-width:599px){.SqdhUZkXCRuIpErj1B3z{grid-template-columns:repeat(4,minmax(0,1fr));padding:0 16px}}@media(min-width:600px)and (max-width:959px){.SqdhUZkXCRuIpErj1B3z{grid-template-columns:repeat(8,minmax(0,1fr));padding:0 18px}}@media(min-width:960px){.SqdhUZkXCRuIpErj1B3z{grid-template-columns:repeat(12,minmax(0,1fr));padding:0 24px}}.SqdhUZkXCRuIpErj1B3z.OZC_9a1LhpWF9dv15Gdh{max-width:none;padding:unset}@media(max-width:599px){.RuVLl3q4lxTQa3wbhBJB{grid-column-end:span 1}.f9LZTRG4MMK42rS89afW{grid-column-start:1}.bHe_zKxjjpUwHw_MdYE1{grid-column-end:2}.QZbNrOqE2aNSn50xVhpU{grid-column-end:span 2}.ev7W3z7zVYPeHAlYqZjf{grid-column-start:2}.NJWd1m_e7lOiPYru2ZMP{grid-column-end:3}.Xc6nt1Qc1DI0Z2A3gt1r{grid-column-end:span 3}.UIcN_GXiPRoIsin8Kohg{grid-column-start:3}.GRKCyqb5LufCSCgykKFc{grid-column-end:4}.i_qTq8gqhhC3vIUepVRB{grid-column-end:span 4}.G3qaZ3Jpbvam_1XvGxgc{grid-column-start:4}.VRCNYKZtO9zukEwmgP1y{grid-column-end:5}}@media(min-width:600px)and (max-width:959px){.tRm008K_WJL79WoNZTNL{grid-column-end:span 1}.l5T2P_bgKts4tdaRkS1d{grid-column-start:1}.zOCxfLZpF6BlgC7a_Yq1{grid-column-end:2}.F80DdgVn0m5OpvtSQWka{grid-column-end:span 2}.oI1c7JYfiJtMQHbhngtU{grid-column-start:2}.pMQtA_4jh1_1lVknqEP5{grid-column-end:3}.VenqMpdgyKQVUNNQcfqd{grid-column-end:span 3}.seNYL99uoczf9V4MxBxT{grid-column-start:3}.YKfF1HFhI9KygA5l3b2J{grid-column-end:4}.yAi0Cv1xDWkoqsaUhvhR{grid-column-end:span 4}.ubhnyZOnkgxNhh6XtVWv{grid-column-start:4}.RGOPGQbWMJ9Ei5oFxS7X{grid-column-end:5}.Sz1E2aWbX483ijdi6yge{grid-column-end:span 5}.tku6_bRYrX9tMbgYGmIl{grid-column-start:5}.b5JHttOhSEcI1WBlqAjk{grid-column-end:6}.FboSx5MoKTAWbxXyYlCw{grid-column-end:span 6}.Jhs8yEEmodG30edbJvag{grid-column-start:6}.IpzbbKVqEqPcfIGkXkwt{grid-column-end:7}.mhCPwfAZ4Kmm_empzJAq{grid-column-end:span 7}.x034ilrJF7rO9UJB2rI1{grid-column-start:7}.Wt8t2e16viRrOJ1lLA5v{grid-column-end:8}.S6pIrEy9AMLKx9bgh_Ae{grid-column-end:span 8}.kEfI4tGyuWfHTlRnvIab{grid-column-start:8}.PUzX4RRsKq1dnsz3gebS{grid-column-end:9}}@media(min-width:960px){.X_pdcLJikd8LS_YAdJlB{grid-column-end:span 1}.tl936d14Huby4khYp05X{grid-column-start:1}.hnge0LnR69d3NXEtEE1t{grid-column-end:2}.fj0NUMuyZQcPNgKcjp5Z{grid-column-end:span 2}.R2ncBX7a2NigdYCcV1OX{grid-column-start:2}.t8vMSDVYno9k9itRwnXb{grid-column-end:3}.wsDuEN2GqHx6qzo8dUdk{grid-column-end:span 3}.cIEVPUweWtLBy3xaXnMx{grid-column-start:3}.fajUWBwu1m2B479j3jmz{grid-column-end:4}.YR0c7fQTgMkDdWzwSyLp{grid-column-end:span 4}.xlwp8BmplxkKNMI7gamo{grid-column-start:4}._C4O1w9DUqx1m3gPf8aA{grid-column-end:5}.Z54F1hAErckAIrKlxnXW{grid-column-end:span 5}.ezSDWkRHmKSxDJXxuiOH{grid-column-start:5}.T0ChoeAjGJjkkNrYhD4g{grid-column-end:6}.qtMoMPF6yHvGJnWHSsde{grid-column-end:span 6}.gdoywN5VPiWERfIBqkph{grid-column-start:6}.wUev_VH5uf_pwFFlbnAU{grid-column-end:7}.egIPDFJsOpownTClq9XP{grid-column-end:span 7}.yGhp9yoAW7k0kQik9AB7{grid-column-start:7}.SJ43U9mR5wUg5V2qBeQA{grid-column-end:8}.cTuyHfMwSUJxN_HdIEgd{grid-column-end:span 8}.smCr8DaIagcumdvdldiK{grid-column-start:8}.T03NHzQJvzwL6wAfIiTL{grid-column-end:9}.pMvxM3RJGjqyNdf9qg1Y{grid-column-end:span 9}.iIVpNRwEnQ_JI5gpp9EN{grid-column-start:9}.ZbQ4u4vGSX5rJOje4uGL{grid-column-end:10}.gKb5wuIDAlKGbrjK2vxy{grid-column-end:span 10}.Z7pINdImE2WJiYnZBTqm{grid-column-start:10}.ZTxp6qpvwurMdOnLLSz1{grid-column-end:11}.NnQTlbfnxPDR6cQ7rygg{grid-column-end:span 11}.O137wZd6Yl0olSA9PsXR{grid-column-start:11}.zf2OJtQ2MPz6SDoh6CB0{grid-column-end:12}.U3H6UHW6HqRt9hdzVg3O{grid-column-end:span 12}.zynnNeS_ZBTxABcVpUQH{grid-column-start:12}.vI8tltFZtFUNAy9Iag9s{grid-column-end:13}}.jp-dashboard-footer{align-items:center;color:#000;display:flex;flex-flow:row wrap;justify-content:space-between;max-width:1128px;width:100%}.jp-dashboard-footer a,.jp-dashboard-footer a:hover,.jp-dashboard-footer a:visited{color:#000;text-decoration:none}.jp-dashboard-footer__jetpack-symbol,.jp-dashboard-footer__module-name{display:inline-block;vertical-align:middle}.jp-dashboard-footer__module-name{font-size:12px;font-weight:600;margin-right:5px}.vMa4i_Dza2t5Zi_Bw9Nf{background:var(--jp-white-off)}.sDAzdUdcbaYmUMZBe2XW{fill:#2c3338}.cuoSlhSNrqf1dozY22Xb{fill:#000}.JLquNpQVlysAamuh5lJO,.lAIiifeLMmZAPlQ9n9ZR{fill:var(--jp-green-primary)}.cbOwD8Y4tFjwimmtchQI{fill:#757575}.cbOwD8Y4tFjwimmtchQI.aHOlEBGD5EA8NKRw3xTw{fill:var(--color-facebook);border-radius:50%!important}.cbOwD8Y4tFjwimmtchQI.af4Y_zItXvLAOEoSDPSv{fill:var(--color-twitter)}.cbOwD8Y4tFjwimmtchQI.f68aqF3XSD1OBvXR1get{fill:var(--color-linkedin)}.cbOwD8Y4tFjwimmtchQI.xFI0dt3UiXRlRQdqPWkx{fill:var(--color-tumblr)}.cbOwD8Y4tFjwimmtchQI.q7JEoyymveP6kF747M43{fill:var(--color-gplus)}.cAbGtJDGgLubucBnz7vM{background-color:var(--jp-white)}.wiobThfXJCuhGNrbFIT6 a,.wiobThfXJCuhGNrbFIT6 a:active,.wiobThfXJCuhGNrbFIT6 a:hover{color:var(--jp-black)}.VgAxgahF9bC2M__FiIgV{margin-bottom:calc(var(--spacing-base)*3)}.Doju0RxvvN9JS12mf489{line-height:calc(var(--spacing-base)*3);margin:0 0 var(--spacing-base) 0}.zI5tJ_qhWE6Oe6Lk75GY{--wp-admin-theme-color:var(--jp-black);--wp-admin-theme-color-darker-10:var(--jp-black-80);--wp-admin-theme-color-darker-20:var(--jp-black-80);--wp-admin-border-width-focus:1.5px;border-radius:var(--jp-border-radius);font-weight:600;justify-content:center}.zI5tJ_qhWE6Oe6Lk75GY.ipS7tKy9GntCS4R3vekF{font-size:var(--font-body);height:auto;line-height:24px;padding:var(--spacing-base) calc(var(--spacing-base)*3)}.zI5tJ_qhWE6Oe6Lk75GY.ipS7tKy9GntCS4R3vekF.paGLQwtPEaJmtArCcmyK{padding:var(--spacing-base) calc(var(--spacing-base)*2)}.zI5tJ_qhWE6Oe6Lk75GY.Na39I683LAaSA99REg14{font-size:var(--font-body-extra-small);height:auto;line-height:20px;padding:calc(var(--spacing-base)/2) var(--spacing-base)}.zI5tJ_qhWE6Oe6Lk75GY.Na39I683LAaSA99REg14.paGLQwtPEaJmtArCcmyK>svg:first-child{margin-left:calc(var(--spacing-base)/2)}.zI5tJ_qhWE6Oe6Lk75GY.Na39I683LAaSA99REg14>.components-spinner{height:20px}.zI5tJ_qhWE6Oe6Lk75GY.lZAo6_oGfclXOO9CC6Rd{font-weight:400}.zI5tJ_qhWE6Oe6Lk75GY.is-primary:disabled,.zI5tJ_qhWE6Oe6Lk75GY.is-secondary:disabled{background:var(--jp-gray);color:var(--jp-gray-20)}.zI5tJ_qhWE6Oe6Lk75GY.is-secondary:active:not(:disabled),.zI5tJ_qhWE6Oe6Lk75GY.is-secondary:hover:not(:disabled){background:var(--jp-gray-0)}.zI5tJ_qhWE6Oe6Lk75GY.is-link.Na39I683LAaSA99REg14,.zI5tJ_qhWE6Oe6Lk75GY.is-link.ipS7tKy9GntCS4R3vekF{padding:0}.zI5tJ_qhWE6Oe6Lk75GY.is-link:hover:not(:disabled){text-decoration-thickness:3px}.zI5tJ_qhWE6Oe6Lk75GY.is-link:focus:not(:disabled){text-decoration-line:none}.zI5tJ_qhWE6Oe6Lk75GY.is-destructive.is-primary{box-shadow:none}.zI5tJ_qhWE6Oe6Lk75GY.is-destructive.is-primary:not(:disabled){background:var(--jp-red-50);box-shadow:inset 0 0 0 1px var(--jp-red-50);color:var(--jp-white)}.zI5tJ_qhWE6Oe6Lk75GY.is-destructive.is-primary:hover:not(:disabled){background:var(--jp-red-60);box-shadow:inset 0 0 0 1px var(--jp-red-60)}.zI5tJ_qhWE6Oe6Lk75GY.is-destructive.is-primary:focus:not(:disabled){background:var(--jp-red-70);box-shadow:inset 0 0 0 1px var(--jp-white),0 0 0 var(--wp-admin-border-width-focus) var(--jp-red-70);color:var(--jp-white)}.zI5tJ_qhWE6Oe6Lk75GY.is-destructive.is-primary:active:not(:disabled){background:var(--jp-red-50)}.zI5tJ_qhWE6Oe6Lk75GY.is-destructive.is-secondary{box-shadow:none}.zI5tJ_qhWE6Oe6Lk75GY.is-destructive.is-secondary:not(:disabled){background:var(--jp-white);box-shadow:inset 0 0 0 1px var(--jp-red-50);color:var(--jp-red-50)}.zI5tJ_qhWE6Oe6Lk75GY.is-destructive.is-secondary:hover:not(:disabled){background:var(--jp-red-0);box-shadow:inset 0 0 0 1px var(--jp-red-60);color:var(--jp-red-60)}.zI5tJ_qhWE6Oe6Lk75GY.is-destructive.is-secondary:focus:not(:disabled){box-shadow:inset 0 0 0 1px var(--jp-white),0 0 0 var(--wp-admin-border-width-focus) var(--jp-red-70);color:var(--jp-red-70)}.zI5tJ_qhWE6Oe6Lk75GY.is-destructive.is-secondary:active:not(:disabled){background:var(--jp-gray-0)}.zI5tJ_qhWE6Oe6Lk75GY.is-destructive.is-link:not(:disabled){color:var(--jp-red-50)}.zI5tJ_qhWE6Oe6Lk75GY.is-destructive.is-link:hover:not(:disabled){box-shadow:none;color:var(--jp-red-60)}.zI5tJ_qhWE6Oe6Lk75GY.is-destructive.is-link:focus:not(:disabled){box-shadow:inset 0 0 0 1px var(--jp-white),0 0 0 var(--wp-admin-border-width-focus) var(--jp-red-70);color:var(--jp-red-70)}.zI5tJ_qhWE6Oe6Lk75GY.q_tVWqMjl39RcY6WtQA6{position:relative}.zI5tJ_qhWE6Oe6Lk75GY.q_tVWqMjl39RcY6WtQA6.has-icon{justify-content:center}.zI5tJ_qhWE6Oe6Lk75GY.q_tVWqMjl39RcY6WtQA6>:not(.components-spinner){visibility:hidden}.zI5tJ_qhWE6Oe6Lk75GY.q_tVWqMjl39RcY6WtQA6>.components-spinner{margin:0;position:absolute}.CDuBjJp_8jxzx5j6Nept{margin-right:calc(var(--spacing-base)/2)}.jp-connection-status-card h3{color:var(--jp-black);font-size:var(--font-title-large);font-weight:700;line-height:1.1;margin:0}.jp-connection-status-card a,.jp-connection-status-card a:active,.jp-connection-status-card a:hover{color:var(--jp-black)}.jp-connection-status-card p{color:var(--jp-black);margin:16px 0}.jp-connection-status-card a,.jp-connection-status-card li,.jp-connection-status-card p{font-size:var(--font-body);line-height:24px}.jp-connection-status-card--status{align-items:center;display:flex;margin:24px -6px 24px 0}.jp-connection-status-card--cloud{background-image:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNDIiIGhlaWdodD0iNDIiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PG1hc2sgaWQ9ImEiIG1hc2stdHlwZT0iYWxwaGEiIG1hc2tVbml0cz0idXNlclNwYWNlT25Vc2UiIHg9IjciIHk9IjkiIHdpZHRoPSIyOCIgaGVpZ2h0PSIyMSI+PHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik0zMC4zMzMgMTcuNjk3di0uMDhjMC00LjI1My0zLjc2LTcuNy04LjQtNy43LTMuOTE2IDAtNy4yMDYgMi40NTctOC4xMzYgNS43OGE2LjM4NiA2LjM4NiAwIDAgMC0uMjY0LS4wMDVDOS45MjUgMTUuNjkyIDcgMTguNzA4IDcgMjIuNDI5czIuOTI1IDYuNzM4IDYuNTMzIDYuNzM4SDI5LjRjMy4wOTMgMCA1LjYtMi41ODYgNS42LTUuNzc1IDAtMi44NjEtMi4wMTgtNS4yMzctNC42NjYtNS42OTVaIiBmaWxsPSIjZmZmIi8+PC9tYXNrPjxnIG1hc2s9InVybCgjYSkiPjxwYXRoIGQ9Im0zMC4zMzMgMTcuNjk3LTIuNjI1LS4wMy0uMDI1IDIuMjM1IDIuMjAyLjM4MS40NDgtMi41ODZabS0xNi41MzctMi0uMTA3IDIuNjIzIDIuMDc1LjA4NS41Ni0yLTIuNTI4LS43MDhabS0uMjYzIDEzLjQ3djIuNjI1aC4wMDhsLS4wMDgtMi42MjVabS4wNCAwdi0yLjYyNWgtLjAwOWwuMDA4IDIuNjI1Wm0xNS43OTUgMCAuMDE1LTIuNjI1aC0uMDE1djIuNjI1Wm0zLjU5LTExLjQ0MXYtLjExaC01LjI1di4wNTJsNS4yNS4wNThabTAtLjExYzAtNS45MTItNS4xNTUtMTAuMzI0LTExLjAyNS0xMC4zMjR2NS4yNWMzLjQxIDAgNS43NzUgMi40ODIgNS43NzUgNS4wNzVoNS4yNVpNMjEuOTMzIDcuMjkzYy00Ljk4NCAwLTkuMzg4IDMuMTM5LTEwLjY2NCA3LjY5OGw1LjA1NSAxLjQxNWMuNTg1LTIuMDg5IDIuNzYyLTMuODYzIDUuNjEtMy44NjN2LTUuMjVabS04LjAzIDUuNzgyYTkuMTExIDkuMTExIDAgMCAwLS4zNy0uMDA3djUuMjVjLjA1MyAwIC4xMDUuMDAxLjE1Ni4wMDNsLjIxNS01LjI0NlptLS4zNy0uMDA3Yy01LjEzMyAwLTkuMTU4IDQuMjY4LTkuMTU4IDkuMzYyaDUuMjVjMC0yLjM0OCAxLjgyNS00LjExMiAzLjkwOC00LjExMnYtNS4yNVptLTkuMTU4IDkuMzYyYzAgNS4wOTUgNC4wMjUgOS4zNjMgOS4xNTggOS4zNjN2LTUuMjVjLTIuMDgzIDAtMy45MDgtMS43NjUtMy45MDgtNC4xMTNoLTUuMjVabTkuMTY2IDkuMzYzaC4wNGwtLjAxNy01LjI1aC0uMDM5bC4wMTYgNS4yNVptLjAzMSAwaDE1Ljc5NnYtNS4yNUgxMy41NzJ2NS4yNVptMTUuODI3LTUuMjVoLS4wMTZsLS4wMyA1LjI1aC4wNDZ2LTUuMjVabTIuOTc1LTMuMTVjMCAxLjgxNi0xLjQwNyAzLjE1LTIuOTc1IDMuMTV2NS4yNWM0LjYxOCAwIDguMjI1LTMuODM4IDguMjI1LTguNGgtNS4yNVptLTIuNDg5LTMuMTA5YzEuMzU1LjIzNSAyLjQ5IDEuNDg4IDIuNDkgMy4xMDloNS4yNWMwLTQuMTAyLTIuOTAyLTcuNi02Ljg0NC04LjI4MmwtLjg5NiA1LjE3M1oiIGZpbGw9IiMxRTFFMUUiLz48L2c+PC9zdmc+);height:42px;margin-left:4px;width:42px}.jp-connection-status-card--jetpack-logo{background-image:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzIiIGhlaWdodD0iMzIiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTE2IDMyYzguODM3IDAgMTYtNy4xNjMgMTYtMTZTMjQuODM3IDAgMTYgMCAwIDcuMTYzIDAgMTZzNy4xNjMgMTYgMTYgMTZaIiBmaWxsPSIjMDAwIi8+PHBhdGggZD0iTTE2Ljc5NCAxMy4zMTN2MTUuNTExbDgtMTUuNTEyaC04Wk0xNS4xNzUgMTguNjU3VjMuMTc2bC03Ljk2OSAxNS40OGg3Ljk3WiIgZmlsbD0iI2ZmZiIvPjwvc3ZnPg==);height:32px;margin-right:11px;width:32px}.jp-connection-status-card--btn-connect-user{font-size:var(--font-body);font-weight:400;line-height:24px}.jp-connection-status-card--avatar{background-color:var(--jp-white);background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width='32' height='32' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='16' cy='16' r='16' fill='%23fff'/%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M4.498 27.123C6.038 24.165 10.916 21.5 16 21.5c5.084 0 9.963 2.665 11.502 5.623a15.952 15.952 0 0 1-11.257 4.875L16 32l-.245-.002a15.952 15.952 0 0 1-11.257-4.875zM16 8a6 6 0 1 1 0 12 6 6 0 0 1 0-12z' fill='%23A2AAB2'/%3E%3C/svg%3E");background-repeat:no-repeat;background-size:contain;border:0;border-radius:20px;height:32px;margin-right:-10px;width:32px}.jp-connection-status-card--line{border-top:2px solid var(--jp-black);height:0;width:67px}.jp-connection-status-card--line.jp-connection-status-card--site-only{border-top-style:dashed}.jp-connection-status-card--list{list-style-type:none;margin:16px 0}.jp-connection-status-card--list li{color:var(--jp-black);margin:0 -3px 8px 0;padding-right:25px}.jp-connection-status-card--list-item-success{background:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0ibTE4LjkzNSA2LTguOSAxMS45Ny01LjE2Mi0zLjgzNyIgc3Ryb2tlPSIjMUUxRTFFIiBzdHJva2Utd2lkdGg9IjEuNSIvPjwvc3ZnPg==) no-repeat 100% 0}.jp-connection-status-card--list-item-error{background:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTEyIDIwYTggOCAwIDEgMCAwLTE2IDggOCAwIDAgMCAwIDE2WiIgc3Ryb2tlPSIjRDYzNjM5IiBzdHJva2Utd2lkdGg9IjEuNSIvPjxwYXRoIGQ9Ik0xMyA3aC0ydjZoMlY3Wk0xMyAxNWgtMnYyaDJ2LTJaIiBmaWxsPSIjRDYzNjM5Ii8+PC9zdmc+) no-repeat 100% 0;color:var(--jp-red-60)!important}.jp-connection-status-card--list-item-info{background:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTEyIDIwYTggOCAwIDEgMCAwLTE2IDggOCAwIDAgMCAwIDE2WiIgc3Ryb2tlPSIjMDAwIiBzdHJva2Utd2lkdGg9IjEuNSIvPjxwYXRoIGQ9Ik0xMyA3aC0ydjZoMlY3Wk0xMyAxNWgtMnYyaDJ2LTJaIiBmaWxsPSIjMDAwIi8+PC9zdmc+) no-repeat 100% 0}.jp-connection__disconnect-dialog h1{font-size:var(--font-title-small);font-weight:600;line-height:1.2;margin-top:0}.jp-connection__disconnect-dialog h2{font-size:var(--font-title-small);font-weight:400;line-height:1.2;margin:0}.jp-connection__disconnect-dialog p{font-size:var(--font-body);margin-top:0}.jp-connection__disconnect-dialog p.jp-connection__disconnect-dialog__large-text,.jp-connection__disconnect-dialog__large-text{font-size:1.25rem}.jp-connection__disconnect-dialog .jp-connection__disconnect-dialog__link,.jp-connection__disconnect-dialog__link{color:var(--jp-black);font-size:var(--font-body);font:inherit;height:auto;padding:0;text-decoration:underline}.jp-connection__disconnect-dialog .jp-connection__disconnect-dialog__link:hover,.jp-connection__disconnect-dialog__link:hover{color:var(--jp-black);text-decoration-thickness:var(--jp-underline-thickness)}.jp-connection__disconnect-dialog .jp-connection__disconnect-dialog__link:focus,.jp-connection__disconnect-dialog__link:focus{box-shadow:none!important;color:var(--jp-black)}.jp-connection__disconnect-dialog .jp-connection__disconnect-dialog__link--bold,.jp-connection__disconnect-dialog__link--bold{font-weight:700}.jp-connection__disconnect-dialog .components-button{border-radius:4px;font-size:var(--font-body-small);height:40px}.jp-connection__disconnect-dialog .components-modal__content{display:flex;flex-direction:column;flex-grow:1;margin:0;padding:0}.jp-connection__disconnect-dialog .components-modal__content:before,.jp-connection__disconnect-dialog .components-modal__header{display:none}.jp-connection__disconnect-dialog .jp-row{align-items:center;width:calc(100% - 48px)}.jp-connection__disconnect-dialog__content{align-items:center;background:var(--jp-white-off);border-radius:4px;display:flex;flex-direction:column;flex-grow:1;justify-content:center;margin:0;padding:2rem 1rem;text-align:center}.jp-connection__disconnect-dialog__actions{background:var(--jp-white);border-top:1px solid var(--jp-gray);bottom:0;padding:2rem 0;position:sticky}.jp-connection__disconnect-dialog__actions p{margin-bottom:0}.jp-connection__disconnect-dialog__actions:before{background:linear-gradient(to bottom,transparent,var(--jp-white-off));bottom:calc(100% + 1px);content:"";display:block;height:80px;position:absolute;right:0;width:100%}.jp-connection__disconnect-dialog__btn-dismiss,.jp-connection__disconnect-dialog__btn-dismiss.components-button{background:var(--jp-black)!important;margin-left:10px}.jp-connection__disconnect-dialog__btn-disconnect{background:var(--jp-red)!important}.jp-connection__disconnect-dialog__btn-back-to-wp{background:var(--jp-black)!important}.jp-connection__disconnect-dialog__button-wrap{text-align:right}@media(min-width:960px){.jp-connection__disconnect-dialog__button-wrap{text-align:center}}.jp-connection__disconnect-dialog__error{color:var(--jp-red)}.jp-connection__disconnect-dialog__survey{margin-bottom:1.5rem;max-width:100%}.jp-connection__disconnect-dialog__step-copy{margin:0 auto;max-width:800px}.jp-connection__disconnect-dialog__step-copy--narrow{max-width:600px}@media(max-height:900px){.jp-connection__disconnect-dialog__content .jp-components__decorative-card{display:none}}@media(min-width:600px){.jp-connection__disconnect-dialog,.jp-connection__disconnect-dialog.components-modal__frame{max-width:calc(100% - 32px);width:100%}.jp-connection__disconnect-dialog__actions,.jp-connection__disconnect-dialog__content{padding:2rem}}@media(min-width:960px){.jp-connection__disconnect-dialog,.jp-connection__disconnect-dialog.components-modal__frame{display:flex;flex-direction:column;height:900px;width:1200px}.jp-connection__disconnect-dialog h1{font-size:var(--font-title-large)}.jp-connection__disconnect-dialog p.jp-connection__disconnect-dialog__large-text,.jp-connection__disconnect-dialog__large-text{font-size:1.5rem}.jp-connection__disconnect-dialog__content{padding:80px}.jp-connection__disconnect-dialog__actions{padding:2rem 3rem}.jp-row{margin-right:0}}.jp-connection__disconnect-card{background-color:var(--jp-white);border:none;border-radius:3px;box-shadow:0 0 15px var(--jp-gray-off);margin:0 auto 1rem;max-width:100%;padding:1rem 2rem;text-align:right;width:800px}.jp-connection__disconnect-card__group{margin-bottom:1rem;max-width:100%}.jp-connection__disconnect-card__card-content{display:block;font-size:.875rem}@media only screen and (min-width:782px){.jp-connection__disconnect-card__card-content{align-items:center;display:flex;justify-content:space-between}}.jp-connection__disconnect-card .jp-connection__disconnect-card__card-headline,.jp-connection__disconnect-card__card-headline{flex-shrink:0;font-size:1.25rem;font-weight:600;margin-bottom:0;margin-top:0}@media only screen and (min-width:782px){.jp-connection__disconnect-card .jp-connection__disconnect-card__card-headline,.jp-connection__disconnect-card__card-headline{font-size:1.5rem;margin-left:1.5rem}}@media only screen and (max-width:782px){.jp-connection__disconnect-card .jp-connection__disconnect-card__card-headline+.jp-disconnect-card__card-stat-block,.jp-connection__disconnect-card__card-headline+.jp-disconnect-card__card-stat-block{margin-top:.5rem}}.jp-connection__disconnect-card__card-stat-block{align-items:baseline;display:flex;flex-grow:1}@media only screen and (min-width:782px){.jp-connection__disconnect-card__card-stat-block{flex-direction:row-reverse}}.jp-connection__disconnect-card__card-description{flex-grow:1}@media only screen and (min-width:782px){.jp-connection__disconnect-card__card-description{text-align:left}}.jp-connection__disconnect-card__card-stat{font-size:1rem;font-weight:600;margin-left:.5rem}@media only screen and (min-width:782px){.jp-connection__disconnect-card__card-stat{font-size:1.5rem;margin-left:0;margin-right:1rem}}.jp-components__decorative-card{border-radius:8px;box-shadow:0 0 15px var(--jp-gray);display:flex;height:280px;margin:0 auto 3rem;max-width:100%;overflow:hidden;position:relative;width:360px}.jp-components__decorative-card__content,.jp-components__decorative-card__image{width:50%}.jp-components__decorative-card__image{background:var(--jp-gray);background-size:cover;position:relative}.jp-components__decorative-card__image:before{background-image:url('data:image/svg+xml;uf8,<svg width="38" height="8" viewBox="0 0 38 8" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M1 7C1 7 2.37087 1 6.89831 1C11.4257 1 14.3709 7 18.8983 7C23.4257 7 26.7777 1 31.3051 1C35.912 1 37 7 37 7" stroke="white" stroke-width="1.5" stroke-linejoin="round"/></svg>');content:"";display:block;height:8px;position:absolute;right:24px;top:24px;width:38px}.jp-components__decorative-card__content{background:#fff;padding:2rem}.jp-components__decorative-card__icon-container{background:var(--jp-red);border-radius:50px;height:80px;position:absolute;right:50%;top:50%;transform:translate(50%,-50%);width:80px}.jp-components__decorative-card__icon{background-position:50%,50%;background-repeat:no-repeat;height:40px;position:absolute;right:50%;top:50%;transform:translate(50%,-50%);width:40px}.jp-components__decorative-card__icon--unlink{background-image:url('data:image/svg+xml;uf8,<svg width="34" height="37" viewBox="0 0 34 37" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M22.3335 10.001H25.0002C29.4184 10.001 33.0002 13.5827 33.0002 18.001V19.7788C33.0002 24.197 29.4184 27.7788 25.0002 27.7788H22.3335" stroke="white" stroke-width="1.5" stroke-linecap="square"/> <path d="M11.6675 27.7783L9.00082 27.7783C4.58254 27.7783 1.00081 24.1966 1.00081 19.7783L1.00081 18.0005C1.00081 13.5823 4.58253 10.0005 9.00081 10.0005L11.6675 10.0005" stroke="white" stroke-width="1.5" stroke-linecap="square"/> <path d="M10.9998 19.167L16.9998 19.167" stroke="white" stroke-width="1.5"/> <path d="M8.99951 35.998L24.9995 0.998048" stroke="white"/> </svg>')}.jp-components__decorative-card__lines,.jp-components__decorative-card__lines:after,.jp-components__decorative-card__lines:before{background:#e9eff5;border-radius:6px;display:block;height:12px;position:relative;width:100%}.jp-components__decorative-card__lines:after,.jp-components__decorative-card__lines:before{content:"";top:calc(100% + 16px)}.jp-components__decorative-card__lines:after{top:calc(100% + 32px);width:75%}.jp-components__decorative-card--vertical{flex-direction:column}.jp-components__decorative-card--vertical .jp-components__decorative-card__content,.jp-components__decorative-card--vertical .jp-components__decorative-card__image{height:50%;width:100%}.jp-components__decorative-card--vertical .jp-components__decorative-card__lines{margin-left:auto;margin-right:auto;max-width:135px}.jp-components__decorative-card--vertical .jp-components__decorative-card__lines:after,.jp-components__decorative-card--vertical .jp-components__decorative-card__lines:before{margin-left:auto;margin-right:auto}.jp-connect__disconnect-survey-card{border:2px solid transparent;border-radius:4px;box-shadow:0 0 15px var(--jp-gray-off);margin-left:auto;margin-right:auto;max-width:100%;padding:1rem;position:relative;text-align:right;width:800px}.jp-connect__disconnect-survey-card--selected{background:var(--jp-gray-off);border-color:var(--jp-black)}.jp-connect__disconnect-survey-card:after{border-left:2px solid var(--jp-black);border-top:2px solid var(--jp-black);content:"";display:block;height:5px;left:1.5rem;position:absolute;top:50%;transform:translateY(-50%) rotate(-45deg);width:5px}.jp-connect__disconnect-survey-card:hover{cursor:pointer}.jp-connect__disconnect-survey-card:focus:not(.jp-disconnect-survey-card--selected),.jp-connect__disconnect-survey-card:hover:not(.jp-disconnect-survey-card--selected){border-color:var(--jp-black-80)}.jp-connect__disconnect-survey-card__answer{align-items:center;display:flex;font-weight:700;margin:0}input.jp-connect__disconnect-survey-card__input{-webkit-appearance:none;background-color:transparent;border:none;color:var(--jp-black-80);flex-grow:1;max-width:calc(100% - 40px);padding-left:40px}.zvd4dCB_bBDiXJKKDqXm{position:relative}.ly4o9lSswAGHFXqGUEIO{left:32px;position:absolute;top:32px;z-index:1}.u64Go3kwEZ7MD9eji0H1{color:var(--jp-gray-50);font-size:13px;margin-bottom:16px;width:60%}._RT41NE3LU4R0ubcij2y{align-items:center;display:flex}.cFGWJeRiGHjAr8D7CWJW{margin-left:8px;width:100px}.Iz3l7a05TP6HK9S92TIL{width:16px}.lmQ0wFmnk4kKkGVjokPA{height:18px;margin-right:8px}.AoIs8wD92wKR8RpQj6Uc{align-items:center;display:inline-flex}.rV_5QyvhDnsVjCX4pb0h{--gray-90:#1e1e1e;fill:var(--gray-90);width:24px}.MO1jDNY8VPqeNS9xL8jE{align-items:center;display:flex;text-decoration:none}.jp-connection__connect-screen__loading{display:none}.jp-connection__connect-screen__tos{margin-top:28px;max-width:360px}.jp-connection__connect-screen .jp-action-button{margin-top:40px}.jp-connection__connect-screen .jp-action-button button{max-width:100%}.jp-connection__connect-screen .jp-action-button button:disabled{color:hsla(0,0%,100%,.4)}@media(max-width:782px){.jp-connection__connect-screen .jp-action-button button{max-width:none;width:100%}}.jp-connection__connect-screen__footer{margin-top:32px}.jp-connection__connect-screen-layout{background:var(--jp-white);border-radius:4px;box-shadow:0 0 40px rgba(0,0,0,.08)}.jp-connection__connect-screen-layout__loading{display:none}.jp-connection__connect-screen-layout__left,.jp-connection__connect-screen-layout__right{box-sizing:border-box}.jp-connection__connect-screen-layout__left{padding:25px}@media(min-width:600px){.jp-connection__connect-screen-layout__left{padding:64px 96px}}.jp-connection__connect-screen-layout__left .jetpack-logo{margin-bottom:24px}.jp-connection__connect-screen-layout__left h2{color:var(--jp-black);font-size:36px;font-style:normal;font-weight:700;line-height:40px;margin-bottom:0;margin-top:32px}.jp-connection__connect-screen-layout__left h3{color:var(--jp-black);font-size:24px;font-style:normal;font-weight:500;line-height:32px;margin-bottom:0;margin-top:32px}.jp-connection__connect-screen-layout__left li,.jp-connection__connect-screen-layout__left p{font-size:16px;font-style:normal;font-weight:400;line-height:24px}.jp-connection__connect-screen-layout__left p{color:#101517;margin:16px 0}.jp-connection__connect-screen-layout__left a{color:var(--jp-black);font-size:var(--font-body);font:inherit;height:auto;padding:0;text-decoration:underline}.jp-connection__connect-screen-layout__left a:hover{color:var(--jp-black);text-decoration-thickness:var(--jp-underline-thickness)}.jp-connection__connect-screen-layout__left a:focus{box-shadow:none!important;color:var(--jp-black)}.jp-connection__connect-screen-layout__left ul{list-style-type:none;padding:0}.jp-connection__connect-screen-layout__left ul li{background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAMAAABg3Am1AAAANlBMVEVHcEwFnwUInggGnggGnggHnAcAnwUFnQcAnwcGnwkFnQgGnQgFnwcGnQYFnQcFnAcGnQkDnwdhiL0pAAAAEnRSTlMAMF//f2Aw7yBQ3+9gcIBgcED+HDbkAAAAZklEQVR4Ae3LNwICARDDQC0+cv7/Y8mwV9odSfWIcf/+VegnGkIvDaGXKvTTn/Gz+Uf5xTL0K1XotS7fs5H6GHvvaO8d7c3j7rdgHne/A/PYt/cO+R42oYdN6OEQetiFHo4A//6dAXqtBEkmtWutAAAAAElFTkSuQmCC) no-repeat;background-size:24px;color:var(--jp-black);margin-bottom:9px;padding-right:30px}.jp-connection__connect-screen-layout__right{padding:64px 0}.jp-connection__connect-screen-layout__right img{max-width:100%}.jp-connection__connect-screen-layout__two-columns{display:flex;flex-wrap:wrap}.jp-connection__connect-screen-layout__two-columns .jp-connection__connect-screen-layout__left{flex-basis:100%;flex-grow:1}@media(min-width:1080px){.jp-connection__connect-screen-layout__two-columns .jp-connection__connect-screen-layout__left{flex-basis:52%}}.jp-connection__connect-screen-layout__two-columns .jp-connection__connect-screen-layout__right{background:#f9f9f6;display:none;flex-basis:47%;flex-grow:1}@media(min-width:1080px){.jp-connection
|