diff --git a/composer.lock b/composer.lock index bb39f13e..f2d5c0bf 100644 --- a/composer.lock +++ b/composer.lock @@ -4,7 +4,7 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], - "content-hash": "f8059e121d1e73ed0e68fc1666559fc6", + "content-hash": "87b01917e84a6d4f1a9f580d0094decf", "packages": [ { "name": "automattic/jetpack-a8c-mc-stats", @@ -12,7 +12,7 @@ "dist": { "type": "path", "url": "/tmp/jetpack-build/Automattic/jetpack-a8c-mc-stats", - "reference": "3380c351303c3db5833e5cdd49428a952bf5c175" + "reference": "0d34e5dcc7276e1afa067a64d2e31fdf6b262570" }, "require": { "php": ">=7.0" @@ -62,7 +62,7 @@ "dist": { "type": "path", "url": "/tmp/jetpack-build/Automattic/jetpack-admin-ui", - "reference": "0b275a1fc9ad0224fa6703166b4ebeba1e19d98a" + "reference": "5672a93ce9978f4a0a5f5ae5749815f1d225262e" }, "require": { "php": ">=7.0" @@ -124,7 +124,7 @@ "dist": { "type": "path", "url": "/tmp/jetpack-build/Automattic/jetpack-assets", - "reference": "6afa4b8a047e483078bc103b2a54f53d653cf2d1" + "reference": "be62a986fcadcf7b40c4c83fbd1acfc1752098ae" }, "require": { "automattic/jetpack-constants": "^2.0.4", @@ -190,11 +190,11 @@ "dist": { "type": "path", "url": "/tmp/jetpack-build/Automattic/jetpack-blaze", - "reference": "c067051bdb976b1fa83541166631b9f561932643" + "reference": "af18535b0ebffc693376ba2c46b095df7cebd2dd" }, "require": { "automattic/jetpack-assets": "^2.3.4", - "automattic/jetpack-connection": "^2.12.4", + "automattic/jetpack-connection": "^2.12.5-alpha", "automattic/jetpack-constants": "^2.0.4", "automattic/jetpack-plans": "^0.4.8", "automattic/jetpack-redirect": "^2.0.3", @@ -268,7 +268,7 @@ "dist": { "type": "path", "url": "/tmp/jetpack-build/Automattic/jetpack-blocks", - "reference": "58b0d5310f36e12f5a41a21c0720a4aa26e571d3" + "reference": "267226d6f5fde8a444fd45c3747eb5526399e679" }, "require": { "automattic/jetpack-constants": "^2.0.4", @@ -327,7 +327,7 @@ "dist": { "type": "path", "url": "/tmp/jetpack-build/Automattic/jetpack-calypsoify", - "reference": "024032ab100054a142df20c1c2e703180fbb433d" + "reference": "8b3184334c5ac220059f72213777192efa6f2655" }, "require": { "automattic/jetpack-assets": "^2.3.4", @@ -389,7 +389,7 @@ "dist": { "type": "path", "url": "/tmp/jetpack-build/Automattic/jetpack-classic-theme-helper", - "reference": "77cfb9cab63a478c5a3b613fb0a13ed7647ab1fb" + "reference": "26eeb0ad2f990a38369280ae11c9fa939be62f78" }, "require": { "automattic/jetpack-assets": "^2.3.4", @@ -457,7 +457,7 @@ "dist": { "type": "path", "url": "/tmp/jetpack-build/Automattic/jetpack-compat", - "reference": "0c27edb99013ca9e5ed6bb6b51edf67eae94c14e" + "reference": "0d119fef09aac5ce6ccf97c544503bea3d456690" }, "require": { "php": ">=7.0" @@ -490,11 +490,11 @@ }, { "name": "automattic/jetpack-connection", - "version": "2.12.4", + "version": "2.12.5-alpha.1724783147", "dist": { "type": "path", "url": "/tmp/jetpack-build/Automattic/jetpack-connection", - "reference": "dc31b3daf0e3930df172933865f84b8dda41018c" + "reference": "5d8de61bc0621c163995c16edc81e57827d33733" }, "require": { "automattic/jetpack-a8c-mc-stats": "^2.0.2", @@ -578,7 +578,7 @@ "dist": { "type": "path", "url": "/tmp/jetpack-build/Automattic/jetpack-constants", - "reference": "49c5d33878cf4ad4d3305ec21bddc52972e2dc0e" + "reference": "0f4694077854d23c772f6d22e2d5cc8c429753c5" }, "require": { "php": ">=7.0" @@ -629,7 +629,7 @@ "dist": { "type": "path", "url": "/tmp/jetpack-build/Automattic/jetpack-device-detection", - "reference": "3e5ac2c418e4207dda0642f9d76bdbb8b9261e23" + "reference": "1cc6c37ca460721b0cc5ff82e47d75eaf1028b9f" }, "require": { "php": ">=7.0" @@ -679,7 +679,7 @@ "dist": { "type": "path", "url": "/tmp/jetpack-build/Automattic/jetpack-google-analytics", - "reference": "d0bf092657360c85876cb8ddab2ab9adf1b2d846" + "reference": "d68585ce254652ea8d3aca325c09b046b40c8233" }, "require": { "automattic/jetpack-status": "^3.3.4", @@ -747,7 +747,7 @@ "dist": { "type": "path", "url": "/tmp/jetpack-build/Automattic/jetpack-ip", - "reference": "06aca400600c4aa95fa798ecdbae5a65b131530d" + "reference": "f58b7d469bfffee0e5146fb1e6a36a9a8390213b" }, "require": { "php": ">=7.0" @@ -802,12 +802,12 @@ "dist": { "type": "path", "url": "/tmp/jetpack-build/Automattic/jetpack-jitm", - "reference": "ce7937f00d20da1e3ee9e60a77d55e8055e3e749" + "reference": "31e180c25f473ef0e9fd22d3867977123c240270" }, "require": { "automattic/jetpack-a8c-mc-stats": "^2.0.2", "automattic/jetpack-assets": "^2.3.4", - "automattic/jetpack-connection": "^2.12.4", + "automattic/jetpack-connection": "^2.12.5-alpha", "automattic/jetpack-device-detection": "^2.1.4", "automattic/jetpack-logo": "^2.0.4", "automattic/jetpack-redirect": "^2.0.3", @@ -874,7 +874,7 @@ "dist": { "type": "path", "url": "/tmp/jetpack-build/Automattic/jetpack-logo", - "reference": "7e15a68db294ad8d541b83fb5149da2dd1d04e50" + "reference": "b99f6c72d784f9b43e9b27612910cae7d58c67ea" }, "require": { "php": ">=7.0" @@ -924,13 +924,13 @@ "dist": { "type": "path", "url": "/tmp/jetpack-build/Automattic/jetpack-masterbar", - "reference": "9075a83a72d359f2ad71e7e42191ef6245a25c1a" + "reference": "034543710e35b08173164b92291a71e783d0febc" }, "require": { "automattic/jetpack-assets": "^2.3.4", "automattic/jetpack-blaze": "^0.22.7", "automattic/jetpack-compat": "^3.0.2", - "automattic/jetpack-connection": "^2.12.4", + "automattic/jetpack-connection": "^2.12.5-alpha", "automattic/jetpack-device-detection": "^2.1.4", "automattic/jetpack-jitm": "^3.1.18", "automattic/jetpack-logo": "^2.0.4", @@ -999,11 +999,11 @@ }, { "name": "automattic/jetpack-mu-wpcom", - "version": "5.59.1-alpha.1724777867", + "version": "5.59.1-alpha.1724783147", "dist": { "type": "path", "url": "/tmp/jetpack-build/Automattic/jetpack-mu-wpcom", - "reference": "e72874b8cf0053f5a33170ff20867ea2d1b07d0d" + "reference": "6415314741e1ca7d53462adfb92b528a2ef1eb0d" }, "require": { "automattic/jetpack-assets": "^2.3.4", @@ -1011,7 +1011,7 @@ "automattic/jetpack-calypsoify": "^0.1.4", "automattic/jetpack-classic-theme-helper": "^0.5.3", "automattic/jetpack-compat": "^3.0.2", - "automattic/jetpack-connection": "^2.12.4", + "automattic/jetpack-connection": "^2.12.5-alpha", "automattic/jetpack-google-analytics": "^0.2.3", "automattic/jetpack-masterbar": "^0.8.1-alpha", "automattic/jetpack-redirect": "^2.0.3", @@ -1083,7 +1083,7 @@ "dist": { "type": "path", "url": "/tmp/jetpack-build/Automattic/jetpack-password-checker", - "reference": "e27236191722f88c795e84507efa7ea6e4ec7141" + "reference": "7e3608cc47bf57e3f787a07ee69ecb8fc5f2478f" }, "require": { "php": ">=7.0" @@ -1141,10 +1141,10 @@ "dist": { "type": "path", "url": "/tmp/jetpack-build/Automattic/jetpack-plans", - "reference": "023098091e6b1edddfefa3b67fa3c6cf610b9584" + "reference": "e5412f6c3d12788a64f50cc6939927be282b26bd" }, "require": { - "automattic/jetpack-connection": "^2.12.4", + "automattic/jetpack-connection": "^2.12.5-alpha", "php": ">=7.0" }, "require-dev": { @@ -1206,7 +1206,7 @@ "dist": { "type": "path", "url": "/tmp/jetpack-build/Automattic/jetpack-redirect", - "reference": "b942c9a81c649c5544dbf5e6ab721cf4796eb55c" + "reference": "8f2220ce162e0600a24c56bd2d026018c77979f9" }, "require": { "automattic/jetpack-status": "^3.3.4", @@ -1258,7 +1258,7 @@ "dist": { "type": "path", "url": "/tmp/jetpack-build/Automattic/jetpack-roles", - "reference": "dc012bb7119dc0ed87d4c2bbb67f60774a6344bb" + "reference": "fb2f104bac2703709a2f60ca6e3873e2a4472328" }, "require": { "php": ">=7.0" @@ -1309,10 +1309,10 @@ "dist": { "type": "path", "url": "/tmp/jetpack-build/Automattic/jetpack-stats", - "reference": "5a6500e1feda07abd76dd44d5cd5e2db4d21f1d5" + "reference": "8387e374754ac6e24c282f4fdc8c4bea7644bf04" }, "require": { - "automattic/jetpack-connection": "^2.12.4", + "automattic/jetpack-connection": "^2.12.5-alpha", "automattic/jetpack-constants": "^2.0.4", "automattic/jetpack-status": "^3.3.4", "php": ">=7.0" @@ -1373,10 +1373,10 @@ "dist": { "type": "path", "url": "/tmp/jetpack-build/Automattic/jetpack-stats-admin", - "reference": "19e93095fadf9eb7801491863d47ffdfe60073d4" + "reference": "b3edc8ff10fddcbd5081b8c8483348474f1c10c7" }, "require": { - "automattic/jetpack-connection": "^2.12.4", + "automattic/jetpack-connection": "^2.12.5-alpha", "automattic/jetpack-constants": "^2.0.4", "automattic/jetpack-jitm": "^3.1.18", "automattic/jetpack-plans": "^0.4.8", @@ -1443,7 +1443,7 @@ "dist": { "type": "path", "url": "/tmp/jetpack-build/Automattic/jetpack-status", - "reference": "9f7580c78a9a62db753dca85436d058150b596d1" + "reference": "4320ad504fd702b748340ab909c565e123781243" }, "require": { "automattic/jetpack-constants": "^2.0.4", @@ -1504,10 +1504,10 @@ "dist": { "type": "path", "url": "/tmp/jetpack-build/Automattic/jetpack-sync", - "reference": "3f082c310a881c791bd3ae97d188ec2fd7132ada" + "reference": "922810c9ade66ebde6c6d25e9d2fc2603738ca21" }, "require": { - "automattic/jetpack-connection": "^2.12.4", + "automattic/jetpack-connection": "^2.12.5-alpha", "automattic/jetpack-constants": "^2.0.4", "automattic/jetpack-ip": "^0.2.3", "automattic/jetpack-password-checker": "^0.3.2", @@ -1579,10 +1579,10 @@ "dist": { "type": "path", "url": "/tmp/jetpack-build/Automattic/scheduled-updates", - "reference": "b8e8820cf35b16571b26eb816ec80bf713d4eee4" + "reference": "75e50ae40744f06c4d7d4389e19dfb0a55a18977" }, "require": { - "automattic/jetpack-connection": "^2.12.4", + "automattic/jetpack-connection": "^2.12.5-alpha", "automattic/jetpack-constants": "^2.0.4", "automattic/jetpack-plans": "^0.4.8", "automattic/jetpack-status": "^3.3.4", @@ -1728,7 +1728,7 @@ "dist": { "type": "path", "url": "/tmp/jetpack-build/Automattic/jetpack-changelogger", - "reference": "b63dbd55a7b7b17895fd99381f5b25f910565687" + "reference": "83e7044acfccf3992df10a46607ac5fd7574043d" }, "require": { "php": ">=7.0", diff --git a/vendor/automattic/jetpack-blaze/build/editor.asset.php b/vendor/automattic/jetpack-blaze/build/editor.asset.php index 172243e5..ba2ebc19 100644 --- a/vendor/automattic/jetpack-blaze/build/editor.asset.php +++ b/vendor/automattic/jetpack-blaze/build/editor.asset.php @@ -1 +1 @@ - array('jetpack-script-data', 'lodash', 'react', 'react-jsx-runtime', 'wp-api-fetch', 'wp-components', 'wp-compose', 'wp-data', 'wp-edit-post', 'wp-editor', 'wp-element', 'wp-i18n', 'wp-plugins', 'wp-polyfill', 'wp-primitives', 'wp-url'), 'version' => '2d2aa2f7699a282be179'); + array('jetpack-script-data', 'lodash', 'react', 'react-jsx-runtime', 'wp-api-fetch', 'wp-components', 'wp-compose', 'wp-data', 'wp-edit-post', 'wp-editor', 'wp-element', 'wp-i18n', 'wp-plugins', 'wp-polyfill', 'wp-primitives', 'wp-url'), 'version' => 'b7b3824cb20211dce859'); diff --git a/vendor/automattic/jetpack-blaze/build/editor.js b/vendor/automattic/jetpack-blaze/build/editor.js index 3011b820..bc11d69e 100644 --- a/vendor/automattic/jetpack-blaze/build/editor.js +++ b/vendor/automattic/jetpack-blaze/build/editor.js @@ -1 +1 @@ -(()=>{var e={1074:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var s=n(9307);const i=(0,s.forwardRef)((function({icon:e,size:t=24,...n},i){return(0,s.cloneElement)(e,{width:t,height:t,...n,ref:i})}))},5381:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});var s=n(444),i=n(9501);const r=(0,i.jsx)(s.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,i.jsx)(s.Path,{d:"M19.5 4.5h-7V6h4.44l-5.97 5.97 1.06 1.06L18 7.06v4.44h1.5v-7Zm-13 1a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2v-3H17v3a.5.5 0 0 1-.5.5h-10a.5.5 0 0 1-.5-.5v-10a.5.5 0 0 1 .5-.5h3V5.5h-3Z"})})},951:(e,t,n)=>{t.formatArgs=function(t){if(t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),!this.useColors)return;const n="color: "+this.color;t.splice(1,0,n,"color: inherit");let s=0,i=0;t[0].replace(/%[a-zA-Z%]/g,(e=>{"%%"!==e&&(s++,"%c"===e&&(i=s))})),t.splice(i,0,n)},t.save=function(e){try{e?t.storage.setItem("debug",e):t.storage.removeItem("debug")}catch(e){}},t.load=function(){let e;try{e=t.storage.getItem("debug")}catch(e){}!e&&"undefined"!=typeof process&&"env"in process&&(e=process.env.DEBUG);return e},t.useColors=function(){if("undefined"!=typeof window&&window.process&&("renderer"===window.process.type||window.process.__nwjs))return!0;if("undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;return"undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)},t.storage=function(){try{return localStorage}catch(e){}}(),t.destroy=(()=>{let e=!1;return()=>{e||(e=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})(),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],t.log=console.debug||console.log||(()=>{}),e.exports=n(1741)(t);const{formatters:s}=e.exports;s.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}},1741:(e,t,n)=>{e.exports=function(e){function t(e){let n,i,r,o=null;function c(...e){if(!c.enabled)return;const s=c,i=Number(new Date),r=i-(n||i);s.diff=r,s.prev=n,s.curr=i,n=i,e[0]=t.coerce(e[0]),"string"!=typeof e[0]&&e.unshift("%O");let o=0;e[0]=e[0].replace(/%([a-zA-Z%])/g,((n,i)=>{if("%%"===n)return"%";o++;const r=t.formatters[i];if("function"==typeof r){const t=e[o];n=r.call(s,t),e.splice(o,1),o--}return n})),t.formatArgs.call(s,e);(s.log||t.log).apply(s,e)}return c.namespace=e,c.useColors=t.useColors(),c.color=t.selectColor(e),c.extend=s,c.destroy=t.destroy,Object.defineProperty(c,"enabled",{enumerable:!0,configurable:!1,get:()=>null!==o?o:(i!==t.namespaces&&(i=t.namespaces,r=t.enabled(e)),r),set:e=>{o=e}}),"function"==typeof t.init&&t.init(c),c}function s(e,n){const s=t(this.namespace+(void 0===n?":":n)+e);return s.log=this.log,s}function i(e){return e.toString().substring(2,e.toString().length-2).replace(/\.\*\?$/,"*")}return t.debug=t,t.default=t,t.coerce=function(e){if(e instanceof Error)return e.stack||e.message;return e},t.disable=function(){const e=[...t.names.map(i),...t.skips.map(i).map((e=>"-"+e))].join(",");return t.enable(""),e},t.enable=function(e){let n;t.save(e),t.namespaces=e,t.names=[],t.skips=[];const s=("string"==typeof e?e:"").split(/[\s,]+/),i=s.length;for(n=0;n{t[n]=e[n]})),t.names=[],t.skips=[],t.formatters={},t.selectColor=function(e){let n=0;for(let t=0;t{var t=1e3,n=60*t,s=60*n,i=24*s,r=7*i,o=365.25*i;function c(e,t,n,s){var i=t>=1.5*n;return Math.round(e/n)+" "+s+(i?"s":"")}e.exports=function(e,a){a=a||{};var u=typeof e;if("string"===u&&e.length>0)return function(e){if((e=String(e)).length>100)return;var c=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(!c)return;var a=parseFloat(c[1]);switch((c[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return a*o;case"weeks":case"week":case"w":return a*r;case"days":case"day":case"d":return a*i;case"hours":case"hour":case"hrs":case"hr":case"h":return a*s;case"minutes":case"minute":case"mins":case"min":case"m":return a*n;case"seconds":case"second":case"secs":case"sec":case"s":return a*t;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return a;default:return}}(e);if("number"===u&&isFinite(e))return a.long?function(e){var r=Math.abs(e);if(r>=i)return c(e,r,i,"day");if(r>=s)return c(e,r,s,"hour");if(r>=n)return c(e,r,n,"minute");if(r>=t)return c(e,r,t,"second");return e+" ms"}(e):function(e){var r=Math.abs(e);if(r>=i)return Math.round(e/i)+"d";if(r>=s)return Math.round(e/s)+"h";if(r>=n)return Math.round(e/n)+"m";if(r>=t)return Math.round(e/t)+"s";return e+"ms"}(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))}},6975:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var s=n(951);const i=n.n(s)()("dops:analytics");let r,o;window._tkq=window._tkq||[],window.ga=window.ga||function(){(window.ga.q=window.ga.q||[]).push(arguments)},window.ga.l=+new Date;const c={initialize:function(e,t,n){c.setUser(e,t),c.setSuperProps(n),c.identifyUser()},setGoogleAnalyticsEnabled:function(e,t=null){this.googleAnalyticsEnabled=e,this.googleAnalyticsKey=t},setMcAnalyticsEnabled:function(e){this.mcAnalyticsEnabled=e},setUser:function(e,t){o={ID:e,username:t}},setSuperProps:function(e){r=e},assignSuperProps:function(e){r=Object.assign(r||{},e)},mc:{bumpStat:function(e,t){const n=function(e,t){let n="";if("object"==typeof e){for(const t in e)n+="&x_"+encodeURIComponent(t)+"="+encodeURIComponent(e[t]);i("Bumping stats %o",e)}else n="&x_"+encodeURIComponent(e)+"="+encodeURIComponent(t),i('Bumping stat "%s" in group "%s"',t,e);return n}(e,t);c.mcAnalyticsEnabled&&((new Image).src=document.location.protocol+"//pixel.wp.com/g.gif?v=wpcom-no-pv"+n+"&t="+Math.random())},bumpStatWithPageView:function(e,t){const n=function(e,t){let n="";if("object"==typeof e){for(const t in e)n+="&"+encodeURIComponent(t)+"="+encodeURIComponent(e[t]);i("Built stats %o",e)}else n="&"+encodeURIComponent(e)+"="+encodeURIComponent(t),i('Built stat "%s" in group "%s"',t,e);return n}(e,t);c.mcAnalyticsEnabled&&((new Image).src=document.location.protocol+"//pixel.wp.com/g.gif?v=wpcom"+n+"&t="+Math.random())}},pageView:{record:function(e,t){c.tracks.recordPageView(e),c.ga.recordPageView(e,t)}},purchase:{record:function(e,t,n,s,i,r,o){c.ga.recordPurchase(e,t,n,s,i,r,o)}},tracks:{recordEvent:function(e,t){t=t||{},0===e.indexOf("akismet_")||0===e.indexOf("jetpack_")?(r&&(i("- Super Props: %o",r),t=Object.assign(t,r)),i('Record event "%s" called with props %s',e,JSON.stringify(t)),window._tkq.push(["recordEvent",e,t])):i('- Event name must be prefixed by "akismet_" or "jetpack_"')},recordJetpackClick:function(e){const t="object"==typeof e?e:{target:e};c.tracks.recordEvent("jetpack_wpa_click",t)},recordPageView:function(e){c.tracks.recordEvent("akismet_page_view",{path:e})},setOptOut:function(e){i("Pushing setOptOut: %o",e),window._tkq.push(["setOptOut",e])}},ga:{initialized:!1,initialize:function(){let e={};c.ga.initialized||(o&&(e={userId:"u-"+o.ID}),window.ga("create",this.googleAnalyticsKey,"auto",e),c.ga.initialized=!0)},recordPageView:function(e,t){c.ga.initialize(),i("Recording Page View ~ [URL: "+e+"] [Title: "+t+"]"),this.googleAnalyticsEnabled&&(window.ga("set","page",e),window.ga("send",{hitType:"pageview",page:e,title:t}))},recordEvent:function(e,t,n,s){c.ga.initialize();let r="Recording Event ~ [Category: "+e+"] [Action: "+t+"]";void 0!==n&&(r+=" [Option Label: "+n+"]"),void 0!==s&&(r+=" [Option Value: "+s+"]"),i(r),this.googleAnalyticsEnabled&&window.ga("send","event",e,t,n,s)},recordPurchase:function(e,t,n,s,i,r,o){window.ga("require","ecommerce"),window.ga("ecommerce:addTransaction",{id:e,revenue:s,currency:o}),window.ga("ecommerce:addItem",{id:e,name:t,sku:n,price:i,quantity:r}),window.ga("ecommerce:send")}},identifyUser:function(){o&&window._tkq.push(["identifyUser",o.ID,o.username])},setProperties:function(e){window._tkq.push(["setProperties",e])},clearedIdentity:function(){window._tkq.push(["clearIdentity"])}},a=c},4743:(e,t,n)=>{"use strict";n.d(t,{ZP:()=>l});var s=n(1132),i=n(6483);function r(e){class t extends Error{constructor(...t){super(...t),this.name=e}}return t}const o=r("JsonParseError"),c=r("JsonParseAfterRedirectError"),a=r("Api404Error"),u=r("Api404AfterRedirectError"),d=r("FetchNetworkError");const l=new function(e,t){let n=e,r=e,o={"X-WP-Nonce":t},c={credentials:"same-origin",headers:o},a={method:"post",credentials:"same-origin",headers:Object.assign({},o,{"Content-type":"application/json"})},u=function(e){const t=e.split("?"),n=t.length>1?t[1]:"",s=n.length?n.split("&"):[];return s.push("_cacheBuster="+(new Date).getTime()),t[0]+"?"+s.join("&")};const d={setApiRoot(e){n=e},setWpcomOriginApiUrl(e){r=e},setApiNonce(e){o={"X-WP-Nonce":e},c={credentials:"same-origin",headers:o},a={method:"post",credentials:"same-origin",headers:Object.assign({},o,{"Content-type":"application/json"})}},setCacheBusterCallback:e=>{u=e},registerSite:(e,t,i)=>{const r={registration_nonce:e,no_iframe:!0};return(0,s.jetpackConfigHas)("consumer_slug")&&(r.plugin_slug=(0,s.jetpackConfigGet)("consumer_slug")),null!==t&&(r.redirect_uri=t),i&&(r.from=i),h(`${n}jetpack/v4/connection/register`,a,{body:JSON.stringify(r)}).then(p).then(g)},fetchAuthorizationUrl:e=>l((0,i.addQueryArgs)(`${n}jetpack/v4/connection/authorize_url`,{no_iframe:"1",redirect_uri:e}),c).then(p).then(g),fetchSiteConnectionData:()=>l(`${n}jetpack/v4/connection/data`,c).then(g),fetchSiteConnectionStatus:()=>l(`${n}jetpack/v4/connection`,c).then(g),fetchSiteConnectionTest:()=>l(`${n}jetpack/v4/connection/test`,c).then(p).then(g),fetchUserConnectionData:()=>l(`${n}jetpack/v4/connection/data`,c).then(g),fetchUserTrackingSettings:()=>l(`${n}jetpack/v4/tracking/settings`,c).then(p).then(g),updateUserTrackingSettings:e=>h(`${n}jetpack/v4/tracking/settings`,a,{body:JSON.stringify(e)}).then(p).then(g),disconnectSite:()=>h(`${n}jetpack/v4/connection`,a,{body:JSON.stringify({isActive:!1})}).then(p).then(g),fetchConnectUrl:()=>l(`${n}jetpack/v4/connection/url`,c).then(p).then(g),unlinkUser:()=>h(`${n}jetpack/v4/connection/user`,a,{body:JSON.stringify({linked:!1})}).then(p).then(g),reconnect:()=>h(`${n}jetpack/v4/connection/reconnect`,a).then(p).then(g),fetchConnectedPlugins:()=>l(`${n}jetpack/v4/connection/plugins`,c).then(p).then(g),setHasSeenWCConnectionModal:()=>h(`${n}jetpack/v4/seen-wc-connection-modal`,a).then(p).then(g),fetchModules:()=>l(`${n}jetpack/v4/module/all`,c).then(p).then(g),fetchModule:e=>l(`${n}jetpack/v4/module/${e}`,c).then(p).then(g),activateModule:e=>h(`${n}jetpack/v4/module/${e}/active`,a,{body:JSON.stringify({active:!0})}).then(p).then(g),deactivateModule:e=>h(`${n}jetpack/v4/module/${e}/active`,a,{body:JSON.stringify({active:!1})}),updateModuleOptions:(e,t)=>h(`${n}jetpack/v4/module/${e}`,a,{body:JSON.stringify(t)}).then(p).then(g),updateSettings:e=>h(`${n}jetpack/v4/settings`,a,{body:JSON.stringify(e)}).then(p).then(g),getProtectCount:()=>l(`${n}jetpack/v4/module/protect/data`,c).then(p).then(g),resetOptions:e=>h(`${n}jetpack/v4/options/${e}`,a,{body:JSON.stringify({reset:!0})}).then(p).then(g),activateVaultPress:()=>h(`${n}jetpack/v4/plugins`,a,{body:JSON.stringify({slug:"vaultpress",status:"active"})}).then(p).then(g),getVaultPressData:()=>l(`${n}jetpack/v4/module/vaultpress/data`,c).then(p).then(g),installPlugin:(e,t)=>{const s={slug:e,status:"active"};return t&&(s.source=t),h(`${n}jetpack/v4/plugins`,a,{body:JSON.stringify(s)}).then(p).then(g)},activateAkismet:()=>h(`${n}jetpack/v4/plugins`,a,{body:JSON.stringify({slug:"akismet",status:"active"})}).then(p).then(g),getAkismetData:()=>l(`${n}jetpack/v4/module/akismet/data`,c).then(p).then(g),checkAkismetKey:()=>l(`${n}jetpack/v4/module/akismet/key/check`,c).then(p).then(g),checkAkismetKeyTyped:e=>h(`${n}jetpack/v4/module/akismet/key/check`,a,{body:JSON.stringify({api_key:e})}).then(p).then(g),fetchStatsData:e=>l(function(e){let t=`${n}jetpack/v4/module/stats/data`;-1!==t.indexOf("?")?t+=`&range=${encodeURIComponent(e)}`:t+=`?range=${encodeURIComponent(e)}`;return t}(e),c).then(p).then(g).then(m),getPluginUpdates:()=>l(`${n}jetpack/v4/updates/plugins`,c).then(p).then(g),getPlans:()=>l(`${n}jetpack/v4/plans`,c).then(p).then(g),fetchSettings:()=>l(`${n}jetpack/v4/settings`,c).then(p).then(g),updateSetting:e=>h(`${n}jetpack/v4/settings`,a,{body:JSON.stringify(e)}).then(p).then(g),fetchSiteData:()=>l(`${n}jetpack/v4/site`,c).then(p).then(g).then((e=>JSON.parse(e.data))),fetchSiteFeatures:()=>l(`${n}jetpack/v4/site/features`,c).then(p).then(g).then((e=>JSON.parse(e.data))),fetchSiteProducts:()=>l(`${n}jetpack/v4/site/products`,c).then(p).then(g),fetchSitePurchases:()=>l(`${n}jetpack/v4/site/purchases`,c).then(p).then(g).then((e=>JSON.parse(e.data))),fetchSiteBenefits:()=>l(`${n}jetpack/v4/site/benefits`,c).then(p).then(g).then((e=>JSON.parse(e.data))),fetchSiteDiscount:()=>l(`${n}jetpack/v4/site/discount`,c).then(p).then(g).then((e=>e.data)),fetchSetupQuestionnaire:()=>l(`${n}jetpack/v4/setup/questionnaire`,c).then(p).then(g),fetchRecommendationsData:()=>l(`${n}jetpack/v4/recommendations/data`,c).then(p).then(g),fetchRecommendationsProductSuggestions:()=>l(`${n}jetpack/v4/recommendations/product-suggestions`,c).then(p).then(g),fetchRecommendationsUpsell:()=>l(`${n}jetpack/v4/recommendations/upsell`,c).then(p).then(g),fetchRecommendationsConditional:()=>l(`${n}jetpack/v4/recommendations/conditional`,c).then(p).then(g),saveRecommendationsData:e=>h(`${n}jetpack/v4/recommendations/data`,a,{body:JSON.stringify({data:e})}).then(p),fetchProducts:()=>l(`${n}jetpack/v4/products`,c).then(p).then(g),fetchRewindStatus:()=>l(`${n}jetpack/v4/rewind`,c).then(p).then(g).then((e=>JSON.parse(e.data))),fetchScanStatus:()=>l(`${n}jetpack/v4/scan`,c).then(p).then(g).then((e=>JSON.parse(e.data))),dismissJetpackNotice:e=>h(`${n}jetpack/v4/notice/${e}`,a,{body:JSON.stringify({dismissed:!0})}).then(p).then(g),fetchPluginsData:()=>l(`${n}jetpack/v4/plugins`,c).then(p).then(g),fetchIntroOffers:()=>l(`${n}jetpack/v4/intro-offers`,c).then(p).then(g),fetchVerifySiteGoogleStatus:e=>l(null!==e?`${n}jetpack/v4/verify-site/google/${e}`:`${n}jetpack/v4/verify-site/google`,c).then(p).then(g),verifySiteGoogle:e=>h(`${n}jetpack/v4/verify-site/google`,a,{body:JSON.stringify({keyring_id:e})}).then(p).then(g),submitSurvey:e=>h(`${n}jetpack/v4/marketing/survey`,a,{body:JSON.stringify(e)}).then(p).then(g),saveSetupQuestionnaire:e=>h(`${n}jetpack/v4/setup/questionnaire`,a,{body:JSON.stringify(e)}).then(p).then(g),updateLicensingError:e=>h(`${n}jetpack/v4/licensing/error`,a,{body:JSON.stringify(e)}).then(p).then(g),updateLicenseKey:e=>h(`${n}jetpack/v4/licensing/set-license`,a,{body:JSON.stringify({license:e})}).then(p).then(g),getUserLicensesCounts:()=>l(`${n}jetpack/v4/licensing/user/counts`,c).then(p).then(g),getUserLicenses:()=>l(`${n}jetpack/v4/licensing/user/licenses`,c).then(p).then(g),updateLicensingActivationNoticeDismiss:e=>h(`${n}jetpack/v4/licensing/user/activation-notice-dismiss`,a,{body:JSON.stringify({last_detached_count:e})}).then(p).then(g),updateRecommendationsStep:e=>h(`${n}jetpack/v4/recommendations/step`,a,{body:JSON.stringify({step:e})}).then(p),confirmIDCSafeMode:()=>h(`${n}jetpack/v4/identity-crisis/confirm-safe-mode`,a).then(p),startIDCFresh:e=>h(`${n}jetpack/v4/identity-crisis/start-fresh`,a,{body:JSON.stringify({redirect_uri:e})}).then(p).then(g),migrateIDC:()=>h(`${n}jetpack/v4/identity-crisis/migrate`,a).then(p),attachLicenses:e=>h(`${n}jetpack/v4/licensing/attach-licenses`,a,{body:JSON.stringify({licenses:e})}).then(p).then(g),fetchSearchPlanInfo:()=>l(`${r}jetpack/v4/search/plan`,c).then(p).then(g),fetchSearchSettings:()=>l(`${r}jetpack/v4/search/settings`,c).then(p).then(g),updateSearchSettings:e=>h(`${r}jetpack/v4/search/settings`,a,{body:JSON.stringify(e)}).then(p).then(g),fetchSearchStats:()=>l(`${r}jetpack/v4/search/stats`,c).then(p).then(g),fetchWafSettings:()=>l(`${n}jetpack/v4/waf`,c).then(p).then(g),updateWafSettings:e=>h(`${n}jetpack/v4/waf`,a,{body:JSON.stringify(e)}).then(p).then(g),fetchWordAdsSettings:()=>l(`${n}jetpack/v4/wordads/settings`,c).then(p).then(g),updateWordAdsSettings:e=>h(`${n}jetpack/v4/wordads/settings`,a,{body:JSON.stringify(e)}),fetchSearchPricing:()=>l(`${r}jetpack/v4/search/pricing`,c).then(p).then(g),fetchMigrationStatus:()=>l(`${n}jetpack/v4/migration/status`,c).then(p).then(g),fetchBackupUndoEvent:()=>l(`${n}jetpack/v4/site/backup/undo-event`,c).then(p).then(g),fetchBackupPreflightStatus:()=>l(`${n}jetpack/v4/site/backup/preflight`,c).then(p).then(g)};function l(e,t){return fetch(u(e),t)}function h(e,t,n){return fetch(e,Object.assign({},t,n)).catch(f)}function m(e){return e.general&&void 0===e.general.response||e.week&&void 0===e.week.response||e.month&&void 0===e.month.response?e:{}}Object.assign(this,d)};function p(e){return e.status>=200&&e.status<300?e:404===e.status?new Promise((()=>{throw e.redirected?new u(e.redirected):new a})):e.json().catch((e=>h(e))).then((t=>{const n=new Error(`${t.message} (Status ${e.status})`);throw n.response=t,n.name="ApiError",n}))}function g(e){return e.json().catch((t=>h(t,e.redirected,e.url)))}function h(e,t,n){throw t?new c(n):new o}function f(){throw new d}},1132:(e,t,n)=>{let s={};try{s=n(4647)}catch{console.error("jetpackConfig is missing in your webpack config file. See @automattic/jetpack-config"),s={missingConfig:!0}}const i=e=>s.hasOwnProperty(e);e.exports={jetpackConfigHas:i,jetpackConfigGet:e=>{if(!i(e))throw'This app requires the "'+e+'" Jetpack Config to be defined in your webpack configuration file. See details in @automattic/jetpack-config package docs.';return s[e]}}},1294:(e,t,n)=>{"use strict";n.d(t,{Z:()=>u});var s=n(4743),i=n(1732),r=n(9818),o=n(9196),c=n(428);const a=window?.JP_CONNECTION_INITIAL_STATE||(0,i.getScriptData)()?.connection||{},u=({registrationNonce:e=a.registrationNonce,apiRoot:t=a.apiRoot,apiNonce:n=a.apiNonce,redirectUri:i,autoTrigger:u,from:d,skipUserConnection:l}={})=>{const{registerSite:p,connectUser:g,refreshConnectedPlugins:h}=(0,r.useDispatch)(c.t),f=(0,r.useSelect)((e=>e(c.t).getRegistrationError())),{siteIsRegistering:m,userIsConnecting:C,userConnectionData:y,connectedPlugins:w,connectionErrors:v,isRegistered:k,isUserConnected:S,hasConnectedOwner:E,isOfflineMode:b}=(0,r.useSelect)((e=>({siteIsRegistering:e(c.t).getSiteIsRegistering(),userIsConnecting:e(c.t).getUserIsConnecting(),userConnectionData:e(c.t).getUserConnectionData(),connectedPlugins:e(c.t).getConnectedPlugins(),connectionErrors:e(c.t).getConnectionErrors(),isOfflineMode:e(c.t).getIsOfflineMode(),...e(c.t).getConnectionStatus()}))),_=()=>l?i?(window.location=i,Promise.resolve(i)):Promise.resolve():g({from:d,redirectUri:i}),j=t=>(t&&t.preventDefault(),k?_():p({registrationNonce:e,redirectUri:i,from:d}).then((()=>_())));return(0,o.useEffect)((()=>{s.ZP.setApiRoot(t),s.ZP.setApiNonce(n)}),[t,n]),(0,o.useEffect)((()=>{!u||m||C||j()}),[]),{handleRegisterSite:j,handleConnectUser:_,refreshConnectedPlugins:h,isRegistered:k,isUserConnected:S,siteIsRegistering:m,userIsConnecting:C,registrationError:f,userConnectionData:y,hasConnectedOwner:E,connectedPlugins:w,connectionErrors:v,isOfflineMode:b}}},7523:(e,t,n)=>{"use strict";n.d(t,{LI:()=>r,N4:()=>c,Qo:()=>l,T1:()=>u,TS:()=>d,ZP:()=>S,b5:()=>g,i6:()=>i,qJ:()=>h,qV:()=>a,r7:()=>o,wQ:()=>p});var s=n(4743);const i="SET_CONNECTION_STATUS",r="SET_CONNECTION_STATUS_IS_FETCHING",o="SET_SITE_IS_REGISTERING",c="SET_USER_IS_CONNECTING",a="SET_REGISTRATION_ERROR",u="CLEAR_REGISTRATION_ERROR",d="SET_AUTHORIZATION_URL",l="DISCONNECT_USER_SUCCESS",p="SET_CONNECTED_PLUGINS",g="SET_CONNECTION_ERRORS",h="SET_IS_OFFLINE_MODE",f=e=>({type:i,connectionStatus:e}),m=e=>({type:o,isRegistering:e}),C=e=>({type:c,isConnecting:e}),y=e=>({type:a,registrationError:e}),w=()=>({type:u}),v=e=>({type:d,authorizationUrl:e}),k=e=>({type:p,connectedPlugins:e});const S={setConnectionStatus:f,setConnectionStatusIsFetching:e=>({type:r,isFetching:e}),fetchConnectionStatus:()=>({type:"FETCH_CONNECTION_STATUS"}),fetchAuthorizationUrl:e=>({type:"FETCH_AUTHORIZATION_URL",redirectUri:e}),setSiteIsRegistering:m,setUserIsConnecting:C,setRegistrationError:y,clearRegistrationError:w,setAuthorizationUrl:v,registerSite:function*({registrationNonce:e,redirectUri:t,from:n=""}){yield w(),yield m(!0);try{const s=yield{type:"REGISTER_SITE",registrationNonce:e,redirectUri:t,from:n};return yield f({isRegistered:!0}),yield v(s.authorizeUrl),yield m(!1),Promise.resolve(s)}catch(e){return yield y(e),yield m(!1),Promise.reject(e)}},connectUser:function*({from:e,redirectFunc:t,redirectUri:n}={}){yield C(!0),yield{type:"CONNECT_USER",from:e,redirectFunc:t,redirectUri:n}},disconnectUserSuccess:()=>({type:l}),setConnectedPlugins:k,refreshConnectedPlugins:()=>async({dispatch:e})=>await new Promise((t=>s.ZP.fetchConnectedPlugins().then((n=>{e(k(n)),t(n)})))),setConnectionErrors:e=>({type:g,connectionErrors:e}),setIsOfflineMode:e=>({type:h,isOfflineMode:e})}},1432:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var s=n(4743),i=n(9818),r=n(7057);const o={FETCH_AUTHORIZATION_URL:({redirectUri:e})=>s.ZP.fetchAuthorizationUrl(e),REGISTER_SITE:({registrationNonce:e,redirectUri:t,from:n})=>s.ZP.registerSite(e,t,n),CONNECT_USER:(0,i.createRegistryControl)((({resolveSelect:e})=>({from:t,redirectFunc:n,redirectUri:s}={})=>new Promise(((i,o)=>{e(r.Z).getAuthorizationUrl(s).then((e=>{const s=n||(e=>window.location.assign(e)),r=new URL(e);t&&r.searchParams.set("from",encodeURIComponent(t));const o=r.toString();s(o),i(o)})).catch((e=>{o(e)}))}))))}},1479:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});var s=n(9818),i=n(7523);const r=(0,s.combineReducers)({connectionStatus:(e={},t)=>{switch(t.type){case i.i6:return{...e,...t.connectionStatus};case i.Qo:return{...e,isUserConnected:!1}}return e},connectionStatusIsFetching:(e=!1,t)=>t.type===i.LI?t.isFetching:e,siteIsRegistering:(e=!1,t)=>t.type===i.r7?t.isRegistering:e,userIsConnecting:(e=!1,t)=>t.type===i.N4?t.isConnecting:e,registrationError:(e,t)=>{switch(t.type){case i.T1:return!1;case i.qV:return t.registrationError;default:return e}},authorizationUrl:(e,t)=>t.type===i.TS?t.authorizationUrl:e,userConnectionData:(e,t)=>(t.type,e),connectedPlugins:(e={},t)=>t.type===i.wQ?t.connectedPlugins:e,connectionErrors:(e={},t)=>t.type===i.b5?t.connectionErrors:e,isOfflineMode:(e=!1,t)=>t.type===i.qJ?t.isConnecting:e})},7728:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var s=n(9818),i=n(7523),r=n(7057);const o={...{getAuthorizationUrl:{isFulfilled:(e,...t)=>{const n=Boolean(e.authorizationUrl),i=(0,s.select)(r.Z).hasFinishedResolution("getAuthorizationUrl",t);return n&&!i&&(0,s.dispatch)(r.Z).finishResolution("getAuthorizationUrl",t),n},*fulfill(e){const t=yield i.ZP.fetchAuthorizationUrl(e);yield i.ZP.setAuthorizationUrl(t.authorizeUrl)}}}}},2725:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});const s={...{getConnectionStatus:e=>e.connectionStatus||{},getConnectionStatusIsFetching:()=>!1,getSiteIsRegistering:e=>e.siteIsRegistering||!1,getUserIsConnecting:e=>e.userIsConnecting||!1,getRegistrationError:e=>e.registrationError||!1,getAuthorizationUrl:e=>e.authorizationUrl||!1,getUserConnectionData:e=>e.userConnectionData||!1,getConnectedPlugins:e=>e.connectedPlugins||[],getConnectionErrors:e=>e.connectionErrors||[],getIsOfflineMode:e=>e.isOfflineMode||!1,getWpcomUser:e=>e?.userConnectionData?.currentUser?.wpcomUser,getBlogId:e=>e?.userConnectionData?.currentUser?.blogId}}},3535:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});var s=n(9818);class i{static store=null;static mayBeInit(e,t){null===i.store&&(i.store=(0,s.createReduxStore)(e,t),(0,s.register)(i.store))}}const r=i},7057:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});const s="jetpack-connection"},428:(e,t,n)=>{"use strict";n.d(t,{t:()=>d.Z});var s=n(1732),i=n(7523),r=n(1432),o=n(1479),c=n(7728),a=n(2725),u=n(3535),d=n(7057);const l=window.JP_CONNECTION_INITIAL_STATE||(0,s.getScriptData)()?.connection;l||console.error("Jetpack Connection package: Initial state is missing. Check documentation to see how to use the Connection composer package to set up the initial state."),u.Z.mayBeInit(d.Z,{__experimentalUseThunks:!0,reducer:o.Z,actions:i.ZP,selectors:a.Z,resolvers:c.Z,controls:r.Z,initialState:l||{}})},3419:(e,t,n)=>{"use strict";n.d(t,{z$:()=>s.Z});n(6714),n(354),n(5404);var s=n(1053);n(1380),n(6342),n(6959),n(9058)},6342:(e,t,n)=>{"use strict";n(9196)},6959:(e,t,n)=>{"use strict";n(9307)},1053:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var s=n(6975),i=n(1294),r=n(9307);const{tracks:o}=s.Z,{recordEvent:c}=o,a=({pageViewEventName:e=null,pageViewNamespace:t="jetpack",pageViewSuffix:n="page_view",pageViewEventProperties:a={}}={})=>{const[u,d]=(0,r.useState)(!1),{isUserConnected:l,isRegistered:p,userConnectionData:g={}}=(0,i.Z)(),{wpcomUser:{login:h,ID:f}={},blogId:m}=g.currentUser||{},C=(0,r.useCallback)((async(e,t={})=>{l&&f&&h&&c(e,t)}),[l,f,h]);return(0,r.useEffect)((()=>{l&&f&&h&&m&&s.Z.initialize(f,h,{blog_id:m})}),[m,f,h,l]),(0,r.useEffect)((()=>{const s=e?`${t}_${e}_${n}`:null;p&&s&&(u||(C(s,a),d(!0)))}),[u,t,e,n,p,a,C]),{recordEvent:C,tracks:o}}},1380:(e,t,n)=>{"use strict";n(9818),n(9307),n(9058)},4166:(e,t,n)=>{"use strict";n.d(t,{ZP:()=>p,rW:()=>l});var s=n(9818),i=n(9505),r=n(2162),o=n(9058);const c="SET_JETPACK_MODULES",a="SET_MODULE_UPDATING";function u(e){return l({isLoading:e})}function d(e,t){return{type:a,name:e,isUpdating:t}}function l(e){return{type:c,options:e}}const p={updateJetpackModuleStatus:function*(e){try{yield d(e.name,!0),yield(0,r.zL)(e);const t=yield(0,r.Bs)();return yield l({data:t}),!0}catch(e){const t=(0,s.select)(o.p).getJetpackModules();return yield l(t),!1}finally{yield d(e.name,!1)}},setJetpackModules:l,fetchModules:function*(){if((0,i.Wp)())return!0;try{yield u(!0);const e=yield(0,r.Bs)();return yield l({data:e}),!0}catch(e){const t=(0,s.select)(o.p).getJetpackModules();return yield l(t),!1}finally{yield u(!1)}}}},2162:(e,t,n)=>{"use strict";n.d(t,{Bs:()=>c,ZP:()=>u,zL:()=>a});var s=n(6989),i=n.n(s);const r="FETCH_JETPACK_MODULES",o="UPDATE_JETPACK_MODULE_STATUS",c=()=>({type:r}),a=e=>({type:o,settings:e}),u={[r]:function(){return i()({path:"/jetpack/v4/module/all",method:"GET"})},[o]:function({settings:e}){return i()({path:`/jetpack/v4/module/${e.name}/active`,method:"POST",data:{active:e.active}})}}},9058:(e,t,n)=>{"use strict";n.d(t,{p:()=>u});var s=n(9818),i=n(4166),r=n(2162),o=n(2469),c=n(5133),a=n(3524);const u="jetpack-modules",d=(0,s.createReduxStore)(u,{reducer:o.Z,actions:i.ZP,controls:r.ZP,resolvers:c.Z,selectors:a.Z});(0,s.register)(d);const l=window?.Initial_State?.getModules||window?.Jetpack_Editor_Initial_State?.modules||null;null!==l&&(0,s.dispatch)(u).setJetpackModules({data:{...l}})},2469:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});const s={isLoading:!1,isUpdating:{},data:{}},i=(e=s,t)=>{switch(t.type){case"SET_JETPACK_MODULES":return{...e,...t.options};case"SET_MODULE_UPDATING":return{...e,isUpdating:{...e.isUpdating,[t.name]:t.isUpdating}}}return e}},5133:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});var s=n(4166),i=n(2162);const r={getJetpackModules:function*(){try{const e=yield(0,i.Bs)();if(e)return(0,s.rW)({data:e})}catch(e){console.error(e)}}}},3524:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var s=n(9505);const i={getJetpackModules:e=>e.data,isModuleActive:(e,t)=>(0,s.Wp)()||(e?.data?.[t]?.activated??!1),areModulesLoading:e=>e.isLoading??!1,isModuleUpdating:(e,t)=>e?.isUpdating?.[t]??!1}},5404:(e,t,n)=>{"use strict";var s=n(5736);n(6483),n(2819);const __=s.__;__("Upgrade your plan to use video covers","jetpack-blaze"),__("Upgrade your plan to upload audio","jetpack-blaze")},6714:(e,t,n)=>{"use strict";n(8817)},9505:(e,t,n)=>{"use strict";function s(){return"object"==typeof window&&"string"==typeof window._currentSiteType?window._currentSiteType:null}function i(){return"simple"===s()}n.d(t,{Wp:()=>i})},354:(e,t,n)=>{"use strict";n(2674),n(4333)},6128:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var s=n(5609);function i(){return React.createElement(s.SVG,{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},React.createElement(s.G,{clipPath:"url(#clip0_4728_49296)"},React.createElement("circle",{cx:"12",cy:"12",r:"12",fill:"#D9D9D9"}),React.createElement("circle",{cx:"12",cy:"12",r:"12",fill:"black"}),React.createElement(s.Path,{d:"M14.8665 6.68544C14.7139 6.50468 14.4652 6.43826 14.2436 6.52015C14.0224 6.60204 13.875 6.81412 13.875 7.05149V8.71684C13.875 9.02893 13.6226 9.2829 13.3125 9.2829C13.0024 9.2829 12.75 9.02893 12.75 8.71684V4.72989C12.75 4.56762 12.681 4.41365 12.5602 4.3061C12.4354 4.19515 12.3622 4.13288 12.3622 4.13288C12.1537 3.95627 11.8485 3.95552 11.6389 4.13175C11.4086 4.32572 6 8.9327 6 13.434C6 16.7632 8.69175 19.472 12 19.472C15.3082 19.472 18 16.7632 18 13.434C18 10.9267 16.296 8.38022 14.8665 6.68544ZM12.0728 18.5274C11.508 18.544 10.9699 18.3259 10.5259 17.9742C8.3535 16.2537 10.3856 13.4982 11.4469 12.3106C11.7435 11.9789 12.2584 11.9807 12.555 12.3125C13.2742 13.1178 14.4375 14.6416 14.4375 16.0756C14.4375 17.4059 13.3853 18.4885 12.0728 18.5274Z",fill:"white"})))}},4647:e=>{"use strict";if(void 0==={consumer_slug:"jetpack-blaze"}){var t=new Error('Cannot find module \'{"consumer_slug":"jetpack-blaze"}\'');throw t.code="MODULE_NOT_FOUND",t}e.exports={consumer_slug:"jetpack-blaze"}},1732:e=>{"use strict";e.exports=window.JetpackScriptDataModule},9196:e=>{"use strict";e.exports=window.React},9501:e=>{"use strict";e.exports=window.ReactJSXRuntime},2819:e=>{"use strict";e.exports=window.lodash},6989:e=>{"use strict";e.exports=window.wp.apiFetch},5609:e=>{"use strict";e.exports=window.wp.components},4333:e=>{"use strict";e.exports=window.wp.compose},9818:e=>{"use strict";e.exports=window.wp.data},2067:e=>{"use strict";e.exports=window.wp.editPost},2238:e=>{"use strict";e.exports=window.wp.editor},9307:e=>{"use strict";e.exports=window.wp.element},5736:e=>{"use strict";e.exports=window.wp.i18n},8817:e=>{"use strict";e.exports=window.wp.plugins},444:e=>{"use strict";e.exports=window.wp.primitives},6483:e=>{"use strict";e.exports=window.wp.url},2674:e=>{function t(){return e.exports=t=Object.assign?Object.assign.bind():function(e){for(var t=1;t{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var s in t)n.o(t,s)&&!n.o(e,s)&&Object.defineProperty(e,s,{enumerable:!0,get:t[s]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{"use strict";var e=n(3419),t=n(5609),s=n(4333),i=n(9818),r=n(2067),o=n(2238),c=n(9307),a=n(5736),u=n(1074),d=n(5381),l=n(8817),p=n(6128);const __=a.__,g=()=>{const{blazeUrlTemplate:n}=window?.blazeInitialState||{},{tracks:a}=(0,e.z$)(),l=(0,c.useCallback)((()=>a.recordEvent("jetpack_editor_blaze_publish_click")),[a]),{isPostPublished:g,isPublishingPost:h,postId:f,postType:m,postVisibility:C}=(0,i.useSelect)((e=>({isPostPublished:e(o.store).isCurrentPostPublished(),isPublishingPost:e(o.store).isPublishingPost(),postId:e(o.store).getCurrentPostId(),postType:e(o.store).getCurrentPostType(),postVisibility:e(o.store).getEditedPostVisibility()}))),y=(0,s.usePrevious)(h),w={name:"blaze-panel",title:__("Promote with Blaze","jetpack-blaze"),className:"blaze-panel",icon:React.createElement(p.Z,null),initialOpen:!0},v=n.link.replace("__POST_ID__",f),k=()=>!!["page","post","product"].includes(m)&&!(!g||"password"===C||"private"===C);if((0,c.useEffect)((()=>{y&&!h&&k()&&g&&a.recordEvent("jetpack_editor_blaze_post_publish_panel_view")}),[a,h,g,y]),!k())return null;const S={page:__("Blaze this page","jetpack-blaze"),post:__("Blaze this post","jetpack-blaze"),product:__("Blaze this product","jetpack-blaze")}[m]??__("Blaze this post","jetpack-blaze");return React.createElement(r.PluginPostPublishPanel,w,React.createElement(t.PanelRow,null,React.createElement("p",null,__("Reach a larger audience boosting the content to the WordPress.com community of blogs and sites.","jetpack-blaze"))),React.createElement("div",{role:"link",className:"post-publish-panel__postpublish-buttons",tabIndex:0,onClick:l,onKeyDown:l},React.createElement(t.Button,{variant:"secondary",href:v,target:"_top"},S,n.external&&React.createElement(u.Z,{icon:d.Z,className:"blaze-panel-outbound-link__external_icon"}))))};(0,l.getPlugin)("jetpack-blaze")||(0,l.registerPlugin)("jetpack-blaze",{render:g})})()})(); \ No newline at end of file +(()=>{var e={1074:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var s=n(9307);const i=(0,s.forwardRef)((function({icon:e,size:t=24,...n},i){return(0,s.cloneElement)(e,{width:t,height:t,...n,ref:i})}))},5381:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});var s=n(444),i=n(9501);const r=(0,i.jsx)(s.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,i.jsx)(s.Path,{d:"M19.5 4.5h-7V6h4.44l-5.97 5.97 1.06 1.06L18 7.06v4.44h1.5v-7Zm-13 1a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2v-3H17v3a.5.5 0 0 1-.5.5h-10a.5.5 0 0 1-.5-.5v-10a.5.5 0 0 1 .5-.5h3V5.5h-3Z"})})},951:(e,t,n)=>{t.formatArgs=function(t){if(t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),!this.useColors)return;const n="color: "+this.color;t.splice(1,0,n,"color: inherit");let s=0,i=0;t[0].replace(/%[a-zA-Z%]/g,(e=>{"%%"!==e&&(s++,"%c"===e&&(i=s))})),t.splice(i,0,n)},t.save=function(e){try{e?t.storage.setItem("debug",e):t.storage.removeItem("debug")}catch(e){}},t.load=function(){let e;try{e=t.storage.getItem("debug")}catch(e){}!e&&"undefined"!=typeof process&&"env"in process&&(e=process.env.DEBUG);return e},t.useColors=function(){if("undefined"!=typeof window&&window.process&&("renderer"===window.process.type||window.process.__nwjs))return!0;if("undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;return"undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)},t.storage=function(){try{return localStorage}catch(e){}}(),t.destroy=(()=>{let e=!1;return()=>{e||(e=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})(),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],t.log=console.debug||console.log||(()=>{}),e.exports=n(1741)(t);const{formatters:s}=e.exports;s.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}},1741:(e,t,n)=>{e.exports=function(e){function t(e){let n,i,r,o=null;function c(...e){if(!c.enabled)return;const s=c,i=Number(new Date),r=i-(n||i);s.diff=r,s.prev=n,s.curr=i,n=i,e[0]=t.coerce(e[0]),"string"!=typeof e[0]&&e.unshift("%O");let o=0;e[0]=e[0].replace(/%([a-zA-Z%])/g,((n,i)=>{if("%%"===n)return"%";o++;const r=t.formatters[i];if("function"==typeof r){const t=e[o];n=r.call(s,t),e.splice(o,1),o--}return n})),t.formatArgs.call(s,e);(s.log||t.log).apply(s,e)}return c.namespace=e,c.useColors=t.useColors(),c.color=t.selectColor(e),c.extend=s,c.destroy=t.destroy,Object.defineProperty(c,"enabled",{enumerable:!0,configurable:!1,get:()=>null!==o?o:(i!==t.namespaces&&(i=t.namespaces,r=t.enabled(e)),r),set:e=>{o=e}}),"function"==typeof t.init&&t.init(c),c}function s(e,n){const s=t(this.namespace+(void 0===n?":":n)+e);return s.log=this.log,s}function i(e){return e.toString().substring(2,e.toString().length-2).replace(/\.\*\?$/,"*")}return t.debug=t,t.default=t,t.coerce=function(e){if(e instanceof Error)return e.stack||e.message;return e},t.disable=function(){const e=[...t.names.map(i),...t.skips.map(i).map((e=>"-"+e))].join(",");return t.enable(""),e},t.enable=function(e){let n;t.save(e),t.namespaces=e,t.names=[],t.skips=[];const s=("string"==typeof e?e:"").split(/[\s,]+/),i=s.length;for(n=0;n{t[n]=e[n]})),t.names=[],t.skips=[],t.formatters={},t.selectColor=function(e){let n=0;for(let t=0;t{var t=1e3,n=60*t,s=60*n,i=24*s,r=7*i,o=365.25*i;function c(e,t,n,s){var i=t>=1.5*n;return Math.round(e/n)+" "+s+(i?"s":"")}e.exports=function(e,a){a=a||{};var u=typeof e;if("string"===u&&e.length>0)return function(e){if((e=String(e)).length>100)return;var c=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(!c)return;var a=parseFloat(c[1]);switch((c[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return a*o;case"weeks":case"week":case"w":return a*r;case"days":case"day":case"d":return a*i;case"hours":case"hour":case"hrs":case"hr":case"h":return a*s;case"minutes":case"minute":case"mins":case"min":case"m":return a*n;case"seconds":case"second":case"secs":case"sec":case"s":return a*t;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return a;default:return}}(e);if("number"===u&&isFinite(e))return a.long?function(e){var r=Math.abs(e);if(r>=i)return c(e,r,i,"day");if(r>=s)return c(e,r,s,"hour");if(r>=n)return c(e,r,n,"minute");if(r>=t)return c(e,r,t,"second");return e+" ms"}(e):function(e){var r=Math.abs(e);if(r>=i)return Math.round(e/i)+"d";if(r>=s)return Math.round(e/s)+"h";if(r>=n)return Math.round(e/n)+"m";if(r>=t)return Math.round(e/t)+"s";return e+"ms"}(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))}},6975:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var s=n(951);const i=n.n(s)()("dops:analytics");let r,o;window._tkq=window._tkq||[],window.ga=window.ga||function(){(window.ga.q=window.ga.q||[]).push(arguments)},window.ga.l=+new Date;const c={initialize:function(e,t,n){c.setUser(e,t),c.setSuperProps(n),c.identifyUser()},setGoogleAnalyticsEnabled:function(e,t=null){this.googleAnalyticsEnabled=e,this.googleAnalyticsKey=t},setMcAnalyticsEnabled:function(e){this.mcAnalyticsEnabled=e},setUser:function(e,t){o={ID:e,username:t}},setSuperProps:function(e){r=e},assignSuperProps:function(e){r=Object.assign(r||{},e)},mc:{bumpStat:function(e,t){const n=function(e,t){let n="";if("object"==typeof e){for(const t in e)n+="&x_"+encodeURIComponent(t)+"="+encodeURIComponent(e[t]);i("Bumping stats %o",e)}else n="&x_"+encodeURIComponent(e)+"="+encodeURIComponent(t),i('Bumping stat "%s" in group "%s"',t,e);return n}(e,t);c.mcAnalyticsEnabled&&((new Image).src=document.location.protocol+"//pixel.wp.com/g.gif?v=wpcom-no-pv"+n+"&t="+Math.random())},bumpStatWithPageView:function(e,t){const n=function(e,t){let n="";if("object"==typeof e){for(const t in e)n+="&"+encodeURIComponent(t)+"="+encodeURIComponent(e[t]);i("Built stats %o",e)}else n="&"+encodeURIComponent(e)+"="+encodeURIComponent(t),i('Built stat "%s" in group "%s"',t,e);return n}(e,t);c.mcAnalyticsEnabled&&((new Image).src=document.location.protocol+"//pixel.wp.com/g.gif?v=wpcom"+n+"&t="+Math.random())}},pageView:{record:function(e,t){c.tracks.recordPageView(e),c.ga.recordPageView(e,t)}},purchase:{record:function(e,t,n,s,i,r,o){c.ga.recordPurchase(e,t,n,s,i,r,o)}},tracks:{recordEvent:function(e,t){t=t||{},0===e.indexOf("akismet_")||0===e.indexOf("jetpack_")?(r&&(i("- Super Props: %o",r),t=Object.assign(t,r)),i('Record event "%s" called with props %s',e,JSON.stringify(t)),window._tkq.push(["recordEvent",e,t])):i('- Event name must be prefixed by "akismet_" or "jetpack_"')},recordJetpackClick:function(e){const t="object"==typeof e?e:{target:e};c.tracks.recordEvent("jetpack_wpa_click",t)},recordPageView:function(e){c.tracks.recordEvent("akismet_page_view",{path:e})},setOptOut:function(e){i("Pushing setOptOut: %o",e),window._tkq.push(["setOptOut",e])}},ga:{initialized:!1,initialize:function(){let e={};c.ga.initialized||(o&&(e={userId:"u-"+o.ID}),window.ga("create",this.googleAnalyticsKey,"auto",e),c.ga.initialized=!0)},recordPageView:function(e,t){c.ga.initialize(),i("Recording Page View ~ [URL: "+e+"] [Title: "+t+"]"),this.googleAnalyticsEnabled&&(window.ga("set","page",e),window.ga("send",{hitType:"pageview",page:e,title:t}))},recordEvent:function(e,t,n,s){c.ga.initialize();let r="Recording Event ~ [Category: "+e+"] [Action: "+t+"]";void 0!==n&&(r+=" [Option Label: "+n+"]"),void 0!==s&&(r+=" [Option Value: "+s+"]"),i(r),this.googleAnalyticsEnabled&&window.ga("send","event",e,t,n,s)},recordPurchase:function(e,t,n,s,i,r,o){window.ga("require","ecommerce"),window.ga("ecommerce:addTransaction",{id:e,revenue:s,currency:o}),window.ga("ecommerce:addItem",{id:e,name:t,sku:n,price:i,quantity:r}),window.ga("ecommerce:send")}},identifyUser:function(){o&&window._tkq.push(["identifyUser",o.ID,o.username])},setProperties:function(e){window._tkq.push(["setProperties",e])},clearedIdentity:function(){window._tkq.push(["clearIdentity"])}},a=c},4743:(e,t,n)=>{"use strict";n.d(t,{ZP:()=>l});var s=n(1132),i=n(6483);function r(e){class t extends Error{constructor(...t){super(...t),this.name=e}}return t}const o=r("JsonParseError"),c=r("JsonParseAfterRedirectError"),a=r("Api404Error"),u=r("Api404AfterRedirectError"),d=r("FetchNetworkError");const l=new function(e,t){let n=e,r=e,o={"X-WP-Nonce":t},c={credentials:"same-origin",headers:o},a={method:"post",credentials:"same-origin",headers:Object.assign({},o,{"Content-type":"application/json"})},u=function(e){const t=e.split("?"),n=t.length>1?t[1]:"",s=n.length?n.split("&"):[];return s.push("_cacheBuster="+(new Date).getTime()),t[0]+"?"+s.join("&")};const d={setApiRoot(e){n=e},setWpcomOriginApiUrl(e){r=e},setApiNonce(e){o={"X-WP-Nonce":e},c={credentials:"same-origin",headers:o},a={method:"post",credentials:"same-origin",headers:Object.assign({},o,{"Content-type":"application/json"})}},setCacheBusterCallback:e=>{u=e},registerSite:(e,t,i)=>{const r={registration_nonce:e,no_iframe:!0};return(0,s.jetpackConfigHas)("consumer_slug")&&(r.plugin_slug=(0,s.jetpackConfigGet)("consumer_slug")),null!==t&&(r.redirect_uri=t),i&&(r.from=i),h(`${n}jetpack/v4/connection/register`,a,{body:JSON.stringify(r)}).then(p).then(g)},fetchAuthorizationUrl:e=>l((0,i.addQueryArgs)(`${n}jetpack/v4/connection/authorize_url`,{no_iframe:"1",redirect_uri:e}),c).then(p).then(g),fetchSiteConnectionData:()=>l(`${n}jetpack/v4/connection/data`,c).then(g),fetchSiteConnectionStatus:()=>l(`${n}jetpack/v4/connection`,c).then(g),fetchSiteConnectionTest:()=>l(`${n}jetpack/v4/connection/test`,c).then(p).then(g),fetchUserConnectionData:()=>l(`${n}jetpack/v4/connection/data`,c).then(g),fetchUserTrackingSettings:()=>l(`${n}jetpack/v4/tracking/settings`,c).then(p).then(g),updateUserTrackingSettings:e=>h(`${n}jetpack/v4/tracking/settings`,a,{body:JSON.stringify(e)}).then(p).then(g),disconnectSite:()=>h(`${n}jetpack/v4/connection`,a,{body:JSON.stringify({isActive:!1})}).then(p).then(g),fetchConnectUrl:()=>l(`${n}jetpack/v4/connection/url`,c).then(p).then(g),unlinkUser:()=>h(`${n}jetpack/v4/connection/user`,a,{body:JSON.stringify({linked:!1})}).then(p).then(g),reconnect:()=>h(`${n}jetpack/v4/connection/reconnect`,a).then(p).then(g),fetchConnectedPlugins:()=>l(`${n}jetpack/v4/connection/plugins`,c).then(p).then(g),setHasSeenWCConnectionModal:()=>h(`${n}jetpack/v4/seen-wc-connection-modal`,a).then(p).then(g),fetchModules:()=>l(`${n}jetpack/v4/module/all`,c).then(p).then(g),fetchModule:e=>l(`${n}jetpack/v4/module/${e}`,c).then(p).then(g),activateModule:e=>h(`${n}jetpack/v4/module/${e}/active`,a,{body:JSON.stringify({active:!0})}).then(p).then(g),deactivateModule:e=>h(`${n}jetpack/v4/module/${e}/active`,a,{body:JSON.stringify({active:!1})}),updateModuleOptions:(e,t)=>h(`${n}jetpack/v4/module/${e}`,a,{body:JSON.stringify(t)}).then(p).then(g),updateSettings:e=>h(`${n}jetpack/v4/settings`,a,{body:JSON.stringify(e)}).then(p).then(g),getProtectCount:()=>l(`${n}jetpack/v4/module/protect/data`,c).then(p).then(g),resetOptions:e=>h(`${n}jetpack/v4/options/${e}`,a,{body:JSON.stringify({reset:!0})}).then(p).then(g),activateVaultPress:()=>h(`${n}jetpack/v4/plugins`,a,{body:JSON.stringify({slug:"vaultpress",status:"active"})}).then(p).then(g),getVaultPressData:()=>l(`${n}jetpack/v4/module/vaultpress/data`,c).then(p).then(g),installPlugin:(e,t)=>{const s={slug:e,status:"active"};return t&&(s.source=t),h(`${n}jetpack/v4/plugins`,a,{body:JSON.stringify(s)}).then(p).then(g)},activateAkismet:()=>h(`${n}jetpack/v4/plugins`,a,{body:JSON.stringify({slug:"akismet",status:"active"})}).then(p).then(g),getAkismetData:()=>l(`${n}jetpack/v4/module/akismet/data`,c).then(p).then(g),checkAkismetKey:()=>l(`${n}jetpack/v4/module/akismet/key/check`,c).then(p).then(g),checkAkismetKeyTyped:e=>h(`${n}jetpack/v4/module/akismet/key/check`,a,{body:JSON.stringify({api_key:e})}).then(p).then(g),fetchStatsData:e=>l(function(e){let t=`${n}jetpack/v4/module/stats/data`;-1!==t.indexOf("?")?t+=`&range=${encodeURIComponent(e)}`:t+=`?range=${encodeURIComponent(e)}`;return t}(e),c).then(p).then(g).then(m),getPluginUpdates:()=>l(`${n}jetpack/v4/updates/plugins`,c).then(p).then(g),getPlans:()=>l(`${n}jetpack/v4/plans`,c).then(p).then(g),fetchSettings:()=>l(`${n}jetpack/v4/settings`,c).then(p).then(g),updateSetting:e=>h(`${n}jetpack/v4/settings`,a,{body:JSON.stringify(e)}).then(p).then(g),fetchSiteData:()=>l(`${n}jetpack/v4/site`,c).then(p).then(g).then((e=>JSON.parse(e.data))),fetchSiteFeatures:()=>l(`${n}jetpack/v4/site/features`,c).then(p).then(g).then((e=>JSON.parse(e.data))),fetchSiteProducts:()=>l(`${n}jetpack/v4/site/products`,c).then(p).then(g),fetchSitePurchases:()=>l(`${n}jetpack/v4/site/purchases`,c).then(p).then(g).then((e=>JSON.parse(e.data))),fetchSiteBenefits:()=>l(`${n}jetpack/v4/site/benefits`,c).then(p).then(g).then((e=>JSON.parse(e.data))),fetchSiteDiscount:()=>l(`${n}jetpack/v4/site/discount`,c).then(p).then(g).then((e=>e.data)),fetchSetupQuestionnaire:()=>l(`${n}jetpack/v4/setup/questionnaire`,c).then(p).then(g),fetchRecommendationsData:()=>l(`${n}jetpack/v4/recommendations/data`,c).then(p).then(g),fetchRecommendationsProductSuggestions:()=>l(`${n}jetpack/v4/recommendations/product-suggestions`,c).then(p).then(g),fetchRecommendationsUpsell:()=>l(`${n}jetpack/v4/recommendations/upsell`,c).then(p).then(g),fetchRecommendationsConditional:()=>l(`${n}jetpack/v4/recommendations/conditional`,c).then(p).then(g),saveRecommendationsData:e=>h(`${n}jetpack/v4/recommendations/data`,a,{body:JSON.stringify({data:e})}).then(p),fetchProducts:()=>l(`${n}jetpack/v4/products`,c).then(p).then(g),fetchRewindStatus:()=>l(`${n}jetpack/v4/rewind`,c).then(p).then(g).then((e=>JSON.parse(e.data))),fetchScanStatus:()=>l(`${n}jetpack/v4/scan`,c).then(p).then(g).then((e=>JSON.parse(e.data))),dismissJetpackNotice:e=>h(`${n}jetpack/v4/notice/${e}`,a,{body:JSON.stringify({dismissed:!0})}).then(p).then(g),fetchPluginsData:()=>l(`${n}jetpack/v4/plugins`,c).then(p).then(g),fetchIntroOffers:()=>l(`${n}jetpack/v4/intro-offers`,c).then(p).then(g),fetchVerifySiteGoogleStatus:e=>l(null!==e?`${n}jetpack/v4/verify-site/google/${e}`:`${n}jetpack/v4/verify-site/google`,c).then(p).then(g),verifySiteGoogle:e=>h(`${n}jetpack/v4/verify-site/google`,a,{body:JSON.stringify({keyring_id:e})}).then(p).then(g),submitSurvey:e=>h(`${n}jetpack/v4/marketing/survey`,a,{body:JSON.stringify(e)}).then(p).then(g),saveSetupQuestionnaire:e=>h(`${n}jetpack/v4/setup/questionnaire`,a,{body:JSON.stringify(e)}).then(p).then(g),updateLicensingError:e=>h(`${n}jetpack/v4/licensing/error`,a,{body:JSON.stringify(e)}).then(p).then(g),updateLicenseKey:e=>h(`${n}jetpack/v4/licensing/set-license`,a,{body:JSON.stringify({license:e})}).then(p).then(g),getUserLicensesCounts:()=>l(`${n}jetpack/v4/licensing/user/counts`,c).then(p).then(g),getUserLicenses:()=>l(`${n}jetpack/v4/licensing/user/licenses`,c).then(p).then(g),updateLicensingActivationNoticeDismiss:e=>h(`${n}jetpack/v4/licensing/user/activation-notice-dismiss`,a,{body:JSON.stringify({last_detached_count:e})}).then(p).then(g),updateRecommendationsStep:e=>h(`${n}jetpack/v4/recommendations/step`,a,{body:JSON.stringify({step:e})}).then(p),confirmIDCSafeMode:()=>h(`${n}jetpack/v4/identity-crisis/confirm-safe-mode`,a).then(p),startIDCFresh:e=>h(`${n}jetpack/v4/identity-crisis/start-fresh`,a,{body:JSON.stringify({redirect_uri:e})}).then(p).then(g),migrateIDC:()=>h(`${n}jetpack/v4/identity-crisis/migrate`,a).then(p),attachLicenses:e=>h(`${n}jetpack/v4/licensing/attach-licenses`,a,{body:JSON.stringify({licenses:e})}).then(p).then(g),fetchSearchPlanInfo:()=>l(`${r}jetpack/v4/search/plan`,c).then(p).then(g),fetchSearchSettings:()=>l(`${r}jetpack/v4/search/settings`,c).then(p).then(g),updateSearchSettings:e=>h(`${r}jetpack/v4/search/settings`,a,{body:JSON.stringify(e)}).then(p).then(g),fetchSearchStats:()=>l(`${r}jetpack/v4/search/stats`,c).then(p).then(g),fetchWafSettings:()=>l(`${n}jetpack/v4/waf`,c).then(p).then(g),updateWafSettings:e=>h(`${n}jetpack/v4/waf`,a,{body:JSON.stringify(e)}).then(p).then(g),fetchWordAdsSettings:()=>l(`${n}jetpack/v4/wordads/settings`,c).then(p).then(g),updateWordAdsSettings:e=>h(`${n}jetpack/v4/wordads/settings`,a,{body:JSON.stringify(e)}),fetchSearchPricing:()=>l(`${r}jetpack/v4/search/pricing`,c).then(p).then(g),fetchMigrationStatus:()=>l(`${n}jetpack/v4/migration/status`,c).then(p).then(g),fetchBackupUndoEvent:()=>l(`${n}jetpack/v4/site/backup/undo-event`,c).then(p).then(g),fetchBackupPreflightStatus:()=>l(`${n}jetpack/v4/site/backup/preflight`,c).then(p).then(g)};function l(e,t){return fetch(u(e),t)}function h(e,t,n){return fetch(e,Object.assign({},t,n)).catch(f)}function m(e){return e.general&&void 0===e.general.response||e.week&&void 0===e.week.response||e.month&&void 0===e.month.response?e:{}}Object.assign(this,d)};function p(e){return e.status>=200&&e.status<300?e:404===e.status?new Promise((()=>{throw e.redirected?new u(e.redirected):new a})):e.json().catch((e=>h(e))).then((t=>{const n=new Error(`${t.message} (Status ${e.status})`);throw n.response=t,n.name="ApiError",n}))}function g(e){return e.json().catch((t=>h(t,e.redirected,e.url)))}function h(e,t,n){throw t?new c(n):new o}function f(){throw new d}},1132:(e,t,n)=>{let s={};try{s=n(4647)}catch{console.error("jetpackConfig is missing in your webpack config file. See @automattic/jetpack-config"),s={missingConfig:!0}}const i=e=>Object.hasOwn(s,e);e.exports={jetpackConfigHas:i,jetpackConfigGet:e=>{if(!i(e))throw'This app requires the "'+e+'" Jetpack Config to be defined in your webpack configuration file. See details in @automattic/jetpack-config package docs.';return s[e]}}},1294:(e,t,n)=>{"use strict";n.d(t,{Z:()=>u});var s=n(4743),i=n(1732),r=n(9818),o=n(9196),c=n(428);const a=window?.JP_CONNECTION_INITIAL_STATE||(0,i.getScriptData)()?.connection||{},u=({registrationNonce:e=a.registrationNonce,apiRoot:t=a.apiRoot,apiNonce:n=a.apiNonce,redirectUri:i,autoTrigger:u,from:d,skipUserConnection:l}={})=>{const{registerSite:p,connectUser:g,refreshConnectedPlugins:h}=(0,r.useDispatch)(c.t),f=(0,r.useSelect)((e=>e(c.t).getRegistrationError())),{siteIsRegistering:m,userIsConnecting:C,userConnectionData:y,connectedPlugins:w,connectionErrors:v,isRegistered:k,isUserConnected:S,hasConnectedOwner:E,isOfflineMode:b}=(0,r.useSelect)((e=>({siteIsRegistering:e(c.t).getSiteIsRegistering(),userIsConnecting:e(c.t).getUserIsConnecting(),userConnectionData:e(c.t).getUserConnectionData(),connectedPlugins:e(c.t).getConnectedPlugins(),connectionErrors:e(c.t).getConnectionErrors(),isOfflineMode:e(c.t).getIsOfflineMode(),...e(c.t).getConnectionStatus()}))),_=()=>l?i?(window.location=i,Promise.resolve(i)):Promise.resolve():g({from:d,redirectUri:i}),j=t=>(t&&t.preventDefault(),k?_():p({registrationNonce:e,redirectUri:i,from:d}).then((()=>_())));return(0,o.useEffect)((()=>{s.ZP.setApiRoot(t),s.ZP.setApiNonce(n)}),[t,n]),(0,o.useEffect)((()=>{!u||m||C||j()}),[]),{handleRegisterSite:j,handleConnectUser:_,refreshConnectedPlugins:h,isRegistered:k,isUserConnected:S,siteIsRegistering:m,userIsConnecting:C,registrationError:f,userConnectionData:y,hasConnectedOwner:E,connectedPlugins:w,connectionErrors:v,isOfflineMode:b}}},7523:(e,t,n)=>{"use strict";n.d(t,{LI:()=>r,N4:()=>c,Qo:()=>l,T1:()=>u,TS:()=>d,ZP:()=>S,b5:()=>g,i6:()=>i,qJ:()=>h,qV:()=>a,r7:()=>o,wQ:()=>p});var s=n(4743);const i="SET_CONNECTION_STATUS",r="SET_CONNECTION_STATUS_IS_FETCHING",o="SET_SITE_IS_REGISTERING",c="SET_USER_IS_CONNECTING",a="SET_REGISTRATION_ERROR",u="CLEAR_REGISTRATION_ERROR",d="SET_AUTHORIZATION_URL",l="DISCONNECT_USER_SUCCESS",p="SET_CONNECTED_PLUGINS",g="SET_CONNECTION_ERRORS",h="SET_IS_OFFLINE_MODE",f=e=>({type:i,connectionStatus:e}),m=e=>({type:o,isRegistering:e}),C=e=>({type:c,isConnecting:e}),y=e=>({type:a,registrationError:e}),w=()=>({type:u}),v=e=>({type:d,authorizationUrl:e}),k=e=>({type:p,connectedPlugins:e});const S={setConnectionStatus:f,setConnectionStatusIsFetching:e=>({type:r,isFetching:e}),fetchConnectionStatus:()=>({type:"FETCH_CONNECTION_STATUS"}),fetchAuthorizationUrl:e=>({type:"FETCH_AUTHORIZATION_URL",redirectUri:e}),setSiteIsRegistering:m,setUserIsConnecting:C,setRegistrationError:y,clearRegistrationError:w,setAuthorizationUrl:v,registerSite:function*({registrationNonce:e,redirectUri:t,from:n=""}){yield w(),yield m(!0);try{const s=yield{type:"REGISTER_SITE",registrationNonce:e,redirectUri:t,from:n};return yield f({isRegistered:!0}),yield v(s.authorizeUrl),yield m(!1),Promise.resolve(s)}catch(e){return yield y(e),yield m(!1),Promise.reject(e)}},connectUser:function*({from:e,redirectFunc:t,redirectUri:n}={}){yield C(!0),yield{type:"CONNECT_USER",from:e,redirectFunc:t,redirectUri:n}},disconnectUserSuccess:()=>({type:l}),setConnectedPlugins:k,refreshConnectedPlugins:()=>async({dispatch:e})=>await new Promise((t=>s.ZP.fetchConnectedPlugins().then((n=>{e(k(n)),t(n)})))),setConnectionErrors:e=>({type:g,connectionErrors:e}),setIsOfflineMode:e=>({type:h,isOfflineMode:e})}},1432:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var s=n(4743),i=n(9818),r=n(7057);const o={FETCH_AUTHORIZATION_URL:({redirectUri:e})=>s.ZP.fetchAuthorizationUrl(e),REGISTER_SITE:({registrationNonce:e,redirectUri:t,from:n})=>s.ZP.registerSite(e,t,n),CONNECT_USER:(0,i.createRegistryControl)((({resolveSelect:e})=>({from:t,redirectFunc:n,redirectUri:s}={})=>new Promise(((i,o)=>{e(r.Z).getAuthorizationUrl(s).then((e=>{const s=n||(e=>window.location.assign(e)),r=new URL(e);t&&r.searchParams.set("from",encodeURIComponent(t));const o=r.toString();s(o),i(o)})).catch((e=>{o(e)}))}))))}},1479:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});var s=n(9818),i=n(7523);const r=(0,s.combineReducers)({connectionStatus:(e={},t)=>{switch(t.type){case i.i6:return{...e,...t.connectionStatus};case i.Qo:return{...e,isUserConnected:!1}}return e},connectionStatusIsFetching:(e=!1,t)=>t.type===i.LI?t.isFetching:e,siteIsRegistering:(e=!1,t)=>t.type===i.r7?t.isRegistering:e,userIsConnecting:(e=!1,t)=>t.type===i.N4?t.isConnecting:e,registrationError:(e,t)=>{switch(t.type){case i.T1:return!1;case i.qV:return t.registrationError;default:return e}},authorizationUrl:(e,t)=>t.type===i.TS?t.authorizationUrl:e,userConnectionData:(e,t)=>(t.type,e),connectedPlugins:(e={},t)=>t.type===i.wQ?t.connectedPlugins:e,connectionErrors:(e={},t)=>t.type===i.b5?t.connectionErrors:e,isOfflineMode:(e=!1,t)=>t.type===i.qJ?t.isConnecting:e})},7728:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var s=n(9818),i=n(7523),r=n(7057);const o={...{getAuthorizationUrl:{isFulfilled:(e,...t)=>{const n=Boolean(e.authorizationUrl),i=(0,s.select)(r.Z).hasFinishedResolution("getAuthorizationUrl",t);return n&&!i&&(0,s.dispatch)(r.Z).finishResolution("getAuthorizationUrl",t),n},*fulfill(e){const t=yield i.ZP.fetchAuthorizationUrl(e);yield i.ZP.setAuthorizationUrl(t.authorizeUrl)}}}}},2725:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});const s={...{getConnectionStatus:e=>e.connectionStatus||{},getConnectionStatusIsFetching:()=>!1,getSiteIsRegistering:e=>e.siteIsRegistering||!1,getUserIsConnecting:e=>e.userIsConnecting||!1,getRegistrationError:e=>e.registrationError||!1,getAuthorizationUrl:e=>e.authorizationUrl||!1,getUserConnectionData:e=>e.userConnectionData||!1,getConnectedPlugins:e=>e.connectedPlugins||[],getConnectionErrors:e=>e.connectionErrors||[],getIsOfflineMode:e=>e.isOfflineMode||!1,getWpcomUser:e=>e?.userConnectionData?.currentUser?.wpcomUser,getBlogId:e=>e?.userConnectionData?.currentUser?.blogId}}},3535:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});var s=n(9818);class i{static store=null;static mayBeInit(e,t){null===i.store&&(i.store=(0,s.createReduxStore)(e,t),(0,s.register)(i.store))}}const r=i},7057:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});const s="jetpack-connection"},428:(e,t,n)=>{"use strict";n.d(t,{t:()=>d.Z});var s=n(1732),i=n(7523),r=n(1432),o=n(1479),c=n(7728),a=n(2725),u=n(3535),d=n(7057);const l=window.JP_CONNECTION_INITIAL_STATE||(0,s.getScriptData)()?.connection;l||console.error("Jetpack Connection package: Initial state is missing. Check documentation to see how to use the Connection composer package to set up the initial state."),u.Z.mayBeInit(d.Z,{__experimentalUseThunks:!0,reducer:o.Z,actions:i.ZP,selectors:a.Z,resolvers:c.Z,controls:r.Z,initialState:l||{}})},3419:(e,t,n)=>{"use strict";n.d(t,{z$:()=>s.Z});n(6714),n(354),n(5404);var s=n(1053);n(1380),n(6342),n(6959),n(9058)},6342:(e,t,n)=>{"use strict";n(9196)},6959:(e,t,n)=>{"use strict";n(9307)},1053:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var s=n(6975),i=n(1294),r=n(9307);const{tracks:o}=s.Z,{recordEvent:c}=o,a=({pageViewEventName:e=null,pageViewNamespace:t="jetpack",pageViewSuffix:n="page_view",pageViewEventProperties:a={}}={})=>{const[u,d]=(0,r.useState)(!1),{isUserConnected:l,isRegistered:p,userConnectionData:g={}}=(0,i.Z)(),{wpcomUser:{login:h,ID:f}={},blogId:m}=g.currentUser||{},C=(0,r.useCallback)((async(e,t={})=>{l&&f&&h&&c(e,t)}),[l,f,h]);return(0,r.useEffect)((()=>{l&&f&&h&&m&&s.Z.initialize(f,h,{blog_id:m})}),[m,f,h,l]),(0,r.useEffect)((()=>{const s=e?`${t}_${e}_${n}`:null;p&&s&&(u||(C(s,a),d(!0)))}),[u,t,e,n,p,a,C]),{recordEvent:C,tracks:o}}},1380:(e,t,n)=>{"use strict";n(9818),n(9307),n(9058)},4166:(e,t,n)=>{"use strict";n.d(t,{ZP:()=>p,rW:()=>l});var s=n(9818),i=n(9505),r=n(2162),o=n(9058);const c="SET_JETPACK_MODULES",a="SET_MODULE_UPDATING";function u(e){return l({isLoading:e})}function d(e,t){return{type:a,name:e,isUpdating:t}}function l(e){return{type:c,options:e}}const p={updateJetpackModuleStatus:function*(e){try{yield d(e.name,!0),yield(0,r.zL)(e);const t=yield(0,r.Bs)();return yield l({data:t}),!0}catch(e){const t=(0,s.select)(o.p).getJetpackModules();return yield l(t),!1}finally{yield d(e.name,!1)}},setJetpackModules:l,fetchModules:function*(){if((0,i.Wp)())return!0;try{yield u(!0);const e=yield(0,r.Bs)();return yield l({data:e}),!0}catch(e){const t=(0,s.select)(o.p).getJetpackModules();return yield l(t),!1}finally{yield u(!1)}}}},2162:(e,t,n)=>{"use strict";n.d(t,{Bs:()=>c,ZP:()=>u,zL:()=>a});var s=n(6989),i=n.n(s);const r="FETCH_JETPACK_MODULES",o="UPDATE_JETPACK_MODULE_STATUS",c=()=>({type:r}),a=e=>({type:o,settings:e}),u={[r]:function(){return i()({path:"/jetpack/v4/module/all",method:"GET"})},[o]:function({settings:e}){return i()({path:`/jetpack/v4/module/${e.name}/active`,method:"POST",data:{active:e.active}})}}},9058:(e,t,n)=>{"use strict";n.d(t,{p:()=>u});var s=n(9818),i=n(4166),r=n(2162),o=n(2469),c=n(5133),a=n(3524);const u="jetpack-modules",d=(0,s.createReduxStore)(u,{reducer:o.Z,actions:i.ZP,controls:r.ZP,resolvers:c.Z,selectors:a.Z});(0,s.register)(d);const l=window?.Initial_State?.getModules||window?.Jetpack_Editor_Initial_State?.modules||null;null!==l&&(0,s.dispatch)(u).setJetpackModules({data:{...l}})},2469:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});const s={isLoading:!1,isUpdating:{},data:{}},i=(e=s,t)=>{switch(t.type){case"SET_JETPACK_MODULES":return{...e,...t.options};case"SET_MODULE_UPDATING":return{...e,isUpdating:{...e.isUpdating,[t.name]:t.isUpdating}}}return e}},5133:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});var s=n(4166),i=n(2162);const r={getJetpackModules:function*(){try{const e=yield(0,i.Bs)();if(e)return(0,s.rW)({data:e})}catch(e){console.error(e)}}}},3524:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var s=n(9505);const i={getJetpackModules:e=>e.data,isModuleActive:(e,t)=>(0,s.Wp)()||(e?.data?.[t]?.activated??!1),areModulesLoading:e=>e.isLoading??!1,isModuleUpdating:(e,t)=>e?.isUpdating?.[t]??!1}},5404:(e,t,n)=>{"use strict";var s=n(5736);n(6483),n(2819);const __=s.__;__("Upgrade your plan to use video covers","jetpack-blaze"),__("Upgrade your plan to upload audio","jetpack-blaze")},6714:(e,t,n)=>{"use strict";n(8817)},9505:(e,t,n)=>{"use strict";function s(){return"object"==typeof window&&"string"==typeof window._currentSiteType?window._currentSiteType:null}function i(){return"simple"===s()}n.d(t,{Wp:()=>i})},354:(e,t,n)=>{"use strict";n(2674),n(4333)},6128:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var s=n(5609);function i(){return React.createElement(s.SVG,{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},React.createElement(s.G,{clipPath:"url(#clip0_4728_49296)"},React.createElement("circle",{cx:"12",cy:"12",r:"12",fill:"#D9D9D9"}),React.createElement("circle",{cx:"12",cy:"12",r:"12",fill:"black"}),React.createElement(s.Path,{d:"M14.8665 6.68544C14.7139 6.50468 14.4652 6.43826 14.2436 6.52015C14.0224 6.60204 13.875 6.81412 13.875 7.05149V8.71684C13.875 9.02893 13.6226 9.2829 13.3125 9.2829C13.0024 9.2829 12.75 9.02893 12.75 8.71684V4.72989C12.75 4.56762 12.681 4.41365 12.5602 4.3061C12.4354 4.19515 12.3622 4.13288 12.3622 4.13288C12.1537 3.95627 11.8485 3.95552 11.6389 4.13175C11.4086 4.32572 6 8.9327 6 13.434C6 16.7632 8.69175 19.472 12 19.472C15.3082 19.472 18 16.7632 18 13.434C18 10.9267 16.296 8.38022 14.8665 6.68544ZM12.0728 18.5274C11.508 18.544 10.9699 18.3259 10.5259 17.9742C8.3535 16.2537 10.3856 13.4982 11.4469 12.3106C11.7435 11.9789 12.2584 11.9807 12.555 12.3125C13.2742 13.1178 14.4375 14.6416 14.4375 16.0756C14.4375 17.4059 13.3853 18.4885 12.0728 18.5274Z",fill:"white"})))}},4647:e=>{"use strict";if(void 0==={consumer_slug:"jetpack-blaze"}){var t=new Error('Cannot find module \'{"consumer_slug":"jetpack-blaze"}\'');throw t.code="MODULE_NOT_FOUND",t}e.exports={consumer_slug:"jetpack-blaze"}},1732:e=>{"use strict";e.exports=window.JetpackScriptDataModule},9196:e=>{"use strict";e.exports=window.React},9501:e=>{"use strict";e.exports=window.ReactJSXRuntime},2819:e=>{"use strict";e.exports=window.lodash},6989:e=>{"use strict";e.exports=window.wp.apiFetch},5609:e=>{"use strict";e.exports=window.wp.components},4333:e=>{"use strict";e.exports=window.wp.compose},9818:e=>{"use strict";e.exports=window.wp.data},2067:e=>{"use strict";e.exports=window.wp.editPost},2238:e=>{"use strict";e.exports=window.wp.editor},9307:e=>{"use strict";e.exports=window.wp.element},5736:e=>{"use strict";e.exports=window.wp.i18n},8817:e=>{"use strict";e.exports=window.wp.plugins},444:e=>{"use strict";e.exports=window.wp.primitives},6483:e=>{"use strict";e.exports=window.wp.url},2674:e=>{function t(){return e.exports=t=Object.assign?Object.assign.bind():function(e){for(var t=1;t{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var s in t)n.o(t,s)&&!n.o(e,s)&&Object.defineProperty(e,s,{enumerable:!0,get:t[s]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{"use strict";var e=n(3419),t=n(5609),s=n(4333),i=n(9818),r=n(2067),o=n(2238),c=n(9307),a=n(5736),u=n(1074),d=n(5381),l=n(8817),p=n(6128);const __=a.__,g=()=>{const{blazeUrlTemplate:n}=window?.blazeInitialState||{},{tracks:a}=(0,e.z$)(),l=(0,c.useCallback)((()=>a.recordEvent("jetpack_editor_blaze_publish_click")),[a]),{isPostPublished:g,isPublishingPost:h,postId:f,postType:m,postVisibility:C}=(0,i.useSelect)((e=>({isPostPublished:e(o.store).isCurrentPostPublished(),isPublishingPost:e(o.store).isPublishingPost(),postId:e(o.store).getCurrentPostId(),postType:e(o.store).getCurrentPostType(),postVisibility:e(o.store).getEditedPostVisibility()}))),y=(0,s.usePrevious)(h),w={name:"blaze-panel",title:__("Promote with Blaze","jetpack-blaze"),className:"blaze-panel",icon:React.createElement(p.Z,null),initialOpen:!0},v=n.link.replace("__POST_ID__",f),k=()=>!!["page","post","product"].includes(m)&&!(!g||"password"===C||"private"===C);if((0,c.useEffect)((()=>{y&&!h&&k()&&g&&a.recordEvent("jetpack_editor_blaze_post_publish_panel_view")}),[a,h,g,y]),!k())return null;const S={page:__("Blaze this page","jetpack-blaze"),post:__("Blaze this post","jetpack-blaze"),product:__("Blaze this product","jetpack-blaze")}[m]??__("Blaze this post","jetpack-blaze");return React.createElement(r.PluginPostPublishPanel,w,React.createElement(t.PanelRow,null,React.createElement("p",null,__("Reach a larger audience boosting the content to the WordPress.com community of blogs and sites.","jetpack-blaze"))),React.createElement("div",{role:"link",className:"post-publish-panel__postpublish-buttons",tabIndex:0,onClick:l,onKeyDown:l},React.createElement(t.Button,{variant:"secondary",href:v,target:"_top"},S,n.external&&React.createElement(u.Z,{icon:d.Z,className:"blaze-panel-outbound-link__external_icon"}))))};(0,l.getPlugin)("jetpack-blaze")||(0,l.registerPlugin)("jetpack-blaze",{render:g})})()})(); \ No newline at end of file diff --git a/vendor/automattic/jetpack-blaze/composer.json b/vendor/automattic/jetpack-blaze/composer.json index 7188ce19..592afb39 100644 --- a/vendor/automattic/jetpack-blaze/composer.json +++ b/vendor/automattic/jetpack-blaze/composer.json @@ -6,7 +6,7 @@ "require": { "php": ">=7.0", "automattic/jetpack-assets": "^2.3.4", - "automattic/jetpack-connection": "^2.12.4", + "automattic/jetpack-connection": "^2.12.5-alpha", "automattic/jetpack-constants": "^2.0.4", "automattic/jetpack-plans": "^0.4.8", "automattic/jetpack-redirect": "^2.0.3", diff --git a/vendor/automattic/jetpack-connection/CHANGELOG.md b/vendor/automattic/jetpack-connection/CHANGELOG.md index f348d968..0328cc04 100644 --- a/vendor/automattic/jetpack-connection/CHANGELOG.md +++ b/vendor/automattic/jetpack-connection/CHANGELOG.md @@ -5,6 +5,10 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/) and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## [2.12.5-alpha] - unreleased + +This is an alpha version! The changes listed here are not final. + ## [2.12.4] - 2024-08-23 ### Changed - Updated package dependencies. [#39004] @@ -1162,6 +1166,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Separate the connection library into its own package. +[2.12.5-alpha]: https://github.com/Automattic/jetpack-connection/compare/v2.12.4...v2.12.5-alpha [2.12.4]: https://github.com/Automattic/jetpack-connection/compare/v2.12.3...v2.12.4 [2.12.3]: https://github.com/Automattic/jetpack-connection/compare/v2.12.2...v2.12.3 [2.12.2]: https://github.com/Automattic/jetpack-connection/compare/v2.12.1...v2.12.2 diff --git a/vendor/automattic/jetpack-connection/dist/identity-crisis.asset.php b/vendor/automattic/jetpack-connection/dist/identity-crisis.asset.php index 612fada5..930f6aae 100644 --- a/vendor/automattic/jetpack-connection/dist/identity-crisis.asset.php +++ b/vendor/automattic/jetpack-connection/dist/identity-crisis.asset.php @@ -1 +1 @@ - array('react', 'wp-components', 'wp-compose', 'wp-data', 'wp-element', 'wp-i18n', 'wp-url'), 'version' => 'd40b533924e16c083ac0'); + array('react', 'wp-components', 'wp-compose', 'wp-data', 'wp-element', 'wp-i18n', 'wp-url'), 'version' => '8f67321a68ba05b3a5b7'); diff --git a/vendor/automattic/jetpack-connection/dist/identity-crisis.js b/vendor/automattic/jetpack-connection/dist/identity-crisis.js index faebc2f1..c1fb0496 100644 --- a/vendor/automattic/jetpack-connection/dist/identity-crisis.js +++ b/vendor/automattic/jetpack-connection/dist/identity-crisis.js @@ -1,7 +1,7 @@ -(()=>{var e={1683:()=>{},6611:()=>{},7724:()=>{},310:()=>{},8271:(e,t,n)=>{t.formatArgs=function(t){if(t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),!this.useColors)return;const n="color: "+this.color;t.splice(1,0,n,"color: inherit");let r=0,s=0;t[0].replace(/%[a-zA-Z%]/g,(e=>{"%%"!==e&&(r++,"%c"===e&&(s=r))})),t.splice(s,0,n)},t.save=function(e){try{e?t.storage.setItem("debug",e):t.storage.removeItem("debug")}catch(e){}},t.load=function(){let e;try{e=t.storage.getItem("debug")}catch(e){}!e&&"undefined"!=typeof process&&"env"in process&&(e=process.env.DEBUG);return e},t.useColors=function(){if("undefined"!=typeof window&&window.process&&("renderer"===window.process.type||window.process.__nwjs))return!0;if("undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;return"undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)},t.storage=function(){try{return localStorage}catch(e){}}(),t.destroy=(()=>{let e=!1;return()=>{e||(e=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})(),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],t.log=console.debug||console.log||(()=>{}),e.exports=n(8380)(t);const{formatters:r}=e.exports;r.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}},8380:(e,t,n)=>{e.exports=function(e){function t(e){let n,s,a,o=null;function c(...e){if(!c.enabled)return;const r=c,s=Number(new Date),a=s-(n||s);r.diff=a,r.prev=n,r.curr=s,n=s,e[0]=t.coerce(e[0]),"string"!=typeof e[0]&&e.unshift("%O");let o=0;e[0]=e[0].replace(/%([a-zA-Z%])/g,((n,s)=>{if("%%"===n)return"%";o++;const a=t.formatters[s];if("function"==typeof a){const t=e[o];n=a.call(r,t),e.splice(o,1),o--}return n})),t.formatArgs.call(r,e);(r.log||t.log).apply(r,e)}return c.namespace=e,c.useColors=t.useColors(),c.color=t.selectColor(e),c.extend=r,c.destroy=t.destroy,Object.defineProperty(c,"enabled",{enumerable:!0,configurable:!1,get:()=>null!==o?o:(s!==t.namespaces&&(s=t.namespaces,a=t.enabled(e)),a),set:e=>{o=e}}),"function"==typeof t.init&&t.init(c),c}function r(e,n){const r=t(this.namespace+(void 0===n?":":n)+e);return r.log=this.log,r}function s(e){return e.toString().substring(2,e.toString().length-2).replace(/\.\*\?$/,"*")}return t.debug=t,t.default=t,t.coerce=function(e){if(e instanceof Error)return e.stack||e.message;return e},t.disable=function(){const e=[...t.names.map(s),...t.skips.map(s).map((e=>"-"+e))].join(",");return t.enable(""),e},t.enable=function(e){let n;t.save(e),t.namespaces=e,t.names=[],t.skips=[];const r=("string"==typeof e?e:"").split(/[\s,]+/),s=r.length;for(n=0;n{t[n]=e[n]})),t.names=[],t.skips=[],t.formatters={},t.selectColor=function(e){let n=0;for(let t=0;t{var t=1e3,n=60*t,r=60*n,s=24*r,a=7*s,o=365.25*s;function c(e,t,n,r){var s=t>=1.5*n;return Math.round(e/n)+" "+r+(s?"s":"")}e.exports=function(e,i){i=i||{};var l=typeof e;if("string"===l&&e.length>0)return function(e){if((e=String(e)).length>100)return;var c=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(!c)return;var i=parseFloat(c[1]);switch((c[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return i*o;case"weeks":case"week":case"w":return i*a;case"days":case"day":case"d":return i*s;case"hours":case"hour":case"hrs":case"hr":case"h":return i*r;case"minutes":case"minute":case"mins":case"min":case"m":return i*n;case"seconds":case"second":case"secs":case"sec":case"s":return i*t;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return i;default:return}}(e);if("number"===l&&isFinite(e))return i.long?function(e){var a=Math.abs(e);if(a>=s)return c(e,a,s,"day");if(a>=r)return c(e,a,r,"hour");if(a>=n)return c(e,a,n,"minute");if(a>=t)return c(e,a,t,"second");return e+" ms"}(e):function(e){var a=Math.abs(e);if(a>=s)return Math.round(e/s)+"d";if(a>=r)return Math.round(e/r)+"h";if(a>=n)return Math.round(e/n)+"m";if(a>=t)return Math.round(e/t)+"s";return e+"ms"}(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))}},2364:(e,t,n)=>{"use strict";var r=n(8259);function s(){}function a(){}a.resetWarningCache=s,e.exports=function(){function e(e,t,n,s,a,o){if(o!==r){var c=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw c.name="Invariant Violation",c}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:a,resetWarningCache:s};return n.PropTypes=n,n}},7301:(e,t,n)=>{e.exports=n(2364)()},8259:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},6975:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(8271);const s=n.n(r)()("dops:analytics");let a,o;window._tkq=window._tkq||[],window.ga=window.ga||function(){(window.ga.q=window.ga.q||[]).push(arguments)},window.ga.l=+new Date;const c={initialize:function(e,t,n){c.setUser(e,t),c.setSuperProps(n),c.identifyUser()},setGoogleAnalyticsEnabled:function(e,t=null){this.googleAnalyticsEnabled=e,this.googleAnalyticsKey=t},setMcAnalyticsEnabled:function(e){this.mcAnalyticsEnabled=e},setUser:function(e,t){o={ID:e,username:t}},setSuperProps:function(e){a=e},assignSuperProps:function(e){a=Object.assign(a||{},e)},mc:{bumpStat:function(e,t){const n=function(e,t){let n="";if("object"==typeof e){for(const t in e)n+="&x_"+encodeURIComponent(t)+"="+encodeURIComponent(e[t]);s("Bumping stats %o",e)}else n="&x_"+encodeURIComponent(e)+"="+encodeURIComponent(t),s('Bumping stat "%s" in group "%s"',t,e);return n}(e,t);c.mcAnalyticsEnabled&&((new Image).src=document.location.protocol+"//pixel.wp.com/g.gif?v=wpcom-no-pv"+n+"&t="+Math.random())},bumpStatWithPageView:function(e,t){const n=function(e,t){let n="";if("object"==typeof e){for(const t in e)n+="&"+encodeURIComponent(t)+"="+encodeURIComponent(e[t]);s("Built stats %o",e)}else n="&"+encodeURIComponent(e)+"="+encodeURIComponent(t),s('Built stat "%s" in group "%s"',t,e);return n}(e,t);c.mcAnalyticsEnabled&&((new Image).src=document.location.protocol+"//pixel.wp.com/g.gif?v=wpcom"+n+"&t="+Math.random())}},pageView:{record:function(e,t){c.tracks.recordPageView(e),c.ga.recordPageView(e,t)}},purchase:{record:function(e,t,n,r,s,a,o){c.ga.recordPurchase(e,t,n,r,s,a,o)}},tracks:{recordEvent:function(e,t){t=t||{},0===e.indexOf("akismet_")||0===e.indexOf("jetpack_")?(a&&(s("- Super Props: %o",a),t=Object.assign(t,a)),s('Record event "%s" called with props %s',e,JSON.stringify(t)),window._tkq.push(["recordEvent",e,t])):s('- Event name must be prefixed by "akismet_" or "jetpack_"')},recordJetpackClick:function(e){const t="object"==typeof e?e:{target:e};c.tracks.recordEvent("jetpack_wpa_click",t)},recordPageView:function(e){c.tracks.recordEvent("akismet_page_view",{path:e})},setOptOut:function(e){s("Pushing setOptOut: %o",e),window._tkq.push(["setOptOut",e])}},ga:{initialized:!1,initialize:function(){let e={};c.ga.initialized||(o&&(e={userId:"u-"+o.ID}),window.ga("create",this.googleAnalyticsKey,"auto",e),c.ga.initialized=!0)},recordPageView:function(e,t){c.ga.initialize(),s("Recording Page View ~ [URL: "+e+"] [Title: "+t+"]"),this.googleAnalyticsEnabled&&(window.ga("set","page",e),window.ga("send",{hitType:"pageview",page:e,title:t}))},recordEvent:function(e,t,n,r){c.ga.initialize();let a="Recording Event ~ [Category: "+e+"] [Action: "+t+"]";void 0!==n&&(a+=" [Option Label: "+n+"]"),void 0!==r&&(a+=" [Option Value: "+r+"]"),s(a),this.googleAnalyticsEnabled&&window.ga("send","event",e,t,n,r)},recordPurchase:function(e,t,n,r,s,a,o){window.ga("require","ecommerce"),window.ga("ecommerce:addTransaction",{id:e,revenue:r,currency:o}),window.ga("ecommerce:addItem",{id:e,name:t,sku:n,price:s,quantity:a}),window.ga("ecommerce:send")}},identifyUser:function(){o&&window._tkq.push(["identifyUser",o.ID,o.username])},setProperties:function(e){window._tkq.push(["setProperties",e])},clearedIdentity:function(){window._tkq.push(["clearIdentity"])}},i=c},4743:(e,t,n)=>{"use strict";n.d(t,{ZP:()=>p});var r=n(1132),s=n(6483);function a(e){class t extends Error{constructor(...t){super(...t),this.name=e}}return t}const o=a("JsonParseError"),c=a("JsonParseAfterRedirectError"),i=a("Api404Error"),l=a("Api404AfterRedirectError"),d=a("FetchNetworkError");const p=new function(e,t){let n=e,a=e,o={"X-WP-Nonce":t},c={credentials:"same-origin",headers:o},i={method:"post",credentials:"same-origin",headers:Object.assign({},o,{"Content-type":"application/json"})},l=function(e){const t=e.split("?"),n=t.length>1?t[1]:"",r=n.length?n.split("&"):[];return r.push("_cacheBuster="+(new Date).getTime()),t[0]+"?"+r.join("&")};const d={setApiRoot(e){n=e},setWpcomOriginApiUrl(e){a=e},setApiNonce(e){o={"X-WP-Nonce":e},c={credentials:"same-origin",headers:o},i={method:"post",credentials:"same-origin",headers:Object.assign({},o,{"Content-type":"application/json"})}},setCacheBusterCallback:e=>{l=e},registerSite:(e,t,s)=>{const a={registration_nonce:e,no_iframe:!0};return(0,r.jetpackConfigHas)("consumer_slug")&&(a.plugin_slug=(0,r.jetpackConfigGet)("consumer_slug")),null!==t&&(a.redirect_uri=t),s&&(a.from=s),h(`${n}jetpack/v4/connection/register`,i,{body:JSON.stringify(a)}).then(m).then(u)},fetchAuthorizationUrl:e=>p((0,s.addQueryArgs)(`${n}jetpack/v4/connection/authorize_url`,{no_iframe:"1",redirect_uri:e}),c).then(m).then(u),fetchSiteConnectionData:()=>p(`${n}jetpack/v4/connection/data`,c).then(u),fetchSiteConnectionStatus:()=>p(`${n}jetpack/v4/connection`,c).then(u),fetchSiteConnectionTest:()=>p(`${n}jetpack/v4/connection/test`,c).then(m).then(u),fetchUserConnectionData:()=>p(`${n}jetpack/v4/connection/data`,c).then(u),fetchUserTrackingSettings:()=>p(`${n}jetpack/v4/tracking/settings`,c).then(m).then(u),updateUserTrackingSettings:e=>h(`${n}jetpack/v4/tracking/settings`,i,{body:JSON.stringify(e)}).then(m).then(u),disconnectSite:()=>h(`${n}jetpack/v4/connection`,i,{body:JSON.stringify({isActive:!1})}).then(m).then(u),fetchConnectUrl:()=>p(`${n}jetpack/v4/connection/url`,c).then(m).then(u),unlinkUser:()=>h(`${n}jetpack/v4/connection/user`,i,{body:JSON.stringify({linked:!1})}).then(m).then(u),reconnect:()=>h(`${n}jetpack/v4/connection/reconnect`,i).then(m).then(u),fetchConnectedPlugins:()=>p(`${n}jetpack/v4/connection/plugins`,c).then(m).then(u),setHasSeenWCConnectionModal:()=>h(`${n}jetpack/v4/seen-wc-connection-modal`,i).then(m).then(u),fetchModules:()=>p(`${n}jetpack/v4/module/all`,c).then(m).then(u),fetchModule:e=>p(`${n}jetpack/v4/module/${e}`,c).then(m).then(u),activateModule:e=>h(`${n}jetpack/v4/module/${e}/active`,i,{body:JSON.stringify({active:!0})}).then(m).then(u),deactivateModule:e=>h(`${n}jetpack/v4/module/${e}/active`,i,{body:JSON.stringify({active:!1})}),updateModuleOptions:(e,t)=>h(`${n}jetpack/v4/module/${e}`,i,{body:JSON.stringify(t)}).then(m).then(u),updateSettings:e=>h(`${n}jetpack/v4/settings`,i,{body:JSON.stringify(e)}).then(m).then(u),getProtectCount:()=>p(`${n}jetpack/v4/module/protect/data`,c).then(m).then(u),resetOptions:e=>h(`${n}jetpack/v4/options/${e}`,i,{body:JSON.stringify({reset:!0})}).then(m).then(u),activateVaultPress:()=>h(`${n}jetpack/v4/plugins`,i,{body:JSON.stringify({slug:"vaultpress",status:"active"})}).then(m).then(u),getVaultPressData:()=>p(`${n}jetpack/v4/module/vaultpress/data`,c).then(m).then(u),installPlugin:(e,t)=>{const r={slug:e,status:"active"};return t&&(r.source=t),h(`${n}jetpack/v4/plugins`,i,{body:JSON.stringify(r)}).then(m).then(u)},activateAkismet:()=>h(`${n}jetpack/v4/plugins`,i,{body:JSON.stringify({slug:"akismet",status:"active"})}).then(m).then(u),getAkismetData:()=>p(`${n}jetpack/v4/module/akismet/data`,c).then(m).then(u),checkAkismetKey:()=>p(`${n}jetpack/v4/module/akismet/key/check`,c).then(m).then(u),checkAkismetKeyTyped:e=>h(`${n}jetpack/v4/module/akismet/key/check`,i,{body:JSON.stringify({api_key:e})}).then(m).then(u),fetchStatsData:e=>p(function(e){let t=`${n}jetpack/v4/module/stats/data`;-1!==t.indexOf("?")?t+=`&range=${encodeURIComponent(e)}`:t+=`?range=${encodeURIComponent(e)}`;return t}(e),c).then(m).then(u).then(f),getPluginUpdates:()=>p(`${n}jetpack/v4/updates/plugins`,c).then(m).then(u),getPlans:()=>p(`${n}jetpack/v4/plans`,c).then(m).then(u),fetchSettings:()=>p(`${n}jetpack/v4/settings`,c).then(m).then(u),updateSetting:e=>h(`${n}jetpack/v4/settings`,i,{body:JSON.stringify(e)}).then(m).then(u),fetchSiteData:()=>p(`${n}jetpack/v4/site`,c).then(m).then(u).then((e=>JSON.parse(e.data))),fetchSiteFeatures:()=>p(`${n}jetpack/v4/site/features`,c).then(m).then(u).then((e=>JSON.parse(e.data))),fetchSiteProducts:()=>p(`${n}jetpack/v4/site/products`,c).then(m).then(u),fetchSitePurchases:()=>p(`${n}jetpack/v4/site/purchases`,c).then(m).then(u).then((e=>JSON.parse(e.data))),fetchSiteBenefits:()=>p(`${n}jetpack/v4/site/benefits`,c).then(m).then(u).then((e=>JSON.parse(e.data))),fetchSiteDiscount:()=>p(`${n}jetpack/v4/site/discount`,c).then(m).then(u).then((e=>e.data)),fetchSetupQuestionnaire:()=>p(`${n}jetpack/v4/setup/questionnaire`,c).then(m).then(u),fetchRecommendationsData:()=>p(`${n}jetpack/v4/recommendations/data`,c).then(m).then(u),fetchRecommendationsProductSuggestions:()=>p(`${n}jetpack/v4/recommendations/product-suggestions`,c).then(m).then(u),fetchRecommendationsUpsell:()=>p(`${n}jetpack/v4/recommendations/upsell`,c).then(m).then(u),fetchRecommendationsConditional:()=>p(`${n}jetpack/v4/recommendations/conditional`,c).then(m).then(u),saveRecommendationsData:e=>h(`${n}jetpack/v4/recommendations/data`,i,{body:JSON.stringify({data:e})}).then(m),fetchProducts:()=>p(`${n}jetpack/v4/products`,c).then(m).then(u),fetchRewindStatus:()=>p(`${n}jetpack/v4/rewind`,c).then(m).then(u).then((e=>JSON.parse(e.data))),fetchScanStatus:()=>p(`${n}jetpack/v4/scan`,c).then(m).then(u).then((e=>JSON.parse(e.data))),dismissJetpackNotice:e=>h(`${n}jetpack/v4/notice/${e}`,i,{body:JSON.stringify({dismissed:!0})}).then(m).then(u),fetchPluginsData:()=>p(`${n}jetpack/v4/plugins`,c).then(m).then(u),fetchIntroOffers:()=>p(`${n}jetpack/v4/intro-offers`,c).then(m).then(u),fetchVerifySiteGoogleStatus:e=>p(null!==e?`${n}jetpack/v4/verify-site/google/${e}`:`${n}jetpack/v4/verify-site/google`,c).then(m).then(u),verifySiteGoogle:e=>h(`${n}jetpack/v4/verify-site/google`,i,{body:JSON.stringify({keyring_id:e})}).then(m).then(u),submitSurvey:e=>h(`${n}jetpack/v4/marketing/survey`,i,{body:JSON.stringify(e)}).then(m).then(u),saveSetupQuestionnaire:e=>h(`${n}jetpack/v4/setup/questionnaire`,i,{body:JSON.stringify(e)}).then(m).then(u),updateLicensingError:e=>h(`${n}jetpack/v4/licensing/error`,i,{body:JSON.stringify(e)}).then(m).then(u),updateLicenseKey:e=>h(`${n}jetpack/v4/licensing/set-license`,i,{body:JSON.stringify({license:e})}).then(m).then(u),getUserLicensesCounts:()=>p(`${n}jetpack/v4/licensing/user/counts`,c).then(m).then(u),getUserLicenses:()=>p(`${n}jetpack/v4/licensing/user/licenses`,c).then(m).then(u),updateLicensingActivationNoticeDismiss:e=>h(`${n}jetpack/v4/licensing/user/activation-notice-dismiss`,i,{body:JSON.stringify({last_detached_count:e})}).then(m).then(u),updateRecommendationsStep:e=>h(`${n}jetpack/v4/recommendations/step`,i,{body:JSON.stringify({step:e})}).then(m),confirmIDCSafeMode:()=>h(`${n}jetpack/v4/identity-crisis/confirm-safe-mode`,i).then(m),startIDCFresh:e=>h(`${n}jetpack/v4/identity-crisis/start-fresh`,i,{body:JSON.stringify({redirect_uri:e})}).then(m).then(u),migrateIDC:()=>h(`${n}jetpack/v4/identity-crisis/migrate`,i).then(m),attachLicenses:e=>h(`${n}jetpack/v4/licensing/attach-licenses`,i,{body:JSON.stringify({licenses:e})}).then(m).then(u),fetchSearchPlanInfo:()=>p(`${a}jetpack/v4/search/plan`,c).then(m).then(u),fetchSearchSettings:()=>p(`${a}jetpack/v4/search/settings`,c).then(m).then(u),updateSearchSettings:e=>h(`${a}jetpack/v4/search/settings`,i,{body:JSON.stringify(e)}).then(m).then(u),fetchSearchStats:()=>p(`${a}jetpack/v4/search/stats`,c).then(m).then(u),fetchWafSettings:()=>p(`${n}jetpack/v4/waf`,c).then(m).then(u),updateWafSettings:e=>h(`${n}jetpack/v4/waf`,i,{body:JSON.stringify(e)}).then(m).then(u),fetchWordAdsSettings:()=>p(`${n}jetpack/v4/wordads/settings`,c).then(m).then(u),updateWordAdsSettings:e=>h(`${n}jetpack/v4/wordads/settings`,i,{body:JSON.stringify(e)}),fetchSearchPricing:()=>p(`${a}jetpack/v4/search/pricing`,c).then(m).then(u),fetchMigrationStatus:()=>p(`${n}jetpack/v4/migration/status`,c).then(m).then(u),fetchBackupUndoEvent:()=>p(`${n}jetpack/v4/site/backup/undo-event`,c).then(m).then(u),fetchBackupPreflightStatus:()=>p(`${n}jetpack/v4/site/backup/preflight`,c).then(m).then(u)};function p(e,t){return fetch(l(e),t)}function h(e,t,n){return fetch(e,Object.assign({},t,n)).catch(g)}function f(e){return e.general&&void 0===e.general.response||e.week&&void 0===e.week.response||e.month&&void 0===e.month.response?e:{}}Object.assign(this,d)};function m(e){return e.status>=200&&e.status<300?e:404===e.status?new Promise((()=>{throw e.redirected?new l(e.redirected):new i})):e.json().catch((e=>h(e))).then((t=>{const n=new Error(`${t.message} (Status ${e.status})`);throw n.response=t,n.name="ApiError",n}))}function u(e){return e.json().catch((t=>h(t,e.redirected,e.url)))}function h(e,t,n){throw t?new c(n):new o}function g(){throw new d}},8868:(e,t,n)=>{"use strict";n.d(t,{Z:()=>l});var r=n(7953),s=n.n(r),a=n(5736),o=n(3901),c=n(9196),i=n.n(c);const __=a.__,l=({logoColor:e="#069e08",showText:t=!0,className:n,height:r=32,...a})=>{const c=t?"0 0 118 32":"0 0 32 32";return i().createElement("svg",s()({xmlns:"http://www.w3.org/2000/svg",x:"0px",y:"0px",viewBox:c,className:(0,o.Z)("jetpack-logo",n),"aria-labelledby":"jetpack-logo-title",height:r},a,{role:"img"}),i().createElement("title",{id:"jetpack-logo-title"},__("Jetpack Logo","jetpack-connection")),i().createElement("path",{fill:e,d:"M16,0C7.2,0,0,7.2,0,16s7.2,16,16,16s16-7.2,16-16S24.8,0,16,0z M15,19H7l8-16V19z M17,29V13h8L17,29z"}),t&&i().createElement(i().Fragment,null,i().createElement("path",{d:"M41.3,26.6c-0.5-0.7-0.9-1.4-1.3-2.1c2.3-1.4,3-2.5,3-4.6V8h-3V6h6v13.4C46,22.8,45,24.8,41.3,26.6z"}),i().createElement("path",{d:"M65,18.4c0,1.1,0.8,1.3,1.4,1.3c0.5,0,2-0.2,2.6-0.4v2.1c-0.9,0.3-2.5,0.5-3.7,0.5c-1.5,0-3.2-0.5-3.2-3.1V12H60v-2h2.1V7.1 H65V10h4v2h-4V18.4z"}),i().createElement("path",{d:"M71,10h3v1.3c1.1-0.8,1.9-1.3,3.3-1.3c2.5,0,4.5,1.8,4.5,5.6s-2.2,6.3-5.8,6.3c-0.9,0-1.3-0.1-2-0.3V28h-3V10z M76.5,12.3 c-0.8,0-1.6,0.4-2.5,1.2v5.9c0.6,0.1,0.9,0.2,1.8,0.2c2,0,3.2-1.3,3.2-3.9C79,13.4,78.1,12.3,76.5,12.3z"}),i().createElement("path",{d:"M93,22h-3v-1.5c-0.9,0.7-1.9,1.5-3.5,1.5c-1.5,0-3.1-1.1-3.1-3.2c0-2.9,2.5-3.4,4.2-3.7l2.4-0.3v-0.3c0-1.5-0.5-2.3-2-2.3 c-0.7,0-2.3,0.5-3.7,1.1L84,11c1.2-0.4,3-1,4.4-1c2.7,0,4.6,1.4,4.6,4.7L93,22z M90,16.4l-2.2,0.4c-0.7,0.1-1.4,0.5-1.4,1.6 c0,0.9,0.5,1.4,1.3,1.4s1.5-0.5,2.3-1V16.4z"}),i().createElement("path",{d:"M104.5,21.3c-1.1,0.4-2.2,0.6-3.5,0.6c-4.2,0-5.9-2.4-5.9-5.9c0-3.7,2.3-6,6.1-6c1.4,0,2.3,0.2,3.2,0.5V13 c-0.8-0.3-2-0.6-3.2-0.6c-1.7,0-3.2,0.9-3.2,3.6c0,2.9,1.5,3.8,3.3,3.8c0.9,0,1.9-0.2,3.2-0.7V21.3z"}),i().createElement("path",{d:"M110,15.2c0.2-0.3,0.2-0.8,3.8-5.2h3.7l-4.6,5.7l5,6.3h-3.7l-4.2-5.8V22h-3V6h3V15.2z"}),i().createElement("path",{d:"M58.5,21.3c-1.5,0.5-2.7,0.6-4.2,0.6c-3.6,0-5.8-1.8-5.8-6c0-3.1,1.9-5.9,5.5-5.9s4.9,2.5,4.9,4.9c0,0.8,0,1.5-0.1,2h-7.3 c0.1,2.5,1.5,2.8,3.6,2.8c1.1,0,2.2-0.3,3.4-0.7C58.5,19,58.5,21.3,58.5,21.3z M56,15c0-1.4-0.5-2.9-2-2.9c-1.4,0-2.3,1.3-2.4,2.9 C51.6,15,56,15,56,15z"})))}},5033:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(7301),s=n.n(r),a=n(9196),o=n.n(a);n(1683);const c=({color:e="#FFFFFF",className:t="",size:n=20})=>{const r=t+" jp-components-spinner",s={width:n,height:n,fontSize:n,borderTopColor:e},a={borderTopColor:e,borderRightColor:e};return o().createElement("div",{className:r},o().createElement("div",{className:"jp-components-spinner__outer",style:s},o().createElement("div",{className:"jp-components-spinner__inner",style:a})))};c.propTypes={color:s().string,className:s().string,size:s().number};const i=c},6895:(e,t,n)=>{"use strict";function r(e,t={}){const n={};let r;if("undefined"!=typeof window&&(r=window?.JP_CONNECTION_INITIAL_STATE?.calypsoEnv),0===e.search("https://")){const t=new URL(e);e=`https://${t.host}${t.pathname}`,n.url=encodeURIComponent(e)}else n.source=encodeURIComponent(e);for(const e in t)n[e]=encodeURIComponent(t[e]);!Object.keys(n).includes("site")&&"undefined"!=typeof jetpack_redirects&&jetpack_redirects.hasOwnProperty("currentSiteRawUrl")&&(n.site=jetpack_redirects.currentBlogID??jetpack_redirects.currentSiteRawUrl),r&&(n.calypso_env=r);return"https://jetpack.com/redirect/?"+Object.keys(n).map((e=>e+"="+n[e])).join("&")}n.d(t,{Z:()=>r})},1132:(e,t,n)=>{let r={};try{r=n(8510)}catch{console.error("jetpackConfig is missing in your webpack config file. See @automattic/jetpack-config"),r={missingConfig:!0}}const s=e=>r.hasOwnProperty(e);e.exports={jetpackConfigHas:s,jetpackConfigGet:e=>{if(!s(e))throw'This app requires the "'+e+'" Jetpack Config to be defined in your webpack configuration file. See details in @automattic/jetpack-config package docs.';return r[e]}}},9477:(e,t,n)=>{"use strict";n.d(t,{Z:()=>y});var r=n(6895),s=n(5033),a=n(5609),o=n(9818),c=n(9307),i=n(5736),l=n(7301),d=n.n(l),p=n(9196),m=n.n(p),u=n(2678),h=n(7144),g=n(2115),f=n(6637);const __=i.__,k=e=>{const{isStartingFresh:t=!1,startFreshCallback:n=()=>{},customContent:l={},hasError:d=!1,isDevelopmentSite:p}=e,h=(0,g.Z)(e.wpcomHomeUrl),k=(0,g.Z)(e.currentUrl),y=(0,o.useSelect)((e=>e(u.t).getIsActionInProgress()),[]),_=l.startFreshButtonLabel||__("Create a fresh connection","jetpack-connection");return m().createElement("div",{className:"jp-idc__idc-screen__card-action-base"+(d?" jp-idc__idc-screen__card-action-error":"")},m().createElement("div",{className:"jp-idc__idc-screen__card-action-top"},m().createElement("h4",null,l.startFreshCardTitle?(0,c.createInterpolateElement)(l.startFreshCardTitle,{em:m().createElement("em",null)}):__("Treat each site as independent sites","jetpack-connection")),m().createElement("p",null,p?(0,c.createInterpolateElement)(l.startFreshCardBodyText||(0,i.sprintf)(/* translators: %1$s: The current site domain name. %2$s: The original site domain name. */ +(()=>{var e={1683:()=>{},6611:()=>{},7724:()=>{},310:()=>{},8271:(e,t,n)=>{t.formatArgs=function(t){if(t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),!this.useColors)return;const n="color: "+this.color;t.splice(1,0,n,"color: inherit");let r=0,s=0;t[0].replace(/%[a-zA-Z%]/g,(e=>{"%%"!==e&&(r++,"%c"===e&&(s=r))})),t.splice(s,0,n)},t.save=function(e){try{e?t.storage.setItem("debug",e):t.storage.removeItem("debug")}catch(e){}},t.load=function(){let e;try{e=t.storage.getItem("debug")}catch(e){}!e&&"undefined"!=typeof process&&"env"in process&&(e=process.env.DEBUG);return e},t.useColors=function(){if("undefined"!=typeof window&&window.process&&("renderer"===window.process.type||window.process.__nwjs))return!0;if("undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;return"undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)},t.storage=function(){try{return localStorage}catch(e){}}(),t.destroy=(()=>{let e=!1;return()=>{e||(e=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})(),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],t.log=console.debug||console.log||(()=>{}),e.exports=n(8380)(t);const{formatters:r}=e.exports;r.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}},8380:(e,t,n)=>{e.exports=function(e){function t(e){let n,s,a,o=null;function c(...e){if(!c.enabled)return;const r=c,s=Number(new Date),a=s-(n||s);r.diff=a,r.prev=n,r.curr=s,n=s,e[0]=t.coerce(e[0]),"string"!=typeof e[0]&&e.unshift("%O");let o=0;e[0]=e[0].replace(/%([a-zA-Z%])/g,((n,s)=>{if("%%"===n)return"%";o++;const a=t.formatters[s];if("function"==typeof a){const t=e[o];n=a.call(r,t),e.splice(o,1),o--}return n})),t.formatArgs.call(r,e);(r.log||t.log).apply(r,e)}return c.namespace=e,c.useColors=t.useColors(),c.color=t.selectColor(e),c.extend=r,c.destroy=t.destroy,Object.defineProperty(c,"enabled",{enumerable:!0,configurable:!1,get:()=>null!==o?o:(s!==t.namespaces&&(s=t.namespaces,a=t.enabled(e)),a),set:e=>{o=e}}),"function"==typeof t.init&&t.init(c),c}function r(e,n){const r=t(this.namespace+(void 0===n?":":n)+e);return r.log=this.log,r}function s(e){return e.toString().substring(2,e.toString().length-2).replace(/\.\*\?$/,"*")}return t.debug=t,t.default=t,t.coerce=function(e){if(e instanceof Error)return e.stack||e.message;return e},t.disable=function(){const e=[...t.names.map(s),...t.skips.map(s).map((e=>"-"+e))].join(",");return t.enable(""),e},t.enable=function(e){let n;t.save(e),t.namespaces=e,t.names=[],t.skips=[];const r=("string"==typeof e?e:"").split(/[\s,]+/),s=r.length;for(n=0;n{t[n]=e[n]})),t.names=[],t.skips=[],t.formatters={},t.selectColor=function(e){let n=0;for(let t=0;t{var t=1e3,n=60*t,r=60*n,s=24*r,a=7*s,o=365.25*s;function c(e,t,n,r){var s=t>=1.5*n;return Math.round(e/n)+" "+r+(s?"s":"")}e.exports=function(e,i){i=i||{};var l=typeof e;if("string"===l&&e.length>0)return function(e){if((e=String(e)).length>100)return;var c=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(!c)return;var i=parseFloat(c[1]);switch((c[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return i*o;case"weeks":case"week":case"w":return i*a;case"days":case"day":case"d":return i*s;case"hours":case"hour":case"hrs":case"hr":case"h":return i*r;case"minutes":case"minute":case"mins":case"min":case"m":return i*n;case"seconds":case"second":case"secs":case"sec":case"s":return i*t;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return i;default:return}}(e);if("number"===l&&isFinite(e))return i.long?function(e){var a=Math.abs(e);if(a>=s)return c(e,a,s,"day");if(a>=r)return c(e,a,r,"hour");if(a>=n)return c(e,a,n,"minute");if(a>=t)return c(e,a,t,"second");return e+" ms"}(e):function(e){var a=Math.abs(e);if(a>=s)return Math.round(e/s)+"d";if(a>=r)return Math.round(e/r)+"h";if(a>=n)return Math.round(e/n)+"m";if(a>=t)return Math.round(e/t)+"s";return e+"ms"}(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))}},2364:(e,t,n)=>{"use strict";var r=n(8259);function s(){}function a(){}a.resetWarningCache=s,e.exports=function(){function e(e,t,n,s,a,o){if(o!==r){var c=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw c.name="Invariant Violation",c}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:a,resetWarningCache:s};return n.PropTypes=n,n}},7301:(e,t,n)=>{e.exports=n(2364)()},8259:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},6975:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(8271);const s=n.n(r)()("dops:analytics");let a,o;window._tkq=window._tkq||[],window.ga=window.ga||function(){(window.ga.q=window.ga.q||[]).push(arguments)},window.ga.l=+new Date;const c={initialize:function(e,t,n){c.setUser(e,t),c.setSuperProps(n),c.identifyUser()},setGoogleAnalyticsEnabled:function(e,t=null){this.googleAnalyticsEnabled=e,this.googleAnalyticsKey=t},setMcAnalyticsEnabled:function(e){this.mcAnalyticsEnabled=e},setUser:function(e,t){o={ID:e,username:t}},setSuperProps:function(e){a=e},assignSuperProps:function(e){a=Object.assign(a||{},e)},mc:{bumpStat:function(e,t){const n=function(e,t){let n="";if("object"==typeof e){for(const t in e)n+="&x_"+encodeURIComponent(t)+"="+encodeURIComponent(e[t]);s("Bumping stats %o",e)}else n="&x_"+encodeURIComponent(e)+"="+encodeURIComponent(t),s('Bumping stat "%s" in group "%s"',t,e);return n}(e,t);c.mcAnalyticsEnabled&&((new Image).src=document.location.protocol+"//pixel.wp.com/g.gif?v=wpcom-no-pv"+n+"&t="+Math.random())},bumpStatWithPageView:function(e,t){const n=function(e,t){let n="";if("object"==typeof e){for(const t in e)n+="&"+encodeURIComponent(t)+"="+encodeURIComponent(e[t]);s("Built stats %o",e)}else n="&"+encodeURIComponent(e)+"="+encodeURIComponent(t),s('Built stat "%s" in group "%s"',t,e);return n}(e,t);c.mcAnalyticsEnabled&&((new Image).src=document.location.protocol+"//pixel.wp.com/g.gif?v=wpcom"+n+"&t="+Math.random())}},pageView:{record:function(e,t){c.tracks.recordPageView(e),c.ga.recordPageView(e,t)}},purchase:{record:function(e,t,n,r,s,a,o){c.ga.recordPurchase(e,t,n,r,s,a,o)}},tracks:{recordEvent:function(e,t){t=t||{},0===e.indexOf("akismet_")||0===e.indexOf("jetpack_")?(a&&(s("- Super Props: %o",a),t=Object.assign(t,a)),s('Record event "%s" called with props %s',e,JSON.stringify(t)),window._tkq.push(["recordEvent",e,t])):s('- Event name must be prefixed by "akismet_" or "jetpack_"')},recordJetpackClick:function(e){const t="object"==typeof e?e:{target:e};c.tracks.recordEvent("jetpack_wpa_click",t)},recordPageView:function(e){c.tracks.recordEvent("akismet_page_view",{path:e})},setOptOut:function(e){s("Pushing setOptOut: %o",e),window._tkq.push(["setOptOut",e])}},ga:{initialized:!1,initialize:function(){let e={};c.ga.initialized||(o&&(e={userId:"u-"+o.ID}),window.ga("create",this.googleAnalyticsKey,"auto",e),c.ga.initialized=!0)},recordPageView:function(e,t){c.ga.initialize(),s("Recording Page View ~ [URL: "+e+"] [Title: "+t+"]"),this.googleAnalyticsEnabled&&(window.ga("set","page",e),window.ga("send",{hitType:"pageview",page:e,title:t}))},recordEvent:function(e,t,n,r){c.ga.initialize();let a="Recording Event ~ [Category: "+e+"] [Action: "+t+"]";void 0!==n&&(a+=" [Option Label: "+n+"]"),void 0!==r&&(a+=" [Option Value: "+r+"]"),s(a),this.googleAnalyticsEnabled&&window.ga("send","event",e,t,n,r)},recordPurchase:function(e,t,n,r,s,a,o){window.ga("require","ecommerce"),window.ga("ecommerce:addTransaction",{id:e,revenue:r,currency:o}),window.ga("ecommerce:addItem",{id:e,name:t,sku:n,price:s,quantity:a}),window.ga("ecommerce:send")}},identifyUser:function(){o&&window._tkq.push(["identifyUser",o.ID,o.username])},setProperties:function(e){window._tkq.push(["setProperties",e])},clearedIdentity:function(){window._tkq.push(["clearIdentity"])}},i=c},4743:(e,t,n)=>{"use strict";n.d(t,{ZP:()=>p});var r=n(1132),s=n(6483);function a(e){class t extends Error{constructor(...t){super(...t),this.name=e}}return t}const o=a("JsonParseError"),c=a("JsonParseAfterRedirectError"),i=a("Api404Error"),l=a("Api404AfterRedirectError"),d=a("FetchNetworkError");const p=new function(e,t){let n=e,a=e,o={"X-WP-Nonce":t},c={credentials:"same-origin",headers:o},i={method:"post",credentials:"same-origin",headers:Object.assign({},o,{"Content-type":"application/json"})},l=function(e){const t=e.split("?"),n=t.length>1?t[1]:"",r=n.length?n.split("&"):[];return r.push("_cacheBuster="+(new Date).getTime()),t[0]+"?"+r.join("&")};const d={setApiRoot(e){n=e},setWpcomOriginApiUrl(e){a=e},setApiNonce(e){o={"X-WP-Nonce":e},c={credentials:"same-origin",headers:o},i={method:"post",credentials:"same-origin",headers:Object.assign({},o,{"Content-type":"application/json"})}},setCacheBusterCallback:e=>{l=e},registerSite:(e,t,s)=>{const a={registration_nonce:e,no_iframe:!0};return(0,r.jetpackConfigHas)("consumer_slug")&&(a.plugin_slug=(0,r.jetpackConfigGet)("consumer_slug")),null!==t&&(a.redirect_uri=t),s&&(a.from=s),h(`${n}jetpack/v4/connection/register`,i,{body:JSON.stringify(a)}).then(m).then(u)},fetchAuthorizationUrl:e=>p((0,s.addQueryArgs)(`${n}jetpack/v4/connection/authorize_url`,{no_iframe:"1",redirect_uri:e}),c).then(m).then(u),fetchSiteConnectionData:()=>p(`${n}jetpack/v4/connection/data`,c).then(u),fetchSiteConnectionStatus:()=>p(`${n}jetpack/v4/connection`,c).then(u),fetchSiteConnectionTest:()=>p(`${n}jetpack/v4/connection/test`,c).then(m).then(u),fetchUserConnectionData:()=>p(`${n}jetpack/v4/connection/data`,c).then(u),fetchUserTrackingSettings:()=>p(`${n}jetpack/v4/tracking/settings`,c).then(m).then(u),updateUserTrackingSettings:e=>h(`${n}jetpack/v4/tracking/settings`,i,{body:JSON.stringify(e)}).then(m).then(u),disconnectSite:()=>h(`${n}jetpack/v4/connection`,i,{body:JSON.stringify({isActive:!1})}).then(m).then(u),fetchConnectUrl:()=>p(`${n}jetpack/v4/connection/url`,c).then(m).then(u),unlinkUser:()=>h(`${n}jetpack/v4/connection/user`,i,{body:JSON.stringify({linked:!1})}).then(m).then(u),reconnect:()=>h(`${n}jetpack/v4/connection/reconnect`,i).then(m).then(u),fetchConnectedPlugins:()=>p(`${n}jetpack/v4/connection/plugins`,c).then(m).then(u),setHasSeenWCConnectionModal:()=>h(`${n}jetpack/v4/seen-wc-connection-modal`,i).then(m).then(u),fetchModules:()=>p(`${n}jetpack/v4/module/all`,c).then(m).then(u),fetchModule:e=>p(`${n}jetpack/v4/module/${e}`,c).then(m).then(u),activateModule:e=>h(`${n}jetpack/v4/module/${e}/active`,i,{body:JSON.stringify({active:!0})}).then(m).then(u),deactivateModule:e=>h(`${n}jetpack/v4/module/${e}/active`,i,{body:JSON.stringify({active:!1})}),updateModuleOptions:(e,t)=>h(`${n}jetpack/v4/module/${e}`,i,{body:JSON.stringify(t)}).then(m).then(u),updateSettings:e=>h(`${n}jetpack/v4/settings`,i,{body:JSON.stringify(e)}).then(m).then(u),getProtectCount:()=>p(`${n}jetpack/v4/module/protect/data`,c).then(m).then(u),resetOptions:e=>h(`${n}jetpack/v4/options/${e}`,i,{body:JSON.stringify({reset:!0})}).then(m).then(u),activateVaultPress:()=>h(`${n}jetpack/v4/plugins`,i,{body:JSON.stringify({slug:"vaultpress",status:"active"})}).then(m).then(u),getVaultPressData:()=>p(`${n}jetpack/v4/module/vaultpress/data`,c).then(m).then(u),installPlugin:(e,t)=>{const r={slug:e,status:"active"};return t&&(r.source=t),h(`${n}jetpack/v4/plugins`,i,{body:JSON.stringify(r)}).then(m).then(u)},activateAkismet:()=>h(`${n}jetpack/v4/plugins`,i,{body:JSON.stringify({slug:"akismet",status:"active"})}).then(m).then(u),getAkismetData:()=>p(`${n}jetpack/v4/module/akismet/data`,c).then(m).then(u),checkAkismetKey:()=>p(`${n}jetpack/v4/module/akismet/key/check`,c).then(m).then(u),checkAkismetKeyTyped:e=>h(`${n}jetpack/v4/module/akismet/key/check`,i,{body:JSON.stringify({api_key:e})}).then(m).then(u),fetchStatsData:e=>p(function(e){let t=`${n}jetpack/v4/module/stats/data`;-1!==t.indexOf("?")?t+=`&range=${encodeURIComponent(e)}`:t+=`?range=${encodeURIComponent(e)}`;return t}(e),c).then(m).then(u).then(f),getPluginUpdates:()=>p(`${n}jetpack/v4/updates/plugins`,c).then(m).then(u),getPlans:()=>p(`${n}jetpack/v4/plans`,c).then(m).then(u),fetchSettings:()=>p(`${n}jetpack/v4/settings`,c).then(m).then(u),updateSetting:e=>h(`${n}jetpack/v4/settings`,i,{body:JSON.stringify(e)}).then(m).then(u),fetchSiteData:()=>p(`${n}jetpack/v4/site`,c).then(m).then(u).then((e=>JSON.parse(e.data))),fetchSiteFeatures:()=>p(`${n}jetpack/v4/site/features`,c).then(m).then(u).then((e=>JSON.parse(e.data))),fetchSiteProducts:()=>p(`${n}jetpack/v4/site/products`,c).then(m).then(u),fetchSitePurchases:()=>p(`${n}jetpack/v4/site/purchases`,c).then(m).then(u).then((e=>JSON.parse(e.data))),fetchSiteBenefits:()=>p(`${n}jetpack/v4/site/benefits`,c).then(m).then(u).then((e=>JSON.parse(e.data))),fetchSiteDiscount:()=>p(`${n}jetpack/v4/site/discount`,c).then(m).then(u).then((e=>e.data)),fetchSetupQuestionnaire:()=>p(`${n}jetpack/v4/setup/questionnaire`,c).then(m).then(u),fetchRecommendationsData:()=>p(`${n}jetpack/v4/recommendations/data`,c).then(m).then(u),fetchRecommendationsProductSuggestions:()=>p(`${n}jetpack/v4/recommendations/product-suggestions`,c).then(m).then(u),fetchRecommendationsUpsell:()=>p(`${n}jetpack/v4/recommendations/upsell`,c).then(m).then(u),fetchRecommendationsConditional:()=>p(`${n}jetpack/v4/recommendations/conditional`,c).then(m).then(u),saveRecommendationsData:e=>h(`${n}jetpack/v4/recommendations/data`,i,{body:JSON.stringify({data:e})}).then(m),fetchProducts:()=>p(`${n}jetpack/v4/products`,c).then(m).then(u),fetchRewindStatus:()=>p(`${n}jetpack/v4/rewind`,c).then(m).then(u).then((e=>JSON.parse(e.data))),fetchScanStatus:()=>p(`${n}jetpack/v4/scan`,c).then(m).then(u).then((e=>JSON.parse(e.data))),dismissJetpackNotice:e=>h(`${n}jetpack/v4/notice/${e}`,i,{body:JSON.stringify({dismissed:!0})}).then(m).then(u),fetchPluginsData:()=>p(`${n}jetpack/v4/plugins`,c).then(m).then(u),fetchIntroOffers:()=>p(`${n}jetpack/v4/intro-offers`,c).then(m).then(u),fetchVerifySiteGoogleStatus:e=>p(null!==e?`${n}jetpack/v4/verify-site/google/${e}`:`${n}jetpack/v4/verify-site/google`,c).then(m).then(u),verifySiteGoogle:e=>h(`${n}jetpack/v4/verify-site/google`,i,{body:JSON.stringify({keyring_id:e})}).then(m).then(u),submitSurvey:e=>h(`${n}jetpack/v4/marketing/survey`,i,{body:JSON.stringify(e)}).then(m).then(u),saveSetupQuestionnaire:e=>h(`${n}jetpack/v4/setup/questionnaire`,i,{body:JSON.stringify(e)}).then(m).then(u),updateLicensingError:e=>h(`${n}jetpack/v4/licensing/error`,i,{body:JSON.stringify(e)}).then(m).then(u),updateLicenseKey:e=>h(`${n}jetpack/v4/licensing/set-license`,i,{body:JSON.stringify({license:e})}).then(m).then(u),getUserLicensesCounts:()=>p(`${n}jetpack/v4/licensing/user/counts`,c).then(m).then(u),getUserLicenses:()=>p(`${n}jetpack/v4/licensing/user/licenses`,c).then(m).then(u),updateLicensingActivationNoticeDismiss:e=>h(`${n}jetpack/v4/licensing/user/activation-notice-dismiss`,i,{body:JSON.stringify({last_detached_count:e})}).then(m).then(u),updateRecommendationsStep:e=>h(`${n}jetpack/v4/recommendations/step`,i,{body:JSON.stringify({step:e})}).then(m),confirmIDCSafeMode:()=>h(`${n}jetpack/v4/identity-crisis/confirm-safe-mode`,i).then(m),startIDCFresh:e=>h(`${n}jetpack/v4/identity-crisis/start-fresh`,i,{body:JSON.stringify({redirect_uri:e})}).then(m).then(u),migrateIDC:()=>h(`${n}jetpack/v4/identity-crisis/migrate`,i).then(m),attachLicenses:e=>h(`${n}jetpack/v4/licensing/attach-licenses`,i,{body:JSON.stringify({licenses:e})}).then(m).then(u),fetchSearchPlanInfo:()=>p(`${a}jetpack/v4/search/plan`,c).then(m).then(u),fetchSearchSettings:()=>p(`${a}jetpack/v4/search/settings`,c).then(m).then(u),updateSearchSettings:e=>h(`${a}jetpack/v4/search/settings`,i,{body:JSON.stringify(e)}).then(m).then(u),fetchSearchStats:()=>p(`${a}jetpack/v4/search/stats`,c).then(m).then(u),fetchWafSettings:()=>p(`${n}jetpack/v4/waf`,c).then(m).then(u),updateWafSettings:e=>h(`${n}jetpack/v4/waf`,i,{body:JSON.stringify(e)}).then(m).then(u),fetchWordAdsSettings:()=>p(`${n}jetpack/v4/wordads/settings`,c).then(m).then(u),updateWordAdsSettings:e=>h(`${n}jetpack/v4/wordads/settings`,i,{body:JSON.stringify(e)}),fetchSearchPricing:()=>p(`${a}jetpack/v4/search/pricing`,c).then(m).then(u),fetchMigrationStatus:()=>p(`${n}jetpack/v4/migration/status`,c).then(m).then(u),fetchBackupUndoEvent:()=>p(`${n}jetpack/v4/site/backup/undo-event`,c).then(m).then(u),fetchBackupPreflightStatus:()=>p(`${n}jetpack/v4/site/backup/preflight`,c).then(m).then(u)};function p(e,t){return fetch(l(e),t)}function h(e,t,n){return fetch(e,Object.assign({},t,n)).catch(g)}function f(e){return e.general&&void 0===e.general.response||e.week&&void 0===e.week.response||e.month&&void 0===e.month.response?e:{}}Object.assign(this,d)};function m(e){return e.status>=200&&e.status<300?e:404===e.status?new Promise((()=>{throw e.redirected?new l(e.redirected):new i})):e.json().catch((e=>h(e))).then((t=>{const n=new Error(`${t.message} (Status ${e.status})`);throw n.response=t,n.name="ApiError",n}))}function u(e){return e.json().catch((t=>h(t,e.redirected,e.url)))}function h(e,t,n){throw t?new c(n):new o}function g(){throw new d}},8868:(e,t,n)=>{"use strict";n.d(t,{Z:()=>l});var r=n(7953),s=n.n(r),a=n(5736),o=n(3901),c=n(9196),i=n.n(c);const __=a.__,l=({logoColor:e="#069e08",showText:t=!0,className:n,height:r=32,...a})=>{const c=t?"0 0 118 32":"0 0 32 32";return i().createElement("svg",s()({xmlns:"http://www.w3.org/2000/svg",x:"0px",y:"0px",viewBox:c,className:(0,o.Z)("jetpack-logo",n),"aria-labelledby":"jetpack-logo-title",height:r},a,{role:"img"}),i().createElement("title",{id:"jetpack-logo-title"},__("Jetpack Logo","jetpack-connection")),i().createElement("path",{fill:e,d:"M16,0C7.2,0,0,7.2,0,16s7.2,16,16,16s16-7.2,16-16S24.8,0,16,0z M15,19H7l8-16V19z M17,29V13h8L17,29z"}),t&&i().createElement(i().Fragment,null,i().createElement("path",{d:"M41.3,26.6c-0.5-0.7-0.9-1.4-1.3-2.1c2.3-1.4,3-2.5,3-4.6V8h-3V6h6v13.4C46,22.8,45,24.8,41.3,26.6z"}),i().createElement("path",{d:"M65,18.4c0,1.1,0.8,1.3,1.4,1.3c0.5,0,2-0.2,2.6-0.4v2.1c-0.9,0.3-2.5,0.5-3.7,0.5c-1.5,0-3.2-0.5-3.2-3.1V12H60v-2h2.1V7.1 H65V10h4v2h-4V18.4z"}),i().createElement("path",{d:"M71,10h3v1.3c1.1-0.8,1.9-1.3,3.3-1.3c2.5,0,4.5,1.8,4.5,5.6s-2.2,6.3-5.8,6.3c-0.9,0-1.3-0.1-2-0.3V28h-3V10z M76.5,12.3 c-0.8,0-1.6,0.4-2.5,1.2v5.9c0.6,0.1,0.9,0.2,1.8,0.2c2,0,3.2-1.3,3.2-3.9C79,13.4,78.1,12.3,76.5,12.3z"}),i().createElement("path",{d:"M93,22h-3v-1.5c-0.9,0.7-1.9,1.5-3.5,1.5c-1.5,0-3.1-1.1-3.1-3.2c0-2.9,2.5-3.4,4.2-3.7l2.4-0.3v-0.3c0-1.5-0.5-2.3-2-2.3 c-0.7,0-2.3,0.5-3.7,1.1L84,11c1.2-0.4,3-1,4.4-1c2.7,0,4.6,1.4,4.6,4.7L93,22z M90,16.4l-2.2,0.4c-0.7,0.1-1.4,0.5-1.4,1.6 c0,0.9,0.5,1.4,1.3,1.4s1.5-0.5,2.3-1V16.4z"}),i().createElement("path",{d:"M104.5,21.3c-1.1,0.4-2.2,0.6-3.5,0.6c-4.2,0-5.9-2.4-5.9-5.9c0-3.7,2.3-6,6.1-6c1.4,0,2.3,0.2,3.2,0.5V13 c-0.8-0.3-2-0.6-3.2-0.6c-1.7,0-3.2,0.9-3.2,3.6c0,2.9,1.5,3.8,3.3,3.8c0.9,0,1.9-0.2,3.2-0.7V21.3z"}),i().createElement("path",{d:"M110,15.2c0.2-0.3,0.2-0.8,3.8-5.2h3.7l-4.6,5.7l5,6.3h-3.7l-4.2-5.8V22h-3V6h3V15.2z"}),i().createElement("path",{d:"M58.5,21.3c-1.5,0.5-2.7,0.6-4.2,0.6c-3.6,0-5.8-1.8-5.8-6c0-3.1,1.9-5.9,5.5-5.9s4.9,2.5,4.9,4.9c0,0.8,0,1.5-0.1,2h-7.3 c0.1,2.5,1.5,2.8,3.6,2.8c1.1,0,2.2-0.3,3.4-0.7C58.5,19,58.5,21.3,58.5,21.3z M56,15c0-1.4-0.5-2.9-2-2.9c-1.4,0-2.3,1.3-2.4,2.9 C51.6,15,56,15,56,15z"})))}},5033:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(7301),s=n.n(r),a=n(9196),o=n.n(a);n(1683);const c=({color:e="#FFFFFF",className:t="",size:n=20})=>{const r=t+" jp-components-spinner",s={width:n,height:n,fontSize:n,borderTopColor:e},a={borderTopColor:e,borderRightColor:e};return o().createElement("div",{className:r},o().createElement("div",{className:"jp-components-spinner__outer",style:s},o().createElement("div",{className:"jp-components-spinner__inner",style:a})))};c.propTypes={color:s().string,className:s().string,size:s().number};const i=c},6895:(e,t,n)=>{"use strict";function r(e,t={}){const n={};let r;if("undefined"!=typeof window&&(r=window?.JP_CONNECTION_INITIAL_STATE?.calypsoEnv),0===e.search("https://")){const t=new URL(e);e=`https://${t.host}${t.pathname}`,n.url=encodeURIComponent(e)}else n.source=encodeURIComponent(e);for(const e in t)n[e]=encodeURIComponent(t[e]);!Object.keys(n).includes("site")&&"undefined"!=typeof jetpack_redirects&&Object.hasOwn(jetpack_redirects,"currentSiteRawUrl")&&(n.site=jetpack_redirects.currentBlogID??jetpack_redirects.currentSiteRawUrl),r&&(n.calypso_env=r);return"https://jetpack.com/redirect/?"+Object.keys(n).map((e=>e+"="+n[e])).join("&")}n.d(t,{Z:()=>r})},1132:(e,t,n)=>{let r={};try{r=n(8510)}catch{console.error("jetpackConfig is missing in your webpack config file. See @automattic/jetpack-config"),r={missingConfig:!0}}const s=e=>Object.hasOwn(r,e);e.exports={jetpackConfigHas:s,jetpackConfigGet:e=>{if(!s(e))throw'This app requires the "'+e+'" Jetpack Config to be defined in your webpack configuration file. See details in @automattic/jetpack-config package docs.';return r[e]}}},9477:(e,t,n)=>{"use strict";n.d(t,{Z:()=>_});var r=n(6895),s=n(5033),a=n(5609),o=n(9818),c=n(9307),i=n(5736),l=n(7301),d=n.n(l),p=n(9196),m=n.n(p),u=n(2678),h=n(7144),g=n(2115),f=n(6637);const __=i.__,k=e=>{const{isStartingFresh:t=!1,startFreshCallback:n=()=>{},customContent:l={},hasError:d=!1,isDevelopmentSite:p}=e,h=(0,g.Z)(e.wpcomHomeUrl),k=(0,g.Z)(e.currentUrl),_=(0,o.useSelect)((e=>e(u.t).getIsActionInProgress()),[]),y=l.startFreshButtonLabel||__("Create a fresh connection","jetpack-connection");return m().createElement("div",{className:"jp-idc__idc-screen__card-action-base"+(d?" jp-idc__idc-screen__card-action-error":"")},m().createElement("div",{className:"jp-idc__idc-screen__card-action-top"},m().createElement("h4",null,l.startFreshCardTitle?(0,c.createInterpolateElement)(l.startFreshCardTitle,{em:m().createElement("em",null)}):__("Treat each site as independent sites","jetpack-connection")),m().createElement("p",null,p?(0,c.createInterpolateElement)(l.startFreshCardBodyText||(0,i.sprintf)(/* translators: %1$s: The current site domain name. %2$s: The original site domain name. */ __("

Recommended for

development sitessites that need access to all Jetpack features

Please note that creating a fresh connection for %1$s would require restoring the connection on %2$s if that site is cloned back to production. Learn more.

","jetpack-connection"),k,h),{p:m().createElement("p",null),hostname:m().createElement("strong",null),em:m().createElement("em",null),strong:m().createElement("strong",null),list:m().createElement("ul",null),item:m().createElement("li",null),safeModeLink:m().createElement("a",{href:l.supportURL||(0,r.Z)("jetpack-support-safe-mode"),rel:"noopener noreferrer",target:"_blank"})}):(0,c.createInterpolateElement)(l.startFreshCardBodyText||(0,i.sprintf)(/* translators: %1$s: The current site domain name. %2$s: The original site domain name. */ -__("%1$s settings, stats, and subscribers will start fresh. %2$s will keep its data as is.","jetpack-connection"),k,h),{hostname:m().createElement("strong",null),em:m().createElement("em",null),strong:m().createElement("strong",null)}))),m().createElement("div",{className:"jp-idc__idc-screen__card-action-bottom"},m().createElement("div",null,p?null:((e,t)=>m().createElement("div",null,m().createElement("div",{className:"jp-idc__idc-screen__card-action-sitename"},e),m().createElement(a.Dashicon,{icon:"minus",className:"jp-idc__idc-screen__card-action-separator"}),m().createElement("div",{className:"jp-idc__idc-screen__card-action-sitename"},t)))(h,k)),m().createElement(a.Button,{className:"jp-idc__idc-screen__card-action-button",label:_,onClick:n,disabled:y},t?m().createElement(s.Z,null):_),d&&(v=l.supportURL,m().createElement(f.Z,null,(0,c.createInterpolateElement)(__("Could not create the connection. Retry or find out more here.","jetpack-connection"),{a:m().createElement("a",{href:v||(0,r.Z)("jetpack-support-safe-mode"),rel:"noopener noreferrer",target:"_blank"})})))));var v};k.propTypes={wpcomHomeUrl:d().string.isRequired,currentUrl:d().string.isRequired,isStartingFresh:d().bool,startFreshCallback:d().func,customContent:d().shape(h.Z),hasError:d().bool,isDevelopmentSite:d().bool};const y=k},3171:(e,t,n)=>{"use strict";n.d(t,{Z:()=>y});var r=n(6895),s=n(5033),a=n(5609),o=n(9818),c=n(9307),i=n(5736),l=n(7301),d=n.n(l),p=n(9196),m=n.n(p),u=n(2678),h=n(7144),g=n(2115),f=n(6637);const __=i.__,k=e=>{const t=(0,g.Z)(e.wpcomHomeUrl),n=(0,g.Z)(e.currentUrl),l=(0,o.useSelect)((e=>e(u.t).getIsActionInProgress()),[]),{isMigrating:d=!1,migrateCallback:p=()=>{},customContent:h={},hasError:k=!1}=e,y=h.migrateButtonLabel||__("Move your settings","jetpack-connection");return m().createElement("div",{className:"jp-idc__idc-screen__card-action-base"+(k?" jp-idc__idc-screen__card-action-error":"")},m().createElement("div",{className:"jp-idc__idc-screen__card-action-top"},m().createElement("h4",null,h.migrateCardTitle?(0,c.createInterpolateElement)(h.migrateCardTitle,{em:m().createElement("em",null)}):__("Move Jetpack data","jetpack-connection")),m().createElement("p",null,(0,c.createInterpolateElement)(h.migrateCardBodyText||(0,i.sprintf)(/* translators: %1$s: The current site domain name. %2$s: The original site domain name. */ -__("Move all your settings, stats and subscribers to your other URL, %1$s. %2$s will be disconnected from Jetpack.","jetpack-connection"),n,t),{hostname:m().createElement("strong",null),em:m().createElement("em",null),strong:m().createElement("strong",null)}))),m().createElement("div",{className:"jp-idc__idc-screen__card-action-bottom"},m().createElement("div",{className:"jp-idc__idc-screen__card-action-sitename"},t),m().createElement(a.Dashicon,{icon:"arrow-down-alt",className:"jp-idc__idc-screen__card-action-separator"}),m().createElement("div",{className:"jp-idc__idc-screen__card-action-sitename"},n),m().createElement(a.Button,{className:"jp-idc__idc-screen__card-action-button",label:y,onClick:p,disabled:l},d?m().createElement(s.Z,null):y),k&&(_=h.supportURL,m().createElement(f.Z,null,(0,c.createInterpolateElement)(__("Could not move your settings. Retry or find out more here.","jetpack-connection"),{a:m().createElement("a",{href:_||(0,r.Z)("jetpack-support-safe-mode"),rel:"noopener noreferrer",target:"_blank"})})))));var _};k.propTypes={wpcomHomeUrl:d().string.isRequired,currentUrl:d().string.isRequired,isMigrating:d().bool,migrateCallback:d().func,customContent:d().shape(h.Z),hasError:d().bool};const y=k},5489:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var r=n(9196),s=n.n(r);const a=()=>s().createElement("svg",{className:"error-gridicon",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",height:24},s().createElement("rect",{x:"0",fill:"none",width:"24",height:"24"}),s().createElement("g",null,s().createElement("path",{d:"M12 4c4.411 0 8 3.589 8 8s-3.589 8-8 8-8-3.589-8-8 3.589-8 8-8m0-2C6.477 2 2 6.477 2 12s4.477 10 10 10 10-4.477 10-10S17.523 2 12 2zm1 13h-2v2h2v-2zm-2-2h2l.5-6h-3l.5 6z"})))},6637:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(9196),s=n.n(r),a=n(5489);n(6611);const o=e=>{const{children:t}=e;return s().createElement("div",{className:"jp-idc__error-message"},s().createElement(a.Z,null),s().createElement("span",null,t))}},7381:(e,t,n)=>{"use strict";n.d(t,{Z:()=>k});var r=n(4743),s=n(9818),a=n(7301),o=n.n(a),c=n(9196),i=n.n(c),l=n(970),d=n(1272),p=n(3105),m=n(2678),u=n(7144),h=n(6521),g=n(567);const f=e=>{const{logo:t,customContent:n={},wpcomHomeUrl:a,currentUrl:o,apiNonce:u,apiRoot:f,redirectUri:k,tracksUserData:y,tracksEventData:_,isAdmin:v,possibleDynamicSiteUrlDetected:E,isDevelopmentSite:C}=e,[b,w]=(0,c.useState)(!1),j=(0,s.useSelect)((e=>e(m.t).getErrorType()),[]),{isMigrating:S,migrateCallback:F}=(0,l.Z)((0,c.useCallback)((()=>{w(!0)}),[w])),{isStartingFresh:I,startFreshCallback:U}=(0,p.Z)(k),{isFinishingMigration:T,finishMigrationCallback:N}=(0,d.Z)();return(0,c.useEffect)((()=>{r.ZP.setApiRoot(f),r.ZP.setApiNonce(u),(0,h.M)(_,y),_&&(_.hasOwnProperty("isAdmin")&&_.isAdmin?(0,h.Z)("notice_view"):(0,h.Z)("non_admin_notice_view",{page:!!_.hasOwnProperty("currentScreen")&&_.currentScreen}))}),[f,u,y,_]),i().createElement(g.Z,{logo:t,customContent:n,wpcomHomeUrl:a,currentUrl:o,redirectUri:k,isMigrating:S,migrateCallback:F,isMigrated:b,finishMigrationCallback:N,isFinishingMigration:T,isStartingFresh:I,startFreshCallback:U,isAdmin:v,hasStaySafeError:"safe-mode"===j,hasFreshError:"start-fresh"===j,hasMigrateError:"migrate"===j,possibleDynamicSiteUrlDetected:E,isDevelopmentSite:C})};f.propTypes={logo:o().object,customContent:o().shape(u.Z),wpcomHomeUrl:o().string.isRequired,currentUrl:o().string.isRequired,redirectUri:o().string.isRequired,apiRoot:o().string.isRequired,apiNonce:o().string.isRequired,tracksUserData:o().object,tracksEventData:o().object,isAdmin:o().bool.isRequired,possibleDynamicSiteUrlDetected:o().bool,isDevelopmentSite:o().bool};const k=f},5533:(e,t,n)=>{"use strict";n.d(t,{Z:()=>f});var r=n(6895),s=n(9307),a=n(5736),o=n(7301),c=n.n(o),i=n(9196),l=n.n(i),d=n(7144),p=n(2115),m=n(9477),u=n(3171),h=n(2533);const __=a.__,g=e=>{const{wpcomHomeUrl:t,currentUrl:n,isMigrating:o=!1,migrateCallback:c,isStartingFresh:i=!1,startFreshCallback:d,customContent:g={},hasMigrateError:f=!1,hasFreshError:k=!1,hasStaySafeError:y=!1,possibleDynamicSiteUrlDetected:_=!1,isDevelopmentSite:v}=e,E=(0,p.Z)(e.wpcomHomeUrl),C=(0,p.Z)(e.currentUrl);return l().createElement(l().Fragment,null,l().createElement("h2",null,g.mainTitle?(0,s.createInterpolateElement)(g.mainTitle,{em:l().createElement("em",null)}):__("Safe Mode has been activated","jetpack-connection")),l().createElement("p",null,v?(0,s.createInterpolateElement)(g.mainBodyText||(0,a.sprintf)(/* translators: %1$s: The current site domain name. %2$s: The original site domain name. */ -__("Your site is in Safe Mode because %1$s appears to be a staging or development copy of %2$s.2 sites that are telling Jetpack they’re the same site. Learn more or troubleshoot common Safe mode issues.","jetpack-connection"),C,E),{span:l().createElement("span",{style:{display:"block"}}),hostname:l().createElement("strong",null),em:l().createElement("em",null),strong:l().createElement("strong",null),safeModeLink:l().createElement("a",{href:g.supportURL||(0,r.Z)("jetpack-support-safe-mode"),rel:"noopener noreferrer",target:"_blank"})}):(0,s.createInterpolateElement)(g.mainBodyText||__("Your site is in Safe Mode because you have 2 Jetpack-powered sites that appear to be duplicates. Two sites that are telling Jetpack they’re the same site. Learn more about safe mode.","jetpack-connection"),{safeModeLink:l().createElement("a",{href:g.supportURL||(0,r.Z)("jetpack-support-safe-mode"),rel:"noopener noreferrer",target:"_blank"}),em:l().createElement("em",null),strong:l().createElement("strong",null)})),_&&l().createElement("p",null,(0,s.createInterpolateElement)(g.dynamicSiteUrlText||__("Notice: It appears that your 'wp-config.php' file might be using dynamic site URL values. Dynamic site URLs could cause Jetpack to enter Safe Mode. Learn how to set a static site URL.","jetpack-connection"),{dynamicSiteUrlSupportLink:l().createElement("a",{href:g.dynamicSiteUrlSupportLink||(0,r.Z)("jetpack-idcscreen-dynamic-site-urls"),rel:"noopener noreferrer",target:"_blank"}),em:l().createElement("em",null),strong:l().createElement("strong",null)})),l().createElement("h3",null,__("Please select an option","jetpack-connection")),l().createElement("div",{className:"jp-idc__idc-screen__cards"+(f||k?" jp-idc__idc-screen__cards-error":"")},v?l().createElement(l().Fragment,null,l().createElement(m.Z,{wpcomHomeUrl:t,currentUrl:n,isStartingFresh:i,startFreshCallback:d,customContent:g,hasError:k,isDevelopmentSite:v}),l().createElement("div",{className:"jp-idc__idc-screen__cards-separator"},"or"),l().createElement(h.Z,{hasError:y,customContent:g,isDevelopmentSite:v})):l().createElement(l().Fragment,null,l().createElement(u.Z,{wpcomHomeUrl:t,currentUrl:n,isMigrating:o,migrateCallback:c,customContent:g,hasError:f}),l().createElement("div",{className:"jp-idc__idc-screen__cards-separator"},"or"),l().createElement(m.Z,{wpcomHomeUrl:t,currentUrl:n,isStartingFresh:i,startFreshCallback:d,customContent:g,hasError:k,isDevelopmentSite:v}))),v?null:l().createElement(h.Z,{hasError:y,customContent:g}))};g.propTypes={wpcomHomeUrl:c().string.isRequired,currentUrl:c().string.isRequired,isMigrating:c().bool,migrateCallback:c().func,isStartingFresh:c().bool,startFreshCallback:c().func,customContent:c().shape(d.Z),hasMigrateError:c().bool,hasFreshError:c().bool,hasStaySafeError:c().bool,possibleDynamicSiteUrlDetected:c().bool,isDevelopmentSite:c().bool};const f=g},1052:(e,t,n)=>{"use strict";n.d(t,{Z:()=>h});var r=n(5033),s=n(5609),a=n(9307),o=n(5736),c=n(7301),i=n.n(c),l=n(9196),d=n.n(l),p=n(7144),m=n(2115);const __=o.__,u=e=>{const{finishCallback:t=()=>{},isFinishing:n=!1,customContent:c={}}=e,i=(0,m.Z)(e.wpcomHomeUrl),l=(0,m.Z)(e.currentUrl),p=__("Got it, thanks","jetpack-connection");return d().createElement(d().Fragment,null,d().createElement("h2",null,c.migratedTitle?(0,a.createInterpolateElement)(c.migratedTitle,{em:d().createElement("em",null)}):__("Your Jetpack settings have migrated successfully","jetpack-connection")),d().createElement("p",null,(0,a.createInterpolateElement)(c.migratedBodyText||(0,o.sprintf)(/* translators: %1$s: The current site domain name. */ -__("Safe Mode has been switched off for %1$s website and Jetpack is fully functional.","jetpack-connection"),l),{hostname:d().createElement("strong",null),em:d().createElement("em",null),strong:d().createElement("strong",null)})),d().createElement("div",{className:"jp-idc__idc-screen__card-migrated"},d().createElement("div",{className:"jp-idc__idc-screen__card-migrated-hostname"},i),d().createElement(s.Dashicon,{icon:"arrow-down-alt",className:"jp-idc__idc-screen__card-migrated-separator"}),d().createElement(s.Dashicon,{icon:"arrow-right-alt",className:"jp-idc__idc-screen__card-migrated-separator-wide"}),d().createElement("div",{className:"jp-idc__idc-screen__card-migrated-hostname"},l)),d().createElement(s.Button,{className:"jp-idc__idc-screen__card-action-button jp-idc__idc-screen__card-action-button-migrated",onClick:t,label:p},n?d().createElement(r.Z,null):p))};u.propTypes={wpcomHomeUrl:i().string.isRequired,currentUrl:i().string.isRequired,finishCallback:i().func,isFinishing:i().bool,customContent:i().shape(p.Z)};const h=u},1064:(e,t,n)=>{"use strict";n.d(t,{Z:()=>m});var r=n(6895),s=n(9307),a=n(5736),o=n(7301),c=n.n(o),i=n(9196),l=n.n(i),d=n(7144);const __=a.__,p=e=>{const{customContent:t={}}=e;return l().createElement(l().Fragment,null,l().createElement("h2",null,t.nonAdminTitle?(0,s.createInterpolateElement)(t.nonAdminTitle,{em:l().createElement("em",null)}):__("Safe Mode has been activated","jetpack-connection")),l().createElement("p",null,(0,s.createInterpolateElement)(t.nonAdminBodyText||__("This site is in Safe Mode because there are 2 Jetpack-powered sites that appear to be duplicates. 2 sites that are telling Jetpack they’re the same site. Learn more about safe mode.","jetpack-connection"),{safeModeLink:l().createElement("a",{href:t.supportURL||(0,r.Z)("jetpack-support-safe-mode"),rel:"noopener noreferrer",target:"_blank"}),em:l().createElement("em",null),strong:l().createElement("strong",null)})),t.nonAdminBodyText?"":l().createElement("p",null,__("An administrator of this site can take Jetpack out of Safe Mode.","jetpack-connection")))};p.propTypes={customContent:c().shape(d.Z)};const m=p},567:(e,t,n)=>{"use strict";n.d(t,{Z:()=>g});var r=n(8868),s=n(9307),a=n(5736),o=n(7301),c=n.n(o),i=n(9196),l=n.n(i),d=n(7144),p=n(5533),m=n(1052),u=n(1064);n(7724);const __=a.__,h=e=>{const{logo:t=l().createElement(r.Z,{height:24}),customContent:n={},wpcomHomeUrl:a,currentUrl:o,redirectUri:c,isMigrating:i=!1,migrateCallback:d,isMigrated:h=!1,finishMigrationCallback:g,isFinishingMigration:f=!1,isStartingFresh:k=!1,startFreshCallback:y,isAdmin:_,hasMigrateError:v=!1,hasFreshError:E=!1,hasStaySafeError:C=!1,possibleDynamicSiteUrlDetected:b=!1,isDevelopmentSite:w}=e,j=_?"":l().createElement(u.Z,{customContent:n});let S="";return _&&(S=h?l().createElement(m.Z,{wpcomHomeUrl:a,currentUrl:o,finishCallback:g,isFinishing:f,customContent:n}):l().createElement(p.Z,{wpcomHomeUrl:a,currentUrl:o,redirectUri:c,customContent:n,isMigrating:i,migrateCallback:d,isStartingFresh:k,startFreshCallback:y,hasMigrateError:v,hasFreshError:E,hasStaySafeError:C,possibleDynamicSiteUrlDetected:b,isDevelopmentSite:w})),l().createElement("div",{className:"jp-idc__idc-screen"+(h?" jp-idc__idc-screen__success":"")},l().createElement("div",{className:"jp-idc__idc-screen__header"},l().createElement("div",{className:"jp-idc__idc-screen__logo"},((e,t)=>"string"==typeof e||e instanceof String?l().createElement("img",{src:e,alt:t,className:"jp-idc__idc-screen__logo-image"}):e)(t,n.logoAlt||"")),l().createElement("div",{className:"jp-idc__idc-screen__logo-label"},n.headerText?(0,s.createInterpolateElement)(n.headerText,{em:l().createElement("em",null),strong:l().createElement("strong",null)}):__("Safe Mode","jetpack-connection"))),j,S)};h.propTypes={logo:c().object,customContent:c().shape(d.Z),wpcomHomeUrl:c().string.isRequired,currentUrl:c().string.isRequired,redirectUri:c().string.isRequired,isMigrating:c().bool,migrateCallback:c().func,isMigrated:c().bool,finishMigrationCallback:c().func,isFinishingMigration:c().bool,isStartingFresh:c().bool,startFreshCallback:c().func,isAdmin:c().bool.isRequired,hasMigrateError:c().bool,hasFreshError:c().bool,hasStaySafeError:c().bool,possibleDynamicSiteUrlDetected:c().bool,isDevelopmentSite:c().bool};const g=h},2533:(e,t,n)=>{"use strict";n.d(t,{Z:()=>C});var r=n(4743),s=n(5033),a=n(6895),o=n(5609),c=n(4333),i=n(9818),l=n(9307),d=n(5736),p=n(6483),m=n(7301),u=n.n(m),h=n(9196),g=n.n(h),f=n(2678),k=n(7144),y=n(6521),_=n(6637);n(310);const __=d.__,v=e=>g().createElement(_.Z,null,(0,l.createInterpolateElement)(__("Could not stay in safe mode. Retry or find out more here.","jetpack-connection"),{a:g().createElement("a",{href:e||(0,a.Z)("jetpack-support-safe-mode"),rel:"noopener noreferrer",target:"_blank"})})),E=e=>{const{isActionInProgress:t,setIsActionInProgress:n,setErrorType:c,clearErrorType:i,hasError:d=!1,customContent:m,isDevelopmentSite:u}=e,[f,k]=(0,h.useState)(!1),_=m.stayInSafeModeButtonLabel||__("Stay in Safe mode","jetpack-connection"),E=(0,h.useCallback)((()=>{t||(k(!0),n(!0),i(),(0,y.Z)("confirm_safe_mode"),r.ZP.confirmIDCSafeMode().then((()=>{window.location.href=(0,p.removeQueryArgs)(window.location.href,"jetpack_idc_clear_confirmation","_wpnonce")})).catch((e=>{throw n(!1),k(!1),c("safe-mode"),e})))}),[t,n,c,i]);return g().createElement(g().Fragment,null,u?g().createElement("div",{className:"jp-idc__idc-screen__card-action-base"+(d?" jp-idc__idc-screen__card-action-error":"")},g().createElement("div",{className:"jp-idc__idc-screen__card-action-top"},g().createElement("h4",null,m.safeModeTitle?(0,l.createInterpolateElement)(m.safeModeTitle,{em:g().createElement("em",null)}):__("Stay in Safe Mode","jetpack-connection")),g().createElement("div",null,(0,l.createInterpolateElement)(m.startFreshCardBodyText||/* translators: %1$s: The current site domain name. %2$s: The original site domain name. */ -__("

Recommended for

short-lived test sitessites that will be cloned back to production after testing

Please note that staying in Safe mode will disable some Jetpack features, including security features such as SSO, firewall, and site monitor. Learn more.

","jetpack-connection"),{p:g().createElement("p",null),hostname:g().createElement("strong",null),em:g().createElement("em",null),strong:g().createElement("strong",null),list:g().createElement("ul",null),item:g().createElement("li",null),safeModeLink:g().createElement("a",{href:m.supportURL||(0,a.Z)("jetpack-support-safe-mode"),rel:"noopener noreferrer",target:"_blank"})}))),g().createElement("div",{className:"jp-idc__idc-screen__card-action-bottom"},g().createElement(o.Button,{className:"jp-idc__idc-screen__card-action-button-secondary",label:_,onClick:E,disabled:t},f?g().createElement(s.Z,{color:"black"}):_),d&&v(m.supportURL))):g().createElement("div",{className:"jp-idc__safe-mode"},f?g().createElement("div",{className:"jp-idc__safe-mode__staying-safe"},g().createElement(s.Z,{color:"black"}),g().createElement("span",null,__("Finishing setting up Safe mode…","jetpack-connection"))):(C=E,b=t,(0,l.createInterpolateElement)(__("Or decide later and stay in ","jetpack-connection"),{button:g().createElement(o.Button,{label:__("Safe mode","jetpack-connection"),variant:"link",onClick:C,disabled:b})})),d&&v(m.supportURL)));var C,b};E.propTypes={isActionInProgress:u().bool,setIsActionInProgress:u().func.isRequired,setErrorType:u().func.isRequired,clearErrorType:u().func.isRequired,hasError:u().bool,customContent:u().shape(k.Z),isDevelopmentSite:u().bool};const C=(0,c.compose)([(0,i.withSelect)((e=>({isActionInProgress:e(f.t).getIsActionInProgress()}))),(0,i.withDispatch)((e=>({setIsActionInProgress:e(f.t).setIsActionInProgress,setErrorType:e(f.t).setErrorType,clearErrorType:e(f.t).clearErrorType})))])(E)},1272:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(9196);const s=()=>{const[e,t]=(0,r.useState)(!1),n=(0,r.useCallback)((()=>{e||(t(!0),window.location.reload())}),[e,t]);return{isFinishingMigration:e,finishMigrationCallback:n}}},970:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(4743),s=n(9818),a=n(9196),o=n(2678),c=n(6521);const i=e=>{const[t,n]=(0,a.useState)(!1),i=(0,s.useSelect)((e=>e(o.t).getIsActionInProgress()),[]),{setIsActionInProgress:l,setErrorType:d,clearErrorType:p}=(0,s.useDispatch)(o.t);return{isMigrating:t,migrateCallback:(0,a.useCallback)((()=>{i||((0,c.Z)("migrate"),l(!0),n(!0),p(),r.ZP.migrateIDC().then((()=>{n(!1),e&&"[object Function]"==={}.toString.call(e)&&e()})).catch((e=>{throw l(!1),n(!1),d("migrate"),e})))}),[n,e,i,l,d,p])}}},3105:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(4743),s=n(9818),a=n(9196),o=n(2678),c=n(6521);const i=e=>{const[t,n]=(0,a.useState)(!1),i=(0,s.useSelect)((e=>e(o.t).getIsActionInProgress()),[]),{setIsActionInProgress:l,setErrorType:d,clearErrorType:p}=(0,s.useDispatch)(o.t);return{isStartingFresh:t,startFreshCallback:(0,a.useCallback)((()=>{i||((0,c.Z)("start_fresh"),l(!0),n(!0),p(),r.ZP.startIDCFresh(e).then((e=>{window.location.href=e+"&from=idc-notice"})).catch((e=>{throw l(!1),n(!1),d("start-fresh"),e})))}),[n,i,l,e,d,p])}}},136:(e,t,n)=>{"use strict";n.d(t,{ZP:()=>o,hG:()=>r,jk:()=>a,vC:()=>s});const r="SET_IS_ACTION_IN_PROGRESS",s="SET_ERROR_TYPE",a="CLEAR_ERROR_TYPE",o={setIsActionInProgress:e=>({type:r,isInProgress:e}),setErrorType:e=>({type:s,errorType:e}),clearErrorType:()=>({type:a})}},7773:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var r=n(9818),s=n(136);const a=(0,r.combineReducers)({isActionInProgress:(e=!1,t)=>t.type===s.hG?t.isInProgress:e,errorType:(e=null,t)=>{switch(t.type){case s.vC:return t.errorType;case s.jk:return null}return e}})},9416:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});const r={getIsActionInProgress:e=>e.isActionInProgress||!1,getErrorType:e=>e.errorType||null}},5943:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var r=n(9818);class s{static store=null;static mayBeInit(e,t){null===s.store&&(s.store=(0,r.createReduxStore)(e,t),(0,r.register)(s.store))}}const a=s},2678:(e,t,n)=>{"use strict";n.d(t,{t:()=>c});var r=n(136),s=n(7773),a=n(9416),o=n(5943);const c="jetpack-idc";o.Z.mayBeInit(c,{reducer:s.Z,actions:r.ZP,selectors:a.Z})},7144:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var r=n(7301),s=n.n(r);const a={headerText:s().string,logoAlt:s().string,mainTitle:s().string,mainBodyText:s().string,migratedTitle:s().string,migratedBodyText:s().string,migrateCardTitle:s().string,migrateButtonLabel:s().string,migrateCardBodyText:s().string,startFreshCardTitle:s().string,startFreshCardBodyText:s().string,startFreshButtonLabel:s().string,nonAdminTitle:s().string,nonAdminBodyText:s().string,supportURL:s().string,stayInSafeModeButtonLabel:s().string}},2115:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});const r=e=>/^https?:\/\//.test(e)?new URL(e).hostname:e.replace(/\/$/,"")},6521:(e,t,n)=>{"use strict";n.d(t,{M:()=>s,Z:()=>a});var r=n(6975);function s(e,t){t&&t.hasOwnProperty("userid")&&t.hasOwnProperty("username")&&r.Z.initialize(t.userid,t.username),e&&(e.hasOwnProperty("blogID")&&r.Z.assignSuperProps({blog_id:e.blogID}),e.hasOwnProperty("platform")&&r.Z.assignSuperProps({platform:e.platform})),r.Z.setMcAnalyticsEnabled(!0)}function a(e,t={}){void 0!==t&&"object"==typeof t||(t={}),e&&e.length&&void 0!==r.Z&&r.Z.tracks&&r.Z.mc&&(e=0!==(e=e.replace(/-/g,"_")).indexOf("jetpack_idc_")?"jetpack_idc_"+e:e,r.Z.tracks.recordEvent(e,t),e=(e=e.replace("jetpack_idc_","")).replace(/_/g,"-"),r.Z.mc.bumpStat("jetpack-idc",e))}},8510:e=>{"use strict";if(void 0==={consumer_slug:"identity_crisis"}){var t=new Error('Cannot find module \'{"consumer_slug":"identity_crisis"}\'');throw t.code="MODULE_NOT_FOUND",t}e.exports={consumer_slug:"identity_crisis"}},9196:e=>{"use strict";e.exports=window.React},5609:e=>{"use strict";e.exports=window.wp.components},4333:e=>{"use strict";e.exports=window.wp.compose},9818:e=>{"use strict";e.exports=window.wp.data},9307:e=>{"use strict";e.exports=window.wp.element},5736:e=>{"use strict";e.exports=window.wp.i18n},6483:e=>{"use strict";e.exports=window.wp.url},7953:e=>{function t(){return e.exports=t=Object.assign?Object.assign.bind():function(e){for(var t=1;t{"use strict";function r(e){var t,n,s="";if("string"==typeof e||"number"==typeof e)s+=e;else if("object"==typeof e)if(Array.isArray(e)){var a=e.length;for(t=0;ts});const s=function(){for(var e,t,n=0,s="",a=arguments.length;n{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{"use strict";var e=n(7381),t=n(9307),r=n(9196),s=n.n(r);window.addEventListener("load",(()=>function(){if(!window.hasOwnProperty("JP_IDENTITY_CRISIS__INITIAL_STATE"))return;const n=document.getElementById(window.JP_IDENTITY_CRISIS__INITIAL_STATE.containerID||"jp-identity-crisis-container");if(null===n)return;const{WP_API_root:r,WP_API_nonce:a,wpcomHomeUrl:o,currentUrl:c,redirectUri:i,tracksUserData:l,tracksEventData:d,isSafeModeConfirmed:p,consumerData:m,isAdmin:u,possibleDynamicSiteUrlDetected:h,isDevelopmentSite:g}=window.JP_IDENTITY_CRISIS__INITIAL_STATE;if(!p){const p=s().createElement(e.Z,{wpcomHomeUrl:o,currentUrl:c,apiRoot:r,apiNonce:a,redirectUri:i,tracksUserData:l||{},tracksEventData:d,customContent:m.hasOwnProperty("customContent")?m.customContent:{},isAdmin:u,logo:m.hasOwnProperty("logo")?m.logo:void 0,possibleDynamicSiteUrlDetected:h,isDevelopmentSite:g});t.createRoot(n).render(p)}}()))})()})(); \ No newline at end of file +__("%1$s settings, stats, and subscribers will start fresh. %2$s will keep its data as is.","jetpack-connection"),k,h),{hostname:m().createElement("strong",null),em:m().createElement("em",null),strong:m().createElement("strong",null)}))),m().createElement("div",{className:"jp-idc__idc-screen__card-action-bottom"},m().createElement("div",null,p?null:((e,t)=>m().createElement("div",null,m().createElement("div",{className:"jp-idc__idc-screen__card-action-sitename"},e),m().createElement(a.Dashicon,{icon:"minus",className:"jp-idc__idc-screen__card-action-separator"}),m().createElement("div",{className:"jp-idc__idc-screen__card-action-sitename"},t)))(h,k)),m().createElement(a.Button,{className:"jp-idc__idc-screen__card-action-button",label:y,onClick:n,disabled:_},t?m().createElement(s.Z,null):y),d&&(v=l.supportURL,m().createElement(f.Z,null,(0,c.createInterpolateElement)(__("Could not create the connection. Retry or find out more here.","jetpack-connection"),{a:m().createElement("a",{href:v||(0,r.Z)("jetpack-support-safe-mode"),rel:"noopener noreferrer",target:"_blank"})})))));var v};k.propTypes={wpcomHomeUrl:d().string.isRequired,currentUrl:d().string.isRequired,isStartingFresh:d().bool,startFreshCallback:d().func,customContent:d().shape(h.Z),hasError:d().bool,isDevelopmentSite:d().bool};const _=k},3171:(e,t,n)=>{"use strict";n.d(t,{Z:()=>_});var r=n(6895),s=n(5033),a=n(5609),o=n(9818),c=n(9307),i=n(5736),l=n(7301),d=n.n(l),p=n(9196),m=n.n(p),u=n(2678),h=n(7144),g=n(2115),f=n(6637);const __=i.__,k=e=>{const t=(0,g.Z)(e.wpcomHomeUrl),n=(0,g.Z)(e.currentUrl),l=(0,o.useSelect)((e=>e(u.t).getIsActionInProgress()),[]),{isMigrating:d=!1,migrateCallback:p=()=>{},customContent:h={},hasError:k=!1}=e,_=h.migrateButtonLabel||__("Move your settings","jetpack-connection");return m().createElement("div",{className:"jp-idc__idc-screen__card-action-base"+(k?" jp-idc__idc-screen__card-action-error":"")},m().createElement("div",{className:"jp-idc__idc-screen__card-action-top"},m().createElement("h4",null,h.migrateCardTitle?(0,c.createInterpolateElement)(h.migrateCardTitle,{em:m().createElement("em",null)}):__("Move Jetpack data","jetpack-connection")),m().createElement("p",null,(0,c.createInterpolateElement)(h.migrateCardBodyText||(0,i.sprintf)(/* translators: %1$s: The current site domain name. %2$s: The original site domain name. */ +__("Move all your settings, stats and subscribers to your other URL, %1$s. %2$s will be disconnected from Jetpack.","jetpack-connection"),n,t),{hostname:m().createElement("strong",null),em:m().createElement("em",null),strong:m().createElement("strong",null)}))),m().createElement("div",{className:"jp-idc__idc-screen__card-action-bottom"},m().createElement("div",{className:"jp-idc__idc-screen__card-action-sitename"},t),m().createElement(a.Dashicon,{icon:"arrow-down-alt",className:"jp-idc__idc-screen__card-action-separator"}),m().createElement("div",{className:"jp-idc__idc-screen__card-action-sitename"},n),m().createElement(a.Button,{className:"jp-idc__idc-screen__card-action-button",label:_,onClick:p,disabled:l},d?m().createElement(s.Z,null):_),k&&(y=h.supportURL,m().createElement(f.Z,null,(0,c.createInterpolateElement)(__("Could not move your settings. Retry or find out more here.","jetpack-connection"),{a:m().createElement("a",{href:y||(0,r.Z)("jetpack-support-safe-mode"),rel:"noopener noreferrer",target:"_blank"})})))));var y};k.propTypes={wpcomHomeUrl:d().string.isRequired,currentUrl:d().string.isRequired,isMigrating:d().bool,migrateCallback:d().func,customContent:d().shape(h.Z),hasError:d().bool};const _=k},5489:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var r=n(9196),s=n.n(r);const a=()=>s().createElement("svg",{className:"error-gridicon",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",height:24},s().createElement("rect",{x:"0",fill:"none",width:"24",height:"24"}),s().createElement("g",null,s().createElement("path",{d:"M12 4c4.411 0 8 3.589 8 8s-3.589 8-8 8-8-3.589-8-8 3.589-8 8-8m0-2C6.477 2 2 6.477 2 12s4.477 10 10 10 10-4.477 10-10S17.523 2 12 2zm1 13h-2v2h2v-2zm-2-2h2l.5-6h-3l.5 6z"})))},6637:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(9196),s=n.n(r),a=n(5489);n(6611);const o=e=>{const{children:t}=e;return s().createElement("div",{className:"jp-idc__error-message"},s().createElement(a.Z,null),s().createElement("span",null,t))}},7381:(e,t,n)=>{"use strict";n.d(t,{Z:()=>k});var r=n(4743),s=n(9818),a=n(7301),o=n.n(a),c=n(9196),i=n.n(c),l=n(970),d=n(1272),p=n(3105),m=n(2678),u=n(7144),h=n(6521),g=n(567);const f=e=>{const{logo:t,customContent:n={},wpcomHomeUrl:a,currentUrl:o,apiNonce:u,apiRoot:f,redirectUri:k,tracksUserData:_,tracksEventData:y,isAdmin:v,possibleDynamicSiteUrlDetected:E,isDevelopmentSite:b}=e,[C,w]=(0,c.useState)(!1),j=(0,s.useSelect)((e=>e(m.t).getErrorType()),[]),{isMigrating:S,migrateCallback:F}=(0,l.Z)((0,c.useCallback)((()=>{w(!0)}),[w])),{isStartingFresh:I,startFreshCallback:U}=(0,p.Z)(k),{isFinishingMigration:T,finishMigrationCallback:O}=(0,d.Z)();return(0,c.useEffect)((()=>{r.ZP.setApiRoot(f),r.ZP.setApiNonce(u),(0,h.M)(y,_),y&&(Object.hasOwn(y,"isAdmin")&&y.isAdmin?(0,h.Z)("notice_view"):(0,h.Z)("non_admin_notice_view",{page:!!Object.hasOwn(y,"currentScreen")&&y.currentScreen}))}),[f,u,_,y]),i().createElement(g.Z,{logo:t,customContent:n,wpcomHomeUrl:a,currentUrl:o,redirectUri:k,isMigrating:S,migrateCallback:F,isMigrated:C,finishMigrationCallback:O,isFinishingMigration:T,isStartingFresh:I,startFreshCallback:U,isAdmin:v,hasStaySafeError:"safe-mode"===j,hasFreshError:"start-fresh"===j,hasMigrateError:"migrate"===j,possibleDynamicSiteUrlDetected:E,isDevelopmentSite:b})};f.propTypes={logo:o().object,customContent:o().shape(u.Z),wpcomHomeUrl:o().string.isRequired,currentUrl:o().string.isRequired,redirectUri:o().string.isRequired,apiRoot:o().string.isRequired,apiNonce:o().string.isRequired,tracksUserData:o().object,tracksEventData:o().object,isAdmin:o().bool.isRequired,possibleDynamicSiteUrlDetected:o().bool,isDevelopmentSite:o().bool};const k=f},5533:(e,t,n)=>{"use strict";n.d(t,{Z:()=>f});var r=n(6895),s=n(9307),a=n(5736),o=n(7301),c=n.n(o),i=n(9196),l=n.n(i),d=n(7144),p=n(2115),m=n(9477),u=n(3171),h=n(2533);const __=a.__,g=e=>{const{wpcomHomeUrl:t,currentUrl:n,isMigrating:o=!1,migrateCallback:c,isStartingFresh:i=!1,startFreshCallback:d,customContent:g={},hasMigrateError:f=!1,hasFreshError:k=!1,hasStaySafeError:_=!1,possibleDynamicSiteUrlDetected:y=!1,isDevelopmentSite:v}=e,E=(0,p.Z)(e.wpcomHomeUrl),b=(0,p.Z)(e.currentUrl);return l().createElement(l().Fragment,null,l().createElement("h2",null,g.mainTitle?(0,s.createInterpolateElement)(g.mainTitle,{em:l().createElement("em",null)}):__("Safe Mode has been activated","jetpack-connection")),l().createElement("p",null,v?(0,s.createInterpolateElement)(g.mainBodyText||(0,a.sprintf)(/* translators: %1$s: The current site domain name. %2$s: The original site domain name. */ +__("Your site is in Safe Mode because %1$s appears to be a staging or development copy of %2$s.2 sites that are telling Jetpack they’re the same site. Learn more or troubleshoot common Safe mode issues.","jetpack-connection"),b,E),{span:l().createElement("span",{style:{display:"block"}}),hostname:l().createElement("strong",null),em:l().createElement("em",null),strong:l().createElement("strong",null),safeModeLink:l().createElement("a",{href:g.supportURL||(0,r.Z)("jetpack-support-safe-mode"),rel:"noopener noreferrer",target:"_blank"})}):(0,s.createInterpolateElement)(g.mainBodyText||__("Your site is in Safe Mode because you have 2 Jetpack-powered sites that appear to be duplicates. Two sites that are telling Jetpack they’re the same site. Learn more about safe mode.","jetpack-connection"),{safeModeLink:l().createElement("a",{href:g.supportURL||(0,r.Z)("jetpack-support-safe-mode"),rel:"noopener noreferrer",target:"_blank"}),em:l().createElement("em",null),strong:l().createElement("strong",null)})),y&&l().createElement("p",null,(0,s.createInterpolateElement)(g.dynamicSiteUrlText||__("Notice: It appears that your 'wp-config.php' file might be using dynamic site URL values. Dynamic site URLs could cause Jetpack to enter Safe Mode. Learn how to set a static site URL.","jetpack-connection"),{dynamicSiteUrlSupportLink:l().createElement("a",{href:g.dynamicSiteUrlSupportLink||(0,r.Z)("jetpack-idcscreen-dynamic-site-urls"),rel:"noopener noreferrer",target:"_blank"}),em:l().createElement("em",null),strong:l().createElement("strong",null)})),l().createElement("h3",null,__("Please select an option","jetpack-connection")),l().createElement("div",{className:"jp-idc__idc-screen__cards"+(f||k?" jp-idc__idc-screen__cards-error":"")},v?l().createElement(l().Fragment,null,l().createElement(m.Z,{wpcomHomeUrl:t,currentUrl:n,isStartingFresh:i,startFreshCallback:d,customContent:g,hasError:k,isDevelopmentSite:v}),l().createElement("div",{className:"jp-idc__idc-screen__cards-separator"},"or"),l().createElement(h.Z,{hasError:_,customContent:g,isDevelopmentSite:v})):l().createElement(l().Fragment,null,l().createElement(u.Z,{wpcomHomeUrl:t,currentUrl:n,isMigrating:o,migrateCallback:c,customContent:g,hasError:f}),l().createElement("div",{className:"jp-idc__idc-screen__cards-separator"},"or"),l().createElement(m.Z,{wpcomHomeUrl:t,currentUrl:n,isStartingFresh:i,startFreshCallback:d,customContent:g,hasError:k,isDevelopmentSite:v}))),v?null:l().createElement(h.Z,{hasError:_,customContent:g}))};g.propTypes={wpcomHomeUrl:c().string.isRequired,currentUrl:c().string.isRequired,isMigrating:c().bool,migrateCallback:c().func,isStartingFresh:c().bool,startFreshCallback:c().func,customContent:c().shape(d.Z),hasMigrateError:c().bool,hasFreshError:c().bool,hasStaySafeError:c().bool,possibleDynamicSiteUrlDetected:c().bool,isDevelopmentSite:c().bool};const f=g},1052:(e,t,n)=>{"use strict";n.d(t,{Z:()=>h});var r=n(5033),s=n(5609),a=n(9307),o=n(5736),c=n(7301),i=n.n(c),l=n(9196),d=n.n(l),p=n(7144),m=n(2115);const __=o.__,u=e=>{const{finishCallback:t=()=>{},isFinishing:n=!1,customContent:c={}}=e,i=(0,m.Z)(e.wpcomHomeUrl),l=(0,m.Z)(e.currentUrl),p=__("Got it, thanks","jetpack-connection");return d().createElement(d().Fragment,null,d().createElement("h2",null,c.migratedTitle?(0,a.createInterpolateElement)(c.migratedTitle,{em:d().createElement("em",null)}):__("Your Jetpack settings have migrated successfully","jetpack-connection")),d().createElement("p",null,(0,a.createInterpolateElement)(c.migratedBodyText||(0,o.sprintf)(/* translators: %1$s: The current site domain name. */ +__("Safe Mode has been switched off for %1$s website and Jetpack is fully functional.","jetpack-connection"),l),{hostname:d().createElement("strong",null),em:d().createElement("em",null),strong:d().createElement("strong",null)})),d().createElement("div",{className:"jp-idc__idc-screen__card-migrated"},d().createElement("div",{className:"jp-idc__idc-screen__card-migrated-hostname"},i),d().createElement(s.Dashicon,{icon:"arrow-down-alt",className:"jp-idc__idc-screen__card-migrated-separator"}),d().createElement(s.Dashicon,{icon:"arrow-right-alt",className:"jp-idc__idc-screen__card-migrated-separator-wide"}),d().createElement("div",{className:"jp-idc__idc-screen__card-migrated-hostname"},l)),d().createElement(s.Button,{className:"jp-idc__idc-screen__card-action-button jp-idc__idc-screen__card-action-button-migrated",onClick:t,label:p},n?d().createElement(r.Z,null):p))};u.propTypes={wpcomHomeUrl:i().string.isRequired,currentUrl:i().string.isRequired,finishCallback:i().func,isFinishing:i().bool,customContent:i().shape(p.Z)};const h=u},1064:(e,t,n)=>{"use strict";n.d(t,{Z:()=>m});var r=n(6895),s=n(9307),a=n(5736),o=n(7301),c=n.n(o),i=n(9196),l=n.n(i),d=n(7144);const __=a.__,p=e=>{const{customContent:t={}}=e;return l().createElement(l().Fragment,null,l().createElement("h2",null,t.nonAdminTitle?(0,s.createInterpolateElement)(t.nonAdminTitle,{em:l().createElement("em",null)}):__("Safe Mode has been activated","jetpack-connection")),l().createElement("p",null,(0,s.createInterpolateElement)(t.nonAdminBodyText||__("This site is in Safe Mode because there are 2 Jetpack-powered sites that appear to be duplicates. 2 sites that are telling Jetpack they’re the same site. Learn more about safe mode.","jetpack-connection"),{safeModeLink:l().createElement("a",{href:t.supportURL||(0,r.Z)("jetpack-support-safe-mode"),rel:"noopener noreferrer",target:"_blank"}),em:l().createElement("em",null),strong:l().createElement("strong",null)})),t.nonAdminBodyText?"":l().createElement("p",null,__("An administrator of this site can take Jetpack out of Safe Mode.","jetpack-connection")))};p.propTypes={customContent:c().shape(d.Z)};const m=p},567:(e,t,n)=>{"use strict";n.d(t,{Z:()=>g});var r=n(8868),s=n(9307),a=n(5736),o=n(7301),c=n.n(o),i=n(9196),l=n.n(i),d=n(7144),p=n(5533),m=n(1052),u=n(1064);n(7724);const __=a.__,h=e=>{const{logo:t=l().createElement(r.Z,{height:24}),customContent:n={},wpcomHomeUrl:a,currentUrl:o,redirectUri:c,isMigrating:i=!1,migrateCallback:d,isMigrated:h=!1,finishMigrationCallback:g,isFinishingMigration:f=!1,isStartingFresh:k=!1,startFreshCallback:_,isAdmin:y,hasMigrateError:v=!1,hasFreshError:E=!1,hasStaySafeError:b=!1,possibleDynamicSiteUrlDetected:C=!1,isDevelopmentSite:w}=e,j=y?"":l().createElement(u.Z,{customContent:n});let S="";return y&&(S=h?l().createElement(m.Z,{wpcomHomeUrl:a,currentUrl:o,finishCallback:g,isFinishing:f,customContent:n}):l().createElement(p.Z,{wpcomHomeUrl:a,currentUrl:o,redirectUri:c,customContent:n,isMigrating:i,migrateCallback:d,isStartingFresh:k,startFreshCallback:_,hasMigrateError:v,hasFreshError:E,hasStaySafeError:b,possibleDynamicSiteUrlDetected:C,isDevelopmentSite:w})),l().createElement("div",{className:"jp-idc__idc-screen"+(h?" jp-idc__idc-screen__success":"")},l().createElement("div",{className:"jp-idc__idc-screen__header"},l().createElement("div",{className:"jp-idc__idc-screen__logo"},((e,t)=>"string"==typeof e||e instanceof String?l().createElement("img",{src:e,alt:t,className:"jp-idc__idc-screen__logo-image"}):e)(t,n.logoAlt||"")),l().createElement("div",{className:"jp-idc__idc-screen__logo-label"},n.headerText?(0,s.createInterpolateElement)(n.headerText,{em:l().createElement("em",null),strong:l().createElement("strong",null)}):__("Safe Mode","jetpack-connection"))),j,S)};h.propTypes={logo:c().object,customContent:c().shape(d.Z),wpcomHomeUrl:c().string.isRequired,currentUrl:c().string.isRequired,redirectUri:c().string.isRequired,isMigrating:c().bool,migrateCallback:c().func,isMigrated:c().bool,finishMigrationCallback:c().func,isFinishingMigration:c().bool,isStartingFresh:c().bool,startFreshCallback:c().func,isAdmin:c().bool.isRequired,hasMigrateError:c().bool,hasFreshError:c().bool,hasStaySafeError:c().bool,possibleDynamicSiteUrlDetected:c().bool,isDevelopmentSite:c().bool};const g=h},2533:(e,t,n)=>{"use strict";n.d(t,{Z:()=>b});var r=n(4743),s=n(5033),a=n(6895),o=n(5609),c=n(4333),i=n(9818),l=n(9307),d=n(5736),p=n(6483),m=n(7301),u=n.n(m),h=n(9196),g=n.n(h),f=n(2678),k=n(7144),_=n(6521),y=n(6637);n(310);const __=d.__,v=e=>g().createElement(y.Z,null,(0,l.createInterpolateElement)(__("Could not stay in safe mode. Retry or find out more here.","jetpack-connection"),{a:g().createElement("a",{href:e||(0,a.Z)("jetpack-support-safe-mode"),rel:"noopener noreferrer",target:"_blank"})})),E=e=>{const{isActionInProgress:t,setIsActionInProgress:n,setErrorType:c,clearErrorType:i,hasError:d=!1,customContent:m,isDevelopmentSite:u}=e,[f,k]=(0,h.useState)(!1),y=m.stayInSafeModeButtonLabel||__("Stay in Safe mode","jetpack-connection"),E=(0,h.useCallback)((()=>{t||(k(!0),n(!0),i(),(0,_.Z)("confirm_safe_mode"),r.ZP.confirmIDCSafeMode().then((()=>{window.location.href=(0,p.removeQueryArgs)(window.location.href,"jetpack_idc_clear_confirmation","_wpnonce")})).catch((e=>{throw n(!1),k(!1),c("safe-mode"),e})))}),[t,n,c,i]);return g().createElement(g().Fragment,null,u?g().createElement("div",{className:"jp-idc__idc-screen__card-action-base"+(d?" jp-idc__idc-screen__card-action-error":"")},g().createElement("div",{className:"jp-idc__idc-screen__card-action-top"},g().createElement("h4",null,m.safeModeTitle?(0,l.createInterpolateElement)(m.safeModeTitle,{em:g().createElement("em",null)}):__("Stay in Safe Mode","jetpack-connection")),g().createElement("div",null,(0,l.createInterpolateElement)(m.startFreshCardBodyText||/* translators: %1$s: The current site domain name. %2$s: The original site domain name. */ +__("

Recommended for

short-lived test sitessites that will be cloned back to production after testing

Please note that staying in Safe mode will disable some Jetpack features, including security features such as SSO, firewall, and site monitor. Learn more.

","jetpack-connection"),{p:g().createElement("p",null),hostname:g().createElement("strong",null),em:g().createElement("em",null),strong:g().createElement("strong",null),list:g().createElement("ul",null),item:g().createElement("li",null),safeModeLink:g().createElement("a",{href:m.supportURL||(0,a.Z)("jetpack-support-safe-mode"),rel:"noopener noreferrer",target:"_blank"})}))),g().createElement("div",{className:"jp-idc__idc-screen__card-action-bottom"},g().createElement(o.Button,{className:"jp-idc__idc-screen__card-action-button-secondary",label:y,onClick:E,disabled:t},f?g().createElement(s.Z,{color:"black"}):y),d&&v(m.supportURL))):g().createElement("div",{className:"jp-idc__safe-mode"},f?g().createElement("div",{className:"jp-idc__safe-mode__staying-safe"},g().createElement(s.Z,{color:"black"}),g().createElement("span",null,__("Finishing setting up Safe mode…","jetpack-connection"))):(b=E,C=t,(0,l.createInterpolateElement)(__("Or decide later and stay in ","jetpack-connection"),{button:g().createElement(o.Button,{label:__("Safe mode","jetpack-connection"),variant:"link",onClick:b,disabled:C})})),d&&v(m.supportURL)));var b,C};E.propTypes={isActionInProgress:u().bool,setIsActionInProgress:u().func.isRequired,setErrorType:u().func.isRequired,clearErrorType:u().func.isRequired,hasError:u().bool,customContent:u().shape(k.Z),isDevelopmentSite:u().bool};const b=(0,c.compose)([(0,i.withSelect)((e=>({isActionInProgress:e(f.t).getIsActionInProgress()}))),(0,i.withDispatch)((e=>({setIsActionInProgress:e(f.t).setIsActionInProgress,setErrorType:e(f.t).setErrorType,clearErrorType:e(f.t).clearErrorType})))])(E)},1272:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(9196);const s=()=>{const[e,t]=(0,r.useState)(!1),n=(0,r.useCallback)((()=>{e||(t(!0),window.location.reload())}),[e,t]);return{isFinishingMigration:e,finishMigrationCallback:n}}},970:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(4743),s=n(9818),a=n(9196),o=n(2678),c=n(6521);const i=e=>{const[t,n]=(0,a.useState)(!1),i=(0,s.useSelect)((e=>e(o.t).getIsActionInProgress()),[]),{setIsActionInProgress:l,setErrorType:d,clearErrorType:p}=(0,s.useDispatch)(o.t);return{isMigrating:t,migrateCallback:(0,a.useCallback)((()=>{i||((0,c.Z)("migrate"),l(!0),n(!0),p(),r.ZP.migrateIDC().then((()=>{n(!1),e&&"[object Function]"==={}.toString.call(e)&&e()})).catch((e=>{throw l(!1),n(!1),d("migrate"),e})))}),[n,e,i,l,d,p])}}},3105:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(4743),s=n(9818),a=n(9196),o=n(2678),c=n(6521);const i=e=>{const[t,n]=(0,a.useState)(!1),i=(0,s.useSelect)((e=>e(o.t).getIsActionInProgress()),[]),{setIsActionInProgress:l,setErrorType:d,clearErrorType:p}=(0,s.useDispatch)(o.t);return{isStartingFresh:t,startFreshCallback:(0,a.useCallback)((()=>{i||((0,c.Z)("start_fresh"),l(!0),n(!0),p(),r.ZP.startIDCFresh(e).then((e=>{window.location.href=e+"&from=idc-notice"})).catch((e=>{throw l(!1),n(!1),d("start-fresh"),e})))}),[n,i,l,e,d,p])}}},136:(e,t,n)=>{"use strict";n.d(t,{ZP:()=>o,hG:()=>r,jk:()=>a,vC:()=>s});const r="SET_IS_ACTION_IN_PROGRESS",s="SET_ERROR_TYPE",a="CLEAR_ERROR_TYPE",o={setIsActionInProgress:e=>({type:r,isInProgress:e}),setErrorType:e=>({type:s,errorType:e}),clearErrorType:()=>({type:a})}},7773:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var r=n(9818),s=n(136);const a=(0,r.combineReducers)({isActionInProgress:(e=!1,t)=>t.type===s.hG?t.isInProgress:e,errorType:(e=null,t)=>{switch(t.type){case s.vC:return t.errorType;case s.jk:return null}return e}})},9416:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});const r={getIsActionInProgress:e=>e.isActionInProgress||!1,getErrorType:e=>e.errorType||null}},5943:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var r=n(9818);class s{static store=null;static mayBeInit(e,t){null===s.store&&(s.store=(0,r.createReduxStore)(e,t),(0,r.register)(s.store))}}const a=s},2678:(e,t,n)=>{"use strict";n.d(t,{t:()=>c});var r=n(136),s=n(7773),a=n(9416),o=n(5943);const c="jetpack-idc";o.Z.mayBeInit(c,{reducer:s.Z,actions:r.ZP,selectors:a.Z})},7144:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var r=n(7301),s=n.n(r);const a={headerText:s().string,logoAlt:s().string,mainTitle:s().string,mainBodyText:s().string,migratedTitle:s().string,migratedBodyText:s().string,migrateCardTitle:s().string,migrateButtonLabel:s().string,migrateCardBodyText:s().string,startFreshCardTitle:s().string,startFreshCardBodyText:s().string,startFreshButtonLabel:s().string,nonAdminTitle:s().string,nonAdminBodyText:s().string,supportURL:s().string,stayInSafeModeButtonLabel:s().string}},2115:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});const r=e=>/^https?:\/\//.test(e)?new URL(e).hostname:e.replace(/\/$/,"")},6521:(e,t,n)=>{"use strict";n.d(t,{M:()=>s,Z:()=>a});var r=n(6975);function s(e,t){t&&Object.hasOwn(t,"userid")&&Object.hasOwn(t,"username")&&r.Z.initialize(t.userid,t.username),e&&(Object.hasOwn(e,"blogID")&&r.Z.assignSuperProps({blog_id:e.blogID}),Object.hasOwn(e,"platform")&&r.Z.assignSuperProps({platform:e.platform})),r.Z.setMcAnalyticsEnabled(!0)}function a(e,t={}){void 0!==t&&"object"==typeof t||(t={}),e&&e.length&&void 0!==r.Z&&r.Z.tracks&&r.Z.mc&&(e=0!==(e=e.replace(/-/g,"_")).indexOf("jetpack_idc_")?"jetpack_idc_"+e:e,r.Z.tracks.recordEvent(e,t),e=(e=e.replace("jetpack_idc_","")).replace(/_/g,"-"),r.Z.mc.bumpStat("jetpack-idc",e))}},8510:e=>{"use strict";if(void 0==={consumer_slug:"identity_crisis"}){var t=new Error('Cannot find module \'{"consumer_slug":"identity_crisis"}\'');throw t.code="MODULE_NOT_FOUND",t}e.exports={consumer_slug:"identity_crisis"}},9196:e=>{"use strict";e.exports=window.React},5609:e=>{"use strict";e.exports=window.wp.components},4333:e=>{"use strict";e.exports=window.wp.compose},9818:e=>{"use strict";e.exports=window.wp.data},9307:e=>{"use strict";e.exports=window.wp.element},5736:e=>{"use strict";e.exports=window.wp.i18n},6483:e=>{"use strict";e.exports=window.wp.url},7953:e=>{function t(){return e.exports=t=Object.assign?Object.assign.bind():function(e){for(var t=1;t{"use strict";function r(e){var t,n,s="";if("string"==typeof e||"number"==typeof e)s+=e;else if("object"==typeof e)if(Array.isArray(e)){var a=e.length;for(t=0;ts});const s=function(){for(var e,t,n=0,s="",a=arguments.length;n{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{"use strict";var e=n(7381),t=n(9307),r=n(9196),s=n.n(r);window.addEventListener("load",(()=>function(){if(!Object.hasOwn(window,"JP_IDENTITY_CRISIS__INITIAL_STATE"))return;const n=document.getElementById(window.JP_IDENTITY_CRISIS__INITIAL_STATE.containerID||"jp-identity-crisis-container");if(null===n)return;const{WP_API_root:r,WP_API_nonce:a,wpcomHomeUrl:o,currentUrl:c,redirectUri:i,tracksUserData:l,tracksEventData:d,isSafeModeConfirmed:p,consumerData:m,isAdmin:u,possibleDynamicSiteUrlDetected:h,isDevelopmentSite:g}=window.JP_IDENTITY_CRISIS__INITIAL_STATE;if(!p){const p=s().createElement(e.Z,{wpcomHomeUrl:o,currentUrl:c,apiRoot:r,apiNonce:a,redirectUri:i,tracksUserData:l||{},tracksEventData:d,customContent:Object.hasOwn(m,"customContent")?m.customContent:{},isAdmin:u,logo:Object.hasOwn(m,"logo")?m.logo:void 0,possibleDynamicSiteUrlDetected:h,isDevelopmentSite:g});t.createRoot(n).render(p)}}()))})()})(); \ No newline at end of file diff --git a/vendor/automattic/jetpack-connection/src/class-package-version.php b/vendor/automattic/jetpack-connection/src/class-package-version.php index 9444c3ac..deff9a3a 100644 --- a/vendor/automattic/jetpack-connection/src/class-package-version.php +++ b/vendor/automattic/jetpack-connection/src/class-package-version.php @@ -12,7 +12,7 @@ */ class Package_Version { - const PACKAGE_VERSION = '2.12.4'; + const PACKAGE_VERSION = '2.12.5-alpha'; const PACKAGE_SLUG = 'connection'; diff --git a/vendor/automattic/jetpack-connection/src/identity-crisis/_inc/admin.jsx b/vendor/automattic/jetpack-connection/src/identity-crisis/_inc/admin.jsx index 1f899d79..8d731738 100644 --- a/vendor/automattic/jetpack-connection/src/identity-crisis/_inc/admin.jsx +++ b/vendor/automattic/jetpack-connection/src/identity-crisis/_inc/admin.jsx @@ -9,7 +9,7 @@ import './style.scss'; * The initial renderer function. */ function render() { - if ( ! window.hasOwnProperty( 'JP_IDENTITY_CRISIS__INITIAL_STATE' ) ) { + if ( ! Object.hasOwn( window, 'JP_IDENTITY_CRISIS__INITIAL_STATE' ) ) { return; } @@ -47,10 +47,10 @@ function render() { tracksUserData={ tracksUserData || {} } tracksEventData={ tracksEventData } customContent={ - consumerData.hasOwnProperty( 'customContent' ) ? consumerData.customContent : {} + Object.hasOwn( consumerData, 'customContent' ) ? consumerData.customContent : {} } isAdmin={ isAdmin } - logo={ consumerData.hasOwnProperty( 'logo' ) ? consumerData.logo : undefined } + logo={ Object.hasOwn( consumerData, 'logo' ) ? consumerData.logo : undefined } possibleDynamicSiteUrlDetected={ possibleDynamicSiteUrlDetected } isDevelopmentSite={ isDevelopmentSite } /> diff --git a/vendor/automattic/jetpack-jitm/composer.json b/vendor/automattic/jetpack-jitm/composer.json index 9286a587..4b603996 100644 --- a/vendor/automattic/jetpack-jitm/composer.json +++ b/vendor/automattic/jetpack-jitm/composer.json @@ -7,7 +7,7 @@ "php": ">=7.0", "automattic/jetpack-a8c-mc-stats": "^2.0.2", "automattic/jetpack-assets": "^2.3.4", - "automattic/jetpack-connection": "^2.12.4", + "automattic/jetpack-connection": "^2.12.5-alpha", "automattic/jetpack-device-detection": "^2.1.4", "automattic/jetpack-logo": "^2.0.4", "automattic/jetpack-redirect": "^2.0.3", diff --git a/vendor/automattic/jetpack-masterbar/composer.json b/vendor/automattic/jetpack-masterbar/composer.json index 37c8fe7f..c91bdbc0 100644 --- a/vendor/automattic/jetpack-masterbar/composer.json +++ b/vendor/automattic/jetpack-masterbar/composer.json @@ -9,7 +9,7 @@ "automattic/jetpack-blaze": "^0.22.7", "automattic/jetpack-compat": "^3.0.2", "automattic/jetpack-device-detection": "^2.1.4", - "automattic/jetpack-connection": "^2.12.4", + "automattic/jetpack-connection": "^2.12.5-alpha", "automattic/jetpack-jitm": "^3.1.18", "automattic/jetpack-logo": "^2.0.4", "automattic/jetpack-plans": "^0.4.8", diff --git a/vendor/automattic/jetpack-mu-wpcom/composer.json b/vendor/automattic/jetpack-mu-wpcom/composer.json index ceb50fcb..999898c7 100644 --- a/vendor/automattic/jetpack-mu-wpcom/composer.json +++ b/vendor/automattic/jetpack-mu-wpcom/composer.json @@ -9,7 +9,7 @@ "automattic/jetpack-blocks": "^2.0.5", "automattic/jetpack-calypsoify": "^0.1.4", "automattic/jetpack-classic-theme-helper": "^0.5.3", - "automattic/jetpack-connection": "^2.12.4", + "automattic/jetpack-connection": "^2.12.5-alpha", "automattic/jetpack-masterbar": "^0.8.1-alpha", "automattic/jetpack-redirect": "^2.0.3", "automattic/jetpack-stats-admin": "^0.21.1", diff --git a/vendor/automattic/jetpack-mu-wpcom/src/build/core-customizer-css-preview/core-customizer-css-preview.asset.php b/vendor/automattic/jetpack-mu-wpcom/src/build/core-customizer-css-preview/core-customizer-css-preview.asset.php index e1872948..bad62773 100644 --- a/vendor/automattic/jetpack-mu-wpcom/src/build/core-customizer-css-preview/core-customizer-css-preview.asset.php +++ b/vendor/automattic/jetpack-mu-wpcom/src/build/core-customizer-css-preview/core-customizer-css-preview.asset.php @@ -1 +1 @@ - array(), 'version' => '2f8dfdfb1dd9c116f519'); + array(), 'version' => '85f3193eb7aeed0e07d3'); diff --git a/vendor/automattic/jetpack-mu-wpcom/src/build/core-customizer-css-preview/core-customizer-css-preview.js b/vendor/automattic/jetpack-mu-wpcom/src/build/core-customizer-css-preview/core-customizer-css-preview.js index 775529a6..deb0982a 100644 --- a/vendor/automattic/jetpack-mu-wpcom/src/build/core-customizer-css-preview/core-customizer-css-preview.js +++ b/vendor/automattic/jetpack-mu-wpcom/src/build/core-customizer-css-preview/core-customizer-css-preview.js @@ -1 +1 @@ -(()=>{var e,s;e=wp.customize,s=jQuery,e.settingPreviewHandlers?e.settingPreviewHandlers.custom_css=function(){}:parent.console.warn("Missing core patch that adds support for settingPreviewHandlers"),e.selectiveRefresh.partialConstructor.custom_css=e.selectiveRefresh.Partial.extend({refresh:function(){const t=this,r=e("jetpack_custom_css[preprocessor]").get();if(jpCustomizerCssPreview.preprocessors.hasOwnProperty(r))return e.selectiveRefresh.Partial.prototype.refresh.call(t);const c=new s.Deferred,n=e("custom_css["+e.settings.theme.stylesheet+"]");return _.each(t.placements(),(function(e){e.container.text(n.get())})),c.resolve(),c.promise()}})})(); \ No newline at end of file +(()=>{var e,s;e=wp.customize,s=jQuery,e.settingPreviewHandlers?e.settingPreviewHandlers.custom_css=function(){}:parent.console.warn("Missing core patch that adds support for settingPreviewHandlers"),e.selectiveRefresh.partialConstructor.custom_css=e.selectiveRefresh.Partial.extend({refresh:function(){const t=this,r=e("jetpack_custom_css[preprocessor]").get();if(Object.hasOwn(jpCustomizerCssPreview.preprocessors,r))return e.selectiveRefresh.Partial.prototype.refresh.call(t);const c=new s.Deferred,n=e("custom_css["+e.settings.theme.stylesheet+"]");return _.each(t.placements(),(function(e){e.container.text(n.get())})),c.resolve(),c.promise()}})})(); \ No newline at end of file diff --git a/vendor/automattic/jetpack-mu-wpcom/src/build/tags-education/tags-education.asset.php b/vendor/automattic/jetpack-mu-wpcom/src/build/tags-education/tags-education.asset.php index 34cb229f..1b916e24 100644 --- a/vendor/automattic/jetpack-mu-wpcom/src/build/tags-education/tags-education.asset.php +++ b/vendor/automattic/jetpack-mu-wpcom/src/build/tags-education/tags-education.asset.php @@ -1 +1 @@ - array('jetpack-script-data', 'lodash', 'react', 'react-jsx-runtime', 'wp-api-fetch', 'wp-components', 'wp-compose', 'wp-data', 'wp-element', 'wp-hooks', 'wp-i18n', 'wp-plugins', 'wp-url'), 'version' => '2954cfb112969102d015'); + array('jetpack-script-data', 'lodash', 'react', 'react-jsx-runtime', 'wp-api-fetch', 'wp-components', 'wp-compose', 'wp-data', 'wp-element', 'wp-hooks', 'wp-i18n', 'wp-plugins', 'wp-url'), 'version' => 'a7b08d48c0019a1926a2'); diff --git a/vendor/automattic/jetpack-mu-wpcom/src/build/tags-education/tags-education.js b/vendor/automattic/jetpack-mu-wpcom/src/build/tags-education/tags-education.js index 87bcff58..fc653fb0 100644 --- a/vendor/automattic/jetpack-mu-wpcom/src/build/tags-education/tags-education.js +++ b/vendor/automattic/jetpack-mu-wpcom/src/build/tags-education/tags-education.js @@ -1 +1 @@ -(()=>{var e={73625:(e,t,n)=>{"use strict";n.d(t,{bU:()=>u,v8:()=>a});var r=n(99501),s=n(94333),o=n(65736),i=n(99196);const c=(0,i.createContext)(null);function a(){return function(e=""){if(!e)return"";const t=e.toLowerCase();return(["pt_br","pt-br","zh_tw","zh-tw","zh_cn","zh-cn","zh_sg","zh-sg"].includes(t)?t.replace("_","-"):t.replace(/([-_].*)$/i,""))||"en"}(function(){const e=o.getLocaleData()||{};return e[""]?.lang||e[""]?.language||""}())}function u(){const e=(0,i.useContext)(c),t=!!e,[n,r]=(0,i.useState)(a());return(0,i.useEffect)((()=>{if(!t)return r(a()),o.subscribe((()=>{r(a())}))}),[t]),e||n||"undefined"!=typeof window&&window._currentUserLocale||"en"}(0,s.createHigherOrderComponent)((e=>t=>{const n={...t,locale:u()};return(0,r.jsx)(e,{...n})}),"withLocale")},70560:(e,t,n)=>{"use strict";n.d(t,{GG:()=>r,Xb:()=>u,_r:()=>h,dH:()=>s,hI:()=>d,iT:()=>o,kV:()=>c,mL:()=>p,vS:()=>l,xh:()=>a,xn:()=>i});const r=["en","ja","es","pt","fr","pt-br"],s=["en","pt-br","de","es","fr","it"],o=["en","fr","de","es"],i=["en","fr","de","es"],c=["en","es"],a=["ar","de","el","es","fr","he","id","it","ja","ko","nl","pt-br","ro","ru","sv","tr","zh-cn","zh-tw"],u={"pt-br":"br",br:"bre",zh:"zh-cn","zh-hk":"zh-tw","zh-sg":"zh-cn",kr:"ko"},d=["ar","de","en","es","fr","he","id","it","ja","ko","nl","pt-br","ru","sv","tr","zh-cn","zh-tw"],p=["ar","de","el","en","es","fa","fi","fr","id","it","ja","nl","pt","pt-br","ru","sv","th","tl","tr"],l=["es","pt-br","de","fr","he","ja","it","nl","ru","tr","id","zh-cn","zh-tw","ko","ar","sv"],h=["en","ar","de","es","fr","he","id","it","ja","ko","nl","pt-br","ro","ru","sv","tr","zh-cn","zh-tw"]},34369:(e,t,n)=>{"use strict";n.d(t,{aq:()=>m});var r=n(99501),s=n(94333),o=n(99196),i=n(73625),c=n(70560);const a="http://__domain__.invalid";const u=(e,t=[])=>(n,r)=>(t.includes(r)&&"en"!==r&&n.pathname.substr(0,r.length+2)!=="/"+r+"/"&&(n.host=`${c.Xb[r]||r}.${e}`),n),d=(e,t=[],n=null)=>(r,s)=>(r.host="wordpress.com","object"==typeof n&&n instanceof RegExp&&!n.test(r.pathname)&&(t=[]),r.pathname=e+r.pathname,t.includes(s)&&"en"!==s&&(r.pathname=s+r.pathname),r),p=(e=[],t=null,n)=>(r,s)=>"object"==typeof t&&t instanceof RegExp&&!t.test(r.pathname)?r:e.includes(s)&&"en"!==s?("prefix"===n?r.pathname=s+r.pathname:"suffix"===n&&(r.pathname.endsWith("/")?r.pathname+=s+"/":r.pathname+="/"+s),r):r,l=(e=[],t=null)=>(n,r)=>p(e,t,"prefix")(n,r),h=(e=[],t=null)=>(n,r)=>p(e,t,"suffix")(n,r),g={"wordpress.com/support/":l(c.hI),"wordpress.com/forums/":l(c.mL),"wordpress.com/blog/":l(c.GG,/^\/blog\/?$/),"wordpress.com/go/":(e,t)=>["/go/","/go"].includes(e.pathname)||"es"===t?l(c.dH)(e,t):e,"wordpress.com/pricing/":l(c.xh),"wordpress.com/tos/":l(c.vS),"wordpress.com/wp-admin/":u("wordpress.com",c.vS),"wordpress.com/wp-login.php":u("wordpress.com",c.vS),"jetpack.com":l(c._r),"cloud.jetpack.com":l(c._r),"en.support.wordpress.com":d("/support",c.hI),"en.blog.wordpress.com":d("/blog",c.GG,/^\/$/),"apps.wordpress.com":l(c.vS),"en.forums.wordpress.com":d("/forums",c.mL),"automattic.com/privacy/":l(c.iT),"automattic.com/cookies/":l(c.xn),"wordpress.com/help/contact/":(e,t,n)=>n?e:(e.pathname=e.pathname.replace(/\/help\//,"/support/"),l(c.hI)(e,t)),"wordpress.com":(e,t)=>/^\/(checkout|me)(\/|$)/.test(e.pathname)||/\/([a-z0-9-]+\.)+[a-z]{2,}\/?$/.test(e.pathname)?e:l(c.vS)(e,t),"wordpress.com/theme/":(e,t,n)=>n?e:l(c.vS)(e,t),"wordpress.com/themes/":(e,t,n)=>n?e:l(c.vS)(e,t),"wordpress.com/plugins/":(e,t,n)=>n?e:l(c.vS)(e,t),"wordpress.com/log-in/":(e,t,n)=>n?e:h(c.vS)(e,t),"wordpress.com/start/":(e,t,n)=>n?e:h(c.vS)(e,t),"wordpress.com/learn/":(e,t)=>e.pathname.includes("/learn/webinars/")&&"es"===t?(e.pathname=e.pathname.replace("/learn/webinars/","/learn/es/webinars/"),e):h(c.kV)(e,t),"wordpress.com/plans/":(e,t,n)=>n||"/plans/"!==e.pathname?e:l(c.xh)(e,t),"wordpress.com/setup/":(e,t,n)=>n?e:h(c.vS)(e,t)};function f(e){try{return new URL(String(e),a).pathname.endsWith("/")}catch(e){return!1}}function m(e,t=function(){return(0,i.v8)()??"en"}(),n=!0,r=!1){let s;try{s=new URL(String(e),a)}catch(t){return e}if(s.origin===a)return e;s.protocol="https:",s.pathname.endsWith(".php")||(s.pathname=(s.pathname+"/").replace(/\/+$/,"/"));const o=s.pathname.substr(0,1+s.pathname.indexOf("/",1));if("en.wordpress.com"===s.host&&(s.host="wordpress.com"),"/"+t+"/"===o)return e;const c=[s.host,s.host+o,s.host+s.pathname];for(let o=c.length-1;o>=0;o--)if(c[o]in g){const i=g[c[o]](s,t,n).href;if(!r)return i;try{const t=new URL(i);return f(e)||(t.pathname=t.pathname.replace(/\/+$/,"")),t.href}catch{return i}}return e}function w(){const e=(0,i.bU)();return(0,o.useCallback)(((t,n,r,s)=>m(t,n||e,r,s)),[e])}(0,s.createHigherOrderComponent)((e=>t=>{const n={...t,localizeUrl:w()};return(0,r.jsx)(e,{...n})}),"withLocalizeUrl")},951:(e,t,n)=>{t.formatArgs=function(t){if(t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),!this.useColors)return;const n="color: "+this.color;t.splice(1,0,n,"color: inherit");let r=0,s=0;t[0].replace(/%[a-zA-Z%]/g,(e=>{"%%"!==e&&(r++,"%c"===e&&(s=r))})),t.splice(s,0,n)},t.save=function(e){try{e?t.storage.setItem("debug",e):t.storage.removeItem("debug")}catch(e){}},t.load=function(){let e;try{e=t.storage.getItem("debug")}catch(e){}!e&&"undefined"!=typeof process&&"env"in process&&(e=process.env.DEBUG);return e},t.useColors=function(){if("undefined"!=typeof window&&window.process&&("renderer"===window.process.type||window.process.__nwjs))return!0;if("undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;return"undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)},t.storage=function(){try{return localStorage}catch(e){}}(),t.destroy=(()=>{let e=!1;return()=>{e||(e=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})(),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],t.log=console.debug||console.log||(()=>{}),e.exports=n(51741)(t);const{formatters:r}=e.exports;r.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}},51741:(e,t,n)=>{e.exports=function(e){function t(e){let n,s,o,i=null;function c(...e){if(!c.enabled)return;const r=c,s=Number(new Date),o=s-(n||s);r.diff=o,r.prev=n,r.curr=s,n=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,((n,s)=>{if("%%"===n)return"%";i++;const o=t.formatters[s];if("function"==typeof o){const t=e[i];n=o.call(r,t),e.splice(i,1),i--}return n})),t.formatArgs.call(r,e);(r.log||t.log).apply(r,e)}return c.namespace=e,c.useColors=t.useColors(),c.color=t.selectColor(e),c.extend=r,c.destroy=t.destroy,Object.defineProperty(c,"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(c),c}function r(e,n){const r=t(this.namespace+(void 0===n?":":n)+e);return r.log=this.log,r}function s(e){return e.toString().substring(2,e.toString().length-2).replace(/\.\*\?$/,"*")}return t.debug=t,t.default=t,t.coerce=function(e){if(e instanceof Error)return e.stack||e.message;return e},t.disable=function(){const e=[...t.names.map(s),...t.skips.map(s).map((e=>"-"+e))].join(",");return t.enable(""),e},t.enable=function(e){let n;t.save(e),t.namespaces=e,t.names=[],t.skips=[];const r=("string"==typeof e?e:"").split(/[\s,]+/),s=r.length;for(n=0;n{t[n]=e[n]})),t.names=[],t.skips=[],t.formatters={},t.selectColor=function(e){let n=0;for(let t=0;t{var t=1e3,n=60*t,r=60*n,s=24*r,o=7*s,i=365.25*s;function c(e,t,n,r){var s=t>=1.5*n;return Math.round(e/n)+" "+r+(s?"s":"")}e.exports=function(e,a){a=a||{};var u=typeof e;if("string"===u&&e.length>0)return function(e){if((e=String(e)).length>100)return;var c=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(!c)return;var a=parseFloat(c[1]);switch((c[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return a*i;case"weeks":case"week":case"w":return a*o;case"days":case"day":case"d":return a*s;case"hours":case"hour":case"hrs":case"hr":case"h":return a*r;case"minutes":case"minute":case"mins":case"min":case"m":return a*n;case"seconds":case"second":case"secs":case"sec":case"s":return a*t;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return a;default:return}}(e);if("number"===u&&isFinite(e))return a.long?function(e){var o=Math.abs(e);if(o>=s)return c(e,o,s,"day");if(o>=r)return c(e,o,r,"hour");if(o>=n)return c(e,o,n,"minute");if(o>=t)return c(e,o,t,"second");return e+" ms"}(e):function(e){var o=Math.abs(e);if(o>=s)return Math.round(e/s)+"d";if(o>=r)return Math.round(e/r)+"h";if(o>=n)return Math.round(e/n)+"m";if(o>=t)return Math.round(e/t)+"s";return e+"ms"}(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))}},6975:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var r=n(951);const s=n.n(r)()("dops:analytics");let o,i;window._tkq=window._tkq||[],window.ga=window.ga||function(){(window.ga.q=window.ga.q||[]).push(arguments)},window.ga.l=+new Date;const c={initialize:function(e,t,n){c.setUser(e,t),c.setSuperProps(n),c.identifyUser()},setGoogleAnalyticsEnabled:function(e,t=null){this.googleAnalyticsEnabled=e,this.googleAnalyticsKey=t},setMcAnalyticsEnabled:function(e){this.mcAnalyticsEnabled=e},setUser:function(e,t){i={ID:e,username:t}},setSuperProps:function(e){o=e},assignSuperProps:function(e){o=Object.assign(o||{},e)},mc:{bumpStat:function(e,t){const n=function(e,t){let n="";if("object"==typeof e){for(const t in e)n+="&x_"+encodeURIComponent(t)+"="+encodeURIComponent(e[t]);s("Bumping stats %o",e)}else n="&x_"+encodeURIComponent(e)+"="+encodeURIComponent(t),s('Bumping stat "%s" in group "%s"',t,e);return n}(e,t);c.mcAnalyticsEnabled&&((new Image).src=document.location.protocol+"//pixel.wp.com/g.gif?v=wpcom-no-pv"+n+"&t="+Math.random())},bumpStatWithPageView:function(e,t){const n=function(e,t){let n="";if("object"==typeof e){for(const t in e)n+="&"+encodeURIComponent(t)+"="+encodeURIComponent(e[t]);s("Built stats %o",e)}else n="&"+encodeURIComponent(e)+"="+encodeURIComponent(t),s('Built stat "%s" in group "%s"',t,e);return n}(e,t);c.mcAnalyticsEnabled&&((new Image).src=document.location.protocol+"//pixel.wp.com/g.gif?v=wpcom"+n+"&t="+Math.random())}},pageView:{record:function(e,t){c.tracks.recordPageView(e),c.ga.recordPageView(e,t)}},purchase:{record:function(e,t,n,r,s,o,i){c.ga.recordPurchase(e,t,n,r,s,o,i)}},tracks:{recordEvent:function(e,t){t=t||{},0===e.indexOf("akismet_")||0===e.indexOf("jetpack_")?(o&&(s("- Super Props: %o",o),t=Object.assign(t,o)),s('Record event "%s" called with props %s',e,JSON.stringify(t)),window._tkq.push(["recordEvent",e,t])):s('- Event name must be prefixed by "akismet_" or "jetpack_"')},recordJetpackClick:function(e){const t="object"==typeof e?e:{target:e};c.tracks.recordEvent("jetpack_wpa_click",t)},recordPageView:function(e){c.tracks.recordEvent("akismet_page_view",{path:e})},setOptOut:function(e){s("Pushing setOptOut: %o",e),window._tkq.push(["setOptOut",e])}},ga:{initialized:!1,initialize:function(){let e={};c.ga.initialized||(i&&(e={userId:"u-"+i.ID}),window.ga("create",this.googleAnalyticsKey,"auto",e),c.ga.initialized=!0)},recordPageView:function(e,t){c.ga.initialize(),s("Recording Page View ~ [URL: "+e+"] [Title: "+t+"]"),this.googleAnalyticsEnabled&&(window.ga("set","page",e),window.ga("send",{hitType:"pageview",page:e,title:t}))},recordEvent:function(e,t,n,r){c.ga.initialize();let o="Recording Event ~ [Category: "+e+"] [Action: "+t+"]";void 0!==n&&(o+=" [Option Label: "+n+"]"),void 0!==r&&(o+=" [Option Value: "+r+"]"),s(o),this.googleAnalyticsEnabled&&window.ga("send","event",e,t,n,r)},recordPurchase:function(e,t,n,r,s,o,i){window.ga("require","ecommerce"),window.ga("ecommerce:addTransaction",{id:e,revenue:r,currency:i}),window.ga("ecommerce:addItem",{id:e,name:t,sku:n,price:s,quantity:o}),window.ga("ecommerce:send")}},identifyUser:function(){i&&window._tkq.push(["identifyUser",i.ID,i.username])},setProperties:function(e){window._tkq.push(["setProperties",e])},clearedIdentity:function(){window._tkq.push(["clearIdentity"])}},a=c},64743:(e,t,n)=>{"use strict";n.d(t,{ZP:()=>p});var r=n(61132),s=n(96483);function o(e){class t extends Error{constructor(...t){super(...t),this.name=e}}return t}const i=o("JsonParseError"),c=o("JsonParseAfterRedirectError"),a=o("Api404Error"),u=o("Api404AfterRedirectError"),d=o("FetchNetworkError");const p=new function(e,t){let n=e,o=e,i={"X-WP-Nonce":t},c={credentials:"same-origin",headers:i},a={method:"post",credentials:"same-origin",headers:Object.assign({},i,{"Content-type":"application/json"})},u=function(e){const t=e.split("?"),n=t.length>1?t[1]:"",r=n.length?n.split("&"):[];return r.push("_cacheBuster="+(new Date).getTime()),t[0]+"?"+r.join("&")};const d={setApiRoot(e){n=e},setWpcomOriginApiUrl(e){o=e},setApiNonce(e){i={"X-WP-Nonce":e},c={credentials:"same-origin",headers:i},a={method:"post",credentials:"same-origin",headers:Object.assign({},i,{"Content-type":"application/json"})}},setCacheBusterCallback:e=>{u=e},registerSite:(e,t,s)=>{const o={registration_nonce:e,no_iframe:!0};return(0,r.jetpackConfigHas)("consumer_slug")&&(o.plugin_slug=(0,r.jetpackConfigGet)("consumer_slug")),null!==t&&(o.redirect_uri=t),s&&(o.from=s),g(`${n}jetpack/v4/connection/register`,a,{body:JSON.stringify(o)}).then(l).then(h)},fetchAuthorizationUrl:e=>p((0,s.addQueryArgs)(`${n}jetpack/v4/connection/authorize_url`,{no_iframe:"1",redirect_uri:e}),c).then(l).then(h),fetchSiteConnectionData:()=>p(`${n}jetpack/v4/connection/data`,c).then(h),fetchSiteConnectionStatus:()=>p(`${n}jetpack/v4/connection`,c).then(h),fetchSiteConnectionTest:()=>p(`${n}jetpack/v4/connection/test`,c).then(l).then(h),fetchUserConnectionData:()=>p(`${n}jetpack/v4/connection/data`,c).then(h),fetchUserTrackingSettings:()=>p(`${n}jetpack/v4/tracking/settings`,c).then(l).then(h),updateUserTrackingSettings:e=>g(`${n}jetpack/v4/tracking/settings`,a,{body:JSON.stringify(e)}).then(l).then(h),disconnectSite:()=>g(`${n}jetpack/v4/connection`,a,{body:JSON.stringify({isActive:!1})}).then(l).then(h),fetchConnectUrl:()=>p(`${n}jetpack/v4/connection/url`,c).then(l).then(h),unlinkUser:()=>g(`${n}jetpack/v4/connection/user`,a,{body:JSON.stringify({linked:!1})}).then(l).then(h),reconnect:()=>g(`${n}jetpack/v4/connection/reconnect`,a).then(l).then(h),fetchConnectedPlugins:()=>p(`${n}jetpack/v4/connection/plugins`,c).then(l).then(h),setHasSeenWCConnectionModal:()=>g(`${n}jetpack/v4/seen-wc-connection-modal`,a).then(l).then(h),fetchModules:()=>p(`${n}jetpack/v4/module/all`,c).then(l).then(h),fetchModule:e=>p(`${n}jetpack/v4/module/${e}`,c).then(l).then(h),activateModule:e=>g(`${n}jetpack/v4/module/${e}/active`,a,{body:JSON.stringify({active:!0})}).then(l).then(h),deactivateModule:e=>g(`${n}jetpack/v4/module/${e}/active`,a,{body:JSON.stringify({active:!1})}),updateModuleOptions:(e,t)=>g(`${n}jetpack/v4/module/${e}`,a,{body:JSON.stringify(t)}).then(l).then(h),updateSettings:e=>g(`${n}jetpack/v4/settings`,a,{body:JSON.stringify(e)}).then(l).then(h),getProtectCount:()=>p(`${n}jetpack/v4/module/protect/data`,c).then(l).then(h),resetOptions:e=>g(`${n}jetpack/v4/options/${e}`,a,{body:JSON.stringify({reset:!0})}).then(l).then(h),activateVaultPress:()=>g(`${n}jetpack/v4/plugins`,a,{body:JSON.stringify({slug:"vaultpress",status:"active"})}).then(l).then(h),getVaultPressData:()=>p(`${n}jetpack/v4/module/vaultpress/data`,c).then(l).then(h),installPlugin:(e,t)=>{const r={slug:e,status:"active"};return t&&(r.source=t),g(`${n}jetpack/v4/plugins`,a,{body:JSON.stringify(r)}).then(l).then(h)},activateAkismet:()=>g(`${n}jetpack/v4/plugins`,a,{body:JSON.stringify({slug:"akismet",status:"active"})}).then(l).then(h),getAkismetData:()=>p(`${n}jetpack/v4/module/akismet/data`,c).then(l).then(h),checkAkismetKey:()=>p(`${n}jetpack/v4/module/akismet/key/check`,c).then(l).then(h),checkAkismetKeyTyped:e=>g(`${n}jetpack/v4/module/akismet/key/check`,a,{body:JSON.stringify({api_key:e})}).then(l).then(h),fetchStatsData:e=>p(function(e){let t=`${n}jetpack/v4/module/stats/data`;-1!==t.indexOf("?")?t+=`&range=${encodeURIComponent(e)}`:t+=`?range=${encodeURIComponent(e)}`;return t}(e),c).then(l).then(h).then(m),getPluginUpdates:()=>p(`${n}jetpack/v4/updates/plugins`,c).then(l).then(h),getPlans:()=>p(`${n}jetpack/v4/plans`,c).then(l).then(h),fetchSettings:()=>p(`${n}jetpack/v4/settings`,c).then(l).then(h),updateSetting:e=>g(`${n}jetpack/v4/settings`,a,{body:JSON.stringify(e)}).then(l).then(h),fetchSiteData:()=>p(`${n}jetpack/v4/site`,c).then(l).then(h).then((e=>JSON.parse(e.data))),fetchSiteFeatures:()=>p(`${n}jetpack/v4/site/features`,c).then(l).then(h).then((e=>JSON.parse(e.data))),fetchSiteProducts:()=>p(`${n}jetpack/v4/site/products`,c).then(l).then(h),fetchSitePurchases:()=>p(`${n}jetpack/v4/site/purchases`,c).then(l).then(h).then((e=>JSON.parse(e.data))),fetchSiteBenefits:()=>p(`${n}jetpack/v4/site/benefits`,c).then(l).then(h).then((e=>JSON.parse(e.data))),fetchSiteDiscount:()=>p(`${n}jetpack/v4/site/discount`,c).then(l).then(h).then((e=>e.data)),fetchSetupQuestionnaire:()=>p(`${n}jetpack/v4/setup/questionnaire`,c).then(l).then(h),fetchRecommendationsData:()=>p(`${n}jetpack/v4/recommendations/data`,c).then(l).then(h),fetchRecommendationsProductSuggestions:()=>p(`${n}jetpack/v4/recommendations/product-suggestions`,c).then(l).then(h),fetchRecommendationsUpsell:()=>p(`${n}jetpack/v4/recommendations/upsell`,c).then(l).then(h),fetchRecommendationsConditional:()=>p(`${n}jetpack/v4/recommendations/conditional`,c).then(l).then(h),saveRecommendationsData:e=>g(`${n}jetpack/v4/recommendations/data`,a,{body:JSON.stringify({data:e})}).then(l),fetchProducts:()=>p(`${n}jetpack/v4/products`,c).then(l).then(h),fetchRewindStatus:()=>p(`${n}jetpack/v4/rewind`,c).then(l).then(h).then((e=>JSON.parse(e.data))),fetchScanStatus:()=>p(`${n}jetpack/v4/scan`,c).then(l).then(h).then((e=>JSON.parse(e.data))),dismissJetpackNotice:e=>g(`${n}jetpack/v4/notice/${e}`,a,{body:JSON.stringify({dismissed:!0})}).then(l).then(h),fetchPluginsData:()=>p(`${n}jetpack/v4/plugins`,c).then(l).then(h),fetchIntroOffers:()=>p(`${n}jetpack/v4/intro-offers`,c).then(l).then(h),fetchVerifySiteGoogleStatus:e=>p(null!==e?`${n}jetpack/v4/verify-site/google/${e}`:`${n}jetpack/v4/verify-site/google`,c).then(l).then(h),verifySiteGoogle:e=>g(`${n}jetpack/v4/verify-site/google`,a,{body:JSON.stringify({keyring_id:e})}).then(l).then(h),submitSurvey:e=>g(`${n}jetpack/v4/marketing/survey`,a,{body:JSON.stringify(e)}).then(l).then(h),saveSetupQuestionnaire:e=>g(`${n}jetpack/v4/setup/questionnaire`,a,{body:JSON.stringify(e)}).then(l).then(h),updateLicensingError:e=>g(`${n}jetpack/v4/licensing/error`,a,{body:JSON.stringify(e)}).then(l).then(h),updateLicenseKey:e=>g(`${n}jetpack/v4/licensing/set-license`,a,{body:JSON.stringify({license:e})}).then(l).then(h),getUserLicensesCounts:()=>p(`${n}jetpack/v4/licensing/user/counts`,c).then(l).then(h),getUserLicenses:()=>p(`${n}jetpack/v4/licensing/user/licenses`,c).then(l).then(h),updateLicensingActivationNoticeDismiss:e=>g(`${n}jetpack/v4/licensing/user/activation-notice-dismiss`,a,{body:JSON.stringify({last_detached_count:e})}).then(l).then(h),updateRecommendationsStep:e=>g(`${n}jetpack/v4/recommendations/step`,a,{body:JSON.stringify({step:e})}).then(l),confirmIDCSafeMode:()=>g(`${n}jetpack/v4/identity-crisis/confirm-safe-mode`,a).then(l),startIDCFresh:e=>g(`${n}jetpack/v4/identity-crisis/start-fresh`,a,{body:JSON.stringify({redirect_uri:e})}).then(l).then(h),migrateIDC:()=>g(`${n}jetpack/v4/identity-crisis/migrate`,a).then(l),attachLicenses:e=>g(`${n}jetpack/v4/licensing/attach-licenses`,a,{body:JSON.stringify({licenses:e})}).then(l).then(h),fetchSearchPlanInfo:()=>p(`${o}jetpack/v4/search/plan`,c).then(l).then(h),fetchSearchSettings:()=>p(`${o}jetpack/v4/search/settings`,c).then(l).then(h),updateSearchSettings:e=>g(`${o}jetpack/v4/search/settings`,a,{body:JSON.stringify(e)}).then(l).then(h),fetchSearchStats:()=>p(`${o}jetpack/v4/search/stats`,c).then(l).then(h),fetchWafSettings:()=>p(`${n}jetpack/v4/waf`,c).then(l).then(h),updateWafSettings:e=>g(`${n}jetpack/v4/waf`,a,{body:JSON.stringify(e)}).then(l).then(h),fetchWordAdsSettings:()=>p(`${n}jetpack/v4/wordads/settings`,c).then(l).then(h),updateWordAdsSettings:e=>g(`${n}jetpack/v4/wordads/settings`,a,{body:JSON.stringify(e)}),fetchSearchPricing:()=>p(`${o}jetpack/v4/search/pricing`,c).then(l).then(h),fetchMigrationStatus:()=>p(`${n}jetpack/v4/migration/status`,c).then(l).then(h),fetchBackupUndoEvent:()=>p(`${n}jetpack/v4/site/backup/undo-event`,c).then(l).then(h),fetchBackupPreflightStatus:()=>p(`${n}jetpack/v4/site/backup/preflight`,c).then(l).then(h)};function p(e,t){return fetch(u(e),t)}function g(e,t,n){return fetch(e,Object.assign({},t,n)).catch(f)}function m(e){return e.general&&void 0===e.general.response||e.week&&void 0===e.week.response||e.month&&void 0===e.month.response?e:{}}Object.assign(this,d)};function l(e){return e.status>=200&&e.status<300?e:404===e.status?new Promise((()=>{throw e.redirected?new u(e.redirected):new a})):e.json().catch((e=>g(e))).then((t=>{const n=new Error(`${t.message} (Status ${e.status})`);throw n.response=t,n.name="ApiError",n}))}function h(e){return e.json().catch((t=>g(t,e.redirected,e.url)))}function g(e,t,n){throw t?new c(n):new i}function f(){throw new d}},61132:(e,t,n)=>{let r={};try{r=n(76354)}catch{console.error("jetpackConfig is missing in your webpack config file. See @automattic/jetpack-config"),r={missingConfig:!0}}const s=e=>r.hasOwnProperty(e);e.exports={jetpackConfigHas:s,jetpackConfigGet:e=>{if(!s(e))throw'This app requires the "'+e+'" Jetpack Config to be defined in your webpack configuration file. See details in @automattic/jetpack-config package docs.';return r[e]}}},31294:(e,t,n)=>{"use strict";n.d(t,{Z:()=>u});var r=n(64743),s=n(51732),o=n(9818),i=n(99196),c=n(80428);const a=window?.JP_CONNECTION_INITIAL_STATE||(0,s.getScriptData)()?.connection||{},u=({registrationNonce:e=a.registrationNonce,apiRoot:t=a.apiRoot,apiNonce:n=a.apiNonce,redirectUri:s,autoTrigger:u,from:d,skipUserConnection:p}={})=>{const{registerSite:l,connectUser:h,refreshConnectedPlugins:g}=(0,o.useDispatch)(c.t),f=(0,o.useSelect)((e=>e(c.t).getRegistrationError())),{siteIsRegistering:m,userIsConnecting:w,userConnectionData:C,connectedPlugins:y,connectionErrors:v,isRegistered:k,isUserConnected:S,hasConnectedOwner:E,isOfflineMode:j}=(0,o.useSelect)((e=>({siteIsRegistering:e(c.t).getSiteIsRegistering(),userIsConnecting:e(c.t).getUserIsConnecting(),userConnectionData:e(c.t).getUserConnectionData(),connectedPlugins:e(c.t).getConnectedPlugins(),connectionErrors:e(c.t).getConnectionErrors(),isOfflineMode:e(c.t).getIsOfflineMode(),...e(c.t).getConnectionStatus()}))),b=()=>p?s?(window.location=s,Promise.resolve(s)):Promise.resolve():h({from:d,redirectUri:s}),_=t=>(t&&t.preventDefault(),k?b():l({registrationNonce:e,redirectUri:s,from:d}).then((()=>b())));return(0,i.useEffect)((()=>{r.ZP.setApiRoot(t),r.ZP.setApiNonce(n)}),[t,n]),(0,i.useEffect)((()=>{!u||m||w||_()}),[]),{handleRegisterSite:_,handleConnectUser:b,refreshConnectedPlugins:g,isRegistered:k,isUserConnected:S,siteIsRegistering:m,userIsConnecting:w,registrationError:f,userConnectionData:C,hasConnectedOwner:E,connectedPlugins:y,connectionErrors:v,isOfflineMode:j}}},27523:(e,t,n)=>{"use strict";n.d(t,{LI:()=>o,N4:()=>c,Qo:()=>p,T1:()=>u,TS:()=>d,ZP:()=>S,b5:()=>h,i6:()=>s,qJ:()=>g,qV:()=>a,r7:()=>i,wQ:()=>l});var r=n(64743);const s="SET_CONNECTION_STATUS",o="SET_CONNECTION_STATUS_IS_FETCHING",i="SET_SITE_IS_REGISTERING",c="SET_USER_IS_CONNECTING",a="SET_REGISTRATION_ERROR",u="CLEAR_REGISTRATION_ERROR",d="SET_AUTHORIZATION_URL",p="DISCONNECT_USER_SUCCESS",l="SET_CONNECTED_PLUGINS",h="SET_CONNECTION_ERRORS",g="SET_IS_OFFLINE_MODE",f=e=>({type:s,connectionStatus:e}),m=e=>({type:i,isRegistering:e}),w=e=>({type:c,isConnecting:e}),C=e=>({type:a,registrationError:e}),y=()=>({type:u}),v=e=>({type:d,authorizationUrl:e}),k=e=>({type:l,connectedPlugins:e});const S={setConnectionStatus:f,setConnectionStatusIsFetching:e=>({type:o,isFetching:e}),fetchConnectionStatus:()=>({type:"FETCH_CONNECTION_STATUS"}),fetchAuthorizationUrl:e=>({type:"FETCH_AUTHORIZATION_URL",redirectUri:e}),setSiteIsRegistering:m,setUserIsConnecting:w,setRegistrationError:C,clearRegistrationError:y,setAuthorizationUrl:v,registerSite:function*({registrationNonce:e,redirectUri:t,from:n=""}){yield y(),yield m(!0);try{const r=yield{type:"REGISTER_SITE",registrationNonce:e,redirectUri:t,from:n};return yield f({isRegistered:!0}),yield v(r.authorizeUrl),yield m(!1),Promise.resolve(r)}catch(e){return yield C(e),yield m(!1),Promise.reject(e)}},connectUser:function*({from:e,redirectFunc:t,redirectUri:n}={}){yield w(!0),yield{type:"CONNECT_USER",from:e,redirectFunc:t,redirectUri:n}},disconnectUserSuccess:()=>({type:p}),setConnectedPlugins:k,refreshConnectedPlugins:()=>async({dispatch:e})=>await new Promise((t=>r.ZP.fetchConnectedPlugins().then((n=>{e(k(n)),t(n)})))),setConnectionErrors:e=>({type:h,connectionErrors:e}),setIsOfflineMode:e=>({type:g,isOfflineMode:e})}},31432:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(64743),s=n(9818),o=n(27057);const i={FETCH_AUTHORIZATION_URL:({redirectUri:e})=>r.ZP.fetchAuthorizationUrl(e),REGISTER_SITE:({registrationNonce:e,redirectUri:t,from:n})=>r.ZP.registerSite(e,t,n),CONNECT_USER:(0,s.createRegistryControl)((({resolveSelect:e})=>({from:t,redirectFunc:n,redirectUri:r}={})=>new Promise(((s,i)=>{e(o.Z).getAuthorizationUrl(r).then((e=>{const r=n||(e=>window.location.assign(e)),o=new URL(e);t&&o.searchParams.set("from",encodeURIComponent(t));const i=o.toString();r(i),s(i)})).catch((e=>{i(e)}))}))))}},41479:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(9818),s=n(27523);const o=(0,r.combineReducers)({connectionStatus:(e={},t)=>{switch(t.type){case s.i6:return{...e,...t.connectionStatus};case s.Qo:return{...e,isUserConnected:!1}}return e},connectionStatusIsFetching:(e=!1,t)=>t.type===s.LI?t.isFetching:e,siteIsRegistering:(e=!1,t)=>t.type===s.r7?t.isRegistering:e,userIsConnecting:(e=!1,t)=>t.type===s.N4?t.isConnecting:e,registrationError:(e,t)=>{switch(t.type){case s.T1:return!1;case s.qV:return t.registrationError;default:return e}},authorizationUrl:(e,t)=>t.type===s.TS?t.authorizationUrl:e,userConnectionData:(e,t)=>(t.type,e),connectedPlugins:(e={},t)=>t.type===s.wQ?t.connectedPlugins:e,connectionErrors:(e={},t)=>t.type===s.b5?t.connectionErrors:e,isOfflineMode:(e=!1,t)=>t.type===s.qJ?t.isConnecting:e})},77728:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(9818),s=n(27523),o=n(27057);const i={...{getAuthorizationUrl:{isFulfilled:(e,...t)=>{const n=Boolean(e.authorizationUrl),s=(0,r.select)(o.Z).hasFinishedResolution("getAuthorizationUrl",t);return n&&!s&&(0,r.dispatch)(o.Z).finishResolution("getAuthorizationUrl",t),n},*fulfill(e){const t=yield s.ZP.fetchAuthorizationUrl(e);yield s.ZP.setAuthorizationUrl(t.authorizeUrl)}}}}},82725:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});const r={...{getConnectionStatus:e=>e.connectionStatus||{},getConnectionStatusIsFetching:()=>!1,getSiteIsRegistering:e=>e.siteIsRegistering||!1,getUserIsConnecting:e=>e.userIsConnecting||!1,getRegistrationError:e=>e.registrationError||!1,getAuthorizationUrl:e=>e.authorizationUrl||!1,getUserConnectionData:e=>e.userConnectionData||!1,getConnectedPlugins:e=>e.connectedPlugins||[],getConnectionErrors:e=>e.connectionErrors||[],getIsOfflineMode:e=>e.isOfflineMode||!1,getWpcomUser:e=>e?.userConnectionData?.currentUser?.wpcomUser,getBlogId:e=>e?.userConnectionData?.currentUser?.blogId}}},13535:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(9818);class s{static store=null;static mayBeInit(e,t){null===s.store&&(s.store=(0,r.createReduxStore)(e,t),(0,r.register)(s.store))}}const o=s},27057:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});const r="jetpack-connection"},80428:(e,t,n)=>{"use strict";n.d(t,{t:()=>d.Z});var r=n(51732),s=n(27523),o=n(31432),i=n(41479),c=n(77728),a=n(82725),u=n(13535),d=n(27057);const p=window.JP_CONNECTION_INITIAL_STATE||(0,r.getScriptData)()?.connection;p||console.error("Jetpack Connection package: Initial state is missing. Check documentation to see how to use the Connection composer package to set up the initial state."),u.Z.mayBeInit(d.Z,{__experimentalUseThunks:!0,reducer:i.Z,actions:s.ZP,selectors:a.Z,resolvers:c.Z,controls:o.Z,initialState:p||{}})},13419:(e,t,n)=>{"use strict";n.d(t,{z$:()=>r.Z});n(76714),n(80354),n(75404);var r=n(61053);n(11380),n(6342),n(96959),n(39058)},6342:(e,t,n)=>{"use strict";n(99196)},96959:(e,t,n)=>{"use strict";n(69307)},61053:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var r=n(6975),s=n(31294),o=n(69307);const{tracks:i}=r.Z,{recordEvent:c}=i,a=({pageViewEventName:e=null,pageViewNamespace:t="jetpack",pageViewSuffix:n="page_view",pageViewEventProperties:a={}}={})=>{const[u,d]=(0,o.useState)(!1),{isUserConnected:p,isRegistered:l,userConnectionData:h={}}=(0,s.Z)(),{wpcomUser:{login:g,ID:f}={},blogId:m}=h.currentUser||{},w=(0,o.useCallback)((async(e,t={})=>{p&&f&&g&&c(e,t)}),[p,f,g]);return(0,o.useEffect)((()=>{p&&f&&g&&m&&r.Z.initialize(f,g,{blog_id:m})}),[m,f,g,p]),(0,o.useEffect)((()=>{const r=e?`${t}_${e}_${n}`:null;l&&r&&(u||(w(r,a),d(!0)))}),[u,t,e,n,l,a,w]),{recordEvent:w,tracks:i}}},11380:(e,t,n)=>{"use strict";n(9818),n(69307),n(39058)},44166:(e,t,n)=>{"use strict";n.d(t,{ZP:()=>l,rW:()=>p});var r=n(9818),s=n(99505),o=n(82162),i=n(39058);const c="SET_JETPACK_MODULES",a="SET_MODULE_UPDATING";function u(e){return p({isLoading:e})}function d(e,t){return{type:a,name:e,isUpdating:t}}function p(e){return{type:c,options:e}}const l={updateJetpackModuleStatus:function*(e){try{yield d(e.name,!0),yield(0,o.zL)(e);const t=yield(0,o.Bs)();return yield p({data:t}),!0}catch(e){const t=(0,r.select)(i.p).getJetpackModules();return yield p(t),!1}finally{yield d(e.name,!1)}},setJetpackModules:p,fetchModules:function*(){if((0,s.Wp)())return!0;try{yield u(!0);const e=yield(0,o.Bs)();return yield p({data:e}),!0}catch(e){const t=(0,r.select)(i.p).getJetpackModules();return yield p(t),!1}finally{yield u(!1)}}}},82162:(e,t,n)=>{"use strict";n.d(t,{Bs:()=>c,ZP:()=>u,zL:()=>a});var r=n(86989),s=n.n(r);const o="FETCH_JETPACK_MODULES",i="UPDATE_JETPACK_MODULE_STATUS",c=()=>({type:o}),a=e=>({type:i,settings:e}),u={[o]:function(){return s()({path:"/jetpack/v4/module/all",method:"GET"})},[i]:function({settings:e}){return s()({path:`/jetpack/v4/module/${e.name}/active`,method:"POST",data:{active:e.active}})}}},39058:(e,t,n)=>{"use strict";n.d(t,{p:()=>u});var r=n(9818),s=n(44166),o=n(82162),i=n(42469),c=n(55133),a=n(43524);const u="jetpack-modules",d=(0,r.createReduxStore)(u,{reducer:i.Z,actions:s.ZP,controls:o.ZP,resolvers:c.Z,selectors:a.Z});(0,r.register)(d);const p=window?.Initial_State?.getModules||window?.Jetpack_Editor_Initial_State?.modules||null;null!==p&&(0,r.dispatch)(u).setJetpackModules({data:{...p}})},42469:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});const r={isLoading:!1,isUpdating:{},data:{}},s=(e=r,t)=>{switch(t.type){case"SET_JETPACK_MODULES":return{...e,...t.options};case"SET_MODULE_UPDATING":return{...e,isUpdating:{...e.isUpdating,[t.name]:t.isUpdating}}}return e}},55133:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(44166),s=n(82162);const o={getJetpackModules:function*(){try{const e=yield(0,s.Bs)();if(e)return(0,r.rW)({data:e})}catch(e){console.error(e)}}}},43524:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(99505);const s={getJetpackModules:e=>e.data,isModuleActive:(e,t)=>(0,r.Wp)()||(e?.data?.[t]?.activated??!1),areModulesLoading:e=>e.isLoading??!1,isModuleUpdating:(e,t)=>e?.isUpdating?.[t]??!1}},75404:(e,t,n)=>{"use strict";var r=n(65736);n(96483),n(92819);const __=r.__;__("Upgrade your plan to use video covers","jetpack-mu-wpcom"),__("Upgrade your plan to upload audio","jetpack-mu-wpcom")},76714:(e,t,n)=>{"use strict";n(98817)},99505:(e,t,n)=>{"use strict";function r(){return"object"==typeof window&&"string"==typeof window._currentSiteType?window._currentSiteType:null}function s(){return"simple"===r()}n.d(t,{Wp:()=>s})},80354:(e,t,n)=>{"use strict";n(82674),n(94333)},76354:e=>{"use strict";if(void 0==={consumer_slug:"jetpack-mu-wpcom"}){var t=new Error('Cannot find module \'{"consumer_slug":"jetpack-mu-wpcom"}\'');throw t.code="MODULE_NOT_FOUND",t}e.exports={consumer_slug:"jetpack-mu-wpcom"}},51732:e=>{"use strict";e.exports=window.JetpackScriptDataModule},99196:e=>{"use strict";e.exports=window.React},99501:e=>{"use strict";e.exports=window.ReactJSXRuntime},92819:e=>{"use strict";e.exports=window.lodash},86989:e=>{"use strict";e.exports=window.wp.apiFetch},55609:e=>{"use strict";e.exports=window.wp.components},94333:e=>{"use strict";e.exports=window.wp.compose},9818:e=>{"use strict";e.exports=window.wp.data},69307:e=>{"use strict";e.exports=window.wp.element},92694:e=>{"use strict";e.exports=window.wp.hooks},65736:e=>{"use strict";e.exports=window.wp.i18n},98817:e=>{"use strict";e.exports=window.wp.plugins},96483:e=>{"use strict";e.exports=window.wp.url},82674:e=>{function t(){return e.exports=t=Object.assign?Object.assign.bind():function(e){for(var t=1;t{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{"use strict";var e=n(34369),t=n(13419),r=n(55609),s=n(94333),o=n(92694);const i=(0,s.createHigherOrderComponent)((n=>s=>{const{tracks:o}=(0,t.z$)();return"post_tag"===s.slug&&window.wpcomTagsEducation?React.createElement(React.Fragment,null,React.createElement(n,s),React.createElement(r.ExternalLink,{href:(0,e.aq)("https://wordpress.com/support/posts/tags/"),onClick:()=>{o.recordEvent("jetpack_mu_wpcom_tags_education_link_click")}},window.wpcomTagsEducation.actionText)):React.createElement(n,s)}),"addTagsEducationLink");(0,o.addFilter)("editor.PostTaxonomyType","jetpack-mu-wpcom/add-tags-education-link",i)})()})(); \ No newline at end of file +(()=>{var e={73625:(e,t,n)=>{"use strict";n.d(t,{bU:()=>u,v8:()=>a});var s=n(99501),r=n(94333),o=n(65736),i=n(99196);const c=(0,i.createContext)(null);function a(){return function(e=""){if(!e)return"";const t=e.toLowerCase();return(["pt_br","pt-br","zh_tw","zh-tw","zh_cn","zh-cn","zh_sg","zh-sg"].includes(t)?t.replace("_","-"):t.replace(/([-_].*)$/i,""))||"en"}(function(){const e=o.getLocaleData()||{};return e[""]?.lang||e[""]?.language||""}())}function u(){const e=(0,i.useContext)(c),t=!!e,[n,s]=(0,i.useState)(a());return(0,i.useEffect)((()=>{if(!t)return s(a()),o.subscribe((()=>{s(a())}))}),[t]),e||n||"undefined"!=typeof window&&window._currentUserLocale||"en"}(0,r.createHigherOrderComponent)((e=>t=>{const n={...t,locale:u()};return(0,s.jsx)(e,{...n})}),"withLocale")},70560:(e,t,n)=>{"use strict";n.d(t,{GG:()=>s,Xb:()=>u,_r:()=>h,dH:()=>r,hI:()=>d,iT:()=>o,kV:()=>c,mL:()=>p,vS:()=>l,xh:()=>a,xn:()=>i});const s=["en","ja","es","pt","fr","pt-br"],r=["en","pt-br","de","es","fr","it"],o=["en","fr","de","es"],i=["en","fr","de","es"],c=["en","es"],a=["ar","de","el","es","fr","he","id","it","ja","ko","nl","pt-br","ro","ru","sv","tr","zh-cn","zh-tw"],u={"pt-br":"br",br:"bre",zh:"zh-cn","zh-hk":"zh-tw","zh-sg":"zh-cn",kr:"ko"},d=["ar","de","en","es","fr","he","id","it","ja","ko","nl","pt-br","ru","sv","tr","zh-cn","zh-tw"],p=["ar","de","el","en","es","fa","fi","fr","id","it","ja","nl","pt","pt-br","ru","sv","th","tl","tr"],l=["es","pt-br","de","fr","he","ja","it","nl","ru","tr","id","zh-cn","zh-tw","ko","ar","sv"],h=["en","ar","de","es","fr","he","id","it","ja","ko","nl","pt-br","ro","ru","sv","tr","zh-cn","zh-tw"]},34369:(e,t,n)=>{"use strict";n.d(t,{aq:()=>m});var s=n(99501),r=n(94333),o=n(99196),i=n(73625),c=n(70560);const a="http://__domain__.invalid";const u=(e,t=[])=>(n,s)=>(t.includes(s)&&"en"!==s&&n.pathname.substr(0,s.length+2)!=="/"+s+"/"&&(n.host=`${c.Xb[s]||s}.${e}`),n),d=(e,t=[],n=null)=>(s,r)=>(s.host="wordpress.com","object"==typeof n&&n instanceof RegExp&&!n.test(s.pathname)&&(t=[]),s.pathname=e+s.pathname,t.includes(r)&&"en"!==r&&(s.pathname=r+s.pathname),s),p=(e=[],t=null,n)=>(s,r)=>"object"==typeof t&&t instanceof RegExp&&!t.test(s.pathname)?s:e.includes(r)&&"en"!==r?("prefix"===n?s.pathname=r+s.pathname:"suffix"===n&&(s.pathname.endsWith("/")?s.pathname+=r+"/":s.pathname+="/"+r),s):s,l=(e=[],t=null)=>(n,s)=>p(e,t,"prefix")(n,s),h=(e=[],t=null)=>(n,s)=>p(e,t,"suffix")(n,s),g={"wordpress.com/support/":l(c.hI),"wordpress.com/forums/":l(c.mL),"wordpress.com/blog/":l(c.GG,/^\/blog\/?$/),"wordpress.com/go/":(e,t)=>["/go/","/go"].includes(e.pathname)||"es"===t?l(c.dH)(e,t):e,"wordpress.com/pricing/":l(c.xh),"wordpress.com/tos/":l(c.vS),"wordpress.com/wp-admin/":u("wordpress.com",c.vS),"wordpress.com/wp-login.php":u("wordpress.com",c.vS),"jetpack.com":l(c._r),"cloud.jetpack.com":l(c._r),"en.support.wordpress.com":d("/support",c.hI),"en.blog.wordpress.com":d("/blog",c.GG,/^\/$/),"apps.wordpress.com":l(c.vS),"en.forums.wordpress.com":d("/forums",c.mL),"automattic.com/privacy/":l(c.iT),"automattic.com/cookies/":l(c.xn),"wordpress.com/help/contact/":(e,t,n)=>n?e:(e.pathname=e.pathname.replace(/\/help\//,"/support/"),l(c.hI)(e,t)),"wordpress.com":(e,t)=>/^\/(checkout|me)(\/|$)/.test(e.pathname)||/\/([a-z0-9-]+\.)+[a-z]{2,}\/?$/.test(e.pathname)?e:l(c.vS)(e,t),"wordpress.com/theme/":(e,t,n)=>n?e:l(c.vS)(e,t),"wordpress.com/themes/":(e,t,n)=>n?e:l(c.vS)(e,t),"wordpress.com/plugins/":(e,t,n)=>n?e:l(c.vS)(e,t),"wordpress.com/log-in/":(e,t,n)=>n?e:h(c.vS)(e,t),"wordpress.com/start/":(e,t,n)=>n?e:h(c.vS)(e,t),"wordpress.com/learn/":(e,t)=>e.pathname.includes("/learn/webinars/")&&"es"===t?(e.pathname=e.pathname.replace("/learn/webinars/","/learn/es/webinars/"),e):h(c.kV)(e,t),"wordpress.com/plans/":(e,t,n)=>n||"/plans/"!==e.pathname?e:l(c.xh)(e,t),"wordpress.com/setup/":(e,t,n)=>n?e:h(c.vS)(e,t)};function f(e){try{return new URL(String(e),a).pathname.endsWith("/")}catch(e){return!1}}function m(e,t=function(){return(0,i.v8)()??"en"}(),n=!0,s=!1){let r;try{r=new URL(String(e),a)}catch(t){return e}if(r.origin===a)return e;r.protocol="https:",r.pathname.endsWith(".php")||(r.pathname=(r.pathname+"/").replace(/\/+$/,"/"));const o=r.pathname.substr(0,1+r.pathname.indexOf("/",1));if("en.wordpress.com"===r.host&&(r.host="wordpress.com"),"/"+t+"/"===o)return e;const c=[r.host,r.host+o,r.host+r.pathname];for(let o=c.length-1;o>=0;o--)if(c[o]in g){const i=g[c[o]](r,t,n).href;if(!s)return i;try{const t=new URL(i);return f(e)||(t.pathname=t.pathname.replace(/\/+$/,"")),t.href}catch{return i}}return e}function w(){const e=(0,i.bU)();return(0,o.useCallback)(((t,n,s,r)=>m(t,n||e,s,r)),[e])}(0,r.createHigherOrderComponent)((e=>t=>{const n={...t,localizeUrl:w()};return(0,s.jsx)(e,{...n})}),"withLocalizeUrl")},951:(e,t,n)=>{t.formatArgs=function(t){if(t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),!this.useColors)return;const n="color: "+this.color;t.splice(1,0,n,"color: inherit");let s=0,r=0;t[0].replace(/%[a-zA-Z%]/g,(e=>{"%%"!==e&&(s++,"%c"===e&&(r=s))})),t.splice(r,0,n)},t.save=function(e){try{e?t.storage.setItem("debug",e):t.storage.removeItem("debug")}catch(e){}},t.load=function(){let e;try{e=t.storage.getItem("debug")}catch(e){}!e&&"undefined"!=typeof process&&"env"in process&&(e=process.env.DEBUG);return e},t.useColors=function(){if("undefined"!=typeof window&&window.process&&("renderer"===window.process.type||window.process.__nwjs))return!0;if("undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;return"undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)},t.storage=function(){try{return localStorage}catch(e){}}(),t.destroy=(()=>{let e=!1;return()=>{e||(e=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})(),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],t.log=console.debug||console.log||(()=>{}),e.exports=n(51741)(t);const{formatters:s}=e.exports;s.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}},51741:(e,t,n)=>{e.exports=function(e){function t(e){let n,r,o,i=null;function c(...e){if(!c.enabled)return;const s=c,r=Number(new Date),o=r-(n||r);s.diff=o,s.prev=n,s.curr=r,n=r,e[0]=t.coerce(e[0]),"string"!=typeof e[0]&&e.unshift("%O");let i=0;e[0]=e[0].replace(/%([a-zA-Z%])/g,((n,r)=>{if("%%"===n)return"%";i++;const o=t.formatters[r];if("function"==typeof o){const t=e[i];n=o.call(s,t),e.splice(i,1),i--}return n})),t.formatArgs.call(s,e);(s.log||t.log).apply(s,e)}return c.namespace=e,c.useColors=t.useColors(),c.color=t.selectColor(e),c.extend=s,c.destroy=t.destroy,Object.defineProperty(c,"enabled",{enumerable:!0,configurable:!1,get:()=>null!==i?i:(r!==t.namespaces&&(r=t.namespaces,o=t.enabled(e)),o),set:e=>{i=e}}),"function"==typeof t.init&&t.init(c),c}function s(e,n){const s=t(this.namespace+(void 0===n?":":n)+e);return s.log=this.log,s}function r(e){return e.toString().substring(2,e.toString().length-2).replace(/\.\*\?$/,"*")}return t.debug=t,t.default=t,t.coerce=function(e){if(e instanceof Error)return e.stack||e.message;return e},t.disable=function(){const e=[...t.names.map(r),...t.skips.map(r).map((e=>"-"+e))].join(",");return t.enable(""),e},t.enable=function(e){let n;t.save(e),t.namespaces=e,t.names=[],t.skips=[];const s=("string"==typeof e?e:"").split(/[\s,]+/),r=s.length;for(n=0;n{t[n]=e[n]})),t.names=[],t.skips=[],t.formatters={},t.selectColor=function(e){let n=0;for(let t=0;t{var t=1e3,n=60*t,s=60*n,r=24*s,o=7*r,i=365.25*r;function c(e,t,n,s){var r=t>=1.5*n;return Math.round(e/n)+" "+s+(r?"s":"")}e.exports=function(e,a){a=a||{};var u=typeof e;if("string"===u&&e.length>0)return function(e){if((e=String(e)).length>100)return;var c=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(!c)return;var a=parseFloat(c[1]);switch((c[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return a*i;case"weeks":case"week":case"w":return a*o;case"days":case"day":case"d":return a*r;case"hours":case"hour":case"hrs":case"hr":case"h":return a*s;case"minutes":case"minute":case"mins":case"min":case"m":return a*n;case"seconds":case"second":case"secs":case"sec":case"s":return a*t;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return a;default:return}}(e);if("number"===u&&isFinite(e))return a.long?function(e){var o=Math.abs(e);if(o>=r)return c(e,o,r,"day");if(o>=s)return c(e,o,s,"hour");if(o>=n)return c(e,o,n,"minute");if(o>=t)return c(e,o,t,"second");return e+" ms"}(e):function(e){var o=Math.abs(e);if(o>=r)return Math.round(e/r)+"d";if(o>=s)return Math.round(e/s)+"h";if(o>=n)return Math.round(e/n)+"m";if(o>=t)return Math.round(e/t)+"s";return e+"ms"}(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))}},6975:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var s=n(951);const r=n.n(s)()("dops:analytics");let o,i;window._tkq=window._tkq||[],window.ga=window.ga||function(){(window.ga.q=window.ga.q||[]).push(arguments)},window.ga.l=+new Date;const c={initialize:function(e,t,n){c.setUser(e,t),c.setSuperProps(n),c.identifyUser()},setGoogleAnalyticsEnabled:function(e,t=null){this.googleAnalyticsEnabled=e,this.googleAnalyticsKey=t},setMcAnalyticsEnabled:function(e){this.mcAnalyticsEnabled=e},setUser:function(e,t){i={ID:e,username:t}},setSuperProps:function(e){o=e},assignSuperProps:function(e){o=Object.assign(o||{},e)},mc:{bumpStat:function(e,t){const n=function(e,t){let n="";if("object"==typeof e){for(const t in e)n+="&x_"+encodeURIComponent(t)+"="+encodeURIComponent(e[t]);r("Bumping stats %o",e)}else n="&x_"+encodeURIComponent(e)+"="+encodeURIComponent(t),r('Bumping stat "%s" in group "%s"',t,e);return n}(e,t);c.mcAnalyticsEnabled&&((new Image).src=document.location.protocol+"//pixel.wp.com/g.gif?v=wpcom-no-pv"+n+"&t="+Math.random())},bumpStatWithPageView:function(e,t){const n=function(e,t){let n="";if("object"==typeof e){for(const t in e)n+="&"+encodeURIComponent(t)+"="+encodeURIComponent(e[t]);r("Built stats %o",e)}else n="&"+encodeURIComponent(e)+"="+encodeURIComponent(t),r('Built stat "%s" in group "%s"',t,e);return n}(e,t);c.mcAnalyticsEnabled&&((new Image).src=document.location.protocol+"//pixel.wp.com/g.gif?v=wpcom"+n+"&t="+Math.random())}},pageView:{record:function(e,t){c.tracks.recordPageView(e),c.ga.recordPageView(e,t)}},purchase:{record:function(e,t,n,s,r,o,i){c.ga.recordPurchase(e,t,n,s,r,o,i)}},tracks:{recordEvent:function(e,t){t=t||{},0===e.indexOf("akismet_")||0===e.indexOf("jetpack_")?(o&&(r("- Super Props: %o",o),t=Object.assign(t,o)),r('Record event "%s" called with props %s',e,JSON.stringify(t)),window._tkq.push(["recordEvent",e,t])):r('- Event name must be prefixed by "akismet_" or "jetpack_"')},recordJetpackClick:function(e){const t="object"==typeof e?e:{target:e};c.tracks.recordEvent("jetpack_wpa_click",t)},recordPageView:function(e){c.tracks.recordEvent("akismet_page_view",{path:e})},setOptOut:function(e){r("Pushing setOptOut: %o",e),window._tkq.push(["setOptOut",e])}},ga:{initialized:!1,initialize:function(){let e={};c.ga.initialized||(i&&(e={userId:"u-"+i.ID}),window.ga("create",this.googleAnalyticsKey,"auto",e),c.ga.initialized=!0)},recordPageView:function(e,t){c.ga.initialize(),r("Recording Page View ~ [URL: "+e+"] [Title: "+t+"]"),this.googleAnalyticsEnabled&&(window.ga("set","page",e),window.ga("send",{hitType:"pageview",page:e,title:t}))},recordEvent:function(e,t,n,s){c.ga.initialize();let o="Recording Event ~ [Category: "+e+"] [Action: "+t+"]";void 0!==n&&(o+=" [Option Label: "+n+"]"),void 0!==s&&(o+=" [Option Value: "+s+"]"),r(o),this.googleAnalyticsEnabled&&window.ga("send","event",e,t,n,s)},recordPurchase:function(e,t,n,s,r,o,i){window.ga("require","ecommerce"),window.ga("ecommerce:addTransaction",{id:e,revenue:s,currency:i}),window.ga("ecommerce:addItem",{id:e,name:t,sku:n,price:r,quantity:o}),window.ga("ecommerce:send")}},identifyUser:function(){i&&window._tkq.push(["identifyUser",i.ID,i.username])},setProperties:function(e){window._tkq.push(["setProperties",e])},clearedIdentity:function(){window._tkq.push(["clearIdentity"])}},a=c},64743:(e,t,n)=>{"use strict";n.d(t,{ZP:()=>p});var s=n(61132),r=n(96483);function o(e){class t extends Error{constructor(...t){super(...t),this.name=e}}return t}const i=o("JsonParseError"),c=o("JsonParseAfterRedirectError"),a=o("Api404Error"),u=o("Api404AfterRedirectError"),d=o("FetchNetworkError");const p=new function(e,t){let n=e,o=e,i={"X-WP-Nonce":t},c={credentials:"same-origin",headers:i},a={method:"post",credentials:"same-origin",headers:Object.assign({},i,{"Content-type":"application/json"})},u=function(e){const t=e.split("?"),n=t.length>1?t[1]:"",s=n.length?n.split("&"):[];return s.push("_cacheBuster="+(new Date).getTime()),t[0]+"?"+s.join("&")};const d={setApiRoot(e){n=e},setWpcomOriginApiUrl(e){o=e},setApiNonce(e){i={"X-WP-Nonce":e},c={credentials:"same-origin",headers:i},a={method:"post",credentials:"same-origin",headers:Object.assign({},i,{"Content-type":"application/json"})}},setCacheBusterCallback:e=>{u=e},registerSite:(e,t,r)=>{const o={registration_nonce:e,no_iframe:!0};return(0,s.jetpackConfigHas)("consumer_slug")&&(o.plugin_slug=(0,s.jetpackConfigGet)("consumer_slug")),null!==t&&(o.redirect_uri=t),r&&(o.from=r),g(`${n}jetpack/v4/connection/register`,a,{body:JSON.stringify(o)}).then(l).then(h)},fetchAuthorizationUrl:e=>p((0,r.addQueryArgs)(`${n}jetpack/v4/connection/authorize_url`,{no_iframe:"1",redirect_uri:e}),c).then(l).then(h),fetchSiteConnectionData:()=>p(`${n}jetpack/v4/connection/data`,c).then(h),fetchSiteConnectionStatus:()=>p(`${n}jetpack/v4/connection`,c).then(h),fetchSiteConnectionTest:()=>p(`${n}jetpack/v4/connection/test`,c).then(l).then(h),fetchUserConnectionData:()=>p(`${n}jetpack/v4/connection/data`,c).then(h),fetchUserTrackingSettings:()=>p(`${n}jetpack/v4/tracking/settings`,c).then(l).then(h),updateUserTrackingSettings:e=>g(`${n}jetpack/v4/tracking/settings`,a,{body:JSON.stringify(e)}).then(l).then(h),disconnectSite:()=>g(`${n}jetpack/v4/connection`,a,{body:JSON.stringify({isActive:!1})}).then(l).then(h),fetchConnectUrl:()=>p(`${n}jetpack/v4/connection/url`,c).then(l).then(h),unlinkUser:()=>g(`${n}jetpack/v4/connection/user`,a,{body:JSON.stringify({linked:!1})}).then(l).then(h),reconnect:()=>g(`${n}jetpack/v4/connection/reconnect`,a).then(l).then(h),fetchConnectedPlugins:()=>p(`${n}jetpack/v4/connection/plugins`,c).then(l).then(h),setHasSeenWCConnectionModal:()=>g(`${n}jetpack/v4/seen-wc-connection-modal`,a).then(l).then(h),fetchModules:()=>p(`${n}jetpack/v4/module/all`,c).then(l).then(h),fetchModule:e=>p(`${n}jetpack/v4/module/${e}`,c).then(l).then(h),activateModule:e=>g(`${n}jetpack/v4/module/${e}/active`,a,{body:JSON.stringify({active:!0})}).then(l).then(h),deactivateModule:e=>g(`${n}jetpack/v4/module/${e}/active`,a,{body:JSON.stringify({active:!1})}),updateModuleOptions:(e,t)=>g(`${n}jetpack/v4/module/${e}`,a,{body:JSON.stringify(t)}).then(l).then(h),updateSettings:e=>g(`${n}jetpack/v4/settings`,a,{body:JSON.stringify(e)}).then(l).then(h),getProtectCount:()=>p(`${n}jetpack/v4/module/protect/data`,c).then(l).then(h),resetOptions:e=>g(`${n}jetpack/v4/options/${e}`,a,{body:JSON.stringify({reset:!0})}).then(l).then(h),activateVaultPress:()=>g(`${n}jetpack/v4/plugins`,a,{body:JSON.stringify({slug:"vaultpress",status:"active"})}).then(l).then(h),getVaultPressData:()=>p(`${n}jetpack/v4/module/vaultpress/data`,c).then(l).then(h),installPlugin:(e,t)=>{const s={slug:e,status:"active"};return t&&(s.source=t),g(`${n}jetpack/v4/plugins`,a,{body:JSON.stringify(s)}).then(l).then(h)},activateAkismet:()=>g(`${n}jetpack/v4/plugins`,a,{body:JSON.stringify({slug:"akismet",status:"active"})}).then(l).then(h),getAkismetData:()=>p(`${n}jetpack/v4/module/akismet/data`,c).then(l).then(h),checkAkismetKey:()=>p(`${n}jetpack/v4/module/akismet/key/check`,c).then(l).then(h),checkAkismetKeyTyped:e=>g(`${n}jetpack/v4/module/akismet/key/check`,a,{body:JSON.stringify({api_key:e})}).then(l).then(h),fetchStatsData:e=>p(function(e){let t=`${n}jetpack/v4/module/stats/data`;-1!==t.indexOf("?")?t+=`&range=${encodeURIComponent(e)}`:t+=`?range=${encodeURIComponent(e)}`;return t}(e),c).then(l).then(h).then(m),getPluginUpdates:()=>p(`${n}jetpack/v4/updates/plugins`,c).then(l).then(h),getPlans:()=>p(`${n}jetpack/v4/plans`,c).then(l).then(h),fetchSettings:()=>p(`${n}jetpack/v4/settings`,c).then(l).then(h),updateSetting:e=>g(`${n}jetpack/v4/settings`,a,{body:JSON.stringify(e)}).then(l).then(h),fetchSiteData:()=>p(`${n}jetpack/v4/site`,c).then(l).then(h).then((e=>JSON.parse(e.data))),fetchSiteFeatures:()=>p(`${n}jetpack/v4/site/features`,c).then(l).then(h).then((e=>JSON.parse(e.data))),fetchSiteProducts:()=>p(`${n}jetpack/v4/site/products`,c).then(l).then(h),fetchSitePurchases:()=>p(`${n}jetpack/v4/site/purchases`,c).then(l).then(h).then((e=>JSON.parse(e.data))),fetchSiteBenefits:()=>p(`${n}jetpack/v4/site/benefits`,c).then(l).then(h).then((e=>JSON.parse(e.data))),fetchSiteDiscount:()=>p(`${n}jetpack/v4/site/discount`,c).then(l).then(h).then((e=>e.data)),fetchSetupQuestionnaire:()=>p(`${n}jetpack/v4/setup/questionnaire`,c).then(l).then(h),fetchRecommendationsData:()=>p(`${n}jetpack/v4/recommendations/data`,c).then(l).then(h),fetchRecommendationsProductSuggestions:()=>p(`${n}jetpack/v4/recommendations/product-suggestions`,c).then(l).then(h),fetchRecommendationsUpsell:()=>p(`${n}jetpack/v4/recommendations/upsell`,c).then(l).then(h),fetchRecommendationsConditional:()=>p(`${n}jetpack/v4/recommendations/conditional`,c).then(l).then(h),saveRecommendationsData:e=>g(`${n}jetpack/v4/recommendations/data`,a,{body:JSON.stringify({data:e})}).then(l),fetchProducts:()=>p(`${n}jetpack/v4/products`,c).then(l).then(h),fetchRewindStatus:()=>p(`${n}jetpack/v4/rewind`,c).then(l).then(h).then((e=>JSON.parse(e.data))),fetchScanStatus:()=>p(`${n}jetpack/v4/scan`,c).then(l).then(h).then((e=>JSON.parse(e.data))),dismissJetpackNotice:e=>g(`${n}jetpack/v4/notice/${e}`,a,{body:JSON.stringify({dismissed:!0})}).then(l).then(h),fetchPluginsData:()=>p(`${n}jetpack/v4/plugins`,c).then(l).then(h),fetchIntroOffers:()=>p(`${n}jetpack/v4/intro-offers`,c).then(l).then(h),fetchVerifySiteGoogleStatus:e=>p(null!==e?`${n}jetpack/v4/verify-site/google/${e}`:`${n}jetpack/v4/verify-site/google`,c).then(l).then(h),verifySiteGoogle:e=>g(`${n}jetpack/v4/verify-site/google`,a,{body:JSON.stringify({keyring_id:e})}).then(l).then(h),submitSurvey:e=>g(`${n}jetpack/v4/marketing/survey`,a,{body:JSON.stringify(e)}).then(l).then(h),saveSetupQuestionnaire:e=>g(`${n}jetpack/v4/setup/questionnaire`,a,{body:JSON.stringify(e)}).then(l).then(h),updateLicensingError:e=>g(`${n}jetpack/v4/licensing/error`,a,{body:JSON.stringify(e)}).then(l).then(h),updateLicenseKey:e=>g(`${n}jetpack/v4/licensing/set-license`,a,{body:JSON.stringify({license:e})}).then(l).then(h),getUserLicensesCounts:()=>p(`${n}jetpack/v4/licensing/user/counts`,c).then(l).then(h),getUserLicenses:()=>p(`${n}jetpack/v4/licensing/user/licenses`,c).then(l).then(h),updateLicensingActivationNoticeDismiss:e=>g(`${n}jetpack/v4/licensing/user/activation-notice-dismiss`,a,{body:JSON.stringify({last_detached_count:e})}).then(l).then(h),updateRecommendationsStep:e=>g(`${n}jetpack/v4/recommendations/step`,a,{body:JSON.stringify({step:e})}).then(l),confirmIDCSafeMode:()=>g(`${n}jetpack/v4/identity-crisis/confirm-safe-mode`,a).then(l),startIDCFresh:e=>g(`${n}jetpack/v4/identity-crisis/start-fresh`,a,{body:JSON.stringify({redirect_uri:e})}).then(l).then(h),migrateIDC:()=>g(`${n}jetpack/v4/identity-crisis/migrate`,a).then(l),attachLicenses:e=>g(`${n}jetpack/v4/licensing/attach-licenses`,a,{body:JSON.stringify({licenses:e})}).then(l).then(h),fetchSearchPlanInfo:()=>p(`${o}jetpack/v4/search/plan`,c).then(l).then(h),fetchSearchSettings:()=>p(`${o}jetpack/v4/search/settings`,c).then(l).then(h),updateSearchSettings:e=>g(`${o}jetpack/v4/search/settings`,a,{body:JSON.stringify(e)}).then(l).then(h),fetchSearchStats:()=>p(`${o}jetpack/v4/search/stats`,c).then(l).then(h),fetchWafSettings:()=>p(`${n}jetpack/v4/waf`,c).then(l).then(h),updateWafSettings:e=>g(`${n}jetpack/v4/waf`,a,{body:JSON.stringify(e)}).then(l).then(h),fetchWordAdsSettings:()=>p(`${n}jetpack/v4/wordads/settings`,c).then(l).then(h),updateWordAdsSettings:e=>g(`${n}jetpack/v4/wordads/settings`,a,{body:JSON.stringify(e)}),fetchSearchPricing:()=>p(`${o}jetpack/v4/search/pricing`,c).then(l).then(h),fetchMigrationStatus:()=>p(`${n}jetpack/v4/migration/status`,c).then(l).then(h),fetchBackupUndoEvent:()=>p(`${n}jetpack/v4/site/backup/undo-event`,c).then(l).then(h),fetchBackupPreflightStatus:()=>p(`${n}jetpack/v4/site/backup/preflight`,c).then(l).then(h)};function p(e,t){return fetch(u(e),t)}function g(e,t,n){return fetch(e,Object.assign({},t,n)).catch(f)}function m(e){return e.general&&void 0===e.general.response||e.week&&void 0===e.week.response||e.month&&void 0===e.month.response?e:{}}Object.assign(this,d)};function l(e){return e.status>=200&&e.status<300?e:404===e.status?new Promise((()=>{throw e.redirected?new u(e.redirected):new a})):e.json().catch((e=>g(e))).then((t=>{const n=new Error(`${t.message} (Status ${e.status})`);throw n.response=t,n.name="ApiError",n}))}function h(e){return e.json().catch((t=>g(t,e.redirected,e.url)))}function g(e,t,n){throw t?new c(n):new i}function f(){throw new d}},61132:(e,t,n)=>{let s={};try{s=n(76354)}catch{console.error("jetpackConfig is missing in your webpack config file. See @automattic/jetpack-config"),s={missingConfig:!0}}const r=e=>Object.hasOwn(s,e);e.exports={jetpackConfigHas:r,jetpackConfigGet:e=>{if(!r(e))throw'This app requires the "'+e+'" Jetpack Config to be defined in your webpack configuration file. See details in @automattic/jetpack-config package docs.';return s[e]}}},31294:(e,t,n)=>{"use strict";n.d(t,{Z:()=>u});var s=n(64743),r=n(51732),o=n(9818),i=n(99196),c=n(80428);const a=window?.JP_CONNECTION_INITIAL_STATE||(0,r.getScriptData)()?.connection||{},u=({registrationNonce:e=a.registrationNonce,apiRoot:t=a.apiRoot,apiNonce:n=a.apiNonce,redirectUri:r,autoTrigger:u,from:d,skipUserConnection:p}={})=>{const{registerSite:l,connectUser:h,refreshConnectedPlugins:g}=(0,o.useDispatch)(c.t),f=(0,o.useSelect)((e=>e(c.t).getRegistrationError())),{siteIsRegistering:m,userIsConnecting:w,userConnectionData:C,connectedPlugins:y,connectionErrors:v,isRegistered:k,isUserConnected:S,hasConnectedOwner:E,isOfflineMode:j}=(0,o.useSelect)((e=>({siteIsRegistering:e(c.t).getSiteIsRegistering(),userIsConnecting:e(c.t).getUserIsConnecting(),userConnectionData:e(c.t).getUserConnectionData(),connectedPlugins:e(c.t).getConnectedPlugins(),connectionErrors:e(c.t).getConnectionErrors(),isOfflineMode:e(c.t).getIsOfflineMode(),...e(c.t).getConnectionStatus()}))),b=()=>p?r?(window.location=r,Promise.resolve(r)):Promise.resolve():h({from:d,redirectUri:r}),_=t=>(t&&t.preventDefault(),k?b():l({registrationNonce:e,redirectUri:r,from:d}).then((()=>b())));return(0,i.useEffect)((()=>{s.ZP.setApiRoot(t),s.ZP.setApiNonce(n)}),[t,n]),(0,i.useEffect)((()=>{!u||m||w||_()}),[]),{handleRegisterSite:_,handleConnectUser:b,refreshConnectedPlugins:g,isRegistered:k,isUserConnected:S,siteIsRegistering:m,userIsConnecting:w,registrationError:f,userConnectionData:C,hasConnectedOwner:E,connectedPlugins:y,connectionErrors:v,isOfflineMode:j}}},27523:(e,t,n)=>{"use strict";n.d(t,{LI:()=>o,N4:()=>c,Qo:()=>p,T1:()=>u,TS:()=>d,ZP:()=>S,b5:()=>h,i6:()=>r,qJ:()=>g,qV:()=>a,r7:()=>i,wQ:()=>l});var s=n(64743);const r="SET_CONNECTION_STATUS",o="SET_CONNECTION_STATUS_IS_FETCHING",i="SET_SITE_IS_REGISTERING",c="SET_USER_IS_CONNECTING",a="SET_REGISTRATION_ERROR",u="CLEAR_REGISTRATION_ERROR",d="SET_AUTHORIZATION_URL",p="DISCONNECT_USER_SUCCESS",l="SET_CONNECTED_PLUGINS",h="SET_CONNECTION_ERRORS",g="SET_IS_OFFLINE_MODE",f=e=>({type:r,connectionStatus:e}),m=e=>({type:i,isRegistering:e}),w=e=>({type:c,isConnecting:e}),C=e=>({type:a,registrationError:e}),y=()=>({type:u}),v=e=>({type:d,authorizationUrl:e}),k=e=>({type:l,connectedPlugins:e});const S={setConnectionStatus:f,setConnectionStatusIsFetching:e=>({type:o,isFetching:e}),fetchConnectionStatus:()=>({type:"FETCH_CONNECTION_STATUS"}),fetchAuthorizationUrl:e=>({type:"FETCH_AUTHORIZATION_URL",redirectUri:e}),setSiteIsRegistering:m,setUserIsConnecting:w,setRegistrationError:C,clearRegistrationError:y,setAuthorizationUrl:v,registerSite:function*({registrationNonce:e,redirectUri:t,from:n=""}){yield y(),yield m(!0);try{const s=yield{type:"REGISTER_SITE",registrationNonce:e,redirectUri:t,from:n};return yield f({isRegistered:!0}),yield v(s.authorizeUrl),yield m(!1),Promise.resolve(s)}catch(e){return yield C(e),yield m(!1),Promise.reject(e)}},connectUser:function*({from:e,redirectFunc:t,redirectUri:n}={}){yield w(!0),yield{type:"CONNECT_USER",from:e,redirectFunc:t,redirectUri:n}},disconnectUserSuccess:()=>({type:p}),setConnectedPlugins:k,refreshConnectedPlugins:()=>async({dispatch:e})=>await new Promise((t=>s.ZP.fetchConnectedPlugins().then((n=>{e(k(n)),t(n)})))),setConnectionErrors:e=>({type:h,connectionErrors:e}),setIsOfflineMode:e=>({type:g,isOfflineMode:e})}},31432:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var s=n(64743),r=n(9818),o=n(27057);const i={FETCH_AUTHORIZATION_URL:({redirectUri:e})=>s.ZP.fetchAuthorizationUrl(e),REGISTER_SITE:({registrationNonce:e,redirectUri:t,from:n})=>s.ZP.registerSite(e,t,n),CONNECT_USER:(0,r.createRegistryControl)((({resolveSelect:e})=>({from:t,redirectFunc:n,redirectUri:s}={})=>new Promise(((r,i)=>{e(o.Z).getAuthorizationUrl(s).then((e=>{const s=n||(e=>window.location.assign(e)),o=new URL(e);t&&o.searchParams.set("from",encodeURIComponent(t));const i=o.toString();s(i),r(i)})).catch((e=>{i(e)}))}))))}},41479:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var s=n(9818),r=n(27523);const o=(0,s.combineReducers)({connectionStatus:(e={},t)=>{switch(t.type){case r.i6:return{...e,...t.connectionStatus};case r.Qo:return{...e,isUserConnected:!1}}return e},connectionStatusIsFetching:(e=!1,t)=>t.type===r.LI?t.isFetching:e,siteIsRegistering:(e=!1,t)=>t.type===r.r7?t.isRegistering:e,userIsConnecting:(e=!1,t)=>t.type===r.N4?t.isConnecting:e,registrationError:(e,t)=>{switch(t.type){case r.T1:return!1;case r.qV:return t.registrationError;default:return e}},authorizationUrl:(e,t)=>t.type===r.TS?t.authorizationUrl:e,userConnectionData:(e,t)=>(t.type,e),connectedPlugins:(e={},t)=>t.type===r.wQ?t.connectedPlugins:e,connectionErrors:(e={},t)=>t.type===r.b5?t.connectionErrors:e,isOfflineMode:(e=!1,t)=>t.type===r.qJ?t.isConnecting:e})},77728:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var s=n(9818),r=n(27523),o=n(27057);const i={...{getAuthorizationUrl:{isFulfilled:(e,...t)=>{const n=Boolean(e.authorizationUrl),r=(0,s.select)(o.Z).hasFinishedResolution("getAuthorizationUrl",t);return n&&!r&&(0,s.dispatch)(o.Z).finishResolution("getAuthorizationUrl",t),n},*fulfill(e){const t=yield r.ZP.fetchAuthorizationUrl(e);yield r.ZP.setAuthorizationUrl(t.authorizeUrl)}}}}},82725:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});const s={...{getConnectionStatus:e=>e.connectionStatus||{},getConnectionStatusIsFetching:()=>!1,getSiteIsRegistering:e=>e.siteIsRegistering||!1,getUserIsConnecting:e=>e.userIsConnecting||!1,getRegistrationError:e=>e.registrationError||!1,getAuthorizationUrl:e=>e.authorizationUrl||!1,getUserConnectionData:e=>e.userConnectionData||!1,getConnectedPlugins:e=>e.connectedPlugins||[],getConnectionErrors:e=>e.connectionErrors||[],getIsOfflineMode:e=>e.isOfflineMode||!1,getWpcomUser:e=>e?.userConnectionData?.currentUser?.wpcomUser,getBlogId:e=>e?.userConnectionData?.currentUser?.blogId}}},13535:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var s=n(9818);class r{static store=null;static mayBeInit(e,t){null===r.store&&(r.store=(0,s.createReduxStore)(e,t),(0,s.register)(r.store))}}const o=r},27057:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});const s="jetpack-connection"},80428:(e,t,n)=>{"use strict";n.d(t,{t:()=>d.Z});var s=n(51732),r=n(27523),o=n(31432),i=n(41479),c=n(77728),a=n(82725),u=n(13535),d=n(27057);const p=window.JP_CONNECTION_INITIAL_STATE||(0,s.getScriptData)()?.connection;p||console.error("Jetpack Connection package: Initial state is missing. Check documentation to see how to use the Connection composer package to set up the initial state."),u.Z.mayBeInit(d.Z,{__experimentalUseThunks:!0,reducer:i.Z,actions:r.ZP,selectors:a.Z,resolvers:c.Z,controls:o.Z,initialState:p||{}})},13419:(e,t,n)=>{"use strict";n.d(t,{z$:()=>s.Z});n(76714),n(80354),n(75404);var s=n(61053);n(11380),n(6342),n(96959),n(39058)},6342:(e,t,n)=>{"use strict";n(99196)},96959:(e,t,n)=>{"use strict";n(69307)},61053:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var s=n(6975),r=n(31294),o=n(69307);const{tracks:i}=s.Z,{recordEvent:c}=i,a=({pageViewEventName:e=null,pageViewNamespace:t="jetpack",pageViewSuffix:n="page_view",pageViewEventProperties:a={}}={})=>{const[u,d]=(0,o.useState)(!1),{isUserConnected:p,isRegistered:l,userConnectionData:h={}}=(0,r.Z)(),{wpcomUser:{login:g,ID:f}={},blogId:m}=h.currentUser||{},w=(0,o.useCallback)((async(e,t={})=>{p&&f&&g&&c(e,t)}),[p,f,g]);return(0,o.useEffect)((()=>{p&&f&&g&&m&&s.Z.initialize(f,g,{blog_id:m})}),[m,f,g,p]),(0,o.useEffect)((()=>{const s=e?`${t}_${e}_${n}`:null;l&&s&&(u||(w(s,a),d(!0)))}),[u,t,e,n,l,a,w]),{recordEvent:w,tracks:i}}},11380:(e,t,n)=>{"use strict";n(9818),n(69307),n(39058)},44166:(e,t,n)=>{"use strict";n.d(t,{ZP:()=>l,rW:()=>p});var s=n(9818),r=n(99505),o=n(82162),i=n(39058);const c="SET_JETPACK_MODULES",a="SET_MODULE_UPDATING";function u(e){return p({isLoading:e})}function d(e,t){return{type:a,name:e,isUpdating:t}}function p(e){return{type:c,options:e}}const l={updateJetpackModuleStatus:function*(e){try{yield d(e.name,!0),yield(0,o.zL)(e);const t=yield(0,o.Bs)();return yield p({data:t}),!0}catch(e){const t=(0,s.select)(i.p).getJetpackModules();return yield p(t),!1}finally{yield d(e.name,!1)}},setJetpackModules:p,fetchModules:function*(){if((0,r.Wp)())return!0;try{yield u(!0);const e=yield(0,o.Bs)();return yield p({data:e}),!0}catch(e){const t=(0,s.select)(i.p).getJetpackModules();return yield p(t),!1}finally{yield u(!1)}}}},82162:(e,t,n)=>{"use strict";n.d(t,{Bs:()=>c,ZP:()=>u,zL:()=>a});var s=n(86989),r=n.n(s);const o="FETCH_JETPACK_MODULES",i="UPDATE_JETPACK_MODULE_STATUS",c=()=>({type:o}),a=e=>({type:i,settings:e}),u={[o]:function(){return r()({path:"/jetpack/v4/module/all",method:"GET"})},[i]:function({settings:e}){return r()({path:`/jetpack/v4/module/${e.name}/active`,method:"POST",data:{active:e.active}})}}},39058:(e,t,n)=>{"use strict";n.d(t,{p:()=>u});var s=n(9818),r=n(44166),o=n(82162),i=n(42469),c=n(55133),a=n(43524);const u="jetpack-modules",d=(0,s.createReduxStore)(u,{reducer:i.Z,actions:r.ZP,controls:o.ZP,resolvers:c.Z,selectors:a.Z});(0,s.register)(d);const p=window?.Initial_State?.getModules||window?.Jetpack_Editor_Initial_State?.modules||null;null!==p&&(0,s.dispatch)(u).setJetpackModules({data:{...p}})},42469:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});const s={isLoading:!1,isUpdating:{},data:{}},r=(e=s,t)=>{switch(t.type){case"SET_JETPACK_MODULES":return{...e,...t.options};case"SET_MODULE_UPDATING":return{...e,isUpdating:{...e.isUpdating,[t.name]:t.isUpdating}}}return e}},55133:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var s=n(44166),r=n(82162);const o={getJetpackModules:function*(){try{const e=yield(0,r.Bs)();if(e)return(0,s.rW)({data:e})}catch(e){console.error(e)}}}},43524:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});var s=n(99505);const r={getJetpackModules:e=>e.data,isModuleActive:(e,t)=>(0,s.Wp)()||(e?.data?.[t]?.activated??!1),areModulesLoading:e=>e.isLoading??!1,isModuleUpdating:(e,t)=>e?.isUpdating?.[t]??!1}},75404:(e,t,n)=>{"use strict";var s=n(65736);n(96483),n(92819);const __=s.__;__("Upgrade your plan to use video covers","jetpack-mu-wpcom"),__("Upgrade your plan to upload audio","jetpack-mu-wpcom")},76714:(e,t,n)=>{"use strict";n(98817)},99505:(e,t,n)=>{"use strict";function s(){return"object"==typeof window&&"string"==typeof window._currentSiteType?window._currentSiteType:null}function r(){return"simple"===s()}n.d(t,{Wp:()=>r})},80354:(e,t,n)=>{"use strict";n(82674),n(94333)},76354:e=>{"use strict";if(void 0==={consumer_slug:"jetpack-mu-wpcom"}){var t=new Error('Cannot find module \'{"consumer_slug":"jetpack-mu-wpcom"}\'');throw t.code="MODULE_NOT_FOUND",t}e.exports={consumer_slug:"jetpack-mu-wpcom"}},51732:e=>{"use strict";e.exports=window.JetpackScriptDataModule},99196:e=>{"use strict";e.exports=window.React},99501:e=>{"use strict";e.exports=window.ReactJSXRuntime},92819:e=>{"use strict";e.exports=window.lodash},86989:e=>{"use strict";e.exports=window.wp.apiFetch},55609:e=>{"use strict";e.exports=window.wp.components},94333:e=>{"use strict";e.exports=window.wp.compose},9818:e=>{"use strict";e.exports=window.wp.data},69307:e=>{"use strict";e.exports=window.wp.element},92694:e=>{"use strict";e.exports=window.wp.hooks},65736:e=>{"use strict";e.exports=window.wp.i18n},98817:e=>{"use strict";e.exports=window.wp.plugins},96483:e=>{"use strict";e.exports=window.wp.url},82674:e=>{function t(){return e.exports=t=Object.assign?Object.assign.bind():function(e){for(var t=1;t{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var s in t)n.o(t,s)&&!n.o(e,s)&&Object.defineProperty(e,s,{enumerable:!0,get:t[s]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{"use strict";var e=n(34369),t=n(13419),s=n(55609),r=n(94333),o=n(92694);const i=(0,r.createHigherOrderComponent)((n=>r=>{const{tracks:o}=(0,t.z$)();return"post_tag"===r.slug&&window.wpcomTagsEducation?React.createElement(React.Fragment,null,React.createElement(n,r),React.createElement(s.ExternalLink,{href:(0,e.aq)("https://wordpress.com/support/posts/tags/"),onClick:()=>{o.recordEvent("jetpack_mu_wpcom_tags_education_link_click")}},window.wpcomTagsEducation.actionText)):React.createElement(n,r)}),"addTagsEducationLink");(0,o.addFilter)("editor.PostTaxonomyType","jetpack-mu-wpcom/add-tags-education-link",i)})()})(); \ No newline at end of file diff --git a/vendor/automattic/jetpack-mu-wpcom/src/build/wpcom-block-description-links/wpcom-block-description-links.asset.php b/vendor/automattic/jetpack-mu-wpcom/src/build/wpcom-block-description-links/wpcom-block-description-links.asset.php index df651f91..2a8d51c0 100644 --- a/vendor/automattic/jetpack-mu-wpcom/src/build/wpcom-block-description-links/wpcom-block-description-links.asset.php +++ b/vendor/automattic/jetpack-mu-wpcom/src/build/wpcom-block-description-links/wpcom-block-description-links.asset.php @@ -1 +1 @@ - array('jetpack-script-data', 'lodash', 'react', 'react-jsx-runtime', 'wp-api-fetch', 'wp-components', 'wp-compose', 'wp-data', 'wp-element', 'wp-hooks', 'wp-i18n', 'wp-plugins', 'wp-url'), 'version' => '337261cd8a01300ca7fc'); + array('jetpack-script-data', 'lodash', 'react', 'react-jsx-runtime', 'wp-api-fetch', 'wp-components', 'wp-compose', 'wp-data', 'wp-element', 'wp-hooks', 'wp-i18n', 'wp-plugins', 'wp-url'), 'version' => '0dfe1a4d926db9fc6c30'); diff --git a/vendor/automattic/jetpack-mu-wpcom/src/build/wpcom-block-description-links/wpcom-block-description-links.js b/vendor/automattic/jetpack-mu-wpcom/src/build/wpcom-block-description-links/wpcom-block-description-links.js index fa8de5e5..7930cd8f 100644 --- a/vendor/automattic/jetpack-mu-wpcom/src/build/wpcom-block-description-links/wpcom-block-description-links.js +++ b/vendor/automattic/jetpack-mu-wpcom/src/build/wpcom-block-description-links/wpcom-block-description-links.js @@ -1 +1 @@ -(()=>{var e={73625:(e,t,o)=>{"use strict";o.d(t,{bU:()=>a,v8:()=>p});var s=o(99501),r=o(94333),n=o(65736),i=o(99196);const c=(0,i.createContext)(null);function p(){return function(e=""){if(!e)return"";const t=e.toLowerCase();return(["pt_br","pt-br","zh_tw","zh-tw","zh_cn","zh-cn","zh_sg","zh-sg"].includes(t)?t.replace("_","-"):t.replace(/([-_].*)$/i,""))||"en"}(function(){const e=n.getLocaleData()||{};return e[""]?.lang||e[""]?.language||""}())}function a(){const e=(0,i.useContext)(c),t=!!e,[o,s]=(0,i.useState)(p());return(0,i.useEffect)((()=>{if(!t)return s(p()),n.subscribe((()=>{s(p())}))}),[t]),e||o||"undefined"!=typeof window&&window._currentUserLocale||"en"}(0,r.createHigherOrderComponent)((e=>t=>{const o={...t,locale:a()};return(0,s.jsx)(e,{...o})}),"withLocale")},70560:(e,t,o)=>{"use strict";o.d(t,{GG:()=>s,Xb:()=>a,_r:()=>h,dH:()=>r,hI:()=>d,iT:()=>n,kV:()=>c,mL:()=>l,vS:()=>u,xh:()=>p,xn:()=>i});const s=["en","ja","es","pt","fr","pt-br"],r=["en","pt-br","de","es","fr","it"],n=["en","fr","de","es"],i=["en","fr","de","es"],c=["en","es"],p=["ar","de","el","es","fr","he","id","it","ja","ko","nl","pt-br","ro","ru","sv","tr","zh-cn","zh-tw"],a={"pt-br":"br",br:"bre",zh:"zh-cn","zh-hk":"zh-tw","zh-sg":"zh-cn",kr:"ko"},d=["ar","de","en","es","fr","he","id","it","ja","ko","nl","pt-br","ru","sv","tr","zh-cn","zh-tw"],l=["ar","de","el","en","es","fa","fi","fr","id","it","ja","nl","pt","pt-br","ru","sv","th","tl","tr"],u=["es","pt-br","de","fr","he","ja","it","nl","ru","tr","id","zh-cn","zh-tw","ko","ar","sv"],h=["en","ar","de","es","fr","he","id","it","ja","ko","nl","pt-br","ro","ru","sv","tr","zh-cn","zh-tw"]},34369:(e,t,o)=>{"use strict";o.d(t,{aq:()=>m});var s=o(99501),r=o(94333),n=o(99196),i=o(73625),c=o(70560);const p="http://__domain__.invalid";const a=(e,t=[])=>(o,s)=>(t.includes(s)&&"en"!==s&&o.pathname.substr(0,s.length+2)!=="/"+s+"/"&&(o.host=`${c.Xb[s]||s}.${e}`),o),d=(e,t=[],o=null)=>(s,r)=>(s.host="wordpress.com","object"==typeof o&&o instanceof RegExp&&!o.test(s.pathname)&&(t=[]),s.pathname=e+s.pathname,t.includes(r)&&"en"!==r&&(s.pathname=r+s.pathname),s),l=(e=[],t=null,o)=>(s,r)=>"object"==typeof t&&t instanceof RegExp&&!t.test(s.pathname)?s:e.includes(r)&&"en"!==r?("prefix"===o?s.pathname=r+s.pathname:"suffix"===o&&(s.pathname.endsWith("/")?s.pathname+=r+"/":s.pathname+="/"+r),s):s,u=(e=[],t=null)=>(o,s)=>l(e,t,"prefix")(o,s),h=(e=[],t=null)=>(o,s)=>l(e,t,"suffix")(o,s),k={"wordpress.com/support/":u(c.hI),"wordpress.com/forums/":u(c.mL),"wordpress.com/blog/":u(c.GG,/^\/blog\/?$/),"wordpress.com/go/":(e,t)=>["/go/","/go"].includes(e.pathname)||"es"===t?u(c.dH)(e,t):e,"wordpress.com/pricing/":u(c.xh),"wordpress.com/tos/":u(c.vS),"wordpress.com/wp-admin/":a("wordpress.com",c.vS),"wordpress.com/wp-login.php":a("wordpress.com",c.vS),"jetpack.com":u(c._r),"cloud.jetpack.com":u(c._r),"en.support.wordpress.com":d("/support",c.hI),"en.blog.wordpress.com":d("/blog",c.GG,/^\/$/),"apps.wordpress.com":u(c.vS),"en.forums.wordpress.com":d("/forums",c.mL),"automattic.com/privacy/":u(c.iT),"automattic.com/cookies/":u(c.xn),"wordpress.com/help/contact/":(e,t,o)=>o?e:(e.pathname=e.pathname.replace(/\/help\//,"/support/"),u(c.hI)(e,t)),"wordpress.com":(e,t)=>/^\/(checkout|me)(\/|$)/.test(e.pathname)||/\/([a-z0-9-]+\.)+[a-z]{2,}\/?$/.test(e.pathname)?e:u(c.vS)(e,t),"wordpress.com/theme/":(e,t,o)=>o?e:u(c.vS)(e,t),"wordpress.com/themes/":(e,t,o)=>o?e:u(c.vS)(e,t),"wordpress.com/plugins/":(e,t,o)=>o?e:u(c.vS)(e,t),"wordpress.com/log-in/":(e,t,o)=>o?e:h(c.vS)(e,t),"wordpress.com/start/":(e,t,o)=>o?e:h(c.vS)(e,t),"wordpress.com/learn/":(e,t)=>e.pathname.includes("/learn/webinars/")&&"es"===t?(e.pathname=e.pathname.replace("/learn/webinars/","/learn/es/webinars/"),e):h(c.kV)(e,t),"wordpress.com/plans/":(e,t,o)=>o||"/plans/"!==e.pathname?e:u(c.xh)(e,t),"wordpress.com/setup/":(e,t,o)=>o?e:h(c.vS)(e,t)};function g(e){try{return new URL(String(e),p).pathname.endsWith("/")}catch(e){return!1}}function m(e,t=function(){return(0,i.v8)()??"en"}(),o=!0,s=!1){let r;try{r=new URL(String(e),p)}catch(t){return e}if(r.origin===p)return e;r.protocol="https:",r.pathname.endsWith(".php")||(r.pathname=(r.pathname+"/").replace(/\/+$/,"/"));const n=r.pathname.substr(0,1+r.pathname.indexOf("/",1));if("en.wordpress.com"===r.host&&(r.host="wordpress.com"),"/"+t+"/"===n)return e;const c=[r.host,r.host+n,r.host+r.pathname];for(let n=c.length-1;n>=0;n--)if(c[n]in k){const i=k[c[n]](r,t,o).href;if(!s)return i;try{const t=new URL(i);return g(e)||(t.pathname=t.pathname.replace(/\/+$/,"")),t.href}catch{return i}}return e}function w(){const e=(0,i.bU)();return(0,n.useCallback)(((t,o,s,r)=>m(t,o||e,s,r)),[e])}(0,r.createHigherOrderComponent)((e=>t=>{const o={...t,localizeUrl:w()};return(0,s.jsx)(e,{...o})}),"withLocalizeUrl")},951:(e,t,o)=>{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 o="color: "+this.color;t.splice(1,0,o,"color: inherit");let s=0,r=0;t[0].replace(/%[a-zA-Z%]/g,(e=>{"%%"!==e&&(s++,"%c"===e&&(r=s))})),t.splice(r,0,o)},t.save=function(e){try{e?t.storage.setItem("debug",e):t.storage.removeItem("debug")}catch(e){}},t.load=function(){let e;try{e=t.storage.getItem("debug")}catch(e){}!e&&"undefined"!=typeof process&&"env"in process&&(e=process.env.DEBUG);return e},t.useColors=function(){if("undefined"!=typeof window&&window.process&&("renderer"===window.process.type||window.process.__nwjs))return!0;if("undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;return"undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)},t.storage=function(){try{return localStorage}catch(e){}}(),t.destroy=(()=>{let e=!1;return()=>{e||(e=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})(),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],t.log=console.debug||console.log||(()=>{}),e.exports=o(51741)(t);const{formatters:s}=e.exports;s.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}},51741:(e,t,o)=>{e.exports=function(e){function t(e){let o,r,n,i=null;function c(...e){if(!c.enabled)return;const s=c,r=Number(new Date),n=r-(o||r);s.diff=n,s.prev=o,s.curr=r,o=r,e[0]=t.coerce(e[0]),"string"!=typeof e[0]&&e.unshift("%O");let i=0;e[0]=e[0].replace(/%([a-zA-Z%])/g,((o,r)=>{if("%%"===o)return"%";i++;const n=t.formatters[r];if("function"==typeof n){const t=e[i];o=n.call(s,t),e.splice(i,1),i--}return o})),t.formatArgs.call(s,e);(s.log||t.log).apply(s,e)}return c.namespace=e,c.useColors=t.useColors(),c.color=t.selectColor(e),c.extend=s,c.destroy=t.destroy,Object.defineProperty(c,"enabled",{enumerable:!0,configurable:!1,get:()=>null!==i?i:(r!==t.namespaces&&(r=t.namespaces,n=t.enabled(e)),n),set:e=>{i=e}}),"function"==typeof t.init&&t.init(c),c}function s(e,o){const s=t(this.namespace+(void 0===o?":":o)+e);return s.log=this.log,s}function r(e){return e.toString().substring(2,e.toString().length-2).replace(/\.\*\?$/,"*")}return t.debug=t,t.default=t,t.coerce=function(e){if(e instanceof Error)return e.stack||e.message;return e},t.disable=function(){const e=[...t.names.map(r),...t.skips.map(r).map((e=>"-"+e))].join(",");return t.enable(""),e},t.enable=function(e){let o;t.save(e),t.namespaces=e,t.names=[],t.skips=[];const s=("string"==typeof e?e:"").split(/[\s,]+/),r=s.length;for(o=0;o{t[o]=e[o]})),t.names=[],t.skips=[],t.formatters={},t.selectColor=function(e){let o=0;for(let t=0;t{var t=1e3,o=60*t,s=60*o,r=24*s,n=7*r,i=365.25*r;function c(e,t,o,s){var r=t>=1.5*o;return Math.round(e/o)+" "+s+(r?"s":"")}e.exports=function(e,p){p=p||{};var a=typeof e;if("string"===a&&e.length>0)return function(e){if((e=String(e)).length>100)return;var c=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(!c)return;var p=parseFloat(c[1]);switch((c[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return p*i;case"weeks":case"week":case"w":return p*n;case"days":case"day":case"d":return p*r;case"hours":case"hour":case"hrs":case"hr":case"h":return p*s;case"minutes":case"minute":case"mins":case"min":case"m":return p*o;case"seconds":case"second":case"secs":case"sec":case"s":return p*t;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return p;default:return}}(e);if("number"===a&&isFinite(e))return p.long?function(e){var n=Math.abs(e);if(n>=r)return c(e,n,r,"day");if(n>=s)return c(e,n,s,"hour");if(n>=o)return c(e,n,o,"minute");if(n>=t)return c(e,n,t,"second");return e+" ms"}(e):function(e){var n=Math.abs(e);if(n>=r)return Math.round(e/r)+"d";if(n>=s)return Math.round(e/s)+"h";if(n>=o)return Math.round(e/o)+"m";if(n>=t)return Math.round(e/t)+"s";return e+"ms"}(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))}},6975:(e,t,o)=>{"use strict";o.d(t,{Z:()=>p});var s=o(951);const r=o.n(s)()("dops:analytics");let n,i;window._tkq=window._tkq||[],window.ga=window.ga||function(){(window.ga.q=window.ga.q||[]).push(arguments)},window.ga.l=+new Date;const c={initialize:function(e,t,o){c.setUser(e,t),c.setSuperProps(o),c.identifyUser()},setGoogleAnalyticsEnabled:function(e,t=null){this.googleAnalyticsEnabled=e,this.googleAnalyticsKey=t},setMcAnalyticsEnabled:function(e){this.mcAnalyticsEnabled=e},setUser:function(e,t){i={ID:e,username:t}},setSuperProps:function(e){n=e},assignSuperProps:function(e){n=Object.assign(n||{},e)},mc:{bumpStat:function(e,t){const o=function(e,t){let o="";if("object"==typeof e){for(const t in e)o+="&x_"+encodeURIComponent(t)+"="+encodeURIComponent(e[t]);r("Bumping stats %o",e)}else o="&x_"+encodeURIComponent(e)+"="+encodeURIComponent(t),r('Bumping stat "%s" in group "%s"',t,e);return o}(e,t);c.mcAnalyticsEnabled&&((new Image).src=document.location.protocol+"//pixel.wp.com/g.gif?v=wpcom-no-pv"+o+"&t="+Math.random())},bumpStatWithPageView:function(e,t){const o=function(e,t){let o="";if("object"==typeof e){for(const t in e)o+="&"+encodeURIComponent(t)+"="+encodeURIComponent(e[t]);r("Built stats %o",e)}else o="&"+encodeURIComponent(e)+"="+encodeURIComponent(t),r('Built stat "%s" in group "%s"',t,e);return o}(e,t);c.mcAnalyticsEnabled&&((new Image).src=document.location.protocol+"//pixel.wp.com/g.gif?v=wpcom"+o+"&t="+Math.random())}},pageView:{record:function(e,t){c.tracks.recordPageView(e),c.ga.recordPageView(e,t)}},purchase:{record:function(e,t,o,s,r,n,i){c.ga.recordPurchase(e,t,o,s,r,n,i)}},tracks:{recordEvent:function(e,t){t=t||{},0===e.indexOf("akismet_")||0===e.indexOf("jetpack_")?(n&&(r("- Super Props: %o",n),t=Object.assign(t,n)),r('Record event "%s" called with props %s',e,JSON.stringify(t)),window._tkq.push(["recordEvent",e,t])):r('- Event name must be prefixed by "akismet_" or "jetpack_"')},recordJetpackClick:function(e){const t="object"==typeof e?e:{target:e};c.tracks.recordEvent("jetpack_wpa_click",t)},recordPageView:function(e){c.tracks.recordEvent("akismet_page_view",{path:e})},setOptOut:function(e){r("Pushing setOptOut: %o",e),window._tkq.push(["setOptOut",e])}},ga:{initialized:!1,initialize:function(){let e={};c.ga.initialized||(i&&(e={userId:"u-"+i.ID}),window.ga("create",this.googleAnalyticsKey,"auto",e),c.ga.initialized=!0)},recordPageView:function(e,t){c.ga.initialize(),r("Recording Page View ~ [URL: "+e+"] [Title: "+t+"]"),this.googleAnalyticsEnabled&&(window.ga("set","page",e),window.ga("send",{hitType:"pageview",page:e,title:t}))},recordEvent:function(e,t,o,s){c.ga.initialize();let n="Recording Event ~ [Category: "+e+"] [Action: "+t+"]";void 0!==o&&(n+=" [Option Label: "+o+"]"),void 0!==s&&(n+=" [Option Value: "+s+"]"),r(n),this.googleAnalyticsEnabled&&window.ga("send","event",e,t,o,s)},recordPurchase:function(e,t,o,s,r,n,i){window.ga("require","ecommerce"),window.ga("ecommerce:addTransaction",{id:e,revenue:s,currency:i}),window.ga("ecommerce:addItem",{id:e,name:t,sku:o,price:r,quantity:n}),window.ga("ecommerce:send")}},identifyUser:function(){i&&window._tkq.push(["identifyUser",i.ID,i.username])},setProperties:function(e){window._tkq.push(["setProperties",e])},clearedIdentity:function(){window._tkq.push(["clearIdentity"])}},p=c},64743:(e,t,o)=>{"use strict";o.d(t,{ZP:()=>l});var s=o(61132),r=o(96483);function n(e){class t extends Error{constructor(...t){super(...t),this.name=e}}return t}const i=n("JsonParseError"),c=n("JsonParseAfterRedirectError"),p=n("Api404Error"),a=n("Api404AfterRedirectError"),d=n("FetchNetworkError");const l=new function(e,t){let o=e,n=e,i={"X-WP-Nonce":t},c={credentials:"same-origin",headers:i},p={method:"post",credentials:"same-origin",headers:Object.assign({},i,{"Content-type":"application/json"})},a=function(e){const t=e.split("?"),o=t.length>1?t[1]:"",s=o.length?o.split("&"):[];return s.push("_cacheBuster="+(new Date).getTime()),t[0]+"?"+s.join("&")};const d={setApiRoot(e){o=e},setWpcomOriginApiUrl(e){n=e},setApiNonce(e){i={"X-WP-Nonce":e},c={credentials:"same-origin",headers:i},p={method:"post",credentials:"same-origin",headers:Object.assign({},i,{"Content-type":"application/json"})}},setCacheBusterCallback:e=>{a=e},registerSite:(e,t,r)=>{const n={registration_nonce:e,no_iframe:!0};return(0,s.jetpackConfigHas)("consumer_slug")&&(n.plugin_slug=(0,s.jetpackConfigGet)("consumer_slug")),null!==t&&(n.redirect_uri=t),r&&(n.from=r),k(`${o}jetpack/v4/connection/register`,p,{body:JSON.stringify(n)}).then(u).then(h)},fetchAuthorizationUrl:e=>l((0,r.addQueryArgs)(`${o}jetpack/v4/connection/authorize_url`,{no_iframe:"1",redirect_uri:e}),c).then(u).then(h),fetchSiteConnectionData:()=>l(`${o}jetpack/v4/connection/data`,c).then(h),fetchSiteConnectionStatus:()=>l(`${o}jetpack/v4/connection`,c).then(h),fetchSiteConnectionTest:()=>l(`${o}jetpack/v4/connection/test`,c).then(u).then(h),fetchUserConnectionData:()=>l(`${o}jetpack/v4/connection/data`,c).then(h),fetchUserTrackingSettings:()=>l(`${o}jetpack/v4/tracking/settings`,c).then(u).then(h),updateUserTrackingSettings:e=>k(`${o}jetpack/v4/tracking/settings`,p,{body:JSON.stringify(e)}).then(u).then(h),disconnectSite:()=>k(`${o}jetpack/v4/connection`,p,{body:JSON.stringify({isActive:!1})}).then(u).then(h),fetchConnectUrl:()=>l(`${o}jetpack/v4/connection/url`,c).then(u).then(h),unlinkUser:()=>k(`${o}jetpack/v4/connection/user`,p,{body:JSON.stringify({linked:!1})}).then(u).then(h),reconnect:()=>k(`${o}jetpack/v4/connection/reconnect`,p).then(u).then(h),fetchConnectedPlugins:()=>l(`${o}jetpack/v4/connection/plugins`,c).then(u).then(h),setHasSeenWCConnectionModal:()=>k(`${o}jetpack/v4/seen-wc-connection-modal`,p).then(u).then(h),fetchModules:()=>l(`${o}jetpack/v4/module/all`,c).then(u).then(h),fetchModule:e=>l(`${o}jetpack/v4/module/${e}`,c).then(u).then(h),activateModule:e=>k(`${o}jetpack/v4/module/${e}/active`,p,{body:JSON.stringify({active:!0})}).then(u).then(h),deactivateModule:e=>k(`${o}jetpack/v4/module/${e}/active`,p,{body:JSON.stringify({active:!1})}),updateModuleOptions:(e,t)=>k(`${o}jetpack/v4/module/${e}`,p,{body:JSON.stringify(t)}).then(u).then(h),updateSettings:e=>k(`${o}jetpack/v4/settings`,p,{body:JSON.stringify(e)}).then(u).then(h),getProtectCount:()=>l(`${o}jetpack/v4/module/protect/data`,c).then(u).then(h),resetOptions:e=>k(`${o}jetpack/v4/options/${e}`,p,{body:JSON.stringify({reset:!0})}).then(u).then(h),activateVaultPress:()=>k(`${o}jetpack/v4/plugins`,p,{body:JSON.stringify({slug:"vaultpress",status:"active"})}).then(u).then(h),getVaultPressData:()=>l(`${o}jetpack/v4/module/vaultpress/data`,c).then(u).then(h),installPlugin:(e,t)=>{const s={slug:e,status:"active"};return t&&(s.source=t),k(`${o}jetpack/v4/plugins`,p,{body:JSON.stringify(s)}).then(u).then(h)},activateAkismet:()=>k(`${o}jetpack/v4/plugins`,p,{body:JSON.stringify({slug:"akismet",status:"active"})}).then(u).then(h),getAkismetData:()=>l(`${o}jetpack/v4/module/akismet/data`,c).then(u).then(h),checkAkismetKey:()=>l(`${o}jetpack/v4/module/akismet/key/check`,c).then(u).then(h),checkAkismetKeyTyped:e=>k(`${o}jetpack/v4/module/akismet/key/check`,p,{body:JSON.stringify({api_key:e})}).then(u).then(h),fetchStatsData:e=>l(function(e){let t=`${o}jetpack/v4/module/stats/data`;-1!==t.indexOf("?")?t+=`&range=${encodeURIComponent(e)}`:t+=`?range=${encodeURIComponent(e)}`;return t}(e),c).then(u).then(h).then(m),getPluginUpdates:()=>l(`${o}jetpack/v4/updates/plugins`,c).then(u).then(h),getPlans:()=>l(`${o}jetpack/v4/plans`,c).then(u).then(h),fetchSettings:()=>l(`${o}jetpack/v4/settings`,c).then(u).then(h),updateSetting:e=>k(`${o}jetpack/v4/settings`,p,{body:JSON.stringify(e)}).then(u).then(h),fetchSiteData:()=>l(`${o}jetpack/v4/site`,c).then(u).then(h).then((e=>JSON.parse(e.data))),fetchSiteFeatures:()=>l(`${o}jetpack/v4/site/features`,c).then(u).then(h).then((e=>JSON.parse(e.data))),fetchSiteProducts:()=>l(`${o}jetpack/v4/site/products`,c).then(u).then(h),fetchSitePurchases:()=>l(`${o}jetpack/v4/site/purchases`,c).then(u).then(h).then((e=>JSON.parse(e.data))),fetchSiteBenefits:()=>l(`${o}jetpack/v4/site/benefits`,c).then(u).then(h).then((e=>JSON.parse(e.data))),fetchSiteDiscount:()=>l(`${o}jetpack/v4/site/discount`,c).then(u).then(h).then((e=>e.data)),fetchSetupQuestionnaire:()=>l(`${o}jetpack/v4/setup/questionnaire`,c).then(u).then(h),fetchRecommendationsData:()=>l(`${o}jetpack/v4/recommendations/data`,c).then(u).then(h),fetchRecommendationsProductSuggestions:()=>l(`${o}jetpack/v4/recommendations/product-suggestions`,c).then(u).then(h),fetchRecommendationsUpsell:()=>l(`${o}jetpack/v4/recommendations/upsell`,c).then(u).then(h),fetchRecommendationsConditional:()=>l(`${o}jetpack/v4/recommendations/conditional`,c).then(u).then(h),saveRecommendationsData:e=>k(`${o}jetpack/v4/recommendations/data`,p,{body:JSON.stringify({data:e})}).then(u),fetchProducts:()=>l(`${o}jetpack/v4/products`,c).then(u).then(h),fetchRewindStatus:()=>l(`${o}jetpack/v4/rewind`,c).then(u).then(h).then((e=>JSON.parse(e.data))),fetchScanStatus:()=>l(`${o}jetpack/v4/scan`,c).then(u).then(h).then((e=>JSON.parse(e.data))),dismissJetpackNotice:e=>k(`${o}jetpack/v4/notice/${e}`,p,{body:JSON.stringify({dismissed:!0})}).then(u).then(h),fetchPluginsData:()=>l(`${o}jetpack/v4/plugins`,c).then(u).then(h),fetchIntroOffers:()=>l(`${o}jetpack/v4/intro-offers`,c).then(u).then(h),fetchVerifySiteGoogleStatus:e=>l(null!==e?`${o}jetpack/v4/verify-site/google/${e}`:`${o}jetpack/v4/verify-site/google`,c).then(u).then(h),verifySiteGoogle:e=>k(`${o}jetpack/v4/verify-site/google`,p,{body:JSON.stringify({keyring_id:e})}).then(u).then(h),submitSurvey:e=>k(`${o}jetpack/v4/marketing/survey`,p,{body:JSON.stringify(e)}).then(u).then(h),saveSetupQuestionnaire:e=>k(`${o}jetpack/v4/setup/questionnaire`,p,{body:JSON.stringify(e)}).then(u).then(h),updateLicensingError:e=>k(`${o}jetpack/v4/licensing/error`,p,{body:JSON.stringify(e)}).then(u).then(h),updateLicenseKey:e=>k(`${o}jetpack/v4/licensing/set-license`,p,{body:JSON.stringify({license:e})}).then(u).then(h),getUserLicensesCounts:()=>l(`${o}jetpack/v4/licensing/user/counts`,c).then(u).then(h),getUserLicenses:()=>l(`${o}jetpack/v4/licensing/user/licenses`,c).then(u).then(h),updateLicensingActivationNoticeDismiss:e=>k(`${o}jetpack/v4/licensing/user/activation-notice-dismiss`,p,{body:JSON.stringify({last_detached_count:e})}).then(u).then(h),updateRecommendationsStep:e=>k(`${o}jetpack/v4/recommendations/step`,p,{body:JSON.stringify({step:e})}).then(u),confirmIDCSafeMode:()=>k(`${o}jetpack/v4/identity-crisis/confirm-safe-mode`,p).then(u),startIDCFresh:e=>k(`${o}jetpack/v4/identity-crisis/start-fresh`,p,{body:JSON.stringify({redirect_uri:e})}).then(u).then(h),migrateIDC:()=>k(`${o}jetpack/v4/identity-crisis/migrate`,p).then(u),attachLicenses:e=>k(`${o}jetpack/v4/licensing/attach-licenses`,p,{body:JSON.stringify({licenses:e})}).then(u).then(h),fetchSearchPlanInfo:()=>l(`${n}jetpack/v4/search/plan`,c).then(u).then(h),fetchSearchSettings:()=>l(`${n}jetpack/v4/search/settings`,c).then(u).then(h),updateSearchSettings:e=>k(`${n}jetpack/v4/search/settings`,p,{body:JSON.stringify(e)}).then(u).then(h),fetchSearchStats:()=>l(`${n}jetpack/v4/search/stats`,c).then(u).then(h),fetchWafSettings:()=>l(`${o}jetpack/v4/waf`,c).then(u).then(h),updateWafSettings:e=>k(`${o}jetpack/v4/waf`,p,{body:JSON.stringify(e)}).then(u).then(h),fetchWordAdsSettings:()=>l(`${o}jetpack/v4/wordads/settings`,c).then(u).then(h),updateWordAdsSettings:e=>k(`${o}jetpack/v4/wordads/settings`,p,{body:JSON.stringify(e)}),fetchSearchPricing:()=>l(`${n}jetpack/v4/search/pricing`,c).then(u).then(h),fetchMigrationStatus:()=>l(`${o}jetpack/v4/migration/status`,c).then(u).then(h),fetchBackupUndoEvent:()=>l(`${o}jetpack/v4/site/backup/undo-event`,c).then(u).then(h),fetchBackupPreflightStatus:()=>l(`${o}jetpack/v4/site/backup/preflight`,c).then(u).then(h)};function l(e,t){return fetch(a(e),t)}function k(e,t,o){return fetch(e,Object.assign({},t,o)).catch(g)}function m(e){return e.general&&void 0===e.general.response||e.week&&void 0===e.week.response||e.month&&void 0===e.month.response?e:{}}Object.assign(this,d)};function u(e){return e.status>=200&&e.status<300?e:404===e.status?new Promise((()=>{throw e.redirected?new a(e.redirected):new p})):e.json().catch((e=>k(e))).then((t=>{const o=new Error(`${t.message} (Status ${e.status})`);throw o.response=t,o.name="ApiError",o}))}function h(e){return e.json().catch((t=>k(t,e.redirected,e.url)))}function k(e,t,o){throw t?new c(o):new i}function g(){throw new d}},61132:(e,t,o)=>{let s={};try{s=o(76354)}catch{console.error("jetpackConfig is missing in your webpack config file. See @automattic/jetpack-config"),s={missingConfig:!0}}const r=e=>s.hasOwnProperty(e);e.exports={jetpackConfigHas:r,jetpackConfigGet:e=>{if(!r(e))throw'This app requires the "'+e+'" Jetpack Config to be defined in your webpack configuration file. See details in @automattic/jetpack-config package docs.';return s[e]}}},31294:(e,t,o)=>{"use strict";o.d(t,{Z:()=>a});var s=o(64743),r=o(51732),n=o(9818),i=o(99196),c=o(80428);const p=window?.JP_CONNECTION_INITIAL_STATE||(0,r.getScriptData)()?.connection||{},a=({registrationNonce:e=p.registrationNonce,apiRoot:t=p.apiRoot,apiNonce:o=p.apiNonce,redirectUri:r,autoTrigger:a,from:d,skipUserConnection:l}={})=>{const{registerSite:u,connectUser:h,refreshConnectedPlugins:k}=(0,n.useDispatch)(c.t),g=(0,n.useSelect)((e=>e(c.t).getRegistrationError())),{siteIsRegistering:m,userIsConnecting:w,userConnectionData:f,connectedPlugins:b,connectionErrors:y,isRegistered:C,isUserConnected:v,hasConnectedOwner:I,isOfflineMode:S}=(0,n.useSelect)((e=>({siteIsRegistering:e(c.t).getSiteIsRegistering(),userIsConnecting:e(c.t).getUserIsConnecting(),userConnectionData:e(c.t).getUserConnectionData(),connectedPlugins:e(c.t).getConnectedPlugins(),connectionErrors:e(c.t).getConnectionErrors(),isOfflineMode:e(c.t).getIsOfflineMode(),...e(c.t).getConnectionStatus()}))),j=()=>l?r?(window.location=r,Promise.resolve(r)):Promise.resolve():h({from:d,redirectUri:r}),_=t=>(t&&t.preventDefault(),C?j():u({registrationNonce:e,redirectUri:r,from:d}).then((()=>j())));return(0,i.useEffect)((()=>{s.ZP.setApiRoot(t),s.ZP.setApiNonce(o)}),[t,o]),(0,i.useEffect)((()=>{!a||m||w||_()}),[]),{handleRegisterSite:_,handleConnectUser:j,refreshConnectedPlugins:k,isRegistered:C,isUserConnected:v,siteIsRegistering:m,userIsConnecting:w,registrationError:g,userConnectionData:f,hasConnectedOwner:I,connectedPlugins:b,connectionErrors:y,isOfflineMode:S}}},27523:(e,t,o)=>{"use strict";o.d(t,{LI:()=>n,N4:()=>c,Qo:()=>l,T1:()=>a,TS:()=>d,ZP:()=>v,b5:()=>h,i6:()=>r,qJ:()=>k,qV:()=>p,r7:()=>i,wQ:()=>u});var s=o(64743);const r="SET_CONNECTION_STATUS",n="SET_CONNECTION_STATUS_IS_FETCHING",i="SET_SITE_IS_REGISTERING",c="SET_USER_IS_CONNECTING",p="SET_REGISTRATION_ERROR",a="CLEAR_REGISTRATION_ERROR",d="SET_AUTHORIZATION_URL",l="DISCONNECT_USER_SUCCESS",u="SET_CONNECTED_PLUGINS",h="SET_CONNECTION_ERRORS",k="SET_IS_OFFLINE_MODE",g=e=>({type:r,connectionStatus:e}),m=e=>({type:i,isRegistering:e}),w=e=>({type:c,isConnecting:e}),f=e=>({type:p,registrationError:e}),b=()=>({type:a}),y=e=>({type:d,authorizationUrl:e}),C=e=>({type:u,connectedPlugins:e});const v={setConnectionStatus:g,setConnectionStatusIsFetching:e=>({type:n,isFetching:e}),fetchConnectionStatus:()=>({type:"FETCH_CONNECTION_STATUS"}),fetchAuthorizationUrl:e=>({type:"FETCH_AUTHORIZATION_URL",redirectUri:e}),setSiteIsRegistering:m,setUserIsConnecting:w,setRegistrationError:f,clearRegistrationError:b,setAuthorizationUrl:y,registerSite:function*({registrationNonce:e,redirectUri:t,from:o=""}){yield b(),yield m(!0);try{const s=yield{type:"REGISTER_SITE",registrationNonce:e,redirectUri:t,from:o};return yield g({isRegistered:!0}),yield y(s.authorizeUrl),yield m(!1),Promise.resolve(s)}catch(e){return yield f(e),yield m(!1),Promise.reject(e)}},connectUser:function*({from:e,redirectFunc:t,redirectUri:o}={}){yield w(!0),yield{type:"CONNECT_USER",from:e,redirectFunc:t,redirectUri:o}},disconnectUserSuccess:()=>({type:l}),setConnectedPlugins:C,refreshConnectedPlugins:()=>async({dispatch:e})=>await new Promise((t=>s.ZP.fetchConnectedPlugins().then((o=>{e(C(o)),t(o)})))),setConnectionErrors:e=>({type:h,connectionErrors:e}),setIsOfflineMode:e=>({type:k,isOfflineMode:e})}},31432:(e,t,o)=>{"use strict";o.d(t,{Z:()=>i});var s=o(64743),r=o(9818),n=o(27057);const i={FETCH_AUTHORIZATION_URL:({redirectUri:e})=>s.ZP.fetchAuthorizationUrl(e),REGISTER_SITE:({registrationNonce:e,redirectUri:t,from:o})=>s.ZP.registerSite(e,t,o),CONNECT_USER:(0,r.createRegistryControl)((({resolveSelect:e})=>({from:t,redirectFunc:o,redirectUri:s}={})=>new Promise(((r,i)=>{e(n.Z).getAuthorizationUrl(s).then((e=>{const s=o||(e=>window.location.assign(e)),n=new URL(e);t&&n.searchParams.set("from",encodeURIComponent(t));const i=n.toString();s(i),r(i)})).catch((e=>{i(e)}))}))))}},41479:(e,t,o)=>{"use strict";o.d(t,{Z:()=>n});var s=o(9818),r=o(27523);const n=(0,s.combineReducers)({connectionStatus:(e={},t)=>{switch(t.type){case r.i6:return{...e,...t.connectionStatus};case r.Qo:return{...e,isUserConnected:!1}}return e},connectionStatusIsFetching:(e=!1,t)=>t.type===r.LI?t.isFetching:e,siteIsRegistering:(e=!1,t)=>t.type===r.r7?t.isRegistering:e,userIsConnecting:(e=!1,t)=>t.type===r.N4?t.isConnecting:e,registrationError:(e,t)=>{switch(t.type){case r.T1:return!1;case r.qV:return t.registrationError;default:return e}},authorizationUrl:(e,t)=>t.type===r.TS?t.authorizationUrl:e,userConnectionData:(e,t)=>(t.type,e),connectedPlugins:(e={},t)=>t.type===r.wQ?t.connectedPlugins:e,connectionErrors:(e={},t)=>t.type===r.b5?t.connectionErrors:e,isOfflineMode:(e=!1,t)=>t.type===r.qJ?t.isConnecting:e})},77728:(e,t,o)=>{"use strict";o.d(t,{Z:()=>i});var s=o(9818),r=o(27523),n=o(27057);const i={...{getAuthorizationUrl:{isFulfilled:(e,...t)=>{const o=Boolean(e.authorizationUrl),r=(0,s.select)(n.Z).hasFinishedResolution("getAuthorizationUrl",t);return o&&!r&&(0,s.dispatch)(n.Z).finishResolution("getAuthorizationUrl",t),o},*fulfill(e){const t=yield r.ZP.fetchAuthorizationUrl(e);yield r.ZP.setAuthorizationUrl(t.authorizeUrl)}}}}},82725:(e,t,o)=>{"use strict";o.d(t,{Z:()=>s});const s={...{getConnectionStatus:e=>e.connectionStatus||{},getConnectionStatusIsFetching:()=>!1,getSiteIsRegistering:e=>e.siteIsRegistering||!1,getUserIsConnecting:e=>e.userIsConnecting||!1,getRegistrationError:e=>e.registrationError||!1,getAuthorizationUrl:e=>e.authorizationUrl||!1,getUserConnectionData:e=>e.userConnectionData||!1,getConnectedPlugins:e=>e.connectedPlugins||[],getConnectionErrors:e=>e.connectionErrors||[],getIsOfflineMode:e=>e.isOfflineMode||!1,getWpcomUser:e=>e?.userConnectionData?.currentUser?.wpcomUser,getBlogId:e=>e?.userConnectionData?.currentUser?.blogId}}},13535:(e,t,o)=>{"use strict";o.d(t,{Z:()=>n});var s=o(9818);class r{static store=null;static mayBeInit(e,t){null===r.store&&(r.store=(0,s.createReduxStore)(e,t),(0,s.register)(r.store))}}const n=r},27057:(e,t,o)=>{"use strict";o.d(t,{Z:()=>s});const s="jetpack-connection"},80428:(e,t,o)=>{"use strict";o.d(t,{t:()=>d.Z});var s=o(51732),r=o(27523),n=o(31432),i=o(41479),c=o(77728),p=o(82725),a=o(13535),d=o(27057);const l=window.JP_CONNECTION_INITIAL_STATE||(0,s.getScriptData)()?.connection;l||console.error("Jetpack Connection package: Initial state is missing. Check documentation to see how to use the Connection composer package to set up the initial state."),a.Z.mayBeInit(d.Z,{__experimentalUseThunks:!0,reducer:i.Z,actions:r.ZP,selectors:p.Z,resolvers:c.Z,controls:n.Z,initialState:l||{}})},13419:(e,t,o)=>{"use strict";o.d(t,{z$:()=>s.Z});o(76714),o(80354),o(75404);var s=o(61053);o(11380),o(6342),o(96959),o(39058)},6342:(e,t,o)=>{"use strict";o(99196)},96959:(e,t,o)=>{"use strict";o(69307)},61053:(e,t,o)=>{"use strict";o.d(t,{Z:()=>p});var s=o(6975),r=o(31294),n=o(69307);const{tracks:i}=s.Z,{recordEvent:c}=i,p=({pageViewEventName:e=null,pageViewNamespace:t="jetpack",pageViewSuffix:o="page_view",pageViewEventProperties:p={}}={})=>{const[a,d]=(0,n.useState)(!1),{isUserConnected:l,isRegistered:u,userConnectionData:h={}}=(0,r.Z)(),{wpcomUser:{login:k,ID:g}={},blogId:m}=h.currentUser||{},w=(0,n.useCallback)((async(e,t={})=>{l&&g&&k&&c(e,t)}),[l,g,k]);return(0,n.useEffect)((()=>{l&&g&&k&&m&&s.Z.initialize(g,k,{blog_id:m})}),[m,g,k,l]),(0,n.useEffect)((()=>{const s=e?`${t}_${e}_${o}`:null;u&&s&&(a||(w(s,p),d(!0)))}),[a,t,e,o,u,p,w]),{recordEvent:w,tracks:i}}},11380:(e,t,o)=>{"use strict";o(9818),o(69307),o(39058)},44166:(e,t,o)=>{"use strict";o.d(t,{ZP:()=>u,rW:()=>l});var s=o(9818),r=o(99505),n=o(82162),i=o(39058);const c="SET_JETPACK_MODULES",p="SET_MODULE_UPDATING";function a(e){return l({isLoading:e})}function d(e,t){return{type:p,name:e,isUpdating:t}}function l(e){return{type:c,options:e}}const u={updateJetpackModuleStatus:function*(e){try{yield d(e.name,!0),yield(0,n.zL)(e);const t=yield(0,n.Bs)();return yield l({data:t}),!0}catch(e){const t=(0,s.select)(i.p).getJetpackModules();return yield l(t),!1}finally{yield d(e.name,!1)}},setJetpackModules:l,fetchModules:function*(){if((0,r.Wp)())return!0;try{yield a(!0);const e=yield(0,n.Bs)();return yield l({data:e}),!0}catch(e){const t=(0,s.select)(i.p).getJetpackModules();return yield l(t),!1}finally{yield a(!1)}}}},82162:(e,t,o)=>{"use strict";o.d(t,{Bs:()=>c,ZP:()=>a,zL:()=>p});var s=o(86989),r=o.n(s);const n="FETCH_JETPACK_MODULES",i="UPDATE_JETPACK_MODULE_STATUS",c=()=>({type:n}),p=e=>({type:i,settings:e}),a={[n]:function(){return r()({path:"/jetpack/v4/module/all",method:"GET"})},[i]:function({settings:e}){return r()({path:`/jetpack/v4/module/${e.name}/active`,method:"POST",data:{active:e.active}})}}},39058:(e,t,o)=>{"use strict";o.d(t,{p:()=>a});var s=o(9818),r=o(44166),n=o(82162),i=o(42469),c=o(55133),p=o(43524);const a="jetpack-modules",d=(0,s.createReduxStore)(a,{reducer:i.Z,actions:r.ZP,controls:n.ZP,resolvers:c.Z,selectors:p.Z});(0,s.register)(d);const l=window?.Initial_State?.getModules||window?.Jetpack_Editor_Initial_State?.modules||null;null!==l&&(0,s.dispatch)(a).setJetpackModules({data:{...l}})},42469:(e,t,o)=>{"use strict";o.d(t,{Z:()=>r});const s={isLoading:!1,isUpdating:{},data:{}},r=(e=s,t)=>{switch(t.type){case"SET_JETPACK_MODULES":return{...e,...t.options};case"SET_MODULE_UPDATING":return{...e,isUpdating:{...e.isUpdating,[t.name]:t.isUpdating}}}return e}},55133:(e,t,o)=>{"use strict";o.d(t,{Z:()=>n});var s=o(44166),r=o(82162);const n={getJetpackModules:function*(){try{const e=yield(0,r.Bs)();if(e)return(0,s.rW)({data:e})}catch(e){console.error(e)}}}},43524:(e,t,o)=>{"use strict";o.d(t,{Z:()=>r});var s=o(99505);const r={getJetpackModules:e=>e.data,isModuleActive:(e,t)=>(0,s.Wp)()||(e?.data?.[t]?.activated??!1),areModulesLoading:e=>e.isLoading??!1,isModuleUpdating:(e,t)=>e?.isUpdating?.[t]??!1}},75404:(e,t,o)=>{"use strict";var s=o(65736);o(96483),o(92819);const __=s.__;__("Upgrade your plan to use video covers","jetpack-mu-wpcom"),__("Upgrade your plan to upload audio","jetpack-mu-wpcom")},76714:(e,t,o)=>{"use strict";o(98817)},99505:(e,t,o)=>{"use strict";function s(){return"object"==typeof window&&"string"==typeof window._currentSiteType?window._currentSiteType:null}function r(){return"simple"===s()}o.d(t,{Wp:()=>r})},80354:(e,t,o)=>{"use strict";o(82674),o(94333)},39765:(e,t,o)=>{"use strict";o.d(t,{ZP:()=>n,gM:()=>r,yd:()=>s});const s={"core/group":{group:{link:"https://wordpress.com/support/wordpress-editor/blocks/group-block/",postId:161882},"group-row":{link:"https://wordpress.com/support/wordpress-editor/blocks/row-block/",postId:190036},"group-stack":{link:"https://wordpress.com/support/wordpress-editor/blocks/row-block/",postId:190036}},"core/embed":{soundcloud:{link:"https://wordpress.com/support/soundcloud-audio-player/",postId:4213},twitter:{link:"https://wordpress.com/support/wordpress-editor/blocks/twitter-block/",postId:150413},vimeo:{link:"https://wordpress.com/support/videos/vimeo/",postId:1235},youtube:{link:"https://wordpress.com/support/wordpress-editor/blocks/youtube-block/",postId:150414}}},r={"core/nextpage":{link:"https://wordpress.com/support/wordpress-editor/blocks/page-break-block/",postId:149374}},n={"core/template-part":{link:"https://wordpress.com/support/full-site-editing/theme-blocks/template-part-block/",postId:192398},"core/site-title":{link:"https://wordpress.com/support/full-site-editing/theme-blocks/site-title-block/",postId:184569},"core/site-tagline":{link:"https://wordpress.com/support/full-site-editing/theme-blocks/site-tagline-block/",postId:184553},"core/site-logo":{link:"https://wordpress.com/support/full-site-editing/theme-blocks/site-logo-block/",postId:184537},"core/page-list":{link:"https://wordpress.com/support/full-site-editing/theme-blocks/page-list-block/",postId:180696},"core/loginout":{link:"https://wordpress.com/support/full-site-editing/theme-blocks/login-out-block/",postId:184610},"core/video":{link:"https://wordpress.com/support/wordpress-editor/blocks/video-block/",postId:149045},"core/verse":{link:"https://wordpress.com/support/wordpress-editor/blocks/verse-block/",postId:149992},"core/spacer":{link:"https://wordpress.com/support/wordpress-editor/blocks/spacer-block/",postId:148996},"core/shortcode":{link:"https://wordpress.com/support/wordpress-editor/blocks/shortcode-block/",postId:149209},"core/separator":{link:"https://wordpress.com/support/wordpress-editor/blocks/separator-block/",postId:149012},"core/search":{link:"https://wordpress.com/support/wordpress-editor/blocks/search-block/",postId:187104},"core/rss":{link:"https://wordpress.com/support/wordpress-editor/blocks/rss-block/",postId:174794},"core/navigation":{link:"https://wordpress.com/support/site-editing/theme-blocks/navigation-block/",postId:162159},"core/tag-cloud":{link:"https://wordpress.com/support/wordpress-editor/blocks/tag-cloud-block/",postId:188957},"core/quote":{link:"https://wordpress.com/support/wordpress-editor/blocks/quote-block/",postId:148575},"core/pullquote":{link:"https://wordpress.com/support/wordpress-editor/blocks/pullquote-block/",postId:149344},"core/preformatted":{link:"https://wordpress.com/support/wordpress-editor/blocks/preformatted-block/",postId:149339},"core/more":{link:"https://wordpress.com/support/wordpress-editor/blocks/more-block/",postId:148614},"core/list":{link:"https://wordpress.com/support/wordpress-editor/blocks/list-block/",postId:148563},"core/latest-posts":{link:"https://wordpress.com/support/wordpress-editor/blocks/latest-posts-block/",postId:149818},"core/latest-comments":{link:"https://wordpress.com/support/wordpress-editor/blocks/latest-comments-block/",postId:149811},"core/heading":{link:"https://wordpress.com/support/wordpress-editor/blocks/heading-block/",postId:148403},"core/file":{link:"https://wordpress.com/support/wordpress-editor/blocks/file-block/",postId:148586},"core/embed":{link:"https://wordpress.com/support/wordpress-editor/blocks/embed-block/",postId:150644},"core/html":{link:"https://wordpress.com/support/wordpress-editor/blocks/custom-html-block/",postId:149059},"core/code":{link:"https://wordpress.com/support/wordpress-editor/blocks/code-block/",postId:149042},"core/freeform":{link:"https://wordpress.com/support/wordpress-editor/blocks/classic-block/",postId:149026},"core/categories":{link:"https://wordpress.com/support/wordpress-editor/blocks/categories-block/",postId:149793},"core/calendar":{link:"https://wordpress.com/support/wordpress-editor/blocks/calendar-block/",postId:171935},"core/audio":{link:"https://wordpress.com/support/wordpress-editor/blocks/audio-block/",postId:148670},"core/archives":{link:"https://wordpress.com/support/wordpress-editor/blocks/archives-block/",postId:149225},"core/query":{link:"https://wordpress.com/support/full-site-editing/theme-blocks/query-loop-block/",postId:184188},"core/media-text":{link:"https://wordpress.com/support/wordpress-editor/blocks/media-text-block/",postId:151100},"core/table":{link:"https://wordpress.com/support/wordpress-editor/blocks/table-block/",postId:149666},"core/social-links":{link:"https://wordpress.com/support/wordpress-editor/blocks/social-links-block/",postId:159466},"core/columns":{link:"https://wordpress.com/support/wordpress-editor/blocks/columns-block/",postId:149073},"core/image":{link:"https://wordpress.com/support/wordpress-editor/blocks/image-block/",postId:148378},"core/cover":{link:"https://wordpress.com/support/wordpress-editor/blocks/cover-block/",postId:148675},"core/buttons":{link:"https://wordpress.com/support/wordpress-editor/blocks/buttons-block/",postId:162116},"core/gallery":{link:"https://wordpress.com/support/wordpress-editor/blocks/gallery-block/",postId:148667},"core/post-content":{link:"https://wordpress.com/support/full-site-editing/theme-blocks/post-content-block/",postId:216265},"core/table-of-contents":{link:"https://wordpress.com/support/wordpress-editor/table-of-contents-block/",postId:201571},"core/comments":{link:"https://wordpress.com/support/full-site-editing/theme-blocks/comments-block/",postId:218903},"core/post-time-to-read":{link:"https://wordpress.com/support/site-editing/theme-blocks/time-to-read-block",postId:243241},"syntaxhighlighter/code":{link:"https://wordpress.com/support/wordpress-editor/blocks/syntax-highlighter-code-block/",postId:4743},"crowdsignal-forms/vote":{link:"https://wordpress.com/support/wordpress-editor/blocks/vote-block/",postId:174824},"crowdsignal-forms/poll":{link:"https://wordpress.com/support/wordpress-editor/blocks/poll-block/",postId:170183},"crowdsignal-forms/nps":{link:"https://wordpress.com/support/wordpress-editor/blocks/measure-nps-block/",postId:182393},"crowdsignal-forms/feedback":{link:"https://wordpress.com/support/wordpress-editor/blocks/feedback-button-block/",postId:183578},"a8c/posts-carousel":{link:"https://wordpress.com/support/wordpress-editor/blocks/posts-carousel-block/",postId:166417},"premium-content/container":{link:"https://wordpress.com/support/wordpress-editor/blocks/premium-content-block/",postId:243475},"a8c/blog-posts":{link:"https://wordpress.com/support/wordpress-editor/blocks/blog-posts-block/",postId:158419},"jetpack/send-a-message":{link:"https://wordpress.com/support/wordpress-editor/blocks/whatsapp-button-block/",postId:169728},"jetpack/blogroll":{link:"https://wordpress.com/support/wordpress-editor/blocks/blogroll-block/",postId:291406},"jetpack/timeline":{link:"https://wordpress.com/support/wordpress-editor/blocks/timeline-block/",postId:158453},"jetpack/story":{link:"https://wordpress.com/support/wordpress-editor/blocks/story-block/",postId:176320},"jetpack/revue":{link:"https://wordpress.com/support/wordpress-editor/blocks/revue-block/",postId:67810},"jetpack/rating-star":{link:"https://wordpress.com/support/wordpress-editor/blocks/ratings-block/",postId:158224},"jetpack/related-posts":{link:"https://wordpress.com/support/wordpress-editor/blocks/related-posts-block/",postId:1545},"jetpack/repeat-visitor":{link:"https://wordpress.com/support/wordpress-editor/blocks/repeat-visitor-block/",postId:154471},"jetpack/podcast-player":{link:"https://wordpress.com/support/wordpress-editor/blocks/podcast-player-block/",postId:163160},"jetpack/opentable":{link:"https://wordpress.com/support/wordpress-editor/blocks/opentable-block/",postId:162208},"jetpack/map":{link:"https://wordpress.com/support/wordpress-editor/blocks/map-block/",postId:149684},"jetpack/image-compare":{link:"https://wordpress.com/support/wordpress-editor/blocks/image-compare-block/",postId:168169},"jetpack/gif":{link:"https://wordpress.com/support/wordpress-editor/blocks/gif-block/",postId:174810},"jetpack/event-countdown":{link:"https://wordpress.com/support/wordpress-editor/blocks/event-countdown-block/",postId:159246},"jetpack/donations":{link:"https://wordpress.com/support/wordpress-editor/blocks/donations/",postId:171110},"jetpack/calendly":{link:"https://wordpress.com/support/wordpress-editor/blocks/calendly-block/",postId:162199},"jetpack/business-hours":{link:"https://wordpress.com/support/wordpress-editor/blocks/business-hours-block/",postId:173136},"jetpack/wordads":{link:"https://wordpress.com/support/wordpress-editor/blocks/ad-block/",postId:190916},"jetpack/payments-intro":{link:"https://wordpress.com/support/wordpress-editor/blocks/payments/",postId:169123},"jetpack/contact-info":{link:"https://wordpress.com/support/wordpress-editor/blocks/contact-info-block/",postId:186162},"jetpack/tiled-gallery":{link:"https://wordpress.com/support/wordpress-editor/blocks/tiled-gallery-block/",postId:150746},"jetpack/slideshow":{link:"https://wordpress.com/support/wordpress-editor/blocks/slideshow-block/",postId:157055},"jetpack/subscriptions":{link:"https://wordpress.com/support/wordpress-editor/blocks/subscription-form-block/",postId:170164},"jetpack/contact-form":{link:"https://wordpress.com/support/wordpress-editor/blocks/form-block/",postId:168307},"jetpack/layout-grid":{link:"https://wordpress.com/support/wordpress-editor/blocks/layout-grid-block/",postId:160172},"jetpack/mailchimp":{link:"https://wordpress.com/support/wordpress-editor/blocks/mailchimp-block/",postId:152657},"jetpack/paywall":{link:"https://wordpress.com/support/paid-newsletters/#use-the-paywall-block",postId:168381},"jetpack/sharing-buttons":{link:"https://wordpress.com/support/wordpress-editor/blocks/sharing-buttons-block/",postId:330003},"jetpack/like":{link:"https://wordpress.com/support/likes/",postId:7294},"jetpack/subscriber-login":{link:"https://wordpress.com/support/wordpress-editor/blocks/subscriber-login-block/",postId:380451},"jetpack/blog-stats":{link:"https://wordpress.com/support/wordpress-editor/blocks/blog-stats-block/",postId:382010},"jetpack/top-posts":{link:"https://wordpress.com/support/wordpress-editor/blocks/top-posts-pages-block/",postId:381536},"jetpack/goodreads":{link:"https://wordpress.com/support/wordpress-editor/blocks/goodreads-block/",postId:382051}}},47136:(e,t,o)=>{"use strict";o.d(t,{Z:()=>d});var s=o(34369),r=o(13419),n=o(55609),i=o(9818),c=o(65736),p=o(99196),a=o.n(p);const __=c.__;function d({children:e,title:t,url:o,postId:c}){const[d,l]=(0,p.useState)(),{tracks:u}=(0,r.z$)(),h=(0,i.useDispatch)("automattic/help-center"),k=h?.setShowHelpCenter,g=h?.setShowSupportDoc;return d&&!d?.closest(".block-editor-block-inspector")?e:a().createElement(a().Fragment,null,e,a().createElement("br",null),k?a().createElement(n.Button,{onClick:()=>{k(!0),g((0,s.aq)(o),c),u.recordEvent("jetpack_mu_wpcom_block_description_support_link_click",{block:t,support_link:o})},style:{marginTop:10,height:"unset"},ref:e=>d!==e&&l(e),className:"fse-inline-support-link is-compact",variant:"link"},__("Block guide","jetpack-mu-wpcom")):a().createElement(n.ExternalLink,{onClick:()=>{u.recordEvent("jetpack_mu_wpcom_block_description_support_link_click",{block:t,support_link:o})},ref:e=>d!==e&&l(e),style:{display:"block",marginTop:10,maxWidth:"fit-content"},className:"fse-inline-support-link",href:o},__("Learn more","jetpack-mu-wpcom")))}},76354:e=>{"use strict";if(void 0==={consumer_slug:"jetpack-mu-wpcom"}){var t=new Error('Cannot find module \'{"consumer_slug":"jetpack-mu-wpcom"}\'');throw t.code="MODULE_NOT_FOUND",t}e.exports={consumer_slug:"jetpack-mu-wpcom"}},51732:e=>{"use strict";e.exports=window.JetpackScriptDataModule},99196:e=>{"use strict";e.exports=window.React},99501:e=>{"use strict";e.exports=window.ReactJSXRuntime},92819:e=>{"use strict";e.exports=window.lodash},86989:e=>{"use strict";e.exports=window.wp.apiFetch},55609:e=>{"use strict";e.exports=window.wp.components},94333:e=>{"use strict";e.exports=window.wp.compose},9818:e=>{"use strict";e.exports=window.wp.data},69307:e=>{"use strict";e.exports=window.wp.element},92694:e=>{"use strict";e.exports=window.wp.hooks},65736:e=>{"use strict";e.exports=window.wp.i18n},98817:e=>{"use strict";e.exports=window.wp.plugins},96483:e=>{"use strict";e.exports=window.wp.url},82674:e=>{function t(){return e.exports=t=Object.assign?Object.assign.bind():function(e){for(var t=1;t{var t=e&&e.__esModule?()=>e.default:()=>e;return o.d(t,{a:t}),t},o.d=(e,t)=>{for(var s in t)o.o(t,s)&&!o.o(e,s)&&Object.defineProperty(e,s,{enumerable:!0,get:t[s]})},o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{"use strict";var e=o(34369),t=o(69307),s=o(92694),r=o(99196),n=o.n(r),i=o(39765),c=o(47136);const p=(o,s,r,i)=>{const p=(0,e.aq)(r);return(0,t.createInterpolateElement)("",{InlineSupportLink:n().createElement(c.Z,{title:String(o),url:p,postId:i},s)})},a={};(0,s.addFilter)("blocks.registerBlockType","jetpack-mu-wpcom/add-block-support-link",((e,t)=>{const o=e?.parent?.toString(),s=o&&"core/post-content"!==o?o:t;if(a[t])return e;a[t]=!0;const r=i.gM[t]?.link||i.ZP[s]?.link,n=i.gM[t]?.postId||i.ZP[s]?.postId;return r&&n&&(e.description=p(String(e.title),e.description,r,n)),i.yd[t]&&e.variations&&Array.isArray(e.variations)&&(e.variations=e.variations.map((e=>{let o=i.yd[t][e.name]?.link,s=i.yd[t][e.name]?.postId;if(o||"core/embed"!==t){if(!o)return e}else o="https://wordpress.com/support/wordpress-editor/blocks/embed-block/",s=150644;return e.description=p(e.title,e.description,o,s),e}))),e}))})()})(); \ No newline at end of file +(()=>{var e={73625:(e,t,o)=>{"use strict";o.d(t,{bU:()=>a,v8:()=>p});var s=o(99501),r=o(94333),n=o(65736),i=o(99196);const c=(0,i.createContext)(null);function p(){return function(e=""){if(!e)return"";const t=e.toLowerCase();return(["pt_br","pt-br","zh_tw","zh-tw","zh_cn","zh-cn","zh_sg","zh-sg"].includes(t)?t.replace("_","-"):t.replace(/([-_].*)$/i,""))||"en"}(function(){const e=n.getLocaleData()||{};return e[""]?.lang||e[""]?.language||""}())}function a(){const e=(0,i.useContext)(c),t=!!e,[o,s]=(0,i.useState)(p());return(0,i.useEffect)((()=>{if(!t)return s(p()),n.subscribe((()=>{s(p())}))}),[t]),e||o||"undefined"!=typeof window&&window._currentUserLocale||"en"}(0,r.createHigherOrderComponent)((e=>t=>{const o={...t,locale:a()};return(0,s.jsx)(e,{...o})}),"withLocale")},70560:(e,t,o)=>{"use strict";o.d(t,{GG:()=>s,Xb:()=>a,_r:()=>h,dH:()=>r,hI:()=>d,iT:()=>n,kV:()=>c,mL:()=>l,vS:()=>u,xh:()=>p,xn:()=>i});const s=["en","ja","es","pt","fr","pt-br"],r=["en","pt-br","de","es","fr","it"],n=["en","fr","de","es"],i=["en","fr","de","es"],c=["en","es"],p=["ar","de","el","es","fr","he","id","it","ja","ko","nl","pt-br","ro","ru","sv","tr","zh-cn","zh-tw"],a={"pt-br":"br",br:"bre",zh:"zh-cn","zh-hk":"zh-tw","zh-sg":"zh-cn",kr:"ko"},d=["ar","de","en","es","fr","he","id","it","ja","ko","nl","pt-br","ru","sv","tr","zh-cn","zh-tw"],l=["ar","de","el","en","es","fa","fi","fr","id","it","ja","nl","pt","pt-br","ru","sv","th","tl","tr"],u=["es","pt-br","de","fr","he","ja","it","nl","ru","tr","id","zh-cn","zh-tw","ko","ar","sv"],h=["en","ar","de","es","fr","he","id","it","ja","ko","nl","pt-br","ro","ru","sv","tr","zh-cn","zh-tw"]},34369:(e,t,o)=>{"use strict";o.d(t,{aq:()=>m});var s=o(99501),r=o(94333),n=o(99196),i=o(73625),c=o(70560);const p="http://__domain__.invalid";const a=(e,t=[])=>(o,s)=>(t.includes(s)&&"en"!==s&&o.pathname.substr(0,s.length+2)!=="/"+s+"/"&&(o.host=`${c.Xb[s]||s}.${e}`),o),d=(e,t=[],o=null)=>(s,r)=>(s.host="wordpress.com","object"==typeof o&&o instanceof RegExp&&!o.test(s.pathname)&&(t=[]),s.pathname=e+s.pathname,t.includes(r)&&"en"!==r&&(s.pathname=r+s.pathname),s),l=(e=[],t=null,o)=>(s,r)=>"object"==typeof t&&t instanceof RegExp&&!t.test(s.pathname)?s:e.includes(r)&&"en"!==r?("prefix"===o?s.pathname=r+s.pathname:"suffix"===o&&(s.pathname.endsWith("/")?s.pathname+=r+"/":s.pathname+="/"+r),s):s,u=(e=[],t=null)=>(o,s)=>l(e,t,"prefix")(o,s),h=(e=[],t=null)=>(o,s)=>l(e,t,"suffix")(o,s),k={"wordpress.com/support/":u(c.hI),"wordpress.com/forums/":u(c.mL),"wordpress.com/blog/":u(c.GG,/^\/blog\/?$/),"wordpress.com/go/":(e,t)=>["/go/","/go"].includes(e.pathname)||"es"===t?u(c.dH)(e,t):e,"wordpress.com/pricing/":u(c.xh),"wordpress.com/tos/":u(c.vS),"wordpress.com/wp-admin/":a("wordpress.com",c.vS),"wordpress.com/wp-login.php":a("wordpress.com",c.vS),"jetpack.com":u(c._r),"cloud.jetpack.com":u(c._r),"en.support.wordpress.com":d("/support",c.hI),"en.blog.wordpress.com":d("/blog",c.GG,/^\/$/),"apps.wordpress.com":u(c.vS),"en.forums.wordpress.com":d("/forums",c.mL),"automattic.com/privacy/":u(c.iT),"automattic.com/cookies/":u(c.xn),"wordpress.com/help/contact/":(e,t,o)=>o?e:(e.pathname=e.pathname.replace(/\/help\//,"/support/"),u(c.hI)(e,t)),"wordpress.com":(e,t)=>/^\/(checkout|me)(\/|$)/.test(e.pathname)||/\/([a-z0-9-]+\.)+[a-z]{2,}\/?$/.test(e.pathname)?e:u(c.vS)(e,t),"wordpress.com/theme/":(e,t,o)=>o?e:u(c.vS)(e,t),"wordpress.com/themes/":(e,t,o)=>o?e:u(c.vS)(e,t),"wordpress.com/plugins/":(e,t,o)=>o?e:u(c.vS)(e,t),"wordpress.com/log-in/":(e,t,o)=>o?e:h(c.vS)(e,t),"wordpress.com/start/":(e,t,o)=>o?e:h(c.vS)(e,t),"wordpress.com/learn/":(e,t)=>e.pathname.includes("/learn/webinars/")&&"es"===t?(e.pathname=e.pathname.replace("/learn/webinars/","/learn/es/webinars/"),e):h(c.kV)(e,t),"wordpress.com/plans/":(e,t,o)=>o||"/plans/"!==e.pathname?e:u(c.xh)(e,t),"wordpress.com/setup/":(e,t,o)=>o?e:h(c.vS)(e,t)};function g(e){try{return new URL(String(e),p).pathname.endsWith("/")}catch(e){return!1}}function m(e,t=function(){return(0,i.v8)()??"en"}(),o=!0,s=!1){let r;try{r=new URL(String(e),p)}catch(t){return e}if(r.origin===p)return e;r.protocol="https:",r.pathname.endsWith(".php")||(r.pathname=(r.pathname+"/").replace(/\/+$/,"/"));const n=r.pathname.substr(0,1+r.pathname.indexOf("/",1));if("en.wordpress.com"===r.host&&(r.host="wordpress.com"),"/"+t+"/"===n)return e;const c=[r.host,r.host+n,r.host+r.pathname];for(let n=c.length-1;n>=0;n--)if(c[n]in k){const i=k[c[n]](r,t,o).href;if(!s)return i;try{const t=new URL(i);return g(e)||(t.pathname=t.pathname.replace(/\/+$/,"")),t.href}catch{return i}}return e}function w(){const e=(0,i.bU)();return(0,n.useCallback)(((t,o,s,r)=>m(t,o||e,s,r)),[e])}(0,r.createHigherOrderComponent)((e=>t=>{const o={...t,localizeUrl:w()};return(0,s.jsx)(e,{...o})}),"withLocalizeUrl")},951:(e,t,o)=>{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 o="color: "+this.color;t.splice(1,0,o,"color: inherit");let s=0,r=0;t[0].replace(/%[a-zA-Z%]/g,(e=>{"%%"!==e&&(s++,"%c"===e&&(r=s))})),t.splice(r,0,o)},t.save=function(e){try{e?t.storage.setItem("debug",e):t.storage.removeItem("debug")}catch(e){}},t.load=function(){let e;try{e=t.storage.getItem("debug")}catch(e){}!e&&"undefined"!=typeof process&&"env"in process&&(e=process.env.DEBUG);return e},t.useColors=function(){if("undefined"!=typeof window&&window.process&&("renderer"===window.process.type||window.process.__nwjs))return!0;if("undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;return"undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)},t.storage=function(){try{return localStorage}catch(e){}}(),t.destroy=(()=>{let e=!1;return()=>{e||(e=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})(),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],t.log=console.debug||console.log||(()=>{}),e.exports=o(51741)(t);const{formatters:s}=e.exports;s.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}},51741:(e,t,o)=>{e.exports=function(e){function t(e){let o,r,n,i=null;function c(...e){if(!c.enabled)return;const s=c,r=Number(new Date),n=r-(o||r);s.diff=n,s.prev=o,s.curr=r,o=r,e[0]=t.coerce(e[0]),"string"!=typeof e[0]&&e.unshift("%O");let i=0;e[0]=e[0].replace(/%([a-zA-Z%])/g,((o,r)=>{if("%%"===o)return"%";i++;const n=t.formatters[r];if("function"==typeof n){const t=e[i];o=n.call(s,t),e.splice(i,1),i--}return o})),t.formatArgs.call(s,e);(s.log||t.log).apply(s,e)}return c.namespace=e,c.useColors=t.useColors(),c.color=t.selectColor(e),c.extend=s,c.destroy=t.destroy,Object.defineProperty(c,"enabled",{enumerable:!0,configurable:!1,get:()=>null!==i?i:(r!==t.namespaces&&(r=t.namespaces,n=t.enabled(e)),n),set:e=>{i=e}}),"function"==typeof t.init&&t.init(c),c}function s(e,o){const s=t(this.namespace+(void 0===o?":":o)+e);return s.log=this.log,s}function r(e){return e.toString().substring(2,e.toString().length-2).replace(/\.\*\?$/,"*")}return t.debug=t,t.default=t,t.coerce=function(e){if(e instanceof Error)return e.stack||e.message;return e},t.disable=function(){const e=[...t.names.map(r),...t.skips.map(r).map((e=>"-"+e))].join(",");return t.enable(""),e},t.enable=function(e){let o;t.save(e),t.namespaces=e,t.names=[],t.skips=[];const s=("string"==typeof e?e:"").split(/[\s,]+/),r=s.length;for(o=0;o{t[o]=e[o]})),t.names=[],t.skips=[],t.formatters={},t.selectColor=function(e){let o=0;for(let t=0;t{var t=1e3,o=60*t,s=60*o,r=24*s,n=7*r,i=365.25*r;function c(e,t,o,s){var r=t>=1.5*o;return Math.round(e/o)+" "+s+(r?"s":"")}e.exports=function(e,p){p=p||{};var a=typeof e;if("string"===a&&e.length>0)return function(e){if((e=String(e)).length>100)return;var c=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(!c)return;var p=parseFloat(c[1]);switch((c[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return p*i;case"weeks":case"week":case"w":return p*n;case"days":case"day":case"d":return p*r;case"hours":case"hour":case"hrs":case"hr":case"h":return p*s;case"minutes":case"minute":case"mins":case"min":case"m":return p*o;case"seconds":case"second":case"secs":case"sec":case"s":return p*t;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return p;default:return}}(e);if("number"===a&&isFinite(e))return p.long?function(e){var n=Math.abs(e);if(n>=r)return c(e,n,r,"day");if(n>=s)return c(e,n,s,"hour");if(n>=o)return c(e,n,o,"minute");if(n>=t)return c(e,n,t,"second");return e+" ms"}(e):function(e){var n=Math.abs(e);if(n>=r)return Math.round(e/r)+"d";if(n>=s)return Math.round(e/s)+"h";if(n>=o)return Math.round(e/o)+"m";if(n>=t)return Math.round(e/t)+"s";return e+"ms"}(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))}},6975:(e,t,o)=>{"use strict";o.d(t,{Z:()=>p});var s=o(951);const r=o.n(s)()("dops:analytics");let n,i;window._tkq=window._tkq||[],window.ga=window.ga||function(){(window.ga.q=window.ga.q||[]).push(arguments)},window.ga.l=+new Date;const c={initialize:function(e,t,o){c.setUser(e,t),c.setSuperProps(o),c.identifyUser()},setGoogleAnalyticsEnabled:function(e,t=null){this.googleAnalyticsEnabled=e,this.googleAnalyticsKey=t},setMcAnalyticsEnabled:function(e){this.mcAnalyticsEnabled=e},setUser:function(e,t){i={ID:e,username:t}},setSuperProps:function(e){n=e},assignSuperProps:function(e){n=Object.assign(n||{},e)},mc:{bumpStat:function(e,t){const o=function(e,t){let o="";if("object"==typeof e){for(const t in e)o+="&x_"+encodeURIComponent(t)+"="+encodeURIComponent(e[t]);r("Bumping stats %o",e)}else o="&x_"+encodeURIComponent(e)+"="+encodeURIComponent(t),r('Bumping stat "%s" in group "%s"',t,e);return o}(e,t);c.mcAnalyticsEnabled&&((new Image).src=document.location.protocol+"//pixel.wp.com/g.gif?v=wpcom-no-pv"+o+"&t="+Math.random())},bumpStatWithPageView:function(e,t){const o=function(e,t){let o="";if("object"==typeof e){for(const t in e)o+="&"+encodeURIComponent(t)+"="+encodeURIComponent(e[t]);r("Built stats %o",e)}else o="&"+encodeURIComponent(e)+"="+encodeURIComponent(t),r('Built stat "%s" in group "%s"',t,e);return o}(e,t);c.mcAnalyticsEnabled&&((new Image).src=document.location.protocol+"//pixel.wp.com/g.gif?v=wpcom"+o+"&t="+Math.random())}},pageView:{record:function(e,t){c.tracks.recordPageView(e),c.ga.recordPageView(e,t)}},purchase:{record:function(e,t,o,s,r,n,i){c.ga.recordPurchase(e,t,o,s,r,n,i)}},tracks:{recordEvent:function(e,t){t=t||{},0===e.indexOf("akismet_")||0===e.indexOf("jetpack_")?(n&&(r("- Super Props: %o",n),t=Object.assign(t,n)),r('Record event "%s" called with props %s',e,JSON.stringify(t)),window._tkq.push(["recordEvent",e,t])):r('- Event name must be prefixed by "akismet_" or "jetpack_"')},recordJetpackClick:function(e){const t="object"==typeof e?e:{target:e};c.tracks.recordEvent("jetpack_wpa_click",t)},recordPageView:function(e){c.tracks.recordEvent("akismet_page_view",{path:e})},setOptOut:function(e){r("Pushing setOptOut: %o",e),window._tkq.push(["setOptOut",e])}},ga:{initialized:!1,initialize:function(){let e={};c.ga.initialized||(i&&(e={userId:"u-"+i.ID}),window.ga("create",this.googleAnalyticsKey,"auto",e),c.ga.initialized=!0)},recordPageView:function(e,t){c.ga.initialize(),r("Recording Page View ~ [URL: "+e+"] [Title: "+t+"]"),this.googleAnalyticsEnabled&&(window.ga("set","page",e),window.ga("send",{hitType:"pageview",page:e,title:t}))},recordEvent:function(e,t,o,s){c.ga.initialize();let n="Recording Event ~ [Category: "+e+"] [Action: "+t+"]";void 0!==o&&(n+=" [Option Label: "+o+"]"),void 0!==s&&(n+=" [Option Value: "+s+"]"),r(n),this.googleAnalyticsEnabled&&window.ga("send","event",e,t,o,s)},recordPurchase:function(e,t,o,s,r,n,i){window.ga("require","ecommerce"),window.ga("ecommerce:addTransaction",{id:e,revenue:s,currency:i}),window.ga("ecommerce:addItem",{id:e,name:t,sku:o,price:r,quantity:n}),window.ga("ecommerce:send")}},identifyUser:function(){i&&window._tkq.push(["identifyUser",i.ID,i.username])},setProperties:function(e){window._tkq.push(["setProperties",e])},clearedIdentity:function(){window._tkq.push(["clearIdentity"])}},p=c},64743:(e,t,o)=>{"use strict";o.d(t,{ZP:()=>l});var s=o(61132),r=o(96483);function n(e){class t extends Error{constructor(...t){super(...t),this.name=e}}return t}const i=n("JsonParseError"),c=n("JsonParseAfterRedirectError"),p=n("Api404Error"),a=n("Api404AfterRedirectError"),d=n("FetchNetworkError");const l=new function(e,t){let o=e,n=e,i={"X-WP-Nonce":t},c={credentials:"same-origin",headers:i},p={method:"post",credentials:"same-origin",headers:Object.assign({},i,{"Content-type":"application/json"})},a=function(e){const t=e.split("?"),o=t.length>1?t[1]:"",s=o.length?o.split("&"):[];return s.push("_cacheBuster="+(new Date).getTime()),t[0]+"?"+s.join("&")};const d={setApiRoot(e){o=e},setWpcomOriginApiUrl(e){n=e},setApiNonce(e){i={"X-WP-Nonce":e},c={credentials:"same-origin",headers:i},p={method:"post",credentials:"same-origin",headers:Object.assign({},i,{"Content-type":"application/json"})}},setCacheBusterCallback:e=>{a=e},registerSite:(e,t,r)=>{const n={registration_nonce:e,no_iframe:!0};return(0,s.jetpackConfigHas)("consumer_slug")&&(n.plugin_slug=(0,s.jetpackConfigGet)("consumer_slug")),null!==t&&(n.redirect_uri=t),r&&(n.from=r),k(`${o}jetpack/v4/connection/register`,p,{body:JSON.stringify(n)}).then(u).then(h)},fetchAuthorizationUrl:e=>l((0,r.addQueryArgs)(`${o}jetpack/v4/connection/authorize_url`,{no_iframe:"1",redirect_uri:e}),c).then(u).then(h),fetchSiteConnectionData:()=>l(`${o}jetpack/v4/connection/data`,c).then(h),fetchSiteConnectionStatus:()=>l(`${o}jetpack/v4/connection`,c).then(h),fetchSiteConnectionTest:()=>l(`${o}jetpack/v4/connection/test`,c).then(u).then(h),fetchUserConnectionData:()=>l(`${o}jetpack/v4/connection/data`,c).then(h),fetchUserTrackingSettings:()=>l(`${o}jetpack/v4/tracking/settings`,c).then(u).then(h),updateUserTrackingSettings:e=>k(`${o}jetpack/v4/tracking/settings`,p,{body:JSON.stringify(e)}).then(u).then(h),disconnectSite:()=>k(`${o}jetpack/v4/connection`,p,{body:JSON.stringify({isActive:!1})}).then(u).then(h),fetchConnectUrl:()=>l(`${o}jetpack/v4/connection/url`,c).then(u).then(h),unlinkUser:()=>k(`${o}jetpack/v4/connection/user`,p,{body:JSON.stringify({linked:!1})}).then(u).then(h),reconnect:()=>k(`${o}jetpack/v4/connection/reconnect`,p).then(u).then(h),fetchConnectedPlugins:()=>l(`${o}jetpack/v4/connection/plugins`,c).then(u).then(h),setHasSeenWCConnectionModal:()=>k(`${o}jetpack/v4/seen-wc-connection-modal`,p).then(u).then(h),fetchModules:()=>l(`${o}jetpack/v4/module/all`,c).then(u).then(h),fetchModule:e=>l(`${o}jetpack/v4/module/${e}`,c).then(u).then(h),activateModule:e=>k(`${o}jetpack/v4/module/${e}/active`,p,{body:JSON.stringify({active:!0})}).then(u).then(h),deactivateModule:e=>k(`${o}jetpack/v4/module/${e}/active`,p,{body:JSON.stringify({active:!1})}),updateModuleOptions:(e,t)=>k(`${o}jetpack/v4/module/${e}`,p,{body:JSON.stringify(t)}).then(u).then(h),updateSettings:e=>k(`${o}jetpack/v4/settings`,p,{body:JSON.stringify(e)}).then(u).then(h),getProtectCount:()=>l(`${o}jetpack/v4/module/protect/data`,c).then(u).then(h),resetOptions:e=>k(`${o}jetpack/v4/options/${e}`,p,{body:JSON.stringify({reset:!0})}).then(u).then(h),activateVaultPress:()=>k(`${o}jetpack/v4/plugins`,p,{body:JSON.stringify({slug:"vaultpress",status:"active"})}).then(u).then(h),getVaultPressData:()=>l(`${o}jetpack/v4/module/vaultpress/data`,c).then(u).then(h),installPlugin:(e,t)=>{const s={slug:e,status:"active"};return t&&(s.source=t),k(`${o}jetpack/v4/plugins`,p,{body:JSON.stringify(s)}).then(u).then(h)},activateAkismet:()=>k(`${o}jetpack/v4/plugins`,p,{body:JSON.stringify({slug:"akismet",status:"active"})}).then(u).then(h),getAkismetData:()=>l(`${o}jetpack/v4/module/akismet/data`,c).then(u).then(h),checkAkismetKey:()=>l(`${o}jetpack/v4/module/akismet/key/check`,c).then(u).then(h),checkAkismetKeyTyped:e=>k(`${o}jetpack/v4/module/akismet/key/check`,p,{body:JSON.stringify({api_key:e})}).then(u).then(h),fetchStatsData:e=>l(function(e){let t=`${o}jetpack/v4/module/stats/data`;-1!==t.indexOf("?")?t+=`&range=${encodeURIComponent(e)}`:t+=`?range=${encodeURIComponent(e)}`;return t}(e),c).then(u).then(h).then(m),getPluginUpdates:()=>l(`${o}jetpack/v4/updates/plugins`,c).then(u).then(h),getPlans:()=>l(`${o}jetpack/v4/plans`,c).then(u).then(h),fetchSettings:()=>l(`${o}jetpack/v4/settings`,c).then(u).then(h),updateSetting:e=>k(`${o}jetpack/v4/settings`,p,{body:JSON.stringify(e)}).then(u).then(h),fetchSiteData:()=>l(`${o}jetpack/v4/site`,c).then(u).then(h).then((e=>JSON.parse(e.data))),fetchSiteFeatures:()=>l(`${o}jetpack/v4/site/features`,c).then(u).then(h).then((e=>JSON.parse(e.data))),fetchSiteProducts:()=>l(`${o}jetpack/v4/site/products`,c).then(u).then(h),fetchSitePurchases:()=>l(`${o}jetpack/v4/site/purchases`,c).then(u).then(h).then((e=>JSON.parse(e.data))),fetchSiteBenefits:()=>l(`${o}jetpack/v4/site/benefits`,c).then(u).then(h).then((e=>JSON.parse(e.data))),fetchSiteDiscount:()=>l(`${o}jetpack/v4/site/discount`,c).then(u).then(h).then((e=>e.data)),fetchSetupQuestionnaire:()=>l(`${o}jetpack/v4/setup/questionnaire`,c).then(u).then(h),fetchRecommendationsData:()=>l(`${o}jetpack/v4/recommendations/data`,c).then(u).then(h),fetchRecommendationsProductSuggestions:()=>l(`${o}jetpack/v4/recommendations/product-suggestions`,c).then(u).then(h),fetchRecommendationsUpsell:()=>l(`${o}jetpack/v4/recommendations/upsell`,c).then(u).then(h),fetchRecommendationsConditional:()=>l(`${o}jetpack/v4/recommendations/conditional`,c).then(u).then(h),saveRecommendationsData:e=>k(`${o}jetpack/v4/recommendations/data`,p,{body:JSON.stringify({data:e})}).then(u),fetchProducts:()=>l(`${o}jetpack/v4/products`,c).then(u).then(h),fetchRewindStatus:()=>l(`${o}jetpack/v4/rewind`,c).then(u).then(h).then((e=>JSON.parse(e.data))),fetchScanStatus:()=>l(`${o}jetpack/v4/scan`,c).then(u).then(h).then((e=>JSON.parse(e.data))),dismissJetpackNotice:e=>k(`${o}jetpack/v4/notice/${e}`,p,{body:JSON.stringify({dismissed:!0})}).then(u).then(h),fetchPluginsData:()=>l(`${o}jetpack/v4/plugins`,c).then(u).then(h),fetchIntroOffers:()=>l(`${o}jetpack/v4/intro-offers`,c).then(u).then(h),fetchVerifySiteGoogleStatus:e=>l(null!==e?`${o}jetpack/v4/verify-site/google/${e}`:`${o}jetpack/v4/verify-site/google`,c).then(u).then(h),verifySiteGoogle:e=>k(`${o}jetpack/v4/verify-site/google`,p,{body:JSON.stringify({keyring_id:e})}).then(u).then(h),submitSurvey:e=>k(`${o}jetpack/v4/marketing/survey`,p,{body:JSON.stringify(e)}).then(u).then(h),saveSetupQuestionnaire:e=>k(`${o}jetpack/v4/setup/questionnaire`,p,{body:JSON.stringify(e)}).then(u).then(h),updateLicensingError:e=>k(`${o}jetpack/v4/licensing/error`,p,{body:JSON.stringify(e)}).then(u).then(h),updateLicenseKey:e=>k(`${o}jetpack/v4/licensing/set-license`,p,{body:JSON.stringify({license:e})}).then(u).then(h),getUserLicensesCounts:()=>l(`${o}jetpack/v4/licensing/user/counts`,c).then(u).then(h),getUserLicenses:()=>l(`${o}jetpack/v4/licensing/user/licenses`,c).then(u).then(h),updateLicensingActivationNoticeDismiss:e=>k(`${o}jetpack/v4/licensing/user/activation-notice-dismiss`,p,{body:JSON.stringify({last_detached_count:e})}).then(u).then(h),updateRecommendationsStep:e=>k(`${o}jetpack/v4/recommendations/step`,p,{body:JSON.stringify({step:e})}).then(u),confirmIDCSafeMode:()=>k(`${o}jetpack/v4/identity-crisis/confirm-safe-mode`,p).then(u),startIDCFresh:e=>k(`${o}jetpack/v4/identity-crisis/start-fresh`,p,{body:JSON.stringify({redirect_uri:e})}).then(u).then(h),migrateIDC:()=>k(`${o}jetpack/v4/identity-crisis/migrate`,p).then(u),attachLicenses:e=>k(`${o}jetpack/v4/licensing/attach-licenses`,p,{body:JSON.stringify({licenses:e})}).then(u).then(h),fetchSearchPlanInfo:()=>l(`${n}jetpack/v4/search/plan`,c).then(u).then(h),fetchSearchSettings:()=>l(`${n}jetpack/v4/search/settings`,c).then(u).then(h),updateSearchSettings:e=>k(`${n}jetpack/v4/search/settings`,p,{body:JSON.stringify(e)}).then(u).then(h),fetchSearchStats:()=>l(`${n}jetpack/v4/search/stats`,c).then(u).then(h),fetchWafSettings:()=>l(`${o}jetpack/v4/waf`,c).then(u).then(h),updateWafSettings:e=>k(`${o}jetpack/v4/waf`,p,{body:JSON.stringify(e)}).then(u).then(h),fetchWordAdsSettings:()=>l(`${o}jetpack/v4/wordads/settings`,c).then(u).then(h),updateWordAdsSettings:e=>k(`${o}jetpack/v4/wordads/settings`,p,{body:JSON.stringify(e)}),fetchSearchPricing:()=>l(`${n}jetpack/v4/search/pricing`,c).then(u).then(h),fetchMigrationStatus:()=>l(`${o}jetpack/v4/migration/status`,c).then(u).then(h),fetchBackupUndoEvent:()=>l(`${o}jetpack/v4/site/backup/undo-event`,c).then(u).then(h),fetchBackupPreflightStatus:()=>l(`${o}jetpack/v4/site/backup/preflight`,c).then(u).then(h)};function l(e,t){return fetch(a(e),t)}function k(e,t,o){return fetch(e,Object.assign({},t,o)).catch(g)}function m(e){return e.general&&void 0===e.general.response||e.week&&void 0===e.week.response||e.month&&void 0===e.month.response?e:{}}Object.assign(this,d)};function u(e){return e.status>=200&&e.status<300?e:404===e.status?new Promise((()=>{throw e.redirected?new a(e.redirected):new p})):e.json().catch((e=>k(e))).then((t=>{const o=new Error(`${t.message} (Status ${e.status})`);throw o.response=t,o.name="ApiError",o}))}function h(e){return e.json().catch((t=>k(t,e.redirected,e.url)))}function k(e,t,o){throw t?new c(o):new i}function g(){throw new d}},61132:(e,t,o)=>{let s={};try{s=o(76354)}catch{console.error("jetpackConfig is missing in your webpack config file. See @automattic/jetpack-config"),s={missingConfig:!0}}const r=e=>Object.hasOwn(s,e);e.exports={jetpackConfigHas:r,jetpackConfigGet:e=>{if(!r(e))throw'This app requires the "'+e+'" Jetpack Config to be defined in your webpack configuration file. See details in @automattic/jetpack-config package docs.';return s[e]}}},31294:(e,t,o)=>{"use strict";o.d(t,{Z:()=>a});var s=o(64743),r=o(51732),n=o(9818),i=o(99196),c=o(80428);const p=window?.JP_CONNECTION_INITIAL_STATE||(0,r.getScriptData)()?.connection||{},a=({registrationNonce:e=p.registrationNonce,apiRoot:t=p.apiRoot,apiNonce:o=p.apiNonce,redirectUri:r,autoTrigger:a,from:d,skipUserConnection:l}={})=>{const{registerSite:u,connectUser:h,refreshConnectedPlugins:k}=(0,n.useDispatch)(c.t),g=(0,n.useSelect)((e=>e(c.t).getRegistrationError())),{siteIsRegistering:m,userIsConnecting:w,userConnectionData:f,connectedPlugins:b,connectionErrors:y,isRegistered:C,isUserConnected:v,hasConnectedOwner:I,isOfflineMode:S}=(0,n.useSelect)((e=>({siteIsRegistering:e(c.t).getSiteIsRegistering(),userIsConnecting:e(c.t).getUserIsConnecting(),userConnectionData:e(c.t).getUserConnectionData(),connectedPlugins:e(c.t).getConnectedPlugins(),connectionErrors:e(c.t).getConnectionErrors(),isOfflineMode:e(c.t).getIsOfflineMode(),...e(c.t).getConnectionStatus()}))),j=()=>l?r?(window.location=r,Promise.resolve(r)):Promise.resolve():h({from:d,redirectUri:r}),_=t=>(t&&t.preventDefault(),C?j():u({registrationNonce:e,redirectUri:r,from:d}).then((()=>j())));return(0,i.useEffect)((()=>{s.ZP.setApiRoot(t),s.ZP.setApiNonce(o)}),[t,o]),(0,i.useEffect)((()=>{!a||m||w||_()}),[]),{handleRegisterSite:_,handleConnectUser:j,refreshConnectedPlugins:k,isRegistered:C,isUserConnected:v,siteIsRegistering:m,userIsConnecting:w,registrationError:g,userConnectionData:f,hasConnectedOwner:I,connectedPlugins:b,connectionErrors:y,isOfflineMode:S}}},27523:(e,t,o)=>{"use strict";o.d(t,{LI:()=>n,N4:()=>c,Qo:()=>l,T1:()=>a,TS:()=>d,ZP:()=>v,b5:()=>h,i6:()=>r,qJ:()=>k,qV:()=>p,r7:()=>i,wQ:()=>u});var s=o(64743);const r="SET_CONNECTION_STATUS",n="SET_CONNECTION_STATUS_IS_FETCHING",i="SET_SITE_IS_REGISTERING",c="SET_USER_IS_CONNECTING",p="SET_REGISTRATION_ERROR",a="CLEAR_REGISTRATION_ERROR",d="SET_AUTHORIZATION_URL",l="DISCONNECT_USER_SUCCESS",u="SET_CONNECTED_PLUGINS",h="SET_CONNECTION_ERRORS",k="SET_IS_OFFLINE_MODE",g=e=>({type:r,connectionStatus:e}),m=e=>({type:i,isRegistering:e}),w=e=>({type:c,isConnecting:e}),f=e=>({type:p,registrationError:e}),b=()=>({type:a}),y=e=>({type:d,authorizationUrl:e}),C=e=>({type:u,connectedPlugins:e});const v={setConnectionStatus:g,setConnectionStatusIsFetching:e=>({type:n,isFetching:e}),fetchConnectionStatus:()=>({type:"FETCH_CONNECTION_STATUS"}),fetchAuthorizationUrl:e=>({type:"FETCH_AUTHORIZATION_URL",redirectUri:e}),setSiteIsRegistering:m,setUserIsConnecting:w,setRegistrationError:f,clearRegistrationError:b,setAuthorizationUrl:y,registerSite:function*({registrationNonce:e,redirectUri:t,from:o=""}){yield b(),yield m(!0);try{const s=yield{type:"REGISTER_SITE",registrationNonce:e,redirectUri:t,from:o};return yield g({isRegistered:!0}),yield y(s.authorizeUrl),yield m(!1),Promise.resolve(s)}catch(e){return yield f(e),yield m(!1),Promise.reject(e)}},connectUser:function*({from:e,redirectFunc:t,redirectUri:o}={}){yield w(!0),yield{type:"CONNECT_USER",from:e,redirectFunc:t,redirectUri:o}},disconnectUserSuccess:()=>({type:l}),setConnectedPlugins:C,refreshConnectedPlugins:()=>async({dispatch:e})=>await new Promise((t=>s.ZP.fetchConnectedPlugins().then((o=>{e(C(o)),t(o)})))),setConnectionErrors:e=>({type:h,connectionErrors:e}),setIsOfflineMode:e=>({type:k,isOfflineMode:e})}},31432:(e,t,o)=>{"use strict";o.d(t,{Z:()=>i});var s=o(64743),r=o(9818),n=o(27057);const i={FETCH_AUTHORIZATION_URL:({redirectUri:e})=>s.ZP.fetchAuthorizationUrl(e),REGISTER_SITE:({registrationNonce:e,redirectUri:t,from:o})=>s.ZP.registerSite(e,t,o),CONNECT_USER:(0,r.createRegistryControl)((({resolveSelect:e})=>({from:t,redirectFunc:o,redirectUri:s}={})=>new Promise(((r,i)=>{e(n.Z).getAuthorizationUrl(s).then((e=>{const s=o||(e=>window.location.assign(e)),n=new URL(e);t&&n.searchParams.set("from",encodeURIComponent(t));const i=n.toString();s(i),r(i)})).catch((e=>{i(e)}))}))))}},41479:(e,t,o)=>{"use strict";o.d(t,{Z:()=>n});var s=o(9818),r=o(27523);const n=(0,s.combineReducers)({connectionStatus:(e={},t)=>{switch(t.type){case r.i6:return{...e,...t.connectionStatus};case r.Qo:return{...e,isUserConnected:!1}}return e},connectionStatusIsFetching:(e=!1,t)=>t.type===r.LI?t.isFetching:e,siteIsRegistering:(e=!1,t)=>t.type===r.r7?t.isRegistering:e,userIsConnecting:(e=!1,t)=>t.type===r.N4?t.isConnecting:e,registrationError:(e,t)=>{switch(t.type){case r.T1:return!1;case r.qV:return t.registrationError;default:return e}},authorizationUrl:(e,t)=>t.type===r.TS?t.authorizationUrl:e,userConnectionData:(e,t)=>(t.type,e),connectedPlugins:(e={},t)=>t.type===r.wQ?t.connectedPlugins:e,connectionErrors:(e={},t)=>t.type===r.b5?t.connectionErrors:e,isOfflineMode:(e=!1,t)=>t.type===r.qJ?t.isConnecting:e})},77728:(e,t,o)=>{"use strict";o.d(t,{Z:()=>i});var s=o(9818),r=o(27523),n=o(27057);const i={...{getAuthorizationUrl:{isFulfilled:(e,...t)=>{const o=Boolean(e.authorizationUrl),r=(0,s.select)(n.Z).hasFinishedResolution("getAuthorizationUrl",t);return o&&!r&&(0,s.dispatch)(n.Z).finishResolution("getAuthorizationUrl",t),o},*fulfill(e){const t=yield r.ZP.fetchAuthorizationUrl(e);yield r.ZP.setAuthorizationUrl(t.authorizeUrl)}}}}},82725:(e,t,o)=>{"use strict";o.d(t,{Z:()=>s});const s={...{getConnectionStatus:e=>e.connectionStatus||{},getConnectionStatusIsFetching:()=>!1,getSiteIsRegistering:e=>e.siteIsRegistering||!1,getUserIsConnecting:e=>e.userIsConnecting||!1,getRegistrationError:e=>e.registrationError||!1,getAuthorizationUrl:e=>e.authorizationUrl||!1,getUserConnectionData:e=>e.userConnectionData||!1,getConnectedPlugins:e=>e.connectedPlugins||[],getConnectionErrors:e=>e.connectionErrors||[],getIsOfflineMode:e=>e.isOfflineMode||!1,getWpcomUser:e=>e?.userConnectionData?.currentUser?.wpcomUser,getBlogId:e=>e?.userConnectionData?.currentUser?.blogId}}},13535:(e,t,o)=>{"use strict";o.d(t,{Z:()=>n});var s=o(9818);class r{static store=null;static mayBeInit(e,t){null===r.store&&(r.store=(0,s.createReduxStore)(e,t),(0,s.register)(r.store))}}const n=r},27057:(e,t,o)=>{"use strict";o.d(t,{Z:()=>s});const s="jetpack-connection"},80428:(e,t,o)=>{"use strict";o.d(t,{t:()=>d.Z});var s=o(51732),r=o(27523),n=o(31432),i=o(41479),c=o(77728),p=o(82725),a=o(13535),d=o(27057);const l=window.JP_CONNECTION_INITIAL_STATE||(0,s.getScriptData)()?.connection;l||console.error("Jetpack Connection package: Initial state is missing. Check documentation to see how to use the Connection composer package to set up the initial state."),a.Z.mayBeInit(d.Z,{__experimentalUseThunks:!0,reducer:i.Z,actions:r.ZP,selectors:p.Z,resolvers:c.Z,controls:n.Z,initialState:l||{}})},13419:(e,t,o)=>{"use strict";o.d(t,{z$:()=>s.Z});o(76714),o(80354),o(75404);var s=o(61053);o(11380),o(6342),o(96959),o(39058)},6342:(e,t,o)=>{"use strict";o(99196)},96959:(e,t,o)=>{"use strict";o(69307)},61053:(e,t,o)=>{"use strict";o.d(t,{Z:()=>p});var s=o(6975),r=o(31294),n=o(69307);const{tracks:i}=s.Z,{recordEvent:c}=i,p=({pageViewEventName:e=null,pageViewNamespace:t="jetpack",pageViewSuffix:o="page_view",pageViewEventProperties:p={}}={})=>{const[a,d]=(0,n.useState)(!1),{isUserConnected:l,isRegistered:u,userConnectionData:h={}}=(0,r.Z)(),{wpcomUser:{login:k,ID:g}={},blogId:m}=h.currentUser||{},w=(0,n.useCallback)((async(e,t={})=>{l&&g&&k&&c(e,t)}),[l,g,k]);return(0,n.useEffect)((()=>{l&&g&&k&&m&&s.Z.initialize(g,k,{blog_id:m})}),[m,g,k,l]),(0,n.useEffect)((()=>{const s=e?`${t}_${e}_${o}`:null;u&&s&&(a||(w(s,p),d(!0)))}),[a,t,e,o,u,p,w]),{recordEvent:w,tracks:i}}},11380:(e,t,o)=>{"use strict";o(9818),o(69307),o(39058)},44166:(e,t,o)=>{"use strict";o.d(t,{ZP:()=>u,rW:()=>l});var s=o(9818),r=o(99505),n=o(82162),i=o(39058);const c="SET_JETPACK_MODULES",p="SET_MODULE_UPDATING";function a(e){return l({isLoading:e})}function d(e,t){return{type:p,name:e,isUpdating:t}}function l(e){return{type:c,options:e}}const u={updateJetpackModuleStatus:function*(e){try{yield d(e.name,!0),yield(0,n.zL)(e);const t=yield(0,n.Bs)();return yield l({data:t}),!0}catch(e){const t=(0,s.select)(i.p).getJetpackModules();return yield l(t),!1}finally{yield d(e.name,!1)}},setJetpackModules:l,fetchModules:function*(){if((0,r.Wp)())return!0;try{yield a(!0);const e=yield(0,n.Bs)();return yield l({data:e}),!0}catch(e){const t=(0,s.select)(i.p).getJetpackModules();return yield l(t),!1}finally{yield a(!1)}}}},82162:(e,t,o)=>{"use strict";o.d(t,{Bs:()=>c,ZP:()=>a,zL:()=>p});var s=o(86989),r=o.n(s);const n="FETCH_JETPACK_MODULES",i="UPDATE_JETPACK_MODULE_STATUS",c=()=>({type:n}),p=e=>({type:i,settings:e}),a={[n]:function(){return r()({path:"/jetpack/v4/module/all",method:"GET"})},[i]:function({settings:e}){return r()({path:`/jetpack/v4/module/${e.name}/active`,method:"POST",data:{active:e.active}})}}},39058:(e,t,o)=>{"use strict";o.d(t,{p:()=>a});var s=o(9818),r=o(44166),n=o(82162),i=o(42469),c=o(55133),p=o(43524);const a="jetpack-modules",d=(0,s.createReduxStore)(a,{reducer:i.Z,actions:r.ZP,controls:n.ZP,resolvers:c.Z,selectors:p.Z});(0,s.register)(d);const l=window?.Initial_State?.getModules||window?.Jetpack_Editor_Initial_State?.modules||null;null!==l&&(0,s.dispatch)(a).setJetpackModules({data:{...l}})},42469:(e,t,o)=>{"use strict";o.d(t,{Z:()=>r});const s={isLoading:!1,isUpdating:{},data:{}},r=(e=s,t)=>{switch(t.type){case"SET_JETPACK_MODULES":return{...e,...t.options};case"SET_MODULE_UPDATING":return{...e,isUpdating:{...e.isUpdating,[t.name]:t.isUpdating}}}return e}},55133:(e,t,o)=>{"use strict";o.d(t,{Z:()=>n});var s=o(44166),r=o(82162);const n={getJetpackModules:function*(){try{const e=yield(0,r.Bs)();if(e)return(0,s.rW)({data:e})}catch(e){console.error(e)}}}},43524:(e,t,o)=>{"use strict";o.d(t,{Z:()=>r});var s=o(99505);const r={getJetpackModules:e=>e.data,isModuleActive:(e,t)=>(0,s.Wp)()||(e?.data?.[t]?.activated??!1),areModulesLoading:e=>e.isLoading??!1,isModuleUpdating:(e,t)=>e?.isUpdating?.[t]??!1}},75404:(e,t,o)=>{"use strict";var s=o(65736);o(96483),o(92819);const __=s.__;__("Upgrade your plan to use video covers","jetpack-mu-wpcom"),__("Upgrade your plan to upload audio","jetpack-mu-wpcom")},76714:(e,t,o)=>{"use strict";o(98817)},99505:(e,t,o)=>{"use strict";function s(){return"object"==typeof window&&"string"==typeof window._currentSiteType?window._currentSiteType:null}function r(){return"simple"===s()}o.d(t,{Wp:()=>r})},80354:(e,t,o)=>{"use strict";o(82674),o(94333)},39765:(e,t,o)=>{"use strict";o.d(t,{ZP:()=>n,gM:()=>r,yd:()=>s});const s={"core/group":{group:{link:"https://wordpress.com/support/wordpress-editor/blocks/group-block/",postId:161882},"group-row":{link:"https://wordpress.com/support/wordpress-editor/blocks/row-block/",postId:190036},"group-stack":{link:"https://wordpress.com/support/wordpress-editor/blocks/row-block/",postId:190036}},"core/embed":{soundcloud:{link:"https://wordpress.com/support/soundcloud-audio-player/",postId:4213},twitter:{link:"https://wordpress.com/support/wordpress-editor/blocks/twitter-block/",postId:150413},vimeo:{link:"https://wordpress.com/support/videos/vimeo/",postId:1235},youtube:{link:"https://wordpress.com/support/wordpress-editor/blocks/youtube-block/",postId:150414}}},r={"core/nextpage":{link:"https://wordpress.com/support/wordpress-editor/blocks/page-break-block/",postId:149374}},n={"core/template-part":{link:"https://wordpress.com/support/full-site-editing/theme-blocks/template-part-block/",postId:192398},"core/site-title":{link:"https://wordpress.com/support/full-site-editing/theme-blocks/site-title-block/",postId:184569},"core/site-tagline":{link:"https://wordpress.com/support/full-site-editing/theme-blocks/site-tagline-block/",postId:184553},"core/site-logo":{link:"https://wordpress.com/support/full-site-editing/theme-blocks/site-logo-block/",postId:184537},"core/page-list":{link:"https://wordpress.com/support/full-site-editing/theme-blocks/page-list-block/",postId:180696},"core/loginout":{link:"https://wordpress.com/support/full-site-editing/theme-blocks/login-out-block/",postId:184610},"core/video":{link:"https://wordpress.com/support/wordpress-editor/blocks/video-block/",postId:149045},"core/verse":{link:"https://wordpress.com/support/wordpress-editor/blocks/verse-block/",postId:149992},"core/spacer":{link:"https://wordpress.com/support/wordpress-editor/blocks/spacer-block/",postId:148996},"core/shortcode":{link:"https://wordpress.com/support/wordpress-editor/blocks/shortcode-block/",postId:149209},"core/separator":{link:"https://wordpress.com/support/wordpress-editor/blocks/separator-block/",postId:149012},"core/search":{link:"https://wordpress.com/support/wordpress-editor/blocks/search-block/",postId:187104},"core/rss":{link:"https://wordpress.com/support/wordpress-editor/blocks/rss-block/",postId:174794},"core/navigation":{link:"https://wordpress.com/support/site-editing/theme-blocks/navigation-block/",postId:162159},"core/tag-cloud":{link:"https://wordpress.com/support/wordpress-editor/blocks/tag-cloud-block/",postId:188957},"core/quote":{link:"https://wordpress.com/support/wordpress-editor/blocks/quote-block/",postId:148575},"core/pullquote":{link:"https://wordpress.com/support/wordpress-editor/blocks/pullquote-block/",postId:149344},"core/preformatted":{link:"https://wordpress.com/support/wordpress-editor/blocks/preformatted-block/",postId:149339},"core/more":{link:"https://wordpress.com/support/wordpress-editor/blocks/more-block/",postId:148614},"core/list":{link:"https://wordpress.com/support/wordpress-editor/blocks/list-block/",postId:148563},"core/latest-posts":{link:"https://wordpress.com/support/wordpress-editor/blocks/latest-posts-block/",postId:149818},"core/latest-comments":{link:"https://wordpress.com/support/wordpress-editor/blocks/latest-comments-block/",postId:149811},"core/heading":{link:"https://wordpress.com/support/wordpress-editor/blocks/heading-block/",postId:148403},"core/file":{link:"https://wordpress.com/support/wordpress-editor/blocks/file-block/",postId:148586},"core/embed":{link:"https://wordpress.com/support/wordpress-editor/blocks/embed-block/",postId:150644},"core/html":{link:"https://wordpress.com/support/wordpress-editor/blocks/custom-html-block/",postId:149059},"core/code":{link:"https://wordpress.com/support/wordpress-editor/blocks/code-block/",postId:149042},"core/freeform":{link:"https://wordpress.com/support/wordpress-editor/blocks/classic-block/",postId:149026},"core/categories":{link:"https://wordpress.com/support/wordpress-editor/blocks/categories-block/",postId:149793},"core/calendar":{link:"https://wordpress.com/support/wordpress-editor/blocks/calendar-block/",postId:171935},"core/audio":{link:"https://wordpress.com/support/wordpress-editor/blocks/audio-block/",postId:148670},"core/archives":{link:"https://wordpress.com/support/wordpress-editor/blocks/archives-block/",postId:149225},"core/query":{link:"https://wordpress.com/support/full-site-editing/theme-blocks/query-loop-block/",postId:184188},"core/media-text":{link:"https://wordpress.com/support/wordpress-editor/blocks/media-text-block/",postId:151100},"core/table":{link:"https://wordpress.com/support/wordpress-editor/blocks/table-block/",postId:149666},"core/social-links":{link:"https://wordpress.com/support/wordpress-editor/blocks/social-links-block/",postId:159466},"core/columns":{link:"https://wordpress.com/support/wordpress-editor/blocks/columns-block/",postId:149073},"core/image":{link:"https://wordpress.com/support/wordpress-editor/blocks/image-block/",postId:148378},"core/cover":{link:"https://wordpress.com/support/wordpress-editor/blocks/cover-block/",postId:148675},"core/buttons":{link:"https://wordpress.com/support/wordpress-editor/blocks/buttons-block/",postId:162116},"core/gallery":{link:"https://wordpress.com/support/wordpress-editor/blocks/gallery-block/",postId:148667},"core/post-content":{link:"https://wordpress.com/support/full-site-editing/theme-blocks/post-content-block/",postId:216265},"core/table-of-contents":{link:"https://wordpress.com/support/wordpress-editor/table-of-contents-block/",postId:201571},"core/comments":{link:"https://wordpress.com/support/full-site-editing/theme-blocks/comments-block/",postId:218903},"core/post-time-to-read":{link:"https://wordpress.com/support/site-editing/theme-blocks/time-to-read-block",postId:243241},"syntaxhighlighter/code":{link:"https://wordpress.com/support/wordpress-editor/blocks/syntax-highlighter-code-block/",postId:4743},"crowdsignal-forms/vote":{link:"https://wordpress.com/support/wordpress-editor/blocks/vote-block/",postId:174824},"crowdsignal-forms/poll":{link:"https://wordpress.com/support/wordpress-editor/blocks/poll-block/",postId:170183},"crowdsignal-forms/nps":{link:"https://wordpress.com/support/wordpress-editor/blocks/measure-nps-block/",postId:182393},"crowdsignal-forms/feedback":{link:"https://wordpress.com/support/wordpress-editor/blocks/feedback-button-block/",postId:183578},"a8c/posts-carousel":{link:"https://wordpress.com/support/wordpress-editor/blocks/posts-carousel-block/",postId:166417},"premium-content/container":{link:"https://wordpress.com/support/wordpress-editor/blocks/premium-content-block/",postId:243475},"a8c/blog-posts":{link:"https://wordpress.com/support/wordpress-editor/blocks/blog-posts-block/",postId:158419},"jetpack/send-a-message":{link:"https://wordpress.com/support/wordpress-editor/blocks/whatsapp-button-block/",postId:169728},"jetpack/blogroll":{link:"https://wordpress.com/support/wordpress-editor/blocks/blogroll-block/",postId:291406},"jetpack/timeline":{link:"https://wordpress.com/support/wordpress-editor/blocks/timeline-block/",postId:158453},"jetpack/story":{link:"https://wordpress.com/support/wordpress-editor/blocks/story-block/",postId:176320},"jetpack/revue":{link:"https://wordpress.com/support/wordpress-editor/blocks/revue-block/",postId:67810},"jetpack/rating-star":{link:"https://wordpress.com/support/wordpress-editor/blocks/ratings-block/",postId:158224},"jetpack/related-posts":{link:"https://wordpress.com/support/wordpress-editor/blocks/related-posts-block/",postId:1545},"jetpack/repeat-visitor":{link:"https://wordpress.com/support/wordpress-editor/blocks/repeat-visitor-block/",postId:154471},"jetpack/podcast-player":{link:"https://wordpress.com/support/wordpress-editor/blocks/podcast-player-block/",postId:163160},"jetpack/opentable":{link:"https://wordpress.com/support/wordpress-editor/blocks/opentable-block/",postId:162208},"jetpack/map":{link:"https://wordpress.com/support/wordpress-editor/blocks/map-block/",postId:149684},"jetpack/image-compare":{link:"https://wordpress.com/support/wordpress-editor/blocks/image-compare-block/",postId:168169},"jetpack/gif":{link:"https://wordpress.com/support/wordpress-editor/blocks/gif-block/",postId:174810},"jetpack/event-countdown":{link:"https://wordpress.com/support/wordpress-editor/blocks/event-countdown-block/",postId:159246},"jetpack/donations":{link:"https://wordpress.com/support/wordpress-editor/blocks/donations/",postId:171110},"jetpack/calendly":{link:"https://wordpress.com/support/wordpress-editor/blocks/calendly-block/",postId:162199},"jetpack/business-hours":{link:"https://wordpress.com/support/wordpress-editor/blocks/business-hours-block/",postId:173136},"jetpack/wordads":{link:"https://wordpress.com/support/wordpress-editor/blocks/ad-block/",postId:190916},"jetpack/payments-intro":{link:"https://wordpress.com/support/wordpress-editor/blocks/payments/",postId:169123},"jetpack/contact-info":{link:"https://wordpress.com/support/wordpress-editor/blocks/contact-info-block/",postId:186162},"jetpack/tiled-gallery":{link:"https://wordpress.com/support/wordpress-editor/blocks/tiled-gallery-block/",postId:150746},"jetpack/slideshow":{link:"https://wordpress.com/support/wordpress-editor/blocks/slideshow-block/",postId:157055},"jetpack/subscriptions":{link:"https://wordpress.com/support/wordpress-editor/blocks/subscription-form-block/",postId:170164},"jetpack/contact-form":{link:"https://wordpress.com/support/wordpress-editor/blocks/form-block/",postId:168307},"jetpack/layout-grid":{link:"https://wordpress.com/support/wordpress-editor/blocks/layout-grid-block/",postId:160172},"jetpack/mailchimp":{link:"https://wordpress.com/support/wordpress-editor/blocks/mailchimp-block/",postId:152657},"jetpack/paywall":{link:"https://wordpress.com/support/paid-newsletters/#use-the-paywall-block",postId:168381},"jetpack/sharing-buttons":{link:"https://wordpress.com/support/wordpress-editor/blocks/sharing-buttons-block/",postId:330003},"jetpack/like":{link:"https://wordpress.com/support/likes/",postId:7294},"jetpack/subscriber-login":{link:"https://wordpress.com/support/wordpress-editor/blocks/subscriber-login-block/",postId:380451},"jetpack/blog-stats":{link:"https://wordpress.com/support/wordpress-editor/blocks/blog-stats-block/",postId:382010},"jetpack/top-posts":{link:"https://wordpress.com/support/wordpress-editor/blocks/top-posts-pages-block/",postId:381536},"jetpack/goodreads":{link:"https://wordpress.com/support/wordpress-editor/blocks/goodreads-block/",postId:382051}}},47136:(e,t,o)=>{"use strict";o.d(t,{Z:()=>d});var s=o(34369),r=o(13419),n=o(55609),i=o(9818),c=o(65736),p=o(99196),a=o.n(p);const __=c.__;function d({children:e,title:t,url:o,postId:c}){const[d,l]=(0,p.useState)(),{tracks:u}=(0,r.z$)(),h=(0,i.useDispatch)("automattic/help-center"),k=h?.setShowHelpCenter,g=h?.setShowSupportDoc;return d&&!d?.closest(".block-editor-block-inspector")?e:a().createElement(a().Fragment,null,e,a().createElement("br",null),k?a().createElement(n.Button,{onClick:()=>{k(!0),g((0,s.aq)(o),c),u.recordEvent("jetpack_mu_wpcom_block_description_support_link_click",{block:t,support_link:o})},style:{marginTop:10,height:"unset"},ref:e=>d!==e&&l(e),className:"fse-inline-support-link is-compact",variant:"link"},__("Block guide","jetpack-mu-wpcom")):a().createElement(n.ExternalLink,{onClick:()=>{u.recordEvent("jetpack_mu_wpcom_block_description_support_link_click",{block:t,support_link:o})},ref:e=>d!==e&&l(e),style:{display:"block",marginTop:10,maxWidth:"fit-content"},className:"fse-inline-support-link",href:o},__("Learn more","jetpack-mu-wpcom")))}},76354:e=>{"use strict";if(void 0==={consumer_slug:"jetpack-mu-wpcom"}){var t=new Error('Cannot find module \'{"consumer_slug":"jetpack-mu-wpcom"}\'');throw t.code="MODULE_NOT_FOUND",t}e.exports={consumer_slug:"jetpack-mu-wpcom"}},51732:e=>{"use strict";e.exports=window.JetpackScriptDataModule},99196:e=>{"use strict";e.exports=window.React},99501:e=>{"use strict";e.exports=window.ReactJSXRuntime},92819:e=>{"use strict";e.exports=window.lodash},86989:e=>{"use strict";e.exports=window.wp.apiFetch},55609:e=>{"use strict";e.exports=window.wp.components},94333:e=>{"use strict";e.exports=window.wp.compose},9818:e=>{"use strict";e.exports=window.wp.data},69307:e=>{"use strict";e.exports=window.wp.element},92694:e=>{"use strict";e.exports=window.wp.hooks},65736:e=>{"use strict";e.exports=window.wp.i18n},98817:e=>{"use strict";e.exports=window.wp.plugins},96483:e=>{"use strict";e.exports=window.wp.url},82674:e=>{function t(){return e.exports=t=Object.assign?Object.assign.bind():function(e){for(var t=1;t{var t=e&&e.__esModule?()=>e.default:()=>e;return o.d(t,{a:t}),t},o.d=(e,t)=>{for(var s in t)o.o(t,s)&&!o.o(e,s)&&Object.defineProperty(e,s,{enumerable:!0,get:t[s]})},o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{"use strict";var e=o(34369),t=o(69307),s=o(92694),r=o(99196),n=o.n(r),i=o(39765),c=o(47136);const p=(o,s,r,i)=>{const p=(0,e.aq)(r);return(0,t.createInterpolateElement)("",{InlineSupportLink:n().createElement(c.Z,{title:String(o),url:p,postId:i},s)})},a={};(0,s.addFilter)("blocks.registerBlockType","jetpack-mu-wpcom/add-block-support-link",((e,t)=>{const o=e?.parent?.toString(),s=o&&"core/post-content"!==o?o:t;if(a[t])return e;a[t]=!0;const r=i.gM[t]?.link||i.ZP[s]?.link,n=i.gM[t]?.postId||i.ZP[s]?.postId;return r&&n&&(e.description=p(String(e.title),e.description,r,n)),i.yd[t]&&e.variations&&Array.isArray(e.variations)&&(e.variations=e.variations.map((e=>{let o=i.yd[t][e.name]?.link,s=i.yd[t][e.name]?.postId;if(o||"core/embed"!==t){if(!o)return e}else o="https://wordpress.com/support/wordpress-editor/blocks/embed-block/",s=150644;return e.description=p(e.title,e.description,o,s),e}))),e}))})()})(); \ No newline at end of file diff --git a/vendor/automattic/jetpack-mu-wpcom/src/common/tour-kit/hooks/use-keydown-handler.ts b/vendor/automattic/jetpack-mu-wpcom/src/common/tour-kit/hooks/use-keydown-handler.ts index 6ea129fe..1cdf9321 100644 --- a/vendor/automattic/jetpack-mu-wpcom/src/common/tour-kit/hooks/use-keydown-handler.ts +++ b/vendor/automattic/jetpack-mu-wpcom/src/common/tour-kit/hooks/use-keydown-handler.ts @@ -20,13 +20,22 @@ const useKeydownHandler = ( { onEscape, onArrowRight, onArrowLeft }: Props ): vo switch ( event.key ) { case 'Escape': - onEscape && ( onEscape(), ( handled = true ) ); + if ( onEscape ) { + onEscape(); + handled = true; + } break; case 'ArrowRight': - onArrowRight && ( onArrowRight(), ( handled = true ) ); + if ( onArrowRight ) { + onArrowRight(); + handled = true; + } break; case 'ArrowLeft': - onArrowLeft && ( onArrowLeft(), ( handled = true ) ); + if ( onArrowLeft ) { + onArrowLeft(); + handled = true; + } break; default: break; diff --git a/vendor/automattic/jetpack-mu-wpcom/src/features/custom-css/custom-css/js/core-customizer-css-preview.js b/vendor/automattic/jetpack-mu-wpcom/src/features/custom-css/custom-css/js/core-customizer-css-preview.js index 51bf49d7..b4b702e3 100644 --- a/vendor/automattic/jetpack-mu-wpcom/src/features/custom-css/custom-css/js/core-customizer-css-preview.js +++ b/vendor/automattic/jetpack-mu-wpcom/src/features/custom-css/custom-css/js/core-customizer-css-preview.js @@ -20,7 +20,7 @@ // Sass or Less require Partial -- so ajax call to get it from PHP. // We can explicitly override for specific providers by testing if `'sass' === preprocessor` - if ( jpCustomizerCssPreview.preprocessors.hasOwnProperty( preprocessor ) ) { + if ( Object.hasOwn( jpCustomizerCssPreview.preprocessors, preprocessor ) ) { return api.selectiveRefresh.Partial.prototype.refresh.call( partial ); } diff --git a/vendor/automattic/jetpack-plans/composer.json b/vendor/automattic/jetpack-plans/composer.json index b233b663..d8ddfccf 100644 --- a/vendor/automattic/jetpack-plans/composer.json +++ b/vendor/automattic/jetpack-plans/composer.json @@ -5,7 +5,7 @@ "license": "GPL-2.0-or-later", "require": { "php": ">=7.0", - "automattic/jetpack-connection": "^2.12.4" + "automattic/jetpack-connection": "^2.12.5-alpha" }, "require-dev": { "yoast/phpunit-polyfills": "^1.1.1", diff --git a/vendor/automattic/jetpack-stats-admin/composer.json b/vendor/automattic/jetpack-stats-admin/composer.json index 958adc6a..06f2d621 100644 --- a/vendor/automattic/jetpack-stats-admin/composer.json +++ b/vendor/automattic/jetpack-stats-admin/composer.json @@ -5,7 +5,7 @@ "license": "GPL-2.0-or-later", "require": { "php": ">=7.0", - "automattic/jetpack-connection": "^2.12.4", + "automattic/jetpack-connection": "^2.12.5-alpha", "automattic/jetpack-constants": "^2.0.4", "automattic/jetpack-plans": "^0.4.8", "automattic/jetpack-stats": "^0.13.1", diff --git a/vendor/automattic/jetpack-stats/composer.json b/vendor/automattic/jetpack-stats/composer.json index c42cf14e..e18457e3 100644 --- a/vendor/automattic/jetpack-stats/composer.json +++ b/vendor/automattic/jetpack-stats/composer.json @@ -5,7 +5,7 @@ "license": "GPL-2.0-or-later", "require": { "php": ">=7.0", - "automattic/jetpack-connection": "^2.12.4", + "automattic/jetpack-connection": "^2.12.5-alpha", "automattic/jetpack-constants": "^2.0.4", "automattic/jetpack-status": "^3.3.4" }, diff --git a/vendor/automattic/jetpack-sync/composer.json b/vendor/automattic/jetpack-sync/composer.json index 7149e249..0a121dce 100644 --- a/vendor/automattic/jetpack-sync/composer.json +++ b/vendor/automattic/jetpack-sync/composer.json @@ -5,7 +5,7 @@ "license": "GPL-2.0-or-later", "require": { "php": ">=7.0", - "automattic/jetpack-connection": "^2.12.4", + "automattic/jetpack-connection": "^2.12.5-alpha", "automattic/jetpack-constants": "^2.0.4", "automattic/jetpack-password-checker": "^0.3.2", "automattic/jetpack-ip": "^0.2.3", diff --git a/vendor/automattic/scheduled-updates/composer.json b/vendor/automattic/scheduled-updates/composer.json index 56d30485..c61b5a68 100644 --- a/vendor/automattic/scheduled-updates/composer.json +++ b/vendor/automattic/scheduled-updates/composer.json @@ -9,7 +9,7 @@ "automattic/jetpack-sync": "^3.8.0", "automattic/jetpack-plans": "^0.4.8", "automattic/jetpack-constants": "^2.0.4", - "automattic/jetpack-connection": "^2.12.4" + "automattic/jetpack-connection": "^2.12.5-alpha" }, "require-dev": { "yoast/phpunit-polyfills": "^1.1.1", diff --git a/vendor/composer/installed.json b/vendor/composer/installed.json index 8ca04a4a..0cd51c4c 100644 --- a/vendor/composer/installed.json +++ b/vendor/composer/installed.json @@ -7,7 +7,7 @@ "dist": { "type": "path", "url": "/tmp/jetpack-build/Automattic/jetpack-a8c-mc-stats", - "reference": "3380c351303c3db5833e5cdd49428a952bf5c175" + "reference": "0d34e5dcc7276e1afa067a64d2e31fdf6b262570" }, "require": { "php": ">=7.0" @@ -60,7 +60,7 @@ "dist": { "type": "path", "url": "/tmp/jetpack-build/Automattic/jetpack-admin-ui", - "reference": "0b275a1fc9ad0224fa6703166b4ebeba1e19d98a" + "reference": "5672a93ce9978f4a0a5f5ae5749815f1d225262e" }, "require": { "php": ">=7.0" @@ -125,7 +125,7 @@ "dist": { "type": "path", "url": "/tmp/jetpack-build/Automattic/jetpack-assets", - "reference": "6afa4b8a047e483078bc103b2a54f53d653cf2d1" + "reference": "be62a986fcadcf7b40c4c83fbd1acfc1752098ae" }, "require": { "automattic/jetpack-constants": "^2.0.4", @@ -194,11 +194,11 @@ "dist": { "type": "path", "url": "/tmp/jetpack-build/Automattic/jetpack-blaze", - "reference": "c067051bdb976b1fa83541166631b9f561932643" + "reference": "af18535b0ebffc693376ba2c46b095df7cebd2dd" }, "require": { "automattic/jetpack-assets": "^2.3.4", - "automattic/jetpack-connection": "^2.12.4", + "automattic/jetpack-connection": "^2.12.5-alpha", "automattic/jetpack-constants": "^2.0.4", "automattic/jetpack-plans": "^0.4.8", "automattic/jetpack-redirect": "^2.0.3", @@ -275,7 +275,7 @@ "dist": { "type": "path", "url": "/tmp/jetpack-build/Automattic/jetpack-blocks", - "reference": "58b0d5310f36e12f5a41a21c0720a4aa26e571d3" + "reference": "267226d6f5fde8a444fd45c3747eb5526399e679" }, "require": { "automattic/jetpack-constants": "^2.0.4", @@ -337,7 +337,7 @@ "dist": { "type": "path", "url": "/tmp/jetpack-build/Automattic/jetpack-calypsoify", - "reference": "024032ab100054a142df20c1c2e703180fbb433d" + "reference": "8b3184334c5ac220059f72213777192efa6f2655" }, "require": { "automattic/jetpack-assets": "^2.3.4", @@ -402,7 +402,7 @@ "dist": { "type": "path", "url": "/tmp/jetpack-build/Automattic/jetpack-classic-theme-helper", - "reference": "77cfb9cab63a478c5a3b613fb0a13ed7647ab1fb" + "reference": "26eeb0ad2f990a38369280ae11c9fa939be62f78" }, "require": { "automattic/jetpack-assets": "^2.3.4", @@ -473,7 +473,7 @@ "dist": { "type": "path", "url": "/tmp/jetpack-build/Automattic/jetpack-compat", - "reference": "0c27edb99013ca9e5ed6bb6b51edf67eae94c14e" + "reference": "0d119fef09aac5ce6ccf97c544503bea3d456690" }, "require": { "php": ">=7.0" @@ -508,12 +508,12 @@ }, { "name": "automattic/jetpack-connection", - "version": "2.12.4", - "version_normalized": "2.12.4.0", + "version": "2.12.5-alpha.1724783147", + "version_normalized": "2.12.5.0-alpha1724783147", "dist": { "type": "path", "url": "/tmp/jetpack-build/Automattic/jetpack-connection", - "reference": "dc31b3daf0e3930df172933865f84b8dda41018c" + "reference": "5d8de61bc0621c163995c16edc81e57827d33733" }, "require": { "automattic/jetpack-a8c-mc-stats": "^2.0.2", @@ -600,7 +600,7 @@ "dist": { "type": "path", "url": "/tmp/jetpack-build/Automattic/jetpack-constants", - "reference": "49c5d33878cf4ad4d3305ec21bddc52972e2dc0e" + "reference": "0f4694077854d23c772f6d22e2d5cc8c429753c5" }, "require": { "php": ">=7.0" @@ -654,7 +654,7 @@ "dist": { "type": "path", "url": "/tmp/jetpack-build/Automattic/jetpack-device-detection", - "reference": "3e5ac2c418e4207dda0642f9d76bdbb8b9261e23" + "reference": "1cc6c37ca460721b0cc5ff82e47d75eaf1028b9f" }, "require": { "php": ">=7.0" @@ -707,7 +707,7 @@ "dist": { "type": "path", "url": "/tmp/jetpack-build/Automattic/jetpack-google-analytics", - "reference": "d0bf092657360c85876cb8ddab2ab9adf1b2d846" + "reference": "d68585ce254652ea8d3aca325c09b046b40c8233" }, "require": { "automattic/jetpack-status": "^3.3.4", @@ -778,7 +778,7 @@ "dist": { "type": "path", "url": "/tmp/jetpack-build/Automattic/jetpack-ip", - "reference": "06aca400600c4aa95fa798ecdbae5a65b131530d" + "reference": "f58b7d469bfffee0e5146fb1e6a36a9a8390213b" }, "require": { "php": ">=7.0" @@ -836,12 +836,12 @@ "dist": { "type": "path", "url": "/tmp/jetpack-build/Automattic/jetpack-jitm", - "reference": "ce7937f00d20da1e3ee9e60a77d55e8055e3e749" + "reference": "31e180c25f473ef0e9fd22d3867977123c240270" }, "require": { "automattic/jetpack-a8c-mc-stats": "^2.0.2", "automattic/jetpack-assets": "^2.3.4", - "automattic/jetpack-connection": "^2.12.4", + "automattic/jetpack-connection": "^2.12.5-alpha", "automattic/jetpack-device-detection": "^2.1.4", "automattic/jetpack-logo": "^2.0.4", "automattic/jetpack-redirect": "^2.0.3", @@ -911,7 +911,7 @@ "dist": { "type": "path", "url": "/tmp/jetpack-build/Automattic/jetpack-logo", - "reference": "7e15a68db294ad8d541b83fb5149da2dd1d04e50" + "reference": "b99f6c72d784f9b43e9b27612910cae7d58c67ea" }, "require": { "php": ">=7.0" @@ -964,13 +964,13 @@ "dist": { "type": "path", "url": "/tmp/jetpack-build/Automattic/jetpack-masterbar", - "reference": "9075a83a72d359f2ad71e7e42191ef6245a25c1a" + "reference": "034543710e35b08173164b92291a71e783d0febc" }, "require": { "automattic/jetpack-assets": "^2.3.4", "automattic/jetpack-blaze": "^0.22.7", "automattic/jetpack-compat": "^3.0.2", - "automattic/jetpack-connection": "^2.12.4", + "automattic/jetpack-connection": "^2.12.5-alpha", "automattic/jetpack-device-detection": "^2.1.4", "automattic/jetpack-jitm": "^3.1.18", "automattic/jetpack-logo": "^2.0.4", @@ -1041,12 +1041,12 @@ }, { "name": "automattic/jetpack-mu-wpcom", - "version": "5.59.1-alpha.1724777867", - "version_normalized": "5.59.1.0-alpha1724777867", + "version": "5.59.1-alpha.1724783147", + "version_normalized": "5.59.1.0-alpha1724783147", "dist": { "type": "path", "url": "/tmp/jetpack-build/Automattic/jetpack-mu-wpcom", - "reference": "e72874b8cf0053f5a33170ff20867ea2d1b07d0d" + "reference": "6415314741e1ca7d53462adfb92b528a2ef1eb0d" }, "require": { "automattic/jetpack-assets": "^2.3.4", @@ -1054,7 +1054,7 @@ "automattic/jetpack-calypsoify": "^0.1.4", "automattic/jetpack-classic-theme-helper": "^0.5.3", "automattic/jetpack-compat": "^3.0.2", - "automattic/jetpack-connection": "^2.12.4", + "automattic/jetpack-connection": "^2.12.5-alpha", "automattic/jetpack-google-analytics": "^0.2.3", "automattic/jetpack-masterbar": "^0.8.1-alpha", "automattic/jetpack-redirect": "^2.0.3", @@ -1129,7 +1129,7 @@ "dist": { "type": "path", "url": "/tmp/jetpack-build/Automattic/jetpack-password-checker", - "reference": "e27236191722f88c795e84507efa7ea6e4ec7141" + "reference": "7e3608cc47bf57e3f787a07ee69ecb8fc5f2478f" }, "require": { "php": ">=7.0" @@ -1190,10 +1190,10 @@ "dist": { "type": "path", "url": "/tmp/jetpack-build/Automattic/jetpack-plans", - "reference": "023098091e6b1edddfefa3b67fa3c6cf610b9584" + "reference": "e5412f6c3d12788a64f50cc6939927be282b26bd" }, "require": { - "automattic/jetpack-connection": "^2.12.4", + "automattic/jetpack-connection": "^2.12.5-alpha", "php": ">=7.0" }, "require-dev": { @@ -1258,7 +1258,7 @@ "dist": { "type": "path", "url": "/tmp/jetpack-build/Automattic/jetpack-redirect", - "reference": "b942c9a81c649c5544dbf5e6ab721cf4796eb55c" + "reference": "8f2220ce162e0600a24c56bd2d026018c77979f9" }, "require": { "automattic/jetpack-status": "^3.3.4", @@ -1313,7 +1313,7 @@ "dist": { "type": "path", "url": "/tmp/jetpack-build/Automattic/jetpack-roles", - "reference": "dc012bb7119dc0ed87d4c2bbb67f60774a6344bb" + "reference": "fb2f104bac2703709a2f60ca6e3873e2a4472328" }, "require": { "php": ">=7.0" @@ -1367,10 +1367,10 @@ "dist": { "type": "path", "url": "/tmp/jetpack-build/Automattic/jetpack-stats", - "reference": "5a6500e1feda07abd76dd44d5cd5e2db4d21f1d5" + "reference": "8387e374754ac6e24c282f4fdc8c4bea7644bf04" }, "require": { - "automattic/jetpack-connection": "^2.12.4", + "automattic/jetpack-connection": "^2.12.5-alpha", "automattic/jetpack-constants": "^2.0.4", "automattic/jetpack-status": "^3.3.4", "php": ">=7.0" @@ -1434,10 +1434,10 @@ "dist": { "type": "path", "url": "/tmp/jetpack-build/Automattic/jetpack-stats-admin", - "reference": "19e93095fadf9eb7801491863d47ffdfe60073d4" + "reference": "b3edc8ff10fddcbd5081b8c8483348474f1c10c7" }, "require": { - "automattic/jetpack-connection": "^2.12.4", + "automattic/jetpack-connection": "^2.12.5-alpha", "automattic/jetpack-constants": "^2.0.4", "automattic/jetpack-jitm": "^3.1.18", "automattic/jetpack-plans": "^0.4.8", @@ -1507,7 +1507,7 @@ "dist": { "type": "path", "url": "/tmp/jetpack-build/Automattic/jetpack-status", - "reference": "9f7580c78a9a62db753dca85436d058150b596d1" + "reference": "4320ad504fd702b748340ab909c565e123781243" }, "require": { "automattic/jetpack-constants": "^2.0.4", @@ -1571,10 +1571,10 @@ "dist": { "type": "path", "url": "/tmp/jetpack-build/Automattic/jetpack-sync", - "reference": "3f082c310a881c791bd3ae97d188ec2fd7132ada" + "reference": "922810c9ade66ebde6c6d25e9d2fc2603738ca21" }, "require": { - "automattic/jetpack-connection": "^2.12.4", + "automattic/jetpack-connection": "^2.12.5-alpha", "automattic/jetpack-constants": "^2.0.4", "automattic/jetpack-ip": "^0.2.3", "automattic/jetpack-password-checker": "^0.3.2", @@ -1649,10 +1649,10 @@ "dist": { "type": "path", "url": "/tmp/jetpack-build/Automattic/scheduled-updates", - "reference": "b8e8820cf35b16571b26eb816ec80bf713d4eee4" + "reference": "75e50ae40744f06c4d7d4389e19dfb0a55a18977" }, "require": { - "automattic/jetpack-connection": "^2.12.4", + "automattic/jetpack-connection": "^2.12.5-alpha", "automattic/jetpack-constants": "^2.0.4", "automattic/jetpack-plans": "^0.4.8", "automattic/jetpack-status": "^3.3.4", diff --git a/vendor/composer/installed.php b/vendor/composer/installed.php index 6bf18ea3..bf0176fb 100644 --- a/vendor/composer/installed.php +++ b/vendor/composer/installed.php @@ -13,7 +13,7 @@ 'automattic/jetpack-a8c-mc-stats' => array( 'pretty_version' => '2.0.2', 'version' => '2.0.2.0', - 'reference' => '3380c351303c3db5833e5cdd49428a952bf5c175', + 'reference' => '0d34e5dcc7276e1afa067a64d2e31fdf6b262570', 'type' => 'jetpack-library', 'install_path' => __DIR__ . '/../automattic/jetpack-a8c-mc-stats', 'aliases' => array(), @@ -22,7 +22,7 @@ 'automattic/jetpack-admin-ui' => array( 'pretty_version' => '0.4.3', 'version' => '0.4.3.0', - 'reference' => '0b275a1fc9ad0224fa6703166b4ebeba1e19d98a', + 'reference' => '5672a93ce9978f4a0a5f5ae5749815f1d225262e', 'type' => 'jetpack-library', 'install_path' => __DIR__ . '/../automattic/jetpack-admin-ui', 'aliases' => array(), @@ -31,7 +31,7 @@ 'automattic/jetpack-assets' => array( 'pretty_version' => '2.3.4', 'version' => '2.3.4.0', - 'reference' => '6afa4b8a047e483078bc103b2a54f53d653cf2d1', + 'reference' => 'be62a986fcadcf7b40c4c83fbd1acfc1752098ae', 'type' => 'jetpack-library', 'install_path' => __DIR__ . '/../automattic/jetpack-assets', 'aliases' => array(), @@ -40,7 +40,7 @@ 'automattic/jetpack-blaze' => array( 'pretty_version' => '0.22.7', 'version' => '0.22.7.0', - 'reference' => 'c067051bdb976b1fa83541166631b9f561932643', + 'reference' => 'af18535b0ebffc693376ba2c46b095df7cebd2dd', 'type' => 'jetpack-library', 'install_path' => __DIR__ . '/../automattic/jetpack-blaze', 'aliases' => array(), @@ -49,7 +49,7 @@ 'automattic/jetpack-blocks' => array( 'pretty_version' => '2.0.5', 'version' => '2.0.5.0', - 'reference' => '58b0d5310f36e12f5a41a21c0720a4aa26e571d3', + 'reference' => '267226d6f5fde8a444fd45c3747eb5526399e679', 'type' => 'jetpack-library', 'install_path' => __DIR__ . '/../automattic/jetpack-blocks', 'aliases' => array(), @@ -58,7 +58,7 @@ 'automattic/jetpack-calypsoify' => array( 'pretty_version' => '0.1.4', 'version' => '0.1.4.0', - 'reference' => '024032ab100054a142df20c1c2e703180fbb433d', + 'reference' => '8b3184334c5ac220059f72213777192efa6f2655', 'type' => 'jetpack-library', 'install_path' => __DIR__ . '/../automattic/jetpack-calypsoify', 'aliases' => array(), @@ -67,7 +67,7 @@ 'automattic/jetpack-classic-theme-helper' => array( 'pretty_version' => '0.5.3', 'version' => '0.5.3.0', - 'reference' => '77cfb9cab63a478c5a3b613fb0a13ed7647ab1fb', + 'reference' => '26eeb0ad2f990a38369280ae11c9fa939be62f78', 'type' => 'jetpack-library', 'install_path' => __DIR__ . '/../automattic/jetpack-classic-theme-helper', 'aliases' => array(), @@ -76,16 +76,16 @@ 'automattic/jetpack-compat' => array( 'pretty_version' => '3.0.2', 'version' => '3.0.2.0', - 'reference' => '0c27edb99013ca9e5ed6bb6b51edf67eae94c14e', + 'reference' => '0d119fef09aac5ce6ccf97c544503bea3d456690', 'type' => 'jetpack-library', 'install_path' => __DIR__ . '/../automattic/jetpack-compat', 'aliases' => array(), 'dev_requirement' => false, ), 'automattic/jetpack-connection' => array( - 'pretty_version' => '2.12.4', - 'version' => '2.12.4.0', - 'reference' => 'dc31b3daf0e3930df172933865f84b8dda41018c', + 'pretty_version' => '2.12.5-alpha.1724783147', + 'version' => '2.12.5.0-alpha1724783147', + 'reference' => '5d8de61bc0621c163995c16edc81e57827d33733', 'type' => 'jetpack-library', 'install_path' => __DIR__ . '/../automattic/jetpack-connection', 'aliases' => array(), @@ -94,7 +94,7 @@ 'automattic/jetpack-constants' => array( 'pretty_version' => '2.0.4', 'version' => '2.0.4.0', - 'reference' => '49c5d33878cf4ad4d3305ec21bddc52972e2dc0e', + 'reference' => '0f4694077854d23c772f6d22e2d5cc8c429753c5', 'type' => 'jetpack-library', 'install_path' => __DIR__ . '/../automattic/jetpack-constants', 'aliases' => array(), @@ -103,7 +103,7 @@ 'automattic/jetpack-device-detection' => array( 'pretty_version' => '2.1.4', 'version' => '2.1.4.0', - 'reference' => '3e5ac2c418e4207dda0642f9d76bdbb8b9261e23', + 'reference' => '1cc6c37ca460721b0cc5ff82e47d75eaf1028b9f', 'type' => 'jetpack-library', 'install_path' => __DIR__ . '/../automattic/jetpack-device-detection', 'aliases' => array(), @@ -112,7 +112,7 @@ 'automattic/jetpack-google-analytics' => array( 'pretty_version' => '0.2.3', 'version' => '0.2.3.0', - 'reference' => 'd0bf092657360c85876cb8ddab2ab9adf1b2d846', + 'reference' => 'd68585ce254652ea8d3aca325c09b046b40c8233', 'type' => 'jetpack-library', 'install_path' => __DIR__ . '/../automattic/jetpack-google-analytics', 'aliases' => array(), @@ -121,7 +121,7 @@ 'automattic/jetpack-ip' => array( 'pretty_version' => '0.2.3', 'version' => '0.2.3.0', - 'reference' => '06aca400600c4aa95fa798ecdbae5a65b131530d', + 'reference' => 'f58b7d469bfffee0e5146fb1e6a36a9a8390213b', 'type' => 'jetpack-library', 'install_path' => __DIR__ . '/../automattic/jetpack-ip', 'aliases' => array(), @@ -130,7 +130,7 @@ 'automattic/jetpack-jitm' => array( 'pretty_version' => '3.1.18', 'version' => '3.1.18.0', - 'reference' => 'ce7937f00d20da1e3ee9e60a77d55e8055e3e749', + 'reference' => '31e180c25f473ef0e9fd22d3867977123c240270', 'type' => 'jetpack-library', 'install_path' => __DIR__ . '/../automattic/jetpack-jitm', 'aliases' => array(), @@ -139,7 +139,7 @@ 'automattic/jetpack-logo' => array( 'pretty_version' => '2.0.4', 'version' => '2.0.4.0', - 'reference' => '7e15a68db294ad8d541b83fb5149da2dd1d04e50', + 'reference' => 'b99f6c72d784f9b43e9b27612910cae7d58c67ea', 'type' => 'jetpack-library', 'install_path' => __DIR__ . '/../automattic/jetpack-logo', 'aliases' => array(), @@ -148,16 +148,16 @@ 'automattic/jetpack-masterbar' => array( 'pretty_version' => '0.8.1-alpha.1724777867', 'version' => '0.8.1.0-alpha1724777867', - 'reference' => '9075a83a72d359f2ad71e7e42191ef6245a25c1a', + 'reference' => '034543710e35b08173164b92291a71e783d0febc', 'type' => 'jetpack-library', 'install_path' => __DIR__ . '/../automattic/jetpack-masterbar', 'aliases' => array(), 'dev_requirement' => false, ), 'automattic/jetpack-mu-wpcom' => array( - 'pretty_version' => '5.59.1-alpha.1724777867', - 'version' => '5.59.1.0-alpha1724777867', - 'reference' => 'e72874b8cf0053f5a33170ff20867ea2d1b07d0d', + 'pretty_version' => '5.59.1-alpha.1724783147', + 'version' => '5.59.1.0-alpha1724783147', + 'reference' => '6415314741e1ca7d53462adfb92b528a2ef1eb0d', 'type' => 'jetpack-library', 'install_path' => __DIR__ . '/../automattic/jetpack-mu-wpcom', 'aliases' => array(), @@ -175,7 +175,7 @@ 'automattic/jetpack-password-checker' => array( 'pretty_version' => '0.3.2', 'version' => '0.3.2.0', - 'reference' => 'e27236191722f88c795e84507efa7ea6e4ec7141', + 'reference' => '7e3608cc47bf57e3f787a07ee69ecb8fc5f2478f', 'type' => 'jetpack-library', 'install_path' => __DIR__ . '/../automattic/jetpack-password-checker', 'aliases' => array(), @@ -184,7 +184,7 @@ 'automattic/jetpack-plans' => array( 'pretty_version' => '0.4.8', 'version' => '0.4.8.0', - 'reference' => '023098091e6b1edddfefa3b67fa3c6cf610b9584', + 'reference' => 'e5412f6c3d12788a64f50cc6939927be282b26bd', 'type' => 'library', 'install_path' => __DIR__ . '/../automattic/jetpack-plans', 'aliases' => array(), @@ -193,7 +193,7 @@ 'automattic/jetpack-redirect' => array( 'pretty_version' => '2.0.3', 'version' => '2.0.3.0', - 'reference' => 'b942c9a81c649c5544dbf5e6ab721cf4796eb55c', + 'reference' => '8f2220ce162e0600a24c56bd2d026018c77979f9', 'type' => 'jetpack-library', 'install_path' => __DIR__ . '/../automattic/jetpack-redirect', 'aliases' => array(), @@ -202,7 +202,7 @@ 'automattic/jetpack-roles' => array( 'pretty_version' => '2.0.3', 'version' => '2.0.3.0', - 'reference' => 'dc012bb7119dc0ed87d4c2bbb67f60774a6344bb', + 'reference' => 'fb2f104bac2703709a2f60ca6e3873e2a4472328', 'type' => 'jetpack-library', 'install_path' => __DIR__ . '/../automattic/jetpack-roles', 'aliases' => array(), @@ -211,7 +211,7 @@ 'automattic/jetpack-stats' => array( 'pretty_version' => '0.13.1', 'version' => '0.13.1.0', - 'reference' => '5a6500e1feda07abd76dd44d5cd5e2db4d21f1d5', + 'reference' => '8387e374754ac6e24c282f4fdc8c4bea7644bf04', 'type' => 'jetpack-library', 'install_path' => __DIR__ . '/../automattic/jetpack-stats', 'aliases' => array(), @@ -220,7 +220,7 @@ 'automattic/jetpack-stats-admin' => array( 'pretty_version' => '0.21.1', 'version' => '0.21.1.0', - 'reference' => '19e93095fadf9eb7801491863d47ffdfe60073d4', + 'reference' => 'b3edc8ff10fddcbd5081b8c8483348474f1c10c7', 'type' => 'jetpack-library', 'install_path' => __DIR__ . '/../automattic/jetpack-stats-admin', 'aliases' => array(), @@ -229,7 +229,7 @@ 'automattic/jetpack-status' => array( 'pretty_version' => '3.3.4', 'version' => '3.3.4.0', - 'reference' => '9f7580c78a9a62db753dca85436d058150b596d1', + 'reference' => '4320ad504fd702b748340ab909c565e123781243', 'type' => 'jetpack-library', 'install_path' => __DIR__ . '/../automattic/jetpack-status', 'aliases' => array(), @@ -238,7 +238,7 @@ 'automattic/jetpack-sync' => array( 'pretty_version' => '3.8.0', 'version' => '3.8.0.0', - 'reference' => '3f082c310a881c791bd3ae97d188ec2fd7132ada', + 'reference' => '922810c9ade66ebde6c6d25e9d2fc2603738ca21', 'type' => 'jetpack-library', 'install_path' => __DIR__ . '/../automattic/jetpack-sync', 'aliases' => array(), @@ -247,7 +247,7 @@ 'automattic/scheduled-updates' => array( 'pretty_version' => '0.13.2', 'version' => '0.13.2.0', - 'reference' => 'b8e8820cf35b16571b26eb816ec80bf713d4eee4', + 'reference' => '75e50ae40744f06c4d7d4389e19dfb0a55a18977', 'type' => 'jetpack-library', 'install_path' => __DIR__ . '/../automattic/scheduled-updates', 'aliases' => array(),