Full Site Editing - Version 3.11512

Version Description

Download this release

Release Info

Developer chriskmnds
Plugin Icon wp plugin Full Site Editing
Version 3.11512
Comparing to
See all releases

Code changes from version 3.11164 to 3.11512

common/dist/data-stores.asset.php CHANGED
@@ -1 +1 @@
1
- <?php return array('dependencies' => array('react', 'wp-compose', 'wp-data', 'wp-data-controls', 'wp-deprecated', 'wp-element', 'wp-polyfill'), 'version' => '8d6ab3ca12a3ffa4c569e0ee25df70c1');
1
+ <?php return array('dependencies' => array('react', 'wp-compose', 'wp-data', 'wp-data-controls', 'wp-deprecated', 'wp-element', 'wp-polyfill'), 'version' => '309f241da2a2f2aff61bc381d343d328');
editor-site-launch/dist/focused-launch.asset.php CHANGED
@@ -1 +1 @@
1
- <?php return array('dependencies' => array('a8c-fse-common-data-stores', 'lodash', 'react', 'wp-components', 'wp-compose', 'wp-data', 'wp-data-controls', 'wp-deprecated', 'wp-element', 'wp-hooks', 'wp-i18n', 'wp-plugins', 'wp-polyfill', 'wp-primitives', 'wp-react-i18n', 'wp-url'), 'version' => '602d7545c6535e8ea5373b3084150a0a');
1
+ <?php return array('dependencies' => array('a8c-fse-common-data-stores', 'lodash', 'react', 'wp-components', 'wp-compose', 'wp-data', 'wp-data-controls', 'wp-deprecated', 'wp-element', 'wp-hooks', 'wp-i18n', 'wp-plugins', 'wp-polyfill', 'wp-primitives', 'wp-react-i18n', 'wp-url'), 'version' => 'dd7a3dbf7bced368736fe94a16abef54');
editor-site-launch/dist/gutenboarding-launch.asset.php CHANGED
@@ -1 +1 @@
1
- <?php return array('dependencies' => array('a8c-fse-common-data-stores', 'lodash', 'react', 'wp-components', 'wp-compose', 'wp-data', 'wp-data-controls', 'wp-deprecated', 'wp-element', 'wp-hooks', 'wp-i18n', 'wp-plugins', 'wp-polyfill', 'wp-primitives', 'wp-react-i18n', 'wp-url'), 'version' => '120e2d923a518b810978a280b4d0c1a0');
1
+ <?php return array('dependencies' => array('a8c-fse-common-data-stores', 'lodash', 'react', 'wp-components', 'wp-compose', 'wp-data', 'wp-data-controls', 'wp-deprecated', 'wp-element', 'wp-hooks', 'wp-i18n', 'wp-plugins', 'wp-polyfill', 'wp-primitives', 'wp-react-i18n', 'wp-url'), 'version' => 'a746dbcab0c40a1ebdc802ccd8e7c200');
full-site-editing-plugin.php CHANGED
@@ -2,7 +2,7 @@
2
  /**
3
  * Plugin Name: WordPress.com Editing Toolkit
4
  * Description: Enhances your page creation workflow within the Block Editor.
5
- * Version: 3.11164
6
  * Author: Automattic
7
  * Author URI: https://automattic.com/wordpress-plugins/
8
  * License: GPLv2 or later
@@ -42,7 +42,7 @@ namespace A8C\FSE;
42
  *
43
  * @var string
44
  */
45
- define( 'A8C_ETK_PLUGIN_VERSION', '3.11164' );
46
 
47
  // Always include these helper files for dotcom FSE.
48
  require_once __DIR__ . '/dotcom-fse/helpers.php';
2
  /**
3
  * Plugin Name: WordPress.com Editing Toolkit
4
  * Description: Enhances your page creation workflow within the Block Editor.
5
+ * Version: 3.11512
6
  * Author: Automattic
7
  * Author URI: https://automattic.com/wordpress-plugins/
8
  * License: GPLv2 or later
42
  *
43
  * @var string
44
  */
45
+ define( 'A8C_ETK_PLUGIN_VERSION', '3.11512' );
46
 
47
  // Always include these helper files for dotcom FSE.
48
  require_once __DIR__ . '/dotcom-fse/helpers.php';
readme.txt CHANGED
@@ -3,7 +3,7 @@ Contributors: automattic
3
  Tags: block, blocks, editor, gutenberg, page
4
  Requires at least: 5.5
5
  Tested up to: 5.6
6
- Stable tag: 3.11164
7
  Requires PHP: 5.6.20
8
  License: GPLv2 or later
9
  License URI: https://www.gnu.org/licenses/gpl-2.0.html
3
  Tags: block, blocks, editor, gutenberg, page
4
  Requires at least: 5.5
5
  Tested up to: 5.6
6
+ Stable tag: 3.11512
7
  Requires PHP: 5.6.20
8
  License: GPLv2 or later
9
  License URI: https://www.gnu.org/licenses/gpl-2.0.html
