This commit is contained in:
zbatte committed 2026-07-02 15:54:39 -06:00
commit 9883323161
17470 files changed
+4470592

No files matched your search

Binary file not shown.

After

Width:  |  Height:  |  Size: 267 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 62 KiB

@@ -0,0 +1,8 @@
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
<mask id="mask0_2115_8307" style="mask-type:alpha" maskUnits="userSpaceOnUse" x="3" y="5" width="18" height="14">
<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"/>
</mask>
<g mask="url(#mask0_2115_8307)">
<rect width="23.8823" height="24" fill="#069E08"/>
</g>
</svg>

After

Width:  |  Height:  |  Size: 446 B

@@ -0,0 +1,41 @@
<svg width="363" height="600" viewBox="0 0 363 600" fill="none" xmlns="http://www.w3.org/2000/svg">
<mask id="mask0_2115_8320" style="mask-type:alpha" maskUnits="userSpaceOnUse" x="0" y="0" width="363" height="666">
<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"/>
</mask>
<g mask="url(#mask0_2115_8320)">
<g filter="url(#filter0_f_2115_8320)">
<ellipse cx="290.5" cy="288.048" rx="151.5" ry="143.048" fill="#069E08" fill-opacity="0.15"/>
</g>
<g filter="url(#filter1_f_2115_8320)">
<ellipse cx="256.5" cy="132.5" rx="131.5" ry="124.5" fill="#F5E6B3"/>
</g>
<g opacity="0.7" filter="url(#filter2_f_2115_8320)">
<ellipse cx="173" cy="-64" rx="213" ry="201" fill="#CED9F2"/>
</g>
<g opacity="0.9" filter="url(#filter3_f_2115_8320)">
<ellipse cx="4.5" cy="67" rx="100.5" ry="95" fill="white"/>
</g>
</g>
<defs>
<filter id="filter0_f_2115_8320" x="55" y="61" width="471" height="454.096" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB">
<feFlood flood-opacity="0" result="BackgroundImageFix"/>
<feBlend mode="normal" in="SourceGraphic" in2="BackgroundImageFix" result="shape"/>
<feGaussianBlur stdDeviation="42" result="effect1_foregroundBlur_2115_8320"/>
</filter>
<filter id="filter1_f_2115_8320" x="-29" y="-146" width="571" height="557" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB">
<feFlood flood-opacity="0" result="BackgroundImageFix"/>
<feBlend mode="normal" in="SourceGraphic" in2="BackgroundImageFix" result="shape"/>
<feGaussianBlur stdDeviation="77" result="effect1_foregroundBlur_2115_8320"/>
</filter>
<filter id="filter2_f_2115_8320" x="-134" y="-359" width="614" height="590" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB">
<feFlood flood-opacity="0" result="BackgroundImageFix"/>
<feBlend mode="normal" in="SourceGraphic" in2="BackgroundImageFix" result="shape"/>
<feGaussianBlur stdDeviation="47" result="effect1_foregroundBlur_2115_8320"/>
</filter>
<filter id="filter3_f_2115_8320" x="-190" y="-122" width="389" height="378" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB">
<feFlood flood-opacity="0" result="BackgroundImageFix"/>
<feBlend mode="normal" in="SourceGraphic" in2="BackgroundImageFix" result="shape"/>
<feGaussianBlur stdDeviation="47" result="effect1_foregroundBlur_2115_8320"/>
</filter>
</defs>
</svg>

After

Width:  |  Height:  |  Size: 2.3 KiB

@@ -0,0 +1,17 @@
<svg width="380" height="183" viewBox="0 0 380 183" fill="none" xmlns="http://www.w3.org/2000/svg">
<g opacity="0.75" filter="url(#filter0_f_5953_11924)">
<path d="M360 -60C360 7.93102 304.931 63 237 63C169.069 63 114 7.93102 114 -60C114 -127.931 169.069 -183 237 -183C304.931 -183 360 -127.931 360 -60Z" fill="url(#paint0_linear_5953_11924)"/>
</g>
<defs>
<filter id="filter0_f_5953_11924" x="-6" y="-303" width="486" height="486" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB">
<feFlood flood-opacity="0" result="BackgroundImageFix"/>
<feBlend mode="normal" in="SourceGraphic" in2="BackgroundImageFix" result="shape"/>
<feGaussianBlur stdDeviation="60" result="effect1_foregroundBlur_5953_11924"/>
</filter>
<linearGradient id="paint0_linear_5953_11924" x1="360" y1="-60" x2="114" y2="-60" gradientUnits="userSpaceOnUse">
<stop stop-color="#48FF50"/>
<stop offset="0.471846" stop-color="#108642"/>
<stop offset="1" stop-color="#2E38FA"/>
</linearGradient>
</defs>
</svg>

After

Width:  |  Height:  |  Size: 990 B