whats-new/dist/whats-new.asset.php CHANGED
@@ -1 +1 @@
1
- <?php return array('dependencies' => array('lodash', 'react', 'wp-components', 'wp-compose', 'wp-data', 'wp-element', 'wp-i18n', 'wp-plugins', 'wp-polyfill', 'wp-react-i18n'), 'version' => '5fc7b20e4f4b6517a7a8d0dfbd61db52');
1
+ <?php return array('dependencies' => array('lodash', 'react', 'wp-components', 'wp-compose', 'wp-data', 'wp-element', 'wp-i18n', 'wp-plugins', 'wp-polyfill', 'wp-react-i18n'), 'version' => '210718d4c8fd1dfa352670b93a612ab5');
whats-new/dist/whats-new.js CHANGED
@@ -1 +1 @@
1
- !function(){var t={5270:function(t){t.exports=function(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r},t.exports.default=t.exports,t.exports.__esModule=!0},1232:function(t,e,n){var r=n(5270);t.exports=function(t){if(Array.isArray(t))return r(t)},t.exports.default=t.exports,t.exports.__esModule=!0},1357:function(t,e,n){"use strict";function r(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}n.d(e,{Z:function(){return r}})},9507:function(t,e,n){"use strict";function r(t){if(Array.isArray(t))return t}n.d(e,{Z:function(){return r}})},4659:function(t,e,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}n.d(e,{Z:function(){return r}})},4730:function(t,e,n){"use strict";function r(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function i(t,e,n){return e&&r(t.prototype,e),n&&r(t,n),t}n.d(e,{Z:function(){return i}})},1119:function(t,e,n){"use strict";function r(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}n.d(e,{Z:function(){return r}})},7560:function(t,e,n){"use strict";function r(){return(r=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t}).apply(this,arguments)}n.d(e,{Z:function(){return r}})},6483:function(t,e,n){"use strict";function r(t,e){var n=t&&("undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"]);if(null!=n){var r,i,o=[],_n=!0,s=!1;try{for(n=n.call(t);!(_n=(r=n.next()).done)&&(o.push(r.value),!e||o.length!==e);_n=!0);}catch(u){s=!0,i=u}finally{try{_n||null==n.return||n.return()}finally{if(s)throw i}}return o}}n.d(e,{Z:function(){return r}})},9007:function(t,e,n){"use strict";function r(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}n.d(e,{Z:function(){return r}})},9394:function(t,e,n){"use strict";n.d(e,{Z:function(){return o}});var r=n(1119);function i(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function o(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?i(Object(n),!0).forEach((function(e){(0,r.Z)(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}},3258:function(t,e,n){"use strict";n.d(e,{Z:function(){return u}});var r=n(9507),i=n(6483),o=n(237),s=n(9007);function u(t,e){return(0,r.Z)(t)||(0,i.Z)(t,e)||(0,o.Z)(t,e)||(0,s.Z)()}},237:function(t,e,n){"use strict";n.d(e,{Z:function(){return i}});var r=n(1357);function i(t,e){if(t){if("string"==typeof t)return(0,r.Z)(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?(0,r.Z)(t,e):void 0}}},1557:function(t){t.exports=function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)},t.exports.default=t.exports,t.exports.__esModule=!0},1359:function(t){t.exports=function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")},t.exports.default=t.exports,t.exports.__esModule=!0},5182:function(t,e,n){var r=n(1232),i=n(1557),o=n(6487),s=n(1359);t.exports=function(t){return r(t)||i(t)||o(t)||s()},t.exports.default=t.exports,t.exports.__esModule=!0},6487:function(t,e,n){var r=n(5270);t.exports=function(t,e){if(t){if("string"==typeof t)return r(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(t,e):void 0}},t.exports.default=t.exports,t.exports.__esModule=!0},3421:function(t,e){"use strict";var n=decodeURIComponent,r=encodeURIComponent,i=/; */,o=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/;function s(t,e){try{return e(t)}catch(n){return t}}},2699:function(t){"use strict";var e,n="object"==typeof Reflect?Reflect:null,r=n&&"function"==typeof n.apply?n.apply:function(t,e,n){return Function.prototype.apply.call(t,e,n)};e=n&&"function"==typeof n.ownKeys?n.ownKeys:Object.getOwnPropertySymbols?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:function(t){return Object.getOwnPropertyNames(t)};var i=Number.isNaN||function(t){return t!=t};function o(){o.init.call(this)}t.exports=o,t.exports.once=function(t,e){return new Promise((function(n,r){function i(){void 0!==o&&t.removeListener("error",o),n([].slice.call(arguments))}var o;"error"!==e&&(o=function(n){t.removeListener(e,i),r(n)},t.once("error",o)),t.once(e,i)}))},o.EventEmitter=o,o.prototype._events=void 0,o.prototype._eventsCount=0,o.prototype._maxListeners=void 0;var s=10;function u(t){if("function"!=typeof t)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof t)}function c(t){return void 0===t._maxListeners?o.defaultMaxListeners:t._maxListeners}function a(t,e,n,r){var i,o,s,a;if(u(n),void 0===(o=t._events)?(o=t._events=Object.create(null),t._eventsCount=0):(void 0!==o.newListener&&(t.emit("newListener",e,n.listener?n.listener:n),o=t._events),s=o[e]),void 0===s)s=o[e]=n,++t._eventsCount;else if("function"==typeof s?s=o[e]=r?[n,s]:[s,n]:r?s.unshift(n):s.push(n),(i=c(t))>0&&s.length>i&&!s.warned){s.warned=!0;var p=new Error("Possible EventEmitter memory leak detected. "+s.length+" "+String(e)+" listeners added. Use emitter.setMaxListeners() to increase limit");p.name="MaxListenersExceededWarning",p.emitter=t,p.type=e,p.count=s.length,a=p,console&&console.warn&&console.warn(a)}return t}function p(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function f(t,e,n){var r={fired:!1,wrapFn:void 0,target:t,type:e,listener:n},i=p.bind(r);return i.listener=n,r.wrapFn=i,i}function l(t,e,n){var r=t._events;if(void 0===r)return[];var i=r[e];return void 0===i?[]:"function"==typeof i?n?[i.listener||i]:[i]:n?function(t){for(var e=new Array(t.length),n=0;n<e.length;++n)e[n]=t[n].listener||t[n];return e}(i):d(i,i.length)}function h(t){var e=this._events;if(void 0!==e){var n=e[t];if("function"==typeof n)return 1;if(void 0!==n)return n.length}return 0}function d(t,e){for(var n=new Array(e),r=0;r<e;++r)n[r]=t[r];return n}Object.defineProperty(o,"defaultMaxListeners",{enumerable:!0,get:function(){return s},set:function(t){if("number"!=typeof t||t<0||i(t))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+t+".");s=t}}),o.init=function(){void 0!==this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},o.prototype.setMaxListeners=function(t){if("number"!=typeof t||t<0||i(t))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+t+".");return this._maxListeners=t,this},o.prototype.getMaxListeners=function(){return c(this)},o.prototype.emit=function(t){for(var e=[],n=1;n<arguments.length;n++)e.push(arguments[n]);var i="error"===t,o=this._events;if(void 0!==o)i=i&&void 0===o.error;else if(!i)return!1;if(i){var s;if(e.length>0&&(s=e[0]),s instanceof Error)throw s;var u=new Error("Unhandled error."+(s?" ("+s.message+")":""));throw u.context=s,u}var c=o[t];if(void 0===c)return!1;if("function"==typeof c)r(c,this,e);else{var a=c.length,p=d(c,a);for(n=0;n<a;++n)r(p[n],this,e)}return!0},o.prototype.addListener=function(t,e){return a(this,t,e,!1)},o.prototype.on=o.prototype.addListener,o.prototype.prependListener=function(t,e){return a(this,t,e,!0)},o.prototype.once=function(t,e){return u(e),this.on(t,f(this,t,e)),this},o.prototype.prependOnceListener=function(t,e){return u(e),this.prependListener(t,f(this,t,e)),this},o.prototype.removeListener=function(t,e){var n,r,i,o,s;if(u(e),void 0===(r=this._events))return this;if(void 0===(n=r[t]))return this;if(n===e||n.listener===e)0==--this._eventsCount?this._events=Object.create(null):(delete r[t],r.removeListener&&this.emit("removeListener",t,n.listener||e));else if("function"!=typeof n){for(i=-1,o=n.length-1;o>=0;o--)if(n[o]===e||n[o].listener===e){s=n[o].listener,i=o;break}if(i<0)return this;0===i?n.shift():function(t,e){for(;e+1<t.length;e++)t[e]=t[e+1];t.pop()}(n,i),1===n.length&&(r[t]=n[0]),void 0!==r.removeListener&&this.emit("removeListener",t,s||e)}return this},o.prototype.off=o.prototype.removeListener,o.prototype.removeAllListeners=function(t){var e,n,r;if(void 0===(n=this._events))return this;if(void 0===n.removeListener)return 0===arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==n[t]&&(0==--this._eventsCount?this._events=Object.create(null):delete n[t]),this;if(0===arguments.length){var i,o=Object.keys(n);for(r=0;r<o.length;++r)"removeListener"!==(i=o[r])&&this.removeAllListeners(i);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if("function"==typeof(e=n[t]))this.removeListener(t,e);else if(void 0!==e)for(r=e.length-1;r>=0;r--)this.removeListener(t,e[r]);return this},o.prototype.listeners=function(t){return l(this,t,!0)},o.prototype.rawListeners=function(t){return l(this,t,!1)},o.listenerCount=function(t,e){return"function"==typeof t.listenerCount?t.listenerCount(e):h.call(t,e)},o.prototype.listenerCount=h,o.prototype.eventNames=function(){return this._eventsCount>0?e(this._events):[]}},4495:function(t,e,n){"use strict";var r=n(212),i=n(9561);function o(){this.pending=null,this.pendingTotal=0,this.blockSize=this.constructor.blockSize,this.outSize=this.constructor.outSize,this.hmacStrength=this.constructor.hmacStrength,this.padLength=this.constructor.padLength/8,this.endian="big",this._delta8=this.blockSize/8,this._delta32=this.blockSize/32}e.BlockHash=o,o.prototype.update=function(t,e){if(t=r.toArray(t,e),this.pending?this.pending=this.pending.concat(t):this.pending=t,this.pendingTotal+=t.length,this.pending.length>=this._delta8){var n=(t=this.pending).length%this._delta8;this.pending=t.slice(t.length-n,t.length),0===this.pending.length&&(this.pending=null),t=r.join32(t,0,t.length-n,this.endian);for(var i=0;i<t.length;i+=this._delta32)this._update(t,i,i+this._delta32)}return this},o.prototype.digest=function(t){return this.update(this._pad()),i(null===this.pending),this._digest(t)},o.prototype._pad=function(){var t=this.pendingTotal,e=this._delta8,n=e-(t+this.padLength)%e,r=new Array(n+this.padLength);r[0]=128;for(var i=1;i<n;i++)r[i]=0;if(t<<=3,"big"===this.endian){for(var o=8;o<this.padLength;o++)r[i++]=0;r[i++]=0,r[i++]=0,r[i++]=0,r[i++]=0,r[i++]=t>>>24&255,r[i++]=t>>>16&255,r[i++]=t>>>8&255,r[i++]=255&t}else for(r[i++]=255&t,r[i++]=t>>>8&255,r[i++]=t>>>16&255,r[i++]=t>>>24&255,r[i++]=0,r[i++]=0,r[i++]=0,r[i++]=0,o=8;o<this.padLength;o++)r[i++]=0;return r}},8032:function(t,e,n){"use strict";var r=n(212),i=n(4495),o=n(713),s=n(9561),u=r.sum32,c=r.sum32_4,a=r.sum32_5,p=o.ch32,f=o.maj32,l=o.s0_256,h=o.s1_256,d=o.g0_256,m=o.g1_256,y=i.BlockHash,w=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298];function g(){if(!(this instanceof g))return new g;y.call(this),this.h=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],this.k=w,this.W=new Array(64)}r.inherits(g,y),t.exports=g,g.blockSize=512,g.outSize=256,g.hmacStrength=192,g.padLength=64,g.prototype._update=function(t,e){for(var n=this.W,r=0;r<16;r++)n[r]=t[e+r];for(;r<n.length;r++)n[r]=c(m(n[r-2]),n[r-7],d(n[r-15]),n[r-16]);var i=this.h[0],o=this.h[1],y=this.h[2],w=this.h[3],g=this.h[4],v=this.h[5],_=this.h[6],b=this.h[7];for(s(this.k.length===n.length),r=0;r<n.length;r++){var C=a(b,h(g),p(g,v,_),this.k[r],n[r]),k=u(l(i),f(i,o,y));b=_,_=v,v=g,g=u(w,C),w=y,y=o,o=i,i=u(C,k)}this.h[0]=u(this.h[0],i),this.h[1]=u(this.h[1],o),this.h[2]=u(this.h[2],y),this.h[3]=u(this.h[3],w),this.h[4]=u(this.h[4],g),this.h[5]=u(this.h[5],v),this.h[6]=u(this.h[6],_),this.h[7]=u(this.h[7],b)},g.prototype._digest=function(t){return"hex"===t?r.toHex32(this.h,"big"):r.split32(this.h,"big")}},713:function(t,e,n){"use strict";var r=n(212).rotr32;function i(t,e,n){return t&e^~t&n}function o(t,e,n){return t&e^t&n^e&n}function s(t,e,n){return t^e^n}e.ft_1=function(t,e,n,r){return 0===t?i(e,n,r):1===t||3===t?s(e,n,r):2===t?o(e,n,r):void 0},e.ch32=i,e.maj32=o,e.p32=s,e.s0_256=function(t){return r(t,2)^r(t,13)^r(t,22)},e.s1_256=function(t){return r(t,6)^r(t,11)^r(t,25)},e.g0_256=function(t){return r(t,7)^r(t,18)^t>>>3},e.g1_256=function(t){return r(t,17)^r(t,19)^t>>>10}},212:function(t,e,n){"use strict";var r=n(9561),i=n(1285);function o(t,e){return 55296==(64512&t.charCodeAt(e))&&(!(e<0||e+1>=t.length)&&56320==(64512&t.charCodeAt(e+1)))}function s(t){return(t>>>24|t>>>8&65280|t<<8&16711680|(255&t)<<24)>>>0}function u(t){return 1===t.length?"0"+t:t}function c(t){return 7===t.length?"0"+t:6===t.length?"00"+t:5===t.length?"000"+t:4===t.length?"0000"+t:3===t.length?"00000"+t:2===t.length?"000000"+t:1===t.length?"0000000"+t:t}e.inherits=i,e.toArray=function(t,e){if(Array.isArray(t))return t.slice();if(!t)return[];var n=[];if("string"==typeof t)if(e){if("hex"===e)for((t=t.replace(/[^a-z0-9]+/gi,"")).length%2!=0&&(t="0"+t),i=0;i<t.length;i+=2)n.push(parseInt(t[i]+t[i+1],16))}else for(var r=0,i=0;i<t.length;i++){var s=t.charCodeAt(i);s<128?n[r++]=s:s<2048?(n[r++]=s>>6|192,n[r++]=63&s|128):o(t,i)?(s=65536+((1023&s)<<10)+(1023&t.charCodeAt(++i)),n[r++]=s>>18|240,n[r++]=s>>12&63|128,n[r++]=s>>6&63|128,n[r++]=63&s|128):(n[r++]=s>>12|224,n[r++]=s>>6&63|128,n[r++]=63&s|128)}else for(i=0;i<t.length;i++)n[i]=0|t[i];return n},e.toHex=function(t){for(var e="",n=0;n<t.length;n++)e+=u(t[n].toString(16));return e},e.htonl=s,e.toHex32=function(t,e){for(var n="",r=0;r<t.length;r++){var i=t[r];"little"===e&&(i=s(i)),n+=c(i.toString(16))}return n},e.zero2=u,e.zero8=c,e.join32=function(t,e,n,i){var o=n-e;r(o%4==0);for(var s=new Array(o/4),u=0,c=e;u<s.length;u++,c+=4){var a;a="big"===i?t[c]<<24|t[c+1]<<16|t[c+2]<<8|t[c+3]:t[c+3]<<24|t[c+2]<<16|t[c+1]<<8|t[c],s[u]=a>>>0}return s},e.split32=function(t,e){for(var n=new Array(4*t.length),r=0,i=0;r<t.length;r++,i+=4){var o=t[r];"big"===e?(n[i]=o>>>24,n[i+1]=o>>>16&255,n[i+2]=o>>>8&255,n[i+3]=255&o):(n[i+3]=o>>>24,n[i+2]=o>>>16&255,n[i+1]=o>>>8&255,n[i]=255&o)}return n},e.rotr32=function(t,e){return t>>>e|t<<32-e},e.rotl32=function(t,e){return t<<e|t>>>32-e},e.sum32=function(t,e){return t+e>>>0},e.sum32_3=function(t,e,n){return t+e+n>>>0},e.sum32_4=function(t,e,n,r){return t+e+n+r>>>0},e.sum32_5=function(t,e,n,r,i){return t+e+n+r+i>>>0},e.sum64=function(t,e,n,r){var i=t[e],o=r+t[e+1]>>>0,s=(o<r?1:0)+n+i;t[e]=s>>>0,t[e+1]=o},e.sum64_hi=function(t,e,n,r){return(e+r>>>0<e?1:0)+t+n>>>0},e.sum64_lo=function(t,e,n,r){return e+r>>>0},e.sum64_4_hi=function(t,e,n,r,i,o,s,u){var c=0,a=e;return c+=(a=a+r>>>0)<e?1:0,c+=(a=a+o>>>0)<o?1:0,t+n+i+s+(c+=(a=a+u>>>0)<u?1:0)>>>0},e.sum64_4_lo=function(t,e,n,r,i,o,s,u){return e+r+o+u>>>0},e.sum64_5_hi=function(t,e,n,r,i,o,s,u,c,a){var p=0,f=e;return p+=(f=f+r>>>0)<e?1:0,p+=(f=f+o>>>0)<o?1:0,p+=(f=f+u>>>0)<u?1:0,t+n+i+s+c+(p+=(f=f+a>>>0)<a?1:0)>>>0},e.sum64_5_lo=function(t,e,n,r,i,o,s,u,c,a){return e+r+o+u+a>>>0},e.rotr64_hi=function(t,e,n){return(e<<32-n|t>>>n)>>>0},e.rotr64_lo=function(t,e,n){return(t<<32-n|e>>>n)>>>0},e.shr64_hi=function(t,e,n){return t>>>n},e.shr64_lo=function(t,e,n){return(t<<32-n|e>>>n)>>>0}},1285:function(t){"function"==typeof Object.create?t.exports=function(t,e){e&&(t.super_=e,t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))}:t.exports=function(t,e){if(e){t.super_=e;var n=function(){};n.prototype=e.prototype,t.prototype=new n,t.prototype.constructor=t}}},2864:function(){},9561:function(t){function e(t,e){if(!t)throw new Error(e||"Assertion failed")}t.exports=e,e.equal=function(t,e,n){if(t!=e)throw new Error(n||"Assertion failed: "+t+" != "+e)}},1378:function(t){var e=1e3,n=60*e,r=60*n,i=24*r,o=7*i,s=365.25*i;function u(t,e,n,r){var i=e>=1.5*n;return Math.round(t/n)+" "+r+(i?"s":"")}t.exports=function(t,c){c=c||{};var a=typeof t;if("string"===a&&t.length>0)return function(t){if((t=String(t)).length>100)return;var u=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(t);if(!u)return;var c=parseFloat(u[1]);switch((u[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return c*s;case"weeks":case"week":case"w":return c*o;case"days":case"day":case"d":return c*i;case"hours":case"hour":case"hrs":case"hr":case"h":return c*r;case"minutes":case"minute":case"mins":case"min":case"m":return c*n;case"seconds":case"second":case"secs":case"sec":case"s":return c*e;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return c;default:return}}(t);if("number"===a&&isFinite(t))return c.long?function(t){var o=Math.abs(t);if(o>=i)return u(t,o,i,"day");if(o>=r)return u(t,o,r,"hour");if(o>=n)return u(t,o,n,"minute");if(o>=e)return u(t,o,e,"second");return t+" ms"}(t):function(t){var o=Math.abs(t);if(o>=i)return Math.round(t/i)+"d";if(o>=r)return Math.round(t/r)+"h";if(o>=n)return Math.round(t/n)+"m";if(o>=e)return Math.round(t/e)+"s";return t+"ms"}(t);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(t))}},8650:function(t){var e,n=window.ProgressEvent,r=!!n;try{e=new n("loaded"),r="loaded"===e.type,e=null}catch(i){r=!1}t.exports=r?n:"function"==typeof document.createEvent?function(t,e){var n=document.createEvent("Event");return n.initEvent(t,!1,!1),e?(n.lengthComputable=Boolean(e.lengthComputable),n.loaded=Number(e.loaded)||0,n.total=Number(e.total)||0):(n.lengthComputable=!1,n.loaded=n.total=0),n}:function(t,e){var n=document.createEventObject();return n.type=t,e?(n.lengthComputable=Boolean(e.lengthComputable),n.loaded=Number(e.loaded)||0,n.total=Number(e.total)||0):(n.lengthComputable=!1,n.loaded=n.total=0),n}},5527:function(t,e,n){"use strict";var r=String.prototype.replace,i=/%20/g,o=n(2493),s={RFC1738:"RFC1738",RFC3986:"RFC3986"};t.exports=o.assign({default:s.RFC3986,formatters:{RFC1738:function(t){return r.call(t,i,"+")},RFC3986:function(t){return String(t)}}},s)},9126:function(t,e,n){"use strict";var r=n(6845),i=n(9166),o=n(5527);t.exports={formats:o,parse:i,stringify:r}},9166:function(t,e,n){"use strict";var r=n(2493),i=Object.prototype.hasOwnProperty,o=Array.isArray,s={allowDots:!1,allowPrototypes:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:r.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},u=function(t){return t.replace(/&#(\d+);/g,(function(t,e){return String.fromCharCode(parseInt(e,10))}))},c=function(t,e){return t&&"string"==typeof t&&e.comma&&t.indexOf(",")>-1?t.split(","):t},a=function(t,e,n,r){if(t){var o=n.allowDots?t.replace(/\.([^.[]+)/g,"[$1]"):t,s=/(\[[^[\]]*])/g,u=n.depth>0&&/(\[[^[\]]*])/.exec(o),a=u?o.slice(0,u.index):o,p=[];if(a){if(!n.plainObjects&&i.call(Object.prototype,a)&&!n.allowPrototypes)return;p.push(a)}for(var f=0;n.depth>0&&null!==(u=s.exec(o))&&f<n.depth;){if(f+=1,!n.plainObjects&&i.call(Object.prototype,u[1].slice(1,-1))&&!n.allowPrototypes)return;p.push(u[1])}return u&&p.push("["+o.slice(u.index)+"]"),function(t,e,n,r){for(var i=r?e:c(e,n),o=t.length-1;o>=0;--o){var s,u=t[o];if("[]"===u&&n.parseArrays)s=[].concat(i);else{s=n.plainObjects?Object.create(null):{};var a="["===u.charAt(0)&&"]"===u.charAt(u.length-1)?u.slice(1,-1):u,p=parseInt(a,10);n.parseArrays||""!==a?!isNaN(p)&&u!==a&&String(p)===a&&p>=0&&n.parseArrays&&p<=n.arrayLimit?(s=[])[p]=i:s[a]=i:s={0:i}}i=s}return i}(p,e,n,r)}};t.exports=function(t,e){var n=function(t){if(!t)return s;if(null!==t.decoder&&void 0!==t.decoder&&"function"!=typeof t.decoder)throw new TypeError("Decoder has to be a function.");if(void 0!==t.charset&&"utf-8"!==t.charset&&"iso-8859-1"!==t.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var e=void 0===t.charset?s.charset:t.charset;return{allowDots:void 0===t.allowDots?s.allowDots:!!t.allowDots,allowPrototypes:"boolean"==typeof t.allowPrototypes?t.allowPrototypes:s.allowPrototypes,arrayLimit:"number"==typeof t.arrayLimit?t.arrayLimit:s.arrayLimit,charset:e,charsetSentinel:"boolean"==typeof t.charsetSentinel?t.charsetSentinel:s.charsetSentinel,comma:"boolean"==typeof t.comma?t.comma:s.comma,decoder:"function"==typeof t.decoder?t.decoder:s.decoder,delimiter:"string"==typeof t.delimiter||r.isRegExp(t.delimiter)?t.delimiter:s.delimiter,depth:"number"==typeof t.depth||!1===t.depth?+t.depth:s.depth,ignoreQueryPrefix:!0===t.ignoreQueryPrefix,interpretNumericEntities:"boolean"==typeof t.interpretNumericEntities?t.interpretNumericEntities:s.interpretNumericEntities,parameterLimit:"number"==typeof t.parameterLimit?t.parameterLimit:s.parameterLimit,parseArrays:!1!==t.parseArrays,plainObjects:"boolean"==typeof t.plainObjects?t.plainObjects:s.plainObjects,strictNullHandling:"boolean"==typeof t.strictNullHandling?t.strictNullHandling:s.strictNullHandling}}(e);if(""===t||null==t)return n.plainObjects?Object.create(null):{};for(var p="string"==typeof t?function(t,e){var n,a={},p=e.ignoreQueryPrefix?t.replace(/^\?/,""):t,f=e.parameterLimit===1/0?void 0:e.parameterLimit,l=p.split(e.delimiter,f),h=-1,d=e.charset;if(e.charsetSentinel)for(n=0;n<l.length;++n)0===l[n].indexOf("utf8=")&&("utf8=%E2%9C%93"===l[n]?d="utf-8":"utf8=%26%2310003%3B"===l[n]&&(d="iso-8859-1"),h=n,n=l.length);for(n=0;n<l.length;++n)if(n!==h){var m,y,w=l[n],g=w.indexOf("]="),v=-1===g?w.indexOf("="):g+1;-1===v?(m=e.decoder(w,s.decoder,d,"key"),y=e.strictNullHandling?null:""):(m=e.decoder(w.slice(0,v),s.decoder,d,"key"),y=r.maybeMap(c(w.slice(v+1),e),(function(t){return e.decoder(t,s.decoder,d,"value")}))),y&&e.interpretNumericEntities&&"iso-8859-1"===d&&(y=u(y)),w.indexOf("[]=")>-1&&(y=o(y)?[y]:y),i.call(a,m)?a[m]=r.combine(a[m],y):a[m]=y}return a}(t,n):t,f=n.plainObjects?Object.create(null):{},l=Object.keys(p),h=0;h<l.length;++h){var d=l[h],m=a(d,p[d],n,"string"==typeof t);f=r.merge(f,m,n)}return r.compact(f)}},6845:function(t,e,n){"use strict";var r=n(2493),i=n(5527),o=Object.prototype.hasOwnProperty,s={brackets:function(t){return t+"[]"},comma:"comma",indices:function(t,e){return t+"["+e+"]"},repeat:function(t){return t}},u=Array.isArray,c=Array.prototype.push,a=function(t,e){c.apply(t,u(e)?e:[e])},p=Date.prototype.toISOString,f=i.default,l={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:r.encode,encodeValuesOnly:!1,format:f,formatter:i.formatters[f],indices:!1,serializeDate:function(t){return p.call(t)},skipNulls:!1,strictNullHandling:!1},h=function t(e,n,i,o,s,c,p,f,h,d,m,y,w){var g,v=e;if("function"==typeof p?v=p(n,v):v instanceof Date?v=d(v):"comma"===i&&u(v)&&(v=r.maybeMap(v,(function(t){return t instanceof Date?d(t):t})).join(",")),null===v){if(o)return c&&!y?c(n,l.encoder,w,"key"):n;v=""}if("string"==typeof(g=v)||"number"==typeof g||"boolean"==typeof g||"symbol"==typeof g||"bigint"==typeof g||r.isBuffer(v))return c?[m(y?n:c(n,l.encoder,w,"key"))+"="+m(c(v,l.encoder,w,"value"))]:[m(n)+"="+m(String(v))];var _,b=[];if(void 0===v)return b;if(u(p))_=p;else{var C=Object.keys(v);_=f?C.sort(f):C}for(var k=0;k<_.length;++k){var Z=_[k],q=v[Z];if(!s||null!==q){var x=u(v)?"function"==typeof i?i(n,Z):n:n+(h?"."+Z:"["+Z+"]");a(b,t(q,x,i,o,s,c,p,f,h,d,m,y,w))}}return b};t.exports=function(t,e){var n,r=t,c=function(t){if(!t)return l;if(null!==t.encoder&&void 0!==t.encoder&&"function"!=typeof t.encoder)throw new TypeError("Encoder has to be a function.");var e=t.charset||l.charset;if(void 0!==t.charset&&"utf-8"!==t.charset&&"iso-8859-1"!==t.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var n=i.default;if(void 0!==t.format){if(!o.call(i.formatters,t.format))throw new TypeError("Unknown format option provided.");n=t.format}var r=i.formatters[n],s=l.filter;return("function"==typeof t.filter||u(t.filter))&&(s=t.filter),{addQueryPrefix:"boolean"==typeof t.addQueryPrefix?t.addQueryPrefix:l.addQueryPrefix,allowDots:void 0===t.allowDots?l.allowDots:!!t.allowDots,charset:e,charsetSentinel:"boolean"==typeof t.charsetSentinel?t.charsetSentinel:l.charsetSentinel,delimiter:void 0===t.delimiter?l.delimiter:t.delimiter,encode:"boolean"==typeof t.encode?t.encode:l.encode,encoder:"function"==typeof t.encoder?t.encoder:l.encoder,encodeValuesOnly:"boolean"==typeof t.encodeValuesOnly?t.encodeValuesOnly:l.encodeValuesOnly,filter:s,formatter:r,serializeDate:"function"==typeof t.serializeDate?t.serializeDate:l.serializeDate,skipNulls:"boolean"==typeof t.skipNulls?t.skipNulls:l.skipNulls,sort:"function"==typeof t.sort?t.sort:null,strictNullHandling:"boolean"==typeof t.strictNullHandling?t.strictNullHandling:l.strictNullHandling}}(e);"function"==typeof c.filter?r=(0,c.filter)("",r):u(c.filter)&&(n=c.filter);var p,f=[];if("object"!=typeof r||null===r)return"";p=e&&e.arrayFormat in s?e.arrayFormat:e&&"indices"in e?e.indices?"indices":"repeat":"indices";var d=s[p];n||(n=Object.keys(r)),c.sort&&n.sort(c.sort);for(var m=0;m<n.length;++m){var y=n[m];c.skipNulls&&null===r[y]||a(f,h(r[y],y,d,c.strictNullHandling,c.skipNulls,c.encode?c.encoder:null,c.filter,c.sort,c.allowDots,c.serializeDate,c.formatter,c.encodeValuesOnly,c.charset))}var w=f.join(c.delimiter),g=!0===c.addQueryPrefix?"?":"";return c.charsetSentinel&&("iso-8859-1"===c.charset?g+="utf8=%26%2310003%3B&":g+="utf8=%E2%9C%93&"),w.length>0?g+w:""}},2493:function(t){"use strict";var e=Object.prototype.hasOwnProperty,n=Array.isArray,r=function(){for(var t=[],e=0;e<256;++e)t.push("%"+((e<16?"0":"")+e.toString(16)).toUpperCase());return t}(),i=function(t,e){for(var n=e&&e.plainObjects?Object.create(null):{},r=0;r<t.length;++r)void 0!==t[r]&&(n[r]=t[r]);return n};t.exports={arrayToObject:i,assign:function(t,e){return Object.keys(e).reduce((function(t,n){return t[n]=e[n],t}),t)},combine:function(t,e){return[].concat(t,e)},compact:function(t){for(var e=[{obj:{o:t},prop:"o"}],r=[],i=0;i<e.length;++i)for(var o=e[i],s=o.obj[o.prop],u=Object.keys(s),c=0;c<u.length;++c){var a=u[c],p=s[a];"object"==typeof p&&null!==p&&-1===r.indexOf(p)&&(e.push({obj:s,prop:a}),r.push(p))}return function(t){for(;t.length>1;){var e=t.pop(),r=e.obj[e.prop];if(n(r)){for(var i=[],o=0;o<r.length;++o)void 0!==r[o]&&i.push(r[o]);e.obj[e.prop]=i}}}(e),t},decode:function(t,e,n){var r=t.replace(/\+/g," ");if("iso-8859-1"===n)return r.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(r)}catch(i){return r}},encode:function(t,e,n){if(0===t.length)return t;var i=t;if("symbol"==typeof t?i=Symbol.prototype.toString.call(t):"string"!=typeof t&&(i=String(t)),"iso-8859-1"===n)return escape(i).replace(/%u[0-9a-f]{4}/gi,(function(t){return"%26%23"+parseInt(t.slice(2),16)+"%3B"}));for(var o="",s=0;s<i.length;++s){var u=i.charCodeAt(s);45===u||46===u||95===u||126===u||u>=48&&u<=57||u>=65&&u<=90||u>=97&&u<=122?o+=i.charAt(s):u<128?o+=r[u]:u<2048?o+=r[192|u>>6]+r[128|63&u]:u<55296||u>=57344?o+=r[224|u>>12]+r[128|u>>6&63]+r[128|63&u]:(s+=1,u=65536+((1023&u)<<10|1023&i.charCodeAt(s)),o+=r[240|u>>18]+r[128|u>>12&63]+r[128|u>>6&63]+r[128|63&u])}return o},isBuffer:function(t){return!(!t||"object"!=typeof t)&&!!(t.constructor&&t.constructor.isBuffer&&t.constructor.isBuffer(t))},isRegExp:function(t){return"[object RegExp]"===Object.prototype.toString.call(t)},maybeMap:function(t,e){if(n(t)){for(var r=[],i=0;i<t.length;i+=1)r.push(e(t[i]));return r}return e(t)},merge:function t(r,o,s){if(!o)return r;if("object"!=typeof o){if(n(r))r.push(o);else{if(!r||"object"!=typeof r)return[r,o];(s&&(s.plainObjects||s.allowPrototypes)||!e.call(Object.prototype,o))&&(r[o]=!0)}return r}if(!r||"object"!=typeof r)return[r].concat(o);var u=r;return n(r)&&!n(o)&&(u=i(r,s)),n(r)&&n(o)?(o.forEach((function(n,i){if(e.call(r,i)){var o=r[i];o&&"object"==typeof o&&n&&"object"==typeof n?r[i]=t(o,n,s):r.push(n)}else r[i]=n})),r):Object.keys(o).reduce((function(n,r){var i=o[r];return e.call(n,r)?n[r]=t(n[r],i,s):n[r]=i,n}),u)}}},9239:function(t,e,n){"object"==typeof window&&window.whatsNewAssetsUrl&&(n.p=window.whatsNewAssetsUrl)},8814:function(t,e,n){"use strict";var r=n(5707),i={whatsNew:!1};(0,r.registerStore)("automattic/whats-new",{reducer:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:i,e=arguments.length>1?arguments[1]:void 0;switch(e.type){case"TOGGLE_FEATURE":return{whatsNew:!t.whatsNew}}return t},actions:{toggleWhatsNew:function(){return{type:"TOGGLE_FEATURE"}}},selectors:{isWhatsNewActive:function(t){return t.whatsNew}}})},5840:function(t,e,n){"use strict";var r=n(3258),i=n(3027),o=(n(9239),n(6115)),s=n(3585),u=n(7997),c=n(3163),a=n(1200),p=n(6141),__=c.__;function f(){var t=(0,p.useState)(!1),e=(0,r.Z)(t,2),n=e[0],c=e[1];return(0,i.useEffect)((function(){n&&(0,o.jN)("calypso_block_editor_whats_new_open")}),[n]),(0,i.createElement)(i.Fragment,null,(0,i.createElement)(u.Fill,{name:"ToolsMoreMenuGroup"},(0,i.createElement)(u.MenuItem,{onClick:function(){return c(!0)}},__("What's new","full-site-editing"))),n&&(0,i.createElement)(s.Z,{onClose:function(){return c(!1)}}))}(0,a.registerPlugin)("whats-new",{render:function(){return(0,i.createElement)(f,null)}})},6115:function(t,e,n){"use strict";n.d(e,{jN:function(){return r.jN}});n(1694),n(6209),n(9377);var r=n(9792);n(3722)},9377:function(t,e,n){"use strict";"undefined"!=typeof window&&window.addEventListener("popstate",(function(){null}))},9792:function(t,e,n){"use strict";n.d(e,{jN:function(){return l}});var r,i=n(9394),o=n(3804),s=(n(3421),n(2699)),u=n(4898),c=(n(6209),n(1694),n(9377),n(9358)),a=["a8c_cookie_banner_ok","wcadmin_storeprofiler_create_jetpack_account","wcadmin_storeprofiler_connect_store","wcadmin_storeprofiler_login_jetpack_account","wcadmin_storeprofiler_payment_login","wcadmin_storeprofiler_payment_create_account","calypso_checkout_switch_to_p_24","calypso_checkout_composite_p24_submit_clicked"];Promise.resolve();function p(t){"undefined"!=typeof window&&(window._tkq=window._tkq||[],window._tkq.push(t))}"undefined"!=typeof document&&(0,u.ve)("//stats.wp.com/w.js?63");var f=new s.EventEmitter;function l(t,e){if(e=e||{},(0,c.Z)('Record event "%s" called with props %o',t,e),t.startsWith("calypso_")||(0,o.includes)(a,t)){if(r){var n=r(e);e=(0,i.Z)((0,i.Z)({},e),n)}e=(0,o.omitBy)(e,(function(t){return void 0===t})),(0,c.Z)('Recording event "%s" with actual props %o',t,e),p(["recordEvent",t,e]),f.emit("record-event",t,e)}else(0,c.Z)('- Event name must be prefixed by "calypso_" or added to `EVENT_NAME_EXCEPTIONS`')}},3722:function(t,e,n){"use strict";n(9792)},6209:function(t,e,n){"use strict";n(4)},9358:function(t,e,n){"use strict";var r=n(8049),i=n.n(r);e.Z=i()("calypso:analytics")},1694:function(t,e,n){"use strict";n(9358)},4:function(t,e,n){"use strict";n(8032)},849:function(t,e,n){"use strict";n.d(e,{bU:function(){return f}});var r=n(7560),i=n(3258),o=n(3027),s=n(6141),u=n(1417),c=n(3163),a=(0,s.createContext)(null);function p(){var t,e;return c.getLocaleData&&(null===(t=c.getLocaleData())||void 0===t||null===(e=t[""])||void 0===e?void 0:e.language)}function f(){var t=(0,s.useContext)(a),e=!!t,n=(0,s.useState)(p()),r=(0,i.Z)(n,2),o=r[0],u=r[1];return(0,s.useEffect)((function(){if(!e)return u(p()),c.subscribe((function(){u(p())}))}),[e]),t||o||"en"}(0,u.createHigherOrderComponent)((function(t){return function(e){var n=f();return(0,o.createElement)(t,(0,r.Z)({locale:n},e))}}),"withLocale")},3340:function(t,e,n){"use strict";n.d(e,{hg:function(){return u},lZ:function(){return c},_W:function(){return p},Yt:function(){return f}});var r=n(8049),i=n.n(r)()("lib/load-script/callback-handler"),o=new Map;function s(){return o}function u(t){return s().has(t)}function c(t,e){var n=s();u(t)?(i('Adding a callback for an existing script from "'.concat(t,'"')),n.get(t).add(e)):(i('Adding a callback for a new script from "'.concat(t,'"')),n.set(t,new Set([e])))}function a(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=s(),r=n.get(t);if(r){var o='Executing callbacks for "'.concat(t,'"')+(null===e?" with success":' with error "'.concat(e,'"'));i(o),r.forEach((function(t){"function"==typeof t&&t(e)})),n.delete(t)}}function p(){var t=this.getAttribute("src");i('Handling successful request for "'.concat(t,'"')),a(t),this.onload=null}function f(){var t=this.getAttribute("src");i('Handling failed request for "'.concat(t,'"')),a(t,new Error('Failed to load script "'.concat(t,'"'))),this.onerror=null}},5606:function(t,e,n){"use strict";n.d(e,{C:function(){return u},k:function(){return c}});var r=n(8049),i=n.n(r),o=n(3340),s=i()("lib/load-script/dom-operations");function u(t){s('Creating script element for "'.concat(t,'"'));var e=document.createElement("script");return e.src=t,e.type="text/javascript",e.async=!0,e.onload=o._W,e.onerror=o.Yt,e}function c(t){s("Attaching element to head"),document.head.appendChild(t)}},4898:function(t,e,n){"use strict";n.d(e,{ve:function(){return u}});var r=n(8049),i=n.n(r),o=n(3340),s=n(5606);i()("package/load-script");function u(t,e){if(!(0,o.hg)(t)&&(0,s.k)((0,s.C)(t)),"function"!=typeof e)return new Promise((function(e,n){(0,o.lZ)(t,(function(t){null===t?e():n(t)}))}));(0,o.lZ)(t,e)}},3585:function(t,e,n){"use strict";var r=n(3258),i=n(3027),o=n(7997),s=n(8552),u=n(6141),c=n(8675),a=n(849),p=n(1202),f=(n(2864),n(869));e.Z=function(t){var e=t.onClose,n=(0,u.useState)(null),l=(0,r.Z)(n,2),h=l[0],d=l[1],__=(0,c.useI18n)().__,m=(0,a.bU)();return(0,u.useEffect)((function(){var t=(0,p.Z)();t.request=s.ZP,t.req.get({path:"/whats-new/list?_locale=".concat(m),apiNamespace:"wpcom/v2"}).then((function(t){d(t)}))}),[m]),h?(0,i.createElement)(o.Guide,{className:"whats-new-guide__main",contentLabel:__("What's New at WordPress.com","full-site-editing"),finishButtonText:__("Close","full-site-editing"),onFinish:e},h.map((function(t,e){return(0,i.createElement)(f.Z,{pageNumber:e+1,isLastPage:e===h.length-1,description:t.description,heading:t.heading,imageSrc:t.imageSrc,link:t.link})}))):null}},869:function(t,e,n){"use strict";var r=n(3027),i=n(7997),o=n(6141),s=n(6115),u=n(8675);e.Z=function(t){var e=t.description,n=t.heading,c=t.imageSrc,a=t.isLastPage,p=t.link,f=t.pageNumber,__=(0,u.useI18n)().__;return(0,o.useEffect)((function(){(0,s.jN)("wpcom_whats_new_slide_view",{slide_number:f,is_last_slide:a})}),[a,f]),(0,r.createElement)(i.GuidePage,{className:"whats-new-page__container"},(0,r.createElement)("div",{className:"whats-new-page__text"},n&&(0,r.createElement)("h1",{className:"whats-new-page__heading"},n),(0,r.createElement)("div",{className:"whats-new-page__description"},e&&(0,r.createElement)("p",null,e),p&&(0,r.createElement)(i.Button,{className:"whats-new-page__link",href:p,isTertiary:!0,isLink:!0,target:"_blank"},__("Learn more","full-site-editing")))),(0,r.createElement)("div",{className:"whats-new-page__visual"},c&&(0,r.createElement)("img",{src:c,alt:e,"aria-hidden":"true",className:"whats-new-page__image"})))}},8552:function(t,e,n){"use strict";var r,i=n(8767),o=n(2884),s=n.n(o),u=n(8650),c=n.n(u),a=n(8049),p=n.n(a)()("wpcom-proxy-request"),f="https://public-api.wordpress.com",l=window.location.protocol+"//"+window.location.host,h=function(){var t=!1;try{window.postMessage({toString:function(){t=!0}},"*")}catch(e){}return t}(),d=function(){try{return new window.File(["a"],"test.jpg",{type:"image/jpeg"}),!0}catch(t){return!1}}(),m=null,y=!1,w={},g=!!window.ProgressEvent&&!!window.FormData;p('using "origin": %o',l);var v=function(t,e){var n=Object.assign({},t);p("request(%o)",n),m||Z();var o=(0,i.Z)();n.callback=o,n.supports_args=!0,n.supports_error_obj=!0,n.supports_progress=g,n.method=String(n.method||"GET").toUpperCase(),p("params object: %o",n);var s=new window.XMLHttpRequest;if(s.params=n,w[o]=s,"function"==typeof e){var u=!1,c=function(t){if(!u){u=!0;var n=t.error||t.err||t;p("error: ",n),p("headers: ",t.headers),e(n,null,t.headers)}};s.addEventListener("load",(function(t){if(!u){u=!0;var n=t.response||s.response;p("body: ",n),p("headers: ",t.headers),e(null,n,t.headers)}})),s.addEventListener("abort",c),s.addEventListener("error",c)}return"function"==typeof n.onStreamRecord&&delete n.onStreamRecord,y?b(n):(p("buffering API request since proxying <iframe> is not yet loaded"),r.push(n)),s},_=function(t,e){return"function"==typeof e?v(t,e):new Promise((function(e,n){v(t,(function(t,r){t?n(t):e(r)}))}))};function b(t){p("sending API request to proxy <iframe> %o",t),t.formData&&function(t){if(!window.chrome||!d)return;for(var e=0;e<t.length;e++){var n=k(t[e][1]);n&&(t[e][1]=new window.File([n],n.name,{type:n.type}))}}(t.formData),m.contentWindow.postMessage(h?JSON.stringify(t):t,f)}function C(t){return t&&"[object File]"===Object.prototype.toString.call(t)}function k(t){return C(t)?t:"object"==typeof t&&C(t.fileContents)?t.fileContents:null}function Z(){p("install()"),m&&(p("uninstall()"),window.removeEventListener("message",q),document.body.removeChild(m),y=!1,m=null),r=[],window.addEventListener("message",q),(m=document.createElement("iframe")).src=f+"/wp-admin/rest-proxy/?v=2.0#"+l,m.style.display="none",document.body.appendChild(m)}function q(t){if(p("onmessage"),t.origin===f)if(t.source===m.contentWindow){var e=t.data;if(!e)return p("no `data`, bailing");if("ready"!==e){if(h&&"string"==typeof e&&(e=JSON.parse(e)),e.upload||e.download)return function(t){p('got "progress" event: %o',t);var e=w[t.callbackId];if(e){var n=new(c())("progress",t);(t.upload?e.upload:e).dispatchEvent(n)}}(e);if(!e.length)return p("`e.data` doesn't appear to be an Array, bailing...");var n=e[e.length-1];if(!(n in w))return p("bailing, no matching request with callback: %o",n);var i,o=w[n],u=o.params,a=e[0],l=e[1],d=e[2];if(207===l||delete w[n],u.metaAPI?l="metaAPIupdated"===a?200:500:p("got %o status code for URL: %o",l,u.path),"object"==typeof d)if(d.status=l,i=d["Content-Type"],/^application[/]x-ndjson($|;)/.test(i))return void x(o,new Error("stream mode processing is not yet implemented for wpcom-proxy-request"),d);if(l&&2===Math.floor(l/100))!function(t,e,n){var r=new(c())("load");r.data=r.body=r.response=e,r.headers=n,t.dispatchEvent(r)}(o,a,d);else x(o,s()(u,l,a),d)}else!function(){if(p('proxy <iframe> "load" event'),y=!0,r){for(var t=0;t<r.length;t++)b(r[t]);r=null}}()}else p("ignoring message... iframe elements do not match");else p("ignoring message... %o !== %o",t.origin,f)}function x(t,e,n){var r=new(c())("error");r.error=r.err=e,r.headers=n,t.dispatchEvent(r)}e.ZP=_},1202:function(t,e,n){"use strict";n.d(e,{Z:function(){return w}});var r=n(8049),i=n.n(r),o=n(9728),s=n(7114),u=n(35),c=n(8068),a=n(2836),p=n(3818),f=n(6870),l=n(781),h=n(2579),d=n(4308),m=n(3918),y=i()("wpcom");function w(t,e){if(!(this instanceof w))return new w(t,e);"function"==typeof t&&(e=t,t=null),t&&(y("Token defined: %s…",t.substring(0,6)),this.token=t);this.request=e||function(t,e){y("No request handler. Failing."),e(new Error("No request handler provided"))},this.req=new l.Z(this),this.pinghub=new p.Z(this),this.apiVersion="1.1"}w.prototype.marketing=function(){return new c.Z(this)},w.prototype.me=function(){return new a.Z(this)},w.prototype.domains=function(){return new u.Z(this)},w.prototype.domain=function(t){return new s.Z(t,this)},w.prototype.site=function(t){return new h.Z(t,this)},w.prototype.users=function(){return new d.Z(this)},w.prototype.plans=function(){return new f.Z(this)},w.prototype.batch=function(){return new o.Z(this)},w.prototype.freshlyPressed=function(t,e){return this.req.get("/freshly-pressed",t,e)},w.prototype.sendRequest=function(t,e,n,r){var i="WARN! Don use `sendRequest() anymore. Use `this.req` method.";return console&&console.warn?console.warn(i):console.log(i),m.Z.call(this,t,e,n,r)},w.Batch=o.Z,w.Domain=s.Z,w.Domains=u.Z,w.Marketing=c.Z,w.Me=a.Z,w.Pinghub=p.Z,w.Plans=f.Z,w.Request=l.Z,w.Site=h.Z,w.Users=d.Z,Promise.prototype.timeout||(Promise.prototype.timeout=function(){var t,e=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:3e4,r=new Promise((function(e,r){t=setTimeout((function(){r(new Error("Action timed out while waiting for response."))}),n)})),i=function(){return clearTimeout(t),e};return Promise.race([this.then(i).catch(i),r])})},9728:function(t,e,n){"use strict";var r=n(4659),i=n(4730),o=function(){function t(e){if((0,r.Z)(this,t),!(this instanceof t))return new t(e);this.wpcom=e,this.urls=[]}return(0,i.Z)(t,[{key:"add",value:function(t){return this.urls.push(t),this}},{key:"run",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1?arguments[1]:void 0;return"function"==typeof t&&(e=t,t={}),t.urls=this.urls,this.wpcom.req.get("/batch",t,e)}}]),t}();e.Z=o},6398:function(t,e,n){"use strict";var r=n(4659),i=n(4730),o=function(){function t(e,n){if((0,r.Z)(this,t),!(this instanceof t))return new t(e,n);this._domain=e,this._subpath="/domains/"+this._domain+"/dns",this.wpcom=n}return(0,i.Z)(t,[{key:"add",value:function(t,e,n){return"function"==typeof e&&(n=e,e={}),this.wpcom.req.post(this._subpath+"/add",e,t,n)}},{key:"delete",value:function(t,e,n){return this.wpcom.req.post(this._subpath+"/delete",e,t,n)}}]),t}();e.Z=o},4449:function(t,e,n){"use strict";var r=n(4659),i=n(4730),o=function(){function t(e,n,i){if((0,r.Z)(this,t),!(this instanceof t))return new t(e,n,i);e&&(this._email=e),this._domain=n,this._subpath="/domains/"+this._domain+"/email/",this.wpcom=i}return(0,i.Z)(t,[{key:"forward",value:function(t,e,n){var r={destination:t};return this.wpcom.req.post(this._subpath+this._email,e,r,n)}},{key:"add",value:function(t,e,n,r){"function"==typeof n&&(r=n,n={});var i={mailbox:t,destination:e};return this.wpcom.req.post(this._subpath+"new",n,i,r)}},{key:"delete",value:function(t,e,n){return this.wpcom.req.del(this._subpath+t+"/delete",e,n)}}]),t}();e.Z=o},7114:function(t,e,n){"use strict";var r=n(4659),i=n(4730),o=n(4449),s=n(6398),u="/domains/",c=function(){function t(e,n){if((0,r.Z)(this,t),!(this instanceof t))return new t(e,n);this._id=e,this.wpcom=n}return(0,i.Z)(t,[{key:"status",value:function(t,e){return this.wpcom.req.get(u+this._id+"/status",t,e)}},{key:"isAvailable",value:function(t,e){return this.wpcom.req.get(u+this._id+"/is-available",t,e)}},{key:"isMappable",value:function(t,e){return this.wpcom.req.get(u+this._id+"/is-mappable",t,e)}},{key:"canRedirect",value:function(t,e,n){var r=u+t+"/"+this._id+"/can-redirect";return this.wpcom.req.get(r,e,n)}},{key:"emailForwards",value:function(t,e){return this.wpcom.req.get(u+this._id+"/email",t,e)}},{key:"nameserversList",value:function(t,e){return this.wpcom.req.get(u+this._id+"/nameservers",t,e)}},{key:"updateNameservers",value:function(t,e,n){var r={nameservers:t};return this.wpcom.req.post(u+this._id+"/nameservers",e,r,n)}},{key:"dnsList",value:function(t,e){return this.wpcom.req.get(u+this._id+"/dns",t,e)}},{key:"googleAppsList",value:function(t,e){return this.wpcom.req.get(u+this._id+"/google-apps",t,e)}},{key:"resendICANN",value:function(t,e){return this.wpcom.req.post(u+this._id+"/resend-icann",t,e)}},{key:"email",value:function(t){return new o.Z(t,this._id,this.wpcom)}},{key:"dns",value:function(){return new s.Z(this._id,this.wpcom)}}]),t}();e.Z=c},35:function(t,e,n){"use strict";var r=n(4659),i=n(4730),o="/domains/",s=function(){function t(e){if((0,r.Z)(this,t),!(this instanceof t))return new t(e);this.wpcom=e}return(0,i.Z)(t,[{key:"suggestions",value:function(t,e){return"string"==typeof t&&(t={query:t}),this.wpcom.req.get(o+"suggestions",t,e)}},{key:"suggestionsExamples",value:function(t,e){return this.wpcom.req.get(o+"suggestions/examples",t,e)}},{key:"supportedCountries",value:function(t,e){return this.wpcom.req.get(o+"supported-countries",t,e)}},{key:"supportedStates",value:function(t,e,n){var r=o+"supported-states/"+t;return this.wpcom.req.get(r,e,n)}}]),t}();e.Z=s},8068:function(t,e,n){"use strict";n.d(e,{Z:function(){return s}});var r=n(4659),i=n(4730),o=n(5005),s=function(){function t(e){if((0,r.Z)(this,t),!(this instanceof t))return new t(e);this.wpcom=e}return(0,i.Z)(t,[{key:"survey",value:function(t,e){return new o.Z(t,e,this.wpcom)}}]),t}()},5005:function(t,e,n){"use strict";n.d(e,{Z:function(){return u}});var r=n(1119),i=n(4659),o=n(4730),s="/marketing/survey",u=function(){function t(e,n,r){if((0,i.Z)(this,t),!e)throw new TypeError("`id` survey is not correctly defined");if(!(this instanceof t))return new t(e,n,r);"object"==typeof n?this.wpcom=n:(this._siteId=n,this.wpcom=r),this._id=e,this._responses={}}return(0,o.Z)(t,[{key:"setSiteId",value:function(t){return this._siteId=t,this}},{key:"addResponse",value:function(t,e){return this._responses=Object.assign({},this._responses,(0,r.Z)({},t,e)),this}},{key:"addResponses",value:function(t){return this._responses=Object.assign({},this._responses,t),this}},{key:"submit",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0;return e.survey_id=this._id,e.site_id=e.site_id||this._siteId,e.survey_responses=e.survey_responses||this._responses,this.wpcom.req.post("".concat(s),t,e,n)}}]),t}()},2921:function(t,e,n){"use strict";n.d(e,{Z:function(){return s}});var r=n(4659),i=n(4730),o="/me/connected-applications/",s=function(){function t(e,n){if((0,r.Z)(this,t),!(this instanceof t))return new t(e,n);this._id=e,this.wpcom=n}return(0,i.Z)(t,[{key:"get",value:function(t,e){return this.wpcom.req.get(o+this._id,t,e)}},{key:"delete",value:function(t,e){return this.wpcom.req.del(o+this._id+"/delete",t,e)}}]),t}()},2836:function(t,e,n){"use strict";n.d(e,{Z:function(){return c}});var r=n(2769),i=n(2921),o=n(2695),s=n(7699),u=n(9814);function c(t){if(!(this instanceof c))return new c(t);this.wpcom=t}c.prototype.get=function(t,e){return this.wpcom.req.get("/me",t,e)},c.prototype.billingHistory=function(t,e){return this.wpcom.req.get("/me/billing-history",t,e)},c.prototype.postsList=function(t,e){return this.wpcom.req.get("/me/posts",t,e)},c.prototype.sites=function(t,e){return this.wpcom.req.get("/me/sites",t,e)},c.prototype.likes=function(t,e){return this.wpcom.req.get("/me/likes",t,e)},c.prototype.connectedApps=function(t,e){return this.wpcom.req.get("/me/connected-applications",t,e)},c.prototype.keyringConnections=function(t,e){return this.wpcom.req.get("/me/connections",t,e)},c.prototype.publicizeConnections=function(t,e){return this.wpcom.req.get("/me/publicize-connections",t,e)},c.prototype.settings=function(){return new s.Z(this.wpcom)},c.prototype.connectedApp=function(t){return new i.Z(t,this.wpcom)},c.prototype.publicizeConnection=function(t){return new o.Z(t,this.wpcom)},c.prototype.twoStep=function(){return new u.Z(this.wpcom)},c.prototype.keyringConnection=function(t){return new r.Z(t,this.wpcom)}},2769:function(t,e,n){"use strict";n.d(e,{Z:function(){return s}});var r=n(4659),i=n(4730),o="/me/connections/",s=function(){function t(e,n){if((0,r.Z)(this,t),!(this instanceof t))return new t(e,n);this._id=e,this.wpcom=n}return(0,i.Z)(t,[{key:"get",value:function(t,e){return this.wpcom.req.get({path:o+this._id,apiNamespace:"wpcom/v2"},t,e)}},{key:"delete",value:function(t,e){return this.wpcom.req.get({path:o+this._id,apiNamespace:"wpcom/v2",method:"DELETE"},t,e)}}]),t}()},2695:function(t,e,n){"use strict";n.d(e,{Z:function(){return s}});var r=n(4659),i=n(4730),o="/me/publicize-connections/",s=function(){function t(e,n){if((0,r.Z)(this,t),!(this instanceof t))return new t(e,n);this._id=e,this.wpcom=n}return(0,i.Z)(t,[{key:"get",value:function(t,e){return this.wpcom.req.get(o+this._id,t,e)}},{key:"add",value:function(t,e,n){return this.wpcom.req.post(o+"new",t,e,n)}},{key:"update",value:function(t,e,n){return this.wpcom.req.put(o+this._id,t,e,n)}},{key:"delete",value:function(t,e){return this.wpcom.req.del(o+this._id+"/delete",t,e)}}]),t}()},7699:function(t,e,n){"use strict";n.d(e,{Z:function(){return o}});var r=n(9283),i=n(142);function o(t){if(!(this instanceof o))return new o(t);this.wpcom=t}o.prototype.get=function(t,e){return this.wpcom.req.get("/me/settings",t,e)},o.prototype.update=function(t,e,n){return this.wpcom.req.put("/me/settings/",t,e,n)},o.prototype.profileLinks=function(){return new r.Z(this.wpcom)},o.prototype.password=function(){return new i.Z(this.wpcom)}},142:function(t,e,n){"use strict";n.d(e,{Z:function(){return o}});var r=n(4659),i=n(4730),o=function(){function t(e){if((0,r.Z)(this,t),!(this instanceof t))return new t(e);this.wpcom=e}return(0,i.Z)(t,[{key:"validate",value:function(t,e,n){return this.wpcom.req.post("/me/settings/password/validate",e,{password:t},n)}}]),t}()},9283:function(t,e,n){"use strict";n.d(e,{Z:function(){return i}});var r="/me/settings/profile-links";function i(t){if(!(this instanceof i))return new i(t);this.wpcom=t}i.prototype.get=function(t,e){return this.wpcom.req.get(r,t,e)},i.prototype.mine=i.prototype.get,i.prototype.add=function(t,e,n){"function"==typeof e&&(n=e,e={}),t instanceof Array||(t=[t]),e.apiVersion="1.2";return this.wpcom.req.post("/me/settings/profile-links/new",e,{links:t},n)},i.prototype.del=function(t,e,n){var i=r+"/"+t+"/delete";return this.wpcom.req.del(i,e,n)},i.prototype.delete=i.prototype.del},9814:function(t,e,n){"use strict";n.d(e,{Z:function(){return s}});var r=n(4659),i=n(4730),o=n(4086),s=function(){function t(e){if((0,r.Z)(this,t),!(this instanceof t))return new t(e);this.wpcom=e}return(0,i.Z)(t,[{key:"get",value:function(t,e){return this.wpcom.req.get("/me/two-step/",t,e)}},{key:"sms",value:function(){return new o.Z(this.wpcom)}}]),t}()},4086:function(t,e,n){"use strict";n.d(e,{Z:function(){return o}});var r=n(4659),i=n(4730),o=function(){function t(e){if((0,r.Z)(this,t),!(this instanceof t))return new t(e);this.wpcom=e}return(0,i.Z)(t,[{key:"send",value:function(t,e){return this.wpcom.req.post("/me/two-step/sms/new",t,e)}}]),t}()},6870:function(t,e,n){"use strict";n.d(e,{Z:function(){return s}});var r=n(4659),i=n(4730),o="/plans",s=function(){function t(e){if((0,r.Z)(this,t),!(this instanceof t))return new t(e);this.wpcom=e}return(0,i.Z)(t,[{key:"list",value:function(t,e){return this.wpcom.req.get(o,t,e)}},{key:"features",value:function(t,e){return this.wpcom.req.get("".concat(o,"/features"),t,e)}}]),t}()},209:function(t,e){"use strict";e.Z=[{name:"categoriesList",subpath:"categories"},{name:"commentsList",subpath:"comments"},{name:"domainsList",subpath:"domains"},{name:"embedsList",subpath:"embeds"},{name:"followsList",subpath:"follows"},{name:"mediaList",subpath:"media"},{name:"pageTemplates",subpath:"page-templates"},{name:"pluginsList",subpath:"plugins"},{name:"postsList",subpath:"posts"},{name:"postTypesList",subpath:"post-types"},{name:"shortcodesList",subpath:"shortcodes"},{name:"stats",subpath:"stats"},{name:"statsClicks",subpath:"stats/clicks"},{name:"statsCommentFollowers",subpath:"stats/comment-followers"},{name:"statsComments",subpath:"stats/comments"},{name:"statsCountryViews",subpath:"stats/country-views"},{name:"statsFollowers",subpath:"stats/followers"},{name:"statsInsights",subpath:"stats/insights"},{name:"statsPublicize",subpath:"stats/publicize"},{name:"statsReferrers",subpath:"stats/referrers"},{name:"statsSearchTerms",subpath:"stats/search-terms"},{name:"statsStreak",subpath:"stats/streak"},{name:"statsSummary",subpath:"stats/summary"},{name:"statsTags",subpath:"stats/tags"},{name:"statsTopAuthors",subpath:"stats/top-authors"},{name:"statsTopPosts",subpath:"stats/top-posts"},{name:"statsVideoPlays",subpath:"stats/video-plays"},{name:"statsVisits",subpath:"stats/visits"},{name:"tagsList",subpath:"tags"},{name:"usersList",subpath:"users"},{name:"wpcomPluginsList",subpath:"wpcom-plugins"}]},8729:function(t,e){"use strict";e.Z=[{name:"likesList",subpath:"likes"},{name:"subscribersList",subpath:"subscribers"}]},3388:function(t,e,n){"use strict";function r(t,e,n){if(!e)throw new Error("`site id` is not correctly defined");if(!(this instanceof r))return new r(t,e,n);this.wpcom=n,this._sid=e,this._slug=t}n.d(e,{Z:function(){return r}}),r.prototype.slug=function(t){this._slug=t},r.prototype.get=function(t,e){var n="/sites/"+this._sid+"/categories/slug:"+this._slug;return this.wpcom.req.get(n,t,e)},r.prototype.add=function(t,e,n){var r="/sites/"+this._sid+"/categories/new";return this.wpcom.req.post(r,t,e,n)},r.prototype.update=function(t,e,n){var r="/sites/"+this._sid+"/categories/slug:"+this._slug;return this.wpcom.req.put(r,t,e,n)},r.prototype.delete=r.prototype.del=function(t,e){var n="/sites/"+this._sid+"/categories/slug:"+this._slug+"/delete";return this.wpcom.req.del(n,t,e)}},1832:function(t,e,n){"use strict";n.d(e,{Z:function(){return i}});var r=n(7369);function i(t,e,n,r){if(!n)throw new Error("`site id` is not correctly defined");if(!(this instanceof i))return new i(t,e,n,r);this.wpcom=r,this._cid=t,this._pid=e,this._sid=n}i.prototype.get=function(t,e){var n="/sites/"+this._sid+"/comments/"+this._cid;return this.wpcom.req.get(n,t,e)},i.prototype.replies=function(t,e){var n="/sites/"+this._sid+"/posts/"+this._pid+"/replies/";return this.wpcom.req.get(n,t,e)},i.prototype.add=function(t,e,n){void 0===n&&(void 0===e?(e=t,t={}):"function"==typeof e&&(n=e,e=t,t={})),e="string"==typeof e?{content:e}:e;var r="/sites/"+this._sid+"/posts/"+this._pid+"/replies/new";return this.wpcom.req.post(r,t,e,n)},i.prototype.update=function(t,e,n){"function"==typeof e&&(n=e,e=t,t={}),e="string"==typeof e?{content:e}:e;var r="/sites/"+this._sid+"/comments/"+this._cid;return this.wpcom.req.put(r,t,e,n)},i.prototype.reply=function(t,e,n){"function"==typeof e&&(n=e,e=t,t={}),e="string"==typeof e?{content:e}:e;var r="/sites/"+this._sid+"/comments/"+this._cid+"/replies/new";return this.wpcom.req.post(r,t,e,n)},i.prototype.del=i.prototype.delete=function(t,e){var n="/sites/"+this._sid+"/comments/"+this._cid+"/delete";return this.wpcom.req.del(n,t,e)},i.prototype.like=function(){return(0,r.Z)(this._cid,this._sid,this.wpcom)},i.prototype.likesList=function(t,e){var n="/sites/"+this._sid+"/comments/"+this._cid+"/likes";return this.wpcom.req.get(n,t,e)}},7369:function(t,e,n){"use strict";function r(t,e,n){if(!e)throw new Error("`site id` is not correctly defined");if(!t)throw new Error("`comment id` is not correctly defined");if(!(this instanceof r))return new r(t,e,n);this.wpcom=n,this._cid=t,this._sid=e}n.d(e,{Z:function(){return r}}),r.prototype.mine=r.prototype.state=function(t,e){var n="/sites/"+this._sid+"/comments/"+this._cid+"/likes/mine";return this.wpcom.req.get(n,t,e)},r.prototype.add=function(t,e){var n="/sites/"+this._sid+"/comments/"+this._cid+"/likes/new";return this.wpcom.req.post(n,t,e)},r.prototype.del=r.prototype.delete=function(t,e){var n="/sites/"+this._sid+"/comments/"+this._cid+"/likes/mine/delete";return this.wpcom.req.del(n,t,e)}},2096:function(t,e,n){"use strict";var r=n(4659),i=n(4730),o=function(){function t(e,n){if((0,r.Z)(this,t),!e)throw new Error("`site id` is not correctly defined");if(!(this instanceof t))return new t(e,n);this.wpcom=n,this._sid=e,this.path="/sites/".concat(this._sid,"/vouchers")}return(0,i.Z)(t,[{key:"list",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1?arguments[1]:void 0;return t.apiNamespace="wpcom/v2",this.wpcom.req.get(this.path,t,e)}},{key:"get",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0;return e.apiNamespace="wpcom/v2",this.wpcom.req.get("".concat(this.path,"/").concat(t),e,n)}},{key:"assign",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0;return e.apiNamespace="wpcom/v2",this.wpcom.req.post("".concat(this.path,"/").concat(t,"/assign"),e,{},n)}}]),t}();e.Z=o},7569:function(t,e,n){"use strict";var r=n(4659),i=n(4730),o=function(){function t(e,n){if((0,r.Z)(this,t),!(this instanceof t))return new t(e,n);this._sid=e,this.path="".concat("/sites","/").concat(this._sid,"/domains"),this.wpcom=n}return(0,i.Z)(t,[{key:"getPrimary",value:function(t,e){return this.wpcom.req.get("".concat(this.path,"/primary"),t,e)}},{key:"setPrimary",value:function(t,e){return this.wpcom.req.put("".concat(this.path,"/primary"),{},{domain:t},e)}},{key:"getRedirect",value:function(t,e){return this.wpcom.req.get("".concat(this.path,"/redirect"),t,e)}},{key:"setRedirect",value:function(t,e){return"string"==typeof t&&(t={location:t}),this.wpcom.req.put("".concat(this.path,"/redirect"),{},t,e)}}]),t}();e.Z=o},8447:function(t,e,n){"use strict";function r(t,e){if(!t)throw new Error("`site id` is not correctly defined");if(!(this instanceof r))return new r(t,e);this.wpcom=e,this._sid=t}n.d(e,{Z:function(){return r}}),r.prototype.mine=r.prototype.state=function(t,e){var n="/sites/"+this._sid+"/follows/mine";return this.wpcom.req.get(n,t,e)},r.prototype.follow=r.prototype.add=function(t,e){var n="/sites/"+this._sid+"/follows/new";return this.wpcom.req.put(n,t,null,e)},r.prototype.unfollow=r.prototype.del=function(t,e){var n="/sites/"+this._sid+"/follows/mine/delete";return this.wpcom.req.del(n,t,null,e)}},2579:function(t,e,n){"use strict";var r=n(4659),i=n(4730),o=n(8049),s=n.n(o),u=n(3388),c=n(1832),a=n(8447),p=n(8837),f=n(3164),l=n(5489),h=n(7187),d=n(7569),m=n(361),y=n(150),w=n(1986),g=n(2096),v=n(1753),_=n(4866),b=n(209),C=n(9426),k=s()("wpcom:site"),Z=function(){function t(e,n){if((0,r.Z)(this,t),!(this instanceof t))return new t(e,n);this.wpcom=n,k("set %o site id",e),this._id=encodeURIComponent(e),this.path="".concat("/sites","/").concat(this._id)}return(0,i.Z)(t,[{key:"get",value:function(t,e){return this.wpcom.req.get(this.path,t,e)}},{key:"post",value:function(t){return new f.Z(t,this._id,this.wpcom)}},{key:"addPost",value:function(t,e){return new f.Z(null,this._id,this.wpcom).add(t,e)}},{key:"deletePost",value:function(t,e){return new f.Z(t,this._id,this.wpcom).delete(e)}},{key:"media",value:function(t){return new p.Z(t,this._id,this.wpcom)}},{key:"addMediaFiles",value:function(t,e,n){return new p.Z(null,this._id,this.wpcom).addFiles(t,e,n)}},{key:"addMediaUrls",value:function(t,e,n){return new p.Z(null,this._id,this.wpcom).addUrls(t,e,n)}},{key:"deleteMedia",value:function(t,e){return new p.Z(t,this._id,this.wpcom).del(e)}},{key:"comment",value:function(t){return new c.Z(t,null,this._id,this.wpcom)}},{key:"follow",value:function(){return new a.Z(this._id,this.wpcom)}},{key:"plugin",value:function(t){return new m.Z(t,this._id,this.wpcom)}},{key:"wpcomPlugin",value:function(t){return new _.Z(t,this._id,this.wpcom)}},{key:"category",value:function(t){return new u.Z(t,this._id,this.wpcom)}},{key:"tag",value:function(t){return new l.Z(t,this._id,this.wpcom)}},{key:"taxonomy",value:function(t){return new w.Z(t,this._id,this.wpcom)}},{key:"creditVouchers",value:function(){return new g.Z(this._id,this.wpcom)}},{key:"postType",value:function(t){return new h.Z(t,this._id,this.wpcom)}},{key:"settings",value:function(){return new y.Z(this._id,this.wpcom)}},{key:"domain",value:function(){return new d.Z(this._id,this.wpcom)}},{key:"postCounts",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"post",e=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0;return"function"==typeof e&&(n=e,e={}),this.wpcom.req.get("".concat(this.path,"/post-counts/").concat(t),e,n)}},{key:"renderShortcode",value:function(t,e,n){if("string"!=typeof t)throw new TypeError("expected a url String");return"function"==typeof e&&(n=e,e={}),(e=e||{}).shortcode=t,this.wpcom.req.get("".concat(this.path,"/shortcodes/render"),e,n)}},{key:"renderEmbed",value:function(t,e,n){if("string"!=typeof t)throw new TypeError("expected an embed String");return"function"==typeof e&&(n=e,e={}),(e=e||{}).embed_url=t,this.wpcom.req.get("".concat(this.path,"/embeds/render"),e,n)}},{key:"statsReferrersSpamNew",value:function(t,e){var n="".concat(this.path,"/stats/referrers/spam/new");return this.wpcom.req.post(n,{domain:t},null,e)}},{key:"statsReferrersSpamDelete",value:function(t,e){var n="".concat(this.path,"/stats/referrers/spam/delete");return this.wpcom.req.post(n,{domain:t},null,e)}},{key:"statsVideo",value:function(t,e,n){var r="".concat(this.path,"/stats/video/").concat(t);return"function"==typeof e&&(n=e,e={}),this.wpcom.req.get(r,e,n)}},{key:"statsPostViews",value:function(t,e,n){var r="".concat(this.path,"/stats/post/").concat(t);return"function"==typeof e&&(n=e,e={}),this.wpcom.req.get(r,e,n)}},{key:"wordAds",value:function(){return new v.Z(this._id,this.wpcom)}}]),t}();(0,C.Z)(Z,b.Z,(function(t,e){return"/sites/".concat(e._id,"/").concat(t.subpath)})),e.Z=Z},8837:function(t,e,n){"use strict";n.d(e,{Z:function(){return c}});var r=n(8049),i=n.n(r),o=n(6426),s=i()("wpcom:media");function u(t){var e,n,r,i,u=[];for(t=Array.isArray(t)?t:[t],e=0;e<t.length;e++){"string"==typeof(n=t[e])&&(n=(0,o.U)(n));var c=!!n._readableState,a="undefined"!=typeof File&&n instanceof File;if(s("isStream: %s",c),s("isFile: %s",a),!a&&!c){for(r in n)s("add %o => %o",r,n[r]),"file"!==r&&(i="attrs["+e+"]["+r+"]",u.push([i,n[r]]));"string"==typeof(n=n.file)&&(n=(0,o.U)(n))}u.push(["media[]",n])}return u}function c(t,e,n){if(!(this instanceof c))return new c(t,e,n);this.wpcom=n,this._sid=e,this._id=t,this._id||s("WARN: media `id` is not defined")}c.prototype.get=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1?arguments[1]:void 0;t.apiVersion=t.apiVersion||"1.2";var n="/sites/"+this._sid+"/media/"+this._id;return this.wpcom.req.get(n,t,e)},c.prototype.update=function(t,e,n){var r={path:"/sites/"+this._sid+"/media/"+this._id};return this.wpcom.req.put(r,t,e,n)},c.prototype.edit=function(t,e,n){"function"!=typeof e&&e||(n=e,e=t,t={});var r={path:"/sites/"+this._sid+"/media/"+this._id+"/edit"};if(e&&e.media){for(var i in r.formData=[["media",e.media]],delete e.media,e)r.formData.push(["attrs[".concat(i,"]"),e[i]]);e=null}return this.wpcom.req.put(r,t,e,n)},c.prototype.addFiles=function(t,e,n){void 0===n&&(void 0===e?(e=t,t={}):"function"==typeof e&&(n=e,e=t,t={}));var r={path:"/sites/"+this._sid+"/media/new",formData:u(e)};return this.wpcom.req.post(r,t,null,n)},c.prototype.addUrls=function(t,e,n){void 0===n&&(void 0===e?(e=t,t={}):"function"==typeof e&&(n=e,e=t,t={}));var r,i,o,s,u="/sites/"+this._sid+"/media/new",c={media_urls:[]};for(e=Array.isArray(e)?e:[e],r=0;r<e.length;r++){if("string"==typeof(i=e[r]))o=i;else{for(s in c.attrs||(c.attrs=[]),c.attrs[r]={},i)"url"!==s&&(c.attrs[r][s]=i[s]);o=i.url}c.media_urls.push(o)}return this.wpcom.req.post(u,t,c,n)},c.prototype.delete=c.prototype.del=function(t,e){var n="/sites/"+this._sid+"/media/"+this._id+"/delete";return this.wpcom.req.del(n,t,e)}},361:function(t,e,n){"use strict";var r=n(4659),i=n(4730),o=function(){function t(e,n,i){if((0,r.Z)(this,t),!(this instanceof t))return new t(e,n,i);if(!e)throw new Error("`slug` is not correctly defined");this._slug=encodeURIComponent(e),this._sid=n,this.wpcom=i;var o="".concat("/sites","/").concat(this._sid,"/plugins");this.pluginPath="".concat(o,"/").concat(this._slug)}return(0,i.Z)(t,[{key:"get",value:function(t,e){return this.wpcom.req.get(this.pluginPath,t,e)}},{key:"update",value:function(t,e,n){return this.wpcom.req.put(this.pluginPath,t,e,n)}},{key:"updateVersion",value:function(t,e){return this.wpcom.req.put("".concat(this.pluginPath,"/update"),t,e)}},{key:"install",value:function(t,e){return this.wpcom.req.put("".concat(this.pluginPath,"/install"),t,e)}},{key:"delete",value:function(t,e){return this.wpcom.req.put("".concat(this.pluginPath,"/delete"),t,e)}},{key:"activate",value:function(t,e){return this.update(t,{active:!0},e)}},{key:"deactivate",value:function(t,e){return this.update(t,{active:!1},e)}},{key:"enableAutoupdate",value:function(t,e){return this.update(t,{autoupdate:!0},e)}},{key:"disableAutoupdate",value:function(t,e){return this.update(t,{autoupdate:!1},e)}}]),t}();e.Z=o},7187:function(t,e,n){"use strict";n.d(e,{Z:function(){return o}});var r=n(4659),i=n(4730),o=function(){function t(e,n,i){if((0,r.Z)(this,t),!n)throw new TypeError("`siteId` is not correctly defined");if(!e)throw new TypeError("`postType` is not correctly defined");if(!(this instanceof t))return new t(e,n,i);this.wpcom=i,this._siteId=encodeURIComponent(n),this._postType=encodeURIComponent(e),this._rootPath="/sites/".concat(this._siteId,"/post-types/").concat(this._postType)}return(0,i.Z)(t,[{key:"taxonomiesList",value:function(t,e){var n="".concat(this._rootPath,"/taxonomies");return this.wpcom.req.get(n,t,e)}}]),t}()},3164:function(t,e,n){"use strict";var r=n(4659),i=n(4730),o=n(8049),s=n.n(o),u=n(9932),c=n(3185),a=n(1832),p=n(2250),f=n(9426),l=n(8729),h=s()("wpcom:post"),d=function(){function t(e,n,i){if((0,r.Z)(this,t),!(this instanceof t))return new t(e,n,i);this.wpcom=i,this._sid=n,this.path="".concat("/sites","/").concat(this._sid,"/posts"),"object"!=typeof(e=e||{})?this._id=e:(this._id=e.id,this._slug=e.slug)}return(0,i.Z)(t,[{key:"id",value:function(t){this._id=t}},{key:"slug",value:function(t){this._slug=t}},{key:"getPostPath",value:function(){return"".concat(this.path,"/").concat(this._id)}},{key:"get",value:function(t,e){return!this._id&&this._slug?this.getBySlug(t,e):this.wpcom.req.get(this.getPostPath(),t,e)}},{key:"getBySlug",value:function(t,e){return this.wpcom.req.get("".concat(this.path,"/slug:").concat(this._slug),t,e)}},{key:"add",value:function(t,e,n){var r=this;return void 0===n&&(void 0===e?(e=t,t={}):"function"==typeof e&&(n=e,e=t,t={})),this.wpcom.req.post("".concat(this.path,"/new"),t,e).then((function(t){if(r._id=t.ID,h("Set post _id: %s",r._id),r._slug=t.slug,h("Set post _slug: %s",r._slug),"function"!=typeof n)return Promise.resolve(t);n(null,t)})).catch((function(t){if("function"!=typeof n)return Promise.reject(t);n(t)}))}},{key:"update",value:function(t,e,n){return this.wpcom.req.put(this.getPostPath(),t,e,n)}},{key:"delete",value:function(t,e){var n="".concat(this.getPostPath(),"/delete");return this.wpcom.req.del(n,t,e)}},{key:"del",value:function(t,e){return this.delete(t,e)}},{key:"restore",value:function(t,e){return this.wpcom.req.put("".concat(this.getPostPath(),"/restore"),t,null,e)}},{key:"related",value:function(t,e){return this.wpcom.req.put("".concat(this.getPostPath(),"/related"),t,null,e)}},{key:"comment",value:function(t){return new a.Z(t,this._id,this._sid,this.wpcom)}},{key:"comments",value:function(t,e){return new a.Z(null,this._id,this._sid,this.wpcom).replies(t,e)}},{key:"like",value:function(){return new u.Z(this._id,this._sid,this.wpcom)}},{key:"reblog",value:function(){return new c.Z(this._id,this._sid,this.wpcom)}},{key:"subscriber",value:function(){return new p.Z(this._id,this._sid,this.wpcom)}}]),t}();(0,f.Z)(d,l.Z,(function(t,e){return"/sites/".concat(e._sid,"/posts/").concat(e._id,"/").concat(t.subpath)})),e.Z=d},9932:function(t,e,n){"use strict";function r(t,e,n){if(!e)throw new Error("`site id` is not correctly defined");if(!t)throw new Error("`post id` is not correctly defined");if(!(this instanceof r))return new r(t,e,n);this.wpcom=n,this._pid=t,this._sid=e}n.d(e,{Z:function(){return r}}),r.prototype.mine=r.prototype.state=function(t,e){var n="/sites/"+this._sid+"/posts/"+this._pid+"/likes/mine";return this.wpcom.req.get(n,t,e)},r.prototype.add=function(t,e){var n="/sites/"+this._sid+"/posts/"+this._pid+"/likes/new";return this.wpcom.req.put(n,t,null,e)},r.prototype.del=r.prototype.delete=function(t,e){var n="/sites/"+this._sid+"/posts/"+this._pid+"/likes/mine/delete";return this.wpcom.req.del(n,t,e)}},3185:function(t,e,n){"use strict";function r(t,e,n){if(!e)throw new Error("`site id` is not correctly defined");if(!t)throw new Error("`post id` is not correctly defined");if(!(this instanceof r))return new r(t,e,n);this.wpcom=n,this._pid=t,this._sid=e}n.d(e,{Z:function(){return r}}),r.prototype.mine=r.prototype.state=function(t,e){var n="/sites/"+this._sid+"/posts/"+this._pid+"/reblogs/mine";return this.wpcom.req.get(n,t,e)},r.prototype.add=function(t,e,n){if("function"==typeof e&&(n=e,e=t,t={}),e&&!e.destination_site_id)return n(new Error("destination_site_id is not defined"));var r="/sites/"+this._sid+"/posts/"+this._pid+"/reblogs/new";return this.wpcom.req.put(r,t,e,n)},r.prototype.to=function(t,e,n){return void 0===n&&(void 0===e?e=null:"function"==typeof e&&(n=e,e=null)),this.add({note:e,destination_site_id:t},n)}},2250:function(t,e,n){"use strict";var r=n(4659),i=n(4730),o=function(){function t(e,n,i){if((0,r.Z)(this,t),!n)throw new Error("`side id` is not correctly defined");if(!e)throw new Error("`post id` is not correctly defined");if(!(this instanceof t))return new t(e,n,i);this.wpcom=i,this._id=e,this._sid=n,this.path="/sites/".concat(this._sid,"/posts/").concat(this._id,"/subscribers")}return(0,i.Z)(t,[{key:"mine",value:function(t,e){return this.wpcom.req.get("".concat(this.path,"/mine"),t,e)}},{key:"add",value:function(t,e){return this.wpcom.req.put("".concat(this.path,"/new"),t,null,e)}},{key:"del",value:function(t,e){return this.wpcom.req.del("".concat(this.path,"/mine/delete"),t,e)}}]),t}();o.prototype.state=o.prototype.mine,o.prototype.delete=o.prototype.del,e.Z=o},150:function(t,e,n){"use strict";var r=n(1119),i=n(4659),o=n(4730),s=function(){function t(e,n){if((0,i.Z)(this,t),!e)throw new Error("`site id` is not correctly defined");if(!(this instanceof t))return new t(e,n);this.wpcom=n,this._sid=e,this.path="/sites/".concat(this._sid,"/settings")}return(0,o.Z)(t,[{key:"get",value:function(t,e){return this.wpcom.req.get(this.path,t,e)}},{key:"getOption",value:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(){},r={fields:"settings"};return new Promise((function(i,o){e.wpcom.req.get(e.path,r,(function(e,r){if(e)return n(e),o(e);if(!r)return n(),i();var s=r.settings;return s&&void 0!==s[t]?(n(null,s[t]),i(s[t])):(n(null,r),i(r))}))}))}},{key:"update",value:function(t,e,n){return this.wpcom.req.put(this.path,t,e,n)}},{key:"setOption",value:function(t,e,n){return this.wpcom.req.put(this.path,{},(0,r.Z)({},t,e),n)}}]),t}();e.Z=s},5489:function(t,e,n){"use strict";function r(t,e,n){if(!e)throw new Error("`site id` is not correctly defined");if(!(this instanceof r))return new r(t,e,n);this.wpcom=n,this._sid=e,this._slug=t}n.d(e,{Z:function(){return r}}),r.prototype.slug=function(t){this._slug=t},r.prototype.get=function(t,e){var n="/sites/"+this._sid+"/tags/slug:"+this._slug;return this.wpcom.req.get(n,t,e)},r.prototype.add=function(t,e,n){var r="/sites/"+this._sid+"/tags/new";return this.wpcom.req.post(r,t,e,n)},r.prototype.update=function(t,e,n){var r="/sites/"+this._sid+"/tags/slug:"+this._slug;return this.wpcom.req.put(r,t,e,n)},r.prototype.delete=r.prototype.del=function(t,e){var n="/sites/"+this._sid+"/tags/slug:"+this._slug+"/delete";return this.wpcom.req.del(n,t,e)}},1986:function(t,e,n){"use strict";var r=n(4659),i=n(4730),o=n(4046),s=function(){function t(e,n,i){if((0,r.Z)(this,t),!n)throw new TypeError("`siteId` is not correctly defined");if(!e)throw new TypeError("`taxonomy` is not correctly defined");if(!(this instanceof t))return new t(e,n,i);this.wpcom=i,this._siteId=encodeURIComponent(n),this._taxonomy=encodeURIComponent(e),this._rootPath="/sites/".concat(this._siteId,"/taxonomies/").concat(this._taxonomy)}return(0,i.Z)(t,[{key:"termsList",value:function(t,e){var n="".concat(this._rootPath,"/terms");return this.wpcom.req.get(n,t,e)}},{key:"term",value:function(t){return new o.Z(t,this._taxonomy,this._siteId,this.wpcom)}}]),t}();e.Z=s},4046:function(t,e,n){"use strict";var r=n(4659),i=n(4730),o=function(){function t(e,n,i,o){if((0,r.Z)(this,t),!i)throw new TypeError("`siteId` is not correctly defined");if(!n)throw new TypeError("`taxonomy` is not correctly defined");if(!(this instanceof t))return new t(e,n,i,o);this.wpcom=o,this._siteId=encodeURIComponent(i),this._taxonomy=encodeURIComponent(n),this._term=encodeURIComponent(e),this._taxonomyPath="/sites/".concat(this._siteId,"/taxonomies/").concat(this._taxonomy,"/terms")}return(0,i.Z)(t,[{key:"get",value:function(t,e){if(!this._term)throw new Error("`term` is not correctly defined");"function"==typeof t&&(e=t,t={});var n="".concat(this._taxonomyPath,"/slug:").concat(this._term);return this.wpcom.req.get(n,t,e)}},{key:"add",value:function(t,e){if(!t||!t.name)throw new Error("`params.name` is not correctly defined");var n="".concat(this._taxonomyPath,"/new");return this.wpcom.req.post(n,t,e)}},{key:"delete",value:function(t){if(!this._term)throw new Error("`term` is not correctly defined");var e="".concat(this._taxonomyPath,"/slug:").concat(this._term,"/delete");return this.wpcom.req.del(e,t)}},{key:"update",value:function(t,e){if(!this._term)throw new Error("`term` is not correctly defined");var n="".concat(this._taxonomyPath,"/slug:").concat(this._term);return this.wpcom.req.put(n,t,e)}}]),t}();e.Z=o},3243:function(t,e,n){"use strict";function r(t,e){if(!(this instanceof r))return new r(t,e);this._sid=t,this.wpcom=e}n.d(e,{Z:function(){return r}}),r.prototype.get=function(t,e){return this.wpcom.req.get("/sites/"+this._sid+"/wordads/earnings",t,e)}},1753:function(t,e,n){"use strict";n.d(e,{Z:function(){return s}});var r=n(4549),i=n(3243),o=n(1731);function s(t,e){if(!(this instanceof s))return new s(t,e);this._sid=t,this.wpcom=e}s.prototype.settings=function(){return new r.Z(this._sid,this.wpcom)},s.prototype.earnings=function(){return new i.Z(this._sid,this.wpcom)},s.prototype.tos=function(){return new o.Z(this._sid,this.wpcom)}},4549:function(t,e,n){"use strict";function r(t,e){if(!(this instanceof r))return new r(t,e);this._sid=t,this.wpcom=e}n.d(e,{Z:function(){return r}}),r.prototype.get=function(t,e){return this.wpcom.req.get("/sites/"+this._sid+"/wordads/settings",t,e)},r.prototype.update=function(t,e,n){var r="/sites/"+this._sid+"/wordads/settings";return this.wpcom.req.post(r,t,e,n)}},1731:function(t,e,n){"use strict";function r(t,e){if(!(this instanceof r))return new r(t,e);this._sid=t,this.wpcom=e}n.d(e,{Z:function(){return r}}),r.prototype.get=function(t,e){return this.wpcom.req.get("/sites/"+this._sid+"/wordads/tos",t,e)},r.prototype.update=function(t,e,n){var r="/sites/"+this._sid+"/wordads/tos";return this.wpcom.req.post(r,t,e,n)},r.prototype.sign=function(t,e){var n="/sites/"+this._sid+"/wordads/tos";return this.wpcom.req.post(n,t,{tos:"signed"},e)}},4866:function(t,e,n){"use strict";var r=n(4659),i=n(4730),o=function(){function t(e,n,i){if((0,r.Z)(this,t),!(this instanceof t))return new t(e,n,i);if(!e)throw new Error("`slug` is not correctly defined");this._slug=encodeURIComponent(e),this._sid=n,this.wpcom=i;var o="".concat("/sites","/").concat(this._sid,"/wpcom-plugins");this.pluginPath="".concat(o,"/").concat(this._slug)}return(0,i.Z)(t,[{key:"update",value:function(t,e,n){return this.wpcom.req.put(this.pluginPath,t,e,n)}},{key:"activate",value:function(t,e){return this.update(t,{active:!0},e)}},{key:"deactivate",value:function(t,e){return this.update(t,{active:!1},e)}}]),t}();e.Z=o},4308:function(t,e,n){"use strict";function r(t){if(!(this instanceof r))return new r(t);this.wpcom=t}n.d(e,{Z:function(){return r}}),r.prototype.suggest=function(t,e){return this.wpcom.req.get("/users/suggest",t,e)}},6426:function(t,e,n){"use strict";function r(){throw new Error("Cannot call fs functions within the browser")}n.d(e,{U:function(){return r}})},3818:function(t,e,n){"use strict";n.d(e,{Z:function(){return o}});var r=n(8049),i=n.n(r)()("wpcom:pinghub");function o(t){if(!(this instanceof o))return new o(t);this.wpcom=t,this.conns={}}o.prototype.connect=function(t,e){i("connect",t,e);var n=this,r={action:"connect",path:"/pinghub"+t},o=this.conns[t]=this.wpcom.req.get(r,(function(){}));o.onload=function(n){i("onload",t,n),e(null,n)},o.onerror=o.onabort=o.onclose=function(r){i("onerror",t,r),n.remove(t),e(r,null)}},o.prototype.disconnect=function(t){i("disconnect",t);var e={action:"disconnect",path:"/pinghub"+t};this.wpcom.req.get(e,(function(){}))},o.prototype.remove=function(t){i("remove",t),delete this.conns[t]}},781:function(t,e,n){"use strict";n.d(e,{Z:function(){return i}});var r=n(3918);function i(t){this.wpcom=t}i.prototype.get=function(t,e,n){return"function"==typeof e&&(n=e,e={}),r.Z.call(this.wpcom,t,e,null,n)},i.prototype.post=i.prototype.put=function(t,e,n,i){return void 0===i&&(void 0===n?(n=e,e={}):"function"==typeof n&&(i=n,n=e,e={})),(t="string"==typeof t?{path:t}:t).method=t.method||"post",r.Z.call(this.wpcom,t,e,n,i)},i.prototype.del=function(t,e,n){return"function"==typeof e&&(n=e,e={}),this.post(t,e,null,n)}},9426:function(t,e,n){"use strict";n.d(e,{Z:function(){return o}});var r=n(8049),i=n.n(r)()("wpcom:runtime");function o(t,e,n){e.forEach((function(e){i("Adding %o",(e="object"==typeof e?e:{name:e}).name),t.prototype[e.name]=function(t,e){return function(n,r){var i=e(t,this);return this.wpcom.req.get(i,n,r)}}(e,n)}))}},3918:function(t,e,n){"use strict";n.d(e,{Z:function(){return a}});var r=n(9126),i=n.n(r),o=n(8049),s=n.n(o),u=s()("wpcom:send-request"),c=s()("wpcom:send-request:res");function a(t,e,n,r){var o=this;return u("sendRequest(%o )",(t="string"==typeof t?{path:t}:t).path),t.method=(t.method||"get").toUpperCase(),"function"==typeof e&&(r=e,e={}),"function"==typeof n&&(r=n,n=null),(e=e||{}).apiVersion?(t.apiVersion=e.apiVersion,u("apiVersion: %o",t.apiVersion),delete e.apiVersion):t.apiVersion=this.apiVersion,e.apiNamespace&&(t.apiNamespace=e.apiNamespace,u("apiNamespace: %o",t.apiNamespace),delete e.apiNamespace),e.proxyOrigin&&(t.proxyOrigin=e.proxyOrigin,u("proxyOrigin: %o",t.proxyOrigin),delete e.proxyOrigin),e=i().stringify(e,{arrayFormat:"brackets"}),t.query=e,n&&(t.body=n),u("params: %o",t),"function"==typeof r?this.request(t,(function(t,e,n){c(e),r(t,e,n)})):new Promise((function(e,n){o.request(t,(function(t,r){c(r),t?n(t):e(r)}))}))}},8049:function(t,e,n){var r;e.formatArgs=function(e){if(e[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+e[0]+(this.useColors?"%c ":" ")+"+"+t.exports.humanize(this.diff),!this.useColors)return;var n="color: "+this.color;e.splice(1,0,n,"color: inherit");var r=0,i=0;e[0].replace(/%[a-zA-Z%]/g,(function(t){"%%"!==t&&(r++,"%c"===t&&(i=r))})),e.splice(i,0,n)},e.save=function(t){try{t?e.storage.setItem("debug",t):e.storage.removeItem("debug")}catch(n){}},e.load=function(){var t;try{t=e.storage.getItem("debug")}catch(n){}!t&&"undefined"!=typeof process&&"env"in process&&(t=process.env.DEBUG);return t},e.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+)/)},e.storage=function(){try{return localStorage}catch(t){}}(),e.destroy=(r=!1,function(){r||(r=!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`."))}),e.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"],e.log=console.debug||console.log||function(){},t.exports=n(2632)(e),t.exports.formatters.j=function(t){try{return JSON.stringify(t)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}},2632:function(t,e,n){var r=n(5182);t.exports=function(t){function e(t){var n,r,o,s=null;function u(){for(var t=arguments.length,r=new Array(t),i=0;i<t;i++)r[i]=arguments[i];if(u.enabled){var o=u,s=Number(new Date),c=s-(n||s);o.diff=c,o.prev=n,o.curr=s,n=s,r[0]=e.coerce(r[0]),"string"!=typeof r[0]&&r.unshift("%O");var a=0;r[0]=r[0].replace(/%([a-zA-Z%])/g,(function(t,n){if("%%"===t)return"%";a++;var i=e.formatters[n];if("function"==typeof i){var s=r[a];t=i.call(o,s),r.splice(a,1),a--}return t})),e.formatArgs.call(o,r);var p=o.log||e.log;p.apply(o,r)}}return u.namespace=t,u.useColors=e.useColors(),u.color=e.selectColor(t),u.extend=i,u.destroy=e.destroy,Object.defineProperty(u,"enabled",{enumerable:!0,configurable:!1,get:function(){return null!==s?s:(r!==e.namespaces&&(r=e.namespaces,o=e.enabled(t)),o)},set:function(t){s=t}}),"function"==typeof e.init&&e.init(u),u}function i(t,n){var r=e(this.namespace+(void 0===n?":":n)+t);return r.log=this.log,r}function o(t){return t.toString().substring(2,t.toString().length-2).replace(/\.\*\?$/,"*")}return e.debug=e,e.default=e,e.coerce=function(t){if(t instanceof Error)return t.stack||t.message;return t},e.disable=function(){var t=[].concat(r(e.names.map(o)),r(e.skips.map(o).map((function(t){return"-"+t})))).join(",");return e.enable(""),t},e.enable=function(t){var n;e.save(t),e.namespaces=t,e.names=[],e.skips=[];var r=("string"==typeof t?t:"").split(/[\s,]+/),i=r.length;for(n=0;n<i;n++)r[n]&&("-"===(t=r[n].replace(/\*/g,".*?"))[0]?e.skips.push(new RegExp("^"+t.substr(1)+"$")):e.names.push(new RegExp("^"+t+"$")))},e.enabled=function(t){if("*"===t[t.length-1])return!0;var n,r;for(n=0,r=e.skips.length;n<r;n++)if(e.skips[n].test(t))return!1;for(n=0,r=e.names.length;n<r;n++)if(e.names[n].test(t))return!0;return!1},e.humanize=n(1378),e.destroy=function(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")},Object.keys(t).forEach((function(n){e[n]=t[n]})),e.names=[],e.skips=[],e.formatters={},e.selectColor=function(t){for(var n=0,r=0;r<t.length;r++)n=(n<<5)-n+t.charCodeAt(r),n|=0;return e.colors[Math.abs(n)%e.colors.length]},e.enable(e.load()),e}},3830:function(t,e,n){"use strict";var r=n(956);t.exports=function(){var t=r.apply(r,arguments);return t.charAt(0).toUpperCase()+t.slice(1)}},956:function(t){"use strict";t.exports=function(){var t=[].map.call(arguments,(function(t){return t.trim()})).filter((function(t){return t.length})).join("-");return t.length?1!==t.length&&/[_.\- ]+/.test(t)?t.replace(/^[_.\- ]+/,"").toLowerCase().replace(/[_.\- ]+(\w|$)/g,(function(t,e){return e.toUpperCase()})):t[0]===t[0].toLowerCase()&&t.slice(1)!==t.slice(1).toLowerCase()?t:t.toLowerCase():""}},2686:function(t,e){"use strict";e.Z=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i},5302:function(t,e,n){"use strict";var r;n.d(e,{Z:function(){return o}});var i=new Uint8Array(16);function o(){if(!r&&!(r="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return r(i)}},708:function(t,e,n){"use strict";for(var r=n(6525),i=[],o=0;o<256;++o)i.push((o+256).toString(16).substr(1));e.Z=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=(i[t[e+0]]+i[t[e+1]]+i[t[e+2]]+i[t[e+3]]+"-"+i[t[e+4]]+i[t[e+5]]+"-"+i[t[e+6]]+i[t[e+7]]+"-"+i[t[e+8]]+i[t[e+9]]+"-"+i[t[e+10]]+i[t[e+11]]+i[t[e+12]]+i[t[e+13]]+i[t[e+14]]+i[t[e+15]]).toLowerCase();if(!(0,r.Z)(n))throw TypeError("Stringified UUID is invalid");return n}},8767:function(t,e,n){"use strict";var r=n(5302),i=n(708);e.Z=function(t,e,n){var o=(t=t||{}).random||(t.rng||r.Z)();if(o[6]=15&o[6]|64,o[8]=63&o[8]|128,e){n=n||0;for(var s=0;s<16;++s)e[n+s]=o[s];return e}return(0,i.Z)(o)}},6525:function(t,e,n){"use strict";var r=n(2686);e.Z=function(t){return"string"==typeof t&&r.Z.test(t)}},2884:function(t,e,n){var r=n(3830),i=n(7260);function o(t,e){if(e)if("number"==typeof e)s(t,e);else{e.status_code&&s(t,e.status_code),e.error&&(t.name=c(e.error)),e.error_description&&(t.message=e.error_description);var n=e.errors;if(n)o(t,n.length?n[0]:n);for(var r in e)t[r]=e[r];t.status&&(e.method||e.path)&&u(t)}}function s(t,e){t.name=c(i[e]),t.status=t.statusCode=e,u(t)}function u(t){var e=t.status,n=t.method,r=t.path,i=e+" status code",o=n||r;o&&(i+=' for "'),n&&(i+=n),o&&(i+=" "),r&&(i+=r),o&&(i+='"'),t.message=i}function c(t){return r(String(t).replace(/error$/i,""),"error")}t.exports=function t(){for(var e=new Error,n=0;n<arguments.length;n++)o(e,arguments[n]);"function"==typeof Error.captureStackTrace&&Error.captureStackTrace(e,t);return e}},7260:function(t){t.exports={100:"Continue",101:"Switching Protocols",102:"Processing",200:"OK",201:"Created",202:"Accepted",203:"Non-Authoritative Information",204:"No Content",205:"Reset Content",206:"Partial Content",207:"Multi-Status",208:"Already Reported",226:"IM Used",300:"Multiple Choices",301:"Moved Permanently",302:"Found",303:"See Other",304:"Not Modified",305:"Use Proxy",307:"Temporary Redirect",308:"Permanent Redirect",400:"Bad Request",401:"Unauthorized",402:"Payment Required",403:"Forbidden",404:"Not Found",405:"Method Not Allowed",406:"Not Acceptable",407:"Proxy Authentication Required",408:"Request Timeout",409:"Conflict",410:"Gone",411:"Length Required",412:"Precondition Failed",413:"Payload Too Large",414:"URI Too Long",415:"Unsupported Media Type",416:"Range Not Satisfiable",417:"Expectation Failed",418:"I'm a teapot",421:"Misdirected Request",422:"Unprocessable Entity",423:"Locked",424:"Failed Dependency",425:"Unordered Collection",426:"Upgrade Required",428:"Precondition Required",429:"Too Many Requests",431:"Request Header Fields Too Large",500:"Internal Server Error",501:"Not Implemented",502:"Bad Gateway",503:"Service Unavailable",504:"Gateway Timeout",505:"HTTP Version Not Supported",506:"Variant Also Negotiates",507:"Insufficient Storage",508:"Loop Detected",509:"Bandwidth Limit Exceeded",510:"Not Extended",511:"Network Authentication Required"}},6141:function(t){"use strict";t.exports=window.React},3804:function(t){"use strict";t.exports=window.lodash},7997:function(t){"use strict";t.exports=window.wp.components},1417:function(t){"use strict";t.exports=window.wp.compose},5707:function(t){"use strict";t.exports=window.wp.data},3027:function(t){"use strict";t.exports=window.wp.element},3163:function(t){"use strict";t.exports=window.wp.i18n},1200:function(t){"use strict";t.exports=window.wp.plugins},8675:function(t){"use strict";t.exports=window.wp.reactI18n}},e={};function n(r){var i=e[r];if(void 0!==i)return i.exports;var o=e[r]={exports:{}};return t[r](o,o.exports,n),o.exports}n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,{a:e}),e},n.d=function(t,e){for(var r in e)n.o(e,r)&&!n.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},function(){var t;n.g.importScripts&&(t=n.g.location+"");var e=n.g.document;if(!t&&e&&(e.currentScript&&(t=e.currentScript.src),!t)){var r=e.getElementsByTagName("script");r.length&&(t=r[r.length-1].src)}if(!t)throw new Error("Automatic publicPath is not supported in this browser");t=t.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),n.p=t}();var r={};!function(){"use strict";n.r(r);n(5840),n(8814)}(),window.EditingToolkit=r}();
1
+ !function(){var t={5270:function(t){t.exports=function(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r},t.exports.default=t.exports,t.exports.__esModule=!0},1232:function(t,e,n){var r=n(5270);t.exports=function(t){if(Array.isArray(t))return r(t)},t.exports.default=t.exports,t.exports.__esModule=!0},1357:function(t,e,n){"use strict";function r(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}n.d(e,{Z:function(){return r}})},9507:function(t,e,n){"use strict";function r(t){if(Array.isArray(t))return t}n.d(e,{Z:function(){return r}})},4659:function(t,e,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}n.d(e,{Z:function(){return r}})},4730:function(t,e,n){"use strict";function r(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function i(t,e,n){return e&&r(t.prototype,e),n&&r(t,n),t}n.d(e,{Z:function(){return i}})},1119:function(t,e,n){"use strict";function r(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}n.d(e,{Z:function(){return r}})},7560:function(t,e,n){"use strict";function r(){return(r=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t}).apply(this,arguments)}n.d(e,{Z:function(){return r}})},6483:function(t,e,n){"use strict";function r(t,e){var n=t&&("undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"]);if(null!=n){var r,i,o=[],_n=!0,s=!1;try{for(n=n.call(t);!(_n=(r=n.next()).done)&&(o.push(r.value),!e||o.length!==e);_n=!0);}catch(u){s=!0,i=u}finally{try{_n||null==n.return||n.return()}finally{if(s)throw i}}return o}}n.d(e,{Z:function(){return r}})},9007:function(t,e,n){"use strict";function r(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}n.d(e,{Z:function(){return r}})},9394:function(t,e,n){"use strict";n.d(e,{Z:function(){return o}});var r=n(1119);function i(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function o(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?i(Object(n),!0).forEach((function(e){(0,r.Z)(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}},3258:function(t,e,n){"use strict";n.d(e,{Z:function(){return u}});var r=n(9507),i=n(6483),o=n(237),s=n(9007);function u(t,e){return(0,r.Z)(t)||(0,i.Z)(t,e)||(0,o.Z)(t,e)||(0,s.Z)()}},237:function(t,e,n){"use strict";n.d(e,{Z:function(){return i}});var r=n(1357);function i(t,e){if(t){if("string"==typeof t)return(0,r.Z)(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?(0,r.Z)(t,e):void 0}}},1557:function(t){t.exports=function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)},t.exports.default=t.exports,t.exports.__esModule=!0},1359:function(t){t.exports=function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")},t.exports.default=t.exports,t.exports.__esModule=!0},5182:function(t,e,n){var r=n(1232),i=n(1557),o=n(6487),s=n(1359);t.exports=function(t){return r(t)||i(t)||o(t)||s()},t.exports.default=t.exports,t.exports.__esModule=!0},6487:function(t,e,n){var r=n(5270);t.exports=function(t,e){if(t){if("string"==typeof t)return r(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(t,e):void 0}},t.exports.default=t.exports,t.exports.__esModule=!0},3421:function(t,e){"use strict";var n=decodeURIComponent,r=encodeURIComponent,i=/; */,o=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/;function s(t,e){try{return e(t)}catch(n){return t}}},2699:function(t){"use strict";var e,n="object"==typeof Reflect?Reflect:null,r=n&&"function"==typeof n.apply?n.apply:function(t,e,n){return Function.prototype.apply.call(t,e,n)};e=n&&"function"==typeof n.ownKeys?n.ownKeys:Object.getOwnPropertySymbols?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:function(t){return Object.getOwnPropertyNames(t)};var i=Number.isNaN||function(t){return t!=t};function o(){o.init.call(this)}t.exports=o,t.exports.once=function(t,e){return new Promise((function(n,r){function i(){void 0!==o&&t.removeListener("error",o),n([].slice.call(arguments))}var o;"error"!==e&&(o=function(n){t.removeListener(e,i),r(n)},t.once("error",o)),t.once(e,i)}))},o.EventEmitter=o,o.prototype._events=void 0,o.prototype._eventsCount=0,o.prototype._maxListeners=void 0;var s=10;function u(t){if("function"!=typeof t)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof t)}function c(t){return void 0===t._maxListeners?o.defaultMaxListeners:t._maxListeners}function a(t,e,n,r){var i,o,s,a;if(u(n),void 0===(o=t._events)?(o=t._events=Object.create(null),t._eventsCount=0):(void 0!==o.newListener&&(t.emit("newListener",e,n.listener?n.listener:n),o=t._events),s=o[e]),void 0===s)s=o[e]=n,++t._eventsCount;else if("function"==typeof s?s=o[e]=r?[n,s]:[s,n]:r?s.unshift(n):s.push(n),(i=c(t))>0&&s.length>i&&!s.warned){s.warned=!0;var p=new Error("Possible EventEmitter memory leak detected. "+s.length+" "+String(e)+" listeners added. Use emitter.setMaxListeners() to increase limit");p.name="MaxListenersExceededWarning",p.emitter=t,p.type=e,p.count=s.length,a=p,console&&console.warn&&console.warn(a)}return t}function p(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function f(t,e,n){var r={fired:!1,wrapFn:void 0,target:t,type:e,listener:n},i=p.bind(r);return i.listener=n,r.wrapFn=i,i}function l(t,e,n){var r=t._events;if(void 0===r)return[];var i=r[e];return void 0===i?[]:"function"==typeof i?n?[i.listener||i]:[i]:n?function(t){for(var e=new Array(t.length),n=0;n<e.length;++n)e[n]=t[n].listener||t[n];return e}(i):d(i,i.length)}function h(t){var e=this._events;if(void 0!==e){var n=e[t];if("function"==typeof n)return 1;if(void 0!==n)return n.length}return 0}function d(t,e){for(var n=new Array(e),r=0;r<e;++r)n[r]=t[r];return n}Object.defineProperty(o,"defaultMaxListeners",{enumerable:!0,get:function(){return s},set:function(t){if("number"!=typeof t||t<0||i(t))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+t+".");s=t}}),o.init=function(){void 0!==this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},o.prototype.setMaxListeners=function(t){if("number"!=typeof t||t<0||i(t))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+t+".");return this._maxListeners=t,this},o.prototype.getMaxListeners=function(){return c(this)},o.prototype.emit=function(t){for(var e=[],n=1;n<arguments.length;n++)e.push(arguments[n]);var i="error"===t,o=this._events;if(void 0!==o)i=i&&void 0===o.error;else if(!i)return!1;if(i){var s;if(e.length>0&&(s=e[0]),s instanceof Error)throw s;var u=new Error("Unhandled error."+(s?" ("+s.message+")":""));throw u.context=s,u}var c=o[t];if(void 0===c)return!1;if("function"==typeof c)r(c,this,e);else{var a=c.length,p=d(c,a);for(n=0;n<a;++n)r(p[n],this,e)}return!0},o.prototype.addListener=function(t,e){return a(this,t,e,!1)},o.prototype.on=o.prototype.addListener,o.prototype.prependListener=function(t,e){return a(this,t,e,!0)},o.prototype.once=function(t,e){return u(e),this.on(t,f(this,t,e)),this},o.prototype.prependOnceListener=function(t,e){return u(e),this.prependListener(t,f(this,t,e)),this},o.prototype.removeListener=function(t,e){var n,r,i,o,s;if(u(e),void 0===(r=this._events))return this;if(void 0===(n=r[t]))return this;if(n===e||n.listener===e)0==--this._eventsCount?this._events=Object.create(null):(delete r[t],r.removeListener&&this.emit("removeListener",t,n.listener||e));else if("function"!=typeof n){for(i=-1,o=n.length-1;o>=0;o--)if(n[o]===e||n[o].listener===e){s=n[o].listener,i=o;break}if(i<0)return this;0===i?n.shift():function(t,e){for(;e+1<t.length;e++)t[e]=t[e+1];t.pop()}(n,i),1===n.length&&(r[t]=n[0]),void 0!==r.removeListener&&this.emit("removeListener",t,s||e)}return this},o.prototype.off=o.prototype.removeListener,o.prototype.removeAllListeners=function(t){var e,n,r;if(void 0===(n=this._events))return this;if(void 0===n.removeListener)return 0===arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==n[t]&&(0==--this._eventsCount?this._events=Object.create(null):delete n[t]),this;if(0===arguments.length){var i,o=Object.keys(n);for(r=0;r<o.length;++r)"removeListener"!==(i=o[r])&&this.removeAllListeners(i);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if("function"==typeof(e=n[t]))this.removeListener(t,e);else if(void 0!==e)for(r=e.length-1;r>=0;r--)this.removeListener(t,e[r]);return this},o.prototype.listeners=function(t){return l(this,t,!0)},o.prototype.rawListeners=function(t){return l(this,t,!1)},o.listenerCount=function(t,e){return"function"==typeof t.listenerCount?t.listenerCount(e):h.call(t,e)},o.prototype.listenerCount=h,o.prototype.eventNames=function(){return this._eventsCount>0?e(this._events):[]}},4495:function(t,e,n){"use strict";var r=n(212),i=n(9561);function o(){this.pending=null,this.pendingTotal=0,this.blockSize=this.constructor.blockSize,this.outSize=this.constructor.outSize,this.hmacStrength=this.constructor.hmacStrength,this.padLength=this.constructor.padLength/8,this.endian="big",this._delta8=this.blockSize/8,this._delta32=this.blockSize/32}e.BlockHash=o,o.prototype.update=function(t,e){if(t=r.toArray(t,e),this.pending?this.pending=this.pending.concat(t):this.pending=t,this.pendingTotal+=t.length,this.pending.length>=this._delta8){var n=(t=this.pending).length%this._delta8;this.pending=t.slice(t.length-n,t.length),0===this.pending.length&&(this.pending=null),t=r.join32(t,0,t.length-n,this.endian);for(var i=0;i<t.length;i+=this._delta32)this._update(t,i,i+this._delta32)}return this},o.prototype.digest=function(t){return this.update(this._pad()),i(null===this.pending),this._digest(t)},o.prototype._pad=function(){var t=this.pendingTotal,e=this._delta8,n=e-(t+this.padLength)%e,r=new Array(n+this.padLength);r[0]=128;for(var i=1;i<n;i++)r[i]=0;if(t<<=3,"big"===this.endian){for(var o=8;o<this.padLength;o++)r[i++]=0;r[i++]=0,r[i++]=0,r[i++]=0,r[i++]=0,r[i++]=t>>>24&255,r[i++]=t>>>16&255,r[i++]=t>>>8&255,r[i++]=255&t}else for(r[i++]=255&t,r[i++]=t>>>8&255,r[i++]=t>>>16&255,r[i++]=t>>>24&255,r[i++]=0,r[i++]=0,r[i++]=0,r[i++]=0,o=8;o<this.padLength;o++)r[i++]=0;return r}},8032:function(t,e,n){"use strict";var r=n(212),i=n(4495),o=n(713),s=n(9561),u=r.sum32,c=r.sum32_4,a=r.sum32_5,p=o.ch32,f=o.maj32,l=o.s0_256,h=o.s1_256,d=o.g0_256,m=o.g1_256,y=i.BlockHash,w=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298];function g(){if(!(this instanceof g))return new g;y.call(this),this.h=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],this.k=w,this.W=new Array(64)}r.inherits(g,y),t.exports=g,g.blockSize=512,g.outSize=256,g.hmacStrength=192,g.padLength=64,g.prototype._update=function(t,e){for(var n=this.W,r=0;r<16;r++)n[r]=t[e+r];for(;r<n.length;r++)n[r]=c(m(n[r-2]),n[r-7],d(n[r-15]),n[r-16]);var i=this.h[0],o=this.h[1],y=this.h[2],w=this.h[3],g=this.h[4],v=this.h[5],_=this.h[6],b=this.h[7];for(s(this.k.length===n.length),r=0;r<n.length;r++){var C=a(b,h(g),p(g,v,_),this.k[r],n[r]),k=u(l(i),f(i,o,y));b=_,_=v,v=g,g=u(w,C),w=y,y=o,o=i,i=u(C,k)}this.h[0]=u(this.h[0],i),this.h[1]=u(this.h[1],o),this.h[2]=u(this.h[2],y),this.h[3]=u(this.h[3],w),this.h[4]=u(this.h[4],g),this.h[5]=u(this.h[5],v),this.h[6]=u(this.h[6],_),this.h[7]=u(this.h[7],b)},g.prototype._digest=function(t){return"hex"===t?r.toHex32(this.h,"big"):r.split32(this.h,"big")}},713:function(t,e,n){"use strict";var r=n(212).rotr32;function i(t,e,n){return t&e^~t&n}function o(t,e,n){return t&e^t&n^e&n}function s(t,e,n){return t^e^n}e.ft_1=function(t,e,n,r){return 0===t?i(e,n,r):1===t||3===t?s(e,n,r):2===t?o(e,n,r):void 0},e.ch32=i,e.maj32=o,e.p32=s,e.s0_256=function(t){return r(t,2)^r(t,13)^r(t,22)},e.s1_256=function(t){return r(t,6)^r(t,11)^r(t,25)},e.g0_256=function(t){return r(t,7)^r(t,18)^t>>>3},e.g1_256=function(t){return r(t,17)^r(t,19)^t>>>10}},212:function(t,e,n){"use strict";var r=n(9561),i=n(1285);function o(t,e){return 55296==(64512&t.charCodeAt(e))&&(!(e<0||e+1>=t.length)&&56320==(64512&t.charCodeAt(e+1)))}function s(t){return(t>>>24|t>>>8&65280|t<<8&16711680|(255&t)<<24)>>>0}function u(t){return 1===t.length?"0"+t:t}function c(t){return 7===t.length?"0"+t:6===t.length?"00"+t:5===t.length?"000"+t:4===t.length?"0000"+t:3===t.length?"00000"+t:2===t.length?"000000"+t:1===t.length?"0000000"+t:t}e.inherits=i,e.toArray=function(t,e){if(Array.isArray(t))return t.slice();if(!t)return[];var n=[];if("string"==typeof t)if(e){if("hex"===e)for((t=t.replace(/[^a-z0-9]+/gi,"")).length%2!=0&&(t="0"+t),i=0;i<t.length;i+=2)n.push(parseInt(t[i]+t[i+1],16))}else for(var r=0,i=0;i<t.length;i++){var s=t.charCodeAt(i);s<128?n[r++]=s:s<2048?(n[r++]=s>>6|192,n[r++]=63&s|128):o(t,i)?(s=65536+((1023&s)<<10)+(1023&t.charCodeAt(++i)),n[r++]=s>>18|240,n[r++]=s>>12&63|128,n[r++]=s>>6&63|128,n[r++]=63&s|128):(n[r++]=s>>12|224,n[r++]=s>>6&63|128,n[r++]=63&s|128)}else for(i=0;i<t.length;i++)n[i]=0|t[i];return n},e.toHex=function(t){for(var e="",n=0;n<t.length;n++)e+=u(t[n].toString(16));return e},e.htonl=s,e.toHex32=function(t,e){for(var n="",r=0;r<t.length;r++){var i=t[r];"little"===e&&(i=s(i)),n+=c(i.toString(16))}return n},e.zero2=u,e.zero8=c,e.join32=function(t,e,n,i){var o=n-e;r(o%4==0);for(var s=new Array(o/4),u=0,c=e;u<s.length;u++,c+=4){var a;a="big"===i?t[c]<<24|t[c+1]<<16|t[c+2]<<8|t[c+3]:t[c+3]<<24|t[c+2]<<16|t[c+1]<<8|t[c],s[u]=a>>>0}return s},e.split32=function(t,e){for(var n=new Array(4*t.length),r=0,i=0;r<t.length;r++,i+=4){var o=t[r];"big"===e?(n[i]=o>>>24,n[i+1]=o>>>16&255,n[i+2]=o>>>8&255,n[i+3]=255&o):(n[i+3]=o>>>24,n[i+2]=o>>>16&255,n[i+1]=o>>>8&255,n[i]=255&o)}return n},e.rotr32=function(t,e){return t>>>e|t<<32-e},e.rotl32=function(t,e){return t<<e|t>>>32-e},e.sum32=function(t,e){return t+e>>>0},e.sum32_3=function(t,e,n){return t+e+n>>>0},e.sum32_4=function(t,e,n,r){return t+e+n+r>>>0},e.sum32_5=function(t,e,n,r,i){return t+e+n+r+i>>>0},e.sum64=function(t,e,n,r){var i=t[e],o=r+t[e+1]>>>0,s=(o<r?1:0)+n+i;t[e]=s>>>0,t[e+1]=o},e.sum64_hi=function(t,e,n,r){return(e+r>>>0<e?1:0)+t+n>>>0},e.sum64_lo=function(t,e,n,r){return e+r>>>0},e.sum64_4_hi=function(t,e,n,r,i,o,s,u){var c=0,a=e;return c+=(a=a+r>>>0)<e?1:0,c+=(a=a+o>>>0)<o?1:0,t+n+i+s+(c+=(a=a+u>>>0)<u?1:0)>>>0},e.sum64_4_lo=function(t,e,n,r,i,o,s,u){return e+r+o+u>>>0},e.sum64_5_hi=function(t,e,n,r,i,o,s,u,c,a){var p=0,f=e;return p+=(f=f+r>>>0)<e?1:0,p+=(f=f+o>>>0)<o?1:0,p+=(f=f+u>>>0)<u?1:0,t+n+i+s+c+(p+=(f=f+a>>>0)<a?1:0)>>>0},e.sum64_5_lo=function(t,e,n,r,i,o,s,u,c,a){return e+r+o+u+a>>>0},e.rotr64_hi=function(t,e,n){return(e<<32-n|t>>>n)>>>0},e.rotr64_lo=function(t,e,n){return(t<<32-n|e>>>n)>>>0},e.shr64_hi=function(t,e,n){return t>>>n},e.shr64_lo=function(t,e,n){return(t<<32-n|e>>>n)>>>0}},1285:function(t){"function"==typeof Object.create?t.exports=function(t,e){e&&(t.super_=e,t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))}:t.exports=function(t,e){if(e){t.super_=e;var n=function(){};n.prototype=e.prototype,t.prototype=new n,t.prototype.constructor=t}}},2864:function(){},9561:function(t){function e(t,e){if(!t)throw new Error(e||"Assertion failed")}t.exports=e,e.equal=function(t,e,n){if(t!=e)throw new Error(n||"Assertion failed: "+t+" != "+e)}},1378:function(t){var e=1e3,n=60*e,r=60*n,i=24*r,o=7*i,s=365.25*i;function u(t,e,n,r){var i=e>=1.5*n;return Math.round(t/n)+" "+r+(i?"s":"")}t.exports=function(t,c){c=c||{};var a=typeof t;if("string"===a&&t.length>0)return function(t){if((t=String(t)).length>100)return;var u=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(t);if(!u)return;var c=parseFloat(u[1]);switch((u[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return c*s;case"weeks":case"week":case"w":return c*o;case"days":case"day":case"d":return c*i;case"hours":case"hour":case"hrs":case"hr":case"h":return c*r;case"minutes":case"minute":case"mins":case"min":case"m":return c*n;case"seconds":case"second":case"secs":case"sec":case"s":return c*e;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return c;default:return}}(t);if("number"===a&&isFinite(t))return c.long?function(t){var o=Math.abs(t);if(o>=i)return u(t,o,i,"day");if(o>=r)return u(t,o,r,"hour");if(o>=n)return u(t,o,n,"minute");if(o>=e)return u(t,o,e,"second");return t+" ms"}(t):function(t){var o=Math.abs(t);if(o>=i)return Math.round(t/i)+"d";if(o>=r)return Math.round(t/r)+"h";if(o>=n)return Math.round(t/n)+"m";if(o>=e)return Math.round(t/e)+"s";return t+"ms"}(t);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(t))}},8650:function(t){var e,n=window.ProgressEvent,r=!!n;try{e=new n("loaded"),r="loaded"===e.type,e=null}catch(i){r=!1}t.exports=r?n:"function"==typeof document.createEvent?function(t,e){var n=document.createEvent("Event");return n.initEvent(t,!1,!1),e?(n.lengthComputable=Boolean(e.lengthComputable),n.loaded=Number(e.loaded)||0,n.total=Number(e.total)||0):(n.lengthComputable=!1,n.loaded=n.total=0),n}:function(t,e){var n=document.createEventObject();return n.type=t,e?(n.lengthComputable=Boolean(e.lengthComputable),n.loaded=Number(e.loaded)||0,n.total=Number(e.total)||0):(n.lengthComputable=!1,n.loaded=n.total=0),n}},5527:function(t,e,n){"use strict";var r=String.prototype.replace,i=/%20/g,o=n(2493),s={RFC1738:"RFC1738",RFC3986:"RFC3986"};t.exports=o.assign({default:s.RFC3986,formatters:{RFC1738:function(t){return r.call(t,i,"+")},RFC3986:function(t){return String(t)}}},s)},9126:function(t,e,n){"use strict";var r=n(6845),i=n(9166),o=n(5527);t.exports={formats:o,parse:i,stringify:r}},9166:function(t,e,n){"use strict";var r=n(2493),i=Object.prototype.hasOwnProperty,o=Array.isArray,s={allowDots:!1,allowPrototypes:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:r.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},u=function(t){return t.replace(/&#(\d+);/g,(function(t,e){return String.fromCharCode(parseInt(e,10))}))},c=function(t,e){return t&&"string"==typeof t&&e.comma&&t.indexOf(",")>-1?t.split(","):t},a=function(t,e,n,r){if(t){var o=n.allowDots?t.replace(/\.([^.[]+)/g,"[$1]"):t,s=/(\[[^[\]]*])/g,u=n.depth>0&&/(\[[^[\]]*])/.exec(o),a=u?o.slice(0,u.index):o,p=[];if(a){if(!n.plainObjects&&i.call(Object.prototype,a)&&!n.allowPrototypes)return;p.push(a)}for(var f=0;n.depth>0&&null!==(u=s.exec(o))&&f<n.depth;){if(f+=1,!n.plainObjects&&i.call(Object.prototype,u[1].slice(1,-1))&&!n.allowPrototypes)return;p.push(u[1])}return u&&p.push("["+o.slice(u.index)+"]"),function(t,e,n,r){for(var i=r?e:c(e,n),o=t.length-1;o>=0;--o){var s,u=t[o];if("[]"===u&&n.parseArrays)s=[].concat(i);else{s=n.plainObjects?Object.create(null):{};var a="["===u.charAt(0)&&"]"===u.charAt(u.length-1)?u.slice(1,-1):u,p=parseInt(a,10);n.parseArrays||""!==a?!isNaN(p)&&u!==a&&String(p)===a&&p>=0&&n.parseArrays&&p<=n.arrayLimit?(s=[])[p]=i:s[a]=i:s={0:i}}i=s}return i}(p,e,n,r)}};t.exports=function(t,e){var n=function(t){if(!t)return s;if(null!==t.decoder&&void 0!==t.decoder&&"function"!=typeof t.decoder)throw new TypeError("Decoder has to be a function.");if(void 0!==t.charset&&"utf-8"!==t.charset&&"iso-8859-1"!==t.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var e=void 0===t.charset?s.charset:t.charset;return{allowDots:void 0===t.allowDots?s.allowDots:!!t.allowDots,allowPrototypes:"boolean"==typeof t.allowPrototypes?t.allowPrototypes:s.allowPrototypes,arrayLimit:"number"==typeof t.arrayLimit?t.arrayLimit:s.arrayLimit,charset:e,charsetSentinel:"boolean"==typeof t.charsetSentinel?t.charsetSentinel:s.charsetSentinel,comma:"boolean"==typeof t.comma?t.comma:s.comma,decoder:"function"==typeof t.decoder?t.decoder:s.decoder,delimiter:"string"==typeof t.delimiter||r.isRegExp(t.delimiter)?t.delimiter:s.delimiter,depth:"number"==typeof t.depth||!1===t.depth?+t.depth:s.depth,ignoreQueryPrefix:!0===t.ignoreQueryPrefix,interpretNumericEntities:"boolean"==typeof t.interpretNumericEntities?t.interpretNumericEntities:s.interpretNumericEntities,parameterLimit:"number"==typeof t.parameterLimit?t.parameterLimit:s.parameterLimit,parseArrays:!1!==t.parseArrays,plainObjects:"boolean"==typeof t.plainObjects?t.plainObjects:s.plainObjects,strictNullHandling:"boolean"==typeof t.strictNullHandling?t.strictNullHandling:s.strictNullHandling}}(e);if(""===t||null==t)return n.plainObjects?Object.create(null):{};for(var p="string"==typeof t?function(t,e){var n,a={},p=e.ignoreQueryPrefix?t.replace(/^\?/,""):t,f=e.parameterLimit===1/0?void 0:e.parameterLimit,l=p.split(e.delimiter,f),h=-1,d=e.charset;if(e.charsetSentinel)for(n=0;n<l.length;++n)0===l[n].indexOf("utf8=")&&("utf8=%E2%9C%93"===l[n]?d="utf-8":"utf8=%26%2310003%3B"===l[n]&&(d="iso-8859-1"),h=n,n=l.length);for(n=0;n<l.length;++n)if(n!==h){var m,y,w=l[n],g=w.indexOf("]="),v=-1===g?w.indexOf("="):g+1;-1===v?(m=e.decoder(w,s.decoder,d,"key"),y=e.strictNullHandling?null:""):(m=e.decoder(w.slice(0,v),s.decoder,d,"key"),y=r.maybeMap(c(w.slice(v+1),e),(function(t){return e.decoder(t,s.decoder,d,"value")}))),y&&e.interpretNumericEntities&&"iso-8859-1"===d&&(y=u(y)),w.indexOf("[]=")>-1&&(y=o(y)?[y]:y),i.call(a,m)?a[m]=r.combine(a[m],y):a[m]=y}return a}(t,n):t,f=n.plainObjects?Object.create(null):{},l=Object.keys(p),h=0;h<l.length;++h){var d=l[h],m=a(d,p[d],n,"string"==typeof t);f=r.merge(f,m,n)}return r.compact(f)}},6845:function(t,e,n){"use strict";var r=n(2493),i=n(5527),o=Object.prototype.hasOwnProperty,s={brackets:function(t){return t+"[]"},comma:"comma",indices:function(t,e){return t+"["+e+"]"},repeat:function(t){return t}},u=Array.isArray,c=Array.prototype.push,a=function(t,e){c.apply(t,u(e)?e:[e])},p=Date.prototype.toISOString,f=i.default,l={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:r.encode,encodeValuesOnly:!1,format:f,formatter:i.formatters[f],indices:!1,serializeDate:function(t){return p.call(t)},skipNulls:!1,strictNullHandling:!1},h=function t(e,n,i,o,s,c,p,f,h,d,m,y,w){var g,v=e;if("function"==typeof p?v=p(n,v):v instanceof Date?v=d(v):"comma"===i&&u(v)&&(v=r.maybeMap(v,(function(t){return t instanceof Date?d(t):t})).join(",")),null===v){if(o)return c&&!y?c(n,l.encoder,w,"key"):n;v=""}if("string"==typeof(g=v)||"number"==typeof g||"boolean"==typeof g||"symbol"==typeof g||"bigint"==typeof g||r.isBuffer(v))return c?[m(y?n:c(n,l.encoder,w,"key"))+"="+m(c(v,l.encoder,w,"value"))]:[m(n)+"="+m(String(v))];var _,b=[];if(void 0===v)return b;if(u(p))_=p;else{var C=Object.keys(v);_=f?C.sort(f):C}for(var k=0;k<_.length;++k){var Z=_[k],q=v[Z];if(!s||null!==q){var x=u(v)?"function"==typeof i?i(n,Z):n:n+(h?"."+Z:"["+Z+"]");a(b,t(q,x,i,o,s,c,p,f,h,d,m,y,w))}}return b};t.exports=function(t,e){var n,r=t,c=function(t){if(!t)return l;if(null!==t.encoder&&void 0!==t.encoder&&"function"!=typeof t.encoder)throw new TypeError("Encoder has to be a function.");var e=t.charset||l.charset;if(void 0!==t.charset&&"utf-8"!==t.charset&&"iso-8859-1"!==t.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var n=i.default;if(void 0!==t.format){if(!o.call(i.formatters,t.format))throw new TypeError("Unknown format option provided.");n=t.format}var r=i.formatters[n],s=l.filter;return("function"==typeof t.filter||u(t.filter))&&(s=t.filter),{addQueryPrefix:"boolean"==typeof t.addQueryPrefix?t.addQueryPrefix:l.addQueryPrefix,allowDots:void 0===t.allowDots?l.allowDots:!!t.allowDots,charset:e,charsetSentinel:"boolean"==typeof t.charsetSentinel?t.charsetSentinel:l.charsetSentinel,delimiter:void 0===t.delimiter?l.delimiter:t.delimiter,encode:"boolean"==typeof t.encode?t.encode:l.encode,encoder:"function"==typeof t.encoder?t.encoder:l.encoder,encodeValuesOnly:"boolean"==typeof t.encodeValuesOnly?t.encodeValuesOnly:l.encodeValuesOnly,filter:s,formatter:r,serializeDate:"function"==typeof t.serializeDate?t.serializeDate:l.serializeDate,skipNulls:"boolean"==typeof t.skipNulls?t.skipNulls:l.skipNulls,sort:"function"==typeof t.sort?t.sort:null,strictNullHandling:"boolean"==typeof t.strictNullHandling?t.strictNullHandling:l.strictNullHandling}}(e);"function"==typeof c.filter?r=(0,c.filter)("",r):u(c.filter)&&(n=c.filter);var p,f=[];if("object"!=typeof r||null===r)return"";p=e&&e.arrayFormat in s?e.arrayFormat:e&&"indices"in e?e.indices?"indices":"repeat":"indices";var d=s[p];n||(n=Object.keys(r)),c.sort&&n.sort(c.sort);for(var m=0;m<n.length;++m){var y=n[m];c.skipNulls&&null===r[y]||a(f,h(r[y],y,d,c.strictNullHandling,c.skipNulls,c.encode?c.encoder:null,c.filter,c.sort,c.allowDots,c.serializeDate,c.formatter,c.encodeValuesOnly,c.charset))}var w=f.join(c.delimiter),g=!0===c.addQueryPrefix?"?":"";return c.charsetSentinel&&("iso-8859-1"===c.charset?g+="utf8=%26%2310003%3B&":g+="utf8=%E2%9C%93&"),w.length>0?g+w:""}},2493:function(t){"use strict";var e=Object.prototype.hasOwnProperty,n=Array.isArray,r=function(){for(var t=[],e=0;e<256;++e)t.push("%"+((e<16?"0":"")+e.toString(16)).toUpperCase());return t}(),i=function(t,e){for(var n=e&&e.plainObjects?Object.create(null):{},r=0;r<t.length;++r)void 0!==t[r]&&(n[r]=t[r]);return n};t.exports={arrayToObject:i,assign:function(t,e){return Object.keys(e).reduce((function(t,n){return t[n]=e[n],t}),t)},combine:function(t,e){return[].concat(t,e)},compact:function(t){for(var e=[{obj:{o:t},prop:"o"}],r=[],i=0;i<e.length;++i)for(var o=e[i],s=o.obj[o.prop],u=Object.keys(s),c=0;c<u.length;++c){var a=u[c],p=s[a];"object"==typeof p&&null!==p&&-1===r.indexOf(p)&&(e.push({obj:s,prop:a}),r.push(p))}return function(t){for(;t.length>1;){var e=t.pop(),r=e.obj[e.prop];if(n(r)){for(var i=[],o=0;o<r.length;++o)void 0!==r[o]&&i.push(r[o]);e.obj[e.prop]=i}}}(e),t},decode:function(t,e,n){var r=t.replace(/\+/g," ");if("iso-8859-1"===n)return r.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(r)}catch(i){return r}},encode:function(t,e,n){if(0===t.length)return t;var i=t;if("symbol"==typeof t?i=Symbol.prototype.toString.call(t):"string"!=typeof t&&(i=String(t)),"iso-8859-1"===n)return escape(i).replace(/%u[0-9a-f]{4}/gi,(function(t){return"%26%23"+parseInt(t.slice(2),16)+"%3B"}));for(var o="",s=0;s<i.length;++s){var u=i.charCodeAt(s);45===u||46===u||95===u||126===u||u>=48&&u<=57||u>=65&&u<=90||u>=97&&u<=122?o+=i.charAt(s):u<128?o+=r[u]:u<2048?o+=r[192|u>>6]+r[128|63&u]:u<55296||u>=57344?o+=r[224|u>>12]+r[128|u>>6&63]+r[128|63&u]:(s+=1,u=65536+((1023&u)<<10|1023&i.charCodeAt(s)),o+=r[240|u>>18]+r[128|u>>12&63]+r[128|u>>6&63]+r[128|63&u])}return o},isBuffer:function(t){return!(!t||"object"!=typeof t)&&!!(t.constructor&&t.constructor.isBuffer&&t.constructor.isBuffer(t))},isRegExp:function(t){return"[object RegExp]"===Object.prototype.toString.call(t)},maybeMap:function(t,e){if(n(t)){for(var r=[],i=0;i<t.length;i+=1)r.push(e(t[i]));return r}return e(t)},merge:function t(r,o,s){if(!o)return r;if("object"!=typeof o){if(n(r))r.push(o);else{if(!r||"object"!=typeof r)return[r,o];(s&&(s.plainObjects||s.allowPrototypes)||!e.call(Object.prototype,o))&&(r[o]=!0)}return r}if(!r||"object"!=typeof r)return[r].concat(o);var u=r;return n(r)&&!n(o)&&(u=i(r,s)),n(r)&&n(o)?(o.forEach((function(n,i){if(e.call(r,i)){var o=r[i];o&&"object"==typeof o&&n&&"object"==typeof n?r[i]=t(o,n,s):r.push(n)}else r[i]=n})),r):Object.keys(o).reduce((function(n,r){var i=o[r];return e.call(n,r)?n[r]=t(n[r],i,s):n[r]=i,n}),u)}}},9239:function(t,e,n){"object"==typeof window&&window.whatsNewAssetsUrl&&(n.p=window.whatsNewAssetsUrl)},8814:function(t,e,n){"use strict";var r=n(5707),i={whatsNew:!1};(0,r.registerStore)("automattic/whats-new",{reducer:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:i,e=arguments.length>1?arguments[1]:void 0;switch(e.type){case"TOGGLE_FEATURE":return{whatsNew:!t.whatsNew}}return t},actions:{toggleWhatsNew:function(){return{type:"TOGGLE_FEATURE"}}},selectors:{isWhatsNewActive:function(t){return t.whatsNew}}})},5840:function(t,e,n){"use strict";var r=n(3258),i=n(3027),o=(n(9239),n(6115)),s=n(3585),u=n(7997),c=n(3163),a=n(1200),p=n(6141),__=c.__;function f(){var t=(0,p.useState)(!1),e=(0,r.Z)(t,2),n=e[0],c=e[1];return(0,i.useEffect)((function(){n&&(0,o.jN)("calypso_block_editor_whats_new_open")}),[n]),(0,i.createElement)(i.Fragment,null,(0,i.createElement)(u.Fill,{name:"ToolsMoreMenuGroup"},(0,i.createElement)(u.MenuItem,{onClick:function(){return c(!0)}},__("What's new","full-site-editing"))),n&&(0,i.createElement)(s.Z,{onClose:function(){return c(!1)}}))}(0,a.registerPlugin)("whats-new",{render:function(){return(0,i.createElement)(f,null)}})},6115:function(t,e,n){"use strict";n.d(e,{jN:function(){return r.jN}});n(1694),n(6209),n(9377);var r=n(9792);n(3722)},9377:function(t,e,n){"use strict";"undefined"!=typeof window&&window.addEventListener("popstate",(function(){null}))},9792:function(t,e,n){"use strict";n.d(e,{jN:function(){return l}});var r,i=n(9394),o=n(3804),s=(n(3421),n(2699)),u=n(4898),c=(n(6209),n(1694),n(9377),n(9358)),a=["a8c_cookie_banner_ok","wcadmin_storeprofiler_create_jetpack_account","wcadmin_storeprofiler_connect_store","wcadmin_storeprofiler_login_jetpack_account","wcadmin_storeprofiler_payment_login","wcadmin_storeprofiler_payment_create_account","calypso_checkout_switch_to_p_24","calypso_checkout_composite_p24_submit_clicked"];Promise.resolve();function p(t){"undefined"!=typeof window&&(window._tkq=window._tkq||[],window._tkq.push(t))}"undefined"!=typeof document&&(0,u.ve)("//stats.wp.com/w.js?63");var f=new s.EventEmitter;function l(t,e){if(e=e||{},(0,c.Z)('Record event "%s" called with props %o',t,e),t.startsWith("calypso_")||(0,o.includes)(a,t)){if(r){var n=r(e);e=(0,i.Z)((0,i.Z)({},e),n)}e=(0,o.omitBy)(e,(function(t){return void 0===t})),(0,c.Z)('Recording event "%s" with actual props %o',t,e),p(["recordEvent",t,e]),f.emit("record-event",t,e)}else(0,c.Z)('- Event name must be prefixed by "calypso_" or added to `EVENT_NAME_EXCEPTIONS`')}},3722:function(t,e,n){"use strict";n(9792)},6209:function(t,e,n){"use strict";n(4)},9358:function(t,e,n){"use strict";var r=n(8049),i=n.n(r);e.Z=i()("calypso:analytics")},1694:function(t,e,n){"use strict";n(9358)},4:function(t,e,n){"use strict";n(8032)},849:function(t,e,n){"use strict";n.d(e,{bU:function(){return f}});var r=n(7560),i=n(3258),o=n(3027),s=n(6141),u=n(1417),c=n(3163),a=(0,s.createContext)(null);function p(){var t,e;return c.getLocaleData&&(null===(t=c.getLocaleData())||void 0===t||null===(e=t[""])||void 0===e?void 0:e.language)}function f(){var t=(0,s.useContext)(a),e=!!t,n=(0,s.useState)(p()),r=(0,i.Z)(n,2),o=r[0],u=r[1];return(0,s.useEffect)((function(){if(!e)return u(p()),c.subscribe((function(){u(p())}))}),[e]),t||o||"en"}(0,u.createHigherOrderComponent)((function(t){return function(e){var n=f();return(0,o.createElement)(t,(0,r.Z)({locale:n},e))}}),"withLocale")},3340:function(t,e,n){"use strict";n.d(e,{hg:function(){return u},lZ:function(){return c},_W:function(){return p},Yt:function(){return f}});var r=n(8049),i=n.n(r)()("lib/load-script/callback-handler"),o=new Map;function s(){return o}function u(t){return s().has(t)}function c(t,e){var n=s();u(t)?(i('Adding a callback for an existing script from "'.concat(t,'"')),n.get(t).add(e)):(i('Adding a callback for a new script from "'.concat(t,'"')),n.set(t,new Set([e])))}function a(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=s(),r=n.get(t);if(r){var o='Executing callbacks for "'.concat(t,'"')+(null===e?" with success":' with error "'.concat(e,'"'));i(o),r.forEach((function(t){"function"==typeof t&&t(e)})),n.delete(t)}}function p(){var t=this.getAttribute("src");i('Handling successful request for "'.concat(t,'"')),a(t),this.onload=null}function f(){var t=this.getAttribute("src");i('Handling failed request for "'.concat(t,'"')),a(t,new Error('Failed to load script "'.concat(t,'"'))),this.onerror=null}},5606:function(t,e,n){"use strict";n.d(e,{C:function(){return u},k:function(){return c}});var r=n(8049),i=n.n(r),o=n(3340),s=i()("lib/load-script/dom-operations");function u(t){s('Creating script element for "'.concat(t,'"'));var e=document.createElement("script");return e.src=t,e.type="text/javascript",e.async=!0,e.onload=o._W,e.onerror=o.Yt,e}function c(t){s("Attaching element to head"),document.head.appendChild(t)}},4898:function(t,e,n){"use strict";n.d(e,{ve:function(){return u}});var r=n(8049),i=n.n(r),o=n(3340),s=n(5606);i()("package/load-script");function u(t,e){if(!(0,o.hg)(t)&&(0,s.k)((0,s.C)(t)),"function"!=typeof e)return new Promise((function(e,n){(0,o.lZ)(t,(function(t){null===t?e():n(t)}))}));(0,o.lZ)(t,e)}},3585:function(t,e,n){"use strict";var r=n(3258),i=n(3027),o=n(849),s=n(7997),u=n(8675),c=n(6141),a=n(1202),p=n(8552),f=n(869);n(2864);e.Z=function(t){var e=t.onClose,n=(0,c.useState)(null),l=(0,r.Z)(n,2),h=l[0],d=l[1],__=(0,u.useI18n)().__,m=(0,o.bU)();return(0,c.useEffect)((function(){var t=(0,a.Z)();t.request=p.ZP,t.req.get({path:"/whats-new/list?_locale=".concat(m),apiNamespace:"wpcom/v2"}).then((function(t){d(t)}))}),[m]),h?(0,i.createElement)(s.Guide,{className:"whats-new-guide__main",contentLabel:__("What's New at WordPress.com","full-site-editing"),finishButtonText:__("Close","full-site-editing"),onFinish:e},h.map((function(t,e){return(0,i.createElement)(f.Z,{pageNumber:e+1,isLastPage:e===h.length-1,description:t.description,heading:t.heading,imageSrc:t.imageSrc,link:t.link})}))):null}},869:function(t,e,n){"use strict";var r=n(3027),i=n(6115),o=n(7997),s=n(8675),u=n(6141);e.Z=function(t){var e=t.description,n=t.heading,c=t.imageSrc,a=t.isLastPage,p=t.link,f=t.pageNumber,__=(0,s.useI18n)().__;return(0,u.useEffect)((function(){(0,i.jN)("wpcom_whats_new_slide_view",{slide_number:f,is_last_slide:a})}),[a,f]),(0,r.createElement)(o.GuidePage,{className:"whats-new-page__container"},(0,r.createElement)("div",{className:"whats-new-page__text"},n&&(0,r.createElement)("h1",{className:"whats-new-page__heading"},n),(0,r.createElement)("div",{className:"whats-new-page__description"},e&&(0,r.createElement)("p",null,e),p&&(0,r.createElement)(o.Button,{className:"whats-new-page__link",href:p,isTertiary:!0,isLink:!0,target:"_blank"},__("Learn more","full-site-editing")))),(0,r.createElement)("div",{className:"whats-new-page__visual"},c&&(0,r.createElement)("img",{src:c,alt:e,"aria-hidden":"true",className:"whats-new-page__image"})))}},8552:function(t,e,n){"use strict";var r,i=n(8767),o=n(2884),s=n.n(o),u=n(8650),c=n.n(u),a=n(8049),p=n.n(a)()("wpcom-proxy-request"),f="https://public-api.wordpress.com",l=window.location.protocol+"//"+window.location.host,h=function(){var t=!1;try{window.postMessage({toString:function(){t=!0}},"*")}catch(e){}return t}(),d=function(){try{return new window.File(["a"],"test.jpg",{type:"image/jpeg"}),!0}catch(t){return!1}}(),m=null,y=!1,w={},g=!!window.ProgressEvent&&!!window.FormData;p('using "origin": %o',l);var v=function(t,e){var n=Object.assign({},t);p("request(%o)",n),m||Z();var o=(0,i.Z)();n.callback=o,n.supports_args=!0,n.supports_error_obj=!0,n.supports_progress=g,n.method=String(n.method||"GET").toUpperCase(),p("params object: %o",n);var s=new window.XMLHttpRequest;if(s.params=n,w[o]=s,"function"==typeof e){var u=!1,c=function(t){if(!u){u=!0;var n=t.error||t.err||t;p("error: ",n),p("headers: ",t.headers),e(n,null,t.headers)}};s.addEventListener("load",(function(t){if(!u){u=!0;var n=t.response||s.response;p("body: ",n),p("headers: ",t.headers),e(null,n,t.headers)}})),s.addEventListener("abort",c),s.addEventListener("error",c)}return"function"==typeof n.onStreamRecord&&delete n.onStreamRecord,y?b(n):(p("buffering API request since proxying <iframe> is not yet loaded"),r.push(n)),s},_=function(t,e){return"function"==typeof e?v(t,e):new Promise((function(e,n){v(t,(function(t,r){t?n(t):e(r)}))}))};function b(t){p("sending API request to proxy <iframe> %o",t),t.formData&&function(t){if(!window.chrome||!d)return;for(var e=0;e<t.length;e++){var n=k(t[e][1]);n&&(t[e][1]=new window.File([n],n.name,{type:n.type}))}}(t.formData),m.contentWindow.postMessage(h?JSON.stringify(t):t,f)}function C(t){return t&&"[object File]"===Object.prototype.toString.call(t)}function k(t){return C(t)?t:"object"==typeof t&&C(t.fileContents)?t.fileContents:null}function Z(){p("install()"),m&&(p("uninstall()"),window.removeEventListener("message",q),document.body.removeChild(m),y=!1,m=null),r=[],window.addEventListener("message",q),(m=document.createElement("iframe")).src=f+"/wp-admin/rest-proxy/?v=2.0#"+l,m.style.display="none",document.body.appendChild(m)}function q(t){if(p("onmessage"),t.origin===f)if(t.source===m.contentWindow){var e=t.data;if(!e)return p("no `data`, bailing");if("ready"!==e){if(h&&"string"==typeof e&&(e=JSON.parse(e)),e.upload||e.download)return function(t){p('got "progress" event: %o',t);var e=w[t.callbackId];if(e){var n=new(c())("progress",t);(t.upload?e.upload:e).dispatchEvent(n)}}(e);if(!e.length)return p("`e.data` doesn't appear to be an Array, bailing...");var n=e[e.length-1];if(!(n in w))return p("bailing, no matching request with callback: %o",n);var i,o=w[n],u=o.params,a=e[0],l=e[1],d=e[2];if(207===l||delete w[n],u.metaAPI?l="metaAPIupdated"===a?200:500:p("got %o status code for URL: %o",l,u.path),"object"==typeof d)if(d.status=l,i=d["Content-Type"],/^application[/]x-ndjson($|;)/.test(i))return void x(o,new Error("stream mode processing is not yet implemented for wpcom-proxy-request"),d);if(l&&2===Math.floor(l/100))!function(t,e,n){var r=new(c())("load");r.data=r.body=r.response=e,r.headers=n,t.dispatchEvent(r)}(o,a,d);else x(o,s()(u,l,a),d)}else!function(){if(p('proxy <iframe> "load" event'),y=!0,r){for(var t=0;t<r.length;t++)b(r[t]);r=null}}()}else p("ignoring message... iframe elements do not match");else p("ignoring message... %o !== %o",t.origin,f)}function x(t,e,n){var r=new(c())("error");r.error=r.err=e,r.headers=n,t.dispatchEvent(r)}e.ZP=_},1202:function(t,e,n){"use strict";n.d(e,{Z:function(){return w}});var r=n(8049),i=n.n(r),o=n(9728),s=n(7114),u=n(35),c=n(8068),a=n(2836),p=n(3818),f=n(6870),l=n(781),h=n(2579),d=n(4308),m=n(3918),y=i()("wpcom");function w(t,e){if(!(this instanceof w))return new w(t,e);"function"==typeof t&&(e=t,t=null),t&&(y("Token defined: %s…",t.substring(0,6)),this.token=t);this.request=e||function(t,e){y("No request handler. Failing."),e(new Error("No request handler provided"))},this.req=new l.Z(this),this.pinghub=new p.Z(this),this.apiVersion="1.1"}w.prototype.marketing=function(){return new c.Z(this)},w.prototype.me=function(){return new a.Z(this)},w.prototype.domains=function(){return new u.Z(this)},w.prototype.domain=function(t){return new s.Z(t,this)},w.prototype.site=function(t){return new h.Z(t,this)},w.prototype.users=function(){return new d.Z(this)},w.prototype.plans=function(){return new f.Z(this)},w.prototype.batch=function(){return new o.Z(this)},w.prototype.freshlyPressed=function(t,e){return this.req.get("/freshly-pressed",t,e)},w.prototype.sendRequest=function(t,e,n,r){var i="WARN! Don use `sendRequest() anymore. Use `this.req` method.";return console&&console.warn?console.warn(i):console.log(i),m.Z.call(this,t,e,n,r)},w.Batch=o.Z,w.Domain=s.Z,w.Domains=u.Z,w.Marketing=c.Z,w.Me=a.Z,w.Pinghub=p.Z,w.Plans=f.Z,w.Request=l.Z,w.Site=h.Z,w.Users=d.Z,Promise.prototype.timeout||(Promise.prototype.timeout=function(){var t,e=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:3e4,r=new Promise((function(e,r){t=setTimeout((function(){r(new Error("Action timed out while waiting for response."))}),n)})),i=function(){return clearTimeout(t),e};return Promise.race([this.then(i).catch(i),r])})},9728:function(t,e,n){"use strict";var r=n(4659),i=n(4730),o=function(){function t(e){if((0,r.Z)(this,t),!(this instanceof t))return new t(e);this.wpcom=e,this.urls=[]}return(0,i.Z)(t,[{key:"add",value:function(t){return this.urls.push(t),this}},{key:"run",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1?arguments[1]:void 0;return"function"==typeof t&&(e=t,t={}),t.urls=this.urls,this.wpcom.req.get("/batch",t,e)}}]),t}();e.Z=o},6398:function(t,e,n){"use strict";var r=n(4659),i=n(4730),o=function(){function t(e,n){if((0,r.Z)(this,t),!(this instanceof t))return new t(e,n);this._domain=e,this._subpath="/domains/"+this._domain+"/dns",this.wpcom=n}return(0,i.Z)(t,[{key:"add",value:function(t,e,n){return"function"==typeof e&&(n=e,e={}),this.wpcom.req.post(this._subpath+"/add",e,t,n)}},{key:"delete",value:function(t,e,n){return this.wpcom.req.post(this._subpath+"/delete",e,t,n)}}]),t}();e.Z=o},4449:function(t,e,n){"use strict";var r=n(4659),i=n(4730),o=function(){function t(e,n,i){if((0,r.Z)(this,t),!(this instanceof t))return new t(e,n,i);e&&(this._email=e),this._domain=n,this._subpath="/domains/"+this._domain+"/email/",this.wpcom=i}return(0,i.Z)(t,[{key:"forward",value:function(t,e,n){var r={destination:t};return this.wpcom.req.post(this._subpath+this._email,e,r,n)}},{key:"add",value:function(t,e,n,r){"function"==typeof n&&(r=n,n={});var i={mailbox:t,destination:e};return this.wpcom.req.post(this._subpath+"new",n,i,r)}},{key:"delete",value:function(t,e,n){return this.wpcom.req.del(this._subpath+t+"/delete",e,n)}}]),t}();e.Z=o},7114:function(t,e,n){"use strict";var r=n(4659),i=n(4730),o=n(4449),s=n(6398),u="/domains/",c=function(){function t(e,n){if((0,r.Z)(this,t),!(this instanceof t))return new t(e,n);this._id=e,this.wpcom=n}return(0,i.Z)(t,[{key:"status",value:function(t,e){return this.wpcom.req.get(u+this._id+"/status",t,e)}},{key:"isAvailable",value:function(t,e){return this.wpcom.req.get(u+this._id+"/is-available",t,e)}},{key:"isMappable",value:function(t,e){return this.wpcom.req.get(u+this._id+"/is-mappable",t,e)}},{key:"canRedirect",value:function(t,e,n){var r=u+t+"/"+this._id+"/can-redirect";return this.wpcom.req.get(r,e,n)}},{key:"emailForwards",value:function(t,e){return this.wpcom.req.get(u+this._id+"/email",t,e)}},{key:"nameserversList",value:function(t,e){return this.wpcom.req.get(u+this._id+"/nameservers",t,e)}},{key:"updateNameservers",value:function(t,e,n){var r={nameservers:t};return this.wpcom.req.post(u+this._id+"/nameservers",e,r,n)}},{key:"dnsList",value:function(t,e){return this.wpcom.req.get(u+this._id+"/dns",t,e)}},{key:"googleAppsList",value:function(t,e){return this.wpcom.req.get(u+this._id+"/google-apps",t,e)}},{key:"resendICANN",value:function(t,e){return this.wpcom.req.post(u+this._id+"/resend-icann",t,e)}},{key:"email",value:function(t){return new o.Z(t,this._id,this.wpcom)}},{key:"dns",value:function(){return new s.Z(this._id,this.wpcom)}}]),t}();e.Z=c},35:function(t,e,n){"use strict";var r=n(4659),i=n(4730),o="/domains/",s=function(){function t(e){if((0,r.Z)(this,t),!(this instanceof t))return new t(e);this.wpcom=e}return(0,i.Z)(t,[{key:"suggestions",value:function(t,e){return"string"==typeof t&&(t={query:t}),this.wpcom.req.get(o+"suggestions",t,e)}},{key:"suggestionsExamples",value:function(t,e){return this.wpcom.req.get(o+"suggestions/examples",t,e)}},{key:"supportedCountries",value:function(t,e){return this.wpcom.req.get(o+"supported-countries",t,e)}},{key:"supportedStates",value:function(t,e,n){var r=o+"supported-states/"+t;return this.wpcom.req.get(r,e,n)}}]),t}();e.Z=s},8068:function(t,e,n){"use strict";n.d(e,{Z:function(){return s}});var r=n(4659),i=n(4730),o=n(5005),s=function(){function t(e){if((0,r.Z)(this,t),!(this instanceof t))return new t(e);this.wpcom=e}return(0,i.Z)(t,[{key:"survey",value:function(t,e){return new o.Z(t,e,this.wpcom)}}]),t}()},5005:function(t,e,n){"use strict";n.d(e,{Z:function(){return u}});var r=n(1119),i=n(4659),o=n(4730),s="/marketing/survey",u=function(){function t(e,n,r){if((0,i.Z)(this,t),!e)throw new TypeError("`id` survey is not correctly defined");if(!(this instanceof t))return new t(e,n,r);"object"==typeof n?this.wpcom=n:(this._siteId=n,this.wpcom=r),this._id=e,this._responses={}}return(0,o.Z)(t,[{key:"setSiteId",value:function(t){return this._siteId=t,this}},{key:"addResponse",value:function(t,e){return this._responses=Object.assign({},this._responses,(0,r.Z)({},t,e)),this}},{key:"addResponses",value:function(t){return this._responses=Object.assign({},this._responses,t),this}},{key:"submit",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0;return e.survey_id=this._id,e.site_id=e.site_id||this._siteId,e.survey_responses=e.survey_responses||this._responses,this.wpcom.req.post("".concat(s),t,e,n)}}]),t}()},2921:function(t,e,n){"use strict";n.d(e,{Z:function(){return s}});var r=n(4659),i=n(4730),o="/me/connected-applications/",s=function(){function t(e,n){if((0,r.Z)(this,t),!(this instanceof t))return new t(e,n);this._id=e,this.wpcom=n}return(0,i.Z)(t,[{key:"get",value:function(t,e){return this.wpcom.req.get(o+this._id,t,e)}},{key:"delete",value:function(t,e){return this.wpcom.req.del(o+this._id+"/delete",t,e)}}]),t}()},2836:function(t,e,n){"use strict";n.d(e,{Z:function(){return c}});var r=n(2769),i=n(2921),o=n(2695),s=n(7699),u=n(9814);function c(t){if(!(this instanceof c))return new c(t);this.wpcom=t}c.prototype.get=function(t,e){return this.wpcom.req.get("/me",t,e)},c.prototype.billingHistory=function(t,e){return this.wpcom.req.get("/me/billing-history",t,e)},c.prototype.postsList=function(t,e){return this.wpcom.req.get("/me/posts",t,e)},c.prototype.sites=function(t,e){return this.wpcom.req.get("/me/sites",t,e)},c.prototype.likes=function(t,e){return this.wpcom.req.get("/me/likes",t,e)},c.prototype.connectedApps=function(t,e){return this.wpcom.req.get("/me/connected-applications",t,e)},c.prototype.keyringConnections=function(t,e){return this.wpcom.req.get("/me/connections",t,e)},c.prototype.publicizeConnections=function(t,e){return this.wpcom.req.get("/me/publicize-connections",t,e)},c.prototype.settings=function(){return new s.Z(this.wpcom)},c.prototype.connectedApp=function(t){return new i.Z(t,this.wpcom)},c.prototype.publicizeConnection=function(t){return new o.Z(t,this.wpcom)},c.prototype.twoStep=function(){return new u.Z(this.wpcom)},c.prototype.keyringConnection=function(t){return new r.Z(t,this.wpcom)}},2769:function(t,e,n){"use strict";n.d(e,{Z:function(){return s}});var r=n(4659),i=n(4730),o="/me/connections/",s=function(){function t(e,n){if((0,r.Z)(this,t),!(this instanceof t))return new t(e,n);this._id=e,this.wpcom=n}return(0,i.Z)(t,[{key:"get",value:function(t,e){return this.wpcom.req.get({path:o+this._id,apiNamespace:"wpcom/v2"},t,e)}},{key:"delete",value:function(t,e){return this.wpcom.req.get({path:o+this._id,apiNamespace:"wpcom/v2",method:"DELETE"},t,e)}}]),t}()},2695:function(t,e,n){"use strict";n.d(e,{Z:function(){return s}});var r=n(4659),i=n(4730),o="/me/publicize-connections/",s=function(){function t(e,n){if((0,r.Z)(this,t),!(this instanceof t))return new t(e,n);this._id=e,this.wpcom=n}return(0,i.Z)(t,[{key:"get",value:function(t,e){return this.wpcom.req.get(o+this._id,t,e)}},{key:"add",value:function(t,e,n){return this.wpcom.req.post(o+"new",t,e,n)}},{key:"update",value:function(t,e,n){return this.wpcom.req.put(o+this._id,t,e,n)}},{key:"delete",value:function(t,e){return this.wpcom.req.del(o+this._id+"/delete",t,e)}}]),t}()},7699:function(t,e,n){"use strict";n.d(e,{Z:function(){return o}});var r=n(9283),i=n(142);function o(t){if(!(this instanceof o))return new o(t);this.wpcom=t}o.prototype.get=function(t,e){return this.wpcom.req.get("/me/settings",t,e)},o.prototype.update=function(t,e,n){return this.wpcom.req.put("/me/settings/",t,e,n)},o.prototype.profileLinks=function(){return new r.Z(this.wpcom)},o.prototype.password=function(){return new i.Z(this.wpcom)}},142:function(t,e,n){"use strict";n.d(e,{Z:function(){return o}});var r=n(4659),i=n(4730),o=function(){function t(e){if((0,r.Z)(this,t),!(this instanceof t))return new t(e);this.wpcom=e}return(0,i.Z)(t,[{key:"validate",value:function(t,e,n){return this.wpcom.req.post("/me/settings/password/validate",e,{password:t},n)}}]),t}()},9283:function(t,e,n){"use strict";n.d(e,{Z:function(){return i}});var r="/me/settings/profile-links";function i(t){if(!(this instanceof i))return new i(t);this.wpcom=t}i.prototype.get=function(t,e){return this.wpcom.req.get(r,t,e)},i.prototype.mine=i.prototype.get,i.prototype.add=function(t,e,n){"function"==typeof e&&(n=e,e={}),t instanceof Array||(t=[t]),e.apiVersion="1.2";return this.wpcom.req.post("/me/settings/profile-links/new",e,{links:t},n)},i.prototype.del=function(t,e,n){var i=r+"/"+t+"/delete";return this.wpcom.req.del(i,e,n)},i.prototype.delete=i.prototype.del},9814:function(t,e,n){"use strict";n.d(e,{Z:function(){return s}});var r=n(4659),i=n(4730),o=n(4086),s=function(){function t(e){if((0,r.Z)(this,t),!(this instanceof t))return new t(e);this.wpcom=e}return(0,i.Z)(t,[{key:"get",value:function(t,e){return this.wpcom.req.get("/me/two-step/",t,e)}},{key:"sms",value:function(){return new o.Z(this.wpcom)}}]),t}()},4086:function(t,e,n){"use strict";n.d(e,{Z:function(){return o}});var r=n(4659),i=n(4730),o=function(){function t(e){if((0,r.Z)(this,t),!(this instanceof t))return new t(e);this.wpcom=e}return(0,i.Z)(t,[{key:"send",value:function(t,e){return this.wpcom.req.post("/me/two-step/sms/new",t,e)}}]),t}()},6870:function(t,e,n){"use strict";n.d(e,{Z:function(){return s}});var r=n(4659),i=n(4730),o="/plans",s=function(){function t(e){if((0,r.Z)(this,t),!(this instanceof t))return new t(e);this.wpcom=e}return(0,i.Z)(t,[{key:"list",value:function(t,e){return this.wpcom.req.get(o,t,e)}},{key:"features",value:function(t,e){return this.wpcom.req.get("".concat(o,"/features"),t,e)}}]),t}()},209:function(t,e){"use strict";e.Z=[{name:"categoriesList",subpath:"categories"},{name:"commentsList",subpath:"comments"},{name:"domainsList",subpath:"domains"},{name:"embedsList",subpath:"embeds"},{name:"followsList",subpath:"follows"},{name:"mediaList",subpath:"media"},{name:"pageTemplates",subpath:"page-templates"},{name:"pluginsList",subpath:"plugins"},{name:"postsList",subpath:"posts"},{name:"postTypesList",subpath:"post-types"},{name:"shortcodesList",subpath:"shortcodes"},{name:"stats",subpath:"stats"},{name:"statsClicks",subpath:"stats/clicks"},{name:"statsCommentFollowers",subpath:"stats/comment-followers"},{name:"statsComments",subpath:"stats/comments"},{name:"statsCountryViews",subpath:"stats/country-views"},{name:"statsFollowers",subpath:"stats/followers"},{name:"statsInsights",subpath:"stats/insights"},{name:"statsPublicize",subpath:"stats/publicize"},{name:"statsReferrers",subpath:"stats/referrers"},{name:"statsSearchTerms",subpath:"stats/search-terms"},{name:"statsStreak",subpath:"stats/streak"},{name:"statsSummary",subpath:"stats/summary"},{name:"statsTags",subpath:"stats/tags"},{name:"statsTopAuthors",subpath:"stats/top-authors"},{name:"statsTopPosts",subpath:"stats/top-posts"},{name:"statsVideoPlays",subpath:"stats/video-plays"},{name:"statsVisits",subpath:"stats/visits"},{name:"tagsList",subpath:"tags"},{name:"usersList",subpath:"users"},{name:"wpcomPluginsList",subpath:"wpcom-plugins"}]},8729:function(t,e){"use strict";e.Z=[{name:"likesList",subpath:"likes"},{name:"subscribersList",subpath:"subscribers"}]},3388:function(t,e,n){"use strict";function r(t,e,n){if(!e)throw new Error("`site id` is not correctly defined");if(!(this instanceof r))return new r(t,e,n);this.wpcom=n,this._sid=e,this._slug=t}n.d(e,{Z:function(){return r}}),r.prototype.slug=function(t){this._slug=t},r.prototype.get=function(t,e){var n="/sites/"+this._sid+"/categories/slug:"+this._slug;return this.wpcom.req.get(n,t,e)},r.prototype.add=function(t,e,n){var r="/sites/"+this._sid+"/categories/new";return this.wpcom.req.post(r,t,e,n)},r.prototype.update=function(t,e,n){var r="/sites/"+this._sid+"/categories/slug:"+this._slug;return this.wpcom.req.put(r,t,e,n)},r.prototype.delete=r.prototype.del=function(t,e){var n="/sites/"+this._sid+"/categories/slug:"+this._slug+"/delete";return this.wpcom.req.del(n,t,e)}},1832:function(t,e,n){"use strict";n.d(e,{Z:function(){return i}});var r=n(7369);function i(t,e,n,r){if(!n)throw new Error("`site id` is not correctly defined");if(!(this instanceof i))return new i(t,e,n,r);this.wpcom=r,this._cid=t,this._pid=e,this._sid=n}i.prototype.get=function(t,e){var n="/sites/"+this._sid+"/comments/"+this._cid;return this.wpcom.req.get(n,t,e)},i.prototype.replies=function(t,e){var n="/sites/"+this._sid+"/posts/"+this._pid+"/replies/";return this.wpcom.req.get(n,t,e)},i.prototype.add=function(t,e,n){void 0===n&&(void 0===e?(e=t,t={}):"function"==typeof e&&(n=e,e=t,t={})),e="string"==typeof e?{content:e}:e;var r="/sites/"+this._sid+"/posts/"+this._pid+"/replies/new";return this.wpcom.req.post(r,t,e,n)},i.prototype.update=function(t,e,n){"function"==typeof e&&(n=e,e=t,t={}),e="string"==typeof e?{content:e}:e;var r="/sites/"+this._sid+"/comments/"+this._cid;return this.wpcom.req.put(r,t,e,n)},i.prototype.reply=function(t,e,n){"function"==typeof e&&(n=e,e=t,t={}),e="string"==typeof e?{content:e}:e;var r="/sites/"+this._sid+"/comments/"+this._cid+"/replies/new";return this.wpcom.req.post(r,t,e,n)},i.prototype.del=i.prototype.delete=function(t,e){var n="/sites/"+this._sid+"/comments/"+this._cid+"/delete";return this.wpcom.req.del(n,t,e)},i.prototype.like=function(){return(0,r.Z)(this._cid,this._sid,this.wpcom)},i.prototype.likesList=function(t,e){var n="/sites/"+this._sid+"/comments/"+this._cid+"/likes";return this.wpcom.req.get(n,t,e)}},7369:function(t,e,n){"use strict";function r(t,e,n){if(!e)throw new Error("`site id` is not correctly defined");if(!t)throw new Error("`comment id` is not correctly defined");if(!(this instanceof r))return new r(t,e,n);this.wpcom=n,this._cid=t,this._sid=e}n.d(e,{Z:function(){return r}}),r.prototype.mine=r.prototype.state=function(t,e){var n="/sites/"+this._sid+"/comments/"+this._cid+"/likes/mine";return this.wpcom.req.get(n,t,e)},r.prototype.add=function(t,e){var n="/sites/"+this._sid+"/comments/"+this._cid+"/likes/new";return this.wpcom.req.post(n,t,e)},r.prototype.del=r.prototype.delete=function(t,e){var n="/sites/"+this._sid+"/comments/"+this._cid+"/likes/mine/delete";return this.wpcom.req.del(n,t,e)}},2096:function(t,e,n){"use strict";var r=n(4659),i=n(4730),o=function(){function t(e,n){if((0,r.Z)(this,t),!e)throw new Error("`site id` is not correctly defined");if(!(this instanceof t))return new t(e,n);this.wpcom=n,this._sid=e,this.path="/sites/".concat(this._sid,"/vouchers")}return(0,i.Z)(t,[{key:"list",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1?arguments[1]:void 0;return t.apiNamespace="wpcom/v2",this.wpcom.req.get(this.path,t,e)}},{key:"get",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0;return e.apiNamespace="wpcom/v2",this.wpcom.req.get("".concat(this.path,"/").concat(t),e,n)}},{key:"assign",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0;return e.apiNamespace="wpcom/v2",this.wpcom.req.post("".concat(this.path,"/").concat(t,"/assign"),e,{},n)}}]),t}();e.Z=o},7569:function(t,e,n){"use strict";var r=n(4659),i=n(4730),o=function(){function t(e,n){if((0,r.Z)(this,t),!(this instanceof t))return new t(e,n);this._sid=e,this.path="".concat("/sites","/").concat(this._sid,"/domains"),this.wpcom=n}return(0,i.Z)(t,[{key:"getPrimary",value:function(t,e){return this.wpcom.req.get("".concat(this.path,"/primary"),t,e)}},{key:"setPrimary",value:function(t,e){return this.wpcom.req.put("".concat(this.path,"/primary"),{},{domain:t},e)}},{key:"getRedirect",value:function(t,e){return this.wpcom.req.get("".concat(this.path,"/redirect"),t,e)}},{key:"setRedirect",value:function(t,e){return"string"==typeof t&&(t={location:t}),this.wpcom.req.put("".concat(this.path,"/redirect"),{},t,e)}}]),t}();e.Z=o},8447:function(t,e,n){"use strict";function r(t,e){if(!t)throw new Error("`site id` is not correctly defined");if(!(this instanceof r))return new r(t,e);this.wpcom=e,this._sid=t}n.d(e,{Z:function(){return r}}),r.prototype.mine=r.prototype.state=function(t,e){var n="/sites/"+this._sid+"/follows/mine";return this.wpcom.req.get(n,t,e)},r.prototype.follow=r.prototype.add=function(t,e){var n="/sites/"+this._sid+"/follows/new";return this.wpcom.req.put(n,t,null,e)},r.prototype.unfollow=r.prototype.del=function(t,e){var n="/sites/"+this._sid+"/follows/mine/delete";return this.wpcom.req.del(n,t,null,e)}},2579:function(t,e,n){"use strict";var r=n(4659),i=n(4730),o=n(8049),s=n.n(o),u=n(3388),c=n(1832),a=n(8447),p=n(8837),f=n(3164),l=n(5489),h=n(7187),d=n(7569),m=n(361),y=n(150),w=n(1986),g=n(2096),v=n(1753),_=n(4866),b=n(209),C=n(9426),k=s()("wpcom:site"),Z=function(){function t(e,n){if((0,r.Z)(this,t),!(this instanceof t))return new t(e,n);this.wpcom=n,k("set %o site id",e),this._id=encodeURIComponent(e),this.path="".concat("/sites","/").concat(this._id)}return(0,i.Z)(t,[{key:"get",value:function(t,e){return this.wpcom.req.get(this.path,t,e)}},{key:"post",value:function(t){return new f.Z(t,this._id,this.wpcom)}},{key:"addPost",value:function(t,e){return new f.Z(null,this._id,this.wpcom).add(t,e)}},{key:"deletePost",value:function(t,e){return new f.Z(t,this._id,this.wpcom).delete(e)}},{key:"media",value:function(t){return new p.Z(t,this._id,this.wpcom)}},{key:"addMediaFiles",value:function(t,e,n){return new p.Z(null,this._id,this.wpcom).addFiles(t,e,n)}},{key:"addMediaUrls",value:function(t,e,n){return new p.Z(null,this._id,this.wpcom).addUrls(t,e,n)}},{key:"deleteMedia",value:function(t,e){return new p.Z(t,this._id,this.wpcom).del(e)}},{key:"comment",value:function(t){return new c.Z(t,null,this._id,this.wpcom)}},{key:"follow",value:function(){return new a.Z(this._id,this.wpcom)}},{key:"plugin",value:function(t){return new m.Z(t,this._id,this.wpcom)}},{key:"wpcomPlugin",value:function(t){return new _.Z(t,this._id,this.wpcom)}},{key:"category",value:function(t){return new u.Z(t,this._id,this.wpcom)}},{key:"tag",value:function(t){return new l.Z(t,this._id,this.wpcom)}},{key:"taxonomy",value:function(t){return new w.Z(t,this._id,this.wpcom)}},{key:"creditVouchers",value:function(){return new g.Z(this._id,this.wpcom)}},{key:"postType",value:function(t){return new h.Z(t,this._id,this.wpcom)}},{key:"settings",value:function(){return new y.Z(this._id,this.wpcom)}},{key:"domain",value:function(){return new d.Z(this._id,this.wpcom)}},{key:"postCounts",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"post",e=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0;return"function"==typeof e&&(n=e,e={}),this.wpcom.req.get("".concat(this.path,"/post-counts/").concat(t),e,n)}},{key:"renderShortcode",value:function(t,e,n){if("string"!=typeof t)throw new TypeError("expected a url String");return"function"==typeof e&&(n=e,e={}),(e=e||{}).shortcode=t,this.wpcom.req.get("".concat(this.path,"/shortcodes/render"),e,n)}},{key:"renderEmbed",value:function(t,e,n){if("string"!=typeof t)throw new TypeError("expected an embed String");return"function"==typeof e&&(n=e,e={}),(e=e||{}).embed_url=t,this.wpcom.req.get("".concat(this.path,"/embeds/render"),e,n)}},{key:"statsReferrersSpamNew",value:function(t,e){var n="".concat(this.path,"/stats/referrers/spam/new");return this.wpcom.req.post(n,{domain:t},null,e)}},{key:"statsReferrersSpamDelete",value:function(t,e){var n="".concat(this.path,"/stats/referrers/spam/delete");return this.wpcom.req.post(n,{domain:t},null,e)}},{key:"statsVideo",value:function(t,e,n){var r="".concat(this.path,"/stats/video/").concat(t);return"function"==typeof e&&(n=e,e={}),this.wpcom.req.get(r,e,n)}},{key:"statsPostViews",value:function(t,e,n){var r="".concat(this.path,"/stats/post/").concat(t);return"function"==typeof e&&(n=e,e={}),this.wpcom.req.get(r,e,n)}},{key:"wordAds",value:function(){return new v.Z(this._id,this.wpcom)}}]),t}();(0,C.Z)(Z,b.Z,(function(t,e){return"/sites/".concat(e._id,"/").concat(t.subpath)})),e.Z=Z},8837:function(t,e,n){"use strict";n.d(e,{Z:function(){return c}});var r=n(8049),i=n.n(r),o=n(6426),s=i()("wpcom:media");function u(t){var e,n,r,i,u=[];for(t=Array.isArray(t)?t:[t],e=0;e<t.length;e++){"string"==typeof(n=t[e])&&(n=(0,o.U)(n));var c=!!n._readableState,a="undefined"!=typeof File&&n instanceof File;if(s("isStream: %s",c),s("isFile: %s",a),!a&&!c){for(r in n)s("add %o => %o",r,n[r]),"file"!==r&&(i="attrs["+e+"]["+r+"]",u.push([i,n[r]]));"string"==typeof(n=n.file)&&(n=(0,o.U)(n))}u.push(["media[]",n])}return u}function c(t,e,n){if(!(this instanceof c))return new c(t,e,n);this.wpcom=n,this._sid=e,this._id=t,this._id||s("WARN: media `id` is not defined")}c.prototype.get=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1?arguments[1]:void 0;t.apiVersion=t.apiVersion||"1.2";var n="/sites/"+this._sid+"/media/"+this._id;return this.wpcom.req.get(n,t,e)},c.prototype.update=function(t,e,n){var r={path:"/sites/"+this._sid+"/media/"+this._id};return this.wpcom.req.put(r,t,e,n)},c.prototype.edit=function(t,e,n){"function"!=typeof e&&e||(n=e,e=t,t={});var r={path:"/sites/"+this._sid+"/media/"+this._id+"/edit"};if(e&&e.media){for(var i in r.formData=[["media",e.media]],delete e.media,e)r.formData.push(["attrs[".concat(i,"]"),e[i]]);e=null}return this.wpcom.req.put(r,t,e,n)},c.prototype.addFiles=function(t,e,n){void 0===n&&(void 0===e?(e=t,t={}):"function"==typeof e&&(n=e,e=t,t={}));var r={path:"/sites/"+this._sid+"/media/new",formData:u(e)};return this.wpcom.req.post(r,t,null,n)},c.prototype.addUrls=function(t,e,n){void 0===n&&(void 0===e?(e=t,t={}):"function"==typeof e&&(n=e,e=t,t={}));var r,i,o,s,u="/sites/"+this._sid+"/media/new",c={media_urls:[]};for(e=Array.isArray(e)?e:[e],r=0;r<e.length;r++){if("string"==typeof(i=e[r]))o=i;else{for(s in c.attrs||(c.attrs=[]),c.attrs[r]={},i)"url"!==s&&(c.attrs[r][s]=i[s]);o=i.url}c.media_urls.push(o)}return this.wpcom.req.post(u,t,c,n)},c.prototype.delete=c.prototype.del=function(t,e){var n="/sites/"+this._sid+"/media/"+this._id+"/delete";return this.wpcom.req.del(n,t,e)}},361:function(t,e,n){"use strict";var r=n(4659),i=n(4730),o=function(){function t(e,n,i){if((0,r.Z)(this,t),!(this instanceof t))return new t(e,n,i);if(!e)throw new Error("`slug` is not correctly defined");this._slug=encodeURIComponent(e),this._sid=n,this.wpcom=i;var o="".concat("/sites","/").concat(this._sid,"/plugins");this.pluginPath="".concat(o,"/").concat(this._slug)}return(0,i.Z)(t,[{key:"get",value:function(t,e){return this.wpcom.req.get(this.pluginPath,t,e)}},{key:"update",value:function(t,e,n){return this.wpcom.req.put(this.pluginPath,t,e,n)}},{key:"updateVersion",value:function(t,e){return this.wpcom.req.put("".concat(this.pluginPath,"/update"),t,e)}},{key:"install",value:function(t,e){return this.wpcom.req.put("".concat(this.pluginPath,"/install"),t,e)}},{key:"delete",value:function(t,e){return this.wpcom.req.put("".concat(this.pluginPath,"/delete"),t,e)}},{key:"activate",value:function(t,e){return this.update(t,{active:!0},e)}},{key:"deactivate",value:function(t,e){return this.update(t,{active:!1},e)}},{key:"enableAutoupdate",value:function(t,e){return this.update(t,{autoupdate:!0},e)}},{key:"disableAutoupdate",value:function(t,e){return this.update(t,{autoupdate:!1},e)}}]),t}();e.Z=o},7187:function(t,e,n){"use strict";n.d(e,{Z:function(){return o}});var r=n(4659),i=n(4730),o=function(){function t(e,n,i){if((0,r.Z)(this,t),!n)throw new TypeError("`siteId` is not correctly defined");if(!e)throw new TypeError("`postType` is not correctly defined");if(!(this instanceof t))return new t(e,n,i);this.wpcom=i,this._siteId=encodeURIComponent(n),this._postType=encodeURIComponent(e),this._rootPath="/sites/".concat(this._siteId,"/post-types/").concat(this._postType)}return(0,i.Z)(t,[{key:"taxonomiesList",value:function(t,e){var n="".concat(this._rootPath,"/taxonomies");return this.wpcom.req.get(n,t,e)}}]),t}()},3164:function(t,e,n){"use strict";var r=n(4659),i=n(4730),o=n(8049),s=n.n(o),u=n(9932),c=n(3185),a=n(1832),p=n(2250),f=n(9426),l=n(8729),h=s()("wpcom:post"),d=function(){function t(e,n,i){if((0,r.Z)(this,t),!(this instanceof t))return new t(e,n,i);this.wpcom=i,this._sid=n,this.path="".concat("/sites","/").concat(this._sid,"/posts"),"object"!=typeof(e=e||{})?this._id=e:(this._id=e.id,this._slug=e.slug)}return(0,i.Z)(t,[{key:"id",value:function(t){this._id=t}},{key:"slug",value:function(t){this._slug=t}},{key:"getPostPath",value:function(){return"".concat(this.path,"/").concat(this._id)}},{key:"get",value:function(t,e){return!this._id&&this._slug?this.getBySlug(t,e):this.wpcom.req.get(this.getPostPath(),t,e)}},{key:"getBySlug",value:function(t,e){return this.wpcom.req.get("".concat(this.path,"/slug:").concat(this._slug),t,e)}},{key:"add",value:function(t,e,n){var r=this;return void 0===n&&(void 0===e?(e=t,t={}):"function"==typeof e&&(n=e,e=t,t={})),this.wpcom.req.post("".concat(this.path,"/new"),t,e).then((function(t){if(r._id=t.ID,h("Set post _id: %s",r._id),r._slug=t.slug,h("Set post _slug: %s",r._slug),"function"!=typeof n)return Promise.resolve(t);n(null,t)})).catch((function(t){if("function"!=typeof n)return Promise.reject(t);n(t)}))}},{key:"update",value:function(t,e,n){return this.wpcom.req.put(this.getPostPath(),t,e,n)}},{key:"delete",value:function(t,e){var n="".concat(this.getPostPath(),"/delete");return this.wpcom.req.del(n,t,e)}},{key:"del",value:function(t,e){return this.delete(t,e)}},{key:"restore",value:function(t,e){return this.wpcom.req.put("".concat(this.getPostPath(),"/restore"),t,null,e)}},{key:"related",value:function(t,e){return this.wpcom.req.put("".concat(this.getPostPath(),"/related"),t,null,e)}},{key:"comment",value:function(t){return new a.Z(t,this._id,this._sid,this.wpcom)}},{key:"comments",value:function(t,e){return new a.Z(null,this._id,this._sid,this.wpcom).replies(t,e)}},{key:"like",value:function(){return new u.Z(this._id,this._sid,this.wpcom)}},{key:"reblog",value:function(){return new c.Z(this._id,this._sid,this.wpcom)}},{key:"subscriber",value:function(){return new p.Z(this._id,this._sid,this.wpcom)}}]),t}();(0,f.Z)(d,l.Z,(function(t,e){return"/sites/".concat(e._sid,"/posts/").concat(e._id,"/").concat(t.subpath)})),e.Z=d},9932:function(t,e,n){"use strict";function r(t,e,n){if(!e)throw new Error("`site id` is not correctly defined");if(!t)throw new Error("`post id` is not correctly defined");if(!(this instanceof r))return new r(t,e,n);this.wpcom=n,this._pid=t,this._sid=e}n.d(e,{Z:function(){return r}}),r.prototype.mine=r.prototype.state=function(t,e){var n="/sites/"+this._sid+"/posts/"+this._pid+"/likes/mine";return this.wpcom.req.get(n,t,e)},r.prototype.add=function(t,e){var n="/sites/"+this._sid+"/posts/"+this._pid+"/likes/new";return this.wpcom.req.put(n,t,null,e)},r.prototype.del=r.prototype.delete=function(t,e){var n="/sites/"+this._sid+"/posts/"+this._pid+"/likes/mine/delete";return this.wpcom.req.del(n,t,e)}},3185:function(t,e,n){"use strict";function r(t,e,n){if(!e)throw new Error("`site id` is not correctly defined");if(!t)throw new Error("`post id` is not correctly defined");if(!(this instanceof r))return new r(t,e,n);this.wpcom=n,this._pid=t,this._sid=e}n.d(e,{Z:function(){return r}}),r.prototype.mine=r.prototype.state=function(t,e){var n="/sites/"+this._sid+"/posts/"+this._pid+"/reblogs/mine";return this.wpcom.req.get(n,t,e)},r.prototype.add=function(t,e,n){if("function"==typeof e&&(n=e,e=t,t={}),e&&!e.destination_site_id)return n(new Error("destination_site_id is not defined"));var r="/sites/"+this._sid+"/posts/"+this._pid+"/reblogs/new";return this.wpcom.req.put(r,t,e,n)},r.prototype.to=function(t,e,n){return void 0===n&&(void 0===e?e=null:"function"==typeof e&&(n=e,e=null)),this.add({note:e,destination_site_id:t},n)}},2250:function(t,e,n){"use strict";var r=n(4659),i=n(4730),o=function(){function t(e,n,i){if((0,r.Z)(this,t),!n)throw new Error("`side id` is not correctly defined");if(!e)throw new Error("`post id` is not correctly defined");if(!(this instanceof t))return new t(e,n,i);this.wpcom=i,this._id=e,this._sid=n,this.path="/sites/".concat(this._sid,"/posts/").concat(this._id,"/subscribers")}return(0,i.Z)(t,[{key:"mine",value:function(t,e){return this.wpcom.req.get("".concat(this.path,"/mine"),t,e)}},{key:"add",value:function(t,e){return this.wpcom.req.put("".concat(this.path,"/new"),t,null,e)}},{key:"del",value:function(t,e){return this.wpcom.req.del("".concat(this.path,"/mine/delete"),t,e)}}]),t}();o.prototype.state=o.prototype.mine,o.prototype.delete=o.prototype.del,e.Z=o},150:function(t,e,n){"use strict";var r=n(1119),i=n(4659),o=n(4730),s=function(){function t(e,n){if((0,i.Z)(this,t),!e)throw new Error("`site id` is not correctly defined");if(!(this instanceof t))return new t(e,n);this.wpcom=n,this._sid=e,this.path="/sites/".concat(this._sid,"/settings")}return(0,o.Z)(t,[{key:"get",value:function(t,e){return this.wpcom.req.get(this.path,t,e)}},{key:"getOption",value:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(){},r={fields:"settings"};return new Promise((function(i,o){e.wpcom.req.get(e.path,r,(function(e,r){if(e)return n(e),o(e);if(!r)return n(),i();var s=r.settings;return s&&void 0!==s[t]?(n(null,s[t]),i(s[t])):(n(null,r),i(r))}))}))}},{key:"update",value:function(t,e,n){return this.wpcom.req.put(this.path,t,e,n)}},{key:"setOption",value:function(t,e,n){return this.wpcom.req.put(this.path,{},(0,r.Z)({},t,e),n)}}]),t}();e.Z=s},5489:function(t,e,n){"use strict";function r(t,e,n){if(!e)throw new Error("`site id` is not correctly defined");if(!(this instanceof r))return new r(t,e,n);this.wpcom=n,this._sid=e,this._slug=t}n.d(e,{Z:function(){return r}}),r.prototype.slug=function(t){this._slug=t},r.prototype.get=function(t,e){var n="/sites/"+this._sid+"/tags/slug:"+this._slug;return this.wpcom.req.get(n,t,e)},r.prototype.add=function(t,e,n){var r="/sites/"+this._sid+"/tags/new";return this.wpcom.req.post(r,t,e,n)},r.prototype.update=function(t,e,n){var r="/sites/"+this._sid+"/tags/slug:"+this._slug;return this.wpcom.req.put(r,t,e,n)},r.prototype.delete=r.prototype.del=function(t,e){var n="/sites/"+this._sid+"/tags/slug:"+this._slug+"/delete";return this.wpcom.req.del(n,t,e)}},1986:function(t,e,n){"use strict";var r=n(4659),i=n(4730),o=n(4046),s=function(){function t(e,n,i){if((0,r.Z)(this,t),!n)throw new TypeError("`siteId` is not correctly defined");if(!e)throw new TypeError("`taxonomy` is not correctly defined");if(!(this instanceof t))return new t(e,n,i);this.wpcom=i,this._siteId=encodeURIComponent(n),this._taxonomy=encodeURIComponent(e),this._rootPath="/sites/".concat(this._siteId,"/taxonomies/").concat(this._taxonomy)}return(0,i.Z)(t,[{key:"termsList",value:function(t,e){var n="".concat(this._rootPath,"/terms");return this.wpcom.req.get(n,t,e)}},{key:"term",value:function(t){return new o.Z(t,this._taxonomy,this._siteId,this.wpcom)}}]),t}();e.Z=s},4046:function(t,e,n){"use strict";var r=n(4659),i=n(4730),o=function(){function t(e,n,i,o){if((0,r.Z)(this,t),!i)throw new TypeError("`siteId` is not correctly defined");if(!n)throw new TypeError("`taxonomy` is not correctly defined");if(!(this instanceof t))return new t(e,n,i,o);this.wpcom=o,this._siteId=encodeURIComponent(i),this._taxonomy=encodeURIComponent(n),this._term=encodeURIComponent(e),this._taxonomyPath="/sites/".concat(this._siteId,"/taxonomies/").concat(this._taxonomy,"/terms")}return(0,i.Z)(t,[{key:"get",value:function(t,e){if(!this._term)throw new Error("`term` is not correctly defined");"function"==typeof t&&(e=t,t={});var n="".concat(this._taxonomyPath,"/slug:").concat(this._term);return this.wpcom.req.get(n,t,e)}},{key:"add",value:function(t,e){if(!t||!t.name)throw new Error("`params.name` is not correctly defined");var n="".concat(this._taxonomyPath,"/new");return this.wpcom.req.post(n,t,e)}},{key:"delete",value:function(t){if(!this._term)throw new Error("`term` is not correctly defined");var e="".concat(this._taxonomyPath,"/slug:").concat(this._term,"/delete");return this.wpcom.req.del(e,t)}},{key:"update",value:function(t,e){if(!this._term)throw new Error("`term` is not correctly defined");var n="".concat(this._taxonomyPath,"/slug:").concat(this._term);return this.wpcom.req.put(n,t,e)}}]),t}();e.Z=o},3243:function(t,e,n){"use strict";function r(t,e){if(!(this instanceof r))return new r(t,e);this._sid=t,this.wpcom=e}n.d(e,{Z:function(){return r}}),r.prototype.get=function(t,e){return this.wpcom.req.get("/sites/"+this._sid+"/wordads/earnings",t,e)}},1753:function(t,e,n){"use strict";n.d(e,{Z:function(){return s}});var r=n(4549),i=n(3243),o=n(1731);function s(t,e){if(!(this instanceof s))return new s(t,e);this._sid=t,this.wpcom=e}s.prototype.settings=function(){return new r.Z(this._sid,this.wpcom)},s.prototype.earnings=function(){return new i.Z(this._sid,this.wpcom)},s.prototype.tos=function(){return new o.Z(this._sid,this.wpcom)}},4549:function(t,e,n){"use strict";function r(t,e){if(!(this instanceof r))return new r(t,e);this._sid=t,this.wpcom=e}n.d(e,{Z:function(){return r}}),r.prototype.get=function(t,e){return this.wpcom.req.get("/sites/"+this._sid+"/wordads/settings",t,e)},r.prototype.update=function(t,e,n){var r="/sites/"+this._sid+"/wordads/settings";return this.wpcom.req.post(r,t,e,n)}},1731:function(t,e,n){"use strict";function r(t,e){if(!(this instanceof r))return new r(t,e);this._sid=t,this.wpcom=e}n.d(e,{Z:function(){return r}}),r.prototype.get=function(t,e){return this.wpcom.req.get("/sites/"+this._sid+"/wordads/tos",t,e)},r.prototype.update=function(t,e,n){var r="/sites/"+this._sid+"/wordads/tos";return this.wpcom.req.post(r,t,e,n)},r.prototype.sign=function(t,e){var n="/sites/"+this._sid+"/wordads/tos";return this.wpcom.req.post(n,t,{tos:"signed"},e)}},4866:function(t,e,n){"use strict";var r=n(4659),i=n(4730),o=function(){function t(e,n,i){if((0,r.Z)(this,t),!(this instanceof t))return new t(e,n,i);if(!e)throw new Error("`slug` is not correctly defined");this._slug=encodeURIComponent(e),this._sid=n,this.wpcom=i;var o="".concat("/sites","/").concat(this._sid,"/wpcom-plugins");this.pluginPath="".concat(o,"/").concat(this._slug)}return(0,i.Z)(t,[{key:"update",value:function(t,e,n){return this.wpcom.req.put(this.pluginPath,t,e,n)}},{key:"activate",value:function(t,e){return this.update(t,{active:!0},e)}},{key:"deactivate",value:function(t,e){return this.update(t,{active:!1},e)}}]),t}();e.Z=o},4308:function(t,e,n){"use strict";function r(t){if(!(this instanceof r))return new r(t);this.wpcom=t}n.d(e,{Z:function(){return r}}),r.prototype.suggest=function(t,e){return this.wpcom.req.get("/users/suggest",t,e)}},6426:function(t,e,n){"use strict";function r(){throw new Error("Cannot call fs functions within the browser")}n.d(e,{U:function(){return r}})},3818:function(t,e,n){"use strict";n.d(e,{Z:function(){return o}});var r=n(8049),i=n.n(r)()("wpcom:pinghub");function o(t){if(!(this instanceof o))return new o(t);this.wpcom=t,this.conns={}}o.prototype.connect=function(t,e){i("connect",t,e);var n=this,r={action:"connect",path:"/pinghub"+t},o=this.conns[t]=this.wpcom.req.get(r,(function(){}));o.onload=function(n){i("onload",t,n),e(null,n)},o.onerror=o.onabort=o.onclose=function(r){i("onerror",t,r),n.remove(t),e(r,null)}},o.prototype.disconnect=function(t){i("disconnect",t);var e={action:"disconnect",path:"/pinghub"+t};this.wpcom.req.get(e,(function(){}))},o.prototype.remove=function(t){i("remove",t),delete this.conns[t]}},781:function(t,e,n){"use strict";n.d(e,{Z:function(){return i}});var r=n(3918);function i(t){this.wpcom=t}i.prototype.get=function(t,e,n){return"function"==typeof e&&(n=e,e={}),r.Z.call(this.wpcom,t,e,null,n)},i.prototype.post=i.prototype.put=function(t,e,n,i){return void 0===i&&(void 0===n?(n=e,e={}):"function"==typeof n&&(i=n,n=e,e={})),(t="string"==typeof t?{path:t}:t).method=t.method||"post",r.Z.call(this.wpcom,t,e,n,i)},i.prototype.del=function(t,e,n){return"function"==typeof e&&(n=e,e={}),this.post(t,e,null,n)}},9426:function(t,e,n){"use strict";n.d(e,{Z:function(){return o}});var r=n(8049),i=n.n(r)()("wpcom:runtime");function o(t,e,n){e.forEach((function(e){i("Adding %o",(e="object"==typeof e?e:{name:e}).name),t.prototype[e.name]=function(t,e){return function(n,r){var i=e(t,this);return this.wpcom.req.get(i,n,r)}}(e,n)}))}},3918:function(t,e,n){"use strict";n.d(e,{Z:function(){return a}});var r=n(9126),i=n.n(r),o=n(8049),s=n.n(o),u=s()("wpcom:send-request"),c=s()("wpcom:send-request:res");function a(t,e,n,r){var o=this;return u("sendRequest(%o )",(t="string"==typeof t?{path:t}:t).path),t.method=(t.method||"get").toUpperCase(),"function"==typeof e&&(r=e,e={}),"function"==typeof n&&(r=n,n=null),(e=e||{}).apiVersion?(t.apiVersion=e.apiVersion,u("apiVersion: %o",t.apiVersion),delete e.apiVersion):t.apiVersion=this.apiVersion,e.apiNamespace&&(t.apiNamespace=e.apiNamespace,u("apiNamespace: %o",t.apiNamespace),delete e.apiNamespace),e.proxyOrigin&&(t.proxyOrigin=e.proxyOrigin,u("proxyOrigin: %o",t.proxyOrigin),delete e.proxyOrigin),e=i().stringify(e,{arrayFormat:"brackets"}),t.query=e,n&&(t.body=n),u("params: %o",t),"function"==typeof r?this.request(t,(function(t,e,n){c(e),r(t,e,n)})):new Promise((function(e,n){o.request(t,(function(t,r){c(r),t?n(t):e(r)}))}))}},8049:function(t,e,n){var r;e.formatArgs=function(e){if(e[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+e[0]+(this.useColors?"%c ":" ")+"+"+t.exports.humanize(this.diff),!this.useColors)return;var n="color: "+this.color;e.splice(1,0,n,"color: inherit");var r=0,i=0;e[0].replace(/%[a-zA-Z%]/g,(function(t){"%%"!==t&&(r++,"%c"===t&&(i=r))})),e.splice(i,0,n)},e.save=function(t){try{t?e.storage.setItem("debug",t):e.storage.removeItem("debug")}catch(n){}},e.load=function(){var t;try{t=e.storage.getItem("debug")}catch(n){}!t&&"undefined"!=typeof process&&"env"in process&&(t=process.env.DEBUG);return t},e.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+)/)},e.storage=function(){try{return localStorage}catch(t){}}(),e.destroy=(r=!1,function(){r||(r=!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`."))}),e.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"],e.log=console.debug||console.log||function(){},t.exports=n(2632)(e),t.exports.formatters.j=function(t){try{return JSON.stringify(t)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}},2632:function(t,e,n){var r=n(5182);t.exports=function(t){function e(t){var n,r,o,s=null;function u(){for(var t=arguments.length,r=new Array(t),i=0;i<t;i++)r[i]=arguments[i];if(u.enabled){var o=u,s=Number(new Date),c=s-(n||s);o.diff=c,o.prev=n,o.curr=s,n=s,r[0]=e.coerce(r[0]),"string"!=typeof r[0]&&r.unshift("%O");var a=0;r[0]=r[0].replace(/%([a-zA-Z%])/g,(function(t,n){if("%%"===t)return"%";a++;var i=e.formatters[n];if("function"==typeof i){var s=r[a];t=i.call(o,s),r.splice(a,1),a--}return t})),e.formatArgs.call(o,r);var p=o.log||e.log;p.apply(o,r)}}return u.namespace=t,u.useColors=e.useColors(),u.color=e.selectColor(t),u.extend=i,u.destroy=e.destroy,Object.defineProperty(u,"enabled",{enumerable:!0,configurable:!1,get:function(){return null!==s?s:(r!==e.namespaces&&(r=e.namespaces,o=e.enabled(t)),o)},set:function(t){s=t}}),"function"==typeof e.init&&e.init(u),u}function i(t,n){var r=e(this.namespace+(void 0===n?":":n)+t);return r.log=this.log,r}function o(t){return t.toString().substring(2,t.toString().length-2).replace(/\.\*\?$/,"*")}return e.debug=e,e.default=e,e.coerce=function(t){if(t instanceof Error)return t.stack||t.message;return t},e.disable=function(){var t=[].concat(r(e.names.map(o)),r(e.skips.map(o).map((function(t){return"-"+t})))).join(",");return e.enable(""),t},e.enable=function(t){var n;e.save(t),e.namespaces=t,e.names=[],e.skips=[];var r=("string"==typeof t?t:"").split(/[\s,]+/),i=r.length;for(n=0;n<i;n++)r[n]&&("-"===(t=r[n].replace(/\*/g,".*?"))[0]?e.skips.push(new RegExp("^"+t.substr(1)+"$")):e.names.push(new RegExp("^"+t+"$")))},e.enabled=function(t){if("*"===t[t.length-1])return!0;var n,r;for(n=0,r=e.skips.length;n<r;n++)if(e.skips[n].test(t))return!1;for(n=0,r=e.names.length;n<r;n++)if(e.names[n].test(t))return!0;return!1},e.humanize=n(1378),e.destroy=function(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")},Object.keys(t).forEach((function(n){e[n]=t[n]})),e.names=[],e.skips=[],e.formatters={},e.selectColor=function(t){for(var n=0,r=0;r<t.length;r++)n=(n<<5)-n+t.charCodeAt(r),n|=0;return e.colors[Math.abs(n)%e.colors.length]},e.enable(e.load()),e}},3830:function(t,e,n){"use strict";var r=n(956);t.exports=function(){var t=r.apply(r,arguments);return t.charAt(0).toUpperCase()+t.slice(1)}},956:function(t){"use strict";t.exports=function(){var t=[].map.call(arguments,(function(t){return t.trim()})).filter((function(t){return t.length})).join("-");return t.length?1!==t.length&&/[_.\- ]+/.test(t)?t.replace(/^[_.\- ]+/,"").toLowerCase().replace(/[_.\- ]+(\w|$)/g,(function(t,e){return e.toUpperCase()})):t[0]===t[0].toLowerCase()&&t.slice(1)!==t.slice(1).toLowerCase()?t:t.toLowerCase():""}},2686:function(t,e){"use strict";e.Z=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i},5302:function(t,e,n){"use strict";var r;n.d(e,{Z:function(){return o}});var i=new Uint8Array(16);function o(){if(!r&&!(r="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return r(i)}},708:function(t,e,n){"use strict";for(var r=n(6525),i=[],o=0;o<256;++o)i.push((o+256).toString(16).substr(1));e.Z=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=(i[t[e+0]]+i[t[e+1]]+i[t[e+2]]+i[t[e+3]]+"-"+i[t[e+4]]+i[t[e+5]]+"-"+i[t[e+6]]+i[t[e+7]]+"-"+i[t[e+8]]+i[t[e+9]]+"-"+i[t[e+10]]+i[t[e+11]]+i[t[e+12]]+i[t[e+13]]+i[t[e+14]]+i[t[e+15]]).toLowerCase();if(!(0,r.Z)(n))throw TypeError("Stringified UUID is invalid");return n}},8767:function(t,e,n){"use strict";var r=n(5302),i=n(708);e.Z=function(t,e,n){var o=(t=t||{}).random||(t.rng||r.Z)();if(o[6]=15&o[6]|64,o[8]=63&o[8]|128,e){n=n||0;for(var s=0;s<16;++s)e[n+s]=o[s];return e}return(0,i.Z)(o)}},6525:function(t,e,n){"use strict";var r=n(2686);e.Z=function(t){return"string"==typeof t&&r.Z.test(t)}},2884:function(t,e,n){var r=n(3830),i=n(7260);function o(t,e){if(e)if("number"==typeof e)s(t,e);else{e.status_code&&s(t,e.status_code),e.error&&(t.name=c(e.error)),e.error_description&&(t.message=e.error_description);var n=e.errors;if(n)o(t,n.length?n[0]:n);for(var r in e)t[r]=e[r];t.status&&(e.method||e.path)&&u(t)}}function s(t,e){t.name=c(i[e]),t.status=t.statusCode=e,u(t)}function u(t){var e=t.status,n=t.method,r=t.path,i=e+" status code",o=n||r;o&&(i+=' for "'),n&&(i+=n),o&&(i+=" "),r&&(i+=r),o&&(i+='"'),t.message=i}function c(t){return r(String(t).replace(/error$/i,""),"error")}t.exports=function t(){for(var e=new Error,n=0;n<arguments.length;n++)o(e,arguments[n]);"function"==typeof Error.captureStackTrace&&Error.captureStackTrace(e,t);return e}},7260:function(t){t.exports={100:"Continue",101:"Switching Protocols",102:"Processing",200:"OK",201:"Created",202:"Accepted",203:"Non-Authoritative Information",204:"No Content",205:"Reset Content",206:"Partial Content",207:"Multi-Status",208:"Already Reported",226:"IM Used",300:"Multiple Choices",301:"Moved Permanently",302:"Found",303:"See Other",304:"Not Modified",305:"Use Proxy",307:"Temporary Redirect",308:"Permanent Redirect",400:"Bad Request",401:"Unauthorized",402:"Payment Required",403:"Forbidden",404:"Not Found",405:"Method Not Allowed",406:"Not Acceptable",407:"Proxy Authentication Required",408:"Request Timeout",409:"Conflict",410:"Gone",411:"Length Required",412:"Precondition Failed",413:"Payload Too Large",414:"URI Too Long",415:"Unsupported Media Type",416:"Range Not Satisfiable",417:"Expectation Failed",418:"I'm a teapot",421:"Misdirected Request",422:"Unprocessable Entity",423:"Locked",424:"Failed Dependency",425:"Unordered Collection",426:"Upgrade Required",428:"Precondition Required",429:"Too Many Requests",431:"Request Header Fields Too Large",500:"Internal Server Error",501:"Not Implemented",502:"Bad Gateway",503:"Service Unavailable",504:"Gateway Timeout",505:"HTTP Version Not Supported",506:"Variant Also Negotiates",507:"Insufficient Storage",508:"Loop Detected",509:"Bandwidth Limit Exceeded",510:"Not Extended",511:"Network Authentication Required"}},6141:function(t){"use strict";t.exports=window.React},3804:function(t){"use strict";t.exports=window.lodash},7997:function(t){"use strict";t.exports=window.wp.components},1417:function(t){"use strict";t.exports=window.wp.compose},5707:function(t){"use strict";t.exports=window.wp.data},3027:function(t){"use strict";t.exports=window.wp.element},3163:function(t){"use strict";t.exports=window.wp.i18n},1200:function(t){"use strict";t.exports=window.wp.plugins},8675:function(t){"use strict";t.exports=window.wp.reactI18n}},e={};function n(r){var i=e[r];if(void 0!==i)return i.exports;var o=e[r]={exports:{}};return t[r](o,o.exports,n),o.exports}n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,{a:e}),e},n.d=function(t,e){for(var r in e)n.o(e,r)&&!n.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},function(){var t;n.g.importScripts&&(t=n.g.location+"");var e=n.g.document;if(!t&&e&&(e.currentScript&&(t=e.currentScript.src),!t)){var r=e.getElementsByTagName("script");r.length&&(t=r[r.length-1].src)}if(!t)throw new Error("Automatic publicPath is not supported in this browser");t=t.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),n.p=t}();var r={};!function(){"use strict";n.r(r);n(5840),n(8814)}(),window.EditingToolkit=r}();