@@ -0,0 +1 @@
<?php return array('dependencies' => array('jetpack-connection', 'jetpack-script-data', 'react', 'react-dom', 'react-jsx-runtime', 'wp-a11y', 'wp-api-fetch', 'wp-components', 'wp-compose', 'wp-date', 'wp-element', 'wp-i18n', 'wp-polyfill', 'wp-primitives', 'wp-url'), 'version' => '91f80d95ecdf13345634');
@@ -0,0 +1 @@
.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-weight:500}.gKZWDv5chz3_O3Syp74H,.hUB0JT8p1T2Hw28N6qC8{font-size:var(--font-title-medium);line-height:32px}.gKZWDv5chz3_O3Syp74H{font-weight:600}.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-weight:400}.dso3Rh3tl3Xv1GumBktz,.mQ1UlbN9u4Mg9byO8m7v{font-size:var(--font-body-extra-small);line-height:20px}.mQ1UlbN9u4Mg9byO8m7v{font-weight:700}.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{Line truncated
@@ -0,0 +1,71 @@
/*! For license information please see jetpack-boost.js.LICENSE.txt */
(()=>{var e,t,r,n,s={86954(e){function t(e,t,r){var n,s,o,i,a;function c(){var l=Date.now()-i;l<t&&l>=0?n=setTimeout(c,t-l):(n=null,r||(a=e.apply(o,s),o=s=null))}null==t&&(t=100);var l=function(){o=this,s=arguments,i=Date.now();var l=r&&!n;return n||(n=setTimeout(c,t)),l&&(a=e.apply(o,s),o=s=null),a};return l.clear=function(){n&&(clearTimeout(n),n=null)},l.flush=function(){n&&(a=e.apply(o,s),o=s=null,clearTimeout(n),n=null)},l}t.debounce=t,e.exports=t},46941(e,t,r){var n=r(8482);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 r="color: "+this.color;t.splice(1,0,r,"color: inherit");let n=0,s=0;t[0].replace(/%[a-zA-Z%]/g,e=>{"%%"!==e&&(n++,"%c"===e&&(s=n))}),t.splice(s,0,r)},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")||t.storage.getItem("DEBUG")}catch(e){}return!e&&void 0!==n&&"env"in n&&(e=n.env.DEBUG),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;let e;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&&(e=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt(e[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=r(53212)(t);const{formatters:s}=e.exports;s.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}},53212(e,t,r){e.exports=function(e){function t(e){let r,s,o,i=null;function a(...e){if(!a.enabled)return;const n=a,s=Number(new Date),o=s-(r||s);n.diff=o,n.prev=r,n.curr=s,r=s,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,(r,s)=>{if("%%"===r)return"%";i++;const o=t.formatters[s];if("function"==typeof o){const t=e[i];r=o.call(n,t),e.splice(i,1),i--}return r}),t.formatArgs.call(n,e),(n.log||t.log).apply(n,e)}return a.namespace=e,a.useColors=t.useColors(),a.color=t.selectColor(e),a.extend=n,a.destroy=t.destroy,Object.defineProperty(a,"enabled",{enumerable:!0,configurable:!1,get:()=>null!==i?i:(s!==t.namespaces&&(s=t.namespaces,o=t.enabled(e)),o),set:e=>{i=e}}),"function"==typeof t.init&&t.init(a),a}function n(e,r){const n=t(this.namespace+(void 0===r?":":r)+e);return n.log=this.log,n}function s(e,t){let r=0,n=0,s=-1,o=0;for(;r<e.length;)if(n<t.length&&(t[n]===e[r]||"*"===t[n]))"*"===t[n]?(s=n,o=r,n++):(r++,n++);else{if(-1===s)return!1;n=s+1,o++,r=o}for(;n<t.length&&"*"===t[n];)n++;return n===t.length}return t.debug=t,t.default=t,t.coerce=function(e){return e instanceof Error?e.stack||e.message:e},t.disable=function(){const e=[...t.names,...t.skips.map(e=>"-"+e)].join(",");return t.enable(""),e},t.enable=function(e){t.save(e),t.namespaces=e,t.names=[],t.skips=[];const r=("string"==typeof e?e:"").trim().replace(/\s+/g,",").split(",").filter(Boolean);for(const e of r)"-"===e[0]?t.skips.push(e.slice(1)):t.names.push(e)},t.enabled=function(e){for(const r of t.skips)if(s(e,r))return!1;for(const r of t.names)if(s(e,r))return!0;return!1},t.humanize=r(44997),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(r=>{t[r]=e[r]}),t.names=[],t.skips=[],t.formatters={},t.selectColor=function(e){let r=0;fLine truncated
__("Received invalid response while communicating with your WordPress site: %s","jetpack-boost"),this.parseError.message)}return(0,n.sprintf)(/* Translators: %d refers to numeric HTTP error code */
__("HTTP %d error received while communicating with the server.","jetpack-boost"),this.httpCode)}getDisplayBody(){return(0,o.O)(this.body)?JSON.stringify(this.body,null," "):(0,s.w)(this.body,"").substring(0,1e3)}getRestApiErrorMessage(){return __("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")}}},15098(e,t,r){"use strict";r.d(t,{A:()=>c});var n=r(27723),s=r(21197),o=r(18882);const __=n.__;async function i(e,t,r,s=null,i){const a={method:e,mode:"cors",headers:{"X-WP-Nonce":i}};"post"!==e&&"delete"!==e||!s||(a.body=JSON.stringify(s),a.headers["Content-Type"]="application/json");const c=function(e,t){return t+o.K+o.L+e}(r,t);let l;try{l=await fetch(c,a)}catch(e){const t=a;delete t.body,delete t.headers["X-WP-Nonce"];const r={requestInitiator:window.location.href,requestUrl:c,requestArgs:t,originalErrorMessage:e.toString()};throw new Error((0,n.sprintf)(/* Translators: %s refers to a string representation of an error object containing useful debug information */
__("An error occurred while trying to communicate with the site REST API. Extra debug info: %s","jetpack-boost"),JSON.stringify(r)),{cause:e})}return l}async function a(e,t,r,n=null,o){const a=await i(e,t,r,n,o);let c,l;try{c=await a.text()}catch(e){throw new s.h(a.status,null,e)}try{l=JSON.parse(c)}catch(e){throw new s.h(a.status,c,e)}if(!a.ok)throw new s.h(a.status,l,null);return l}const c={get:function(e,t,r){return a("get",e,t,null,r)},post:function(e,t,r=null,n){return a("post",e,t,r,n)}}},18882(e,t,r){"use strict";r.d(t,{K:()=>n,L:()=>s});const n="jetpack-boost/v1",s=""},58454(e,t,r){"use strict";r.d(t,{On:()=>m,T:()=>h,hC:()=>f,sE:()=>d});var n=r(27723),s=r(15098),o=r(4753),i=r(75289),a=r(34144),c=r(28991),l=r(93470);const __=n.__,u=12e4;async function d(e=!1,t,r,n){const o=p(await s.A.post(t,e?"/speed-scores/refresh":"/speed-scores",{url:r},n));return o.scores?o.scores:await async function(e,t,r){return(0,c.A)({timeout:u,interval:5e3,timeoutError:__("Timed out while waiting for speed-score.","jetpack-boost"),callback:async n=>{const o=p(await s.A.post(e,"/speed-scores",{url:t},r));o.scores&&n(o.scores)}})}(t,r,n)}function p(e){if(e.error){const t=__("An unknown error occurred while requesting metrics","jetpack-boost");throw(0,l.g)(e.error,t)}if((0,a.O)(e.scores))return{status:"success",scores:{current:(0,a.O)(e.scores.current)?{mobile:(0,o.G)(e.scores.current.mobile,0),desktop:(0,o.G)(e.scores.current.desktop,0)}:{mobile:0,desktop:0},noBoost:(0,a.O)(e.scores.noBoost)?{mobile:(0,o.G)(e.scores.noBoost.mobile,0),desktop:(0,o.G)(e.scores.noBoost.desktop,0)}:null,isStale:!!e.scores.isStale}};const t=(0,i.w)(e.status);if(!t)throw new Error(__("Invalid response while requesting metrics","jetpack-boost"));return{status:t}}function h(e,t){const r=(e+t)/2;return r>90?"A":r>75?"B":r>50?"C":r>35?"D":r>25?"E":"F"}function f(e){const t=e.current,r=e.noBoost;return null!=t&&null!=r&&(t.mobile!==r.mobile||t.desktop!==r.desktop)}function m(e){const t=e.current,r=e.noBoost;if(null!==t&&null!==r){const t=(e.current.mobile+e.current.desktop)/(e.noBoost.mobile+e.noBoost.desktop)-1;return Math.round(100*t)}return 0}},4753(e,t,r){"use strict";function n(e,t=void 0){if("number"==typeof e)return e;if("string"==typeof e){const t=parseFloat(e);if(!isNaN(t))return t}return t}r.d(t,{G:()=>n})},75289(e,t,r){"use strict";function n(e,t=void 0){return"string"==typeof e?e:e&&e.toString instanceof Function?e.toString():t}r.d(t,{w:()=>n})},34144(e,t,r){"use strict";function n(e){return!!e&&e instanceof Object&&!(e instanceof Array)}r.d(t,{O:()=>n})},28991(e,t,r){"use strict";r.d(t,{A:()=>s});var n=r(27723);const __=n.__;async function s({interval:e,callback:t,timeout:r,timeoutError:n}){let s,o;return new Promise((i,a)=>{s=setTimeout(()=>{a(new Error(n||__("Timed out","jetpack-boost")))},r||12e4),o=setInterval(async()=>{try{await Promise.resolve(t(i))}catch(e){a(e)}},e)}).finally(()=>{clearTimeout(s),clearInterval(o)})}},93470(e,t,r){"use strict";function n(e,t){return e instanceof Error?e:"string"==typeof e||e instanceof String?new Error(e.toString()):e.message?new Error(e.message):t?new Error(t):new Error(JSON.stringify(e))}r.d(t,{g:()=>n})},42947(e,t,r){"use strict";r.d(t,{A:()=>f});var n=r(5932),s=r(61753),o=r(27723),i=r(13022),a=r(51609),c=r(38250),l=r(67142),u=r(28509),d=r(75918),p=r(48796),h=r(10790);const __=o.__,f=({children:e,className:t,showHeader:r=!0,showFooter:f=!0,showBackground:m=!0,sandboxedDomain:g="",apiRoot:b="",apiNonce:y="",optionalMenuItems:v,header:w,title:x,subTitle:_,logo:k,actions:j,breadcrumbs:C,tabs:A,showBottomBorder:S=!0,unwrapped:E=!1})=>{(0,a.useEffect)(()=>{n.Ay.setApiRoot(b),n.Ay.setApiNonce(y)},[b,y]);const R=(0,i.A)(p.A["admin-page"],"jp-admin-page",t,{[p.A.background]:m,[p.A["without-bottom-border"]]:A||!S}),M=(0,a.useCallback)(async()=>{try{const e=await n.Ay.fetchSiteConnectionTest();window.alert(e.message)}catch(e){window.alert((0,o.sprintf)(/* translators: %s: an error message. */
__("There was an error testing Jetpack. Error: %s","jetpack-boost"),e.message))}},[]);return r&&(x||C)?(0,h.jsx)("div",{className:R,children:(0,h.jsxs)(s.A,{className:"jp-admin-page__page",visual:k||(0,h.jsx)(l.A,{showText:!1,height:20}),breadcrumbs:C,title:x,subTitle:_,actions:j,showSidebarToggle:!1,children:[A,E?e:(0,h.jsx)(d.A,{fluid:!0,horizontalSpacing:0,children:(0,h.jsx)(u.A,{children:e})}),f&&(0,h.jsx)(c.A,{menu:v})]})}):(0,h.jsxs)("div",{className:R,children:[r&&(0,h.jsx)(d.A,{horizontalSpacing:5,children:(0,h.jsxs)(u.A,{className:(0,i.A)(p.A["admin-page-header"],"jp-admin-page-header"),children:[w||(0,h.jsx)(l.A,{}),g&&(0,h.jsx)("code",{className:p.A["sandbox-domain-badge"],onClick:M,onKeyDown:M,role:"button",tabIndex:0,title:`Sandboxing via ${g}. Click to test connection.`,children:"API Sandboxed"})]})}),(0,h.jsx)(d.A,{fluid:!0,horizontalSpacing:0,children:(0,h.jsx)(u.A,{children:e})}),f&&(0,h.jsx)(c.A,{menu:v})]})}},48907(e,t,r){"use strict";r.d(t,{A:()=>i});var n=r(27723),s=r(13022),o=r(10790);const __=n.__,i=({title:e=__("An Automattic Airline","jetpack-boost"),height:t=7,className:r,...n})=>(0,o.jsxs)("svg",{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:t,className:(0,s.A)("jp-automattic-byline-logo",r),...n,children:[(0,o.jsx)("desc",{id:"jp-automattic-byline-logo-title",children:e}),(0,o.jsx)("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"}),(0,o.jsx)("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"}),(0,o.jsx)("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"})]})},10580(e,t,r){"use strict";r.d(t,{A:()=>l});var n=r(27723),s=r(13109),o=r(20113),i=r(55173),a=r(13022),c=(r(92417),r(10790));const __=n.__,l=({score:e,isLoading:t,showPrevScores:r,active:n,prevScore:l=0,scoreBarType:u,noBoostScoreTooltip:d})=>{if(!n)return null;const p=l/e*100,h=__("Desktop score","jetpack-boost"),f=__("Mobile score","jetpack-boost");return(0,c.jsxs)("div",{className:(0,a.A)("jb-score-bar",`jb-score-bar--${u}`),children:[(0,c.jsxs)("div",{className:"jb-score-bar__label",children:["desktop"===u?(0,c.jsx)(s.A,{icon:o.A,size:24}):(0,c.jsx)(s.A,{icon:i.A,size:24}),(0,c.jsx)("div",{children:"desktop"===u?h:f})]}),(0,c.jsx)("div",{className:"jb-score-bar__bounds",children:(0,c.jsxs)("div",{className:(0,a.A)("jb-score-bar__filler",t&&!e?"fill-loading":e>70?"fill-good":e>50?"fill-mediocre":"fill-bad"),style:{width:`${e}%`},children:[t?(0,c.jsx)("div",{className:"jb-score-bar__loading",children:(0,c.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 128 128",children:(0,c.jsxs)("g",{children:[(0,c.jsx)("path",{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-Line truncated
(0,o.sprintf)(__("%d / 100","jetpack-boost"),r)})]}),"number"==typeof c&&(0,i.jsxs)("div",{className:"jb-score-tooltip__row jb-score-tooltip__row--secondary",children:[(0,i.jsx)("div",{className:"jb-score-tooltip__column",children:__("Largest Contentful Paint","jetpack-boost")}),(0,i.jsx)("div",{className:"jb-score-tooltip__column",children:(0,o.sprintf)("%.2fs",c)})]}),"number"==typeof l&&(0,i.jsxs)("div",{className:"jb-score-tooltip__row jb-score-tooltip__row--secondary",children:[(0,i.jsx)("div",{className:"jb-score-tooltip__column",children:__("Total Blocking Time","jetpack-boost")}),(0,i.jsx)("div",{className:"jb-score-tooltip__column",children:(0,o.sprintf)("%.2fs",l)})]}),"number"==typeof a&&(0,i.jsxs)("div",{className:"jb-score-tooltip__row jb-score-tooltip__row--secondary",children:[(0,i.jsx)("div",{className:"jb-score-tooltip__column",children:__("Cumulative Layout Shift","jetpack-boost")}),(0,i.jsx)("div",{className:"jb-score-tooltip__column",children:(0,o.sprintf)("%.2f",a)})]}),(0,i.jsx)("hr",{}),(0,i.jsxs)("div",{className:"jb-score-tooltip__row",children:[(0,i.jsx)("div",{className:"jb-score-tooltip__column",children:__("Mobile score","jetpack-boost")}),(0,i.jsx)("div",{className:"jb-score-tooltip__column",children:/* translators: %d is the score */ /* translators: %d is the score */
(0,o.sprintf)(__("%d / 100","jetpack-boost"),t)})]}),"number"==typeof d&&(0,i.jsxs)("div",{className:"jb-score-tooltip__row jb-score-tooltip__row--secondary",children:[(0,i.jsx)("div",{className:"jb-score-tooltip__column",children:__("Largest Contentful Paint","jetpack-boost")}),(0,i.jsx)("div",{className:"jb-score-tooltip__column",children:(0,o.sprintf)("%.2fs",d)})]}),"number"==typeof p&&(0,i.jsxs)("div",{className:"jb-score-tooltip__row jb-score-tooltip__row--secondary",children:[(0,i.jsx)("div",{className:"jb-score-tooltip__column",children:__("Total Blocking Time","jetpack-boost")}),(0,i.jsx)("div",{className:"jb-score-tooltip__column",children:(0,o.sprintf)("%.2fs",p)})]}),"number"==typeof u&&(0,i.jsxs)("div",{className:"jb-score-tooltip__row jb-score-tooltip__row--secondary",children:[(0,i.jsx)("div",{className:"jb-score-tooltip__column",children:__("Cumulative Layout Shift","jetpack-boost")}),(0,i.jsx)("div",{className:"jb-score-tooltip__column",children:(0,o.sprintf)("%.2f",u)})]}),(0,i.jsx)("div",{className:"jb-score-tooltip__pointer"})]}):null}},64117(e,t,r){"use strict";r.d(t,{w:()=>o});var n=r(75795),s=r(38766);function o(e){const t=document.createElement("div"),r=document.createElement("div");let o;return{hooks:{init:function(e){r.classList.add("jb-score-tooltips-container"),o||(o=(0,n.createRoot)(t)),t.classList.add("jb-score-tooltip-react-root"),r.appendChild(t),e.over.appendChild(r),e.over.addEventListener("mouseenter",()=>{r.classList.add("visible")}),e.over.addEventListener("mouseleave",()=>{r.classList.remove("visible")}),t.addEventListener("mouseenter",()=>{t.classList.add("visible")}),t.addEventListener("mouseleave",()=>{t.classList.remove("visible")})},setCursor:function(r){const{idx:n}=r.cursor,i=e[n];if(!i)return;const a=r.data[0][n],c=a-a%86400,l=c+86400,u=r.valToPos(Math.max(c,r.scales.x.min),"x"),d=u+(r.valToPos(Math.min(l,r.scales.x.max),"x")-u)/2;t.style.left=d+"px",o.render((0,s.m)({period:i}))},setSize:function(e){r.style.paddingTop=e.over.clientHeight+"px"}}}}},65947(e,t,r){"use strict";r.d(t,{A:()=>x});var n=r(54268),s=r(27723),o=r(51609),i=r(38065),a=r(87351),c=r.n(a),l=r(51437),u=r(98539),d=r(24304),p=r(63988),h=r(64117),f=r(65742),m=r(903),g=(r(26122),r(10790));const __=s.__,b=300,y=600;function v(e,t){const{spline:r}=i.default.paths;return{label:e,stroke:w(t),fill:e=>{const r=e.ctx.createLinearGradient(0,0,0,b);return r.addColorStop(0,w(t,"44")),r.addColorStop(1,w(t,"11")),r},width:2,paths:(e,t,n,s)=>r?.()(e,t,n,s)||null,points:{show:!0},value:(e,t)=>t?(0,n.ZV)(t):"-"}}function w(e,t="FF"){let r="#D63638";return e>70?r="#069e08":e>50&&(r="#faa754"),`${r}${t}`}function x({range:e,periods:t,annotations:r=[]}){const n=(0,o.useRef)(null),s=(0,o.useRef)(null),a=s.current?.clientWidth||y;let w=0,x=0;t.length>0&&(w=t[t.length-1].dimensions.desktop_overall_score,x=t[t.length-1].dimensions.mobile_overall_score);const _=(0,f.f)(t),k=(0,o.useMemo)(()=>({class:"boost-score-graph",height:b,width:a,tzDate:e=>i.default.tzDate(new Date(1e3*e),"Etc/UTC"),fmtDate:e=>t=>(0,p.A)(e,t,(0,l.Y)()),padding:[17,0,17,0],axes:[{grid:{show:!1},ticks:{stroke:"#50575E",width:1,size:3}},{side:1,gap:8,space:100,size:30,grid:{stroke:"rgba(220, 220, 222, 0.5)",width:1},ticks:{show:!1}}],cursor:{x:!1,y:!1},series:[{label:__("Date","jetpack-boost"),value:(e,t)=>t?new Date(t).toLocaleDateString((0,l.Y)()):"-"},v(__("Desktop","jetpack-boost"),w),v(__("Mobile","jetpack-boost"),x)],scales:{x:{time:!0,auto:!1,range:[e.startDate/1e3,e.endDate/1e3]},y:{range:[0,100],auto:!1}},legend:{show:!1},plugins:[(0,u.S)(r),(0,h.w)(t),(0,d.a)()]}),[a,w,x,e.startDate,e.endDate,t,r]);(0,m.A)(n,s);const j=(0,o.useCallback)(e=>n.current=e,[]),C=c();return(0,g.jsx)("div",{ref:s,className:"boost-uplot-container",children:(0,g.jsx)(C,{data:_,onCreate:j,options:k})})}},65742(e,t,r){"use strict";r.d(t,{f:()=>o});var n=r(51609);const s=function(e,t){return t.map(({dimensions:t})=>t[e])};function o(e){return(0,n.useMemo)(()=>e?.length&&e[0].dimensions?[e.map(({timestamp:e})=>e/1e3),s("desktop_overall_score",e),s("mobile_overall_score",e)]:[],[e])}},903(e,t,r){"use strict";r.d(t,{A:()=>o});var n=r(29491),s=r(51609);function o(e,t){(0,s.useEffect)(()=>{if(!e.current||!t.current)return;const r=(0,n.throttle)(()=>{e.current&&t.current&&e.current.setSize({height:e.current.height,width:t.current.clientWidth})},400);return r(),window.addEventListener("resize",r),()=>window.removeEventListener("resize",r)},[e,t])}},51112(e,t,r){"use strict";r.d(t,{A:()=>p});var n=r(56427),s=r(27723),o=r(13109),i=r(1866),a=r(13022),c=r(51609),l=r(49595),u=r(10790);const __=s.__,d=(0,c.forwardRef)((e,t)=>{const{children:r,variant:s="primary",size:c="normal",weight:d="bold",icon:p,iconSize:h,disabled:f,isDestructive:m,isLoading:g,isExternalLink:b,className:y,text:v,fullWidth:w,...x}=e,_=(0,a.A)(l.A.button,y,{[l.A.normal]:"normal"===c,[l.A.small]:"small"===c,[l.A.icon]:Boolean(p),[l.A.loading]:g,[l.A.regular]:"regular"===d,[l.A["full-width"]]:w,[l.A["is-icon-buttLine truncated
__("(opens in a new tab)","jetpack-boost")})]}),C=b?"_blank":void 0,A=r?.[0]&&null!==r[0]&&"components-tooltip"!==r?.[0]?.props?.className,S={ref:t,target:C,variant:s,className:(0,a.A)(_,{"has-text":!!p&&A}),icon:b?void 0:p,iconSize:h,disabled:f,"aria-disabled":f,isDestructive:m,text:v,...x};return(0,u.jsxs)(n.Button,{...S,children:[g&&(0,u.jsx)(n.Spinner,{}),(0,u.jsx)("span",{children:r}),j]})});d.displayName="Button";const p=d},40597(e,t,r){"use strict";r.d(t,{A:()=>d});var n=r(56427),s=r(13109),o=r(28847),i=r(13022),a=r(51609),c=r(51112),l=(r(19168),r(10790));const u=e=>({"top-end":"top left",top:"top center","top-start":"top right","bottom-end":"bottom left",bottom:"bottom center","bottom-start":"bottom right"}[e]),d=({className:e="",iconClassName:t="",placement:r="bottom-end",animate:d=!0,iconCode:p=o.A,iconSize:h=18,offset:f=10,title:m,children:g,popoverAnchorStyle:b="icon",forceShow:y=!1,hoverShow:v=!1,wide:w=!1,inline:x=!0,shift:_=!1})=>{const[k,j]=(0,a.useState)(!1),[C,A]=(0,a.useState)(null),S=(0,a.useCallback)(()=>j(!1),[j]),E=(0,a.useCallback)(e=>{e.preventDefault(),j(!k)},[k,j]),R={position:u(r),placement:r,animate:d,noArrow:!1,resize:!1,flip:!1,offset:f,focusOnMount:"firstElement",onClose:S,className:"icon-tooltip-container",inline:x,shift:_},M="wrapper"===b,T=(0,i.A)("icon-tooltip-wrapper",e),P={left:M?0:-(62-h/2)+"px"},N=M&&y,O=(0,a.useCallback)(()=>{v&&(C&&(clearTimeout(C),A(null)),j(!0))},[v,C]),D=(0,a.useCallback)(()=>{if(v){const e=setTimeout(()=>{j(!1),A(null)},100);A(e)}},[v]);return(0,l.jsxs)("div",{className:T,"data-testid":"icon-tooltip_wrapper",onMouseEnter:O,onMouseLeave:D,children:[!M&&(0,l.jsx)(c.A,{variant:"link",onMouseDown:E,children:(0,l.jsx)(s.A,{className:t,icon:p,size:h})}),(0,l.jsx)("div",{className:(0,i.A)("icon-tooltip-helper",{"is-wide":w}),style:P,children:(N||k)&&(0,l.jsx)(n.Popover,{...R,children:(0,l.jsxs)("div",{children:[m&&(0,l.jsx)("div",{className:"icon-tooltip-title",children:m}),(0,l.jsx)("div",{className:"icon-tooltip-content",children:g})]})})})]})}},38250(e,t,r){"use strict";r.d(t,{A:()=>h});var n=r(97999),s=r(27723),o=r(21220),i=r(39968),a=r(79654),c=r(13022),l=r(3924),u=r(48907),d=(r(58749),r(67142)),p=r(10790);const __=s.__,h=({className:e,menu:t,...r})=>{let s=[];return(0,n.isWpcomPlatformSite)()||window?.JetpackNetworkAdminData||(s=[{label:__("Products","jetpack-boost"),href:(0,n.getAdminUrl)("admin.php?page=my-jetpack#/products")},{label:__("Help","jetpack-boost"),href:(0,n.getAdminUrl)("admin.php?page=my-jetpack#/help")},...s]),t&&(s=[...s,...t]),(0,p.jsxs)(o.B,{render:(0,p.jsx)("footer",{}),className:(0,c.A)("jetpack-footer",e),"aria-label":__("Jetpack","jetpack-boost"),role:"contentinfo",direction:"row",justify:"flex-start",align:"center",wrap:"wrap",gap:"xl",...r,children:[(0,p.jsxs)(o.B,{className:"jetpack-footer__logo",direction:"row",gap:"sm",align:"center",children:[(0,p.jsx)(d.A,{showText:!1,height:16,"aria-hidden":"true"}),(0,p.jsx)(i.E,{variant:"body-md",children:"Jetpack"})]}),(0,p.jsx)(o.B,{render:(0,p.jsx)("ul",{}),direction:"row",gap:"lg",wrap:"wrap",children:s.map(e=>(0,p.jsx)("li",{children:(0,p.jsx)(i.E,{variant:"body-md",className:"jetpack-footer__menu-item",render:e.href?(0,p.jsx)(a.N,{href:e.href,title:e.title||"",onClick:e.onClick||void 0,onKeyDown:e.onKeyDown||void 0}):(0,p.jsx)(a.N,{render:(0,p.jsx)("span",{}),tabIndex:0,title:e.title||"",onClick:e.onClick||void 0,onKeyDown:e.onKeyDown||void 0,role:"button"}),children:e.label})},e.label))}),(0,p.jsx)("a",{className:"jetpack-footer__a8c",href:(0,l.A)("a8c-about"),rel:"noopener noreferrer",target:"_blank",children:(0,p.jsx)(u.A,{height:8})})]})}},67142(e,t,r){"use strict";r.d(t,{A:()=>i});var n=r(27723),s=r(13022),o=r(10790);const __=n.__,i=({logoColor:e="#069e08",showText:t=!0,className:r,height:n=32,title:i,...a})=>{const c=t?"0 0 118 32":"0 0 32 32",l=i??__("Jetpack Logo","jetpack-boost");return(0,o.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",x:"0px",y:"0px",viewBox:c,className:(0,s.A)("jetpack-logo",r),"aria-labelledby":"jetpack-logo-title",height:n,...a,role:"img",children:[(0,o.jsx)("title",{id:"jetpack-logo-title",children:l}),(0,o.jsx)("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&&(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("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"}),(0,o.jsx)("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"}),(0,o.jsx)("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"}),(0,o.jsx)("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,1Line truncated
// translators: %s: Name of the current feature
default:(0,s.sprintf)(__("%s coming soon","jetpack-boost"),r)}:{lg:t?m:g,default:t?r:(0,s.sprintf)(/* translators: %s: Name of the current feature */
__("%s not included","jetpack-boost"),r)})(t,e,A),T=_?M.lg:M.default;return j?(0,f.jsx)("div",{className:(0,c.A)(h.A.item,h.A.value,h.A.empty)}):(0,f.jsxs)("div",{className:(0,c.A)(h.A.item,h.A.value),children:[(0,f.jsx)(o.A,{className:(0,c.A)(h.A.icon,C?h.A["icon-check"]:h.A["icon-cross"]),size:32,icon:C?i.A:a.A}),(0,f.jsx)(p.Ay,{variant:"body-small",children:d||T}),R&&(0,f.jsx)(u.A,{title:w||E,iconClassName:h.A["popover-icon"],className:(0,c.A)(h.A.popover,x),placement:"bottom-end",iconSize:14,offset:4,wide:Boolean(w&&v),inline:!1,shift:!0,children:(0,f.jsx)(p.Ay,{variant:"body-small",component:"div",children:v||S})})]})},w=({title:e,children:t})=>(0,f.jsxs)("div",{className:h.A.headerContainer,children:[e&&(0,f.jsx)(p.Ay,{variant:"headline-small",className:h.A.title,children:e}),(0,f.jsx)("div",{className:h.A.header,children:t})]}),x=({primary:e=!1,children:t,className:r})=>{let n=0;return(0,f.jsx)("div",{className:(0,c.A)(h.A.card,{[h.A["is-primary"]]:e},r),children:l.Children.map(t,e=>{const t=e;return t.type===v?(n++,(0,l.cloneElement)(t,{index:n-1})):t})})},_=({title:e,headerLogo:t,items:r,children:s,showIntroOfferDisclaimer:o=!1})=>{const i=(0,n.useViewportMatch)("large");return(0,f.jsxs)(y.Provider,{value:r,children:[(0,f.jsx)("div",{className:(0,c.A)(h.A.container,{[h.A["is-viewport-large"]]:i}),style:{"--rows":r.length+1,"--columns":l.Children.toArray(s).length+1},children:(0,f.jsxs)("div",{className:h.A.table,children:[(0,f.jsxs)("div",{children:[t&&(0,f.jsx)("div",{className:h.A["header-logo"],children:t}),(0,f.jsx)(p.Ay,{variant:"headline-small",className:h.A.tableTitle,children:e})]}),i&&r.map((e,t)=>e.name?(0,f.jsxs)("div",{className:(0,c.A)(h.A.item,h.A.feature,{[h.A["last-feature"]]:t===r.length-1}),children:[(0,f.jsx)(p.Ay,{variant:"body-small",children:(0,f.jsx)("strong",{children:e.name})}),e.tooltipInfo&&(0,f.jsx)(u.A,{title:e.tooltipTitle,iconClassName:h.A["popover-icon"],className:h.A.popover,placement:e.tooltipPlacement?e.tooltipPlacement:"bottom-end",iconSize:14,offset:4,wide:Boolean(e.tooltipTitle&&e.tooltipInfo),inline:!1,shift:!0,children:(0,f.jsx)(p.Ay,{variant:"body-small",children:e.tooltipInfo})})]},t):(0,f.jsx)("div",{className:(0,c.A)(h.A.item,h.A.feature,h.A.empty)},t)),s]})}),(0,f.jsx)("div",{className:h.A["tos-container"],children:(0,f.jsxs)("div",{className:h.A.tos,children:[o&&(0,f.jsx)(p.Ay,{variant:"body-small",children:__("Reduced pricing is a limited offer for the first year and renews at regular price.","jetpack-boost")}),(0,f.jsx)(d.A,{multipleButtons:!0})]})})]})}},489(e,t,r){"use strict";r.d(t,{A:()=>l});var n=r(27723),s=r(13022),o=r(47425),i=r(72746),a=r(65304),c=r(10790);const __=n.__,l=({price:e,offPrice:t,currency:r="",showNotOffPrice:n=!0,hideDiscountLabel:l=!0,promoLabel:u="",legend:d=__("/month, paid yearly","jetpack-boost"),isNotConvenientPrice:p=!1,hidePriceFraction:h=!1,children:f,variant:m="default"})=>{if(null==e&&null==t||!r)return null;n=n&&null!=t;const g="number"==typeof e&&"number"==typeof t?Math.floor((e-t)/e*100):0,b=!l&&g&&g>0?g+__("% off","jetpack-boost"):null;return"simple"===m?(0,c.jsxs)("div",{className:a.A.simple,children:[(0,c.jsxs)("div",{className:a.A.currentPrice,children:[(0,c.jsx)(i.g,{value:t??e,currency:r,isOff:!p,hidePriceFraction:h,inline:!0}),(0,c.jsx)("div",{children:d})]}),n&&(0,c.jsxs)("div",{className:a.A.originalPrice,children:[(0,c.jsx)(i.g,{value:e,currency:r,isOff:!1,hidePriceFraction:h,inline:!0}),(0,c.jsx)("div",{children:g&&g>0&&g+__("% off the first year","jetpack-boost")})]})]}):(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)("div",{className:a.A.container,children:(0,c.jsxs)("div",{className:(0,s.A)(a.A["price-container"],"product-price_container"),children:[(0,c.jsx)(i.g,{value:t??e,currency:r,isOff:!p,hidePriceFraction:h}),n&&(0,c.jsx)(i.g,{value:e,currency:r,isOff:!1,hidePriceFraction:h}),b&&(0,c.jsx)(o.Ay,{className:(0,s.A)(a.A["promo-label"],"product-price_promo_label"),children:b})]})}),(0,c.jsxs)("div",{className:a.A.footer,children:[f||(0,c.jsx)(o.Ay,{className:(0,s.A)(a.A.legend,"product-price_legend"),children:d}),u&&(0,c.jsx)(o.Ay,{className:(0,s.A)(a.A["promo-label"],"product-price_promo_label"),children:u})]})]})}},72746(e,t,r){"use strict";r.d(t,{g:()=>c});var n=r(54268),s=r(13022),o=r(47425),i=r(65304),a=r(10790);const c=({value:e,currency:t,isOff:r,hidePriceFraction:c,inline:l=!1})=>{const u=(0,s.A)(i.A.price,"product-price_price",{[i.A["is-not-off-price"]]:!r,[i.A["price-inline"]]:l}),{symbol:d,integer:p,fraction:h}=(0,n.vA)(e,t),f=!c||!h.endsWith("00");return(0,a.jsxs)(o.Ay,{className:u,variant:"headline-medium",component:"p",children:[l?(0,a.jsxs)(a.Fragment,{children:[d,p]}):(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(o.Ay,{className:i.A.symbol,component:"sup",variant:"title-medium",children:d}),p]}),f&&(0,a.jsx)(o.Ay,{component:"sup",variant:"body-small","data-testid":"PriceFraction",children:(0,a.jsx)("strong",{children:h})})]})}},85879(e,t,r){"use strict";r.d(t,{A:()=>f});var n=r(86087),s=r(27Line truncated
__("By clicking <strong>%1$s</strong> or <strong>%2$s</strong>, you agree to our <tosLink>Terms of Service</tosLink> and to <shareDetailsLink>sync your site‘s data</shareDetailsLink> with us.","jetpack-boost"),e[0],e[1]),{strong:(0,l.jsx)("strong",{}),tosLink:(0,l.jsx)(h,{slug:"wpcom-tos"}),shareDetailsLink:(0,l.jsx)(h,{slug:"jetpack-support-what-data-does-jetpack-sync"})}):(0,n.createInterpolateElement)(__("By clicking the buttons above, you agree to our <tosLink>Terms of Service</tosLink> and to <shareDetailsLink>sync your site‘s data</shareDetailsLink> with us.","jetpack-boost"),{tosLink:(0,l.jsx)(h,{slug:"wpcom-tos"}),shareDetailsLink:(0,l.jsx)(h,{slug:"jetpack-support-what-data-does-jetpack-sync"})}),d=({agreeButtonLabel:e})=>(0,n.createInterpolateElement)((0,s.sprintf)(/* translators: %s is a button label */
__("By clicking <strong>%s</strong>, you agree to our <tosLink>Terms of Service</tosLink> and to <shareDetailsLink>sync your site‘s data</shareDetailsLink> with us.","jetpack-boost"),e),{strong:(0,l.jsx)("strong",{}),tosLink:(0,l.jsx)(h,{slug:"wpcom-tos"}),shareDetailsLink:(0,l.jsx)(h,{slug:"jetpack-support-what-data-does-jetpack-sync"})}),p=()=>(0,n.createInterpolateElement)(__("By continuing you agree to our <tosLink>Terms of Service</tosLink> and to <shareDetailsLink>sync your site’s data</shareDetailsLink> with us. We’ll check if that email is linked to an existing WordPress.com account or create a new one instantly.","jetpack-boost"),{tosLink:(0,l.jsx)(h,{slug:"wpcom-tos"}),shareDetailsLink:(0,l.jsx)(h,{slug:"jetpack-support-what-data-does-jetpack-sync"})}),h=({slug:e,children:t})=>(0,l.jsx)(o.N,{openInNewTab:!0,className:"terms-of-service__link",href:(0,a.A)(e),children:t}),f=({className:e,multipleButtons:t,agreeButtonLabel:r,isTextOnly:n,...s})=>(0,l.jsx)(c.Ay,{className:(0,i.A)(e,"terms-of-service"),...s,children:n?(0,l.jsx)(p,{}):t?(0,l.jsx)(u,{multipleButtonsLabels:t}):(0,l.jsx)(d,{agreeButtonLabel:r})})},10110(e,t,r){"use strict";r.d(t,{Q:()=>n,Z:()=>s});const n={"headline-medium":"h1","headline-small":"h2","headline-small-regular":"h2","title-medium":"h3","title-medium-semi-bold":"h3","title-small":"h4",body:"p","body-small":"p","body-extra-small":"p","body-extra-small-bold":"p",label:"p"},s=["mt","mr","mb","ml","mx","my","m","pt","pr","pb","pl","px","py","p"]},47425(e,t,r){"use strict";r.d(t,{Ay:()=>l});var n=r(13022),s=r(51609),o=r(10110),i=r(2642),a=r(10790);const c=(0,s.forwardRef)(({variant:e="body",children:t,component:r,className:c,...l},u)=>{const d=r||o.Q[e]||"span",p=(0,s.useMemo)(()=>o.Z.reduce((e,t)=>(void 0!==l[t]&&(e+=i.A[`${t}-${l[t]}`]+" ",delete l[t]),e),""),[l]);return(0,a.jsx)(d,{className:(0,n.A)(i.A.reset,i.A[e],c,p),...l,ref:u,children:t})});c.displayName="Text";const l=c},50723(e,t,r){"use strict";r.d(t,{Ay:()=>p});var n=r(51609),s=r(50215),o=r(10790);const i={"--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)"},a={"--jp-black":"#000000","--jp-black-80":"#2c3338","--jp-white":"#ffffff","--jp-white-off":"#f9f9f6","--jp-gray":"#dcdcde","--jp-gray-0":"#F6F7F7","--jp-gray-5":"var(--jp-gray)","--jp-gray-10":"#C3C4C7","--jp-gray-20":"#A7AAAD","--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-off":"#e2e2df","--jp-red-0":"#F7EBEC","--jp-red-5":"#FACFD2","--jp-red-40":"#E65054","--jp-red-50":"#D63638","--jp-red-60":"#B32D2E","--jp-red-70":"#8A2424","--jp-red-80":"#691C1C","--jp-red":"#d63639","--jp-yellow-5":"#F5E6B3","--jp-yellow-10":"#F2CF75","--jp-yellow-20":"#F0C930","--jp-yellow-30":"#DEB100","--jp-yellow-40":"#C08C00","--jp-yellow-50":"#9D6E00","--jp-yellow-60":"#7D5600","--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 )"},c={"--jp-border-radius":"4px","--jp-menu-border-height":"1px","--jp-underline-thickness":"2px"},l={"--spacing-base":"8px"},u={},d=(e,t,r)=>{const n={...i,...a,...c,...l};for(const t in n)e.style.setProperty(t,n[t]);r&&e.classList.add(s.A.global),t&&(u[t]={provided:!0,root:e})},p=({children:e=null,targetDom:t,id:r,withGlobalStyles:s=!0})=>{const i=(0,n.useRef)(),a=u?.[r]?.provided;return(0,n.useLayoutEffect)(()=>{if(!a)return t?d(t,r,s):void(i?.current&&d(i.current,r,s))},[t,i,a,r,s]),t?(0,o.jsx)(o.Fragment,{children:e}):(0,o.jsx)("div",{ref:i,children:e})}},51437(e,t,r){"use strict";r.d(t,{Y:()=>s});var n=r(38443);const s=()=>{const{l10n:{locale:e}}=(0,n.getSettings)();return e?(e=>{const t=e.match(/^([a-z]{2,3})(_[a-z]{2}|_[a-z][a-z0-9]{4,7})?(?:_.*)?$/i);return t?`${t[1]}${t[2]?t[2]:""}`.replace("_","-"):"en-US"})(e):window?.window?.navigator?.language??"en-US"}},3924(e,t,r){"use strict";function n(e,t={}){const r={};let n;if("undefined"!=typeof window&&(n=window?.JP_CONNECTION_INITIAL_STATE?.calypsoEnv),0===e.search("https://")){const t=new URL(e);e=`https://${t.host}${t.pathname}`,r.url=encodeURIComponent(e)}else r.source=encodeURIComponent(e);for(const e in t)r[e]=encodeURIComponent(t[e]);return!Object.keys(r).includes("site")&&"undefined"!=typeof jetpack_redirects&&Object.hasOwn(jetpack_redirects,"currentSiteRawUrl")&&(r.site=jetpack_redirects.currentBlogID??jLine truncated
// translators: %s is the monthly price for a product
__("trial for the first month, then $%s /month, billed yearly","jetpack-boost"),M):"year"===O?__("/month, paid yearly","jetpack-boost"):_x("/month",'Price description representing "per month" price',"jetpack-boost");const I=N?.reason?M:T,L=_?(0,b.jsx)(h.A,{width:"100%",height:"100px"}):(0,b.jsx)(s.A,{currency:P,price:M,offPrice:I,showNotOffPrice:M>I,isNotConvenientPrice:!1,hidePriceFraction:!1,hideDiscountLabel:I>=M,legend:D}),z=(0,u.useCallback)(()=>{w("jetpack_modal_interstitial_open",{placement:"product-page",context:"my-jetpack",product_slug:e}),r?.()},[w,e,r]),F=(0,u.useCallback)(()=>{w("jetpack_modal_interstitial_close",{placement:"product-page",context:"my-jetpack",product_slug:e}),o?.()},[w,e,o]);let V=null;return"jetpack-ai"===e&&(V=(0,b.jsx)("p",{children:(0,a.createInterpolateElement)(__("* Limits apply for high request capacity. <link>Learn more about it here</link>.","jetpack-boost"),{link:(0,b.jsx)(l.N,{href:(0,n.A)("ai-assistant-fair-usage-policy"),openInNewTab:!0})})})),(0,b.jsx)(f.A,{title:k,description:S,priceComponent:L,modalMainButton:(0,b.jsx)(g.A,{slug:e}),onOpen:z,onClose:F,isLoading:_,...v,children:(0,b.jsxs)(b.Fragment,{children:[(_||E)&&(0,b.jsx)(m.A,{isLoading:_,features:E}),V,t]})})},v=e=>{const t=new o.E;return(0,b.jsx)(i.Ht,{client:t,children:(0,b.jsx)(y,{...e})})}},97540(e,t,r){"use strict";r.d(t,{PG:()=>n});const n=100},51720(e,t,r){"use strict";r.d(t,{g:()=>o});var n=r(51609);r(10790);const s={message:"",title:null,options:{level:"info",priority:0}},o=(0,n.createContext)({currentNotice:s,setNotice:null,resetNotice:null})},32911(e,t,r){"use strict";r.d(t,{Ck:()=>c,FW:()=>i,Re:()=>l,Yr:()=>u,jE:()=>a,jf:()=>s,xF:()=>o});const n="my-jetpack/v1",s=`${n}/site/products`,o="product",i="activate product",a="install product",c="purchases",l="get protect data",u="get videopress data"},6528(e,t,r){"use strict";r.d(t,{M:()=>l});var n=r(27723),s=r(51609),o=r(97540),i=r(51720),a=r(32911);const __=n.__,c=[a.Ck,a.FW,a.jE,a.Re,a.Yr],l=({infoName:e,isError:t,overrideMessage:r})=>{const{setNotice:a}=(0,s.useContext)(i.g),l=r??(0,n.sprintf)(
// translators: %s is the name of the information being fetched, e.g. "site purchases".
__("There was an error fetching your %s information. Check your site connectivity and try again.","jetpack-boost"),e);(0,s.useEffect)(()=>{t&&c.includes(e)&&a({message:l,options:{id:"fetching-error-notice",level:"error",priority:o.PG}})},[l,a,t,e])}},2055(e,t,r){"use strict";r.d(t,{V:()=>a});var n=r(32911),s=r(30357),o=r(43449),i=r(28746);const a=()=>{const{items:e}=(0,o.A$)("products"),{data:t,isLoading:r,isRefetching:a,isError:c,refetch:l}=(0,s.A)({name:`${n.xF}`,query:{path:`${n.jf}`},options:{enabled:!0}});if(!r&&!c)for(const[r,n]of Object.entries(e))t&&t[r]&&(e[r]={...n,...t[r]});return e?{data:Object.entries(e).reduce((e,[t,r])=>({...e,[t]:(0,i.l)(r)}),{}),refetch:l,isLoading:r,isRefetching:a,isError:c}:{data:{},isLoading:!1,isError:!1,isRefetching:a,refetch:l}}},67702(e,t,r){"use strict";r.d(t,{A:()=>s});var n=r(65653);const s=e=>{const{products:t,refetch:r,isLoading:s,isRefetching:o}=(0,n.A)([e]);return{detail:t[0],refetch:r,isLoading:s,isRefetching:o}}},65653(e,t,r){"use strict";r.d(t,{A:()=>o});var n=r(51609),s=r(2055);const o=e=>{const t=Array.isArray(e)?e:[e],{data:r,isLoading:o,isRefetching:i,refetch:a}=(0,s.V)();return{products:t.map(e=>r?.[e]),refetch:(0,n.useCallback)(async()=>{await a()},[a]),isLoading:o,isRefetching:i}}},30357(e,t,r){"use strict";r.d(t,{A:()=>a});var n=r(35104),s=r(1455),o=r.n(s),i=r(6528);const a=({name:e,query:t,options:r,errorMessage:s})=>{const a=(0,n.I)({queryKey:[e,t],queryFn:()=>o()(t),refetchOnWindowFocus:!1,refetchIntervalInBackground:!1,...r}),{error:c,isError:l,isLoading:u}=a;return(0,i.M)({infoName:e,isError:!u&&l&&"not_connected"!==c.code,overrideMessage:s}),a}},43449(e,t,r){"use strict";r.d(t,{A$:()=>n,SF:()=>o,qG:()=>s});const n=e=>e?window?.myJetpackInitialState?.[e]??{}:window?.myJetpackInitialState,s=()=>window?.myJetpackRest??{},o=e=>e?window?.JP_CONNECTION_INITIAL_STATE?.[e]??{}:window?.JP_CONNECTION_INITIAL_STATE},28746(e,t,r){"use strict";r.d(t,{l:()=>s});var n=r(98628);const s=e=>{const t=(0,n.A)(e);return t.features=t.features||[],t.supportedProducts=t.supportedProducts||[],t.pricingForUi&&(t.pricingForUi.fullPricePerMonth=(e=>"year"===e.pricingForUi.productTerm?Math.round(e.pricingForUi.fullPrice/12*100)/100:e.pricingForUi.fullPrice)(t),t.pricingForUi.discountPricePerMonth=(e=>"year"===e.pricingForUi.productTerm?Math.round(e.pricingForUi.discountPrice/12*100)/100:e.pricingForUi.discountPrice)(t)),t}},98628(e,t,r){"use strict";r.d(t,{A:()=>s});const n=e=>Array.isArray(e)?e.map(e=>n(e)):"object"==typeof e&&null!==e?Object.fromEntries(Object.entries(e).map(([e,t])=>[e.replace(/([-_][a-z])/gi,e=>e.toUpperCase().replace(/[-_]/g,"")),n(t)])):e,s=n},80087(e,t,r){"use strict";r.d(t,{A:()=>a});var n=r(90372),s=r(51609),o=r(43449),i=r(25515);const a=()=>{const{isUserConnected:e,isSiteConnected:t,connectedPlugins:r,userConnectionData:a={}}=(0,i.A)(),{login:c,ID:l}=a.currentUser?.wpcomUser||{},{myJetpackVersion:u=""}=(0,o.A$)();(0,s.useEffect)(()=>{e&&l&&c&&n.A.initialize(l,c)},[l,e,c]);const d=Object.keys(r||{}).sort().join(",").replaceAll("jetpack-","");return{recordEvent:(0,s.useCallback)((r,s)=>{n.A.tracks.recordEvent(r,{version:u,is_site_connected:t,is_user_connected:e,referring_plugins:d,...s})},[])}}},25515(e,t,r){"use strict";r.d(t,{A:()=>o});var n=r(39384),s=r(43449);const o=({skipUserConnection:e=!1,redirectUri:t=""}={})=>{const{apiRoot:r,apiNonce:o}=(0,s.qG)(),{topJetpackMenuItemUrl:i,blogID:a}=(0,s.A$)(),{registrationNonce:c}=(0,s.SF)(),l=(0,n.useConnection)({apiRoot:r,apiNonce:o,registrationNonce:c,skipUserConnection:e,from:"my-jetpack",redirectUri:t,autoTrigger:!1}),u=l.isRegistered,d=l.isRegistered,p=l.hasConnectedOwner;return{apiNonce:o,apiRoot:r,blogID:a,registrationNonce:c,...l,isSiteConnected:u,siteIsRegistered:d,topJetpackMenuItemUrl:i,hasConnectedOwner:p}}},26739(e,t,r){"use strict";function n(){const e=window.location.search;return new URLSearchParams(e).has("redirect_to_referrer","1")&&""!==document.referrer?document.referrer:null}r.d(t,{y:()=>n})},93956(e,t,r){"use strict";r.d(t,{U:()=>f});var n=r(63016),s=r(74081),o=r(51112),i=r(79245),a=r(489),c=r(27723),l=r(88050),u=r(42472),d=r(61868),p=r(10790);const __=c.__,h=({feature:e})=>{const{description:t,included:r,info:n}=e;let s;return t&&(s=(0,p.jsx)("strong",{children:t})),(0,p.jsx)(i.eY,{isIncluded:r,label:s,tooltipTitle:n?.title,tooltipInfo:n?.content?(0,p.jsx)("div",{dangerouslySetInnerHTML:{__html:n?.content}}):null,tooltipClassName:n?.class})},f=({onPremiumCTA:e,onFreeCTA:t,chosenFreePlan:r,chosenPaidPlan:c})=>{const f=(0,n.e)(),m=(0,s.B)(),g=f?.isIntroductoryOffer?__("/month for the first year, billed yearly","jetpack-boost"):void 0,b=f?.priceBefore&&f?.priceBefore>f?.priceAfter,y=m?.features_by_tier??[];return(0,p.jsxs)(p.Fragment,{children:[!f&&(0,p.jsxs)(l.b,{intent:"warning",children:[(0,p.jsx)(u.h,{children:__("Warning: There was a problem fetching pricing data","jetpack-boost")}),(0,p.jsx)(d.V,{children:__("Boost may not work as expected. Please check your site status and tLine truncated
_n("Homepage + %d page","Homepage + %d pages",e.length,"jetpack-boost"),e.length);return(0,n.sprintf)(/* translators: %s is the number of pages in the custom cornerstone pages list. */
__("Added: %s","jetpack-boost"),t)},m=()=>{const e=(0,c.W)().includes("cornerstone-10-pages"),[t]=(0,p.p)("speculation_rules"),r=t?.available??!1;return(0,h.jsx)("div",{className:a.A.wrapper,children:(0,h.jsx)(o.Panel,{className:a.A.panel,children:(0,h.jsxs)(o.PanelBody,{title:(0,h.jsxs)("div",{children:[(0,h.jsxs)("h3",{children:[__("Cornerstone Pages","jetpack-boost"),e&&(0,h.jsx)(i.A,{})]}),(0,h.jsx)(f,{})]}),initialOpen:!1,onToggle:e=>{(0,l.n7)("cornerstone_pages_panel_toggle",{status:e?"open":"close"})},className:a.A.body,children:[(0,h.jsx)(o.PanelRow,{children:(0,h.jsx)(s.Ay,{})}),r&&(0,h.jsx)(o.PanelRow,{children:(0,h.jsx)(d.A,{})}),(0,h.jsx)(s.zh,{})]})})})}},60877(e,t,r){"use strict";r.d(t,{T:()=>o,b:()=>a});var n=r(46913),s=r(83102);function o(){const[{data:e},{mutate:t}]=(0,n.Bt)("jetpack_boost_ds","cornerstone_pages_list",s.YO(s.Yj()));return[e||[],function(e,r){t(e,{onSuccess:r})}]}const i=s.Ik({max_pages:s.ai(),max_pages_premium:s.ai(),default_pages:s.YO(s.Yj()),predefined_pages:s.YO(s.Yj())});function a(){const[{data:e}]=(0,n.Bt)("jetpack_boost_ds","cornerstone_pages_properties",i);return e}},21024(e,t,r){"use strict";r.d(t,{Ay:()=>N,zh:()=>R});var n=r(3559),s=r(22603),o=r(63195),i=r(11809),a=r(74592),c=r(33957),l=r(21482),u=r(72027),d=r(10133),p=r(98643),h=r(30698),f=r(3924),m=r(51112),g=r(56427),b=r(86087),y=r(27723),v=r(79654),w=r(88050),x=r(42472),_=r(61868),k=r(51609),j=r(60877),C=r(21020),A=r(10790);const __=y.__,_n=y._n,S=()=>(0,A.jsxs)(w.b,{intent:"warning",children:[(0,A.jsx)(x.h,{children:__("Failed to load","jetpack-boost")}),(0,A.jsx)(_.V,{children:(0,A.jsx)("p",{children:(0,b.createInterpolateElement)(__("Refresh the page and try again. If the issue persists, please <link>contact support</link>.","jetpack-boost"),{link:(0,A.jsx)(v.N,{openInNewTab:!0,href:(0,p.A)(),onClick:()=>{(0,d.n7)("cornerstone_pages_properties_failed",{})}})})})})]}),E=()=>{const e=(0,j.b)(),[t,r]=(0,j.T)(),l=(0,s._s)(),d=(0,u.W)().includes("cornerstone-10-pages"),[{refetch:p}]=(0,o.Z)(),[h]=(0,i.eu)({enabled:!1}),{setNotice:f}=(0,c.h)(),m=d?10:5,[{data:g}]=(0,a.C)();return(0,A.jsxs)("div",{className:C.A.section,children:[(0,A.jsx)("p",{className:C.A.description,children:(0,A.jsx)("strong",{children:__("Homepage:","jetpack-boost")})}),(0,A.jsx)(M,{items:e.predefined_pages}),(0,A.jsx)("p",{className:C.A.description,children:(0,A.jsx)("strong",{children:__("Custom:","jetpack-boost")})}),(0,A.jsx)(P,{items:t.join("\n"),setItems:e=>{const t=e?e.split("\n").map(e=>e.trim()).filter(Boolean):[];r(t,()=>{f({id:"cornerstone-pages-save",type:"success",message:__("Cornerstone pages saved","jetpack-boost")}),(0,n.O)(g)&&(p(),d&&l.mutate()),h.refetch()})},maxItems:e.max_pages,defaultValue:e.default_pages.join("\n"),inputRows:m,description:(0,A.jsx)(A.Fragment,{children:(0,b.createInterpolateElement)((0,y.sprintf)(/* translators: %s is the site URL. */
__("Add one URL per line. Only URLs starting with <b>%s</b> will be included. Relative URLs are automatically expanded.","jetpack-boost"),Jetpack_Boost.site.url),{b:(0,A.jsx)("b",{})})})})]})},R=()=>{const e=(0,j.b)();return(0,u.W)().includes("cornerstone-10-pages")||!e?null:(0,A.jsx)("div",{className:C.A.wrapper,children:(0,A.jsx)(l.A,{identifier:"cornerstone-10-pages",description:(0,y.sprintf)(/* translators: %d is the number of cornerstone pages. */
__("Premium users can add up to %d cornerstone pages.","jetpack-boost"),e.max_pages_premium)})})},M=({items:e})=>(0,A.jsx)("ul",{className:C.A["predefined-pages"],children:e.map(e=>(0,A.jsx)("li",{children:e},e))}),T=({defaultValue:e,inputValue:t,maxPages:r,onValueChange:n,className:s})=>{const{setNotice:o}=(0,c.h)(),i=e=>e.split("\n").map(e=>e.trim()).filter(Boolean),a=(0,k.useMemo)(()=>i(e),[e]),l=(0,k.useMemo)(()=>i(t),[t]),u=(0,k.useMemo)(()=>{const e=a.length>0,t=a.filter(e=>!l.includes(e));return{hasDefaults:e,missingDefaults:t,availableSlots:Math.max(0,r-l.length),hasAllDefaults:0===t.length}},[a,l,r]),p=(e,t)=>{const r=Math.min(e.length,t);return r<e.length?(0,y.sprintf)(/* translators: %1$d is pages that will be included, %2$d is total available pages */
__("Include %1$d of %2$d default pages (plan limit).","jetpack-boost"),r,e.length):(0,y.sprintf)(/* translators: %d is the number of pages that will be included */
_n("Include %d default page from compatible plugins.","Include %d default pages from compatible plugins.",r,"jetpack-boost"),r)},h=(()=>{const{hasDefaults:e,missingDefaults:t,availableSlots:r,hasAllDefaults:n}=u;return e?n?{disabled:!0,title:__("Default pages are already included.","jetpack-boost")}:0===r?{disabled:!0,title:__("Cannot include defaults. Plan limit reached.","jetpack-boost")}:{disabled:!1,title:p(t,r)}:{disabled:!0,title:__("No default pages available. Add pages manually.","jetpack-boost")}})();return(0,A.jsx)(g.Tooltip,{text:h.title,delay:0,children:(0,A.jsx)("div",{children:(0,A.jsx)(m.A,{disabled:h.disabled,onClick:()=>{const{missingDefaults:e,availableSlots:t}=u,r=e.slice(0,t),s=[...l,...r];n(s.join("\n")),r.length<e.length?o({id:"cornerstone-load-defaults",type:"error",message:(0,y.sprintf)(/* translators: %1$d is pages included, %2$d is total available pages */
__("Included %1$d of %2$d default pages (plan limit reached).","jetpack-boost"),r.length,e.length)}):o({id:"cornerstone-load-defaults",type:"success",message:(0,y.sprintf)(/* translators: %d is the number of pages included */
_n("Included %d default page.","Included %d default pages.",r.length,"jetpack-boost"),r.length)}),(0,d.n7)("cornerstone_pages_load_default",{loaded_count:r.length,available_count:e.length,was_truncated:r.length<e.length?"true":"false"})},className:s,variant:"link",children:__("Include default pages","jetpack-boost")})})})},P=({items:e,setItems:t,maxItems:r,description:n,defaultValue:s="",inputRows:o=10})=>{const[i,a]=(0,k.useState)(e),[c,l]=(0,k.useState)(null),u=(0,k.useMemo)(()=>c,[c]);(0,k.useEffect)(()=>{a(e)},[e]);const p=e=>{a(e);try{g(e),l(null)}catch(e){l(e)}},f=(e,t)=>"/"===e?t.pathname:e,g=e=>{const t=e.split("\n").map(e=>e.trim()).filter(Boolean);if(0===t.length)return!0;if(t.length>r){const e=(0,y.sprintf)(/* translators: %d is the maximum number of cornerstone page URLs. */
_n("You can add only %d cornerstone page URL.","You can add up to %d cornerstone page URLs.",r,"jetpack-boost"),r);throw new Error(e)}const n=new URL(Jetpack_Boost.site.url);for(const e of t){let t,r;try{t=new URL(e),r=t.pathname}catch{r=e}if(t&&!(0,h.n)(t,n))throw new Error(/* translators: %s is the URL that didn't match the site URL */ /* translators: %s is the URL that didn't match the site URL */
(0,y.sprintf)(__("The URL seems to be a different site: %s","jetpack-boost"),e));if(f(r,n)===n.pathname&&!t?.search)throw new Error(__("The homepage does not need to be added to the list, as it is automatically included.","jetpack-boost"))}return!0};return(0,A.jsxs)("div",{className:u?C.A["has-error"]:"",children:[(0,A.jsx)("textarea",{value:i,rows:o,onChange:e=>p(e.target.value),id:"jb-cornerstone-pages"}),u&&(0,A.jsx)("span",{className:C.A.error,children:c?.message}),n&&(0,A.jsx)("div",{className:C.A.description,children:n}),(0,A.jsxs)("div",{className:C.A.buttonGroup,children:[(0,A.jsx)(m.A,{disabled:e===i||u,onClick:function(){t(i);const e=i.split("\n").map(e=>e.trim()).filter(Boolean).length;(0,d.n7)("cornerstone_pages_save",{list_length:e})},children:__("Save","jetpack-boost")}),(0,A.jsx)(T,{defaultValue:s,inputValue:i,maxPages:r,onValueChange:e=>{p(e)}})]})]})},N=()=>{const e=(0,f.A)("jetpack-boost-cornerstone-pages"),t=(0,j.b)();return(0,A.jsxs)("div",{className:C.A.wrapper,"data-testid":"cornerstone-pages-meta",children:[(0,A.jsx)("p",{children:(0,b.createInterpolateElement)(__("List the most important pages of your site. These pages will receive specially tailored optimizations, including targeted critical CSS. The Page Speed scores are based on your homepage, which is automatically included. <b><link>Learn More</link></b>","jetpack-boost"),{link:(0,A.jsx)(v.N,{openInNewTab:!0,href:e,onClick:()=>{(0,d.n7)("clicked_cornerstone_pages_learn_more",{})}}),b:(0,A.jsx)("b",{})})}),(0,A.jsx)("div",{className:C.A.body,children:t?(0,A.jsx)(E,{}):(0,A.jsx)(S,{})})]})}},90980(e,t,r){"use strict";r.d(t,{A:()=>g});var n=r(27723),s=r(56427),o=r(70556),i=r(10133),a=r(86087),c=r(79654),l=r(3924),u=r(40597),d=r(74592),p=r(33957),h=r(10790);const __=n.__,f=(0,l.A)("jetpack-boost-unsafe-speculation-rules"),m=({children:e})=>{const[t,r]=(0,a.useState)(!1);return(0,h.jsxs)("div",{className:o.A["warning-wrapper"],children:[(0,h.jsx)("a",{href:"#",className:o.A["warning-button"],onClick:e=>{(0,i.n7)("prerender_warning_message_clicked",{}),e.preventDefault(),r(!t)},children:e}),(0,h.jsx)("div",{className:o.A["warning-tooltip-wrapper"],children:(0,h.jsxs)(u.A,{placement:"bottom-end",popoverAnchorStyle:"wrapper",forceShow:t,offset:-10,className:o.A["warning-tooltip"],children:[(0,h.jsx)("strong",{children:__("Warning","jetpack-boost")}),(0,h.jsx)("br",{}),__("Prerendering pages can be unsafe if the pages are not properly configured. JavaScript will execute on the prerendered page. This can lead to unexpected behavior if not handled correctly.","jetpack-boost"),(0,h.jsx)("br",{}),(0,a.createInterpolateElement)(__("<link>Learn more</link>","jetpack-boost"),{link:(0,h.jsx)(c.N,{openInNewTab:!0,href:f})})]})})]})},g=()=>{const{setNotice:e}=(0,p.h)(),[t,r]=(0,d.p)("speculation_rules",t=>{const r=__("Prerender enabled","jetpack-boost"),n=__("Prerender disabled","jetpack-boost");e({id:"update-module-state",type:"success",message:t?r:n})}),n=t?.active??!1;return(0,h.jsxs)("div",{className:o.A.wrapper,children:[(0,h.jsxs)("div",{className:o.A.title,"data-testid":"prerender-cornerstone-pages-title",children:[(0,h.jsx)("h4",{children:__("Prerender Cornerstone Pages","jetpack-boost")}),(0,h.jsx)(s.ToggleControl,{className:o.A["toggle-control"],checked:n,onChange:e=>{r(e),(0,i.n7)("cornerstone_pages_prerender_toggle",{enabled:Number(e)})},__nextHasNoMarginBottom:!0})]}),(0,h.jsx)("div",{className:o.A.description,children:(0,a.createInterpolateElement)(__("Prerender these pages to improve their loading performance, but <help>be mindful</help> of potential drawbacks.","jetpack-boost"),{help:(0,h.jsx)(m,{})})})]})}},25460(e,t,r){"use strict";r.d(t,{A:()=>c});var n=r(27723),s=r(6378),o=r(22603),i=r(27730),a=r(10790);const __=n.__;function c(){const[e]=(0,o.PX)(),t="pending"===e.status,r=e.providers.some(e=>"pending"!==e.status),n="not_generated"===e.status,c=r&&t&&__("Jetpack Boost is generating more Critical CSS.","jetpack-boost"),l=(t||n)&&!r&&__("Jetpack Boost will generate Critical CSS for you automatically.","jetpack-boost");return(0,a.jsx)(s.A,{cssState:e,isCloud:!0,showFatalError:(0,i.HP)(e),extraText:c||void 0,overrideText:l||void 0})}},54084(e,t,r){"use strict";r.d(t,{Ay:()=>l,Ke:()=>p,Mz:()=>d,sk:()=>h});var n=r(51609),s=r(22603),o=r(98710),i=r(97893),a=r(10790);const c=(0,n.createContext)(null);function l({children:e}){const[t,r]=(0,n.useState)(!1),[s,o]=(0,n.useState)(0),[i,l]=(0,n.useState)(!1),u={isGenerating:t,setGenerating:r,providerProgress:s,setProviderProgress:o,hasRetriedAfterError:i,setHasRetriedAfterError:l};return(0,a.jsx)(c.Provider,{value:u,children:e})}function u(){const e=(0,n.useContext)(c);if(!e)throw new Error("Critical CSS status not available");return e}function d(){const{isGenerating:e,providerProgress:t}=u();return{isGenerating:e,providerProgress:t}}function p(){const{hasRetriedAfterError:e,setHasRetriedAfterError:t}=u();return[e,t]}function h(){const{isGenerating:e,setGenerating:t,providerProgress:r,setPrLine truncated
_n("Boost received HTTP error <b>%d</b> on the following page:","Boost received HTTP error <b>%d</b> on the following pages:",u(e),"jetpack-boost"),e.firstMeta.code),suggestion:e=>function(e,t){switch(e){case 401:case 403:return{paragraph:(0,n.sprintf)(/* translators: %d is the HTTP error code; either 401 or 403 */
_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:",t,"jetpack-boost"),e),list:[__("Check your WordPress settings, or contact your hosting provider to ask why the above URL is unavailable.","jetpack-boost"),__("<retry>Try again</retry> to generate the Critical CSS.","jetpack-boost")],closingParagraph:__("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:_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>.",t,"jetpack-boost"),list:[__("Visit the link, and confirm that the page you landed on loads successfully.","jetpack-boost"),__("If the page shows an error, please verify that the page should be a part of your WordPress site.","jetpack-boost"),__('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"),__('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"),__("Once you have resolved the error, please <retry>try again</retry>.","jetpack-boost")],closingParagraph:__("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:__("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:[__('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"),__("Your hosting provider should be able to advise you on next steps.","jetpack-boost"),__("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:_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.",t,"jetpack-boost"),list:[__("Learn about the error and common solutions by <link>clicking here</link>.","jetpack-boost"),__("If the issue is still not resolved, check your server logs or contact your hosting provider for help to investigate the issue.","jetpack-boost"),__("Once you have resolved the issue which caused the 500 error, you can <retry>try again</retry>.","jetpack-boost")],listLink:"https://wordpress.org/support/article/common-wordpress-errors/#internal-server-error"};default:return{paragraph:_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:",t,"jetpack-boost"),list:[__("Visit the link and check for an error.","jetpack-boost"),__("<retry>Try to generate Critical CSS again</retry>, in case the error was intermittent.","jetpack-boost"),(0,n.sprintf)(/* translators: %d is the HTTP error code; This can be any error code that is not specifically handled. */
__("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),__("Once you have resolved the error, please <retry>try again</retry>.","jetpack-boost"),__("If you need help understanding the error, or investigating what went wrong please contact <support>Jetpack Boost Support</support>.","jetpack-boost")]}}}((0,s.G)(e.firstMeta.code),u(e))},RedirectError:{describeSet:e=>_n("This URL is redirecting to a different page:","These URLs are redirecting to different pages:",u(e),"jetpack-boost"),suggestion:e=>({paragraph:__("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:[__('Try visiting the link using "Incognito Mode" or "Private Browsing" in your browser and note if the page is being redirected.',"jetpack-boost"),__("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"),__("If you believe the issue is resolved, please <retry>try again</retry>.","jetpack-boost")],closingParagraph:__("If you think that the redirection is valid, then it is safe to ignore this issue.","jetpack-boost")})},CrossDomainError:{describeSet:e=>_n("It looks like this URL doesn't match:","It looks like these URLs don't match:",u(e),"jetpack-boost"),suggestion:e=>({paragraph:_n("Visit the page and complete the following troubleshooting steps.","Visit each page and complete the following troubleshooting steps.",u(e),"jetpack-boost"),list:[__("Visit the page and look at the protocol and host name to ensure it matches the one in your <link>WordPress Administration Screen</link>.","jetpack-boost"),__("If not, then please reach out to your hosting provider and ask why.","jetpack-boost"),__("If you believe the issue is resolved, please <retry>try again</retry>.","jetpack-boost")],listLink:"https://wordpress.org/support/article/administration-screens/"}),footerComponent:()=>o.A},LoadTimeoutError:{describeSet:e=>_n("This page timed out:","These pages timed out:",u(e),"jetpack-boost"),suggestion:e=>({paragraph:_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.",u(e),"jetpack-boost"),list:[__("Clear the cache in your browser.","jetpack-boost"),__("Visit the page while not logged into WordPress.","jetpack-boost"),__("See how long it takes to load compared to other pages on your site.","jetpack-boost"),__("If this page is slower than the others, check what plugins are working on that page.","jetpack-boost"),__("Deactivate any plugin that you believe are making the page slow.","jetpack-boost"),__("<retry>Try again</retry> to generate the Critical CSS.","jetpack-boost")]})},UrlVerifyError:{describeSet:e=>_n("Jetpack Boost couldn't verify this page:","Jetpack Boost couldn't verify these pages:",u(e),"jetpack-boost"),suggestion:e=>({paragraph:_n("Please follow the troubleshooting steps below for the page.","Please follow the troubleshooting steps below for each of the pages.",u(e),"jetpack-boost"),list:[__("Visit the page.","jetpack-boost"),__("Verify that the content displayed is a part of your WordPress site, and not an external page managed by a different system.","jetpack-boost"),__("<retry>Try again</retry> to generate the Critical CSS.","jetpack-boost")]})},EmptyCSSError:{describeSet: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):",u(e),"jetpack-boost"),suggestion:e=>({paragraph:_n("Please follow the troubleshooting steps below for the page.","Please follow the troubleshooting steps below for each of the pages.",u(e),"jetpack-boost"),list:[__("Visit the page.","jetpack-boost"),__("Verify its styles load correctly, and <retry>try again</retry>.","jetpack-boost")],closingParagraph:__("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=>_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:",u(e),"jetpack-boost"),rawError:e=>Line truncated
__("…and %d more","jetpack-boost"),e.length-t)})})]})})}},22348(e,t,r){"use strict";r.d(t,{A:()=>i});var n=r(86087),s=r(39974),o=r(10790);const i=({items:e,interpolateVars:t})=>(0,o.jsx)("ol",{className:s.A["numbered-list"],children:e.map((e,r)=>(0,o.jsxs)("li",{children:[(0,o.jsx)("span",{className:s.A.index,children:r+1}),(0,o.jsx)("span",{className:s.A.text,children:(0,n.createInterpolateElement)(e,t)})]},r))})},98132(e,t,r){"use strict";r.d(t,{A:()=>i});var n=r(27723),s=r(3485),o=r(10790);const __=n.__;function i({errorSet:e}){const t=(0,s.DZ)(e);return t?(0,o.jsx)("p",{children:(0,n.sprintf)(
// translators: %s is the error message
__("Error: %s","jetpack-boost"),t)}):null}},5752(e,t,r){"use strict";r.d(t,{b:()=>l});var n=r(27723),s=r(88050),o=r(42472),i=r(61868),a=r(10790);const __=n.__,c={page_saved:__("We noticed you've recently published a new page on your site that may affect its HTML/CSS structure.","jetpack-boost"),post_saved:__("We noticed you've recently published a new post on your site that may affect its HTML/CSS structure.","jetpack-boost"),switched_theme:__("We noticed you've recently updated your theme that may affect your site's HTML/CSS structure.","jetpack-boost"),plugin_change:__("We noticed you've recently updated a plugin that may affect your site's HTML/CSS structure.","jetpack-boost"),cornerstone_page_saved:__("A Cornerstone page was updated.","jetpack-boost"),cornerstone_pages_list_updated:__("The list of Cornerstone pages was updated.","jetpack-boost")},l=({regenerateReason:e})=>{return e?(0,a.jsxs)(s.b,{intent:"info",children:[(0,a.jsx)(o.h,{children:__("Regenerate Critical CSS","jetpack-boost")}),(0,a.jsxs)(i.V,{children:[(0,a.jsx)("p",{children:(t=e,"string"==typeof t&&t in c?c[t]:__("We noticed some updates to your site that may have changed your HTML/CSS structure.","jetpack-boost"))}),(0,a.jsx)("p",{children:__("Please regenerate your Critical CSS to maintain optimal site performance.","jetpack-boost")})]})]}):null;var t}},26302(e,t,r){"use strict";r.d(t,{A:()=>A});var n=r(27723),s=r(86492),o=r(27730),i=r(3485),a=r(86087),c=r(79654),l=r(88050),u=r(42472),d=r(61868),p=r(25710),h=r(22348),f=r(37772),m=r(86367),g=r(41974),b=r(10133),y=r(31962),v=r(98132),w=r(39628),x=r(10790);const __=n.__,_=({errorSet:e})=>{const t=(0,m.A)(e);return(0,x.jsxs)(x.Fragment,{children:[(0,x.jsx)("p",{children:(0,a.createInterpolateElement)((0,i._D)(e),{b:(0,x.jsx)("b",{})})}),(0,x.jsx)("p",{className:w.A.errorLinks,children:t.map(({href:e,label:t},r)=>(0,x.jsx)("a",{onClick:()=>{(0,b.n7)("critical_css_error_link_clicked",{})},href:e,target:"_blank",rel:"noreferrer",children:t},r))})]})},k=({errorSet:e})=>{const t=(0,i.h)(e);if(!t.list)return null;const r=(0,f.A)(e);return(0,x.jsx)(h.A,{items:t.list,interpolateVars:r})},j=({message:e,errorType:t})=>(void 0===e&&(e=__("If you are still experiencing this issue, <link>learn more</link> from our documentation.","jetpack-boost")),(0,x.jsx)("p",{children:(0,a.createInterpolateElement)(e,{link:(0,x.jsx)(c.N,{openInNewTab:!0,href:(0,p.A)(t),onClick:()=>{(0,b.n7)("critical_css_learn_more",{})}})})})),C=({cssState:e,supportLink:t})=>{const[r,s]=(0,y.O)(),o=__("An unexpected error has occurred. As this error may be temporary, please try and refresh the Critical CSS.","jetpack-boost"),i=__("Hmm, looks like something went wrong. We're still seeing an unexpected error. Please reach out to our support to get help.","jetpack-boost");return(0,x.jsx)(x.Fragment,{children:"css-gen-library-failure"===e.status_error?(0,x.jsxs)(x.Fragment,{children:[(0,x.jsx)("p",{children:__("Critical CSS Generator library is either not found or invalid.","jetpack-boost")}),(0,x.jsx)(j,{message:__("<link>Learn how</link> to fix this by visiting our documentation.","jetpack-boost"),errorType:e.status_error}),(0,x.jsx)("p",{children:(0,a.createInterpolateElement)(__("If the problem has been resolved, refresh the page and click <retry>here</retry> to try regenerating critical css.","jetpack-boost"),{...(0,g.A)(()=>{(0,b.n7)("critical_css_retry",{error_type:"CssGenLibraryFailure"}),s()},"retry")})})]}):(0,x.jsxs)(x.Fragment,{children:[(0,x.jsx)("p",{children:r?i:o}),(0,x.jsx)("p",{children:(0,n.sprintf)(/* translators: %s: error message */
__("Error: %s","jetpack-boost"),e.status_error)}),r?(0,x.jsx)(c.N,{openInNewTab:!0,className:"button button-secondary",href:t,onClick:()=>{(0,b.n7)("critical_css_contact_support",{})},children:__("Contact Support","jetpack-boost")}):(0,x.jsx)("button",{className:"secondary",onClick:()=>{(0,b.n7)("critical_css_retry",{error_type:"UnknownError"}),s()},children:__("Refresh","jetpack-boost")})]})})},A=({supportLink:e="https://wordpress.org/support/plugin/jetpack-boost/",cssState:t})=>{const r=(0,o.LB)(t),n=r&&"generated"===t.status;return(0,x.jsxs)(l.b,{intent:"error",children:[(0,x.jsx)(u.h,{children:__("Failed to generate Critical CSS","jetpack-boost")}),(0,x.jsx)(d.V,{children:n?(0,x.jsxs)(x.Fragment,{children:[(0,x.jsx)(_,{errorSet:r}),(0,x.jsx)(v.A,{errorSet:r}),(0,x.jsx)(s.A,{labelExpandedText:__("Learn what to do","jetpack-boost"),labelCollapsedText:__("Learn what to do","jetpack-boost"),onExpand:e=>{e&&(0,b.n7)("critical_css_learn_more_expanded",{})},children:(0,x.jsxs)("div",{className:"raw-error",children:[(0,x.jsx)("p",{children:__("Please follow the troubleshooting steps below","jetpack-boost")}),(0,x.jsx)(k,{errorSet:r}),(0,x.jsx)(j,{errorType:r.type.toString()})]})})]}):(0,x.jsx)(C,{cssState:t,supportLink:e})})]})}},6378(e,t,r){"use strict";r.d(t,{A:()=>b});var n=r(27723),s=r(13022),o=r(25592),i=r(76520),a=r(3819),c=r(86087),l=r(86212),u=r(22603),d=r(27730),p=r(26302),h=r(51112),f=r(20648),m=r(10133),g=r(10790);const __=n.__,_n=n._n,b=({cssState:e,isCloud:t=!1,showFatalError:r,highlightRegenerateButton:b=!1,extraText:y,overrideText:v})=>{const w=(0,u._s)(),x=e.providers.filter(e=>"success"===e.status).length||0,_=(0,d.ik)(e);return r?(0,g.jsx)(p.A,{supportLink:t?"https://jetpack.com/contact-support/":void 0,cssState:e}):(0,g.jsxs)("div",{className:f.A.status,"data-testid":"critical-css-meta",children:[(0,g.jsxs)("div",{className:f.A.summary,children:[v||(0,g.jsxs)("div",{className:f.A.successes,children:[(0,n.sprintf)(/* translators: %d is a number of CSS Files which were successfully generated */
_n("%d file generated","%d files generated",x,"jetpack-boost"),x),!!e.updated&&(0,g.jsxs)(g.Fragment,{children:[" ",(0,g.jsx)(o.A,{time:new Date(1e3*e.updated)})]}),". ",y]}),"pending"!==e.status&&_.length>0&&(0,g.jsxs)("div",{className:(0,s.A)("failures",f.A.failures),children:[(0,g.jsx)(i.A,{}),(0,g.jsx)(g.Fragment,{children:(0,c.createInterpolateElement)((0,n.sprintf)(
// translators: %d is a number of CSS Files which failed to generate
_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.",_.length,"jetpack-boost"),_.length),{advanced:(0,g.jsx)(l.N_,{to:"/critical-css-advanced",onClick:()=>{(0,m.n7)("critical_css_advanced_link_clicked",{})}})})})]})]}),(0,g.jsx)(h.A,{className:f.A["regenerate-button"],variant:b?"primary":"link",size:"small",weight:"regular",onClick:()=>{(0,m.n7)("critical_css_regenerate_clicked",{}),w.mutate()},icon:b?void 0:(0,g.jsx)(a.A,{}),disabled:"pending"===e.status,children:__("Regenerate","jetpack-boost")})]})}},48730(e,t,r){"use strict";r.d(t,{A:()=>c});var n=r(86087),s=r(3485),o=r(22348),i=r(46416),a=r(10790);const c=({errorSet:e,interpolateVars:t,showClosingParagraph:r})=>{const c=(0,s.HR)(e),l=(0,s.h)(e);return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("p",{className:i.A.suggestion,children:(0,n.createInterpolateElement)((0,s.h)(e).paragraph,t)}),l.list&&(0,a.jsx)(o.A,{items:l.list,interpolateVars:t}),r&&l.closingParagraph&&(0,a.jsx)("p",{className:i.A["suggestion-closing"],children:(0,n.createInterpolateElement)(l.closingParagraph,t)}),c&&(0,a.jsx)(c,{})]})}},25592(e,t,r){"use strict";r.d(t,{A:()=>i});var n=r(87668),s=r(51609),o=r(10790);const i=({time:e})=>{const[t,r]=(0,s.useState)((0,n.A)(e));return(0,s.useEffect)(()=>{const t=setInterval(()=>{r((0,n.A)(e))},1e4);return()=>clearInterval(t)},[e]),(0,o.jsx)("span",{title:e.toLocaleString(),className:"time-ago",children:t})}},89636(e,t,r){"use strict";r.d(t,{A:()=>i});var n=r(27723),s=r(44734),o=r(10790);const __=n.__,i=()=>{const e=window.location.protocol.split(":")[0],t=window.location.hostname;return(0,o.jsxs)("div",{className:s.A.container,children:[(0,o.jsxs)("div",{className:s.A.segment,children:[(0,o.jsx)("div",{className:s.A.label,children:__("Protocol","jetpack-boost")}),(0,o.jsx)("div",{className:s.A.arrows}),e]}),(0,o.jsx)("div",{className:s.A.segment,children:"://"}),(0,o.jsxs)("div",{className:s.A.segment,children:[(0,o.jsx)("div",{className:s.A.label,children:__("Host name","jetpack-boost")}),(0,o.jsx)("div",{className:s.A.arrows}),t]})]})}},70704(e,t,r){"use strict";r.d(t,{A:()=>o});var n=r(51609);class s extends n.Component{constructor(e){super(e),this.state={hasError:!1,error:null}}static getDerivedStateFromError(e){return{hasError:!0,error:e}}componentDidCatch(e,t){console.error(e,t)}render(){return this.state.hasError&&this.state.error?this.props.fallback(this.state.error):this.props.children}}const o=s},59488(e,t,r){"use strict";r.d(t,{A:()=>l});var n=r(86087),s=r(39715),o=r(73685),i=r(37188),a=r(13022),c=r(10790);const l=({title:e,error:t=new Error(e),variant:r="normal",data:l,suggestion:u,vars:d={},children:p,actionButton:h})=>{const f=(0,s.g)(t).message;return(0,c.jsxs)("div",{className:(0,a.A)(i.A["error-notice"],{[i.A["variant-module"]]:"module"===r}),children:[(0,c.jsx)("div",{className:i.A["icon-wrapper"],children:(0,c.jsx)(o.A,{className:i.A.icon})}),(0,c.jsxs)("div",{className:i.A.offset,children:[(0,c.jsx)("div",{className:i.A.description,children:e}),(0,c.jsxs)("div",{className:i.A.message,children:[p||f,l&&(0,c.jsx)("pre",{className:i.A.data,children:l}),u&&(0,c.jsx)("p",{className:i.A.suggestion,children:(0,n.createInterpolateElement)(u,d)})]})]}),(0,c.jsx)("div",{className:i.A["main-action"],children:h})]})}},69870(e,t,r){"use strict";r.d(t,{A:()=>d});var n=r(56427),s=r(27723),o=r(93062),i=r(17155),a=r(10133),c=r(887),l=r(74592),u=r(10790);const __=s.__;function d({isPremium:e}){if(!e)return;const[t,r]=(0,l.C)(),s=__("Auto-resize enabled.","jetpack-boost"),d=__("Auto-resize disabled.","jetpack-boost"),p=t.data?.image_cdn_liar.active;return(0,c.X)("image-cdn-liar",r,{successMessage:p?s:d}),(0,u.jsxs)(i.A,{children:[(0,u.jsx)("div",{className:o.A.wrapper,children:(0,u.jsxs)("div",{className:o.A.title,children:[(0,u.jsx)("h4",{children:__("Auto-Resize Lazy Images","jetpack-boost")}),(0,u.jsx)(n.ToggleControl,{className:o.A["toggle-control"],checked:p,onChange:e=>{(e=>{r.mutate({...t.data,image_cdn_liar:{active:e,available:!0}})})(e),(0,a.n7)("image_cdn_liar_toggle",{enabled:Number(e)})},__nextHasNoMarginBottom:!0})]})}),(0,u.jsx)("div",{className:o.A.description,children:__("Automatically resize images that are lazily loaded to fit the exact dimensions they occupy on the page.","jetpack-boost")})]})}},18867(e,t,r){"use strict";r.d(t,{p:()=>n.A,z:()=>s.A});var n=r(51576),s=r(69870)},33333(e,t,r){"use strict";r.d(t,{DT:()=>a});var n=r(46913),s=r(83102);const o=s.Ik({lossless:s.zM(),quality:s.ai().int().min(20).max(100)}),i=s.Ik({jpg:o,png:o,webp:o});function a(){return(0,n.Bt)("jetpack_boost_ds","image_cdn_quality",i)}},90184(e,t,r){"use strict";r.d(t,{A:()=>l});var n=r(33151),s=r(13022),o=r(27723),i=r(62340),a=r(51609),c=r(10790);const __=o.__,l=({label:e,quality:t,lossless:r,setQuality:o,setLossless:l,maxValue:u,minLine truncated
__("JPEG Quality: %1$s, PNG Quality: %2$s, WEBP Quality: %3$s","jetpack-boost"),e.jpg.lossless?__("lossless","jetpack-boost"):e.jpg.quality.toString(),e.png.lossless?__("lossless","jetpack-boost"):e.png.quality.toString(),e.webp.lossless?__("lossless","jetpack-boost"):e.webp.quality.toString())}),h=()=>(0,d.jsxs)("div",{className:o.A["section-title"],children:[(0,d.jsx)("h4",{children:__("Image Quality","jetpack-boost")}),(0,d.jsx)(i.A,{offset:12,placement:"bottom",className:o.A["info-icon"],title:__("Image Quality","jetpack-boost"),iconSize:22,children:__("Select the quality for images served by the CDN. Choosing a lower quality will compress your images and load them faster. If you choose lossless, we will not compress your images.","jetpack-boost")})]}),f=({isPremium:e})=>{if(!e)return;const[t,r]=(0,c.DT)(),s=t?.data,i=r.mutate;(0,u.X)("image-cdn-quality",r);const f=(e,t)=>{i&&s&&i({...s,[e]:{...s[e],quality:t}})},m=(e,t)=>{i&&s&&i({...s,[e]:{...s[e],lossless:t}})};return s&&(0,d.jsx)(l.A,{children:(0,d.jsx)(n.A,{toggleText:__("Adjust Quality","jetpack-boost"),header:(0,d.jsx)(h,{}),summary:(0,d.jsx)(p,{imageCdnQuality:s}),tracksEvent:"image_cdn_panel_toggle",children:(0,d.jsxs)("div",{className:o.A.body,children:[(0,d.jsx)("h5",{children:"Adjust image quality per format"}),(0,d.jsxs)("div",{className:o.A["quality-controls"],children:[(0,d.jsx)(a.A,{label:__("JPEG","jetpack-boost"),maxValue:89,quality:s.jpg.quality,lossless:s.jpg.lossless,setQuality:e=>f("jpg",e),setLossless:e=>m("jpg",e)}),(0,d.jsx)(a.A,{label:__("PNG","jetpack-boost"),maxValue:80,quality:s.png.quality,lossless:s.png.lossless,setQuality:e=>f("png",e),setLossless:e=>m("png",e)}),(0,d.jsx)(a.A,{label:__("WEBP","jetpack-boost"),maxValue:80,quality:s.webp.quality,lossless:s.webp.lossless,setQuality:e=>f("webp",e),setLossless:e=>m("webp",e)})]})]})})})}},89140(e,t,r){"use strict";r.d(t,{A:()=>l});var n=r(26050),s=r(27723),o=r(88050),i=r(42472),a=r(61868),c=r(10790);const __=s.__,l=()=>{const{canResizeImages:e}=Jetpack_Boost;return(0,c.jsx)(n.A,{slug:"image_guide",title:__("Image Guide","jetpack-boost"),onDisable:()=>{localStorage.removeItem("jetpack-boost-guide")},description:(0,c.jsx)(c.Fragment,{children:(0,c.jsx)("p",{children:__("This feature helps you discover images that are too large. When you browse your site, the image guide will show you an overlay with information about each image's size.","jetpack-boost")})}),children:!1===e&&(0,c.jsxs)(o.b,{intent:"warning",children:[(0,c.jsx)(i.h,{children:__("Image resizing is unavailable","jetpack-boost")}),(0,c.jsxs)(a.V,{children:[(0,c.jsx)("p",{children:__("It looks like your server doesn't have Imagick or GD extensions installed.","jetpack-boost")}),(0,c.jsx)("p",{children:__("Jetpack Boost is able to work without these extensions, but it's likely that it's going to be difficult for you to optimize the images that the Image Guide will identify without one of these extensions.","jetpack-boost")}),(0,c.jsx)("p",{children:__("Please contact your hosting provider or system administrator and ask them to install or activate one of these extensions.","jetpack-boost")})]})]})})}},61216(e,t,r){"use strict";r.d(t,{A:()=>f});var n=r(26050),s=r(10133),o=r(3819),i=r(51112),a=r(46913),c=r(27723),l=r(11809),u=r(58181),d=r(81166),p=r(24262),h=r(10790);const __=c.__,f=()=>{const[e]=(0,l.eu)(),t=e?.data,r=(0,l.iE)();return(0,h.jsxs)(n.A,{slug:"lcp",title:__("Optimize LCP Images","jetpack-boost"),worksOffline:!1,description:(0,h.jsx)("p",{children:__("Improve the Largest Contentful Paint (LCP) of your Cornerstone Pages, optimizing their key image, so users can enjoy a smoother experience.","jetpack-boost")}),onEnable:()=>{e.refetch()},onBeforeToggle:e=>{e&&a.qQ.setQueryData(["lcp_state"],e=>({...e,status:"pending"}))},children:[(0,h.jsxs)("div",{className:p.A.status,children:[(0,h.jsx)("div",{className:p.A.summary,children:(0,h.jsx)(d.A,{})}),(0,h.jsx)(i.A,{className:p.A["optimize-button"],variant:"link",size:"small",weight:"regular",onClick:()=>{(0,s.n7)("lcp_optimize_clicked",{}),r.mutate()},icon:(0,h.jsx)(o.A,{}),disabled:"pending"===t?.status,children:__("Optimize","jetpack-boost")})]}),"analyzed"===t?.status&&(0,h.jsx)(u.v,{})]})}},67189(e,t,r){"use strict";r.d(t,{ax:()=>c});var n=r(83102);n.k5(["UrlError","HttpError","UnknownError","TimeoutError","OptimizationError"]);const s=n.k5(["unknown","element-not-unique","http-error","lcp-timeout","lcp-metric-timeout"]),o=n.Ik({code:n.ai().optional(),selector:n.Yj().optional()}),i=n.Ik({type:n.KC([s,n.Yj()]),meta:o.optional()}),a=n.Ik({key:n.au.string(),url:n.au.string(),status:n.k5(["success","pending","error"]).catch("pending"),errors:n.YO(i).optional()}),c=n.Ik({pages:n.YO(a),status:n.k5(["not_analyzed","pending","analyzed","error"]),created:n.au.number().optional(),updated:n.au.number().optional()}).catch({pages:[],status:"not_analyzed",created:0,updated:0})},11809(e,t,r){"use strict";r.d(t,{eu:()=>a,iE:()=>c});var n=r(74592),s=r(46913),o=r(83102),i=r(671Line truncated
__("Boost encountered an HTTP error <b>%d</b> when attempting to analyze this page. Please make sure it loads correctly in incognito mode, and try again.","jetpack-boost"),t?.code??"unknown"),{b:(0,f.jsx)("strong",{})}):"lcp-timeout"===e?__("The page took too long to load during analysis. Please make sure the page loads correctly in incognito mode, and try again.","jetpack-boost"):"lcp-metric-timeout"===e?__("Boost couldn't identify the main LCP element within the time limit. This may happen with slow-loading, or complex pages.","jetpack-boost"):"element-not-unique"===e?(0,a.sprintf)(/* translators: %s is the HTML selector */
__("Boost was unable to identify the main LCP element on the page, due to multiple similar large elements with the same selector (%s).","jetpack-boost"),t?.selector??"unknown"):"unknown"===e?__("Something went wrong while optimizing this page. Please try again later, or contact support if the issue persists.","jetpack-boost"):"element-not-stable"===e?__("The main LCP element didn't remain visible long enough to analyze. This can occur with slideshows or animated sections.","jetpack-boost"):(0,a.sprintf)(/* translators: %s is the error type */
__("An unknown error occurred: %s. Make sure you're using the latest version of Jetpack Boost. If you are, please try again later, or contact support if the issue persists.","jetpack-boost"),e))(t),"(",e,")"," ",(0,f.jsx)(c.N,{openInNewTab:!0,href:(0,o.A)("jetpack-boost-lcp-errors",{anchor:t?.type}),onClick:()=>{(0,s.n7)("lcp_learn_more",{error_type:t?.type})},children:__("Learn more","jetpack-boost")})]}),g=()=>{const[e]=(0,p.eu)(),t=e?.data;if("analyzed"!==t?.status)return null;const r=t?.pages;if(!r||0===r.length)return null;const o=r.filter(e=>(e?.errors?.length||0)>0);if(0===o.length)return null;const i=o.flatMap(e=>e.errors?.map(t=>({error:t,url:e.url}))||[]);return(0,f.jsxs)(l.b,{intent:"warning",children:[(0,f.jsx)(u.h,{children:__("LCP Optimization issues","jetpack-boost")}),(0,f.jsxs)(d.V,{children:[(0,f.jsx)("div",{className:h.A.summary,children:(0,a.sprintf)(
// translators: %d is a number of pages which failed to be optimized
_n("%d page could not be optimized.","%d pages could not be optimized.",i.length,"jetpack-boost"),i.length)}),(0,f.jsx)(n.A,{labelExpandedText:__("View details","jetpack-boost"),labelCollapsedText:__("Hide details","jetpack-boost"),onExpand:e=>{e&&(0,s.n7)("lcp_error_details_expanded",{})},children:(0,f.jsx)("ul",{className:h.A.summary__list,children:i.map(({error:e,url:t},r)=>(0,f.jsx)(m,{url:t,error:e},r))})})]})]})}},81166(e,t,r){"use strict";r.d(t,{A:()=>c});var n=r(25592),s=r(27723),o=r(11809),i=r(24262),a=r(10790);const __=s.__,c=()=>{const[e]=(0,o.eu)(),t=e?.data;return"error"===t?.status?(0,a.jsx)("div",{className:i.A?.failures,children:__("An error occurred while optimizing your Cornerstone Page's LCP. Please try again.","jetpack-boost")}):"not_analyzed"===t?.status?(0,a.jsx)("div",{children:__("Click the optimize button to start optimizing your Cornerstone Page's LCP.","jetpack-boost")}):"pending"===t?.status?(0,a.jsx)("div",{className:i.A?.generating,children:__("Jetpack Boost is optimizing your Cornerstone Page's LCP for you.","jetpack-boost")}):"analyzed"===t?.status&&t?.updated?(0,a.jsx)(a.Fragment,{children:(0,a.jsxs)("div",{className:i.A?.successes,children:[__("Last optimized","jetpack-boost")," ",(0,a.jsx)(n.A,{time:new Date(1e3*t.updated)}),"."]})}):null}},6854(e,t,r){"use strict";r.d(t,{A:()=>u});var n=r(51192),s=r(92272),o=r(74592),i=r(26050),a=r(87858),c=r(27723),l=r(10790);const __=c.__,u=()=>{const e=(0,a.Md)(),[t]=(0,o.p)("minify_js");return(0,l.jsxs)(i.A,{slug:"minify_css",title:__("Concatenate CSS","jetpack-boost"),description:(0,l.jsx)("p",{children:__("Styles are grouped by their original placement, concatenated and minified to reduce site loading time and reduce the number of requests.","jetpack-boost")}),onEnable:e.refetch,children:[(0,l.jsx)(s.A,{datasyncKey:"minify_css_excludes",buttonText:__("Exclude CSS handles","jetpack-boost"),placeholder:__("Comma-separated list of CSS handles to exclude","jetpack-boost")}),!t?.active&&e?.data&&(0,l.jsx)(n.A,{})]})}},17848(e,t,r){"use strict";r.d(t,{A:()=>l});var n=r(51192),s=r(92272),o=r(26050),i=r(87858),a=r(27723),c=r(10790);const __=a.__,l=()=>{const e=(0,i.Md)();return(0,c.jsxs)(o.A,{slug:"minify_js",title:__("Concatenate JS","jetpack-boost"),description:(0,c.jsx)("p",{children:__("Scripts are grouped by their original placement, concatenated and minified to reduce site loading time and reduce the number of requests.","jetpack-boost")}),onEnable:e.refetch,children:[(0,c.jsx)(s.A,{datasyncKey:"minify_js_excludes",buttonText:__("Exclude JS handles","jetpack-boost"),placeholder:__("Comma-separated list of JS handles to exclude","jetpack-boost")}),e?.data&&(0,c.jsx)(n.A,{})]})}},51192(e,t,r){"use strict";r.d(t,{A:()=>f});var n=r(78663),s=r(10133),o=r(3924),i=r(27723),a=r(88050),c=r(42472),l=r(61868),u=r(61475),d=r(38665),p=r(75372),h=r(10790);const __=i.__,f=()=>{const[e,t]=(0,n.bC)("legacy_minify_notice");return!e&&(0,h.jsxs)(a.b,{intent:"info",children:[(0,h.jsx)(c.h,{children:__("You are not taking full advantage of Concatenate JS or CSS","jetpack-boost")}),(0,h.jsx)(l.V,{children:(0,h.jsx)("p",{children:__("You can improve the speed of concatenated files, and reduce the load on WordPress.","jetpack-boost")})}),(0,h.jsx)(u.E,{children:(0,h.jsx)(d.t,{href:(0,o.A)("jetpack-boost-minify-delivery"),target:"_blank",rel:"noreferrer",onClick:()=>{(0,s.n7)("critical_css_retry",{error_type:"UnknownError"})},children:__("Learn more","jetpack-boost")})}),(0,h.jsx)(p.U,{onClick:t,label:__("Dismiss","jetpack-boost")})]})}},26812(e,t,r){"use strict";r.d(t,{y:()=>i});var n=r(83102),s=r(46913);const o=n.YO(n.Yj());function i(e){const[{data:t}]=(0,s.Bt)("jetpack_boost_ds",`${e}_default`,o);return t}},92272(e,t,r){"use strict";r.d(t,{A:()=>h});var n=r(51609),s=r(51112),o=r(27723),i=r(87858),a=r(10133),c=r(52860),l=r(25693),u=r(33957),d=r(26812),p=r(10790);const __=o.__,h=({buttonText:e,placeholder:t,datasyncKey:r})=>{const h=`minify-meta-${r}`,[f,m]=(0,i.$q)(r,e=>{b(e.join(", ")),y({id:h,type:"success",message:__("Changes saved","jetpack-boost")})}),[g,b]=(0,n.useState)(()=>f.join(", ")),{setNotice:y}=(0,u.h)(),v=(0,d.y)(r),w="minify_js_excludes"===r?"js":"css",x="concatenate_"+w+"_panel_toggle";let _="";function k(){(0,a.n7)("concatenate_"+w+"_exceptions_save_clicked",{}),y({id:h,type:"pending",message:__("Saving…","jetpack-boost")}),m(g)}void 0!==v&&(_=v.join(", "));const j=`jb-minify-meta-${r}`;let C;f.length>0&&(
/* Translators: %s refers to the list of excluded items. */
C=(0,o.sprintf)(__("Except: %s","jetpack-boost"),f.join(", "))),0===f.length&&(C=__("No exceptions.","jetpack-boost"));let A="";"minify_js_excludes"===r&&(A=__("Exclude JS handles:","jetpack-boost")),"minify_css_excludes"===r&&(A=__("Exclude CSS handles:","jetpack-boost"));const S=(0,p.jsx)("div",{className:c.A.body,children:(0,p.jsxs)("div",{className:c.A.section,children:[(0,p.jsx)("div",{className:c.A.title,children:__("Exceptions","jetpack-boost")}),(0,p.jsxs)("div",{className:c.A["manage-excludes"],children:[(0,p.jsx)("label",{className:c.A["sub-header"],htmlFor:j,children:A}),(0,p.jsx)("input",{type:"text",value:g,placeholder:t,id:j,onChange:e=>b(e.target.value),onKeyDown:e=>{"Enter"!==e.key&&"NumpadEnter"!==e.key||k()}}),(0,p.jsx)("div",{className:c.A.description,children:__("Use a comma (,) to separate the handles.","jetpack-boost")}),(0,p.jsx)(s.A,{disabled:f.join(", ")===g,className:c.A.button,onClick:k,children:__("Save","jetpack-boost")}),(0,p.jsx)(s.A,{disabled:g===_,onClick:function(){b(_),(0,a.n7)("minify_"+w+"_exceptions_load_default",{})},className:c.A.button,variant:"link",children:__("Load default handles","jetpack-boost")})]})]})});return(0,p.jsx)("div",{className:c.A.wrapper,"data-testid":`meta-${r}`,children:(0,p.jsx)(l.A,{headerText:C,toggleText:e,tracksEvent:x,onToggleHandler:e=>{e||b(f.join(", "))},children:S})})}},74592(e,t,r){"use strict";r.d(t,{C:()=>a,p:()=>c});var n=r(46913),s=r(51609),o=r(83102);const i=o.g1(o.Yj().min(1),o.Ik({active:o.zM(),available:o.zM()})),a=()=>(0,n.Bt)("jetpack_boost_ds","modules_state",i),c=(e,t)=>{const[{data:r},{mutate:n}]=a(),o=(0,s.useCallback)(s=>{if(r?.[e]?.active===s)return;const o={available:r?.[e]?.available??!1,active:s};n({...r,[e]:o},{onSuccess:r=>{t?.(r[e].active)}})},[r,e,n,t]);return[r?.[e],o]}},26050(e,t,r){"use strict";r.d(t,{A:()=>x});var n=r(3924),s=r(56427),o=r(13022),i=r(51609),a=r(74592),c=r(57526),l=r(70704),u=r(27723),d=r(91643),p=r(33957),h=r(86087),f=r(79654),m=r(88050),g=r(61868),b=r(42472),y=r(24811),v=r(10790);const __=u.__,w=({title:e,description:t,children:r,slug:n,toggle:l=!0,worksOffline:u=!0,onEnable:h,onBeforeToggle:f,onDisable:b,onMountEnable:w})=>{const{site:x}=Jetpack_Boost,{setNotice:_}=(0,p.h)(),[k,j]=(0,a.p)(n,e=>{const t=__("Module activated","jetpack-boost"),r=__("Module deactivated","jetpack-boost");_({id:"update-module-state",type:"success",message:e?t:r}),e?h?.():b?.()}),C=k?.active??!1,A=k?.available??!1,S=!A&&(0,d.e)()&&"page_cache"===n,E=!x.online&&!u,R=(0,v.jsx)(m.b,{intent:"warning",children:(0,v.jsx)(g.V,{children:(0,v.jsx)("div",{className:c.A.offlineMessage,children:__("This module will not work while your website is not publicly available.","jetpack-boost")})})});return(0,i.useEffect)(()=>{C&&w?.()},[]),A||"page_cache"===n?(0,v.jsxs)("div",{className:c.A.module,"data-testid":`module-${n}`,children:[(0,v.jsx)("div",{className:c.A.toggle,children:l&&(0,v.jsx)(s.ToggleControl,{className:(0,o.A)(`jb-feature-toggle-${n}`,c.A.small),checked:C||S,disabled:!A,onChange:()=>{const e=!C,t=__("Deactivating module","jetpack-boost"),r=__("Activating module","jetpack-boost");_({id:"update-module-state",type:"pending",message:e?r:t}),f&&f(e),j(e)},__nextHasNoMarginBottom:!0})}),(0,v.jsxs)("div",{className:c.A.content,children:[(0,v.jsxs)("h3",{children:[e,Jetpack_Boost.developmentFeatures.includes(n)&&(0,v.jsx)(y.A,{text:__("Under Development","jetpack-boost"),variant:"red"})]}),(0,v.jsx)("div",{className:c.A.description,children:t}),E?R:C&&r]})]}):null},x=e=>(0,v.jsx)(l.A,{fallback:t=>(0,v.jsx)("div",{children:(0,v.jsxs)("div",{children:[(0,v.jsx)("h3",{children:e.title}),(0,v.jsx)("div",{className:c.A["failed-module-notice"],children:(0,v.jsxs)(m.b,{intent:"error",children:[(0,v.jsx)(b.h,{children:__("Failed to load module","jetpack-boost")}),(0,v.jsxs)(g.V,{children:[(0,v.jsx)("p",{children:(0,h.createInterpolateElement)(__("We encountered an error while loading this module. Please refresh the page and try again. If the issue persists, <link>click here</link> to get help.","jetpack-boost"),{link:(0,v.jsx)(f.N,{openInNewTab:!0,href:(0,n.A)("jetpack-boost-help-module-load-failed")})})}),(0,v.jsx)("code",{children:`${t.constructor.name}: ${t.message}`})]})]})})]})}),children:(0,v.jsx)(w,{...e})});r.dn(x)},33957(e,t,r){"use strict";r.d(t,{h:()=>a,m:()=>i});var n=r(51609),s=r(10790);const o=(0,n.createContext)(void 0),i=({children:e})=>{const[t,r]=(0,n.useState)({}),i=(0,n.useCallback)(e=>{r(t=>({...t,[e.id]:e}))},[r]),a=(0,n.useCallback)(e=>{r(t=>{const r={...t};return delete r[e],r})},[r]);return(0,s.jsx)(o.Provider,{value:{notices:t,setNotice:i,removeNotice:a},children:e})},a=()=>{const e=(0,n.useContext)(o);if(!e)throw new Error("useNotices must be used within a NoticeProvider");return e}},6709(e,t,r){"use strict";r.d(t,{A:()=>u});var n=r(51609),s=r(56427),o=r(33957),i=r(6863),a=r(13022),c=r(10790);const l=({notice:e,onDismiss:t})=>((0,n.useEffect)(()=>{const r=setTimeout(()=>{"pending"!==e.type&&t()},2e3);retuLine truncated
// translators: %s refers to wp-content.
__("Your site's %s folder doesn't allow updates","jetpack-boost"),"wp-content")}),(0,h.jsx)(u.V,{children:(0,h.jsx)("p",{children:(0,s.createInterpolateElement)((0,i.sprintf)(
// translators: %s refers to wp-content.
__("This feature cannot be enabled because Jetpack Boost cannot create or modify files in <code>%s</code>. To learn more about this, please <link>click here.</link>","jetpack-boost"),"wp-content"),{code:(0,h.jsx)("code",{className:o.A.nowrap}),link:(0,h.jsx)(a.N,{openInNewTab:!0,href:f("wp-content-not-writable")})})})}),(0,h.jsx)(d.U,{onClick:e,label:m()})]}),y=({onClose:e})=>(0,h.jsxs)(c.b,{intent:"warning",children:[(0,h.jsx)(l.h,{children:__("Permalink settings must be updated","jetpack-boost")}),(0,h.jsx)(u.V,{children:(0,h.jsx)("p",{children:(0,s.createInterpolateElement)(__("To activate this feature, your site needs to use a different URL structure instead of the current Plain (default) permalinks. To learn more, please <link>click here.</link>","jetpack-boost"),{link:(0,h.jsx)(a.N,{openInNewTab:!0,href:f("not-using-permalinks")})})})}),(0,h.jsx)(d.U,{onClick:e,label:m()})]}),v=({onClose:e})=>(0,h.jsxs)(c.b,{intent:"warning",children:[(0,h.jsx)(l.h,{children:__("Existing Cache System Detected","jetpack-boost")}),(0,h.jsx)(u.V,{children:(0,h.jsx)("p",{children:(0,s.createInterpolateElement)(__("This feature cannot be enabled because your site is already using a caching system, installed by another plugin or your hosting provider. For a unified optimization experience with Jetpack Boost, please deactivate the current caching solution by disabling the plugin or contacting your hosting support for assistance. If you already did that, try enabling caching again. <link>Learn More.</link>","jetpack-boost"),{link:(0,h.jsx)(a.N,{openInNewTab:!0,href:f("advanced-cache-incompatible")})})})}),(0,h.jsx)(d.U,{onClick:e,label:m()})]}),w=({actions:e,onClose:t})=>(0,h.jsxs)(c.b,{intent:"warning",children:[(0,h.jsx)(l.h,{children:__("Existing Cache System Detected","jetpack-boost")}),(0,h.jsx)(u.V,{children:(0,h.jsx)("p",{children:(0,s.createInterpolateElement)(__("This feature can't be activated because a caching system is already in place with WP Super Cache. <link>Learn more</link>","jetpack-boost"),{code:(0,h.jsx)("code",{className:o.A.nowrap}),link:(0,h.jsx)(a.N,{openInNewTab:!0,href:f("advanced-cache-for-super-cache")})})})}),e&&e.length>0&&(0,h.jsx)(p.E,{children:e}),(0,h.jsx)(d.U,{onClick:t,label:m()})]}),x=({onClose:e})=>(0,h.jsxs)(c.b,{intent:"warning",children:[(0,h.jsx)(l.h,{children:__("File Update Needed for Activation","jetpack-boost")}),(0,h.jsx)(u.V,{children:(0,h.jsx)("p",{children:(0,s.createInterpolateElement)(__("Jetpack Boost cannot activate this feature because it does not have permission to update a necessary file on your site. To learn more, please <link>click here.</link>","jetpack-boost"),{link:(0,h.jsx)(a.N,{openInNewTab:!0,href:f("unable-to-write-to-advanced-cache")})})})}),(0,h.jsx)(d.U,{onClick:e,label:m()})]}),_=({onClose:e})=>(0,h.jsxs)(c.b,{intent:"warning",children:[(0,h.jsx)(l.h,{children:__("The WordPress cache constant must be updated","jetpack-boost")}),(0,h.jsx)(u.V,{children:(0,h.jsx)("p",{children:(0,s.createInterpolateElement)((0,i.sprintf)(
// translators: %1$s refers to the cache constant (WP_CACHE). %2$s refers to what it isn't set to (true).
__("Jetpack Boost needs a specific setting to be activated for caching to work properly. Currently, the setting named <code>%1$s</code> is not correctly configured on your site. It should be set to <code>%2$s</code> to enable caching. <link>Click here for easy instructions on how to fix this.</link>","jetpack-boost"),"WP_CACHE","true"),{code:(0,h.jsx)("code",{className:o.A.nowrap}),link:(0,h.jsx)(a.N,{openInNewTab:!0,href:f("wp-cache-defined-not-true")})})})}),(0,h.jsx)(d.U,{onClick:e,label:m()})]}),k=({onClose:e})=>(0,h.jsxs)(c.b,{intent:"warning",children:[(0,h.jsx)(l.h,{children:__("Cannot create files in cache directory","jetpack-boost")}),(0,h.jsx)(u.V,{children:(0,h.jsx)("p",{children:(0,s.createInterpolateElement)((0,i.sprintf)(
// translators: %s refers to the cache directory.
__("Jetpack Boost can't enable caching because it doesn't have permission to write to the cache directory at <code>%s</code>. To fix this, the directory needs to be made writable. This change is necessary for caching to work and speed up your site.","jetpack-boost"),"wp-content/boost-cache"),{code:(0,h.jsx)("code",{className:o.A.nowrap})})})}),(0,h.jsx)(d.U,{onClick:e,label:m()})]}),j=({onClose:e})=>(0,h.jsxs)(c.b,{intent:"warning",children:[(0,h.jsx)(l.h,{children:__("The configuration file cannot be updated","jetpack-boost")}),(0,h.jsx)(u.V,{children:(0,h.jsx)("p",{children:(0,s.createInterpolateElement)((0,i.sprintf)(
// translators: %s refers to wp-config.php.
__("The configuration file, <code>%s</code>, is not writable. This file must be writable to activate caching. For instructions on how to make this change, <link>please click here.</link>","jetpack-boost"),"wp-config.php"),{code:(0,h.jsx)("code",{className:o.A.nowrap}),link:(0,h.jsx)(a.N,{openInNewTab:!0,href:f("wp-config-not-writable")})})})}),(0,h.jsx)(d.U,{onClick:e,label:m()})]}),C=({error:e,onClose:t})=>{let r=__("Unknown error","jetpack-boost");return e.code&&e.code!==e.message&&(r+=` (${e.code})`),(0,h.jsxs)(c.b,{intent:"error",children:[(0,h.jsx)(l.h,{children:r}),(0,h.jsx)(u.V,{children:e.message}),(0,h.jsx)(d.U,{onClick:t,label:m()})]})}},31055(e,t,r){"use strict";r.d(t,{A:()=>l});var n=r(51609),s=r(74592),o=r(97087),i=r(11729),a=r(91643),c=r(10790);const l=({cacheSetup:e,error:t,setError:r})=>{const[,l]=(0,s.p)("page_cache",t=>{t&&e.mutate()}),[u,d]=(0,n.useState)(!1);if((0,n.useEffect)(()=>{e?.isError&&t&&!t.dismissed&&d(!0)},[e?.isError,t,d]),(0,n.useEffect)(()=>{u&&(l(!1),d(!1))},[u,d,l]),(0,a.e)())return null;if(!t||t.dismissed)return null;const p=()=>{r({...t,dismissed:!0})},h="string"==typeof t?t:t.code,f={"failed-settings-write":(0,c.jsx)(o.E5,{onClose:p}),"wp-content-not-writable":(0,c.jsx)(o.eA,{onClose:p}),"not-using-permalinks":(0,c.jsx)(o.ER,{onClose:p}),"advanced-cache-incompatible":(0,c.jsx)(o.Wn,{onClose:p}),"advanced-cache-for-super-cache":(0,c.jsx)(o.JQ,{actions:[(0,c.jsx)(i.A,{onSwitch:()=>l(!0)},"switch-to-boost")],onClose:p}),"unable-to-write-to-advanced-cache":(0,c.jsx)(o.Pp,{onClose:p}),"wp-cache-defined-not-true":(0,c.jsx)(o.OZ,{onClose:p}),"page-cache-root-dir-not-writable":(0,c.jsx)(o._k,{onClose:p}),"wp-config-not-writable":(0,c.jsx)(o.jz,{onClose:p})};return h in f?f[h]:(0,c.jsx)(o.cH,{error:t,onClose:p})}},28776(e,t,r){"use strict";r.d(t,{R:()=>i,Z:()=>a});var n=r(46913),s=r(51609),o=r(83102);function i(){return(0,n.Bt)("jetpack_boost_ds","cache_debug_log",o.Yj(),{query:{refetchInterval:1e4}})}function a(e){const[{data:t,refetch:r}]=(0,n.Bt)("jetpack_boost_ds","cache_engine_loading",o.zM()),[i,a]=(0,s.useState)(!1);return(0,s.useEffect)(()=>{(async()=>{a(!1),e&&(await r(),a(!1===t))})()},[e,t,r]),i}},6189(e,t,r){"use strict";r.d(t,{A:()=>E});var n=r(3924),s=r(40597),o=r(51112),i=r(86087),a=r(27723),c=r(79654),l=r(88050),u=r(42472),d=r(61868),p=r(75372),h=r(66280),f=r(80067),m=r(51609),g=r(50004),b=r(13022),y=r(36710),v=r(46913),w=r(70704),x=r(59488),_=r(10133),k=r(25693),j=r(10790);const __=a.__,_n=a._n,C=()=>{const e=(0,g.f2)(),[t,r]=(0,v.fL)(e,"logging"),[n,s]=(0,v.fL)(e,"bypass_patterns"),[i,l]=(0,g.iD)(),u=n?.length||0,d=__("Logging enabled.","jetpack-boost"),p=__("Logging disabled.","jetpack-boost");(0,y.Xe)("update-bypass-patterns",s),(0,y.Xe)("update-logging",r,{successMessage:t?d:p}),(0,y.Xe)("clear-page-cache",l,{savingMessage:__("Clearing cache…","jetpack-boost"),errorMessage:__("Unable to clear cache.","jetpack-boost"),successMessage:i||__("Cache cleared.","jetpack-boost")});const m=(0,j.jsx)(o.A,{variant:"link",size:"small",weight:"regular",iconSize:16,icon:(0,j.jsx)(h.A,{}),onClick:()=>{(0,_.n7)("page_cache_clear_clicked",{}),l.mutate()},disabled:l.isPending,children:__("Clear Cache","jetpack-boost")}),b=(0,j.jsxs)("div",{className:f.A.body,children:[(0,j.jsx)(A,{patterns:n.join("\n"),setPatterns:e=>{const t=e.split("\n").map(e=>e.trim());(0,_.n7)("page_cache_bypass_patterns",{total:t.length}),s.mutate(t)},showErrorNotice:s.isError}),(0,j.jsxs)("div",{className:f.A.section,children:[(0,j.jsx)("div",{className:f.A.title,children:__("Logging","jetpack-boost")}),(0,j.jsxs)("label",{htmlFor:"cache-logging",className:f.A["logging-toggle"],children:[(0,j.jsx)("input",{type:"checkbox",id:"cache-logging",checked:t,onChange:e=>{(0,_.n7)("page_cache_toggle_logging",{}),r.mutate(e.target.checked)}})," ",__("Activate logging to track all your cache events.","jetpack-boost")]}),t&&(0,j.jsx)(c.N,{href:"#/cache-debug-log",onClick:()=>{(0,_.n7)("page_cache_see_logs_clicked",{}),window.scrollTo(0,0)},children:__("See Logs","jetpack-boost")}),(0,j.jsx)("div",{className:f.A.clearfix})]})]});return e&&(0,j.jsx)("div",{className:f.A.wrapper,"data-testid":"page-cache-meta",children:(0,j.jsx)(k.A,{headerText:(()=>{if(l.isPending)return __("Clearing cache…","jetpack-boost");if(0===u&&!t)return __("No exceptions.","jetpack-boost")+" "+__("No logging.","jetpack-boost");let e;return t&&(e=__("Logging activated.","jetpack-boost")),t||(e=__("No logging.","jetpack-boost")),(u>0?(0,a.sprintf)(/* translators: %d is the number of cache bypass patterns. */
_n("%d exception.","%d exceptions.",u,"jetpack-boost"),u):__("No exceptions.","jetpack-boost"))+" "+e})(),extraButtons:m,toggleText:__("Show Options","jetpack-boost"),tracksEvent:"page_cache_exceptions_panel_toggle",children:b})})},A=({patterns:e,setPatterns:t,showErrorNotice:r=!1})=>{const[s,a]=(0,m.useState)(e),[h,g]=(0,m.useState)(r),[y,v]=(0,m.useState)(!1),w=(0,n.A)("jetpack-boost-cache-how-to-exclude"),x=e=>{const t=e.split("\n").map(e=>e.trim()).filter(e=>""!==e.trim());try{t.forEach(e=>new RegExp(e))}catch{return!1}return!0};return(0,m.useEffect)(()=>{a(e)},[e]),(0,m.useEffect)(()=>{g(r)},[r]),(0,j.jsxs)("div",{className:(0,b.A)(f.A.section,{[f.A["has-error"]]:y}),children:[(0,j.jsx)("div",{className:f.A.title,children:__("Exceptions","jetpack-boost")}),(0,j.jsx)("label",{htmlFor:"jb-cache-exceptions",children:__("URLs of pages and posts that will never be cached:","jetpack-boost")}),(0,j.jsx)("textarea",{value:s,rows:3,onChange:e=>{return t=e.target.value,a(t),void v(!x(t));var t},id:"jb-cache-exceptions"}),(0,j.jsx)("p",{className:(0,b.A)(f.A.description,f.A["error-message"]),children:__("Error: Invalid format","jetpack-boost")}),(0,j.jsxs)("div",{className:f.A.description,children:[__("Use (.*) to address multiple URLs under a given path. Be sure each URL path is in its own line.","jetpack-boost"),(0,j.jsx)("br",{}),(0,i.createInterpolateElement)(__("<help>See an example</help> or <link>learn more</link>.","jetpack-boost"),{help:(0,j.jsx)(S,{}),link:(0,j.jsx)(c.N,{openInNewTab:!0,href:w})})]}),h&&(0,j.jsxs)(l.b,{intent:"error",children:[(0,j.jsx)(u.h,{children:__("Error: Unable to save changes.","jetpack-boost")}),(0,j.jsx)(d.V,{children:__("An error occurred while saving changes. Please, try again.","jetpack-boost")}),(0,j.jsx)(p.U,{onClick:()=>g(!1),label:__("Dismiss","jetpack-boost")})]}),(0,j.jsx)(o.A,{disabled:e===s||y,onClick:function(){(0,_.n7)("page_cache_exceptions_save_clicked",{}),t(s)},className:f.A.button,children:__("Save","jetpack-boost")})]})},S=({children:e})=>{const[t,r]=(0,m.useState)(!1);return(0,j.jsxs)("div",{className:f.A["example-wrapper"],children:[(0,j.jsx)("a",{href:"#",className:f.A["example-button"],onClick:e=>{(0,_.n7)("page_cache_see_example_clicked",{}),e.preventDefault(),r(!t)},children:e}),(0,j.jsx)("div",{className:f.A["tooltip-wrapper"],children:(0,j.jsxs)(s.A,{placement:"bottom-start",popoverAnchorStyle:"wrapper",forceShow:t,offset:-10,className:f.A.tooltip,children:[(0,j.jsx)("strong",{children:__("Example:","jetpack-boost")}),(0,j.jsx)("br",{}),"checkout",(0,j.jsx)("br",{}),"gallery/.*",(0,j.jsx)("br",{}),"specific-page"]})})]})},E=()=>(0,j.jsx)(w.A,{fallback:e=>(0,j.jsx)(x.A,{title:__("Error","jetpack-boost"),error:new Error(__("Unable to load Cache settings.","jetpack-boost"))}),children:(0,j.jsx)(C,{})});r.dn(E)},37414(e,t,r){"use strict";r.d(t,{A:()=>x});var n=r(26050),s=r(6189),o=r(31055),i=r(51609),a=r(36710),c=r(28776),l=r(50004),u=r(27723),d=r(88050),p=r(42472),h=r(61868),f=r(75372),m=r(74592),g=r(91082),b=r(91643),y=r(34008),v=r(10790);const __=u.__,w=({title:e,children:t})=>{const[r,n]=(0,i.useState)(!1);return r?null:(0,v.jsx)("div",{className:g.A.notice,children:(0,v.jsxs)(d.b,{intent:"info",children:[(0,v.jsx)(p.h,{children:e}),(0,v.jsx)(h.V,{children:t}),(0,v.jsx)(f.U,{onClick:()=>n(!0),label:__("Dismiss","jetpack-boost")})]})})},x=()=>{const[e]=(0,m.p)("page_cache"),[t,r]=(0,l.G6)(),[u,f]=(0,l.j0)(),[g,x]=(0,i.useState)(!1),[_,k]=(0,i.useState)(!1),j=(0,c.Z)(t.isSuccess&&!!e?.active),C=!e?.available&&((0,b.e)()||(0,b.M)()||(0,y.L)()),[A]=(0,a.Xe)("page-cache-setup",{...t,isSuccess:_&&t.isSuccess,isPending:_&&(g||t.isPending),isIdle:_&&t.isIdle},{savingMessage:__("Setting up cache…","jetpack-boost"),errorMessage:__("An error occurred while setting up cache.","jetpack-boost"),successMessage:__("Cache setup complete.","jetpack-boost")});return(0,i.useEffect)(()=>{t.isPending&&x(!1)},[t.isPending]),(0,v.jsxs)(n.A,{slug:"page_cache",title:__("Cache Site Pages","jetpack-boost"),onBeforeToggle:e=>{x(e),!1===e&&(A(),t.reset()),u.data&&!0!==u.data.dismissed&&f.mutate({...u.data,dismissed:!0})},onMountEnable:()=>{t.mutate()},onEnable:()=>{k(!0),t.mutate()},description:(0,v.jsxs)(v.Fragment,{children:[(0,v.jsx)("p",{children:__("Store and serve preloaded content to reduce load times and enhance your site performance and user experience.","jetpack-boost")}),C&&((0,b.e)()?(0,v.jsxs)(d.b,{intent:"success",children:[(0,v.jsx)(p.h,{children:__("Page Cache is running","jetpack-boost")}),(0,v.jsx)(h.V,{children:(0,v.jsx)("p",{children:__("Your website already has a page cache running on it powered by WordPress.com.","jetpack-boost")})})]}):(0,v.jsxs)(d.b,{intent:"info",children:[(0,v.jsx)(p.h,{children:__("Page Cache is unavailable","jetpack-boost")}),(0,v.jsx)(h.V,{children:(0,v.jsx)("p",{children:__("Your hosting provider already provides page caching.","jetpack-boost")})})]})),(0,v.jsx)(o.A,{error:u.data,setError:f.mutate,cacheSetup:t})]}),children:[j&&(0Line truncated
/* Translators: %s refers to the list of excluded items. */
x=(0,a.sprintf)(__("Except: %s","jetpack-boost"),t.join(", "))),0===t.length&&(x=__("No exceptions.","jetpack-boost"));const _=(0,h.jsxs)("div",{className:u.A.section,children:[(0,h.jsx)("div",{className:u.A.title,children:__("Exceptions","jetpack-boost")}),(0,h.jsxs)("div",{className:u.A["manage-excludes"],children:[(0,h.jsx)("label",{className:u.A["sub-header"],htmlFor:w,children:__("Exclude URL patterns:","jetpack-boost")}),(0,h.jsx)("input",{type:"text",value:m,placeholder:__("Comma-separated list of URL patterns to exclude, e.g.: checkout, gallery/(.*)","jetpack-boost"),id:w,onChange:e=>g(e.target.value),onKeyDown:e=>{"Enter"!==e.key&&"NumpadEnter"!==e.key||v()}}),(0,h.jsxs)("div",{className:u.A.description,children:[__("JavaScript will not be deferred on pages matching these URL patterns. Use a comma (,) to separate the patterns. Use (.*) to address multiple URLs under a given path.","jetpack-boost"),(0,h.jsx)("br",{}),(0,i.createInterpolateElement)(__('To keep a single script in place on every page instead, add the <code>data-jetpack-boost="ignore"</code> attribute to its script tag.',"jetpack-boost"),{code:(0,h.jsx)("code",{})})]}),(0,h.jsx)(s.A,{disabled:y===m,className:u.A.button,onClick:v,children:__("Save","jetpack-boost")})]})]});return(0,h.jsx)("div",{className:u.A.wrapper,"data-testid":`meta-${f}`,children:(0,h.jsx)(d.A,{headerText:x,toggleText:__("Exclude URL patterns","jetpack-boost"),tracksEvent:"defer_js_excludes_panel_toggle",onToggleHandler:e=>{e||g(y)},children:_})})}},4093(e,t,r){"use strict";r.d(t,{A:()=>a});var n=r(40597),s=r(27723),o=r(95861),i=r(10790);const __=s.__,a=()=>(0,i.jsxs)(n.A,{title:"",placement:"bottom",className:o.A.tooltip,iconSize:22,wide:!0,children:[(0,i.jsx)("p",{children:__("Your Overall Score is a summary of your first Cornerstone Page across both mobile and desktop devices. It gives a general idea of your site's overall performance.","jetpack-boost")}),(0,i.jsx)("table",{className:o.A.table,children:(0,i.jsxs)("tbody",{children:[(0,i.jsxs)("tr",{children:[(0,i.jsx)("th",{children:"A"}),(0,i.jsx)("td",{children:"90+"})]}),(0,i.jsxs)("tr",{children:[(0,i.jsx)("th",{children:"B"}),(0,i.jsx)("td",{children:"75 - 90"})]}),(0,i.jsxs)("tr",{children:[(0,i.jsx)("th",{children:"C"}),(0,i.jsx)("td",{children:"50 - 75"})]})]})}),(0,i.jsx)("table",{className:o.A.table,children:(0,i.jsxs)("tbody",{children:[(0,i.jsxs)("tr",{children:[(0,i.jsx)("th",{children:"D"}),(0,i.jsx)("td",{children:"35 - 50"})]}),(0,i.jsxs)("tr",{children:[(0,i.jsx)("th",{children:"E"}),(0,i.jsx)("td",{children:"25 - 35"})]}),(0,i.jsxs)("tr",{children:[(0,i.jsx)("th",{children:"F"}),(0,i.jsx)("td",{children:"0 - 25"})]})]})})]})},21348(e,t,r){"use strict";r.d(t,{m:()=>d,y:()=>u});var n=r(58454),s=r(10133),o=r(91726),i=r(51609),a=r(79859),c=r(39715),l=r(27723);const __=l.__,u=e=>{const[t,r]=(0,i.useReducer)((e,t)=>({...e,...t}),{status:"loading",error:void 0,scores:{current:{mobile:0,desktop:0},noBoost:null,isStale:!1}});return[t,(0,i.useCallback)(async(t=!1)=>{try{r({status:"loading"});const s=await(0,n.sE)(t,wpApiSettings.root,e,wpApiSettings.nonce);r({scores:s,status:"loaded"})}catch(e){const t=(0,c.g)(e,__("Error requesting speed scores","jetpack-boost"));(0,s.n7)("speed_score_request_error",{error_message:(0,o.w)(t.message)}),r({status:"error",error:t})}},[e])]},d=({moduleStates:e,pendingStates:t},r)=>{const n=JSON.stringify([e,Object.entries(t).map(([e,t])=>({key:e,timestamp:t.timestamp}))]),s=(0,i.useRef)(n),o=(0,a.YQ)((e,t)=>{s.current===e||t||(s.current=e,r())},2e3);(0,i.useEffect)(()=>{const e=Object.values(t).some(e=>e.isPending);o(n,e)},[n,o,t])}},29289(e,t,r){"use strict";r.d(t,{A:()=>g});var n=r(6245),s=r(63267),o=r(45977),i=r(27723),a=r(51609),c=r(3924),l=r(51112),u=r(78663),d=r(10133),p=r(10790);const __=i.__,h={id:"score_increase",title:__("Your site got faster","jetpack-boost"),body:(0,p.jsx)("p",{children:__("That's great! If you’re happy, why not rate Boost?","jetpack-boost")}),cta:__("Rate the Plugin","jetpack-boost"),ctaLink:(0,c.A)("boost-rate-plugin")},f={id:"score_decrease",title:__("Speed score has fallen","jetpack-boost"),body:(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)("p",{children:__("Most of the time Jetpack Boost will increase your site speed, but there may be cases where your score does not increase.","jetpack-boost")}),(0,p.jsx)("p",{children:__("Try refreshing your score, and if it doesn’t help, check our guide on improving your site speed score:","jetpack-boost")})]}),cta:__("Read the guide","jetpack-boost"),ctaLink:(0,c.A)("boost-improve-site-speed-score")},m=({message:e,onClose:t,onDismiss:r,isVisible:i})=>{const a=(0,n.zh)({from:{right:"-100%"},to:{right:i?"0%":"-100%"}});return(0,p.jsx)("div",{id:"parent",className:o.A.wrapper,children:(0,p.jsxs)(n.CS.div,{className:o.A.card,style:{...a},children:[(0,p.jsx)(s.A,{onClick:t}),(0,p.jsx)("h3",{className:o.A.headline,children:e.title}),(0,p.jsx)(p.Fragment,{children:e.body}),(0,p.jsx)(l.A,{variant:"primary",hrefLine truncated
// translators: %s is a letter grade, e.g. "A" or "B"
let z=(0,i.sprintf)(__("Overall Score: %s","jetpack-boost"),R);return"loading"===v?z=__("Loading…","jetpack-boost"):"error"===v&&(z=__("Whoops, something went wrong","jetpack-boost")),(0,C.jsxs)(C.Fragment,{children:[(0,C.jsxs)("div",{className:"jb-container",children:[(0,C.jsx)("div",{id:"jp-admin-notices",className:"jetpack-boost-jitm-card"}),(0,C.jsxs)("div",{"data-testid":"speed-scores",className:(0,d.A)(f.A["speed-scores"],{loading:"loading"===v}),children:[t.online?(0,C.jsxs)("div",{className:f.A.top,"data-testid":"speed-scores-top",children:[(0,C.jsx)("h2",{children:z}),"loaded"===v&&(0,C.jsx)(a.A,{}),(0,C.jsx)(s.A,{variant:"link",size:"small",weight:"regular",className:f.A["action-button"],onClick:()=>{(0,_.n7)("speed_score_refresh_clicked",{}),E(!0)},disabled:"loading"===v,icon:(0,C.jsx)(c.A,{}),children:__("Refresh","jetpack-boost")})]}):(0,C.jsxs)("div",{className:f.A.offline,"data-testid":"speed-scores-offline",children:[(0,C.jsx)("h2",{children:__("Website is not publicly available","jetpack-boost")}),(0,C.jsx)("p",{children:__("Performance score and some other Boost features cannot work because the Boost Cloud cannot reach your website. To fix this, you need to make your website publicly available.","jetpack-boost")})]}),"error"===v&&(0,C.jsx)(u.A,{title:__("Failed to load Speed Scores","jetpack-boost"),error:A,suggestion:__("<action>Try again</action>","jetpack-boost"),vars:{action:(0,C.jsx)(s.A,{size:"small",variant:"link",onClick:()=>E(!0)})}}),(0,C.jsx)(o.A,{prevScore:S.noBoost?.mobile,score:S.current.mobile,active:t.online,isLoading:"loading"===v,showPrevScores:M,scoreBarType:"mobile",noBoostScoreTooltip:__("Your mobile score without Boost","jetpack-boost")}),(0,C.jsx)(o.A,{prevScore:S.noBoost?.desktop,score:S.current.desktop,active:t.online,isLoading:"loading"===v,showPrevScores:M,scoreBarType:"desktop",noBoostScoreTooltip:__("Your desktop score without Boost","jetpack-boost")})]}),t.online&&(0,C.jsx)(l.A,{})]}),(0,C.jsx)(w.A,{scoreChange:I})]})},S=()=>(0,C.jsx)(v.A,{fallback:e=>(0,C.jsx)("div",{className:"jb-container",children:(0,C.jsx)("p",{children:__("Failed to load Speed Score.","jetpack-boost")})}),children:(0,C.jsx)(A,{})});r.dn(S)},66903(e,t,r){"use strict";r.d(t,{A:()=>u});var n=r(27723),s=r(10579),o=r(86212),i=r(10133),a=r(51112),c=r(71481),l=r(10790);const __=n.__,u=({route:e="/"})=>{const t=(0,o.Zp)();return(0,l.jsxs)(a.A,{variant:"link",className:c.A["back-button"],onClick:()=>{(0,i.n7)("back_button_clicked",{current_page:window.location.href.replace(window.location.origin,""),destination:e}),t(e)},children:[(0,l.jsx)(s.A,{}),__("Go back","jetpack-boost")]})}},63267(e,t,r){"use strict";r.d(t,{A:()=>i});var n=r(27723),s=r(63305),o=r(10790);const __=n.__,i=({onClick:e})=>(0,o.jsx)("a",{href:"#",onClick:t=>{t.preventDefault(),e()},className:s.A.close,children:(0,o.jsx)("span",{className:"screen-reader-text",children:__("Dismiss","jetpack-boost")})})},25693(e,t,r){"use strict";r.d(t,{A:()=>u});var n=r(41563),s=r(51112),o=r(51609),i=r(15714),a=r(92909),c=r(10133),l=r(10790);const u=({children:e,header:t=null,summary:r=null,toggleText:u="",tracksEvent:d="",extraButtons:p=null,headerText:h="",onToggleHandler:f=()=>{}})=>{const[m,g]=(0,o.useState)(!1),b=(0,l.jsxs)("div",{className:n.A.header,children:[t||(0,l.jsx)("div",{className:n.A.summary,children:h}),(0,l.jsxs)("div",{className:n.A.actions,children:[p&&p," ",(0,l.jsx)(s.A,{variant:"link",size:"small",weight:"regular",icon:m?(0,l.jsx)(a.A,{}):(0,l.jsx)(i.A,{}),className:n.A["edit-button"],onClick:()=>{const e=!m;g(e),f?.(e),""!==d&&(0,c.n7)(d,{status:e?"open":"close"})},children:u})]})]});return(0,l.jsxs)("div",{className:n.A["collapsible-meta"],children:[b,m?e:r&&(0,l.jsx)("div",{className:n.A.summary,children:r})]})}},36710(e,t,r){"use strict";r.d(t,{Jn:()=>s.A,Xe:()=>o.A,oq:()=>n.A});var n=r(66903),s=r(63267),o=(r(67903),r(887))},17155(e,t,r){"use strict";r.d(t,{A:()=>o});var n=r(32157),s=r(10790);const o=({children:e})=>(0,s.jsx)("div",{className:n.A.wrapper,children:e})},887(e,t,r){"use strict";r.d(t,{A:()=>a,X:()=>i});var n=r(51609),s=r(27723),o=r(33957);const __=s.__,i=(e,t=null,r={})=>{const{setNotice:s,removeNotice:i}=(0,o.h)(),a={savingMessage:__("Saving…","jetpack-boost"),errorMessage:__("An error occurred while saving changes. Please, try again.","jetpack-boost"),successMessage:__("Changes saved.","jetpack-boost")},{savingMessage:c,errorMessage:l,successMessage:u}={...a,...r},{isSuccess:d,isError:p,isPending:h,isIdle:f,reset:m}=(0,n.useMemo)(()=>({isSuccess:!1,isError:!1,isPending:!1,isIdle:!1,reset:()=>{},...t}),[t]);return(0,n.useEffect)(()=>{h?s({id:e,type:"pending",message:c}):d?s({id:e,type:"success",message:u}):p&&s({id:e,type:"error",message:l})},[e,s,i,c,l,u,d,p,h,f,m]),[()=>i(e)]},a=i},24811(e,t,r){"use strict";r.d(t,{A:()=>i});var n=r(13022),s=r(1697),o=r(10790);const i=({text:e,variant:t="default"})=>(0,o.jsx)("span",{className:(0,n.A)(s.A.pill,{[s.A[`pill-${t}`]]:t}),children:e})},43707(e,t,r){"use Line truncated
__("Upgrade now only %s per month","jetpack-boost"),h)})]}),(0,l.jsx)("div",{className:a.A.icon,children:(0,l.jsx)(o.A,{})})]})}},66503(e,t,r){"use strict";r.d(t,{A:()=>l});var n=r(42947),s=r(56427),o=r(27723),i=r(91643),a=r(72027),c=r(10790);const __=o.__,l=({children:e,showActivateLicense:t=!0,breadcrumbs:r})=>{const o=(0,a.W)(),l=o&&o.length>0,u=!t||(0,i.e)()||l?void 0:(0,c.jsx)(s.Button,{size:"compact",variant:"secondary",href:"admin.php?page=my-jetpack#/add-license",children:__("Use license key","jetpack-boost")});return(0,c.jsx)(n.A,{title:r?void 0:"Boost",subTitle:__("Optimize your site performance and loading speed.","jetpack-boost"),breadcrumbs:r,actions:u,showBackground:!1,children:e})}},92707(e,t,r){"use strict";r.d(t,{A:()=>l});var n=r(66503),s=r(66903),o=r(62658),i=r(13022),a=r(9035),c=r(10790);const l=({children:e,showActivateLicense:t=!0,showBackButton:r=!0,footerNote:l,sidebarItem:u})=>(0,c.jsx)(n.A,{showActivateLicense:t,children:(0,c.jsx)("div",{id:"jb-dashboard",className:"jb-dashboard",children:(0,c.jsx)("div",{className:a.A.body,children:(0,c.jsxs)("div",{className:"jb-container jb-container--fixed mt-2",children:[r&&(0,c.jsx)(s.A,{}),(0,c.jsxs)("div",{className:a.A.card,children:[(0,c.jsxs)("div",{className:a.A.content,children:[(0,c.jsx)(o.A,{}),e]}),(0,c.jsx)("div",{className:(0,i.A)(a.A.cta,"px-2 my-4"),children:u})]}),l&&(0,c.jsx)("footer",{className:a.A["footer-note"],children:l})]})})})})},40203(e,t,r){"use strict";r.d(t,{A:()=>f});var n=r(68612),s=r(66503),o=r(19999),i=r(15993),a=r(13022),c=r(19187),l=r(72027),u=r(54084),d=r(6709),p=r(33957),h=r(10790);const f=({children:e})=>{const t=(0,l.W)(),r=t&&t.includes("support");return(0,h.jsx)(p.m,{children:(0,h.jsx)(u.Ay,{children:(0,h.jsx)(s.A,{children:(0,h.jsxs)("div",{id:"jb-dashboard",className:"jb-dashboard jb-dashboard--main",children:[(0,h.jsx)("div",{className:"jb-section jb-section--alt jb-section--scores",children:(0,h.jsx)(n.A,{})}),e&&(0,h.jsx)("div",{className:(0,a.A)("jb-section jb-section--main",c.A.section),children:e}),(0,h.jsx)(i.A,{}),r&&(0,h.jsx)(o.A,{}),(0,h.jsx)(d.A,{})]})})})})}},19999(e,t,r){"use strict";r.d(t,{A:()=>l});var n=r(27723),s=r(3924),o=r(51112),i=r(62399),a=r(10133),c=r(10790);const __=n.__,l=()=>(0,c.jsx)("div",{className:"jb-section",children:(0,c.jsx)("div",{className:"jb-container--narrow",children:(0,c.jsxs)("div",{className:i.A.support,children:[(0,c.jsxs)("div",{className:"content",children:[(0,c.jsx)("h3",{className:i.A.title,children:__("We're here to help","jetpack-boost")}),(0,c.jsx)("p",{children:__("Your paid plan gives you access to prioritized Jetpack Boost support.","jetpack-boost")})]}),(0,c.jsx)("div",{className:i.A.cta,children:(0,c.jsx)(o.A,{variant:"secondary",onClick:()=>{(0,a.n7)("support_contact_us_clicked",{});const e=(0,s.A)("jetpack-boost-premium-support");window.open(e,"_blank")},isExternalLink:!0,children:__("Contact Us","jetpack-boost")})})]})})})},15993(e,t,r){"use strict";r.d(t,{A:()=>u});var n=r(3924),s=r(86087),o=r(27723),i=r(79654),a=r(39609),c=r(10133),l=r(10790);const __=o.__,u=()=>{const e=(0,n.A)("jetpack-boost-pingdom"),t=(0,n.A)("jetpack-boost-why-speed");return(0,l.jsx)("div",{className:"jb-section jb-section--alt",children:(0,l.jsx)("div",{className:"jb-container--narrow",children:(0,l.jsxs)("div",{className:a.A.tips,children:[(0,l.jsx)("h3",{className:a.A["tips-title"],children:__("Did you know?","jetpack-boost")}),(0,l.jsxs)("div",{className:a.A["tips-items"],children:[(0,l.jsxs)("div",{className:a.A.item,children:[(0,l.jsx)("div",{className:a.A["item-rate"],children:"4x"}),(0,l.jsx)("div",{className:a.A["item-description"],children:(0,s.createInterpolateElement)(__("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"),{link:(0,l.jsx)(i.N,{openInNewTab:!0,onClick:()=>(0,c.n7)("pingdom_link_clicked",{}),href:e})})})]}),(0,l.jsxs)("div",{className:a.A.item,children:[(0,l.jsx)("div",{className:a.A["item-rate"],children:"20%"}),(0,l.jsx)("div",{className:a.A["item-description"],children:(0,s.createInterpolateElement)(__("A one-second delay in loading times can reduce conversion rates by 20%. (source: <link>Google</link>).","jetpack-boost"),{link:(0,l.jsx)(i.N,{openInNewTab:!0,onClick:()=>(0,c.n7)("why_speed_link_clicked",{}),href:t})})})]})]})]})})})}},12199(e,t,r){"use strict";r.d(t,{h:()=>i});var n=r(27723),s=r(91726),o=r(76703);const __=n.__;class i extends Error{constructor(e,t,r){super(),this.httpCode=e,this.body=t,this.parseError=r}get message(){if((0,o.OW)(this.body))for(const e of["error","message"])if("string"==typeof this.body[e])return this.body[e];switch(this.httpCode){case 403:return this.getRestApiErrorMessage();case 200:if(this.parseError)return(0,n.sprintf)(/* Translators: %s refers to a browser-supplied error message (hopefully already in the right language) */
__("Received invalid response while communicating with your WordPress site: %s","jetpack-boost"),this.parseError.message)}return(0,n.sprintf)(/* Translators: %d refers to numeric HTTP error code */
__("HTTP %d error received while communicating with the server.","jetpack-boost"),this.httpCode)}getDisplayBody(){return(0,o.OW)(this.body)?JSON.stringify(this.body,null," "):(0,s.w)(this.body,"").substring(0,1e3)}getRestApiErrorMessage(){return __("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")}}},38780(e,t,r){"use strict";r.d(t,{A:()=>c});var n=r(27723),s=r(12199),o=r(39715);const __=n.__;async function i(e,t,r=null){const s={method:e,mode:"cors",headers:{"X-WP-Nonce":wpApiSettings.nonce}};"post"!==e&&"delete"!==e||!r||(s.body=JSON.stringify(r),s.headers["Content-Type"]="application/json");const i=function(e){return wpApiSettings.root+Jetpack_Boost.api.namespace+Jetpack_Boost.api.prefix+e}(t);let a;try{a=await fetch(i,s)}catch(e){const t=s;delete t.body,delete t.headers["X-WP-Nonce"];const r={requestInitiator:window.location.href,requestUrl:i,requestArgs:t,originalErrorMessage:(0,o.g)(e).toString()};throw new Error((0,n.sprintf)(/* Translators: %s refers to a string representation of an error object containing useful debug information */
__("An error occurred while trying to communicate with the site REST API. Extra debug info: %s","jetpack-boost"),JSON.stringify(r)),{cause:e})}return a}async function a(e,t,r=null){const n=await i(e,t,r);let o,a;try{o=await n.text()}catch(e){throw new s.h(n.status,null,e)}try{a=JSON.parse(o)}catch(e){throw new s.h(n.status,o,e)}if(!n.ok)throw new s.h(n.status,a,null);return a}const c={get:function(e){return a("get",e)},post:function(e,t=null){return a("post",e,t)},delete:function(e,t=null){return a("delete",e,t)}}},37236(e,t,r){"use strict";r.d(t,{i:()=>c,w:()=>u});var n=r(46913),s=r(38780),o=r(74592),i=r(51609),a=r(83102);function c(e,t=!1,r=null){const n=new URL(`https://wordpress.com/checkout/${r??e}/jetpack_boost_yearly`);return n.searchParams.set("redirect_to","admin.php?page=jetpack-boost#/purchase-successful"),n.searchParams.set("site",e),t||n.searchParams.set("unlinked","1"),n.toString()}const l=a.Ik({connected:a.zM(),userConnected:a.zM(),wpcomBlogId:a.ai().nullable()}),u=()=>{const[{data:e,refetch:t}]=(0,n.Bt)("jetpack_boost_ds","connection",l),[{refetch:r}]=(0,o.C)();return{connection:e,initializeConnection:(0,i.useCallback)(async()=>{if(!e?.connected)return s.A.post("/connection").then(e=>{e.connected&&(t(),r())})},[e?.connected,t,r])}}},274(e,t,r){"use strict";r.d(t,{J:()=>o});var n=r(46913),s=r(83102);const o=()=>{const[{data:e},{mutateAsync:t}]=(0,n.Bt)("jetpack_boost_ds","getting_started",s.zM());return{shouldGetStarted:Boolean(e),markGettingStartedComplete:async()=>await t(!1)}}},87858(e,t,r){"use strict";r.d(t,{$q:()=>o,Md:()=>i});var n=r(46913),s=r(83102);const o=(e,t)=>{const[{data:r},{mutate:o}]=(0,n.Bt)("jetpack_boost_ds",e,s.YO(s.Yj()));return[r||[],function(e){o(e.split(",").map(e=>e.trim()),{onSuccess:e=>{t?.(e)}})}]},i=()=>{const[e]=(0,n.Bt)("jetpack_boost_ds","minify_legacy_notice",s.zM());return e}},50004(e,t,r){"use strict";r.d(t,{G6:()=>f,bH:()=>g,f2:()=>h,iD:()=>m,j0:()=>p});var n=r(39715),s=r(46913),o=r(51609),i=r(83102),a=r(27723);const __=a.__,c=i.Ik({code:i.Yj(),message:i.Yj(),dismissed:i.zM().optional()}).nullable(),l=i.Ik({success:i.eu(!0),notices:i.YO(i.Ik({message:i.Yj(),title:i.Yj()}))}),u=i.Ik({bypass_patterns:i.YO(i.Yj()),logging:i.zM()}),d=i.Ik({message:i.Yj()});function p(){return(0,s.Bt)("jetpack_boost_ds","page_cache_error",c)}function h(){return(0,s.Bt)("jetpack_boost_ds","page_cache",u)}function f(){const[,e]=p(),t=e.mutate,[r,a]=(0,o.useState)([]);return[(0,s.$3)({namespace:"jetpack_boost_ds",key:"page_cache",action_name:"run-setup",schema:{state:u,action_request:i.rI(),action_response:c.or(l)},callbacks:{onResult(e){const t=l.safeParse(e);t.success?a(t.data.notices):a([])}},mutationOptions:{onError:e=>{if(e instanceof s.eW)return t(e.info());const r=(0,n.g)(e);t({code:"unknown_error",message:r.message||__("Unknown error occurred.","jetpack-boost")})},onSuccess:()=>{t(null)}}}),r]}function m(){const[e,t]=(0,o.useState)("");return[e,(0,s.$3)({namespace:"jetpack_boost_ds",key:"page_cache",action_name:"clear-page-cache",schema:{state:u,action_request:i.rI(),action_response:d},callbacks:{onResult:e=>{e.message&&t(e.message)}}})]}function g(){return(0,s.$3)({namespace:"jetpack_boost_ds",key:"page_cache",action_name:"deactivate-wpsc",schema:{state:u,action_request:i.rI(),action_response:c.or(i.zM())}})}},72027(e,t,r){"use strict";r.d(t,{W:()=>i});var n=r(46913),s=r(83102);const o=s.YO(s.Yj()),i=()=>{const[{data:e}]=(0,n.Bt)("jetpack_boost_ds","premium_features",o);return e}},63016(e,t,r){"use strict";r.d(t,{e:()=>i});var n=r(46913),s=r(83102);const o=s.Ik({priceBefore:s.ai(),priceAfter:s.ai(),currencyCode:s.Yj(),isIntroductoryOffer:s.zM()}).nullable(),i=()=>{const[{data:e}]=(0,n.Bt)("jetpack_boost_ds","pricing",o);return e}},74081(e,t,r){"use strict";r.d(t,{B:()=>i});var n=r(46913),s=r(83102);const o=s.Ik({tiers:s.YO(s.Yj()),features_by_tier:s.YO(s.Ik({name:s.Yj(),info:s.Ik({title:s.Yj().optional(),content:s.Yj()}),tiers:s.Ik({free:s.Ik({included:s.zM(),description:s.Yj().optional(),info:s.Ik({title:s.Yj().optional(),content:s.Yj(),class:s.Yj().optional()}).optional()}),upgraded:s.Ik({included:s.zM(),description:s.Yj().optional(),info:s.Ik({title:s.Yj().optional(),content:s.Yj(),class:s.Yj().optional()}).optional()})})}))}).nullable(),i=()=>{const[{data:e}]=(0,n.Bt)("jetpack_boost_ds","product",o);return e}},41974(e,t,r){"use strict";r.d(t,{A:()=>s});var n=r(10790);const s=(e,t="action")=>({[t]:(0,n.jsx)("a",{style:{color:"inherit !important"},onClick:t=>{t.preventDefault(),e(t.target.getAttribute("name"))},href:"#"})})},10133(e,t,r){"use strict";async function n(e,t){return t=s(t),new Promise(r=>{"undefined"!=typeof jpTracksAJAX&&"function"==typeof jpTracksAJAX.record_ajax_event?jpTracksAJAX.record_ajax_event(`boost_${e}`,"click",t).done(r).fail(t=>{console.log(`Recording event 'boost_${e}' failed with error: ${t.responseText}`),r()}):(console.log("Invalid jpTracksAJAX object."),r())})}function s(e){const t={};return"object"==typeof Jetpack_Boost&&(t.boost_versionLine truncated
_n("%d minute ago","%d minutes ago",e,"jetpack-boost"),e)}if(t<i){const e=Math.floor(t/o);return(0,n.sprintf)(/* translators: %d is a number of hours */
_n("%d hour ago","%d hours ago",e,"jetpack-boost"),e)}if(t<a){const e=Math.floor(t/i);return(0,n.sprintf)(/* translators: %d is a number of days */
_n("%d day ago","%d days ago",e,"jetpack-boost"),e)}const r={month:"short",day:"numeric",year:(new Date).getFullYear()===e.getFullYear()?void 0:"numeric"};return(0,n.sprintf)(/* translators: %s is a pre-translated date */
__("on %s","jetpack-boost"),e.toLocaleDateString(navigator.language,r))}},66255(e,t,r){"use strict";r.d(t,{A:()=>o});var n=r(79654),s=r(10790);function o(e,t="link"){return{[t]:(0,s.jsx)(n.N,{openInNewTab:!0,href:e})}}},86367(e,t,r){"use strict";r.d(t,{A:()=>s});var n=r(27672);const s=function(e){return Object.entries(e.byUrl).map(([e,t])=>{let r=e;return t.meta.url&&"string"==typeof t.meta.url&&(r=t.meta.url),{href:r,label:(0,n.z)(e)}})}},37772(e,t,r){"use strict";r.d(t,{A:()=>d});var n=r(86212),s=r(41974),o=r(18359),i=r(22603),a=r(3485),c=r(10133),l=r(79654),u=r(10790);const d=function(e){const t=(0,i._s)(),r=(0,n.Zp)(),d={...(0,s.A)(()=>{(0,c.n7)("critical_css_retry",{error_type:e.type}),t.mutate(),r("/")},"retry"),...(0,o.A)(),b:(0,u.jsx)("b",{}),strong:(0,u.jsx)("strong",{})};return"listLink"in(0,a.h)(e)&&(d.link=(0,u.jsx)(l.N,{openInNewTab:!0,href:(0,a.h)(e).listLink})),d}},25710(e,t,r){"use strict";r.d(t,{A:()=>n});const n=function(e){return`https://jetpack.com/support/jetpack-boost/troubleshooting-critical-css-issues/#${t=e,{SuccessTargetError:"success-target-error",UrlError:"url-error",HttpError:"http-error",UnknownError:"unknown-error",CrossDomainError:"cross-domain-error",LoadTimeoutError:"load-timeout-error",RedirectError:"redirect-error",UrlVerifyError:"url-verify-error",EmptyCSSError:"empty-css-error",XFrameDenyError:"x-frame-deny-error",InvalidURLError:"invalid-url-error",ProviderError:"provider-error"}[t]||t}`;var t}},98643(e,t,r){"use strict";r.d(t,{A:()=>s});var n=r(72027);function s(){return(0,n.W)().includes("support")?"https://jetpack.com/contact-support/":"https://wordpress.org/support/plugin/jetpack-boost/"}},91643(e,t,r){"use strict";r.d(t,{M:()=>n,e:()=>s});const n=()=>"atomic"===Jetpack_Boost.site.host,s=()=>"woa"===Jetpack_Boost.site.host},10499(e,t,r){"use strict";function n(e){return new URL(e).origin===window.location.origin}r.d(t,{J:()=>n})},30698(e,t,r){"use strict";function n(e,t){const r=e.origin+e.pathname.replace(/\/$/,"")+"/",n=t.origin+t.pathname.replace(/\/$/,"")+"/";return r.startsWith(n)}r.d(t,{n:()=>n})},76703(e,t,r){"use strict";r.d(t,{OW:()=>i,mq:()=>o});var n=r(83102);const s=n.KC([n.Yj(),n.ai(),n.zM(),n.ch()]),o=n.RZ(()=>n.KC([s,n.YO(o),n.g1(o)]));function i(e){return!!e&&e instanceof Object&&!(e instanceof Array)}},10348(e,t,r){"use strict";r.d(t,{i:()=>o});var n=r(27723);const __=n.__;class s extends Error{constructor(e){super(e),this.name="AdminAjaxError"}}async function o(e,t=ajaxurl){const r={method:"post",body:new URLSearchParams(e),headers:{"Content-Type":"application/x-www-form-urlencoded"}},o=await fetch(t,r);if(!o.ok)throw new s((0,n.sprintf)(/* Translators: %d refers to an HTTP error code */
__("Received HTTP %d while communicating with your WordPress site","jetpack-boost"),o.status));return o}},97893(e,t,r){"use strict";function n(e){return e.replace(/xmlns/g,"__JB_XMLNS__")}r.d(t,{A:()=>n})},18856(e,t,r){"use strict";function n(e){const t=e.reduce((e,t)=>(e[t]=(e[t]||0)+1,e),{});return Object.keys(t).sort((e,r)=>t[e]>t[r]?1:-1)}r.d(t,{O:()=>n})},39715(e,t,r){"use strict";function n(e,t){return e instanceof Error?e:"string"==typeof e||e instanceof String?new Error(e.toString()):e.message?new Error(e.message):t?new Error(t):new Error(JSON.stringify(e))}r.d(t,{g:()=>n})},18359(e,t,r){"use strict";r.d(t,{A:()=>s});var n=r(66255);function s(e="support"){return(0,n.A)("https://wordpress.org/support/plugin/jetpack-boost/",e)}},41402(e,t,r){"use strict";r.d(t,{A:()=>y});var n=r(86212),s=r(49530),o=r(68009),i=r(18845),a=r(24549),c=r(9121),l=r(40203),u=r(51609),d=r(10133),p=r(46913),h=r(274),f=(r(91446),r(68241)),m=r(10790);function g(){const e=(()=>{const{shouldGetStarted:e}=(0,h.J)(),t=()=>e?(0,n.V2)("/getting-started"):null;return(0,n.Ge)([{path:"*",loader:t,element:(0,m.jsx)(l.A,{children:(0,m.jsx)(b,{children:(0,m.jsx)(o.A,{})})})},{path:"/cache-debug-log",loader:t,element:(0,m.jsx)(b,{children:(0,m.jsx)(f.A,{})})},{path:"/critical-css-advanced",loader:t,element:(0,m.jsx)(l.A,{children:(0,m.jsx)(b,{children:(0,m.jsx)(i.A,{})})})},{path:"/getting-started",element:(0,m.jsx)(b,{children:(0,m.jsx)(a.A,{})})},{path:"/purchase-successful",element:(0,m.jsx)(b,{children:(0,m.jsx)(c.A,{})})}])})();return(0,m.jsx)(s.pg,{router:e})}const b=({children:e})=>{const t=(0,n.zy)();return(0,u.useEffect)(()=>{let e=t.pathname.replace(/[-/]/g,"_");"_"===e&&(e="_settings"),(0,d.n7)(`page_view${e}`,{path:t.pathname})},[t]),e},y=()=>(0,m.jsx)(u.StrictMode,{children:(0,m.jsx)(p.VH,{children:(0,m.jsx)(g,{})})});r.dn(y)},68241(e,t,r){"use strict";r.d(t,{A:()=>b});var n=r(56427),s=r(88901),o=r(84260),i=r(27723),a=r(39968),c=r(79654),l=r(51609),u=r(86212),d=r(13022),p=r(66503),h=r(28776),f=r(10133),m=r(46435),g=r(10790);const __=i.__,b=()=>{const[{data:e}]=(0,h.R)(),t=(0,u.Zp)(),[r,i]=(0,l.useState)(!1),b=(0,l.useRef)();(0,l.useEffect)(()=>()=>{b.current&&clearTimeout(b.current)},[]);const y=__("Copy to clipboard","jetpack-boost"),v=(0,g.jsx)("nav",{"aria-label":__("Breadcrumbs","jetpack-boost"),children:(0,g.jsxs)("ul",{className:m.A.breadcrumbs,children:[(0,g.jsxs)("li",{children:[(0,g.jsx)(a.E,{variant:"body-lg",children:(0,g.jsx)(c.N,{tone:"neutral",href:"#/",onClick:e=>{e.preventDefault(),(0,f.n7)("back_button_clicked",{current_page:window.location.href.replace(window.location.origin,""),destination:"/"}),t("/")},children:"Boost"})}),(0,g.jsx)(a.E,{variant:"body-lg","aria-hidden":"true",className:m.A.separator,children:"/"})]}),(0,g.jsx)("li",{children:(0,g.jsx)(a.E,{variant:"heading-lg",className:m.A["breadcrumb-current"],children:__("Cache debug log","jetpack-boost")})})]})});return(0,g.jsx)(p.A,{breadcrumbs:v,children:(0,g.jsx)("div",{id:"jb-dashboard",className:"jb-dashboard jb-dashboard--main",children:(0,g.jsx)("div",{className:(0,d.A)("jb-section jb-section--main",m.A.section),children:(0,g.jsxs)("div",{className:"jb-container",children:[(0,g.jsx)("div",{id:"jp-admin-notices",className:"jetpack-boost-jitm-card"}),(0,g.jsxs)("header",{className:m.A.header,children:[(0,g.jsx)("h3",{children:__("Jetpack Boost Cache Log Viewer","jetpack-boost")}),(0,g.jsx)(n.Button,{variant:"link",className:m.A["copy-button"],icon:r?s.A:o.A,onClick:()=>{navigator.clipboard.writeText(e||""),i(!0),b.current&&clearTimeout(b.current),b.current=setTimeout(()=>i(!1),3e3)},"aria-label":y,children:r?__("Copied!","jetpack-boost"):y})]}),(0,g.jsx)("pre",{className:m.A["log-text"],children:e})]})})})})}},18845(e,t,r){"use strict";r.d(t,{A:()=>b});var n=r(6245),s=r(33958),o=r(27723),i=r(22603),a=r(27730),c=r(36710),l=r(27672),u=r(76520),d=r(80607),p=r(51609),h=r(86212),f=r(13022),m=r(51112),g=r(10790);const __=o.__,_n=o._n;function b(){const[e]=(0,i.PX)(),t=(0,i.Ml)(),r=e.providers.filter(e=>"error"===e.status),{activeRecommendations:n,dismissedRecommendations:s}=(0,a.f6)(r);function o(e){t.mutate(e.map(e=>({provider:e.provider,error_type:e.errorType,dismissed:e.dismissed})))}const l=(0,h.Zp)();(0,p.useEffect)(()=>{0===r.length&&l("/")},[r,l]);const u=0===n.length?__("Congratulations, you have dealt with all the recommendations.","jetpack-boost"):__("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");return(0,g.jsxs)("div",{className:"jb-container--narrow jb-critical-css__advanced",children:[(0,g.jsx)(c.oq,{}),(0,g.jsx)("h3",{children:__("Critical CSS advanced recommendations","jetpack-boost")}),(0,g.jsxs)("section",{children:[(0,g.jsx)(y,{heading:u}),s.length>0&&(0,g.jsx)(v,{dismissedIssues:s,showDismissedIssues:()=>{o(s.map(e=>({provider:e.key,errorType:e.errorType,dismissed:!1})))}})]}),n.map(e=>(0,Line truncated
_n("Show %d hidden recommendation.","Show %d hidden recommendations.",e.length,"jetpack-boost"),e.length)})})})})},w=({recommendation:e,setDismissed:t})=>{if(e.errors&&0===e.errors.length)return null;const r=(0,a.ae)(e.errors?e.errors:[]);return 0===r.length?null:r.map((r,n)=>(0,g.jsx)(x,{recommendation:e,errorSet:r,setDismissed:t},`${e.key}-${r.type}`))},x=({recommendation:e,errorSet:t,setDismissed:r})=>{const[o,i]=(0,p.useState)(!1),[a,{height:h}]=(0,s.A)(),m=(0,n.zh)({height:o?0:h,onRest:o?()=>{r([{provider:e.key,errorType:e.errorType,dismissed:!0}])}:void 0});return(0,g.jsx)(n.CS.div,{className:d.A["recommendation-animation-wrapper"],style:m,children:(0,g.jsxs)("div",{ref:a,className:(0,f.A)("panel",d.A.panel),children:[(0,g.jsx)(c.Jn,{onClick:()=>i(!0)}),(0,g.jsxs)("h4",{children:[(0,g.jsx)(u.A,{}),e.label]}),(0,g.jsx)("div",{className:d.A.problem,children:(0,g.jsx)(l.A,{errorSet:t})})]})})}},24549(e,t,r){"use strict";r.d(t,{A:()=>g});var n=r(51609),s=r(56427),o=r(37236),i=r(10133),a=r(93956),c=r(66503),l=r(96295),u=r(274),d=r(86212),p=r(27723),h=r(72027),f=r(74592),m=r(10790);const __=p.__,g=()=>{const[e,t]=(0,n.useState)(!1),[r,p]=(0,n.useState)(""),g=(0,d.Zp)(),{site:{domain:b}}=Jetpack_Boost,y=(0,h.W)().length>0,{shouldGetStarted:v,markGettingStartedComplete:w}=(0,u.J)(),[,x]=(0,f.p)("critical_css"),{connection:_,initializeConnection:k}=(0,o.w)(),{userConnected:j,wpcomBlogId:C}=_||{};async function A(e){t(e);try{await k(),await(0,i.n7)(`${e}_cta_from_getting_started_page_in_plugin`,{}),await w()}catch(e){p(e.message||__("Unknown error occurred. Please reload the page and try again.","jetpack-boost"))}}return(0,n.useEffect)(()=>{!v&&e&&(y||"premium"!==e?(y||x(!0),g("/",{replace:!0})):window.location.href=(0,o.i)(b,j,C?C.toString():null))},[b,y,g,e,x,v,j,C]),(0,m.jsx)(c.A,{children:(0,m.jsx)("div",{id:"jb-dashboard",className:"jb-dashboard jb-dashboard--main",children:(0,m.jsx)("div",{className:"jb-section jb-section--alt",children:(0,m.jsx)("div",{className:"jb-container",children:(0,m.jsxs)("div",{className:l.A["pricing-table"],children:[(0,m.jsx)(a.U,{onPremiumCTA:()=>A("premium"),onFreeCTA:()=>A("free"),chosenFreePlan:"free"===e,chosenPaidPlan:"premium"===e}),""!==r&&(0,m.jsx)(s.Snackbar,{children:r,onDismiss:()=>p("")})]})})})})})}},68009(e,t,r){"use strict";r.d(t,{A:()=>A});var n=r(512),s=r(25460),o=r(4476),i=r(22603),a=r(18867),c=r(89140),l=r(6854),u=r(17848),d=r(74592),p=r(26050),h=r(37414),f=r(5242),m=r(59760),g=r(30669),b=r(21482),y=r(10133),v=r(3924),w=r(86087),x=r(27723),_=r(79654),k=r(11803),j=r(61216),C=r(10790);const __=x.__,A=()=>{const e=(0,v.A)("jetpack-boost-critical-css"),t=(0,v.A)("jetpack-boost-defer-js"),r=(0,i._s)(),x=()=>{r.mutate()},[A]=(0,d.p)("image_cdn_quality"),[S]=(0,d.p)("image_cdn_liar"),E=A?.available&&S?.available,R=()=>{(0,y.n7)("critical_css_link_clicked",{})};return(0,C.jsxs)("div",{className:"jb-container--narrow",children:[(0,C.jsx)(n.A,{}),(0,C.jsxs)(p.A,{slug:"critical_css",title:__("Optimize Critical CSS Loading (manual)","jetpack-boost"),onEnable:x,description:(0,C.jsxs)(C.Fragment,{children:[(0,C.jsx)("p",{children:(0,w.createInterpolateElement)(__("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"),{link:(0,C.jsx)(_.N,{openInNewTab:!0,href:e,onClick:R})})}),(0,C.jsxs)("div",{className:k.A["tooltip-wrapper"],children:[(0,C.jsx)("p",{children:(0,w.createInterpolateElement)(__("<b>You should regenerate your Critical CSS</b> whenever you make changes to the HTML or CSS structure of your site.","jetpack-boost"),{b:(0,C.jsx)("b",{})})}),(0,C.jsx)(m.A,{})]})]}),children:[(0,C.jsx)(o.A,{}),(0,C.jsx)(b.A,{identifier:"critical-css",description:__("Save time by upgrading to Automatic Critical CSS generation.","jetpack-boost")})]}),(0,C.jsx)(p.A,{slug:"cloud_css",title:(0,C.jsxs)(C.Fragment,{children:[__("Automatically Optimize CSS Loading","jetpack-boost"),(0,C.jsx)(g.A,{})]}),worksOffline:!1,onEnable:x,description:(0,C.jsxs)(C.Fragment,{children:[(0,C.jsx)("p",{children:(0,w.createInterpolateElement)(__("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"),{link:(0,C.jsx)(_.N,{openInNewTab:!0,href:e,onClick:R})})}),(0,C.jsx)("p",{children:(0,w.createInterpolateElement)(__("<b>Boost will automatically generate your Critical CSS</b> whenever you make changes to the HTML or CSS structure of your site.","jetpack-boost"),{b:(0,C.jsx)("strong",{})})})]}),children:(0,C.jsx)(s.A,{})}),(0,C.jsx)(j.A,{}),(0,C.jsx)(h.A,{}),(0,C.jsx)(p.A,{slug:"render_blocking_js",title:__("Defer Non-Essential JavaScript","jetpack-boost"),description:(0,C.jsx)("p",{children:(0,w.createInterpolateElement)(__("Run non-essenLine truncated
@@ -0,0 +1,52 @@
/*! react */
/*! uplot */
/*! uplot-wrappers-common */
/*!*************************!*\
!*** ./common/index.ts ***!
\*************************/
/*!*******************************!*\
!*** ./react/uplot-react.tsx ***!
\*******************************/
/*!**************************************************************************************!*\
!*** external {"amd":"react","commonjs":"react","commonjs2":"react","root":"React"} ***!
\**************************************************************************************/
/*!**************************************************************************************!*\
!*** external {"amd":"uplot","commonjs":"uplot","commonjs2":"uplot","root":"uPlot"} ***!
\**************************************************************************************/
/**
* @license React
* use-sync-external-store-shim.production.js
*
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
/**
* @license React
* use-sync-external-store-shim/with-selector.production.js
*
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
/**
* react-router v7.15.1
*
* Copyright (c) Remix Software Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE.md file in the root directory of this source tree.
*
* @license MIT
*/
@@ -0,0 +1 @@
.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-weight:500}.gKZWDv5chz3_O3Syp74H,.hUB0JT8p1T2Hw28N6qC8{font-size:var(--font-title-medium);line-height:32px}.gKZWDv5chz3_O3Syp74H{font-weight:600}.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-weight:400}.dso3Rh3tl3Xv1GumBktz,.mQ1UlbN9u4Mg9byO8m7v{font-size:var(--font-body-extra-small);line-height:20px}.mQ1UlbN9u4Mg9byO8m7v{font-weight:700}.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{Line truncated
@@ -0,0 +1 @@
(globalThis.webpackChunk_automattic_jetpack_boost=globalThis.webpackChunk_automattic_jetpack_boost||[]).push([[680],{40504(e,t,n){e.exports=n(38797)},38797(e,t,n){var r=n(8482),i=n(93921),o=n(9528),a=n(83203),s=n(48514),l=n(47933),u=n(50553),c=n(12562).formatFrom,p=n(28804),h=n(28368),d=n(77610),f=n(73827).OptimizationLevel,m=n(73827).optimizationLevelFrom,g=n(2749),b=n(74925),v=n(25499),y=n(44460),k=n(7819),w=n(26426),x=n(10629),O=e.exports=function(e){e=e||{},this.options={batch:!!e.batch,compatibility:l(e.compatibility),explicitRebaseTo:"rebaseTo"in e,fetch:u(e.fetch),format:c(e.format),inline:p(e.inline),inlineRequest:h(e.inlineRequest),inlineTimeout:d(e.inlineTimeout),level:m(e.level),plugins:g(e.plugins),rebase:b(e.rebase,e.rebaseTo),rebaseTo:v(e.rebaseTo),returnPromise:!!e.returnPromise,sourceMap:!!e.sourceMap,sourceMapInlineSources:!!e.sourceMapInlineSources}};function S(e,t,n,r){return t.batch&&Array.isArray(e)?function(e,t,n,r){var i,o,a,s="function"==typeof r?r:"function"==typeof n?n:null,l=[],u={};function c(e,t){u=Object.assign(u,t),null!==e&&(l=l.concat(e))}for(o=0,a=e.length;o<a;o++)"object"==typeof e[o]?C(e[o],t,c):(i=e[o],u[i]=A([i],t),l=l.concat(u[i].errors));return s?s(l.length>0?l:null,u):u}(e,t,n,r):t.batch&&"object"==typeof e?C(e,t,n,r):A(e,t,n,r)}function C(e,t,n,r){var i,o,a="function"==typeof r?r:"function"==typeof n?n:null,s=[],l={};for(i in e)o=e[i],l[i]=A(o.styles,t,o.sourceMap),s=s.concat(l[i].errors);return a?a(s.length>0?s:null,l):l}function A(e,t,n,l){var u="function"!=typeof n?n:null,c="function"==typeof l?l:"function"==typeof n?n:null,p={stats:{efficiency:0,minifiedSize:0,originalSize:0,startedAt:Date.now(),timeSpent:0},cache:{specificity:{}},errors:[],inlinedStylesheets:[],inputSourceMapTracker:y(),localOnly:!c,options:t,source:null,sourcesContent:{},validator:s(t.compatibility),warnings:[]};return u&&p.inputSourceMapTracker.track(void 0,u),t.rebase&&!t.explicitRebaseTo&&p.warnings.push("You have set `rebase: true` without giving `rebaseTo` option, which, in this case, defaults to the current working directory. You are then warned this can lead to unexpected URL rebasing (aka here be dragons)! If you are OK with the clean-css output, then you can get rid of this warning by giving clean-css a `rebaseTo: process.cwd()` option."),(p.localOnly?function(e){return e()}:r.nextTick)(function(){return k(e,p,function(e){var t=p.options.sourceMap?x:w,n=function(e,t){var n=i(e,t);return n=f.One in t.options.level?o(e,t):e,n=f.Two in t.options.level?a(e,t,!0):n}(e,p),r=function(e,t){return e.stats=function(e,t){var n=Date.now()-t.stats.startedAt;return delete t.stats.startedAt,t.stats.timeSpent=n,t.stats.efficiency=1-e.length/t.stats.originalSize,t.stats.minifiedSize=e.length,t.stats}(e.styles,t),e.errors=t.errors,e.inlinedStylesheets=t.inlinedStylesheets,e.warnings=t.warnings,e}(t(n,p),p);return c?c(p.errors.length>0?p.errors:null,r):r})})}O.process=function(e,t){var n=t.to;return delete t.to,new O(Object.assign({returnPromise:!0,rebaseTo:n},t)).minify(e).then(function(e){return{css:e.styles}})},O.prototype.minify=function(e,t,n){var r=this.options;return r.returnPromise?new Promise(function(n,i){S(e,r,t,function(e,t){return e?i(e):n(t)})}):S(e,r,t,n)}},34261(e,t,n){var r=n(59937).single,i=n(68831);function o(e){var t=r([i.PROPERTY,[i.PROPERTY_NAME,e.name]]);return t.important=e.important,t.hack=e.hack,t.unused=!1,t}e.exports={deep:function(e){for(var t=o(e),n=e.components.length-1;n>=0;n--){var r=o(e.components[n]);r.value=e.components[n].value.slice(0),t.components.unshift(r)}return t.dirty=!0,t.value=e.value.slice(0),t},shallow:o}},79650(e,t,n){var r=n(64434),i=n(17940),o=n(85807),a=n(84419),s=n(98715),l=n(69140),u={animation:{canOverride:i.generic.components([i.generic.time,i.generic.timingFunction,i.generic.time,i.property.animationIterationCount,i.property.animationDirection,i.property.animationFillMode,i.property.animationPlayState,i.property.animationName]),components:["animation-duration","animation-timing-function","animation-delay","animation-iteration-count","animation-direction","animation-fill-mode","animation-play-state","animation-name"],breakUp:r.multiplex(r.animation),defaultValue:"none",restore:o.multiplex(o.withoutDefaults),shorthand:!0,valueOptimizers:[s.whiteSpace,s.textQuotes,s.time,s.fraction,s.precision,s.unit,s.zero],vendorPrefixes:["-moz-","-o-","-webkit-"]},"animation-delay":{canOverride:i.generic.time,componentOf:["animation"],defaultValue:"0s",intoMultiplexMode:"real",valueOptimizers:[s.time,s.fraction,s.precision,s.unit,s.zero],vendorPrefixes:["-moz-","-o-","-webkit-"]},"animation-direction":{canOverride:i.property.animationDirection,componentOf:["animation"],defaultValue:"normal",intoMultiplexMode:"real",vendorPrefixes:["-moz-","-o-","-webkit-"]},"animation-duration":{canOverride:i.generic.time,componentOf:["animation"],defaultValue:"0s",intoMultiplexMode:"real",keepUnlessDefault:"animation-delay",valueOptimizers:[s.time,s.fraction,s.precision,s.unit,sLine truncated
Binary file not shown.

After

Width:  |  Height:  |  Size: 267 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 141 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 42 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 133 KiB

@@ -0,0 +1,8 @@
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
<mask id="mask0_2115_8307" style="mask-type:alpha" maskUnits="userSpaceOnUse" x="3" y="5" width="18" height="14">
<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"/>
</mask>
<g mask="url(#mask0_2115_8307)">
<rect width="23.8823" height="24" fill="#069E08"/>
</g>
</svg>

After

Width:  |  Height:  |  Size: 446 B

@@ -0,0 +1,41 @@
<svg width="363" height="600" viewBox="0 0 363 600" fill="none" xmlns="http://www.w3.org/2000/svg">
<mask id="mask0_2115_8320" style="mask-type:alpha" maskUnits="userSpaceOnUse" x="0" y="0" width="363" height="666">
<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"/>
</mask>
<g mask="url(#mask0_2115_8320)">
<g filter="url(#filter0_f_2115_8320)">
<ellipse cx="290.5" cy="288.048" rx="151.5" ry="143.048" fill="#069E08" fill-opacity="0.15"/>
</g>
<g filter="url(#filter1_f_2115_8320)">
<ellipse cx="256.5" cy="132.5" rx="131.5" ry="124.5" fill="#F5E6B3"/>
</g>
<g opacity="0.7" filter="url(#filter2_f_2115_8320)">
<ellipse cx="173" cy="-64" rx="213" ry="201" fill="#CED9F2"/>
</g>
<g opacity="0.9" filter="url(#filter3_f_2115_8320)">
<ellipse cx="4.5" cy="67" rx="100.5" ry="95" fill="white"/>
</g>
</g>
<defs>
<filter id="filter0_f_2115_8320" x="55" y="61" width="471" height="454.096" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB">
<feFlood flood-opacity="0" result="BackgroundImageFix"/>
<feBlend mode="normal" in="SourceGraphic" in2="BackgroundImageFix" result="shape"/>
<feGaussianBlur stdDeviation="42" result="effect1_foregroundBlur_2115_8320"/>
</filter>
<filter id="filter1_f_2115_8320" x="-29" y="-146" width="571" height="557" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB">
<feFlood flood-opacity="0" result="BackgroundImageFix"/>
<feBlend mode="normal" in="SourceGraphic" in2="BackgroundImageFix" result="shape"/>
<feGaussianBlur stdDeviation="77" result="effect1_foregroundBlur_2115_8320"/>
</filter>
<filter id="filter2_f_2115_8320" x="-134" y="-359" width="614" height="590" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB">
<feFlood flood-opacity="0" result="BackgroundImageFix"/>
<feBlend mode="normal" in="SourceGraphic" in2="BackgroundImageFix" result="shape"/>
<feGaussianBlur stdDeviation="47" result="effect1_foregroundBlur_2115_8320"/>
</filter>
<filter id="filter3_f_2115_8320" x="-190" y="-122" width="389" height="378" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB">
<feFlood flood-opacity="0" result="BackgroundImageFix"/>
<feBlend mode="normal" in="SourceGraphic" in2="BackgroundImageFix" result="shape"/>
<feGaussianBlur stdDeviation="47" result="effect1_foregroundBlur_2115_8320"/>
</filter>
</defs>
</svg>

After

Width:  |  Height:  |  Size: 2.3 KiB

@@ -0,0 +1,8 @@
<svg width="25" height="24" viewBox="0 0 25 24" fill="none" xmlns="http://www.w3.org/2000/svg">
<mask id="mask0_2997_990" style="mask-type:alpha" maskUnits="userSpaceOnUse" x="5" y="5" width="15" height="14">
<path d="M19.5 6.41L18.09 5L12.5 10.59L6.91 5L5.5 6.41L11.09 12L5.5 17.59L6.91 19L12.5 13.41L18.09 19L19.5 17.59L13.91 12L19.5 6.41Z" fill="white"/>
</mask>
<g mask="url(#mask0_2997_990)">
<rect x="0.5" width="24" height="24" fill="#E65054"/>
</g>
</svg>

After

Width:  |  Height:  |  Size: 464 B

@@ -0,0 +1,14 @@
<svg width="513" height="400" viewBox="0 0 513 400" fill="none" xmlns="http://www.w3.org/2000/svg">
<g filter="url(#filter0_f_2285_9948)">
<path opacity="0.7" d="M505.462 -126.766C530.541 -119.966 549.288 -98.8259 572.421 -86.2516C600.401 -71.0427 638.717 -72.4006 656.759 -44.5276C674.393 -17.2838 665.913 20.8197 663.238 54.0552C660.751 84.9436 650.487 113.365 641.675 142.841C632.059 175.007 630.926 212.795 608.725 236.396C586.471 260.054 552.462 263.253 522.033 270.029C492.682 276.566 463.078 280.134 433.434 275.432C402.994 270.605 372.263 262.269 347.494 242.349C322.667 222.382 304.977 193.366 292.881 162.392C281.191 132.458 280.938 99.6507 279.082 67.1702C277.181 33.9036 268.485 -1.53342 281.799 -31.5256C295.088 -61.4623 324.768 -77.8611 350.985 -94.8026C374.635 -110.085 400.357 -119.998 427.357 -125.585C453.264 -130.946 479.871 -133.705 505.462 -126.766Z" fill="#F5E6B3"/>
<path opacity="0.7" d="M274.015 156.173C295.086 169.132 307.167 193.384 321.975 214.247C336.016 234.031 352.197 252.418 359.227 276.233C366.356 300.379 368.273 326.743 362.435 351.298C356.74 375.254 340.991 394.185 326.63 413.345C312.893 431.674 295.965 445.599 279.86 461.47C259.756 481.283 245.911 513.006 219.385 519.036C193.402 524.943 169.073 503.68 144.71 492.194C120.547 480.803 90.952 475.33 76.2142 451.541C61.3709 427.582 68.762 395.334 66.8348 366.495C65.2206 342.34 64.3226 318.928 65.737 294.759C67.2819 268.358 62.3709 239.32 75.5755 217.13C88.7931 194.918 115.438 188.59 136.618 175.644C157.993 162.579 177.206 143.602 201.505 140.158C226.271 136.649 252.261 142.795 274.015 156.173Z" fill="#CED9F2"/>
<path d="M549.377 206.234C594.702 223.625 610.9 283.303 639.95 325.028C666.696 363.443 704.795 395.077 713.74 442.307C722.685 489.54 697.844 534.7 688.591 581.863C678.121 635.231 687.426 696.612 655.585 738.726C623.071 781.732 567.997 793.298 518.428 806.93C467.16 821.029 413.471 836.097 362.916 819.213C311.973 802.2 266.336 763.635 239.174 713.667C213.549 666.525 223.51 608.177 218.559 553.647C214.133 504.904 202.281 457.338 211.548 409.411C221.467 358.118 235.699 302.891 273.35 270.285C310.684 237.954 363.969 247.851 410.604 237.03C457.576 226.13 504.076 188.853 549.377 206.234Z" fill="#069E08" fill-opacity="0.11"/>
</g>
<defs>
<filter id="filter0_f_2285_9948" x="-19.4263" y="-215.362" width="819.537" height="1126.51" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB">
<feFlood flood-opacity="0" result="BackgroundImageFix"/>
<feBlend mode="normal" in="SourceGraphic" in2="BackgroundImageFix" result="shape"/>
<feGaussianBlur stdDeviation="42.2297" result="effect1_foregroundBlur_2285_9948"/>
</filter>
</defs>
</svg>

After

Width:  |  Height:  |  Size: 2.6 KiB

@@ -0,0 +1,17 @@
<svg class="jitm-jp-logo" viewBox="0 0 176 32" xmlns="http://www.w3.org/2000/svg">
<path d="M16 32C24.8365 32 32 24.8362 32 15.9994C32 7.16259 24.8365 0 16 0C7.16351 0 0 7.16377 0 16.0006C0 24.8374 7.16351 32 16 32Z" fill="#069E08"/>
<path d="m16.794 13.313v15.511l8-15.511h-8z" fill="#fff"/>
<path d="m15.176 18.657v-15.482l-7.9692 15.482h7.9692z" fill="#fff"/>
<path d="m41.711 27.015c-0.4629-0.7159-0.8936-1.4307-1.3254-2.1152 2.2813-1.4004 3.0517-2.5196 3.0517-4.636v-12.227h-2.6821v-2.3325h5.7039v13.938c0 3.547-1.0169 5.5378-4.7481 7.3729z"/>
<path d="m65.603 18.677c0 1.1819 0.8326 1.3063 1.3876 1.3063 0.5551 0 1.3566-0.1871 1.9727-0.3731v2.178c-0.8637 0.2801-1.7573 0.4974-2.9907 0.4974-1.4798 0-3.206-0.5602-3.206-3.174v-6.4095h-1.5719v-2.2093h1.5719v-3.2657h2.8364v3.2669h3.5756v2.2093h-3.5756v5.9737z"/>
<path d="m71.523 28.104v-17.641h2.7132v1.0576c1.079-0.8402 2.2813-1.369 3.7611-1.369 2.5588 0 4.5937 1.8049 4.5937 5.6935 0 3.8585-2.2191 6.4095-5.8881 6.4095-0.8936 0-1.603-0.1243-2.3435-0.2801v6.098h-2.8364v0.0314zm5.7338-15.587c-0.8326 0-1.8805 0.4045-2.8675 1.2761v6.0051c0.6161 0.1243 1.2645 0.2173 2.127 0.2173 2.0038 0 3.145-1.2761 3.145-3.9515 0-2.458-0.8326-3.547-2.4045-3.547z"/>
<path d="m93.748 22.007h-2.651v-1.2761h-0.0622c-0.9247 0.716-2.066 1.4935-3.7611 1.4935-1.4798 0-3.0828-1.089-3.0828-3.2983 0-2.9555 2.4966-3.5157 4.254-3.7644l2.4966-0.3416v-0.3417c0-1.5562-0.6161-2.0536-2.066-2.0536-0.7094 0-2.3734 0.2173-3.73 0.7775l-0.2464-2.3023c1.2334-0.4358 2.9285-0.7461 4.3473-0.7461 2.7741 0 4.5626 1.1204 4.5626 4.4489v7.4042h-0.061zm-2.8364-5.382-2.3435 0.373c-0.7094 0.093-1.4487 0.5288-1.4487 1.5864 0 0.9332 0.524 1.462 1.2944 1.462 0.8326 0 1.7262-0.4974 2.4966-1.0576v-2.3638h0.0012z"/>
<path d="m105.46 21.633c-1.171 0.4044-2.219 0.6531-3.546 0.6531-4.2537 0-5.95-2.458-5.95-6.0352 0-3.7643 2.3435-6.098 6.135-6.098 1.417 0 2.281 0.2487 3.237 0.5602v2.4266c-0.833-0.3115-2.035-0.6531-3.206-0.6531-1.727 0-3.2064 0.9332-3.2064 3.6085 0 2.9555 1.4794 3.8585 3.3604 3.8585 0.894 0 1.88-0.1871 3.206-0.7159v2.3953h-0.03z"/>
<path d="m110.83 15.442c0.246-0.2801 0.432-0.5602 4.008-4.9474h3.698l-4.624 5.4762 5.055 6.0666h-3.699l-4.408-5.4762v5.4762h-2.835v-16.333h2.836v9.7379h-0.031z"/>
<path d="m59.066 21.632c-1.4798 0.4672-2.7443 0.6531-4.2241 0.6531-3.6378 0-5.888-1.8351-5.888-6.1294 0-3.1425 1.9116-6.005 5.5794-6.005 3.6379 0 4.9023 2.551 4.9023 4.9776 0 0.8089-0.0622 1.2447-0.0921 1.7107h-7.3367c0.0622 2.5197 1.4798 3.1112 3.6067 3.1112 1.1712 0 2.2191-0.2801 3.4226-0.7159v2.3953h0.0299v0.0024zm-2.5888-6.6896c0-1.4005-0.4629-2.6138-1.9726-2.6138-1.4176 0-2.2813 1.0262-2.4667 2.6138h4.4393z"/>
<path d="m131.97 10.894c0 0.6585-0.146 1.2617-0.439 1.8106-0.293 0.549-0.777 1.0038-1.452 1.3679v0.0454c0.375 0.1284 0.718 0.2933 1.03 0.4936 0.311 0.2003 0.577 0.4383 0.799 0.7149 0.22 0.2767 0.394 0.5888 0.518 0.9363 0.124 0.3486 0.185 0.7382 0.185 1.1687 0 0.3708-0.058 0.7681-0.174 1.192-0.117 0.4238-0.321 0.8344-0.614 1.2317s-0.683 0.7626-1.17 1.0946c-0.487 0.3331-1.103 0.5976-1.846 0.7946-0.188 0.0454-0.392 0.0874-0.614 0.1251-0.221 0.0376-0.467 0.0697-0.737 0.0962-0.27 0.0266-0.571 0.0454-0.9 0.0565-0.331 0.0111-0.702 0.0166-1.114 0.0166h-4.378v-15.184h5.234c1.117 0 2.018 0.114 2.701 0.34087 0.51 0.16601 0.953 0.38403 1.328 0.65297 0.375 0.26893 0.685 0.56774 0.929 0.89644 0.243 0.3287 0.423 0.67731 0.54 1.0436 0.116 0.36628 0.174 0.73598 0.174 1.1056zm-5.661 2.2135c0.749 0 1.309-0.0753 1.677-0.2269 0.413-0.1738 0.707-0.4139 0.883-0.7205 0.176-0.3065 0.265-0.6529 0.265-1.0381 0-0.4006-0.101-0.7581-0.304-1.0724-0.203-0.31431-0.548-0.54672-1.035-0.69834-0.203-0.06087-0.439-0.10403-0.709-0.13059s-0.604-0.03984-1.002-0.03984h-2.262v3.9267h2.487zm-2.487 2.3263v4.2786h1.801c0.479 0 0.892-0.0133 1.238-0.0399 0.344-0.0265 0.641-0.0697 0.889-0.1306 0.383-0.083 0.701-0.1948 0.957-0.3353 0.255-0.1395 0.461-0.2988 0.619-0.477 0.158-0.1771 0.27-0.3741 0.338-0.5899s0.101-0.4438 0.101-0.6861c0-0.4239-0.116-0.7947-0.349-1.1123s-0.596-0.5556-1.092-0.7149c-0.217-0.0687-0.473-0.1174-0.765-0.1472-0.293-0.0299-0.667-0.0454-1.125-0.0454h-2.612z" fill="#646970"/>
<path d="m145.21 16.368c0 0.8697-0.13 1.6634-0.391 2.3813-0.261 0.7178-0.635 1.3318-1.121 1.8432-0.487 0.5113-1.075 0.9065-1.765 1.1845-0.689 0.2791-1.459 0.4175-2.31 0.4175-0.873 0-1.657-0.1396-2.351-0.4175-0.694-0.278-1.281-0.6732-1.764-1.1845-0.484-0.5114-0.854-1.1254-1.109-1.8432-0.257-0.7168-0.386-1.5116-0.386-2.3813s0.13-1.6634 0.391-2.3813c0.261-0.7167 0.635-1.3319 1.121-1.8432 0.487-0.5113 1.076-0.9065 1.765-1.1845 0.689-0.2791 1.46-0.4175 2.31-0.4175 0.874 0 1.657 0.1396 2.351 0.4175 0.694 0.2791 1.282 0.6732 1.765 1.1845s0.852 1.1254 1.108 1.8432c0.257 0.7179 0.386 1.5116 0.386 2.3813zm-2.816 0c0-0.5872-0.07-1.1064-0.207-1.5574-0.138-0.4499-0.33-0.8284-0.575-1.1331-0.246-0.3048-0.541-0.5337-0.886-0.6866-0.345-0.153-0.721-0.2289-1.127-0.2289-0.399 0-0.768 0.0759-1.108 0.2289-0.341 0.1529-0.635 0.3818-0.879 0.6866-0.246 0.3059-0.438 0.6832-0.575 1.1331-0.138 0.4499-0.208 0.9691-0.208 1.5574 0 0.5872 0.07 1.1063 0.208 1.5574 0.137 0.4499 0.331 0.8261 0.58 1.1275 0.249 0.3015 0.544 0.5303 0.885 0.6866s0.714 0.2345 1.121 0.2345c0.406 0 0.778-0.0782 1.115-0.2345 0.338-0.1563 0.628-0.3851 0.874-0.6866 0.245-0.3014 0.437-0.6776 0.575-1.1275 0.137-0.4511 0.207-0.9702 0.207-1.5574z" fill="#646970"/>
<path d="m157.45 16.368c0 0.8697-0.126 1.6634-0.379 2.3813-0.253 0.7178-0.615 1.3318-1.086 1.8432-0.471 0.5113-1.042 0.9065-1.71 1.1845-0.667 0.2791-1.413 0.4175-2.238 0.4175-0.846 0-1.605-0.1396-2.277-0.4175-0.672-0.278-1.241-0.6732-1.709-1.1845-0.468-0.5114-0.827-1.1254-1.074-1.8432-0.249-0.7168-0.374-1.5116-0.374-2.3813s0.126-1.6634 0.379-2.3813c0.252-0.7167 0.615-1.3319 1.086-1.8432s1.041-0.9065 1.709-1.1845c0.668-0.2791 1.414-0.4175 2.239-0.4175 0.846 0 1.605 0.1396 2.277 0.4175 0.672 0.2791 1.241 0.6732 1.709 1.1845s0.826 1.1254 1.074 1.8432c0.249 0.7179 0.374 1.5116 0.374 2.3813zm-2.729 0c0-0.5872-0.068-1.1064-0.201-1.5574-0.134-0.4499-0.319-0.8284-0.557-1.1331-0.238-0.3048-0.524-0.5337-0.858-0.6866-0.335-0.153-0.699-0.2289-1.092-0.2289-0.386 0-0.744 0.0759-1.074 0.2289-0.33 0.1529-0.614 0.3818-0.851 0.6866-0.238 0.3059-0.424 0.6832-0.557 1.1331-0.134 0.4499-0.201 0.9691-0.201 1.5574 0 0.5872 0.067 1.1063 0.201 1.5574 0.133 0.4499 0.321 0.8261 0.562 1.1275 0.241 0.3015 0.527 0.5303 0.857 0.6866s0.692 0.2345 1.086 0.2345c0.393 0 0.754-0.0782 1.081-0.2345s0.608-0.3851 0.846-0.6866c0.238-0.3014 0.423-0.6776 0.557-1.1275 0.135-0.4511 0.201-0.9702 0.201-1.5574z" fill="#646970"/>
<path d="m164.24 18.692c0-0.2367-0.067-0.4309-0.199-0.5839-0.133-0.1529-0.309-0.2802-0.529-0.384-0.219-0.1027-0.471-0.192-0.756-0.269-0.283-0.0759-0.581-0.1529-0.892-0.2288-0.394-0.1072-0.772-0.2311-1.136-0.3718-0.364-0.1406-0.684-0.3259-0.96-0.5548-0.277-0.2288-0.497-0.5168-0.66-0.864-0.163-0.3471-0.245-0.7724-0.245-1.2759 0-0.6184 0.11-1.1542 0.33-1.6086 0.219-0.4543 0.517-0.8294 0.892-1.1274 0.375-0.2981 0.81-0.5191 1.307-0.6642s1.021-0.2177 1.574-0.2177c0.674 0 1.307 0.0558 1.898 0.1663s1.125 0.2534 1.603 0.4287v2.2102c-0.251-0.0837-0.514-0.1618-0.791-0.2344-0.277-0.0725-0.557-0.135-0.841-0.1886s-0.567-0.0971-0.847-0.1318c-0.28-0.0346-0.545-0.0513-0.796-0.0513-0.318 0-0.587 0.0301-0.807 0.0915-0.219 0.0614-0.398 0.1429-0.534 0.2456-0.137 0.1027-0.235 0.221-0.296 0.355s-0.091 0.2724-0.091 0.4175c0 0.2523 0.066 0.4577 0.198 0.6184 0.133 0.1608 0.316 0.2903 0.551 0.3896 0.235 0.0994 0.481 0.1808 0.74 0.2467 0.257 0.0648 0.507 0.1284 0.75 0.1887 0.379 0.0915 0.757 0.202 1.136 0.3315s0.72 0.3114 1.023 0.5436c0.303 0.2333 0.551 0.5347 0.745 0.9042 0.193 0.3706 0.29 0.8417 0.29 1.4133 0 0.6262-0.118 1.1709-0.353 1.6364s-0.563 0.8529-0.983 1.1621-0.925 0.5381-1.512 0.6865c-0.588 0.1485-1.233 0.2233-1.938 0.2233-0.697 0-1.324-0.0558-1.881-0.1663-0.556-0.1106-1.017-0.2501-1.381-0.4175v-2.1857c0.591 0.221 1.136 0.3717 1.637 0.4521 0.5 0.0803 0.967 0.1205 1.398 0.1205 0.334 0 0.644-0.0245 0.932-0.0748 0.289-0.0491 0.536-0.1272 0.745-0.2344s0.374-0.2422 0.495-0.4063c0.124-0.1641 0.184-0.3617 0.184-0.5905z" fill="#646970"/>
<path d="m176 21.896c-0.302 0.0916-0.661 0.1641-1.079 0.2177-0.417 0.0536-0.808 0.0804-1.169 0.0804-0.92 0-1.671-0.1507-2.256-0.4521-0.584-0.3014-0.996-0.7344-1.237-1.2992-0.173-0.4041-0.26-0.9532-0.26-1.6486v-5.745h-2.046v-2.2323h2.046v-3.1008h2.678v3.1019h3.165v2.2323h-3.165v5.3912c0 0.4275 0.064 0.7445 0.192 0.9498 0.226 0.3516 0.674 0.5269 1.345 0.5269 0.308 0 0.616-0.0246 0.921-0.0748 0.305-0.0491 0.593-0.1128 0.864-0.1887v2.2413h1e-3z" fill="#646970"/>
</svg>

After

Width:  |  Height:  |  Size: 8.4 KiB

@@ -0,0 +1,12 @@
<svg width="16" height="16" viewBox="0 0 16 16" fill="#008710"
xmlns="http://www.w3.org/2000/svg">
<mask id="mask0_3234_4810" style="mask-type:luminance" maskUnits="userSpaceOnUse" x="2" y="1"
width="13" height="13">
<path fill-rule="evenodd" clip-rule="evenodd"
d="M13.724 3.724L12.276 2.276C11.7553 1.75533 10.9113 1.75533 10.3907 2.276L9.33333 3.33333L12.6667 6.66666L13.724 5.60933C14.2447 5.08866 14.2447 4.24466 13.724 3.724ZM8.66667 4L12 7.33333L5.662 13.6713C5.20467 13.214 5.20267 12.4753 5.654 12.0147L5.652 12.0127C5.19133 12.464 4.45267 12.462 3.99533 12.0047C3.544 11.5533 3.538 10.83 3.97133 10.368L3.966 10.3627C3.504 10.7953 2.78 10.7893 2.32933 10.3387L8.66667 4ZM2 14V12C3.10467 12 4 12.8953 4 14H2Z"
fill="white" />
</mask>
<g mask="url(#mask0_3234_4810)">
<rect width="16" height="16" />
</g>
</svg>

After

Width:  |  Height:  |  Size: 837 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.1 KiB